@taiga-ui/kit 3.70.0-canary.e02fd1e → 3.71.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/bundles/taiga-ui-kit-components-accordion.umd.js +628 -774
  2. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  3. package/bundles/taiga-ui-kit-components-action.umd.js +452 -598
  4. package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
  5. package/bundles/taiga-ui-kit-components-avatar.umd.js +494 -640
  6. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  7. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +417 -563
  8. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +601 -747
  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 +572 -718
  12. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  13. package/bundles/taiga-ui-kit-components-carousel.umd.js +678 -824
  14. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +499 -645
  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 +439 -585
  18. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  19. package/bundles/taiga-ui-kit-components-checkbox.umd.js +462 -608
  20. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  21. package/bundles/taiga-ui-kit-components-combo-box.umd.js +688 -834
  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 +510 -656
  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 +441 -587
  26. package/bundles/taiga-ui-kit-components-elastic-container.umd.js.map +1 -1
  27. package/bundles/taiga-ui-kit-components-files.umd.js +660 -806
  28. package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
  29. package/bundles/taiga-ui-kit-components-filter.umd.js +461 -607
  30. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  31. package/bundles/taiga-ui-kit-components-input-copy.umd.js +554 -700
  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 +663 -809
  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 +707 -853
  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 +827 -973
  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 +896 -1042
  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 +830 -976
  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 +829 -975
  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 +466 -612
  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 +609 -755
  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 +642 -788
  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 +795 -941
  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 +574 -720
  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 +665 -811
  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 +767 -913
  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 +650 -796
  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 +591 -737
  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 +958 -1104
  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 +877 -1023
  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 +559 -705
  68. package/bundles/taiga-ui-kit-components-input-year.umd.js.map +1 -1
  69. package/bundles/taiga-ui-kit-components-input.umd.js +515 -661
  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 +543 -689
  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 +596 -742
  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 +398 -544
  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 +1191 -1337
  78. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  79. package/bundles/taiga-ui-kit-components-pagination.umd.js +664 -810
  80. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  81. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +6 -152
  82. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
  83. package/bundles/taiga-ui-kit-components-progress.umd.js +6 -152
  84. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  85. package/bundles/taiga-ui-kit-components-push.umd.js +6 -152
  86. package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
  87. package/bundles/taiga-ui-kit-components-radio-block.umd.js +499 -645
  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 +470 -616
  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 +482 -628
  92. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  93. package/bundles/taiga-ui-kit-components-radio.umd.js +543 -689
  94. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  95. package/bundles/taiga-ui-kit-components-range.umd.js +665 -811
  96. package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
  97. package/bundles/taiga-ui-kit-components-rating.umd.js +500 -646
  98. package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
  99. package/bundles/taiga-ui-kit-components-routable-dialog.umd.js +440 -586
  100. package/bundles/taiga-ui-kit-components-routable-dialog.umd.js.map +1 -1
  101. package/bundles/taiga-ui-kit-components-select.umd.js +787 -933
  102. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  103. package/bundles/taiga-ui-kit-components-slider.umd.js +797 -943
  104. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  105. package/bundles/taiga-ui-kit-components-stepper.umd.js +623 -769
  106. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  107. package/bundles/taiga-ui-kit-components-tabs.umd.js +7 -153
  108. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  109. package/bundles/taiga-ui-kit-components-textarea.umd.js +820 -966
  110. package/bundles/taiga-ui-kit-components-textarea.umd.js.map +1 -1
  111. package/bundles/taiga-ui-kit-components-tiles.umd.js +693 -839
  112. package/bundles/taiga-ui-kit-components-tiles.umd.js.map +1 -1
  113. package/bundles/taiga-ui-kit-components-toggle.umd.js +565 -711
  114. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  115. package/bundles/taiga-ui-kit-constants.umd.js +6 -152
  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 +491 -637
  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 +459 -605
  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 +394 -540
  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 +547 -693
  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 +470 -616
  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 +378 -524
  128. package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js.map +1 -1
  129. package/bundles/taiga-ui-kit-utils-mask.umd.js +6 -152
  130. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  131. package/bundles/taiga-ui-kit-utils-math.umd.js +6 -152
  132. package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
  133. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +6 -152
  134. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  135. package/components/input-files/input-files.component.d.ts +1 -1
  136. package/esm2015/components/input-files/input-files.component.js +5 -5
  137. package/esm2015/components/tabs/tab/tab.component.js +1 -1
  138. package/fesm2015/taiga-ui-kit-components-input-files.js +4 -4
  139. package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
  140. package/fesm2015/taiga-ui-kit-components-tabs.js +1 -1
  141. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  142. package/package.json +42 -42
@@ -1,1043 +1,897 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@maskito/kit'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit/components/select-option'), require('@taiga-ui/kit/providers'), require('@taiga-ui/kit/tokens'), require('rxjs'), require('rxjs/operators'), require('@taiga-ui/kit/constants'), require('@angular/common'), require('@taiga-ui/kit/directives'), require('@maskito/angular'), require('@tinkoff/ng-polymorpheus')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/input-time', ['exports', '@angular/core', '@angular/forms', '@maskito/kit', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit/components/select-option', '@taiga-ui/kit/providers', '@taiga-ui/kit/tokens', 'rxjs', 'rxjs/operators', '@taiga-ui/kit/constants', '@angular/common', '@taiga-ui/kit/directives', '@maskito/angular', '@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-time"] = {}), global.ng.core, global.ng.forms, global.kit, global.i2, global.i1, global["taiga-ui"].kit.components["select-option"], global["taiga-ui"].kit.providers, global["taiga-ui"].kit.tokens, global.rxjs, global.rxjs.operators, global["taiga-ui"].kit.constants, global.ng.common, global["taiga-ui"].kit.directives, global.i4, global.i6));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@maskito/kit'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit/components/select-option'), require('@taiga-ui/kit/providers'), require('@taiga-ui/kit/tokens'), require('rxjs'), require('rxjs/operators'), require('@taiga-ui/kit/constants'), require('@angular/common'), require('@taiga-ui/kit/directives'), require('@maskito/angular'), require('@tinkoff/ng-polymorpheus')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/input-time', ['exports', '@angular/core', '@angular/forms', '@maskito/kit', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit/components/select-option', '@taiga-ui/kit/providers', '@taiga-ui/kit/tokens', 'rxjs', 'rxjs/operators', '@taiga-ui/kit/constants', '@angular/common', '@taiga-ui/kit/directives', '@maskito/angular', '@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-time"] = {}), global.ng.core, global.ng.forms, global.kit, global.i2, global.i1, global["taiga-ui"].kit.components["select-option"], global["taiga-ui"].kit.providers, global["taiga-ui"].kit.tokens, global.rxjs, global.rxjs.operators, global["taiga-ui"].kit.constants, global.ng.common, global["taiga-ui"].kit.directives, global.i4, global.i6));
5
5
  })(this, (function (exports, i0, i7, kit, i2, i1, selectOption, providers, tokens, i8, operators, constants, i5, i3, i4, i6) { '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
- });
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
+ });
18
20
  }
19
- });
21
+ n["default"] = e;
22
+ return Object.freeze(n);
20
23
  }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
24
 
25
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
- var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
27
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
28
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
- var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
30
- var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
31
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
32
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
33
- var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
27
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
28
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
+ var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
30
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
31
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
32
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
33
+ var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
34
34
 
