@taiga-ui/addon-doc 2.55.0 → 3.0.0-rc.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 (167) hide show
  1. package/README.md +2 -2
  2. package/addon-doc.module.d.ts +9 -0
  3. package/bundles/taiga-ui-addon-doc.umd.js +1777 -1335
  4. package/bundles/taiga-ui-addon-doc.umd.js.map +1 -1
  5. package/components/code/code.component.d.ts +3 -0
  6. package/components/code/code.module.d.ts +7 -0
  7. package/components/copy/copy.component.d.ts +3 -0
  8. package/components/copy/copy.module.d.ts +7 -0
  9. package/components/demo/demo.component.d.ts +3 -0
  10. package/components/demo/demo.module.d.ts +11 -0
  11. package/components/documentation/documentation-property-connector.directive.d.ts +3 -0
  12. package/components/documentation/documentation.component.d.ts +3 -0
  13. package/components/documentation/documentation.module.d.ts +12 -0
  14. package/components/example/example-capitalize.pipe.d.ts +3 -0
  15. package/components/example/example-get-tabs.pipe.d.ts +3 -0
  16. package/components/example/example.component.d.ts +8 -5
  17. package/components/example/example.module.d.ts +14 -0
  18. package/components/main/main.component.d.ts +3 -0
  19. package/components/main/main.module.d.ts +12 -0
  20. package/components/navigation/navigation.component.d.ts +3 -0
  21. package/components/navigation/navigation.module.d.ts +12 -0
  22. package/components/page/page-tab.directive.d.ts +3 -0
  23. package/components/page/page.component.d.ts +3 -0
  24. package/components/page/page.module.d.ts +11 -0
  25. package/directives/scroll-into-view/scroll-into-view.directive.d.ts +5 -0
  26. package/directives/scroll-into-view/scroll-into-view.module.d.ts +8 -0
  27. package/esm2015/addon-doc.module.js +27 -16
  28. package/esm2015/components/code/code.component.js +25 -23
  29. package/esm2015/components/code/code.module.js +15 -12
  30. package/esm2015/components/code/parse-code-block.js +3 -3
  31. package/esm2015/components/copy/copy.component.js +24 -19
  32. package/esm2015/components/copy/copy.module.js +15 -12
  33. package/esm2015/components/demo/demo.component.js +80 -63
  34. package/esm2015/components/demo/demo.module.js +54 -13
  35. package/esm2015/components/documentation/documentation-property-connector.directive.js +51 -52
  36. package/esm2015/components/documentation/documentation.component.js +72 -64
  37. package/esm2015/components/documentation/documentation.module.js +62 -19
  38. package/esm2015/components/example/example-capitalize.pipe.js +13 -10
  39. package/esm2015/components/example/example-get-tabs.pipe.js +10 -8
  40. package/esm2015/components/example/example.component.js +88 -66
  41. package/esm2015/components/example/example.module.js +42 -21
  42. package/esm2015/components/main/main.component.js +49 -35
  43. package/esm2015/components/main/main.module.js +36 -13
  44. package/esm2015/components/navigation/navigation.component.js +86 -63
  45. package/esm2015/components/navigation/navigation.module.js +56 -13
  46. package/esm2015/components/navigation/navigation.providers.js +4 -4
  47. package/esm2015/components/page/page-tab.directive.js +18 -15
  48. package/esm2015/components/page/page.component.js +48 -43
  49. package/esm2015/components/page/page.module.js +28 -13
  50. package/esm2015/components/page/page.providers.js +4 -4
  51. package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +38 -35
  52. package/esm2015/directives/scroll-into-view/scroll-into-view.module.js +26 -22
  53. package/esm2015/interfaces/code-editor.js +2 -1
  54. package/esm2015/interfaces/page.js +4 -4
  55. package/esm2015/interfaces/source-code-path-options.js +2 -1
  56. package/esm2015/internal/header/header.component.js +35 -24
  57. package/esm2015/internal/header/header.module.js +28 -13
  58. package/esm2015/internal/input-opacity/input-opacity.directive.js +21 -20
  59. package/esm2015/internal/input-opacity/input-opacity.module.js +14 -11
  60. package/esm2015/internal/see-also/see-also.component.js +28 -24
  61. package/esm2015/internal/see-also/see-also.module.js +15 -12
  62. package/esm2015/internal/source-code/source-code.component.js +35 -34
  63. package/esm2015/internal/source-code/source-code.module.js +15 -12
  64. package/esm2015/languages/russian.js +14 -18
  65. package/esm2015/public-api.js +8 -1
  66. package/esm2015/taiga-ui-addon-doc.js +1 -13
  67. package/esm2015/tokens/code-actions.js +3 -3
  68. package/esm2015/tokens/code-editor.js +2 -2
  69. package/esm2015/tokens/default-tabs.js +2 -2
  70. package/esm2015/tokens/example-content-processor.js +2 -2
  71. package/esm2015/tokens/i18n.js +19 -19
  72. package/esm2015/tokens/logo.js +3 -3
  73. package/esm2015/tokens/page-loaded.js +2 -2
  74. package/esm2015/tokens/pages.js +2 -2
  75. package/esm2015/tokens/scroll-behavior.js +2 -2
  76. package/esm2015/tokens/see-also.js +2 -2
  77. package/esm2015/tokens/source-code.js +3 -3
  78. package/esm2015/tokens/title.js +3 -3
  79. package/esm2015/types/pages.js +2 -1
  80. package/esm2015/utils/coerce-value.js +6 -6
  81. package/esm2015/utils/color-conversion.js +5 -5
  82. package/esm2015/utils/generate-routes.js +4 -10
  83. package/esm2015/utils/inspect.js +13 -13
  84. package/esm2015/utils/raw-load-record.js +1 -1
  85. package/esm2015/utils/raw-load.js +13 -2
  86. package/esm2015/utils/transliterate-keyboard-layout.js +34 -34
  87. package/fesm2015/taiga-ui-addon-doc.js +1256 -924
  88. package/fesm2015/taiga-ui-addon-doc.js.map +1 -1
  89. package/interfaces/code-editor.d.ts +0 -10
  90. package/internal/header/header.component.d.ts +3 -0
  91. package/internal/header/header.module.d.ts +11 -0
  92. package/internal/input-opacity/input-opacity.directive.d.ts +3 -0
  93. package/internal/input-opacity/input-opacity.module.d.ts +5 -0
  94. package/internal/see-also/see-also.component.d.ts +3 -0
  95. package/internal/see-also/see-also.module.d.ts +8 -0
  96. package/internal/source-code/source-code.component.d.ts +3 -0
  97. package/internal/source-code/source-code.module.d.ts +8 -0
  98. package/languages/russian.d.ts +0 -3
  99. package/package.json +11 -14
  100. package/public-api.d.ts +2 -0
  101. package/taiga-ui-addon-doc.d.ts +1 -12
  102. package/utils/generate-routes.d.ts +1 -6
  103. package/bundles/taiga-ui-addon-doc.umd.min.js +0 -2
  104. package/bundles/taiga-ui-addon-doc.umd.min.js.map +0 -1
  105. package/esm5/addon-doc.module.js +0 -25
  106. package/esm5/components/code/code.component.js +0 -46
  107. package/esm5/components/code/code.module.js +0 -19
  108. package/esm5/components/code/parse-code-block.js +0 -21
  109. package/esm5/components/copy/copy.component.js +0 -43
  110. package/esm5/components/copy/copy.module.js +0 -19
  111. package/esm5/components/demo/demo.component.js +0 -153
  112. package/esm5/components/demo/demo.module.js +0 -43
  113. package/esm5/components/documentation/documentation-property-connector.directive.js +0 -133
  114. package/esm5/components/documentation/documentation.component.js +0 -145
  115. package/esm5/components/documentation/documentation.module.js +0 -50
  116. package/esm5/components/example/example-capitalize.pipe.js +0 -16
  117. package/esm5/components/example/example-get-tabs.pipe.js +0 -15
  118. package/esm5/components/example/example.component.js +0 -135
  119. package/esm5/components/example/example.module.js +0 -42
  120. package/esm5/components/main/main.component.js +0 -58
  121. package/esm5/components/main/main.module.js +0 -35
  122. package/esm5/components/navigation/navigation.component.js +0 -203
  123. package/esm5/components/navigation/navigation.module.js +0 -45
  124. package/esm5/components/navigation/navigation.providers.js +0 -59
  125. package/esm5/components/page/page-tab.directive.js +0 -24
  126. package/esm5/components/page/page.component.js +0 -67
  127. package/esm5/components/page/page.module.js +0 -30
  128. package/esm5/components/page/page.providers.js +0 -22
  129. package/esm5/directives/scroll-into-view/scroll-into-view.directive.js +0 -65
  130. package/esm5/directives/scroll-into-view/scroll-into-view.module.js +0 -34
  131. package/esm5/interfaces/code-editor.js +0 -1
  132. package/esm5/interfaces/page.js +0 -6
  133. package/esm5/interfaces/source-code-path-options.js +0 -1
  134. package/esm5/internal/header/header.component.js +0 -47
  135. package/esm5/internal/header/header.module.js +0 -30
  136. package/esm5/internal/input-opacity/input-opacity.directive.js +0 -36
  137. package/esm5/internal/input-opacity/input-opacity.module.js +0 -16
  138. package/esm5/internal/see-also/see-also.component.js +0 -44
  139. package/esm5/internal/see-also/see-also.module.js +0 -20
  140. package/esm5/internal/source-code/source-code.component.js +0 -61
  141. package/esm5/internal/source-code/source-code.module.js +0 -20
  142. package/esm5/languages/russian.js +0 -42
  143. package/esm5/public-api.js +0 -49
  144. package/esm5/taiga-ui-addon-doc.js +0 -17
  145. package/esm5/tokens/code-actions.js +0 -5
  146. package/esm5/tokens/code-editor.js +0 -3
  147. package/esm5/tokens/default-tabs.js +0 -5
  148. package/esm5/tokens/example-content-processor.js +0 -4
  149. package/esm5/tokens/i18n.js +0 -54
  150. package/esm5/tokens/logo.js +0 -5
  151. package/esm5/tokens/page-loaded.js +0 -5
  152. package/esm5/tokens/pages.js +0 -5
  153. package/esm5/tokens/scroll-behavior.js +0 -3
  154. package/esm5/tokens/see-also.js +0 -5
  155. package/esm5/tokens/source-code.js +0 -5
  156. package/esm5/tokens/title.js +0 -5
  157. package/esm5/types/pages.js +0 -1
  158. package/esm5/utils/coerce-value.js +0 -44
  159. package/esm5/utils/color-conversion.js +0 -27
  160. package/esm5/utils/generate-routes.js +0 -21
  161. package/esm5/utils/inspect.js +0 -68
  162. package/esm5/utils/raw-load-record.js +0 -50
  163. package/esm5/utils/raw-load.js +0 -26
  164. package/esm5/utils/transliterate-keyboard-layout.js +0 -50
  165. package/fesm5/taiga-ui-addon-doc.js +0 -2007
  166. package/fesm5/taiga-ui-addon-doc.js.map +0 -1
  167. package/taiga-ui-addon-doc.metadata.json +0 -1
@@ -1,267 +1,388 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('markdown-it'), require('@angular/common'), require('ngx-highlightjs'), require('@taiga-ui/cdk'), require('@taiga-ui/kit'), require('@taiga-ui/core'), require('@angular/forms'), require('@angular/router'), require('@angular/animations'), require('@angular/cdk/clipboard'), require('@ng-web-apis/common'), require('@tinkoff/ng-polymorpheus'), require('@taiga-ui/addon-mobile'), require('@angular/platform-browser')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/addon-doc', ['exports', '@angular/core', 'rxjs', 'rxjs/operators', 'markdown-it', '@angular/common', 'ngx-highlightjs', '@taiga-ui/cdk', '@taiga-ui/kit', '@taiga-ui/core', '@angular/forms', '@angular/router', '@angular/animations', '@angular/cdk/clipboard', '@ng-web-apis/common', '@tinkoff/ng-polymorpheus', '@taiga-ui/addon-mobile', '@angular/platform-browser'], factory) :
4
- (global = global || self, factory((global['taiga-ui'] = global['taiga-ui'] || {}, global['taiga-ui']['addon-doc'] = {}), global.ng.core, global.rxjs, global.rxjs.operators, global.MarkdownIt, global.ng.common, global.ngxHighlightjs, global.cdk, global.kit, global.core$1, global.ng.forms, global.ng.router, global.ng.animations, global.ng.cdk.clipboard, global.common$1, global.ngPolymorpheus, global.addonMobile, global.ng.platformBrowser));
5
- }(this, (function (exports, core, rxjs, operators, MarkdownIt, common, ngxHighlightjs, cdk, kit, core$1, forms, router, animations, clipboard, common$1, ngPolymorpheus, addonMobile, platformBrowser) { 'use strict';
6
-
7
- MarkdownIt = MarkdownIt && Object.prototype.hasOwnProperty.call(MarkdownIt, 'default') ? MarkdownIt['default'] : MarkdownIt;
8
-
9
- /******************************************************************************
10
- Copyright (c) Microsoft Corporation.
11
-
12
- Permission to use, copy, modify, and/or distribute this software for any
13
- purpose with or without fee is hereby granted.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
16
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
17
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
18
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
19
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
20
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21
- PERFORMANCE OF THIS SOFTWARE.
22
- ***************************************************************************** */
23
- /* global Reflect, Promise */
24
-
25
- var extendStatics = function(d, b) {
26
- extendStatics = Object.setPrototypeOf ||
27
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
28
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
29
- return extendStatics(d, b);
30
- };
31
-
32
- function __extends(d, b) {
33
- if (typeof b !== "function" && b !== null)
34
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
35
- extendStatics(d, b);
36
- function __() { this.constructor = d; }
37
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
38
- }
39
-
40
- var __assign = function() {
41
- __assign = Object.assign || function __assign(t) {
42
- for (var s, i = 1, n = arguments.length; i < n; i++) {
43
- s = arguments[i];
44
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
45
- }
46
- return t;
47
- };
48
- return __assign.apply(this, arguments);
49
- };
50
-
51
- function __rest(s, e) {
52
- var t = {};
53
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
54
- t[p] = s[p];
55
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
56
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
57
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
58
- t[p[i]] = s[p[i]];
59
- }
60
- return t;
61
- }
62
-
63
- function __decorate(decorators, target, key, desc) {
64
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
65
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
66
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
67
- return c > 3 && r && Object.defineProperty(target, key, r), r;
68
- }
69
-
70
- function __param(paramIndex, decorator) {
71
- return function (target, key) { decorator(target, key, paramIndex); }
72
- }
73
-
74
- function __metadata(metadataKey, metadataValue) {
75
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
76
- }
77
-
78
- function __awaiter(thisArg, _arguments, P, generator) {
79
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
80
- return new (P || (P = Promise))(function (resolve, reject) {
81
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
82
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
83
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
84
- step((generator = generator.apply(thisArg, _arguments || [])).next());
85
- });
86
- }
87
-
88
- function __generator(thisArg, body) {
89
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
90
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
91
- function verb(n) { return function (v) { return step([n, v]); }; }
92
- function step(op) {
93
- if (f) throw new TypeError("Generator is already executing.");
94
- while (_) try {
95
- 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) return t;
96
- if (y = 0, t) op = [op[0] & 2, t.value];
97
- switch (op[0]) {
98
- case 0: case 1: t = op; break;
99
- case 4: _.label++; return { value: op[1], done: false };
100
- case 5: _.label++; y = op[1]; op = [0]; continue;
101
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
102
- default:
103
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
104
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
105
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
106
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
107
- if (t[2]) _.ops.pop();
108
- _.trys.pop(); continue;
109
- }
110
- op = body.call(thisArg, _);
111
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
112
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
113
- }
114
- }
115
-
116
- var __createBinding = Object.create ? (function(o, m, k, k2) {
117
- if (k2 === undefined) k2 = k;
118
- var desc = Object.getOwnPropertyDescriptor(m, k);
119
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
120
- desc = { enumerable: true, get: function() { return m[k]; } };
121
- }
122
- Object.defineProperty(o, k2, desc);
123
- }) : (function(o, m, k, k2) {
124
- if (k2 === undefined) k2 = k;
125
- o[k2] = m[k];
126
- });
127
-
128
- function __exportStar(m, o) {
129
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
130
- }
131
-
132
- function __values(o) {
133
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
134
- if (m) return m.call(o);
135
- if (o && typeof o.length === "number") return {
136
- next: function () {
137
- if (o && i >= o.length) o = void 0;
138
- return { value: o && o[i++], done: !o };
139
- }
140
- };
141
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
142
- }
143
-
144
- function __read(o, n) {
145
- var m = typeof Symbol === "function" && o[Symbol.iterator];
146
- if (!m) return o;
147
- var i = m.call(o), r, ar = [], e;
148
- try {
149
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
150
- }
151
- catch (error) { e = { error: error }; }
152
- finally {
153
- try {
154
- if (r && !r.done && (m = i["return"])) m.call(i);
155
- }
156
- finally { if (e) throw e.error; }
157
- }
158
- return ar;
159
- }
160
-
161
- /** @deprecated */
162
- function __spread() {
163
- for (var ar = [], i = 0; i < arguments.length; i++)
164
- ar = ar.concat(__read(arguments[i]));
165
- return ar;
166
- }
167
-
168
- /** @deprecated */
169
- function __spreadArrays() {
170
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
171
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
172
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
173
- r[k] = a[j];
174
- return r;
175
- }
176
-
177
- function __spreadArray(to, from, pack) {
178
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
179
- if (ar || !(i in from)) {
180
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
181
- ar[i] = from[i];
182
- }
183
- }
184
- return to.concat(ar || Array.prototype.slice.call(from));
185
- }
186
-
187
- function __await(v) {
188
- return this instanceof __await ? (this.v = v, this) : new __await(v);
189
- }
190
-
191
- function __asyncGenerator(thisArg, _arguments, generator) {
192
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
193
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
194
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
195
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
196
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
197
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
198
- function fulfill(value) { resume("next", value); }
199
- function reject(value) { resume("throw", value); }
200
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
201
- }
202
-
203
- function __asyncDelegator(o) {
204
- var i, p;
205
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
206
- 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; }
207
- }
208
-
209
- function __asyncValues(o) {
210
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
211
- var m = o[Symbol.asyncIterator], i;
212
- 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);
213
- 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); }); }; }
214
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
215
- }
216
-
217
- function __makeTemplateObject(cooked, raw) {
218
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
219
- return cooked;
220
- };
221
-
222
- var __setModuleDefault = Object.create ? (function(o, v) {
223
- Object.defineProperty(o, "default", { enumerable: true, value: v });
224
- }) : function(o, v) {
225
- o["default"] = v;
226
- };
227
-
228
- function __importStar(mod) {
229
- if (mod && mod.__esModule) return mod;
230
- var result = {};
231
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
232
- __setModuleDefault(result, mod);
233
- return result;
234
- }
235
-
236
- function __importDefault(mod) {
237
- return (mod && mod.__esModule) ? mod : { default: mod };
238
- }
239
-
240
- function __classPrivateFieldGet(receiver, state, kind, f) {
241
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
242
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
243
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
244
- }
245
-
246
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
247
- if (kind === "m") throw new TypeError("Private method is not writable");
248
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
249
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
250
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
251
- }
252
-
253
- function __classPrivateFieldIn(state, receiver) {
254
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
255
- return typeof state === "function" ? receiver === state : state.has(receiver);
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('markdown-it'), require('@angular/common'), require('ngx-highlightjs'), require('@taiga-ui/cdk'), require('@taiga-ui/kit'), require('@taiga-ui/core'), require('@angular/forms'), require('@angular/router'), require('@angular/animations'), require('@angular/cdk/clipboard'), require('@ng-web-apis/common'), require('@tinkoff/ng-polymorpheus'), require('@angular/platform-browser'), require('@taiga-ui/addon-mobile')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/addon-doc', ['exports', '@angular/core', 'rxjs', 'rxjs/operators', 'markdown-it', '@angular/common', 'ngx-highlightjs', '@taiga-ui/cdk', '@taiga-ui/kit', '@taiga-ui/core', '@angular/forms', '@angular/router', '@angular/animations', '@angular/cdk/clipboard', '@ng-web-apis/common', '@tinkoff/ng-polymorpheus', '@angular/platform-browser', '@taiga-ui/addon-mobile'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"]["addon-doc"] = {}), global.ng.core, global.rxjs, global.rxjs.operators, global.MarkdownIt, global.ng.common, global.i2, global.i3, global.i2$1, global.i1, global.ng.forms, global.ng.router, global.ng.animations, global.ng.cdk.clipboard, global.common, global.i6, global.ng.platformBrowser, global.i4$1));
5
+ })(this, (function (exports, i0, i8, operators, MarkdownIt, i4, i2, i3, i2$1, i1, i5, i5$1, animations, i8$1, common, i6, i7, i4$1) { 'use strict';
6
+
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ function _interopNamespace(e) {
10
+ if (e && e.__esModule) return e;
11
+ var n = Object.create(null);
12
+ if (e) {
13
+ Object.keys(e).forEach(function (k) {
14
+ if (k !== 'default') {
15
+ var d = Object.getOwnPropertyDescriptor(e, k);
16
+ Object.defineProperty(n, k, d.get ? d : {
17
+ enumerable: true,
18
+ get: function () { return e[k]; }
19
+ });
20
+ }
21
+ });
22
+ }
23
+ n["default"] = e;
24
+ return Object.freeze(n);
25
+ }
26
+
27
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
+ var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
29
+ var MarkdownIt__default = /*#__PURE__*/_interopDefaultLegacy(MarkdownIt);
30
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
31
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
32
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
33
+ var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
34
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
35
+ var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5);
36
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5$1);
37
+ var i8__namespace$1 = /*#__PURE__*/_interopNamespace(i8$1);
38
+ var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
39
+ var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
40
+ var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
41
+
42
+ /******************************************************************************
43
+ Copyright (c) Microsoft Corporation.
44
+
45
+ Permission to use, copy, modify, and/or distribute this software for any
46
+ purpose with or without fee is hereby granted.
47
+
48
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
49
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
50
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
51
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
52
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
53
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
54
+ PERFORMANCE OF THIS SOFTWARE.
55
+ ***************************************************************************** */
56
+ /* global Reflect, Promise */
57
+ var extendStatics = function (d, b) {
58
+ extendStatics = Object.setPrototypeOf ||
59
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
60
+ function (d, b) { for (var p in b)
61
+ if (Object.prototype.hasOwnProperty.call(b, p))
62
+ d[p] = b[p]; };
63
+ return extendStatics(d, b);
64
+ };
65
+ function __extends(d, b) {
66
+ if (typeof b !== "function" && b !== null)
67
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
68
+ extendStatics(d, b);
69
+ function __() { this.constructor = d; }
70
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
71
+ }
72
+ var __assign = function () {
73
+ __assign = Object.assign || function __assign(t) {
74
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
75
+ s = arguments[i];
76
+ for (var p in s)
77
+ if (Object.prototype.hasOwnProperty.call(s, p))
78
+ t[p] = s[p];
79
+ }
80
+ return t;
81
+ };
82
+ return __assign.apply(this, arguments);
83
+ };
84
+ function __rest(s, e) {
85
+ var t = {};
86
+ for (var p in s)
87
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
88
+ t[p] = s[p];
89
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
90
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
91
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
92
+ t[p[i]] = s[p[i]];
93
+ }
94
+ return t;
95
+ }
96
+ function __decorate(decorators, target, key, desc) {
97
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
98
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
99
+ r = Reflect.decorate(decorators, target, key, desc);
100
+ else
101
+ for (var i = decorators.length - 1; i >= 0; i--)
102
+ if (d = decorators[i])
103
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
104
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
105
+ }
106
+ function __param(paramIndex, decorator) {
107
+ return function (target, key) { decorator(target, key, paramIndex); };
108
+ }
109
+ function __metadata(metadataKey, metadataValue) {
110
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
111
+ return Reflect.metadata(metadataKey, metadataValue);
112
+ }
113
+ function __awaiter(thisArg, _arguments, P, generator) {
114
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
115
+ return new (P || (P = Promise))(function (resolve, reject) {
116
+ function fulfilled(value) { try {
117
+ step(generator.next(value));
118
+ }
119
+ catch (e) {
120
+ reject(e);
121
+ } }
122
+ function rejected(value) { try {
123
+ step(generator["throw"](value));
124
+ }
125
+ catch (e) {
126
+ reject(e);
127
+ } }
128
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
129
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
130
+ });
131
+ }
132
+ function __generator(thisArg, body) {
133
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
134
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
135
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
136
+ function verb(n) { return function (v) { return step([n, v]); }; }
137
+ function step(op) {
138
+ if (f)
139
+ throw new TypeError("Generator is already executing.");
140
+ while (_)
141
+ try {
142
+ 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)
143
+ return t;
144
+ if (y = 0, t)
145
+ op = [op[0] & 2, t.value];
146
+ switch (op[0]) {
147
+ case 0:
148
+ case 1:
149
+ t = op;
150
+ break;
151
+ case 4:
152
+ _.label++;
153
+ return { value: op[1], done: false };
154
+ case 5:
155
+ _.label++;
156
+ y = op[1];
157
+ op = [0];
158
+ continue;
159
+ case 7:
160
+ op = _.ops.pop();
161
+ _.trys.pop();
162
+ continue;
163
+ default:
164
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
165
+ _ = 0;
166
+ continue;
167
+ }
168
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
169
+ _.label = op[1];
170
+ break;
171
+ }
172
+ if (op[0] === 6 && _.label < t[1]) {
173
+ _.label = t[1];
174
+ t = op;
175
+ break;
176
+ }
177
+ if (t && _.label < t[2]) {
178
+ _.label = t[2];
179
+ _.ops.push(op);
180
+ break;
181
+ }
182
+ if (t[2])
183
+ _.ops.pop();
184
+ _.trys.pop();
185
+ continue;
186
+ }
187
+ op = body.call(thisArg, _);
188
+ }
189
+ catch (e) {
190
+ op = [6, e];
191
+ y = 0;
192
+ }
193
+ finally {
194
+ f = t = 0;
195
+ }
196
+ if (op[0] & 5)
197
+ throw op[1];
198
+ return { value: op[0] ? op[1] : void 0, done: true };
199
+ }
200
+ }
201
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
202
+ if (k2 === undefined)
203
+ k2 = k;
204
+ var desc = Object.getOwnPropertyDescriptor(m, k);
205
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
206
+ desc = { enumerable: true, get: function () { return m[k]; } };
207
+ }
208
+ Object.defineProperty(o, k2, desc);
209
+ }) : (function (o, m, k, k2) {
210
+ if (k2 === undefined)
211
+ k2 = k;
212
+ o[k2] = m[k];
213
+ });
214
+ function __exportStar(m, o) {
215
+ for (var p in m)
216
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
217
+ __createBinding(o, m, p);
218
+ }
219
+ function __values(o) {
220
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
221
+ if (m)
222
+ return m.call(o);
223
+ if (o && typeof o.length === "number")
224
+ return {
225
+ next: function () {
226
+ if (o && i >= o.length)
227
+ o = void 0;
228
+ return { value: o && o[i++], done: !o };
229
+ }
230
+ };
231
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
232
+ }
233
+ function __read(o, n) {
234
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
235
+ if (!m)
236
+ return o;
237
+ var i = m.call(o), r, ar = [], e;
238
+ try {
239
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
240
+ ar.push(r.value);
241
+ }
242
+ catch (error) {
243
+ e = { error: error };
244
+ }
245
+ finally {
246
+ try {
247
+ if (r && !r.done && (m = i["return"]))
248
+ m.call(i);
249
+ }
250
+ finally {
251
+ if (e)
252
+ throw e.error;
253
+ }
254
+ }
255
+ return ar;
256
+ }
257
+ /** @deprecated */
258
+ function __spread() {
259
+ for (var ar = [], i = 0; i < arguments.length; i++)
260
+ ar = ar.concat(__read(arguments[i]));
261
+ return ar;
262
+ }
263
+ /** @deprecated */
264
+ function __spreadArrays() {
265
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
266
+ s += arguments[i].length;
267
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
268
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
269
+ r[k] = a[j];
270
+ return r;
271
+ }
272
+ function __spreadArray(to, from, pack) {
273
+ if (pack || arguments.length === 2)
274
+ for (var i = 0, l = from.length, ar; i < l; i++) {
275
+ if (ar || !(i in from)) {
276
+ if (!ar)
277
+ ar = Array.prototype.slice.call(from, 0, i);
278
+ ar[i] = from[i];
279
+ }
280
+ }
281
+ return to.concat(ar || Array.prototype.slice.call(from));
282
+ }
283
+ function __await(v) {
284
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
285
+ }
286
+ function __asyncGenerator(thisArg, _arguments, generator) {
287
+ if (!Symbol.asyncIterator)
288
+ throw new TypeError("Symbol.asyncIterator is not defined.");
289
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
290
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
291
+ function verb(n) { if (g[n])
292
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
293
+ function resume(n, v) { try {
294
+ step(g[n](v));
295
+ }
296
+ catch (e) {
297
+ settle(q[0][3], e);
298
+ } }
299
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
300
+ function fulfill(value) { resume("next", value); }
301
+ function reject(value) { resume("throw", value); }
302
+ function settle(f, v) { if (f(v), q.shift(), q.length)
303
+ resume(q[0][0], q[0][1]); }
304
+ }
305
+ function __asyncDelegator(o) {
306
+ var i, p;
307
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
308
+ 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; }
309
+ }
310
+ function __asyncValues(o) {
311
+ if (!Symbol.asyncIterator)
312
+ throw new TypeError("Symbol.asyncIterator is not defined.");
313
+ var m = o[Symbol.asyncIterator], i;
314
+ 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);
315
+ 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); }); }; }
316
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
317
+ }
318
+ function __makeTemplateObject(cooked, raw) {
319
+ if (Object.defineProperty) {
320
+ Object.defineProperty(cooked, "raw", { value: raw });
321
+ }
322
+ else {
323
+ cooked.raw = raw;
324
+ }
325
+ return cooked;
326
+ }
327
+ ;
328
+ var __setModuleDefault = Object.create ? (function (o, v) {
329
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
330
+ }) : function (o, v) {
331
+ o["default"] = v;
332
+ };
333
+ function __importStar(mod) {
334
+ if (mod && mod.__esModule)
335
+ return mod;
336
+ var result = {};
337
+ if (mod != null)
338
+ for (var k in mod)
339
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
340
+ __createBinding(result, mod, k);
341
+ __setModuleDefault(result, mod);
342
+ return result;
343
+ }
344
+ function __importDefault(mod) {
345
+ return (mod && mod.__esModule) ? mod : { default: mod };
346
+ }
347
+ function __classPrivateFieldGet(receiver, state, kind, f) {
348
+ if (kind === "a" && !f)
349
+ throw new TypeError("Private accessor was defined without a getter");
350
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
351
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
352
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
353
+ }
354
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
355
+ if (kind === "m")
356
+ throw new TypeError("Private method is not writable");
357
+ if (kind === "a" && !f)
358
+ throw new TypeError("Private accessor was defined without a setter");
359
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
360
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
361
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
362
+ }
363
+ function __classPrivateFieldIn(state, receiver) {
364
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
365
+ throw new TypeError("Cannot use 'in' operator on non-object");
366
+ return typeof state === "function" ? receiver === state : state.has(receiver);
256
367
  }
257
368
 
