@odx/angular 1.0.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdk/autocomplete-control/README.md +3 -0
- package/cdk/autocomplete-control/index.d.ts +3 -0
- package/cdk/autocomplete-control/lib/abstract/base-search-field.directive.d.ts +13 -0
- package/cdk/autocomplete-control/lib/abstract/index.d.ts +1 -0
- package/cdk/autocomplete-control/lib/autocomplete-control.d.ts +39 -0
- package/cdk/autocomplete-control/lib/pipes/base-search-filter-pipe.d.ts +11 -0
- package/cdk/autocomplete-control/lib/pipes/index.d.ts +1 -0
- package/cdk/option-control/README.md +3 -0
- package/cdk/option-control/index.d.ts +1 -0
- package/cdk/option-control/lib/option-control.d.ts +17 -0
- package/components/autocomplete/README.md +3 -0
- package/components/autocomplete/index.d.ts +6 -0
- package/components/autocomplete/lib/autocomplete.component.d.ts +30 -0
- package/components/autocomplete/lib/autocomplete.module.d.ts +11 -0
- package/components/autocomplete/lib/autocomplete.tokens.d.ts +3 -0
- package/components/autocomplete/lib/components/index.d.ts +1 -0
- package/components/autocomplete/lib/components/option/autocomplete-option.component.d.ts +9 -0
- package/components/autocomplete/lib/directives/autocomplete-search-field.directive.d.ts +9 -0
- package/components/autocomplete/lib/directives/index.d.ts +1 -0
- package/components/autocomplete/lib/pipes/autocomplete-search-filter.pipe.d.ts +12 -0
- package/components/autocomplete/lib/pipes/index.d.ts +1 -0
- package/components/button/lib/button.component.d.ts +1 -1
- package/components/chip/index.d.ts +1 -1
- package/components/chip/lib/{chip.component.d.ts → components/chip/chip.component.d.ts} +1 -1
- package/components/chip/lib/components/chip-list/chip-list.component.d.ts +6 -0
- package/components/chip/lib/components/chip-list-row/chip-list-row.component.d.ts +6 -0
- package/components/chip/lib/components/index.d.ts +3 -0
- package/components/dropdown/lib/dropdown.directive.d.ts +2 -1
- package/components/form-field/lib/models/form-field-variant.d.ts +1 -0
- package/components/main-menu/lib/directives/index.d.ts +1 -0
- package/components/main-menu/lib/directives/main-menu-close.directive.d.ts +7 -0
- package/components/main-menu/lib/directives/main-menu-item.directive.d.ts +3 -4
- package/components/main-menu/lib/main-menu.module.d.ts +3 -2
- package/components/menu/lib/directives/menu-item.directive.d.ts +1 -1
- package/components/select/index.d.ts +0 -1
- package/components/select/lib/components/index.d.ts +1 -1
- package/components/select/lib/components/select-option/select-option.component.d.ts +19 -0
- package/components/select/lib/directives/select-search-field.directive.d.ts +3 -7
- package/components/select/lib/pipes/select-search-filter.pipe.d.ts +8 -8
- package/components/select/lib/select.component.d.ts +15 -30
- package/components/select/lib/select.module.d.ts +2 -2
- package/components/select/lib/select.tokens.d.ts +2 -2
- package/components/table/README.md +3 -0
- package/components/table/index.d.ts +5 -0
- package/components/table/lib/components/check-cell/check-cell.component.d.ts +11 -0
- package/components/table/lib/components/header-title/header-title.component.d.ts +28 -0
- package/components/table/lib/components/index.d.ts +2 -0
- package/components/table/lib/directives/index.d.ts +2 -0
- package/components/table/lib/directives/table-cell.directive.d.ts +6 -0
- package/components/table/lib/directives/table-row.directive.d.ts +6 -0
- package/components/table/lib/interfaces/index.d.ts +3 -0
- package/components/table/lib/models/index.d.ts +2 -0
- package/components/table/lib/models/sort-variant.d.ts +6 -0
- package/components/table/lib/models/table-variant.d.ts +5 -0
- package/components/table/lib/table.component.d.ts +29 -0
- package/components/table/lib/table.config.d.ts +4 -0
- package/components/table/lib/table.module.d.ts +11 -0
- package/components/wizard/README.md +3 -0
- package/components/wizard/index.d.ts +3 -0
- package/components/wizard/lib/components/index.d.ts +1 -0
- package/components/wizard/lib/components/wizard-step/wizard-step.component.d.ts +17 -0
- package/components/wizard/lib/wizard.component.d.ts +31 -0
- package/components/wizard/lib/wizard.module.d.ts +9 -0
- package/esm2020/cdk/autocomplete-control/index.mjs +4 -0
- package/esm2020/cdk/autocomplete-control/lib/abstract/base-search-field.directive.mjs +38 -0
- package/esm2020/cdk/autocomplete-control/lib/abstract/index.mjs +2 -0
- package/esm2020/cdk/autocomplete-control/lib/autocomplete-control.mjs +90 -0
- package/esm2020/cdk/autocomplete-control/lib/pipes/base-search-filter-pipe.mjs +32 -0
- package/esm2020/cdk/autocomplete-control/lib/pipes/index.mjs +2 -0
- package/esm2020/cdk/autocomplete-control/odx-angular-cdk-autocomplete-control.mjs +5 -0
- package/esm2020/cdk/option-control/index.mjs +2 -0
- package/esm2020/cdk/option-control/lib/option-control.mjs +47 -0
- package/esm2020/cdk/option-control/odx-angular-cdk-option-control.mjs +5 -0
- package/esm2020/components/autocomplete/index.mjs +7 -0
- package/esm2020/components/autocomplete/lib/autocomplete.component.mjs +162 -0
- package/esm2020/components/autocomplete/lib/autocomplete.module.mjs +21 -0
- package/esm2020/components/autocomplete/lib/autocomplete.tokens.mjs +3 -0
- package/esm2020/components/autocomplete/lib/components/index.mjs +2 -0
- package/esm2020/components/autocomplete/lib/components/option/autocomplete-option.component.mjs +33 -0
- package/esm2020/components/autocomplete/lib/directives/autocomplete-search-field.directive.mjs +26 -0
- package/esm2020/components/autocomplete/lib/directives/index.mjs +2 -0
- package/esm2020/components/autocomplete/lib/pipes/autocomplete-search-filter.pipe.mjs +30 -0
- package/esm2020/components/autocomplete/lib/pipes/index.mjs +2 -0
- package/esm2020/components/autocomplete/odx-angular-components-autocomplete.mjs +5 -0
- package/esm2020/components/button/lib/button.component.mjs +3 -3
- package/esm2020/components/card/lib/card.component.mjs +2 -2
- package/esm2020/components/chip/index.mjs +2 -2
- package/esm2020/components/chip/lib/{chip.component.mjs → components/chip/chip.component.mjs} +2 -2
- package/esm2020/components/chip/lib/components/chip-list/chip-list.component.mjs +21 -0
- package/esm2020/components/chip/lib/components/chip-list-row/chip-list-row.component.mjs +21 -0
- package/esm2020/components/chip/lib/components/index.mjs +4 -0
- package/esm2020/components/dropdown/lib/dropdown.component.mjs +3 -3
- package/esm2020/components/dropdown/lib/dropdown.directive.mjs +10 -2
- package/esm2020/components/form-field/lib/components/form-group/form-group.component.mjs +3 -3
- package/esm2020/components/form-field/lib/form-field.component.mjs +3 -3
- package/esm2020/components/form-field/lib/form-field.service.mjs +2 -2
- package/esm2020/components/form-field/lib/models/form-field-variant.mjs +2 -1
- package/esm2020/components/main-menu/lib/directives/index.mjs +2 -1
- package/esm2020/components/main-menu/lib/directives/main-menu-close.directive.mjs +24 -0
- package/esm2020/components/main-menu/lib/directives/main-menu-item.directive.mjs +6 -12
- package/esm2020/components/main-menu/lib/main-menu.module.mjs +4 -4
- package/esm2020/components/menu/lib/directives/menu-item.directive.mjs +3 -3
- package/esm2020/components/select/index.mjs +1 -2
- package/esm2020/components/select/lib/components/index.mjs +2 -2
- package/esm2020/components/select/lib/components/select-option/select-option.component.mjs +75 -0
- package/esm2020/components/select/lib/directives/select-search-field.directive.mjs +9 -21
- package/esm2020/components/select/lib/pipes/select-search-filter.pipe.mjs +12 -33
- package/esm2020/components/select/lib/select.component.mjs +44 -86
- package/esm2020/components/select/lib/select.module.mjs +5 -5
- package/esm2020/components/select/lib/select.tokens.mjs +2 -2
- package/esm2020/components/table/index.mjs +6 -0
- package/esm2020/components/table/lib/components/check-cell/check-cell.component.mjs +29 -0
- package/esm2020/components/table/lib/components/header-title/header-title.component.mjs +86 -0
- package/esm2020/components/table/lib/components/index.mjs +3 -0
- package/esm2020/components/table/lib/directives/index.mjs +3 -0
- package/esm2020/components/table/lib/directives/table-cell.directive.mjs +27 -0
- package/esm2020/components/table/lib/directives/table-row.directive.mjs +28 -0
- package/esm2020/components/table/lib/interfaces/index.mjs +4 -0
- package/esm2020/components/table/lib/models/index.mjs +3 -0
- package/esm2020/components/table/lib/models/sort-variant.mjs +6 -0
- package/esm2020/components/table/lib/models/table-variant.mjs +5 -0
- package/esm2020/components/table/lib/table.component.mjs +86 -0
- package/esm2020/components/table/lib/table.config.mjs +3 -0
- package/esm2020/components/table/lib/table.module.mjs +21 -0
- package/esm2020/components/table/odx-angular-components-table.mjs +5 -0
- package/esm2020/components/wizard/index.mjs +4 -0
- package/esm2020/components/wizard/lib/components/index.mjs +2 -0
- package/esm2020/components/wizard/lib/components/wizard-step/wizard-step.component.mjs +73 -0
- package/esm2020/components/wizard/lib/wizard.component.mjs +155 -0
- package/esm2020/components/wizard/lib/wizard.module.mjs +19 -0
- package/esm2020/components/wizard/odx-angular-components-wizard.mjs +5 -0
- package/esm2020/lib/services/window-ref.mjs +4 -1
- package/fesm2015/odx-angular-cdk-autocomplete-control.mjs +164 -0
- package/fesm2015/odx-angular-cdk-autocomplete-control.mjs.map +1 -0
- package/fesm2015/odx-angular-cdk-option-control.mjs +55 -0
- package/fesm2015/odx-angular-cdk-option-control.mjs.map +1 -0
- package/fesm2015/odx-angular-components-autocomplete.mjs +263 -0
- package/fesm2015/odx-angular-components-autocomplete.mjs.map +1 -0
- package/fesm2015/odx-angular-components-button.mjs +2 -2
- package/fesm2015/odx-angular-components-button.mjs.map +1 -1
- package/fesm2015/odx-angular-components-card.mjs +1 -1
- package/fesm2015/odx-angular-components-card.mjs.map +1 -1
- package/fesm2015/odx-angular-components-chip.mjs +35 -5
- package/fesm2015/odx-angular-components-chip.mjs.map +1 -1
- package/fesm2015/odx-angular-components-dropdown.mjs +11 -3
- package/fesm2015/odx-angular-components-dropdown.mjs.map +1 -1
- package/fesm2015/odx-angular-components-form-field.mjs +5 -4
- package/fesm2015/odx-angular-components-form-field.mjs.map +1 -1
- package/fesm2015/odx-angular-components-main-menu.mjs +28 -14
- package/fesm2015/odx-angular-components-main-menu.mjs.map +1 -1
- package/fesm2015/odx-angular-components-menu.mjs +2 -2
- package/fesm2015/odx-angular-components-menu.mjs.map +1 -1
- package/fesm2015/odx-angular-components-select.mjs +80 -175
- package/fesm2015/odx-angular-components-select.mjs.map +1 -1
- package/fesm2015/odx-angular-components-table.mjs +264 -0
- package/fesm2015/odx-angular-components-table.mjs.map +1 -0
- package/fesm2015/odx-angular-components-wizard.mjs +242 -0
- package/fesm2015/odx-angular-components-wizard.mjs.map +1 -0
- package/fesm2015/odx-angular.mjs +3 -0
- package/fesm2015/odx-angular.mjs.map +1 -1
- package/fesm2020/odx-angular-cdk-autocomplete-control.mjs +160 -0
- package/fesm2020/odx-angular-cdk-autocomplete-control.mjs.map +1 -0
- package/fesm2020/odx-angular-cdk-option-control.mjs +54 -0
- package/fesm2020/odx-angular-cdk-option-control.mjs.map +1 -0
- package/fesm2020/odx-angular-components-autocomplete.mjs +254 -0
- package/fesm2020/odx-angular-components-autocomplete.mjs.map +1 -0
- package/fesm2020/odx-angular-components-button.mjs +2 -2
- package/fesm2020/odx-angular-components-button.mjs.map +1 -1
- package/fesm2020/odx-angular-components-card.mjs +1 -1
- package/fesm2020/odx-angular-components-card.mjs.map +1 -1
- package/fesm2020/odx-angular-components-chip.mjs +35 -5
- package/fesm2020/odx-angular-components-chip.mjs.map +1 -1
- package/fesm2020/odx-angular-components-dropdown.mjs +11 -3
- package/fesm2020/odx-angular-components-dropdown.mjs.map +1 -1
- package/fesm2020/odx-angular-components-form-field.mjs +5 -4
- package/fesm2020/odx-angular-components-form-field.mjs.map +1 -1
- package/fesm2020/odx-angular-components-main-menu.mjs +28 -14
- package/fesm2020/odx-angular-components-main-menu.mjs.map +1 -1
- package/fesm2020/odx-angular-components-menu.mjs +2 -2
- package/fesm2020/odx-angular-components-menu.mjs.map +1 -1
- package/fesm2020/odx-angular-components-select.mjs +77 -170
- package/fesm2020/odx-angular-components-select.mjs.map +1 -1
- package/fesm2020/odx-angular-components-table.mjs +259 -0
- package/fesm2020/odx-angular-components-table.mjs.map +1 -0
- package/fesm2020/odx-angular-components-wizard.mjs +239 -0
- package/fesm2020/odx-angular-components-wizard.mjs.map +1 -0
- package/fesm2020/odx-angular.mjs +3 -0
- package/fesm2020/odx-angular.mjs.map +1 -1
- package/lib/services/window-ref.d.ts +1 -0
- package/package.json +48 -8
- package/components/select/lib/abstract/index.d.ts +0 -2
- package/components/select/lib/abstract/select-control-option.d.ts +0 -9
- package/components/select/lib/abstract/select-control.d.ts +0 -12
- package/components/select/lib/components/option/option.component.d.ts +0 -26
- package/esm2020/components/select/lib/abstract/index.mjs +0 -3
- package/esm2020/components/select/lib/abstract/select-control-option.mjs +0 -2
- package/esm2020/components/select/lib/abstract/select-control.mjs +0 -2
- package/esm2020/components/select/lib/components/option/option.component.mjs +0 -95
|
@@ -1,37 +1,33 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { InjectionToken, inject,
|
|
4
|
+
import { InjectionToken, inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Directive, HostListener, Pipe, forwardRef, ContentChildren, ContentChild, NgModule } from '@angular/core';
|
|
5
5
|
import * as i2 from '@odx/angular';
|
|
6
|
-
import { DisabledController, detectControllerChanges, CoreModule,
|
|
6
|
+
import { DisabledController, detectControllerChanges, CoreModule, ODX_IDENTITY_MATCHER } from '@odx/angular';
|
|
7
7
|
import { DynamicViewDirective } from '@odx/angular/cdk/dynamic-view';
|
|
8
|
+
import { OptionControl } from '@odx/angular/cdk/option-control';
|
|
8
9
|
import { CheckboxComponent } from '@odx/angular/components/checkbox';
|
|
9
10
|
import { CSSComponent, CSSModifier } from '@odx/angular/internal';
|
|
10
|
-
import {
|
|
11
|
+
import { Transform, deferFn } from '@odx/angular/utils';
|
|
11
12
|
import * as i1 from '@angular/common';
|
|
12
|
-
import {
|
|
13
|
+
import { BaseSearchFieldDirective, BaseSearchFilterPipe, AutocompleteControl } from '@odx/angular/cdk/autocomplete-control';
|
|
13
14
|
import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
14
|
-
import { CustomFormControl } from '@odx/angular/cdk/custom-form-control';
|
|
15
15
|
import { DropdownDirective } from '@odx/angular/components/dropdown';
|
|
16
16
|
import { IconComponent } from '@odx/angular/components/icon';
|
|
17
17
|
import { LoadingSpinnerModule } from '@odx/angular/components/loading-spinner';
|
|
18
18
|
import { fromQueryList } from '@odx/angular/rxjs';
|
|
19
19
|
|
|
20
|
-
const SELECT_CONTROL = new InjectionToken('@odx/angular/components/select::
|
|
20
|
+
const SELECT_CONTROL = new InjectionToken('@odx/angular/components/select::SelectComponent');
|
|
21
21
|
|
|
22
|
-
let
|
|
22
|
+
let SelectOptionComponent = class SelectOptionComponent extends OptionControl {
|
|
23
23
|
get disabled() {
|
|
24
24
|
return !!this.disabledController?.disabled;
|
|
25
25
|
}
|
|
26
26
|
constructor() {
|
|
27
|
+
super();
|
|
27
28
|
this.disabledController = DisabledController.inject();
|
|
28
|
-
this.takeUntilDestroyed = untilDestroyed();
|
|
29
|
-
this.cdr = inject(ChangeDetectorRef);
|
|
30
29
|
this.selectControl = inject(SELECT_CONTROL);
|
|
31
|
-
this.isActive = false;
|
|
32
|
-
this.element = injectElement();
|
|
33
30
|
this.isSelected = false;
|
|
34
|
-
this.value = null;
|
|
35
31
|
this.notFoundMessage = false;
|
|
36
32
|
if (!this.selectControl.multiple) {
|
|
37
33
|
detectControllerChanges(this.selectControl)
|
|
@@ -44,9 +40,6 @@ let OptionComponent = class OptionComponent {
|
|
|
44
40
|
ngOnInit() {
|
|
45
41
|
this.isSelected = this.selectControl.isOptionSelected(this);
|
|
46
42
|
}
|
|
47
|
-
getLabel() {
|
|
48
|
-
return this.element.nativeElement.textContent ?? '';
|
|
49
|
-
}
|
|
50
43
|
setActiveStyles() {
|
|
51
44
|
if (this.disabled)
|
|
52
45
|
return;
|
|
@@ -58,70 +51,48 @@ let OptionComponent = class OptionComponent {
|
|
|
58
51
|
this.selectControl.selectOption(this);
|
|
59
52
|
}
|
|
60
53
|
}
|
|
61
|
-
setInactiveStyles() {
|
|
62
|
-
this.isActive = false;
|
|
63
|
-
}
|
|
64
54
|
switchCheckbox() {
|
|
65
55
|
if (this.selectControl.multiple) {
|
|
66
56
|
this.isSelected = !this.isSelected;
|
|
67
57
|
this.cdr.markForCheck();
|
|
68
58
|
}
|
|
69
59
|
}
|
|
70
|
-
|
|
71
|
-
event.stopPropagation();
|
|
72
|
-
event.preventDefault();
|
|
60
|
+
selectOption() {
|
|
73
61
|
this.selectControl.selectOption(this);
|
|
74
62
|
}
|
|
75
63
|
};
|
|
76
|
-
|
|
77
|
-
|
|
64
|
+
SelectOptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
65
|
+
SelectOptionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SelectOptionComponent, isStandalone: true, selector: "odx-select-option, odx-option", inputs: { notFoundMessage: "notFoundMessage" }, host: { properties: { "attr.aria-disabled": "disabled || null", "class.is-disabled": "disabled" } }, providers: [DisabledController.connect()], usesInheritance: true, ngImport: i0, template: "<odx-checkbox [checked]=\"isSelected\" *ngIf=\"selectControl.multiple && !notFoundMessage; else single\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</odx-checkbox>\n\n<ng-template #single>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</ng-template>\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: CheckboxComponent, selector: "odx-checkbox", inputs: ["indeterminate"], outputs: ["indeterminateChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
78
66
|
__decorate([
|
|
79
67
|
Transform(coerceBooleanProperty),
|
|
80
68
|
__metadata("design:type", Object)
|
|
81
|
-
],
|
|
82
|
-
|
|
83
|
-
CSSComponent('option'),
|
|
69
|
+
], SelectOptionComponent.prototype, "notFoundMessage", void 0);
|
|
70
|
+
SelectOptionComponent = __decorate([
|
|
71
|
+
CSSComponent('select-option'),
|
|
84
72
|
__metadata("design:paramtypes", [])
|
|
85
|
-
],
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type:
|
|
73
|
+
], SelectOptionComponent);
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectOptionComponent, decorators: [{
|
|
87
75
|
type: Component,
|
|
88
|
-
args: [{ standalone: true, selector: 'odx-option', imports: [CoreModule, DynamicViewDirective, CheckboxComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [DisabledController.connect()], host: {
|
|
89
|
-
'[attr.aria-selected]': 'isSelected',
|
|
76
|
+
args: [{ standalone: true, selector: 'odx-select-option, odx-option', imports: [CoreModule, DynamicViewDirective, CheckboxComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [DisabledController.connect()], host: {
|
|
90
77
|
'[attr.aria-disabled]': 'disabled || null',
|
|
91
78
|
'[class.is-disabled]': 'disabled',
|
|
92
|
-
'[class.is-selected]': 'isSelected',
|
|
93
|
-
'[class.is-active]': 'isActive',
|
|
94
|
-
role: 'option',
|
|
95
79
|
}, template: "<odx-checkbox [checked]=\"isSelected\" *ngIf=\"selectControl.multiple && !notFoundMessage; else single\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</odx-checkbox>\n\n<ng-template #single>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</ng-template>\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n" }]
|
|
96
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
80
|
+
}], ctorParameters: function () { return []; }, propDecorators: { notFoundMessage: [{
|
|
97
81
|
type: Input
|
|
98
|
-
}], notFoundMessage: [{
|
|
99
|
-
type: Input
|
|
100
|
-
}], select: [{
|
|
101
|
-
type: HostListener,
|
|
102
|
-
args: ['click', ['$event']]
|
|
103
82
|
}] } });
|
|
104
83
|
|
|
105
|
-
let SelectSearchFieldDirective = class SelectSearchFieldDirective {
|
|
84
|
+
let SelectSearchFieldDirective = class SelectSearchFieldDirective extends BaseSearchFieldDirective {
|
|
106
85
|
constructor() {
|
|
107
|
-
|
|
108
|
-
this.element = injectElement();
|
|
86
|
+
super(...arguments);
|
|
109
87
|
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
110
88
|
this.notFoundContent = null;
|
|
111
|
-
this.valueChange$ = fromEvent(this.element.nativeElement, 'input').pipe(map(() => this.getValue()), distinctUntilChanged(), this.takeUntilDestroyed());
|
|
112
|
-
}
|
|
113
|
-
reset() {
|
|
114
|
-
this.element.nativeElement.value = '';
|
|
115
|
-
}
|
|
116
|
-
focus() {
|
|
117
|
-
this.element.nativeElement.focus();
|
|
118
89
|
}
|
|
119
|
-
|
|
120
|
-
|
|
90
|
+
handleDelete() {
|
|
91
|
+
this.reset();
|
|
121
92
|
}
|
|
122
93
|
};
|
|
123
|
-
SelectSearchFieldDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectSearchFieldDirective, deps:
|
|
124
|
-
SelectSearchFieldDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: SelectSearchFieldDirective, isStandalone: true, selector: "input[odxSelectSearchField]", inputs: { notFoundContent: ["odxSelectSearchField", "notFoundContent"] }, host: { listeners: { "keydown.delete": "
|
|
94
|
+
SelectSearchFieldDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectSearchFieldDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
95
|
+
SelectSearchFieldDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: SelectSearchFieldDirective, isStandalone: true, selector: "input[odxSelectSearchField]", inputs: { notFoundContent: ["odxSelectSearchField", "notFoundContent"] }, host: { listeners: { "keydown.delete": "handleDelete()" } }, usesInheritance: true, ngImport: i0 });
|
|
125
96
|
SelectSearchFieldDirective = __decorate([
|
|
126
97
|
CSSComponent('select__search')
|
|
127
98
|
], SelectSearchFieldDirective);
|
|
@@ -130,54 +101,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
130
101
|
args: [{
|
|
131
102
|
standalone: true,
|
|
132
103
|
selector: 'input[odxSelectSearchField]',
|
|
133
|
-
host: {
|
|
134
|
-
'[class.odx-form-field-control]': 'true',
|
|
135
|
-
},
|
|
136
104
|
}]
|
|
137
105
|
}], propDecorators: { notFoundContent: [{
|
|
138
106
|
type: Input,
|
|
139
107
|
args: ['odxSelectSearchField']
|
|
140
|
-
}],
|
|
108
|
+
}], handleDelete: [{
|
|
141
109
|
type: HostListener,
|
|
142
110
|
args: ['keydown.delete']
|
|
143
111
|
}] } });
|
|
144
112
|
|
|
145
|
-
class SelectSearchFilterPipe {
|
|
113
|
+
class SelectSearchFilterPipe extends BaseSearchFilterPipe {
|
|
146
114
|
constructor() {
|
|
147
|
-
|
|
148
|
-
this.
|
|
149
|
-
this.stringSearchHandler = inject(ODX_STRING_SEARCH_HANDLER);
|
|
115
|
+
super(...arguments);
|
|
116
|
+
this.hostController = inject(SELECT_CONTROL, { optional: true });
|
|
150
117
|
}
|
|
151
118
|
get searchField() {
|
|
152
|
-
return this.
|
|
119
|
+
return this.hostController?.searchField;
|
|
153
120
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
return this.filter(items, this.searchField.getValue(), searchHandler);
|
|
157
|
-
}
|
|
158
|
-
return items;
|
|
121
|
+
queryHandler(query) {
|
|
122
|
+
return query?.trim();
|
|
159
123
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
return null;
|
|
163
|
-
}
|
|
164
|
-
query = query.trim();
|
|
165
|
-
if (query === '') {
|
|
166
|
-
return items;
|
|
167
|
-
}
|
|
168
|
-
const search = searchHandler ?? this.stringSearchHandler;
|
|
169
|
-
const stringify = this.searchController?.stringify ?? this.stringify;
|
|
170
|
-
return items.filter((item) => search(stringify(item), query));
|
|
124
|
+
get searchBy() {
|
|
125
|
+
return this.hostController?.stringify ?? this.stringify;
|
|
171
126
|
}
|
|
172
127
|
}
|
|
173
|
-
SelectSearchFilterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectSearchFilterPipe, deps:
|
|
128
|
+
SelectSearchFilterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectSearchFilterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe });
|
|
174
129
|
SelectSearchFilterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SelectSearchFilterPipe, isStandalone: true, name: "odxSelectSearchFilter", pure: false });
|
|
175
|
-
__decorate([
|
|
176
|
-
Pure,
|
|
177
|
-
__metadata("design:type", Function),
|
|
178
|
-
__metadata("design:paramtypes", [Object, String, Function]),
|
|
179
|
-
__metadata("design:returntype", Object)
|
|
180
|
-
], SelectSearchFilterPipe.prototype, "filter", null);
|
|
181
130
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectSearchFilterPipe, decorators: [{
|
|
182
131
|
type: Pipe,
|
|
183
132
|
args: [{
|
|
@@ -185,46 +134,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
185
134
|
name: 'odxSelectSearchFilter',
|
|
186
135
|
standalone: true,
|
|
187
136
|
}]
|
|
188
|
-
}]
|
|
137
|
+
}] });
|
|
189
138
|
|
|
190
139
|
var SelectComponent_1;
|
|
191
|
-
let SelectComponent = SelectComponent_1 = class SelectComponent extends
|
|
192
|
-
get hasOptions() {
|
|
193
|
-
return !!this.options && this.options.length > 0;
|
|
194
|
-
}
|
|
195
|
-
get isOpen() {
|
|
196
|
-
return !!this.dropdown?.isOpen;
|
|
197
|
-
}
|
|
198
|
-
get selectedOptionContent() {
|
|
199
|
-
return this.selectedOption ? this.selectedOptionTemplate ?? this.selectedOptionText : null;
|
|
200
|
-
}
|
|
140
|
+
let SelectComponent = SelectComponent_1 = class SelectComponent extends AutocompleteControl {
|
|
201
141
|
constructor() {
|
|
202
|
-
super(
|
|
203
|
-
this.changeDetector = inject(ChangeDetectorRef);
|
|
142
|
+
super(...arguments);
|
|
204
143
|
this.searchFieldEnabled = false;
|
|
205
|
-
this.smoothScrollEnabled = false;
|
|
206
144
|
this.selectedOption = null;
|
|
207
145
|
this.selectedOptionText = null;
|
|
208
|
-
this.element = injectElement();
|
|
209
146
|
this.placeholder = '';
|
|
210
|
-
this.isLoading = false;
|
|
211
147
|
this.multiple = false;
|
|
212
148
|
this.selectedOptionTemplate = null;
|
|
213
149
|
this.identityMatcher = inject(ODX_IDENTITY_MATCHER);
|
|
214
|
-
|
|
215
|
-
|
|
150
|
+
}
|
|
151
|
+
get selectedOptionContent() {
|
|
152
|
+
return this.selectedOption ? this.selectedOptionTemplate ?? this.selectedOptionText : null;
|
|
216
153
|
}
|
|
217
154
|
ngAfterViewInit() {
|
|
218
155
|
if (!this.options)
|
|
219
156
|
return;
|
|
220
|
-
this.
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
if (this.isOpen) {
|
|
224
|
-
deferFn(() => this.activateSelectedOption());
|
|
225
|
-
}
|
|
226
|
-
});
|
|
227
|
-
this.searchField?.valueChange$.subscribe(() => this.triggerControllerChange());
|
|
157
|
+
this.initKeyManager(this.options);
|
|
158
|
+
this.handleQueryListOption(this.options);
|
|
159
|
+
this.handleSearchFieldChanges();
|
|
228
160
|
}
|
|
229
161
|
registerOnChange(fn) {
|
|
230
162
|
super.registerOnChange((value) => {
|
|
@@ -234,7 +166,7 @@ let SelectComponent = SelectComponent_1 = class SelectComponent extends CustomFo
|
|
|
234
166
|
}
|
|
235
167
|
selectOption(option) {
|
|
236
168
|
if (option && !option.disabled) {
|
|
237
|
-
this.
|
|
169
|
+
this.optionSelected.emit();
|
|
238
170
|
option.switchCheckbox();
|
|
239
171
|
const value = this.multiple
|
|
240
172
|
? this.options
|
|
@@ -244,7 +176,7 @@ let SelectComponent = SelectComponent_1 = class SelectComponent extends CustomFo
|
|
|
244
176
|
: option.value;
|
|
245
177
|
this.updateValue(value ?? null);
|
|
246
178
|
}
|
|
247
|
-
!this.multiple && this.
|
|
179
|
+
!this.multiple && this.closeDropdown();
|
|
248
180
|
}
|
|
249
181
|
isOptionSelected(option) {
|
|
250
182
|
if (option && !option.disabled) {
|
|
@@ -255,13 +187,23 @@ let SelectComponent = SelectComponent_1 = class SelectComponent extends CustomFo
|
|
|
255
187
|
}
|
|
256
188
|
return false;
|
|
257
189
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
190
|
+
initKeyManager(options) {
|
|
191
|
+
this.keyManager = new ActiveDescendantKeyManager(options).withHomeAndEnd().skipPredicate((item) => item.disabled);
|
|
192
|
+
}
|
|
193
|
+
handleQueryListOption(options) {
|
|
194
|
+
fromQueryList(options)
|
|
195
|
+
.pipe(this.takeUntilDestroyed())
|
|
196
|
+
.subscribe(() => {
|
|
197
|
+
this.updateSelectedOption();
|
|
198
|
+
if (this.isOpen) {
|
|
199
|
+
deferFn(() => this.activateSelectedOption());
|
|
200
|
+
}
|
|
201
|
+
});
|
|
263
202
|
}
|
|
264
|
-
|
|
203
|
+
handleSearchFieldChanges() {
|
|
204
|
+
this.searchField?.valueChange$.pipe(this.takeUntilDestroyed()).subscribe(() => this.triggerControllerChange());
|
|
205
|
+
}
|
|
206
|
+
handleControllerEvent(event) {
|
|
265
207
|
if (this.isLoading || this.readonlyController?.readonly)
|
|
266
208
|
return;
|
|
267
209
|
if (this.isOpen && this.hasOptions) {
|
|
@@ -274,12 +216,6 @@ let SelectComponent = SelectComponent_1 = class SelectComponent extends CustomFo
|
|
|
274
216
|
}
|
|
275
217
|
this.keyManager?.onKeydown(event);
|
|
276
218
|
}
|
|
277
|
-
handleFocusOut(event) {
|
|
278
|
-
if (this.isOpen) {
|
|
279
|
-
event.stopImmediatePropagation();
|
|
280
|
-
}
|
|
281
|
-
this.onTouched();
|
|
282
|
-
}
|
|
283
219
|
activateSelectedOption() {
|
|
284
220
|
let activeIndex = this.options?.toArray().findIndex((option) => option.isSelected && !option.disabled);
|
|
285
221
|
if (!activeIndex || activeIndex === -1) {
|
|
@@ -304,12 +240,6 @@ let SelectComponent = SelectComponent_1 = class SelectComponent extends CustomFo
|
|
|
304
240
|
onDropdownClosed() {
|
|
305
241
|
this.searchField?.reset();
|
|
306
242
|
}
|
|
307
|
-
disableSmoothScroll() {
|
|
308
|
-
this.smoothScrollEnabled = false;
|
|
309
|
-
}
|
|
310
|
-
enableSmoothScroll() {
|
|
311
|
-
this.smoothScrollEnabled = true;
|
|
312
|
-
}
|
|
313
243
|
updateSelectedOption() {
|
|
314
244
|
const options = this.options?.toArray();
|
|
315
245
|
this.selectedOption = options?.find((option) => option.isSelected) ?? null;
|
|
@@ -331,83 +261,60 @@ let SelectComponent = SelectComponent_1 = class SelectComponent extends CustomFo
|
|
|
331
261
|
this.changeDetector.detectChanges();
|
|
332
262
|
}
|
|
333
263
|
};
|
|
334
|
-
SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectComponent, deps:
|
|
335
|
-
SelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SelectComponent, isStandalone: true, selector: "odx-select", inputs: { placeholder: "placeholder",
|
|
336
|
-
DisabledController.connect(),
|
|
337
|
-
ReadonlyController.connect(),
|
|
264
|
+
SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
265
|
+
SelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SelectComponent, isStandalone: true, selector: "odx-select", inputs: { placeholder: "placeholder", multiple: "multiple", selectedOptionTemplate: "selectedOptionTemplate", identityMatcher: "identityMatcher" }, host: { listeners: { "click": "handleControllerEvent($event)", "keydown": "handleControllerEvent($event)" }, properties: { "tabindex": "searchFieldEnabled || isDisabled ? -1 : 0", "attr.aria-multiselectable": "multiple" } }, providers: [
|
|
338
266
|
{
|
|
339
267
|
provide: SELECT_CONTROL,
|
|
340
268
|
useExisting: forwardRef(() => SelectComponent_1),
|
|
341
269
|
},
|
|
342
|
-
], queries: [{ propertyName: "searchField", first: true, predicate: SelectSearchFieldDirective, descendants: true }, { propertyName: "options", predicate:
|
|
343
|
-
__decorate([
|
|
344
|
-
Transform(coerceBooleanProperty),
|
|
345
|
-
__metadata("design:type", Object)
|
|
346
|
-
], SelectComponent.prototype, "isLoading", void 0);
|
|
270
|
+
], queries: [{ propertyName: "searchField", first: true, predicate: SelectSearchFieldDirective, descendants: true }, { propertyName: "options", predicate: SelectOptionComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div\n aria-haspopup=\"listbox\"\n class=\"odx-select__trigger\"\n [odxDropdown]=\"dropdownContent\"\n [odxDropdownDisabled]=\"isDisabled || isReadonly\"\n [odxDropdownOptions]=\"{ matchReferenceWidth: true, offset: 4, outerPadding: 10, position: 'bottom-start' }\"\n [odxDropdownReferenceElement]=\"element.nativeElement\"\n [odxDropdownShowLoader]=\"isLoading\"\n (odxDropdownBeforeOpen)=\"onDropdownOpen()\"\n (odxDropdownBeforeClose)=\"onDropdownClose()\"\n (odxDropdownAfterClose)=\"onDropdownClosed()\"\n (odxDropdownAfterOpen)=\"enableSmoothScroll()\"\n>\n <ng-template [ngIf]=\"!searchFieldEnabled\" [ngIfElse]=\"searchFieldTemplate\">\n <div class=\"odx-select__value\" *ngIf=\"selectedOptionContent; else placeholderTemplate\">\n <ng-template [odxDynamicView]=\"selectedOptionContent\" [odxDynamicViewContext]=\"{ $implicit: value }\"></ng-template>\n </div>\n </ng-template>\n <ng-template #placeholderTemplate>\n <div class=\"odx-select__placeholder\">\n {{ placeholder }}\n </div>\n </ng-template>\n <ng-template #searchFieldTemplate>\n <ng-content select=\"[odxSelectSearchField]\"></ng-content>\n </ng-template>\n <odx-icon class=\"odx-select__indicator\" name=\"chevron-down\" iconSet=\"core\"></odx-icon>\n</div>\n<ng-template #dropdownContent>\n <div class=\"odx-dropdown__option-list\" role=\"listbox\">\n <ng-template [ngIf]=\"hasOptions\" [ngIfElse]=\"noOptionsTemplate\">\n <ng-content></ng-content>\n </ng-template>\n <ng-template #noOptionsTemplate>\n <odx-select-option disabled notFoundMessage>\n <ng-template [odxDynamicView]=\"searchField?.notFoundContent\"></ng-template>\n </odx-select-option>\n </ng-template>\n </div>\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DisabledController, selector: "[disabled]", inputs: ["disabled"] }, { kind: "directive", type: DropdownDirective, selector: "[odxDropdown]", inputs: ["odxDropdown", "odxDropdownDisabled", "odxDropdownShowLoader", "odxDropdownClickOutsideActive", "odxDropdownOptions", "odxDropdownReferenceElement", "odxDropdownTriggerElement", "odxDropdownHost", "odxDropdownOpenTrigger", "odxDropdownCloseTrigger"], outputs: ["odxDropdownBeforeOpen", "odxDropdownAfterOpen", "odxDropdownBeforeClose", "odxDropdownAfterClose"], exportAs: ["odxDropdown"] }, { kind: "component", type: IconComponent, selector: "odx-icon", inputs: ["inline", "size", "name", "iconSet"] }, { kind: "directive", type: DynamicViewDirective, selector: "ng-template[odxDynamicView]", inputs: ["odxDynamicView", "odxDynamicViewInjector", "odxDynamicViewContext"] }, { kind: "component", type: SelectOptionComponent, selector: "odx-select-option, odx-option", inputs: ["notFoundMessage"] }, { kind: "ngmodule", type: LoadingSpinnerModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
347
271
|
__decorate([
|
|
348
272
|
CSSModifier(),
|
|
349
273
|
Transform(coerceBooleanProperty),
|
|
350
274
|
__metadata("design:type", Object)
|
|
351
275
|
], SelectComponent.prototype, "multiple", void 0);
|
|
352
276
|
SelectComponent = SelectComponent_1 = __decorate([
|
|
353
|
-
CSSComponent('select')
|
|
354
|
-
__metadata("design:paramtypes", [])
|
|
277
|
+
CSSComponent('select')
|
|
355
278
|
], SelectComponent);
|
|
356
279
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectComponent, decorators: [{
|
|
357
280
|
type: Component,
|
|
358
|
-
args: [{ standalone: true, selector: 'odx-select', imports: [CoreModule, DropdownDirective, IconComponent, DynamicViewDirective,
|
|
359
|
-
DisabledController.connect(),
|
|
360
|
-
ReadonlyController.connect(),
|
|
281
|
+
args: [{ standalone: true, selector: 'odx-select', imports: [CoreModule, DropdownDirective, IconComponent, DynamicViewDirective, SelectOptionComponent, LoadingSpinnerModule], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
361
282
|
{
|
|
362
283
|
provide: SELECT_CONTROL,
|
|
363
284
|
useExisting: forwardRef(() => SelectComponent),
|
|
364
285
|
},
|
|
365
286
|
], host: {
|
|
366
|
-
'[attr.aria-disabled]': 'isDisabled || null',
|
|
367
|
-
'[class.is-open]': 'isOpen',
|
|
368
287
|
'[tabindex]': 'searchFieldEnabled || isDisabled ? -1 : 0',
|
|
369
288
|
'[attr.aria-multiselectable]': 'multiple',
|
|
370
|
-
}, template: "<div\n aria-haspopup=\"listbox\"\n class=\"odx-select__trigger\"\n [odxDropdown]=\"dropdownContent\"\n [odxDropdownDisabled]=\"isDisabled || isReadonly\"\n [odxDropdownOptions]=\"{ matchReferenceWidth: true, offset: 4, outerPadding: 10, position: 'bottom-start' }\"\n [odxDropdownReferenceElement]=\"element.nativeElement\"\n [odxDropdownShowLoader]=\"isLoading\"\n (odxDropdownBeforeOpen)=\"onDropdownOpen()\"\n (odxDropdownBeforeClose)=\"onDropdownClose()\"\n (odxDropdownAfterClose)=\"onDropdownClosed()\"\n (odxDropdownAfterOpen)=\"enableSmoothScroll()\"\n>\n <ng-template [ngIf]=\"!searchFieldEnabled\" [ngIfElse]=\"searchFieldTemplate\">\n <div class=\"odx-select__value\" *ngIf=\"selectedOptionContent; else placeholderTemplate\">\n <ng-template [odxDynamicView]=\"selectedOptionContent\" [odxDynamicViewContext]=\"{ $implicit: value }\"></ng-template>\n </div>\n </ng-template>\n <ng-template #placeholderTemplate>\n <div class=\"odx-select__placeholder\">\n {{ placeholder }}\n </div>\n </ng-template>\n <ng-template #searchFieldTemplate>\n <ng-content select=\"[odxSelectSearchField]\"></ng-content>\n </ng-template>\n <odx-icon class=\"odx-select__indicator\" name=\"chevron-down\" iconSet=\"core\"></odx-icon>\n</div>\n<ng-template #dropdownContent>\n <div class=\"odx-
|
|
371
|
-
}],
|
|
289
|
+
}, template: "<div\n aria-haspopup=\"listbox\"\n class=\"odx-select__trigger\"\n [odxDropdown]=\"dropdownContent\"\n [odxDropdownDisabled]=\"isDisabled || isReadonly\"\n [odxDropdownOptions]=\"{ matchReferenceWidth: true, offset: 4, outerPadding: 10, position: 'bottom-start' }\"\n [odxDropdownReferenceElement]=\"element.nativeElement\"\n [odxDropdownShowLoader]=\"isLoading\"\n (odxDropdownBeforeOpen)=\"onDropdownOpen()\"\n (odxDropdownBeforeClose)=\"onDropdownClose()\"\n (odxDropdownAfterClose)=\"onDropdownClosed()\"\n (odxDropdownAfterOpen)=\"enableSmoothScroll()\"\n>\n <ng-template [ngIf]=\"!searchFieldEnabled\" [ngIfElse]=\"searchFieldTemplate\">\n <div class=\"odx-select__value\" *ngIf=\"selectedOptionContent; else placeholderTemplate\">\n <ng-template [odxDynamicView]=\"selectedOptionContent\" [odxDynamicViewContext]=\"{ $implicit: value }\"></ng-template>\n </div>\n </ng-template>\n <ng-template #placeholderTemplate>\n <div class=\"odx-select__placeholder\">\n {{ placeholder }}\n </div>\n </ng-template>\n <ng-template #searchFieldTemplate>\n <ng-content select=\"[odxSelectSearchField]\"></ng-content>\n </ng-template>\n <odx-icon class=\"odx-select__indicator\" name=\"chevron-down\" iconSet=\"core\"></odx-icon>\n</div>\n<ng-template #dropdownContent>\n <div class=\"odx-dropdown__option-list\" role=\"listbox\">\n <ng-template [ngIf]=\"hasOptions\" [ngIfElse]=\"noOptionsTemplate\">\n <ng-content></ng-content>\n </ng-template>\n <ng-template #noOptionsTemplate>\n <odx-select-option disabled notFoundMessage>\n <ng-template [odxDynamicView]=\"searchField?.notFoundContent\"></ng-template>\n </odx-select-option>\n </ng-template>\n </div>\n</ng-template>\n" }]
|
|
290
|
+
}], propDecorators: { options: [{
|
|
372
291
|
type: ContentChildren,
|
|
373
|
-
args: [
|
|
374
|
-
}],
|
|
375
|
-
type:
|
|
376
|
-
args: [
|
|
292
|
+
args: [SelectOptionComponent, { descendants: true, emitDistinctChangesOnly: true }]
|
|
293
|
+
}], searchField: [{
|
|
294
|
+
type: ContentChild,
|
|
295
|
+
args: [SelectSearchFieldDirective]
|
|
377
296
|
}], placeholder: [{
|
|
378
297
|
type: Input
|
|
379
|
-
}], isLoading: [{
|
|
380
|
-
type: Input
|
|
381
298
|
}], multiple: [{
|
|
382
299
|
type: Input
|
|
383
300
|
}], selectedOptionTemplate: [{
|
|
384
301
|
type: Input
|
|
385
|
-
}], stringify: [{
|
|
386
|
-
type: Input
|
|
387
302
|
}], identityMatcher: [{
|
|
388
303
|
type: Input
|
|
389
|
-
}],
|
|
390
|
-
type: Output
|
|
391
|
-
}], searchField: [{
|
|
392
|
-
type: ContentChild,
|
|
393
|
-
args: [SelectSearchFieldDirective]
|
|
394
|
-
}], openDropdown: [{
|
|
304
|
+
}], handleControllerEvent: [{
|
|
395
305
|
type: HostListener,
|
|
396
306
|
args: ['click', ['$event']]
|
|
397
307
|
}, {
|
|
398
308
|
type: HostListener,
|
|
399
309
|
args: ['keydown', ['$event']]
|
|
400
|
-
}], handleFocusOut: [{
|
|
401
|
-
type: HostListener,
|
|
402
|
-
args: ['focusout', ['$event']]
|
|
403
310
|
}] } });
|
|
404
311
|
|
|
405
|
-
const modules = [SelectComponent, SelectSearchFieldDirective, SelectSearchFilterPipe,
|
|
312
|
+
const modules = [SelectComponent, SelectSearchFieldDirective, SelectSearchFilterPipe, SelectOptionComponent];
|
|
406
313
|
class SelectModule {
|
|
407
314
|
}
|
|
408
315
|
SelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
409
|
-
SelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SelectModule, imports: [SelectComponent, SelectSearchFieldDirective, SelectSearchFilterPipe,
|
|
410
|
-
SelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectModule, imports: [SelectComponent,
|
|
316
|
+
SelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SelectModule, imports: [SelectComponent, SelectSearchFieldDirective, SelectSearchFilterPipe, SelectOptionComponent], exports: [CoreModule, SelectComponent, SelectSearchFieldDirective, SelectSearchFilterPipe, SelectOptionComponent] });
|
|
317
|
+
SelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectModule, imports: [SelectComponent, SelectOptionComponent, CoreModule] });
|
|
411
318
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectModule, decorators: [{
|
|
412
319
|
type: NgModule,
|
|
413
320
|
args: [{
|
|
@@ -420,5 +327,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
420
327
|
* Generated bundle index. Do not edit.
|
|
421
328
|
*/
|
|
422
329
|
|
|
423
|
-
export {
|
|
330
|
+
export { SELECT_CONTROL, SelectComponent, SelectModule, SelectOptionComponent, SelectSearchFieldDirective, SelectSearchFilterPipe };
|
|
424
331
|
//# sourceMappingURL=odx-angular-components-select.mjs.map
|