35
- /******************************************************************************
36
- Copyright (c) Microsoft Corporation.
35
+ /*! *****************************************************************************
36
+ Copyright (c) Microsoft Corporation.
37
37
 
38
- Permission to use, copy, modify, and/or distribute this software for any
39
- purpose with or without fee is hereby granted.
38
+ Permission to use, copy, modify, and/or distribute this software for any
39
+ purpose with or without fee is hereby granted.
40
40
 
41
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
42
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
43
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
44
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
45
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
46
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
47
- PERFORMANCE OF THIS SOFTWARE.
48
- ***************************************************************************** */
49
- /* global Reflect, Promise, SuppressedError, Symbol */
50
- var extendStatics = function (d, b) {
51
- extendStatics = Object.setPrototypeOf ||
52
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
53
- function (d, b) { for (var p in b)
54
- if (Object.prototype.hasOwnProperty.call(b, p))
55
- d[p] = b[p]; };
56
- return extendStatics(d, b);
57
- };
58
- function __extends(d, b) {
59
- if (typeof b !== "function" && b !== null)
60
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
61
- extendStatics(d, b);
62
- function __() { this.constructor = d; }
63
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
64
- }
65
- var __assign = function () {
66
- __assign = Object.assign || function __assign(t) {
67
- for (var s, i = 1, n = arguments.length; i < n; i++) {
68
- s = arguments[i];
69
- for (var p in s)
70
- if (Object.prototype.hasOwnProperty.call(s, p))
71
- t[p] = s[p];
72
- }
73
- return t;
74
- };
75
- return __assign.apply(this, arguments);
76
- };
77
- function __rest(s, e) {
78
- var t = {};
79
- for (var p in s)
80
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
81
- t[p] = s[p];
82
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
83
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
84
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
85
- t[p[i]] = s[p[i]];
86
- }
87
- return t;
88
- }
89
- function __decorate(decorators, target, key, desc) {
90
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
91
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
92
- r = Reflect.decorate(decorators, target, key, desc);
93
- else
94
- for (var i = decorators.length - 1; i >= 0; i--)
95
- if (d = decorators[i])
96
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
97
- return c > 3 && r && Object.defineProperty(target, key, r), r;
98
- }
99
- function __param(paramIndex, decorator) {
100
- return function (target, key) { decorator(target, key, paramIndex); };
101
- }
102
- function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
103
- function accept(f) { if (f !== void 0 && typeof f !== "function")
104
- throw new TypeError("Function expected"); return f; }
105
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
106
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
107
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
108
- var _, done = false;
109
- for (var i = decorators.length - 1; i >= 0; i--) {
110
- var context = {};
111
- for (var p in contextIn)
112
- context[p] = p === "access" ? {} : contextIn[p];
113
- for (var p in contextIn.access)
114
- context.access[p] = contextIn.access[p];
115
- context.addInitializer = function (f) { if (done)
116
- throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
117
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
118
- if (kind === "accessor") {
119
- if (result === void 0)
120
- continue;
121
- if (result === null || typeof result !== "object")
122
- throw new TypeError("Object expected");
123
- if (_ = accept(result.get))
124
- descriptor.get = _;
125
- if (_ = accept(result.set))
126
- descriptor.set = _;
127
- if (_ = accept(result.init))
128
- initializers.unshift(_);
129
- }
130
- else if (_ = accept(result)) {
131
- if (kind === "field")
132
- initializers.unshift(_);
133
- else
134
- descriptor[key] = _;
135
- }
136
- }
137
- if (target)
138
- Object.defineProperty(target, contextIn.name, descriptor);
139
- done = true;
140
- }
141
- ;
142
- function __runInitializers(thisArg, initializers, value) {
143
- var useValue = arguments.length > 2;
144
- for (var i = 0; i < initializers.length; i++) {
145
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
146
- }
147
- return useValue ? value : void 0;
148
- }
149
- ;
150
- function __propKey(x) {
151
- return typeof x === "symbol" ? x : "".concat(x);
152
- }
153
- ;
154
- function __setFunctionName(f, name, prefix) {
155
- if (typeof name === "symbol")
156
- name = name.description ? "[".concat(name.description, "]") : "";
157
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
158
- }
159
- ;
160
- function __metadata(metadataKey, metadataValue) {
161
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
162
- return Reflect.metadata(metadataKey, metadataValue);
163
- }
164
- function __awaiter(thisArg, _arguments, P, generator) {
165
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
166
- return new (P || (P = Promise))(function (resolve, reject) {
167
- function fulfilled(value) { try {
168
- step(generator.next(value));
169
- }
170
- catch (e) {
171
- reject(e);
172
- } }
173
- function rejected(value) { try {
174
- step(generator["throw"](value));
175
- }
176
- catch (e) {
177
- reject(e);
178
- } }
179
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
180
- step((generator = generator.apply(thisArg, _arguments || [])).next());
181
- });
182
- }
183
- function __generator(thisArg, body) {
184
- var _ = { label: 0, sent: function () { if (t[0] & 1)
185
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
186
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
187
- function verb(n) { return function (v) { return step([n, v]); }; }
188
- function step(op) {
189
- if (f)
190
- throw new TypeError("Generator is already executing.");
191
- while (g && (g = 0, op[0] && (_ = 0)), _)
192
- try {
193
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
194
- return t;
195
- if (y = 0, t)
196
- op = [op[0] & 2, t.value];
197
- switch (op[0]) {
198
- case 0:
199
- case 1:
200
- t = op;
201
- break;
202
- case 4:
203
- _.label++;
204
- return { value: op[1], done: false };
205
- case 5:
206
- _.label++;
207
- y = op[1];
208
- op = [0];
209
- continue;
210
- case 7:
211
- op = _.ops.pop();
212
- _.trys.pop();
213
- continue;
214
- default:
215
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
216
- _ = 0;
217
- continue;
218
- }
219
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
220
- _.label = op[1];
221
- break;
222
- }
223
- if (op[0] === 6 && _.label < t[1]) {
224
- _.label = t[1];
225
- t = op;
226
- break;
227
- }
228
- if (t && _.label < t[2]) {
229
- _.label = t[2];
230
- _.ops.push(op);
231
- break;
232
- }
233
- if (t[2])
234
- _.ops.pop();
235
- _.trys.pop();
236
- continue;
237
- }
238
- op = body.call(thisArg, _);
239
- }
240
- catch (e) {
241
- op = [6, e];
242
- y = 0;
243
- }
244
- finally {
245
- f = t = 0;
246
- }
247
- if (op[0] & 5)
248
- throw op[1];
249
- return { value: op[0] ? op[1] : void 0, done: true };
250
- }
251
- }
252
- var __createBinding = Object.create ? (function (o, m, k, k2) {
253
- if (k2 === undefined)
254
- k2 = k;
255
- var desc = Object.getOwnPropertyDescriptor(m, k);
256
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
257
- desc = { enumerable: true, get: function () { return m[k]; } };
258
- }
259
- Object.defineProperty(o, k2, desc);
260
- }) : (function (o, m, k, k2) {
261
- if (k2 === undefined)
262
- k2 = k;
263
- o[k2] = m[k];
264
- });
265
- function __exportStar(m, o) {
266
- for (var p in m)
267
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
268
- __createBinding(o, m, p);
269
- }
270
- function __values(o) {
271
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
272
- if (m)
273
- return m.call(o);
274
- if (o && typeof o.length === "number")
275
- return {
276
- next: function () {
277
- if (o && i >= o.length)
278
- o = void 0;
279
- return { value: o && o[i++], done: !o };
280
- }
281
- };
282
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
283
- }
284
- function __read(o, n) {
285
- var m = typeof Symbol === "function" && o[Symbol.iterator];
286
- if (!m)
287
- return o;
288
- var i = m.call(o), r, ar = [], e;
289
- try {
290
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
291
- ar.push(r.value);
292
- }
293
- catch (error) {
294
- e = { error: error };
295
- }
296
- finally {
297
- try {
298
- if (r && !r.done && (m = i["return"]))
299
- m.call(i);
300
- }
301
- finally {
302
- if (e)
303
- throw e.error;
304
- }
305
- }
306
- return ar;
307
- }
308
- /** @deprecated */
309
- function __spread() {
310
- for (var ar = [], i = 0; i < arguments.length; i++)
311
- ar = ar.concat(__read(arguments[i]));
312
- return ar;
313
- }
314
- /** @deprecated */
315
- function __spreadArrays() {
316
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
317
- s += arguments[i].length;
318
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
319
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
320
- r[k] = a[j];
321
- return r;
322
- }
323
- function __spreadArray(to, from, pack) {
324
- if (pack || arguments.length === 2)
325
- for (var i = 0, l = from.length, ar; i < l; i++) {
326
- if (ar || !(i in from)) {
327
- if (!ar)
328
- ar = Array.prototype.slice.call(from, 0, i);
329
- ar[i] = from[i];
330
- }
331
- }
332
- return to.concat(ar || Array.prototype.slice.call(from));
333
- }
334
- function __await(v) {
335
- return this instanceof __await ? (this.v = v, this) : new __await(v);
336
- }
337
- function __asyncGenerator(thisArg, _arguments, generator) {
338
- if (!Symbol.asyncIterator)
339
- throw new TypeError("Symbol.asyncIterator is not defined.");
340
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
341
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
342
- function verb(n) { if (g[n])
343
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
344
- function resume(n, v) { try {
345
- step(g[n](v));
346
- }
347
- catch (e) {
348
- settle(q[0][3], e);
349
- } }
350
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
351
- function fulfill(value) { resume("next", value); }
352
- function reject(value) { resume("throw", value); }
353
- function settle(f, v) { if (f(v), q.shift(), q.length)
354
- resume(q[0][0], q[0][1]); }
355
- }
356
- function __asyncDelegator(o) {
357
- var i, p;
358
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
359
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
360
- }
361
- function __asyncValues(o) {
362
- if (!Symbol.asyncIterator)
363
- throw new TypeError("Symbol.asyncIterator is not defined.");
364
- var m = o[Symbol.asyncIterator], i;
365
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
366
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
367
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
368
- }
369
- function __makeTemplateObject(cooked, raw) {
370
- if (Object.defineProperty) {
371
- Object.defineProperty(cooked, "raw", { value: raw });
372
- }
373
- else {
374
- cooked.raw = raw;
375
- }
376
- return cooked;
377
- }
378
- ;
379
- var __setModuleDefault = Object.create ? (function (o, v) {
380
- Object.defineProperty(o, "default", { enumerable: true, value: v });
381
- }) : function (o, v) {
382
- o["default"] = v;
383
- };
384
- function __importStar(mod) {
385
- if (mod && mod.__esModule)
386
- return mod;
387
- var result = {};
388
- if (mod != null)
389
- for (var k in mod)
390
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
391
- __createBinding(result, mod, k);
392
- __setModuleDefault(result, mod);
393
- return result;
394
- }
395
- function __importDefault(mod) {
396
- return (mod && mod.__esModule) ? mod : { default: mod };
397
- }
398
- function __classPrivateFieldGet(receiver, state, kind, f) {
399
- if (kind === "a" && !f)
400
- throw new TypeError("Private accessor was defined without a getter");
401
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
402
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
403
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
404
- }
405
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
406
- if (kind === "m")
407
- throw new TypeError("Private method is not writable");
408
- if (kind === "a" && !f)
409
- throw new TypeError("Private accessor was defined without a setter");
410
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
411
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
412
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
413
- }
414
- function __classPrivateFieldIn(state, receiver) {
415
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
416
- throw new TypeError("Cannot use 'in' operator on non-object");
417
- return typeof state === "function" ? receiver === state : state.has(receiver);
418
- }
419
- function __addDisposableResource(env, value, async) {
420
- if (value !== null && value !== void 0) {
421
- if (typeof value !== "object" && typeof value !== "function")
422
- throw new TypeError("Object expected.");
423
- var dispose;
424
- if (async) {
425
- if (!Symbol.asyncDispose)
426
- throw new TypeError("Symbol.asyncDispose is not defined.");
427
- dispose = value[Symbol.asyncDispose];
428
- }
429
- if (dispose === void 0) {
430
- if (!Symbol.dispose)
431
- throw new TypeError("Symbol.dispose is not defined.");
432
- dispose = value[Symbol.dispose];
433
- }
434
- if (typeof dispose !== "function")
435
- throw new TypeError("Object not disposable.");
436
- env.stack.push({ value: value, dispose: dispose, async: async });
437
- }
438
- else if (async) {
439
- env.stack.push({ async: true });
440
- }
441
- return value;
442
- }
443
- var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
444
- var e = new Error(message);
445
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
446
- };
447
- function __disposeResources(env) {
448
- function fail(e) {
449
- env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
450
- env.hasError = true;
451
- }
452
- function next() {
453
- while (env.stack.length) {
454
- var rec = env.stack.pop();
455
- try {
456
- var result = rec.dispose && rec.dispose.call(rec.value);
457
- if (rec.async)
458
- return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
459
- }
460
- catch (e) {
461
- fail(e);
462
- }
463
- }
464
- if (env.hasError)
465
- throw env.error;
466
- }
467
- return next();
468
- }
469
- var tslib_es6 = {
470
- __extends: __extends,
471
- __assign: __assign,
472
- __rest: __rest,
473
- __decorate: __decorate,
474
- __param: __param,
475
- __metadata: __metadata,
476
- __awaiter: __awaiter,
477
- __generator: __generator,
478
- __createBinding: __createBinding,
479
- __exportStar: __exportStar,
480
- __values: __values,
481
- __read: __read,
482
- __spread: __spread,
483
- __spreadArrays: __spreadArrays,
484
- __spreadArray: __spreadArray,
485
- __await: __await,
486
- __asyncGenerator: __asyncGenerator,
487
- __asyncDelegator: __asyncDelegator,
488
- __asyncValues: __asyncValues,
489
- __makeTemplateObject: __makeTemplateObject,
490
- __importStar: __importStar,
491
- __importDefault: __importDefault,
492
- __classPrivateFieldGet: __classPrivateFieldGet,
493
- __classPrivateFieldSet: __classPrivateFieldSet,
494
- __classPrivateFieldIn: __classPrivateFieldIn,
495
- __addDisposableResource: __addDisposableResource,
496
- __disposeResources: __disposeResources,
497
- };
41
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
42
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
43
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
44
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
45
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
46
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
47
+ PERFORMANCE OF THIS SOFTWARE.
48
+ ***************************************************************************** */
49
+ /* global Reflect, Promise */
50
+ var extendStatics = function (d, b) {
51
+ extendStatics = Object.setPrototypeOf ||
52
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
53
+ function (d, b) { for (var p in b)
54
+ if (Object.prototype.hasOwnProperty.call(b, p))
55
+ d[p] = b[p]; };
56
+ return extendStatics(d, b);
57
+ };
58
+ function __extends(d, b) {
59
+ if (typeof b !== "function" && b !== null)
60
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
61
+ extendStatics(d, b);
62
+ function __() { this.constructor = d; }
63
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
64
+ }
65
+ var __assign = function () {
66
+ __assign = Object.assign || function __assign(t) {
67
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
68
+ s = arguments[i];
69
+ for (var p in s)
70
+ if (Object.prototype.hasOwnProperty.call(s, p))
71
+ t[p] = s[p];
72
+ }
73
+ return t;
74
+ };
75
+ return __assign.apply(this, arguments);
76
+ };
77
+ function __rest(s, e) {
78
+ var t = {};
79
+ for (var p in s)
80
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
81
+ t[p] = s[p];
82
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
83
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
84
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
85
+ t[p[i]] = s[p[i]];
86
+ }
87
+ return t;
88
+ }
89
+ function __decorate(decorators, target, key, desc) {
90
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
91
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
92
+ r = Reflect.decorate(decorators, target, key, desc);
93
+ else
94
+ for (var i = decorators.length - 1; i >= 0; i--)
95
+ if (d = decorators[i])
96
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
97
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
98
+ }
99
+ function __param(paramIndex, decorator) {
100
+ return function (target, key) { decorator(target, key, paramIndex); };
101
+ }
102
+ function __metadata(metadataKey, metadataValue) {
103
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
104
+ return Reflect.metadata(metadataKey, metadataValue);
105
+ }
106
+ function __awaiter(thisArg, _arguments, P, generator) {
107
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
108
+ return new (P || (P = Promise))(function (resolve, reject) {
109
+ function fulfilled(value) { try {
110
+ step(generator.next(value));
111
+ }
112
+ catch (e) {
113
+ reject(e);
114
+ } }
115
+ function rejected(value) { try {
116
+ step(generator["throw"](value));
117
+ }
118
+ catch (e) {
119
+ reject(e);
120
+ } }
121
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
122
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
123
+ });
124
+ }
125
+ function __generator(thisArg, body) {
126
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
127
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
128
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
129
+ function verb(n) { return function (v) { return step([n, v]); }; }
130
+ function step(op) {
131
+ if (f)
132
+ throw new TypeError("Generator is already executing.");
133
+ while (_)
134
+ try {
135
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
136
+ return t;
137
+ if (y = 0, t)
138
+ op = [op[0] & 2, t.value];
139
+ switch (op[0]) {
140
+ case 0:
141
+ case 1:
142
+ t = op;
143
+ break;
144
+ case 4:
145
+ _.label++;
146
+ return { value: op[1], done: false };
147
+ case 5:
148
+ _.label++;
149
+ y = op[1];
150
+ op = [0];
151
+ continue;
152
+ case 7:
153
+ op = _.ops.pop();
154
+ _.trys.pop();
155
+ continue;
156
+ default:
157
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
158
+ _ = 0;
159
+ continue;
160
+ }
161
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
162
+ _.label = op[1];
163
+ break;
164
+ }
165
+ if (op[0] === 6 && _.label < t[1]) {
166
+ _.label = t[1];
167
+ t = op;
168
+ break;
169
+ }
170
+ if (t && _.label < t[2]) {
171
+ _.label = t[2];
172
+ _.ops.push(op);
173
+ break;
174
+ }
175
+ if (t[2])
176
+ _.ops.pop();
177
+ _.trys.pop();
178
+ continue;
179
+ }
180
+ op = body.call(thisArg, _);
181
+ }
182
+ catch (e) {
183
+ op = [6, e];
184
+ y = 0;
185
+ }
186
+ finally {
187
+ f = t = 0;
188
+ }
189
+ if (op[0] & 5)
190
+ throw op[1];
191
+ return { value: op[0] ? op[1] : void 0, done: true };
192
+ }
193
+ }
194
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
195
+ if (k2 === undefined)
196
+ k2 = k;
197
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
198
+ }) : (function (o, m, k, k2) {
199
+ if (k2 === undefined)
200
+ k2 = k;
201
+ o[k2] = m[k];
202
+ });
203
+ function __exportStar(m, o) {
204
+ for (var p in m)
205
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
206
+ __createBinding(o, m, p);
207
+ }
208
+ function __values(o) {
209
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
210
+ if (m)
211
+ return m.call(o);
212
+ if (o && typeof o.length === "number")
213
+ return {
214
+ next: function () {
215
+ if (o && i >= o.length)
216
+ o = void 0;
217
+ return { value: o && o[i++], done: !o };
218
+ }
219
+ };
220
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
221
+ }
222
+ function __read(o, n) {
223
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
224
+ if (!m)
225
+ return o;
226
+ var i = m.call(o), r, ar = [], e;
227
+ try {
228
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
229
+ ar.push(r.value);
230
+ }
231
+ catch (error) {
232
+ e = { error: error };
233
+ }
234
+ finally {
235
+ try {
236
+ if (r && !r.done && (m = i["return"]))
237
+ m.call(i);
238
+ }
239
+ finally {
240
+ if (e)
241
+ throw e.error;
242
+ }
243
+ }
244
+ return ar;
245
+ }
246
+ /** @deprecated */
247
+ function __spread() {
248
+ for (var ar = [], i = 0; i < arguments.length; i++)
249
+ ar = ar.concat(__read(arguments[i]));
250
+ return ar;
251
+ }
252
+ /** @deprecated */
253
+ function __spreadArrays() {
254
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
255
+ s += arguments[i].length;
256
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
257
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
258
+ r[k] = a[j];
259
+ return r;
260
+ }
261
+ function __spreadArray(to, from, pack) {
262
+ if (pack || arguments.length === 2)
263
+ for (var i = 0, l = from.length, ar; i < l; i++) {
264
+ if (ar || !(i in from)) {
265
+ if (!ar)
266
+ ar = Array.prototype.slice.call(from, 0, i);
267
+ ar[i] = from[i];
268
+ }
269
+ }
270
+ return to.concat(ar || from);
271
+ }
272
+ function __await(v) {
273
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
274
+ }
275
+ function __asyncGenerator(thisArg, _arguments, generator) {
276
+ if (!Symbol.asyncIterator)
277
+ throw new TypeError("Symbol.asyncIterator is not defined.");
278
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
279
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
280
+ function verb(n) { if (g[n])
281
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
282
+ function resume(n, v) { try {
283
+ step(g[n](v));
284
+ }
285
+ catch (e) {
286
+ settle(q[0][3], e);
287
+ } }
288
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
289
+ function fulfill(value) { resume("next", value); }
290
+ function reject(value) { resume("throw", value); }
291
+ function settle(f, v) { if (f(v), q.shift(), q.length)
292
+ resume(q[0][0], q[0][1]); }
293
+ }
294
+ function __asyncDelegator(o) {
295
+ var i, p;
296
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
297
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
298
+ }
299
+ function __asyncValues(o) {
300
+ if (!Symbol.asyncIterator)
301
+ throw new TypeError("Symbol.asyncIterator is not defined.");
302
+ var m = o[Symbol.asyncIterator], i;
303
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
304
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
305
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
306
+ }
307
+ function __makeTemplateObject(cooked, raw) {
308
+ if (Object.defineProperty) {
309
+ Object.defineProperty(cooked, "raw", { value: raw });
310
+ }
311
+ else {
312
+ cooked.raw = raw;
313
+ }
314
+ return cooked;
315
+ }
316
+ ;
317
+ var __setModuleDefault = Object.create ? (function (o, v) {
318
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
319
+ }) : function (o, v) {
320
+ o["default"] = v;
321
+ };
322
+ function __importStar(mod) {
323
+ if (mod && mod.__esModule)
324
+ return mod;
325
+ var result = {};
326
+ if (mod != null)
327
+ for (var k in mod)
328
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
329
+ __createBinding(result, mod, k);
330
+ __setModuleDefault(result, mod);
331
+ return result;
332
+ }
333
+ function __importDefault(mod) {
334
+ return (mod && mod.__esModule) ? mod : { default: mod };
335
+ }
336
+ function __classPrivateFieldGet(receiver, state, kind, f) {
337
+ if (kind === "a" && !f)
338
+ throw new TypeError("Private accessor was defined without a getter");
339
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
340
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
341
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
342
+ }
343
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
344
+ if (kind === "m")
345
+ throw new TypeError("Private method is not writable");
346
+ if (kind === "a" && !f)
347
+ throw new TypeError("Private accessor was defined without a setter");
348
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
349
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
350
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
351
+ }
498
352
 
