@taiga-ui/core 3.60.0 → 3.61.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 (218) hide show
  1. package/bundles/taiga-ui-core-abstract.umd.js +525 -671
  2. package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
  3. package/bundles/taiga-ui-core-animations.umd.js +146 -146
  4. package/bundles/taiga-ui-core-animations.umd.js.map +1 -1
  5. package/bundles/taiga-ui-core-components-alert.umd.js +9 -155
  6. package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
  7. package/bundles/taiga-ui-core-components-button.umd.js +522 -668
  8. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  9. package/bundles/taiga-ui-core-components-data-list.umd.js +673 -819
  10. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  11. package/bundles/taiga-ui-core-components-dialog.umd.js +15 -161
  12. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  13. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +787 -933
  14. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  15. package/bundles/taiga-ui-core-components-loader.umd.js +1 -1
  16. package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
  17. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +3 -3
  18. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
  19. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +459 -605
  20. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
  21. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +1029 -1175
  22. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  23. package/bundles/taiga-ui-core-components-root.umd.js +459 -605
  24. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  25. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +6 -152
  26. package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
  27. package/bundles/taiga-ui-core-components-svg.umd.js +65 -211
  28. package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
  29. package/bundles/taiga-ui-core-components-theme-night.umd.js +374 -520
  30. package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
  31. package/bundles/taiga-ui-core-components-tooltip.umd.js +449 -595
  32. package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
  33. package/bundles/taiga-ui-core-constants.umd.js +31 -31
  34. package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
  35. package/bundles/taiga-ui-core-directives-dropdown.umd.js +1360 -1506
  36. package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
  37. package/bundles/taiga-ui-core-directives-hint.umd.js +1141 -1287
  38. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  39. package/bundles/taiga-ui-core-directives-mode.umd.js +375 -521
  40. package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
  41. package/bundles/taiga-ui-core-directives-number-format.umd.js +397 -543
  42. package/bundles/taiga-ui-core-directives-number-format.umd.js.map +1 -1
  43. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +9 -155
  44. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  45. package/bundles/taiga-ui-core-enums.umd.js.map +1 -1
  46. package/bundles/taiga-ui-core-observables.umd.js +2 -2
  47. package/bundles/taiga-ui-core-observables.umd.js.map +1 -1
  48. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js +1 -1
  49. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js.map +1 -1
  50. package/bundles/taiga-ui-core-pipes-flag.umd.js +4 -4
  51. package/bundles/taiga-ui-core-pipes-flag.umd.js.map +1 -1
  52. package/bundles/taiga-ui-core-pipes-format-date.umd.js +1 -1
  53. package/bundles/taiga-ui-core-pipes-format-date.umd.js.map +1 -1
  54. package/bundles/taiga-ui-core-pipes-format-number.umd.js +1 -1
  55. package/bundles/taiga-ui-core-pipes-format-number.umd.js.map +1 -1
  56. package/bundles/taiga-ui-core-pipes-format-phone.umd.js +3 -3
  57. package/bundles/taiga-ui-core-pipes-format-phone.umd.js.map +1 -1
  58. package/bundles/taiga-ui-core-pipes-month.umd.js +1 -1
  59. package/bundles/taiga-ui-core-pipes-month.umd.js.map +1 -1
  60. package/bundles/taiga-ui-core-pipes-order-week-days.umd.js +384 -530
  61. package/bundles/taiga-ui-core-pipes-order-week-days.umd.js.map +1 -1
  62. package/bundles/taiga-ui-core-providers.umd.js +2 -2
  63. package/bundles/taiga-ui-core-providers.umd.js.map +1 -1
  64. package/bundles/taiga-ui-core-services.umd.js +634 -780
  65. package/bundles/taiga-ui-core-services.umd.js.map +1 -1
  66. package/bundles/taiga-ui-core-tokens.umd.js +44 -190
  67. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  68. package/bundles/taiga-ui-core-utils-dom.umd.js +19 -19
  69. package/bundles/taiga-ui-core-utils-dom.umd.js.map +1 -1
  70. package/bundles/taiga-ui-core-utils-format.umd.js +21 -167
  71. package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
  72. package/bundles/taiga-ui-core-utils-mask.umd.js +34 -180
  73. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  74. package/bundles/taiga-ui-core-utils-miscellaneous.umd.js +7 -7
  75. package/bundles/taiga-ui-core-utils-miscellaneous.umd.js.map +1 -1
  76. package/constants/cache-basting-payload.d.ts +1 -1
  77. package/esm2015/abstract/abstract-textfield-host.js +3 -3
  78. package/esm2015/animations/animations.js +148 -148
  79. package/esm2015/components/alert/alert.providers.js +2 -2
  80. package/esm2015/components/alert/alert.service.js +3 -3
  81. package/esm2015/components/button/button.options.js +2 -2
  82. package/esm2015/components/dialog/dialog-close.service.js +5 -5
  83. package/esm2015/components/dialog/dialog.service.js +3 -3
  84. package/esm2015/components/dialog/dialog.tokens.js +4 -4
  85. package/esm2015/components/hosted-dropdown/hosted-dropdown.token.js +2 -2
  86. package/esm2015/components/loader/loader.options.js +2 -2
  87. package/esm2015/components/primitive-checkbox/checkbox.options.js +4 -4
  88. package/esm2015/components/root/root.component.js +1 -1
  89. package/esm2015/components/svg/deprecated-icons.js +57 -57
  90. package/esm2015/components/svg/svg-options.js +4 -4
  91. package/esm2015/constants/decimal-symbols.js +2 -2
  92. package/esm2015/constants/default-icons-path.js +2 -2
  93. package/esm2015/constants/default-number-format.js +4 -4
  94. package/esm2015/constants/editing-keys.js +10 -10
  95. package/esm2015/constants/events.js +5 -5
  96. package/esm2015/constants/hint-directions.js +13 -13
  97. package/esm2015/constants/mask-caret-trap.js +2 -2
  98. package/esm2015/directives/textfield-controller/textfield-controller.provider.js +2 -2
  99. package/esm2015/directives/textfield-controller/textfield.controller.js +2 -2
  100. package/esm2015/directives/textfield-controller/textfield.options.js +2 -2
  101. package/esm2015/enums/appearance.js +1 -1
  102. package/esm2015/enums/dropdown-animation.js +1 -1
  103. package/esm2015/enums/interactive-state.js +1 -1
  104. package/esm2015/enums/notification.js +1 -1
  105. package/esm2015/enums/range-state.js +1 -1
  106. package/esm2015/observables/smart-search.js +3 -3
  107. package/esm2015/pipes/calendar-sheet/calendar-sheet.pipe.js +2 -2
  108. package/esm2015/pipes/flag/flag.pipe.js +5 -5
  109. package/esm2015/pipes/format-date/format-date.pipe.js +2 -2
  110. package/esm2015/pipes/format-number/format-number.pipe.js +2 -2
  111. package/esm2015/pipes/format-phone/format-phone.pipe.js +4 -4
  112. package/esm2015/pipes/month/month.pipe.js +2 -2
  113. package/esm2015/pipes/order-week-days/order-week-days.pipe.js +2 -2
  114. package/esm2015/providers/is-mobile-resolution.provider.js +2 -2
  115. package/esm2015/providers/mode.provider.js +2 -2
  116. package/esm2015/services/breakpoint.service.js +3 -3
  117. package/esm2015/services/format-date.service.js +5 -5
  118. package/esm2015/services/hint.service.js +3 -3
  119. package/esm2015/services/night-theme.service.js +5 -5
  120. package/esm2015/services/svg.service.js +5 -5
  121. package/esm2015/services/visual-viewport.service.js +3 -3
  122. package/esm2015/tokens/animation-options.js +2 -2
  123. package/esm2015/tokens/common-icon.js +5 -5
  124. package/esm2015/tokens/data-list-accessor.js +2 -2
  125. package/esm2015/tokens/data-list-host.js +2 -2
  126. package/esm2015/tokens/day-type-handler.js +2 -2
  127. package/esm2015/tokens/document-or-shadow-root.js +2 -2
  128. package/esm2015/tokens/element-ref.js +2 -2
  129. package/esm2015/tokens/i18n.js +7 -7
  130. package/esm2015/tokens/icon-place.js +2 -2
  131. package/esm2015/tokens/is-mobile-resolution.js +2 -2
  132. package/esm2015/tokens/legacy-mask.js +2 -2
  133. package/esm2015/tokens/mode.js +2 -2
  134. package/esm2015/tokens/notification-options.js +9 -9
  135. package/esm2015/tokens/option-content.js +2 -2
  136. package/esm2015/tokens/reduced-motion.js +2 -2
  137. package/esm2015/tokens/sanitizer.js +2 -2
  138. package/esm2015/tokens/selection-stream.js +2 -2
  139. package/esm2015/tokens/spin-icons.js +3 -3
  140. package/esm2015/tokens/textfield-host.js +2 -2
  141. package/esm2015/tokens/theme.js +2 -2
  142. package/esm2015/tokens/value-accessor.js +2 -2
  143. package/esm2015/tokens/viewport.js +2 -2
  144. package/esm2015/utils/dom/check-fixed-position.js +3 -3
  145. package/esm2015/utils/dom/get-safe-area-size.js +4 -4
  146. package/esm2015/utils/dom/get-word-range.js +5 -5
  147. package/esm2015/utils/dom/process-icon.js +11 -11
  148. package/esm2015/utils/format/format-number.js +4 -4
  149. package/esm2015/utils/format/format-phone.js +9 -9
  150. package/esm2015/utils/format/get-fractional-part-padded.js +2 -2
  151. package/esm2015/utils/format/number-to-string-without-exp.js +3 -3
  152. package/esm2015/utils/format/other-decimal-symbol.js +2 -2
  153. package/esm2015/utils/mask/create-auto-corrected-money-pipe.js +11 -11
  154. package/esm2015/utils/mask/create-correction-mask.js +3 -3
  155. package/esm2015/utils/mask/create-number-mask.js +13 -13
  156. package/esm2015/utils/mask/masked-money-value-is-empty.js +3 -3
  157. package/esm2015/utils/mask/masked-number-string-to-number.js +2 -2
  158. package/esm2015/utils/miscellaneous/get-border.js +3 -3
  159. package/esm2015/utils/miscellaneous/icons-path-factory.js +3 -3
  160. package/esm2015/utils/miscellaneous/is-obscured.js +2 -2
  161. package/esm2015/utils/miscellaneous/is-presumed-html-string.js +2 -2
  162. package/esm2015/utils/miscellaneous/size-bigger.js +2 -2
  163. package/fesm2015/taiga-ui-core-abstract.js +2 -2
  164. package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
  165. package/fesm2015/taiga-ui-core-animations.js +146 -146
  166. package/fesm2015/taiga-ui-core-animations.js.map +1 -1
  167. package/fesm2015/taiga-ui-core-components-alert.js +3 -3
  168. package/fesm2015/taiga-ui-core-components-alert.js.map +1 -1
  169. package/fesm2015/taiga-ui-core-components-button.js +1 -1
  170. package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
  171. package/fesm2015/taiga-ui-core-components-dialog.js +9 -9
  172. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  173. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +1 -1
  174. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  175. package/fesm2015/taiga-ui-core-components-loader.js +1 -1
  176. package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
  177. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +3 -3
  178. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  179. package/fesm2015/taiga-ui-core-components-root.js +1 -1
  180. package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
  181. package/fesm2015/taiga-ui-core-components-svg.js +59 -59
  182. package/fesm2015/taiga-ui-core-components-svg.js.map +1 -1
  183. package/fesm2015/taiga-ui-core-constants.js +31 -31
  184. package/fesm2015/taiga-ui-core-constants.js.map +1 -1
  185. package/fesm2015/taiga-ui-core-directives-textfield-controller.js +3 -3
  186. package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  187. package/fesm2015/taiga-ui-core-enums.js.map +1 -1
  188. package/fesm2015/taiga-ui-core-observables.js +2 -2
  189. package/fesm2015/taiga-ui-core-observables.js.map +1 -1
  190. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js +1 -1
  191. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  192. package/fesm2015/taiga-ui-core-pipes-flag.js +4 -4
  193. package/fesm2015/taiga-ui-core-pipes-flag.js.map +1 -1
  194. package/fesm2015/taiga-ui-core-pipes-format-date.js +1 -1
  195. package/fesm2015/taiga-ui-core-pipes-format-date.js.map +1 -1
  196. package/fesm2015/taiga-ui-core-pipes-format-number.js +1 -1
  197. package/fesm2015/taiga-ui-core-pipes-format-number.js.map +1 -1
  198. package/fesm2015/taiga-ui-core-pipes-format-phone.js +3 -3
  199. package/fesm2015/taiga-ui-core-pipes-format-phone.js.map +1 -1
  200. package/fesm2015/taiga-ui-core-pipes-month.js +1 -1
  201. package/fesm2015/taiga-ui-core-pipes-month.js.map +1 -1
  202. package/fesm2015/taiga-ui-core-pipes-order-week-days.js +1 -1
  203. package/fesm2015/taiga-ui-core-pipes-order-week-days.js.map +1 -1
  204. package/fesm2015/taiga-ui-core-providers.js +2 -2
  205. package/fesm2015/taiga-ui-core-providers.js.map +1 -1
  206. package/fesm2015/taiga-ui-core-services.js +18 -18
  207. package/fesm2015/taiga-ui-core-services.js.map +1 -1
  208. package/fesm2015/taiga-ui-core-tokens.js +38 -38
  209. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  210. package/fesm2015/taiga-ui-core-utils-dom.js +19 -19
  211. package/fesm2015/taiga-ui-core-utils-dom.js.map +1 -1
  212. package/fesm2015/taiga-ui-core-utils-format.js +15 -15
  213. package/fesm2015/taiga-ui-core-utils-format.js.map +1 -1
  214. package/fesm2015/taiga-ui-core-utils-mask.js +27 -27
  215. package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
  216. package/fesm2015/taiga-ui-core-utils-miscellaneous.js +7 -7
  217. package/fesm2015/taiga-ui-core-utils-miscellaneous.js.map +1 -1
  218. package/package.json +4 -4
