@softpak/components 19.0.0-beta.1 → 19.0.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/fesm2022/softpak-components-spx-alert.mjs +54 -44
  2. package/fesm2022/softpak-components-spx-alert.mjs.map +1 -1
  3. package/fesm2022/softpak-components-spx-app-expiry.mjs +58 -41
  4. package/fesm2022/softpak-components-spx-app-expiry.mjs.map +1 -1
  5. package/fesm2022/softpak-components-spx-app-update.mjs +73 -68
  6. package/fesm2022/softpak-components-spx-app-update.mjs.map +1 -1
  7. package/fesm2022/softpak-components-spx-button.mjs +3 -3
  8. package/fesm2022/softpak-components-spx-capitalize.mjs +3 -3
  9. package/fesm2022/softpak-components-spx-card.mjs +159 -126
  10. package/fesm2022/softpak-components-spx-card.mjs.map +1 -1
  11. package/fesm2022/softpak-components-spx-change-details.mjs +4 -6
  12. package/fesm2022/softpak-components-spx-change-details.mjs.map +1 -1
  13. package/fesm2022/softpak-components-spx-channel-selection.mjs +8 -11
  14. package/fesm2022/softpak-components-spx-channel-selection.mjs.map +1 -1
  15. package/fesm2022/softpak-components-spx-check-digit.mjs +5 -8
  16. package/fesm2022/softpak-components-spx-check-digit.mjs.map +1 -1
  17. package/fesm2022/softpak-components-spx-form-section.mjs +20 -15
  18. package/fesm2022/softpak-components-spx-form-section.mjs.map +1 -1
  19. package/fesm2022/softpak-components-spx-form-view.mjs +145 -138
  20. package/fesm2022/softpak-components-spx-form-view.mjs.map +1 -1
  21. package/fesm2022/softpak-components-spx-helpers.mjs +1 -0
  22. package/fesm2022/softpak-components-spx-helpers.mjs.map +1 -1
  23. package/fesm2022/softpak-components-spx-inputs.mjs +809 -860
  24. package/fesm2022/softpak-components-spx-inputs.mjs.map +1 -1
  25. package/fesm2022/softpak-components-spx-navigation.mjs +51 -51
  26. package/fesm2022/softpak-components-spx-navigation.mjs.map +1 -1
  27. package/fesm2022/softpak-components-spx-number-check.mjs +48 -42
  28. package/fesm2022/softpak-components-spx-number-check.mjs.map +1 -1
  29. package/fesm2022/softpak-components-spx-pagination.mjs +3 -3
  30. package/fesm2022/softpak-components-spx-patch.mjs +28 -22
  31. package/fesm2022/softpak-components-spx-patch.mjs.map +1 -1
  32. package/fesm2022/softpak-components-spx-progress-bar.mjs +3 -3
  33. package/fesm2022/softpak-components-spx-spinner.mjs +144 -143
  34. package/fesm2022/softpak-components-spx-spinner.mjs.map +1 -1
  35. package/fesm2022/softpak-components-spx-stock-info.mjs +7 -10
  36. package/fesm2022/softpak-components-spx-stock-info.mjs.map +1 -1
  37. package/fesm2022/softpak-components-spx-suggestion.mjs +41 -49
  38. package/fesm2022/softpak-components-spx-suggestion.mjs.map +1 -1
  39. package/fesm2022/softpak-components-spx-toaster.mjs +92 -97
  40. package/fesm2022/softpak-components-spx-toaster.mjs.map +1 -1
  41. package/fesm2022/softpak-components-spx-update.mjs +8 -10
  42. package/fesm2022/softpak-components-spx-update.mjs.map +1 -1
  43. package/fesm2022/softpak-components-spx-validation.mjs +5 -8
  44. package/fesm2022/softpak-components-spx-validation.mjs.map +1 -1
  45. package/package.json +23 -24
  46. package/spx-alert/spx-alert.component.d.ts +4 -4
  47. package/spx-app-update/spx-app-update.component.d.ts +3 -3
  48. package/spx-helpers/spx-severity.enum.d.ts +2 -1
  49. package/spx-inputs/spx-input-box.component.d.ts +4 -4
  50. package/spx-inputs/spx-input-date/spx-input-date.component.d.ts +43 -0
  51. package/spx-inputs/spx-input-float.component.d.ts +5 -4
  52. package/spx-inputs/spx-input-text.component.d.ts +2 -1
  53. package/spx-inputs/spx-input-time-modal.component.d.ts +1 -1
  54. package/spx-inputs/spx-input-time.component.d.ts +1 -1
  55. package/spx-inputs/spx-input.component.d.ts +2 -1
  56. package/spx-suggestion/spx-suggestion.component.d.ts +5 -5
  57. package/tailwind.css +1 -1
  58. package/spx-inputs/spx-input-date.component.d.ts +0 -50