499
- var TUI_INPUT_TIME_DEFAULT_OPTIONS = {
500
- icon: function (_a) {
501
- var $implicit = _a.$implicit;
502
- return ($implicit === 's' ? 'tuiIconClock' : 'tuiIconClockLarge');
503
- },
504
- mode: 'HH:MM',
505
- postfix: '',
506
- maxValues: constants.MAX_TIME_VALUES,
507
- itemSize: 'm',
508
- nativePicker: false,
509
- };
510
- /**
511
- * Default parameters for InputTime component
512
- */
513
- var TUI_INPUT_TIME_OPTIONS = i2.tuiCreateToken(TUI_INPUT_TIME_DEFAULT_OPTIONS);
514
- function tuiInputTimeOptionsProvider(options) {
515
- return i2.tuiProvideOptions(TUI_INPUT_TIME_OPTIONS, options, TUI_INPUT_TIME_DEFAULT_OPTIONS);
516
- }
353
+ var TUI_INPUT_TIME_DEFAULT_OPTIONS = {
354
+ icon: function (_a) {
355
+ var $implicit = _a.$implicit;
356
+ return ($implicit === 's' ? 'tuiIconClock' : 'tuiIconClockLarge');
357
+ },
358
+ mode: 'HH:MM',
359
+ postfix: '',
360
+ maxValues: constants.MAX_TIME_VALUES,
361
+ itemSize: 'm',
362
+ nativePicker: false,
363
+ };
364
+ /**
365
+ * Default parameters for InputTime component
366
+ */
367
+ var TUI_INPUT_TIME_OPTIONS = i2.tuiCreateToken(TUI_INPUT_TIME_DEFAULT_OPTIONS);
368
+ function tuiInputTimeOptionsProvider(options) {
369
+ return i2.tuiProvideOptions(TUI_INPUT_TIME_OPTIONS, options, TUI_INPUT_TIME_DEFAULT_OPTIONS);
370
+ }
517
371
 
