@softpak/components 20.0.0 → 20.0.1
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/README.md +24 -24
- package/fesm2022/softpak-components-spx-404-page.mjs +4 -4
- package/fesm2022/softpak-components-spx-404-page.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-alert.mjs +4 -4
- package/fesm2022/softpak-components-spx-alert.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-app-configuration.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-app-expiry.mjs +4 -4
- package/fesm2022/softpak-components-spx-app-expiry.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-button.mjs +4 -4
- package/fesm2022/softpak-components-spx-button.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-capitalize.mjs +3 -3
- package/fesm2022/softpak-components-spx-capitalize.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-card.mjs +16 -16
- package/fesm2022/softpak-components-spx-card.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-change-details.mjs +4 -4
- package/fesm2022/softpak-components-spx-change-details.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-channel-selection.mjs +62 -62
- package/fesm2022/softpak-components-spx-channel-selection.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-check-digit.mjs +4 -4
- package/fesm2022/softpak-components-spx-check-digit.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-confirm.mjs +11 -11
- package/fesm2022/softpak-components-spx-confirm.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-form-section.mjs +4 -4
- package/fesm2022/softpak-components-spx-form-section.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-form-view.mjs +8 -8
- package/fesm2022/softpak-components-spx-form-view.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-helpers.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-inputs.mjs +54 -50
- package/fesm2022/softpak-components-spx-inputs.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-navigation.mjs +12 -12
- package/fesm2022/softpak-components-spx-navigation.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-number-check.mjs +4 -4
- package/fesm2022/softpak-components-spx-number-check.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-pagination.mjs +5 -5
- package/fesm2022/softpak-components-spx-pagination.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-patch.mjs +4 -4
- package/fesm2022/softpak-components-spx-patch.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-pipes.mjs +3 -3
- package/fesm2022/softpak-components-spx-pipes.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-progress-bar.mjs +4 -4
- package/fesm2022/softpak-components-spx-progress-bar.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-spinner.mjs +4 -4
- package/fesm2022/softpak-components-spx-spinner.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-stock-info.mjs +4 -4
- package/fesm2022/softpak-components-spx-stock-info.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-storage.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-suggestion.mjs +4 -4
- package/fesm2022/softpak-components-spx-suggestion.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-tabs.mjs +4 -4
- package/fesm2022/softpak-components-spx-tabs.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-toaster.mjs +4 -4
- package/fesm2022/softpak-components-spx-toaster.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-toggle.mjs +4 -4
- package/fesm2022/softpak-components-spx-toggle.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-translate.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-update.mjs +14 -14
- package/fesm2022/softpak-components-spx-update.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-validation-messages.mjs +10 -10
- package/fesm2022/softpak-components-spx-validation-messages.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-validation.mjs +4 -4
- package/fesm2022/softpak-components-spx-validation.mjs.map +1 -1
- package/index.d.ts +5 -3
- package/package.json +33 -33
- package/placeholder.d.ts +1 -0
- package/public_api.d.ts +1 -0
- package/spx-404-page/index.d.ts +5 -18
- package/spx-404-page/public-api.d.ts +1 -0
- package/spx-404-page/spx-404-page.component.d.ts +15 -0
- package/spx-alert/index.d.ts +5 -34
- package/spx-alert/public-api.d.ts +2 -0
- package/spx-alert/spx-alert.component.d.ts +23 -0
- package/spx-alert/spx-alert.interface.d.ts +7 -0
- package/spx-app-configuration/index.d.ts +5 -66
- package/spx-app-configuration/public-api.d.ts +7 -0
- package/spx-app-configuration/spx-app-alert.interface.d.ts +7 -0
- package/spx-app-configuration/spx-app-bundle-set.interface.d.ts +4 -0
- package/spx-app-configuration/spx-app-channel-type.enum.d.ts +6 -0
- package/spx-app-configuration/spx-app-channel.interface.d.ts +10 -0
- package/spx-app-configuration/spx-app-config.interface.d.ts +19 -0
- package/spx-app-configuration/spx-app-id.enum.d.ts +6 -0
- package/spx-app-configuration/spx-app-lang.enum.d.ts +4 -0
- package/spx-app-configuration/spx-app-release-note.interface.d.ts +8 -0
- package/spx-app-expiry/index.d.ts +5 -38
- package/spx-app-expiry/public-api.d.ts +5 -0
- package/spx-app-expiry/spx-app-expiry.component.d.ts +21 -0
- package/spx-app-expiry/spx-app-expiry.interface.d.ts +7 -0
- package/spx-app-expiry/spx-check-expiry-final-warning.interface.d.ts +2 -0
- package/spx-app-expiry/spx-check-expiry-happened.interface.d.ts +2 -0
- package/spx-app-expiry/spx-check-expiry-warning.interface.d.ts +2 -0
- package/spx-button/index.d.ts +5 -26
- package/spx-button/public-api.d.ts +1 -0
- package/spx-button/spx-button.component.d.ts +23 -0
- package/spx-capitalize/index.d.ts +5 -11
- package/spx-capitalize/public-api.d.ts +1 -0
- package/spx-capitalize/spx-capitalize.pipe.d.ts +8 -0
- package/spx-card/index.d.ts +5 -54
- package/spx-card/public-api.d.ts +4 -0
- package/spx-card/spx-card-grid/spx-card-grid.component.d.ts +6 -0
- package/spx-card/spx-card-item/spx-card-item.component.d.ts +14 -0
- package/spx-card/spx-card-line/spx-card-line.component.d.ts +16 -0
- package/spx-card/spx-card.component.d.ts +15 -0
- package/spx-change-details/index.d.ts +5 -67
- package/spx-change-details/public-api.d.ts +1 -0
- package/spx-change-details/spx-change-details-value.interface.d.ts +7 -0
- package/spx-change-details/spx-change-details.component.d.ts +58 -0
- package/spx-channel-selection/index.d.ts +5 -163
- package/spx-channel-selection/public-api.d.ts +8 -0
- package/spx-channel-selection/src/spx-channel-guard.d.ts +9 -0
- package/spx-channel-selection/src/spx-channel-indicator.component.d.ts +14 -0
- package/spx-channel-selection/src/spx-channel-selection-url.d.ts +1 -0
- package/spx-channel-selection/src/spx-welcome.component.d.ts +44 -0
- package/spx-channel-selection/store/spx-channel/spx-channel.actions.d.ts +21 -0
- package/spx-channel-selection/store/spx-channel/spx-channel.effects.d.ts +17 -0
- package/spx-channel-selection/store/spx-channel/spx-channel.initial.d.ts +2 -0
- package/spx-channel-selection/store/spx-channel/spx-channel.reducer.d.ts +12 -0
- package/spx-channel-selection/store/spx-channel/spx-channel.state.d.ts +7 -0
- package/spx-check-digit/index.d.ts +5 -27
- package/spx-check-digit/public-api.d.ts +1 -0
- package/spx-check-digit/spx-check-digit.component.d.ts +24 -0
- package/spx-confirm/index.d.ts +5 -118
- package/spx-confirm/public-api.d.ts +5 -0
- package/spx-confirm/spx-confirm-displayer/spx-confirm-displayer.component.d.ts +22 -0
- package/spx-confirm/spx-confirm.component.d.ts +16 -0
- package/spx-confirm/store/spx-confirm.actions.d.ts +22 -0
- package/spx-confirm/store/spx-confirm.effects.d.ts +12 -0
- package/spx-confirm/store/spx-confirm.reducer.d.ts +18 -0
- package/spx-form-section/index.d.ts +5 -12
- package/spx-form-section/public-api.d.ts +1 -0
- package/spx-form-section/spx-form-section.component.d.ts +9 -0
- package/spx-form-view/index.d.ts +5 -94
- package/spx-form-view/public-api.d.ts +6 -0
- package/spx-form-view/spx-autocomplete-search.component.d.ts +41 -0
- package/spx-form-view/spx-form-button-type.enum.d.ts +4 -0
- package/spx-form-view/spx-form-button.interface.d.ts +8 -0
- package/spx-form-view/spx-form-field.interface.d.ts +18 -0
- package/spx-form-view/spx-form-section.interface.d.ts +9 -0
- package/spx-form-view/spx-form-view.component.d.ts +49 -0
- package/spx-form-view/spx-form.interface.d.ts +6 -0
- package/spx-helpers/calc-check-digit.function.d.ts +1 -0
- package/spx-helpers/index.d.ts +5 -22
- package/spx-helpers/input-alert.interface.d.ts +5 -0
- package/spx-helpers/public-api.d.ts +5 -0
- package/spx-helpers/spx-severity.enum.d.ts +8 -0
- package/spx-helpers/unsubscribe-subscriptions.function.d.ts +1 -0
- package/spx-helpers/value-pair-to-value.function.d.ts +1 -0
- package/spx-inputs/index.d.ts +5 -326
- package/spx-inputs/input.service.d.ts +12 -0
- package/spx-inputs/public-api.d.ts +6 -0
- package/spx-inputs/spx-dropdown/spx-dropdown.component.d.ts +18 -0
- package/spx-inputs/spx-input-alert-interface.d.ts +5 -0
- package/spx-inputs/spx-input-box/spx-input-box.component.d.ts +41 -0
- package/spx-inputs/spx-input-date/spx-input-date.component.d.ts +50 -0
- package/spx-inputs/spx-input-float/spx-input-float.component.d.ts +33 -0
- package/spx-inputs/spx-input-number/spx-input-number.component.d.ts +24 -0
- package/spx-inputs/spx-input-radio/spx-input-radio.component.d.ts +27 -0
- package/spx-inputs/spx-input-text/spx-input-text.component.d.ts +34 -0
- package/spx-inputs/spx-input-time/spx-input-time.component.d.ts +35 -0
- package/spx-inputs/spx-input-time-modal/spx-input-time-modal.component.d.ts +18 -0
- package/spx-inputs/spx-input-type.enum.d.ts +16 -0
- package/spx-inputs/spx-input.component.d.ts +74 -0
- package/spx-inputs/spx-value-interface.d.ts +4 -0
- package/spx-navigation/index.d.ts +5 -140
- package/spx-navigation/public-api.d.ts +8 -0
- package/spx-navigation/spx-home-tile/spx-home-tile.component.d.ts +11 -0
- package/spx-navigation/spx-home-tile/spx-home-tiles.component.d.ts +6 -0
- package/spx-navigation/spx-navigation-item.interface.d.ts +22 -0
- package/spx-navigation/spx-navigation.component.d.ts +21 -0
- package/spx-navigation/store/spx-navigation/spx-navigation.actions.d.ts +28 -0
- package/spx-navigation/store/spx-navigation/spx-navigation.initial.d.ts +2 -0
- package/spx-navigation/store/spx-navigation/spx-navigation.reducer.d.ts +12 -0
- package/spx-navigation/store/spx-navigation/spx-navigation.state.d.ts +8 -0
- package/spx-number-check/index.d.ts +5 -43
- package/spx-number-check/public-api.d.ts +1 -0
- package/spx-number-check/spx-number-check.component.d.ts +40 -0
- package/spx-pagination/index.d.ts +5 -18
- package/spx-pagination/public-api.d.ts +1 -0
- package/spx-pagination/spx-pagination.component.d.ts +15 -0
- package/spx-patch/index.d.ts +5 -21
- package/spx-patch/patch-check.function.d.ts +4 -0
- package/spx-patch/public-api.d.ts +3 -0
- package/spx-patch/release-check.function.d.ts +1 -0
- package/spx-patch/spx-patch.component.d.ts +11 -0
- package/spx-pipes/index.d.ts +5 -11
- package/spx-pipes/public-api.d.ts +1 -0
- package/spx-pipes/spx-severity-pipe.d.ts +8 -0
- package/spx-progress-bar/index.d.ts +5 -10
- package/spx-progress-bar/public-api.d.ts +1 -0
- package/spx-progress-bar/spx-progress-bar.component.d.ts +7 -0
- package/spx-spinner/index.d.ts +5 -59
- package/spx-spinner/public-api.d.ts +5 -0
- package/spx-spinner/spx-spinner.component.d.ts +7 -0
- package/spx-spinner/store/spx-spinner/spx-spinner.actions.d.ts +6 -0
- package/spx-spinner/store/spx-spinner/spx-spinner.initial.d.ts +2 -0
- package/spx-spinner/store/spx-spinner/spx-spinner.reducer.d.ts +9 -0
- package/spx-spinner/store/spx-spinner/spx-spinner.state.d.ts +4 -0
- package/spx-stock-info/index.d.ts +5 -98
- package/spx-stock-info/public-api.d.ts +2 -0
- package/spx-stock-info/spx-stock-info-value.interface.d.ts +11 -0
- package/spx-stock-info/spx-stock-info.component.d.ts +85 -0
- package/spx-storage/index.d.ts +5 -26
- package/spx-storage/public-api.d.ts +2 -0
- package/spx-storage/src/spx-storage-key.enum.d.ts +15 -0
- package/spx-storage/src/spx-storage.class.d.ts +9 -0
- package/spx-suggestion/index.d.ts +5 -12
- package/spx-suggestion/public-api.d.ts +1 -0
- package/spx-suggestion/spx-suggestion.component.d.ts +9 -0
- package/spx-tabs/index.d.ts +5 -58
- package/spx-tabs/public-api.d.ts +3 -0
- package/spx-tabs/src/spx-tabs.component.d.ts +19 -0
- package/spx-tabs/store/spx-shortcuts.actions.d.ts +10 -0
- package/spx-tabs/store/spx-shortcuts.reducer.d.ts +11 -0
- package/spx-toaster/index.d.ts +5 -167
- package/spx-toaster/public-api.d.ts +7 -0
- package/spx-toaster/src/spx-toaster-autoclose-speed.d.ts +11 -0
- package/spx-toaster/src/spx-toaster-message.interface.d.ts +14 -0
- package/spx-toaster/src/spx-toaster.component.d.ts +11 -0
- package/spx-toaster/store/spx-toaster/spx-toaster.actions.d.ts +78 -0
- package/spx-toaster/store/spx-toaster/spx-toaster.initial.d.ts +2 -0
- package/spx-toaster/store/spx-toaster/spx-toaster.reducer.d.ts +11 -0
- package/spx-toaster/store/spx-toaster/spx-toaster.state.d.ts +5 -0
- package/spx-toggle/index.d.ts +5 -15
- package/spx-toggle/public-api.d.ts +1 -0
- package/spx-toggle/src/spx-toggle.component.d.ts +12 -0
- package/spx-translate/index.d.ts +5 -66
- package/spx-translate/public-api.d.ts +3 -0
- package/spx-translate/spx-translate._const.d.ts +59 -0
- package/spx-translate/spx-translate.en.d.ts +2 -0
- package/spx-translate/spx-translate.nl.d.ts +2 -0
- package/spx-update/index.d.ts +5 -208
- package/spx-update/public-api.d.ts +13 -0
- package/spx-update/spx-update-page.component.d.ts +17 -0
- package/spx-update/spx-update-pending.component.d.ts +25 -0
- package/spx-update/spx-update-url.d.ts +1 -0
- package/spx-update/store/spx-update-check/spx-update-check.actions.d.ts +28 -0
- package/spx-update/store/spx-update-check/spx-update-check.effects.d.ts +14 -0
- package/spx-update/store/spx-update-check/spx-update-check.initial.d.ts +2 -0
- package/spx-update/store/spx-update-check/spx-update-check.reducer.d.ts +10 -0
- package/spx-update/store/spx-update-check/spx-update-check.state.d.ts +5 -0
- package/spx-update/store/spx-update-pending/spx-update-pending.actions.d.ts +8 -0
- package/spx-update/store/spx-update-pending/spx-update-pending.effects.d.ts +10 -0
- package/spx-update/store/spx-update-pending/spx-update-pending.initial.d.ts +2 -0
- package/spx-update/store/spx-update-pending/spx-update-pending.reducer.d.ts +9 -0
- package/spx-update/store/spx-update-pending/spx-update-pending.state.d.ts +4 -0
- package/spx-validation/index.d.ts +5 -63
- package/spx-validation/max.validator.d.ts +7 -0
- package/spx-validation/maxlength.validator.d.ts +7 -0
- package/spx-validation/min.validator.d.ts +7 -0
- package/spx-validation/minlength.validator.d.ts +7 -0
- package/spx-validation/pattern.validator.d.ts +2 -0
- package/spx-validation/public-api.d.ts +8 -0
- package/spx-validation/required.validator.d.ts +2 -0
- package/spx-validation/spx-validate-control.component.d.ts +26 -0
- package/spx-validation/year-and-month.validator.d.ts +2 -0
- package/spx-validation-messages/index.d.ts +5 -28
- package/spx-validation-messages/public-api.d.ts +1 -0
- package/spx-validation-messages/spx-validation-messages.component.d.ts +25 -0
|
@@ -12,22 +12,22 @@ class SpxValidationMessagesComponent {
|
|
|
12
12
|
this.submitTried = input(undefined);
|
|
13
13
|
this.translateService = inject(TranslateService);
|
|
14
14
|
this.textTooLong = computed(() => {
|
|
15
|
-
return this.translateService.instant(spxTextTooLong, { fieldLabel: this.fieldLabel, error: this.errors()["maxlength"].requiredLength });
|
|
15
|
+
return this.translateService.instant(spxTextTooLong, { fieldLabel: this.fieldLabel(), error: this.errors()["maxlength"].requiredLength });
|
|
16
16
|
});
|
|
17
17
|
this.textTooShort = computed(() => {
|
|
18
|
-
return this.translateService.instant(spxTextTooShort, { fieldLabel: this.fieldLabel, error: this.errors()["minlength"].requiredLength });
|
|
18
|
+
return this.translateService.instant(spxTextTooShort, { fieldLabel: this.fieldLabel(), error: this.errors()["minlength"].requiredLength });
|
|
19
19
|
});
|
|
20
20
|
this.textTooHigh = computed(() => {
|
|
21
|
-
return this.translateService.instant(spxTextTooHigh, { fieldLabel: this.fieldLabel, error: this.errors()["max"].max });
|
|
21
|
+
return this.translateService.instant(spxTextTooHigh, { fieldLabel: this.fieldLabel(), error: this.errors()["max"].max });
|
|
22
22
|
});
|
|
23
23
|
this.textTooLow = computed(() => {
|
|
24
|
-
return this.translateService.instant(spxTextTooLow, { fieldLabel: this.fieldLabel, error: this.errors()["min"].min });
|
|
24
|
+
return this.translateService.instant(spxTextTooLow, { fieldLabel: this.fieldLabel(), error: this.errors()["min"].min });
|
|
25
25
|
});
|
|
26
26
|
this.textPatternNotValid = computed(() => {
|
|
27
|
-
return this.translateService.instant(spxTextPatternNotValid, { fieldLabel: this.fieldLabel });
|
|
27
|
+
return this.translateService.instant(spxTextPatternNotValid, { fieldLabel: this.fieldLabel() });
|
|
28
28
|
});
|
|
29
29
|
this.textRequired = computed(() => {
|
|
30
|
-
return this.translateService.instant(spxTextRequired, { fieldLabel: this.fieldLabel });
|
|
30
|
+
return this.translateService.instant(spxTextRequired, { fieldLabel: this.fieldLabel() });
|
|
31
31
|
});
|
|
32
32
|
this.textChoosePast = computed(() => {
|
|
33
33
|
return this.translateService.instant(spxTextChoosePast);
|
|
@@ -48,12 +48,12 @@ class SpxValidationMessagesComponent {
|
|
|
48
48
|
return this.translateService.instant(spxTextInvalidCode, { codeName: this.errors()["invalidCode"].name, codeCode: this.errors()["invalidCode"].code });
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
52
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
51
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: SpxValidationMessagesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
52
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.11", 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 } }, ngImport: i0, template: "\n@if (formControlI() && errors() && (touched() || submitTried())) {\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}", styles: [":host{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
53
53
|
}
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: SpxValidationMessagesComponent, decorators: [{
|
|
55
55
|
type: Component,
|
|
56
|
-
args: [{ selector: 'spx-validation-messages', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "\
|
|
56
|
+
args: [{ selector: 'spx-validation-messages', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "\n@if (formControlI() && errors() && (touched() || submitTried())) {\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}", styles: [":host{display:block}\n"] }]
|
|
57
57
|
}] });
|
|
58
58
|
|
|
59
59
|
/**
|
|
@@ -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 { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\
|
|
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 { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { AbstractControl, ValidationErrors } from '@angular/forms';\nimport { TranslateService } from '@ngx-translate/core';\nimport { spxTextChooseFuture, spxTextChoosePast, spxTextChooseValidMonth, spxTextDateMayNotBeFuture, spxTextDateMayNotBePast, spxTextInvalidCode, spxTextPatternNotValid, spxTextRequired, spxTextTooHigh, spxTextTooLong, spxTextTooLow, spxTextTooShort } from '@softpak/components/spx-translate';\n\n@Component({\n selector: 'spx-validation-messages',\n standalone: true,\n templateUrl: './spx-validation-messages.component.html',\n styleUrl: './spx-validation-messages.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SpxValidationMessagesComponent { \n readonly errors = input.required<ValidationErrors>();\n readonly touched = input.required<boolean>();\n readonly formControlI = input<AbstractControl<any,any> | undefined>(undefined);\n readonly fieldLabel = input<string | undefined>(undefined);\n readonly submitTried = input<boolean | undefined>(undefined);\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}\n","\n@if (formControlI() && errors() && (touched() || submitTried())) {\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}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAYa,8BAA8B,CAAA;AAP3C,IAAA,WAAA,GAAA;AAQW,QAAA,IAAA,C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C,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,uBAAuB,CAAC;AAC/D,SAAC,CAAC;AAEF,QAAA,IAAA,CAAA,eAAe,GAAG,QAAQ,CAAC,MAAK;AAC9B,YAAA,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,aAAa,CAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,aAAa,CAAC,CAAC,IAAI,EAAE,CAAC;AACxJ,SAAC,CAAC;AAEH;+GAzDY,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,SAAA,EAAA,IAAA,EAAA,8BAA8B,ovBCZ3C,8+BAsCC,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FD1BY,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAP1C,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,yBAAyB,EACvB,UAAA,EAAA,IAAI,EAGC,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,8+BAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;;AEVjD;;AAEG;;;;"}
|
|
@@ -183,14 +183,14 @@ class SpxValidateControlComponent {
|
|
|
183
183
|
return this.errors() && this.errors()['past'];
|
|
184
184
|
});
|
|
185
185
|
}
|
|
186
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
187
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
186
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: SpxValidateControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
187
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.11", type: SpxValidateControlComponent, isStandalone: true, selector: "spx-validate-control", inputs: { control: { classPropertyName: "control", publicName: "control", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, submitTried: { classPropertyName: "submitTried", publicName: "submitTried", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: true, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@if (control() && errors() && (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", dependencies: [{ kind: "ngmodule", type: FormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
188
188
|
}
|
|
189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: SpxValidateControlComponent, decorators: [{
|
|
190
190
|
type: Component,
|
|
191
191
|
args: [{ selector: 'spx-validate-control', imports: [
|
|
192
192
|
FormsModule,
|
|
193
|
-
], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (control() && errors() && (touched() || submitTried())) {\
|
|
193
|
+
], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (control() && errors() && (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" }]
|
|
194
194
|
}] });
|
|
195
195
|
|
|
196
196
|
/**
|
|
@@ -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';\r\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\r\n\r\nexport const spxValidatorRequired = () => (control: AbstractControl): ValidationErrors | null => {\r\n if (\r\n control &&\r\n valuePairToValue(control.value) === undefined ||\r\n valuePairToValue(control.value) === null ||\r\n valuePairToValue(control.value) === '' ||\r\n valuePairToValue(control.value) === 0\r\n ) {\r\n return { required: true };\r\n }\r\n return null;\r\n};\r\n","import { AbstractControl } from '@angular/forms';\r\nimport { spxValidatorRequired } from './required.validator';\r\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\r\n\r\nexport const spxValidatorMax = (max: number) => (control: AbstractControl): { max: { max: number; actual: number } } | null => {\r\n if (!spxValidatorRequired()(control)) {\r\n const value = parseInt(valuePairToValue(control.value).toString(), 10);\r\n if (!isNaN(value) && value > max) {\r\n return {\r\n max: {\r\n max,\r\n actual: value\r\n }\r\n };\r\n }\r\n }\r\n return null;\r\n};\r\n","import { AbstractControl } from '@angular/forms';\r\nimport { spxValidatorRequired } from './required.validator';\r\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\r\n\r\nexport const spxValidatorMaxLength = (maximumLength: number, sanitizer?: (input: string) => string) => (control: AbstractControl): { maxlength: { requiredLength: number; actualLength: number } } | null => {\r\n if (!spxValidatorRequired()(control)) {\r\n let value = valuePairToValue(control.value);\r\n if (sanitizer) {\r\n value = sanitizer(value.toString());\r\n }\r\n if (value.toString().length > maximumLength) {\r\n return {\r\n maxlength: {\r\n requiredLength: maximumLength,\r\n actualLength: value.toString().length\r\n }\r\n };\r\n }\r\n }\r\n return null;\r\n};\r\n","import { AbstractControl } from '@angular/forms';\r\nimport { spxValidatorRequired } from './required.validator';\r\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\r\n\r\nexport const spxValidatorMin = (min: number) => (control: AbstractControl): { min: { min: number; actual: number } } | null => {\r\n if (!spxValidatorRequired()(control)) {\r\n const value = parseInt(valuePairToValue(control.value).toString(), 10);\r\n\r\n if (!isNaN(value) && value < min) {\r\n return {\r\n min: {\r\n min,\r\n actual: value\r\n }\r\n };\r\n }\r\n }\r\n return null;\r\n};\r\n","import { AbstractControl } from '@angular/forms';\r\nimport { spxValidatorRequired } from './required.validator';\r\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\r\n\r\nexport const spxValidatorMinLength = (minimumLength: number, sanitizer?: (input: string) => string) => (control: AbstractControl): { minlength: { requiredLength: number; actualLength: number } } | null => {\r\n if (!spxValidatorRequired()(control)) {\r\n let value = valuePairToValue(control.value);\r\n if (sanitizer) {\r\n value = sanitizer(value.toString());\r\n }\r\n if (value.toString().length < minimumLength) {\r\n return {\r\n minlength: {\r\n requiredLength: minimumLength,\r\n actualLength: value.toString().length\r\n }\r\n };\r\n }\r\n }\r\n return null;\r\n};\r\n","import { AbstractControl, ValidationErrors } from '@angular/forms';\r\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\r\nimport { spxValidatorRequired } from './required.validator';\r\n\r\nexport const spxValidatorPattern = (matcher: RegExp) => (control: AbstractControl): ValidationErrors | null => {\r\n if (!spxValidatorRequired()(control)) {\r\n const matches = valuePairToValue(control.value).toString().match(matcher);\r\n if (matches === null || matches.length === 0) {\r\n return { pattern: true };\r\n }\r\n }\r\n return null;\r\n};\r\n","import { AbstractControl, ValidationErrors } from '@angular/forms';\r\n\r\nimport { DateTime } from 'luxon';\r\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\r\nimport { spxValidatorRequired } from './required.validator';\r\n\r\nexport const spxValidatorYearAndMonth = (future?: boolean) => (control: AbstractControl): ValidationErrors | null => {\r\n if (!spxValidatorRequired()(control)) {\r\n const val = valuePairToValue(control.value);\r\n if (val.toUpperCase() !== 'ACEP') {\r\n const date = DateTime.fromISO(val);\r\n const year = date.year;\r\n const month = date.month;\r\n if (val.length < 6) {\r\n return {\r\n minlength: {\r\n requiredLength: 6,\r\n actualLength: val.length\r\n }\r\n };\r\n }\r\n if (month < 1 || month > 12) {\r\n return { month: true };\r\n }\r\n if (future) {\r\n if (year > 2050 || year < DateTime.now().year) {\r\n return { yearFuture: true };\r\n }\r\n if (DateTime.now().set({ year: year, month: DateTime.now().month - 1 }).startOf('month') < DateTime.now()) {\r\n return { past: true };\r\n }\r\n } else {\r\n if (year < 1971 || year > DateTime.now().year) {\r\n return { year: true };\r\n }\r\n if (DateTime.now().set({ year: year, month: DateTime.now().month - 1 }).startOf('month') > DateTime.now()) {\r\n return { future: true };\r\n }\r\n }\r\n }\r\n }\r\n return null;\r\n};\r\n","\r\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\r\nimport { AbstractControl, FormsModule, ValidationErrors } from '@angular/forms';\r\n\r\n@Component({\r\n selector: 'spx-validate-control',\r\n templateUrl: './spx-validate-control.component.html',\r\n imports: [\r\n FormsModule,\r\n ],\r\n standalone: true,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class SpxValidateControlComponent {\r\n readonly control = input.required<AbstractControl>();\r\n readonly label = input<string | unknown>();\r\n readonly submitTried = input<boolean>();\r\n readonly errors = input.required<ValidationErrors | null>();\r\n readonly touched = input.required<boolean>();\r\n\r\n maxLength = computed(() => {\r\n return this.errors() && this.errors()!['maxlength'];\r\n });\r\n\r\n maxLengthRequiredLength = computed(() => {\r\n return this.maxLength() && this.errors() && this.errors()!['maxlength']['requiredLength'];\r\n });\r\n\r\n minLength = computed(() => {\r\n return this.errors() && this.errors()!['minlength'];\r\n });\r\n\r\n minLengthRequiredLength = computed(() => {\r\n return this.minLength() && this.errors() && this.errors()!['minlength']['requiredLength'];\r\n });\r\n\r\n max = computed(() => {\r\n return this.errors() && this.errors()!['max'];\r\n });\r\n\r\n maxRequiredMax = computed(() => {\r\n return this.max() && this.errors() && this.errors()!['max']['max'];\r\n });\r\n\r\n min = computed(() => {\r\n return this.errors() && this.errors()!['min'];\r\n });\r\n\r\n minRequiredMin = computed(() => {\r\n return this.min() && this.errors() && this.errors()!['min']['min'];\r\n });\r\n\r\n pattern = computed(() => {\r\n return this.errors() && this.errors()!['pattern'];\r\n });\r\n\r\n required = computed(() => {\r\n return this.errors() && this.errors()!['required'];\r\n });\r\n\r\n year = computed(() => {\r\n return this.errors() && this.errors()!['year'];\r\n });\r\n\r\n yearFuture = computed(() => {\r\n return this.errors() && this.errors()!['yearFuture'];\r\n });\r\n\r\n month = computed(() => {\r\n return this.errors() && this.errors()!['month'];\r\n });\r\n\r\n future = computed(() => {\r\n return this.errors() && this.errors()!['future'];\r\n });\r\n\r\n past = computed(() => {\r\n return this.errors() && this.errors()!['past'];\r\n });\r\n}\r\n","@if (control() && errors() && (touched() || submitTried())) {\r\n @if (maxLength()) {\r\n <div>'{{ label() }}' is too long, the maximum length is {{ maxLengthRequiredLength() }}.</div>\r\n }\r\n @if (minLength()) {\r\n <div>'{{ label() }}' is too short, the minimum length is {{ minLengthRequiredLength() }}.</div>\r\n }\r\n @if (max()) {\r\n <div>The value of '{{ label() }}' is too high, the maximum is {{ maxRequiredMax() }}.</div>\r\n }\r\n @if (min()) {\r\n <div>The value of '{{ label() }}' is too low, the minimum is {{ minRequiredMin() }}.</div>\r\n }\r\n @if (pattern()) {\r\n <div>The pattern of '{{ label() }}' not valid.</div>\r\n }\r\n @if (required()) {\r\n <div>'{{ label() }}' is required.</div>\r\n }\r\n @if (year()) {\r\n <div>Please choose a year between 1991 and the current year.</div>\r\n }\r\n @if (yearFuture()) {\r\n <div>Please choose a year between the current year and 2050.</div>\r\n }\r\n @if (month()) {\r\n <div>Please choose a valid month (a value between 01 and 12).</div>\r\n }\r\n @if (future()) {\r\n <div>The selected date may not be in the future.</div>\r\n }\r\n @if (past()) {\r\n <div>The selected date may not be in the past.</div>\r\n }\r\n}\r\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,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,OAAO,CAAC,EAAE;QAClC,IAAI,KAAK,GAAG,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC;QAC3C,IAAI,SAAS,EAA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AA,CAAA;;2FAKN,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBATvC,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,sBAAsB,EAEvB,OAAA,EAAA;wBACL,WAAW;AACd,qBAAA,EAAA,UAAA,EACW,IAAI,EAAA,eAAA,EACC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,+tCAAA,EAAA;;;AEXnD;;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 { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { AbstractControl, FormsModule, ValidationErrors } from '@angular/forms';\n\n@Component({\n selector: 'spx-validate-control',\n templateUrl: './spx-validate-control.component.html',\n imports: [\n FormsModule,\n ],\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SpxValidateControlComponent {\n readonly control = input.required<AbstractControl>();\n readonly label = input<string | unknown>();\n readonly submitTried = input<boolean>();\n readonly errors = input.required<ValidationErrors | null>();\n readonly touched = input.required<boolean>();\n\n maxLength = computed(() => {\n return this.errors() && this.errors()!['maxlength'];\n });\n\n maxLengthRequiredLength = computed(() => {\n return this.maxLength() && this.errors() && this.errors()!['maxlength']['requiredLength'];\n });\n\n minLength = computed(() => {\n return this.errors() && this.errors()!['minlength'];\n });\n\n minLengthRequiredLength = computed(() => {\n return this.minLength() && this.errors() && this.errors()!['minlength']['requiredLength'];\n });\n\n max = computed(() => {\n return this.errors() && this.errors()!['max'];\n });\n\n maxRequiredMax = computed(() => {\n return this.max() && this.errors() && this.errors()!['max']['max'];\n });\n\n min = computed(() => {\n return this.errors() && this.errors()!['min'];\n });\n\n minRequiredMin = computed(() => {\n return this.min() && this.errors() && this.errors()!['min']['min'];\n });\n\n pattern = computed(() => {\n return this.errors() && this.errors()!['pattern'];\n });\n\n required = computed(() => {\n return this.errors() && this.errors()!['required'];\n });\n\n year = computed(() => {\n return this.errors() && this.errors()!['year'];\n });\n\n yearFuture = computed(() => {\n return this.errors() && this.errors()!['yearFuture'];\n });\n\n month = computed(() => {\n return this.errors() && this.errors()!['month'];\n });\n\n future = computed(() => {\n return this.errors() && this.errors()!['future'];\n });\n\n past = computed(() => {\n return this.errors() && this.errors()!['past'];\n });\n}\n","@if (control() && errors() && (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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAGa,MAAA,oBAAoB,GAAG,MAAM,CAAC,OAAwB,KAA6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AC,MAAM,EAAA,QAAA,EAAA,ypCAAA,EAAA;;;AEXnD;;AAEG;;;;"}
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softpak/components",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "19.x.x || 20.x.x",
|
|
@@ -36,22 +36,22 @@
|
|
|
36
36
|
"types": "./spx-404-page/index.d.ts",
|
|
37
37
|
"default": "./fesm2022/softpak-components-spx-404-page.mjs"
|
|
38
38
|
},
|
|
39
|
-
"./spx-app-configuration": {
|
|
40
|
-
"types": "./spx-app-configuration/index.d.ts",
|
|
41
|
-
"default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
|
|
42
|
-
},
|
|
43
39
|
"./spx-alert": {
|
|
44
40
|
"types": "./spx-alert/index.d.ts",
|
|
45
41
|
"default": "./fesm2022/softpak-components-spx-alert.mjs"
|
|
46
42
|
},
|
|
47
|
-
"./spx-app-expiry": {
|
|
48
|
-
"types": "./spx-app-expiry/index.d.ts",
|
|
49
|
-
"default": "./fesm2022/softpak-components-spx-app-expiry.mjs"
|
|
50
|
-
},
|
|
51
43
|
"./spx-button": {
|
|
52
44
|
"types": "./spx-button/index.d.ts",
|
|
53
45
|
"default": "./fesm2022/softpak-components-spx-button.mjs"
|
|
54
46
|
},
|
|
47
|
+
"./spx-app-configuration": {
|
|
48
|
+
"types": "./spx-app-configuration/index.d.ts",
|
|
49
|
+
"default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
|
|
50
|
+
},
|
|
51
|
+
"./spx-app-expiry": {
|
|
52
|
+
"types": "./spx-app-expiry/index.d.ts",
|
|
53
|
+
"default": "./fesm2022/softpak-components-spx-app-expiry.mjs"
|
|
54
|
+
},
|
|
55
55
|
"./spx-capitalize": {
|
|
56
56
|
"types": "./spx-capitalize/index.d.ts",
|
|
57
57
|
"default": "./fesm2022/softpak-components-spx-capitalize.mjs"
|
|
@@ -88,45 +88,45 @@
|
|
|
88
88
|
"types": "./spx-helpers/index.d.ts",
|
|
89
89
|
"default": "./fesm2022/softpak-components-spx-helpers.mjs"
|
|
90
90
|
},
|
|
91
|
-
"./spx-navigation": {
|
|
92
|
-
"types": "./spx-navigation/index.d.ts",
|
|
93
|
-
"default": "./fesm2022/softpak-components-spx-navigation.mjs"
|
|
94
|
-
},
|
|
95
91
|
"./spx-inputs": {
|
|
96
92
|
"types": "./spx-inputs/index.d.ts",
|
|
97
93
|
"default": "./fesm2022/softpak-components-spx-inputs.mjs"
|
|
98
94
|
},
|
|
95
|
+
"./spx-navigation": {
|
|
96
|
+
"types": "./spx-navigation/index.d.ts",
|
|
97
|
+
"default": "./fesm2022/softpak-components-spx-navigation.mjs"
|
|
98
|
+
},
|
|
99
99
|
"./spx-number-check": {
|
|
100
100
|
"types": "./spx-number-check/index.d.ts",
|
|
101
101
|
"default": "./fesm2022/softpak-components-spx-number-check.mjs"
|
|
102
102
|
},
|
|
103
|
-
"./spx-patch": {
|
|
104
|
-
"types": "./spx-patch/index.d.ts",
|
|
105
|
-
"default": "./fesm2022/softpak-components-spx-patch.mjs"
|
|
106
|
-
},
|
|
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-
|
|
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",
|
|
125
125
|
"default": "./fesm2022/softpak-components-spx-stock-info.mjs"
|
|
126
126
|
},
|
|
127
|
-
"./spx-
|
|
128
|
-
"types": "./spx-
|
|
129
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
127
|
+
"./spx-storage": {
|
|
128
|
+
"types": "./spx-storage/index.d.ts",
|
|
129
|
+
"default": "./fesm2022/softpak-components-spx-storage.mjs"
|
|
130
130
|
},
|
|
131
131
|
"./spx-suggestion": {
|
|
132
132
|
"types": "./spx-suggestion/index.d.ts",
|
|
@@ -136,10 +136,6 @@
|
|
|
136
136
|
"types": "./spx-tabs/index.d.ts",
|
|
137
137
|
"default": "./fesm2022/softpak-components-spx-tabs.mjs"
|
|
138
138
|
},
|
|
139
|
-
"./spx-translate": {
|
|
140
|
-
"types": "./spx-translate/index.d.ts",
|
|
141
|
-
"default": "./fesm2022/softpak-components-spx-translate.mjs"
|
|
142
|
-
},
|
|
143
139
|
"./spx-toaster": {
|
|
144
140
|
"types": "./spx-toaster/index.d.ts",
|
|
145
141
|
"default": "./fesm2022/softpak-components-spx-toaster.mjs"
|
|
@@ -148,14 +144,18 @@
|
|
|
148
144
|
"types": "./spx-toggle/index.d.ts",
|
|
149
145
|
"default": "./fesm2022/softpak-components-spx-toggle.mjs"
|
|
150
146
|
},
|
|
151
|
-
"./spx-
|
|
152
|
-
"types": "./spx-
|
|
153
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
147
|
+
"./spx-translate": {
|
|
148
|
+
"types": "./spx-translate/index.d.ts",
|
|
149
|
+
"default": "./fesm2022/softpak-components-spx-translate.mjs"
|
|
154
150
|
},
|
|
155
151
|
"./spx-update": {
|
|
156
152
|
"types": "./spx-update/index.d.ts",
|
|
157
153
|
"default": "./fesm2022/softpak-components-spx-update.mjs"
|
|
158
154
|
},
|
|
155
|
+
"./spx-validation": {
|
|
156
|
+
"types": "./spx-validation/index.d.ts",
|
|
157
|
+
"default": "./fesm2022/softpak-components-spx-validation.mjs"
|
|
158
|
+
},
|
|
159
159
|
"./spx-validation-messages": {
|
|
160
160
|
"types": "./spx-validation-messages/index.d.ts",
|
|
161
161
|
"default": "./fesm2022/softpak-components-spx-validation-messages.mjs"
|
package/placeholder.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const softpakNgComponent = "Softpak NG Components";
|
package/public_api.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './placeholder';
|
package/spx-404-page/index.d.ts
CHANGED
|
@@ -1,18 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
private readonly activatedRoute;
|
|
7
|
-
private readonly navController;
|
|
8
|
-
spxText404PageNotFound: string;
|
|
9
|
-
spxTextPageNotFound: string;
|
|
10
|
-
spxTextPageNotFoundDescription: string;
|
|
11
|
-
spxTextGoHome: string;
|
|
12
|
-
goHome(): void;
|
|
13
|
-
constructor(activatedRoute: ActivatedRoute, navController: NavController);
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<Spx404PageComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Spx404PageComponent, "spx-404-page", never, {}, {}, never, never, true, never>;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { Spx404PageComponent };
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="@softpak/components/spx-404-page" />
|
|
5
|
+
export * from './public-api';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './spx-404-page.component';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NavController } from '@ionic/angular/standalone';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class Spx404PageComponent {
|
|
5
|
+
private readonly activatedRoute;
|
|
6
|
+
private readonly navController;
|
|
7
|
+
spxText404PageNotFound: string;
|
|
8
|
+
spxTextPageNotFound: string;
|
|
9
|
+
spxTextPageNotFoundDescription: string;
|
|
10
|
+
spxTextGoHome: string;
|
|
11
|
+
goHome(): void;
|
|
12
|
+
constructor(activatedRoute: ActivatedRoute, navController: NavController);
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Spx404PageComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Spx404PageComponent, "spx-404-page", never, {}, {}, never, never, true, never>;
|
|
15
|
+
}
|
package/spx-alert/index.d.ts
CHANGED
|
@@ -1,34 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
_autoCloseTimeout: _angular_core.WritableSignal<NodeJS.Timeout | null>;
|
|
7
|
-
spxClose: _angular_core.OutputEmitterRef<void>;
|
|
8
|
-
readonly spxAutoclose: _angular_core.InputSignal<number | undefined>;
|
|
9
|
-
readonly spxCloseable: _angular_core.InputSignal<boolean | undefined>;
|
|
10
|
-
readonly spxHideTitle: _angular_core.InputSignal<boolean>;
|
|
11
|
-
readonly spxTitle: _angular_core.ModelSignal<string | undefined>;
|
|
12
|
-
readonly spxMarginTop: _angular_core.InputSignal<boolean>;
|
|
13
|
-
readonly spxSeverity: _angular_core.InputSignal<SpxSeverityEnum | undefined>;
|
|
14
|
-
SpxSeverity: typeof SpxSeverityEnum;
|
|
15
|
-
faCheck: _fortawesome_fontawesome_common_types.IconDefinition;
|
|
16
|
-
faCircleInfo: _fortawesome_fontawesome_common_types.IconDefinition;
|
|
17
|
-
faTriangleExclamation: _fortawesome_fontawesome_common_types.IconDefinition;
|
|
18
|
-
faTimes: _fortawesome_fontawesome_common_types.IconDefinition;
|
|
19
|
-
componentDidLoad(): void;
|
|
20
|
-
private prepareAutoClose;
|
|
21
|
-
private _assignDefaultTitle;
|
|
22
|
-
onClose(): void;
|
|
23
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SpxAlertComponent, never>;
|
|
24
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SpxAlertComponent, "spx-alert", never, { "spxAutoclose": { "alias": "spxAutoclose"; "required": false; "isSignal": true; }; "spxCloseable": { "alias": "spxCloseable"; "required": false; "isSignal": true; }; "spxHideTitle": { "alias": "spxHideTitle"; "required": false; "isSignal": true; }; "spxTitle": { "alias": "spxTitle"; "required": false; "isSignal": true; }; "spxMarginTop": { "alias": "spxMarginTop"; "required": false; "isSignal": true; }; "spxSeverity": { "alias": "spxSeverity"; "required": false; "isSignal": true; }; }, { "spxClose": "spxClose"; "spxTitle": "spxTitleChange"; }, never, ["*"], true, never>;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
declare class SpxAlertI {
|
|
28
|
-
closeable?: boolean;
|
|
29
|
-
id?: number;
|
|
30
|
-
message?: string;
|
|
31
|
-
severity?: SpxSeverityEnum;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export { SpxAlertComponent, SpxAlertI };
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="@softpak/components/spx-alert" />
|
|
5
|
+
export * from './public-api';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SpxAlertComponent {
|
|
4
|
+
_autoCloseTimeout: import("@angular/core").WritableSignal<NodeJS.Timeout | null>;
|
|
5
|
+
spxClose: import("@angular/core").OutputEmitterRef<void>;
|
|
6
|
+
readonly spxAutoclose: import("@angular/core").InputSignal<number | undefined>;
|
|
7
|
+
readonly spxCloseable: import("@angular/core").InputSignal<boolean | undefined>;
|
|
8
|
+
readonly spxHideTitle: import("@angular/core").InputSignal<boolean>;
|
|
9
|
+
readonly spxTitle: import("@angular/core").ModelSignal<string | undefined>;
|
|
10
|
+
readonly spxMarginTop: import("@angular/core").InputSignal<boolean>;
|
|
11
|
+
readonly spxSeverity: import("@angular/core").InputSignal<SpxSeverityEnum | undefined>;
|
|
12
|
+
SpxSeverity: typeof SpxSeverityEnum;
|
|
13
|
+
faCheck: import("@fortawesome/free-solid-svg-icons").IconDefinition;
|
|
14
|
+
faCircleInfo: import("@fortawesome/free-solid-svg-icons").IconDefinition;
|
|
15
|
+
faTriangleExclamation: import("@fortawesome/free-solid-svg-icons").IconDefinition;
|
|
16
|
+
faTimes: import("@fortawesome/free-solid-svg-icons").IconDefinition;
|
|
17
|
+
componentDidLoad(): void;
|
|
18
|
+
private prepareAutoClose;
|
|
19
|
+
private _assignDefaultTitle;
|
|
20
|
+
onClose(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpxAlertComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpxAlertComponent, "spx-alert", never, { "spxAutoclose": { "alias": "spxAutoclose"; "required": false; "isSignal": true; }; "spxCloseable": { "alias": "spxCloseable"; "required": false; "isSignal": true; }; "spxHideTitle": { "alias": "spxHideTitle"; "required": false; "isSignal": true; }; "spxTitle": { "alias": "spxTitle"; "required": false; "isSignal": true; }; "spxMarginTop": { "alias": "spxMarginTop"; "required": false; "isSignal": true; }; "spxSeverity": { "alias": "spxSeverity"; "required": false; "isSignal": true; }; }, { "spxClose": "spxClose"; "spxTitle": "spxTitleChange"; }, never, ["*"], true, never>;
|
|
23
|
+
}
|
|
@@ -1,66 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
interface SpxAppAlertI {
|
|
7
|
-
lang: SpxAppLangEnum;
|
|
8
|
-
title: string;
|
|
9
|
-
message: string;
|
|
10
|
-
brands?: string[];
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface SpxAppBundleSetI {
|
|
14
|
-
android: string;
|
|
15
|
-
iOS: string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
declare enum SpxAppChannelTypeEnum {
|
|
19
|
-
production = "Production",
|
|
20
|
-
beta = "Beta",
|
|
21
|
-
alpha = "Alpha",
|
|
22
|
-
development = "Development"
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface SpxAppChannelI {
|
|
26
|
-
backendCompanyCode: string;
|
|
27
|
-
brand: string;
|
|
28
|
-
catalogFileName: string;
|
|
29
|
-
catalogPrefix: string;
|
|
30
|
-
channelTypes: SpxAppChannelTypeEnum[];
|
|
31
|
-
default?: boolean;
|
|
32
|
-
serviceURI: string;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
declare enum SpxAppIdEnum {
|
|
36
|
-
container = "container",
|
|
37
|
-
depot = "depot",
|
|
38
|
-
eucon = "eucon",
|
|
39
|
-
orders = "orders"
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
interface SpxAppReleaseNoteI {
|
|
43
|
-
lang: SpxAppLangEnum;
|
|
44
|
-
liveUpdate: number;
|
|
45
|
-
title: string;
|
|
46
|
-
message: string;
|
|
47
|
-
brands?: string[];
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
interface SpxAppConfigI {
|
|
51
|
-
id: SpxAppIdEnum;
|
|
52
|
-
appflowId: string;
|
|
53
|
-
versions: {
|
|
54
|
-
next: SpxAppBundleSetI;
|
|
55
|
-
current: SpxAppBundleSetI;
|
|
56
|
-
orange: SpxAppBundleSetI;
|
|
57
|
-
yellow: SpxAppBundleSetI;
|
|
58
|
-
red: SpxAppBundleSetI;
|
|
59
|
-
};
|
|
60
|
-
alerts: SpxAppAlertI[];
|
|
61
|
-
releaseNotes: SpxAppReleaseNoteI[];
|
|
62
|
-
channels: SpxAppChannelI[];
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export { SpxAppChannelTypeEnum, SpxAppIdEnum, SpxAppLangEnum };
|
|
66
|
-
export type { SpxAppAlertI, SpxAppBundleSetI, SpxAppChannelI, SpxAppConfigI };
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="@softpak/components/spx-app-configuration" />
|
|
5
|
+
export * from './public-api';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './spx-app-alert.interface';
|
|
2
|
+
export * from './spx-app-bundle-set.interface';
|
|
3
|
+
export * from './spx-app-channel-type.enum';
|
|
4
|
+
export * from './spx-app-channel.interface';
|
|
5
|
+
export * from './spx-app-config.interface';
|
|
6
|
+
export * from './spx-app-id.enum';
|
|
7
|
+
export * from './spx-app-lang.enum';
|