@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,754 +1,608 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit/components/input-number'), require('@taiga-ui/kit/components/slider'), require('@taiga-ui/kit/constants'), require('@angular/common'), require('@tinkoff/ng-polymorpheus')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/input-slider', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit/components/input-number', '@taiga-ui/kit/components/slider', '@taiga-ui/kit/constants', '@angular/common', '@tinkoff/ng-polymorpheus'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].kit = global["taiga-ui"].kit || {}, global["taiga-ui"].kit.components = global["taiga-ui"].kit.components || {}, global["taiga-ui"].kit.components["input-slider"] = {}), global.ng.core, global.ng.forms, global.i7, global.i3, global["taiga-ui"].kit.components["input-number"], global["taiga-ui"].kit.components.slider, global["taiga-ui"].kit.constants, global.ng.common, global.i6));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit/components/input-number'), require('@taiga-ui/kit/components/slider'), require('@taiga-ui/kit/constants'), require('@angular/common'), require('@tinkoff/ng-polymorpheus')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/input-slider', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit/components/input-number', '@taiga-ui/kit/components/slider', '@taiga-ui/kit/constants', '@angular/common', '@tinkoff/ng-polymorpheus'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].kit = global["taiga-ui"].kit || {}, global["taiga-ui"].kit.components = global["taiga-ui"].kit.components || {}, global["taiga-ui"].kit.components["input-slider"] = {}), global.ng.core, global.ng.forms, global.i7, global.i3, global["taiga-ui"].kit.components["input-number"], global["taiga-ui"].kit.components.slider, global["taiga-ui"].kit.constants, global.ng.common, global.i6));
5
5
  })(this, (function (exports, i0, i4, i7, i3, i1, i2, constants, i5, 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 i4__namespace = /*#__PURE__*/_interopNamespace(i4);
27
- var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
28
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
29
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
30
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
31
- var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
32
- var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
27
+ var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
28
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
29
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
30
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
31
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
32
+ var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
33
33
 
34
- /******************************************************************************
35
- Copyright (c) Microsoft Corporation.
34
+ /*! *****************************************************************************
35
+ Copyright (c) Microsoft Corporation.
36
36
 
37
- Permission to use, copy, modify, and/or distribute this software for any
38
- purpose with or without fee is hereby granted.
37
+ Permission to use, copy, modify, and/or distribute this software for any
38
+ purpose with or without fee is hereby granted.
39
39
 
40
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
41
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
42
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
43
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
44
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
45
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
46
- PERFORMANCE OF THIS SOFTWARE.
47
- ***************************************************************************** */
48
- /* global Reflect, Promise, SuppressedError, Symbol */
49
- var extendStatics = function (d, b) {
50
- extendStatics = Object.setPrototypeOf ||
51
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
52
- function (d, b) { for (var p in b)
53
- if (Object.prototype.hasOwnProperty.call(b, p))
54
- d[p] = b[p]; };
55
- return extendStatics(d, b);
56
- };
57
- function __extends(d, b) {
58
- if (typeof b !== "function" && b !== null)
59
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
60
- extendStatics(d, b);
61
- function __() { this.constructor = d; }
62
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
63
- }
64
- var __assign = function () {
65
- __assign = Object.assign || function __assign(t) {
66
- for (var s, i = 1, n = arguments.length; i < n; i++) {
67
- s = arguments[i];
68
- for (var p in s)
69
- if (Object.prototype.hasOwnProperty.call(s, p))
70
- t[p] = s[p];
71
- }
72
- return t;
73
- };
74
- return __assign.apply(this, arguments);
75
- };
76
- function __rest(s, e) {
77
- var t = {};
78
- for (var p in s)
79
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
80
- t[p] = s[p];
81
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
82
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
83
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
84
- t[p[i]] = s[p[i]];
85
- }
86
- return t;
87
- }
88
- function __decorate(decorators, target, key, desc) {
89
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
90
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
91
- r = Reflect.decorate(decorators, target, key, desc);
92
- else
93
- for (var i = decorators.length - 1; i >= 0; i--)
94
- if (d = decorators[i])
95
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
96
- return c > 3 && r && Object.defineProperty(target, key, r), r;
97
- }
98
- function __param(paramIndex, decorator) {
99
- return function (target, key) { decorator(target, key, paramIndex); };
100
- }
101
- function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
102
- function accept(f) { if (f !== void 0 && typeof f !== "function")
103
- throw new TypeError("Function expected"); return f; }
104
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
105
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
106
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
107
- var _, done = false;
108
- for (var i = decorators.length - 1; i >= 0; i--) {
109
- var context = {};
110
- for (var p in contextIn)
111
- context[p] = p === "access" ? {} : contextIn[p];
112
- for (var p in contextIn.access)
113
- context.access[p] = contextIn.access[p];
114
- context.addInitializer = function (f) { if (done)
115
- throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
116
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
117
- if (kind === "accessor") {
118
- if (result === void 0)
119
- continue;
120
- if (result === null || typeof result !== "object")
121
- throw new TypeError("Object expected");
122
- if (_ = accept(result.get))
123
- descriptor.get = _;
124
- if (_ = accept(result.set))
125
- descriptor.set = _;
126
- if (_ = accept(result.init))
127
- initializers.unshift(_);
128
- }
129
- else if (_ = accept(result)) {
130
- if (kind === "field")
131
- initializers.unshift(_);
132
- else
133
- descriptor[key] = _;
134
- }
135
- }
136
- if (target)
137
- Object.defineProperty(target, contextIn.name, descriptor);
138
- done = true;
139
- }
140
- ;
141
- function __runInitializers(thisArg, initializers, value) {
142
- var useValue = arguments.length > 2;
143
- for (var i = 0; i < initializers.length; i++) {
144
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
145
- }
146
- return useValue ? value : void 0;
147
- }
148
- ;
149
- function __propKey(x) {
150
- return typeof x === "symbol" ? x : "".concat(x);
151
- }
152
- ;
153
- function __setFunctionName(f, name, prefix) {
154
- if (typeof name === "symbol")
155
- name = name.description ? "[".concat(name.description, "]") : "";
156
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
157
- }
158
- ;
159
- function __metadata(metadataKey, metadataValue) {
160
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
161
- return Reflect.metadata(metadataKey, metadataValue);
162
- }
163
- function __awaiter(thisArg, _arguments, P, generator) {
164
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
165
- return new (P || (P = Promise))(function (resolve, reject) {
166
- function fulfilled(value) { try {
167
- step(generator.next(value));
168
- }
169
- catch (e) {
170
- reject(e);
171
- } }
172
- function rejected(value) { try {
173
- step(generator["throw"](value));
174
- }
175
- catch (e) {
176
- reject(e);
177
- } }
178
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
179
- step((generator = generator.apply(thisArg, _arguments || [])).next());
180
- });
181
- }
182
- function __generator(thisArg, body) {
183
- var _ = { label: 0, sent: function () { if (t[0] & 1)
184
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
185
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
186
- function verb(n) { return function (v) { return step([n, v]); }; }
187
- function step(op) {
188
- if (f)
189
- throw new TypeError("Generator is already executing.");
190
- while (g && (g = 0, op[0] && (_ = 0)), _)
191
- try {
192
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
193
- return t;
194
- if (y = 0, t)
195
- op = [op[0] & 2, t.value];
196
- switch (op[0]) {
197
- case 0:
198
- case 1:
199
- t = op;
200
- break;
201
- case 4:
202
- _.label++;
203
- return { value: op[1], done: false };
204
- case 5:
205
- _.label++;
206
- y = op[1];
207
- op = [0];
208
- continue;
209
- case 7:
210
- op = _.ops.pop();
211
- _.trys.pop();
212
- continue;
213
- default:
214
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
215
- _ = 0;
216
- continue;
217
- }
218
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
219
- _.label = op[1];
220
- break;
221
- }
222
- if (op[0] === 6 && _.label < t[1]) {
223
- _.label = t[1];
224
- t = op;
225
- break;
226
- }
227
- if (t && _.label < t[2]) {
228
- _.label = t[2];
229
- _.ops.push(op);
230
- break;
231
- }
232
- if (t[2])
233
- _.ops.pop();
234
- _.trys.pop();
235
- continue;
236
- }
237
- op = body.call(thisArg, _);
238
- }
239
- catch (e) {
240
- op = [6, e];
241
- y = 0;
242
- }
243
- finally {
244
- f = t = 0;
245
- }
246
- if (op[0] & 5)
247
- throw op[1];
248
- return { value: op[0] ? op[1] : void 0, done: true };
249
- }
250
- }
251
- var __createBinding = Object.create ? (function (o, m, k, k2) {
252
- if (k2 === undefined)
253
- k2 = k;
254
- var desc = Object.getOwnPropertyDescriptor(m, k);
255
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
256
- desc = { enumerable: true, get: function () { return m[k]; } };
257
- }
258
- Object.defineProperty(o, k2, desc);
259
- }) : (function (o, m, k, k2) {
260
- if (k2 === undefined)
261
- k2 = k;
262
- o[k2] = m[k];
263
- });
264
- function __exportStar(m, o) {
265
- for (var p in m)
266
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
267
- __createBinding(o, m, p);
268
- }
269
- function __values(o) {
270
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
271
- if (m)
272
- return m.call(o);
273
- if (o && typeof o.length === "number")
274
- return {
275
- next: function () {
276
- if (o && i >= o.length)
277
- o = void 0;
278
- return { value: o && o[i++], done: !o };
279
- }
280
- };
281
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
282
- }
283
- function __read(o, n) {
284
- var m = typeof Symbol === "function" && o[Symbol.iterator];
285
- if (!m)
286
- return o;
287
- var i = m.call(o), r, ar = [], e;
288
- try {
289
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
290
- ar.push(r.value);
291
- }
292
- catch (error) {
293
- e = { error: error };
294
- }
295
- finally {
296
- try {
297
- if (r && !r.done && (m = i["return"]))
298
- m.call(i);
299
- }
300
- finally {
301
- if (e)
302
- throw e.error;
303
- }
304
- }
305
- return ar;
306
- }
307
- /** @deprecated */
308
- function __spread() {
309
- for (var ar = [], i = 0; i < arguments.length; i++)
310
- ar = ar.concat(__read(arguments[i]));
311
- return ar;
312
- }
313
- /** @deprecated */
314
- function __spreadArrays() {
315
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
316
- s += arguments[i].length;
317
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
318
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
319
- r[k] = a[j];
320
- return r;
321
- }
322
- function __spreadArray(to, from, pack) {
323
- if (pack || arguments.length === 2)
324
- for (var i = 0, l = from.length, ar; i < l; i++) {
325
- if (ar || !(i in from)) {
326
- if (!ar)
327
- ar = Array.prototype.slice.call(from, 0, i);
328
- ar[i] = from[i];
329
- }
330
- }
331
- return to.concat(ar || Array.prototype.slice.call(from));
332
- }
333
- function __await(v) {
334
- return this instanceof __await ? (this.v = v, this) : new __await(v);
335
- }
336
- function __asyncGenerator(thisArg, _arguments, generator) {
337
- if (!Symbol.asyncIterator)
338
- throw new TypeError("Symbol.asyncIterator is not defined.");
339
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
340
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
341
- function verb(n) { if (g[n])
342
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
343
- function resume(n, v) { try {
344
- step(g[n](v));
345
- }
346
- catch (e) {
347
- settle(q[0][3], e);
348
- } }
349
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
350
- function fulfill(value) { resume("next", value); }
351
- function reject(value) { resume("throw", value); }
352
- function settle(f, v) { if (f(v), q.shift(), q.length)
353
- resume(q[0][0], q[0][1]); }
354
- }
355
- function __asyncDelegator(o) {
356
- var i, p;
357
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
358
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
359
- }
360
- function __asyncValues(o) {
361
- if (!Symbol.asyncIterator)
362
- throw new TypeError("Symbol.asyncIterator is not defined.");
363
- var m = o[Symbol.asyncIterator], i;
364
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
365
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
366
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
367
- }
368
- function __makeTemplateObject(cooked, raw) {
369
- if (Object.defineProperty) {
370
- Object.defineProperty(cooked, "raw", { value: raw });
371
- }
372
- else {
373
- cooked.raw = raw;
374
- }
375
- return cooked;
376
- }
377
- ;
378
- var __setModuleDefault = Object.create ? (function (o, v) {
379
- Object.defineProperty(o, "default", { enumerable: true, value: v });
380
- }) : function (o, v) {
381
- o["default"] = v;
382
- };
383
- function __importStar(mod) {
384
- if (mod && mod.__esModule)
385
- return mod;
386
- var result = {};
387
- if (mod != null)
388
- for (var k in mod)
389
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
390
- __createBinding(result, mod, k);
391
- __setModuleDefault(result, mod);
392
- return result;
393
- }
394
- function __importDefault(mod) {
395
- return (mod && mod.__esModule) ? mod : { default: mod };
396
- }
397
- function __classPrivateFieldGet(receiver, state, kind, f) {
398
- if (kind === "a" && !f)
399
- throw new TypeError("Private accessor was defined without a getter");
400
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
401
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
402
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
403
- }
404
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
405
- if (kind === "m")
406
- throw new TypeError("Private method is not writable");
407
- if (kind === "a" && !f)
408
- throw new TypeError("Private accessor was defined without a setter");
409
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
410
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
411
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
412
- }
413
- function __classPrivateFieldIn(state, receiver) {
414
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
415
- throw new TypeError("Cannot use 'in' operator on non-object");
416
- return typeof state === "function" ? receiver === state : state.has(receiver);
417
- }
418
- function __addDisposableResource(env, value, async) {
419
- if (value !== null && value !== void 0) {
420
- if (typeof value !== "object" && typeof value !== "function")
421
- throw new TypeError("Object expected.");
422
- var dispose;
423
- if (async) {
424
- if (!Symbol.asyncDispose)
425
- throw new TypeError("Symbol.asyncDispose is not defined.");
426
- dispose = value[Symbol.asyncDispose];
427
- }
428
- if (dispose === void 0) {
429
- if (!Symbol.dispose)
430
- throw new TypeError("Symbol.dispose is not defined.");
431
- dispose = value[Symbol.dispose];
432
- }
433
- if (typeof dispose !== "function")
434
- throw new TypeError("Object not disposable.");
435
- env.stack.push({ value: value, dispose: dispose, async: async });
436
- }
437
- else if (async) {
438
- env.stack.push({ async: true });
439
- }
440
- return value;
441
- }
442
- var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
443
- var e = new Error(message);
444
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
445
- };
446
- function __disposeResources(env) {
447
- function fail(e) {
448
- env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
449
- env.hasError = true;
450
- }
451
- function next() {
452
- while (env.stack.length) {
453
- var rec = env.stack.pop();
454
- try {
455
- var result = rec.dispose && rec.dispose.call(rec.value);
456
- if (rec.async)
457
- return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
458
- }
459
- catch (e) {
460
- fail(e);
461
- }
462
- }
463
- if (env.hasError)
464
- throw env.error;
465
- }
466
- return next();
467
- }
468
- var tslib_es6 = {
469
- __extends: __extends,
470
- __assign: __assign,
471
- __rest: __rest,
472
- __decorate: __decorate,
473
- __param: __param,
474
- __metadata: __metadata,
475
- __awaiter: __awaiter,
476
- __generator: __generator,
477
- __createBinding: __createBinding,
478
- __exportStar: __exportStar,
479
- __values: __values,
480
- __read: __read,
481
- __spread: __spread,
482
- __spreadArrays: __spreadArrays,
483
- __spreadArray: __spreadArray,
484
- __await: __await,
485
- __asyncGenerator: __asyncGenerator,
486
- __asyncDelegator: __asyncDelegator,
487
- __asyncValues: __asyncValues,
488
- __makeTemplateObject: __makeTemplateObject,
489
- __importStar: __importStar,
490
- __importDefault: __importDefault,
491
- __classPrivateFieldGet: __classPrivateFieldGet,
492
- __classPrivateFieldSet: __classPrivateFieldSet,
493
- __classPrivateFieldIn: __classPrivateFieldIn,
494
- __addDisposableResource: __addDisposableResource,
495
- __disposeResources: __disposeResources,
496
- };
40
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
41
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
42
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
43
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
44
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
45
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
46
+ PERFORMANCE OF THIS SOFTWARE.
47
+ ***************************************************************************** */
48
+ /* global Reflect, Promise */
49
+ var extendStatics = function (d, b) {
50
+ extendStatics = Object.setPrototypeOf ||
51
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
52
+ function (d, b) { for (var p in b)
53
+ if (Object.prototype.hasOwnProperty.call(b, p))
54
+ d[p] = b[p]; };
55
+ return extendStatics(d, b);
56
+ };
57
+ function __extends(d, b) {
58
+ if (typeof b !== "function" && b !== null)
59
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
60
+ extendStatics(d, b);
61
+ function __() { this.constructor = d; }
62
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
63
+ }
64
+ var __assign = function () {
65
+ __assign = Object.assign || function __assign(t) {
66
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
67
+ s = arguments[i];
68
+ for (var p in s)
69
+ if (Object.prototype.hasOwnProperty.call(s, p))
70
+ t[p] = s[p];
71
+ }
72
+ return t;
73
+ };
74
+ return __assign.apply(this, arguments);
75
+ };
76
+ function __rest(s, e) {
77
+ var t = {};
78
+ for (var p in s)
79
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
80
+ t[p] = s[p];
81
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
82
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
83
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
84
+ t[p[i]] = s[p[i]];
85
+ }
86
+ return t;
87
+ }
88
+ function __decorate(decorators, target, key, desc) {
89
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
90
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
91
+ r = Reflect.decorate(decorators, target, key, desc);
92
+ else
93
+ for (var i = decorators.length - 1; i >= 0; i--)
94
+ if (d = decorators[i])
95
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
96
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
97
+ }
98
+ function __param(paramIndex, decorator) {
99
+ return function (target, key) { decorator(target, key, paramIndex); };
100
+ }
101
+ function __metadata(metadataKey, metadataValue) {
102
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
103
+ return Reflect.metadata(metadataKey, metadataValue);
104
+ }
105
+ function __awaiter(thisArg, _arguments, P, generator) {
106
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
107
+ return new (P || (P = Promise))(function (resolve, reject) {
108
+ function fulfilled(value) { try {
109
+ step(generator.next(value));
110
+ }
111
+ catch (e) {
112
+ reject(e);
113
+ } }
114
+ function rejected(value) { try {
115
+ step(generator["throw"](value));
116
+ }
117
+ catch (e) {
118
+ reject(e);
119
+ } }
120
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
121
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
122
+ });
123
+ }
124
+ function __generator(thisArg, body) {
125
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
126
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
127
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
128
+ function verb(n) { return function (v) { return step([n, v]); }; }
129
+ function step(op) {
130
+ if (f)
131
+ throw new TypeError("Generator is already executing.");
132
+ while (_)
133
+ try {
134
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
135
+ return t;
136
+ if (y = 0, t)
137
+ op = [op[0] & 2, t.value];
138
+ switch (op[0]) {
139
+ case 0:
140
+ case 1:
141
+ t = op;
142
+ break;
143
+ case 4:
144
+ _.label++;
145
+ return { value: op[1], done: false };
146
+ case 5:
147
+ _.label++;
148
+ y = op[1];
149
+ op = [0];
150
+ continue;
151
+ case 7:
152
+ op = _.ops.pop();
153
+ _.trys.pop();
154
+ continue;
155
+ default:
156
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
157
+ _ = 0;
158
+ continue;
159
+ }
160
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
161
+ _.label = op[1];
162
+ break;
163
+ }
164
+ if (op[0] === 6 && _.label < t[1]) {
165
+ _.label = t[1];
166
+ t = op;
167
+ break;
168
+ }
169
+ if (t && _.label < t[2]) {
170
+ _.label = t[2];
171
+ _.ops.push(op);
172
+ break;
173
+ }
174
+ if (t[2])
175
+ _.ops.pop();
176
+ _.trys.pop();
177
+ continue;
178
+ }
179
+ op = body.call(thisArg, _);
180
+ }
181
+ catch (e) {
182
+ op = [6, e];
183
+ y = 0;
184
+ }
185
+ finally {
186
+ f = t = 0;
187
+ }
188
+ if (op[0] & 5)
189
+ throw op[1];
190
+ return { value: op[0] ? op[1] : void 0, done: true };
191
+ }
192
+ }
193
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
194
+ if (k2 === undefined)
195
+ k2 = k;
196
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
197
+ }) : (function (o, m, k, k2) {
198
+ if (k2 === undefined)
199
+ k2 = k;
200
+ o[k2] = m[k];
201
+ });
202
+ function __exportStar(m, o) {
203
+ for (var p in m)
204
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
205
+ __createBinding(o, m, p);
206
+ }
207
+ function __values(o) {
208
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
209
+ if (m)
210
+ return m.call(o);
211
+ if (o && typeof o.length === "number")
212
+ return {
213
+ next: function () {
214
+ if (o && i >= o.length)
215
+ o = void 0;
216
+ return { value: o && o[i++], done: !o };
217
+ }
218
+ };
219
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
220
+ }
221
+ function __read(o, n) {
222
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
223
+ if (!m)
224
+ return o;
225
+ var i = m.call(o), r, ar = [], e;
226
+ try {
227
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
228
+ ar.push(r.value);
229
+ }
230
+ catch (error) {
231
+ e = { error: error };
232
+ }
233
+ finally {
234
+ try {
235
+ if (r && !r.done && (m = i["return"]))
236
+ m.call(i);
237
+ }
238
+ finally {
239
+ if (e)
240
+ throw e.error;
241
+ }
242
+ }
243
+ return ar;
244
+ }
245
+ /** @deprecated */
246
+ function __spread() {
247
+ for (var ar = [], i = 0; i < arguments.length; i++)
248
+ ar = ar.concat(__read(arguments[i]));
249
+ return ar;
250
+ }
251
+ /** @deprecated */
252
+ function __spreadArrays() {
253
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
254
+ s += arguments[i].length;
255
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
256
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
257
+ r[k] = a[j];
258
+ return r;
259
+ }
260
+ function __spreadArray(to, from, pack) {
261
+ if (pack || arguments.length === 2)
262
+ for (var i = 0, l = from.length, ar; i < l; i++) {
263
+ if (ar || !(i in from)) {
264
+ if (!ar)
265
+ ar = Array.prototype.slice.call(from, 0, i);
266
+ ar[i] = from[i];
267
+ }
268
+ }
269
+ return to.concat(ar || from);
270
+ }
271
+ function __await(v) {
272
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
273
+ }
274
+ function __asyncGenerator(thisArg, _arguments, generator) {
275
+ if (!Symbol.asyncIterator)
276
+ throw new TypeError("Symbol.asyncIterator is not defined.");
277
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
278
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
279
+ function verb(n) { if (g[n])
280
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
281
+ function resume(n, v) { try {
282
+ step(g[n](v));
283
+ }
284
+ catch (e) {
285
+ settle(q[0][3], e);
286
+ } }
287
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
288
+ function fulfill(value) { resume("next", value); }
289
+ function reject(value) { resume("throw", value); }
290
+ function settle(f, v) { if (f(v), q.shift(), q.length)
291
+ resume(q[0][0], q[0][1]); }
292
+ }
293
+ function __asyncDelegator(o) {
294
+ var i, p;
295
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
296
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
297
+ }
298
+ function __asyncValues(o) {
299
+ if (!Symbol.asyncIterator)
300
+ throw new TypeError("Symbol.asyncIterator is not defined.");
301
+ var m = o[Symbol.asyncIterator], i;
302
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
303
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
304
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
305
+ }
306
+ function __makeTemplateObject(cooked, raw) {
307
+ if (Object.defineProperty) {
308
+ Object.defineProperty(cooked, "raw", { value: raw });
309
+ }
310
+ else {
311
+ cooked.raw = raw;
312
+ }
313
+ return cooked;
314
+ }
315
+ ;
316
+ var __setModuleDefault = Object.create ? (function (o, v) {
317
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
318
+ }) : function (o, v) {
319
+ o["default"] = v;
320
+ };
321
+ function __importStar(mod) {
322
+ if (mod && mod.__esModule)
323
+ return mod;
324
+ var result = {};
325
+ if (mod != null)
326
+ for (var k in mod)
327
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
328
+ __createBinding(result, mod, k);
329
+ __setModuleDefault(result, mod);
330
+ return result;
331
+ }
332
+ function __importDefault(mod) {
333
+ return (mod && mod.__esModule) ? mod : { default: mod };
334
+ }
335
+ function __classPrivateFieldGet(receiver, state, kind, f) {
336
+ if (kind === "a" && !f)
337
+ throw new TypeError("Private accessor was defined without a getter");
338
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
339
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
340
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
341
+ }
342
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
343
+ if (kind === "m")
344
+ throw new TypeError("Private method is not writable");
345
+ if (kind === "a" && !f)
346
+ throw new TypeError("Private accessor was defined without a setter");
347
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
348
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
349
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
350
+ }
497
351
 