518
- var TuiNativeTimeComponent = /** @class */ (function () {
519
- function TuiNativeTimeComponent(host, idService) {
520
- this.host = host;
521
- this.autoIdString = idService.generate();
522
- }
523
- Object.defineProperty(TuiNativeTimeComponent.prototype, "items", {
524
- get: function () {
525
- var _this = this;
526
- return this.host.items.map(function (item) { return item.toString(_this.host.mode); });
527
- },
528
- enumerable: false,
529
- configurable: true
530
- });
531
- Object.defineProperty(TuiNativeTimeComponent.prototype, "value", {
532
- get: function () {
533
- return this.host.value.length === this.host.mode.length ? this.host.value : '';
534
- },
535
- enumerable: false,
536
- configurable: true
537
- });
538
- Object.defineProperty(TuiNativeTimeComponent.prototype, "step", {
539
- get: function () {
540
- switch (this.host.mode) {
541
- case 'HH:MM:SS':
542
- return 1;
543
- case 'HH:MM:SS.MSS':
544
- return 0.001;
545
- default:
546
- return 60;
547
- }
548
- },
549
- enumerable: false,
550
- configurable: true
551
- });
552
- TuiNativeTimeComponent.prototype.onChange = function (value) {
553
- this.host.onValueChange(value);
554
- };
555
- return TuiNativeTimeComponent;
556
- }());
557
- TuiNativeTimeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNativeTimeComponent, deps: [{ token: i1.TUI_TEXTFIELD_HOST }, { token: i2.TuiIdService }], target: i0__namespace.ɵɵFactoryTarget.Component });
558
- TuiNativeTimeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiNativeTimeComponent, selector: "input[tuiTime]", host: { attributes: { "type": "time" }, listeners: { "change.stop": "onChange($event.target.value)", "click.stop.silent": "0", "mousedown.stop.silent": "0" }, properties: { "attr.list": "autoIdString", "tabIndex": "-1", "value": "value", "step": "step" } }, ngImport: i0__namespace, template: "\n <datalist\n *ngIf=\"items.length\"\n [id]=\"autoIdString\"\n >\n <option\n *ngFor=\"let item of items\"\n value=\"{{ item }}\"\n ></option>\n </datalist>\n ", isInline: true, styles: [":host{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;pointer-events:auto;font-size:2rem}\n"], directives: [{ type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
559
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNativeTimeComponent, decorators: [{
560
- type: i0.Component,
561
- args: [{
562
- selector: 'input[tuiTime]',
563
- template: "\n <datalist\n *ngIf=\"items.length\"\n [id]=\"autoIdString\"\n >\n <option\n *ngFor=\"let item of items\"\n value=\"{{ item }}\"\n ></option>\n </datalist>\n ",
564
- host: {
565
- type: 'time',
566
- '[attr.list]': 'autoIdString',
567
- '[tabIndex]': '-1',
568
- '[value]': 'value',
569
- '[step]': 'step',
570
- '(change.stop)': 'onChange($event.target.value)',
571
- '(click.stop.silent)': '0',
572
- '(mousedown.stop.silent)': '0',
573
- },
574
- styleUrls: ['./native-time.style.less'],
575
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
576
- }]
577
- }], ctorParameters: function () {
578
- return [{ type: undefined, decorators: [{
579
- type: i0.Inject,
580
- args: [i1.TUI_TEXTFIELD_HOST]
581
- }] }, { type: i2__namespace.TuiIdService, decorators: [{
582
- type: i0.Inject,
583
- args: [i2.TuiIdService]
584
- }] }];
585
- } });
372
+ var TuiNativeTimeComponent = /** @class */ (function () {
373
+ function TuiNativeTimeComponent(host, idService) {
374
+ this.host = host;
375
+ this.autoIdString = idService.generate();
376
+ }
377
+ Object.defineProperty(TuiNativeTimeComponent.prototype, "items", {
378
+ get: function () {
379
+ var _this = this;
380
+ return this.host.items.map(function (item) { return item.toString(_this.host.mode); });
381
+ },
382
+ enumerable: false,
383
+ configurable: true
384
+ });
385
+ Object.defineProperty(TuiNativeTimeComponent.prototype, "value", {
386
+ get: function () {
387
+ return this.host.value.length === this.host.mode.length ? this.host.value : '';
388
+ },
389
+ enumerable: false,
390
+ configurable: true
391
+ });
392
+ Object.defineProperty(TuiNativeTimeComponent.prototype, "step", {
393
+ get: function () {
394
+ switch (this.host.mode) {
395
+ case 'HH:MM:SS':
396
+ return 1;
397
+ case 'HH:MM:SS.MSS':
398
+ return 0.001;
399
+ default:
400
+ return 60;
401
+ }
402
+ },
403
+ enumerable: false,
404
+ configurable: true
405
+ });
406
+ TuiNativeTimeComponent.prototype.onChange = function (value) {
407
+ this.host.onValueChange(value);
408
+ };
409
+ return TuiNativeTimeComponent;
410
+ }());
411
+ TuiNativeTimeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNativeTimeComponent, deps: [{ token: i1.TUI_TEXTFIELD_HOST }, { token: i2.TuiIdService }], target: i0__namespace.ɵɵFactoryTarget.Component });
412
+ TuiNativeTimeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiNativeTimeComponent, selector: "input[tuiTime]", host: { attributes: { "type": "time" }, listeners: { "change.stop": "onChange($event.target.value)", "click.stop.silent": "0", "mousedown.stop.silent": "0" }, properties: { "attr.list": "autoIdString", "tabIndex": "-1", "value": "value", "step": "step" } }, ngImport: i0__namespace, template: "\n <datalist\n *ngIf=\"items.length\"\n [id]=\"autoIdString\"\n >\n <option\n *ngFor=\"let item of items\"\n value=\"{{ item }}\"\n ></option>\n </datalist>\n ", isInline: true, styles: [":host{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;pointer-events:auto;font-size:2rem}\n"], directives: [{ type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
413
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiNativeTimeComponent, decorators: [{
414
+ type: i0.Component,
415
+ args: [{
416
+ selector: 'input[tuiTime]',
417
+ template: "\n <datalist\n *ngIf=\"items.length\"\n [id]=\"autoIdString\"\n >\n <option\n *ngFor=\"let item of items\"\n value=\"{{ item }}\"\n ></option>\n </datalist>\n ",
418
+ host: {
419
+ type: 'time',
420
+ '[attr.list]': 'autoIdString',
421
+ '[tabIndex]': '-1',
422
+ '[value]': 'value',
423
+ '[step]': 'step',
424
+ '(change.stop)': 'onChange($event.target.value)',
425
+ '(click.stop.silent)': '0',
426
+ '(mousedown.stop.silent)': '0',
427
+ },
428
+ styleUrls: ['./native-time.style.less'],
429
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
430
+ }]
431
+ }], ctorParameters: function () {
432
+ return [{ type: undefined, decorators: [{
433
+ type: i0.Inject,
434
+ args: [i1.TUI_TEXTFIELD_HOST]
435
+ }] }, { type: i2__namespace.TuiIdService, decorators: [{
436
+ type: i0.Inject,
437
+ args: [i2.TuiIdService]
438
+ }] }];
439
+ } });
586
440
 
