@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,991 +1,845 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@maskito/core'), require('@maskito/kit'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit/constants'), require('@taiga-ui/kit/tokens'), require('@tinkoff/ng-polymorpheus'), require('rxjs/operators'), require('@taiga-ui/kit/components/calendar-range'), require('@taiga-ui/kit/directives'), require('@maskito/angular'), require('@angular/common'), require('rxjs')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/input-date-range', ['exports', '@angular/core', '@angular/forms', '@maskito/core', '@maskito/kit', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit/constants', '@taiga-ui/kit/tokens', '@tinkoff/ng-polymorpheus', 'rxjs/operators', '@taiga-ui/kit/components/calendar-range', '@taiga-ui/kit/directives', '@maskito/angular', '@angular/common', 'rxjs'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].kit = global["taiga-ui"].kit || {}, global["taiga-ui"].kit.components = global["taiga-ui"].kit.components || {}, global["taiga-ui"].kit.components["input-date-range"] = {}), global.ng.core, global.ng.forms, global.core, global.kit, global.i3, global.i1, global["taiga-ui"].kit.constants, global["taiga-ui"].kit.tokens, global.i7, global.rxjs.operators, global["taiga-ui"].kit.components["calendar-range"], global["taiga-ui"].kit.directives, global.i5, global.ng.common, global.rxjs));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@maskito/core'), require('@maskito/kit'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit/constants'), require('@taiga-ui/kit/tokens'), require('@tinkoff/ng-polymorpheus'), require('rxjs/operators'), require('@taiga-ui/kit/components/calendar-range'), require('@taiga-ui/kit/directives'), require('@maskito/angular'), require('@angular/common'), require('rxjs')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/input-date-range', ['exports', '@angular/core', '@angular/forms', '@maskito/core', '@maskito/kit', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit/constants', '@taiga-ui/kit/tokens', '@tinkoff/ng-polymorpheus', 'rxjs/operators', '@taiga-ui/kit/components/calendar-range', '@taiga-ui/kit/directives', '@maskito/angular', '@angular/common', 'rxjs'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].kit = global["taiga-ui"].kit || {}, global["taiga-ui"].kit.components = global["taiga-ui"].kit.components || {}, global["taiga-ui"].kit.components["input-date-range"] = {}), global.ng.core, global.ng.forms, global.core, global.kit, global.i3, global.i1, global["taiga-ui"].kit.constants, global["taiga-ui"].kit.tokens, global.i7, global.rxjs.operators, global["taiga-ui"].kit.components["calendar-range"], global["taiga-ui"].kit.directives, global.i5, global.ng.common, global.rxjs));
5
5
  })(this, (function (exports, i0, i8, core, kit, i3, i1, constants, tokens, i7, operators, i2, i4, i5, i6, i9) { '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 i8__namespace = /*#__PURE__*/_interopNamespace(i8);
27
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
28
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
- var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
30
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
31
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
32
- var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
33
- var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
34
- var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
27
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
28
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
+ var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
30
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
31
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
32
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
33
+ var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
34
+ var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
35
35
 
36
- /******************************************************************************
37
- Copyright (c) Microsoft Corporation.
36
+ /*! *****************************************************************************
37
+ Copyright (c) Microsoft Corporation.
38
38
 
39
- Permission to use, copy, modify, and/or distribute this software for any
40
- purpose with or without fee is hereby granted.
39
+ Permission to use, copy, modify, and/or distribute this software for any
40
+ purpose with or without fee is hereby granted.
41
41
 
42
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
43
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
44
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
45
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
46
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
47
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
48
- PERFORMANCE OF THIS SOFTWARE.
49
- ***************************************************************************** */
50
- /* global Reflect, Promise, SuppressedError, Symbol */
51
- var extendStatics = function (d, b) {
52
- extendStatics = Object.setPrototypeOf ||
53
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
54
- function (d, b) { for (var p in b)
55
- if (Object.prototype.hasOwnProperty.call(b, p))
56
- d[p] = b[p]; };
57
- return extendStatics(d, b);
58
- };
59
- function __extends(d, b) {
60
- if (typeof b !== "function" && b !== null)
61
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
62
- extendStatics(d, b);
63
- function __() { this.constructor = d; }
64
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
65
- }
66
- var __assign = function () {
67
- __assign = Object.assign || function __assign(t) {
68
- for (var s, i = 1, n = arguments.length; i < n; i++) {
69
- s = arguments[i];
70
- for (var p in s)
71
- if (Object.prototype.hasOwnProperty.call(s, p))
72
- t[p] = s[p];
73
- }
74
- return t;
75
- };
76
- return __assign.apply(this, arguments);
77
- };
78
- function __rest(s, e) {
79
- var t = {};
80
- for (var p in s)
81
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
82
- t[p] = s[p];
83
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
84
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
85
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
86
- t[p[i]] = s[p[i]];
87
- }
88
- return t;
89
- }
90
- function __decorate(decorators, target, key, desc) {
91
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
92
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
93
- r = Reflect.decorate(decorators, target, key, desc);
94
- else
95
- for (var i = decorators.length - 1; i >= 0; i--)
96
- if (d = decorators[i])
97
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
98
- return c > 3 && r && Object.defineProperty(target, key, r), r;
99
- }
100
- function __param(paramIndex, decorator) {
101
- return function (target, key) { decorator(target, key, paramIndex); };
102
- }
103
- function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
104
- function accept(f) { if (f !== void 0 && typeof f !== "function")
105
- throw new TypeError("Function expected"); return f; }
106
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
107
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
108
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
109
- var _, done = false;
110
- for (var i = decorators.length - 1; i >= 0; i--) {
111
- var context = {};
112
- for (var p in contextIn)
113
- context[p] = p === "access" ? {} : contextIn[p];
114
- for (var p in contextIn.access)
115
- context.access[p] = contextIn.access[p];
116
- context.addInitializer = function (f) { if (done)
117
- throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
118
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
119
- if (kind === "accessor") {
120
- if (result === void 0)
121
- continue;
122
- if (result === null || typeof result !== "object")
123
- throw new TypeError("Object expected");
124
- if (_ = accept(result.get))
125
- descriptor.get = _;
126
- if (_ = accept(result.set))
127
- descriptor.set = _;
128
- if (_ = accept(result.init))
129
- initializers.unshift(_);
130
- }
131
- else if (_ = accept(result)) {
132
- if (kind === "field")
133
- initializers.unshift(_);
134
- else
135
- descriptor[key] = _;
136
- }
137
- }
138
- if (target)
139
- Object.defineProperty(target, contextIn.name, descriptor);
140
- done = true;
141
- }
142
- ;
143
- function __runInitializers(thisArg, initializers, value) {
144
- var useValue = arguments.length > 2;
145
- for (var i = 0; i < initializers.length; i++) {
146
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
147
- }
148
- return useValue ? value : void 0;
149
- }
150
- ;
151
- function __propKey(x) {
152
- return typeof x === "symbol" ? x : "".concat(x);
153
- }
154
- ;
155
- function __setFunctionName(f, name, prefix) {
156
- if (typeof name === "symbol")
157
- name = name.description ? "[".concat(name.description, "]") : "";
158
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
159
- }
160
- ;
161
- function __metadata(metadataKey, metadataValue) {
162
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
163
- return Reflect.metadata(metadataKey, metadataValue);
164
- }
165
- function __awaiter(thisArg, _arguments, P, generator) {
166
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
167
- return new (P || (P = Promise))(function (resolve, reject) {
168
- function fulfilled(value) { try {
169
- step(generator.next(value));
170
- }
171
- catch (e) {
172
- reject(e);
173
- } }
174
- function rejected(value) { try {
175
- step(generator["throw"](value));
176
- }
177
- catch (e) {
178
- reject(e);
179
- } }
180
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
181
- step((generator = generator.apply(thisArg, _arguments || [])).next());
182
- });
183
- }
184
- function __generator(thisArg, body) {
185
- var _ = { label: 0, sent: function () { if (t[0] & 1)
186
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
187
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
188
- function verb(n) { return function (v) { return step([n, v]); }; }
189
- function step(op) {
190
- if (f)
191
- throw new TypeError("Generator is already executing.");
192
- while (g && (g = 0, op[0] && (_ = 0)), _)
193
- try {
194
- 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)
195
- return t;
196
- if (y = 0, t)
197
- op = [op[0] & 2, t.value];
198
- switch (op[0]) {
199
- case 0:
200
- case 1:
201
- t = op;
202
- break;
203
- case 4:
204
- _.label++;
205
- return { value: op[1], done: false };
206
- case 5:
207
- _.label++;
208
- y = op[1];
209
- op = [0];
210
- continue;
211
- case 7:
212
- op = _.ops.pop();
213
- _.trys.pop();
214
- continue;
215
- default:
216
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
217
- _ = 0;
218
- continue;
219
- }
220
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
221
- _.label = op[1];
222
- break;
223
- }
224
- if (op[0] === 6 && _.label < t[1]) {
225
- _.label = t[1];
226
- t = op;
227
- break;
228
- }
229
- if (t && _.label < t[2]) {
230
- _.label = t[2];
231
- _.ops.push(op);
232
- break;
233
- }
234
- if (t[2])
235
- _.ops.pop();
236
- _.trys.pop();
237
- continue;
238
- }
239
- op = body.call(thisArg, _);
240
- }
241
- catch (e) {
242
- op = [6, e];
243
- y = 0;
244
- }
245
- finally {
246
- f = t = 0;
247
- }
248
- if (op[0] & 5)
249
- throw op[1];
250
- return { value: op[0] ? op[1] : void 0, done: true };
251
- }
252
- }
253
- var __createBinding = Object.create ? (function (o, m, k, k2) {
254
- if (k2 === undefined)
255
- k2 = k;
256
- var desc = Object.getOwnPropertyDescriptor(m, k);
257
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
258
- desc = { enumerable: true, get: function () { return m[k]; } };
259
- }
260
- Object.defineProperty(o, k2, desc);
261
- }) : (function (o, m, k, k2) {
262
- if (k2 === undefined)
263
- k2 = k;
264
- o[k2] = m[k];
265
- });
266
- function __exportStar(m, o) {
267
- for (var p in m)
268
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
269
- __createBinding(o, m, p);
270
- }
271
- function __values(o) {
272
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
273
- if (m)
274
- return m.call(o);
275
- if (o && typeof o.length === "number")
276
- return {
277
- next: function () {
278
- if (o && i >= o.length)
279
- o = void 0;
280
- return { value: o && o[i++], done: !o };
281
- }
282
- };
283
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
284
- }
285
- function __read(o, n) {
286
- var m = typeof Symbol === "function" && o[Symbol.iterator];
287
- if (!m)
288
- return o;
289
- var i = m.call(o), r, ar = [], e;
290
- try {
291
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
292
- ar.push(r.value);
293
- }
294
- catch (error) {
295
- e = { error: error };
296
- }
297
- finally {
298
- try {
299
- if (r && !r.done && (m = i["return"]))
300
- m.call(i);
301
- }
302
- finally {
303
- if (e)
304
- throw e.error;
305
- }
306
- }
307
- return ar;
308
- }
309
- /** @deprecated */
310
- function __spread() {
311
- for (var ar = [], i = 0; i < arguments.length; i++)
312
- ar = ar.concat(__read(arguments[i]));
313
- return ar;
314
- }
315
- /** @deprecated */
316
- function __spreadArrays() {
317
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
318
- s += arguments[i].length;
319
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
320
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
321
- r[k] = a[j];
322
- return r;
323
- }
324
- function __spreadArray(to, from, pack) {
325
- if (pack || arguments.length === 2)
326
- for (var i = 0, l = from.length, ar; i < l; i++) {
327
- if (ar || !(i in from)) {
328
- if (!ar)
329
- ar = Array.prototype.slice.call(from, 0, i);
330
- ar[i] = from[i];
331
- }
332
- }
333
- return to.concat(ar || Array.prototype.slice.call(from));
334
- }
335
- function __await(v) {
336
- return this instanceof __await ? (this.v = v, this) : new __await(v);
337
- }
338
- function __asyncGenerator(thisArg, _arguments, generator) {
339
- if (!Symbol.asyncIterator)
340
- throw new TypeError("Symbol.asyncIterator is not defined.");
341
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
342
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
343
- function verb(n) { if (g[n])
344
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
345
- function resume(n, v) { try {
346
- step(g[n](v));
347
- }
348
- catch (e) {
349
- settle(q[0][3], e);
350
- } }
351
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
352
- function fulfill(value) { resume("next", value); }
353
- function reject(value) { resume("throw", value); }
354
- function settle(f, v) { if (f(v), q.shift(), q.length)
355
- resume(q[0][0], q[0][1]); }
356
- }
357
- function __asyncDelegator(o) {
358
- var i, p;
359
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
360
- 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; }
361
- }
362
- function __asyncValues(o) {
363
- if (!Symbol.asyncIterator)
364
- throw new TypeError("Symbol.asyncIterator is not defined.");
365
- var m = o[Symbol.asyncIterator], i;
366
- 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);
367
- 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); }); }; }
368
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
369
- }
370
- function __makeTemplateObject(cooked, raw) {
371
- if (Object.defineProperty) {
372
- Object.defineProperty(cooked, "raw", { value: raw });
373
- }
374
- else {
375
- cooked.raw = raw;
376
- }
377
- return cooked;
378
- }
379
- ;
380
- var __setModuleDefault = Object.create ? (function (o, v) {
381
- Object.defineProperty(o, "default", { enumerable: true, value: v });
382
- }) : function (o, v) {
383
- o["default"] = v;
384
- };
385
- function __importStar(mod) {
386
- if (mod && mod.__esModule)
387
- return mod;
388
- var result = {};
389
- if (mod != null)
390
- for (var k in mod)
391
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
392
- __createBinding(result, mod, k);
393
- __setModuleDefault(result, mod);
394
- return result;
395
- }
396
- function __importDefault(mod) {
397
- return (mod && mod.__esModule) ? mod : { default: mod };
398
- }
399
- function __classPrivateFieldGet(receiver, state, kind, f) {
400
- if (kind === "a" && !f)
401
- throw new TypeError("Private accessor was defined without a getter");
402
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
403
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
404
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
405
- }
406
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
407
- if (kind === "m")
408
- throw new TypeError("Private method is not writable");
409
- if (kind === "a" && !f)
410
- throw new TypeError("Private accessor was defined without a setter");
411
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
412
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
413
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
414
- }
415
- function __classPrivateFieldIn(state, receiver) {
416
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
417
- throw new TypeError("Cannot use 'in' operator on non-object");
418
- return typeof state === "function" ? receiver === state : state.has(receiver);
419
- }
420
- function __addDisposableResource(env, value, async) {
421
- if (value !== null && value !== void 0) {
422
- if (typeof value !== "object" && typeof value !== "function")
423
- throw new TypeError("Object expected.");
424
- var dispose;
425
- if (async) {
426
- if (!Symbol.asyncDispose)
427
- throw new TypeError("Symbol.asyncDispose is not defined.");
428
- dispose = value[Symbol.asyncDispose];
429
- }
430
- if (dispose === void 0) {
431
- if (!Symbol.dispose)
432
- throw new TypeError("Symbol.dispose is not defined.");
433
- dispose = value[Symbol.dispose];
434
- }
435
- if (typeof dispose !== "function")
436
- throw new TypeError("Object not disposable.");
437
- env.stack.push({ value: value, dispose: dispose, async: async });
438
- }
439
- else if (async) {
440
- env.stack.push({ async: true });
441
- }
442
- return value;
443
- }
444
- var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
445
- var e = new Error(message);
446
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
447
- };
448
- function __disposeResources(env) {
449
- function fail(e) {
450
- env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
451
- env.hasError = true;
452
- }
453
- function next() {
454
- while (env.stack.length) {
455
- var rec = env.stack.pop();
456
- try {
457
- var result = rec.dispose && rec.dispose.call(rec.value);
458
- if (rec.async)
459
- return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
460
- }
461
- catch (e) {
462
- fail(e);
463
- }
464
- }
465
- if (env.hasError)
466
- throw env.error;
467
- }
468
- return next();
469
- }
470
- var tslib_es6 = {
471
- __extends: __extends,
472
- __assign: __assign,
473
- __rest: __rest,
474
- __decorate: __decorate,
475
- __param: __param,
476
- __metadata: __metadata,
477
- __awaiter: __awaiter,
478
- __generator: __generator,
479
- __createBinding: __createBinding,
480
- __exportStar: __exportStar,
481
- __values: __values,
482
- __read: __read,
483
- __spread: __spread,
484
- __spreadArrays: __spreadArrays,
485
- __spreadArray: __spreadArray,
486
- __await: __await,
487
- __asyncGenerator: __asyncGenerator,
488
- __asyncDelegator: __asyncDelegator,
489
- __asyncValues: __asyncValues,
490
- __makeTemplateObject: __makeTemplateObject,
491
- __importStar: __importStar,
492
- __importDefault: __importDefault,
493
- __classPrivateFieldGet: __classPrivateFieldGet,
494
- __classPrivateFieldSet: __classPrivateFieldSet,
495
- __classPrivateFieldIn: __classPrivateFieldIn,
496
- __addDisposableResource: __addDisposableResource,
497
- __disposeResources: __disposeResources,
498
- };
42
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
43
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
44
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
45
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
46
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
47
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
48
+ PERFORMANCE OF THIS SOFTWARE.
49
+ ***************************************************************************** */
50
+ /* global Reflect, Promise */
51
+ var extendStatics = function (d, b) {
52
+ extendStatics = Object.setPrototypeOf ||
53
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
54
+ function (d, b) { for (var p in b)
55
+ if (Object.prototype.hasOwnProperty.call(b, p))
56
+ d[p] = b[p]; };
57
+ return extendStatics(d, b);
58
+ };
59
+ function __extends(d, b) {
60
+ if (typeof b !== "function" && b !== null)
61
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
62
+ extendStatics(d, b);
63
+ function __() { this.constructor = d; }
64
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
65
+ }
66
+ var __assign = function () {
67
+ __assign = Object.assign || function __assign(t) {
68
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
69
+ s = arguments[i];
70
+ for (var p in s)
71
+ if (Object.prototype.hasOwnProperty.call(s, p))
72
+ t[p] = s[p];
73
+ }
74
+ return t;
75
+ };
76
+ return __assign.apply(this, arguments);
77
+ };
78
+ function __rest(s, e) {
79
+ var t = {};
80
+ for (var p in s)
81
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
82
+ t[p] = s[p];
83
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
84
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
85
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
86
+ t[p[i]] = s[p[i]];
87
+ }
88
+ return t;
89
+ }
90
+ function __decorate(decorators, target, key, desc) {
91
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
92
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
93
+ r = Reflect.decorate(decorators, target, key, desc);
94
+ else
95
+ for (var i = decorators.length - 1; i >= 0; i--)
96
+ if (d = decorators[i])
97
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
98
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
99
+ }
100
+ function __param(paramIndex, decorator) {
101
+ return function (target, key) { decorator(target, key, paramIndex); };
102
+ }
103
+ function __metadata(metadataKey, metadataValue) {
104
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
105
+ return Reflect.metadata(metadataKey, metadataValue);
106
+ }
107
+ function __awaiter(thisArg, _arguments, P, generator) {
108
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
109
+ return new (P || (P = Promise))(function (resolve, reject) {
110
+ function fulfilled(value) { try {
111
+ step(generator.next(value));
112
+ }
113
+ catch (e) {
114
+ reject(e);
115
+ } }
116
+ function rejected(value) { try {
117
+ step(generator["throw"](value));
118
+ }
119
+ catch (e) {
120
+ reject(e);
121
+ } }
122
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
123
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
124
+ });
125
+ }
126
+ function __generator(thisArg, body) {
127
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
128
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
129
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
130
+ function verb(n) { return function (v) { return step([n, v]); }; }
131
+ function step(op) {
132
+ if (f)
133
+ throw new TypeError("Generator is already executing.");
134
+ while (_)
135
+ try {
136
+ 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)
137
+ return t;
138
+ if (y = 0, t)
139
+ op = [op[0] & 2, t.value];
140
+ switch (op[0]) {
141
+ case 0:
142
+ case 1:
143
+ t = op;
144
+ break;
145
+ case 4:
146
+ _.label++;
147
+ return { value: op[1], done: false };
148
+ case 5:
149
+ _.label++;
150
+ y = op[1];
151
+ op = [0];
152
+ continue;
153
+ case 7:
154
+ op = _.ops.pop();
155
+ _.trys.pop();
156
+ continue;
157
+ default:
158
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
159
+ _ = 0;
160
+ continue;
161
+ }
162
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
163
+ _.label = op[1];
164
+ break;
165
+ }
166
+ if (op[0] === 6 && _.label < t[1]) {
167
+ _.label = t[1];
168
+ t = op;
169
+ break;
170
+ }
171
+ if (t && _.label < t[2]) {
172
+ _.label = t[2];
173
+ _.ops.push(op);
174
+ break;
175
+ }
176
+ if (t[2])
177
+ _.ops.pop();
178
+ _.trys.pop();
179
+ continue;
180
+ }
181
+ op = body.call(thisArg, _);
182
+ }
183
+ catch (e) {
184
+ op = [6, e];
185
+ y = 0;
186
+ }
187
+ finally {
188
+ f = t = 0;
189
+ }
190
+ if (op[0] & 5)
191
+ throw op[1];
192
+ return { value: op[0] ? op[1] : void 0, done: true };
193
+ }
194
+ }
195
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
196
+ if (k2 === undefined)
197
+ k2 = k;
198
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
199
+ }) : (function (o, m, k, k2) {
200
+ if (k2 === undefined)
201
+ k2 = k;
202
+ o[k2] = m[k];
203
+ });
204
+ function __exportStar(m, o) {
205
+ for (var p in m)
206
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
207
+ __createBinding(o, m, p);
208
+ }
209
+ function __values(o) {
210
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
211
+ if (m)
212
+ return m.call(o);
213
+ if (o && typeof o.length === "number")
214
+ return {
215
+ next: function () {
216
+ if (o && i >= o.length)
217
+ o = void 0;
218
+ return { value: o && o[i++], done: !o };
219
+ }
220
+ };
221
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
222
+ }
223
+ function __read(o, n) {
224
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
225
+ if (!m)
226
+ return o;
227
+ var i = m.call(o), r, ar = [], e;
228
+ try {
229
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
230
+ ar.push(r.value);
231
+ }
232
+ catch (error) {
233
+ e = { error: error };
234
+ }
235
+ finally {
236
+ try {
237
+ if (r && !r.done && (m = i["return"]))
238
+ m.call(i);
239
+ }
240
+ finally {
241
+ if (e)
242
+ throw e.error;
243
+ }
244
+ }
245
+ return ar;
246
+ }
247
+ /** @deprecated */
248
+ function __spread() {
249
+ for (var ar = [], i = 0; i < arguments.length; i++)
250
+ ar = ar.concat(__read(arguments[i]));
251
+ return ar;
252
+ }
253
+ /** @deprecated */
254
+ function __spreadArrays() {
255
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
256
+ s += arguments[i].length;
257
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
258
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
259
+ r[k] = a[j];
260
+ return r;
261
+ }
262
+ function __spreadArray(to, from, pack) {
263
+ if (pack || arguments.length === 2)
264
+ for (var i = 0, l = from.length, ar; i < l; i++) {
265
+ if (ar || !(i in from)) {
266
+ if (!ar)
267
+ ar = Array.prototype.slice.call(from, 0, i);
268
+ ar[i] = from[i];
269
+ }
270
+ }
271
+ return to.concat(ar || from);
272
+ }
273
+ function __await(v) {
274
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
275
+ }
276
+ function __asyncGenerator(thisArg, _arguments, generator) {
277
+ if (!Symbol.asyncIterator)
278
+ throw new TypeError("Symbol.asyncIterator is not defined.");
279
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
280
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
281
+ function verb(n) { if (g[n])
282
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
283
+ function resume(n, v) { try {
284
+ step(g[n](v));
285
+ }
286
+ catch (e) {
287
+ settle(q[0][3], e);
288
+ } }
289
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
290
+ function fulfill(value) { resume("next", value); }
291
+ function reject(value) { resume("throw", value); }
292
+ function settle(f, v) { if (f(v), q.shift(), q.length)
293
+ resume(q[0][0], q[0][1]); }
294
+ }
295
+ function __asyncDelegator(o) {
296
+ var i, p;
297
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
298
+ 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; }
299
+ }
300
+ function __asyncValues(o) {
301
+ if (!Symbol.asyncIterator)
302
+ throw new TypeError("Symbol.asyncIterator is not defined.");
303
+ var m = o[Symbol.asyncIterator], i;
304
+ 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);
305
+ 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); }); }; }
306
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
307
+ }
308
+ function __makeTemplateObject(cooked, raw) {
309
+ if (Object.defineProperty) {
310
+ Object.defineProperty(cooked, "raw", { value: raw });
311
+ }
312
+ else {
313
+ cooked.raw = raw;
314
+ }
315
+ return cooked;
316
+ }
317
+ ;
318
+ var __setModuleDefault = Object.create ? (function (o, v) {
319
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
320
+ }) : function (o, v) {
321
+ o["default"] = v;
322
+ };
323
+ function __importStar(mod) {
324
+ if (mod && mod.__esModule)
325
+ return mod;
326
+ var result = {};
327
+ if (mod != null)
328
+ for (var k in mod)
329
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
330
+ __createBinding(result, mod, k);
331
+ __setModuleDefault(result, mod);
332
+ return result;
333
+ }
334
+ function __importDefault(mod) {
335
+ return (mod && mod.__esModule) ? mod : { default: mod };
336
+ }
337
+ function __classPrivateFieldGet(receiver, state, kind, f) {
338
+ if (kind === "a" && !f)
339
+ throw new TypeError("Private accessor was defined without a getter");
340
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
341
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
342
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
343
+ }
344
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
345
+ if (kind === "m")
346
+ throw new TypeError("Private method is not writable");
347
+ if (kind === "a" && !f)
348
+ throw new TypeError("Private accessor was defined without a setter");
349
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
350
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
351
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
352
+ }
499
353
 