369
+ // TODO: delete it when all `!!raw-loader!` will be replaced by webpack `asset/source`.
370
+ function trimExportDefault(fileContent) {
371
+ return fileContent.startsWith("export default \"")
372
+ ? fileContent
373
+ .replace(/^export\sdefault\s["']/gi, "")
374
+ .replace(/['"];$/gi, "")
375
+ .replaceAll("\\n", "\n")
376
+ .replaceAll("\\\"", "\"")
377
+ : fileContent;
378
+ }
258
379
  /**
259
380
  * @deprecated: use {@link tuiRawLoad} instead
260
381
  */
261
382
  // eslint-disable-next-line @typescript-eslint/naming-convention
262
383
  function rawLoad(content) {
263
384
  return __awaiter(this, void 0, void 0, function () {
264
- var _a;
385
+ var unpacked, _a;
265
386
  return __generator(this, function (_b) {
266
387
  switch (_b.label) {
267
388
  case 0:
@@ -273,7 +394,9 @@
273
394
  case 2:
274
395
  _a = content;
275
396
  _b.label = 3;
276
- case 3: return [2 /*return*/, _a];
397
+ case 3:
398
+ unpacked = _a;
399
+ return [2 /*return*/, trimExportDefault(unpacked)];
277
400
  }
278
401
  });
279
402
  });
@@ -285,12 +408,12 @@
285
408
  */
286
409
  // eslint-disable-next-line @typescript-eslint/naming-convention
287
410
  function tryParseMarkdownCodeBlock(text) {
288
- if (text === void 0) { text = ''; }
289
- var tokens = new MarkdownIt().parse(text, {});
411
+ if (text === void 0) { text = ""; }
412
+ var tokens = new MarkdownIt__default["default"]().parse(text, {});
290
413
  var result = tokens
291
414
  .filter(function (_a) {
292
415
  var tag = _a.tag, type = _a.type;
293
- return tag === 'code' && type === 'fence';
416
+ return tag === "code" && type === "fence";
294
417
  })
295
418
  .map(function (_a) {
296
419
  var content = _a.content;
@@ -302,104 +425,117 @@
302
425
 
303
426
  var TuiDocCodeComponent = /** @class */ (function () {
304
427
  function TuiDocCodeComponent() {
305
- this.rawLoader$$ = new rxjs.BehaviorSubject('');
306
- this.filename = '';
428
+ this.rawLoader$$ = new i8.BehaviorSubject("");
429
+ this.filename = "";
307
430
  this.processor$ = this.rawLoader$$.pipe(operators.switchMap(rawLoad), operators.map(tryParseMarkdownCodeBlock));
308
431
  }
309
432
  Object.defineProperty(TuiDocCodeComponent.prototype, "code", {
310
433
  set: function (code) {
311
434
  this.rawLoader$$.next(code);
312
435
  },
313
- enumerable: true,
436
+ enumerable: false,
314
437
  configurable: true
315
438
  });
316
439
  Object.defineProperty(TuiDocCodeComponent.prototype, "hasFilename", {
317
440
  get: function () {
318
441
  return !!this.filename;
319
442
  },
320
- enumerable: true,
443
+ enumerable: false,
321
444
  configurable: true
322
445
  });
323
- __decorate([
324
- core.Input()
325
- ], TuiDocCodeComponent.prototype, "filename", void 0);
326
- __decorate([
327
- core.Input()
328
- ], TuiDocCodeComponent.prototype, "code", null);
329
- __decorate([
330
- core.HostBinding('class._has-filename')
331
- ], TuiDocCodeComponent.prototype, "hasFilename", null);
332
- TuiDocCodeComponent = __decorate([
333
- core.Component({
334
- selector: 'tui-doc-code',
335
- template: "<p\n *ngIf=\"filename\"\n class=\"t-header\"\n>\n {{ filename }}\n</p>\n<pre\n *ngFor=\"let content of processor$ | async\"\n class=\"t-code\"\n><code [lineNumbers]=\"true\" [highlight]=\"content\"></code></pre>\n",
336
- styles: [":host{display:block}.t-header{font:var(--tui-font-text-s);font-weight:700}.t-code{margin:0}.t-code+.t-code{margin-top:1rem}.hljs:not(:empty){font:var(--tui-font-text-m);padding:1.5rem 2rem;font-family:monospace;background:var(--tui-clear-disabled);word-wrap:break-word;white-space:pre-wrap}@media all and (-webkit-min-device-pixel-ratio:0) and (min-resolution:0.001dpcm){.hljs:not(:empty)::-webkit-scrollbar,.hljs:not(:empty)::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:2.667rem solid transparent}.hljs:not(:empty)::-webkit-scrollbar{background-color:transparent}.hljs:not(:empty)::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}.hljs:not(:empty)::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}.hljs:not(:empty)::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}:host._has-filename .hljs:not(:empty){border-radius:.75rem}:host-context(tui-root._mobile) .hljs:not(:empty){padding:1rem}"]
337
- })
338
- ], TuiDocCodeComponent);
339
446
  return TuiDocCodeComponent;
340
447
  }());
448
+ TuiDocCodeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocCodeComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
449
+ TuiDocCodeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiDocCodeComponent, selector: "tui-doc-code", inputs: { filename: "filename", code: "code" }, host: { properties: { "class._has-filename": "this.hasFilename" } }, ngImport: i0__namespace, template: "<p\n *ngIf=\"filename\"\n class=\"t-header\"\n>\n {{ filename }}\n</p>\n<pre\n *ngFor=\"let content of processor$ | async\"\n class=\"t-code\"\n><code [lineNumbers]=\"true\" [highlight]=\"content\"></code></pre>\n", styles: [":host{display:block}.t-header{font:var(--tui-font-text-s);font-weight:bold}.t-code{margin:0}.t-code+.t-code{margin-top:1rem}.hljs:not(:empty){font:var(--tui-font-text-m);padding:1.5rem 2rem;font-family:monospace;background:var(--tui-clear-disabled);word-wrap:break-word;white-space:pre-wrap}@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm){.hljs:not(:empty)::-webkit-scrollbar,.hljs:not(:empty)::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:2.667rem solid transparent}.hljs:not(:empty)::-webkit-scrollbar{background-color:transparent}.hljs:not(:empty)::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}.hljs:not(:empty)::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}.hljs:not(:empty)::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}:host._has-filename .hljs:not(:empty){border-radius:.75rem}:host-context(tui-root._mobile) .hljs:not(:empty){padding:1rem}\n"], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.Highlight, selector: "[highlight]", inputs: ["highlight", "languages", "lineNumbers"], outputs: ["highlighted"] }], pipes: { "async": i4__namespace.AsyncPipe } });
450
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocCodeComponent, decorators: [{
451
+ type: i0.Component,
452
+ args: [{
453
+ selector: "tui-doc-code",
454
+ templateUrl: "./code.template.html",
455
+ styleUrls: ["./code.style.less"],
456
+ }]
457
+ }], propDecorators: { filename: [{
458
+ type: i0.Input
459
+ }], code: [{
460
+ type: i0.Input
461
+ }], hasFilename: [{
462
+ type: i0.HostBinding,
463
+ args: ["class._has-filename"]
464
+ }] } });
341
465
 
342
466
  var TuiDocCodeModule = /** @class */ (function () {
343
467
  function TuiDocCodeModule() {
344
468
  }
345
- TuiDocCodeModule = __decorate([
346
- core.NgModule({
347
- imports: [common.CommonModule, ngxHighlightjs.HighlightModule],
348
- declarations: [TuiDocCodeComponent],
349
- exports: [TuiDocCodeComponent],
350
- })
351
- ], TuiDocCodeModule);
352
469
  return TuiDocCodeModule;
353
470
  }());
471
+ TuiDocCodeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocCodeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
472
+ TuiDocCodeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocCodeModule, declarations: [TuiDocCodeComponent], imports: [i4.CommonModule, i2.HighlightModule], exports: [TuiDocCodeComponent] });
473
+ TuiDocCodeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocCodeModule, imports: [[i4.CommonModule, i2.HighlightModule]] });
474
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocCodeModule, decorators: [{
475
+ type: i0.NgModule,
476
+ args: [{
477
+ imports: [i4.CommonModule, i2.HighlightModule],
478
+ declarations: [TuiDocCodeComponent],
479
+ exports: [TuiDocCodeComponent],
480
+ }]
481
+ }] });
354
482
 
355
483
  var COPIED_TIMEOUT = 1500;
356
484
  // @dynamic
357
485
  var TuiDocCopyComponent = /** @class */ (function () {
358
486
  function TuiDocCopyComponent(texts$) {
359
487
  this.texts$ = texts$;
360
- this.copy$ = new rxjs.Subject();
488
+ this.copy$ = new i8.Subject();
361
489
  }
362
490
  Object.defineProperty(TuiDocCopyComponent.prototype, "copied$", {
363
491
  get: function () {
364
- return this.copy$.pipe(operators.switchMapTo(rxjs.timer(COPIED_TIMEOUT).pipe(operators.mapTo(false), operators.startWith(true))));
492
+ return this.copy$.pipe(operators.switchMapTo(i8.timer(COPIED_TIMEOUT).pipe(operators.mapTo(false), operators.startWith(true))));
365
493
  },
366
- enumerable: true,
494
+ enumerable: false,
367
495
  configurable: true
368
496
  });
369
497
  TuiDocCopyComponent.prototype.onClick = function () {
370
498
  this.copy$.next();
371
499
  };
372
- TuiDocCopyComponent.ctorParameters = function () { return [
373
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [kit.TUI_COPY_TEXTS,] }] }
374
- ]; };
375
- __decorate([
376
- cdk.tuiPure
377
- ], TuiDocCopyComponent.prototype, "copied$", null);
378
- TuiDocCopyComponent = __decorate([
379
- core.Component({
380
- selector: 'tui-doc-copy',
381
- template: "<button\n *ngIf=\"texts$ | async as texts\"\n tuiButton\n type=\"button\"\n appearance=\"\"\n size=\"s\"\n class=\"t-copy\"\n [title]=\"texts[0]\"\n (click)=\"onClick()\"\n>\n <span\n class=\"t-content\"\n [class.t-content_moved]=\"copied$ | async\"\n >\n <span\n class=\"t-initial\"\n [attr.data-text]=\"texts[0]\"\n >\n <ng-content></ng-content>\n </span>\n {{ texts[1] }}\n </span>\n</button>\n",
382
- changeDetection: core.ChangeDetectionStrategy.OnPush,
383
- providers: [cdk.TuiDestroyService],
384
- styles: [":host{position:relative;display:inline-block;vertical-align:middle}.t-copy{transition-property:background;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;width:100%;color:var(--tui-text-01);background:var(--tui-base-01);overflow:hidden}.t-copy:hover{background:var(--tui-base-02)}.t-initial{white-space:nowrap}.t-initial:empty:before{content:attr(data-text)}.t-content{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;flex-direction:column;transform:translateY(1rem);text-align:center;line-height:2rem}.t-content_moved{transform:translateY(-1rem)}"]
385
- }),
386
- __param(0, core.Inject(kit.TUI_COPY_TEXTS))
387
- ], TuiDocCopyComponent);
388
500
  return TuiDocCopyComponent;
389
501
  }());
502
+ TuiDocCopyComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocCopyComponent, deps: [{ token: i2$1.TUI_COPY_TEXTS }], target: i0__namespace.ɵɵFactoryTarget.Component });
503
+ TuiDocCopyComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiDocCopyComponent, selector: "tui-doc-copy", providers: [i3.TuiDestroyService], ngImport: i0__namespace, template: "<button\n *ngIf=\"texts$ | async as texts\"\n tuiButton\n type=\"button\"\n appearance=\"\"\n size=\"s\"\n class=\"t-copy\"\n [title]=\"texts[0]\"\n (click)=\"onClick()\"\n>\n <span\n class=\"t-content\"\n [class.t-content_moved]=\"copied$ | async\"\n >\n <span\n class=\"t-initial\"\n [attr.data-text]=\"texts[0]\"\n >\n <ng-content></ng-content>\n </span>\n {{ texts[1] }}\n </span>\n</button>\n", styles: [":host{position:relative;display:inline-block;vertical-align:middle}.t-copy{transition-property:background;transition-duration:.3s;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:100%;color:var(--tui-text-01);background:var(--tui-base-01);overflow:hidden}.t-copy:hover{background:var(--tui-base-02)}.t-initial{white-space:nowrap}.t-initial:empty:before{content:attr(data-text)}.t-content{transition-property:transform;transition-duration:.3s;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;flex-direction:column;transform:translateY(1rem);text-align:center;line-height:2rem}.t-content_moved{transform:translateY(-1rem)}\n"], components: [{ type: i1__namespace.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
504
+ __decorate([
505
+ i3.tuiPure
506
+ ], TuiDocCopyComponent.prototype, "copied$", null);
507
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocCopyComponent, decorators: [{
508
+ type: i0.Component,
509
+ args: [{
510
+ selector: "tui-doc-copy",
511
+ templateUrl: "./copy.template.html",
512
+ styleUrls: ["./copy.style.less"],
513
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
514
+ providers: [i3.TuiDestroyService],
515
+ }]
516
+ }], ctorParameters: function () {
517
+ return [{ type: i8__namespace.Observable, decorators: [{
518
+ type: i0.Inject,
519
+ args: [i2$1.TUI_COPY_TEXTS]
520
+ }] }];
521
+ }, propDecorators: { copied$: [] } });
390
522
 
391
523
  var TuiDocCopyModule = /** @class */ (function () {
392
524
  function TuiDocCopyModule() {
393
525
  }
394
- TuiDocCopyModule = __decorate([
395
- core.NgModule({
396
- imports: [common.CommonModule, core$1.TuiButtonModule],
397
- declarations: [TuiDocCopyComponent],
398
- exports: [TuiDocCopyComponent],
399
- })
400
- ], TuiDocCopyModule);
401
526
  return TuiDocCopyModule;
402
527
  }());
528
+ TuiDocCopyModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocCopyModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
529
+ TuiDocCopyModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocCopyModule, declarations: [TuiDocCopyComponent], imports: [i4.CommonModule, i1.TuiButtonModule], exports: [TuiDocCopyComponent] });
530
+ TuiDocCopyModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocCopyModule, imports: [[i4.CommonModule, i1.TuiButtonModule]] });
531
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocCopyModule, decorators: [{
532
+ type: i0.NgModule,
533
+ args: [{
534
+ imports: [i4.CommonModule, i1.TuiButtonModule],
535
+ declarations: [TuiDocCopyComponent],
536
+ exports: [TuiDocCopyComponent],
537
+ }]
538
+ }] });
403
539
 
404
540
  /**
405
541
  * TODO: think about reorganization in @taiga-ui/i18n way
@@ -408,8 +544,8 @@
408
544
  * Works with a tuple
409
545
  * [@string tuiMode tooltip content, @string word 'background', @string 'form value']
410
546
  */
411
- var TUI_DOC_DEMO_TEXTS = new core.InjectionToken('tui-doc-demo i18n texts', {
412
- factory: function () { return ['Read more more about modes: ', 'Background', 'Form value']; },
547
+ var TUI_DOC_DEMO_TEXTS = new i0.InjectionToken("tui-doc-demo i18n texts", {
548
+ factory: function () { return ["Read more more about modes: ", "Background", "Form value"]; },
413
549
  });
414
550
  /**
415
551
  * Works with a tuple
@@ -421,13 +557,13 @@
421
557
  * @string message for tooltip about ng-polymorpheus
422
558
  * ]
423
559
  */
424
- var TUI_DOC_DOCUMENTATION_TEXTS = new core.InjectionToken('tui-doc-documentation i18n texts', {
560
+ var TUI_DOC_DOCUMENTATION_TEXTS = new i0.InjectionToken("tui-doc-documentation i18n texts", {
425
561
  factory: function () { return [
426
- 'Argument',
427
- 'Type',
428
- 'Name and description',
429
- 'Value',
430
- 'Learn about our dynamic templates from ',
562
+ "Argument",
563
+ "Type",
564
+ "Name and description",
565
+ "Value",
566
+ "Learn about our dynamic templates from ",
431
567
  ]; },
432
568
  });
433
569
  /**
@@ -438,20 +574,20 @@
438
574
  * @string link to a sample copied message label
439
575
  * ]
440
576
  */
441
- var TUI_DOC_EXAMPLE_TEXTS = new core.InjectionToken('tui-doc-example i18n texts', {
442
- factory: function () { return ['Preview', 'Link to a sample was successfully copied', 'Done']; },
577
+ var TUI_DOC_EXAMPLE_TEXTS = new i0.InjectionToken("tui-doc-example i18n texts", {
578
+ factory: function () { return ["Preview", "Link to a sample was successfully copied", "Done"]; },
443
579
  });
444
- var TUI_DOC_MENU_TEXT = new core.InjectionToken('menu i18n text', {
445
- factory: function () { return 'Menu'; },
580
+ var TUI_DOC_MENU_TEXT = new i0.InjectionToken("menu i18n text", {
581
+ factory: function () { return "Menu"; },
446
582
  });
447
- var TUI_DOC_SEARCH_TEXT = new core.InjectionToken('search i18n text', {
448
- factory: function () { return 'Search'; },
583
+ var TUI_DOC_SEARCH_TEXT = new i0.InjectionToken("search i18n text", {
584
+ factory: function () { return "Search"; },
449
585
  });
450
- var TUI_DOC_SEE_ALSO_TEXT = new core.InjectionToken('tui-doc-see-also i18n text', {
451
- factory: function () { return 'See also'; },
586
+ var TUI_DOC_SEE_ALSO_TEXT = new i0.InjectionToken("tui-doc-see-also i18n text", {
587
+ factory: function () { return "See also"; },
452
588
  });
453
- var TUI_DOC_SOURCE_CODE_TEXT = new core.InjectionToken('tui-doc-source-code i18n text', {
454
- factory: function () { return 'Source code'; },
589
+ var TUI_DOC_SOURCE_CODE_TEXT = new i0.InjectionToken("tui-doc-source-code i18n text", {
590
+ factory: function () { return "Source code"; },
455
591
  });
456
592
 
457
593
  var MIN_COMPONENT_WIDTH = 104;
@@ -467,15 +603,15 @@
467
603
  this.wrapperWidth = 0;
468
604
  this.control = null;
469
605
  this.template = null;
470
- this.updateOnVariants = ['change', 'blur', 'submit'];
471
- this.updateOn = 'change';
606
+ this.updateOnVariants = ["change", "blur", "submit"];
607
+ this.updateOn = "change";
472
608
  this.expanded = false;
473
609
  this.opaque = true;
474
- this.modeControl = new forms.FormControl();
610
+ this.modeControl = new i5.FormControl();
475
611
  this.mode = null;
476
- this.change$ = new rxjs.Subject();
477
- this.items = ['onLight', 'onDark'];
478
- this.isBrowser = common.isPlatformBrowser(platformId);
612
+ this.change$ = new i8.Subject();
613
+ this.items = ["onLight", "onDark"];
614
+ this.isBrowser = i4.isPlatformBrowser(platformId);
479
615
  var parsedMode = locationRef.path().match(/tuiMode=(onDark|onLight)/);
480
616
  if (parsedMode !== null && parsedMode.length > 0) {
481
617
  this.modeControl.setValue(parsedMode[1]);
@@ -484,13 +620,12 @@
484
620
  .pipe(operators.startWith(this.modeControl.value), operators.takeUntil(this.destroy$))
485
621
  .subscribe(function (mode) {
486
622
  var urlTree = urlSerializer.parse(locationRef.path());
487
- urlTree.queryParams = __assign(__assign({}, urlTree.queryParams), { tuiMode: mode });
623
+ urlTree.queryParams = Object.assign(Object.assign({}, urlTree.queryParams), { tuiMode: mode });
488
624
  locationRef.go(String(urlTree));
489
625
  _this.mode = mode;
490
626
  _this.change$.next();
491
627
  });
492
628
  }
493
- TuiDocDemoComponent_1 = TuiDocDemoComponent;
494
629
  TuiDocDemoComponent.prototype.onResize = function () {
495
630
  this.setResizerTextContent();
496
631
  };
@@ -506,9 +641,9 @@
506
641
  }
507
642
  var paddingLeft = this.isBrowser
508
643
  ? getComputedStyle(this.content.nativeElement).paddingLeft
509
- : '0';
644
+ : "0";
510
645
  var offsetWidth = this.content.nativeElement.offsetWidth;
511
- this.resizerText.nativeElement.textContent = String(offsetWidth - parseInt(paddingLeft || '0', 10) * 2);
646
+ this.resizerText.nativeElement.textContent = String(offsetWidth - parseInt(paddingLeft || "0", 10) * 2);
512
647
  };
513
648
  TuiDocDemoComponent.prototype.onDragStart = function (event) {
514
649
  event.preventDefault();
@@ -535,99 +670,155 @@
535
670
  if (!control) {
536
671
  return;
537
672
  }
538
- this.testForm = new forms.FormGroup({ testValue: control }, { updateOn: updateOn });
673
+ this.testForm = new i5.FormGroup({ testValue: control }, { updateOn: updateOn });
539
674
  };
540
675
  TuiDocDemoComponent.prototype.resizeContent = function (delta) {
541
676
  if (!this.wrapper) {
542
677
  return;
543
678
  }
544
- this.renderer.setStyle(this.wrapper.nativeElement, 'width', cdk.px(Math.max(this.wrapperWidth - delta, MIN_COMPONENT_WIDTH)));
679
+ this.renderer.setStyle(this.wrapper.nativeElement, "width", i3.tuiPx(Math.max(this.wrapperWidth - delta, MIN_COMPONENT_WIDTH)));
545
680
  };
546
- var TuiDocDemoComponent_1;
547
- TuiDocDemoComponent.ctorParameters = function () { return [
548
- { type: Boolean, decorators: [{ type: core.Inject, args: [cdk.TUI_IS_MOBILE,] }] },
549
- { type: cdk.TuiDestroyService, decorators: [{ type: core.Inject, args: [cdk.TuiDestroyService,] }] },
550
- { type: core.Renderer2, decorators: [{ type: core.Inject, args: [core.Renderer2,] }] },
551
- { type: undefined, decorators: [{ type: core.Inject, args: [core.PLATFORM_ID,] }] },
552
- { type: common.Location, decorators: [{ type: core.Inject, args: [common.Location,] }] },
553
- { type: router.UrlSerializer, decorators: [{ type: core.Inject, args: [router.UrlSerializer,] }] },
554
- { type: Array, decorators: [{ type: core.Inject, args: [TUI_DOC_DEMO_TEXTS,] }] }
555
- ]; };
556
- __decorate([
557
- core.ViewChild('content')
558
- ], TuiDocDemoComponent.prototype, "content", void 0);
559
- __decorate([
560
- core.ViewChild('wrapper')
561
- ], TuiDocDemoComponent.prototype, "wrapper", void 0);
562
- __decorate([
563
- core.ViewChild('resizerText')
564
- ], TuiDocDemoComponent.prototype, "resizerText", void 0);
565
- __decorate([
566
- core.Input()
567
- ], TuiDocDemoComponent.prototype, "control", void 0);
568
- __decorate([
569
- core.ContentChild(core.TemplateRef)
570
- ], TuiDocDemoComponent.prototype, "template", void 0);
571
- __decorate([
572
- core.HostListener('window:resize')
573
- ], TuiDocDemoComponent.prototype, "onResize", null);
574
- TuiDocDemoComponent = TuiDocDemoComponent_1 = __decorate([
575
- core.Component({
576
- selector: 'tui-doc-demo',
577
- template: "<div\n class=\"t-bg-toggle\"\n [tuiMode]=\"null\"\n>\n <ng-template #tooltip>\n {{ texts[0] }}\n <a\n tuiLink\n tuiMode=\"onDark\"\n routerLink=\"/directives/mode\"\n >\n <code>tuiMode</code>\n </a>\n </ng-template>\n <ng-container *ngIf=\"isMobile; else desktop\">\n <tui-select\n tuiTextfieldSize=\"s\"\n class=\"t-mode\"\n [tuiTextfieldCleaner]=\"true\"\n [tuiHintContent]=\"tooltip\"\n [formControl]=\"modeControl\"\n >\n tuiMode\n <tui-data-list-wrapper\n *tuiDataList\n [items]=\"items\"\n ></tui-data-list-wrapper>\n </tui-select>\n </ng-container>\n <ng-template #desktop>\n tuiMode:\n <tui-tooltip\n describeId=\"form\"\n [content]=\"tooltip\"\n ></tui-tooltip>\n <div\n tuiGroup\n class=\"t-group\"\n [collapsed]=\"true\"\n >\n <tui-radio-block\n size=\"s\"\n nativeId=\"form\"\n class=\"tui-group__auto-width-item\"\n [item]=\"null\"\n [hideRadio]=\"true\"\n [formControl]=\"modeControl\"\n >\n null\n </tui-radio-block>\n <tui-radio-block\n item=\"onDark\"\n size=\"s\"\n nativeId=\"form\"\n class=\"tui-group__auto-width-item\"\n [hideRadio]=\"true\"\n [formControl]=\"modeControl\"\n >\n onDark\n </tui-radio-block>\n <tui-radio-block\n item=\"onLight\"\n size=\"s\"\n nativeId=\"form\"\n class=\"tui-group__auto-width-item\"\n [hideRadio]=\"true\"\n [formControl]=\"modeControl\"\n >\n onLight\n </tui-radio-block>\n </div>\n </ng-template>\n <tui-checkbox-labeled\n size=\"m\"\n class=\"t-checkbox\"\n [(ngModel)]=\"opaque\"\n >\n {{ texts[1] }}\n </tui-checkbox-labeled>\n</div>\n<div\n #wrapper\n class=\"t-wrapper\"\n [class.t-wrapper_dark]=\"modeControl.value === 'onDark'\"\n [class.t-wrapper_gray]=\"modeControl.value === 'onLight'\"\n [class.t-wrapper_transparent]=\"!opaque\"\n>\n <div\n #content\n id=\"demoContent\"\n class=\"t-content\"\n >\n <form\n *ngIf=\"testForm\"\n class=\"t-form\"\n [formGroup]=\"testForm\"\n >\n <div class=\"t-input-wrapper\">\n <ng-container [ngTemplateOutlet]=\"template\"></ng-container>\n </div>\n <button\n tuiButton\n type=\"button\"\n size=\"s\"\n class=\"t-button\"\n [iconRight]=\"icon\"\n (click)=\"toggleDetails()\"\n >\n {{ texts[2] }}\n </button>\n <ng-template #icon>\n <tui-svg\n src=\"tuiIconChevronDown\"\n class=\"t-icon\"\n [class.t-icon_rotated]=\"expanded\"\n ></tui-svg>\n </ng-template>\n <tui-expand\n class=\"t-expand\"\n [expanded]=\"expanded\"\n >\n <ng-template tuiExpandContent>\n <pre class=\"t-value\">Form data: {{ testForm.value | json }}</pre>\n <div\n tuiGroup\n class=\"t-form-controls\"\n >\n <tui-select\n tuiTextfieldSize=\"s\"\n class=\"t-select\"\n [ngModel]=\"updateOn\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"updateOnChange($event)\"\n >\n updateOn\n <tui-data-list-wrapper\n *tuiDataList\n [items]=\"updateOnVariants\"\n ></tui-data-list-wrapper>\n </tui-select>\n <button\n tuiButton\n type=\"reset\"\n size=\"s\"\n class=\"tui-group__auto-width-item\"\n >\n Reset\n </button>\n <button\n tuiButton\n type=\"submit\"\n size=\"s\"\n class=\"tui-group__auto-width-item\"\n >\n Submit\n </button>\n </div>\n </ng-template>\n </tui-expand>\n </form>\n <ng-content></ng-content>\n </div>\n <button\n tabindex=\"-1\"\n class=\"t-resizer\"\n (tuiDragStart)=\"onDragStart($event)\"\n (tuiDragContinues)=\"onDragContinues($event)\"\n (tuiDragEnd)=\"onDragEnd()\"\n >\n <span\n #resizerText\n class=\"t-resizer-text\"\n ></span>\n </button>\n</div>\n",
578
- changeDetection: core.ChangeDetectionStrategy.OnPush,
579
- providers: [
580
- cdk.TuiDestroyService,
581
- {
582
- provide: core$1.TuiModeDirective,
583
- useExisting: core.forwardRef(function () { return TuiDocDemoComponent_1; }),
584
- },
585
- ],
586
- styles: [":host{position:relative;display:block;min-width:100%;margin:1.5rem 0}.t-bg-toggle{position:absolute;bottom:calc(100% + .75rem);display:flex;align-items:center;justify-content:flex-end;pointer-events:none;width:100%}.t-bg-toggle>*{pointer-events:auto}.t-wrapper{box-shadow:0 .5rem 1rem rgba(0,0,0,.16);display:flex;border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m);max-width:100%;min-height:6rem;width:100%;background-color:var(--tui-base-01);overflow:hidden}.t-wrapper.t-wrapper_transparent{background-image:linear-gradient(45deg,var(--tui-base-02) 25%,transparent 25%),linear-gradient(-45deg,var(--tui-base-02) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--tui-base-02) 75%),linear-gradient(-45deg,transparent 75%,var(--tui-base-02) 75%);background-size:1.25rem 1.25rem;background-position:0 0,0 .625rem,.625rem -.625rem,-.625rem 0}.t-wrapper.t-wrapper_dark{background-color:#454e58;color:var(--tui-base-01)}.t-wrapper.t-wrapper_gray{background-color:#e5e7ea}.t-wrapper.t-wrapper_dark.t-wrapper_transparent{background-image:linear-gradient(45deg,var(--tui-focus) 25%,transparent 25%),linear-gradient(-45deg,var(--tui-focus) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--tui-focus) 75%),linear-gradient(-45deg,transparent 75%,var(--tui-focus) 75%)}.t-wrapper.t-wrapper_gray.t-wrapper_transparent{background-image:linear-gradient(45deg,var(--tui-base-05) 25%,transparent 25%),linear-gradient(-45deg,var(--tui-base-05) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--tui-base-05) 75%),linear-gradient(-45deg,transparent 75%,var(--tui-base-05) 75%)}:host-context(tui-root._mobile) .t-wrapper{min-height:auto}.t-content{flex:1 1 0;min-width:0;padding:1.5rem;box-sizing:border-box;overflow:hidden}:host-context(tui-root._mobile) .t-content{padding:1rem}.t-form{display:flex;flex-wrap:wrap;align-items:flex-start}.t-input-wrapper{width:100%;margin-bottom:.5rem}.t-expand{width:100%}.t-icon{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out}.t-icon_rotated{transform:rotate(180deg)}.t-value{flex:1;background:var(--tui-clear-inverse);padding:.75rem;border-radius:.25rem}.t-mode{width:12.5rem}.t-select{max-width:15rem}.t-resizer{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:0 0;font-size:inherit;line-height:inherit;box-shadow:0 .5rem 1rem rgba(0,0,0,.16);position:relative;width:3.5rem;min-height:inherit;flex-shrink:0;border-left:1px solid var(--tui-base-03);cursor:col-resize;outline:0;background:var(--tui-base-01);color:var(--tui-text-01)}.t-resizer:after,.t-resizer:before{content:'';position:absolute;top:.75rem;left:50%;bottom:.75rem;width:1px;background:var(--tui-base-05)}.t-resizer:before{transform:translateX(.125rem)}.t-resizer:after{transform:translateX(-.1875rem)}:host-context(tui-root._mobile) .t-resizer{display:none}.t-resizer-text{font:var(--tui-font-text-s);position:relative;z-index:1;padding:.75rem;background:var(--tui-base-01)}.wrapper_light .t-resizer-text{background:#3e464e}.t-checkbox,.t-group{margin-left:.75rem}.t-button,.t-form-controls{margin-top:.75rem}@supports ((position:-webkit-sticky) or (position:sticky)){@media screen and (min-height:37.5rem){:host{position:-webkit-sticky;position:sticky;top:4.625rem;z-index:2}}}"]
587
- }),
588
- __param(0, core.Inject(cdk.TUI_IS_MOBILE)),
589
- __param(1, core.Inject(cdk.TuiDestroyService)),
590
- __param(2, core.Inject(core.Renderer2)),
591
- __param(3, core.Inject(core.PLATFORM_ID)),
592
- __param(4, core.Inject(common.Location)),
593
- __param(5, core.Inject(router.UrlSerializer)),
594
- __param(6, core.Inject(TUI_DOC_DEMO_TEXTS))
595
- ], TuiDocDemoComponent);
596
681
  return TuiDocDemoComponent;
597
682
  }());
683
+ TuiDocDemoComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDemoComponent, deps: [{ token: i3.TUI_IS_MOBILE }, { token: i3.TuiDestroyService }, { token: i0.Renderer2 }, { token: i0.PLATFORM_ID }, { token: i4.Location }, { token: i5$1.UrlSerializer }, { token: TUI_DOC_DEMO_TEXTS }], target: i0__namespace.ɵɵFactoryTarget.Component });
684
+ TuiDocDemoComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiDocDemoComponent, selector: "tui-doc-demo", inputs: { control: "control" }, host: { listeners: { "window:resize": "onResize()" } }, providers: [
685
+ i3.TuiDestroyService,
686
+ {
687
+ provide: i1.TuiModeDirective,
688
+ useExisting: i0.forwardRef(function () { return TuiDocDemoComponent; }),
689
+ },
690
+ ], queries: [{ propertyName: "template", first: true, predicate: i0.TemplateRef, descendants: true }], viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true }, { propertyName: "wrapper", first: true, predicate: ["wrapper"], descendants: true }, { propertyName: "resizerText", first: true, predicate: ["resizerText"], descendants: true }], ngImport: i0__namespace, template: "<div\n class=\"t-bg-toggle\"\n [tuiMode]=\"null\"\n>\n <ng-template #tooltip>\n {{ texts[0] }}\n <a\n tuiLink\n tuiMode=\"onDark\"\n routerLink=\"/directives/mode\"\n >\n <code>tuiMode</code>\n </a>\n </ng-template>\n <ng-container *ngIf=\"isMobile; else desktop\">\n <tui-select\n tuiTextfieldSize=\"s\"\n class=\"t-mode\"\n [tuiTextfieldCleaner]=\"true\"\n [tuiHintContent]=\"tooltip\"\n [formControl]=\"modeControl\"\n >\n tuiMode\n <tui-data-list-wrapper\n *tuiDataList\n [items]=\"items\"\n ></tui-data-list-wrapper>\n </tui-select>\n </ng-container>\n <ng-template #desktop>\n tuiMode:\n <tui-tooltip\n describeId=\"form\"\n [content]=\"tooltip\"\n ></tui-tooltip>\n <div\n tuiGroup\n class=\"t-group\"\n [collapsed]=\"true\"\n >\n <tui-radio-block\n size=\"s\"\n nativeId=\"form\"\n class=\"tui-group__auto-width-item\"\n [item]=\"null\"\n [hideRadio]=\"true\"\n [formControl]=\"modeControl\"\n >\n null\n </tui-radio-block>\n <tui-radio-block\n item=\"onDark\"\n size=\"s\"\n nativeId=\"form\"\n class=\"tui-group__auto-width-item\"\n [hideRadio]=\"true\"\n [formControl]=\"modeControl\"\n >\n onDark\n </tui-radio-block>\n <tui-radio-block\n item=\"onLight\"\n size=\"s\"\n nativeId=\"form\"\n class=\"tui-group__auto-width-item\"\n [hideRadio]=\"true\"\n [formControl]=\"modeControl\"\n >\n onLight\n </tui-radio-block>\n </div>\n </ng-template>\n <tui-checkbox-labeled\n size=\"m\"\n class=\"t-checkbox\"\n [(ngModel)]=\"opaque\"\n >\n {{ texts[1] }}\n </tui-checkbox-labeled>\n</div>\n<div\n #wrapper\n class=\"t-wrapper\"\n [class.t-wrapper_dark]=\"modeControl.value === 'onDark'\"\n [class.t-wrapper_gray]=\"modeControl.value === 'onLight'\"\n [class.t-wrapper_transparent]=\"!opaque\"\n>\n <div\n #content\n id=\"demoContent\"\n class=\"t-content\"\n >\n <form\n *ngIf=\"testForm\"\n class=\"t-form\"\n [formGroup]=\"testForm\"\n >\n <div class=\"t-input-wrapper\">\n <ng-container [ngTemplateOutlet]=\"template\"></ng-container>\n </div>\n <button\n tuiButton\n type=\"button\"\n size=\"s\"\n class=\"t-button\"\n [iconRight]=\"icon\"\n (click)=\"toggleDetails()\"\n >\n {{ texts[2] }}\n </button>\n <ng-template #icon>\n <tui-svg\n src=\"tuiIconChevronDown\"\n class=\"t-icon\"\n [class.t-icon_rotated]=\"expanded\"\n ></tui-svg>\n </ng-template>\n <tui-expand\n class=\"t-expand\"\n [expanded]=\"expanded\"\n >\n <ng-template tuiExpandContent>\n <pre class=\"t-value\">Form data: {{ testForm.value | json }}</pre>\n <div\n tuiGroup\n class=\"t-form-controls\"\n >\n <tui-select\n tuiTextfieldSize=\"s\"\n class=\"t-select\"\n [ngModel]=\"updateOn\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"updateOnChange($event)\"\n >\n updateOn\n <tui-data-list-wrapper\n *tuiDataList\n [items]=\"updateOnVariants\"\n ></tui-data-list-wrapper>\n </tui-select>\n <button\n tuiButton\n type=\"reset\"\n size=\"s\"\n class=\"tui-group__auto-width-item\"\n >\n Reset\n </button>\n <button\n tuiButton\n type=\"submit\"\n size=\"s\"\n class=\"tui-group__auto-width-item\"\n >\n Submit\n </button>\n </div>\n </ng-template>\n </tui-expand>\n </form>\n <ng-content></ng-content>\n </div>\n <button\n tabindex=\"-1\"\n class=\"t-resizer\"\n (tuiDragStart)=\"onDragStart($event)\"\n (tuiDragContinues)=\"onDragContinues($event)\"\n (tuiDragEnd)=\"onDragEnd()\"\n >\n <span\n #resizerText\n class=\"t-resizer-text\"\n ></span>\n </button>\n</div>\n", styles: [":host{position:relative;display:block;min-width:100%;margin:1.5rem 0}.t-bg-toggle{position:absolute;bottom:calc(100% + .75rem);display:flex;align-items:center;justify-content:flex-end;pointer-events:none;width:100%}.t-bg-toggle>*{pointer-events:auto}.t-wrapper{box-shadow:0 .5rem 1rem rgba(0,0,0,.16);display:flex;border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m);max-width:100%;min-height:6rem;width:100%;background-color:var(--tui-base-01);overflow:hidden}.t-wrapper.t-wrapper_transparent{background-image:linear-gradient(45deg,var(--tui-base-02) 25%,transparent 25%),linear-gradient(-45deg,var(--tui-base-02) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--tui-base-02) 75%),linear-gradient(-45deg,transparent 75%,var(--tui-base-02) 75%);background-size:1.25rem 1.25rem;background-position:0 0,0 .625rem,.625rem -.625rem,-.625rem 0}.t-wrapper.t-wrapper_dark{background-color:#454e58;color:var(--tui-base-01)}.t-wrapper.t-wrapper_gray{background-color:#e5e7ea}.t-wrapper.t-wrapper_dark.t-wrapper_transparent{background-image:linear-gradient(45deg,var(--tui-focus) 25%,transparent 25%),linear-gradient(-45deg,var(--tui-focus) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--tui-focus) 75%),linear-gradient(-45deg,transparent 75%,var(--tui-focus) 75%)}.t-wrapper.t-wrapper_gray.t-wrapper_transparent{background-image:linear-gradient(45deg,var(--tui-base-05) 25%,transparent 25%),linear-gradient(-45deg,var(--tui-base-05) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--tui-base-05) 75%),linear-gradient(-45deg,transparent 75%,var(--tui-base-05) 75%)}:host-context(tui-root._mobile) .t-wrapper{min-height:auto}.t-content{flex:1 1 0;min-width:0;padding:1.5rem;box-sizing:border-box;overflow:hidden}:host-context(tui-root._mobile) .t-content{padding:1rem}.t-form{display:flex;flex-wrap:wrap;align-items:flex-start}.t-input-wrapper{width:100%;margin-bottom:.5rem}.t-expand{width:100%}.t-icon{transition-property:transform;transition-duration:.3s;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-icon_rotated{transform:rotate(180deg)}.t-value{flex:1;background:var(--tui-clear-inverse);padding:.75rem;border-radius:.25rem}.t-mode{width:12.5rem}.t-select{max-width:15rem}.t-resizer{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;box-shadow:0 .5rem 1rem rgba(0,0,0,.16);position:relative;width:3.5rem;min-height:inherit;flex-shrink:0;border-left:1px solid var(--tui-base-03);cursor:col-resize;outline:none;background:var(--tui-base-01);color:var(--tui-text-01)}.t-resizer:before,.t-resizer:after{content:\"\";position:absolute;top:.75rem;left:50%;bottom:.75rem;width:1px;background:var(--tui-base-05)}.t-resizer:before{transform:translate(.125rem)}.t-resizer:after{transform:translate(-.1875rem)}:host-context(tui-root._mobile) .t-resizer{display:none}.t-resizer-text{font:var(--tui-font-text-s);position:relative;z-index:1;padding:.75rem;background:var(--tui-base-01)}.wrapper_light .t-resizer-text{background:#3e464e}.t-group,.t-checkbox{margin-left:.75rem}.t-button,.t-form-controls{margin-top:.75rem}@supports ((position: -webkit-sticky) or (position: sticky)){@media screen and (min-height: 37.5rem){:host{position:-webkit-sticky;position:sticky;top:4.625rem;z-index:2}}}\n"], components: [{ type: i1__namespace.TuiLinkComponent, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo", "icon", "iconAlign", "iconRotated", "mode"], exportAs: ["tuiLink"] }, { type: i2__namespace$1.TuiSelectComponent, selector: "tui-select", inputs: ["stringify", "identityMatcher", "valueContent"] }, { type: i2__namespace$1.TuiDataListWrapperComponent, selector: "tui-data-list-wrapper:not([labels])", inputs: ["items"] }, { type: i1__namespace.TuiTooltipComponent, selector: "tui-tooltip", inputs: ["content", "mode", "direction", "showDelay", "hideDelay", "describeId"] }, { type: i2__namespace$1.TuiRadioBlockComponent, selector: "tui-radio-block", inputs: ["item", "identityMatcher", "contentAlign", "size", "hideRadio", "pseudoDisabled"] }, { type: i2__namespace$1.TuiCheckboxLabeledComponent, selector: "tui-checkbox-labeled", inputs: ["size"] }, { type: i1__namespace.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }, { type: i1__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i1__namespace.TuiExpandComponent, selector: "tui-expand", inputs: ["async", "expanded"] }], directives: [{ type: i1__namespace.TuiModeDirective, selector: "[tuiMode]", inputs: ["tuiMode"] }, { type: i5__namespace.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$1.TuiSelectDirective, selector: "tui-select" }, { type: i1__namespace.TuiTextfieldSizeDirective, selector: "[tuiTextfieldSize]", inputs: ["tuiTextfieldSize"] }, { type: i1__namespace.TuiTextfieldCleanerDirective, selector: "[tuiTextfieldCleaner]", inputs: ["tuiTextfieldCleaner"] }, { type: i1__namespace.TuiHintControllerDirective, selector: "[tuiHintContent]", inputs: ["tuiHintContent", "tuiHintDirection", "tuiHintMode", "tuiHintShowDelay", "tuiHintHideDelay"] }, { type: i5__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i1__namespace.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { type: i1__namespace.TuiGroupDirective, selector: "[tuiGroup]:not(ng-container)", inputs: ["orientation", "adaptive", "collapsed", "rounded", "size"] }, { type: i5__namespace$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i5__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i5__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i5__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i4__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1__namespace.TuiExpandContentDirective, selector: "[tuiExpandContent]" }, { type: i3__namespace.TuiDragDirective, selector: "[tuiDragStart], [tuiDragContinues], [tuiDragEnd]", outputs: ["tuiDragStart", "tuiDragContinues", "tuiDragEnd"] }], pipes: { "json": i4__namespace.JsonPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
691
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDemoComponent, decorators: [{
692
+ type: i0.Component,
693
+ args: [{
694
+ selector: "tui-doc-demo",
695
+ templateUrl: "./demo.template.html",
696
+ styleUrls: ["./demo.style.less"],
697
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
698
+ providers: [
699
+ i3.TuiDestroyService,
700
+ {
701
+ provide: i1.TuiModeDirective,
702
+ useExisting: i0.forwardRef(function () { return TuiDocDemoComponent; }),
703
+ },
704
+ ],
705
+ }]
706
+ }], ctorParameters: function () {
707
+ return [{ type: undefined, decorators: [{
708
+ type: i0.Inject,
709
+ args: [i3.TUI_IS_MOBILE]
710
+ }] }, { type: i3__namespace.TuiDestroyService, decorators: [{
711
+ type: i0.Inject,
712
+ args: [i3.TuiDestroyService]
713
+ }] }, { type: i0__namespace.Renderer2, decorators: [{
714
+ type: i0.Inject,
715
+ args: [i0.Renderer2]
716
+ }] }, { type: undefined, decorators: [{
717
+ type: i0.Inject,
718
+ args: [i0.PLATFORM_ID]
719
+ }] }, { type: i4__namespace.Location, decorators: [{
720
+ type: i0.Inject,
721
+ args: [i4.Location]
722
+ }] }, { type: i5__namespace.UrlSerializer, decorators: [{
723
+ type: i0.Inject,
724
+ args: [i5$1.UrlSerializer]
725
+ }] }, { type: undefined, decorators: [{
726
+ type: i0.Inject,
727
+ args: [TUI_DOC_DEMO_TEXTS]
728
+ }] }];
729
+ }, propDecorators: { content: [{
730
+ type: i0.ViewChild,
731
+ args: ["content"]
732
+ }], wrapper: [{
733
+ type: i0.ViewChild,
734
+ args: ["wrapper"]
735
+ }], resizerText: [{
736
+ type: i0.ViewChild,
737
+ args: ["resizerText"]
738
+ }], control: [{
739
+ type: i0.Input
740
+ }], template: [{
741
+ type: i0.ContentChild,
742
+ args: [i0.TemplateRef]
743
+ }], onResize: [{
744
+ type: i0.HostListener,
745
+ args: ["window:resize"]
746
+ }] } });
598
747
 
599
748
  var TuiDocDemoModule = /** @class */ (function () {
600
749
  function TuiDocDemoModule() {
601
750
  }
602
- TuiDocDemoModule = __decorate([
603
- core.NgModule({
604
- imports: [
605
- common.CommonModule,
606
- forms.ReactiveFormsModule,
607
- forms.FormsModule,
608
- router.RouterModule,
609
- core$1.TuiLinkModule,
610
- cdk.TuiDragModule,
611
- core$1.TuiButtonModule,
612
- kit.TuiSelectModule,
613
- core$1.TuiExpandModule,
614
- core$1.TuiGroupModule,
615
- core$1.TuiTooltipModule,
616
- core$1.TuiModeModule,
617
- kit.TuiRadioBlockModule,
618
- kit.TuiCheckboxLabeledModule,
619
- core$1.TuiSvgModule,
620
- kit.TuiDataListWrapperModule,
621
- core$1.TuiDataListModule,
622
- core$1.TuiTextfieldControllerModule,
623
- core$1.TuiHintControllerModule,
624
- ],
625
- declarations: [TuiDocDemoComponent],
626
- exports: [TuiDocDemoComponent],
627
- })
628
- ], TuiDocDemoModule);
629
751
  return TuiDocDemoModule;
630
752
  }());
753
+ TuiDocDemoModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDemoModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
754
+ TuiDocDemoModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDemoModule, declarations: [TuiDocDemoComponent], imports: [i4.CommonModule,
755
+ i5.ReactiveFormsModule,
756
+ i5.FormsModule,
757
+ i5$1.RouterModule,
758
+ i1.TuiLinkModule,
759
+ i3.TuiDragModule,
760
+ i1.TuiButtonModule,
761
+ i2$1.TuiSelectModule,
762
+ i1.TuiExpandModule,
763
+ i1.TuiGroupModule,
764
+ i1.TuiTooltipModule,
765
+ i1.TuiModeModule,
766
+ i2$1.TuiRadioBlockModule,
767
+ i2$1.TuiCheckboxLabeledModule,
768
+ i1.TuiSvgModule,
769
+ i2$1.TuiDataListWrapperModule,
770
+ i1.TuiDataListModule,
771
+ i1.TuiTextfieldControllerModule,
772
+ i1.TuiHintControllerModule], exports: [TuiDocDemoComponent] });
773
+ TuiDocDemoModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDemoModule, imports: [[
774
+ i4.CommonModule,
775
+ i5.ReactiveFormsModule,
776
+ i5.FormsModule,
777
+ i5$1.RouterModule,
778
+ i1.TuiLinkModule,
779
+ i3.TuiDragModule,
780
+ i1.TuiButtonModule,
781
+ i2$1.TuiSelectModule,
782
+ i1.TuiExpandModule,
783
+ i1.TuiGroupModule,
784
+ i1.TuiTooltipModule,
785
+ i1.TuiModeModule,
786
+ i2$1.TuiRadioBlockModule,
787
+ i2$1.TuiCheckboxLabeledModule,
788
+ i1.TuiSvgModule,
789
+ i2$1.TuiDataListWrapperModule,
790
+ i1.TuiDataListModule,
791
+ i1.TuiTextfieldControllerModule,
792
+ i1.TuiHintControllerModule,
793
+ ]] });
794
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDemoModule, decorators: [{
795
+ type: i0.NgModule,
796
+ args: [{
797
+ imports: [
798
+ i4.CommonModule,
799
+ i5.ReactiveFormsModule,
800
+ i5.FormsModule,
801
+ i5$1.RouterModule,
802
+ i1.TuiLinkModule,
803
+ i3.TuiDragModule,
804
+ i1.TuiButtonModule,
805
+ i2$1.TuiSelectModule,
806
+ i1.TuiExpandModule,
807
+ i1.TuiGroupModule,
808
+ i1.TuiTooltipModule,
809
+ i1.TuiModeModule,
810
+ i2$1.TuiRadioBlockModule,
811
+ i2$1.TuiCheckboxLabeledModule,
812
+ i1.TuiSvgModule,
813
+ i2$1.TuiDataListWrapperModule,
814
+ i1.TuiDataListModule,
815
+ i1.TuiTextfieldControllerModule,
816
+ i1.TuiHintControllerModule,
817
+ ],
818
+ declarations: [TuiDocDemoComponent],
819
+ exports: [TuiDocDemoComponent],
820
+ }]
821
+ }] });
631
822
 