587
- var TuiInputTimeComponent = /** @class */ (function (_super) {
588
- __extends(TuiInputTimeComponent, _super);
589
- function TuiInputTimeComponent(control, cdr, timeTexts$, options, isMobile, isIos, textfieldSize) {
590
- var _this = _super.call(this, control, cdr) || this;
591
- _this.timeTexts$ = timeTexts$;
592
- _this.options = options;
593
- _this.isMobile = isMobile;
594
- _this.isIos = isIos;
595
- _this.textfieldSize = textfieldSize;
596
- _this.disabledItemHandler = i2.ALWAYS_FALSE_HANDLER;
597
- _this.items = [];
598
- _this.itemSize = _this.options.itemSize;
599
- _this.strict = false;
600
- _this.mode = _this.options.mode;
601
- /** @deprecated use `tuiTextfieldPostfix` from {@link TuiTextfieldControllerModule} instead */
602
- _this.postfix = _this.options.postfix;
603
- _this.open = false;
604
- return _this;
605
- }
606
- Object.defineProperty(TuiInputTimeComponent.prototype, "size", {
607
- get: function () {
608
- return this.textfieldSize.size;
609
- },
610
- enumerable: false,
611
- configurable: true
612
- });
613
- Object.defineProperty(TuiInputTimeComponent.prototype, "nativeFocusableElement", {
614
- get: function () {
615
- var _a, _b;
616
- return (_b = (_a = this.textfield) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) !== null && _b !== void 0 ? _b : null;
617
- },
618
- enumerable: false,
619
- configurable: true
620
- });
621
- Object.defineProperty(TuiInputTimeComponent.prototype, "focused", {
622
- get: function () {
623
- return i2.tuiIsNativeFocused(this.nativeFocusableElement);
624
- },
625
- enumerable: false,
626
- configurable: true
627
- });
628
- Object.defineProperty(TuiInputTimeComponent.prototype, "canOpen", {
629
- get: function () {
630
- return this.interactive && !!this.filtered.length;
631
- },
632
- enumerable: false,
633
- configurable: true
634
- });
635
- Object.defineProperty(TuiInputTimeComponent.prototype, "filtered", {
636
- get: function () {
637
- return this.filter(this.items, this.mode, this.computedSearch);
638
- },
639
- enumerable: false,
640
- configurable: true
641
- });
642
- Object.defineProperty(TuiInputTimeComponent.prototype, "showNativePicker", {
643
- get: function () {
644
- return (this.nativePicker &&
645
- (!this.isIos || (this.mode === 'HH:MM' && !this.items.length)));
646
- },
647
- enumerable: false,
648
- configurable: true
649
- });
650
- Object.defineProperty(TuiInputTimeComponent.prototype, "nativeDatalist", {
651
- get: function () {
652
- return this.nativePicker && !this.isIos;
653
- },
654
- enumerable: false,
655
- configurable: true
656
- });
657
- Object.defineProperty(TuiInputTimeComponent.prototype, "maskOptions", {
658
- get: function () {
659
- return this.calculateMask(this.mode);
660
- },
661
- enumerable: false,
662
- configurable: true
663
- });
664
- Object.defineProperty(TuiInputTimeComponent.prototype, "computedValue", {
665
- get: function () {
666
- return this.value ? this.value.toString(this.mode) : this.nativeValue;
667
- },
668
- enumerable: false,
669
- configurable: true
670
- });
671
- Object.defineProperty(TuiInputTimeComponent.prototype, "computedSearch", {
672
- get: function () {
673
- return this.computedValue.length !== this.mode.length ? this.computedValue : '';
674
- },
675
- enumerable: false,
676
- configurable: true
677
- });
678
- Object.defineProperty(TuiInputTimeComponent.prototype, "innerPseudoFocused", {
679
- get: function () {
680
- if (this.pseudoFocus === false) {
681
- return false;
682
- }
683
- if ((this.open && this.canOpen) || this.computedFocused) {
684
- return true;
685
- }
686
- return null;
687
- },
688
- enumerable: false,
689
- configurable: true
690
- });
691
- Object.defineProperty(TuiInputTimeComponent.prototype, "icon", {
692
- get: function () {
693
- return this.options.icon;
694
- },
695
- enumerable: false,
696
- configurable: true
697
- });
698
- Object.defineProperty(TuiInputTimeComponent.prototype, "nativeValue", {
699
- get: function () {
700
- var _a;
701
- return ((_a = this.nativeFocusableElement) === null || _a === void 0 ? void 0 : _a.value) || '';
702
- },
703
- set: function (value) {
704
- if (!this.nativeFocusableElement) {
705
- return;
706
- }
707
- this.nativeFocusableElement.value = value;
708
- },
709
- enumerable: false,
710
- configurable: true
711
- });
712
- TuiInputTimeComponent.prototype.getFiller$ = function (mode) {
713
- return this.timeTexts$.pipe(operators.map(function (texts) { return texts[mode]; }));
714
- };
715
- TuiInputTimeComponent.prototype.onClick = function () {
716
- this.open = !this.open;
717
- };
718
- TuiInputTimeComponent.prototype.onValueChange = function (value) {
719
- this.open = !!this.items.length;
720
- if (this.control) {
721
- this.control.updateValueAndValidity({ emitEvent: false });
722
- }
723
- var match = this.getMatch(value);
724
- if (match !== undefined) {
725
- this.value = match;
726
- return;
727
- }
728
- if (value.length !== this.mode.length) {
729
- this.value = null;
730
- return;
731
- }
732
- var time = i2.TuiTime.fromString(value);
733
- this.value = this.strict ? this.findNearestTimeFromItems(time) : time;
734
- };
735
- TuiInputTimeComponent.prototype.onFocused = function (focused) {
736
- var _this = this;
737
- this.updateFocused(focused);
738
- if (focused ||
739
- this.value !== null ||
740
- this.nativeValue === '' ||
741
- this.mode === 'HH:MM') {
742
- return;
743
- }
744
- this.value = i2.TuiTime.fromString(this.nativeValue);
745
- i8.timer(0)
746
- .pipe(operators.takeUntil(this.destroy$))
747
- .subscribe(function () {
748
- if (_this.nativeValue.endsWith('.') || _this.nativeValue.endsWith(':')) {
749
- _this.nativeValue = _this.nativeValue.slice(0, -1);
750
- }
751
- });
752
- };
753
- TuiInputTimeComponent.prototype.onArrowUp = function (event) {
754
- if (this.items.length) {
755
- return;
756
- }
757
- this.processArrow(event, 1);
758
- };
759
- TuiInputTimeComponent.prototype.onArrowDown = function (event) {
760
- if (this.items.length) {
761
- return;
762
- }
763
- this.processArrow(event, -1);
764
- };
765
- TuiInputTimeComponent.prototype.handleOption = function (item) {
766
- this.focusInput();
767
- this.value = item;
768
- };
769
- TuiInputTimeComponent.prototype.onOpen = function (open) {
770
- this.open = open;
771
- };
772
- TuiInputTimeComponent.prototype.writeValue = function (value) {
773
- _super.prototype.writeValue.call(this, value);
774
- this.nativeValue = value ? this.computedValue : '';
775
- };
776
- Object.defineProperty(TuiInputTimeComponent.prototype, "nativePicker", {
777
- get: function () {
778
- return !!this.options.nativePicker && this.isMobile;
779
- },
780
- enumerable: false,
781
- configurable: true
782
- });
783
- TuiInputTimeComponent.prototype.calculateMask = function (mode) {
784
- var _c = this.options.maxValues, HH = _c.HH, MM = _c.MM, SS = _c.SS, MS = _c.MS;
785
- return kit.maskitoTimeOptionsGenerator({
786
- mode: mode,
787
- timeSegmentMaxValues: {
788
- hours: HH,
789
- minutes: MM,
790
- seconds: SS,
791
- milliseconds: MS,
792
- },
793
- });
794
- };
795
- TuiInputTimeComponent.prototype.filter = function (items, mode, search) {
796
- return items.filter(function (item) { return item.toString(mode).includes(search); });
797
- };
798
- TuiInputTimeComponent.prototype.findNearestTimeFromItems = function (value) {
799
- return this.items.reduce(function (previous, current) { return Math.abs(current.valueOf() - value.valueOf()) <
800
- Math.abs(previous.valueOf() - value.valueOf())
801
- ? current
802
- : previous; }, new i2.TuiTime(0, 0));
803
- };
804
- TuiInputTimeComponent.prototype.getMatch = function (value) {
805
- return this.items.find(function (item) { return i2.TUI_STRICT_MATCHER(item, value); });
806
- };
807
- TuiInputTimeComponent.prototype.close = function () {
808
- this.open = false;
809
- };
810
- TuiInputTimeComponent.prototype.processArrow = function (event, shift) {
811
- var target = event.target;
812
- if (this.readOnly || !i2.tuiIsElement(target) || !i2.tuiIsInput(target)) {
813
- return;
814
- }
815
- var selectionStart = target.selectionStart || 0;
816
- this.shiftTime(this.calculateShift(selectionStart, shift));
817
- target.setSelectionRange(selectionStart, selectionStart);
818
- event.preventDefault();
819
- };
820
- TuiInputTimeComponent.prototype.calculateShift = function (selectionStart, shift) {
821
- if (selectionStart <= 2) {
822
- return { hours: shift };
823
- }
824
- if (selectionStart <= 5) {
825
- return { minutes: shift };
826
- }
827
- if (selectionStart <= 8) {
828
- return { seconds: shift };
829
- }
830
- return { ms: shift };
831
- };
832
- TuiInputTimeComponent.prototype.shiftTime = function (shift) {
833
- if (this.value === null) {
834
- return;
835
- }
836
- var increasedTime = this.value.shift(shift);
837
- // Manual update so we can set caret position properly
838
- this.nativeValue = increasedTime.toString(this.mode);
839
- this.value = increasedTime;
840
- };
841
- TuiInputTimeComponent.prototype.focusInput = function (preventScroll) {
842
- if (preventScroll === void 0) { preventScroll = false; }
843
- if (this.nativeFocusableElement) {
844
- this.nativeFocusableElement.focus({ preventScroll: preventScroll });
845
- this.close();
846
- }
847
- };
848
- return TuiInputTimeComponent;
849
- }(i2.AbstractTuiNullableControl));
850
- TuiInputTimeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTimeComponent, deps: [{ token: i7.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: tokens.TUI_TIME_TEXTS }, { token: TUI_INPUT_TIME_OPTIONS }, { token: i2.TUI_IS_MOBILE }, { token: i2.TUI_IS_IOS }, { token: i1.TUI_TEXTFIELD_SIZE }], target: i0__namespace.ɵɵFactoryTarget.Component });
851
- TuiInputTimeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputTimeComponent, selector: "tui-input-time", inputs: { disabledItemHandler: "disabledItemHandler", items: "items", itemSize: "itemSize", strict: "strict", mode: "mode", postfix: "postfix" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.data-size": "this.size" } }, providers: [
852
- i2.tuiAsFocusableItemAccessor(TuiInputTimeComponent),
853
- i2.tuiAsControl(TuiInputTimeComponent),
854
- i1.tuiAsDataListHost(TuiInputTimeComponent),
855
- i1.tuiAsOptionContent(selectOption.TUI_SELECT_OPTION),
856
- ], viewQueries: [{ propertyName: "textfield", first: true, predicate: i1.TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<tui-hosted-dropdown\n class=\"t-wrapper\"\n [canOpen]=\"canOpen && !nativeDatalist\"\n [content]=\"dropdownContent\"\n [open]=\"canOpen && open\"\n (focusedChange)=\"onFocused($event)\"\n (openChange)=\"onOpen($event)\"\n>\n <tui-primitive-textfield\n tuiValueAccessor\n class=\"t-textfield\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [postfix]=\"postfix\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"innerPseudoFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldFiller]=\"(getFiller$(mode) | async) || ''\"\n [tuiTextfieldIcon]=\"iconContent\"\n [value]=\"computedValue\"\n (keydown.arrowDown)=\"onArrowDown($event)\"\n (keydown.arrowUp)=\"onArrowUp($event)\"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-content></ng-content>\n <input\n inputmode=\"numeric\"\n tuiTextfield\n />\n </tui-primitive-textfield>\n</tui-hosted-dropdown>\n<ng-template #dropdownContent>\n <tui-data-list\n automation-id=\"tui-input-time__dropdown\"\n [size]=\"itemSize\"\n >\n <button\n *ngFor=\"let item of filtered\"\n automation-id=\"tui-input-time__item\"\n tuiOption\n [disabled]=\"disabledItemHandler(item)\"\n [value]=\"item\"\n >\n {{ item }}\n </button>\n </tui-data-list>\n</ng-template>\n\n<ng-template #iconContent>\n <tui-svg\n *polymorpheusOutlet=\"icon as src; context: {$implicit: size}\"\n appearance=\"icon\"\n tuiWrapper\n [src]=\"src\"\n ></tui-svg>\n <input\n *ngIf=\"showNativePicker\"\n tuiTime\n />\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}:host._disabled{pointer-events:none}.t-wrapper{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}\n"], components: [{ type: i1__namespace.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i1__namespace.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { type: i1__namespace.TuiTextfieldComponent, selector: "input[tuiTextfield], textarea[tuiTextfield]" }, { type: i1__namespace.TuiDataListComponent, selector: "tui-data-list", inputs: ["role", "emptyContent", "size"] }, { type: i1__namespace.TuiOptionComponent, selector: "button[tuiOption], a[tuiOption]", inputs: ["size", "role", "disabled", "value"] }, { type: i1__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: TuiNativeTimeComponent, selector: "input[tuiTime]" }], directives: [{ type: i1__namespace.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i3__namespace.TuiValueAccessorDirective, selector: "[tuiValueAccessor]" }, { type: i4__namespace.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { type: i1__namespace.TuiTextfieldFillerDirective, selector: "[tuiTextfieldFiller]", inputs: ["tuiTextfieldFiller"] }, { type: i1__namespace.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { type: i5__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i1__namespace.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i5__namespace.AsyncPipe }, viewProviders: [providers.FIXED_DROPDOWN_CONTROLLER_PROVIDER], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
857
- __decorate([
858
- i2.tuiPure
859
- ], TuiInputTimeComponent.prototype, "getFiller$", null);
860
- __decorate([
861
- i2.tuiPure
862
- ], TuiInputTimeComponent.prototype, "calculateMask", null);
863
- __decorate([
864
- i2.tuiPure
865
- ], TuiInputTimeComponent.prototype, "filter", null);
866
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTimeComponent, decorators: [{
867
- type: i0.Component,
868
- args: [{
869
- selector: 'tui-input-time',
870
- templateUrl: './input-time.template.html',
871
- styleUrls: ['./input-time.style.less'],
872
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
873
- providers: [
874
- i2.tuiAsFocusableItemAccessor(TuiInputTimeComponent),
875
- i2.tuiAsControl(TuiInputTimeComponent),
876
- i1.tuiAsDataListHost(TuiInputTimeComponent),
877
- i1.tuiAsOptionContent(selectOption.TUI_SELECT_OPTION),
878
- ],
879
- viewProviders: [providers.FIXED_DROPDOWN_CONTROLLER_PROVIDER],
880
- }]
881
- }], ctorParameters: function () {
882
- return [{ type: i7__namespace.NgControl, decorators: [{
883
- type: i0.Optional
884
- }, {
885
- type: i0.Self
886
- }, {
887
- type: i0.Inject,
888
- args: [i7.NgControl]
889
- }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
890
- type: i0.Inject,
891
- args: [i0.ChangeDetectorRef]
892
- }] }, { type: i8__namespace.Observable, decorators: [{
893
- type: i0.Inject,
894
- args: [tokens.TUI_TIME_TEXTS]
895
- }] }, { type: undefined, decorators: [{
896
- type: i0.Inject,
897
- args: [TUI_INPUT_TIME_OPTIONS]
898
- }] }, { type: undefined, decorators: [{
899
- type: i0.Inject,
900
- args: [i2.TUI_IS_MOBILE]
901
- }] }, { type: undefined, decorators: [{
902
- type: i0.Inject,
903
- args: [i2.TUI_IS_IOS]
904
- }] }, { type: i1__namespace.TuiTextfieldSizeDirective, decorators: [{
905
- type: i0.Inject,
906
- args: [i1.TUI_TEXTFIELD_SIZE]
907
- }] }];
908
- }, propDecorators: { textfield: [{
909
- type: i0.ViewChild,
910
- args: [i1.TuiPrimitiveTextfieldComponent]
911
- }], disabledItemHandler: [{
912
- type: i0.Input
913
- }], items: [{
914
- type: i0.Input
915
- }], itemSize: [{
916
- type: i0.Input
917
- }], strict: [{
918
- type: i0.Input
919
- }], mode: [{
920
- type: i0.Input
921
- }], postfix: [{
922
- type: i0.Input
923
- }], size: [{
924
- type: i0.HostBinding,
925
- args: ['attr.data-size']
926
- }], getFiller$: [], onClick: [{
927
- type: i0.HostListener,
928
- args: ['click']
929
- }], calculateMask: [], filter: [] } });
441
+ var TuiInputTimeComponent = /** @class */ (function (_super) {
442
+ __extends(TuiInputTimeComponent, _super);
443
+ function TuiInputTimeComponent(control, cdr, timeTexts$, options, isMobile, isIos, textfieldSize) {
444
+ var _this = _super.call(this, control, cdr) || this;
445
+ _this.timeTexts$ = timeTexts$;
446
+ _this.options = options;
447
+ _this.isMobile = isMobile;
448
+ _this.isIos = isIos;
449
+ _this.textfieldSize = textfieldSize;
450
+ _this.disabledItemHandler = i2.ALWAYS_FALSE_HANDLER;
451
+ _this.items = [];
452
+ _this.itemSize = _this.options.itemSize;
453
+ _this.strict = false;
454
+ _this.mode = _this.options.mode;
455
+ /** @deprecated use `tuiTextfieldPostfix` from {@link TuiTextfieldControllerModule} instead */
456
+ _this.postfix = _this.options.postfix;
457
+ _this.open = false;
458
+ return _this;
459
+ }
460
+ Object.defineProperty(TuiInputTimeComponent.prototype, "size", {
461
+ get: function () {
462
+ return this.textfieldSize.size;
463
+ },
464
+ enumerable: false,
465
+ configurable: true
466
+ });
467
+ Object.defineProperty(TuiInputTimeComponent.prototype, "nativeFocusableElement", {
468
+ get: function () {
469
+ var _a, _b;
470
+ return (_b = (_a = this.textfield) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) !== null && _b !== void 0 ? _b : null;
471
+ },
472
+ enumerable: false,
473
+ configurable: true
474
+ });
475
+ Object.defineProperty(TuiInputTimeComponent.prototype, "focused", {
476
+ get: function () {
477
+ return i2.tuiIsNativeFocused(this.nativeFocusableElement);
478
+ },
479
+ enumerable: false,
480
+ configurable: true
481
+ });
482
+ Object.defineProperty(TuiInputTimeComponent.prototype, "canOpen", {
483
+ get: function () {
484
+ return this.interactive && !!this.filtered.length;
485
+ },
486
+ enumerable: false,
487
+ configurable: true
488
+ });
489
+ Object.defineProperty(TuiInputTimeComponent.prototype, "filtered", {
490
+ get: function () {
491
+ return this.filter(this.items, this.mode, this.computedSearch);
492
+ },
493
+ enumerable: false,
494
+ configurable: true
495
+ });
496
+ Object.defineProperty(TuiInputTimeComponent.prototype, "showNativePicker", {
497
+ get: function () {
498
+ return (this.nativePicker &&
499
+ (!this.isIos || (this.mode === 'HH:MM' && !this.items.length)));
500
+ },
501
+ enumerable: false,
502
+ configurable: true
503
+ });
504
+ Object.defineProperty(TuiInputTimeComponent.prototype, "nativeDatalist", {
505
+ get: function () {
506
+ return this.nativePicker && !this.isIos;
507
+ },
508
+ enumerable: false,
509
+ configurable: true
510
+ });
511
+ Object.defineProperty(TuiInputTimeComponent.prototype, "maskOptions", {
512
+ get: function () {
513
+ return this.calculateMask(this.mode);
514
+ },
515
+ enumerable: false,
516
+ configurable: true
517
+ });
518
+ Object.defineProperty(TuiInputTimeComponent.prototype, "computedValue", {
519
+ get: function () {
520
+ return this.value ? this.value.toString(this.mode) : this.nativeValue;
521
+ },
522
+ enumerable: false,
523
+ configurable: true
524
+ });
525
+ Object.defineProperty(TuiInputTimeComponent.prototype, "computedSearch", {
526
+ get: function () {
527
+ return this.computedValue.length !== this.mode.length ? this.computedValue : '';
528
+ },
529
+ enumerable: false,
530
+ configurable: true
531
+ });
532
+ Object.defineProperty(TuiInputTimeComponent.prototype, "innerPseudoFocused", {
533
+ get: function () {
534
+ if (this.pseudoFocus === false) {
535
+ return false;
536
+ }
537
+ if ((this.open && this.canOpen) || this.computedFocused) {
538
+ return true;
539
+ }
540
+ return null;
541
+ },
542
+ enumerable: false,
543
+ configurable: true
544
+ });
545
+ Object.defineProperty(TuiInputTimeComponent.prototype, "icon", {
546
+ get: function () {
547
+ return this.options.icon;
548
+ },
549
+ enumerable: false,
550
+ configurable: true
551
+ });
552
+ Object.defineProperty(TuiInputTimeComponent.prototype, "nativeValue", {
553
+ get: function () {
554
+ var _a;
555
+ return ((_a = this.nativeFocusableElement) === null || _a === void 0 ? void 0 : _a.value) || '';
556
+ },
557
+ set: function (value) {
558
+ if (!this.nativeFocusableElement) {
559
+ return;
560
+ }
561
+ this.nativeFocusableElement.value = value;
562
+ },
563
+ enumerable: false,
564
+ configurable: true
565
+ });
566
+ TuiInputTimeComponent.prototype.getFiller$ = function (mode) {
567
+ return this.timeTexts$.pipe(operators.map(function (texts) { return texts[mode]; }));
568
+ };
569
+ TuiInputTimeComponent.prototype.onClick = function () {
570
+ this.open = !this.open;
571
+ };
572
+ TuiInputTimeComponent.prototype.onValueChange = function (value) {
573
+ this.open = !!this.items.length;
574
+ if (this.control) {
575
+ this.control.updateValueAndValidity({ emitEvent: false });
576
+ }
577
+ var match = this.getMatch(value);
578
+ if (match !== undefined) {
579
+ this.value = match;
580
+ return;
581
+ }
582
+ if (value.length !== this.mode.length) {
583
+ this.value = null;
584
+ return;
585
+ }
586
+ var time = i2.TuiTime.fromString(value);
587
+ this.value = this.strict ? this.findNearestTimeFromItems(time) : time;
588
+ };
589
+ TuiInputTimeComponent.prototype.onFocused = function (focused) {
590
+ var _this = this;
591
+ this.updateFocused(focused);
592
+ if (focused ||
593
+ this.value !== null ||
594
+ this.nativeValue === '' ||
595
+ this.mode === 'HH:MM') {
596
+ return;
597
+ }
598
+ this.value = i2.TuiTime.fromString(this.nativeValue);
599
+ i8.timer(0)
600
+ .pipe(operators.takeUntil(this.destroy$))
601
+ .subscribe(function () {
602
+ if (_this.nativeValue.endsWith('.') || _this.nativeValue.endsWith(':')) {
603
+ _this.nativeValue = _this.nativeValue.slice(0, -1);
604
+ }
605
+ });
606
+ };
607
+ TuiInputTimeComponent.prototype.onArrowUp = function (event) {
608
+ if (this.items.length) {
609
+ return;
610
+ }
611
+ this.processArrow(event, 1);
612
+ };
613
+ TuiInputTimeComponent.prototype.onArrowDown = function (event) {
614
+ if (this.items.length) {
615
+ return;
616
+ }
617
+ this.processArrow(event, -1);
618
+ };
619
+ TuiInputTimeComponent.prototype.handleOption = function (item) {
620
+ this.focusInput();
621
+ this.value = item;
622
+ };
623
+ TuiInputTimeComponent.prototype.onOpen = function (open) {
624
+ this.open = open;
625
+ };
626
+ TuiInputTimeComponent.prototype.writeValue = function (value) {
627
+ _super.prototype.writeValue.call(this, value);
628
+ this.nativeValue = value ? this.computedValue : '';
629
+ };
630
+ Object.defineProperty(TuiInputTimeComponent.prototype, "nativePicker", {
631
+ get: function () {
632
+ return !!this.options.nativePicker && this.isMobile;
633
+ },
634
+ enumerable: false,
635
+ configurable: true
636
+ });
637
+ TuiInputTimeComponent.prototype.calculateMask = function (mode) {
638
+ var _c = this.options.maxValues, HH = _c.HH, MM = _c.MM, SS = _c.SS, MS = _c.MS;
639
+ return kit.maskitoTimeOptionsGenerator({
640
+ mode: mode,
641
+ timeSegmentMaxValues: {
642
+ hours: HH,
643
+ minutes: MM,
644
+ seconds: SS,
645
+ milliseconds: MS,
646
+ },
647
+ });
648
+ };
649
+ TuiInputTimeComponent.prototype.filter = function (items, mode, search) {
650
+ return items.filter(function (item) { return item.toString(mode).includes(search); });
651
+ };
652
+ TuiInputTimeComponent.prototype.findNearestTimeFromItems = function (value) {
653
+ return this.items.reduce(function (previous, current) { return Math.abs(current.valueOf() - value.valueOf()) <
654
+ Math.abs(previous.valueOf() - value.valueOf())
655
+ ? current
656
+ : previous; }, new i2.TuiTime(0, 0));
657
+ };
658
+ TuiInputTimeComponent.prototype.getMatch = function (value) {
659
+ return this.items.find(function (item) { return i2.TUI_STRICT_MATCHER(item, value); });
660
+ };
661
+ TuiInputTimeComponent.prototype.close = function () {
662
+ this.open = false;
663
+ };
664
+ TuiInputTimeComponent.prototype.processArrow = function (event, shift) {
665
+ var target = event.target;
666
+ if (this.readOnly || !i2.tuiIsElement(target) || !i2.tuiIsInput(target)) {
667
+ return;
668
+ }
669
+ var selectionStart = target.selectionStart || 0;
670
+ this.shiftTime(this.calculateShift(selectionStart, shift));
671
+ target.setSelectionRange(selectionStart, selectionStart);
672
+ event.preventDefault();
673
+ };
674
+ TuiInputTimeComponent.prototype.calculateShift = function (selectionStart, shift) {
675
+ if (selectionStart <= 2) {
676
+ return { hours: shift };
677
+ }
678
+ if (selectionStart <= 5) {
679
+ return { minutes: shift };
680
+ }
681
+ if (selectionStart <= 8) {
682
+ return { seconds: shift };
683
+ }
684
+ return { ms: shift };
685
+ };
686
+ TuiInputTimeComponent.prototype.shiftTime = function (shift) {
687
+ if (this.value === null) {
688
+ return;
689
+ }
690
+ var increasedTime = this.value.shift(shift);
691
+ // Manual update so we can set caret position properly
692
+ this.nativeValue = increasedTime.toString(this.mode);
693
+ this.value = increasedTime;
694
+ };
695
+ TuiInputTimeComponent.prototype.focusInput = function (preventScroll) {
696
+ if (preventScroll === void 0) { preventScroll = false; }
697
+ if (this.nativeFocusableElement) {
698
+ this.nativeFocusableElement.focus({ preventScroll: preventScroll });
699
+ this.close();
700
+ }
701
+ };
702
+ return TuiInputTimeComponent;
703
+ }(i2.AbstractTuiNullableControl));
704
+ TuiInputTimeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTimeComponent, deps: [{ token: i7.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: tokens.TUI_TIME_TEXTS }, { token: TUI_INPUT_TIME_OPTIONS }, { token: i2.TUI_IS_MOBILE }, { token: i2.TUI_IS_IOS }, { token: i1.TUI_TEXTFIELD_SIZE }], target: i0__namespace.ɵɵFactoryTarget.Component });
705
+ TuiInputTimeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputTimeComponent, selector: "tui-input-time", inputs: { disabledItemHandler: "disabledItemHandler", items: "items", itemSize: "itemSize", strict: "strict", mode: "mode", postfix: "postfix" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.data-size": "this.size" } }, providers: [
706
+ i2.tuiAsFocusableItemAccessor(TuiInputTimeComponent),
707
+ i2.tuiAsControl(TuiInputTimeComponent),
708
+ i1.tuiAsDataListHost(TuiInputTimeComponent),
709
+ i1.tuiAsOptionContent(selectOption.TUI_SELECT_OPTION),
710
+ ], viewQueries: [{ propertyName: "textfield", first: true, predicate: i1.TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<tui-hosted-dropdown\n class=\"t-wrapper\"\n [canOpen]=\"canOpen && !nativeDatalist\"\n [content]=\"dropdownContent\"\n [open]=\"canOpen && open\"\n (focusedChange)=\"onFocused($event)\"\n (openChange)=\"onOpen($event)\"\n>\n <tui-primitive-textfield\n tuiValueAccessor\n class=\"t-textfield\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [postfix]=\"postfix\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"innerPseudoFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldFiller]=\"(getFiller$(mode) | async) || ''\"\n [tuiTextfieldIcon]=\"iconContent\"\n [value]=\"computedValue\"\n (keydown.arrowDown)=\"onArrowDown($event)\"\n (keydown.arrowUp)=\"onArrowUp($event)\"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-content></ng-content>\n <input\n inputmode=\"numeric\"\n tuiTextfield\n />\n </tui-primitive-textfield>\n</tui-hosted-dropdown>\n<ng-template #dropdownContent>\n <tui-data-list\n automation-id=\"tui-input-time__dropdown\"\n [size]=\"itemSize\"\n >\n <button\n *ngFor=\"let item of filtered\"\n automation-id=\"tui-input-time__item\"\n tuiOption\n [disabled]=\"disabledItemHandler(item)\"\n [value]=\"item\"\n >\n {{ item }}\n </button>\n </tui-data-list>\n</ng-template>\n\n<ng-template #iconContent>\n <tui-svg\n *polymorpheusOutlet=\"icon as src; context: {$implicit: size}\"\n appearance=\"icon\"\n tuiWrapper\n [src]=\"src\"\n ></tui-svg>\n <input\n *ngIf=\"showNativePicker\"\n tuiTime\n />\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}:host._disabled{pointer-events:none}.t-wrapper{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}\n"], components: [{ type: i1__namespace.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i1__namespace.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { type: i1__namespace.TuiTextfieldComponent, selector: "input[tuiTextfield], textarea[tuiTextfield]" }, { type: i1__namespace.TuiDataListComponent, selector: "tui-data-list", inputs: ["role", "emptyContent", "size"] }, { type: i1__namespace.TuiOptionComponent, selector: "button[tuiOption], a[tuiOption]", inputs: ["size", "role", "disabled", "value"] }, { type: i1__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: TuiNativeTimeComponent, selector: "input[tuiTime]" }], directives: [{ type: i1__namespace.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i3__namespace.TuiValueAccessorDirective, selector: "[tuiValueAccessor]" }, { type: i4__namespace.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { type: i1__namespace.TuiTextfieldFillerDirective, selector: "[tuiTextfieldFiller]", inputs: ["tuiTextfieldFiller"] }, { type: i1__namespace.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { type: i5__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i1__namespace.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i5__namespace.AsyncPipe }, viewProviders: [providers.FIXED_DROPDOWN_CONTROLLER_PROVIDER], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
711
+ __decorate([
712
+ i2.tuiPure
713
+ ], TuiInputTimeComponent.prototype, "getFiller$", null);
714
+ __decorate([
715
+ i2.tuiPure
716
+ ], TuiInputTimeComponent.prototype, "calculateMask", null);
717
+ __decorate([
718
+ i2.tuiPure
719
+ ], TuiInputTimeComponent.prototype, "filter", null);
720
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTimeComponent, decorators: [{
721
+ type: i0.Component,
722
+ args: [{
723
+ selector: 'tui-input-time',
724
+ templateUrl: './input-time.template.html',
725
+ styleUrls: ['./input-time.style.less'],
726
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
727
+ providers: [
728
+ i2.tuiAsFocusableItemAccessor(TuiInputTimeComponent),
729
+ i2.tuiAsControl(TuiInputTimeComponent),
730
+ i1.tuiAsDataListHost(TuiInputTimeComponent),
731
+ i1.tuiAsOptionContent(selectOption.TUI_SELECT_OPTION),
732
+ ],
733
+ viewProviders: [providers.FIXED_DROPDOWN_CONTROLLER_PROVIDER],
734
+ }]
735
+ }], ctorParameters: function () {
736
+ return [{ type: i7__namespace.NgControl, decorators: [{
737
+ type: i0.Optional
738
+ }, {
739
+ type: i0.Self
740
+ }, {
741
+ type: i0.Inject,
742
+ args: [i7.NgControl]
743
+ }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
744
+ type: i0.Inject,
745
+ args: [i0.ChangeDetectorRef]
746
+ }] }, { type: i8__namespace.Observable, decorators: [{
747
+ type: i0.Inject,
748
+ args: [tokens.TUI_TIME_TEXTS]
749
+ }] }, { type: undefined, decorators: [{
750
+ type: i0.Inject,
751
+ args: [TUI_INPUT_TIME_OPTIONS]
752
+ }] }, { type: undefined, decorators: [{
753
+ type: i0.Inject,
754
+ args: [i2.TUI_IS_MOBILE]
755
+ }] }, { type: undefined, decorators: [{
756
+ type: i0.Inject,
757
+ args: [i2.TUI_IS_IOS]
758
+ }] }, { type: i1__namespace.TuiTextfieldSizeDirective, decorators: [{
759
+ type: i0.Inject,
760
+ args: [i1.TUI_TEXTFIELD_SIZE]
761
+ }] }];
762
+ }, propDecorators: { textfield: [{
763
+ type: i0.ViewChild,
764
+ args: [i1.TuiPrimitiveTextfieldComponent]
765
+ }], disabledItemHandler: [{
766
+ type: i0.Input
767
+ }], items: [{
768
+ type: i0.Input
769
+ }], itemSize: [{
770
+ type: i0.Input
771
+ }], strict: [{
772
+ type: i0.Input
773
+ }], mode: [{
774
+ type: i0.Input
775
+ }], postfix: [{
776
+ type: i0.Input
777
+ }], size: [{
778
+ type: i0.HostBinding,
779
+ args: ['attr.data-size']
780
+ }], getFiller$: [], onClick: [{
781
+ type: i0.HostListener,
782
+ args: ['click']
783
+ }], calculateMask: [], filter: [] } });
930
784
 
931
- var TuiInputTimeDirective = /** @class */ (function (_super) {
932
- __extends(TuiInputTimeDirective, _super);
933
- function TuiInputTimeDirective() {
934
- return _super !== null && _super.apply(this, arguments) || this;
935
- }
936
- Object.defineProperty(TuiInputTimeDirective.prototype, "value", {
937
- get: function () {
938
- return this.host.computedValue;
939
- },
940
- enumerable: false,
941
- configurable: true
942
- });
943
- Object.defineProperty(TuiInputTimeDirective.prototype, "mode", {
944
- get: function () {
945
- return this.host.mode;
946
- },
947
- enumerable: false,
948
- configurable: true
949
- });
950
- Object.defineProperty(TuiInputTimeDirective.prototype, "items", {
951
- get: function () {
952
- return this.host.items;
953
- },
954
- enumerable: false,
955
- configurable: true
956
- });
957
- TuiInputTimeDirective.prototype.onValueChange = function (value) {
958
- if (!value) {
959
- this.host.nativeValue = '';
960
- }
961
- this.host.onValueChange(value);
962
- };
963
- TuiInputTimeDirective.prototype.process = function (input) {
964
- input.inputMode = 'numeric';
965
- };
966
- return TuiInputTimeDirective;
967
- }(i1.AbstractTuiTextfieldHost));
968
- TuiInputTimeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTimeDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
969
- TuiInputTimeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputTimeDirective, selector: "tui-input-time", providers: [i1.tuiAsTextfieldHost(TuiInputTimeDirective)], usesInheritance: true, ngImport: i0__namespace });
970
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTimeDirective, decorators: [{
971
- type: i0.Directive,
972
- args: [{
973
- selector: 'tui-input-time',
974
- providers: [i1.tuiAsTextfieldHost(TuiInputTimeDirective)],
975
- }]
976
- }] });
785
+ var TuiInputTimeDirective = /** @class */ (function (_super) {
786
+ __extends(TuiInputTimeDirective, _super);
787
+ function TuiInputTimeDirective() {
788
+ return _super !== null && _super.apply(this, arguments) || this;
789
+ }
790
+ Object.defineProperty(TuiInputTimeDirective.prototype, "value", {
791
+ get: function () {
792
+ return this.host.computedValue;
793
+ },
794
+ enumerable: false,
795
+ configurable: true
796
+ });
797
+ Object.defineProperty(TuiInputTimeDirective.prototype, "mode", {
798
+ get: function () {
799
+ return this.host.mode;
800
+ },
801
+ enumerable: false,
802
+ configurable: true
803
+ });
804
+ Object.defineProperty(TuiInputTimeDirective.prototype, "items", {
805
+ get: function () {
806
+ return this.host.items;
807
+ },
808
+ enumerable: false,
809
+ configurable: true
810
+ });
811
+ TuiInputTimeDirective.prototype.onValueChange = function (value) {
812
+ if (!value) {
813
+ this.host.nativeValue = '';
814
+ }
815
+ this.host.onValueChange(value);
816
+ };
817
+ TuiInputTimeDirective.prototype.process = function (input) {
818
+ input.inputMode = 'numeric';
819
+ };
820
+ return TuiInputTimeDirective;
821
+ }(i1.AbstractTuiTextfieldHost));
822
+ TuiInputTimeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTimeDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
823
+ TuiInputTimeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputTimeDirective, selector: "tui-input-time", providers: [i1.tuiAsTextfieldHost(TuiInputTimeDirective)], usesInheritance: true, ngImport: i0__namespace });
824
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTimeDirective, decorators: [{
825
+ type: i0.Directive,
826
+ args: [{
827
+ selector: 'tui-input-time',
828
+ providers: [i1.tuiAsTextfieldHost(TuiInputTimeDirective)],
829
+ }]
830
+ }] });
977
831
 
