@taiga-ui/kit 3.77.1 → 3.78.0-canary.0955f99

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 (135) hide show
  1. package/bundles/taiga-ui-kit-components-accordion.umd.js +771 -625
  2. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  3. package/bundles/taiga-ui-kit-components-action.umd.js +598 -452
  4. package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
  5. package/bundles/taiga-ui-kit-components-avatar.umd.js +640 -494
  6. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  7. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +563 -417
  8. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +747 -601
  10. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  11. package/bundles/taiga-ui-kit-components-calendar-range.umd.js +718 -572
  12. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  13. package/bundles/taiga-ui-kit-components-carousel.umd.js +825 -679
  14. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +645 -499
  16. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  17. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +585 -439
  18. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  19. package/bundles/taiga-ui-kit-components-checkbox.umd.js +608 -462
  20. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  21. package/bundles/taiga-ui-kit-components-combo-box.umd.js +834 -688
  22. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  23. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +656 -510
  24. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  25. package/bundles/taiga-ui-kit-components-elastic-container.umd.js +587 -441
  26. package/bundles/taiga-ui-kit-components-elastic-container.umd.js.map +1 -1
  27. package/bundles/taiga-ui-kit-components-files.umd.js +806 -660
  28. package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
  29. package/bundles/taiga-ui-kit-components-filter.umd.js +607 -461
  30. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  31. package/bundles/taiga-ui-kit-components-input-copy.umd.js +700 -554
  32. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  33. package/bundles/taiga-ui-kit-components-input-count.umd.js +809 -663
  34. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  35. package/bundles/taiga-ui-kit-components-input-date-multi.umd.js +828 -682
  36. package/bundles/taiga-ui-kit-components-input-date-multi.umd.js.map +1 -1
  37. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +955 -809
  38. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  39. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +1042 -896
  40. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  41. package/bundles/taiga-ui-kit-components-input-date.umd.js +959 -813
  42. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  43. package/bundles/taiga-ui-kit-components-input-files.umd.js +975 -829
  44. package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
  45. package/bundles/taiga-ui-kit-components-input-inline.umd.js +612 -466
  46. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  47. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +755 -609
  48. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  49. package/bundles/taiga-ui-kit-components-input-month.umd.js +788 -642
  50. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  51. package/bundles/taiga-ui-kit-components-input-number.umd.js +941 -795
  52. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  53. package/bundles/taiga-ui-kit-components-input-password.umd.js +720 -574
  54. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  55. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +811 -665
  56. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  57. package/bundles/taiga-ui-kit-components-input-phone.umd.js +913 -767
  58. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  59. package/bundles/taiga-ui-kit-components-input-range.umd.js +796 -650
  60. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  61. package/bundles/taiga-ui-kit-components-input-slider.umd.js +737 -591
  62. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  63. package/bundles/taiga-ui-kit-components-input-tag.umd.js +1108 -962
  64. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  65. package/bundles/taiga-ui-kit-components-input-time.umd.js +1023 -877
  66. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  67. package/bundles/taiga-ui-kit-components-input-year.umd.js +705 -559
  68. package/bundles/taiga-ui-kit-components-input-year.umd.js.map +1 -1
  69. package/bundles/taiga-ui-kit-components-input.umd.js +661 -515
  70. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  71. package/bundles/taiga-ui-kit-components-items-with-more.umd.js +689 -543
  72. package/bundles/taiga-ui-kit-components-items-with-more.umd.js.map +1 -1
  73. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +742 -596
  74. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  75. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +544 -398
  76. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
  77. package/bundles/taiga-ui-kit-components-multi-select.umd.js +1340 -1194
  78. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  79. package/bundles/taiga-ui-kit-components-pagination.umd.js +810 -664
  80. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  81. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +152 -6
  82. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
  83. package/bundles/taiga-ui-kit-components-progress.umd.js +152 -6
  84. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  85. package/bundles/taiga-ui-kit-components-push.umd.js +152 -6
  86. package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
  87. package/bundles/taiga-ui-kit-components-radio-block.umd.js +645 -499
  88. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  89. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +616 -470
  90. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  91. package/bundles/taiga-ui-kit-components-radio-list.umd.js +628 -482
  92. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  93. package/bundles/taiga-ui-kit-components-radio.umd.js +689 -543
  94. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  95. package/bundles/taiga-ui-kit-components-range.umd.js +811 -665
  96. package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
  97. package/bundles/taiga-ui-kit-components-rating.umd.js +646 -500
  98. package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
  99. package/bundles/taiga-ui-kit-components-routable-dialog.umd.js +586 -440
  100. package/bundles/taiga-ui-kit-components-routable-dialog.umd.js.map +1 -1
  101. package/bundles/taiga-ui-kit-components-select.umd.js +933 -787
  102. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  103. package/bundles/taiga-ui-kit-components-slider.umd.js +943 -797
  104. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  105. package/bundles/taiga-ui-kit-components-stepper.umd.js +764 -618
  106. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  107. package/bundles/taiga-ui-kit-components-tabs.umd.js +152 -6
  108. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  109. package/bundles/taiga-ui-kit-components-textarea.umd.js +966 -820
  110. package/bundles/taiga-ui-kit-components-textarea.umd.js.map +1 -1
  111. package/bundles/taiga-ui-kit-components-tiles.umd.js +839 -693
  112. package/bundles/taiga-ui-kit-components-tiles.umd.js.map +1 -1
  113. package/bundles/taiga-ui-kit-components-toggle.umd.js +711 -565
  114. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  115. package/bundles/taiga-ui-kit-constants.umd.js +152 -6
  116. package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
  117. package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js +637 -491
  118. package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js.map +1 -1
  119. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +605 -459
  120. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
  121. package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js +540 -394
  122. package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js.map +1 -1
  123. package/bundles/taiga-ui-kit-pipes-field-error.umd.js +693 -547
  124. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
  125. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +616 -470
  126. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
  127. package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js +524 -378
  128. package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js.map +1 -1
  129. package/bundles/taiga-ui-kit-utils-mask.umd.js +152 -6
  130. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  131. package/bundles/taiga-ui-kit-utils-math.umd.js +152 -6
  132. package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
  133. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +152 -6
  134. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  135. package/package.json +42 -42
@@ -1,1219 +1,1365 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/kit/utils'), require('@angular/forms'), require('@taiga-ui/core'), require('@taiga-ui/kit/classes'), require('@taiga-ui/kit/components/arrow'), require('@taiga-ui/kit/components/input-tag'), require('@taiga-ui/kit/providers'), require('@taiga-ui/kit/tokens'), require('@taiga-ui/kit/abstract'), require('@angular/common'), require('@tinkoff/ng-polymorpheus'), require('@taiga-ui/kit/components/data-list-wrapper'), require('@taiga-ui/kit/components/multi-select-option'), require('@taiga-ui/kit/pipes/stringify-content'), require('rxjs'), require('rxjs/operators')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/multi-select', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/kit/utils', '@angular/forms', '@taiga-ui/core', '@taiga-ui/kit/classes', '@taiga-ui/kit/components/arrow', '@taiga-ui/kit/components/input-tag', '@taiga-ui/kit/providers', '@taiga-ui/kit/tokens', '@taiga-ui/kit/abstract', '@angular/common', '@tinkoff/ng-polymorpheus', '@taiga-ui/kit/components/data-list-wrapper', '@taiga-ui/kit/components/multi-select-option', '@taiga-ui/kit/pipes/stringify-content', 'rxjs', 'rxjs/operators'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].kit = global["taiga-ui"].kit || {}, global["taiga-ui"].kit.components = global["taiga-ui"].kit.components || {}, global["taiga-ui"].kit.components["multi-select"] = {}), global.ng.core, global.i3, global["taiga-ui"].kit.utils, global.ng.forms, global.i1, global["taiga-ui"].kit.classes, global["taiga-ui"].kit.components.arrow, global["taiga-ui"].kit.components["input-tag"], global["taiga-ui"].kit.providers, global["taiga-ui"].kit.tokens, global["taiga-ui"].kit.abstract, global.ng.common, global.i6, global["taiga-ui"].kit.components["data-list-wrapper"], global["taiga-ui"].kit.components["multi-select-option"], global["taiga-ui"].kit.pipes["stringify-content"], global.rxjs, global.rxjs.operators));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/kit/utils'), require('@angular/forms'), require('@taiga-ui/core'), require('@taiga-ui/kit/classes'), require('@taiga-ui/kit/components/arrow'), require('@taiga-ui/kit/components/input-tag'), require('@taiga-ui/kit/providers'), require('@taiga-ui/kit/tokens'), require('@taiga-ui/kit/abstract'), require('@angular/common'), require('@tinkoff/ng-polymorpheus'), require('@taiga-ui/kit/components/data-list-wrapper'), require('@taiga-ui/kit/components/multi-select-option'), require('@taiga-ui/kit/pipes/stringify-content'), require('rxjs'), require('rxjs/operators')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/multi-select', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/kit/utils', '@angular/forms', '@taiga-ui/core', '@taiga-ui/kit/classes', '@taiga-ui/kit/components/arrow', '@taiga-ui/kit/components/input-tag', '@taiga-ui/kit/providers', '@taiga-ui/kit/tokens', '@taiga-ui/kit/abstract', '@angular/common', '@tinkoff/ng-polymorpheus', '@taiga-ui/kit/components/data-list-wrapper', '@taiga-ui/kit/components/multi-select-option', '@taiga-ui/kit/pipes/stringify-content', 'rxjs', 'rxjs/operators'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].kit = global["taiga-ui"].kit || {}, global["taiga-ui"].kit.components = global["taiga-ui"].kit.components || {}, global["taiga-ui"].kit.components["multi-select"] = {}), global.ng.core, global.i3, global["taiga-ui"].kit.utils, global.ng.forms, global.i1, global["taiga-ui"].kit.classes, global["taiga-ui"].kit.components.arrow, global["taiga-ui"].kit.components["input-tag"], global["taiga-ui"].kit.providers, global["taiga-ui"].kit.tokens, global["taiga-ui"].kit.abstract, global.ng.common, global.i6, global["taiga-ui"].kit.components["data-list-wrapper"], global["taiga-ui"].kit.components["multi-select-option"], global["taiga-ui"].kit.pipes["stringify-content"], global.rxjs, global.rxjs.operators));
5
5
  })(this, (function (exports, i0, i3, utils, i4, i1, classes, arrow, i2, providers, tokens, abstract, i2$1, i6, i1$1, multiSelectOption, i6$1, rxjs, operators) { 'use strict';
6
6
 
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
20
18
  }
21
- n["default"] = e;
22
- return Object.freeze(n);
19
+ });
23
20
  }
21
+ n["default"] = e;
22
+ return Object.freeze(n);
23
+ }
24
24
 
25
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
27
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
28
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
- var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
31
- var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
32
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
33
- var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
27
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
28
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
+ var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
31
+ var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
32
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
33
+ var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
34
34
 
