@taiga-ui/addon-doc 2.61.0 → 3.0.0-rc.2

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