@taiga-ui/kit 3.78.0 → 3.79.0-canary.50b3d5e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/bundles/taiga-ui-kit-components-accordion.umd.js +771 -625
  2. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  3. package/bundles/taiga-ui-kit-components-action.umd.js +598 -452
  4. package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
  5. package/bundles/taiga-ui-kit-components-avatar.umd.js +640 -494
  6. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  7. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +563 -417
  8. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +747 -601
  10. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  11. package/bundles/taiga-ui-kit-components-calendar-range.umd.js +718 -572
  12. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  13. package/bundles/taiga-ui-kit-components-carousel.umd.js +825 -679
  14. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +645 -499
  16. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  17. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +585 -439
  18. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  19. package/bundles/taiga-ui-kit-components-checkbox.umd.js +608 -462
  20. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  21. package/bundles/taiga-ui-kit-components-combo-box.umd.js +834 -688
  22. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  23. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +656 -510
  24. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  25. package/bundles/taiga-ui-kit-components-elastic-container.umd.js +587 -441
  26. package/bundles/taiga-ui-kit-components-elastic-container.umd.js.map +1 -1
  27. package/bundles/taiga-ui-kit-components-files.umd.js +806 -660
  28. package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
  29. package/bundles/taiga-ui-kit-components-filter.umd.js +607 -461
  30. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  31. package/bundles/taiga-ui-kit-components-input-copy.umd.js +700 -554
  32. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  33. package/bundles/taiga-ui-kit-components-input-count.umd.js +809 -663
  34. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  35. package/bundles/taiga-ui-kit-components-input-date-multi.umd.js +828 -682
  36. package/bundles/taiga-ui-kit-components-input-date-multi.umd.js.map +1 -1
  37. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +955 -809
  38. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  39. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +1042 -896
  40. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  41. package/bundles/taiga-ui-kit-components-input-date.umd.js +959 -813
  42. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  43. package/bundles/taiga-ui-kit-components-input-files.umd.js +975 -829
  44. package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
  45. package/bundles/taiga-ui-kit-components-input-inline.umd.js +612 -466
  46. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  47. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +755 -609
  48. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  49. package/bundles/taiga-ui-kit-components-input-month.umd.js +788 -642
  50. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  51. package/bundles/taiga-ui-kit-components-input-number.umd.js +941 -795
  52. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  53. package/bundles/taiga-ui-kit-components-input-password.umd.js +720 -574
  54. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  55. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +811 -665
  56. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  57. package/bundles/taiga-ui-kit-components-input-phone.umd.js +913 -767
  58. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  59. package/bundles/taiga-ui-kit-components-input-range.umd.js +796 -650
  60. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  61. package/bundles/taiga-ui-kit-components-input-slider.umd.js +737 -591
  62. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  63. package/bundles/taiga-ui-kit-components-input-tag.umd.js +1108 -962
  64. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  65. package/bundles/taiga-ui-kit-components-input-time.umd.js +1023 -877
  66. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  67. package/bundles/taiga-ui-kit-components-input-year.umd.js +705 -559
  68. package/bundles/taiga-ui-kit-components-input-year.umd.js.map +1 -1
  69. package/bundles/taiga-ui-kit-components-input.umd.js +661 -515
  70. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  71. package/bundles/taiga-ui-kit-components-items-with-more.umd.js +689 -543
  72. package/bundles/taiga-ui-kit-components-items-with-more.umd.js.map +1 -1
  73. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +742 -596
  74. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  75. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +544 -398
  76. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
  77. package/bundles/taiga-ui-kit-components-multi-select.umd.js +1340 -1194
  78. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  79. package/bundles/taiga-ui-kit-components-pagination.umd.js +810 -664
  80. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  81. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +152 -6
  82. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
  83. package/bundles/taiga-ui-kit-components-progress.umd.js +152 -6
  84. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  85. package/bundles/taiga-ui-kit-components-push.umd.js +152 -6
  86. package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
  87. package/bundles/taiga-ui-kit-components-radio-block.umd.js +645 -499
  88. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  89. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +616 -470
  90. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  91. package/bundles/taiga-ui-kit-components-radio-list.umd.js +628 -482
  92. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  93. package/bundles/taiga-ui-kit-components-radio.umd.js +689 -543
  94. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  95. package/bundles/taiga-ui-kit-components-range.umd.js +811 -665
  96. package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
  97. package/bundles/taiga-ui-kit-components-rating.umd.js +646 -500
  98. package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
  99. package/bundles/taiga-ui-kit-components-routable-dialog.umd.js +586 -440
  100. package/bundles/taiga-ui-kit-components-routable-dialog.umd.js.map +1 -1
  101. package/bundles/taiga-ui-kit-components-select.umd.js +933 -787
  102. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  103. package/bundles/taiga-ui-kit-components-slider.umd.js +943 -797
  104. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  105. package/bundles/taiga-ui-kit-components-stepper.umd.js +764 -618
  106. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  107. package/bundles/taiga-ui-kit-components-tabs.umd.js +152 -6
  108. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  109. package/bundles/taiga-ui-kit-components-textarea.umd.js +966 -820
  110. package/bundles/taiga-ui-kit-components-textarea.umd.js.map +1 -1
  111. package/bundles/taiga-ui-kit-components-tiles.umd.js +839 -693
  112. package/bundles/taiga-ui-kit-components-tiles.umd.js.map +1 -1
  113. package/bundles/taiga-ui-kit-components-toggle.umd.js +711 -565
  114. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  115. package/bundles/taiga-ui-kit-constants.umd.js +152 -6
  116. package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
  117. package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js +637 -491
  118. package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js.map +1 -1
  119. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +605 -459
  120. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
  121. package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js +540 -394
  122. package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js.map +1 -1
  123. package/bundles/taiga-ui-kit-pipes-field-error.umd.js +693 -547
  124. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
  125. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +616 -470
  126. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
  127. package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js +524 -378
  128. package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js.map +1 -1
  129. package/bundles/taiga-ui-kit-utils-mask.umd.js +152 -6
  130. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  131. package/bundles/taiga-ui-kit-utils-math.umd.js +152 -6
  132. package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
  133. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +152 -6
  134. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  135. package/package.json +42 -42