35
- /*! *****************************************************************************
36
- Copyright (c) Microsoft Corporation.
35
+ /******************************************************************************
36
+ Copyright (c) Microsoft Corporation.
37
37
 
38
- Permission to use, copy, modify, and/or distribute this software for any
39
- purpose with or without fee is hereby granted.
38
+ Permission to use, copy, modify, and/or distribute this software for any
39
+ purpose with or without fee is hereby granted.
40
40
 
41
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
42
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
43
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
44
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
45
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
46
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
47
- PERFORMANCE OF THIS SOFTWARE.
48
- ***************************************************************************** */
49
- /* global Reflect, Promise */
50
- var extendStatics = function (d, b) {
51
- extendStatics = Object.setPrototypeOf ||
52
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
53
- function (d, b) { for (var p in b)
54
- if (Object.prototype.hasOwnProperty.call(b, p))
55
- d[p] = b[p]; };
56
- return extendStatics(d, b);
57
- };
58
- function __extends(d, b) {
59
- if (typeof b !== "function" && b !== null)
60
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
61
- extendStatics(d, b);
62
- function __() { this.constructor = d; }
63
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
64
- }
65
- var __assign = function () {
66
- __assign = Object.assign || function __assign(t) {
67
- for (var s, i = 1, n = arguments.length; i < n; i++) {
68
- s = arguments[i];
69
- for (var p in s)
70
- if (Object.prototype.hasOwnProperty.call(s, p))
71
- t[p] = s[p];
72
- }
73
- return t;
74
- };
75
- return __assign.apply(this, arguments);
76
- };
77
- function __rest(s, e) {
78
- var t = {};
79
- for (var p in s)
80
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
81
- t[p] = s[p];
82
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
83
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
84
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
85
- t[p[i]] = s[p[i]];
86
- }
87
- return t;
88
- }
89
- function __decorate(decorators, target, key, desc) {
90
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
91
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
92
- r = Reflect.decorate(decorators, target, key, desc);
93
- else
94
- for (var i = decorators.length - 1; i >= 0; i--)
95
- if (d = decorators[i])
96
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
97
- return c > 3 && r && Object.defineProperty(target, key, r), r;
98
- }
99
- function __param(paramIndex, decorator) {
100
- return function (target, key) { decorator(target, key, paramIndex); };
101
- }
102
- function __metadata(metadataKey, metadataValue) {
103
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
104
- return Reflect.metadata(metadataKey, metadataValue);
105
- }
106
- function __awaiter(thisArg, _arguments, P, generator) {
107
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
108
- return new (P || (P = Promise))(function (resolve, reject) {
109
- function fulfilled(value) { try {
110
- step(generator.next(value));
111
- }
112
- catch (e) {
113
- reject(e);
114
- } }
115
- function rejected(value) { try {
116
- step(generator["throw"](value));
117
- }
118
- catch (e) {
119
- reject(e);
120
- } }
121
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
122
- step((generator = generator.apply(thisArg, _arguments || [])).next());
123
- });
124
- }
125
- function __generator(thisArg, body) {
126
- var _ = { label: 0, sent: function () { if (t[0] & 1)
127
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
128
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
129
- function verb(n) { return function (v) { return step([n, v]); }; }
130
- function step(op) {
131
- if (f)
132
- throw new TypeError("Generator is already executing.");
133
- while (_)
134
- try {
135
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
136
- return t;
137
- if (y = 0, t)
138
- op = [op[0] & 2, t.value];
139
- switch (op[0]) {
140
- case 0:
141
- case 1:
142
- t = op;
143
- break;
144
- case 4:
145
- _.label++;
146
- return { value: op[1], done: false };
147
- case 5:
148
- _.label++;
149
- y = op[1];
150
- op = [0];
151
- continue;
152
- case 7:
153
- op = _.ops.pop();
154
- _.trys.pop();
155
- continue;
156
- default:
157
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
158
- _ = 0;
159
- continue;
160
- }
161
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
162
- _.label = op[1];
163
- break;
164
- }
165
- if (op[0] === 6 && _.label < t[1]) {
166
- _.label = t[1];
167
- t = op;
168
- break;
169
- }
170
- if (t && _.label < t[2]) {
171
- _.label = t[2];
172
- _.ops.push(op);
173
- break;
174
- }
175
- if (t[2])
176
- _.ops.pop();
177
- _.trys.pop();
178
- continue;
179
- }
180
- op = body.call(thisArg, _);
181
- }
182
- catch (e) {
183
- op = [6, e];
184
- y = 0;
185
- }
186
- finally {
187
- f = t = 0;
188
- }
189
- if (op[0] & 5)
190
- throw op[1];
191
- return { value: op[0] ? op[1] : void 0, done: true };
192
- }
193
- }
194
- var __createBinding = Object.create ? (function (o, m, k, k2) {
195
- if (k2 === undefined)
196
- k2 = k;
197
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
198
- }) : (function (o, m, k, k2) {
199
- if (k2 === undefined)
200
- k2 = k;
201
- o[k2] = m[k];
202
- });
203
- function __exportStar(m, o) {
204
- for (var p in m)
205
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
206
- __createBinding(o, m, p);
207
- }
208
- function __values(o) {
209
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
210
- if (m)
211
- return m.call(o);
212
- if (o && typeof o.length === "number")
213
- return {
214
- next: function () {
215
- if (o && i >= o.length)
216
- o = void 0;
217
- return { value: o && o[i++], done: !o };
218
- }
219
- };
220
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
221
- }
222
- function __read(o, n) {
223
- var m = typeof Symbol === "function" && o[Symbol.iterator];
224
- if (!m)
225
- return o;
226
- var i = m.call(o), r, ar = [], e;
227
- try {
228
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
229
- ar.push(r.value);
230
- }
231
- catch (error) {
232
- e = { error: error };
233
- }
234
- finally {
235
- try {
236
- if (r && !r.done && (m = i["return"]))
237
- m.call(i);
238
- }
239
- finally {
240
- if (e)
241
- throw e.error;
242
- }
243
- }
244
- return ar;
245
- }
246
- /** @deprecated */
247
- function __spread() {
248
- for (var ar = [], i = 0; i < arguments.length; i++)
249
- ar = ar.concat(__read(arguments[i]));
250
- return ar;
251
- }
252
- /** @deprecated */
253
- function __spreadArrays() {
254
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
255
- s += arguments[i].length;
256
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
257
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
258
- r[k] = a[j];
259
- return r;
260
- }
261
- function __spreadArray(to, from, pack) {
262
- if (pack || arguments.length === 2)
263
- for (var i = 0, l = from.length, ar; i < l; i++) {
264
- if (ar || !(i in from)) {
265
- if (!ar)
266
- ar = Array.prototype.slice.call(from, 0, i);
267
- ar[i] = from[i];
268
- }
269
- }
270
- return to.concat(ar || from);
271
- }
272
- function __await(v) {
273
- return this instanceof __await ? (this.v = v, this) : new __await(v);
274
- }
275
- function __asyncGenerator(thisArg, _arguments, generator) {
276
- if (!Symbol.asyncIterator)
277
- throw new TypeError("Symbol.asyncIterator is not defined.");
278
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
279
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
280
- function verb(n) { if (g[n])
281
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
282
- function resume(n, v) { try {
283
- step(g[n](v));
284
- }
285
- catch (e) {
286
- settle(q[0][3], e);
287
- } }
288
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
289
- function fulfill(value) { resume("next", value); }
290
- function reject(value) { resume("throw", value); }
291
- function settle(f, v) { if (f(v), q.shift(), q.length)
292
- resume(q[0][0], q[0][1]); }
293
- }
294
- function __asyncDelegator(o) {
295
- var i, p;
296
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
297
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
298
- }
299
- function __asyncValues(o) {
300
- if (!Symbol.asyncIterator)
301
- throw new TypeError("Symbol.asyncIterator is not defined.");
302
- var m = o[Symbol.asyncIterator], i;
303
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
304
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
305
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
306
- }
307
- function __makeTemplateObject(cooked, raw) {
308
- if (Object.defineProperty) {
309
- Object.defineProperty(cooked, "raw", { value: raw });
310
- }
311
- else {
312
- cooked.raw = raw;
313
- }
314
- return cooked;
315
- }
316
- ;
317
- var __setModuleDefault = Object.create ? (function (o, v) {
318
- Object.defineProperty(o, "default", { enumerable: true, value: v });
319
- }) : function (o, v) {
320
- o["default"] = v;
321
- };
322
- function __importStar(mod) {
323
- if (mod && mod.__esModule)
324
- return mod;
325
- var result = {};
326
- if (mod != null)
327
- for (var k in mod)
328
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
329
- __createBinding(result, mod, k);
330
- __setModuleDefault(result, mod);
331
- return result;
332
- }
333
- function __importDefault(mod) {
334
- return (mod && mod.__esModule) ? mod : { default: mod };
335
- }
336
- function __classPrivateFieldGet(receiver, state, kind, f) {
337
- if (kind === "a" && !f)
338
- throw new TypeError("Private accessor was defined without a getter");
339
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
340
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
341
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
342
- }
343
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
344
- if (kind === "m")
345
- throw new TypeError("Private method is not writable");
346
- if (kind === "a" && !f)
347
- throw new TypeError("Private accessor was defined without a setter");
348
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
349
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
350
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
351
- }
41
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
42
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
43
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
44
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
45
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
46
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
47
+ PERFORMANCE OF THIS SOFTWARE.
48
+ ***************************************************************************** */
49
+ /* global Reflect, Promise, SuppressedError, Symbol */
50
+ var extendStatics = function (d, b) {
51
+ extendStatics = Object.setPrototypeOf ||
52
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
53
+ function (d, b) { for (var p in b)
54
+ if (Object.prototype.hasOwnProperty.call(b, p))
55
+ d[p] = b[p]; };
56
+ return extendStatics(d, b);
57
+ };
58
+ function __extends(d, b) {
59
+ if (typeof b !== "function" && b !== null)
60
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
61
+ extendStatics(d, b);
62
+ function __() { this.constructor = d; }
63
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
64
+ }
65
+ var __assign = function () {
66
+ __assign = Object.assign || function __assign(t) {
67
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
68
+ s = arguments[i];
69
+ for (var p in s)
70
+ if (Object.prototype.hasOwnProperty.call(s, p))
71
+ t[p] = s[p];
72
+ }
73
+ return t;
74
+ };
75
+ return __assign.apply(this, arguments);
76
+ };
77
+ function __rest(s, e) {
78
+ var t = {};
79
+ for (var p in s)
80
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
81
+ t[p] = s[p];
82
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
83
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
84
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
85
+ t[p[i]] = s[p[i]];
86
+ }
87
+ return t;
88
+ }
89
+ function __decorate(decorators, target, key, desc) {
90
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
91
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
92
+ r = Reflect.decorate(decorators, target, key, desc);
93
+ else
94
+ for (var i = decorators.length - 1; i >= 0; i--)
95
+ if (d = decorators[i])
96
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
97
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
98
+ }
99
+ function __param(paramIndex, decorator) {
100
+ return function (target, key) { decorator(target, key, paramIndex); };
101
+ }
102
+ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
103
+ function accept(f) { if (f !== void 0 && typeof f !== "function")
104
+ throw new TypeError("Function expected"); return f; }
105
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
106
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
107
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
108
+ var _, done = false;
109
+ for (var i = decorators.length - 1; i >= 0; i--) {
110
+ var context = {};
111
+ for (var p in contextIn)
112
+ context[p] = p === "access" ? {} : contextIn[p];
113
+ for (var p in contextIn.access)
114
+ context.access[p] = contextIn.access[p];
115
+ context.addInitializer = function (f) { if (done)
116
+ throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
117
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
118
+ if (kind === "accessor") {
119
+ if (result === void 0)
120
+ continue;
121
+ if (result === null || typeof result !== "object")
122
+ throw new TypeError("Object expected");
123
+ if (_ = accept(result.get))
124
+ descriptor.get = _;
125
+ if (_ = accept(result.set))
126
+ descriptor.set = _;
127
+ if (_ = accept(result.init))
128
+ initializers.unshift(_);
129
+ }
130
+ else if (_ = accept(result)) {
131
+ if (kind === "field")
132
+ initializers.unshift(_);
133
+ else
134
+ descriptor[key] = _;
135
+ }
136
+ }
137
+ if (target)
138
+ Object.defineProperty(target, contextIn.name, descriptor);
139
+ done = true;
140
+ }
141
+ ;
142
+ function __runInitializers(thisArg, initializers, value) {
143
+ var useValue = arguments.length > 2;
144
+ for (var i = 0; i < initializers.length; i++) {
145
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
146
+ }
147
+ return useValue ? value : void 0;
148
+ }
149
+ ;
150
+ function __propKey(x) {
151
+ return typeof x === "symbol" ? x : "".concat(x);
152
+ }
153
+ ;
154
+ function __setFunctionName(f, name, prefix) {
155
+ if (typeof name === "symbol")
156
+ name = name.description ? "[".concat(name.description, "]") : "";
157
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
158
+ }
159
+ ;
160
+ function __metadata(metadataKey, metadataValue) {
161
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
162
+ return Reflect.metadata(metadataKey, metadataValue);
163
+ }
164
+ function __awaiter(thisArg, _arguments, P, generator) {
165
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
166
+ return new (P || (P = Promise))(function (resolve, reject) {
167
+ function fulfilled(value) { try {
168
+ step(generator.next(value));
169
+ }
170
+ catch (e) {
171
+ reject(e);
172
+ } }
173
+ function rejected(value) { try {
174
+ step(generator["throw"](value));
175
+ }
176
+ catch (e) {
177
+ reject(e);
178
+ } }
179
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
180
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
181
+ });
182
+ }
183
+ function __generator(thisArg, body) {
184
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
185
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
186
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
187
+ function verb(n) { return function (v) { return step([n, v]); }; }
188
+ function step(op) {
189
+ if (f)
190
+ throw new TypeError("Generator is already executing.");
191
+ while (g && (g = 0, op[0] && (_ = 0)), _)
192
+ try {
193
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
194
+ return t;
195
+ if (y = 0, t)
196
+ op = [op[0] & 2, t.value];
197
+ switch (op[0]) {
198
+ case 0:
199
+ case 1:
200
+ t = op;
201
+ break;
202
+ case 4:
203
+ _.label++;
204
+ return { value: op[1], done: false };
205
+ case 5:
206
+ _.label++;
207
+ y = op[1];
208
+ op = [0];
209
+ continue;
210
+ case 7:
211
+ op = _.ops.pop();
212
+ _.trys.pop();
213
+ continue;
214
+ default:
215
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
216
+ _ = 0;
217
+ continue;
218
+ }
219
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
220
+ _.label = op[1];
221
+ break;
222
+ }
223
+ if (op[0] === 6 && _.label < t[1]) {
224
+ _.label = t[1];
225
+ t = op;
226
+ break;
227
+ }
228
+ if (t && _.label < t[2]) {
229
+ _.label = t[2];
230
+ _.ops.push(op);
231
+ break;
232
+ }
233
+ if (t[2])
234
+ _.ops.pop();
235
+ _.trys.pop();
236
+ continue;
237
+ }
238
+ op = body.call(thisArg, _);
239
+ }
240
+ catch (e) {
241
+ op = [6, e];
242
+ y = 0;
243
+ }
244
+ finally {
245
+ f = t = 0;
246
+ }
247
+ if (op[0] & 5)
248
+ throw op[1];
249
+ return { value: op[0] ? op[1] : void 0, done: true };
250
+ }
251
+ }
252
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
253
+ if (k2 === undefined)
254
+ k2 = k;
255
+ var desc = Object.getOwnPropertyDescriptor(m, k);
256
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
257
+ desc = { enumerable: true, get: function () { return m[k]; } };
258
+ }
259
+ Object.defineProperty(o, k2, desc);
260
+ }) : (function (o, m, k, k2) {
261
+ if (k2 === undefined)
262
+ k2 = k;
263
+ o[k2] = m[k];
264
+ });
265
+ function __exportStar(m, o) {
266
+ for (var p in m)
267
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
268
+ __createBinding(o, m, p);
269
+ }
270
+ function __values(o) {
271
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
272
+ if (m)
273
+ return m.call(o);
274
+ if (o && typeof o.length === "number")
275
+ return {
276
+ next: function () {
277
+ if (o && i >= o.length)
278
+ o = void 0;
279
+ return { value: o && o[i++], done: !o };
280
+ }
281
+ };
282
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
283
+ }
284
+ function __read(o, n) {
285
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
286
+ if (!m)
287
+ return o;
288
+ var i = m.call(o), r, ar = [], e;
289
+ try {
290
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
291
+ ar.push(r.value);
292
+ }
293
+ catch (error) {
294
+ e = { error: error };
295
+ }
296
+ finally {
297
+ try {
298
+ if (r && !r.done && (m = i["return"]))
299
+ m.call(i);
300
+ }
301
+ finally {
302
+ if (e)
303
+ throw e.error;
304
+ }
305
+ }
306
+ return ar;
307
+ }
308
+ /** @deprecated */
309
+ function __spread() {
310
+ for (var ar = [], i = 0; i < arguments.length; i++)
311
+ ar = ar.concat(__read(arguments[i]));
312
+ return ar;
313
+ }
314
+ /** @deprecated */
315
+ function __spreadArrays() {
316
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
317
+ s += arguments[i].length;
318
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
319
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
320
+ r[k] = a[j];
321
+ return r;
322
+ }
323
+ function __spreadArray(to, from, pack) {
324
+ if (pack || arguments.length === 2)
325
+ for (var i = 0, l = from.length, ar; i < l; i++) {
326
+ if (ar || !(i in from)) {
327
+ if (!ar)
328
+ ar = Array.prototype.slice.call(from, 0, i);
329
+ ar[i] = from[i];
330
+ }
331
+ }
332
+ return to.concat(ar || Array.prototype.slice.call(from));
333
+ }
334
+ function __await(v) {
335
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
336
+ }
337
+ function __asyncGenerator(thisArg, _arguments, generator) {
338
+ if (!Symbol.asyncIterator)
339
+ throw new TypeError("Symbol.asyncIterator is not defined.");
340
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
341
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
342
+ function verb(n) { if (g[n])
343
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
344
+ function resume(n, v) { try {
345
+ step(g[n](v));
346
+ }
347
+ catch (e) {
348
+ settle(q[0][3], e);
349
+ } }
350
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
351
+ function fulfill(value) { resume("next", value); }
352
+ function reject(value) { resume("throw", value); }
353
+ function settle(f, v) { if (f(v), q.shift(), q.length)
354
+ resume(q[0][0], q[0][1]); }
355
+ }
356
+ function __asyncDelegator(o) {
357
+ var i, p;
358
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
359
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
360
+ }
361
+ function __asyncValues(o) {
362
+ if (!Symbol.asyncIterator)
363
+ throw new TypeError("Symbol.asyncIterator is not defined.");
364
+ var m = o[Symbol.asyncIterator], i;
365
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
366
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
367
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
368
+ }
369
+ function __makeTemplateObject(cooked, raw) {
370
+ if (Object.defineProperty) {
371
+ Object.defineProperty(cooked, "raw", { value: raw });
372
+ }
373
+ else {
374
+ cooked.raw = raw;
375
+ }
376
+ return cooked;
377
+ }
378
+ ;
379
+ var __setModuleDefault = Object.create ? (function (o, v) {
380
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
381
+ }) : function (o, v) {
382
+ o["default"] = v;
383
+ };
384
+ function __importStar(mod) {
385
+ if (mod && mod.__esModule)
386
+ return mod;
387
+ var result = {};
388
+ if (mod != null)
389
+ for (var k in mod)
390
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
391
+ __createBinding(result, mod, k);
392
+ __setModuleDefault(result, mod);
393
+ return result;
394
+ }
395
+ function __importDefault(mod) {
396
+ return (mod && mod.__esModule) ? mod : { default: mod };
397
+ }
398
+ function __classPrivateFieldGet(receiver, state, kind, f) {
399
+ if (kind === "a" && !f)
400
+ throw new TypeError("Private accessor was defined without a getter");
401
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
402
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
403
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
404
+ }
405
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
406
+ if (kind === "m")
407
+ throw new TypeError("Private method is not writable");
408
+ if (kind === "a" && !f)
409
+ throw new TypeError("Private accessor was defined without a setter");
410
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
411
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
412
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
413
+ }
414
+ function __classPrivateFieldIn(state, receiver) {
415
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
416
+ throw new TypeError("Cannot use 'in' operator on non-object");
417
+ return typeof state === "function" ? receiver === state : state.has(receiver);
418
+ }
419
+ function __addDisposableResource(env, value, async) {
420
+ if (value !== null && value !== void 0) {
421
+ if (typeof value !== "object" && typeof value !== "function")
422
+ throw new TypeError("Object expected.");
423
+ var dispose;
424
+ if (async) {
425
+ if (!Symbol.asyncDispose)
426
+ throw new TypeError("Symbol.asyncDispose is not defined.");
427
+ dispose = value[Symbol.asyncDispose];
428
+ }
429
+ if (dispose === void 0) {
430
+ if (!Symbol.dispose)
431
+ throw new TypeError("Symbol.dispose is not defined.");
432
+ dispose = value[Symbol.dispose];
433
+ }
434
+ if (typeof dispose !== "function")
435
+ throw new TypeError("Object not disposable.");
436
+ env.stack.push({ value: value, dispose: dispose, async: async });
437
+ }
438
+ else if (async) {
439
+ env.stack.push({ async: true });
440
+ }
441
+ return value;
442
+ }
443
+ var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
444
+ var e = new Error(message);
445
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
446
+ };
447
+ function __disposeResources(env) {
448
+ function fail(e) {
449
+ env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
450
+ env.hasError = true;
451
+ }
452
+ function next() {
453
+ while (env.stack.length) {
454
+ var rec = env.stack.pop();
455
+ try {
456
+ var result = rec.dispose && rec.dispose.call(rec.value);
457
+ if (rec.async)
458
+ return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
459
+ }
460
+ catch (e) {
461
+ fail(e);
462
+ }
463
+ }
464
+ if (env.hasError)
465
+ throw env.error;
466
+ }
467
+ return next();
468
+ }
469
+ var tslib_es6 = {
470
+ __extends: __extends,
471
+ __assign: __assign,
472
+ __rest: __rest,
473
+ __decorate: __decorate,
474
+ __param: __param,
475
+ __metadata: __metadata,
476
+ __awaiter: __awaiter,
477
+ __generator: __generator,
478
+ __createBinding: __createBinding,
479
+ __exportStar: __exportStar,
480
+ __values: __values,
481
+ __read: __read,
482
+ __spread: __spread,
483
+ __spreadArrays: __spreadArrays,
484
+ __spreadArray: __spreadArray,
485
+ __await: __await,
486
+ __asyncGenerator: __asyncGenerator,
487
+ __asyncDelegator: __asyncDelegator,
488
+ __asyncValues: __asyncValues,
489
+ __makeTemplateObject: __makeTemplateObject,
490
+ __importStar: __importStar,
491
+ __importDefault: __importDefault,
492
+ __classPrivateFieldGet: __classPrivateFieldGet,
493
+ __classPrivateFieldSet: __classPrivateFieldSet,
494
+ __classPrivateFieldIn: __classPrivateFieldIn,
495
+ __addDisposableResource: __addDisposableResource,
496
+ __disposeResources: __disposeResources,
497
+ };
352
498
 
