suis 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/index.mjs +2 -1
- package/esm2022/lib/components/index.mjs +1 -11
- package/esm2022/lib/components/suis-dialog/suis-dialog.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/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 +838 -521
- 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-pagination/suis-pagination-per-page-options.pipe.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 -1
- 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
package/esm2022/lib/modules/suis-select/components/suis-select-multi/suis-select-multi.component.mjs
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';
|
2
|
+
import { NgFor, NgIf } from '@angular/common';
|
3
|
+
import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
4
|
+
import { SuisSelectSortOptionsPipe } from '../../pipes/suis-select-sort-options.pipe';
|
5
|
+
import { SuisSelectOptionComponent } from '../suis-select-option/suis-select-option.component';
|
6
|
+
import { SuisChipComponent } from '../../../../components/suis-chip/suis-chip.component';
|
7
|
+
import { SuisSelectMultiChipsPipe } from '../../pipes/suis-select-multi-chips.pipe';
|
8
|
+
import { SuisSelectMultiIsSelectedPipe } from '../../pipes/suis-select-multi-is-selected.pipe';
|
9
|
+
import { SuisSelectFilterOptionsPipe } from '../../pipes/suis-select-filter-options.pipe';
|
10
|
+
import { SuisSelectButtonMultiComponent } from '../suis-select-button-multi/suis-select-button-multi.component';
|
11
|
+
import { SuisSelectMultiBase } from '../../classes/suis-select-multi.base';
|
12
|
+
import * as i0 from "@angular/core";
|
13
|
+
import * as i1 from "@angular/forms";
|
14
|
+
export class SuisSelectMultiComponent extends SuisSelectMultiBase {
|
15
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectMultiComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
16
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SuisSelectMultiComponent, isStandalone: true, selector: "suis-select-multi", providers: [
|
17
|
+
{
|
18
|
+
provide: NG_VALUE_ACCESSOR,
|
19
|
+
multi: true,
|
20
|
+
useExisting: forwardRef(() => SuisSelectMultiComponent),
|
21
|
+
},
|
22
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"suis-select-multi\">\n <suis-select-button-multi\n [invalid]=\"invalid\"\n [readonly]=\"readonly\"\n [expanded]=\"expanded\"\n [clearable]=\"values.length > 0\"\n (expandedChange)=\"onExpand()\"\n (cleared)=\"onClear($event)\"\n >\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 </suis-select-button-multi>\n <div *ngIf=\"expanded\" class=\"suis-select-multi__list\">\n <input\n #searchInput\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__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: 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" }, { kind: "component", type: SuisSelectButtonMultiComponent, selector: "suis-select-button-multi" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
23
|
+
}
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectMultiComponent, decorators: [{
|
25
|
+
type: Component,
|
26
|
+
args: [{ selector: 'suis-select-multi', standalone: true, imports: [
|
27
|
+
NgFor,
|
28
|
+
NgIf,
|
29
|
+
FormsModule,
|
30
|
+
SuisChipComponent,
|
31
|
+
SuisSelectOptionComponent,
|
32
|
+
SuisSelectMultiChipsPipe,
|
33
|
+
SuisSelectMultiIsSelectedPipe,
|
34
|
+
SuisSelectSortOptionsPipe,
|
35
|
+
SuisSelectFilterOptionsPipe,
|
36
|
+
SuisSelectButtonMultiComponent,
|
37
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
38
|
+
{
|
39
|
+
provide: NG_VALUE_ACCESSOR,
|
40
|
+
multi: true,
|
41
|
+
useExisting: forwardRef(() => SuisSelectMultiComponent),
|
42
|
+
},
|
43
|
+
], template: "<div class=\"suis-select-multi\">\n <suis-select-button-multi\n [invalid]=\"invalid\"\n [readonly]=\"readonly\"\n [expanded]=\"expanded\"\n [clearable]=\"values.length > 0\"\n (expandedChange)=\"onExpand()\"\n (cleared)=\"onClear($event)\"\n >\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 </suis-select-button-multi>\n <div *ngIf=\"expanded\" class=\"suis-select-multi__list\">\n <input\n #searchInput\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__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"] }]
|
44
|
+
}] });
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtbXVsdGkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zdWlzL3NyYy9saWIvbW9kdWxlcy9zdWlzLXNlbGVjdC9jb21wb25lbnRzL3N1aXMtc2VsZWN0LW11bHRpL3N1aXMtc2VsZWN0LW11bHRpLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL21vZHVsZXMvc3Vpcy1zZWxlY3QvY29tcG9uZW50cy9zdWlzLXNlbGVjdC1tdWx0aS9zdWlzLXNlbGVjdC1tdWx0aS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMvRSxPQUFPLEVBQUUsS0FBSyxFQUFFLElBQUksRUFBRSxNQUFNLGl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pb24gb2Ygb3B0aW9uc1xuICAgICAgICAgIHwgc3Vpc1NlbGVjdFNvcnRPcHRpb25zXG4gICAgICAgICAgfCBzdWlzU2VsZWN0RmlsdGVyT3B0aW9ucyA6IHNlYXJjaFBocmFzZTtcbiAgICAgICAgdHJhY2tCeTogb3B0aW9uVHJhY2tCeVxuICAgICAgXCJcbiAgICAgIFtvcHRpb25dPVwib3B0aW9uXCJcbiAgICAgIFt0ZW1wbGF0ZVJlZl09XCJzdWlzU2VsZWN0T3B0aW9uPy50ZW1wbGF0ZVJlZlwiXG4gICAgICBbc2VsZWN0ZWRdPVwib3B0aW9uLnZhbHVlIHwgc3Vpc1NlbGVjdE11bHRpSXNTZWxlY3RlZCA6IHZhbHVlc1wiXG4gICAgICBbY2hlY2tib3hdPVwiIWR1cGxpY2F0ZVwiXG4gICAgICAoY2xpY2tlZCk9XCJvblNlbGVjdChvcHRpb24udmFsdWUpXCJcbiAgICA+PC9zdWlzLXNlbGVjdC1vcHRpb24+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0=
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export * from './suis-select-multi-group.component';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9tb2R1bGVzL3N1aXMtc2VsZWN0L2NvbXBvbmVudHMvc3Vpcy1zZWxlY3QtbXVsdGktZ3JvdXAvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxxQ0FBcUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc3Vpcy1zZWxlY3QtbXVsdGktZ3JvdXAuY29tcG9uZW50JztcbiJdfQ==
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import { ChangeDetectionStrategy, Component, ContentChild, Input, forwardRef, } from '@angular/core';
|
2
|
+
import { CommonModule } from '@angular/common';
|
3
|
+
import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
4
|
+
import { SuisChipComponent } from '../../../../components/suis-chip/suis-chip.component';
|
5
|
+
import { SuisSelectMultiBase } from '../../classes/suis-select-multi.base';
|
6
|
+
import { SuisSelectGroupOptionDirective } from '../../directives/suis-select-group-option.directive';
|
7
|
+
import { SuisSelectButtonMultiComponent } from '../suis-select-button-multi/suis-select-button-multi.component';
|
8
|
+
import { SuisSelectOptionComponent } from '../suis-select-option';
|
9
|
+
import { SuisSelectGroupOptionComponent } from '../suis-select-group-option';
|
10
|
+
import { SuisSelectSortOptionsPipe } from '../../pipes/suis-select-sort-options.pipe';
|
11
|
+
import { SuisSelectMultiGroupChipsPipe } from '../../pipes/suis-select-multi-group-chips.pipe';
|
12
|
+
import { SuisSelectFilterGroupOptionsPipe } from '../../pipes/suis-select-filter-group-options.pipe';
|
13
|
+
import { SuisSelectMultiIsSelectedPipe } from '../../pipes/suis-select-multi-is-selected.pipe';
|
14
|
+
import { SuisSelectFilterOptionsPipe } from '../../pipes/suis-select-filter-options.pipe';
|
15
|
+
import * as i0 from "@angular/core";
|
16
|
+
import * as i1 from "@angular/common";
|
17
|
+
import * as i2 from "@angular/forms";
|
18
|
+
export class SuisSelectMultiGroupComponent extends SuisSelectMultiBase {
|
19
|
+
constructor() {
|
20
|
+
super(...arguments);
|
21
|
+
/**
|
22
|
+
* Group options displayed in dropdown list. Type of SuisSelectGroupOption[].
|
23
|
+
*/
|
24
|
+
this.groupOptions = [];
|
25
|
+
}
|
26
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectMultiGroupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
27
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SuisSelectMultiGroupComponent, isStandalone: true, selector: "suis-select-multi-group", inputs: { groupOptions: "groupOptions" }, providers: [
|
28
|
+
{
|
29
|
+
provide: NG_VALUE_ACCESSOR,
|
30
|
+
multi: true,
|
31
|
+
useExisting: forwardRef(() => SuisSelectMultiGroupComponent),
|
32
|
+
},
|
33
|
+
], queries: [{ propertyName: "suisSelectGroupOption", first: true, predicate: SuisSelectGroupOptionDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"suis-select-multi-group\">\n <suis-select-button-multi\n [invalid]=\"invalid\"\n [readonly]=\"readonly\"\n [expanded]=\"expanded\"\n [clearable]=\"values.length > 0\"\n (expandedChange)=\"onExpand()\"\n (cleared)=\"onClear($event)\"\n >\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 | suisSelectMultiGroupChips : groupOptions;\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 </suis-select-button-multi>\n <div *ngIf=\"expanded\" class=\"suis-select-multi-group__list\">\n <input\n #searchInput\n *ngIf=\"search\"\n [ngModel]=\"searchPhrase\"\n (ngModelChange)=\"onSearchPhraseChange($event)\"\n class=\"suis-select-multi-group__list__search\"\n type=\"search\"\n [placeholder]=\"searchPlaceholder\"\n />\n <ng-container\n *ngFor=\"\n let group of groupOptions\n | suisSelectSortOptions\n | suisSelectFilterGroupOptions : searchPhrase\n \"\n >\n <suis-select-group-option\n [option]=\"group\"\n [templateRef]=\"suisSelectGroupOption?.templateRef\"\n ></suis-select-group-option>\n <suis-select-option\n *ngFor=\"\n let option of group.children\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 </ng-container>\n </div>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-select-multi-group{position:relative}.suis-select-multi-group__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-group__list::-webkit-scrollbar{width:.5rem}.suis-select-multi-group__list::-webkit-scrollbar-track{background:#f5f6fa}.suis-select-multi-group__list::-webkit-scrollbar-thumb{background:#dcdde1}.suis-select-multi-group__list::-webkit-scrollbar-thumb:hover{background:#bcbcbc}.suis-select-multi-group__list__search{width:100%;border:none;border-bottom:1px solid #dcdde1;padding:.375rem 1rem;font-size:.875rem}.suis-select-multi-group__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: SuisChipComponent, selector: "suis-chip", inputs: ["color", "iconColor", "removable"], outputs: ["remove"] }, { kind: "component", type: SuisSelectButtonMultiComponent, selector: "suis-select-button-multi" }, { kind: "component", type: SuisSelectOptionComponent, selector: "suis-select-option", inputs: ["option", "templateRef", "selected", "checkbox"], outputs: ["clicked"] }, { kind: "component", type: SuisSelectGroupOptionComponent, selector: "suis-select-group-option", inputs: ["option", "templateRef"] }, { kind: "pipe", type: SuisSelectSortOptionsPipe, name: "suisSelectSortOptions" }, { kind: "pipe", type: SuisSelectMultiGroupChipsPipe, name: "suisSelectMultiGroupChips" }, { kind: "pipe", type: SuisSelectFilterOptionsPipe, name: "suisSelectFilterOptions" }, { kind: "pipe", type: SuisSelectFilterGroupOptionsPipe, name: "suisSelectFilterGroupOptions" }, { kind: "pipe", type: SuisSelectMultiIsSelectedPipe, name: "suisSelectMultiIsSelected" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
34
|
+
}
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectMultiGroupComponent, decorators: [{
|
36
|
+
type: Component,
|
37
|
+
args: [{ selector: 'suis-select-multi-group', standalone: true, imports: [
|
38
|
+
CommonModule,
|
39
|
+
FormsModule,
|
40
|
+
SuisChipComponent,
|
41
|
+
SuisSelectButtonMultiComponent,
|
42
|
+
SuisSelectOptionComponent,
|
43
|
+
SuisSelectGroupOptionComponent,
|
44
|
+
SuisSelectSortOptionsPipe,
|
45
|
+
SuisSelectMultiGroupChipsPipe,
|
46
|
+
SuisSelectFilterOptionsPipe,
|
47
|
+
SuisSelectFilterGroupOptionsPipe,
|
48
|
+
SuisSelectMultiIsSelectedPipe,
|
49
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
50
|
+
{
|
51
|
+
provide: NG_VALUE_ACCESSOR,
|
52
|
+
multi: true,
|
53
|
+
useExisting: forwardRef(() => SuisSelectMultiGroupComponent),
|
54
|
+
},
|
55
|
+
], template: "<div class=\"suis-select-multi-group\">\n <suis-select-button-multi\n [invalid]=\"invalid\"\n [readonly]=\"readonly\"\n [expanded]=\"expanded\"\n [clearable]=\"values.length > 0\"\n (expandedChange)=\"onExpand()\"\n (cleared)=\"onClear($event)\"\n >\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 | suisSelectMultiGroupChips : groupOptions;\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 </suis-select-button-multi>\n <div *ngIf=\"expanded\" class=\"suis-select-multi-group__list\">\n <input\n #searchInput\n *ngIf=\"search\"\n [ngModel]=\"searchPhrase\"\n (ngModelChange)=\"onSearchPhraseChange($event)\"\n class=\"suis-select-multi-group__list__search\"\n type=\"search\"\n [placeholder]=\"searchPlaceholder\"\n />\n <ng-container\n *ngFor=\"\n let group of groupOptions\n | suisSelectSortOptions\n | suisSelectFilterGroupOptions : searchPhrase\n \"\n >\n <suis-select-group-option\n [option]=\"group\"\n [templateRef]=\"suisSelectGroupOption?.templateRef\"\n ></suis-select-group-option>\n <suis-select-option\n *ngFor=\"\n let option of group.children\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 </ng-container>\n </div>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{display:block}.suis-select-multi-group{position:relative}.suis-select-multi-group__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-group__list::-webkit-scrollbar{width:.5rem}.suis-select-multi-group__list::-webkit-scrollbar-track{background:#f5f6fa}.suis-select-multi-group__list::-webkit-scrollbar-thumb{background:#dcdde1}.suis-select-multi-group__list::-webkit-scrollbar-thumb:hover{background:#bcbcbc}.suis-select-multi-group__list__search{width:100%;border:none;border-bottom:1px solid #dcdde1;padding:.375rem 1rem;font-size:.875rem}.suis-select-multi-group__list__search:focus{outline:none}\n"] }]
|
56
|
+
}], propDecorators: { suisSelectGroupOption: [{
|
57
|
+
type: ContentChild,
|
58
|
+
args: [SuisSelectGroupOptionDirective]
|
59
|
+
}], groupOptions: [{
|
60
|
+
type: Input
|
61
|
+
}] } });
|
62
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtbXVsdGktZ3JvdXAuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zdWlzL3NyYy9saWIvbW9kdWxlcy9zdWlzLXNlbGVjdC9jb21wb25lbnRzL3N1aXMtc2VsZWN0LW11bHRpLWdyb3VwL3N1aXMtc2VsZWN0LW11bHRpLWdyb3VwLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL21vZHVsZXMvc3Vpcy1zZWxlY3QvY29tcG9uZW50cy9zdWlzLXNlbGVjdC1tdWx0aS1ncm91cC9zdWlzLXNlbGVjdC1tdWx0aS1ncm91cC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxZQUFZLEVBQ1osS0FBSyxFQUNMLFVBQVUsR0FDWCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUF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ucyA6IHNlYXJjaFBocmFzZTtcbiAgICAgICAgICB0cmFja0J5OiBvcHRpb25UcmFja0J5XG4gICAgICAgIFwiXG4gICAgICAgIFtvcHRpb25dPVwib3B0aW9uXCJcbiAgICAgICAgW3RlbXBsYXRlUmVmXT1cInN1aXNTZWxlY3RPcHRpb24/LnRlbXBsYXRlUmVmXCJcbiAgICAgICAgW3NlbGVjdGVkXT1cIm9wdGlvbi52YWx1ZSB8IHN1aXNTZWxlY3RNdWx0aUlzU2VsZWN0ZWQgOiB2YWx1ZXNcIlxuICAgICAgICBbY2hlY2tib3hdPVwiIWR1cGxpY2F0ZVwiXG4gICAgICAgIChjbGlja2VkKT1cIm9uU2VsZWN0KG9wdGlvbi52YWx1ZSlcIlxuICAgICAgPjwvc3Vpcy1zZWxlY3Qtb3B0aW9uPlxuICAgIDwvbmctY29udGFpbmVyPlxuICA8L2Rpdj5cbjwvZGl2PlxuIl19
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export * from './suis-select-option.component';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9tb2R1bGVzL3N1aXMtc2VsZWN0L2NvbXBvbmVudHMvc3Vpcy1zZWxlY3Qtb3B0aW9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsZ0NBQWdDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3N1aXMtc2VsZWN0LW9wdGlvbi5jb21wb25lbnQnO1xuIl19
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, TemplateRef, } from '@angular/core';
|
2
2
|
import { NgIf, NgTemplateOutlet } from '@angular/common';
|
3
|
-
import { SuisIconComponent } from '
|
3
|
+
import { SuisIconComponent } from '../../../../components/suis-icon/suis-icon.component';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
export class SuisSelectOptionComponent {
|
6
6
|
constructor() {
|
@@ -39,4 +39,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
39
39
|
}], clicked: [{
|
40
40
|
type: Output
|
41
41
|
}] } });
|
42
|
-
//# sourceMappingURL=data:application/json;base64,
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3Qtb3B0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL21vZHVsZXMvc3Vpcy1zZWxlY3QvY29tcG9uZW50cy9zdWlzLXNlbGVjdC1vcHRpb24vc3Vpcy1zZWxlY3Qtb3B0aW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL21vZHVsZXMvc3Vpcy1zZWxlY3QvY29tcG9uZW50cy9zdWlzLXNlbGVjdC1vcHRpb24vc3Vpcy1zZWxlY3Qtb3B0aW9uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULFlBQVksRUFDWixLQUFLLEVBQ0wsTUFBTSxFQUNOLFdBQVcsR0FDWixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsSUFBSSxFQUFFLGdCQUFnQixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFekQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sc0RBQXNELENBQUM7O0FBVXpGLE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tcIlxuICAgICAgc2l6ZT1cInNtXCJcbiAgICA+PC9zdWlzLWljb24+XG4gIDwvc3Bhbj5cbiAgPHNwYW4gY2xhc3M9XCJzdWlzLXNlbGVjdC1vcHRpb25fX2xhYmVsXCI+XG4gICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cInRlbXBsYXRlUmVmOyBlbHNlIGxhYmVsXCI+XG4gICAgICA8bmctY29udGFpbmVyXG4gICAgICAgICpuZ1RlbXBsYXRlT3V0bGV0PVwidGVtcGxhdGVSZWY7IGNvbnRleHQ6IHsgJGltcGxpY2l0OiBvcHRpb24gfVwiXG4gICAgICA+PC9uZy1jb250YWluZXI+XG4gICAgPC9uZy1jb250YWluZXI+XG4gICAgPG5nLXRlbXBsYXRlICNsYWJlbD5cbiAgICAgIHt7IG9wdGlvbj8ubGFiZWwgfX1cbiAgICA8L25nLXRlbXBsYXRlPlxuICA8L3NwYW4+XG48L2J1dHRvbj5cbiJdfQ==
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { Directive, TemplateRef, inject } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export class SuisSelectGroupOptionDirective {
|
4
|
+
constructor() {
|
5
|
+
/**
|
6
|
+
* Custom template of the group 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: SuisSelectGroupOptionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
11
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SuisSelectGroupOptionDirective, isStandalone: true, selector: "[suisSelectGroupOption]", ngImport: i0 }); }
|
12
|
+
}
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectGroupOptionDirective, decorators: [{
|
14
|
+
type: Directive,
|
15
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G9yOiAnW3N1aXNTZWxlY3RHcm91cE9wdGlvbl0nLFxuICBzdGFuZGFsb25lOiB0cnVlLFxufSlcbmV4cG9ydCBjbGFzcyBTdWlzU2VsZWN0R3JvdXBPcHRpb25EaXJlY3RpdmU8VD4ge1xuICAvKipcbiAgICogQ3VzdG9tIHRlbXBsYXRlIG9mIHRoZSBncm91cCBvcHRpb24uXG4gICAqL1xuICBwdWJsaWMgcmVhZG9ubHkgdGVtcGxhdGVSZWYgPSBpbmplY3QoXG4gICAgVGVtcGxhdGVSZWY8eyAkaW1wbGljaXQ6IFN1aXNTZWxlY3RHcm91cE9wdGlvbjxUPiB9PlxuICApO1xufVxuIl19
|
@@ -0,0 +1,20 @@
|
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3Qtb3B0aW9uLmRpcmVjd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dWJsaWMgcmVhZG9ubHkgdGVtcGxhdGVSZWYgPSBpbmplY3QoXG4gICAgVGVtcGxhdGVSZWY8eyAkaW1wbGljaXQ6IFN1aXNTZWxlY3RPcHRpb248VD4gfT5cbiAgKTtcbn1cbiJdfQ==
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export * from './suis-select.module';
|
2
|
+
export * from './components/suis-select';
|
3
|
+
export * from './components/suis-select-group';
|
4
|
+
export * from './components/suis-select-multi';
|
5
|
+
export * from './components/suis-select-multi-group';
|
6
|
+
export * from './directives/suis-select-group-option.directive';
|
7
|
+
export * from './directives/suis-select-option.directive';
|
8
|
+
export * from './interfaces/suis-select-group-option.interfaces';
|
9
|
+
export * from './interfaces/suis-select-option.interfaces';
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9tb2R1bGVzL3N1aXMtc2VsZWN0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsc0JBQXNCLENBQUM7QUFFckMsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLGdDQUFnQyxDQUFDO0FBQy9DLGNBQWMsZ0NBQWdDLENBQUM7QUFDL0MsY0FBYyxzQ0FBc0MsQ0FBQztBQUVyRCxjQUFjLGlEQUFpRCxDQUFDO0FBQ2hFLGNBQWMsMkNBQTJDLENBQUM7QUFFMUQsY0FBYyxrREFBa0QsQ0FBQztBQUNqRSxjQUFjLDRDQUE0QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zdWlzLXNlbGVjdC5tb2R1bGUnO1xuXG5leHBvcnQgKiBmcm9tICcuL2NvbXBvbmVudHMvc3Vpcy1zZWxlY3QnO1xuZXhwb3J0ICogZnJv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R3JvdXBPcHRpb248VD4ge1xuICBsYWJlbDogc3RyaW5nO1xuICBjaGlsZHJlbjogU3Vpc1NlbGVjdE9wdGlvbjxUPltdO1xuICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQHR5cGVzY3JpcHQtZXNsaW50L25vLWV4cGxpY2l0LWFueVxuICBba2V5OiBzdHJpbmddOiBhbnk7XG59XG4iXX0=
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export {};
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3Qtb3B0aW9uLmludGVyZmFjZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9tb2R1bGVzL3N1aXMtc2VsZWN0L2ludGVyZmFjZXMvc3Vpcy1zZWxlY3Qtb3B0aW9uLmludGVyZmFjZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgU3Vpc1NlbGVjdE9wdGlvbjxUPiB7XG4gIGxhYmVsOiBzdHJpbmc7XG4gIHZhbHVlOiBUO1xuICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQHR5cGVzY3JpcHQtZXNsaW50L25vLWV4cGxpY2l0LWFueVxuICBba2V5OiBzdHJpbmddOiBhbnk7XG59XG4iXX0=
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { Pipe } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export class SuisSelectFilterGroupOptionsPipe {
|
4
|
+
transform(groupOptions, phrase) {
|
5
|
+
if (!phrase)
|
6
|
+
return groupOptions;
|
7
|
+
return groupOptions.filter((groupOption) => groupOption.children.some((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: SuisSelectFilterGroupOptionsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
10
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectFilterGroupOptionsPipe, isStandalone: true, name: "suisSelectFilterGroupOptions" }); }
|
11
|
+
}
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectFilterGroupOptionsPipe, decorators: [{
|
13
|
+
type: Pipe,
|
14
|
+
args: [{
|
15
|
+
standalone: true,
|
16
|
+
name: 'suisSelectFilterGroupOptions',
|
17
|
+
}]
|
18
|
+
}] });
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtZmlsdGVyLWdyb3VwLW9wdGlvbnMucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL21vZHVsZXMvc3Vpcy1zZWxlY3QvcGlwZXMvc3Vpcy1zZWxlY3QtZmlsdGVyLWdyb3VwLW9wdGlvbnMucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFPcEQsTUFBTSxPQUFPLGdDQUFnQztJQUMzQyxTQUFTLENBQ1AsWUFBd0MsRUFDeEMsTUFBYztRQUVkLElBQUksQ0FBQyxNQUFNO1lBQUUsT0FBTyxZQUFZLENBQUM7UUFDakMsT0FBTyxZQUFZLENBQUMsTUFBTSxDQUFDLENBQUMsV0FBVyxFQUFFLEVBQUUsQ0FDekMsV0FBVyxDQUFDLFFBQVEsQ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Z3JvdXBPcHRpb24uY2hpbGRyZW4uc29tZSgob3B0aW9uKSA9PlxuICAgICAgICBvcHRpb24ubGFiZWwudG9Mb2NhbGVMb3dlckNhc2UoKS5pbmNsdWRlcyhwaHJhc2UudG9Mb2NhbGVMb3dlckNhc2UoKSlcbiAgICAgIClcbiAgICApO1xuICB9XG59XG4iXX0=
|
@@ -0,0 +1,19 @@
|
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtZmlsdGVyLW9wdGlvbnMucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL21vZHVsZXMvc3Vpcy1zZWxlY3Qvc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ybShcbiAgICBvcHRpb25zOiBTdWlzU2VsZWN0T3B0aW9uPFQ+W10sXG4gICAgcGhyYXNlOiBzdHJpbmdcbiAgKTogU3Vpc1NlbGVjdE9wdGlvbjxUPltdIHtcbiAgICBpZiAoIXBocmFzZSkgcmV0dXJuIG9wdGlvbnM7XG4gICAgcmV0dXJuIG9wdGlvbnMuZmlsdGVyKChvcHRpb24pID0+XG4gICAgICBvcHRpb24ubGFiZWwudG9Mb2NhbGVMb3dlckNhc2UoKS5pbmNsdWRlcyhwaHJhc2UudG9Mb2NhbGVMb3dlckNhc2UoKSlcbiAgICApO1xuICB9XG59XG4iXX0=
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { Pipe } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export class SuisSelectGroupLabelPipe {
|
4
|
+
transform(value, groupOptions, placeholder) {
|
5
|
+
if (!value)
|
6
|
+
return placeholder;
|
7
|
+
const options = groupOptions.map((go) => go.children).flat();
|
8
|
+
const selectedOption = options.find((option) => JSON.stringify(option.value) === JSON.stringify(value));
|
9
|
+
if (!selectedOption)
|
10
|
+
throw Error('[SuisSelectLabelPipe] Provided value does not belong to valid values');
|
11
|
+
return selectedOption.label;
|
12
|
+
}
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectGroupLabelPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
14
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectGroupLabelPipe, isStandalone: true, name: "suisSelectGroupLabel" }); }
|
15
|
+
}
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectGroupLabelPipe, decorators: [{
|
17
|
+
type: Pipe,
|
18
|
+
args: [{
|
19
|
+
standalone: true,
|
20
|
+
name: 'suisSelectGroupL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gICAgICAgICdbU3Vpc1NlbGVjdExhYmVsUGlwZV0gUHJvdmlkZWQgdmFsdWUgZG9lcyBub3QgYmVsb25nIHRvIHZhbGlkIHZhbHVlcydcbiAgICAgICk7XG4gICAgcmV0dXJuIHNlbGVjdGVkT3B0aW9uLmxhYmVsO1xuICB9XG59XG4iXX0=
|
@@ -0,0 +1,17 @@
|
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtaXMtc2VsZWN0ZWQucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL21vZHVsZXMvc3Vpcy1zZWxlY3QvcGlwZXMvc3Vpcy1zZWxlY3QtaXMtc2VsZWN0ZWQucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFNcEQsTUFBTSxPQUFPLHdCQUF3QjtJQUNuQyxTQUFTLENBQUMsV0FBYyxFQUFFLEtBQVE7UUFDaEMsT0FBTyxJQUFJLENBQUMsU0FBUyxDQUFDLFdBQVcsQ0FBQyxLQUFLLElBQUksQ0FBQyxTQUFTLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDL0QsQ0FBQzsrR0FIVSx3QkFBd0I7NkdBQXhCLHdCQUF3Qjs7NEZBQXhCLHdCQUF3QjtrQkFKcEMsSUFBSTttQkFBQztvQkFDSixVQUFVLEVBQUUsSUFBSTtvQkFDaEIsSUFBSSxFQUFFLHNCQUFzQjtpQkFDN0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQaXBlLCBQaXBlVHJhbnNmb3JtIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBQaXBlKHtcbiAgc3RhbmRhbG9uZTogdHJ1ZSxcbiAgbmFtZTogJ3N1aXNTZWxlY3RJc1NlbGVjdGVkJyxcbn0pXG5leHBvcnQgY2xhc3MgU3Vpc1NlbGVjdElzU2VsZWN0ZWRQaXBlPFQ+IGltcGxlbWVudHMgUGlwZVRyYW5zZm9ybSB7XG4gIHRyYW5zZm9ybShvcHRpb25WYWx1ZTogVCwgdmFsdWU6IFQpOiBib29sZWFuIHtcbiAgICByZXR1cm4gSlNPTi5zdHJpbmdpZnkob3B0aW9uVmFsdWUpID09PSBKU09OLnN0cmluZ2lmeSh2YWx1ZSk7XG4gIH1cbn1cbiJdfQ==
|
@@ -0,0 +1,22 @@
|
|
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
|
+
name: 'suisSelectLabel',
|
20
|
+
}]
|
21
|
+
}] });
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtbGFiZWwucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL21vZHVsZXMvc3Vpcy1zZWxlY3QvcGlwZXMvc3Vpcy1zZWxlY3QtbGFiZWwucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFPcEQsTUFBTSxPQUFPLG1CQUFtQjtJQUM5QixTQUFTLENBQ1AsS0FBUSxFQUNSLE9BQThCLEVBQzlCLFdBQW1CO1FBRW5CLElBQUksQ0FBQyxLQUFLO1lBQUUsT0FBTyxXQUFXLENBQUM7UUFDL0IsTUFBTSxjQUFjLEdBQUcsT0FBTyxDQUFD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G4gICAgICAob3B0aW9uKSA9PiBKU09OLnN0cmluZ2lmeShvcHRpb24udmFsdWUpID09PSBKU09OLnN0cmluZ2lmeSh2YWx1ZSlcbiAgICApO1xuICAgIGlmICghc2VsZWN0ZWRPcHRpb24pXG4gICAgICB0aHJvdyBFcnJvcihcbiAgICAgICAgJ1tTdWlzU2VsZWN0TGFiZWxQaXBlXSBQcm92aWRlZCB2YWx1ZSBkb2VzIG5vdCBiZWxvbmcgdG8gdmFsaWQgdmFsdWVzJ1xuICAgICAgKTtcbiAgICByZXR1cm4gc2VsZWN0ZWRPcHRpb24ubGFiZWw7XG4gIH1cbn1cbiJdfQ==
|
@@ -21,4 +21,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
21
21
|
name: 'suisSelectMultiChips',
|
22
22
|
}]
|
23
23
|
}] });
|
24
|
-
//# sourceMappingURL=data:application/json;base64,
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtbXVsdGktY2hpcHMucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL21vZHVsZXMvc3Vpcy1zZWxlY3QvcGlwZXMvc3Vpcy1zZWxlY3QtbXVsdGktY2hpcHMucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFPcEQsTUFBTSxPQUFPLHdCQUF3QjtJQUNuQyxTQUFTLENBQUMsTUFBVyxFQUFFLE9BQThCO1FBQ25ELE1BQU0sZUFBZSxHQUFhLEVBQUUsQ0FBQztRQUVyQyxNQUFNLENBQUMsT0FBTyxDQUFDLENBQUMsS0FBSyxFQUFFLEVBQUU7WUFDdkIsTUFBTSxjQU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HRpb25zOiBzdHJpbmdbXSA9IFtdO1xuXG4gICAgdmFsdWVzLmZvckVhY2goKHZhbHVlKSA9PiB7XG4gICAgICBjb25zdCBzZWxlY3RlZE9wdGlvbiA9IG9wdGlvbnMuZmluZChcbiAgICAgICAgKG9wdGlvbikgPT4gSlNPTi5zdHJpbmdpZnkob3B0aW9uLnZhbHVlKSA9PT0gSlNPTi5zdHJpbmdpZnkodmFsdWUpXG4gICAgICApO1xuICAgICAgaWYgKCFzZWxlY3RlZE9wdGlvbilcbiAgICAgICAgdGhyb3cgRXJyb3IoXG4gICAgICAgICAgJ1tTdWlzU2VsZWN0TXVsdGlMYWJlbFBpcGVdIFByb3ZpZGVkIHZhbHVlIGRvZXMgbm90IGJlbG9uZyB0byB2YWxpZCB2YWx1ZXMnXG4gICAgICAgICk7XG4gICAgICBzZWxlY3RlZE9wdGlvbnMucHVzaChzZWxlY3RlZE9wdGlvbi5sYWJlbCk7XG4gICAgfSk7XG5cbiAgICByZXR1cm4gc2VsZWN0ZWRPcHRpb25zO1xuICB9XG59XG4iXX0=
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { Pipe } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export class SuisSelectMultiGroupChipsPipe {
|
4
|
+
transform(values, groupOptions) {
|
5
|
+
const selectedOptions = [];
|
6
|
+
const options = groupOptions.map((go) => go.children).flat();
|
7
|
+
values.forEach((value) => {
|
8
|
+
const selectedOption = options.find((option) => JSON.stringify(option.value) === JSON.stringify(value));
|
9
|
+
if (!selectedOption)
|
10
|
+
throw Error('[SuisSelectMultiLabelPipe] Provided value does not belong to valid values');
|
11
|
+
selectedOptions.push(selectedOption.label);
|
12
|
+
});
|
13
|
+
return selectedOptions;
|
14
|
+
}
|
15
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectMultiGroupChipsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
16
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectMultiGroupChipsPipe, isStandalone: true, name: "suisSelectMultiGroupChips" }); }
|
17
|
+
}
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectMultiGroupChipsPipe, decorators: [{
|
19
|
+
type: Pipe,
|
20
|
+
args: [{
|
21
|
+
standalone: true,
|
22
|
+
name: 'suisSelectMultiGroupChips',
|
23
|
+
}]
|
24
|
+
}] });
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtbXVsdGktZ3JvdXAtY2hpcHMucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL21vZHVsZXMvc3Vpcy1zZWxlY3QvcGlwZXMvc3Vpcy1zZWxlY3QtbXVsdGktZ3JvdXAtY2hpcHMucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFPcEQsTUFBTSxPQUFPLDZCQUE2QjtJQUN4QyxTQUFTLENBQUMsTUFBVyxFQUFFLFlBQXdDO1FBQzdELE1BQU0sZUFBZSxHQUFhLEVBQUUsQ0FBQztRQUNyQyxNQUFNLE9BQU8sR0FBRyxZQUFZLENBQUMsR0FBRyxDQUFDLENBQUMsRUFBRSxFQUFFLEVBQUUsQ0FBQyxFQUFFLENBQUMsUUFBUSxDQUFDLENBQUMsSUFBSSxFQUFFLENBQUM7UUFFN0QsTUFBTSxDQUFDLE9BQU8sQ0FBQyxDQUFDLEtBQUssRUFBRSxFQUFFO1lBQ3ZCLE1BQU0sY0FBYyxHQUFHLE9B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bXSk6IHN0cmluZ1tdIHtcbiAgICBjb25zdCBzZWxlY3RlZE9wdGlvbnM6IHN0cmluZ1tdID0gW107XG4gICAgY29uc3Qgb3B0aW9ucyA9IGdyb3VwT3B0aW9ucy5tYXAoKGdvKSA9PiBnby5jaGlsZHJlbikuZmxhdCgpO1xuXG4gICAgdmFsdWVzLmZvckVhY2goKHZhbHVlKSA9PiB7XG4gICAgICBjb25zdCBzZWxlY3RlZE9wdGlvbiA9IG9wdGlvbnMuZmluZChcbiAgICAgICAgKG9wdGlvbikgPT4gSlNPTi5zdHJpbmdpZnkob3B0aW9uLnZhbHVlKSA9PT0gSlNPTi5zdHJpbmdpZnkodmFsdWUpXG4gICAgICApO1xuICAgICAgaWYgKCFzZWxlY3RlZE9wdGlvbilcbiAgICAgICAgdGhyb3cgRXJyb3IoXG4gICAgICAgICAgJ1tTdWlzU2VsZWN0TXVsdGlMYWJlbFBpcGVdIFByb3ZpZGVkIHZhbHVlIGRvZXMgbm90IGJlbG9uZyB0byB2YWxpZCB2YWx1ZXMnXG4gICAgICAgICk7XG4gICAgICBzZWxlY3RlZE9wdGlvbnMucHVzaChzZWxlY3RlZE9wdGlvbi5sYWJlbCk7XG4gICAgfSk7XG5cbiAgICByZXR1cm4gc2VsZWN0ZWRPcHRpb25zO1xuICB9XG59XG4iXX0=
|
@@ -14,4 +14,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
14
14
|
name: 'suisSelectMultiIsSelected',
|
15
15
|
}]
|
16
16
|
}] });
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtbXVsdGktaXMtc2VsZWN0ZWQucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmM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ZSkgPT09IEpTT04uc3RyaW5naWZ5KG9wdGlvblZhbHVlKVxuICAgICk7XG4gIH1cbn1cbiJdfQ==
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { Pipe } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export class SuisSelectSortOptionsPipe {
|
4
|
+
transform(options) {
|
5
|
+
return options.sort((a, b) => a.label.localeCompare(b.label));
|
6
|
+
}
|
7
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectSortOptionsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
8
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectSortOptionsPipe, isStandalone: true, name: "suisSelectSortOptions" }); }
|
9
|
+
}
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectSortOptionsPipe, decorators: [{
|
11
|
+
type: Pipe,
|
12
|
+
args: [{
|
13
|
+
standalone: true,
|
14
|
+
name: 'suisSelectSortOptions',
|
15
|
+
}]
|
16
|
+
}] });
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3Qtc29ydC1vcHRpb25zLnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9tb2R1bGVzL3N1aXMtc2VsZWN0L3BpcGVzL3N1aXMtc2VsZWN0LXNvcnQtb3B0aW9ucy5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQWlCLE1BQU0sZUFBZSxDQUFDOztBQU9wRCxNQUFNLE9BQU8seUJBQXlCO0lBQ3BDLFNBQVMsQ0FBQyxPQUE4QjtRQUN0QyxPQUFPLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUMsS0FBSyxDQUFDLGFBQWEsQ0FBQyxDQUFDLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQztJQUNoRSxDQUFDOytHQUhVLHlCQUF5Qjs2R0FBekIseUJBQXlCOzs0RkFBekIseUJBQXlCO2tCQUpyQyxJQUFJO21CQUFDO29CQUNKLFVBQVUsRUFBRSxJQUFJO29CQUNoQixJQUFJLEVBQUUsdUJBQXVCO2lCQUM5QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFBpcGUsIFBpcGVUcmFuc2Zvcm0gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IFN1aXNTZWxlY3RPcHRpb24gfSBmcm9tICcuLi9pbnRlcmZhY2VzL3N1aXMtc2VsZWN0LW9wdGlvbi5pbnRlcmZhY2VzJztcblxuQFBpcGUoe1xuICBzdGFuZGFsb25lOiB0cnVlLFxuICBuYW1lOiAnc3Vpc1NlbGVjdFNvcnRPcHRpb25zJyxcbn0pXG5leHBvcnQgY2xhc3MgU3Vpc1NlbGVjdFNvcnRPcHRpb25zUGlwZTxUPiBpbXBsZW1lbnRzIFBpcGVUcmFuc2Zvcm0ge1xuICB0cmFuc2Zvcm0ob3B0aW9uczogU3Vpc1NlbGVjdE9wdGlvbjxUPltdKTogU3Vpc1NlbGVjdE9wdGlvbjxUPltdIHtcbiAgICByZXR1cm4gb3B0aW9ucy5zb3J0KChhLCBiKSA9PiBhLmxhYmVsLmxvY2FsZUNvbXBhcmUoYi5sYWJlbCkpO1xuICB9XG59XG4iXX0=
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import { NgModule } from '@angular/core';
|
2
|
+
import { SuisSelectComponent } from './components/suis-select/suis-select.component';
|
3
|
+
import { SuisSelectGroupComponent } from './components/suis-select-group/suis-select-group.component';
|
4
|
+
import { SuisSelectMultiComponent } from './components/suis-select-multi/suis-select-multi.component';
|
5
|
+
import { SuisSelectMultiGroupComponent } from './components/suis-select-multi-group/suis-select-multi-group.component';
|
6
|
+
import { SuisSelectOptionDirective } from './directives/suis-select-option.directive';
|
7
|
+
import { SuisSelectGroupOptionDirective } from './directives/suis-select-group-option.directive';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
export class SuisSelectModule {
|
10
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
11
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectModule, imports: [SuisSelectComponent,
|
12
|
+
SuisSelectGroupComponent,
|
13
|
+
SuisSelectMultiComponent,
|
14
|
+
SuisSelectMultiGroupComponent,
|
15
|
+
SuisSelectOptionDirective,
|
16
|
+
SuisSelectGroupOptionDirective], exports: [SuisSelectComponent,
|
17
|
+
SuisSelectGroupComponent,
|
18
|
+
SuisSelectMultiComponent,
|
19
|
+
SuisSelectMultiGroupComponent,
|
20
|
+
SuisSelectOptionDirective,
|
21
|
+
SuisSelectGroupOptionDirective] }); }
|
22
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectModule, imports: [SuisSelectComponent,
|
23
|
+
SuisSelectGroupComponent,
|
24
|
+
SuisSelectMultiComponent,
|
25
|
+
SuisSelectMultiGroupComponent] }); }
|
26
|
+
}
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectModule, decorators: [{
|
28
|
+
type: NgModule,
|
29
|
+
args: [{
|
30
|
+
imports: [
|
31
|
+
SuisSelectComponent,
|
32
|
+
SuisSelectGroupComponent,
|
33
|
+
SuisSelectMultiComponent,
|
34
|
+
SuisSelectMultiGroupComponent,
|
35
|
+
SuisSelectOptionDirective,
|
36
|
+
SuisSelectGroupOptionDirective,
|
37
|
+
],
|
38
|
+
exports: [
|
39
|
+
SuisSelectComponent,
|
40
|
+
SuisSelectGroupComponent,
|
41
|
+
SuisSelectMultiComponent,
|
42
|
+
SuisSelectMultiGroupComponent,
|
43
|
+
SuisSelectOptionDirective,
|
44
|
+
SuisSelectGroupOptionDirective,
|
45
|
+
],
|
46
|
+
}]
|
47
|
+
}] });
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zdWlzL3NyYy9saWIvbW9kdWxlcy9zdWlzLXNlbGVjdC9zdWlzLXNlbGVjdC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxnREFBZ0QsQ0FBQztBQUNyRixPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSw0REFBNEQsQ0FBQztBQUN0RyxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSw0REFBNEQsQ0FBQztBQUN0RyxPQUFPLEVBQUUsNkJBQTZCLEVBQUUsTUFBTSx3RUFBd0UsQ0FBQztBQUN2SCxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSwyQ0FBMkMsQ0FBQztBQUN0RixPQUFPLEVBQUUsOEJBQThCLEVBQUUsTUFBTSxpREFBaUQsQ0FBQzs7QUFvQmpHLE1BQU0sT0FBTyxnQkFBZ0I7K0dBQWhCLGdCQUFnQjtnSEFBaEIsZ0JBQWdCLF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yZWN0aXZlLFxuICBdLFxufSlcbmV4cG9ydCBjbGFzcyBTdWlzU2VsZWN0TW9kdWxlIHt9XG4iXX0=
|
@@ -1,5 +1,4 @@
|
|
1
1
|
export * from './suis-button.base';
|
2
2
|
export * from './suis-checkbox.base';
|
3
3
|
export * from './suis-input.base';
|
4
|
-
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9zaGFyZWQvY2xhc3Nlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLG9CQUFvQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zdWlzLWJ1dHRvbi5iYXNlJztcbmV4cG9ydCAqIGZyb20gJy4vc3Vpcy1jaGVja2JveC5iYXNlJztcbmV4cG9ydCAqIGZyb20gJy4vc3Vpcy1pbnB1dC5iYXNlJztcbmV4cG9ydCAqIGZyb20gJy4vc3Vpcy1zZWxlY3QuYmFzZSc7XG4iXX0=
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9zaGFyZWQvY2xhc3Nlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYyxtQkFBbUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc3Vpcy1idXR0b24uYmFzZSc7XG5leHBvcnQgKiBmcm9tICcuL3N1aXMtY2hlY2tib3guYmFzZSc7XG5leHBvcnQgKiBmcm9tICcuL3N1aXMtaW5wdXQuYmFzZSc7XG4iXX0=
|