@softpak/components 20.0.1 → 20.0.2
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 +44 -44
- 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 +4 -4
- 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 +4 -4
- 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 +3 -5
- package/package.json +30 -30
- package/spx-404-page/index.d.ts +18 -5
- package/spx-alert/index.d.ts +34 -5
- package/spx-app-configuration/index.d.ts +66 -5
- package/spx-app-expiry/index.d.ts +38 -5
- package/spx-button/index.d.ts +26 -5
- package/spx-capitalize/index.d.ts +11 -5
- package/spx-card/index.d.ts +54 -5
- package/spx-change-details/index.d.ts +67 -5
- package/spx-channel-selection/index.d.ts +163 -5
- package/spx-check-digit/index.d.ts +27 -5
- package/spx-confirm/index.d.ts +118 -5
- package/spx-form-section/index.d.ts +12 -5
- package/spx-form-view/index.d.ts +94 -5
- package/spx-helpers/index.d.ts +22 -5
- package/spx-inputs/index.d.ts +330 -5
- package/spx-navigation/index.d.ts +140 -5
- package/spx-number-check/index.d.ts +43 -5
- package/spx-pagination/index.d.ts +18 -5
- package/spx-patch/index.d.ts +21 -5
- package/spx-pipes/index.d.ts +11 -5
- package/spx-progress-bar/index.d.ts +10 -5
- package/spx-spinner/index.d.ts +59 -5
- package/spx-stock-info/index.d.ts +98 -5
- package/spx-storage/index.d.ts +26 -5
- package/spx-suggestion/index.d.ts +12 -5
- package/spx-tabs/index.d.ts +58 -5
- package/spx-toaster/index.d.ts +167 -5
- package/spx-toggle/index.d.ts +15 -5
- package/spx-translate/index.d.ts +66 -5
- package/spx-update/index.d.ts +208 -5
- package/spx-validation/index.d.ts +63 -5
- package/spx-validation-messages/index.d.ts +28 -5
- package/placeholder.d.ts +0 -1
- package/public_api.d.ts +0 -1
- package/spx-404-page/public-api.d.ts +0 -1
- package/spx-404-page/spx-404-page.component.d.ts +0 -15
- package/spx-alert/public-api.d.ts +0 -2
- package/spx-alert/spx-alert.component.d.ts +0 -23
- package/spx-alert/spx-alert.interface.d.ts +0 -7
- package/spx-app-configuration/public-api.d.ts +0 -7
- package/spx-app-configuration/spx-app-alert.interface.d.ts +0 -7
- package/spx-app-configuration/spx-app-bundle-set.interface.d.ts +0 -4
- package/spx-app-configuration/spx-app-channel-type.enum.d.ts +0 -6
- package/spx-app-configuration/spx-app-channel.interface.d.ts +0 -10
- package/spx-app-configuration/spx-app-config.interface.d.ts +0 -19
- package/spx-app-configuration/spx-app-id.enum.d.ts +0 -6
- package/spx-app-configuration/spx-app-lang.enum.d.ts +0 -4
- package/spx-app-configuration/spx-app-release-note.interface.d.ts +0 -8
- package/spx-app-expiry/public-api.d.ts +0 -5
- package/spx-app-expiry/spx-app-expiry.component.d.ts +0 -21
- package/spx-app-expiry/spx-app-expiry.interface.d.ts +0 -7
- package/spx-app-expiry/spx-check-expiry-final-warning.interface.d.ts +0 -2
- package/spx-app-expiry/spx-check-expiry-happened.interface.d.ts +0 -2
- package/spx-app-expiry/spx-check-expiry-warning.interface.d.ts +0 -2
- package/spx-button/public-api.d.ts +0 -1
- package/spx-button/spx-button.component.d.ts +0 -23
- package/spx-capitalize/public-api.d.ts +0 -1
- package/spx-capitalize/spx-capitalize.pipe.d.ts +0 -8
- package/spx-card/public-api.d.ts +0 -4
- package/spx-card/spx-card-grid/spx-card-grid.component.d.ts +0 -6
- package/spx-card/spx-card-item/spx-card-item.component.d.ts +0 -14
- package/spx-card/spx-card-line/spx-card-line.component.d.ts +0 -16
- package/spx-card/spx-card.component.d.ts +0 -15
- package/spx-change-details/public-api.d.ts +0 -1
- package/spx-change-details/spx-change-details-value.interface.d.ts +0 -7
- package/spx-change-details/spx-change-details.component.d.ts +0 -58
- package/spx-channel-selection/public-api.d.ts +0 -8
- package/spx-channel-selection/src/spx-channel-guard.d.ts +0 -9
- package/spx-channel-selection/src/spx-channel-indicator.component.d.ts +0 -14
- package/spx-channel-selection/src/spx-channel-selection-url.d.ts +0 -1
- package/spx-channel-selection/src/spx-welcome.component.d.ts +0 -44
- package/spx-channel-selection/store/spx-channel/spx-channel.actions.d.ts +0 -21
- package/spx-channel-selection/store/spx-channel/spx-channel.effects.d.ts +0 -17
- package/spx-channel-selection/store/spx-channel/spx-channel.initial.d.ts +0 -2
- package/spx-channel-selection/store/spx-channel/spx-channel.reducer.d.ts +0 -12
- package/spx-channel-selection/store/spx-channel/spx-channel.state.d.ts +0 -7
- package/spx-check-digit/public-api.d.ts +0 -1
- package/spx-check-digit/spx-check-digit.component.d.ts +0 -24
- package/spx-confirm/public-api.d.ts +0 -5
- package/spx-confirm/spx-confirm-displayer/spx-confirm-displayer.component.d.ts +0 -22
- package/spx-confirm/spx-confirm.component.d.ts +0 -16
- package/spx-confirm/store/spx-confirm.actions.d.ts +0 -22
- package/spx-confirm/store/spx-confirm.effects.d.ts +0 -12
- package/spx-confirm/store/spx-confirm.reducer.d.ts +0 -18
- package/spx-form-section/public-api.d.ts +0 -1
- package/spx-form-section/spx-form-section.component.d.ts +0 -9
- package/spx-form-view/public-api.d.ts +0 -6
- package/spx-form-view/spx-autocomplete-search.component.d.ts +0 -41
- package/spx-form-view/spx-form-button-type.enum.d.ts +0 -4
- package/spx-form-view/spx-form-button.interface.d.ts +0 -8
- package/spx-form-view/spx-form-field.interface.d.ts +0 -18
- package/spx-form-view/spx-form-section.interface.d.ts +0 -9
- package/spx-form-view/spx-form-view.component.d.ts +0 -49
- package/spx-form-view/spx-form.interface.d.ts +0 -6
- package/spx-helpers/calc-check-digit.function.d.ts +0 -1
- package/spx-helpers/input-alert.interface.d.ts +0 -5
- package/spx-helpers/public-api.d.ts +0 -5
- package/spx-helpers/spx-severity.enum.d.ts +0 -8
- package/spx-helpers/unsubscribe-subscriptions.function.d.ts +0 -1
- package/spx-helpers/value-pair-to-value.function.d.ts +0 -1
- package/spx-inputs/input.service.d.ts +0 -12
- package/spx-inputs/public-api.d.ts +0 -6
- package/spx-inputs/spx-dropdown/spx-dropdown.component.d.ts +0 -18
- package/spx-inputs/spx-input-alert-interface.d.ts +0 -5
- package/spx-inputs/spx-input-box/spx-input-box.component.d.ts +0 -41
- package/spx-inputs/spx-input-date/spx-input-date.component.d.ts +0 -50
- package/spx-inputs/spx-input-float/spx-input-float.component.d.ts +0 -33
- package/spx-inputs/spx-input-number/spx-input-number.component.d.ts +0 -24
- package/spx-inputs/spx-input-radio/spx-input-radio.component.d.ts +0 -27
- package/spx-inputs/spx-input-text/spx-input-text.component.d.ts +0 -34
- package/spx-inputs/spx-input-time/spx-input-time.component.d.ts +0 -35
- package/spx-inputs/spx-input-time-modal/spx-input-time-modal.component.d.ts +0 -18
- package/spx-inputs/spx-input-type.enum.d.ts +0 -16
- package/spx-inputs/spx-input.component.d.ts +0 -74
- package/spx-inputs/spx-value-interface.d.ts +0 -4
- package/spx-navigation/public-api.d.ts +0 -8
- package/spx-navigation/spx-home-tile/spx-home-tile.component.d.ts +0 -11
- package/spx-navigation/spx-home-tile/spx-home-tiles.component.d.ts +0 -6
- package/spx-navigation/spx-navigation-item.interface.d.ts +0 -22
- package/spx-navigation/spx-navigation.component.d.ts +0 -21
- package/spx-navigation/store/spx-navigation/spx-navigation.actions.d.ts +0 -28
- package/spx-navigation/store/spx-navigation/spx-navigation.initial.d.ts +0 -2
- package/spx-navigation/store/spx-navigation/spx-navigation.reducer.d.ts +0 -12
- package/spx-navigation/store/spx-navigation/spx-navigation.state.d.ts +0 -8
- package/spx-number-check/public-api.d.ts +0 -1
- package/spx-number-check/spx-number-check.component.d.ts +0 -40
- package/spx-pagination/public-api.d.ts +0 -1
- package/spx-pagination/spx-pagination.component.d.ts +0 -15
- package/spx-patch/patch-check.function.d.ts +0 -4
- package/spx-patch/public-api.d.ts +0 -3
- package/spx-patch/release-check.function.d.ts +0 -1
- package/spx-patch/spx-patch.component.d.ts +0 -11
- package/spx-pipes/public-api.d.ts +0 -1
- package/spx-pipes/spx-severity-pipe.d.ts +0 -8
- package/spx-progress-bar/public-api.d.ts +0 -1
- package/spx-progress-bar/spx-progress-bar.component.d.ts +0 -7
- package/spx-spinner/public-api.d.ts +0 -5
- package/spx-spinner/spx-spinner.component.d.ts +0 -7
- package/spx-spinner/store/spx-spinner/spx-spinner.actions.d.ts +0 -6
- package/spx-spinner/store/spx-spinner/spx-spinner.initial.d.ts +0 -2
- package/spx-spinner/store/spx-spinner/spx-spinner.reducer.d.ts +0 -9
- package/spx-spinner/store/spx-spinner/spx-spinner.state.d.ts +0 -4
- package/spx-stock-info/public-api.d.ts +0 -2
- package/spx-stock-info/spx-stock-info-value.interface.d.ts +0 -11
- package/spx-stock-info/spx-stock-info.component.d.ts +0 -85
- package/spx-storage/public-api.d.ts +0 -2
- package/spx-storage/src/spx-storage-key.enum.d.ts +0 -15
- package/spx-storage/src/spx-storage.class.d.ts +0 -9
- package/spx-suggestion/public-api.d.ts +0 -1
- package/spx-suggestion/spx-suggestion.component.d.ts +0 -9
- package/spx-tabs/public-api.d.ts +0 -3
- package/spx-tabs/src/spx-tabs.component.d.ts +0 -19
- package/spx-tabs/store/spx-shortcuts.actions.d.ts +0 -10
- package/spx-tabs/store/spx-shortcuts.reducer.d.ts +0 -11
- package/spx-toaster/public-api.d.ts +0 -7
- package/spx-toaster/src/spx-toaster-autoclose-speed.d.ts +0 -11
- package/spx-toaster/src/spx-toaster-message.interface.d.ts +0 -14
- package/spx-toaster/src/spx-toaster.component.d.ts +0 -11
- package/spx-toaster/store/spx-toaster/spx-toaster.actions.d.ts +0 -78
- package/spx-toaster/store/spx-toaster/spx-toaster.initial.d.ts +0 -2
- package/spx-toaster/store/spx-toaster/spx-toaster.reducer.d.ts +0 -11
- package/spx-toaster/store/spx-toaster/spx-toaster.state.d.ts +0 -5
- package/spx-toggle/public-api.d.ts +0 -1
- package/spx-toggle/src/spx-toggle.component.d.ts +0 -12
- package/spx-translate/public-api.d.ts +0 -3
- package/spx-translate/spx-translate._const.d.ts +0 -59
- package/spx-translate/spx-translate.en.d.ts +0 -2
- package/spx-translate/spx-translate.nl.d.ts +0 -2
- package/spx-update/public-api.d.ts +0 -13
- package/spx-update/spx-update-page.component.d.ts +0 -17
- package/spx-update/spx-update-pending.component.d.ts +0 -25
- package/spx-update/spx-update-url.d.ts +0 -1
- package/spx-update/store/spx-update-check/spx-update-check.actions.d.ts +0 -28
- package/spx-update/store/spx-update-check/spx-update-check.effects.d.ts +0 -14
- package/spx-update/store/spx-update-check/spx-update-check.initial.d.ts +0 -2
- package/spx-update/store/spx-update-check/spx-update-check.reducer.d.ts +0 -10
- package/spx-update/store/spx-update-check/spx-update-check.state.d.ts +0 -5
- package/spx-update/store/spx-update-pending/spx-update-pending.actions.d.ts +0 -8
- package/spx-update/store/spx-update-pending/spx-update-pending.effects.d.ts +0 -10
- package/spx-update/store/spx-update-pending/spx-update-pending.initial.d.ts +0 -2
- package/spx-update/store/spx-update-pending/spx-update-pending.reducer.d.ts +0 -9
- package/spx-update/store/spx-update-pending/spx-update-pending.state.d.ts +0 -4
- package/spx-validation/max.validator.d.ts +0 -7
- package/spx-validation/maxlength.validator.d.ts +0 -7
- package/spx-validation/min.validator.d.ts +0 -7
- package/spx-validation/minlength.validator.d.ts +0 -7
- package/spx-validation/pattern.validator.d.ts +0 -2
- package/spx-validation/public-api.d.ts +0 -8
- package/spx-validation/required.validator.d.ts +0 -2
- package/spx-validation/spx-validate-control.component.d.ts +0 -26
- package/spx-validation/year-and-month.validator.d.ts +0 -2
- package/spx-validation-messages/public-api.d.ts +0 -1
- package/spx-validation-messages/spx-validation-messages.component.d.ts +0 -25
|
@@ -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';\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,CAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,EAAoB;AAC3C,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,QAAQ,EAAW;AACnC,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAuC,SAAS,CAAC;AACrE,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAqB,SAAS,CAAC;AACjD,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAsB,SAAS,CAAC;AAE5D,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAE3C,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,MAAK;AAC1B,YAAA,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,C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-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';\r\nimport { AbstractControl, ValidationErrors } from '@angular/forms';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { spxTextChooseFuture, spxTextChoosePast, spxTextChooseValidMonth, spxTextDateMayNotBeFuture, spxTextDateMayNotBePast, spxTextInvalidCode, spxTextPatternNotValid, spxTextRequired, spxTextTooHigh, spxTextTooLong, spxTextTooLow, spxTextTooShort } from '@softpak/components/spx-translate';\r\n\r\n@Component({\r\n selector: 'spx-validation-messages',\r\n standalone: true,\r\n templateUrl: './spx-validation-messages.component.html',\r\n styleUrl: './spx-validation-messages.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class SpxValidationMessagesComponent { \r\n readonly errors = input.required<ValidationErrors>();\r\n readonly touched = input.required<boolean>();\r\n readonly formControlI = input<AbstractControl<any,any> | undefined>(undefined);\r\n readonly fieldLabel = input<string | undefined>(undefined);\r\n readonly submitTried = input<boolean | undefined>(undefined);\r\n\r\n translateService = inject(TranslateService);\r\n \r\n textTooLong = computed(() => {\r\n return this.translateService.instant(spxTextTooLong, { fieldLabel: this.fieldLabel(), error: this.errors()[\"maxlength\"].requiredLength });\r\n });\r\n\r\n textTooShort = computed(() => {\r\n return this.translateService.instant(spxTextTooShort, { fieldLabel: this.fieldLabel(), error: this.errors()[\"minlength\"].requiredLength });\r\n });\r\n\r\n textTooHigh = computed(() => {\r\n return this.translateService.instant(spxTextTooHigh, { fieldLabel: this.fieldLabel(), error: this.errors()[\"max\"].max });\r\n });\r\n\r\n textTooLow = computed(() => {\r\n return this.translateService.instant(spxTextTooLow, { fieldLabel: this.fieldLabel(), error: this.errors()[\"min\"].min });\r\n });\r\n\r\n textPatternNotValid = computed(() => {\r\n return this.translateService.instant(spxTextPatternNotValid, { fieldLabel: this.fieldLabel() });\r\n });\r\n\r\n textRequired = computed(() => {\r\n return this.translateService.instant(spxTextRequired, { fieldLabel: this.fieldLabel() });\r\n });\r\n\r\n textChoosePast = computed(() => {\r\n return this.translateService.instant(spxTextChoosePast);\r\n });\r\n\r\n textChooseFuture = computed(() => {\r\n return this.translateService.instant(spxTextChooseFuture);\r\n });\r\n\r\n textChooseValidMonth = computed(() => {\r\n return this.translateService.instant(spxTextChooseValidMonth);\r\n });\r\n\r\n textDateMayNotBeFuture = computed(() => {\r\n return this.translateService.instant(spxTextDateMayNotBeFuture);\r\n });\r\n\r\n textDateMayNotBePast = computed(() => {\r\n return this.translateService.instant(spxTextDateMayNotBePast);\r\n });\r\n\r\n textInvalidCode = computed(() => {\r\n return this.translateService.instant(spxTextInvalidCode, { codeName: this.errors()[\"invalidCode\"].name, codeCode: this.errors()[\"invalidCode\"].code });\r\n });\r\n\r\n}\r\n","\r\n@if (formControlI() && errors() && (touched() || submitTried())) {\r\n @if (errors()[\"maxlength\"]) {\r\n <div>{{ textTooLong() }}</div>\r\n }\r\n @if (errors()[\"minlength\"]) {\r\n <div>{{ textTooShort() }}</div>\r\n }\r\n @if (errors()[\"max\"]) {\r\n <div>{{ textTooHigh() }}</div>\r\n }\r\n @if (errors()[\"min\"]) {\r\n <div>{{ textTooLow() }}</div>\r\n }\r\n @if (errors()[\"pattern\"]) {\r\n <div>{{ textPatternNotValid() }}</div>\r\n }\r\n @if (errors()[\"required\"]) {\r\n <div>{{ textRequired() }}</div>\r\n }\r\n @if (errors()[\"year\"]) {\r\n <div>{{ textChoosePast() }}</div>\r\n }\r\n @if (errors()[\"yearFuture\"]) {\r\n <div>{{ textChooseFuture() }}</div>\r\n }\r\n @if (errors()[\"month\"]) {\r\n <div>{{ textChooseValidMonth() }}</div>\r\n }\r\n @if (errors()[\"future\"]) {\r\n <div>{{ textDateMayNotBeFuture() }}</div>\r\n }\r\n @if (errors()[\"past\"]) {\r\n <div>{{ textDateMayNotBePast() }}</div>\r\n }\r\n @if (errors()[\"invalidCode\"]) {\r\n <div>{{ textInvalidCode() }}</div>\r\n }\r\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,CAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,EAAoB;AAC3C,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,QAAQ,EAAW;AACnC,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAuC,SAAS,CAAC;AACrE,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAqB,SAAS,CAAC;AACjD,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAsB,SAAS,CAAC;AAE5D,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAE3C,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,MAAK;AAC1B,YAAA,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,WAAW,CAAC,CAAC,cAAc,EAAE,CAAC;AAC3I,SAAC,CAAC;AAEF,QAAA,IAAA,CAAA,YAAY,GAAG,QAAQ,CAAC,MAAK;AAC3B,YAAA,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,WAAW,CAAC,CAAC,cAAc,EAAE,CAAC;AAC5I,SAAC,CAAC;AAEF,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,MAAK;AAC1B,YAAA,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC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;;;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: "20.0.0", ngImport: i0, type: SpxValidateControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
187
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.0", 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())) {\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", 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: "20.0.0", 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())) {\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" }]
|
|
193
|
+
], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "@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" }]
|
|
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';\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,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,OA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A,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECbxC,ypCAmCA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,ED3BQ,WAAW,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAKN,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,ypCAAA,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';\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,K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|
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-alert": {
|
|
40
|
-
"types": "./spx-alert/index.d.ts",
|
|
41
|
-
"default": "./fesm2022/softpak-components-spx-alert.mjs"
|
|
42
|
-
},
|
|
43
|
-
"./spx-button": {
|
|
44
|
-
"types": "./spx-button/index.d.ts",
|
|
45
|
-
"default": "./fesm2022/softpak-components-spx-button.mjs"
|
|
46
|
-
},
|
|
47
39
|
"./spx-app-configuration": {
|
|
48
40
|
"types": "./spx-app-configuration/index.d.ts",
|
|
49
41
|
"default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
|
|
50
42
|
},
|
|
43
|
+
"./spx-alert": {
|
|
44
|
+
"types": "./spx-alert/index.d.ts",
|
|
45
|
+
"default": "./fesm2022/softpak-components-spx-alert.mjs"
|
|
46
|
+
},
|
|
51
47
|
"./spx-app-expiry": {
|
|
52
48
|
"types": "./spx-app-expiry/index.d.ts",
|
|
53
49
|
"default": "./fesm2022/softpak-components-spx-app-expiry.mjs"
|
|
54
50
|
},
|
|
51
|
+
"./spx-button": {
|
|
52
|
+
"types": "./spx-button/index.d.ts",
|
|
53
|
+
"default": "./fesm2022/softpak-components-spx-button.mjs"
|
|
54
|
+
},
|
|
55
55
|
"./spx-capitalize": {
|
|
56
56
|
"types": "./spx-capitalize/index.d.ts",
|
|
57
57
|
"default": "./fesm2022/softpak-components-spx-capitalize.mjs"
|
|
@@ -104,29 +104,21 @@
|
|
|
104
104
|
"types": "./spx-pagination/index.d.ts",
|
|
105
105
|
"default": "./fesm2022/softpak-components-spx-pagination.mjs"
|
|
106
106
|
},
|
|
107
|
-
"./spx-patch": {
|
|
108
|
-
"types": "./spx-patch/index.d.ts",
|
|
109
|
-
"default": "./fesm2022/softpak-components-spx-patch.mjs"
|
|
110
|
-
},
|
|
111
107
|
"./spx-pipes": {
|
|
112
108
|
"types": "./spx-pipes/index.d.ts",
|
|
113
109
|
"default": "./fesm2022/softpak-components-spx-pipes.mjs"
|
|
114
110
|
},
|
|
115
|
-
"./spx-
|
|
116
|
-
"types": "./spx-
|
|
117
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
111
|
+
"./spx-patch": {
|
|
112
|
+
"types": "./spx-patch/index.d.ts",
|
|
113
|
+
"default": "./fesm2022/softpak-components-spx-patch.mjs"
|
|
118
114
|
},
|
|
119
115
|
"./spx-spinner": {
|
|
120
116
|
"types": "./spx-spinner/index.d.ts",
|
|
121
117
|
"default": "./fesm2022/softpak-components-spx-spinner.mjs"
|
|
122
118
|
},
|
|
123
|
-
"./spx-
|
|
124
|
-
"types": "./spx-
|
|
125
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
126
|
-
},
|
|
127
|
-
"./spx-storage": {
|
|
128
|
-
"types": "./spx-storage/index.d.ts",
|
|
129
|
-
"default": "./fesm2022/softpak-components-spx-storage.mjs"
|
|
119
|
+
"./spx-progress-bar": {
|
|
120
|
+
"types": "./spx-progress-bar/index.d.ts",
|
|
121
|
+
"default": "./fesm2022/softpak-components-spx-progress-bar.mjs"
|
|
130
122
|
},
|
|
131
123
|
"./spx-suggestion": {
|
|
132
124
|
"types": "./spx-suggestion/index.d.ts",
|
|
@@ -136,6 +128,10 @@
|
|
|
136
128
|
"types": "./spx-tabs/index.d.ts",
|
|
137
129
|
"default": "./fesm2022/softpak-components-spx-tabs.mjs"
|
|
138
130
|
},
|
|
131
|
+
"./spx-stock-info": {
|
|
132
|
+
"types": "./spx-stock-info/index.d.ts",
|
|
133
|
+
"default": "./fesm2022/softpak-components-spx-stock-info.mjs"
|
|
134
|
+
},
|
|
139
135
|
"./spx-toaster": {
|
|
140
136
|
"types": "./spx-toaster/index.d.ts",
|
|
141
137
|
"default": "./fesm2022/softpak-components-spx-toaster.mjs"
|
|
@@ -144,21 +140,25 @@
|
|
|
144
140
|
"types": "./spx-toggle/index.d.ts",
|
|
145
141
|
"default": "./fesm2022/softpak-components-spx-toggle.mjs"
|
|
146
142
|
},
|
|
147
|
-
"./spx-
|
|
148
|
-
"types": "./spx-
|
|
149
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
143
|
+
"./spx-storage": {
|
|
144
|
+
"types": "./spx-storage/index.d.ts",
|
|
145
|
+
"default": "./fesm2022/softpak-components-spx-storage.mjs"
|
|
150
146
|
},
|
|
151
147
|
"./spx-update": {
|
|
152
148
|
"types": "./spx-update/index.d.ts",
|
|
153
149
|
"default": "./fesm2022/softpak-components-spx-update.mjs"
|
|
154
150
|
},
|
|
155
|
-
"./spx-validation": {
|
|
156
|
-
"types": "./spx-validation/index.d.ts",
|
|
157
|
-
"default": "./fesm2022/softpak-components-spx-validation.mjs"
|
|
158
|
-
},
|
|
159
151
|
"./spx-validation-messages": {
|
|
160
152
|
"types": "./spx-validation-messages/index.d.ts",
|
|
161
153
|
"default": "./fesm2022/softpak-components-spx-validation-messages.mjs"
|
|
154
|
+
},
|
|
155
|
+
"./spx-translate": {
|
|
156
|
+
"types": "./spx-translate/index.d.ts",
|
|
157
|
+
"default": "./fesm2022/softpak-components-spx-translate.mjs"
|
|
158
|
+
},
|
|
159
|
+
"./spx-validation": {
|
|
160
|
+
"types": "./spx-validation/index.d.ts",
|
|
161
|
+
"default": "./fesm2022/softpak-components-spx-validation.mjs"
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
}
|
package/spx-404-page/index.d.ts
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { NavController } from '@ionic/angular/standalone';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
|
|
5
|
+
declare class Spx404PageComponent {
|
|
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 };
|
package/spx-alert/index.d.ts
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as _fortawesome_fontawesome_common_types from '@fortawesome/fontawesome-common-types';
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
|
|
4
|
+
|
|
5
|
+
declare class SpxAlertComponent {
|
|
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,5 +1,66 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
declare enum SpxAppLangEnum {
|
|
2
|
+
english = "en",
|
|
3
|
+
dutch = "nl"
|
|
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,5 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnChanges } from '@angular/core';
|
|
3
|
+
import { DateTime } from 'luxon';
|
|
4
|
+
|
|
5
|
+
interface SpxAppExpiryI {
|
|
6
|
+
requiredVersion: string;
|
|
7
|
+
warning: DateTime;
|
|
8
|
+
finalWarning: DateTime;
|
|
9
|
+
expiry: DateTime;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare class SpxAppExpiryComponent implements OnChanges {
|
|
13
|
+
readonly txtContactHelpdeskOrSoftpak: _angular_core.InputSignal<string>;
|
|
14
|
+
readonly txtExpired: _angular_core.InputSignal<string>;
|
|
15
|
+
readonly txtLastReminder: _angular_core.InputSignal<string>;
|
|
16
|
+
readonly txtPleaseOpenTheAppStore: _angular_core.InputSignal<string>;
|
|
17
|
+
readonly txtPleaseUpdate: _angular_core.InputSignal<string>;
|
|
18
|
+
readonly txtThisVersionWillExpireSoon: _angular_core.InputSignal<string>;
|
|
19
|
+
readonly txtUpdateAvailable: _angular_core.InputSignal<string>;
|
|
20
|
+
readonly txtUpdateTheAppToTheLatestVersion: _angular_core.InputSignal<string>;
|
|
21
|
+
readonly spxExpiry: _angular_core.InputSignal<SpxAppExpiryI>;
|
|
22
|
+
readonly spxVersion: _angular_core.InputSignal<string>;
|
|
23
|
+
warning: _angular_core.WritableSignal<boolean>;
|
|
24
|
+
finalWarning: _angular_core.WritableSignal<boolean>;
|
|
25
|
+
expired: _angular_core.WritableSignal<boolean>;
|
|
26
|
+
ngOnChanges(): void;
|
|
27
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SpxAppExpiryComponent, never>;
|
|
28
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SpxAppExpiryComponent, "spx-app-expiry", never, { "txtContactHelpdeskOrSoftpak": { "alias": "txtContactHelpdeskOrSoftpak"; "required": true; "isSignal": true; }; "txtExpired": { "alias": "txtExpired"; "required": true; "isSignal": true; }; "txtLastReminder": { "alias": "txtLastReminder"; "required": true; "isSignal": true; }; "txtPleaseOpenTheAppStore": { "alias": "txtPleaseOpenTheAppStore"; "required": true; "isSignal": true; }; "txtPleaseUpdate": { "alias": "txtPleaseUpdate"; "required": true; "isSignal": true; }; "txtThisVersionWillExpireSoon": { "alias": "txtThisVersionWillExpireSoon"; "required": true; "isSignal": true; }; "txtUpdateAvailable": { "alias": "txtUpdateAvailable"; "required": true; "isSignal": true; }; "txtUpdateTheAppToTheLatestVersion": { "alias": "txtUpdateTheAppToTheLatestVersion"; "required": true; "isSignal": true; }; "spxExpiry": { "alias": "spxExpiry"; "required": true; "isSignal": true; }; "spxVersion": { "alias": "spxVersion"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare const spxCheckExpiryFinalWarning: (appStoreVersion: string, spxAppExpiry?: SpxAppExpiryI) => boolean;
|
|
32
|
+
|
|
33
|
+
declare const spxCheckExpiryHappened: (appStoreVersion: string, spxAppExpiry: SpxAppExpiryI) => boolean;
|
|
34
|
+
|
|
35
|
+
declare const spxCheckExpiryWarning: (appStoreVersion: string, spxAppExpiry?: SpxAppExpiryI) => boolean;
|
|
36
|
+
|
|
37
|
+
export { SpxAppExpiryComponent, spxCheckExpiryFinalWarning, spxCheckExpiryHappened, spxCheckExpiryWarning };
|
|
38
|
+
export type { SpxAppExpiryI };
|
package/spx-button/index.d.ts
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
|
+
import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
|
|
4
|
+
|
|
5
|
+
declare class SpxButtonComponent {
|
|
6
|
+
readonly spxDisabled: _angular_core.InputSignal<boolean>;
|
|
7
|
+
readonly spxClass: _angular_core.InputSignal<string | undefined>;
|
|
8
|
+
readonly spxClassObject: _angular_core.InputSignal<object | undefined>;
|
|
9
|
+
readonly spxForm: _angular_core.InputSignal<string | undefined>;
|
|
10
|
+
readonly spxFullHeight: _angular_core.InputSignal<boolean | undefined>;
|
|
11
|
+
readonly spxFullWidth: _angular_core.InputSignal<boolean | undefined>;
|
|
12
|
+
readonly spxSeverity: _angular_core.InputSignal<SpxSeverityEnum | undefined>;
|
|
13
|
+
readonly spxSize: _angular_core.InputSignal<"lg" | "xl">;
|
|
14
|
+
readonly spxTabIndex: _angular_core.InputSignal<number | undefined>;
|
|
15
|
+
readonly spxType: _angular_core.InputSignal<"button" | "submit">;
|
|
16
|
+
spxClick: _angular_core.OutputEmitterRef<void>;
|
|
17
|
+
buttonRef: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
18
|
+
SpxSeverity: typeof SpxSeverityEnum;
|
|
19
|
+
hasShadowDom: (el: HTMLElement) => boolean;
|
|
20
|
+
handleClick: () => void;
|
|
21
|
+
spxSetFocus(): void;
|
|
22
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SpxButtonComponent, never>;
|
|
23
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SpxButtonComponent, "spx-button", never, { "spxDisabled": { "alias": "spxDisabled"; "required": false; "isSignal": true; }; "spxClass": { "alias": "spxClass"; "required": false; "isSignal": true; }; "spxClassObject": { "alias": "spxClassObject"; "required": false; "isSignal": true; }; "spxForm": { "alias": "spxForm"; "required": false; "isSignal": true; }; "spxFullHeight": { "alias": "spxFullHeight"; "required": false; "isSignal": true; }; "spxFullWidth": { "alias": "spxFullWidth"; "required": false; "isSignal": true; }; "spxSeverity": { "alias": "spxSeverity"; "required": false; "isSignal": true; }; "spxSize": { "alias": "spxSize"; "required": false; "isSignal": true; }; "spxTabIndex": { "alias": "spxTabIndex"; "required": false; "isSignal": true; }; "spxType": { "alias": "spxType"; "required": false; "isSignal": true; }; }, { "spxClick": "spxClick"; }, never, ["*"], true, never>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { SpxButtonComponent };
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { PipeTransform } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
declare class SpxCapitalizePipe implements PipeTransform {
|
|
5
|
+
transform(value: string, ..._args: unknown[]): string;
|
|
6
|
+
static transform(value: string, ..._args: unknown[]): string;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpxCapitalizePipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SpxCapitalizePipe, "capitalize", true>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { SpxCapitalizePipe };
|
package/spx-card/index.d.ts
CHANGED
|
@@ -1,5 +1,54 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { IconDefinition } from '@fortawesome/angular-fontawesome';
|
|
3
|
+
import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
|
|
4
|
+
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
5
|
+
|
|
6
|
+
declare class SpxCardComponent {
|
|
7
|
+
readonly clickable: _angular_core.InputSignal<boolean>;
|
|
8
|
+
readonly hasContent: _angular_core.InputSignal<boolean>;
|
|
9
|
+
readonly onDetailPage: _angular_core.InputSignal<boolean>;
|
|
10
|
+
readonly text: _angular_core.InputSignal<string | undefined>;
|
|
11
|
+
readonly unit: _angular_core.InputSignal<string | undefined>;
|
|
12
|
+
readonly tableView: _angular_core.InputSignal<boolean>;
|
|
13
|
+
clicked: _angular_core.OutputEmitterRef<void>;
|
|
14
|
+
constructor();
|
|
15
|
+
displayValue(val: string | number): string | number;
|
|
16
|
+
onClick(): void;
|
|
17
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SpxCardComponent, never>;
|
|
18
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SpxCardComponent, "spx-card", never, { "clickable": { "alias": "clickable"; "required": false; "isSignal": true; }; "hasContent": { "alias": "hasContent"; "required": false; "isSignal": true; }; "onDetailPage": { "alias": "onDetailPage"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "unit": { "alias": "unit"; "required": false; "isSignal": true; }; "tableView": { "alias": "tableView"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, ["[card-header]", "[card-content-top]", "[card-content]", "[card-content-bottom]", "[card-lines]"], true, never>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare class SpxCardItemComponent {
|
|
22
|
+
readonly icon: _angular_core.InputSignal<IconDefinition | undefined>;
|
|
23
|
+
readonly iconOnly: _angular_core.InputSignal<boolean>;
|
|
24
|
+
readonly spxLabel: _angular_core.InputSignal<string>;
|
|
25
|
+
readonly spxValue: _angular_core.InputSignal<string | undefined>;
|
|
26
|
+
readonly spxSeverity: _angular_core.InputSignal<SpxSeverityEnum | undefined>;
|
|
27
|
+
readonly spxIconSeverity: _angular_core.InputSignal<SpxSeverityEnum | undefined>;
|
|
28
|
+
SpxSeverityEnum: typeof SpxSeverityEnum;
|
|
29
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SpxCardItemComponent, never>;
|
|
30
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SpxCardItemComponent, "spx-card-item", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; "spxLabel": { "alias": "spxLabel"; "required": true; "isSignal": true; }; "spxValue": { "alias": "spxValue"; "required": false; "isSignal": true; }; "spxSeverity": { "alias": "spxSeverity"; "required": false; "isSignal": true; }; "spxIconSeverity": { "alias": "spxIconSeverity"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare class SpxCardGridComponent {
|
|
34
|
+
readonly minWidth2Columns: _angular_core.InputSignal<300 | 320 | 340 | 360 | 380 | 400 | 420 | 440 | 460 | undefined>;
|
|
35
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SpxCardGridComponent, never>;
|
|
36
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SpxCardGridComponent, "spx-card-grid", never, { "minWidth2Columns": { "alias": "minWidth2Columns"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare class SpxCardLineComponent {
|
|
40
|
+
readonly icon: _angular_core.InputSignal<IconProp | undefined>;
|
|
41
|
+
readonly showPositiveOrNegative: _angular_core.InputSignal<boolean>;
|
|
42
|
+
readonly text: _angular_core.InputSignal<unknown>;
|
|
43
|
+
readonly value: _angular_core.ModelSignal<string | number>;
|
|
44
|
+
readonly secondValue: _angular_core.InputSignal<string | number | undefined>;
|
|
45
|
+
readonly showProgress: _angular_core.InputSignal<boolean | undefined>;
|
|
46
|
+
readonly unit: _angular_core.InputSignal<string | undefined>;
|
|
47
|
+
readonly newOrderScreen: _angular_core.InputSignal<boolean>;
|
|
48
|
+
numericValue: _angular_core.Signal<number>;
|
|
49
|
+
displayValue(val: string | number | unknown): string | number | unknown;
|
|
50
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SpxCardLineComponent, never>;
|
|
51
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SpxCardLineComponent, "spx-card-line", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showPositiveOrNegative": { "alias": "showPositiveOrNegative"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "secondValue": { "alias": "secondValue"; "required": false; "isSignal": true; }; "showProgress": { "alias": "showProgress"; "required": false; "isSignal": true; }; "unit": { "alias": "unit"; "required": false; "isSignal": true; }; "newOrderScreen": { "alias": "newOrderScreen"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, ["*"], true, never>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { SpxCardComponent, SpxCardGridComponent, SpxCardItemComponent, SpxCardLineComponent };
|