353
- var TUI_MULTI_SELECT_DEFAULT_OPTIONS = {
354
- expandable: true,
355
- valueContent: '',
356
- };
357
- /**
358
- * Default parameters for MultiSelect component
359
- */
360
- var TUI_MULTI_SELECT_OPTIONS = i3.tuiCreateToken(TUI_MULTI_SELECT_DEFAULT_OPTIONS);
361
- function tuiMultiSelectOptionsProvider(options) {
362
- return i3.tuiProvideOptions(TUI_MULTI_SELECT_OPTIONS, options, TUI_MULTI_SELECT_DEFAULT_OPTIONS);
363
- }
499
+ var TUI_MULTI_SELECT_DEFAULT_OPTIONS = {
500
+ expandable: true,
501
+ valueContent: '',
502
+ };
503
+ /**
504
+ * Default parameters for MultiSelect component
505
+ */
506
+ var TUI_MULTI_SELECT_OPTIONS = i3.tuiCreateToken(TUI_MULTI_SELECT_DEFAULT_OPTIONS);
507
+ function tuiMultiSelectOptionsProvider(options) {
508
+ return i3.tuiProvideOptions(TUI_MULTI_SELECT_OPTIONS, options, TUI_MULTI_SELECT_DEFAULT_OPTIONS);
509
+ }
364
510
 
365
- var AbstractTuiNativeMultiSelect = /** @class */ (function (_super) {
366
- __extends(AbstractTuiNativeMultiSelect, _super);
367
- function AbstractTuiNativeMultiSelect() {
368
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
369
- _this.selectedMapper = function (option, value) { return value.includes(option); };
370
- return _this;
371
- }
372
- Object.defineProperty(AbstractTuiNativeMultiSelect.prototype, "stringify", {
373
- get: function () {
374
- return this.host.stringify;
375
- },
376
- enumerable: false,
377
- configurable: true
378
- });
379
- return AbstractTuiNativeMultiSelect;
380
- }(abstract.AbstractTuiNativeSelect));
381
- AbstractTuiNativeMultiSelect.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiNativeMultiSelect, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
382
- AbstractTuiNativeMultiSelect.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: AbstractTuiNativeMultiSelect, usesInheritance: true, ngImport: i0__namespace });
383
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiNativeMultiSelect, decorators: [{
384
- type: i0.Directive
385
- }] });
511
+ var AbstractTuiNativeMultiSelect = /** @class */ (function (_super) {
512
+ __extends(AbstractTuiNativeMultiSelect, _super);
513
+ function AbstractTuiNativeMultiSelect() {
514
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
515
+ _this.selectedMapper = function (option, value) { return value.includes(option); };
516
+ return _this;
517
+ }
518
+ Object.defineProperty(AbstractTuiNativeMultiSelect.prototype, "stringify", {
519
+ get: function () {
520
+ return this.host.stringify;
521
+ },
522
+ enumerable: false,
523
+ configurable: true
524
+ });
525
+ return AbstractTuiNativeMultiSelect;
526
+ }(abstract.AbstractTuiNativeSelect));
527
+ AbstractTuiNativeMultiSelect.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiNativeMultiSelect, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
528
+ AbstractTuiNativeMultiSelect.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: AbstractTuiNativeMultiSelect, usesInheritance: true, ngImport: i0__namespace });
529
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiNativeMultiSelect, decorators: [{
530
+ type: i0.Directive
531
+ }] });
386
532
 
