@lucca-front/ng 9.0.1 → 9.0.4-select.1

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.
Files changed (102) hide show
  1. package/api/lib/select/feeder/api-feeder.module.d.ts +1 -2
  2. package/api/lib/select/pager/api-pager.module.d.ts +1 -2
  3. package/api/lib/select/searcher/api-searcher.module.d.ts +4 -5
  4. package/department/lib/select/feeder/department-feeder.module.d.ts +1 -2
  5. package/esm2020/api/lib/select/feeder/api-feeder.module.mjs +3 -5
  6. package/esm2020/api/lib/select/pager/api-pager.module.mjs +3 -5
  7. package/esm2020/api/lib/select/searcher/api-searcher.module.mjs +6 -7
  8. package/esm2020/date/lib/calendar/calendar-input.component.mjs +4 -1
  9. package/esm2020/date/lib/calendar/calendar-input.module.mjs +4 -6
  10. package/esm2020/department/lib/select/feeder/department-feeder.module.mjs +3 -5
  11. package/esm2020/establishment/lib/select/legal-unit-selector/legal-unit-selector.module.mjs +3 -5
  12. package/esm2020/establishment/lib/select/searcher/establishment-searcher.module.mjs +6 -7
  13. package/esm2020/safe-content/lib/index.mjs +2 -3
  14. package/esm2020/safe-content/lib/safe-content.module.mjs +6 -6
  15. package/esm2020/safe-content/lib/safe-html.pipe.mjs +19 -0
  16. package/esm2020/select2/lib/index.mjs +5 -0
  17. package/esm2020/select2/lib/input/index.mjs +3 -0
  18. package/esm2020/select2/lib/input/select-input.component.mjs +343 -0
  19. package/esm2020/select2/lib/input/select-input.module.mjs +20 -0
  20. package/esm2020/select2/lib/option/displayer.directive.mjs +23 -0
  21. package/esm2020/select2/lib/option/index.mjs +5 -0
  22. package/esm2020/select2/lib/option/option.component.mjs +57 -0
  23. package/esm2020/select2/lib/option/option.directive.mjs +23 -0
  24. package/esm2020/select2/lib/option/option.module.mjs +20 -0
  25. package/esm2020/select2/lib/panel/index.mjs +3 -0
  26. package/esm2020/select2/lib/panel/panel.component.mjs +118 -0
  27. package/esm2020/select2/lib/panel/panel.module.mjs +21 -0
  28. package/esm2020/select2/lib/select.model.mjs +6 -0
  29. package/esm2020/select2/lib/select.module.mjs +18 -0
  30. package/esm2020/select2/lucca-front-ng-select2.mjs +5 -0
  31. package/esm2020/select2/public-api.mjs +5 -0
  32. package/esm2020/tooltip/lib/panel/tooltip-panel.component.mjs +3 -4
  33. package/esm2020/tooltip/lib/panel/tooltip-panel.module.mjs +5 -6
  34. package/esm2020/tooltip/lib/trigger/tooltip-trigger.directive.mjs +1 -1
  35. package/esm2020/user/lib/select/homonyms/user-homonyms.module.mjs +5 -6
  36. package/esm2020/user/lib/select/searcher/user-searcher.module.mjs +6 -7
  37. package/establishment/lib/select/legal-unit-selector/legal-unit-selector.module.d.ts +1 -2
  38. package/establishment/lib/select/searcher/establishment-searcher.module.d.ts +4 -5
  39. package/fesm2015/lucca-front-ng-api.mjs +7 -10
  40. package/fesm2015/lucca-front-ng-api.mjs.map +1 -1
  41. package/fesm2015/lucca-front-ng-date.mjs +3 -2
  42. package/fesm2015/lucca-front-ng-date.mjs.map +1 -1
  43. package/fesm2015/lucca-front-ng-department.mjs +3 -5
  44. package/fesm2015/lucca-front-ng-department.mjs.map +1 -1
  45. package/fesm2015/lucca-front-ng-establishment.mjs +5 -7
  46. package/fesm2015/lucca-front-ng-establishment.mjs.map +1 -1
  47. package/fesm2015/lucca-front-ng-safe-content.mjs +13 -23
  48. package/fesm2015/lucca-front-ng-safe-content.mjs.map +1 -1
  49. package/fesm2015/lucca-front-ng-select2.mjs +628 -0
  50. package/fesm2015/lucca-front-ng-select2.mjs.map +1 -0
  51. package/fesm2015/lucca-front-ng-tooltip.mjs +5 -7
  52. package/fesm2015/lucca-front-ng-tooltip.mjs.map +1 -1
  53. package/fesm2015/lucca-front-ng-user.mjs +6 -7
  54. package/fesm2015/lucca-front-ng-user.mjs.map +1 -1
  55. package/fesm2020/lucca-front-ng-api.mjs +7 -10
  56. package/fesm2020/lucca-front-ng-api.mjs.map +1 -1
  57. package/fesm2020/lucca-front-ng-date.mjs +3 -2
  58. package/fesm2020/lucca-front-ng-date.mjs.map +1 -1
  59. package/fesm2020/lucca-front-ng-department.mjs +3 -5
  60. package/fesm2020/lucca-front-ng-department.mjs.map +1 -1
  61. package/fesm2020/lucca-front-ng-establishment.mjs +5 -7
  62. package/fesm2020/lucca-front-ng-establishment.mjs.map +1 -1
  63. package/fesm2020/lucca-front-ng-safe-content.mjs +13 -23
  64. package/fesm2020/lucca-front-ng-safe-content.mjs.map +1 -1
  65. package/fesm2020/lucca-front-ng-select2.mjs +617 -0
  66. package/fesm2020/lucca-front-ng-select2.mjs.map +1 -0
  67. package/fesm2020/lucca-front-ng-tooltip.mjs +5 -7
  68. package/fesm2020/lucca-front-ng-tooltip.mjs.map +1 -1
  69. package/fesm2020/lucca-front-ng-user.mjs +6 -7
  70. package/fesm2020/lucca-front-ng-user.mjs.map +1 -1
  71. package/package.json +13 -3
  72. package/safe-content/lib/index.d.ts +1 -2
  73. package/safe-content/lib/safe-content.module.d.ts +2 -2
  74. package/safe-content/lib/safe-html.pipe.d.ts +16 -0
  75. package/select2/README.md +3 -0
  76. package/select2/index.d.ts +5 -0
  77. package/select2/lib/index.d.ts +4 -0
  78. package/select2/lib/input/index.d.ts +2 -0
  79. package/select2/lib/input/select-input.component.d.ts +75 -0
  80. package/select2/lib/input/select-input.module.d.ts +10 -0
  81. package/select2/lib/option/displayer.directive.d.ts +13 -0
  82. package/select2/lib/option/index.d.ts +4 -0
  83. package/select2/lib/option/option.component.d.ts +21 -0
  84. package/select2/lib/option/option.directive.d.ts +13 -0
  85. package/select2/lib/option/option.module.d.ts +10 -0
  86. package/select2/lib/panel/index.d.ts +2 -0
  87. package/select2/lib/panel/panel.component.d.ts +40 -0
  88. package/select2/lib/panel/panel.module.d.ts +11 -0
  89. package/select2/lib/select.model.d.ts +15 -0
  90. package/select2/lib/select.module.d.ts +9 -0
  91. package/select2/public-api.d.ts +1 -0
  92. package/style/components/_input.scss +7 -7
  93. package/style/definitions/select/_select-input.scss +107 -105
  94. package/tooltip/lib/panel/tooltip-panel.component.d.ts +3 -2
  95. package/tooltip/lib/panel/tooltip-panel.module.d.ts +1 -2
  96. package/tooltip/lib/trigger/tooltip-trigger.directive.d.ts +3 -2
  97. package/user/lib/select/homonyms/user-homonyms.module.d.ts +2 -3
  98. package/user/lib/select/searcher/user-searcher.module.d.ts +4 -5
  99. package/esm2020/safe-content/lib/safe-content.model.mjs +0 -2
  100. package/esm2020/safe-content/lib/safe-content.pipe.mjs +0 -29
  101. package/safe-content/lib/safe-content.model.d.ts +0 -1
  102. package/safe-content/lib/safe-content.pipe.d.ts +0 -11