632
823
  /**
633
824
  * TODO: duplicate, need fix it before v3
@@ -636,7 +827,7 @@
636
827
  */
637
828
  // eslint-disable-next-line @typescript-eslint/naming-convention
638
829
  function rgbToHex(r, g, b) {
639
- return "#" + [r, g, b].map(function (x) { return x.toString(16).padStart(2, '0'); }).join('');
830
+ return "#" + [r, g, b].map(function (x) { return x.toString(16).padStart(2, "0"); }).join("");
640
831
  }
641
832
  var tuiRgbToHex = rgbToHex;
642
833
  /**
@@ -645,10 +836,10 @@
645
836
  // eslint-disable-next-line @typescript-eslint/naming-convention
646
837
  function hexToRgb(hex) {
647
838
  var matches = hex
648
- .replace('#', '')
649
- .split('')
839
+ .replace("#", "")
840
+ .split("")
650
841
  .map(function (char, _, array) { return (array.length === 3 ? char + char : char); })
651
- .join('')
842
+ .join("")
652
843
  .match(/.{2}/g);
653
844
  return matches
654
845
  ? matches.map(function (x) { return Number.parseInt(x, 16); })
@@ -658,18 +849,18 @@
658
849
 
659
850
  function inspectArray(array, depth) {
660
851
  if (depth === 0) {
661
- return '[]';
852
+ return "[\u2026]";
662
853
  }
663
- var result = '';
854
+ var result = "";
664
855
  var first = true;
665
856
  for (var index = 0; index < array.length; index++) {
666
857
  if (first) {
667
858
  first = false;
668
859
  }
669
860
  else {
670
- result += ', ';
861
+ result += ", ";
671
862
  }
672
- result += index in array ? inspectAny(array[index], depth - 1) : 'empty';
863
+ result += index in array ? inspectAny(array[index], depth - 1) : "empty";
673
864
  }
674
865
  return "[" + result + "]";
675
866
  }
@@ -677,7 +868,7 @@
677
868
  if (depth === 0) {
678
869
  return "{\u2026}";
679
870
  }
680
- var result = '';
871
+ var result = "";
681
872
  var first = true;
682
873
  for (var key in object) {
683
874
  if (!object.hasOwnProperty(key)) {
@@ -687,7 +878,7 @@
687
878
  first = false;
688
879
  }
689
880
  else {
690
- result += ', ';
881
+ result += ", ";
691
882
  }
692
883
  result += key + ": " + inspectAny(object[key], depth - 1);
693
884
  }
@@ -703,15 +894,15 @@
703
894
  // eslint-disable-next-line @typescript-eslint/naming-convention
704
895
  function inspectAny(data, depth) {
705
896
  if (data === null) {
706
- return 'null';
897
+ return "null";
707
898
  }
708
899
  switch (typeof data) {
709
- case 'string':
900
+ case "string":
710
901
  return "'" + data + "'";
711
- case 'undefined':
712
- case 'number':
713
- case 'boolean':
714
- case 'function':
902
+ case "undefined":
903
+ case "number":
904
+ case "boolean":
905
+ case "function":
715
906
  return String(data);
716
907
  }
717
908
  if (data instanceof RegExp) {
@@ -734,7 +925,7 @@
734
925
  return null;
735
926
  }
736
927
  else if (isBooleanParamValue(prepared)) {
737
- return String(prepared) === 'true';
928
+ return String(prepared) === "true";
738
929
  }
739
930
  else if (isNumberParamValue(prepared)) {
740
931
  return Number(prepared);
@@ -751,10 +942,10 @@
751
942
  }
752
943
  var tuiCoerceValue = coerceValue;
753
944
  function isEmptyParamValue(value) {
754
- return ['undefined', 'null', 'NaN', 'Infinity'].includes(value);
945
+ return ["undefined", "null", "NaN", "Infinity"].includes(value);
755
946
  }
756
947
  function isBooleanParamValue(value) {
757
- return value === 'true' || value === 'false';
948
+ return value === "true" || value === "false";
758
949
  }
759
950
  function isNumberParamValue(value) {
760
951
  // TODO: investigate to disallow potentially catastrophic exponential-time regular expressions.
@@ -762,13 +953,13 @@
762
953
  return /^-?[\d.]+(?:e-?\d+)?$/.test(value);
763
954
  }
764
955
  function isPossibleArray(value) {
765
- return value.startsWith('[') && value.endsWith(']');
956
+ return value.startsWith("[") && value.endsWith("]");
766
957
  }
767
958
  function isPossibleObject(value) {
768
- return value.startsWith('{') && value.endsWith('}');
959
+ return value.startsWith("{") && value.endsWith("}");
769
960
  }
770
961
 
771
- var SERIALIZED_SUFFIX = '$';
962
+ var SERIALIZED_SUFFIX = "$";
772
963
  // @bad TODO: refactor output and value sync
773
964
  var TuiDocDocumentationPropertyConnectorDirective = /** @class */ (function () {
774
965
  function TuiDocDocumentationPropertyConnectorDirective(template, locationRef, activatedRoute, urlSerializer) {
@@ -776,14 +967,14 @@
776
967
  this.locationRef = locationRef;
777
968
  this.activatedRoute = activatedRoute;
778
969
  this.urlSerializer = urlSerializer;
779
- this.documentationPropertyName = '';
970
+ this.documentationPropertyName = "";
780
971
  this.documentationPropertyMode = null;
781
- this.documentationPropertyType = '';
972
+ this.documentationPropertyType = "";
782
973
  this.documentationPropertyDeprecated = false;
783
974
  this.documentationPropertyValues = null;
784
- this.documentationPropertyValueChange = new core.EventEmitter();
785
- this.changed$ = new rxjs.Subject();
786
- this.emits$ = new rxjs.BehaviorSubject(1);
975
+ this.documentationPropertyValueChange = new i0.EventEmitter();
976
+ this.changed$ = new i8.Subject();
977
+ this.emits$ = new i8.BehaviorSubject(1);
787
978
  }
788
979
  TuiDocDocumentationPropertyConnectorDirective.prototype.ngOnInit = function () {
789
980
  this.parseParams(this.activatedRoute.snapshot.queryParams);
@@ -791,31 +982,31 @@
791
982
  Object.defineProperty(TuiDocDocumentationPropertyConnectorDirective.prototype, "attrName", {
792
983
  get: function () {
793
984
  switch (this.documentationPropertyMode) {
794
- case 'input':
985
+ case "input":
795
986
  return "[" + this.documentationPropertyName + "]";
796
- case 'output':
987
+ case "output":
797
988
  return "(" + this.documentationPropertyName + ")";
798
- case 'input-output':
989
+ case "input-output":
799
990
  return "[(" + this.documentationPropertyName + ")]";
800
991
  default:
801
992
  return this.documentationPropertyName;
802
993
  }
803
994
  },
804
- enumerable: true,
995
+ enumerable: false,
805
996
  configurable: true
806
997
  });
807
998
  Object.defineProperty(TuiDocDocumentationPropertyConnectorDirective.prototype, "hasItems", {
808
999
  get: function () {
809
1000
  return !!this.documentationPropertyValues;
810
1001
  },
811
- enumerable: true,
1002
+ enumerable: false,
812
1003
  configurable: true
813
1004
  });
814
1005
  Object.defineProperty(TuiDocDocumentationPropertyConnectorDirective.prototype, "shouldShowValues", {
815
1006
  get: function () {
816
- return this.documentationPropertyMode !== 'output';
1007
+ return this.documentationPropertyMode !== "output";
817
1008
  },
818
- enumerable: true,
1009
+ enumerable: false,
819
1010
  configurable: true
820
1011
  });
821
1012
  TuiDocDocumentationPropertyConnectorDirective.prototype.ngOnChanges = function () {
@@ -849,50 +1040,86 @@
849
1040
  var computedValue = isValueAvailableByKey && this.documentationPropertyValues
850
1041
  ? this.documentationPropertyValues.indexOf(value)
851
1042
  : value;
852
- var suffix = isValueAvailableByKey ? SERIALIZED_SUFFIX : '';
1043
+ var suffix = isValueAvailableByKey ? SERIALIZED_SUFFIX : "";
853
1044
  var propName = this.documentationPropertyName + suffix;
854
- tree.queryParams = __assign(__assign({}, tree.queryParams), (_a = {}, _a[propName] = computedValue, _a));
1045
+ tree.queryParams = Object.assign(Object.assign({}, tree.queryParams), (_a = {}, _a[propName] = computedValue, _a));
855
1046
  this.locationRef.go(String(tree));
856
1047
  };
857
- TuiDocDocumentationPropertyConnectorDirective.ctorParameters = function () { return [
858
- { type: core.TemplateRef, decorators: [{ type: core.Inject, args: [core.TemplateRef,] }] },
859
- { type: common.Location, decorators: [{ type: core.Inject, args: [common.Location,] }] },
860
- { type: router.ActivatedRoute, decorators: [{ type: core.Inject, args: [router.ActivatedRoute,] }] },
861
- { type: router.UrlSerializer, decorators: [{ type: core.Inject, args: [router.UrlSerializer,] }] }
862
- ]; };
863
- __decorate([
864
- core.Input()
865
- ], TuiDocDocumentationPropertyConnectorDirective.prototype, "documentationPropertyName", void 0);
866
- __decorate([
867
- core.Input()
868
- ], TuiDocDocumentationPropertyConnectorDirective.prototype, "documentationPropertyMode", void 0);
869
- __decorate([
870
- core.Input()
871
- ], TuiDocDocumentationPropertyConnectorDirective.prototype, "documentationPropertyType", void 0);
872
- __decorate([
873
- core.Input()
874
- ], TuiDocDocumentationPropertyConnectorDirective.prototype, "documentationPropertyValue", void 0);
875
- __decorate([
876
- core.Input()
877
- ], TuiDocDocumentationPropertyConnectorDirective.prototype, "documentationPropertyDeprecated", void 0);
878
- __decorate([
879
- core.Input()
880
- ], TuiDocDocumentationPropertyConnectorDirective.prototype, "documentationPropertyValues", void 0);
881
- __decorate([
882
- core.Output()
883
- ], TuiDocDocumentationPropertyConnectorDirective.prototype, "documentationPropertyValueChange", void 0);
884
- TuiDocDocumentationPropertyConnectorDirective = __decorate([
885
- core.Directive({
886
- selector: 'ng-template[documentationPropertyName]',
887
- exportAs: 'documentationProperty',
888
- }),
889
- __param(0, core.Inject(core.TemplateRef)),
890
- __param(1, core.Inject(common.Location)),
891
- __param(2, core.Inject(router.ActivatedRoute)),
892
- __param(3, core.Inject(router.UrlSerializer))
893
- ], TuiDocDocumentationPropertyConnectorDirective);
894
1048
  return TuiDocDocumentationPropertyConnectorDirective;
895
1049
  }());
1050
+ TuiDocDocumentationPropertyConnectorDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDocumentationPropertyConnectorDirective, deps: [{ token: i0.TemplateRef }, { token: i4.Location }, { token: i5$1.ActivatedRoute }, { token: i5$1.UrlSerializer }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1051
+ TuiDocDocumentationPropertyConnectorDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiDocDocumentationPropertyConnectorDirective, selector: "ng-template[documentationPropertyName]", inputs: { documentationPropertyName: "documentationPropertyName", documentationPropertyMode: "documentationPropertyMode", documentationPropertyType: "documentationPropertyType", documentationPropertyValue: "documentationPropertyValue", documentationPropertyDeprecated: "documentationPropertyDeprecated", documentationPropertyValues: "documentationPropertyValues" }, outputs: { documentationPropertyValueChange: "documentationPropertyValueChange" }, exportAs: ["documentationProperty"], usesOnChanges: true, ngImport: i0__namespace });
1052
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDocumentationPropertyConnectorDirective, decorators: [{
1053
+ type: i0.Directive,
1054
+ args: [{
1055
+ selector: "ng-template[documentationPropertyName]",
1056
+ exportAs: "documentationProperty",
1057
+ }]
1058
+ }], ctorParameters: function () {
1059
+ return [{ type: i0__namespace.TemplateRef, decorators: [{
1060
+ type: i0.Inject,
1061
+ args: [i0.TemplateRef]
1062
+ }] }, { type: i4__namespace.Location, decorators: [{
1063
+ type: i0.Inject,
1064
+ args: [i4.Location]
1065
+ }] }, { type: i5__namespace.ActivatedRoute, decorators: [{
1066
+ type: i0.Inject,
1067
+ args: [i5$1.ActivatedRoute]
1068
+ }] }, { type: i5__namespace.UrlSerializer, decorators: [{
1069
+ type: i0.Inject,
1070
+ args: [i5$1.UrlSerializer]
1071
+ }] }];
1072
+ }, propDecorators: { documentationPropertyName: [{
1073
+ type: i0.Input
1074
+ }], documentationPropertyMode: [{
1075
+ type: i0.Input
1076
+ }], documentationPropertyType: [{
1077
+ type: i0.Input
1078
+ }], documentationPropertyValue: [{
1079
+ type: i0.Input
1080
+ }], documentationPropertyDeprecated: [{
1081
+ type: i0.Input
1082
+ }], documentationPropertyValues: [{
1083
+ type: i0.Input
1084
+ }], documentationPropertyValueChange: [{
1085
+ type: i0.Output
1086
+ }] } });
1087
+
1088
+ var TuiInputOpacityDirective = /** @class */ (function () {
1089
+ function TuiInputOpacityDirective(renderer, tuiFocusableComponent) {
1090
+ this.renderer = renderer;
1091
+ this.tuiFocusableComponent = tuiFocusableComponent;
1092
+ }
1093
+ Object.defineProperty(TuiInputOpacityDirective.prototype, "tuiInputOpacity", {
1094
+ set: function (opacity) {
1095
+ var nativeFocusableElement = this.tuiFocusableComponent.nativeFocusableElement;
1096
+ if (nativeFocusableElement) {
1097
+ this.renderer.setStyle(nativeFocusableElement, "opacity", opacity / 100);
1098
+ }
1099
+ },
1100
+ enumerable: false,
1101
+ configurable: true
1102
+ });
1103
+ return TuiInputOpacityDirective;
1104
+ }());
1105
+ TuiInputOpacityDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiInputOpacityDirective, deps: [{ token: i0.Renderer2 }, { token: i3.TUI_FOCUSABLE_ITEM_ACCESSOR }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1106
+ TuiInputOpacityDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiInputOpacityDirective, selector: "[tuiInputOpacity]", inputs: { tuiInputOpacity: "tuiInputOpacity" }, ngImport: i0__namespace });
1107
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiInputOpacityDirective, decorators: [{
1108
+ type: i0.Directive,
1109
+ args: [{
1110
+ selector: "[tuiInputOpacity]",
1111
+ }]
1112
+ }], ctorParameters: function () {
1113
+ return [{ type: i0__namespace.Renderer2, decorators: [{
1114
+ type: i0.Inject,
1115
+ args: [i0.Renderer2]
1116
+ }] }, { type: undefined, decorators: [{
1117
+ type: i0.Inject,
1118
+ args: [i3.TUI_FOCUSABLE_ITEM_ACCESSOR]
1119
+ }] }];
1120
+ }, propDecorators: { tuiInputOpacity: [{
1121
+ type: i0.Input
1122
+ }] } });
896
1123
 
897
1124
  // @bad TODO subscribe propertiesConnectors changes
898
1125
  // @bad TODO refactor to make more flexible
@@ -901,223 +1128,245 @@
901
1128
  function TuiDocDocumentationComponent(changeDetectorRef, texts) {
902
1129
  this.changeDetectorRef = changeDetectorRef;
903
1130
  this.texts = texts;
904
- this.heading = '';
1131
+ this.heading = "";
905
1132
  this.showValues = true;
906
1133
  this.isAPI = false;
907
- this.propertiesConnectors = cdk.EMPTY_QUERY;
1134
+ this.propertiesConnectors = i3.EMPTY_QUERY;
908
1135
  this.activeItemIndex = 0;
909
1136
  }
910
1137
  TuiDocDocumentationComponent.prototype.ngAfterContentInit = function () {
911
- cdk.itemsQueryListObservable(this.propertiesConnectors)
912
- .pipe(operators.switchMap(function (items) { return rxjs.merge.apply(void 0, __spread(items.map(function (_a) {
1138
+ i3.itemsQueryListObservable(this.propertiesConnectors)
1139
+ .pipe(operators.switchMap(function (items) { return i8.merge.apply(void 0, __spreadArray([], __read(items.map(function (_a) {
913
1140
  var changed$ = _a.changed$;
914
1141
  return changed$;
915
- }))); }), cdk.watch(this.changeDetectorRef))
1142
+ })))); }), i3.watch(this.changeDetectorRef))
916
1143
  .subscribe();
917
1144
  };
918
1145
  Object.defineProperty(TuiDocDocumentationComponent.prototype, "type", {
919
1146
  get: function () {
920
1147
  return this.isAPI ? this.texts[0] : this.texts[1];
921
1148
  },
922
- enumerable: true,
1149
+ enumerable: false,
923
1150
  configurable: true
924
1151
  });