387
- var TuiMultiSelectComponent = /** @class */ (function (_super) {
388
- __extends(TuiMultiSelectComponent, _super);
389
- function TuiMultiSelectComponent(control, cdr, arrowMode, itemsHandlers, options, controller, isMobile) {
390
- var _this = _super.call(this, control, cdr) || this;
391
- _this.arrowMode = arrowMode;
392
- _this.itemsHandlers = itemsHandlers;
393
- _this.options = options;
394
- _this.controller = controller;
395
- _this.isMobile = isMobile;
396
- _this.stringify = _this.itemsHandlers.stringify;
397
- _this.identityMatcher = _this.itemsHandlers.identityMatcher;
398
- _this.expandable = _this.options.expandable;
399
- _this.search = '';
400
- _this.placeholder = '';
401
- _this.editable = true;
402
- _this.disabledItemHandler = _this.itemsHandlers.disabledItemHandler;
403
- _this.valueContent = _this.options.valueContent;
404
- _this.tagValidator = i3.ALWAYS_TRUE_HANDLER;
405
- _this.rows = Infinity;
406
- _this.autoColor = false;
407
- _this.searchChange = new i0.EventEmitter();
408
- _this.open = false;
409
- _this.valueMapper = function (value, stringify, group) { return group
410
- ? i3.EMPTY_ARRAY
411
- : value.map(function (item) { return new classes.TuiStringifiableItem(item, stringify); }); };
412
- _this.disabledItemHandlerWrapper = function (handler) { return function (stringifiable) { return i3.tuiIsString(stringifiable) || handler(stringifiable.item); }; };
413
- return _this;
414
- }
415
- Object.defineProperty(TuiMultiSelectComponent.prototype, "size", {
416
- get: function () {
417
- return this.controller.size;
418
- },
419
- enumerable: false,
420
- configurable: true
421
- });
422
- Object.defineProperty(TuiMultiSelectComponent.prototype, "arrow", {
423
- get: function () {
424
- return this.interactive ? this.arrowMode.interactive : this.arrowMode.disabled;
425
- },
426
- enumerable: false,
427
- configurable: true
428
- });
429
- Object.defineProperty(TuiMultiSelectComponent.prototype, "nativeFocusableElement", {
430
- get: function () {
431
- var _a, _b;
432
- return (_b = (_a = this.input) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) !== null && _b !== void 0 ? _b : null;
433
- },
434
- enumerable: false,
435
- configurable: true
436
- });
437
- Object.defineProperty(TuiMultiSelectComponent.prototype, "focused", {
438
- get: function () {
439
- var _a, _b;
440
- return !!((_a = this.input) === null || _a === void 0 ? void 0 : _a.focused) || !!((_b = this.hostedDropdown) === null || _b === void 0 ? void 0 : _b.focused);
441
- },
442
- enumerable: false,
443
- configurable: true
444
- });
445
- Object.defineProperty(TuiMultiSelectComponent.prototype, "nativeDropdownMode", {
446
- get: function () {
447
- return !!this.nativeSelect && this.isMobile && !this.editable;
448
- },
449
- enumerable: false,
450
- configurable: true
451
- });
452
- Object.defineProperty(TuiMultiSelectComponent.prototype, "computedValue", {
453
- get: function () {
454
- return this.computedGroup ? i3.EMPTY_ARRAY : this.value;
455
- },
456
- enumerable: false,
457
- configurable: true
458
- });
459
- Object.defineProperty(TuiMultiSelectComponent.prototype, "searchOrSpace", {
460
- // @bad TODO: think of a better way
461
- get: function () {
462
- return this.computedGroup ? ' ' : this.searchString;
463
- },
464
- enumerable: false,
465
- configurable: true
466
- });
467
- Object.defineProperty(TuiMultiSelectComponent.prototype, "searchString", {
468
- get: function () {
469
- return this.search === null ? '' : this.search;
470
- },
471
- enumerable: false,
472
- configurable: true
473
- });
474
- Object.defineProperty(TuiMultiSelectComponent.prototype, "computedGroup", {
475
- get: function () {
476
- return (!!this.valueContent &&
477
- this.value.length > 0 &&
478
- (!this.focused || !this.editable));
479
- },
480
- enumerable: false,
481
- configurable: true
482
- });
483
- TuiMultiSelectComponent.prototype.getStringifier = function (stringify) {
484
- return function (_c) {
485
- var $implicit = _c.$implicit;
486
- return stringify($implicit);
487
- };
488
- };
489
- TuiMultiSelectComponent.prototype.onSpace = function (event) {
490
- var _a;
491
- if (!this.editable) {
492
- event.preventDefault();
493
- }
494
- if (!this.readOnly) {
495
- (_a = this.hostedDropdown) === null || _a === void 0 ? void 0 : _a.updateOpen(true);
496
- }
497
- };
498
- TuiMultiSelectComponent.prototype.handleOption = function (option) {
499
- var _c = this, value = _c.value, identityMatcher = _c.identityMatcher;
500
- var index = value.findIndex(function (item) { return identityMatcher(item, option); });
501
- this.value =
502
- index === -1 ? __spreadArray(__spreadArray([], __read(value)), [option]) : value.filter(function (_, i) { return i !== index; });
503
- this.updateSearch(null);
504
- };
505
- TuiMultiSelectComponent.prototype.onEnter = function (event) {
506
- var value = this.value;
507
- var options = this.accessor ? this.accessor.getOptions() : [];
508
- if (options.length !== 1) {
509
- return;
510
- }
511
- event.preventDefault();
512
- this.value = i3.tuiArrayToggle(value, options[0]);
513
- this.updateSearch(null);
514
- };
515
- TuiMultiSelectComponent.prototype.onClick = function (_c) {
516
- var nativeFocusableElement = _c.nativeFocusableElement;
517
- var _a;
518
- if (this.interactive &&
519
- nativeFocusableElement &&
520
- i3.tuiIsNativeFocused(nativeFocusableElement)) {
521
- (_a = this.hostedDropdown) === null || _a === void 0 ? void 0 : _a.updateOpen(!this.open);
522
- }
523
- };
524
- TuiMultiSelectComponent.prototype.onInput = function (value) {
525
- this.value = value.map(function (_c) {
526
- var item = _c.item;
527
- return item;
528
- });
529
- };
530
- TuiMultiSelectComponent.prototype.onValueChange = function (value) {
531
- this.value = value;
532
- };
533
- TuiMultiSelectComponent.prototype.onSearch = function (search) {
534
- var _a;
535
- // Clearing sets the empty value, the dropdown should not be opened on clear.
536
- if (search !== '') {
537
- (_a = this.hostedDropdown) === null || _a === void 0 ? void 0 : _a.updateOpen(true);
538
- }
539
- this.updateSearch(search);
540
- };
541
- TuiMultiSelectComponent.prototype.onActiveZone = function (active) {
542
- this.updateFocused(active);
543
- };
544
- TuiMultiSelectComponent.prototype.setDisabledState = function () {
545
- var _a;
546
- _super.prototype.setDisabledState.call(this);
547
- (_a = this.hostedDropdown) === null || _a === void 0 ? void 0 : _a.updateOpen(false);
548
- };
549
- TuiMultiSelectComponent.prototype.updateSearch = function (search) {
550
- if (this.search === search) {
551
- return;
552
- }
553
- this.search = search;
554
- this.searchChange.emit(search);
555
- };
556
- return TuiMultiSelectComponent;
557
- }(i3.AbstractTuiMultipleControl));
558
- TuiMultiSelectComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectComponent, deps: [{ token: i4.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: arrow.TUI_ARROW_MODE }, { token: tokens.TUI_ITEMS_HANDLERS }, { token: TUI_MULTI_SELECT_OPTIONS }, { token: i1.TUI_TEXTFIELD_WATCHED_CONTROLLER }, { token: i3.TUI_IS_MOBILE }], target: i0__namespace.ɵɵFactoryTarget.Component });
559
- TuiMultiSelectComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiMultiSelectComponent, selector: "tui-multi-select", inputs: { stringify: "stringify", identityMatcher: "identityMatcher", expandable: "expandable", search: "search", placeholder: "placeholder", editable: "editable", disabledItemHandler: "disabledItemHandler", valueContent: "valueContent", tagValidator: "tagValidator", rows: "rows", autoColor: "autoColor" }, outputs: { searchChange: "searchChange" }, host: { properties: { "class._editable": "this.editable", "attr.data-size": "this.size" } }, providers: [
560
- i3.tuiAsFocusableItemAccessor(TuiMultiSelectComponent),
561
- i3.tuiAsControl(TuiMultiSelectComponent),
562
- i1.tuiAsDataListHost(TuiMultiSelectComponent),
563
- i1.TEXTFIELD_CONTROLLER_PROVIDER,
564
- ], queries: [{ propertyName: "accessor", first: true, predicate: i1.TUI_DATA_LIST_ACCESSOR, descendants: true }, { propertyName: "nativeSelect", first: true, predicate: AbstractTuiNativeMultiSelect, descendants: true, static: true }, { propertyName: "datalist", first: true, predicate: i1.TuiDataListDirective, descendants: true, read: i0.TemplateRef }], viewQueries: [{ propertyName: "hostedDropdown", first: true, predicate: i1.TuiHostedDropdownComponent, descendants: true }, { propertyName: "input", first: true, predicate: i2.TuiInputTagComponent, descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"interactive && !nativeDropdownMode\"\n [content]=\"datalist || ''\"\n [(open)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-input-tag\n #inputTag\n automation-id=\"tui-multi-select__input\"\n class=\"t-input\"\n [autoColor]=\"autoColor\"\n [disabled]=\"disabled\"\n [disabledItemHandler]=\"disabledItemHandler | tuiMapper: disabledItemHandlerWrapper\"\n [editable]=\"false\"\n [expandable]=\"expandable\"\n [inputHidden]=\"!editable\"\n [nativeId]=\"nativeId\"\n [ngModel]=\"computedValue | tuiMapper: valueMapper : stringify\"\n [placeholder]=\"placeholder\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoInvalid]=\"computedInvalid\"\n [readOnly]=\"readOnly\"\n [removable]=\"!nativeDropdownMode\"\n [rows]=\"rows\"\n [search]=\"searchOrSpace\"\n [tagValidator]=\"tagValidator | tuiMapper: disabledItemHandlerWrapper\"\n [tuiTextfieldIcon]=\"arrow ? icon : ''\"\n (click.prevent)=\"onClick(inputTag)\"\n (keydown.enter)=\"onEnter($event)\"\n (keydown.space)=\"onSpace($event)\"\n (ngModelChange)=\"onInput($event)\"\n (searchChange)=\"onSearch($event)\"\n >\n <ng-content></ng-content>\n <ng-template #select>\n <ng-content\n *ngIf=\"isMobile\"\n select=\"select\"\n ></ng-content>\n </ng-template>\n\n <ng-container\n *ngTemplateOutlet=\"select\"\n ngProjectAs=\"select\"\n ></ng-container>\n\n <div\n *ngIf=\"computedGroup\"\n ngProjectAs=\"tuiContent\"\n class=\"t-content\"\n [class.t-content_fullsize]=\"inputTag.labelOutside\"\n >\n <span\n *polymorpheusOutlet=\"valueContent as text; context: {$implicit: value}\"\n class=\"t-primitive\"\n >\n {{ text }}\n </span>\n </div>\n </tui-input-tag>\n\n <ng-template #icon>\n <div\n appearance=\"icon\"\n automation-id=\"tui-multi-select__arrow\"\n tuiPreventDefault=\"mousedown\"\n tuiWrapper\n class=\"t-arrow\"\n [class.t-arrow_native-dropdown]=\"nativeDropdownMode\"\n >\n <ng-container *polymorpheusOutlet=\"arrow as text\">\n {{ text }}\n </ng-container>\n </div>\n </ng-template>\n</tui-hosted-dropdown>\n", styles: [":host{position:relative;display:block;border-radius:var(--tui-radius-m)}:host._disabled{pointer-events:none}.t-hosted{display:block;border-radius:inherit}.t-input{border-radius:inherit}:host:not(._editable):not(._readonly) .t-input{cursor:pointer}.t-content{display:flex;align-items:center;pointer-events:none;box-sizing:border-box}.t-primitive{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-arrow{pointer-events:auto;cursor:pointer}.t-arrow_native-dropdown{pointer-events:none}\n"], components: [{ type: i1__namespace.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i2__namespace.TuiInputTagComponent, selector: "tui-input-tag", inputs: ["separator", "search", "editable", "tagValidator", "expandable", "rows", "inputHidden", "uniqueTags", "autoColor", "maxLength", "placeholder", "removable", "disabledItemHandler", "pseudoFocused"], outputs: ["searchChange"] }], directives: [{ type: i3__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i4__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1__namespace.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { type: i2__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i6__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i3__namespace.TuiPreventDefaultDirective, selector: "[tuiPreventDefault]", inputs: ["tuiPreventDefault"] }, { type: i1__namespace.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }], pipes: { "tuiMapper": i3__namespace.TuiMapperPipe }, viewProviders: [providers.FIXED_DROPDOWN_CONTROLLER_PROVIDER], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
565
- __decorate([
566
- i3.tuiPure
567
- ], TuiMultiSelectComponent.prototype, "getStringifier", null);
568
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectComponent, decorators: [{
569
- type: i0.Component,
570
- args: [{
571
- selector: 'tui-multi-select',
572
- templateUrl: './multi-select.template.html',
573
- styleUrls: ['./multi-select.style.less'],
574
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
575
- providers: [
576
- i3.tuiAsFocusableItemAccessor(TuiMultiSelectComponent),
577
- i3.tuiAsControl(TuiMultiSelectComponent),
578
- i1.tuiAsDataListHost(TuiMultiSelectComponent),
579
- i1.TEXTFIELD_CONTROLLER_PROVIDER,
580
- ],
581
- viewProviders: [providers.FIXED_DROPDOWN_CONTROLLER_PROVIDER],
582
- }]
583
- }], ctorParameters: function () {
584
- return [{ type: i4__namespace.NgControl, decorators: [{
585
- type: i0.Optional
586
- }, {
587
- type: i0.Self
588
- }, {
589
- type: i0.Inject,
590
- args: [i4.NgControl]
591
- }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
592
- type: i0.Inject,
593
- args: [i0.ChangeDetectorRef]
594
- }] }, { type: undefined, decorators: [{
595
- type: i0.Inject,
596
- args: [arrow.TUI_ARROW_MODE]
597
- }] }, { type: undefined, decorators: [{
598
- type: i0.Inject,
599
- args: [tokens.TUI_ITEMS_HANDLERS]
600
- }] }, { type: undefined, decorators: [{
601
- type: i0.Inject,
602
- args: [TUI_MULTI_SELECT_OPTIONS]
603
- }] }, { type: i1__namespace.TuiTextfieldController, decorators: [{
604
- type: i0.Inject,
605
- args: [i1.TUI_TEXTFIELD_WATCHED_CONTROLLER]
606
- }] }, { type: undefined, decorators: [{
607
- type: i0.Inject,
608
- args: [i3.TUI_IS_MOBILE]
609
- }] }];
610
- }, propDecorators: { accessor: [{
611
- type: i0.ContentChild,
612
- args: [i1.TUI_DATA_LIST_ACCESSOR]
613
- }], nativeSelect: [{
614
- type: i0.ContentChild,
615
- args: [AbstractTuiNativeMultiSelect, { static: true }]
616
- }], hostedDropdown: [{
617
- type: i0.ViewChild,
618
- args: [i1.TuiHostedDropdownComponent]
619
- }], input: [{
620
- type: i0.ViewChild,
621
- args: [i2.TuiInputTagComponent]
622
- }], stringify: [{
623
- type: i0.Input
624
- }], identityMatcher: [{
625
- type: i0.Input
626
- }], expandable: [{
627
- type: i0.Input
628
- }], search: [{
629
- type: i0.Input
630
- }], placeholder: [{
631
- type: i0.Input
632
- }], editable: [{
633
- type: i0.Input
634
- }, {
635
- type: i0.HostBinding,
636
- args: ['class._editable']
637
- }], disabledItemHandler: [{
638
- type: i0.Input
639
- }], valueContent: [{
640
- type: i0.Input
641
- }], tagValidator: [{
642
- type: i0.Input
643
- }], rows: [{
644
- type: i0.Input
645
- }], autoColor: [{
646
- type: i0.Input
647
- }], searchChange: [{
648
- type: i0.Output
649
- }], datalist: [{
650
- type: i0.ContentChild,
651
- args: [i1.TuiDataListDirective, { read: i0.TemplateRef }]
652
- }], size: [{
653
- type: i0.HostBinding,
654
- args: ['attr.data-size']
655
- }], getStringifier: [] } });
533
+ var TuiMultiSelectComponent = /** @class */ (function (_super) {
534
+ __extends(TuiMultiSelectComponent, _super);
535
+ function TuiMultiSelectComponent(control, cdr, arrowMode, itemsHandlers, options, controller, isMobile) {
536
+ var _this = _super.call(this, control, cdr) || this;
537
+ _this.arrowMode = arrowMode;
538
+ _this.itemsHandlers = itemsHandlers;
539
+ _this.options = options;
540
+ _this.controller = controller;
541
+ _this.isMobile = isMobile;
542
+ _this.stringify = _this.itemsHandlers.stringify;
543
+ _this.identityMatcher = _this.itemsHandlers.identityMatcher;
544
+ _this.expandable = _this.options.expandable;
545
+ _this.search = '';
546
+ _this.placeholder = '';
547
+ _this.editable = true;
548
+ _this.disabledItemHandler = _this.itemsHandlers.disabledItemHandler;
549
+ _this.valueContent = _this.options.valueContent;
550
+ _this.tagValidator = i3.ALWAYS_TRUE_HANDLER;
551
+ _this.rows = Infinity;
552
+ _this.autoColor = false;
553
+ _this.searchChange = new i0.EventEmitter();
554
+ _this.open = false;
555
+ _this.valueMapper = function (value, stringify, group) { return group
556
+ ? i3.EMPTY_ARRAY
557
+ : value.map(function (item) { return new classes.TuiStringifiableItem(item, stringify); }); };
558
+ _this.disabledItemHandlerWrapper = function (handler) { return function (stringifiable) { return i3.tuiIsString(stringifiable) || handler(stringifiable.item); }; };
559
+ return _this;
560
+ }
561
+ Object.defineProperty(TuiMultiSelectComponent.prototype, "size", {
562
+ get: function () {
563
+ return this.controller.size;
564
+ },
565
+ enumerable: false,
566
+ configurable: true
567
+ });
568
+ Object.defineProperty(TuiMultiSelectComponent.prototype, "arrow", {
569
+ get: function () {
570
+ return this.interactive ? this.arrowMode.interactive : this.arrowMode.disabled;
571
+ },
572
+ enumerable: false,
573
+ configurable: true
574
+ });
575
+ Object.defineProperty(TuiMultiSelectComponent.prototype, "nativeFocusableElement", {
576
+ get: function () {
577
+ var _a, _b;
578
+ return (_b = (_a = this.input) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) !== null && _b !== void 0 ? _b : null;
579
+ },
580
+ enumerable: false,
581
+ configurable: true
582
+ });
583
+ Object.defineProperty(TuiMultiSelectComponent.prototype, "focused", {
584
+ get: function () {
585
+ var _a, _b;
586
+ return !!((_a = this.input) === null || _a === void 0 ? void 0 : _a.focused) || !!((_b = this.hostedDropdown) === null || _b === void 0 ? void 0 : _b.focused);
587
+ },
588
+ enumerable: false,
589
+ configurable: true
590
+ });
591
+ Object.defineProperty(TuiMultiSelectComponent.prototype, "nativeDropdownMode", {
592
+ get: function () {
593
+ return !!this.nativeSelect && this.isMobile && !this.editable;
594
+ },
595
+ enumerable: false,
596
+ configurable: true
597
+ });
598
+ Object.defineProperty(TuiMultiSelectComponent.prototype, "computedValue", {
599
+ get: function () {
600
+ return this.computedGroup ? i3.EMPTY_ARRAY : this.value;
601
+ },
602
+ enumerable: false,
603
+ configurable: true
604
+ });
605
+ Object.defineProperty(TuiMultiSelectComponent.prototype, "searchOrSpace", {
606
+ // @bad TODO: think of a better way
607
+ get: function () {
608
+ return this.computedGroup ? ' ' : this.searchString;
609
+ },
610
+ enumerable: false,
611
+ configurable: true
612
+ });
613
+ Object.defineProperty(TuiMultiSelectComponent.prototype, "searchString", {
614
+ get: function () {
615
+ return this.search === null ? '' : this.search;
616
+ },
617
+ enumerable: false,
618
+ configurable: true
619
+ });
620
+ Object.defineProperty(TuiMultiSelectComponent.prototype, "computedGroup", {
621
+ get: function () {
622
+ return (!!this.valueContent &&
623
+ this.value.length > 0 &&
624
+ (!this.focused || !this.editable));
625
+ },
626
+ enumerable: false,
627
+ configurable: true
628
+ });
629
+ TuiMultiSelectComponent.prototype.getStringifier = function (stringify) {
630
+ return function (_c) {
631
+ var $implicit = _c.$implicit;
632
+ return stringify($implicit);
633
+ };
634
+ };
635
+ TuiMultiSelectComponent.prototype.onSpace = function (event) {
636
+ var _a;
637
+ if (!this.editable) {
638
+ event.preventDefault();
639
+ }
640
+ if (!this.readOnly) {
641
+ (_a = this.hostedDropdown) === null || _a === void 0 ? void 0 : _a.updateOpen(true);
642
+ }
643
+ };
644
+ TuiMultiSelectComponent.prototype.handleOption = function (option) {
645
+ var _c = this, value = _c.value, identityMatcher = _c.identityMatcher;
646
+ var index = value.findIndex(function (item) { return identityMatcher(item, option); });
647
+ this.value =
648
+ index === -1 ? __spreadArray(__spreadArray([], __read(value)), [option]) : value.filter(function (_, i) { return i !== index; });
649
+ this.updateSearch(null);
650
+ };
651
+ TuiMultiSelectComponent.prototype.onEnter = function (event) {
652
+ var value = this.value;
653
+ var options = this.accessor ? this.accessor.getOptions() : [];
654
+ if (options.length !== 1) {
655
+ return;
656
+ }
657
+ event.preventDefault();
658
+ this.value = i3.tuiArrayToggle(value, options[0]);
659
+ this.updateSearch(null);
660
+ };
661
+ TuiMultiSelectComponent.prototype.onClick = function (_c) {
662
+ var nativeFocusableElement = _c.nativeFocusableElement;
663
+ var _a;
664
+ if (this.interactive &&
665
+ nativeFocusableElement &&
666
+ i3.tuiIsNativeFocused(nativeFocusableElement)) {
667
+ (_a = this.hostedDropdown) === null || _a === void 0 ? void 0 : _a.updateOpen(!this.open);
668
+ }
669
+ };
670
+ TuiMultiSelectComponent.prototype.onInput = function (value) {
671
+ this.value = value.map(function (_c) {
672
+ var item = _c.item;
673
+ return item;
674
+ });
675
+ };
676
+ TuiMultiSelectComponent.prototype.onValueChange = function (value) {
677
+ this.value = value;
678
+ };
679
+ TuiMultiSelectComponent.prototype.onSearch = function (search) {
680
+ var _a;
681
+ // Clearing sets the empty value, the dropdown should not be opened on clear.
682
+ if (search !== '') {
683
+ (_a = this.hostedDropdown) === null || _a === void 0 ? void 0 : _a.updateOpen(true);
684
+ }
685
+ this.updateSearch(search);
686
+ };
687
+ TuiMultiSelectComponent.prototype.onActiveZone = function (active) {
688
+ this.updateFocused(active);
689
+ };
690
+ TuiMultiSelectComponent.prototype.setDisabledState = function () {
691
+ var _a;
692
+ _super.prototype.setDisabledState.call(this);
693
+ (_a = this.hostedDropdown) === null || _a === void 0 ? void 0 : _a.updateOpen(false);
694
+ };
695
+ TuiMultiSelectComponent.prototype.updateSearch = function (search) {
696
+ if (this.search === search) {
697
+ return;
698
+ }
699
+ this.search = search;
700
+ this.searchChange.emit(search);
701
+ };
702
+ return TuiMultiSelectComponent;
703
+ }(i3.AbstractTuiMultipleControl));
704
+ TuiMultiSelectComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectComponent, deps: [{ token: i4.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: arrow.TUI_ARROW_MODE }, { token: tokens.TUI_ITEMS_HANDLERS }, { token: TUI_MULTI_SELECT_OPTIONS }, { token: i1.TUI_TEXTFIELD_WATCHED_CONTROLLER }, { token: i3.TUI_IS_MOBILE }], target: i0__namespace.ɵɵFactoryTarget.Component });
705
+ TuiMultiSelectComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiMultiSelectComponent, selector: "tui-multi-select", inputs: { stringify: "stringify", identityMatcher: "identityMatcher", expandable: "expandable", search: "search", placeholder: "placeholder", editable: "editable", disabledItemHandler: "disabledItemHandler", valueContent: "valueContent", tagValidator: "tagValidator", rows: "rows", autoColor: "autoColor" }, outputs: { searchChange: "searchChange" }, host: { properties: { "class._editable": "this.editable", "attr.data-size": "this.size" } }, providers: [
706
+ i3.tuiAsFocusableItemAccessor(TuiMultiSelectComponent),
707
+ i3.tuiAsControl(TuiMultiSelectComponent),
708
+ i1.tuiAsDataListHost(TuiMultiSelectComponent),
709
+ i1.TEXTFIELD_CONTROLLER_PROVIDER,
710
+ ], queries: [{ propertyName: "accessor", first: true, predicate: i1.TUI_DATA_LIST_ACCESSOR, descendants: true }, { propertyName: "nativeSelect", first: true, predicate: AbstractTuiNativeMultiSelect, descendants: true, static: true }, { propertyName: "datalist", first: true, predicate: i1.TuiDataListDirective, descendants: true, read: i0.TemplateRef }], viewQueries: [{ propertyName: "hostedDropdown", first: true, predicate: i1.TuiHostedDropdownComponent, descendants: true }, { propertyName: "input", first: true, predicate: i2.TuiInputTagComponent, descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"interactive && !nativeDropdownMode\"\n [content]=\"datalist || ''\"\n [(open)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-input-tag\n #inputTag\n automation-id=\"tui-multi-select__input\"\n class=\"t-input\"\n [autoColor]=\"autoColor\"\n [disabled]=\"disabled\"\n [disabledItemHandler]=\"disabledItemHandler | tuiMapper: disabledItemHandlerWrapper\"\n [editable]=\"false\"\n [expandable]=\"expandable\"\n [inputHidden]=\"!editable\"\n [nativeId]=\"nativeId\"\n [ngModel]=\"computedValue | tuiMapper: valueMapper : stringify\"\n [placeholder]=\"placeholder\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoInvalid]=\"computedInvalid\"\n [readOnly]=\"readOnly\"\n [removable]=\"!nativeDropdownMode\"\n [rows]=\"rows\"\n [search]=\"searchOrSpace\"\n [tagValidator]=\"tagValidator | tuiMapper: disabledItemHandlerWrapper\"\n [tuiTextfieldIcon]=\"arrow ? icon : ''\"\n (click.prevent)=\"onClick(inputTag)\"\n (keydown.enter)=\"onEnter($event)\"\n (keydown.space)=\"onSpace($event)\"\n (ngModelChange)=\"onInput($event)\"\n (searchChange)=\"onSearch($event)\"\n >\n <ng-content></ng-content>\n <ng-template #select>\n <ng-content\n *ngIf=\"isMobile\"\n select=\"select\"\n ></ng-content>\n </ng-template>\n\n <ng-container\n *ngTemplateOutlet=\"select\"\n ngProjectAs=\"select\"\n ></ng-container>\n\n <div\n *ngIf=\"computedGroup\"\n ngProjectAs=\"tuiContent\"\n class=\"t-content\"\n [class.t-content_fullsize]=\"inputTag.labelOutside\"\n >\n <span\n *polymorpheusOutlet=\"valueContent as text; context: {$implicit: value}\"\n class=\"t-primitive\"\n >\n {{ text }}\n </span>\n </div>\n </tui-input-tag>\n\n <ng-template #icon>\n <div\n appearance=\"icon\"\n automation-id=\"tui-multi-select__arrow\"\n tuiPreventDefault=\"mousedown\"\n tuiWrapper\n class=\"t-arrow\"\n [class.t-arrow_native-dropdown]=\"nativeDropdownMode\"\n >\n <ng-container *polymorpheusOutlet=\"arrow as text\">\n {{ text }}\n </ng-container>\n </div>\n </ng-template>\n</tui-hosted-dropdown>\n", styles: [":host{position:relative;display:block;border-radius:var(--tui-radius-m)}:host._disabled{pointer-events:none}.t-hosted{display:block;border-radius:inherit}.t-input{border-radius:inherit}:host:not(._editable):not(._readonly) .t-input{cursor:pointer}.t-content{display:flex;align-items:center;pointer-events:none;box-sizing:border-box}.t-primitive{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-arrow{pointer-events:auto;cursor:pointer}.t-arrow_native-dropdown{pointer-events:none}\n"], components: [{ type: i1__namespace.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i2__namespace.TuiInputTagComponent, selector: "tui-input-tag", inputs: ["separator", "search", "editable", "tagValidator", "expandable", "rows", "inputHidden", "uniqueTags", "autoColor", "maxLength", "placeholder", "removable", "disabledItemHandler", "pseudoFocused"], outputs: ["searchChange"] }], directives: [{ type: i3__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i4__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1__namespace.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { type: i2__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i6__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i3__namespace.TuiPreventDefaultDirective, selector: "[tuiPreventDefault]", inputs: ["tuiPreventDefault"] }, { type: i1__namespace.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }], pipes: { "tuiMapper": i3__namespace.TuiMapperPipe }, viewProviders: [providers.FIXED_DROPDOWN_CONTROLLER_PROVIDER], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
711
+ __decorate([
712
+ i3.tuiPure
713
+ ], TuiMultiSelectComponent.prototype, "getStringifier", null);
714
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectComponent, decorators: [{
715
+ type: i0.Component,
716
+ args: [{
717
+ selector: 'tui-multi-select',
718
+ templateUrl: './multi-select.template.html',
719
+ styleUrls: ['./multi-select.style.less'],
720
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
721
+ providers: [
722
+ i3.tuiAsFocusableItemAccessor(TuiMultiSelectComponent),
723
+ i3.tuiAsControl(TuiMultiSelectComponent),
724
+ i1.tuiAsDataListHost(TuiMultiSelectComponent),
725
+ i1.TEXTFIELD_CONTROLLER_PROVIDER,
726
+ ],
727
+ viewProviders: [providers.FIXED_DROPDOWN_CONTROLLER_PROVIDER],
728
+ }]
729
+ }], ctorParameters: function () {
730
+ return [{ type: i4__namespace.NgControl, decorators: [{
731
+ type: i0.Optional
732
+ }, {
733
+ type: i0.Self
734
+ }, {
735
+ type: i0.Inject,
736
+ args: [i4.NgControl]
737
+ }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
738
+ type: i0.Inject,
739
+ args: [i0.ChangeDetectorRef]
740
+ }] }, { type: undefined, decorators: [{
741
+ type: i0.Inject,
742
+ args: [arrow.TUI_ARROW_MODE]
743
+ }] }, { type: undefined, decorators: [{
744
+ type: i0.Inject,
745
+ args: [tokens.TUI_ITEMS_HANDLERS]
746
+ }] }, { type: undefined, decorators: [{
747
+ type: i0.Inject,
748
+ args: [TUI_MULTI_SELECT_OPTIONS]
749
+ }] }, { type: i1__namespace.TuiTextfieldController, decorators: [{
750
+ type: i0.Inject,
751
+ args: [i1.TUI_TEXTFIELD_WATCHED_CONTROLLER]
752
+ }] }, { type: undefined, decorators: [{
753
+ type: i0.Inject,
754
+ args: [i3.TUI_IS_MOBILE]
755
+ }] }];
756
+ }, propDecorators: { accessor: [{
757
+ type: i0.ContentChild,
758
+ args: [i1.TUI_DATA_LIST_ACCESSOR]
759
+ }], nativeSelect: [{
760
+ type: i0.ContentChild,
761
+ args: [AbstractTuiNativeMultiSelect, { static: true }]
762
+ }], hostedDropdown: [{
763
+ type: i0.ViewChild,
764
+ args: [i1.TuiHostedDropdownComponent]
765
+ }], input: [{
766
+ type: i0.ViewChild,
767
+ args: [i2.TuiInputTagComponent]
768
+ }], stringify: [{
769
+ type: i0.Input
770
+ }], identityMatcher: [{
771
+ type: i0.Input
772
+ }], expandable: [{
773
+ type: i0.Input
774
+ }], search: [{
775
+ type: i0.Input
776
+ }], placeholder: [{
777
+ type: i0.Input
778
+ }], editable: [{
779
+ type: i0.Input
780
+ }, {
781
+ type: i0.HostBinding,
782
+ args: ['class._editable']
783
+ }], disabledItemHandler: [{
784
+ type: i0.Input
785
+ }], valueContent: [{
786
+ type: i0.Input
787
+ }], tagValidator: [{
788
+ type: i0.Input
789
+ }], rows: [{
790
+ type: i0.Input
791
+ }], autoColor: [{
792
+ type: i0.Input
793
+ }], searchChange: [{
794
+ type: i0.Output
795
+ }], datalist: [{
796
+ type: i0.ContentChild,
797
+ args: [i1.TuiDataListDirective, { read: i0.TemplateRef }]
798
+ }], size: [{
799
+ type: i0.HostBinding,
800
+ args: ['attr.data-size']
801
+ }], getStringifier: [] } });
656
802
 