@@ -0,0 +1,628 @@
1
+ import * as i2$1 from '@angular/cdk/overlay';
2
+ import { OverlayContainer, Overlay, OverlayModule } from '@angular/cdk/overlay';
3
+ import { ComponentPortal } from '@angular/cdk/portal';
4
+ import * as i1 from '@angular/common';
5
+ import { CommonModule, DOCUMENT } from '@angular/common';
6
+ import * as i0 from '@angular/core';
7
+ import { Directive, Input, InjectionToken, Component, ChangeDetectionStrategy, Inject, HostBinding, NgModule, EventEmitter, ViewChild, ViewChildren, HostListener, Injectable, Injector, forwardRef, ElementRef, Output } from '@angular/core';
8
+ import * as i2 from '@angular/forms';
9
+ import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
10
+ import { BehaviorSubject, take, observeOn, asyncScheduler, map, takeUntil, ReplaySubject, Subject } from 'rxjs';
11
+ import * as i3 from '@angular/cdk/a11y';
12
+ import { ActiveDescendantKeyManager, A11yModule } from '@angular/cdk/a11y';
13
+ import * as i1$1 from '@angular/cdk/platform';
14
+
15
+ class LuDisplayerDirective {
16
+ constructor(templateRef) {
17
+ this.templateRef = templateRef;
18
+ }
19
+ set select(select) {
20
+ select.valueTpl = this.templateRef;
21
+ }
22
+ }
23
+ LuDisplayerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuDisplayerDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
24
+ LuDisplayerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.0", type: LuDisplayerDirective, selector: "[luDisplayer]", inputs: { select: ["luDisplayerSelect", "select"], value: ["luDisplayer", "value"] }, ngImport: i0 });
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuDisplayerDirective, decorators: [{
26
+ type: Directive,
27
+ args: [{ selector: '[luDisplayer]' }]
28
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { select: [{
29
+ type: Input,
30
+ args: ['luDisplayerSelect']
31
+ }], value: [{
32
+ type: Input,
33
+ args: ['luDisplayer']
34
+ }] } });
35
+
36
+ const SELECT_ID = new InjectionToken('LuSelectPanelData');
37
+ const SELECT_PANEL_DATA = new InjectionToken('LuSelectId');
38
+ const SELECT_LABEL = new InjectionToken('LuSelectLabel');
39
+ const SELECT_LABEL_ID = new InjectionToken('LuSelectLabelId');
40
+
41
+ class LuOptionComponent {
42
+ constructor(elementRef, selectId) {
43
+ this.elementRef = elementRef;
44
+ this.selectId = selectId;
45
+ this.hasOptionItemClass = true;
46
+ this.isSelected = false;
47
+ this.optionIndex = 0;
48
+ this.isHighlighted$ = new BehaviorSubject(false);
49
+ this.disabled = false;
50
+ this.role = 'option';
51
+ }
52
+ get id() {
53
+ return `lu-select-${this.selectId}-option-${this.optionIndex}`;
54
+ }
55
+ setActiveStyles() {
56
+ this.isHighlighted$.next(true);
57
+ this.elementRef.nativeElement.scrollIntoView({ block: 'center' });
58
+ }
59
+ setInactiveStyles() {
60
+ this.isHighlighted$.next(false);
61
+ }
62
+ }
63
+ LuOptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuOptionComponent, deps: [{ token: i0.ElementRef }, { token: SELECT_ID }], target: i0.ɵɵFactoryTarget.Component });
64
+ LuOptionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: LuOptionComponent, selector: "lu-select-option", inputs: { isSelected: "isSelected", option: "option", optionIndex: "optionIndex", disabled: "disabled" }, host: { properties: { "class.optionItem": "this.hasOptionItemClass", "attr.aria-selected": "this.isSelected", "attr.role": "this.role", "attr.id": "this.id" } }, ngImport: i0, template: "<div\r\n\tclass=\"optionItem-value\"\r\n\t[class.is-selected]=\"isSelected\"\r\n\t[class.is-highlighted]=\"isHighlighted$ | async\"\r\n\t[class.is-disabled]=\"disabled\"\r\n>\r\n\t<ng-content></ng-content>\r\n</div>\r\n", styles: [":host{display:block}.optionItem{position:relative}.optionItem-value{display:block;cursor:pointer;padding:.5rem;padding:var(--components-options-item-padding-vertical) var(--components-options-item-padding-horizontal);transition:background 50ms ease}.optionItem-value.is-selected{background:var(--palettes-primary-100);background:var(--commons-selected)}.optionItem-value:hover,.optionItem-value.is-highlighted,.optionItem-value.is-focus{background:var(--palettes-primary-50);background:var(--commons-highlight)}:host-context(.lu-select-value) .optionItem-value{padding:0;overflow:hidden;text-overflow:ellipsis}:host-context(.lu-select-value) .optionItem-value:hover,:host-context(.lu-select-value) .optionItem-value.is-focus,:host-context(.lu-select-value) .optionItem-value.is-highlighted{background:inherit}:host-context(.mod-multiple) .optionItem-value{position:relative;padding-left:2rem;padding-left:var(--components-options-item-multiple-padding)}:host-context(.mod-multiple) .optionItem-value:after,:host-context(.mod-multiple) .optionItem-value:before{display:block;position:absolute;left:.5rem;left:var(--components-options-checkbox-left);top:50%;transform:translateY(-50%)}:host-context(.mod-multiple) .optionItem-value:before{border-radius:var(--commons-border-radius);border-radius:var(--components-options-checkbox-border-radius);box-shadow:inset 0 0 0 2px var(--palettes-grey-color);box-shadow:inset 0 0 0 2px var(--components-options-checkbox-border-color);content:\"\";display:block;height:1rem;height:var(--components-options-checkbox-size);transition:all .1s ease;width:1rem;width:var(--components-options-checkbox-size)}:host-context(.mod-multiple) .optionItem-value:after{color:#fff;font-size:.8rem;content:\"\\e91a\";font-family:Lucca icons;display:inline-block;vertical-align:text-bottom;font-style:normal;line-height:1rem;line-height:var(--components-options-checkbox-size);padding-top:.05rem;position:absolute;text-align:center;transform:translateY(-50%) scale(0);transition:all .1s ease;width:1rem;width:var(--components-options-checkbox-size)}:host-context(.mod-multiple) .optionItem-value.is-selected:before{background-color:#f60;background-color:var(--components-options-checkbox-color);box-shadow:inset 0 0 0 2px #f60;box-shadow:inset 0 0 0 2px var(--components-options-checkbox-color)}:host-context(.mod-multiple) .optionItem-value.is-selected:after{transform:translateY(-50%) scale(1)}:host-context(.mod-multiple) .optionItem-value:hover:before{box-shadow:inset 0 0 0 2px #f60;box-shadow:inset 0 0 0 2px var(--components-options-checkbox-color)}:host-context(.mod-multiple).establishmentOption .optionItem-value{position:relative;padding-left:2.5rem;padding-left:calc(2 * var(--components-options-item-padding-horizontal) + var(--components-options-checkbox-size) + var(--spacings-smaller))}:host-context(.mod-multiple).establishmentOption .optionItem-value:before,:host-context(.mod-multiple).establishmentOption .optionItem-value:after{left:1rem;left:calc(2 * var(--components-options-item-padding-horizontal))}\n"], dependencies: [{ kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
65
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuOptionComponent, decorators: [{
66
+ type: Component,
67
+ args: [{ selector: 'lu-select-option', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\r\n\tclass=\"optionItem-value\"\r\n\t[class.is-selected]=\"isSelected\"\r\n\t[class.is-highlighted]=\"isHighlighted$ | async\"\r\n\t[class.is-disabled]=\"disabled\"\r\n>\r\n\t<ng-content></ng-content>\r\n</div>\r\n", styles: [":host{display:block}.optionItem{position:relative}.optionItem-value{display:block;cursor:pointer;padding:.5rem;padding:var(--components-options-item-padding-vertical) var(--components-options-item-padding-horizontal);transition:background 50ms ease}.optionItem-value.is-selected{background:var(--palettes-primary-100);background:var(--commons-selected)}.optionItem-value:hover,.optionItem-value.is-highlighted,.optionItem-value.is-focus{background:var(--palettes-primary-50);background:var(--commons-highlight)}:host-context(.lu-select-value) .optionItem-value{padding:0;overflow:hidden;text-overflow:ellipsis}:host-context(.lu-select-value) .optionItem-value:hover,:host-context(.lu-select-value) .optionItem-value.is-focus,:host-context(.lu-select-value) .optionItem-value.is-highlighted{background:inherit}:host-context(.mod-multiple) .optionItem-value{position:relative;padding-left:2rem;padding-left:var(--components-options-item-multiple-padding)}:host-context(.mod-multiple) .optionItem-value:after,:host-context(.mod-multiple) .optionItem-value:before{display:block;position:absolute;left:.5rem;left:var(--components-options-checkbox-left);top:50%;transform:translateY(-50%)}:host-context(.mod-multiple) .optionItem-value:before{border-radius:var(--commons-border-radius);border-radius:var(--components-options-checkbox-border-radius);box-shadow:inset 0 0 0 2px var(--palettes-grey-color);box-shadow:inset 0 0 0 2px var(--components-options-checkbox-border-color);content:\"\";display:block;height:1rem;height:var(--components-options-checkbox-size);transition:all .1s ease;width:1rem;width:var(--components-options-checkbox-size)}:host-context(.mod-multiple) .optionItem-value:after{color:#fff;font-size:.8rem;content:\"\\e91a\";font-family:Lucca icons;display:inline-block;vertical-align:text-bottom;font-style:normal;line-height:1rem;line-height:var(--components-options-checkbox-size);padding-top:.05rem;position:absolute;text-align:center;transform:translateY(-50%) scale(0);transition:all .1s ease;width:1rem;width:var(--components-options-checkbox-size)}:host-context(.mod-multiple) .optionItem-value.is-selected:before{background-color:#f60;background-color:var(--components-options-checkbox-color);box-shadow:inset 0 0 0 2px #f60;box-shadow:inset 0 0 0 2px var(--components-options-checkbox-color)}:host-context(.mod-multiple) .optionItem-value.is-selected:after{transform:translateY(-50%) scale(1)}:host-context(.mod-multiple) .optionItem-value:hover:before{box-shadow:inset 0 0 0 2px #f60;box-shadow:inset 0 0 0 2px var(--components-options-checkbox-color)}:host-context(.mod-multiple).establishmentOption .optionItem-value{position:relative;padding-left:2.5rem;padding-left:calc(2 * var(--components-options-item-padding-horizontal) + var(--components-options-checkbox-size) + var(--spacings-smaller))}:host-context(.mod-multiple).establishmentOption .optionItem-value:before,:host-context(.mod-multiple).establishmentOption .optionItem-value:after{left:1rem;left:calc(2 * var(--components-options-item-padding-horizontal))}\n"] }]
68
+ }], ctorParameters: function () {
69
+ return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
70
+ type: Inject,
71
+ args: [SELECT_ID]
72
+ }] }];
73
+ }, propDecorators: { hasOptionItemClass: [{
74
+ type: HostBinding,
75
+ args: ['class.optionItem']
76
+ }], isSelected: [{
77
+ type: Input
78
+ }, {
79
+ type: HostBinding,
80
+ args: ['attr.aria-selected']
81
+ }], option: [{
82
+ type: Input
83
+ }], optionIndex: [{
84
+ type: Input
85
+ }], disabled: [{
86
+ type: Input
87
+ }], role: [{
88
+ type: HostBinding,
89
+ args: ['attr.role']
90
+ }], id: [{
91
+ type: HostBinding,
92
+ args: ['attr.id']
93
+ }] } });
94
+
95
+ class LuOptionDirective {
96
+ constructor(templateRef) {
97
+ this.templateRef = templateRef;
98
+ }
99
+ set select(select) {
100
+ select.optionTpl = this.templateRef;
101
+ }
102
+ }
103
+ LuOptionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuOptionDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
104
+ LuOptionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.0", type: LuOptionDirective, selector: "[luOption]", inputs: { select: ["luOptionSelect", "select"], value: ["luOption", "value"] }, ngImport: i0 });
105
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuOptionDirective, decorators: [{
106
+ type: Directive,
107
+ args: [{ selector: '[luOption]' }]
108
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { select: [{
109
+ type: Input,
110
+ args: ['luOptionSelect']
111
+ }], value: [{
112
+ type: Input,
113
+ args: ['luOption']
114
+ }] } });
115
+
116
+ class LuOption2Module {
117
+ }
118
+ LuOption2Module.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuOption2Module, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
119
+ LuOption2Module.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: LuOption2Module, declarations: [LuOptionDirective, LuDisplayerDirective, LuOptionComponent], imports: [CommonModule], exports: [LuOptionDirective, LuDisplayerDirective, LuOptionComponent] });
120
+ LuOption2Module.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuOption2Module, imports: [CommonModule] });
121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuOption2Module, decorators: [{
122
+ type: NgModule,
123
+ args: [{
124
+ imports: [CommonModule],
125
+ declarations: [LuOptionDirective, LuDisplayerDirective, LuOptionComponent],
126
+ exports: [LuOptionDirective, LuDisplayerDirective, LuOptionComponent],
127
+ }]
128
+ }] });
129
+
130
+ class LuSelectPanelRef {
131
+ constructor() {
132
+ this.closed = new EventEmitter();
133
+ this.previousPage = new EventEmitter();
134
+ this.nextPage = new EventEmitter();
135
+ this.valueChanged = new EventEmitter();
136
+ this.clueChanged = new EventEmitter();
137
+ this.activeOptionIdChanged = new EventEmitter();
138
+ }
139
+ close() {
140
+ this.closed.next();
141
+ this.closed.complete();
142
+ this.nextPage.next();
143
+ this.nextPage.complete();
144
+ this.previousPage.next();
145
+ this.previousPage.complete();
146
+ this.valueChanged.complete();
147
+ this.clueChanged.emit(null);
148
+ this.clueChanged.complete();
149
+ this.activeOptionIdChanged.emit(undefined);
150
+ this.activeOptionIdChanged.complete();
151
+ }
152
+ }
153
+ class LuSelectPanelComponent {
154
+ constructor(panelRef, selectId, data) {
155
+ this.panelRef = panelRef;
156
+ this.selectId = selectId;
157
+ this.data = data;
158
+ this.search = null;
159
+ this.options$ = data.options$;
160
+ this.optionComparer = data.optionComparer;
161
+ this.initialValue = data.initialValue;
162
+ this.optionTpl = data.optionTpl;
163
+ this.searchable = data.searchable;
164
+ }
165
+ set searchInput(input) {
166
+ if (!input) {
167
+ return;
168
+ }
169
+ setTimeout(() => input.nativeElement.focus());
170
+ }
171
+ get selected() {
172
+ var _a, _b;
173
+ return (_b = (_a = this.keyManager) === null || _a === void 0 ? void 0 : _a.activeItem) === null || _b === void 0 ? void 0 : _b.option;
174
+ }
175
+ onScroll(evt) {
176
+ if (!(evt.target instanceof HTMLElement)) {
177
+ return;
178
+ }
179
+ if (evt.target.scrollTop === 0) {
180
+ this.panelRef.previousPage.emit();
181
+ }
182
+ if (evt.target.scrollHeight === evt.target.scrollTop + evt.target.clientHeight) {
183
+ this.panelRef.nextPage.emit();
184
+ }
185
+ }
186
+ ngAfterViewInit() {
187
+ var _a;
188
+ if (!this.optionsQL) {
189
+ return;
190
+ }
191
+ this.keyManager = new ActiveDescendantKeyManager(this.optionsQL).withHomeAndEnd();
192
+ if (this.initialValue) {
193
+ (_a = this.options$) === null || _a === void 0 ? void 0 : _a.pipe(take(1), observeOn(asyncScheduler), map((options) => options.findIndex((o) => this.optionComparer(o, this.initialValue))), takeUntil(this.panelRef.closed)).subscribe((selectedIndex) => this.keyManager.setActiveItem(selectedIndex));
194
+ }
195
+ this.keyManager.change
196
+ .pipe(map(() => { var _a; return (_a = this.keyManager.activeItem) === null || _a === void 0 ? void 0 : _a.id; }), takeUntil(this.panelRef.closed))
197
+ .subscribe((activeDescendant) => this.panelRef.activeOptionIdChanged.emit(activeDescendant));
198
+ }
199
+ onKeyDown($event) {
200
+ var _a;
201
+ switch ($event.key) {
202
+ case 'Escape':
203
+ case 'Tab':
204
+ return this.panelRef.close();
205
+ case 'Enter':
206
+ return this.panelRef.emitValue(this.selected);
207
+ default:
208
+ (_a = this.keyManager) === null || _a === void 0 ? void 0 : _a.onKeydown($event);
209
+ }
210
+ }
211
+ updateClue(clue) {
212
+ this.search = clue;
213
+ this.panelRef.clueChanged.emit(clue);
214
+ setTimeout(() => this.keyManager.setFirstItemActive());
215
+ }
216
+ }
217
+ LuSelectPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuSelectPanelComponent, deps: [{ token: LuSelectPanelRef }, { token: SELECT_ID }, { token: SELECT_PANEL_DATA }], target: i0.ɵɵFactoryTarget.Component });
218
+ LuSelectPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: LuSelectPanelComponent, selector: "lu-select-panel", host: { listeners: { "keydown": "onKeyDown($event)" } }, viewQueries: [{ propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true }, { propertyName: "optionsQL", predicate: LuOptionComponent, descendants: true }], ngImport: i0, template: "<div\r\n\tclass=\"lu-picker-panel lu-option-picker-panel\"\r\n\trole=\"dialog\"\r\n\tcdkTrapFocus\r\n\t*ngIf=\"{ options: options$ | async } as ctx\"\r\n\t[cdkTrapFocusAutoCapture]=\"true\"\r\n>\r\n\t<div class=\"lu-picker-content\" tabindex=\"0\" (scroll)=\"onScroll($event)\">\r\n\t\t<ng-container *ngIf=\"searchable\">\r\n\t\t\t<div class=\"textfield mod-search\">\r\n\t\t\t\t<input #searchInput class=\"textfield-input\" [(ngModel)]=\"search\" (ngModelChange)=\"updateClue($event)\" />\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class=\"optionPlaceholder\" *ngIf=\"search && !ctx.options?.length\">\r\n\t\t\t\t<p class=\"optionPlaceholder-content u-marginBottomReset\">Aucun r\u00E9sultat pour votre recherche</p>\r\n\t\t\t\t<button type=\"button\" class=\"link\" (click)=\"updateClue(null); searchInput.focus()\">Vider la recherche</button>\r\n\t\t\t</div>\r\n\t\t</ng-container>\r\n\r\n\t\t<lu-select-option\r\n\t\t\t*ngFor=\"let option of ctx.options; let index = index\"\r\n\t\t\t[option]=\"option\"\r\n\t\t\t[optionIndex]=\"index\"\r\n\t\t\t[isSelected]=\"option === selected\"\r\n\t\t\t[disabled]=\"false\"\r\n\t\t\t(click)=\"panelRef.emitValue(option)\"\r\n\t\t>\r\n\t\t\t<ng-container *ngTemplateOutlet=\"optionTpl; context: { $implicit: option }\"></ng-container>\r\n\t\t</lu-select-option>\r\n\t</div>\r\n</div>\r\n", styles: [".textfield.mod-search{width:100%}.textfield-input{border-radius:0;box-shadow:none;background:#FFFFFF;border-bottom:1px solid var(--palettes-grey-200);border-bottom:var(--commons-divider-width) solid var(--commons-divider-color)}.textfield-input:hover{background-color:#ebf0fa;background-color:var(--palettes-grey-50)}.textfield-input:focus{background-color:#fff;border-bottom-color:#ff7e29;border-bottom-color:var(--palettes-primary-600)}.checkbox.mod-formerEmployee{padding:.25rem .5rem;padding:var(--spacings-smallest) var(--components-options-item-padding-horizontal);border-bottom:1px solid var(--palettes-grey-200);border-bottom:var(--commons-divider-width) solid var(--commons-divider-color);background-color:#ebf0fa;background-color:var(--palettes-grey-50);font-style:italic}.optionPlaceholder{display:block;padding:.5rem;padding:var(--components-options-item-padding-vertical) var(--components-options-item-padding-horizontal);font-style:italic;color:#96a6c5;color:var(--colors-text-light-color)}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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: "directive", type: i3.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: LuOptionComponent, selector: "lu-select-option", inputs: ["isSelected", "option", "optionIndex", "disabled"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
219
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuSelectPanelComponent, decorators: [{
220
+ type: Component,
221
+ args: [{ selector: 'lu-select-panel', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\r\n\tclass=\"lu-picker-panel lu-option-picker-panel\"\r\n\trole=\"dialog\"\r\n\tcdkTrapFocus\r\n\t*ngIf=\"{ options: options$ | async } as ctx\"\r\n\t[cdkTrapFocusAutoCapture]=\"true\"\r\n>\r\n\t<div class=\"lu-picker-content\" tabindex=\"0\" (scroll)=\"onScroll($event)\">\r\n\t\t<ng-container *ngIf=\"searchable\">\r\n\t\t\t<div class=\"textfield mod-search\">\r\n\t\t\t\t<input #searchInput class=\"textfield-input\" [(ngModel)]=\"search\" (ngModelChange)=\"updateClue($event)\" />\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class=\"optionPlaceholder\" *ngIf=\"search && !ctx.options?.length\">\r\n\t\t\t\t<p class=\"optionPlaceholder-content u-marginBottomReset\">Aucun r\u00E9sultat pour votre recherche</p>\r\n\t\t\t\t<button type=\"button\" class=\"link\" (click)=\"updateClue(null); searchInput.focus()\">Vider la recherche</button>\r\n\t\t\t</div>\r\n\t\t</ng-container>\r\n\r\n\t\t<lu-select-option\r\n\t\t\t*ngFor=\"let option of ctx.options; let index = index\"\r\n\t\t\t[option]=\"option\"\r\n\t\t\t[optionIndex]=\"index\"\r\n\t\t\t[isSelected]=\"option === selected\"\r\n\t\t\t[disabled]=\"false\"\r\n\t\t\t(click)=\"panelRef.emitValue(option)\"\r\n\t\t>\r\n\t\t\t<ng-container *ngTemplateOutlet=\"optionTpl; context: { $implicit: option }\"></ng-container>\r\n\t\t</lu-select-option>\r\n\t</div>\r\n</div>\r\n", styles: [".textfield.mod-search{width:100%}.textfield-input{border-radius:0;box-shadow:none;background:#FFFFFF;border-bottom:1px solid var(--palettes-grey-200);border-bottom:var(--commons-divider-width) solid var(--commons-divider-color)}.textfield-input:hover{background-color:#ebf0fa;background-color:var(--palettes-grey-50)}.textfield-input:focus{background-color:#fff;border-bottom-color:#ff7e29;border-bottom-color:var(--palettes-primary-600)}.checkbox.mod-formerEmployee{padding:.25rem .5rem;padding:var(--spacings-smallest) var(--components-options-item-padding-horizontal);border-bottom:1px solid var(--palettes-grey-200);border-bottom:var(--commons-divider-width) solid var(--commons-divider-color);background-color:#ebf0fa;background-color:var(--palettes-grey-50);font-style:italic}.optionPlaceholder{display:block;padding:.5rem;padding:var(--components-options-item-padding-vertical) var(--components-options-item-padding-horizontal);font-style:italic;color:#96a6c5;color:var(--colors-text-light-color)}\n"] }]
222
+ }], ctorParameters: function () {
223
+ return [{ type: LuSelectPanelRef }, { type: undefined, decorators: [{
224
+ type: Inject,
225
+ args: [SELECT_ID]
226
+ }] }, { type: undefined, decorators: [{
227
+ type: Inject,
228
+ args: [SELECT_PANEL_DATA]
229
+ }] }];
230
+ }, propDecorators: { searchInput: [{
231
+ type: ViewChild,
232
+ args: ['searchInput']
233
+ }], optionsQL: [{
234
+ type: ViewChildren,
235
+ args: [LuOptionComponent]
236
+ }], onKeyDown: [{
237
+ type: HostListener,
238
+ args: ['keydown', ['$event']]
239
+ }] } });
240
+
241
+ class LuSelectPanelModule {
242
+ }
243
+ LuSelectPanelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuSelectPanelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
244
+ LuSelectPanelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: LuSelectPanelModule, declarations: [LuSelectPanelComponent], imports: [CommonModule, FormsModule, A11yModule, LuOption2Module], exports: [LuSelectPanelComponent] });
245
+ LuSelectPanelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuSelectPanelModule, imports: [CommonModule, FormsModule, A11yModule, LuOption2Module] });
246
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuSelectPanelModule, decorators: [{
247
+ type: NgModule,
248
+ args: [{
249
+ imports: [CommonModule, FormsModule, A11yModule, LuOption2Module],
250
+ declarations: [LuSelectPanelComponent],
251
+ exports: [LuSelectPanelComponent],
252
+ }]
253
+ }] });
254
+
255
+ /* eslint-disable @angular-eslint/no-output-on-prefix */
256
+ let selectId = 0;
257
+ function selectIdFactory() {
258
+ return selectId++;
259
+ }
260
+ function selectLabelFactory(elementRef) {
261
+ function getLabel(node) {
262
+ if (node instanceof HTMLLabelElement) {
263
+ return node;
264
+ }
265
+ if (!node.parentElement) {
266
+ return undefined;
267
+ }
268
+ return getLabel(node.parentElement);
269
+ }
270
+ return getLabel(elementRef.nativeElement);
271
+ }
272
+ function selectLabelIdFactory(label, selectId) {
273
+ return (label === null || label === void 0 ? void 0 : label.id) || `lu-select-label-${selectId}`;
274
+ }
275
+ class LuSelectOverlayContainer extends OverlayContainer {
276
+ constructor(document, platform, selectLabelId, selectId) {
277
+ super(document, platform);
278
+ this.selectLabelId = selectLabelId;
279
+ this.selectId = selectId;
280
+ }
281
+ _createContainer() {
282
+ super._createContainer();
283
+ this._containerElement.setAttribute('aria-labelledby', this.selectLabelId);
284
+ this._containerElement.setAttribute('role', 'listbox');
285
+ this._containerElement.id = `lu-select-overlay-container-${this.selectId}`;
286
+ }
287
+ }
288
+ LuSelectOverlayContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuSelectOverlayContainer, deps: [{ token: DOCUMENT }, { token: i1$1.Platform }, { token: SELECT_LABEL_ID }, { token: SELECT_ID }], target: i0.ɵɵFactoryTarget.Injectable });
289
+ LuSelectOverlayContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuSelectOverlayContainer });
290
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuSelectOverlayContainer, decorators: [{
291
+ type: Injectable
292
+ }], ctorParameters: function () {
293
+ return [{ type: undefined, decorators: [{
294
+ type: Inject,
295
+ args: [DOCUMENT]
296
+ }] }, { type: i1$1.Platform }, { type: undefined, decorators: [{
297
+ type: Inject,
298
+ args: [SELECT_LABEL_ID]
299
+ }] }, { type: undefined, decorators: [{
300
+ type: Inject,
301
+ args: [SELECT_ID]
302
+ }] }];
303
+ } });
304
+ class LuSelectOverlay extends Overlay {
305
+ }
306
+ LuSelectOverlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuSelectOverlay, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
307
+ LuSelectOverlay.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuSelectOverlay });
308
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuSelectOverlay, decorators: [{
309
+ type: Injectable
310
+ }] });
311
+ class SelectPanelRef extends LuSelectPanelRef {
312
+ constructor(overlayRef, parentInjector, panelData) {
313
+ super();
314
+ this.overlayRef = overlayRef;
315
+ const injector = Injector.create({
316
+ providers: [
317
+ { provide: LuSelectPanelRef, useValue: this },
318
+ { provide: SELECT_PANEL_DATA, useValue: panelData },
319
+ ],
320
+ parent: parentInjector,
321
+ });
322
+ this.portalRef = new ComponentPortal(LuSelectPanelComponent, undefined, injector);
323
+ this.panelRef = overlayRef.attach(this.portalRef);
324
+ this.instance = this.panelRef.instance;
325
+ overlayRef
326
+ .backdropClick()
327
+ .pipe(takeUntil(this.closed))
328
+ .subscribe(() => this.close());
329
+ }
330
+ emitValue(value) {
331
+ this.valueChanged.emit(value);
332
+ this.close();
333
+ }
334
+ close() {
335
+ super.close();
336
+ this.panelRef.destroy();
337
+ this.overlayRef.detach();
338
+ }
339
+ }
340
+ class LuSelectInput2Component {
341
+ constructor(positionBuilder, scrollStrategies, elementRef, injector, overlay, changeDetectorRef, overlayContainer, label, labelId) {
342
+ this.positionBuilder = positionBuilder;
343
+ this.scrollStrategies = scrollStrategies;
344
+ this.elementRef = elementRef;
345
+ this.injector = injector;
346
+ this.overlay = overlay;
347
+ this.changeDetectorRef = changeDetectorRef;
348
+ this.label = label;
349
+ this.labelId = labelId;
350
+ this.tabindex = 0;
351
+ this.placeholder = '';
352
+ this.multiple = false;
353
+ this.clearable = false;
354
+ this.disabled = false;
355
+ this.isPanelOpen = false;
356
+ this.role = 'combobox';
357
+ this.overlayConfig = {
358
+ hasBackdrop: true,
359
+ backdropClass: 'cdk-overlay-transparent-backdrop',
360
+ };
361
+ this.optionComparer = (option1, option2) => JSON.stringify(option1) === JSON.stringify(option2);
362
+ this.clueChange = new EventEmitter();
363
+ this.nextPage = new EventEmitter();
364
+ this.previousPage = new EventEmitter();
365
+ this.options$ = new ReplaySubject(1);
366
+ this.clue = null;
367
+ this.destroyed$ = new Subject();
368
+ this.overlayContainerRef = overlayContainer.getContainerElement();
369
+ }
370
+ get searchable() {
371
+ return this.clueChange.observed;
372
+ }
373
+ get isFilled() {
374
+ return this.value !== null && this.value !== undefined;
375
+ }
376
+ get ariaControls() {
377
+ return this.overlayContainerRef.id;
378
+ }
379
+ set options(options) {
380
+ this.options$.next(options);
381
+ }
382
+ onKeydown($event) {
383
+ if (!this.isPanelOpen) {
384
+ this.openPanel();
385
+ $event.stopPropagation();
386
+ $event.preventDefault();
387
+ }
388
+ }
389
+ registerOnChange(onChange) {
390
+ this.onChange = onChange;
391
+ }
392
+ registerOnTouched(onTouched) {
393
+ this.onTouched = onTouched;
394
+ }
395
+ setDisabledState(isDisabled) {
396
+ this.disabled = isDisabled;
397
+ }
398
+ ngOnDestroy() {
399
+ this.destroyed$.next();
400
+ this.destroyed$.complete();
401
+ }
402
+ ngOnInit() {
403
+ if (this.label) {
404
+ this.label.id = this.labelId;
405
+ }
406
+ }
407
+ clearValue(event) {
408
+ var _a;
409
+ event.stopPropagation();
410
+ (_a = this.onChange) === null || _a === void 0 ? void 0 : _a.call(this, null);
411
+ this.value = null;
412
+ }
413
+ openPanel() {
414
+ if (this.isPanelOpen || this.disabled) {
415
+ return;
416
+ }
417
+ const overlayConfig = this.overlayConfig || {};
418
+ overlayConfig.positionStrategy = this.positionBuilder.flexibleConnectedTo(this.elementRef).withPositions([
419
+ {
420
+ originX: 'start',
421
+ originY: 'bottom',
422
+ overlayX: 'start',
423
+ overlayY: 'top',
424
+ },
425
+ {
426
+ originX: 'end',
427
+ originY: 'bottom',
428
+ overlayX: 'end',
429
+ overlayY: 'top',
430
+ },
431
+ {
432
+ originX: 'start',
433
+ originY: 'top',
434
+ overlayX: 'start',
435
+ overlayY: 'bottom',
436
+ },
437
+ {
438
+ originX: 'end',
439
+ originY: 'top',
440
+ overlayX: 'end',
441
+ overlayY: 'bottom',
442
+ },
443
+ ]);
444
+ overlayConfig.scrollStrategy = this.scrollStrategies.reposition();
445
+ overlayConfig.minWidth = this.elementRef.nativeElement.clientWidth;
446
+ overlayConfig.maxHeight = '100vh';
447
+ overlayConfig.maxWidth = '100vw';
448
+ const overlayRef = this.overlay.create(overlayConfig);
449
+ this.isPanelOpen = true;
450
+ this.panelRef = new SelectPanelRef(overlayRef, this.injector, {
451
+ initialValue: this.value,
452
+ optionComparer: this.optionComparer,
453
+ options$: this.options$,
454
+ searchable: this.searchable,
455
+ optionTpl: this.optionTpl,
456
+ });
457
+ this.panelRef.valueChanged.subscribe((value) => {
458
+ var _a;
459
+ (_a = this.onChange) === null || _a === void 0 ? void 0 : _a.call(this, value);
460
+ this.value = value;
461
+ });
462
+ this.panelRef.nextPage.subscribe(() => this.nextPage.emit());
463
+ this.panelRef.previousPage.subscribe(() => this.previousPage.emit());
464
+ this.panelRef.clueChanged.subscribe((clue) => {
465
+ this.clueChange.emit(clue);
466
+ this.clue = clue;
467
+ });
468
+ this.panelRef.activeOptionIdChanged.subscribe((optionId) => {
469
+ this.activeDescendant = optionId;
470
+ this.changeDetectorRef.markForCheck();
471
+ });
472
+ this.panelRef.closed.subscribe(() => this.closePanel());
473
+ }
474
+ closePanel() {
475
+ if (!this.isPanelOpen) {
476
+ return;
477
+ }
478
+ this.isPanelOpen = false;
479
+ this.panelRef.close();
480
+ this.panelRef = undefined;
481
+ }
482
+ writeValue(value) {
483
+ this.value = value;
484
+ }
485
+ }
486
+ LuSelectInput2Component.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuSelectInput2Component, deps: [{ token: i2$1.OverlayPositionBuilder }, { token: i2$1.ScrollStrategyOptions }, { token: i0.ElementRef }, { token: i0.Injector }, { token: LuSelectOverlay }, { token: i0.ChangeDetectorRef }, { token: i2$1.OverlayContainer }, { token: SELECT_LABEL }, { token: SELECT_LABEL_ID }], target: i0.ɵɵFactoryTarget.Component });
487
+ LuSelectInput2Component.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: LuSelectInput2Component, selector: "lu-select2", inputs: { placeholder: "placeholder", multiple: "multiple", clearable: "clearable", disabled: "disabled", overlayConfig: "overlayConfig", options: "options", optionComparer: "optionComparer", optionTpl: "optionTpl", valueTpl: "valueTpl" }, outputs: { clueChange: "clueChange", nextPage: "nextPage", previousPage: "previousPage" }, host: { listeners: { "keydown.space": "onKeydown($event)", "keydown.enter": "onKeydown($event)", "click": "onKeydown($event)" }, properties: { "tabindex": "this.tabindex", "class.mod-multiple": "this.multiple", "class.is-clearable": "this.clearable", "class.is-disabled": "this.disabled", "class.is-filled": "this.isFilled", "class.is-focused": "this.isPanelOpen", "attr.aria-expanded": "this.isPanelOpen", "attr.role": "this.role", "attr.aria-activedescendant": "this.activeDescendant", "attr.aria-controls": "this.ariaControls" } }, providers: [
488
+ {
489
+ provide: NG_VALUE_ACCESSOR,
490
+ useExisting: forwardRef(() => LuSelectInput2Component),
491
+ multi: true,
492
+ },
493
+ {
494
+ provide: OverlayContainer,
495
+ useClass: LuSelectOverlayContainer,
496
+ },
497
+ LuSelectOverlay,
498
+ { provide: SELECT_ID, useFactory: selectIdFactory },
499
+ { provide: SELECT_LABEL, useFactory: selectLabelFactory, deps: [ElementRef] },
500
+ { provide: SELECT_LABEL_ID, useFactory: selectLabelIdFactory, deps: [SELECT_LABEL, SELECT_ID] },
501
+ ], ngImport: i0, template: "<div class=\"lu-select-placeholder\">{{ placeholder }}</div>\r\n<div class=\"lu-select-value\">\r\n\t<div class=\"lu-select-display-wrapper\">\r\n\t\t<ng-container *ngIf=\"isFilled\">\r\n\t\t\t<ng-container *ngTemplateOutlet=\"valueTpl || optionTpl; context: { $implicit: value }\"></ng-container>\r\n\t\t</ng-container>\r\n\t</div>\r\n</div>\r\n<div class=\"lu-select-suffix\">\r\n\t<a *ngIf=\"clearable && isFilled\" role=\"button\" class=\"actionIcon\" (click)=\"clearValue($event)\">\r\n\t\t<span aria-hidden=\"true\" class=\"lucca-icon\">thin_cross</span>\r\n\t\t<span class=\"u-mask\">Clear</span>\r\n\t</a>\r\n</div>\r\n", styles: [":host{cursor:pointer;outline:none;padding:0}:host:after{content:\"\\e97c\";font-family:Lucca icons;display:inline-block;vertical-align:text-bottom;font-style:normal;color:var(--components-select-default-palette-700);bottom:.5rem;bottom:var(--components-select-input-padding-vertical);font-size:1.2rem;line-height:1.4rem;pointer-events:none;position:absolute;right:.5rem;right:var(--components-select-input-padding-horizontal)}:host[disabled]{cursor:not-allowed;pointer-events:all}:host.is-disabled{cursor:not-allowed;pointer-events:all}.lu-select-display-wrapper{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lu-select-value{line-height:1.5rem;line-height:var(--sizes-standard-line-height);min-height:calc(var(--spacings-small) + 1.5rem);min-height:calc(var(--components-select-framed-bottom-padding) + var(--sizes-standard-line-height));padding:.5rem 2.5rem .5rem .5rem;padding:var(--components-select-input-padding-vertical) 2.5rem var(--components-select-input-padding-vertical) var(--components-select-input-padding-horizontal);transition:all .25s ease;transition:all var(--commons-animations-durations-standard) ease;display:none}.lu-select-placeholder{color:var(--components-select-default-palette-400);line-height:1.5rem;line-height:var(--sizes-standard-line-height);min-height:calc(var(--spacings-small) + 1.5rem);min-height:calc(var(--components-select-framed-bottom-padding) + var(--sizes-standard-line-height));padding:.5rem 2.5rem .5rem .5rem;padding:var(--components-select-input-padding-vertical) 2.5rem var(--components-select-input-padding-vertical) var(--components-select-input-padding-horizontal);transition:all .25s ease;transition:all var(--commons-animations-durations-standard) ease;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lu-select-suffix{position:absolute;bottom:.5rem;right:1.6rem}::ng-deep .lu-select-value .label{padding:.25rem .25rem .5rem .5rem;padding:var(--spacings-smallest) var(--spacings-smaller);margin-left:0}::ng-deep .lu-select-value .chip{background:#FF6600;background:var(--components-select-chip-background);color:#fff;color:var(--components-select-chip-text);vertical-align:baseline;max-width:100%;height:1.5rem;height:var(--sizes-standard-line-height);line-height:1.5rem;line-height:var(--sizes-standard-line-height);padding:0 .5rem;padding:0 var(--spacings-smaller);margin:0 .25rem .25rem 0;text-overflow:ellipsis;overflow:hidden;vertical-align:top;white-space:nowrap}:host-context(.textfield.mod-small) .lu-select-value,:host-context(.textfield.mod-small) .lu-select-placeholder{font-size:.875rem;font-size:var(--sizes-small-font-size);line-height:1.25rem;line-height:var(--sizes-small-line-height);min-height:calc(var(--spacings-small) + 1.25rem);min-height:calc(var(--components-select-framed-bottom-padding) + var(--sizes-small-line-height))}:host-context(.textfield.mod-small):after{line-height:1.25rem;line-height:var(--sizes-small-line-height)}:host-context(.textfield.mod-small) ::ng-deep .lu-select-value .label{font-size:.875rem;font-size:var(--sizes-small-font-size);line-height:1.25rem;line-height:var(--sizes-small-line-height);font-weight:600;margin:0;padding:0;background:transparent}:host-context(.textfield.mod-small) ::ng-deep .lu-select-value .chip{height:1.25rem;height:var(--sizes-small-line-height);line-height:1.25rem;line-height:var(--sizes-small-line-height)}:host-context(.textfield.mod-framed).textfield-input,:host-context(.form.mod-framed).textfield-input{padding:var(--spacings-big) 0 0;padding:var(--components-select-framed-top-padding) 0 0}:host-context(.textfield.mod-framed).textfield-input:after,:host-context(.form.mod-framed).textfield-input:after{color:#96a6c5;color:var(--colors-text-light-color);bottom:var(--spacings-small);bottom:var(--components-select-framed-bottom-padding);right:.5rem;right:var(--spacings-smaller)}:host-context(.textfield.mod-framed).textfield-input .lu-select-value,:host-context(.textfield.mod-framed).textfield-input .lu-select-placeholder,:host-context(.form.mod-framed).textfield-input .lu-select-value,:host-context(.form.mod-framed).textfield-input .lu-select-placeholder{padding:0 calc(var(--spacings-small) * 3) var(--spacings-small) var(--spacings-small);padding:0 calc(var(--components-select-framed-side-padding) * 3) var(--components-select-framed-bottom-padding) var(--components-select-framed-side-padding)}:host-context(.textfield.mod-framed).textfield-input .lu-select-suffix,:host-context(.form.mod-framed).textfield-input .lu-select-suffix{bottom:var(--spacings-small);bottom:var(--components-select-framed-bottom-padding);right:1.7rem}:host-context(.textfield.mod-filter) .lu-select-value,:host-context(.textfield.mod-filter) .lu-select-placeholder{padding:0;height:auto;padding-top:1rem;color:#2a3551;color:var(--colors-text-default-color)}:host-context(.textfield.mod-filter) .lu-select-suffix{bottom:.4rem}:host-context(.textfield.mod-material):after{color:#96a6c5;color:var(--colors-text-light-color);bottom:.6rem;right:0}:host-context(.textfield.mod-material) .lu-select-value,:host-context(.textfield.mod-material) .lu-select-placeholder{padding-left:0;padding-right:.8rem}:host-context(.textfield.mod-material) .lu-select-suffix{right:1rem;right:calc(2 * var(--components-select-input-padding-horizontal))}:host-context(.textfield.mod-material).is-select .lu-select-placeholder{display:none}:host-context(.textfield.mod-material).mod-search:after{bottom:0}:host-context(.textfield.mod-material).mod-search .lu-select-suffix{right:1.375rem;right:calc(2.75 * var(--components-select-input-padding-horizontal))}:host-context(.textfield.mod-material .textfield-input.is-focused) .lu-select-placeholder{display:none}:host(.mod-multiple).mod-multipleView:not(.mod-singleLine) .lu-select-value{height:auto;align-items:center}:host(.mod-multiple).mod-multipleView:not(.mod-singleLine) .lu-select-display-wrapper{overflow:hidden;white-space:normal;margin-bottom:-.25rem}:host-context(.textfield-input.is-filled) .lu-select-placeholder{display:none}:host-context(.textfield-input.is-filled) .lu-select-value{display:flex}:host-context(.textfield-input.is-clearable) .lu-select-value{padding-right:2.5rem}:host-context(.textfield-input.is-error):after{color:#e51a3b;color:var(--palettes-error-color)}:host-context(.textfield-input.is-error) .lu-select-placeholder{color:#ffe0e6;color:var(--palettes-error-200)}:host-context(.textfield-input.is-disabled,.textfield-input[disabled]):after{color:#999;color:var(--commons-disabled-color)}:host-context(.textfield-input.is-disabled,.textfield-input[disabled]) .lu-select-placeholder{color:#bbb;color:var(--commons-disabled-placeholder)}:host-context(.palette-primary) .lu-select-placeholder{color:var(--palettes-primary-400)}:host-context(.palette-primary):after{color:var(--palettes-primary-700)}:host-context(.palette-secondary) .lu-select-placeholder{color:var(--palettes-secondary-400)}:host-context(.palette-secondary):after{color:var(--palettes-secondary-700)}:host-context(.palette-grey) .lu-select-placeholder{color:var(--palettes-grey-400)}:host-context(.palette-grey):after{color:var(--palettes-grey-700)}:host-context(.palette-success) .lu-select-placeholder{color:var(--palettes-success-400)}:host-context(.palette-success):after{color:var(--palettes-success-700)}:host-context(.palette-warning) .lu-select-placeholder{color:var(--palettes-warning-400)}:host-context(.palette-warning):after{color:var(--palettes-warning-700)}:host-context(.palette-error) .lu-select-placeholder{color:var(--palettes-error-400)}:host-context(.palette-error):after{color:var(--palettes-error-700)}:host{display:none;vertical-align:text-bottom}:host-context(.textfield-input.is-filled){display:inline-block}.actionIcon{color:var(--components-select-default-palette-700);height:1rem;padding:0;width:1rem}.actionIcon:hover{background-color:var(--components-select-default-palette-50);color:var(--components-select-default-palette-800)}.actionIcon:focus{background-color:var(--components-select-default-palette-50);box-shadow:0 2px 8px #0000000a,0 1px 2px #0000000f,0 0 0 4px var(--components-select-default-palette-200)}.lucca-icon{display:block;font-size:1rem}:host-context(.textfield.mod-material) .actionIcon{color:#96a6c5;color:var(--colors-text-light-color)}:host-context(.textfield.mod-framed) .actionIcon{color:#96a6c5;color:var(--colors-text-light-color)}:host-context(.textfield-input.is-error) .actionIcon{color:#e51a3b;color:var(--palettes-error-color)}:host-context(.textfield-input.is-error) .actionIcon:hover{background-color:#fff5f7;background-color:var(--palettes-error-50);color:#af0e29;color:var(--palettes-error-800)}:host-context(.textfield-input.is-disabled,.textfield-input[disabled]){display:none}:host-context(.palette-primary) .actionIcon{color:var(--palettes-primary-700)}:host-context(.palette-primary) .actionIcon:hover{background-color:var(--palettes-primary-50);color:var(--palettes-primary-800)}:host-context(.palette-primary) .actionIcon:focus{background-color:var(--palettes-primary-50);box-shadow:0 2px 8px #0000000a,0 1px 2px #0000000f,0 0 0 4px var(--palettes-primary-200)}:host-context(.palette-secondary) .actionIcon{color:var(--palettes-secondary-700)}:host-context(.palette-secondary) .actionIcon:hover{background-color:var(--palettes-secondary-50);color:var(--palettes-secondary-800)}:host-context(.palette-secondary) .actionIcon:focus{background-color:var(--palettes-secondary-50);box-shadow:0 2px 8px #0000000a,0 1px 2px #0000000f,0 0 0 4px var(--palettes-secondary-200)}:host-context(.palette-grey) .actionIcon{color:var(--palettes-grey-700)}:host-context(.palette-grey) .actionIcon:hover{background-color:var(--palettes-grey-50);color:var(--palettes-grey-800)}:host-context(.palette-grey) .actionIcon:focus{background-color:var(--palettes-grey-50);box-shadow:0 2px 8px #0000000a,0 1px 2px #0000000f,0 0 0 4px var(--palettes-grey-200)}:host-context(.palette-success) .actionIcon{color:var(--palettes-success-700)}:host-context(.palette-success) .actionIcon:hover{background-color:var(--palettes-success-50);color:var(--palettes-success-800)}:host-context(.palette-success) .actionIcon:focus{background-color:var(--palettes-success-50);box-shadow:0 2px 8px #0000000a,0 1px 2px #0000000f,0 0 0 4px var(--palettes-success-200)}:host-context(.palette-warning) .actionIcon{color:var(--palettes-warning-700)}:host-context(.palette-warning) .actionIcon:hover{background-color:var(--palettes-warning-50);color:var(--palettes-warning-800)}:host-context(.palette-warning) .actionIcon:focus{background-color:var(--palettes-warning-50);box-shadow:0 2px 8px #0000000a,0 1px 2px #0000000f,0 0 0 4px var(--palettes-warning-200)}:host-context(.palette-error) .actionIcon{color:var(--palettes-error-700)}:host-context(.palette-error) .actionIcon:hover{background-color:var(--palettes-error-50);color:var(--palettes-error-800)}:host-context(.palette-error) .actionIcon:focus{background-color:var(--palettes-error-50);box-shadow:0 2px 8px #0000000a,0 1px 2px #0000000f,0 0 0 4px var(--palettes-error-200)}:host.is-disabled{display:inline-block!important}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
502
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuSelectInput2Component, decorators: [{
503
+ type: Component,
504
+ args: [{ selector: 'lu-select2', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
505
+ {
506
+ provide: NG_VALUE_ACCESSOR,
507
+ useExisting: forwardRef(() => LuSelectInput2Component),
508
+ multi: true,
509
+ },
510
+ {
511
+ provide: OverlayContainer,
512
+ useClass: LuSelectOverlayContainer,
513
+ },
514
+ LuSelectOverlay,
515
+ { provide: SELECT_ID, useFactory: selectIdFactory },
516
+ { provide: SELECT_LABEL, useFactory: selectLabelFactory, deps: [ElementRef] },
517
+ { provide: SELECT_LABEL_ID, useFactory: selectLabelIdFactory, deps: [SELECT_LABEL, SELECT_ID] },
518
+ ], template: "<div class=\"lu-select-placeholder\">{{ placeholder }}</div>\r\n<div class=\"lu-select-value\">\r\n\t<div class=\"lu-select-display-wrapper\">\r\n\t\t<ng-container *ngIf=\"isFilled\">\r\n\t\t\t<ng-container *ngTemplateOutlet=\"valueTpl || optionTpl; context: { $implicit: value }\"></ng-container>\r\n\t\t</ng-container>\r\n\t</div>\r\n</div>\r\n<div class=\"lu-select-suffix\">\r\n\t<a *ngIf=\"clearable && isFilled\" role=\"button\" class=\"actionIcon\" (click)=\"clearValue($event)\">\r\n\t\t<span aria-hidden=\"true\" class=\"lucca-icon\">thin_cross</span>\r\n\t\t<span class=\"u-mask\">Clear</span>\r\n\t</a>\r\n</div>\r\n", styles: [":host{cursor:pointer;outline:none;padding:0}:host:after{content:\"\\e97c\";font-family:Lucca icons;display:inline-block;vertical-align:text-bottom;font-style:normal;color:var(--components-select-default-palette-700);bottom:.5rem;bottom:var(--components-select-input-padding-vertical);font-size:1.2rem;line-height:1.4rem;pointer-events:none;position:absolute;right:.5rem;right:var(--components-select-input-padding-horizontal)}:host[disabled]{cursor:not-allowed;pointer-events:all}:host.is-disabled{cursor:not-allowed;pointer-events:all}.lu-select-display-wrapper{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lu-select-value{line-height:1.5rem;line-height:var(--sizes-standard-line-height);min-height:calc(var(--spacings-small) + 1.5rem);min-height:calc(var(--components-select-framed-bottom-padding) + var(--sizes-standard-line-height));padding:.5rem 2.5rem .5rem .5rem;padding:var(--components-select-input-padding-vertical) 2.5rem var(--components-select-input-padding-vertical) var(--components-select-input-padding-horizontal);transition:all .25s ease;transition:all var(--commons-animations-durations-standard) ease;display:none}.lu-select-placeholder{color:var(--components-select-default-palette-400);line-height:1.5rem;line-height:var(--sizes-standard-line-height);min-height:calc(var(--spacings-small) + 1.5rem);min-height:calc(var(--components-select-framed-bottom-padding) + var(--sizes-standard-line-height));padding:.5rem 2.5rem .5rem .5rem;padding:var(--components-select-input-padding-vertical) 2.5rem var(--components-select-input-padding-vertical) var(--components-select-input-padding-horizontal);transition:all .25s ease;transition:all var(--commons-animations-durations-standard) ease;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lu-select-suffix{position:absolute;bottom:.5rem;right:1.6rem}::ng-deep .lu-select-value .label{padding:.25rem .25rem .5rem .5rem;padding:var(--spacings-smallest) var(--spacings-smaller);margin-left:0}::ng-deep .lu-select-value .chip{background:#FF6600;background:var(--components-select-chip-background);color:#fff;color:var(--components-select-chip-text);vertical-align:baseline;max-width:100%;height:1.5rem;height:var(--sizes-standard-line-height);line-height:1.5rem;line-height:var(--sizes-standard-line-height);padding:0 .5rem;padding:0 var(--spacings-smaller);margin:0 .25rem .25rem 0;text-overflow:ellipsis;overflow:hidden;vertical-align:top;white-space:nowrap}:host-context(.textfield.mod-small) .lu-select-value,:host-context(.textfield.mod-small) .lu-select-placeholder{font-size:.875rem;font-size:var(--sizes-small-font-size);line-height:1.25rem;line-height:var(--sizes-small-line-height);min-height:calc(var(--spacings-small) + 1.25rem);min-height:calc(var(--components-select-framed-bottom-padding) + var(--sizes-small-line-height))}:host-context(.textfield.mod-small):after{line-height:1.25rem;line-height:var(--sizes-small-line-height)}:host-context(.textfield.mod-small) ::ng-deep .lu-select-value .label{font-size:.875rem;font-size:var(--sizes-small-font-size);line-height:1.25rem;line-height:var(--sizes-small-line-height);font-weight:600;margin:0;padding:0;background:transparent}:host-context(.textfield.mod-small) ::ng-deep .lu-select-value .chip{height:1.25rem;height:var(--sizes-small-line-height);line-height:1.25rem;line-height:var(--sizes-small-line-height)}:host-context(.textfield.mod-framed).textfield-input,:host-context(.form.mod-framed).textfield-input{padding:var(--spacings-big) 0 0;padding:var(--components-select-framed-top-padding) 0 0}:host-context(.textfield.mod-framed).textfield-input:after,:host-context(.form.mod-framed).textfield-input:after{color:#96a6c5;color:var(--colors-text-light-color);bottom:var(--spacings-small);bottom:var(--components-select-framed-bottom-padding);right:.5rem;right:var(--spacings-smaller)}:host-context(.textfield.mod-framed).textfield-input .lu-select-value,:host-context(.textfield.mod-framed).textfield-input .lu-select-placeholder,:host-context(.form.mod-framed).textfield-input .lu-select-value,:host-context(.form.mod-framed).textfield-input .lu-select-placeholder{padding:0 calc(var(--spacings-small) * 3) var(--spacings-small) var(--spacings-small);padding:0 calc(var(--components-select-framed-side-padding) * 3) var(--components-select-framed-bottom-padding) var(--components-select-framed-side-padding)}:host-context(.textfield.mod-framed).textfield-input .lu-select-suffix,:host-context(.form.mod-framed).textfield-input .lu-select-suffix{bottom:var(--spacings-small);bottom:var(--components-select-framed-bottom-padding);right:1.7rem}:host-context(.textfield.mod-filter) .lu-select-value,:host-context(.textfield.mod-filter) .lu-select-placeholder{padding:0;height:auto;padding-top:1rem;color:#2a3551;color:var(--colors-text-default-color)}:host-context(.textfield.mod-filter) .lu-select-suffix{bottom:.4rem}:host-context(.textfield.mod-material):after{color:#96a6c5;color:var(--colors-text-light-color);bottom:.6rem;right:0}:host-context(.textfield.mod-material) .lu-select-value,:host-context(.textfield.mod-material) .lu-select-placeholder{padding-left:0;padding-right:.8rem}:host-context(.textfield.mod-material) .lu-select-suffix{right:1rem;right:calc(2 * var(--components-select-input-padding-horizontal))}:host-context(.textfield.mod-material).is-select .lu-select-placeholder{display:none}:host-context(.textfield.mod-material).mod-search:after{bottom:0}:host-context(.textfield.mod-material).mod-search .lu-select-suffix{right:1.375rem;right:calc(2.75 * var(--components-select-input-padding-horizontal))}:host-context(.textfield.mod-material .textfield-input.is-focused) .lu-select-placeholder{display:none}:host(.mod-multiple).mod-multipleView:not(.mod-singleLine) .lu-select-value{height:auto;align-items:center}:host(.mod-multiple).mod-multipleView:not(.mod-singleLine) .lu-select-display-wrapper{overflow:hidden;white-space:normal;margin-bottom:-.25rem}:host-context(.textfield-input.is-filled) .lu-select-placeholder{display:none}:host-context(.textfield-input.is-filled) .lu-select-value{display:flex}:host-context(.textfield-input.is-clearable) .lu-select-value{padding-right:2.5rem}:host-context(.textfield-input.is-error):after{color:#e51a3b;color:var(--palettes-error-color)}:host-context(.textfield-input.is-error) .lu-select-placeholder{color:#ffe0e6;color:var(--palettes-error-200)}:host-context(.textfield-input.is-disabled,.textfield-input[disabled]):after{color:#999;color:var(--commons-disabled-color)}:host-context(.textfield-input.is-disabled,.textfield-input[disabled]) .lu-select-placeholder{color:#bbb;color:var(--commons-disabled-placeholder)}:host-context(.palette-primary) .lu-select-placeholder{color:var(--palettes-primary-400)}:host-context(.palette-primary):after{color:var(--palettes-primary-700)}:host-context(.palette-secondary) .lu-select-placeholder{color:var(--palettes-secondary-400)}:host-context(.palette-secondary):after{color:var(--palettes-secondary-700)}:host-context(.palette-grey) .lu-select-placeholder{color:var(--palettes-grey-400)}:host-context(.palette-grey):after{color:var(--palettes-grey-700)}:host-context(.palette-success) .lu-select-placeholder{color:var(--palettes-success-400)}:host-context(.palette-success):after{color:var(--palettes-success-700)}:host-context(.palette-warning) .lu-select-placeholder{color:var(--palettes-warning-400)}:host-context(.palette-warning):after{color:var(--palettes-warning-700)}:host-context(.palette-error) .lu-select-placeholder{color:var(--palettes-error-400)}:host-context(.palette-error):after{color:var(--palettes-error-700)}:host{display:none;vertical-align:text-bottom}:host-context(.textfield-input.is-filled){display:inline-block}.actionIcon{color:var(--components-select-default-palette-700);height:1rem;padding:0;width:1rem}.actionIcon:hover{background-color:var(--components-select-default-palette-50);color:var(--components-select-default-palette-800)}.actionIcon:focus{background-color:var(--components-select-default-palette-50);box-shadow:0 2px 8px #0000000a,0 1px 2px #0000000f,0 0 0 4px var(--components-select-default-palette-200)}.lucca-icon{display:block;font-size:1rem}:host-context(.textfield.mod-material) .actionIcon{color:#96a6c5;color:var(--colors-text-light-color)}:host-context(.textfield.mod-framed) .actionIcon{color:#96a6c5;color:var(--colors-text-light-color)}:host-context(.textfield-input.is-error) .actionIcon{color:#e51a3b;color:var(--palettes-error-color)}:host-context(.textfield-input.is-error) .actionIcon:hover{background-color:#fff5f7;background-color:var(--palettes-error-50);color:#af0e29;color:var(--palettes-error-800)}:host-context(.textfield-input.is-disabled,.textfield-input[disabled]){display:none}:host-context(.palette-primary) .actionIcon{color:var(--palettes-primary-700)}:host-context(.palette-primary) .actionIcon:hover{background-color:var(--palettes-primary-50);color:var(--palettes-primary-800)}:host-context(.palette-primary) .actionIcon:focus{background-color:var(--palettes-primary-50);box-shadow:0 2px 8px #0000000a,0 1px 2px #0000000f,0 0 0 4px var(--palettes-primary-200)}:host-context(.palette-secondary) .actionIcon{color:var(--palettes-secondary-700)}:host-context(.palette-secondary) .actionIcon:hover{background-color:var(--palettes-secondary-50);color:var(--palettes-secondary-800)}:host-context(.palette-secondary) .actionIcon:focus{background-color:var(--palettes-secondary-50);box-shadow:0 2px 8px #0000000a,0 1px 2px #0000000f,0 0 0 4px var(--palettes-secondary-200)}:host-context(.palette-grey) .actionIcon{color:var(--palettes-grey-700)}:host-context(.palette-grey) .actionIcon:hover{background-color:var(--palettes-grey-50);color:var(--palettes-grey-800)}:host-context(.palette-grey) .actionIcon:focus{background-color:var(--palettes-grey-50);box-shadow:0 2px 8px #0000000a,0 1px 2px #0000000f,0 0 0 4px var(--palettes-grey-200)}:host-context(.palette-success) .actionIcon{color:var(--palettes-success-700)}:host-context(.palette-success) .actionIcon:hover{background-color:var(--palettes-success-50);color:var(--palettes-success-800)}:host-context(.palette-success) .actionIcon:focus{background-color:var(--palettes-success-50);box-shadow:0 2px 8px #0000000a,0 1px 2px #0000000f,0 0 0 4px var(--palettes-success-200)}:host-context(.palette-warning) .actionIcon{color:var(--palettes-warning-700)}:host-context(.palette-warning) .actionIcon:hover{background-color:var(--palettes-warning-50);color:var(--palettes-warning-800)}:host-context(.palette-warning) .actionIcon:focus{background-color:var(--palettes-warning-50);box-shadow:0 2px 8px #0000000a,0 1px 2px #0000000f,0 0 0 4px var(--palettes-warning-200)}:host-context(.palette-error) .actionIcon{color:var(--palettes-error-700)}:host-context(.palette-error) .actionIcon:hover{background-color:var(--palettes-error-50);color:var(--palettes-error-800)}:host-context(.palette-error) .actionIcon:focus{background-color:var(--palettes-error-50);box-shadow:0 2px 8px #0000000a,0 1px 2px #0000000f,0 0 0 4px var(--palettes-error-200)}:host.is-disabled{display:inline-block!important}\n"] }]
519
+ }], ctorParameters: function () {
520
+ return [{ type: i2$1.OverlayPositionBuilder }, { type: i2$1.ScrollStrategyOptions }, { type: i0.ElementRef }, { type: i0.Injector }, { type: LuSelectOverlay }, { type: i0.ChangeDetectorRef }, { type: i2$1.OverlayContainer }, { type: undefined, decorators: [{
521
+ type: Inject,
522
+ args: [SELECT_LABEL]
523
+ }] }, { type: undefined, decorators: [{
524
+ type: Inject,
525
+ args: [SELECT_LABEL_ID]
526
+ }] }];
527
+ }, propDecorators: { tabindex: [{
528
+ type: HostBinding,
529
+ args: ['tabindex']
530
+ }], placeholder: [{
531
+ type: Input
532
+ }], multiple: [{
533
+ type: Input
534
+ }, {
535
+ type: HostBinding,
536
+ args: ['class.mod-multiple']
537
+ }], clearable: [{
538
+ type: Input
539
+ }, {
540
+ type: HostBinding,
541
+ args: ['class.is-clearable']
542
+ }], disabled: [{
543
+ type: Input
544
+ }, {
545
+ type: HostBinding,
546
+ args: ['class.is-disabled']
547
+ }], isFilled: [{
548
+ type: HostBinding,
549
+ args: ['class.is-filled']
550
+ }], isPanelOpen: [{
551
+ type: HostBinding,
552
+ args: ['class.is-focused']
553
+ }, {
554
+ type: HostBinding,
555
+ args: ['attr.aria-expanded']
556
+ }], role: [{
557
+ type: HostBinding,
558
+ args: ['attr.role']
559
+ }], activeDescendant: [{
560
+ type: HostBinding,
561
+ args: ['attr.aria-activedescendant']
562
+ }], ariaControls: [{
563
+ type: HostBinding,
564
+ args: ['attr.aria-controls']
565
+ }], overlayConfig: [{
566
+ type: Input
567
+ }], options: [{
568
+ type: Input
569
+ }], optionComparer: [{
570
+ type: Input
571
+ }], optionTpl: [{
572
+ type: Input
573
+ }], valueTpl: [{
574
+ type: Input
575
+ }], clueChange: [{
576
+ type: Output
577
+ }], nextPage: [{
578
+ type: Output
579
+ }], previousPage: [{
580
+ type: Output
581
+ }], onKeydown: [{
582
+ type: HostListener,
583
+ args: ['keydown.space', ['$event']]
584
+ }, {
585
+ type: HostListener,
586
+ args: ['keydown.enter', ['$event']]
587
+ }, {
588
+ type: HostListener,
589
+ args: ['click', ['$event']]
590
+ }] } });
591
+
592
+ class LuSelectInput2Module {
593
+ }
594
+ LuSelectInput2Module.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuSelectInput2Module, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
595
+ LuSelectInput2Module.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: LuSelectInput2Module, declarations: [LuSelectInput2Component], imports: [CommonModule, LuSelectPanelModule, OverlayModule], exports: [LuSelectInput2Component] });
596
+ LuSelectInput2Module.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuSelectInput2Module, imports: [CommonModule, LuSelectPanelModule, OverlayModule] });
597
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuSelectInput2Module, decorators: [{
598
+ type: NgModule,
599
+ args: [{
600
+ imports: [CommonModule, LuSelectPanelModule, OverlayModule],
601
+ declarations: [LuSelectInput2Component],
602
+ exports: [LuSelectInput2Component],
603
+ }]
604
+ }] });
605
+
606
+ class LuSelect2Module {
607
+ }
608
+ LuSelect2Module.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuSelect2Module, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
609
+ LuSelect2Module.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: LuSelect2Module, imports: [LuSelectInput2Module, LuOption2Module, LuSelectPanelModule], exports: [LuSelectInput2Module, LuOption2Module, LuSelectPanelModule] });
610
+ LuSelect2Module.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuSelect2Module, imports: [LuSelectInput2Module, LuOption2Module, LuSelectPanelModule, LuSelectInput2Module, LuOption2Module, LuSelectPanelModule] });
611
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LuSelect2Module, decorators: [{
612
+ type: NgModule,
613
+ args: [{
614
+ imports: [LuSelectInput2Module, LuOption2Module, LuSelectPanelModule],
615
+ exports: [LuSelectInput2Module, LuOption2Module, LuSelectPanelModule],
616
+ }]
617
+ }] });
618
+
619
+ /*
620
+ * Public API Surface of safe-content
621
+ */
622
+
623
+ /**
624
+ * Generated bundle index. Do not edit.
625
+ */
626
+
627
+ export { LuDisplayerDirective, LuOption2Module, LuOptionComponent, LuOptionDirective, LuSelect2Module, LuSelectInput2Component, LuSelectInput2Module, LuSelectPanelComponent, LuSelectPanelModule, LuSelectPanelRef };
628
+ //# sourceMappingURL=lucca-front-ng-select2.mjs.map