@softpak/components 18.6.10 → 18.6.12
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-inputs/spx-input-box.component.mjs +30 -4
- package/esm2022/spx-inputs/spx-input.component.mjs +7 -3
- 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 +35 -6
- 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 +45 -45
- package/spx-inputs/spx-input-box.component.d.ts +4 -1
- package/spx-inputs/spx-input.component.d.ts +3 -1
|
@@ -4,11 +4,11 @@ import { SpxButtonComponent } from '@softpak/components/spx-button';
|
|
|
4
4
|
import * as i1 from '@fortawesome/angular-fontawesome';
|
|
5
5
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
6
6
|
import { faEdit, faSearch, faQuestion, faTimes, faXmark } from '@fortawesome/free-solid-svg-icons';
|
|
7
|
+
import { SpxSeverityEnum, valuePairToValue } from '@softpak/components/spx-helpers';
|
|
7
8
|
import { fromEvent } from 'rxjs';
|
|
8
9
|
import * as i1$1 from '@angular/forms';
|
|
9
10
|
import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
10
11
|
import { SpxSuggestionComponent } from '@softpak/components/spx-suggestion';
|
|
11
|
-
import { valuePairToValue, SpxSeverityEnum } from '@softpak/components/spx-helpers';
|
|
12
12
|
import { DateTime } from 'luxon';
|
|
13
13
|
import * as i1$2 from '@ionic/angular';
|
|
14
14
|
import { IonicModule } from '@ionic/angular';
|
|
@@ -50,6 +50,7 @@ class SpxInputBoxComponent {
|
|
|
50
50
|
this.faSearch = faSearch;
|
|
51
51
|
this.faQuestion = faQuestion;
|
|
52
52
|
this.faTimes = faTimes;
|
|
53
|
+
this.spxSeverityEnum = SpxSeverityEnum;
|
|
53
54
|
this.spxFocused = false;
|
|
54
55
|
this.spxReadonly = false;
|
|
55
56
|
this.spxShowClear = true;
|
|
@@ -72,7 +73,7 @@ class SpxInputBoxComponent {
|
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
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 }); }
|
|
75
|
-
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", 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"
|
|
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", spxAlertMessageSeverity: "spxAlertMessageSeverity", 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"
|
|
76
77
|
[class.rounded-none]="this.spxShowValidationMessages"
|
|
77
78
|
[class.rounded-t]="this.spxShowValidationMessages"
|
|
78
79
|
[class.outline-none]="this.spxFocused && !this.spxReadonly"
|
|
@@ -146,7 +147,18 @@ class SpxInputBoxComponent {
|
|
|
146
147
|
<div class="bg-red-600 rounded-b text-white p-3">
|
|
147
148
|
<ng-content select="[validation-messages]"></ng-content>
|
|
148
149
|
</div>
|
|
149
|
-
}
|
|
150
|
+
}
|
|
151
|
+
@else if(this.spxAlertMessageSeverity) {
|
|
152
|
+
<div [class.bg-red-700]="spxSeverityEnum.error"
|
|
153
|
+
[class.bg-green-700]="spxSeverityEnum.success"
|
|
154
|
+
[class.bg-blue-700]="spxSeverityEnum.info"
|
|
155
|
+
[class.bg-gray-400]="spxSeverityEnum.unknown"
|
|
156
|
+
[class.bg-amber-700]="spxSeverityEnum.warning"
|
|
157
|
+
class="rounded-b text-white p-3">
|
|
158
|
+
<ng-content select="[validation-messages]"></ng-content>
|
|
159
|
+
</div>
|
|
160
|
+
}
|
|
161
|
+
`, 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"] }] }); }
|
|
150
162
|
}
|
|
151
163
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpxInputBoxComponent, decorators: [{
|
|
152
164
|
type: Component,
|
|
@@ -231,7 +243,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
231
243
|
<div class="bg-red-600 rounded-b text-white p-3">
|
|
232
244
|
<ng-content select="[validation-messages]"></ng-content>
|
|
233
245
|
</div>
|
|
234
|
-
}
|
|
246
|
+
}
|
|
247
|
+
@else if(this.spxAlertMessageSeverity) {
|
|
248
|
+
<div [class.bg-red-700]="spxSeverityEnum.error"
|
|
249
|
+
[class.bg-green-700]="spxSeverityEnum.success"
|
|
250
|
+
[class.bg-blue-700]="spxSeverityEnum.info"
|
|
251
|
+
[class.bg-gray-400]="spxSeverityEnum.unknown"
|
|
252
|
+
[class.bg-amber-700]="spxSeverityEnum.warning"
|
|
253
|
+
class="rounded-b text-white p-3">
|
|
254
|
+
<ng-content select="[validation-messages]"></ng-content>
|
|
255
|
+
</div>
|
|
256
|
+
}
|
|
257
|
+
`,
|
|
235
258
|
}]
|
|
236
259
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { spxCompact: [{
|
|
237
260
|
type: Input
|
|
@@ -253,6 +276,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
253
276
|
type: Input
|
|
254
277
|
}], spxShowSearch: [{
|
|
255
278
|
type: Input
|
|
279
|
+
}], spxAlertMessageSeverity: [{
|
|
280
|
+
type: Input
|
|
256
281
|
}], spxShowValidationMessages: [{
|
|
257
282
|
type: Input
|
|
258
283
|
}], spxValue: [{
|
|
@@ -1477,7 +1502,7 @@ class SpxInputComponent {
|
|
|
1477
1502
|
this.onTouched = fn;
|
|
1478
1503
|
}
|
|
1479
1504
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpxInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1480
|
-
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", 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: [
|
|
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", spxAlertMessageSeverity: "spxAlertMessageSeverity", 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: [
|
|
1481
1506
|
{
|
|
1482
1507
|
provide: NG_VALUE_ACCESSOR,
|
|
1483
1508
|
useExisting: SpxInputComponent,
|
|
@@ -1485,6 +1510,7 @@ class SpxInputComponent {
|
|
|
1485
1510
|
}
|
|
1486
1511
|
], 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
|
|
1487
1512
|
[spxFocused]="this.spxFocused"
|
|
1513
|
+
[spxAlertMessageSeverity]="this.spxAlertMessageSeverity"
|
|
1488
1514
|
[spxLabel]="this.spxLabel"
|
|
1489
1515
|
[spxReadonly]="this.spxReadonly"
|
|
1490
1516
|
[spxRequired]="this.spxRequired"
|
|
@@ -1592,7 +1618,7 @@ class SpxInputComponent {
|
|
|
1592
1618
|
<div validation-messages>
|
|
1593
1619
|
<ng-content></ng-content>
|
|
1594
1620
|
</div>
|
|
1595
|
-
</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", "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"] }] }); }
|
|
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", "spxAlertMessageSeverity", "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"] }] }); }
|
|
1596
1622
|
}
|
|
1597
1623
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpxInputComponent, decorators: [{
|
|
1598
1624
|
type: Component,
|
|
@@ -1620,6 +1646,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1620
1646
|
],
|
|
1621
1647
|
template: `<spx-input-box
|
|
1622
1648
|
[spxFocused]="this.spxFocused"
|
|
1649
|
+
[spxAlertMessageSeverity]="this.spxAlertMessageSeverity"
|
|
1623
1650
|
[spxLabel]="this.spxLabel"
|
|
1624
1651
|
[spxReadonly]="this.spxReadonly"
|
|
1625
1652
|
[spxRequired]="this.spxRequired"
|
|
@@ -1765,6 +1792,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1765
1792
|
type: Input
|
|
1766
1793
|
}], spxShowSearch: [{
|
|
1767
1794
|
type: Input
|
|
1795
|
+
}], spxAlertMessageSeverity: [{
|
|
1796
|
+
type: Input
|
|
1768
1797
|
}], spxShowValidationMessages: [{
|
|
1769
1798
|
type: Input
|
|
1770
1799
|
}], spxStep: [{
|