suis 1.2.1 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +0 -4
- package/esm2022/index.mjs +2 -1
- package/esm2022/lib/components/index.mjs +1 -11
- package/esm2022/lib/components/suis-box/suis-box.component.mjs +9 -3
- package/esm2022/lib/components/suis-chart/suis-chart.component.mjs +3 -3
- package/esm2022/lib/components/suis-container/suis-container.component.mjs +2 -2
- package/esm2022/lib/components/suis-dialog/suis-dialog.component.mjs +2 -2
- package/esm2022/lib/components/suis-form-field/suis-form-field.component.mjs +2 -2
- package/esm2022/lib/components/suis-input/suis-input.component.mjs +2 -2
- package/esm2022/lib/components/suis-input-image/suis-input-image.component.mjs +3 -3
- package/esm2022/lib/components/suis-input-number/suis-input-number.component.mjs +2 -2
- package/esm2022/lib/components/suis-pagination/suis-pagination-per-page-options.pipe.mjs +1 -1
- package/esm2022/lib/components/suis-pagination/suis-pagination.component.mjs +5 -5
- package/esm2022/lib/components/suis-table/suis-table.component.mjs +3 -3
- package/esm2022/lib/components/suis-text-area/suis-text-area.component.mjs +2 -2
- package/esm2022/lib/modules/index.mjs +4 -0
- package/esm2022/lib/modules/suis-button/components/suis-button/index.mjs +2 -0
- package/esm2022/lib/{components → modules/suis-button/components}/suis-button/suis-button.component.mjs +4 -4
- package/esm2022/lib/modules/suis-button/components/suis-button-link/index.mjs +2 -0
- package/esm2022/lib/{components → modules/suis-button/components}/suis-button-link/suis-button-link.component.mjs +4 -4
- package/esm2022/lib/modules/suis-button/components/suis-button-outlined/index.mjs +2 -0
- package/esm2022/lib/{components → modules/suis-button/components}/suis-button-outlined/suis-button-outlined.component.mjs +4 -4
- package/esm2022/lib/modules/suis-button/index.mjs +5 -0
- package/esm2022/lib/modules/suis-button/suis-button.module.mjs +30 -0
- package/esm2022/lib/modules/suis-navigation/components/suis-navigation/index.mjs +2 -0
- package/esm2022/lib/{components → modules/suis-navigation/components}/suis-navigation/suis-navigation.component.mjs +3 -3
- package/esm2022/lib/modules/suis-navigation/components/suis-navigation-group/index.mjs +2 -0
- package/esm2022/lib/modules/suis-navigation/components/suis-navigation-group/suis-navigation-group.component.mjs +43 -0
- package/esm2022/lib/{components → modules/suis-navigation/components}/suis-navigation-group-item/suis-navigation-group-item.component.mjs +2 -2
- package/esm2022/lib/modules/suis-navigation/components/suis-navigation-item/index.mjs +2 -0
- package/esm2022/lib/{components → modules/suis-navigation/components}/suis-navigation-item/suis-navigation-item.component.mjs +1 -1
- package/esm2022/lib/modules/suis-navigation/directives/suis-navigation-item.directive.mjs +20 -0
- package/esm2022/lib/modules/suis-navigation/index.mjs +5 -0
- package/esm2022/lib/modules/suis-navigation/interfaces/suis-navigation-item.interfaces.mjs +2 -0
- package/esm2022/lib/modules/suis-navigation/suis-navigation.module.mjs +17 -0
- package/esm2022/lib/modules/suis-select/classes/suis-select-button.base.mjs +56 -0
- package/esm2022/lib/modules/suis-select/classes/suis-select-multi.base.mjs +65 -0
- package/esm2022/lib/modules/suis-select/classes/suis-select-single.base.mjs +46 -0
- package/esm2022/lib/modules/suis-select/classes/suis-select.base.mjs +88 -0
- package/esm2022/lib/modules/suis-select/components/suis-select/index.mjs +2 -0
- package/esm2022/lib/modules/suis-select/components/suis-select/suis-select.component.mjs +43 -0
- package/esm2022/lib/modules/suis-select/components/suis-select-button/index.mjs +2 -0
- package/esm2022/lib/modules/suis-select/components/suis-select-button/suis-select-button.component.mjs +15 -0
- package/esm2022/lib/modules/suis-select/components/suis-select-button-multi/suis-select-button-multi.component.mjs +16 -0
- package/esm2022/lib/modules/suis-select/components/suis-select-group/index.mjs +2 -0
- package/esm2022/lib/modules/suis-select/components/suis-select-group/suis-select-group.component.mjs +60 -0
- package/esm2022/lib/modules/suis-select/components/suis-select-group-option/index.mjs +2 -0
- package/esm2022/lib/modules/suis-select/components/suis-select-group-option/suis-select-group-option.component.mjs +18 -0
- package/esm2022/lib/modules/suis-select/components/suis-select-multi/index.mjs +2 -0
- package/esm2022/lib/modules/suis-select/components/suis-select-multi/suis-select-multi.component.mjs +45 -0
- package/esm2022/lib/modules/suis-select/components/suis-select-multi-group/index.mjs +2 -0
- package/esm2022/lib/modules/suis-select/components/suis-select-multi-group/suis-select-multi-group.component.mjs +62 -0
- package/esm2022/lib/modules/suis-select/components/suis-select-option/index.mjs +2 -0
- package/esm2022/lib/{components → modules/suis-select/components}/suis-select-option/suis-select-option.component.mjs +2 -2
- package/esm2022/lib/modules/suis-select/directives/suis-select-group-option.directive.mjs +20 -0
- package/esm2022/lib/modules/suis-select/directives/suis-select-option.directive.mjs +20 -0
- package/esm2022/lib/modules/suis-select/index.mjs +10 -0
- package/esm2022/lib/modules/suis-select/interfaces/suis-select-group-option.interfaces.mjs +2 -0
- package/esm2022/lib/modules/suis-select/interfaces/suis-select-option.interfaces.mjs +2 -0
- package/esm2022/lib/modules/suis-select/pipes/suis-select-filter-group-options.pipe.mjs +19 -0
- package/esm2022/lib/modules/suis-select/pipes/suis-select-filter-options.pipe.mjs +19 -0
- package/esm2022/lib/modules/suis-select/pipes/suis-select-group-label.pipe.mjs +23 -0
- package/esm2022/lib/modules/suis-select/pipes/suis-select-is-selected.pipe.mjs +17 -0
- package/esm2022/lib/modules/suis-select/pipes/suis-select-label.pipe.mjs +22 -0
- package/esm2022/lib/{components/suis-select-multi → modules/suis-select/pipes}/suis-select-multi-chips.pipe.mjs +1 -1
- package/esm2022/lib/modules/suis-select/pipes/suis-select-multi-group-chips.pipe.mjs +25 -0
- package/esm2022/lib/{components/suis-select-multi → modules/suis-select/pipes}/suis-select-multi-is-selected.pipe.mjs +1 -1
- package/esm2022/lib/modules/suis-select/pipes/suis-select-sort-options.pipe.mjs +17 -0
- package/esm2022/lib/modules/suis-select/suis-select.module.mjs +48 -0
- package/esm2022/lib/shared/classes/index.mjs +1 -2
- package/fesm2022/suis.mjs +860 -537
- package/fesm2022/suis.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/components/index.d.ts +0 -10
- package/lib/components/suis-box/suis-box.component.d.ts +5 -1
- package/lib/components/suis-pagination/suis-pagination-per-page-options.pipe.d.ts +1 -1
- package/lib/components/suis-table/suis-table.component.d.ts +1 -1
- package/lib/modules/index.d.ts +3 -0
- package/lib/{components → modules/suis-button/components}/suis-button/suis-button.component.d.ts +1 -1
- package/lib/{components → modules/suis-button/components}/suis-button-link/suis-button-link.component.d.ts +1 -1
- package/lib/{components → modules/suis-button/components}/suis-button-outlined/suis-button-outlined.component.d.ts +1 -1
- package/lib/modules/suis-button/index.d.ts +4 -0
- package/lib/modules/suis-button/suis-button.module.d.ts +9 -0
- package/lib/{components → modules/suis-navigation/components}/suis-navigation/index.d.ts +0 -1
- package/lib/{components → modules/suis-navigation/components}/suis-navigation/suis-navigation.component.d.ts +2 -2
- package/lib/{components → modules/suis-navigation/components}/suis-navigation-group/suis-navigation-group.component.d.ts +1 -1
- package/lib/{components → modules/suis-navigation/components}/suis-navigation-group-item/suis-navigation-group-item.component.d.ts +1 -1
- package/lib/modules/suis-navigation/components/suis-navigation-item/index.d.ts +1 -0
- package/lib/{components → modules/suis-navigation/components}/suis-navigation-item/suis-navigation-item.component.d.ts +1 -1
- package/lib/modules/suis-navigation/index.d.ts +4 -0
- package/lib/{components → modules}/suis-navigation/suis-navigation.module.d.ts +2 -2
- package/lib/modules/suis-select/classes/suis-select-button.base.d.ts +32 -0
- package/lib/{components/suis-select-multi/suis-select-multi.component.d.ts → modules/suis-select/classes/suis-select-multi.base.d.ts} +5 -5
- package/lib/modules/suis-select/classes/suis-select-single.base.d.ts +16 -0
- package/lib/{shared → modules/suis-select}/classes/suis-select.base.d.ts +6 -4
- package/lib/{components → modules/suis-select/components}/suis-select/index.d.ts +0 -1
- package/lib/modules/suis-select/components/suis-select/suis-select.component.d.ts +6 -0
- package/lib/modules/suis-select/components/suis-select-button/index.d.ts +1 -0
- package/lib/modules/suis-select/components/suis-select-button/suis-select-button.component.d.ts +6 -0
- package/lib/modules/suis-select/components/suis-select-button-multi/suis-select-button-multi.component.d.ts +6 -0
- package/lib/modules/suis-select/components/suis-select-group/index.d.ts +1 -0
- package/lib/modules/suis-select/components/suis-select-group/suis-select-group.component.d.ts +14 -0
- package/lib/modules/suis-select/components/suis-select-group-option/index.d.ts +1 -0
- package/lib/modules/suis-select/components/suis-select-group-option/suis-select-group-option.component.d.ts +17 -0
- package/lib/modules/suis-select/components/suis-select-multi/suis-select-multi.component.d.ts +6 -0
- package/lib/modules/suis-select/components/suis-select-multi-group/index.d.ts +1 -0
- package/lib/modules/suis-select/components/suis-select-multi-group/suis-select-multi-group.component.d.ts +14 -0
- package/lib/modules/suis-select/components/suis-select-option/index.d.ts +1 -0
- package/lib/{components → modules/suis-select/components}/suis-select-option/suis-select-option.component.d.ts +1 -1
- package/lib/modules/suis-select/directives/suis-select-group-option.directive.d.ts +10 -0
- package/lib/modules/suis-select/index.d.ts +9 -0
- package/lib/modules/suis-select/interfaces/suis-select-group-option.interfaces.d.ts +6 -0
- package/lib/modules/suis-select/pipes/suis-select-filter-group-options.pipe.d.ts +8 -0
- package/lib/{shared → modules/suis-select}/pipes/suis-select-filter-options.pipe.d.ts +1 -1
- package/lib/modules/suis-select/pipes/suis-select-group-label.pipe.d.ts +8 -0
- package/lib/{components/suis-select → modules/suis-select/pipes}/suis-select-label.pipe.d.ts +1 -1
- package/lib/{components/suis-select-multi → modules/suis-select/pipes}/suis-select-multi-chips.pipe.d.ts +1 -1
- package/lib/modules/suis-select/pipes/suis-select-multi-group-chips.pipe.d.ts +8 -0
- package/lib/{shared → modules/suis-select}/pipes/suis-select-sort-options.pipe.d.ts +1 -1
- package/lib/modules/suis-select/suis-select.module.d.ts +12 -0
- package/lib/shared/classes/index.d.ts +0 -1
- package/package.json +1 -2
- package/esm2022/lib/components/suis-button/index.mjs +0 -2
- package/esm2022/lib/components/suis-button-link/index.mjs +0 -2
- package/esm2022/lib/components/suis-button-outlined/index.mjs +0 -2
- package/esm2022/lib/components/suis-navigation/index.mjs +0 -3
- package/esm2022/lib/components/suis-navigation/suis-navigation.module.mjs +0 -17
- package/esm2022/lib/components/suis-navigation-group/index.mjs +0 -2
- package/esm2022/lib/components/suis-navigation-group/suis-navigation-group.component.mjs +0 -43
- package/esm2022/lib/components/suis-navigation-group-item/index.mjs +0 -2
- package/esm2022/lib/components/suis-navigation-item/index.mjs +0 -4
- package/esm2022/lib/components/suis-navigation-item/suis-navigation-item.directive.mjs +0 -20
- package/esm2022/lib/components/suis-navigation-item/suis-navigation-item.interfaces.mjs +0 -2
- package/esm2022/lib/components/suis-select/index.mjs +0 -3
- package/esm2022/lib/components/suis-select/suis-select-is-selected.pipe.mjs +0 -17
- package/esm2022/lib/components/suis-select/suis-select-label.pipe.mjs +0 -22
- package/esm2022/lib/components/suis-select/suis-select.component.mjs +0 -78
- package/esm2022/lib/components/suis-select/suis-select.module.mjs +0 -31
- package/esm2022/lib/components/suis-select-multi/index.mjs +0 -2
- package/esm2022/lib/components/suis-select-multi/suis-select-multi.component.mjs +0 -98
- package/esm2022/lib/components/suis-select-option/index.mjs +0 -4
- package/esm2022/lib/components/suis-select-option/suis-select-option.directive.mjs +0 -20
- package/esm2022/lib/components/suis-select-option/suis-select-option.interfaces.mjs +0 -2
- package/esm2022/lib/shared/classes/suis-select.base.mjs +0 -81
- package/esm2022/lib/shared/pipes/suis-select-filter-options.pipe.mjs +0 -19
- package/esm2022/lib/shared/pipes/suis-select-sort-options.pipe.mjs +0 -17
- package/lib/components/suis-navigation-group-item/index.d.ts +0 -1
- package/lib/components/suis-navigation-item/index.d.ts +0 -3
- package/lib/components/suis-select/suis-select.component.d.ts +0 -16
- package/lib/components/suis-select/suis-select.module.d.ts +0 -9
- package/lib/components/suis-select-option/index.d.ts +0 -3
- /package/lib/{components → modules/suis-button/components}/suis-button/index.d.ts +0 -0
- /package/lib/{components → modules/suis-button/components}/suis-button-link/index.d.ts +0 -0
- /package/lib/{components → modules/suis-button/components}/suis-button-outlined/index.d.ts +0 -0
- /package/lib/{components → modules/suis-navigation/components}/suis-navigation-group/index.d.ts +0 -0
- /package/lib/{components/suis-navigation-item → modules/suis-navigation/directives}/suis-navigation-item.directive.d.ts +0 -0
- /package/lib/{components/suis-navigation-item → modules/suis-navigation/interfaces}/suis-navigation-item.interfaces.d.ts +0 -0
- /package/lib/{components → modules/suis-select/components}/suis-select-multi/index.d.ts +0 -0
- /package/lib/{components/suis-select-option → modules/suis-select/directives}/suis-select-option.directive.d.ts +0 -0
- /package/lib/{components/suis-select-option → modules/suis-select/interfaces}/suis-select-option.interfaces.d.ts +0 -0
- /package/lib/{components/suis-select → modules/suis-select/pipes}/suis-select-is-selected.pipe.d.ts +0 -0
- /package/lib/{components/suis-select-multi → modules/suis-select/pipes}/suis-select-multi-is-selected.pipe.d.ts +0 -0
@@ -1,43 +0,0 @@
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input, TemplateRef, } from '@angular/core';
|
2
|
-
import { NgFor, NgIf } from '@angular/common';
|
3
|
-
import { SuisNavigationItemComponent } from '../suis-navigation-item';
|
4
|
-
import { RouterModule } from '@angular/router';
|
5
|
-
import { SuisNavigationGroupItemComponent } from '../suis-navigation-group-item/suis-navigation-group-item.component';
|
6
|
-
import * as i0 from "@angular/core";
|
7
|
-
export class SuisNavigationGroupComponent {
|
8
|
-
constructor() {
|
9
|
-
/**
|
10
|
-
* Expanded state of the navigation group. By default set to true.
|
11
|
-
*/
|
12
|
-
this.expanded = true;
|
13
|
-
/**
|
14
|
-
* Adds expand / collapse logic to group header items. By default set to false.
|
15
|
-
*/
|
16
|
-
this.expandable = false;
|
17
|
-
}
|
18
|
-
/** @internal */
|
19
|
-
itemTrackBy(index, item) {
|
20
|
-
return `${item.label}-${index}`;
|
21
|
-
}
|
22
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisNavigationGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
23
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SuisNavigationGroupComponent, isStandalone: true, selector: "suis-navigation-group", inputs: { item: "item", templateRef: "templateRef", expanded: "expanded", expandable: "expandable" }, ngImport: i0, template: "<div *ngIf=\"item\" class=\"suis-navigation-group\">\n <div class=\"suis-navigation-group__header\">\n <suis-navigation-group-item\n [item]=\"item\"\n [templateRef]=\"templateRef\"\n [expandable]=\"expandable && !!item.children\"\n [(expanded)]=\"expanded\"\n ></suis-navigation-group-item>\n </div>\n <div *ngIf=\"expanded\" class=\"suis-navigation-group__children\">\n <suis-navigation-item\n *ngFor=\"let childItem of item.children; trackBy: itemTrackBy\"\n [item]=\"childItem\"\n [templateRef]=\"templateRef\"\n ></suis-navigation-item>\n </div>\n</div>\n", styles: [":host{display:block}.suis-navigation-group__header{display:flex;justify-content:space-between}\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: RouterModule }, { kind: "component", type: SuisNavigationItemComponent, selector: "suis-navigation-item", inputs: ["item", "templateRef"] }, { kind: "component", type: SuisNavigationGroupItemComponent, selector: "suis-navigation-group-item", inputs: ["item", "templateRef", "expanded", "expandable"], outputs: ["expandedChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
24
|
-
}
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisNavigationGroupComponent, decorators: [{
|
26
|
-
type: Component,
|
27
|
-
args: [{ selector: 'suis-navigation-group', standalone: true, imports: [
|
28
|
-
NgIf,
|
29
|
-
NgFor,
|
30
|
-
RouterModule,
|
31
|
-
SuisNavigationItemComponent,
|
32
|
-
SuisNavigationGroupItemComponent,
|
33
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"item\" class=\"suis-navigation-group\">\n <div class=\"suis-navigation-group__header\">\n <suis-navigation-group-item\n [item]=\"item\"\n [templateRef]=\"templateRef\"\n [expandable]=\"expandable && !!item.children\"\n [(expanded)]=\"expanded\"\n ></suis-navigation-group-item>\n </div>\n <div *ngIf=\"expanded\" class=\"suis-navigation-group__children\">\n <suis-navigation-item\n *ngFor=\"let childItem of item.children; trackBy: itemTrackBy\"\n [item]=\"childItem\"\n [templateRef]=\"templateRef\"\n ></suis-navigation-item>\n </div>\n</div>\n", styles: [":host{display:block}.suis-navigation-group__header{display:flex;justify-content:space-between}\n"] }]
|
34
|
-
}], propDecorators: { item: [{
|
35
|
-
type: Input
|
36
|
-
}], templateRef: [{
|
37
|
-
type: Input
|
38
|
-
}], expanded: [{
|
39
|
-
type: Input
|
40
|
-
}], expandable: [{
|
41
|
-
type: Input
|
42
|
-
}] } });
|
43
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1uYXZpZ2F0aW9uLWdyb3VwLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL2NvbXBvbmVudHMvc3Vpcy1uYXZpZ2F0aW9uLWdyb3VwL3N1aXMtbmF2aWdhdGlvbi1ncm91cC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtbmF2aWdhdGlvbi1ncm91cC9zdWlzLW5hdmlnYXRpb24tZ3JvdXAuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsS0FBSyxFQUNMLFdBQVcsR0FDWixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsS0FBSyxFQUFFLElBQUksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ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luZ3MiOiJBQUFBLGNBQWMsd0NBQXdDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3N1aXMtbmF2aWdhdGlvbi1ncm91cC1pdGVtLmNvbXBvbmVudCc7XG4iXX0=
|
@@ -1,4 +0,0 @@
|
|
1
|
-
export * from './suis-navigation-item.component';
|
2
|
-
export * from './suis-navigation-item.directive';
|
3
|
-
export * from './suis-navigation-item.interfaces';
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtbmF2aWdhdGlvbi1pdGVtL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsa0NBQWtDLENBQUM7QUFDakQsY0FBYyxrQ0FBa0MsQ0FBQztBQUNqRCxjQUFjLG1DQUFtQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zdWlzLW5hdmlnYXRpb24taXRlbS5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9zdWlzLW5hdmlnYXRpb24taXRlbS5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9zdWlzLW5hdmlnYXRpb24taXRlbS5pbnRlcmZhY2VzJztcbiJdfQ==
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { Directive, TemplateRef, inject } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export class SuisNavigationItemDirective {
|
4
|
-
constructor() {
|
5
|
-
/**
|
6
|
-
* Custom template of the item.
|
7
|
-
*/
|
8
|
-
this.templateRef = inject((TemplateRef));
|
9
|
-
}
|
10
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisNavigationItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
11
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SuisNavigationItemDirective, isStandalone: true, selector: "[suisNavigationItem]", ngImport: i0 }); }
|
12
|
-
}
|
13
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisNavigationItemDirective, decorators: [{
|
14
|
-
type: Directive,
|
15
|
-
args: [{
|
16
|
-
selector: '[suisNavigationItem]',
|
17
|
-
standalone: true,
|
18
|
-
}]
|
19
|
-
}] });
|
20
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1uYXZpZ2F0aW9uLWl0ZW0uZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zdWlzL3NyYy9saWIvY29tcG9uZW50cy9zdWlzLW5hdmlnYXRpb24taXRlbS9zdWlzLW5hdmlnYXRpb24taXRlbS5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxXQUFXLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQU8vRCxNQUFNLE9BQU8sMkJBQTJCO0lBSnhDO1FBS0U7O1dBRUc7UUFDYSxnQkFBVyxHQUFHLE1BQU0sQ0FDbEMsQ0FBQSxXQUE4QyxDQUFBLENBQy9DLENBQUM7S0FDSDsrR0FQWSwyQkFBMkI7bUdBQTNCLDJCQUEyQjs7NEZBQTNCLDJCQUEyQjtrQkFKdkMsU0FBUzttQkFBQztvQkFDVCxRQUFRLEVBQUUsc0JBQXNCO29CQUNoQyxVQUFVLEVBQUUsSUFBSTtpQkFDakIiLCJzb3VyY2VzQ29ud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GNoaWxkcmVuPzogU3Vpc05hdmlnYXRpb25JdGVtW107XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgU3Vpc05hdmlnYXRpb25JdGVtIHtcbiAgbGFiZWw6IHN0cmluZztcbiAgbGluazogc3RyaW5nO1xuICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQHR5cGVzY3JpcHQtZXNsaW50L25vLWV4cGxpY2l0LWFueVxuICBba2V5OiBzdHJpbmddOiBhbnk7XG59XG4iXX0=
|
@@ -1,3 +0,0 @@
|
|
1
|
-
export * from './suis-select.module';
|
2
|
-
export * from './suis-select.component';
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtc2VsZWN0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYyx5QkFBeUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc3Vpcy1zZWxlY3QubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vc3Vpcy1zZWxlY3QuY29tcG9uZW50JztcbiJdfQ==
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { Pipe } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export class SuisSelectIsSelectedPipe {
|
4
|
-
transform(optionValue, value) {
|
5
|
-
return JSON.stringify(optionValue) === JSON.stringify(value);
|
6
|
-
}
|
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
|
-
}
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectIsSelectedPipe, decorators: [{
|
11
|
-
type: Pipe,
|
12
|
-
args: [{
|
13
|
-
standalone: true,
|
14
|
-
name: 'suisSelectIsSelected',
|
15
|
-
}]
|
16
|
-
}] });
|
17
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtaXMtc2VsZWN0ZWQucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL2NvbXBvbmVudHMvc3Vpcy1zZWxlY3Qvc3Vpcy1zZWxlY3QtaXMtc2VsZWN0ZWQucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFNcEQsTUFBTSxPQUFPLHdCQUF3QjtJQUNuQyxTQUFTLENBQUMsV0FBYyxFQUFFLEtBQVE7UUFDaEMsT0FBTyxJQUFJLENBQUMsU0FBUyxDQUFDLFdBQVcsQ0FBQyxLQUFLLElBQUksQ0FBQyxTQUFTLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDL0QsQ0FBQzsrR0FIVSx3QkFBd0I7NkdBQXhCLHdCQUF3Qjs7NEZBQXhCLHdCQUF3QjtrQkFKcEMsSUFBSTttQkFBQztvQkFDSixVQUFVLEVBQUUsSUFBSTtvQkFDaEIsSUFBSSxFQUFFLHNCQUFzQjtpQkFDN0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQaXBlLCBQaXBlVHJhbnNmb3JtIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBQaXBlKHtcbiAgc3RhbmRhbG9uZTogdHJ1ZSxcbiAgbmFtZTogJ3N1aXNTZWxlY3RJc1NlbGVjdGVkJyxcbn0pXG5leHBvcnQgY2xhc3MgU3Vpc1NlbGVjdElzU2VsZWN0ZWRQaXBlPFQ+IGltcGxlbWVudHMgUGlwZVRyYW5zZm9ybSB7XG4gIHRyYW5zZm9ybShvcHRpb25WYWx1ZTogVCwgdmFsdWU6IFQpOiBib29sZWFuIHtcbiAgICByZXR1cm4gSlNPTi5zdHJpbmdpZnkob3B0aW9uVmFsdWUpID09PSBKU09OLnN0cmluZ2lmeSh2YWx1ZSk7XG4gIH1cbn1cbiJdfQ==
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { Pipe } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export class SuisSelectLabelPipe {
|
4
|
-
transform(value, options, placeholder) {
|
5
|
-
if (!value)
|
6
|
-
return placeholder;
|
7
|
-
const selectedOption = options.find((option) => JSON.stringify(option.value) === JSON.stringify(value));
|
8
|
-
if (!selectedOption)
|
9
|
-
throw Error('[SuisSelectLabelPipe] Provided value does not belong to valid values');
|
10
|
-
return selectedOption.label;
|
11
|
-
}
|
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
|
-
}
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectLabelPipe, decorators: [{
|
16
|
-
type: Pipe,
|
17
|
-
args: [{
|
18
|
-
standalone: true,
|
19
|
-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GVUcmFuc2Zvcm0gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IFN1aXNTZWxlY3RPcHRpb24gfSBmcm9tICcuLi9zdWlzLXNlbGVjdC1vcHRpb24vc3Vpcy1zZWxlY3Qtb3B0aW9uLmludGVyZmFjZXMnO1xuXG5AUGlwZSh7XG4gIHN0YW5kYWxvbmU6IHRydWUsXG4gIG5hbWU6ICdzdWlzU2VsZWN0TGFiZWwnLFxufSlcbmV4cG9ydCBjbGFzcyBTdWlzU2VsZWN0TGFiZWxQaXBlPFQ+IGltcGxlbWVudHMgUGlwZVRyYW5zZm9ybSB7XG4gIHRyYW5zZm9ybShcbiAgICB2YWx1ZTogVCxcbiAgICBvcHRpb25zOiBTdWlzU2VsZWN0T3B0aW9uPFQ+W10sXG4gICAgcGxhY2Vob2xkZXI6IHN0cmluZ1xuICApOiBzdHJpbmcge1xuICAgIGlmICghdmFsdWUpIHJldHVybiBwbGFjZWhvbGRlcjtcbiAgICBjb25zdCBzZWxlY3RlZE9wdGlvbiA9IG9wdGlvbnMuZmluZChcbiAgICAgIChvcHRpb24pID0+IEpTT04uc3RyaW5naWZ5KG9wdGlvbi52YWx1ZSkgPT09IEpTT04uc3RyaW5naWZ5KHZhbHVlKVxuICAgICk7XG4gICAgaWYgKCFzZWxlY3RlZE9wdGlvbilcbiAgICAgIHRocm93IEVycm9yKFxuICAgICAgICAnW1N1aXNTZWxlY3RMYWJlbFBpcGVdIFByb3ZpZGVkIHZhbHVlIGRvZXMgbm90IGJlbG9uZyB0byB2YWxpZCB2YWx1ZXMnXG4gICAgICApO1xuICAgIHJldHVybiBzZWxlY3RlZE9wdGlvbi5sYWJlbDtcbiAgfVxufVxuIl19
|
@@ -1,78 +0,0 @@
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input, forwardRef, } from '@angular/core';
|
2
|
-
import { NgFor, NgIf } from '@angular/common';
|
3
|
-
import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
4
|
-
import { SuisIconComponent } from '../suis-icon';
|
5
|
-
import { SuisSelectLabelPipe } from './suis-select-label.pipe';
|
6
|
-
import { SuisSelectIsSelectedPipe } from './suis-select-is-selected.pipe';
|
7
|
-
import { SuisSelectOptionComponent } from '../suis-select-option';
|
8
|
-
import { SuisSelectSortOptionsPipe } from '../../shared/pipes/suis-select-sort-options.pipe';
|
9
|
-
import { SuisSelectFilterOptionsPipe } from '../../shared/pipes/suis-select-filter-options.pipe';
|
10
|
-
import { SuisSelectBase } from '../../shared/classes/suis-select.base';
|
11
|
-
import * as i0 from "@angular/core";
|
12
|
-
import * as i1 from "@angular/forms";
|
13
|
-
export class SuisSelectComponent extends SuisSelectBase {
|
14
|
-
constructor() {
|
15
|
-
super(...arguments);
|
16
|
-
/** @internal */
|
17
|
-
this.value = null;
|
18
|
-
/**
|
19
|
-
* Allows mechanism of clearing value. By default set to true.
|
20
|
-
*/
|
21
|
-
this.nullable = true;
|
22
|
-
}
|
23
|
-
writeValue(obj) {
|
24
|
-
this.value = obj;
|
25
|
-
this._onChange(this.value);
|
26
|
-
this.cdRef.markForCheck();
|
27
|
-
}
|
28
|
-
onSelect(value) {
|
29
|
-
if (JSON.stringify(this.value) === JSON.stringify(value)) {
|
30
|
-
if (this.nullable)
|
31
|
-
this.clearValue();
|
32
|
-
}
|
33
|
-
else {
|
34
|
-
this.setValue(value);
|
35
|
-
}
|
36
|
-
}
|
37
|
-
clearValue() {
|
38
|
-
this.setValue(null);
|
39
|
-
}
|
40
|
-
setValue(value) {
|
41
|
-
this.value = value;
|
42
|
-
this.toggle(false);
|
43
|
-
this._onChange(this.value);
|
44
|
-
this.changed.emit();
|
45
|
-
this.cdRef.markForCheck();
|
46
|
-
}
|
47
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
48
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SuisSelectComponent, isStandalone: true, selector: "suis-select", inputs: { nullable: "nullable" }, providers: [
|
49
|
-
{
|
50
|
-
provide: NG_VALUE_ACCESSOR,
|
51
|
-
multi: true,
|
52
|
-
useExisting: forwardRef(() => SuisSelectComponent),
|
53
|
-
},
|
54
|
-
], 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 [class.suis-select__button--readonly]=\"readonly\"\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=\"times\"\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.625rem;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--readonly{cursor:not-allowed}.suis-select__button--readonly:focus{border:.0625rem solid #dcdde1;box-shadow:none;outline:none}.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:2.625rem;left:0;max-height:13.375rem;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;font-size:.875rem}.suis-select__list__search:focus{outline:none}\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: FormsModule }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.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 }); }
|
55
|
-
}
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectComponent, decorators: [{
|
57
|
-
type: Component,
|
58
|
-
args: [{ selector: 'suis-select', standalone: true, imports: [
|
59
|
-
NgIf,
|
60
|
-
NgFor,
|
61
|
-
FormsModule,
|
62
|
-
SuisIconComponent,
|
63
|
-
SuisSelectOptionComponent,
|
64
|
-
SuisSelectLabelPipe,
|
65
|
-
SuisSelectIsSelectedPipe,
|
66
|
-
SuisSelectSortOptionsPipe,
|
67
|
-
SuisSelectFilterOptionsPipe,
|
68
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
69
|
-
{
|
70
|
-
provide: NG_VALUE_ACCESSOR,
|
71
|
-
multi: true,
|
72
|
-
useExisting: forwardRef(() => SuisSelectComponent),
|
73
|
-
},
|
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 [class.suis-select__button--readonly]=\"readonly\"\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=\"times\"\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.625rem;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--readonly{cursor:not-allowed}.suis-select__button--readonly:focus{border:.0625rem solid #dcdde1;box-shadow:none;outline:none}.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:2.625rem;left:0;max-height:13.375rem;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;font-size:.875rem}.suis-select__list__search:focus{outline:none}\n"] }]
|
75
|
-
}], propDecorators: { nullable: [{
|
76
|
-
type: Input
|
77
|
-
}] } });
|
78
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zdWlzL3NyYy9saWIvY29tcG9uZW50cy9zdWlzLXNlbGVjdC9zdWlzLXNlbGVjdC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtc2VsZWN0L3N1aXMtc2VsZWN0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULEtBQUssRUFDTCxVQUFVLEdBQ1gsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLEtBQUssRUFBRSxJQUFJLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUM5QyxPQUFPLEVBQUUsV0FBVyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM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WlzU2VsZWN0SXNTZWxlY3RlZCA6IHZhbHVlXCJcbiAgICAgIChjbGlja2VkKT1cIm9uU2VsZWN0KG9wdGlvbi52YWx1ZSlcIlxuICAgID48L3N1aXMtc2VsZWN0LW9wdGlvbj5cbiAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import { NgModule } from '@angular/core';
|
2
|
-
import { SuisSelectComponent } from './suis-select.component';
|
3
|
-
import { SuisSelectOptionDirective } from '../suis-select-option';
|
4
|
-
import { SuisSelectMultiComponent } from '../suis-select-multi/suis-select-multi.component';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
export class SuisSelectModule {
|
7
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
8
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectModule, imports: [SuisSelectComponent,
|
9
|
-
SuisSelectMultiComponent,
|
10
|
-
SuisSelectOptionDirective], exports: [SuisSelectComponent,
|
11
|
-
SuisSelectMultiComponent,
|
12
|
-
SuisSelectOptionDirective] }); }
|
13
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectModule, imports: [SuisSelectComponent,
|
14
|
-
SuisSelectMultiComponent] }); }
|
15
|
-
}
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectModule, decorators: [{
|
17
|
-
type: NgModule,
|
18
|
-
args: [{
|
19
|
-
imports: [
|
20
|
-
SuisSelectComponent,
|
21
|
-
SuisSelectMultiComponent,
|
22
|
-
SuisSelectOptionDirective,
|
23
|
-
],
|
24
|
-
exports: [
|
25
|
-
SuisSelectComponent,
|
26
|
-
SuisSel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ltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBTdWlzU2VsZWN0Q29tcG9uZW50IH0gZnJvbSAnLi9zdWlzLXNlbGVjdC5jb21wb25lbnQnO1xuaW1wb3J0IHsgU3Vpc1NlbGVjdE9wdGlvbkRpcmVjdGl2ZSB9IGZyb20gJy4uL3N1aXMtc2VsZWN0LW9wdGlvbic7XG5pbXBvcnQgeyBTdWlzU2VsZWN0TXVsdGlDb21wb25lbnQgfSBmcm9tICcuLi9zdWlzLXNlbGVjdC1tdWx0aS9zdWlzLXNlbGVjdC1tdWx0aS5jb21wb25lbnQnO1xuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbXG4gICAgU3Vpc1NlbGVjdENvbXBvbmVudCxcbiAgICBTdWlzU2VsZWN0TXVsdGlDb21wb25lbnQsXG4gICAgU3Vpc1NlbGVjdE9wdGlvbkRpcmVjdGl2ZSxcbiAgXSxcbiAgZXhwb3J0czogW1xuICAgIFN1aXNTZWxlY3RDb21wb25lbnQsXG4gICAgU3Vpc1NlbGVjdE11bHRpQ29tcG9uZW50LFxuICAgIFN1aXNTZWxlY3RPcHRpb25EaXJlY3RpdmUsXG4gIF0sXG59KVxuZXhwb3J0IGNsYXNzIFN1aXNTZWxlY3RNb2R1bGUge31cbiJdfQ==
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export * from './suis-select-multi.component';
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtc2VsZWN0LW11bHRpL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsK0JBQStCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3N1aXMtc2VsZWN0LW11bHRpLmNvbXBvbmVudCc7XG4iXX0=
|
@@ -1,98 +0,0 @@
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input, forwardRef, } from '@angular/core';
|
2
|
-
import { NgFor, NgIf } from '@angular/common';
|
3
|
-
import { SuisSelectBase } from '../../shared/classes/suis-select.base';
|
4
|
-
import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
5
|
-
import { SuisIconComponent } from '../suis-icon/suis-icon.component';
|
6
|
-
import { SuisSelectOptionComponent } from '../suis-select-option/suis-select-option.component';
|
7
|
-
import { SuisSelectSortOptionsPipe } from '../../shared/pipes/suis-select-sort-options.pipe';
|
8
|
-
import { SuisSelectFilterOptionsPipe } from '../../shared/pipes/suis-select-filter-options.pipe';
|
9
|
-
import { SuisSelectMultiChipsPipe } from './suis-select-multi-chips.pipe';
|
10
|
-
import { SuisSelectMultiIsSelectedPipe } from './suis-select-multi-is-selected.pipe';
|
11
|
-
import { SuisChipComponent } from '../suis-chip';
|
12
|
-
import * as i0 from "@angular/core";
|
13
|
-
import * as i1 from "@angular/forms";
|
14
|
-
export class SuisSelectMultiComponent extends SuisSelectBase {
|
15
|
-
constructor() {
|
16
|
-
super(...arguments);
|
17
|
-
/** @internal */
|
18
|
-
this.values = [];
|
19
|
-
/**
|
20
|
-
* Allows to select duplicated values and remove checkboxes next to options' label. By default set to false.
|
21
|
-
*/
|
22
|
-
this.duplicate = false;
|
23
|
-
/**
|
24
|
-
* Sets the color pallette of the chips. Type of SuisColor. By default set to 'primary'.
|
25
|
-
*/
|
26
|
-
this.chipColor = 'primary';
|
27
|
-
/**
|
28
|
-
* Sets the color of the chips' cross icon. Type of SuisColor. By default set to 'white'.
|
29
|
-
*/
|
30
|
-
this.chipIconColor = 'white';
|
31
|
-
}
|
32
|
-
writeValue(obj) {
|
33
|
-
this.values = obj;
|
34
|
-
this._onChange(this.values);
|
35
|
-
this.cdRef.markForCheck();
|
36
|
-
}
|
37
|
-
onSelect(value) {
|
38
|
-
if (this.duplicate ||
|
39
|
-
!this.values.some((v) => JSON.stringify(v) === JSON.stringify(value))) {
|
40
|
-
this.setValue([...this.values, value]);
|
41
|
-
}
|
42
|
-
else {
|
43
|
-
this.setValue([
|
44
|
-
...this.values.filter((v) => JSON.stringify(v) !== JSON.stringify(value)),
|
45
|
-
]);
|
46
|
-
}
|
47
|
-
}
|
48
|
-
onRemove(index) {
|
49
|
-
const values = [...this.values];
|
50
|
-
values.splice(index, 1);
|
51
|
-
this.setValue([...values]);
|
52
|
-
}
|
53
|
-
clearValue() {
|
54
|
-
this.setValue([]);
|
55
|
-
}
|
56
|
-
setValue(value) {
|
57
|
-
this.values = value;
|
58
|
-
this._onChange(this.values);
|
59
|
-
this.changed.emit();
|
60
|
-
this.cdRef.markForCheck();
|
61
|
-
}
|
62
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectMultiComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
63
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SuisSelectMultiComponent, isStandalone: true, selector: "suis-select-multi", inputs: { duplicate: "duplicate", chipColor: "chipColor", chipIconColor: "chipIconColor" }, providers: [
|
64
|
-
{
|
65
|
-
provide: NG_VALUE_ACCESSOR,
|
66
|
-
multi: true,
|
67
|
-
useExisting: forwardRef(() => SuisSelectMultiComponent),
|
68
|
-
},
|
69
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"suis-select-multi\">\n <button\n type=\"button\"\n (click)=\"onExpand()\"\n class=\"suis-select-multi__button\"\n [class.suis-select-multi__button--invalid]=\"invalid\"\n [class.suis-select-multi__button--readonly]=\"readonly\"\n [class.suis-select-multi__button--valid]=\"values.length > 0\"\n [disabled]=\"readonly\"\n >\n <span class=\"suis-select-multi__button__value\">\n <ng-container *ngIf=\"!values?.length\">\n {{ placeholder }}\n </ng-container>\n <ng-container *ngIf=\"values?.length\">\n <suis-chip\n *ngFor=\"\n let value of values | suisSelectMultiChips : options;\n let index = index\n \"\n [removable]=\"true\"\n [color]=\"chipColor\"\n [iconColor]=\"chipIconColor\"\n (remove)=\"onRemove(index)\"\n >\n {{ value }}\n </suis-chip>\n </ng-container>\n </span>\n <span class=\"suis-select-multi__button__actions\">\n <suis-icon\n *ngIf=\"values?.length\"\n class=\"suis-select-multi__button__cross\"\n type=\"times\"\n size=\"lg\"\n color=\"primary\"\n (click)=\"onClear($event)\"\n tabindex=\"0\"\n ></suis-icon>\n <suis-icon\n class=\"suis-select-multi__button__chevron\"\n [type]=\"expanded ? 'chevron-up' : 'chevron-down'\"\n size=\"lg\"\n color=\"primary\"\n tabindex=\"0\"\n ></suis-icon>\n </span>\n </button>\n <div *ngIf=\"expanded\" class=\"suis-select-multi__list\">\n <input\n *ngIf=\"search\"\n [ngModel]=\"searchPhrase\"\n (ngModelChange)=\"onSearchPhraseChange($event)\"\n class=\"suis-select-multi__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 | suisSelectMultiIsSelected : values\"\n [checkbox]=\"!duplicate\"\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-multi{position:relative}.suis-select-multi__button{width:100%;background-color:#fff;border-radius:.25rem;padding:.5rem 1rem;border:.0625rem solid #dcdde1;min-height:2.625rem;min-width:5rem;position:relative;display:flex;align-items:center;justify-content:space-between;padding:.25rem .5rem .25rem 1rem;cursor:pointer}.suis-select-multi__button:focus{border:.0625rem solid #192a56;box-shadow:0 2px 5px #192a56bf;outline:none}.suis-select-multi__button--invalid{border:.0625rem solid #ff4757}.suis-select-multi__button--invalid:focus{border:.0625rem solid #ff4757;box-shadow:0 2px 5px #ff4757bf}.suis-select-multi__button--readonly{cursor:not-allowed}.suis-select-multi__button--readonly:focus{border:.0625rem solid #dcdde1;box-shadow:none;outline:none}.suis-select-multi__button__value{width:100%;text-align:left;text-overflow:ellipsis;text-wrap:nowrap;overflow:hidden}.suis-select-multi__button__actions{margin-left:.25rem;display:flex;justify-content:right;align-items:center}.suis-select-multi__button--valid{padding-bottom:.125rem}.suis-select-multi__button suis-chip{margin-right:.25rem;margin-bottom:.125rem}.suis-select-multi__button suis-chip:last-child{margin-right:0}.suis-select-multi__button__value{display:flex;flex-wrap:wrap}.suis-select-multi__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:2.625rem;left:0;max-height:13.375rem;overflow-y:auto}.suis-select-multi__list::-webkit-scrollbar{width:.5rem}.suis-select-multi__list::-webkit-scrollbar-track{background:#f5f6fa}.suis-select-multi__list::-webkit-scrollbar-thumb{background:#dcdde1}.suis-select-multi__list::-webkit-scrollbar-thumb:hover{background:#bcbcbc}.suis-select-multi__list__search{width:100%;border:none;border-bottom:1px solid #dcdde1;padding:.375rem 1rem;font-size:.875rem}.suis-select-multi__list__search:focus{outline:none}\n"], dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.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: SuisChipComponent, selector: "suis-chip", inputs: ["color", "iconColor", "removable"], outputs: ["remove"] }, { kind: "component", type: SuisSelectOptionComponent, selector: "suis-select-option", inputs: ["option", "templateRef", "selected", "checkbox"], outputs: ["clicked"] }, { kind: "pipe", type: SuisSelectMultiChipsPipe, name: "suisSelectMultiChips" }, { kind: "pipe", type: SuisSelectMultiIsSelectedPipe, name: "suisSelectMultiIsSelected" }, { kind: "pipe", type: SuisSelectSortOptionsPipe, name: "suisSelectSortOptions" }, { kind: "pipe", type: SuisSelectFilterOptionsPipe, name: "suisSelectFilterOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
70
|
-
}
|
71
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectMultiComponent, decorators: [{
|
72
|
-
type: Component,
|
73
|
-
args: [{ selector: 'suis-select-multi', standalone: true, imports: [
|
74
|
-
NgFor,
|
75
|
-
NgIf,
|
76
|
-
FormsModule,
|
77
|
-
SuisIconComponent,
|
78
|
-
SuisChipComponent,
|
79
|
-
SuisSelectOptionComponent,
|
80
|
-
SuisSelectMultiChipsPipe,
|
81
|
-
SuisSelectMultiIsSelectedPipe,
|
82
|
-
SuisSelectSortOptionsPipe,
|
83
|
-
SuisSelectFilterOptionsPipe,
|
84
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
85
|
-
{
|
86
|
-
provide: NG_VALUE_ACCESSOR,
|
87
|
-
multi: true,
|
88
|
-
useExisting: forwardRef(() => SuisSelectMultiComponent),
|
89
|
-
},
|
90
|
-
], template: "<div class=\"suis-select-multi\">\n <button\n type=\"button\"\n (click)=\"onExpand()\"\n class=\"suis-select-multi__button\"\n [class.suis-select-multi__button--invalid]=\"invalid\"\n [class.suis-select-multi__button--readonly]=\"readonly\"\n [class.suis-select-multi__button--valid]=\"values.length > 0\"\n [disabled]=\"readonly\"\n >\n <span class=\"suis-select-multi__button__value\">\n <ng-container *ngIf=\"!values?.length\">\n {{ placeholder }}\n </ng-container>\n <ng-container *ngIf=\"values?.length\">\n <suis-chip\n *ngFor=\"\n let value of values | suisSelectMultiChips : options;\n let index = index\n \"\n [removable]=\"true\"\n [color]=\"chipColor\"\n [iconColor]=\"chipIconColor\"\n (remove)=\"onRemove(index)\"\n >\n {{ value }}\n </suis-chip>\n </ng-container>\n </span>\n <span class=\"suis-select-multi__button__actions\">\n <suis-icon\n *ngIf=\"values?.length\"\n class=\"suis-select-multi__button__cross\"\n type=\"times\"\n size=\"lg\"\n color=\"primary\"\n (click)=\"onClear($event)\"\n tabindex=\"0\"\n ></suis-icon>\n <suis-icon\n class=\"suis-select-multi__button__chevron\"\n [type]=\"expanded ? 'chevron-up' : 'chevron-down'\"\n size=\"lg\"\n color=\"primary\"\n tabindex=\"0\"\n ></suis-icon>\n </span>\n </button>\n <div *ngIf=\"expanded\" class=\"suis-select-multi__list\">\n <input\n *ngIf=\"search\"\n [ngModel]=\"searchPhrase\"\n (ngModelChange)=\"onSearchPhraseChange($event)\"\n class=\"suis-select-multi__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 | suisSelectMultiIsSelected : values\"\n [checkbox]=\"!duplicate\"\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-multi{position:relative}.suis-select-multi__button{width:100%;background-color:#fff;border-radius:.25rem;padding:.5rem 1rem;border:.0625rem solid #dcdde1;min-height:2.625rem;min-width:5rem;position:relative;display:flex;align-items:center;justify-content:space-between;padding:.25rem .5rem .25rem 1rem;cursor:pointer}.suis-select-multi__button:focus{border:.0625rem solid #192a56;box-shadow:0 2px 5px #192a56bf;outline:none}.suis-select-multi__button--invalid{border:.0625rem solid #ff4757}.suis-select-multi__button--invalid:focus{border:.0625rem solid #ff4757;box-shadow:0 2px 5px #ff4757bf}.suis-select-multi__button--readonly{cursor:not-allowed}.suis-select-multi__button--readonly:focus{border:.0625rem solid #dcdde1;box-shadow:none;outline:none}.suis-select-multi__button__value{width:100%;text-align:left;text-overflow:ellipsis;text-wrap:nowrap;overflow:hidden}.suis-select-multi__button__actions{margin-left:.25rem;display:flex;justify-content:right;align-items:center}.suis-select-multi__button--valid{padding-bottom:.125rem}.suis-select-multi__button suis-chip{margin-right:.25rem;margin-bottom:.125rem}.suis-select-multi__button suis-chip:last-child{margin-right:0}.suis-select-multi__button__value{display:flex;flex-wrap:wrap}.suis-select-multi__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:2.625rem;left:0;max-height:13.375rem;overflow-y:auto}.suis-select-multi__list::-webkit-scrollbar{width:.5rem}.suis-select-multi__list::-webkit-scrollbar-track{background:#f5f6fa}.suis-select-multi__list::-webkit-scrollbar-thumb{background:#dcdde1}.suis-select-multi__list::-webkit-scrollbar-thumb:hover{background:#bcbcbc}.suis-select-multi__list__search{width:100%;border:none;border-bottom:1px solid #dcdde1;padding:.375rem 1rem;font-size:.875rem}.suis-select-multi__list__search:focus{outline:none}\n"] }]
|
91
|
-
}], propDecorators: { duplicate: [{
|
92
|
-
type: Input
|
93
|
-
}], chipColor: [{
|
94
|
-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3B0aW9uVHJhY2tCeVxuICAgICAgXCJcbiAgICAgIFtvcHRpb25dPVwib3B0aW9uXCJcbiAgICAgIFt0ZW1wbGF0ZVJlZl09XCJzdWlzU2VsZWN0T3B0aW9uPy50ZW1wbGF0ZVJlZlwiXG4gICAgICBbc2VsZWN0ZWRdPVwib3B0aW9uLnZhbHVlIHwgc3Vpc1NlbGVjdE11bHRpSXNTZWxlY3RlZCA6IHZhbHVlc1wiXG4gICAgICBbY2hlY2tib3hdPVwiIWR1cGxpY2F0ZVwiXG4gICAgICAoY2xpY2tlZCk9XCJvblNlbGVjdChvcHRpb24udmFsdWUpXCJcbiAgICA+PC9zdWlzLXNlbGVjdC1vcHRpb24+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0=
|
@@ -1,4 +0,0 @@
|
|
1
|
-
export * from './suis-select-option.component';
|
2
|
-
export * from './suis-select-option.directive';
|
3
|
-
export * from './suis-select-option.interfaces';
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtc2VsZWN0LW9wdGlvbi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGdDQUFnQyxDQUFDO0FBQy9DLGNBQWMsZ0NBQWdDLENBQUM7QUFDL0MsY0FBYyxpQ0FBaUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc3Vpcy1zZWxlY3Qtb3B0aW9uLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL3N1aXMtc2VsZWN0LW9wdGlvbi5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9zdWlzLXNlbGVjdC1vcHRpb24uaW50ZXJmYWNlcyc7XG4iXX0=
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { Directive, TemplateRef, inject } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export class SuisSelectOptionDirective {
|
4
|
-
constructor() {
|
5
|
-
/**
|
6
|
-
* Custom template of the option.
|
7
|
-
*/
|
8
|
-
this.templateRef = inject((TemplateRef));
|
9
|
-
}
|
10
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectOptionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
11
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SuisSelectOptionDirective, isStandalone: true, selector: "[suisSelectOption]", ngImport: i0 }); }
|
12
|
-
}
|
13
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectOptionDirective, decorators: [{
|
14
|
-
type: Directive,
|
15
|
-
args: [{
|
16
|
-
selector: '[suisSelectOption]',
|
17
|
-
standalone: true,
|
18
|
-
}]
|
19
|
-
}] });
|
20
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3Qtb3B0aW9uLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL2NvbXBvbmVudHMvc3Vpcy1zZWxlY3Qtb3B0aW9uL3N1aXMtc2VsZWN0LW9wdGlvbi5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxXQUFXLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQU8vRCxNQUFNLE9BQU8seUJBQXlCO0lBSnRDO1FBS0U7O1dB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LW9wdGlvbi9zdWlzLXNlbGVjdC1vcHRpb24uaW50ZXJmYWNlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBTdWlzU2VsZWN0T3B0aW9uPFQ+IHtcbiAgbGFiZWw6IHN0cmluZztcbiAgdmFsdWU6IFQ7XG4gIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAdHlwZXNjcmlwdC1lc2xpbnQvbm8tZXhwbGljaXQtYW55XG4gIFtrZXk6IHN0cmluZ106IGFueTtcbn1cbiJdfQ==
|
@@ -1,81 +0,0 @@
|
|
1
|
-
import { ContentChild, Directive, EventEmitter, HostListener, Input, Output, } from '@angular/core';
|
2
|
-
import { SuisInputBase } from './suis-input.base';
|
3
|
-
import { SuisSelectOptionDirective } from '../../components/suis-select-option/suis-select-option.directive';
|
4
|
-
import * as i0 from "@angular/core";
|
5
|
-
export class SuisSelectBase extends SuisInputBase {
|
6
|
-
constructor() {
|
7
|
-
super(...arguments);
|
8
|
-
/** @internal */
|
9
|
-
this.searchPhrase = '';
|
10
|
-
/** @internal */
|
11
|
-
this.expanded = false;
|
12
|
-
/**
|
13
|
-
* Options displayed in dropdown list. Type of SuisSelectOption[].
|
14
|
-
*/
|
15
|
-
this.options = [];
|
16
|
-
/**
|
17
|
-
* Displays search input above options. By default set to true.
|
18
|
-
*/
|
19
|
-
this.search = true;
|
20
|
-
/**
|
21
|
-
* Placeholder text displayed in options search. By default set to 'Search...'.
|
22
|
-
*/
|
23
|
-
this.searchPlaceholder = 'Search...';
|
24
|
-
/**
|
25
|
-
* Placeholder text displayed when value is not selected. By default set to 'Select option...'.
|
26
|
-
*/
|
27
|
-
this.placeholder = 'Select option...';
|
28
|
-
/**
|
29
|
-
* Emits on search phrase changed.
|
30
|
-
*/
|
31
|
-
this.searchPhraseChanged = new EventEmitter();
|
32
|
-
}
|
33
|
-
onClear(event) {
|
34
|
-
this.clearValue();
|
35
|
-
event.stopPropagation();
|
36
|
-
}
|
37
|
-
onSearchPhraseChange(text) {
|
38
|
-
this.searchPhrase = text;
|
39
|
-
this.searchPhraseChanged.emit(text);
|
40
|
-
}
|
41
|
-
onExpand() {
|
42
|
-
this.toggle(!this.expanded);
|
43
|
-
this.onTouch();
|
44
|
-
}
|
45
|
-
toggle(value) {
|
46
|
-
this.expanded = value;
|
47
|
-
this.searchPhrase = '';
|
48
|
-
}
|
49
|
-
onDocumentClick(event) {
|
50
|
-
if (!this.elRef.nativeElement.contains(event.target)) {
|
51
|
-
this.expanded = false;
|
52
|
-
}
|
53
|
-
}
|
54
|
-
/** @internal */
|
55
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
56
|
-
optionTrackBy(index, option) {
|
57
|
-
return `${JSON.stringify(option.value)}`;
|
58
|
-
}
|
59
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectBase, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
60
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SuisSelectBase, inputs: { options: "options", search: "search", searchPlaceholder: "searchPlaceholder", placeholder: "placeholder" }, outputs: { searchPhraseChanged: "searchPhraseChanged" }, host: { listeners: { "document:click": "onDocumentClick($event)" } }, queries: [{ propertyName: "suisSelectOption", first: true, predicate: SuisSelectOptionDirective, descendants: true }], usesInheritance: true, ngImport: i0 }); }
|
61
|
-
}
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectBase, decorators: [{
|
63
|
-
type: Directive
|
64
|
-
}], propDecorators: { suisSelectOption: [{
|
65
|
-
type: ContentChild,
|
66
|
-
args: [SuisSelectOptionDirective]
|
67
|
-
}], options: [{
|
68
|
-
type: Input
|
69
|
-
}], search: [{
|
70
|
-
type: Input
|
71
|
-
}], searchPlaceholder: [{
|
72
|
-
type: Input
|
73
|
-
}], placeholder: [{
|
74
|
-
type: Input
|
75
|
-
}], searchPhraseChanged: [{
|
76
|
-
type: Output
|
77
|
-
}], onDocumentClick: [{
|
78
|
-
type: HostListener,
|
79
|
-
args: ['document:click', ['$event']]
|
80
|
-
}] } });
|
81
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QuYmFzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL3NoYXJlZC9jbGFzc2VzL3N1aXMtc2VsZWN0LmJhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFlBQVksRUFDWixTQUFTLEVBQ1QsWUFBWSxFQUNaLFlBQVksRUFDWixLQUFLLEVBQ0wsTUFBTSxHQUNQLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUVsRCxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSxrRUFBa0UsQ0FBQzs7QUFHN0csTUFBTSxPQUFnQixjQUFrQixTQUFRLGFBQWE7SUFEN0Q7O1FBTUUsZ0JBQWdCO1FBQ04saUJBQVksR0FBVyxFQUFFLENBQUM7UUFFcEMsZ0JBQWdCO1FBQ04sYUFBUSxHQUFZLEtBQUssQ0FBQztRQUVwQzs7V0FFRztRQUNNLFlBQU8sR0FBMEIsRUFBRSxDQUFDO1FBRTdDOztXQUVHO1FBQ00sV0FBTSxHQUFZLElBQUksQ0FBQztRQUVoQzs7V0FFRztRQUNNLHNCQUFpQixHQUFXLFdBQVcsQ0FBQztRQUVqRDs7V0FFRztRQUNNLGdCQUFXLEdBQVcsa0JBQWtCLENBQUM7UUFFbEQ7O1dBRUc7UUFDTyx3Qk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V0KSkge1xuICAgICAgdGhpcy5leHBhbmRlZCA9IGZhbHNlO1xuICAgIH1cbiAgfVxuXG4gIC8qKiBAaW50ZXJuYWwgKi9cbiAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9uby1leHBsaWNpdC1hbnlcbiAgb3B0aW9uVHJhY2tCeShpbmRleDogbnVtYmVyLCBvcHRpb246IFN1aXNTZWxlY3RPcHRpb248YW55Pik6IHN0cmluZyB7XG4gICAgcmV0dXJuIGAke0pTT04uc3RyaW5naWZ5KG9wdGlvbi52YWx1ZSl9YDtcbiAgfVxufVxuIl19
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { Pipe } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export class SuisSelectFilterOptionsPipe {
|
4
|
-
transform(options, phrase) {
|
5
|
-
if (!phrase)
|
6
|
-
return options;
|
7
|
-
return options.filter((option) => option.label.toLocaleLowerCase().includes(phrase.toLocaleLowerCase()));
|
8
|
-
}
|
9
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectFilterOptionsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
10
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectFilterOptionsPipe, isStandalone: true, name: "suisSelectFilterOptions" }); }
|
11
|
-
}
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectFilterOptionsPipe, decorators: [{
|
13
|
-
type: Pipe,
|
14
|
-
args: [{
|
15
|
-
standalone: true,
|
16
|
-
name: 'suisSelectFilterOptions',
|
17
|
-
}]
|
18
|
-
}] });
|
19
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtZ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