657
- var TuiHideSelectedPipe = /** @class */ (function () {
658
- function TuiHideSelectedPipe(component) {
659
- this.component = component;
660
- }
661
- TuiHideSelectedPipe.prototype.transform = function (items) {
662
- var _a = this.component, value = _a.value, identityMatcher = _a.identityMatcher;
663
- if (!items) {
664
- return null;
665
- }
666
- return utils.tuiIsFlat(items)
667
- ? this.filter(items, value, identityMatcher)
668
- : this.filter2d(items, value, identityMatcher);
669
- };
670
- TuiHideSelectedPipe.prototype.filter2d = function (items, value, matcher) {
671
- var _this = this;
672
- return items.map(function (subItems) { return _this.filter(subItems, value, matcher); });
673
- };
674
- TuiHideSelectedPipe.prototype.filter = function (items, value, matcher) {
675
- return items.filter(function (item) { return value.every(function (selected) { return !matcher(selected, item); }); });
676
- };
677
- return TuiHideSelectedPipe;
678
- }());
679
- TuiHideSelectedPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHideSelectedPipe, deps: [{ token: TuiMultiSelectComponent }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
680
- TuiHideSelectedPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHideSelectedPipe, name: "tuiHideSelected", pure: false });
681
- __decorate([
682
- i3.tuiPure
683
- ], TuiHideSelectedPipe.prototype, "filter2d", null);
684
- __decorate([
685
- i3.tuiPure
686
- ], TuiHideSelectedPipe.prototype, "filter", null);
687
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHideSelectedPipe, decorators: [{
688
- type: i0.Pipe,
689
- args: [{
690
- name: 'tuiHideSelected',
691
- pure: false,
692
- }]
693
- }], ctorParameters: function () {
694
- return [{ type: TuiMultiSelectComponent, decorators: [{
695
- type: i0.Inject,
696
- args: [TuiMultiSelectComponent]
697
- }] }];
698
- }, propDecorators: { filter2d: [], filter: [] } });
803
+ var TuiHideSelectedPipe = /** @class */ (function () {
804
+ function TuiHideSelectedPipe(component) {
805
+ this.component = component;
806
+ }
807
+ TuiHideSelectedPipe.prototype.transform = function (items) {
808
+ var _a = this.component, value = _a.value, identityMatcher = _a.identityMatcher;
809
+ if (!items) {
810
+ return null;
811
+ }
812
+ return utils.tuiIsFlat(items)
813
+ ? this.filter(items, value, identityMatcher)
814
+ : this.filter2d(items, value, identityMatcher);
815
+ };
816
+ TuiHideSelectedPipe.prototype.filter2d = function (items, value, matcher) {
817
+ var _this = this;
818
+ return items.map(function (subItems) { return _this.filter(subItems, value, matcher); });
819
+ };
820
+ TuiHideSelectedPipe.prototype.filter = function (items, value, matcher) {
821
+ return items.filter(function (item) { return value.every(function (selected) { return !matcher(selected, item); }); });
822
+ };
823
+ return TuiHideSelectedPipe;
824
+ }());
825
+ TuiHideSelectedPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHideSelectedPipe, deps: [{ token: TuiMultiSelectComponent }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
826
+ TuiHideSelectedPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHideSelectedPipe, name: "tuiHideSelected", pure: false });
827
+ __decorate([
828
+ i3.tuiPure
829
+ ], TuiHideSelectedPipe.prototype, "filter2d", null);
830
+ __decorate([
831
+ i3.tuiPure
832
+ ], TuiHideSelectedPipe.prototype, "filter", null);
833
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHideSelectedPipe, decorators: [{
834
+ type: i0.Pipe,
835
+ args: [{
836
+ name: 'tuiHideSelected',
837
+ pure: false,
838
+ }]
839
+ }], ctorParameters: function () {
840
+ return [{ type: TuiMultiSelectComponent, decorators: [{
841
+ type: i0.Inject,
842
+ args: [TuiMultiSelectComponent]
843
+ }] }];
844
+ }, propDecorators: { filter2d: [], filter: [] } });
699
845
 
700
- var TuiMultiSelectDirective = /** @class */ (function (_super) {
701
- __extends(TuiMultiSelectDirective, _super);
702
- function TuiMultiSelectDirective() {
703
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
704
- _this.disableItemHandler = function (item) { return _this.host.disabledItemHandler(item); };
705
- return _this;
706
- }
707
- Object.defineProperty(TuiMultiSelectDirective.prototype, "readOnly", {
708
- get: function () {
709
- return true;
710
- },
711
- enumerable: false,
712
- configurable: true
713
- });
714
- TuiMultiSelectDirective.prototype.onValueChange = function () { };
715
- Object.defineProperty(TuiMultiSelectDirective.prototype, "stringify", {
716
- get: function () {
717
- return this.host.stringify;
718
- },
719
- enumerable: false,
720
- configurable: true
721
- });
722
- TuiMultiSelectDirective.prototype.onSelectionChange = function (value) {
723
- this.host.onValueChange(value);
724
- };
725
- return TuiMultiSelectDirective;
726
- }(i1.AbstractTuiTextfieldHost));
727
- TuiMultiSelectDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
728
- TuiMultiSelectDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiMultiSelectDirective, selector: "tui-multi-select", providers: [i1.tuiAsTextfieldHost(TuiMultiSelectDirective)], usesInheritance: true, ngImport: i0__namespace });
729
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectDirective, decorators: [{
730
- type: i0.Directive,
731
- args: [{
732
- selector: 'tui-multi-select',
733
- providers: [i1.tuiAsTextfieldHost(TuiMultiSelectDirective)],
734
- }]
735
- }] });
846
+ var TuiMultiSelectDirective = /** @class */ (function (_super) {
847
+ __extends(TuiMultiSelectDirective, _super);
848
+ function TuiMultiSelectDirective() {
849
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
850
+ _this.disableItemHandler = function (item) { return _this.host.disabledItemHandler(item); };
851
+ return _this;
852
+ }
853
+ Object.defineProperty(TuiMultiSelectDirective.prototype, "readOnly", {
854
+ get: function () {
855
+ return true;
856
+ },
857
+ enumerable: false,
858
+ configurable: true
859
+ });
860
+ TuiMultiSelectDirective.prototype.onValueChange = function () { };
861
+ Object.defineProperty(TuiMultiSelectDirective.prototype, "stringify", {
862
+ get: function () {
863
+ return this.host.stringify;
864
+ },
865
+ enumerable: false,
866
+ configurable: true
867
+ });
868
+ TuiMultiSelectDirective.prototype.onSelectionChange = function (value) {
869
+ this.host.onValueChange(value);
870
+ };
871
+ return TuiMultiSelectDirective;
872
+ }(i1.AbstractTuiTextfieldHost));
873
+ TuiMultiSelectDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
874
+ TuiMultiSelectDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiMultiSelectDirective, selector: "tui-multi-select", providers: [i1.tuiAsTextfieldHost(TuiMultiSelectDirective)], usesInheritance: true, ngImport: i0__namespace });
875
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectDirective, decorators: [{
876
+ type: i0.Directive,
877
+ args: [{
878
+ selector: 'tui-multi-select',
879
+ providers: [i1.tuiAsTextfieldHost(TuiMultiSelectDirective)],
880
+ }]
881
+ }] });
736
882
 