@@ -1,692 +1,546 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('rxjs'), require('rxjs/operators')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/core/abstract', ['exports', '@angular/core', '@taiga-ui/cdk', 'rxjs', 'rxjs/operators'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].core = global["taiga-ui"].core || {}, global["taiga-ui"].core.abstract = {}), global.ng.core, global.cdk, global.rxjs, global.rxjs.operators));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('rxjs'), require('rxjs/operators')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/core/abstract', ['exports', '@angular/core', '@taiga-ui/cdk', 'rxjs', 'rxjs/operators'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].core = global["taiga-ui"].core || {}, global["taiga-ui"].core.abstract = {}), global.ng.core, global.cdk, global.rxjs, global.rxjs.operators));
5
5
  })(this, (function (exports, i0, cdk, i1, operators) { 'use strict';
6
6
 
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
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 i1__namespace = /*#__PURE__*/_interopNamespace(i1);
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
27
27
 
28
- /******************************************************************************
29
- Copyright (c) Microsoft Corporation.
28
+ /*! *****************************************************************************
29
+ Copyright (c) Microsoft Corporation.
30
30
 
31
- Permission to use, copy, modify, and/or distribute this software for any
32
- purpose with or without fee is hereby granted.
31
+ Permission to use, copy, modify, and/or distribute this software for any
32
+ purpose with or without fee is hereby granted.
33
33
 
34
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
35
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
36
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
37
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
38
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
39
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
40
- PERFORMANCE OF THIS SOFTWARE.
41
- ***************************************************************************** */
42
- /* global Reflect, Promise, SuppressedError, Symbol */
43
- var extendStatics = function (d, b) {
44
- extendStatics = Object.setPrototypeOf ||
45
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
46
- function (d, b) { for (var p in b)
47
- if (Object.prototype.hasOwnProperty.call(b, p))
48
- d[p] = b[p]; };
49
- return extendStatics(d, b);
50
- };
51
- function __extends(d, b) {
52
- if (typeof b !== "function" && b !== null)
53
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
54
- extendStatics(d, b);
55
- function __() { this.constructor = d; }
56
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
57
- }
58
- var __assign = function () {
59
- __assign = Object.assign || function __assign(t) {
60
- for (var s, i = 1, n = arguments.length; i < n; i++) {
61
- s = arguments[i];
62
- for (var p in s)
63
- if (Object.prototype.hasOwnProperty.call(s, p))
64
- t[p] = s[p];
65
- }
66
- return t;
67
- };
68
- return __assign.apply(this, arguments);
69
- };
70
- function __rest(s, e) {
71
- var t = {};
72
- for (var p in s)
73
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
74
- t[p] = s[p];
75
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
76
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
77
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
78
- t[p[i]] = s[p[i]];
79
- }
80
- return t;
81
- }
82
- function __decorate(decorators, target, key, desc) {
83
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
84
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
85
- r = Reflect.decorate(decorators, target, key, desc);
86
- else
87
- for (var i = decorators.length - 1; i >= 0; i--)
88
- if (d = decorators[i])
89
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
90
- return c > 3 && r && Object.defineProperty(target, key, r), r;
91
- }
92
- function __param(paramIndex, decorator) {
93
- return function (target, key) { decorator(target, key, paramIndex); };
94
- }
95
- function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
96
- function accept(f) { if (f !== void 0 && typeof f !== "function")
97
- throw new TypeError("Function expected"); return f; }
98
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
99
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
100
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
101
- var _, done = false;
102
- for (var i = decorators.length - 1; i >= 0; i--) {
103
- var context = {};
104
- for (var p in contextIn)
105
- context[p] = p === "access" ? {} : contextIn[p];
106
- for (var p in contextIn.access)
107
- context.access[p] = contextIn.access[p];
108
- context.addInitializer = function (f) { if (done)
109
- throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
110
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
111
- if (kind === "accessor") {
112
- if (result === void 0)
113
- continue;
114
- if (result === null || typeof result !== "object")
115
- throw new TypeError("Object expected");
116
- if (_ = accept(result.get))
117
- descriptor.get = _;
118
- if (_ = accept(result.set))
119
- descriptor.set = _;
120
- if (_ = accept(result.init))
121
- initializers.unshift(_);
122
- }
123
- else if (_ = accept(result)) {
124
- if (kind === "field")
125
- initializers.unshift(_);
126
- else
127
- descriptor[key] = _;
128
- }
129
- }
130
- if (target)
131
- Object.defineProperty(target, contextIn.name, descriptor);
132
- done = true;
133
- }
134
- ;
135
- function __runInitializers(thisArg, initializers, value) {
136
- var useValue = arguments.length > 2;
137
- for (var i = 0; i < initializers.length; i++) {
138
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
139
- }
140
- return useValue ? value : void 0;
141
- }
142
- ;
143
- function __propKey(x) {
144
- return typeof x === "symbol" ? x : "".concat(x);
145
- }
146
- ;
147
- function __setFunctionName(f, name, prefix) {
148
- if (typeof name === "symbol")
149
- name = name.description ? "[".concat(name.description, "]") : "";
150
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
151
- }
152
- ;
153
- function __metadata(metadataKey, metadataValue) {
154
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
155
- return Reflect.metadata(metadataKey, metadataValue);
156
- }
157
- function __awaiter(thisArg, _arguments, P, generator) {
158
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
159
- return new (P || (P = Promise))(function (resolve, reject) {
160
- function fulfilled(value) { try {
161
- step(generator.next(value));
162
- }
163
- catch (e) {
164
- reject(e);
165
- } }
166
- function rejected(value) { try {
167
- step(generator["throw"](value));
168
- }
169
- catch (e) {
170
- reject(e);
171
- } }
172
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
173
- step((generator = generator.apply(thisArg, _arguments || [])).next());
174
- });
175
- }
176
- function __generator(thisArg, body) {
177
- var _ = { label: 0, sent: function () { if (t[0] & 1)
178
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
179
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
180
- function verb(n) { return function (v) { return step([n, v]); }; }
181
- function step(op) {
182
- if (f)
183
- throw new TypeError("Generator is already executing.");
184
- while (g && (g = 0, op[0] && (_ = 0)), _)
185
- try {
186
- 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)
187
- return t;
188
- if (y = 0, t)
189
- op = [op[0] & 2, t.value];
190
- switch (op[0]) {
191
- case 0:
192
- case 1:
193
- t = op;
194
- break;
195
- case 4:
196
- _.label++;
197
- return { value: op[1], done: false };
198
- case 5:
199
- _.label++;
200
- y = op[1];
201
- op = [0];
202
- continue;
203
- case 7:
204
- op = _.ops.pop();
205
- _.trys.pop();
206
- continue;
207
- default:
208
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
209
- _ = 0;
210
- continue;
211
- }
212
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
213
- _.label = op[1];
214
- break;
215
- }
216
- if (op[0] === 6 && _.label < t[1]) {
217
- _.label = t[1];
218
- t = op;
219
- break;
220
- }
221
- if (t && _.label < t[2]) {
222
- _.label = t[2];
223
- _.ops.push(op);
224
- break;
225
- }
226
- if (t[2])
227
- _.ops.pop();
228
- _.trys.pop();
229
- continue;
230
- }
231
- op = body.call(thisArg, _);
232
- }
233
- catch (e) {
234
- op = [6, e];
235
- y = 0;
236
- }
237
- finally {
238
- f = t = 0;
239
- }
240
- if (op[0] & 5)
241
- throw op[1];
242
- return { value: op[0] ? op[1] : void 0, done: true };
243
- }
244
- }
245
- var __createBinding = Object.create ? (function (o, m, k, k2) {
246
- if (k2 === undefined)
247
- k2 = k;
248
- var desc = Object.getOwnPropertyDescriptor(m, k);
249
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
250
- desc = { enumerable: true, get: function () { return m[k]; } };
251
- }
252
- Object.defineProperty(o, k2, desc);
253
- }) : (function (o, m, k, k2) {
254
- if (k2 === undefined)
255
- k2 = k;
256
- o[k2] = m[k];
257
- });
258
- function __exportStar(m, o) {
259
- for (var p in m)
260
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
261
- __createBinding(o, m, p);
262
- }
263
- function __values(o) {
264
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
265
- if (m)
266
- return m.call(o);
267
- if (o && typeof o.length === "number")
268
- return {
269
- next: function () {
270
- if (o && i >= o.length)
271
- o = void 0;
272
- return { value: o && o[i++], done: !o };
273
- }
274
- };
275
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
276
- }
277
- function __read(o, n) {
278
- var m = typeof Symbol === "function" && o[Symbol.iterator];
279
- if (!m)
280
- return o;
281
- var i = m.call(o), r, ar = [], e;
282
- try {
283
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
284
- ar.push(r.value);
285
- }
286
- catch (error) {
287
- e = { error: error };
288
- }
289
- finally {
290
- try {
291
- if (r && !r.done && (m = i["return"]))
292
- m.call(i);
293
- }
294
- finally {
295
- if (e)
296
- throw e.error;
297
- }
298
- }
299
- return ar;
300
- }
301
- /** @deprecated */
302
- function __spread() {
303
- for (var ar = [], i = 0; i < arguments.length; i++)
304
- ar = ar.concat(__read(arguments[i]));
305
- return ar;
306
- }
307
- /** @deprecated */
308
- function __spreadArrays() {
309
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
310
- s += arguments[i].length;
311
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
312
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
313
- r[k] = a[j];
314
- return r;
315
- }
316
- function __spreadArray(to, from, pack) {
317
- if (pack || arguments.length === 2)
318
- for (var i = 0, l = from.length, ar; i < l; i++) {
319
- if (ar || !(i in from)) {
320
- if (!ar)
321
- ar = Array.prototype.slice.call(from, 0, i);
322
- ar[i] = from[i];
323
- }
324
- }
325
- return to.concat(ar || Array.prototype.slice.call(from));
326
- }
327
- function __await(v) {
328
- return this instanceof __await ? (this.v = v, this) : new __await(v);
329
- }
330
- function __asyncGenerator(thisArg, _arguments, generator) {
331
- if (!Symbol.asyncIterator)
332
- throw new TypeError("Symbol.asyncIterator is not defined.");
333
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
334
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
335
- function verb(n) { if (g[n])
336
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
337
- function resume(n, v) { try {
338
- step(g[n](v));
339
- }
340
- catch (e) {
341
- settle(q[0][3], e);
342
- } }
343
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
344
- function fulfill(value) { resume("next", value); }
345
- function reject(value) { resume("throw", value); }
346
- function settle(f, v) { if (f(v), q.shift(), q.length)
347
- resume(q[0][0], q[0][1]); }
348
- }
349
- function __asyncDelegator(o) {
350
- var i, p;
351
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
352
- 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; }
353
- }
354
- function __asyncValues(o) {
355
- if (!Symbol.asyncIterator)
356
- throw new TypeError("Symbol.asyncIterator is not defined.");
357
- var m = o[Symbol.asyncIterator], i;
358
- 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);
359
- 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); }); }; }
360
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
361
- }
362
- function __makeTemplateObject(cooked, raw) {
363
- if (Object.defineProperty) {
364
- Object.defineProperty(cooked, "raw", { value: raw });
365
- }
366
- else {
367
- cooked.raw = raw;
368
- }
369
- return cooked;
370
- }
371
- ;
372
- var __setModuleDefault = Object.create ? (function (o, v) {
373
- Object.defineProperty(o, "default", { enumerable: true, value: v });
374
- }) : function (o, v) {
375
- o["default"] = v;
376
- };
377
- function __importStar(mod) {
378
- if (mod && mod.__esModule)
379
- return mod;
380
- var result = {};
381
- if (mod != null)
382
- for (var k in mod)
383
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
384
- __createBinding(result, mod, k);
385
- __setModuleDefault(result, mod);
386
- return result;
387
- }
388
- function __importDefault(mod) {
389
- return (mod && mod.__esModule) ? mod : { default: mod };
390
- }
391
- function __classPrivateFieldGet(receiver, state, kind, f) {
392
- if (kind === "a" && !f)
393
- throw new TypeError("Private accessor was defined without a getter");
394
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
395
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
396
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
397
- }
398
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
399
- if (kind === "m")
400
- throw new TypeError("Private method is not writable");
401
- if (kind === "a" && !f)
402
- throw new TypeError("Private accessor was defined without a setter");
403
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
404
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
405
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
406
- }
407
- function __classPrivateFieldIn(state, receiver) {
408
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
409
- throw new TypeError("Cannot use 'in' operator on non-object");
410
- return typeof state === "function" ? receiver === state : state.has(receiver);
411
- }
412
- function __addDisposableResource(env, value, async) {
413
- if (value !== null && value !== void 0) {
414
- if (typeof value !== "object" && typeof value !== "function")
415
- throw new TypeError("Object expected.");
416
- var dispose;
417
- if (async) {
418
- if (!Symbol.asyncDispose)
419
- throw new TypeError("Symbol.asyncDispose is not defined.");
420
- dispose = value[Symbol.asyncDispose];
421
- }
422
- if (dispose === void 0) {
423
- if (!Symbol.dispose)
424
- throw new TypeError("Symbol.dispose is not defined.");
425
- dispose = value[Symbol.dispose];
426
- }
427
- if (typeof dispose !== "function")
428
- throw new TypeError("Object not disposable.");
429
- env.stack.push({ value: value, dispose: dispose, async: async });
430
- }
431
- else if (async) {
432
- env.stack.push({ async: true });
433
- }
434
- return value;
435
- }
436
- var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
437
- var e = new Error(message);
438
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
439
- };
440
- function __disposeResources(env) {
441
- function fail(e) {
442
- env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
443
- env.hasError = true;
444
- }
445
- function next() {
446
- while (env.stack.length) {
447
- var rec = env.stack.pop();
448
- try {
449
- var result = rec.dispose && rec.dispose.call(rec.value);
450
- if (rec.async)
451
- return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
452
- }
453
- catch (e) {
454
- fail(e);
455
- }
456
- }
457
- if (env.hasError)
458
- throw env.error;
459
- }
460
- return next();
461
- }
462
- var tslib_es6 = {
463
- __extends: __extends,
464
- __assign: __assign,
465
- __rest: __rest,
466
- __decorate: __decorate,
467
- __param: __param,
468
- __metadata: __metadata,
469
- __awaiter: __awaiter,
470
- __generator: __generator,
471
- __createBinding: __createBinding,
472
- __exportStar: __exportStar,
473
- __values: __values,
474
- __read: __read,
475
- __spread: __spread,
476
- __spreadArrays: __spreadArrays,
477
- __spreadArray: __spreadArray,
478
- __await: __await,
479
- __asyncGenerator: __asyncGenerator,
480
- __asyncDelegator: __asyncDelegator,
481
- __asyncValues: __asyncValues,
482
- __makeTemplateObject: __makeTemplateObject,
483
- __importStar: __importStar,
484
- __importDefault: __importDefault,
485
- __classPrivateFieldGet: __classPrivateFieldGet,
486
- __classPrivateFieldSet: __classPrivateFieldSet,
487
- __classPrivateFieldIn: __classPrivateFieldIn,
488
- __addDisposableResource: __addDisposableResource,
489
- __disposeResources: __disposeResources,
490
- };
34
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
35
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
36
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
37
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
38
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
39
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
40
+ PERFORMANCE OF THIS SOFTWARE.
41
+ ***************************************************************************** */
42
+ /* global Reflect, Promise */
43
+ var extendStatics = function (d, b) {
44
+ extendStatics = Object.setPrototypeOf ||
45
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
46
+ function (d, b) { for (var p in b)
47
+ if (Object.prototype.hasOwnProperty.call(b, p))
48
+ d[p] = b[p]; };
49
+ return extendStatics(d, b);
50
+ };
51
+ function __extends(d, b) {
52
+ if (typeof b !== "function" && b !== null)
53
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
54
+ extendStatics(d, b);
55
+ function __() { this.constructor = d; }
56
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
57
+ }
58
+ var __assign = function () {
59
+ __assign = Object.assign || function __assign(t) {
60
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
61
+ s = arguments[i];
62
+ for (var p in s)
63
+ if (Object.prototype.hasOwnProperty.call(s, p))
64
+ t[p] = s[p];
65
+ }
66
+ return t;
67
+ };
68
+ return __assign.apply(this, arguments);
69
+ };
70
+ function __rest(s, e) {
71
+ var t = {};
72
+ for (var p in s)
73
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
74
+ t[p] = s[p];
75
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
76
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
77
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
78
+ t[p[i]] = s[p[i]];
79
+ }
80
+ return t;
81
+ }
82
+ function __decorate(decorators, target, key, desc) {
83
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
84
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
85
+ r = Reflect.decorate(decorators, target, key, desc);
86
+ else
87
+ for (var i = decorators.length - 1; i >= 0; i--)
88
+ if (d = decorators[i])
89
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
90
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
91
+ }
92
+ function __param(paramIndex, decorator) {
93
+ return function (target, key) { decorator(target, key, paramIndex); };
94
+ }
95
+ function __metadata(metadataKey, metadataValue) {
96
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
97
+ return Reflect.metadata(metadataKey, metadataValue);
98
+ }
99
+ function __awaiter(thisArg, _arguments, P, generator) {
100
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
101
+ return new (P || (P = Promise))(function (resolve, reject) {
102
+ function fulfilled(value) { try {
103
+ step(generator.next(value));
104
+ }
105
+ catch (e) {
106
+ reject(e);
107
+ } }
108
+ function rejected(value) { try {
109
+ step(generator["throw"](value));
110
+ }
111
+ catch (e) {
112
+ reject(e);
113
+ } }
114
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
115
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
116
+ });
117
+ }
118
+ function __generator(thisArg, body) {
119
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
120
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
121
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
122
+ function verb(n) { return function (v) { return step([n, v]); }; }
123
+ function step(op) {
124
+ if (f)
125
+ throw new TypeError("Generator is already executing.");
126
+ while (_)
127
+ try {
128
+ 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)
129
+ return t;
130
+ if (y = 0, t)
131
+ op = [op[0] & 2, t.value];
132
+ switch (op[0]) {
133
+ case 0:
134
+ case 1:
135
+ t = op;
136
+ break;
137
+ case 4:
138
+ _.label++;
139
+ return { value: op[1], done: false };
140
+ case 5:
141
+ _.label++;
142
+ y = op[1];
143
+ op = [0];
144
+ continue;
145
+ case 7:
146
+ op = _.ops.pop();
147
+ _.trys.pop();
148
+ continue;
149
+ default:
150
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
151
+ _ = 0;
152
+ continue;
153
+ }
154
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
155
+ _.label = op[1];
156
+ break;
157
+ }
158
+ if (op[0] === 6 && _.label < t[1]) {
159
+ _.label = t[1];
160
+ t = op;
161
+ break;
162
+ }
163
+ if (t && _.label < t[2]) {
164
+ _.label = t[2];
165
+ _.ops.push(op);
166
+ break;
167
+ }
168
+ if (t[2])
169
+ _.ops.pop();
170
+ _.trys.pop();
171
+ continue;
172
+ }
173
+ op = body.call(thisArg, _);
174
+ }
175
+ catch (e) {
176
+ op = [6, e];
177
+ y = 0;
178
+ }
179
+ finally {
180
+ f = t = 0;
181
+ }
182
+ if (op[0] & 5)
183
+ throw op[1];
184
+ return { value: op[0] ? op[1] : void 0, done: true };
185
+ }
186
+ }
187
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
188
+ if (k2 === undefined)
189
+ k2 = k;
190
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
191
+ }) : (function (o, m, k, k2) {
192
+ if (k2 === undefined)
193
+ k2 = k;
194
+ o[k2] = m[k];
195
+ });
196
+ function __exportStar(m, o) {
197
+ for (var p in m)
198
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
199
+ __createBinding(o, m, p);
200
+ }
201
+ function __values(o) {
202
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
203
+ if (m)
204
+ return m.call(o);
205
+ if (o && typeof o.length === "number")
206
+ return {
207
+ next: function () {
208
+ if (o && i >= o.length)
209
+ o = void 0;
210
+ return { value: o && o[i++], done: !o };
211
+ }
212
+ };
213
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
214
+ }
215
+ function __read(o, n) {
216
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
217
+ if (!m)
218
+ return o;
219
+ var i = m.call(o), r, ar = [], e;
220
+ try {
221
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
222
+ ar.push(r.value);
223
+ }
224
+ catch (error) {
225
+ e = { error: error };
226
+ }
227
+ finally {
228
+ try {
229
+ if (r && !r.done && (m = i["return"]))
230
+ m.call(i);
231
+ }
232
+ finally {
233
+ if (e)
234
+ throw e.error;
235
+ }
236
+ }
237
+ return ar;
238
+ }
239
+ /** @deprecated */
240
+ function __spread() {
241
+ for (var ar = [], i = 0; i < arguments.length; i++)
242
+ ar = ar.concat(__read(arguments[i]));
243
+ return ar;
244
+ }
245
+ /** @deprecated */
246
+ function __spreadArrays() {
247
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
248
+ s += arguments[i].length;
249
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
250
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
251
+ r[k] = a[j];
252
+ return r;
253
+ }
254
+ function __spreadArray(to, from, pack) {
255
+ if (pack || arguments.length === 2)
256
+ for (var i = 0, l = from.length, ar; i < l; i++) {
257
+ if (ar || !(i in from)) {
258
+ if (!ar)
259
+ ar = Array.prototype.slice.call(from, 0, i);
260
+ ar[i] = from[i];
261
+ }
262
+ }
263
+ return to.concat(ar || from);
264
+ }
265
+ function __await(v) {
266
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
267
+ }
268
+ function __asyncGenerator(thisArg, _arguments, generator) {
269
+ if (!Symbol.asyncIterator)
270
+ throw new TypeError("Symbol.asyncIterator is not defined.");
271
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
272
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
273
+ function verb(n) { if (g[n])
274
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
275
+ function resume(n, v) { try {
276
+ step(g[n](v));
277
+ }
278
+ catch (e) {
279
+ settle(q[0][3], e);
280
+ } }
281
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
282
+ function fulfill(value) { resume("next", value); }
283
+ function reject(value) { resume("throw", value); }
284
+ function settle(f, v) { if (f(v), q.shift(), q.length)
285
+ resume(q[0][0], q[0][1]); }
286
+ }
287
+ function __asyncDelegator(o) {
288
+ var i, p;
289
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
290
+ 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; }
291
+ }
292
+ function __asyncValues(o) {
293
+ if (!Symbol.asyncIterator)
294
+ throw new TypeError("Symbol.asyncIterator is not defined.");
295
+ var m = o[Symbol.asyncIterator], i;
296
+ 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);
297
+ 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); }); }; }
298
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
299
+ }
300
+ function __makeTemplateObject(cooked, raw) {
301
+ if (Object.defineProperty) {
302
+ Object.defineProperty(cooked, "raw", { value: raw });
303
+ }
304
+ else {
305
+ cooked.raw = raw;
306
+ }
307
+ return cooked;
308
+ }
309
+ ;
310
+ var __setModuleDefault = Object.create ? (function (o, v) {
311
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
312
+ }) : function (o, v) {
313
+ o["default"] = v;
314
+ };
315
+ function __importStar(mod) {
316
+ if (mod && mod.__esModule)
317
+ return mod;
318
+ var result = {};
319
+ if (mod != null)
320
+ for (var k in mod)
321
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
322
+ __createBinding(result, mod, k);
323
+ __setModuleDefault(result, mod);
324
+ return result;
325
+ }
326
+ function __importDefault(mod) {
327
+ return (mod && mod.__esModule) ? mod : { default: mod };
328
+ }
329
+ function __classPrivateFieldGet(receiver, state, kind, f) {
330
+ if (kind === "a" && !f)
331
+ throw new TypeError("Private accessor was defined without a getter");
332
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
333
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
334
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
335
+ }
336
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
337
+ if (kind === "m")
338
+ throw new TypeError("Private method is not writable");
339
+ if (kind === "a" && !f)
340
+ throw new TypeError("Private accessor was defined without a setter");
341
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
342
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
343
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
344
+ }
491
345
 
