@softpak/components 18.6.13 → 18.6.14
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/esm2022/spx-app-update/spx-app-update.component.mjs +2 -2
- package/esm2022/spx-check-digit/spx-check-digit.component.mjs +1 -1
- package/esm2022/spx-form-view/spx-autocomplete-search.component.mjs +1 -1
- package/esm2022/spx-form-view/spx-form-view.component.mjs +2 -2
- package/esm2022/spx-helpers/input-alert.interface.mjs +2 -0
- package/esm2022/spx-helpers/public-api.mjs +2 -1
- package/esm2022/spx-inputs/spx-input-box.component.mjs +21 -17
- package/esm2022/spx-inputs/spx-input.component.mjs +6 -6
- package/esm2022/spx-update/src/spx-update-info.component.mjs +1 -1
- package/fesm2022/softpak-components-spx-app-update.mjs +1 -1
- package/fesm2022/softpak-components-spx-app-update.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-check-digit.mjs +1 -1
- package/fesm2022/softpak-components-spx-check-digit.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-form-view.mjs +2 -2
- package/fesm2022/softpak-components-spx-form-view.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-inputs.mjs +25 -21
- package/fesm2022/softpak-components-spx-inputs.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-update.mjs +1 -1
- package/fesm2022/softpak-components-spx-update.mjs.map +1 -1
- package/package.json +57 -57
- package/spx-helpers/input-alert.interface.d.ts +5 -0
- package/spx-helpers/public-api.d.ts +1 -0
- package/spx-inputs/spx-input-box.component.d.ts +3 -2
- package/spx-inputs/spx-input.component.d.ts +3 -3
|
@@ -73,7 +73,7 @@ class SpxInputBoxComponent {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpxInputBoxComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
76
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: SpxInputBoxComponent, isStandalone: true, selector: "spx-input-box", inputs: { spxCompact: "spxCompact", spxFocused: "spxFocused", spxLabel: "spxLabel", spxReadonly: "spxReadonly", spxRequired: "spxRequired", spxShowClear: "spxShowClear", spxShowEdit: "spxShowEdit", spxShowHelp: "spxShowHelp", spxShowLabel: "spxShowLabel", spxShowSearch: "spxShowSearch",
|
|
76
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: SpxInputBoxComponent, isStandalone: true, selector: "spx-input-box", inputs: { spxCompact: "spxCompact", spxFocused: "spxFocused", spxLabel: "spxLabel", spxReadonly: "spxReadonly", spxRequired: "spxRequired", spxShowClear: "spxShowClear", spxShowEdit: "spxShowEdit", spxShowHelp: "spxShowHelp", spxShowLabel: "spxShowLabel", spxShowSearch: "spxShowSearch", spxAlert: "spxAlert", spxShowValidationMessages: "spxShowValidationMessages", spxValue: "spxValue" }, outputs: { spxClear: "spxClear", spxSearch: "spxSearch", spxFocus: "spxFocus", spxFocusOut: "spxFocusOut", spxEdit: "spxEdit", spxHelp: "spxHelp" }, host: { listeners: { "focusin": "handleFocusIn($event)", "focusout": "handleFocusOut($event)", "document:click": "handleWindowClick($event)" } }, ngImport: i0, template: `<div class="flex rounded w-full gap-3"
|
|
77
77
|
[class.rounded-none]="this.spxShowValidationMessages"
|
|
78
78
|
[class.rounded-t]="this.spxShowValidationMessages"
|
|
79
79
|
[class.outline-none]="this.spxFocused && !this.spxReadonly"
|
|
@@ -148,14 +148,16 @@ class SpxInputBoxComponent {
|
|
|
148
148
|
<ng-content select="[validation-messages]"></ng-content>
|
|
149
149
|
</div>
|
|
150
150
|
}
|
|
151
|
-
@else if(this.
|
|
152
|
-
<div [class.bg-red-700]="this.
|
|
153
|
-
[class.bg-green-700]="this.
|
|
154
|
-
[class.bg-blue-700]="this.
|
|
155
|
-
[class.bg-gray-400]="this.
|
|
156
|
-
[class.bg-amber-700]="this.
|
|
151
|
+
@else if(this.spxAlert) {
|
|
152
|
+
<div [class.bg-red-700]="this.spxAlert.severity === spxSeverityEnum.error"
|
|
153
|
+
[class.bg-green-700]="this.spxAlert.severity === spxSeverityEnum.success"
|
|
154
|
+
[class.bg-blue-700]="this.spxAlert.severity === spxSeverityEnum.info"
|
|
155
|
+
[class.bg-gray-400]="this.spxAlert.severity === spxSeverityEnum.unknown"
|
|
156
|
+
[class.bg-amber-700]="this.spxAlert.severity === spxSeverityEnum.warning"
|
|
157
157
|
class="rounded-b text-white p-3">
|
|
158
|
-
<
|
|
158
|
+
<div>
|
|
159
|
+
{{spxAlert.text}}
|
|
160
|
+
</div>
|
|
159
161
|
</div>
|
|
160
162
|
}
|
|
161
163
|
`, isInline: true, dependencies: [{ kind: "component", type: SpxButtonComponent, selector: "spx-button", inputs: ["spxDisabled", "spxClass", "spxClassObject", "spxForm", "spxFullHeight", "spxFullWidth", "spxSeverity", "spxSize", "spxTabIndex", "spxType"], outputs: ["spxClick"] }, { 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"] }] }); }
|
|
@@ -244,14 +246,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
244
246
|
<ng-content select="[validation-messages]"></ng-content>
|
|
245
247
|
</div>
|
|
246
248
|
}
|
|
247
|
-
@else if(this.
|
|
248
|
-
<div [class.bg-red-700]="this.
|
|
249
|
-
[class.bg-green-700]="this.
|
|
250
|
-
[class.bg-blue-700]="this.
|
|
251
|
-
[class.bg-gray-400]="this.
|
|
252
|
-
[class.bg-amber-700]="this.
|
|
249
|
+
@else if(this.spxAlert) {
|
|
250
|
+
<div [class.bg-red-700]="this.spxAlert.severity === spxSeverityEnum.error"
|
|
251
|
+
[class.bg-green-700]="this.spxAlert.severity === spxSeverityEnum.success"
|
|
252
|
+
[class.bg-blue-700]="this.spxAlert.severity === spxSeverityEnum.info"
|
|
253
|
+
[class.bg-gray-400]="this.spxAlert.severity === spxSeverityEnum.unknown"
|
|
254
|
+
[class.bg-amber-700]="this.spxAlert.severity === spxSeverityEnum.warning"
|
|
253
255
|
class="rounded-b text-white p-3">
|
|
254
|
-
<
|
|
256
|
+
<div>
|
|
257
|
+
{{spxAlert.text}}
|
|
258
|
+
</div>
|
|
255
259
|
</div>
|
|
256
260
|
}
|
|
257
261
|
`,
|
|
@@ -276,7 +280,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
276
280
|
type: Input
|
|
277
281
|
}], spxShowSearch: [{
|
|
278
282
|
type: Input
|
|
279
|
-
}],
|
|
283
|
+
}], spxAlert: [{
|
|
280
284
|
type: Input
|
|
281
285
|
}], spxShowValidationMessages: [{
|
|
282
286
|
type: Input
|
|
@@ -1502,7 +1506,7 @@ class SpxInputComponent {
|
|
|
1502
1506
|
this.onTouched = fn;
|
|
1503
1507
|
}
|
|
1504
1508
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpxInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1505
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: SpxInputComponent, isStandalone: true, selector: "spx-input", inputs: { spxLabel: "spxLabel", spxMax: "spxMax", spxMin: "spxMin", spxName: "spxName", spxReadonly: "spxReadonly", spxAutocomplete: "spxAutocomplete", spxAutofocus: "spxAutofocus", spxInputMode: "spxInputMode", spxPattern: "spxPattern", spxRequired: "spxRequired", spxSelectMonth: "spxSelectMonth", spxSelectDay: "spxSelectDay", spxShowEdit: "spxShowEdit", spxShowHelp: "spxShowHelp", spxShowLabel: "spxShowLabel", spxCompact: "spxCompact", spxShowClear: "spxShowClear", spxShowSearch: "spxShowSearch",
|
|
1509
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: SpxInputComponent, isStandalone: true, selector: "spx-input", inputs: { spxLabel: "spxLabel", spxMax: "spxMax", spxMin: "spxMin", spxName: "spxName", spxReadonly: "spxReadonly", spxAutocomplete: "spxAutocomplete", spxAutofocus: "spxAutofocus", spxInputMode: "spxInputMode", spxPattern: "spxPattern", spxRequired: "spxRequired", spxSelectMonth: "spxSelectMonth", spxSelectDay: "spxSelectDay", spxShowEdit: "spxShowEdit", spxShowHelp: "spxShowHelp", spxShowLabel: "spxShowLabel", spxCompact: "spxCompact", spxShowClear: "spxShowClear", spxShowSearch: "spxShowSearch", spxAlert: "spxAlert", spxShowValidationMessages: "spxShowValidationMessages", spxStep: "spxStep", spxSuggestions: "spxSuggestions", spxType: "spxType", spxValidators: "spxValidators", value: "value", spxCapitalize: "spxCapitalize", spxFocused: "spxFocused" }, outputs: { spxBlur: "spxBlur", spxClear: "spxClear", spxChange: "spxChange", spxFocus: "spxFocus", spxEdit: "spxEdit", spxHelp: "spxHelp", spxSearch: "spxSearch" }, host: { listeners: { "spxChange": "handleChangeEvent($event)", "focusout": "_handleBlurEvent()" } }, providers: [
|
|
1506
1510
|
{
|
|
1507
1511
|
provide: NG_VALUE_ACCESSOR,
|
|
1508
1512
|
useExisting: SpxInputComponent,
|
|
@@ -1510,7 +1514,7 @@ class SpxInputComponent {
|
|
|
1510
1514
|
}
|
|
1511
1515
|
], viewQueries: [{ propertyName: "floatInput", first: true, predicate: SpxInputFloatComponent, descendants: true }, { propertyName: "numberInput", first: true, predicate: SpxInputNumberComponent, descendants: true }, { propertyName: "textInput", first: true, predicate: SpxInputTextComponent, descendants: true }, { propertyName: "timeInput", first: true, predicate: SpxInputTimeComponent, descendants: true }, { propertyName: "radioInput", first: true, predicate: SpxInputRadioComponent, descendants: true }], ngImport: i0, template: `<spx-input-box
|
|
1512
1516
|
[spxFocused]="this.spxFocused"
|
|
1513
|
-
[
|
|
1517
|
+
[spxAlert]="this.spxAlert"
|
|
1514
1518
|
[spxLabel]="this.spxLabel"
|
|
1515
1519
|
[spxReadonly]="this.spxReadonly"
|
|
1516
1520
|
[spxRequired]="this.spxRequired"
|
|
@@ -1618,7 +1622,7 @@ class SpxInputComponent {
|
|
|
1618
1622
|
<div validation-messages>
|
|
1619
1623
|
<ng-content></ng-content>
|
|
1620
1624
|
</div>
|
|
1621
|
-
</spx-input-box>`, isInline: true, dependencies: [{ kind: "component", type: SpxInputBoxComponent, selector: "spx-input-box", inputs: ["spxCompact", "spxFocused", "spxLabel", "spxReadonly", "spxRequired", "spxShowClear", "spxShowEdit", "spxShowHelp", "spxShowLabel", "spxShowSearch", "
|
|
1625
|
+
</spx-input-box>`, isInline: true, dependencies: [{ kind: "component", type: SpxInputBoxComponent, selector: "spx-input-box", inputs: ["spxCompact", "spxFocused", "spxLabel", "spxReadonly", "spxRequired", "spxShowClear", "spxShowEdit", "spxShowHelp", "spxShowLabel", "spxShowSearch", "spxAlert", "spxShowValidationMessages", "spxValue"], outputs: ["spxClear", "spxSearch", "spxFocus", "spxFocusOut", "spxEdit", "spxHelp"] }, { kind: "component", type: SpxInputDateComponent, selector: "spx-input-date", inputs: ["spxMax", "spxMin", "spxReadonly", "spxValidators", "value", "spxFocused", "spxSelectDay", "spxSelectMonth", "spxSuggestions"], outputs: ["valueChange", "spxChange", "spxFocus"] }, { kind: "component", type: SpxInputFloatComponent, selector: "spx-input-float", inputs: ["spxName", "spxAutofocus", "spxReadonly", "spxValidators", "spxFocused", "spxStep", "value", "spxWasInternalUpdate", "tick"], outputs: ["spxChange", "spxFocus"] }, { kind: "component", type: SpxInputNumberComponent, selector: "spx-input-number", inputs: ["spxName", "spxAutofocus", "spxInputMode", "spxReadonly", "spxValidators", "spxFocused", "spxStep", "value"], outputs: ["spxChange", "spxFocus"] }, { kind: "component", type: SpxInputRadioComponent, selector: "spx-input-radio", inputs: ["spxName", "spxValidators", "spxFocused", "spxShowLabel", "spxReadonly", "spxSuggestions", "value"], outputs: ["spxChange", "spxFocus"] }, { kind: "component", type: SpxInputTextComponent, selector: "spx-input-text", inputs: ["spxName", "spxAutofocus", "spxAutocomplete", "spxInputMode", "spxPattern", "spxSuggestions", "spxReadonly", "spxValidators", "spxCapitalize", "spxFocused", "spxType", "value", "spxWasInternalUpdate"], outputs: ["spxBlurFromChild", "spxChange", "spxFocus"] }, { kind: "component", type: SpxInputTimeComponent, selector: "spx-input-time", inputs: ["spxName", "spxAutofocus", "spxInputMode", "spxPattern", "spxSuggestions", "spxReadonly", "spxValidators", "spxCapitalize", "spxFocused", "spxType", "value", "spxWasInternalUpdate"], outputs: ["spxBlurFromChild", "spxChange", "spxFocus"] }] }); }
|
|
1622
1626
|
}
|
|
1623
1627
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpxInputComponent, decorators: [{
|
|
1624
1628
|
type: Component,
|
|
@@ -1646,7 +1650,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1646
1650
|
],
|
|
1647
1651
|
template: `<spx-input-box
|
|
1648
1652
|
[spxFocused]="this.spxFocused"
|
|
1649
|
-
[
|
|
1653
|
+
[spxAlert]="this.spxAlert"
|
|
1650
1654
|
[spxLabel]="this.spxLabel"
|
|
1651
1655
|
[spxReadonly]="this.spxReadonly"
|
|
1652
1656
|
[spxRequired]="this.spxRequired"
|
|
@@ -1792,7 +1796,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1792
1796
|
type: Input
|
|
1793
1797
|
}], spxShowSearch: [{
|
|
1794
1798
|
type: Input
|
|
1795
|
-
}],
|
|
1799
|
+
}], spxAlert: [{
|
|
1796
1800
|
type: Input
|
|
1797
1801
|
}], spxShowValidationMessages: [{
|
|
1798
1802
|
type: Input
|