@@ -1,980 +1,1126 @@
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'), require('rxjs/operators'), require('@taiga-ui/kit/components/tag'), require('@angular/common'), require('@tinkoff/ng-polymorpheus')) :
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', 'rxjs/operators', '@taiga-ui/kit/components/tag', '@angular/common', '@tinkoff/ng-polymorpheus'], 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, global.rxjs.operators, global["taiga-ui"].kit.components.tag, global.ng.common, global.i5));
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'), require('rxjs/operators'), require('@taiga-ui/kit/components/tag'), require('@angular/common'), require('@tinkoff/ng-polymorpheus')) :
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', 'rxjs/operators', '@taiga-ui/kit/components/tag', '@angular/common', '@tinkoff/ng-polymorpheus'], 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, global.rxjs.operators, global["taiga-ui"].kit.components.tag, global.ng.common, global.i5));
5
5
  })(this, (function (exports, i0, i6, i4, i1, providers, i7, operators, i2, i3, i5) { '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 i7__namespace = /*#__PURE__*/_interopNamespace(i7);
30
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
31
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
32
- var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
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 i7__namespace = /*#__PURE__*/_interopNamespace(i7);
30
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
31
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
32
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
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
- autoColor: false,
354
- separator: ',',
355
- tagStatus: 'primary',
356
- uniqueTags: true,
357
- };
358
- /**
359
- * Default parameters for InputTag component
360
- */
361
- var TUI_INPUT_TAG_OPTIONS = i4.tuiCreateToken(TUI_INPUT_TAG_DEFAULT_OPTIONS);
362
- function tuiInputTagOptionsProvider(options) {
363
- return i4.tuiProvideOptions(TUI_INPUT_TAG_OPTIONS, options, TUI_INPUT_TAG_DEFAULT_OPTIONS);
364
- }
498
+ var TUI_INPUT_TAG_DEFAULT_OPTIONS = {
499
+ autoColor: false,
500
+ separator: ',',
501
+ tagStatus: 'primary',
502
+ uniqueTags: true,
503
+ };
504
+ /**
505
+ * Default parameters for InputTag component
506
+ */
507
+ var TUI_INPUT_TAG_OPTIONS = i4.tuiCreateToken(TUI_INPUT_TAG_DEFAULT_OPTIONS);
508
+ function tuiInputTagOptionsProvider(options) {
509
+ return i4.tuiProvideOptions(TUI_INPUT_TAG_OPTIONS, options, TUI_INPUT_TAG_DEFAULT_OPTIONS);
510
+ }
365
511
 
366
- var TAG_SIZE_REM = {
367
- s: 1.25,
368
- m: 1.5,
369
- l: 2,
370
- };
371
- var LINE_HEIGHT_REM = {
372
- s: 1,
373
- m: 1.25,
374
- l: 1.25,
375
- };
376
- var TAG_VERTICAL_SPACE_REM = 0.125;
377
- var TuiInputTagComponent = /** @class */ (function (_super) {
378
- __extends(TuiInputTagComponent, _super);
379
- function TuiInputTagComponent(control, cdr, el, modeDirective, mode$, hintOptions, controller, options, icons) {
380
- var _this = _super.call(this, control, cdr) || this;
381
- _this.el = el;
382
- _this.modeDirective = modeDirective;
383
- _this.mode$ = mode$;
384
- _this.hintOptions = hintOptions;
385
- _this.controller = controller;
386
- _this.options = options;
387
- _this.icons = icons;
388
- _this.tags = i4.EMPTY_QUERY;
389
- _this.separator = _this.options.separator;
390
- _this.search = '';
391
- _this.editable = true;
392
- _this.tagValidator = i4.ALWAYS_TRUE_HANDLER;
393
- // TODO: 4.0 Consider removing and use rows = 1 instead
394
- _this.expandable = true;
395
- _this.rows = Infinity;
396
- _this.inputHidden = false;
397
- _this.uniqueTags = _this.options.uniqueTags;
398
- _this.autoColor = _this.options.autoColor;
399
- _this.maxLength = null;
400
- _this.placeholder = '';
401
- _this.removable = true;
402
- _this.disabledItemHandler = i4.ALWAYS_FALSE_HANDLER;
403
- _this.searchChange = new i0.EventEmitter();
404
- _this.status$ = _this.mode$.pipe(operators.map(function () { return _this.status; }));
405
- _this.open = false;
406
- return _this;
407
- }
408
- Object.defineProperty(TuiInputTagComponent.prototype, "pseudoFocusedSetter", {
409
- set: function (value) {
410
- if (!value && !this.focused) {
411
- this.scrollTo(0);
412
- }
413
- this.pseudoFocus = value;
414
- },
415
- enumerable: false,
416
- configurable: true
417
- });
418
- Object.defineProperty(TuiInputTagComponent.prototype, "nativeFocusableElement", {
419
- get: function () {
420
- return !this.focusableElement || this.computedDisabled
421
- ? null
422
- : this.focusableElement.nativeElement;
423
- },
424
- enumerable: false,
425
- configurable: true
426
- });
427
- Object.defineProperty(TuiInputTagComponent.prototype, "focused", {
428
- get: function () {
429
- var _a;
430
- return (i4.tuiIsNativeFocusedIn(this.el.nativeElement) || !!((_a = this.hostedDropdown) === null || _a === void 0 ? void 0 : _a.focused));
431
- },
432
- enumerable: false,
433
- configurable: true
434
- });
435
- Object.defineProperty(TuiInputTagComponent.prototype, "appearance", {
436
- get: function () {
437
- return this.controller.appearance;
438
- },
439
- enumerable: false,
440
- configurable: true
441
- });
442
- Object.defineProperty(TuiInputTagComponent.prototype, "size", {
443
- get: function () {
444
- return this.controller.size;
445
- },
446
- enumerable: false,
447
- configurable: true
448
- });
449
- Object.defineProperty(TuiInputTagComponent.prototype, "labelOutside", {
450
- get: function () {
451
- var _c = this.controller, size = _c.size, labelOutside = _c.labelOutside;
452
- return size === 's' || labelOutside;
453
- },
454
- enumerable: false,
455
- configurable: true
456
- });
457
- Object.defineProperty(TuiInputTagComponent.prototype, "iconLeft", {
458
- get: function () {
459
- return this.controller.iconLeft;
460
- },
461
- enumerable: false,
462
- configurable: true
463
- });
464
- Object.defineProperty(TuiInputTagComponent.prototype, "icon", {
465
- get: function () {
466
- return this.controller.icon;
467
- },
468
- enumerable: false,
469
- configurable: true
470
- });
471
- Object.defineProperty(TuiInputTagComponent.prototype, "iconCleaner", {
472
- get: function () {
473
- return this.controller.options.iconCleaner;
474
- },
475
- enumerable: false,
476
- configurable: true
477
- });
478
- Object.defineProperty(TuiInputTagComponent.prototype, "hasCleaner", {
479
- get: function () {
480
- return this.controller.cleaner && this.hasValue && this.interactive;
481
- },
482
- enumerable: false,
483
- configurable: true
484
- });
485
- Object.defineProperty(TuiInputTagComponent.prototype, "hasNativeValue", {
486
- get: function () {
487
- return !!this.search;
488
- },
489
- enumerable: false,
490
- configurable: true
491
- });
492
- Object.defineProperty(TuiInputTagComponent.prototype, "hasValue", {
493
- get: function () {
494
- return !!this.value.length || this.hasNativeValue;
495
- },
496
- enumerable: false,
497
- configurable: true
498
- });
499
- Object.defineProperty(TuiInputTagComponent.prototype, "hasPlaceholder", {
500
- get: function () {
501
- return (!this.labelOutside ||
502
- (!this.hasValue && (!this.hasExampleText || this.inputHidden)));
503
- },
504
- enumerable: false,
505
- configurable: true
506
- });
507
- Object.defineProperty(TuiInputTagComponent.prototype, "placeholderRaised", {
508
- get: function () {
509
- return (!this.labelOutside &&
510
- ((this.computedFocused && !this.readOnly) || this.hasValue));
511
- },
512
- enumerable: false,
513
- configurable: true
514
- });
515
- Object.defineProperty(TuiInputTagComponent.prototype, "hasExampleText", {
516
- get: function () {
517
- var _a;
518
- return (!!((_a = this.nativeFocusableElement) === null || _a === void 0 ? void 0 : _a.placeholder) &&
519
- this.computedFocused &&
520
- !this.hasValue &&
521
- !this.readOnly);
522
- },
523
- enumerable: false,
524
- configurable: true
525
- });
526
- Object.defineProperty(TuiInputTagComponent.prototype, "hasRightIcons", {
527
- get: function () {
528
- var _a;
529
- return (this.hasCleaner ||
530
- !!this.icon ||
531
- (!!((_a = this.hintOptions) === null || _a === void 0 ? void 0 : _a.content) && !this.computedDisabled));
532
- },
533
- enumerable: false,
534
- configurable: true
535
- });
536
- Object.defineProperty(TuiInputTagComponent.prototype, "showHint", {
537
- get: function () {
538
- var _a;
539
- return (!!((_a = this.hintOptions) === null || _a === void 0 ? void 0 : _a.content) &&
540
- (this.controller.options.hintOnDisabled || !this.computedDisabled));
541
- },
542
- enumerable: false,
543
- configurable: true
544
- });
545
- Object.defineProperty(TuiInputTagComponent.prototype, "status", {
546
- get: function () {
547
- var _a;
548
- return ((_a = this.modeDirective) === null || _a === void 0 ? void 0 : _a.mode) ? 'default' : this.options.tagStatus;
549
- },
550
- enumerable: false,
551
- configurable: true
552
- });
553
- Object.defineProperty(TuiInputTagComponent.prototype, "canOpen", {
554
- get: function () {
555
- return this.interactive && !!this.datalist;
556
- },
557
- enumerable: false,
558
- configurable: true
559
- });
560
- Object.defineProperty(TuiInputTagComponent.prototype, "computeMaxHeight", {
561
- get: function () {
562
- return this.expandable ? this.rows * this.lineHeight : null;
563
- },
564
- enumerable: false,
565
- configurable: true
566
- });
567
- TuiInputTagComponent.prototype.onFocusInOut = function () {
568
- this.cdr.detectChanges();
569
- };
570
- TuiInputTagComponent.prototype.detectRetargetFromLabel = function (event) {
571
- if (i4.tuiRetargetedBoundaryCrossing(event)) {
572
- event.stopImmediatePropagation();
573
- }
574
- };
575
- TuiInputTagComponent.prototype.getLeftContent = function (tag) {
576
- return !this.tagValidator(tag) && this.errorIconTemplate
577
- ? this.errorIconTemplate
578
- : '';
579
- };
580
- TuiInputTagComponent.prototype.onCleanerClick = function () {
581
- this.updateSearch('');
582
- this.clear();
583
- this.focusInput();
584
- };
585
- TuiInputTagComponent.prototype.onActiveZone = function (active) {
586
- this.open = false;
587
- this.addTag();
588
- this.updateFocused(active);
589
- if (!active && !this.computedFocused) {
590
- this.scrollTo(0);
591
- }
592
- };
593
- TuiInputTagComponent.prototype.onMouseDown = function (event) {
594
- var _a;
595
- var actualTarget = i4.tuiGetActualTarget(event);
596
- if (!this.focusableElement ||
597
- actualTarget === this.focusableElement.nativeElement ||
598
- !i4.tuiIsElement(event.target) ||
599
- ((_a = this.cleanerSvg) === null || _a === void 0 ? void 0 : _a.nativeElement.contains(event.target)) ||
600
- (this.tagsContainer &&
601
- actualTarget !== this.tagsContainer.nativeElement &&
602
- this.tagsContainer.nativeElement.contains(actualTarget))) {
603
- return;
604
- }
605
- event.preventDefault();
606
- this.focusInput();
607
- };
608
- TuiInputTagComponent.prototype.onFieldKeyDownBackspace = function (event) {
609
- if (!this.labelOutside && !this.hasNativeValue && this.value.length) {
610
- this.deleteLastEnabledItem();
611
- }
612
- else {
613
- this.onFieldKeyDownArrowLeft(event);
614
- }
615
- };
616
- TuiInputTagComponent.prototype.onFieldKeyDownArrowLeft = function (event) {
617
- if (!this.labelOutside || this.hasNativeValue || !this.value.length) {
618
- return;
619
- }
620
- event.preventDefault();
621
- this.tags.last.nativeElement.focus();
622
- };
623
- TuiInputTagComponent.prototype.onFieldKeyDownEnter = function () {
624
- this.addTag();
625
- this.scrollTo();
626
- };
627
- TuiInputTagComponent.prototype.onTagKeyDownArrowLeft = function (currentIndex) {
628
- if (currentIndex > 0) {
629
- this.onScrollKeyDown(currentIndex, -1);
630
- }
631
- };
632
- TuiInputTagComponent.prototype.onTagKeyDownArrowRight = function (currentIndex) {
633
- if (currentIndex === this.value.length - 1) {
634
- this.focusInput(false);
635
- }
636
- else {
637
- this.onScrollKeyDown(currentIndex, 1);
638
- }
639
- };
640
- TuiInputTagComponent.prototype.onTagEdited = function (value, index) {
641
- var _this = this;
642
- this.focusInput(value === '');
643
- this.value = this.filterValue(this.value
644
- .map(function (tag, tagIndex) { return tagIndex !== index
645
- ? tag
646
- : value
647
- .split(_this.separator)
648
- .map(function (tag) { return tag.trim(); })
649
- .filter(Boolean); })
650
- .reduce(function (result, item) { return result.concat(item); }, []));
651
- };
652
- TuiInputTagComponent.prototype.handleOption = function (item) {
653
- this.focusInput();
654
- this.updateSearch('');
655
- this.value = this.filterValue(this.value.concat(item));
656
- this.open = false;
657
- this.scrollTo();
658
- };
659
- TuiInputTagComponent.prototype.onInput = function (value) {
660
- var _this = this;
661
- var array = value.split(this.separator);
662
- var tags = array
663
- .map(function (item) { return _this.clippedValue(item.trim()); })
664
- .filter(function (item, index, _c) {
665
- var length = _c.length;
666
- return item.length > 0 && index !== length - 1;
667
- });
668
- var validated = tags.filter(function (tag) { return !_this.disabledItemHandler(tag); });
669
- if (array.length > 1) {
670
- this.updateSearch(this.clippedValue(array[array.length - 1].trim()));
671
- this.value = this.filterValue(__spreadArray(__spreadArray([], __read(this.value)), __read(validated)));
672
- }
673
- else {
674
- this.updateSearch(this.clippedValue(value));
675
- }
676
- this.open = this.hasNativeValue;
677
- };
678
- TuiInputTagComponent.prototype.onPaste = function (event) {
679
- var pasted = i4.tuiGetClipboardDataText(event);
680
- this.onInput(pasted || '');
681
- };
682
- TuiInputTagComponent.prototype.onDrop = function (_c) {
683
- var dataTransfer = _c.dataTransfer;
684
- if (dataTransfer) {
685
- this.onInput(dataTransfer.getData('text') || '');
686
- }
687
- };
688
- TuiInputTagComponent.prototype.setDisabledState = function () {
689
- _super.prototype.setDisabledState.call(this);
690
- this.open = false;
691
- };
692
- TuiInputTagComponent.prototype.trackByFn = function (_, tag) {
693
- // Actually tag has TuiStringifiableItem type not string
694
- return tag.toString();
695
- };
696
- TuiInputTagComponent.prototype.scrollTo = function (scrollLeft) {
697
- var _this = this;
698
- var _a;
699
- if (scrollLeft === void 0) {
700
- scrollLeft = (_a = this.scrollBar) === null || _a === void 0 ? void 0 : _a.nativeElement.scrollWidth;
701
- }
702
- // Allow change detection to run and add new tag to DOM
703
- i7.timer(0)
704
- .pipe(operators.takeUntil(this.destroy$))
705
- .subscribe(function () {
706
- if (_this.scrollBar) {
707
- _this.scrollBar.nativeElement.scrollLeft = scrollLeft || 0;
708
- }
709
- });
710
- };
711
- TuiInputTagComponent.prototype.filterValue = function (value) {
712
- var _this = this;
713
- var seen = new Set();
714
- return value
715
- .reverse()
716
- .filter(function (item) { return !_this.uniqueTags || (item && !seen.has(item) && seen.add(item)); })
717
- .reverse();
718
- };
719
- TuiInputTagComponent.prototype.onScrollKeyDown = function (currentIndex, flag) {
720
- var tag = this.tags.find(function (_item, index) { return index === currentIndex + flag; });
721
- if (!tag || !this.scrollBar) {
722
- return;
723
- }
724
- tag.nativeElement.focus();
725
- if (flag * this.scrollBar.nativeElement.clientWidth -
726
- flag * tag.nativeElement.offsetLeft -
727
- tag.nativeElement.clientWidth <
728
- 0) {
729
- this.scrollBar.nativeElement.scrollLeft +=
730
- flag * tag.nativeElement.clientWidth;
731
- }
732
- };
733
- TuiInputTagComponent.prototype.updateSearch = function (value) {
734
- if (this.focusableElement) {
735
- this.focusableElement.nativeElement.value = value;
736
- }
737
- this.search = value;
738
- this.searchChange.emit(value);
739
- };
740
- TuiInputTagComponent.prototype.addTag = function () {
741
- var _a, _b;
742
- var inputValue = (_b = (_a = this.search) === null || _a === void 0 ? void 0 : _a.trim()) !== null && _b !== void 0 ? _b : '';
743
- if (!inputValue || this.disabledItemHandler(inputValue)) {
744
- return;
745
- }
746
- this.updateSearch('');
747
- this.value = this.filterValue(this.value.concat(inputValue));
748
- };
749
- TuiInputTagComponent.prototype.deleteLastEnabledItem = function () {
750
- for (var index = this.value.length - 1; index >= 0; index--) {
751
- if (!this.disabledItemHandler(this.value[index])) {
752
- this.value = i4.tuiArrayRemove(this.value, index);
753
- break;
754
- }
755
- }
756
- };
757
- TuiInputTagComponent.prototype.focusInput = function (preventScroll) {
758
- if (preventScroll === void 0) { preventScroll = true; }
759
- var _a;
760
- (_a = this.nativeFocusableElement) === null || _a === void 0 ? void 0 : _a.focus({ preventScroll: preventScroll });
761
- };
762
- TuiInputTagComponent.prototype.clippedValue = function (value) {
763
- return value.slice(0, this.maxLength || value.length);
764
- };
765
- Object.defineProperty(TuiInputTagComponent.prototype, "lineHeight", {
766
- get: function () {
767
- return this.labelOutside
768
- ? TAG_SIZE_REM[this.controller.size] + 2 * TAG_VERTICAL_SPACE_REM
769
- : LINE_HEIGHT_REM[this.controller.size];
770
- },
771
- enumerable: false,
772
- configurable: true
773
- });
774
- return TuiInputTagComponent;
775
- }(i4.AbstractTuiMultipleControl));
776
- 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 });
777
- 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", autoColor: "autoColor", 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: [
778
- i4.tuiAsFocusableItemAccessor(TuiInputTagComponent),
779
- i4.tuiAsControl(TuiInputTagComponent),
780
- i1.tuiAsDataListHost(TuiInputTagComponent),
781
- i1.TEXTFIELD_CONTROLLER_PROVIDER,
782
- i1.MODE_PROVIDER,
783
- ], 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 [autoColor]=\"autoColor\"\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}@supports (-webkit-touch-callout: none){.t-input:active{font-size:1rem}}.t-input[inputMode=none]{caret-color:transparent}.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=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=l]:not(._label-outside) .t-input{padding-top:1.25rem}:host[data-size=l]:not(._label-outside) .t-input:-webkit-autofill+.t-content .t-placeholder{font-size:.8156rem;transform:translateY(-.625rem)}:host[data-size=m]:not(._label-outside) .t-input:-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}@supports (-webkit-touch-callout: none){.t-native:active{font-size:1rem}}.t-native[inputMode=none]{caret-color:transparent}.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 });
784
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagComponent, decorators: [{
785
- type: i0.Component,
786
- args: [{
787
- selector: 'tui-input-tag',
788
- templateUrl: './input-tag.template.html',
789
- styleUrls: ['./input-tag.style.less'],
790
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
791
- providers: [
792
- i4.tuiAsFocusableItemAccessor(TuiInputTagComponent),
793
- i4.tuiAsControl(TuiInputTagComponent),
794
- i1.tuiAsDataListHost(TuiInputTagComponent),
795
- i1.TEXTFIELD_CONTROLLER_PROVIDER,
796
- i1.MODE_PROVIDER,
797
- ],
798
- viewProviders: [providers.FIXED_DROPDOWN_CONTROLLER_PROVIDER],
799
- }]
800
- }], ctorParameters: function () {
801
- return [{ type: i6__namespace.NgControl, decorators: [{
802
- type: i0.Optional
803
- }, {
804
- type: i0.Self
805
- }, {
806
- type: i0.Inject,
807
- args: [i6.NgControl]
808
- }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
809
- type: i0.Inject,
810
- args: [i0.ChangeDetectorRef]
811
- }] }, { type: i0__namespace.ElementRef, decorators: [{
812
- type: i0.Inject,
813
- args: [i0.ElementRef]
814
- }] }, { type: i1__namespace.TuiModeDirective, decorators: [{
815
- type: i0.Optional
816
- }, {
817
- type: i0.Inject,
818
- args: [i1.TuiModeDirective]
819
- }] }, { type: i7__namespace.Observable, decorators: [{
820
- type: i0.Inject,
821
- args: [i1.TUI_MODE]
822
- }] }, { type: i1__namespace.TuiHintOptionsDirective, decorators: [{
823
- type: i0.Optional
824
- }, {
825
- type: i0.Inject,
826
- args: [i1.TuiHintOptionsDirective]
827
- }] }, { type: i1__namespace.TuiTextfieldController, decorators: [{
828
- type: i0.Inject,
829
- args: [i1.TUI_TEXTFIELD_WATCHED_CONTROLLER]
830
- }] }, { type: undefined, decorators: [{
831
- type: i0.Inject,
832
- args: [TUI_INPUT_TAG_OPTIONS]
833
- }] }, { type: undefined, decorators: [{
834
- type: i0.Inject,
835
- args: [i1.TUI_COMMON_ICONS]
836
- }] }];
837
- }, propDecorators: { hostedDropdown: [{
838
- type: i0.ViewChild,
839
- args: [i1.TuiHostedDropdownComponent]
840
- }], focusableElement: [{
841
- type: i0.ViewChild,
842
- args: ['focusableElement']
843
- }], tagsContainer: [{
844
- type: i0.ViewChild,
845
- args: ['tagsContainer']
846
- }], tags: [{
847
- type: i0.ViewChildren,
848
- args: ['tag', { read: i0.ElementRef }]
849
- }], cleanerSvg: [{
850
- type: i0.ViewChild,
851
- args: ['cleaner', { read: i0.ElementRef }]
852
- }], scrollBar: [{
853
- type: i0.ViewChild,
854
- args: [i1.TuiScrollbarComponent, { read: i0.ElementRef }]
855
- }], separator: [{
856
- type: i0.Input
857
- }], search: [{
858
- type: i0.Input
859
- }], editable: [{
860
- type: i0.Input
861
- }], tagValidator: [{
862
- type: i0.Input
863
- }], expandable: [{
864
- type: i0.Input
865
- }, {
866
- type: i0.HostBinding,
867
- args: ['class._expandable']
868
- }], rows: [{
869
- type: i0.Input
870
- }], inputHidden: [{
871
- type: i0.Input
872
- }], uniqueTags: [{
873
- type: i0.Input
874
- }], autoColor: [{
875
- type: i0.Input
876
- }], maxLength: [{
877
- type: i0.Input
878
- }], placeholder: [{
879
- type: i0.Input
880
- }], removable: [{
881
- type: i0.Input
882
- }], disabledItemHandler: [{
883
- type: i0.Input
884
- }], pseudoFocusedSetter: [{
885
- type: i0.Input,
886
- args: ['pseudoFocused']
887
- }], searchChange: [{
888
- type: i0.Output
889
- }], datalist: [{
890
- type: i0.ContentChild,
891
- args: [i1.TuiDataListDirective, { read: i0.TemplateRef }]
892
- }], errorIconTemplate: [{
893
- type: i0.ViewChild,
894
- args: ['errorIcon']
895
- }], size: [{
896
- type: i0.HostBinding,
897
- args: ['attr.data-size']
898
- }], labelOutside: [{
899
- type: i0.HostBinding,
900
- args: ['class._label-outside']
901
- }], iconLeft: [{
902
- type: i0.HostBinding,
903
- args: ['class._icon-left']
904
- }], onFocusInOut: [{
905
- type: i0.HostListener,
906
- args: ['focusin.capture.silent']
907
- }, {
908
- type: i0.HostListener,
909
- args: ['focusout.capture.silent']
910
- }] } });
512
+ var TAG_SIZE_REM = {
513
+ s: 1.25,
514
+ m: 1.5,
515
+ l: 2,
516
+ };
517
+ var LINE_HEIGHT_REM = {
518
+ s: 1,
519
+ m: 1.25,
520
+ l: 1.25,
521
+ };
522
+ var TAG_VERTICAL_SPACE_REM = 0.125;
523
+ var TuiInputTagComponent = /** @class */ (function (_super) {
524
+ __extends(TuiInputTagComponent, _super);
525
+ function TuiInputTagComponent(control, cdr, el, modeDirective, mode$, hintOptions, controller, options, icons) {
526
+ var _this = _super.call(this, control, cdr) || this;
527
+ _this.el = el;
528
+ _this.modeDirective = modeDirective;
529
+ _this.mode$ = mode$;
530
+ _this.hintOptions = hintOptions;
531
+ _this.controller = controller;
532
+ _this.options = options;
533
+ _this.icons = icons;
534
+ _this.tags = i4.EMPTY_QUERY;
535
+ _this.separator = _this.options.separator;
536
+ _this.search = '';
537
+ _this.editable = true;
538
+ _this.tagValidator = i4.ALWAYS_TRUE_HANDLER;
539
+ // TODO: 4.0 Consider removing and use rows = 1 instead
540
+ _this.expandable = true;
541
+ _this.rows = Infinity;
542
+ _this.inputHidden = false;
543
+ _this.uniqueTags = _this.options.uniqueTags;
544
+ _this.autoColor = _this.options.autoColor;
545
+ _this.maxLength = null;
546
+ _this.placeholder = '';
547
+ _this.removable = true;
548
+ _this.disabledItemHandler = i4.ALWAYS_FALSE_HANDLER;
549
+ _this.searchChange = new i0.EventEmitter();
550
+ _this.status$ = _this.mode$.pipe(operators.map(function () { return _this.status; }));
551
+ _this.open = false;
552
+ return _this;
553
+ }
554
+ Object.defineProperty(TuiInputTagComponent.prototype, "pseudoFocusedSetter", {
555
+ set: function (value) {
556
+ if (!value && !this.focused) {
557
+ this.scrollTo(0);
558
+ }
559
+ this.pseudoFocus = value;
560
+ },
561
+ enumerable: false,
562
+ configurable: true
563
+ });
564
+ Object.defineProperty(TuiInputTagComponent.prototype, "nativeFocusableElement", {
565
+ get: function () {
566
+ return !this.focusableElement || this.computedDisabled
567
+ ? null
568
+ : this.focusableElement.nativeElement;
569
+ },
570
+ enumerable: false,
571
+ configurable: true
572
+ });
573
+ Object.defineProperty(TuiInputTagComponent.prototype, "focused", {
574
+ get: function () {
575
+ var _a;
576
+ return (i4.tuiIsNativeFocusedIn(this.el.nativeElement) || !!((_a = this.hostedDropdown) === null || _a === void 0 ? void 0 : _a.focused));
577
+ },
578
+ enumerable: false,
579
+ configurable: true
580
+ });
581
+ Object.defineProperty(TuiInputTagComponent.prototype, "appearance", {
582
+ get: function () {
583
+ return this.controller.appearance;
584
+ },
585
+ enumerable: false,
586
+ configurable: true
587
+ });
588
+ Object.defineProperty(TuiInputTagComponent.prototype, "size", {
589
+ get: function () {
590
+ return this.controller.size;
591
+ },
592
+ enumerable: false,
593
+ configurable: true
594
+ });
595
+ Object.defineProperty(TuiInputTagComponent.prototype, "labelOutside", {
596
+ get: function () {
597
+ var _c = this.controller, size = _c.size, labelOutside = _c.labelOutside;
598
+ return size === 's' || labelOutside;
599
+ },
600
+ enumerable: false,
601
+ configurable: true
602
+ });
603
+ Object.defineProperty(TuiInputTagComponent.prototype, "iconLeft", {
604
+ get: function () {
605
+ return this.controller.iconLeft;
606
+ },
607
+ enumerable: false,
608
+ configurable: true
609
+ });
610
+ Object.defineProperty(TuiInputTagComponent.prototype, "icon", {
611
+ get: function () {
612
+ return this.controller.icon;
613
+ },
614
+ enumerable: false,
615
+ configurable: true
616
+ });
617
+ Object.defineProperty(TuiInputTagComponent.prototype, "iconCleaner", {
618
+ get: function () {
619
+ return this.controller.options.iconCleaner;
620
+ },
621
+ enumerable: false,
622
+ configurable: true
623
+ });
624
+ Object.defineProperty(TuiInputTagComponent.prototype, "hasCleaner", {
625
+ get: function () {
626
+ return this.controller.cleaner && this.hasValue && this.interactive;
627
+ },
628
+ enumerable: false,
629
+ configurable: true
630
+ });
631
+ Object.defineProperty(TuiInputTagComponent.prototype, "hasNativeValue", {
632
+ get: function () {
633
+ return !!this.search;
634
+ },
635
+ enumerable: false,
636
+ configurable: true
637
+ });
638
+ Object.defineProperty(TuiInputTagComponent.prototype, "hasValue", {
639
+ get: function () {
640
+ return !!this.value.length || this.hasNativeValue;
641
+ },
642
+ enumerable: false,
643
+ configurable: true
644
+ });
645
+ Object.defineProperty(TuiInputTagComponent.prototype, "hasPlaceholder", {
646
+ get: function () {
647
+ return (!this.labelOutside ||
648
+ (!this.hasValue && (!this.hasExampleText || this.inputHidden)));
649
+ },
650
+ enumerable: false,
651
+ configurable: true
652
+ });
653
+ Object.defineProperty(TuiInputTagComponent.prototype, "placeholderRaised", {
654
+ get: function () {
655
+ return (!this.labelOutside &&
656
+ ((this.computedFocused && !this.readOnly) || this.hasValue));
657
+ },
658
+ enumerable: false,
659
+ configurable: true
660
+ });
661
+ Object.defineProperty(TuiInputTagComponent.prototype, "hasExampleText", {
662
+ get: function () {
663
+ var _a;
664
+ return (!!((_a = this.nativeFocusableElement) === null || _a === void 0 ? void 0 : _a.placeholder) &&
665
+ this.computedFocused &&
666
+ !this.hasValue &&
667
+ !this.readOnly);
668
+ },
669
+ enumerable: false,
670
+ configurable: true
671
+ });
672
+ Object.defineProperty(TuiInputTagComponent.prototype, "hasRightIcons", {
673
+ get: function () {
674
+ var _a;
675
+ return (this.hasCleaner ||
676
+ !!this.icon ||
677
+ (!!((_a = this.hintOptions) === null || _a === void 0 ? void 0 : _a.content) && !this.computedDisabled));
678
+ },
679
+ enumerable: false,
680
+ configurable: true
681
+ });
682
+ Object.defineProperty(TuiInputTagComponent.prototype, "showHint", {
683
+ get: function () {
684
+ var _a;
685
+ return (!!((_a = this.hintOptions) === null || _a === void 0 ? void 0 : _a.content) &&
686
+ (this.controller.options.hintOnDisabled || !this.computedDisabled));
687
+ },
688
+ enumerable: false,
689
+ configurable: true
690
+ });
691
+ Object.defineProperty(TuiInputTagComponent.prototype, "status", {
692
+ get: function () {
693
+ var _a;
694
+ return ((_a = this.modeDirective) === null || _a === void 0 ? void 0 : _a.mode) ? 'default' : this.options.tagStatus;
695
+ },
696
+ enumerable: false,
697
+ configurable: true
698
+ });
699
+ Object.defineProperty(TuiInputTagComponent.prototype, "canOpen", {
700
+ get: function () {
701
+ return this.interactive && !!this.datalist;
702
+ },
703
+ enumerable: false,
704
+ configurable: true
705
+ });
706
+ Object.defineProperty(TuiInputTagComponent.prototype, "computeMaxHeight", {
707
+ get: function () {
708
+ return this.expandable ? this.rows * this.lineHeight : null;
709
+ },
710
+ enumerable: false,
711
+ configurable: true
712
+ });
713
+ TuiInputTagComponent.prototype.onFocusInOut = function () {
714
+ this.cdr.detectChanges();
715
+ };
716
+ TuiInputTagComponent.prototype.detectRetargetFromLabel = function (event) {
717
+ if (i4.tuiRetargetedBoundaryCrossing(event)) {
718
+ event.stopImmediatePropagation();
719
+ }
720
+ };
721
+ TuiInputTagComponent.prototype.getLeftContent = function (tag) {
722
+ return !this.tagValidator(tag) && this.errorIconTemplate
723
+ ? this.errorIconTemplate
724
+ : '';
725
+ };
726
+ TuiInputTagComponent.prototype.onCleanerClick = function () {
727
+ this.updateSearch('');
728
+ this.clear();
729
+ this.focusInput();
730
+ };
731
+ TuiInputTagComponent.prototype.onActiveZone = function (active) {
732
+ this.open = false;
733
+ this.addTag();
734
+ this.updateFocused(active);
735
+ if (!active && !this.computedFocused) {
736
+ this.scrollTo(0);
737
+ }
738
+ };
739
+ TuiInputTagComponent.prototype.onMouseDown = function (event) {
740
+ var _a;
741
+ var actualTarget = i4.tuiGetActualTarget(event);
742
+ if (!this.focusableElement ||
743
+ actualTarget === this.focusableElement.nativeElement ||
744
+ !i4.tuiIsElement(event.target) ||
745
+ ((_a = this.cleanerSvg) === null || _a === void 0 ? void 0 : _a.nativeElement.contains(event.target)) ||
746
+ (this.tagsContainer &&
747
+ actualTarget !== this.tagsContainer.nativeElement &&
748
+ this.tagsContainer.nativeElement.contains(actualTarget))) {
749
+ return;
750
+ }
751
+ event.preventDefault();
752
+ this.focusInput();
753
+ };
754
+ TuiInputTagComponent.prototype.onFieldKeyDownBackspace = function (event) {
755
+ if (!this.labelOutside && !this.hasNativeValue && this.value.length) {
756
+ this.deleteLastEnabledItem();
757
+ }
758
+ else {
759
+ this.onFieldKeyDownArrowLeft(event);
760
+ }
761
+ };
762
+ TuiInputTagComponent.prototype.onFieldKeyDownArrowLeft = function (event) {
763
+ if (!this.labelOutside || this.hasNativeValue || !this.value.length) {
764
+ return;
765
+ }
766
+ event.preventDefault();
767
+ this.tags.last.nativeElement.focus();
768
+ };
769
+ TuiInputTagComponent.prototype.onFieldKeyDownEnter = function () {
770
+ this.addTag();
771
+ this.scrollTo();
772
+ };
773
+ TuiInputTagComponent.prototype.onTagKeyDownArrowLeft = function (currentIndex) {
774
+ if (currentIndex > 0) {
775
+ this.onScrollKeyDown(currentIndex, -1);
776
+ }
777
+ };
778
+ TuiInputTagComponent.prototype.onTagKeyDownArrowRight = function (currentIndex) {
779
+ if (currentIndex === this.value.length - 1) {
780
+ this.focusInput(false);
781
+ }
782
+ else {
783
+ this.onScrollKeyDown(currentIndex, 1);
784
+ }
785
+ };
786
+ TuiInputTagComponent.prototype.onTagEdited = function (value, index) {
787
+ var _this = this;
788
+ this.focusInput(value === '');
789
+ this.value = this.filterValue(this.value
790
+ .map(function (tag, tagIndex) { return tagIndex !== index
791
+ ? tag
792
+ : value
793
+ .split(_this.separator)
794
+ .map(function (tag) { return tag.trim(); })
795
+ .filter(Boolean); })
796
+ .reduce(function (result, item) { return result.concat(item); }, []));
797
+ };
798
+ TuiInputTagComponent.prototype.handleOption = function (item) {
799
+ this.focusInput();
800
+ this.updateSearch('');
801
+ this.value = this.filterValue(this.value.concat(item));
802
+ this.open = false;
803
+ this.scrollTo();
804
+ };
805
+ TuiInputTagComponent.prototype.onInput = function (value) {
806
+ var _this = this;
807
+ var array = value.split(this.separator);
808
+ var tags = array
809
+ .map(function (item) { return _this.clippedValue(item.trim()); })
810
+ .filter(function (item, index, _c) {
811
+ var length = _c.length;
812
+ return item.length > 0 && index !== length - 1;
813
+ });
814
+ var validated = tags.filter(function (tag) { return !_this.disabledItemHandler(tag); });
815
+ if (array.length > 1) {
816
+ this.updateSearch(this.clippedValue(array[array.length - 1].trim()));
817
+ this.value = this.filterValue(__spreadArray(__spreadArray([], __read(this.value)), __read(validated)));
818
+ }
819
+ else {
820
+ this.updateSearch(this.clippedValue(value));
821
+ }
822
+ this.open = this.hasNativeValue;
823
+ };
824
+ TuiInputTagComponent.prototype.onPaste = function (event) {
825
+ var pasted = i4.tuiGetClipboardDataText(event);
826
+ this.onInput(pasted || '');
827
+ };
828
+ TuiInputTagComponent.prototype.onDrop = function (_c) {
829
+ var dataTransfer = _c.dataTransfer;
830
+ if (dataTransfer) {
831
+ this.onInput(dataTransfer.getData('text') || '');
832
+ }
833
+ };
834
+ TuiInputTagComponent.prototype.setDisabledState = function () {
835
+ _super.prototype.setDisabledState.call(this);
836
+ this.open = false;
837
+ };
838
+ TuiInputTagComponent.prototype.trackByFn = function (_, tag) {
839
+ // Actually tag has TuiStringifiableItem type not string
840
+ return tag.toString();
841
+ };
842
+ TuiInputTagComponent.prototype.scrollTo = function (scrollLeft) {
843
+ var _this = this;
844
+ var _a;
845
+ if (scrollLeft === void 0) {
846
+ scrollLeft = (_a = this.scrollBar) === null || _a === void 0 ? void 0 : _a.nativeElement.scrollWidth;
847
+ }
848
+ // Allow change detection to run and add new tag to DOM
849
+ i7.timer(0)
850
+ .pipe(operators.takeUntil(this.destroy$))
851
+ .subscribe(function () {
852
+ if (_this.scrollBar) {
853
+ _this.scrollBar.nativeElement.scrollLeft = scrollLeft || 0;
854
+ }
855
+ });
856
+ };
857
+ TuiInputTagComponent.prototype.filterValue = function (value) {
858
+ var _this = this;
859
+ var seen = new Set();
860
+ return value
861
+ .reverse()
862
+ .filter(function (item) { return !_this.uniqueTags || (item && !seen.has(item) && seen.add(item)); })
863
+ .reverse();
864
+ };
865
+ TuiInputTagComponent.prototype.onScrollKeyDown = function (currentIndex, flag) {
866
+ var tag = this.tags.find(function (_item, index) { return index === currentIndex + flag; });
867
+ if (!tag || !this.scrollBar) {
868
+ return;
869
+ }
870
+ tag.nativeElement.focus();
871
+ if (flag * this.scrollBar.nativeElement.clientWidth -
872
+ flag * tag.nativeElement.offsetLeft -
873
+ tag.nativeElement.clientWidth <
874
+ 0) {
875
+ this.scrollBar.nativeElement.scrollLeft +=
876
+ flag * tag.nativeElement.clientWidth;
877
+ }
878
+ };
879
+ TuiInputTagComponent.prototype.updateSearch = function (value) {
880
+ if (this.focusableElement) {
881
+ this.focusableElement.nativeElement.value = value;
882
+ }
883
+ this.search = value;
884
+ this.searchChange.emit(value);
885
+ };
886
+ TuiInputTagComponent.prototype.addTag = function () {
887
+ var _a, _b;
888
+ var inputValue = (_b = (_a = this.search) === null || _a === void 0 ? void 0 : _a.trim()) !== null && _b !== void 0 ? _b : '';
889
+ if (!inputValue || this.disabledItemHandler(inputValue)) {
890
+ return;
891
+ }
892
+ this.updateSearch('');
893
+ this.value = this.filterValue(this.value.concat(inputValue));
894
+ };
895
+ TuiInputTagComponent.prototype.deleteLastEnabledItem = function () {
896
+ for (var index = this.value.length - 1; index >= 0; index--) {
897
+ if (!this.disabledItemHandler(this.value[index])) {
898
+ this.value = i4.tuiArrayRemove(this.value, index);
899
+ break;
900
+ }
901
+ }
902
+ };
903
+ TuiInputTagComponent.prototype.focusInput = function (preventScroll) {
904
+ if (preventScroll === void 0) { preventScroll = true; }
905
+ var _a;
906
+ (_a = this.nativeFocusableElement) === null || _a === void 0 ? void 0 : _a.focus({ preventScroll: preventScroll });
907
+ };
908
+ TuiInputTagComponent.prototype.clippedValue = function (value) {
909
+ return value.slice(0, this.maxLength || value.length);
910
+ };
911
+ Object.defineProperty(TuiInputTagComponent.prototype, "lineHeight", {
912
+ get: function () {
913
+ return this.labelOutside
914
+ ? TAG_SIZE_REM[this.controller.size] + 2 * TAG_VERTICAL_SPACE_REM
915
+ : LINE_HEIGHT_REM[this.controller.size];
916
+ },
917
+ enumerable: false,
918
+ configurable: true
919
+ });
920
+ return TuiInputTagComponent;
921
+ }(i4.AbstractTuiMultipleControl));
922
+ 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 });
923
+ 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", autoColor: "autoColor", 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: [
924
+ i4.tuiAsFocusableItemAccessor(TuiInputTagComponent),
925
+ i4.tuiAsControl(TuiInputTagComponent),
926
+ i1.tuiAsDataListHost(TuiInputTagComponent),
927
+ i1.TEXTFIELD_CONTROLLER_PROVIDER,
928
+ i1.MODE_PROVIDER,
929
+ ], 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 [autoColor]=\"autoColor\"\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}@supports (-webkit-touch-callout: none){.t-input:active{font-size:1rem}}.t-input[inputMode=none]{caret-color:transparent}.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=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=l]:not(._label-outside) .t-input{padding-top:1.25rem}:host[data-size=l]:not(._label-outside) .t-input:-webkit-autofill+.t-content .t-placeholder{font-size:.8156rem;transform:translateY(-.625rem)}:host[data-size=m]:not(._label-outside) .t-input:-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}@supports (-webkit-touch-callout: none){.t-native:active{font-size:1rem}}.t-native[inputMode=none]{caret-color:transparent}.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 });
930
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagComponent, decorators: [{
931
+ type: i0.Component,
932
+ args: [{
933
+ selector: 'tui-input-tag',
934
+ templateUrl: './input-tag.template.html',
935
+ styleUrls: ['./input-tag.style.less'],
936
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
937
+ providers: [
938
+ i4.tuiAsFocusableItemAccessor(TuiInputTagComponent),
939
+ i4.tuiAsControl(TuiInputTagComponent),
940
+ i1.tuiAsDataListHost(TuiInputTagComponent),
941
+ i1.TEXTFIELD_CONTROLLER_PROVIDER,
942
+ i1.MODE_PROVIDER,
943
+ ],
944
+ viewProviders: [providers.FIXED_DROPDOWN_CONTROLLER_PROVIDER],
945
+ }]
946
+ }], ctorParameters: function () {
947
+ return [{ type: i6__namespace.NgControl, decorators: [{
948
+ type: i0.Optional
949
+ }, {
950
+ type: i0.Self
951
+ }, {
952
+ type: i0.Inject,
953
+ args: [i6.NgControl]
954
+ }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
955
+ type: i0.Inject,
956
+ args: [i0.ChangeDetectorRef]
957
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
958
+ type: i0.Inject,
959
+ args: [i0.ElementRef]
960
+ }] }, { type: i1__namespace.TuiModeDirective, decorators: [{
961
+ type: i0.Optional
962
+ }, {
963
+ type: i0.Inject,
964
+ args: [i1.TuiModeDirective]
965
+ }] }, { type: i7__namespace.Observable, decorators: [{
966
+ type: i0.Inject,
967
+ args: [i1.TUI_MODE]
968
+ }] }, { type: i1__namespace.TuiHintOptionsDirective, decorators: [{
969
+ type: i0.Optional
970
+ }, {
971
+ type: i0.Inject,
972
+ args: [i1.TuiHintOptionsDirective]
973
+ }] }, { type: i1__namespace.TuiTextfieldController, decorators: [{
974
+ type: i0.Inject,
975
+ args: [i1.TUI_TEXTFIELD_WATCHED_CONTROLLER]
976
+ }] }, { type: undefined, decorators: [{
977
+ type: i0.Inject,
978
+ args: [TUI_INPUT_TAG_OPTIONS]
979
+ }] }, { type: undefined, decorators: [{
980
+ type: i0.Inject,
981
+ args: [i1.TUI_COMMON_ICONS]
982
+ }] }];
983
+ }, propDecorators: { hostedDropdown: [{
984
+ type: i0.ViewChild,
985
+ args: [i1.TuiHostedDropdownComponent]
986
+ }], focusableElement: [{
987
+ type: i0.ViewChild,
988
+ args: ['focusableElement']
989
+ }], tagsContainer: [{
990
+ type: i0.ViewChild,
991
+ args: ['tagsContainer']
992
+ }], tags: [{
993
+ type: i0.ViewChildren,
994
+ args: ['tag', { read: i0.ElementRef }]
995
+ }], cleanerSvg: [{
996
+ type: i0.ViewChild,
997
+ args: ['cleaner', { read: i0.ElementRef }]
998
+ }], scrollBar: [{
999
+ type: i0.ViewChild,
1000
+ args: [i1.TuiScrollbarComponent, { read: i0.ElementRef }]
1001
+ }], separator: [{
1002
+ type: i0.Input
1003
+ }], search: [{
1004
+ type: i0.Input
1005
+ }], editable: [{
1006
+ type: i0.Input
1007
+ }], tagValidator: [{
1008
+ type: i0.Input
1009
+ }], expandable: [{
1010
+ type: i0.Input
1011
+ }, {
1012
+ type: i0.HostBinding,
1013
+ args: ['class._expandable']
1014
+ }], rows: [{
1015
+ type: i0.Input
1016
+ }], inputHidden: [{
1017
+ type: i0.Input
1018
+ }], uniqueTags: [{
1019
+ type: i0.Input
1020
+ }], autoColor: [{
1021
+ type: i0.Input
1022
+ }], maxLength: [{
1023
+ type: i0.Input
1024
+ }], placeholder: [{
1025
+ type: i0.Input
1026
+ }], removable: [{
1027
+ type: i0.Input
1028
+ }], disabledItemHandler: [{
1029
+ type: i0.Input
1030
+ }], pseudoFocusedSetter: [{
1031
+ type: i0.Input,
1032
+ args: ['pseudoFocused']
1033
+ }], searchChange: [{
1034
+ type: i0.Output
1035
+ }], datalist: [{
1036
+ type: i0.ContentChild,
1037
+ args: [i1.TuiDataListDirective, { read: i0.TemplateRef }]
1038
+ }], errorIconTemplate: [{
1039
+ type: i0.ViewChild,
1040
+ args: ['errorIcon']
1041
+ }], size: [{
1042
+ type: i0.HostBinding,
1043
+ args: ['attr.data-size']
1044
+ }], labelOutside: [{
1045
+ type: i0.HostBinding,
1046
+ args: ['class._label-outside']
1047
+ }], iconLeft: [{
1048
+ type: i0.HostBinding,
1049
+ args: ['class._icon-left']
1050
+ }], onFocusInOut: [{
1051
+ type: i0.HostListener,
1052
+ args: ['focusin.capture.silent']
1053
+ }, {
1054
+ type: i0.HostListener,
1055
+ args: ['focusout.capture.silent']
1056
+ }] } });
911
1057
 