492
- // eslint-disable-next-line @typescript-eslint/naming-convention
493
- var TuiDriver = /** @class */ (function (_super) {
494
- __extends(TuiDriver, _super);
495
- function TuiDriver() {
496
- return _super !== null && _super.apply(this, arguments) || this;
497
- }
498
- return TuiDriver;
499
- }(i1.Observable));
500
- function tuiAsDriver(useExisting) {
501
- return {
502
- provide: TuiDriver,
503
- multi: true,
504
- useExisting: useExisting,
505
- };
506
- }
346
+ // eslint-disable-next-line @typescript-eslint/naming-convention
347
+ var TuiDriver = /** @class */ (function (_super) {
348
+ __extends(TuiDriver, _super);
349
+ function TuiDriver() {
350
+ return _super !== null && _super.apply(this, arguments) || this;
351
+ }
352
+ return TuiDriver;
353
+ }(i1.Observable));
354
+ function tuiAsDriver(useExisting) {
355
+ return {
356
+ provide: TuiDriver,
357
+ multi: true,
358
+ useExisting: useExisting,
359
+ };
360
+ }
507
361
 
508
- // eslint-disable-next-line @typescript-eslint/naming-convention
509
- var TuiVehicle = /** @class */ (function () {
510
- function TuiVehicle() {
511
- }
512
- return TuiVehicle;
513
- }());
514
- function tuiAsVehicle(useExisting) {
515
- return {
516
- provide: TuiVehicle,
517
- multi: true,
518
- useExisting: useExisting,
519
- };
520
- }
362
+ // eslint-disable-next-line @typescript-eslint/naming-convention
363
+ var TuiVehicle = /** @class */ (function () {
364
+ function TuiVehicle() {
365
+ }
366
+ return TuiVehicle;
367
+ }());
368
+ function tuiAsVehicle(useExisting) {
369
+ return {
370
+ provide: TuiVehicle,
371
+ multi: true,
372
+ useExisting: useExisting,
373
+ };
374
+ }
521
375
 