498
- var TuiInputSliderComponent = /** @class */ (function (_super) {
499
- __extends(TuiInputSliderComponent, _super);
500
- function TuiInputSliderComponent(control, cdr, controller) {
501
- var _this = _super.call(this, control, cdr) || this;
502
- _this.controller = controller;
503
- _this.min = 0;
504
- _this.max = 100;
505
- _this.quantum = 1;
506
- _this.steps = 0;
507
- _this.segments = 1;
508
- _this.keySteps = null;
509
- /** @deprecated use `tuiTextfieldPrefix` from {@link TuiTextfieldControllerModule} instead */
510
- _this.textfieldPrefix = '';
511
- /** @deprecated use `tuiTextfieldPostfix` from {@link TuiTextfieldControllerModule} instead */
512
- _this.textfieldPostfix = '';
513
- _this.textfieldValue = _this.safeCurrentValue;
514
- return _this;
515
- }
516
- Object.defineProperty(TuiInputSliderComponent.prototype, "prefix", {
517
- get: function () {
518
- return this.textfieldPrefix || this.controller.prefix;
519
- },
520
- enumerable: false,
521
- configurable: true
522
- });
523
- Object.defineProperty(TuiInputSliderComponent.prototype, "postfix", {
524
- get: function () {
525
- return this.textfieldPostfix || this.controller.postfix;
526
- },
527
- enumerable: false,
528
- configurable: true
529
- });
530
- Object.defineProperty(TuiInputSliderComponent.prototype, "nativeFocusableElement", {
531
- get: function () {
532
- var _a;
533
- return !((_a = this.inputNumberRef) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) || this.computedDisabled
534
- ? null
535
- : this.inputNumberRef.nativeFocusableElement;
536
- },
537
- enumerable: false,
538
- configurable: true
539
- });
540
- Object.defineProperty(TuiInputSliderComponent.prototype, "focused", {
541
- get: function () {
542
- var _a;
543
- return (i7.tuiIsNativeFocused(this.nativeFocusableElement) ||
544
- i7.tuiIsNativeFocused(((_a = this.sliderRef) === null || _a === void 0 ? void 0 : _a.nativeElement) || null));
545
- },
546
- enumerable: false,
547
- configurable: true
548
- });
549
- Object.defineProperty(TuiInputSliderComponent.prototype, "computedSteps", {
550
- get: function () {
551
- return this.steps || (this.max - this.min) / this.quantum;
552
- },
553
- enumerable: false,
554
- configurable: true
555
- });
556
- Object.defineProperty(TuiInputSliderComponent.prototype, "precision", {
557
- get: function () {
558
- return i3.tuiGetFractionPartPadded(this.quantum).length;
559
- },
560
- enumerable: false,
561
- configurable: true
562
- });
563
- Object.defineProperty(TuiInputSliderComponent.prototype, "decimal", {
564
- get: function () {
565
- return this.precision ? 'not-zero' : 'never';
566
- },
567
- enumerable: false,
568
- configurable: true
569
- });
570
- Object.defineProperty(TuiInputSliderComponent.prototype, "showValueContent", {
571
- get: function () {
572
- return Boolean(this.valueContent && !this.focused);
573
- },
574
- enumerable: false,
575
- configurable: true
576
- });
577
- Object.defineProperty(TuiInputSliderComponent.prototype, "step", {
578
- get: function () {
579
- return (this.max - this.min) / this.computedSteps;
580
- },
581
- enumerable: false,
582
- configurable: true
583
- });
584
- TuiInputSliderComponent.prototype.computeKeySteps = function (keySteps, min, max) {
585
- return (keySteps || [
586
- [0, min],
587
- [100, max],
588
- ]);
589
- };
590
- TuiInputSliderComponent.prototype.focusTextInput = function () {
591
- var _a;
592
- var focusableElement = (_a = this.inputNumberRef) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement;
593
- if (focusableElement) {
594
- focusableElement.focus();
595
- }
596
- };
597
- TuiInputSliderComponent.prototype.safelyUpdateValue = function (value) {
598
- this.value = this.valueGuard(value !== null && value !== void 0 ? value : this.safeCurrentValue);
599
- };
600
- TuiInputSliderComponent.prototype.onVerticalArrowKeyDown = function (coefficient) {
601
- if (this.readOnly || !this.step) {
602
- return;
603
- }
604
- var value = this.value + coefficient * this.step;
605
- if (value !== this.value) {
606
- this.safelyUpdateValue(value);
607
- this.textfieldValue = this.value;
608
- }
609
- };
610
- TuiInputSliderComponent.prototype.onSliderChange = function (newValue) {
611
- this.safelyUpdateValue(newValue);
612
- this.textfieldValue = this.value;
613
- };
614
- TuiInputSliderComponent.prototype.onFocused = function (focused) {
615
- var _b = this, value = _b.value, textfieldValue = _b.textfieldValue;
616
- if (!focused && textfieldValue !== value) {
617
- this.textfieldValue = value;
618
- }
619
- this.updateFocused(focused);
620
- };
621
- TuiInputSliderComponent.prototype.writeValue = function (value) {
622
- _super.prototype.writeValue.call(this, value);
623
- this.textfieldValue = this.value;
624
- };
625
- TuiInputSliderComponent.prototype.getFallbackValue = function () {
626
- return 0;
627
- };
628
- TuiInputSliderComponent.prototype.valueGuard = function (value) {
629
- var roundedValue = i7.tuiRound(Math.round(value / this.quantum) * this.quantum, constants.TUI_FLOATING_PRECISION);
630
- return i7.tuiClamp(roundedValue, this.min, this.max);
631
- };
632
- return TuiInputSliderComponent;
633
- }(i7.AbstractTuiControl));
634
- TuiInputSliderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputSliderComponent, deps: [{ token: i4.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: i3.TUI_TEXTFIELD_WATCHED_CONTROLLER }], target: i0__namespace.ɵɵFactoryTarget.Component });
635
- TuiInputSliderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputSliderComponent, selector: "tui-input-slider", inputs: { min: "min", max: "max", quantum: "quantum", steps: "steps", segments: "segments", keySteps: "keySteps", valueContent: "valueContent", textfieldPrefix: ["prefix", "textfieldPrefix"], textfieldPostfix: ["postfix", "textfieldPostfix"] }, host: { properties: { "attr.data-size": "controller.size", "class._label-outside": "controller.labelOutside" } }, providers: [
636
- i7.tuiAsFocusableItemAccessor(TuiInputSliderComponent),
637
- i7.tuiAsControl(TuiInputSliderComponent),
638
- i2.tuiSliderOptionsProvider({ trackColor: 'transparent' }),
639
- i3.TEXTFIELD_CONTROLLER_PROVIDER,
640
- ], viewQueries: [{ propertyName: "inputNumberRef", first: true, predicate: i1.TuiInputNumberComponent, descendants: true }, { propertyName: "sliderRef", first: true, predicate: i2.TuiSliderComponent, descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<tui-input-number\n [decimal]=\"decimal\"\n [disabled]=\"computedDisabled\"\n [max]=\"max\"\n [min]=\"min\"\n [precision]=\"precision\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoInvalid]=\"pseudoInvalid\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldPostfix]=\"showValueContent ? '' : postfix\"\n [tuiTextfieldPrefix]=\"showValueContent ? '' : prefix\"\n [(ngModel)]=\"textfieldValue\"\n (focusedChange)=\"onFocused($event)\"\n (keydown.arrowDown.prevent)=\"onVerticalArrowKeyDown(-1)\"\n (keydown.arrowUp.prevent)=\"onVerticalArrowKeyDown(1)\"\n (ngModelChange)=\"safelyUpdateValue($event)\"\n>\n <ng-content></ng-content>\n <div\n *ngIf=\"showValueContent\"\n automation-id=\"tui-input-slider__value-content\"\n ngProjectAs=\"tuiContent\"\n >\n <ng-container *polymorpheusOutlet=\"valueContent as text; context: {$implicit: value}\">\n {{ text }}\n </ng-container>\n </div>\n</tui-input-number>\n\n<input\n tuiSlider\n type=\"range\"\n [disabled]=\"readOnly || computedDisabled\"\n [keySteps]=\"computeKeySteps(keySteps, min, max)\"\n [max]=\"computedSteps\"\n [ngModel]=\"value\"\n [segments]=\"segments\"\n [tuiFocusable]=\"false\"\n (click)=\"focusTextInput()\"\n (ngModelChange)=\"onSliderChange($event)\"\n/>\n", styles: [":host{position:relative;display:block;height:-webkit-max-content;height:max-content;isolation:isolate}input[type=range]{position:absolute;top:100%;left:calc(var(--tui-radius-m) / 2);right:0;width:calc(100% - calc(var(--tui-radius-m) / 2));box-sizing:border-box;height:1rem;margin:-.5625rem 0 0;border-top-left-radius:0;border-bottom-left-radius:calc(var(--tui-radius-m) * 5) calc(var(--tui-radius-m) * 1.5)}\n"], components: [{ type: i1__namespace.TuiInputNumberComponent, selector: "tui-input-number", inputs: ["min", "max", "decimal", "precision", "step", "prefix", "postfix"] }, { type: i2__namespace.TuiSliderComponent, selector: "input[type=range][tuiSlider]", inputs: ["size", "segments"] }], directives: [{ type: i1__namespace.TuiInputNumberDirective, selector: "tui-input-number" }, { type: i3__namespace.TuiTextfieldPostfixDirective, selector: "[tuiTextfieldPostfix]", inputs: ["tuiTextfieldPostfix"] }, { type: i3__namespace.TuiTextfieldPrefixDirective, selector: "[tuiTextfieldPrefix]", inputs: ["tuiTextfieldPrefix"] }, { type: i4__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i2__namespace.TuiSliderKeyStepsDirective, selector: "input[tuiSlider][keySteps]", inputs: ["keySteps"] }, { type: i4__namespace.RangeValueAccessor, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]" }, { type: i4__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i7__namespace.TuiFocusableDirective, selector: "[tuiFocusable]", inputs: ["tuiFocusable"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
641
- __decorate([
642
- i7.tuiPure
643
- ], TuiInputSliderComponent.prototype, "computeKeySteps", null);
644
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputSliderComponent, decorators: [{
645
- type: i0.Component,
646
- args: [{
647
- selector: 'tui-input-slider',
648
- templateUrl: './input-slider.template.html',
649
- styleUrls: ['./input-slider.style.less'],
650
- host: {
651
- '[attr.data-size]': 'controller.size',
652
- '[class._label-outside]': 'controller.labelOutside',
653
- },
654
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
655
- providers: [
656
- i7.tuiAsFocusableItemAccessor(TuiInputSliderComponent),
657
- i7.tuiAsControl(TuiInputSliderComponent),
658
- i2.tuiSliderOptionsProvider({ trackColor: 'transparent' }),
659
- i3.TEXTFIELD_CONTROLLER_PROVIDER,
660
- ],
661
- }]
662
- }], ctorParameters: function () {
663
- return [{ type: i4__namespace.NgControl, decorators: [{
664
- type: i0.Optional
665
- }, {
666
- type: i0.Self
667
- }, {
668
- type: i0.Inject,
669
- args: [i4.NgControl]
670
- }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
671
- type: i0.Inject,
672
- args: [i0.ChangeDetectorRef]
673
- }] }, { type: i3__namespace.TuiTextfieldController, decorators: [{
674
- type: i0.Inject,
675
- args: [i3.TUI_TEXTFIELD_WATCHED_CONTROLLER]
676
- }] }];
677
- }, propDecorators: { inputNumberRef: [{
678
- type: i0.ViewChild,
679
- args: [i1.TuiInputNumberComponent]
680
- }], sliderRef: [{
681
- type: i0.ViewChild,
682
- args: [i2.TuiSliderComponent, { read: i0.ElementRef }]
683
- }], min: [{
684
- type: i0.Input
685
- }], max: [{
686
- type: i0.Input
687
- }], quantum: [{
688
- type: i0.Input
689
- }], steps: [{
690
- type: i0.Input
691
- }], segments: [{
692
- type: i0.Input
693
- }], keySteps: [{
694
- type: i0.Input
695
- }], valueContent: [{
696
- type: i0.Input
697
- }], textfieldPrefix: [{
698
- type: i0.Input,
699
- args: ['prefix']
700
- }], textfieldPostfix: [{
701
- type: i0.Input,
702
- args: ['postfix']
703
- }], computeKeySteps: [] } });
352
+ var TuiInputSliderComponent = /** @class */ (function (_super) {
353
+ __extends(TuiInputSliderComponent, _super);
354
+ function TuiInputSliderComponent(control, cdr, controller) {
355
+ var _this = _super.call(this, control, cdr) || this;
356
+ _this.controller = controller;
357
+ _this.min = 0;
358
+ _this.max = 100;
359
+ _this.quantum = 1;
360
+ _this.steps = 0;
361
+ _this.segments = 1;
362
+ _this.keySteps = null;
363
+ /** @deprecated use `tuiTextfieldPrefix` from {@link TuiTextfieldControllerModule} instead */
364
+ _this.textfieldPrefix = '';
365
+ /** @deprecated use `tuiTextfieldPostfix` from {@link TuiTextfieldControllerModule} instead */
366
+ _this.textfieldPostfix = '';
367
+ _this.textfieldValue = _this.safeCurrentValue;
368
+ return _this;
369
+ }
370
+ Object.defineProperty(TuiInputSliderComponent.prototype, "prefix", {
371
+ get: function () {
372
+ return this.textfieldPrefix || this.controller.prefix;
373
+ },
374
+ enumerable: false,
375
+ configurable: true
376
+ });
377
+ Object.defineProperty(TuiInputSliderComponent.prototype, "postfix", {
378
+ get: function () {
379
+ return this.textfieldPostfix || this.controller.postfix;
380
+ },
381
+ enumerable: false,
382
+ configurable: true
383
+ });
384
+ Object.defineProperty(TuiInputSliderComponent.prototype, "nativeFocusableElement", {
385
+ get: function () {
386
+ var _a;
387
+ return !((_a = this.inputNumberRef) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) || this.computedDisabled
388
+ ? null
389
+ : this.inputNumberRef.nativeFocusableElement;
390
+ },
391
+ enumerable: false,
392
+ configurable: true
393
+ });
394
+ Object.defineProperty(TuiInputSliderComponent.prototype, "focused", {
395
+ get: function () {
396
+ var _a;
397
+ return (i7.tuiIsNativeFocused(this.nativeFocusableElement) ||
398
+ i7.tuiIsNativeFocused(((_a = this.sliderRef) === null || _a === void 0 ? void 0 : _a.nativeElement) || null));
399
+ },
400
+ enumerable: false,
401
+ configurable: true
402
+ });
403
+ Object.defineProperty(TuiInputSliderComponent.prototype, "computedSteps", {
404
+ get: function () {
405
+ return this.steps || (this.max - this.min) / this.quantum;
406
+ },
407
+ enumerable: false,
408
+ configurable: true
409
+ });
410
+ Object.defineProperty(TuiInputSliderComponent.prototype, "precision", {
411
+ get: function () {
412
+ return i3.tuiGetFractionPartPadded(this.quantum).length;
413
+ },
414
+ enumerable: false,
415
+ configurable: true
416
+ });
417
+ Object.defineProperty(TuiInputSliderComponent.prototype, "decimal", {
418
+ get: function () {
419
+ return this.precision ? 'not-zero' : 'never';
420
+ },
421
+ enumerable: false,
422
+ configurable: true
423
+ });
424
+ Object.defineProperty(TuiInputSliderComponent.prototype, "showValueContent", {
425
+ get: function () {
426
+ return Boolean(this.valueContent && !this.focused);
427
+ },
428
+ enumerable: false,
429
+ configurable: true
430
+ });
431
+ Object.defineProperty(TuiInputSliderComponent.prototype, "step", {
432
+ get: function () {
433
+ return (this.max - this.min) / this.computedSteps;
434
+ },
435
+ enumerable: false,
436
+ configurable: true
437
+ });
438
+ TuiInputSliderComponent.prototype.computeKeySteps = function (keySteps, min, max) {
439
+ return (keySteps || [
440
+ [0, min],
441
+ [100, max],
442
+ ]);
443
+ };
444
+ TuiInputSliderComponent.prototype.focusTextInput = function () {
445
+ var _a;
446
+ var focusableElement = (_a = this.inputNumberRef) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement;
447
+ if (focusableElement) {
448
+ focusableElement.focus();
449
+ }
450
+ };
451
+ TuiInputSliderComponent.prototype.safelyUpdateValue = function (value) {
452
+ this.value = this.valueGuard(value !== null && value !== void 0 ? value : this.safeCurrentValue);
453
+ };
454
+ TuiInputSliderComponent.prototype.onVerticalArrowKeyDown = function (coefficient) {
455
+ if (this.readOnly || !this.step) {
456
+ return;
457
+ }
458
+ var value = this.value + coefficient * this.step;
459
+ if (value !== this.value) {
460
+ this.safelyUpdateValue(value);
461
+ this.textfieldValue = this.value;
462
+ }
463
+ };
464
+ TuiInputSliderComponent.prototype.onSliderChange = function (newValue) {
465
+ this.safelyUpdateValue(newValue);
466
+ this.textfieldValue = this.value;
467
+ };
468
+ TuiInputSliderComponent.prototype.onFocused = function (focused) {
469
+ var _b = this, value = _b.value, textfieldValue = _b.textfieldValue;
470
+ if (!focused && textfieldValue !== value) {
471
+ this.textfieldValue = value;
472
+ }
473
+ this.updateFocused(focused);
474
+ };
475
+ TuiInputSliderComponent.prototype.writeValue = function (value) {
476
+ _super.prototype.writeValue.call(this, value);
477
+ this.textfieldValue = this.value;
478
+ };
479
+ TuiInputSliderComponent.prototype.getFallbackValue = function () {
480
+ return 0;
481
+ };
482
+ TuiInputSliderComponent.prototype.valueGuard = function (value) {
483
+ var roundedValue = i7.tuiRound(Math.round(value / this.quantum) * this.quantum, constants.TUI_FLOATING_PRECISION);
484
+ return i7.tuiClamp(roundedValue, this.min, this.max);
485
+ };
486
+ return TuiInputSliderComponent;
487
+ }(i7.AbstractTuiControl));
488
+ TuiInputSliderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputSliderComponent, deps: [{ token: i4.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: i3.TUI_TEXTFIELD_WATCHED_CONTROLLER }], target: i0__namespace.ɵɵFactoryTarget.Component });
489
+ TuiInputSliderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputSliderComponent, selector: "tui-input-slider", inputs: { min: "min", max: "max", quantum: "quantum", steps: "steps", segments: "segments", keySteps: "keySteps", valueContent: "valueContent", textfieldPrefix: ["prefix", "textfieldPrefix"], textfieldPostfix: ["postfix", "textfieldPostfix"] }, host: { properties: { "attr.data-size": "controller.size", "class._label-outside": "controller.labelOutside" } }, providers: [
490
+ i7.tuiAsFocusableItemAccessor(TuiInputSliderComponent),
491
+ i7.tuiAsControl(TuiInputSliderComponent),
492
+ i2.tuiSliderOptionsProvider({ trackColor: 'transparent' }),
493
+ i3.TEXTFIELD_CONTROLLER_PROVIDER,
494
+ ], viewQueries: [{ propertyName: "inputNumberRef", first: true, predicate: i1.TuiInputNumberComponent, descendants: true }, { propertyName: "sliderRef", first: true, predicate: i2.TuiSliderComponent, descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<tui-input-number\n [decimal]=\"decimal\"\n [disabled]=\"computedDisabled\"\n [max]=\"max\"\n [min]=\"min\"\n [precision]=\"precision\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoInvalid]=\"pseudoInvalid\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldPostfix]=\"showValueContent ? '' : postfix\"\n [tuiTextfieldPrefix]=\"showValueContent ? '' : prefix\"\n [(ngModel)]=\"textfieldValue\"\n (focusedChange)=\"onFocused($event)\"\n (keydown.arrowDown.prevent)=\"onVerticalArrowKeyDown(-1)\"\n (keydown.arrowUp.prevent)=\"onVerticalArrowKeyDown(1)\"\n (ngModelChange)=\"safelyUpdateValue($event)\"\n>\n <ng-content></ng-content>\n <div\n *ngIf=\"showValueContent\"\n automation-id=\"tui-input-slider__value-content\"\n ngProjectAs=\"tuiContent\"\n >\n <ng-container *polymorpheusOutlet=\"valueContent as text; context: {$implicit: value}\">\n {{ text }}\n </ng-container>\n </div>\n</tui-input-number>\n\n<input\n tuiSlider\n type=\"range\"\n [disabled]=\"readOnly || computedDisabled\"\n [keySteps]=\"computeKeySteps(keySteps, min, max)\"\n [max]=\"computedSteps\"\n [ngModel]=\"value\"\n [segments]=\"segments\"\n [tuiFocusable]=\"false\"\n (click)=\"focusTextInput()\"\n (ngModelChange)=\"onSliderChange($event)\"\n/>\n", styles: [":host{position:relative;display:block;height:-webkit-max-content;height:max-content;isolation:isolate}input[type=range]{position:absolute;top:100%;left:calc(var(--tui-radius-m) / 2);right:0;width:calc(100% - calc(var(--tui-radius-m) / 2));box-sizing:border-box;height:1rem;margin:-.5625rem 0 0;border-top-left-radius:0;border-bottom-left-radius:calc(var(--tui-radius-m) * 5) calc(var(--tui-radius-m) * 1.5)}\n"], components: [{ type: i1__namespace.TuiInputNumberComponent, selector: "tui-input-number", inputs: ["min", "max", "decimal", "precision", "step", "prefix", "postfix"] }, { type: i2__namespace.TuiSliderComponent, selector: "input[type=range][tuiSlider]", inputs: ["size", "segments"] }], directives: [{ type: i1__namespace.TuiInputNumberDirective, selector: "tui-input-number" }, { type: i3__namespace.TuiTextfieldPostfixDirective, selector: "[tuiTextfieldPostfix]", inputs: ["tuiTextfieldPostfix"] }, { type: i3__namespace.TuiTextfieldPrefixDirective, selector: "[tuiTextfieldPrefix]", inputs: ["tuiTextfieldPrefix"] }, { type: i4__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i2__namespace.TuiSliderKeyStepsDirective, selector: "input[tuiSlider][keySteps]", inputs: ["keySteps"] }, { type: i4__namespace.RangeValueAccessor, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]" }, { type: i4__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i7__namespace.TuiFocusableDirective, selector: "[tuiFocusable]", inputs: ["tuiFocusable"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
495
+ __decorate([
496
+ i7.tuiPure
497
+ ], TuiInputSliderComponent.prototype, "computeKeySteps", null);
498
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputSliderComponent, decorators: [{
499
+ type: i0.Component,
500
+ args: [{
501
+ selector: 'tui-input-slider',
502
+ templateUrl: './input-slider.template.html',
503
+ styleUrls: ['./input-slider.style.less'],
504
+ host: {
505
+ '[attr.data-size]': 'controller.size',
506
+ '[class._label-outside]': 'controller.labelOutside',
507
+ },
508
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
509
+ providers: [
510
+ i7.tuiAsFocusableItemAccessor(TuiInputSliderComponent),
511
+ i7.tuiAsControl(TuiInputSliderComponent),
512
+ i2.tuiSliderOptionsProvider({ trackColor: 'transparent' }),
513
+ i3.TEXTFIELD_CONTROLLER_PROVIDER,
514
+ ],
515
+ }]
516
+ }], ctorParameters: function () {
517
+ return [{ type: i4__namespace.NgControl, decorators: [{
518
+ type: i0.Optional
519
+ }, {
520
+ type: i0.Self
521
+ }, {
522
+ type: i0.Inject,
523
+ args: [i4.NgControl]
524
+ }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
525
+ type: i0.Inject,
526
+ args: [i0.ChangeDetectorRef]
527
+ }] }, { type: i3__namespace.TuiTextfieldController, decorators: [{
528
+ type: i0.Inject,
529
+ args: [i3.TUI_TEXTFIELD_WATCHED_CONTROLLER]
530
+ }] }];
531
+ }, propDecorators: { inputNumberRef: [{
532
+ type: i0.ViewChild,
533
+ args: [i1.TuiInputNumberComponent]
534
+ }], sliderRef: [{
535
+ type: i0.ViewChild,
536
+ args: [i2.TuiSliderComponent, { read: i0.ElementRef }]
537
+ }], min: [{
538
+ type: i0.Input
539
+ }], max: [{
540
+ type: i0.Input
541
+ }], quantum: [{
542
+ type: i0.Input
543
+ }], steps: [{
544
+ type: i0.Input
545
+ }], segments: [{
546
+ type: i0.Input
547
+ }], keySteps: [{
548
+ type: i0.Input
549
+ }], valueContent: [{
550
+ type: i0.Input
551
+ }], textfieldPrefix: [{
552
+ type: i0.Input,
553
+ args: ['prefix']
554
+ }], textfieldPostfix: [{
555
+ type: i0.Input,
556
+ args: ['postfix']
557
+ }], computeKeySteps: [] } });
704
558
 
