@softpak/components 0.1.8-beta.1 → 0.1.8-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/spx-change-details/spx-change-details.component.mjs +92 -85
- package/esm2022/spx-channel-selection/src/spx-welcome.component.mjs +42 -42
- package/esm2022/spx-form-view/public-api.mjs +4 -1
- package/esm2022/spx-form-view/spx-form-button-type.enum.mjs +6 -0
- package/esm2022/spx-form-view/spx-form-button.interface.mjs +2 -0
- package/esm2022/spx-form-view/spx-form-view.component.mjs +29 -7
- package/esm2022/spx-form-view/spx-form.interface.mjs +2 -0
- package/esm2022/spx-pagination/public-api.mjs +2 -0
- package/esm2022/spx-pagination/softpak-components-spx-pagination.mjs +5 -0
- package/esm2022/spx-pagination/spx-pagination.component.mjs +44 -0
- package/esm2022/spx-stock-info/public-api.mjs +2 -1
- package/esm2022/spx-stock-info/spx-stock-info.component.mjs +111 -104
- package/fesm2022/softpak-components-spx-change-details.mjs +91 -84
- package/fesm2022/softpak-components-spx-change-details.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-channel-selection.mjs +41 -41
- package/fesm2022/softpak-components-spx-channel-selection.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-form-view.mjs +35 -7
- package/fesm2022/softpak-components-spx-form-view.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-pagination.mjs +51 -0
- package/fesm2022/softpak-components-spx-pagination.mjs.map +1 -0
- package/fesm2022/softpak-components-spx-stock-info.mjs +110 -103
- package/fesm2022/softpak-components-spx-stock-info.mjs.map +1 -1
- package/package.json +31 -25
- package/spx-change-details/spx-change-details.component.d.ts +12 -16
- package/spx-channel-selection/src/spx-welcome.component.d.ts +6 -7
- package/spx-form-view/public-api.d.ts +3 -0
- package/spx-form-view/spx-form-button-type.enum.d.ts +4 -0
- package/spx-form-view/spx-form-button.interface.d.ts +8 -0
- package/spx-form-view/spx-form-view.component.d.ts +3 -2
- package/spx-form-view/spx-form.interface.d.ts +6 -0
- package/spx-pagination/index.d.ts +5 -0
- package/spx-pagination/public-api.d.ts +1 -0
- package/spx-pagination/spx-pagination.component.d.ts +16 -0
- package/spx-stock-info/public-api.d.ts +1 -0
- package/spx-stock-info/spx-stock-info.component.d.ts +5 -9
- package/tailwind.css +1 -1
|
@@ -5,7 +5,7 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
|
5
5
|
import { spxValidatorRequired, SpxValidateControlComponent } from '@softpak/components/spx-validation';
|
|
6
6
|
import { CommonModule } from '@angular/common';
|
|
7
7
|
import { SpxInputTypeEnum, SpxInputComponent } from '@softpak/components/spx-inputs';
|
|
8
|
-
import { SpxFormViewComponent } from '@softpak/components/spx-form-view';
|
|
8
|
+
import { SpxFormButtonTypeEnum, SpxFormViewComponent } from '@softpak/components/spx-form-view';
|
|
9
9
|
import { SpxButtonComponent } from '@softpak/components/spx-button';
|
|
10
10
|
import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
|
|
11
11
|
|
|
@@ -37,108 +37,113 @@ class SpxStockInfoComponent {
|
|
|
37
37
|
this.spxSearchContainerStatus = new EventEmitter();
|
|
38
38
|
this.spxSearchCustomer = new EventEmitter();
|
|
39
39
|
this.submit = new EventEmitter();
|
|
40
|
-
this.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
40
|
+
this.form = {
|
|
41
|
+
buttons: [
|
|
42
|
+
{
|
|
43
|
+
severity: SpxSeverityEnum.success,
|
|
44
|
+
type: SpxFormButtonTypeEnum.submit,
|
|
45
|
+
label: () => this.textSearch,
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
sections: [
|
|
49
|
+
{
|
|
50
|
+
key: sectionLocation,
|
|
51
|
+
show: () => true,
|
|
52
|
+
title: () => this.textLocation,
|
|
53
|
+
fields: [
|
|
54
|
+
{
|
|
55
|
+
key: ctrlDepot,
|
|
56
|
+
label: () => this.textDepot,
|
|
57
|
+
type: () => SpxInputTypeEnum.text,
|
|
58
|
+
defaultValue: () => this.depot,
|
|
59
|
+
validators: () => [spxValidatorRequired()],
|
|
60
|
+
readonly: () => true,
|
|
61
|
+
suggestions: () => false,
|
|
62
|
+
afterValueChange: undefined,
|
|
63
|
+
show: () => true,
|
|
64
|
+
capitalize: () => true,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
key: ctrlLocation,
|
|
68
|
+
label: () => this.textLocation,
|
|
69
|
+
type: () => SpxInputTypeEnum.text,
|
|
70
|
+
defaultValue: () => null,
|
|
71
|
+
validators: () => [],
|
|
72
|
+
readonly: () => false,
|
|
73
|
+
suggestions: () => false,
|
|
74
|
+
afterValueChange: undefined,
|
|
75
|
+
show: () => true,
|
|
76
|
+
capitalize: () => true,
|
|
77
|
+
},
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
key: sectionCustomer,
|
|
82
|
+
show: () => true,
|
|
83
|
+
title: () => this.textCustomer,
|
|
84
|
+
fields: [
|
|
85
|
+
{
|
|
86
|
+
key: ctrlCustomer,
|
|
87
|
+
label: () => this.textCustomer,
|
|
88
|
+
type: () => SpxInputTypeEnum.autocomplete,
|
|
89
|
+
defaultValue: () => null,
|
|
90
|
+
validators: () => [],
|
|
91
|
+
readonly: () => false,
|
|
92
|
+
suggestions: () => true,
|
|
93
|
+
afterValueChange: undefined,
|
|
94
|
+
show: () => true,
|
|
95
|
+
capitalize: () => true,
|
|
96
|
+
},
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
key: sectionContainerInfo,
|
|
101
|
+
show: () => true,
|
|
102
|
+
title: () => this.textContainerInfo,
|
|
103
|
+
fields: [
|
|
104
|
+
{
|
|
105
|
+
key: ctrlCategory,
|
|
106
|
+
label: () => this.textCategory,
|
|
107
|
+
type: () => SpxInputTypeEnum.autocomplete,
|
|
108
|
+
defaultValue: () => null,
|
|
109
|
+
validators: () => [],
|
|
110
|
+
readonly: () => false,
|
|
111
|
+
suggestions: () => true,
|
|
112
|
+
afterValueChange: undefined,
|
|
113
|
+
show: () => true,
|
|
114
|
+
capitalize: () => true,
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
key: ctrlContainerStatus,
|
|
118
|
+
label: () => this.textContainerStatus,
|
|
119
|
+
type: () => SpxInputTypeEnum.autocomplete,
|
|
120
|
+
defaultValue: () => null,
|
|
121
|
+
validators: () => [],
|
|
122
|
+
readonly: () => false,
|
|
123
|
+
suggestions: () => true,
|
|
124
|
+
afterValueChange: undefined,
|
|
125
|
+
show: () => true,
|
|
126
|
+
capitalize: () => true,
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
key: ctrlContainerType,
|
|
130
|
+
label: () => this.textContainerType,
|
|
131
|
+
type: () => SpxInputTypeEnum.autocomplete,
|
|
132
|
+
defaultValue: () => null,
|
|
133
|
+
validators: () => [],
|
|
134
|
+
readonly: () => false,
|
|
135
|
+
suggestions: () => true,
|
|
136
|
+
afterValueChange: undefined,
|
|
137
|
+
show: () => true,
|
|
138
|
+
capitalize: () => true,
|
|
139
|
+
},
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
]
|
|
143
|
+
};
|
|
139
144
|
}
|
|
140
145
|
createForm() {
|
|
141
|
-
return SpxFormViewComponent.createForm(this.formBuilder, this.sections);
|
|
146
|
+
return SpxFormViewComponent.createForm(this.formBuilder, this.form.sections);
|
|
142
147
|
}
|
|
143
148
|
getRawValidators(formControl) {
|
|
144
149
|
return formControl._rawValidators;
|
|
@@ -182,7 +187,7 @@ class SpxStockInfoComponent {
|
|
|
182
187
|
});
|
|
183
188
|
}
|
|
184
189
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: SpxStockInfoComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
185
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", type: SpxStockInfoComponent, isStandalone: true, selector: "spx-stock-info", inputs: { formGroup: "formGroup", depot: "depot", suggestions: "suggestions", textLocation: "textLocation", textDepot: "textDepot", textCustomer: "textCustomer", textContainerInfo: "textContainerInfo", textCategory: "textCategory", textContainerStatus: "textContainerStatus", textContainerType: "textContainerType" }, outputs: { spxBlurCategory: "spxBlurCategory", spxBlurContainerStatus: "spxBlurContainerStatus", spxBlurContainerType: "spxBlurContainerType", spxBlurCustomer: "spxBlurCustomer", spxSearchCategory: "spxSearchCategory", spxSearchContainerType: "spxSearchContainerType", spxSearchContainerStatus: "spxSearchContainerStatus", spxSearchCustomer: "spxSearchCustomer", submit: "submit" }, ngImport: i0, template: "<form [formGroup]=\"formGroup\" class=\"max-w-lg mx-auto flex flex-col gap-3\" (ngSubmit)=\"onSubmit()\">\n <spx-form-view\n [spxFormGroup]=\"formGroup\"\n [
|
|
190
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", type: SpxStockInfoComponent, isStandalone: true, selector: "spx-stock-info", inputs: { formGroup: "formGroup", depot: "depot", suggestions: "suggestions", textLocation: "textLocation", textDepot: "textDepot", textCustomer: "textCustomer", textContainerInfo: "textContainerInfo", textCategory: "textCategory", textContainerStatus: "textContainerStatus", textContainerType: "textContainerType", textSearch: "textSearch" }, outputs: { spxBlurCategory: "spxBlurCategory", spxBlurContainerStatus: "spxBlurContainerStatus", spxBlurContainerType: "spxBlurContainerType", spxBlurCustomer: "spxBlurCustomer", spxSearchCategory: "spxSearchCategory", spxSearchContainerType: "spxSearchContainerType", spxSearchContainerStatus: "spxSearchContainerStatus", spxSearchCustomer: "spxSearchCustomer", submit: "submit" }, ngImport: i0, template: "<form [formGroup]=\"formGroup\" class=\"max-w-lg mx-auto flex flex-col gap-3\" (ngSubmit)=\"onSubmit()\">\n <spx-form-view\n [spxFormGroup]=\"formGroup\"\n [spxForm]=\"form\"\n [spxSuggestions]=\"suggestions\"\n (spxBlur)=\"onBlur($event)\"\n (spxSearch)=\"onSearch($event)\">\n </spx-form-view>\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: SpxFormViewComponent, selector: "spx-form-view", inputs: ["spxFormGroup", "spxForm", "spxSuggestions"], outputs: ["spxBlur", "spxClick", "spxSearch"] }] }); }
|
|
186
191
|
}
|
|
187
192
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: SpxStockInfoComponent, decorators: [{
|
|
188
193
|
type: Component,
|
|
@@ -194,7 +199,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
194
199
|
SpxFormViewComponent,
|
|
195
200
|
SpxInputComponent,
|
|
196
201
|
SpxValidateControlComponent,
|
|
197
|
-
], template: "<form [formGroup]=\"formGroup\" class=\"max-w-lg mx-auto flex flex-col gap-3\" (ngSubmit)=\"onSubmit()\">\n <spx-form-view\n [spxFormGroup]=\"formGroup\"\n [
|
|
202
|
+
], template: "<form [formGroup]=\"formGroup\" class=\"max-w-lg mx-auto flex flex-col gap-3\" (ngSubmit)=\"onSubmit()\">\n <spx-form-view\n [spxFormGroup]=\"formGroup\"\n [spxForm]=\"form\"\n [spxSuggestions]=\"suggestions\"\n (spxBlur)=\"onBlur($event)\"\n (spxSearch)=\"onSearch($event)\">\n </spx-form-view>\n</form>" }]
|
|
198
203
|
}], ctorParameters: () => [{ type: i1.FormBuilder }], propDecorators: { formGroup: [{
|
|
199
204
|
type: Input
|
|
200
205
|
}], depot: [{
|
|
@@ -215,6 +220,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
215
220
|
type: Input
|
|
216
221
|
}], textContainerType: [{
|
|
217
222
|
type: Input
|
|
223
|
+
}], textSearch: [{
|
|
224
|
+
type: Input
|
|
218
225
|
}], spxBlurCategory: [{
|
|
219
226
|
type: Output
|
|
220
227
|
}], spxBlurContainerStatus: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softpak-components-spx-stock-info.mjs","sources":["../../../../projects/softpak/components/spx-stock-info/spx-stock-info.component.ts","../../../../projects/softpak/components/spx-stock-info/spx-stock-info.component.html","../../../../projects/softpak/components/spx-stock-info/softpak-components-spx-stock-info.ts"],"sourcesContent":["import { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { spxValidatorRequired, SpxValidateControlComponent } from '@softpak/components/spx-validation';\nimport { CommonModule } from '@angular/common';\nimport { SpxInputComponent, SpxInputTypeEnum, SpxValuePair } from '@softpak/components/spx-inputs';\nimport { SpxFormFieldI, SpxFormSectionI, SpxFormViewComponent } from '@softpak/components/spx-form-view';\nimport { SpxButtonComponent } from '@softpak/components/spx-button';\nimport { SpxSeverityEnum } from '@softpak/components/spx-helpers';\nimport { SpxStockInfoValueI } from './spx-stock-info-value.interface';\n\nexport const ctrlCategory = 'ctrlCategory';\nexport const ctrlContainerStatus = 'ctrlContainerStatus';\nexport const ctrlContainerType = 'ctrlContainerType';\nexport const ctrlCustomer = 'ctrlCustomer';\nexport const ctrlDepot = 'ctrlDepot';\nexport const ctrlLocation = 'ctrlLocation';\nexport const sectionContainerInfo = 'sectionContainerInfo';\nexport const sectionCustomer = 'sectionCustomer';\nexport const sectionLocation = 'sectionLocation';\n\n@Component({\n selector: 'spx-stock-info',\n templateUrl: './spx-stock-info.component.html',\n standalone: true,\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n SpxButtonComponent,\n SpxFormViewComponent,\n SpxInputComponent,\n SpxValidateControlComponent,\n ]\n})\nexport class SpxStockInfoComponent {\n @Input() formGroup!: FormGroup;\n @Input() depot!: string;\n @Input() suggestions: any = {};\n @Input() textLocation!: string;\n @Input() textDepot!: string;\n @Input() textCustomer!: string;\n @Input() textContainerInfo!: string;\n @Input() textCategory!: string;\n @Input() textContainerStatus!: string;\n @Input() textContainerType!: string;\n @Output() spxBlurCategory: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxBlurContainerStatus: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxBlurContainerType: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxBlurCustomer: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxSearchCategory: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxSearchContainerType: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxSearchContainerStatus: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxSearchCustomer: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() submit: EventEmitter<SpxStockInfoValueI> = new EventEmitter<SpxStockInfoValueI>();\n\n inputTypeAutocomplete = SpxInputTypeEnum.autocomplete;\n inputTypeRadio = SpxInputTypeEnum.radio;\n inputTypeText = SpxInputTypeEnum.text;\n severitySuccess = SpxSeverityEnum.success;\n\n sections: SpxFormSectionI[] = [\n {\n key: sectionLocation,\n show: () => true,\n title: () => this.textLocation,\n fields: [\n {\n key: ctrlDepot,\n label: () => this.textDepot,\n type: () => SpxInputTypeEnum.text,\n defaultValue: () => this.depot,\n validators: () => [spxValidatorRequired()],\n readonly: () => true,\n suggestions: () => false,\n afterValueChange: undefined,\n show: () => true,\n capitalize: () => true,\n },\n {\n key: ctrlLocation,\n label: () => this.textLocation,\n type: () => SpxInputTypeEnum.text,\n defaultValue: () => null,\n validators: () => [],\n readonly: () => false,\n suggestions: () => false,\n afterValueChange: undefined,\n show: () => true,\n capitalize: () => true,\n },\n ]\n },\n {\n key: sectionCustomer,\n show: () => true,\n title: () => this.textCustomer,\n fields: [\n {\n key: ctrlCustomer,\n label: () => this.textCustomer,\n type: () => SpxInputTypeEnum.autocomplete,\n defaultValue: () => null,\n validators: () => [],\n readonly: () => false,\n suggestions: () => true,\n afterValueChange: undefined,\n show: () => true,\n capitalize: () => true,\n },\n ]\n },\n {\n key: sectionContainerInfo,\n show: () => true,\n title: () => this.textContainerInfo,\n fields: [\n {\n key: ctrlCategory,\n label: () => this.textCategory,\n type: () => SpxInputTypeEnum.autocomplete,\n defaultValue: () => null,\n validators: () => [],\n readonly: () => false,\n suggestions: () => true,\n afterValueChange: undefined,\n show: () => true,\n capitalize: () => true,\n },\n {\n key: ctrlContainerStatus,\n label: () => this.textContainerStatus,\n type: () => SpxInputTypeEnum.autocomplete,\n defaultValue: () => null,\n validators: () => [],\n readonly: () => false,\n suggestions: () => true,\n afterValueChange: undefined,\n show: () => true,\n capitalize: () => true,\n },\n {\n key: ctrlContainerType,\n label: () => this.textContainerType,\n type: () => SpxInputTypeEnum.autocomplete,\n defaultValue: () => null,\n validators: () => [],\n readonly: () => false,\n suggestions: () => true,\n afterValueChange: undefined,\n show: () => true,\n capitalize: () => true,\n },\n ]\n },\n ];\n\n get ctrlCategory(): FormControl { return this.formGroup.get(ctrlCategory) as FormControl; }\n get ctrlContainerStatus(): FormControl { return this.formGroup.get(ctrlContainerStatus) as FormControl; }\n get ctrlContainerType(): FormControl { return this.formGroup.get(ctrlContainerType) as FormControl; }\n get ctrlCustomer(): FormControl { return this.formGroup.get(ctrlCustomer) as FormControl; }\n get ctrlDepot(): FormControl { return this.formGroup.get(ctrlDepot) as FormControl; }\n get ctrlLocation(): FormControl { return this.formGroup.get(ctrlLocation) as FormControl; }\n\n constructor(readonly formBuilder: FormBuilder) {\n }\n\n createForm(): FormGroup {\n return SpxFormViewComponent.createForm(this.formBuilder, this.sections);\n }\n\n getRawValidators(formControl: FormControl) {\n return (formControl as any)._rawValidators;\n }\n\n onBlur(data: { field: SpxFormFieldI, valuePair: SpxValuePair<any> }) {\n if (data.field.key === ctrlCategory) {\n this.spxBlurCategory.emit(data.valuePair);\n }\n if (data.field.key === ctrlContainerStatus) {\n this.spxBlurContainerStatus.emit(data.valuePair);\n }\n if (data.field.key === ctrlContainerType) {\n this.spxBlurContainerType.emit(data.valuePair);\n }\n if (data.field.key === ctrlCustomer) {\n this.spxBlurCustomer.emit(data.valuePair);\n }\n }\n\n onSearch(data: { field: SpxFormFieldI, valuePair: SpxValuePair<any> }) {\n if (data.field.key === ctrlCategory) {\n this.spxSearchCategory.emit(data.valuePair);\n }\n if (data.field.key === ctrlContainerType) {\n this.spxSearchContainerType.emit(data.valuePair);\n }\n if (data.field.key === ctrlContainerStatus) {\n this.spxSearchContainerStatus.emit(data.valuePair);\n }\n if (data.field.key === ctrlCustomer) {\n this.spxSearchCustomer.emit(data.valuePair);\n }\n }\n\n onSubmit(): void {\n this.submit.emit({\n ctrlCategory: this.ctrlCategory.value,\n ctrlContainerStatus: this.ctrlContainerStatus.value,\n ctrlContainerType: this.ctrlContainerType.value,\n ctrlCustomer: this.ctrlContainerType.value,\n ctrlDepot: this.ctrlDepot.value,\n ctrlLocation: this.ctrlLocation.value,\n });\n }\n}\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]=\"suggestions\"\n (spxBlur)=\"onBlur($event)\"\n (spxSearch)=\"onSearch($event)\">\n </spx-form-view>\n <spx-button\n [spxFullWidth]=\"true\"\n [spxSeverity]=\"severitySuccess\">\n Save\n </spx-button>\n</form>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;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AEG;;;;"}
|
|
1
|
+
{"version":3,"file":"softpak-components-spx-stock-info.mjs","sources":["../../../../projects/softpak/components/spx-stock-info/spx-stock-info.component.ts","../../../../projects/softpak/components/spx-stock-info/spx-stock-info.component.html","../../../../projects/softpak/components/spx-stock-info/softpak-components-spx-stock-info.ts"],"sourcesContent":["import { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { spxValidatorRequired, SpxValidateControlComponent } from '@softpak/components/spx-validation';\nimport { CommonModule } from '@angular/common';\nimport { SpxInputComponent, SpxInputTypeEnum, SpxValuePair } from '@softpak/components/spx-inputs';\nimport { SpxFormButtonTypeEnum, SpxFormFieldI, SpxFormI, SpxFormViewComponent } from '@softpak/components/spx-form-view';\nimport { SpxButtonComponent } from '@softpak/components/spx-button';\nimport { SpxSeverityEnum } from '@softpak/components/spx-helpers';\nimport { SpxStockInfoValueI } from './spx-stock-info-value.interface';\n\nexport const ctrlCategory = 'ctrlCategory';\nexport const ctrlContainerStatus = 'ctrlContainerStatus';\nexport const ctrlContainerType = 'ctrlContainerType';\nexport const ctrlCustomer = 'ctrlCustomer';\nexport const ctrlDepot = 'ctrlDepot';\nexport const ctrlLocation = 'ctrlLocation';\nexport const sectionContainerInfo = 'sectionContainerInfo';\nexport const sectionCustomer = 'sectionCustomer';\nexport const sectionLocation = 'sectionLocation';\n\n@Component({\n selector: 'spx-stock-info',\n templateUrl: './spx-stock-info.component.html',\n standalone: true,\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n SpxButtonComponent,\n SpxFormViewComponent,\n SpxInputComponent,\n SpxValidateControlComponent,\n ]\n})\nexport class SpxStockInfoComponent {\n @Input() formGroup!: FormGroup;\n @Input() depot!: string;\n @Input() suggestions: any = {};\n @Input() textLocation!: string;\n @Input() textDepot!: string;\n @Input() textCustomer!: string;\n @Input() textContainerInfo!: string;\n @Input() textCategory!: string;\n @Input() textContainerStatus!: string;\n @Input() textContainerType!: string;\n @Input() textSearch!: string;\n @Output() spxBlurCategory: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxBlurContainerStatus: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxBlurContainerType: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxBlurCustomer: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxSearchCategory: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxSearchContainerType: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxSearchContainerStatus: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() spxSearchCustomer: EventEmitter<SpxValuePair<string>> = new EventEmitter<SpxValuePair<string>>();\n @Output() submit: EventEmitter<SpxStockInfoValueI> = new EventEmitter<SpxStockInfoValueI>();\n\n form: SpxFormI = {\n buttons: [\n {\n severity: SpxSeverityEnum.success,\n type: SpxFormButtonTypeEnum.submit,\n label: () => this.textSearch,\n }\n ],\n sections: [\n {\n key: sectionLocation,\n show: () => true,\n title: () => this.textLocation,\n fields: [\n {\n key: ctrlDepot,\n label: () => this.textDepot,\n type: () => SpxInputTypeEnum.text,\n defaultValue: () => this.depot,\n validators: () => [spxValidatorRequired()],\n readonly: () => true,\n suggestions: () => false,\n afterValueChange: undefined,\n show: () => true,\n capitalize: () => true,\n },\n {\n key: ctrlLocation,\n label: () => this.textLocation,\n type: () => SpxInputTypeEnum.text,\n defaultValue: () => null,\n validators: () => [],\n readonly: () => false,\n suggestions: () => false,\n afterValueChange: undefined,\n show: () => true,\n capitalize: () => true,\n },\n ]\n },\n {\n key: sectionCustomer,\n show: () => true,\n title: () => this.textCustomer,\n fields: [\n {\n key: ctrlCustomer,\n label: () => this.textCustomer,\n type: () => SpxInputTypeEnum.autocomplete,\n defaultValue: () => null,\n validators: () => [],\n readonly: () => false,\n suggestions: () => true,\n afterValueChange: undefined,\n show: () => true,\n capitalize: () => true,\n },\n ]\n },\n {\n key: sectionContainerInfo,\n show: () => true,\n title: () => this.textContainerInfo,\n fields: [\n {\n key: ctrlCategory,\n label: () => this.textCategory,\n type: () => SpxInputTypeEnum.autocomplete,\n defaultValue: () => null,\n validators: () => [],\n readonly: () => false,\n suggestions: () => true,\n afterValueChange: undefined,\n show: () => true,\n capitalize: () => true,\n },\n {\n key: ctrlContainerStatus,\n label: () => this.textContainerStatus,\n type: () => SpxInputTypeEnum.autocomplete,\n defaultValue: () => null,\n validators: () => [],\n readonly: () => false,\n suggestions: () => true,\n afterValueChange: undefined,\n show: () => true,\n capitalize: () => true,\n },\n {\n key: ctrlContainerType,\n label: () => this.textContainerType,\n type: () => SpxInputTypeEnum.autocomplete,\n defaultValue: () => null,\n validators: () => [],\n readonly: () => false,\n suggestions: () => true,\n afterValueChange: undefined,\n show: () => true,\n capitalize: () => true,\n },\n ]\n },\n ]\n };\n\n get ctrlCategory(): FormControl { return this.formGroup.get(ctrlCategory) as FormControl; }\n get ctrlContainerStatus(): FormControl { return this.formGroup.get(ctrlContainerStatus) as FormControl; }\n get ctrlContainerType(): FormControl { return this.formGroup.get(ctrlContainerType) as FormControl; }\n get ctrlCustomer(): FormControl { return this.formGroup.get(ctrlCustomer) as FormControl; }\n get ctrlDepot(): FormControl { return this.formGroup.get(ctrlDepot) as FormControl; }\n get ctrlLocation(): FormControl { return this.formGroup.get(ctrlLocation) as FormControl; }\n\n constructor(readonly formBuilder: FormBuilder) {\n }\n\n createForm(): FormGroup {\n return SpxFormViewComponent.createForm(this.formBuilder, this.form.sections);\n }\n\n getRawValidators(formControl: FormControl) {\n return (formControl as any)._rawValidators;\n }\n\n onBlur(data: { field: SpxFormFieldI, valuePair: SpxValuePair<any> }) {\n if (data.field.key === ctrlCategory) {\n this.spxBlurCategory.emit(data.valuePair);\n }\n if (data.field.key === ctrlContainerStatus) {\n this.spxBlurContainerStatus.emit(data.valuePair);\n }\n if (data.field.key === ctrlContainerType) {\n this.spxBlurContainerType.emit(data.valuePair);\n }\n if (data.field.key === ctrlCustomer) {\n this.spxBlurCustomer.emit(data.valuePair);\n }\n }\n\n onSearch(data: { field: SpxFormFieldI, valuePair: SpxValuePair<any> }) {\n if (data.field.key === ctrlCategory) {\n this.spxSearchCategory.emit(data.valuePair);\n }\n if (data.field.key === ctrlContainerType) {\n this.spxSearchContainerType.emit(data.valuePair);\n }\n if (data.field.key === ctrlContainerStatus) {\n this.spxSearchContainerStatus.emit(data.valuePair);\n }\n if (data.field.key === ctrlCustomer) {\n this.spxSearchCustomer.emit(data.valuePair);\n }\n }\n\n onSubmit(): void {\n this.submit.emit({\n ctrlCategory: this.ctrlCategory.value,\n ctrlContainerStatus: this.ctrlContainerStatus.value,\n ctrlContainerType: this.ctrlContainerType.value,\n ctrlCustomer: this.ctrlContainerType.value,\n ctrlDepot: this.ctrlDepot.value,\n ctrlLocation: this.ctrlLocation.value,\n });\n }\n}\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 [spxForm]=\"form\"\n [spxSuggestions]=\"suggestions\"\n (spxBlur)=\"onBlur($event)\"\n (spxSearch)=\"onSearch($event)\">\n </spx-form-view>\n</form>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAUO,MAAM,YAAY,GAAG,eAAe;AACpC,MAAM,mBAAmB,GAAG,sBAAsB;AAClD,MAAM,iBAAiB,GAAG,oBAAoB;AAC9C,MAAM,YAAY,GAAG,eAAe;AACpC,MAAM,SAAS,GAAG,YAAY;AAC9B,MAAM,YAAY,GAAG,eAAe;AACpC,MAAM,oBAAoB,GAAG,uBAAuB;AACpD,MAAM,eAAe,GAAG,kBAAkB;AAC1C,MAAM,eAAe,GA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ACG,YAAY,EAAA,CAAA;sBAApB,KAAK;gBACG,SAAS,EAAA,CAAA;sBAAjB,KAAK;gBACG,YAAY,EAAA,CAAA;sBAApB,KAAK;gBACG,iBAAiB,EAAA,CAAA;sBAAzB,KAAK;gBACG,YAAY,EAAA,CAAA;sBAApB,KAAK;gBACG,mBAAmB,EAAA,CAAA;sBAA3B,KAAK;gBACG,iBAAiB,EAAA,CAAA;sBAAzB,KAAK;gBACG,UAAU,EAAA,CAAA;sBAAlB,KAAK;gBACI,eAAe,EAAA,CAAA;sBAAxB,MAAM;gBACG,sBAAsB,EAAA,CAAA;sBAA/B,MAAM;gBACG,oBAAoB,EAAA,CAAA;sBAA7B,MAAM;gBACG,eAAe,EAAA,CAAA;sBAAxB,MAAM;gBACG,iBAAiB,EAAA,CAAA;sBAA1B,MAAM;gBACG,sBAAsB,EAAA,CAAA;sBAA/B,MAAM;gBACG,wBAAwB,EAAA,CAAA;sBAAjC,MAAM;gBACG,iBAAiB,EAAA,CAAA;sBAA1B,MAAM;gBACG,MAAM,EAAA,CAAA;sBAAf,MAAM;;;AEtDT;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softpak/components",
|
|
3
|
-
"version": "0.1.8-beta.
|
|
3
|
+
"version": "0.1.8-beta.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "15.x.x || 18.x.x",
|
|
@@ -46,36 +46,24 @@
|
|
|
46
46
|
"esm": "./esm2022/spx-app-expiry/softpak-components-spx-app-expiry.mjs",
|
|
47
47
|
"default": "./fesm2022/softpak-components-spx-app-expiry.mjs"
|
|
48
48
|
},
|
|
49
|
-
"./spx-button": {
|
|
50
|
-
"types": "./spx-button/index.d.ts",
|
|
51
|
-
"esm2022": "./esm2022/spx-button/softpak-components-spx-button.mjs",
|
|
52
|
-
"esm": "./esm2022/spx-button/softpak-components-spx-button.mjs",
|
|
53
|
-
"default": "./fesm2022/softpak-components-spx-button.mjs"
|
|
54
|
-
},
|
|
55
49
|
"./spx-app-update": {
|
|
56
50
|
"types": "./spx-app-update/index.d.ts",
|
|
57
51
|
"esm2022": "./esm2022/spx-app-update/softpak-components-spx-app-update.mjs",
|
|
58
52
|
"esm": "./esm2022/spx-app-update/softpak-components-spx-app-update.mjs",
|
|
59
53
|
"default": "./fesm2022/softpak-components-spx-app-update.mjs"
|
|
60
54
|
},
|
|
55
|
+
"./spx-button": {
|
|
56
|
+
"types": "./spx-button/index.d.ts",
|
|
57
|
+
"esm2022": "./esm2022/spx-button/softpak-components-spx-button.mjs",
|
|
58
|
+
"esm": "./esm2022/spx-button/softpak-components-spx-button.mjs",
|
|
59
|
+
"default": "./fesm2022/softpak-components-spx-button.mjs"
|
|
60
|
+
},
|
|
61
61
|
"./spx-capitalize": {
|
|
62
62
|
"types": "./spx-capitalize/index.d.ts",
|
|
63
63
|
"esm2022": "./esm2022/spx-capitalize/softpak-components-spx-capitalize.mjs",
|
|
64
64
|
"esm": "./esm2022/spx-capitalize/softpak-components-spx-capitalize.mjs",
|
|
65
65
|
"default": "./fesm2022/softpak-components-spx-capitalize.mjs"
|
|
66
66
|
},
|
|
67
|
-
"./spx-channel-selection": {
|
|
68
|
-
"types": "./spx-channel-selection/index.d.ts",
|
|
69
|
-
"esm2022": "./esm2022/spx-channel-selection/softpak-components-spx-channel-selection.mjs",
|
|
70
|
-
"esm": "./esm2022/spx-channel-selection/softpak-components-spx-channel-selection.mjs",
|
|
71
|
-
"default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
|
|
72
|
-
},
|
|
73
|
-
"./spx-change-details": {
|
|
74
|
-
"types": "./spx-change-details/index.d.ts",
|
|
75
|
-
"esm2022": "./esm2022/spx-change-details/softpak-components-spx-change-details.mjs",
|
|
76
|
-
"esm": "./esm2022/spx-change-details/softpak-components-spx-change-details.mjs",
|
|
77
|
-
"default": "./fesm2022/softpak-components-spx-change-details.mjs"
|
|
78
|
-
},
|
|
79
67
|
"./spx-check-digit": {
|
|
80
68
|
"types": "./spx-check-digit/index.d.ts",
|
|
81
69
|
"esm2022": "./esm2022/spx-check-digit/softpak-components-spx-check-digit.mjs",
|
|
@@ -88,6 +76,18 @@
|
|
|
88
76
|
"esm": "./esm2022/spx-form-section/softpak-components-spx-form-section.mjs",
|
|
89
77
|
"default": "./fesm2022/softpak-components-spx-form-section.mjs"
|
|
90
78
|
},
|
|
79
|
+
"./spx-channel-selection": {
|
|
80
|
+
"types": "./spx-channel-selection/index.d.ts",
|
|
81
|
+
"esm2022": "./esm2022/spx-channel-selection/softpak-components-spx-channel-selection.mjs",
|
|
82
|
+
"esm": "./esm2022/spx-channel-selection/softpak-components-spx-channel-selection.mjs",
|
|
83
|
+
"default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
|
|
84
|
+
},
|
|
85
|
+
"./spx-change-details": {
|
|
86
|
+
"types": "./spx-change-details/index.d.ts",
|
|
87
|
+
"esm2022": "./esm2022/spx-change-details/softpak-components-spx-change-details.mjs",
|
|
88
|
+
"esm": "./esm2022/spx-change-details/softpak-components-spx-change-details.mjs",
|
|
89
|
+
"default": "./fesm2022/softpak-components-spx-change-details.mjs"
|
|
90
|
+
},
|
|
91
91
|
"./spx-form-view": {
|
|
92
92
|
"types": "./spx-form-view/index.d.ts",
|
|
93
93
|
"esm2022": "./esm2022/spx-form-view/softpak-components-spx-form-view.mjs",
|
|
@@ -118,6 +118,12 @@
|
|
|
118
118
|
"esm": "./esm2022/spx-number-check/softpak-components-spx-number-check.mjs",
|
|
119
119
|
"default": "./fesm2022/softpak-components-spx-number-check.mjs"
|
|
120
120
|
},
|
|
121
|
+
"./spx-pagination": {
|
|
122
|
+
"types": "./spx-pagination/index.d.ts",
|
|
123
|
+
"esm2022": "./esm2022/spx-pagination/softpak-components-spx-pagination.mjs",
|
|
124
|
+
"esm": "./esm2022/spx-pagination/softpak-components-spx-pagination.mjs",
|
|
125
|
+
"default": "./fesm2022/softpak-components-spx-pagination.mjs"
|
|
126
|
+
},
|
|
121
127
|
"./spx-patch": {
|
|
122
128
|
"types": "./spx-patch/index.d.ts",
|
|
123
129
|
"esm2022": "./esm2022/spx-patch/softpak-components-spx-patch.mjs",
|
|
@@ -142,18 +148,18 @@
|
|
|
142
148
|
"esm": "./esm2022/spx-stock-info/softpak-components-spx-stock-info.mjs",
|
|
143
149
|
"default": "./fesm2022/softpak-components-spx-stock-info.mjs"
|
|
144
150
|
},
|
|
145
|
-
"./spx-storage": {
|
|
146
|
-
"types": "./spx-storage/index.d.ts",
|
|
147
|
-
"esm2022": "./esm2022/spx-storage/softpak-components-spx-storage.mjs",
|
|
148
|
-
"esm": "./esm2022/spx-storage/softpak-components-spx-storage.mjs",
|
|
149
|
-
"default": "./fesm2022/softpak-components-spx-storage.mjs"
|
|
150
|
-
},
|
|
151
151
|
"./spx-suggestion": {
|
|
152
152
|
"types": "./spx-suggestion/index.d.ts",
|
|
153
153
|
"esm2022": "./esm2022/spx-suggestion/softpak-components-spx-suggestion.mjs",
|
|
154
154
|
"esm": "./esm2022/spx-suggestion/softpak-components-spx-suggestion.mjs",
|
|
155
155
|
"default": "./fesm2022/softpak-components-spx-suggestion.mjs"
|
|
156
156
|
},
|
|
157
|
+
"./spx-storage": {
|
|
158
|
+
"types": "./spx-storage/index.d.ts",
|
|
159
|
+
"esm2022": "./esm2022/spx-storage/softpak-components-spx-storage.mjs",
|
|
160
|
+
"esm": "./esm2022/spx-storage/softpak-components-spx-storage.mjs",
|
|
161
|
+
"default": "./fesm2022/softpak-components-spx-storage.mjs"
|
|
162
|
+
},
|
|
157
163
|
"./spx-toaster": {
|
|
158
164
|
"types": "./spx-toaster/index.d.ts",
|
|
159
165
|
"esm2022": "./esm2022/spx-toaster/softpak-components-spx-toaster.mjs",
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
3
|
-
import {
|
|
4
|
-
import { SpxFormFieldI,
|
|
5
|
-
import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
|
|
3
|
+
import { SpxValuePair } from '@softpak/components/spx-inputs';
|
|
4
|
+
import { SpxFormFieldI, SpxFormI } from '@softpak/components/spx-form-view';
|
|
6
5
|
import { SpxChangeDetailsValueI } from './spx-change-details-value.interface';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
export declare const sectionChangeDetails = "changeDetails";
|
|
@@ -19,24 +18,21 @@ export declare class SpxChangeDetailsComponent {
|
|
|
19
18
|
readonly formBuilder: FormBuilder;
|
|
20
19
|
formGroup: FormGroup;
|
|
21
20
|
suggestions: any;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
textCategory: string;
|
|
22
|
+
textContainerNumber: string;
|
|
23
|
+
textContainerPrefix: string;
|
|
24
|
+
textContainerType: string;
|
|
25
|
+
textCustomer: string;
|
|
26
|
+
textLicensePlate: string;
|
|
27
|
+
textSave: string;
|
|
28
|
+
textTonsTested: string;
|
|
29
29
|
spxBlurCategory: EventEmitter<SpxValuePair<string>>;
|
|
30
30
|
spxBlurContainerType: EventEmitter<SpxValuePair<string>>;
|
|
31
31
|
spxSearchCategory: EventEmitter<SpxValuePair<string>>;
|
|
32
32
|
spxSearchContainerType: EventEmitter<SpxValuePair<string>>;
|
|
33
33
|
spxSearchTonsTested: EventEmitter<SpxValuePair<string>>;
|
|
34
34
|
submit: EventEmitter<SpxChangeDetailsValueI>;
|
|
35
|
-
|
|
36
|
-
inputTypeRadio: SpxInputTypeEnum;
|
|
37
|
-
inputTypeText: SpxInputTypeEnum;
|
|
38
|
-
severitySuccess: SpxSeverityEnum;
|
|
39
|
-
sections: SpxFormSectionI[];
|
|
35
|
+
form: SpxFormI;
|
|
40
36
|
get ctrlCategory(): FormControl;
|
|
41
37
|
get ctrlCustomer(): FormControl;
|
|
42
38
|
get ctrlContainerType(): FormControl;
|
|
@@ -60,5 +56,5 @@ export declare class SpxChangeDetailsComponent {
|
|
|
60
56
|
onSubmit(): void;
|
|
61
57
|
private listenToContainerType;
|
|
62
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpxChangeDetailsComponent, never>;
|
|
63
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpxChangeDetailsComponent, "spx-change-details", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpxChangeDetailsComponent, "spx-change-details", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "textCategory": { "alias": "textCategory"; "required": false; }; "textContainerNumber": { "alias": "textContainerNumber"; "required": false; }; "textContainerPrefix": { "alias": "textContainerPrefix"; "required": false; }; "textContainerType": { "alias": "textContainerType"; "required": false; }; "textCustomer": { "alias": "textCustomer"; "required": false; }; "textLicensePlate": { "alias": "textLicensePlate"; "required": false; }; "textSave": { "alias": "textSave"; "required": false; }; "textTonsTested": { "alias": "textTonsTested"; "required": false; }; }, { "spxBlurCategory": "spxBlurCategory"; "spxBlurContainerType": "spxBlurContainerType"; "spxSearchCategory": "spxSearchCategory"; "spxSearchContainerType": "spxSearchContainerType"; "spxSearchTonsTested": "spxSearchTonsTested"; "submit": "submit"; }, never, never, true, never>;
|
|
64
60
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, SimpleChanges, OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
3
3
|
import { SpxAppChannelI, SpxAppChannelTypeEnum } from '@softpak/components/spx-app-configuration';
|
|
4
|
-
import {
|
|
5
|
-
import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
|
|
4
|
+
import { SpxFormI } from '@softpak/components/spx-form-view';
|
|
6
5
|
import { SpxValuePair } from '@softpak/components/spx-inputs';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
export declare const sectionWelcome = "welcome";
|
|
@@ -17,10 +16,10 @@ export declare class SpxWelcomeComponent implements OnChanges, OnInit, OnDestroy
|
|
|
17
16
|
channels?: SpxAppChannelI[];
|
|
18
17
|
channelTypes?: SpxAppChannelTypeEnum[];
|
|
19
18
|
formGroup: FormGroup;
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
textChannel: string;
|
|
20
|
+
textCompany: string;
|
|
21
|
+
textSelect: string;
|
|
22
22
|
spxSelect: EventEmitter<SpxWelcomeValueI>;
|
|
23
|
-
severitySuccess: SpxSeverityEnum;
|
|
24
23
|
suggestions: {
|
|
25
24
|
[ctrlChannelType]?: SpxValuePair<string>[];
|
|
26
25
|
[ctrlChannel]?: SpxValuePair<string>[];
|
|
@@ -28,7 +27,7 @@ export declare class SpxWelcomeComponent implements OnChanges, OnInit, OnDestroy
|
|
|
28
27
|
get ctrlChannel(): FormControl;
|
|
29
28
|
get ctrlChannelType(): FormControl;
|
|
30
29
|
private subscriptions;
|
|
31
|
-
|
|
30
|
+
form: SpxFormI;
|
|
32
31
|
get filteredCompanies(): SpxValuePair<string>[];
|
|
33
32
|
constructor(formBuilder: FormBuilder);
|
|
34
33
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -37,5 +36,5 @@ export declare class SpxWelcomeComponent implements OnChanges, OnInit, OnDestroy
|
|
|
37
36
|
onSubmit(): void;
|
|
38
37
|
createForm(): FormGroup;
|
|
39
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpxWelcomeComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpxWelcomeComponent, "spx-welcome", never, { "channels": { "alias": "channels"; "required": false; }; "channelTypes": { "alias": "channelTypes"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpxWelcomeComponent, "spx-welcome", never, { "channels": { "alias": "channels"; "required": false; }; "channelTypes": { "alias": "channelTypes"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "textChannel": { "alias": "textChannel"; "required": false; }; "textCompany": { "alias": "textCompany"; "required": false; }; "textSelect": { "alias": "textSelect"; "required": false; }; }, { "spxSelect": "spxSelect"; }, never, never, true, never>;
|
|
41
40
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export * from './spx-form-button-type.enum';
|
|
2
|
+
export * from './spx-form-button.interface';
|
|
1
3
|
export * from './spx-form-field.interface';
|
|
2
4
|
export * from './spx-form-section.interface';
|
|
3
5
|
export * from './spx-form-view.component';
|
|
6
|
+
export * from './spx-form.interface';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SpxSeverityEnum } from "@softpak/components/spx-helpers";
|
|
2
|
+
import { SpxFormButtonTypeEnum } from "./spx-form-button-type.enum";
|
|
3
|
+
export interface SpxFormButtonI {
|
|
4
|
+
onClick?: () => {};
|
|
5
|
+
severity: SpxSeverityEnum;
|
|
6
|
+
label?: () => string;
|
|
7
|
+
type: SpxFormButtonTypeEnum;
|
|
8
|
+
}
|
|
@@ -3,11 +3,12 @@ import { SpxFormSectionI } from './spx-form-section.interface';
|
|
|
3
3
|
import { SpxInputComponent, SpxInputTypeEnum, SpxValuePair } from '@softpak/components/spx-inputs';
|
|
4
4
|
import { AbstractControl, FormBuilder, FormGroup } from '@angular/forms';
|
|
5
5
|
import { SpxFormFieldI } from './spx-form-field.interface';
|
|
6
|
+
import { SpxFormI } from './spx-form.interface';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class SpxFormViewComponent {
|
|
8
9
|
readonly formBuilder: FormBuilder;
|
|
9
10
|
spxFormGroup: FormGroup;
|
|
10
|
-
|
|
11
|
+
spxForm: SpxFormI;
|
|
11
12
|
spxSuggestions: any;
|
|
12
13
|
spxBlur: EventEmitter<{
|
|
13
14
|
field: SpxFormFieldI;
|
|
@@ -44,5 +45,5 @@ export declare class SpxFormViewComponent {
|
|
|
44
45
|
static createForm(formBuilder: FormBuilder, sections: SpxFormSectionI[]): FormGroup;
|
|
45
46
|
constructor(formBuilder: FormBuilder);
|
|
46
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpxFormViewComponent, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpxFormViewComponent, "spx-form-view", never, { "spxFormGroup": { "alias": "spxFormGroup"; "required": false; }; "
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpxFormViewComponent, "spx-form-view", never, { "spxFormGroup": { "alias": "spxFormGroup"; "required": false; }; "spxForm": { "alias": "spxForm"; "required": false; }; "spxSuggestions": { "alias": "spxSuggestions"; "required": false; }; }, { "spxBlur": "spxBlur"; "spxClick": "spxClick"; "spxSearch": "spxSearch"; }, never, never, true, never>;
|
|
48
49
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './spx-pagination.component';
|