500
- var TuiInputDateRangeComponent = /** @class */ (function (_super) {
501
- __extends(TuiInputDateRangeComponent, _super);
502
- function TuiInputDateRangeComponent(control, cdr, injector, isMobile, dialogs, mobileCalendar, dateFormat, dateSeparator, dateTexts$, valueTransformer, options, textfieldSize) {
503
- var _this = _super.call(this, control, cdr, valueTransformer) || this;
504
- _this.injector = injector;
505
- _this.isMobile = isMobile;
506
- _this.dialogs = dialogs;
507
- _this.mobileCalendar = mobileCalendar;
508
- _this.dateFormat = dateFormat;
509
- _this.dateSeparator = dateSeparator;
510
- _this.dateTexts$ = dateTexts$;
511
- _this.valueTransformer = valueTransformer;
512
- _this.options = options;
513
- _this.textfieldSize = textfieldSize;
514
- _this.disabledItemHandler = i3.ALWAYS_FALSE_HANDLER;
515
- _this.markerHandler = i1.TUI_DEFAULT_MARKER_HANDLER;
516
- _this.defaultViewedMonth = i3.TuiMonth.currentLocal();
517
- _this.items = [];
518
- _this.min = _this.options.min;
519
- _this.max = _this.options.max;
520
- _this.minLength = null;
521
- _this.maxLength = null;
522
- _this.open = false;
523
- _this.maxLengthMapper = constants.MAX_DAY_RANGE_LENGTH_MAPPER;
524
- _this.dateFiller$ = _this.dateTexts$.pipe(operators.map(function (dateTexts) { return i3.changeDateSeparator(dateTexts[_this.dateFormat], _this.dateSeparator); }));
525
- return _this;
526
- }
527
- Object.defineProperty(TuiInputDateRangeComponent.prototype, "size", {
528
- get: function () {
529
- return this.textfieldSize.size;
530
- },
531
- enumerable: false,
532
- configurable: true
533
- });
534
- Object.defineProperty(TuiInputDateRangeComponent.prototype, "computedMin", {
535
- get: function () {
536
- var _a;
537
- return (_a = this.min) !== null && _a !== void 0 ? _a : i3.TUI_FIRST_DAY;
538
- },
539
- enumerable: false,
540
- configurable: true
541
- });
542
- Object.defineProperty(TuiInputDateRangeComponent.prototype, "computedMax", {
543
- get: function () {
544
- var _a;
545
- return (_a = this.max) !== null && _a !== void 0 ? _a : i3.TUI_LAST_DAY;
546
- },
547
- enumerable: false,
548
- configurable: true
549
- });
550
- Object.defineProperty(TuiInputDateRangeComponent.prototype, "nativeFocusableElement", {
551
- get: function () {
552
- var _a, _b;
553
- return (_b = (_a = this.textfield) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) !== null && _b !== void 0 ? _b : null;
554
- },
555
- enumerable: false,
556
- configurable: true
557
- });
558
- Object.defineProperty(TuiInputDateRangeComponent.prototype, "focused", {
559
- get: function () {
560
- var _a;
561
- return !!((_a = this.textfield) === null || _a === void 0 ? void 0 : _a.focused);
562
- },
563
- enumerable: false,
564
- configurable: true
565
- });
566
- Object.defineProperty(TuiInputDateRangeComponent.prototype, "computedMobile", {
567
- get: function () {
568
- return this.isMobile && !!this.mobileCalendar;
569
- },
570
- enumerable: false,
571
- configurable: true
572
- });
573
- Object.defineProperty(TuiInputDateRangeComponent.prototype, "calendarIcon", {
574
- get: function () {
575
- return this.options.icon;
576
- },
577
- enumerable: false,
578
- configurable: true
579
- });
580
- Object.defineProperty(TuiInputDateRangeComponent.prototype, "canOpen", {
581
- get: function () {
582
- return this.interactive && !this.computedMobile;
583
- },
584
- enumerable: false,
585
- configurable: true
586
- });
587
- Object.defineProperty(TuiInputDateRangeComponent.prototype, "computedExampleText", {
588
- get: function () {
589
- var _a, _b;
590
- return this.items.length
591
- ? ((_b = (_a = this.textfield) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) === null || _b === void 0 ? void 0 : _b.placeholder) || ''
592
- : '';
593
- },
594
- enumerable: false,
595
- configurable: true
596
- });
597
- Object.defineProperty(TuiInputDateRangeComponent.prototype, "computedMask", {
598
- get: function () {
599
- var _a, _b;
600
- /**
601
- * TODO: we can delete this workaround in v4.0
602
- * after solving this issue:
603
- * https://github.com/taiga-family/maskito/issues/604
604
- */
605
- var nativeValueIsNotSynced = ((_b = (_a = this.textfield) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) === null || _b === void 0 ? void 0 : _b.value) !== this.computedValue;
606
- return this.activePeriod || nativeValueIsNotSynced
607
- ? core.MASKITO_DEFAULT_OPTIONS
608
- : this.calculateMask(this.dateFormat, this.dateSeparator, this.computedMin, this.computedMax, this.minLength, this.maxLength);
609
- },
610
- enumerable: false,
611
- configurable: true
612
- });
613
- Object.defineProperty(TuiInputDateRangeComponent.prototype, "activePeriod", {
614
- get: function () {
615
- var _this = this;
616
- return (this.items.find(function (item) { return i3.tuiNullableSame(_this.value, item.range, function (a, b) { return a.from.daySame(b.from.dayLimit(_this.min, _this.max)) &&
617
- a.to.daySame(b.to.dayLimit(_this.min, _this.max)); }); }) || null);
618
- },
619
- enumerable: false,
620
- configurable: true
621
- });
622
- Object.defineProperty(TuiInputDateRangeComponent.prototype, "computedValue", {
623
- get: function () {
624
- var _c = this, value = _c.value, nativeValue = _c.nativeValue, activePeriod = _c.activePeriod;
625
- if (activePeriod) {
626
- return String(activePeriod);
627
- }
628
- return value
629
- ? value.getFormattedDayRange(this.dateFormat, this.dateSeparator)
630
- : nativeValue;
631
- },
632
- enumerable: false,
633
- configurable: true
634
- });
635
- Object.defineProperty(TuiInputDateRangeComponent.prototype, "showValueTemplate", {
636
- get: function () {
637
- return i3.tuiIsPresent(this.value) && !this.focused;
638
- },
639
- enumerable: false,
640
- configurable: true
641
- });
642
- Object.defineProperty(TuiInputDateRangeComponent.prototype, "computedContent", {
643
- get: function () {
644
- var _a;
645
- return ((_a = this.activePeriod) === null || _a === void 0 ? void 0 : _a.content) || this.computedValue;
646
- },
647
- enumerable: false,
648
- configurable: true
649
- });
650
- Object.defineProperty(TuiInputDateRangeComponent.prototype, "innerPseudoFocused", {
651
- get: function () {
652
- if (this.pseudoFocus === false) {
653
- return false;
654
- }
655
- if (this.open || this.computedFocused) {
656
- return true;
657
- }
658
- return null;
659
- },
660
- enumerable: false,
661
- configurable: true
662
- });
663
- Object.defineProperty(TuiInputDateRangeComponent.prototype, "nativeValue", {
664
- get: function () {
665
- var _a;
666
- return ((_a = this.nativeFocusableElement) === null || _a === void 0 ? void 0 : _a.value) || '';
667
- },
668
- set: function (value) {
669
- if (this.nativeFocusableElement) {
670
- this.nativeFocusableElement.value = value;
671
- }
672
- },
673
- enumerable: false,
674
- configurable: true
675
- });
676
- TuiInputDateRangeComponent.prototype.onClick = function () {
677
- if (!this.isMobile) {
678
- this.toggle();
679
- }
680
- };
681
- TuiInputDateRangeComponent.prototype.getComputedRangeFiller = function (dateFiller) {
682
- return this.activePeriod ? '' : this.getDateRangeFiller(dateFiller);
683
- };
684
- TuiInputDateRangeComponent.prototype.onIconClick = function () {
685
- var _this = this;
686
- if (!this.computedMobile || !this.mobileCalendar) {
687
- return;
688
- }
689
- this.dialogs
690
- .open(new i7.PolymorpheusComponent(this.mobileCalendar, this.injector), {
691
- size: 'fullscreen',
692
- closeable: false,
693
- data: {
694
- min: this.maxLengthMapper(this.computedMin, this.value, this.maxLength, true),
695
- max: this.maxLengthMapper(this.computedMax, this.value, this.maxLength, false),
696
- disabledItemHandler: this.disabledItemHandler,
697
- },
698
- })
699
- .pipe(operators.takeUntil(this.destroy$))
700
- .subscribe(function (value) {
701
- _this.value = value;
702
- });
703
- };
704
- TuiInputDateRangeComponent.prototype.onOpenChange = function (open) {
705
- this.open = open;
706
- };
707
- TuiInputDateRangeComponent.prototype.onValueChange = function (value) {
708
- if (this.control) {
709
- this.control.updateValueAndValidity({ emitEvent: false });
710
- }
711
- if (!value) {
712
- this.onOpenChange(true);
713
- }
714
- this.value =
715
- value.length === i3.DATE_RANGE_FILLER_LENGTH
716
- ? i3.TuiDayRange.normalizeParse(value, this.dateFormat)
717
- : null;
718
- };
719
- TuiInputDateRangeComponent.prototype.onRangeChange = function (range) {
720
- this.toggle();
721
- this.focusInput();
722
- if (!range) {
723
- this.nativeValue = '';
724
- }
725
- this.value = range;
726
- };
727
- // TODO: investigate if it is used anywhere and (if not) delete it in v4.0
728
- TuiInputDateRangeComponent.prototype.onItemSelect = function (item) {
729
- this.toggle();
730
- this.focusInput();
731
- if (typeof item !== 'string') {
732
- this.value = item.range.dayLimit(this.min, this.max);
733
- return;
734
- }
735
- if (this.activePeriod === null) {
736
- return;
737
- }
738
- this.value = null;
739
- this.nativeValue = '';
740
- };
741
- TuiInputDateRangeComponent.prototype.onActiveZone = function (focused) {
742
- this.updateFocused(focused);
743
- if (!focused &&
744
- !this.itemSelected &&
745
- (this.nativeValue.length === i3.DATE_FILLER_LENGTH ||
746
- this.nativeValue.length ===
747
- i3.DATE_FILLER_LENGTH + i3.RANGE_SEPARATOR_CHAR.length)) {
748
- this.value = i3.TuiDayRange.normalizeParse(this.nativeValue, this.dateFormat);
749
- }
750
- };
751
- TuiInputDateRangeComponent.prototype.writeValue = function (value) {
752
- _super.prototype.writeValue.call(this, value);
753
- this.nativeValue = value ? this.computedValue : '';
754
- };
755
- TuiInputDateRangeComponent.prototype.valueIdenticalComparator = function (oldValue, newValue) {
756
- return i3.tuiNullableSame(oldValue, newValue, function (a, b) { return a.daySame(b); });
757
- };
758
- TuiInputDateRangeComponent.prototype.calculateMask = function (dateFormat, separator, min, max, minLength, maxLength) {
759
- return kit.maskitoDateRangeOptionsGenerator({
760
- separator: separator,
761
- mode: constants.TUI_DATE_MODE_MASKITO_ADAPTER[dateFormat],
762
- min: min.toLocalNativeDate(),
763
- max: max.toLocalNativeDate(),
764
- minLength: minLength || {},
765
- maxLength: maxLength || {},
766
- });
767
- };
768
- Object.defineProperty(TuiInputDateRangeComponent.prototype, "itemSelected", {
769
- get: function () {
770
- var _this = this;
771
- return this.items.findIndex(function (item) { return String(item) === _this.nativeValue; }) !== -1;
772
- },
773
- enumerable: false,
774
- configurable: true
775
- });
776
- TuiInputDateRangeComponent.prototype.toggle = function () {
777
- this.open = !this.open;
778
- };
779
- TuiInputDateRangeComponent.prototype.focusInput = function (preventScroll) {
780
- if (preventScroll === void 0) { preventScroll = false; }
781
- if (this.nativeFocusableElement) {
782
- this.nativeFocusableElement.focus({ preventScroll: preventScroll });
783
- }
784
- };
785
- TuiInputDateRangeComponent.prototype.getDateRangeFiller = function (dateFiller) {
786
- return "" + dateFiller + i3.RANGE_SEPARATOR_CHAR + dateFiller;
787
- };
788
- return TuiInputDateRangeComponent;
789
- }(i3.AbstractTuiNullableControl));
790
- TuiInputDateRangeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateRangeComponent, deps: [{ token: i8.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: i0.Injector }, { token: i3.TUI_IS_MOBILE }, { token: i1.TuiDialogService }, { token: tokens.TUI_MOBILE_CALENDAR, optional: true }, { token: i3.TUI_DATE_FORMAT }, { token: i3.TUI_DATE_SEPARATOR }, { token: tokens.TUI_DATE_TEXTS }, { token: tokens.TUI_DATE_RANGE_VALUE_TRANSFORMER, optional: true }, { token: tokens.TUI_INPUT_DATE_OPTIONS }, { token: i1.TUI_TEXTFIELD_SIZE }], target: i0__namespace.ɵɵFactoryTarget.Component });
791
- TuiInputDateRangeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputDateRangeComponent, selector: "tui-input-date-range", inputs: { disabledItemHandler: "disabledItemHandler", markerHandler: "markerHandler", defaultViewedMonth: "defaultViewedMonth", items: "items", min: "min", max: "max", minLength: "minLength", maxLength: "maxLength" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.data-size": "this.size" } }, providers: [
792
- i3.tuiAsFocusableItemAccessor(TuiInputDateRangeComponent),
793
- i3.tuiAsControl(TuiInputDateRangeComponent),
794
- tokens.tuiDateStreamWithTransformer(tokens.TUI_DATE_RANGE_VALUE_TRANSFORMER),
795
- ], viewQueries: [{ propertyName: "textfield", first: true, predicate: i1.TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"canOpen\"\n [content]=\"dropdown\"\n [open]=\"open && canOpen\"\n (openChange)=\"onOpenChange($event)\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n *tuiLet=\"dateFiller$ | async as dateFiller\"\n automation-id=\"tui-input-date-range__textfield\"\n tuiValueAccessor\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"computedMask\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"innerPseudoFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldFiller]=\"getComputedRangeFiller(dateFiller || '')\"\n [tuiTextfieldIcon]=\"calendarIcon && iconContent\"\n [value]=\"computedValue\"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n\n <div\n *ngIf=\"showValueTemplate\"\n ngProjectAs=\"tuiContent\"\n class=\"t-value\"\n >\n <ng-container *polymorpheusOutlet=\"computedContent as text; context: {$implicit: value}\">\n {{ text }}\n </ng-container>\n </div>\n </tui-primitive-textfield>\n\n <ng-template #iconContent>\n <tui-svg\n *polymorpheusOutlet=\"calendarIcon as src; context: {$implicit: size}\"\n appearance=\"icon\"\n automation-id=\"tui-input-date-range__icon\"\n tuiWrapper\n [class.t-icon]=\"!computedDisabled\"\n [src]=\"src\"\n (click)=\"onIconClick()\"\n ></tui-svg>\n </ng-template>\n\n <ng-template #dropdown>\n <tui-calendar-range\n [defaultViewedMonth]=\"defaultViewedMonth\"\n [disabledItemHandler]=\"disabledItemHandler\"\n [items]=\"items\"\n [markerHandler]=\"markerHandler\"\n [max]=\"computedMax\"\n [maxLength]=\"maxLength\"\n [min]=\"computedMin\"\n [minLength]=\"minLength\"\n [value]=\"value\"\n (valueChange)=\"onRangeChange($event)\"\n ></tui-calendar-range>\n </ng-template>\n</tui-hosted-dropdown>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}:host._disabled{pointer-events:none}.t-hosted{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}.t-icon{pointer-events:auto}.t-value{display:flex;width:100%;align-items:center}\n"], components: [{ type: i1__namespace.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i1__namespace.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { type: i1__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i2__namespace.TuiCalendarRangeComponent, selector: "tui-calendar-range", inputs: ["defaultViewedMonth", "disabledItemHandler", "markerHandler", "items", "min", "max", "minLength", "maxLength", "value"], outputs: ["valueChange"] }], directives: [{ type: i3__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i3__namespace.TuiLetDirective, selector: "[tuiLet]", inputs: ["tuiLet"] }, { type: i1__namespace.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i4__namespace.TuiValueAccessorDirective, selector: "[tuiValueAccessor]" }, { type: i5__namespace.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { type: i1__namespace.TuiTextfieldFillerDirective, selector: "[tuiTextfieldFiller]", inputs: ["tuiTextfieldFiller"] }, { type: i1__namespace.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i1__namespace.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }], pipes: { "async": i6__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
796
- __decorate([
797
- i3.tuiPure
798
- ], TuiInputDateRangeComponent.prototype, "calculateMask", null);
799
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateRangeComponent, decorators: [{
800
- type: i0.Component,
801
- args: [{
802
- selector: 'tui-input-date-range',
803
- templateUrl: './input-date-range.template.html',
804
- styleUrls: ['./input-date-range.style.less'],
805
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
806
- providers: [
807
- i3.tuiAsFocusableItemAccessor(TuiInputDateRangeComponent),
808
- i3.tuiAsControl(TuiInputDateRangeComponent),
809
- tokens.tuiDateStreamWithTransformer(tokens.TUI_DATE_RANGE_VALUE_TRANSFORMER),
810
- ],
811
- }]
812
- }], ctorParameters: function () {
813
- return [{ type: i8__namespace.NgControl, decorators: [{
814
- type: i0.Optional
815
- }, {
816
- type: i0.Self
817
- }, {
818
- type: i0.Inject,
819
- args: [i8.NgControl]
820
- }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
821
- type: i0.Inject,
822
- args: [i0.ChangeDetectorRef]
823
- }] }, { type: i0__namespace.Injector, decorators: [{
824
- type: i0.Inject,
825
- args: [i0.Injector]
826
- }] }, { type: undefined, decorators: [{
827
- type: i0.Inject,
828
- args: [i3.TUI_IS_MOBILE]
829
- }] }, { type: i1__namespace.TuiDialogService, decorators: [{
830
- type: i0.Inject,
831
- args: [i1.TuiDialogService]
832
- }] }, { type: i0__namespace.Type, decorators: [{
833
- type: i0.Optional
834
- }, {
835
- type: i0.Inject,
836
- args: [tokens.TUI_MOBILE_CALENDAR]
837
- }] }, { type: undefined, decorators: [{
838
- type: i0.Inject,
839
- args: [i3.TUI_DATE_FORMAT]
840
- }] }, { type: undefined, decorators: [{
841
- type: i0.Inject,
842
- args: [i3.TUI_DATE_SEPARATOR]
843
- }] }, { type: i9__namespace.Observable, decorators: [{
844
- type: i0.Inject,
845
- args: [tokens.TUI_DATE_TEXTS]
846
- }] }, { type: i3__namespace.AbstractTuiValueTransformer, decorators: [{
847
- type: i0.Optional
848
- }, {
849
- type: i0.Inject,
850
- args: [tokens.TUI_DATE_RANGE_VALUE_TRANSFORMER]
851
- }] }, { type: undefined, decorators: [{
852
- type: i0.Inject,
853
- args: [tokens.TUI_INPUT_DATE_OPTIONS]
854
- }] }, { type: i1__namespace.TuiTextfieldSizeDirective, decorators: [{
855
- type: i0.Inject,
856
- args: [i1.TUI_TEXTFIELD_SIZE]
857
- }] }];
858
- }, propDecorators: { textfield: [{
859
- type: i0.ViewChild,
860
- args: [i1.TuiPrimitiveTextfieldComponent]
861
- }], disabledItemHandler: [{
862
- type: i0.Input
863
- }], markerHandler: [{
864
- type: i0.Input
865
- }], defaultViewedMonth: [{
866
- type: i0.Input
867
- }], items: [{
868
- type: i0.Input
869
- }], min: [{
870
- type: i0.Input
871
- }], max: [{
872
- type: i0.Input
873
- }], minLength: [{
874
- type: i0.Input
875
- }], maxLength: [{
876
- type: i0.Input
877
- }], size: [{
878
- type: i0.HostBinding,
879
- args: ['attr.data-size']
880
- }], onClick: [{
881
- type: i0.HostListener,
882
- args: ['click']
883
- }], calculateMask: [] } });
354
+ var TuiInputDateRangeComponent = /** @class */ (function (_super) {
355
+ __extends(TuiInputDateRangeComponent, _super);
356
+ function TuiInputDateRangeComponent(control, cdr, injector, isMobile, dialogs, mobileCalendar, dateFormat, dateSeparator, dateTexts$, valueTransformer, options, textfieldSize) {
357
+ var _this = _super.call(this, control, cdr, valueTransformer) || this;
358
+ _this.injector = injector;
359
+ _this.isMobile = isMobile;
360
+ _this.dialogs = dialogs;
361
+ _this.mobileCalendar = mobileCalendar;
362
+ _this.dateFormat = dateFormat;
363
+ _this.dateSeparator = dateSeparator;
364
+ _this.dateTexts$ = dateTexts$;
365
+ _this.valueTransformer = valueTransformer;
366
+ _this.options = options;
367
+ _this.textfieldSize = textfieldSize;
368
+ _this.disabledItemHandler = i3.ALWAYS_FALSE_HANDLER;
369
+ _this.markerHandler = i1.TUI_DEFAULT_MARKER_HANDLER;
370
+ _this.defaultViewedMonth = i3.TuiMonth.currentLocal();
371
+ _this.items = [];
372
+ _this.min = _this.options.min;
373
+ _this.max = _this.options.max;
374
+ _this.minLength = null;
375
+ _this.maxLength = null;
376
+ _this.open = false;
377
+ _this.maxLengthMapper = constants.MAX_DAY_RANGE_LENGTH_MAPPER;
378
+ _this.dateFiller$ = _this.dateTexts$.pipe(operators.map(function (dateTexts) { return i3.changeDateSeparator(dateTexts[_this.dateFormat], _this.dateSeparator); }));
379
+ return _this;
380
+ }
381
+ Object.defineProperty(TuiInputDateRangeComponent.prototype, "size", {
382
+ get: function () {
383
+ return this.textfieldSize.size;
384
+ },
385
+ enumerable: false,
386
+ configurable: true
387
+ });
388
+ Object.defineProperty(TuiInputDateRangeComponent.prototype, "computedMin", {
389
+ get: function () {
390
+ var _a;
391
+ return (_a = this.min) !== null && _a !== void 0 ? _a : i3.TUI_FIRST_DAY;
392
+ },
393
+ enumerable: false,
394
+ configurable: true
395
+ });
396
+ Object.defineProperty(TuiInputDateRangeComponent.prototype, "computedMax", {
397
+ get: function () {
398
+ var _a;
399
+ return (_a = this.max) !== null && _a !== void 0 ? _a : i3.TUI_LAST_DAY;
400
+ },
401
+ enumerable: false,
402
+ configurable: true
403
+ });
404
+ Object.defineProperty(TuiInputDateRangeComponent.prototype, "nativeFocusableElement", {
405
+ get: function () {
406
+ var _a, _b;
407
+ return (_b = (_a = this.textfield) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) !== null && _b !== void 0 ? _b : null;
408
+ },
409
+ enumerable: false,
410
+ configurable: true
411
+ });
412
+ Object.defineProperty(TuiInputDateRangeComponent.prototype, "focused", {
413
+ get: function () {
414
+ var _a;
415
+ return !!((_a = this.textfield) === null || _a === void 0 ? void 0 : _a.focused);
416
+ },
417
+ enumerable: false,
418
+ configurable: true
419
+ });
420
+ Object.defineProperty(TuiInputDateRangeComponent.prototype, "computedMobile", {
421
+ get: function () {
422
+ return this.isMobile && !!this.mobileCalendar;
423
+ },
424
+ enumerable: false,
425
+ configurable: true
426
+ });
427
+ Object.defineProperty(TuiInputDateRangeComponent.prototype, "calendarIcon", {
428
+ get: function () {
429
+ return this.options.icon;
430
+ },
431
+ enumerable: false,
432
+ configurable: true
433
+ });
434
+ Object.defineProperty(TuiInputDateRangeComponent.prototype, "canOpen", {
435
+ get: function () {
436
+ return this.interactive && !this.computedMobile;
437
+ },
438
+ enumerable: false,
439
+ configurable: true
440
+ });
441
+ Object.defineProperty(TuiInputDateRangeComponent.prototype, "computedExampleText", {
442
+ get: function () {
443
+ var _a, _b;
444
+ return this.items.length
445
+ ? ((_b = (_a = this.textfield) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) === null || _b === void 0 ? void 0 : _b.placeholder) || ''
446
+ : '';
447
+ },
448
+ enumerable: false,
449
+ configurable: true
450
+ });
451
+ Object.defineProperty(TuiInputDateRangeComponent.prototype, "computedMask", {
452
+ get: function () {
453
+ var _a, _b;
454
+ /**
455
+ * TODO: we can delete this workaround in v4.0
456
+ * after solving this issue:
457
+ * https://github.com/taiga-family/maskito/issues/604
458
+ */
459
+ var nativeValueIsNotSynced = ((_b = (_a = this.textfield) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) === null || _b === void 0 ? void 0 : _b.value) !== this.computedValue;
460
+ return this.activePeriod || nativeValueIsNotSynced
461
+ ? core.MASKITO_DEFAULT_OPTIONS
462
+ : this.calculateMask(this.dateFormat, this.dateSeparator, this.computedMin, this.computedMax, this.minLength, this.maxLength);
463
+ },
464
+ enumerable: false,
465
+ configurable: true
466
+ });
467
+ Object.defineProperty(TuiInputDateRangeComponent.prototype, "activePeriod", {
468
+ get: function () {
469
+ var _this = this;
470
+ return (this.items.find(function (item) { return i3.tuiNullableSame(_this.value, item.range, function (a, b) { return a.from.daySame(b.from.dayLimit(_this.min, _this.max)) &&
471
+ a.to.daySame(b.to.dayLimit(_this.min, _this.max)); }); }) || null);
472
+ },
473
+ enumerable: false,
474
+ configurable: true
475
+ });
476
+ Object.defineProperty(TuiInputDateRangeComponent.prototype, "computedValue", {
477
+ get: function () {
478
+ var _c = this, value = _c.value, nativeValue = _c.nativeValue, activePeriod = _c.activePeriod;
479
+ if (activePeriod) {
480
+ return String(activePeriod);
481
+ }
482
+ return value
483
+ ? value.getFormattedDayRange(this.dateFormat, this.dateSeparator)
484
+ : nativeValue;
485
+ },
486
+ enumerable: false,
487
+ configurable: true
488
+ });
489
+ Object.defineProperty(TuiInputDateRangeComponent.prototype, "showValueTemplate", {
490
+ get: function () {
491
+ return i3.tuiIsPresent(this.value) && !this.focused;
492
+ },
493
+ enumerable: false,
494
+ configurable: true
495
+ });
496
+ Object.defineProperty(TuiInputDateRangeComponent.prototype, "computedContent", {
497
+ get: function () {
498
+ var _a;
499
+ return ((_a = this.activePeriod) === null || _a === void 0 ? void 0 : _a.content) || this.computedValue;
500
+ },
501
+ enumerable: false,
502
+ configurable: true
503
+ });
504
+ Object.defineProperty(TuiInputDateRangeComponent.prototype, "innerPseudoFocused", {
505
+ get: function () {
506
+ if (this.pseudoFocus === false) {
507
+ return false;
508
+ }
509
+ if (this.open || this.computedFocused) {
510
+ return true;
511
+ }
512
+ return null;
513
+ },
514
+ enumerable: false,
515
+ configurable: true
516
+ });
517
+ Object.defineProperty(TuiInputDateRangeComponent.prototype, "nativeValue", {
518
+ get: function () {
519
+ var _a;
520
+ return ((_a = this.nativeFocusableElement) === null || _a === void 0 ? void 0 : _a.value) || '';
521
+ },
522
+ set: function (value) {
523
+ if (this.nativeFocusableElement) {
524
+ this.nativeFocusableElement.value = value;
525
+ }
526
+ },
527
+ enumerable: false,
528
+ configurable: true
529
+ });
530
+ TuiInputDateRangeComponent.prototype.onClick = function () {
531
+ if (!this.isMobile) {
532
+ this.toggle();
533
+ }
534
+ };
535
+ TuiInputDateRangeComponent.prototype.getComputedRangeFiller = function (dateFiller) {
536
+ return this.activePeriod ? '' : this.getDateRangeFiller(dateFiller);
537
+ };
538
+ TuiInputDateRangeComponent.prototype.onIconClick = function () {
539
+ var _this = this;
540
+ if (!this.computedMobile || !this.mobileCalendar) {
541
+ return;
542
+ }
543
+ this.dialogs
544
+ .open(new i7.PolymorpheusComponent(this.mobileCalendar, this.injector), {
545
+ size: 'fullscreen',
546
+ closeable: false,
547
+ data: {
548
+ min: this.maxLengthMapper(this.computedMin, this.value, this.maxLength, true),
549
+ max: this.maxLengthMapper(this.computedMax, this.value, this.maxLength, false),
550
+ disabledItemHandler: this.disabledItemHandler,
551
+ },
552
+ })
553
+ .pipe(operators.takeUntil(this.destroy$))
554
+ .subscribe(function (value) {
555
+ _this.value = value;
556
+ });
557
+ };
558
+ TuiInputDateRangeComponent.prototype.onOpenChange = function (open) {
559
+ this.open = open;
560
+ };
561
+ TuiInputDateRangeComponent.prototype.onValueChange = function (value) {
562
+ if (this.control) {
563
+ this.control.updateValueAndValidity({ emitEvent: false });
564
+ }
565
+ if (!value) {
566
+ this.onOpenChange(true);
567
+ }
568
+ this.value =
569
+ value.length === i3.DATE_RANGE_FILLER_LENGTH
570
+ ? i3.TuiDayRange.normalizeParse(value, this.dateFormat)
571
+ : null;
572
+ };
573
+ TuiInputDateRangeComponent.prototype.onRangeChange = function (range) {
574
+ this.toggle();
575
+ this.focusInput();
576
+ if (!range) {
577
+ this.nativeValue = '';
578
+ }
579
+ this.value = range;
580
+ };
581
+ // TODO: investigate if it is used anywhere and (if not) delete it in v4.0
582
+ TuiInputDateRangeComponent.prototype.onItemSelect = function (item) {
583
+ this.toggle();
584
+ this.focusInput();
585
+ if (typeof item !== 'string') {
586
+ this.value = item.range.dayLimit(this.min, this.max);
587
+ return;
588
+ }
589
+ if (this.activePeriod === null) {
590
+ return;
591
+ }
592
+ this.value = null;
593
+ this.nativeValue = '';
594
+ };
595
+ TuiInputDateRangeComponent.prototype.onActiveZone = function (focused) {
596
+ this.updateFocused(focused);
597
+ if (!focused &&
598
+ !this.itemSelected &&
599
+ (this.nativeValue.length === i3.DATE_FILLER_LENGTH ||
600
+ this.nativeValue.length ===
601
+ i3.DATE_FILLER_LENGTH + i3.RANGE_SEPARATOR_CHAR.length)) {
602
+ this.value = i3.TuiDayRange.normalizeParse(this.nativeValue, this.dateFormat);
603
+ }
604
+ };
605
+ TuiInputDateRangeComponent.prototype.writeValue = function (value) {
606
+ _super.prototype.writeValue.call(this, value);
607
+ this.nativeValue = value ? this.computedValue : '';
608
+ };
609
+ TuiInputDateRangeComponent.prototype.valueIdenticalComparator = function (oldValue, newValue) {
610
+ return i3.tuiNullableSame(oldValue, newValue, function (a, b) { return a.daySame(b); });
611
+ };
612
+ TuiInputDateRangeComponent.prototype.calculateMask = function (dateFormat, separator, min, max, minLength, maxLength) {
613
+ return kit.maskitoDateRangeOptionsGenerator({
614
+ separator: separator,
615
+ mode: constants.TUI_DATE_MODE_MASKITO_ADAPTER[dateFormat],
616
+ min: min.toLocalNativeDate(),
617
+ max: max.toLocalNativeDate(),
618
+ minLength: minLength || {},
619
+ maxLength: maxLength || {},
620
+ });
621
+ };
622
+ Object.defineProperty(TuiInputDateRangeComponent.prototype, "itemSelected", {
623
+ get: function () {
624
+ var _this = this;
625
+ return this.items.findIndex(function (item) { return String(item) === _this.nativeValue; }) !== -1;
626
+ },
627
+ enumerable: false,
628
+ configurable: true
629
+ });
630
+ TuiInputDateRangeComponent.prototype.toggle = function () {
631
+ this.open = !this.open;
632
+ };
633
+ TuiInputDateRangeComponent.prototype.focusInput = function (preventScroll) {
634
+ if (preventScroll === void 0) { preventScroll = false; }
635
+ if (this.nativeFocusableElement) {
636
+ this.nativeFocusableElement.focus({ preventScroll: preventScroll });
637
+ }
638
+ };
639
+ TuiInputDateRangeComponent.prototype.getDateRangeFiller = function (dateFiller) {
640
+ return "" + dateFiller + i3.RANGE_SEPARATOR_CHAR + dateFiller;
641
+ };
642
+ return TuiInputDateRangeComponent;
643
+ }(i3.AbstractTuiNullableControl));
644
+ TuiInputDateRangeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateRangeComponent, deps: [{ token: i8.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: i0.Injector }, { token: i3.TUI_IS_MOBILE }, { token: i1.TuiDialogService }, { token: tokens.TUI_MOBILE_CALENDAR, optional: true }, { token: i3.TUI_DATE_FORMAT }, { token: i3.TUI_DATE_SEPARATOR }, { token: tokens.TUI_DATE_TEXTS }, { token: tokens.TUI_DATE_RANGE_VALUE_TRANSFORMER, optional: true }, { token: tokens.TUI_INPUT_DATE_OPTIONS }, { token: i1.TUI_TEXTFIELD_SIZE }], target: i0__namespace.ɵɵFactoryTarget.Component });
645
+ TuiInputDateRangeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputDateRangeComponent, selector: "tui-input-date-range", inputs: { disabledItemHandler: "disabledItemHandler", markerHandler: "markerHandler", defaultViewedMonth: "defaultViewedMonth", items: "items", min: "min", max: "max", minLength: "minLength", maxLength: "maxLength" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.data-size": "this.size" } }, providers: [
646
+ i3.tuiAsFocusableItemAccessor(TuiInputDateRangeComponent),
647
+ i3.tuiAsControl(TuiInputDateRangeComponent),
648
+ tokens.tuiDateStreamWithTransformer(tokens.TUI_DATE_RANGE_VALUE_TRANSFORMER),
649
+ ], viewQueries: [{ propertyName: "textfield", first: true, predicate: i1.TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"canOpen\"\n [content]=\"dropdown\"\n [open]=\"open && canOpen\"\n (openChange)=\"onOpenChange($event)\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n *tuiLet=\"dateFiller$ | async as dateFiller\"\n automation-id=\"tui-input-date-range__textfield\"\n tuiValueAccessor\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"computedMask\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"innerPseudoFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldFiller]=\"getComputedRangeFiller(dateFiller || '')\"\n [tuiTextfieldIcon]=\"calendarIcon && iconContent\"\n [value]=\"computedValue\"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n\n <div\n *ngIf=\"showValueTemplate\"\n ngProjectAs=\"tuiContent\"\n class=\"t-value\"\n >\n <ng-container *polymorpheusOutlet=\"computedContent as text; context: {$implicit: value}\">\n {{ text }}\n </ng-container>\n </div>\n </tui-primitive-textfield>\n\n <ng-template #iconContent>\n <tui-svg\n *polymorpheusOutlet=\"calendarIcon as src; context: {$implicit: size}\"\n appearance=\"icon\"\n automation-id=\"tui-input-date-range__icon\"\n tuiWrapper\n [class.t-icon]=\"!computedDisabled\"\n [src]=\"src\"\n (click)=\"onIconClick()\"\n ></tui-svg>\n </ng-template>\n\n <ng-template #dropdown>\n <tui-calendar-range\n [defaultViewedMonth]=\"defaultViewedMonth\"\n [disabledItemHandler]=\"disabledItemHandler\"\n [items]=\"items\"\n [markerHandler]=\"markerHandler\"\n [max]=\"computedMax\"\n [maxLength]=\"maxLength\"\n [min]=\"computedMin\"\n [minLength]=\"minLength\"\n [value]=\"value\"\n (valueChange)=\"onRangeChange($event)\"\n ></tui-calendar-range>\n </ng-template>\n</tui-hosted-dropdown>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}:host._disabled{pointer-events:none}.t-hosted{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}.t-icon{pointer-events:auto}.t-value{display:flex;width:100%;align-items:center}\n"], components: [{ type: i1__namespace.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i1__namespace.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { type: i1__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i2__namespace.TuiCalendarRangeComponent, selector: "tui-calendar-range", inputs: ["defaultViewedMonth", "disabledItemHandler", "markerHandler", "items", "min", "max", "minLength", "maxLength", "value"], outputs: ["valueChange"] }], directives: [{ type: i3__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i3__namespace.TuiLetDirective, selector: "[tuiLet]", inputs: ["tuiLet"] }, { type: i1__namespace.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i4__namespace.TuiValueAccessorDirective, selector: "[tuiValueAccessor]" }, { type: i5__namespace.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { type: i1__namespace.TuiTextfieldFillerDirective, selector: "[tuiTextfieldFiller]", inputs: ["tuiTextfieldFiller"] }, { type: i1__namespace.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i1__namespace.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }], pipes: { "async": i6__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
650
+ __decorate([
651
+ i3.tuiPure
652
+ ], TuiInputDateRangeComponent.prototype, "calculateMask", null);
653
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateRangeComponent, decorators: [{
654
+ type: i0.Component,
655
+ args: [{
656
+ selector: 'tui-input-date-range',
657
+ templateUrl: './input-date-range.template.html',
658
+ styleUrls: ['./input-date-range.style.less'],
659
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
660
+ providers: [
661
+ i3.tuiAsFocusableItemAccessor(TuiInputDateRangeComponent),
662
+ i3.tuiAsControl(TuiInputDateRangeComponent),
663
+ tokens.tuiDateStreamWithTransformer(tokens.TUI_DATE_RANGE_VALUE_TRANSFORMER),
664
+ ],
665
+ }]
666
+ }], ctorParameters: function () {
667
+ return [{ type: i8__namespace.NgControl, decorators: [{
668
+ type: i0.Optional
669
+ }, {
670
+ type: i0.Self
671
+ }, {
672
+ type: i0.Inject,
673
+ args: [i8.NgControl]
674
+ }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
675
+ type: i0.Inject,
676
+ args: [i0.ChangeDetectorRef]
677
+ }] }, { type: i0__namespace.Injector, decorators: [{
678
+ type: i0.Inject,
679
+ args: [i0.Injector]
680
+ }] }, { type: undefined, decorators: [{
681
+ type: i0.Inject,
682
+ args: [i3.TUI_IS_MOBILE]
683
+ }] }, { type: i1__namespace.TuiDialogService, decorators: [{
684
+ type: i0.Inject,
685
+ args: [i1.TuiDialogService]
686
+ }] }, { type: i0__namespace.Type, decorators: [{
687
+ type: i0.Optional
688
+ }, {
689
+ type: i0.Inject,
690
+ args: [tokens.TUI_MOBILE_CALENDAR]
691
+ }] }, { type: undefined, decorators: [{
692
+ type: i0.Inject,
693
+ args: [i3.TUI_DATE_FORMAT]
694
+ }] }, { type: undefined, decorators: [{
695
+ type: i0.Inject,
696
+ args: [i3.TUI_DATE_SEPARATOR]
697
+ }] }, { type: i9__namespace.Observable, decorators: [{
698
+ type: i0.Inject,
699
+ args: [tokens.TUI_DATE_TEXTS]
700
+ }] }, { type: i3__namespace.AbstractTuiValueTransformer, decorators: [{
701
+ type: i0.Optional
702
+ }, {
703
+ type: i0.Inject,
704
+ args: [tokens.TUI_DATE_RANGE_VALUE_TRANSFORMER]
705
+ }] }, { type: undefined, decorators: [{
706
+ type: i0.Inject,
707
+ args: [tokens.TUI_INPUT_DATE_OPTIONS]
708
+ }] }, { type: i1__namespace.TuiTextfieldSizeDirective, decorators: [{
709
+ type: i0.Inject,
710
+ args: [i1.TUI_TEXTFIELD_SIZE]
711
+ }] }];
712
+ }, propDecorators: { textfield: [{
713
+ type: i0.ViewChild,
714
+ args: [i1.TuiPrimitiveTextfieldComponent]
715
+ }], disabledItemHandler: [{
716
+ type: i0.Input
717
+ }], markerHandler: [{
718
+ type: i0.Input
719
+ }], defaultViewedMonth: [{
720
+ type: i0.Input
721
+ }], items: [{
722
+ type: i0.Input
723
+ }], min: [{
724
+ type: i0.Input
725
+ }], max: [{
726
+ type: i0.Input
727
+ }], minLength: [{
728
+ type: i0.Input
729
+ }], maxLength: [{
730
+ type: i0.Input
731
+ }], size: [{
732
+ type: i0.HostBinding,
733
+ args: ['attr.data-size']
734
+ }], onClick: [{
735
+ type: i0.HostListener,
736
+ args: ['click']
737
+ }], calculateMask: [] } });
884
738
 
885
- var TuiInputDateRangeDirective = /** @class */ (function (_super) {
886
- __extends(TuiInputDateRangeDirective, _super);
887
- function TuiInputDateRangeDirective() {
888
- return _super !== null && _super.apply(this, arguments) || this;
889
- }
890
- Object.defineProperty(TuiInputDateRangeDirective.prototype, "value", {
891
- get: function () {
892
- return this.host.computedValue;
893
- },
894
- enumerable: false,
895
- configurable: true
896
- });
897
- TuiInputDateRangeDirective.prototype.onValueChange = function (value) {
898
- this.host.onValueChange(value);
899
- };
900
- TuiInputDateRangeDirective.prototype.process = function (input) {
901
- input.inputMode = 'numeric';
902
- };
903
- TuiInputDateRangeDirective.prototype.ngDoCheck = function () {
904
- if (this.host.nativeFocusableElement) {
905
- this.host.nativeFocusableElement.placeholder = this.host.computedExampleText;
906
- }
907
- };
908
- return TuiInputDateRangeDirective;
909
- }(i1.AbstractTuiTextfieldHost));
910
- TuiInputDateRangeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateRangeDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
911
- TuiInputDateRangeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputDateRangeDirective, selector: "tui-input-date-range", providers: [i1.tuiAsTextfieldHost(TuiInputDateRangeDirective)], usesInheritance: true, ngImport: i0__namespace });
912
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateRangeDirective, decorators: [{
913
- type: i0.Directive,
914
- args: [{
915
- selector: 'tui-input-date-range',
916
- providers: [i1.tuiAsTextfieldHost(TuiInputDateRangeDirective)],
917
- }]
918
- }] });
739
+ var TuiInputDateRangeDirective = /** @class */ (function (_super) {
740
+ __extends(TuiInputDateRangeDirective, _super);
741
+ function TuiInputDateRangeDirective() {
742
+ return _super !== null && _super.apply(this, arguments) || this;
743
+ }
744
+ Object.defineProperty(TuiInputDateRangeDirective.prototype, "value", {
745
+ get: function () {
746
+ return this.host.computedValue;
747
+ },
748
+ enumerable: false,
749
+ configurable: true
750
+ });
751
+ TuiInputDateRangeDirective.prototype.onValueChange = function (value) {
752
+ this.host.onValueChange(value);
753
+ };
754
+ TuiInputDateRangeDirective.prototype.process = function (input) {
755
+ input.inputMode = 'numeric';
756
+ };
757
+ TuiInputDateRangeDirective.prototype.ngDoCheck = function () {
758
+ if (this.host.nativeFocusableElement) {
759
+ this.host.nativeFocusableElement.placeholder = this.host.computedExampleText;
760
+ }
761
+ };
762
+ return TuiInputDateRangeDirective;
763
+ }(i1.AbstractTuiTextfieldHost));
764
+ TuiInputDateRangeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateRangeDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
765
+ TuiInputDateRangeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputDateRangeDirective, selector: "tui-input-date-range", providers: [i1.tuiAsTextfieldHost(TuiInputDateRangeDirective)], usesInheritance: true, ngImport: i0__namespace });
766
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateRangeDirective, decorators: [{
767
+ type: i0.Directive,
768
+ args: [{
769
+ selector: 'tui-input-date-range',
770
+ providers: [i1.tuiAsTextfieldHost(TuiInputDateRangeDirective)],
771
+ }]
772
+ }] });
919
773
 