522
- var AbstractTuiDriverDirective = /** @class */ (function () {
523
- function AbstractTuiDriverDirective(destroy$, drivers, vehicles) {
524
- this.destroy$ = destroy$;
525
- this.drivers = drivers;
526
- this.vehicles = vehicles;
527
- }
528
- AbstractTuiDriverDirective.prototype.ngOnInit = function () {
529
- var _this = this;
530
- var vehicle = this.vehicles.find(function (_a) {
531
- var type = _a.type;
532
- return type === _this.type;
533
- });
534
- i1.merge.apply(void 0, __spreadArray([], __read(this.drivers.filter(function (_a) {
535
- var type = _a.type;
536
- return type === _this.type;
537
- })))).pipe(operators.distinctUntilChanged(), operators.takeUntil(this.destroy$))
538
- .subscribe(function (value) {
539
- vehicle === null || vehicle === void 0 ? void 0 : vehicle.toggle(value);
540
- });
541
- };
542
- return AbstractTuiDriverDirective;
543
- }());
544
- AbstractTuiDriverDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiDriverDirective, deps: [{ token: cdk.TuiDestroyService, self: true }, { token: TuiDriver }, { token: TuiVehicle }], target: i0__namespace.ɵɵFactoryTarget.Directive });
545
- AbstractTuiDriverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: AbstractTuiDriverDirective, ngImport: i0__namespace });
546
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiDriverDirective, decorators: [{
547
- type: i0.Directive
548
- }], ctorParameters: function () {
549
- return [{ type: i1__namespace.Observable, decorators: [{
550
- type: i0.Self
551
- }, {
552
- type: i0.Inject,
553
- args: [cdk.TuiDestroyService]
554
- }] }, { type: undefined, decorators: [{
555
- type: i0.Inject,
556
- args: [TuiDriver]
557
- }] }, { type: undefined, decorators: [{
558
- type: i0.Inject,
559
- args: [TuiVehicle]
560
- }] }];
561
- } });
376
+ var AbstractTuiDriverDirective = /** @class */ (function () {
377
+ function AbstractTuiDriverDirective(destroy$, drivers, vehicles) {
378
+ this.destroy$ = destroy$;
379
+ this.drivers = drivers;
380
+ this.vehicles = vehicles;
381
+ }
382
+ AbstractTuiDriverDirective.prototype.ngOnInit = function () {
383
+ var _this = this;
384
+ var vehicle = this.vehicles.find(function (_a) {
385
+ var type = _a.type;
386
+ return type === _this.type;
387
+ });
388
+ i1.merge.apply(void 0, __spreadArray([], __read(this.drivers.filter(function (_a) {
389
+ var type = _a.type;
390
+ return type === _this.type;
391
+ })))).pipe(operators.distinctUntilChanged(), operators.takeUntil(this.destroy$))
392
+ .subscribe(function (value) {
393
+ vehicle === null || vehicle === void 0 ? void 0 : vehicle.toggle(value);
394
+ });
395
+ };
396
+ return AbstractTuiDriverDirective;
397
+ }());
398
+ AbstractTuiDriverDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiDriverDirective, deps: [{ token: cdk.TuiDestroyService, self: true }, { token: TuiDriver }, { token: TuiVehicle }], target: i0__namespace.ɵɵFactoryTarget.Directive });
399
+ AbstractTuiDriverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: AbstractTuiDriverDirective, ngImport: i0__namespace });
400
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiDriverDirective, decorators: [{
401
+ type: i0.Directive
402
+ }], ctorParameters: function () {
403
+ return [{ type: i1__namespace.Observable, decorators: [{
404
+ type: i0.Self
405
+ }, {
406
+ type: i0.Inject,
407
+ args: [cdk.TuiDestroyService]
408
+ }] }, { type: undefined, decorators: [{
409
+ type: i0.Inject,
410
+ args: [TuiDriver]
411
+ }] }, { type: undefined, decorators: [{
412
+ type: i0.Inject,
413
+ args: [TuiVehicle]
414
+ }] }];
415
+ } });
562
416
 