978
- var TuiInputTimeModule = /** @class */ (function () {
979
- function TuiInputTimeModule() {
980
- }
981
- return TuiInputTimeModule;
982
- }());
983
- TuiInputTimeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTimeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
984
- TuiInputTimeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTimeModule, declarations: [TuiInputTimeComponent, TuiNativeTimeComponent, TuiInputTimeDirective], imports: [i5.CommonModule,
985
- i4.MaskitoModule,
986
- selectOption.TuiSelectOptionModule,
987
- i1.TuiDataListModule,
988
- i1.TuiWrapperModule,
989
- i1.TuiHostedDropdownModule,
990
- i1.TuiPrimitiveTextfieldModule,
991
- i3.TuiValueAccessorModule,
992
- i1.TuiTextfieldControllerModule,
993
- i1.TuiSvgModule,
994
- i6.PolymorpheusModule], exports: [TuiInputTimeComponent, TuiInputTimeDirective] });
995
- TuiInputTimeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTimeModule, imports: [[
996
- i5.CommonModule,
997
- i4.MaskitoModule,
998
- selectOption.TuiSelectOptionModule,
999
- i1.TuiDataListModule,
1000
- i1.TuiWrapperModule,
1001
- i1.TuiHostedDropdownModule,
1002
- i1.TuiPrimitiveTextfieldModule,
1003
- i3.TuiValueAccessorModule,
1004
- i1.TuiTextfieldControllerModule,
1005
- i1.TuiSvgModule,
1006
- i6.PolymorpheusModule,
1007
- ]] });
1008
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTimeModule, decorators: [{
1009
- type: i0.NgModule,
1010
- args: [{
1011
- imports: [
1012
- i5.CommonModule,
1013
- i4.MaskitoModule,
1014
- selectOption.TuiSelectOptionModule,
1015
- i1.TuiDataListModule,
1016
- i1.TuiWrapperModule,
1017
- i1.TuiHostedDropdownModule,
1018
- i1.TuiPrimitiveTextfieldModule,
1019
- i3.TuiValueAccessorModule,
1020
- i1.TuiTextfieldControllerModule,
1021
- i1.TuiSvgModule,
1022
- i6.PolymorpheusModule,
1023
- ],
1024
- declarations: [TuiInputTimeComponent, TuiNativeTimeComponent, TuiInputTimeDirective],
1025
- exports: [TuiInputTimeComponent, TuiInputTimeDirective],
1026
- }]
1027
- }] });
832
+ var TuiInputTimeModule = /** @class */ (function () {
833
+ function TuiInputTimeModule() {
834
+ }
835
+ return TuiInputTimeModule;
836
+ }());
837
+ TuiInputTimeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTimeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
838
+ TuiInputTimeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTimeModule, declarations: [TuiInputTimeComponent, TuiNativeTimeComponent, TuiInputTimeDirective], imports: [i5.CommonModule,
839
+ i4.MaskitoModule,
840
+ selectOption.TuiSelectOptionModule,
841
+ i1.TuiDataListModule,
842
+ i1.TuiWrapperModule,
843
+ i1.TuiHostedDropdownModule,
844
+ i1.TuiPrimitiveTextfieldModule,
845
+ i3.TuiValueAccessorModule,
846
+ i1.TuiTextfieldControllerModule,
847
+ i1.TuiSvgModule,
848
+ i6.PolymorpheusModule], exports: [TuiInputTimeComponent, TuiInputTimeDirective] });
849
+ TuiInputTimeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTimeModule, imports: [[
850
+ i5.CommonModule,
851
+ i4.MaskitoModule,
852
+ selectOption.TuiSelectOptionModule,
853
+ i1.TuiDataListModule,
854
+ i1.TuiWrapperModule,
855
+ i1.TuiHostedDropdownModule,
856
+ i1.TuiPrimitiveTextfieldModule,
857
+ i3.TuiValueAccessorModule,
858
+ i1.TuiTextfieldControllerModule,
859
+ i1.TuiSvgModule,
860
+ i6.PolymorpheusModule,
861
+ ]] });
862
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputTimeModule, decorators: [{
863
+ type: i0.NgModule,
864
+ args: [{
865
+ imports: [
866
+ i5.CommonModule,
867
+ i4.MaskitoModule,
868
+ selectOption.TuiSelectOptionModule,
869
+ i1.TuiDataListModule,
870
+ i1.TuiWrapperModule,
871
+ i1.TuiHostedDropdownModule,
872
+ i1.TuiPrimitiveTextfieldModule,
873
+ i3.TuiValueAccessorModule,
874
+ i1.TuiTextfieldControllerModule,
875
+ i1.TuiSvgModule,
876
+ i6.PolymorpheusModule,
877
+ ],
878
+ declarations: [TuiInputTimeComponent, TuiNativeTimeComponent, TuiInputTimeDirective],
879
+ exports: [TuiInputTimeComponent, TuiInputTimeDirective],
880
+ }]
881
+ }] });
1028
882
 