912
- var TuiInputTagModule = /** @class */ (function () {
913
- function TuiInputTagModule() {
914
- }
915
- return TuiInputTagModule;
916
- }());
917
- TuiInputTagModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
918
- TuiInputTagModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagModule, declarations: [TuiInputTagComponent], imports: [i3.CommonModule,
919
- i6.FormsModule,
920
- i5.PolymorpheusModule,
921
- i4.TuiFocusableModule,
922
- i4.TuiHoveredModule,
923
- i4.TuiActiveZoneModule,
924
- i1.TuiSvgModule,
925
- i1.TuiScrollbarModule,
926
- i1.TuiTooltipModule,
927
- i1.TuiHostedDropdownModule,
928
- i2.TuiTagModule,
929
- i1.TuiWrapperModule], exports: [TuiInputTagComponent] });
930
- TuiInputTagModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagModule, providers: [i4.TuiScrollService], imports: [[
931
- i3.CommonModule,
932
- i6.FormsModule,
933
- i5.PolymorpheusModule,
934
- i4.TuiFocusableModule,
935
- i4.TuiHoveredModule,
936
- i4.TuiActiveZoneModule,
937
- i1.TuiSvgModule,
938
- i1.TuiScrollbarModule,
939
- i1.TuiTooltipModule,
940
- i1.TuiHostedDropdownModule,
941
- i2.TuiTagModule,
942
- i1.TuiWrapperModule,
943
- ]] });
944
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagModule, decorators: [{
945
- type: i0.NgModule,
946
- args: [{
947
- imports: [
948
- i3.CommonModule,
949
- i6.FormsModule,
950
- i5.PolymorpheusModule,
951
- i4.TuiFocusableModule,
952
- i4.TuiHoveredModule,
953
- i4.TuiActiveZoneModule,
954
- i1.TuiSvgModule,
955
- i1.TuiScrollbarModule,
956
- i1.TuiTooltipModule,
957
- i1.TuiHostedDropdownModule,
958
- i2.TuiTagModule,
959
- i1.TuiWrapperModule,
960
- ],
961
- declarations: [TuiInputTagComponent],
962
- providers: [i4.TuiScrollService],
963
- exports: [TuiInputTagComponent],
964
- }]
965
- }] });
1058
+ var TuiInputTagModule = /** @class */ (function () {
1059
+ function TuiInputTagModule() {
1060
+ }
1061
+ return TuiInputTagModule;
1062
+ }());
1063
+ TuiInputTagModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1064
+ TuiInputTagModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagModule, declarations: [TuiInputTagComponent], imports: [i3.CommonModule,
1065
+ i6.FormsModule,
1066
+ i5.PolymorpheusModule,
1067
+ i4.TuiFocusableModule,
1068
+ i4.TuiHoveredModule,
1069
+ i4.TuiActiveZoneModule,
1070
+ i1.TuiSvgModule,
1071
+ i1.TuiScrollbarModule,
1072
+ i1.TuiTooltipModule,
1073
+ i1.TuiHostedDropdownModule,
1074
+ i2.TuiTagModule,
1075
+ i1.TuiWrapperModule], exports: [TuiInputTagComponent] });
1076
+ TuiInputTagModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagModule, providers: [i4.TuiScrollService], imports: [[
1077
+ i3.CommonModule,
1078
+ i6.FormsModule,
1079
+ i5.PolymorpheusModule,
1080
+ i4.TuiFocusableModule,
1081
+ i4.TuiHoveredModule,
1082
+ i4.TuiActiveZoneModule,
1083
+ i1.TuiSvgModule,
1084
+ i1.TuiScrollbarModule,
1085
+ i1.TuiTooltipModule,
1086
+ i1.TuiHostedDropdownModule,
1087
+ i2.TuiTagModule,
1088
+ i1.TuiWrapperModule,
1089
+ ]] });
1090
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTagModule, decorators: [{
1091
+ type: i0.NgModule,
1092
+ args: [{
1093
+ imports: [
1094
+ i3.CommonModule,
1095
+ i6.FormsModule,
1096
+ i5.PolymorpheusModule,
1097
+ i4.TuiFocusableModule,
1098
+ i4.TuiHoveredModule,
1099
+ i4.TuiActiveZoneModule,
1100
+ i1.TuiSvgModule,
1101
+ i1.TuiScrollbarModule,
1102
+ i1.TuiTooltipModule,
1103
+ i1.TuiHostedDropdownModule,
1104
+ i2.TuiTagModule,
1105
+ i1.TuiWrapperModule,
1106
+ ],
1107
+ declarations: [TuiInputTagComponent],
1108
+ providers: [i4.TuiScrollService],
1109
+ exports: [TuiInputTagComponent],
1110
+ }]
1111
+ }] });
966
1112
 
