marketplacepos 2.2.8 → 2.3.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 (74) hide show
  1. package/Marketplace/126.9c69aee32875d325.js +1 -0
  2. package/Marketplace/185.1b988f70ad8b4f58.js +1 -0
  3. package/Marketplace/22.3829c474fb5bad35.js +1 -0
  4. package/Marketplace/231.231da11ec44f3fe8.js +1 -0
  5. package/Marketplace/285.17f6cbef78acd327.js +1 -0
  6. package/Marketplace/3rdpartylicenses.txt +490 -0
  7. package/Marketplace/46.502e626256bc5b7c.js +1 -0
  8. package/Marketplace/472.974dc0a1dade2b29.js +1 -0
  9. package/Marketplace/512.eddb4675a9016de6.js +1 -0
  10. package/Marketplace/518.3ea4f72f7ca0ce3c.js +1 -0
  11. package/Marketplace/585.c93552ac67f4550c.js +1 -0
  12. package/Marketplace/6.fc79ecc0c0a33462.js +1 -0
  13. package/Marketplace/616.507588c0a5d7b9e1.js +1 -0
  14. package/Marketplace/717.62ca448a74adc1c2.js +1 -0
  15. package/Marketplace/739.82b92600f9519019.js +1 -0
  16. package/Marketplace/763.42fa4c0d665819d3.js +1 -0
  17. package/Marketplace/767.0ce42314dea8dfea.js +1 -0
  18. package/Marketplace/796.3be8ad424aad7864.js +1 -0
  19. package/Marketplace/common.34d3e7dcd2b85c7a.js +1 -0
  20. package/Marketplace/index.html +22 -23
  21. package/Marketplace/main.6481a1f35d927562.js +1 -0
  22. package/Marketplace/polyfills.8d85b0533e3f867a.js +1 -0
  23. package/Marketplace/runtime.307954efca5e3eeb.js +1 -0
  24. package/Marketplace/scripts.512baec01df5d79f.js +1 -0
  25. package/Marketplace/styles.d8aa52b2e9cd02ae.css +39 -0
  26. package/package.json +1 -1
  27. package/Marketplace/common.js +0 -46
  28. package/Marketplace/common.js.map +0 -1
  29. package/Marketplace/default-node_modules_angular_forms_fesm2020_forms_mjs.js +0 -9551
  30. package/Marketplace/default-node_modules_angular_forms_fesm2020_forms_mjs.js.map +0 -1
  31. package/Marketplace/default-node_modules_angular_material_fesm2020_paginator_mjs.js +0 -797
  32. package/Marketplace/default-node_modules_angular_material_fesm2020_paginator_mjs.js.map +0 -1
  33. package/Marketplace/default-node_modules_ng-select_ng-select_fesm2020_ng-select-ng-select_mjs.js +0 -4632
  34. package/Marketplace/default-node_modules_ng-select_ng-select_fesm2020_ng-select-ng-select_mjs.js.map +0 -1
  35. package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_date-e7a231.js +0 -6836
  36. package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_date-e7a231.js.map +0 -1
  37. package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_slid-566c11.js +0 -722
  38. package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_slid-566c11.js.map +0 -1
  39. package/Marketplace/default-src_app_sharing-module_datepicker_datepicker_component_ts.js +0 -19951
  40. package/Marketplace/default-src_app_sharing-module_datepicker_datepicker_component_ts.js.map +0 -1
  41. package/Marketplace/main.js +0 -617
  42. package/Marketplace/main.js.map +0 -1
  43. package/Marketplace/polyfills.js +0 -3398
  44. package/Marketplace/polyfills.js.map +0 -1
  45. package/Marketplace/runtime.js +0 -346
  46. package/Marketplace/runtime.js.map +0 -1
  47. package/Marketplace/scripts.js +0 -2634
  48. package/Marketplace/scripts.js.map +0 -1
  49. package/Marketplace/src_app_login_login_module_ts.js +0 -538
  50. package/Marketplace/src_app_login_login_module_ts.js.map +0 -1
  51. package/Marketplace/src_app_menu_ReportOrder_report_module_ts.js +0 -1060
  52. package/Marketplace/src_app_menu_ReportOrder_report_module_ts.js.map +0 -1
  53. package/Marketplace/src_app_menu_channels_channels_module_ts.js +0 -9710
  54. package/Marketplace/src_app_menu_channels_channels_module_ts.js.map +0 -1
  55. package/Marketplace/src_app_menu_inventory_inventory_module_ts.js +0 -1069
  56. package/Marketplace/src_app_menu_inventory_inventory_module_ts.js.map +0 -1
  57. package/Marketplace/src_app_menu_logistic_logistic_module_ts.js +0 -232
  58. package/Marketplace/src_app_menu_logistic_logistic_module_ts.js.map +0 -1
  59. package/Marketplace/src_app_menu_menu_module_ts.js +0 -38973
  60. package/Marketplace/src_app_menu_menu_module_ts.js.map +0 -1
  61. package/Marketplace/src_app_menu_notification_notification_module_ts.js +0 -192
  62. package/Marketplace/src_app_menu_notification_notification_module_ts.js.map +0 -1
  63. package/Marketplace/src_app_menu_object-log_logs_module_ts.js +0 -1997
  64. package/Marketplace/src_app_menu_object-log_logs_module_ts.js.map +0 -1
  65. package/Marketplace/src_app_menu_orders_orders_module_ts.js +0 -2449
  66. package/Marketplace/src_app_menu_orders_orders_module_ts.js.map +0 -1
  67. package/Marketplace/src_app_menu_price_price_module_ts.js +0 -1713
  68. package/Marketplace/src_app_menu_price_price_module_ts.js.map +0 -1
  69. package/Marketplace/src_app_menu_products_product_module_ts.js +0 -2196
  70. package/Marketplace/src_app_menu_products_product_module_ts.js.map +0 -1
  71. package/Marketplace/styles.css +0 -30612
  72. package/Marketplace/styles.css.map +0 -1
  73. package/Marketplace/vendor.js +0 -71753
  74. package/Marketplace/vendor.js.map +0 -1
