@taiga-ui/kit 3.59.0 → 3.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/bundles/taiga-ui-kit-components-accordion.umd.js +774 -628
  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 +821 -675
  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 +808 -662
  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 +849 -703
  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 +973 -827
  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 +1026 -880
  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 +976 -830
  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 +1102 -956
  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 +1021 -875
  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 +706 -560
  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 +1337 -1191
  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 +580 -434
  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 +769 -623
  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 +6 -6
@@ -1,974 +1,1120 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit/providers'), require('rxjs/operators'), require('@taiga-ui/kit/components/tag'), require('@angular/common'), require('@tinkoff/ng-polymorpheus'), require('rxjs')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/input-tag', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit/providers', 'rxjs/operators', '@taiga-ui/kit/components/tag', '@angular/common', '@tinkoff/ng-polymorpheus', 'rxjs'], 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["input-tag"] = {}), global.ng.core, global.ng.forms, global.i4, global.i1, global["taiga-ui"].kit.providers, global.rxjs.operators, global["taiga-ui"].kit.components.tag, global.ng.common, global.i5, global.rxjs));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit/providers'), require('rxjs/operators'), require('@taiga-ui/kit/components/tag'), require('@angular/common'), require('@tinkoff/ng-polymorpheus'), require('rxjs')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/input-tag', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit/providers', 'rxjs/operators', '@taiga-ui/kit/components/tag', '@angular/common', '@tinkoff/ng-polymorpheus', 'rxjs'], 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["input-tag"] = {}), global.ng.core, global.ng.forms, global.i4, global.i1, global["taiga-ui"].kit.providers, global.rxjs.operators, global["taiga-ui"].kit.components.tag, global.ng.common, global.i5, global.rxjs));
5
5
  })(this, (function (exports, i0, i6, i4, i1, providers, operators, i2, i3, i5, i7) { '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 i6__namespace = /*#__PURE__*/_interopNamespace(i6);
27
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
28
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
31
- var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
32
- var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
27
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
28
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
31
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
32
+ var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
33
33
 
34
- /*! *****************************************************************************
35
- Copyright (c) Microsoft Corporation.
34
+ /******************************************************************************
35
+ Copyright (c) Microsoft Corporation.
36
36
 
37
- Permission to use, copy, modify, and/or distribute this software for any
38
- purpose with or without fee is hereby granted.
37
+ Permission to use, copy, modify, and/or distribute this software for any
38
+ purpose with or without fee is hereby granted.
39
39
 
40
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
41
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
42
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
43
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
44
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
45
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
46
- PERFORMANCE OF THIS SOFTWARE.
47
- ***************************************************************************** */
48
- /* global Reflect, Promise */
49
- var extendStatics = function (d, b) {
50
- extendStatics = Object.setPrototypeOf ||
51
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
52
- function (d, b) { for (var p in b)
53
- if (Object.prototype.hasOwnProperty.call(b, p))
54
- d[p] = b[p]; };
55
- return extendStatics(d, b);
56
- };
57
- function __extends(d, b) {
58
- if (typeof b !== "function" && b !== null)
59
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
60
- extendStatics(d, b);
61
- function __() { this.constructor = d; }
62
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
63
- }
64
- var __assign = function () {
65
- __assign = Object.assign || function __assign(t) {
66
- for (var s, i = 1, n = arguments.length; i < n; i++) {
67
- s = arguments[i];
68
- for (var p in s)
69
- if (Object.prototype.hasOwnProperty.call(s, p))
70
- t[p] = s[p];
71
- }
72
- return t;
73
- };
74
- return __assign.apply(this, arguments);
75
- };
76
- function __rest(s, e) {
77
- var t = {};
78
- for (var p in s)
79
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
80
- t[p] = s[p];
81
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
82
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
83
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
84
- t[p[i]] = s[p[i]];
85
- }
86
- return t;
87
- }
88
- function __decorate(decorators, target, key, desc) {
89
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
90
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
91
- r = Reflect.decorate(decorators, target, key, desc);
92
- else
93
- for (var i = decorators.length - 1; i >= 0; i--)
94
- if (d = decorators[i])
95
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
96
- return c > 3 && r && Object.defineProperty(target, key, r), r;
97
- }
98
- function __param(paramIndex, decorator) {
99
- return function (target, key) { decorator(target, key, paramIndex); };
100
- }
101
- function __metadata(metadataKey, metadataValue) {
102
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
103
- return Reflect.metadata(metadataKey, metadataValue);
104
- }
105
- function __awaiter(thisArg, _arguments, P, generator) {
106
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
107
- return new (P || (P = Promise))(function (resolve, reject) {
108
- function fulfilled(value) { try {
109
- step(generator.next(value));
110
- }
111
- catch (e) {
112
- reject(e);
113
- } }
114
- function rejected(value) { try {
115
- step(generator["throw"](value));
116
- }
117
- catch (e) {
118
- reject(e);
119
- } }
120
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
121
- step((generator = generator.apply(thisArg, _arguments || [])).next());
122
- });
123
- }
124
- function __generator(thisArg, body) {
125
- var _ = { label: 0, sent: function () { if (t[0] & 1)
126
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
127
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
128
- function verb(n) { return function (v) { return step([n, v]); }; }
129
- function step(op) {
130
- if (f)
131
- throw new TypeError("Generator is already executing.");
132
- while (_)
133
- try {
134
- 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)
135
- return t;
136
- if (y = 0, t)
137
- op = [op[0] & 2, t.value];
138
- switch (op[0]) {
139
- case 0:
140
- case 1:
141
- t = op;
142
- break;
143
- case 4:
144
- _.label++;
145
- return { value: op[1], done: false };
146
- case 5:
147
- _.label++;
148
- y = op[1];
149
- op = [0];
150
- continue;
151
- case 7:
152
- op = _.ops.pop();
153
- _.trys.pop();
154
- continue;
155
- default:
156
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
157
- _ = 0;
158
- continue;
159
- }
160
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
161
- _.label = op[1];
162
- break;
163
- }
164
- if (op[0] === 6 && _.label < t[1]) {
165
- _.label = t[1];
166
- t = op;
167
- break;
168
- }
169
- if (t && _.label < t[2]) {
170
- _.label = t[2];
171
- _.ops.push(op);
172
- break;
173
- }
174
- if (t[2])
175
- _.ops.pop();
176
- _.trys.pop();
177
- continue;
178
- }
179
- op = body.call(thisArg, _);
180
- }
181
- catch (e) {
182
- op = [6, e];
183
- y = 0;
184
- }
185
- finally {
186
- f = t = 0;
187
- }
188
- if (op[0] & 5)
189
- throw op[1];
190
- return { value: op[0] ? op[1] : void 0, done: true };
191
- }
192
- }
193
- var __createBinding = Object.create ? (function (o, m, k, k2) {
194
- if (k2 === undefined)
195
- k2 = k;
196
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
197
- }) : (function (o, m, k, k2) {
198
- if (k2 === undefined)
199
- k2 = k;
200
- o[k2] = m[k];
201
- });
202
- function __exportStar(m, o) {
203
- for (var p in m)
204
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
205
- __createBinding(o, m, p);
206
- }
207
- function __values(o) {
208
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
209
- if (m)
210
- return m.call(o);
211
- if (o && typeof o.length === "number")
212
- return {
213
- next: function () {
214
- if (o && i >= o.length)
215
- o = void 0;
216
- return { value: o && o[i++], done: !o };
217
- }
218
- };
219
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
220
- }
221
- function __read(o, n) {
222
- var m = typeof Symbol === "function" && o[Symbol.iterator];
223
- if (!m)
224
- return o;
225
- var i = m.call(o), r, ar = [], e;
226
- try {
227
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
228
- ar.push(r.value);
229
- }
230
- catch (error) {
231
- e = { error: error };
232
- }
233
- finally {
234
- try {
235
- if (r && !r.done && (m = i["return"]))
236
- m.call(i);
237
- }
238
- finally {
239
- if (e)
240
- throw e.error;
241
- }
242
- }
243
- return ar;
244
- }
245
- /** @deprecated */
246
- function __spread() {
247
- for (var ar = [], i = 0; i < arguments.length; i++)
248
- ar = ar.concat(__read(arguments[i]));
249
- return ar;
250
- }
251
- /** @deprecated */
252
- function __spreadArrays() {
253
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
254
- s += arguments[i].length;
255
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
256
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
257
- r[k] = a[j];
258
- return r;
259
- }
260
- function __spreadArray(to, from, pack) {
261
- if (pack || arguments.length === 2)
262
- for (var i = 0, l = from.length, ar; i < l; i++) {
263
- if (ar || !(i in from)) {
264
- if (!ar)
265
- ar = Array.prototype.slice.call(from, 0, i);
266
- ar[i] = from[i];
267
- }
268
- }
269
- return to.concat(ar || from);
270
- }
271
- function __await(v) {
272
- return this instanceof __await ? (this.v = v, this) : new __await(v);
273
- }
274
- function __asyncGenerator(thisArg, _arguments, generator) {
275
- if (!Symbol.asyncIterator)
276
- throw new TypeError("Symbol.asyncIterator is not defined.");
277
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
278
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
279
- function verb(n) { if (g[n])
280
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
281
- function resume(n, v) { try {
282
- step(g[n](v));
283
- }
284
- catch (e) {
285
- settle(q[0][3], e);
286
- } }
287
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
288
- function fulfill(value) { resume("next", value); }
289
- function reject(value) { resume("throw", value); }
290
- function settle(f, v) { if (f(v), q.shift(), q.length)
291
- resume(q[0][0], q[0][1]); }
292
- }
293
- function __asyncDelegator(o) {
294
- var i, p;
295
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
296
- 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; }
297
- }
298
- function __asyncValues(o) {
299
- if (!Symbol.asyncIterator)
300
- throw new TypeError("Symbol.asyncIterator is not defined.");
301
- var m = o[Symbol.asyncIterator], i;
302
- 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);
303
- 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); }); }; }
304
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
305
- }
306
- function __makeTemplateObject(cooked, raw) {
307
- if (Object.defineProperty) {
308
- Object.defineProperty(cooked, "raw", { value: raw });
309
- }
310
- else {
311
- cooked.raw = raw;
312
- }
313
- return cooked;
314
- }
315
- ;
316
- var __setModuleDefault = Object.create ? (function (o, v) {
317
- Object.defineProperty(o, "default", { enumerable: true, value: v });
318
- }) : function (o, v) {
319
- o["default"] = v;
320
- };
321
- function __importStar(mod) {
322
- if (mod && mod.__esModule)
323
- return mod;
324
- var result = {};
325
- if (mod != null)
326
- for (var k in mod)
327
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
328
- __createBinding(result, mod, k);
329
- __setModuleDefault(result, mod);
330
- return result;
331
- }
332
- function __importDefault(mod) {
333
- return (mod && mod.__esModule) ? mod : { default: mod };
334
- }
335
- function __classPrivateFieldGet(receiver, state, kind, f) {
336
- if (kind === "a" && !f)
337
- throw new TypeError("Private accessor was defined without a getter");
338
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
339
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
340
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
341
- }
342
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
343
- if (kind === "m")
344
- throw new TypeError("Private method is not writable");
345
- if (kind === "a" && !f)
346
- throw new TypeError("Private accessor was defined without a setter");
347
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
348
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
349
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
350
- }
40
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
41
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
42
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
43
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
44
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
45
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
46
+ PERFORMANCE OF THIS SOFTWARE.
47
+ ***************************************************************************** */
48
+ /* global Reflect, Promise, SuppressedError, Symbol */
49
+ var extendStatics = function (d, b) {
50
+ extendStatics = Object.setPrototypeOf ||
51
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
52
+ function (d, b) { for (var p in b)
53
+ if (Object.prototype.hasOwnProperty.call(b, p))
54
+ d[p] = b[p]; };
55
+ return extendStatics(d, b);
56
+ };
57
+ function __extends(d, b) {
58
+ if (typeof b !== "function" && b !== null)
59
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
60
+ extendStatics(d, b);
61
+ function __() { this.constructor = d; }
62
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
63
+ }
64
+ var __assign = function () {
65
+ __assign = Object.assign || function __assign(t) {
66
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
67
+ s = arguments[i];
68
+ for (var p in s)
69
+ if (Object.prototype.hasOwnProperty.call(s, p))
70
+ t[p] = s[p];
71
+ }
72
+ return t;
73
+ };
74
+ return __assign.apply(this, arguments);
75
+ };
76
+ function __rest(s, e) {
77
+ var t = {};
78
+ for (var p in s)
79
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
80
+ t[p] = s[p];
81
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
82
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
83
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
84
+ t[p[i]] = s[p[i]];
85
+ }
86
+ return t;
87
+ }
88
+ function __decorate(decorators, target, key, desc) {
89
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
90
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
91
+ r = Reflect.decorate(decorators, target, key, desc);
92
+ else
93
+ for (var i = decorators.length - 1; i >= 0; i--)
94
+ if (d = decorators[i])
95
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
96
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
97
+ }
98
+ function __param(paramIndex, decorator) {
99
+ return function (target, key) { decorator(target, key, paramIndex); };
100
+ }
101
+ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
102
+ function accept(f) { if (f !== void 0 && typeof f !== "function")
103
+ throw new TypeError("Function expected"); return f; }
104
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
105
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
106
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
107
+ var _, done = false;
108
+ for (var i = decorators.length - 1; i >= 0; i--) {
109
+ var context = {};
110
+ for (var p in contextIn)
111
+ context[p] = p === "access" ? {} : contextIn[p];
112
+ for (var p in contextIn.access)
113
+ context.access[p] = contextIn.access[p];
114
+ context.addInitializer = function (f) { if (done)
115
+ throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
116
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
117
+ if (kind === "accessor") {
118
+ if (result === void 0)
119
+ continue;
120
+ if (result === null || typeof result !== "object")
121
+ throw new TypeError("Object expected");
122
+ if (_ = accept(result.get))
123
+ descriptor.get = _;
124
+ if (_ = accept(result.set))
125
+ descriptor.set = _;
126
+ if (_ = accept(result.init))
127
+ initializers.unshift(_);
128
+ }
129
+ else if (_ = accept(result)) {
130
+ if (kind === "field")
131
+ initializers.unshift(_);
132
+ else
133
+ descriptor[key] = _;
134
+ }
135
+ }
136
+ if (target)
137
+ Object.defineProperty(target, contextIn.name, descriptor);
138
+ done = true;
139
+ }
140
+ ;
141
+ function __runInitializers(thisArg, initializers, value) {
142
+ var useValue = arguments.length > 2;
143
+ for (var i = 0; i < initializers.length; i++) {
144
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
145
+ }
146
+ return useValue ? value : void 0;
147
+ }
148
+ ;
149
+ function __propKey(x) {
150
+ return typeof x === "symbol" ? x : "".concat(x);
151
+ }
152
+ ;
153
+ function __setFunctionName(f, name, prefix) {
154
+ if (typeof name === "symbol")
155
+ name = name.description ? "[".concat(name.description, "]") : "";
156
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
157
+ }
158
+ ;
159
+ function __metadata(metadataKey, metadataValue) {
160
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
161
+ return Reflect.metadata(metadataKey, metadataValue);
162
+ }
163
+ function __awaiter(thisArg, _arguments, P, generator) {
164
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
165
+ return new (P || (P = Promise))(function (resolve, reject) {
166
+ function fulfilled(value) { try {
167
+ step(generator.next(value));
168
+ }
169
+ catch (e) {
170
+ reject(e);
171
+ } }
172
+ function rejected(value) { try {
173
+ step(generator["throw"](value));
174
+ }
175
+ catch (e) {
176
+ reject(e);
177
+ } }
178
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
179
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
180
+ });
181
+ }
182
+ function __generator(thisArg, body) {
183
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
184
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
185
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
186
+ function verb(n) { return function (v) { return step([n, v]); }; }
187
+ function step(op) {
188
+ if (f)
189
+ throw new TypeError("Generator is already executing.");
190
+ while (g && (g = 0, op[0] && (_ = 0)), _)
191
+ try {
192
+ 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)
193
+ return t;
194
+ if (y = 0, t)
195
+ op = [op[0] & 2, t.value];
196
+ switch (op[0]) {
197
+ case 0:
198
+ case 1:
199
+ t = op;
200
+ break;
201
+ case 4:
202
+ _.label++;
203
+ return { value: op[1], done: false };
204
+ case 5:
205
+ _.label++;
206
+ y = op[1];
207
+ op = [0];
208
+ continue;
209
+ case 7:
210
+ op = _.ops.pop();
211
+ _.trys.pop();
212
+ continue;
213
+ default:
214
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
215
+ _ = 0;
216
+ continue;
217
+ }
218
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
219
+ _.label = op[1];
220
+ break;
221
+ }
222
+ if (op[0] === 6 && _.label < t[1]) {
223
+ _.label = t[1];
224
+ t = op;
225
+ break;
226
+ }
227
+ if (t && _.label < t[2]) {
228
+ _.label = t[2];
229
+ _.ops.push(op);
230
+ break;
231
+ }
232
+ if (t[2])
233
+ _.ops.pop();
234
+ _.trys.pop();
235
+ continue;
236
+ }
237
+ op = body.call(thisArg, _);
238
+ }
239
+ catch (e) {
240
+ op = [6, e];
241
+ y = 0;
242
+ }
243
+ finally {
244
+ f = t = 0;
245
+ }
246
+ if (op[0] & 5)
247
+ throw op[1];
248
+ return { value: op[0] ? op[1] : void 0, done: true };
249
+ }
250
+ }
251
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
252
+ if (k2 === undefined)
253
+ k2 = k;
254
+ var desc = Object.getOwnPropertyDescriptor(m, k);
255
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
256
+ desc = { enumerable: true, get: function () { return m[k]; } };
257
+ }
258
+ Object.defineProperty(o, k2, desc);
259
+ }) : (function (o, m, k, k2) {
260
+ if (k2 === undefined)
261
+ k2 = k;
262
+ o[k2] = m[k];
263
+ });
264
+ function __exportStar(m, o) {
265
+ for (var p in m)
266
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
267
+ __createBinding(o, m, p);
268
+ }
269
+ function __values(o) {
270
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
271
+ if (m)
272
+ return m.call(o);
273
+ if (o && typeof o.length === "number")
274
+ return {
275
+ next: function () {
276
+ if (o && i >= o.length)
277
+ o = void 0;
278
+ return { value: o && o[i++], done: !o };
279
+ }
280
+ };
281
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
282
+ }
283
+ function __read(o, n) {
284
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
285
+ if (!m)
286
+ return o;
287
+ var i = m.call(o), r, ar = [], e;
288
+ try {
289
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
290
+ ar.push(r.value);
291
+ }
292
+ catch (error) {
293
+ e = { error: error };
294
+ }
295
+ finally {
296
+ try {
297
+ if (r && !r.done && (m = i["return"]))
298
+ m.call(i);
299
+ }
300
+ finally {
301
+ if (e)
302
+ throw e.error;
303
+ }
304
+ }
305
+ return ar;
306
+ }
307
+ /** @deprecated */
308
+ function __spread() {
309
+ for (var ar = [], i = 0; i < arguments.length; i++)
310
+ ar = ar.concat(__read(arguments[i]));
311
+ return ar;
312
+ }
313
+ /** @deprecated */
314
+ function __spreadArrays() {
315
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
316
+ s += arguments[i].length;
317
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
318
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
319
+ r[k] = a[j];
320
+ return r;
321
+ }
322
+ function __spreadArray(to, from, pack) {
323
+ if (pack || arguments.length === 2)
324
+ for (var i = 0, l = from.length, ar; i < l; i++) {
325
+ if (ar || !(i in from)) {
326
+ if (!ar)
327
+ ar = Array.prototype.slice.call(from, 0, i);
328
+ ar[i] = from[i];
329
+ }
330
+ }
331
+ return to.concat(ar || Array.prototype.slice.call(from));
332
+ }
333
+ function __await(v) {
334
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
335
+ }
336
+ function __asyncGenerator(thisArg, _arguments, generator) {
337
+ if (!Symbol.asyncIterator)
338
+ throw new TypeError("Symbol.asyncIterator is not defined.");
339
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
340
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
341
+ function verb(n) { if (g[n])
342
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
343
+ function resume(n, v) { try {
344
+ step(g[n](v));
345
+ }
346
+ catch (e) {
347
+ settle(q[0][3], e);
348
+ } }
349
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
350
+ function fulfill(value) { resume("next", value); }
351
+ function reject(value) { resume("throw", value); }
352
+ function settle(f, v) { if (f(v), q.shift(), q.length)
353
+ resume(q[0][0], q[0][1]); }
354
+ }
355
+ function __asyncDelegator(o) {
356
+ var i, p;
357
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
358
+ 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; }
359
+ }
360
+ function __asyncValues(o) {
361
+ if (!Symbol.asyncIterator)
362
+ throw new TypeError("Symbol.asyncIterator is not defined.");
363
+ var m = o[Symbol.asyncIterator], i;
364
+ 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);
365
+ 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); }); }; }
366
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
367
+ }
368
+ function __makeTemplateObject(cooked, raw) {
369
+ if (Object.defineProperty) {
370
+ Object.defineProperty(cooked, "raw", { value: raw });
371
+ }
372
+ else {
373
+ cooked.raw = raw;
374
+ }
375
+ return cooked;
376
+ }
377
+ ;
378
+ var __setModuleDefault = Object.create ? (function (o, v) {
379
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
380
+ }) : function (o, v) {
381
+ o["default"] = v;
382
+ };
383
+ function __importStar(mod) {
384
+ if (mod && mod.__esModule)
385
+ return mod;
386
+ var result = {};
387
+ if (mod != null)
388
+ for (var k in mod)
389
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
390
+ __createBinding(result, mod, k);
391
+ __setModuleDefault(result, mod);
392
+ return result;
393
+ }
394
+ function __importDefault(mod) {
395
+ return (mod && mod.__esModule) ? mod : { default: mod };
396
+ }
397
+ function __classPrivateFieldGet(receiver, state, kind, f) {
398
+ if (kind === "a" && !f)
399
+ throw new TypeError("Private accessor was defined without a getter");
400
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
401
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
402
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
403
+ }
404
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
405
+ if (kind === "m")
406
+ throw new TypeError("Private method is not writable");
407
+ if (kind === "a" && !f)
408
+ throw new TypeError("Private accessor was defined without a setter");
409
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
410
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
411
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
412
+ }
413
+ function __classPrivateFieldIn(state, receiver) {
414
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
415
+ throw new TypeError("Cannot use 'in' operator on non-object");
416
+ return typeof state === "function" ? receiver === state : state.has(receiver);
417
+ }
418
+ function __addDisposableResource(env, value, async) {
419
+ if (value !== null && value !== void 0) {
420
+ if (typeof value !== "object" && typeof value !== "function")
421
+ throw new TypeError("Object expected.");
422
+ var dispose;
423
+ if (async) {
424
+ if (!Symbol.asyncDispose)
425
+ throw new TypeError("Symbol.asyncDispose is not defined.");
426
+ dispose = value[Symbol.asyncDispose];
427
+ }
428
+ if (dispose === void 0) {
429
+ if (!Symbol.dispose)
430
+ throw new TypeError("Symbol.dispose is not defined.");
431
+ dispose = value[Symbol.dispose];
432
+ }
433
+ if (typeof dispose !== "function")
434
+ throw new TypeError("Object not disposable.");
435
+ env.stack.push({ value: value, dispose: dispose, async: async });
436
+ }
437
+ else if (async) {
438
+ env.stack.push({ async: true });
439
+ }
440
+ return value;
441
+ }
442
+ var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
443
+ var e = new Error(message);
444
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
445
+ };
446
+ function __disposeResources(env) {
447
+ function fail(e) {
448
+ env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
449
+ env.hasError = true;
450
+ }
451
+ function next() {
452
+ while (env.stack.length) {
453
+ var rec = env.stack.pop();
454
+ try {
455
+ var result = rec.dispose && rec.dispose.call(rec.value);
456
+ if (rec.async)
457
+ return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
458
+ }
459
+ catch (e) {
460
+ fail(e);
461
+ }
462
+ }
463
+ if (env.hasError)
464
+ throw env.error;
465
+ }
466
+ return next();
467
+ }
468
+ var tslib_es6 = {
469
+ __extends: __extends,
470
+ __assign: __assign,
471
+ __rest: __rest,
472
+ __decorate: __decorate,
473
+ __param: __param,
474
+ __metadata: __metadata,
475
+ __awaiter: __awaiter,
476
+ __generator: __generator,
477
+ __createBinding: __createBinding,
478
+ __exportStar: __exportStar,
479
+ __values: __values,
480
+ __read: __read,
481
+ __spread: __spread,
482
+ __spreadArrays: __spreadArrays,
483
+ __spreadArray: __spreadArray,
484
+ __await: __await,
485
+ __asyncGenerator: __asyncGenerator,
486
+ __asyncDelegator: __asyncDelegator,
487
+ __asyncValues: __asyncValues,
488
+ __makeTemplateObject: __makeTemplateObject,
489
+ __importStar: __importStar,
490
+ __importDefault: __importDefault,
491
+ __classPrivateFieldGet: __classPrivateFieldGet,
492
+ __classPrivateFieldSet: __classPrivateFieldSet,
493
+ __classPrivateFieldIn: __classPrivateFieldIn,
494
+ __addDisposableResource: __addDisposableResource,
495
+ __disposeResources: __disposeResources,
496
+ };
351
497
 