967
- /**
968
- * Generated bundle index. Do not edit.
969
- */
1113
+ /**
1114
+ * Generated bundle index. Do not edit.
1115
+ */
970
1116
 
971
- exports.TUI_INPUT_TAG_DEFAULT_OPTIONS = TUI_INPUT_TAG_DEFAULT_OPTIONS;
972
- exports.TUI_INPUT_TAG_OPTIONS = TUI_INPUT_TAG_OPTIONS;
973
- exports.TuiInputTagComponent = TuiInputTagComponent;
974
- exports.TuiInputTagModule = TuiInputTagModule;
975
- exports.tuiInputTagOptionsProvider = tuiInputTagOptionsProvider;
1117
+ exports.TUI_INPUT_TAG_DEFAULT_OPTIONS = TUI_INPUT_TAG_DEFAULT_OPTIONS;
1118
+ exports.TUI_INPUT_TAG_OPTIONS = TUI_INPUT_TAG_OPTIONS;
1119
+ exports.TuiInputTagComponent = TuiInputTagComponent;
1120
+ exports.TuiInputTagModule = TuiInputTagModule;
1121
+ exports.tuiInputTagOptionsProvider = tuiInputTagOptionsProvider;
976
1122
 
977
- Object.defineProperty(exports, '__esModule', { value: true });
1123
+ Object.defineProperty(exports, '__esModule', { value: true });
978
1124
 
979
1125
  }));
980
1126
  //# sourceMappingURL=taiga-ui-kit-components-input-tag.umd.js.map