@@ -1 +1 @@
1
- {"version":3,"file":"softpak-components-spx-update.mjs","sources":["../../../../projects/softpak/components/spx-update/src/spx-update-info.component.ts","../../../../projects/softpak/components/spx-update/src/spx-update-progress.component.ts","../../../../projects/softpak/components/spx-update/softpak-components-spx-update.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { Component, Input } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\nimport { SpxInputComponent } from '@softpak/components/spx-inputs';\n\nconst ctrlAppStoreVersion = 'appStoreVersion';\nconst ctrlChannel = 'channel';\nconst ctrlNextVersionNumber = 'nextVersionNumber';\nconst ctrlVersionNumber = 'versionNumber';\n\n@Component({\n selector: 'spx-update-info',\n template: `<form [formGroup]=\"form\" class=\"mt-3\">\n <div class=\"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3\">\n <spx-input [formControl]=\"ctrlVersionNumber\" [spxLabel]=\"txtVersion | capitalize\"\n [spxReadonly]=\"true\"></spx-input>\n <spx-input [formControl]=\"ctrlNextVersionNumber\" [spxLabel]=\"txtNextVersion | capitalize\"\n [spxReadonly]=\"true\"></spx-input>\n <spx-input [formControl]=\"ctrlConfiguredChannel\" [spxLabel]=\"txtChannel | capitalize\"\n [spxReadonly]=\"true\"></spx-input>\n <spx-input [formControl]=\"ctrlAppStoreVersion\" [spxLabel]=\"txtAppStoreVersion | capitalize\"\n [spxReadonly]=\"true\"></spx-input>\n </div>\n </form>`,\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n SpxCapitalizePipe,\n SpxInputComponent,\n ]\n})\nexport class SpxUpdateInfoComponent {\n form!: FormGroup;\n @Input() txtAppStoreVersion!: string;\n @Input() txtChannel!: string;\n @Input() txtNextVersion!: string;\n @Input() txtVersion!: string;\n \n get ctrlVersionNumber(): FormControl { return this.form.get(ctrlVersionNumber) as FormControl; }\n get ctrlNextVersionNumber(): FormControl { return this.form.get(ctrlNextVersionNumber) as FormControl; }\n get ctrlConfiguredChannel(): FormControl { return this.form.get(ctrlChannel) as FormControl; }\n get ctrlAppStoreVersion(): FormControl { return this.form.get(ctrlAppStoreVersion) as FormControl; }\n\n constructor(\n private readonly formBuilder: FormBuilder,\n ) {\n this.form = this.formBuilder.group({\n [ctrlAppStoreVersion]: [null, []],\n [ctrlChannel]: [null, []],\n [ctrlNextVersionNumber]: [null, []],\n [ctrlVersionNumber]: [null, []],\n });\n }\n\n update(appStoreVersion: string, channel: string, nextVersion: string, version: string) {\n this.ctrlVersionNumber.setValue({\n value: version,\n });\n this.ctrlNextVersionNumber.setValue({\n value: nextVersion,\n });\n this.ctrlConfiguredChannel.setValue({\n value: channel,\n });\n this.ctrlAppStoreVersion.setValue({\n value: appStoreVersion,\n });\n }\n}\n","import { Component, Input, OnDestroy, OnInit } from '@angular/core';\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\nimport { SpxProgressBarComponent } from '@softpak/components/spx-progress-bar';\n\n@Component({\n selector: 'spx-update-progress',\n template: `<spx-progress-bar [spxPercentage]=\"delayedPercentage\" [spxTitle]=\"title | capitalize\">\n </spx-progress-bar>`,\n imports: [\n SpxProgressBarComponent,\n SpxCapitalizePipe,\n ]\n})\nexport class SpxUpdateProgressComponent implements OnInit, OnDestroy {\n @Input() title!: string;\n @Input() percentage!: number;\n delayedPercentage!: number;\n syncTruckInterval?: any;\n \n ngOnInit(): void {\n this.startLoaderSync();\n }\n\n ngOnDestroy(): void {\n this.stopLoaderSync();\n }\n\n private startLoaderSync() {\n if (this.syncTruckInterval === null) {\n this.syncTruckInterval = setInterval(() => {\n this.delayedPercentage = this.percentage;\n }, 200);\n }\n }\n\n private stopLoaderSync() {\n if (this.syncTruckInterval !== null) {\n clearInterval(this.syncTruckInterval);\n this.syncTruckInterval = undefined;\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAMA,MAAM,mBAAmB,GAAG,iBA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AA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAGZ,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBATtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,QAAQ,EAAE,CAAA;AACQ,qBAAA,CAAA;AAClB,oBAAA,OAAO,EAAE;wBACL,uBAAuB;wBACvB,iBAAiB;AACpB;AACJ,iBAAA;8BAEU,KAAK,EAAA,CAAA;sBAAb;gBACQ,UAAU,EAAA,CAAA;sBAAlB;;;ACfH;;AAEG;;;;"}
1
+ {"version":3,"file":"softpak-components-spx-update.mjs","sources":["../../../../projects/softpak/components/spx-update/src/spx-update-info.component.ts","../../../../projects/softpak/components/spx-update/src/spx-update-progress.component.ts","../../../../projects/softpak/components/spx-update/softpak-components-spx-update.ts"],"sourcesContent":["\nimport { Component, Input } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\nimport { SpxInputComponent } from '@softpak/components/spx-inputs';\n\nconst ctrlAppStoreVersion = 'appStoreVersion';\nconst ctrlChannel = 'channel';\nconst ctrlNextVersionNumber = 'nextVersionNumber';\nconst ctrlVersionNumber = 'versionNumber';\n\n@Component({\n selector: 'spx-update-info',\n template: `<form [formGroup]=\"form\" class=\"mt-3\">\n <div class=\"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3\">\n <spx-input [formControl]=\"ctrlVersionNumber\" [spxLabel]=\"txtVersion | capitalize\"\n [spxReadonly]=\"true\"></spx-input>\n <spx-input [formControl]=\"ctrlNextVersionNumber\" [spxLabel]=\"txtNextVersion | capitalize\"\n [spxReadonly]=\"true\"></spx-input>\n <spx-input [formControl]=\"ctrlConfiguredChannel\" [spxLabel]=\"txtChannel | capitalize\"\n [spxReadonly]=\"true\"></spx-input>\n <spx-input [formControl]=\"ctrlAppStoreVersion\" [spxLabel]=\"txtAppStoreVersion | capitalize\"\n [spxReadonly]=\"true\"></spx-input>\n </div>\n </form>`,\n imports: [\n FormsModule,\n ReactiveFormsModule,\n SpxCapitalizePipe,\n SpxInputComponent\n ]\n})\nexport class SpxUpdateInfoComponent {\n form!: FormGroup;\n @Input() txtAppStoreVersion!: string;\n @Input() txtChannel!: string;\n @Input() txtNextVersion!: string;\n @Input() txtVersion!: string;\n \n get ctrlVersionNumber(): FormControl { return this.form.get(ctrlVersionNumber) as FormControl; }\n get ctrlNextVersionNumber(): FormControl { return this.form.get(ctrlNextVersionNumber) as FormControl; }\n get ctrlConfiguredChannel(): FormControl { return this.form.get(ctrlChannel) as FormControl; }\n get ctrlAppStoreVersion(): FormControl { return this.form.get(ctrlAppStoreVersion) as FormControl; }\n\n constructor(\n private readonly formBuilder: FormBuilder,\n ) {\n this.form = this.formBuilder.group({\n [ctrlAppStoreVersion]: [null, []],\n [ctrlChannel]: [null, []],\n [ctrlNextVersionNumber]: [null, []],\n [ctrlVersionNumber]: [null, []],\n });\n }\n\n update(appStoreVersion: string, channel: string, nextVersion: string, version: string) {\n this.ctrlVersionNumber.setValue({\n value: version,\n });\n this.ctrlNextVersionNumber.setValue({\n value: nextVersion,\n });\n this.ctrlConfiguredChannel.setValue({\n value: channel,\n });\n this.ctrlAppStoreVersion.setValue({\n value: appStoreVersion,\n });\n }\n}\n","import { Component, Input, OnDestroy, OnInit } from '@angular/core';\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\nimport { SpxProgressBarComponent } from '@softpak/components/spx-progress-bar';\n\n@Component({\n selector: 'spx-update-progress',\n template: `<spx-progress-bar [spxPercentage]=\"delayedPercentage\" [spxTitle]=\"title | capitalize\">\n </spx-progress-bar>`,\n imports: [\n SpxProgressBarComponent,\n SpxCapitalizePipe,\n ]\n})\nexport class SpxUpdateProgressComponent implements OnInit, OnDestroy {\n @Input() title!: string;\n @Input() percentage!: number;\n delayedPercentage!: number;\n syncTruckInterval?: any;\n \n ngOnInit(): void {\n this.startLoaderSync();\n }\n\n ngOnDestroy(): void {\n this.stopLoaderSync();\n }\n\n private startLoaderSync() {\n if (this.syncTruckInterval === null) {\n this.syncTruckInterval = setInterval(() => {\n this.delayedPercentage = this.percentage;\n }, 200);\n }\n }\n\n private stopLoaderSync() {\n if (this.syncTruckInterval !== null) {\n clearInterval(this.syncTruckInterval);\n this.syncTruckInterval = undefined;\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAMA,MAAM,mBAAmB,GAAG,iBAAiB;AAC7C,MAAM,WAAW,GAAG,SAAS;AAC7B,MAAM,qBAAqB,GAAG,mBAAmB;AACjD,MAAM,iBAAiB,GAAG,eAAe;MAuB5B,sBAAsB,CAAA;AAOjC,IAAA,IAAI,iBAAiB,GAAA,EAAkB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAgB,CAAC;AAC9F,IAAA,IAAI,qBAAqB,GAAA,EAAkB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,qBAAqB,CAAgB,CAAC;AACtG,IAAA,IAAI,qBAAqB,GAAA,EAAkB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,CAAgB,CAAC;AAC5F,IAAA,IAAI,mBAAmB,GAAA,EAAkB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,mBAAmB,CAAgB,CAAC;AAElG,IAAA,WAAA,CACmB,WAAwB,EAAA;QAAxB,IAAW,CAAA,WAAA,GAAX,WAAW;QAE5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AACjC,YAAA,CAAC,mBAAmB,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC;AACjC,YAAA,CAAC,WAAW,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC;AACzB,YAAA,CAAC,qBAAqB,GAAG,CAAC,IAA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A,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,0BAA0B,EAPzB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,OAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;sBACQ,EAEd,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,uBAAuB,+FACvB,iBAAiB,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAGZ,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBATtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,QAAQ,EAAE,CAAA;AACQ,qBAAA,CAAA;AAClB,oBAAA,OAAO,EAAE;wBACL,uBAAuB;wBACvB,iBAAiB;AACpB;AACJ,iBAAA;8BAEU,KAAK,EAAA,CAAA;sBAAb;gBACQ,UAAU,EAAA,CAAA;sBAAlB;;;ACfH;;AAEG;;;;"}
@@ -1,7 +1,5 @@
1
1
  import { valuePairToValue } from '@softpak/components/spx-helpers';
2
2
  import { DateTime } from 'luxon';
3
- import * as i1 from '@angular/common';
4
- import { CommonModule } from '@angular/common';
5
3
  import * as i0 from '@angular/core';
6
4
  import { Component, Input } from '@angular/core';
7
5
  import { FormsModule } from '@angular/forms';
@@ -178,15 +176,14 @@ class SpxValidateControlComponent {
178
176
  get past() {
179
177
  return this.control.errors && this.control.errors['past'];
180
178
  }
181
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: SpxValidateControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
182
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0", type: SpxValidateControlComponent, isStandalone: true, selector: "spx-validate-control", inputs: { control: "control", label: "label", submitTried: "submitTried" }, ngImport: i0, template: "<ng-container *ngIf=\"control && control.errors && (control.touched || submitTried)\">\n <div *ngIf=\"maxLength\">'{{ label }}' is too long, the maximum length is {{ maxLengthRequiredLength }}.</div>\n <div *ngIf=\"minLength\">'{{ label }}' is too short, the minimum length is {{ minLengthRequiredLength }}.</div>\n <div *ngIf=\"max\">The value of '{{ label }}' is too high, the maximum is {{ maxRequiredMax }}.</div>\n <div *ngIf=\"min\">The value of '{{ label }}' is too low, the minimum is {{ minRequiredMin }}.</div>\n <div *ngIf=\"pattern\">The pattern of '{{ label }}' not valid.</div>\n <div *ngIf=\"required\">'{{ label }}' is required.</div>\n <div *ngIf=\"year\">Please choose a year between 1991 and the current year.</div>\n <div *ngIf=\"yearFuture\">Please choose a year between the current year and 2050.</div>\n <div *ngIf=\"month\">Please choose a valid month (a value between 01 and 12).</div>\n <div *ngIf=\"future\">The selected date may not be in the future.</div>\n <div *ngIf=\"past\">The selected date may not be in the past.</div>\n</ng-container>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }] }); }
179
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxValidateControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
180
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: SpxValidateControlComponent, isStandalone: true, selector: "spx-validate-control", inputs: { control: "control", label: "label", submitTried: "submitTried" }, ngImport: i0, template: "@if (control && control.errors && (control.touched || submitTried)) {\n @if (maxLength) {\n <div>'{{ label }}' is too long, the maximum length is {{ maxLengthRequiredLength }}.</div>\n }\n @if (minLength) {\n <div>'{{ label }}' is too short, the minimum length is {{ minLengthRequiredLength }}.</div>\n }\n @if (max) {\n <div>The value of '{{ label }}' is too high, the maximum is {{ maxRequiredMax }}.</div>\n }\n @if (min) {\n <div>The value of '{{ label }}' is too low, the minimum is {{ minRequiredMin }}.</div>\n }\n @if (pattern) {\n <div>The pattern of '{{ label }}' not valid.</div>\n }\n @if (required) {\n <div>'{{ label }}' is required.</div>\n }\n @if (year) {\n <div>Please choose a year between 1991 and the current year.</div>\n }\n @if (yearFuture) {\n <div>Please choose a year between the current year and 2050.</div>\n }\n @if (month) {\n <div>Please choose a valid month (a value between 01 and 12).</div>\n }\n @if (future) {\n <div>The selected date may not be in the future.</div>\n }\n @if (past) {\n <div>The selected date may not be in the past.</div>\n }\n}", dependencies: [{ kind: "ngmodule", type: FormsModule }] }); }
183
181
  }
