suis 0.30.1 → 0.31.0
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 +5 -6
- package/esm2022/lib/components/suis-alert/suis-alert.component.mjs +5 -6
- package/esm2022/lib/components/suis-box/suis-box.component.mjs +5 -6
- package/esm2022/lib/components/suis-breadcrumbs/suis-breadcrumbs.component.mjs +5 -6
- package/esm2022/lib/components/suis-button/suis-button.component.mjs +5 -6
- package/esm2022/lib/components/suis-button-link/suis-button-link.component.mjs +5 -6
- package/esm2022/lib/components/suis-button-outlined/suis-button-outlined.component.mjs +5 -6
- package/esm2022/lib/components/suis-chip/suis-chip.component.mjs +5 -6
- package/esm2022/lib/components/suis-container/suis-container.component.mjs +5 -6
- package/esm2022/lib/components/suis-dialog/index.mjs +2 -0
- package/esm2022/lib/components/suis-dialog/suis-dialog.component.mjs +63 -0
- package/esm2022/lib/components/suis-dialog-container/index.mjs +3 -0
- package/esm2022/lib/components/suis-dialog-container/suis-dialog-container.component.mjs +18 -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 +5 -6
- package/esm2022/lib/components/suis-icon/suis-icon-type.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-icon/suis-icon.component.mjs +5 -6
- package/esm2022/lib/components/suis-input/suis-input.component.mjs +5 -6
- package/esm2022/lib/components/suis-input-checkbox/suis-input-checkbox.component.mjs +5 -6
- package/esm2022/lib/components/suis-input-chips/suis-input-chips.component.mjs +5 -6
- package/esm2022/lib/components/suis-input-image/suis-input-image.component.mjs +5 -6
- package/esm2022/lib/components/suis-input-number/suis-input-number.component.mjs +5 -6
- package/esm2022/lib/components/suis-input-radio/suis-input-radio.component.mjs +5 -6
- package/esm2022/lib/components/suis-item/suis-item.component.mjs +5 -6
- package/esm2022/lib/components/suis-label/suis-label.component.mjs +5 -6
- package/esm2022/lib/components/suis-navigation/suis-navigation.component.mjs +6 -7
- package/esm2022/lib/components/suis-navigation/suis-navigation.module.mjs +6 -7
- package/esm2022/lib/components/suis-navigation-group/suis-navigation-group.component.mjs +5 -6
- package/esm2022/lib/components/suis-navigation-group-item/suis-navigation-group-item.component.mjs +5 -6
- package/esm2022/lib/components/suis-navigation-item/suis-navigation-item.component.mjs +5 -6
- package/esm2022/lib/components/suis-navigation-item/suis-navigation-item.directive.mjs +5 -6
- package/esm2022/lib/components/suis-notification/suis-notification.component.mjs +5 -6
- package/esm2022/lib/components/suis-notifications/suis-notifications.component.mjs +5 -6
- 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 -6
- package/esm2022/lib/components/suis-progress-bar/suis-progress-bar.component.mjs +5 -6
- 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 +7 -8
- 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 +7 -8
- 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 +5 -6
- package/esm2022/lib/components/suis-select-option/suis-select-option.directive.mjs +5 -6
- package/esm2022/lib/components/suis-spinner/suis-spinner.component.mjs +5 -6
- package/esm2022/lib/components/suis-spinner-container/suis-spinner-container.component.mjs +5 -6
- 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 +5 -6
- 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 +5 -6
- package/esm2022/lib/components/suis-tabs/suis-tabs.module.mjs +6 -7
- package/esm2022/lib/components/suis-text-area/suis-text-area.component.mjs +5 -6
- package/esm2022/lib/components/suis-title/suis-title.component.mjs +5 -6
- package/esm2022/lib/components/suis-toggle/suis-toggle.component.mjs +5 -6
- package/esm2022/lib/components/suis-toolbar/suis-toolbar.component.mjs +5 -6
- 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 +388 -286
- 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,6 +1,6 @@
|
|
1
1
|
import { Pipe } from '@angular/core';
|
2
2
|
import * as i0 from "@angular/core";
|
3
|
-
class SuisPaginationItemsPipe {
|
3
|
+
export class SuisPaginationItemsPipe {
|
4
4
|
transform(ofLabel, page, perPage, totalItems, itemsLabel) {
|
5
5
|
if (totalItems <= 0)
|
6
6
|
return `0-0 ${ofLabel} 0 ${itemsLabel}`;
|
@@ -8,15 +8,14 @@ class SuisPaginationItemsPipe {
|
|
8
8
|
const maxItem = page * perPage > totalItems ? totalItems : page * perPage;
|
9
9
|
return `${minItem}-${maxItem} ${ofLabel} ${totalItems} ${itemsLabel}`;
|
10
10
|
}
|
11
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
12
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisPaginationItemsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
12
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisPaginationItemsPipe, isStandalone: true, name: "suisPaginationItems" }); }
|
13
13
|
}
|
14
|
-
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisPaginationItemsPipe, decorators: [{
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisPaginationItemsPipe, decorators: [{
|
16
15
|
type: Pipe,
|
17
16
|
args: [{
|
18
17
|
standalone: true,
|
19
18
|
name: 'suisPaginationItems',
|
20
19
|
}]
|
21
20
|
}] });
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1wYWdpbmF0aW9uLWl0ZW1zLnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtcGFnaW5hdGlvbi9zdWlzLXBhZ2luYXRpb24taXRlbXMucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFNcEQsTUFBTSxPQUFPLHVCQUF1QjtJQUNsQyxTQUFTLENBQ1AsT0FBZSxFQUNmLElBQVksRUFDWixPQUFlLEVBQ2YsVUFBa0IsRUFDbEIsVUFBa0I7UUFFbEIsSUFBSSxVQUFVLElBQUksQ0FBQztZQUFFLE9BQU8sT0FBTyxPQUFPLE1BQU0sVUFBVSxFQUFFLENBQUM7UUFFN0QsTUFBTSxPQUFPLEdBQUcsSUFBSSxHQUFHLE9BQU8sR0FBRyxPQUFPLEdBQUcsQ0FBQyxDQUFDO1FBQzdDLE1BQU0sT0FBTyxHQUFHLElBQUksR0FBRyxPQUFPLEdBQUcsVUFBVSxDQUFDLENBQUMsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFDLElBQUksR0FBRyxPQUFPLENBQUM7UUFFMUUsT0FBTyxHQUFHLE9BQU8sSUFBSSxPQUFPLElBQUksT0FBTyxJQUFJLFVBQVUsSUFBSSxVQUFVLEVBQUUsQ0FBQztJQUN4RSxDQUFDOytHQWRVLHVCQUF1Qjs2R0FBdkIsdUJBQXVCOzs0RkFBdkIsdUJBQXVCO2tCQUpuQyxJQUFJO21CQUFDO29CQUNKLFVBQVUsRUFBRSxJQUFJO29CQUNoQixJQUFJLEVBQUUscUJBQXFCO2lCQUM1QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFBpcGUsIFBpcGVUcmFuc2Zvcm0gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQFBpcGUoe1xuICBzdGFuZGFsb25lOiB0cnVlLFxuICBuYW1lOiAnc3Vpc1BhZ2luYXRpb25JdGVtcycsXG59KVxuZXhwb3J0IGNsYXNzIFN1aXNQYWdpbmF0aW9uSXRlbXNQaXBlIGltcGxlbWVudHMgUGlwZVRyYW5zZm9ybSB7XG4gIHRyYW5zZm9ybShcbiAgICBvZkxhYmVsOiBzdHJpbmcsXG4gICAgcGFnZTogbnVtYmVyLFxuICAgIHBlclBhZ2U6IG51bWJlcixcbiAgICB0b3RhbEl0ZW1zOiBudW1iZXIsXG4gICAgaXRlbXNMYWJlbDogc3RyaW5nXG4gICk6IHN0cmluZyB7XG4gICAgaWYgKHRvdGFsSXRlbXMgPD0gMCkgcmV0dXJuIGAwLTAgJHtvZkxhYmVsfSAwICR7aXRlbXNMYWJlbH1gO1xuXG4gICAgY29uc3QgbWluSXRlbSA9IHBhZ2UgKiBwZXJQYWdlIC0gcGVyUGFnZSArIDE7XG4gICAgY29uc3QgbWF4SXRlbSA9IHBhZ2UgKiBwZXJQYWdlID4gdG90YWxJdGVtcyA/IHRvdGFsSXRlbXMgOiBwYWdlICogcGVyUGFnZTtcblxuICAgIHJldHVybiBgJHttaW5JdGVtfS0ke21heEl0ZW19ICR7b2ZMYWJlbH0gJHt0b3RhbEl0ZW1zfSAke2l0ZW1zTGFiZWx9YDtcbiAgfVxufVxuIl19
|
@@ -1,21 +1,20 @@
|
|
1
1
|
import { Pipe } from '@angular/core';
|
2
2
|
import * as i0 from "@angular/core";
|
3
|
-
class SuisPaginationPagePipe {
|
3
|
+
export class SuisPaginationPagePipe {
|
4
4
|
transform(ofLabel, page, perPage, totalItems) {
|
5
5
|
if (totalItems <= 0)
|
6
6
|
return `1 ${ofLabel} 1`;
|
7
7
|
const maxPage = Math.ceil(totalItems / perPage);
|
8
8
|
return `${page} ${ofLabel} ${maxPage}`;
|
9
9
|
}
|
10
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
11
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.
|
10
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisPaginationPagePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
11
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisPaginationPagePipe, isStandalone: true, name: "suisPaginationPage" }); }
|
12
12
|
}
|
13
|
-
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisPaginationPagePipe, decorators: [{
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisPaginationPagePipe, decorators: [{
|
15
14
|
type: Pipe,
|
16
15
|
args: [{
|
17
16
|
standalone: true,
|
18
17
|
name: 'suisPaginationPage',
|
19
18
|
}]
|
20
19
|
}] });
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1wYWdpbmF0aW9uLXBhZ2UucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL2NvbXBvbmVudHMvc3Vpcy1wYWdpbmF0aW9uL3N1aXMtcGFnaW5hdGlvbi1wYWdlLnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFB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ZW1zIC8gcGVyUGFnZSk7XG5cbiAgICByZXR1cm4gYCR7cGFnZX0gJHtvZkxhYmVsfSAke21heFBhZ2V9YDtcbiAgfVxufVxuIl19
|
@@ -1,20 +1,19 @@
|
|
1
1
|
import { Pipe } from '@angular/core';
|
2
2
|
import * as i0 from "@angular/core";
|
3
|
-
class SuisPaginationPerPageOptionsPipe {
|
3
|
+
export class SuisPaginationPerPageOptionsPipe {
|
4
4
|
transform(options) {
|
5
5
|
return options.map((option) => {
|
6
6
|
return { value: option, label: option.toString() };
|
7
7
|
});
|
8
8
|
}
|
9
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
10
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisPaginationPerPageOptionsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
10
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisPaginationPerPageOptionsPipe, isStandalone: true, name: "suisPaginationPerPageOptions" }); }
|
11
11
|
}
|
12
|
-
|
13
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisPaginationPerPageOptionsPipe, decorators: [{
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisPaginationPerPageOptionsPipe, decorators: [{
|
14
13
|
type: Pipe,
|
15
14
|
args: [{
|
16
15
|
standalone: true,
|
17
16
|
name: 'suisPaginationPerPageOptions',
|
18
17
|
}]
|
19
18
|
}] });
|
20
|
-
//# sourceMappingURL=data:application/json;base64,
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1wYWdpbm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GlvbnMnLFxufSlcbmV4cG9ydCBjbGFzcyBTdWlzUGFnaW5hdGlvblBlclBhZ2VPcHRpb25zUGlwZSBpbXBsZW1lbnRzIFBpcGVUcmFuc2Zvcm0ge1xuICB0cmFuc2Zvcm0ob3B0aW9uczogbnVtYmVyW10pOiBTdWlzU2VsZWN0T3B0aW9uPG51bWJlcj5bXSB7XG4gICAgcmV0dXJuIG9wdGlvbnMubWFwKChvcHRpb24pID0+IHtcbiAgICAgIHJldHVybiB7IHZhbHVlOiBvcHRpb24sIGxhYmVsOiBvcHRpb24udG9TdHJpbmcoKSB9O1xuICAgIH0pO1xuICB9XG59XG4iXX0=
|
@@ -11,7 +11,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
11
11
|
import * as i0 from "@angular/core";
|
12
12
|
import * as i1 from "@angular/forms";
|
13
13
|
import * as i2 from "../suis-select/suis-select.component";
|
14
|
-
class SuisPaginationComponent {
|
14
|
+
export class SuisPaginationComponent {
|
15
15
|
constructor() {
|
16
16
|
this.destroyRef = inject(DestroyRef);
|
17
17
|
/** @internal */
|
@@ -87,11 +87,10 @@ class SuisPaginationComponent {
|
|
87
87
|
this.pageChange.emit(this.page);
|
88
88
|
this.perPageChange.emit(this.perPage);
|
89
89
|
}
|
90
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
91
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
90
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
91
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SuisPaginationComponent, isStandalone: true, selector: "suis-pagination", inputs: { page: "page", perPage: "perPage", perPageOptions: "perPageOptions", totalItems: "totalItems", ofLabel: "ofLabel", itemsLabel: "itemsLabel" }, outputs: { pageChange: "pageChange", perPageChange: "perPageChange" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"suis-pagination\">\n <div>\n <suis-select\n [formControl]=\"perPageControl\"\n [options]=\"perPageOptions | suisPaginationPerPageOptions\"\n [search]=\"false\"\n [nullable]=\"false\"\n ></suis-select>\n </div>\n <div class=\"suis-pagination__actions\">\n <suis-button color=\"secondary\" [disabled]=\"page === 1\" (click)=\"previous()\">\n <suis-icon [type]=\"'chevron-left'\" color=\"white\"></suis-icon>\n </suis-button>\n <div>\n {{ ofLabel | suisPaginationPage : page : perPage : totalItems }}\n </div>\n <suis-button\n color=\"secondary\"\n [disabled]=\"page === maxPage\"\n (click)=\"next()\"\n >\n <suis-icon [type]=\"'chevron-right'\" color=\"white\"></suis-icon>\n </suis-button>\n </div>\n <div class=\"suis-pagination__items\">\n {{\n ofLabel | suisPaginationItems : page : perPage : totalItems : itemsLabel\n }}\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-pagination{display:flex;align-items:center;justify-content:space-between;font-size:.875rem}.suis-pagination__actions{display:flex;align-items:center;justify-content:center}.suis-pagination__items{color:#a4a7b0}.suis-pagination suis-button:first-child{margin-right:1rem}.suis-pagination suis-button:last-child{margin-left:1rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { 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: SuisIconComponent, selector: "suis-icon", inputs: ["size", "color", "type", "outlined", "filled", "pointer", "bold"] }, { kind: "component", type: SuisButtonComponent, selector: "suis-button" }, { kind: "pipe", type: SuisPaginationPagePipe, name: "suisPaginationPage" }, { kind: "pipe", type: SuisPaginationItemsPipe, name: "suisPaginationItems" }, { kind: "pipe", type: SuisPaginationPerPageOptionsPipe, name: "suisPaginationPerPageOptions" }, { kind: "ngmodule", type: SuisSelectModule }, { kind: "component", type: i2.SuisSelectComponent, selector: "suis-select", inputs: ["nullable"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
92
92
|
}
|
93
|
-
|
94
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisPaginationComponent, decorators: [{
|
93
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisPaginationComponent, decorators: [{
|
95
94
|
type: Component,
|
96
95
|
args: [{ selector: 'suis-pagination', standalone: true, imports: [
|
97
96
|
CommonModule,
|
@@ -120,4 +119,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
|
|
120
119
|
}], perPageChange: [{
|
121
120
|
type: Output
|
122
121
|
}] } });
|
123
|
-
//# sourceMappingURL=data:application/json;base64,
|
122
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1wYWdpbmF0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL2NvbXBvbmVudHMvc3Vpcy1wYWdpbmF0aW9uL3N1aXMtcGFnaW5hdGlvbi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtcGFnaW5hdGlvbi9zdWlzLXBhZ2luYXRpb24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsVUF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RhcnlcIiBbZGlzYWJsZWRdPVwicGFnZSA9PT0gMVwiIChjbGljayk9XCJwcmV2aW91cygpXCI+XG4gICAgICA8c3Vpcy1pY29uIFt0eXBlXT1cIidjaGV2cm9uLWxlZnQnXCIgY29sb3I9XCJ3aGl0ZVwiPjwvc3Vpcy1pY29uPlxuICAgIDwvc3Vpcy1idXR0b24+XG4gICAgPGRpdj5cbiAgICAgIHt7IG9mTGFiZWwgfCBzdWlzUGFnaW5hdGlvblBhZ2UgOiBwYWdlIDogcGVyUGFnZSA6IHRvdGFsSXRlbXMgfX1cbiAgICA8L2Rpdj5cbiAgICA8c3Vpcy1idXR0b25cbiAgICAgIGNvbG9yPVwic2Vjb25kYXJ5XCJcbiAgICAgIFtkaXNhYmxlZF09XCJwYWdlID09PSBtYXhQYWdlXCJcbiAgICAgIChjbGljayk9XCJuZXh0KClcIlxuICAgID5cbiAgICAgIDxzdWlzLWljb24gW3R5cGVdPVwiJ2NoZXZyb24tcmlnaHQnXCIgY29sb3I9XCJ3aGl0ZVwiPjwvc3Vpcy1pY29uPlxuICAgIDwvc3Vpcy1idXR0b24+XG4gIDwvZGl2PlxuICA8ZGl2IGNsYXNzPVwic3Vpcy1wYWdpbmF0aW9uX19pdGVtc1wiPlxuICAgIHt7XG4gICAgICBvZkxhYmVsIHwgc3Vpc1BhZ2luYXRpb25JdGVtcyA6IHBhZ2UgOiBwZXJQYWdlIDogdG90YWxJdGVtcyA6IGl0ZW1zTGFiZWxcbiAgICB9fVxuICA8L2Rpdj5cbjwvZGl2PlxuIl19
|
@@ -4,7 +4,7 @@ import { SuisProgressBarPipe } from './suis-progress-bar.pipe';
|
|
4
4
|
import { SuisNgClassPipe } from '../../pipes';
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
import * as i1 from "@angular/common";
|
7
|
-
class SuisProgressBarComponent {
|
7
|
+
export class SuisProgressBarComponent {
|
8
8
|
constructor() {
|
9
9
|
/** @internal */
|
10
10
|
this._value = 0;
|
@@ -35,11 +35,10 @@ class SuisProgressBarComponent {
|
|
35
35
|
this._value = 0;
|
36
36
|
}
|
37
37
|
}
|
38
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
39
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
38
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
39
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SuisProgressBarComponent, isStandalone: true, selector: "suis-progress-bar", inputs: { value: "value", color: "color", backgroundColor: "backgroundColor" }, ngImport: i0, template: "<div\n class=\"suis-progress-bar\"\n [ngClass]=\"'suis-progress-bar' | suisNgClass : backgroundColor\"\n>\n <div\n class=\"suis-progress-bar__progress\"\n [style]=\"{ width: value | suisProgressBar }\"\n [ngClass]=\"'suis-progress-bar__progress' | suisNgClass : color\"\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-progress-bar{width:100%;border-radius:1rem;height:1rem}.suis-progress-bar--primary{background-color:#192a56}.suis-progress-bar--secondary{background-color:#273c75}.suis-progress-bar--tertiary{background-color:#dcdde1}.suis-progress-bar--complementary{background-color:#f5f6fa}.suis-progress-bar--success{background-color:#2ed573}.suis-progress-bar--warning{background-color:#ffa502}.suis-progress-bar--danger{background-color:#ff4757}.suis-progress-bar--white{background-color:#fff}.suis-progress-bar--gray{background-color:#bcbcbc}.suis-progress-bar--dark{background-color:#000}.suis-progress-bar__progress{border-radius:1rem;height:1rem}.suis-progress-bar__progress--primary{background-color:#192a56}.suis-progress-bar__progress--secondary{background-color:#273c75}.suis-progress-bar__progress--tertiary{background-color:#dcdde1}.suis-progress-bar__progress--complementary{background-color:#f5f6fa}.suis-progress-bar__progress--success{background-color:#2ed573}.suis-progress-bar__progress--warning{background-color:#ffa502}.suis-progress-bar__progress--danger{background-color:#ff4757}.suis-progress-bar__progress--white{background-color:#fff}.suis-progress-bar__progress--gray{background-color:#bcbcbc}.suis-progress-bar__progress--dark{background-color:#000}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: SuisNgClassPipe, name: "suisNgClass" }, { kind: "pipe", type: SuisProgressBarPipe, name: "suisProgressBar" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
40
40
|
}
|
41
|
-
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisProgressBarComponent, decorators: [{
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisProgressBarComponent, decorators: [{
|
43
42
|
type: Component,
|
44
43
|
args: [{ selector: 'suis-progress-bar', standalone: true, imports: [CommonModule, SuisNgClassPipe, SuisProgressBarPipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"suis-progress-bar\"\n [ngClass]=\"'suis-progress-bar' | suisNgClass : backgroundColor\"\n>\n <div\n class=\"suis-progress-bar__progress\"\n [style]=\"{ width: value | suisProgressBar }\"\n [ngClass]=\"'suis-progress-bar__progress' | suisNgClass : color\"\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-progress-bar{width:100%;border-radius:1rem;height:1rem}.suis-progress-bar--primary{background-color:#192a56}.suis-progress-bar--secondary{background-color:#273c75}.suis-progress-bar--tertiary{background-color:#dcdde1}.suis-progress-bar--complementary{background-color:#f5f6fa}.suis-progress-bar--success{background-color:#2ed573}.suis-progress-bar--warning{background-color:#ffa502}.suis-progress-bar--danger{background-color:#ff4757}.suis-progress-bar--white{background-color:#fff}.suis-progress-bar--gray{background-color:#bcbcbc}.suis-progress-bar--dark{background-color:#000}.suis-progress-bar__progress{border-radius:1rem;height:1rem}.suis-progress-bar__progress--primary{background-color:#192a56}.suis-progress-bar__progress--secondary{background-color:#273c75}.suis-progress-bar__progress--tertiary{background-color:#dcdde1}.suis-progress-bar__progress--complementary{background-color:#f5f6fa}.suis-progress-bar__progress--success{background-color:#2ed573}.suis-progress-bar__progress--warning{background-color:#ffa502}.suis-progress-bar__progress--danger{background-color:#ff4757}.suis-progress-bar__progress--white{background-color:#fff}.suis-progress-bar__progress--gray{background-color:#bcbcbc}.suis-progress-bar__progress--dark{background-color:#000}\n"] }]
|
45
44
|
}], propDecorators: { value: [{
|
@@ -49,4 +48,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
|
|
49
48
|
}], backgroundColor: [{
|
50
49
|
type: Input
|
51
50
|
}] } });
|
52
|
-
//# sourceMappingURL=data:application/json;base64,
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1wcm9ncmVzcy1iYXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zdWlzL3NyYy9saWIvY29tcG9uZW50cy9zdWlzLXByb2dyZXNzLWJhci9zdWlzLXByb2dyZXNzLWJhci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtcHJvZ3Jlc3MtYmFyL3N1aXMtcHJvZ3Jlc3MtYmFyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFL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zcyA6IGJhY2tncm91bmRDb2xvclwiXG4+XG4gIDxkaXZcbiAgICBjbGFzcz1cInN1aXMtcHJvZ3Jlc3MtYmFyX19wcm9ncmVzc1wiXG4gICAgW3N0eWxlXT1cInsgd2lkdGg6IHZhbHVlIHwgc3Vpc1Byb2dyZXNzQmFyIH1cIlxuICAgIFtuZ0NsYXNzXT1cIidzdWlzLXByb2dyZXNzLWJhcl9fcHJvZ3Jlc3MnIHwgc3Vpc05nQ2xhc3MgOiBjb2xvclwiXG4gID48L2Rpdj5cbjwvZGl2PlxuIl19
|
@@ -1,18 +1,17 @@
|
|
1
1
|
import { Pipe } from '@angular/core';
|
2
2
|
import * as i0 from "@angular/core";
|
3
|
-
class SuisProgressBarPipe {
|
3
|
+
export class SuisProgressBarPipe {
|
4
4
|
transform(value) {
|
5
5
|
return `${(value / 100) * 100}%`;
|
6
6
|
}
|
7
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
8
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.
|
7
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisProgressBarPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
8
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisProgressBarPipe, isStandalone: true, name: "suisProgressBar" }); }
|
9
9
|
}
|
10
|
-
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisProgressBarPipe, decorators: [{
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisProgressBarPipe, decorators: [{
|
12
11
|
type: Pipe,
|
13
12
|
args: [{
|
14
13
|
standalone: true,
|
15
14
|
name: 'suisProgressBar',
|
16
15
|
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ICogMTAwfSVgO1xuICB9XG59XG4iXX0=
|
@@ -1,18 +1,17 @@
|
|
1
1
|
import { Pipe } from '@angular/core';
|
2
2
|
import * as i0 from "@angular/core";
|
3
|
-
class SuisSelectIsSelectedPipe {
|
3
|
+
export class SuisSelectIsSelectedPipe {
|
4
4
|
transform(optionValue, value) {
|
5
5
|
return JSON.stringify(optionValue) === JSON.stringify(value);
|
6
6
|
}
|
7
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
8
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.
|
7
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectIsSelectedPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
8
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectIsSelectedPipe, isStandalone: true, name: "suisSelectIsSelected" }); }
|
9
9
|
}
|
10
|
-
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisSelectIsSelectedPipe, decorators: [{
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectIsSelectedPipe, decorators: [{
|
12
11
|
type: Pipe,
|
13
12
|
args: [{
|
14
13
|
standalone: true,
|
15
14
|
name: 'suisSelectIsSelected',
|
16
15
|
}]
|
17
16
|
}] });
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtaXMtc2VsZWN0ZWQucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3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angular/core";
|
3
|
-
class SuisSelectLabelPipe {
|
3
|
+
export class SuisSelectLabelPipe {
|
4
4
|
transform(value, options, placeholder) {
|
5
5
|
if (!value)
|
6
6
|
return placeholder;
|
@@ -9,15 +9,14 @@ class SuisSelectLabelPipe {
|
|
9
9
|
throw Error('[SuisSelectLabelPipe] Provided value does not belong to valid values');
|
10
10
|
return selectedOption.label;
|
11
11
|
}
|
12
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
13
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectLabelPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
13
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectLabelPipe, isStandalone: true, name: "suisSelectLabel" }); }
|
14
14
|
}
|
15
|
-
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisSelectLabelPipe, decorators: [{
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectLabelPipe, decorators: [{
|
17
16
|
type: Pipe,
|
18
17
|
args: [{
|
19
18
|
standalone: true,
|
20
19
|
name: 'suisSelectLabel',
|
21
20
|
}]
|
22
21
|
}] });
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtbGFiZWwucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL2NvbXBvbmVudHMvc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WwnLFxufSlcbmV4cG9ydCBjbGFzcyBTdWlzU2VsZWN0TGFiZWxQaXBlPFQ+IGltcGxlbWVudHMgUGlwZVRyYW5zZm9ybSB7XG4gIHRyYW5zZm9ybShcbiAgICB2YWx1ZTogVCxcbiAgICBvcHRpb25zOiBTdWlzU2VsZWN0T3B0aW9uPFQ+W10sXG4gICAgcGxhY2Vob2xkZXI6IHN0cmluZ1xuICApOiBzdHJpbmcge1xuICAgIGlmICghdmFsdWUpIHJldHVybiBwbGFjZWhvbGRlcjtcbiAgICBjb25zdCBzZWxlY3RlZE9wdGlvbiA9IG9wdGlvbnMuZmluZChcbiAgICAgIChvcHRpb24pID0+IEpTT04uc3RyaW5naWZ5KG9wdGlvbi52YWx1ZSkgPT09IEpTT04uc3RyaW5naWZ5KHZhbHVlKVxuICAgICk7XG4gICAgaWYgKCFzZWxlY3RlZE9wdGlvbilcbiAgICAgIHRocm93IEVycm9yKFxuICAgICAgICAnW1N1aXNTZWxlY3RMYWJlbFBpcGVdIFByb3ZpZGVkIHZhbHVlIGRvZXMgbm90IGJlbG9uZyB0byB2YWxpZCB2YWx1ZXMnXG4gICAgICApO1xuICAgIHJldHVybiBzZWxlY3RlZE9wdGlvbi5sYWJlbDtcbiAgfVxufVxuIl19
|
@@ -11,7 +11,7 @@ import { SuisSelectBase } from '../../shared/classes/suis-select.base';
|
|
11
11
|
import * as i0 from "@angular/core";
|
12
12
|
import * as i1 from "@angular/common";
|
13
13
|
import * as i2 from "@angular/forms";
|
14
|
-
class SuisSelectComponent extends SuisSelectBase {
|
14
|
+
export class SuisSelectComponent extends SuisSelectBase {
|
15
15
|
constructor() {
|
16
16
|
super(...arguments);
|
17
17
|
/** @internal */
|
@@ -45,17 +45,16 @@ class SuisSelectComponent extends SuisSelectBase {
|
|
45
45
|
this.changed.emit();
|
46
46
|
this.cdRef.markForCheck();
|
47
47
|
}
|
48
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
49
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
48
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
49
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SuisSelectComponent, isStandalone: true, selector: "suis-select", inputs: { nullable: "nullable" }, providers: [
|
50
50
|
{
|
51
51
|
provide: NG_VALUE_ACCESSOR,
|
52
52
|
multi: true,
|
53
53
|
useExisting: forwardRef(() => SuisSelectComponent),
|
54
54
|
},
|
55
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"suis-select\">\n <button\n type=\"button\"\n (click)=\"onExpand()\"\n class=\"suis-select__button\"\n [class.suis-select__button--invalid]=\"invalid\"\n [disabled]=\"readonly\"\n >\n <span class=\"suis-select__button__value\">\n {{ value | suisSelectLabel : options : placeholder }}\n </span>\n <span class=\"suis-select__button__actions\">\n <suis-icon\n *ngIf=\"nullable && value\"\n class=\"suis-select__button__cross\"\n type=\"cross\"\n size=\"lg\"\n color=\"primary\"\n (click)=\"onClear($event)\"\n ></suis-icon>\n <suis-icon\n class=\"suis-select__button__chevron\"\n [type]=\"expanded ? 'chevron-up' : 'chevron-down'\"\n size=\"lg\"\n color=\"primary\"\n ></suis-icon>\n </span>\n </button>\n <div *ngIf=\"expanded\" class=\"suis-select__list\">\n <input\n *ngIf=\"search\"\n [ngModel]=\"searchPhrase\"\n (ngModelChange)=\"onSearchPhraseChange($event)\"\n class=\"suis-select__list__search\"\n type=\"search\"\n [placeholder]=\"searchPlaceholder\"\n />\n <suis-select-option\n *ngFor=\"\n let option of options\n | suisSelectSortOptions\n | suisSelectFilterOptions : searchPhrase;\n trackBy: optionTrackBy\n \"\n [option]=\"option\"\n [templateRef]=\"suisSelectOption?.templateRef\"\n [selected]=\"option.value | suisSelectIsSelected : value\"\n (clicked)=\"onSelect(option.value)\"\n ></suis-select-option>\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-select{position:relative}.suis-select__button{width:100%;background-color:#fff;border-radius:.25rem;padding:.5rem 1rem;border:.0625rem solid #dcdde1;min-height:2.25rem;min-width:5rem;position:relative;display:flex;align-items:center;justify-content:space-between;padding:.25rem .5rem .25rem 1rem;cursor:pointer}.suis-select__button:focus{border:.0625rem solid #192a56;box-shadow:0 2px 5px #192a56bf;outline:none}.suis-select__button--invalid{border:.0625rem solid #ff4757}.suis-select__button--invalid:focus{border:.0625rem solid #ff4757;box-shadow:0 2px 5px #ff4757bf}.suis-select__button__value{width:100%;text-align:left;text-overflow:ellipsis;text-wrap:nowrap;overflow:hidden}.suis-select__button__actions{margin-left:.25rem;display:flex;justify-content:right;align-items:center}.suis-select__list{position:absolute;z-index:10;background-color:#fff;box-shadow:0 2px 5px #00000040;border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem;width:100%;top:2rem;left:0;max-height:12.25rem;overflow-y:auto}.suis-
|
55
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"suis-select\">\n <button\n type=\"button\"\n (click)=\"onExpand()\"\n class=\"suis-select__button\"\n [class.suis-select__button--invalid]=\"invalid\"\n [disabled]=\"readonly\"\n >\n <span class=\"suis-select__button__value\">\n {{ value | suisSelectLabel : options : placeholder }}\n </span>\n <span class=\"suis-select__button__actions\">\n <suis-icon\n *ngIf=\"nullable && value\"\n class=\"suis-select__button__cross\"\n type=\"cross\"\n size=\"lg\"\n color=\"primary\"\n (click)=\"onClear($event)\"\n ></suis-icon>\n <suis-icon\n class=\"suis-select__button__chevron\"\n [type]=\"expanded ? 'chevron-up' : 'chevron-down'\"\n size=\"lg\"\n color=\"primary\"\n ></suis-icon>\n </span>\n </button>\n <div *ngIf=\"expanded\" class=\"suis-select__list\">\n <input\n *ngIf=\"search\"\n [ngModel]=\"searchPhrase\"\n (ngModelChange)=\"onSearchPhraseChange($event)\"\n class=\"suis-select__list__search\"\n type=\"search\"\n [placeholder]=\"searchPlaceholder\"\n />\n <suis-select-option\n *ngFor=\"\n let option of options\n | suisSelectSortOptions\n | suisSelectFilterOptions : searchPhrase;\n trackBy: optionTrackBy\n \"\n [option]=\"option\"\n [templateRef]=\"suisSelectOption?.templateRef\"\n [selected]=\"option.value | suisSelectIsSelected : value\"\n (clicked)=\"onSelect(option.value)\"\n ></suis-select-option>\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-select{position:relative}.suis-select__button{width:100%;background-color:#fff;border-radius:.25rem;padding:.5rem 1rem;border:.0625rem solid #dcdde1;min-height:2.25rem;min-width:5rem;position:relative;display:flex;align-items:center;justify-content:space-between;padding:.25rem .5rem .25rem 1rem;cursor:pointer}.suis-select__button:focus{border:.0625rem solid #192a56;box-shadow:0 2px 5px #192a56bf;outline:none}.suis-select__button--invalid{border:.0625rem solid #ff4757}.suis-select__button--invalid:focus{border:.0625rem solid #ff4757;box-shadow:0 2px 5px #ff4757bf}.suis-select__button__value{width:100%;text-align:left;text-overflow:ellipsis;text-wrap:nowrap;overflow:hidden}.suis-select__button__actions{margin-left:.25rem;display:flex;justify-content:right;align-items:center}.suis-select__list{position:absolute;z-index:10;background-color:#fff;box-shadow:0 2px 5px #00000040;border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem;width:100%;top:2rem;left:0;max-height:12.25rem;overflow-y:auto}.suis-select__list::-webkit-scrollbar{width:.5rem}.suis-select__list::-webkit-scrollbar-track{background:#f5f6fa}.suis-select__list::-webkit-scrollbar-thumb{background:#dcdde1}.suis-select__list::-webkit-scrollbar-thumb:hover{background:#bcbcbc}.suis-select__list__search{width:100%;border:none;border-bottom:1px solid #dcdde1;padding:.375rem 1rem}.suis-select__list__search:focus{outline:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: SuisIconComponent, selector: "suis-icon", inputs: ["size", "color", "type", "outlined", "filled", "pointer", "bold"] }, { kind: "component", type: SuisSelectOptionComponent, selector: "suis-select-option", inputs: ["option", "templateRef", "selected", "checkbox"], outputs: ["clicked"] }, { kind: "pipe", type: SuisSelectLabelPipe, name: "suisSelectLabel" }, { kind: "pipe", type: SuisSelectIsSelectedPipe, name: "suisSelectIsSelected" }, { kind: "pipe", type: SuisSelectSortOptionsPipe, name: "suisSelectSortOptions" }, { kind: "pipe", type: SuisSelectFilterOptionsPipe, name: "suisSelectFilterOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
56
56
|
}
|
57
|
-
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisSelectComponent, decorators: [{
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectComponent, decorators: [{
|
59
58
|
type: Component,
|
60
59
|
args: [{ selector: 'suis-select', standalone: true, imports: [
|
61
60
|
CommonModule,
|
@@ -72,8 +71,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
|
|
72
71
|
multi: true,
|
73
72
|
useExisting: forwardRef(() => SuisSelectComponent),
|
74
73
|
},
|
75
|
-
], template: "<div class=\"suis-select\">\n <button\n type=\"button\"\n (click)=\"onExpand()\"\n class=\"suis-select__button\"\n [class.suis-select__button--invalid]=\"invalid\"\n [disabled]=\"readonly\"\n >\n <span class=\"suis-select__button__value\">\n {{ value | suisSelectLabel : options : placeholder }}\n </span>\n <span class=\"suis-select__button__actions\">\n <suis-icon\n *ngIf=\"nullable && value\"\n class=\"suis-select__button__cross\"\n type=\"cross\"\n size=\"lg\"\n color=\"primary\"\n (click)=\"onClear($event)\"\n ></suis-icon>\n <suis-icon\n class=\"suis-select__button__chevron\"\n [type]=\"expanded ? 'chevron-up' : 'chevron-down'\"\n size=\"lg\"\n color=\"primary\"\n ></suis-icon>\n </span>\n </button>\n <div *ngIf=\"expanded\" class=\"suis-select__list\">\n <input\n *ngIf=\"search\"\n [ngModel]=\"searchPhrase\"\n (ngModelChange)=\"onSearchPhraseChange($event)\"\n class=\"suis-select__list__search\"\n type=\"search\"\n [placeholder]=\"searchPlaceholder\"\n />\n <suis-select-option\n *ngFor=\"\n let option of options\n | suisSelectSortOptions\n | suisSelectFilterOptions : searchPhrase;\n trackBy: optionTrackBy\n \"\n [option]=\"option\"\n [templateRef]=\"suisSelectOption?.templateRef\"\n [selected]=\"option.value | suisSelectIsSelected : value\"\n (clicked)=\"onSelect(option.value)\"\n ></suis-select-option>\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-select{position:relative}.suis-select__button{width:100%;background-color:#fff;border-radius:.25rem;padding:.5rem 1rem;border:.0625rem solid #dcdde1;min-height:2.25rem;min-width:5rem;position:relative;display:flex;align-items:center;justify-content:space-between;padding:.25rem .5rem .25rem 1rem;cursor:pointer}.suis-select__button:focus{border:.0625rem solid #192a56;box-shadow:0 2px 5px #192a56bf;outline:none}.suis-select__button--invalid{border:.0625rem solid #ff4757}.suis-select__button--invalid:focus{border:.0625rem solid #ff4757;box-shadow:0 2px 5px #ff4757bf}.suis-select__button__value{width:100%;text-align:left;text-overflow:ellipsis;text-wrap:nowrap;overflow:hidden}.suis-select__button__actions{margin-left:.25rem;display:flex;justify-content:right;align-items:center}.suis-select__list{position:absolute;z-index:10;background-color:#fff;box-shadow:0 2px 5px #00000040;border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem;width:100%;top:2rem;left:0;max-height:12.25rem;overflow-y:auto}.suis-
|
74
|
+
], template: "<div class=\"suis-select\">\n <button\n type=\"button\"\n (click)=\"onExpand()\"\n class=\"suis-select__button\"\n [class.suis-select__button--invalid]=\"invalid\"\n [disabled]=\"readonly\"\n >\n <span class=\"suis-select__button__value\">\n {{ value | suisSelectLabel : options : placeholder }}\n </span>\n <span class=\"suis-select__button__actions\">\n <suis-icon\n *ngIf=\"nullable && value\"\n class=\"suis-select__button__cross\"\n type=\"cross\"\n size=\"lg\"\n color=\"primary\"\n (click)=\"onClear($event)\"\n ></suis-icon>\n <suis-icon\n class=\"suis-select__button__chevron\"\n [type]=\"expanded ? 'chevron-up' : 'chevron-down'\"\n size=\"lg\"\n color=\"primary\"\n ></suis-icon>\n </span>\n </button>\n <div *ngIf=\"expanded\" class=\"suis-select__list\">\n <input\n *ngIf=\"search\"\n [ngModel]=\"searchPhrase\"\n (ngModelChange)=\"onSearchPhraseChange($event)\"\n class=\"suis-select__list__search\"\n type=\"search\"\n [placeholder]=\"searchPlaceholder\"\n />\n <suis-select-option\n *ngFor=\"\n let option of options\n | suisSelectSortOptions\n | suisSelectFilterOptions : searchPhrase;\n trackBy: optionTrackBy\n \"\n [option]=\"option\"\n [templateRef]=\"suisSelectOption?.templateRef\"\n [selected]=\"option.value | suisSelectIsSelected : value\"\n (clicked)=\"onSelect(option.value)\"\n ></suis-select-option>\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-select{position:relative}.suis-select__button{width:100%;background-color:#fff;border-radius:.25rem;padding:.5rem 1rem;border:.0625rem solid #dcdde1;min-height:2.25rem;min-width:5rem;position:relative;display:flex;align-items:center;justify-content:space-between;padding:.25rem .5rem .25rem 1rem;cursor:pointer}.suis-select__button:focus{border:.0625rem solid #192a56;box-shadow:0 2px 5px #192a56bf;outline:none}.suis-select__button--invalid{border:.0625rem solid #ff4757}.suis-select__button--invalid:focus{border:.0625rem solid #ff4757;box-shadow:0 2px 5px #ff4757bf}.suis-select__button__value{width:100%;text-align:left;text-overflow:ellipsis;text-wrap:nowrap;overflow:hidden}.suis-select__button__actions{margin-left:.25rem;display:flex;justify-content:right;align-items:center}.suis-select__list{position:absolute;z-index:10;background-color:#fff;box-shadow:0 2px 5px #00000040;border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem;width:100%;top:2rem;left:0;max-height:12.25rem;overflow-y:auto}.suis-select__list::-webkit-scrollbar{width:.5rem}.suis-select__list::-webkit-scrollbar-track{background:#f5f6fa}.suis-select__list::-webkit-scrollbar-thumb{background:#dcdde1}.suis-select__list::-webkit-scrollbar-thumb:hover{background:#bcbcbc}.suis-select__list__search{width:100%;border:none;border-bottom:1px solid #dcdde1;padding:.375rem 1rem}.suis-select__list__search:focus{outline:none}\n"] }]
|
76
75
|
}], propDecorators: { nullable: [{
|
77
76
|
type: Input
|
78
77
|
}] } });
|
79
|
-
//# sourceMappingURL=data:application/json;base64,
|
78
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zdWlzL3NyYy9saWIvY29tcG9uZW50cy9zdWlzLXNlbG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biAgICAgIFtvcHRpb25dPVwib3B0aW9uXCJcbiAgICAgIFt0ZW1wbGF0ZVJlZl09XCJzdWlzU2VsZWN0T3B0aW9uPy50ZW1wbGF0ZVJlZlwiXG4gICAgICBbc2VsZWN0ZWRdPVwib3B0aW9uLnZhbHVlIHwgc3Vpc1NlbGVjdElzU2VsZWN0ZWQgOiB2YWx1ZVwiXG4gICAgICAoY2xpY2tlZCk9XCJvblNlbGVjdChvcHRpb24udmFsdWUpXCJcbiAgICA+PC9zdWlzLXNlbGVjdC1vcHRpb24+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0=
|
@@ -2,17 +2,16 @@ import { NgModule } from '@angular/core';
|
|
2
2
|
import { SuisSelectComponent } from './suis-select.component';
|
3
3
|
import { SuisSelectOptionDirective } from '../suis-select-option';
|
4
4
|
import * as i0 from "@angular/core";
|
5
|
-
class SuisSelectModule {
|
6
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
7
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.
|
8
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.
|
5
|
+
export class SuisSelectModule {
|
6
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
7
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectModule, imports: [SuisSelectComponent, SuisSelectOptionDirective], exports: [SuisSelectComponent, SuisSelectOptionDirective] }); }
|
8
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectModule, imports: [SuisSelectComponent] }); }
|
9
9
|
}
|
10
|
-
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisSelectModule, decorators: [{
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectModule, decorators: [{
|
12
11
|
type: NgModule,
|
13
12
|
args: [{
|
14
13
|
imports: [SuisSelectComponent, SuisSelectOptionDirective],
|
15
14
|
exports: [SuisSelectComponent, SuisSelectOptionDirective],
|
16
15
|
}]
|
17
16
|
}] });
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zdWlzL3NyYy9saWIvY29tcG9uZW50cy9zdWlzLXNlbGVjdC9zdWlzLXNlbGVjdC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUM5RCxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQzs7QUFNbEUsTUFBTSxPQUFPLGdCQUFnQjsrR0FBaEIsZ0JBQWdCO2dIQUFoQixnQkFBZ0IsWUFIakIsbUJBQW1CLEVBQUUseUJBQXlCLGFBQzlDLG1CQUFtQixFQUFFLHlCQUF5QjtnSEFFN0MsZ0JBQWdCLFlBSGpCLG1CQUFtQjs7NEZBR2xCLGdCQUFnQjtrQkFKNUIsUUFBUTttQkFBQztvQkFDUixPQUFPLEVBQUUsQ0FBQyxtQkFBbUIsRUFBRSx5QkFBeUIsQ0FBQztvQkFDekQsT0FBTyxFQUFFLENBQUMsbUJBQW1CLEVBQUUseUJBQXlCLENBQUM7aUJBQzFEIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IFN1aXNTZWxlY3RDb21wb25lbnQgfSBmcm9tICcuL3N1aXMtc2VsZWN0LmNvbXBvbmVudCc7XG5pbXBvcnQgeyBTdWlzU2VsZWN0T3B0aW9uRGlyZWN0aXZlIH0gZnJvbSAnLi4vc3Vpcy1zZWxlY3Qtb3B0aW9uJztcblxuQE5nTW9kdWxlKHtcbiAgaW1wb3J0czogW1N1aXNTZWxlY3RDb21wb25lbnQsIFN1aXNTZWxlY3RPcHRpb25EaXJlY3RpdmVdLFxuICBleHBvcnRzOiBbU3Vpc1NlbGVjdENvbXBvbmVudCwgU3Vpc1NlbGVjdE9wdGlvbkRpcmVjdGl2ZV0sXG59KVxuZXhwb3J0IGNsYXNzIFN1aXNTZWxlY3RNb2R1bGUge31cbiJdfQ==
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Pipe } from '@angular/core';
|
2
2
|
import * as i0 from "@angular/core";
|
3
|
-
class SuisSelectMultiChipsPipe {
|
3
|
+
export class SuisSelectMultiChipsPipe {
|
4
4
|
transform(values, options) {
|
5
5
|
const selectedOptions = [];
|
6
6
|
values.forEach((value) => {
|
@@ -11,15 +11,14 @@ class SuisSelectMultiChipsPipe {
|
|
11
11
|
});
|
12
12
|
return selectedOptions;
|
13
13
|
}
|
14
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
15
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.
|
14
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectMultiChipsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
15
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectMultiChipsPipe, isStandalone: true, name: "suisSelectMultiChips" }); }
|
16
16
|
}
|
17
|
-
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisSelectMultiChipsPipe, decorators: [{
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectMultiChipsPipe, decorators: [{
|
19
18
|
type: Pipe,
|
20
19
|
args: [{
|
21
20
|
standalone: true,
|
22
21
|
name: 'suisSelectMultiChips',
|
23
22
|
}]
|
24
23
|
}] });
|
25
|
-
//# sourceMappingURL=data:application/json;base64,
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtbXVsdGktY2hpcHMucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL2NvbXBvbmVudHMvc3Vpcy1zZWxlY3QtbXVsdGkvc3Vpcy1zZWxlY3QtbXVsdGktY2hpcHMucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFPcEQsTUFBTSxPQUFPLHdCQUF3QjtJQUNuQyxTQUFTLENBQUMsTUFBVyxFQUFFLE9BQThCO1FBQ25ELE1BQU0sZUFBZSxHQUFhLEVBQUUsQ0FBQztRQUVyQyxNQUFNLENBQUMsT0FBTyxDQUFDLENBQUMsS0FBSyxFQUFFLEVBQUU7WUFDdkIsTUFBTSxjQUFjLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FDakMsQ0FBQyxNQUFNLEVBQUUsRUFBRSxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsTUFBTSxDQUFDLEt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3B0aW9uID0gb3B0aW9ucy5maW5kKFxuICAgICAgICAob3B0aW9uKSA9PiBKU09OLnN0cmluZ2lmeShvcHRpb24udmFsdWUpID09PSBKU09OLnN0cmluZ2lmeSh2YWx1ZSlcbiAgICAgICk7XG4gICAgICBpZiAoIXNlbGVjdGVkT3B0aW9uKVxuICAgICAgICB0aHJvdyBFcnJvcihcbiAgICAgICAgICAnW1N1aXNTZWxlY3RNdWx0aUxhYmVsUGlwZV0gUHJvdmlkZWQgdmFsdWUgZG9lcyBub3QgYmVsb25nIHRvIHZhbGlkIHZhbHVlcydcbiAgICAgICAgKTtcbiAgICAgIHNlbGVjdGVkT3B0aW9ucy5wdXNoKHNlbGVjdGVkT3B0aW9uLmxhYmVsKTtcbiAgICB9KTtcblxuICAgIHJldHVybiBzZWxlY3RlZE9wdGlvbnM7XG4gIH1cbn1cbiJdfQ==
|
@@ -1,18 +1,17 @@
|
|
1
1
|
import { Pipe } from '@angular/core';
|
2
2
|
import * as i0 from "@angular/core";
|
3
|
-
class SuisSelectMultiIsSelectedPipe {
|
3
|
+
export class SuisSelectMultiIsSelectedPipe {
|
4
4
|
transform(optionValue, values) {
|
5
5
|
return values.some((value) => JSON.stringify(value) === JSON.stringify(optionValue));
|
6
6
|
}
|
7
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
8
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.
|
7
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectMultiIsSelectedPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
8
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectMultiIsSelectedPipe, isStandalone: true, name: "suisSelectMultiIsSelected" }); }
|
9
9
|
}
|
10
|
-
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisSelectMultiIsSelectedPipe, decorators: [{
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectMultiIsSelectedPipe, decorators: [{
|
12
11
|
type: Pipe,
|
13
12
|
args: [{
|
14
13
|
standalone: true,
|
15
14
|
name: 'suisSelectMultiIsSelected',
|
16
15
|
}]
|
17
16
|
}] });
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtbXVsdGktaXMtc2VsZWN0ZWQucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL2NvbXBvbmVudHMvc3Vpcy1zZWxlY3QtbXVsdGkvc3Vpcy1zZWxlY3QtbXVsdGktaXMtc2VsZWN0ZWQucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFNcEQsTUFBTSxPQUFPLDZCQUE2QjtJQUN4QyxTQUFTLENBQUMsV0FBYyxFQUFFLE1BQVc7UUFDbkMsT0FBTyxNQUFNLENBQUMsSUFBSSxDQUNoQixDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxLQUFLLENBQUMsS0FBSyxJQUFJLENBQUMsU0FBUyxDQUFDLFdBQVcsQ0FBQyxDQUNqRSxDQUFDO0lBQ0osQ0FBQzsrR0FMVSw2QkFBNkI7NkdBQTdCLDZCQUE2Qjs7NEZBQTdCLDZCQUE2QjtrQkFKekMsSUFBSTttQkFBQztvQkFDSixVQUFVLEVBQUUsSUFBSTtvQkFDaEIs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