563
- var AbstractTuiTextfieldHost = /** @class */ (function () {
564
- function AbstractTuiTextfieldHost(host) {
565
- this.host = host;
566
- }
567
- Object.defineProperty(AbstractTuiTextfieldHost.prototype, "readOnly", {
568
- get: function () {
569
- return this.host.readOnly;
570
- },
571
- enumerable: false,
572
- configurable: true
573
- });
574
- Object.defineProperty(AbstractTuiTextfieldHost.prototype, "disabled", {
575
- get: function () {
576
- return this.host.computedDisabled;
577
- },
578
- enumerable: false,
579
- configurable: true
580
- });
581
- Object.defineProperty(AbstractTuiTextfieldHost.prototype, "invalid", {
582
- get: function () {
583
- return this.host.computedInvalid;
584
- },
585
- enumerable: false,
586
- configurable: true
587
- });
588
- Object.defineProperty(AbstractTuiTextfieldHost.prototype, "focusable", {
589
- get: function () {
590
- return this.host.computedFocusable;
591
- },
592
- enumerable: false,
593
- configurable: true
594
- });
595
- Object.defineProperty(AbstractTuiTextfieldHost.prototype, "inputMode", {
596
- get: function () {
597
- return "text";
598
- },
599
- enumerable: false,
600
- configurable: true
601
- });
602
- Object.defineProperty(AbstractTuiTextfieldHost.prototype, "value", {
603
- get: function () {
604
- var _a;
605
- return ((_a = this.host.value) === null || _a === void 0 ? void 0 : _a.toString()) || "";
606
- },
607
- enumerable: false,
608
- configurable: true
609
- });
610
- AbstractTuiTextfieldHost.prototype.process = function (_input) { };
611
- return AbstractTuiTextfieldHost;
612
- }());
613
- AbstractTuiTextfieldHost.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiTextfieldHost, deps: [{ token: cdk.AbstractTuiControl }], target: i0__namespace.ɵɵFactoryTarget.Directive });
614
- AbstractTuiTextfieldHost.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: AbstractTuiTextfieldHost, ngImport: i0__namespace });
615
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiTextfieldHost, decorators: [{
616
- type: i0.Directive
617
- }], ctorParameters: function () {
618
- return [{ type: undefined, decorators: [{
619
- type: i0.Inject,
620
- args: [cdk.AbstractTuiControl]
621
- }] }];
622
- } });
417
+ var AbstractTuiTextfieldHost = /** @class */ (function () {
418
+ function AbstractTuiTextfieldHost(host) {
419
+ this.host = host;
420
+ }
421
+ Object.defineProperty(AbstractTuiTextfieldHost.prototype, "readOnly", {
422
+ get: function () {
423
+ return this.host.readOnly;
424
+ },
425
+ enumerable: false,
426
+ configurable: true
427
+ });
428
+ Object.defineProperty(AbstractTuiTextfieldHost.prototype, "disabled", {
429
+ get: function () {
430
+ return this.host.computedDisabled;
431
+ },
432
+ enumerable: false,
433
+ configurable: true
434
+ });
435
+ Object.defineProperty(AbstractTuiTextfieldHost.prototype, "invalid", {
436
+ get: function () {
437
+ return this.host.computedInvalid;
438
+ },
439
+ enumerable: false,
440
+ configurable: true
441
+ });
442
+ Object.defineProperty(AbstractTuiTextfieldHost.prototype, "focusable", {
443
+ get: function () {
444
+ return this.host.computedFocusable;
445
+ },
446
+ enumerable: false,
447
+ configurable: true
448
+ });
449
+ Object.defineProperty(AbstractTuiTextfieldHost.prototype, "inputMode", {
450
+ get: function () {
451
+ return 'text';
452
+ },
453
+ enumerable: false,
454
+ configurable: true
455
+ });
456
+ Object.defineProperty(AbstractTuiTextfieldHost.prototype, "value", {
457
+ get: function () {
458
+ var _a;
459
+ return ((_a = this.host.value) === null || _a === void 0 ? void 0 : _a.toString()) || '';
460
+ },
461
+ enumerable: false,
462
+ configurable: true
463
+ });
464
+ AbstractTuiTextfieldHost.prototype.process = function (_input) { };
465
+ return AbstractTuiTextfieldHost;
466
+ }());
467
+ AbstractTuiTextfieldHost.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiTextfieldHost, deps: [{ token: cdk.AbstractTuiControl }], target: i0__namespace.ɵɵFactoryTarget.Directive });
468
+ AbstractTuiTextfieldHost.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: AbstractTuiTextfieldHost, ngImport: i0__namespace });
469
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AbstractTuiTextfieldHost, decorators: [{
470
+ type: i0.Directive
471
+ }], ctorParameters: function () {
472
+ return [{ type: undefined, decorators: [{
473
+ type: i0.Inject,
474
+ args: [cdk.AbstractTuiControl]
475
+ }] }];
476
+ } });
623
477
 