737
- var TuiMultiSelectGroupComponent = /** @class */ (function () {
738
- function TuiMultiSelectGroupComponent(multiSelectTexts$, host, control) {
739
- this.multiSelectTexts$ = multiSelectTexts$;
740
- this.host = host;
741
- this.control = control;
742
- this.options = i3.EMPTY_QUERY;
743
- this.label = '';
744
- }
745
- Object.defineProperty(TuiMultiSelectGroupComponent.prototype, "size", {
746
- get: function () {
747
- var _a;
748
- return ((_a = this.options.first) === null || _a === void 0 ? void 0 : _a.size) || 'm';
749
- },
750
- enumerable: false,
751
- configurable: true
752
- });
753
- Object.defineProperty(TuiMultiSelectGroupComponent.prototype, "empty$", {
754
- get: function () {
755
- return i3.tuiQueryListChanges(this.options).pipe(operators.map(function (_b) {
756
- var length = _b.length;
757
- return !length;
758
- }));
759
- },
760
- enumerable: false,
761
- configurable: true
762
- });
763
- Object.defineProperty(TuiMultiSelectGroupComponent.prototype, "disabled$", {
764
- get: function () {
765
- return i3.tuiQueryListChanges(this.options).pipe(operators.map(function (items) { return items.every(function (_b) {
766
- var disabled = _b.disabled;
767
- return disabled;
768
- }); }));
769
- },
770
- enumerable: false,
771
- configurable: true
772
- });
773
- Object.defineProperty(TuiMultiSelectGroupComponent.prototype, "value$", {
774
- get: function () {
775
- var _this = this;
776
- return rxjs.combineLatest([this.items$, this.valueChanges$]).pipe(operators.map(function (_b) {
777
- var _c = __read(_b, 2), items = _c[0], current = _c[1];
778
- var result = false;
779
- var _loop_1 = function (i) {
780
- var selected = current.some(function (selected) { return _this.matcher(selected, items[i]); });
781
- if ((!selected && result) || (selected && !result && i)) {
782
- return { value: null };
783
- }
784
- result = selected;
785
- };
786
- for (var i = 0; i < items.length; i++) {
787
- var state_1 = _loop_1(i);
788
- if (typeof state_1 === "object")
789
- return state_1.value;
790
- }
791
- return result;
792
- }));
793
- },
794
- enumerable: false,
795
- configurable: true
796
- });
797
- TuiMultiSelectGroupComponent.prototype.onClick = function (checked) {
798
- var _this = this;
799
- if (!this.control.control) {
800
- return;
801
- }
802
- var controlValue = this.control.value || [];
803
- var values = this.values;
804
- var filtered = controlValue.filter(function (current) { return values.every(function (item) { return !_this.matcher(current, item); }); });
805
- this.control.control.setValue(checked ? filtered : __spreadArray(__spreadArray([], __read(filtered)), __read(values)));
806
- };
807
- Object.defineProperty(TuiMultiSelectGroupComponent.prototype, "values", {
808
- get: function () {
809
- return this.filter(i3.tuiGetOriginalArrayFromQueryList(this.options));
810
- },
811
- enumerable: false,
812
- configurable: true
813
- });
814
- Object.defineProperty(TuiMultiSelectGroupComponent.prototype, "matcher", {
815
- get: function () {
816
- return this.host.identityMatcher || i3.TUI_DEFAULT_IDENTITY_MATCHER;
817
- },
818
- enumerable: false,
819
- configurable: true
820
- });
821
- Object.defineProperty(TuiMultiSelectGroupComponent.prototype, "items$", {
822
- get: function () {
823
- return i3.tuiQueryListChanges(this.options).pipe(operators.map(function (options) { return options.map(function (_b) {
824
- var value = _b.value;
825
- return value;
826
- }).filter(i3.tuiIsPresent); }));
827
- },
828
- enumerable: false,
829
- configurable: true
830
- });
831
- Object.defineProperty(TuiMultiSelectGroupComponent.prototype, "valueChanges$", {
832
- get: function () {
833
- return i3.tuiControlValue(this.control).pipe(operators.map(function (value) { return value || []; }));
834
- },
835
- enumerable: false,
836
- configurable: true
837
- });
838
- TuiMultiSelectGroupComponent.prototype.filter = function (items) {
839
- return items.map(function (_b) {
840
- var value = _b.value;
841
- return value;
842
- }).filter(i3.tuiIsPresent);
843
- };
844
- return TuiMultiSelectGroupComponent;
845
- }());
846
- TuiMultiSelectGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectGroupComponent, deps: [{ token: tokens.TUI_MULTI_SELECT_TEXTS }, { token: i1.TUI_DATA_LIST_HOST }, { token: i4.NgControl }], target: i0__namespace.ɵɵFactoryTarget.Component });
847
- TuiMultiSelectGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiMultiSelectGroupComponent, selector: "tui-opt-group[tuiMultiSelectGroup]", inputs: { label: "label" }, host: { properties: { "class._label": "this.label" } }, queries: [{ propertyName: "options", predicate: i1.TuiOptionComponent }], ngImport: i0__namespace, template: "<span\n *tuiLet=\"value$ | async as value\"\n class=\"t-wrapper\"\n>\n <span class=\"t-label\">{{ label }}</span>\n <button\n *ngIf=\"label && !(empty$ | async)\"\n tuiLink\n type=\"button\"\n class=\"t-button\"\n [disabled]=\"!!(disabled$ | async)\"\n (click)=\"onClick(value)\"\n >\n {{ (multiSelectTexts$ | async)?.[value ? 'none' : 'all'] }}\n </button>\n</span>\n<ng-content></ng-content>\n", styles: [":host._label:before{display:none}:host:not(:first-of-type) .t-label:not(:empty){padding-top:1.25rem}:host:not(:first-of-type) .t-button{margin-top:1.25rem}.t-wrapper{display:flex;align-items:flex-start}.t-label:not(:empty){flex:1;padding:.75rem 1rem .25rem .625rem}.t-button{margin:.75rem 1rem 0 auto}\n"], components: [{ type: i1__namespace.TuiLinkComponent, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo", "icon", "iconAlign", "iconRotated", "mode"], exportAs: ["tuiLink"] }], directives: [{ type: i3__namespace.TuiLetDirective, selector: "[tuiLet]", inputs: ["tuiLet"] }, { type: i2__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2__namespace$1.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
848
- __decorate([
849
- i3.tuiPure
850
- ], TuiMultiSelectGroupComponent.prototype, "empty$", null);
851
- __decorate([
852
- i3.tuiPure
853
- ], TuiMultiSelectGroupComponent.prototype, "disabled$", null);
854
- __decorate([
855
- i3.tuiPure
856
- ], TuiMultiSelectGroupComponent.prototype, "value$", null);
857
- __decorate([
858
- i3.tuiPure
859
- ], TuiMultiSelectGroupComponent.prototype, "items$", null);
860
- __decorate([
861
- i3.tuiPure
862
- ], TuiMultiSelectGroupComponent.prototype, "valueChanges$", null);
863
- __decorate([
864
- i3.tuiPure
865
- ], TuiMultiSelectGroupComponent.prototype, "filter", null);
866
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectGroupComponent, decorators: [{
867
- type: i0.Component,
868
- args: [{
869
- selector: 'tui-opt-group[tuiMultiSelectGroup]',
870
- templateUrl: './multi-select-group.template.html',
871
- styleUrls: ['./multi-select-group.style.less'],
872
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
873
- }]
874
- }], ctorParameters: function () {
875
- return [{ type: undefined, decorators: [{
876
- type: i0.Inject,
877
- args: [tokens.TUI_MULTI_SELECT_TEXTS]
878
- }] }, { type: undefined, decorators: [{
879
- type: i0.Inject,
880
- args: [i1.TUI_DATA_LIST_HOST]
881
- }] }, { type: i4__namespace.NgControl, decorators: [{
882
- type: i0.Inject,
883
- args: [i4.NgControl]
884
- }] }];
885
- }, propDecorators: { options: [{
886
- type: i0.ContentChildren,
887
- args: [i1.TuiOptionComponent]
888
- }], label: [{
889
- type: i0.HostBinding,
890
- args: ['class._label']
891
- }, {
892
- type: i0.Input
893
- }], empty$: [], disabled$: [], value$: [], items$: [], valueChanges$: [], filter: [] } });
883
+ var TuiMultiSelectGroupComponent = /** @class */ (function () {
884
+ function TuiMultiSelectGroupComponent(multiSelectTexts$, host, control) {
885
+ this.multiSelectTexts$ = multiSelectTexts$;
886
+ this.host = host;
887
+ this.control = control;
888
+ this.options = i3.EMPTY_QUERY;
889
+ this.label = '';
890
+ }
891
+ Object.defineProperty(TuiMultiSelectGroupComponent.prototype, "size", {
892
+ get: function () {
893
+ var _a;
894
+ return ((_a = this.options.first) === null || _a === void 0 ? void 0 : _a.size) || 'm';
895
+ },
896
+ enumerable: false,
897
+ configurable: true
898
+ });
899
+ Object.defineProperty(TuiMultiSelectGroupComponent.prototype, "empty$", {
900
+ get: function () {
901
+ return i3.tuiQueryListChanges(this.options).pipe(operators.map(function (_b) {
902
+ var length = _b.length;
903
+ return !length;
904
+ }));
905
+ },
906
+ enumerable: false,
907
+ configurable: true
908
+ });
909
+ Object.defineProperty(TuiMultiSelectGroupComponent.prototype, "disabled$", {
910
+ get: function () {
911
+ return i3.tuiQueryListChanges(this.options).pipe(operators.map(function (items) { return items.every(function (_b) {
912
+ var disabled = _b.disabled;
913
+ return disabled;
914
+ }); }));
915
+ },
916
+ enumerable: false,
917
+ configurable: true
918
+ });
919
+ Object.defineProperty(TuiMultiSelectGroupComponent.prototype, "value$", {
920
+ get: function () {
921
+ var _this = this;
922
+ return rxjs.combineLatest([this.items$, this.valueChanges$]).pipe(operators.map(function (_b) {
923
+ var _c = __read(_b, 2), items = _c[0], current = _c[1];
924
+ var result = false;
925
+ var _loop_1 = function (i) {
926
+ var selected = current.some(function (selected) { return _this.matcher(selected, items[i]); });
927
+ if ((!selected && result) || (selected && !result && i)) {
928
+ return { value: null };
929
+ }
930
+ result = selected;
931
+ };
932
+ for (var i = 0; i < items.length; i++) {
933
+ var state_1 = _loop_1(i);
934
+ if (typeof state_1 === "object")
935
+ return state_1.value;
936
+ }
937
+ return result;
938
+ }));
939
+ },
940
+ enumerable: false,
941
+ configurable: true
942
+ });
943
+ TuiMultiSelectGroupComponent.prototype.onClick = function (checked) {
944
+ var _this = this;
945
+ if (!this.control.control) {
946
+ return;
947
+ }
948
+ var controlValue = this.control.value || [];
949
+ var values = this.values;
950
+ var filtered = controlValue.filter(function (current) { return values.every(function (item) { return !_this.matcher(current, item); }); });
951
+ this.control.control.setValue(checked ? filtered : __spreadArray(__spreadArray([], __read(filtered)), __read(values)));
952
+ };
953
+ Object.defineProperty(TuiMultiSelectGroupComponent.prototype, "values", {
954
+ get: function () {
955
+ return this.filter(i3.tuiGetOriginalArrayFromQueryList(this.options));
956
+ },
957
+ enumerable: false,
958
+ configurable: true
959
+ });
960
+ Object.defineProperty(TuiMultiSelectGroupComponent.prototype, "matcher", {
961
+ get: function () {
962
+ return this.host.identityMatcher || i3.TUI_DEFAULT_IDENTITY_MATCHER;
963
+ },
964
+ enumerable: false,
965
+ configurable: true
966
+ });
967
+ Object.defineProperty(TuiMultiSelectGroupComponent.prototype, "items$", {
968
+ get: function () {
969
+ return i3.tuiQueryListChanges(this.options).pipe(operators.map(function (options) { return options.map(function (_b) {
970
+ var value = _b.value;
971
+ return value;
972
+ }).filter(i3.tuiIsPresent); }));
973
+ },
974
+ enumerable: false,
975
+ configurable: true
976
+ });
977
+ Object.defineProperty(TuiMultiSelectGroupComponent.prototype, "valueChanges$", {
978
+ get: function () {
979
+ return i3.tuiControlValue(this.control).pipe(operators.map(function (value) { return value || []; }));
980
+ },
981
+ enumerable: false,
982
+ configurable: true
983
+ });
984
+ TuiMultiSelectGroupComponent.prototype.filter = function (items) {
985
+ return items.map(function (_b) {
986
+ var value = _b.value;
987
+ return value;
988
+ }).filter(i3.tuiIsPresent);
989
+ };
990
+ return TuiMultiSelectGroupComponent;
991
+ }());
992
+ TuiMultiSelectGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectGroupComponent, deps: [{ token: tokens.TUI_MULTI_SELECT_TEXTS }, { token: i1.TUI_DATA_LIST_HOST }, { token: i4.NgControl }], target: i0__namespace.ɵɵFactoryTarget.Component });
993
+ TuiMultiSelectGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiMultiSelectGroupComponent, selector: "tui-opt-group[tuiMultiSelectGroup]", inputs: { label: "label" }, host: { properties: { "class._label": "this.label" } }, queries: [{ propertyName: "options", predicate: i1.TuiOptionComponent }], ngImport: i0__namespace, template: "<span\n *tuiLet=\"value$ | async as value\"\n class=\"t-wrapper\"\n>\n <span class=\"t-label\">{{ label }}</span>\n <button\n *ngIf=\"label && !(empty$ | async)\"\n tuiLink\n type=\"button\"\n class=\"t-button\"\n [disabled]=\"!!(disabled$ | async)\"\n (click)=\"onClick(value)\"\n >\n {{ (multiSelectTexts$ | async)?.[value ? 'none' : 'all'] }}\n </button>\n</span>\n<ng-content></ng-content>\n", styles: [":host._label:before{display:none}:host:not(:first-of-type) .t-label:not(:empty){padding-top:1.25rem}:host:not(:first-of-type) .t-button{margin-top:1.25rem}.t-wrapper{display:flex;align-items:flex-start}.t-label:not(:empty){flex:1;padding:.75rem 1rem .25rem .625rem}.t-button{margin:.75rem 1rem 0 auto}\n"], components: [{ type: i1__namespace.TuiLinkComponent, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo", "icon", "iconAlign", "iconRotated", "mode"], exportAs: ["tuiLink"] }], directives: [{ type: i3__namespace.TuiLetDirective, selector: "[tuiLet]", inputs: ["tuiLet"] }, { type: i2__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2__namespace$1.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
994
+ __decorate([
995
+ i3.tuiPure
996
+ ], TuiMultiSelectGroupComponent.prototype, "empty$", null);
997
+ __decorate([
998
+ i3.tuiPure
999
+ ], TuiMultiSelectGroupComponent.prototype, "disabled$", null);
1000
+ __decorate([
1001
+ i3.tuiPure
1002
+ ], TuiMultiSelectGroupComponent.prototype, "value$", null);
1003
+ __decorate([
1004
+ i3.tuiPure
1005
+ ], TuiMultiSelectGroupComponent.prototype, "items$", null);
1006
+ __decorate([
1007
+ i3.tuiPure
1008
+ ], TuiMultiSelectGroupComponent.prototype, "valueChanges$", null);
1009
+ __decorate([
1010
+ i3.tuiPure
1011
+ ], TuiMultiSelectGroupComponent.prototype, "filter", null);
1012
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectGroupComponent, decorators: [{
1013
+ type: i0.Component,
1014
+ args: [{
1015
+ selector: 'tui-opt-group[tuiMultiSelectGroup]',
1016
+ templateUrl: './multi-select-group.template.html',
1017
+ styleUrls: ['./multi-select-group.style.less'],
1018
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1019
+ }]
1020
+ }], ctorParameters: function () {
1021
+ return [{ type: undefined, decorators: [{
1022
+ type: i0.Inject,
1023
+ args: [tokens.TUI_MULTI_SELECT_TEXTS]
1024
+ }] }, { type: undefined, decorators: [{
1025
+ type: i0.Inject,
1026
+ args: [i1.TUI_DATA_LIST_HOST]
1027
+ }] }, { type: i4__namespace.NgControl, decorators: [{
1028
+ type: i0.Inject,
1029
+ args: [i4.NgControl]
1030
+ }] }];
1031
+ }, propDecorators: { options: [{
1032
+ type: i0.ContentChildren,
1033
+ args: [i1.TuiOptionComponent]
1034
+ }], label: [{
1035
+ type: i0.HostBinding,
1036
+ args: ['class._label']
1037
+ }, {
1038
+ type: i0.Input
1039
+ }], empty$: [], disabled$: [], value$: [], items$: [], valueChanges$: [], filter: [] } });
894
1040
 
895
- var TUI_MULTI_SELECT_OPTION = new i6.PolymorpheusComponent(multiSelectOption.TuiMultiSelectOptionComponent);
896
- var TuiMultiSelectGroupDirective = /** @class */ (function () {
897
- function TuiMultiSelectGroupDirective() {
898
- }
899
- return TuiMultiSelectGroupDirective;
900
- }());
901
- TuiMultiSelectGroupDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectGroupDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
902
- TuiMultiSelectGroupDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiMultiSelectGroupDirective, selector: "[tuiMultiSelectGroup]", providers: [
903
- i1.tuiAsOptionContent(TUI_MULTI_SELECT_OPTION),
904
- {
905
- provide: i1.TUI_DATA_LIST_HOST,
906
- deps: [
907
- i4.NgControl,
908
- [new i0.Optional(), i0.forwardRef(function () { return TuiMultiSelectComponent; })],
909
- ],
910
- useFactory: function (control, host) { return host || {
911
- handleOption: function (option) {
912
- var _a;
913
- return (_a = control.control) === null || _a === void 0 ? void 0 : _a.setValue(i3.tuiArrayToggle(control.value || [], option));
914
- },
915
- }; },
916
- },
917
- {
918
- provide: i4.NG_VALUE_ACCESSOR,
919
- multi: true,
920
- useValue: {
921
- writeValue: i3.EMPTY_FUNCTION,
922
- registerOnChange: i3.EMPTY_FUNCTION,
923
- registerOnTouched: i3.EMPTY_FUNCTION,
924
- },
925
- },
926
- ], ngImport: i0__namespace });
927
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectGroupDirective, decorators: [{
928
- type: i0.Directive,
929
- args: [{
930
- selector: '[tuiMultiSelectGroup]',
931
- providers: [
932
- i1.tuiAsOptionContent(TUI_MULTI_SELECT_OPTION),
933
- {
934
- provide: i1.TUI_DATA_LIST_HOST,
935
- deps: [
936
- i4.NgControl,
937
- [new i0.Optional(), i0.forwardRef(function () { return TuiMultiSelectComponent; })],
938
- ],
939
- useFactory: function (control, host) { return host || {
940
- handleOption: function (option) {
941
- var _a;
942
- return (_a = control.control) === null || _a === void 0 ? void 0 : _a.setValue(i3.tuiArrayToggle(control.value || [], option));
943
- },
944
- }; },
945
- },
946
- {
947
- provide: i4.NG_VALUE_ACCESSOR,
948
- multi: true,
949
- useValue: {
950
- writeValue: i3.EMPTY_FUNCTION,
951
- registerOnChange: i3.EMPTY_FUNCTION,
952
- registerOnTouched: i3.EMPTY_FUNCTION,
953
- },
954
- },
955
- ],
956
- }]
957
- }] });
1041
+ var TUI_MULTI_SELECT_OPTION = new i6.PolymorpheusComponent(multiSelectOption.TuiMultiSelectOptionComponent);
1042
+ var TuiMultiSelectGroupDirective = /** @class */ (function () {
1043
+ function TuiMultiSelectGroupDirective() {
1044
+ }
1045
+ return TuiMultiSelectGroupDirective;
1046
+ }());
1047
+ TuiMultiSelectGroupDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectGroupDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
1048
+ TuiMultiSelectGroupDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiMultiSelectGroupDirective, selector: "[tuiMultiSelectGroup]", providers: [
1049
+ i1.tuiAsOptionContent(TUI_MULTI_SELECT_OPTION),
1050
+ {
1051
+ provide: i1.TUI_DATA_LIST_HOST,
1052
+ deps: [
1053
+ i4.NgControl,
1054
+ [new i0.Optional(), i0.forwardRef(function () { return TuiMultiSelectComponent; })],
1055
+ ],
1056
+ useFactory: function (control, host) { return host || {
1057
+ handleOption: function (option) {
1058
+ var _a;
1059
+ return (_a = control.control) === null || _a === void 0 ? void 0 : _a.setValue(i3.tuiArrayToggle(control.value || [], option));
1060
+ },
1061
+ }; },
1062
+ },
1063
+ {
1064
+ provide: i4.NG_VALUE_ACCESSOR,
1065
+ multi: true,
1066
+ useValue: {
1067
+ writeValue: i3.EMPTY_FUNCTION,
1068
+ registerOnChange: i3.EMPTY_FUNCTION,
1069
+ registerOnTouched: i3.EMPTY_FUNCTION,
1070
+ },
1071
+ },
1072
+ ], ngImport: i0__namespace });
1073
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectGroupDirective, decorators: [{
1074
+ type: i0.Directive,
1075
+ args: [{
1076
+ selector: '[tuiMultiSelectGroup]',
1077
+ providers: [
1078
+ i1.tuiAsOptionContent(TUI_MULTI_SELECT_OPTION),
1079
+ {
1080
+ provide: i1.TUI_DATA_LIST_HOST,
1081
+ deps: [
1082
+ i4.NgControl,
1083
+ [new i0.Optional(), i0.forwardRef(function () { return TuiMultiSelectComponent; })],
1084
+ ],
1085
+ useFactory: function (control, host) { return host || {
1086
+ handleOption: function (option) {
1087
+ var _a;
1088
+ return (_a = control.control) === null || _a === void 0 ? void 0 : _a.setValue(i3.tuiArrayToggle(control.value || [], option));
1089
+ },
1090
+ }; },
1091
+ },
1092
+ {
1093
+ provide: i4.NG_VALUE_ACCESSOR,
1094
+ multi: true,
1095
+ useValue: {
1096
+ writeValue: i3.EMPTY_FUNCTION,
1097
+ registerOnChange: i3.EMPTY_FUNCTION,
1098
+ registerOnTouched: i3.EMPTY_FUNCTION,
1099
+ },
1100
+ },
1101
+ ],
1102
+ }]
1103
+ }] });
958
1104
 