920
- var TuiInputDateRangeModule = /** @class */ (function () {
921
- function TuiInputDateRangeModule() {
922
- }
923
- return TuiInputDateRangeModule;
924
- }());
925
- TuiInputDateRangeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateRangeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
926
- TuiInputDateRangeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateRangeModule, declarations: [TuiInputDateRangeComponent, TuiInputDateRangeDirective], imports: [i6.CommonModule,
927
- i5.MaskitoModule,
928
- i3.TuiActiveZoneModule,
929
- i3.TuiLetModule,
930
- i7.PolymorpheusModule,
931
- i1.TuiWrapperModule,
932
- i1.TuiPrimitiveTextfieldModule,
933
- i1.TuiTextfieldControllerModule,
934
- i1.TuiHostedDropdownModule,
935
- i1.TuiSvgModule,
936
- i2.TuiCalendarRangeModule,
937
- i4.TuiValueAccessorModule], exports: [TuiInputDateRangeComponent,
938
- TuiInputDateRangeDirective,
939
- i1.TuiTextfieldComponent] });
940
- TuiInputDateRangeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateRangeModule, imports: [[
941
- i6.CommonModule,
942
- i5.MaskitoModule,
943
- i3.TuiActiveZoneModule,
944
- i3.TuiLetModule,
945
- i7.PolymorpheusModule,
946
- i1.TuiWrapperModule,
947
- i1.TuiPrimitiveTextfieldModule,
948
- i1.TuiTextfieldControllerModule,
949
- i1.TuiHostedDropdownModule,
950
- i1.TuiSvgModule,
951
- i2.TuiCalendarRangeModule,
952
- i4.TuiValueAccessorModule,
953
- ]] });
954
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateRangeModule, decorators: [{
955
- type: i0.NgModule,
956
- args: [{
957
- imports: [
958
- i6.CommonModule,
959
- i5.MaskitoModule,
960
- i3.TuiActiveZoneModule,
961
- i3.TuiLetModule,
962
- i7.PolymorpheusModule,
963
- i1.TuiWrapperModule,
964
- i1.TuiPrimitiveTextfieldModule,
965
- i1.TuiTextfieldControllerModule,
966
- i1.TuiHostedDropdownModule,
967
- i1.TuiSvgModule,
968
- i2.TuiCalendarRangeModule,
969
- i4.TuiValueAccessorModule,
970
- ],
971
- declarations: [TuiInputDateRangeComponent, TuiInputDateRangeDirective],
972
- exports: [
973
- TuiInputDateRangeComponent,
974
- TuiInputDateRangeDirective,
975
- i1.TuiTextfieldComponent,
976
- ],
977
- }]
978
- }] });
774
+ var TuiInputDateRangeModule = /** @class */ (function () {
775
+ function TuiInputDateRangeModule() {
776
+ }
777
+ return TuiInputDateRangeModule;
778
+ }());
779
+ TuiInputDateRangeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateRangeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
780
+ TuiInputDateRangeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateRangeModule, declarations: [TuiInputDateRangeComponent, TuiInputDateRangeDirective], imports: [i6.CommonModule,
781
+ i5.MaskitoModule,
782
+ i3.TuiActiveZoneModule,
783
+ i3.TuiLetModule,
784
+ i7.PolymorpheusModule,
785
+ i1.TuiWrapperModule,
786
+ i1.TuiPrimitiveTextfieldModule,
787
+ i1.TuiTextfieldControllerModule,
788
+ i1.TuiHostedDropdownModule,
789
+ i1.TuiSvgModule,
790
+ i2.TuiCalendarRangeModule,
791
+ i4.TuiValueAccessorModule], exports: [TuiInputDateRangeComponent,
792
+ TuiInputDateRangeDirective,
793
+ i1.TuiTextfieldComponent] });
794
+ TuiInputDateRangeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateRangeModule, imports: [[
795
+ i6.CommonModule,
796
+ i5.MaskitoModule,
797
+ i3.TuiActiveZoneModule,
798
+ i3.TuiLetModule,
799
+ i7.PolymorpheusModule,
800
+ i1.TuiWrapperModule,
801
+ i1.TuiPrimitiveTextfieldModule,
802
+ i1.TuiTextfieldControllerModule,
803
+ i1.TuiHostedDropdownModule,
804
+ i1.TuiSvgModule,
805
+ i2.TuiCalendarRangeModule,
806
+ i4.TuiValueAccessorModule,
807
+ ]] });
808
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateRangeModule, decorators: [{
809
+ type: i0.NgModule,
810
+ args: [{
811
+ imports: [
812
+ i6.CommonModule,
813
+ i5.MaskitoModule,
814
+ i3.TuiActiveZoneModule,
815
+ i3.TuiLetModule,
816
+ i7.PolymorpheusModule,
817
+ i1.TuiWrapperModule,
818
+ i1.TuiPrimitiveTextfieldModule,
819
+ i1.TuiTextfieldControllerModule,
820
+ i1.TuiHostedDropdownModule,
821
+ i1.TuiSvgModule,
822
+ i2.TuiCalendarRangeModule,
823
+ i4.TuiValueAccessorModule,
824
+ ],
825
+ declarations: [TuiInputDateRangeComponent, TuiInputDateRangeDirective],
826
+ exports: [
827
+ TuiInputDateRangeComponent,
828
+ TuiInputDateRangeDirective,
829
+ i1.TuiTextfieldComponent,
830
+ ],
831
+ }]
832
+ }] });
979
833
 
980
- /**
981
- * Generated bundle index. Do not edit.
982
- */
834
+ /**
835
+ * Generated bundle index. Do not edit.
836
+ */
983
837
 
984
- exports.TuiInputDateRangeComponent = TuiInputDateRangeComponent;
985
- exports.TuiInputDateRangeDirective = TuiInputDateRangeDirective;
986
- exports.TuiInputDateRangeModule = TuiInputDateRangeModule;
838
+ exports.TuiInputDateRangeComponent = TuiInputDateRangeComponent;
839
+ exports.TuiInputDateRangeDirective = TuiInputDateRangeDirective;
840
+ exports.TuiInputDateRangeModule = TuiInputDateRangeModule;
987
841
 
988
- Object.defineProperty(exports, '__esModule', { value: true });
842
+ Object.defineProperty(exports, '__esModule', { value: true });
989
843
 
990
844
  }));
991
845
  //# sourceMappingURL=taiga-ui-kit-components-input-date-range.umd.js.map