624
- // eslint-disable-next-line @typescript-eslint/naming-convention
625
- var TuiPositionAccessor = /** @class */ (function () {
626
- function TuiPositionAccessor() {
627
- }
628
- return TuiPositionAccessor;
629
- }());
630
- function tuiPositionAccessorFor(type) {
631
- return {
632
- provide: TuiPositionAccessor,
633
- deps: [[new i0.SkipSelf(), TuiPositionAccessor]],
634
- useFactory: function (accessors) { return accessors.find(function (accessor) { return accessor.type === type; }); },
635
- };
636
- }
637
- function tuiAsPositionAccessor(useExisting) {
638
- return {
639
- provide: TuiPositionAccessor,
640
- multi: true,
641
- useExisting: useExisting,
642
- };
643
- }
478
+ // eslint-disable-next-line @typescript-eslint/naming-convention
479
+ var TuiPositionAccessor = /** @class */ (function () {
480
+ function TuiPositionAccessor() {
481
+ }
482
+ return TuiPositionAccessor;
483
+ }());
484
+ function tuiPositionAccessorFor(type) {
485
+ return {
486
+ provide: TuiPositionAccessor,
487
+ deps: [[new i0.SkipSelf(), TuiPositionAccessor]],
488
+ useFactory: function (accessors) { return accessors.find(function (accessor) { return accessor.type === type; }); },
489
+ };
490
+ }
491
+ function tuiAsPositionAccessor(useExisting) {
492
+ return {
493
+ provide: TuiPositionAccessor,
494
+ multi: true,
495
+ useExisting: useExisting,
496
+ };
497
+ }
644
498
 