925
1152
  TuiDocDocumentationComponent.prototype.getColor = function (color) {
926
1153
  if (color.length === 4) {
927
1154
  return color
928
- .split('')
929
- .reduce(function (result, current) { return __spread(result, [current, current]); }, [])
930
- .join('')
931
- .replace('#', '');
1155
+ .split("")
1156
+ .reduce(function (result, current) { return __spreadArray(__spreadArray([], __read(result)), [current, current]); }, [])
1157
+ .join("")
1158
+ .replace("#", "");
932
1159
  }
933
- if (color.startsWith('#')) {
1160
+ if (color.startsWith("#")) {
934
1161
  return color;
935
1162
  }
936
- if (color === 'transparent') {
937
- return '#000000';
1163
+ if (color === "transparent") {
1164
+ return "#000000";
938
1165
  }
939
1166
  var parsed = color
940
- .replace('rgb(', '')
941
- .replace('rgba(', '')
942
- .replace(')', '')
943
- .replace(' ', '')
944
- .split(',')
1167
+ .replace("rgb(", "")
1168
+ .replace("rgba(", "")
1169
+ .replace(")", "")
1170
+ .replace(" ", "")
1171
+ .split(",")
945
1172
  .map(function (v) { return Number.parseInt(v, 10); });
946
- return rgbToHex.apply(void 0, __spread(parsed));
1173
+ return rgbToHex.apply(void 0, __spreadArray([], __read(parsed)));
947
1174
  };
948
1175
  TuiDocDocumentationComponent.prototype.getOpacity = function (color) {
949
- if (color.startsWith('#') || color.startsWith('rgb(')) {
1176
+ if (color.startsWith("#") || color.startsWith("rgb(")) {
950
1177
  return 100;
951
1178
  }
952
- if (color === 'transparent') {
1179
+ if (color === "transparent") {
953
1180
  return 0;
954
1181
  }
955
- var lastComma = color.lastIndexOf(',');
1182
+ var lastComma = color.lastIndexOf(",");
956
1183
  var parsed = color
957
1184
  .slice(lastComma)
958
- .replace(')', '')
959
- .replace(' ', '')
960
- .replace(',', '');
1185
+ .replace(")", "")
1186
+ .replace(" ", "")
1187
+ .replace(",", "");
961
1188
  return Math.round(Number.parseFloat(parsed) * 100);
962
1189
  };
963
1190
  TuiDocDocumentationComponent.prototype.onColorChange = function (connector, color) {
964
- var opacity = this.getOpacity(connector.documentationPropertyValue || '');
1191
+ var opacity = this.getOpacity(connector.documentationPropertyValue || "");
965
1192
  if (opacity === 100) {
966
1193
  connector.onValueChange(color);
967
1194
  return;
968
1195
  }
969
- var rgb = hexToRgb(color).join(', ');
1196
+ var rgb = hexToRgb(color).join(", ");
970
1197
  var result = "rgba(" + rgb + ", " + opacity / 100 + ")";
971
1198
  connector.onValueChange(result);
972
1199
  };
973
1200
  TuiDocDocumentationComponent.prototype.onOpacityChange = function (connector, opacity) {
974
- var hex = this.getColor(connector.documentationPropertyValue || '');
1201
+ var hex = this.getColor(connector.documentationPropertyValue || "");
975
1202
  var rgb = hexToRgb(hex);
976
1203
  var result = "rgba(" + rgb + ", " + opacity / 100 + ")";
977
1204
  connector.onValueChange(result);
978
1205
  };
979
1206
  TuiDocDocumentationComponent.prototype.stripOptional = function (name) {
980
- return name.replace('?', '');
1207
+ return name.replace("?", "");
981
1208
  };
982
1209
  TuiDocDocumentationComponent.prototype.isOptional = function (name) {
983
- return name.includes('?');
1210
+ return name.includes("?");
984
1211
  };
985
1212
  TuiDocDocumentationComponent.prototype.isPrimitivePolymorpheusContent = function (value) {
986
- return typeof value === 'string' || typeof value === 'number';
1213
+ return i3.tuiIsString(value) || i3.tuiIsNumber(value);
987
1214
  };
988
1215
  TuiDocDocumentationComponent.prototype.showCleaner = function (type) {
989
- return type.includes('null');
1216
+ return type.includes("null");
990
1217
  };
991
1218
  TuiDocDocumentationComponent.prototype.showContentTooltip = function (type) {
992
- return type.includes('PolymorpheusContent');
1219
+ return type.includes("PolymorpheusContent");
993
1220
  };
994
1221
  TuiDocDocumentationComponent.prototype.inspectAny = function (data) {
995
1222
  return inspectAny(data, 2);
996
1223
  };
997
- TuiDocDocumentationComponent.ctorParameters = function () { return [
998
- { type: core.ChangeDetectorRef, decorators: [{ type: core.Inject, args: [core.ChangeDetectorRef,] }] },
999
- { type: Array, decorators: [{ type: core.Inject, args: [TUI_DOC_DOCUMENTATION_TEXTS,] }] }
1000
- ]; };
1001
- __decorate([
1002
- core.Input()
1003
- ], TuiDocDocumentationComponent.prototype, "heading", void 0);
1004
- __decorate([
1005
- core.Input()
1006
- ], TuiDocDocumentationComponent.prototype, "showValues", void 0);
1007
- __decorate([
1008
- core.Input()
1009
- ], TuiDocDocumentationComponent.prototype, "isAPI", void 0);
1010
- __decorate([
1011
- core.ContentChildren(TuiDocDocumentationPropertyConnectorDirective)
1012
- ], TuiDocDocumentationComponent.prototype, "propertiesConnectors", void 0);
1013
- TuiDocDocumentationComponent = __decorate([
1014
- core.Component({
1015
- selector: 'tui-doc-documentation',
1016
- template: "<h1\n *ngIf=\"heading\"\n class=\"t-heading\"\n>\n {{ heading }}\n</h1>\n<ng-content></ng-content>\n<table class=\"t-table\">\n <tr class=\"t-row t-row_header\">\n <th class=\"t-th t-cell t-cell_prop\">{{ texts[2] }}</th>\n <th class=\"t-th\">{{ type }}</th>\n <th\n *ngIf=\"showValues && !isAPI\"\n class=\"t-th t-cell t-cell_value\"\n >\n {{ texts[3] }}\n </th>\n </tr>\n <tr\n *ngFor=\"let propertyConnector of propertiesConnectors\"\n class=\"t-row\"\n [class.t-deprecated]=\"propertyConnector.documentationPropertyDeprecated\"\n >\n <td class=\"t-cell\">\n <div\n automation-id=\"tui-documentation__property-name\"\n class=\"t-property\"\n >\n {{ stripOptional(propertyConnector.attrName) }}\n <tui-badge\n *ngIf=\"isOptional(propertyConnector.attrName)\"\n size=\"s\"\n value=\"Optional\"\n ></tui-badge>\n </div>\n <span\n *ngIf=\"propertyConnector.documentationPropertyDeprecated\"\n class=\"t-deprecated-label\"\n >\n deprecated\n </span>\n <ng-container [ngTemplateOutlet]=\"propertyConnector.template\"></ng-container>\n </td>\n <td class=\"t-cell\">\n <span class=\"type\">\n {{ propertyConnector.documentationPropertyType }}\n <tui-tooltip\n *ngIf=\"showContentTooltip(propertyConnector.documentationPropertyType)\"\n [describeId]=\"propertyConnector.attrName\"\n [content]=\"content\"\n >\n <ng-template #content>\n {{ texts[4] }}\n <a\n tuiLink\n tuiMode=\"onDark\"\n target=\"_blank\"\n href=\"https://github.com/tinkoff/ng-polymorpheus\"\n >\n <code>ng-polymorpheus</code>\n </a>\n </ng-template>\n </tui-tooltip>\n </span>\n </td>\n <td\n *ngIf=\"showValues\"\n class=\"t-cell\"\n >\n <ng-container *ngIf=\"propertyConnector.shouldShowValues; else elseEmitter\">\n <tui-select\n *ngIf=\"propertyConnector.hasItems; else noItems\"\n tuiTextfieldSize=\"m\"\n tuiDropdownLimitWidth=\"min\"\n [tuiTextfieldCleaner]=\"showCleaner(propertyConnector.documentationPropertyType)\"\n [tuiTextfieldLabelOutside]=\"true\"\n [nativeId]=\"propertyConnector.attrName\"\n [valueContent]=\"selectContent\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n >\n <code class=\"t-exception\">null</code>\n <tui-data-list-wrapper\n *tuiDataList\n [items]=\"propertyConnector.documentationPropertyValues\"\n [itemContent]=\"selectContent\"\n ></tui-data-list-wrapper>\n </tui-select>\n <ng-template\n #selectContent\n let-data\n >\n <code>{{ inspectAny(data) }}</code>\n </ng-template>\n\n <ng-template #noItems>\n <ng-container [ngSwitch]=\"propertyConnector.documentationPropertyType\">\n <tui-toggle\n *ngSwitchCase=\"'boolean'\"\n size=\"l\"\n [nativeId]=\"propertyConnector.attrName\"\n [showIcons]=\"true\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-toggle>\n\n <tui-primitive-textfield\n *ngSwitchCase=\"'string'\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiTextfieldCleaner]=\"true\"\n [value]=\"propertyConnector.documentationPropertyValue || ''\"\n (valueChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-primitive-textfield>\n\n <div\n *ngSwitchCase=\"'color'\"\n tuiGroup\n >\n <tui-primitive-textfield\n tuiTextfieldType=\"text\"\n tuiTextfieldSize=\"m\"\n [attr.id]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiInputOpacity]=\"getOpacity(propertyConnector.documentationPropertyValue)\"\n [value]=\"getColor(propertyConnector.documentationPropertyValue)\"\n (valueChange)=\"onColorChange(propertyConnector, $event)\"\n ></tui-primitive-textfield>\n <tui-input-count\n tuiTextfieldSize=\"m\"\n [max]=\"100\"\n [ngModel]=\"getOpacity(propertyConnector.documentationPropertyValue)\"\n (ngModelChange)=\"onOpacityChange(propertyConnector, $event)\"\n >\n Opacity\n </tui-input-count>\n </div>\n\n <tui-input-count\n *ngSwitchCase=\"'number'\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-input-count>\n\n <ng-container *ngSwitchCase=\"'PolymorpheusContent'\">\n <tui-primitive-textfield\n *ngIf=\"isPrimitivePolymorpheusContent(propertyConnector.documentationPropertyValue)\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiTextfieldCleaner]=\"true\"\n [value]=\"propertyConnector.documentationPropertyValue.toString()\"\n (valueChange)=\"propertyConnector.onValueChange($event)\"\n >\n Default content\n </tui-primitive-textfield>\n </ng-container>\n </ng-container>\n </ng-template>\n </ng-container>\n\n <ng-template #elseEmitter>\n <tui-notification\n class=\"t-output\"\n [@emitEvent]=\"propertyConnector.emits$ | async\"\n >\n Emit!\n </tui-notification>\n </ng-template>\n </td>\n </tr>\n</table>\n",
1017
- changeDetection: core.ChangeDetectionStrategy.OnPush,
1018
- animations: [
1019
- animations.trigger('emitEvent', [
1020
- animations.transition(':increment', [animations.style({ opacity: 1 }), animations.animate('500ms ease-in')]),
1021
- ]),
1022
- ],
1023
- styles: [":host{display:block;min-width:100%}.t-table{width:100%;table-layout:fixed}.t-row:not(:last-child){border-bottom:1px solid var(--tui-base-03)}:host-context(tui-root._mobile) .t-row{display:flex;flex-wrap:wrap}:host-context(tui-root._mobile) .t-row_header{display:none}.t-cell{padding:1rem 1rem .875rem}.t-cell:first-child{padding-left:0}.t-cell:last-child{padding-right:0;text-align:right}.t-cell_prop{width:40%}.t-cell_value{max-width:20rem}:host-context(tui-root._mobile) .t-cell_value{width:9.375rem}:host-context(tui-root._mobile) .t-cell{width:100%;height:auto;padding:.5rem 0;text-align:left}.t-th{padding:.5rem 1rem;color:var(--tui-text-02);font-weight:400;text-align:left}.t-property{font:var(--tui-font-text-m);margin-bottom:.25rem;font-family:monospace;color:#8f75d1}:host-context(tui-root._mobile) .t-property{padding:.5rem 0}.t-type{font-family:monospace}.t-deprecated{background-color:var(--tui-error-bg);box-shadow:-1rem 0 var(--tui-error-bg),1rem 0 var(--tui-error-bg)}.t-deprecated-label{margin-right:.125rem;color:var(--tui-error-fill)}.t-exception{display:block;width:-webkit-max-content;width:-moz-max-content;width:max-content}.t-output{text-align:left;opacity:0}.t-heading{font:var(--tui-font-heading-4)}"]
1024
- }),
1025
- __param(0, core.Inject(core.ChangeDetectorRef)),
1026
- __param(1, core.Inject(TUI_DOC_DOCUMENTATION_TEXTS))
1027
- ], TuiDocDocumentationComponent);
1028
1224
  return TuiDocDocumentationComponent;
1029
1225
  }());
1030
-
1031
- var TuiInputOpacityDirective = /** @class */ (function () {
1032
- function TuiInputOpacityDirective(renderer, tuiFocusableComponent) {
1033
- this.renderer = renderer;
1034
- this.tuiFocusableComponent = tuiFocusableComponent;
1035
- }
1036
- Object.defineProperty(TuiInputOpacityDirective.prototype, "tuiInputOpacity", {
1037
- set: function (opacity) {
1038
- var nativeFocusableElement = this.tuiFocusableComponent.nativeFocusableElement;
1039
- if (nativeFocusableElement) {
1040
- this.renderer.setStyle(nativeFocusableElement, 'opacity', opacity / 100);
1041
- }
1042
- },
1043
- enumerable: true,
1044
- configurable: true
1045
- });
1046
- TuiInputOpacityDirective.ctorParameters = function () { return [
1047
- { type: core.Renderer2, decorators: [{ type: core.Inject, args: [core.Renderer2,] }] },
1048
- { type: undefined, decorators: [{ type: core.Inject, args: [cdk.TUI_FOCUSABLE_ITEM_ACCESSOR,] }] }
1049
- ]; };
1050
- __decorate([
1051
- core.Input()
1052
- ], TuiInputOpacityDirective.prototype, "tuiInputOpacity", null);
1053
- TuiInputOpacityDirective = __decorate([
1054
- core.Directive({
1055
- selector: '[tuiInputOpacity]',
1056
- }),
1057
- __param(0, core.Inject(core.Renderer2)),
1058
- __param(1, core.Inject(cdk.TUI_FOCUSABLE_ITEM_ACCESSOR))
1059
- ], TuiInputOpacityDirective);
1060
- return TuiInputOpacityDirective;
1061
- }());
1226
+ TuiDocDocumentationComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDocumentationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: TUI_DOC_DOCUMENTATION_TEXTS }], target: i0__namespace.ɵɵFactoryTarget.Component });
1227
+ TuiDocDocumentationComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiDocDocumentationComponent, selector: "tui-doc-documentation", inputs: { heading: "heading", showValues: "showValues", isAPI: "isAPI" }, queries: [{ propertyName: "propertiesConnectors", predicate: TuiDocDocumentationPropertyConnectorDirective }], ngImport: i0__namespace, template: "<h1\n *ngIf=\"heading\"\n class=\"t-heading\"\n>\n {{ heading }}\n</h1>\n<ng-content></ng-content>\n<table class=\"t-table\">\n <tr class=\"t-row t-row_header\">\n <th class=\"t-th t-cell t-cell_prop\">{{ texts[2] }}</th>\n <th class=\"t-th\">{{ type }}</th>\n <th\n *ngIf=\"showValues && !isAPI\"\n class=\"t-th t-cell t-cell_value\"\n >\n {{ texts[3] }}\n </th>\n </tr>\n <tr\n *ngFor=\"let propertyConnector of propertiesConnectors\"\n class=\"t-row\"\n [class.t-deprecated]=\"propertyConnector.documentationPropertyDeprecated\"\n >\n <td class=\"t-cell\">\n <div\n automation-id=\"tui-documentation__property-name\"\n class=\"t-property\"\n >\n {{ stripOptional(propertyConnector.attrName) }}\n <tui-badge\n *ngIf=\"isOptional(propertyConnector.attrName)\"\n size=\"s\"\n value=\"Optional\"\n ></tui-badge>\n </div>\n <span\n *ngIf=\"propertyConnector.documentationPropertyDeprecated\"\n class=\"t-deprecated-label\"\n >\n deprecated\n </span>\n <ng-container [ngTemplateOutlet]=\"propertyConnector.template\"></ng-container>\n </td>\n <td class=\"t-cell\">\n <span class=\"type\">\n {{ propertyConnector.documentationPropertyType }}\n <tui-tooltip\n *ngIf=\"showContentTooltip(propertyConnector.documentationPropertyType)\"\n [describeId]=\"propertyConnector.attrName\"\n [content]=\"content\"\n >\n <ng-template #content>\n {{ texts[4] }}\n <a\n tuiLink\n tuiMode=\"onDark\"\n target=\"_blank\"\n href=\"https://github.com/tinkoff/ng-polymorpheus\"\n >\n <code>ng-polymorpheus</code>\n </a>\n </ng-template>\n </tui-tooltip>\n </span>\n </td>\n <td\n *ngIf=\"showValues\"\n class=\"t-cell\"\n >\n <ng-container *ngIf=\"propertyConnector.shouldShowValues; else elseEmitter\">\n <tui-select\n *ngIf=\"propertyConnector.hasItems; else noItems\"\n tuiTextfieldSize=\"m\"\n tuiDropdownLimitWidth=\"min\"\n [tuiTextfieldCleaner]=\"showCleaner(propertyConnector.documentationPropertyType)\"\n [tuiTextfieldLabelOutside]=\"true\"\n [nativeId]=\"propertyConnector.attrName\"\n [valueContent]=\"selectContent\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n >\n <code class=\"t-exception\">null</code>\n <tui-data-list-wrapper\n *tuiDataList\n [items]=\"propertyConnector.documentationPropertyValues\"\n [itemContent]=\"selectContent\"\n ></tui-data-list-wrapper>\n </tui-select>\n <ng-template\n #selectContent\n let-data\n >\n <code>{{ inspectAny(data) }}</code>\n </ng-template>\n\n <ng-template #noItems>\n <ng-container [ngSwitch]=\"propertyConnector.documentationPropertyType\">\n <tui-toggle\n *ngSwitchCase=\"'boolean'\"\n size=\"l\"\n [nativeId]=\"propertyConnector.attrName\"\n [showIcons]=\"true\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-toggle>\n\n <tui-primitive-textfield\n *ngSwitchCase=\"'string'\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiTextfieldCleaner]=\"true\"\n [value]=\"propertyConnector.documentationPropertyValue || ''\"\n (valueChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-primitive-textfield>\n\n <div\n *ngSwitchCase=\"'color'\"\n tuiGroup\n >\n <tui-primitive-textfield\n tuiTextfieldType=\"text\"\n tuiTextfieldSize=\"m\"\n [attr.id]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiInputOpacity]=\"getOpacity(propertyConnector.documentationPropertyValue)\"\n [value]=\"getColor(propertyConnector.documentationPropertyValue)\"\n (valueChange)=\"onColorChange(propertyConnector, $event)\"\n ></tui-primitive-textfield>\n <tui-input-count\n tuiTextfieldSize=\"m\"\n [max]=\"100\"\n [ngModel]=\"getOpacity(propertyConnector.documentationPropertyValue)\"\n (ngModelChange)=\"onOpacityChange(propertyConnector, $event)\"\n >\n Opacity\n </tui-input-count>\n </div>\n\n <tui-input-count\n *ngSwitchCase=\"'number'\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-input-count>\n\n <ng-container *ngSwitchCase=\"'PolymorpheusContent'\">\n <tui-primitive-textfield\n *ngIf=\"isPrimitivePolymorpheusContent(propertyConnector.documentationPropertyValue)\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiTextfieldCleaner]=\"true\"\n [value]=\"propertyConnector.documentationPropertyValue.toString()\"\n (valueChange)=\"propertyConnector.onValueChange($event)\"\n >\n Default content\n </tui-primitive-textfield>\n </ng-container>\n </ng-container>\n </ng-template>\n </ng-container>\n\n <ng-template #elseEmitter>\n <tui-notification\n class=\"t-output\"\n [@emitEvent]=\"propertyConnector.emits$ | async\"\n >\n Emit!\n </tui-notification>\n </ng-template>\n </td>\n </tr>\n</table>\n", styles: [":host{display:block;min-width:100%}.t-table{width:100%;table-layout:fixed}.t-row:not(:last-child){border-bottom:1px solid var(--tui-base-03)}:host-context(tui-root._mobile) .t-row{display:flex;flex-wrap:wrap}:host-context(tui-root._mobile) .t-row_header{display:none}.t-cell{padding:1rem 1rem .875rem}.t-cell:first-child{padding-left:0}.t-cell:last-child{padding-right:0;text-align:right}.t-cell_prop{width:40%}.t-cell_value{max-width:20rem}:host-context(tui-root._mobile) .t-cell_value{width:9.375rem}:host-context(tui-root._mobile) .t-cell{width:100%;height:auto;padding:.5rem 0;text-align:left}.t-th{padding:.5rem 1rem;color:var(--tui-text-02);font-weight:normal;text-align:left}.t-property{font:var(--tui-font-text-m);margin-bottom:.25rem;font-family:monospace;color:#8f75d1}:host-context(tui-root._mobile) .t-property{padding:.5rem 0}.t-type{font-family:monospace}.t-deprecated{background-color:var(--tui-error-bg);box-shadow:-1rem 0 var(--tui-error-bg),1rem 0 var(--tui-error-bg)}.t-deprecated-label{margin-right:.125rem;color:var(--tui-error-fill)}.t-exception{display:block;width:-webkit-max-content;width:-moz-max-content;width:max-content}.t-output{text-align:left;opacity:0}.t-heading{font:var(--tui-font-heading-4)}\n"], components: [{ type: i2__namespace$1.TuiBadgeComponent, selector: "tui-badge", inputs: ["value", "size", "status", "hoverable"] }, { type: i1__namespace.TuiTooltipComponent, selector: "tui-tooltip", inputs: ["content", "mode", "direction", "showDelay", "hideDelay", "describeId"] }, { type: i1__namespace.TuiLinkComponent, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo", "icon", "iconAlign", "iconRotated", "mode"], exportAs: ["tuiLink"] }, { type: i2__namespace$1.TuiSelectComponent, selector: "tui-select", inputs: ["stringify", "identityMatcher", "valueContent"] }, { type: i2__namespace$1.TuiDataListWrapperComponent, selector: "tui-data-list-wrapper:not([labels])", inputs: ["items"] }, { type: i2__namespace$1.TuiToggleComponent, selector: "tui-toggle", inputs: ["singleColor", "showIcons", "showLoader", "size"] }, { type: i1__namespace.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { type: i2__namespace$1.TuiInputCountComponent, selector: "tui-input-count", inputs: ["step", "min", "max", "hideButtons", "prefix", "postfix"] }, { type: i1__namespace.TuiNotificationComponent, selector: "tui-notification", inputs: ["hasIcon", "status"], outputs: ["close"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1__namespace.TuiModeDirective, selector: "[tuiMode]", inputs: ["tuiMode"] }, { type: i2__namespace$1.TuiSelectDirective, selector: "tui-select" }, { type: i1__namespace.TuiTextfieldSizeDirective, selector: "[tuiTextfieldSize]", inputs: ["tuiTextfieldSize"] }, { type: i1__namespace.TuiDropdownControllerDirective, selector: "[tuiDropdownAlign], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownSided]", inputs: ["tuiDropdownAlign", "tuiDropdownDirection", "tuiDropdownLimitWidth", "tuiDropdownMinHeight", "tuiDropdownMaxHeight", "tuiDropdownSided"] }, { type: i1__namespace.TuiTextfieldCleanerDirective, selector: "[tuiTextfieldCleaner]", inputs: ["tuiTextfieldCleaner"] }, { type: i1__namespace.TuiTextfieldLabelOutsideDirective, selector: "[tuiTextfieldLabelOutside]", inputs: ["tuiTextfieldLabelOutside"] }, { type: i5__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5__namespace$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1__namespace.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { type: i4__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i4__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1__namespace.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i1__namespace.TuiGroupDirective, selector: "[tuiGroup]:not(ng-container)", inputs: ["orientation", "adaptive", "collapsed", "rounded", "size"] }, { type: i1__namespace.TuiTextfieldTypeDirective, selector: "[tuiTextfieldType]", inputs: ["tuiTextfieldType"] }, { type: TuiInputOpacityDirective, selector: "[tuiInputOpacity]", inputs: ["tuiInputOpacity"] }, { type: i2__namespace$1.TuiInputCountDirective, selector: "tui-input-count" }], pipes: { "async": i4__namespace.AsyncPipe }, animations: [
1228
+ animations.trigger("emitEvent", [
1229
+ animations.transition(":increment", [animations.style({ opacity: 1 }), animations.animate("500ms ease-in")]),
1230
+ ]),
1231
+ ], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1232
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDocumentationComponent, decorators: [{
1233
+ type: i0.Component,
1234
+ args: [{
1235
+ selector: "tui-doc-documentation",
1236
+ templateUrl: "./documentation.template.html",
1237
+ styleUrls: ["./documentation.style.less"],
1238
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1239
+ animations: [
1240
+ animations.trigger("emitEvent", [
1241
+ animations.transition(":increment", [animations.style({ opacity: 1 }), animations.animate("500ms ease-in")]),
1242
+ ]),
1243
+ ],
1244
+ }]
1245
+ }], ctorParameters: function () {
1246
+ return [{ type: i0__namespace.ChangeDetectorRef, decorators: [{
1247
+ type: i0.Inject,
1248
+ args: [i0.ChangeDetectorRef]
1249
+ }] }, { type: undefined, decorators: [{
1250
+ type: i0.Inject,
1251
+ args: [TUI_DOC_DOCUMENTATION_TEXTS]
1252
+ }] }];
1253
+ }, propDecorators: { heading: [{
1254
+ type: i0.Input
1255
+ }], showValues: [{
1256
+ type: i0.Input
1257
+ }], isAPI: [{
1258
+ type: i0.Input
1259
+ }], propertiesConnectors: [{
1260
+ type: i0.ContentChildren,
1261
+ args: [TuiDocDocumentationPropertyConnectorDirective]
1262
+ }] } });
1062
1263
 
1063
1264
  var TuiInputOpacityModule = /** @class */ (function () {
1064
1265
  function TuiInputOpacityModule() {
1065
1266
  }
1066
- TuiInputOpacityModule = __decorate([
1067
- core.NgModule({
1068
- declarations: [TuiInputOpacityDirective],
1069
- exports: [TuiInputOpacityDirective],
1070
- })
1071
- ], TuiInputOpacityModule);
1072
1267
  return TuiInputOpacityModule;
1073
1268
  }());
1269
+ TuiInputOpacityModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiInputOpacityModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1270
+ TuiInputOpacityModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiInputOpacityModule, declarations: [TuiInputOpacityDirective], exports: [TuiInputOpacityDirective] });
1271
+ TuiInputOpacityModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiInputOpacityModule });
1272
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiInputOpacityModule, decorators: [{
1273
+ type: i0.NgModule,
1274
+ args: [{
1275
+ declarations: [TuiInputOpacityDirective],
1276
+ exports: [TuiInputOpacityDirective],
1277
+ }]
1278
+ }] });
1074
1279
 
1075
1280
  var TuiDocDocumentationModule = /** @class */ (function () {
1076
1281
  function TuiDocDocumentationModule() {
1077
1282
  }
1078
- TuiDocDocumentationModule = __decorate([
1079
- core.NgModule({
1080
- imports: [
1081
- common.CommonModule,
1082
- forms.FormsModule,
1083
- router.RouterModule,
1084
- kit.TuiBadgeModule,
1085
- kit.TuiSelectModule,
1086
- kit.TuiToggleModule,
1087
- core$1.TuiTooltipModule,
1088
- core$1.TuiLinkModule,
1089
- kit.TuiInputCountModule,
1090
- core$1.TuiModeModule,
1091
- core$1.TuiGroupModule,
1092
- TuiInputOpacityModule,
1093
- core$1.TuiPrimitiveTextfieldModule,
1094
- core$1.TuiTextfieldControllerModule,
1095
- core$1.TuiHintControllerModule,
1096
- core$1.TuiDropdownControllerModule,
1097
- core$1.TuiDataListModule,
1098
- kit.TuiDataListWrapperModule,
1099
- core$1.TuiNotificationModule,
1100
- ],
1101
- declarations: [
1102
- TuiDocDocumentationComponent,
1103
- TuiDocDocumentationPropertyConnectorDirective,
1104
- ],
1105
- exports: [
1106
- TuiDocDocumentationComponent,
1107
- TuiDocDocumentationPropertyConnectorDirective,
1108
- ],
1109
- })
1110
- ], TuiDocDocumentationModule);
1111
1283
  return TuiDocDocumentationModule;
1112
1284
  }());
1285
+ TuiDocDocumentationModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDocumentationModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1286
+ TuiDocDocumentationModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDocumentationModule, declarations: [TuiDocDocumentationComponent,
1287
+ TuiDocDocumentationPropertyConnectorDirective], imports: [i4.CommonModule,
1288
+ i5.FormsModule,
1289
+ i5$1.RouterModule,
1290
+ i2$1.TuiBadgeModule,
1291
+ i2$1.TuiSelectModule,
1292
+ i2$1.TuiToggleModule,
1293
+ i1.TuiTooltipModule,
1294
+ i1.TuiLinkModule,
1295
+ i2$1.TuiInputCountModule,
1296
+ i1.TuiModeModule,
1297
+ i1.TuiGroupModule,
1298
+ TuiInputOpacityModule,
1299
+ i1.TuiPrimitiveTextfieldModule,
1300
+ i1.TuiTextfieldControllerModule,
1301
+ i1.TuiHintControllerModule,
1302
+ i1.TuiDropdownControllerModule,
1303
+ i1.TuiDataListModule,
1304
+ i2$1.TuiDataListWrapperModule,
1305
+ i1.TuiNotificationModule], exports: [TuiDocDocumentationComponent,
1306
+ TuiDocDocumentationPropertyConnectorDirective] });
1307
+ TuiDocDocumentationModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDocumentationModule, imports: [[
1308
+ i4.CommonModule,
1309
+ i5.FormsModule,
1310
+ i5$1.RouterModule,
1311
+ i2$1.TuiBadgeModule,
1312
+ i2$1.TuiSelectModule,
1313
+ i2$1.TuiToggleModule,
1314
+ i1.TuiTooltipModule,
1315
+ i1.TuiLinkModule,
1316
+ i2$1.TuiInputCountModule,
1317
+ i1.TuiModeModule,
1318
+ i1.TuiGroupModule,
1319
+ TuiInputOpacityModule,
1320
+ i1.TuiPrimitiveTextfieldModule,
1321
+ i1.TuiTextfieldControllerModule,
1322
+ i1.TuiHintControllerModule,
1323
+ i1.TuiDropdownControllerModule,
1324
+ i1.TuiDataListModule,
1325
+ i2$1.TuiDataListWrapperModule,
1326
+ i1.TuiNotificationModule,
1327
+ ]] });
1328
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocDocumentationModule, decorators: [{
1329
+ type: i0.NgModule,
1330
+ args: [{
1331
+ imports: [
1332
+ i4.CommonModule,
1333
+ i5.FormsModule,
1334
+ i5$1.RouterModule,
1335
+ i2$1.TuiBadgeModule,
1336
+ i2$1.TuiSelectModule,
1337
+ i2$1.TuiToggleModule,
1338
+ i1.TuiTooltipModule,
1339
+ i1.TuiLinkModule,
1340
+ i2$1.TuiInputCountModule,
1341
+ i1.TuiModeModule,
1342
+ i1.TuiGroupModule,
1343
+ TuiInputOpacityModule,
1344
+ i1.TuiPrimitiveTextfieldModule,
1345
+ i1.TuiTextfieldControllerModule,
1346
+ i1.TuiHintControllerModule,
1347
+ i1.TuiDropdownControllerModule,
1348
+ i1.TuiDataListModule,
1349
+ i2$1.TuiDataListWrapperModule,
1350
+ i1.TuiNotificationModule,
1351
+ ],
1352
+ declarations: [
1353
+ TuiDocDocumentationComponent,
1354
+ TuiDocDocumentationPropertyConnectorDirective,
1355
+ ],
1356
+ exports: [
1357
+ TuiDocDocumentationComponent,
1358
+ TuiDocDocumentationPropertyConnectorDirective,
1359
+ ],
1360
+ }]
1361
+ }] });
1113
1362
 
1114
- var TUI_DOC_CODE_ACTIONS = new core.InjectionToken('Code actions for the opened tab with code example', {
1115
- factory: function () { return ''; },
1363
+ var TUI_DOC_CODE_ACTIONS = new i0.InjectionToken("Code actions for the opened tab with code example", {
1364
+ factory: function () { return ""; },
1116
1365
  });
1117
1366
 
1118
- var TUI_DOC_CODE_EDITOR = new core.InjectionToken('Contains service for opening online IDE e.g. Stackblitz');
1367
+ var TUI_DOC_CODE_EDITOR = new i0.InjectionToken("Contains service for opening online IDE e.g. Stackblitz");
1119
1368
 
1120
- var TUI_DOC_EXAMPLE_CONTENT_PROCESSOR = new core.InjectionToken('Processes content in example', { factory: function () { return rxjs.identity; } });
1369
+ var TUI_DOC_EXAMPLE_CONTENT_PROCESSOR = new i0.InjectionToken("Processes content in example", { factory: function () { return i8.identity; } });
1121
1370
 
1122
1371
  /**
1123
1372
  * @deprecated: use {@link tuiRawLoadRecord} instead
@@ -1167,14 +1416,44 @@
1167
1416
  }
1168
1417
  var tuiRawLoadRecord = rawLoadRecord;
1169
1418
 
1419
+ var TuiDocExampleCapitalizePipe = /** @class */ (function () {
1420
+ function TuiDocExampleCapitalizePipe() {
1421
+ }
1422
+ TuiDocExampleCapitalizePipe.prototype.transform = function (content) {
1423
+ return i3.tuiIsString(content) ? i1.tuiCapitalizeFirstLetter(content) : content;
1424
+ };
1425
+ return TuiDocExampleCapitalizePipe;
1426
+ }());
1427
+ TuiDocExampleCapitalizePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocExampleCapitalizePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1428
+ TuiDocExampleCapitalizePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocExampleCapitalizePipe, name: "tuiDocExampleCapitalize" });
1429
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocExampleCapitalizePipe, decorators: [{
1430
+ type: i0.Pipe,
1431
+ args: [{ name: "tuiDocExampleCapitalize" }]
1432
+ }] });
1433
+
1434
+ var TuiDocExampleGetTabsPipe = /** @class */ (function () {
1435
+ function TuiDocExampleGetTabsPipe() {
1436
+ }
1437
+ TuiDocExampleGetTabsPipe.prototype.transform = function (content, defaultTab) {
1438
+ return __spreadArray([defaultTab], __read(Object.keys(content)));
1439
+ };
1440
+ return TuiDocExampleGetTabsPipe;
1441
+ }());
1442
+ TuiDocExampleGetTabsPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocExampleGetTabsPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1443
+ TuiDocExampleGetTabsPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocExampleGetTabsPipe, name: "tuiDocExampleGetTabs" });
1444
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocExampleGetTabsPipe, decorators: [{
1445
+ type: i0.Pipe,
1446
+ args: [{ name: "tuiDocExampleGetTabs" }]
1447
+ }] });
1448
+
1170
1449
  // Ambient type cannot be used without dynamic https://github.com/angular/angular/issues/23395
1171
1450
  // @dynamic