705
- var TuiInputSliderModule = /** @class */ (function () {
706
- function TuiInputSliderModule() {
707
- }
708
- return TuiInputSliderModule;
709
- }());
710
- TuiInputSliderModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputSliderModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
711
- TuiInputSliderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputSliderModule, declarations: [TuiInputSliderComponent], imports: [i5.CommonModule,
712
- i4.FormsModule,
713
- i6.PolymorpheusModule,
714
- i7.TuiFocusableModule,
715
- i1.TuiInputNumberModule,
716
- i2.TuiSliderModule,
717
- i3.TuiTextfieldControllerModule], exports: [TuiInputSliderComponent] });
718
- TuiInputSliderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputSliderModule, imports: [[
719
- i5.CommonModule,
720
- i4.FormsModule,
721
- i6.PolymorpheusModule,
722
- i7.TuiFocusableModule,
723
- i1.TuiInputNumberModule,
724
- i2.TuiSliderModule,
725
- i3.TuiTextfieldControllerModule,
726
- ]] });
727
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputSliderModule, decorators: [{
728
- type: i0.NgModule,
729
- args: [{
730
- imports: [
731
- i5.CommonModule,
732
- i4.FormsModule,
733
- i6.PolymorpheusModule,
734
- i7.TuiFocusableModule,
735
- i1.TuiInputNumberModule,
736
- i2.TuiSliderModule,
737
- i3.TuiTextfieldControllerModule,
738
- ],
739
- declarations: [TuiInputSliderComponent],
740
- exports: [TuiInputSliderComponent],
741
- }]
742
- }] });
559
+ var TuiInputSliderModule = /** @class */ (function () {
560
+ function TuiInputSliderModule() {
561
+ }
562
+ return TuiInputSliderModule;
563
+ }());
564
+ TuiInputSliderModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputSliderModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
565
+ TuiInputSliderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputSliderModule, declarations: [TuiInputSliderComponent], imports: [i5.CommonModule,
566
+ i4.FormsModule,
567
+ i6.PolymorpheusModule,
568
+ i7.TuiFocusableModule,
569
+ i1.TuiInputNumberModule,
570
+ i2.TuiSliderModule,
571
+ i3.TuiTextfieldControllerModule], exports: [TuiInputSliderComponent] });
572
+ TuiInputSliderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputSliderModule, imports: [[
573
+ i5.CommonModule,
574
+ i4.FormsModule,
575
+ i6.PolymorpheusModule,
576
+ i7.TuiFocusableModule,
577
+ i1.TuiInputNumberModule,
578
+ i2.TuiSliderModule,
579
+ i3.TuiTextfieldControllerModule,
580
+ ]] });
581
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputSliderModule, decorators: [{
582
+ type: i0.NgModule,
583
+ args: [{
584
+ imports: [
585
+ i5.CommonModule,
586
+ i4.FormsModule,
587
+ i6.PolymorpheusModule,
588
+ i7.TuiFocusableModule,
589
+ i1.TuiInputNumberModule,
590
+ i2.TuiSliderModule,
591
+ i3.TuiTextfieldControllerModule,
592
+ ],
593
+ declarations: [TuiInputSliderComponent],
594
+ exports: [TuiInputSliderComponent],
595
+ }]
596
+ }] });
743
597
 
744
- /**
745
- * Generated bundle index. Do not edit.
746
- */
598
+ /**
599
+ * Generated bundle index. Do not edit.
600
+ */
747
601
 
748
- exports.TuiInputSliderComponent = TuiInputSliderComponent;
749
- exports.TuiInputSliderModule = TuiInputSliderModule;
602
+ exports.TuiInputSliderComponent = TuiInputSliderComponent;
603
+ exports.TuiInputSliderModule = TuiInputSliderModule;
750
604
 
751
- Object.defineProperty(exports, '__esModule', { value: true });
605
+ Object.defineProperty(exports, '__esModule', { value: true });
752
606
 
753
607
  }));
754
608
  //# sourceMappingURL=taiga-ui-kit-components-input-slider.umd.js.map