Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 19 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,31 @@
"test": "ng test"
},
"dependencies": {
"@angular/animations": "^17.2.3",
"@angular/common": "^17.2.3",
"@angular/compiler": "^17.2.3",
"@angular/core": "^17.2.3",
"@angular/forms": "^17.2.3",
"@angular/platform-browser": "^17.2.3",
"@angular/platform-browser-dynamic": "^17.2.3",
"@angular/router": "^17.2.3",
"primeflex": "^3.3.1",
"@angular/animations": "^19.2.5",
"@angular/common": "^19.2.5",
"@angular/compiler": "^19.2.5",
"@angular/core": "^19.2.5",
"@angular/forms": "^19.2.5",
"@angular/platform-browser": "^19.2.5",
"@angular/platform-browser-dynamic": "^19.2.5",
"@angular/router": "^19.2.5",
"primeflex": "^4.0.0",
"primeicons": "^7.0.0",
"primeng": "17.18.15",
"primeng": "^19.0.10",
"@primeng/themes": "^19.0.10",
"rxjs": "~7.8.1",
"tslib": "^2.3.0",
"zone.js": "^0.14.0"
"tslib": "^2.8.1",
"zone.js": "^0.15.0"
},
"peerDependencies": {
"primeflex": "^3.3.1",
"primeflex": "^4.0.0",
"primeicons": "^7.0.0",
"primeng": "17.18.15"
"primeng": "^19.0.10"
},
"devDependencies": {
"@angular-devkit/build-angular": "^17.2.2",
"@angular/cli": "^17.2.2",
"@angular/compiler-cli": "^17.2.3",
"@angular-devkit/build-angular": "^19.2.6",
"@angular/cli": "^19.2.6",
"@angular/compiler-cli": "^19.2.5",
"@types/jasmine": "~3.10.0",
"jasmine-core": "~4.0.0",
"karma": "~6.3.0",
Expand All @@ -43,6 +44,6 @@
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "~1.7.0",
"ng-packagr": "^17.3.0",
"typescript": "~5.3.3"
"typescript": "5.5.4"
}
}
1 change: 1 addition & 0 deletions projects/consumer/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { BehaviorSubject, map, of } from "rxjs";
selector: "app-root",
templateUrl: "./app.component.html",
styleUrls: ["./app.component.scss"],
standalone: false,
})
export class AppComponent {
title = "consumer";
Expand Down
19 changes: 18 additions & 1 deletion projects/consumer/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { CommonModule } from "@angular/common";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { TypeHeadInputModule } from "typeHeadInput";
// import { MyPreset } from "projects/type-head-input/src/lib/aura-theme";
import { providePrimeNG } from "primeng/config";

@NgModule({
declarations: [AppComponent],
Expand All @@ -20,7 +22,22 @@ import { TypeHeadInputModule } from "typeHeadInput";
FormsModule,
ReactiveFormsModule,
],
providers: [],
providers: [
// note: add the aura token theme file to enable this
// providePrimeNG({
// theme: {
// preset: MyPreset,
// options: {
// prefix: "p",
// darkModeSelector: false || "none",
// cssLayer: {
// name: "primeng",
// order: "primeng",
// },
// },
// },
// }),
],
bootstrap: [AppComponent],
})
export class AppModule {}
2 changes: 0 additions & 2 deletions projects/consumer/src/styles.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
@import "primeng/resources/themes/tailwind-light/theme.css";
@import "primeflex/primeflex.scss";
@import "primeng/resources/primeng.min.css";
@import "primeicons/primeicons.css";
13 changes: 7 additions & 6 deletions projects/type-head-input/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"name": "@randomsoftwareltd/type-head-input",
"version": "2.2.2",
"version": "3.0.0",
"peerDependencies": {
"@angular/common": "^17.2.3",
"@angular/core": "^17.2.3",
"primeflex": "^3.3.1",
"@angular/common": "^19.2.5",
"@angular/core": "^19.2.5",
"primeflex": "^4.0.0",
"primeicons": "^7.0.0",
"primeng": "17.18.15"
"primeng": "^19.0.10",
"@primeng/themes": "^19.0.10"
},
"dependencies": {
"tslib": "^2.3.0"
"tslib": "^2.8.1"
},
"sideEffects": false
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { Directive, TemplateRef } from "@angular/core";

