suis 0.30.1 → 0.31.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +4 -1
- package/esm2022/lib/components/index.mjs +3 -1
- package/esm2022/lib/components/suis-accordion/suis-accordion.component.mjs +7 -9
- package/esm2022/lib/components/suis-alert/suis-alert.component.mjs +7 -9
- package/esm2022/lib/components/suis-box/suis-box.component.mjs +5 -6
- package/esm2022/lib/components/suis-breadcrumbs/suis-breadcrumbs.component.mjs +8 -10
- package/esm2022/lib/components/suis-button/suis-button.component.mjs +7 -9
- package/esm2022/lib/components/suis-button-link/suis-button-link.component.mjs +8 -10
- package/esm2022/lib/components/suis-button-outlined/suis-button-outlined.component.mjs +7 -9
- package/esm2022/lib/components/suis-chip/suis-chip.component.mjs +7 -9
- package/esm2022/lib/components/suis-container/suis-container.component.mjs +6 -8
- package/esm2022/lib/components/suis-dialog/index.mjs +2 -0
- package/esm2022/lib/components/suis-dialog/suis-dialog.component.mjs +62 -0
- package/esm2022/lib/components/suis-dialog-container/index.mjs +3 -0
- package/esm2022/lib/components/suis-dialog-container/suis-dialog-container.component.mjs +17 -0
- package/esm2022/lib/components/suis-dialog-container/suis-dialog-container.interfaces.mjs +2 -0
- package/esm2022/lib/components/suis-form-field/suis-form-field.component.mjs +7 -9
- package/esm2022/lib/components/suis-icon/suis-icon-type.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-icon/suis-icon.component.mjs +7 -9
- package/esm2022/lib/components/suis-input/suis-input.component.mjs +7 -9
- package/esm2022/lib/components/suis-input-checkbox/suis-input-checkbox.component.mjs +8 -10
- package/esm2022/lib/components/suis-input-chips/suis-input-chips.component.mjs +10 -11
- package/esm2022/lib/components/suis-input-image/suis-input-image.component.mjs +8 -10
- package/esm2022/lib/components/suis-input-number/suis-input-number.component.mjs +7 -9
- package/esm2022/lib/components/suis-input-radio/suis-input-radio.component.mjs +7 -9
- package/esm2022/lib/components/suis-item/suis-item.component.mjs +6 -8
- package/esm2022/lib/components/suis-label/suis-label.component.mjs +7 -9
- package/esm2022/lib/components/suis-navigation/suis-navigation.component.mjs +7 -9
- package/esm2022/lib/components/suis-navigation/suis-navigation.module.mjs +6 -7
- package/esm2022/lib/components/suis-navigation-group/suis-navigation-group.component.mjs +8 -9
- package/esm2022/lib/components/suis-navigation-group-item/suis-navigation-group-item.component.mjs +8 -10
- package/esm2022/lib/components/suis-navigation-item/suis-navigation-item.component.mjs +8 -10
- package/esm2022/lib/components/suis-navigation-item/suis-navigation-item.directive.mjs +5 -6
- package/esm2022/lib/components/suis-notification/suis-notification.component.mjs +7 -9
- package/esm2022/lib/components/suis-notifications/suis-notifications.component.mjs +7 -9
- package/esm2022/lib/components/suis-pagination/suis-pagination-items.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-pagination/suis-pagination-page.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-pagination/suis-pagination-per-page-options.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-pagination/suis-pagination.component.mjs +5 -8
- package/esm2022/lib/components/suis-progress-bar/suis-progress-bar.component.mjs +7 -9
- package/esm2022/lib/components/suis-progress-bar/suis-progress-bar.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-select/suis-select-is-selected.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-select/suis-select-label.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-select/suis-select.component.mjs +11 -12
- package/esm2022/lib/components/suis-select/suis-select.module.mjs +6 -7
- package/esm2022/lib/components/suis-select-multi/suis-select-multi-chips.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-select-multi/suis-select-multi-is-selected.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-select-multi/suis-select-multi.component.mjs +11 -12
- package/esm2022/lib/components/suis-select-multi/suis-select-multi.module.mjs +6 -7
- package/esm2022/lib/components/suis-select-option/suis-select-option.component.mjs +7 -9
- package/esm2022/lib/components/suis-select-option/suis-select-option.directive.mjs +5 -6
- package/esm2022/lib/components/suis-spinner/suis-spinner.component.mjs +7 -9
- package/esm2022/lib/components/suis-spinner-container/suis-spinner-container.component.mjs +6 -8
- package/esm2022/lib/components/suis-table/suis-table-cell.directive.mjs +5 -6
- package/esm2022/lib/components/suis-table/suis-table-column.directive.mjs +5 -6
- package/esm2022/lib/components/suis-table/suis-table.component.mjs +13 -9
- package/esm2022/lib/components/suis-table/suis-table.module.mjs +6 -7
- package/esm2022/lib/components/suis-tabs/suis-tab-actions.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-tabs/suis-tab-template.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-tabs/suis-tab.directive.mjs +5 -6
- package/esm2022/lib/components/suis-tabs/suis-tabs.component.mjs +7 -9
- package/esm2022/lib/components/suis-tabs/suis-tabs.module.mjs +6 -7
- package/esm2022/lib/components/suis-text-area/suis-text-area.component.mjs +7 -9
- package/esm2022/lib/components/suis-title/suis-title.component.mjs +6 -8
- package/esm2022/lib/components/suis-toggle/suis-toggle.component.mjs +7 -9
- package/esm2022/lib/components/suis-toolbar/suis-toolbar.component.mjs +6 -8
- package/esm2022/lib/pipes/suis-ng-class.pipe.mjs +5 -6
- package/esm2022/lib/services/index.mjs +2 -1
- package/esm2022/lib/services/suis-dialog.service.mjs +36 -0
- package/esm2022/lib/services/suis-notification.service.mjs +5 -6
- package/esm2022/lib/shared/classes/suis-button.base.mjs +5 -6
- package/esm2022/lib/shared/classes/suis-checkbox.base.mjs +5 -6
- package/esm2022/lib/shared/classes/suis-input.base.mjs +5 -6
- package/esm2022/lib/shared/classes/suis-select.base.mjs +5 -6
- package/esm2022/lib/shared/pipes/suis-select-filter-options.pipe.mjs +5 -6
- package/esm2022/lib/shared/pipes/suis-select-sort-options.pipe.mjs +5 -6
- package/fesm2022/suis.mjs +444 -334
- package/fesm2022/suis.mjs.map +1 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/components/suis-dialog/index.d.ts +1 -0
- package/lib/components/suis-dialog/suis-dialog.component.d.ts +30 -0
- package/lib/components/suis-dialog-container/index.d.ts +2 -0
- package/lib/components/suis-dialog-container/suis-dialog-container.component.d.ts +9 -0
- package/lib/components/suis-dialog-container/suis-dialog-container.interfaces.d.ts +7 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/suis-dialog.service.d.ts +24 -0
- package/package.json +5 -5
@@ -1,21 +1,19 @@
|
|
1
1
|
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
2
|
-
import { CommonModule } from '@angular/common';
|
3
2
|
import * as i0 from "@angular/core";
|
4
|
-
class SuisContainerComponent {
|
3
|
+
export class SuisContainerComponent {
|
5
4
|
constructor() {
|
6
5
|
/**
|
7
6
|
* Adds a padding around the container. By default set to false.
|
8
7
|
*/
|
9
8
|
this.spacing = false;
|
10
9
|
}
|
11
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
12
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
10
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
11
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SuisContainerComponent, isStandalone: true, selector: "suis-container", inputs: { spacing: "spacing" }, ngImport: i0, template: "<div class=\"suis-container\" [class.suis-container--spacing]=\"spacing\">\n <ng-content></ng-content>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block;width:100%}.suis-container{width:100%;margin:auto}.suis-container--spacing{padding:1rem}@media (min-width: 768px){.suis-container{max-width:768px}.suis-container--spacing{padding:1.25rem}}@media (min-width: 992px){.suis-container{max-width:992px}}@media (min-width: 1200px){.suis-container{max-width:1200px}}@media (min-width: 1440px){.suis-container{max-width:1440px}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
13
12
|
}
|
14
|
-
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisContainerComponent, decorators: [{
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisContainerComponent, decorators: [{
|
16
14
|
type: Component,
|
17
|
-
args: [{ selector: 'suis-container', standalone: true, imports: [
|
15
|
+
args: [{ selector: 'suis-container', standalone: true, imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"suis-container\" [class.suis-container--spacing]=\"spacing\">\n <ng-content></ng-content>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block;width:100%}.suis-container{width:100%;margin:auto}.suis-container--spacing{padding:1rem}@media (min-width: 768px){.suis-container{max-width:768px}.suis-container--spacing{padding:1.25rem}}@media (min-width: 992px){.suis-container{max-width:992px}}@media (min-width: 1200px){.suis-container{max-width:1200px}}@media (min-width: 1440px){.suis-container{max-width:1440px}}\n"] }]
|
18
16
|
}], propDecorators: { spacing: [{
|
19
17
|
type: Input
|
20
18
|
}] } });
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1jb250YWluZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zdWlzL3NyYy9saWIvY29tcG9uZW50cy9zdWlzLWNvbnRhaW5lci9zdWlzLWNvbnRhaW5lci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtY29udGFpbmVyL3N1aXMtY29udGFpbmVyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQ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5lclwiIFtjbGFzcy5zdWlzLWNvbnRhaW5lci0tc3BhY2luZ109XCJzcGFjaW5nXCI+XG4gIDxuZy1jb250ZW50PjwvbmctY29udGVudD5cbjwvZGl2PlxuIl19
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export * from './suis-dialog.component';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtZGlhbG9nL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMseUJBQXlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3N1aXMtZGlhbG9nLmNvbXBvbmVudCc7XG4iXX0=
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, inject, } from '@angular/core';
|
2
|
+
import { NgClass, NgIf } from '@angular/common';
|
3
|
+
import { SuisIconComponent } from '../suis-icon';
|
4
|
+
import { SuisButtonComponent } from '../suis-button';
|
5
|
+
import { SuisDialogService } from '../../services/suis-dialog.service';
|
6
|
+
import { SuisNgClassPipe } from '../../pipes';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
export class SuisDialogComponent {
|
9
|
+
constructor() {
|
10
|
+
this.suisDialogService = inject(SuisDialogService);
|
11
|
+
/**
|
12
|
+
* Sets width size of the dialog. Type of SuisSize. By default set to 'md'.
|
13
|
+
*/
|
14
|
+
this.size = 'md';
|
15
|
+
/**
|
16
|
+
* Displays the cancel button in the actions footer of the dialog. By default set to true.
|
17
|
+
*/
|
18
|
+
this.cancelButton = true;
|
19
|
+
/**
|
20
|
+
* Displays the confirm button in the actions footer of the dialog. By default set to true.
|
21
|
+
*/
|
22
|
+
this.confirmButton = true;
|
23
|
+
/**
|
24
|
+
* Emits on confirm button clicked.
|
25
|
+
*/
|
26
|
+
this.confirmed = new EventEmitter();
|
27
|
+
/**
|
28
|
+
* Emits on cancel button or cross icon clicked.
|
29
|
+
*/
|
30
|
+
this.cancelled = new EventEmitter();
|
31
|
+
}
|
32
|
+
onConfirm() {
|
33
|
+
this.confirmed.emit();
|
34
|
+
}
|
35
|
+
onCancel() {
|
36
|
+
this.cancelled.emit();
|
37
|
+
this.suisDialogService.close();
|
38
|
+
}
|
39
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
40
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SuisDialogComponent, isStandalone: true, selector: "suis-dialog", inputs: { size: "size", cancelButton: "cancelButton", confirmButton: "confirmButton" }, outputs: { confirmed: "confirmed", cancelled: "cancelled" }, ngImport: i0, template: "<div class=\"suis-dialog\" [ngClass]=\"'suis-dialog' | suisNgClass : size\">\n <header class=\"suis-dialog__header\">\n <ng-content select=\"[suisDialogHeader]\"></ng-content>\n <button type=\"button\" (click)=\"onCancel()\">\n <suis-icon type=\"cross\" color=\"dark\" size=\"lg\"></suis-icon>\n </button>\n </header>\n <section class=\"suis-dialog__content\">\n <ng-content select=\"[suisDialogContent]\"></ng-content>\n </section>\n <footer class=\"suis-dialog__actions\">\n <suis-button *ngIf=\"cancelButton\" color=\"danger\" (click)=\"onCancel()\">\n Cancel\n </suis-button>\n <suis-button *ngIf=\"confirmButton\" color=\"success\" (click)=\"onConfirm()\">\n Confirm\n </suis-button>\n </footer>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{z-index:30;position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background-color:#f5f6fad9;-webkit-backdrop-filter:blur(.125rem);backdrop-filter:blur(.125rem)}.suis-dialog{background-color:#fff;border:.0625rem solid #dcdde1;border-radius:.25rem;width:100%;margin:1rem}.suis-dialog__header{padding:1rem;border-bottom:.0625rem solid #dcdde1;display:flex;justify-content:space-between;font-weight:500}.suis-dialog__header button{background-color:transparent;border-radius:.25rem;border:0;margin-left:auto}.suis-dialog__header button:hover{cursor:pointer}.suis-dialog__header button:hover{background-color:#dcdde1}.suis-dialog__content{padding:1rem;border-bottom:.0625rem solid #dcdde1;max-height:calc(100vh - 12rem);overflow-y:auto}.suis-dialog__content::-webkit-scrollbar{width:.5rem}.suis-dialog__content::-webkit-scrollbar-track{background:#f5f6fa}.suis-dialog__content::-webkit-scrollbar-thumb{background:#dcdde1}.suis-dialog__content::-webkit-scrollbar-thumb:hover{background:#bcbcbc}.suis-dialog__actions{padding:1rem;display:flex;justify-content:space-between}.suis-dialog--xs{max-width:20rem}.suis-dialog--sm{max-width:25rem}.suis-dialog--md{max-width:30rem}.suis-dialog--lg{max-width:40rem}.suis-dialog--xl{max-width:50rem}@media (min-width: 992px){.suis-dialog--sm{max-width:30rem}.suis-dialog--md{max-width:40rem}.suis-dialog--lg{max-width:50rem}.suis-dialog--xl{max-width:60rem}}@media (min-width: 1200px){.suis-dialog--lg{max-width:60rem}.suis-dialog--xl{max-width:70rem}}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: SuisIconComponent, selector: "suis-icon", inputs: ["size", "color", "type", "outlined", "filled", "pointer", "bold"] }, { kind: "component", type: SuisButtonComponent, selector: "suis-button" }, { kind: "pipe", type: SuisNgClassPipe, name: "suisNgClass" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
41
|
+
}
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisDialogComponent, decorators: [{
|
43
|
+
type: Component,
|
44
|
+
args: [{ selector: 'suis-dialog', standalone: true, imports: [
|
45
|
+
NgIf,
|
46
|
+
NgClass,
|
47
|
+
SuisIconComponent,
|
48
|
+
SuisButtonComponent,
|
49
|
+
SuisNgClassPipe,
|
50
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"suis-dialog\" [ngClass]=\"'suis-dialog' | suisNgClass : size\">\n <header class=\"suis-dialog__header\">\n <ng-content select=\"[suisDialogHeader]\"></ng-content>\n <button type=\"button\" (click)=\"onCancel()\">\n <suis-icon type=\"cross\" color=\"dark\" size=\"lg\"></suis-icon>\n </button>\n </header>\n <section class=\"suis-dialog__content\">\n <ng-content select=\"[suisDialogContent]\"></ng-content>\n </section>\n <footer class=\"suis-dialog__actions\">\n <suis-button *ngIf=\"cancelButton\" color=\"danger\" (click)=\"onCancel()\">\n Cancel\n </suis-button>\n <suis-button *ngIf=\"confirmButton\" color=\"success\" (click)=\"onConfirm()\">\n Confirm\n </suis-button>\n </footer>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{z-index:30;position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background-color:#f5f6fad9;-webkit-backdrop-filter:blur(.125rem);backdrop-filter:blur(.125rem)}.suis-dialog{background-color:#fff;border:.0625rem solid #dcdde1;border-radius:.25rem;width:100%;margin:1rem}.suis-dialog__header{padding:1rem;border-bottom:.0625rem solid #dcdde1;display:flex;justify-content:space-between;font-weight:500}.suis-dialog__header button{background-color:transparent;border-radius:.25rem;border:0;margin-left:auto}.suis-dialog__header button:hover{cursor:pointer}.suis-dialog__header button:hover{background-color:#dcdde1}.suis-dialog__content{padding:1rem;border-bottom:.0625rem solid #dcdde1;max-height:calc(100vh - 12rem);overflow-y:auto}.suis-dialog__content::-webkit-scrollbar{width:.5rem}.suis-dialog__content::-webkit-scrollbar-track{background:#f5f6fa}.suis-dialog__content::-webkit-scrollbar-thumb{background:#dcdde1}.suis-dialog__content::-webkit-scrollbar-thumb:hover{background:#bcbcbc}.suis-dialog__actions{padding:1rem;display:flex;justify-content:space-between}.suis-dialog--xs{max-width:20rem}.suis-dialog--sm{max-width:25rem}.suis-dialog--md{max-width:30rem}.suis-dialog--lg{max-width:40rem}.suis-dialog--xl{max-width:50rem}@media (min-width: 992px){.suis-dialog--sm{max-width:30rem}.suis-dialog--md{max-width:40rem}.suis-dialog--lg{max-width:50rem}.suis-dialog--xl{max-width:60rem}}@media (min-width: 1200px){.suis-dialog--lg{max-width:60rem}.suis-dialog--xl{max-width:70rem}}\n"] }]
|
51
|
+
}], propDecorators: { size: [{
|
52
|
+
type: Input
|
53
|
+
}], cancelButton: [{
|
54
|
+
type: Input
|
55
|
+
}], confirmButton: [{
|
56
|
+
type: Input
|
57
|
+
}], confirmed: [{
|
58
|
+
type: Output
|
59
|
+
}], cancelled: [{
|
60
|
+
type: Output
|
61
|
+
}] } });
|
62
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1kaWFsb2cuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zdWlzL3NyYy9saWIvY29tcG9uZW50cy9zdWlzLWRpYWxvZy9zdWlzLWRpYWxvZy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtZGlhbG9nL3N1aXMtZGlhbG9nLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULFlBQVksRUFDWixLQUFLLEVBQ0wsTUFBTSxFQUNOLE1BQU0sR0FDUCxNQUFNLGVBQWUsQ0FBQztBQU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NlbGVjdD1cIltzdWlzRGlhbG9nQ29udGVudF1cIj48L25nLWNvbnRlbnQ+XG4gIDwvc2VjdGlvbj5cbiAgPGZvb3RlciBjbGFzcz1cInN1aXMtZGlhbG9nX19hY3Rpb25zXCI+XG4gICAgPHN1aXMtYnV0dG9uICpuZ0lmPVwiY2FuY2VsQnV0dG9uXCIgY29sb3I9XCJkYW5nZXJcIiAoY2xpY2spPVwib25DYW5jZWwoKVwiPlxuICAgICAgQ2FuY2VsXG4gICAgPC9zdWlzLWJ1dHRvbj5cbiAgICA8c3Vpcy1idXR0b24gKm5nSWY9XCJjb25maXJtQnV0dG9uXCIgY29sb3I9XCJzdWNjZXNzXCIgKGNsaWNrKT1cIm9uQ29uZmlybSgpXCI+XG4gICAgICBDb25maXJtXG4gICAgPC9zdWlzLWJ1dHRvbj5cbiAgPC9mb290ZXI+XG48L2Rpdj5cbiJdfQ==
|
@@ -0,0 +1,3 @@
|
|
1
|
+
export * from './suis-dialog-container.component';
|
2
|
+
export * from './suis-dialog-container.interfaces';
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtZGlhbG9nLWNvbnRhaW5lci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG1DQUFtQyxDQUFDO0FBQ2xELGNBQWMsb0NBQW9DLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3N1aXMtZGlhbG9nLWNvbnRhaW5lci5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9zdWlzLWRpYWxvZy1jb250YWluZXIuaW50ZXJmYWNlcyc7XG4iXX0=
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { ChangeDetectionStrategy, Component, inject, } from '@angular/core';
|
2
|
+
import { NgComponentOutlet, NgIf } from '@angular/common';
|
3
|
+
import { SuisDialogService } from '../../services';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export class SuisDialogContainerComponent {
|
6
|
+
constructor() {
|
7
|
+
this.suisDialogService = inject(SuisDialogService);
|
8
|
+
this.dialog = this.suisDialogService.getDialog();
|
9
|
+
}
|
10
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisDialogContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
11
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SuisDialogContainerComponent, isStandalone: true, selector: "suis-dialog-container", ngImport: i0, template: "<div class=\"suis-dialog-container\" *ngIf=\"dialog()\">\n <ng-container\n *ngComponentOutlet=\"dialog()!.component; inputs: dialog()!.inputs\"\n ></ng-container>\n</div>\n", styles: [".suis-dialog-container{position:absolute;inset:0;z-index:20}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
12
|
+
}
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisDialogContainerComponent, decorators: [{
|
14
|
+
type: Component,
|
15
|
+
args: [{ selector: 'suis-dialog-container', standalone: true, imports: [NgIf, NgComponentOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"suis-dialog-container\" *ngIf=\"dialog()\">\n <ng-container\n *ngComponentOutlet=\"dialog()!.component; inputs: dialog()!.inputs\"\n ></ng-container>\n</div>\n", styles: [".suis-dialog-container{position:absolute;inset:0;z-index:20}\n"] }]
|
16
|
+
}] });
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1kaWFsb2ctY29udGFpbmVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL2NvbXBvbmVudHMvc3Vpcy1kaWFsb2ctY29udGFpbmVyL3N1aXMtZGlhbG9nLWNvbnRhaW5lci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtZGlhbG9nLWNvbnRhaW5lci9zdWlzLWRpYWxvZy1jb250YWluZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBRVQsTUFBTSxHQUNQLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxJQUFJLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMxRCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQzs7QUFXbkQsTUFBTSxPQUFPLDRCQUE0QjtJQVJ6QztRQVNtQixzQkFBaUIsR0FBRyxNQUFNLENBQUMsaUJBQWlCLENBQUMsQ0FBQztRQUUvRCxXQUFNLEdBQThCLElBQUksQ0FBQyxpQkFBaUIsQ0FBQyxTQUFTLEVBQUUsQ0FBQztLQUN4RTsrR0FKWSw0QkFBNEI7bUdBQTVCLDRCQUE0QixpRkNsQnpDLG1MQUtBLHdIRFFZLElBQUksNkZBQUUsaUJBQWlCOzs0RkFLdEIsNEJBQTRCO2tCQVJ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bmFsPFN1aXNEaWFsb2cgfCBudWxsPiA9IHRoaXMuc3Vpc0RpYWxvZ1NlcnZpY2UuZ2V0RGlhbG9nKCk7XG59XG4iLCI8ZGl2IGNsYXNzPVwic3Vpcy1kaWFsb2ctY29udGFpbmVyXCIgKm5nSWY9XCJkaWFsb2coKVwiPlxuICA8bmctY29udGFpbmVyXG4gICAgKm5nQ29tcG9uZW50T3V0bGV0PVwiZGlhbG9nKCkhLmNvbXBvbmVudDsgaW5wdXRzOiBkaWFsb2coKSEuaW5wdXRzXCJcbiAgPjwvbmctY29udGFpbmVyPlxuPC9kaXY+XG4iXX0=
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export {};
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1kaWFsb2ctY29udGFpbmVyLmludGVyZmFjZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtZGlhbG9nLWNvbnRhaW5lci9zdWlzLWRpYWxvZy1jb250YWluZXIuaW50ZXJmYWNlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiLyogZXNsaW50LWRpc2FibGUgQHR5cGVzY3JpcHQtZXNsaW50L25vLWV4cGxpY2l0LWFueSAqL1xuaW1wb3J0IHsgVHlwZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5leHBvcnQgaW50ZXJmYWNlIFN1aXNEaWFsb2cge1xuICBjb21wb25lbnQ6IFR5cGU8YW55PjtcbiAgaW5wdXRzOiB7IFtrZXk6IHN0cmluZ106IGFueSB9O1xufVxuIl19
|
@@ -1,16 +1,14 @@
|
|
1
1
|
import { ChangeDetectionStrategy, Component, Input, TemplateRef, } from '@angular/core';
|
2
|
-
import {
|
2
|
+
import { NgIf, NgTemplateOutlet } from '@angular/common';
|
3
3
|
import * as i0 from "@angular/core";
|
4
|
-
|
5
|
-
|
6
|
-
static { this.ɵ
|
7
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: SuisFormFieldComponent, isStandalone: true, selector: "suis-form-field", inputs: { errorTemplate: "errorTemplate" }, ngImport: i0, template: "<div class=\"suis-form-field\">\n <ng-content></ng-content>\n <div *ngIf=\"errorTemplate\" class=\"suis-form-field__error\">\n <ng-container [ngTemplateOutlet]=\"errorTemplate\"></ng-container>\n </div>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-form-field{width:100%}.suis-form-field__error{color:#ff4757;margin-top:.375rem;font-size:.75rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
4
|
+
export class SuisFormFieldComponent {
|
5
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisFormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
6
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SuisFormFieldComponent, isStandalone: true, selector: "suis-form-field", inputs: { errorTemplate: "errorTemplate" }, ngImport: i0, template: "<div class=\"suis-form-field\">\n <ng-content></ng-content>\n <div *ngIf=\"errorTemplate\" class=\"suis-form-field__error\">\n <ng-container [ngTemplateOutlet]=\"errorTemplate\"></ng-container>\n </div>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-form-field{width:100%}.suis-form-field__error{color:#ff4757;margin-top:.375rem;font-size:.75rem}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
8
7
|
}
|
9
|
-
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisFormFieldComponent, decorators: [{
|
8
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisFormFieldComponent, decorators: [{
|
11
9
|
type: Component,
|
12
|
-
args: [{ selector: 'suis-form-field', standalone: true, imports: [
|
10
|
+
args: [{ selector: 'suis-form-field', standalone: true, imports: [NgIf, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"suis-form-field\">\n <ng-content></ng-content>\n <div *ngIf=\"errorTemplate\" class=\"suis-form-field__error\">\n <ng-container [ngTemplateOutlet]=\"errorTemplate\"></ng-container>\n </div>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-form-field{width:100%}.suis-form-field__error{color:#ff4757;margin-top:.375rem;font-size:.75rem}\n"] }]
|
13
11
|
}], propDecorators: { errorTemplate: [{
|
14
12
|
type: Input
|
15
13
|
}] } });
|
16
|
-
//# sourceMappingURL=data:application/json;base64,
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1mb3JtLWZpZWxkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2V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llbGQnLFxuICBzdGFuZGFsb25lOiB0cnVlLFxuICBpbXBvcnRzOiBbTmdJZiwgTmdUZW1wbGF0ZU91dGxldF0sXG4gIHRlbXBsYXRlVXJsOiAnLi9zdWlzLWZvcm0tZmllbGQuY29tcG9uZW50Lmh0bWwnLFxuICBzdHlsZVVybHM6IFsnLi9zdWlzLWZvcm0tZmllbGQuY29tcG9uZW50LnNjc3MnXSxcbiAgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsXG59KVxuZXhwb3J0IGNsYXNzIFN1aXNGb3JtRmllbGRDb21wb25lbnQge1xuICAvKipcbiAgICogVGVtcGxhdGUgdG8gYmUgYWRkZWQgYmVsb3cgdGhlIGZpZWxkIHdpdGggZXJyb3IgbWVzc2FnZS5cbiAgICovXG4gIEBJbnB1dCgpIGVycm9yVGVtcGxhdGU/OiBUZW1wbGF0ZVJlZjxIVE1MRWxlbWVudD47XG59XG4iLCI8ZGl2IGNsYXNzPVwic3Vpcy1mb3JtLWZpZWxkXCI+XG4gIDxuZy1jb250ZW50PjwvbmctY29udGVudD5cbiAgPGRpdiAqbmdJZj1cImVycm9yVGVtcGxhdGVcIiBjbGFzcz1cInN1aXMtZm9ybS1maWVsZF9fZXJyb3JcIj5cbiAgICA8bmctY29udGFpbmVyIFtuZ1RlbXBsYXRlT3V0bGV0XT1cImVycm9yVGVtcGxhdGVcIj48L25nLWNvbnRhaW5lcj5cbiAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Pipe } from '@angular/core';
|
2
2
|
import * as i0 from "@angular/core";
|
3
|
-
class SuisIconTypePipe {
|
3
|
+
export class SuisIconTypePipe {
|
4
4
|
transform(type) {
|
5
5
|
switch (type) {
|
6
6
|
case 'info':
|
@@ -31,15 +31,14 @@ class SuisIconTypePipe {
|
|
31
31
|
return '›';
|
32
32
|
}
|
33
33
|
}
|
34
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
35
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.
|
34
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisIconTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
35
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisIconTypePipe, isStandalone: true, name: "suisIconType" }); }
|
36
36
|
}
|
37
|
-
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisIconTypePipe, decorators: [{
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisIconTypePipe, decorators: [{
|
39
38
|
type: Pipe,
|
40
39
|
args: [{
|
41
40
|
standalone: true,
|
42
41
|
name: 'suisIconType',
|
43
42
|
}]
|
44
43
|
}] });
|
45
|
-
//# sourceMappingURL=data:application/json;base64,
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1pY29uLXR5cGUucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL2NvbXBvbmVudHMvc3Vpcy1pY29uL3N1aXMtaWNvbi10eXBlLnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBaUIsTUFBTSxlQUFlLENBQUM7O0FBT3BELE1BQU0sT0FBTyxnQkFBZ0I7SUFDM0IsU0FBUyxDQUFDLElBQWtCO1FBQzFCLFFBQVEsSUFBSSxFQUFFO1lBQ1osS0FBSyxNQUFNO2dCQUNUL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ydCBjbGFzcyBTdWlzSWNvblR5cGVQaXBlIGltcGxlbWVudHMgUGlwZVRyYW5zZm9ybSB7XG4gIHRyYW5zZm9ybSh0eXBlOiBTdWlzSWNvblR5cGUpOiBzdHJpbmcge1xuICAgIHN3aXRjaCAodHlwZSkge1xuICAgICAgY2FzZSAnaW5mbyc6XG4gICAgICAgIHJldHVybiAnJnF1ZXN0Oyc7XG4gICAgICBjYXNlICd3YXJuaW5nJzpcbiAgICAgICAgcmV0dXJuICcmZXhjbDsnO1xuICAgICAgY2FzZSAnY2hlY2snOlxuICAgICAgICByZXR1cm4gJyZjaGVjazsnO1xuICAgICAgY2FzZSAnY3Jvc3MnOlxuICAgICAgICByZXR1cm4gJyZ0aW1lczsnO1xuICAgICAgY2FzZSAncGx1cyc6XG4gICAgICAgIHJldHVybiAnJnBsdXM7JztcbiAgICAgIGNhc2UgJ21pbnVzJzpcbiAgICAgICAgcmV0dXJuICcmbWludXM7JztcbiAgICAgIGNhc2UgJ2Fycm93LWxlZnQnOlxuICAgICAgICByZXR1cm4gJyYjODU5MjsnO1xuICAgICAgY2FzZSAnYXJyb3ctdXAnOlxuICAgICAgICByZXR1cm4gJyYjODU5MzsnO1xuICAgICAgY2FzZSAnYXJyb3ctcmlnaHQnOlxuICAgICAgICByZXR1cm4gJyYjODU5NDsnO1xuICAgICAgY2FzZSAnYXJyb3ctZG93bic6XG4gICAgICAgIHJldHVybiAnJiM4NTk1Oyc7XG4gICAgICBjYXNlICdjaGV2cm9uLXVwJzpcbiAgICAgIGNhc2UgJ2NoZXZyb24tbGVmdCc6XG4gICAgICAgIHJldHVybiAnJmxzYXF1bzsnO1xuICAgICAgY2FzZSAnY2hldnJvbi1kb3duJzpcbiAgICAgIGNhc2UgJ2NoZXZyb24tcmlnaHQnOlxuICAgICAgICByZXR1cm4gJyZyc2FxdW87JztcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
2
|
-
import {
|
2
|
+
import { NgClass } from '@angular/common';
|
3
3
|
import { SuisIconTypePipe } from './suis-icon-type.pipe';
|
4
4
|
import { SuisNgClassPipe } from '../../pipes/suis-ng-class.pipe';
|
5
5
|
import * as i0 from "@angular/core";
|
6
|
-
|
7
|
-
class SuisIconComponent {
|
6
|
+
export class SuisIconComponent {
|
8
7
|
constructor() {
|
9
8
|
/**
|
10
9
|
* Sets the font size of the HTML Entity itself. Type of SuisSize. By default set to 'md'.
|
@@ -35,13 +34,12 @@ class SuisIconComponent {
|
|
35
34
|
*/
|
36
35
|
this.bold = false;
|
37
36
|
}
|
38
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
39
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
37
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
38
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SuisIconComponent, isStandalone: true, selector: "suis-icon", inputs: { size: "size", color: "color", type: "type", outlined: "outlined", filled: "filled", pointer: "pointer", bold: "bold" }, ngImport: i0, template: "<div\n class=\"suis-icon\"\n [class.suis-icon--outlined]=\"outlined\"\n [class.suis-icon--filled]=\"filled\"\n [class.suis-icon--pointer]=\"pointer\"\n [class.suis-icon--bold]=\"bold\"\n [class.suis-icon--rotate]=\"type === 'chevron-up' || type === 'chevron-down'\"\n [ngClass]=\"'suis-icon' | suisNgClass : color : size\"\n>\n <span [innerHTML]=\"type | suisIconType\"></span>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-icon{display:flex;justify-content:center;align-items:center;width:1rem;height:1rem;border-radius:100%;line-height:1rem;background-color:transparent;border:none}.suis-icon--rotate{transform:rotate(90deg)}.suis-icon--outlined{border-width:.0625rem;border-style:solid}.suis-icon--bold{font-weight:700}.suis-icon--pointer{cursor:pointer}.suis-icon--xs{font-size:.5rem}.suis-icon--sm{font-size:.75rem}.suis-icon--md{font-size:1rem}.suis-icon--lg{font-size:1.25rem;width:1.25rem;height:1.25rem}.suis-icon--xl{font-size:2rem;width:2rem;height:2rem}.suis-icon--primary{color:#192a56;border-color:#192a56}.suis-icon--secondary{color:#273c75;border-color:#273c75}.suis-icon--tertiary{color:#dcdde1;border-color:#dcdde1}.suis-icon--complementary{color:#f5f6fa;border-color:#f5f6fa}.suis-icon--success{color:#2ed573;border-color:#2ed573}.suis-icon--warning{color:#ffa502;border-color:#ffa502}.suis-icon--danger{color:#ff4757;border-color:#ff4757}.suis-icon--white{color:#fff;border-color:#fff}.suis-icon--gray{color:#bcbcbc;border-color:#bcbcbc}.suis-icon--dark{color:#000;border-color:#000}.suis-icon--filled{border:none;background-color:#000;color:#fff}.suis-icon--filled.suis-icon--primary{background-color:#192a56}.suis-icon--filled.suis-icon--secondary{background-color:#273c75}.suis-icon--filled.suis-icon--tertiary{background-color:#dcdde1;color:#2f3640}.suis-icon--filled.suis-icon--complementary{background-color:#f5f6fa;color:#2f3640}.suis-icon--filled.suis-icon--success{background-color:#2ed573}.suis-icon--filled.suis-icon--warning{background-color:#ffa502}.suis-icon--filled.suis-icon--danger{background-color:#ff4757}.suis-icon--filled.suis-icon--white{background-color:#fff;color:#2f3640}.suis-icon--filled.suis-icon--gray{background-color:#bcbcbc}.suis-icon--filled.suis-icon--dark{background-color:#000}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: SuisIconTypePipe, name: "suisIconType" }, { kind: "pipe", type: SuisNgClassPipe, name: "suisNgClass" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
40
39
|
}
|
41
|
-
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisIconComponent, decorators: [{
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisIconComponent, decorators: [{
|
43
41
|
type: Component,
|
44
|
-
args: [{ selector: 'suis-icon', standalone: true, imports: [
|
42
|
+
args: [{ selector: 'suis-icon', standalone: true, imports: [NgClass, SuisIconTypePipe, SuisNgClassPipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"suis-icon\"\n [class.suis-icon--outlined]=\"outlined\"\n [class.suis-icon--filled]=\"filled\"\n [class.suis-icon--pointer]=\"pointer\"\n [class.suis-icon--bold]=\"bold\"\n [class.suis-icon--rotate]=\"type === 'chevron-up' || type === 'chevron-down'\"\n [ngClass]=\"'suis-icon' | suisNgClass : color : size\"\n>\n <span [innerHTML]=\"type | suisIconType\"></span>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-icon{display:flex;justify-content:center;align-items:center;width:1rem;height:1rem;border-radius:100%;line-height:1rem;background-color:transparent;border:none}.suis-icon--rotate{transform:rotate(90deg)}.suis-icon--outlined{border-width:.0625rem;border-style:solid}.suis-icon--bold{font-weight:700}.suis-icon--pointer{cursor:pointer}.suis-icon--xs{font-size:.5rem}.suis-icon--sm{font-size:.75rem}.suis-icon--md{font-size:1rem}.suis-icon--lg{font-size:1.25rem;width:1.25rem;height:1.25rem}.suis-icon--xl{font-size:2rem;width:2rem;height:2rem}.suis-icon--primary{color:#192a56;border-color:#192a56}.suis-icon--secondary{color:#273c75;border-color:#273c75}.suis-icon--tertiary{color:#dcdde1;border-color:#dcdde1}.suis-icon--complementary{color:#f5f6fa;border-color:#f5f6fa}.suis-icon--success{color:#2ed573;border-color:#2ed573}.suis-icon--warning{color:#ffa502;border-color:#ffa502}.suis-icon--danger{color:#ff4757;border-color:#ff4757}.suis-icon--white{color:#fff;border-color:#fff}.suis-icon--gray{color:#bcbcbc;border-color:#bcbcbc}.suis-icon--dark{color:#000;border-color:#000}.suis-icon--filled{border:none;background-color:#000;color:#fff}.suis-icon--filled.suis-icon--primary{background-color:#192a56}.suis-icon--filled.suis-icon--secondary{background-color:#273c75}.suis-icon--filled.suis-icon--tertiary{background-color:#dcdde1;color:#2f3640}.suis-icon--filled.suis-icon--complementary{background-color:#f5f6fa;color:#2f3640}.suis-icon--filled.suis-icon--success{background-color:#2ed573}.suis-icon--filled.suis-icon--warning{background-color:#ffa502}.suis-icon--filled.suis-icon--danger{background-color:#ff4757}.suis-icon--filled.suis-icon--white{background-color:#fff;color:#2f3640}.suis-icon--filled.suis-icon--gray{background-color:#bcbcbc}.suis-icon--filled.suis-icon--dark{background-color:#000}\n"] }]
|
45
43
|
}], propDecorators: { size: [{
|
46
44
|
type: Input
|
47
45
|
}], color: [{
|
@@ -57,4 +55,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
|
|
57
55
|
}], bold: [{
|
58
56
|
type: Input
|
59
57
|
}] } });
|
60
|
-
//# sourceMappingURL=data:application/json;base64,
|
58
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1pY29uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL2NvbXBvbmVudHMvc3Vpcy1pY29uL3N1aXMtaWNvbi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtaWNvbi9zdWlzLWljb24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHVCQU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ICogU2hvd3MgdGhlIHBvaW50ZXIgY3Vyc29yIHdoZW4gaG92ZXJlZC4gQnkgZGVmYXVsdCBzZXQgdG8gZmFsc2UuXG4gICAqL1xuICBASW5wdXQoKSBwb2ludGVyOiBib29sZWFuID0gZmFsc2U7XG5cbiAgLyoqXG4gICAqIFNldHMgSFRNTCBFbnRpdHkgZm9udCB3ZWlnaHQgdG8gYm9sZC4gQnkgZGVmYXVsdCBzZXQgdG8gZmFsc2UuXG4gICAqL1xuICBASW5wdXQoKSBib2xkOiBib29sZWFuID0gZmFsc2U7XG59XG4iLCI8ZGl2XG4gIGNsYXNzPVwic3Vpcy1pY29uXCJcbiAgW2NsYXNzLnN1aXMtaWNvbi0tb3V0bGluZWRdPVwib3V0bGluZWRcIlxuICBbY2xhc3Muc3Vpcy1pY29uLS1maWxsZWRdPVwiZmlsbGVkXCJcbiAgW2NsYXNzLnN1aXMtaWNvbi0tcG9pbnRlcl09XCJwb2ludGVyXCJcbiAgW2NsYXNzLnN1aXMtaWNvbi0tYm9sZF09XCJib2xkXCJcbiAgW2NsYXNzLnN1aXMtaWNvbi0tcm90YXRlXT1cInR5cGUgPT09ICdjaGV2cm9uLXVwJyB8fCB0eXBlID09PSAnY2hldnJvbi1kb3duJ1wiXG4gIFtuZ0NsYXNzXT1cIidzdWlzLWljb24nIHwgc3Vpc05nQ2xhc3MgOiBjb2xvciA6IHNpemVcIlxuPlxuICA8c3BhbiBbaW5uZXJIVE1MXT1cInR5cGUgfCBzdWlzSWNvblR5cGVcIj48L3NwYW4+XG48L2Rpdj5cbiJdfQ==
|
@@ -1,9 +1,8 @@
|
|
1
1
|
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, forwardRef, } from '@angular/core';
|
2
|
-
import { CommonModule } from '@angular/common';
|
3
2
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
4
3
|
import { SuisInputBase } from '../../shared/classes/suis-input.base';
|
5
4
|
import * as i0 from "@angular/core";
|
6
|
-
class SuisInputComponent extends SuisInputBase {
|
5
|
+
export class SuisInputComponent extends SuisInputBase {
|
7
6
|
constructor() {
|
8
7
|
super(...arguments);
|
9
8
|
/**
|
@@ -37,19 +36,18 @@ class SuisInputComponent extends SuisInputBase {
|
|
37
36
|
onEnter() {
|
38
37
|
this.enterPressed.emit();
|
39
38
|
}
|
40
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
41
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
39
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisInputComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
40
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SuisInputComponent, isStandalone: true, selector: "suis-input", inputs: { type: "type", placeholder: "placeholder" }, outputs: { enterPressed: "enterPressed" }, providers: [
|
42
41
|
{
|
43
42
|
provide: NG_VALUE_ACCESSOR,
|
44
43
|
multi: true,
|
45
44
|
useExisting: forwardRef(() => SuisInputComponent),
|
46
45
|
},
|
47
|
-
], usesInheritance: true, ngImport: i0, template: "<input\n class=\"suis-input\"\n [class.suis-input--invalid]=\"invalid\"\n [attr.id]=\"id\"\n [attr.name]=\"name\"\n [type]=\"type\"\n [value]=\"value\"\n [placeholder]=\"placeholder\"\n [disabled]=\"readonly\"\n (input)=\"onChange($event)\"\n (focus)=\"onTouch()\"\n (keydown.enter)=\"onEnter()\"\n/>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-input{width:100%;background-color:#fff;border-radius:.25rem;padding:.5rem 1rem;border:.0625rem solid #dcdde1;min-height:2.25rem}.suis-input:focus{border:.0625rem solid #192a56;box-shadow:0 2px 5px #192a56bf;outline:none}.suis-input--invalid{border:.0625rem solid #ff4757}.suis-input--invalid:focus{border:.0625rem solid #ff4757;box-shadow:0 2px 5px #ff4757bf}\n"],
|
46
|
+
], usesInheritance: true, ngImport: i0, template: "<input\n class=\"suis-input\"\n [class.suis-input--invalid]=\"invalid\"\n [attr.id]=\"id\"\n [attr.name]=\"name\"\n [type]=\"type\"\n [value]=\"value\"\n [placeholder]=\"placeholder\"\n [disabled]=\"readonly\"\n (input)=\"onChange($event)\"\n (focus)=\"onTouch()\"\n (keydown.enter)=\"onEnter()\"\n/>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-input{width:100%;background-color:#fff;border-radius:.25rem;padding:.5rem 1rem;border:.0625rem solid #dcdde1;min-height:2.25rem}.suis-input:focus{border:.0625rem solid #192a56;box-shadow:0 2px 5px #192a56bf;outline:none}.suis-input--invalid{border:.0625rem solid #ff4757}.suis-input--invalid:focus{border:.0625rem solid #ff4757;box-shadow:0 2px 5px #ff4757bf}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
48
47
|
}
|
49
|
-
|
50
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisInputComponent, decorators: [{
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisInputComponent, decorators: [{
|
51
49
|
type: Component,
|
52
|
-
args: [{ selector: 'suis-input', standalone: true, imports: [
|
50
|
+
args: [{ selector: 'suis-input', standalone: true, imports: [], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
53
51
|
{
|
54
52
|
provide: NG_VALUE_ACCESSOR,
|
55
53
|
multi: true,
|
@@ -63,4 +61,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
|
|
63
61
|
}], enterPressed: [{
|
64
62
|
type: Output
|
65
63
|
}] } });
|
66
|
-
//# sourceMappingURL=data:application/json;base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2hhbmdlKHRoaXMudmFsdWUpO1xuICAgIHRoaXMuY2hhbmdlZC5lbWl0KHRoaXMudmFsdWUpO1xuICAgIHRoaXMuY2RSZWYubWFya0ZvckNoZWNrKCk7XG4gIH1cblxuICBvbkVudGVyKCk6IHZvaWQge1xuICAgIHRoaXMuZW50ZXJQcmVzc2VkLmVtaXQoKTtcbiAgfVxufVxuIiwiPGlucHV0XG4gIGNsYXNzPVwic3Vpcy1pbnB1dFwiXG4gIFtjbGFzcy5zdWlzLWlucHV0LS1pbnZhbGlkXT1cImludmFsaWRcIlxuICBbYXR0ci5pZF09XCJpZFwiXG4gIFthdHRyLm5hbWVdPVwibmFtZVwiXG4gIFt0eXBlXT1cInR5cGVcIlxuICBbdmFsdWVdPVwidmFsdWVcIlxuICBbcGxhY2Vob2xkZXJdPVwicGxhY2Vob2xkZXJcIlxuICBbZGlzYWJsZWRdPVwicmVhZG9ubHlcIlxuICAoaW5wdXQpPVwib25DaGFuZ2UoJGV2ZW50KVwiXG4gIChmb2N1cyk9XCJvblRvdWNoKClcIlxuICAoa2V5ZG93bi5lbnRlcik9XCJvbkVudGVyKClcIlxuLz5cbiJdfQ==
|
@@ -1,25 +1,23 @@
|
|
1
1
|
import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';
|
2
|
-
import {
|
2
|
+
import { NgIf } from '@angular/common';
|
3
3
|
import { SuisLabelComponent } from '../suis-label/suis-label.component';
|
4
4
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
5
5
|
import { SuisIconComponent } from '../suis-icon/suis-icon.component';
|
6
6
|
import { SuisCheckboxBase } from '../../shared/classes/suis-checkbox.base';
|
7
7
|
import * as i0 from "@angular/core";
|
8
|
-
|
9
|
-
|
10
|
-
static { this.ɵ
|
11
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: SuisInputCheckboxComponent, isStandalone: true, selector: "suis-input-checkbox", providers: [
|
8
|
+
export class SuisInputCheckboxComponent extends SuisCheckboxBase {
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisInputCheckboxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
10
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SuisInputCheckboxComponent, isStandalone: true, selector: "suis-input-checkbox", providers: [
|
12
11
|
{
|
13
12
|
provide: NG_VALUE_ACCESSOR,
|
14
13
|
multi: true,
|
15
14
|
useExisting: forwardRef(() => SuisInputCheckboxComponent),
|
16
15
|
},
|
17
|
-
], usesInheritance: true, ngImport: i0, template: "<input\n #input\n type=\"checkbox\"\n class=\"suis-input-checkbox\"\n [attr.id]=\"id\"\n [attr.name]=\"name\"\n [value]=\"value\"\n [disabled]=\"readonly\"\n (input)=\"onChange($event)\"\n (focus)=\"onTouch()\"\n/>\n\n<suis-label\n [for]=\"id\"\n [required]=\"required\"\n [pointer]=\"true\"\n [readonly]=\"readonly\"\n>\n <div\n [tabindex]=\"readonly ? -1 : 0\"\n class=\"suis-input-checkbox__check\"\n [class.suis-input-checkbox__check--invalid]=\"invalid\"\n [class.suis-input-checkbox__check--readonly]=\"readonly\"\n >\n <suis-icon\n *ngIf=\"value\"\n type=\"check\"\n [color]=\"readonly ? 'tertiary' : 'primary'\"\n ></suis-icon>\n </div>\n <ng-content></ng-content>\n</suis-label>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:flex}.suis-input-checkbox{display:none}.suis-input-checkbox:checked~suis-label ::ng-deep .suis-input-checkbox__check{border:.0625rem solid #192a56}.suis-input-checkbox__check{width:1.25rem;height:1.25rem;border:.0625rem solid #dcdde1;display:flex;justify-content:center;align-items:center;margin-right:.5rem;background-color:#fff;border-radius:.25rem}.suis-input-checkbox__check:focus{box-shadow:0 2px 5px #192a56bf;outline:none}.suis-input-checkbox__check--readonly{border:.0625rem solid #dcdde1}.suis-input-checkbox__check--readonly:focus{box-shadow:none}.suis-input-checkbox__check--invalid{border:.0625rem solid #ff4757}.suis-input-checkbox__check--invalid:focus{box-shadow:0 2px 5px #ff4757bf}\n"], dependencies: [{ kind: "
|
16
|
+
], usesInheritance: true, ngImport: i0, template: "<input\n #input\n type=\"checkbox\"\n class=\"suis-input-checkbox\"\n [attr.id]=\"id\"\n [attr.name]=\"name\"\n [value]=\"value\"\n [disabled]=\"readonly\"\n (input)=\"onChange($event)\"\n (focus)=\"onTouch()\"\n/>\n\n<suis-label\n [for]=\"id\"\n [required]=\"required\"\n [pointer]=\"true\"\n [readonly]=\"readonly\"\n>\n <div\n [tabindex]=\"readonly ? -1 : 0\"\n class=\"suis-input-checkbox__check\"\n [class.suis-input-checkbox__check--invalid]=\"invalid\"\n [class.suis-input-checkbox__check--readonly]=\"readonly\"\n >\n <suis-icon\n *ngIf=\"value\"\n type=\"check\"\n [color]=\"readonly ? 'tertiary' : 'primary'\"\n ></suis-icon>\n </div>\n <ng-content></ng-content>\n</suis-label>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:flex}.suis-input-checkbox{display:none}.suis-input-checkbox:checked~suis-label ::ng-deep .suis-input-checkbox__check{border:.0625rem solid #192a56}.suis-input-checkbox__check{width:1.25rem;height:1.25rem;border:.0625rem solid #dcdde1;display:flex;justify-content:center;align-items:center;margin-right:.5rem;background-color:#fff;border-radius:.25rem}.suis-input-checkbox__check:focus{box-shadow:0 2px 5px #192a56bf;outline:none}.suis-input-checkbox__check--readonly{border:.0625rem solid #dcdde1}.suis-input-checkbox__check--readonly:focus{box-shadow:none}.suis-input-checkbox__check--invalid{border:.0625rem solid #ff4757}.suis-input-checkbox__check--invalid:focus{box-shadow:0 2px 5px #ff4757bf}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SuisLabelComponent, selector: "suis-label", inputs: ["for", "required", "pointer", "readonly"] }, { kind: "component", type: SuisIconComponent, selector: "suis-icon", inputs: ["size", "color", "type", "outlined", "filled", "pointer", "bold"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
18
17
|
}
|
19
|
-
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisInputCheckboxComponent, decorators: [{
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisInputCheckboxComponent, decorators: [{
|
21
19
|
type: Component,
|
22
|
-
args: [{ selector: 'suis-input-checkbox', standalone: true, imports: [
|
20
|
+
args: [{ selector: 'suis-input-checkbox', standalone: true, imports: [NgIf, SuisLabelComponent, SuisIconComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
23
21
|
{
|
24
22
|
provide: NG_VALUE_ACCESSOR,
|
25
23
|
multi: true,
|
@@ -27,4 +25,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
|
|
27
25
|
},
|
28
26
|
], template: "<input\n #input\n type=\"checkbox\"\n class=\"suis-input-checkbox\"\n [attr.id]=\"id\"\n [attr.name]=\"name\"\n [value]=\"value\"\n [disabled]=\"readonly\"\n (input)=\"onChange($event)\"\n (focus)=\"onTouch()\"\n/>\n\n<suis-label\n [for]=\"id\"\n [required]=\"required\"\n [pointer]=\"true\"\n [readonly]=\"readonly\"\n>\n <div\n [tabindex]=\"readonly ? -1 : 0\"\n class=\"suis-input-checkbox__check\"\n [class.suis-input-checkbox__check--invalid]=\"invalid\"\n [class.suis-input-checkbox__check--readonly]=\"readonly\"\n >\n <suis-icon\n *ngIf=\"value\"\n type=\"check\"\n [color]=\"readonly ? 'tertiary' : 'primary'\"\n ></suis-icon>\n </div>\n <ng-content></ng-content>\n</suis-label>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:flex}.suis-input-checkbox{display:none}.suis-input-checkbox:checked~suis-label ::ng-deep .suis-input-checkbox__check{border:.0625rem solid #192a56}.suis-input-checkbox__check{width:1.25rem;height:1.25rem;border:.0625rem solid #dcdde1;display:flex;justify-content:center;align-items:center;margin-right:.5rem;background-color:#fff;border-radius:.25rem}.suis-input-checkbox__check:focus{box-shadow:0 2px 5px #192a56bf;outline:none}.suis-input-checkbox__check--readonly{border:.0625rem solid #dcdde1}.suis-input-checkbox__check--readonly:focus{box-shadow:none}.suis-input-checkbox__check--invalid{border:.0625rem solid #ff4757}.suis-input-checkbox__check--invalid:focus{box-shadow:0 2px 5px #ff4757bf}\n"] }]
|
29
27
|
}] });
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1pbnB1dC1jaGVja2JveC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtaW5wdXQtY2hlY2tib3gvc3Vpcy1pbnB1dC1jaGVja2JveC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtaW5wdXQtY2hlY2tib3gvc3Vpcy1pbnB1dC1jaGVja2JveC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMvRSxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDdkMsT0FBTyxF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8aW5wdXRcbiAgI2lucHV0XG4gIHR5cGU9XCJjaGVja2JveFwiXG4gIGNsYXNzPVwic3Vpcy1pbnB1dC1jaGVja2JveFwiXG4gIFthdHRyLmlkXT1cImlkXCJcbiAgW2F0dHIubmFtZV09XCJuYW1lXCJcbiAgW3ZhbHVlXT1cInZhbHVlXCJcbiAgW2Rpc2FibGVkXT1cInJlYWRvbmx5XCJcbiAgKGlucHV0KT1cIm9uQ2hhbmdlKCRldmVudClcIlxuICAoZm9jdXMpPVwib25Ub3VjaCgpXCJcbi8+XG5cbjxzdWlzLWxhYmVsXG4gIFtmb3JdPVwiaWRcIlxuICBbcmVxdWlyZWRdPVwicmVxdWlyZWRcIlxuICBbcG9pbnRlcl09XCJ0cnVlXCJcbiAgW3JlYWRvbmx5XT1cInJlYWRvbmx5XCJcbj5cbiAgPGRpdlxuICAgIFt0YWJpbmRleF09XCJyZWFkb25seSA/IC0xIDogMFwiXG4gICAgY2xhc3M9XCJzdWlzLWlucHV0LWNoZWNrYm94X19jaGVja1wiXG4gICAgW2NsYXNzLnN1aXMtaW5wdXQtY2hlY2tib3hfX2NoZWNrLS1pbnZhbGlkXT1cImludmFsaWRcIlxuICAgIFtjbGFzcy5zdWlzLWlucHV0LWNoZWNrYm94X19jaGVjay0tcmVhZG9ubHldPVwicmVhZG9ubHlcIlxuICA+XG4gICAgPHN1aXMtaWNvblxuICAgICAgKm5nSWY9XCJ2YWx1ZVwiXG4gICAgICB0eXBlPVwiY2hlY2tcIlxuICAgICAgW2NvbG9yXT1cInJlYWRvbmx5ID8gJ3RlcnRpYXJ5JyA6ICdwcmltYXJ5J1wiXG4gICAgPjwvc3Vpcy1pY29uPlxuICA8L2Rpdj5cbiAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuPC9zdWlzLWxhYmVsPlxuIl19
|
@@ -1,13 +1,12 @@
|
|
1
1
|
import { ChangeDetectionStrategy, Component, ElementRef, HostListener, Input, ViewChild, forwardRef, } from '@angular/core';
|
2
|
-
import {
|
2
|
+
import { NgFor, NgIf } from '@angular/common';
|
3
3
|
import { FormControl, NG_VALUE_ACCESSOR, ReactiveFormsModule, } from '@angular/forms';
|
4
4
|
import { SuisChipComponent } from '../suis-chip';
|
5
5
|
import { SuisInputComponent } from '../suis-input';
|
6
6
|
import { SuisInputBase } from '../../shared/classes/suis-input.base';
|
7
7
|
import * as i0 from "@angular/core";
|
8
|
-
import * as i1 from "@angular/
|
9
|
-
|
10
|
-
class SuisInputChipsComponent extends SuisInputBase {
|
8
|
+
import * as i1 from "@angular/forms";
|
9
|
+
export class SuisInputChipsComponent extends SuisInputBase {
|
11
10
|
constructor() {
|
12
11
|
super(...arguments);
|
13
12
|
/**
|
@@ -52,20 +51,20 @@ class SuisInputChipsComponent extends SuisInputBase {
|
|
52
51
|
if (!this.inputEl?.nativeElement.contains(event.target))
|
53
52
|
this.submitValue();
|
54
53
|
}
|
55
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
56
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
54
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisInputChipsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
55
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SuisInputChipsComponent, isStandalone: true, selector: "suis-input-chips", inputs: { placeholder: "placeholder", chipColor: "chipColor", chipIconColor: "chipIconColor" }, host: { listeners: { "document:click": "onDocumentClick($event)" } }, providers: [
|
57
56
|
{
|
58
57
|
provide: NG_VALUE_ACCESSOR,
|
59
58
|
multi: true,
|
60
59
|
useExisting: forwardRef(() => SuisInputChipsComponent),
|
61
60
|
},
|
62
|
-
], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"suis-input-chips\">\n <div #input class=\"suis-input-chips__input\">\n <suis-input\n [id]=\"id\"\n [name]=\"name\"\n [formControl]=\"inputControl\"\n [readonly]=\"readonly\"\n [invalid]=\"invalid\"\n [placeholder]=\"placeholder\"\n (touched)=\"onTouch()\"\n (enterPressed)=\"submitValue()\"\n ></suis-input>\n </div>\n <div *ngIf=\"value.length\" class=\"suis-input-chips__chips\">\n <suis-chip\n [removable]=\"readonly ? false : true\"\n [color]=\"chipColor\"\n [iconColor]=\"chipIconColor\"\n (remove)=\"removeItem(item)\"\n *ngFor=\"let item of value\"\n >\n {{ item }}\n </suis-chip>\n </div>\n</div>\n", styles: [":host{display:block}.suis-input-chips__chips{margin-top:.375rem;display:flex;flex-wrap:wrap}.suis-input-chips__chips suis-chip:not(:last-child){margin-right:.25rem}\n"], dependencies: [{ kind: "
|
61
|
+
], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"suis-input-chips\">\n <div #input class=\"suis-input-chips__input\">\n <suis-input\n [id]=\"id\"\n [name]=\"name\"\n [formControl]=\"inputControl\"\n [readonly]=\"readonly\"\n [invalid]=\"invalid\"\n [placeholder]=\"placeholder\"\n (touched)=\"onTouch()\"\n (enterPressed)=\"submitValue()\"\n ></suis-input>\n </div>\n <div *ngIf=\"value.length\" class=\"suis-input-chips__chips\">\n <suis-chip\n [removable]=\"readonly ? false : true\"\n [color]=\"chipColor\"\n [iconColor]=\"chipIconColor\"\n (remove)=\"removeItem(item)\"\n *ngFor=\"let item of value\"\n >\n {{ item }}\n </suis-chip>\n </div>\n</div>\n", styles: [":host{display:block}.suis-input-chips__chips{margin-top:.375rem;display:flex;flex-wrap:wrap}.suis-input-chips__chips suis-chip:not(:last-child){margin-right:.25rem}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: SuisChipComponent, selector: "suis-chip", inputs: ["color", "iconColor", "removable"], outputs: ["remove"] }, { kind: "component", type: SuisInputComponent, selector: "suis-input", inputs: ["type", "placeholder"], outputs: ["enterPressed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
63
62
|
}
|
64
|
-
|
65
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisInputChipsComponent, decorators: [{
|
63
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisInputChipsComponent, decorators: [{
|
66
64
|
type: Component,
|
67
65
|
args: [{ selector: 'suis-input-chips', standalone: true, imports: [
|
68
|
-
|
66
|
+
NgIf,
|
67
|
+
NgFor,
|
69
68
|
ReactiveFormsModule,
|
70
69
|
SuisChipComponent,
|
71
70
|
SuisInputComponent,
|
@@ -89,4 +88,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
|
|
89
88
|
type: HostListener,
|
90
89
|
args: ['document:click', ['$event']]
|
91
90
|
}] } });
|
92
|
-
//# sourceMappingURL=data:application/json;base64,
|
91
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1pbnB1dC1jaGlwcy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtaW5wdXQtY2hpcHMvc3Vpcy1pbnB1dC1j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