352
- var TUI_INPUT_TAG_DEFAULT_OPTIONS = {
353
- separator: ",",
354
- uniqueTags: true,
355
- tagStatus: "primary",
356
- };
357
- /**
358
- * Default parameters for InputTag component
359
- */
360
- var TUI_INPUT_TAG_OPTIONS = i4.tuiCreateToken(TUI_INPUT_TAG_DEFAULT_OPTIONS);
361
- function tuiInputTagOptionsProvider(options) {
362
- return i4.tuiProvideOptions(TUI_INPUT_TAG_OPTIONS, options, TUI_INPUT_TAG_DEFAULT_OPTIONS);
363
- }
498
+ var TUI_INPUT_TAG_DEFAULT_OPTIONS = {
499
+ separator: ",",
500
+ uniqueTags: true,
501
+ tagStatus: "primary",
502
+ };
503
+ /**
504
+ * Default parameters for InputTag component
505
+ */
506
+ var TUI_INPUT_TAG_OPTIONS = i4.tuiCreateToken(TUI_INPUT_TAG_DEFAULT_OPTIONS);
507
+ function tuiInputTagOptionsProvider(options) {
508
+ return i4.tuiProvideOptions(TUI_INPUT_TAG_OPTIONS, options, TUI_INPUT_TAG_DEFAULT_OPTIONS);
509
+ }
364
510
 