1172
1451
  var TuiDocExampleComponent = /** @class */ (function () {
1173
- function TuiDocExampleComponent(id, clipboard, notifications, location, copyTexts$, texts, codeEditor, processContent, isCypress, codeActions, router, route, ngLocation) {
1452
+ function TuiDocExampleComponent(id, clipboard, alertService, location, copyTexts$, texts, codeEditor, processContent, isCypress, codeActions, router, route, ngLocation) {
1174
1453
  var _this = this;
1175
1454
  this.id = id;
1176
1455
  this.clipboard = clipboard;
1177
- this.notifications = notifications;
1456
+ this.alertService = alertService;
1178
1457
  this.location = location;
1179
1458
  this.copyTexts$ = copyTexts$;
1180
1459
  this.texts = texts;
@@ -1185,37 +1464,37 @@
1185
1464
  this.router = router;
1186
1465
  this.route = route;
1187
1466
  this.ngLocation = ngLocation;
1188
- this.rawLoader$$ = new rxjs.BehaviorSubject({});
1189
- this.heading = '';
1190
- this.description = '';
1467
+ this.rawLoader$$ = new i8.BehaviorSubject({});
1468
+ this.heading = "";
1469
+ this.description = "";
1191
1470
  this.componentName = this.location.pathname.slice(1);
1192
1471
  this.defaultTabIndex = 0;
1193
1472
  this.defaultTab = this.texts[this.defaultTabIndex];
1194
1473
  this.activeItemIndex = this.defaultTabIndex;
1195
- this.copy$ = this.copyTexts$.pipe(operators.map(function (_a) {
1196
- var _b = __read(_a, 1), copy = _b[0];
1474
+ this.copy$ = this.copyTexts$.pipe(operators.map(function (_b) {
1475
+ var _c = __read(_b, 1), copy = _c[0];
1197
1476
  return copy;
1198
1477
  }));
1199
1478
  this.processor$ = this.rawLoader$$.pipe(operators.switchMap(rawLoadRecord), operators.map(function (value) { return _this.processContent(value); }));
1200
- this.loading$ = new rxjs.Subject();
1479
+ this.loading$ = new i8.Subject();
1201
1480
  }
1202
1481
  Object.defineProperty(TuiDocExampleComponent.prototype, "content", {
1203
1482
  set: function (content) {
1204
1483
  this.rawLoader$$.next(content);
1205
1484
  },
1206
- enumerable: true,
1485
+ enumerable: false,
1207
1486
  configurable: true
1208
1487
  });
1209
1488
  TuiDocExampleComponent.prototype.copyExampleLink = function () {
1210
- var hashPosition = this.location.href.indexOf('#');
1489
+ var hashPosition = this.location.href.indexOf("#");
1211
1490
  var currentUrl = hashPosition > -1
1212
1491
  ? this.location.href.slice(0, Math.max(0, hashPosition))
1213
1492
  : this.location.href;
1214
1493
  var url = currentUrl + "#" + this.id;
1215
1494
  this.setFragmentWithoutRedirect(this.id);
1216
1495
  this.clipboard.copy(url);
1217
- this.notifications
1218
- .show(this.texts[1], {
1496
+ this.alertService
1497
+ .open(this.texts[1], {
1219
1498
  label: this.texts[2],
1220
1499
  status: "success" /* Success */,
1221
1500
  })
@@ -1223,295 +1502,169 @@
1223
1502
  };
1224
1503
  TuiDocExampleComponent.prototype.edit = function (files) {
1225
1504
  var _this = this;
1226
- var _a, _b;
1505
+ var _a;
1227
1506
  this.loading$.next(true);
1228
- (_a = this.codeEditor) === null || _a === void 0 ? void 0 : _a.edit(this.componentName, (_b = this.id) !== null && _b !== void 0 ? _b : '', files).finally(function () { return _this.loading$.next(false); });
1507
+ (_a = this.codeEditor) === null || _a === void 0 ? void 0 : _a.edit(this.componentName, this.id || "", files).finally(function () { return _this.loading$.next(false); });
1229
1508
  };
1230
1509
  TuiDocExampleComponent.prototype.setFragmentWithoutRedirect = function (id) {
1231
1510
  var url = this.router
1232
- .createUrlTree([], { relativeTo: this.route, fragment: id || '' })
1511
+ .createUrlTree([], { relativeTo: this.route, fragment: id || "" })
1233
1512
  .toString();
1234
1513
  this.ngLocation.go(url);
1235
1514
  };
1236
- TuiDocExampleComponent.ctorParameters = function () { return [
1237
- { type: String, decorators: [{ type: core.Attribute, args: ['id',] }] },
1238
- { type: clipboard.Clipboard, decorators: [{ type: core.Inject, args: [clipboard.Clipboard,] }] },
1239
- { type: core$1.TuiNotificationsService, decorators: [{ type: core.Inject, args: [core$1.TuiNotificationsService,] }] },
1240
- { type: Location, decorators: [{ type: core.Inject, args: [common$1.LOCATION,] }] },
1241
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [kit.TUI_COPY_TEXTS,] }] },
1242
- { type: Array, decorators: [{ type: core.Inject, args: [TUI_DOC_EXAMPLE_TEXTS,] }] },
1243
- { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [TUI_DOC_CODE_EDITOR,] }] },
1244
- { type: undefined, decorators: [{ type: core.Inject, args: [TUI_DOC_EXAMPLE_CONTENT_PROCESSOR,] }] },
1245
- { type: Boolean, decorators: [{ type: core.Inject, args: [cdk.TUI_IS_CYPRESS,] }] },
1246
- { type: Array, decorators: [{ type: core.Inject, args: [TUI_DOC_CODE_ACTIONS,] }] },
1247
- { type: router.Router, decorators: [{ type: core.Inject, args: [router.Router,] }] },
1248
- { type: router.ActivatedRoute, decorators: [{ type: core.Inject, args: [router.ActivatedRoute,] }] },
1249
- { type: common.Location, decorators: [{ type: core.Inject, args: [common.Location,] }] }
1250
- ]; };
1251
- __decorate([
1252
- core.Input()
1253
- ], TuiDocExampleComponent.prototype, "heading", void 0);
1254
- __decorate([
1255
- core.Input()
1256
- ], TuiDocExampleComponent.prototype, "description", void 0);
1257
- __decorate([
1258
- core.Input()
1259
- ], TuiDocExampleComponent.prototype, "content", null);
1260
- __decorate([
1261
- core.Input()
1262
- ], TuiDocExampleComponent.prototype, "componentName", void 0);
1263
- TuiDocExampleComponent = __decorate([
1264
- core.Component({
1265
- selector: 'tui-doc-example',
1266
- template: "<h3\n *ngIf=\"heading\"\n class=\"t-title\"\n>\n <span\n polymorpheus-outlet\n [content]=\"heading | tuiDocExampleCapitalize\"\n ></span>\n <button\n *ngIf=\"id\"\n tuiIconButton\n type=\"button\"\n size=\"xs\"\n icon=\"tuiIconLinkLarge\"\n appearance=\"icon\"\n class=\"t-link-icon\"\n [title]=\"copy$ | async\"\n (click)=\"copyExampleLink()\"\n ></button>\n</h3>\n<h4\n *ngIf=\"description\"\n polymorpheus-outlet\n class=\"t-description\"\n [content]=\"description | tuiDocExampleCapitalize\"\n></h4>\n\n<div\n *ngIf=\"processor$ | async as files\"\n class=\"t-example\"\n>\n <ng-container *ngIf=\"files | tuiDocExampleGetTabs: defaultTab as tabs\">\n <div class=\"t-tabs-wrapper\">\n <tui-tabs-with-more\n class=\"t-tabs\"\n [(activeItemIndex)]=\"activeItemIndex\"\n >\n <ng-container *ngFor=\"let tab of tabs\">\n <button\n *tuiTab\n tuiTab\n >\n {{ tab }}\n </button>\n </ng-container>\n </tui-tabs-with-more>\n\n <button\n *ngIf=\"codeEditor\"\n tuiButton\n appearance=\"flat\"\n size=\"s\"\n [showLoader]=\"!!(loading$ | async)\"\n (click)=\"edit(files)\"\n >\n Edit on {{ codeEditor.name }}\n </button>\n </div>\n\n <div\n *ngFor=\"let tab of tabs; let index = index\"\n class=\"t-content\"\n [class.t-content_animated]=\"!isCypress\"\n [class.t-content_visible]=\"activeItemIndex === index\"\n >\n <ng-container\n *ngIf=\"index === defaultTabIndex; else anotherTab\"\n [ngTemplateOutlet]=\"preview\"\n ></ng-container>\n <ng-template #anotherTab>\n <ng-container\n [ngTemplateOutlet]=\"codeSection\"\n [ngTemplateOutletContext]=\"{$implicit: files[tabs[activeItemIndex]] || ''}\"\n ></ng-container>\n </ng-template>\n </div>\n </ng-container>\n</div>\n\n<ng-template #preview>\n <div\n automation-id=\"tui-doc-example\"\n class=\"t-demo\"\n >\n <ng-content></ng-content>\n </div>\n</ng-template>\n\n<ng-template\n #codeSection\n let-code\n>\n <section class=\"t-code-actions\">\n <ng-container *ngFor=\"let action of codeActions\">\n <div\n polymorpheus-outlet\n [content]=\"action\"\n [context]=\"{$implicit: code}\"\n ></div>\n </ng-container>\n <tui-doc-copy [cdkCopyToClipboard]=\"code\"></tui-doc-copy>\n </section>\n <tui-doc-code [code]=\"code\"></tui-doc-code>\n</ng-template>\n",
1267
- changeDetection: core.ChangeDetectionStrategy.OnPush,
1268
- styles: [":host{position:relative;display:block;padding-top:3.5rem;clear:right}:host :host-context(tui-root._mobile){padding-top:2rem}.t-title{font:var(--tui-font-heading-5);margin:0 0 .5rem}:host-context(tui-root._mobile) .t-title{font:var(--tui-font-heading-6)}.t-description{font:var(--tui-font-text-m);font-weight:400;margin:0}.t-example{position:relative;margin-top:1.5rem;border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m);box-shadow:0 .125rem .1875rem rgba(0,0,0,.1)}:host-context(tui-root._mobile) .t-example{margin-top:.75rem}.t-tabs-wrapper{display:flex;padding:0 2rem;box-shadow:inset 0 -1px var(--tui-base-03);justify-content:space-between;align-items:center}:host-context(tui-root._mobile) .t-tabs-wrapper{padding:0 1rem}.t-tabs{flex-grow:1}.t-demo{padding:2rem;overflow-x:auto}@media all and (-webkit-min-device-pixel-ratio:0) and (min-resolution:0.001dpcm){.t-demo::-webkit-scrollbar,.t-demo::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:2.667rem solid transparent}.t-demo::-webkit-scrollbar{background-color:transparent}.t-demo::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}.t-demo::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}.t-demo::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}:host-context(tui-root._mobile) .t-demo{padding:1rem}.t-code-actions{position:absolute;top:4.375rem;right:1rem;display:flex;justify-content:flex-end;align-items:center}.t-code-actions>*{margin-left:.5rem}.t-link-icon{margin-left:.3rem;vertical-align:baseline}.t-content{will-change:opacity;height:0;visibility:hidden;opacity:0}.t-content_animated{transition:opacity .3s ease-in-out}.t-content_visible{height:auto;visibility:visible;opacity:1}"]
1269
- }),
1270
- __param(0, core.Attribute('id')),
1271
- __param(1, core.Inject(clipboard.Clipboard)),
1272
- __param(2, core.Inject(core$1.TuiNotificationsService)),
1273
- __param(3, core.Inject(common$1.LOCATION)),
1274
- __param(4, core.Inject(kit.TUI_COPY_TEXTS)),
1275
- __param(5, core.Inject(TUI_DOC_EXAMPLE_TEXTS)),
1276
- __param(6, core.Optional()),
1277
- __param(6, core.Inject(TUI_DOC_CODE_EDITOR)),
1278
- __param(7, core.Inject(TUI_DOC_EXAMPLE_CONTENT_PROCESSOR)),
1279
- __param(8, core.Inject(cdk.TUI_IS_CYPRESS)),
1280
- __param(9, core.Inject(TUI_DOC_CODE_ACTIONS)),
1281
- __param(10, core.Inject(router.Router)),
1282
- __param(11, core.Inject(router.ActivatedRoute)),
1283
- __param(12, core.Inject(common.Location))
1284
- ], TuiDocExampleComponent);
1285
1515
  return TuiDocExampleComponent;
1286
1516
  }());
1287
-
1288
- var TuiDocExampleCapitalizePipe = /** @class */ (function () {
1289
- function TuiDocExampleCapitalizePipe() {
1290
- }
1291
- TuiDocExampleCapitalizePipe.prototype.transform = function (content) {
1292
- return typeof content === 'string' ? core$1.capitalizeFirstLetter(content) : content;
1293
- };
1294
- TuiDocExampleCapitalizePipe = __decorate([
1295
- core.Pipe({ name: 'tuiDocExampleCapitalize' })
1296
- ], TuiDocExampleCapitalizePipe);
1297
- return TuiDocExampleCapitalizePipe;
1298
- }());
1299
-
1300
- var TuiDocExampleGetTabsPipe = /** @class */ (function () {
1301
- function TuiDocExampleGetTabsPipe() {
1302
- }
1303
- TuiDocExampleGetTabsPipe.prototype.transform = function (content, defaultTab) {
1304
- return __spread([defaultTab], Object.keys(content));
1305
- };
1306
- TuiDocExampleGetTabsPipe = __decorate([
1307
- core.Pipe({ name: 'tuiDocExampleGetTabs' })
1308
- ], TuiDocExampleGetTabsPipe);
1309
- return TuiDocExampleGetTabsPipe;
1310
- }());
1517
+ TuiDocExampleComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocExampleComponent, deps: [{ token: "id", attribute: true }, { token: i8$1.Clipboard }, { token: i1.TuiAlertService }, { token: common.LOCATION }, { token: i2$1.TUI_COPY_TEXTS }, { token: TUI_DOC_EXAMPLE_TEXTS }, { token: TUI_DOC_CODE_EDITOR, optional: true }, { token: TUI_DOC_EXAMPLE_CONTENT_PROCESSOR }, { token: i3.TUI_IS_CYPRESS }, { token: TUI_DOC_CODE_ACTIONS }, { token: i5$1.Router }, { token: i5$1.ActivatedRoute }, { token: i4.Location }], target: i0__namespace.ɵɵFactoryTarget.Component });
1518
+ TuiDocExampleComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiDocExampleComponent, selector: "tui-doc-example", inputs: { heading: "heading", description: "description", content: "content", componentName: "componentName" }, ngImport: i0__namespace, template: "<h3\n *ngIf=\"heading\"\n class=\"t-title\"\n>\n <span\n *polymorpheusOutlet=\"heading | tuiDocExampleCapitalize as text\"\n [textContent]=\"text\"\n ></span>\n <button\n *ngIf=\"id\"\n tuiIconButton\n type=\"button\"\n size=\"xs\"\n icon=\"tuiIconLinkLarge\"\n appearance=\"icon\"\n class=\"t-link-icon\"\n [title]=\"copy$ | async\"\n (click)=\"copyExampleLink()\"\n ></button>\n</h3>\n<h4\n *ngIf=\"description\"\n class=\"t-description\"\n>\n <ng-container *polymorpheusOutlet=\"description | tuiDocExampleCapitalize as text\">\n {{ text }}\n </ng-container>\n</h4>\n\n<div\n *ngIf=\"processor$ | async as files\"\n class=\"t-example\"\n>\n <ng-container *ngIf=\"files | tuiDocExampleGetTabs: defaultTab as tabs\">\n <div class=\"t-tabs-wrapper\">\n <tui-tabs-with-more\n class=\"t-tabs\"\n [(activeItemIndex)]=\"activeItemIndex\"\n >\n <ng-container *ngFor=\"let tab of tabs\">\n <button\n *tuiItem\n tuiTab\n >\n {{ tab }}\n </button>\n </ng-container>\n </tui-tabs-with-more>\n\n <button\n *ngIf=\"codeEditor\"\n tuiButton\n appearance=\"flat\"\n size=\"s\"\n [showLoader]=\"!!(loading$ | async)\"\n (click)=\"edit(files)\"\n >\n Edit on {{ codeEditor.name }}\n </button>\n </div>\n\n <div\n *ngFor=\"let tab of tabs; let index = index\"\n class=\"t-content\"\n [class.t-content_animated]=\"!isCypress\"\n [class.t-content_visible]=\"activeItemIndex === index\"\n >\n <ng-container\n *ngIf=\"index === defaultTabIndex; else anotherTab\"\n [ngTemplateOutlet]=\"preview\"\n ></ng-container>\n <ng-template #anotherTab>\n <ng-container\n [ngTemplateOutlet]=\"codeSection\"\n [ngTemplateOutletContext]=\"{$implicit: files[tabs[activeItemIndex]] || ''}\"\n ></ng-container>\n </ng-template>\n </div>\n </ng-container>\n</div>\n\n<ng-template #preview>\n <div\n automation-id=\"tui-doc-example\"\n class=\"t-demo\"\n >\n <ng-content></ng-content>\n </div>\n</ng-template>\n\n<ng-template\n #codeSection\n let-code\n>\n <section class=\"t-code-actions\">\n <ng-container *ngFor=\"let action of codeActions\">\n <ng-container *polymorpheusOutlet=\"action as text; context: {$implicit: code}\">\n {{ text }}\n </ng-container>\n </ng-container>\n <tui-doc-copy [cdkCopyToClipboard]=\"code\"></tui-doc-copy>\n </section>\n <tui-doc-code [code]=\"code\"></tui-doc-code>\n</ng-template>\n", styles: [":host{position:relative;display:block;padding-top:3.5rem;clear:right}:host :host-context(tui-root._mobile){padding-top:2rem}.t-title{font:var(--tui-font-heading-5);margin:0 0 .5rem}:host-context(tui-root._mobile) .t-title{font:var(--tui-font-heading-6)}.t-description{font:var(--tui-font-text-m);font-weight:normal;margin:0}.t-example{position:relative;margin-top:1.5rem;border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m);box-shadow:0 .125rem .1875rem rgba(0,0,0,.1)}:host-context(tui-root._mobile) .t-example{margin-top:.75rem}.t-tabs-wrapper{display:flex;padding:0 2rem;box-shadow:inset 0 -1px var(--tui-base-03);justify-content:space-between;align-items:center}:host-context(tui-root._mobile) .t-tabs-wrapper{padding:0 1rem}.t-tabs{flex-grow:1}.t-demo{padding:2rem;overflow-x:auto}@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm){.t-demo::-webkit-scrollbar,.t-demo::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:2.667rem solid transparent}.t-demo::-webkit-scrollbar{background-color:transparent}.t-demo::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}.t-demo::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}.t-demo::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}:host-context(tui-root._mobile) .t-demo{padding:1rem}.t-code-actions{position:absolute;top:4.375rem;right:1rem;display:flex;justify-content:flex-end;align-items:center}.t-code-actions>*{margin-left:.5rem}.t-link-icon{margin-left:.3rem;vertical-align:baseline}.t-content{will-change:opacity;height:0;visibility:hidden;opacity:0}.t-content_animated{transition:opacity .3s ease-in-out}.t-content_visible{height:auto;visibility:visible;opacity:1}\n"], components: [{ type: i1__namespace.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }, { type: i2__namespace$1.TuiTabsWithMoreComponent, selector: "tui-tabs-with-more, nav[tuiTabsWithMore]", inputs: ["moreContent", "dropdownContent", "underline", "activeItemIndex", "itemsLimit"], outputs: ["activeItemIndexChange"] }, { type: i2__namespace$1.TuiTabComponent, selector: "a[tuiTab]:not([routerLink]), a[tuiTab][routerLink][routerLinkActive], button[tuiTab]" }, { type: TuiDocCopyComponent, selector: "tui-doc-copy" }, { type: TuiDocCodeComponent, selector: "tui-doc-code", inputs: ["filename", "code"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace.TuiItemDirective, selector: "[tuiItem]" }, { type: i4__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i8__namespace$1.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }], pipes: { "tuiDocExampleCapitalize": TuiDocExampleCapitalizePipe, "async": i4__namespace.AsyncPipe, "tuiDocExampleGetTabs": TuiDocExampleGetTabsPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1519
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocExampleComponent, decorators: [{
1520
+ type: i0.Component,
1521
+ args: [{
1522
+ selector: "tui-doc-example",
1523
+ templateUrl: "./example.template.html",
1524
+ styleUrls: ["./example.style.less"],
1525
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1526
+ }]
1527
+ }], ctorParameters: function () {
1528
+ return [{ type: undefined, decorators: [{
1529
+ type: i0.Attribute,
1530
+ args: ["id"]
1531
+ }] }, { type: i8__namespace$1.Clipboard, decorators: [{
1532
+ type: i0.Inject,
1533
+ args: [i8$1.Clipboard]
1534
+ }] }, { type: i1__namespace.TuiAlertService, decorators: [{
1535
+ type: i0.Inject,
1536
+ args: [i1.TuiAlertService]
1537
+ }] }, { type: Location, decorators: [{
1538
+ type: i0.Inject,
1539
+ args: [common.LOCATION]
1540
+ }] }, { type: i8__namespace.Observable, decorators: [{
1541
+ type: i0.Inject,
1542
+ args: [i2$1.TUI_COPY_TEXTS]
1543
+ }] }, { type: undefined, decorators: [{
1544
+ type: i0.Inject,
1545
+ args: [TUI_DOC_EXAMPLE_TEXTS]
1546
+ }] }, { type: undefined, decorators: [{
1547
+ type: i0.Optional
1548
+ }, {
1549
+ type: i0.Inject,
1550
+ args: [TUI_DOC_CODE_EDITOR]
1551
+ }] }, { type: undefined, decorators: [{
1552
+ type: i0.Inject,
1553
+ args: [TUI_DOC_EXAMPLE_CONTENT_PROCESSOR]
1554
+ }] }, { type: undefined, decorators: [{
1555
+ type: i0.Inject,
1556
+ args: [i3.TUI_IS_CYPRESS]
1557
+ }] }, { type: Array, decorators: [{
1558
+ type: i0.Inject,
1559
+ args: [TUI_DOC_CODE_ACTIONS]
1560
+ }] }, { type: i5__namespace.Router, decorators: [{
1561
+ type: i0.Inject,
1562
+ args: [i5$1.Router]
1563
+ }] }, { type: i5__namespace.ActivatedRoute, decorators: [{
1564
+ type: i0.Inject,
1565
+ args: [i5$1.ActivatedRoute]
1566
+ }] }, { type: i4__namespace.Location, decorators: [{
1567
+ type: i0.Inject,
1568
+ args: [i4.Location]
1569
+ }] }];
1570
+ }, propDecorators: { heading: [{
1571
+ type: i0.Input
1572
+ }], description: [{
1573
+ type: i0.Input
1574
+ }], content: [{
1575
+ type: i0.Input
1576
+ }], componentName: [{
1577
+ type: i0.Input
1578
+ }] } });
1311
1579
 
1312
1580
  var TuiDocExampleModule = /** @class */ (function () {
1313
1581
  function TuiDocExampleModule() {
1314
1582
  }
1315
- TuiDocExampleModule = __decorate([
1316
- core.NgModule({
1317
- imports: [
1318
- common.CommonModule,
1319
- clipboard.ClipboardModule,
1320
- kit.TuiTabsModule,
1321
- core$1.TuiButtonModule,
1322
- TuiDocCopyModule,
1323
- TuiDocCodeModule,
1324
- ngPolymorpheus.PolymorpheusModule,
1325
- ],
1326
- declarations: [
1327
- TuiDocExampleComponent,
1328
- TuiDocExampleGetTabsPipe,
1329
- TuiDocExampleCapitalizePipe,
1330
- ],
1331
- exports: [
1332
- TuiDocExampleComponent,
1333
- TuiDocExampleGetTabsPipe,
1334
- TuiDocExampleCapitalizePipe,
1335
- ],
1336
- })
1337
- ], TuiDocExampleModule);
1338
1583
  return TuiDocExampleModule;
1339
1584
  }());
1585
+ TuiDocExampleModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocExampleModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1586
+ TuiDocExampleModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocExampleModule, declarations: [TuiDocExampleComponent,
1587
+ TuiDocExampleGetTabsPipe,
1588
+ TuiDocExampleCapitalizePipe], imports: [i4.CommonModule,
1589
+ i8$1.ClipboardModule,
1590
+ i2$1.TuiTabsModule,
1591
+ i1.TuiButtonModule,
1592
+ TuiDocCopyModule,
1593
+ TuiDocCodeModule,
1594
+ i6.PolymorpheusModule], exports: [TuiDocExampleComponent,
1595
+ TuiDocExampleGetTabsPipe,
1596
+ TuiDocExampleCapitalizePipe] });
1597
+ TuiDocExampleModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocExampleModule, imports: [[
1598
+ i4.CommonModule,
1599
+ i8$1.ClipboardModule,
1600
+ i2$1.TuiTabsModule,
1601
+ i1.TuiButtonModule,
1602
+ TuiDocCopyModule,
1603
+ TuiDocCodeModule,
1604
+ i6.PolymorpheusModule,
1605
+ ]] });
1606
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocExampleModule, decorators: [{
1607
+ type: i0.NgModule,
1608
+ args: [{
1609
+ imports: [
1610
+ i4.CommonModule,
1611
+ i8$1.ClipboardModule,
1612
+ i2$1.TuiTabsModule,
1613
+ i1.TuiButtonModule,
1614
+ TuiDocCopyModule,
1615
+ TuiDocCodeModule,
1616
+ i6.PolymorpheusModule,
1617
+ ],
1618
+ declarations: [
1619
+ TuiDocExampleComponent,
1620
+ TuiDocExampleGetTabsPipe,
1621
+ TuiDocExampleCapitalizePipe,
1622
+ ],
1623
+ exports: [
1624
+ TuiDocExampleComponent,
1625
+ TuiDocExampleGetTabsPipe,
1626
+ TuiDocExampleCapitalizePipe,
1627
+ ],
1628
+ }]
1629
+ }] });
1340
1630
 
1341
- // @dynamic
1342
- var TuiDocMainComponent = /** @class */ (function () {
1343
- function TuiDocMainComponent(storage, windowRef) {
1344
- this.storage = storage;
1345
- this.windowRef = windowRef;
1346
- this.night = this.storage.getItem('night') === 'true' ||
1347
- (this.storage.getItem('night') === null &&
1348
- this.windowRef.matchMedia('(prefers-color-scheme: dark)').matches);
1349
- this.change$ = new rxjs.Subject();
1350
- }
1351
- TuiDocMainComponent_1 = TuiDocMainComponent;
1352
- Object.defineProperty(TuiDocMainComponent.prototype, "mode", {
1353
- get: function () {
1354
- return this.night ? 'onDark' : null;
1355
- },
1356
- enumerable: true,
1357
- configurable: true
1358
- });
1359
- TuiDocMainComponent.prototype.onMode = function (night) {
1360
- this.night = night;
1361
- this.change$.next();
1362
- this.storage.setItem('night', String(night));
1363
- };
1364
- var TuiDocMainComponent_1;
1365
- TuiDocMainComponent.ctorParameters = function () { return [
1366
- { type: Storage, decorators: [{ type: core.Inject, args: [common$1.LOCAL_STORAGE,] }] },
1367
- { type: Window, decorators: [{ type: core.Inject, args: [common$1.WINDOW,] }] }
1368
- ]; };
1369
- __decorate([
1370
- core.HostBinding('attr.data-mode')
1371
- ], TuiDocMainComponent.prototype, "mode", null);
1372
- TuiDocMainComponent = TuiDocMainComponent_1 = __decorate([
1373
- core.Component({
1374
- selector: 'tui-doc-main',
1375
- template: "<tui-theme-night *ngIf=\"night\"></tui-theme-night>\n<tui-root>\n <div class=\"tui-doc-page\">\n <tui-doc-navigation class=\"tui-doc-navigation\">\n <ng-content select=\"tuiDocNavigation\"></ng-content>\n </tui-doc-navigation>\n <div class=\"tui-doc-content\">\n <router-outlet class=\"tui-doc-outlet\"></router-outlet>\n </div>\n </div>\n <header tuiDocHeader>\n <label class=\"night-mode\">\n Night mode\n <tui-toggle\n class=\"tui-toggle\"\n [ngModel]=\"night\"\n (ngModelChange)=\"onMode($event)\"\n ></tui-toggle>\n </label>\n <ng-content select=\"tuiDocHeader\"></ng-content>\n </header>\n <ng-container ngProjectAs=\"tuiOverContent\">\n <ng-content select=\"tuiOverContent\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverDialogs\">\n <ng-content select=\"tuiOverDialogs\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverAlerts\">\n <ng-content select=\"tuiOverAlerts\"></ng-content>\n </ng-container>\n <!-- TODO: 3.0 Remove-->\n <ng-container ngProjectAs=\"tuiOverNotifications\">\n <ng-content select=\"tuiOverNotifications\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverPortals\">\n <ng-content select=\"tuiOverPortals\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverHints\">\n <ng-content select=\"tuiOverHints\"></ng-content>\n </ng-container>\n</tui-root>\n",
1376
- encapsulation: core.ViewEncapsulation.None,
1377
- providers: [
1378
- {
1379
- provide: core$1.TuiModeDirective,
1380
- useExisting: core.forwardRef(function () { return TuiDocMainComponent_1; }),
1381
- },
1382
- cdk.TuiSwipeService,
1383
- ],
1384
- styles: ["html{scroll-padding-top:4rem;height:auto}tui-root>tui-scroll-controls>.bar_vertical{top:4rem!important}@-webkit-keyframes tuiShaking{from,to{transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{transform:translate3d(-.3125rem,0,0)}20%,40%,60%,80%{transform:translate3d(.3125rem,0,0)}}@keyframes tuiShaking{from,to{transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{transform:translate3d(-.3125rem,0,0)}20%,40%,60%,80%{transform:translate3d(.3125rem,0,0)}}body{background:var(--tui-base-01);height:auto}tui-doc-main{display:block}code:not(.hljs):not([class*=language-]):not(.exception){transition-property:background;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;background:var(--tui-base-02);color:var(--tui-text-02);vertical-align:middle;box-shadow:inset 0 -2px var(--tui-secondary);padding:.375rem .5rem;font-size:.875rem;border-radius:.5rem}a:focus code,button:focus code{background:var(--tui-base-01)}.tui-doc-page{position:relative;z-index:0;padding-top:4rem}tui-doc-navigation.tui-doc-navigation{position:fixed;top:4rem;bottom:0;width:16.25rem;border-right:1px solid var(--tui-base-03)}.tui-doc-content{margin-left:16.25rem}@media screen and (max-width:47.9375em){tui-doc-navigation.tui-doc-navigation{display:none}.tui-doc-content{margin-left:0}}.tui-doc-outlet+*{display:block}.tui-doc-animated-example{-webkit-animation:1s .3s tuiShaking;animation:1s .3s tuiShaking}label.night-mode{cursor:pointer}label.night-mode .tui-toggle{margin-left:.5rem}.hljs-tag{background:0 0}.hljs{display:block;overflow-x:auto;padding:.5em;color:var(--tui-text-01);background-color:var(--tui-clear-disabled)}.hljs.hljs-line-numbers{background:0 0}.hljs-subst,.hljs-title{font-weight:400;color:var(--tui-text-01)}.hljs-comment,.hljs-quote{color:var(--tui-text-03);font-style:italic}.hljs-meta{color:#e38162}.hljs-keyword,.hljs-literal,.hljs-name,.hljs-section,.hljs-selector-class,.hljs-selector-id,.hljs-selector-tag,.hljs-type{font-weight:700;color:var(--tui-link)}.hljs-attribute,.hljs-link,.hljs-number,.hljs-regexp{font-weight:700;color:var(--tui-support-06)}.hljs-link,.hljs-number,.hljs-regexp{font-weight:400}.hljs-string{color:var(--tui-positive);font-weight:700}.hljs-bullet,.hljs-formula,.hljs-symbol{color:var(--tui-text-01);background:var(--tui-base-02);font-style:italic}.hljs-doctag{text-decoration:underline}.hljs-template-variable,.hljs-variable{color:var(--tui-link-hover)}[data-mode=onDark] .hljs-template-variable,[data-mode=onDark] .hljs-variable{color:var(--tui-warning-fill)}.hljs-addition{background:var(--tui-success-bg)}.hljs-deletion{background:var(--tui-error-bg)}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs .hljs-line-numbers{padding:0}.hljs-ln-numbers{vertical-align:top;opacity:.3;text-align:right;padding-right:1em!important}"]
1385
- }),
1386
- __param(0, core.Inject(common$1.LOCAL_STORAGE)),
1387
- __param(1, core.Inject(common$1.WINDOW))
1388
- ], TuiDocMainComponent);
1389
- return TuiDocMainComponent;
1390
- }());
1391
-
1392
- var TUI_DOC_PAGE_LOADED = new core.InjectionToken('[TUI_DOC_PAGE_LOADED] Stream that emits if loading of page is over (for example, to begin scrollIntoView)', { factory: function () { return rxjs.defer(function () { return rxjs.timer(200).pipe(operators.switchMapTo(rxjs.of(true))); }); } });
1393
-
1394
- /**
1395
- * @deprecated: use {@link TuiScrollIntoViewLinkDirective}
1396
- * TODO: remove in v3.0
1397
- */
1398
- var ScrollIntoViewDirective = /** @class */ (function () {
1399
- function ScrollIntoViewDirective(destroy$, _a, readyToScroll$) {
1400
- var nativeElement = _a.nativeElement;
1401
- this.readyToScroll$ = readyToScroll$;
1402
- this.scroll$ = new rxjs.ReplaySubject(1);
1403
- this.readyToScroll$
1404
- .pipe(operators.filter(Boolean), operators.switchMapTo(this.scroll$), operators.debounceTime(750), operators.filter(function (shallWe) { return shallWe && !!cdk.getElementObscurers(nativeElement); }), operators.takeUntil(destroy$))
1405
- .subscribe(function () {
1406
- nativeElement.scrollIntoView();
1407
- });
1408
- }
1409
- Object.defineProperty(ScrollIntoViewDirective.prototype, "scrollIntoView", {
1410
- set: function (shallWe) {
1411
- this.scroll$.next(shallWe);
1412
- },
1413
- enumerable: true,
1414
- configurable: true
1415
- });
1416
- ScrollIntoViewDirective.ctorParameters = function () { return [
1417
- { type: cdk.TuiDestroyService, decorators: [{ type: core.Inject, args: [cdk.TuiDestroyService,] }] },
1418
- { type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
1419
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [TUI_DOC_PAGE_LOADED,] }] }
1420
- ]; };
1421
- __decorate([
1422
- core.Input()
1423
- ], ScrollIntoViewDirective.prototype, "scrollIntoView", null);
1424
- ScrollIntoViewDirective = __decorate([
1425
- core.Directive({
1426
- selector: '[scrollIntoView]',
1427
- providers: [cdk.TuiDestroyService],
1428
- })
1429
- // eslint-disable-next-line @typescript-eslint/naming-convention
1430
- ,
1431
- __param(0, core.Inject(cdk.TuiDestroyService)),
1432
- __param(1, core.Inject(core.ElementRef)),
1433
- __param(2, core.Inject(TUI_DOC_PAGE_LOADED))
1434
- ], ScrollIntoViewDirective);
1435
- return ScrollIntoViewDirective;
1436
- }());
1437
- var TuiScrollIntoViewLinkDirective = /** @class */ (function (_super) {
1438
- __extends(TuiScrollIntoViewLinkDirective, _super);
1439
- function TuiScrollIntoViewLinkDirective() {
1440
- return _super !== null && _super.apply(this, arguments) || this;
1441
- }
1442
- TuiScrollIntoViewLinkDirective = __decorate([
1443
- core.Directive({
1444
- selector: '[tuiScrollIntoViewLink]',
1445
- providers: [cdk.TuiDestroyService],
1446
- })
1447
- ], TuiScrollIntoViewLinkDirective);
1448
- return TuiScrollIntoViewLinkDirective;
1449
- }(ScrollIntoViewDirective));
1450
-
1451
- /**
1452
- * @deprecated: use {@link TuiScrollIntoViewLinkModule}
1453
- * TODO: remove in v3.0
1454
- */
1455
- var ScrollIntoViewModule = /** @class */ (function () {
1456
- // eslint-disable-next-line @typescript-eslint/naming-convention
1457
- function ScrollIntoViewModule() {
1458
- }
1459
- ScrollIntoViewModule = __decorate([
1460
- core.NgModule({
1461
- declarations: [ScrollIntoViewDirective],
1462
- exports: [ScrollIntoViewDirective],
1463
- })
1464
- // eslint-disable-next-line @typescript-eslint/naming-convention
1465
- ], ScrollIntoViewModule);
1466
- return ScrollIntoViewModule;
1467
- }());
1468
- var TuiScrollIntoViewLinkModule = /** @class */ (function () {
1469
- function TuiScrollIntoViewLinkModule() {
1470
- }
1471
- TuiScrollIntoViewLinkModule = __decorate([
1472
- core.NgModule({
1473
- declarations: [TuiScrollIntoViewLinkDirective],
1474
- exports: [TuiScrollIntoViewLinkDirective],
1475
- })
1476
- ], TuiScrollIntoViewLinkModule);
1477
- return TuiScrollIntoViewLinkModule;
1478
- }());
1631
+ var TUI_DOC_PAGE_LOADED = new i0.InjectionToken("[TUI_DOC_PAGE_LOADED] Stream that emits if loading of page is over (for example, to begin scrollIntoView)", { factory: function () { return i8.defer(function () { return i8.timer(200).pipe(operators.switchMapTo(i8.of(true))); }); } });
1479
1632
 
1480
- var TUI_DOC_SCROLL_BEHAVIOR = new core.InjectionToken('[TUI_DOC_SCROLL_BEHAVIOR] Defines the transition animation for scroll', { factory: function () { return 'smooth'; } });
1633
+ var TUI_DOC_SCROLL_BEHAVIOR = new i0.InjectionToken("[TUI_DOC_SCROLL_BEHAVIOR] Defines the transition animation for scroll", { factory: function () { return "smooth"; } });
1481
1634
 
1482
1635
  var MAP = {
1483
- а: 'f',
1484
- б: ',',
1485
- в: 'd',
1486
- г: 'u',
1487
- д: 'l',
1488
- е: 't',
1489
- ё: '`',
1490
- ж: ';',
1491
- з: 'p',
1492
- и: 'b',
1493
- й: 'q',
1494
- к: 'r',
1495
- л: 'k',
1496
- м: 'v',
1497
- н: 'y',
1498
- о: 'j',
1499
- п: 'g',
1500
- р: 'h',
1501
- с: 'c',
1502
- т: 'n',
1503
- у: 'e',
1504
- ф: 'a',
1505
- х: '[',
1506
- ц: 'w',
1507
- ч: 'x',
1508
- ш: 'i',
1509
- щ: 'o',
1510
- ъ: ']',
1511
- ы: 's',
1512
- ь: 'm',
1513
- ю: '.',
1514
- я: 'z',
1636
+ а: "f",
1637
+ б: ",",
1638
+ в: "d",
1639
+ г: "u",
1640
+ д: "l",
1641
+ е: "t",
1642
+ ё: "`",
1643
+ ж: ";",
1644
+ з: "p",
1645
+ и: "b",
1646
+ й: "q",
1647
+ к: "r",
1648
+ л: "k",
1649
+ м: "v",
1650
+ н: "y",
1651
+ о: "j",
1652
+ п: "g",
1653
+ р: "h",
1654
+ с: "c",
1655
+ т: "n",
1656
+ у: "e",
1657
+ ф: "a",
1658
+ х: "[",
1659
+ ц: "w",
1660
+ ч: "x",
1661
+ ш: "i",
1662
+ щ: "o",
1663
+ ъ: "]",
1664
+ ы: "s",
1665
+ ь: "m",
1666
+ ю: ".",
1667
+ я: "z",
1515
1668
  };
1516
1669
  /**
1517
1670
  * @deprecated: use {@link tuiTransliterateKeyboardLayout} instead
@@ -1521,7 +1674,7 @@
1521
1674
  */
1522
1675
  // eslint-disable-next-line @typescript-eslint/naming-convention
1523
1676
  function transliterateKeyboardLayout(string) {
1524
- var newStr = '';
1677
+ var newStr = "";
1525
1678
  for (var i = 0; i < string.length; i++) {
1526
1679
  newStr += string.charAt(i) in MAP ? MAP[string.charAt(i)] : string.charAt(i);
1527
1680
  }
@@ -1529,22 +1682,22 @@
1529
1682
  }
1530
1683
  var tuiTransliterateKeyboardLayout = transliterateKeyboardLayout;
1531
1684
 