1029
- /**
1030
- * Generated bundle index. Do not edit.
1031
- */
883
+ /**
884
+ * Generated bundle index. Do not edit.
885
+ */
1032
886
 
1033
- exports.TUI_INPUT_TIME_DEFAULT_OPTIONS = TUI_INPUT_TIME_DEFAULT_OPTIONS;
1034
- exports.TUI_INPUT_TIME_OPTIONS = TUI_INPUT_TIME_OPTIONS;
1035
- exports.TuiInputTimeComponent = TuiInputTimeComponent;
1036
- exports.TuiInputTimeDirective = TuiInputTimeDirective;
1037
- exports.TuiInputTimeModule = TuiInputTimeModule;
1038
- exports.tuiInputTimeOptionsProvider = tuiInputTimeOptionsProvider;
887
+ exports.TUI_INPUT_TIME_DEFAULT_OPTIONS = TUI_INPUT_TIME_DEFAULT_OPTIONS;
888
+ exports.TUI_INPUT_TIME_OPTIONS = TUI_INPUT_TIME_OPTIONS;
889
+ exports.TuiInputTimeComponent = TuiInputTimeComponent;
890
+ exports.TuiInputTimeDirective = TuiInputTimeDirective;
891
+ exports.TuiInputTimeModule = TuiInputTimeModule;
892
+ exports.tuiInputTimeOptionsProvider = tuiInputTimeOptionsProvider;
1039
893
 
1040
- Object.defineProperty(exports, '__esModule', { value: true });
894
+ Object.defineProperty(exports, '__esModule', { value: true });
1041
895
 
1042
896
  }));
1043
897
  //# sourceMappingURL=taiga-ui-kit-components-input-time.umd.js.map