365
- var TAG_SIZE_REM = {
366
- s: 1.25,
367
- m: 1.5,
368
- l: 2,
369
- };
370
- var LINE_HEIGHT_REM = {
371
- s: 1,
372
- m: 1.25,
373
- l: 1.25,
374
- };
375
- var TAG_VERTICAL_SPACE_REM = 0.125;
376
- var TuiInputTagComponent = /** @class */ (function (_super) {
377
- __extends(TuiInputTagComponent, _super);
378
- function TuiInputTagComponent(control, cdr, el, modeDirective, mode$, hintOptions, controller, options, icons) {
379
- var _this = _super.call(this, control, cdr) || this;
380
- _this.el = el;
381
- _this.modeDirective = modeDirective;
382
- _this.mode$ = mode$;
383
- _this.hintOptions = hintOptions;
384
- _this.controller = controller;
385
- _this.options = options;
386
- _this.icons = icons;
387
- _this.tags = i4.EMPTY_QUERY;
388
- _this.separator = _this.options.separator;
389
- _this.search = '';
390
- _this.editable = true;
391
- _this.tagValidator = i4.ALWAYS_TRUE_HANDLER;
392
- // TODO: 4.0 Consider removing and use rows = 1 instead
393
- _this.expandable = true;
394
- _this.rows = Infinity;
395
- _this.inputHidden = false;
396
- _this.uniqueTags = _this.options.uniqueTags;
397
- _this.maxLength = null;
398
- _this.placeholder = '';
399
- _this.removable = true;
400
- _this.disabledItemHandler = i4.ALWAYS_FALSE_HANDLER;
401
- _this.searchChange = new i0.EventEmitter();
402
- _this.status$ = _this.mode$.pipe(operators.map(function () { return _this.status; }));
403
- _this.open = false;
404
- return _this;
405
- }
406
- Object.defineProperty(TuiInputTagComponent.prototype, "pseudoFocusedSetter", {
407
- set: function (value) {
408
- if (!value && !this.focused) {
409
- this.scrollTo(0);
410
- }
411
- this.pseudoFocus = value;
412
- },
413
- enumerable: false,
414
- configurable: true
415
- });
416
- Object.defineProperty(TuiInputTagComponent.prototype, "nativeFocusableElement", {
417
- get: function () {
418
- return !this.focusableElement || this.computedDisabled
419
- ? null
420
- : this.focusableElement.nativeElement;
421
- },
422
- enumerable: false,
423
- configurable: true
424
- });
425
- Object.defineProperty(TuiInputTagComponent.prototype, "focused", {
426
- get: function () {
427
- var _a;
428
- return (i4.tuiIsNativeFocusedIn(this.el.nativeElement) || !!((_a = this.hostedDropdown) === null || _a === void 0 ? void 0 : _a.focused));
429
- },
430
- enumerable: false,
431
- configurable: true
432
- });
433
- Object.defineProperty(TuiInputTagComponent.prototype, "appearance", {
434
- get: function () {
435
- return this.controller.appearance;
436
- },
437
- enumerable: false,
438
- configurable: true
439
- });
440
- Object.defineProperty(TuiInputTagComponent.prototype, "size", {
441
- get: function () {
442
- return this.controller.size;
443
- },
444
- enumerable: false,
445
- configurable: true
446
- });
447
- Object.defineProperty(TuiInputTagComponent.prototype, "labelOutside", {
448
- get: function () {
449
- var _c = this.controller, size = _c.size, labelOutside = _c.labelOutside;
450
- return size === 's' || labelOutside;
451
- },
452
- enumerable: false,
453
- configurable: true
454
- });
455
- Object.defineProperty(TuiInputTagComponent.prototype, "iconLeft", {
456
- get: function () {
457
- return this.controller.iconLeft;
458
- },
459
- enumerable: false,
460
- configurable: true
461
- });
462
- Object.defineProperty(TuiInputTagComponent.prototype, "icon", {
463
- get: function () {
464
- return this.controller.icon;
465
- },
466
- enumerable: false,
467
- configurable: true
468
- });
469
- Object.defineProperty(TuiInputTagComponent.prototype, "iconCleaner", {
470
- get: function () {
471
- return this.controller.options.iconCleaner;
472
- },
473
- enumerable: false,
474
- configurable: true
475
- });
476
- Object.defineProperty(TuiInputTagComponent.prototype, "hasCleaner", {
477
- get: function () {
478
- return this.controller.cleaner && this.hasValue && this.interactive;
479
- },
480
- enumerable: false,
481
- configurable: true
482
- });
483
- Object.defineProperty(TuiInputTagComponent.prototype, "hasNativeValue", {
484
- get: function () {
485
- return !!this.search;
486
- },
487
- enumerable: false,
488
- configurable: true
489
- });
490
- Object.defineProperty(TuiInputTagComponent.prototype, "hasValue", {
491
- get: function () {
492
- return !!this.value.length || this.hasNativeValue;
493
- },
494
- enumerable: false,
495
- configurable: true
496
- });
497
- Object.defineProperty(TuiInputTagComponent.prototype, "hasPlaceholder", {
498
- get: function () {
499
- return (!this.labelOutside ||
500
- (!this.hasValue && (!this.hasExampleText || this.inputHidden)));
501
- },
502
- enumerable: false,
503
- configurable: true
504
- });
505
- Object.defineProperty(TuiInputTagComponent.prototype, "placeholderRaised", {
506
- get: function () {
507
- return (!this.labelOutside &&
508
- ((this.computedFocused && !this.readOnly) || this.hasValue));
509
- },
510
- enumerable: false,
511
- configurable: true
512
- });
513
- Object.defineProperty(TuiInputTagComponent.prototype, "hasExampleText", {
514
- get: function () {
515
- var _a;
516
- return (!!((_a = this.nativeFocusableElement) === null || _a === void 0 ? void 0 : _a.placeholder) &&
517
- this.computedFocused &&
518
- !this.hasValue &&
519
- !this.readOnly);
520
- },
521
- enumerable: false,
522
- configurable: true
523
- });
524
- Object.defineProperty(TuiInputTagComponent.prototype, "hasRightIcons", {
525
- get: function () {
526
- var _a;
527
- return (this.hasCleaner ||
528
- !!this.icon ||
529
- (!!((_a = this.hintOptions) === null || _a === void 0 ? void 0 : _a.content) && !this.computedDisabled));
530
- },
531
- enumerable: false,
532
- configurable: true
533
- });
534
- Object.defineProperty(TuiInputTagComponent.prototype, "showHint", {
535
- get: function () {
536
- var _a;
537
- return (!!((_a = this.hintOptions) === null || _a === void 0 ? void 0 : _a.content) &&
538
- (this.controller.options.hintOnDisabled || !this.computedDisabled));
539
- },
540
- enumerable: false,
541
- configurable: true
542
- });
543
- Object.defineProperty(TuiInputTagComponent.prototype, "status", {
544
- get: function () {
545
- var _a;
546
- return ((_a = this.modeDirective) === null || _a === void 0 ? void 0 : _a.mode) ? 'default' : this.options.tagStatus;
547
- },
548
- enumerable: false,
549
- configurable: true
550
- });
551
- Object.defineProperty(TuiInputTagComponent.prototype, "canOpen", {
552
- get: function () {
553
- return this.interactive && !!this.datalist;
554
- },
555
- enumerable: false,
556
- configurable: true
557
- });
558
- Object.defineProperty(TuiInputTagComponent.prototype, "computeMaxHeight", {
559
- get: function () {
560
- return this.expandable ? this.rows * this.lineHeight : null;
561
- },
562
- enumerable: false,
563
- configurable: true
564
- });
565
- TuiInputTagComponent.prototype.onFocusInOut = function () {
566
- this.cdr.detectChanges();
567
- };
568
- TuiInputTagComponent.prototype.detectRetargetFromLabel = function (event) {
569
- if (i4.tuiRetargetedBoundaryCrossing(event)) {
570
- event.stopImmediatePropagation();
571
- }
572
- };
573
- TuiInputTagComponent.prototype.getLeftContent = function (tag) {
574
- return !this.tagValidator(tag) && this.errorIconTemplate
575
- ? this.errorIconTemplate
576
- : '';
577
- };
578
- TuiInputTagComponent.prototype.onCleanerClick = function () {
579
- this.updateSearch('');
580
- this.clear();
581
- this.focusInput();
582
- };
583
- TuiInputTagComponent.prototype.onActiveZone = function (active) {
584
- this.open = false;
585
- this.addTag();
586
- this.updateFocused(active);
587
- if (!active && !this.computedFocused) {
588
- this.scrollTo(0);
589
- }
590
- };
591
- TuiInputTagComponent.prototype.onMouseDown = function (event) {
592
- var _a;
593
- var actualTarget = i4.tuiGetActualTarget(event);
594
- if (!this.focusableElement ||
595
- actualTarget === this.focusableElement.nativeElement ||
596
- !i4.tuiIsElement(event.target) ||
597
- ((_a = this.cleanerSvg) === null || _a === void 0 ? void 0 : _a.nativeElement.contains(event.target)) ||
598
- (this.tagsContainer &&
599
- actualTarget !== this.tagsContainer.nativeElement &&
600
- this.tagsContainer.nativeElement.contains(actualTarget))) {
601
- return;
602
- }
603
- event.preventDefault();
604
- this.focusInput();
605
- };
606
- TuiInputTagComponent.prototype.onFieldKeyDownBackspace = function (event) {
607
- if (!this.labelOutside && !this.hasNativeValue && this.value.length) {
608
- this.deleteLastEnabledItem();
609
- }
610
- else {
611
- this.onFieldKeyDownArrowLeft(event);
612
- }
613
- };
614
- TuiInputTagComponent.prototype.onFieldKeyDownArrowLeft = function (event) {
615
- if (!this.labelOutside || this.hasNativeValue || !this.value.length) {
616
- return;
617
- }
618
- event.preventDefault();
619
- this.tags.last.nativeElement.focus();
620
- };
621
- TuiInputTagComponent.prototype.onFieldKeyDownEnter = function () {
622
- this.addTag();
623
- this.scrollTo();
624
- };
625
- TuiInputTagComponent.prototype.onTagKeyDownArrowLeft = function (currentIndex) {
626
- if (currentIndex > 0) {
627
- this.onScrollKeyDown(currentIndex, -1);
628
- }
629
- };
630
- TuiInputTagComponent.prototype.onTagKeyDownArrowRight = function (currentIndex) {
631
- if (currentIndex === this.value.length - 1) {
632
- this.focusInput();
633
- }
634
- else {
635
- this.onScrollKeyDown(currentIndex, 1);
636
- }
637
- };
638
- TuiInputTagComponent.prototype.onTagEdited = function (value, index) {
639
- var _this = this;
640
- this.focusInput(value === '');
641
- this.value = this.filterValue(this.value
642
- .map(function (tag, tagIndex) { return tagIndex !== index
643
- ? tag
644
- : value
645
- .split(_this.separator)
646
- .map(function (tag) { return tag.trim(); })
647
- .filter(Boolean); })
648
- .reduce(function (result, item) { return result.concat(item); }, []));
649
- };
650
- TuiInputTagComponent.prototype.handleOption = function (item) {
651
- this.focusInput();
652
- this.updateSearch('');
653
- this.value = this.filterValue(this.value.concat(item));
654
- this.open = false;
655
- this.scrollTo();
656
- };
657
- TuiInputTagComponent.prototype.onInput = function (value) {
658
- var _this = this;
659
- var array = value.split(this.separator);
660
- var tags = array
661
- .map(function (item) { return _this.clippedValue(item.trim()); })
662
- .filter(function (item, index, _c) {
663
- var length = _c.length;
664
- return item.length > 0 && index !== length - 1;
665
- });
666
- var validated = tags.filter(function (tag) { return !_this.disabledItemHandler(tag); });
667
- if (array.length > 1) {
668
- this.updateSearch(this.clippedValue(array[array.length - 1].trim()));
669
- this.value = this.filterValue(__spreadArray(__spreadArray([], __read(this.value)), __read(validated)));
670
- }
671
- else {
672
- this.updateSearch(this.clippedValue(value));
673
- }
674
- this.open = this.hasNativeValue;
675
- };
676
- TuiInputTagComponent.prototype.onPaste = function (event) {
677
- var pasted = i4.tuiGetClipboardDataText(event);
678
- this.onInput(pasted || '');
679
- };
680
- TuiInputTagComponent.prototype.onDrop = function (_c) {
681
- var dataTransfer = _c.dataTransfer;
682
- if (dataTransfer) {
683
- this.onInput(dataTransfer.getData('text') || '');
684
- }
685
- };
686
- TuiInputTagComponent.prototype.setDisabledState = function () {
687
- _super.prototype.setDisabledState.call(this);
688
- this.open = false;
689
- };
690
- TuiInputTagComponent.prototype.trackByFn = function (_, tag) {
691
- // Actually tag has TuiStringifiableItem type not string
692
- return tag.toString();
693
- };
694
- TuiInputTagComponent.prototype.scrollTo = function (scrollLeft) {
695
- var _this = this;
696
- var _a;
697
- if (scrollLeft === void 0) {
698
- scrollLeft = (_a = this.scrollBar) === null || _a === void 0 ? void 0 : _a.nativeElement.scrollWidth;
699
- }
700
- // Allow change detection to run and add new tag to DOM
701
- setTimeout(function () {
702
- if (_this.scrollBar) {
703
- _this.scrollBar.nativeElement.scrollLeft = scrollLeft || 0;
704
- }
705
- });
706
- };
707
- TuiInputTagComponent.prototype.filterValue = function (value) {
708
- var _this = this;
709
- var seen = new Set();
710
- return value
711
- .reverse()
712
- .filter(function (item) { return !_this.uniqueTags || (item && !seen.has(item) && seen.add(item)); })
713
- .reverse();
714
- };
715
- TuiInputTagComponent.prototype.onScrollKeyDown = function (currentIndex, flag) {
716
- var tag = this.tags.find(function (_item, index) { return index === currentIndex + flag; });
717
- if (!tag || !this.scrollBar) {
718
- return;
719
- }
720
- tag.nativeElement.focus();
721
- if (flag * this.scrollBar.nativeElement.clientWidth -
722
- flag * tag.nativeElement.offsetLeft -
723
- tag.nativeElement.clientWidth <
724
- 0) {
725
- this.scrollBar.nativeElement.scrollLeft +=
726
- flag * tag.nativeElement.clientWidth;
727
- }
728
- };
729
- TuiInputTagComponent.prototype.updateSearch = function (value) {
730
- if (this.focusableElement) {
731
- this.focusableElement.nativeElement.value = value;
732
- }
733
- this.search = value;
734
- this.searchChange.emit(value);
735
- };
736
- TuiInputTagComponent.prototype.addTag = function () {
737
- var _a, _b;
738
- var inputValue = (_b = (_a = this.search) === null || _a === void 0 ? void 0 : _a.trim()) !== null && _b !== void 0 ? _b : '';
739
- if (!inputValue || this.disabledItemHandler(inputValue)) {
740
- return;
741
- }
742
- this.updateSearch('');
743
- this.value = this.filterValue(this.value.concat(inputValue));
744
- };
745
- TuiInputTagComponent.prototype.deleteLastEnabledItem = function () {
746
- for (var index = this.value.length - 1; index >= 0; index--) {
747
- if (!this.disabledItemHandler(this.value[index])) {
748
- this.value = i4.tuiArrayRemove(this.value, index);
749
- break;
750
- }
751
- }
752
- };
753
- TuiInputTagComponent.prototype.focusInput = function (preventScroll) {
754
- if (preventScroll === void 0) { preventScroll = false; }
755
- var _a;
756
- (_a = this.nativeFocusableElement) === null || _a === void 0 ? void 0 : _a.focus({ preventScroll: preventScroll });
757
- };
758
- TuiInputTagComponent.prototype.clippedValue = function (value) {
759
- return value.slice(0, this.maxLength || value.length);
760
- };
761
- Object.defineProperty(TuiInputTagComponent.prototype, "lineHeight", {
762
- get: function () {
763
- return this.labelOutside
764
- ? TAG_SIZE_REM[this.controller.size] + 2 * TAG_VERTICAL_SPACE_REM
765
- : LINE_HEIGHT_REM[this.controller.size];
766
- },
767
- enumerable: false,
768
- configurable: true
769
- });
770
- return TuiInputTagComponent;
771
- }(i4.AbstractTuiMultipleControl));
772
- TuiInputTagComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagComponent, deps: [{ token: i6.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.TuiModeDirective, optional: true }, { token: i1.TUI_MODE }, { token: i1.TuiHintOptionsDirective, optional: true }, { token: i1.TUI_TEXTFIELD_WATCHED_CONTROLLER }, { token: TUI_INPUT_TAG_OPTIONS }, { token: i1.TUI_COMMON_ICONS }], target: i0__namespace.ɵɵFactoryTarget.Component });
773
- TuiInputTagComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputTagComponent, selector: "tui-input-tag", inputs: { separator: "separator", search: "search", editable: "editable", tagValidator: "tagValidator", expandable: "expandable", rows: "rows", inputHidden: "inputHidden", uniqueTags: "uniqueTags", maxLength: "maxLength", placeholder: "placeholder", removable: "removable", disabledItemHandler: "disabledItemHandler", pseudoFocusedSetter: ["pseudoFocused", "pseudoFocusedSetter"] }, outputs: { searchChange: "searchChange" }, host: { listeners: { "focusin.capture.silent": "onFocusInOut()", "focusout.capture.silent": "onFocusInOut()" }, properties: { "class._expandable": "this.expandable", "attr.data-size": "this.size", "class._label-outside": "this.labelOutside", "class._icon-left": "this.iconLeft" } }, providers: [
774
- i4.tuiAsFocusableItemAccessor(TuiInputTagComponent),
775
- i4.tuiAsControl(TuiInputTagComponent),
776
- i1.tuiAsDataListHost(TuiInputTagComponent),
777
- i1.TEXTFIELD_CONTROLLER_PROVIDER,
778
- i1.MODE_PROVIDER,
779
- ], queries: [{ propertyName: "datalist", first: true, predicate: i1.TuiDataListDirective, descendants: true, read: i0.TemplateRef }], viewQueries: [{ propertyName: "hostedDropdown", first: true, predicate: i1.TuiHostedDropdownComponent, descendants: true }, { propertyName: "focusableElement", first: true, predicate: ["focusableElement"], descendants: true }, { propertyName: "tagsContainer", first: true, predicate: ["tagsContainer"], descendants: true }, { propertyName: "cleanerSvg", first: true, predicate: ["cleaner"], descendants: true, read: i0.ElementRef }, { propertyName: "scrollBar", first: true, predicate: i1.TuiScrollbarComponent, descendants: true, read: i0.ElementRef }, { propertyName: "errorIconTemplate", first: true, predicate: ["errorIcon"], descendants: true }, { propertyName: "tags", predicate: ["tag"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngIf=\"hintOptions?.change$ | async\"></ng-container>\n<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"canOpen\"\n [content]=\"datalist || ''\"\n [(open)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <div\n tuiWrapper\n [appearance]=\"appearance\"\n [disabled]=\"computedDisabled\"\n [focus]=\"computedFocused\"\n [hover]=\"pseudoHover\"\n [invalid]=\"computedInvalid\"\n [readOnly]=\"readOnly\"\n (click.prevent.silent)=\"detectRetargetFromLabel($event)\"\n (mousedown)=\"onMouseDown($event)\"\n >\n <div class=\"t-content\">\n <div\n *ngIf=\"iconLeft\"\n class=\"t-icon t-icon_left t-textfield-icon t-icon-wrapper\"\n >\n <tui-svg\n *polymorpheusOutlet=\"iconLeft as src; context: {$implicit: size}\"\n appearance=\"icon\"\n tuiWrapper\n [src]=\"src\"\n ></tui-svg>\n </div>\n <div class=\"t-wrapper\">\n <div class=\"t-absolute-wrapper\">\n <div\n *ngIf=\"hasPlaceholder\"\n automation-id=\"tui-input-tag__placeholder\"\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n <tui-scrollbar\n class=\"t-scrollbar\"\n [hidden]=\"!expandable\"\n [style.maxHeight.rem]=\"computeMaxHeight\"\n >\n <div\n class=\"t-tags\"\n [class.t-tags_empty]=\"(!focused || inputHidden) && !value?.length && !search?.trim()?.length\"\n >\n <ng-container *ngIf=\"labelOutside; else text\">\n <tui-tag\n *ngFor=\"let item of value; index as index; trackBy: trackByFn\"\n #tag\n automation-id=\"tui-input-tag__tag\"\n class=\"t-tag\"\n [disabled]=\"computedDisabled || disabledItemHandler(item)\"\n [editable]=\"editable && !readOnly\"\n [hoverable]=\"!readOnly\"\n [leftContent]=\"getLeftContent(item)\"\n [maxLength]=\"maxLength\"\n [removable]=\"!readOnly && removable\"\n [separator]=\"separator\"\n [size]=\"controller.size\"\n [status]=\"(status$ | async)!\"\n [tuiFocusable]=\"false\"\n [value]=\"item.toString()\"\n (edited)=\"onTagEdited($event, index)\"\n (keydown.arrowLeft.prevent)=\"onTagKeyDownArrowLeft(index)\"\n (keydown.arrowRight.prevent)=\"onTagKeyDownArrowRight(index)\"\n ></tui-tag>\n </ng-container>\n <ng-template #text>\n <span\n *ngFor=\"let item of value\"\n class=\"t-text\"\n [class.t-text_comma]=\"computedFocused && !inputHidden\"\n [class.t-text_disabled]=\"disabledItemHandler(item)\"\n [class.t-text_error]=\"!tagValidator(item)\"\n [textContent]=\"item\"\n ></span>\n </ng-template>\n <div\n class=\"t-input-wrapper\"\n [class.t-input-wrapper_collapsed]=\"computedDisabled || readOnly || inputHidden\"\n >\n <div class=\"t-ghost\">{{ search }}</div>\n <input\n #focusableElement\n automation-id=\"tui-input-tag__native\"\n type=\"text\"\n class=\"t-native\"\n [attr.maxLength]=\"maxLength\"\n [class.t-native_hidden]=\"inputHidden\"\n [disabled]=\"computedDisabled\"\n [id]=\"id\"\n [ngModel]=\"search\"\n [placeholder]=\"placeholder\"\n [readOnly]=\"readOnly || inputHidden\"\n [tuiFocusable]=\"computedFocusable\"\n (drop.prevent)=\"onDrop($any($event))\"\n (keydown.arrowLeft)=\"onFieldKeyDownArrowLeft($event)\"\n (keydown.backspace)=\"onFieldKeyDownBackspace($event)\"\n (keydown.enter.prevent)=\"onFieldKeyDownEnter()\"\n (ngModelChange)=\"onInput($event)\"\n (paste.prevent)=\"onPaste($event)\"\n />\n </div>\n </div>\n <div class=\"t-value-content\">\n <ng-content select=\"tuiContent\"></ng-content>\n </div>\n </tui-scrollbar>\n </div>\n <ng-content select=\"select\"></ng-content>\n <div\n *ngIf=\"hasRightIcons\"\n class=\"t-icons t-icon-wrapper\"\n >\n <ng-container *ngIf=\"hasCleaner\">\n <tui-svg\n *polymorpheusOutlet=\"iconCleaner as src; context: {$implicit: size}\"\n #cleaner\n appearance=\"icon\"\n automation-id=\"tui-input-tag__cleaner\"\n tuiWrapper\n class=\"t-cleaner\"\n [src]=\"src\"\n (click.stop)=\"onCleanerClick()\"\n ></tui-svg>\n </ng-container>\n <tui-tooltip\n *ngIf=\"showHint\"\n automation-id=\"tui-input-tag__tooltip\"\n class=\"t-tooltip\"\n [content]=\"hintOptions?.content\"\n [describeId]=\"id\"\n ></tui-tooltip>\n <div\n *ngIf=\"icon\"\n class=\"t-icon t-textfield-icon\"\n >\n <tui-svg\n *polymorpheusOutlet=\"icon as src; context: {$implicit: size}\"\n appearance=\"icon\"\n tuiWrapper\n [src]=\"src\"\n ></tui-svg>\n </div>\n </div>\n </div>\n <ng-template #errorIcon>\n <tui-svg\n class=\"t-error-icon\"\n [src]=\"icons.error\"\n ></tui-svg>\n </ng-template>\n </div>\n</tui-hosted-dropdown>\n", styles: [":host{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;text-align:left;border-radius:var(--tui-radius-m);height:var(--tui-height);min-height:var(--tui-height);max-height:var(--tui-height)}:host[data-size=s]{--tui-height: var(--tui-height-s)}:host[data-size=m]{--tui-height: var(--tui-height-m)}:host[data-size=l]{--tui-height: var(--tui-height-l);font:var(--tui-font-text-m);line-height:1.25rem}.t-input{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;border-style:solid;border-color:transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}.t-input:-webkit-autofill,.t-input:-webkit-autofill:hover,.t-input:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.t-input:-webkit-autofill,.t-input:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}.t-input::-webkit-caps-lock-indicator,.t-input::-webkit-contacts-auto-fill-button,.t-input::-webkit-credit-card-auto-fill-button,.t-input::-webkit-credentials-auto-fill-button,.t-input::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-input::placeholder{color:var(--tui-text-03);opacity:0}:host._focused:not(._readonly) .t-input::placeholder,:host-context(tui-primitive-textfield._focused:not(._readonly)) .t-input::placeholder,:host-context(tui-textarea._focused:not(._readonly)) .t-input::placeholder,:host-context(tui-text-area._focused:not(._readonly)) .t-input::placeholder{opacity:1}[tuiWrapper][data-mode=onDark] .t-input:-webkit-autofill,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill,[tuiWrapper][data-mode=onDark] .t-input:-webkit-autofill:hover,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill:hover,[tuiWrapper][data-mode=onDark] .t-input:-webkit-autofill:focus,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[tuiWrapper][data-mode=onDark] .t-input::placeholder,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"])::placeholder{color:var(--tui-text-03-night)}:host[data-size=s] .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"s\"]):not(tui-primitive-textfield),.t-input :host-context(tui-textarea[data-size=\"s\"]):not(tui-textarea),.t-input :host-context(tui-text-area[data-size=\"s\"]):not(tui-text-area){padding:0 var(--tui-padding-s)}:host[data-size=m] .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"m\"]):not(tui-primitive-textfield),.t-input :host-context(tui-textarea[data-size=\"m\"]):not(tui-textarea),.t-input :host-context(tui-text-area[data-size=\"m\"]):not(tui-text-area){padding:0 var(--tui-padding-m)}:host[data-size=l] .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"l\"]):not(tui-primitive-textfield),.t-input :host-context(tui-textarea[data-size=\"l\"]):not(tui-textarea),.t-input :host-context(tui-text-area[data-size=\"l\"]):not(tui-text-area){padding:0 var(--tui-padding-l)}:host._disabled .t-input,.t-input :host-context(tui-primitive-textfield._disabled),.t-input :host-context(tui-textarea._disabled),.t-input :host-context(tui-text-area._disabled){pointer-events:none}:host[data-size=l]:not(._label-outside) .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1.25rem}:host[data-size=l]:not(._label-outside) .t-input:-webkit-autofill+.t-content .t-placeholder,.t-input :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.8156rem;transform:translateY(-.625rem)}:host[data-size=m]:not(._label-outside) .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1rem}:host[data-size=m]:not(._label-outside) .t-input:-webkit-autofill+.t-content .t-placeholder,.t-input :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.69rem;transform:translateY(-.5rem)}:host._hidden input.t-input,.t-input :host-context(tui-primitive-textfield._hidden){opacity:0;text-indent:-10em;-webkit-user-select:none}.t-content{display:flex;height:100%;width:100%;box-sizing:border-box;align-items:center;overflow:hidden}:host[data-size=s] .t-content{padding:0 var(--tui-padding-s)}:host[data-size=m] .t-content{padding:0 var(--tui-padding-m)}:host[data-size=l] .t-content{padding:0 var(--tui-padding-l)}.t-wrapper{flex:1;min-width:0;-webkit-padding-end:.25rem;padding-inline-end:.25rem}.t-placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-02);pointer-events:none;will-change:transform;transform:translateY(0)}@supports (-webkit-hyphens: none){.t-placeholder{will-change:unset;transition-property:transform,color,letter-spacing}}.t-placeholder_raised{transform:translateY(-.625rem)}:host[data-size=m] .t-placeholder_raised{font:var(--tui-font-text-xs);line-height:1.25rem;transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .t-placeholder_raised,:host._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill)}:host._invalid:not(._focused) [tuiWrapper][data-mode=onDark] .t-placeholder_raised,:host._invalid:not(._focused):hover [tuiWrapper][data-mode=onDark] .t-placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .t-placeholder,:host[data-size=m]._focused._label-outside .t-placeholder,:host[data-size=l]._focused._label-outside .t-placeholder{color:var(--tui-text-03)}:host[data-size=l] .t-placeholder{font:var(--tui-font-text-m);line-height:1.25rem}:host[data-size=l] .t-placeholder_raised{font-size:.8156rem}:host[data-size=m]._focused:not(._label-outside) .t-placeholder,:host[data-size=l]._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01)}[tuiWrapper][data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}:host[data-size=m]._focused:not(._label-outside) [tuiWrapper][data-mode=onDark] .t-placeholder,:host[data-size=l]._focused:not(._label-outside) [tuiWrapper][data-mode=onDark] .t-placeholder{color:var(--tui-text-01-night)}:host._focused [tuiWrapper][data-mode=onDark] .t-placeholder,:host[data-size=m]._focused._label-outside [tuiWrapper][data-mode=onDark] .t-placeholder,:host[data-size=l]._focused._label-outside [tuiWrapper][data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}.t-cleaner{position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none;pointer-events:auto}:host._readonly .t-cleaner,:host._disabled .t-cleaner{pointer-events:none}.t-icon{position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none}:host[data-size=s] .t-icon_left{-webkit-margin-start:-.375rem;margin-inline-start:-.375rem}:host[data-size=m] .t-icon_left{-webkit-margin-start:-.125rem;margin-inline-start:-.125rem;-webkit-margin-end:.375rem;margin-inline-end:.375rem}:host[data-size=l] .t-icon_left{-webkit-margin-end:.75rem;margin-inline-end:.75rem}.t-icons{display:flex;align-items:center}:host[data-size=m] .t-icons{-webkit-margin-end:-.125rem;margin-inline-end:-.125rem}:host[data-size=s] .t-icons{-webkit-margin-end:-.375rem;margin-inline-end:-.375rem}:host:not([data-size=\"s\"]) .t-icons>:not(:first-child){-webkit-margin-start:.25rem;margin-inline-start:.25rem}:host{cursor:text}:host._expandable{height:auto;max-height:none}:host._disabled{pointer-events:none}:host._readonly{cursor:default}:host[data-size=m]{line-height:1rem}.t-hosted{display:block;border-radius:inherit}.t-scrollbar{scroll-behavior:smooth;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;min-width:100%}:host-context(tui-root._reduced-motion) .t-scrollbar{scroll-behavior:auto}:host:not(._label-outside) .t-scrollbar,:host._label-outside._icon-left .t-scrollbar{margin:0}:host[data-size=s]._icon-left .t-scrollbar{-webkit-margin-start:.25rem;margin-inline-start:.25rem}:host[data-size=m]:not(._label-outside) .t-scrollbar{border-top:1rem solid transparent}:host[data-size=l]:not(._label-outside) .t-scrollbar{border-top:1.25rem solid transparent}.t-tags{display:flex;-webkit-padding-start:.25rem;padding-inline-start:.25rem}.t-tags_expandable{overflow:hidden}.t-tags_empty{height:0}:host._expandable .t-tags{flex-wrap:wrap;white-space:normal;overflow:hidden}:host._readonly .t-tags{pointer-events:none}:host[data-size=m]:not(._label-outside) .t-tags,:host[data-size=l]:not(._label-outside) .t-tags{padding:0}.t-content{align-items:flex-start}:host[data-size=s] .t-content{min-height:var(--tui-height-s)}:host[data-size=m] .t-content{min-height:var(--tui-height-m)}:host[data-size=l] .t-content{min-height:var(--tui-height-l)}:host[data-size=s] .t-icon-wrapper{height:var(--tui-height-s)}:host[data-size=m] .t-icon-wrapper{height:var(--tui-height-m)}:host[data-size=l] .t-icon-wrapper{height:var(--tui-height-l)}.t-absolute-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center}:host[data-size=m] .t-absolute-wrapper{height:var(--tui-height-m)}:host[data-size=l] .t-absolute-wrapper{height:var(--tui-height-l)}.t-wrapper{position:relative;display:flex;align-items:center;padding:0;box-sizing:border-box}:host[data-size=s] .t-wrapper{min-height:var(--tui-height-s);padding:calc((var(--tui-height-s) - 1.5rem) / 2) 0}:host[data-size=m] .t-wrapper{min-height:var(--tui-height-m);padding:calc((var(--tui-height-m) - var(--tui-height-xs) - .25rem) / 2) 0}:host[data-size=l] .t-wrapper{padding:calc((var(--tui-height-l) - var(--tui-height-s) - .25rem) / 2) 0}:host[data-size=m]:not(._label-outside) .t-wrapper{padding:calc((var(--tui-height-m) - 2rem) / 2) 0}:host[data-size=l]:not(._label-outside) .t-wrapper{padding:calc((var(--tui-height-l) - 2.5rem) / 2) 0}.t-tag{margin:.125rem .5rem .125rem -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem;max-width:100%;flex-shrink:0}:host[data-size=m] .t-tag{-webkit-margin-start:-.125rem;margin-inline-start:-.125rem;-webkit-margin-end:.375rem;margin-inline-end:.375rem}.t-text:after{content:\",\\a0\"}.t-text_disabled{color:var(--tui-text-03)}.t-text_error{color:var(--tui-negative)}.t-text:not(.t-text_comma):last-of-type:after{content:\"\"}:host:not(._expandable) .t-text{white-space:nowrap}.t-input-wrapper,.t-value-content{position:relative;display:flex;flex:1;max-width:100%}:host[data-size=s] .t-input-wrapper,:host[data-size=s] .t-value-content{min-height:1.5rem}:host[data-size=m] .t-input-wrapper,:host[data-size=m] .t-value-content{min-height:calc(var(--tui-height-xs) + 2 * .125rem)}:host[data-size=l] .t-input-wrapper,:host[data-size=l] .t-value-content{min-height:calc(var(--tui-height-s) + 2 * .125rem)}:host:not(._label-outside) .t-input-wrapper,:host:not(._label-outside) .t-value-content{min-height:1rem}.t-input-wrapper_collapsed{flex:0;-webkit-margin-start:-.5rem;margin-inline-start:-.5rem}.t-value-content:empty{display:none}.t-ghost{visibility:hidden;white-space:pre;text-overflow:clip;min-width:.125rem}:host:not(._expandable) .t-ghost{min-width:2rem}.t-native{margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;padding:0;cursor:inherit}.t-native:-webkit-autofill,.t-native:-webkit-autofill:hover,.t-native:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.t-native_hidden{opacity:0;text-indent:-10em}.t-native::placeholder{color:var(--tui-text-03);opacity:0}[tuiWrapper][data-mode=onDark] .t-native::placeholder{color:var(--tui-text-03-night)}:host._focused .t-native:not(:-moz-read-only)::placeholder{opacity:1}:host._focused .t-native:not(:read-only)::placeholder{opacity:1}.t-error-icon{display:block;color:var(--tui-error-fill);width:1rem;height:1rem}\n"], components: [{ type: i1__namespace.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i1__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i1__namespace.TuiScrollbarComponent, selector: "tui-scrollbar", inputs: ["hidden"] }, { type: i2__namespace.TuiTagComponent, selector: "tui-tag, a[tuiTag], button[tuiTag]", inputs: ["value", "editable", "separator", "maxLength", "size", "showLoader", "status", "hoverable", "removable", "disabled", "autoColor", "leftContent"], outputs: ["edited"] }, { type: i1__namespace.TuiTooltipComponent, selector: "tui-tooltip", inputs: ["content", "direction", "appearance", "showDelay", "hideDelay", "describeId", "context"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i1__namespace.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { type: i5__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4__namespace.TuiFocusableDirective, selector: "[tuiFocusable]", inputs: ["tuiFocusable"] }, { type: i6__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "async": i3__namespace.AsyncPipe }, viewProviders: [providers.FIXED_DROPDOWN_CONTROLLER_PROVIDER], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
780
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagComponent, decorators: [{
781
- type: i0.Component,
782
- args: [{
783
- selector: 'tui-input-tag',
784
- templateUrl: './input-tag.template.html',
785
- styleUrls: ['./input-tag.style.less'],
786
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
787
- providers: [
788
- i4.tuiAsFocusableItemAccessor(TuiInputTagComponent),
789
- i4.tuiAsControl(TuiInputTagComponent),
790
- i1.tuiAsDataListHost(TuiInputTagComponent),
791
- i1.TEXTFIELD_CONTROLLER_PROVIDER,
792
- i1.MODE_PROVIDER,
793
- ],
794
- viewProviders: [providers.FIXED_DROPDOWN_CONTROLLER_PROVIDER],
795
- }]
796
- }], ctorParameters: function () {
797
- return [{ type: i6__namespace.NgControl, decorators: [{
798
- type: i0.Optional
799
- }, {
800
- type: i0.Self
801
- }, {
802
- type: i0.Inject,
803
- args: [i6.NgControl]
804
- }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
805
- type: i0.Inject,
806
- args: [i0.ChangeDetectorRef]
807
- }] }, { type: i0__namespace.ElementRef, decorators: [{
808
- type: i0.Inject,
809
- args: [i0.ElementRef]
810
- }] }, { type: i1__namespace.TuiModeDirective, decorators: [{
811
- type: i0.Optional
812
- }, {
813
- type: i0.Inject,
814
- args: [i1.TuiModeDirective]
815
- }] }, { type: i7__namespace.Observable, decorators: [{
816
- type: i0.Inject,
817
- args: [i1.TUI_MODE]
818
- }] }, { type: i1__namespace.TuiHintOptionsDirective, decorators: [{
819
- type: i0.Optional
820
- }, {
821
- type: i0.Inject,
822
- args: [i1.TuiHintOptionsDirective]
823
- }] }, { type: i1__namespace.TuiTextfieldController, decorators: [{
824
- type: i0.Inject,
825
- args: [i1.TUI_TEXTFIELD_WATCHED_CONTROLLER]
826
- }] }, { type: undefined, decorators: [{
827
- type: i0.Inject,
828
- args: [TUI_INPUT_TAG_OPTIONS]
829
- }] }, { type: undefined, decorators: [{
830
- type: i0.Inject,
831
- args: [i1.TUI_COMMON_ICONS]
832
- }] }];
833
- }, propDecorators: { hostedDropdown: [{
834
- type: i0.ViewChild,
835
- args: [i1.TuiHostedDropdownComponent]
836
- }], focusableElement: [{
837
- type: i0.ViewChild,
838
- args: ['focusableElement']
839
- }], tagsContainer: [{
840
- type: i0.ViewChild,
841
- args: ['tagsContainer']
842
- }], tags: [{
843
- type: i0.ViewChildren,
844
- args: ['tag', { read: i0.ElementRef }]
845
- }], cleanerSvg: [{
846
- type: i0.ViewChild,
847
- args: ['cleaner', { read: i0.ElementRef }]
848
- }], scrollBar: [{
849
- type: i0.ViewChild,
850
- args: [i1.TuiScrollbarComponent, { read: i0.ElementRef }]
851
- }], separator: [{
852
- type: i0.Input
853
- }], search: [{
854
- type: i0.Input
855
- }], editable: [{
856
- type: i0.Input
857
- }], tagValidator: [{
858
- type: i0.Input
859
- }], expandable: [{
860
- type: i0.Input
861
- }, {
862
- type: i0.HostBinding,
863
- args: ['class._expandable']
864
- }], rows: [{
865
- type: i0.Input
866
- }], inputHidden: [{
867
- type: i0.Input
868
- }], uniqueTags: [{
869
- type: i0.Input
870
- }], maxLength: [{
871
- type: i0.Input
872
- }], placeholder: [{
873
- type: i0.Input
874
- }], removable: [{
875
- type: i0.Input
876
- }], disabledItemHandler: [{
877
- type: i0.Input
878
- }], pseudoFocusedSetter: [{
879
- type: i0.Input,
880
- args: ['pseudoFocused']
881
- }], searchChange: [{
882
- type: i0.Output
883
- }], datalist: [{
884
- type: i0.ContentChild,
885
- args: [i1.TuiDataListDirective, { read: i0.TemplateRef }]
886
- }], errorIconTemplate: [{
887
- type: i0.ViewChild,
888
- args: ['errorIcon']
889
- }], size: [{
890
- type: i0.HostBinding,
891
- args: ['attr.data-size']
892
- }], labelOutside: [{
893
- type: i0.HostBinding,
894
- args: ['class._label-outside']
895
- }], iconLeft: [{
896
- type: i0.HostBinding,
897
- args: ['class._icon-left']
898
- }], onFocusInOut: [{
899
- type: i0.HostListener,
900
- args: ['focusin.capture.silent']
901
- }, {
902
- type: i0.HostListener,
903
- args: ['focusout.capture.silent']
904
- }] } });
511
+ var TAG_SIZE_REM = {
512
+ s: 1.25,
513
+ m: 1.5,
514
+ l: 2,
515
+ };
516
+ var LINE_HEIGHT_REM = {
517
+ s: 1,
518
+ m: 1.25,
519
+ l: 1.25,
520
+ };
521
+ var TAG_VERTICAL_SPACE_REM = 0.125;
522
+ var TuiInputTagComponent = /** @class */ (function (_super) {
523
+ __extends(TuiInputTagComponent, _super);
524
+ function TuiInputTagComponent(control, cdr, el, modeDirective, mode$, hintOptions, controller, options, icons) {
525
+ var _this = _super.call(this, control, cdr) || this;
526
+ _this.el = el;
527
+ _this.modeDirective = modeDirective;
528
+ _this.mode$ = mode$;
529
+ _this.hintOptions = hintOptions;
530
+ _this.controller = controller;
531
+ _this.options = options;
532
+ _this.icons = icons;
533
+ _this.tags = i4.EMPTY_QUERY;
534
+ _this.separator = _this.options.separator;
535
+ _this.search = '';
536
+ _this.editable = true;
537
+ _this.tagValidator = i4.ALWAYS_TRUE_HANDLER;
538
+ // TODO: 4.0 Consider removing and use rows = 1 instead
539
+ _this.expandable = true;
540
+ _this.rows = Infinity;
541
+ _this.inputHidden = false;
542
+ _this.uniqueTags = _this.options.uniqueTags;
543
+ _this.maxLength = null;
544
+ _this.placeholder = '';
545
+ _this.removable = true;
546
+ _this.disabledItemHandler = i4.ALWAYS_FALSE_HANDLER;
547
+ _this.searchChange = new i0.EventEmitter();
548
+ _this.status$ = _this.mode$.pipe(operators.map(function () { return _this.status; }));
549
+ _this.open = false;
550
+ return _this;
551
+ }
552
+ Object.defineProperty(TuiInputTagComponent.prototype, "pseudoFocusedSetter", {
553
+ set: function (value) {
554
+ if (!value && !this.focused) {
555
+ this.scrollTo(0);
556
+ }
557
+ this.pseudoFocus = value;
558
+ },
559
+ enumerable: false,
560
+ configurable: true
561
+ });
562
+ Object.defineProperty(TuiInputTagComponent.prototype, "nativeFocusableElement", {
563
+ get: function () {
564
+ return !this.focusableElement || this.computedDisabled
565
+ ? null
566
+ : this.focusableElement.nativeElement;
567
+ },
568
+ enumerable: false,
569
+ configurable: true
570
+ });
571
+ Object.defineProperty(TuiInputTagComponent.prototype, "focused", {
572
+ get: function () {
573
+ var _a;
574
+ return (i4.tuiIsNativeFocusedIn(this.el.nativeElement) || !!((_a = this.hostedDropdown) === null || _a === void 0 ? void 0 : _a.focused));
575
+ },
576
+ enumerable: false,
577
+ configurable: true
578
+ });
579
+ Object.defineProperty(TuiInputTagComponent.prototype, "appearance", {
580
+ get: function () {
581
+ return this.controller.appearance;
582
+ },
583
+ enumerable: false,
584
+ configurable: true
585
+ });
586
+ Object.defineProperty(TuiInputTagComponent.prototype, "size", {
587
+ get: function () {
588
+ return this.controller.size;
589
+ },
590
+ enumerable: false,
591
+ configurable: true
592
+ });
593
+ Object.defineProperty(TuiInputTagComponent.prototype, "labelOutside", {
594
+ get: function () {
595
+ var _c = this.controller, size = _c.size, labelOutside = _c.labelOutside;
596
+ return size === 's' || labelOutside;
597
+ },
598
+ enumerable: false,
599
+ configurable: true
600
+ });
601
+ Object.defineProperty(TuiInputTagComponent.prototype, "iconLeft", {
602
+ get: function () {
603
+ return this.controller.iconLeft;
604
+ },
605
+ enumerable: false,
606
+ configurable: true
607
+ });
608
+ Object.defineProperty(TuiInputTagComponent.prototype, "icon", {
609
+ get: function () {
610
+ return this.controller.icon;
611
+ },
612
+ enumerable: false,
613
+ configurable: true
614
+ });
615
+ Object.defineProperty(TuiInputTagComponent.prototype, "iconCleaner", {
616
+ get: function () {
617
+ return this.controller.options.iconCleaner;
618
+ },
619
+ enumerable: false,
620
+ configurable: true
621
+ });
622
+ Object.defineProperty(TuiInputTagComponent.prototype, "hasCleaner", {
623
+ get: function () {
624
+ return this.controller.cleaner && this.hasValue && this.interactive;
625
+ },
626
+ enumerable: false,
627
+ configurable: true
628
+ });
629
+ Object.defineProperty(TuiInputTagComponent.prototype, "hasNativeValue", {
630
+ get: function () {
631
+ return !!this.search;
632
+ },
633
+ enumerable: false,
634
+ configurable: true
635
+ });
636
+ Object.defineProperty(TuiInputTagComponent.prototype, "hasValue", {
637
+ get: function () {
638
+ return !!this.value.length || this.hasNativeValue;
639
+ },
640
+ enumerable: false,
641
+ configurable: true
642
+ });
643
+ Object.defineProperty(TuiInputTagComponent.prototype, "hasPlaceholder", {
644
+ get: function () {
645
+ return (!this.labelOutside ||
646
+ (!this.hasValue && (!this.hasExampleText || this.inputHidden)));
647
+ },
648
+ enumerable: false,
649
+ configurable: true
650
+ });
651
+ Object.defineProperty(TuiInputTagComponent.prototype, "placeholderRaised", {
652
+ get: function () {
653
+ return (!this.labelOutside &&
654
+ ((this.computedFocused && !this.readOnly) || this.hasValue));
655
+ },
656
+ enumerable: false,
657
+ configurable: true
658
+ });
659
+ Object.defineProperty(TuiInputTagComponent.prototype, "hasExampleText", {
660
+ get: function () {
661
+ var _a;
662
+ return (!!((_a = this.nativeFocusableElement) === null || _a === void 0 ? void 0 : _a.placeholder) &&
663
+ this.computedFocused &&
664
+ !this.hasValue &&
665
+ !this.readOnly);
666
+ },
667
+ enumerable: false,
668
+ configurable: true
669
+ });
670
+ Object.defineProperty(TuiInputTagComponent.prototype, "hasRightIcons", {
671
+ get: function () {
672
+ var _a;
673
+ return (this.hasCleaner ||
674
+ !!this.icon ||
675
+ (!!((_a = this.hintOptions) === null || _a === void 0 ? void 0 : _a.content) && !this.computedDisabled));
676
+ },
677
+ enumerable: false,
678
+ configurable: true
679
+ });
680
+ Object.defineProperty(TuiInputTagComponent.prototype, "showHint", {
681
+ get: function () {
682
+ var _a;
683
+ return (!!((_a = this.hintOptions) === null || _a === void 0 ? void 0 : _a.content) &&
684
+ (this.controller.options.hintOnDisabled || !this.computedDisabled));
685
+ },
686
+ enumerable: false,
687
+ configurable: true
688
+ });
689
+ Object.defineProperty(TuiInputTagComponent.prototype, "status", {
690
+ get: function () {
691
+ var _a;
692
+ return ((_a = this.modeDirective) === null || _a === void 0 ? void 0 : _a.mode) ? 'default' : this.options.tagStatus;
693
+ },
694
+ enumerable: false,
695
+ configurable: true
696
+ });
697
+ Object.defineProperty(TuiInputTagComponent.prototype, "canOpen", {
698
+ get: function () {
699
+ return this.interactive && !!this.datalist;
700
+ },
701
+ enumerable: false,
702
+ configurable: true
703
+ });
704
+ Object.defineProperty(TuiInputTagComponent.prototype, "computeMaxHeight", {
705
+ get: function () {
706
+ return this.expandable ? this.rows * this.lineHeight : null;
707
+ },
708
+ enumerable: false,
709
+ configurable: true
710
+ });
711
+ TuiInputTagComponent.prototype.onFocusInOut = function () {
712
+ this.cdr.detectChanges();
713
+ };
714
+ TuiInputTagComponent.prototype.detectRetargetFromLabel = function (event) {
715
+ if (i4.tuiRetargetedBoundaryCrossing(event)) {
716
+ event.stopImmediatePropagation();
717
+ }
718
+ };
719
+ TuiInputTagComponent.prototype.getLeftContent = function (tag) {
720
+ return !this.tagValidator(tag) && this.errorIconTemplate
721
+ ? this.errorIconTemplate
722
+ : '';
723
+ };
724
+ TuiInputTagComponent.prototype.onCleanerClick = function () {
725
+ this.updateSearch('');
726
+ this.clear();
727
+ this.focusInput();
728
+ };
729
+ TuiInputTagComponent.prototype.onActiveZone = function (active) {
730
+ this.open = false;
731
+ this.addTag();
732
+ this.updateFocused(active);
733
+ if (!active && !this.computedFocused) {
734
+ this.scrollTo(0);
735
+ }
736
+ };
737
+ TuiInputTagComponent.prototype.onMouseDown = function (event) {
738
+ var _a;
739
+ var actualTarget = i4.tuiGetActualTarget(event);
740
+ if (!this.focusableElement ||
741
+ actualTarget === this.focusableElement.nativeElement ||
742
+ !i4.tuiIsElement(event.target) ||
743
+ ((_a = this.cleanerSvg) === null || _a === void 0 ? void 0 : _a.nativeElement.contains(event.target)) ||
744
+ (this.tagsContainer &&
745
+ actualTarget !== this.tagsContainer.nativeElement &&
746
+ this.tagsContainer.nativeElement.contains(actualTarget))) {
747
+ return;
748
+ }
749
+ event.preventDefault();
750
+ this.focusInput();
751
+ };
752
+ TuiInputTagComponent.prototype.onFieldKeyDownBackspace = function (event) {
753
+ if (!this.labelOutside && !this.hasNativeValue && this.value.length) {
754
+ this.deleteLastEnabledItem();
755
+ }
756
+ else {
757
+ this.onFieldKeyDownArrowLeft(event);
758
+ }
759
+ };
760
+ TuiInputTagComponent.prototype.onFieldKeyDownArrowLeft = function (event) {
761
+ if (!this.labelOutside || this.hasNativeValue || !this.value.length) {
762
+ return;
763
+ }
764
+ event.preventDefault();
765
+ this.tags.last.nativeElement.focus();
766
+ };
767
+ TuiInputTagComponent.prototype.onFieldKeyDownEnter = function () {
768
+ this.addTag();
769
+ this.scrollTo();
770
+ };
771
+ TuiInputTagComponent.prototype.onTagKeyDownArrowLeft = function (currentIndex) {
772
+ if (currentIndex > 0) {
773
+ this.onScrollKeyDown(currentIndex, -1);
774
+ }
775
+ };
776
+ TuiInputTagComponent.prototype.onTagKeyDownArrowRight = function (currentIndex) {
777
+ if (currentIndex === this.value.length - 1) {
778
+ this.focusInput();
779
+ }
780
+ else {
781
+ this.onScrollKeyDown(currentIndex, 1);
782
+ }
783
+ };
784
+ TuiInputTagComponent.prototype.onTagEdited = function (value, index) {
785
+ var _this = this;
786
+ this.focusInput(value === '');
787
+ this.value = this.filterValue(this.value
788
+ .map(function (tag, tagIndex) { return tagIndex !== index
789
+ ? tag
790
+ : value
791
+ .split(_this.separator)
792
+ .map(function (tag) { return tag.trim(); })
793
+ .filter(Boolean); })
794
+ .reduce(function (result, item) { return result.concat(item); }, []));
795
+ };
796
+ TuiInputTagComponent.prototype.handleOption = function (item) {
797
+ this.focusInput();
798
+ this.updateSearch('');
799
+ this.value = this.filterValue(this.value.concat(item));
800
+ this.open = false;
801
+ this.scrollTo();
802
+ };
803
+ TuiInputTagComponent.prototype.onInput = function (value) {
804
+ var _this = this;
805
+ var array = value.split(this.separator);
806
+ var tags = array
807
+ .map(function (item) { return _this.clippedValue(item.trim()); })
808
+ .filter(function (item, index, _c) {
809
+ var length = _c.length;
810
+ return item.length > 0 && index !== length - 1;
811
+ });
812
+ var validated = tags.filter(function (tag) { return !_this.disabledItemHandler(tag); });
813
+ if (array.length > 1) {
814
+ this.updateSearch(this.clippedValue(array[array.length - 1].trim()));
815
+ this.value = this.filterValue(__spreadArray(__spreadArray([], __read(this.value)), __read(validated)));
816
+ }
817
+ else {
818
+ this.updateSearch(this.clippedValue(value));
819
+ }
820
+ this.open = this.hasNativeValue;
821
+ };
822
+ TuiInputTagComponent.prototype.onPaste = function (event) {
823
+ var pasted = i4.tuiGetClipboardDataText(event);
824
+ this.onInput(pasted || '');
825
+ };
826
+ TuiInputTagComponent.prototype.onDrop = function (_c) {
827
+ var dataTransfer = _c.dataTransfer;
828
+ if (dataTransfer) {
829
+ this.onInput(dataTransfer.getData('text') || '');
830
+ }
831
+ };
832
+ TuiInputTagComponent.prototype.setDisabledState = function () {
833
+ _super.prototype.setDisabledState.call(this);
834
+ this.open = false;
835
+ };
836
+ TuiInputTagComponent.prototype.trackByFn = function (_, tag) {
837
+ // Actually tag has TuiStringifiableItem type not string
838
+ return tag.toString();
839
+ };
840
+ TuiInputTagComponent.prototype.scrollTo = function (scrollLeft) {
841
+ var _this = this;
842
+ var _a;
843
+ if (scrollLeft === void 0) {
844
+ scrollLeft = (_a = this.scrollBar) === null || _a === void 0 ? void 0 : _a.nativeElement.scrollWidth;
845
+ }
846
+ // Allow change detection to run and add new tag to DOM
847
+ setTimeout(function () {
848
+ if (_this.scrollBar) {
849
+ _this.scrollBar.nativeElement.scrollLeft = scrollLeft || 0;
850
+ }
851
+ });
852
+ };
853
+ TuiInputTagComponent.prototype.filterValue = function (value) {
854
+ var _this = this;
855
+ var seen = new Set();
856
+ return value
857
+ .reverse()
858
+ .filter(function (item) { return !_this.uniqueTags || (item && !seen.has(item) && seen.add(item)); })
859
+ .reverse();
860
+ };
861
+ TuiInputTagComponent.prototype.onScrollKeyDown = function (currentIndex, flag) {
862
+ var tag = this.tags.find(function (_item, index) { return index === currentIndex + flag; });
863
+ if (!tag || !this.scrollBar) {
864
+ return;
865
+ }
866
+ tag.nativeElement.focus();
867
+ if (flag * this.scrollBar.nativeElement.clientWidth -
868
+ flag * tag.nativeElement.offsetLeft -
869
+ tag.nativeElement.clientWidth <
870
+ 0) {
871
+ this.scrollBar.nativeElement.scrollLeft +=
872
+ flag * tag.nativeElement.clientWidth;
873
+ }
874
+ };
875
+ TuiInputTagComponent.prototype.updateSearch = function (value) {
876
+ if (this.focusableElement) {
877
+ this.focusableElement.nativeElement.value = value;
878
+ }
879
+ this.search = value;
880
+ this.searchChange.emit(value);
881
+ };
882
+ TuiInputTagComponent.prototype.addTag = function () {
883
+ var _a, _b;
884
+ var inputValue = (_b = (_a = this.search) === null || _a === void 0 ? void 0 : _a.trim()) !== null && _b !== void 0 ? _b : '';
885
+ if (!inputValue || this.disabledItemHandler(inputValue)) {
886
+ return;
887
+ }
888
+ this.updateSearch('');
889
+ this.value = this.filterValue(this.value.concat(inputValue));
890
+ };
891
+ TuiInputTagComponent.prototype.deleteLastEnabledItem = function () {
892
+ for (var index = this.value.length - 1; index >= 0; index--) {
893
+ if (!this.disabledItemHandler(this.value[index])) {
894
+ this.value = i4.tuiArrayRemove(this.value, index);
895
+ break;
896
+ }
897
+ }
898
+ };
899
+ TuiInputTagComponent.prototype.focusInput = function (preventScroll) {
900
+ if (preventScroll === void 0) { preventScroll = false; }
901
+ var _a;
902
+ (_a = this.nativeFocusableElement) === null || _a === void 0 ? void 0 : _a.focus({ preventScroll: preventScroll });
903
+ };
904
+ TuiInputTagComponent.prototype.clippedValue = function (value) {
905
+ return value.slice(0, this.maxLength || value.length);
906
+ };
907
+ Object.defineProperty(TuiInputTagComponent.prototype, "lineHeight", {
908
+ get: function () {
909
+ return this.labelOutside
910
+ ? TAG_SIZE_REM[this.controller.size] + 2 * TAG_VERTICAL_SPACE_REM
911
+ : LINE_HEIGHT_REM[this.controller.size];
912
+ },
913
+ enumerable: false,
914
+ configurable: true
915
+ });
916
+ return TuiInputTagComponent;
917
+ }(i4.AbstractTuiMultipleControl));
918
+ TuiInputTagComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagComponent, deps: [{ token: i6.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.TuiModeDirective, optional: true }, { token: i1.TUI_MODE }, { token: i1.TuiHintOptionsDirective, optional: true }, { token: i1.TUI_TEXTFIELD_WATCHED_CONTROLLER }, { token: TUI_INPUT_TAG_OPTIONS }, { token: i1.TUI_COMMON_ICONS }], target: i0__namespace.ɵɵFactoryTarget.Component });
919
+ TuiInputTagComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputTagComponent, selector: "tui-input-tag", inputs: { separator: "separator", search: "search", editable: "editable", tagValidator: "tagValidator", expandable: "expandable", rows: "rows", inputHidden: "inputHidden", uniqueTags: "uniqueTags", maxLength: "maxLength", placeholder: "placeholder", removable: "removable", disabledItemHandler: "disabledItemHandler", pseudoFocusedSetter: ["pseudoFocused", "pseudoFocusedSetter"] }, outputs: { searchChange: "searchChange" }, host: { listeners: { "focusin.capture.silent": "onFocusInOut()", "focusout.capture.silent": "onFocusInOut()" }, properties: { "class._expandable": "this.expandable", "attr.data-size": "this.size", "class._label-outside": "this.labelOutside", "class._icon-left": "this.iconLeft" } }, providers: [
920
+ i4.tuiAsFocusableItemAccessor(TuiInputTagComponent),
921
+ i4.tuiAsControl(TuiInputTagComponent),
922
+ i1.tuiAsDataListHost(TuiInputTagComponent),
923
+ i1.TEXTFIELD_CONTROLLER_PROVIDER,
924
+ i1.MODE_PROVIDER,
925
+ ], queries: [{ propertyName: "datalist", first: true, predicate: i1.TuiDataListDirective, descendants: true, read: i0.TemplateRef }], viewQueries: [{ propertyName: "hostedDropdown", first: true, predicate: i1.TuiHostedDropdownComponent, descendants: true }, { propertyName: "focusableElement", first: true, predicate: ["focusableElement"], descendants: true }, { propertyName: "tagsContainer", first: true, predicate: ["tagsContainer"], descendants: true }, { propertyName: "cleanerSvg", first: true, predicate: ["cleaner"], descendants: true, read: i0.ElementRef }, { propertyName: "scrollBar", first: true, predicate: i1.TuiScrollbarComponent, descendants: true, read: i0.ElementRef }, { propertyName: "errorIconTemplate", first: true, predicate: ["errorIcon"], descendants: true }, { propertyName: "tags", predicate: ["tag"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngIf=\"hintOptions?.change$ | async\"></ng-container>\n<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"canOpen\"\n [content]=\"datalist || ''\"\n [(open)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <div\n tuiWrapper\n [appearance]=\"appearance\"\n [disabled]=\"computedDisabled\"\n [focus]=\"computedFocused\"\n [hover]=\"pseudoHover\"\n [invalid]=\"computedInvalid\"\n [readOnly]=\"readOnly\"\n (click.prevent.silent)=\"detectRetargetFromLabel($event)\"\n (mousedown)=\"onMouseDown($event)\"\n >\n <div class=\"t-content\">\n <div\n *ngIf=\"iconLeft\"\n class=\"t-icon t-icon_left t-textfield-icon t-icon-wrapper\"\n >\n <tui-svg\n *polymorpheusOutlet=\"iconLeft as src; context: {$implicit: size}\"\n appearance=\"icon\"\n tuiWrapper\n [src]=\"src\"\n ></tui-svg>\n </div>\n <div class=\"t-wrapper\">\n <div class=\"t-absolute-wrapper\">\n <div\n *ngIf=\"hasPlaceholder\"\n automation-id=\"tui-input-tag__placeholder\"\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n <tui-scrollbar\n class=\"t-scrollbar\"\n [hidden]=\"!expandable\"\n [style.maxHeight.rem]=\"computeMaxHeight\"\n >\n <div\n class=\"t-tags\"\n [class.t-tags_empty]=\"(!focused || inputHidden) && !value?.length && !search?.trim()?.length\"\n >\n <ng-container *ngIf=\"labelOutside; else text\">\n <tui-tag\n *ngFor=\"let item of value; index as index; trackBy: trackByFn\"\n #tag\n automation-id=\"tui-input-tag__tag\"\n class=\"t-tag\"\n [disabled]=\"computedDisabled || disabledItemHandler(item)\"\n [editable]=\"editable && !readOnly\"\n [hoverable]=\"!readOnly\"\n [leftContent]=\"getLeftContent(item)\"\n [maxLength]=\"maxLength\"\n [removable]=\"!readOnly && removable\"\n [separator]=\"separator\"\n [size]=\"controller.size\"\n [status]=\"(status$ | async)!\"\n [tuiFocusable]=\"false\"\n [value]=\"item.toString()\"\n (edited)=\"onTagEdited($event, index)\"\n (keydown.arrowLeft.prevent)=\"onTagKeyDownArrowLeft(index)\"\n (keydown.arrowRight.prevent)=\"onTagKeyDownArrowRight(index)\"\n ></tui-tag>\n </ng-container>\n <ng-template #text>\n <span\n *ngFor=\"let item of value\"\n class=\"t-text\"\n [class.t-text_comma]=\"computedFocused && !inputHidden\"\n [class.t-text_disabled]=\"disabledItemHandler(item)\"\n [class.t-text_error]=\"!tagValidator(item)\"\n [textContent]=\"item\"\n ></span>\n </ng-template>\n <div\n class=\"t-input-wrapper\"\n [class.t-input-wrapper_collapsed]=\"computedDisabled || readOnly || inputHidden\"\n >\n <div class=\"t-ghost\">{{ search }}</div>\n <input\n #focusableElement\n automation-id=\"tui-input-tag__native\"\n type=\"text\"\n class=\"t-native\"\n [attr.maxLength]=\"maxLength\"\n [class.t-native_hidden]=\"inputHidden\"\n [disabled]=\"computedDisabled\"\n [id]=\"id\"\n [ngModel]=\"search\"\n [placeholder]=\"placeholder\"\n [readOnly]=\"readOnly || inputHidden\"\n [tuiFocusable]=\"computedFocusable\"\n (drop.prevent)=\"onDrop($any($event))\"\n (keydown.arrowLeft)=\"onFieldKeyDownArrowLeft($event)\"\n (keydown.backspace)=\"onFieldKeyDownBackspace($event)\"\n (keydown.enter.prevent)=\"onFieldKeyDownEnter()\"\n (ngModelChange)=\"onInput($event)\"\n (paste.prevent)=\"onPaste($event)\"\n />\n </div>\n </div>\n <div class=\"t-value-content\">\n <ng-content select=\"tuiContent\"></ng-content>\n </div>\n </tui-scrollbar>\n </div>\n <ng-content select=\"select\"></ng-content>\n <div\n *ngIf=\"hasRightIcons\"\n class=\"t-icons t-icon-wrapper\"\n >\n <ng-container *ngIf=\"hasCleaner\">\n <tui-svg\n *polymorpheusOutlet=\"iconCleaner as src; context: {$implicit: size}\"\n #cleaner\n appearance=\"icon\"\n automation-id=\"tui-input-tag__cleaner\"\n tuiWrapper\n class=\"t-cleaner\"\n [src]=\"src\"\n (click.stop)=\"onCleanerClick()\"\n ></tui-svg>\n </ng-container>\n <tui-tooltip\n *ngIf=\"showHint\"\n automation-id=\"tui-input-tag__tooltip\"\n class=\"t-tooltip\"\n [content]=\"hintOptions?.content\"\n [describeId]=\"id\"\n ></tui-tooltip>\n <div\n *ngIf=\"icon\"\n class=\"t-icon t-textfield-icon\"\n >\n <tui-svg\n *polymorpheusOutlet=\"icon as src; context: {$implicit: size}\"\n appearance=\"icon\"\n tuiWrapper\n [src]=\"src\"\n ></tui-svg>\n </div>\n </div>\n </div>\n <ng-template #errorIcon>\n <tui-svg\n class=\"t-error-icon\"\n [src]=\"icons.error\"\n ></tui-svg>\n </ng-template>\n </div>\n</tui-hosted-dropdown>\n", styles: [":host{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;text-align:left;border-radius:var(--tui-radius-m);height:var(--tui-height);min-height:var(--tui-height);max-height:var(--tui-height)}:host[data-size=s]{--tui-height: var(--tui-height-s)}:host[data-size=m]{--tui-height: var(--tui-height-m)}:host[data-size=l]{--tui-height: var(--tui-height-l);font:var(--tui-font-text-m);line-height:1.25rem}.t-input{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;border-style:solid;border-color:transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}.t-input:-webkit-autofill,.t-input:-webkit-autofill:hover,.t-input:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.t-input:-webkit-autofill,.t-input:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}.t-input::-webkit-caps-lock-indicator,.t-input::-webkit-contacts-auto-fill-button,.t-input::-webkit-credit-card-auto-fill-button,.t-input::-webkit-credentials-auto-fill-button,.t-input::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-input::placeholder{color:var(--tui-text-03);opacity:0}:host._focused:not(._readonly) .t-input::placeholder,:host-context(tui-primitive-textfield._focused:not(._readonly)) .t-input::placeholder,:host-context(tui-textarea._focused:not(._readonly)) .t-input::placeholder,:host-context(tui-text-area._focused:not(._readonly)) .t-input::placeholder{opacity:1}[tuiWrapper][data-mode=onDark] .t-input:-webkit-autofill,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill,[tuiWrapper][data-mode=onDark] .t-input:-webkit-autofill:hover,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill:hover,[tuiWrapper][data-mode=onDark] .t-input:-webkit-autofill:focus,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[tuiWrapper][data-mode=onDark] .t-input::placeholder,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"])::placeholder{color:var(--tui-text-03-night)}:host[data-size=s] .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"s\"]):not(tui-primitive-textfield),.t-input :host-context(tui-textarea[data-size=\"s\"]):not(tui-textarea),.t-input :host-context(tui-text-area[data-size=\"s\"]):not(tui-text-area){padding:0 var(--tui-padding-s)}:host[data-size=m] .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"m\"]):not(tui-primitive-textfield),.t-input :host-context(tui-textarea[data-size=\"m\"]):not(tui-textarea),.t-input :host-context(tui-text-area[data-size=\"m\"]):not(tui-text-area){padding:0 var(--tui-padding-m)}:host[data-size=l] .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"l\"]):not(tui-primitive-textfield),.t-input :host-context(tui-textarea[data-size=\"l\"]):not(tui-textarea),.t-input :host-context(tui-text-area[data-size=\"l\"]):not(tui-text-area){padding:0 var(--tui-padding-l)}:host._disabled .t-input,.t-input :host-context(tui-primitive-textfield._disabled),.t-input :host-context(tui-textarea._disabled),.t-input :host-context(tui-text-area._disabled){pointer-events:none}:host[data-size=l]:not(._label-outside) .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1.25rem}:host[data-size=l]:not(._label-outside) .t-input:-webkit-autofill+.t-content .t-placeholder,.t-input :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.8156rem;transform:translateY(-.625rem)}:host[data-size=m]:not(._label-outside) .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1rem}:host[data-size=m]:not(._label-outside) .t-input:-webkit-autofill+.t-content .t-placeholder,.t-input :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.69rem;transform:translateY(-.5rem)}:host._hidden input.t-input,.t-input :host-context(tui-primitive-textfield._hidden){opacity:0;text-indent:-10em;-webkit-user-select:none}.t-content{display:flex;height:100%;width:100%;box-sizing:border-box;align-items:center;overflow:hidden}:host[data-size=s] .t-content{padding:0 var(--tui-padding-s)}:host[data-size=m] .t-content{padding:0 var(--tui-padding-m)}:host[data-size=l] .t-content{padding:0 var(--tui-padding-l)}.t-wrapper{flex:1;min-width:0;-webkit-padding-end:.25rem;padding-inline-end:.25rem}.t-placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-02);pointer-events:none;will-change:transform;transform:translateY(0)}@supports (-webkit-hyphens: none){.t-placeholder{will-change:unset;transition-property:transform,color,letter-spacing}}.t-placeholder_raised{transform:translateY(-.625rem)}:host[data-size=m] .t-placeholder_raised{font:var(--tui-font-text-xs);line-height:1.25rem;transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .t-placeholder_raised,:host._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill)}:host._invalid:not(._focused) [tuiWrapper][data-mode=onDark] .t-placeholder_raised,:host._invalid:not(._focused):hover [tuiWrapper][data-mode=onDark] .t-placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .t-placeholder,:host[data-size=m]._focused._label-outside .t-placeholder,:host[data-size=l]._focused._label-outside .t-placeholder{color:var(--tui-text-03)}:host[data-size=l] .t-placeholder{font:var(--tui-font-text-m);line-height:1.25rem}:host[data-size=l] .t-placeholder_raised{font-size:.8156rem}:host[data-size=m]._focused:not(._label-outside) .t-placeholder,:host[data-size=l]._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01)}[tuiWrapper][data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}:host[data-size=m]._focused:not(._label-outside) [tuiWrapper][data-mode=onDark] .t-placeholder,:host[data-size=l]._focused:not(._label-outside) [tuiWrapper][data-mode=onDark] .t-placeholder{color:var(--tui-text-01-night)}:host._focused [tuiWrapper][data-mode=onDark] .t-placeholder,:host[data-size=m]._focused._label-outside [tuiWrapper][data-mode=onDark] .t-placeholder,:host[data-size=l]._focused._label-outside [tuiWrapper][data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}.t-cleaner{position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none;pointer-events:auto}:host._readonly .t-cleaner,:host._disabled .t-cleaner{pointer-events:none}.t-icon{position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none}:host[data-size=s] .t-icon_left{-webkit-margin-start:-.375rem;margin-inline-start:-.375rem}:host[data-size=m] .t-icon_left{-webkit-margin-start:-.125rem;margin-inline-start:-.125rem;-webkit-margin-end:.375rem;margin-inline-end:.375rem}:host[data-size=l] .t-icon_left{-webkit-margin-end:.75rem;margin-inline-end:.75rem}.t-icons{display:flex;align-items:center}:host[data-size=m] .t-icons{-webkit-margin-end:-.125rem;margin-inline-end:-.125rem}:host[data-size=s] .t-icons{-webkit-margin-end:-.375rem;margin-inline-end:-.375rem}:host:not([data-size=\"s\"]) .t-icons>:not(:first-child){-webkit-margin-start:.25rem;margin-inline-start:.25rem}:host{cursor:text}:host._expandable{height:auto;max-height:none}:host._disabled{pointer-events:none}:host._readonly{cursor:default}:host[data-size=m]{line-height:1rem}.t-hosted{display:block;border-radius:inherit}.t-scrollbar{scroll-behavior:smooth;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;min-width:100%}:host-context(tui-root._reduced-motion) .t-scrollbar{scroll-behavior:auto}:host:not(._label-outside) .t-scrollbar,:host._label-outside._icon-left .t-scrollbar{margin:0}:host[data-size=s]._icon-left .t-scrollbar{-webkit-margin-start:.25rem;margin-inline-start:.25rem}:host[data-size=m]:not(._label-outside) .t-scrollbar{border-top:1rem solid transparent}:host[data-size=l]:not(._label-outside) .t-scrollbar{border-top:1.25rem solid transparent}.t-tags{display:flex;-webkit-padding-start:.25rem;padding-inline-start:.25rem}.t-tags_expandable{overflow:hidden}.t-tags_empty{height:0}:host._expandable .t-tags{flex-wrap:wrap;white-space:normal;overflow:hidden}:host._readonly .t-tags{pointer-events:none}:host[data-size=m]:not(._label-outside) .t-tags,:host[data-size=l]:not(._label-outside) .t-tags{padding:0}.t-content{align-items:flex-start}:host[data-size=s] .t-content{min-height:var(--tui-height-s)}:host[data-size=m] .t-content{min-height:var(--tui-height-m)}:host[data-size=l] .t-content{min-height:var(--tui-height-l)}:host[data-size=s] .t-icon-wrapper{height:var(--tui-height-s)}:host[data-size=m] .t-icon-wrapper{height:var(--tui-height-m)}:host[data-size=l] .t-icon-wrapper{height:var(--tui-height-l)}.t-absolute-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center}:host[data-size=m] .t-absolute-wrapper{height:var(--tui-height-m)}:host[data-size=l] .t-absolute-wrapper{height:var(--tui-height-l)}.t-wrapper{position:relative;display:flex;align-items:center;padding:0;box-sizing:border-box}:host[data-size=s] .t-wrapper{min-height:var(--tui-height-s);padding:calc((var(--tui-height-s) - 1.5rem) / 2) 0}:host[data-size=m] .t-wrapper{min-height:var(--tui-height-m);padding:calc((var(--tui-height-m) - var(--tui-height-xs) - .25rem) / 2) 0}:host[data-size=l] .t-wrapper{padding:calc((var(--tui-height-l) - var(--tui-height-s) - .25rem) / 2) 0}:host[data-size=m]:not(._label-outside) .t-wrapper{padding:calc((var(--tui-height-m) - 2rem) / 2) 0}:host[data-size=l]:not(._label-outside) .t-wrapper{padding:calc((var(--tui-height-l) - 2.5rem) / 2) 0}.t-tag{margin:.125rem .5rem .125rem -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem;max-width:100%;flex-shrink:0}:host[data-size=m] .t-tag{-webkit-margin-start:-.125rem;margin-inline-start:-.125rem;-webkit-margin-end:.375rem;margin-inline-end:.375rem}.t-text:after{content:\",\\a0\"}.t-text_disabled{color:var(--tui-text-03)}.t-text_error{color:var(--tui-negative)}.t-text:not(.t-text_comma):last-of-type:after{content:\"\"}:host:not(._expandable) .t-text{white-space:nowrap}.t-input-wrapper,.t-value-content{position:relative;display:flex;flex:1;max-width:100%}:host[data-size=s] .t-input-wrapper,:host[data-size=s] .t-value-content{min-height:1.5rem}:host[data-size=m] .t-input-wrapper,:host[data-size=m] .t-value-content{min-height:calc(var(--tui-height-xs) + 2 * .125rem)}:host[data-size=l] .t-input-wrapper,:host[data-size=l] .t-value-content{min-height:calc(var(--tui-height-s) + 2 * .125rem)}:host:not(._label-outside) .t-input-wrapper,:host:not(._label-outside) .t-value-content{min-height:1rem}.t-input-wrapper_collapsed{flex:0;-webkit-margin-start:-.5rem;margin-inline-start:-.5rem}.t-value-content:empty{display:none}.t-ghost{visibility:hidden;white-space:pre;text-overflow:clip;min-width:.125rem}:host:not(._expandable) .t-ghost{min-width:2rem}.t-native{margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;padding:0;cursor:inherit}.t-native:-webkit-autofill,.t-native:-webkit-autofill:hover,.t-native:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.t-native_hidden{opacity:0;text-indent:-10em}.t-native::placeholder{color:var(--tui-text-03);opacity:0}[tuiWrapper][data-mode=onDark] .t-native::placeholder{color:var(--tui-text-03-night)}:host._focused .t-native:not(:-moz-read-only)::placeholder{opacity:1}:host._focused .t-native:not(:read-only)::placeholder{opacity:1}.t-error-icon{display:block;color:var(--tui-error-fill);width:1rem;height:1rem}\n"], components: [{ type: i1__namespace.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i1__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i1__namespace.TuiScrollbarComponent, selector: "tui-scrollbar", inputs: ["hidden"] }, { type: i2__namespace.TuiTagComponent, selector: "tui-tag, a[tuiTag], button[tuiTag]", inputs: ["value", "editable", "separator", "maxLength", "size", "showLoader", "status", "hoverable", "removable", "disabled", "autoColor", "leftContent"], outputs: ["edited"] }, { type: i1__namespace.TuiTooltipComponent, selector: "tui-tooltip", inputs: ["content", "direction", "appearance", "showDelay", "hideDelay", "describeId", "context"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i1__namespace.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { type: i5__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4__namespace.TuiFocusableDirective, selector: "[tuiFocusable]", inputs: ["tuiFocusable"] }, { type: i6__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "async": i3__namespace.AsyncPipe }, viewProviders: [providers.FIXED_DROPDOWN_CONTROLLER_PROVIDER], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
926
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagComponent, decorators: [{
927
+ type: i0.Component,
928
+ args: [{
929
+ selector: 'tui-input-tag',
930
+ templateUrl: './input-tag.template.html',
931
+ styleUrls: ['./input-tag.style.less'],
932
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
933
+ providers: [
934
+ i4.tuiAsFocusableItemAccessor(TuiInputTagComponent),
935
+ i4.tuiAsControl(TuiInputTagComponent),
936
+ i1.tuiAsDataListHost(TuiInputTagComponent),
937
+ i1.TEXTFIELD_CONTROLLER_PROVIDER,
938
+ i1.MODE_PROVIDER,
939
+ ],
940
+ viewProviders: [providers.FIXED_DROPDOWN_CONTROLLER_PROVIDER],
941
+ }]
942
+ }], ctorParameters: function () {
943
+ return [{ type: i6__namespace.NgControl, decorators: [{
944
+ type: i0.Optional
945
+ }, {
946
+ type: i0.Self
947
+ }, {
948
+ type: i0.Inject,
949
+ args: [i6.NgControl]
950
+ }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
951
+ type: i0.Inject,
952
+ args: [i0.ChangeDetectorRef]
953
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
954
+ type: i0.Inject,
955
+ args: [i0.ElementRef]
956
+ }] }, { type: i1__namespace.TuiModeDirective, decorators: [{
957
+ type: i0.Optional
958
+ }, {
959
+ type: i0.Inject,
960
+ args: [i1.TuiModeDirective]
961
+ }] }, { type: i7__namespace.Observable, decorators: [{
962
+ type: i0.Inject,
963
+ args: [i1.TUI_MODE]
964
+ }] }, { type: i1__namespace.TuiHintOptionsDirective, decorators: [{
965
+ type: i0.Optional
966
+ }, {
967
+ type: i0.Inject,
968
+ args: [i1.TuiHintOptionsDirective]
969
+ }] }, { type: i1__namespace.TuiTextfieldController, decorators: [{
970
+ type: i0.Inject,
971
+ args: [i1.TUI_TEXTFIELD_WATCHED_CONTROLLER]
972
+ }] }, { type: undefined, decorators: [{
973
+ type: i0.Inject,
974
+ args: [TUI_INPUT_TAG_OPTIONS]
975
+ }] }, { type: undefined, decorators: [{
976
+ type: i0.Inject,
977
+ args: [i1.TUI_COMMON_ICONS]
978
+ }] }];
979
+ }, propDecorators: { hostedDropdown: [{
980
+ type: i0.ViewChild,
981
+ args: [i1.TuiHostedDropdownComponent]
982
+ }], focusableElement: [{
983
+ type: i0.ViewChild,
984
+ args: ['focusableElement']
985
+ }], tagsContainer: [{
986
+ type: i0.ViewChild,
987
+ args: ['tagsContainer']
988
+ }], tags: [{
989
+ type: i0.ViewChildren,
990
+ args: ['tag', { read: i0.ElementRef }]
991
+ }], cleanerSvg: [{
992
+ type: i0.ViewChild,
993
+ args: ['cleaner', { read: i0.ElementRef }]
994
+ }], scrollBar: [{
995
+ type: i0.ViewChild,
996
+ args: [i1.TuiScrollbarComponent, { read: i0.ElementRef }]
997
+ }], separator: [{
998
+ type: i0.Input
999
+ }], search: [{
1000
+ type: i0.Input
1001
+ }], editable: [{
1002
+ type: i0.Input
1003
+ }], tagValidator: [{
1004
+ type: i0.Input
1005
+ }], expandable: [{
1006
+ type: i0.Input
1007
+ }, {
1008
+ type: i0.HostBinding,
1009
+ args: ['class._expandable']
1010
+ }], rows: [{
1011
+ type: i0.Input
1012
+ }], inputHidden: [{
1013
+ type: i0.Input
1014
+ }], uniqueTags: [{
1015
+ type: i0.Input
1016
+ }], maxLength: [{
1017
+ type: i0.Input
1018
+ }], placeholder: [{
1019
+ type: i0.Input
1020
+ }], removable: [{
1021
+ type: i0.Input
1022
+ }], disabledItemHandler: [{
1023
+ type: i0.Input
1024
+ }], pseudoFocusedSetter: [{
1025
+ type: i0.Input,
1026
+ args: ['pseudoFocused']
1027
+ }], searchChange: [{
1028
+ type: i0.Output
1029
+ }], datalist: [{
1030
+ type: i0.ContentChild,
1031
+ args: [i1.TuiDataListDirective, { read: i0.TemplateRef }]
1032
+ }], errorIconTemplate: [{
1033
+ type: i0.ViewChild,
1034
+ args: ['errorIcon']
1035
+ }], size: [{
1036
+ type: i0.HostBinding,
1037
+ args: ['attr.data-size']
1038
+ }], labelOutside: [{
1039
+ type: i0.HostBinding,
1040
+ args: ['class._label-outside']
1041
+ }], iconLeft: [{
1042
+ type: i0.HostBinding,
1043
+ args: ['class._icon-left']
1044
+ }], onFocusInOut: [{
1045
+ type: i0.HostListener,
1046
+ args: ['focusin.capture.silent']
1047
+ }, {
1048
+ type: i0.HostListener,
1049
+ args: ['focusout.capture.silent']
1050
+ }] } });
905
1051
 
906
- var TuiInputTagModule = /** @class */ (function () {
907
- function TuiInputTagModule() {
908
- }
909
- return TuiInputTagModule;
910
- }());
911
- TuiInputTagModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
912
- TuiInputTagModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagModule, declarations: [TuiInputTagComponent], imports: [i3.CommonModule,
913
- i6.FormsModule,
914
- i5.PolymorpheusModule,
915
- i4.TuiFocusableModule,
916
- i4.TuiHoveredModule,
917
- i4.TuiActiveZoneModule,
918
- i1.TuiSvgModule,
919
- i1.TuiScrollbarModule,
920
- i1.TuiTooltipModule,
921
- i1.TuiHostedDropdownModule,
922
- i2.TuiTagModule,
923
- i1.TuiWrapperModule], exports: [TuiInputTagComponent] });
924
- TuiInputTagModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagModule, providers: [i4.TuiScrollService], imports: [[
925
- i3.CommonModule,
926
- i6.FormsModule,
927
- i5.PolymorpheusModule,
928
- i4.TuiFocusableModule,
929
- i4.TuiHoveredModule,
930
- i4.TuiActiveZoneModule,
931
- i1.TuiSvgModule,
932
- i1.TuiScrollbarModule,
933
- i1.TuiTooltipModule,
934
- i1.TuiHostedDropdownModule,
935
- i2.TuiTagModule,
936
- i1.TuiWrapperModule,
937
- ]] });
938
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagModule, decorators: [{
939
- type: i0.NgModule,
940
- args: [{
941
- imports: [
942
- i3.CommonModule,
943
- i6.FormsModule,
944
- i5.PolymorpheusModule,
945
- i4.TuiFocusableModule,
946
- i4.TuiHoveredModule,
947
- i4.TuiActiveZoneModule,
948
- i1.TuiSvgModule,
949
- i1.TuiScrollbarModule,
950
- i1.TuiTooltipModule,
951
- i1.TuiHostedDropdownModule,
952
- i2.TuiTagModule,
953
- i1.TuiWrapperModule,
954
- ],
955
- declarations: [TuiInputTagComponent],
956
- providers: [i4.TuiScrollService],
957
- exports: [TuiInputTagComponent],
958
- }]
959
- }] });
1052
+ var TuiInputTagModule = /** @class */ (function () {
1053
+ function TuiInputTagModule() {
1054
+ }
1055
+ return TuiInputTagModule;
1056
+ }());
1057
+ TuiInputTagModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1058
+ TuiInputTagModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagModule, declarations: [TuiInputTagComponent], imports: [i3.CommonModule,
1059
+ i6.FormsModule,
1060
+ i5.PolymorpheusModule,
1061
+ i4.TuiFocusableModule,
1062
+ i4.TuiHoveredModule,
1063
+ i4.TuiActiveZoneModule,
1064
+ i1.TuiSvgModule,
1065
+ i1.TuiScrollbarModule,
1066
+ i1.TuiTooltipModule,
1067
+ i1.TuiHostedDropdownModule,
1068
+ i2.TuiTagModule,
1069
+ i1.TuiWrapperModule], exports: [TuiInputTagComponent] });
1070
+ TuiInputTagModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagModule, providers: [i4.TuiScrollService], imports: [[
1071
+ i3.CommonModule,
1072
+ i6.FormsModule,
1073
+ i5.PolymorpheusModule,
1074
+ i4.TuiFocusableModule,
1075
+ i4.TuiHoveredModule,
1076
+ i4.TuiActiveZoneModule,
1077
+ i1.TuiSvgModule,
1078
+ i1.TuiScrollbarModule,
1079
+ i1.TuiTooltipModule,
1080
+ i1.TuiHostedDropdownModule,
1081
+ i2.TuiTagModule,
1082
+ i1.TuiWrapperModule,
1083
+ ]] });
1084
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagModule, decorators: [{
1085
+ type: i0.NgModule,
1086
+ args: [{
1087
+ imports: [
1088
+ i3.CommonModule,
1089
+ i6.FormsModule,
1090
+ i5.PolymorpheusModule,
1091
+ i4.TuiFocusableModule,
1092
+ i4.TuiHoveredModule,
1093
+ i4.TuiActiveZoneModule,
1094
+ i1.TuiSvgModule,
1095
+ i1.TuiScrollbarModule,
1096
+ i1.TuiTooltipModule,
1097
+ i1.TuiHostedDropdownModule,
1098
+ i2.TuiTagModule,
1099
+ i1.TuiWrapperModule,
1100
+ ],
1101
+ declarations: [TuiInputTagComponent],
1102
+ providers: [i4.TuiScrollService],
1103
+ exports: [TuiInputTagComponent],
1104
+ }]
1105
+ }] });
960
1106
 