1532
- var TUI_DOC_PAGES = new core.InjectionToken('Documentation pages', {
1685
+ var TUI_DOC_PAGES = new i0.InjectionToken("Documentation pages", {
1533
1686
  factory: function () { return []; },
1534
1687
  });
1535
1688
 
1536
- var TUI_DOC_TITLE = new core.InjectionToken('Page title', {
1537
- factory: function () { return ''; },
1689
+ var TUI_DOC_TITLE = new i0.InjectionToken("Page title", {
1690
+ factory: function () { return ""; },
1538
1691
  });
1539
1692
 
1540
- var NAVIGATION_TITLE = new core.InjectionToken('Page title');
1541
- var NAVIGATION_LABELS = new core.InjectionToken('Navigation sections labels for search');
1542
- var NAVIGATION_ITEMS = new core.InjectionToken('Navigation pages');
1693
+ var NAVIGATION_TITLE = new i0.InjectionToken("Page title");
1694
+ var NAVIGATION_LABELS = new i0.InjectionToken("Navigation sections labels for search");
1695
+ var NAVIGATION_ITEMS = new i0.InjectionToken("Navigation pages");
1543
1696
  var NAVIGATION_PROVIDERS = [
1544
- cdk.TuiDestroyService,
1697
+ i3.TuiDestroyService,
1545
1698
  {
1546
1699
  provide: NAVIGATION_TITLE,
1547
- deps: [router.Router, router.ActivatedRoute, TUI_DOC_TITLE, cdk.TuiDestroyService],
1700
+ deps: [i5$1.Router, i5$1.ActivatedRoute, TUI_DOC_TITLE, i3.TuiDestroyService],
1548
1701
  useFactory: titleProviderFactory,
1549
1702
  },
1550
1703
  {
@@ -1559,8 +1712,8 @@
1559
1712
  },
1560
1713
  ];
1561
1714
  // eslint-disable-next-line @typescript-eslint/naming-convention
1562
- function titleProviderFactory(router$1, activatedRoute, titlePrefix, destroy$) {
1563
- return router$1.events.pipe(operators.filter(function (event) { return event instanceof router.NavigationEnd; }), operators.map(function () { return activatedRoute.firstChild; }), operators.filter(cdk.isPresent), operators.mergeMap(function (_a) {
1715
+ function titleProviderFactory(router, activatedRoute, titlePrefix, destroy$) {
1716
+ return router.events.pipe(operators.filter(function (event) { return event instanceof i5$1.NavigationEnd; }), operators.map(function () { return activatedRoute.firstChild; }), operators.filter(i3.isPresent), operators.mergeMap(function (_a) {
1564
1717
  var data = _a.data;
1565
1718
  return data;
1566
1719
  }), operators.map(function (_a) {
@@ -1575,20 +1728,84 @@
1575
1728
  var section = _a.section;
1576
1729
  return section;
1577
1730
  })
1578
- .filter(cdk.isPresent)
1731
+ .filter(i3.isPresent)
1579
1732
  .filter(function (item, index, array) { return array.indexOf(item) === index; });
1580
1733
  }
1581
1734
  // eslint-disable-next-line @typescript-eslint/naming-convention
1582
1735
  function itemsProviderFactory(pages) {
1583
1736
  var labels = labelsProviderFactory(pages);
1584
- return __spread(labels.map(function (label) { return pages.filter(function (_a) {
1737
+ return __spreadArray(__spreadArray([], __read(labels.map(function (label) { return pages.filter(function (_a) {
1585
1738
  var section = _a.section;
1586
1739
  return section === label;
1587
- }); }), [
1740
+ }); }))), [
1588
1741
  pages.filter(function (page) { return !page.section; }),
1589
1742
  ]);
1590
1743
  }
1591
1744
 
1745
+ /**
1746
+ * @deprecated: use {@link TuiScrollIntoViewLinkDirective}
1747
+ * TODO: remove in v3.0
1748
+ */
1749
+ // eslint-disable-next-line @typescript-eslint/naming-convention
1750
+ var ScrollIntoViewDirective = /** @class */ (function () {
1751
+ function ScrollIntoViewDirective(destroy$, _a, readyToScroll$) {
1752
+ var nativeElement = _a.nativeElement;
1753
+ this.readyToScroll$ = readyToScroll$;
1754
+ this.scroll$ = new i8.ReplaySubject(1);
1755
+ this.readyToScroll$
1756
+ .pipe(operators.filter(Boolean), operators.switchMapTo(this.scroll$), operators.debounceTime(750), operators.filter(function (shallWe) { return shallWe && !!i3.getElementObscurers(nativeElement); }), operators.takeUntil(destroy$))
1757
+ .subscribe(function () {
1758
+ nativeElement.scrollIntoView();
1759
+ });
1760
+ }
1761
+ Object.defineProperty(ScrollIntoViewDirective.prototype, "scrollIntoView", {
1762
+ set: function (shallWe) {
1763
+ this.scroll$.next(shallWe);
1764
+ },
1765
+ enumerable: false,
1766
+ configurable: true
1767
+ });
1768
+ return ScrollIntoViewDirective;
1769
+ }());
1770
+ ScrollIntoViewDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ScrollIntoViewDirective, deps: [{ token: i3.TuiDestroyService }, { token: i0.ElementRef }, { token: TUI_DOC_PAGE_LOADED }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1771
+ ScrollIntoViewDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ScrollIntoViewDirective, selector: "[scrollIntoView]", inputs: { scrollIntoView: "scrollIntoView" }, providers: [i3.TuiDestroyService], ngImport: i0__namespace });
1772
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ScrollIntoViewDirective, decorators: [{
1773
+ type: i0.Directive,
1774
+ args: [{
1775
+ selector: "[scrollIntoView]",
1776
+ providers: [i3.TuiDestroyService],
1777
+ }]
1778
+ }], ctorParameters: function () {
1779
+ return [{ type: i3__namespace.TuiDestroyService, decorators: [{
1780
+ type: i0.Inject,
1781
+ args: [i3.TuiDestroyService]
1782
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
1783
+ type: i0.Inject,
1784
+ args: [i0.ElementRef]
1785
+ }] }, { type: i8__namespace.Observable, decorators: [{
1786
+ type: i0.Inject,
1787
+ args: [TUI_DOC_PAGE_LOADED]
1788
+ }] }];
1789
+ }, propDecorators: { scrollIntoView: [{
1790
+ type: i0.Input
1791
+ }] } });
1792
+ var TuiScrollIntoViewLinkDirective = /** @class */ (function (_super) {
1793
+ __extends(TuiScrollIntoViewLinkDirective, _super);
1794
+ function TuiScrollIntoViewLinkDirective() {
1795
+ return _super !== null && _super.apply(this, arguments) || this;
1796
+ }
1797
+ return TuiScrollIntoViewLinkDirective;
1798
+ }(ScrollIntoViewDirective));
1799
+ TuiScrollIntoViewLinkDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiScrollIntoViewLinkDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
1800
+ TuiScrollIntoViewLinkDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiScrollIntoViewLinkDirective, selector: "[tuiScrollIntoViewLink]", providers: [i3.TuiDestroyService], usesInheritance: true, ngImport: i0__namespace });
1801
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiScrollIntoViewLinkDirective, decorators: [{
1802
+ type: i0.Directive,
1803
+ args: [{
1804
+ selector: "[tuiScrollIntoViewLink]",
1805
+ providers: [i3.TuiDestroyService],
1806
+ }]
1807
+ }] });
1808
+
1592
1809
  // @dynamic
1593
1810
  var TuiDocNavigationComponent = /** @class */ (function () {
1594
1811
  function TuiDocNavigationComponent(changeDetectorRef, titleService, title$, documentRef, mode, sidebar, labels, items, searchText, router, activatedRoute, destroy$, readyToScroll$, scrollBehavior) {
@@ -1605,12 +1822,12 @@
1605
1822
  this.readyToScroll$ = readyToScroll$;
1606
1823
  this.scrollBehavior = scrollBehavior;
1607
1824
  this.menuOpen = false;
1608
- this.search = '';
1825
+ this.search = "";
1609
1826
  this.open = false;
1610
1827
  this.openPagesArr = [];
1611
1828
  this.openPagesGroupsArr = [];
1612
- this.active = '';
1613
- this.mode$ = this.mode.change$.pipe(operators.startWith(null), operators.map(function () { return _this.mode.mode || 'onLight'; }));
1829
+ this.active = "";
1830
+ this.mode$ = this.mode.change$.pipe(operators.startWith(null), operators.map(function () { return _this.mode.mode || "onLight"; }));
1614
1831
  // Angular can't navigate no anchor links
1615
1832
  // https://stackoverflow.com/questions/36101756/angular2-routing-with-hashtag-to-page-anchor
1616
1833
  title$.subscribe(function (title) {
@@ -1624,21 +1841,21 @@
1624
1841
  get: function () {
1625
1842
  return this.search.length > 2;
1626
1843
  },
1627
- enumerable: true,
1844
+ enumerable: false,
1628
1845
  configurable: true
1629
1846
  });
1630
1847
  Object.defineProperty(TuiDocNavigationComponent.prototype, "filteredItems", {
1631
1848
  get: function () {
1632
1849
  return this.filterItems(this.flattenSubPages(this.items), this.search);
1633
1850
  },
1634
- enumerable: true,
1851
+ enumerable: false,
1635
1852
  configurable: true
1636
1853
  });
1637
1854
  Object.defineProperty(TuiDocNavigationComponent.prototype, "itemsWithoutSections", {
1638
1855
  get: function () {
1639
1856
  return this.items[this.items.length - 1];
1640
1857
  },
1641
- enumerable: true,
1858
+ enumerable: false,
1642
1859
  configurable: true
1643
1860
  });
1644
1861
  TuiDocNavigationComponent.prototype.isActive = function (route) {
@@ -1657,30 +1874,26 @@
1657
1874
  TuiDocNavigationComponent.prototype.onClick = function () {
1658
1875
  this.open = false;
1659
1876
  this.menuOpen = false;
1660
- this.search = '';
1877
+ this.search = "";
1661
1878
  this.openActivePageGroup();
1662
1879
  };
1663
1880
  TuiDocNavigationComponent.prototype.filterItems = function (items, search) {
1664
- return items.map(function (section) {
1665
- return cdk.uniqBy(section.filter(function (_a) {
1666
- var title = _a.title, _b = _a.keywords, keywords = _b === void 0 ? '' : _b;
1667
- title = title.toLowerCase();
1668
- search = search.toLowerCase();
1669
- keywords = keywords.toLowerCase();
1670
- return (title.includes(search) ||
1671
- keywords.includes(search) ||
1672
- title.includes(transliterateKeyboardLayout(search)) ||
1673
- keywords.includes(transliterateKeyboardLayout(search)) ||
1674
- search.replace(/-/gi, '').includes(title));
1675
- }), 'title');
1676
- });
1881
+ return items.map(function (section) { return i3.uniqBy(section.filter(function (_a) {
1882
+ var title = _a.title, _b = _a.keywords, keywords = _b === void 0 ? "" : _b;
1883
+ title = title.toLowerCase();
1884
+ search = search.toLowerCase();
1885
+ keywords = keywords.toLowerCase();
1886
+ return (title.includes(search) ||
1887
+ keywords.includes(search) ||
1888
+ title.includes(transliterateKeyboardLayout(search)) ||
1889
+ keywords.includes(transliterateKeyboardLayout(search)) ||
1890
+ search.replace(/-/gi, "").includes(title));
1891
+ }), "title"); });
1677
1892
  };
1678
1893
  TuiDocNavigationComponent.prototype.flattenSubPages = function (items) {
1679
- return items.reduce(function (array, item) { return __spread(array, [
1680
- item.reduce(function (pages, page) {
1681
- return 'subPages' in page
1682
- ? __spread(pages, page.subPages) : __spread(pages, [page]);
1683
- }, []),
1894
+ return items.reduce(function (array, item) { return __spreadArray(__spreadArray([], __read(array)), [
1895
+ item.reduce(function (pages, page) { return "subPages" in page
1896
+ ? __spreadArray(__spreadArray([], __read(pages)), __read(page.subPages)) : __spreadArray(__spreadArray([], __read(pages)), [page]); }, []),
1684
1897
  ]); }, []);
1685
1898
  };
1686
1899
  TuiDocNavigationComponent.prototype.isActiveRoute = function (route) {
@@ -1696,11 +1909,11 @@
1696
1909
  var _this = this;
1697
1910
  this.items.forEach(function (pages, pagesIndex) {
1698
1911
  pages.forEach(function (page, pageIndex) {
1699
- if ('route' in page && _this.isActiveRoute(page.route)) {
1912
+ if ("route" in page && _this.isActiveRoute(page.route)) {
1700
1913
  _this.openPagesArr[pagesIndex] = true;
1701
1914
  _this.active = page.route;
1702
1915
  }
1703
- if ('subPages' in page) {
1916
+ if ("subPages" in page) {
1704
1917
  page.subPages.forEach(function (subPage) {
1705
1918
  if (_this.isActiveRoute(subPage.route)) {
1706
1919
  _this.openPagesArr[pagesIndex] = true;
@@ -1717,101 +1930,85 @@
1717
1930
  if (!element) {
1718
1931
  return;
1719
1932
  }
1720
- element.classList.add('tui-doc-animated-example');
1933
+ element.classList.add("tui-doc-animated-example");
1721
1934
  element.scrollIntoView({
1722
- block: 'start',
1723
- inline: 'nearest',
1935
+ block: "start",
1936
+ inline: "nearest",
1724
1937
  behavior: this.scrollBehavior,
1725
1938
  });
1726
1939
  };
1727
- TuiDocNavigationComponent.ctorParameters = function () { return [
1728
- { type: core.ChangeDetectorRef, decorators: [{ type: core.Inject, args: [core.ChangeDetectorRef,] }] },
1729
- { type: platformBrowser.Title, decorators: [{ type: core.Inject, args: [platformBrowser.Title,] }] },
1730
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [NAVIGATION_TITLE,] }] },
1731
- { type: Document, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] },
1732
- { type: core$1.TuiModeDirective, decorators: [{ type: core.Inject, args: [core$1.TuiModeDirective,] }] },
1733
- { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [addonMobile.TuiSidebarDirective,] }] },
1734
- { type: Array, decorators: [{ type: core.Inject, args: [NAVIGATION_LABELS,] }] },
1735
- { type: undefined, decorators: [{ type: core.Inject, args: [NAVIGATION_ITEMS,] }] },
1736
- { type: String, decorators: [{ type: core.Inject, args: [TUI_DOC_SEARCH_TEXT,] }] },
1737
- { type: router.Router, decorators: [{ type: core.Inject, args: [router.Router,] }] },
1738
- { type: router.ActivatedRoute, decorators: [{ type: core.Inject, args: [router.ActivatedRoute,] }] },
1739
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [cdk.TuiDestroyService,] }] },
1740
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [TUI_DOC_PAGE_LOADED,] }] },
1741
- { type: undefined, decorators: [{ type: core.Inject, args: [TUI_DOC_SCROLL_BEHAVIOR,] }] }
1742
- ]; };
1743
- __decorate([
1744
- core.HostBinding('class._open')
1745
- ], TuiDocNavigationComponent.prototype, "menuOpen", void 0);
1746
- __decorate([
1747
- cdk.tuiPure
1748
- ], TuiDocNavigationComponent.prototype, "filterItems", null);
1749
- __decorate([
1750
- cdk.tuiPure
1751
- ], TuiDocNavigationComponent.prototype, "flattenSubPages", null);
1752
- TuiDocNavigationComponent = __decorate([
1753
- core.Component({
1754
- selector: 'tui-doc-navigation',
1755
- template: "<tui-hosted-dropdown\n *tuiLet=\"filteredItems as filtered\"\n tuiAutoFocus\n tuiDropdownLimitWidth=\"fixed\"\n class=\"t-input\"\n [autoFocus]=\"!!sidebar\"\n [content]=\"dropdown\"\n [canOpen]=\"canOpen\"\n [(open)]=\"open\"\n>\n <tui-primitive-textfield\n iconAlign=\"left\"\n tuiTextfieldSize=\"m\"\n iconContent=\"tuiIconSearch\"\n [pseudoFocused]=\"open || null\"\n [tuiTextfieldCleaner]=\"true\"\n [tuiTextfieldLabelOutside]=\"true\"\n [value]=\"search\"\n (valueChange)=\"onSearchChange($event)\"\n >\n {{ searchText }}\n </tui-primitive-textfield>\n <ng-template\n #dropdown\n let-activeZone\n >\n <tui-data-list>\n <tui-opt-group\n *ngFor=\"let group of filtered; let index = index\"\n [label]=\"labels[index] || ''\"\n >\n <a\n *ngFor=\"let item of group\"\n tuiOption\n [routerLink]=\"item.route\"\n (click)=\"onClick()\"\n >\n {{ item.title }}\n </a>\n </tui-opt-group>\n </tui-data-list>\n </ng-template>\n</tui-hosted-dropdown>\n\n<nav class=\"t-navigation\">\n <tui-scrollbar\n class=\"t-scrollbar\"\n [tuiMode]=\"mode$ | async\"\n >\n <tui-accordion\n [closeOthers]=\"false\"\n [rounded]=\"false\"\n >\n <tui-accordion-item\n *ngFor=\"let label of labels; index as index\"\n size=\"s\"\n [borders]=\"null\"\n [(open)]=\"!!openPagesArr[index]\"\n >\n <span class=\"t-label\">\n <strong>{{ label }}</strong>\n </span>\n <ng-template tuiAccordionItemContent>\n <div class=\"t-section\">\n <ng-container\n *ngFor=\"let item of items[index]; index as subIndex\"\n [ngTemplateOutlet]=\"pages\"\n [ngTemplateOutletContext]=\"{item: item, index: index * 100 + subIndex}\"\n ></ng-container>\n </div>\n </ng-template>\n </tui-accordion-item>\n </tui-accordion>\n <div class=\"t-items-container\">\n <ng-container\n *ngFor=\"let item of itemsWithoutSections; let index = index\"\n [ngTemplateOutlet]=\"pages\"\n [ngTemplateOutletContext]=\"{item: item, index: items.length - 1 + index}\"\n ></ng-container>\n </div>\n\n <ng-template\n #pages\n let-item=\"item\"\n let-index=\"index\"\n >\n <a\n *ngIf=\"!item.subPages; else subPages\"\n tuiLink\n routerLinkActive=\"t-sublink_active\"\n class=\"t-sublink\"\n [routerLink]=\"item.route\"\n [scrollIntoView]=\"isActive(item.route)\"\n (click)=\"closeMenu()\"\n >\n {{ item.title }}\n </a>\n <ng-template #subPages>\n <div\n routerLinkActive\n class=\"t-subsection\"\n [routerLinkActiveOptions]=\"{exact: false}\"\n >\n <button\n *ngIf=\"item.subPages\"\n tuiLink\n type=\"button\"\n class=\"t-sublink t-sublink_subsection\"\n (click)=\"onGroupClick(index)\"\n >\n <tui-svg\n src=\"tuiIconChevronRight\"\n class=\"t-chevron\"\n [class.t-chevron_active]=\"!!openPagesGroupsArr[index]\"\n ></tui-svg>\n {{ item.title }}\n </button>\n <tui-expand\n class=\"t-expand\"\n [expanded]=\"!!openPagesGroupsArr[index]\"\n >\n <div class=\"t-section t-section_bordered\">\n <a\n *ngFor=\"let subPage of item.subPages\"\n tuiLink\n routerLinkActive=\"t-sublink_active\"\n class=\"t-sublink t-sublink_small\"\n [routerLink]=\"subPage.route\"\n [scrollIntoView]=\"isActive(subPage.route)\"\n (click)=\"closeMenu()\"\n >\n {{ subPage.title }}\n </a>\n </div>\n </tui-expand>\n </div>\n </ng-template>\n </ng-template>\n </tui-scrollbar>\n</nav>\n\n<ng-content></ng-content>\n",
1756
- providers: NAVIGATION_PROVIDERS,
1757
- changeDetection: core.ChangeDetectionStrategy.OnPush,
1758
- styles: [":host{z-index:1;display:flex;flex-direction:column;text-align:center;background:var(--tui-base-01)}.t-input{display:block;margin:1.25rem}.t-navigation{display:flex;max-height:100%;min-height:0;flex:1 1 0;text-align:left}.t-scrollbar{width:100%;scroll-behavior:smooth}.t-items-container{display:flex;flex-direction:column;padding:0 1rem}.t-label{margin-left:.5rem}.t-expand{margin-left:.25rem}.t-section{display:flex;flex-direction:column;align-items:flex-start;margin:-1rem 0 -.5rem}.t-section_bordered{margin:.5rem 0;border-left:1px solid var(--tui-base-03)}.t-subsection{margin-left:.5rem}.t-sublink{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:1rem 0 0;border:0;background:0 0;font-size:inherit;line-height:inherit;font:var(--tui-font-text-m);margin-left:.5rem}.t-sublink_small{margin-left:1rem;line-height:1.5rem;padding-top:.5rem}.t-sublink_subsection{margin-left:0;line-height:1.6rem}.t-sublink_active{color:var(--tui-text-01)}.t-chevron{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;width:1rem;height:1rem;margin:-.25rem .25rem 0 -.1875rem}.t-chevron_active{transform:rotate(90deg)}"]
1759
- }),
1760
- __param(0, core.Inject(core.ChangeDetectorRef)),
1761
- __param(1, core.Inject(platformBrowser.Title)),
1762
- __param(2, core.Inject(NAVIGATION_TITLE)),
1763
- __param(3, core.Inject(common.DOCUMENT)),
1764
- __param(4, core.Inject(core$1.TuiModeDirective)),
1765
- __param(5, core.Optional()),
1766
- __param(5, core.Inject(addonMobile.TuiSidebarDirective)),
1767
- __param(6, core.Inject(NAVIGATION_LABELS)),
1768
- __param(7, core.Inject(NAVIGATION_ITEMS)),
1769
- __param(8, core.Inject(TUI_DOC_SEARCH_TEXT)),
1770
- __param(9, core.Inject(router.Router)),
1771
- __param(10, core.Inject(router.ActivatedRoute)),
1772
- __param(11, core.Inject(cdk.TuiDestroyService)),
1773
- __param(12, core.Inject(TUI_DOC_PAGE_LOADED)),
1774
- __param(13, core.Inject(TUI_DOC_SCROLL_BEHAVIOR))
1775
- ], TuiDocNavigationComponent);
1776
1940
  return TuiDocNavigationComponent;
1777
1941
  }());
1942
+ TuiDocNavigationComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocNavigationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i7.Title }, { token: NAVIGATION_TITLE }, { token: i4.DOCUMENT }, { token: i1.TuiModeDirective }, { token: i4$1.TuiSidebarDirective, optional: true }, { token: NAVIGATION_LABELS }, { token: NAVIGATION_ITEMS }, { token: TUI_DOC_SEARCH_TEXT }, { token: i5$1.Router }, { token: i5$1.ActivatedRoute }, { token: i3.TuiDestroyService }, { token: TUI_DOC_PAGE_LOADED }, { token: TUI_DOC_SCROLL_BEHAVIOR }], target: i0__namespace.ɵɵFactoryTarget.Component });
1943
+ TuiDocNavigationComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiDocNavigationComponent, selector: "tui-doc-navigation", host: { properties: { "class._open": "this.menuOpen" } }, providers: NAVIGATION_PROVIDERS, ngImport: i0__namespace, template: "<tui-hosted-dropdown\n *tuiLet=\"filteredItems as filtered\"\n tuiAutoFocus\n tuiDropdownLimitWidth=\"fixed\"\n class=\"t-input\"\n [autoFocus]=\"!!sidebar\"\n [content]=\"dropdown\"\n [canOpen]=\"canOpen\"\n [(open)]=\"open\"\n>\n <tui-primitive-textfield\n tuiTextfieldSize=\"m\"\n tuiTextfieldIconLeft=\"tuiIconSearch\"\n [pseudoFocus]=\"open || null\"\n [tuiTextfieldCleaner]=\"true\"\n [tuiTextfieldLabelOutside]=\"true\"\n [value]=\"search\"\n (valueChange)=\"onSearchChange($event)\"\n >\n {{ searchText }}\n </tui-primitive-textfield>\n <ng-template\n #dropdown\n let-activeZone\n >\n <tui-data-list>\n <tui-opt-group\n *ngFor=\"let group of filtered; let index = index\"\n [label]=\"labels[index] || ''\"\n >\n <a\n *ngFor=\"let item of group\"\n tuiOption\n [routerLink]=\"item.route\"\n (click)=\"onClick()\"\n >\n {{ item.title }}\n </a>\n </tui-opt-group>\n </tui-data-list>\n </ng-template>\n</tui-hosted-dropdown>\n\n<nav class=\"t-navigation\">\n <tui-scrollbar\n class=\"t-scrollbar\"\n [tuiMode]=\"mode$ | async\"\n >\n <tui-accordion\n [closeOthers]=\"false\"\n [rounded]=\"false\"\n >\n <tui-accordion-item\n *ngFor=\"let label of labels; index as index\"\n size=\"s\"\n [borders]=\"null\"\n [(open)]=\"!!openPagesArr[index]\"\n >\n <span class=\"t-label\">\n <strong>{{ label }}</strong>\n </span>\n <ng-template tuiAccordionItemContent>\n <div class=\"t-section\">\n <ng-container\n *ngFor=\"let item of items[index]; index as subIndex\"\n [ngTemplateOutlet]=\"pages\"\n [ngTemplateOutletContext]=\"{item: item, index: index * 100 + subIndex}\"\n ></ng-container>\n </div>\n </ng-template>\n </tui-accordion-item>\n </tui-accordion>\n <div class=\"t-items-container\">\n <ng-container\n *ngFor=\"let item of itemsWithoutSections; let index = index\"\n [ngTemplateOutlet]=\"pages\"\n [ngTemplateOutletContext]=\"{item: item, index: items.length - 1 + index}\"\n ></ng-container>\n </div>\n\n <ng-template\n #pages\n let-item=\"item\"\n let-index=\"index\"\n >\n <a\n *ngIf=\"!item.subPages; else subPages\"\n tuiLink\n routerLinkActive=\"t-sublink_active\"\n class=\"t-sublink\"\n [routerLink]=\"item.route\"\n [scrollIntoView]=\"isActive(item.route)\"\n (click)=\"closeMenu()\"\n >\n {{ item.title }}\n </a>\n <ng-template #subPages>\n <div\n routerLinkActive\n class=\"t-subsection\"\n [routerLinkActiveOptions]=\"{exact: false}\"\n >\n <button\n *ngIf=\"item.subPages\"\n tuiLink\n type=\"button\"\n class=\"t-sublink t-sublink_subsection\"\n (click)=\"onGroupClick(index)\"\n >\n <tui-svg\n src=\"tuiIconChevronRight\"\n class=\"t-chevron\"\n [class.t-chevron_active]=\"!!openPagesGroupsArr[index]\"\n ></tui-svg>\n {{ item.title }}\n </button>\n <tui-expand\n class=\"t-expand\"\n [expanded]=\"!!openPagesGroupsArr[index]\"\n >\n <div class=\"t-section t-section_bordered\">\n <a\n *ngFor=\"let subPage of item.subPages\"\n tuiLink\n routerLinkActive=\"t-sublink_active\"\n class=\"t-sublink t-sublink_small\"\n [routerLink]=\"subPage.route\"\n [scrollIntoView]=\"isActive(subPage.route)\"\n (click)=\"closeMenu()\"\n >\n {{ subPage.title }}\n </a>\n </div>\n </tui-expand>\n </div>\n </ng-template>\n </ng-template>\n </tui-scrollbar>\n</nav>\n\n<ng-content></ng-content>\n", styles: [":host{z-index:1;display:flex;flex-direction:column;text-align:center;background:var(--tui-base-01)}.t-input{display:block;margin:1.25rem}.t-navigation{display:flex;max-height:100%;min-height:0;flex:1 1 0;text-align:left}.t-scrollbar{width:100%;scroll-behavior:smooth}.t-items-container{display:flex;flex-direction:column;padding:0 1rem}.t-label{margin-left:.5rem}.t-expand{margin-left:.25rem}.t-section{display:flex;flex-direction:column;align-items:flex-start;margin:-1rem 0 -.5rem}.t-section_bordered{margin:.5rem 0;border-left:1px solid var(--tui-base-03)}.t-subsection{margin-left:.5rem}.t-sublink{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:1rem 0 0;border:0;background:none;font-size:inherit;line-height:inherit;font:var(--tui-font-text-m);margin-left:.5rem}.t-sublink_small{margin-left:1rem;line-height:1.5rem;padding-top:.5rem}.t-sublink_subsection{margin-left:0;line-height:1.6rem}.t-sublink_active{color:var(--tui-text-01)}.t-chevron{transition-property:transform;transition-duration:.3s;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:1rem;height:1rem;margin:-.25rem .25rem 0 -.1875rem}.t-chevron_active{transform:rotate(90deg)}\n"], components: [{ type: i1__namespace.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "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.TuiDataListComponent, selector: "tui-data-list", inputs: ["role", "emptyContent"] }, { type: i1__namespace.TuiOptionComponent, selector: "button[tuiOption], a[tuiOption]", inputs: ["size", "role", "disabled", "value"] }, { type: i1__namespace.TuiScrollbarComponent, selector: "tui-scrollbar", inputs: ["hidden"] }, { type: i2__namespace$1.TuiAccordionComponent, selector: "tui-accordion", inputs: ["closeOthers", "rounded"] }, { type: i2__namespace$1.TuiAccordionItemComponent, selector: "tui-accordion-item", inputs: ["noPadding", "showArrow", "borders", "size", "disabled", "disableHover", "open", "async"], outputs: ["openChange"] }, { type: i1__namespace.TuiLinkComponent, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo", "icon", "iconAlign", "iconRotated", "mode"], exportAs: ["tuiLink"] }, { type: i1__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i1__namespace.TuiExpandComponent, selector: "tui-expand", inputs: ["async", "expanded"] }], directives: [{ type: i3__namespace.TuiLetDirective, selector: "[tuiLet]", inputs: ["tuiLet"] }, { type: i3__namespace.TuiAutoFocusDirective, selector: "[tuiAutoFocus]", inputs: ["autoFocus"] }, { type: i1__namespace.TuiDropdownControllerDirective, selector: "[tuiDropdownAlign], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownSided]", inputs: ["tuiDropdownAlign", "tuiDropdownDirection", "tuiDropdownLimitWidth", "tuiDropdownMinHeight", "tuiDropdownMaxHeight", "tuiDropdownSided"] }, { type: i1__namespace.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i1__namespace.TuiTextfieldSizeDirective, selector: "[tuiTextfieldSize]", inputs: ["tuiTextfieldSize"] }, { type: i1__namespace.TuiTextfieldIconLeftDirective, selector: "[tuiTextfieldIconLeft]", inputs: ["tuiTextfieldIconLeft"] }, { type: i1__namespace.TuiTextfieldCleanerDirective, selector: "[tuiTextfieldCleaner]", inputs: ["tuiTextfieldCleaner"] }, { type: i1__namespace.TuiTextfieldLabelOutsideDirective, selector: "[tuiTextfieldLabelOutside]", inputs: ["tuiTextfieldLabelOutside"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.TuiOptGroupDirective, selector: "tui-opt-group", inputs: ["label"] }, { type: i5__namespace.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i1__namespace.TuiModeDirective, selector: "[tuiMode]", inputs: ["tuiMode"] }, { type: i2__namespace$1.TuiAccordionItemContentDirective, selector: "ng-template[tuiAccordionItemContent]" }, { type: i4__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], exportAs: ["routerLinkActive"] }, { type: ScrollIntoViewDirective, selector: "[scrollIntoView]", inputs: ["scrollIntoView"] }], pipes: { "async": i4__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1944
+ __decorate([
1945
+ i3.tuiPure
1946
+ ], TuiDocNavigationComponent.prototype, "filterItems", null);
1947
+ __decorate([
1948
+ i3.tuiPure
1949
+ ], TuiDocNavigationComponent.prototype, "flattenSubPages", null);
1950
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocNavigationComponent, decorators: [{
1951
+ type: i0.Component,
1952
+ args: [{
1953
+ selector: "tui-doc-navigation",
1954
+ templateUrl: "navigation.template.html",
1955
+ styleUrls: ["navigation.style.less"],
1956
+ providers: NAVIGATION_PROVIDERS,
1957
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1958
+ }]
1959
+ }], ctorParameters: function () {
1960
+ return [{ type: i0__namespace.ChangeDetectorRef, decorators: [{
1961
+ type: i0.Inject,
1962
+ args: [i0.ChangeDetectorRef]
1963
+ }] }, { type: i7__namespace.Title, decorators: [{
1964
+ type: i0.Inject,
1965
+ args: [i7.Title]
1966
+ }] }, { type: i8__namespace.Observable, decorators: [{
1967
+ type: i0.Inject,
1968
+ args: [NAVIGATION_TITLE]
1969
+ }] }, { type: Document, decorators: [{
1970
+ type: i0.Inject,
1971
+ args: [i4.DOCUMENT]
1972
+ }] }, { type: i1__namespace.TuiModeDirective, decorators: [{
1973
+ type: i0.Inject,
1974
+ args: [i1.TuiModeDirective]
1975
+ }] }, { type: undefined, decorators: [{
1976
+ type: i0.Optional
1977
+ }, {
1978
+ type: i0.Inject,
1979
+ args: [i4$1.TuiSidebarDirective]
1980
+ }] }, { type: undefined, decorators: [{
1981
+ type: i0.Inject,
1982
+ args: [NAVIGATION_LABELS]
1983
+ }] }, { type: undefined, decorators: [{
1984
+ type: i0.Inject,
1985
+ args: [NAVIGATION_ITEMS]
1986
+ }] }, { type: undefined, decorators: [{
1987
+ type: i0.Inject,
1988
+ args: [TUI_DOC_SEARCH_TEXT]
1989
+ }] }, { type: i5__namespace.Router, decorators: [{
1990
+ type: i0.Inject,
1991
+ args: [i5$1.Router]
1992
+ }] }, { type: i5__namespace.ActivatedRoute, decorators: [{
1993
+ type: i0.Inject,
1994
+ args: [i5$1.ActivatedRoute]
1995
+ }] }, { type: i8__namespace.Observable, decorators: [{
1996
+ type: i0.Inject,
1997
+ args: [i3.TuiDestroyService]
1998
+ }] }, { type: i8__namespace.Observable, decorators: [{
1999
+ type: i0.Inject,
2000
+ args: [TUI_DOC_PAGE_LOADED]
2001
+ }] }, { type: undefined, decorators: [{
2002
+ type: i0.Inject,
2003
+ args: [TUI_DOC_SCROLL_BEHAVIOR]
2004
+ }] }];
2005
+ }, propDecorators: { menuOpen: [{
2006
+ type: i0.HostBinding,
2007
+ args: ["class._open"]
2008
+ }], filterItems: [], flattenSubPages: [] } });
1778
2009
 
1779
- var TuiDocNavigationModule = /** @class */ (function () {
1780
- function TuiDocNavigationModule() {
1781
- }
1782
- TuiDocNavigationModule = __decorate([
1783
- core.NgModule({
1784
- imports: [
1785
- common.CommonModule,
1786
- forms.FormsModule,
1787
- router.RouterModule,
1788
- ScrollIntoViewModule,
1789
- TuiScrollIntoViewLinkModule,
1790
- core$1.TuiButtonModule,
1791
- core$1.TuiPrimitiveTextfieldModule,
1792
- core$1.TuiTextfieldControllerModule,
1793
- cdk.TuiActiveZoneModule,
1794
- cdk.TuiLetModule,
1795
- core$1.TuiModeModule,
1796
- core$1.TuiLinkModule,
1797
- core$1.TuiExpandModule,
1798
- core$1.TuiHostedDropdownModule,
1799
- core$1.TuiDropdownControllerModule,
1800
- kit.TuiAccordionModule,
1801
- core$1.TuiScrollbarModule,
1802
- core$1.TuiSvgModule,
1803
- core$1.TuiDataListModule,
1804
- cdk.TuiAutoFocusModule,
1805
- ],
1806
- declarations: [TuiDocNavigationComponent],
1807
- exports: [TuiDocNavigationComponent],
1808
- })
1809
- ], TuiDocNavigationModule);
1810
- return TuiDocNavigationModule;
1811
- }());
1812
-
1813
- var TUI_DOC_LOGO = new core.InjectionToken('Main logo', {
1814
- factory: function () { return ''; },
2010
+ var TUI_DOC_LOGO = new i0.InjectionToken("Main logo", {
2011
+ factory: function () { return ""; },
1815
2012
  });
1816
2013
 
1817
2014
  var TuiDocHeaderComponent = /** @class */ (function () {
@@ -1820,8 +2017,8 @@
1820
2017
  this.menu = menu;
1821
2018
  this.router = router;
1822
2019
  this.swipes$ = swipes$;
1823
- this.stream$ = new rxjs.Subject();
1824
- this.open$ = rxjs.merge(this.router.events.pipe(operators.mapTo(false)), this.stream$, this.swipes$.pipe(operators.filter(function (swipe) { return swipe.direction === 'left' || swipe.direction === 'right'; }), operators.map(function (swipe) { return swipe.direction === 'right'; }))).pipe(operators.startWith(false), operators.distinctUntilChanged());
2020
+ this.stream$ = new i8.Subject();
2021
+ this.open$ = i8.merge(this.router.events.pipe(operators.mapTo(false)), this.stream$, this.swipes$.pipe(operators.filter(function (swipe) { return swipe.direction === "left" || swipe.direction === "right"; }), operators.map(function (swipe) { return swipe.direction === "right"; }))).pipe(operators.startWith(false), operators.distinctUntilChanged());
1825
2022
  }
1826
2023
  TuiDocHeaderComponent.prototype.onClick = function () {
1827
2024
  this.stream$.next(true);
@@ -1831,95 +2028,316 @@
1831
2028
  this.stream$.next(false);
1832
2029
  }
1833
2030
  };
1834
- TuiDocHeaderComponent.ctorParameters = function () { return [
1835
- { type: undefined, decorators: [{ type: core.Inject, args: [TUI_DOC_LOGO,] }] },
1836
- { type: String, decorators: [{ type: core.Inject, args: [TUI_DOC_MENU_TEXT,] }] },
1837
- { type: router.Router, decorators: [{ type: core.Inject, args: [router.Router,] }] },
1838
- { type: cdk.TuiSwipeService, decorators: [{ type: core.Inject, args: [cdk.TuiSwipeService,] }] }
1839
- ]; };
1840
- TuiDocHeaderComponent = __decorate([
1841
- core.Component({
1842
- selector: 'header[tuiDocHeader]',
1843
- template: "<button\n tuiIconButton\n icon=\"tuiIconMenuLarge\"\n appearance=\"icon\"\n class=\"t-menu\"\n [title]=\"menu\"\n (click)=\"onClick()\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-doc-navigation\n *tuiSidebar=\"!!(open$ | async)\"\n class=\"t-navigation\"\n ></tui-doc-navigation>\n</button>\n<div\n polymorpheus-outlet\n class=\"t-logo\"\n [content]=\"logo\"\n>\n <ng-template let-src>\n <img\n alt=\"Logo\"\n class=\"t-img\"\n [src]=\"src\"\n />\n </ng-template>\n</div>\n<ng-content></ng-content>\n",
1844
- changeDetection: core.ChangeDetectionStrategy.OnPush,
1845
- styles: [":host{box-shadow:0 .125rem 1rem rgba(0,0,0,.08);position:fixed;top:0;left:0;right:0;z-index:1;display:flex;height:3.9375rem;align-items:center;padding:0 1.25rem;background:var(--tui-base-01);border-bottom:1px solid var(--tui-base-03)}.t-logo{margin-right:auto;font:var(--tui-font-heading-5)}.t-img{display:block}.t-menu{margin-left:-1.25rem}@media screen and (min-width:48em){.t-menu{display:none}}.t-navigation{min-height:100%}"]
1846
- }),
1847
- __param(0, core.Inject(TUI_DOC_LOGO)),
1848
- __param(1, core.Inject(TUI_DOC_MENU_TEXT)),
1849
- __param(2, core.Inject(router.Router)),
1850
- __param(3, core.Inject(cdk.TuiSwipeService))
1851
- ], TuiDocHeaderComponent);
1852
2031
  return TuiDocHeaderComponent;
1853
2032
  }());
2033
+ TuiDocHeaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocHeaderComponent, deps: [{ token: TUI_DOC_LOGO }, { token: TUI_DOC_MENU_TEXT }, { token: i5$1.Router }, { token: i3.TuiSwipeService }], target: i0__namespace.ɵɵFactoryTarget.Component });
2034
+ TuiDocHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiDocHeaderComponent, selector: "header[tuiDocHeader]", ngImport: i0__namespace, template: "<button\n tuiIconButton\n icon=\"tuiIconMenuLarge\"\n appearance=\"icon\"\n class=\"t-menu\"\n [title]=\"menu\"\n (click)=\"onClick()\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-doc-navigation\n *tuiSidebar=\"!!(open$ | async)\"\n class=\"t-navigation\"\n ></tui-doc-navigation>\n</button>\n<div class=\"t-logo\">\n <img\n *polymorpheusOutlet=\"logo as src\"\n alt=\"Logo\"\n class=\"t-img\"\n [src]=\"src\"\n />\n</div>\n<ng-content></ng-content>\n", styles: [":host{box-shadow:0 .125rem 1rem rgba(0,0,0,.08);position:fixed;top:0;left:0;right:0;z-index:1;display:flex;height:3.9375rem;align-items:center;padding:0 1.25rem;background:var(--tui-base-01);border-bottom:1px solid var(--tui-base-03)}.t-logo{margin-right:auto;font:var(--tui-font-heading-5)}.t-img{display:block}.t-menu{margin-left:-1.25rem}@media screen and (min-width: 48em){.t-menu{display:none}}.t-navigation{min-height:100%}\n"], components: [{ type: i1__namespace.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }, { type: TuiDocNavigationComponent, selector: "tui-doc-navigation" }], 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: i4__namespace$1.TuiSidebarDirective, selector: "[tuiSidebar]", inputs: ["tuiSidebarDirection", "tuiSidebarAutoWidth", "tuiSidebar"] }, { type: i6__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], pipes: { "async": i4__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
2035
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocHeaderComponent, decorators: [{
2036
+ type: i0.Component,
2037
+ args: [{
2038
+ selector: "header[tuiDocHeader]",
2039
+ templateUrl: "./header.template.html",
2040
+ styleUrls: ["./header.style.less"],
2041
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
2042
+ }]
2043
+ }], ctorParameters: function () {
2044
+ return [{ type: undefined, decorators: [{
2045
+ type: i0.Inject,
2046
+ args: [TUI_DOC_LOGO]
2047
+ }] }, { type: undefined, decorators: [{
2048
+ type: i0.Inject,
2049
+ args: [TUI_DOC_MENU_TEXT]
2050
+ }] }, { type: i5__namespace.Router, decorators: [{
2051
+ type: i0.Inject,
2052
+ args: [i5$1.Router]
2053
+ }] }, { type: i3__namespace.TuiSwipeService, decorators: [{
2054
+ type: i0.Inject,
2055
+ args: [i3.TuiSwipeService]
2056
+ }] }];
2057
+ } });
2058
+
2059
+ // @dynamic
2060
+ var TuiDocMainComponent = /** @class */ (function () {
2061
+ function TuiDocMainComponent(storage, windowRef) {
2062
+ this.storage = storage;
2063
+ this.windowRef = windowRef;
2064
+ this.night = this.storage.getItem("night") === "true" ||
2065
+ (this.storage.getItem("night") === null &&
2066
+ this.windowRef.matchMedia("(prefers-color-scheme: dark)").matches);
2067
+ this.change$ = new i8.Subject();
2068
+ }
2069
+ Object.defineProperty(TuiDocMainComponent.prototype, "mode", {
2070
+ get: function () {
2071
+ return this.night ? "onDark" : null;
2072
+ },
2073
+ enumerable: false,
2074
+ configurable: true
2075
+ });
2076
+ TuiDocMainComponent.prototype.onMode = function (night) {
2077
+ this.night = night;
2078
+ this.change$.next();
2079
+ this.storage.setItem("night", String(night));
2080
+ };
2081
+ return TuiDocMainComponent;
2082
+ }());
2083
+ TuiDocMainComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocMainComponent, deps: [{ token: common.LOCAL_STORAGE }, { token: common.WINDOW }], target: i0__namespace.ɵɵFactoryTarget.Component });
2084
+ TuiDocMainComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiDocMainComponent, selector: "tui-doc-main", host: { properties: { "attr.data-mode": "this.mode" } }, providers: [
2085
+ {
2086
+ provide: i1.TuiModeDirective,
2087
+ useExisting: i0.forwardRef(function () { return TuiDocMainComponent; }),
2088
+ },
2089
+ i3.TuiSwipeService,
2090
+ ], ngImport: i0__namespace, template: "<tui-theme-night *ngIf=\"night\"></tui-theme-night>\n<tui-root>\n <div class=\"tui-doc-page\">\n <tui-doc-navigation class=\"tui-doc-navigation\">\n <ng-content select=\"tuiDocNavigation\"></ng-content>\n </tui-doc-navigation>\n <div class=\"tui-doc-content\">\n <router-outlet class=\"tui-doc-outlet\"></router-outlet>\n </div>\n </div>\n <header tuiDocHeader>\n <label class=\"night-mode\">\n Night mode\n <tui-toggle\n class=\"tui-toggle\"\n [ngModel]=\"night\"\n (ngModelChange)=\"onMode($event)\"\n ></tui-toggle>\n </label>\n <ng-content select=\"tuiDocHeader\"></ng-content>\n </header>\n <ng-container ngProjectAs=\"tuiOverContent\">\n <ng-content select=\"tuiOverContent\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverDialogs\">\n <ng-content select=\"tuiOverDialogs\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverAlerts\">\n <ng-content select=\"tuiOverAlerts\"></ng-content>\n </ng-container>\n <!-- TODO: 3.0 Remove-->\n <ng-container ngProjectAs=\"tuiOverNotifications\">\n <ng-content select=\"tuiOverNotifications\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverPortals\">\n <ng-content select=\"tuiOverPortals\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverHints\">\n <ng-content select=\"tuiOverHints\"></ng-content>\n </ng-container>\n</tui-root>\n", styles: ["html{scroll-padding-top:4rem;height:auto}tui-root>tui-scroll-controls>.bar_vertical{top:4rem!important}@-webkit-keyframes tuiShaking{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-.3125rem)}20%,40%,60%,80%{transform:translate(.3125rem)}}@keyframes tuiShaking{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-.3125rem)}20%,40%,60%,80%{transform:translate(.3125rem)}}body{background:var(--tui-base-01);height:auto}tui-doc-main{display:block}code:not(.hljs):not([class*=\"language-\"]):not(.exception){transition-property:background;transition-duration:.3s;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;background:var(--tui-base-02);color:var(--tui-text-02);vertical-align:middle;box-shadow:inset 0 -2px var(--tui-secondary);padding:.375rem .5rem;font-size:.875rem;border-radius:.5rem}button:focus code,a:focus code{background:var(--tui-base-01)}.tui-doc-page{position:relative;z-index:0;padding-top:4rem}tui-doc-navigation.tui-doc-navigation{position:fixed;top:4rem;bottom:0;width:16.25rem;border-right:1px solid var(--tui-base-03)}@media screen and (max-width: 47.9375em){tui-doc-navigation.tui-doc-navigation{display:none}}.tui-doc-content{margin-left:16.25rem}@media screen and (max-width: 47.9375em){.tui-doc-content{margin-left:0}}.tui-doc-outlet+*{display:block}.tui-doc-animated-example{-webkit-animation:1s .3s tuiShaking;animation:1s .3s tuiShaking}label.night-mode{cursor:pointer}label.night-mode .tui-toggle{margin-left:.5rem}.hljs-tag{background:none}.hljs{display:block;overflow-x:auto;padding:.5em;color:var(--tui-text-01);background-color:var(--tui-clear-disabled)}.hljs.hljs-line-numbers{background:transparent}.hljs-subst,.hljs-title{font-weight:normal;color:var(--tui-text-01)}.hljs-comment,.hljs-quote{color:var(--tui-text-03);font-style:italic}.hljs-meta{color:#e38162}.hljs-section,.hljs-name,.hljs-literal,.hljs-keyword,.hljs-selector-tag,.hljs-type,.hljs-selector-id,.hljs-selector-class{font-weight:bold;color:var(--tui-link)}.hljs-attribute,.hljs-number,.hljs-regexp,.hljs-link{font-weight:bold;color:var(--tui-support-06)}.hljs-number,.hljs-regexp,.hljs-link{font-weight:normal}.hljs-string{color:var(--tui-positive);font-weight:bold}.hljs-symbol,.hljs-bullet,.hljs-formula{color:var(--tui-text-01);background:var(--tui-base-02);font-style:italic}.hljs-doctag{text-decoration:underline}.hljs-variable,.hljs-template-variable{color:var(--tui-link-hover)}[data-mode=onDark] .hljs-variable,[data-mode=onDark] .hljs-template-variable{color:var(--tui-warning-fill)}.hljs-addition{background:var(--tui-success-bg)}.hljs-deletion{background:var(--tui-error-bg)}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}.hljs .hljs-line-numbers{padding:0}.hljs-ln-numbers{vertical-align:top;opacity:.3;text-align:right;padding-right:1em!important}\n"], components: [{ type: i1__namespace.TuiThemeNightComponent, selector: "tui-theme-night" }, { type: i1__namespace.TuiRootComponent, selector: "tui-root" }, { type: TuiDocNavigationComponent, selector: "tui-doc-navigation" }, { type: TuiDocHeaderComponent, selector: "header[tuiDocHeader]" }, { type: i2__namespace$1.TuiToggleComponent, selector: "tui-toggle", inputs: ["singleColor", "showIcons", "showLoader", "size"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate"], exportAs: ["outlet"] }, { type: i5__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5__namespace$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
2091
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocMainComponent, decorators: [{
2092
+ type: i0.Component,
2093
+ args: [{
2094
+ selector: "tui-doc-main",
2095
+ templateUrl: "./main.template.html",
2096
+ styleUrls: ["./main.style.less"],
2097
+ encapsulation: i0.ViewEncapsulation.None,
2098
+ providers: [
2099
+ {
2100
+ provide: i1.TuiModeDirective,
2101
+ useExisting: i0.forwardRef(function () { return TuiDocMainComponent; }),
2102
+ },
2103
+ i3.TuiSwipeService,
2104
+ ],
2105
+ }]
2106
+ }], ctorParameters: function () {
2107
+ return [{ type: Storage, decorators: [{
2108
+ type: i0.Inject,
2109
+ args: [common.LOCAL_STORAGE]
2110
+ }] }, { type: Window, decorators: [{
2111
+ type: i0.Inject,
2112
+ args: [common.WINDOW]
2113
+ }] }];
2114
+ }, propDecorators: { mode: [{
2115
+ type: i0.HostBinding,
2116
+ args: ["attr.data-mode"]
2117
+ }] } });
2118
+
2119
+ /**
2120
+ * @deprecated: use {@link TuiScrollIntoViewLinkModule}
2121
+ * TODO: remove in v3.0
2122
+ */
2123
+ // eslint-disable-next-line @typescript-eslint/naming-convention
2124
+ var ScrollIntoViewModule = /** @class */ (function () {
2125
+ function ScrollIntoViewModule() {
2126
+ }
2127
+ return ScrollIntoViewModule;
2128
+ }());
2129
+ ScrollIntoViewModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ScrollIntoViewModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2130
+ ScrollIntoViewModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ScrollIntoViewModule, declarations: [ScrollIntoViewDirective], exports: [ScrollIntoViewDirective] });
2131
+ ScrollIntoViewModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ScrollIntoViewModule });
2132
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ScrollIntoViewModule, decorators: [{
2133
+ type: i0.NgModule,
2134
+ args: [{
2135
+ declarations: [ScrollIntoViewDirective],
2136
+ exports: [ScrollIntoViewDirective],
2137
+ }]
2138
+ }] });
2139
+ var TuiScrollIntoViewLinkModule = /** @class */ (function () {
2140
+ function TuiScrollIntoViewLinkModule() {
2141
+ }
2142
+ return TuiScrollIntoViewLinkModule;
2143
+ }());
2144
+ TuiScrollIntoViewLinkModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiScrollIntoViewLinkModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2145
+ TuiScrollIntoViewLinkModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiScrollIntoViewLinkModule, declarations: [TuiScrollIntoViewLinkDirective], exports: [TuiScrollIntoViewLinkDirective] });
2146
+ TuiScrollIntoViewLinkModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiScrollIntoViewLinkModule });
2147
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiScrollIntoViewLinkModule, decorators: [{
2148
+ type: i0.NgModule,
2149
+ args: [{
2150
+ declarations: [TuiScrollIntoViewLinkDirective],
2151
+ exports: [TuiScrollIntoViewLinkDirective],
2152
+ }]
2153
+ }] });
2154
+
2155
+ var TuiDocNavigationModule = /** @class */ (function () {
2156
+ function TuiDocNavigationModule() {
2157
+ }
2158
+ return TuiDocNavigationModule;
2159
+ }());
2160
+ TuiDocNavigationModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocNavigationModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2161
+ TuiDocNavigationModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocNavigationModule, declarations: [TuiDocNavigationComponent], imports: [i4.CommonModule,
2162
+ i5.FormsModule,
2163
+ i5$1.RouterModule,
2164
+ ScrollIntoViewModule,
2165
+ TuiScrollIntoViewLinkModule,
2166
+ i1.TuiButtonModule,
2167
+ i1.TuiPrimitiveTextfieldModule,
2168
+ i1.TuiTextfieldControllerModule,
2169
+ i3.TuiActiveZoneModule,
2170
+ i3.TuiLetModule,
2171
+ i1.TuiModeModule,
2172
+ i1.TuiLinkModule,
2173
+ i1.TuiExpandModule,
2174
+ i1.TuiHostedDropdownModule,
2175
+ i1.TuiDropdownControllerModule,
2176
+ i2$1.TuiAccordionModule,
2177
+ i1.TuiScrollbarModule,
2178
+ i1.TuiSvgModule,
2179
+ i1.TuiDataListModule,
2180
+ i3.TuiAutoFocusModule], exports: [TuiDocNavigationComponent] });
2181
+ TuiDocNavigationModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocNavigationModule, imports: [[
2182
+ i4.CommonModule,
2183
+ i5.FormsModule,
2184
+ i5$1.RouterModule,
2185
+ ScrollIntoViewModule,
2186
+ TuiScrollIntoViewLinkModule,
2187
+ i1.TuiButtonModule,
2188
+ i1.TuiPrimitiveTextfieldModule,
2189
+ i1.TuiTextfieldControllerModule,
2190
+ i3.TuiActiveZoneModule,
2191
+ i3.TuiLetModule,
2192
+ i1.TuiModeModule,
2193
+ i1.TuiLinkModule,
2194
+ i1.TuiExpandModule,
2195
+ i1.TuiHostedDropdownModule,
2196
+ i1.TuiDropdownControllerModule,
2197
+ i2$1.TuiAccordionModule,
2198
+ i1.TuiScrollbarModule,
2199
+ i1.TuiSvgModule,
2200
+ i1.TuiDataListModule,
2201
+ i3.TuiAutoFocusModule,
2202
+ ]] });
2203
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocNavigationModule, decorators: [{
2204
+ type: i0.NgModule,
2205
+ args: [{
2206
+ imports: [
2207
+ i4.CommonModule,
2208
+ i5.FormsModule,
2209
+ i5$1.RouterModule,
2210
+ ScrollIntoViewModule,
2211
+ TuiScrollIntoViewLinkModule,
2212
+ i1.TuiButtonModule,
2213
+ i1.TuiPrimitiveTextfieldModule,
2214
+ i1.TuiTextfieldControllerModule,
2215
+ i3.TuiActiveZoneModule,
2216
+ i3.TuiLetModule,
2217
+ i1.TuiModeModule,
2218
+ i1.TuiLinkModule,
2219
+ i1.TuiExpandModule,
2220
+ i1.TuiHostedDropdownModule,
2221
+ i1.TuiDropdownControllerModule,
2222
+ i2$1.TuiAccordionModule,
2223
+ i1.TuiScrollbarModule,
2224
+ i1.TuiSvgModule,
2225
+ i1.TuiDataListModule,
2226
+ i3.TuiAutoFocusModule,
2227
+ ],
2228
+ declarations: [TuiDocNavigationComponent],
2229
+ exports: [TuiDocNavigationComponent],
2230
+ }]
2231
+ }] });
1854
2232
 