@Directive({ selector: "[appTypeheadInputItemTmp]" })
@Directive({ selector: "[appTypeheadInputItemTmp]", standalone: false })
export class NgTypeHeadInputItemTemplateDirective {
constructor(public template: TemplateRef<any>) {}
}

@Directive({ selector: "[appTypeheadInputFilterTmp]" })
@Directive({ selector: "[appTypeheadInputFilterTmp]", standalone: false })
export class NgTypeHeadInputFilterTemplateDirective {
constructor(public template: TemplateRef<any>) {}
}

@Directive({ selector: "[appTypeheadInputLoaderTmp]" })
@Directive({ selector: "[appTypeheadInputLoaderTmp]", standalone: false })
export class NgTypeHeadInputLoaderTemplateDirective {
constructor(public template: TemplateRef<any>) {}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* tslint:disable:no-unused-variable */

import { TestBed, async } from '@angular/core/testing';
import { TestBed } from '@angular/core/testing';
import { NumbersOnlyDirective } from './numbers-only.directive';

describe('Directive: NumbersOnly', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {

@Directive({
selector: "[appNumbersOnly]",
standalone: false,
})
export class NumbersOnlyDirective implements OnDestroy {
regexStr = "^[0-9]+$";
Expand Down
1 change: 1 addition & 0 deletions projects/type-head-input/src/lib/pipe/form-Control.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { AbstractControl, UntypedFormControl } from '@angular/forms';

@Pipe({
name: 'formControl',
standalone: false,
})
export class FormControlPipe implements PipeTransform {
transform(value: AbstractControl | null): UntypedFormControl {
Expand Down
1 change: 1 addition & 0 deletions projects/type-head-input/src/lib/pipe/value-filter.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Pipe, PipeTransform } from "@angular/core";

@Pipe({
name: "valueFilter",
standalone: false,
})
export class ValueFilterPipe implements PipeTransform {
transform(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
>{{ labelText }}
<span *ngIf="showRequiredIndicator" class="text-red-500"> * </span></label
>
<p-dropdown
<p-select
#select
[options]="
enableServerSideData
Expand Down Expand Up @@ -77,7 +77,7 @@
[ngTemplateOutletContext]="{ selectValue: select.value }"
></ng-container>
</ng-template>
</p-dropdown>
</p-select>

<ng-container *ngIf="control.touched">
<div class="mt-1" *ngFor="let error of control?.errors | keyvalue">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { Dropdown, DropdownChangeEvent } from "primeng/dropdown";
selector: "typeHeadInput",
templateUrl: "./type-head-input.component.html",
styleUrls: ["./type-head-input.component.scss"],
standalone: false,
})
export class TypeHeadInputComponent {
@ViewChild("select") select!: Dropdown;
Expand Down
6 changes: 3 additions & 3 deletions projects/type-head-input/src/lib/type-head-input.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
NgTypeHeadInputItemTemplateDirective,
NgTypeHeadInputLoaderTemplateDirective,
} from "./directive/form-template.directive";
import { DropdownModule } from "primeng/dropdown";
import { SelectModule } from "primeng/select";
import { SkeletonModule } from "primeng/skeleton";
import { CommonModule } from "@angular/common";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
Expand All @@ -25,7 +25,7 @@ import { ValueFilterPipe } from "./pipe/value-filter.pipe";
imports: [
CommonModule,
FormsModule,
DropdownModule,
SelectModule,
SkeletonModule,
ReactiveFormsModule,
],
Expand All @@ -35,7 +35,7 @@ import { ValueFilterPipe } from "./pipe/value-filter.pipe";
NgTypeHeadInputFilterTemplateDirective,
NgTypeHeadInputLoaderTemplateDirective,
NumbersOnlyDirective,
DropdownModule,
SelectModule,
SkeletonModule,
FormControlPipe,
ValueFilterPipe,
Expand Down