@andersbakken/fisk-scheduler-ui 0.0.57 → 0.0.58

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 (83) hide show
  1. package/dist/ui/browser/favicon.png +0 -0
  2. package/dist/ui/browser/htaccess +7 -0
  3. package/dist/ui/browser/index.html +1 -1
  4. package/dist/ui/browser/{main-6SIZHY3G.js → main-KS4CY54V.js} +1 -1
  5. package/dist/ui/browser/package.json +50 -0
  6. package/dist/ui/package.json +50 -0
  7. package/package.json +1 -1
  8. package/scripts/mklinks.sh +18 -9
  9. package/scripts/rmlinks.sh +12 -7
  10. package/.angular/cache/18.2.21/ui/.tsbuildinfo +0 -1
  11. package/.angular/cache/18.2.21/ui/angular-compiler.db +0 -0
  12. package/.angular/cache/18.2.21/ui/angular-compiler.db-lock +0 -0
  13. package/.angular/cache/18.2.21/ui/vite/deps/@angular_common.js +0 -201
  14. package/.angular/cache/18.2.21/ui/vite/deps/@angular_common.js.map +0 -7
  15. package/.angular/cache/18.2.21/ui/vite/deps/@angular_common_http.js +0 -85
  16. package/.angular/cache/18.2.21/ui/vite/deps/@angular_common_http.js.map +0 -7
  17. package/.angular/cache/18.2.21/ui/vite/deps/@angular_core.js +0 -932
  18. package/.angular/cache/18.2.21/ui/vite/deps/@angular_core.js.map +0 -7
  19. package/.angular/cache/18.2.21/ui/vite/deps/@angular_forms.js +0 -134
  20. package/.angular/cache/18.2.21/ui/vite/deps/@angular_forms.js.map +0 -7
  21. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_button.js +0 -33
  22. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_button.js.map +0 -7
  23. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_card.js +0 -567
  24. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_card.js.map +0 -7
  25. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_checkbox.js +0 -782
  26. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_checkbox.js.map +0 -7
  27. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_core.js +0 -98
  28. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_core.js.map +0 -7
  29. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_dialog.js +0 -1829
  30. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_dialog.js.map +0 -7
  31. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_form-field.js +0 -45
  32. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_form-field.js.map +0 -7
  33. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_input.js +0 -1014
  34. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_input.js.map +0 -7
  35. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_list.js +0 -2169
  36. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_list.js.map +0 -7
  37. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_select.js +0 -1529
  38. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_select.js.map +0 -7
  39. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_snack-bar.js +0 -940
  40. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_snack-bar.js.map +0 -7
  41. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_tabs.js +0 -2962
  42. package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_tabs.js.map +0 -7
  43. package/.angular/cache/18.2.21/ui/vite/deps/@angular_platform-browser.js +0 -84
  44. package/.angular/cache/18.2.21/ui/vite/deps/@angular_platform-browser.js.map +0 -7
  45. package/.angular/cache/18.2.21/ui/vite/deps/@angular_platform-browser_animations.js +0 -4136
  46. package/.angular/cache/18.2.21/ui/vite/deps/@angular_platform-browser_animations.js.map +0 -7
  47. package/.angular/cache/18.2.21/ui/vite/deps/@angular_router.js +0 -5700
  48. package/.angular/cache/18.2.21/ui/vite/deps/@angular_router.js.map +0 -7
  49. package/.angular/cache/18.2.21/ui/vite/deps/_metadata.json +0 -172
  50. package/.angular/cache/18.2.21/ui/vite/deps/chunk-2ZKE2YDD.js +0 -1222
  51. package/.angular/cache/18.2.21/ui/vite/deps/chunk-2ZKE2YDD.js.map +0 -7
  52. package/.angular/cache/18.2.21/ui/vite/deps/chunk-3OV72XIM.js +0 -64
  53. package/.angular/cache/18.2.21/ui/vite/deps/chunk-3OV72XIM.js.map +0 -7
  54. package/.angular/cache/18.2.21/ui/vite/deps/chunk-57TVY4HY.js +0 -2218
  55. package/.angular/cache/18.2.21/ui/vite/deps/chunk-57TVY4HY.js.map +0 -7
  56. package/.angular/cache/18.2.21/ui/vite/deps/chunk-A5IWFVHJ.js +0 -2374
  57. package/.angular/cache/18.2.21/ui/vite/deps/chunk-A5IWFVHJ.js.map +0 -7
  58. package/.angular/cache/18.2.21/ui/vite/deps/chunk-DJ6HHZ3S.js +0 -1940
  59. package/.angular/cache/18.2.21/ui/vite/deps/chunk-DJ6HHZ3S.js.map +0 -7
  60. package/.angular/cache/18.2.21/ui/vite/deps/chunk-FE6XYTIJ.js +0 -126
  61. package/.angular/cache/18.2.21/ui/vite/deps/chunk-FE6XYTIJ.js.map +0 -7
  62. package/.angular/cache/18.2.21/ui/vite/deps/chunk-ITHJLHIY.js +0 -5795
  63. package/.angular/cache/18.2.21/ui/vite/deps/chunk-ITHJLHIY.js.map +0 -7
  64. package/.angular/cache/18.2.21/ui/vite/deps/chunk-MFI342ZJ.js +0 -512
  65. package/.angular/cache/18.2.21/ui/vite/deps/chunk-MFI342ZJ.js.map +0 -7
  66. package/.angular/cache/18.2.21/ui/vite/deps/chunk-NPVZU53R.js +0 -6511
  67. package/.angular/cache/18.2.21/ui/vite/deps/chunk-NPVZU53R.js.map +0 -7
  68. package/.angular/cache/18.2.21/ui/vite/deps/chunk-NSRJEU3V.js +0 -27918
  69. package/.angular/cache/18.2.21/ui/vite/deps/chunk-NSRJEU3V.js.map +0 -7
  70. package/.angular/cache/18.2.21/ui/vite/deps/chunk-R2N6IWJV.js +0 -5116
  71. package/.angular/cache/18.2.21/ui/vite/deps/chunk-R2N6IWJV.js.map +0 -7
  72. package/.angular/cache/18.2.21/ui/vite/deps/chunk-TO3SXVFJ.js +0 -2840
  73. package/.angular/cache/18.2.21/ui/vite/deps/chunk-TO3SXVFJ.js.map +0 -7
  74. package/.angular/cache/18.2.21/ui/vite/deps/chunk-WFLMTRZP.js +0 -379
  75. package/.angular/cache/18.2.21/ui/vite/deps/chunk-WFLMTRZP.js.map +0 -7
  76. package/.angular/cache/18.2.21/ui/vite/deps/chunk-WQ5YUVUS.js +0 -1534
  77. package/.angular/cache/18.2.21/ui/vite/deps/chunk-WQ5YUVUS.js.map +0 -7
  78. package/.angular/cache/18.2.21/ui/vite/deps/ngx-color-picker.js +0 -2925
  79. package/.angular/cache/18.2.21/ui/vite/deps/ngx-color-picker.js.map +0 -7
  80. package/.angular/cache/18.2.21/ui/vite/deps/seedrandom.js +0 -703
  81. package/.angular/cache/18.2.21/ui/vite/deps/seedrandom.js.map +0 -7
  82. package/scripts/mock-scheduler.js +0 -350
  83. package/scripts/test-live-model.js +0 -286