1855
2233
  var TuiDocHeaderModule = /** @class */ (function () {
1856
2234
  function TuiDocHeaderModule() {
1857
2235
  }
1858
- TuiDocHeaderModule = __decorate([
1859
- core.NgModule({
1860
- imports: [
1861
- common.CommonModule,
1862
- ngPolymorpheus.PolymorpheusModule,
1863
- core$1.TuiButtonModule,
1864
- addonMobile.TuiSidebarModule,
1865
- cdk.TuiActiveZoneModule,
1866
- TuiDocNavigationModule,
1867
- ],
1868
- declarations: [TuiDocHeaderComponent],
1869
- exports: [TuiDocHeaderComponent],
1870
- })
1871
- ], TuiDocHeaderModule);
1872
2236
  return TuiDocHeaderModule;
1873
2237
  }());
2238
+ TuiDocHeaderModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocHeaderModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2239
+ TuiDocHeaderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocHeaderModule, declarations: [TuiDocHeaderComponent], imports: [i4.CommonModule,
2240
+ i6.PolymorpheusModule,
2241
+ i1.TuiButtonModule,
2242
+ i4$1.TuiSidebarModule,
2243
+ i3.TuiActiveZoneModule,
2244
+ TuiDocNavigationModule], exports: [TuiDocHeaderComponent] });
2245
+ TuiDocHeaderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocHeaderModule, imports: [[
2246
+ i4.CommonModule,
2247
+ i6.PolymorpheusModule,
2248
+ i1.TuiButtonModule,
2249
+ i4$1.TuiSidebarModule,
2250
+ i3.TuiActiveZoneModule,
2251
+ TuiDocNavigationModule,
2252
+ ]] });
2253
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocHeaderModule, decorators: [{
2254
+ type: i0.NgModule,
2255
+ args: [{
2256
+ imports: [
2257
+ i4.CommonModule,
2258
+ i6.PolymorpheusModule,
2259
+ i1.TuiButtonModule,
2260
+ i4$1.TuiSidebarModule,
2261
+ i3.TuiActiveZoneModule,
2262
+ TuiDocNavigationModule,
2263
+ ],
2264
+ declarations: [TuiDocHeaderComponent],
2265
+ exports: [TuiDocHeaderComponent],
2266
+ }]
2267
+ }] });
1874
2268
 
1875
2269
  var TuiDocMainModule = /** @class */ (function () {
1876
2270
  function TuiDocMainModule() {
1877
2271
  }
1878
- TuiDocMainModule = __decorate([
1879
- core.NgModule({
1880
- imports: [
1881
- common.CommonModule,
1882
- router.RouterModule,
1883
- forms.FormsModule,
1884
- kit.TuiToggleModule,
1885
- core$1.TuiThemeNightModule,
1886
- TuiDocHeaderModule,
1887
- core$1.TuiRootModule,
1888
- core$1.TuiDialogModule,
1889
- core$1.TuiAlertModule,
1890
- TuiDocNavigationModule,
1891
- ],
1892
- declarations: [TuiDocMainComponent],
1893
- exports: [TuiDocMainComponent],
1894
- })
1895
- ], TuiDocMainModule);
1896
2272
  return TuiDocMainModule;
1897
2273
  }());
2274
+ TuiDocMainModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocMainModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2275
+ TuiDocMainModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocMainModule, declarations: [TuiDocMainComponent], imports: [i4.CommonModule,
2276
+ i5$1.RouterModule,
2277
+ i5.FormsModule,
2278
+ i2$1.TuiToggleModule,
2279
+ i1.TuiThemeNightModule,
2280
+ TuiDocHeaderModule,
2281
+ i1.TuiRootModule,
2282
+ i1.TuiDialogModule,
2283
+ i1.TuiAlertModule,
2284
+ TuiDocNavigationModule], exports: [TuiDocMainComponent] });
2285
+ TuiDocMainModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocMainModule, imports: [[
2286
+ i4.CommonModule,
2287
+ i5$1.RouterModule,
2288
+ i5.FormsModule,
2289
+ i2$1.TuiToggleModule,
2290
+ i1.TuiThemeNightModule,
2291
+ TuiDocHeaderModule,
2292
+ i1.TuiRootModule,
2293
+ i1.TuiDialogModule,
2294
+ i1.TuiAlertModule,
2295
+ TuiDocNavigationModule,
2296
+ ]] });
2297
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocMainModule, decorators: [{
2298
+ type: i0.NgModule,
2299
+ args: [{
2300
+ imports: [
2301
+ i4.CommonModule,
2302
+ i5$1.RouterModule,
2303
+ i5.FormsModule,
2304
+ i2$1.TuiToggleModule,
2305
+ i1.TuiThemeNightModule,
2306
+ TuiDocHeaderModule,
2307
+ i1.TuiRootModule,
2308
+ i1.TuiDialogModule,
2309
+ i1.TuiAlertModule,
2310
+ TuiDocNavigationModule,
2311
+ ],
2312
+ declarations: [TuiDocMainComponent],
2313
+ exports: [TuiDocMainComponent],
2314
+ }]
2315
+ }] });
1898
2316
 
1899
- var TUI_DOC_DEFAULT_TABS = new core.InjectionToken('Array of default tab names', {
2317
+ var TUI_DOC_DEFAULT_TABS = new i0.InjectionToken("Array of default tab names", {
1900
2318
  factory: function () { return []; },
1901
2319
  });
1902
2320
 
1903
- var TUI_DOC_SEE_ALSO = new core.InjectionToken('Array of arrays of related pages', {
2321
+ var TUI_DOC_SEE_ALSO = new i0.InjectionToken("Array of arrays of related pages", {
1904
2322
  factory: function () { return []; },
1905
2323
  });
1906
2324
 
1907
- var PAGE_SEE_ALSO = new core.InjectionToken('Page see also');
2325
+ var PAGE_SEE_ALSO = new i0.InjectionToken("Page see also");
1908
2326
  var PAGE_PROVIDERS = [
1909
2327
  {
1910
2328
  provide: PAGE_SEE_ALSO,
1911
- deps: [core.ElementRef, TUI_DOC_SEE_ALSO],
2329
+ deps: [i0.ElementRef, TUI_DOC_SEE_ALSO],
1912
2330
  useFactory: seeAlsoProviderFactory,
1913
2331
  },
1914
2332
  ];
1915
2333
  // eslint-disable-next-line @typescript-eslint/naming-convention
1916
2334
  function seeAlsoProviderFactory(_a, seeAlsoGroups) {
1917
2335
  var nativeElement = _a.nativeElement;
1918
- var currentHeader = nativeElement.getAttribute('header');
2336
+ var currentHeader = nativeElement.getAttribute("header");
1919
2337
  var groups = seeAlsoGroups.filter(function (group) { return group.includes(currentHeader); }) || [];
1920
2338
  var seeAlsoSet = new Set(groups
1921
2339
  .join()
1922
- .split(',')
2340
+ .split(",")
1923
2341
  .filter(function (component) { return component && component !== currentHeader; }));
1924
2342
  return Array.from(seeAlsoSet);
1925
2343
  }
@@ -1928,81 +2346,86 @@
1928
2346
  function TuiDocPageTabConnectorDirective(template) {
1929
2347
  this.template = template;
1930
2348
  }
1931
- TuiDocPageTabConnectorDirective.ctorParameters = function () { return [
1932
- { type: core.TemplateRef, decorators: [{ type: core.Inject, args: [core.TemplateRef,] }] }
1933
- ]; };
1934
- __decorate([
1935
- core.Input(),
1936
- cdk.tuiDefaultProp()
1937
- ], TuiDocPageTabConnectorDirective.prototype, "pageTab", void 0);
1938
- TuiDocPageTabConnectorDirective = __decorate([
1939
- core.Directive({
1940
- selector: '[pageTab]',
1941
- }),
1942
- __param(0, core.Inject(core.TemplateRef))
1943
- ], TuiDocPageTabConnectorDirective);
1944
2349
  return TuiDocPageTabConnectorDirective;
1945
2350
  }());
2351
+ TuiDocPageTabConnectorDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocPageTabConnectorDirective, deps: [{ token: i0.TemplateRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2352
+ TuiDocPageTabConnectorDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiDocPageTabConnectorDirective, selector: "[pageTab]", inputs: { pageTab: "pageTab" }, ngImport: i0__namespace });
2353
+ __decorate([
2354
+ i3.tuiDefaultProp()
2355
+ ], TuiDocPageTabConnectorDirective.prototype, "pageTab", void 0);
2356
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocPageTabConnectorDirective, decorators: [{
2357
+ type: i0.Directive,
2358
+ args: [{
2359
+ selector: "[pageTab]",
2360
+ }]
2361
+ }], ctorParameters: function () {
2362
+ return [{ type: i0__namespace.TemplateRef, decorators: [{
2363
+ type: i0.Inject,
2364
+ args: [i0.TemplateRef]
2365
+ }] }];
2366
+ }, propDecorators: { pageTab: [{
2367
+ type: i0.Input
2368
+ }] } });
1946
2369
 
