@softpak/components 20.6.11 → 20.7.0
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.
- package/fesm2022/softpak-components-spx-inputs.mjs +60 -36
- package/fesm2022/softpak-components-spx-inputs.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-validation-messages.mjs +2 -2
- package/fesm2022/softpak-components-spx-validation-messages.mjs.map +1 -1
- package/package.json +37 -37
- package/spx-inputs/index.d.ts +9 -1
|
@@ -86,11 +86,11 @@ class SpxValidationMessagesComponent {
|
|
|
86
86
|
get hidden() { return !this.show(); }
|
|
87
87
|
get block() { return this.show(); }
|
|
88
88
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: SpxValidationMessagesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
89
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.2", type: SpxValidationMessagesComponent, isStandalone: true, selector: "spx-validation-messages", inputs: { errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: true, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: true, transformFunction: null }, formControlI: { classPropertyName: "formControlI", publicName: "formControlI", isSignal: true, isRequired: false, transformFunction: null }, fieldLabel: { classPropertyName: "fieldLabel", publicName: "fieldLabel", isSignal: true, isRequired: false, transformFunction: null }, submitTried: { classPropertyName: "submitTried", publicName: "submitTried", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.hidden": "this.hidden", "class.block": "this.block" } }, ngImport: i0, template: "\n@if (show()) {\n <div class=\"bg-red-600 rounded-b\">\n @if (errors()[\"maxlength\"]) {\n <div>{{ textTooLong() }}</div>\n }\n @if (errors()[\"minlength\"]) {\n <div>{{ textTooShort() }}</div>\n }\n @if (errors()[\"max\"]) {\n <div>{{ textTooHigh() }}</div>\n }\n @if (errors()[\"min\"]) {\n <div>{{ textTooLow() }}</div>\n }\n @if (errors()[\"pattern\"]) {\n <div>{{ textPatternNotValid() }}</div>\n }\n @if (errors()[\"required\"]) {\n <div>{{ textRequired() }}</div>\n }\n @if (errors()[\"year\"]) {\n <div>{{ textChoosePast() }}</div>\n }\n @if (errors()[\"yearFuture\"]) {\n <div>{{ textChooseFuture() }}</div>\n }\n @if (errors()[\"month\"]) {\n <div>{{ textChooseValidMonth() }}</div>\n }\n @if (errors()[\"future\"]) {\n <div>{{ textDateMayNotBeFuture() }}</div>\n }\n @if (errors()[\"past\"]) {\n <div>{{ textDateMayNotBePast() }}</div>\n }\n @if (errors()[\"invalidCode\"]) {\n <div>{{ textInvalidCode() }}</div>\n }\n </div>\n}", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
89
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.2", type: SpxValidationMessagesComponent, isStandalone: true, selector: "spx-validation-messages", inputs: { errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: true, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: true, transformFunction: null }, formControlI: { classPropertyName: "formControlI", publicName: "formControlI", isSignal: true, isRequired: false, transformFunction: null }, fieldLabel: { classPropertyName: "fieldLabel", publicName: "fieldLabel", isSignal: true, isRequired: false, transformFunction: null }, submitTried: { classPropertyName: "submitTried", publicName: "submitTried", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.hidden": "this.hidden", "class.block": "this.block" } }, ngImport: i0, template: "\n@if (show()) {\n <div class=\"bg-red-600 rounded-b p-3\">\n @if (errors()[\"maxlength\"]) {\n <div>{{ textTooLong() }}</div>\n }\n @if (errors()[\"minlength\"]) {\n <div>{{ textTooShort() }}</div>\n }\n @if (errors()[\"max\"]) {\n <div>{{ textTooHigh() }}</div>\n }\n @if (errors()[\"min\"]) {\n <div>{{ textTooLow() }}</div>\n }\n @if (errors()[\"pattern\"]) {\n <div>{{ textPatternNotValid() }}</div>\n }\n @if (errors()[\"required\"]) {\n <div>{{ textRequired() }}</div>\n }\n @if (errors()[\"year\"]) {\n <div>{{ textChoosePast() }}</div>\n }\n @if (errors()[\"yearFuture\"]) {\n <div>{{ textChooseFuture() }}</div>\n }\n @if (errors()[\"month\"]) {\n <div>{{ textChooseValidMonth() }}</div>\n }\n @if (errors()[\"future\"]) {\n <div>{{ textDateMayNotBeFuture() }}</div>\n }\n @if (errors()[\"past\"]) {\n <div>{{ textDateMayNotBePast() }}</div>\n }\n @if (errors()[\"invalidCode\"]) {\n <div>{{ textInvalidCode() }}</div>\n }\n </div>\n}", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
90
90
|
}
|
|
91
91
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: SpxValidationMessagesComponent, decorators: [{
|
|
92
92
|
type: Component,
|
|
93
|
-
args: [{ selector: 'spx-validation-messages', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "\n@if (show()) {\n <div class=\"bg-red-600 rounded-b\">\n @if (errors()[\"maxlength\"]) {\n <div>{{ textTooLong() }}</div>\n }\n @if (errors()[\"minlength\"]) {\n <div>{{ textTooShort() }}</div>\n }\n @if (errors()[\"max\"]) {\n <div>{{ textTooHigh() }}</div>\n }\n @if (errors()[\"min\"]) {\n <div>{{ textTooLow() }}</div>\n }\n @if (errors()[\"pattern\"]) {\n <div>{{ textPatternNotValid() }}</div>\n }\n @if (errors()[\"required\"]) {\n <div>{{ textRequired() }}</div>\n }\n @if (errors()[\"year\"]) {\n <div>{{ textChoosePast() }}</div>\n }\n @if (errors()[\"yearFuture\"]) {\n <div>{{ textChooseFuture() }}</div>\n }\n @if (errors()[\"month\"]) {\n <div>{{ textChooseValidMonth() }}</div>\n }\n @if (errors()[\"future\"]) {\n <div>{{ textDateMayNotBeFuture() }}</div>\n }\n @if (errors()[\"past\"]) {\n <div>{{ textDateMayNotBePast() }}</div>\n }\n @if (errors()[\"invalidCode\"]) {\n <div>{{ textInvalidCode() }}</div>\n }\n </div>\n}" }]
|
|
93
|
+
args: [{ selector: 'spx-validation-messages', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "\n@if (show()) {\n <div class=\"bg-red-600 rounded-b p-3\">\n @if (errors()[\"maxlength\"]) {\n <div>{{ textTooLong() }}</div>\n }\n @if (errors()[\"minlength\"]) {\n <div>{{ textTooShort() }}</div>\n }\n @if (errors()[\"max\"]) {\n <div>{{ textTooHigh() }}</div>\n }\n @if (errors()[\"min\"]) {\n <div>{{ textTooLow() }}</div>\n }\n @if (errors()[\"pattern\"]) {\n <div>{{ textPatternNotValid() }}</div>\n }\n @if (errors()[\"required\"]) {\n <div>{{ textRequired() }}</div>\n }\n @if (errors()[\"year\"]) {\n <div>{{ textChoosePast() }}</div>\n }\n @if (errors()[\"yearFuture\"]) {\n <div>{{ textChooseFuture() }}</div>\n }\n @if (errors()[\"month\"]) {\n <div>{{ textChooseValidMonth() }}</div>\n }\n @if (errors()[\"future\"]) {\n <div>{{ textDateMayNotBeFuture() }}</div>\n }\n @if (errors()[\"past\"]) {\n <div>{{ textDateMayNotBePast() }}</div>\n }\n @if (errors()[\"invalidCode\"]) {\n <div>{{ textInvalidCode() }}</div>\n }\n </div>\n}" }]
|
|
94
94
|
}], propDecorators: { hidden: [{
|
|
95
95
|
type: HostBinding,
|
|
96
96
|
args: ['class.hidden']
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softpak-components-spx-validation-messages.mjs","sources":["../../../../projects/softpak/components/spx-validation-messages/spx-validation-messages.component.ts","../../../../projects/softpak/components/spx-validation-messages/spx-validation-messages.component.html","../../../../projects/softpak/components/spx-validation-messages/softpak-components-spx-validation-messages.ts"],"sourcesContent":["import { AbstractControl, ValidationErrors } from '@angular/forms';\nimport { ChangeDetectionStrategy, Component, HostBinding, computed, effect, inject, input, signal } from '@angular/core';\nimport { spxTextChooseFuture, spxTextChoosePast, spxTextChooseValidMonth, spxTextDateMayNotBeFuture, spxTextDateMayNotBePast, spxTextInvalidCode, spxTextPatternNotValid, spxTextRequired, spxTextTooHigh, spxTextTooLong, spxTextTooLow, spxTextTooShort } from '@softpak/components/spx-translate';\n\nimport { TranslateService } from '@ngx-translate/core';\n\n@Component({\n selector: 'spx-validation-messages',\n standalone: true,\n templateUrl: './spx-validation-messages.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SpxValidationMessagesComponent {\n @HostBinding('class.hidden') get hidden() { return !this.show(); }\n @HostBinding('class.block') get block() { return this.show(); }\n public readonly errors = input.required<ValidationErrors>();\n public readonly touched = input.required<boolean>();\n public readonly formControlI = input<AbstractControl<any, any> | undefined>(undefined);\n public readonly fieldLabel = input<string | undefined>(undefined);\n public readonly submitTried = input<boolean | undefined>(undefined);\n protected readonly show = signal(false);\n private readonly shouldShow = computed(() => this.formControlI() && this.errors() && (this.touched() || this.submitTried()));\n\n private pending: ReturnType<typeof setTimeout> | null = null;\n private token = 0;\n\n // Short delay to avoid growing DOM while clicking on something.\n private _delayShow = effect(() => {\n const want = this.shouldShow();\n\n // Invalidate any older timeouts.\n this.token++;\n\n // Cancel any in-flight timeout.\n if (this.pending) {\n clearTimeout(this.pending);\n this.pending = null;\n }\n\n if (want) {\n const myToken = this.token;\n this.pending = setTimeout(() => {\n // Only set true if no newer change happened AND the condition still holds.\n if (myToken === this.token && this.shouldShow()) {\n this.show.set(true);\n }\n }, 500); // your delay\n } else {\n // Turn off immediately.\n this.show.set(false);\n }\n\n // Clean up if the effect is torn down.\n onCleanup(() => {\n if (this.pending) {\n clearTimeout(this.pending);\n this.pending = null;\n }\n });\n });\n\n translateService = inject(TranslateService);\n\n textTooLong = computed(() => {\n return this.translateService.instant(spxTextTooLong, { fieldLabel: this.fieldLabel(), error: this.errors()[\"maxlength\"].requiredLength });\n });\n\n textTooShort = computed(() => {\n return this.translateService.instant(spxTextTooShort, { fieldLabel: this.fieldLabel(), error: this.errors()[\"minlength\"].requiredLength });\n });\n\n textTooHigh = computed(() => {\n return this.translateService.instant(spxTextTooHigh, { fieldLabel: this.fieldLabel(), error: this.errors()[\"max\"].max });\n });\n\n textTooLow = computed(() => {\n return this.translateService.instant(spxTextTooLow, { fieldLabel: this.fieldLabel(), error: this.errors()[\"min\"].min });\n });\n\n textPatternNotValid = computed(() => {\n return this.translateService.instant(spxTextPatternNotValid, { fieldLabel: this.fieldLabel() });\n });\n\n textRequired = computed(() => {\n return this.translateService.instant(spxTextRequired, { fieldLabel: this.fieldLabel() });\n });\n\n textChoosePast = computed(() => {\n return this.translateService.instant(spxTextChoosePast);\n });\n\n textChooseFuture = computed(() => {\n return this.translateService.instant(spxTextChooseFuture);\n });\n\n textChooseValidMonth = computed(() => {\n return this.translateService.instant(spxTextChooseValidMonth);\n });\n\n textDateMayNotBeFuture = computed(() => {\n return this.translateService.instant(spxTextDateMayNotBeFuture);\n });\n\n textDateMayNotBePast = computed(() => {\n return this.translateService.instant(spxTextDateMayNotBePast);\n });\n\n textInvalidCode = computed(() => {\n return this.translateService.instant(spxTextInvalidCode, { codeName: this.errors()[\"invalidCode\"].name, codeCode: this.errors()[\"invalidCode\"].code });\n });\n\n}\nfunction onCleanup(arg0: () => void) {\n throw new Error('Function not implemented.');\n}\n\n","\n@if (show()) {\n <div class=\"bg-red-600 rounded-b\">\n @if (errors()[\"maxlength\"]) {\n <div>{{ textTooLong() }}</div>\n }\n @if (errors()[\"minlength\"]) {\n <div>{{ textTooShort() }}</div>\n }\n @if (errors()[\"max\"]) {\n <div>{{ textTooHigh() }}</div>\n }\n @if (errors()[\"min\"]) {\n <div>{{ textTooLow() }}</div>\n }\n @if (errors()[\"pattern\"]) {\n <div>{{ textPatternNotValid() }}</div>\n }\n @if (errors()[\"required\"]) {\n <div>{{ textRequired() }}</div>\n }\n @if (errors()[\"year\"]) {\n <div>{{ textChoosePast() }}</div>\n }\n @if (errors()[\"yearFuture\"]) {\n <div>{{ textChooseFuture() }}</div>\n }\n @if (errors()[\"month\"]) {\n <div>{{ textChooseValidMonth() }}</div>\n }\n @if (errors()[\"future\"]) {\n <div>{{ textDateMayNotBeFuture() }}</div>\n }\n @if (errors()[\"past\"]) {\n <div>{{ textDateMayNotBePast() }}</div>\n }\n @if (errors()[\"invalidCode\"]) {\n <div>{{ textInvalidCode() }}</div>\n }\n </div>\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAYa,8BAA8B,CAAA;AAN3C,IAAA,WAAA,GAAA;AASkB,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,iDAAoB;AAC3C,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,QAAQ,kDAAW;AACnC,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAwC,SAAS,wDAAC;AACtE,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAqB,SAAS,sDAAC;AACjD,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAsB,SAAS,uDAAC;AAChD,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,KAAK,gDAAC;AACtB,QAAA,IAAA,CAAA,UAAU,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,YAAY,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,YAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAC;QAEpH,IAAA,CAAA,OAAO,GAAyC,IAAI;QACpD,IAAA,CAAA,KAAK,GAAG,CAAC;;AAGT,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,MAAK;AAC/B,YAAA,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE;;YAG9B,IAAI,CAAC,KAAK,EAAE;;AAGZ,YAAA,IAAI,IAAI,CAAC,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EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FD5BY,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAN1C,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,yBAAyB,EAAA,UAAA,EACvB,IAAI,EAAA,eAAA,EAEC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,4+BAAA,EAAA;8BAGd,MAAM,EAAA,CAAA;sBAAtC,WAAW;uBAAC,cAAc;gBACK,KAAK,EAAA,CAAA;sBAApC,WAAW;uBAAC,aAAa;;AAkG5B,SAAS,SAAS,CAAC,IAAgB,EAAA;AACjC,IAAA,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC;AAC9C;;AElHA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"softpak-components-spx-validation-messages.mjs","sources":["../../../../projects/softpak/components/spx-validation-messages/spx-validation-messages.component.ts","../../../../projects/softpak/components/spx-validation-messages/spx-validation-messages.component.html","../../../../projects/softpak/components/spx-validation-messages/softpak-components-spx-validation-messages.ts"],"sourcesContent":["import { AbstractControl, ValidationErrors } from '@angular/forms';\nimport { ChangeDetectionStrategy, Component, HostBinding, computed, effect, inject, input, signal } from '@angular/core';\nimport { spxTextChooseFuture, spxTextChoosePast, spxTextChooseValidMonth, spxTextDateMayNotBeFuture, spxTextDateMayNotBePast, spxTextInvalidCode, spxTextPatternNotValid, spxTextRequired, spxTextTooHigh, spxTextTooLong, spxTextTooLow, spxTextTooShort } from '@softpak/components/spx-translate';\n\nimport { TranslateService } from '@ngx-translate/core';\n\n@Component({\n selector: 'spx-validation-messages',\n standalone: true,\n templateUrl: './spx-validation-messages.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SpxValidationMessagesComponent {\n @HostBinding('class.hidden') get hidden() { return !this.show(); }\n @HostBinding('class.block') get block() { return this.show(); }\n public readonly errors = input.required<ValidationErrors>();\n public readonly touched = input.required<boolean>();\n public readonly formControlI = input<AbstractControl<any, any> | undefined>(undefined);\n public readonly fieldLabel = input<string | undefined>(undefined);\n public readonly submitTried = input<boolean | undefined>(undefined);\n protected readonly show = signal(false);\n private readonly shouldShow = computed(() => this.formControlI() && this.errors() && (this.touched() || this.submitTried()));\n\n private pending: ReturnType<typeof setTimeout> | null = null;\n private token = 0;\n\n // Short delay to avoid growing DOM while clicking on something.\n private _delayShow = effect(() => {\n const want = this.shouldShow();\n\n // Invalidate any older timeouts.\n this.token++;\n\n // Cancel any in-flight timeout.\n if (this.pending) {\n clearTimeout(this.pending);\n this.pending = null;\n }\n\n if (want) {\n const myToken = this.token;\n this.pending = setTimeout(() => {\n // Only set true if no newer change happened AND the condition still holds.\n if (myToken === this.token && this.shouldShow()) {\n this.show.set(true);\n }\n }, 500); // your delay\n } else {\n // Turn off immediately.\n this.show.set(false);\n }\n\n // Clean up if the effect is torn down.\n onCleanup(() => {\n if (this.pending) {\n clearTimeout(this.pending);\n this.pending = null;\n }\n });\n });\n\n translateService = inject(TranslateService);\n\n textTooLong = computed(() => {\n return this.translateService.instant(spxTextTooLong, { fieldLabel: this.fieldLabel(), error: this.errors()[\"maxlength\"].requiredLength });\n });\n\n textTooShort = computed(() => {\n return this.translateService.instant(spxTextTooShort, { fieldLabel: this.fieldLabel(), error: this.errors()[\"minlength\"].requiredLength });\n });\n\n textTooHigh = computed(() => {\n return this.translateService.instant(spxTextTooHigh, { fieldLabel: this.fieldLabel(), error: this.errors()[\"max\"].max });\n });\n\n textTooLow = computed(() => {\n return this.translateService.instant(spxTextTooLow, { fieldLabel: this.fieldLabel(), error: this.errors()[\"min\"].min });\n });\n\n textPatternNotValid = computed(() => {\n return this.translateService.instant(spxTextPatternNotValid, { fieldLabel: this.fieldLabel() });\n });\n\n textRequired = computed(() => {\n return this.translateService.instant(spxTextRequired, { fieldLabel: this.fieldLabel() });\n });\n\n textChoosePast = computed(() => {\n return this.translateService.instant(spxTextChoosePast);\n });\n\n textChooseFuture = computed(() => {\n return this.translateService.instant(spxTextChooseFuture);\n });\n\n textChooseValidMonth = computed(() => {\n return this.translateService.instant(spxTextChooseValidMonth);\n });\n\n textDateMayNotBeFuture = computed(() => {\n return this.translateService.instant(spxTextDateMayNotBeFuture);\n });\n\n textDateMayNotBePast = computed(() => {\n return this.translateService.instant(spxTextDateMayNotBePast);\n });\n\n textInvalidCode = computed(() => {\n return this.translateService.instant(spxTextInvalidCode, { codeName: this.errors()[\"invalidCode\"].name, codeCode: this.errors()[\"invalidCode\"].code });\n });\n\n}\nfunction onCleanup(arg0: () => void) {\n throw new Error('Function not implemented.');\n}\n\n","\n@if (show()) {\n <div class=\"bg-red-600 rounded-b p-3\">\n @if (errors()[\"maxlength\"]) {\n <div>{{ textTooLong() }}</div>\n }\n @if (errors()[\"minlength\"]) {\n <div>{{ textTooShort() }}</div>\n }\n @if (errors()[\"max\"]) {\n <div>{{ textTooHigh() }}</div>\n }\n @if (errors()[\"min\"]) {\n <div>{{ textTooLow() }}</div>\n }\n @if (errors()[\"pattern\"]) {\n <div>{{ textPatternNotValid() }}</div>\n }\n @if (errors()[\"required\"]) {\n <div>{{ textRequired() }}</div>\n }\n @if (errors()[\"year\"]) {\n <div>{{ textChoosePast() }}</div>\n }\n @if (errors()[\"yearFuture\"]) {\n <div>{{ textChooseFuture() }}</div>\n }\n @if (errors()[\"month\"]) {\n <div>{{ textChooseValidMonth() }}</div>\n }\n @if (errors()[\"future\"]) {\n <div>{{ textDateMayNotBeFuture() }}</div>\n }\n @if (errors()[\"past\"]) {\n <div>{{ textDateMayNotBePast() }}</div>\n }\n @if (errors()[\"invalidCode\"]) {\n <div>{{ textInvalidCode() }}</div>\n }\n </div>\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAYa,8BAA8B,CAAA;AAN3C,IAAA,WAAA,GAAA;AASkB,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,iDAAoB;AAC3C,QAAA,IAAA,CAAA,OAAO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AC,2BAA2B,CAAC;AAC9C;;AElHA;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softpak/components",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.7.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "20.x.x",
|
|
@@ -32,6 +32,14 @@
|
|
|
32
32
|
"types": "./index.d.ts",
|
|
33
33
|
"default": "./fesm2022/softpak-components.mjs"
|
|
34
34
|
},
|
|
35
|
+
"./spx-alert": {
|
|
36
|
+
"types": "./spx-alert/index.d.ts",
|
|
37
|
+
"default": "./fesm2022/softpak-components-spx-alert.mjs"
|
|
38
|
+
},
|
|
39
|
+
"./spx-app-expiry": {
|
|
40
|
+
"types": "./spx-app-expiry/index.d.ts",
|
|
41
|
+
"default": "./fesm2022/softpak-components-spx-app-expiry.mjs"
|
|
42
|
+
},
|
|
35
43
|
"./spx-app-configuration": {
|
|
36
44
|
"types": "./spx-app-configuration/index.d.ts",
|
|
37
45
|
"default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
|
|
@@ -40,13 +48,9 @@
|
|
|
40
48
|
"types": "./spx-404-page/index.d.ts",
|
|
41
49
|
"default": "./fesm2022/softpak-components-spx-404-page.mjs"
|
|
42
50
|
},
|
|
43
|
-
"./spx-
|
|
44
|
-
"types": "./spx-
|
|
45
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
46
|
-
},
|
|
47
|
-
"./spx-app-expiry": {
|
|
48
|
-
"types": "./spx-app-expiry/index.d.ts",
|
|
49
|
-
"default": "./fesm2022/softpak-components-spx-app-expiry.mjs"
|
|
51
|
+
"./spx-capitalize": {
|
|
52
|
+
"types": "./spx-capitalize/index.d.ts",
|
|
53
|
+
"default": "./fesm2022/softpak-components-spx-capitalize.mjs"
|
|
50
54
|
},
|
|
51
55
|
"./spx-button": {
|
|
52
56
|
"types": "./spx-button/index.d.ts",
|
|
@@ -56,22 +60,18 @@
|
|
|
56
60
|
"types": "./spx-card/index.d.ts",
|
|
57
61
|
"default": "./fesm2022/softpak-components-spx-card.mjs"
|
|
58
62
|
},
|
|
59
|
-
"./spx-capitalize": {
|
|
60
|
-
"types": "./spx-capitalize/index.d.ts",
|
|
61
|
-
"default": "./fesm2022/softpak-components-spx-capitalize.mjs"
|
|
62
|
-
},
|
|
63
63
|
"./spx-change-details": {
|
|
64
64
|
"types": "./spx-change-details/index.d.ts",
|
|
65
65
|
"default": "./fesm2022/softpak-components-spx-change-details.mjs"
|
|
66
66
|
},
|
|
67
|
-
"./spx-channel-selection": {
|
|
68
|
-
"types": "./spx-channel-selection/index.d.ts",
|
|
69
|
-
"default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
|
|
70
|
-
},
|
|
71
67
|
"./spx-check-digit": {
|
|
72
68
|
"types": "./spx-check-digit/index.d.ts",
|
|
73
69
|
"default": "./fesm2022/softpak-components-spx-check-digit.mjs"
|
|
74
70
|
},
|
|
71
|
+
"./spx-channel-selection": {
|
|
72
|
+
"types": "./spx-channel-selection/index.d.ts",
|
|
73
|
+
"default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
|
|
74
|
+
},
|
|
75
75
|
"./spx-confirm": {
|
|
76
76
|
"types": "./spx-confirm/index.d.ts",
|
|
77
77
|
"default": "./fesm2022/softpak-components-spx-confirm.mjs"
|
|
@@ -96,10 +96,6 @@
|
|
|
96
96
|
"types": "./spx-navigation/index.d.ts",
|
|
97
97
|
"default": "./fesm2022/softpak-components-spx-navigation.mjs"
|
|
98
98
|
},
|
|
99
|
-
"./spx-patch": {
|
|
100
|
-
"types": "./spx-patch/index.d.ts",
|
|
101
|
-
"default": "./fesm2022/softpak-components-spx-patch.mjs"
|
|
102
|
-
},
|
|
103
99
|
"./spx-number-check": {
|
|
104
100
|
"types": "./spx-number-check/index.d.ts",
|
|
105
101
|
"default": "./fesm2022/softpak-components-spx-number-check.mjs"
|
|
@@ -108,17 +104,21 @@
|
|
|
108
104
|
"types": "./spx-pagination/index.d.ts",
|
|
109
105
|
"default": "./fesm2022/softpak-components-spx-pagination.mjs"
|
|
110
106
|
},
|
|
111
|
-
"./spx-
|
|
112
|
-
"types": "./spx-
|
|
113
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
107
|
+
"./spx-patch": {
|
|
108
|
+
"types": "./spx-patch/index.d.ts",
|
|
109
|
+
"default": "./fesm2022/softpak-components-spx-patch.mjs"
|
|
110
|
+
},
|
|
111
|
+
"./spx-pipes": {
|
|
112
|
+
"types": "./spx-pipes/index.d.ts",
|
|
113
|
+
"default": "./fesm2022/softpak-components-spx-pipes.mjs"
|
|
114
114
|
},
|
|
115
115
|
"./spx-progress-bar": {
|
|
116
116
|
"types": "./spx-progress-bar/index.d.ts",
|
|
117
117
|
"default": "./fesm2022/softpak-components-spx-progress-bar.mjs"
|
|
118
118
|
},
|
|
119
|
-
"./spx-
|
|
120
|
-
"types": "./spx-
|
|
121
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
119
|
+
"./spx-spinner": {
|
|
120
|
+
"types": "./spx-spinner/index.d.ts",
|
|
121
|
+
"default": "./fesm2022/softpak-components-spx-spinner.mjs"
|
|
122
122
|
},
|
|
123
123
|
"./spx-stock-info": {
|
|
124
124
|
"types": "./spx-stock-info/index.d.ts",
|
|
@@ -132,10 +132,6 @@
|
|
|
132
132
|
"types": "./spx-suggestion/index.d.ts",
|
|
133
133
|
"default": "./fesm2022/softpak-components-spx-suggestion.mjs"
|
|
134
134
|
},
|
|
135
|
-
"./spx-toggle": {
|
|
136
|
-
"types": "./spx-toggle/index.d.ts",
|
|
137
|
-
"default": "./fesm2022/softpak-components-spx-toggle.mjs"
|
|
138
|
-
},
|
|
139
135
|
"./spx-tabs": {
|
|
140
136
|
"types": "./spx-tabs/index.d.ts",
|
|
141
137
|
"default": "./fesm2022/softpak-components-spx-tabs.mjs"
|
|
@@ -144,25 +140,29 @@
|
|
|
144
140
|
"types": "./spx-toaster/index.d.ts",
|
|
145
141
|
"default": "./fesm2022/softpak-components-spx-toaster.mjs"
|
|
146
142
|
},
|
|
143
|
+
"./spx-toggle": {
|
|
144
|
+
"types": "./spx-toggle/index.d.ts",
|
|
145
|
+
"default": "./fesm2022/softpak-components-spx-toggle.mjs"
|
|
146
|
+
},
|
|
147
147
|
"./spx-translate": {
|
|
148
148
|
"types": "./spx-translate/index.d.ts",
|
|
149
149
|
"default": "./fesm2022/softpak-components-spx-translate.mjs"
|
|
150
150
|
},
|
|
151
|
-
"./spx-validation": {
|
|
152
|
-
"types": "./spx-validation/index.d.ts",
|
|
153
|
-
"default": "./fesm2022/softpak-components-spx-validation.mjs"
|
|
154
|
-
},
|
|
155
151
|
"./spx-update": {
|
|
156
152
|
"types": "./spx-update/index.d.ts",
|
|
157
153
|
"default": "./fesm2022/softpak-components-spx-update.mjs"
|
|
158
154
|
},
|
|
159
|
-
"./spx-validation
|
|
160
|
-
"types": "./spx-validation
|
|
161
|
-
"default": "./fesm2022/softpak-components-spx-validation
|
|
155
|
+
"./spx-validation": {
|
|
156
|
+
"types": "./spx-validation/index.d.ts",
|
|
157
|
+
"default": "./fesm2022/softpak-components-spx-validation.mjs"
|
|
162
158
|
},
|
|
163
159
|
"./spx-welcome": {
|
|
164
160
|
"types": "./spx-welcome/index.d.ts",
|
|
165
161
|
"default": "./fesm2022/softpak-components-spx-welcome.mjs"
|
|
162
|
+
},
|
|
163
|
+
"./spx-validation-messages": {
|
|
164
|
+
"types": "./spx-validation-messages/index.d.ts",
|
|
165
|
+
"default": "./fesm2022/softpak-components-spx-validation-messages.mjs"
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
}
|
package/spx-inputs/index.d.ts
CHANGED
|
@@ -133,6 +133,7 @@ interface SpxCycleConfig {
|
|
|
133
133
|
|
|
134
134
|
declare class SpxInputCycleComponent {
|
|
135
135
|
private cdr;
|
|
136
|
+
private hostRef;
|
|
136
137
|
mappedReadonly: _angular_core.Signal<boolean>;
|
|
137
138
|
readonly spxSpeedDial: _angular_core.InputSignal<SpxSpeedDial<string | number>[]>;
|
|
138
139
|
readonly spxName: _angular_core.InputSignal<string | undefined>;
|
|
@@ -165,11 +166,18 @@ declare class SpxInputCycleComponent {
|
|
|
165
166
|
values?: string[] | null[];
|
|
166
167
|
completeInput: EventEmitter<string[]>;
|
|
167
168
|
inputBoxes: QueryList<ElementRef>;
|
|
168
|
-
|
|
169
|
+
private suppressRefocus;
|
|
170
|
+
private pendingTimers;
|
|
171
|
+
private setT;
|
|
172
|
+
private clearPendingTimers;
|
|
173
|
+
constructor(cdr: ChangeDetectorRef, hostRef: ElementRef<HTMLElement>);
|
|
169
174
|
/** Externe wijzigingen via model() → sync naar interne state + DOM */
|
|
170
175
|
private _reactToValueChanges;
|
|
171
176
|
ngOnInit(): void;
|
|
172
177
|
ngAfterViewInit(): void;
|
|
178
|
+
ngOnDestroy(): void;
|
|
179
|
+
onDocPointerDown(ev: PointerEvent): void;
|
|
180
|
+
onDocPointerUp(): void;
|
|
173
181
|
private updateIntervalValue;
|
|
174
182
|
private applyValuesToDom;
|
|
175
183
|
private handleChange;
|