645
- // TODO: Rename to getBoundingClientRect to match the DOM API
646
- // eslint-disable-next-line @typescript-eslint/naming-convention
647
- var TuiRectAccessor = /** @class */ (function () {
648
- function TuiRectAccessor() {
649
- }
650
- return TuiRectAccessor;
651
- }());
652
- function tuiRectAccessorFor(type, fallback) {
653
- return {
654
- provide: TuiRectAccessor,
655
- deps: [[new i0.SkipSelf(), TuiRectAccessor], fallback],
656
- useFactory: tuiFallbackRectAccessor(type),
657
- };
658
- }
659
- function tuiFallbackRectAccessor(type) {
660
- return function (accessors, fallback) { return accessors.find(function (accessor) { return accessor !== fallback && accessor.type === type; }) ||
661
- fallback; };
662
- }
663
- function tuiAsRectAccessor(useExisting) {
664
- return {
665
- provide: TuiRectAccessor,
666
- multi: true,
667
- useExisting: useExisting,
668
- };
669
- }
499
+ // TODO: Rename to getBoundingClientRect to match the DOM API
500
+ // eslint-disable-next-line @typescript-eslint/naming-convention
501
+ var TuiRectAccessor = /** @class */ (function () {
502
+ function TuiRectAccessor() {
503
+ }
504
+ return TuiRectAccessor;
505
+ }());
506
+ function tuiRectAccessorFor(type, fallback) {
507
+ return {
508
+ provide: TuiRectAccessor,
509
+ deps: [[new i0.SkipSelf(), TuiRectAccessor], fallback],
510
+ useFactory: tuiFallbackRectAccessor(type),
511
+ };
512
+ }
513
+ function tuiFallbackRectAccessor(type) {
514
+ return function (accessors, fallback) { return accessors.find(function (accessor) { return accessor !== fallback && accessor.type === type; }) ||
515
+ fallback; };
516
+ }
517
+ function tuiAsRectAccessor(useExisting) {
518
+ return {
519
+ provide: TuiRectAccessor,
520
+ multi: true,
521
+ useExisting: useExisting,
522
+ };
523
+ }
670
524
 
