@softpak/components 0.0.0-beta.2 → 0.0.0-beta.200
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-alert/spx-alert.component.mjs +9 -4
- package/esm2022/spx-button/spx-button.component.mjs +61 -38
- package/esm2022/spx-change-details/public-api.mjs +2 -0
- package/esm2022/spx-change-details/softpak-components-spx-change-details.mjs +5 -0
- package/esm2022/spx-change-details/spx-change-details-value.interface.mjs +2 -0
- package/esm2022/spx-change-details/spx-change-details.component.mjs +199 -0
- package/esm2022/spx-channel-selection/src/spx-channel-selection.component.mjs +6 -5
- package/esm2022/spx-channel-selection/src/spx-company-selection.component.mjs +6 -5
- package/esm2022/spx-check-digit/spx-check-digit.component.mjs +17 -8
- package/esm2022/spx-form-section/spx-form-section.component.mjs +11 -11
- package/esm2022/spx-form-view/public-api.mjs +4 -0
- package/esm2022/spx-form-view/softpak-components-spx-form-view.mjs +5 -0
- package/esm2022/spx-form-view/spx-autocomplete-search.component.mjs +119 -0
- package/esm2022/spx-form-view/spx-form-field.interface.mjs +2 -0
- package/esm2022/spx-form-view/spx-form-section.interface.mjs +2 -0
- package/esm2022/spx-form-view/spx-form-view.component.mjs +268 -0
- package/esm2022/spx-inputs/public-api.mjs +2 -1
- package/esm2022/spx-inputs/spx-dropdown.component.mjs +94 -0
- package/esm2022/spx-inputs/spx-input-box.component.mjs +87 -60
- package/esm2022/spx-inputs/spx-input-date.component.mjs +1 -1
- package/esm2022/spx-inputs/spx-input-float.component.mjs +10 -5
- package/esm2022/spx-inputs/spx-input-number.component.mjs +10 -5
- package/esm2022/spx-inputs/spx-input-radio.component.mjs +93 -27
- package/esm2022/spx-inputs/spx-input-text.component.mjs +32 -33
- package/esm2022/spx-inputs/spx-input-type.enum.mjs +16 -0
- package/esm2022/spx-inputs/spx-input.component.mjs +56 -19
- package/esm2022/spx-navigation/spx-home-tile.component.mjs +47 -12
- package/esm2022/spx-navigation/spx-home-tiles.component.mjs +3 -5
- package/esm2022/spx-navigation/spx-navigation-item.interface.mjs +1 -1
- package/esm2022/spx-navigation/spx-navigation.component.mjs +11 -5
- package/esm2022/spx-number-check/public-api.mjs +2 -0
- package/esm2022/spx-number-check/softpak-components-spx-number-check.mjs +5 -0
- package/esm2022/spx-number-check/spx-number-check.component.mjs +259 -0
- package/esm2022/spx-progress-bar/spx-progress-bar.component.mjs +3 -3
- package/esm2022/spx-spinner/spx-spinner.component.mjs +5 -5
- package/esm2022/spx-suggestion/spx-suggestion.component.mjs +28 -10
- package/esm2022/spx-toaster/src/spx-toaster.component.mjs +33 -21
- package/esm2022/spx-update/src/spx-update-info.component.mjs +1 -1
- package/esm2022/spx-validation/public-api.mjs +1 -2
- package/esm2022/spx-validation/spx-validate-control.component.mjs +8 -3
- package/fesm2022/softpak-components-spx-alert.mjs +8 -3
- package/fesm2022/softpak-components-spx-alert.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-button.mjs +60 -37
- package/fesm2022/softpak-components-spx-button.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-change-details.mjs +206 -0
- package/fesm2022/softpak-components-spx-change-details.mjs.map +1 -0
- package/fesm2022/softpak-components-spx-channel-selection.mjs +9 -7
- package/fesm2022/softpak-components-spx-channel-selection.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-check-digit.mjs +16 -7
- package/fesm2022/softpak-components-spx-check-digit.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-form-section.mjs +10 -10
- package/fesm2022/softpak-components-spx-form-section.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-form-view.mjs +385 -0
- package/fesm2022/softpak-components-spx-form-view.mjs.map +1 -0
- package/fesm2022/softpak-components-spx-inputs.mjs +382 -140
- package/fesm2022/softpak-components-spx-inputs.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-navigation.mjs +57 -19
- package/fesm2022/softpak-components-spx-navigation.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-number-check.mjs +266 -0
- package/fesm2022/softpak-components-spx-number-check.mjs.map +1 -0
- package/fesm2022/softpak-components-spx-progress-bar.mjs +2 -2
- package/fesm2022/softpak-components-spx-progress-bar.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-spinner.mjs +4 -4
- package/fesm2022/softpak-components-spx-spinner.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-suggestion.mjs +27 -9
- package/fesm2022/softpak-components-spx-suggestion.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-toaster.mjs +32 -20
- package/fesm2022/softpak-components-spx-toaster.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-update.mjs +1 -1
- package/fesm2022/softpak-components-spx-update.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-validation.mjs +8 -28
- package/fesm2022/softpak-components-spx-validation.mjs.map +1 -1
- package/package.json +34 -15
- package/spx-button/spx-button.component.d.ts +8 -2
- package/spx-change-details/index.d.ts +5 -0
- package/spx-change-details/public-api.d.ts +1 -0
- package/spx-change-details/spx-change-details-value.interface.d.ts +7 -0
- package/spx-change-details/spx-change-details.component.d.ts +63 -0
- package/spx-channel-selection/src/spx-channel-selection.component.d.ts +2 -1
- package/spx-channel-selection/src/spx-company-selection.component.d.ts +2 -1
- package/spx-check-digit/spx-check-digit.component.d.ts +5 -0
- package/spx-form-view/index.d.ts +5 -0
- package/spx-form-view/public-api.d.ts +3 -0
- package/spx-form-view/spx-autocomplete-search.component.d.ts +43 -0
- package/spx-form-view/spx-form-field.interface.d.ts +18 -0
- package/spx-form-view/spx-form-section.interface.d.ts +9 -0
- package/spx-form-view/spx-form-view.component.d.ts +48 -0
- package/spx-inputs/public-api.d.ts +1 -0
- package/spx-inputs/spx-dropdown.component.d.ts +18 -0
- package/spx-inputs/spx-input-box.component.d.ts +15 -8
- package/spx-inputs/spx-input-float.component.d.ts +3 -2
- package/spx-inputs/spx-input-number.component.d.ts +3 -2
- package/spx-inputs/spx-input-radio.component.d.ts +13 -5
- package/spx-inputs/spx-input-text.component.d.ts +3 -2
- package/spx-inputs/spx-input-type.enum.d.ts +14 -0
- package/spx-inputs/spx-input.component.d.ts +13 -5
- package/spx-navigation/spx-home-tile.component.d.ts +6 -1
- package/spx-navigation/spx-navigation-item.interface.d.ts +2 -0
- package/spx-navigation/spx-navigation.component.d.ts +4 -1
- package/spx-number-check/index.d.ts +5 -0
- package/spx-number-check/public-api.d.ts +1 -0
- package/spx-number-check/spx-number-check.component.d.ts +48 -0
- package/spx-suggestion/spx-suggestion.component.d.ts +3 -1
- package/spx-toaster/src/spx-toaster.component.d.ts +1 -1
- package/spx-validation/public-api.d.ts +0 -1
- package/spx-validation/spx-validate-control.component.d.ts +1 -1
- package/tailwind.css +1 -1
- package/esm2022/spx-validation/spx-validation.module.mjs +0 -28
- package/spx-validation/spx-validation.module.d.ts +0 -9
|
@@ -49,7 +49,7 @@ export class SpxUpdateInfoComponent {
|
|
|
49
49
|
<spx-input [formControl]="ctrlAppStoreVersion" [spxLabel]="txtAppStoreVersion | capitalize"
|
|
50
50
|
[spxReadonly]="true"></spx-input>
|
|
51
51
|
</div>
|
|
52
|
-
</form>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "pipe", type: SpxCapitalizePipe, name: "capitalize" }, { kind: "component", type: SpxInputComponent, selector: "spx-input", inputs: ["spxLabel", "spxMax", "spxMin", "spxName", "spxReadonly", "spxAutofocus", "spxInputMode", "spxPattern", "spxRequired", "spxSelectMonth", "spxSelectDay", "spxShowEdit", "spxShowHelp", "spxCompact", "spxShowClear", "spxShowSearch", "spxShowValidationMessages", "spxStep", "spxSuggestions", "spxType", "spxValidators", "value", "spxCapitalize", "spxFocused"], outputs: ["spxBlur", "spxClear", "spxChange", "spxFocus", "spxEdit", "spxHelp", "spxSearch"] }] }); }
|
|
52
|
+
</form>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "pipe", type: SpxCapitalizePipe, name: "capitalize" }, { kind: "component", type: SpxInputComponent, selector: "spx-input", inputs: ["spxLabel", "spxMax", "spxMin", "spxName", "spxReadonly", "spxAutofocus", "spxInputMode", "spxPattern", "spxRequired", "spxSelectMonth", "spxSelectDay", "spxShowEdit", "spxShowHelp", "spxShowLabel", "spxCompact", "spxShowClear", "spxShowSearch", "spxShowValidationMessages", "spxStep", "spxSuggestions", "spxType", "spxValidators", "value", "spxCapitalize", "spxFocused"], outputs: ["spxBlur", "spxClear", "spxChange", "spxFocus", "spxEdit", "spxHelp", "spxSearch"] }] }); }
|
|
53
53
|
}
|
|
54
54
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SpxUpdateInfoComponent, decorators: [{
|
|
55
55
|
type: Component,
|
|
@@ -6,5 +6,4 @@ export * from './pattern.validator';
|
|
|
6
6
|
export * from './required.validator';
|
|
7
7
|
export * from './year-and-month.validator';
|
|
8
8
|
export * from './spx-validate-control.component';
|
|
9
|
-
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NvZnRwYWsvY29tcG9uZW50cy9zcHgtdmFsaWRhdGlvbi9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsaUJBQWlCLENBQUM7QUFDaEMsY0FBYyx1QkFBdUIsQ0FBQztBQUN0QyxjQUFjLGlCQUFpQixDQUFDO0FBQ2hDLGNBQWMsdUJBQXVCLENBQUM7QUFDdEMsY0FBYyxxQkFBcUIsQ0FBQztBQUNwQyxjQUFjLHNCQUFzQixDQUFDO0FBQ3JDLGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYyxrQ0FBa0MsQ0FBQztBQUNqRCxjQUFjLHlCQUF5QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9tYXgudmFsaWRhdG9yJztcbmV4cG9ydCAqIGZyb20gJy4vbWF4bGVuZ3RoLnZhbGlkYXRvcic7XG5leHBvcnQgKiBmcm9tICcuL21pbi52YWxpZGF0b3InO1xuZXhwb3J0ICogZnJvbSAnLi9taW5sZW5ndGgudmFsaWRhdG9yJztcbmV4cG9ydCAqIGZyb20gJy4vcGF0dGVybi52YWxpZGF0b3InO1xuZXhwb3J0ICogZnJvbSAnLi9yZXF1aXJlZC52YWxpZGF0b3InO1xuZXhwb3J0ICog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c3B4LXZhbGlkYXRlLWNvbnRyb2wuY29tcG9uZW50JztcbiJdfQ==
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
1
2
|
import { Component, Input } from '@angular/core';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
5
|
import * as i1 from "@angular/common";
|
|
4
6
|
export class SpxValidateControlComponent {
|
|
@@ -48,11 +50,14 @@ export class SpxValidateControlComponent {
|
|
|
48
50
|
return this.control.errors && this.control.errors['past'];
|
|
49
51
|
}
|
|
50
52
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SpxValidateControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
51
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: SpxValidateControlComponent, selector: "spx-validate-control", inputs: { control: "control", label: "label", submitTried: "submitTried" }, ngImport: i0, template: "<ng-container *ngIf=\"control && control.errors && (control.touched || submitTried)\">\n <div *ngIf=\"maxLength\">'{{ label }}' is too long, the maximum length is {{ maxLengthRequiredLength }}.</div>\n <div *ngIf=\"minLength\">'{{ label }}' is too short, the minimum length is {{ minLengthRequiredLength }}.</div>\n <div *ngIf=\"max\">The value of '{{ label }}' is too high, the maximum is {{ maxRequiredMax }}.</div>\n <div *ngIf=\"min\">The value of '{{ label }}' is too low, the minimum is {{ minRequiredMin }}.</div>\n <div *ngIf=\"pattern\">The pattern of '{{ label }}' not valid.</div>\n <div *ngIf=\"required\">'{{ label }}' is required.</div>\n <div *ngIf=\"year\">Please choose a year between 1991 and the current year.</div>\n <div *ngIf=\"yearFuture\">Please choose a year between the current year and 2050.</div>\n <div *ngIf=\"month\">Please choose a valid month (a value between 01 and 12).</div>\n <div *ngIf=\"future\">The selected date may not be in the future.</div>\n <div *ngIf=\"past\">The selected date may not be in the past.</div>\n</ng-container>", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
53
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: SpxValidateControlComponent, isStandalone: true, selector: "spx-validate-control", inputs: { control: "control", label: "label", submitTried: "submitTried" }, ngImport: i0, template: "<ng-container *ngIf=\"control && control.errors && (control.touched || submitTried)\">\n <div *ngIf=\"maxLength\">'{{ label }}' is too long, the maximum length is {{ maxLengthRequiredLength }}.</div>\n <div *ngIf=\"minLength\">'{{ label }}' is too short, the minimum length is {{ minLengthRequiredLength }}.</div>\n <div *ngIf=\"max\">The value of '{{ label }}' is too high, the maximum is {{ maxRequiredMax }}.</div>\n <div *ngIf=\"min\">The value of '{{ label }}' is too low, the minimum is {{ minRequiredMin }}.</div>\n <div *ngIf=\"pattern\">The pattern of '{{ label }}' not valid.</div>\n <div *ngIf=\"required\">'{{ label }}' is required.</div>\n <div *ngIf=\"year\">Please choose a year between 1991 and the current year.</div>\n <div *ngIf=\"yearFuture\">Please choose a year between the current year and 2050.</div>\n <div *ngIf=\"month\">Please choose a valid month (a value between 01 and 12).</div>\n <div *ngIf=\"future\">The selected date may not be in the future.</div>\n <div *ngIf=\"past\">The selected date may not be in the past.</div>\n</ng-container>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }] }); }
|
|
52
54
|
}
|
|
53
55
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SpxValidateControlComponent, decorators: [{
|
|
54
56
|
type: Component,
|
|
55
|
-
args: [{ selector: 'spx-validate-control',
|
|
57
|
+
args: [{ selector: 'spx-validate-control', imports: [
|
|
58
|
+
CommonModule,
|
|
59
|
+
FormsModule,
|
|
60
|
+
], standalone: true, template: "<ng-container *ngIf=\"control && control.errors && (control.touched || submitTried)\">\n <div *ngIf=\"maxLength\">'{{ label }}' is too long, the maximum length is {{ maxLengthRequiredLength }}.</div>\n <div *ngIf=\"minLength\">'{{ label }}' is too short, the minimum length is {{ minLengthRequiredLength }}.</div>\n <div *ngIf=\"max\">The value of '{{ label }}' is too high, the maximum is {{ maxRequiredMax }}.</div>\n <div *ngIf=\"min\">The value of '{{ label }}' is too low, the minimum is {{ minRequiredMin }}.</div>\n <div *ngIf=\"pattern\">The pattern of '{{ label }}' not valid.</div>\n <div *ngIf=\"required\">'{{ label }}' is required.</div>\n <div *ngIf=\"year\">Please choose a year between 1991 and the current year.</div>\n <div *ngIf=\"yearFuture\">Please choose a year between the current year and 2050.</div>\n <div *ngIf=\"month\">Please choose a valid month (a value between 01 and 12).</div>\n <div *ngIf=\"future\">The selected date may not be in the future.</div>\n <div *ngIf=\"past\">The selected date may not be in the past.</div>\n</ng-container>" }]
|
|
56
61
|
}], propDecorators: { control: [{
|
|
57
62
|
type: Input
|
|
58
63
|
}], label: [{
|
|
@@ -60,4 +65,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
60
65
|
}], submitTried: [{
|
|
61
66
|
type: Input
|
|
62
67
|
}] } });
|
|
63
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
68
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3B4LXZhbGlkYXRlLWNvbnRyb2wuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc29mdHBhay9jb21wb25lbnRzL3NweC12YWxpZGF0aW9uL3NweC12YWxpZGF0ZS1jb250cm9sLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NvZnRwYWsvY29tcG9uZW50cy9zcHgtdmFsaWRhdGlv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pdj5cbiAgPGRpdiAqbmdJZj1cInBhdHRlcm5cIj5UaGUgcGF0dGVybiBvZiAne3sgbGFiZWwgfX0nIG5vdCB2YWxpZC48L2Rpdj5cbiAgPGRpdiAqbmdJZj1cInJlcXVpcmVkXCI+J3t7IGxhYmVsIH19JyBpcyByZXF1aXJlZC48L2Rpdj5cbiAgPGRpdiAqbmdJZj1cInllYXJcIj5QbGVhc2UgY2hvb3NlIGEgeWVhciBiZXR3ZWVuIDE5OTEgYW5kIHRoZSBjdXJyZW50IHllYXIuPC9kaXY+XG4gIDxkaXYgKm5nSWY9XCJ5ZWFyRnV0dXJlXCI+UGxlYXNlIGNob29zZSBhIHllYXIgYmV0d2VlbiB0aGUgY3VycmVudCB5ZWFyIGFuZCAyMDUwLjwvZGl2PlxuICA8ZGl2ICpuZ0lmPVwibW9udGhcIj5QbGVhc2UgY2hvb3NlIGEgdmFsaWQgbW9udGggKGEgdmFsdWUgYmV0d2VlbiAwMSBhbmQgMTIpLjwvZGl2PlxuICA8ZGl2ICpuZ0lmPVwiZnV0dXJlXCI+VGhlIHNlbGVjdGVkIGRhdGUgbWF5IG5vdCBiZSBpbiB0aGUgZnV0dXJlLjwvZGl2PlxuICA8ZGl2ICpuZ0lmPVwicGFzdFwiPlRoZSBzZWxlY3RlZCBkYXRlIG1heSBub3QgYmUgaW4gdGhlIHBhc3QuPC9kaXY+XG48L25nLWNvbnRhaW5lcj4iXX0=
|
|
@@ -4,7 +4,10 @@ import * as i0 from '@angular/core';
|
|
|
4
4
|
import { EventEmitter, Component, Output, Input } from '@angular/core';
|
|
5
5
|
import * as i2 from '@fortawesome/angular-fontawesome';
|
|
6
6
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
7
|
-
import { faCheck
|
|
7
|
+
import { faCheck } from '@fortawesome/free-solid-svg-icons/faCheck';
|
|
8
|
+
import { faCircleInfo } from '@fortawesome/free-solid-svg-icons/faCircleInfo';
|
|
9
|
+
import { faTimes } from '@fortawesome/free-solid-svg-icons/faTimes';
|
|
10
|
+
import { faTriangleExclamation } from '@fortawesome/free-solid-svg-icons/faTriangleExclamation';
|
|
8
11
|
import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
|
|
9
12
|
|
|
10
13
|
class SpxAlertComponent {
|
|
@@ -86,7 +89,8 @@ class SpxAlertComponent {
|
|
|
86
89
|
[class.over:border-lime-600]="this.spxCloseable && this.isSeveritySuccess"
|
|
87
90
|
[class.focus:ring-amber-600]="this.spxCloseable && this.isSeverityWarning"
|
|
88
91
|
[class.hover:bg-amber-200]="this.spxCloseable && this.isSeverityWarning"
|
|
89
|
-
[class.over:border-amber-600]="this.spxCloseable && this.isSeverityWarning"
|
|
92
|
+
[class.over:border-amber-600]="this.spxCloseable && this.isSeverityWarning"
|
|
93
|
+
(click)="onClose()">
|
|
90
94
|
<fa-icon
|
|
91
95
|
*ngIf="this.isSeverityInfo"
|
|
92
96
|
[icon]="faCircleInfo" class="block text-xl text-cyan-600"></fa-icon>
|
|
@@ -147,7 +151,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
147
151
|
[class.over:border-lime-600]="this.spxCloseable && this.isSeveritySuccess"
|
|
148
152
|
[class.focus:ring-amber-600]="this.spxCloseable && this.isSeverityWarning"
|
|
149
153
|
[class.hover:bg-amber-200]="this.spxCloseable && this.isSeverityWarning"
|
|
150
|
-
[class.over:border-amber-600]="this.spxCloseable && this.isSeverityWarning"
|
|
154
|
+
[class.over:border-amber-600]="this.spxCloseable && this.isSeverityWarning"
|
|
155
|
+
(click)="onClose()">
|
|
151
156
|
<fa-icon
|
|
152
157
|
*ngIf="this.isSeverityInfo"
|
|
153
158
|
[icon]="faCircleInfo" class="block text-xl text-cyan-600"></fa-icon>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softpak-components-spx-alert.mjs","sources":["../../../../projects/softpak/components/spx-alert/spx-alert.component.ts","../../../../projects/softpak/components/spx-alert/spx-alert.interface.ts","../../../../projects/softpak/components/spx-alert/softpak-components-spx-alert.ts"],"sourcesContent":["import { CommonModule, NgIf } from '@angular/common';\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\nimport { faCheck
|
|
1
|
+
{"version":3,"file":"softpak-components-spx-alert.mjs","sources":["../../../../projects/softpak/components/spx-alert/spx-alert.component.ts","../../../../projects/softpak/components/spx-alert/spx-alert.interface.ts","../../../../projects/softpak/components/spx-alert/softpak-components-spx-alert.ts"],"sourcesContent":["import { CommonModule, NgIf } from '@angular/common';\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\nimport { faCheck } from '@fortawesome/free-solid-svg-icons/faCheck';\nimport { faCircleInfo } from '@fortawesome/free-solid-svg-icons/faCircleInfo';\nimport { faTimes } from '@fortawesome/free-solid-svg-icons/faTimes';\nimport { faTriangleExclamation } from '@fortawesome/free-solid-svg-icons/faTriangleExclamation';\nimport { SpxSeverityEnum } from '@softpak/components/spx-helpers';\n\n@Component({\n selector: 'spx-alert',\n standalone: true,\n imports: [\n CommonModule,\n FontAwesomeModule,\n NgIf,\n ],\n template: `\n <div class=\"flex items-center gap-3 border-t-4 rounded px-4 py-3 shadow-md\"\n [class.cursor-pointer]=\"this.spxCloseable\"\n [class.bg-red-100]=\"this.isSeverityError\"\n [class.border-red-500]=\"this.isSeverityError\"\n [class.text-red-900]=\"this.isSeverityError\"\n [class.bg-cyan-100]=\"this.isSeverityInfo\"\n [class.border-cyan-500]=\"this.isSeverityInfo\"\n [class.text-cyan-900]=\"this.isSeverityInfo\"\n [class.bg-lime-100]=\"this.isSeveritySuccess\"\n [class.border-lime-500]=\"this.isSeveritySuccess\"\n [class.text-lime-900]=\"this.isSeveritySuccess\"\n [class.bg-amber-100]=\"this.isSeverityWarning\"\n [class.border-amber-500]=\"this.isSeverityWarning\"\n [class.text-amber-900]=\"this.isSeverityWarning\"\n [class.focus:ring-red-600]=\"this.spxCloseable && this.isSeverityError\"\n [class.hover:bg-red-200]=\"this.spxCloseable && this.isSeverityError\"\n [class.over:border-red-600]=\"this.spxCloseable && this.isSeverityError\"\n [class.focus:ring-cyan-600]=\"this.spxCloseable && this.isSeverityInfo\"\n [class.hover:bg-cyan-200]=\"this.spxCloseable && this.isSeverityInfo\"\n [class.over:border-cyan-600]=\"this.spxCloseable && this.isSeverityInfo\"\n [class.focus:ring-lime-600]=\"this.spxCloseable && this.isSeveritySuccess\"\n [class.hover:bg-lime-200]=\"this.spxCloseable && this.isSeveritySuccess\"\n [class.over:border-lime-600]=\"this.spxCloseable && this.isSeveritySuccess\"\n [class.focus:ring-amber-600]=\"this.spxCloseable && this.isSeverityWarning\"\n [class.hover:bg-amber-200]=\"this.spxCloseable && this.isSeverityWarning\"\n [class.over:border-amber-600]=\"this.spxCloseable && this.isSeverityWarning\"\n (click)=\"onClose()\">\n <fa-icon\n *ngIf=\"this.isSeverityInfo\"\n [icon]=\"faCircleInfo\" class=\"block text-xl text-cyan-600\"></fa-icon>\n <fa-icon\n *ngIf=\"this.isSeverityError\"\n [icon]=\"faTriangleExclamation\" class=\"block text-xl text-red-600\"></fa-icon>\n <fa-icon\n *ngIf=\"this.isSeveritySuccess\"\n [icon]=\"faCheck\" class=\"block text-xl text-lime-600\"></fa-icon>\n <fa-icon\n *ngIf=\"this.isSeverityWarning\"\n [icon]=\"faTriangleExclamation\" class=\"block text-xl text-amber-600\"></fa-icon>\n <div class=\"grow\">\n <p *ngIf=\"this.spxTitle && !this.spxHideTitle\" class=\"font-bold\">{{this.spxTitle}}</p>\n <p class=\"text-sm\">\n <ng-content></ng-content>\n </p>\n </div>\n <fa-icon\n *ngIf=\"this.spxCloseable\"\n [icon]=\"faTimes\" class=\"block text-xl\"></fa-icon>\n </div>\n `,\n})\nexport class SpxAlertComponent {\n _autoCloseTimeout: any;\n @Output() spxClose: EventEmitter<void> = new EventEmitter<void>();\n @Input() spxAutoclose?: number;\n @Input() spxCloseable? = false;\n @Input() spxHideTitle = false;\n @Input() spxTitle?: string;\n @Input() spxMarginTop = false;\n @Input() spxSeverity?: SpxSeverityEnum;\n @Input() tick = {};\n\n get isSeverityError() { return this.spxSeverity === SpxSeverityEnum.error; }\n get isSeverityInfo() { return this.spxSeverity === SpxSeverityEnum.info; }\n get isSeveritySuccess() { return this.spxSeverity === SpxSeverityEnum.success; }\n get isSeverityWarning() { return this.spxSeverity === SpxSeverityEnum.warning; }\n faCheck = faCheck;\n faCircleInfo = faCircleInfo;\n faTriangleExclamation = faTriangleExclamation;\n faTimes = faTimes;\n\n componentDidLoad() {\n if (this.spxAutoclose) {\n this.prepareAutoClose();\n }\n if (!this.spxTitle) {\n this._assignDefaultTitle();\n }\n }\n\n private prepareAutoClose(): void {\n this._autoCloseTimeout = setTimeout(() => {\n this.onClose();\n this._autoCloseTimeout = null;\n this.tick = {};\n }, this.spxAutoclose);\n }\n\n private _assignDefaultTitle(): void {\n switch (this.spxSeverity) {\n case SpxSeverityEnum.error:\n this.spxTitle = 'Error';\n break;\n case SpxSeverityEnum.info:\n this.spxTitle = 'Info';\n break;\n case SpxSeverityEnum.success:\n this.spxTitle = 'Notification';\n break;\n case SpxSeverityEnum.warning:\n this.spxTitle = 'Warning';\n break;\n }\n }\n\n onClose() {\n if (this.spxCloseable) {\n this.spxClose.emit();\n }\n }\n}\n","import { SpxSeverityEnum } from \"@softpak/components/spx-helpers\";\n\nexport class SpxAlertI {\n closeable?: boolean;\n id?: number;\n message?: string;\n severity?: SpxSeverityEnum;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;MAqEa,iBAAiB,CAAA;AA5D9B,IAAA,WAAA,GAAA;AA8DY,QAAA,IAAA,CAAA,QAAQ,GAAuB,IAAI,YAAY,EAAQ,CAAC;QAEzD,IAAY,CAAA,YAAA,GAAI,KAAK,CAAC;QACtB,IAAY,CAAA,YAAA,G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Component, HostBinding, Input, Output } from '@angular/core';
|
|
3
|
+
import { EventEmitter, Component, HostBinding, Input, Output, ViewChild } from '@angular/core';
|
|
3
4
|
import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
|
|
4
5
|
|
|
5
6
|
class SpxButtonComponent {
|
|
@@ -21,73 +22,92 @@ class SpxButtonComponent {
|
|
|
21
22
|
get hostClassBlock() { return this.spxFullWidth; }
|
|
22
23
|
get hostClassHFull() { return this.spxFullHeight; }
|
|
23
24
|
get hostClassWFull() { return this.spxFullWidth; }
|
|
25
|
+
get severityError() { return this.spxSeverity === SpxSeverityEnum.error; }
|
|
26
|
+
get severityInfo() { return this.spxSeverity === SpxSeverityEnum.info; }
|
|
27
|
+
get severitySuccess() { return this.spxSeverity === SpxSeverityEnum.success; }
|
|
28
|
+
get severityWarning() { return this.spxSeverity === SpxSeverityEnum.warning; }
|
|
29
|
+
spxSetFocus() {
|
|
30
|
+
console.log(this.buttonRef);
|
|
31
|
+
this.buttonRef?.nativeElement?.focus();
|
|
32
|
+
}
|
|
24
33
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SpxButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
25
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: SpxButtonComponent, isStandalone: true, selector: "spx-button", inputs: { spxDisabled: "spxDisabled", spxClass: "spxClass", spxClassObject: "spxClassObject", spxForm: "spxForm", spxFullHeight: "spxFullHeight", spxFullWidth: "spxFullWidth", spxSeverity: "spxSeverity", spxSize: "spxSize", spxTabIndex: "spxTabIndex", spxType: "spxType" }, outputs: { spxClick: "spxClick" }, host: { properties: { "class.block": "this.hostClassBlock", "class.h-full": "this.hostClassHFull", "class.w-full": "this.hostClassWFull" } }, ngImport: i0, template: `
|
|
34
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: SpxButtonComponent, isStandalone: true, selector: "spx-button", inputs: { spxDisabled: "spxDisabled", spxClass: "spxClass", spxClassObject: "spxClassObject", spxForm: "spxForm", spxFullHeight: "spxFullHeight", spxFullWidth: "spxFullWidth", spxSeverity: "spxSeverity", spxSize: "spxSize", spxTabIndex: "spxTabIndex", spxType: "spxType" }, outputs: { spxClick: "spxClick" }, host: { properties: { "class.block": "this.hostClassBlock", "class.h-full": "this.hostClassHFull", "class.w-full": "this.hostClassWFull" } }, viewQueries: [{ propertyName: "buttonRef", first: true, predicate: ["buttonRef"], descendants: true, static: true }], ngImport: i0, template: `
|
|
26
35
|
<button
|
|
27
|
-
|
|
36
|
+
#buttonRef
|
|
37
|
+
class="border border-transparent font-bold px-4 relative rounded text-center text-white focus:outline-none focus:ring-2 focus:ring-offset-2"
|
|
28
38
|
[class.h-full]="this.spxFullHeight"
|
|
29
39
|
[class.w-full]="this.spxFullWidth"
|
|
30
|
-
[class.bg-blue-600]="!this.spxSeverity || this.
|
|
31
|
-
[class.focus:ring-blue-500]="!this.spxSeverity || this.
|
|
32
|
-
[class.hover:bg-blue-800]="!this.spxSeverity || this.
|
|
33
|
-
[class.bg-red-600]="
|
|
34
|
-
[class.focus:ring-red-500]="
|
|
35
|
-
[class.hover:bg-red-800]="
|
|
36
|
-
[class.bg-lime-600]="
|
|
37
|
-
[class.focus:ring-lime-500]="
|
|
38
|
-
[class.hover:bg-lime-800]="
|
|
39
|
-
[class.bg-amber-600]="
|
|
40
|
-
[class.focus:ring-amber-500]="
|
|
41
|
-
[class.hover:bg-amber-800]="
|
|
40
|
+
[class.bg-blue-600]="!this.spxSeverity || this.severityInfo"
|
|
41
|
+
[class.focus:ring-blue-500]="!this.spxSeverity || this.severityInfo"
|
|
42
|
+
[class.hover:bg-blue-800]="!this.spxSeverity || this.severityInfo"
|
|
43
|
+
[class.bg-red-600]="this.severityError"
|
|
44
|
+
[class.focus:ring-red-500]="this.severityError"
|
|
45
|
+
[class.hover:bg-red-800]="this.severityError"
|
|
46
|
+
[class.bg-lime-600]="this.severitySuccess"
|
|
47
|
+
[class.focus:ring-lime-500]="this.severitySuccess"
|
|
48
|
+
[class.hover:bg-lime-800]="this.severitySuccess"
|
|
49
|
+
[class.bg-amber-600]="this.severityWarning"
|
|
50
|
+
[class.focus:ring-amber-500]="this.severityWarning"
|
|
51
|
+
[class.hover:bg-amber-800]="this.severityWarning"
|
|
52
|
+
[class.py-2]="!this.spxSize || this.spxSize === 'lg'"
|
|
53
|
+
[class.py-4]="!this.spxSize || this.spxSize === 'xl'"
|
|
42
54
|
[class.text-xl]="this.spxSize === 'xl'"
|
|
43
55
|
[class.text-lg]="this.spxSize === 'lg'"
|
|
44
56
|
[class.cursor-pointer]="!this.spxDisabled"
|
|
45
57
|
[class.cursor-not-allowed]="this.spxDisabled"
|
|
46
58
|
[class.opacity-50]="this.spxDisabled"
|
|
47
59
|
[class.focus:ring-0]="this.spxDisabled"
|
|
48
|
-
[class.hover:bg-red-600]="this.spxDisabled && this.
|
|
49
|
-
[class.hover:bg-blue-600]="this.spxDisabled && this.
|
|
50
|
-
[class.hover:bg-lime-600]="this.spxDisabled && this.
|
|
51
|
-
[class.hover:bg-amber-600]="this.spxDisabled && this.
|
|
60
|
+
[class.hover:bg-red-600]="this.spxDisabled && this.severityError"
|
|
61
|
+
[class.hover:bg-blue-600]="this.spxDisabled && this.severityInfo"
|
|
62
|
+
[class.hover:bg-lime-600]="this.spxDisabled && this.severitySuccess"
|
|
63
|
+
[class.hover:bg-amber-600]="this.spxDisabled && this.severityWarning"
|
|
64
|
+
[ngClass]="this.spxClass ? this.spxClass : undefined"
|
|
52
65
|
[attr.disabled]="this.spxDisabled ? this.spxDisabled : undefined"
|
|
53
66
|
[attr.form]="this.spxForm ? this.spxForm : undefined"
|
|
54
67
|
[attr.tabindex]="this.spxTabIndex ? this.spxTabIndex : undefined"
|
|
55
68
|
[attr.type]="this.spxType ? this.spxType : undefined"
|
|
56
69
|
(click)="this.handleClick()"
|
|
57
|
-
part="button"><ng-content></ng-content></button>`, isInline: true }); }
|
|
70
|
+
part="button"><ng-content></ng-content></button>`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
58
71
|
}
|
|
59
72
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SpxButtonComponent, decorators: [{
|
|
60
73
|
type: Component,
|
|
61
74
|
args: [{
|
|
62
75
|
selector: 'spx-button',
|
|
63
76
|
standalone: true,
|
|
77
|
+
imports: [
|
|
78
|
+
NgClass,
|
|
79
|
+
],
|
|
64
80
|
template: `
|
|
65
81
|
<button
|
|
66
|
-
|
|
82
|
+
#buttonRef
|
|
83
|
+
class="border border-transparent font-bold px-4 relative rounded text-center text-white focus:outline-none focus:ring-2 focus:ring-offset-2"
|
|
67
84
|
[class.h-full]="this.spxFullHeight"
|
|
68
85
|
[class.w-full]="this.spxFullWidth"
|
|
69
|
-
[class.bg-blue-600]="!this.spxSeverity || this.
|
|
70
|
-
[class.focus:ring-blue-500]="!this.spxSeverity || this.
|
|
71
|
-
[class.hover:bg-blue-800]="!this.spxSeverity || this.
|
|
72
|
-
[class.bg-red-600]="
|
|
73
|
-
[class.focus:ring-red-500]="
|
|
74
|
-
[class.hover:bg-red-800]="
|
|
75
|
-
[class.bg-lime-600]="
|
|
76
|
-
[class.focus:ring-lime-500]="
|
|
77
|
-
[class.hover:bg-lime-800]="
|
|
78
|
-
[class.bg-amber-600]="
|
|
79
|
-
[class.focus:ring-amber-500]="
|
|
80
|
-
[class.hover:bg-amber-800]="
|
|
86
|
+
[class.bg-blue-600]="!this.spxSeverity || this.severityInfo"
|
|
87
|
+
[class.focus:ring-blue-500]="!this.spxSeverity || this.severityInfo"
|
|
88
|
+
[class.hover:bg-blue-800]="!this.spxSeverity || this.severityInfo"
|
|
89
|
+
[class.bg-red-600]="this.severityError"
|
|
90
|
+
[class.focus:ring-red-500]="this.severityError"
|
|
91
|
+
[class.hover:bg-red-800]="this.severityError"
|
|
92
|
+
[class.bg-lime-600]="this.severitySuccess"
|
|
93
|
+
[class.focus:ring-lime-500]="this.severitySuccess"
|
|
94
|
+
[class.hover:bg-lime-800]="this.severitySuccess"
|
|
95
|
+
[class.bg-amber-600]="this.severityWarning"
|
|
96
|
+
[class.focus:ring-amber-500]="this.severityWarning"
|
|
97
|
+
[class.hover:bg-amber-800]="this.severityWarning"
|
|
98
|
+
[class.py-2]="!this.spxSize || this.spxSize === 'lg'"
|
|
99
|
+
[class.py-4]="!this.spxSize || this.spxSize === 'xl'"
|
|
81
100
|
[class.text-xl]="this.spxSize === 'xl'"
|
|
82
101
|
[class.text-lg]="this.spxSize === 'lg'"
|
|
83
102
|
[class.cursor-pointer]="!this.spxDisabled"
|
|
84
103
|
[class.cursor-not-allowed]="this.spxDisabled"
|
|
85
104
|
[class.opacity-50]="this.spxDisabled"
|
|
86
105
|
[class.focus:ring-0]="this.spxDisabled"
|
|
87
|
-
[class.hover:bg-red-600]="this.spxDisabled && this.
|
|
88
|
-
[class.hover:bg-blue-600]="this.spxDisabled && this.
|
|
89
|
-
[class.hover:bg-lime-600]="this.spxDisabled && this.
|
|
90
|
-
[class.hover:bg-amber-600]="this.spxDisabled && this.
|
|
106
|
+
[class.hover:bg-red-600]="this.spxDisabled && this.severityError"
|
|
107
|
+
[class.hover:bg-blue-600]="this.spxDisabled && this.severityInfo"
|
|
108
|
+
[class.hover:bg-lime-600]="this.spxDisabled && this.severitySuccess"
|
|
109
|
+
[class.hover:bg-amber-600]="this.spxDisabled && this.severityWarning"
|
|
110
|
+
[ngClass]="this.spxClass ? this.spxClass : undefined"
|
|
91
111
|
[attr.disabled]="this.spxDisabled ? this.spxDisabled : undefined"
|
|
92
112
|
[attr.form]="this.spxForm ? this.spxForm : undefined"
|
|
93
113
|
[attr.tabindex]="this.spxTabIndex ? this.spxTabIndex : undefined"
|
|
@@ -126,6 +146,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
126
146
|
type: Input
|
|
127
147
|
}], spxClick: [{
|
|
128
148
|
type: Output
|
|
149
|
+
}], buttonRef: [{
|
|
150
|
+
type: ViewChild,
|
|
151
|
+
args: ['buttonRef', { static: true }]
|
|
129
152
|
}] } });
|
|
130
153
|
|
|
131
154
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softpak-components-spx-button.mjs","sources":["../../../../projects/softpak/components/spx-button/spx-button.component.ts","../../../../projects/softpak/components/spx-button/softpak-components-spx-button.ts"],"sourcesContent":["import { Component, EventEmitter, HostBinding, Input, Output } from '@angular/core';\nimport { SpxSeverityEnum } from '@softpak/components/spx-helpers';\n\n@Component({\n selector: 'spx-button',\n standalone: true,\n template: `\n <button\n class=\"border border-transparent font-
|
|
1
|
+
{"version":3,"file":"softpak-components-spx-button.mjs","sources":["../../../../projects/softpak/components/spx-button/spx-button.component.ts","../../../../projects/softpak/components/spx-button/softpak-components-spx-button.ts"],"sourcesContent":["import { NgClass } from '@angular/common';\nimport { Component, ElementRef, EventEmitter, HostBinding, Input, Output, ViewChild } from '@angular/core';\nimport { SpxSeverityEnum } from '@softpak/components/spx-helpers';\n\n@Component({\n selector: 'spx-button',\n standalone: true,\n imports: [\n NgClass,\n ],\n template: `\n <button\n #buttonRef\n class=\"border border-transparent font-bold px-4 relative rounded text-center text-white focus:outline-none focus:ring-2 focus:ring-offset-2\"\n [class.h-full]=\"this.spxFullHeight\"\n [class.w-full]=\"this.spxFullWidth\"\n [class.bg-blue-600]=\"!this.spxSeverity || this.severityInfo\"\n [class.focus:ring-blue-500]=\"!this.spxSeverity || this.severityInfo\"\n [class.hover:bg-blue-800]=\"!this.spxSeverity || this.severityInfo\"\n [class.bg-red-600]=\"this.severityError\"\n [class.focus:ring-red-500]=\"this.severityError\"\n [class.hover:bg-red-800]=\"this.severityError\"\n [class.bg-lime-600]=\"this.severitySuccess\"\n [class.focus:ring-lime-500]=\"this.severitySuccess\"\n [class.hover:bg-lime-800]=\"this.severitySuccess\"\n [class.bg-amber-600]=\"this.severityWarning\"\n [class.focus:ring-amber-500]=\"this.severityWarning\"\n [class.hover:bg-amber-800]=\"this.severityWarning\"\n [class.py-2]=\"!this.spxSize || this.spxSize === 'lg'\"\n [class.py-4]=\"!this.spxSize || this.spxSize === 'xl'\"\n [class.text-xl]=\"this.spxSize === 'xl'\"\n [class.text-lg]=\"this.spxSize === 'lg'\"\n [class.cursor-pointer]=\"!this.spxDisabled\"\n [class.cursor-not-allowed]=\"this.spxDisabled\"\n [class.opacity-50]=\"this.spxDisabled\"\n [class.focus:ring-0]=\"this.spxDisabled\"\n [class.hover:bg-red-600]=\"this.spxDisabled && this.severityError\"\n [class.hover:bg-blue-600]=\"this.spxDisabled && this.severityInfo\"\n [class.hover:bg-lime-600]=\"this.spxDisabled && this.severitySuccess\"\n [class.hover:bg-amber-600]=\"this.spxDisabled && this.severityWarning\"\n [ngClass]=\"this.spxClass ? this.spxClass : undefined\"\n [attr.disabled]=\"this.spxDisabled ? this.spxDisabled : undefined\"\n [attr.form]=\"this.spxForm ? this.spxForm : undefined\"\n [attr.tabindex]=\"this.spxTabIndex ? this.spxTabIndex : undefined\"\n [attr.type]=\"this.spxType ? this.spxType : undefined\"\n (click)=\"this.handleClick()\"\n part=\"button\"><ng-content></ng-content></button>`,\n})\nexport class SpxButtonComponent {\n @HostBinding('class.block') get hostClassBlock() { return this.spxFullWidth; }\n @HostBinding('class.h-full') get hostClassHFull() { return this.spxFullHeight; }\n @HostBinding('class.w-full') get hostClassWFull() { return this.spxFullWidth; }\n @Input() spxDisabled = false;\n @Input() spxClass?: string;\n @Input() spxClassObject?: object;\n @Input() spxForm?: string;\n @Input() spxFullHeight?: boolean;\n @Input() spxFullWidth?: boolean;\n @Input() spxSeverity?: SpxSeverityEnum = SpxSeverityEnum.info;\n @Input() spxSize: 'lg' | 'xl' = 'lg';\n @Input() spxTabIndex?: number;\n @Input() spxType: 'button' | 'submit' = 'submit';\n @Output() spxClick: EventEmitter<void> = new EventEmitter<void>();\n @ViewChild('buttonRef', { static: true }) buttonRef?: ElementRef<HTMLInputElement>;\n\n get severityError() { return this.spxSeverity === SpxSeverityEnum.error; }\n get severityInfo() { return this.spxSeverity === SpxSeverityEnum.info; }\n get severitySuccess() { return this.spxSeverity === SpxSeverityEnum.success; }\n get severityWarning() { return this.spxSeverity === SpxSeverityEnum.warning; }\n\n hasShadowDom = (el: HTMLElement) => {\n return !!el.shadowRoot && !!(el as any).attachShadow;\n };\n handleClick = () => {\n if (!this.spxDisabled) {\n this.spxClick.emit();\n }\n }\n\n spxSetFocus(): void {\n console.log(this.buttonRef);\n this.buttonRef?.nativeElement?.focus();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAgDa,kBAAkB,CAAA;AA5C/B,IAAA,WAAA,GAAA;QAgDW,IAAW,CAAA,WAAA,GAAG,KAAK,CAAC;AAMpB,QAAA,IAAA,CAAA,WAAW,GAAqB,eAAe,CAAC,IAAI,CAAC;QACrD,IAAO,CAAA,OAAA,GAAgB,IAAI,CAAC;QAE5B,IAAO,CAAA,OAAA,GAAwB,QAAQ,CAAC;AACvC,QAAA,IAAA,CAAA,QAAQ,GAAuB,IAAI,YAAY,EAAQ,CAAC;AAQlE,QAAA,IAAA,CAAA,YAAY,GAAG,CAAC,EAAe,KAAI;YACjC,OAAO,CAAC,CAAC,EAAE,CAAC,UAAU,IAAI,CAAC,CAAE,EAAU,CAAC,YAAY,CAAC;AACvD,SAAC,CAAC;QACF,IAAW,CAAA,WAAA,GAAG,MAAK;AACjB,YAAA,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;AACrB,gBAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;aACtB;AACH,SAAC,CAAA;AAMF,KAAA;IAlCC,IAAgC,cAAc,KAAK,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE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B,KAAK;gBACG,cAAc,EAAA,CAAA;sBAAtB,KAAK;gBACG,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,aAAa,EAAA,CAAA;sBAArB,KAAK;gBACG,YAAY,EAAA,CAAA;sBAApB,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACI,QAAQ,EAAA,CAAA;sBAAjB,MAAM;gBACmC,SAAS,EAAA,CAAA;sBAAlD,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,WAAW,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;;;AC/D1C;;AAEG;;;;"}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Component, Input, Output } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/forms';
|
|
4
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import { spxValidatorRequired, SpxValidateControlComponent } from '@softpak/components/spx-validation';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import { SpxInputTypeEnum, SpxInputComponent } from '@softpak/components/spx-inputs';
|
|
8
|
+
import { SpxFormViewComponent } from '@softpak/components/spx-form-view';
|
|
9
|
+
import { SpxButtonComponent } from '@softpak/components/spx-button';
|
|
10
|
+
import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
|
|
11
|
+
|
|
12
|
+
const sectionChangeDetails = 'changeDetails';
|
|
13
|
+
const ctrlContainerNumber = 'containerNumber';
|
|
14
|
+
const ctrlContainerPrefix = 'containerPrefix';
|
|
15
|
+
const ctrlContainerSeqNr = 'containerSeqNr';
|
|
16
|
+
const ctrlContainerType = 'containerType';
|
|
17
|
+
const ctrlCustomer = 'customer';
|
|
18
|
+
const ctrlTonsTested = 'tonsTested';
|
|
19
|
+
const ctrlLicensePlate = 'licensePlate';
|
|
20
|
+
const ctrlCategory = 'category';
|
|
21
|
+
class SpxChangeDetailsComponent {
|
|
22
|
+
get ctrlCategory() { return this.formGroup.get(ctrlCategory); }
|
|
23
|
+
get ctrlCustomer() { return this.formGroup.get(ctrlCustomer); }
|
|
24
|
+
get ctrlContainerType() { return this.formGroup.get(ctrlContainerType); }
|
|
25
|
+
get ctrlLicensePlate() { return this.formGroup.get(ctrlLicensePlate); }
|
|
26
|
+
get ctrlTonsTested() { return this.formGroup.get(ctrlTonsTested); }
|
|
27
|
+
constructor(formBuilder) {
|
|
28
|
+
this.formBuilder = formBuilder;
|
|
29
|
+
this.showCategory = false;
|
|
30
|
+
this.suggestions = {};
|
|
31
|
+
this.spxBlurCategory = new EventEmitter();
|
|
32
|
+
this.spxBlurContainerType = new EventEmitter();
|
|
33
|
+
this.spxSearchCategory = new EventEmitter();
|
|
34
|
+
this.spxSearchContainerType = new EventEmitter();
|
|
35
|
+
this.spxSearchTonsTested = new EventEmitter();
|
|
36
|
+
this.submit = new EventEmitter();
|
|
37
|
+
this.inputTypeAutocomplete = SpxInputTypeEnum.autocomplete;
|
|
38
|
+
this.inputTypeRadio = SpxInputTypeEnum.radio;
|
|
39
|
+
this.inputTypeText = SpxInputTypeEnum.text;
|
|
40
|
+
this.severitySuccess = SpxSeverityEnum.success;
|
|
41
|
+
this.sections = [
|
|
42
|
+
{
|
|
43
|
+
key: sectionChangeDetails,
|
|
44
|
+
showTitle: () => false,
|
|
45
|
+
fields: [
|
|
46
|
+
{
|
|
47
|
+
key: ctrlContainerNumber,
|
|
48
|
+
type: () => SpxInputTypeEnum.text,
|
|
49
|
+
label: () => this.txtContainerNumber,
|
|
50
|
+
readonly: () => true,
|
|
51
|
+
validators: () => [spxValidatorRequired()],
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
key: ctrlContainerPrefix,
|
|
55
|
+
type: () => SpxInputTypeEnum.text,
|
|
56
|
+
label: () => this.txtContainerPrefix,
|
|
57
|
+
capitalize: () => true,
|
|
58
|
+
readonly: () => true,
|
|
59
|
+
validators: () => [spxValidatorRequired()],
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
key: ctrlContainerSeqNr,
|
|
63
|
+
type: () => SpxInputTypeEnum.hidden,
|
|
64
|
+
validators: () => [spxValidatorRequired()],
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
key: ctrlCustomer,
|
|
68
|
+
type: () => SpxInputTypeEnum.text,
|
|
69
|
+
capitalize: () => true,
|
|
70
|
+
readonly: () => true,
|
|
71
|
+
label: () => this.txtCustomer,
|
|
72
|
+
validators: () => [spxValidatorRequired()],
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
key: ctrlContainerType,
|
|
76
|
+
type: () => SpxInputTypeEnum.autocomplete,
|
|
77
|
+
label: () => this.txtContainerType,
|
|
78
|
+
capitalize: () => true,
|
|
79
|
+
validators: () => [spxValidatorRequired()],
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
key: ctrlTonsTested,
|
|
83
|
+
type: () => SpxInputTypeEnum.radio,
|
|
84
|
+
label: () => this.txtTonsTested,
|
|
85
|
+
show: () => this.suggestions?.[ctrlTonsTested] && this.suggestions?.[ctrlTonsTested].length && this.suggestions?.[ctrlTonsTested].length > 0,
|
|
86
|
+
validators: () => this.suggestions?.[ctrlTonsTested] && this.suggestions?.[ctrlTonsTested].length && this.suggestions?.[ctrlTonsTested].length > 0 ? [spxValidatorRequired()] : [],
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
key: ctrlLicensePlate,
|
|
90
|
+
type: () => SpxInputTypeEnum.text,
|
|
91
|
+
label: () => this.txtLicensePlate,
|
|
92
|
+
capitalize: () => true,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
key: ctrlCategory,
|
|
96
|
+
type: () => SpxInputTypeEnum.autocomplete,
|
|
97
|
+
label: () => this.txtCategory,
|
|
98
|
+
capitalize: () => true,
|
|
99
|
+
show: () => this.showCategory,
|
|
100
|
+
validators: () => this.showCategory ? [spxValidatorRequired()] : [],
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
];
|
|
105
|
+
}
|
|
106
|
+
createForm() {
|
|
107
|
+
return SpxFormViewComponent.createForm(this.formBuilder, this.sections);
|
|
108
|
+
}
|
|
109
|
+
ngOnInit() {
|
|
110
|
+
this.listenToContainerType();
|
|
111
|
+
}
|
|
112
|
+
ngOnDestroy() {
|
|
113
|
+
if (this.subContainerType) {
|
|
114
|
+
this.subContainerType.unsubscribe();
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
getRawValidators(formControl) {
|
|
118
|
+
return formControl._rawValidators;
|
|
119
|
+
}
|
|
120
|
+
onBlur(data) {
|
|
121
|
+
if (data.field.key === ctrlCategory) {
|
|
122
|
+
this.spxBlurCategory.emit(data.valuePair);
|
|
123
|
+
}
|
|
124
|
+
if (data.field.key === ctrlContainerType) {
|
|
125
|
+
this.spxBlurContainerType.emit(data.valuePair);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
onSearch(data) {
|
|
129
|
+
if (data.field.key === ctrlCategory) {
|
|
130
|
+
this.spxSearchCategory.emit(data.valuePair);
|
|
131
|
+
}
|
|
132
|
+
if (data.field.key === ctrlContainerType) {
|
|
133
|
+
this.spxSearchContainerType.emit(data.valuePair);
|
|
134
|
+
}
|
|
135
|
+
if (data.field.key === ctrlTonsTested) {
|
|
136
|
+
this.spxSearchTonsTested.emit(data.valuePair);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
onSubmit() {
|
|
140
|
+
this.submit.emit({
|
|
141
|
+
category: this.ctrlCategory.value,
|
|
142
|
+
containerType: this.ctrlContainerType.value,
|
|
143
|
+
licensePlate: this.ctrlLicensePlate.value,
|
|
144
|
+
tonsTested: this.ctrlTonsTested.value,
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
listenToContainerType() {
|
|
148
|
+
this.subContainerType = this.ctrlContainerType.valueChanges.subscribe(valuePair => {
|
|
149
|
+
this.ctrlTonsTested.setValue({ value: null });
|
|
150
|
+
this.spxSearchTonsTested.emit(valuePair);
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SpxChangeDetailsComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
154
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: SpxChangeDetailsComponent, isStandalone: true, selector: "spx-change-details", inputs: { formGroup: "formGroup", showCategory: "showCategory", suggestions: "suggestions", txtCategory: "txtCategory", txtContainerNumber: "txtContainerNumber", txtContainerPrefix: "txtContainerPrefix", txtContainerType: "txtContainerType", txtCustomer: "txtCustomer", txtLicensePlate: "txtLicensePlate", txtTonsTested: "txtTonsTested" }, outputs: { spxBlurCategory: "spxBlurCategory", spxBlurContainerType: "spxBlurContainerType", spxSearchCategory: "spxSearchCategory", spxSearchContainerType: "spxSearchContainerType", spxSearchTonsTested: "spxSearchTonsTested", 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 [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>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: SpxButtonComponent, selector: "spx-button", inputs: ["spxDisabled", "spxClass", "spxClassObject", "spxForm", "spxFullHeight", "spxFullWidth", "spxSeverity", "spxSize", "spxTabIndex", "spxType"], outputs: ["spxClick"] }, { kind: "component", type: SpxFormViewComponent, selector: "spx-form-view", inputs: ["spxFormGroup", "spxSections", "spxSuggestions"], outputs: ["spxBlur", "spxClick", "spxSearch"] }] }); }
|
|
155
|
+
}
|
|
156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SpxChangeDetailsComponent, decorators: [{
|
|
157
|
+
type: Component,
|
|
158
|
+
args: [{ selector: 'spx-change-details', standalone: true, imports: [
|
|
159
|
+
CommonModule,
|
|
160
|
+
FormsModule,
|
|
161
|
+
ReactiveFormsModule,
|
|
162
|
+
SpxButtonComponent,
|
|
163
|
+
SpxFormViewComponent,
|
|
164
|
+
SpxInputComponent,
|
|
165
|
+
SpxValidateControlComponent,
|
|
166
|
+
], 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 [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>" }]
|
|
167
|
+
}], ctorParameters: () => [{ type: i1.FormBuilder }], propDecorators: { formGroup: [{
|
|
168
|
+
type: Input
|
|
169
|
+
}], showCategory: [{
|
|
170
|
+
type: Input
|
|
171
|
+
}], suggestions: [{
|
|
172
|
+
type: Input
|
|
173
|
+
}], txtCategory: [{
|
|
174
|
+
type: Input
|
|
175
|
+
}], txtContainerNumber: [{
|
|
176
|
+
type: Input
|
|
177
|
+
}], txtContainerPrefix: [{
|
|
178
|
+
type: Input
|
|
179
|
+
}], txtContainerType: [{
|
|
180
|
+
type: Input
|
|
181
|
+
}], txtCustomer: [{
|
|
182
|
+
type: Input
|
|
183
|
+
}], txtLicensePlate: [{
|
|
184
|
+
type: Input
|
|
185
|
+
}], txtTonsTested: [{
|
|
186
|
+
type: Input
|
|
187
|
+
}], spxBlurCategory: [{
|
|
188
|
+
type: Output
|
|
189
|
+
}], spxBlurContainerType: [{
|
|
190
|
+
type: Output
|
|
191
|
+
}], spxSearchCategory: [{
|
|
192
|
+
type: Output
|
|
193
|
+
}], spxSearchContainerType: [{
|
|
194
|
+
type: Output
|
|
195
|
+
}], spxSearchTonsTested: [{
|
|
196
|
+
type: Output
|
|
197
|
+
}], submit: [{
|
|
198
|
+
type: Output
|
|
199
|
+
}] } });
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Generated bundle index. Do not edit.
|
|
203
|
+
*/
|
|
204
|
+
|
|
205
|
+
export { SpxChangeDetailsComponent, ctrlCategory, ctrlContainerNumber, ctrlContainerPrefix, ctrlContainerSeqNr, ctrlContainerType, ctrlCustomer, ctrlLicensePlate, ctrlTonsTested, sectionChangeDetails };
|
|
206
|
+
//# sourceMappingURL=softpak-components-spx-change-details.mjs.map
|