1947
- // Ambient type cannot be used without dynamic https://github.com/angular/angular/issues/23395
1948
- // @dynamic
1949
- var TuiDocPageComponent = /** @class */ (function () {
1950
- function TuiDocPageComponent(deprecated, defaultTabs, seeAlso) {
1951
- this.deprecated = deprecated;
1952
- this.defaultTabs = defaultTabs;
1953
- this.seeAlso = seeAlso;
1954
- this.header = '';
1955
- this.package = '';
1956
- this.type = '';
1957
- this.path = '';
1958
- this.tabConnectors = cdk.EMPTY_QUERY;
1959
- this.activeItemIndex = NaN;
2370
+ var TUI_DOC_SOURCE_CODE = new i0.InjectionToken("Source code link", {
2371
+ factory: function () { return null; },
2372
+ });
2373
+
2374
+ var TuiDocSourceCodeComponent = /** @class */ (function () {
2375
+ function TuiDocSourceCodeComponent(sourceCode, text) {
2376
+ this.sourceCode = sourceCode;
2377
+ this.text = text;
2378
+ this.header = "";
2379
+ this.package = "";
2380
+ this.type = "";
2381
+ this.path = "";
1960
2382
  }
1961
- Object.defineProperty(TuiDocPageComponent.prototype, "showSeeAlso", {
2383
+ Object.defineProperty(TuiDocSourceCodeComponent.prototype, "pathOptions", {
1962
2384
  get: function () {
1963
- return !!this.seeAlso.length && this.activeItemIndex === 0;
2385
+ return this.getPathOptions(this.header, this.package, this.type, this.path);
1964
2386
  },
1965
- enumerable: true,
2387
+ enumerable: false,
1966
2388
  configurable: true
1967
2389
  });
1968
- TuiDocPageComponent.prototype.getRouterLink = function (tab) {
1969
- if (tab === void 0) { tab = ''; }
1970
- return "./" + tab.replace(/ /g, '_');
2390
+ TuiDocSourceCodeComponent.prototype.getPathOptions = function (header, packageName, type, path) {
2391
+ return {
2392
+ header: header,
2393
+ package: packageName,
2394
+ type: type,
2395
+ path: path,
2396
+ };
1971
2397
  };
1972
- TuiDocPageComponent.ctorParameters = function () { return [
1973
- { type: String, decorators: [{ type: core.Attribute, args: ['deprecated',] }] },
1974
- { type: undefined, decorators: [{ type: core.Inject, args: [TUI_DOC_DEFAULT_TABS,] }] },
1975
- { type: undefined, decorators: [{ type: core.Inject, args: [PAGE_SEE_ALSO,] }] }
1976
- ]; };
1977
- __decorate([
1978
- core.Input()
1979
- ], TuiDocPageComponent.prototype, "header", void 0);
1980
- __decorate([
1981
- core.Input()
1982
- ], TuiDocPageComponent.prototype, "package", void 0);
1983
- __decorate([
1984
- core.Input()
1985
- ], TuiDocPageComponent.prototype, "type", void 0);
1986
- __decorate([
1987
- core.Input()
1988
- ], TuiDocPageComponent.prototype, "path", void 0);
1989
- __decorate([
1990
- core.ContentChildren(TuiDocPageTabConnectorDirective)
1991
- ], TuiDocPageComponent.prototype, "tabConnectors", void 0);
1992
- TuiDocPageComponent = __decorate([
1993
- core.Component({
1994
- selector: 'tui-doc-page',
1995
- template: "<header class=\"t-header\">\n <h1 class=\"t-title\">\n {{ header }}\n <tui-tag\n *ngIf=\"deprecated !== null\"\n value=\"deprecated\"\n status=\"custom\"\n class=\"t-tag t-tag_deprecated\"\n ></tui-tag>\n <tui-tag\n *ngIf=\"package\"\n status=\"custom\"\n class=\"t-tag t-tag_package\"\n [value]=\"package\"\n [autoColor]=\"true\"\n ></tui-tag>\n </h1>\n <tui-tabs-with-more\n *ngIf=\"tabConnectors.length\"\n class=\"t-tabs\"\n [(activeItemIndex)]=\"activeItemIndex\"\n >\n <ng-container *ngFor=\"let tab of tabConnectors; first as first; index as index\">\n <ng-container *ngIf=\"first; else dynamicTab\">\n <a\n *tuiTab\n tuiTab\n routerLink=\"./\"\n routerLinkActive\n [routerLinkActiveOptions]=\"{exact: true}\"\n >\n {{ tab.pageTab || defaultTabs[index] }}\n </a>\n </ng-container>\n <ng-template #dynamicTab>\n <a\n *tuiTab\n tuiTab\n routerLinkActive\n [routerLink]=\"getRouterLink(tab.pageTab || defaultTabs[index])\"\n >\n {{ tab.pageTab || defaultTabs[index] }}\n </a>\n </ng-template>\n </ng-container>\n </tui-tabs-with-more>\n <tui-doc-source-code\n class=\"t-source-code\"\n [header]=\"header\"\n [package]=\"package\"\n [type]=\"type\"\n [path]=\"path\"\n ></tui-doc-source-code>\n</header>\n<div class=\"t-content\">\n <ng-content></ng-content>\n <tui-doc-see-also\n *ngIf=\"showSeeAlso\"\n class=\"t-see-also\"\n [seeAlso]=\"seeAlso\"\n ></tui-doc-see-also>\n <ng-container *ngFor=\"let tab of tabConnectors; index as index\">\n <ng-container\n *ngIf=\"index === activeItemIndex\"\n [ngTemplateOutlet]=\"tab.template\"\n ></ng-container>\n </ng-container>\n</div>\n",
1996
- changeDetection: core.ChangeDetectionStrategy.OnPush,
1997
- providers: PAGE_PROVIDERS,
1998
- styles: [":host{display:flex;flex-direction:column;min-height:0;flex-basis:0;flex-grow:1}.t-header{display:flex;font:var(--tui-font-heading-3);flex-wrap:wrap;min-height:7.25rem;color:var(--tui-text-01);box-shadow:inset 0 -1px 0 0 var(--tui-base-03);padding:3.75rem 0 0;box-sizing:border-box;flex-shrink:0;margin:0 min(10vw,8.75rem)}:host-context(tui-root._mobile) .t-header{font:var(--tui-font-heading-4);min-height:4.5rem;padding:1.25rem 1.25rem 0;margin:0}.t-title{min-width:100%;font-size:inherit;margin:0}.t-tag{vertical-align:middle;text-transform:uppercase;margin-right:.5rem}.t-tag_deprecated{background-color:var(--tui-error-fill)}.t-tag.t-tag_package{color:#000}.t-tabs{flex:1;margin:1.125rem .3125rem 0 0}:host-context(tui-root._mobile) .t-tabs{margin-top:.25rem}.t-content{padding:2rem 0;margin:0 min(10vw,8.75rem)}:host-context(tui-root._mobile) .t-content{padding:2rem 1.25rem;margin:0}.t-see-also{min-width:18.75rem;width:30%;float:right;margin-left:1.5rem}:host-context(tui-root._mobile) .t-see-also{float:none;width:100%;margin:0 0 1.5rem}.t-source-code{align-self:flex-end;line-height:2.75rem}"]
1999
- }),
2000
- __param(0, core.Attribute('deprecated')),
2001
- __param(1, core.Inject(TUI_DOC_DEFAULT_TABS)),
2002
- __param(2, core.Inject(PAGE_SEE_ALSO))
2003
- ], TuiDocPageComponent);
2004
- return TuiDocPageComponent;
2398
+ return TuiDocSourceCodeComponent;
2005
2399
  }());
2400
+ TuiDocSourceCodeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocSourceCodeComponent, deps: [{ token: TUI_DOC_SOURCE_CODE }, { token: TUI_DOC_SOURCE_CODE_TEXT }], target: i0__namespace.ɵɵFactoryTarget.Component });
2401
+ TuiDocSourceCodeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiDocSourceCodeComponent, selector: "tui-doc-source-code", inputs: { header: "header", package: "package", type: "type", path: "path" }, ngImport: i0__namespace, template: "<a\n *polymorpheusOutlet=\"sourceCode as link; context: pathOptions\"\n tuiIconButton\n type=\"button\"\n icon=\"tuiIconCodeLarge\"\n appearance=\"icon\"\n target=\"_blank\"\n size=\"s\"\n [title]=\"text\"\n [href]=\"link\"\n></a>\n", components: [{ type: i1__namespace.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }], directives: [{ type: i6__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
2402
+ __decorate([
2403
+ i3.tuiPure
2404
+ ], TuiDocSourceCodeComponent.prototype, "getPathOptions", null);
2405
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocSourceCodeComponent, decorators: [{
2406
+ type: i0.Component,
2407
+ args: [{
2408
+ selector: "tui-doc-source-code",
2409
+ templateUrl: "./source-code.template.html",
2410
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
2411
+ }]
2412
+ }], ctorParameters: function () {
2413
+ return [{ type: undefined, decorators: [{
2414
+ type: i0.Inject,
2415
+ args: [TUI_DOC_SOURCE_CODE]
2416
+ }] }, { type: undefined, decorators: [{
2417
+ type: i0.Inject,
2418
+ args: [TUI_DOC_SOURCE_CODE_TEXT]
2419
+ }] }];
2420
+ }, propDecorators: { header: [{
2421
+ type: i0.Input
2422
+ }], package: [{
2423
+ type: i0.Input
2424
+ }], type: [{
2425
+ type: i0.Input
2426
+ }], path: [{
2427
+ type: i0.Input
2428
+ }], getPathOptions: [] } });
2006
2429
 
2007
2430
  // @dynamic
2008
2431
  var TuiDocSeeAlsoComponent = /** @class */ (function () {
@@ -2014,228 +2437,266 @@
2014
2437
  TuiDocSeeAlsoComponent.prototype.getRouterLink = function (pageTitle) {
2015
2438
  for (var i = 0; i < this.pages.length; i++) {
2016
2439
  var page = this.pages
2017
- .map(function (page) { return ('subPages' in page ? page.subPages : [page]); })
2018
- .reduce(function (pages, subPages) { return __spread(pages, subPages); }, [])
2440
+ .map(function (page) { return ("subPages" in page ? page.subPages : [page]); })
2441
+ .reduce(function (pages, subPages) { return __spreadArray(__spreadArray([], __read(pages)), __read(subPages)); }, [])
2019
2442
  .find(function (page) { return page.title === pageTitle; });
2020
2443
  if (page === null || page === void 0 ? void 0 : page.route) {
2021
2444
  return page.route;
2022
2445
  }
2023
2446
  }
2024
- return '';
2447
+ return "";
2025
2448
  };
2026
- TuiDocSeeAlsoComponent.ctorParameters = function () { return [
2027
- { type: String, decorators: [{ type: core.Inject, args: [TUI_DOC_SEE_ALSO_TEXT,] }] },
2028
- { type: undefined, decorators: [{ type: core.Inject, args: [TUI_DOC_PAGES,] }] }
2029
- ]; };
2030
- __decorate([
2031
- core.Input()
2032
- ], TuiDocSeeAlsoComponent.prototype, "seeAlso", void 0);
2033
- TuiDocSeeAlsoComponent = __decorate([
2034
- core.Component({
2035
- selector: 'tui-doc-see-also',
2036
- template: "<h5 class=\"header\">{{ text }}</h5>\n<ng-container *ngFor=\"let item of seeAlso; last as last\">\n <a\n tuiLink\n [routerLink]=\"getRouterLink(item)\"\n >\n {{ item }}\n </a>\n <ng-container *ngIf=\"!last\">{{ ', ' }}</ng-container>\n</ng-container>\n",
2037
- changeDetection: core.ChangeDetectionStrategy.OnPush,
2038
- styles: [":host{display:block}.header{font-size:.6875rem;line-height:1rem;text-transform:uppercase;letter-spacing:.075em;color:var(--tui-text-02);margin:0 0 .5rem;white-space:nowrap}"]
2039
- }),
2040
- __param(0, core.Inject(TUI_DOC_SEE_ALSO_TEXT)),
2041
- __param(1, core.Inject(TUI_DOC_PAGES))
2042
- ], TuiDocSeeAlsoComponent);
2043
2449
  return TuiDocSeeAlsoComponent;
2044
2450
  }());
2451
+ TuiDocSeeAlsoComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocSeeAlsoComponent, deps: [{ token: TUI_DOC_SEE_ALSO_TEXT }, { token: TUI_DOC_PAGES }], target: i0__namespace.ɵɵFactoryTarget.Component });
2452
+ TuiDocSeeAlsoComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiDocSeeAlsoComponent, selector: "tui-doc-see-also", inputs: { seeAlso: "seeAlso" }, ngImport: i0__namespace, template: "<h5 class=\"header\">{{ text }}</h5>\n<ng-container *ngFor=\"let item of seeAlso; last as last\">\n <a\n tuiLink\n [routerLink]=\"getRouterLink(item)\"\n >\n {{ item }}\n </a>\n <ng-container *ngIf=\"!last\">{{ ', ' }}</ng-container>\n</ng-container>\n", styles: [":host{display:block}.header{font-size:.6875rem;line-height:1rem;text-transform:uppercase;letter-spacing:.075em;color:var(--tui-text-02);margin:0 0 .5rem;white-space:nowrap}\n"], components: [{ type: i1__namespace.TuiLinkComponent, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo", "icon", "iconAlign", "iconRotated", "mode"], exportAs: ["tuiLink"] }], directives: [{ type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5__namespace.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
2453
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocSeeAlsoComponent, decorators: [{
2454
+ type: i0.Component,
2455
+ args: [{
2456
+ selector: "tui-doc-see-also",
2457
+ templateUrl: "./see-also.template.html",
2458
+ styleUrls: ["./see-also.style.less"],
2459
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
2460
+ }]
2461
+ }], ctorParameters: function () {
2462
+ return [{ type: undefined, decorators: [{
2463
+ type: i0.Inject,
2464
+ args: [TUI_DOC_SEE_ALSO_TEXT]
2465
+ }] }, { type: undefined, decorators: [{
2466
+ type: i0.Inject,
2467
+ args: [TUI_DOC_PAGES]
2468
+ }] }];
2469
+ }, propDecorators: { seeAlso: [{
2470
+ type: i0.Input
2471
+ }] } });
2045
2472
 
2046
- var TuiDocSeeAlsoModule = /** @class */ (function () {
2047
- function TuiDocSeeAlsoModule() {
2048
- }
2049
- TuiDocSeeAlsoModule = __decorate([
2050
- core.NgModule({
2051
- imports: [common.CommonModule, router.RouterModule, core$1.TuiLinkModule],
2052
- declarations: [TuiDocSeeAlsoComponent],
2053
- exports: [TuiDocSeeAlsoComponent],
2054
- })
2055
- ], TuiDocSeeAlsoModule);
2056
- return TuiDocSeeAlsoModule;
2057
- }());
2058
-
2059
- var TUI_DOC_SOURCE_CODE = new core.InjectionToken('Source code link', {
2060
- factory: function () { return ''; },
2061
- });
2062
-
2063
- var TuiDocSourceCodeComponent = /** @class */ (function () {
2064
- function TuiDocSourceCodeComponent(sourceCode, text) {
2065
- this.sourceCode = sourceCode;
2066
- this.text = text;
2067
- this.header = '';
2068
- this.package = '';
2069
- this.type = '';
2070
- this.path = '';
2473
+ // Ambient type cannot be used without dynamic https://github.com/angular/angular/issues/23395
2474
+ // @dynamic
2475
+ var TuiDocPageComponent = /** @class */ (function () {
2476
+ function TuiDocPageComponent(deprecated, defaultTabs, seeAlso) {
2477
+ this.deprecated = deprecated;
2478
+ this.defaultTabs = defaultTabs;
2479
+ this.seeAlso = seeAlso;
2480
+ this.header = "";
2481
+ this.package = "";
2482
+ this.type = "";
2483
+ this.path = "";
2484
+ this.tabConnectors = i3.EMPTY_QUERY;
2485
+ this.activeItemIndex = NaN;
2071
2486
  }
2072
- Object.defineProperty(TuiDocSourceCodeComponent.prototype, "pathOptions", {
2487
+ Object.defineProperty(TuiDocPageComponent.prototype, "showSeeAlso", {
2073
2488
  get: function () {
2074
- return this.getPathOptions(this.header, this.package, this.type, this.path);
2489
+ return !!this.seeAlso.length && this.activeItemIndex === 0;
2075
2490
  },
2076
- enumerable: true,
2491
+ enumerable: false,
2077
2492
  configurable: true
2078
2493
  });
2079
- TuiDocSourceCodeComponent.prototype.getPathOptions = function (header, packageName, type, path) {
2080
- return {
2081
- header: header,
2082
- package: packageName,
2083
- type: type,
2084
- path: path,
2085
- };
2494
+ TuiDocPageComponent.prototype.getRouterLink = function (tab) {
2495
+ if (tab === void 0) { tab = ""; }
2496
+ return "./" + tab.replace(/ /g, "_");
2086
2497
  };
2087
- TuiDocSourceCodeComponent.ctorParameters = function () { return [
2088
- { type: undefined, decorators: [{ type: core.Inject, args: [TUI_DOC_SOURCE_CODE,] }] },
2089
- { type: String, decorators: [{ type: core.Inject, args: [TUI_DOC_SOURCE_CODE_TEXT,] }] }
2090
- ]; };
2091
- __decorate([
2092
- core.Input()
2093
- ], TuiDocSourceCodeComponent.prototype, "header", void 0);
2094
- __decorate([
2095
- core.Input()
2096
- ], TuiDocSourceCodeComponent.prototype, "package", void 0);
2097
- __decorate([
2098
- core.Input()
2099
- ], TuiDocSourceCodeComponent.prototype, "type", void 0);
2100
- __decorate([
2101
- core.Input()
2102
- ], TuiDocSourceCodeComponent.prototype, "path", void 0);
2103
- __decorate([
2104
- cdk.tuiPure
2105
- ], TuiDocSourceCodeComponent.prototype, "getPathOptions", null);
2106
- TuiDocSourceCodeComponent = __decorate([
2107
- core.Component({
2108
- selector: 'tui-doc-source-code',
2109
- template: "<div\n *ngIf=\"!!sourceCode\"\n polymorpheus-outlet\n [content]=\"sourceCode\"\n [context]=\"pathOptions\"\n>\n <ng-template let-link>\n <a\n *ngIf=\"link\"\n tuiIconButton\n type=\"button\"\n icon=\"tuiIconCodeLarge\"\n appearance=\"icon\"\n target=\"_blank\"\n size=\"s\"\n [title]=\"text\"\n [href]=\"link\"\n ></a>\n </ng-template>\n</div>\n",
2110
- changeDetection: core.ChangeDetectionStrategy.OnPush
2111
- }),
2112
- __param(0, core.Inject(TUI_DOC_SOURCE_CODE)),
2113
- __param(1, core.Inject(TUI_DOC_SOURCE_CODE_TEXT))
2114
- ], TuiDocSourceCodeComponent);
2115
- return TuiDocSourceCodeComponent;
2498
+ return TuiDocPageComponent;
2499
+ }());
2500
+ TuiDocPageComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocPageComponent, deps: [{ token: "deprecated", attribute: true }, { token: TUI_DOC_DEFAULT_TABS }, { token: PAGE_SEE_ALSO }], target: i0__namespace.ɵɵFactoryTarget.Component });
2501
+ TuiDocPageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiDocPageComponent, selector: "tui-doc-page", inputs: { header: "header", package: "package", type: "type", path: "path" }, providers: PAGE_PROVIDERS, queries: [{ propertyName: "tabConnectors", predicate: TuiDocPageTabConnectorDirective }], ngImport: i0__namespace, template: "<header class=\"t-header\">\n <h1 class=\"t-title\">\n {{ header }}\n <tui-tag\n *ngIf=\"deprecated !== null\"\n value=\"deprecated\"\n status=\"custom\"\n class=\"t-tag t-tag_deprecated\"\n ></tui-tag>\n <tui-tag\n *ngIf=\"package\"\n status=\"custom\"\n class=\"t-tag t-tag_package\"\n [value]=\"package\"\n [autoColor]=\"true\"\n ></tui-tag>\n </h1>\n <tui-tabs-with-more\n *ngIf=\"tabConnectors.length\"\n class=\"t-tabs\"\n [(activeItemIndex)]=\"activeItemIndex\"\n >\n <ng-container *ngFor=\"let tab of tabConnectors; first as first; index as index\">\n <ng-container *ngIf=\"first; else dynamicTab\">\n <a\n *tuiItem\n tuiTab\n routerLink=\"./\"\n routerLinkActive\n [routerLinkActiveOptions]=\"{exact: true}\"\n >\n {{ tab.pageTab || defaultTabs[index] }}\n </a>\n </ng-container>\n <ng-template #dynamicTab>\n <a\n *tuiItem\n tuiTab\n routerLinkActive\n [routerLink]=\"getRouterLink(tab.pageTab || defaultTabs[index])\"\n >\n {{ tab.pageTab || defaultTabs[index] }}\n </a>\n </ng-template>\n </ng-container>\n </tui-tabs-with-more>\n <tui-doc-source-code\n class=\"t-source-code\"\n [header]=\"header\"\n [package]=\"package\"\n [type]=\"type\"\n [path]=\"path\"\n ></tui-doc-source-code>\n</header>\n<div class=\"t-content\">\n <ng-content></ng-content>\n <tui-doc-see-also\n *ngIf=\"showSeeAlso\"\n class=\"t-see-also\"\n [seeAlso]=\"seeAlso\"\n ></tui-doc-see-also>\n <ng-container *ngFor=\"let tab of tabConnectors; index as index\">\n <ng-container\n *ngIf=\"index === activeItemIndex\"\n [ngTemplateOutlet]=\"tab.template\"\n ></ng-container>\n </ng-container>\n</div>\n", styles: [":host{display:flex;flex-direction:column;min-height:0;flex-basis:0;flex-grow:1}.t-header{display:flex;font:var(--tui-font-heading-3);flex-wrap:wrap;min-height:7.25rem;color:var(--tui-text-01);box-shadow:inset 0 -1px 0 0 var(--tui-base-03);padding:3.75rem 0 0;box-sizing:border-box;flex-shrink:0;margin:0 min(10vw,8.75rem)}:host-context(tui-root._mobile) .t-header{font:var(--tui-font-heading-4);min-height:4.5rem;padding:1.25rem 1.25rem 0;margin:0}.t-title{min-width:100%;font-size:inherit;margin:0}.t-tag{vertical-align:middle;text-transform:uppercase;margin-right:.5rem}.t-tag_deprecated{background-color:var(--tui-error-fill)}.t-tag.t-tag_package{color:#000}.t-tabs{flex:1;margin:1.125rem .3125rem 0 0}:host-context(tui-root._mobile) .t-tabs{margin-top:.25rem}.t-content{padding:2rem 0;margin:0 min(10vw,8.75rem)}:host-context(tui-root._mobile) .t-content{padding:2rem 1.25rem;margin:0}.t-see-also{min-width:18.75rem;width:30%;float:right;margin-left:1.5rem}:host-context(tui-root._mobile) .t-see-also{float:none;width:100%;margin:0 0 1.5rem}.t-source-code{align-self:flex-end;line-height:2.75rem}\n"], components: [{ type: i2__namespace$1.TuiTagComponent, selector: "tui-tag, a[tuiTag]", inputs: ["value", "editable", "allowSpaces", "separator", "maxLength", "size", "showLoader", "status", "hoverable", "removable", "disabled", "autoColor", "leftContent"], outputs: ["edited"] }, { type: i2__namespace$1.TuiTabsWithMoreComponent, selector: "tui-tabs-with-more, nav[tuiTabsWithMore]", inputs: ["moreContent", "dropdownContent", "underline", "activeItemIndex", "itemsLimit"], outputs: ["activeItemIndexChange"] }, { type: i2__namespace$1.TuiTabComponent, selector: "a[tuiTab]:not([routerLink]), a[tuiTab][routerLink][routerLinkActive], button[tuiTab]" }, { type: TuiDocSourceCodeComponent, selector: "tui-doc-source-code", inputs: ["header", "package", "type", "path"] }, { type: TuiDocSeeAlsoComponent, selector: "tui-doc-see-also", inputs: ["seeAlso"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace.TuiItemDirective, selector: "[tuiItem]" }, { type: i5__namespace.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i5__namespace.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], exportAs: ["routerLinkActive"] }, { type: i4__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
2502
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocPageComponent, decorators: [{
2503
+ type: i0.Component,
2504
+ args: [{
2505
+ selector: "tui-doc-page",
2506
+ templateUrl: "./page.template.html",
2507
+ styleUrls: ["./page.style.less"],
2508
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
2509
+ providers: PAGE_PROVIDERS,
2510
+ }]
2511
+ }], ctorParameters: function () {
2512
+ return [{ type: undefined, decorators: [{
2513
+ type: i0.Attribute,
2514
+ args: ["deprecated"]
2515
+ }] }, { type: undefined, decorators: [{
2516
+ type: i0.Inject,
2517
+ args: [TUI_DOC_DEFAULT_TABS]
2518
+ }] }, { type: undefined, decorators: [{
2519
+ type: i0.Inject,
2520
+ args: [PAGE_SEE_ALSO]
2521
+ }] }];
2522
+ }, propDecorators: { header: [{
2523
+ type: i0.Input
2524
+ }], package: [{
2525
+ type: i0.Input
2526
+ }], type: [{
2527
+ type: i0.Input
2528
+ }], path: [{
2529
+ type: i0.Input
2530
+ }], tabConnectors: [{
2531
+ type: i0.ContentChildren,
2532
+ args: [TuiDocPageTabConnectorDirective]
2533
+ }] } });
2534
+
2535
+ var TuiDocSeeAlsoModule = /** @class */ (function () {
2536
+ function TuiDocSeeAlsoModule() {
2537
+ }
2538
+ return TuiDocSeeAlsoModule;
2116
2539
  }());
2540
+ TuiDocSeeAlsoModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocSeeAlsoModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2541
+ TuiDocSeeAlsoModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocSeeAlsoModule, declarations: [TuiDocSeeAlsoComponent], imports: [i4.CommonModule, i5$1.RouterModule, i1.TuiLinkModule], exports: [TuiDocSeeAlsoComponent] });
2542
+ TuiDocSeeAlsoModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocSeeAlsoModule, imports: [[i4.CommonModule, i5$1.RouterModule, i1.TuiLinkModule]] });
2543
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocSeeAlsoModule, decorators: [{
2544
+ type: i0.NgModule,
2545
+ args: [{
2546
+ imports: [i4.CommonModule, i5$1.RouterModule, i1.TuiLinkModule],
2547
+ declarations: [TuiDocSeeAlsoComponent],
2548
+ exports: [TuiDocSeeAlsoComponent],
2549
+ }]
2550
+ }] });
2117
2551
 
2118
2552
  var TuiDocSourceCodeModule = /** @class */ (function () {
2119
2553
  function TuiDocSourceCodeModule() {
2120
2554
  }
2121
- TuiDocSourceCodeModule = __decorate([
2122
- core.NgModule({
2123
- declarations: [TuiDocSourceCodeComponent],
2124
- imports: [common.CommonModule, ngPolymorpheus.PolymorpheusModule, core$1.TuiButtonModule],
2125
- exports: [TuiDocSourceCodeComponent],
2126
- })
2127
- ], TuiDocSourceCodeModule);
2128
2555
  return TuiDocSourceCodeModule;
2129
2556
  }());
2557
+ TuiDocSourceCodeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocSourceCodeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2558
+ TuiDocSourceCodeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocSourceCodeModule, declarations: [TuiDocSourceCodeComponent], imports: [i4.CommonModule, i6.PolymorpheusModule, i1.TuiButtonModule], exports: [TuiDocSourceCodeComponent] });
2559
+ TuiDocSourceCodeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocSourceCodeModule, imports: [[i4.CommonModule, i6.PolymorpheusModule, i1.TuiButtonModule]] });
2560
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocSourceCodeModule, decorators: [{
2561
+ type: i0.NgModule,
2562
+ args: [{
2563
+ declarations: [TuiDocSourceCodeComponent],
2564
+ imports: [i4.CommonModule, i6.PolymorpheusModule, i1.TuiButtonModule],
2565
+ exports: [TuiDocSourceCodeComponent],
2566
+ }]
2567
+ }] });
2130
2568
 
2131
2569
  var TuiDocPageModule = /** @class */ (function () {
2132
2570
  function TuiDocPageModule() {
2133
2571
  }
2134
- TuiDocPageModule = __decorate([
2135
- core.NgModule({
2136
- imports: [
2137
- common.CommonModule,
2138
- router.RouterModule,
2139
- TuiDocSeeAlsoModule,
2140
- kit.TuiTabsModule,
2141
- kit.TuiTagModule,
2142
- TuiDocSourceCodeModule,
2143
- ],
2144
- declarations: [TuiDocPageComponent, TuiDocPageTabConnectorDirective],
2145
- exports: [TuiDocPageComponent, TuiDocPageTabConnectorDirective],
2146
- })
2147
- ], TuiDocPageModule);
2148
2572
  return TuiDocPageModule;
2149
2573
  }());
2574
+ TuiDocPageModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocPageModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2575
+ TuiDocPageModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocPageModule, declarations: [TuiDocPageComponent, TuiDocPageTabConnectorDirective], imports: [i4.CommonModule,
2576
+ i5$1.RouterModule,
2577
+ TuiDocSeeAlsoModule,
2578
+ i2$1.TuiTabsModule,
2579
+ i2$1.TuiTagModule,
2580
+ TuiDocSourceCodeModule], exports: [TuiDocPageComponent, TuiDocPageTabConnectorDirective] });
2581
+ TuiDocPageModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocPageModule, imports: [[
2582
+ i4.CommonModule,
2583
+ i5$1.RouterModule,
2584
+ TuiDocSeeAlsoModule,
2585
+ i2$1.TuiTabsModule,
2586
+ i2$1.TuiTagModule,
2587
+ TuiDocSourceCodeModule,
2588
+ ]] });
2589
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiDocPageModule, decorators: [{
2590
+ type: i0.NgModule,
2591
+ args: [{
2592
+ imports: [
2593
+ i4.CommonModule,
2594
+ i5$1.RouterModule,
2595
+ TuiDocSeeAlsoModule,
2596
+ i2$1.TuiTabsModule,
2597
+ i2$1.TuiTagModule,
2598
+ TuiDocSourceCodeModule,
2599
+ ],
2600
+ declarations: [TuiDocPageComponent, TuiDocPageTabConnectorDirective],
2601
+ exports: [TuiDocPageComponent, TuiDocPageTabConnectorDirective],
2602
+ }]
2603
+ }] });
2150
2604
 
2151
2605
  var TUI_EXAMPLE_PRIMARY_FILE_NAME = {
2152
- TS: 'TypeScript',
2153
- LESS: 'LESS',
2154
- HTML: 'HTML',
2606
+ TS: "TypeScript",
2607
+ LESS: "LESS",
2608
+ HTML: "HTML",
2155
2609
  };
2156
2610
 
2157
- // TODO: 3.0 remove in ivy compilation
2158
- var DEMO_TEXTS = ['Сделано с помощью директивы: ', 'Фон', 'Детали формы'];
2159
- var DOC_TEXTS = [
2160
- 'Аргумент',
2161
- 'Тип',
2162
- 'Имя и описание',
2163
- 'Значение',
2164
- 'Для работы с динамическими шаблонами используется',
2165
- ];
2166
- var EXAMPLE_TEXTS = ['Превью', 'Ссылка на пример скопирована', 'Готово'];
2167
2611
  var TUI_DOC_RUSSIAN = [
2168
2612
  {
2169
2613
  provide: TUI_DOC_DEMO_TEXTS,
2170
- useValue: DEMO_TEXTS,
2614
+ useValue: ["\u0421\u0434\u0435\u043B\u0430\u043D\u043E \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0434\u0438\u0440\u0435\u043A\u0442\u0438\u0432\u044B: ", "\u0424\u043E\u043D", "\u0414\u0435\u0442\u0430\u043B\u0438 \u0444\u043E\u0440\u043C\u044B"],
2171
2615
  },
2172
2616
  {
2173
2617
  provide: TUI_DOC_DOCUMENTATION_TEXTS,
2174
- useValue: DOC_TEXTS,
2618
+ useValue: [
2619
+ "\u0410\u0440\u0433\u0443\u043C\u0435\u043D\u0442",
2620
+ "\u0422\u0438\u043F",
2621
+ "\u0418\u043C\u044F \u0438 \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",
2622
+ "\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435",
2623
+ "\u0414\u043B\u044F \u0440\u0430\u0431\u043E\u0442\u044B \u0441 \u0434\u0438\u043D\u0430\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u043C\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0430\u043C\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F",
2624
+ ],
2175
2625
  },
2176
2626
  {
2177
2627
  provide: TUI_DOC_EXAMPLE_TEXTS,
2178
- useValue: EXAMPLE_TEXTS,
2628
+ useValue: ["\u041F\u0440\u0435\u0432\u044C\u044E", "\u0421\u0441\u044B\u043B\u043A\u0430 \u043D\u0430 \u043F\u0440\u0438\u043C\u0435\u0440 \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0430", "\u0413\u043E\u0442\u043E\u0432\u043E"],
2179
2629
  },
2180
2630
  {
2181
2631
  provide: TUI_DOC_MENU_TEXT,
2182
- useValue: 'Меню',
2632
+ useValue: "\u041C\u0435\u043D\u044E",
2183
2633
  },
2184
2634
  {
2185
2635
  provide: TUI_DOC_SEARCH_TEXT,
2186
- useValue: 'Поиск',
2636
+ useValue: "\u041F\u043E\u0438\u0441\u043A",
2187
2637
  },
2188
2638
  {
2189
2639
  provide: TUI_DOC_SEE_ALSO_TEXT,
2190
- useValue: 'Смотрите также',
2640
+ useValue: "\u0421\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u0442\u0430\u043A\u0436\u0435",
2191
2641
  },
2192
2642
  {
2193
2643
  provide: TUI_DOC_SOURCE_CODE_TEXT,
2194
- useValue: 'Исходный код',
2644
+ useValue: "\u0418\u0441\u0445\u043E\u0434\u043D\u044B\u0439 \u043A\u043E\u0434",
2195
2645
  },
2196
2646
  ];
2197
2647
 
2198
2648
  var TuiAddonDocModule = /** @class */ (function () {
2199
2649
  function TuiAddonDocModule() {
2200
2650
  }
2201
- TuiAddonDocModule = __decorate([
2202
- core.NgModule({
2203
- exports: [
2204
- TuiDocCodeModule,
2205
- TuiDocDemoModule,
2206
- TuiDocDocumentationModule,
2207
- TuiDocPageModule,
2208
- TuiDocExampleModule,
2209
- ],
2210
- })
2211
- ], TuiAddonDocModule);
2212
2651
  return TuiAddonDocModule;
2213
2652
  }());
2653
+ TuiAddonDocModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiAddonDocModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2654
+ TuiAddonDocModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiAddonDocModule, exports: [TuiDocCodeModule,
2655
+ TuiDocDemoModule,
2656
+ TuiDocDocumentationModule,
2657
+ TuiDocPageModule,
2658
+ TuiDocExampleModule] });
2659
+ TuiAddonDocModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiAddonDocModule, imports: [TuiDocCodeModule,
2660
+ TuiDocDemoModule,
2661
+ TuiDocDocumentationModule,
2662
+ TuiDocPageModule,
2663
+ TuiDocExampleModule] });
2664
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiAddonDocModule, decorators: [{
2665
+ type: i0.NgModule,
2666
+ args: [{
2667
+ exports: [
2668
+ TuiDocCodeModule,
2669
+ TuiDocDemoModule,
2670
+ TuiDocDocumentationModule,
2671
+ TuiDocPageModule,
2672
+ TuiDocExampleModule,
2673
+ ],
2674
+ }]
2675
+ }] });
2214
2676
 
2215
- /**
2216
- * @deprecated: use {@link tuiGenerateRoutes} instead
2217
- * Generates typical page routing structure
2218
- */
2219
- // eslint-disable-next-line @typescript-eslint/naming-convention
2220
- function generateRoutes(type) {
2677
+ function tuiGenerateRoutes(type) {
2221
2678
  return [
2222
2679
  {
2223
- path: '',
2680
+ path: "",
2224
2681
  component: type,
2225
2682
  children: [
2226
2683
  {
2227
- path: ':tab',
2684
+ path: ":tab",
2228
2685
  component: type,
2229
2686
  },
2230
2687
  ],
2231
2688
  },
2232
2689
  ];
2233
2690
  }
2234
- var tuiGenerateRoutes = generateRoutes;
2235
2691
 
2236
- exports.DEMO_TEXTS = DEMO_TEXTS;
2237
- exports.DOC_TEXTS = DOC_TEXTS;
2238
- exports.EXAMPLE_TEXTS = EXAMPLE_TEXTS;
2692
+ /**
2693
+ * Public API Surface of @taiga-ui/addon-doc
2694
+ */
2695
+
2696
+ /**
2697
+ * Generated bundle index. Do not edit.
2698
+ */
2699
+
2239
2700
  exports.ScrollIntoViewDirective = ScrollIntoViewDirective;
2240
2701
  exports.ScrollIntoViewModule = ScrollIntoViewModule;
2241
2702
  exports.TUI_DOC_CODE_ACTIONS = TUI_DOC_CODE_ACTIONS;
@@ -2268,7 +2729,9 @@
2268
2729
  exports.TuiDocDocumentationComponent = TuiDocDocumentationComponent;
2269
2730
  exports.TuiDocDocumentationModule = TuiDocDocumentationModule;
2270
2731
  exports.TuiDocDocumentationPropertyConnectorDirective = TuiDocDocumentationPropertyConnectorDirective;
2732
+ exports.TuiDocExampleCapitalizePipe = TuiDocExampleCapitalizePipe;
2271
2733
  exports.TuiDocExampleComponent = TuiDocExampleComponent;
2734
+ exports.TuiDocExampleGetTabsPipe = TuiDocExampleGetTabsPipe;
2272
2735
  exports.TuiDocExampleModule = TuiDocExampleModule;
2273
2736
  exports.TuiDocMainComponent = TuiDocMainComponent;
2274
2737
  exports.TuiDocMainModule = TuiDocMainModule;
@@ -2280,7 +2743,6 @@
2280
2743
  exports.TuiScrollIntoViewLinkDirective = TuiScrollIntoViewLinkDirective;
2281
2744
  exports.TuiScrollIntoViewLinkModule = TuiScrollIntoViewLinkModule;
2282
2745
  exports.coerceValue = coerceValue;
2283
- exports.generateRoutes = generateRoutes;
2284
2746
  exports.rawLoad = rawLoad;
2285
2747
  exports.rawLoadRecord = rawLoadRecord;
2286
2748
  exports.tryParseMarkdownCodeBlock = tryParseMarkdownCodeBlock;
@@ -2289,28 +2751,8 @@
2289
2751
  exports.tuiRawLoad = tuiRawLoad;
2290
2752
  exports.tuiRawLoadRecord = tuiRawLoadRecord;
2291
2753
  exports.tuiTryParseMarkdownCodeBlock = tuiTryParseMarkdownCodeBlock;
2292
- exports.ɵa = TuiInputOpacityModule;
2293
- exports.ɵb = TuiInputOpacityDirective;
2294
- exports.ɵc = TuiDocExampleGetTabsPipe;
2295
- exports.ɵd = TuiDocExampleCapitalizePipe;
2296
- exports.ɵe = TuiDocHeaderModule;
2297
- exports.ɵf = NAVIGATION_TITLE;
2298
- exports.ɵg = NAVIGATION_LABELS;
2299
- exports.ɵh = NAVIGATION_ITEMS;
2300
- exports.ɵi = NAVIGATION_PROVIDERS;
2301
- exports.ɵj = titleProviderFactory;
2302
- exports.ɵk = labelsProviderFactory;
2303
- exports.ɵl = itemsProviderFactory;
2304
- exports.ɵm = TuiDocHeaderComponent;
2305
- exports.ɵn = PAGE_SEE_ALSO;
2306
- exports.ɵo = PAGE_PROVIDERS;
2307
- exports.ɵp = seeAlsoProviderFactory;
2308
- exports.ɵq = TuiDocSeeAlsoModule;
2309
- exports.ɵr = TuiDocSeeAlsoComponent;
2310
- exports.ɵs = TuiDocSourceCodeModule;
2311
- exports.ɵt = TuiDocSourceCodeComponent;
2312
2754
 
2313
2755
  Object.defineProperty(exports, '__esModule', { value: true });
2314
2756
 
2315
- })));
2757
+ }));
2316
2758
  //# sourceMappingURL=taiga-ui-addon-doc.umd.js.map