@softpak/components 19.17.0-beta.3 → 19.17.0
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/fesm2022/softpak-components-spx-alert.mjs +6 -7
- package/fesm2022/softpak-components-spx-alert.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-app-expiry.mjs +91 -23
- package/fesm2022/softpak-components-spx-app-expiry.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-button.mjs +22 -8
- package/fesm2022/softpak-components-spx-button.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-card.mjs +88 -17
- package/fesm2022/softpak-components-spx-card.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-change-details.mjs +64 -48
- package/fesm2022/softpak-components-spx-change-details.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-check-digit.mjs +27 -23
- package/fesm2022/softpak-components-spx-check-digit.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-confirm.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-form-section.mjs +33 -8
- package/fesm2022/softpak-components-spx-form-section.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-form-view.mjs +53 -39
- package/fesm2022/softpak-components-spx-form-view.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-inputs.mjs +6 -15
- package/fesm2022/softpak-components-spx-inputs.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-navigation.mjs +89 -34
- package/fesm2022/softpak-components-spx-navigation.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-number-check.mjs +198 -91
- package/fesm2022/softpak-components-spx-number-check.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-pagination.mjs +21 -12
- package/fesm2022/softpak-components-spx-pagination.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-patch.mjs +39 -8
- package/fesm2022/softpak-components-spx-patch.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-progress-bar.mjs +22 -8
- package/fesm2022/softpak-components-spx-progress-bar.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-spinner.mjs +160 -15
- package/fesm2022/softpak-components-spx-spinner.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-stock-info.mjs +128 -71
- package/fesm2022/softpak-components-spx-stock-info.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-toaster.mjs +162 -35
- package/fesm2022/softpak-components-spx-toaster.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-update.mjs +3 -3
- package/fesm2022/softpak-components-spx-update.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-validation.mjs +54 -68
- package/fesm2022/softpak-components-spx-validation.mjs.map +1 -1
- package/package.json +9 -9
- package/spx-alert/spx-alert.component.d.ts +1 -1
- package/spx-app-expiry/spx-app-expiry.component.d.ts +14 -14
- package/spx-button/spx-button.component.d.ts +3 -0
- package/spx-card/spx-card-item/spx-card-item.component.d.ts +1 -0
- package/spx-card/spx-card.component.d.ts +9 -8
- package/spx-change-details/spx-change-details.component.d.ts +23 -22
- package/spx-check-digit/spx-check-digit.component.d.ts +9 -9
- package/spx-form-section/spx-form-section.component.d.ts +5 -5
- package/spx-form-view/spx-autocomplete-search.component.d.ts +16 -15
- package/spx-form-view/spx-form-view.component.d.ts +1 -1
- package/spx-inputs/spx-input-text/spx-input-text.component.d.ts +1 -4
- package/spx-inputs/spx-input.component.d.ts +0 -1
- package/spx-navigation/public-api.d.ts +2 -2
- package/spx-navigation/spx-home-tile.component.d.ts +11 -0
- package/spx-navigation/{spx-home-tile/spx-home-tiles.component.d.ts → spx-home-tiles.component.d.ts} +2 -2
- package/spx-navigation/spx-navigation.component.d.ts +8 -11
- package/spx-navigation/store/spx-navigation/spx-navigation.actions.d.ts +3 -3
- package/spx-number-check/spx-number-check.component.d.ts +32 -26
- package/spx-pagination/spx-pagination.component.d.ts +10 -9
- package/spx-patch/spx-patch.component.d.ts +4 -4
- package/spx-progress-bar/spx-progress-bar.component.d.ts +3 -3
- package/spx-spinner/spx-spinner.component.d.ts +3 -3
- package/spx-stock-info/spx-stock-info.component.d.ts +49 -48
- package/spx-toaster/src/spx-toaster-message.interface.d.ts +1 -5
- package/spx-toaster/src/spx-toaster.component.d.ts +14 -6
- package/spx-validation/spx-validate-control.component.d.ts +19 -19
- package/tailwind.css +1 -1
- package/spx-navigation/spx-home-tile/spx-home-tile.component.d.ts +0 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { valuePairToValue } from '@softpak/components/spx-helpers';
|
|
2
2
|
import { DateTime } from 'luxon';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import {
|
|
4
|
+
import { Component, Input } from '@angular/core';
|
|
5
5
|
import { FormsModule } from '@angular/forms';
|
|
6
6
|
|
|
7
7
|
const spxValidatorRequired = () => (control) => {
|
|
@@ -131,80 +131,66 @@ const spxValidatorYearAndMonth = (future) => (control) => {
|
|
|
131
131
|
};
|
|
132
132
|
|
|
133
133
|
class SpxValidateControlComponent {
|
|
134
|
-
|
|
135
|
-
this.control
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
this.maxLength
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
this.
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
this.
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
this.
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
this.year = computed(() => {
|
|
179
|
-
const control = this.control();
|
|
180
|
-
return control.errors && control.errors['year'];
|
|
181
|
-
});
|
|
182
|
-
this.yearFuture = computed(() => {
|
|
183
|
-
const control = this.control();
|
|
184
|
-
return control.errors && control.errors['yearFuture'];
|
|
185
|
-
});
|
|
186
|
-
this.month = computed(() => {
|
|
187
|
-
const control = this.control();
|
|
188
|
-
return control.errors && control.errors['month'];
|
|
189
|
-
});
|
|
190
|
-
this.future = computed(() => {
|
|
191
|
-
const control = this.control();
|
|
192
|
-
return control.errors && control.errors['future'];
|
|
193
|
-
});
|
|
194
|
-
this.past = computed(() => {
|
|
195
|
-
const control = this.control();
|
|
196
|
-
return control.errors && control.errors['past'];
|
|
197
|
-
});
|
|
134
|
+
get maxLength() {
|
|
135
|
+
return this.control.errors && this.control.errors['maxlength'];
|
|
136
|
+
}
|
|
137
|
+
get maxLengthRequiredLength() {
|
|
138
|
+
return this.maxLength && this.control.errors && this.control.errors['maxlength']['requiredLength'];
|
|
139
|
+
}
|
|
140
|
+
get minLength() {
|
|
141
|
+
return this.control.errors && this.control.errors['minlength'];
|
|
142
|
+
}
|
|
143
|
+
get minLengthRequiredLength() {
|
|
144
|
+
return this.minLength && this.control.errors && this.control.errors['minlength']['requiredLength'];
|
|
145
|
+
}
|
|
146
|
+
get max() {
|
|
147
|
+
return this.control.errors && this.control.errors['max'];
|
|
148
|
+
}
|
|
149
|
+
get maxRequiredMax() {
|
|
150
|
+
return this.max && this.control.errors && this.control.errors['max']['max'];
|
|
151
|
+
}
|
|
152
|
+
get min() {
|
|
153
|
+
return this.control.errors && this.control.errors['min'];
|
|
154
|
+
}
|
|
155
|
+
get minRequiredMin() {
|
|
156
|
+
return this.min && this.control.errors && this.control.errors['min']['min'];
|
|
157
|
+
}
|
|
158
|
+
get pattern() {
|
|
159
|
+
return this.control.errors && this.control.errors['pattern'];
|
|
160
|
+
}
|
|
161
|
+
get required() {
|
|
162
|
+
return this.control.errors && this.control.errors['required'];
|
|
163
|
+
}
|
|
164
|
+
get year() {
|
|
165
|
+
return this.control.errors && this.control.errors['year'];
|
|
166
|
+
}
|
|
167
|
+
get yearFuture() {
|
|
168
|
+
return this.control.errors && this.control.errors['yearFuture'];
|
|
169
|
+
}
|
|
170
|
+
get month() {
|
|
171
|
+
return this.control.errors && this.control.errors['month'];
|
|
172
|
+
}
|
|
173
|
+
get future() {
|
|
174
|
+
return this.control.errors && this.control.errors['future'];
|
|
175
|
+
}
|
|
176
|
+
get past() {
|
|
177
|
+
return this.control.errors && this.control.errors['past'];
|
|
198
178
|
}
|
|
199
179
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxValidateControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
200
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: SpxValidateControlComponent, isStandalone: true, selector: "spx-validate-control", inputs: { control:
|
|
180
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: SpxValidateControlComponent, isStandalone: true, selector: "spx-validate-control", inputs: { control: "control", label: "label", submitTried: "submitTried" }, ngImport: i0, template: "@if (control && control.errors && (control.touched || submitTried)) {\n @if (maxLength) {\n <div>'{{ label }}' is too long, the maximum length is {{ maxLengthRequiredLength }}.</div>\n }\n @if (minLength) {\n <div>'{{ label }}' is too short, the minimum length is {{ minLengthRequiredLength }}.</div>\n }\n @if (max) {\n <div>The value of '{{ label }}' is too high, the maximum is {{ maxRequiredMax }}.</div>\n }\n @if (min) {\n <div>The value of '{{ label }}' is too low, the minimum is {{ minRequiredMin }}.</div>\n }\n @if (pattern) {\n <div>The pattern of '{{ label }}' not valid.</div>\n }\n @if (required) {\n <div>'{{ label }}' is required.</div>\n }\n @if (year) {\n <div>Please choose a year between 1991 and the current year.</div>\n }\n @if (yearFuture) {\n <div>Please choose a year between the current year and 2050.</div>\n }\n @if (month) {\n <div>Please choose a valid month (a value between 01 and 12).</div>\n }\n @if (future) {\n <div>The selected date may not be in the future.</div>\n }\n @if (past) {\n <div>The selected date may not be in the past.</div>\n }\n}", dependencies: [{ kind: "ngmodule", type: FormsModule }] }); }
|
|
201
181
|
}
|
|
202
182
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SpxValidateControlComponent, decorators: [{
|
|
203
183
|
type: Component,
|
|
204
184
|
args: [{ selector: 'spx-validate-control', imports: [
|
|
205
185
|
FormsModule
|
|
206
|
-
],
|
|
207
|
-
}]
|
|
186
|
+
], template: "@if (control && control.errors && (control.touched || submitTried)) {\n @if (maxLength) {\n <div>'{{ label }}' is too long, the maximum length is {{ maxLengthRequiredLength }}.</div>\n }\n @if (minLength) {\n <div>'{{ label }}' is too short, the minimum length is {{ minLengthRequiredLength }}.</div>\n }\n @if (max) {\n <div>The value of '{{ label }}' is too high, the maximum is {{ maxRequiredMax }}.</div>\n }\n @if (min) {\n <div>The value of '{{ label }}' is too low, the minimum is {{ minRequiredMin }}.</div>\n }\n @if (pattern) {\n <div>The pattern of '{{ label }}' not valid.</div>\n }\n @if (required) {\n <div>'{{ label }}' is required.</div>\n }\n @if (year) {\n <div>Please choose a year between 1991 and the current year.</div>\n }\n @if (yearFuture) {\n <div>Please choose a year between the current year and 2050.</div>\n }\n @if (month) {\n <div>Please choose a valid month (a value between 01 and 12).</div>\n }\n @if (future) {\n <div>The selected date may not be in the future.</div>\n }\n @if (past) {\n <div>The selected date may not be in the past.</div>\n }\n}" }]
|
|
187
|
+
}], propDecorators: { control: [{
|
|
188
|
+
type: Input
|
|
189
|
+
}], label: [{
|
|
190
|
+
type: Input
|
|
191
|
+
}], submitTried: [{
|
|
192
|
+
type: Input
|
|
193
|
+
}] } });
|
|
208
194
|
|
|
209
195
|
/**
|
|
210
196
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softpak-components-spx-validation.mjs","sources":["../../../../projects/softpak/components/spx-validation/required.validator.ts","../../../../projects/softpak/components/spx-validation/max.validator.ts","../../../../projects/softpak/components/spx-validation/maxlength.validator.ts","../../../../projects/softpak/components/spx-validation/min.validator.ts","../../../../projects/softpak/components/spx-validation/minlength.validator.ts","../../../../projects/softpak/components/spx-validation/pattern.validator.ts","../../../../projects/softpak/components/spx-validation/year-and-month.validator.ts","../../../../projects/softpak/components/spx-validation/spx-validate-control.component.ts","../../../../projects/softpak/components/spx-validation/spx-validate-control.component.html","../../../../projects/softpak/components/spx-validation/softpak-components-spx-validation.ts"],"sourcesContent":["import { AbstractControl, ValidationErrors } from '@angular/forms';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorRequired = () => (control: AbstractControl): ValidationErrors | null => {\n if (\n control &&\n valuePairToValue(control.value) === undefined ||\n valuePairToValue(control.value) === null ||\n valuePairToValue(control.value) === '' ||\n valuePairToValue(control.value) === 0\n ) {\n return { required: true };\n }\n return null;\n};\n","import { AbstractControl } from '@angular/forms';\nimport { spxValidatorRequired } from './required.validator';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorMax = (max: number) => (control: AbstractControl): { max: { max: number; actual: number } } | null => {\n if (!spxValidatorRequired()(control)) {\n const value = parseInt(valuePairToValue(control.value).toString(), 10);\n if (!isNaN(value) && value > max) {\n return {\n max: {\n max,\n actual: value\n }\n };\n }\n }\n return null;\n};\n","import { AbstractControl } from '@angular/forms';\nimport { spxValidatorRequired } from './required.validator';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorMaxLength = (maximumLength: number, sanitizer?: (input: string) => string) => (control: AbstractControl): { maxlength: { requiredLength: number; actualLength: number } } | null => {\n if (!spxValidatorRequired()(control)) {\n let value = valuePairToValue(control.value);\n if (sanitizer) {\n value = sanitizer(value.toString());\n }\n if (value.toString().length > maximumLength) {\n return {\n maxlength: {\n requiredLength: maximumLength,\n actualLength: value.toString().length\n }\n };\n }\n }\n return null;\n};\n","import { AbstractControl } from '@angular/forms';\nimport { spxValidatorRequired } from './required.validator';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorMin = (min: number) => (control: AbstractControl): { min: { min: number; actual: number } } | null => {\n if (!spxValidatorRequired()(control)) {\n const value = parseInt(valuePairToValue(control.value).toString(), 10);\n\n if (!isNaN(value) && value < min) {\n return {\n min: {\n min,\n actual: value\n }\n };\n }\n }\n return null;\n};\n","import { AbstractControl } from '@angular/forms';\nimport { spxValidatorRequired } from './required.validator';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorMinLength = (minimumLength: number, sanitizer?: (input: string) => string) => (control: AbstractControl): { minlength: { requiredLength: number; actualLength: number } } | null => {\n if (!spxValidatorRequired()(control)) {\n let value = valuePairToValue(control.value);\n if (sanitizer) {\n value = sanitizer(value.toString());\n }\n if (value.toString().length < minimumLength) {\n return {\n minlength: {\n requiredLength: minimumLength,\n actualLength: value.toString().length\n }\n };\n }\n }\n return null;\n};\n","import { AbstractControl, ValidationErrors } from '@angular/forms';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\nimport { spxValidatorRequired } from './required.validator';\n\nexport const spxValidatorPattern = (matcher: RegExp) => (control: AbstractControl): ValidationErrors | null => {\n if (!spxValidatorRequired()(control)) {\n const matches = valuePairToValue(control.value).toString().match(matcher);\n if (matches === null || matches.length === 0) {\n return { pattern: true };\n }\n }\n return null;\n};\n","import { AbstractControl, ValidationErrors } from '@angular/forms';\n\nimport { DateTime } from 'luxon';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\nimport { spxValidatorRequired } from './required.validator';\n\nexport const spxValidatorYearAndMonth = (future?: boolean) => (control: AbstractControl): ValidationErrors | null => {\n if (!spxValidatorRequired()(control)) {\n const val = valuePairToValue(control.value);\n if (val.toUpperCase() !== 'ACEP') {\n const date = DateTime.fromISO(val);\n const year = date.year;\n const month = date.month;\n if (val.length < 6) {\n return {\n minlength: {\n requiredLength: 6,\n actualLength: val.length\n }\n };\n }\n if (month < 1 || month > 12) {\n return { month: true };\n }\n if (future) {\n if (year > 2050 || year < DateTime.now().year) {\n return { yearFuture: true };\n }\n if (DateTime.now().set({ year: year, month: DateTime.now().month - 1 }).startOf('month') < DateTime.now()) {\n return { past: true };\n }\n } else {\n if (year < 1971 || year > DateTime.now().year) {\n return { year: true };\n }\n if (DateTime.now().set({ year: year, month: DateTime.now().month - 1 }).startOf('month') > DateTime.now()) {\n return { future: true };\n }\n }\n }\n }\n return null;\n};\n","\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { AbstractControl, FormsModule } from '@angular/forms';\n\n@Component({\n selector: 'spx-validate-control',\n templateUrl: './spx-validate-control.component.html',\n imports: [\n FormsModule\n ],\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SpxValidateControlComponent {\n readonly control = input.required<AbstractControl>();\n readonly label = input<string | unknown>();\n readonly submitTried = input<boolean>();\n\n maxLength = computed(() => {\n const control = this.control();\n return control.errors && control.errors['maxlength'];\n });\n\n maxLengthRequiredLength = computed(() => {\n const control = this.control();\n return this.maxLength() && control.errors && control.errors['maxlength']['requiredLength'];\n });\n\n minLength = computed(() => {\n const control = this.control();\n return control.errors && control.errors['minlength'];\n });\n\n minLengthRequiredLength = computed(() => {\n const control = this.control();\n return this.minLength() && control.errors && control.errors['minlength']['requiredLength'];\n });\n\n max = computed(() => {\n const control = this.control();\n return control.errors && control.errors['max'];\n });\n\n maxRequiredMax = computed(() => {\n const control = this.control();\n return this.max() && control.errors && control.errors['max']['max'];\n });\n\n min = computed(() => {\n const control = this.control();\n return control.errors && control.errors['min'];\n });\n\n minRequiredMin = computed(() => {\n const control = this.control();\n return this.min() && control.errors && control.errors['min']['min'];\n });\n\n pattern = computed(() => {\n const control = this.control();\n return control.errors && control.errors['pattern'];\n });\n\n required = computed(() => {\n const control = this.control();\n return control.errors && control.errors['required'];\n });\n\n year = computed(() => {\n const control = this.control();\n return control.errors && control.errors['year'];\n });\n\n yearFuture = computed(() => {\n const control = this.control();\n return control.errors && control.errors['yearFuture'];\n });\n\n month = computed(() => {\n const control = this.control();\n return control.errors && control.errors['month'];\n });\n\n future = computed(() => {\n const control = this.control();\n return control.errors && control.errors['future'];\n });\n\n past = computed(() => {\n const control = this.control();\n return control.errors && control.errors['past'];\n });\n}\n","@if (control() && control().errors && (control().touched || submitTried())) {\n @if (maxLength()) {\n <div>'{{ label() }}' is too long, the maximum length is {{ maxLengthRequiredLength() }}.</div>\n }\n @if (minLength()) {\n <div>'{{ label() }}' is too short, the minimum length is {{ minLengthRequiredLength() }}.</div>\n }\n @if (max()) {\n <div>The value of '{{ label() }}' is too high, the maximum is {{ maxRequiredMax() }}.</div>\n }\n @if (min()) {\n <div>The value of '{{ label() }}' is too low, the minimum is {{ minRequiredMin() }}.</div>\n }\n @if (pattern()) {\n <div>The pattern of '{{ label() }}' not valid.</div>\n }\n @if (required()) {\n <div>'{{ label() }}' is required.</div>\n }\n @if (year()) {\n <div>Please choose a year between 1991 and the current year.</div>\n }\n @if (yearFuture()) {\n <div>Please choose a year between the current year and 2050.</div>\n }\n @if (month()) {\n <div>Please choose a valid month (a value between 01 and 12).</div>\n }\n @if (future()) {\n <div>The selected date may not be in the future.</div>\n }\n @if (past()) {\n <div>The selected date may not be in the past.</div>\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAGa,MAAA,oBAAoB,GAAG,MAAM,CAAC,OAAwB,KAA6B;AAC5F,IAAA,IACI,OAAO;AACP,QAAA,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,SAAS;AAC7C,QAAA,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI;AACxC,QAAA,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE;QACtC,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,EACvC;AACE,QAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;;AAE7B,IAAA,OAAO,IAAI;AACf;;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,CAAC;AACH;8GA/EY,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,WAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,UAAA,EAAA,aAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECbxC,uqCAkCC,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,ED1BO,WAAW,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAKN,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBATvC,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,sBAAsB,EAEvB,OAAA,EAAA;wBACL;AACH,qBAAA,EAAA,UAAA,EACW,IAAI,EAAA,eAAA,EACC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,uqCAAA,EAAA;;;AEXnD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"softpak-components-spx-validation.mjs","sources":["../../../../projects/softpak/components/spx-validation/required.validator.ts","../../../../projects/softpak/components/spx-validation/max.validator.ts","../../../../projects/softpak/components/spx-validation/maxlength.validator.ts","../../../../projects/softpak/components/spx-validation/min.validator.ts","../../../../projects/softpak/components/spx-validation/minlength.validator.ts","../../../../projects/softpak/components/spx-validation/pattern.validator.ts","../../../../projects/softpak/components/spx-validation/year-and-month.validator.ts","../../../../projects/softpak/components/spx-validation/spx-validate-control.component.ts","../../../../projects/softpak/components/spx-validation/spx-validate-control.component.html","../../../../projects/softpak/components/spx-validation/softpak-components-spx-validation.ts"],"sourcesContent":["import { AbstractControl, ValidationErrors } from '@angular/forms';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorRequired = () => (control: AbstractControl): ValidationErrors | null => {\n if (\n control &&\n valuePairToValue(control.value) === undefined ||\n valuePairToValue(control.value) === null ||\n valuePairToValue(control.value) === '' ||\n valuePairToValue(control.value) === 0\n ) {\n return { required: true };\n }\n return null;\n};\n","import { AbstractControl } from '@angular/forms';\nimport { spxValidatorRequired } from './required.validator';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorMax = (max: number) => (control: AbstractControl): { max: { max: number; actual: number } } | null => {\n if (!spxValidatorRequired()(control)) {\n const value = parseInt(valuePairToValue(control.value).toString(), 10);\n if (!isNaN(value) && value > max) {\n return {\n max: {\n max,\n actual: value\n }\n };\n }\n }\n return null;\n};\n","import { AbstractControl } from '@angular/forms';\nimport { spxValidatorRequired } from './required.validator';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorMaxLength = (maximumLength: number, sanitizer?: (input: string) => string) => (control: AbstractControl): { maxlength: { requiredLength: number; actualLength: number } } | null => {\n if (!spxValidatorRequired()(control)) {\n let value = valuePairToValue(control.value);\n if (sanitizer) {\n value = sanitizer(value.toString());\n }\n if (value.toString().length > maximumLength) {\n return {\n maxlength: {\n requiredLength: maximumLength,\n actualLength: value.toString().length\n }\n };\n }\n }\n return null;\n};\n","import { AbstractControl } from '@angular/forms';\nimport { spxValidatorRequired } from './required.validator';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorMin = (min: number) => (control: AbstractControl): { min: { min: number; actual: number } } | null => {\n if (!spxValidatorRequired()(control)) {\n const value = parseInt(valuePairToValue(control.value).toString(), 10);\n\n if (!isNaN(value) && value < min) {\n return {\n min: {\n min,\n actual: value\n }\n };\n }\n }\n return null;\n};\n","import { AbstractControl } from '@angular/forms';\nimport { spxValidatorRequired } from './required.validator';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\n\nexport const spxValidatorMinLength = (minimumLength: number, sanitizer?: (input: string) => string) => (control: AbstractControl): { minlength: { requiredLength: number; actualLength: number } } | null => {\n if (!spxValidatorRequired()(control)) {\n let value = valuePairToValue(control.value);\n if (sanitizer) {\n value = sanitizer(value.toString());\n }\n if (value.toString().length < minimumLength) {\n return {\n minlength: {\n requiredLength: minimumLength,\n actualLength: value.toString().length\n }\n };\n }\n }\n return null;\n};\n","import { AbstractControl, ValidationErrors } from '@angular/forms';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\nimport { spxValidatorRequired } from './required.validator';\n\nexport const spxValidatorPattern = (matcher: RegExp) => (control: AbstractControl): ValidationErrors | null => {\n if (!spxValidatorRequired()(control)) {\n const matches = valuePairToValue(control.value).toString().match(matcher);\n if (matches === null || matches.length === 0) {\n return { pattern: true };\n }\n }\n return null;\n};\n","import { AbstractControl, ValidationErrors } from '@angular/forms';\n\nimport { DateTime } from 'luxon';\nimport { valuePairToValue } from '@softpak/components/spx-helpers';\nimport { spxValidatorRequired } from './required.validator';\n\nexport const spxValidatorYearAndMonth = (future?: boolean) => (control: AbstractControl): ValidationErrors | null => {\n if (!spxValidatorRequired()(control)) {\n const val = valuePairToValue(control.value);\n if (val.toUpperCase() !== 'ACEP') {\n const date = DateTime.fromISO(val);\n const year = date.year;\n const month = date.month;\n if (val.length < 6) {\n return {\n minlength: {\n requiredLength: 6,\n actualLength: val.length\n }\n };\n }\n if (month < 1 || month > 12) {\n return { month: true };\n }\n if (future) {\n if (year > 2050 || year < DateTime.now().year) {\n return { yearFuture: true };\n }\n if (DateTime.now().set({ year: year, month: DateTime.now().month - 1 }).startOf('month') < DateTime.now()) {\n return { past: true };\n }\n } else {\n if (year < 1971 || year > DateTime.now().year) {\n return { year: true };\n }\n if (DateTime.now().set({ year: year, month: DateTime.now().month - 1 }).startOf('month') > DateTime.now()) {\n return { future: true };\n }\n }\n }\n }\n return null;\n};\n","\nimport { Component, Input } from '@angular/core';\nimport { AbstractControl, FormsModule } from '@angular/forms';\n\n@Component({\n selector: 'spx-validate-control',\n templateUrl: './spx-validate-control.component.html',\n imports: [\n FormsModule\n ]\n})\nexport class SpxValidateControlComponent {\n @Input() control!: AbstractControl;\n @Input() label: string | unknown;\n @Input() submitTried!: boolean;\n\n get maxLength() {\n return this.control.errors && this.control.errors['maxlength'];\n }\n\n get maxLengthRequiredLength() {\n return this.maxLength && this.control.errors && this.control.errors['maxlength']['requiredLength'];\n }\n\n get minLength() {\n return this.control.errors && this.control.errors['minlength'];\n }\n\n get minLengthRequiredLength() {\n return this.minLength && this.control.errors && this.control.errors['minlength']['requiredLength'];\n }\n\n get max() {\n return this.control.errors && this.control.errors['max'];\n }\n\n get maxRequiredMax() {\n return this.max && this.control.errors && this.control.errors['max']['max'];\n }\n\n get min() {\n return this.control.errors && this.control.errors['min'];\n }\n\n get minRequiredMin() {\n return this.min && this.control.errors && this.control.errors['min']['min'];\n }\n\n get pattern() {\n return this.control.errors && this.control.errors['pattern'];\n }\n\n get required() {\n return this.control.errors && this.control.errors['required'];\n }\n\n get year() {\n return this.control.errors && this.control.errors['year'];\n }\n\n get yearFuture() {\n return this.control.errors && this.control.errors['yearFuture'];\n }\n\n get month() {\n return this.control.errors && this.control.errors['month'];\n }\n\n get future() {\n return this.control.errors && this.control.errors['future'];\n }\n\n get past() {\n return this.control.errors && this.control.errors['past'];\n }\n}\n","@if (control && control.errors && (control.touched || submitTried)) {\n @if (maxLength) {\n <div>'{{ label }}' is too long, the maximum length is {{ maxLengthRequiredLength }}.</div>\n }\n @if (minLength) {\n <div>'{{ label }}' is too short, the minimum length is {{ minLengthRequiredLength }}.</div>\n }\n @if (max) {\n <div>The value of '{{ label }}' is too high, the maximum is {{ maxRequiredMax }}.</div>\n }\n @if (min) {\n <div>The value of '{{ label }}' is too low, the minimum is {{ minRequiredMin }}.</div>\n }\n @if (pattern) {\n <div>The pattern of '{{ label }}' not valid.</div>\n }\n @if (required) {\n <div>'{{ label }}' is required.</div>\n }\n @if (year) {\n <div>Please choose a year between 1991 and the current year.</div>\n }\n @if (yearFuture) {\n <div>Please choose a year between the current year and 2050.</div>\n }\n @if (month) {\n <div>Please choose a valid month (a value between 01 and 12).</div>\n }\n @if (future) {\n <div>The selected date may not be in the future.</div>\n }\n @if (past) {\n <div>The selected date may not be in the past.</div>\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAGa,MAAA,oBAAoB,GAAG,MAAM,CAAC,OAAwB,KAA6B;AAC5F,IAAA,IACI,OAAO;AACP,QAAA,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,SAAS;AAC7C,QAAA,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI;AACxC,QAAA,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE;QACtC,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,EACvC;AACE,QAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;;AAE7B,IAAA,OAAO,IAAI;AACf;;ACVO,MAAM,eAAe,GAAG,CAAC,GAAW,KAAK,CAAC,OAAwB,KAAqD;AAC1H,IAAA,IAAI,CAAC,oBAAoB,EAAE,CAAC,OAAO,CAAC,EAAE;AAClC,QAAA,MAAM,KAAK,GAAG,QAAQ,CAAC,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,CAAC;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AA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECXxC,qnCAkCC,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,ED1BO,WAAW,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAGN,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAPvC,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,sBAAsB,EAEvB,OAAA,EAAA;wBACL;AACH,qBAAA,EAAA,QAAA,EAAA,qnCAAA,EAAA;8BAGM,OAAO,EAAA,CAAA;sBAAf;gBACQ,KAAK,EAAA,CAAA;sBAAb;gBACQ,WAAW,EAAA,CAAA;sBAAnB;;;AEdH;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softpak/components",
|
|
3
|
-
"version": "19.17.0
|
|
3
|
+
"version": "19.17.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "19.x.x",
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"types": "./spx-channel-selection/index.d.ts",
|
|
62
62
|
"default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
|
|
63
63
|
},
|
|
64
|
-
"./spx-confirm": {
|
|
65
|
-
"types": "./spx-confirm/index.d.ts",
|
|
66
|
-
"default": "./fesm2022/softpak-components-spx-confirm.mjs"
|
|
67
|
-
},
|
|
68
64
|
"./spx-check-digit": {
|
|
69
65
|
"types": "./spx-check-digit/index.d.ts",
|
|
70
66
|
"default": "./fesm2022/softpak-components-spx-check-digit.mjs"
|
|
71
67
|
},
|
|
68
|
+
"./spx-confirm": {
|
|
69
|
+
"types": "./spx-confirm/index.d.ts",
|
|
70
|
+
"default": "./fesm2022/softpak-components-spx-confirm.mjs"
|
|
71
|
+
},
|
|
72
72
|
"./spx-form-section": {
|
|
73
73
|
"types": "./spx-form-section/index.d.ts",
|
|
74
74
|
"default": "./fesm2022/softpak-components-spx-form-section.mjs"
|
|
@@ -81,14 +81,14 @@
|
|
|
81
81
|
"types": "./spx-helpers/index.d.ts",
|
|
82
82
|
"default": "./fesm2022/softpak-components-spx-helpers.mjs"
|
|
83
83
|
},
|
|
84
|
-
"./spx-navigation": {
|
|
85
|
-
"types": "./spx-navigation/index.d.ts",
|
|
86
|
-
"default": "./fesm2022/softpak-components-spx-navigation.mjs"
|
|
87
|
-
},
|
|
88
84
|
"./spx-inputs": {
|
|
89
85
|
"types": "./spx-inputs/index.d.ts",
|
|
90
86
|
"default": "./fesm2022/softpak-components-spx-inputs.mjs"
|
|
91
87
|
},
|
|
88
|
+
"./spx-navigation": {
|
|
89
|
+
"types": "./spx-navigation/index.d.ts",
|
|
90
|
+
"default": "./fesm2022/softpak-components-spx-navigation.mjs"
|
|
91
|
+
},
|
|
92
92
|
"./spx-number-check": {
|
|
93
93
|
"types": "./spx-number-check/index.d.ts",
|
|
94
94
|
"default": "./fesm2022/softpak-components-spx-number-check.mjs"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class SpxAlertComponent {
|
|
4
|
-
_autoCloseTimeout:
|
|
4
|
+
_autoCloseTimeout: any;
|
|
5
5
|
spxClose: import("@angular/core").OutputEmitterRef<void>;
|
|
6
6
|
readonly spxAutoclose: import("@angular/core").InputSignal<number | undefined>;
|
|
7
7
|
readonly spxCloseable: import("@angular/core").InputSignal<boolean | undefined>;
|
|
@@ -2,20 +2,20 @@ import { OnChanges } from '@angular/core';
|
|
|
2
2
|
import { SpxAppExpiryI } from './spx-app-expiry.interface';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SpxAppExpiryComponent implements OnChanges {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
warning:
|
|
16
|
-
finalWarning:
|
|
17
|
-
expired:
|
|
5
|
+
txtContactHelpdeskOrSoftpak: string;
|
|
6
|
+
txtExpired: string;
|
|
7
|
+
txtLastReminder: string;
|
|
8
|
+
txtPleaseOpenTheAppStore: string;
|
|
9
|
+
txtPleaseUpdate: string;
|
|
10
|
+
txtThisVersionWillExpireSoon: string;
|
|
11
|
+
txtUpdateAvailable: string;
|
|
12
|
+
txtUpdateTheAppToTheLatestVersion: string;
|
|
13
|
+
spxExpiry: SpxAppExpiryI;
|
|
14
|
+
spxVersion: string;
|
|
15
|
+
warning: boolean;
|
|
16
|
+
finalWarning: boolean;
|
|
17
|
+
expired: boolean;
|
|
18
18
|
ngOnChanges(): void;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpxAppExpiryComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpxAppExpiryComponent, "spx-app-expiry", never, { "txtContactHelpdeskOrSoftpak": { "alias": "txtContactHelpdeskOrSoftpak"; "required":
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpxAppExpiryComponent, "spx-app-expiry", never, { "txtContactHelpdeskOrSoftpak": { "alias": "txtContactHelpdeskOrSoftpak"; "required": false; }; "txtExpired": { "alias": "txtExpired"; "required": false; }; "txtLastReminder": { "alias": "txtLastReminder"; "required": false; }; "txtPleaseOpenTheAppStore": { "alias": "txtPleaseOpenTheAppStore"; "required": false; }; "txtPleaseUpdate": { "alias": "txtPleaseUpdate"; "required": false; }; "txtThisVersionWillExpireSoon": { "alias": "txtThisVersionWillExpireSoon"; "required": false; }; "txtUpdateAvailable": { "alias": "txtUpdateAvailable"; "required": false; }; "txtUpdateTheAppToTheLatestVersion": { "alias": "txtUpdateTheAppToTheLatestVersion"; "required": false; }; "spxExpiry": { "alias": "spxExpiry"; "required": false; }; "spxVersion": { "alias": "spxVersion"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
21
|
}
|
|
@@ -2,6 +2,9 @@ import { ElementRef } from '@angular/core';
|
|
|
2
2
|
import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SpxButtonComponent {
|
|
5
|
+
get hostClassBlock(): boolean | undefined;
|
|
6
|
+
get hostClassHFull(): boolean | undefined;
|
|
7
|
+
get hostClassWFull(): boolean | undefined;
|
|
5
8
|
readonly spxDisabled: import("@angular/core").InputSignal<boolean>;
|
|
6
9
|
readonly spxClass: import("@angular/core").InputSignal<string | undefined>;
|
|
7
10
|
readonly spxClassObject: import("@angular/core").InputSignal<object | undefined>;
|
|
@@ -2,6 +2,7 @@ import { IconProp } from '@fortawesome/angular-fontawesome/types';
|
|
|
2
2
|
import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SpxCardItemComponent {
|
|
5
|
+
hFull: boolean;
|
|
5
6
|
readonly icon: import("@angular/core").InputSignal<IconProp | undefined>;
|
|
6
7
|
readonly iconOnly: import("@angular/core").InputSignal<boolean>;
|
|
7
8
|
readonly spxLabel: import("@angular/core").InputSignal<string>;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class SpxCardComponent {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
clicked:
|
|
4
|
+
clickable: boolean;
|
|
5
|
+
hasContent: boolean;
|
|
6
|
+
onDetailPage: boolean;
|
|
7
|
+
text: string;
|
|
8
|
+
unit?: string;
|
|
9
|
+
tableView: boolean;
|
|
10
|
+
clicked: EventEmitter<void>;
|
|
10
11
|
constructor();
|
|
11
12
|
displayValue(val: string | number): string | number;
|
|
12
13
|
onClick(): void;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpxCardComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpxCardComponent, "spx-card", never, { "clickable": { "alias": "clickable"; "required": false;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpxCardComponent, "spx-card", never, { "clickable": { "alias": "clickable"; "required": false; }; "hasContent": { "alias": "hasContent"; "required": false; }; "onDetailPage": { "alias": "onDetailPage"; "required": false; }; "text": { "alias": "text"; "required": false; }; "unit": { "alias": "unit"; "required": false; }; "tableView": { "alias": "tableView"; "required": false; }; }, { "clicked": "clicked"; }, never, ["[card-header]", "[card-content-top]", "[card-content]", "[card-content-bottom]", "[card-lines]"], true, never>;
|
|
15
16
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
1
2
|
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
2
3
|
import { SpxChangeDetailsValueI } from './spx-change-details-value.interface';
|
|
3
4
|
import { SpxFormI, SpxFormFieldI } from '@softpak/components/spx-form-view';
|
|
@@ -14,28 +15,28 @@ export declare const ctrlCategory = "category";
|
|
|
14
15
|
export declare const ctrlUseCategories = "useCategories";
|
|
15
16
|
export declare class SpxChangeDetailsComponent {
|
|
16
17
|
readonly formBuilder: FormBuilder;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
spxBlurCategory:
|
|
27
|
-
spxBlurContainerType:
|
|
28
|
-
spxSearchCategory:
|
|
29
|
-
spxSearchContainerType:
|
|
30
|
-
spxSearchTonsTested:
|
|
31
|
-
submit:
|
|
18
|
+
formGroup: FormGroup;
|
|
19
|
+
suggestions: any;
|
|
20
|
+
textCategory: string;
|
|
21
|
+
textContainerNumber: string;
|
|
22
|
+
textContainerType: string;
|
|
23
|
+
textCustomer: string;
|
|
24
|
+
textLicensePlate: string;
|
|
25
|
+
textSave: string;
|
|
26
|
+
textTonsTested: string;
|
|
27
|
+
spxBlurCategory: EventEmitter<SpxValuePair<string>>;
|
|
28
|
+
spxBlurContainerType: EventEmitter<SpxValuePair<string>>;
|
|
29
|
+
spxSearchCategory: EventEmitter<SpxValuePair<string>>;
|
|
30
|
+
spxSearchContainerType: EventEmitter<SpxValuePair<string>>;
|
|
31
|
+
spxSearchTonsTested: EventEmitter<SpxValuePair<string>>;
|
|
32
|
+
submit: EventEmitter<SpxChangeDetailsValueI>;
|
|
32
33
|
form: SpxFormI;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
get ctrlCategory(): FormControl;
|
|
35
|
+
get ctrlCustomer(): FormControl;
|
|
36
|
+
get ctrlContainerType(): FormControl;
|
|
37
|
+
get ctrlLicensePlate(): FormControl;
|
|
38
|
+
get ctrlTonsTested(): FormControl;
|
|
39
|
+
get ctrlUseCategories(): FormControl;
|
|
39
40
|
private subContainerType?;
|
|
40
41
|
constructor(formBuilder: FormBuilder);
|
|
41
42
|
createForm(): FormGroup;
|
|
@@ -53,5 +54,5 @@ export declare class SpxChangeDetailsComponent {
|
|
|
53
54
|
onSubmit(): void;
|
|
54
55
|
private listenToContainerType;
|
|
55
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpxChangeDetailsComponent, never>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpxChangeDetailsComponent, "spx-change-details", never, { "formGroup": { "alias": "formGroup"; "required":
|
|
57
|
+
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; }; "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>;
|
|
57
58
|
}
|
|
@@ -3,16 +3,16 @@ import { SpxInputComponent, SpxInputTypeEnum } from '@softpak/components/spx-inp
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SpxCheckDigitComponent {
|
|
5
5
|
private readonly formBuilder;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
ctrlContainerNumberRef
|
|
6
|
+
txtCheckDigit: string;
|
|
7
|
+
txtContainer: string;
|
|
8
|
+
txtPrefix: string;
|
|
9
|
+
ctrlContainerNumberRef?: SpxInputComponent;
|
|
10
10
|
inputTypeOverlayNumber: SpxInputTypeEnum;
|
|
11
11
|
inputTypeText: SpxInputTypeEnum;
|
|
12
|
-
formGroup:
|
|
13
|
-
ctrlCheckDigit:
|
|
14
|
-
ctrlContainerNumber:
|
|
15
|
-
ctrlContainerPrefix:
|
|
12
|
+
formGroup: FormGroup;
|
|
13
|
+
get ctrlCheckDigit(): FormControl;
|
|
14
|
+
get ctrlContainerNumber(): FormControl;
|
|
15
|
+
get ctrlContainerPrefix(): FormControl;
|
|
16
16
|
private inputChanges?;
|
|
17
17
|
constructor(formBuilder: FormBuilder);
|
|
18
18
|
ngOnInit(): void;
|
|
@@ -20,5 +20,5 @@ export declare class SpxCheckDigitComponent {
|
|
|
20
20
|
ngOnDestroy(): void;
|
|
21
21
|
getRawValidators(formControl: FormControl): any;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpxCheckDigitComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpxCheckDigitComponent, "spx-check-digit", never, { "txtCheckDigit": { "alias": "txtCheckDigit"; "required":
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpxCheckDigitComponent, "spx-check-digit", never, { "txtCheckDigit": { "alias": "txtCheckDigit"; "required": false; }; "txtContainer": { "alias": "txtContainer"; "required": false; }; "txtPrefix": { "alias": "txtPrefix"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
24
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class SpxFormSectionComponent {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
spxIndex?: number;
|
|
4
|
+
spxIndexSecondary?: number;
|
|
5
|
+
spxTitle?: string;
|
|
6
|
+
spxShowTitle: boolean;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpxFormSectionComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpxFormSectionComponent, "spx-form-section", never, { "spxIndex": { "alias": "spxIndex"; "required": false;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpxFormSectionComponent, "spx-form-section", never, { "spxIndex": { "alias": "spxIndex"; "required": false; }; "spxIndexSecondary": { "alias": "spxIndexSecondary"; "required": false; }; "spxTitle": { "alias": "spxTitle"; "required": false; }; "spxShowTitle": { "alias": "spxShowTitle"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
9
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
3
3
|
import { SpxFormFieldI } from './spx-form-field.interface';
|
|
4
4
|
import { SpxFormSectionI } from './spx-form-section.interface';
|
|
@@ -10,23 +10,24 @@ export declare const ctrlQuery = "query";
|
|
|
10
10
|
export declare const ctrlOptions = "options";
|
|
11
11
|
export declare class SpxAutocompleteSearchComponent implements OnInit, OnDestroy {
|
|
12
12
|
readonly formBuilder: FormBuilder;
|
|
13
|
-
formGroup:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
spxCancel:
|
|
21
|
-
spxSearch:
|
|
22
|
-
spxSubmit:
|
|
13
|
+
formGroup: FormGroup;
|
|
14
|
+
spxSuggestions: SpxValuePair<any>[];
|
|
15
|
+
spxField: SpxFormFieldI;
|
|
16
|
+
txtOptions: string;
|
|
17
|
+
txtQuery: string;
|
|
18
|
+
txtSubmit: string;
|
|
19
|
+
spxValuePair: SpxValuePair<any>;
|
|
20
|
+
spxCancel: EventEmitter<void>;
|
|
21
|
+
spxSearch: EventEmitter<SpxValuePair<any>>;
|
|
22
|
+
spxSubmit: EventEmitter<SpxValuePair<any>>;
|
|
23
23
|
inputTypeRadio: SpxInputTypeEnum;
|
|
24
24
|
inputTypeText: SpxInputTypeEnum;
|
|
25
25
|
SpxSeverity: typeof SpxSeverityEnum;
|
|
26
26
|
sections: SpxFormSectionI[];
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
private
|
|
27
|
+
get ctrlQuery(): FormControl;
|
|
28
|
+
get ctrlOptions(): FormControl;
|
|
29
|
+
private subSelection?;
|
|
30
|
+
private subQuery?;
|
|
30
31
|
constructor(formBuilder: FormBuilder);
|
|
31
32
|
ngOnInit(): void;
|
|
32
33
|
ngOnDestroy(): void;
|
|
@@ -37,5 +38,5 @@ export declare class SpxAutocompleteSearchComponent implements OnInit, OnDestroy
|
|
|
37
38
|
private listenToQuery;
|
|
38
39
|
private listenToSelection;
|
|
39
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpxAutocompleteSearchComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpxAutocompleteSearchComponent, "spx-autocomplete-search", never, { "spxSuggestions": { "alias": "spxSuggestions"; "required": false;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpxAutocompleteSearchComponent, "spx-autocomplete-search", never, { "spxSuggestions": { "alias": "spxSuggestions"; "required": false; }; "spxField": { "alias": "spxField"; "required": false; }; "txtOptions": { "alias": "txtOptions"; "required": false; }; "txtQuery": { "alias": "txtQuery"; "required": false; }; "txtSubmit": { "alias": "txtSubmit"; "required": false; }; "spxValuePair": { "alias": "spxValuePair"; "required": false; }; }, { "spxCancel": "spxCancel"; "spxSearch": "spxSearch"; "spxSubmit": "spxSubmit"; }, never, never, true, never>;
|
|
41
42
|
}
|
|
@@ -22,7 +22,7 @@ export declare class SpxFormViewComponent {
|
|
|
22
22
|
valuePair: SpxValuePair<any>;
|
|
23
23
|
}>;
|
|
24
24
|
spxInputs: import("@angular/core").Signal<readonly ElementRef<any>[]>;
|
|
25
|
-
|
|
25
|
+
autocompleteField?: SpxFormFieldI;
|
|
26
26
|
typeAutocomplete: SpxInputTypeEnum;
|
|
27
27
|
typeButton: SpxInputTypeEnum;
|
|
28
28
|
typeFloat: SpxInputTypeEnum;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
2
|
import { SpxValuePair } from '../spx-value-interface';
|
|
3
3
|
import { SpxInputTypeEnum } from '../spx-input-type.enum';
|
|
4
4
|
import { SelectedInputService } from '../input.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class SpxInputTextComponent {
|
|
7
|
-
private changeDetectorRef;
|
|
8
7
|
readonly spxName: import("@angular/core").InputSignal<string | undefined>;
|
|
9
8
|
readonly spxAutofocus: import("@angular/core").InputSignal<boolean>;
|
|
10
9
|
readonly spxAutocomplete: import("@angular/core").InputSignal<string | undefined>;
|
|
@@ -21,9 +20,7 @@ export declare class SpxInputTextComponent {
|
|
|
21
20
|
selectedInputService: SelectedInputService;
|
|
22
21
|
spxIsFocused: import("@angular/core").WritableSignal<boolean>;
|
|
23
22
|
inputRef: import("@angular/core").Signal<ElementRef<any>>;
|
|
24
|
-
constructor(changeDetectorRef: ChangeDetectorRef);
|
|
25
23
|
ngOnInit(): void;
|
|
26
|
-
triggerChangeDetection(): void;
|
|
27
24
|
spxSetFocus(): void;
|
|
28
25
|
componentDidLoad(): void;
|
|
29
26
|
handleChange(event: any): void;
|