184
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: SpxValidateControlComponent, decorators: [{
182
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxValidateControlComponent, decorators: [{
185
183
  type: Component,
186
184
  args: [{ selector: 'spx-validate-control', imports: [
187
- CommonModule,
188
- FormsModule,
189
- ], template: "<ng-container *ngIf=\"control && control.errors && (control.touched || submitTried)\">\n <div *ngIf=\"maxLength\">'{{ label }}' is too long, the maximum length is {{ maxLengthRequiredLength }}.</div>\n <div *ngIf=\"minLength\">'{{ label }}' is too short, the minimum length is {{ minLengthRequiredLength }}.</div>\n <div *ngIf=\"max\">The value of '{{ label }}' is too high, the maximum is {{ maxRequiredMax }}.</div>\n <div *ngIf=\"min\">The value of '{{ label }}' is too low, the minimum is {{ minRequiredMin }}.</div>\n <div *ngIf=\"pattern\">The pattern of '{{ label }}' not valid.</div>\n <div *ngIf=\"required\">'{{ label }}' is required.</div>\n <div *ngIf=\"year\">Please choose a year between 1991 and the current year.</div>\n <div *ngIf=\"yearFuture\">Please choose a year between the current year and 2050.</div>\n <div *ngIf=\"month\">Please choose a valid month (a value between 01 and 12).</div>\n <div *ngIf=\"future\">The selected date may not be in the future.</div>\n <div *ngIf=\"past\">The selected date may not be in the past.</div>\n</ng-container>" }]
185
+ FormsModule
186
+ ], template: "@if (control && control.errors && (control.touched || submitTried)) {\n @if (maxLength) {\n <div>'{{ label }}' is too long, the maximum length is {{ maxLengthRequiredLength }}.</div>\n }\n @if (minLength) {\n <div>'{{ label }}' is too short, the minimum length is {{ minLengthRequiredLength }}.</div>\n }\n @if (max) {\n <div>The value of '{{ label }}' is too high, the maximum is {{ maxRequiredMax }}.</div>\n }\n @if (min) {\n <div>The value of '{{ label }}' is too low, the minimum is {{ minRequiredMin }}.</div>\n }\n @if (pattern) {\n <div>The pattern of '{{ label }}' not valid.</div>\n }\n @if (required) {\n <div>'{{ label }}' is required.</div>\n }\n @if (year) {\n <div>Please choose a year between 1991 and the current year.</div>\n }\n @if (yearFuture) {\n <div>Please choose a year between the current year and 2050.</div>\n }\n @if (month) {\n <div>Please choose a valid month (a value between 01 and 12).</div>\n }\n @if (future) {\n <div>The selected date may not be in the future.</div>\n }\n @if (past) {\n <div>The selected date may not be in the past.</div>\n }\n}" }]
190
187
  }], propDecorators: { control: [{
191
188
  type: Input
192
189
  }], label: [{
@@ -1 +1 @@
1
- {"version":3,"file":"softpak-components-spx-validation.mjs","sources":["../../../../projects/softpak/components/spx-validation/required.validator.ts","../../../../projects/softpak/components/spx-validation/max.validator.ts","../../../../projects/softpak/components/spx-validation/maxlength.validator.ts","../../../../projects/softpak/components/spx-validation/min.validator.ts","../../../../projects/softpak/components/spx-validation/minlength.validator.ts","../../../../projects/softpak/components/spx-validation/pattern.validator.ts","../../../../projects/softpak/components/spx-validation/year-and-month.validator.ts","../../../../projects/softpak/components/spx-validation/spx-validate-control.component.ts","../../../../projects/softpak/components/spx-validation/spx-validate-control.component.html","../../../../projects/softpak/components/spx-validation/softpak-components-spx-validation.ts"],"sourcesContent":["import { AbstractControl, ValidationErrors } from '@angular/forms';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorRequired = () => (control: AbstractControl): ValidationErrors | null => {\n if (\n control &&\n valuePairToValue(control.value) === undefined ||\n valuePairToValue(control.value) === null ||\n valuePairToValue(control.value) === '' ||\n valuePairToValue(control.value) === 0\n ) {\n return { required: true };\n }\n return null;\n};\n","import { AbstractControl } from '@angular/forms';\nimport { spxValidatorRequired } from './required.validator';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorMax = (max: number) => (control: AbstractControl): { max: { max: number; actual: number } } | null => {\n if (!spxValidatorRequired()(control)) {\n const value = parseInt(valuePairToValue(control.value).toString(), 10);\n if (!isNaN(value) && value > max) {\n return {\n max: {\n max,\n actual: value\n }\n };\n }\n }\n return null;\n};\n","import { AbstractControl } from '@angular/forms';\nimport { spxValidatorRequired } from './required.validator';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorMaxLength = (maximumLength: number, sanitizer?: (input: string) => string) => (control: AbstractControl): { maxlength: { requiredLength: number; actualLength: number } } | null => {\n if (!spxValidatorRequired()(control)) {\n let value = valuePairToValue(control.value);\n if (sanitizer) {\n value = sanitizer(value.toString());\n }\n if (value.toString().length > maximumLength) {\n return {\n maxlength: {\n requiredLength: maximumLength,\n actualLength: value.toString().length\n }\n };\n }\n }\n return null;\n};\n","import { AbstractControl } from '@angular/forms';\nimport { spxValidatorRequired } from './required.validator';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorMin = (min: number) => (control: AbstractControl): { min: { min: number; actual: number } } | null => {\n if (!spxValidatorRequired()(control)) {\n const value = parseInt(valuePairToValue(control.value).toString(), 10);\n\n if (!isNaN(value) && value < min) {\n return {\n min: {\n min,\n actual: value\n }\n };\n }\n }\n return null;\n};\n","import { AbstractControl } from '@angular/forms';\nimport { spxValidatorRequired } from './required.validator';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorMinLength = (minimumLength: number, sanitizer?: (input: string) => string) => (control: AbstractControl): { minlength: { requiredLength: number; actualLength: number } } | null => {\n if (!spxValidatorRequired()(control)) {\n let value = valuePairToValue(control.value);\n if (sanitizer) {\n value = sanitizer(value.toString());\n }\n if (value.toString().length < minimumLength) {\n return {\n minlength: {\n requiredLength: minimumLength,\n actualLength: value.toString().length\n }\n };\n }\n }\n return null;\n};\n","import { AbstractControl, ValidationErrors } from '@angular/forms';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\nimport { spxValidatorRequired } from './required.validator';\n\nexport const spxValidatorPattern = (matcher: RegExp) => (control: AbstractControl): ValidationErrors | null => {\n if (!spxValidatorRequired()(control)) {\n const matches = valuePairToValue(control.value).toString().match(matcher);\n if (matches === null || matches.length === 0) {\n return { pattern: true };\n }\n }\n return null;\n};\n","import { AbstractControl, ValidationErrors } from '@angular/forms';\n\nimport { DateTime } from 'luxon';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\nimport { spxValidatorRequired } from './required.validator';\n\nexport const spxValidatorYearAndMonth = (future?: boolean) => (control: AbstractControl): ValidationErrors | null => {\n if (!spxValidatorRequired()(control)) {\n const val = valuePairToValue(control.value);\n if (val.toUpperCase() !== 'ACEP') {\n const date = DateTime.fromISO(val);\n const year = date.year;\n const month = date.month;\n if (val.length < 6) {\n return {\n minlength: {\n requiredLength: 6,\n actualLength: val.length\n }\n };\n }\n if (month < 1 || month > 12) {\n return { month: true };\n }\n if (future) {\n if (year > 2050 || year < DateTime.now().year) {\n return { yearFuture: true };\n }\n if (DateTime.now().set({ year: year, month: DateTime.now().month - 1 }).startOf('month') < DateTime.now()) {\n return { past: true };\n }\n } else {\n if (year < 1971 || year > DateTime.now().year) {\n return { year: true };\n }\n if (DateTime.now().set({ year: year, month: DateTime.now().month - 1 }).startOf('month') > DateTime.now()) {\n return { future: true };\n }\n }\n }\n }\n return null;\n};\n","import { CommonModule } from '@angular/common';\nimport { Component, Input } from '@angular/core';\nimport { AbstractControl, FormsModule } from '@angular/forms';\n\n@Component({\n selector: 'spx-validate-control',\n templateUrl: './spx-validate-control.component.html',\n imports: [\n CommonModule,\n FormsModule,\n ]\n})\nexport class SpxValidateControlComponent {\n @Input() control!: AbstractControl;\n @Input() label: string | unknown;\n @Input() submitTried!: boolean;\n\n get maxLength() {\n return this.control.errors && this.control.errors['maxlength'];\n }\n\n get maxLengthRequiredLength() {\n return this.maxLength && this.control.errors && this.control.errors['maxlength']['requiredLength'];\n }\n\n get minLength() {\n return this.control.errors && this.control.errors['minlength'];\n }\n\n get minLengthRequiredLength() {\n return this.minLength && this.control.errors && this.control.errors['minlength']['requiredLength'];\n }\n\n get max() {\n return this.control.errors && this.control.errors['max'];\n }\n\n get maxRequiredMax() {\n return this.max && this.control.errors && this.control.errors['max']['max'];\n }\n\n get min() {\n return this.control.errors && this.control.errors['min'];\n }\n\n get minRequiredMin() {\n return this.min && this.control.errors && this.control.errors['min']['min'];\n }\n\n get pattern() {\n return this.control.errors && this.control.errors['pattern'];\n }\n\n get required() {\n return this.control.errors && this.control.errors['required'];\n }\n\n get year() {\n return this.control.errors && this.control.errors['year'];\n }\n\n get yearFuture() {\n return this.control.errors && this.control.errors['yearFuture'];\n }\n\n get month() {\n return this.control.errors && this.control.errors['month'];\n }\n\n get future() {\n return this.control.errors && this.control.errors['future'];\n }\n\n get past() {\n return this.control.errors && this.control.errors['past'];\n }\n}\n","<ng-container *ngIf=\"control && control.errors && (control.touched || submitTried)\">\n <div *ngIf=\"maxLength\">'{{ label }}' is too long, the maximum length is {{ maxLengthRequiredLength }}.</div>\n <div *ngIf=\"minLength\">'{{ label }}' is too short, the minimum length is {{ minLengthRequiredLength }}.</div>\n <div *ngIf=\"max\">The value of '{{ label }}' is too high, the maximum is {{ maxRequiredMax }}.</div>\n <div *ngIf=\"min\">The value of '{{ label }}' is too low, the minimum is {{ minRequiredMin }}.</div>\n <div *ngIf=\"pattern\">The pattern of '{{ label }}' not valid.</div>\n <div *ngIf=\"required\">'{{ label }}' is required.</div>\n <div *ngIf=\"year\">Please choose a year between 1991 and the current year.</div>\n <div *ngIf=\"yearFuture\">Please choose a year between the current year and 2050.</div>\n <div *ngIf=\"month\">Please choose a valid month (a value between 01 and 12).</div>\n <div *ngIf=\"future\">The selected date may not be in the future.</div>\n <div *ngIf=\"past\">The selected date may not be in the past.</div>\n</ng-container>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAGa,MAAA,oBAAoB,GAAG,MAAM,CAAC,OAAwB,KAA6B;AAC5F,IAAA,IACI,OAAO;AACP,QAAA,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,SAAS;AAC7C,QAAA,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI;AACxC,QAAA,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE;QACtC,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,EACvC;AACE,QAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;;AAE7B,IAAA,OAAO,IAAI;AACf;;ACVO,MAAM,eAAe,GAAG,CAAC,GAAW,KAAK,CAAC,OAAwB,KAAqD;AAC1H,IAAA,IAAI,CAAC,oBAAoB,EAAE,CAAC,OAAO,CAAC,EAAE;AAClC,QAAA,MAAM,KAAK,GAAG,QAAQ,CAAC,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,CAAC;QACtE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,GAAG,EAAE;YAC9B,OAAO;AACH,gBAAA,GAAG,EAAE;oBACD,GAAG;AACH,oBAAA,MAAM,EAAE;AACX;aACJ;;;AAGT,IAAA,OAAO,IAAI;AACf;;ACbO,MAAM,qBAAqB,GAAG,CAAC,aAAqB,EAAE,SAAqC,KAAK,CAAC,OAAwB,KAA4E;AACxM,IAAA,IAAI,CAAC,oBAAoB,EAAE,CAAC,OAA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2B,EAAA,UAAA,EAAA,CAAA;kBARvC,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,sBAAsB,EAEvB,OAAA,EAAA;wBACL,YAAY;wBACZ,WAAW;AACd,qBAAA,EAAA,QAAA,EAAA,4jCAAA,EAAA;8BAGM,OAAO,EAAA,CAAA;sBAAf;gBACQ,KAAK,EAAA,CAAA;sBAAb;gBACQ,WAAW,EAAA,CAAA;sBAAnB;;;AEfH;;AAEG;;;;"}
1
+ {"version":3,"file":"softpak-components-spx-validation.mjs","sources":["../../../../projects/softpak/components/spx-validation/required.validator.ts","../../../../projects/softpak/components/spx-validation/max.validator.ts","../../../../projects/softpak/components/spx-validation/maxlength.validator.ts","../../../../projects/softpak/components/spx-validation/min.validator.ts","../../../../projects/softpak/components/spx-validation/minlength.validator.ts","../../../../projects/softpak/components/spx-validation/pattern.validator.ts","../../../../projects/softpak/components/spx-validation/year-and-month.validator.ts","../../../../projects/softpak/components/spx-validation/spx-validate-control.component.ts","../../../../projects/softpak/components/spx-validation/spx-validate-control.component.html","../../../../projects/softpak/components/spx-validation/softpak-components-spx-validation.ts"],"sourcesContent":["import { AbstractControl, ValidationErrors } from '@angular/forms';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorRequired = () => (control: AbstractControl): ValidationErrors | null => {\n if (\n control &&\n valuePairToValue(control.value) === undefined ||\n valuePairToValue(control.value) === null ||\n valuePairToValue(control.value) === '' ||\n valuePairToValue(control.value) === 0\n ) {\n return { required: true };\n }\n return null;\n};\n","import { AbstractControl } from '@angular/forms';\nimport { spxValidatorRequired } from './required.validator';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorMax = (max: number) => (control: AbstractControl): { max: { max: number; actual: number } } | null => {\n if (!spxValidatorRequired()(control)) {\n const value = parseInt(valuePairToValue(control.value).toString(), 10);\n if (!isNaN(value) && value > max) {\n return {\n max: {\n max,\n actual: value\n }\n };\n }\n }\n return null;\n};\n","import { AbstractControl } from '@angular/forms';\nimport { spxValidatorRequired } from './required.validator';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorMaxLength = (maximumLength: number, sanitizer?: (input: string) => string) => (control: AbstractControl): { maxlength: { requiredLength: number; actualLength: number } } | null => {\n if (!spxValidatorRequired()(control)) {\n let value = valuePairToValue(control.value);\n if (sanitizer) {\n value = sanitizer(value.toString());\n }\n if (value.toString().length > maximumLength) {\n return {\n maxlength: {\n requiredLength: maximumLength,\n actualLength: value.toString().length\n }\n };\n }\n }\n return null;\n};\n","import { AbstractControl } from '@angular/forms';\nimport { spxValidatorRequired } from './required.validator';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorMin = (min: number) => (control: AbstractControl): { min: { min: number; actual: number } } | null => {\n if (!spxValidatorRequired()(control)) {\n const value = parseInt(valuePairToValue(control.value).toString(), 10);\n\n if (!isNaN(value) && value < min) {\n return {\n min: {\n min,\n actual: value\n }\n };\n }\n }\n return null;\n};\n","import { AbstractControl } from '@angular/forms';\nimport { spxValidatorRequired } from './required.validator';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorMinLength = (minimumLength: number, sanitizer?: (input: string) => string) => (control: AbstractControl): { minlength: { requiredLength: number; actualLength: number } } | null => {\n if (!spxValidatorRequired()(control)) {\n let value = valuePairToValue(control.value);\n if (sanitizer) {\n value = sanitizer(value.toString());\n }\n if (value.toString().length < minimumLength) {\n return {\n minlength: {\n requiredLength: minimumLength,\n actualLength: value.toString().length\n }\n };\n }\n }\n return null;\n};\n","import { AbstractControl, ValidationErrors } from '@angular/forms';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\nimport { spxValidatorRequired } from './required.validator';\n\nexport const spxValidatorPattern = (matcher: RegExp) => (control: AbstractControl): ValidationErrors | null => {\n if (!spxValidatorRequired()(control)) {\n const matches = valuePairToValue(control.value).toString().match(matcher);\n if (matches === null || matches.length === 0) {\n return { pattern: true };\n }\n }\n return null;\n};\n","import { AbstractControl, ValidationErrors } from '@angular/forms';\n\nimport { DateTime } from 'luxon';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\nimport { spxValidatorRequired } from './required.validator';\n\nexport const spxValidatorYearAndMonth = (future?: boolean) => (control: AbstractControl): ValidationErrors | null => {\n if (!spxValidatorRequired()(control)) {\n const val = valuePairToValue(control.value);\n if (val.toUpperCase() !== 'ACEP') {\n const date = DateTime.fromISO(val);\n const year = date.year;\n const month = date.month;\n if (val.length < 6) {\n return {\n minlength: {\n requiredLength: 6,\n actualLength: val.length\n }\n };\n }\n if (month < 1 || month > 12) {\n return { month: true };\n }\n if (future) {\n if (year > 2050 || year < DateTime.now().year) {\n return { yearFuture: true };\n }\n if (DateTime.now().set({ year: year, month: DateTime.now().month - 1 }).startOf('month') < DateTime.now()) {\n return { past: true };\n }\n } else {\n if (year < 1971 || year > DateTime.now().year) {\n return { year: true };\n }\n if (DateTime.now().set({ year: year, month: DateTime.now().month - 1 }).startOf('month') > DateTime.now()) {\n return { future: true };\n }\n }\n }\n }\n return null;\n};\n","\nimport { Component, Input } from '@angular/core';\nimport { AbstractControl, FormsModule } from '@angular/forms';\n\n@Component({\n selector: 'spx-validate-control',\n templateUrl: './spx-validate-control.component.html',\n imports: [\n FormsModule\n ]\n})\nexport class SpxValidateControlComponent {\n @Input() control!: AbstractControl;\n @Input() label: string | unknown;\n @Input() submitTried!: boolean;\n\n get maxLength() {\n return this.control.errors && this.control.errors['maxlength'];\n }\n\n get maxLengthRequiredLength() {\n return this.maxLength && this.control.errors && this.control.errors['maxlength']['requiredLength'];\n }\n\n get minLength() {\n return this.control.errors && this.control.errors['minlength'];\n }\n\n get minLengthRequiredLength() {\n return this.minLength && this.control.errors && this.control.errors['minlength']['requiredLength'];\n }\n\n get max() {\n return this.control.errors && this.control.errors['max'];\n }\n\n get maxRequiredMax() {\n return this.max && this.control.errors && this.control.errors['max']['max'];\n }\n\n get min() {\n return this.control.errors && this.control.errors['min'];\n }\n\n get minRequiredMin() {\n return this.min && this.control.errors && this.control.errors['min']['min'];\n }\n\n get pattern() {\n return this.control.errors && this.control.errors['pattern'];\n }\n\n get required() {\n return this.control.errors && this.control.errors['required'];\n }\n\n get year() {\n return this.control.errors && this.control.errors['year'];\n }\n\n get yearFuture() {\n return this.control.errors && this.control.errors['yearFuture'];\n }\n\n get month() {\n return this.control.errors && this.control.errors['month'];\n }\n\n get future() {\n return this.control.errors && this.control.errors['future'];\n }\n\n get past() {\n return this.control.errors && this.control.errors['past'];\n }\n}\n","@if (control && control.errors && (control.touched || submitTried)) {\n @if (maxLength) {\n <div>'{{ label }}' is too long, the maximum length is {{ maxLengthRequiredLength }}.</div>\n }\n @if (minLength) {\n <div>'{{ label }}' is too short, the minimum length is {{ minLengthRequiredLength }}.</div>\n }\n @if (max) {\n <div>The value of '{{ label }}' is too high, the maximum is {{ maxRequiredMax }}.</div>\n }\n @if (min) {\n <div>The value of '{{ label }}' is too low, the minimum is {{ minRequiredMin }}.</div>\n }\n @if (pattern) {\n <div>The pattern of '{{ label }}' not valid.</div>\n }\n @if (required) {\n <div>'{{ label }}' is required.</div>\n }\n @if (year) {\n <div>Please choose a year between 1991 and the current year.</div>\n }\n @if (yearFuture) {\n <div>Please choose a year between the current year and 2050.</div>\n }\n @if (month) {\n <div>Please choose a valid month (a value between 01 and 12).</div>\n }\n @if (future) {\n <div>The selected date may not be in the future.</div>\n }\n @if (past) {\n <div>The selected date may not be in the past.</div>\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAGa,MAAA,oBAAoB,GAAG,MAAM,CAAC,OAAwB,KAA6B;AAC5F,IAAA,IACI,OAAO;AACP,QAAA,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,SAAS;AAC7C,QAAA,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI;AACxC,QAAA,gBAAgB,CAAC,OAAO,CAAC,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AC,QAAQ,CAAC;;AAG7D,IAAA,IAAI,IAAI,GAAA;AACN,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC;;8GA9DhD,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,KAAA,EAAA,OAAA,EAAA,WAAA,EAAA,aAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECXxC,qnCAkCC,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,ED1BO,WAAW,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAGN,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAPvC,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,sBAAsB,EAEvB,OAAA,EAAA;wBACL;AACH,qBAAA,EAAA,QAAA,EAAA,qnCAAA,EAAA;8BAGM,OAAO,EAAA,CAAA;sBAAf;gBACQ,KAAK,EAAA,CAAA;sBAAb;gBACQ,WAAW,EAAA,CAAA;sBAAnB;;;AEdH;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,16 +1,15 @@
1
1
  {
2
2
  "name": "@softpak/components",
3
- "version": "19.0.0-beta.1",
3
+ "version": "19.0.0-beta.11",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "19.x.x",
7
7
  "@angular/core": "19.x.x",
8
8
  "@capacitor/device": "6.x.x",
9
- "@fortawesome/angular-fontawesome": "^1.0.x",
10
- "@fortawesome/free-solid-svg-icons": "^6.7.x",
9
+ "@fortawesome/free-solid-svg-icons": "^6.x.x",
11
10
  "@ionic/angular": "8.x.x",
12
11
  "@ngx-translate/core": "16.x.x",
13
- "@sentry/angular": "8.40.x",
12
+ "@sentry/angular": "8.x.x",
14
13
  "cordova-plugin-ionic": "5.5.x"
15
14
  },
16
15
  "dependencies": {
@@ -31,18 +30,22 @@
31
30
  "types": "./spx-alert/index.d.ts",
32
31
  "default": "./fesm2022/softpak-components-spx-alert.mjs"
33
32
  },
34
- "./spx-app-expiry": {
35
- "types": "./spx-app-expiry/index.d.ts",
36
- "default": "./fesm2022/softpak-components-spx-app-expiry.mjs"
37
- },
38
33
  "./spx-app-configuration": {
39
34
  "types": "./spx-app-configuration/index.d.ts",
40
35
  "default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
41
36
  },
37
+ "./spx-app-expiry": {
38
+ "types": "./spx-app-expiry/index.d.ts",
39
+ "default": "./fesm2022/softpak-components-spx-app-expiry.mjs"
40
+ },
42
41
  "./spx-app-update": {
43
42
  "types": "./spx-app-update/index.d.ts",
44
43
  "default": "./fesm2022/softpak-components-spx-app-update.mjs"
45
44
  },
45
+ "./spx-capitalize": {
46
+ "types": "./spx-capitalize/index.d.ts",
47
+ "default": "./fesm2022/softpak-components-spx-capitalize.mjs"
48
+ },
46
49
  "./spx-button": {
47
50
  "types": "./spx-button/index.d.ts",
48
51
  "default": "./fesm2022/softpak-components-spx-button.mjs"
@@ -51,18 +54,10 @@
51
54
  "types": "./spx-card/index.d.ts",
52
55
  "default": "./fesm2022/softpak-components-spx-card.mjs"
53
56
  },
54
- "./spx-capitalize": {
55
- "types": "./spx-capitalize/index.d.ts",
56
- "default": "./fesm2022/softpak-components-spx-capitalize.mjs"
57
- },
58
57
  "./spx-change-details": {
59
58
  "types": "./spx-change-details/index.d.ts",
60
59
  "default": "./fesm2022/softpak-components-spx-change-details.mjs"
61
60
  },
62
- "./spx-check-digit": {
63
- "types": "./spx-check-digit/index.d.ts",
64
- "default": "./fesm2022/softpak-components-spx-check-digit.mjs"
65
- },
66
61
  "./spx-channel-selection": {
67
62
  "types": "./spx-channel-selection/index.d.ts",
68
63
  "default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
@@ -71,6 +66,10 @@
71
66
  "types": "./spx-form-section/index.d.ts",
72
67
  "default": "./fesm2022/softpak-components-spx-form-section.mjs"
73
68
  },
69
+ "./spx-check-digit": {
70
+ "types": "./spx-check-digit/index.d.ts",
71
+ "default": "./fesm2022/softpak-components-spx-check-digit.mjs"
72
+ },
74
73
  "./spx-form-view": {
75
74
  "types": "./spx-form-view/index.d.ts",
76
75
  "default": "./fesm2022/softpak-components-spx-form-view.mjs"
@@ -79,14 +78,14 @@
79
78
  "types": "./spx-helpers/index.d.ts",
80
79
  "default": "./fesm2022/softpak-components-spx-helpers.mjs"
81
80
  },
82
- "./spx-inputs": {
83
- "types": "./spx-inputs/index.d.ts",
84
- "default": "./fesm2022/softpak-components-spx-inputs.mjs"
85
- },
86
81
  "./spx-navigation": {
87
82
  "types": "./spx-navigation/index.d.ts",
88
83
  "default": "./fesm2022/softpak-components-spx-navigation.mjs"
89
84
  },
85
+ "./spx-inputs": {
86
+ "types": "./spx-inputs/index.d.ts",
87
+ "default": "./fesm2022/softpak-components-spx-inputs.mjs"
88
+ },
90
89
  "./spx-number-check": {
91
90
  "types": "./spx-number-check/index.d.ts",
92
91
  "default": "./fesm2022/softpak-components-spx-number-check.mjs"
@@ -107,14 +106,14 @@
107
106
  "types": "./spx-spinner/index.d.ts",
108
107
  "default": "./fesm2022/softpak-components-spx-spinner.mjs"
109
108
  },
110
- "./spx-stock-info": {
111
- "types": "./spx-stock-info/index.d.ts",
112
- "default": "./fesm2022/softpak-components-spx-stock-info.mjs"
113
- },
114
109
  "./spx-storage": {
115
110
  "types": "./spx-storage/index.d.ts",
116
111
  "default": "./fesm2022/softpak-components-spx-storage.mjs"
117
112
  },
113
+ "./spx-stock-info": {
114
+ "types": "./spx-stock-info/index.d.ts",
115
+ "default": "./fesm2022/softpak-components-spx-stock-info.mjs"
116
+ },
118
117
  "./spx-suggestion": {
119
118
  "types": "./spx-suggestion/index.d.ts",
120
119
  "default": "./fesm2022/softpak-components-spx-suggestion.mjs"
@@ -15,10 +15,10 @@ export declare class SpxAlertComponent {
15
15
  get isSeverityInfo(): boolean;
16
16
  get isSeveritySuccess(): boolean;
17
17
  get isSeverityWarning(): boolean;
18
- faCheck: import("@fortawesome/fontawesome-common-types").IconDefinition;
19
- faCircleInfo: import("@fortawesome/fontawesome-common-types").IconDefinition;
20
- faTriangleExclamation: import("@fortawesome/fontawesome-common-types").IconDefinition;
21
- faTimes: import("@fortawesome/fontawesome-common-types").IconDefinition;
18
+ faCheck: import("@fortawesome/free-solid-svg-icons").IconDefinition;
19
+ faCircleInfo: import("@fortawesome/free-solid-svg-icons").IconDefinition;
20
+ faTriangleExclamation: import("@fortawesome/free-solid-svg-icons").IconDefinition;
21
+ faTimes: import("@fortawesome/free-solid-svg-icons").IconDefinition;
22
22
  componentDidLoad(): void;
23
23
  private prepareAutoClose;
24
24
  private _assignDefaultTitle;
@@ -1,16 +1,16 @@
1
1
  import { ApplicationRef, ChangeDetectorRef } from '@angular/core';
2
2
  import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
3
- import { Router } from '@angular/router';
4
3
  import { TranslateService } from '@ngx-translate/core';
5
4
  import { Deploy } from 'cordova-plugin-ionic/dist/ngx';
5
+ import { NavController } from '@ionic/angular/standalone';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class SpxAppUpdateComponent {
8
8
  private readonly deploy;
9
- private readonly router;
10
9
  private readonly changeDetector;
11
10
  private readonly applicationRef;
12
11
  private readonly translateService;
13
12
  private readonly formBuilder;
13
+ private readonly navController;
14
14
  spxHomeUrl: string;
15
15
  spxIsSignedIn: boolean;
16
16
  textCheckingForUpdates: string;
@@ -30,7 +30,7 @@ export declare class SpxAppUpdateComponent {
30
30
  percentage: number;
31
31
  syncTruckInterval: any | null;
32
32
  updateStatus: string;
33
- constructor(deploy: Deploy, router: Router, changeDetector: ChangeDetectorRef, applicationRef: ApplicationRef, translateService: TranslateService, formBuilder: FormBuilder);
33
+ constructor(deploy: Deploy, changeDetector: ChangeDetectorRef, applicationRef: ApplicationRef, translateService: TranslateService, formBuilder: FormBuilder, navController: NavController);
34
34
  get ctrlVersionNumber(): FormControl;
35
35
  get ctrlNextVersionNumber(): FormControl;
36
36
  get ctrlConfiguredChannel(): FormControl;
@@ -3,5 +3,6 @@ export declare enum SpxSeverityEnum {
3
3
  info = "info",
4
4
  success = "success",
5
5
  unknown = "unknown",
6
- warning = "warning"
6
+ warning = "warning",
7
+ primary = "primary"
7
8
  }
@@ -3,10 +3,10 @@ import { SpxValuePair } from './spx-value-interface';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SpxInputBoxComponent {
5
5
  private elRef;
6
- faEdit: import("@fortawesome/fontawesome-common-types").IconDefinition;
7
- faSearch: import("@fortawesome/fontawesome-common-types").IconDefinition;
8
- faQuestion: import("@fortawesome/fontawesome-common-types").IconDefinition;
9
- faTimes: import("@fortawesome/fontawesome-common-types").IconDefinition;
6
+ faEdit: import("@fortawesome/free-solid-svg-icons").IconDefinition;
7
+ faSearch: import("@fortawesome/free-solid-svg-icons").IconDefinition;
8
+ faQuestion: import("@fortawesome/free-solid-svg-icons").IconDefinition;
9
+ faTimes: import("@fortawesome/free-solid-svg-icons").IconDefinition;
10
10
  spxCompact?: boolean;
11
11
  spxFocused: boolean;
12
12
  spxLabel?: string;
@@ -0,0 +1,43 @@
1
+ import { ElementRef, OnInit } from '@angular/core';
2
+ import { SpxValuePair } from '../spx-value-interface';
3
+ import * as i0 from "@angular/core";
4
+ declare enum stepType {
5
+ years = "years",
6
+ months = "months",
7
+ days = "days"
8
+ }
9
+ export declare class SpxInputDateComponent implements OnInit {
10
+ spxMax: import("@angular/core").InputSignal<string>;
11
+ spxMin: import("@angular/core").InputSignal<string>;
12
+ spxReadonly: import("@angular/core").InputSignal<boolean | undefined>;
13
+ spxValidators: import("@angular/core").InputSignal<any[] | undefined>;
14
+ value: import("@angular/core").ModelSignal<SpxValuePair<string>>;
15
+ spxChange: import("@angular/core").OutputEmitterRef<SpxValuePair<any>>;
16
+ spxFocused: import("@angular/core").InputSignal<boolean>;
17
+ spxFocus: import("@angular/core").OutputEmitterRef<void>;
18
+ spxSelectedStep: import("@angular/core").WritableSignal<stepType>;
19
+ spxSelectDay: import("@angular/core").InputSignal<boolean>;
20
+ spxSelectMonth: import("@angular/core").InputSignal<boolean>;
21
+ selectedYear: import("@angular/core").WritableSignal<number | null>;
22
+ selectedMonth: import("@angular/core").WritableSignal<number | null>;
23
+ selectedDay: import("@angular/core").WritableSignal<number | null>;
24
+ yearInputComponent: import("@angular/core").Signal<ElementRef<any>>;
25
+ monthInputComponent: import("@angular/core").Signal<ElementRef<any>>;
26
+ dayInputComponent: import("@angular/core").Signal<ElementRef<any>>;
27
+ spxSuggestionC: import("@angular/core").Signal<SpxValuePair<number>[]>;
28
+ handleFocus(selectedStep: string): void;
29
+ onModelChange(newValue: string, selectedStep: string): void;
30
+ spxSuggestions: import("@angular/core").InputSignal<{
31
+ years: SpxValuePair<number>[];
32
+ months: SpxValuePair<number>[];
33
+ days: SpxValuePair<number>[];
34
+ }>;
35
+ ngOnInit(): void;
36
+ handleSuggestionClick(value: number): void;
37
+ updateValueAndEmit(): void;
38
+ changeSelectedStep(): void;
39
+ private suggestYears;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpxInputDateComponent, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpxInputDateComponent, "spx-input-date", never, { "spxMax": { "alias": "spxMax"; "required": true; "isSignal": true; }; "spxMin": { "alias": "spxMin"; "required": true; "isSignal": true; }; "spxReadonly": { "alias": "spxReadonly"; "required": false; "isSignal": true; }; "spxValidators": { "alias": "spxValidators"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "spxFocused": { "alias": "spxFocused"; "required": false; "isSignal": true; }; "spxSelectDay": { "alias": "spxSelectDay"; "required": false; "isSignal": true; }; "spxSelectMonth": { "alias": "spxSelectMonth"; "required": false; "isSignal": true; }; "spxSuggestions": { "alias": "spxSuggestions"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "spxChange": "spxChange"; "spxFocus": "spxFocus"; }, never, never, true, never>;
42
+ }
43
+ export {};
@@ -1,7 +1,7 @@
1
- import { ElementRef, EventEmitter } from '@angular/core';
1
+ import { ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { SpxValuePair } from './spx-value-interface';
3
3
  import * as i0 from "@angular/core";
4
- export declare class SpxInputFloatComponent {
4
+ export declare class SpxInputFloatComponent implements OnInit, OnChanges {
5
5
  protected internalValue: {
6
6
  first: number | null;
7
7
  second: number | null;
@@ -19,10 +19,11 @@ export declare class SpxInputFloatComponent {
19
19
  tick: {};
20
20
  firstInputRef?: ElementRef<HTMLInputElement>;
21
21
  spxSetFocus(): void;
22
- componentDidLoad(): void;
22
+ ngOnInit(): void;
23
+ ngOnChanges(changes: SimpleChanges): void;
23
24
  handleFocus(): void;
24
25
  handleSetValue(newValue: SpxValuePair<any>): void;
25
- handleInput(event: any, position: 1 | 2): void;
26
+ handleInput(value: any, position: 1 | 2): void;
26
27
  isNumeric(value: string): boolean;
27
28
  static ɵfac: i0.ɵɵFactoryDeclaration<SpxInputFloatComponent, never>;
28
29
  static ɵcmp: i0.ɵɵComponentDeclaration<SpxInputFloatComponent, "spx-input-float", never, { "spxName": { "alias": "spxName"; "required": false; }; "spxAutofocus": { "alias": "spxAutofocus"; "required": false; }; "spxReadonly": { "alias": "spxReadonly"; "required": false; }; "spxValidators": { "alias": "spxValidators"; "required": false; }; "spxFocused": { "alias": "spxFocused"; "required": false; }; "spxStep": { "alias": "spxStep"; "required": false; }; "value": { "alias": "value"; "required": false; }; "spxWasInternalUpdate": { "alias": "spxWasInternalUpdate"; "required": false; }; "tick": { "alias": "tick"; "required": false; }; }, { "spxChange": "spxChange"; "spxFocus": "spxFocus"; }, never, never, true, never>;
@@ -4,6 +4,7 @@ import * as i0 from "@angular/core";
4
4
  export declare class SpxInputTextComponent {
5
5
  spxName?: string;
6
6
  spxAutofocus: boolean;
7
+ spxAutocomplete?: string;
7
8
  spxInputMode?: string;
8
9
  spxPattern?: string;
9
10
  spxSuggestions: SpxValuePair<boolean | number | string>[];
@@ -26,5 +27,5 @@ export declare class SpxInputTextComponent {
26
27
  handleSuggestionClick(value: any): void;
27
28
  handleKeyUp(): void;
28
29
  static ɵfac: i0.ɵɵFactoryDeclaration<SpxInputTextComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<SpxInputTextComponent, "spx-input-text", never, { "spxName": { "alias": "spxName"; "required": false; }; "spxAutofocus": { "alias": "spxAutofocus"; "required": false; }; "spxInputMode": { "alias": "spxInputMode"; "required": false; }; "spxPattern": { "alias": "spxPattern"; "required": false; }; "spxSuggestions": { "alias": "spxSuggestions"; "required": false; }; "spxReadonly": { "alias": "spxReadonly"; "required": false; }; "spxValidators": { "alias": "spxValidators"; "required": false; }; "spxCapitalize": { "alias": "spxCapitalize"; "required": false; }; "spxFocused": { "alias": "spxFocused"; "required": false; }; "spxType": { "alias": "spxType"; "required": false; }; "value": { "alias": "value"; "required": false; }; "spxWasInternalUpdate": { "alias": "spxWasInternalUpdate"; "required": false; }; }, { "spxBlurFromChild": "spxBlurFromChild"; "spxChange": "spxChange"; "spxFocus": "spxFocus"; }, never, never, true, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpxInputTextComponent, "spx-input-text", never, { "spxName": { "alias": "spxName"; "required": false; }; "spxAutofocus": { "alias": "spxAutofocus"; "required": false; }; "spxAutocomplete": { "alias": "spxAutocomplete"; "required": false; }; "spxInputMode": { "alias": "spxInputMode"; "required": false; }; "spxPattern": { "alias": "spxPattern"; "required": false; }; "spxSuggestions": { "alias": "spxSuggestions"; "required": false; }; "spxReadonly": { "alias": "spxReadonly"; "required": false; }; "spxValidators": { "alias": "spxValidators"; "required": false; }; "spxCapitalize": { "alias": "spxCapitalize"; "required": false; }; "spxFocused": { "alias": "spxFocused"; "required": false; }; "spxType": { "alias": "spxType"; "required": false; }; "value": { "alias": "value"; "required": false; }; "spxWasInternalUpdate": { "alias": "spxWasInternalUpdate"; "required": false; }; }, { "spxBlurFromChild": "spxBlurFromChild"; "spxChange": "spxChange"; "spxFocus": "spxFocus"; }, never, never, true, never>;
30
31
  }
@@ -7,7 +7,7 @@ export declare class SpxInputTimeModalComponent {
7
7
  view: 'hours' | 'minutes';
8
8
  value: number;
9
9
  change: EventEmitter<number>;
10
- faXmark: import("@fortawesome/fontawesome-common-types").IconDefinition;
10
+ faXmark: import("@fortawesome/free-solid-svg-icons").IconDefinition;
11
11
  hourOptions: number[];
12
12
  minuteOptions: number[];
13
13
  typeError: SpxSeverityEnum;
@@ -1,7 +1,7 @@
1
1
  import { ElementRef, EventEmitter } from '@angular/core';
2
2
  import { SpxValuePair } from './spx-value-interface';
3
3
  import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
4
- import { ModalController } from '@ionic/angular/standalone';
4
+ import { ModalController } from '@ionic/angular';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class SpxInputTimeComponent {
7
7
  private modalController;
@@ -13,6 +13,7 @@ export declare class SpxInputComponent {
13
13
  spxMin?: string;
14
14
  spxName: string;
15
15
  spxReadonly: boolean;
16
+ spxAutocomplete?: string;
16
17
  spxAutofocus: boolean;
17
18
  spxInputMode?: string;
18
19
  spxPattern?: string;
@@ -64,5 +65,5 @@ export declare class SpxInputComponent {
64
65
  registerOnChange(fn: (value: any) => void): void;
65
66
  registerOnTouched(fn: () => void): void;
66
67
  static ɵfac: i0.ɵɵFactoryDeclaration<SpxInputComponent, never>;
67
- static ɵcmp: i0.ɵɵComponentDeclaration<SpxInputComponent, "spx-input", never, { "spxLabel": { "alias": "spxLabel"; "required": false; }; "spxMax": { "alias": "spxMax"; "required": false; }; "spxMin": { "alias": "spxMin"; "required": false; }; "spxName": { "alias": "spxName"; "required": false; }; "spxReadonly": { "alias": "spxReadonly"; "required": false; }; "spxAutofocus": { "alias": "spxAutofocus"; "required": false; }; "spxInputMode": { "alias": "spxInputMode"; "required": false; }; "spxPattern": { "alias": "spxPattern"; "required": false; }; "spxRequired": { "alias": "spxRequired"; "required": false; }; "spxSelectMonth": { "alias": "spxSelectMonth"; "required": false; }; "spxSelectDay": { "alias": "spxSelectDay"; "required": false; }; "spxShowEdit": { "alias": "spxShowEdit"; "required": false; }; "spxShowHelp": { "alias": "spxShowHelp"; "required": false; }; "spxShowLabel": { "alias": "spxShowLabel"; "required": false; }; "spxCompact": { "alias": "spxCompact"; "required": false; }; "spxShowClear": { "alias": "spxShowClear"; "required": false; }; "spxShowSearch": { "alias": "spxShowSearch"; "required": false; }; "spxShowValidationMessages": { "alias": "spxShowValidationMessages"; "required": false; }; "spxStep": { "alias": "spxStep"; "required": false; }; "spxSuggestions": { "alias": "spxSuggestions"; "required": false; }; "spxType": { "alias": "spxType"; "required": false; }; "spxValidators": { "alias": "spxValidators"; "required": false; }; "value": { "alias": "value"; "required": false; }; "spxCapitalize": { "alias": "spxCapitalize"; "required": false; }; "spxFocused": { "alias": "spxFocused"; "required": false; }; }, { "spxBlur": "spxBlur"; "spxClear": "spxClear"; "spxChange": "spxChange"; "spxFocus": "spxFocus"; "spxEdit": "spxEdit"; "spxHelp": "spxHelp"; "spxSearch": "spxSearch"; }, never, ["*"], true, never>;
68
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpxInputComponent, "spx-input", never, { "spxLabel": { "alias": "spxLabel"; "required": false; }; "spxMax": { "alias": "spxMax"; "required": false; }; "spxMin": { "alias": "spxMin"; "required": false; }; "spxName": { "alias": "spxName"; "required": false; }; "spxReadonly": { "alias": "spxReadonly"; "required": false; }; "spxAutocomplete": { "alias": "spxAutocomplete"; "required": false; }; "spxAutofocus": { "alias": "spxAutofocus"; "required": false; }; "spxInputMode": { "alias": "spxInputMode"; "required": false; }; "spxPattern": { "alias": "spxPattern"; "required": false; }; "spxRequired": { "alias": "spxRequired"; "required": false; }; "spxSelectMonth": { "alias": "spxSelectMonth"; "required": false; }; "spxSelectDay": { "alias": "spxSelectDay"; "required": false; }; "spxShowEdit": { "alias": "spxShowEdit"; "required": false; }; "spxShowHelp": { "alias": "spxShowHelp"; "required": false; }; "spxShowLabel": { "alias": "spxShowLabel"; "required": false; }; "spxCompact": { "alias": "spxCompact"; "required": false; }; "spxShowClear": { "alias": "spxShowClear"; "required": false; }; "spxShowSearch": { "alias": "spxShowSearch"; "required": false; }; "spxShowValidationMessages": { "alias": "spxShowValidationMessages"; "required": false; }; "spxStep": { "alias": "spxStep"; "required": false; }; "spxSuggestions": { "alias": "spxSuggestions"; "required": false; }; "spxType": { "alias": "spxType"; "required": false; }; "spxValidators": { "alias": "spxValidators"; "required": false; }; "value": { "alias": "value"; "required": false; }; "spxCapitalize": { "alias": "spxCapitalize"; "required": false; }; "spxFocused": { "alias": "spxFocused"; "required": false; }; }, { "spxBlur": "spxBlur"; "spxClear": "spxClear"; "spxChange": "spxChange"; "spxFocus": "spxFocus"; "spxEdit": "spxEdit"; "spxHelp": "spxHelp"; "spxSearch": "spxSearch"; }, never, ["*"], true, never>;
68
69
  }
@@ -1,9 +1,9 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class SpxSuggestionComponent {
3
- spxDisabled: boolean;
4
- spxFocused: boolean;
5
- spxSelected: boolean;
6
- spxTabbable: boolean;
3
+ spxDisabled: import("@angular/core").InputSignal<boolean | undefined>;
4
+ spxFocused: import("@angular/core").InputSignal<boolean | undefined>;
5
+ spxSelected: import("@angular/core").InputSignal<boolean | undefined>;
6
+ spxTabbable: import("@angular/core").InputSignal<boolean | undefined>;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<SpxSuggestionComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<SpxSuggestionComponent, "spx-suggestion", never, { "spxDisabled": { "alias": "spxDisabled"; "required": false; }; "spxFocused": { "alias": "spxFocused"; "required": false; }; "spxSelected": { "alias": "spxSelected"; "required": false; }; "spxTabbable": { "alias": "spxTabbable"; "required": false; }; }, {}, never, ["*"], true, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpxSuggestionComponent, "spx-suggestion", never, { "spxDisabled": { "alias": "spxDisabled"; "required": false; "isSignal": true; }; "spxFocused": { "alias": "spxFocused"; "required": false; "isSignal": true; }; "spxSelected": { "alias": "spxSelected"; "required": false; "isSignal": true; }; "spxTabbable": { "alias": "spxTabbable"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
9
9
  }