@softpak/components 0.0.0-beta.16 → 0.0.0-beta.160

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.
Files changed (89) hide show
  1. package/esm2022/spx-alert/spx-alert.component.mjs +5 -2
  2. package/esm2022/spx-button/spx-button.component.mjs +12 -3
  3. package/esm2022/spx-change-details/public-api.mjs +2 -0
  4. package/esm2022/spx-change-details/softpak-components-spx-change-details.mjs +5 -0
  5. package/esm2022/spx-change-details/spx-change-details-value.interface.mjs +2 -0
  6. package/esm2022/spx-change-details/spx-change-details.component.mjs +126 -0
  7. package/esm2022/spx-channel-selection/src/spx-channel-selection.component.mjs +1 -1
  8. package/esm2022/spx-channel-selection/src/spx-company-selection.component.mjs +2 -2
  9. package/esm2022/spx-check-digit/spx-check-digit.component.mjs +12 -4
  10. package/esm2022/spx-form-section/spx-form-section.component.mjs +9 -9
  11. package/esm2022/spx-form-view/public-api.mjs +4 -0
  12. package/esm2022/spx-form-view/softpak-components-spx-form-view.mjs +5 -0
  13. package/esm2022/spx-form-view/spx-autocomplete-search.component.mjs +99 -0
  14. package/esm2022/spx-form-view/spx-form-field.interface.mjs +2 -0
  15. package/esm2022/spx-form-view/spx-form-section.interface.mjs +2 -0
  16. package/esm2022/spx-form-view/spx-form-view.component.mjs +196 -0
  17. package/esm2022/spx-inputs/spx-dropdown.component.mjs +94 -0
  18. package/esm2022/spx-inputs/spx-input-box.component.mjs +74 -47
  19. package/esm2022/spx-inputs/spx-input-date.component.mjs +1 -1
  20. package/esm2022/spx-inputs/spx-input-float.component.mjs +10 -5
  21. package/esm2022/spx-inputs/spx-input-number.component.mjs +10 -5
  22. package/esm2022/spx-inputs/spx-input-radio.component.mjs +93 -27
  23. package/esm2022/spx-inputs/spx-input-text.component.mjs +21 -32
  24. package/esm2022/spx-inputs/spx-input-type.enum.mjs +2 -1
  25. package/esm2022/spx-inputs/spx-input.component.mjs +48 -13
  26. package/esm2022/spx-navigation/spx-home-tile.component.mjs +29 -10
  27. package/esm2022/spx-navigation/spx-navigation-item.interface.mjs +1 -1
  28. package/esm2022/spx-navigation/spx-navigation.component.mjs +11 -5
  29. package/esm2022/spx-number-check/public-api.mjs +2 -0
  30. package/esm2022/spx-number-check/softpak-components-spx-number-check.mjs +5 -0
  31. package/esm2022/spx-number-check/spx-number-check.component.mjs +259 -0
  32. package/esm2022/spx-spinner/spx-spinner.component.mjs +5 -5
  33. package/esm2022/spx-suggestion/spx-suggestion.component.mjs +28 -10
  34. package/esm2022/spx-update/src/spx-update-info.component.mjs +1 -1
  35. package/fesm2022/softpak-components-spx-alert.mjs +4 -1
  36. package/fesm2022/softpak-components-spx-alert.mjs.map +1 -1
  37. package/fesm2022/softpak-components-spx-button.mjs +11 -2
  38. package/fesm2022/softpak-components-spx-button.mjs.map +1 -1
  39. package/fesm2022/softpak-components-spx-change-details.mjs +133 -0
  40. package/fesm2022/softpak-components-spx-change-details.mjs.map +1 -0
  41. package/fesm2022/softpak-components-spx-channel-selection.mjs +2 -2
  42. package/fesm2022/softpak-components-spx-channel-selection.mjs.map +1 -1
  43. package/fesm2022/softpak-components-spx-check-digit.mjs +11 -3
  44. package/fesm2022/softpak-components-spx-check-digit.mjs.map +1 -1
  45. package/fesm2022/softpak-components-spx-form-section.mjs +8 -8
  46. package/fesm2022/softpak-components-spx-form-section.mjs.map +1 -1
  47. package/fesm2022/softpak-components-spx-form-view.mjs +295 -0
  48. package/fesm2022/softpak-components-spx-form-view.mjs.map +1 -0
  49. package/fesm2022/softpak-components-spx-inputs.mjs +335 -119
  50. package/fesm2022/softpak-components-spx-inputs.mjs.map +1 -1
  51. package/fesm2022/softpak-components-spx-navigation.mjs +37 -12
  52. package/fesm2022/softpak-components-spx-navigation.mjs.map +1 -1
  53. package/fesm2022/softpak-components-spx-number-check.mjs +266 -0
  54. package/fesm2022/softpak-components-spx-number-check.mjs.map +1 -0
  55. package/fesm2022/softpak-components-spx-spinner.mjs +4 -4
  56. package/fesm2022/softpak-components-spx-spinner.mjs.map +1 -1
  57. package/fesm2022/softpak-components-spx-suggestion.mjs +27 -9
  58. package/fesm2022/softpak-components-spx-suggestion.mjs.map +1 -1
  59. package/fesm2022/softpak-components-spx-update.mjs +1 -1
  60. package/fesm2022/softpak-components-spx-update.mjs.map +1 -1
  61. package/package.json +34 -16
  62. package/spx-button/spx-button.component.d.ts +3 -1
  63. package/spx-change-details/index.d.ts +5 -0
  64. package/spx-change-details/public-api.d.ts +1 -0
  65. package/spx-change-details/spx-change-details-value.interface.d.ts +7 -0
  66. package/spx-change-details/spx-change-details.component.d.ts +42 -0
  67. package/spx-check-digit/spx-check-digit.component.d.ts +3 -1
  68. package/spx-form-view/index.d.ts +5 -0
  69. package/spx-form-view/public-api.d.ts +3 -0
  70. package/spx-form-view/spx-autocomplete-search.component.d.ts +36 -0
  71. package/spx-form-view/spx-form-field.interface.d.ts +16 -0
  72. package/spx-form-view/spx-form-section.interface.d.ts +9 -0
  73. package/spx-form-view/spx-form-view.component.d.ts +32 -0
  74. package/spx-inputs/spx-dropdown.component.d.ts +18 -0
  75. package/spx-inputs/spx-input-box.component.d.ts +14 -7
  76. package/spx-inputs/spx-input-float.component.d.ts +3 -2
  77. package/spx-inputs/spx-input-number.component.d.ts +3 -2
  78. package/spx-inputs/spx-input-radio.component.d.ts +13 -5
  79. package/spx-inputs/spx-input-text.component.d.ts +3 -2
  80. package/spx-inputs/spx-input-type.enum.d.ts +2 -1
  81. package/spx-inputs/spx-input.component.d.ts +11 -3
  82. package/spx-navigation/spx-home-tile.component.d.ts +5 -1
  83. package/spx-navigation/spx-navigation-item.interface.d.ts +1 -0
  84. package/spx-navigation/spx-navigation.component.d.ts +4 -1
  85. package/spx-number-check/index.d.ts +5 -0
  86. package/spx-number-check/public-api.d.ts +1 -0
  87. package/spx-number-check/spx-number-check.component.d.ts +48 -0
  88. package/spx-suggestion/spx-suggestion.component.d.ts +3 -1
  89. package/tailwind.css +1 -1