959
- var TuiNativeMultiSelectComponent = /** @class */ (function (_super) {
960
- __extends(TuiNativeMultiSelectComponent, _super);
961
- function TuiNativeMultiSelectComponent() {
962
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
963
- _this.items = [];
964
- return _this;
965
- }
966
- TuiNativeMultiSelectComponent.prototype.onValueChange = function (selectedOptions) {
967
- var _a;
968
- var selected = Array.from(selectedOptions).map(function (option) { return option.index; });
969
- var value = ((_a = this.items) === null || _a === void 0 ? void 0 : _a.filter(function (_, index) { return selected.includes(index); })) || [];
970
- this.host.onSelectionChange(value);
971
- };
972
- return TuiNativeMultiSelectComponent;
973
- }(AbstractTuiNativeMultiSelect));
974
- TuiNativeMultiSelectComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNativeMultiSelectComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
975
- TuiNativeMultiSelectComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiNativeMultiSelectComponent, selector: "select[multiple][tuiSelect]:not([labels])", inputs: { items: "items" }, host: { listeners: { "change": "onValueChange($event.target.selectedOptions)", "click.stop.silent": "0", "mousedown.stop.silent": "0" }, properties: { "attr.aria-invalid": "host.invalid", "disabled": "host.disabled || control.readOnly", "tabIndex": "host.focusable ? 0 : -1" } }, providers: [
976
- i1.tuiAsDataList(TuiNativeMultiSelectComponent),
977
- {
978
- provide: i0.TemplateRef,
979
- deps: [TuiNativeMultiSelectComponent],
980
- useFactory: function (_b) {
981
- var datalist = _b.datalist;
982
- return datalist;
983
- },
984
- },
985
- {
986
- provide: AbstractTuiNativeMultiSelect,
987
- useExisting: TuiNativeMultiSelectComponent,
988
- },
989
- ], usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngIf=\"control.control?.valueChanges | async\"></ng-container>\n\n<tui-data-list-wrapper\n *tuiDataList\n tuiMultiSelectGroup\n [disabledItemHandler]=\"disabledItemHandler || host.disableItemHandler\"\n [itemContent]=\"stringify | tuiStringifyContent\"\n [items]=\"items\"\n></tui-data-list-wrapper>\n<option\n *ngFor=\"let option of items\"\n [disabled]=\"disabledItemHandler ? disabledItemHandler(option) : host.disableItemHandler(option)\"\n [selected]=\"option | tuiMapper: selectedMapper : control.value\"\n [value]=\"stringify(option)\"\n>\n {{ stringify(option) }}\n</option>\n", styles: [":host{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}\n"], components: [{ type: i1__namespace$1.TuiDataListWrapperComponent, selector: "tui-data-list-wrapper:not([labels])", inputs: ["items"] }], directives: [{ type: i2__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { type: TuiMultiSelectGroupDirective, selector: "[tuiMultiSelectGroup]" }, { type: i2__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4__namespace.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i4__namespace.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }], pipes: { "async": i2__namespace$1.AsyncPipe, "tuiStringifyContent": i6__namespace$1.TuiStringifyContentPipe, "tuiMapper": i3__namespace.TuiMapperPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
990
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNativeMultiSelectComponent, decorators: [{
991
- type: i0.Component,
992
- args: [{
993
- selector: 'select[multiple][tuiSelect]:not([labels])',
994
- templateUrl: './native-multi-select.template.html',
995
- styleUrls: ['./native-multi-select.style.less'],
996
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
997
- providers: [
998
- i1.tuiAsDataList(TuiNativeMultiSelectComponent),
999
- {
1000
- provide: i0.TemplateRef,
1001
- deps: [TuiNativeMultiSelectComponent],
1002
- useFactory: function (_b) {
1003
- var datalist = _b.datalist;
1004
- return datalist;
1005
- },
1006
- },
1007
- {
1008
- provide: AbstractTuiNativeMultiSelect,
1009
- useExisting: TuiNativeMultiSelectComponent,
1010
- },
1011
- ],
1012
- host: {
1013
- '[attr.aria-invalid]': 'host.invalid',
1014
- '[disabled]': 'host.disabled || control.readOnly',
1015
- '[tabIndex]': 'host.focusable ? 0 : -1',
1016
- '(change)': 'onValueChange($event.target.selectedOptions)',
1017
- '(click.stop.silent)': '0',
1018
- '(mousedown.stop.silent)': '0',
1019
- },
1020
- }]
1021
- }], propDecorators: { items: [{
1022
- type: i0.Input
1023
- }] } });
1105
+ var TuiNativeMultiSelectComponent = /** @class */ (function (_super) {
1106
+ __extends(TuiNativeMultiSelectComponent, _super);
1107
+ function TuiNativeMultiSelectComponent() {
1108
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
1109
+ _this.items = [];
1110
+ return _this;
1111
+ }
1112
+ TuiNativeMultiSelectComponent.prototype.onValueChange = function (selectedOptions) {
1113
+ var _a;
1114
+ var selected = Array.from(selectedOptions).map(function (option) { return option.index; });
1115
+ var value = ((_a = this.items) === null || _a === void 0 ? void 0 : _a.filter(function (_, index) { return selected.includes(index); })) || [];
1116
+ this.host.onSelectionChange(value);
1117
+ };
1118
+ return TuiNativeMultiSelectComponent;
1119
+ }(AbstractTuiNativeMultiSelect));
1120
+ TuiNativeMultiSelectComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNativeMultiSelectComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
1121
+ TuiNativeMultiSelectComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiNativeMultiSelectComponent, selector: "select[multiple][tuiSelect]:not([labels])", inputs: { items: "items" }, host: { listeners: { "change": "onValueChange($event.target.selectedOptions)", "click.stop.silent": "0", "mousedown.stop.silent": "0" }, properties: { "attr.aria-invalid": "host.invalid", "disabled": "host.disabled || control.readOnly", "tabIndex": "host.focusable ? 0 : -1" } }, providers: [
1122
+ i1.tuiAsDataList(TuiNativeMultiSelectComponent),
1123
+ {
1124
+ provide: i0.TemplateRef,
1125
+ deps: [TuiNativeMultiSelectComponent],
1126
+ useFactory: function (_b) {
1127
+ var datalist = _b.datalist;
1128
+ return datalist;
1129
+ },
1130
+ },
1131
+ {
1132
+ provide: AbstractTuiNativeMultiSelect,
1133
+ useExisting: TuiNativeMultiSelectComponent,
1134
+ },
1135
+ ], usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngIf=\"control.control?.valueChanges | async\"></ng-container>\n\n<tui-data-list-wrapper\n *tuiDataList\n tuiMultiSelectGroup\n [disabledItemHandler]=\"disabledItemHandler || host.disableItemHandler\"\n [itemContent]=\"stringify | tuiStringifyContent\"\n [items]=\"items\"\n></tui-data-list-wrapper>\n<option\n *ngFor=\"let option of items\"\n [disabled]=\"disabledItemHandler ? disabledItemHandler(option) : host.disableItemHandler(option)\"\n [selected]=\"option | tuiMapper: selectedMapper : control.value\"\n [value]=\"stringify(option)\"\n>\n {{ stringify(option) }}\n</option>\n", styles: [":host{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}\n"], components: [{ type: i1__namespace$1.TuiDataListWrapperComponent, selector: "tui-data-list-wrapper:not([labels])", inputs: ["items"] }], directives: [{ type: i2__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { type: TuiMultiSelectGroupDirective, selector: "[tuiMultiSelectGroup]" }, { type: i2__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4__namespace.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i4__namespace.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }], pipes: { "async": i2__namespace$1.AsyncPipe, "tuiStringifyContent": i6__namespace$1.TuiStringifyContentPipe, "tuiMapper": i3__namespace.TuiMapperPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1136
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNativeMultiSelectComponent, decorators: [{
1137
+ type: i0.Component,
1138
+ args: [{
1139
+ selector: 'select[multiple][tuiSelect]:not([labels])',
1140
+ templateUrl: './native-multi-select.template.html',
1141
+ styleUrls: ['./native-multi-select.style.less'],
1142
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1143
+ providers: [
1144
+ i1.tuiAsDataList(TuiNativeMultiSelectComponent),
1145
+ {
1146
+ provide: i0.TemplateRef,
1147
+ deps: [TuiNativeMultiSelectComponent],
1148
+ useFactory: function (_b) {
1149
+ var datalist = _b.datalist;
1150
+ return datalist;
1151
+ },
1152
+ },
1153
+ {
1154
+ provide: AbstractTuiNativeMultiSelect,
1155
+ useExisting: TuiNativeMultiSelectComponent,
1156
+ },
1157
+ ],
1158
+ host: {
1159
+ '[attr.aria-invalid]': 'host.invalid',
1160
+ '[disabled]': 'host.disabled || control.readOnly',
1161
+ '[tabIndex]': 'host.focusable ? 0 : -1',
1162
+ '(change)': 'onValueChange($event.target.selectedOptions)',
1163
+ '(click.stop.silent)': '0',
1164
+ '(mousedown.stop.silent)': '0',
1165
+ },
1166
+ }]
1167
+ }], propDecorators: { items: [{
1168
+ type: i0.Input
1169
+ }] } });
1024
1170
 
1025
- var TuiNativeMultiSelectGroupComponent = /** @class */ (function (_super) {
1026
- __extends(TuiNativeMultiSelectGroupComponent, _super);
1027
- function TuiNativeMultiSelectGroupComponent() {
1028
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
1029
- _this.items = [];
1030
- _this.labels = [];
1031
- return _this;
1032
- }
1033
- TuiNativeMultiSelectGroupComponent.prototype.onValueChange = function (selectedOptions) {
1034
- var _a;
1035
- var selected = Array.from(selectedOptions).map(function (option) { return option.index; });
1036
- var flatItems = ((_a = this.items) === null || _a === void 0 ? void 0 : _a.reduce(function (acc, val) { return acc.concat(val); }, [])) || [];
1037
- var value = flatItems.filter(function (_, index) { return selected.includes(index); });
1038
- this.host.onSelectionChange(value);
1039
- };
1040
- return TuiNativeMultiSelectGroupComponent;
1041
- }(AbstractTuiNativeMultiSelect));
1042
- TuiNativeMultiSelectGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNativeMultiSelectGroupComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
1043
- TuiNativeMultiSelectGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiNativeMultiSelectGroupComponent, selector: "select[multiple][tuiSelect][labels]", inputs: { items: "items", labels: "labels" }, host: { listeners: { "change": "onValueChange($event.target.selectedOptions)", "click.stop.silent": "0", "mousedown.stop.silent": "0" }, properties: { "attr.aria-invalid": "host.invalid", "disabled": "host.disabled || control.readOnly", "tabIndex": "host.focusable ? 0 : -1" } }, providers: [
1044
- i1.tuiAsDataList(TuiNativeMultiSelectGroupComponent),
1045
- {
1046
- provide: i0.TemplateRef,
1047
- deps: [TuiNativeMultiSelectGroupComponent],
1048
- useFactory: function (_b) {
1049
- var datalist = _b.datalist;
1050
- return datalist;
1051
- },
1052
- },
1053
- {
1054
- provide: AbstractTuiNativeMultiSelect,
1055
- useExisting: TuiNativeMultiSelectGroupComponent,
1056
- },
1057
- ], usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngIf=\"control.control?.valueChanges | async\"></ng-container>\n\n<tui-data-list-wrapper\n *tuiDataList\n tuiMultiSelectGroup\n [disabledItemHandler]=\"disabledItemHandler || host.disableItemHandler\"\n [itemContent]=\"stringify | tuiStringifyContent\"\n [items]=\"items\"\n [labels]=\"labels\"\n></tui-data-list-wrapper>\n<optgroup\n *ngFor=\"let group of items; let index = index\"\n [label]=\"labels[index]\"\n>\n <option\n *ngFor=\"let option of group\"\n [disabled]=\"disabledItemHandler ? disabledItemHandler(option) : host.disableItemHandler(option)\"\n [selected]=\"option | tuiMapper: selectedMapper : control.value\"\n [value]=\"stringify(option)\"\n >\n {{ stringify(option) }}\n </option>\n</optgroup>\n", styles: [":host{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}\n"], components: [{ type: i1__namespace$1.TuiDataListGroupWrapperComponent, selector: "tui-data-list-wrapper[labels]", inputs: ["items", "labels"] }], directives: [{ type: i2__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { type: TuiMultiSelectGroupDirective, selector: "[tuiMultiSelectGroup]" }, { type: i2__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4__namespace.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i4__namespace.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }], pipes: { "async": i2__namespace$1.AsyncPipe, "tuiStringifyContent": i6__namespace$1.TuiStringifyContentPipe, "tuiMapper": i3__namespace.TuiMapperPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1058
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNativeMultiSelectGroupComponent, decorators: [{
1059
- type: i0.Component,
1060
- args: [{
1061
- selector: 'select[multiple][tuiSelect][labels]',
1062
- templateUrl: './native-multi-select-group.template.html',
1063
- styleUrls: ['./native-multi-select.style.less'],
1064
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1065
- providers: [
1066
- i1.tuiAsDataList(TuiNativeMultiSelectGroupComponent),
1067
- {
1068
- provide: i0.TemplateRef,
1069
- deps: [TuiNativeMultiSelectGroupComponent],
1070
- useFactory: function (_b) {
1071
- var datalist = _b.datalist;
1072
- return datalist;
1073
- },
1074
- },
1075
- {
1076
- provide: AbstractTuiNativeMultiSelect,
1077
- useExisting: TuiNativeMultiSelectGroupComponent,
1078
- },
1079
- ],
1080
- host: {
1081
- '[attr.aria-invalid]': 'host.invalid',
1082
- '[disabled]': 'host.disabled || control.readOnly',
1083
- '[tabIndex]': 'host.focusable ? 0 : -1',
1084
- '(change)': 'onValueChange($event.target.selectedOptions)',
1085
- '(click.stop.silent)': '0',
1086
- '(mousedown.stop.silent)': '0',
1087
- },
1088
- }]
1089
- }], propDecorators: { items: [{
1090
- type: i0.Input
1091
- }], labels: [{
1092
- type: i0.Input
1093
- }] } });
1171
+ var TuiNativeMultiSelectGroupComponent = /** @class */ (function (_super) {
1172
+ __extends(TuiNativeMultiSelectGroupComponent, _super);
1173
+ function TuiNativeMultiSelectGroupComponent() {
1174
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
1175
+ _this.items = [];
1176
+ _this.labels = [];
1177
+ return _this;
1178
+ }
1179
+ TuiNativeMultiSelectGroupComponent.prototype.onValueChange = function (selectedOptions) {
1180
+ var _a;
1181
+ var selected = Array.from(selectedOptions).map(function (option) { return option.index; });
1182
+ var flatItems = ((_a = this.items) === null || _a === void 0 ? void 0 : _a.reduce(function (acc, val) { return acc.concat(val); }, [])) || [];
1183
+ var value = flatItems.filter(function (_, index) { return selected.includes(index); });
1184
+ this.host.onSelectionChange(value);
1185
+ };
1186
+ return TuiNativeMultiSelectGroupComponent;
1187
+ }(AbstractTuiNativeMultiSelect));
1188
+ TuiNativeMultiSelectGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNativeMultiSelectGroupComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
1189
+ TuiNativeMultiSelectGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiNativeMultiSelectGroupComponent, selector: "select[multiple][tuiSelect][labels]", inputs: { items: "items", labels: "labels" }, host: { listeners: { "change": "onValueChange($event.target.selectedOptions)", "click.stop.silent": "0", "mousedown.stop.silent": "0" }, properties: { "attr.aria-invalid": "host.invalid", "disabled": "host.disabled || control.readOnly", "tabIndex": "host.focusable ? 0 : -1" } }, providers: [
1190
+ i1.tuiAsDataList(TuiNativeMultiSelectGroupComponent),
1191
+ {
1192
+ provide: i0.TemplateRef,
1193
+ deps: [TuiNativeMultiSelectGroupComponent],
1194
+ useFactory: function (_b) {
1195
+ var datalist = _b.datalist;
1196
+ return datalist;
1197
+ },
1198
+ },
1199
+ {
1200
+ provide: AbstractTuiNativeMultiSelect,
1201
+ useExisting: TuiNativeMultiSelectGroupComponent,
1202
+ },
1203
+ ], usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngIf=\"control.control?.valueChanges | async\"></ng-container>\n\n<tui-data-list-wrapper\n *tuiDataList\n tuiMultiSelectGroup\n [disabledItemHandler]=\"disabledItemHandler || host.disableItemHandler\"\n [itemContent]=\"stringify | tuiStringifyContent\"\n [items]=\"items\"\n [labels]=\"labels\"\n></tui-data-list-wrapper>\n<optgroup\n *ngFor=\"let group of items; let index = index\"\n [label]=\"labels[index]\"\n>\n <option\n *ngFor=\"let option of group\"\n [disabled]=\"disabledItemHandler ? disabledItemHandler(option) : host.disableItemHandler(option)\"\n [selected]=\"option | tuiMapper: selectedMapper : control.value\"\n [value]=\"stringify(option)\"\n >\n {{ stringify(option) }}\n </option>\n</optgroup>\n", styles: [":host{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}\n"], components: [{ type: i1__namespace$1.TuiDataListGroupWrapperComponent, selector: "tui-data-list-wrapper[labels]", inputs: ["items", "labels"] }], directives: [{ type: i2__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { type: TuiMultiSelectGroupDirective, selector: "[tuiMultiSelectGroup]" }, { type: i2__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4__namespace.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i4__namespace.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }], pipes: { "async": i2__namespace$1.AsyncPipe, "tuiStringifyContent": i6__namespace$1.TuiStringifyContentPipe, "tuiMapper": i3__namespace.TuiMapperPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1204
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNativeMultiSelectGroupComponent, decorators: [{
1205
+ type: i0.Component,
1206
+ args: [{
1207
+ selector: 'select[multiple][tuiSelect][labels]',
1208
+ templateUrl: './native-multi-select-group.template.html',
1209
+ styleUrls: ['./native-multi-select.style.less'],
1210
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1211
+ providers: [
1212
+ i1.tuiAsDataList(TuiNativeMultiSelectGroupComponent),
1213
+ {
1214
+ provide: i0.TemplateRef,
1215
+ deps: [TuiNativeMultiSelectGroupComponent],
1216
+ useFactory: function (_b) {
1217
+ var datalist = _b.datalist;
1218
+ return datalist;
1219
+ },
1220
+ },
1221
+ {
1222
+ provide: AbstractTuiNativeMultiSelect,
1223
+ useExisting: TuiNativeMultiSelectGroupComponent,
1224
+ },
1225
+ ],
1226
+ host: {
1227
+ '[attr.aria-invalid]': 'host.invalid',
1228
+ '[disabled]': 'host.disabled || control.readOnly',
1229
+ '[tabIndex]': 'host.focusable ? 0 : -1',
1230
+ '(change)': 'onValueChange($event.target.selectedOptions)',
1231
+ '(click.stop.silent)': '0',
1232
+ '(mousedown.stop.silent)': '0',
1233
+ },
1234
+ }]
1235
+ }], propDecorators: { items: [{
1236
+ type: i0.Input
1237
+ }], labels: [{
1238
+ type: i0.Input
1239
+ }] } });
1094
1240
 