@@ -1,4632 +0,0 @@
1
- "use strict";
2
- (self["webpackChunkpos_marketplace"] = self["webpackChunkpos_marketplace"] || []).push([["default-node_modules_ng-select_ng-select_fesm2020_ng-select-ng-select_mjs"],{
3
-
4
- /***/ 3054:
5
- /*!****************************************************************************!*\
6
- !*** ./node_modules/@ng-select/ng-select/fesm2020/ng-select-ng-select.mjs ***!
7
- \****************************************************************************/
8
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
9
-
10
- __webpack_require__.r(__webpack_exports__);
11
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12
- /* harmony export */ "NgFooterTemplateDirective": () => (/* binding */ NgFooterTemplateDirective),
13
- /* harmony export */ "NgHeaderTemplateDirective": () => (/* binding */ NgHeaderTemplateDirective),
14
- /* harmony export */ "NgItemLabelDirective": () => (/* binding */ NgItemLabelDirective),
15
- /* harmony export */ "NgLabelTemplateDirective": () => (/* binding */ NgLabelTemplateDirective),
16
- /* harmony export */ "NgLoadingSpinnerTemplateDirective": () => (/* binding */ NgLoadingSpinnerTemplateDirective),
17
- /* harmony export */ "NgLoadingTextTemplateDirective": () => (/* binding */ NgLoadingTextTemplateDirective),
18
- /* harmony export */ "NgMultiLabelTemplateDirective": () => (/* binding */ NgMultiLabelTemplateDirective),
19
- /* harmony export */ "NgNotFoundTemplateDirective": () => (/* binding */ NgNotFoundTemplateDirective),
20
- /* harmony export */ "NgOptgroupTemplateDirective": () => (/* binding */ NgOptgroupTemplateDirective),
21
- /* harmony export */ "NgOptionComponent": () => (/* binding */ NgOptionComponent),
22
- /* harmony export */ "NgOptionTemplateDirective": () => (/* binding */ NgOptionTemplateDirective),
23
- /* harmony export */ "NgSelectComponent": () => (/* binding */ NgSelectComponent),
24
- /* harmony export */ "NgSelectConfig": () => (/* binding */ NgSelectConfig),
25
- /* harmony export */ "NgSelectModule": () => (/* binding */ NgSelectModule),
26
- /* harmony export */ "NgTagTemplateDirective": () => (/* binding */ NgTagTemplateDirective),
27
- /* harmony export */ "NgTypeToSearchTemplateDirective": () => (/* binding */ NgTypeToSearchTemplateDirective),
28
- /* harmony export */ "SELECTION_MODEL_FACTORY": () => (/* binding */ SELECTION_MODEL_FACTORY)
29
- /* harmony export */ });
30
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 2560);
31
- /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/forms */ 2508);
32
- /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ 8951);
33
- /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ 998);
34
- /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs/operators */ 4874);
35
- /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs/operators */ 9337);
36
- /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rxjs/operators */ 1989);
37
- /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rxjs/operators */ 116);
38
- /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! rxjs/operators */ 635);
39
- /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ 8184);
40
- /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ 9672);
41
- /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ 228);
42
- /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ 3280);
43
- /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ 6646);
44
- /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 4666);
45
-
46
-
47
-
48
-
49
-
50
-
51
-
52
- const _c0 = ["content"];
53
- const _c1 = ["scroll"];
54
- const _c2 = ["padding"];
55
-
56
- const _c3 = function (a0) {
57
- return {
58
- searchTerm: a0
59
- };
60
- };
61
-
62
- function NgDropdownPanelComponent_div_0_Template(rf, ctx) {
63
- if (rf & 1) {
64
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 6);
65
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainer"](1, 7);
66
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
67
- }
68
-
69
- if (rf & 2) {
70
- const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
71
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
72
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r0.headerTemplate)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](2, _c3, ctx_r0.filterValue));
73
- }
74
- }
75
-
76
- function NgDropdownPanelComponent_div_8_Template(rf, ctx) {
77
- if (rf & 1) {
78
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
79
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainer"](1, 7);
80
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
81
- }
82
-
83
- if (rf & 2) {
84
- const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
85
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
86
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r4.footerTemplate)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](2, _c3, ctx_r4.filterValue));
87
- }
88
- }
89
-
90
- const _c4 = ["*"];
91
- const _c5 = ["searchInput"];
92
-
93
- function NgSelectComponent_ng_container_4_div_1_ng_template_1_Template(rf, ctx) {
94
- if (rf & 1) {
95
- const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
96
-
97
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 15);
98
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgSelectComponent_ng_container_4_div_1_ng_template_1_Template_span_click_0_listener() {
99
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13);
100
- const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
101
- const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
102
- return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r11.unselect(item_r7));
103
- });
104
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "\xD7");
105
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
106
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "span", 16);
107
- }
108
-
109
- if (rf & 2) {
110
- const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
111
- const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
112
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
113
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngItemLabel", item_r7.label)("escape", ctx_r9.escapeHTML);
114
- }
115
- }
116
-
117
- function NgSelectComponent_ng_container_4_div_1_ng_template_3_Template(rf, ctx) {}
118
-
119
- const _c6 = function (a0, a1, a2) {
120
- return {
121
- item: a0,
122
- clear: a1,
123
- label: a2
124
- };
125
- };
126
-
127
- function NgSelectComponent_ng_container_4_div_1_Template(rf, ctx) {
128
- if (rf & 1) {
129
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 12);
130
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgSelectComponent_ng_container_4_div_1_ng_template_1_Template, 3, 2, "ng-template", null, 13, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
131
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgSelectComponent_ng_container_4_div_1_ng_template_3_Template, 0, 0, "ng-template", 14);
132
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
133
- }
134
-
135
- if (rf & 2) {
136
- const item_r7 = ctx.$implicit;
137
-
138
- const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
139
-
140
- const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
141
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("ng-value-disabled", item_r7.disabled);
142
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
143
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r6.labelTemplate || _r8)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction3"](4, _c6, item_r7.value, ctx_r6.clearItem, item_r7.label));
144
- }
145
- }
146
-
147
- function NgSelectComponent_ng_container_4_Template(rf, ctx) {
148
- if (rf & 1) {
149
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
150
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgSelectComponent_ng_container_4_div_1_Template, 4, 8, "div", 11);
151
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
152
- }
153
-
154
- if (rf & 2) {
155
- const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
156
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
157
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.selectedItems)("ngForTrackBy", ctx_r0.trackByOption);
158
- }
159
- }
160
-
161
- function NgSelectComponent_5_ng_template_0_Template(rf, ctx) {}
162
-
163
- const _c7 = function (a0, a1) {
164
- return {
165
- items: a0,
166
- clear: a1
167
- };
168
- };
169
-
170
- function NgSelectComponent_5_Template(rf, ctx) {
171
- if (rf & 1) {
172
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NgSelectComponent_5_ng_template_0_Template, 0, 0, "ng-template", 14);
173
- }
174
-
175
- if (rf & 2) {
176
- const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
177
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r1.multiLabelTemplate)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](2, _c7, ctx_r1.selectedValues, ctx_r1.clearItem));
178
- }
179
- }
180
-
181
- function NgSelectComponent_ng_container_9_ng_template_1_Template(rf, ctx) {
182
- if (rf & 1) {
183
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div", 19);
184
- }
185
- }
186
-
187
- function NgSelectComponent_ng_container_9_ng_template_3_Template(rf, ctx) {}
188
-
189
- function NgSelectComponent_ng_container_9_Template(rf, ctx) {
190
- if (rf & 1) {
191
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
192
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgSelectComponent_ng_container_9_ng_template_1_Template, 1, 0, "ng-template", null, 17, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
193
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgSelectComponent_ng_container_9_ng_template_3_Template, 0, 0, "ng-template", 18);
194
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
195
- }
196
-
197
- if (rf & 2) {
198
- const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
199
-
200
- const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
201
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
202
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r3.loadingSpinnerTemplate || _r16);
203
- }
204
- }
205
-
206
- function NgSelectComponent_span_10_Template(rf, ctx) {
207
- if (rf & 1) {
208
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 20)(1, "span", 21);
209
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "\xD7");
210
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
211
- }
212
-
213
- if (rf & 2) {
214
- const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
215
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("title", ctx_r4.clearAllText);
216
- }
217
- }
218
-
219
- function NgSelectComponent_ng_dropdown_panel_13_div_2_ng_template_1_Template(rf, ctx) {
220
- if (rf & 1) {
221
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "span", 27);
222
- }
223
-
224
- if (rf & 2) {
225
- const item_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
226
- const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
227
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngItemLabel", item_r24.label)("escape", ctx_r26.escapeHTML);
228
- }
229
- }
230
-
231
- function NgSelectComponent_ng_dropdown_panel_13_div_2_ng_template_3_Template(rf, ctx) {}
232
-
233
- const _c8 = function (a0, a1, a2, a3) {
234
- return {
235
- item: a0,
236
- item$: a1,
237
- index: a2,
238
- searchTerm: a3
239
- };
240
- };
241
-
242
- function NgSelectComponent_ng_dropdown_panel_13_div_2_Template(rf, ctx) {
243
- if (rf & 1) {
244
- const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
245
-
246
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 25);
247
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgSelectComponent_ng_dropdown_panel_13_div_2_Template_div_click_0_listener() {
248
- const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r30);
249
- const item_r24 = restoredCtx.$implicit;
250
- const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
251
- return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r29.toggleItem(item_r24));
252
- })("mouseover", function NgSelectComponent_ng_dropdown_panel_13_div_2_Template_div_mouseover_0_listener() {
253
- const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r30);
254
- const item_r24 = restoredCtx.$implicit;
255
- const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
256
- return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r31.onItemHover(item_r24));
257
- });
258
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgSelectComponent_ng_dropdown_panel_13_div_2_ng_template_1_Template, 1, 2, "ng-template", null, 26, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
259
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgSelectComponent_ng_dropdown_panel_13_div_2_ng_template_3_Template, 0, 0, "ng-template", 14);
260
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
261
- }
262
-
263
- if (rf & 2) {
264
- const item_r24 = ctx.$implicit;
265
-
266
- const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
267
-
268
- const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
269
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("ng-option-disabled", item_r24.disabled)("ng-option-selected", item_r24.selected)("ng-optgroup", item_r24.children)("ng-option", !item_r24.children)("ng-option-child", !!item_r24.parent)("ng-option-marked", item_r24 === ctx_r19.itemsList.markedItem);
270
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("role", item_r24.children ? "group" : "option")("aria-selected", item_r24.selected)("id", item_r24 == null ? null : item_r24.htmlId);
271
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
272
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", item_r24.children ? ctx_r19.optgroupTemplate || _r25 : ctx_r19.optionTemplate || _r25)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction4"](17, _c8, item_r24.value, item_r24, item_r24.index, ctx_r19.searchTerm));
273
- }
274
- }
275
-
276
- function NgSelectComponent_ng_dropdown_panel_13_div_3_ng_template_1_Template(rf, ctx) {
277
- if (rf & 1) {
278
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span")(1, "span", 30);
279
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
280
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
281
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
282
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
283
- }
284
-
285
- if (rf & 2) {
286
- const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
287
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
288
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r33.addTagText);
289
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
290
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("\"", ctx_r33.searchTerm, "\"");
291
- }
292
- }
293
-
294
- function NgSelectComponent_ng_dropdown_panel_13_div_3_ng_template_3_Template(rf, ctx) {}
295
-
296
- function NgSelectComponent_ng_dropdown_panel_13_div_3_Template(rf, ctx) {
297
- if (rf & 1) {
298
- const _r36 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
299
-
300
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
301
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("mouseover", function NgSelectComponent_ng_dropdown_panel_13_div_3_Template_div_mouseover_0_listener() {
302
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r36);
303
- const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
304
- return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r35.itemsList.unmarkItem());
305
- })("click", function NgSelectComponent_ng_dropdown_panel_13_div_3_Template_div_click_0_listener() {
306
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r36);
307
- const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
308
- return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r37.selectTag());
309
- });
310
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgSelectComponent_ng_dropdown_panel_13_div_3_ng_template_1_Template, 4, 2, "ng-template", null, 29, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
311
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgSelectComponent_ng_dropdown_panel_13_div_3_ng_template_3_Template, 0, 0, "ng-template", 14);
312
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
313
- }
314
-
315
- if (rf & 2) {
316
- const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
317
-
318
- const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
319
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("ng-option-marked", !ctx_r20.itemsList.markedItem);
320
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
321
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r20.tagTemplate || _r32)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](4, _c3, ctx_r20.searchTerm));
322
- }
323
- }
324
-
325
- function NgSelectComponent_ng_dropdown_panel_13_ng_container_4_ng_template_1_Template(rf, ctx) {
326
- if (rf & 1) {
327
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 32);
328
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
329
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
330
- }
331
-
332
- if (rf & 2) {
333
- const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
334
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
335
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r39.notFoundText);
336
- }
337
- }
338
-
339
- function NgSelectComponent_ng_dropdown_panel_13_ng_container_4_ng_template_3_Template(rf, ctx) {}
340
-
341
- function NgSelectComponent_ng_dropdown_panel_13_ng_container_4_Template(rf, ctx) {
342
- if (rf & 1) {
343
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
344
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgSelectComponent_ng_dropdown_panel_13_ng_container_4_ng_template_1_Template, 2, 1, "ng-template", null, 31, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
345
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgSelectComponent_ng_dropdown_panel_13_ng_container_4_ng_template_3_Template, 0, 0, "ng-template", 14);
346
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
347
- }
348
-
349
- if (rf & 2) {
350
- const _r38 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
351
-
352
- const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
353
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
354
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r21.notFoundTemplate || _r38)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](2, _c3, ctx_r21.searchTerm));
355
- }
356
- }
357
-
358
- function NgSelectComponent_ng_dropdown_panel_13_ng_container_5_ng_template_1_Template(rf, ctx) {
359
- if (rf & 1) {
360
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 32);
361
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
362
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
363
- }
364
-
365
- if (rf & 2) {
366
- const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
367
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
368
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r42.typeToSearchText);
369
- }
370
- }
371
-
372
- function NgSelectComponent_ng_dropdown_panel_13_ng_container_5_ng_template_3_Template(rf, ctx) {}
373
-
374
- function NgSelectComponent_ng_dropdown_panel_13_ng_container_5_Template(rf, ctx) {
375
- if (rf & 1) {
376
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
377
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgSelectComponent_ng_dropdown_panel_13_ng_container_5_ng_template_1_Template, 2, 1, "ng-template", null, 33, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
378
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgSelectComponent_ng_dropdown_panel_13_ng_container_5_ng_template_3_Template, 0, 0, "ng-template", 18);
379
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
380
- }
381
-
382
- if (rf & 2) {
383
- const _r41 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
384
-
385
- const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
386
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
387
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r22.typeToSearchTemplate || _r41);
388
- }
389
- }
390
-
391
- function NgSelectComponent_ng_dropdown_panel_13_ng_container_6_ng_template_1_Template(rf, ctx) {
392
- if (rf & 1) {
393
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 32);
394
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
395
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
396
- }
397
-
398
- if (rf & 2) {
399
- const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
400
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
401
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r45.loadingText);
402
- }
403
- }
404
-
405
- function NgSelectComponent_ng_dropdown_panel_13_ng_container_6_ng_template_3_Template(rf, ctx) {}
406
-
407
- function NgSelectComponent_ng_dropdown_panel_13_ng_container_6_Template(rf, ctx) {
408
- if (rf & 1) {
409
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
410
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgSelectComponent_ng_dropdown_panel_13_ng_container_6_ng_template_1_Template, 2, 1, "ng-template", null, 34, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
411
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgSelectComponent_ng_dropdown_panel_13_ng_container_6_ng_template_3_Template, 0, 0, "ng-template", 14);
412
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
413
- }
414
-
415
- if (rf & 2) {
416
- const _r44 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
417
-
418
- const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
419
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
420
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r23.loadingTextTemplate || _r44)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](2, _c3, ctx_r23.searchTerm));
421
- }
422
- }
423
-
424
- function NgSelectComponent_ng_dropdown_panel_13_Template(rf, ctx) {
425
- if (rf & 1) {
426
- const _r48 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
427
-
428
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-dropdown-panel", 22);
429
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("update", function NgSelectComponent_ng_dropdown_panel_13_Template_ng_dropdown_panel_update_0_listener($event) {
430
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r48);
431
- const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
432
- return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r47.viewPortItems = $event);
433
- })("scroll", function NgSelectComponent_ng_dropdown_panel_13_Template_ng_dropdown_panel_scroll_0_listener($event) {
434
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r48);
435
- const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
436
- return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r49.scroll.emit($event));
437
- })("scrollToEnd", function NgSelectComponent_ng_dropdown_panel_13_Template_ng_dropdown_panel_scrollToEnd_0_listener($event) {
438
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r48);
439
- const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
440
- return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r50.scrollToEnd.emit($event));
441
- })("outsideClick", function NgSelectComponent_ng_dropdown_panel_13_Template_ng_dropdown_panel_outsideClick_0_listener() {
442
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r48);
443
- const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
444
- return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r51.close());
445
- });
446
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](1);
447
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, NgSelectComponent_ng_dropdown_panel_13_div_2_Template, 4, 22, "div", 23);
448
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgSelectComponent_ng_dropdown_panel_13_div_3_Template, 4, 6, "div", 24);
449
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
450
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, NgSelectComponent_ng_dropdown_panel_13_ng_container_4_Template, 4, 4, "ng-container", 3);
451
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, NgSelectComponent_ng_dropdown_panel_13_ng_container_5_Template, 4, 1, "ng-container", 3);
452
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, NgSelectComponent_ng_dropdown_panel_13_ng_container_6_Template, 4, 4, "ng-container", 3);
453
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
454
- }
455
-
456
- if (rf & 2) {
457
- const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
458
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("ng-select-multiple", ctx_r5.multiple);
459
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("virtualScroll", ctx_r5.virtualScroll)("bufferAmount", ctx_r5.bufferAmount)("appendTo", ctx_r5.appendTo)("position", ctx_r5.dropdownPosition)("headerTemplate", ctx_r5.headerTemplate)("footerTemplate", ctx_r5.footerTemplate)("filterValue", ctx_r5.searchTerm)("items", ctx_r5.itemsList.filteredItems)("markedItem", ctx_r5.itemsList.markedItem)("ngClass", ctx_r5.appendTo ? ctx_r5.classes : null)("id", ctx_r5.dropdownId);
460
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
461
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r5.viewPortItems)("ngForTrackBy", ctx_r5.trackByOption);
462
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
463
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r5.showAddTag);
464
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
465
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r5.showNoItemsFound());
466
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
467
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r5.showTypeToSearch());
468
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
469
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r5.loading && ctx_r5.itemsList.filteredItems.length === 0);
470
- }
471
- }
472
-
473
- const unescapedHTMLExp = /[&<>"']/g;
474
- const hasUnescapedHTMLExp = RegExp(unescapedHTMLExp.source);
475
- const htmlEscapes = {
476
- '&': '&amp;',
477
- '<': '&lt;',
478
- '>': '&gt;',
479
- '"': '&quot;',
480
- '\'': '&#39;'
481
- };
482
-
483
- function escapeHTML(value) {
484
- return value && hasUnescapedHTMLExp.test(value) ? value.replace(unescapedHTMLExp, chr => htmlEscapes[chr]) : value;
485
- }
486
-
487
- function isDefined(value) {
488
- return value !== undefined && value !== null;
489
- }
490
-
491
- function isObject(value) {
492
- return typeof value === 'object' && isDefined(value);
493
- }
494
-
495
- function isPromise(value) {
496
- return value instanceof Promise;
497
- }
498
-
499
- function isFunction(value) {
500
- return value instanceof Function;
501
- }
502
-
503
- class NgItemLabelDirective {
504
- constructor(element) {
505
- this.element = element;
506
- this.escape = true;
507
- }
508
-
509
- ngOnChanges(changes) {
510
- this.element.nativeElement.innerHTML = this.escape ? escapeHTML(this.ngItemLabel) : this.ngItemLabel;
511
- }
512
-
513
- }
514
-
515
- NgItemLabelDirective.ɵfac = function NgItemLabelDirective_Factory(t) {
516
- return new (t || NgItemLabelDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef));
517
- };
518
-
519
- NgItemLabelDirective.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
520
- type: NgItemLabelDirective,
521
- selectors: [["", "ngItemLabel", ""]],
522
- inputs: {
523
- ngItemLabel: "ngItemLabel",
524
- escape: "escape"
525
- },
526
- features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
527
- });
528
-
529
- (function () {
530
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgItemLabelDirective, [{
531
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
532
- args: [{
533
- selector: '[ngItemLabel]'
534
- }]
535
- }], function () {
536
- return [{
537
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
538
- }];
539
- }, {
540
- ngItemLabel: [{
541
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
542
- }],
543
- escape: [{
544
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
545
- }]
546
- });
547
- })(); // eslint-disable-next-line @angular-eslint/directive-selector
548
-
549
-
550
- class NgOptionTemplateDirective {
551
- constructor(template) {
552
- this.template = template;
553
- }
554
-
555
- }
556
-
557
- NgOptionTemplateDirective.ɵfac = function NgOptionTemplateDirective_Factory(t) {
558
- return new (t || NgOptionTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef));
559
- };
560
-
561
- NgOptionTemplateDirective.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
562
- type: NgOptionTemplateDirective,
563
- selectors: [["", "ng-option-tmp", ""]]
564
- });
565
-
566
- (function () {
567
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgOptionTemplateDirective, [{
568
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
569
- args: [{
570
- selector: '[ng-option-tmp]'
571
- }]
572
- }], function () {
573
- return [{
574
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
575
- }];
576
- }, null);
577
- })(); // eslint-disable-next-line @angular-eslint/directive-selector
578
-
579
-
580
- class NgOptgroupTemplateDirective {
581
- constructor(template) {
582
- this.template = template;
583
- }
584
-
585
- }
586
-
587
- NgOptgroupTemplateDirective.ɵfac = function NgOptgroupTemplateDirective_Factory(t) {
588
- return new (t || NgOptgroupTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef));
589
- };
590
-
591
- NgOptgroupTemplateDirective.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
592
- type: NgOptgroupTemplateDirective,
593
- selectors: [["", "ng-optgroup-tmp", ""]]
594
- });
595
-
596
- (function () {
597
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgOptgroupTemplateDirective, [{
598
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
599
- args: [{
600
- selector: '[ng-optgroup-tmp]'
601
- }]
602
- }], function () {
603
- return [{
604
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
605
- }];
606
- }, null);
607
- })(); // eslint-disable-next-line @angular-eslint/directive-selector
608
-
609
-
610
- class NgLabelTemplateDirective {
611
- constructor(template) {
612
- this.template = template;
613
- }
614
-
615
- }
616
-
617
- NgLabelTemplateDirective.ɵfac = function NgLabelTemplateDirective_Factory(t) {
618
- return new (t || NgLabelTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef));
619
- };
620
-
621
- NgLabelTemplateDirective.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
622
- type: NgLabelTemplateDirective,
623
- selectors: [["", "ng-label-tmp", ""]]
624
- });
625
-
626
- (function () {
627
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgLabelTemplateDirective, [{
628
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
629
- args: [{
630
- selector: '[ng-label-tmp]'
631
- }]
632
- }], function () {
633
- return [{
634
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
635
- }];
636
- }, null);
637
- })(); // eslint-disable-next-line @angular-eslint/directive-selector
638
-
639
-
640
- class NgMultiLabelTemplateDirective {
641
- constructor(template) {
642
- this.template = template;
643
- }
644
-
645
- }
646
-
647
- NgMultiLabelTemplateDirective.ɵfac = function NgMultiLabelTemplateDirective_Factory(t) {
648
- return new (t || NgMultiLabelTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef));
649
- };
650
-
651
- NgMultiLabelTemplateDirective.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
652
- type: NgMultiLabelTemplateDirective,
653
- selectors: [["", "ng-multi-label-tmp", ""]]
654
- });
655
-
656
- (function () {
657
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgMultiLabelTemplateDirective, [{
658
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
659
- args: [{
660
- selector: '[ng-multi-label-tmp]'
661
- }]
662
- }], function () {
663
- return [{
664
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
665
- }];
666
- }, null);
667
- })(); // eslint-disable-next-line @angular-eslint/directive-selector
668
-
669
-
670
- class NgHeaderTemplateDirective {
671
- constructor(template) {
672
- this.template = template;
673
- }
674
-
675
- }
676
-
677
- NgHeaderTemplateDirective.ɵfac = function NgHeaderTemplateDirective_Factory(t) {
678
- return new (t || NgHeaderTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef));
679
- };
680
-
681
- NgHeaderTemplateDirective.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
682
- type: NgHeaderTemplateDirective,
683
- selectors: [["", "ng-header-tmp", ""]]
684
- });
685
-
686
- (function () {
687
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgHeaderTemplateDirective, [{
688
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
689
- args: [{
690
- selector: '[ng-header-tmp]'
691
- }]
692
- }], function () {
693
- return [{
694
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
695
- }];
696
- }, null);
697
- })(); // eslint-disable-next-line @angular-eslint/directive-selector
698
-
699
-
700
- class NgFooterTemplateDirective {
701
- constructor(template) {
702
- this.template = template;
703
- }
704
-
705
- }
706
-
707
- NgFooterTemplateDirective.ɵfac = function NgFooterTemplateDirective_Factory(t) {
708
- return new (t || NgFooterTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef));
709
- };
710
-
711
- NgFooterTemplateDirective.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
712
- type: NgFooterTemplateDirective,
713
- selectors: [["", "ng-footer-tmp", ""]]
714
- });
715
-
716
- (function () {
717
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgFooterTemplateDirective, [{
718
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
719
- args: [{
720
- selector: '[ng-footer-tmp]'
721
- }]
722
- }], function () {
723
- return [{
724
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
725
- }];
726
- }, null);
727
- })(); // eslint-disable-next-line @angular-eslint/directive-selector
728
-
729
-
730
- class NgNotFoundTemplateDirective {
731
- constructor(template) {
732
- this.template = template;
733
- }
734
-
735
- }
736
-
737
- NgNotFoundTemplateDirective.ɵfac = function NgNotFoundTemplateDirective_Factory(t) {
738
- return new (t || NgNotFoundTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef));
739
- };
740
-
741
- NgNotFoundTemplateDirective.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
742
- type: NgNotFoundTemplateDirective,
743
- selectors: [["", "ng-notfound-tmp", ""]]
744
- });
745
-
746
- (function () {
747
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgNotFoundTemplateDirective, [{
748
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
749
- args: [{
750
- selector: '[ng-notfound-tmp]'
751
- }]
752
- }], function () {
753
- return [{
754
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
755
- }];
756
- }, null);
757
- })(); // eslint-disable-next-line @angular-eslint/directive-selector
758
-
759
-
760
- class NgTypeToSearchTemplateDirective {
761
- constructor(template) {
762
- this.template = template;
763
- }
764
-
765
- }
766
-
767
- NgTypeToSearchTemplateDirective.ɵfac = function NgTypeToSearchTemplateDirective_Factory(t) {
768
- return new (t || NgTypeToSearchTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef));
769
- };
770
-
771
- NgTypeToSearchTemplateDirective.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
772
- type: NgTypeToSearchTemplateDirective,
773
- selectors: [["", "ng-typetosearch-tmp", ""]]
774
- });
775
-
776
- (function () {
777
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgTypeToSearchTemplateDirective, [{
778
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
779
- args: [{
780
- selector: '[ng-typetosearch-tmp]'
781
- }]
782
- }], function () {
783
- return [{
784
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
785
- }];
786
- }, null);
787
- })(); // eslint-disable-next-line @angular-eslint/directive-selector
788
-
789
-
790
- class NgLoadingTextTemplateDirective {
791
- constructor(template) {
792
- this.template = template;
793
- }
794
-
795
- }
796
-
797
- NgLoadingTextTemplateDirective.ɵfac = function NgLoadingTextTemplateDirective_Factory(t) {
798
- return new (t || NgLoadingTextTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef));
799
- };
800
-
801
- NgLoadingTextTemplateDirective.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
802
- type: NgLoadingTextTemplateDirective,
803
- selectors: [["", "ng-loadingtext-tmp", ""]]
804
- });
805
-
806
- (function () {
807
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgLoadingTextTemplateDirective, [{
808
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
809
- args: [{
810
- selector: '[ng-loadingtext-tmp]'
811
- }]
812
- }], function () {
813
- return [{
814
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
815
- }];
816
- }, null);
817
- })(); // eslint-disable-next-line @angular-eslint/directive-selector
818
-
819
-
820
- class NgTagTemplateDirective {
821
- constructor(template) {
822
- this.template = template;
823
- }
824
-
825
- }
826
-
827
- NgTagTemplateDirective.ɵfac = function NgTagTemplateDirective_Factory(t) {
828
- return new (t || NgTagTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef));
829
- };
830
-
831
- NgTagTemplateDirective.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
832
- type: NgTagTemplateDirective,
833
- selectors: [["", "ng-tag-tmp", ""]]
834
- });
835
-
836
- (function () {
837
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgTagTemplateDirective, [{
838
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
839
- args: [{
840
- selector: '[ng-tag-tmp]'
841
- }]
842
- }], function () {
843
- return [{
844
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
845
- }];
846
- }, null);
847
- })(); // eslint-disable-next-line @angular-eslint/directive-selector
848
-
849
-
850
- class NgLoadingSpinnerTemplateDirective {
851
- constructor(template) {
852
- this.template = template;
853
- }
854
-
855
- }
856
-
857
- NgLoadingSpinnerTemplateDirective.ɵfac = function NgLoadingSpinnerTemplateDirective_Factory(t) {
858
- return new (t || NgLoadingSpinnerTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef));
859
- };
860
-
861
- NgLoadingSpinnerTemplateDirective.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
862
- type: NgLoadingSpinnerTemplateDirective,
863
- selectors: [["", "ng-loadingspinner-tmp", ""]]
864
- });
865
-
866
- (function () {
867
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgLoadingSpinnerTemplateDirective, [{
868
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
869
- args: [{
870
- selector: '[ng-loadingspinner-tmp]'
871
- }]
872
- }], function () {
873
- return [{
874
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
875
- }];
876
- }, null);
877
- })();
878
-
879
- function newId() {
880
- // First character is an 'a', it's good practice to tag id to begin with a letter
881
- return 'axxxxxxxxxxx'.replace(/[x]/g, () => {
882
- // eslint-disable-next-line no-bitwise
883
- const val = Math.random() * 16 | 0;
884
- return val.toString(16);
885
- });
886
- }
887
-
888
- const diacritics = {
889
- '\u24B6': 'A',
890
- '\uFF21': 'A',
891
- '\u00C0': 'A',
892
- '\u00C1': 'A',
893
- '\u00C2': 'A',
894
- '\u1EA6': 'A',
895
- '\u1EA4': 'A',
896
- '\u1EAA': 'A',
897
- '\u1EA8': 'A',
898
- '\u00C3': 'A',
899
- '\u0100': 'A',
900
- '\u0102': 'A',
901
- '\u1EB0': 'A',
902
- '\u1EAE': 'A',
903
- '\u1EB4': 'A',
904
- '\u1EB2': 'A',
905
- '\u0226': 'A',
906
- '\u01E0': 'A',
907
- '\u00C4': 'A',
908
- '\u01DE': 'A',
909
- '\u1EA2': 'A',
910
- '\u00C5': 'A',
911
- '\u01FA': 'A',
912
- '\u01CD': 'A',
913
- '\u0200': 'A',
914
- '\u0202': 'A',
915
- '\u1EA0': 'A',
916
- '\u1EAC': 'A',
917
- '\u1EB6': 'A',
918
- '\u1E00': 'A',
919
- '\u0104': 'A',
920
- '\u023A': 'A',
921
- '\u2C6F': 'A',
922
- '\uA732': 'AA',
923
- '\u00C6': 'AE',
924
- '\u01FC': 'AE',
925
- '\u01E2': 'AE',
926
- '\uA734': 'AO',
927
- '\uA736': 'AU',
928
- '\uA738': 'AV',
929
- '\uA73A': 'AV',
930
- '\uA73C': 'AY',
931
- '\u24B7': 'B',
932
- '\uFF22': 'B',
933
- '\u1E02': 'B',
934
- '\u1E04': 'B',
935
- '\u1E06': 'B',
936
- '\u0243': 'B',
937
- '\u0182': 'B',
938
- '\u0181': 'B',
939
- '\u24B8': 'C',
940
- '\uFF23': 'C',
941
- '\u0106': 'C',
942
- '\u0108': 'C',
943
- '\u010A': 'C',
944
- '\u010C': 'C',
945
- '\u00C7': 'C',
946
- '\u1E08': 'C',
947
- '\u0187': 'C',
948
- '\u023B': 'C',
949
- '\uA73E': 'C',
950
- '\u24B9': 'D',
951
- '\uFF24': 'D',
952
- '\u1E0A': 'D',
953
- '\u010E': 'D',
954
- '\u1E0C': 'D',
955
- '\u1E10': 'D',
956
- '\u1E12': 'D',
957
- '\u1E0E': 'D',
958
- '\u0110': 'D',
959
- '\u018B': 'D',
960
- '\u018A': 'D',
961
- '\u0189': 'D',
962
- '\uA779': 'D',
963
- '\u01F1': 'DZ',
964
- '\u01C4': 'DZ',
965
- '\u01F2': 'Dz',
966
- '\u01C5': 'Dz',
967
- '\u24BA': 'E',
968
- '\uFF25': 'E',
969
- '\u00C8': 'E',
970
- '\u00C9': 'E',
971
- '\u00CA': 'E',
972
- '\u1EC0': 'E',
973
- '\u1EBE': 'E',
974
- '\u1EC4': 'E',
975
- '\u1EC2': 'E',
976
- '\u1EBC': 'E',
977
- '\u0112': 'E',
978
- '\u1E14': 'E',
979
- '\u1E16': 'E',
980
- '\u0114': 'E',
981
- '\u0116': 'E',
982
- '\u00CB': 'E',
983
- '\u1EBA': 'E',
984
- '\u011A': 'E',
985
- '\u0204': 'E',
986
- '\u0206': 'E',
987
- '\u1EB8': 'E',
988
- '\u1EC6': 'E',
989
- '\u0228': 'E',
990
- '\u1E1C': 'E',
991
- '\u0118': 'E',
992
- '\u1E18': 'E',
993
- '\u1E1A': 'E',
994
- '\u0190': 'E',
995
- '\u018E': 'E',
996
- '\u24BB': 'F',
997
- '\uFF26': 'F',
998
- '\u1E1E': 'F',
999
- '\u0191': 'F',
1000
- '\uA77B': 'F',
1001
- '\u24BC': 'G',
1002
- '\uFF27': 'G',
1003
- '\u01F4': 'G',
1004
- '\u011C': 'G',
1005
- '\u1E20': 'G',
1006
- '\u011E': 'G',
1007
- '\u0120': 'G',
1008
- '\u01E6': 'G',
1009
- '\u0122': 'G',
1010
- '\u01E4': 'G',
1011
- '\u0193': 'G',
1012
- '\uA7A0': 'G',
1013
- '\uA77D': 'G',
1014
- '\uA77E': 'G',
1015
- '\u24BD': 'H',
1016
- '\uFF28': 'H',
1017
- '\u0124': 'H',
1018
- '\u1E22': 'H',
1019
- '\u1E26': 'H',
1020
- '\u021E': 'H',
1021
- '\u1E24': 'H',
1022
- '\u1E28': 'H',
1023
- '\u1E2A': 'H',
1024
- '\u0126': 'H',
1025
- '\u2C67': 'H',
1026
- '\u2C75': 'H',
1027
- '\uA78D': 'H',
1028
- '\u24BE': 'I',
1029
- '\uFF29': 'I',
1030
- '\u00CC': 'I',
1031
- '\u00CD': 'I',
1032
- '\u00CE': 'I',
1033
- '\u0128': 'I',
1034
- '\u012A': 'I',
1035
- '\u012C': 'I',
1036
- '\u0130': 'I',
1037
- '\u00CF': 'I',
1038
- '\u1E2E': 'I',
1039
- '\u1EC8': 'I',
1040
- '\u01CF': 'I',
1041
- '\u0208': 'I',
1042
- '\u020A': 'I',
1043
- '\u1ECA': 'I',
1044
- '\u012E': 'I',
1045
- '\u1E2C': 'I',
1046
- '\u0197': 'I',
1047
- '\u24BF': 'J',
1048
- '\uFF2A': 'J',
1049
- '\u0134': 'J',
1050
- '\u0248': 'J',
1051
- '\u24C0': 'K',
1052
- '\uFF2B': 'K',
1053
- '\u1E30': 'K',
1054
- '\u01E8': 'K',
1055
- '\u1E32': 'K',
1056
- '\u0136': 'K',
1057
- '\u1E34': 'K',
1058
- '\u0198': 'K',
1059
- '\u2C69': 'K',
1060
- '\uA740': 'K',
1061
- '\uA742': 'K',
1062
- '\uA744': 'K',
1063
- '\uA7A2': 'K',
1064
- '\u24C1': 'L',
1065
- '\uFF2C': 'L',
1066
- '\u013F': 'L',
1067
- '\u0139': 'L',
1068
- '\u013D': 'L',
1069
- '\u1E36': 'L',
1070
- '\u1E38': 'L',
1071
- '\u013B': 'L',
1072
- '\u1E3C': 'L',
1073
- '\u1E3A': 'L',
1074
- '\u0141': 'L',
1075
- '\u023D': 'L',
1076
- '\u2C62': 'L',
1077
- '\u2C60': 'L',
1078
- '\uA748': 'L',
1079
- '\uA746': 'L',
1080
- '\uA780': 'L',
1081
- '\u01C7': 'LJ',
1082
- '\u01C8': 'Lj',
1083
- '\u24C2': 'M',
1084
- '\uFF2D': 'M',
1085
- '\u1E3E': 'M',
1086
- '\u1E40': 'M',
1087
- '\u1E42': 'M',
1088
- '\u2C6E': 'M',
1089
- '\u019C': 'M',
1090
- '\u24C3': 'N',
1091
- '\uFF2E': 'N',
1092
- '\u01F8': 'N',
1093
- '\u0143': 'N',
1094
- '\u00D1': 'N',
1095
- '\u1E44': 'N',
1096
- '\u0147': 'N',
1097
- '\u1E46': 'N',
1098
- '\u0145': 'N',
1099
- '\u1E4A': 'N',
1100
- '\u1E48': 'N',
1101
- '\u0220': 'N',
1102
- '\u019D': 'N',
1103
- '\uA790': 'N',
1104
- '\uA7A4': 'N',
1105
- '\u01CA': 'NJ',
1106
- '\u01CB': 'Nj',
1107
- '\u24C4': 'O',
1108
- '\uFF2F': 'O',
1109
- '\u00D2': 'O',
1110
- '\u00D3': 'O',
1111
- '\u00D4': 'O',
1112
- '\u1ED2': 'O',
1113
- '\u1ED0': 'O',
1114
- '\u1ED6': 'O',
1115
- '\u1ED4': 'O',
1116
- '\u00D5': 'O',
1117
- '\u1E4C': 'O',
1118
- '\u022C': 'O',
1119
- '\u1E4E': 'O',
1120
- '\u014C': 'O',
1121
- '\u1E50': 'O',
1122
- '\u1E52': 'O',
1123
- '\u014E': 'O',
1124
- '\u022E': 'O',
1125
- '\u0230': 'O',
1126
- '\u00D6': 'O',
1127
- '\u022A': 'O',
1128
- '\u1ECE': 'O',
1129
- '\u0150': 'O',
1130
- '\u01D1': 'O',
1131
- '\u020C': 'O',
1132
- '\u020E': 'O',
1133
- '\u01A0': 'O',
1134
- '\u1EDC': 'O',
1135
- '\u1EDA': 'O',
1136
- '\u1EE0': 'O',
1137
- '\u1EDE': 'O',
1138
- '\u1EE2': 'O',
1139
- '\u1ECC': 'O',
1140
- '\u1ED8': 'O',
1141
- '\u01EA': 'O',
1142
- '\u01EC': 'O',
1143
- '\u00D8': 'O',
1144
- '\u01FE': 'O',
1145
- '\u0186': 'O',
1146
- '\u019F': 'O',
1147
- '\uA74A': 'O',
1148
- '\uA74C': 'O',
1149
- '\u01A2': 'OI',
1150
- '\uA74E': 'OO',
1151
- '\u0222': 'OU',
1152
- '\u24C5': 'P',
1153
- '\uFF30': 'P',
1154
- '\u1E54': 'P',
1155
- '\u1E56': 'P',
1156
- '\u01A4': 'P',
1157
- '\u2C63': 'P',
1158
- '\uA750': 'P',
1159
- '\uA752': 'P',
1160
- '\uA754': 'P',
1161
- '\u24C6': 'Q',
1162
- '\uFF31': 'Q',
1163
- '\uA756': 'Q',
1164
- '\uA758': 'Q',
1165
- '\u024A': 'Q',
1166
- '\u24C7': 'R',
1167
- '\uFF32': 'R',
1168
- '\u0154': 'R',
1169
- '\u1E58': 'R',
1170
- '\u0158': 'R',
1171
- '\u0210': 'R',
1172
- '\u0212': 'R',
1173
- '\u1E5A': 'R',
1174
- '\u1E5C': 'R',
1175
- '\u0156': 'R',
1176
- '\u1E5E': 'R',
1177
- '\u024C': 'R',
1178
- '\u2C64': 'R',
1179
- '\uA75A': 'R',
1180
- '\uA7A6': 'R',
1181
- '\uA782': 'R',
1182
- '\u24C8': 'S',
1183
- '\uFF33': 'S',
1184
- '\u1E9E': 'S',
1185
- '\u015A': 'S',
1186
- '\u1E64': 'S',
1187
- '\u015C': 'S',
1188
- '\u1E60': 'S',
1189
- '\u0160': 'S',
1190
- '\u1E66': 'S',
1191
- '\u1E62': 'S',
1192
- '\u1E68': 'S',
1193
- '\u0218': 'S',
1194
- '\u015E': 'S',
1195
- '\u2C7E': 'S',
1196
- '\uA7A8': 'S',
1197
- '\uA784': 'S',
1198
- '\u24C9': 'T',
1199
- '\uFF34': 'T',
1200
- '\u1E6A': 'T',
1201
- '\u0164': 'T',
1202
- '\u1E6C': 'T',
1203
- '\u021A': 'T',
1204
- '\u0162': 'T',
1205
- '\u1E70': 'T',
1206
- '\u1E6E': 'T',
1207
- '\u0166': 'T',
1208
- '\u01AC': 'T',
1209
- '\u01AE': 'T',
1210
- '\u023E': 'T',
1211
- '\uA786': 'T',
1212
- '\uA728': 'TZ',
1213
- '\u24CA': 'U',
1214
- '\uFF35': 'U',
1215
- '\u00D9': 'U',
1216
- '\u00DA': 'U',
1217
- '\u00DB': 'U',
1218
- '\u0168': 'U',
1219
- '\u1E78': 'U',
1220
- '\u016A': 'U',
1221
- '\u1E7A': 'U',
1222
- '\u016C': 'U',
1223
- '\u00DC': 'U',
1224
- '\u01DB': 'U',
1225
- '\u01D7': 'U',
1226
- '\u01D5': 'U',
1227
- '\u01D9': 'U',
1228
- '\u1EE6': 'U',
1229
- '\u016E': 'U',
1230
- '\u0170': 'U',
1231
- '\u01D3': 'U',
1232
- '\u0214': 'U',
1233
- '\u0216': 'U',
1234
- '\u01AF': 'U',
1235
- '\u1EEA': 'U',
1236
- '\u1EE8': 'U',
1237
- '\u1EEE': 'U',
1238
- '\u1EEC': 'U',
1239
- '\u1EF0': 'U',
1240
- '\u1EE4': 'U',
1241
- '\u1E72': 'U',
1242
- '\u0172': 'U',
1243
- '\u1E76': 'U',
1244
- '\u1E74': 'U',
1245
- '\u0244': 'U',
1246
- '\u24CB': 'V',
1247
- '\uFF36': 'V',
1248
- '\u1E7C': 'V',
1249
- '\u1E7E': 'V',
1250
- '\u01B2': 'V',
1251
- '\uA75E': 'V',
1252
- '\u0245': 'V',
1253
- '\uA760': 'VY',
1254
- '\u24CC': 'W',
1255
- '\uFF37': 'W',
1256
- '\u1E80': 'W',
1257
- '\u1E82': 'W',
1258
- '\u0174': 'W',
1259
- '\u1E86': 'W',
1260
- '\u1E84': 'W',
1261
- '\u1E88': 'W',
1262
- '\u2C72': 'W',
1263
- '\u24CD': 'X',
1264
- '\uFF38': 'X',
1265
- '\u1E8A': 'X',
1266
- '\u1E8C': 'X',
1267
- '\u24CE': 'Y',
1268
- '\uFF39': 'Y',
1269
- '\u1EF2': 'Y',
1270
- '\u00DD': 'Y',
1271
- '\u0176': 'Y',
1272
- '\u1EF8': 'Y',
1273
- '\u0232': 'Y',
1274
- '\u1E8E': 'Y',
1275
- '\u0178': 'Y',
1276
- '\u1EF6': 'Y',
1277
- '\u1EF4': 'Y',
1278
- '\u01B3': 'Y',
1279
- '\u024E': 'Y',
1280
- '\u1EFE': 'Y',
1281
- '\u24CF': 'Z',
1282
- '\uFF3A': 'Z',
1283
- '\u0179': 'Z',
1284
- '\u1E90': 'Z',
1285
- '\u017B': 'Z',
1286
- '\u017D': 'Z',
1287
- '\u1E92': 'Z',
1288
- '\u1E94': 'Z',
1289
- '\u01B5': 'Z',
1290
- '\u0224': 'Z',
1291
- '\u2C7F': 'Z',
1292
- '\u2C6B': 'Z',
1293
- '\uA762': 'Z',
1294
- '\u24D0': 'a',
1295
- '\uFF41': 'a',
1296
- '\u1E9A': 'a',
1297
- '\u00E0': 'a',
1298
- '\u00E1': 'a',
1299
- '\u00E2': 'a',
1300
- '\u1EA7': 'a',
1301
- '\u1EA5': 'a',
1302
- '\u1EAB': 'a',
1303
- '\u1EA9': 'a',
1304
- '\u00E3': 'a',
1305
- '\u0101': 'a',
1306
- '\u0103': 'a',
1307
- '\u1EB1': 'a',
1308
- '\u1EAF': 'a',
1309
- '\u1EB5': 'a',
1310
- '\u1EB3': 'a',
1311
- '\u0227': 'a',
1312
- '\u01E1': 'a',
1313
- '\u00E4': 'a',
1314
- '\u01DF': 'a',
1315
- '\u1EA3': 'a',
1316
- '\u00E5': 'a',
1317
- '\u01FB': 'a',
1318
- '\u01CE': 'a',
1319
- '\u0201': 'a',
1320
- '\u0203': 'a',
1321
- '\u1EA1': 'a',
1322
- '\u1EAD': 'a',
1323
- '\u1EB7': 'a',
1324
- '\u1E01': 'a',
1325
- '\u0105': 'a',
1326
- '\u2C65': 'a',
1327
- '\u0250': 'a',
1328
- '\uA733': 'aa',
1329
- '\u00E6': 'ae',
1330
- '\u01FD': 'ae',
1331
- '\u01E3': 'ae',
1332
- '\uA735': 'ao',
1333
- '\uA737': 'au',
1334
- '\uA739': 'av',
1335
- '\uA73B': 'av',
1336
- '\uA73D': 'ay',
1337
- '\u24D1': 'b',
1338
- '\uFF42': 'b',
1339
- '\u1E03': 'b',
1340
- '\u1E05': 'b',
1341
- '\u1E07': 'b',
1342
- '\u0180': 'b',
1343
- '\u0183': 'b',
1344
- '\u0253': 'b',
1345
- '\u24D2': 'c',
1346
- '\uFF43': 'c',
1347
- '\u0107': 'c',
1348
- '\u0109': 'c',
1349
- '\u010B': 'c',
1350
- '\u010D': 'c',
1351
- '\u00E7': 'c',
1352
- '\u1E09': 'c',
1353
- '\u0188': 'c',
1354
- '\u023C': 'c',
1355
- '\uA73F': 'c',
1356
- '\u2184': 'c',
1357
- '\u24D3': 'd',
1358
- '\uFF44': 'd',
1359
- '\u1E0B': 'd',
1360
- '\u010F': 'd',
1361
- '\u1E0D': 'd',
1362
- '\u1E11': 'd',
1363
- '\u1E13': 'd',
1364
- '\u1E0F': 'd',
1365
- '\u0111': 'd',
1366
- '\u018C': 'd',
1367
- '\u0256': 'd',
1368
- '\u0257': 'd',
1369
- '\uA77A': 'd',
1370
- '\u01F3': 'dz',
1371
- '\u01C6': 'dz',
1372
- '\u24D4': 'e',
1373
- '\uFF45': 'e',
1374
- '\u00E8': 'e',
1375
- '\u00E9': 'e',
1376
- '\u00EA': 'e',
1377
- '\u1EC1': 'e',
1378
- '\u1EBF': 'e',
1379
- '\u1EC5': 'e',
1380
- '\u1EC3': 'e',
1381
- '\u1EBD': 'e',
1382
- '\u0113': 'e',
1383
- '\u1E15': 'e',
1384
- '\u1E17': 'e',
1385
- '\u0115': 'e',
1386
- '\u0117': 'e',
1387
- '\u00EB': 'e',
1388
- '\u1EBB': 'e',
1389
- '\u011B': 'e',
1390
- '\u0205': 'e',
1391
- '\u0207': 'e',
1392
- '\u1EB9': 'e',
1393
- '\u1EC7': 'e',
1394
- '\u0229': 'e',
1395
- '\u1E1D': 'e',
1396
- '\u0119': 'e',
1397
- '\u1E19': 'e',
1398
- '\u1E1B': 'e',
1399
- '\u0247': 'e',
1400
- '\u025B': 'e',
1401
- '\u01DD': 'e',
1402
- '\u24D5': 'f',
1403
- '\uFF46': 'f',
1404
- '\u1E1F': 'f',
1405
- '\u0192': 'f',
1406
- '\uA77C': 'f',
1407
- '\u24D6': 'g',
1408
- '\uFF47': 'g',
1409
- '\u01F5': 'g',
1410
- '\u011D': 'g',
1411
- '\u1E21': 'g',
1412
- '\u011F': 'g',
1413
- '\u0121': 'g',
1414
- '\u01E7': 'g',
1415
- '\u0123': 'g',
1416
- '\u01E5': 'g',
1417
- '\u0260': 'g',
1418
- '\uA7A1': 'g',
1419
- '\u1D79': 'g',
1420
- '\uA77F': 'g',
1421
- '\u24D7': 'h',
1422
- '\uFF48': 'h',
1423
- '\u0125': 'h',
1424
- '\u1E23': 'h',
1425
- '\u1E27': 'h',
1426
- '\u021F': 'h',
1427
- '\u1E25': 'h',
1428
- '\u1E29': 'h',
1429
- '\u1E2B': 'h',
1430
- '\u1E96': 'h',
1431
- '\u0127': 'h',
1432
- '\u2C68': 'h',
1433
- '\u2C76': 'h',
1434
- '\u0265': 'h',
1435
- '\u0195': 'hv',
1436
- '\u24D8': 'i',
1437
- '\uFF49': 'i',
1438
- '\u00EC': 'i',
1439
- '\u00ED': 'i',
1440
- '\u00EE': 'i',
1441
- '\u0129': 'i',
1442
- '\u012B': 'i',
1443
- '\u012D': 'i',
1444
- '\u00EF': 'i',
1445
- '\u1E2F': 'i',
1446
- '\u1EC9': 'i',
1447
- '\u01D0': 'i',
1448
- '\u0209': 'i',
1449
- '\u020B': 'i',
1450
- '\u1ECB': 'i',
1451
- '\u012F': 'i',
1452
- '\u1E2D': 'i',
1453
- '\u0268': 'i',
1454
- '\u0131': 'i',
1455
- '\u24D9': 'j',
1456
- '\uFF4A': 'j',
1457
- '\u0135': 'j',
1458
- '\u01F0': 'j',
1459
- '\u0249': 'j',
1460
- '\u24DA': 'k',
1461
- '\uFF4B': 'k',
1462
- '\u1E31': 'k',
1463
- '\u01E9': 'k',
1464
- '\u1E33': 'k',
1465
- '\u0137': 'k',
1466
- '\u1E35': 'k',
1467
- '\u0199': 'k',
1468
- '\u2C6A': 'k',
1469
- '\uA741': 'k',
1470
- '\uA743': 'k',
1471
- '\uA745': 'k',
1472
- '\uA7A3': 'k',
1473
- '\u24DB': 'l',
1474
- '\uFF4C': 'l',
1475
- '\u0140': 'l',
1476
- '\u013A': 'l',
1477
- '\u013E': 'l',
1478
- '\u1E37': 'l',
1479
- '\u1E39': 'l',
1480
- '\u013C': 'l',
1481
- '\u1E3D': 'l',
1482
- '\u1E3B': 'l',
1483
- '\u017F': 'l',
1484
- '\u0142': 'l',
1485
- '\u019A': 'l',
1486
- '\u026B': 'l',
1487
- '\u2C61': 'l',
1488
- '\uA749': 'l',
1489
- '\uA781': 'l',
1490
- '\uA747': 'l',
1491
- '\u01C9': 'lj',
1492
- '\u24DC': 'm',
1493
- '\uFF4D': 'm',
1494
- '\u1E3F': 'm',
1495
- '\u1E41': 'm',
1496
- '\u1E43': 'm',
1497
- '\u0271': 'm',
1498
- '\u026F': 'm',
1499
- '\u24DD': 'n',
1500
- '\uFF4E': 'n',
1501
- '\u01F9': 'n',
1502
- '\u0144': 'n',
1503
- '\u00F1': 'n',
1504
- '\u1E45': 'n',
1505
- '\u0148': 'n',
1506
- '\u1E47': 'n',
1507
- '\u0146': 'n',
1508
- '\u1E4B': 'n',
1509
- '\u1E49': 'n',
1510
- '\u019E': 'n',
1511
- '\u0272': 'n',
1512
- '\u0149': 'n',
1513
- '\uA791': 'n',
1514
- '\uA7A5': 'n',
1515
- '\u01CC': 'nj',
1516
- '\u24DE': 'o',
1517
- '\uFF4F': 'o',
1518
- '\u00F2': 'o',
1519
- '\u00F3': 'o',
1520
- '\u00F4': 'o',
1521
- '\u1ED3': 'o',
1522
- '\u1ED1': 'o',
1523
- '\u1ED7': 'o',
1524
- '\u1ED5': 'o',
1525
- '\u00F5': 'o',
1526
- '\u1E4D': 'o',
1527
- '\u022D': 'o',
1528
- '\u1E4F': 'o',
1529
- '\u014D': 'o',
1530
- '\u1E51': 'o',
1531
- '\u1E53': 'o',
1532
- '\u014F': 'o',
1533
- '\u022F': 'o',
1534
- '\u0231': 'o',
1535
- '\u00F6': 'o',
1536
- '\u022B': 'o',
1537
- '\u1ECF': 'o',
1538
- '\u0151': 'o',
1539
- '\u01D2': 'o',
1540
- '\u020D': 'o',
1541
- '\u020F': 'o',
1542
- '\u01A1': 'o',
1543
- '\u1EDD': 'o',
1544
- '\u1EDB': 'o',
1545
- '\u1EE1': 'o',
1546
- '\u1EDF': 'o',
1547
- '\u1EE3': 'o',
1548
- '\u1ECD': 'o',
1549
- '\u1ED9': 'o',
1550
- '\u01EB': 'o',
1551
- '\u01ED': 'o',
1552
- '\u00F8': 'o',
1553
- '\u01FF': 'o',
1554
- '\u0254': 'o',
1555
- '\uA74B': 'o',
1556
- '\uA74D': 'o',
1557
- '\u0275': 'o',
1558
- '\u01A3': 'oi',
1559
- '\u0223': 'ou',
1560
- '\uA74F': 'oo',
1561
- '\u24DF': 'p',
1562
- '\uFF50': 'p',
1563
- '\u1E55': 'p',
1564
- '\u1E57': 'p',
1565
- '\u01A5': 'p',
1566
- '\u1D7D': 'p',
1567
- '\uA751': 'p',
1568
- '\uA753': 'p',
1569
- '\uA755': 'p',
1570
- '\u24E0': 'q',
1571
- '\uFF51': 'q',
1572
- '\u024B': 'q',
1573
- '\uA757': 'q',
1574
- '\uA759': 'q',
1575
- '\u24E1': 'r',
1576
- '\uFF52': 'r',
1577
- '\u0155': 'r',
1578
- '\u1E59': 'r',
1579
- '\u0159': 'r',
1580
- '\u0211': 'r',
1581
- '\u0213': 'r',
1582
- '\u1E5B': 'r',
1583
- '\u1E5D': 'r',
1584
- '\u0157': 'r',
1585
- '\u1E5F': 'r',
1586
- '\u024D': 'r',
1587
- '\u027D': 'r',
1588
- '\uA75B': 'r',
1589
- '\uA7A7': 'r',
1590
- '\uA783': 'r',
1591
- '\u24E2': 's',
1592
- '\uFF53': 's',
1593
- '\u00DF': 's',
1594
- '\u015B': 's',
1595
- '\u1E65': 's',
1596
- '\u015D': 's',
1597
- '\u1E61': 's',
1598
- '\u0161': 's',
1599
- '\u1E67': 's',
1600
- '\u1E63': 's',
1601
- '\u1E69': 's',
1602
- '\u0219': 's',
1603
- '\u015F': 's',
1604
- '\u023F': 's',
1605
- '\uA7A9': 's',
1606
- '\uA785': 's',
1607
- '\u1E9B': 's',
1608
- '\u24E3': 't',
1609
- '\uFF54': 't',
1610
- '\u1E6B': 't',
1611
- '\u1E97': 't',
1612
- '\u0165': 't',
1613
- '\u1E6D': 't',
1614
- '\u021B': 't',
1615
- '\u0163': 't',
1616
- '\u1E71': 't',
1617
- '\u1E6F': 't',
1618
- '\u0167': 't',
1619
- '\u01AD': 't',
1620
- '\u0288': 't',
1621
- '\u2C66': 't',
1622
- '\uA787': 't',
1623
- '\uA729': 'tz',
1624
- '\u24E4': 'u',
1625
- '\uFF55': 'u',
1626
- '\u00F9': 'u',
1627
- '\u00FA': 'u',
1628
- '\u00FB': 'u',
1629
- '\u0169': 'u',
1630
- '\u1E79': 'u',
1631
- '\u016B': 'u',
1632
- '\u1E7B': 'u',
1633
- '\u016D': 'u',
1634
- '\u00FC': 'u',
1635
- '\u01DC': 'u',
1636
- '\u01D8': 'u',
1637
- '\u01D6': 'u',
1638
- '\u01DA': 'u',
1639
- '\u1EE7': 'u',
1640
- '\u016F': 'u',
1641
- '\u0171': 'u',
1642
- '\u01D4': 'u',
1643
- '\u0215': 'u',
1644
- '\u0217': 'u',
1645
- '\u01B0': 'u',
1646
- '\u1EEB': 'u',
1647
- '\u1EE9': 'u',
1648
- '\u1EEF': 'u',
1649
- '\u1EED': 'u',
1650
- '\u1EF1': 'u',
1651
- '\u1EE5': 'u',
1652
- '\u1E73': 'u',
1653
- '\u0173': 'u',
1654
- '\u1E77': 'u',
1655
- '\u1E75': 'u',
1656
- '\u0289': 'u',
1657
- '\u24E5': 'v',
1658
- '\uFF56': 'v',
1659
- '\u1E7D': 'v',
1660
- '\u1E7F': 'v',
1661
- '\u028B': 'v',
1662
- '\uA75F': 'v',
1663
- '\u028C': 'v',
1664
- '\uA761': 'vy',
1665
- '\u24E6': 'w',
1666
- '\uFF57': 'w',
1667
- '\u1E81': 'w',
1668
- '\u1E83': 'w',
1669
- '\u0175': 'w',
1670
- '\u1E87': 'w',
1671
- '\u1E85': 'w',
1672
- '\u1E98': 'w',
1673
- '\u1E89': 'w',
1674
- '\u2C73': 'w',
1675
- '\u24E7': 'x',
1676
- '\uFF58': 'x',
1677
- '\u1E8B': 'x',
1678
- '\u1E8D': 'x',
1679
- '\u24E8': 'y',
1680
- '\uFF59': 'y',
1681
- '\u1EF3': 'y',
1682
- '\u00FD': 'y',
1683
- '\u0177': 'y',
1684
- '\u1EF9': 'y',
1685
- '\u0233': 'y',
1686
- '\u1E8F': 'y',
1687
- '\u00FF': 'y',
1688
- '\u1EF7': 'y',
1689
- '\u1E99': 'y',
1690
- '\u1EF5': 'y',
1691
- '\u01B4': 'y',
1692
- '\u024F': 'y',
1693
- '\u1EFF': 'y',
1694
- '\u24E9': 'z',
1695
- '\uFF5A': 'z',
1696
- '\u017A': 'z',
1697
- '\u1E91': 'z',
1698
- '\u017C': 'z',
1699
- '\u017E': 'z',
1700
- '\u1E93': 'z',
1701
- '\u1E95': 'z',
1702
- '\u01B6': 'z',
1703
- '\u0225': 'z',
1704
- '\u0240': 'z',
1705
- '\u2C6C': 'z',
1706
- '\uA763': 'z',
1707
- '\u0386': '\u0391',
1708
- '\u0388': '\u0395',
1709
- '\u0389': '\u0397',
1710
- '\u038A': '\u0399',
1711
- '\u03AA': '\u0399',
1712
- '\u038C': '\u039F',
1713
- '\u038E': '\u03A5',
1714
- '\u03AB': '\u03A5',
1715
- '\u038F': '\u03A9',
1716
- '\u03AC': '\u03B1',
1717
- '\u03AD': '\u03B5',
1718
- '\u03AE': '\u03B7',
1719
- '\u03AF': '\u03B9',
1720
- '\u03CA': '\u03B9',
1721
- '\u0390': '\u03B9',
1722
- '\u03CC': '\u03BF',
1723
- '\u03CD': '\u03C5',
1724
- '\u03CB': '\u03C5',
1725
- '\u03B0': '\u03C5',
1726
- '\u03C9': '\u03C9',
1727
- '\u03C2': '\u03C3'
1728
- };
1729
-
1730
- function stripSpecialChars(text) {
1731
- const match = a => diacritics[a] || a;
1732
-
1733
- return text.replace(/[^\u0000-\u007E]/g, match);
1734
- }
1735
-
1736
- class ItemsList {
1737
- constructor(_ngSelect, _selectionModel) {
1738
- this._ngSelect = _ngSelect;
1739
- this._selectionModel = _selectionModel;
1740
- this._items = [];
1741
- this._filteredItems = [];
1742
- this._markedIndex = -1;
1743
- }
1744
-
1745
- get items() {
1746
- return this._items;
1747
- }
1748
-
1749
- get filteredItems() {
1750
- return this._filteredItems;
1751
- }
1752
-
1753
- get markedIndex() {
1754
- return this._markedIndex;
1755
- }
1756
-
1757
- get selectedItems() {
1758
- return this._selectionModel.value;
1759
- }
1760
-
1761
- get markedItem() {
1762
- return this._filteredItems[this._markedIndex];
1763
- }
1764
-
1765
- get noItemsToSelect() {
1766
- return this._ngSelect.hideSelected && this._items.length === this.selectedItems.length;
1767
- }
1768
-
1769
- get maxItemsSelected() {
1770
- return this._ngSelect.multiple && this._ngSelect.maxSelectedItems <= this.selectedItems.length;
1771
- }
1772
-
1773
- get lastSelectedItem() {
1774
- let i = this.selectedItems.length - 1;
1775
-
1776
- for (; i >= 0; i--) {
1777
- const item = this.selectedItems[i];
1778
-
1779
- if (!item.disabled) {
1780
- return item;
1781
- }
1782
- }
1783
-
1784
- return null;
1785
- }
1786
-
1787
- setItems(items) {
1788
- this._items = items.map((item, index) => this.mapItem(item, index));
1789
-
1790
- if (this._ngSelect.groupBy) {
1791
- this._groups = this._groupBy(this._items, this._ngSelect.groupBy);
1792
- this._items = this._flatten(this._groups);
1793
- } else {
1794
- this._groups = new Map();
1795
-
1796
- this._groups.set(undefined, this._items);
1797
- }
1798
-
1799
- this._filteredItems = [...this._items];
1800
- }
1801
-
1802
- select(item) {
1803
- if (item.selected || this.maxItemsSelected) {
1804
- return;
1805
- }
1806
-
1807
- const multiple = this._ngSelect.multiple;
1808
-
1809
- if (!multiple) {
1810
- this.clearSelected();
1811
- }
1812
-
1813
- this._selectionModel.select(item, multiple, this._ngSelect.selectableGroupAsModel);
1814
-
1815
- if (this._ngSelect.hideSelected) {
1816
- this._hideSelected(item);
1817
- }
1818
- }
1819
-
1820
- unselect(item) {
1821
- if (!item.selected) {
1822
- return;
1823
- }
1824
-
1825
- this._selectionModel.unselect(item, this._ngSelect.multiple);
1826
-
1827
- if (this._ngSelect.hideSelected && isDefined(item.index) && this._ngSelect.multiple) {
1828
- this._showSelected(item);
1829
- }
1830
- }
1831
-
1832
- findItem(value) {
1833
- let findBy;
1834
-
1835
- if (this._ngSelect.compareWith) {
1836
- findBy = item => this._ngSelect.compareWith(item.value, value);
1837
- } else if (this._ngSelect.bindValue) {
1838
- findBy = item => !item.children && this.resolveNested(item.value, this._ngSelect.bindValue) === value;
1839
- } else {
1840
- findBy = item => item.value === value || !item.children && item.label && item.label === this.resolveNested(value, this._ngSelect.bindLabel);
1841
- }
1842
-
1843
- return this._items.find(item => findBy(item));
1844
- }
1845
-
1846
- addItem(item) {
1847
- const option = this.mapItem(item, this._items.length);
1848
-
1849
- this._items.push(option);
1850
-
1851
- this._filteredItems.push(option);
1852
-
1853
- return option;
1854
- }
1855
-
1856
- clearSelected(keepDisabled = false) {
1857
- this._selectionModel.clear(keepDisabled);
1858
-
1859
- this._items.forEach(item => {
1860
- item.selected = keepDisabled && item.selected && item.disabled;
1861
- item.marked = false;
1862
- });
1863
-
1864
- if (this._ngSelect.hideSelected) {
1865
- this.resetFilteredItems();
1866
- }
1867
- }
1868
-
1869
- findByLabel(term) {
1870
- term = stripSpecialChars(term).toLocaleLowerCase();
1871
- return this.filteredItems.find(item => {
1872
- const label = stripSpecialChars(item.label).toLocaleLowerCase();
1873
- return label.substr(0, term.length) === term;
1874
- });
1875
- }
1876
-
1877
- filter(term) {
1878
- if (!term) {
1879
- this.resetFilteredItems();
1880
- return;
1881
- }
1882
-
1883
- this._filteredItems = [];
1884
- term = this._ngSelect.searchFn ? term : stripSpecialChars(term).toLocaleLowerCase();
1885
- const match = this._ngSelect.searchFn || this._defaultSearchFn;
1886
- const hideSelected = this._ngSelect.hideSelected;
1887
-
1888
- for (const key of Array.from(this._groups.keys())) {
1889
- const matchedItems = [];
1890
-
1891
- for (const item of this._groups.get(key)) {
1892
- if (hideSelected && (item.parent && item.parent.selected || item.selected)) {
1893
- continue;
1894
- }
1895
-
1896
- const searchItem = this._ngSelect.searchFn ? item.value : item;
1897
-
1898
- if (match(term, searchItem)) {
1899
- matchedItems.push(item);
1900
- }
1901
- }
1902
-
1903
- if (matchedItems.length > 0) {
1904
- const [last] = matchedItems.slice(-1);
1905
-
1906
- if (last.parent) {
1907
- const head = this._items.find(x => x === last.parent);
1908
-
1909
- this._filteredItems.push(head);
1910
- }
1911
-
1912
- this._filteredItems.push(...matchedItems);
1913
- }
1914
- }
1915
- }
1916
-
1917
- resetFilteredItems() {
1918
- if (this._filteredItems.length === this._items.length) {
1919
- return;
1920
- }
1921
-
1922
- if (this._ngSelect.hideSelected && this.selectedItems.length > 0) {
1923
- this._filteredItems = this._items.filter(x => !x.selected);
1924
- } else {
1925
- this._filteredItems = this._items;
1926
- }
1927
- }
1928
-
1929
- unmarkItem() {
1930
- this._markedIndex = -1;
1931
- }
1932
-
1933
- markNextItem() {
1934
- this._stepToItem(+1);
1935
- }
1936
-
1937
- markPreviousItem() {
1938
- this._stepToItem(-1);
1939
- }
1940
-
1941
- markItem(item) {
1942
- this._markedIndex = this._filteredItems.indexOf(item);
1943
- }
1944
-
1945
- markSelectedOrDefault(markDefault) {
1946
- if (this._filteredItems.length === 0) {
1947
- return;
1948
- }
1949
-
1950
- const lastMarkedIndex = this._getLastMarkedIndex();
1951
-
1952
- if (lastMarkedIndex > -1) {
1953
- this._markedIndex = lastMarkedIndex;
1954
- } else {
1955
- this._markedIndex = markDefault ? this.filteredItems.findIndex(x => !x.disabled) : -1;
1956
- }
1957
- }
1958
-
1959
- resolveNested(option, key) {
1960
- if (!isObject(option)) {
1961
- return option;
1962
- }
1963
-
1964
- if (key.indexOf('.') === -1) {
1965
- return option[key];
1966
- } else {
1967
- const keys = key.split('.');
1968
- let value = option;
1969
-
1970
- for (let i = 0, len = keys.length; i < len; ++i) {
1971
- if (value == null) {
1972
- return null;
1973
- }
1974
-
1975
- value = value[keys[i]];
1976
- }
1977
-
1978
- return value;
1979
- }
1980
- }
1981
-
1982
- mapItem(item, index) {
1983
- const label = isDefined(item.$ngOptionLabel) ? item.$ngOptionLabel : this.resolveNested(item, this._ngSelect.bindLabel);
1984
- const value = isDefined(item.$ngOptionValue) ? item.$ngOptionValue : item;
1985
- return {
1986
- index,
1987
- label: isDefined(label) ? label.toString() : '',
1988
- value,
1989
- disabled: item.disabled,
1990
- htmlId: `${this._ngSelect.dropdownId}-${index}`
1991
- };
1992
- }
1993
-
1994
- mapSelectedItems() {
1995
- const multiple = this._ngSelect.multiple;
1996
-
1997
- for (const selected of this.selectedItems) {
1998
- const value = this._ngSelect.bindValue ? this.resolveNested(selected.value, this._ngSelect.bindValue) : selected.value;
1999
- const item = isDefined(value) ? this.findItem(value) : null;
2000
-
2001
- this._selectionModel.unselect(selected, multiple);
2002
-
2003
- this._selectionModel.select(item || selected, multiple, this._ngSelect.selectableGroupAsModel);
2004
- }
2005
-
2006
- if (this._ngSelect.hideSelected) {
2007
- this._filteredItems = this.filteredItems.filter(x => this.selectedItems.indexOf(x) === -1);
2008
- }
2009
- }
2010
-
2011
- _showSelected(item) {
2012
- this._filteredItems.push(item);
2013
-
2014
- if (item.parent) {
2015
- const parent = item.parent;
2016
-
2017
- const parentExists = this._filteredItems.find(x => x === parent);
2018
-
2019
- if (!parentExists) {
2020
- this._filteredItems.push(parent);
2021
- }
2022
- } else if (item.children) {
2023
- for (const child of item.children) {
2024
- child.selected = false;
2025
-
2026
- this._filteredItems.push(child);
2027
- }
2028
- }
2029
-
2030
- this._filteredItems = [...this._filteredItems.sort((a, b) => a.index - b.index)];
2031
- }
2032
-
2033
- _hideSelected(item) {
2034
- this._filteredItems = this._filteredItems.filter(x => x !== item);
2035
-
2036
- if (item.parent) {
2037
- const children = item.parent.children;
2038
-
2039
- if (children.every(x => x.selected)) {
2040
- this._filteredItems = this._filteredItems.filter(x => x !== item.parent);
2041
- }
2042
- } else if (item.children) {
2043
- this._filteredItems = this.filteredItems.filter(x => x.parent !== item);
2044
- }
2045
- }
2046
-
2047
- _defaultSearchFn(search, opt) {
2048
- const label = stripSpecialChars(opt.label).toLocaleLowerCase();
2049
- return label.indexOf(search) > -1;
2050
- }
2051
-
2052
- _getNextItemIndex(steps) {
2053
- if (steps > 0) {
2054
- return this._markedIndex >= this._filteredItems.length - 1 ? 0 : this._markedIndex + 1;
2055
- }
2056
-
2057
- return this._markedIndex <= 0 ? this._filteredItems.length - 1 : this._markedIndex - 1;
2058
- }
2059
-
2060
- _stepToItem(steps) {
2061
- if (this._filteredItems.length === 0 || this._filteredItems.every(x => x.disabled)) {
2062
- return;
2063
- }
2064
-
2065
- this._markedIndex = this._getNextItemIndex(steps);
2066
-
2067
- if (this.markedItem.disabled) {
2068
- this._stepToItem(steps);
2069
- }
2070
- }
2071
-
2072
- _getLastMarkedIndex() {
2073
- if (this._ngSelect.hideSelected) {
2074
- return -1;
2075
- }
2076
-
2077
- if (this._markedIndex > -1 && this.markedItem === undefined) {
2078
- return -1;
2079
- }
2080
-
2081
- const selectedIndex = this._filteredItems.indexOf(this.lastSelectedItem);
2082
-
2083
- if (this.lastSelectedItem && selectedIndex < 0) {
2084
- return -1;
2085
- }
2086
-
2087
- return Math.max(this.markedIndex, selectedIndex);
2088
- }
2089
-
2090
- _groupBy(items, prop) {
2091
- const groups = new Map();
2092
-
2093
- if (items.length === 0) {
2094
- return groups;
2095
- } // Check if items are already grouped by given key.
2096
-
2097
-
2098
- if (Array.isArray(items[0].value[prop])) {
2099
- for (const item of items) {
2100
- const children = (item.value[prop] || []).map((x, index) => this.mapItem(x, index));
2101
- groups.set(item, children);
2102
- }
2103
-
2104
- return groups;
2105
- }
2106
-
2107
- const isFnKey = isFunction(this._ngSelect.groupBy);
2108
-
2109
- const keyFn = item => {
2110
- const key = isFnKey ? prop(item.value) : item.value[prop];
2111
- return isDefined(key) ? key : undefined;
2112
- }; // Group items by key.
2113
-
2114
-
2115
- for (const item of items) {
2116
- const key = keyFn(item);
2117
- const group = groups.get(key);
2118
-
2119
- if (group) {
2120
- group.push(item);
2121
- } else {
2122
- groups.set(key, [item]);
2123
- }
2124
- }
2125
-
2126
- return groups;
2127
- }
2128
-
2129
- _flatten(groups) {
2130
- const isGroupByFn = isFunction(this._ngSelect.groupBy);
2131
- const items = [];
2132
-
2133
- for (const key of Array.from(groups.keys())) {
2134
- let i = items.length;
2135
-
2136
- if (key === undefined) {
2137
- const withoutGroup = groups.get(undefined) || [];
2138
- items.push(...withoutGroup.map(x => {
2139
- x.index = i++;
2140
- return x;
2141
- }));
2142
- continue;
2143
- }
2144
-
2145
- const isObjectKey = isObject(key);
2146
- const parent = {
2147
- label: isObjectKey ? '' : String(key),
2148
- children: undefined,
2149
- parent: null,
2150
- index: i++,
2151
- disabled: !this._ngSelect.selectableGroup,
2152
- htmlId: newId()
2153
- };
2154
- const groupKey = isGroupByFn ? this._ngSelect.bindLabel : this._ngSelect.groupBy;
2155
-
2156
- const groupValue = this._ngSelect.groupValue || (() => {
2157
- if (isObjectKey) {
2158
- return key.value;
2159
- }
2160
-
2161
- return {
2162
- [groupKey]: key
2163
- };
2164
- });
2165
-
2166
- const children = groups.get(key).map(x => {
2167
- x.parent = parent;
2168
- x.children = undefined;
2169
- x.index = i++;
2170
- return x;
2171
- });
2172
- parent.children = children;
2173
- parent.value = groupValue(key, children.map(x => x.value));
2174
- items.push(parent);
2175
- items.push(...children);
2176
- }
2177
-
2178
- return items;
2179
- }
2180
-
2181
- }
2182
-
2183
- var KeyCode;
2184
-
2185
- (function (KeyCode) {
2186
- KeyCode[KeyCode["Tab"] = 9] = "Tab";
2187
- KeyCode[KeyCode["Enter"] = 13] = "Enter";
2188
- KeyCode[KeyCode["Esc"] = 27] = "Esc";
2189
- KeyCode[KeyCode["Space"] = 32] = "Space";
2190
- KeyCode[KeyCode["ArrowUp"] = 38] = "ArrowUp";
2191
- KeyCode[KeyCode["ArrowDown"] = 40] = "ArrowDown";
2192
- KeyCode[KeyCode["Backspace"] = 8] = "Backspace";
2193
- })(KeyCode || (KeyCode = {}));
2194
-
2195
- class NgDropdownPanelService {
2196
- constructor() {
2197
- this._dimensions = {
2198
- itemHeight: 0,
2199
- panelHeight: 0,
2200
- itemsPerViewport: 0
2201
- };
2202
- }
2203
-
2204
- get dimensions() {
2205
- return this._dimensions;
2206
- }
2207
-
2208
- calculateItems(scrollPos, itemsLength, buffer) {
2209
- const d = this._dimensions;
2210
- const scrollHeight = d.itemHeight * itemsLength;
2211
- const scrollTop = Math.max(0, scrollPos);
2212
- const indexByScrollTop = scrollTop / scrollHeight * itemsLength;
2213
- let end = Math.min(itemsLength, Math.ceil(indexByScrollTop) + (d.itemsPerViewport + 1));
2214
- const maxStartEnd = end;
2215
- const maxStart = Math.max(0, maxStartEnd - d.itemsPerViewport);
2216
- let start = Math.min(maxStart, Math.floor(indexByScrollTop));
2217
- let topPadding = d.itemHeight * Math.ceil(start) - d.itemHeight * Math.min(start, buffer);
2218
- topPadding = !isNaN(topPadding) ? topPadding : 0;
2219
- start = !isNaN(start) ? start : -1;
2220
- end = !isNaN(end) ? end : -1;
2221
- start -= buffer;
2222
- start = Math.max(0, start);
2223
- end += buffer;
2224
- end = Math.min(itemsLength, end);
2225
- return {
2226
- topPadding,
2227
- scrollHeight,
2228
- start,
2229
- end
2230
- };
2231
- }
2232
-
2233
- setDimensions(itemHeight, panelHeight) {
2234
- const itemsPerViewport = Math.max(1, Math.floor(panelHeight / itemHeight));
2235
- this._dimensions = {
2236
- itemHeight,
2237
- panelHeight,
2238
- itemsPerViewport
2239
- };
2240
- }
2241
-
2242
- getScrollTo(itemTop, itemHeight, lastScroll) {
2243
- const {
2244
- panelHeight
2245
- } = this.dimensions;
2246
- const itemBottom = itemTop + itemHeight;
2247
- const top = lastScroll;
2248
- const bottom = top + panelHeight;
2249
-
2250
- if (panelHeight >= itemBottom && lastScroll === itemTop) {
2251
- return null;
2252
- }
2253
-
2254
- if (itemBottom > bottom) {
2255
- return top + itemBottom - bottom;
2256
- } else if (itemTop <= top) {
2257
- return itemTop;
2258
- }
2259
-
2260
- return null;
2261
- }
2262
-
2263
- }
2264
-
2265
- NgDropdownPanelService.ɵfac = function NgDropdownPanelService_Factory(t) {
2266
- return new (t || NgDropdownPanelService)();
2267
- };
2268
-
2269
- NgDropdownPanelService.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
2270
- token: NgDropdownPanelService,
2271
- factory: NgDropdownPanelService.ɵfac
2272
- });
2273
-
2274
- (function () {
2275
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgDropdownPanelService, [{
2276
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable
2277
- }], null, null);
2278
- })();
2279
-
2280
- const CSS_POSITIONS = ['top', 'right', 'bottom', 'left'];
2281
- const SCROLL_SCHEDULER = typeof requestAnimationFrame !== 'undefined' ? rxjs__WEBPACK_IMPORTED_MODULE_1__.animationFrameScheduler : rxjs__WEBPACK_IMPORTED_MODULE_2__.asapScheduler;
2282
-
2283
- class NgDropdownPanelComponent {
2284
- constructor(_renderer, _zone, _panelService, _elementRef, _document) {
2285
- this._renderer = _renderer;
2286
- this._zone = _zone;
2287
- this._panelService = _panelService;
2288
- this._document = _document;
2289
- this.items = [];
2290
- this.position = 'auto';
2291
- this.virtualScroll = false;
2292
- this.filterValue = null;
2293
- this.update = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
2294
- this.scroll = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
2295
- this.scrollToEnd = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
2296
- this.outsideClick = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
2297
- this._destroy$ = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject();
2298
- this._scrollToEndFired = false;
2299
- this._updateScrollHeight = false;
2300
- this._lastScrollPosition = 0;
2301
- this._dropdown = _elementRef.nativeElement;
2302
- }
2303
-
2304
- get currentPosition() {
2305
- return this._currentPosition;
2306
- }
2307
-
2308
- get itemsLength() {
2309
- return this._itemsLength;
2310
- }
2311
-
2312
- set itemsLength(value) {
2313
- if (value !== this._itemsLength) {
2314
- this._itemsLength = value;
2315
-
2316
- this._onItemsLengthChanged();
2317
- }
2318
- }
2319
-
2320
- get _startOffset() {
2321
- if (this.markedItem) {
2322
- const {
2323
- itemHeight,
2324
- panelHeight
2325
- } = this._panelService.dimensions;
2326
- const offset = this.markedItem.index * itemHeight;
2327
- return panelHeight > offset ? 0 : offset;
2328
- }
2329
-
2330
- return 0;
2331
- }
2332
-
2333
- ngOnInit() {
2334
- this._select = this._dropdown.parentElement;
2335
- this._virtualPadding = this.paddingElementRef.nativeElement;
2336
- this._scrollablePanel = this.scrollElementRef.nativeElement;
2337
- this._contentPanel = this.contentElementRef.nativeElement;
2338
-
2339
- this._handleScroll();
2340
-
2341
- this._handleOutsideClick();
2342
-
2343
- this._appendDropdown();
2344
-
2345
- this._setupMousedownListener();
2346
- }
2347
-
2348
- ngOnChanges(changes) {
2349
- if (changes.items) {
2350
- const change = changes.items;
2351
-
2352
- this._onItemsChange(change.currentValue, change.firstChange);
2353
- }
2354
- }
2355
-
2356
- ngOnDestroy() {
2357
- this._destroy$.next();
2358
-
2359
- this._destroy$.complete();
2360
-
2361
- this._destroy$.unsubscribe();
2362
-
2363
- if (this.appendTo) {
2364
- this._renderer.removeChild(this._dropdown.parentNode, this._dropdown);
2365
- }
2366
- }
2367
-
2368
- scrollTo(option, startFromOption = false) {
2369
- if (!option) {
2370
- return;
2371
- }
2372
-
2373
- const index = this.items.indexOf(option);
2374
-
2375
- if (index < 0 || index >= this.itemsLength) {
2376
- return;
2377
- }
2378
-
2379
- let scrollTo;
2380
-
2381
- if (this.virtualScroll) {
2382
- const itemHeight = this._panelService.dimensions.itemHeight;
2383
- scrollTo = this._panelService.getScrollTo(index * itemHeight, itemHeight, this._lastScrollPosition);
2384
- } else {
2385
- const item = this._dropdown.querySelector(`#${option.htmlId}`);
2386
-
2387
- const lastScroll = startFromOption ? item.offsetTop : this._lastScrollPosition;
2388
- scrollTo = this._panelService.getScrollTo(item.offsetTop, item.clientHeight, lastScroll);
2389
- }
2390
-
2391
- if (isDefined(scrollTo)) {
2392
- this._scrollablePanel.scrollTop = scrollTo;
2393
- }
2394
- }
2395
-
2396
- scrollToTag() {
2397
- const panel = this._scrollablePanel;
2398
- panel.scrollTop = panel.scrollHeight - panel.clientHeight;
2399
- }
2400
-
2401
- adjustPosition() {
2402
- this._updateYPosition();
2403
- }
2404
-
2405
- _handleDropdownPosition() {
2406
- this._currentPosition = this._calculateCurrentPosition(this._dropdown);
2407
-
2408
- if (CSS_POSITIONS.includes(this._currentPosition)) {
2409
- this._updateDropdownClass(this._currentPosition);
2410
- } else {
2411
- this._updateDropdownClass('bottom');
2412
- }
2413
-
2414
- if (this.appendTo) {
2415
- this._updateYPosition();
2416
- }
2417
-
2418
- this._dropdown.style.opacity = '1';
2419
- }
2420
-
2421
- _updateDropdownClass(currentPosition) {
2422
- CSS_POSITIONS.forEach(position => {
2423
- const REMOVE_CSS_CLASS = `ng-select-${position}`;
2424
-
2425
- this._renderer.removeClass(this._dropdown, REMOVE_CSS_CLASS);
2426
-
2427
- this._renderer.removeClass(this._select, REMOVE_CSS_CLASS);
2428
- });
2429
- const ADD_CSS_CLASS = `ng-select-${currentPosition}`;
2430
-
2431
- this._renderer.addClass(this._dropdown, ADD_CSS_CLASS);
2432
-
2433
- this._renderer.addClass(this._select, ADD_CSS_CLASS);
2434
- }
2435
-
2436
- _handleScroll() {
2437
- this._zone.runOutsideAngular(() => {
2438
- (0,rxjs__WEBPACK_IMPORTED_MODULE_4__.fromEvent)(this.scrollElementRef.nativeElement, 'scroll').pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.takeUntil)(this._destroy$), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.auditTime)(0, SCROLL_SCHEDULER)).subscribe(e => {
2439
- const path = e.path || e.composedPath && e.composedPath();
2440
- const scrollTop = !path || path.length === 0 ? e.target.scrollTop : path[0].scrollTop;
2441
-
2442
- this._onContentScrolled(scrollTop);
2443
- });
2444
- });
2445
- }
2446
-
2447
- _handleOutsideClick() {
2448
- if (!this._document) {
2449
- return;
2450
- }
2451
-
2452
- this._zone.runOutsideAngular(() => {
2453
- (0,rxjs__WEBPACK_IMPORTED_MODULE_7__.merge)((0,rxjs__WEBPACK_IMPORTED_MODULE_4__.fromEvent)(this._document, 'touchstart', {
2454
- capture: true
2455
- }), (0,rxjs__WEBPACK_IMPORTED_MODULE_4__.fromEvent)(this._document, 'mousedown', {
2456
- capture: true
2457
- })).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.takeUntil)(this._destroy$)).subscribe($event => this._checkToClose($event));
2458
- });
2459
- }
2460
-
2461
- _checkToClose($event) {
2462
- if (this._select.contains($event.target) || this._dropdown.contains($event.target)) {
2463
- return;
2464
- }
2465
-
2466
- const path = $event.path || $event.composedPath && $event.composedPath();
2467
-
2468
- if ($event.target && $event.target.shadowRoot && path && path[0] && this._select.contains(path[0])) {
2469
- return;
2470
- }
2471
-
2472
- this._zone.run(() => this.outsideClick.emit());
2473
- }
2474
-
2475
- _onItemsChange(items, firstChange) {
2476
- this.items = items || [];
2477
- this._scrollToEndFired = false;
2478
- this.itemsLength = items.length;
2479
-
2480
- if (this.virtualScroll) {
2481
- this._updateItemsRange(firstChange);
2482
- } else {
2483
- this._setVirtualHeight();
2484
-
2485
- this._updateItems(firstChange);
2486
- }
2487
- }
2488
-
2489
- _updateItems(firstChange) {
2490
- this.update.emit(this.items);
2491
-
2492
- if (firstChange === false) {
2493
- return;
2494
- }
2495
-
2496
- this._zone.runOutsideAngular(() => {
2497
- Promise.resolve().then(() => {
2498
- const panelHeight = this._scrollablePanel.clientHeight;
2499
-
2500
- this._panelService.setDimensions(0, panelHeight);
2501
-
2502
- this._handleDropdownPosition();
2503
-
2504
- this.scrollTo(this.markedItem, firstChange);
2505
- });
2506
- });
2507
- }
2508
-
2509
- _updateItemsRange(firstChange) {
2510
- this._zone.runOutsideAngular(() => {
2511
- this._measureDimensions().then(() => {
2512
- if (firstChange) {
2513
- this._renderItemsRange(this._startOffset);
2514
-
2515
- this._handleDropdownPosition();
2516
- } else {
2517
- this._renderItemsRange();
2518
- }
2519
- });
2520
- });
2521
- }
2522
-
2523
- _onContentScrolled(scrollTop) {
2524
- if (this.virtualScroll) {
2525
- this._renderItemsRange(scrollTop);
2526
- }
2527
-
2528
- this._lastScrollPosition = scrollTop;
2529
-
2530
- this._fireScrollToEnd(scrollTop);
2531
- }
2532
-
2533
- _updateVirtualHeight(height) {
2534
- if (this._updateScrollHeight) {
2535
- this._virtualPadding.style.height = `${height}px`;
2536
- this._updateScrollHeight = false;
2537
- }
2538
- }
2539
-
2540
- _setVirtualHeight() {
2541
- if (!this._virtualPadding) {
2542
- return;
2543
- }
2544
-
2545
- this._virtualPadding.style.height = `0px`;
2546
- }
2547
-
2548
- _onItemsLengthChanged() {
2549
- this._updateScrollHeight = true;
2550
- }
2551
-
2552
- _renderItemsRange(scrollTop = null) {
2553
- if (scrollTop && this._lastScrollPosition === scrollTop) {
2554
- return;
2555
- }
2556
-
2557
- scrollTop = scrollTop || this._scrollablePanel.scrollTop;
2558
-
2559
- const range = this._panelService.calculateItems(scrollTop, this.itemsLength, this.bufferAmount);
2560
-
2561
- this._updateVirtualHeight(range.scrollHeight);
2562
-
2563
- this._contentPanel.style.transform = `translateY(${range.topPadding}px)`;
2564
-
2565
- this._zone.run(() => {
2566
- this.update.emit(this.items.slice(range.start, range.end));
2567
- this.scroll.emit({
2568
- start: range.start,
2569
- end: range.end
2570
- });
2571
- });
2572
-
2573
- if (isDefined(scrollTop) && this._lastScrollPosition === 0) {
2574
- this._scrollablePanel.scrollTop = scrollTop;
2575
- this._lastScrollPosition = scrollTop;
2576
- }
2577
- }
2578
-
2579
- _measureDimensions() {
2580
- if (this._panelService.dimensions.itemHeight > 0 || this.itemsLength === 0) {
2581
- return Promise.resolve(this._panelService.dimensions);
2582
- }
2583
-
2584
- const [first] = this.items;
2585
- this.update.emit([first]);
2586
- return Promise.resolve().then(() => {
2587
- const option = this._dropdown.querySelector(`#${first.htmlId}`);
2588
-
2589
- const optionHeight = option.clientHeight;
2590
- this._virtualPadding.style.height = `${optionHeight * this.itemsLength}px`;
2591
- const panelHeight = this._scrollablePanel.clientHeight;
2592
-
2593
- this._panelService.setDimensions(optionHeight, panelHeight);
2594
-
2595
- return this._panelService.dimensions;
2596
- });
2597
- }
2598
-
2599
- _fireScrollToEnd(scrollTop) {
2600
- if (this._scrollToEndFired || scrollTop === 0) {
2601
- return;
2602
- }
2603
-
2604
- const padding = this.virtualScroll ? this._virtualPadding : this._contentPanel;
2605
-
2606
- if (scrollTop + this._dropdown.clientHeight >= padding.clientHeight - 1) {
2607
- this._zone.run(() => this.scrollToEnd.emit());
2608
-
2609
- this._scrollToEndFired = true;
2610
- }
2611
- }
2612
-
2613
- _calculateCurrentPosition(dropdownEl) {
2614
- if (this.position !== 'auto') {
2615
- return this.position;
2616
- }
2617
-
2618
- const selectRect = this._select.getBoundingClientRect();
2619
-
2620
- const scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
2621
- const offsetTop = selectRect.top + window.pageYOffset;
2622
- const height = selectRect.height;
2623
- const dropdownHeight = dropdownEl.getBoundingClientRect().height;
2624
-
2625
- if (offsetTop + height + dropdownHeight > scrollTop + document.documentElement.clientHeight) {
2626
- return 'top';
2627
- } else {
2628
- return 'bottom';
2629
- }
2630
- }
2631
-
2632
- _appendDropdown() {
2633
- if (!this.appendTo) {
2634
- return;
2635
- }
2636
-
2637
- this._parent = document.querySelector(this.appendTo);
2638
-
2639
- if (!this._parent) {
2640
- throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);
2641
- }
2642
-
2643
- this._updateXPosition();
2644
-
2645
- this._parent.appendChild(this._dropdown);
2646
- }
2647
-
2648
- _updateXPosition() {
2649
- const select = this._select.getBoundingClientRect();
2650
-
2651
- const parent = this._parent.getBoundingClientRect();
2652
-
2653
- const offsetLeft = select.left - parent.left;
2654
- this._dropdown.style.left = offsetLeft + 'px';
2655
- this._dropdown.style.width = select.width + 'px';
2656
- this._dropdown.style.minWidth = select.width + 'px';
2657
- }
2658
-
2659
- _updateYPosition() {
2660
- const select = this._select.getBoundingClientRect();
2661
-
2662
- const parent = this._parent.getBoundingClientRect();
2663
-
2664
- const delta = select.height;
2665
-
2666
- if (this._currentPosition === 'top') {
2667
- const offsetBottom = parent.bottom - select.bottom;
2668
- this._dropdown.style.bottom = offsetBottom + delta + 'px';
2669
- this._dropdown.style.top = 'auto';
2670
- } else if (this._currentPosition === 'bottom') {
2671
- const offsetTop = select.top - parent.top;
2672
- this._dropdown.style.top = offsetTop + delta + 'px';
2673
- this._dropdown.style.bottom = 'auto';
2674
- }
2675
- }
2676
-
2677
- _setupMousedownListener() {
2678
- this._zone.runOutsideAngular(() => {
2679
- (0,rxjs__WEBPACK_IMPORTED_MODULE_4__.fromEvent)(this._dropdown, 'mousedown').pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.takeUntil)(this._destroy$)).subscribe(event => {
2680
- const target = event.target;
2681
-
2682
- if (target.tagName === 'INPUT') {
2683
- return;
2684
- }
2685
-
2686
- event.preventDefault();
2687
- });
2688
- });
2689
- }
2690
-
2691
- }
2692
-
2693
- NgDropdownPanelComponent.ɵfac = function NgDropdownPanelComponent_Factory(t) {
2694
- return new (t || NgDropdownPanelComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgDropdownPanelService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_8__.DOCUMENT, 8));
2695
- };
2696
-
2697
- NgDropdownPanelComponent.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
2698
- type: NgDropdownPanelComponent,
2699
- selectors: [["ng-dropdown-panel"]],
2700
- viewQuery: function NgDropdownPanelComponent_Query(rf, ctx) {
2701
- if (rf & 1) {
2702
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, 7, _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef);
2703
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c1, 7, _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef);
2704
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c2, 7, _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef);
2705
- }
2706
-
2707
- if (rf & 2) {
2708
- let _t;
2709
-
2710
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.contentElementRef = _t.first);
2711
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.scrollElementRef = _t.first);
2712
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.paddingElementRef = _t.first);
2713
- }
2714
- },
2715
- inputs: {
2716
- items: "items",
2717
- markedItem: "markedItem",
2718
- position: "position",
2719
- appendTo: "appendTo",
2720
- bufferAmount: "bufferAmount",
2721
- virtualScroll: "virtualScroll",
2722
- headerTemplate: "headerTemplate",
2723
- footerTemplate: "footerTemplate",
2724
- filterValue: "filterValue"
2725
- },
2726
- outputs: {
2727
- update: "update",
2728
- scroll: "scroll",
2729
- scrollToEnd: "scrollToEnd",
2730
- outsideClick: "outsideClick"
2731
- },
2732
- features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]],
2733
- ngContentSelectors: _c4,
2734
- decls: 9,
2735
- vars: 6,
2736
- consts: [["class", "ng-dropdown-header", 4, "ngIf"], [1, "ng-dropdown-panel-items", "scroll-host"], ["scroll", ""], ["padding", ""], ["content", ""], ["class", "ng-dropdown-footer", 4, "ngIf"], [1, "ng-dropdown-header"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "ng-dropdown-footer"]],
2737
- template: function NgDropdownPanelComponent_Template(rf, ctx) {
2738
- if (rf & 1) {
2739
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();
2740
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NgDropdownPanelComponent_div_0_Template, 2, 4, "div", 0);
2741
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1, 2);
2742
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "div", null, 3);
2743
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", null, 4);
2744
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](7);
2745
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
2746
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, NgDropdownPanelComponent_div_8_Template, 2, 4, "div", 5);
2747
- }
2748
-
2749
- if (rf & 2) {
2750
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.headerTemplate);
2751
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
2752
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("total-padding", ctx.virtualScroll);
2753
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
2754
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("scrollable-content", ctx.virtualScroll && ctx.items.length);
2755
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
2756
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.footerTemplate);
2757
- }
2758
- },
2759
- dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgTemplateOutlet],
2760
- encapsulation: 2,
2761
- changeDetection: 0
2762
- });
2763
-
2764
- (function () {
2765
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgDropdownPanelComponent, [{
2766
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component,
2767
- args: [{
2768
- changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectionStrategy.OnPush,
2769
- encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewEncapsulation.None,
2770
- selector: 'ng-dropdown-panel',
2771
- template: `
2772
- <div *ngIf="headerTemplate" class="ng-dropdown-header">
2773
- <ng-container [ngTemplateOutlet]="headerTemplate" [ngTemplateOutletContext]="{ searchTerm: filterValue }"></ng-container>
2774
- </div>
2775
- <div #scroll class="ng-dropdown-panel-items scroll-host">
2776
- <div #padding [class.total-padding]="virtualScroll"></div>
2777
- <div #content [class.scrollable-content]="virtualScroll && items.length">
2778
- <ng-content></ng-content>
2779
- </div>
2780
- </div>
2781
- <div *ngIf="footerTemplate" class="ng-dropdown-footer">
2782
- <ng-container [ngTemplateOutlet]="footerTemplate" [ngTemplateOutletContext]="{ searchTerm: filterValue }"></ng-container>
2783
- </div>
2784
- `
2785
- }]
2786
- }], function () {
2787
- return [{
2788
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2
2789
- }, {
2790
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
2791
- }, {
2792
- type: NgDropdownPanelService
2793
- }, {
2794
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
2795
- }, {
2796
- type: undefined,
2797
- decorators: [{
2798
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
2799
- }, {
2800
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
2801
- args: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.DOCUMENT]
2802
- }]
2803
- }];
2804
- }, {
2805
- items: [{
2806
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
2807
- }],
2808
- markedItem: [{
2809
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
2810
- }],
2811
- position: [{
2812
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
2813
- }],
2814
- appendTo: [{
2815
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
2816
- }],
2817
- bufferAmount: [{
2818
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
2819
- }],
2820
- virtualScroll: [{
2821
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
2822
- }],
2823
- headerTemplate: [{
2824
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
2825
- }],
2826
- footerTemplate: [{
2827
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
2828
- }],
2829
- filterValue: [{
2830
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
2831
- }],
2832
- update: [{
2833
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output
2834
- }],
2835
- scroll: [{
2836
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output
2837
- }],
2838
- scrollToEnd: [{
2839
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output
2840
- }],
2841
- outsideClick: [{
2842
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output
2843
- }],
2844
- contentElementRef: [{
2845
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewChild,
2846
- args: ['content', {
2847
- read: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef,
2848
- static: true
2849
- }]
2850
- }],
2851
- scrollElementRef: [{
2852
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewChild,
2853
- args: ['scroll', {
2854
- read: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef,
2855
- static: true
2856
- }]
2857
- }],
2858
- paddingElementRef: [{
2859
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewChild,
2860
- args: ['padding', {
2861
- read: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef,
2862
- static: true
2863
- }]
2864
- }]
2865
- });
2866
- })();
2867
-
2868
- class NgOptionComponent {
2869
- constructor(elementRef) {
2870
- this.elementRef = elementRef;
2871
- this.stateChange$ = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject();
2872
- this._disabled = false;
2873
- }
2874
-
2875
- get disabled() {
2876
- return this._disabled;
2877
- }
2878
-
2879
- set disabled(value) {
2880
- this._disabled = this._isDisabled(value);
2881
- }
2882
-
2883
- get label() {
2884
- return (this.elementRef.nativeElement.textContent || '').trim();
2885
- }
2886
-
2887
- ngOnChanges(changes) {
2888
- if (changes.disabled) {
2889
- this.stateChange$.next({
2890
- value: this.value,
2891
- disabled: this._disabled
2892
- });
2893
- }
2894
- }
2895
-
2896
- ngAfterViewChecked() {
2897
- if (this.label !== this._previousLabel) {
2898
- this._previousLabel = this.label;
2899
- this.stateChange$.next({
2900
- value: this.value,
2901
- disabled: this._disabled,
2902
- label: this.elementRef.nativeElement.innerHTML
2903
- });
2904
- }
2905
- }
2906
-
2907
- ngOnDestroy() {
2908
- this.stateChange$.complete();
2909
- }
2910
-
2911
- _isDisabled(value) {
2912
- return value != null && `${value}` !== 'false';
2913
- }
2914
-
2915
- }
2916
-
2917
- NgOptionComponent.ɵfac = function NgOptionComponent_Factory(t) {
2918
- return new (t || NgOptionComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef));
2919
- };
2920
-
2921
- NgOptionComponent.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
2922
- type: NgOptionComponent,
2923
- selectors: [["ng-option"]],
2924
- inputs: {
2925
- value: "value",
2926
- disabled: "disabled"
2927
- },
2928
- features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]],
2929
- ngContentSelectors: _c4,
2930
- decls: 1,
2931
- vars: 0,
2932
- template: function NgOptionComponent_Template(rf, ctx) {
2933
- if (rf & 1) {
2934
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();
2935
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](0);
2936
- }
2937
- },
2938
- encapsulation: 2,
2939
- changeDetection: 0
2940
- });
2941
-
2942
- (function () {
2943
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgOptionComponent, [{
2944
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component,
2945
- args: [{
2946
- selector: 'ng-option',
2947
- changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectionStrategy.OnPush,
2948
- template: `<ng-content></ng-content>`
2949
- }]
2950
- }], function () {
2951
- return [{
2952
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
2953
- }];
2954
- }, {
2955
- value: [{
2956
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
2957
- }],
2958
- disabled: [{
2959
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
2960
- }]
2961
- });
2962
- })();
2963
-
2964
- class NgSelectConfig {
2965
- constructor() {
2966
- this.notFoundText = 'No items found';
2967
- this.typeToSearchText = 'Type to search';
2968
- this.addTagText = 'Add item';
2969
- this.loadingText = 'Loading...';
2970
- this.clearAllText = 'Clear all';
2971
- this.disableVirtualScroll = true;
2972
- this.openOnEnter = true;
2973
- this.appearance = 'underline';
2974
- }
2975
-
2976
- }
2977
-
2978
- NgSelectConfig.ɵfac = function NgSelectConfig_Factory(t) {
2979
- return new (t || NgSelectConfig)();
2980
- };
2981
-
2982
- NgSelectConfig.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
2983
- token: NgSelectConfig,
2984
- factory: NgSelectConfig.ɵfac,
2985
- providedIn: 'root'
2986
- });
2987
-
2988
- (function () {
2989
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgSelectConfig, [{
2990
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
2991
- args: [{
2992
- providedIn: 'root'
2993
- }]
2994
- }], null, null);
2995
- })();
2996
-
2997
- class ConsoleService {
2998
- warn(message) {
2999
- console.warn(message);
3000
- }
3001
-
3002
- }
3003
-
3004
- ConsoleService.ɵfac = function ConsoleService_Factory(t) {
3005
- return new (t || ConsoleService)();
3006
- };
3007
-
3008
- ConsoleService.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
3009
- token: ConsoleService,
3010
- factory: ConsoleService.ɵfac,
3011
- providedIn: 'root'
3012
- });
3013
-
3014
- (function () {
3015
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ConsoleService, [{
3016
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
3017
- args: [{
3018
- providedIn: 'root'
3019
- }]
3020
- }], null, null);
3021
- })();
3022
-
3023
- const SELECTION_MODEL_FACTORY = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('ng-select-selection-model');
3024
-
3025
- class NgSelectComponent {
3026
- constructor(classes, autoFocus, config, newSelectionModel, _elementRef, _cd, _console) {
3027
- this.classes = classes;
3028
- this.autoFocus = autoFocus;
3029
- this.config = config;
3030
- this._cd = _cd;
3031
- this._console = _console;
3032
- this.markFirst = true;
3033
- this.dropdownPosition = 'auto';
3034
- this.loading = false;
3035
- this.closeOnSelect = true;
3036
- this.hideSelected = false;
3037
- this.selectOnTab = false;
3038
- this.bufferAmount = 4;
3039
- this.selectableGroup = false;
3040
- this.selectableGroupAsModel = true;
3041
- this.searchFn = null;
3042
- this.trackByFn = null;
3043
- this.clearOnBackspace = true;
3044
- this.labelForId = null;
3045
- this.inputAttrs = {};
3046
- this.readonly = false;
3047
- this.searchWhileComposing = true;
3048
- this.minTermLength = 0;
3049
- this.editableSearchTerm = false;
3050
-
3051
- this.keyDownFn = _ => true;
3052
-
3053
- this.multiple = false;
3054
- this.addTag = false;
3055
- this.searchable = true;
3056
- this.clearable = true;
3057
- this.isOpen = false; // output events
3058
-
3059
- this.blurEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
3060
- this.focusEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
3061
- this.changeEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
3062
- this.openEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
3063
- this.closeEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
3064
- this.searchEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
3065
- this.clearEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
3066
- this.addEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
3067
- this.removeEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
3068
- this.scroll = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
3069
- this.scrollToEnd = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
3070
- this.useDefaultClass = true;
3071
- this.viewPortItems = [];
3072
- this.searchTerm = null;
3073
- this.dropdownId = newId();
3074
- this.escapeHTML = true;
3075
- this._items = [];
3076
- this._defaultLabel = 'label';
3077
- this._pressedKeys = [];
3078
- this._isComposing = false;
3079
- this._destroy$ = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject();
3080
- this._keyPress$ = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject();
3081
-
3082
- this._onChange = _ => {};
3083
-
3084
- this._onTouched = () => {};
3085
-
3086
- this.clearItem = item => {
3087
- const option = this.selectedItems.find(x => x.value === item);
3088
- this.unselect(option);
3089
- };
3090
-
3091
- this.trackByOption = (_, item) => {
3092
- if (this.trackByFn) {
3093
- return this.trackByFn(item.value);
3094
- }
3095
-
3096
- return item;
3097
- };
3098
-
3099
- this._mergeGlobalConfig(config);
3100
-
3101
- this.itemsList = new ItemsList(this, newSelectionModel());
3102
- this.element = _elementRef.nativeElement;
3103
- }
3104
-
3105
- get items() {
3106
- return this._items;
3107
- }
3108
-
3109
- set items(value) {
3110
- if (value === null) {
3111
- value = [];
3112
- }
3113
-
3114
- this._itemsAreUsed = true;
3115
- this._items = value;
3116
- }
3117
-
3118
- get compareWith() {
3119
- return this._compareWith;
3120
- }
3121
-
3122
- set compareWith(fn) {
3123
- if (fn !== undefined && fn !== null && !isFunction(fn)) {
3124
- throw Error('`compareWith` must be a function.');
3125
- }
3126
-
3127
- this._compareWith = fn;
3128
- }
3129
-
3130
- get clearSearchOnAdd() {
3131
- if (isDefined(this._clearSearchOnAdd)) {
3132
- return this._clearSearchOnAdd;
3133
- } else if (isDefined(this.config.clearSearchOnAdd)) {
3134
- return this.config.clearSearchOnAdd;
3135
- }
3136
-
3137
- return this.closeOnSelect;
3138
- }
3139
-
3140
- set clearSearchOnAdd(value) {
3141
- this._clearSearchOnAdd = value;
3142
- }
3143
-
3144
- get disabled() {
3145
- return this.readonly || this._disabled;
3146
- }
3147
-
3148
- get filtered() {
3149
- return !!this.searchTerm && this.searchable || this._isComposing;
3150
- }
3151
-
3152
- get single() {
3153
- return !this.multiple;
3154
- }
3155
-
3156
- get _editableSearchTerm() {
3157
- return this.editableSearchTerm && !this.multiple;
3158
- }
3159
-
3160
- get selectedItems() {
3161
- return this.itemsList.selectedItems;
3162
- }
3163
-
3164
- get selectedValues() {
3165
- return this.selectedItems.map(x => x.value);
3166
- }
3167
-
3168
- get hasValue() {
3169
- return this.selectedItems.length > 0;
3170
- }
3171
-
3172
- get currentPanelPosition() {
3173
- if (this.dropdownPanel) {
3174
- return this.dropdownPanel.currentPosition;
3175
- }
3176
-
3177
- return undefined;
3178
- }
3179
-
3180
- ngOnInit() {
3181
- this._handleKeyPresses();
3182
-
3183
- this._setInputAttributes();
3184
- }
3185
-
3186
- ngOnChanges(changes) {
3187
- if (changes.multiple) {
3188
- this.itemsList.clearSelected();
3189
- }
3190
-
3191
- if (changes.items) {
3192
- this._setItems(changes.items.currentValue || []);
3193
- }
3194
-
3195
- if (changes.isOpen) {
3196
- this._manualOpen = isDefined(changes.isOpen.currentValue);
3197
- }
3198
- }
3199
-
3200
- ngAfterViewInit() {
3201
- if (!this._itemsAreUsed) {
3202
- this.escapeHTML = false;
3203
-
3204
- this._setItemsFromNgOptions();
3205
- }
3206
-
3207
- if (isDefined(this.autoFocus)) {
3208
- this.focus();
3209
- }
3210
- }
3211
-
3212
- ngOnDestroy() {
3213
- this._destroy$.next();
3214
-
3215
- this._destroy$.complete();
3216
- }
3217
-
3218
- handleKeyDown($event) {
3219
- const keyCode = KeyCode[$event.which];
3220
-
3221
- if (keyCode) {
3222
- if (this.keyDownFn($event) === false) {
3223
- return;
3224
- }
3225
-
3226
- this.handleKeyCode($event);
3227
- } else if ($event.key && $event.key.length === 1) {
3228
- this._keyPress$.next($event.key.toLocaleLowerCase());
3229
- }
3230
- }
3231
-
3232
- handleKeyCode($event) {
3233
- switch ($event.which) {
3234
- case KeyCode.ArrowDown:
3235
- this._handleArrowDown($event);
3236
-
3237
- break;
3238
-
3239
- case KeyCode.ArrowUp:
3240
- this._handleArrowUp($event);
3241
-
3242
- break;
3243
-
3244
- case KeyCode.Space:
3245
- this._handleSpace($event);
3246
-
3247
- break;
3248
-
3249
- case KeyCode.Enter:
3250
- this._handleEnter($event);
3251
-
3252
- break;
3253
-
3254
- case KeyCode.Tab:
3255
- this._handleTab($event);
3256
-
3257
- break;
3258
-
3259
- case KeyCode.Esc:
3260
- this.close();
3261
- $event.preventDefault();
3262
- break;
3263
-
3264
- case KeyCode.Backspace:
3265
- this._handleBackspace();
3266
-
3267
- break;
3268
- }
3269
- }
3270
-
3271
- handleMousedown($event) {
3272
- const target = $event.target;
3273
-
3274
- if (target.tagName !== 'INPUT') {
3275
- $event.preventDefault();
3276
- }
3277
-
3278
- if (target.classList.contains('ng-clear-wrapper')) {
3279
- this.handleClearClick();
3280
- return;
3281
- }
3282
-
3283
- if (target.classList.contains('ng-arrow-wrapper')) {
3284
- this.handleArrowClick();
3285
- return;
3286
- }
3287
-
3288
- if (target.classList.contains('ng-value-icon')) {
3289
- return;
3290
- }
3291
-
3292
- if (!this.focused) {
3293
- this.focus();
3294
- }
3295
-
3296
- if (this.searchable) {
3297
- this.open();
3298
- } else {
3299
- this.toggle();
3300
- }
3301
- }
3302
-
3303
- handleArrowClick() {
3304
- if (this.isOpen) {
3305
- this.close();
3306
- } else {
3307
- this.open();
3308
- }
3309
- }
3310
-
3311
- handleClearClick() {
3312
- if (this.hasValue) {
3313
- this.itemsList.clearSelected(true);
3314
-
3315
- this._updateNgModel();
3316
- }
3317
-
3318
- this._clearSearch();
3319
-
3320
- this.focus();
3321
- this.clearEvent.emit();
3322
-
3323
- this._onSelectionChanged();
3324
- }
3325
-
3326
- clearModel() {
3327
- if (!this.clearable) {
3328
- return;
3329
- }
3330
-
3331
- this.itemsList.clearSelected();
3332
-
3333
- this._updateNgModel();
3334
- }
3335
-
3336
- writeValue(value) {
3337
- this.itemsList.clearSelected();
3338
-
3339
- this._handleWriteValue(value);
3340
-
3341
- this._cd.markForCheck();
3342
- }
3343
-
3344
- registerOnChange(fn) {
3345
- this._onChange = fn;
3346
- }
3347
-
3348
- registerOnTouched(fn) {
3349
- this._onTouched = fn;
3350
- }
3351
-
3352
- setDisabledState(state) {
3353
- this._disabled = state;
3354
-
3355
- this._cd.markForCheck();
3356
- }
3357
-
3358
- toggle() {
3359
- if (!this.isOpen) {
3360
- this.open();
3361
- } else {
3362
- this.close();
3363
- }
3364
- }
3365
-
3366
- open() {
3367
- if (this.disabled || this.isOpen || this._manualOpen) {
3368
- return;
3369
- }
3370
-
3371
- if (!this._isTypeahead && !this.addTag && this.itemsList.noItemsToSelect) {
3372
- return;
3373
- }
3374
-
3375
- this.isOpen = true;
3376
- this.itemsList.markSelectedOrDefault(this.markFirst);
3377
- this.openEvent.emit();
3378
-
3379
- if (!this.searchTerm) {
3380
- this.focus();
3381
- }
3382
-
3383
- this.detectChanges();
3384
- }
3385
-
3386
- close() {
3387
- if (!this.isOpen || this._manualOpen) {
3388
- return;
3389
- }
3390
-
3391
- this.isOpen = false;
3392
- this._isComposing = false;
3393
-
3394
- if (!this._editableSearchTerm) {
3395
- this._clearSearch();
3396
- } else {
3397
- this.itemsList.resetFilteredItems();
3398
- }
3399
-
3400
- this.itemsList.unmarkItem();
3401
-
3402
- this._onTouched();
3403
-
3404
- this.closeEvent.emit();
3405
-
3406
- this._cd.markForCheck();
3407
- }
3408
-
3409
- toggleItem(item) {
3410
- if (!item || item.disabled || this.disabled) {
3411
- return;
3412
- }
3413
-
3414
- if (this.multiple && item.selected) {
3415
- this.unselect(item);
3416
- } else {
3417
- this.select(item);
3418
- }
3419
-
3420
- if (this._editableSearchTerm) {
3421
- this._setSearchTermFromItems();
3422
- }
3423
-
3424
- this._onSelectionChanged();
3425
- }
3426
-
3427
- select(item) {
3428
- if (!item.selected) {
3429
- this.itemsList.select(item);
3430
-
3431
- if (this.clearSearchOnAdd && !this._editableSearchTerm) {
3432
- this._clearSearch();
3433
- }
3434
-
3435
- this._updateNgModel();
3436
-
3437
- if (this.multiple) {
3438
- this.addEvent.emit(item.value);
3439
- }
3440
- }
3441
-
3442
- if (this.closeOnSelect || this.itemsList.noItemsToSelect) {
3443
- this.close();
3444
- }
3445
- }
3446
-
3447
- focus() {
3448
- this.searchInput.nativeElement.focus();
3449
- }
3450
-
3451
- blur() {
3452
- this.searchInput.nativeElement.blur();
3453
- }
3454
-
3455
- unselect(item) {
3456
- if (!item) {
3457
- return;
3458
- }
3459
-
3460
- this.itemsList.unselect(item);
3461
- this.focus();
3462
-
3463
- this._updateNgModel();
3464
-
3465
- this.removeEvent.emit(item);
3466
- }
3467
-
3468
- selectTag() {
3469
- let tag;
3470
-
3471
- if (isFunction(this.addTag)) {
3472
- tag = this.addTag(this.searchTerm);
3473
- } else {
3474
- tag = this._primitive ? this.searchTerm : {
3475
- [this.bindLabel]: this.searchTerm
3476
- };
3477
- }
3478
-
3479
- const handleTag = item => this._isTypeahead || !this.isOpen ? this.itemsList.mapItem(item, null) : this.itemsList.addItem(item);
3480
-
3481
- if (isPromise(tag)) {
3482
- tag.then(item => this.select(handleTag(item))).catch(() => {});
3483
- } else if (tag) {
3484
- this.select(handleTag(tag));
3485
- }
3486
- }
3487
-
3488
- showClear() {
3489
- return this.clearable && (this.hasValue || this.searchTerm) && !this.disabled;
3490
- }
3491
-
3492
- get showAddTag() {
3493
- if (!this._validTerm) {
3494
- return false;
3495
- }
3496
-
3497
- const term = this.searchTerm.toLowerCase().trim();
3498
- return this.addTag && !this.itemsList.filteredItems.some(x => x.label.toLowerCase() === term) && (!this.hideSelected && this.isOpen || !this.selectedItems.some(x => x.label.toLowerCase() === term)) && !this.loading;
3499
- }
3500
-
3501
- showNoItemsFound() {
3502
- const empty = this.itemsList.filteredItems.length === 0;
3503
- return (empty && !this._isTypeahead && !this.loading || empty && this._isTypeahead && this._validTerm && !this.loading) && !this.showAddTag;
3504
- }
3505
-
3506
- showTypeToSearch() {
3507
- const empty = this.itemsList.filteredItems.length === 0;
3508
- return empty && this._isTypeahead && !this._validTerm && !this.loading;
3509
- }
3510
-
3511
- onCompositionStart() {
3512
- this._isComposing = true;
3513
- }
3514
-
3515
- onCompositionEnd(term) {
3516
- this._isComposing = false;
3517
-
3518
- if (this.searchWhileComposing) {
3519
- return;
3520
- }
3521
-
3522
- this.filter(term);
3523
- }
3524
-
3525
- filter(term) {
3526
- if (this._isComposing && !this.searchWhileComposing) {
3527
- return;
3528
- }
3529
-
3530
- this.searchTerm = term;
3531
-
3532
- if (this._isTypeahead && (this._validTerm || this.minTermLength === 0)) {
3533
- this.typeahead.next(term);
3534
- }
3535
-
3536
- if (!this._isTypeahead) {
3537
- this.itemsList.filter(this.searchTerm);
3538
-
3539
- if (this.isOpen) {
3540
- this.itemsList.markSelectedOrDefault(this.markFirst);
3541
- }
3542
- }
3543
-
3544
- this.searchEvent.emit({
3545
- term,
3546
- items: this.itemsList.filteredItems.map(x => x.value)
3547
- });
3548
- this.open();
3549
- }
3550
-
3551
- onInputFocus($event) {
3552
- if (this.focused) {
3553
- return;
3554
- }
3555
-
3556
- if (this._editableSearchTerm) {
3557
- this._setSearchTermFromItems();
3558
- }
3559
-
3560
- this.element.classList.add('ng-select-focused');
3561
- this.focusEvent.emit($event);
3562
- this.focused = true;
3563
- }
3564
-
3565
- onInputBlur($event) {
3566
- this.element.classList.remove('ng-select-focused');
3567
- this.blurEvent.emit($event);
3568
-
3569
- if (!this.isOpen && !this.disabled) {
3570
- this._onTouched();
3571
- }
3572
-
3573
- if (this._editableSearchTerm) {
3574
- this._setSearchTermFromItems();
3575
- }
3576
-
3577
- this.focused = false;
3578
- }
3579
-
3580
- onItemHover(item) {
3581
- if (item.disabled) {
3582
- return;
3583
- }
3584
-
3585
- this.itemsList.markItem(item);
3586
- }
3587
-
3588
- detectChanges() {
3589
- if (!this._cd.destroyed) {
3590
- this._cd.detectChanges();
3591
- }
3592
- }
3593
-
3594
- _setSearchTermFromItems() {
3595
- const selected = this.selectedItems && this.selectedItems[0];
3596
- this.searchTerm = selected && selected.label || null;
3597
- }
3598
-
3599
- _setItems(items) {
3600
- const firstItem = items[0];
3601
- this.bindLabel = this.bindLabel || this._defaultLabel;
3602
- this._primitive = isDefined(firstItem) ? !isObject(firstItem) : this._primitive || this.bindLabel === this._defaultLabel;
3603
- this.itemsList.setItems(items);
3604
-
3605
- if (items.length > 0 && this.hasValue) {
3606
- this.itemsList.mapSelectedItems();
3607
- }
3608
-
3609
- if (this.isOpen && isDefined(this.searchTerm) && !this._isTypeahead) {
3610
- this.itemsList.filter(this.searchTerm);
3611
- }
3612
-
3613
- if (this._isTypeahead || this.isOpen) {
3614
- this.itemsList.markSelectedOrDefault(this.markFirst);
3615
- }
3616
- }
3617
-
3618
- _setItemsFromNgOptions() {
3619
- const mapNgOptions = options => {
3620
- this.items = options.map(option => ({
3621
- $ngOptionValue: option.value,
3622
- $ngOptionLabel: option.elementRef.nativeElement.innerHTML,
3623
- disabled: option.disabled
3624
- }));
3625
- this.itemsList.setItems(this.items);
3626
-
3627
- if (this.hasValue) {
3628
- this.itemsList.mapSelectedItems();
3629
- }
3630
-
3631
- this.detectChanges();
3632
- };
3633
-
3634
- const handleOptionChange = () => {
3635
- const changedOrDestroyed = (0,rxjs__WEBPACK_IMPORTED_MODULE_7__.merge)(this.ngOptions.changes, this._destroy$);
3636
- (0,rxjs__WEBPACK_IMPORTED_MODULE_7__.merge)(...this.ngOptions.map(option => option.stateChange$)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.takeUntil)(changedOrDestroyed)).subscribe(option => {
3637
- const item = this.itemsList.findItem(option.value);
3638
- item.disabled = option.disabled;
3639
- item.label = option.label || item.label;
3640
-
3641
- this._cd.detectChanges();
3642
- });
3643
- };
3644
-
3645
- this.ngOptions.changes.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.startWith)(this.ngOptions), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.takeUntil)(this._destroy$)).subscribe(options => {
3646
- this.bindLabel = this._defaultLabel;
3647
- mapNgOptions(options);
3648
- handleOptionChange();
3649
- });
3650
- }
3651
-
3652
- _isValidWriteValue(value) {
3653
- if (!isDefined(value) || this.multiple && value === '' || Array.isArray(value) && value.length === 0) {
3654
- return false;
3655
- }
3656
-
3657
- const validateBinding = item => {
3658
- if (!isDefined(this.compareWith) && isObject(item) && this.bindValue) {
3659
- this._console.warn(`Setting object(${JSON.stringify(item)}) as your model with bindValue is not allowed unless [compareWith] is used.`);
3660
-
3661
- return false;
3662
- }
3663
-
3664
- return true;
3665
- };
3666
-
3667
- if (this.multiple) {
3668
- if (!Array.isArray(value)) {
3669
- this._console.warn('Multiple select ngModel should be array.');
3670
-
3671
- return false;
3672
- }
3673
-
3674
- return value.every(item => validateBinding(item));
3675
- } else {
3676
- return validateBinding(value);
3677
- }
3678
- }
3679
-
3680
- _handleWriteValue(ngModel) {
3681
- if (!this._isValidWriteValue(ngModel)) {
3682
- return;
3683
- }
3684
-
3685
- const select = val => {
3686
- let item = this.itemsList.findItem(val);
3687
-
3688
- if (item) {
3689
- this.itemsList.select(item);
3690
- } else {
3691
- const isValObject = isObject(val);
3692
- const isPrimitive = !isValObject && !this.bindValue;
3693
-
3694
- if (isValObject || isPrimitive) {
3695
- this.itemsList.select(this.itemsList.mapItem(val, null));
3696
- } else if (this.bindValue) {
3697
- item = {
3698
- [this.bindLabel]: null,
3699
- [this.bindValue]: val
3700
- };
3701
- this.itemsList.select(this.itemsList.mapItem(item, null));
3702
- }
3703
- }
3704
- };
3705
-
3706
- if (this.multiple) {
3707
- ngModel.forEach(item => select(item));
3708
- } else {
3709
- select(ngModel);
3710
- }
3711
- }
3712
-
3713
- _handleKeyPresses() {
3714
- if (this.searchable) {
3715
- return;
3716
- }
3717
-
3718
- this._keyPress$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.takeUntil)(this._destroy$), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.tap)(letter => this._pressedKeys.push(letter)), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.debounceTime)(200), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.filter)(() => this._pressedKeys.length > 0), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.map)(() => this._pressedKeys.join(''))).subscribe(term => {
3719
- const item = this.itemsList.findByLabel(term);
3720
-
3721
- if (item) {
3722
- if (this.isOpen) {
3723
- this.itemsList.markItem(item);
3724
-
3725
- this._scrollToMarked();
3726
-
3727
- this._cd.markForCheck();
3728
- } else {
3729
- this.select(item);
3730
- }
3731
- }
3732
-
3733
- this._pressedKeys = [];
3734
- });
3735
- }
3736
-
3737
- _setInputAttributes() {
3738
- const input = this.searchInput.nativeElement;
3739
- const attributes = {
3740
- type: 'text',
3741
- autocorrect: 'off',
3742
- autocapitalize: 'off',
3743
- autocomplete: this.labelForId ? 'off' : this.dropdownId,
3744
- ...this.inputAttrs
3745
- };
3746
-
3747
- for (const key of Object.keys(attributes)) {
3748
- input.setAttribute(key, attributes[key]);
3749
- }
3750
- }
3751
-
3752
- _updateNgModel() {
3753
- const model = [];
3754
-
3755
- for (const item of this.selectedItems) {
3756
- if (this.bindValue) {
3757
- let value = null;
3758
-
3759
- if (item.children) {
3760
- const groupKey = this.groupValue ? this.bindValue : this.groupBy;
3761
- value = item.value[groupKey || this.groupBy];
3762
- } else {
3763
- value = this.itemsList.resolveNested(item.value, this.bindValue);
3764
- }
3765
-
3766
- model.push(value);
3767
- } else {
3768
- model.push(item.value);
3769
- }
3770
- }
3771
-
3772
- const selected = this.selectedItems.map(x => x.value);
3773
-
3774
- if (this.multiple) {
3775
- this._onChange(model);
3776
-
3777
- this.changeEvent.emit(selected);
3778
- } else {
3779
- this._onChange(isDefined(model[0]) ? model[0] : null);
3780
-
3781
- this.changeEvent.emit(selected[0]);
3782
- }
3783
-
3784
- this._cd.markForCheck();
3785
- }
3786
-
3787
- _clearSearch() {
3788
- if (!this.searchTerm) {
3789
- return;
3790
- }
3791
-
3792
- this._changeSearch(null);
3793
-
3794
- this.itemsList.resetFilteredItems();
3795
- }
3796
-
3797
- _changeSearch(searchTerm) {
3798
- this.searchTerm = searchTerm;
3799
-
3800
- if (this._isTypeahead) {
3801
- this.typeahead.next(searchTerm);
3802
- }
3803
- }
3804
-
3805
- _scrollToMarked() {
3806
- if (!this.isOpen || !this.dropdownPanel) {
3807
- return;
3808
- }
3809
-
3810
- this.dropdownPanel.scrollTo(this.itemsList.markedItem);
3811
- }
3812
-
3813
- _scrollToTag() {
3814
- if (!this.isOpen || !this.dropdownPanel) {
3815
- return;
3816
- }
3817
-
3818
- this.dropdownPanel.scrollToTag();
3819
- }
3820
-
3821
- _onSelectionChanged() {
3822
- if (this.isOpen && this.multiple && this.appendTo) {
3823
- // Make sure items are rendered.
3824
- this._cd.detectChanges();
3825
-
3826
- this.dropdownPanel.adjustPosition();
3827
- }
3828
- }
3829
-
3830
- _handleTab($event) {
3831
- if (this.isOpen === false && !this.addTag) {
3832
- return;
3833
- }
3834
-
3835
- if (this.selectOnTab) {
3836
- if (this.itemsList.markedItem) {
3837
- this.toggleItem(this.itemsList.markedItem);
3838
- $event.preventDefault();
3839
- } else if (this.showAddTag) {
3840
- this.selectTag();
3841
- $event.preventDefault();
3842
- } else {
3843
- this.close();
3844
- }
3845
- } else {
3846
- this.close();
3847
- }
3848
- }
3849
-
3850
- _handleEnter($event) {
3851
- if (this.isOpen || this._manualOpen) {
3852
- if (this.itemsList.markedItem) {
3853
- this.toggleItem(this.itemsList.markedItem);
3854
- } else if (this.showAddTag) {
3855
- this.selectTag();
3856
- }
3857
- } else if (this.openOnEnter) {
3858
- this.open();
3859
- } else {
3860
- return;
3861
- }
3862
-
3863
- $event.preventDefault();
3864
- }
3865
-
3866
- _handleSpace($event) {
3867
- if (this.isOpen || this._manualOpen) {
3868
- return;
3869
- }
3870
-
3871
- this.open();
3872
- $event.preventDefault();
3873
- }
3874
-
3875
- _handleArrowDown($event) {
3876
- if (this._nextItemIsTag(+1)) {
3877
- this.itemsList.unmarkItem();
3878
-
3879
- this._scrollToTag();
3880
- } else {
3881
- this.itemsList.markNextItem();
3882
-
3883
- this._scrollToMarked();
3884
- }
3885
-
3886
- this.open();
3887
- $event.preventDefault();
3888
- }
3889
-
3890
- _handleArrowUp($event) {
3891
- if (!this.isOpen) {
3892
- return;
3893
- }
3894
-
3895
- if (this._nextItemIsTag(-1)) {
3896
- this.itemsList.unmarkItem();
3897
-
3898
- this._scrollToTag();
3899
- } else {
3900
- this.itemsList.markPreviousItem();
3901
-
3902
- this._scrollToMarked();
3903
- }
3904
-
3905
- $event.preventDefault();
3906
- }
3907
-
3908
- _nextItemIsTag(nextStep) {
3909
- const nextIndex = this.itemsList.markedIndex + nextStep;
3910
- return this.addTag && this.searchTerm && this.itemsList.markedItem && (nextIndex < 0 || nextIndex === this.itemsList.filteredItems.length);
3911
- }
3912
-
3913
- _handleBackspace() {
3914
- if (this.searchTerm || !this.clearable || !this.clearOnBackspace || !this.hasValue) {
3915
- return;
3916
- }
3917
-
3918
- if (this.multiple) {
3919
- this.unselect(this.itemsList.lastSelectedItem);
3920
- } else {
3921
- this.clearModel();
3922
- }
3923
- }
3924
-
3925
- get _isTypeahead() {
3926
- return this.typeahead && this.typeahead.observers.length > 0;
3927
- }
3928
-
3929
- get _validTerm() {
3930
- const term = this.searchTerm && this.searchTerm.trim();
3931
- return term && term.length >= this.minTermLength;
3932
- }
3933
-
3934
- _mergeGlobalConfig(config) {
3935
- this.placeholder = this.placeholder || config.placeholder;
3936
- this.notFoundText = this.notFoundText || config.notFoundText;
3937
- this.typeToSearchText = this.typeToSearchText || config.typeToSearchText;
3938
- this.addTagText = this.addTagText || config.addTagText;
3939
- this.loadingText = this.loadingText || config.loadingText;
3940
- this.clearAllText = this.clearAllText || config.clearAllText;
3941
- this.virtualScroll = isDefined(this.virtualScroll) ? this.virtualScroll : isDefined(config.disableVirtualScroll) ? !config.disableVirtualScroll : false;
3942
- this.openOnEnter = isDefined(this.openOnEnter) ? this.openOnEnter : config.openOnEnter;
3943
- this.appendTo = this.appendTo || config.appendTo;
3944
- this.bindValue = this.bindValue || config.bindValue;
3945
- this.bindLabel = this.bindLabel || config.bindLabel;
3946
- this.appearance = this.appearance || config.appearance;
3947
- }
3948
-
3949
- }
3950
-
3951
- NgSelectComponent.ɵfac = function NgSelectComponent_Factory(t) {
3952
- return new (t || NgSelectComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinjectAttribute"]('class'), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinjectAttribute"]('autofocus'), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgSelectConfig), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](SELECTION_MODEL_FACTORY), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ConsoleService));
3953
- };
3954
-
3955
- NgSelectComponent.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
3956
- type: NgSelectComponent,
3957
- selectors: [["ng-select"]],
3958
- contentQueries: function NgSelectComponent_ContentQueries(rf, ctx, dirIndex) {
3959
- if (rf & 1) {
3960
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgOptionTemplateDirective, 5, _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef);
3961
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgOptgroupTemplateDirective, 5, _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef);
3962
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgLabelTemplateDirective, 5, _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef);
3963
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgMultiLabelTemplateDirective, 5, _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef);
3964
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgHeaderTemplateDirective, 5, _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef);
3965
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgFooterTemplateDirective, 5, _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef);
3966
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgNotFoundTemplateDirective, 5, _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef);
3967
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgTypeToSearchTemplateDirective, 5, _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef);
3968
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgLoadingTextTemplateDirective, 5, _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef);
3969
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgTagTemplateDirective, 5, _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef);
3970
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgLoadingSpinnerTemplateDirective, 5, _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef);
3971
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgOptionComponent, 5);
3972
- }
3973
-
3974
- if (rf & 2) {
3975
- let _t;
3976
-
3977
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.optionTemplate = _t.first);
3978
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.optgroupTemplate = _t.first);
3979
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.labelTemplate = _t.first);
3980
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.multiLabelTemplate = _t.first);
3981
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.headerTemplate = _t.first);
3982
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.footerTemplate = _t.first);
3983
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.notFoundTemplate = _t.first);
3984
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.typeToSearchTemplate = _t.first);
3985
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.loadingTextTemplate = _t.first);
3986
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.tagTemplate = _t.first);
3987
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.loadingSpinnerTemplate = _t.first);
3988
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.ngOptions = _t);
3989
- }
3990
- },
3991
- viewQuery: function NgSelectComponent_Query(rf, ctx) {
3992
- if (rf & 1) {
3993
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](NgDropdownPanelComponent, 5);
3994
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c5, 7);
3995
- }
3996
-
3997
- if (rf & 2) {
3998
- let _t;
3999
-
4000
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.dropdownPanel = _t.first);
4001
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.searchInput = _t.first);
4002
- }
4003
- },
4004
- hostVars: 20,
4005
- hostBindings: function NgSelectComponent_HostBindings(rf, ctx) {
4006
- if (rf & 1) {
4007
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("keydown", function NgSelectComponent_keydown_HostBindingHandler($event) {
4008
- return ctx.handleKeyDown($event);
4009
- });
4010
- }
4011
-
4012
- if (rf & 2) {
4013
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("ng-select-typeahead", ctx.typeahead)("ng-select-multiple", ctx.multiple)("ng-select-taggable", ctx.addTag)("ng-select-searchable", ctx.searchable)("ng-select-clearable", ctx.clearable)("ng-select-opened", ctx.isOpen)("ng-select", ctx.useDefaultClass)("ng-select-disabled", ctx.disabled)("ng-select-filtered", ctx.filtered)("ng-select-single", ctx.single);
4014
- }
4015
- },
4016
- inputs: {
4017
- bindLabel: "bindLabel",
4018
- bindValue: "bindValue",
4019
- markFirst: "markFirst",
4020
- placeholder: "placeholder",
4021
- notFoundText: "notFoundText",
4022
- typeToSearchText: "typeToSearchText",
4023
- addTagText: "addTagText",
4024
- loadingText: "loadingText",
4025
- clearAllText: "clearAllText",
4026
- appearance: "appearance",
4027
- dropdownPosition: "dropdownPosition",
4028
- appendTo: "appendTo",
4029
- loading: "loading",
4030
- closeOnSelect: "closeOnSelect",
4031
- hideSelected: "hideSelected",
4032
- selectOnTab: "selectOnTab",
4033
- openOnEnter: "openOnEnter",
4034
- maxSelectedItems: "maxSelectedItems",
4035
- groupBy: "groupBy",
4036
- groupValue: "groupValue",
4037
- bufferAmount: "bufferAmount",
4038
- virtualScroll: "virtualScroll",
4039
- selectableGroup: "selectableGroup",
4040
- selectableGroupAsModel: "selectableGroupAsModel",
4041
- searchFn: "searchFn",
4042
- trackByFn: "trackByFn",
4043
- clearOnBackspace: "clearOnBackspace",
4044
- labelForId: "labelForId",
4045
- inputAttrs: "inputAttrs",
4046
- tabIndex: "tabIndex",
4047
- readonly: "readonly",
4048
- searchWhileComposing: "searchWhileComposing",
4049
- minTermLength: "minTermLength",
4050
- editableSearchTerm: "editableSearchTerm",
4051
- keyDownFn: "keyDownFn",
4052
- typeahead: "typeahead",
4053
- multiple: "multiple",
4054
- addTag: "addTag",
4055
- searchable: "searchable",
4056
- clearable: "clearable",
4057
- isOpen: "isOpen",
4058
- items: "items",
4059
- compareWith: "compareWith",
4060
- clearSearchOnAdd: "clearSearchOnAdd"
4061
- },
4062
- outputs: {
4063
- blurEvent: "blur",
4064
- focusEvent: "focus",
4065
- changeEvent: "change",
4066
- openEvent: "open",
4067
- closeEvent: "close",
4068
- searchEvent: "search",
4069
- clearEvent: "clear",
4070
- addEvent: "add",
4071
- removeEvent: "remove",
4072
- scroll: "scroll",
4073
- scrollToEnd: "scrollToEnd"
4074
- },
4075
- features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
4076
- provide: _angular_forms__WEBPACK_IMPORTED_MODULE_14__.NG_VALUE_ACCESSOR,
4077
- useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => NgSelectComponent),
4078
- multi: true
4079
- }, NgDropdownPanelService]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]],
4080
- decls: 14,
4081
- vars: 19,
4082
- consts: [[1, "ng-select-container", 3, "mousedown"], [1, "ng-value-container"], [1, "ng-placeholder"], [4, "ngIf"], ["role", "combobox", "aria-haspopup", "listbox", 1, "ng-input"], ["aria-autocomplete", "list", 3, "readOnly", "disabled", "value", "input", "compositionstart", "compositionend", "focus", "blur", "change"], ["searchInput", ""], ["class", "ng-clear-wrapper", 3, "title", 4, "ngIf"], [1, "ng-arrow-wrapper"], [1, "ng-arrow"], ["class", "ng-dropdown-panel", "role", "listbox", "aria-label", "Options list", 3, "virtualScroll", "bufferAmount", "appendTo", "position", "headerTemplate", "footerTemplate", "filterValue", "items", "markedItem", "ng-select-multiple", "ngClass", "id", "update", "scroll", "scrollToEnd", "outsideClick", 4, "ngIf"], ["class", "ng-value", 3, "ng-value-disabled", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "ng-value"], ["defaultLabelTemplate", ""], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["aria-hidden", "true", 1, "ng-value-icon", "left", 3, "click"], [1, "ng-value-label", 3, "ngItemLabel", "escape"], ["defaultLoadingSpinnerTemplate", ""], [3, "ngTemplateOutlet"], [1, "ng-spinner-loader"], [1, "ng-clear-wrapper", 3, "title"], ["aria-hidden", "true", 1, "ng-clear"], ["role", "listbox", "aria-label", "Options list", 1, "ng-dropdown-panel", 3, "virtualScroll", "bufferAmount", "appendTo", "position", "headerTemplate", "footerTemplate", "filterValue", "items", "markedItem", "ngClass", "id", "update", "scroll", "scrollToEnd", "outsideClick"], ["class", "ng-option", 3, "ng-option-disabled", "ng-option-selected", "ng-optgroup", "ng-option", "ng-option-child", "ng-option-marked", "click", "mouseover", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "ng-option", "role", "option", 3, "ng-option-marked", "mouseover", "click", 4, "ngIf"], [1, "ng-option", 3, "click", "mouseover"], ["defaultOptionTemplate", ""], [1, "ng-option-label", 3, "ngItemLabel", "escape"], ["role", "option", 1, "ng-option", 3, "mouseover", "click"], ["defaultTagTemplate", ""], [1, "ng-tag-label"], ["defaultNotFoundTemplate", ""], [1, "ng-option", "ng-option-disabled"], ["defaultTypeToSearchTemplate", ""], ["defaultLoadingTextTemplate", ""]],
4083
- template: function NgSelectComponent_Template(rf, ctx) {
4084
- if (rf & 1) {
4085
- const _r52 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
4086
-
4087
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
4088
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("mousedown", function NgSelectComponent_Template_div_mousedown_0_listener($event) {
4089
- return ctx.handleMousedown($event);
4090
- });
4091
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1)(2, "div", 2);
4092
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
4093
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
4094
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, NgSelectComponent_ng_container_4_Template, 2, 2, "ng-container", 3);
4095
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, NgSelectComponent_5_Template, 1, 5, null, 3);
4096
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 4)(7, "input", 5, 6);
4097
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("input", function NgSelectComponent_Template_input_input_7_listener() {
4098
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r52);
4099
-
4100
- const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](8);
4101
-
4102
- return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx.filter(_r2.value));
4103
- })("compositionstart", function NgSelectComponent_Template_input_compositionstart_7_listener() {
4104
- return ctx.onCompositionStart();
4105
- })("compositionend", function NgSelectComponent_Template_input_compositionend_7_listener() {
4106
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r52);
4107
-
4108
- const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](8);
4109
-
4110
- return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx.onCompositionEnd(_r2.value));
4111
- })("focus", function NgSelectComponent_Template_input_focus_7_listener($event) {
4112
- return ctx.onInputFocus($event);
4113
- })("blur", function NgSelectComponent_Template_input_blur_7_listener($event) {
4114
- return ctx.onInputBlur($event);
4115
- })("change", function NgSelectComponent_Template_input_change_7_listener($event) {
4116
- return $event.stopPropagation();
4117
- });
4118
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
4119
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, NgSelectComponent_ng_container_9_Template, 4, 1, "ng-container", 3);
4120
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, NgSelectComponent_span_10_Template, 3, 1, "span", 7);
4121
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "span", 8);
4122
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "span", 9);
4123
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
4124
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, NgSelectComponent_ng_dropdown_panel_13_Template, 7, 19, "ng-dropdown-panel", 10);
4125
- }
4126
-
4127
- if (rf & 2) {
4128
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("ng-appearance-outline", ctx.appearance === "outline")("ng-has-value", ctx.hasValue);
4129
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
4130
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.placeholder);
4131
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
4132
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (!ctx.multiLabelTemplate || !ctx.multiple) && ctx.selectedItems.length > 0);
4133
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
4134
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.multiple && ctx.multiLabelTemplate && ctx.selectedValues.length > 0);
4135
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
4136
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-expanded", ctx.isOpen)("aria-owns", ctx.isOpen ? ctx.dropdownId : null);
4137
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
4138
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("readOnly", !ctx.searchable || ctx.itemsList.maxItemsSelected)("disabled", ctx.disabled)("value", ctx.searchTerm ? ctx.searchTerm : "");
4139
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("id", ctx.labelForId)("tabindex", ctx.tabIndex)("aria-activedescendant", ctx.isOpen ? ctx.itemsList == null ? null : ctx.itemsList.markedItem == null ? null : ctx.itemsList.markedItem.htmlId : null)("aria-controls", ctx.isOpen ? ctx.dropdownId : null);
4140
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
4141
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.loading);
4142
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
4143
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.showClear());
4144
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
4145
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isOpen);
4146
- }
4147
- },
4148
- dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgTemplateOutlet, NgDropdownPanelComponent, NgItemLabelDirective],
4149
- styles: ["@charset \"UTF-8\";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:\"\\200b\"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n"],
4150
- encapsulation: 2,
4151
- changeDetection: 0
4152
- });
4153
-
4154
- (function () {
4155
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgSelectComponent, [{
4156
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component,
4157
- args: [{
4158
- selector: 'ng-select',
4159
- providers: [{
4160
- provide: _angular_forms__WEBPACK_IMPORTED_MODULE_14__.NG_VALUE_ACCESSOR,
4161
- useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => NgSelectComponent),
4162
- multi: true
4163
- }, NgDropdownPanelService],
4164
- encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewEncapsulation.None,
4165
- changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectionStrategy.OnPush,
4166
- template: "<div\n (mousedown)=\"handleMousedown($event)\"\n [class.ng-appearance-outline]=\"appearance === 'outline'\"\n [class.ng-has-value]=\"hasValue\"\n class=\"ng-select-container\">\n\n <div class=\"ng-value-container\">\n <div class=\"ng-placeholder\">{{placeholder}}</div>\n\n <ng-container *ngIf=\"(!multiLabelTemplate || !multiple ) && selectedItems.length > 0\">\n <div [class.ng-value-disabled]=\"item.disabled\" class=\"ng-value\" *ngFor=\"let item of selectedItems; trackBy: trackByOption\">\n <ng-template #defaultLabelTemplate>\n <span class=\"ng-value-icon left\" (click)=\"unselect(item);\" aria-hidden=\"true\">\u00D7</span>\n <span class=\"ng-value-label\" [ngItemLabel]=\"item.label\" [escape]=\"escapeHTML\"></span>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]=\"labelTemplate || defaultLabelTemplate\"\n [ngTemplateOutletContext]=\"{ item: item.value, clear: clearItem, label: item.label }\">\n </ng-template>\n </div>\n </ng-container>\n\n <ng-template *ngIf=\"multiple && multiLabelTemplate && selectedValues.length > 0\"\n [ngTemplateOutlet]=\"multiLabelTemplate\"\n [ngTemplateOutletContext]=\"{ items: selectedValues, clear: clearItem }\">\n </ng-template>\n\n <div class=\"ng-input\"\n role=\"combobox\" \n [attr.aria-expanded]=\"isOpen\" \n [attr.aria-owns]=\"isOpen ? dropdownId : null\" \n aria-haspopup=\"listbox\">\n\n <input #searchInput\n [attr.id]=\"labelForId\"\n [attr.tabindex]=\"tabIndex\"\n [readOnly]=\"!searchable || itemsList.maxItemsSelected\"\n [disabled]=\"disabled\"\n [value]=\"searchTerm ? searchTerm : ''\"\n (input)=\"filter(searchInput.value)\"\n (compositionstart)=\"onCompositionStart()\"\n (compositionend)=\"onCompositionEnd(searchInput.value)\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n (change)=\"$event.stopPropagation()\"\n [attr.aria-activedescendant]=\"isOpen ? itemsList?.markedItem?.htmlId : null\"\n aria-autocomplete=\"list\"\n [attr.aria-controls]=\"isOpen ? dropdownId : null\">\n </div>\n </div>\n\n <ng-container *ngIf=\"loading\">\n <ng-template #defaultLoadingSpinnerTemplate>\n <div class=\"ng-spinner-loader\"></div>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]=\"loadingSpinnerTemplate || defaultLoadingSpinnerTemplate\">\n </ng-template>\n </ng-container>\n\n <span *ngIf=\"showClear()\" class=\"ng-clear-wrapper\" title=\"{{clearAllText}}\">\n <span class=\"ng-clear\" aria-hidden=\"true\">\u00D7</span>\n </span>\n\n <span class=\"ng-arrow-wrapper\">\n <span class=\"ng-arrow\"></span>\n </span>\n</div>\n\n<ng-dropdown-panel *ngIf=\"isOpen\"\n class=\"ng-dropdown-panel\"\n [virtualScroll]=\"virtualScroll\"\n [bufferAmount]=\"bufferAmount\"\n [appendTo]=\"appendTo\"\n [position]=\"dropdownPosition\"\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\"\n [filterValue]=\"searchTerm\"\n [items]=\"itemsList.filteredItems\"\n [markedItem]=\"itemsList.markedItem\"\n (update)=\"viewPortItems = $event\"\n (scroll)=\"scroll.emit($event)\"\n (scrollToEnd)=\"scrollToEnd.emit($event)\"\n (outsideClick)=\"close()\"\n [class.ng-select-multiple]=\"multiple\"\n [ngClass]=\"appendTo ? classes : null\"\n [id]=\"dropdownId\"\n role=\"listbox\"\n aria-label=\"Options list\">\n\n <ng-container>\n <div class=\"ng-option\" [attr.role]=\"item.children ? 'group' : 'option'\" (click)=\"toggleItem(item)\" (mouseover)=\"onItemHover(item)\"\n *ngFor=\"let item of viewPortItems; trackBy: trackByOption\"\n [class.ng-option-disabled]=\"item.disabled\"\n [class.ng-option-selected]=\"item.selected\"\n [class.ng-optgroup]=\"item.children\"\n [class.ng-option]=\"!item.children\"\n [class.ng-option-child]=\"!!item.parent\"\n [class.ng-option-marked]=\"item === itemsList.markedItem\"\n [attr.aria-selected]=\"item.selected\"\n [attr.id]=\"item?.htmlId\">\n\n <ng-template #defaultOptionTemplate>\n <span class=\"ng-option-label\" [ngItemLabel]=\"item.label\" [escape]=\"escapeHTML\"></span>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]=\"item.children ? (optgroupTemplate || defaultOptionTemplate) : (optionTemplate || defaultOptionTemplate)\"\n [ngTemplateOutletContext]=\"{ item: item.value, item$:item, index: item.index, searchTerm: searchTerm }\">\n </ng-template>\n </div>\n\n <div class=\"ng-option\" [class.ng-option-marked]=\"!itemsList.markedItem\" (mouseover)=\"itemsList.unmarkItem()\" role=\"option\" (click)=\"selectTag()\" *ngIf=\"showAddTag\">\n <ng-template #defaultTagTemplate>\n <span><span class=\"ng-tag-label\">{{addTagText}}</span>\"{{searchTerm}}\"</span>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]=\"tagTemplate || defaultTagTemplate\"\n [ngTemplateOutletContext]=\"{ searchTerm: searchTerm }\">\n </ng-template>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"showNoItemsFound()\">\n <ng-template #defaultNotFoundTemplate>\n <div class=\"ng-option ng-option-disabled\">{{notFoundText}}</div>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]=\"notFoundTemplate || defaultNotFoundTemplate\"\n [ngTemplateOutletContext]=\"{ searchTerm: searchTerm }\">\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"showTypeToSearch()\">\n <ng-template #defaultTypeToSearchTemplate>\n <div class=\"ng-option ng-option-disabled\">{{typeToSearchText}}</div>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]=\"typeToSearchTemplate || defaultTypeToSearchTemplate\">\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"loading && itemsList.filteredItems.length === 0\">\n <ng-template #defaultLoadingTextTemplate>\n <div class=\"ng-option ng-option-disabled\">{{loadingText}}</div>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]=\"loadingTextTemplate || defaultLoadingTextTemplate\"\n [ngTemplateOutletContext]=\"{ searchTerm: searchTerm }\">\n </ng-template>\n </ng-container>\n\n</ng-dropdown-panel>\n",
4167
- styles: ["@charset \"UTF-8\";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:\"\\200b\"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n"]
4168
- }]
4169
- }], function () {
4170
- return [{
4171
- type: undefined,
4172
- decorators: [{
4173
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Attribute,
4174
- args: ['class']
4175
- }]
4176
- }, {
4177
- type: undefined,
4178
- decorators: [{
4179
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Attribute,
4180
- args: ['autofocus']
4181
- }]
4182
- }, {
4183
- type: NgSelectConfig
4184
- }, {
4185
- type: undefined,
4186
- decorators: [{
4187
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
4188
- args: [SELECTION_MODEL_FACTORY]
4189
- }]
4190
- }, {
4191
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
4192
- }, {
4193
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef
4194
- }, {
4195
- type: ConsoleService
4196
- }];
4197
- }, {
4198
- bindLabel: [{
4199
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4200
- }],
4201
- bindValue: [{
4202
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4203
- }],
4204
- markFirst: [{
4205
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4206
- }],
4207
- placeholder: [{
4208
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4209
- }],
4210
- notFoundText: [{
4211
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4212
- }],
4213
- typeToSearchText: [{
4214
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4215
- }],
4216
- addTagText: [{
4217
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4218
- }],
4219
- loadingText: [{
4220
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4221
- }],
4222
- clearAllText: [{
4223
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4224
- }],
4225
- appearance: [{
4226
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4227
- }],
4228
- dropdownPosition: [{
4229
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4230
- }],
4231
- appendTo: [{
4232
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4233
- }],
4234
- loading: [{
4235
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4236
- }],
4237
- closeOnSelect: [{
4238
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4239
- }],
4240
- hideSelected: [{
4241
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4242
- }],
4243
- selectOnTab: [{
4244
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4245
- }],
4246
- openOnEnter: [{
4247
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4248
- }],
4249
- maxSelectedItems: [{
4250
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4251
- }],
4252
- groupBy: [{
4253
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4254
- }],
4255
- groupValue: [{
4256
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4257
- }],
4258
- bufferAmount: [{
4259
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4260
- }],
4261
- virtualScroll: [{
4262
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4263
- }],
4264
- selectableGroup: [{
4265
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4266
- }],
4267
- selectableGroupAsModel: [{
4268
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4269
- }],
4270
- searchFn: [{
4271
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4272
- }],
4273
- trackByFn: [{
4274
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4275
- }],
4276
- clearOnBackspace: [{
4277
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4278
- }],
4279
- labelForId: [{
4280
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4281
- }],
4282
- inputAttrs: [{
4283
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4284
- }],
4285
- tabIndex: [{
4286
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4287
- }],
4288
- readonly: [{
4289
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4290
- }],
4291
- searchWhileComposing: [{
4292
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4293
- }],
4294
- minTermLength: [{
4295
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4296
- }],
4297
- editableSearchTerm: [{
4298
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4299
- }],
4300
- keyDownFn: [{
4301
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4302
- }],
4303
- typeahead: [{
4304
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4305
- }, {
4306
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.HostBinding,
4307
- args: ['class.ng-select-typeahead']
4308
- }],
4309
- multiple: [{
4310
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4311
- }, {
4312
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.HostBinding,
4313
- args: ['class.ng-select-multiple']
4314
- }],
4315
- addTag: [{
4316
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4317
- }, {
4318
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.HostBinding,
4319
- args: ['class.ng-select-taggable']
4320
- }],
4321
- searchable: [{
4322
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4323
- }, {
4324
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.HostBinding,
4325
- args: ['class.ng-select-searchable']
4326
- }],
4327
- clearable: [{
4328
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4329
- }, {
4330
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.HostBinding,
4331
- args: ['class.ng-select-clearable']
4332
- }],
4333
- isOpen: [{
4334
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4335
- }, {
4336
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.HostBinding,
4337
- args: ['class.ng-select-opened']
4338
- }],
4339
- items: [{
4340
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4341
- }],
4342
- compareWith: [{
4343
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4344
- }],
4345
- clearSearchOnAdd: [{
4346
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
4347
- }],
4348
- blurEvent: [{
4349
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output,
4350
- args: ['blur']
4351
- }],
4352
- focusEvent: [{
4353
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output,
4354
- args: ['focus']
4355
- }],
4356
- changeEvent: [{
4357
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output,
4358
- args: ['change']
4359
- }],
4360
- openEvent: [{
4361
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output,
4362
- args: ['open']
4363
- }],
4364
- closeEvent: [{
4365
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output,
4366
- args: ['close']
4367
- }],
4368
- searchEvent: [{
4369
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output,
4370
- args: ['search']
4371
- }],
4372
- clearEvent: [{
4373
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output,
4374
- args: ['clear']
4375
- }],
4376
- addEvent: [{
4377
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output,
4378
- args: ['add']
4379
- }],
4380
- removeEvent: [{
4381
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output,
4382
- args: ['remove']
4383
- }],
4384
- scroll: [{
4385
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output,
4386
- args: ['scroll']
4387
- }],
4388
- scrollToEnd: [{
4389
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output,
4390
- args: ['scrollToEnd']
4391
- }],
4392
- optionTemplate: [{
4393
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChild,
4394
- args: [NgOptionTemplateDirective, {
4395
- read: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
4396
- }]
4397
- }],
4398
- optgroupTemplate: [{
4399
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChild,
4400
- args: [NgOptgroupTemplateDirective, {
4401
- read: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
4402
- }]
4403
- }],
4404
- labelTemplate: [{
4405
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChild,
4406
- args: [NgLabelTemplateDirective, {
4407
- read: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
4408
- }]
4409
- }],
4410
- multiLabelTemplate: [{
4411
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChild,
4412
- args: [NgMultiLabelTemplateDirective, {
4413
- read: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
4414
- }]
4415
- }],
4416
- headerTemplate: [{
4417
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChild,
4418
- args: [NgHeaderTemplateDirective, {
4419
- read: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
4420
- }]
4421
- }],
4422
- footerTemplate: [{
4423
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChild,
4424
- args: [NgFooterTemplateDirective, {
4425
- read: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
4426
- }]
4427
- }],
4428
- notFoundTemplate: [{
4429
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChild,
4430
- args: [NgNotFoundTemplateDirective, {
4431
- read: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
4432
- }]
4433
- }],
4434
- typeToSearchTemplate: [{
4435
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChild,
4436
- args: [NgTypeToSearchTemplateDirective, {
4437
- read: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
4438
- }]
4439
- }],
4440
- loadingTextTemplate: [{
4441
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChild,
4442
- args: [NgLoadingTextTemplateDirective, {
4443
- read: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
4444
- }]
4445
- }],
4446
- tagTemplate: [{
4447
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChild,
4448
- args: [NgTagTemplateDirective, {
4449
- read: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
4450
- }]
4451
- }],
4452
- loadingSpinnerTemplate: [{
4453
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChild,
4454
- args: [NgLoadingSpinnerTemplateDirective, {
4455
- read: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
4456
- }]
4457
- }],
4458
- dropdownPanel: [{
4459
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewChild,
4460
- args: [(0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => NgDropdownPanelComponent)]
4461
- }],
4462
- searchInput: [{
4463
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewChild,
4464
- args: ['searchInput', {
4465
- static: true
4466
- }]
4467
- }],
4468
- ngOptions: [{
4469
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChildren,
4470
- args: [NgOptionComponent, {
4471
- descendants: true
4472
- }]
4473
- }],
4474
- useDefaultClass: [{
4475
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.HostBinding,
4476
- args: ['class.ng-select']
4477
- }],
4478
- disabled: [{
4479
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.HostBinding,
4480
- args: ['class.ng-select-disabled']
4481
- }],
4482
- filtered: [{
4483
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.HostBinding,
4484
- args: ['class.ng-select-filtered']
4485
- }],
4486
- single: [{
4487
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.HostBinding,
4488
- args: ['class.ng-select-single']
4489
- }],
4490
- handleKeyDown: [{
4491
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.HostListener,
4492
- args: ['keydown', ['$event']]
4493
- }]
4494
- });
4495
- })();
4496
-
4497
- function DefaultSelectionModelFactory() {
4498
- return new DefaultSelectionModel();
4499
- }
4500
-
4501
- class DefaultSelectionModel {
4502
- constructor() {
4503
- this._selected = [];
4504
- }
4505
-
4506
- get value() {
4507
- return this._selected;
4508
- }
4509
-
4510
- select(item, multiple, groupAsModel) {
4511
- item.selected = true;
4512
-
4513
- if (!item.children || !multiple && groupAsModel) {
4514
- this._selected.push(item);
4515
- }
4516
-
4517
- if (multiple) {
4518
- if (item.parent) {
4519
- const childrenCount = item.parent.children.length;
4520
- const selectedCount = item.parent.children.filter(x => x.selected).length;
4521
- item.parent.selected = childrenCount === selectedCount;
4522
- } else if (item.children) {
4523
- this._setChildrenSelectedState(item.children, true);
4524
-
4525
- this._removeChildren(item);
4526
-
4527
- if (groupAsModel && this._activeChildren(item)) {
4528
- this._selected = [...this._selected.filter(x => x.parent !== item), item];
4529
- } else {
4530
- this._selected = [...this._selected, ...item.children.filter(x => !x.disabled)];
4531
- }
4532
- }
4533
- }
4534
- }
4535
-
4536
- unselect(item, multiple) {
4537
- this._selected = this._selected.filter(x => x !== item);
4538
- item.selected = false;
4539
-
4540
- if (multiple) {
4541
- if (item.parent && item.parent.selected) {
4542
- const children = item.parent.children;
4543
-
4544
- this._removeParent(item.parent);
4545
-
4546
- this._removeChildren(item.parent);
4547
-
4548
- this._selected.push(...children.filter(x => x !== item && !x.disabled));
4549
-
4550
- item.parent.selected = false;
4551
- } else if (item.children) {
4552
- this._setChildrenSelectedState(item.children, false);
4553
-
4554
- this._removeChildren(item);
4555
- }
4556
- }
4557
- }
4558
-
4559
- clear(keepDisabled) {
4560
- this._selected = keepDisabled ? this._selected.filter(x => x.disabled) : [];
4561
- }
4562
-
4563
- _setChildrenSelectedState(children, selected) {
4564
- for (const child of children) {
4565
- if (child.disabled) {
4566
- continue;
4567
- }
4568
-
4569
- child.selected = selected;
4570
- }
4571
- }
4572
-
4573
- _removeChildren(parent) {
4574
- this._selected = [...this._selected.filter(x => x.parent !== parent), ...parent.children.filter(x => x.parent === parent && x.disabled && x.selected)];
4575
- }
4576
-
4577
- _removeParent(parent) {
4578
- this._selected = this._selected.filter(x => x !== parent);
4579
- }
4580
-
4581
- _activeChildren(item) {
4582
- return item.children.every(x => !x.disabled || x.selected);
4583
- }
4584
-
4585
- }
4586
-
4587
- class NgSelectModule {}
4588
-
4589
- NgSelectModule.ɵfac = function NgSelectModule_Factory(t) {
4590
- return new (t || NgSelectModule)();
4591
- };
4592
-
4593
- NgSelectModule.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
4594
- type: NgSelectModule
4595
- });
4596
- NgSelectModule.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
4597
- providers: [{
4598
- provide: SELECTION_MODEL_FACTORY,
4599
- useValue: DefaultSelectionModelFactory
4600
- }],
4601
- imports: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.CommonModule]
4602
- });
4603
-
4604
- (function () {
4605
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgSelectModule, [{
4606
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
4607
- args: [{
4608
- declarations: [NgDropdownPanelComponent, NgOptionComponent, NgSelectComponent, NgOptgroupTemplateDirective, NgOptionTemplateDirective, NgLabelTemplateDirective, NgMultiLabelTemplateDirective, NgHeaderTemplateDirective, NgFooterTemplateDirective, NgNotFoundTemplateDirective, NgTypeToSearchTemplateDirective, NgLoadingTextTemplateDirective, NgTagTemplateDirective, NgLoadingSpinnerTemplateDirective, NgItemLabelDirective],
4609
- imports: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.CommonModule],
4610
- exports: [NgSelectComponent, NgOptionComponent, NgOptgroupTemplateDirective, NgOptionTemplateDirective, NgLabelTemplateDirective, NgMultiLabelTemplateDirective, NgHeaderTemplateDirective, NgFooterTemplateDirective, NgNotFoundTemplateDirective, NgTypeToSearchTemplateDirective, NgLoadingTextTemplateDirective, NgTagTemplateDirective, NgLoadingSpinnerTemplateDirective],
4611
- providers: [{
4612
- provide: SELECTION_MODEL_FACTORY,
4613
- useValue: DefaultSelectionModelFactory
4614
- }]
4615
- }]
4616
- }], null, null);
4617
- })();
4618
- /*
4619
- * Public API Surface of ng-select
4620
- */
4621
-
4622
- /**
4623
- * Generated bundle index. Do not edit.
4624
- */
4625
-
4626
-
4627
-
4628
-
4629
- /***/ })
4630
-
4631
- }]);
4632
- //# sourceMappingURL=default-node_modules_ng-select_ng-select_fesm2020_ng-select-ng-select_mjs.js.map