@softpak/components 18.6.9 → 18.6.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -24
- package/esm2022/spx-alert/public-api.mjs +1 -1
- package/esm2022/spx-alert/spx-alert.component.mjs +115 -115
- package/esm2022/spx-alert/spx-alert.interface.mjs +1 -1
- package/esm2022/spx-app-configuration/public-api.mjs +1 -1
- package/esm2022/spx-app-configuration/spx-app-alert.interface.mjs +1 -1
- package/esm2022/spx-app-configuration/spx-app-bundle-set.interface.mjs +1 -1
- package/esm2022/spx-app-configuration/spx-app-channel-type.enum.mjs +1 -1
- package/esm2022/spx-app-configuration/spx-app-channel.interface.mjs +1 -1
- package/esm2022/spx-app-configuration/spx-app-config.interface.mjs +1 -1
- package/esm2022/spx-app-configuration/spx-app-id.enum.mjs +1 -1
- package/esm2022/spx-app-configuration/spx-app-lang.enum.mjs +1 -1
- package/esm2022/spx-app-configuration/spx-app-release-note.interface.mjs +1 -1
- package/esm2022/spx-app-expiry/public-api.mjs +1 -1
- package/esm2022/spx-app-expiry/spx-app-expiry.component.mjs +57 -57
- package/esm2022/spx-app-expiry/spx-app-expiry.interface.mjs +1 -1
- package/esm2022/spx-app-expiry/spx-check-expiry-final-warning.interface.mjs +1 -1
- package/esm2022/spx-app-expiry/spx-check-expiry-happened.interface.mjs +1 -1
- package/esm2022/spx-app-expiry/spx-check-expiry-warning.interface.mjs +1 -1
- package/esm2022/spx-app-update/public-api.mjs +1 -1
- package/esm2022/spx-app-update/spx-app-update.component.mjs +59 -59
- package/esm2022/spx-button/public-api.mjs +1 -1
- package/esm2022/spx-button/spx-button.component.mjs +63 -63
- package/esm2022/spx-capitalize/public-api.mjs +1 -1
- package/esm2022/spx-capitalize/spx-capitalize.pipe.mjs +1 -1
- package/esm2022/spx-card/public-api.mjs +1 -1
- package/esm2022/spx-card/spx-card-grid.component.mjs +27 -27
- package/esm2022/spx-card/spx-card-item.component.mjs +69 -69
- package/esm2022/spx-card/spx-card-line.component.mjs +77 -77
- package/esm2022/spx-card/spx-card.component.mjs +51 -51
- package/esm2022/spx-change-details/public-api.mjs +1 -1
- package/esm2022/spx-change-details/spx-change-details-value.interface.mjs +1 -1
- package/esm2022/spx-change-details/spx-change-details.component.mjs +3 -3
- package/esm2022/spx-channel-selection/public-api.mjs +1 -1
- package/esm2022/spx-channel-selection/src/spx-channel-indicator.component.mjs +13 -13
- package/esm2022/spx-channel-selection/src/spx-welcome.component.mjs +13 -13
- package/esm2022/spx-check-digit/public-api.mjs +1 -1
- package/esm2022/spx-check-digit/spx-check-digit.component.mjs +3 -3
- package/esm2022/spx-form-section/public-api.mjs +1 -1
- package/esm2022/spx-form-section/spx-form-section.component.mjs +21 -21
- package/esm2022/spx-form-view/public-api.mjs +1 -1
- package/esm2022/spx-form-view/spx-autocomplete-search.component.mjs +3 -3
- package/esm2022/spx-form-view/spx-form-button-type.enum.mjs +1 -1
- package/esm2022/spx-form-view/spx-form-button.interface.mjs +1 -1
- package/esm2022/spx-form-view/spx-form-field.interface.mjs +1 -1
- package/esm2022/spx-form-view/spx-form-section.interface.mjs +1 -1
- package/esm2022/spx-form-view/spx-form-view.component.mjs +163 -163
- package/esm2022/spx-form-view/spx-form.interface.mjs +1 -1
- package/esm2022/spx-helpers/calc-check-digit.function.mjs +1 -1
- package/esm2022/spx-helpers/public-api.mjs +1 -1
- package/esm2022/spx-helpers/spx-severity.enum.mjs +1 -1
- package/esm2022/spx-helpers/value-pair-to-value.function.mjs +1 -1
- package/esm2022/spx-inputs/public-api.mjs +1 -1
- package/esm2022/spx-inputs/spx-dropdown.component.mjs +33 -33
- package/esm2022/spx-inputs/spx-input-box.component.mjs +177 -151
- package/esm2022/spx-inputs/spx-input-date/spx-input-date.component.mjs +50 -17
- package/esm2022/spx-inputs/spx-input-float.component.mjs +51 -51
- package/esm2022/spx-inputs/spx-input-number.component.mjs +27 -27
- package/esm2022/spx-inputs/spx-input-radio.component.mjs +23 -23
- package/esm2022/spx-inputs/spx-input-text.component.mjs +63 -63
- package/esm2022/spx-inputs/spx-input-time-modal.component.mjs +77 -77
- package/esm2022/spx-inputs/spx-input-time.component.mjs +13 -13
- package/esm2022/spx-inputs/spx-input-type.enum.mjs +1 -1
- package/esm2022/spx-inputs/spx-input.component.mjs +220 -220
- package/esm2022/spx-inputs/spx-value-interface.mjs +1 -1
- package/esm2022/spx-navigation/public-api.mjs +1 -1
- package/esm2022/spx-navigation/spx-home-tile.component.mjs +39 -39
- package/esm2022/spx-navigation/spx-home-tiles.component.mjs +5 -5
- package/esm2022/spx-navigation/spx-navigation-item.interface.mjs +1 -1
- package/esm2022/spx-navigation/spx-navigation.component.mjs +3 -3
- package/esm2022/spx-number-check/public-api.mjs +1 -1
- package/esm2022/spx-number-check/spx-number-check.component.mjs +77 -77
- package/esm2022/spx-pagination/public-api.mjs +1 -1
- package/esm2022/spx-pagination/spx-pagination.component.mjs +3 -3
- package/esm2022/spx-patch/patch-check.function.mjs +1 -1
- package/esm2022/spx-patch/public-api.mjs +1 -1
- package/esm2022/spx-patch/release-check.function.mjs +1 -1
- package/esm2022/spx-patch/spx-patch.component.mjs +25 -25
- package/esm2022/spx-progress-bar/public-api.mjs +1 -1
- package/esm2022/spx-progress-bar/spx-progress-bar.component.mjs +15 -15
- package/esm2022/spx-spinner/public-api.mjs +1 -1
- package/esm2022/spx-spinner/spx-spinner.component.mjs +143 -143
- package/esm2022/spx-stock-info/public-api.mjs +1 -1
- package/esm2022/spx-stock-info/spx-stock-info-value.interface.mjs +1 -1
- package/esm2022/spx-stock-info/spx-stock-info.component.mjs +3 -3
- package/esm2022/spx-storage/public-api.mjs +1 -1
- package/esm2022/spx-storage/src/spx-storage-key.enum.mjs +1 -1
- package/esm2022/spx-storage/src/spx-storage.class.mjs +1 -1
- package/esm2022/spx-suggestion/public-api.mjs +1 -1
- package/esm2022/spx-suggestion/spx-suggestion.component.mjs +41 -41
- package/esm2022/spx-toaster/public-api.mjs +1 -1
- package/esm2022/spx-toaster/src/spx-toaster-autoclose-speed.mjs +1 -1
- package/esm2022/spx-toaster/src/spx-toaster-message.interface.mjs +1 -1
- package/esm2022/spx-toaster/src/spx-toaster.component.mjs +93 -93
- package/esm2022/spx-update/public-api.mjs +1 -1
- package/esm2022/spx-update/src/spx-update-info.component.mjs +23 -23
- package/esm2022/spx-update/src/spx-update-progress.component.mjs +3 -3
- package/esm2022/spx-validation/max.validator.mjs +1 -1
- package/esm2022/spx-validation/maxlength.validator.mjs +1 -1
- package/esm2022/spx-validation/min.validator.mjs +1 -1
- package/esm2022/spx-validation/minlength.validator.mjs +1 -1
- package/esm2022/spx-validation/pattern.validator.mjs +1 -1
- package/esm2022/spx-validation/public-api.mjs +1 -1
- package/esm2022/spx-validation/required.validator.mjs +1 -1
- package/esm2022/spx-validation/spx-validate-control.component.mjs +3 -3
- package/esm2022/spx-validation/year-and-month.validator.mjs +1 -1
- package/fesm2022/softpak-components-spx-alert.mjs +114 -114
- 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 +56 -56
- package/fesm2022/softpak-components-spx-app-expiry.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-app-update.mjs +58 -58
- package/fesm2022/softpak-components-spx-app-update.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-button.mjs +62 -62
- package/fesm2022/softpak-components-spx-button.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-capitalize.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-card.mjs +220 -220
- package/fesm2022/softpak-components-spx-card.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-change-details.mjs +2 -2
- package/fesm2022/softpak-components-spx-change-details.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-channel-selection.mjs +24 -24
- package/fesm2022/softpak-components-spx-channel-selection.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-check-digit.mjs +2 -2
- package/fesm2022/softpak-components-spx-check-digit.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-form-section.mjs +20 -20
- package/fesm2022/softpak-components-spx-form-section.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-form-view.mjs +164 -164
- 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 +724 -666
- package/fesm2022/softpak-components-spx-inputs.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-navigation.mjs +44 -44
- package/fesm2022/softpak-components-spx-navigation.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-number-check.mjs +76 -76
- package/fesm2022/softpak-components-spx-number-check.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-pagination.mjs +2 -2
- package/fesm2022/softpak-components-spx-pagination.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-patch.mjs +24 -24
- package/fesm2022/softpak-components-spx-patch.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-progress-bar.mjs +14 -14
- package/fesm2022/softpak-components-spx-progress-bar.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-spinner.mjs +142 -142
- package/fesm2022/softpak-components-spx-spinner.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-stock-info.mjs +2 -2
- 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 +40 -40
- package/fesm2022/softpak-components-spx-suggestion.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-toaster.mjs +92 -92
- package/fesm2022/softpak-components-spx-toaster.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-update.mjs +24 -24
- package/fesm2022/softpak-components-spx-update.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-validation.mjs +2 -2
- package/fesm2022/softpak-components-spx-validation.mjs.map +1 -1
- package/package.json +57 -57
- package/spx-inputs/spx-input-box.component.d.ts +4 -1
- package/spx-inputs/spx-input-date/spx-input-date.component.d.ts +5 -1
|
@@ -39,34 +39,34 @@ class SpxUpdateInfoComponent {
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpxUpdateInfoComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
42
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SpxUpdateInfoComponent, isStandalone: true, selector: "spx-update-info", inputs: { txtAppStoreVersion: "txtAppStoreVersion", txtChannel: "txtChannel", txtNextVersion: "txtNextVersion", txtVersion: "txtVersion" }, ngImport: i0, template: `<form [formGroup]="form" class="mt-3">
|
|
43
|
-
<div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3">
|
|
44
|
-
<spx-input [formControl]="ctrlVersionNumber" [spxLabel]="txtVersion | capitalize"
|
|
45
|
-
[spxReadonly]="true"></spx-input>
|
|
46
|
-
<spx-input [formControl]="ctrlNextVersionNumber" [spxLabel]="txtNextVersion | capitalize"
|
|
47
|
-
[spxReadonly]="true"></spx-input>
|
|
48
|
-
<spx-input [formControl]="ctrlConfiguredChannel" [spxLabel]="txtChannel | capitalize"
|
|
49
|
-
[spxReadonly]="true"></spx-input>
|
|
50
|
-
<spx-input [formControl]="ctrlAppStoreVersion" [spxLabel]="txtAppStoreVersion | capitalize"
|
|
51
|
-
[spxReadonly]="true"></spx-input>
|
|
52
|
-
</div>
|
|
42
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SpxUpdateInfoComponent, isStandalone: true, selector: "spx-update-info", inputs: { txtAppStoreVersion: "txtAppStoreVersion", txtChannel: "txtChannel", txtNextVersion: "txtNextVersion", txtVersion: "txtVersion" }, ngImport: i0, template: `<form [formGroup]="form" class="mt-3">
|
|
43
|
+
<div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3">
|
|
44
|
+
<spx-input [formControl]="ctrlVersionNumber" [spxLabel]="txtVersion | capitalize"
|
|
45
|
+
[spxReadonly]="true"></spx-input>
|
|
46
|
+
<spx-input [formControl]="ctrlNextVersionNumber" [spxLabel]="txtNextVersion | capitalize"
|
|
47
|
+
[spxReadonly]="true"></spx-input>
|
|
48
|
+
<spx-input [formControl]="ctrlConfiguredChannel" [spxLabel]="txtChannel | capitalize"
|
|
49
|
+
[spxReadonly]="true"></spx-input>
|
|
50
|
+
<spx-input [formControl]="ctrlAppStoreVersion" [spxLabel]="txtAppStoreVersion | capitalize"
|
|
51
|
+
[spxReadonly]="true"></spx-input>
|
|
52
|
+
</div>
|
|
53
53
|
</form>`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "pipe", type: SpxCapitalizePipe, name: "capitalize" }, { kind: "component", type: SpxInputComponent, selector: "spx-input", inputs: ["spxLabel", "spxMax", "spxMin", "spxName", "spxReadonly", "spxAutocomplete", "spxAutofocus", "spxInputMode", "spxPattern", "spxRequired", "spxSelectMonth", "spxSelectDay", "spxShowEdit", "spxShowHelp", "spxShowLabel", "spxCompact", "spxShowClear", "spxShowSearch", "spxShowValidationMessages", "spxStep", "spxSuggestions", "spxType", "spxValidators", "value", "spxCapitalize", "spxFocused"], outputs: ["spxBlur", "spxClear", "spxChange", "spxFocus", "spxEdit", "spxHelp", "spxSearch"] }] }); }
|
|
54
54
|
}
|
|
55
55
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpxUpdateInfoComponent, decorators: [{
|
|
56
56
|
type: Component,
|
|
57
57
|
args: [{
|
|
58
58
|
selector: 'spx-update-info',
|
|
59
|
-
template: `<form [formGroup]="form" class="mt-3">
|
|
60
|
-
<div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3">
|
|
61
|
-
<spx-input [formControl]="ctrlVersionNumber" [spxLabel]="txtVersion | capitalize"
|
|
62
|
-
[spxReadonly]="true"></spx-input>
|
|
63
|
-
<spx-input [formControl]="ctrlNextVersionNumber" [spxLabel]="txtNextVersion | capitalize"
|
|
64
|
-
[spxReadonly]="true"></spx-input>
|
|
65
|
-
<spx-input [formControl]="ctrlConfiguredChannel" [spxLabel]="txtChannel | capitalize"
|
|
66
|
-
[spxReadonly]="true"></spx-input>
|
|
67
|
-
<spx-input [formControl]="ctrlAppStoreVersion" [spxLabel]="txtAppStoreVersion | capitalize"
|
|
68
|
-
[spxReadonly]="true"></spx-input>
|
|
69
|
-
</div>
|
|
59
|
+
template: `<form [formGroup]="form" class="mt-3">
|
|
60
|
+
<div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3">
|
|
61
|
+
<spx-input [formControl]="ctrlVersionNumber" [spxLabel]="txtVersion | capitalize"
|
|
62
|
+
[spxReadonly]="true"></spx-input>
|
|
63
|
+
<spx-input [formControl]="ctrlNextVersionNumber" [spxLabel]="txtNextVersion | capitalize"
|
|
64
|
+
[spxReadonly]="true"></spx-input>
|
|
65
|
+
<spx-input [formControl]="ctrlConfiguredChannel" [spxLabel]="txtChannel | capitalize"
|
|
66
|
+
[spxReadonly]="true"></spx-input>
|
|
67
|
+
<spx-input [formControl]="ctrlAppStoreVersion" [spxLabel]="txtAppStoreVersion | capitalize"
|
|
68
|
+
[spxReadonly]="true"></spx-input>
|
|
69
|
+
</div>
|
|
70
70
|
</form>`,
|
|
71
71
|
standalone: true,
|
|
72
72
|
imports: [
|
|
@@ -107,14 +107,14 @@ class SpxUpdateProgressComponent {
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpxUpdateProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
110
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SpxUpdateProgressComponent, isStandalone: true, selector: "spx-update-progress", inputs: { title: "title", percentage: "percentage" }, ngImport: i0, template: `<spx-progress-bar [spxPercentage]="delayedPercentage" [spxTitle]="title | capitalize">
|
|
110
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SpxUpdateProgressComponent, isStandalone: true, selector: "spx-update-progress", inputs: { title: "title", percentage: "percentage" }, ngImport: i0, template: `<spx-progress-bar [spxPercentage]="delayedPercentage" [spxTitle]="title | capitalize">
|
|
111
111
|
</spx-progress-bar>`, isInline: true, dependencies: [{ kind: "component", type: SpxProgressBarComponent, selector: "spx-progress-bar", inputs: ["spxPercentage", "spxTitle"] }, { kind: "pipe", type: SpxCapitalizePipe, name: "capitalize" }] }); }
|
|
112
112
|
}
|
|
113
113
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpxUpdateProgressComponent, decorators: [{
|
|
114
114
|
type: Component,
|
|
115
115
|
args: [{
|
|
116
116
|
selector: 'spx-update-progress',
|
|
117
|
-
template: `<spx-progress-bar [spxPercentage]="delayedPercentage" [spxTitle]="title | capitalize">
|
|
117
|
+
template: `<spx-progress-bar [spxPercentage]="delayedPercentage" [spxTitle]="title | capitalize">
|
|
118
118
|
</spx-progress-bar>`,
|
|
119
119
|
standalone: true,
|
|
120
120
|
imports: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softpak-components-spx-update.mjs","sources":["../../../../projects/softpak/components/spx-update/src/spx-update-info.component.ts","../../../../projects/softpak/components/spx-update/src/spx-update-progress.component.ts","../../../../projects/softpak/components/spx-update/softpak-components-spx-update.ts"],"sourcesContent":["\nimport { Component, Input } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\nimport { SpxInputComponent } from '@softpak/components/spx-inputs';\n\nconst ctrlAppStoreVersion = 'appStoreVersion';\nconst ctrlChannel = 'channel';\nconst ctrlNextVersionNumber = 'nextVersionNumber';\nconst ctrlVersionNumber = 'versionNumber';\n\n@Component({\n selector: 'spx-update-info',\n template: `<form [formGroup]=\"form\" class=\"mt-3\">\n <div class=\"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3\">\n <spx-input [formControl]=\"ctrlVersionNumber\" [spxLabel]=\"txtVersion | capitalize\"\n [spxReadonly]=\"true\"></spx-input>\n <spx-input [formControl]=\"ctrlNextVersionNumber\" [spxLabel]=\"txtNextVersion | capitalize\"\n [spxReadonly]=\"true\"></spx-input>\n <spx-input [formControl]=\"ctrlConfiguredChannel\" [spxLabel]=\"txtChannel | capitalize\"\n [spxReadonly]=\"true\"></spx-input>\n <spx-input [formControl]=\"ctrlAppStoreVersion\" [spxLabel]=\"txtAppStoreVersion | capitalize\"\n [spxReadonly]=\"true\"></spx-input>\n </div>\n </form>`,\n standalone: true,\n imports: [\n FormsModule,\n ReactiveFormsModule,\n SpxCapitalizePipe,\n SpxInputComponent\n]\n})\nexport class SpxUpdateInfoComponent {\n form!: FormGroup;\n @Input() txtAppStoreVersion!: string;\n @Input() txtChannel!: string;\n @Input() txtNextVersion!: string;\n @Input() txtVersion!: string;\n \n get ctrlVersionNumber(): FormControl { return this.form.get(ctrlVersionNumber) as FormControl; }\n get ctrlNextVersionNumber(): FormControl { return this.form.get(ctrlNextVersionNumber) as FormControl; }\n get ctrlConfiguredChannel(): FormControl { return this.form.get(ctrlChannel) as FormControl; }\n get ctrlAppStoreVersion(): FormControl { return this.form.get(ctrlAppStoreVersion) as FormControl; }\n\n constructor(\n private readonly formBuilder: FormBuilder,\n ) {\n this.form = this.formBuilder.group({\n [ctrlAppStoreVersion]: [null, []],\n [ctrlChannel]: [null, []],\n [ctrlNextVersionNumber]: [null, []],\n [ctrlVersionNumber]: [null, []],\n });\n }\n\n update(appStoreVersion: string, channel: string, nextVersion: string, version: string) {\n this.ctrlVersionNumber.setValue({\n value: version,\n });\n this.ctrlNextVersionNumber.setValue({\n value: nextVersion,\n });\n this.ctrlConfiguredChannel.setValue({\n value: channel,\n });\n this.ctrlAppStoreVersion.setValue({\n value: appStoreVersion,\n });\n }\n}\n","import { Component, Input, OnDestroy, OnInit } from '@angular/core';\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\nimport { SpxProgressBarComponent } from '@softpak/components/spx-progress-bar';\n\n@Component({\n selector: 'spx-update-progress',\n template: `<spx-progress-bar [spxPercentage]=\"delayedPercentage\" [spxTitle]=\"title | capitalize\">\n </spx-progress-bar>`,\n standalone: true,\n imports: [\n SpxProgressBarComponent,\n SpxCapitalizePipe,\n ],\n})\nexport class SpxUpdateProgressComponent implements OnInit, OnDestroy {\n @Input() title!: string;\n @Input() percentage!: number;\n delayedPercentage!: number;\n syncTruckInterval?: any;\n \n ngOnInit(): void {\n this.startLoaderSync();\n }\n\n ngOnDestroy(): void {\n this.stopLoaderSync();\n }\n\n private startLoaderSync() {\n if (this.syncTruckInterval === null) {\n this.syncTruckInterval = setInterval(() => {\n this.delayedPercentage = this.percentage;\n }, 200);\n }\n }\n\n private stopLoaderSync() {\n if (this.syncTruckInterval !== null) {\n clearInterval(this.syncTruckInterval);\n this.syncT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QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,0BAA0B,EAR3B,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,OAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;sBACU,EAGlB,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,uBAAuB,+FACvB,iBAAiB,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAGR,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAVtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,QAAQ,EAAE,CAAA;AACU,qBAAA,CAAA;AACpB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE;wBACP,uBAAuB;wBACvB,iBAAiB;AAClB,qBAAA;AACF,iBAAA,CAAA;8BAEU,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACG,UAAU,EAAA,CAAA;sBAAlB,KAAK;;;AChBR;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"softpak-components-spx-update.mjs","sources":["../../../../projects/softpak/components/spx-update/src/spx-update-info.component.ts","../../../../projects/softpak/components/spx-update/src/spx-update-progress.component.ts","../../../../projects/softpak/components/spx-update/softpak-components-spx-update.ts"],"sourcesContent":["\r\nimport { Component, Input } from '@angular/core';\r\nimport { FormBuilder, FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\r\nimport { SpxInputComponent } from '@softpak/components/spx-inputs';\r\n\r\nconst ctrlAppStoreVersion = 'appStoreVersion';\r\nconst ctrlChannel = 'channel';\r\nconst ctrlNextVersionNumber = 'nextVersionNumber';\r\nconst ctrlVersionNumber = 'versionNumber';\r\n\r\n@Component({\r\n selector: 'spx-update-info',\r\n template: `<form [formGroup]=\"form\" class=\"mt-3\">\r\n <div class=\"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3\">\r\n <spx-input [formControl]=\"ctrlVersionNumber\" [spxLabel]=\"txtVersion | capitalize\"\r\n [spxReadonly]=\"true\"></spx-input>\r\n <spx-input [formControl]=\"ctrlNextVersionNumber\" [spxLabel]=\"txtNextVersion | capitalize\"\r\n [spxReadonly]=\"true\"></spx-input>\r\n <spx-input [formControl]=\"ctrlConfiguredChannel\" [spxLabel]=\"txtChannel | capitalize\"\r\n [spxReadonly]=\"true\"></spx-input>\r\n <spx-input [formControl]=\"ctrlAppStoreVersion\" [spxLabel]=\"txtAppStoreVersion | capitalize\"\r\n [spxReadonly]=\"true\"></spx-input>\r\n </div>\r\n </form>`,\r\n standalone: true,\r\n imports: [\r\n FormsModule,\r\n ReactiveFormsModule,\r\n SpxCapitalizePipe,\r\n SpxInputComponent\r\n]\r\n})\r\nexport class SpxUpdateInfoComponent {\r\n form!: FormGroup;\r\n @Input() txtAppStoreVersion!: string;\r\n @Input() txtChannel!: string;\r\n @Input() txtNextVersion!: string;\r\n @Input() txtVersion!: string;\r\n \r\n get ctrlVersionNumber(): FormControl { return this.form.get(ctrlVersionNumber) as FormControl; }\r\n get ctrlNextVersionNumber(): FormControl { return this.form.get(ctrlNextVersionNumber) as FormControl; }\r\n get ctrlConfiguredChannel(): FormControl { return this.form.get(ctrlChannel) as FormControl; }\r\n get ctrlAppStoreVersion(): FormControl { return this.form.get(ctrlAppStoreVersion) as FormControl; }\r\n\r\n constructor(\r\n private readonly formBuilder: FormBuilder,\r\n ) {\r\n this.form = this.formBuilder.group({\r\n [ctrlAppStoreVersion]: [null, []],\r\n [ctrlChannel]: [null, []],\r\n [ctrlNextVersionNumber]: [null, []],\r\n [ctrlVersionNumber]: [null, []],\r\n });\r\n }\r\n\r\n update(appStoreVersion: string, channel: string, nextVersion: string, version: string) {\r\n this.ctrlVersionNumber.setValue({\r\n value: version,\r\n });\r\n this.ctrlNextVersionNumber.setValue({\r\n value: nextVersion,\r\n });\r\n this.ctrlConfiguredChannel.setValue({\r\n value: channel,\r\n });\r\n this.ctrlAppStoreVersion.setValue({\r\n value: appStoreVersion,\r\n });\r\n }\r\n}\r\n","import { Component, Input, OnDestroy, OnInit } from '@angular/core';\r\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\r\nimport { SpxProgressBarComponent } from '@softpak/components/spx-progress-bar';\r\n\r\n@Component({\r\n selector: 'spx-update-progress',\r\n template: `<spx-progress-bar [spxPercentage]=\"delayedPercentage\" [spxTitle]=\"title | capitalize\">\r\n </spx-progress-bar>`,\r\n standalone: true,\r\n imports: [\r\n SpxProgressBarComponent,\r\n SpxCapitalizePipe,\r\n ],\r\n})\r\nexport class SpxUpdateProgressComponent implements OnInit, OnDestroy {\r\n @Input() title!: string;\r\n @Input() percentage!: number;\r\n delayedPercentage!: number;\r\n syncTruckInterval?: any;\r\n \r\n ngOnInit(): void {\r\n this.startLoaderSync();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.stopLoaderSync();\r\n }\r\n\r\n private startLoaderSync() {\r\n if (this.syncTruckInterval === null) {\r\n this.syncTruckInterval = setInterval(() => {\r\n this.delayedPercentage = this.percentage;\r\n }, 200);\r\n }\r\n }\r\n\r\n private stopLoaderSync() {\r\n if (this.syncTruckInterval !== null) {\r\n clearInterval(this.syncTruckInterval);\r\n this.syncTruckInterval = undefined;\r\n }\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAMA,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;AAC9C,MAAM,WAAW,GAAG,SAAS,CAAC;AAC9B,MAAM,qBAAqB,GAAG,mBAAmB,CAAC;AAClD,MAAM,iBAAiB,GAAG,eAAe,CAAC;MAwB7B,sB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YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,uBAAuB,+FACvB,iBAAiB,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAGR,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAVtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,QAAQ,EAAE,CAAA;AACU,qBAAA,CAAA;AACpB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE;wBACP,uBAAuB;wBACvB,iBAAiB;AAClB,qBAAA;AACF,iBAAA,CAAA;8BAEU,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACG,UAAU,EAAA,CAAA;sBAAlB,KAAK;;;AChBR;;AAEG;;;;"}
|
|
@@ -177,13 +177,13 @@ class SpxValidateControlComponent {
|
|
|
177
177
|
return this.control.errors && this.control.errors['past'];
|
|
178
178
|
}
|
|
179
179
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpxValidateControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
180
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: SpxValidateControlComponent, isStandalone: true, selector: "spx-validate-control", inputs: { control: "control", label: "label", submitTried: "submitTried" }, ngImport: i0, template: "@if (control && control.errors && (control.touched || submitTried)) {\n @if (maxLength) {\n <div>'{{ label }}' is too long, the maximum length is {{ maxLengthRequiredLength }}.</div>\n }\n @if (minLength) {\n <div>'{{ label }}' is too short, the minimum length is {{ minLengthRequiredLength }}.</div>\n }\n @if (max) {\n <div>The value of '{{ label }}' is too high, the maximum is {{ maxRequiredMax }}.</div>\n }\n @if (min) {\n <div>The value of '{{ label }}' is too low, the minimum is {{ minRequiredMin }}.</div>\n }\n @if (pattern) {\n <div>The pattern of '{{ label }}' not valid.</div>\n }\n @if (required) {\n <div>'{{ label }}' is required.</div>\n }\n @if (year) {\n <div>Please choose a year between 1991 and the current year.</div>\n }\n @if (yearFuture) {\n <div>Please choose a year between the current year and 2050.</div>\n }\n @if (month) {\n <div>Please choose a valid month (a value between 01 and 12).</div>\n }\n @if (future) {\n <div>The selected date may not be in the future.</div>\n }\n @if (past) {\n <div>The selected date may not be in the past.</div>\n }\n}", dependencies: [{ kind: "ngmodule", type: FormsModule }] }); }
|
|
180
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: SpxValidateControlComponent, isStandalone: true, selector: "spx-validate-control", inputs: { control: "control", label: "label", submitTried: "submitTried" }, ngImport: i0, template: "@if (control && control.errors && (control.touched || submitTried)) {\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}", dependencies: [{ kind: "ngmodule", type: FormsModule }] }); }
|
|
181
181
|
}
|
|
182
182
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpxValidateControlComponent, decorators: [{
|
|
183
183
|
type: Component,
|
|
184
184
|
args: [{ selector: 'spx-validate-control', imports: [
|
|
185
185
|
FormsModule
|
|
186
|
-
], standalone: true, template: "@if (control && control.errors && (control.touched || submitTried)) {\n @if (maxLength) {\n <div>'{{ label }}' is too long, the maximum length is {{ maxLengthRequiredLength }}.</div>\n }\n @if (minLength) {\n <div>'{{ label }}' is too short, the minimum length is {{ minLengthRequiredLength }}.</div>\n }\n @if (max) {\n <div>The value of '{{ label }}' is too high, the maximum is {{ maxRequiredMax }}.</div>\n }\n @if (min) {\n <div>The value of '{{ label }}' is too low, the minimum is {{ minRequiredMin }}.</div>\n }\n @if (pattern) {\n <div>The pattern of '{{ label }}' not valid.</div>\n }\n @if (required) {\n <div>'{{ label }}' is required.</div>\n }\n @if (year) {\n <div>Please choose a year between 1991 and the current year.</div>\n }\n @if (yearFuture) {\n <div>Please choose a year between the current year and 2050.</div>\n }\n @if (month) {\n <div>Please choose a valid month (a value between 01 and 12).</div>\n }\n @if (future) {\n <div>The selected date may not be in the future.</div>\n }\n @if (past) {\n <div>The selected date may not be in the past.</div>\n }\n}" }]
|
|
186
|
+
], standalone: true, template: "@if (control && control.errors && (control.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}" }]
|
|
187
187
|
}], propDecorators: { control: [{
|
|
188
188
|
type: Input
|
|
189
189
|
}], label: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softpak-components-spx-validation.mjs","sources":["../../../../projects/softpak/components/spx-validation/required.validator.ts","../../../../projects/softpak/components/spx-validation/max.validator.ts","../../../../projects/softpak/components/spx-validation/maxlength.validator.ts","../../../../projects/softpak/components/spx-validation/min.validator.ts","../../../../projects/softpak/components/spx-validation/minlength.validator.ts","../../../../projects/softpak/components/spx-validation/pattern.validator.ts","../../../../projects/softpak/components/spx-validation/year-and-month.validator.ts","../../../../projects/softpak/components/spx-validation/spx-validate-control.component.ts","../../../../projects/softpak/components/spx-validation/spx-validate-control.component.html","../../../../projects/softpak/components/spx-validation/softpak-components-spx-validation.ts"],"sourcesContent":["import { AbstractControl, ValidationErrors } from '@angular/forms';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorRequired = () => (control: AbstractControl): ValidationErrors | null => {\n if (\n control &&\n valuePairToValue(control.value) === undefined ||\n valuePairToValue(control.value) === null ||\n valuePairToValue(control.value) === '' ||\n valuePairToValue(control.value) === 0\n ) {\n return { required: true };\n }\n return null;\n};\n","import { AbstractControl } from '@angular/forms';\nimport { spxValidatorRequired } from './required.validator';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorMax = (max: number) => (control: AbstractControl): { max: { max: number; actual: number } } | null => {\n if (!spxValidatorRequired()(control)) {\n const value = parseInt(valuePairToValue(control.value).toString(), 10);\n if (!isNaN(value) && value > max) {\n return {\n max: {\n max,\n actual: value\n }\n };\n }\n }\n return null;\n};\n","import { AbstractControl } from '@angular/forms';\nimport { spxValidatorRequired } from './required.validator';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorMaxLength = (maximumLength: number, sanitizer?: (input: string) => string) => (control: AbstractControl): { maxlength: { requiredLength: number; actualLength: number } } | null => {\n if (!spxValidatorRequired()(control)) {\n let value = valuePairToValue(control.value);\n if (sanitizer) {\n value = sanitizer(value.toString());\n }\n if (value.toString().length > maximumLength) {\n return {\n maxlength: {\n requiredLength: maximumLength,\n actualLength: value.toString().length\n }\n };\n }\n }\n return null;\n};\n","import { AbstractControl } from '@angular/forms';\nimport { spxValidatorRequired } from './required.validator';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorMin = (min: number) => (control: AbstractControl): { min: { min: number; actual: number } } | null => {\n if (!spxValidatorRequired()(control)) {\n const value = parseInt(valuePairToValue(control.value).toString(), 10);\n\n if (!isNaN(value) && value < min) {\n return {\n min: {\n min,\n actual: value\n }\n };\n }\n }\n return null;\n};\n","import { AbstractControl } from '@angular/forms';\nimport { spxValidatorRequired } from './required.validator';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorMinLength = (minimumLength: number, sanitizer?: (input: string) => string) => (control: AbstractControl): { minlength: { requiredLength: number; actualLength: number } } | null => {\n if (!spxValidatorRequired()(control)) {\n let value = valuePairToValue(control.value);\n if (sanitizer) {\n value = sanitizer(value.toString());\n }\n if (value.toString().length < minimumLength) {\n return {\n minlength: {\n requiredLength: minimumLength,\n actualLength: value.toString().length\n }\n };\n }\n }\n return null;\n};\n","import { AbstractControl, ValidationErrors } from '@angular/forms';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\nimport { spxValidatorRequired } from './required.validator';\n\nexport const spxValidatorPattern = (matcher: RegExp) => (control: AbstractControl): ValidationErrors | null => {\n if (!spxValidatorRequired()(control)) {\n const matches = valuePairToValue(control.value).toString().match(matcher);\n if (matches === null || matches.length === 0) {\n return { pattern: true };\n }\n }\n return null;\n};\n","import { AbstractControl, ValidationErrors } from '@angular/forms';\n\nimport { DateTime } from 'luxon';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\nimport { spxValidatorRequired } from './required.validator';\n\nexport const spxValidatorYearAndMonth = (future?: boolean) => (control: AbstractControl): ValidationErrors | null => {\n if (!spxValidatorRequired()(control)) {\n const val = valuePairToValue(control.value);\n if (val.toUpperCase() !== 'ACEP') {\n const date = DateTime.fromISO(val);\n const year = date.year;\n const month = date.month;\n if (val.length < 6) {\n return {\n minlength: {\n requiredLength: 6,\n actualLength: val.length\n }\n };\n }\n if (month < 1 || month > 12) {\n return { month: true };\n }\n if (future) {\n if (year > 2050 || year < DateTime.now().year) {\n return { yearFuture: true };\n }\n if (DateTime.now().set({ year: year, month: DateTime.now().month - 1 }).startOf('month') < DateTime.now()) {\n return { past: true };\n }\n } else {\n if (year < 1971 || year > DateTime.now().year) {\n return { year: true };\n }\n if (DateTime.now().set({ year: year, month: DateTime.now().month - 1 }).startOf('month') > DateTime.now()) {\n return { future: true };\n }\n }\n }\n }\n return null;\n};\n","\nimport { Component, Input } from '@angular/core';\nimport { AbstractControl, FormsModule } from '@angular/forms';\n\n@Component({\n selector: 'spx-validate-control',\n templateUrl: './spx-validate-control.component.html',\n imports: [\n FormsModule\n],\n standalone: true,\n})\nexport class SpxValidateControlComponent {\n @Input() control!: AbstractControl;\n @Input() label: string | unknown;\n @Input() submitTried!: boolean;\n\n get maxLength() {\n return this.control.errors && this.control.errors['maxlength'];\n }\n\n get maxLengthRequiredLength() {\n return this.maxLength && this.control.errors && this.control.errors['maxlength']['requiredLength'];\n }\n\n get minLength() {\n return this.control.errors && this.control.errors['minlength'];\n }\n\n get minLengthRequiredLength() {\n return this.minLength && this.control.errors && this.control.errors['minlength']['requiredLength'];\n }\n\n get max() {\n return this.control.errors && this.control.errors['max'];\n }\n\n get maxRequiredMax() {\n return this.max && this.control.errors && this.control.errors['max']['max'];\n }\n\n get min() {\n return this.control.errors && this.control.errors['min'];\n }\n\n get minRequiredMin() {\n return this.min && this.control.errors && this.control.errors['min']['min'];\n }\n\n get pattern() {\n return this.control.errors && this.control.errors['pattern'];\n }\n\n get required() {\n return this.control.errors && this.control.errors['required'];\n }\n\n get year() {\n return this.control.errors && this.control.errors['year'];\n }\n\n get yearFuture() {\n return this.control.errors && this.control.errors['yearFuture'];\n }\n\n get month() {\n return this.control.errors && this.control.errors['month'];\n }\n\n get future() {\n return this.control.errors && this.control.errors['future'];\n }\n\n get past() {\n return this.control.errors && this.control.errors['past'];\n }\n}\n","@if (control && control.errors && (control.touched || submitTried)) {\n @if (maxLength) {\n <div>'{{ label }}' is too long, the maximum length is {{ maxLengthRequiredLength }}.</div>\n }\n @if (minLength) {\n <div>'{{ label }}' is too short, the minimum length is {{ minLengthRequiredLength }}.</div>\n }\n @if (max) {\n <div>The value of '{{ label }}' is too high, the maximum is {{ maxRequiredMax }}.</div>\n }\n @if (min) {\n <div>The value of '{{ label }}' is too low, the minimum is {{ minRequiredMin }}.</div>\n }\n @if (pattern) {\n <div>The pattern of '{{ label }}' not valid.</div>\n }\n @if (required) {\n <div>'{{ label }}' is required.</div>\n }\n @if (year) {\n <div>Please choose a year between 1991 and the current year.</div>\n }\n @if (yearFuture) {\n <div>Please choose a year between the current year and 2050.</div>\n }\n @if (month) {\n <div>Please choose a valid month (a value between 01 and 12).</div>\n }\n @if (future) {\n <div>The selected date may not be in the future.</div>\n }\n @if (past) {\n <div>The selected date may not be in the past.</div>\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAGa,MAAA,oBAAoB,GAAG,MAAM,CAAC,OAAwB,KAA6B;AAC5F,IAAA,IACI,OAAO;AACP,QAAA,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,SAAS;AAC7C,QAAA,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI;AACxC,QAAA,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,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EACa,IAAI,EAAA,QAAA,EAAA,qnCAAA,EAAA,CAAA;8BAGP,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;;;AEfR;;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 { Component, Input } from '@angular/core';\r\nimport { AbstractControl, FormsModule } 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})\r\nexport class SpxValidateControlComponent {\r\n @Input() control!: AbstractControl;\r\n @Input() label: string | unknown;\r\n @Input() submitTried!: boolean;\r\n\r\n get maxLength() {\r\n return this.control.errors && this.control.errors['maxlength'];\r\n }\r\n\r\n get maxLengthRequiredLength() {\r\n return this.maxLength && this.control.errors && this.control.errors['maxlength']['requiredLength'];\r\n }\r\n\r\n get minLength() {\r\n return this.control.errors && this.control.errors['minlength'];\r\n }\r\n\r\n get minLengthRequiredLength() {\r\n return this.minLength && this.control.errors && this.control.errors['minlength']['requiredLength'];\r\n }\r\n\r\n get max() {\r\n return this.control.errors && this.control.errors['max'];\r\n }\r\n\r\n get maxRequiredMax() {\r\n return this.max && this.control.errors && this.control.errors['max']['max'];\r\n }\r\n\r\n get min() {\r\n return this.control.errors && this.control.errors['min'];\r\n }\r\n\r\n get minRequiredMin() {\r\n return this.min && this.control.errors && this.control.errors['min']['min'];\r\n }\r\n\r\n get pattern() {\r\n return this.control.errors && this.control.errors['pattern'];\r\n }\r\n\r\n get required() {\r\n return this.control.errors && this.control.errors['required'];\r\n }\r\n\r\n get year() {\r\n return this.control.errors && this.control.errors['year'];\r\n }\r\n\r\n get yearFuture() {\r\n return this.control.errors && this.control.errors['yearFuture'];\r\n }\r\n\r\n get month() {\r\n return this.control.errors && this.control.errors['month'];\r\n }\r\n\r\n get future() {\r\n return this.control.errors && this.control.errors['future'];\r\n }\r\n\r\n get past() {\r\n return this.control.errors && this.control.errors['past'];\r\n }\r\n}\r\n","@if (control && control.errors && (control.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}","/**\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,CAAC;KAC7B;AACD,IAAA,OAAO,IAAI,CAAC;AAChB;;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,CAAC;QACvE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,GAAG,EAAE;YAC9B,OAAO;AACH,gBAAA,GAAG,EAAE;oBACD,GAAG;AACH,oBAAA,MAAM,EAAE,KAAK;AAChB,iBAAA;aACJ,CAAC;SACL;KACJ;AACD,IAAA,OAAO,IAAI,CAAC;AAChB;;ACbO,MAAM,qBAAqB,GAAG,CAAC,aAAqB,EAAE,SAA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AA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,KAAA,EAAA,OAAA,EAAA,WAAA,EAAA,aAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECZxC,yrCAkCC,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,ED1BG,WAAW,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAIF,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBARvC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,sBAAsB,EAEvB,OAAA,EAAA;wBACP,WAAW;AACd,qBAAA,EAAA,UAAA,EACa,IAAI,EAAA,QAAA,EAAA,yrCAAA,EAAA,CAAA;8BAGP,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;;;AEfR;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softpak/components",
|
|
3
|
-
"version": "18.6.
|
|
3
|
+
"version": "18.6.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "18.x.x || 19.x.x",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"esm": "./esm2022/spx-alert/softpak-components-spx-alert.mjs",
|
|
35
35
|
"default": "./fesm2022/softpak-components-spx-alert.mjs"
|
|
36
36
|
},
|
|
37
|
-
"./spx-app-
|
|
38
|
-
"types": "./spx-app-
|
|
39
|
-
"esm2022": "./esm2022/spx-app-
|
|
40
|
-
"esm": "./esm2022/spx-app-
|
|
41
|
-
"default": "./fesm2022/softpak-components-spx-app-
|
|
37
|
+
"./spx-app-update": {
|
|
38
|
+
"types": "./spx-app-update/index.d.ts",
|
|
39
|
+
"esm2022": "./esm2022/spx-app-update/softpak-components-spx-app-update.mjs",
|
|
40
|
+
"esm": "./esm2022/spx-app-update/softpak-components-spx-app-update.mjs",
|
|
41
|
+
"default": "./fesm2022/softpak-components-spx-app-update.mjs"
|
|
42
42
|
},
|
|
43
43
|
"./spx-app-expiry": {
|
|
44
44
|
"types": "./spx-app-expiry/index.d.ts",
|
|
@@ -46,17 +46,11 @@
|
|
|
46
46
|
"esm": "./esm2022/spx-app-expiry/softpak-components-spx-app-expiry.mjs",
|
|
47
47
|
"default": "./fesm2022/softpak-components-spx-app-expiry.mjs"
|
|
48
48
|
},
|
|
49
|
-
"./spx-
|
|
50
|
-
"types": "./spx-
|
|
51
|
-
"esm2022": "./esm2022/spx-
|
|
52
|
-
"esm": "./esm2022/spx-
|
|
53
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
54
|
-
},
|
|
55
|
-
"./spx-app-update": {
|
|
56
|
-
"types": "./spx-app-update/index.d.ts",
|
|
57
|
-
"esm2022": "./esm2022/spx-app-update/softpak-components-spx-app-update.mjs",
|
|
58
|
-
"esm": "./esm2022/spx-app-update/softpak-components-spx-app-update.mjs",
|
|
59
|
-
"default": "./fesm2022/softpak-components-spx-app-update.mjs"
|
|
49
|
+
"./spx-app-configuration": {
|
|
50
|
+
"types": "./spx-app-configuration/index.d.ts",
|
|
51
|
+
"esm2022": "./esm2022/spx-app-configuration/softpak-components-spx-app-configuration.mjs",
|
|
52
|
+
"esm": "./esm2022/spx-app-configuration/softpak-components-spx-app-configuration.mjs",
|
|
53
|
+
"default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
|
|
60
54
|
},
|
|
61
55
|
"./spx-capitalize": {
|
|
62
56
|
"types": "./spx-capitalize/index.d.ts",
|
|
@@ -64,18 +58,24 @@
|
|
|
64
58
|
"esm": "./esm2022/spx-capitalize/softpak-components-spx-capitalize.mjs",
|
|
65
59
|
"default": "./fesm2022/softpak-components-spx-capitalize.mjs"
|
|
66
60
|
},
|
|
67
|
-
"./spx-card": {
|
|
68
|
-
"types": "./spx-card/index.d.ts",
|
|
69
|
-
"esm2022": "./esm2022/spx-card/softpak-components-spx-card.mjs",
|
|
70
|
-
"esm": "./esm2022/spx-card/softpak-components-spx-card.mjs",
|
|
71
|
-
"default": "./fesm2022/softpak-components-spx-card.mjs"
|
|
72
|
-
},
|
|
73
61
|
"./spx-change-details": {
|
|
74
62
|
"types": "./spx-change-details/index.d.ts",
|
|
75
63
|
"esm2022": "./esm2022/spx-change-details/softpak-components-spx-change-details.mjs",
|
|
76
64
|
"esm": "./esm2022/spx-change-details/softpak-components-spx-change-details.mjs",
|
|
77
65
|
"default": "./fesm2022/softpak-components-spx-change-details.mjs"
|
|
78
66
|
},
|
|
67
|
+
"./spx-button": {
|
|
68
|
+
"types": "./spx-button/index.d.ts",
|
|
69
|
+
"esm2022": "./esm2022/spx-button/softpak-components-spx-button.mjs",
|
|
70
|
+
"esm": "./esm2022/spx-button/softpak-components-spx-button.mjs",
|
|
71
|
+
"default": "./fesm2022/softpak-components-spx-button.mjs"
|
|
72
|
+
},
|
|
73
|
+
"./spx-card": {
|
|
74
|
+
"types": "./spx-card/index.d.ts",
|
|
75
|
+
"esm2022": "./esm2022/spx-card/softpak-components-spx-card.mjs",
|
|
76
|
+
"esm": "./esm2022/spx-card/softpak-components-spx-card.mjs",
|
|
77
|
+
"default": "./fesm2022/softpak-components-spx-card.mjs"
|
|
78
|
+
},
|
|
79
79
|
"./spx-channel-selection": {
|
|
80
80
|
"types": "./spx-channel-selection/index.d.ts",
|
|
81
81
|
"esm2022": "./esm2022/spx-channel-selection/softpak-components-spx-channel-selection.mjs",
|
|
@@ -88,12 +88,6 @@
|
|
|
88
88
|
"esm": "./esm2022/spx-check-digit/softpak-components-spx-check-digit.mjs",
|
|
89
89
|
"default": "./fesm2022/softpak-components-spx-check-digit.mjs"
|
|
90
90
|
},
|
|
91
|
-
"./spx-form-section": {
|
|
92
|
-
"types": "./spx-form-section/index.d.ts",
|
|
93
|
-
"esm2022": "./esm2022/spx-form-section/softpak-components-spx-form-section.mjs",
|
|
94
|
-
"esm": "./esm2022/spx-form-section/softpak-components-spx-form-section.mjs",
|
|
95
|
-
"default": "./fesm2022/softpak-components-spx-form-section.mjs"
|
|
96
|
-
},
|
|
97
91
|
"./spx-form-view": {
|
|
98
92
|
"types": "./spx-form-view/index.d.ts",
|
|
99
93
|
"esm2022": "./esm2022/spx-form-view/softpak-components-spx-form-view.mjs",
|
|
@@ -106,18 +100,18 @@
|
|
|
106
100
|
"esm": "./esm2022/spx-helpers/softpak-components-spx-helpers.mjs",
|
|
107
101
|
"default": "./fesm2022/softpak-components-spx-helpers.mjs"
|
|
108
102
|
},
|
|
103
|
+
"./spx-form-section": {
|
|
104
|
+
"types": "./spx-form-section/index.d.ts",
|
|
105
|
+
"esm2022": "./esm2022/spx-form-section/softpak-components-spx-form-section.mjs",
|
|
106
|
+
"esm": "./esm2022/spx-form-section/softpak-components-spx-form-section.mjs",
|
|
107
|
+
"default": "./fesm2022/softpak-components-spx-form-section.mjs"
|
|
108
|
+
},
|
|
109
109
|
"./spx-inputs": {
|
|
110
110
|
"types": "./spx-inputs/index.d.ts",
|
|
111
111
|
"esm2022": "./esm2022/spx-inputs/softpak-components-spx-inputs.mjs",
|
|
112
112
|
"esm": "./esm2022/spx-inputs/softpak-components-spx-inputs.mjs",
|
|
113
113
|
"default": "./fesm2022/softpak-components-spx-inputs.mjs"
|
|
114
114
|
},
|
|
115
|
-
"./spx-navigation": {
|
|
116
|
-
"types": "./spx-navigation/index.d.ts",
|
|
117
|
-
"esm2022": "./esm2022/spx-navigation/softpak-components-spx-navigation.mjs",
|
|
118
|
-
"esm": "./esm2022/spx-navigation/softpak-components-spx-navigation.mjs",
|
|
119
|
-
"default": "./fesm2022/softpak-components-spx-navigation.mjs"
|
|
120
|
-
},
|
|
121
115
|
"./spx-number-check": {
|
|
122
116
|
"types": "./spx-number-check/index.d.ts",
|
|
123
117
|
"esm2022": "./esm2022/spx-number-check/softpak-components-spx-number-check.mjs",
|
|
@@ -130,11 +124,11 @@
|
|
|
130
124
|
"esm": "./esm2022/spx-pagination/softpak-components-spx-pagination.mjs",
|
|
131
125
|
"default": "./fesm2022/softpak-components-spx-pagination.mjs"
|
|
132
126
|
},
|
|
133
|
-
"./spx-
|
|
134
|
-
"types": "./spx-
|
|
135
|
-
"esm2022": "./esm2022/spx-
|
|
136
|
-
"esm": "./esm2022/spx-
|
|
137
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
127
|
+
"./spx-navigation": {
|
|
128
|
+
"types": "./spx-navigation/index.d.ts",
|
|
129
|
+
"esm2022": "./esm2022/spx-navigation/softpak-components-spx-navigation.mjs",
|
|
130
|
+
"esm": "./esm2022/spx-navigation/softpak-components-spx-navigation.mjs",
|
|
131
|
+
"default": "./fesm2022/softpak-components-spx-navigation.mjs"
|
|
138
132
|
},
|
|
139
133
|
"./spx-progress-bar": {
|
|
140
134
|
"types": "./spx-progress-bar/index.d.ts",
|
|
@@ -142,23 +136,23 @@
|
|
|
142
136
|
"esm": "./esm2022/spx-progress-bar/softpak-components-spx-progress-bar.mjs",
|
|
143
137
|
"default": "./fesm2022/softpak-components-spx-progress-bar.mjs"
|
|
144
138
|
},
|
|
139
|
+
"./spx-patch": {
|
|
140
|
+
"types": "./spx-patch/index.d.ts",
|
|
141
|
+
"esm2022": "./esm2022/spx-patch/softpak-components-spx-patch.mjs",
|
|
142
|
+
"esm": "./esm2022/spx-patch/softpak-components-spx-patch.mjs",
|
|
143
|
+
"default": "./fesm2022/softpak-components-spx-patch.mjs"
|
|
144
|
+
},
|
|
145
145
|
"./spx-spinner": {
|
|
146
146
|
"types": "./spx-spinner/index.d.ts",
|
|
147
147
|
"esm2022": "./esm2022/spx-spinner/softpak-components-spx-spinner.mjs",
|
|
148
148
|
"esm": "./esm2022/spx-spinner/softpak-components-spx-spinner.mjs",
|
|
149
149
|
"default": "./fesm2022/softpak-components-spx-spinner.mjs"
|
|
150
150
|
},
|
|
151
|
-
"./spx-
|
|
152
|
-
"types": "./spx-
|
|
153
|
-
"esm2022": "./esm2022/spx-
|
|
154
|
-
"esm": "./esm2022/spx-
|
|
155
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
156
|
-
},
|
|
157
|
-
"./spx-storage": {
|
|
158
|
-
"types": "./spx-storage/index.d.ts",
|
|
159
|
-
"esm2022": "./esm2022/spx-storage/softpak-components-spx-storage.mjs",
|
|
160
|
-
"esm": "./esm2022/spx-storage/softpak-components-spx-storage.mjs",
|
|
161
|
-
"default": "./fesm2022/softpak-components-spx-storage.mjs"
|
|
151
|
+
"./spx-suggestion": {
|
|
152
|
+
"types": "./spx-suggestion/index.d.ts",
|
|
153
|
+
"esm2022": "./esm2022/spx-suggestion/softpak-components-spx-suggestion.mjs",
|
|
154
|
+
"esm": "./esm2022/spx-suggestion/softpak-components-spx-suggestion.mjs",
|
|
155
|
+
"default": "./fesm2022/softpak-components-spx-suggestion.mjs"
|
|
162
156
|
},
|
|
163
157
|
"./spx-toaster": {
|
|
164
158
|
"types": "./spx-toaster/index.d.ts",
|
|
@@ -166,18 +160,24 @@
|
|
|
166
160
|
"esm": "./esm2022/spx-toaster/softpak-components-spx-toaster.mjs",
|
|
167
161
|
"default": "./fesm2022/softpak-components-spx-toaster.mjs"
|
|
168
162
|
},
|
|
169
|
-
"./spx-suggestion": {
|
|
170
|
-
"types": "./spx-suggestion/index.d.ts",
|
|
171
|
-
"esm2022": "./esm2022/spx-suggestion/softpak-components-spx-suggestion.mjs",
|
|
172
|
-
"esm": "./esm2022/spx-suggestion/softpak-components-spx-suggestion.mjs",
|
|
173
|
-
"default": "./fesm2022/softpak-components-spx-suggestion.mjs"
|
|
174
|
-
},
|
|
175
163
|
"./spx-update": {
|
|
176
164
|
"types": "./spx-update/index.d.ts",
|
|
177
165
|
"esm2022": "./esm2022/spx-update/softpak-components-spx-update.mjs",
|
|
178
166
|
"esm": "./esm2022/spx-update/softpak-components-spx-update.mjs",
|
|
179
167
|
"default": "./fesm2022/softpak-components-spx-update.mjs"
|
|
180
168
|
},
|
|
169
|
+
"./spx-storage": {
|
|
170
|
+
"types": "./spx-storage/index.d.ts",
|
|
171
|
+
"esm2022": "./esm2022/spx-storage/softpak-components-spx-storage.mjs",
|
|
172
|
+
"esm": "./esm2022/spx-storage/softpak-components-spx-storage.mjs",
|
|
173
|
+
"default": "./fesm2022/softpak-components-spx-storage.mjs"
|
|
174
|
+
},
|
|
175
|
+
"./spx-stock-info": {
|
|
176
|
+
"types": "./spx-stock-info/index.d.ts",
|
|
177
|
+
"esm2022": "./esm2022/spx-stock-info/softpak-components-spx-stock-info.mjs",
|
|
178
|
+
"esm": "./esm2022/spx-stock-info/softpak-components-spx-stock-info.mjs",
|
|
179
|
+
"default": "./fesm2022/softpak-components-spx-stock-info.mjs"
|
|
180
|
+
},
|
|
181
181
|
"./spx-validation": {
|
|
182
182
|
"types": "./spx-validation/index.d.ts",
|
|
183
183
|
"esm2022": "./esm2022/spx-validation/softpak-components-spx-validation.mjs",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { SpxValuePair } from './spx-value-interface';
|
|
3
|
+
import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class SpxInputBoxComponent {
|
|
5
6
|
private elRef;
|
|
@@ -7,6 +8,7 @@ export declare class SpxInputBoxComponent {
|
|
|
7
8
|
faSearch: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
8
9
|
faQuestion: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
9
10
|
faTimes: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
11
|
+
spxSeverityEnum: typeof SpxSeverityEnum;
|
|
10
12
|
spxCompact?: boolean;
|
|
11
13
|
spxFocused: boolean;
|
|
12
14
|
spxLabel?: string;
|
|
@@ -17,6 +19,7 @@ export declare class SpxInputBoxComponent {
|
|
|
17
19
|
spxShowHelp?: boolean;
|
|
18
20
|
spxShowLabel: boolean;
|
|
19
21
|
spxShowSearch?: boolean;
|
|
22
|
+
spxAlertMessageSeverity?: SpxSeverityEnum;
|
|
20
23
|
spxShowValidationMessages?: boolean | null | undefined;
|
|
21
24
|
spxValue?: SpxValuePair<any>;
|
|
22
25
|
spxClear: EventEmitter<void>;
|
|
@@ -36,5 +39,5 @@ export declare class SpxInputBoxComponent {
|
|
|
36
39
|
private emitFocusIn;
|
|
37
40
|
private emitFocusOut;
|
|
38
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpxInputBoxComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpxInputBoxComponent, "spx-input-box", never, { "spxCompact": { "alias": "spxCompact"; "required": false; }; "spxFocused": { "alias": "spxFocused"; "required": false; }; "spxLabel": { "alias": "spxLabel"; "required": false; }; "spxReadonly": { "alias": "spxReadonly"; "required": false; }; "spxRequired": { "alias": "spxRequired"; "required": false; }; "spxShowClear": { "alias": "spxShowClear"; "required": false; }; "spxShowEdit": { "alias": "spxShowEdit"; "required": false; }; "spxShowHelp": { "alias": "spxShowHelp"; "required": false; }; "spxShowLabel": { "alias": "spxShowLabel"; "required": false; }; "spxShowSearch": { "alias": "spxShowSearch"; "required": false; }; "spxShowValidationMessages": { "alias": "spxShowValidationMessages"; "required": false; }; "spxValue": { "alias": "spxValue"; "required": false; }; }, { "spxClear": "spxClear"; "spxSearch": "spxSearch"; "spxFocus": "spxFocus"; "spxFocusOut": "spxFocusOut"; "spxEdit": "spxEdit"; "spxHelp": "spxHelp"; }, never, ["[controls]", "[validation-messages]"], true, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpxInputBoxComponent, "spx-input-box", never, { "spxCompact": { "alias": "spxCompact"; "required": false; }; "spxFocused": { "alias": "spxFocused"; "required": false; }; "spxLabel": { "alias": "spxLabel"; "required": false; }; "spxReadonly": { "alias": "spxReadonly"; "required": false; }; "spxRequired": { "alias": "spxRequired"; "required": false; }; "spxShowClear": { "alias": "spxShowClear"; "required": false; }; "spxShowEdit": { "alias": "spxShowEdit"; "required": false; }; "spxShowHelp": { "alias": "spxShowHelp"; "required": false; }; "spxShowLabel": { "alias": "spxShowLabel"; "required": false; }; "spxShowSearch": { "alias": "spxShowSearch"; "required": false; }; "spxAlertMessageSeverity": { "alias": "spxAlertMessageSeverity"; "required": false; }; "spxShowValidationMessages": { "alias": "spxShowValidationMessages"; "required": false; }; "spxValue": { "alias": "spxValue"; "required": false; }; }, { "spxClear": "spxClear"; "spxSearch": "spxSearch"; "spxFocus": "spxFocus"; "spxFocusOut": "spxFocusOut"; "spxEdit": "spxEdit"; "spxHelp": "spxHelp"; }, never, ["[controls]", "[validation-messages]", "[validation-messages]"], true, never>;
|
|
40
43
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
2
|
import { SpxValuePair } from '../spx-value-interface';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
declare enum stepType {
|
|
@@ -21,7 +21,11 @@ export declare class SpxInputDateComponent implements OnInit {
|
|
|
21
21
|
selectedYear: import("@angular/core").WritableSignal<number | null>;
|
|
22
22
|
selectedMonth: import("@angular/core").WritableSignal<number | null>;
|
|
23
23
|
selectedDay: import("@angular/core").WritableSignal<number | null>;
|
|
24
|
+
yearInputComponent: import("@angular/core").Signal<ElementRef<any>>;
|
|
25
|
+
monthInputComponent: import("@angular/core").Signal<ElementRef<any>>;
|
|
26
|
+
dayInputComponent: import("@angular/core").Signal<ElementRef<any>>;
|
|
24
27
|
spxSuggestionC: import("@angular/core").Signal<SpxValuePair<number>[]>;
|
|
28
|
+
handleFocus(selectedStep: string): void;
|
|
25
29
|
onModelChange(newValue: string, selectedStep: string): void;
|
|
26
30
|
spxSuggestions: import("@angular/core").InputSignal<{
|
|
27
31
|
years: SpxValuePair<number>[];
|