671
- /**
672
- * Generated bundle index. Do not edit.
673
- */
525
+ /**
526
+ * Generated bundle index. Do not edit.
527
+ */
674
528
 
675
- exports.AbstractTuiDriverDirective = AbstractTuiDriverDirective;
676
- exports.AbstractTuiTextfieldHost = AbstractTuiTextfieldHost;
677
- exports.TuiDriver = TuiDriver;
678
- exports.TuiPositionAccessor = TuiPositionAccessor;
679
- exports.TuiRectAccessor = TuiRectAccessor;
680
- exports.TuiVehicle = TuiVehicle;
681
- exports.tuiAsDriver = tuiAsDriver;
682
- exports.tuiAsPositionAccessor = tuiAsPositionAccessor;
683
- exports.tuiAsRectAccessor = tuiAsRectAccessor;
684
- exports.tuiAsVehicle = tuiAsVehicle;
685
- exports.tuiFallbackRectAccessor = tuiFallbackRectAccessor;
686
- exports.tuiPositionAccessorFor = tuiPositionAccessorFor;
687
- exports.tuiRectAccessorFor = tuiRectAccessorFor;
529
+ exports.AbstractTuiDriverDirective = AbstractTuiDriverDirective;
530
+ exports.AbstractTuiTextfieldHost = AbstractTuiTextfieldHost;
531
+ exports.TuiDriver = TuiDriver;
532
+ exports.TuiPositionAccessor = TuiPositionAccessor;
533
+ exports.TuiRectAccessor = TuiRectAccessor;
534
+ exports.TuiVehicle = TuiVehicle;
535
+ exports.tuiAsDriver = tuiAsDriver;
536
+ exports.tuiAsPositionAccessor = tuiAsPositionAccessor;
537
+ exports.tuiAsRectAccessor = tuiAsRectAccessor;
538
+ exports.tuiAsVehicle = tuiAsVehicle;
539
+ exports.tuiFallbackRectAccessor = tuiFallbackRectAccessor;
540
+ exports.tuiPositionAccessorFor = tuiPositionAccessorFor;
541
+ exports.tuiRectAccessorFor = tuiRectAccessorFor;
688
542
 
689
- Object.defineProperty(exports, '__esModule', { value: true });
543
+ Object.defineProperty(exports, '__esModule', { value: true });
690
544
 
691
545
  }));
692
546
  //# sourceMappingURL=taiga-ui-core-abstract.umd.js.map