@softpak/components 20.6.11 → 20.6.12

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.
@@ -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,8BAA8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Ac;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,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,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aAAa,CAAC,CAAC,IAAI,EAAE,CAAC;AACxJ,SAAC,2DAAC;AAEH;IAlGC,IAAiC,MAAM,GAAA,EAAK,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IAChE,IAAgC,KAAK,KAAK,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;8GAFlD,8BAA8B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA9B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,8BAA8B,00BCZ3C,g/BAwCC,EAAA,eAAA,EAAA,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,g/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;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softpak/components",
3
- "version": "20.6.11",
3
+ "version": "20.6.12",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "20.x.x",
@@ -32,45 +32,45 @@
32
32
  "types": "./index.d.ts",
33
33
  "default": "./fesm2022/softpak-components.mjs"
34
34
  },
35
- "./spx-app-configuration": {
36
- "types": "./spx-app-configuration/index.d.ts",
37
- "default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
38
- },
39
35
  "./spx-404-page": {
40
36
  "types": "./spx-404-page/index.d.ts",
41
37
  "default": "./fesm2022/softpak-components-spx-404-page.mjs"
42
38
  },
43
- "./spx-alert": {
44
- "types": "./spx-alert/index.d.ts",
45
- "default": "./fesm2022/softpak-components-spx-alert.mjs"
46
- },
47
39
  "./spx-app-expiry": {
48
40
  "types": "./spx-app-expiry/index.d.ts",
49
41
  "default": "./fesm2022/softpak-components-spx-app-expiry.mjs"
50
42
  },
43
+ "./spx-app-configuration": {
44
+ "types": "./spx-app-configuration/index.d.ts",
45
+ "default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
46
+ },
47
+ "./spx-alert": {
48
+ "types": "./spx-alert/index.d.ts",
49
+ "default": "./fesm2022/softpak-components-spx-alert.mjs"
50
+ },
51
51
  "./spx-button": {
52
52
  "types": "./spx-button/index.d.ts",
53
53
  "default": "./fesm2022/softpak-components-spx-button.mjs"
54
54
  },
55
- "./spx-card": {
56
- "types": "./spx-card/index.d.ts",
57
- "default": "./fesm2022/softpak-components-spx-card.mjs"
58
- },
59
55
  "./spx-capitalize": {
60
56
  "types": "./spx-capitalize/index.d.ts",
61
57
  "default": "./fesm2022/softpak-components-spx-capitalize.mjs"
62
58
  },
63
- "./spx-change-details": {
64
- "types": "./spx-change-details/index.d.ts",
65
- "default": "./fesm2022/softpak-components-spx-change-details.mjs"
59
+ "./spx-check-digit": {
60
+ "types": "./spx-check-digit/index.d.ts",
61
+ "default": "./fesm2022/softpak-components-spx-check-digit.mjs"
66
62
  },
67
63
  "./spx-channel-selection": {
68
64
  "types": "./spx-channel-selection/index.d.ts",
69
65
  "default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
70
66
  },
71
- "./spx-check-digit": {
72
- "types": "./spx-check-digit/index.d.ts",
73
- "default": "./fesm2022/softpak-components-spx-check-digit.mjs"
67
+ "./spx-change-details": {
68
+ "types": "./spx-change-details/index.d.ts",
69
+ "default": "./fesm2022/softpak-components-spx-change-details.mjs"
70
+ },
71
+ "./spx-card": {
72
+ "types": "./spx-card/index.d.ts",
73
+ "default": "./fesm2022/softpak-components-spx-card.mjs"
74
74
  },
75
75
  "./spx-confirm": {
76
76
  "types": "./spx-confirm/index.d.ts",
@@ -88,30 +88,22 @@
88
88
  "types": "./spx-helpers/index.d.ts",
89
89
  "default": "./fesm2022/softpak-components-spx-helpers.mjs"
90
90
  },
91
- "./spx-inputs": {
92
- "types": "./spx-inputs/index.d.ts",
93
- "default": "./fesm2022/softpak-components-spx-inputs.mjs"
91
+ "./spx-number-check": {
92
+ "types": "./spx-number-check/index.d.ts",
93
+ "default": "./fesm2022/softpak-components-spx-number-check.mjs"
94
94
  },
95
95
  "./spx-navigation": {
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
- "./spx-number-check": {
104
- "types": "./spx-number-check/index.d.ts",
105
- "default": "./fesm2022/softpak-components-spx-number-check.mjs"
99
+ "./spx-inputs": {
100
+ "types": "./spx-inputs/index.d.ts",
101
+ "default": "./fesm2022/softpak-components-spx-inputs.mjs"
106
102
  },
107
103
  "./spx-pagination": {
108
104
  "types": "./spx-pagination/index.d.ts",
109
105
  "default": "./fesm2022/softpak-components-spx-pagination.mjs"
110
106
  },
111
- "./spx-spinner": {
112
- "types": "./spx-spinner/index.d.ts",
113
- "default": "./fesm2022/softpak-components-spx-spinner.mjs"
114
- },
115
107
  "./spx-progress-bar": {
116
108
  "types": "./spx-progress-bar/index.d.ts",
117
109
  "default": "./fesm2022/softpak-components-spx-progress-bar.mjs"
@@ -120,6 +112,14 @@
120
112
  "types": "./spx-pipes/index.d.ts",
121
113
  "default": "./fesm2022/softpak-components-spx-pipes.mjs"
122
114
  },
115
+ "./spx-patch": {
116
+ "types": "./spx-patch/index.d.ts",
117
+ "default": "./fesm2022/softpak-components-spx-patch.mjs"
118
+ },
119
+ "./spx-spinner": {
120
+ "types": "./spx-spinner/index.d.ts",
121
+ "default": "./fesm2022/softpak-components-spx-spinner.mjs"
122
+ },
123
123
  "./spx-stock-info": {
124
124
  "types": "./spx-stock-info/index.d.ts",
125
125
  "default": "./fesm2022/softpak-components-spx-stock-info.mjs"
@@ -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-messages": {
160
- "types": "./spx-validation-messages/index.d.ts",
161
- "default": "./fesm2022/softpak-components-spx-validation-messages.mjs"
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
  }