1095
- var TuiMultiSelectModule = /** @class */ (function () {
1096
- function TuiMultiSelectModule() {
1097
- }
1098
- return TuiMultiSelectModule;
1099
- }());
1100
- TuiMultiSelectModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1101
- TuiMultiSelectModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectModule, declarations: [TuiMultiSelectComponent,
1102
- TuiMultiSelectGroupComponent,
1103
- TuiMultiSelectGroupDirective,
1104
- TuiHideSelectedPipe,
1105
- TuiNativeMultiSelectComponent,
1106
- TuiNativeMultiSelectGroupComponent,
1107
- TuiMultiSelectDirective], imports: [i2$1.CommonModule,
1108
- i4.FormsModule,
1109
- i6.PolymorpheusModule,
1110
- i1.TuiWrapperModule,
1111
- i3.TuiPreventDefaultModule,
1112
- i3.TuiActiveZoneModule,
1113
- arrow.TuiArrowModule,
1114
- i3.TuiLetModule,
1115
- i3.TuiMapperPipeModule,
1116
- i1.TuiSvgModule,
1117
- i1.TuiHostedDropdownModule,
1118
- i2.TuiInputTagModule,
1119
- multiSelectOption.TuiMultiSelectOptionModule,
1120
- i1$1.TuiDataListWrapperModule,
1121
- i3.TuiMapperPipeModule,
1122
- i1.TuiLinkModule,
1123
- i1.TuiDataListModule,
1124
- i1.TuiTextfieldControllerModule,
1125
- i6$1.TuiStringifyContentPipeModule], exports: [TuiMultiSelectComponent,
1126
- TuiMultiSelectGroupComponent,
1127
- TuiMultiSelectGroupDirective,
1128
- TuiHideSelectedPipe,
1129
- TuiMultiSelectDirective,
1130
- TuiNativeMultiSelectComponent,
1131
- TuiNativeMultiSelectGroupComponent] });
1132
- TuiMultiSelectModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectModule, imports: [[
1133
- i2$1.CommonModule,
1134
- i4.FormsModule,
1135
- i6.PolymorpheusModule,
1136
- i1.TuiWrapperModule,
1137
- i3.TuiPreventDefaultModule,
1138
- i3.TuiActiveZoneModule,
1139
- arrow.TuiArrowModule,
1140
- i3.TuiLetModule,
1141
- i3.TuiMapperPipeModule,
1142
- i1.TuiSvgModule,
1143
- i1.TuiHostedDropdownModule,
1144
- i2.TuiInputTagModule,
1145
- multiSelectOption.TuiMultiSelectOptionModule,
1146
- i1$1.TuiDataListWrapperModule,
1147
- i3.TuiMapperPipeModule,
1148
- i1.TuiLinkModule,
1149
- i1.TuiDataListModule,
1150
- i1.TuiTextfieldControllerModule,
1151
- i6$1.TuiStringifyContentPipeModule,
1152
- ]] });
1153
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectModule, decorators: [{
1154
- type: i0.NgModule,
1155
- args: [{
1156
- imports: [
1157
- i2$1.CommonModule,
1158
- i4.FormsModule,
1159
- i6.PolymorpheusModule,
1160
- i1.TuiWrapperModule,
1161
- i3.TuiPreventDefaultModule,
1162
- i3.TuiActiveZoneModule,
1163
- arrow.TuiArrowModule,
1164
- i3.TuiLetModule,
1165
- i3.TuiMapperPipeModule,
1166
- i1.TuiSvgModule,
1167
- i1.TuiHostedDropdownModule,
1168
- i2.TuiInputTagModule,
1169
- multiSelectOption.TuiMultiSelectOptionModule,
1170
- i1$1.TuiDataListWrapperModule,
1171
- i3.TuiMapperPipeModule,
1172
- i1.TuiLinkModule,
1173
- i1.TuiDataListModule,
1174
- i1.TuiTextfieldControllerModule,
1175
- i6$1.TuiStringifyContentPipeModule,
1176
- ],
1177
- declarations: [
1178
- TuiMultiSelectComponent,
1179
- TuiMultiSelectGroupComponent,
1180
- TuiMultiSelectGroupDirective,
1181
- TuiHideSelectedPipe,
1182
- TuiNativeMultiSelectComponent,
1183
- TuiNativeMultiSelectGroupComponent,
1184
- TuiMultiSelectDirective,
1185
- ],
1186
- exports: [
1187
- TuiMultiSelectComponent,
1188
- TuiMultiSelectGroupComponent,
1189
- TuiMultiSelectGroupDirective,
1190
- TuiHideSelectedPipe,
1191
- TuiMultiSelectDirective,
1192
- TuiNativeMultiSelectComponent,
1193
- TuiNativeMultiSelectGroupComponent,
1194
- ],
1195
- }]
1196
- }] });
1241
+ var TuiMultiSelectModule = /** @class */ (function () {
1242
+ function TuiMultiSelectModule() {
1243
+ }
1244
+ return TuiMultiSelectModule;
1245
+ }());
1246
+ TuiMultiSelectModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1247
+ TuiMultiSelectModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectModule, declarations: [TuiMultiSelectComponent,
1248
+ TuiMultiSelectGroupComponent,
1249
+ TuiMultiSelectGroupDirective,
1250
+ TuiHideSelectedPipe,
1251
+ TuiNativeMultiSelectComponent,
1252
+ TuiNativeMultiSelectGroupComponent,
1253
+ TuiMultiSelectDirective], imports: [i2$1.CommonModule,
1254
+ i4.FormsModule,
1255
+ i6.PolymorpheusModule,
1256
+ i1.TuiWrapperModule,
1257
+ i3.TuiPreventDefaultModule,
1258
+ i3.TuiActiveZoneModule,
1259
+ arrow.TuiArrowModule,
1260
+ i3.TuiLetModule,
1261
+ i3.TuiMapperPipeModule,
1262
+ i1.TuiSvgModule,
1263
+ i1.TuiHostedDropdownModule,
1264
+ i2.TuiInputTagModule,
1265
+ multiSelectOption.TuiMultiSelectOptionModule,
1266
+ i1$1.TuiDataListWrapperModule,
1267
+ i3.TuiMapperPipeModule,
1268
+ i1.TuiLinkModule,
1269
+ i1.TuiDataListModule,
1270
+ i1.TuiTextfieldControllerModule,
1271
+ i6$1.TuiStringifyContentPipeModule], exports: [TuiMultiSelectComponent,
1272
+ TuiMultiSelectGroupComponent,
1273
+ TuiMultiSelectGroupDirective,
1274
+ TuiHideSelectedPipe,
1275
+ TuiMultiSelectDirective,
1276
+ TuiNativeMultiSelectComponent,
1277
+ TuiNativeMultiSelectGroupComponent] });
1278
+ TuiMultiSelectModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectModule, imports: [[
1279
+ i2$1.CommonModule,
1280
+ i4.FormsModule,
1281
+ i6.PolymorpheusModule,
1282
+ i1.TuiWrapperModule,
1283
+ i3.TuiPreventDefaultModule,
1284
+ i3.TuiActiveZoneModule,
1285
+ arrow.TuiArrowModule,
1286
+ i3.TuiLetModule,
1287
+ i3.TuiMapperPipeModule,
1288
+ i1.TuiSvgModule,
1289
+ i1.TuiHostedDropdownModule,
1290
+ i2.TuiInputTagModule,
1291
+ multiSelectOption.TuiMultiSelectOptionModule,
1292
+ i1$1.TuiDataListWrapperModule,
1293
+ i3.TuiMapperPipeModule,
1294
+ i1.TuiLinkModule,
1295
+ i1.TuiDataListModule,
1296
+ i1.TuiTextfieldControllerModule,
1297
+ i6$1.TuiStringifyContentPipeModule,
1298
+ ]] });
1299
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMultiSelectModule, decorators: [{
1300
+ type: i0.NgModule,
1301
+ args: [{
1302
+ imports: [
1303
+ i2$1.CommonModule,
1304
+ i4.FormsModule,
1305
+ i6.PolymorpheusModule,
1306
+ i1.TuiWrapperModule,
1307
+ i3.TuiPreventDefaultModule,
1308
+ i3.TuiActiveZoneModule,
1309
+ arrow.TuiArrowModule,
1310
+ i3.TuiLetModule,
1311
+ i3.TuiMapperPipeModule,
1312
+ i1.TuiSvgModule,
1313
+ i1.TuiHostedDropdownModule,
1314
+ i2.TuiInputTagModule,
1315
+ multiSelectOption.TuiMultiSelectOptionModule,
1316
+ i1$1.TuiDataListWrapperModule,
1317
+ i3.TuiMapperPipeModule,
1318
+ i1.TuiLinkModule,
1319
+ i1.TuiDataListModule,
1320
+ i1.TuiTextfieldControllerModule,
1321
+ i6$1.TuiStringifyContentPipeModule,
1322
+ ],
1323
+ declarations: [
1324
+ TuiMultiSelectComponent,
1325
+ TuiMultiSelectGroupComponent,
1326
+ TuiMultiSelectGroupDirective,
1327
+ TuiHideSelectedPipe,
1328
+ TuiNativeMultiSelectComponent,
1329
+ TuiNativeMultiSelectGroupComponent,
1330
+ TuiMultiSelectDirective,
1331
+ ],
1332
+ exports: [
1333
+ TuiMultiSelectComponent,
1334
+ TuiMultiSelectGroupComponent,
1335
+ TuiMultiSelectGroupDirective,
1336
+ TuiHideSelectedPipe,
1337
+ TuiMultiSelectDirective,
1338
+ TuiNativeMultiSelectComponent,
1339
+ TuiNativeMultiSelectGroupComponent,
1340
+ ],
1341
+ }]
1342
+ }] });
1197
1343
 
1198
- /**
1199
- * Generated bundle index. Do not edit.
1200
- */
1344
+ /**
1345
+ * Generated bundle index. Do not edit.
1346
+ */
1201
1347
 
1202
- exports.AbstractTuiNativeMultiSelect = AbstractTuiNativeMultiSelect;
1203
- exports.TUI_MULTI_SELECT_DEFAULT_OPTIONS = TUI_MULTI_SELECT_DEFAULT_OPTIONS;
1204
- exports.TUI_MULTI_SELECT_OPTION = TUI_MULTI_SELECT_OPTION;
1205
- exports.TUI_MULTI_SELECT_OPTIONS = TUI_MULTI_SELECT_OPTIONS;
1206
- exports.TuiHideSelectedPipe = TuiHideSelectedPipe;
1207
- exports.TuiMultiSelectComponent = TuiMultiSelectComponent;
1208
- exports.TuiMultiSelectDirective = TuiMultiSelectDirective;
1209
- exports.TuiMultiSelectGroupComponent = TuiMultiSelectGroupComponent;
1210
- exports.TuiMultiSelectGroupDirective = TuiMultiSelectGroupDirective;
1211
- exports.TuiMultiSelectModule = TuiMultiSelectModule;
1212
- exports.TuiNativeMultiSelectComponent = TuiNativeMultiSelectComponent;
1213
- exports.TuiNativeMultiSelectGroupComponent = TuiNativeMultiSelectGroupComponent;
1214
- exports.tuiMultiSelectOptionsProvider = tuiMultiSelectOptionsProvider;
1348
+ exports.AbstractTuiNativeMultiSelect = AbstractTuiNativeMultiSelect;
1349
+ exports.TUI_MULTI_SELECT_DEFAULT_OPTIONS = TUI_MULTI_SELECT_DEFAULT_OPTIONS;
1350
+ exports.TUI_MULTI_SELECT_OPTION = TUI_MULTI_SELECT_OPTION;
1351
+ exports.TUI_MULTI_SELECT_OPTIONS = TUI_MULTI_SELECT_OPTIONS;
1352
+ exports.TuiHideSelectedPipe = TuiHideSelectedPipe;
1353
+ exports.TuiMultiSelectComponent = TuiMultiSelectComponent;
1354
+ exports.TuiMultiSelectDirective = TuiMultiSelectDirective;
1355
+ exports.TuiMultiSelectGroupComponent = TuiMultiSelectGroupComponent;
1356
+ exports.TuiMultiSelectGroupDirective = TuiMultiSelectGroupDirective;
1357
+ exports.TuiMultiSelectModule = TuiMultiSelectModule;
1358
+ exports.TuiNativeMultiSelectComponent = TuiNativeMultiSelectComponent;
1359
+ exports.TuiNativeMultiSelectGroupComponent = TuiNativeMultiSelectGroupComponent;
1360
+ exports.tuiMultiSelectOptionsProvider = tuiMultiSelectOptionsProvider;
1215
1361
 
1216
- Object.defineProperty(exports, '__esModule', { value: true });
1362
+ Object.defineProperty(exports, '__esModule', { value: true });
1217
1363
 
1218
1364
  }));
1219
1365
  //# sourceMappingURL=taiga-ui-kit-components-multi-select.umd.js.map