961
- /**
962
- * Generated bundle index. Do not edit.
963
- */
1107
+ /**
1108
+ * Generated bundle index. Do not edit.
1109
+ */
964
1110
 
965
- exports.TUI_INPUT_TAG_DEFAULT_OPTIONS = TUI_INPUT_TAG_DEFAULT_OPTIONS;
966
- exports.TUI_INPUT_TAG_OPTIONS = TUI_INPUT_TAG_OPTIONS;
967
- exports.TuiInputTagComponent = TuiInputTagComponent;
968
- exports.TuiInputTagModule = TuiInputTagModule;
969
- exports.tuiInputTagOptionsProvider = tuiInputTagOptionsProvider;
1111
+ exports.TUI_INPUT_TAG_DEFAULT_OPTIONS = TUI_INPUT_TAG_DEFAULT_OPTIONS;
1112
+ exports.TUI_INPUT_TAG_OPTIONS = TUI_INPUT_TAG_OPTIONS;
1113
+ exports.TuiInputTagComponent = TuiInputTagComponent;
1114
+ exports.TuiInputTagModule = TuiInputTagModule;
1115
+ exports.tuiInputTagOptionsProvider = tuiInputTagOptionsProvider;
970
1116
 
971
- Object.defineProperty(exports, '__esModule', { value: true });
1117
+ Object.defineProperty(exports, '__esModule', { value: true });
972
1118
 
973
1119
  }));
974
1120
  //# sourceMappingURL=taiga-ui-kit-components-input-tag.umd.js.map