@@ -1,1529 +0,0 @@
1
- import {
2
- MAT_FORM_FIELD,
3
- MatError,
4
- MatFormField,
5
- MatFormFieldControl,
6
- MatFormFieldModule,
7
- MatHint,
8
- MatLabel,
9
- MatPrefix,
10
- MatSuffix
11
- } from "./chunk-WQ5YUVUS.js";
12
- import "./chunk-FE6XYTIJ.js";
13
- import {
14
- FormGroupDirective,
15
- NgControl,
16
- NgForm,
17
- Validators
18
- } from "./chunk-NPVZU53R.js";
19
- import {
20
- CdkConnectedOverlay,
21
- CdkOverlayOrigin,
22
- Overlay,
23
- OverlayModule
24
- } from "./chunk-TO3SXVFJ.js";
25
- import {
26
- CdkScrollableModule,
27
- ViewportRuler
28
- } from "./chunk-57TVY4HY.js";
29
- import {
30
- animate,
31
- animateChild,
32
- query,
33
- state,
34
- style,
35
- transition,
36
- trigger
37
- } from "./chunk-MFI342ZJ.js";
38
- import {
39
- SelectionModel
40
- } from "./chunk-WFLMTRZP.js";
41
- import {
42
- A,
43
- ActiveDescendantKeyManager,
44
- DOWN_ARROW,
45
- Directionality,
46
- ENTER,
47
- ErrorStateMatcher,
48
- LEFT_ARROW,
49
- LiveAnnouncer,
50
- MAT_OPTGROUP,
51
- MAT_OPTION_PARENT_COMPONENT,
52
- MatCommonModule,
53
- MatOptgroup,
54
- MatOption,
55
- MatOptionModule,
56
- RIGHT_ARROW,
57
- SPACE,
58
- UP_ARROW,
59
- _ErrorStateTracker,
60
- _countGroupLabelsBeforeOption,
61
- _getOptionScrollPosition,
62
- addAriaReferencedId,
63
- hasModifierKey,
64
- removeAriaReferencedId
65
- } from "./chunk-ITHJLHIY.js";
66
- import {
67
- CommonModule,
68
- NgClass
69
- } from "./chunk-R2N6IWJV.js";
70
- import {
71
- Attribute,
72
- ChangeDetectionStrategy,
73
- ChangeDetectorRef,
74
- Component,
75
- ContentChild,
76
- ContentChildren,
77
- Directive,
78
- ElementRef,
79
- EventEmitter,
80
- Inject,
81
- InjectionToken,
82
- Input,
83
- NgModule,
84
- NgZone,
85
- Optional,
86
- Output,
87
- Self,
88
- Subject,
89
- ViewChild,
90
- ViewEncapsulation$1,
91
- booleanAttribute,
92
- defer,
93
- distinctUntilChanged,
94
- filter,
95
- inject,
96
- map,
97
- merge,
98
- numberAttribute,
99
- setClassMetadata,
100
- startWith,
101
- switchMap,
102
- take,
103
- takeUntil,
104
- ɵɵInputTransformsFeature,
105
- ɵɵNgOnChangesFeature,
106
- ɵɵProvidersFeature,
107
- ɵɵStandaloneFeature,
108
- ɵɵadvance,
109
- ɵɵattribute,
110
- ɵɵclassMapInterpolate1,
111
- ɵɵclassProp,
112
- ɵɵconditional,
113
- ɵɵcontentQuery,
114
- ɵɵdefineComponent,
115
- ɵɵdefineDirective,
116
- ɵɵdefineInjector,
117
- ɵɵdefineNgModule,
118
- ɵɵdirectiveInject,
119
- ɵɵelement,
120
- ɵɵelementEnd,
121
- ɵɵelementStart,
122
- ɵɵgetCurrentView,
123
- ɵɵinjectAttribute,
124
- ɵɵlistener,
125
- ɵɵloadQuery,
126
- ɵɵnamespaceSVG,
127
- ɵɵnextContext,
128
- ɵɵprojection,
129
- ɵɵprojectionDef,
130
- ɵɵproperty,
131
- ɵɵqueryRefresh,
132
- ɵɵreference,
133
- ɵɵresetView,
134
- ɵɵrestoreView,
135
- ɵɵtemplate,
136
- ɵɵtext,
137
- ɵɵtextInterpolate,
138
- ɵɵviewQuery
139
- } from "./chunk-NSRJEU3V.js";
140
- import "./chunk-3OV72XIM.js";
141
-
142
- // node_modules/@angular/material/fesm2022/select.mjs
143
- var _c0 = ["trigger"];
144
- var _c1 = ["panel"];
145
- var _c2 = [[["mat-select-trigger"]], "*"];
146
- var _c3 = ["mat-select-trigger", "*"];
147
- function MatSelect_Conditional_4_Template(rf, ctx) {
148
- if (rf & 1) {
149
- ɵɵelementStart(0, "span", 4);
150
- ɵɵtext(1);
151
- ɵɵelementEnd();
152
- }
153
- if (rf & 2) {
154
- const ctx_r1 = ɵɵnextContext();
155
- ɵɵadvance();
156
- ɵɵtextInterpolate(ctx_r1.placeholder);
157
- }
158
- }
159
- function MatSelect_Conditional_5_Conditional_1_Template(rf, ctx) {
160
- if (rf & 1) {
161
- ɵɵprojection(0);
162
- }
163
- }
164
- function MatSelect_Conditional_5_Conditional_2_Template(rf, ctx) {
165
- if (rf & 1) {
166
- ɵɵelementStart(0, "span", 11);
167
- ɵɵtext(1);
168
- ɵɵelementEnd();
169
- }
170
- if (rf & 2) {
171
- const ctx_r1 = ɵɵnextContext(2);
172
- ɵɵadvance();
173
- ɵɵtextInterpolate(ctx_r1.triggerValue);
174
- }
175
- }
176
- function MatSelect_Conditional_5_Template(rf, ctx) {
177
- if (rf & 1) {
178
- ɵɵelementStart(0, "span", 5);
179
- ɵɵtemplate(1, MatSelect_Conditional_5_Conditional_1_Template, 1, 0)(2, MatSelect_Conditional_5_Conditional_2_Template, 2, 1, "span", 11);
180
- ɵɵelementEnd();
181
- }
182
- if (rf & 2) {
183
- const ctx_r1 = ɵɵnextContext();
184
- ɵɵadvance();
185
- ɵɵconditional(ctx_r1.customTrigger ? 1 : 2);
186
- }
187
- }
188
- function MatSelect_ng_template_10_Template(rf, ctx) {
189
- if (rf & 1) {
190
- const _r3 = ɵɵgetCurrentView();
191
- ɵɵelementStart(0, "div", 12, 1);
192
- ɵɵlistener("@transformPanel.done", function MatSelect_ng_template_10_Template_div_animation_transformPanel_done_0_listener($event) {
193
- ɵɵrestoreView(_r3);
194
- const ctx_r1 = ɵɵnextContext();
195
- return ɵɵresetView(ctx_r1._panelDoneAnimatingStream.next($event.toState));
196
- })("keydown", function MatSelect_ng_template_10_Template_div_keydown_0_listener($event) {
197
- ɵɵrestoreView(_r3);
198
- const ctx_r1 = ɵɵnextContext();
199
- return ɵɵresetView(ctx_r1._handleKeydown($event));
200
- });
201
- ɵɵprojection(2, 1);
202
- ɵɵelementEnd();
203
- }
204
- if (rf & 2) {
205
- const ctx_r1 = ɵɵnextContext();
206
- ɵɵclassMapInterpolate1("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ", ctx_r1._getPanelTheme(), "");
207
- ɵɵproperty("ngClass", ctx_r1.panelClass)("@transformPanel", "showing");
208
- ɵɵattribute("id", ctx_r1.id + "-panel")("aria-multiselectable", ctx_r1.multiple)("aria-label", ctx_r1.ariaLabel || null)("aria-labelledby", ctx_r1._getPanelAriaLabelledby());
209
- }
210
- }
211
- var matSelectAnimations = {
212
- /**
213
- * This animation ensures the select's overlay panel animation (transformPanel) is called when
214
- * closing the select.
215
- * This is needed due to https://github.com/angular/angular/issues/23302
216
- */
217
- transformPanelWrap: trigger("transformPanelWrap", [transition("* => void", query("@transformPanel", [animateChild()], {
218
- optional: true
219
- }))]),
220
- /** This animation transforms the select's overlay panel on and off the page. */
221
- transformPanel: trigger("transformPanel", [state("void", style({
222
- opacity: 0,
223
- transform: "scale(1, 0.8)"
224
- })), transition("void => showing", animate("120ms cubic-bezier(0, 0, 0.2, 1)", style({
225
- opacity: 1,
226
- transform: "scale(1, 1)"
227
- }))), transition("* => void", animate("100ms linear", style({
228
- opacity: 0
229
- })))])
230
- };
231
- function getMatSelectDynamicMultipleError() {
232
- return Error("Cannot change `multiple` mode of select after initialization.");
233
- }
234
- function getMatSelectNonArrayValueError() {
235
- return Error("Value must be an array in multiple-selection mode.");
236
- }
237
- function getMatSelectNonFunctionValueError() {
238
- return Error("`compareWith` must be a function.");
239
- }
240
- var nextUniqueId = 0;
241
- var MAT_SELECT_SCROLL_STRATEGY = new InjectionToken("mat-select-scroll-strategy", {
242
- providedIn: "root",
243
- factory: () => {
244
- const overlay = inject(Overlay);
245
- return () => overlay.scrollStrategies.reposition();
246
- }
247
- });
248
- function MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {
249
- return () => overlay.scrollStrategies.reposition();
250
- }
251
- var MAT_SELECT_CONFIG = new InjectionToken("MAT_SELECT_CONFIG");
252
- var MAT_SELECT_SCROLL_STRATEGY_PROVIDER = {
253
- provide: MAT_SELECT_SCROLL_STRATEGY,
254
- deps: [Overlay],
255
- useFactory: MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY
256
- };
257
- var MAT_SELECT_TRIGGER = new InjectionToken("MatSelectTrigger");
258
- var MatSelectChange = class {
259
- constructor(source, value) {
260
- this.source = source;
261
- this.value = value;
262
- }
263
- };
264
- var MatSelect = class _MatSelect {
265
- /** Scrolls a particular option into the view. */
266
- _scrollOptionIntoView(index) {
267
- const option = this.options.toArray()[index];
268
- if (option) {
269
- const panel = this.panel.nativeElement;
270
- const labelCount = _countGroupLabelsBeforeOption(index, this.options, this.optionGroups);
271
- const element = option._getHostElement();
272
- if (index === 0 && labelCount === 1) {
273
- panel.scrollTop = 0;
274
- } else {
275
- panel.scrollTop = _getOptionScrollPosition(element.offsetTop, element.offsetHeight, panel.scrollTop, panel.offsetHeight);
276
- }
277
- }
278
- }
279
- /** Called when the panel has been opened and the overlay has settled on its final position. */
280
- _positioningSettled() {
281
- this._scrollOptionIntoView(this._keyManager.activeItemIndex || 0);
282
- }
283
- /** Creates a change event object that should be emitted by the select. */
284
- _getChangeEvent(value) {
285
- return new MatSelectChange(this, value);
286
- }
287
- /** Whether the select is focused. */
288
- get focused() {
289
- return this._focused || this._panelOpen;
290
- }
291
- /** Whether checkmark indicator for single-selection options is hidden. */
292
- get hideSingleSelectionIndicator() {
293
- return this._hideSingleSelectionIndicator;
294
- }
295
- set hideSingleSelectionIndicator(value) {
296
- this._hideSingleSelectionIndicator = value;
297
- this._syncParentProperties();
298
- }
299
- /** Placeholder to be shown if no value has been selected. */
300
- get placeholder() {
301
- return this._placeholder;
302
- }
303
- set placeholder(value) {
304
- this._placeholder = value;
305
- this.stateChanges.next();
306
- }
307
- /** Whether the component is required. */
308
- get required() {
309
- return this._required ?? this.ngControl?.control?.hasValidator(Validators.required) ?? false;
310
- }
311
- set required(value) {
312
- this._required = value;
313
- this.stateChanges.next();
314
- }
315
- /** Whether the user should be allowed to select multiple options. */
316
- get multiple() {
317
- return this._multiple;
318
- }
319
- set multiple(value) {
320
- if (this._selectionModel && (typeof ngDevMode === "undefined" || ngDevMode)) {
321
- throw getMatSelectDynamicMultipleError();
322
- }
323
- this._multiple = value;
324
- }
325
- /**
326
- * Function to compare the option values with the selected values. The first argument
327
- * is a value from an option. The second is a value from the selection. A boolean
328
- * should be returned.
329
- */
330
- get compareWith() {
331
- return this._compareWith;
332
- }
333
- set compareWith(fn) {
334
- if (typeof fn !== "function" && (typeof ngDevMode === "undefined" || ngDevMode)) {
335
- throw getMatSelectNonFunctionValueError();
336
- }
337
- this._compareWith = fn;
338
- if (this._selectionModel) {
339
- this._initializeSelection();
340
- }
341
- }
342
- /** Value of the select control. */
343
- get value() {
344
- return this._value;
345
- }
346
- set value(newValue) {
347
- const hasAssigned = this._assignValue(newValue);
348
- if (hasAssigned) {
349
- this._onChange(newValue);
350
- }
351
- }
352
- /** Object used to control when error messages are shown. */
353
- get errorStateMatcher() {
354
- return this._errorStateTracker.matcher;
355
- }
356
- set errorStateMatcher(value) {
357
- this._errorStateTracker.matcher = value;
358
- }
359
- /** Unique id of the element. */
360
- get id() {
361
- return this._id;
362
- }
363
- set id(value) {
364
- this._id = value || this._uid;
365
- this.stateChanges.next();
366
- }
367
- /** Whether the select is in an error state. */
368
- get errorState() {
369
- return this._errorStateTracker.errorState;
370
- }
371
- set errorState(value) {
372
- this._errorStateTracker.errorState = value;
373
- }
374
- constructor(_viewportRuler, _changeDetectorRef, _unusedNgZone, defaultErrorStateMatcher, _elementRef, _dir, parentForm, parentFormGroup, _parentFormField, ngControl, tabIndex, scrollStrategyFactory, _liveAnnouncer, _defaultOptions) {
375
- this._viewportRuler = _viewportRuler;
376
- this._changeDetectorRef = _changeDetectorRef;
377
- this._elementRef = _elementRef;
378
- this._dir = _dir;
379
- this._parentFormField = _parentFormField;
380
- this.ngControl = ngControl;
381
- this._liveAnnouncer = _liveAnnouncer;
382
- this._defaultOptions = _defaultOptions;
383
- this._positions = [{
384
- originX: "start",
385
- originY: "bottom",
386
- overlayX: "start",
387
- overlayY: "top"
388
- }, {
389
- originX: "end",
390
- originY: "bottom",
391
- overlayX: "end",
392
- overlayY: "top"
393
- }, {
394
- originX: "start",
395
- originY: "top",
396
- overlayX: "start",
397
- overlayY: "bottom",
398
- panelClass: "mat-mdc-select-panel-above"
399
- }, {
400
- originX: "end",
401
- originY: "top",
402
- overlayX: "end",
403
- overlayY: "bottom",
404
- panelClass: "mat-mdc-select-panel-above"
405
- }];
406
- this._panelOpen = false;
407
- this._compareWith = (o1, o2) => o1 === o2;
408
- this._uid = `mat-select-${nextUniqueId++}`;
409
- this._triggerAriaLabelledBy = null;
410
- this._destroy = new Subject();
411
- this.stateChanges = new Subject();
412
- this.disableAutomaticLabeling = true;
413
- this._onChange = () => {
414
- };
415
- this._onTouched = () => {
416
- };
417
- this._valueId = `mat-select-value-${nextUniqueId++}`;
418
- this._panelDoneAnimatingStream = new Subject();
419
- this._overlayPanelClass = this._defaultOptions?.overlayPanelClass || "";
420
- this._focused = false;
421
- this.controlType = "mat-select";
422
- this.disabled = false;
423
- this.disableRipple = false;
424
- this.tabIndex = 0;
425
- this._hideSingleSelectionIndicator = this._defaultOptions?.hideSingleSelectionIndicator ?? false;
426
- this._multiple = false;
427
- this.disableOptionCentering = this._defaultOptions?.disableOptionCentering ?? false;
428
- this.ariaLabel = "";
429
- this.panelWidth = this._defaultOptions && typeof this._defaultOptions.panelWidth !== "undefined" ? this._defaultOptions.panelWidth : "auto";
430
- this._initialized = new Subject();
431
- this.optionSelectionChanges = defer(() => {
432
- const options = this.options;
433
- if (options) {
434
- return options.changes.pipe(startWith(options), switchMap(() => merge(...options.map((option) => option.onSelectionChange))));
435
- }
436
- return this._initialized.pipe(switchMap(() => this.optionSelectionChanges));
437
- });
438
- this.openedChange = new EventEmitter();
439
- this._openedStream = this.openedChange.pipe(filter((o) => o), map(() => {
440
- }));
441
- this._closedStream = this.openedChange.pipe(filter((o) => !o), map(() => {
442
- }));
443
- this.selectionChange = new EventEmitter();
444
- this.valueChange = new EventEmitter();
445
- this._trackedModal = null;
446
- this._skipPredicate = (option) => {
447
- if (this.panelOpen) {
448
- return false;
449
- }
450
- return option.disabled;
451
- };
452
- if (this.ngControl) {
453
- this.ngControl.valueAccessor = this;
454
- }
455
- if (_defaultOptions?.typeaheadDebounceInterval != null) {
456
- this.typeaheadDebounceInterval = _defaultOptions.typeaheadDebounceInterval;
457
- }
458
- this._errorStateTracker = new _ErrorStateTracker(defaultErrorStateMatcher, ngControl, parentFormGroup, parentForm, this.stateChanges);
459
- this._scrollStrategyFactory = scrollStrategyFactory;
460
- this._scrollStrategy = this._scrollStrategyFactory();
461
- this.tabIndex = parseInt(tabIndex) || 0;
462
- this.id = this.id;
463
- }
464
- ngOnInit() {
465
- this._selectionModel = new SelectionModel(this.multiple);
466
- this.stateChanges.next();
467
- this._panelDoneAnimatingStream.pipe(distinctUntilChanged(), takeUntil(this._destroy)).subscribe(() => this._panelDoneAnimating(this.panelOpen));
468
- this._viewportRuler.change().pipe(takeUntil(this._destroy)).subscribe(() => {
469
- if (this.panelOpen) {
470
- this._overlayWidth = this._getOverlayWidth(this._preferredOverlayOrigin);
471
- this._changeDetectorRef.detectChanges();
472
- }
473
- });
474
- }
475
- ngAfterContentInit() {
476
- this._initialized.next();
477
- this._initialized.complete();
478
- this._initKeyManager();
479
- this._selectionModel.changed.pipe(takeUntil(this._destroy)).subscribe((event) => {
480
- event.added.forEach((option) => option.select());
481
- event.removed.forEach((option) => option.deselect());
482
- });
483
- this.options.changes.pipe(startWith(null), takeUntil(this._destroy)).subscribe(() => {
484
- this._resetOptions();
485
- this._initializeSelection();
486
- });
487
- }
488
- ngDoCheck() {
489
- const newAriaLabelledby = this._getTriggerAriaLabelledby();
490
- const ngControl = this.ngControl;
491
- if (newAriaLabelledby !== this._triggerAriaLabelledBy) {
492
- const element = this._elementRef.nativeElement;
493
- this._triggerAriaLabelledBy = newAriaLabelledby;
494
- if (newAriaLabelledby) {
495
- element.setAttribute("aria-labelledby", newAriaLabelledby);
496
- } else {
497
- element.removeAttribute("aria-labelledby");
498
- }
499
- }
500
- if (ngControl) {
501
- if (this._previousControl !== ngControl.control) {
502
- if (this._previousControl !== void 0 && ngControl.disabled !== null && ngControl.disabled !== this.disabled) {
503
- this.disabled = ngControl.disabled;
504
- }
505
- this._previousControl = ngControl.control;
506
- }
507
- this.updateErrorState();
508
- }
509
- }
510
- ngOnChanges(changes) {
511
- if (changes["disabled"] || changes["userAriaDescribedBy"]) {
512
- this.stateChanges.next();
513
- }
514
- if (changes["typeaheadDebounceInterval"] && this._keyManager) {
515
- this._keyManager.withTypeAhead(this.typeaheadDebounceInterval);
516
- }
517
- }
518
- ngOnDestroy() {
519
- this._keyManager?.destroy();
520
- this._destroy.next();
521
- this._destroy.complete();
522
- this.stateChanges.complete();
523
- this._clearFromModal();
524
- }
525
- /** Toggles the overlay panel open or closed. */
526
- toggle() {
527
- this.panelOpen ? this.close() : this.open();
528
- }
529
- /** Opens the overlay panel. */
530
- open() {
531
- if (!this._canOpen()) {
532
- return;
533
- }
534
- if (this._parentFormField) {
535
- this._preferredOverlayOrigin = this._parentFormField.getConnectedOverlayOrigin();
536
- }
537
- this._overlayWidth = this._getOverlayWidth(this._preferredOverlayOrigin);
538
- this._applyModalPanelOwnership();
539
- this._panelOpen = true;
540
- this._keyManager.withHorizontalOrientation(null);
541
- this._highlightCorrectOption();
542
- this._changeDetectorRef.markForCheck();
543
- this.stateChanges.next();
544
- }
545
- /**
546
- * If the autocomplete trigger is inside of an `aria-modal` element, connect
547
- * that modal to the options panel with `aria-owns`.
548
- *
549
- * For some browser + screen reader combinations, when navigation is inside
550
- * of an `aria-modal` element, the screen reader treats everything outside
551
- * of that modal as hidden or invisible.
552
- *
553
- * This causes a problem when the combobox trigger is _inside_ of a modal, because the
554
- * options panel is rendered _outside_ of that modal, preventing screen reader navigation
555
- * from reaching the panel.
556
- *
557
- * We can work around this issue by applying `aria-owns` to the modal with the `id` of
558
- * the options panel. This effectively communicates to assistive technology that the
559
- * options panel is part of the same interaction as the modal.
560
- *
561
- * At time of this writing, this issue is present in VoiceOver.
562
- * See https://github.com/angular/components/issues/20694
563
- */
564
- _applyModalPanelOwnership() {
565
- const modal = this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');
566
- if (!modal) {
567
- return;
568
- }
569
- const panelId = `${this.id}-panel`;
570
- if (this._trackedModal) {
571
- removeAriaReferencedId(this._trackedModal, "aria-owns", panelId);
572
- }
573
- addAriaReferencedId(modal, "aria-owns", panelId);
574
- this._trackedModal = modal;
575
- }
576
- /** Clears the reference to the listbox overlay element from the modal it was added to. */
577
- _clearFromModal() {
578
- if (!this._trackedModal) {
579
- return;
580
- }
581
- const panelId = `${this.id}-panel`;
582
- removeAriaReferencedId(this._trackedModal, "aria-owns", panelId);
583
- this._trackedModal = null;
584
- }
585
- /** Closes the overlay panel and focuses the host element. */
586
- close() {
587
- if (this._panelOpen) {
588
- this._panelOpen = false;
589
- this._keyManager.withHorizontalOrientation(this._isRtl() ? "rtl" : "ltr");
590
- this._changeDetectorRef.markForCheck();
591
- this._onTouched();
592
- this.stateChanges.next();
593
- }
594
- }
595
- /**
596
- * Sets the select's value. Part of the ControlValueAccessor interface
597
- * required to integrate with Angular's core forms API.
598
- *
599
- * @param value New value to be written to the model.
600
- */
601
- writeValue(value) {
602
- this._assignValue(value);
603
- }
604
- /**
605
- * Saves a callback function to be invoked when the select's value
606
- * changes from user input. Part of the ControlValueAccessor interface
607
- * required to integrate with Angular's core forms API.
608
- *
609
- * @param fn Callback to be triggered when the value changes.
610
- */
611
- registerOnChange(fn) {
612
- this._onChange = fn;
613
- }
614
- /**
615
- * Saves a callback function to be invoked when the select is blurred
616
- * by the user. Part of the ControlValueAccessor interface required
617
- * to integrate with Angular's core forms API.
618
- *
619
- * @param fn Callback to be triggered when the component has been touched.
620
- */
621
- registerOnTouched(fn) {
622
- this._onTouched = fn;
623
- }
624
- /**
625
- * Disables the select. Part of the ControlValueAccessor interface required
626
- * to integrate with Angular's core forms API.
627
- *
628
- * @param isDisabled Sets whether the component is disabled.
629
- */
630
- setDisabledState(isDisabled) {
631
- this.disabled = isDisabled;
632
- this._changeDetectorRef.markForCheck();
633
- this.stateChanges.next();
634
- }
635
- /** Whether or not the overlay panel is open. */
636
- get panelOpen() {
637
- return this._panelOpen;
638
- }
639
- /** The currently selected option. */
640
- get selected() {
641
- return this.multiple ? this._selectionModel?.selected || [] : this._selectionModel?.selected[0];
642
- }
643
- /** The value displayed in the trigger. */
644
- get triggerValue() {
645
- if (this.empty) {
646
- return "";
647
- }
648
- if (this._multiple) {
649
- const selectedOptions = this._selectionModel.selected.map((option) => option.viewValue);
650
- if (this._isRtl()) {
651
- selectedOptions.reverse();
652
- }
653
- return selectedOptions.join(", ");
654
- }
655
- return this._selectionModel.selected[0].viewValue;
656
- }
657
- /** Refreshes the error state of the select. */
658
- updateErrorState() {
659
- this._errorStateTracker.updateErrorState();
660
- }
661
- /** Whether the element is in RTL mode. */
662
- _isRtl() {
663
- return this._dir ? this._dir.value === "rtl" : false;
664
- }
665
- /** Handles all keydown events on the select. */
666
- _handleKeydown(event) {
667
- if (!this.disabled) {
668
- this.panelOpen ? this._handleOpenKeydown(event) : this._handleClosedKeydown(event);
669
- }
670
- }
671
- /** Handles keyboard events while the select is closed. */
672
- _handleClosedKeydown(event) {
673
- const keyCode = event.keyCode;
674
- const isArrowKey = keyCode === DOWN_ARROW || keyCode === UP_ARROW || keyCode === LEFT_ARROW || keyCode === RIGHT_ARROW;
675
- const isOpenKey = keyCode === ENTER || keyCode === SPACE;
676
- const manager = this._keyManager;
677
- if (!manager.isTyping() && isOpenKey && !hasModifierKey(event) || (this.multiple || event.altKey) && isArrowKey) {
678
- event.preventDefault();
679
- this.open();
680
- } else if (!this.multiple) {
681
- const previouslySelectedOption = this.selected;
682
- manager.onKeydown(event);
683
- const selectedOption = this.selected;
684
- if (selectedOption && previouslySelectedOption !== selectedOption) {
685
- this._liveAnnouncer.announce(selectedOption.viewValue, 1e4);
686
- }
687
- }
688
- }
689
- /** Handles keyboard events when the selected is open. */
690
- _handleOpenKeydown(event) {
691
- const manager = this._keyManager;
692
- const keyCode = event.keyCode;
693
- const isArrowKey = keyCode === DOWN_ARROW || keyCode === UP_ARROW;
694
- const isTyping = manager.isTyping();
695
- if (isArrowKey && event.altKey) {
696
- event.preventDefault();
697
- this.close();
698
- } else if (!isTyping && (keyCode === ENTER || keyCode === SPACE) && manager.activeItem && !hasModifierKey(event)) {
699
- event.preventDefault();
700
- manager.activeItem._selectViaInteraction();
701
- } else if (!isTyping && this._multiple && keyCode === A && event.ctrlKey) {
702
- event.preventDefault();
703
- const hasDeselectedOptions = this.options.some((opt) => !opt.disabled && !opt.selected);
704
- this.options.forEach((option) => {
705
- if (!option.disabled) {
706
- hasDeselectedOptions ? option.select() : option.deselect();
707
- }
708
- });
709
- } else {
710
- const previouslyFocusedIndex = manager.activeItemIndex;
711
- manager.onKeydown(event);
712
- if (this._multiple && isArrowKey && event.shiftKey && manager.activeItem && manager.activeItemIndex !== previouslyFocusedIndex) {
713
- manager.activeItem._selectViaInteraction();
714
- }
715
- }
716
- }
717
- _onFocus() {
718
- if (!this.disabled) {
719
- this._focused = true;
720
- this.stateChanges.next();
721
- }
722
- }
723
- /**
724
- * Calls the touched callback only if the panel is closed. Otherwise, the trigger will
725
- * "blur" to the panel when it opens, causing a false positive.
726
- */
727
- _onBlur() {
728
- this._focused = false;
729
- this._keyManager?.cancelTypeahead();
730
- if (!this.disabled && !this.panelOpen) {
731
- this._onTouched();
732
- this._changeDetectorRef.markForCheck();
733
- this.stateChanges.next();
734
- }
735
- }
736
- /**
737
- * Callback that is invoked when the overlay panel has been attached.
738
- */
739
- _onAttached() {
740
- this._overlayDir.positionChange.pipe(take(1)).subscribe(() => {
741
- this._changeDetectorRef.detectChanges();
742
- this._positioningSettled();
743
- });
744
- }
745
- /** Returns the theme to be used on the panel. */
746
- _getPanelTheme() {
747
- return this._parentFormField ? `mat-${this._parentFormField.color}` : "";
748
- }
749
- /** Whether the select has a value. */
750
- get empty() {
751
- return !this._selectionModel || this._selectionModel.isEmpty();
752
- }
753
- _initializeSelection() {
754
- Promise.resolve().then(() => {
755
- if (this.ngControl) {
756
- this._value = this.ngControl.value;
757
- }
758
- this._setSelectionByValue(this._value);
759
- this.stateChanges.next();
760
- });
761
- }
762
- /**
763
- * Sets the selected option based on a value. If no option can be
764
- * found with the designated value, the select trigger is cleared.
765
- */
766
- _setSelectionByValue(value) {
767
- this.options.forEach((option) => option.setInactiveStyles());
768
- this._selectionModel.clear();
769
- if (this.multiple && value) {
770
- if (!Array.isArray(value) && (typeof ngDevMode === "undefined" || ngDevMode)) {
771
- throw getMatSelectNonArrayValueError();
772
- }
773
- value.forEach((currentValue) => this._selectOptionByValue(currentValue));
774
- this._sortValues();
775
- } else {
776
- const correspondingOption = this._selectOptionByValue(value);
777
- if (correspondingOption) {
778
- this._keyManager.updateActiveItem(correspondingOption);
779
- } else if (!this.panelOpen) {
780
- this._keyManager.updateActiveItem(-1);
781
- }
782
- }
783
- this._changeDetectorRef.markForCheck();
784
- }
785
- /**
786
- * Finds and selects and option based on its value.
787
- * @returns Option that has the corresponding value.
788
- */
789
- _selectOptionByValue(value) {
790
- const correspondingOption = this.options.find((option) => {
791
- if (this._selectionModel.isSelected(option)) {
792
- return false;
793
- }
794
- try {
795
- return option.value != null && this._compareWith(option.value, value);
796
- } catch (error) {
797
- if (typeof ngDevMode === "undefined" || ngDevMode) {
798
- console.warn(error);
799
- }
800
- return false;
801
- }
802
- });
803
- if (correspondingOption) {
804
- this._selectionModel.select(correspondingOption);
805
- }
806
- return correspondingOption;
807
- }
808
- /** Assigns a specific value to the select. Returns whether the value has changed. */
809
- _assignValue(newValue) {
810
- if (newValue !== this._value || this._multiple && Array.isArray(newValue)) {
811
- if (this.options) {
812
- this._setSelectionByValue(newValue);
813
- }
814
- this._value = newValue;
815
- return true;
816
- }
817
- return false;
818
- }
819
- /** Gets how wide the overlay panel should be. */
820
- _getOverlayWidth(preferredOrigin) {
821
- if (this.panelWidth === "auto") {
822
- const refToMeasure = preferredOrigin instanceof CdkOverlayOrigin ? preferredOrigin.elementRef : preferredOrigin || this._elementRef;
823
- return refToMeasure.nativeElement.getBoundingClientRect().width;
824
- }
825
- return this.panelWidth === null ? "" : this.panelWidth;
826
- }
827
- /** Syncs the parent state with the individual options. */
828
- _syncParentProperties() {
829
- if (this.options) {
830
- for (const option of this.options) {
831
- option._changeDetectorRef.markForCheck();
832
- }
833
- }
834
- }
835
- /** Sets up a key manager to listen to keyboard events on the overlay panel. */
836
- _initKeyManager() {
837
- this._keyManager = new ActiveDescendantKeyManager(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl() ? "rtl" : "ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate);
838
- this._keyManager.tabOut.subscribe(() => {
839
- if (this.panelOpen) {
840
- if (!this.multiple && this._keyManager.activeItem) {
841
- this._keyManager.activeItem._selectViaInteraction();
842
- }
843
- this.focus();
844
- this.close();
845
- }
846
- });
847
- this._keyManager.change.subscribe(() => {
848
- if (this._panelOpen && this.panel) {
849
- this._scrollOptionIntoView(this._keyManager.activeItemIndex || 0);
850
- } else if (!this._panelOpen && !this.multiple && this._keyManager.activeItem) {
851
- this._keyManager.activeItem._selectViaInteraction();
852
- }
853
- });
854
- }
855
- /** Drops current option subscriptions and IDs and resets from scratch. */
856
- _resetOptions() {
857
- const changedOrDestroyed = merge(this.options.changes, this._destroy);
858
- this.optionSelectionChanges.pipe(takeUntil(changedOrDestroyed)).subscribe((event) => {
859
- this._onSelect(event.source, event.isUserInput);
860
- if (event.isUserInput && !this.multiple && this._panelOpen) {
861
- this.close();
862
- this.focus();
863
- }
864
- });
865
- merge(...this.options.map((option) => option._stateChanges)).pipe(takeUntil(changedOrDestroyed)).subscribe(() => {
866
- this._changeDetectorRef.detectChanges();
867
- this.stateChanges.next();
868
- });
869
- }
870
- /** Invoked when an option is clicked. */
871
- _onSelect(option, isUserInput) {
872
- const wasSelected = this._selectionModel.isSelected(option);
873
- if (option.value == null && !this._multiple) {
874
- option.deselect();
875
- this._selectionModel.clear();
876
- if (this.value != null) {
877
- this._propagateChanges(option.value);
878
- }
879
- } else {
880
- if (wasSelected !== option.selected) {
881
- option.selected ? this._selectionModel.select(option) : this._selectionModel.deselect(option);
882
- }
883
- if (isUserInput) {
884
- this._keyManager.setActiveItem(option);
885
- }
886
- if (this.multiple) {
887
- this._sortValues();
888
- if (isUserInput) {
889
- this.focus();
890
- }
891
- }
892
- }
893
- if (wasSelected !== this._selectionModel.isSelected(option)) {
894
- this._propagateChanges();
895
- }
896
- this.stateChanges.next();
897
- }
898
- /** Sorts the selected values in the selected based on their order in the panel. */
899
- _sortValues() {
900
- if (this.multiple) {
901
- const options = this.options.toArray();
902
- this._selectionModel.sort((a, b) => {
903
- return this.sortComparator ? this.sortComparator(a, b, options) : options.indexOf(a) - options.indexOf(b);
904
- });
905
- this.stateChanges.next();
906
- }
907
- }
908
- /** Emits change event to set the model value. */
909
- _propagateChanges(fallbackValue) {
910
- let valueToEmit;
911
- if (this.multiple) {
912
- valueToEmit = this.selected.map((option) => option.value);
913
- } else {
914
- valueToEmit = this.selected ? this.selected.value : fallbackValue;
915
- }
916
- this._value = valueToEmit;
917
- this.valueChange.emit(valueToEmit);
918
- this._onChange(valueToEmit);
919
- this.selectionChange.emit(this._getChangeEvent(valueToEmit));
920
- this._changeDetectorRef.markForCheck();
921
- }
922
- /**
923
- * Highlights the selected item. If no option is selected, it will highlight
924
- * the first *enabled* option.
925
- */
926
- _highlightCorrectOption() {
927
- if (this._keyManager) {
928
- if (this.empty) {
929
- let firstEnabledOptionIndex = -1;
930
- for (let index = 0; index < this.options.length; index++) {
931
- const option = this.options.get(index);
932
- if (!option.disabled) {
933
- firstEnabledOptionIndex = index;
934
- break;
935
- }
936
- }
937
- this._keyManager.setActiveItem(firstEnabledOptionIndex);
938
- } else {
939
- this._keyManager.setActiveItem(this._selectionModel.selected[0]);
940
- }
941
- }
942
- }
943
- /** Whether the panel is allowed to open. */
944
- _canOpen() {
945
- return !this._panelOpen && !this.disabled && this.options?.length > 0;
946
- }
947
- /** Focuses the select element. */
948
- focus(options) {
949
- this._elementRef.nativeElement.focus(options);
950
- }
951
- /** Gets the aria-labelledby for the select panel. */
952
- _getPanelAriaLabelledby() {
953
- if (this.ariaLabel) {
954
- return null;
955
- }
956
- const labelId = this._parentFormField?.getLabelId();
957
- const labelExpression = labelId ? labelId + " " : "";
958
- return this.ariaLabelledby ? labelExpression + this.ariaLabelledby : labelId;
959
- }
960
- /** Determines the `aria-activedescendant` to be set on the host. */
961
- _getAriaActiveDescendant() {
962
- if (this.panelOpen && this._keyManager && this._keyManager.activeItem) {
963
- return this._keyManager.activeItem.id;
964
- }
965
- return null;
966
- }
967
- /** Gets the aria-labelledby of the select component trigger. */
968
- _getTriggerAriaLabelledby() {
969
- if (this.ariaLabel) {
970
- return null;
971
- }
972
- const labelId = this._parentFormField?.getLabelId();
973
- let value = (labelId ? labelId + " " : "") + this._valueId;
974
- if (this.ariaLabelledby) {
975
- value += " " + this.ariaLabelledby;
976
- }
977
- return value;
978
- }
979
- /** Called when the overlay panel is done animating. */
980
- _panelDoneAnimating(isOpen) {
981
- this.openedChange.emit(isOpen);
982
- }
983
- /**
984
- * Implemented as part of MatFormFieldControl.
985
- * @docs-private
986
- */
987
- setDescribedByIds(ids) {
988
- if (ids.length) {
989
- this._elementRef.nativeElement.setAttribute("aria-describedby", ids.join(" "));
990
- } else {
991
- this._elementRef.nativeElement.removeAttribute("aria-describedby");
992
- }
993
- }
994
- /**
995
- * Implemented as part of MatFormFieldControl.
996
- * @docs-private
997
- */
998
- onContainerClick() {
999
- this.focus();
1000
- this.open();
1001
- }
1002
- /**
1003
- * Implemented as part of MatFormFieldControl.
1004
- * @docs-private
1005
- */
1006
- get shouldLabelFloat() {
1007
- return this.panelOpen || !this.empty || this.focused && !!this.placeholder;
1008
- }
1009
- static {
1010
- this.ɵfac = function MatSelect_Factory(__ngFactoryType__) {
1011
- return new (__ngFactoryType__ || _MatSelect)(ɵɵdirectiveInject(ViewportRuler), ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(NgZone), ɵɵdirectiveInject(ErrorStateMatcher), ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(Directionality, 8), ɵɵdirectiveInject(NgForm, 8), ɵɵdirectiveInject(FormGroupDirective, 8), ɵɵdirectiveInject(MAT_FORM_FIELD, 8), ɵɵdirectiveInject(NgControl, 10), ɵɵinjectAttribute("tabindex"), ɵɵdirectiveInject(MAT_SELECT_SCROLL_STRATEGY), ɵɵdirectiveInject(LiveAnnouncer), ɵɵdirectiveInject(MAT_SELECT_CONFIG, 8));
1012
- };
1013
- }
1014
- static {
1015
- this.ɵcmp = ɵɵdefineComponent({
1016
- type: _MatSelect,
1017
- selectors: [["mat-select"]],
1018
- contentQueries: function MatSelect_ContentQueries(rf, ctx, dirIndex) {
1019
- if (rf & 1) {
1020
- ɵɵcontentQuery(dirIndex, MAT_SELECT_TRIGGER, 5);
1021
- ɵɵcontentQuery(dirIndex, MatOption, 5);
1022
- ɵɵcontentQuery(dirIndex, MAT_OPTGROUP, 5);
1023
- }
1024
- if (rf & 2) {
1025
- let _t;
1026
- ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.customTrigger = _t.first);
1027
- ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.options = _t);
1028
- ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.optionGroups = _t);
1029
- }
1030
- },
1031
- viewQuery: function MatSelect_Query(rf, ctx) {
1032
- if (rf & 1) {
1033
- ɵɵviewQuery(_c0, 5);
1034
- ɵɵviewQuery(_c1, 5);
1035
- ɵɵviewQuery(CdkConnectedOverlay, 5);
1036
- }
1037
- if (rf & 2) {
1038
- let _t;
1039
- ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.trigger = _t.first);
1040
- ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.panel = _t.first);
1041
- ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx._overlayDir = _t.first);
1042
- }
1043
- },
1044
- hostAttrs: ["role", "combobox", "aria-haspopup", "listbox", 1, "mat-mdc-select"],
1045
- hostVars: 19,
1046
- hostBindings: function MatSelect_HostBindings(rf, ctx) {
1047
- if (rf & 1) {
1048
- ɵɵlistener("keydown", function MatSelect_keydown_HostBindingHandler($event) {
1049
- return ctx._handleKeydown($event);
1050
- })("focus", function MatSelect_focus_HostBindingHandler() {
1051
- return ctx._onFocus();
1052
- })("blur", function MatSelect_blur_HostBindingHandler() {
1053
- return ctx._onBlur();
1054
- });
1055
- }
1056
- if (rf & 2) {
1057
- ɵɵattribute("id", ctx.id)("tabindex", ctx.disabled ? -1 : ctx.tabIndex)("aria-controls", ctx.panelOpen ? ctx.id + "-panel" : null)("aria-expanded", ctx.panelOpen)("aria-label", ctx.ariaLabel || null)("aria-required", ctx.required.toString())("aria-disabled", ctx.disabled.toString())("aria-invalid", ctx.errorState)("aria-activedescendant", ctx._getAriaActiveDescendant());
1058
- ɵɵclassProp("mat-mdc-select-disabled", ctx.disabled)("mat-mdc-select-invalid", ctx.errorState)("mat-mdc-select-required", ctx.required)("mat-mdc-select-empty", ctx.empty)("mat-mdc-select-multiple", ctx.multiple);
1059
- }
1060
- },
1061
- inputs: {
1062
- userAriaDescribedBy: [0, "aria-describedby", "userAriaDescribedBy"],
1063
- panelClass: "panelClass",
1064
- disabled: [2, "disabled", "disabled", booleanAttribute],
1065
- disableRipple: [2, "disableRipple", "disableRipple", booleanAttribute],
1066
- tabIndex: [2, "tabIndex", "tabIndex", (value) => value == null ? 0 : numberAttribute(value)],
1067
- hideSingleSelectionIndicator: [2, "hideSingleSelectionIndicator", "hideSingleSelectionIndicator", booleanAttribute],
1068
- placeholder: "placeholder",
1069
- required: [2, "required", "required", booleanAttribute],
1070
- multiple: [2, "multiple", "multiple", booleanAttribute],
1071
- disableOptionCentering: [2, "disableOptionCentering", "disableOptionCentering", booleanAttribute],
1072
- compareWith: "compareWith",
1073
- value: "value",
1074
- ariaLabel: [0, "aria-label", "ariaLabel"],
1075
- ariaLabelledby: [0, "aria-labelledby", "ariaLabelledby"],
1076
- errorStateMatcher: "errorStateMatcher",
1077
- typeaheadDebounceInterval: [2, "typeaheadDebounceInterval", "typeaheadDebounceInterval", numberAttribute],
1078
- sortComparator: "sortComparator",
1079
- id: "id",
1080
- panelWidth: "panelWidth"
1081
- },
1082
- outputs: {
1083
- openedChange: "openedChange",
1084
- _openedStream: "opened",
1085
- _closedStream: "closed",
1086
- selectionChange: "selectionChange",
1087
- valueChange: "valueChange"
1088
- },
1089
- exportAs: ["matSelect"],
1090
- standalone: true,
1091
- features: [ɵɵProvidersFeature([{
1092
- provide: MatFormFieldControl,
1093
- useExisting: _MatSelect
1094
- }, {
1095
- provide: MAT_OPTION_PARENT_COMPONENT,
1096
- useExisting: _MatSelect
1097
- }]), ɵɵInputTransformsFeature, ɵɵNgOnChangesFeature, ɵɵStandaloneFeature],
1098
- ngContentSelectors: _c3,
1099
- decls: 11,
1100
- vars: 8,
1101
- consts: [["fallbackOverlayOrigin", "cdkOverlayOrigin", "trigger", ""], ["panel", ""], ["cdk-overlay-origin", "", 1, "mat-mdc-select-trigger", 3, "click"], [1, "mat-mdc-select-value"], [1, "mat-mdc-select-placeholder", "mat-mdc-select-min-line"], [1, "mat-mdc-select-value-text"], [1, "mat-mdc-select-arrow-wrapper"], [1, "mat-mdc-select-arrow"], ["viewBox", "0 0 24 24", "width", "24px", "height", "24px", "focusable", "false", "aria-hidden", "true"], ["d", "M7 10l5 5 5-5z"], ["cdk-connected-overlay", "", "cdkConnectedOverlayLockPosition", "", "cdkConnectedOverlayHasBackdrop", "", "cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop", 3, "backdropClick", "attach", "detach", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayPositions", "cdkConnectedOverlayWidth"], [1, "mat-mdc-select-min-line"], ["role", "listbox", "tabindex", "-1", 3, "keydown", "ngClass"]],
1102
- template: function MatSelect_Template(rf, ctx) {
1103
- if (rf & 1) {
1104
- const _r1 = ɵɵgetCurrentView();
1105
- ɵɵprojectionDef(_c2);
1106
- ɵɵelementStart(0, "div", 2, 0);
1107
- ɵɵlistener("click", function MatSelect_Template_div_click_0_listener() {
1108
- ɵɵrestoreView(_r1);
1109
- return ɵɵresetView(ctx.open());
1110
- });
1111
- ɵɵelementStart(3, "div", 3);
1112
- ɵɵtemplate(4, MatSelect_Conditional_4_Template, 2, 1, "span", 4)(5, MatSelect_Conditional_5_Template, 3, 1, "span", 5);
1113
- ɵɵelementEnd();
1114
- ɵɵelementStart(6, "div", 6)(7, "div", 7);
1115
- ɵɵnamespaceSVG();
1116
- ɵɵelementStart(8, "svg", 8);
1117
- ɵɵelement(9, "path", 9);
1118
- ɵɵelementEnd()()()();
1119
- ɵɵtemplate(10, MatSelect_ng_template_10_Template, 3, 9, "ng-template", 10);
1120
- ɵɵlistener("backdropClick", function MatSelect_Template_ng_template_backdropClick_10_listener() {
1121
- ɵɵrestoreView(_r1);
1122
- return ɵɵresetView(ctx.close());
1123
- })("attach", function MatSelect_Template_ng_template_attach_10_listener() {
1124
- ɵɵrestoreView(_r1);
1125
- return ɵɵresetView(ctx._onAttached());
1126
- })("detach", function MatSelect_Template_ng_template_detach_10_listener() {
1127
- ɵɵrestoreView(_r1);
1128
- return ɵɵresetView(ctx.close());
1129
- });
1130
- }
1131
- if (rf & 2) {
1132
- const fallbackOverlayOrigin_r4 = ɵɵreference(1);
1133
- ɵɵadvance(3);
1134
- ɵɵattribute("id", ctx._valueId);
1135
- ɵɵadvance();
1136
- ɵɵconditional(ctx.empty ? 4 : 5);
1137
- ɵɵadvance(6);
1138
- ɵɵproperty("cdkConnectedOverlayPanelClass", ctx._overlayPanelClass)("cdkConnectedOverlayScrollStrategy", ctx._scrollStrategy)("cdkConnectedOverlayOrigin", ctx._preferredOverlayOrigin || fallbackOverlayOrigin_r4)("cdkConnectedOverlayOpen", ctx.panelOpen)("cdkConnectedOverlayPositions", ctx._positions)("cdkConnectedOverlayWidth", ctx._overlayWidth);
1139
- }
1140
- },
1141
- dependencies: [CdkOverlayOrigin, CdkConnectedOverlay, NgClass],
1142
- styles: ['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-app-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-app-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-app-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-app-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-app-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-app-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-app-surface-container))}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-app-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],
1143
- encapsulation: 2,
1144
- data: {
1145
- animation: [matSelectAnimations.transformPanel]
1146
- },
1147
- changeDetection: 0
1148
- });
1149
- }
1150
- };
1151
- (() => {
1152
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatSelect, [{
1153
- type: Component,
1154
- args: [{
1155
- selector: "mat-select",
1156
- exportAs: "matSelect",
1157
- encapsulation: ViewEncapsulation$1.None,
1158
- changeDetection: ChangeDetectionStrategy.OnPush,
1159
- host: {
1160
- "role": "combobox",
1161
- "aria-haspopup": "listbox",
1162
- "class": "mat-mdc-select",
1163
- "[attr.id]": "id",
1164
- "[attr.tabindex]": "disabled ? -1 : tabIndex",
1165
- "[attr.aria-controls]": 'panelOpen ? id + "-panel" : null',
1166
- "[attr.aria-expanded]": "panelOpen",
1167
- "[attr.aria-label]": "ariaLabel || null",
1168
- "[attr.aria-required]": "required.toString()",
1169
- "[attr.aria-disabled]": "disabled.toString()",
1170
- "[attr.aria-invalid]": "errorState",
1171
- "[attr.aria-activedescendant]": "_getAriaActiveDescendant()",
1172
- "[class.mat-mdc-select-disabled]": "disabled",
1173
- "[class.mat-mdc-select-invalid]": "errorState",
1174
- "[class.mat-mdc-select-required]": "required",
1175
- "[class.mat-mdc-select-empty]": "empty",
1176
- "[class.mat-mdc-select-multiple]": "multiple",
1177
- "(keydown)": "_handleKeydown($event)",
1178
- "(focus)": "_onFocus()",
1179
- "(blur)": "_onBlur()"
1180
- },
1181
- animations: [matSelectAnimations.transformPanel],
1182
- providers: [{
1183
- provide: MatFormFieldControl,
1184
- useExisting: MatSelect
1185
- }, {
1186
- provide: MAT_OPTION_PARENT_COMPONENT,
1187
- useExisting: MatSelect
1188
- }],
1189
- standalone: true,
1190
- imports: [CdkOverlayOrigin, CdkConnectedOverlay, NgClass],
1191
- template: `<div cdk-overlay-origin
1192
- class="mat-mdc-select-trigger"
1193
- (click)="open()"
1194
- #fallbackOverlayOrigin="cdkOverlayOrigin"
1195
- #trigger>
1196
-
1197
- <div class="mat-mdc-select-value" [attr.id]="_valueId">
1198
- @if (empty) {
1199
- <span class="mat-mdc-select-placeholder mat-mdc-select-min-line">{{placeholder}}</span>
1200
- } @else {
1201
- <span class="mat-mdc-select-value-text">
1202
- @if (customTrigger) {
1203
- <ng-content select="mat-select-trigger"></ng-content>
1204
- } @else {
1205
- <span class="mat-mdc-select-min-line">{{triggerValue}}</span>
1206
- }
1207
- </span>
1208
- }
1209
- </div>
1210
-
1211
- <div class="mat-mdc-select-arrow-wrapper">
1212
- <div class="mat-mdc-select-arrow">
1213
- <!-- Use an inline SVG, because it works better than a CSS triangle in high contrast mode. -->
1214
- <svg viewBox="0 0 24 24" width="24px" height="24px" focusable="false" aria-hidden="true">
1215
- <path d="M7 10l5 5 5-5z"/>
1216
- </svg>
1217
- </div>
1218
- </div>
1219
- </div>
1220
-
1221
- <ng-template
1222
- cdk-connected-overlay
1223
- cdkConnectedOverlayLockPosition
1224
- cdkConnectedOverlayHasBackdrop
1225
- cdkConnectedOverlayBackdropClass="cdk-overlay-transparent-backdrop"
1226
- [cdkConnectedOverlayPanelClass]="_overlayPanelClass"
1227
- [cdkConnectedOverlayScrollStrategy]="_scrollStrategy"
1228
- [cdkConnectedOverlayOrigin]="_preferredOverlayOrigin || fallbackOverlayOrigin"
1229
- [cdkConnectedOverlayOpen]="panelOpen"
1230
- [cdkConnectedOverlayPositions]="_positions"
1231
- [cdkConnectedOverlayWidth]="_overlayWidth"
1232
- (backdropClick)="close()"
1233
- (attach)="_onAttached()"
1234
- (detach)="close()">
1235
- <div
1236
- #panel
1237
- role="listbox"
1238
- tabindex="-1"
1239
- class="mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open {{ _getPanelTheme() }}"
1240
- [attr.id]="id + '-panel'"
1241
- [attr.aria-multiselectable]="multiple"
1242
- [attr.aria-label]="ariaLabel || null"
1243
- [attr.aria-labelledby]="_getPanelAriaLabelledby()"
1244
- [ngClass]="panelClass"
1245
- [@transformPanel]="'showing'"
1246
- (@transformPanel.done)="_panelDoneAnimatingStream.next($event.toState)"
1247
- (keydown)="_handleKeydown($event)">
1248
- <ng-content></ng-content>
1249
- </div>
1250
- </ng-template>
1251
- `,
1252
- styles: ['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-app-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-app-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-app-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-app-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-app-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-app-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-app-surface-container))}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-app-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}']
1253
- }]
1254
- }], () => [{
1255
- type: ViewportRuler
1256
- }, {
1257
- type: ChangeDetectorRef
1258
- }, {
1259
- type: NgZone
1260
- }, {
1261
- type: ErrorStateMatcher
1262
- }, {
1263
- type: ElementRef
1264
- }, {
1265
- type: Directionality,
1266
- decorators: [{
1267
- type: Optional
1268
- }]
1269
- }, {
1270
- type: NgForm,
1271
- decorators: [{
1272
- type: Optional
1273
- }]
1274
- }, {
1275
- type: FormGroupDirective,
1276
- decorators: [{
1277
- type: Optional
1278
- }]
1279
- }, {
1280
- type: MatFormField,
1281
- decorators: [{
1282
- type: Optional
1283
- }, {
1284
- type: Inject,
1285
- args: [MAT_FORM_FIELD]
1286
- }]
1287
- }, {
1288
- type: NgControl,
1289
- decorators: [{
1290
- type: Self
1291
- }, {
1292
- type: Optional
1293
- }]
1294
- }, {
1295
- type: void 0,
1296
- decorators: [{
1297
- type: Attribute,
1298
- args: ["tabindex"]
1299
- }]
1300
- }, {
1301
- type: void 0,
1302
- decorators: [{
1303
- type: Inject,
1304
- args: [MAT_SELECT_SCROLL_STRATEGY]
1305
- }]
1306
- }, {
1307
- type: LiveAnnouncer
1308
- }, {
1309
- type: void 0,
1310
- decorators: [{
1311
- type: Optional
1312
- }, {
1313
- type: Inject,
1314
- args: [MAT_SELECT_CONFIG]
1315
- }]
1316
- }], {
1317
- options: [{
1318
- type: ContentChildren,
1319
- args: [MatOption, {
1320
- descendants: true
1321
- }]
1322
- }],
1323
- optionGroups: [{
1324
- type: ContentChildren,
1325
- args: [MAT_OPTGROUP, {
1326
- descendants: true
1327
- }]
1328
- }],
1329
- customTrigger: [{
1330
- type: ContentChild,
1331
- args: [MAT_SELECT_TRIGGER]
1332
- }],
1333
- userAriaDescribedBy: [{
1334
- type: Input,
1335
- args: ["aria-describedby"]
1336
- }],
1337
- trigger: [{
1338
- type: ViewChild,
1339
- args: ["trigger"]
1340
- }],
1341
- panel: [{
1342
- type: ViewChild,
1343
- args: ["panel"]
1344
- }],
1345
- _overlayDir: [{
1346
- type: ViewChild,
1347
- args: [CdkConnectedOverlay]
1348
- }],
1349
- panelClass: [{
1350
- type: Input
1351
- }],
1352
- disabled: [{
1353
- type: Input,
1354
- args: [{
1355
- transform: booleanAttribute
1356
- }]
1357
- }],
1358
- disableRipple: [{
1359
- type: Input,
1360
- args: [{
1361
- transform: booleanAttribute
1362
- }]
1363
- }],
1364
- tabIndex: [{
1365
- type: Input,
1366
- args: [{
1367
- transform: (value) => value == null ? 0 : numberAttribute(value)
1368
- }]
1369
- }],
1370
- hideSingleSelectionIndicator: [{
1371
- type: Input,
1372
- args: [{
1373
- transform: booleanAttribute
1374
- }]
1375
- }],
1376
- placeholder: [{
1377
- type: Input
1378
- }],
1379
- required: [{
1380
- type: Input,
1381
- args: [{
1382
- transform: booleanAttribute
1383
- }]
1384
- }],
1385
- multiple: [{
1386
- type: Input,
1387
- args: [{
1388
- transform: booleanAttribute
1389
- }]
1390
- }],
1391
- disableOptionCentering: [{
1392
- type: Input,
1393
- args: [{
1394
- transform: booleanAttribute
1395
- }]
1396
- }],
1397
- compareWith: [{
1398
- type: Input
1399
- }],
1400
- value: [{
1401
- type: Input
1402
- }],
1403
- ariaLabel: [{
1404
- type: Input,
1405
- args: ["aria-label"]
1406
- }],
1407
- ariaLabelledby: [{
1408
- type: Input,
1409
- args: ["aria-labelledby"]
1410
- }],
1411
- errorStateMatcher: [{
1412
- type: Input
1413
- }],
1414
- typeaheadDebounceInterval: [{
1415
- type: Input,
1416
- args: [{
1417
- transform: numberAttribute
1418
- }]
1419
- }],
1420
- sortComparator: [{
1421
- type: Input
1422
- }],
1423
- id: [{
1424
- type: Input
1425
- }],
1426
- panelWidth: [{
1427
- type: Input
1428
- }],
1429
- openedChange: [{
1430
- type: Output
1431
- }],
1432
- _openedStream: [{
1433
- type: Output,
1434
- args: ["opened"]
1435
- }],
1436
- _closedStream: [{
1437
- type: Output,
1438
- args: ["closed"]
1439
- }],
1440
- selectionChange: [{
1441
- type: Output
1442
- }],
1443
- valueChange: [{
1444
- type: Output
1445
- }]
1446
- });
1447
- })();
1448
- var MatSelectTrigger = class _MatSelectTrigger {
1449
- static {
1450
- this.ɵfac = function MatSelectTrigger_Factory(__ngFactoryType__) {
1451
- return new (__ngFactoryType__ || _MatSelectTrigger)();
1452
- };
1453
- }
1454
- static {
1455
- this.ɵdir = ɵɵdefineDirective({
1456
- type: _MatSelectTrigger,
1457
- selectors: [["mat-select-trigger"]],
1458
- standalone: true,
1459
- features: [ɵɵProvidersFeature([{
1460
- provide: MAT_SELECT_TRIGGER,
1461
- useExisting: _MatSelectTrigger
1462
- }])]
1463
- });
1464
- }
1465
- };
1466
- (() => {
1467
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatSelectTrigger, [{
1468
- type: Directive,
1469
- args: [{
1470
- selector: "mat-select-trigger",
1471
- providers: [{
1472
- provide: MAT_SELECT_TRIGGER,
1473
- useExisting: MatSelectTrigger
1474
- }],
1475
- standalone: true
1476
- }]
1477
- }], null, null);
1478
- })();
1479
- var MatSelectModule = class _MatSelectModule {
1480
- static {
1481
- this.ɵfac = function MatSelectModule_Factory(__ngFactoryType__) {
1482
- return new (__ngFactoryType__ || _MatSelectModule)();
1483
- };
1484
- }
1485
- static {
1486
- this.ɵmod = ɵɵdefineNgModule({
1487
- type: _MatSelectModule,
1488
- imports: [CommonModule, OverlayModule, MatOptionModule, MatCommonModule, MatSelect, MatSelectTrigger],
1489
- exports: [CdkScrollableModule, MatFormFieldModule, MatSelect, MatSelectTrigger, MatOptionModule, MatCommonModule]
1490
- });
1491
- }
1492
- static {
1493
- this.ɵinj = ɵɵdefineInjector({
1494
- providers: [MAT_SELECT_SCROLL_STRATEGY_PROVIDER],
1495
- imports: [CommonModule, OverlayModule, MatOptionModule, MatCommonModule, CdkScrollableModule, MatFormFieldModule, MatOptionModule, MatCommonModule]
1496
- });
1497
- }
1498
- };
1499
- (() => {
1500
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatSelectModule, [{
1501
- type: NgModule,
1502
- args: [{
1503
- imports: [CommonModule, OverlayModule, MatOptionModule, MatCommonModule, MatSelect, MatSelectTrigger],
1504
- exports: [CdkScrollableModule, MatFormFieldModule, MatSelect, MatSelectTrigger, MatOptionModule, MatCommonModule],
1505
- providers: [MAT_SELECT_SCROLL_STRATEGY_PROVIDER]
1506
- }]
1507
- }], null, null);
1508
- })();
1509
- export {
1510
- MAT_SELECT_CONFIG,
1511
- MAT_SELECT_SCROLL_STRATEGY,
1512
- MAT_SELECT_SCROLL_STRATEGY_PROVIDER,
1513
- MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY,
1514
- MAT_SELECT_TRIGGER,
1515
- MatError,
1516
- MatFormField,
1517
- MatHint,
1518
- MatLabel,
1519
- MatOptgroup,
1520
- MatOption,
1521
- MatPrefix,
1522
- MatSelect,
1523
- MatSelectChange,
1524
- MatSelectModule,
1525
- MatSelectTrigger,
1526
- MatSuffix,
1527
- matSelectAnimations
1528
- };
1529
- //# sourceMappingURL=@angular_material_select.js.map