@@ -0,0 +1,295 @@
1
+ import { CommonModule, NgIf, NgFor, JsonPipe } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { EventEmitter, Component, Input, Output } from '@angular/core';
4
+ import { SpxFormSectionComponent } from '@softpak/components/spx-form-section';
5
+ import { SpxInputTypeEnum, SpxInputComponent } from '@softpak/components/spx-inputs';
6
+ import { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';
7
+ import * as i1 from '@angular/forms';
8
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
9
+ import { SpxValidationModule } from '@softpak/components/spx-validation';
10
+ import { SpxButtonComponent } from '@softpak/components/spx-button';
11
+ import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
12
+
13
+ const sectionAutocompleteSearch = 'autocompleteSearch';
14
+ const ctrlQuery = 'query';
15
+ const ctrlOptions = 'options';
16
+ class SpxAutocompleteSearchComponent {
17
+ get ctrlQuery() { return this.formGroup.get(ctrlQuery); }
18
+ get ctrlOptions() { return this.formGroup.get(ctrlOptions); }
19
+ constructor(formBuilder) {
20
+ this.formBuilder = formBuilder;
21
+ this.spxSuggestions = [];
22
+ this.spxSearch = new EventEmitter();
23
+ this.spxSubmit = new EventEmitter();
24
+ this.inputTypeAutocomplete = SpxInputTypeEnum.autocomplete;
25
+ this.inputTypeRadio = SpxInputTypeEnum.radio;
26
+ this.inputTypeText = SpxInputTypeEnum.text;
27
+ this.severitySuccess = SpxSeverityEnum.success;
28
+ this.sections = [
29
+ {
30
+ key: sectionAutocompleteSearch,
31
+ showTitle: () => false,
32
+ fields: [
33
+ {
34
+ key: ctrlQuery,
35
+ type: () => SpxInputTypeEnum.text,
36
+ label: () => this.txtQuery,
37
+ capitalize: () => true,
38
+ afterValueChange: (valuePair) => {
39
+ this.spxSearch.emit(valuePair);
40
+ },
41
+ },
42
+ {
43
+ key: ctrlOptions,
44
+ type: () => SpxInputTypeEnum.radio,
45
+ label: () => this.txtOptions,
46
+ },
47
+ ]
48
+ }
49
+ ];
50
+ this.createForm();
51
+ }
52
+ createForm() {
53
+ return this.formBuilder.group({
54
+ [ctrlQuery]: [null],
55
+ [ctrlOptions]: [null],
56
+ });
57
+ }
58
+ ngOnDestroy() {
59
+ if (this.inputChanges) {
60
+ this.inputChanges.unsubscribe();
61
+ }
62
+ }
63
+ getRawValidators(formControl) {
64
+ return formControl._rawValidators;
65
+ }
66
+ onSubmit() {
67
+ // this.submit.emit({
68
+ // category: this.ctrlCategory.value,
69
+ // containerType: this.ctrlContainerType.value,
70
+ // licensePlate: this.ctrlLicensePlate.value,
71
+ // tonsTested: this.ctrlTonsTested.value,
72
+ // })
73
+ }
74
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SpxAutocompleteSearchComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
75
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: SpxAutocompleteSearchComponent, isStandalone: true, selector: "spx-autocomplete-search", inputs: { spxSuggestions: "spxSuggestions", spxField: "spxField", txtOptions: "txtOptions", txtQuery: "txtQuery", txtSubmit: "txtSubmit" }, outputs: { spxSearch: "spxSearch", spxSubmit: "spxSubmit" }, ngImport: i0, template: "<div class=\"bg-black-100 fixed top-0 left-0 right-0 bottom-0\"></div>\n<form [formGroup]=\"formGroup\" class=\"max-w-lg mx-auto flex flex-col gap-3\" (ngSubmit)=\"onSubmit()\">\n <!-- <spx-form-view\n [spxFormGroup]=\"formGroup\"\n [spxSections]=\"sections\"\n [spxSuggestions]=\"spxSuggestions\">\n </spx-form-view> -->\n <spx-button\n [spxFullWidth]=\"true\"\n [spxSeverity]=\"severitySuccess\">\n Save\n </spx-button>\n</form>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: SpxButtonComponent, selector: "spx-button", inputs: ["spxDisabled", "spxClass", "spxClassObject", "spxForm", "spxFullHeight", "spxFullWidth", "spxSeverity", "spxSize", "spxTabIndex", "spxType"], outputs: ["spxClick"] }, { kind: "ngmodule", type: SpxValidationModule }] }); }
76
+ }
77
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SpxAutocompleteSearchComponent, decorators: [{
78
+ type: Component,
79
+ args: [{ selector: 'spx-autocomplete-search', standalone: true, imports: [
80
+ CommonModule,
81
+ FormsModule,
82
+ ReactiveFormsModule,
83
+ SpxButtonComponent,
84
+ SpxInputComponent,
85
+ SpxValidationModule,
86
+ ], template: "<div class=\"bg-black-100 fixed top-0 left-0 right-0 bottom-0\"></div>\n<form [formGroup]=\"formGroup\" class=\"max-w-lg mx-auto flex flex-col gap-3\" (ngSubmit)=\"onSubmit()\">\n <!-- <spx-form-view\n [spxFormGroup]=\"formGroup\"\n [spxSections]=\"sections\"\n [spxSuggestions]=\"spxSuggestions\">\n </spx-form-view> -->\n <spx-button\n [spxFullWidth]=\"true\"\n [spxSeverity]=\"severitySuccess\">\n Save\n </spx-button>\n</form>" }]
87
+ }], ctorParameters: () => [{ type: i1.FormBuilder }], propDecorators: { spxSuggestions: [{
88
+ type: Input
89
+ }], spxField: [{
90
+ type: Input
91
+ }], txtOptions: [{
92
+ type: Input
93
+ }], txtQuery: [{
94
+ type: Input
95
+ }], txtSubmit: [{
96
+ type: Input
97
+ }], spxSearch: [{
98
+ type: Output
99
+ }], spxSubmit: [{
100
+ type: Output
101
+ }] } });
102
+
103
+ class SpxFormViewComponent {
104
+ onBlur(field) {
105
+ return;
106
+ }
107
+ onAutocompleteSave(valuePair) {
108
+ this.autocompleteField = undefined;
109
+ }
110
+ onSearch(field) {
111
+ this.autocompleteField = field;
112
+ }
113
+ getRawValidators(formControl) {
114
+ // eslint-disable-next-line no-underscore-dangle
115
+ return formControl._rawValidators;
116
+ }
117
+ hasRequiredField(abstractControl) {
118
+ if (abstractControl.validator) {
119
+ const validator = abstractControl.validator({});
120
+ if (validator && validator['required']) {
121
+ return true;
122
+ }
123
+ }
124
+ if (abstractControl['controls']) {
125
+ for (const controlName in abstractControl['controls']) {
126
+ if (abstractControl['controls'][controlName]) {
127
+ if (this.hasRequiredField(abstractControl['controls'][controlName])) {
128
+ return true;
129
+ }
130
+ }
131
+ }
132
+ }
133
+ return false;
134
+ }
135
+ static initialFormValue(sections) {
136
+ const formObject = {};
137
+ sections.forEach(section => {
138
+ section.fields.forEach(field => {
139
+ formObject[field.key] = [field.defaultValue ? field.defaultValue() : null, field.validators ? [...field.validators()] : []];
140
+ });
141
+ });
142
+ return formObject;
143
+ }
144
+ static createForm(formBuilder, sections) {
145
+ return formBuilder.group(this.initialFormValue(sections));
146
+ }
147
+ constructor(formBuilder) {
148
+ this.formBuilder = formBuilder;
149
+ this.spxSearch = new EventEmitter();
150
+ this.typeAutocomplete = SpxInputTypeEnum.autocomplete;
151
+ this.typeFloat = SpxInputTypeEnum.float;
152
+ this.typeNumber = SpxInputTypeEnum.number;
153
+ this.typeRadio = SpxInputTypeEnum.radio;
154
+ this.typeText = SpxInputTypeEnum.text;
155
+ this.typeNumericKeyboard = SpxInputTypeEnum.textNumericKeyboard;
156
+ this.typeOverlay = SpxInputTypeEnum.overlay;
157
+ this.typeOverlayNumber = SpxInputTypeEnum.overlayNumber;
158
+ }
159
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SpxFormViewComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
160
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: SpxFormViewComponent, isStandalone: true, selector: "spx-form-view", inputs: { spxFormGroup: "spxFormGroup", spxSections: "spxSections", spxSuggestions: "spxSuggestions" }, outputs: { spxSearch: "spxSearch" }, ngImport: i0, template: `<spx-autocomplete-search
161
+ *ngIf="autocompleteField"
162
+ [spxField]="autocompleteField"
163
+ [spxSuggestions]="spxSuggestions"
164
+ [txtOptions]="'Options'"
165
+ [txtQuery]="'Query'"
166
+ [txtSubmit]="'Save'"
167
+ (spxSubmit)="onAutocompleteSave($event)">
168
+ </spx-autocomplete-search>
169
+ <spx-form-section
170
+ *ngFor="let spxSection of spxSections; let spxSectionIndex = index;"
171
+ [spxShowTitle]="!spxSection.showTitle || spxSection.showTitle()"
172
+ [spxIndex]="spxSectionIndex + 1"
173
+ [spxTitle]="spxSection.title ? spxSection.title() : undefined">
174
+ <ng-container *ngFor="let spxField of spxSection.fields; let spxFieldIndex = index;">
175
+ <ng-container *ngIf="spxField.show === undefined || spxField.show()">
176
+ <spx-input
177
+ *ngIf="spxField.type() === typeOverlay || spxField.type() === typeOverlayNumber || spxField.type() === typeFloat || spxField.type() === typeNumber || spxField.type() === typeText || spxField.type() === typeAutocomplete || spxField.type() === typeNumericKeyboard"
178
+ [formControl]="$any(this.spxFormGroup.get(spxField.key))"
179
+ [spxAutofocus]="spxField.autofocus ? spxField.autofocus() : false"
180
+ [spxCapitalize]="spxField.capitalize ? spxField.capitalize() : false"
181
+ [spxLabel]="(spxField.label ? spxField.label() : spxField.key) | capitalize"
182
+ [spxPattern]="spxField.type() === typeNumericKeyboard ? '\\d*' : undefined"
183
+ [spxReadonly]="spxField.readonly ? spxField.readonly() : false"
184
+ [spxRequired]="hasRequiredField(this.spxFormGroup.get(spxField.key)!)"
185
+ [spxShowSearch]="spxField.type() === typeAutocomplete"
186
+ [spxShowHelp]="false"
187
+ [spxShowValidationMessages]="this.spxFormGroup.get(spxField.key)! && this.spxFormGroup.get(spxField.key)!.errors && this.spxFormGroup.get(spxField.key)!.touched"
188
+ [spxStep]="spxField.step ? spxField.step() : undefined"
189
+ [spxType]="spxField.type()"
190
+ [spxValidators]="getRawValidators(this.spxFormGroup.get(spxField.key)!)"
191
+ [spxSuggestions]="spxField.suggestionsFixed ? spxField.suggestionsFixed() : this.spxSuggestions[spxField.key]"
192
+ (spxBlur)="onBlur(spxField)"
193
+ (spxSearch)="onSearch(spxField)">
194
+ </spx-input>
195
+
196
+ <spx-input
197
+ *ngIf="spxField.type() === typeRadio"
198
+ [formControl]="$any(this.spxFormGroup.get(spxField.key))"
199
+ [spxLabel]="(spxField.label ? spxField.label() : spxField.key) | capitalize"
200
+ [spxReadonly]="spxField.readonly ? spxField.readonly() : false"
201
+ [spxRequired]="hasRequiredField(this.spxFormGroup.get(spxField.key)!)"
202
+ [spxShowHelp]="false"
203
+ [spxShowValidationMessages]="this.spxFormGroup.get(spxField.key)! && this.spxFormGroup.get(spxField.key)!.errors && this.spxFormGroup.get(spxField.key)!.touched"
204
+ [spxSuggestions]="spxField.suggestionsFixed ? spxField.suggestionsFixed() : this.spxSuggestions[spxField.key]"
205
+ [spxType]="typeRadio"
206
+ [spxValidators]="getRawValidators(this.spxFormGroup.get(spxField.key)!)">
207
+ </spx-input>
208
+ </ng-container>
209
+ </ng-container>
210
+ </spx-form-section>`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: SpxAutocompleteSearchComponent, selector: "spx-autocomplete-search", inputs: ["spxSuggestions", "spxField", "txtOptions", "txtQuery", "txtSubmit"], outputs: ["spxSearch", "spxSubmit"] }, { kind: "pipe", type: SpxCapitalizePipe, name: "capitalize" }, { kind: "component", type: SpxFormSectionComponent, selector: "spx-form-section", inputs: ["spxIndex", "spxIndexSecondary", "spxTitle", "spxShowTitle"] }, { kind: "component", type: SpxInputComponent, selector: "spx-input", inputs: ["spxLabel", "spxMax", "spxMin", "spxName", "spxReadonly", "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"] }] }); }
211
+ }
212
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SpxFormViewComponent, decorators: [{
213
+ type: Component,
214
+ args: [{
215
+ selector: 'spx-form-view',
216
+ standalone: true,
217
+ imports: [
218
+ FormsModule,
219
+ ReactiveFormsModule,
220
+ JsonPipe,
221
+ NgIf,
222
+ NgFor,
223
+ SpxAutocompleteSearchComponent,
224
+ SpxCapitalizePipe,
225
+ SpxFormSectionComponent,
226
+ SpxInputComponent,
227
+ ],
228
+ template: `<spx-autocomplete-search
229
+ *ngIf="autocompleteField"
230
+ [spxField]="autocompleteField"
231
+ [spxSuggestions]="spxSuggestions"
232
+ [txtOptions]="'Options'"
233
+ [txtQuery]="'Query'"
234
+ [txtSubmit]="'Save'"
235
+ (spxSubmit)="onAutocompleteSave($event)">
236
+ </spx-autocomplete-search>
237
+ <spx-form-section
238
+ *ngFor="let spxSection of spxSections; let spxSectionIndex = index;"
239
+ [spxShowTitle]="!spxSection.showTitle || spxSection.showTitle()"
240
+ [spxIndex]="spxSectionIndex + 1"
241
+ [spxTitle]="spxSection.title ? spxSection.title() : undefined">
242
+ <ng-container *ngFor="let spxField of spxSection.fields; let spxFieldIndex = index;">
243
+ <ng-container *ngIf="spxField.show === undefined || spxField.show()">
244
+ <spx-input
245
+ *ngIf="spxField.type() === typeOverlay || spxField.type() === typeOverlayNumber || spxField.type() === typeFloat || spxField.type() === typeNumber || spxField.type() === typeText || spxField.type() === typeAutocomplete || spxField.type() === typeNumericKeyboard"
246
+ [formControl]="$any(this.spxFormGroup.get(spxField.key))"
247
+ [spxAutofocus]="spxField.autofocus ? spxField.autofocus() : false"
248
+ [spxCapitalize]="spxField.capitalize ? spxField.capitalize() : false"
249
+ [spxLabel]="(spxField.label ? spxField.label() : spxField.key) | capitalize"
250
+ [spxPattern]="spxField.type() === typeNumericKeyboard ? '\\d*' : undefined"
251
+ [spxReadonly]="spxField.readonly ? spxField.readonly() : false"
252
+ [spxRequired]="hasRequiredField(this.spxFormGroup.get(spxField.key)!)"
253
+ [spxShowSearch]="spxField.type() === typeAutocomplete"
254
+ [spxShowHelp]="false"
255
+ [spxShowValidationMessages]="this.spxFormGroup.get(spxField.key)! && this.spxFormGroup.get(spxField.key)!.errors && this.spxFormGroup.get(spxField.key)!.touched"
256
+ [spxStep]="spxField.step ? spxField.step() : undefined"
257
+ [spxType]="spxField.type()"
258
+ [spxValidators]="getRawValidators(this.spxFormGroup.get(spxField.key)!)"
259
+ [spxSuggestions]="spxField.suggestionsFixed ? spxField.suggestionsFixed() : this.spxSuggestions[spxField.key]"
260
+ (spxBlur)="onBlur(spxField)"
261
+ (spxSearch)="onSearch(spxField)">
262
+ </spx-input>
263
+
264
+ <spx-input
265
+ *ngIf="spxField.type() === typeRadio"
266
+ [formControl]="$any(this.spxFormGroup.get(spxField.key))"
267
+ [spxLabel]="(spxField.label ? spxField.label() : spxField.key) | capitalize"
268
+ [spxReadonly]="spxField.readonly ? spxField.readonly() : false"
269
+ [spxRequired]="hasRequiredField(this.spxFormGroup.get(spxField.key)!)"
270
+ [spxShowHelp]="false"
271
+ [spxShowValidationMessages]="this.spxFormGroup.get(spxField.key)! && this.spxFormGroup.get(spxField.key)!.errors && this.spxFormGroup.get(spxField.key)!.touched"
272
+ [spxSuggestions]="spxField.suggestionsFixed ? spxField.suggestionsFixed() : this.spxSuggestions[spxField.key]"
273
+ [spxType]="typeRadio"
274
+ [spxValidators]="getRawValidators(this.spxFormGroup.get(spxField.key)!)">
275
+ </spx-input>
276
+ </ng-container>
277
+ </ng-container>
278
+ </spx-form-section>`,
279
+ }]
280
+ }], ctorParameters: () => [{ type: i1.FormBuilder }], propDecorators: { spxFormGroup: [{
281
+ type: Input
282
+ }], spxSections: [{
283
+ type: Input
284
+ }], spxSuggestions: [{
285
+ type: Input
286
+ }], spxSearch: [{
287
+ type: Output
288
+ }] } });
289
+
290
+ /**
291
+ * Generated bundle index. Do not edit.
292
+ */
293
+
294
+ export { SpxFormViewComponent };
295
+ //# sourceMappingURL=softpak-components-spx-form-view.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"softpak-components-spx-form-view.mjs","sources":["../../../../projects/softpak/components/spx-form-view/spx-autocomplete-search.component.ts","../../../../projects/softpak/components/spx-form-view/spx-autocomplete-search.component.html","../../../../projects/softpak/components/spx-form-view/spx-form-view.component.ts","../../../../projects/softpak/components/spx-form-view/softpak-components-spx-form-view.ts"],"sourcesContent":["import { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { Subscription } from 'rxjs';\nimport { SpxValidationModule } from '@softpak/components/spx-validation';\nimport { CommonModule } from '@angular/common';\nimport { SpxInputComponent, SpxInputTypeEnum, SpxValuePair } from '@softpak/components/spx-inputs';\nimport { SpxButtonComponent } from '@softpak/components/spx-button';\nimport { SpxSeverityEnum } from '@softpak/components/spx-helpers';\nimport { SpxFormFieldI } from './spx-form-field.interface';\nimport { SpxFormSectionI } from './spx-form-section.interface';\n\nexport const sectionAutocompleteSearch = 'autocompleteSearch';\nexport const ctrlQuery = 'query';\nexport const ctrlOptions = 'options';\n\n@Component({\n selector: 'spx-autocomplete-search',\n templateUrl: './spx-autocomplete-search.component.html',\n standalone: true,\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n SpxButtonComponent,\n SpxInputComponent,\n SpxValidationModule,\n ]\n})\nexport class SpxAutocompleteSearchComponent {\n formGroup!: FormGroup;\n @Input() spxSuggestions: SpxValuePair<any>[] = [];\n @Input() spxField!: SpxFormFieldI;\n @Input() txtOptions!: string;\n @Input() txtQuery!: string;\n @Input() txtSubmit!: string;\n @Output() spxSearch: EventEmitter<SpxValuePair<any>> = new EventEmitter<SpxValuePair<any>>(); \n @Output() spxSubmit: EventEmitter<SpxValuePair<any>> = new EventEmitter<SpxValuePair<any>>();\n\n inputTypeAutocomplete = SpxInputTypeEnum.autocomplete;\n inputTypeRadio = SpxInputTypeEnum.radio;\n inputTypeText = SpxInputTypeEnum.text;\n severitySuccess = SpxSeverityEnum.success;\n \n sections: SpxFormSectionI[] = [\n {\n key: sectionAutocompleteSearch,\n showTitle: () => false,\n fields: [\n {\n key: ctrlQuery,\n type: () => SpxInputTypeEnum.text,\n label: () => this.txtQuery,\n capitalize: () => true,\n afterValueChange: (valuePair) => {\n this.spxSearch.emit(valuePair);\n },\n },\n {\n key: ctrlOptions,\n type: () => SpxInputTypeEnum.radio,\n label: () => this.txtOptions,\n },\n ]\n }\n ];\n\n get ctrlQuery(): FormControl { return this.formGroup.get(ctrlQuery) as FormControl; }\n get ctrlOptions(): FormControl { return this.formGroup.get(ctrlOptions) as FormControl; }\n\n private inputChanges?: Subscription;\n\n constructor(readonly formBuilder: FormBuilder) {\n this.createForm();\n }\n\n private createForm(): FormGroup {\n return this.formBuilder.group({\n [ctrlQuery]: [null],\n [ctrlOptions]: [null],\n });\n }\n\n ngOnDestroy(): void {\n if (this.inputChanges) {\n this.inputChanges.unsubscribe();\n }\n }\n\n getRawValidators(formControl: FormControl) {\n return (formControl as any)._rawValidators;\n }\n\n onSubmit(): void {\n // this.submit.emit({\n // category: this.ctrlCategory.value,\n // containerType: this.ctrlContainerType.value,\n // licensePlate: this.ctrlLicensePlate.value,\n // tonsTested: this.ctrlTonsTested.value,\n // })\n }\n}\n","<div class=\"bg-black-100 fixed top-0 left-0 right-0 bottom-0\"></div>\n<form [formGroup]=\"formGroup\" class=\"max-w-lg mx-auto flex flex-col gap-3\" (ngSubmit)=\"onSubmit()\">\n <!-- <spx-form-view\n [spxFormGroup]=\"formGroup\"\n [spxSections]=\"sections\"\n [spxSuggestions]=\"spxSuggestions\">\n </spx-form-view> -->\n <spx-button\n [spxFullWidth]=\"true\"\n [spxSeverity]=\"severitySuccess\">\n Save\n </spx-button>\n</form>","import { JsonPipe, NgFor, NgIf } from '@angular/common';\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { SpxFormSectionI } from './spx-form-section.interface';\nimport { SpxFormSectionComponent } from '@softpak/components/spx-form-section';\nimport { SpxInputComponent, SpxInputTypeEnum, SpxValuePair } from '@softpak/components/spx-inputs';\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\nimport { AbstractControl, FormBuilder, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { SpxFormFieldI } from './spx-form-field.interface';\nimport { SpxAutocompleteSearchComponent } from './spx-autocomplete-search.component';\n\n@Component({\n selector: 'spx-form-view',\n standalone: true,\n imports: [\n FormsModule,\n ReactiveFormsModule,\n JsonPipe,\n NgIf,\n NgFor,\n SpxAutocompleteSearchComponent,\n SpxCapitalizePipe,\n SpxFormSectionComponent,\n SpxInputComponent,\n ],\n template: `<spx-autocomplete-search\n *ngIf=\"autocompleteField\"\n [spxField]=\"autocompleteField\"\n [spxSuggestions]=\"spxSuggestions\"\n [txtOptions]=\"'Options'\"\n [txtQuery]=\"'Query'\"\n [txtSubmit]=\"'Save'\"\n (spxSubmit)=\"onAutocompleteSave($event)\">\n </spx-autocomplete-search>\n <spx-form-section\n *ngFor=\"let spxSection of spxSections; let spxSectionIndex = index;\"\n [spxShowTitle]=\"!spxSection.showTitle || spxSection.showTitle()\"\n [spxIndex]=\"spxSectionIndex + 1\"\n [spxTitle]=\"spxSection.title ? spxSection.title() : undefined\">\n <ng-container *ngFor=\"let spxField of spxSection.fields; let spxFieldIndex = index;\">\n <ng-container *ngIf=\"spxField.show === undefined || spxField.show()\">\n <spx-input\n *ngIf=\"spxField.type() === typeOverlay || spxField.type() === typeOverlayNumber || spxField.type() === typeFloat || spxField.type() === typeNumber || spxField.type() === typeText || spxField.type() === typeAutocomplete || spxField.type() === typeNumericKeyboard\"\n [formControl]=\"$any(this.spxFormGroup.get(spxField.key))\"\n [spxAutofocus]=\"spxField.autofocus ? spxField.autofocus() : false\"\n [spxCapitalize]=\"spxField.capitalize ? spxField.capitalize() : false\"\n [spxLabel]=\"(spxField.label ? spxField.label() : spxField.key) | capitalize\"\n [spxPattern]=\"spxField.type() === typeNumericKeyboard ? '\\\\d*' : undefined\"\n [spxReadonly]=\"spxField.readonly ? spxField.readonly() : false\"\n [spxRequired]=\"hasRequiredField(this.spxFormGroup.get(spxField.key)!)\"\n [spxShowSearch]=\"spxField.type() === typeAutocomplete\"\n [spxShowHelp]=\"false\"\n [spxShowValidationMessages]=\"this.spxFormGroup.get(spxField.key)! && this.spxFormGroup.get(spxField.key)!.errors && this.spxFormGroup.get(spxField.key)!.touched\"\n [spxStep]=\"spxField.step ? spxField.step() : undefined\"\n [spxType]=\"spxField.type()\"\n [spxValidators]=\"getRawValidators(this.spxFormGroup.get(spxField.key)!)\"\n [spxSuggestions]=\"spxField.suggestionsFixed ? spxField.suggestionsFixed() : this.spxSuggestions[spxField.key]\"\n (spxBlur)=\"onBlur(spxField)\"\n (spxSearch)=\"onSearch(spxField)\">\n </spx-input>\n\n <spx-input\n *ngIf=\"spxField.type() === typeRadio\"\n [formControl]=\"$any(this.spxFormGroup.get(spxField.key))\"\n [spxLabel]=\"(spxField.label ? spxField.label() : spxField.key) | capitalize\"\n [spxReadonly]=\"spxField.readonly ? spxField.readonly() : false\"\n [spxRequired]=\"hasRequiredField(this.spxFormGroup.get(spxField.key)!)\"\n [spxShowHelp]=\"false\"\n [spxShowValidationMessages]=\"this.spxFormGroup.get(spxField.key)! && this.spxFormGroup.get(spxField.key)!.errors && this.spxFormGroup.get(spxField.key)!.touched\"\n [spxSuggestions]=\"spxField.suggestionsFixed ? spxField.suggestionsFixed() : this.spxSuggestions[spxField.key]\"\n [spxType]=\"typeRadio\"\n [spxValidators]=\"getRawValidators(this.spxFormGroup.get(spxField.key)!)\">\n </spx-input>\n </ng-container>\n </ng-container>\n </spx-form-section>`,\n})\nexport class SpxFormViewComponent {\n @Input() spxFormGroup!: FormGroup;\n @Input() spxSections!: SpxFormSectionI[];\n @Input() spxSuggestions!: any;\n @Output() spxSearch: EventEmitter<SpxFormFieldI> = new EventEmitter<SpxFormFieldI>();\n autocompleteField?: SpxFormFieldI;\n\n typeAutocomplete = SpxInputTypeEnum.autocomplete;\n typeFloat = SpxInputTypeEnum.float;\n typeNumber = SpxInputTypeEnum.number;\n typeRadio = SpxInputTypeEnum.radio;\n typeText = SpxInputTypeEnum.text;\n typeNumericKeyboard = SpxInputTypeEnum.textNumericKeyboard;\n typeOverlay = SpxInputTypeEnum.overlay;\n typeOverlayNumber = SpxInputTypeEnum.overlayNumber;\n\n onBlur(field: SpxFormFieldI) {\n return;\n }\n\n onAutocompleteSave(valuePair: SpxValuePair<any>) {\n this.autocompleteField = undefined;\n }\n\n onSearch(field: SpxFormFieldI) {\n this.autocompleteField = field;\n }\n\n getRawValidators(formControl: AbstractControl) {\n // eslint-disable-next-line no-underscore-dangle\n return (formControl as any)._rawValidators;\n }\n\n hasRequiredField(abstractControl: AbstractControl): boolean {\n if (abstractControl.validator) {\n const validator = abstractControl.validator({} as AbstractControl);\n if (validator && validator['required']) {\n return true;\n }\n }\n if ((abstractControl as any)['controls']) {\n for (const controlName in (abstractControl as any)['controls']) {\n if ((abstractControl as any)['controls'][controlName]) {\n if (this.hasRequiredField((abstractControl as any)['controls'][controlName])) {\n return true;\n }\n }\n }\n }\n return false;\n }\n\n static initialFormValue(sections: SpxFormSectionI[]) {\n const formObject: any = {};\n sections.forEach(section => {\n section.fields.forEach(field => {\n formObject[field.key] = [field.defaultValue ? field.defaultValue() : null, field.validators ? [...field.validators()] : []];\n });\n });\n return formObject;\n }\n\n static createForm(formBuilder: FormBuilder, sections: SpxFormSectionI[]): FormGroup {\n return formBuilder.group(this.initialFormValue(sections));\n }\n\n constructor(readonly formBuilder: FormBuilder) {\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;AAWO,MAAM,yBAAyB,GAAG,oBAAoB,CAAC;AACvD,MAAM,SAAS,GAAG,OAAO,CAAC;AAC1B,MAAM,WAAW,GAAG,SAAS,CAAC;MAexB,8BAA8B,CAAA;AAsCzC,IAAA,IAAI,SAAS,GAAA,EAAkB,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAgB,CAAC,EAAE;AACrF,IAAA,IAAI,WAAW,GAAA,EAAkB,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,WAAW,CAAgB,CAAC,EAAE;AAIzF,IAAA,WAAA,CAAqB,WAAwB,EAAA;QAAxB,IAAW,CAAA,WAAA,GAAX,WAAW,CAAa;QAzCpC,IAAc,CAAA,cAAA,GAAwB,EAAE,CAAC;AAKxC,QAAA,IAAA,CAAA,SAAS,GAAoC,IAAI,YAAY,EAAqB,CAAC;AACnF,QAAA,IAAA,CAAA,SAAS,GAAoC,IAAI,YAAY,EAAqB,CAAC;AAE7F,QAAA,IAAA,CAAA,qBAAqB,GAAG,gBAAgB,CAAC,YAAY,CAAC;AACtD,QAAA,IAAA,CAAA,cAAc,GAAG,gBAAgB,CAAC,KAAK,CAAC;AACxC,QAAA,IAAA,CAAA,aAAa,GAAG,gBAAgB,CAAC,IAAI,CAAC;A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