@softpak/components 18.6.0 → 18.6.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -24
- package/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 +149 -149
- package/esm2022/spx-inputs/spx-input-date.component.mjs +91 -91
- 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 +221 -221
- 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 +738 -738
- 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 +34 -34
|
@@ -58,63 +58,63 @@ class SpxAlertComponent {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpxAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
61
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: SpxAlertComponent, isStandalone: true, selector: "spx-alert", inputs: { spxAutoclose: "spxAutoclose", spxCloseable: "spxCloseable", spxHideTitle: "spxHideTitle", spxTitle: "spxTitle", spxMarginTop: "spxMarginTop", spxSeverity: "spxSeverity", tick: "tick" }, outputs: { spxClose: "spxClose" }, ngImport: i0, template: `
|
|
62
|
-
<div class="flex items-center gap-3 border-t-4 rounded px-4 py-3 shadow-md"
|
|
63
|
-
[class.cursor-pointer]="this.spxCloseable"
|
|
64
|
-
[class.bg-red-100]="this.isSeverityError"
|
|
65
|
-
[class.border-red-500]="this.isSeverityError"
|
|
66
|
-
[class.text-red-900]="this.isSeverityError"
|
|
67
|
-
[class.bg-cyan-100]="this.isSeverityInfo"
|
|
68
|
-
[class.border-cyan-500]="this.isSeverityInfo"
|
|
69
|
-
[class.text-cyan-900]="this.isSeverityInfo"
|
|
70
|
-
[class.bg-lime-100]="this.isSeveritySuccess"
|
|
71
|
-
[class.border-lime-500]="this.isSeveritySuccess"
|
|
72
|
-
[class.text-lime-900]="this.isSeveritySuccess"
|
|
73
|
-
[class.bg-amber-100]="this.isSeverityWarning"
|
|
74
|
-
[class.border-amber-500]="this.isSeverityWarning"
|
|
75
|
-
[class.text-amber-900]="this.isSeverityWarning"
|
|
76
|
-
[class.focus:ring-red-600]="this.spxCloseable && this.isSeverityError"
|
|
77
|
-
[class.hover:bg-red-200]="this.spxCloseable && this.isSeverityError"
|
|
78
|
-
[class.over:border-red-600]="this.spxCloseable && this.isSeverityError"
|
|
79
|
-
[class.focus:ring-cyan-600]="this.spxCloseable && this.isSeverityInfo"
|
|
80
|
-
[class.hover:bg-cyan-200]="this.spxCloseable && this.isSeverityInfo"
|
|
81
|
-
[class.over:border-cyan-600]="this.spxCloseable && this.isSeverityInfo"
|
|
82
|
-
[class.focus:ring-lime-600]="this.spxCloseable && this.isSeveritySuccess"
|
|
83
|
-
[class.hover:bg-lime-200]="this.spxCloseable && this.isSeveritySuccess"
|
|
84
|
-
[class.over:border-lime-600]="this.spxCloseable && this.isSeveritySuccess"
|
|
85
|
-
[class.focus:ring-amber-600]="this.spxCloseable && this.isSeverityWarning"
|
|
86
|
-
[class.hover:bg-amber-200]="this.spxCloseable && this.isSeverityWarning"
|
|
87
|
-
[class.over:border-amber-600]="this.spxCloseable && this.isSeverityWarning"
|
|
88
|
-
(click)="onClose()">
|
|
89
|
-
@if (this.isSeverityInfo) {
|
|
90
|
-
<fa-icon
|
|
91
|
-
[icon]="faCircleInfo" class="block text-xl text-cyan-600"></fa-icon>
|
|
92
|
-
}
|
|
93
|
-
@if (this.isSeverityError) {
|
|
94
|
-
<fa-icon
|
|
95
|
-
[icon]="faTriangleExclamation" class="block text-xl text-red-600"></fa-icon>
|
|
96
|
-
}
|
|
97
|
-
@if (this.isSeveritySuccess) {
|
|
98
|
-
<fa-icon
|
|
99
|
-
[icon]="faCheck" class="block text-xl text-lime-600"></fa-icon>
|
|
100
|
-
}
|
|
101
|
-
@if (this.isSeverityWarning) {
|
|
102
|
-
<fa-icon
|
|
103
|
-
[icon]="faTriangleExclamation" class="block text-xl text-amber-600"></fa-icon>
|
|
104
|
-
}
|
|
105
|
-
<div class="grow">
|
|
106
|
-
@if (this.spxTitle && !this.spxHideTitle) {
|
|
107
|
-
<p class="font-bold">{{this.spxTitle}}</p>
|
|
108
|
-
}
|
|
109
|
-
<p class="text-sm">
|
|
110
|
-
<ng-content></ng-content>
|
|
111
|
-
</p>
|
|
112
|
-
</div>
|
|
113
|
-
@if (this.spxCloseable) {
|
|
114
|
-
<fa-icon
|
|
115
|
-
[icon]="faTimes" class="block text-xl"></fa-icon>
|
|
116
|
-
}
|
|
117
|
-
</div>
|
|
61
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: SpxAlertComponent, isStandalone: true, selector: "spx-alert", inputs: { spxAutoclose: "spxAutoclose", spxCloseable: "spxCloseable", spxHideTitle: "spxHideTitle", spxTitle: "spxTitle", spxMarginTop: "spxMarginTop", spxSeverity: "spxSeverity", tick: "tick" }, outputs: { spxClose: "spxClose" }, ngImport: i0, template: `
|
|
62
|
+
<div class="flex items-center gap-3 border-t-4 rounded px-4 py-3 shadow-md"
|
|
63
|
+
[class.cursor-pointer]="this.spxCloseable"
|
|
64
|
+
[class.bg-red-100]="this.isSeverityError"
|
|
65
|
+
[class.border-red-500]="this.isSeverityError"
|
|
66
|
+
[class.text-red-900]="this.isSeverityError"
|
|
67
|
+
[class.bg-cyan-100]="this.isSeverityInfo"
|
|
68
|
+
[class.border-cyan-500]="this.isSeverityInfo"
|
|
69
|
+
[class.text-cyan-900]="this.isSeverityInfo"
|
|
70
|
+
[class.bg-lime-100]="this.isSeveritySuccess"
|
|
71
|
+
[class.border-lime-500]="this.isSeveritySuccess"
|
|
72
|
+
[class.text-lime-900]="this.isSeveritySuccess"
|
|
73
|
+
[class.bg-amber-100]="this.isSeverityWarning"
|
|
74
|
+
[class.border-amber-500]="this.isSeverityWarning"
|
|
75
|
+
[class.text-amber-900]="this.isSeverityWarning"
|
|
76
|
+
[class.focus:ring-red-600]="this.spxCloseable && this.isSeverityError"
|
|
77
|
+
[class.hover:bg-red-200]="this.spxCloseable && this.isSeverityError"
|
|
78
|
+
[class.over:border-red-600]="this.spxCloseable && this.isSeverityError"
|
|
79
|
+
[class.focus:ring-cyan-600]="this.spxCloseable && this.isSeverityInfo"
|
|
80
|
+
[class.hover:bg-cyan-200]="this.spxCloseable && this.isSeverityInfo"
|
|
81
|
+
[class.over:border-cyan-600]="this.spxCloseable && this.isSeverityInfo"
|
|
82
|
+
[class.focus:ring-lime-600]="this.spxCloseable && this.isSeveritySuccess"
|
|
83
|
+
[class.hover:bg-lime-200]="this.spxCloseable && this.isSeveritySuccess"
|
|
84
|
+
[class.over:border-lime-600]="this.spxCloseable && this.isSeveritySuccess"
|
|
85
|
+
[class.focus:ring-amber-600]="this.spxCloseable && this.isSeverityWarning"
|
|
86
|
+
[class.hover:bg-amber-200]="this.spxCloseable && this.isSeverityWarning"
|
|
87
|
+
[class.over:border-amber-600]="this.spxCloseable && this.isSeverityWarning"
|
|
88
|
+
(click)="onClose()">
|
|
89
|
+
@if (this.isSeverityInfo) {
|
|
90
|
+
<fa-icon
|
|
91
|
+
[icon]="faCircleInfo" class="block text-xl text-cyan-600"></fa-icon>
|
|
92
|
+
}
|
|
93
|
+
@if (this.isSeverityError) {
|
|
94
|
+
<fa-icon
|
|
95
|
+
[icon]="faTriangleExclamation" class="block text-xl text-red-600"></fa-icon>
|
|
96
|
+
}
|
|
97
|
+
@if (this.isSeveritySuccess) {
|
|
98
|
+
<fa-icon
|
|
99
|
+
[icon]="faCheck" class="block text-xl text-lime-600"></fa-icon>
|
|
100
|
+
}
|
|
101
|
+
@if (this.isSeverityWarning) {
|
|
102
|
+
<fa-icon
|
|
103
|
+
[icon]="faTriangleExclamation" class="block text-xl text-amber-600"></fa-icon>
|
|
104
|
+
}
|
|
105
|
+
<div class="grow">
|
|
106
|
+
@if (this.spxTitle && !this.spxHideTitle) {
|
|
107
|
+
<p class="font-bold">{{this.spxTitle}}</p>
|
|
108
|
+
}
|
|
109
|
+
<p class="text-sm">
|
|
110
|
+
<ng-content></ng-content>
|
|
111
|
+
</p>
|
|
112
|
+
</div>
|
|
113
|
+
@if (this.spxCloseable) {
|
|
114
|
+
<fa-icon
|
|
115
|
+
[icon]="faTimes" class="block text-xl"></fa-icon>
|
|
116
|
+
}
|
|
117
|
+
</div>
|
|
118
118
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FontAwesomeModule }, { kind: "component", type: i1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }] }); }
|
|
119
119
|
}
|
|
120
120
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpxAlertComponent, decorators: [{
|
|
@@ -125,63 +125,63 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
125
125
|
imports: [
|
|
126
126
|
FontAwesomeModule
|
|
127
127
|
],
|
|
128
|
-
template: `
|
|
129
|
-
<div class="flex items-center gap-3 border-t-4 rounded px-4 py-3 shadow-md"
|
|
130
|
-
[class.cursor-pointer]="this.spxCloseable"
|
|
131
|
-
[class.bg-red-100]="this.isSeverityError"
|
|
132
|
-
[class.border-red-500]="this.isSeverityError"
|
|
133
|
-
[class.text-red-900]="this.isSeverityError"
|
|
134
|
-
[class.bg-cyan-100]="this.isSeverityInfo"
|
|
135
|
-
[class.border-cyan-500]="this.isSeverityInfo"
|
|
136
|
-
[class.text-cyan-900]="this.isSeverityInfo"
|
|
137
|
-
[class.bg-lime-100]="this.isSeveritySuccess"
|
|
138
|
-
[class.border-lime-500]="this.isSeveritySuccess"
|
|
139
|
-
[class.text-lime-900]="this.isSeveritySuccess"
|
|
140
|
-
[class.bg-amber-100]="this.isSeverityWarning"
|
|
141
|
-
[class.border-amber-500]="this.isSeverityWarning"
|
|
142
|
-
[class.text-amber-900]="this.isSeverityWarning"
|
|
143
|
-
[class.focus:ring-red-600]="this.spxCloseable && this.isSeverityError"
|
|
144
|
-
[class.hover:bg-red-200]="this.spxCloseable && this.isSeverityError"
|
|
145
|
-
[class.over:border-red-600]="this.spxCloseable && this.isSeverityError"
|
|
146
|
-
[class.focus:ring-cyan-600]="this.spxCloseable && this.isSeverityInfo"
|
|
147
|
-
[class.hover:bg-cyan-200]="this.spxCloseable && this.isSeverityInfo"
|
|
148
|
-
[class.over:border-cyan-600]="this.spxCloseable && this.isSeverityInfo"
|
|
149
|
-
[class.focus:ring-lime-600]="this.spxCloseable && this.isSeveritySuccess"
|
|
150
|
-
[class.hover:bg-lime-200]="this.spxCloseable && this.isSeveritySuccess"
|
|
151
|
-
[class.over:border-lime-600]="this.spxCloseable && this.isSeveritySuccess"
|
|
152
|
-
[class.focus:ring-amber-600]="this.spxCloseable && this.isSeverityWarning"
|
|
153
|
-
[class.hover:bg-amber-200]="this.spxCloseable && this.isSeverityWarning"
|
|
154
|
-
[class.over:border-amber-600]="this.spxCloseable && this.isSeverityWarning"
|
|
155
|
-
(click)="onClose()">
|
|
156
|
-
@if (this.isSeverityInfo) {
|
|
157
|
-
<fa-icon
|
|
158
|
-
[icon]="faCircleInfo" class="block text-xl text-cyan-600"></fa-icon>
|
|
159
|
-
}
|
|
160
|
-
@if (this.isSeverityError) {
|
|
161
|
-
<fa-icon
|
|
162
|
-
[icon]="faTriangleExclamation" class="block text-xl text-red-600"></fa-icon>
|
|
163
|
-
}
|
|
164
|
-
@if (this.isSeveritySuccess) {
|
|
165
|
-
<fa-icon
|
|
166
|
-
[icon]="faCheck" class="block text-xl text-lime-600"></fa-icon>
|
|
167
|
-
}
|
|
168
|
-
@if (this.isSeverityWarning) {
|
|
169
|
-
<fa-icon
|
|
170
|
-
[icon]="faTriangleExclamation" class="block text-xl text-amber-600"></fa-icon>
|
|
171
|
-
}
|
|
172
|
-
<div class="grow">
|
|
173
|
-
@if (this.spxTitle && !this.spxHideTitle) {
|
|
174
|
-
<p class="font-bold">{{this.spxTitle}}</p>
|
|
175
|
-
}
|
|
176
|
-
<p class="text-sm">
|
|
177
|
-
<ng-content></ng-content>
|
|
178
|
-
</p>
|
|
179
|
-
</div>
|
|
180
|
-
@if (this.spxCloseable) {
|
|
181
|
-
<fa-icon
|
|
182
|
-
[icon]="faTimes" class="block text-xl"></fa-icon>
|
|
183
|
-
}
|
|
184
|
-
</div>
|
|
128
|
+
template: `
|
|
129
|
+
<div class="flex items-center gap-3 border-t-4 rounded px-4 py-3 shadow-md"
|
|
130
|
+
[class.cursor-pointer]="this.spxCloseable"
|
|
131
|
+
[class.bg-red-100]="this.isSeverityError"
|
|
132
|
+
[class.border-red-500]="this.isSeverityError"
|
|
133
|
+
[class.text-red-900]="this.isSeverityError"
|
|
134
|
+
[class.bg-cyan-100]="this.isSeverityInfo"
|
|
135
|
+
[class.border-cyan-500]="this.isSeverityInfo"
|
|
136
|
+
[class.text-cyan-900]="this.isSeverityInfo"
|
|
137
|
+
[class.bg-lime-100]="this.isSeveritySuccess"
|
|
138
|
+
[class.border-lime-500]="this.isSeveritySuccess"
|
|
139
|
+
[class.text-lime-900]="this.isSeveritySuccess"
|
|
140
|
+
[class.bg-amber-100]="this.isSeverityWarning"
|
|
141
|
+
[class.border-amber-500]="this.isSeverityWarning"
|
|
142
|
+
[class.text-amber-900]="this.isSeverityWarning"
|
|
143
|
+
[class.focus:ring-red-600]="this.spxCloseable && this.isSeverityError"
|
|
144
|
+
[class.hover:bg-red-200]="this.spxCloseable && this.isSeverityError"
|
|
145
|
+
[class.over:border-red-600]="this.spxCloseable && this.isSeverityError"
|
|
146
|
+
[class.focus:ring-cyan-600]="this.spxCloseable && this.isSeverityInfo"
|
|
147
|
+
[class.hover:bg-cyan-200]="this.spxCloseable && this.isSeverityInfo"
|
|
148
|
+
[class.over:border-cyan-600]="this.spxCloseable && this.isSeverityInfo"
|
|
149
|
+
[class.focus:ring-lime-600]="this.spxCloseable && this.isSeveritySuccess"
|
|
150
|
+
[class.hover:bg-lime-200]="this.spxCloseable && this.isSeveritySuccess"
|
|
151
|
+
[class.over:border-lime-600]="this.spxCloseable && this.isSeveritySuccess"
|
|
152
|
+
[class.focus:ring-amber-600]="this.spxCloseable && this.isSeverityWarning"
|
|
153
|
+
[class.hover:bg-amber-200]="this.spxCloseable && this.isSeverityWarning"
|
|
154
|
+
[class.over:border-amber-600]="this.spxCloseable && this.isSeverityWarning"
|
|
155
|
+
(click)="onClose()">
|
|
156
|
+
@if (this.isSeverityInfo) {
|
|
157
|
+
<fa-icon
|
|
158
|
+
[icon]="faCircleInfo" class="block text-xl text-cyan-600"></fa-icon>
|
|
159
|
+
}
|
|
160
|
+
@if (this.isSeverityError) {
|
|
161
|
+
<fa-icon
|
|
162
|
+
[icon]="faTriangleExclamation" class="block text-xl text-red-600"></fa-icon>
|
|
163
|
+
}
|
|
164
|
+
@if (this.isSeveritySuccess) {
|
|
165
|
+
<fa-icon
|
|
166
|
+
[icon]="faCheck" class="block text-xl text-lime-600"></fa-icon>
|
|
167
|
+
}
|
|
168
|
+
@if (this.isSeverityWarning) {
|
|
169
|
+
<fa-icon
|
|
170
|
+
[icon]="faTriangleExclamation" class="block text-xl text-amber-600"></fa-icon>
|
|
171
|
+
}
|
|
172
|
+
<div class="grow">
|
|
173
|
+
@if (this.spxTitle && !this.spxHideTitle) {
|
|
174
|
+
<p class="font-bold">{{this.spxTitle}}</p>
|
|
175
|
+
}
|
|
176
|
+
<p class="text-sm">
|
|
177
|
+
<ng-content></ng-content>
|
|
178
|
+
</p>
|
|
179
|
+
</div>
|
|
180
|
+
@if (this.spxCloseable) {
|
|
181
|
+
<fa-icon
|
|
182
|
+
[icon]="faTimes" class="block text-xl"></fa-icon>
|
|
183
|
+
}
|
|
184
|
+
</div>
|
|
185
185
|
`,
|
|
186
186
|
}]
|
|
187
187
|
}], propDecorators: { spxClose: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softpak-components-spx-alert.mjs","sources":["../../../../projects/softpak/components/spx-alert/spx-alert.component.ts","../../../../projects/softpak/components/spx-alert/spx-alert.interface.ts","../../../../projects/softpak/components/spx-alert/softpak-components-spx-alert.ts"],"sourcesContent":["\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\nimport { faCheck, faCircleInfo, faTimes, faTriangleExclamation } from '@fortawesome/free-solid-svg-icons';\nimport { SpxSeverityEnum } from '@softpak/components/spx-helpers';\n\n@Component({\n selector: 'spx-alert',\n standalone: true,\n imports: [\n FontAwesomeModule\n],\n template: `\n <div class=\"flex items-center gap-3 border-t-4 rounded px-4 py-3 shadow-md\"\n [class.cursor-pointer]=\"this.spxCloseable\"\n [class.bg-red-100]=\"this.isSeverityError\"\n [class.border-red-500]=\"this.isSeverityError\"\n [class.text-red-900]=\"this.isSeverityError\"\n [class.bg-cyan-100]=\"this.isSeverityInfo\"\n [class.border-cyan-500]=\"this.isSeverityInfo\"\n [class.text-cyan-900]=\"this.isSeverityInfo\"\n [class.bg-lime-100]=\"this.isSeveritySuccess\"\n [class.border-lime-500]=\"this.isSeveritySuccess\"\n [class.text-lime-900]=\"this.isSeveritySuccess\"\n [class.bg-amber-100]=\"this.isSeverityWarning\"\n [class.border-amber-500]=\"this.isSeverityWarning\"\n [class.text-amber-900]=\"this.isSeverityWarning\"\n [class.focus:ring-red-600]=\"this.spxCloseable && this.isSeverityError\"\n [class.hover:bg-red-200]=\"this.spxCloseable && this.isSeverityError\"\n [class.over:border-red-600]=\"this.spxCloseable && this.isSeverityError\"\n [class.focus:ring-cyan-600]=\"this.spxCloseable && this.isSeverityInfo\"\n [class.hover:bg-cyan-200]=\"this.spxCloseable && this.isSeverityInfo\"\n [class.over:border-cyan-600]=\"this.spxCloseable && this.isSeverityInfo\"\n [class.focus:ring-lime-600]=\"this.spxCloseable && this.isSeveritySuccess\"\n [class.hover:bg-lime-200]=\"this.spxCloseable && this.isSeveritySuccess\"\n [class.over:border-lime-600]=\"this.spxCloseable && this.isSeveritySuccess\"\n [class.focus:ring-amber-600]=\"this.spxCloseable && this.isSeverityWarning\"\n [class.hover:bg-amber-200]=\"this.spxCloseable && this.isSeverityWarning\"\n [class.over:border-amber-600]=\"this.spxCloseable && this.isSeverityWarning\"\n (click)=\"onClose()\">\n @if (this.isSeverityInfo) {\n <fa-icon\n [icon]=\"faCircleInfo\" class=\"block text-xl text-cyan-600\"></fa-icon>\n }\n @if (this.isSeverityError) {\n <fa-icon\n [icon]=\"faTriangleExclamation\" class=\"block text-xl text-red-600\"></fa-icon>\n }\n @if (this.isSeveritySuccess) {\n <fa-icon\n [icon]=\"faCheck\" class=\"block text-xl text-lime-600\"></fa-icon>\n }\n @if (this.isSeverityWarning) {\n <fa-icon\n [icon]=\"faTriangleExclamation\" class=\"block text-xl text-amber-600\"></fa-icon>\n }\n <div class=\"grow\">\n @if (this.spxTitle && !this.spxHideTitle) {\n <p class=\"font-bold\">{{this.spxTitle}}</p>\n }\n <p class=\"text-sm\">\n <ng-content></ng-content>\n </p>\n </div>\n @if (this.spxCloseable) {\n <fa-icon\n [icon]=\"faTimes\" class=\"block text-xl\"></fa-icon>\n }\n </div>\n `,\n})\nexport class SpxAlertComponent {\n _autoCloseTimeout: any;\n @Output() spxClose: EventEmitter<void> = new EventEmitter<void>();\n @Input() spxAutoclose?: number;\n @Input() spxCloseable? = false;\n @Input() spxHideTitle = false;\n @Input() spxTitle?: string;\n @Input() spxMarginTop = false;\n @Input() spxSeverity?: SpxSeverityEnum;\n @Input() tick = {};\n\n get isSeverityError() { return this.spxSeverity === SpxSeverityEnum.error; }\n get isSeverityInfo() { return this.spxSeverity === SpxSeverityEnum.info; }\n get isSeveritySuccess() { return this.spxSeverity === SpxSeverityEnum.success; }\n get isSeverityWarning() { return this.spxSeverity === SpxSeverityEnum.warning; }\n faCheck = faCheck;\n faCircleInfo = faCircleInfo;\n faTriangleExclamation = faTriangleExclamation;\n faTimes = faTimes;\n\n componentDidLoad() {\n if (this.spxAutoclose) {\n this.prepareAutoClose();\n }\n if (!this.spxTitle) {\n this._assignDefaultTitle();\n }\n }\n\n private prepareAutoClose(): void {\n this._autoCloseTimeout = setTimeout(() => {\n this.onClose();\n this._autoCloseTimeout = null;\n this.tick = {};\n }, this.spxAutoclose);\n }\n\n private _assignDefaultTitle(): void {\n switch (this.spxSeverity) {\n case SpxSeverityEnum.error:\n this.spxTitle = 'Error';\n break;\n case SpxSeverityEnum.info:\n this.spxTitle = 'Info';\n break;\n case SpxSeverityEnum.success:\n this.spxTitle = 'Notification';\n break;\n case SpxSeverityEnum.warning:\n this.spxTitle = 'Warning';\n break;\n }\n }\n\n onClose() {\n if (this.spxCloseable) {\n this.spxClose.emit();\n }\n }\n}\n","import { SpxSeverityEnum } from \"@softpak/components/spx-helpers\";\n\nexport class SpxAlertI {\n closeable?: boolean;\n id?: number;\n message?: string;\n severity?: SpxSeverityEnum;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAuEa,iBAAiB,CAAA;AAjE9B,IAAA,WAAA,GAAA;AAmEY,QAAA,IAAA,CAAA,QAAQ,GAAuB,IAAI,YAAY,EAAQ,CAAC;QAEzD,IAAY,CAAA,YAAA,GAAI,KAAK,CAAC;QACtB,IAAY,CAAA,YAAA,GAAG,KAAK,CAAC;QAErB,IAAY,CAAA,YAAA,GAAG,KAAK,CAAC;QAErB,IAAI,CAAA,IAAA,GAAG,EAAE,CAAC;QAMnB,IAAO,CAAA,OAAA,GAAG,OAAO,CAAC;QAClB,IAAY,CAAA,YAAA,GAAG,YAAY,CAAC;QAC5B,IAAqB,CAAA,qBAAA,GAAG,qBAAqB,CAAC;QAC9C,IAAO,CAAA,OAAA,GAAG,OAAO,CAAC;AAyCnB,KAAA;AAhDC,IAAA,IAAI,eAAe,GAAA,EAAK,OAAO,IAAI,CAAC,WAAW,KAAK,eAAe,CAAC,KAAK,CAAC,EAAE;AAC5E,IAAA,IAAI,cAAc,GAAA,EAAK,OAAO,IAAI,CAAC,WAAW,KAAK,eAAe,CAAC,IAAI,CAAC,EAAE;AAC1E,IAAA,IAAI,iBAAiB,GAAA,EAAK,OAAO,IAAI,CAAC,WAAW,KAAK,eAAe,CAAC,OAAO,CAAC,EAAE;AAChF,IAAA,IAAI,iBAAiB,GAAA,EAAK,OAAO,IAAI,CAAC,WAAW,KAAK,eAAe,CAAC,OAAO,CAAC,EAAE;IAMhF,gBAAgB,GAAA;AACd,QAAA,IAAI,IAA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CAAA;sBAAjB,MAAM;gBACE,YAAY,EAAA,CAAA;sBAApB,KAAK;gBACG,YAAY,EAAA,CAAA;sBAApB,KAAK;gBACG,YAAY,EAAA,CAAA;sBAApB,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBACG,YAAY,EAAA,CAAA;sBAApB,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,IAAI,EAAA,CAAA;sBAAZ,KAAK;;;MC9EK,SAAS,CAAA;AAKrB;;ACPD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"softpak-components-spx-alert.mjs","sources":["../../../../projects/softpak/components/spx-alert/spx-alert.component.ts","../../../../projects/softpak/components/spx-alert/spx-alert.interface.ts","../../../../projects/softpak/components/spx-alert/softpak-components-spx-alert.ts"],"sourcesContent":["\r\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\r\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\r\nimport { faCheck, faCircleInfo, faTimes, faTriangleExclamation } from '@fortawesome/free-solid-svg-icons';\r\nimport { SpxSeverityEnum } from '@softpak/components/spx-helpers';\r\n\r\n@Component({\r\n selector: 'spx-alert',\r\n standalone: true,\r\n imports: [\r\n FontAwesomeModule\r\n],\r\n template: `\r\n <div class=\"flex items-center gap-3 border-t-4 rounded px-4 py-3 shadow-md\"\r\n [class.cursor-pointer]=\"this.spxCloseable\"\r\n [class.bg-red-100]=\"this.isSeverityError\"\r\n [class.border-red-500]=\"this.isSeverityError\"\r\n [class.text-red-900]=\"this.isSeverityError\"\r\n [class.bg-cyan-100]=\"this.isSeverityInfo\"\r\n [class.border-cyan-500]=\"this.isSeverityInfo\"\r\n [class.text-cyan-900]=\"this.isSeverityInfo\"\r\n [class.bg-lime-100]=\"this.isSeveritySuccess\"\r\n [class.border-lime-500]=\"this.isSeveritySuccess\"\r\n [class.text-lime-900]=\"this.isSeveritySuccess\"\r\n [class.bg-amber-100]=\"this.isSeverityWarning\"\r\n [class.border-amber-500]=\"this.isSeverityWarning\"\r\n [class.text-amber-900]=\"this.isSeverityWarning\"\r\n [class.focus:ring-red-600]=\"this.spxCloseable && this.isSeverityError\"\r\n [class.hover:bg-red-200]=\"this.spxCloseable && this.isSeverityError\"\r\n [class.over:border-red-600]=\"this.spxCloseable && this.isSeverityError\"\r\n [class.focus:ring-cyan-600]=\"this.spxCloseable && this.isSeverityInfo\"\r\n [class.hover:bg-cyan-200]=\"this.spxCloseable && this.isSeverityInfo\"\r\n [class.over:border-cyan-600]=\"this.spxCloseable && this.isSeverityInfo\"\r\n [class.focus:ring-lime-600]=\"this.spxCloseable && this.isSeveritySuccess\"\r\n [class.hover:bg-lime-200]=\"this.spxCloseable && this.isSeveritySuccess\"\r\n [class.over:border-lime-600]=\"this.spxCloseable && this.isSeveritySuccess\"\r\n [class.focus:ring-amber-600]=\"this.spxCloseable && this.isSeverityWarning\"\r\n [class.hover:bg-amber-200]=\"this.spxCloseable && this.isSeverityWarning\"\r\n [class.over:border-amber-600]=\"this.spxCloseable && this.isSeverityWarning\"\r\n (click)=\"onClose()\">\r\n @if (this.isSeverityInfo) {\r\n <fa-icon\r\n [icon]=\"faCircleInfo\" class=\"block text-xl text-cyan-600\"></fa-icon>\r\n }\r\n @if (this.isSeverityError) {\r\n <fa-icon\r\n [icon]=\"faTriangleExclamation\" class=\"block text-xl text-red-600\"></fa-icon>\r\n }\r\n @if (this.isSeveritySuccess) {\r\n <fa-icon\r\n [icon]=\"faCheck\" class=\"block text-xl text-lime-600\"></fa-icon>\r\n }\r\n @if (this.isSeverityWarning) {\r\n <fa-icon\r\n [icon]=\"faTriangleExclamation\" class=\"block text-xl text-amber-600\"></fa-icon>\r\n }\r\n <div class=\"grow\">\r\n @if (this.spxTitle && !this.spxHideTitle) {\r\n <p class=\"font-bold\">{{this.spxTitle}}</p>\r\n }\r\n <p class=\"text-sm\">\r\n <ng-content></ng-content>\r\n </p>\r\n </div>\r\n @if (this.spxCloseable) {\r\n <fa-icon\r\n [icon]=\"faTimes\" class=\"block text-xl\"></fa-icon>\r\n }\r\n </div>\r\n `,\r\n})\r\nexport class SpxAlertComponent {\r\n _autoCloseTimeout: any;\r\n @Output() spxClose: EventEmitter<void> = new EventEmitter<void>();\r\n @Input() spxAutoclose?: number;\r\n @Input() spxCloseable? = false;\r\n @Input() spxHideTitle = false;\r\n @Input() spxTitle?: string;\r\n @Input() spxMarginTop = false;\r\n @Input() spxSeverity?: SpxSeverityEnum;\r\n @Input() tick = {};\r\n\r\n get isSeverityError() { return this.spxSeverity === SpxSeverityEnum.error; }\r\n get isSeverityInfo() { return this.spxSeverity === SpxSeverityEnum.info; }\r\n get isSeveritySuccess() { return this.spxSeverity === SpxSeverityEnum.success; }\r\n get isSeverityWarning() { return this.spxSeverity === SpxSeverityEnum.warning; }\r\n faCheck = faCheck;\r\n faCircleInfo = faCircleInfo;\r\n faTriangleExclamation = faTriangleExclamation;\r\n faTimes = faTimes;\r\n\r\n componentDidLoad() {\r\n if (this.spxAutoclose) {\r\n this.prepareAutoClose();\r\n }\r\n if (!this.spxTitle) {\r\n this._assignDefaultTitle();\r\n }\r\n }\r\n\r\n private prepareAutoClose(): void {\r\n this._autoCloseTimeout = setTimeout(() => {\r\n this.onClose();\r\n this._autoCloseTimeout = null;\r\n this.tick = {};\r\n }, this.spxAutoclose);\r\n }\r\n\r\n private _assignDefaultTitle(): void {\r\n switch (this.spxSeverity) {\r\n case SpxSeverityEnum.error:\r\n this.spxTitle = 'Error';\r\n break;\r\n case SpxSeverityEnum.info:\r\n this.spxTitle = 'Info';\r\n break;\r\n case SpxSeverityEnum.success:\r\n this.spxTitle = 'Notification';\r\n break;\r\n case SpxSeverityEnum.warning:\r\n this.spxTitle = 'Warning';\r\n break;\r\n }\r\n }\r\n\r\n onClose() {\r\n if (this.spxCloseable) {\r\n this.spxClose.emit();\r\n }\r\n }\r\n}\r\n","import { SpxSeverityEnum } from \"@softpak/components/spx-helpers\";\r\n\r\nexport class SpxAlertI {\r\n closeable?: boolean;\r\n id?: number;\r\n message?: string;\r\n severity?: SpxSeverityEnum;\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAuEa,iBAAiB,CAAA;AAjE9B,IAAA,WAAA,GAAA;AAmEY,QAAA,IAAA,CAAA,QAAQ,GAAuB,IAAI,YAAY,EAAQ,CAAC;QAEzD,IAAY,CAAA,YAAA,GAAI,KAAK,CAAC;QACtB,IAAY,CAAA,YAAA,GAAG,KAAK,CAAC;QAErB,IAAY,CAAA,YAAA,GAAG,KAAK,CAAC;QAErB,IAAI,CAAA,IAAA,GAAG,EAAE,CAAC;QAMnB,IAAO,CAAA,OAAA,GAAG,OAAO,CAAC;QAClB,IAAY,CAAA,YAAA,GAAG,YAAY,CAAC;QAC5B,IAAqB,CAAA,qBAAA,GAAG,qBAAqB,CAAC;QAC9C,IAAO,CAAA,OAAA,GAAG,OAAO,CAAC;AAyCnB,KAAA;AAhDC,IAAA,IAAI,eAAe,GAAA,EAAK,OAAO,IAAI,CAAC,WAAW,KAAK,eAAe,CAAC,KAAK,CAAC,EAAE;AAC5E,IAAA,IAAI,cAAc,GAAA,EAAK,OAAO,IAAI,CAAC,WAAW,KAAK,eAAe,CAAC,IAAI,CAAC,EAAE;AAC1E,IAAA,IAAI,iBAAiB,GAAA,EAAK,OAAO,IAAI,CAAC,WAAW,KAAK,eAAe,CAAC,OAAO,CAAC,EAAE;AAChF,IAAA,IAAI,iBAAiB,GAAA,EAAK,OAAO,IAAI,CAAC,WAAW,KAAK,eAAe,CAAC,OAAO,CAAC,EAAE;IAMhF,gBAAgB,GAAA;AACd,QAAA,IAAI,IAAI,CAAC,YAAY,EAAE;YACrB,IAAI,CAAC,gBAAgB,EAAE,CAAC;SACzB;AACD,QAAA,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,IAAI,CAAC,mBAAmB,EAAE,CAAC;SAC5B;KACF;IAEO,gBAAgB,GAAA;AACtB,QAAA,I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BAApB,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,IAAI,EAAA,CAAA;sBAAZ,KAAK;;;MC9EK,SAAS,CAAA;AAKrB;;ACPD;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softpak-components-spx-app-configuration.mjs","sources":["../../../../projects/softpak/components/spx-app-configuration/spx-app-channel-type.enum.ts","../../../../projects/softpak/components/spx-app-configuration/spx-app-id.enum.ts","../../../../projects/softpak/components/spx-app-configuration/spx-app-lang.enum.ts","../../../../projects/softpak/components/spx-app-configuration/softpak-components-spx-app-configuration.ts"],"sourcesContent":["export enum SpxAppChannelTypeEnum {\n production = 'Production',\n beta = 'Beta',\n alpha = 'Alpha',\n development = 'Development',\n}\n","export enum SpxAppIdEnum {\n container = 'container',\n depot = 'depot',\n eucon = 'eucon',\n orders = 'orders',\n}\n","export enum SpxAppLangEnum {\n english = 'en',\n dutch = 'nl',\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"IAAY,sBAKX;AALD,CAAA,UAAY,qBAAqB,EAAA;AAC/B,IAAA,qBAAA,CAAA,YAAA,CAAA,GAAA,YAAyB,CAAA;AACzB,IAAA,qBAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,qBAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,qBAAA,CAAA,aAAA,CAAA,GAAA,aAA2B,CAAA;AAC7B,CAAC,EALW,qBAAqB,KAArB,qBAAqB,GAKhC,EAAA,CAAA,CAAA;;ICLW,aAKX;AALD,CAAA,UAAY,YAAY,EAAA;AACtB,IAAA,YAAA,CAAA,WAAA,CAAA,GAAA,WAAuB,CAAA;AACvB,IAAA,YAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,YAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,YAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACnB,CAAC,EALW,YAAY,KAAZ,YAAY,GAKvB,EAAA,CAAA,CAAA;;ICLW,eAGX;AAHD,CAAA,UAAY,cAAc,EAAA;AACxB,IAAA,cAAA,CAAA,SAAA,CAAA,GAAA,IAAc,CAAA;AACd,IAAA,cAAA,CAAA,OAAA,CAAA,GAAA,IAAY,CAAA;AACd,CAAC,EAHW,cAAc,KAAd,cAAc,GAGzB,EAAA,CAAA,CAAA;;ACHD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"softpak-components-spx-app-configuration.mjs","sources":["../../../../projects/softpak/components/spx-app-configuration/spx-app-channel-type.enum.ts","../../../../projects/softpak/components/spx-app-configuration/spx-app-id.enum.ts","../../../../projects/softpak/components/spx-app-configuration/spx-app-lang.enum.ts","../../../../projects/softpak/components/spx-app-configuration/softpak-components-spx-app-configuration.ts"],"sourcesContent":["export enum SpxAppChannelTypeEnum {\r\n production = 'Production',\r\n beta = 'Beta',\r\n alpha = 'Alpha',\r\n development = 'Development',\r\n}\r\n","export enum SpxAppIdEnum {\r\n container = 'container',\r\n depot = 'depot',\r\n eucon = 'eucon',\r\n orders = 'orders',\r\n}\r\n","export enum SpxAppLangEnum {\r\n english = 'en',\r\n dutch = 'nl',\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"IAAY,sBAKX;AALD,CAAA,UAAY,qBAAqB,EAAA;AAC/B,IAAA,qBAAA,CAAA,YAAA,CAAA,GAAA,YAAyB,CAAA;AACzB,IAAA,qBAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,qBAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,qBAAA,CAAA,aAAA,CAAA,GAAA,aAA2B,CAAA;AAC7B,CAAC,EALW,qBAAqB,KAArB,qBAAqB,GAKhC,EAAA,CAAA,CAAA;;ICLW,aAKX;AALD,CAAA,UAAY,YAAY,EAAA;AACtB,IAAA,YAAA,CAAA,WAAA,CAAA,GAAA,WAAuB,CAAA;AACvB,IAAA,YAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,YAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,YAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACnB,CAAC,EALW,YAAY,KAAZ,YAAY,GAKvB,EAAA,CAAA,CAAA;;ICLW,eAGX;AAHD,CAAA,UAAY,cAAc,EAAA;AACxB,IAAA,cAAA,CAAA,SAAA,CAAA,GAAA,IAAc,CAAA;AACd,IAAA,cAAA,CAAA,OAAA,CAAA,GAAA,IAAY,CAAA;AACd,CAAC,EAHW,cAAc,KAAd,cAAc,GAGzB,EAAA,CAAA,CAAA;;ACHD;;AAEG;;;;"}
|
|
@@ -28,34 +28,34 @@ class SpxAppExpiryComponent {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpxAppExpiryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
31
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: SpxAppExpiryComponent, isStandalone: true, selector: "spx-app-expiry", inputs: { txtContactHelpdeskOrSoftpak: "txtContactHelpdeskOrSoftpak", txtExpired: "txtExpired", txtLastReminder: "txtLastReminder", txtPleaseOpenTheAppStore: "txtPleaseOpenTheAppStore", txtPleaseUpdate: "txtPleaseUpdate", txtThisVersionWillExpireSoon: "txtThisVersionWillExpireSoon", txtUpdateAvailable: "txtUpdateAvailable", txtUpdateTheAppToTheLatestVersion: "txtUpdateTheAppToTheLatestVersion", spxExpiry: "spxExpiry", spxVersion: "spxVersion" }, usesOnChanges: true, ngImport: i0, template: `
|
|
32
|
-
@if (warning || finalWarning || expired) {
|
|
33
|
-
<div class="m-3">
|
|
34
|
-
<div
|
|
35
|
-
class="p-3 font-bold text-white rounded-t text-xl"
|
|
36
|
-
[class.bg-lime-600]="warning"
|
|
37
|
-
[class.bg-red-600]="expired"
|
|
38
|
-
[class.bg-amber-600]="finalWarning">
|
|
39
|
-
@if (warning) {
|
|
40
|
-
{{ txtUpdateAvailable }}
|
|
41
|
-
}
|
|
42
|
-
@if (finalWarning) {
|
|
43
|
-
{{ txtLastReminder }}
|
|
44
|
-
}
|
|
45
|
-
@if (expired) {
|
|
46
|
-
{{ txtExpired }}
|
|
47
|
-
}
|
|
48
|
-
</div>
|
|
49
|
-
<div
|
|
50
|
-
class="bg-amber-50 p-3 text-black rounded-b mb-3">
|
|
51
|
-
<div>{{ txtPleaseOpenTheAppStore }}.</div>
|
|
52
|
-
<div>{{ txtUpdateTheAppToTheLatestVersion }}.</div>
|
|
53
|
-
<div>{{ txtContactHelpdeskOrSoftpak }}.</div>
|
|
54
|
-
@if (finalWarning) {
|
|
55
|
-
<div>{{ txtThisVersionWillExpireSoon }}.</div>
|
|
56
|
-
}
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
31
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: SpxAppExpiryComponent, isStandalone: true, selector: "spx-app-expiry", inputs: { txtContactHelpdeskOrSoftpak: "txtContactHelpdeskOrSoftpak", txtExpired: "txtExpired", txtLastReminder: "txtLastReminder", txtPleaseOpenTheAppStore: "txtPleaseOpenTheAppStore", txtPleaseUpdate: "txtPleaseUpdate", txtThisVersionWillExpireSoon: "txtThisVersionWillExpireSoon", txtUpdateAvailable: "txtUpdateAvailable", txtUpdateTheAppToTheLatestVersion: "txtUpdateTheAppToTheLatestVersion", spxExpiry: "spxExpiry", spxVersion: "spxVersion" }, usesOnChanges: true, ngImport: i0, template: `
|
|
32
|
+
@if (warning || finalWarning || expired) {
|
|
33
|
+
<div class="m-3">
|
|
34
|
+
<div
|
|
35
|
+
class="p-3 font-bold text-white rounded-t text-xl"
|
|
36
|
+
[class.bg-lime-600]="warning"
|
|
37
|
+
[class.bg-red-600]="expired"
|
|
38
|
+
[class.bg-amber-600]="finalWarning">
|
|
39
|
+
@if (warning) {
|
|
40
|
+
{{ txtUpdateAvailable }}
|
|
41
|
+
}
|
|
42
|
+
@if (finalWarning) {
|
|
43
|
+
{{ txtLastReminder }}
|
|
44
|
+
}
|
|
45
|
+
@if (expired) {
|
|
46
|
+
{{ txtExpired }}
|
|
47
|
+
}
|
|
48
|
+
</div>
|
|
49
|
+
<div
|
|
50
|
+
class="bg-amber-50 p-3 text-black rounded-b mb-3">
|
|
51
|
+
<div>{{ txtPleaseOpenTheAppStore }}.</div>
|
|
52
|
+
<div>{{ txtUpdateTheAppToTheLatestVersion }}.</div>
|
|
53
|
+
<div>{{ txtContactHelpdeskOrSoftpak }}.</div>
|
|
54
|
+
@if (finalWarning) {
|
|
55
|
+
<div>{{ txtThisVersionWillExpireSoon }}.</div>
|
|
56
|
+
}
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
59
|
}`, isInline: true }); }
|
|
60
60
|
}
|
|
61
61
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpxAppExpiryComponent, decorators: [{
|
|
@@ -64,34 +64,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
64
64
|
selector: 'spx-app-expiry',
|
|
65
65
|
standalone: true,
|
|
66
66
|
imports: [],
|
|
67
|
-
template: `
|
|
68
|
-
@if (warning || finalWarning || expired) {
|
|
69
|
-
<div class="m-3">
|
|
70
|
-
<div
|
|
71
|
-
class="p-3 font-bold text-white rounded-t text-xl"
|
|
72
|
-
[class.bg-lime-600]="warning"
|
|
73
|
-
[class.bg-red-600]="expired"
|
|
74
|
-
[class.bg-amber-600]="finalWarning">
|
|
75
|
-
@if (warning) {
|
|
76
|
-
{{ txtUpdateAvailable }}
|
|
77
|
-
}
|
|
78
|
-
@if (finalWarning) {
|
|
79
|
-
{{ txtLastReminder }}
|
|
80
|
-
}
|
|
81
|
-
@if (expired) {
|
|
82
|
-
{{ txtExpired }}
|
|
83
|
-
}
|
|
84
|
-
</div>
|
|
85
|
-
<div
|
|
86
|
-
class="bg-amber-50 p-3 text-black rounded-b mb-3">
|
|
87
|
-
<div>{{ txtPleaseOpenTheAppStore }}.</div>
|
|
88
|
-
<div>{{ txtUpdateTheAppToTheLatestVersion }}.</div>
|
|
89
|
-
<div>{{ txtContactHelpdeskOrSoftpak }}.</div>
|
|
90
|
-
@if (finalWarning) {
|
|
91
|
-
<div>{{ txtThisVersionWillExpireSoon }}.</div>
|
|
92
|
-
}
|
|
93
|
-
</div>
|
|
94
|
-
</div>
|
|
67
|
+
template: `
|
|
68
|
+
@if (warning || finalWarning || expired) {
|
|
69
|
+
<div class="m-3">
|
|
70
|
+
<div
|
|
71
|
+
class="p-3 font-bold text-white rounded-t text-xl"
|
|
72
|
+
[class.bg-lime-600]="warning"
|
|
73
|
+
[class.bg-red-600]="expired"
|
|
74
|
+
[class.bg-amber-600]="finalWarning">
|
|
75
|
+
@if (warning) {
|
|
76
|
+
{{ txtUpdateAvailable }}
|
|
77
|
+
}
|
|
78
|
+
@if (finalWarning) {
|
|
79
|
+
{{ txtLastReminder }}
|
|
80
|
+
}
|
|
81
|
+
@if (expired) {
|
|
82
|
+
{{ txtExpired }}
|
|
83
|
+
}
|
|
84
|
+
</div>
|
|
85
|
+
<div
|
|
86
|
+
class="bg-amber-50 p-3 text-black rounded-b mb-3">
|
|
87
|
+
<div>{{ txtPleaseOpenTheAppStore }}.</div>
|
|
88
|
+
<div>{{ txtUpdateTheAppToTheLatestVersion }}.</div>
|
|
89
|
+
<div>{{ txtContactHelpdeskOrSoftpak }}.</div>
|
|
90
|
+
@if (finalWarning) {
|
|
91
|
+
<div>{{ txtThisVersionWillExpireSoon }}.</div>
|
|
92
|
+
}
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
95
|
}`,
|
|
96
96
|
}]
|
|
97
97
|
}], propDecorators: { txtContactHelpdeskOrSoftpak: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softpak-components-spx-app-expiry.mjs","sources":["../../../../projects/softpak/components/spx-app-expiry/spx-check-expiry-warning.interface.ts","../../../../projects/softpak/components/spx-app-expiry/spx-check-expiry-final-warning.interface.ts","../../../../projects/softpak/components/spx-app-expiry/spx-check-expiry-happened.interface.ts","../../../../projects/softpak/components/spx-app-expiry/spx-app-expiry.component.ts","../../../../projects/softpak/components/spx-app-expiry/softpak-components-spx-app-expiry.ts"],"sourcesContent":["import { DateTime } from \"luxon\";\nimport { SpxAppExpiryI } from \"./spx-app-expiry.interface\";\n\nexport const spxCheckExpiryWarning = (appStoreVersion: string, spxAppExpiry?: SpxAppExpiryI): boolean => {\n return spxAppExpiry !== undefined && appStoreVersion.substring(0,3) !== spxAppExpiry.requiredVersion.substring(0,3) && DateTime.now() > spxAppExpiry.warning;\n}","import { DateTime } from \"luxon\";\nimport { SpxAppExpiryI } from \"./spx-app-expiry.interface\";\n\nexport const spxCheckExpiryFinalWarning = (appStoreVersion: string, spxAppExpiry?: SpxAppExpiryI) => {\n return spxAppExpiry !== undefined && appStoreVersion.substring(0,3) !== spxAppExpiry.requiredVersion.substring(0,3) && DateTime.now() > spxAppExpiry.finalWarning;\n}","import { DateTime } from \"luxon\";\nimport { SpxAppExpiryI } from \"./spx-app-expiry.interface\";\n\nexport const spxCheckExpiryHappened = (appStoreVersion: string, spxAppExpiry: SpxAppExpiryI): boolean => {\n return spxAppExpiry !== undefined && appStoreVersion.substring(0,3) !== spxAppExpiry.requiredVersion.substring(0,3) && DateTime.now() > spxAppExpiry.expiry;\n}","\nimport { Component, Input, OnChanges } from '@angular/core';\nimport { SpxAppExpiryI } from './spx-app-expiry.interface';\nimport { spxCheckExpiryWarning } from './spx-check-expiry-warning.interface';\nimport { spxCheckExpiryFinalWarning } from './spx-check-expiry-final-warning.interface';\nimport { spxCheckExpiryHappened } from './spx-check-expiry-happened.interface';\n\n@Component({\n selector: 'spx-app-expiry',\n standalone: true,\n imports: [],\n template: `\n @if (warning || finalWarning || expired) {\n <div class=\"m-3\">\n <div\n class=\"p-3 font-bold text-white rounded-t text-xl\"\n [class.bg-lime-600]=\"warning\"\n [class.bg-red-600]=\"expired\"\n [class.bg-amber-600]=\"finalWarning\">\n @if (warning) {\n {{ txtUpdateAvailable }}\n }\n @if (finalWarning) {\n {{ txtLastReminder }}\n }\n @if (expired) {\n {{ txtExpired }}\n }\n </div>\n <div\n class=\"bg-amber-50 p-3 text-black rounded-b mb-3\">\n <div>{{ txtPleaseOpenTheAppStore }}.</div>\n <div>{{ txtUpdateTheAppToTheLatestVersion }}.</div>\n <div>{{ txtContactHelpdeskOrSoftpak }}.</div>\n @if (finalWarning) {\n <div>{{ txtThisVersionWillExpireSoon }}.</div>\n }\n </div>\n </div>\n }`,\n})\nexport class SpxAppExpiryComponent implements OnChanges {\n @Input() txtContactHelpdeskOrSoftpak!: string;\n @Input() txtExpired!: string;\n @Input() txtLastReminder!: string;\n @Input() txtPleaseOpenTheAppStore!: string;\n @Input() txtPleaseUpdate!: string;\n @Input() txtThisVersionWillExpireSoon!: string;\n @Input() txtUpdateAvailable!: string;\n @Input() txtUpdateTheAppToTheLatestVersion!: string;\n @Input() spxExpiry!: SpxAppExpiryI;\n @Input() spxVersion!: string;\n warning = false;\n finalWarning = false;\n expired = false;\n ngOnChanges(): void {\n if (this.spxExpiry && this.spxVersion) {\n this.expired = spxCheckExpiryHappened(this.spxVersion, this.spxExpiry);\n this.finalWarning = spxCheckExpiryFinalWarning(this.spxVersion, this.spxExpiry) && !this.expired;\n this.warning = spxCheckExpiryWarning(this.spxVersion, this.spxExpiry) && !this.finalWarning && !this.expired;\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAGa,qBAAqB,GAAG,CAAC,eAAuB,EAA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;;;;;;;;;;;AA4BR,GAAA,CAAA;AACH,iBAAA,CAAA;8BAEU,2BAA2B,EAAA,CAAA;sBAAnC,KAAK;gBACG,UAAU,EAAA,CAAA;sBAAlB,KAAK;gBACG,eAAe,EAAA,CAAA;sBAAvB,KAAK;gBACG,wBAAwB,EAAA,CAAA;sBAAhC,KAAK;gBACG,eAAe,EAAA,CAAA;sBAAvB,KAAK;gBACG,4BAA4B,EAAA,CAAA;sBAApC,KAAK;gBACG,kBAAkB,EAAA,CAAA;sBAA1B,KAAK;gBACG,iCAAiC,EAAA,CAAA;sBAAzC,KAAK;gBACG,SAAS,EAAA,CAAA;sBAAjB,KAAK;gBACG,UAAU,EAAA,CAAA;sBAAlB,KAAK;;;ACnDR;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"softpak-components-spx-app-expiry.mjs","sources":["../../../../projects/softpak/components/spx-app-expiry/spx-check-expiry-warning.interface.ts","../../../../projects/softpak/components/spx-app-expiry/spx-check-expiry-final-warning.interface.ts","../../../../projects/softpak/components/spx-app-expiry/spx-check-expiry-happened.interface.ts","../../../../projects/softpak/components/spx-app-expiry/spx-app-expiry.component.ts","../../../../projects/softpak/components/spx-app-expiry/softpak-components-spx-app-expiry.ts"],"sourcesContent":["import { DateTime } from \"luxon\";\r\nimport { SpxAppExpiryI } from \"./spx-app-expiry.interface\";\r\n\r\nexport const spxCheckExpiryWarning = (appStoreVersion: string, spxAppExpiry?: SpxAppExpiryI): boolean => {\r\n return spxAppExpiry !== undefined && appStoreVersion.substring(0,3) !== spxAppExpiry.requiredVersion.substring(0,3) && DateTime.now() > spxAppExpiry.warning;\r\n}","import { DateTime } from \"luxon\";\r\nimport { SpxAppExpiryI } from \"./spx-app-expiry.interface\";\r\n\r\nexport const spxCheckExpiryFinalWarning = (appStoreVersion: string, spxAppExpiry?: SpxAppExpiryI) => {\r\n return spxAppExpiry !== undefined && appStoreVersion.substring(0,3) !== spxAppExpiry.requiredVersion.substring(0,3) && DateTime.now() > spxAppExpiry.finalWarning;\r\n}","import { DateTime } from \"luxon\";\r\nimport { SpxAppExpiryI } from \"./spx-app-expiry.interface\";\r\n\r\nexport const spxCheckExpiryHappened = (appStoreVersion: string, spxAppExpiry: SpxAppExpiryI): boolean => {\r\n return spxAppExpiry !== undefined && appStoreVersion.substring(0,3) !== spxAppExpiry.requiredVersion.substring(0,3) && DateTime.now() > spxAppExpiry.expiry;\r\n}","\r\nimport { Component, Input, OnChanges } from '@angular/core';\r\nimport { SpxAppExpiryI } from './spx-app-expiry.interface';\r\nimport { spxCheckExpiryWarning } from './spx-check-expiry-warning.interface';\r\nimport { spxCheckExpiryFinalWarning } from './spx-check-expiry-final-warning.interface';\r\nimport { spxCheckExpiryHappened } from './spx-check-expiry-happened.interface';\r\n\r\n@Component({\r\n selector: 'spx-app-expiry',\r\n standalone: true,\r\n imports: [],\r\n template: `\r\n @if (warning || finalWarning || expired) {\r\n <div class=\"m-3\">\r\n <div\r\n class=\"p-3 font-bold text-white rounded-t text-xl\"\r\n [class.bg-lime-600]=\"warning\"\r\n [class.bg-red-600]=\"expired\"\r\n [class.bg-amber-600]=\"finalWarning\">\r\n @if (warning) {\r\n {{ txtUpdateAvailable }}\r\n }\r\n @if (finalWarning) {\r\n {{ txtLastReminder }}\r\n }\r\n @if (expired) {\r\n {{ txtExpired }}\r\n }\r\n </div>\r\n <div\r\n class=\"bg-amber-50 p-3 text-black rounded-b mb-3\">\r\n <div>{{ txtPleaseOpenTheAppStore }}.</div>\r\n <div>{{ txtUpdateTheAppToTheLatestVersion }}.</div>\r\n <div>{{ txtContactHelpdeskOrSoftpak }}.</div>\r\n @if (finalWarning) {\r\n <div>{{ txtThisVersionWillExpireSoon }}.</div>\r\n }\r\n </div>\r\n </div>\r\n }`,\r\n})\r\nexport class SpxAppExpiryComponent implements OnChanges {\r\n @Input() txtContactHelpdeskOrSoftpak!: string;\r\n @Input() txtExpired!: string;\r\n @Input() txtLastReminder!: string;\r\n @Input() txtPleaseOpenTheAppStore!: string;\r\n @Input() txtPleaseUpdate!: string;\r\n @Input() txtThisVersionWillExpireSoon!: string;\r\n @Input() txtUpdateAvailable!: string;\r\n @Input() txtUpdateTheAppToTheLatestVersion!: string;\r\n @Input() spxExpiry!: SpxAppExpiryI;\r\n @Input() spxVersion!: string;\r\n warning = false;\r\n finalWarning = false;\r\n expired = false;\r\n ngOnChanges(): void {\r\n if (this.spxExpiry && this.spxVersion) {\r\n this.expired = spxCheckExpiryHappened(this.spxVersion, this.spxExpiry);\r\n this.finalWarning = spxCheckExpiryFinalWarning(this.spxVersion, this.spxExpiry) && !this.expired;\r\n this.warning = spxCheckExpiryWarning(this.spxVersion, this.spxExpiry) && !this.finalWarning && !this.expired;\r\n }\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAGa,qBAAqB,GAAG,CAAC,eAAuB,EAAE,YAA4B,KAAa;AACtG,IAAA,OAAO,YAAY,KAAK,SAAS,IAAI,eAAe,CAAC,SAAS,CAAC,CAAC,EAAC,CAAC,CAAC,KAAK,YAAY,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,EAAC,CAAC,CAAC,IAAI,QAAQ,CAAC,GAAG,EAAE,GAAG,YAAY,CAAC,OAAO,CAAC;AAC/J;;MCFa,0BAA0B,GAAG,CAAC,eAAuB,EAAE,YAA4B,KAAI;AAClG,IAAA,OAAO,YAAY,KAAK,SAAS,IAAI,eAAe,CAAC,SAAS,CAAC,CAAC,EAAC,CAAC,CAAC,KAAK,YAAY,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,EAAC,CAAC,CAAC,IAAK,QAAQ,CAAC,GAAG,EAAE,GAAG,YAAY,CAAC,YAAY,CAAC;AACrK;;MCFa,sBAAsB,GAAG,CAAC,eAAuB,EAAE,YAA2B,KAAa;AACtG,IAAA,OAAO,YAAY,KAAK,SAAS,IAAI,eAAe,CAAC,SAAS,CAAC,CAAC,EAAC,CAAC,CAAC,KAAK,YAA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,eAAA,EAAA,iBAAA,EAAA,4BAAA,EAAA,8BAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,iCAAA,EAAA,mCAAA,EAAA,SAAA,EAAA,WAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BR,GAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;4FAES,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAlCjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BR,GAAA,CAAA;AACH,iBAAA,CAAA;8BAEU,2BAA2B,EAAA,CAAA;sBAAnC,KAAK;gBACG,UAAU,EAAA,CAAA;sBAAlB,KAAK;gBACG,eAAe,EAAA,CAAA;sBAAvB,KAAK;gBACG,wBAAwB,EAAA,CAAA;sBAAhC,KAAK;gBACG,eAAe,EAAA,CAAA;sBAAvB,KAAK;gBACG,4BAA4B,EAAA,CAAA;sBAApC,KAAK;gBACG,kBAAkB,EAAA,CAAA;sBAA1B,KAAK;gBACG,iCAAiC,EAAA,CAAA;sBAAzC,KAAK;gBACG,SAAS,EAAA,CAAA;sBAAjB,KAAK;gBACG,UAAU,EAAA,CAAA;sBAAlB,KAAK;;;ACnDR;;AAEG;;;;"}
|
|
@@ -213,35 +213,35 @@ class SpxAppUpdateComponent {
|
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpxAppUpdateComponent, deps: [{ token: i1.Deploy }, { token: i0.ChangeDetectorRef }, { token: i0.ApplicationRef }, { token: i2.TranslateService }, { token: i3.FormBuilder }, { token: i4.NavController }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
216
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: SpxAppUpdateComponent, isStandalone: true, selector: "spx-app-update", inputs: { spxHomeUrl: "spxHomeUrl", spxIsSignedIn: "spxIsSignedIn", textCheckingForUpdates: "textCheckingForUpdates", textDownloadingUpdate: "textDownloadingUpdate", textErrorWhileUpdatingApp: "textErrorWhileUpdatingApp", textFinishedUpdating: "textFinishedUpdating", textNoUpdatesAvailable: "textNoUpdatesAvailable", textUnexpectedError: "textUnexpectedError", txtAppStoreVersion: "txtAppStoreVersion", txtChannel: "txtChannel", txtNextVersion: "txtNextVersion", txtUpdate: "txtUpdate", txtVersion: "txtVersion", spxAppId: "spxAppId" }, ngImport: i0, template: `<ion-header>
|
|
217
|
-
<ion-toolbar>
|
|
218
|
-
<ion-title>
|
|
219
|
-
{{ txtUpdate | translate | capitalize }}
|
|
220
|
-
</ion-title>
|
|
221
|
-
</ion-toolbar>
|
|
222
|
-
</ion-header>
|
|
223
|
-
|
|
224
|
-
<ion-content class="ion-content--upd" [fullscreen]="true">
|
|
225
|
-
<div class="ion-padding">
|
|
226
|
-
<spx-progress-bar [spxPercentage]="delayedPercentage" [spxTitle]="updateStatus | capitalize">
|
|
227
|
-
</spx-progress-bar>
|
|
228
|
-
<form [formGroup]="form" class="mt-3">
|
|
229
|
-
@if (ctrlAppStoreVersion.value && ctrlAppStoreVersion.value.value) {
|
|
230
|
-
<div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3">
|
|
231
|
-
<spx-input [formControl]="ctrlAppStoreVersion" [spxLabel]="txtAppStoreVersion | translate | capitalize"
|
|
232
|
-
[spxReadonly]="true"></spx-input>
|
|
233
|
-
<spx-input [formControl]="ctrlConfiguredChannel" [spxLabel]="txtChannel | translate | capitalize"
|
|
234
|
-
[spxReadonly]="true"></spx-input>
|
|
235
|
-
<spx-input [formControl]="ctrlVersionNumber" [spxLabel]="txtVersion | translate | capitalize"
|
|
236
|
-
[spxReadonly]="true"></spx-input>
|
|
237
|
-
@if (ctrlNextVersionNumber.value && ctrlNextVersionNumber.value.value) {
|
|
238
|
-
<spx-input [formControl]="ctrlNextVersionNumber" [spxLabel]="txtNextVersion | translate | capitalize"
|
|
239
|
-
[spxReadonly]="true"></spx-input>
|
|
240
|
-
}
|
|
241
|
-
</div>
|
|
242
|
-
}
|
|
243
|
-
</form>
|
|
244
|
-
</div>
|
|
216
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: SpxAppUpdateComponent, isStandalone: true, selector: "spx-app-update", inputs: { spxHomeUrl: "spxHomeUrl", spxIsSignedIn: "spxIsSignedIn", textCheckingForUpdates: "textCheckingForUpdates", textDownloadingUpdate: "textDownloadingUpdate", textErrorWhileUpdatingApp: "textErrorWhileUpdatingApp", textFinishedUpdating: "textFinishedUpdating", textNoUpdatesAvailable: "textNoUpdatesAvailable", textUnexpectedError: "textUnexpectedError", txtAppStoreVersion: "txtAppStoreVersion", txtChannel: "txtChannel", txtNextVersion: "txtNextVersion", txtUpdate: "txtUpdate", txtVersion: "txtVersion", spxAppId: "spxAppId" }, ngImport: i0, template: `<ion-header>
|
|
217
|
+
<ion-toolbar>
|
|
218
|
+
<ion-title>
|
|
219
|
+
{{ txtUpdate | translate | capitalize }}
|
|
220
|
+
</ion-title>
|
|
221
|
+
</ion-toolbar>
|
|
222
|
+
</ion-header>
|
|
223
|
+
|
|
224
|
+
<ion-content class="ion-content--upd" [fullscreen]="true">
|
|
225
|
+
<div class="ion-padding">
|
|
226
|
+
<spx-progress-bar [spxPercentage]="delayedPercentage" [spxTitle]="updateStatus | capitalize">
|
|
227
|
+
</spx-progress-bar>
|
|
228
|
+
<form [formGroup]="form" class="mt-3">
|
|
229
|
+
@if (ctrlAppStoreVersion.value && ctrlAppStoreVersion.value.value) {
|
|
230
|
+
<div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3">
|
|
231
|
+
<spx-input [formControl]="ctrlAppStoreVersion" [spxLabel]="txtAppStoreVersion | translate | capitalize"
|
|
232
|
+
[spxReadonly]="true"></spx-input>
|
|
233
|
+
<spx-input [formControl]="ctrlConfiguredChannel" [spxLabel]="txtChannel | translate | capitalize"
|
|
234
|
+
[spxReadonly]="true"></spx-input>
|
|
235
|
+
<spx-input [formControl]="ctrlVersionNumber" [spxLabel]="txtVersion | translate | capitalize"
|
|
236
|
+
[spxReadonly]="true"></spx-input>
|
|
237
|
+
@if (ctrlNextVersionNumber.value && ctrlNextVersionNumber.value.value) {
|
|
238
|
+
<spx-input [formControl]="ctrlNextVersionNumber" [spxLabel]="txtNextVersion | translate | capitalize"
|
|
239
|
+
[spxReadonly]="true"></spx-input>
|
|
240
|
+
}
|
|
241
|
+
</div>
|
|
242
|
+
}
|
|
243
|
+
</form>
|
|
244
|
+
</div>
|
|
245
245
|
</ion-content>`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: IonicModule }, { kind: "component", type: i4.IonContent, selector: "ion-content", inputs: ["color", "fixedSlotPlacement", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: i4.IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: i4.IonTitle, selector: "ion-title", inputs: ["color", "size"] }, { kind: "component", type: i4.IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.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"] }, { kind: "component", type: SpxProgressBarComponent, selector: "spx-progress-bar", inputs: ["spxPercentage", "spxTitle"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] }); }
|
|
246
246
|
}
|
|
247
247
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpxAppUpdateComponent, decorators: [{
|
|
@@ -258,35 +258,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
258
258
|
SpxProgressBarComponent,
|
|
259
259
|
TranslateModule
|
|
260
260
|
],
|
|
261
|
-
template: `<ion-header>
|
|
262
|
-
<ion-toolbar>
|
|
263
|
-
<ion-title>
|
|
264
|
-
{{ txtUpdate | translate | capitalize }}
|
|
265
|
-
</ion-title>
|
|
266
|
-
</ion-toolbar>
|
|
267
|
-
</ion-header>
|
|
268
|
-
|
|
269
|
-
<ion-content class="ion-content--upd" [fullscreen]="true">
|
|
270
|
-
<div class="ion-padding">
|
|
271
|
-
<spx-progress-bar [spxPercentage]="delayedPercentage" [spxTitle]="updateStatus | capitalize">
|
|
272
|
-
</spx-progress-bar>
|
|
273
|
-
<form [formGroup]="form" class="mt-3">
|
|
274
|
-
@if (ctrlAppStoreVersion.value && ctrlAppStoreVersion.value.value) {
|
|
275
|
-
<div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3">
|
|
276
|
-
<spx-input [formControl]="ctrlAppStoreVersion" [spxLabel]="txtAppStoreVersion | translate | capitalize"
|
|
277
|
-
[spxReadonly]="true"></spx-input>
|
|
278
|
-
<spx-input [formControl]="ctrlConfiguredChannel" [spxLabel]="txtChannel | translate | capitalize"
|
|
279
|
-
[spxReadonly]="true"></spx-input>
|
|
280
|
-
<spx-input [formControl]="ctrlVersionNumber" [spxLabel]="txtVersion | translate | capitalize"
|
|
281
|
-
[spxReadonly]="true"></spx-input>
|
|
282
|
-
@if (ctrlNextVersionNumber.value && ctrlNextVersionNumber.value.value) {
|
|
283
|
-
<spx-input [formControl]="ctrlNextVersionNumber" [spxLabel]="txtNextVersion | translate | capitalize"
|
|
284
|
-
[spxReadonly]="true"></spx-input>
|
|
285
|
-
}
|
|
286
|
-
</div>
|
|
287
|
-
}
|
|
288
|
-
</form>
|
|
289
|
-
</div>
|
|
261
|
+
template: `<ion-header>
|
|
262
|
+
<ion-toolbar>
|
|
263
|
+
<ion-title>
|
|
264
|
+
{{ txtUpdate | translate | capitalize }}
|
|
265
|
+
</ion-title>
|
|
266
|
+
</ion-toolbar>
|
|
267
|
+
</ion-header>
|
|
268
|
+
|
|
269
|
+
<ion-content class="ion-content--upd" [fullscreen]="true">
|
|
270
|
+
<div class="ion-padding">
|
|
271
|
+
<spx-progress-bar [spxPercentage]="delayedPercentage" [spxTitle]="updateStatus | capitalize">
|
|
272
|
+
</spx-progress-bar>
|
|
273
|
+
<form [formGroup]="form" class="mt-3">
|
|
274
|
+
@if (ctrlAppStoreVersion.value && ctrlAppStoreVersion.value.value) {
|
|
275
|
+
<div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3">
|
|
276
|
+
<spx-input [formControl]="ctrlAppStoreVersion" [spxLabel]="txtAppStoreVersion | translate | capitalize"
|
|
277
|
+
[spxReadonly]="true"></spx-input>
|
|
278
|
+
<spx-input [formControl]="ctrlConfiguredChannel" [spxLabel]="txtChannel | translate | capitalize"
|
|
279
|
+
[spxReadonly]="true"></spx-input>
|
|
280
|
+
<spx-input [formControl]="ctrlVersionNumber" [spxLabel]="txtVersion | translate | capitalize"
|
|
281
|
+
[spxReadonly]="true"></spx-input>
|
|
282
|
+
@if (ctrlNextVersionNumber.value && ctrlNextVersionNumber.value.value) {
|
|
283
|
+
<spx-input [formControl]="ctrlNextVersionNumber" [spxLabel]="txtNextVersion | translate | capitalize"
|
|
284
|
+
[spxReadonly]="true"></spx-input>
|
|
285
|
+
}
|
|
286
|
+
</div>
|
|
287
|
+
}
|
|
288
|
+
</form>
|
|
289
|
+
</div>
|
|
290
290
|
</ion-content>`,
|
|
291
291
|
}]
|
|
292
292
|
}], ctorParameters: () => [{ type: i1.Deploy }, { type: i0.ChangeDetectorRef }, { type: i0.ApplicationRef }, { type: i2.TranslateService }, { type: i3.FormBuilder }, { type: i4.NavController }], propDecorators: { spxHomeUrl: [{
|