@taiga-ui/addon-doc 3.57.0 → 3.59.0-canary.10da730

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 (245) hide show
  1. package/components/code/code.component.d.ts +1 -1
  2. package/components/copy/copy.component.d.ts +1 -1
  3. package/components/demo/demo.component.d.ts +3 -3
  4. package/components/doc-tab/doc-tab.component.d.ts +6 -0
  5. package/components/doc-tab/doc-tab.module.d.ts +8 -0
  6. package/components/documentation/documentation-property-connector.directive.d.ts +6 -4
  7. package/components/documentation/documentation.component.d.ts +1 -1
  8. package/components/documentation/documentation.module.d.ts +1 -1
  9. package/components/documentation/pipes/cleaner.pipe.d.ts +1 -1
  10. package/components/documentation/pipes/color.pipe.d.ts +1 -1
  11. package/components/documentation/pipes/inspect.pipe.d.ts +1 -1
  12. package/components/documentation/pipes/opacity.pipe.d.ts +1 -1
  13. package/components/documentation/pipes/optional.pipe.d.ts +1 -1
  14. package/components/documentation/pipes/primitive-polymorpheus-content.pipe.d.ts +1 -1
  15. package/components/documentation/pipes/strip-optional.pipe.d.ts +1 -1
  16. package/components/documentation/pipes/type-reference.pipe.d.ts +1 -1
  17. package/components/example/example-get-tabs.pipe.d.ts +1 -1
  18. package/components/example/example.component.d.ts +1 -1
  19. package/components/index.d.ts +2 -0
  20. package/components/internal/header/header.component.d.ts +1 -1
  21. package/components/internal/input-opacity/input-opacity.directive.d.ts +1 -1
  22. package/components/internal/see-also/see-also.component.d.ts +1 -1
  23. package/components/internal/source-code/source-code.component.d.ts +1 -1
  24. package/components/language-switcher/language-switcher.component.d.ts +3 -3
  25. package/components/main/main.component.d.ts +1 -1
  26. package/components/navigation/navigation.component.d.ts +8 -9
  27. package/components/page/page-tab.directive.d.ts +1 -1
  28. package/components/page/page.component.d.ts +1 -1
  29. package/directives/scroll-into-view/scroll-into-view.directive.d.ts +1 -1
  30. package/directives/text-code/text-code.directive.d.ts +1 -1
  31. package/{esm2015/addon-doc.module.js → esm2020/addon-doc.module.mjs} +4 -4
  32. package/esm2020/components/code/code.component.mjs +42 -0
  33. package/{esm2015/components/code/code.module.js → esm2020/components/code/code.module.mjs} +9 -11
  34. package/esm2020/components/copy/copy.component.mjs +35 -0
  35. package/{esm2015/components/copy/copy.module.js → esm2020/components/copy/copy.module.mjs} +5 -5
  36. package/esm2020/components/demo/demo.component.mjs +179 -0
  37. package/{esm2015/components/demo/demo.module.js → esm2020/components/demo/demo.module.mjs} +23 -25
  38. package/esm2020/components/doc-tab/doc-tab.component.mjs +17 -0
  39. package/esm2020/components/doc-tab/doc-tab.module.mjs +18 -0
  40. package/esm2020/components/documentation/documentation-property-connector.directive.mjs +141 -0
  41. package/esm2020/components/documentation/documentation.component.mjs +109 -0
  42. package/{esm2015/components/documentation/documentation.module.js → esm2020/components/documentation/documentation.module.mjs} +25 -25
  43. package/{esm2015/components/documentation/pipes/cleaner.pipe.js → esm2020/components/documentation/pipes/cleaner.pipe.mjs} +3 -3
  44. package/{esm2015/components/documentation/pipes/color.pipe.js → esm2020/components/documentation/pipes/color.pipe.mjs} +3 -3
  45. package/{esm2015/components/documentation/pipes/inspect.pipe.js → esm2020/components/documentation/pipes/inspect.pipe.mjs} +3 -3
  46. package/{esm2015/components/documentation/pipes/opacity.pipe.js → esm2020/components/documentation/pipes/opacity.pipe.mjs} +3 -3
  47. package/{esm2015/components/documentation/pipes/optional.pipe.js → esm2020/components/documentation/pipes/optional.pipe.mjs} +3 -3
  48. package/{esm2015/components/documentation/pipes/primitive-polymorpheus-content.pipe.js → esm2020/components/documentation/pipes/primitive-polymorpheus-content.pipe.mjs} +3 -3
  49. package/{esm2015/components/documentation/pipes/strip-optional.pipe.js → esm2020/components/documentation/pipes/strip-optional.pipe.mjs} +3 -3
  50. package/esm2020/components/documentation/pipes/type-reference.pipe.mjs +31 -0
  51. package/{esm2015/components/example/example-get-tabs.pipe.js → esm2020/components/example/example-get-tabs.pipe.mjs} +3 -3
  52. package/esm2020/components/example/example.component.mjs +150 -0
  53. package/{esm2015/components/example/example.module.js → esm2020/components/example/example.module.mjs} +13 -15
  54. package/esm2020/components/index.mjs +42 -0
  55. package/esm2020/components/internal/header/header.component.mjs +54 -0
  56. package/{esm2015/components/internal/header/header.module.js → esm2020/components/internal/header/header.module.mjs} +10 -12
  57. package/{esm2015/components/internal/input-opacity/input-opacity.directive.js → esm2020/components/internal/input-opacity/input-opacity.directive.mjs} +8 -8
  58. package/{esm2015/components/internal/input-opacity/input-opacity.module.js → esm2020/components/internal/input-opacity/input-opacity.module.mjs} +4 -4
  59. package/esm2020/components/internal/see-also/see-also.component.mjs +31 -0
  60. package/{esm2015/components/internal/see-also/see-also.module.js → esm2020/components/internal/see-also/see-also.module.mjs} +5 -5
  61. package/{esm2015/components/internal/source-code/source-code.component.js → esm2020/components/internal/source-code/source-code.component.mjs} +7 -11
  62. package/{esm2015/components/internal/source-code/source-code.module.js → esm2020/components/internal/source-code/source-code.module.mjs} +5 -5
  63. package/esm2020/components/language-switcher/language-switcher.component.mjs +61 -0
  64. package/{esm2015/components/language-switcher/language-switcher.module.js → esm2020/components/language-switcher/language-switcher.module.mjs} +9 -11
  65. package/esm2020/components/main/main.component.mjs +59 -0
  66. package/{esm2015/components/main/main.module.js → esm2020/components/main/main.module.mjs} +14 -16
  67. package/esm2020/components/navigation/navigation.component.mjs +213 -0
  68. package/{esm2015/components/navigation/navigation.module.js → esm2020/components/navigation/navigation.module.mjs} +24 -26
  69. package/esm2020/components/navigation/navigation.providers.mjs +48 -0
  70. package/{esm2015/components/page/page-tab.directive.js → esm2020/components/page/page-tab.directive.mjs} +3 -3
  71. package/esm2020/components/page/page.component.mjs +56 -0
  72. package/{esm2015/components/page/page.module.js → esm2020/components/page/page.module.mjs} +11 -13
  73. package/esm2020/directives/scroll-into-view/scroll-into-view.directive.mjs +44 -0
  74. package/{esm2015/directives/scroll-into-view/scroll-into-view.module.js → esm2020/directives/scroll-into-view/scroll-into-view.module.mjs} +4 -4
  75. package/{esm2015/directives/text-code/text-code.directive.js → esm2020/directives/text-code/text-code.directive.mjs} +3 -3
  76. package/{esm2015/directives/text-code/text-code.module.js → esm2020/directives/text-code/text-code.module.mjs} +4 -4
  77. package/{esm2015/services/theme-night.service.js → esm2020/services/theme-night.service.mjs} +4 -4
  78. package/{esm2015/services/theme.service.js → esm2020/services/theme.service.mjs} +4 -4
  79. package/esm2020/tokens/page-loaded.mjs +7 -0
  80. package/esm2020/tokens/pages.mjs +9 -0
  81. package/esm2020/utils/coerce-boolean.mjs +4 -0
  82. package/{esm2015/utils/coerce-value.js → esm2020/utils/coerce-value.mjs} +2 -2
  83. package/esm2020/utils/raw-load-record.mjs +11 -0
  84. package/esm2020/utils/raw-load.mjs +4 -0
  85. package/esm2020/utils/sort-pages.mjs +26 -0
  86. package/esm2020/utils/to-flat-map-pages.mjs +22 -0
  87. package/esm2020/utils/type-reference-parser.mjs +24 -0
  88. package/fesm2015/taiga-ui-addon-doc-components.mjs +1909 -0
  89. package/fesm2015/taiga-ui-addon-doc-components.mjs.map +1 -0
  90. package/fesm2015/taiga-ui-addon-doc-directives.mjs +99 -0
  91. package/fesm2015/taiga-ui-addon-doc-directives.mjs.map +1 -0
  92. package/fesm2015/{taiga-ui-addon-doc-interfaces.js → taiga-ui-addon-doc-interfaces.mjs} +1 -1
  93. package/fesm2015/taiga-ui-addon-doc-interfaces.mjs.map +1 -0
  94. package/fesm2015/{taiga-ui-addon-doc-languages.js → taiga-ui-addon-doc-languages.mjs} +1 -1
  95. package/fesm2015/taiga-ui-addon-doc-languages.mjs.map +1 -0
  96. package/fesm2015/taiga-ui-addon-doc-services.mjs +97 -0
  97. package/fesm2015/taiga-ui-addon-doc-services.mjs.map +1 -0
  98. package/fesm2015/{taiga-ui-addon-doc-tokens.js → taiga-ui-addon-doc-tokens.mjs} +2 -3
  99. package/fesm2015/taiga-ui-addon-doc-tokens.mjs.map +1 -0
  100. package/fesm2015/taiga-ui-addon-doc-types.mjs +4 -0
  101. package/fesm2015/taiga-ui-addon-doc-types.mjs.map +1 -0
  102. package/fesm2015/{taiga-ui-addon-doc-utils.js → taiga-ui-addon-doc-utils.mjs} +7 -6
  103. package/fesm2015/taiga-ui-addon-doc-utils.mjs.map +1 -0
  104. package/fesm2015/{taiga-ui-addon-doc.js → taiga-ui-addon-doc.mjs} +5 -5
  105. package/fesm2015/taiga-ui-addon-doc.mjs.map +1 -0
  106. package/fesm2020/taiga-ui-addon-doc-components.mjs +1879 -0
  107. package/fesm2020/taiga-ui-addon-doc-components.mjs.map +1 -0
  108. package/{fesm2015/taiga-ui-addon-doc-directives.js → fesm2020/taiga-ui-addon-doc-directives.mjs} +19 -20
  109. package/fesm2020/taiga-ui-addon-doc-directives.mjs.map +1 -0
  110. package/fesm2020/taiga-ui-addon-doc-interfaces.mjs +12 -0
  111. package/fesm2020/taiga-ui-addon-doc-interfaces.mjs.map +1 -0
  112. package/fesm2020/taiga-ui-addon-doc-languages.mjs +46 -0
  113. package/fesm2020/taiga-ui-addon-doc-languages.mjs.map +1 -0
  114. package/{fesm2015/taiga-ui-addon-doc-services.js → fesm2020/taiga-ui-addon-doc-services.mjs} +7 -7
  115. package/fesm2020/taiga-ui-addon-doc-services.mjs.map +1 -0
  116. package/fesm2020/taiga-ui-addon-doc-tokens.mjs +148 -0
  117. package/fesm2020/taiga-ui-addon-doc-tokens.mjs.map +1 -0
  118. package/fesm2020/taiga-ui-addon-doc-types.mjs +4 -0
  119. package/fesm2020/taiga-ui-addon-doc-types.mjs.map +1 -0
  120. package/fesm2020/taiga-ui-addon-doc-utils.mjs +275 -0
  121. package/fesm2020/taiga-ui-addon-doc-utils.mjs.map +1 -0
  122. package/fesm2020/taiga-ui-addon-doc.mjs +49 -0
  123. package/fesm2020/taiga-ui-addon-doc.mjs.map +1 -0
  124. package/interfaces/page.d.ts +3 -3
  125. package/package.json +115 -38
  126. package/styles/markdown.less +118 -0
  127. package/tokens/pages.d.ts +4 -2
  128. package/types/pages.d.ts +1 -1
  129. package/utils/type-reference-parser.d.ts +1 -1
  130. package/bundles/taiga-ui-addon-doc-components.umd.js +0 -2500
  131. package/bundles/taiga-ui-addon-doc-components.umd.js.map +0 -1
  132. package/bundles/taiga-ui-addon-doc-directives.umd.js +0 -140
  133. package/bundles/taiga-ui-addon-doc-directives.umd.js.map +0 -1
  134. package/bundles/taiga-ui-addon-doc-interfaces.umd.js +0 -22
  135. package/bundles/taiga-ui-addon-doc-interfaces.umd.js.map +0 -1
  136. package/bundles/taiga-ui-addon-doc-languages.umd.js +0 -54
  137. package/bundles/taiga-ui-addon-doc-languages.umd.js.map +0 -1
  138. package/bundles/taiga-ui-addon-doc-services.umd.js +0 -457
  139. package/bundles/taiga-ui-addon-doc-services.umd.js.map +0 -1
  140. package/bundles/taiga-ui-addon-doc-tokens.umd.js +0 -179
  141. package/bundles/taiga-ui-addon-doc-tokens.umd.js.map +0 -1
  142. package/bundles/taiga-ui-addon-doc-types.umd.js +0 -11
  143. package/bundles/taiga-ui-addon-doc-types.umd.js.map +0 -1
  144. package/bundles/taiga-ui-addon-doc-utils.umd.js +0 -671
  145. package/bundles/taiga-ui-addon-doc-utils.umd.js.map +0 -1
  146. package/bundles/taiga-ui-addon-doc.umd.js +0 -117
  147. package/bundles/taiga-ui-addon-doc.umd.js.map +0 -1
  148. package/components/package.json +0 -10
  149. package/components/taiga-ui-addon-doc-components.d.ts +0 -5
  150. package/directives/package.json +0 -10
  151. package/directives/taiga-ui-addon-doc-directives.d.ts +0 -5
  152. package/esm2015/components/code/code.component.js +0 -48
  153. package/esm2015/components/copy/copy.component.js +0 -42
  154. package/esm2015/components/demo/demo.component.js +0 -183
  155. package/esm2015/components/documentation/documentation-property-connector.directive.js +0 -127
  156. package/esm2015/components/documentation/documentation.component.js +0 -117
  157. package/esm2015/components/documentation/pipes/type-reference.pipe.js +0 -34
  158. package/esm2015/components/example/example.component.js +0 -152
  159. package/esm2015/components/index.js +0 -40
  160. package/esm2015/components/internal/header/header.component.js +0 -60
  161. package/esm2015/components/internal/see-also/see-also.component.js +0 -37
  162. package/esm2015/components/language-switcher/language-switcher.component.js +0 -67
  163. package/esm2015/components/main/main.component.js +0 -68
  164. package/esm2015/components/navigation/navigation.component.js +0 -223
  165. package/esm2015/components/navigation/navigation.providers.js +0 -48
  166. package/esm2015/components/page/page.component.js +0 -62
  167. package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +0 -45
  168. package/esm2015/tokens/page-loaded.js +0 -8
  169. package/esm2015/tokens/pages.js +0 -9
  170. package/esm2015/utils/coerce-boolean.js +0 -4
  171. package/esm2015/utils/raw-load-record.js +0 -14
  172. package/esm2015/utils/raw-load.js +0 -7
  173. package/esm2015/utils/sort-pages.js +0 -23
  174. package/esm2015/utils/to-flat-map-pages.js +0 -23
  175. package/esm2015/utils/type-reference-parser.js +0 -24
  176. package/fesm2015/taiga-ui-addon-doc-components.js +0 -1928
  177. package/fesm2015/taiga-ui-addon-doc-components.js.map +0 -1
  178. package/fesm2015/taiga-ui-addon-doc-directives.js.map +0 -1
  179. package/fesm2015/taiga-ui-addon-doc-interfaces.js.map +0 -1
  180. package/fesm2015/taiga-ui-addon-doc-languages.js.map +0 -1
  181. package/fesm2015/taiga-ui-addon-doc-services.js.map +0 -1
  182. package/fesm2015/taiga-ui-addon-doc-tokens.js.map +0 -1
  183. package/fesm2015/taiga-ui-addon-doc-types.js +0 -4
  184. package/fesm2015/taiga-ui-addon-doc-types.js.map +0 -1
  185. package/fesm2015/taiga-ui-addon-doc-utils.js.map +0 -1
  186. package/fesm2015/taiga-ui-addon-doc.js.map +0 -1
  187. package/interfaces/package.json +0 -10
  188. package/interfaces/taiga-ui-addon-doc-interfaces.d.ts +0 -5
  189. package/languages/package.json +0 -10
  190. package/languages/taiga-ui-addon-doc-languages.d.ts +0 -5
  191. package/services/package.json +0 -10
  192. package/services/taiga-ui-addon-doc-services.d.ts +0 -5
  193. package/taiga-ui-addon-doc.d.ts +0 -5
  194. package/tokens/package.json +0 -10
  195. package/tokens/taiga-ui-addon-doc-tokens.d.ts +0 -5
  196. package/types/package.json +0 -10
  197. package/types/taiga-ui-addon-doc-types.d.ts +0 -5
  198. package/utils/package.json +0 -10
  199. package/utils/taiga-ui-addon-doc-utils.d.ts +0 -5
  200. /package/{esm2015/components/example/example.options.js → esm2020/components/example/example.options.mjs} +0 -0
  201. /package/{esm2015/components/page/page.providers.js → esm2020/components/page/page.providers.mjs} +0 -0
  202. /package/{esm2015/components/taiga-ui-addon-doc-components.js → esm2020/components/taiga-ui-addon-doc-components.mjs} +0 -0
  203. /package/{esm2015/directives/index.js → esm2020/directives/index.mjs} +0 -0
  204. /package/{esm2015/directives/taiga-ui-addon-doc-directives.js → esm2020/directives/taiga-ui-addon-doc-directives.mjs} +0 -0
  205. /package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  206. /package/{esm2015/interfaces/code-editor.js → esm2020/interfaces/code-editor.mjs} +0 -0
  207. /package/{esm2015/interfaces/demo-params.js → esm2020/interfaces/demo-params.mjs} +0 -0
  208. /package/{esm2015/interfaces/index.js → esm2020/interfaces/index.mjs} +0 -0
  209. /package/{esm2015/interfaces/page.js → esm2020/interfaces/page.mjs} +0 -0
  210. /package/{esm2015/interfaces/source-code-path-options.js → esm2020/interfaces/source-code-path-options.mjs} +0 -0
  211. /package/{esm2015/interfaces/taiga-ui-addon-doc-interfaces.js → esm2020/interfaces/taiga-ui-addon-doc-interfaces.mjs} +0 -0
  212. /package/{esm2015/languages/index.js → esm2020/languages/index.mjs} +0 -0
  213. /package/{esm2015/languages/russian.js → esm2020/languages/russian.mjs} +0 -0
  214. /package/{esm2015/languages/taiga-ui-addon-doc-languages.js → esm2020/languages/taiga-ui-addon-doc-languages.mjs} +0 -0
  215. /package/{esm2015/services/index.js → esm2020/services/index.mjs} +0 -0
  216. /package/{esm2015/services/taiga-ui-addon-doc-services.js → esm2020/services/taiga-ui-addon-doc-services.mjs} +0 -0
  217. /package/{esm2015/services/theme-night.options.js → esm2020/services/theme-night.options.mjs} +0 -0
  218. /package/{esm2015/services/theme.options.js → esm2020/services/theme.options.mjs} +0 -0
  219. /package/{esm2015/taiga-ui-addon-doc.js → esm2020/taiga-ui-addon-doc.mjs} +0 -0
  220. /package/{esm2015/tokens/code-actions.js → esm2020/tokens/code-actions.mjs} +0 -0
  221. /package/{esm2015/tokens/code-editor.js → esm2020/tokens/code-editor.mjs} +0 -0
  222. /package/{esm2015/tokens/default-tabs.js → esm2020/tokens/default-tabs.mjs} +0 -0
  223. /package/{esm2015/tokens/doc-icons.js → esm2020/tokens/doc-icons.mjs} +0 -0
  224. /package/{esm2015/tokens/example-content-processor.js → esm2020/tokens/example-content-processor.mjs} +0 -0
  225. /package/{esm2015/tokens/excluded-properties.js → esm2020/tokens/excluded-properties.mjs} +0 -0
  226. /package/{esm2015/tokens/i18n.js → esm2020/tokens/i18n.mjs} +0 -0
  227. /package/{esm2015/tokens/index.js → esm2020/tokens/index.mjs} +0 -0
  228. /package/{esm2015/tokens/logo.js → esm2020/tokens/logo.mjs} +0 -0
  229. /package/{esm2015/tokens/scroll-behavior.js → esm2020/tokens/scroll-behavior.mjs} +0 -0
  230. /package/{esm2015/tokens/see-also.js → esm2020/tokens/see-also.mjs} +0 -0
  231. /package/{esm2015/tokens/source-code.js → esm2020/tokens/source-code.mjs} +0 -0
  232. /package/{esm2015/tokens/taiga-ui-addon-doc-tokens.js → esm2020/tokens/taiga-ui-addon-doc-tokens.mjs} +0 -0
  233. /package/{esm2015/tokens/title.js → esm2020/tokens/title.mjs} +0 -0
  234. /package/{esm2015/tokens/type-reference-handler.js → esm2020/tokens/type-reference-handler.mjs} +0 -0
  235. /package/{esm2015/tokens/url-state-handler.js → esm2020/tokens/url-state-handler.mjs} +0 -0
  236. /package/{esm2015/types/index.js → esm2020/types/index.mjs} +0 -0
  237. /package/{esm2015/types/pages.js → esm2020/types/pages.mjs} +0 -0
  238. /package/{esm2015/types/taiga-ui-addon-doc-types.js → esm2020/types/taiga-ui-addon-doc-types.mjs} +0 -0
  239. /package/{esm2015/utils/generate-routes.js → esm2020/utils/generate-routes.mjs} +0 -0
  240. /package/{esm2015/utils/index.js → esm2020/utils/index.mjs} +0 -0
  241. /package/{esm2015/utils/inspect.js → esm2020/utils/inspect.mjs} +0 -0
  242. /package/{esm2015/utils/is-page-group.js → esm2020/utils/is-page-group.mjs} +0 -0
  243. /package/{esm2015/utils/parse-code-block.js → esm2020/utils/parse-code-block.mjs} +0 -0
  244. /package/{esm2015/utils/taiga-ui-addon-doc-utils.js → esm2020/utils/taiga-ui-addon-doc-utils.mjs} +0 -0
  245. /package/{esm2015/utils/transliterate-keyboard-layout.js → esm2020/utils/transliterate-keyboard-layout.mjs} +0 -0
@@ -0,0 +1,1879 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, Inject, Input, HostBinding, NgModule, ElementRef, forwardRef, TemplateRef, ViewChild, ContentChild, HostListener, EventEmitter, Directive, Output, Pipe, Renderer2, ChangeDetectorRef, Self, ContentChildren, Optional, InjectionToken, ViewEncapsulation } from '@angular/core';
3
+ import { TUI_DOC_EXAMPLE_MARKDOWN_CODE_PROCESSOR, TUI_DOC_DEMO_TEXTS, TUI_DOC_URL_STATE_HANDLER, TUI_DOC_TYPE_REFERENCE_PARSER, TUI_DOC_TYPE_REFERENCE_HANDLER, TUI_DOC_DOCUMENTATION_TEXTS, TUI_DOC_EXCLUDED_PROPERTIES, TUI_DOC_EXAMPLE_TEXTS, TUI_DOC_CODE_EDITOR, TUI_DOC_EXAMPLE_CONTENT_PROCESSOR, TUI_DOC_CODE_ACTIONS, TUI_DOC_TITLE, TUI_DOC_PAGES, TUI_DOC_SEARCH_TEXT, TUI_DOC_PAGE_LOADED, TUI_DOC_ICONS, TUI_DOC_LOGO, TUI_DOC_MENU_TEXT, TUI_DOC_SEE_ALSO_TEXT, TUI_DOC_MAP_PAGES, TUI_DOC_SOURCE_CODE, TUI_DOC_SOURCE_CODE_TEXT, TUI_DOC_SEE_ALSO, TUI_DOC_DEFAULT_TABS } from '@taiga-ui/addon-doc/tokens';
4
+ import { tuiRawLoad, tuiCoerceValueIsTrue, tuiInspectAny, tuiCoerceValue, tuiRawLoadRecord, tuiTransliterateKeyboardLayout } from '@taiga-ui/addon-doc/utils';
5
+ import * as i10 from 'rxjs';
6
+ import { BehaviorSubject, Subject, switchMap, timer, map, startWith, merge, takeUntil, filter, mergeMap, combineLatest, take, distinctUntilChanged, share } from 'rxjs';
7
+ import * as i1 from '@angular/common';
8
+ import { CommonModule, Location as Location$1, DOCUMENT } from '@angular/common';
9
+ import * as i2 from 'ngx-highlightjs';
10
+ import { HighlightModule } from 'ngx-highlightjs';
11
+ import * as i4 from '@taiga-ui/core';
12
+ import { TuiSvgModule, TuiButtonModule, TuiModeDirective, TuiLinkModule, TuiExpandModule, TuiGroupModule, TuiTooltipModule, TuiModeModule, TuiDataListModule, TuiTextfieldControllerModule, TuiHintModule, TuiAlertService, TuiPrimitiveTextfieldModule, TuiDropdownModule, TuiNotificationModule, TuiLoaderModule, TUI_COMMON_ICONS, TuiHostedDropdownModule, TuiScrollbarModule, tuiCapitalizeFirstLetter, TuiFlagPipe, TuiFlagPipeModule, TuiThemeNightModule, TuiRootModule, TuiDialogModule, TuiAlertModule } from '@taiga-ui/core';
13
+ import * as i4$1 from '@angular/cdk/clipboard';
14
+ import { ClipboardModule, Clipboard } from '@angular/cdk/clipboard';
15
+ import { __decorate } from 'tslib';
16
+ import * as i6 from '@taiga-ui/cdk';
17
+ import { ALWAYS_FALSE_HANDLER, TuiDestroyService, tuiPure, tuiToInteger, tuiClamp, tuiPx, tuiCleanObject, TUI_IS_MOBILE, TuiResizeableDirective, TuiResizerModule, tuiIsNumber, tuiRgbToHex, TUI_FOCUSABLE_ITEM_ACCESSOR, TUI_IS_E2E, tuiIsString, EMPTY_QUERY, tuiQueryListChanges, tuiWatch, tuiHexToRgb, TuiFilterPipeModule, tuiCreateToken, tuiProvideOptions, TuiMapperPipeModule, tuiIsPresent, tuiControlValue, tuiUniqBy, TuiSwipeService, TuiActiveZoneModule, TuiLetModule, TuiAutoFocusModule, TuiReplacePipeModule } from '@taiga-ui/cdk';
18
+ import * as i3$1 from '@taiga-ui/kit';
19
+ import { TUI_COPY_TEXTS, TUI_ARROW_OPTIONS, TuiSelectModule, TuiRadioBlockModule, TuiCheckboxLabeledModule, TuiDataListWrapperModule, TuiBadgeModule, TuiToggleModule, TuiInputNumberModule, TuiTabsModule, TuiInputModule, TuiAccordionModule, TuiTagModule } from '@taiga-ui/kit';
20
+ import * as i2$1 from '@angular/forms';
21
+ import { UntypedFormGroup, ReactiveFormsModule, FormsModule, UntypedFormControl } from '@angular/forms';
22
+ import * as i3 from '@angular/router';
23
+ import { UrlSerializer, RouterModule, ActivatedRoute, Router, NavigationEnd, Scroll } from '@angular/router';
24
+ import { trigger, transition, style, animate } from '@angular/animations';
25
+ import { LOCATION } from '@ng-web-apis/common';
26
+ import { TUI_EXAMPLE_PRIMARY_FILE_NAME } from '@taiga-ui/addon-doc/interfaces';
27
+ import * as i1$1 from '@tinkoff/ng-polymorpheus';
28
+ import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
29
+ import * as i3$2 from '@taiga-ui/addon-mobile';
30
+ import { TuiSidebarDirective, TuiSidebarModule } from '@taiga-ui/addon-mobile';
31
+ import * as i9 from '@angular/platform-browser';
32
+ import { Title } from '@angular/platform-browser';
33
+ import * as i5 from '@taiga-ui/addon-doc/directives';
34
+ import { TuiScrollIntoViewLinkModule } from '@taiga-ui/addon-doc/directives';
35
+ import * as i5$1 from '@taiga-ui/i18n';
36
+ import { TuiCountryIsoCode, TuiLanguageSwitcher } from '@taiga-ui/i18n';
37
+ import * as i6$1 from '@taiga-ui/addon-doc/services';
38
+ import { TuiThemeService, TuiThemeNightService } from '@taiga-ui/addon-doc/services';
39
+
40
+ class TuiDocCodeComponent {
41
+ constructor(markdownCodeProcessor) {
42
+ this.markdownCodeProcessor = markdownCodeProcessor;
43
+ this.rawLoader$$ = new BehaviorSubject('');
44
+ this.filename = '';
45
+ this.copy$ = new Subject();
46
+ this.icon$ = this.copy$.pipe(switchMap(() => timer(2000).pipe(map(() => 'tuiIconCopyLarge'), startWith('tuiIconCheckLarge'))));
47
+ this.processor$ = this.rawLoader$$.pipe(switchMap(tuiRawLoad), map((value) => this.markdownCodeProcessor(value)));
48
+ }
49
+ set code(code) {
50
+ this.rawLoader$$.next(code);
51
+ }
52
+ get hasFilename() {
53
+ return !!this.filename;
54
+ }
55
+ }
56
+ TuiDocCodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocCodeComponent, deps: [{ token: TUI_DOC_EXAMPLE_MARKDOWN_CODE_PROCESSOR }], target: i0.ɵɵFactoryTarget.Component });
57
+ TuiDocCodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiDocCodeComponent, selector: "tui-doc-code", inputs: { filename: "filename", code: "code" }, host: { properties: { "class._has-filename": "this.hasFilename" } }, ngImport: i0, 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>\n <code [lineNumbers]=\"true\" [highlight]=\"content\"></code>\n <div class=\"t-code-actions\">\n <button\n tuiIconButton\n appearance=\"icon\"\n size=\"xs\"\n class=\"t-copy-button\"\n [icon]=\"(icon$ | async) || 'tuiIconCopyLarge'\"\n [cdkCopyToClipboard]=\"content\"\n (click)=\"copy$.next()\"\n >\n </button>\n <ng-content></ng-content>\n </div>\n</pre>\n", styles: [":host{display:block}.t-header{font:var(--tui-font-text-s);font-weight:700}.t-header+.t-code{border-radius:.25rem}.t-code{position:relative;margin:0;white-space:normal;outline:1px solid var(--tui-base-03)}.t-code ::ng-deep .hljs-ln{width:-webkit-max-content;width:max-content}.t-code+.t-code{margin-top:1rem}.t-code-actions{position:absolute;top:.75rem;right:.75rem;display:flex;justify-content:center;align-items:center;flex-direction:row-reverse}:host-context(tui-root._mobile) .t-code-actions{padding:.3125rem;border-radius:.25rem;border:1px solid var(--tui-base-04)}.t-copy-button::ng-deep+*:not(:empty){margin-right:.375rem}.hljs:not(:empty){font:var(--tui-font-text-m);font-size:.875rem;padding:1.5rem 2rem;font-family:monospace;word-wrap:break-word;white-space:pre-wrap}@media all and (-webkit-min-device-pixel-ratio: 0) and (-webkit-min-device-pixel-ratio: 0),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:.375rem 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-context(tui-root._mobile) .hljs:not(:empty){padding:1rem}.t-code-actions,.hljs:not(:empty){background:var(--tui-base-01)}@supports (background: color-mix(in srgb,var(--tui-base-01),#222 2%)){.t-code-actions,.hljs:not(:empty){background:color-mix(in srgb,var(--tui-base-01),#222 2%)}}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.Highlight, selector: "[highlight]", inputs: ["highlight", "languages", "lineNumbers"], outputs: ["highlighted"] }, { kind: "component", type: i4.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }, { kind: "directive", type: i4$1.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
58
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocCodeComponent, decorators: [{
59
+ type: Component,
60
+ args: [{ selector: 'tui-doc-code', changeDetection: ChangeDetectionStrategy.OnPush, 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>\n <code [lineNumbers]=\"true\" [highlight]=\"content\"></code>\n <div class=\"t-code-actions\">\n <button\n tuiIconButton\n appearance=\"icon\"\n size=\"xs\"\n class=\"t-copy-button\"\n [icon]=\"(icon$ | async) || 'tuiIconCopyLarge'\"\n [cdkCopyToClipboard]=\"content\"\n (click)=\"copy$.next()\"\n >\n </button>\n <ng-content></ng-content>\n </div>\n</pre>\n", styles: [":host{display:block}.t-header{font:var(--tui-font-text-s);font-weight:700}.t-header+.t-code{border-radius:.25rem}.t-code{position:relative;margin:0;white-space:normal;outline:1px solid var(--tui-base-03)}.t-code ::ng-deep .hljs-ln{width:-webkit-max-content;width:max-content}.t-code+.t-code{margin-top:1rem}.t-code-actions{position:absolute;top:.75rem;right:.75rem;display:flex;justify-content:center;align-items:center;flex-direction:row-reverse}:host-context(tui-root._mobile) .t-code-actions{padding:.3125rem;border-radius:.25rem;border:1px solid var(--tui-base-04)}.t-copy-button::ng-deep+*:not(:empty){margin-right:.375rem}.hljs:not(:empty){font:var(--tui-font-text-m);font-size:.875rem;padding:1.5rem 2rem;font-family:monospace;word-wrap:break-word;white-space:pre-wrap}@media all and (-webkit-min-device-pixel-ratio: 0) and (-webkit-min-device-pixel-ratio: 0),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:.375rem 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-context(tui-root._mobile) .hljs:not(:empty){padding:1rem}.t-code-actions,.hljs:not(:empty){background:var(--tui-base-01)}@supports (background: color-mix(in srgb,var(--tui-base-01),#222 2%)){.t-code-actions,.hljs:not(:empty){background:color-mix(in srgb,var(--tui-base-01),#222 2%)}}\n"] }]
61
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
62
+ type: Inject,
63
+ args: [TUI_DOC_EXAMPLE_MARKDOWN_CODE_PROCESSOR]
64
+ }] }]; }, propDecorators: { filename: [{
65
+ type: Input
66
+ }], code: [{
67
+ type: Input
68
+ }], hasFilename: [{
69
+ type: HostBinding,
70
+ args: ['class._has-filename']
71
+ }] } });
72
+
73
+ class TuiDocCodeModule {
74
+ }
75
+ TuiDocCodeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocCodeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
76
+ TuiDocCodeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiDocCodeModule, declarations: [TuiDocCodeComponent], imports: [CommonModule,
77
+ TuiSvgModule,
78
+ HighlightModule,
79
+ TuiButtonModule,
80
+ ClipboardModule], exports: [TuiDocCodeComponent] });
81
+ TuiDocCodeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocCodeModule, imports: [CommonModule,
82
+ TuiSvgModule,
83
+ HighlightModule,
84
+ TuiButtonModule,
85
+ ClipboardModule] });
86
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocCodeModule, decorators: [{
87
+ type: NgModule,
88
+ args: [{
89
+ imports: [
90
+ CommonModule,
91
+ TuiSvgModule,
92
+ HighlightModule,
93
+ TuiButtonModule,
94
+ ClipboardModule,
95
+ ],
96
+ declarations: [TuiDocCodeComponent],
97
+ exports: [TuiDocCodeComponent],
98
+ }]
99
+ }] });
100
+
101
+ const COPIED_TIMEOUT = 1500;
102
+ class TuiDocCopyComponent {
103
+ constructor(texts$) {
104
+ this.texts$ = texts$;
105
+ this.copy$ = new Subject();
106
+ }
107
+ get copied$() {
108
+ return this.copy$.pipe(switchMap(() => timer(COPIED_TIMEOUT).pipe(map(ALWAYS_FALSE_HANDLER), startWith(true))));
109
+ }
110
+ onClick() {
111
+ this.copy$.next();
112
+ }
113
+ }
114
+ TuiDocCopyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocCopyComponent, deps: [{ token: TUI_COPY_TEXTS }], target: i0.ɵɵFactoryTarget.Component });
115
+ TuiDocCopyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiDocCopyComponent, selector: "tui-doc-copy", providers: [TuiDestroyService], ngImport: i0, template: "<button\n *ngIf=\"texts$ | async as texts\"\n appearance=\"\"\n size=\"s\"\n tuiButton\n type=\"button\"\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;border-radius:var(--tui-radius-m)}.t-copy{transition-property:background;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: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"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
116
+ __decorate([
117
+ tuiPure
118
+ ], TuiDocCopyComponent.prototype, "copied$", null);
119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocCopyComponent, decorators: [{
120
+ type: Component,
121
+ args: [{ selector: 'tui-doc-copy', changeDetection: ChangeDetectionStrategy.OnPush, providers: [TuiDestroyService], template: "<button\n *ngIf=\"texts$ | async as texts\"\n appearance=\"\"\n size=\"s\"\n tuiButton\n type=\"button\"\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;border-radius:var(--tui-radius-m)}.t-copy{transition-property:background;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: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"] }]
122
+ }], ctorParameters: function () { return [{ type: i10.Observable, decorators: [{
123
+ type: Inject,
124
+ args: [TUI_COPY_TEXTS]
125
+ }] }]; }, propDecorators: { copied$: [] } });
126
+
127
+ class TuiDocCopyModule {
128
+ }
129
+ TuiDocCopyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocCopyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
130
+ TuiDocCopyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiDocCopyModule, declarations: [TuiDocCopyComponent], imports: [CommonModule, TuiButtonModule], exports: [TuiDocCopyComponent] });
131
+ TuiDocCopyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocCopyModule, imports: [CommonModule, TuiButtonModule] });
132
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocCopyModule, decorators: [{
133
+ type: NgModule,
134
+ args: [{
135
+ imports: [CommonModule, TuiButtonModule],
136
+ declarations: [TuiDocCopyComponent],
137
+ exports: [TuiDocCopyComponent],
138
+ }]
139
+ }] });
140
+
141
+ const MIN_WIDTH = 160;
142
+ class TuiDocDemoComponent {
143
+ constructor(options, isMobile, el, locationRef, urlSerializer, texts, urlStateHandler) {
144
+ this.options = options;
145
+ this.isMobile = isMobile;
146
+ this.el = el;
147
+ this.locationRef = locationRef;
148
+ this.urlSerializer = urlSerializer;
149
+ this.texts = texts;
150
+ this.urlStateHandler = urlStateHandler;
151
+ this.control = null;
152
+ this.sticky = true;
153
+ this.template = null;
154
+ this.updateOnVariants = ['change', 'blur', 'submit'];
155
+ this.updateOn = this.params.updateOn || this.updateOnVariants[0];
156
+ this.opaque = tuiCoerceValueIsTrue(this.params.sandboxOpaque ?? true);
157
+ this.expanded = tuiCoerceValueIsTrue(this.params.sandboxExpanded ?? false);
158
+ this.mode = this.params.tuiMode || null;
159
+ this.sandboxWidth = tuiToInteger(this.params.sandboxWidth);
160
+ this.change$ = new Subject();
161
+ this.items = ['onLight', 'onDark'];
162
+ }
163
+ onResize() {
164
+ this.updateWidth();
165
+ this.onMouseUp();
166
+ }
167
+ onMouseUp() {
168
+ this.updateUrl({ sandboxWidth: this.sandboxWidth });
169
+ }
170
+ ngOnInit() {
171
+ this.createForm();
172
+ this.updateWidth(this.sandboxWidth + this.delta);
173
+ }
174
+ onModeChange(mode) {
175
+ this.mode = mode;
176
+ this.updateUrl({ sandboxWidth: this.sandboxWidth });
177
+ this.change$.next();
178
+ }
179
+ toggleDetails() {
180
+ this.expanded = !this.expanded;
181
+ this.updateUrl({ sandboxExpanded: this.expanded });
182
+ }
183
+ changeOpaque(opaque) {
184
+ this.opaque = opaque;
185
+ this.updateUrl({ sandboxOpaque: this.opaque });
186
+ }
187
+ updateOnChange(updateOn) {
188
+ this.updateOn = updateOn;
189
+ this.updateUrl({ updateOn });
190
+ this.createForm();
191
+ }
192
+ updateWidth(width = NaN) {
193
+ if (!this.resizer || !this.resizeable || !this.content) {
194
+ return;
195
+ }
196
+ const safe = width || this.resizeable.nativeElement.clientWidth;
197
+ const total = this.el.nativeElement.clientWidth;
198
+ const clamped = Math.round(tuiClamp(safe, MIN_WIDTH, total)) - this.delta;
199
+ const validated = safe < total ? clamped : NaN;
200
+ this.resizer.nativeElement.textContent = String(clamped || '-');
201
+ this.resizeable.nativeElement.style.width = validated ? tuiPx(safe) : '';
202
+ this.sandboxWidth = validated;
203
+ }
204
+ get delta() {
205
+ return this.resizeable && this.content
206
+ ? this.resizeable.nativeElement.clientWidth -
207
+ this.content.nativeElement.clientWidth
208
+ : 0;
209
+ }
210
+ updateUrl(params) {
211
+ const tree = this.getUrlTree();
212
+ const { queryParams } = tree;
213
+ delete queryParams.sandboxWidth;
214
+ delete queryParams.tuiMode;
215
+ tree.queryParams = {
216
+ ...queryParams,
217
+ ...tuiCleanObject({ tuiMode: this.mode, ...params }),
218
+ };
219
+ this.locationRef.go(this.urlStateHandler(tree));
220
+ }
221
+ createForm() {
222
+ const { control, updateOn } = this;
223
+ if (control) {
224
+ this.testForm = new UntypedFormGroup({ testValue: control }, { updateOn });
225
+ }
226
+ }
227
+ getUrlTree() {
228
+ return this.urlSerializer.parse(this.locationRef.path());
229
+ }
230
+ get params() {
231
+ return this.getUrlTree().queryParams;
232
+ }
233
+ }
234
+ TuiDocDemoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocDemoComponent, deps: [{ token: TUI_ARROW_OPTIONS }, { token: TUI_IS_MOBILE }, { token: ElementRef }, { token: Location$1 }, { token: UrlSerializer }, { token: TUI_DOC_DEMO_TEXTS }, { token: TUI_DOC_URL_STATE_HANDLER }], target: i0.ɵɵFactoryTarget.Component });
235
+ TuiDocDemoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiDocDemoComponent, selector: "tui-doc-demo", inputs: { control: "control", sticky: "sticky" }, host: { listeners: { "window:resize": "onResize()", "document:mouseup.silent": "onMouseUp()" }, properties: { "class._sticky": "this.sticky" } }, providers: [
236
+ TuiDestroyService,
237
+ {
238
+ provide: TuiModeDirective,
239
+ useExisting: forwardRef(() => TuiDocDemoComponent),
240
+ },
241
+ ], queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], viewQueries: [{ propertyName: "resizeable", first: true, predicate: TuiResizeableDirective, descendants: true, static: true }, { propertyName: "content", first: true, predicate: ["content"], descendants: true, static: true }, { propertyName: "resizer", first: true, predicate: ["resizer"], descendants: true, static: true }], ngImport: i0, template: "<div\n class=\"t-bg-toggle\"\n [tuiMode]=\"null\"\n>\n <ng-template #tooltip>\n {{ texts[0] }}\n <a\n routerLink=\"/directives/mode\"\n tuiLink\n tuiMode=\"onDark\"\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 [ngModel]=\"mode\"\n [tuiHintContent]=\"tooltip\"\n [tuiTextfieldCleaner]=\"true\"\n (ngModelChange)=\"onModeChange($event)\"\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 nativeId=\"form\"\n size=\"s\"\n class=\"tui-group__auto-width-item\"\n [hideRadio]=\"true\"\n [item]=\"null\"\n [ngModel]=\"mode\"\n (ngModelChange)=\"onModeChange($event)\"\n >\n null\n </tui-radio-block>\n <tui-radio-block\n item=\"onDark\"\n nativeId=\"form\"\n size=\"s\"\n class=\"tui-group__auto-width-item\"\n [hideRadio]=\"true\"\n [ngModel]=\"mode\"\n (ngModelChange)=\"onModeChange($event)\"\n >\n onDark\n </tui-radio-block>\n <tui-radio-block\n item=\"onLight\"\n nativeId=\"form\"\n size=\"s\"\n class=\"tui-group__auto-width-item\"\n [hideRadio]=\"true\"\n [ngModel]=\"mode\"\n (ngModelChange)=\"onModeChange($event)\"\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 (ngModelChange)=\"changeOpaque($event)\"\n >\n {{ texts[1] }}\n </tui-checkbox-labeled>\n</div>\n<div\n tuiResizeable\n class=\"t-wrapper\"\n [class.t-wrapper_dark]=\"mode === 'onDark'\"\n [class.t-wrapper_gray]=\"mode === 'onLight'\"\n [class.t-wrapper_transparent]=\"!opaque\"\n>\n <div\n id=\"demo-content\"\n class=\"t-content\"\n >\n <div #content>\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 automation-id=\"tui-demo-button__toggle-details\"\n size=\"s\"\n tuiButton\n type=\"button\"\n class=\"t-button\"\n [iconRight]=\"icon\"\n (click)=\"toggleDetails()\"\n >\n {{ texts[2] }}\n </button>\n <ng-template #icon>\n <tui-svg\n class=\"t-icon\"\n [class.t-icon_rotated]=\"expanded\"\n [src]=\"options.iconSmall\"\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 automation-id=\"tui-demo-select__expand-update-on\"\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 automation-id=\"tui-demo-button__reset-state\"\n size=\"s\"\n tuiButton\n type=\"reset\"\n class=\"tui-group__auto-width-item\"\n >\n Reset\n </button>\n <button\n automation-id=\"tui-demo-button__submit-state\"\n size=\"s\"\n tuiButton\n type=\"submit\"\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 </div>\n <div\n #resizer\n class=\"t-resizer\"\n [tuiResizer]=\"[1, 0]\"\n (tuiSizeChange)=\"updateWidth($event[0])\"\n ></div>\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:var(--tui-shadow-dropdown);display:flex;border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m);max-width:100%;min-height:6rem;width:100%;min-width:10rem;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, .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{box-shadow:var(--tui-shadow-dropdown);position:relative;width:3.5rem;min-height:inherit;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-left:1px solid var(--tui-base-03);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:calc(50% + 1rem);width:1px;background:var(--tui-base-04);box-shadow:-.25rem 0 var(--tui-base-04);transform:translateZ(0)}.t-resizer:after{bottom:.75rem;top:calc(50% + 1rem)}: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._sticky{position:-webkit-sticky;position:sticky;top:4.625rem;z-index:2}}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i4.TuiLinkComponent, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo", "icon", "iconAlign", "iconRotated", "mode"], exportAs: ["tuiLink"] }, { kind: "component", type: i4.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }, { kind: "component", type: i3$1.TuiSelectComponent, selector: "tui-select", inputs: ["stringify", "identityMatcher", "valueContent"] }, { kind: "directive", type: i3$1.TuiSelectDirective, selector: "tui-select" }, { kind: "component", type: i4.TuiExpandComponent, selector: "tui-expand", inputs: ["async", "expanded"] }, { kind: "directive", type: i4.TuiExpandContentDirective, selector: "[tuiExpandContent]" }, { kind: "directive", type: i4.TuiGroupDirective, selector: "[tuiGroup]:not(ng-container)", inputs: ["orientation", "adaptive", "collapsed", "rounded", "size"] }, { kind: "component", type: i4.TuiTooltipComponent, selector: "tui-tooltip", inputs: ["content", "direction", "appearance", "showDelay", "hideDelay", "describeId", "context"] }, { kind: "directive", type: i4.TuiModeDirective, selector: "[tuiMode]", inputs: ["tuiMode"] }, { kind: "component", type: i3$1.TuiRadioBlockComponent, selector: "tui-radio-block", inputs: ["item", "identityMatcher", "contentAlign", "size", "hideRadio", "pseudoDisabled"] }, { kind: "component", type: i3$1.TuiCheckboxLabeledComponent, selector: "tui-checkbox-labeled", inputs: ["size"] }, { kind: "component", type: i4.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { kind: "component", type: i3$1.TuiDataListWrapperComponent, selector: "tui-data-list-wrapper:not([labels])", inputs: ["items"] }, { kind: "directive", type: i4.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { kind: "directive", type: i4.TuiTextfieldCleanerDirective, selector: "[tuiTextfieldCleaner]", inputs: ["tuiTextfieldCleaner"] }, { kind: "directive", type: i4.TuiTextfieldSizeDirective, selector: "[tuiTextfieldSize]", inputs: ["tuiTextfieldSize"] }, { kind: "directive", type: i4.TuiHintOptionsDirective, selector: "[tuiHintContent]", inputs: ["tuiHintContent", "tuiHintDirection", "tuiHintAppearance", "tuiHintShowDelay", "tuiHintHideDelay"] }, { kind: "directive", type: i6.TuiResizeableDirective, selector: "[tuiResizeable]" }, { kind: "directive", type: i6.TuiResizerDirective, selector: "[tuiResizer]", inputs: ["tuiResizer"], outputs: ["tuiSizeChange"] }, { kind: "pipe", type: i1.JsonPipe, name: "json" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
242
+ __decorate([
243
+ tuiPure
244
+ ], TuiDocDemoComponent.prototype, "updateUrl", null);
245
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocDemoComponent, decorators: [{
246
+ type: Component,
247
+ args: [{ selector: 'tui-doc-demo', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
248
+ TuiDestroyService,
249
+ {
250
+ provide: TuiModeDirective,
251
+ useExisting: forwardRef(() => TuiDocDemoComponent),
252
+ },
253
+ ], template: "<div\n class=\"t-bg-toggle\"\n [tuiMode]=\"null\"\n>\n <ng-template #tooltip>\n {{ texts[0] }}\n <a\n routerLink=\"/directives/mode\"\n tuiLink\n tuiMode=\"onDark\"\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 [ngModel]=\"mode\"\n [tuiHintContent]=\"tooltip\"\n [tuiTextfieldCleaner]=\"true\"\n (ngModelChange)=\"onModeChange($event)\"\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 nativeId=\"form\"\n size=\"s\"\n class=\"tui-group__auto-width-item\"\n [hideRadio]=\"true\"\n [item]=\"null\"\n [ngModel]=\"mode\"\n (ngModelChange)=\"onModeChange($event)\"\n >\n null\n </tui-radio-block>\n <tui-radio-block\n item=\"onDark\"\n nativeId=\"form\"\n size=\"s\"\n class=\"tui-group__auto-width-item\"\n [hideRadio]=\"true\"\n [ngModel]=\"mode\"\n (ngModelChange)=\"onModeChange($event)\"\n >\n onDark\n </tui-radio-block>\n <tui-radio-block\n item=\"onLight\"\n nativeId=\"form\"\n size=\"s\"\n class=\"tui-group__auto-width-item\"\n [hideRadio]=\"true\"\n [ngModel]=\"mode\"\n (ngModelChange)=\"onModeChange($event)\"\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 (ngModelChange)=\"changeOpaque($event)\"\n >\n {{ texts[1] }}\n </tui-checkbox-labeled>\n</div>\n<div\n tuiResizeable\n class=\"t-wrapper\"\n [class.t-wrapper_dark]=\"mode === 'onDark'\"\n [class.t-wrapper_gray]=\"mode === 'onLight'\"\n [class.t-wrapper_transparent]=\"!opaque\"\n>\n <div\n id=\"demo-content\"\n class=\"t-content\"\n >\n <div #content>\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 automation-id=\"tui-demo-button__toggle-details\"\n size=\"s\"\n tuiButton\n type=\"button\"\n class=\"t-button\"\n [iconRight]=\"icon\"\n (click)=\"toggleDetails()\"\n >\n {{ texts[2] }}\n </button>\n <ng-template #icon>\n <tui-svg\n class=\"t-icon\"\n [class.t-icon_rotated]=\"expanded\"\n [src]=\"options.iconSmall\"\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 automation-id=\"tui-demo-select__expand-update-on\"\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 automation-id=\"tui-demo-button__reset-state\"\n size=\"s\"\n tuiButton\n type=\"reset\"\n class=\"tui-group__auto-width-item\"\n >\n Reset\n </button>\n <button\n automation-id=\"tui-demo-button__submit-state\"\n size=\"s\"\n tuiButton\n type=\"submit\"\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 </div>\n <div\n #resizer\n class=\"t-resizer\"\n [tuiResizer]=\"[1, 0]\"\n (tuiSizeChange)=\"updateWidth($event[0])\"\n ></div>\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:var(--tui-shadow-dropdown);display:flex;border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m);max-width:100%;min-height:6rem;width:100%;min-width:10rem;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, .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{box-shadow:var(--tui-shadow-dropdown);position:relative;width:3.5rem;min-height:inherit;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-left:1px solid var(--tui-base-03);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:calc(50% + 1rem);width:1px;background:var(--tui-base-04);box-shadow:-.25rem 0 var(--tui-base-04);transform:translateZ(0)}.t-resizer:after{bottom:.75rem;top:calc(50% + 1rem)}: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._sticky{position:-webkit-sticky;position:sticky;top:4.625rem;z-index:2}}}\n"] }]
254
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
255
+ type: Inject,
256
+ args: [TUI_ARROW_OPTIONS]
257
+ }] }, { type: undefined, decorators: [{
258
+ type: Inject,
259
+ args: [TUI_IS_MOBILE]
260
+ }] }, { type: i0.ElementRef, decorators: [{
261
+ type: Inject,
262
+ args: [ElementRef]
263
+ }] }, { type: i1.Location, decorators: [{
264
+ type: Inject,
265
+ args: [Location$1]
266
+ }] }, { type: i3.UrlSerializer, decorators: [{
267
+ type: Inject,
268
+ args: [UrlSerializer]
269
+ }] }, { type: undefined, decorators: [{
270
+ type: Inject,
271
+ args: [TUI_DOC_DEMO_TEXTS]
272
+ }] }, { type: undefined, decorators: [{
273
+ type: Inject,
274
+ args: [TUI_DOC_URL_STATE_HANDLER]
275
+ }] }]; }, propDecorators: { resizeable: [{
276
+ type: ViewChild,
277
+ args: [TuiResizeableDirective, { static: true }]
278
+ }], content: [{
279
+ type: ViewChild,
280
+ args: ['content', { static: true }]
281
+ }], resizer: [{
282
+ type: ViewChild,
283
+ args: ['resizer', { static: true }]
284
+ }], control: [{
285
+ type: Input
286
+ }], sticky: [{
287
+ type: Input
288
+ }, {
289
+ type: HostBinding,
290
+ args: ['class._sticky']
291
+ }], template: [{
292
+ type: ContentChild,
293
+ args: [TemplateRef]
294
+ }], onResize: [{
295
+ type: HostListener,
296
+ args: ['window:resize']
297
+ }], onMouseUp: [{
298
+ type: HostListener,
299
+ args: ['document:mouseup.silent']
300
+ }], updateUrl: [] } });
301
+
302
+ class TuiDocDemoModule {
303
+ }
304
+ TuiDocDemoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocDemoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
305
+ TuiDocDemoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiDocDemoModule, declarations: [TuiDocDemoComponent], imports: [CommonModule,
306
+ ReactiveFormsModule,
307
+ FormsModule,
308
+ RouterModule,
309
+ TuiLinkModule,
310
+ TuiButtonModule,
311
+ TuiSelectModule,
312
+ TuiExpandModule,
313
+ TuiGroupModule,
314
+ TuiTooltipModule,
315
+ TuiModeModule,
316
+ TuiRadioBlockModule,
317
+ TuiCheckboxLabeledModule,
318
+ TuiSvgModule,
319
+ TuiDataListWrapperModule,
320
+ TuiDataListModule,
321
+ TuiTextfieldControllerModule,
322
+ TuiHintModule,
323
+ TuiResizerModule], exports: [TuiDocDemoComponent] });
324
+ TuiDocDemoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocDemoModule, imports: [CommonModule,
325
+ ReactiveFormsModule,
326
+ FormsModule,
327
+ RouterModule,
328
+ TuiLinkModule,
329
+ TuiButtonModule,
330
+ TuiSelectModule,
331
+ TuiExpandModule,
332
+ TuiGroupModule,
333
+ TuiTooltipModule,
334
+ TuiModeModule,
335
+ TuiRadioBlockModule,
336
+ TuiCheckboxLabeledModule,
337
+ TuiSvgModule,
338
+ TuiDataListWrapperModule,
339
+ TuiDataListModule,
340
+ TuiTextfieldControllerModule,
341
+ TuiHintModule,
342
+ TuiResizerModule] });
343
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocDemoModule, decorators: [{
344
+ type: NgModule,
345
+ args: [{
346
+ imports: [
347
+ CommonModule,
348
+ ReactiveFormsModule,
349
+ FormsModule,
350
+ RouterModule,
351
+ TuiLinkModule,
352
+ TuiButtonModule,
353
+ TuiSelectModule,
354
+ TuiExpandModule,
355
+ TuiGroupModule,
356
+ TuiTooltipModule,
357
+ TuiModeModule,
358
+ TuiRadioBlockModule,
359
+ TuiCheckboxLabeledModule,
360
+ TuiSvgModule,
361
+ TuiDataListWrapperModule,
362
+ TuiDataListModule,
363
+ TuiTextfieldControllerModule,
364
+ TuiHintModule,
365
+ TuiResizerModule,
366
+ ],
367
+ declarations: [TuiDocDemoComponent],
368
+ exports: [TuiDocDemoComponent],
369
+ }]
370
+ }] });
371
+
372
+ class TuiDocTabComponent {
373
+ constructor() {
374
+ this.src = '';
375
+ }
376
+ }
377
+ TuiDocTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
378
+ TuiDocTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiDocTabComponent, selector: "tui-doc-tab", inputs: { src: "src" }, ngImport: i0, template: "<div class=\"t-tab\">\n <tui-svg\n class=\"t-icon\"\n [src]=\"src\"\n ></tui-svg>\n <ng-content></ng-content>\n</div>\n", styles: [".t-tab{display:flex;align-items:center;justify-content:center;padding:0 .5rem;gap:.5rem;color:var(--tui-text-01)}.t-tab .t-icon{width:1rem;height:1rem;color:var(--tui-text-01)}\n"], dependencies: [{ kind: "component", type: i4.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
379
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocTabComponent, decorators: [{
380
+ type: Component,
381
+ args: [{ selector: 'tui-doc-tab', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"t-tab\">\n <tui-svg\n class=\"t-icon\"\n [src]=\"src\"\n ></tui-svg>\n <ng-content></ng-content>\n</div>\n", styles: [".t-tab{display:flex;align-items:center;justify-content:center;padding:0 .5rem;gap:.5rem;color:var(--tui-text-01)}.t-tab .t-icon{width:1rem;height:1rem;color:var(--tui-text-01)}\n"] }]
382
+ }], propDecorators: { src: [{
383
+ type: Input
384
+ }] } });
385
+
386
+ class TuiDocTabModule {
387
+ }
388
+ TuiDocTabModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocTabModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
389
+ TuiDocTabModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiDocTabModule, declarations: [TuiDocTabComponent], imports: [TuiSvgModule], exports: [TuiDocTabComponent] });
390
+ TuiDocTabModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocTabModule, imports: [TuiSvgModule] });
391
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocTabModule, decorators: [{
392
+ type: NgModule,
393
+ args: [{
394
+ imports: [TuiSvgModule],
395
+ declarations: [TuiDocTabComponent],
396
+ exports: [TuiDocTabComponent],
397
+ }]
398
+ }] });
399
+
400
+ const SERIALIZED_SUFFIX = '$';
401
+ // @bad TODO: refactor output and value sync
402
+ class TuiDocDocumentationPropertyConnectorDirective {
403
+ constructor(template, locationRef, activatedRoute, urlSerializer, urlStateHandler, alerts) {
404
+ this.template = template;
405
+ this.locationRef = locationRef;
406
+ this.activatedRoute = activatedRoute;
407
+ this.urlSerializer = urlSerializer;
408
+ this.urlStateHandler = urlStateHandler;
409
+ this.alerts = alerts;
410
+ this.documentationPropertyName = '';
411
+ this.documentationPropertyMode = null;
412
+ this.documentationPropertyType = '';
413
+ this.documentationPropertyDeprecated = false;
414
+ this.documentationPropertyValues = null;
415
+ this.documentationPropertyValueChange = new EventEmitter();
416
+ this.changed$ = new Subject();
417
+ this.emits$ = new BehaviorSubject(1);
418
+ }
419
+ ngOnInit() {
420
+ this.parseParams(this.activatedRoute.snapshot.queryParams);
421
+ }
422
+ get attrName() {
423
+ switch (this.documentationPropertyMode) {
424
+ case 'input':
425
+ return `[${this.documentationPropertyName}]`;
426
+ case 'output':
427
+ return `(${this.documentationPropertyName})`;
428
+ case 'input-output':
429
+ return `[(${this.documentationPropertyName})]`;
430
+ default:
431
+ return this.documentationPropertyName;
432
+ }
433
+ }
434
+ get hasItems() {
435
+ return !!this.documentationPropertyValues;
436
+ }
437
+ get shouldShowValues() {
438
+ return this.documentationPropertyMode !== 'output';
439
+ }
440
+ ngOnChanges() {
441
+ this.changed$.next();
442
+ }
443
+ onValueChange(value) {
444
+ this.documentationPropertyValue = value;
445
+ this.documentationPropertyValueChange.emit(value);
446
+ this.setQueryParam(value);
447
+ }
448
+ emitEvent(event) {
449
+ // For more convenient debugging
450
+ console.info(this.attrName, event);
451
+ this.emits$.next(this.emits$.value + 1);
452
+ let content;
453
+ if (event !== undefined) {
454
+ content = tuiInspectAny(event, 2);
455
+ }
456
+ this.alerts.open(content, { label: this.attrName }).subscribe();
457
+ }
458
+ parseParams(params) {
459
+ const propertyValue = params[this.documentationPropertyName];
460
+ const propertyValueWithSuffix = params[`${this.documentationPropertyName}${SERIALIZED_SUFFIX}`];
461
+ if (!propertyValue && !propertyValueWithSuffix) {
462
+ return;
463
+ }
464
+ let value = !!propertyValueWithSuffix && this.documentationPropertyValues
465
+ ? this.documentationPropertyValues[propertyValueWithSuffix]
466
+ : tuiCoerceValue(propertyValue);
467
+ if (this.documentationPropertyType === 'string' && tuiIsNumber(value)) {
468
+ value = value.toString();
469
+ }
470
+ this.onValueChange(value);
471
+ }
472
+ setQueryParam(value) {
473
+ const tree = this.urlSerializer.parse(this.locationRef.path());
474
+ const isValueAvailableByKey = value instanceof Object;
475
+ const computedValue = isValueAvailableByKey && this.documentationPropertyValues
476
+ ? this.documentationPropertyValues.indexOf(value)
477
+ : value;
478
+ const suffix = isValueAvailableByKey ? SERIALIZED_SUFFIX : '';
479
+ const propName = this.documentationPropertyName + suffix;
480
+ tree.queryParams = {
481
+ ...tree.queryParams,
482
+ [propName]: computedValue,
483
+ };
484
+ this.locationRef.go(this.urlStateHandler(tree));
485
+ }
486
+ }
487
+ TuiDocDocumentationPropertyConnectorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocDocumentationPropertyConnectorDirective, deps: [{ token: TemplateRef }, { token: Location$1 }, { token: ActivatedRoute }, { token: UrlSerializer }, { token: TUI_DOC_URL_STATE_HANDLER }, { token: TuiAlertService }], target: i0.ɵɵFactoryTarget.Directive });
488
+ TuiDocDocumentationPropertyConnectorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", 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 });
489
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocDocumentationPropertyConnectorDirective, decorators: [{
490
+ type: Directive,
491
+ args: [{
492
+ selector: 'ng-template[documentationPropertyName]',
493
+ exportAs: 'documentationProperty',
494
+ }]
495
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
496
+ type: Inject,
497
+ args: [TemplateRef]
498
+ }] }, { type: i1.Location, decorators: [{
499
+ type: Inject,
500
+ args: [Location$1]
501
+ }] }, { type: i3.ActivatedRoute, decorators: [{
502
+ type: Inject,
503
+ args: [ActivatedRoute]
504
+ }] }, { type: i3.UrlSerializer, decorators: [{
505
+ type: Inject,
506
+ args: [UrlSerializer]
507
+ }] }, { type: undefined, decorators: [{
508
+ type: Inject,
509
+ args: [TUI_DOC_URL_STATE_HANDLER]
510
+ }] }, { type: i4.TuiAlertService, decorators: [{
511
+ type: Inject,
512
+ args: [TuiAlertService]
513
+ }] }]; }, propDecorators: { documentationPropertyName: [{
514
+ type: Input
515
+ }], documentationPropertyMode: [{
516
+ type: Input
517
+ }], documentationPropertyType: [{
518
+ type: Input
519
+ }], documentationPropertyValue: [{
520
+ type: Input
521
+ }], documentationPropertyDeprecated: [{
522
+ type: Input
523
+ }], documentationPropertyValues: [{
524
+ type: Input
525
+ }], documentationPropertyValueChange: [{
526
+ type: Output
527
+ }] } });
528
+
529
+ class TuiGetColorPipe {
530
+ transform(color) {
531
+ if (color.length === 4) {
532
+ return color
533
+ .split(``)
534
+ .reduce((result, current) => [...result, current, current], [])
535
+ .join(``)
536
+ .replace(`#`, ``);
537
+ }
538
+ if (color.startsWith(`#`)) {
539
+ return color;
540
+ }
541
+ if (color === `transparent`) {
542
+ return `#000000`;
543
+ }
544
+ const parsed = color
545
+ .replace(`rgb(`, ``)
546
+ .replace(`rgba(`, ``)
547
+ .replace(`)`, ``)
548
+ .replace(` `, ``)
549
+ .split(`,`)
550
+ .map(v => Number.parseInt(v, 10));
551
+ return tuiRgbToHex(...parsed);
552
+ }
553
+ }
554
+ TuiGetColorPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiGetColorPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
555
+ TuiGetColorPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiGetColorPipe, name: "tuiGetColorPipe" });
556
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiGetColorPipe, decorators: [{
557
+ type: Pipe,
558
+ args: [{ name: `tuiGetColorPipe` }]
559
+ }] });
560
+
561
+ class TuiGetOpacityPipe {
562
+ transform(color) {
563
+ if (color.startsWith(`#`) || color.startsWith(`rgb(`)) {
564
+ return 100;
565
+ }
566
+ if (color === `transparent`) {
567
+ return 0;
568
+ }
569
+ const lastComma = color.lastIndexOf(`,`);
570
+ const parsed = color
571
+ .slice(lastComma)
572
+ .replace(`)`, ``)
573
+ .replace(` `, ``)
574
+ .replace(`,`, ``);
575
+ return Math.round(Number.parseFloat(parsed) * 100);
576
+ }
577
+ }
578
+ TuiGetOpacityPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiGetOpacityPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
579
+ TuiGetOpacityPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiGetOpacityPipe, name: "tuiGetOpacity" });
580
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiGetOpacityPipe, decorators: [{
581
+ type: Pipe,
582
+ args: [{ name: `tuiGetOpacity` }]
583
+ }] });
584
+
585
+ class TuiInputOpacityDirective {
586
+ set tuiInputOpacity(opacity) {
587
+ const { nativeFocusableElement } = this.focusable;
588
+ if (nativeFocusableElement) {
589
+ this.renderer.setStyle(nativeFocusableElement, 'opacity', opacity / 100);
590
+ }
591
+ }
592
+ constructor(renderer, focusable) {
593
+ this.renderer = renderer;
594
+ this.focusable = focusable;
595
+ }
596
+ }
597
+ TuiInputOpacityDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputOpacityDirective, deps: [{ token: Renderer2 }, { token: TUI_FOCUSABLE_ITEM_ACCESSOR }], target: i0.ɵɵFactoryTarget.Directive });
598
+ TuiInputOpacityDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiInputOpacityDirective, selector: "[tuiInputOpacity]", inputs: { tuiInputOpacity: "tuiInputOpacity" }, ngImport: i0 });
599
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputOpacityDirective, decorators: [{
600
+ type: Directive,
601
+ args: [{
602
+ selector: '[tuiInputOpacity]',
603
+ }]
604
+ }], ctorParameters: function () { return [{ type: i0.Renderer2, decorators: [{
605
+ type: Inject,
606
+ args: [Renderer2]
607
+ }] }, { type: undefined, decorators: [{
608
+ type: Inject,
609
+ args: [TUI_FOCUSABLE_ITEM_ACCESSOR]
610
+ }] }]; }, propDecorators: { tuiInputOpacity: [{
611
+ type: Input
612
+ }] } });
613
+
614
+ class TuiInspectPipe {
615
+ constructor(isE2E) {
616
+ this.isE2E = isE2E;
617
+ }
618
+ transform(value, depth = 2) {
619
+ if (this.isE2E && typeof value === `function`) {
620
+ /**
621
+ * @description:
622
+ * When developing in production mode the webpack bundler minify
623
+ * functions in different ways, then due to which the string content
624
+ * of the function may differ from build to build, which can be to
625
+ * various problems when screenshot testing on e2e.
626
+ */
627
+ return `λ(x) => y`;
628
+ }
629
+ return tuiInspectAny(value, depth);
630
+ }
631
+ }
632
+ TuiInspectPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInspectPipe, deps: [{ token: TUI_IS_E2E }], target: i0.ɵɵFactoryTarget.Pipe });
633
+ TuiInspectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiInspectPipe, name: "tuiInspectAny" });
634
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInspectPipe, decorators: [{
635
+ type: Pipe,
636
+ args: [{ name: `tuiInspectAny` }]
637
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
638
+ type: Inject,
639
+ args: [TUI_IS_E2E]
640
+ }] }]; } });
641
+
642
+ class TuiIsOptionalPipe {
643
+ transform(name) {
644
+ return name.includes(`?`);
645
+ }
646
+ }
647
+ TuiIsOptionalPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiIsOptionalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
648
+ TuiIsOptionalPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiIsOptionalPipe, name: "tuiIsOptionalPipe" });
649
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiIsOptionalPipe, decorators: [{
650
+ type: Pipe,
651
+ args: [{ name: `tuiIsOptionalPipe` }]
652
+ }] });
653
+
654
+ class TuiShowCleanerPipe {
655
+ transform(type) {
656
+ return type.includes(`null`);
657
+ }
658
+ }
659
+ TuiShowCleanerPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiShowCleanerPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
660
+ TuiShowCleanerPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiShowCleanerPipe, name: "tuiShowCleanerPipe" });
661
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiShowCleanerPipe, decorators: [{
662
+ type: Pipe,
663
+ args: [{ name: `tuiShowCleanerPipe` }]
664
+ }] });
665
+
666
+ class TuiStripOptionalPipe {
667
+ transform(name) {
668
+ return name.replace(`?`, ``);
669
+ }
670
+ }
671
+ TuiStripOptionalPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiStripOptionalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
672
+ TuiStripOptionalPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiStripOptionalPipe, name: "tuiStripOptionalPipe" });
673
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiStripOptionalPipe, decorators: [{
674
+ type: Pipe,
675
+ args: [{ name: `tuiStripOptionalPipe` }]
676
+ }] });
677
+
678
+ class TuiDocTypeReferencePipe {
679
+ constructor(parser, linkHandler) {
680
+ this.parser = parser;
681
+ this.linkHandler = linkHandler;
682
+ }
683
+ transform(original) {
684
+ return this.parser(original)
685
+ .map(({ type, extracted }) => ({
686
+ type,
687
+ extracted,
688
+ reference: this.linkHandler?.(extracted) ?? null,
689
+ }))
690
+ .sort((a, b) => b.reference?.localeCompare(a.reference ?? ``) ?? -1);
691
+ }
692
+ }
693
+ TuiDocTypeReferencePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocTypeReferencePipe, deps: [{ token: TUI_DOC_TYPE_REFERENCE_PARSER }, { token: TUI_DOC_TYPE_REFERENCE_HANDLER }], target: i0.ɵɵFactoryTarget.Pipe });
694
+ TuiDocTypeReferencePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiDocTypeReferencePipe, name: "tuiDocTypeReference" });
695
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocTypeReferencePipe, decorators: [{
696
+ type: Pipe,
697
+ args: [{ name: `tuiDocTypeReference` }]
698
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
699
+ type: Inject,
700
+ args: [TUI_DOC_TYPE_REFERENCE_PARSER]
701
+ }] }, { type: undefined, decorators: [{
702
+ type: Inject,
703
+ args: [TUI_DOC_TYPE_REFERENCE_HANDLER]
704
+ }] }]; } });
705
+
706
+ class TuiIsPrimitivePolymorpheusContentPipe {
707
+ transform(value) {
708
+ return tuiIsString(value) || tuiIsNumber(value);
709
+ }
710
+ }
711
+ TuiIsPrimitivePolymorpheusContentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiIsPrimitivePolymorpheusContentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
712
+ TuiIsPrimitivePolymorpheusContentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiIsPrimitivePolymorpheusContentPipe, name: "tuiIsPrimitivePolymorpheusContentPipe" });
713
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiIsPrimitivePolymorpheusContentPipe, decorators: [{
714
+ type: Pipe,
715
+ args: [{ name: `tuiIsPrimitivePolymorpheusContentPipe` }]
716
+ }] });
717
+
718
+ // @bad TODO subscribe propertiesConnectors changes
719
+ // @bad TODO refactor to make more flexible
720
+ class TuiDocDocumentationComponent {
721
+ constructor(cdr, texts, excludedProperties, destroy$, getColor, getOpacity) {
722
+ this.cdr = cdr;
723
+ this.texts = texts;
724
+ this.excludedProperties = excludedProperties;
725
+ this.destroy$ = destroy$;
726
+ this.getColor = getColor;
727
+ this.getOpacity = getOpacity;
728
+ this.heading = '';
729
+ this.showValues = true;
730
+ this.isAPI = false;
731
+ this.propertiesConnectors = EMPTY_QUERY;
732
+ this.activeItemIndex = 0;
733
+ this.matcher = (item, exclusions) => !exclusions.has(item.documentationPropertyName);
734
+ }
735
+ ngAfterContentInit() {
736
+ tuiQueryListChanges(this.propertiesConnectors)
737
+ .pipe(switchMap(items => merge(...items.map(({ changed$ }) => changed$))), tuiWatch(this.cdr), takeUntil(this.destroy$))
738
+ .subscribe();
739
+ }
740
+ get type() {
741
+ return this.isAPI ? this.texts[0] : this.texts[1];
742
+ }
743
+ onColorChange(connector, color) {
744
+ const opacity = this.getOpacity.transform(connector.documentationPropertyValue || '');
745
+ if (opacity === 100) {
746
+ connector.onValueChange(color);
747
+ return;
748
+ }
749
+ const rgb = tuiHexToRgb(color).join(', ');
750
+ const result = `rgba(${rgb}, ${opacity / 100})`;
751
+ connector.onValueChange(result);
752
+ }
753
+ onOpacityChange(connector, opacity) {
754
+ const hex = this.getColor.transform(connector.documentationPropertyValue || '');
755
+ const rgb = tuiHexToRgb(hex);
756
+ const result = `rgba(${rgb}, ${(opacity || 0) / 100})`;
757
+ connector.onValueChange(result);
758
+ }
759
+ }
760
+ TuiDocDocumentationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocDocumentationComponent, deps: [{ token: ChangeDetectorRef }, { token: TUI_DOC_DOCUMENTATION_TEXTS }, { token: TUI_DOC_EXCLUDED_PROPERTIES }, { token: TuiDestroyService, self: true }, { token: TuiGetColorPipe }, { token: TuiGetOpacityPipe }], target: i0.ɵɵFactoryTarget.Component });
761
+ TuiDocDocumentationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiDocDocumentationComponent, selector: "tui-doc-documentation", inputs: { heading: "heading", showValues: "showValues", isAPI: "isAPI" }, providers: [TuiGetColorPipe, TuiGetOpacityPipe, TuiDestroyService], queries: [{ propertyName: "propertiesConnectors", predicate: TuiDocDocumentationPropertyConnectorDirective }], ngImport: i0, template: "<h1\n *ngIf=\"heading\"\n class=\"t-heading\"\n>\n {{ heading }}\n</h1>\n<ng-content></ng-content>\n<ng-container *ngIf=\"$any(propertiesConnectors) | tuiFilter: matcher : excludedProperties as properties\">\n <table\n *ngIf=\"properties.length\"\n class=\"t-table\"\n >\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-th_value\"\n >\n {{ texts[3] }}\n </th>\n </tr>\n <tr\n *ngFor=\"let propertyConnector of properties\"\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 t-additional-info\"\n >\n <code\n class=\"t-property-code\"\n [style.color]=\"'var(--tui-accent-active)'\"\n >\n {{ propertyConnector.attrName | tuiStripOptionalPipe }}\n </code>\n <tui-badge\n *ngIf=\"propertyConnector.attrName | tuiIsOptionalPipe\"\n size=\"s\"\n status=\"neutral\"\n value=\"Optional\"\n ></tui-badge>\n <tui-badge\n *ngIf=\"propertyConnector.documentationPropertyDeprecated\"\n size=\"s\"\n status=\"error\"\n value=\"Deprecated\"\n ></tui-badge>\n </div>\n <ng-container [ngTemplateOutlet]=\"propertyConnector.template\"></ng-container>\n </td>\n <td class=\"t-cell\">\n <span class=\"type\">\n <code class=\"t-code-type\">\n <ng-container\n *ngFor=\"\n let item of propertyConnector.documentationPropertyType | tuiDocTypeReference;\n let last = last\n \"\n >\n <a\n *ngIf=\"item.reference; else default\"\n target=\"_blank\"\n class=\"t-code-reference\"\n [attr.href]=\"item.reference\"\n >\n {{ item.type }}\n </a>\n <ng-template #default>\n {{ item.type }}\n </ng-template>\n <span *ngIf=\"!last\">&nbsp;|&nbsp;</span>\n </ng-container>\n </code>\n </span>\n </td>\n <td\n *ngIf=\"showValues\"\n class=\"t-cell t-cell_value\"\n >\n <ng-container *ngIf=\"propertyConnector.shouldShowValues; else elseEmitter\">\n <tui-select\n *ngIf=\"propertyConnector.hasItems; else noItems\"\n tuiDropdownLimitWidth=\"min\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n [tuiTextfieldCleaner]=\"propertyConnector.documentationPropertyType | tuiShowCleanerPipe\"\n [tuiTextfieldLabelOutside]=\"true\"\n [valueContent]=\"selectContent\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n >\n <code class=\"t-exception\">null</code>\n <tui-data-list-wrapper\n *tuiDataList\n [itemContent]=\"selectContent\"\n [items]=\"propertyConnector.documentationPropertyValues\"\n ></tui-data-list-wrapper>\n </tui-select>\n <ng-template\n #selectContent\n let-data\n >\n <code>{{ data | tuiInspectAny }}</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 [ngModel]=\"propertyConnector.documentationPropertyValue\"\n [showIcons]=\"true\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-toggle>\n\n <tui-primitive-textfield\n *ngSwitchCase=\"'string'\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldCleaner]=\"true\"\n [tuiTextfieldLabelOutside]=\"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 tuiTextfieldSize=\"m\"\n [attr.id]=\"propertyConnector.attrName\"\n [tuiInputOpacity]=\"propertyConnector.documentationPropertyValue | tuiGetOpacity\"\n [tuiTextfieldLabelOutside]=\"true\"\n [value]=\"propertyConnector.documentationPropertyValue | tuiGetColorPipe\"\n (valueChange)=\"onColorChange(propertyConnector, $event)\"\n >\n <input\n tuiTextfield\n type=\"text\"\n />\n </tui-primitive-textfield>\n <tui-input-number\n tuiTextfieldSize=\"m\"\n [max]=\"100\"\n [min]=\"0\"\n [ngModel]=\"propertyConnector.documentationPropertyValue | tuiGetOpacity\"\n [step]=\"1\"\n (ngModelChange)=\"onOpacityChange(propertyConnector, $event)\"\n >\n Opacity\n </tui-input-number>\n </div>\n\n <tui-input-number\n *ngSwitchCase=\"'number'\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n [step]=\"1\"\n [tuiTextfieldLabelOutside]=\"true\"\n (ngModelChange)=\"propertyConnector.onValueChange($event || 0)\"\n ></tui-input-number>\n\n <ng-container *ngSwitchCase=\"'PolymorpheusContent'\">\n <tui-primitive-textfield\n *ngIf=\"\n propertyConnector.documentationPropertyValue\n | tuiIsPrimitivePolymorpheusContentPipe\n \"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldCleaner]=\"true\"\n [tuiTextfieldLabelOutside]=\"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</ng-container>\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}.t-cell_prop{width:40%}.t-cell_value{text-align:right}: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-th_value{max-width:20rem;text-align:right}:host-context(tui-root._mobile) .t-th_value{width:9.375rem}.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 .t-property-code{text-decoration:line-through}.t-deprecated-label{margin-right:.125rem;color:var(--tui-error-fill);font-size:.75rem}.t-additional-info{display:flex;gap:.3125rem;align-items:center}.t-exception{display:block;width:-webkit-max-content;width:max-content}.t-output{text-align:left;opacity:0}.t-heading{font:var(--tui-font-heading-4)}.t-code-type{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start}.t-code-reference{display:inline-flex;color:var(--tui-link);text-decoration:none;align-items:center;justify-content:center;gap:3px}.t-code-reference:after{content:\"\";font-size:1rem;width:1rem;height:1rem;background:currentColor;-webkit-mask:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1rem\" height=\"1rem\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\"></path><polyline points=\"15 3 21 3 21 9\"></polyline><line x1=\"10\" y1=\"14\" x2=\"21\" y2=\"3\"></line></svg>') center / 100%;mask:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1rem\" height=\"1rem\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\"></path><polyline points=\"15 3 21 3 21 9\"></polyline><line x1=\"10\" y1=\"14\" x2=\"21\" y2=\"3\"></line></svg>') center / 100%}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3$1.TuiBadgeComponent, selector: "tui-badge", inputs: ["value", "size", "status", "hoverable"] }, { kind: "component", type: i3$1.TuiSelectComponent, selector: "tui-select", inputs: ["stringify", "identityMatcher", "valueContent"] }, { kind: "directive", type: i3$1.TuiSelectDirective, selector: "tui-select" }, { kind: "component", type: i4.TuiTextfieldComponent, selector: "input[tuiTextfield], textarea[tuiTextfield]" }, { kind: "component", type: i3$1.TuiToggleComponent, selector: "tui-toggle", inputs: ["singleColor", "showIcons", "showLoader", "size"] }, { kind: "component", type: i3$1.TuiInputNumberComponent, selector: "tui-input-number", inputs: ["min", "max", "decimal", "precision", "step", "prefix", "postfix"] }, { kind: "directive", type: i3$1.TuiInputNumberDirective, selector: "tui-input-number" }, { kind: "directive", type: i4.TuiGroupDirective, selector: "[tuiGroup]:not(ng-container)", inputs: ["orientation", "adaptive", "collapsed", "rounded", "size"] }, { kind: "directive", type: TuiInputOpacityDirective, selector: "[tuiInputOpacity]", inputs: ["tuiInputOpacity"] }, { kind: "component", type: i4.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i4.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "directive", type: i4.TuiTextfieldCleanerDirective, selector: "[tuiTextfieldCleaner]", inputs: ["tuiTextfieldCleaner"] }, { kind: "directive", type: i4.TuiTextfieldLabelOutsideDirective, selector: "[tuiTextfieldLabelOutside]", inputs: ["tuiTextfieldLabelOutside"] }, { kind: "directive", type: i4.TuiTextfieldSizeDirective, selector: "[tuiTextfieldSize]", inputs: ["tuiTextfieldSize"] }, { kind: "directive", type: i4.TuiDropdownOptionsDirective, selector: "[tuiDropdownAlign], [tuiDropdownAppearance], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownOffset]", inputs: ["tuiDropdownAlign", "tuiDropdownAppearance", "tuiDropdownDirection", "tuiDropdownLimitWidth", "tuiDropdownMinHeight", "tuiDropdownMaxHeight", "tuiDropdownOffset"] }, { kind: "directive", type: i4.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { kind: "component", type: i3$1.TuiDataListWrapperComponent, selector: "tui-data-list-wrapper:not([labels])", inputs: ["items"] }, { kind: "component", type: i4.TuiNotificationComponent, selector: "tui-notification", inputs: ["hasIcon", "icon", "status", "size", "hideClose"], outputs: ["close"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.TuiFilterPipe, name: "tuiFilter" }, { kind: "pipe", type: TuiInspectPipe, name: "tuiInspectAny" }, { kind: "pipe", type: TuiGetColorPipe, name: "tuiGetColorPipe" }, { kind: "pipe", type: TuiGetOpacityPipe, name: "tuiGetOpacity" }, { kind: "pipe", type: TuiIsOptionalPipe, name: "tuiIsOptionalPipe" }, { kind: "pipe", type: TuiShowCleanerPipe, name: "tuiShowCleanerPipe" }, { kind: "pipe", type: TuiStripOptionalPipe, name: "tuiStripOptionalPipe" }, { kind: "pipe", type: TuiDocTypeReferencePipe, name: "tuiDocTypeReference" }, { kind: "pipe", type: TuiIsPrimitivePolymorpheusContentPipe, name: "tuiIsPrimitivePolymorpheusContentPipe" }], animations: [
762
+ trigger('emitEvent', [
763
+ transition(':increment', [style({ opacity: 1 }), animate('500ms ease-in')]),
764
+ ]),
765
+ ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
766
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocDocumentationComponent, decorators: [{
767
+ type: Component,
768
+ args: [{ selector: 'tui-doc-documentation', changeDetection: ChangeDetectionStrategy.OnPush, providers: [TuiGetColorPipe, TuiGetOpacityPipe, TuiDestroyService], animations: [
769
+ trigger('emitEvent', [
770
+ transition(':increment', [style({ opacity: 1 }), animate('500ms ease-in')]),
771
+ ]),
772
+ ], template: "<h1\n *ngIf=\"heading\"\n class=\"t-heading\"\n>\n {{ heading }}\n</h1>\n<ng-content></ng-content>\n<ng-container *ngIf=\"$any(propertiesConnectors) | tuiFilter: matcher : excludedProperties as properties\">\n <table\n *ngIf=\"properties.length\"\n class=\"t-table\"\n >\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-th_value\"\n >\n {{ texts[3] }}\n </th>\n </tr>\n <tr\n *ngFor=\"let propertyConnector of properties\"\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 t-additional-info\"\n >\n <code\n class=\"t-property-code\"\n [style.color]=\"'var(--tui-accent-active)'\"\n >\n {{ propertyConnector.attrName | tuiStripOptionalPipe }}\n </code>\n <tui-badge\n *ngIf=\"propertyConnector.attrName | tuiIsOptionalPipe\"\n size=\"s\"\n status=\"neutral\"\n value=\"Optional\"\n ></tui-badge>\n <tui-badge\n *ngIf=\"propertyConnector.documentationPropertyDeprecated\"\n size=\"s\"\n status=\"error\"\n value=\"Deprecated\"\n ></tui-badge>\n </div>\n <ng-container [ngTemplateOutlet]=\"propertyConnector.template\"></ng-container>\n </td>\n <td class=\"t-cell\">\n <span class=\"type\">\n <code class=\"t-code-type\">\n <ng-container\n *ngFor=\"\n let item of propertyConnector.documentationPropertyType | tuiDocTypeReference;\n let last = last\n \"\n >\n <a\n *ngIf=\"item.reference; else default\"\n target=\"_blank\"\n class=\"t-code-reference\"\n [attr.href]=\"item.reference\"\n >\n {{ item.type }}\n </a>\n <ng-template #default>\n {{ item.type }}\n </ng-template>\n <span *ngIf=\"!last\">&nbsp;|&nbsp;</span>\n </ng-container>\n </code>\n </span>\n </td>\n <td\n *ngIf=\"showValues\"\n class=\"t-cell t-cell_value\"\n >\n <ng-container *ngIf=\"propertyConnector.shouldShowValues; else elseEmitter\">\n <tui-select\n *ngIf=\"propertyConnector.hasItems; else noItems\"\n tuiDropdownLimitWidth=\"min\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n [tuiTextfieldCleaner]=\"propertyConnector.documentationPropertyType | tuiShowCleanerPipe\"\n [tuiTextfieldLabelOutside]=\"true\"\n [valueContent]=\"selectContent\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n >\n <code class=\"t-exception\">null</code>\n <tui-data-list-wrapper\n *tuiDataList\n [itemContent]=\"selectContent\"\n [items]=\"propertyConnector.documentationPropertyValues\"\n ></tui-data-list-wrapper>\n </tui-select>\n <ng-template\n #selectContent\n let-data\n >\n <code>{{ data | tuiInspectAny }}</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 [ngModel]=\"propertyConnector.documentationPropertyValue\"\n [showIcons]=\"true\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-toggle>\n\n <tui-primitive-textfield\n *ngSwitchCase=\"'string'\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldCleaner]=\"true\"\n [tuiTextfieldLabelOutside]=\"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 tuiTextfieldSize=\"m\"\n [attr.id]=\"propertyConnector.attrName\"\n [tuiInputOpacity]=\"propertyConnector.documentationPropertyValue | tuiGetOpacity\"\n [tuiTextfieldLabelOutside]=\"true\"\n [value]=\"propertyConnector.documentationPropertyValue | tuiGetColorPipe\"\n (valueChange)=\"onColorChange(propertyConnector, $event)\"\n >\n <input\n tuiTextfield\n type=\"text\"\n />\n </tui-primitive-textfield>\n <tui-input-number\n tuiTextfieldSize=\"m\"\n [max]=\"100\"\n [min]=\"0\"\n [ngModel]=\"propertyConnector.documentationPropertyValue | tuiGetOpacity\"\n [step]=\"1\"\n (ngModelChange)=\"onOpacityChange(propertyConnector, $event)\"\n >\n Opacity\n </tui-input-number>\n </div>\n\n <tui-input-number\n *ngSwitchCase=\"'number'\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n [step]=\"1\"\n [tuiTextfieldLabelOutside]=\"true\"\n (ngModelChange)=\"propertyConnector.onValueChange($event || 0)\"\n ></tui-input-number>\n\n <ng-container *ngSwitchCase=\"'PolymorpheusContent'\">\n <tui-primitive-textfield\n *ngIf=\"\n propertyConnector.documentationPropertyValue\n | tuiIsPrimitivePolymorpheusContentPipe\n \"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldCleaner]=\"true\"\n [tuiTextfieldLabelOutside]=\"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</ng-container>\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}.t-cell_prop{width:40%}.t-cell_value{text-align:right}: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-th_value{max-width:20rem;text-align:right}:host-context(tui-root._mobile) .t-th_value{width:9.375rem}.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 .t-property-code{text-decoration:line-through}.t-deprecated-label{margin-right:.125rem;color:var(--tui-error-fill);font-size:.75rem}.t-additional-info{display:flex;gap:.3125rem;align-items:center}.t-exception{display:block;width:-webkit-max-content;width:max-content}.t-output{text-align:left;opacity:0}.t-heading{font:var(--tui-font-heading-4)}.t-code-type{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start}.t-code-reference{display:inline-flex;color:var(--tui-link);text-decoration:none;align-items:center;justify-content:center;gap:3px}.t-code-reference:after{content:\"\";font-size:1rem;width:1rem;height:1rem;background:currentColor;-webkit-mask:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1rem\" height=\"1rem\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\"></path><polyline points=\"15 3 21 3 21 9\"></polyline><line x1=\"10\" y1=\"14\" x2=\"21\" y2=\"3\"></line></svg>') center / 100%;mask:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1rem\" height=\"1rem\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\"></path><polyline points=\"15 3 21 3 21 9\"></polyline><line x1=\"10\" y1=\"14\" x2=\"21\" y2=\"3\"></line></svg>') center / 100%}\n"] }]
773
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef, decorators: [{
774
+ type: Inject,
775
+ args: [ChangeDetectorRef]
776
+ }] }, { type: undefined, decorators: [{
777
+ type: Inject,
778
+ args: [TUI_DOC_DOCUMENTATION_TEXTS]
779
+ }] }, { type: Set, decorators: [{
780
+ type: Inject,
781
+ args: [TUI_DOC_EXCLUDED_PROPERTIES]
782
+ }] }, { type: i6.TuiDestroyService, decorators: [{
783
+ type: Self
784
+ }, {
785
+ type: Inject,
786
+ args: [TuiDestroyService]
787
+ }] }, { type: TuiGetColorPipe, decorators: [{
788
+ type: Inject,
789
+ args: [TuiGetColorPipe]
790
+ }] }, { type: TuiGetOpacityPipe, decorators: [{
791
+ type: Inject,
792
+ args: [TuiGetOpacityPipe]
793
+ }] }]; }, propDecorators: { heading: [{
794
+ type: Input
795
+ }], showValues: [{
796
+ type: Input
797
+ }], isAPI: [{
798
+ type: Input
799
+ }], propertiesConnectors: [{
800
+ type: ContentChildren,
801
+ args: [TuiDocDocumentationPropertyConnectorDirective]
802
+ }] } });
803
+
804
+ class TuiInputOpacityModule {
805
+ }
806
+ TuiInputOpacityModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputOpacityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
807
+ TuiInputOpacityModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiInputOpacityModule, declarations: [TuiInputOpacityDirective], exports: [TuiInputOpacityDirective] });
808
+ TuiInputOpacityModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputOpacityModule });
809
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputOpacityModule, decorators: [{
810
+ type: NgModule,
811
+ args: [{
812
+ declarations: [TuiInputOpacityDirective],
813
+ exports: [TuiInputOpacityDirective],
814
+ }]
815
+ }] });
816
+
817
+ class TuiDocDocumentationModule {
818
+ }
819
+ TuiDocDocumentationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocDocumentationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
820
+ TuiDocDocumentationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiDocDocumentationModule, declarations: [TuiInspectPipe,
821
+ TuiGetColorPipe,
822
+ TuiGetOpacityPipe,
823
+ TuiIsOptionalPipe,
824
+ TuiShowCleanerPipe,
825
+ TuiStripOptionalPipe,
826
+ TuiDocTypeReferencePipe,
827
+ TuiDocDocumentationComponent,
828
+ TuiIsPrimitivePolymorpheusContentPipe,
829
+ TuiDocDocumentationPropertyConnectorDirective], imports: [CommonModule,
830
+ FormsModule,
831
+ RouterModule,
832
+ TuiBadgeModule,
833
+ TuiSelectModule,
834
+ TuiToggleModule,
835
+ TuiLinkModule,
836
+ TuiInputNumberModule,
837
+ TuiModeModule,
838
+ TuiGroupModule,
839
+ TuiInputOpacityModule,
840
+ TuiPrimitiveTextfieldModule,
841
+ TuiTextfieldControllerModule,
842
+ TuiDropdownModule,
843
+ TuiDataListModule,
844
+ TuiDataListWrapperModule,
845
+ TuiNotificationModule,
846
+ TuiFilterPipeModule], exports: [TuiDocTypeReferencePipe,
847
+ TuiDocDocumentationComponent,
848
+ TuiDocDocumentationPropertyConnectorDirective] });
849
+ TuiDocDocumentationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocDocumentationModule, imports: [CommonModule,
850
+ FormsModule,
851
+ RouterModule,
852
+ TuiBadgeModule,
853
+ TuiSelectModule,
854
+ TuiToggleModule,
855
+ TuiLinkModule,
856
+ TuiInputNumberModule,
857
+ TuiModeModule,
858
+ TuiGroupModule,
859
+ TuiInputOpacityModule,
860
+ TuiPrimitiveTextfieldModule,
861
+ TuiTextfieldControllerModule,
862
+ TuiDropdownModule,
863
+ TuiDataListModule,
864
+ TuiDataListWrapperModule,
865
+ TuiNotificationModule,
866
+ TuiFilterPipeModule] });
867
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocDocumentationModule, decorators: [{
868
+ type: NgModule,
869
+ args: [{
870
+ imports: [
871
+ CommonModule,
872
+ FormsModule,
873
+ RouterModule,
874
+ TuiBadgeModule,
875
+ TuiSelectModule,
876
+ TuiToggleModule,
877
+ TuiLinkModule,
878
+ TuiInputNumberModule,
879
+ TuiModeModule,
880
+ TuiGroupModule,
881
+ TuiInputOpacityModule,
882
+ TuiPrimitiveTextfieldModule,
883
+ TuiTextfieldControllerModule,
884
+ TuiDropdownModule,
885
+ TuiDataListModule,
886
+ TuiDataListWrapperModule,
887
+ TuiNotificationModule,
888
+ TuiFilterPipeModule,
889
+ ],
890
+ declarations: [
891
+ TuiInspectPipe,
892
+ TuiGetColorPipe,
893
+ TuiGetOpacityPipe,
894
+ TuiIsOptionalPipe,
895
+ TuiShowCleanerPipe,
896
+ TuiStripOptionalPipe,
897
+ TuiDocTypeReferencePipe,
898
+ TuiDocDocumentationComponent,
899
+ TuiIsPrimitivePolymorpheusContentPipe,
900
+ TuiDocDocumentationPropertyConnectorDirective,
901
+ ],
902
+ exports: [
903
+ TuiDocTypeReferencePipe,
904
+ TuiDocDocumentationComponent,
905
+ TuiDocDocumentationPropertyConnectorDirective,
906
+ ],
907
+ }]
908
+ }] });
909
+
910
+ const TUI_DOC_EXAMPLE_DEFAULT_OPTIONS = {
911
+ codeEditorVisibilityHandler: files => Boolean(files[TUI_EXAMPLE_PRIMARY_FILE_NAME.TS] &&
912
+ files[TUI_EXAMPLE_PRIMARY_FILE_NAME.HTML]),
913
+ tabTitles: new Map(),
914
+ fullsize: true,
915
+ linkIcon: `tuiIconLink`,
916
+ };
917
+ /**
918
+ * Default parameters for DocExample component
919
+ */
920
+ const TUI_DOC_EXAMPLE_OPTIONS = tuiCreateToken(TUI_DOC_EXAMPLE_DEFAULT_OPTIONS);
921
+ function tuiDocExampleOptionsProvider(options) {
922
+ return tuiProvideOptions(TUI_DOC_EXAMPLE_OPTIONS, options, TUI_DOC_EXAMPLE_DEFAULT_OPTIONS);
923
+ }
924
+
925
+ class TuiDocExampleGetTabsPipe {
926
+ transform(content, defaultTab) {
927
+ return [defaultTab, ...Object.keys(content)];
928
+ }
929
+ }
930
+ TuiDocExampleGetTabsPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocExampleGetTabsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
931
+ TuiDocExampleGetTabsPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiDocExampleGetTabsPipe, name: "tuiDocExampleGetTabs" });
932
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocExampleGetTabsPipe, decorators: [{
933
+ type: Pipe,
934
+ args: [{ name: `tuiDocExampleGetTabs` }]
935
+ }] });
936
+
937
+ class TuiDocExampleComponent {
938
+ set content(content) {
939
+ this.rawLoader$$.next(content);
940
+ }
941
+ constructor(clipboard, alerts, location, copyTexts$, texts, codeEditor, processContent, isE2E, codeActions, router, route, ngLocation, options) {
942
+ this.clipboard = clipboard;
943
+ this.alerts = alerts;
944
+ this.location = location;
945
+ this.copyTexts$ = copyTexts$;
946
+ this.texts = texts;
947
+ this.codeEditor = codeEditor;
948
+ this.processContent = processContent;
949
+ this.isE2E = isE2E;
950
+ this.codeActions = codeActions;
951
+ this.router = router;
952
+ this.route = route;
953
+ this.ngLocation = ngLocation;
954
+ this.options = options;
955
+ this.rawLoader$$ = new BehaviorSubject({});
956
+ this.id = null;
957
+ this.fullsize = this.options.fullsize;
958
+ this.componentName = this.location.pathname.slice(1);
959
+ this.defaultTabIndex = 0;
960
+ this.defaultTab = this.texts[this.defaultTabIndex];
961
+ this.activeItemIndex = this.defaultTabIndex;
962
+ this.copy$ = this.copyTexts$.pipe(map(([copy]) => copy));
963
+ this.processor$ = this.rawLoader$$.pipe(switchMap(tuiRawLoadRecord), map(value => this.processContent(value)));
964
+ this.loading$ = new Subject();
965
+ this.visible = (files) => Boolean(this.codeEditor && this.options.codeEditorVisibilityHandler(files));
966
+ }
967
+ getTabTitle(fileName) {
968
+ return this.options.tabTitles.get(fileName) || fileName;
969
+ }
970
+ copyExampleLink() {
971
+ const hashPosition = this.location.href.indexOf('#');
972
+ const currentUrl = hashPosition > -1
973
+ ? this.location.href.slice(0, Math.max(0, hashPosition))
974
+ : this.location.href;
975
+ const url = `${currentUrl}#${this.id}`;
976
+ this.setFragmentWithoutRedirect(this.id);
977
+ this.clipboard.copy(url);
978
+ this.alerts
979
+ .open(this.texts[1], {
980
+ label: this.texts[2],
981
+ status: 'success',
982
+ })
983
+ .subscribe();
984
+ }
985
+ edit(files) {
986
+ this.loading$.next(true);
987
+ this.codeEditor
988
+ ?.edit(this.componentName, this.id || '', files)
989
+ // TODO: replace lines below with `finally` when we bump Firefox to 58+
990
+ // TODO: Add `es2018.promise` to `tsconfig.json` => `compilerOptions.lib`.
991
+ .then(() => this.loading$.next(false))
992
+ .catch(() => this.loading$.next(false));
993
+ }
994
+ setFragmentWithoutRedirect(id) {
995
+ const url = this.router
996
+ .createUrlTree([], { relativeTo: this.route, fragment: id || '' })
997
+ .toString();
998
+ this.ngLocation.go(url);
999
+ }
1000
+ }
1001
+ TuiDocExampleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocExampleComponent, deps: [{ token: Clipboard }, { token: TuiAlertService }, { token: LOCATION }, { token: TUI_COPY_TEXTS }, { token: TUI_DOC_EXAMPLE_TEXTS }, { token: TUI_DOC_CODE_EDITOR, optional: true }, { token: TUI_DOC_EXAMPLE_CONTENT_PROCESSOR }, { token: TUI_IS_E2E }, { token: TUI_DOC_CODE_ACTIONS }, { token: Router }, { token: ActivatedRoute }, { token: Location$1 }, { token: TUI_DOC_EXAMPLE_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });
1002
+ TuiDocExampleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiDocExampleComponent, selector: "tui-doc-example", inputs: { id: "id", heading: "heading", description: "description", content: "content", fullsize: "fullsize", componentName: "componentName" }, host: { properties: { "class._fullsize": "this.fullsize" } }, ngImport: i0, template: "<h3\n *ngIf=\"heading\"\n class=\"t-title\"\n>\n <span\n *polymorpheusOutlet=\"heading as text\"\n [textContent]=\"text\"\n ></span>\n <button\n *ngIf=\"id\"\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-link-icon\"\n [icon]=\"options.linkIcon\"\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 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\n *ngIf=\"tabs.length > 1\"\n class=\"t-tabs-wrapper\"\n >\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 <ng-container *polymorpheusOutlet=\"getTabTitle(tab) as text\">\n {{ text }}\n </ng-container>\n </button>\n </ng-container>\n </tui-tabs-with-more>\n\n <tui-loader\n *ngIf=\"files | tuiMapper: visible\"\n size=\"xs\"\n [overlay]=\"true\"\n [showLoader]=\"!!(loading$ | async)\"\n (click)=\"edit(files)\"\n >\n <ng-container *ngIf=\"codeEditor?.content as content; else defaultEditContent\">\n <ng-container *polymorpheusOutlet=\"content as editContent\">\n {{ editContent }}\n </ng-container>\n </ng-container>\n\n <ng-template #defaultEditContent>\n <button\n appearance=\"flat\"\n size=\"s\"\n tuiButton\n type=\"button\"\n >\n Edit on {{ codeEditor!.name }}\n </button>\n </ng-template>\n </tui-loader>\n </div>\n\n <div\n *ngFor=\"let tab of tabs; let index = index\"\n class=\"t-content\"\n [class.t-content_animated]=\"!isE2E\"\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 <tui-doc-code [code]=\"code\">\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-code>\n</ng-template>\n", styles: [":host{position:relative;display:block;padding-top:3.5rem;clear:right}:host:target{animation:1s .3s tuiShaking}: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-title:first-letter,.t-description:first-letter{text-transform:capitalize}.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 #0000001a;overflow:hidden}:host-context(tui-root._mobile) .t-example{margin-top:.75rem}.t-tabs-wrapper{display:flex;padding:0 .875rem 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 .875rem 0 1rem}.t-tabs{flex-grow:1}.t-demo{padding:2rem;max-width:100%;box-sizing:border-box;overflow-x:auto}@media all and (-webkit-min-device-pixel-ratio: 0) and (-webkit-min-device-pixel-ratio: 0),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:.375rem 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}:host:not(._fullsize) .t-demo{width:-webkit-min-content;width:min-content;min-width:20rem}.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"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3$1.TuiTabsWithMoreComponent, selector: "tui-tabs-with-more, nav[tuiTabsWithMore]", inputs: ["moreContent", "dropdownContent", "underline", "activeItemIndex", "itemsLimit"], outputs: ["activeItemIndexChange"] }, { kind: "component", type: i3$1.TuiTabComponent, selector: "a[tuiTab]:not([routerLink]), a[tuiTab][routerLink][routerLinkActive], button[tuiTab]" }, { kind: "directive", type: i6.TuiItemDirective, selector: "[tuiItem]" }, { kind: "component", type: i4.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }, { kind: "component", type: TuiDocCodeComponent, selector: "tui-doc-code", inputs: ["filename", "code"] }, { kind: "directive", type: i1$1.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: i4.TuiLoaderComponent, selector: "tui-loader", inputs: ["size", "inheritColor", "overlay", "textContent", "showLoader"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.TuiMapperPipe, name: "tuiMapper" }, { kind: "pipe", type: TuiDocExampleGetTabsPipe, name: "tuiDocExampleGetTabs" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1003
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocExampleComponent, decorators: [{
1004
+ type: Component,
1005
+ args: [{ selector: 'tui-doc-example', changeDetection: ChangeDetectionStrategy.OnPush, template: "<h3\n *ngIf=\"heading\"\n class=\"t-title\"\n>\n <span\n *polymorpheusOutlet=\"heading as text\"\n [textContent]=\"text\"\n ></span>\n <button\n *ngIf=\"id\"\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-link-icon\"\n [icon]=\"options.linkIcon\"\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 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\n *ngIf=\"tabs.length > 1\"\n class=\"t-tabs-wrapper\"\n >\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 <ng-container *polymorpheusOutlet=\"getTabTitle(tab) as text\">\n {{ text }}\n </ng-container>\n </button>\n </ng-container>\n </tui-tabs-with-more>\n\n <tui-loader\n *ngIf=\"files | tuiMapper: visible\"\n size=\"xs\"\n [overlay]=\"true\"\n [showLoader]=\"!!(loading$ | async)\"\n (click)=\"edit(files)\"\n >\n <ng-container *ngIf=\"codeEditor?.content as content; else defaultEditContent\">\n <ng-container *polymorpheusOutlet=\"content as editContent\">\n {{ editContent }}\n </ng-container>\n </ng-container>\n\n <ng-template #defaultEditContent>\n <button\n appearance=\"flat\"\n size=\"s\"\n tuiButton\n type=\"button\"\n >\n Edit on {{ codeEditor!.name }}\n </button>\n </ng-template>\n </tui-loader>\n </div>\n\n <div\n *ngFor=\"let tab of tabs; let index = index\"\n class=\"t-content\"\n [class.t-content_animated]=\"!isE2E\"\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 <tui-doc-code [code]=\"code\">\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-code>\n</ng-template>\n", styles: [":host{position:relative;display:block;padding-top:3.5rem;clear:right}:host:target{animation:1s .3s tuiShaking}: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-title:first-letter,.t-description:first-letter{text-transform:capitalize}.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 #0000001a;overflow:hidden}:host-context(tui-root._mobile) .t-example{margin-top:.75rem}.t-tabs-wrapper{display:flex;padding:0 .875rem 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 .875rem 0 1rem}.t-tabs{flex-grow:1}.t-demo{padding:2rem;max-width:100%;box-sizing:border-box;overflow-x:auto}@media all and (-webkit-min-device-pixel-ratio: 0) and (-webkit-min-device-pixel-ratio: 0),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:.375rem 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}:host:not(._fullsize) .t-demo{width:-webkit-min-content;width:min-content;min-width:20rem}.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"] }]
1006
+ }], ctorParameters: function () { return [{ type: i4$1.Clipboard, decorators: [{
1007
+ type: Inject,
1008
+ args: [Clipboard]
1009
+ }] }, { type: i4.TuiAlertService, decorators: [{
1010
+ type: Inject,
1011
+ args: [TuiAlertService]
1012
+ }] }, { type: Location, decorators: [{
1013
+ type: Inject,
1014
+ args: [LOCATION]
1015
+ }] }, { type: i10.Observable, decorators: [{
1016
+ type: Inject,
1017
+ args: [TUI_COPY_TEXTS]
1018
+ }] }, { type: undefined, decorators: [{
1019
+ type: Inject,
1020
+ args: [TUI_DOC_EXAMPLE_TEXTS]
1021
+ }] }, { type: undefined, decorators: [{
1022
+ type: Optional
1023
+ }, {
1024
+ type: Inject,
1025
+ args: [TUI_DOC_CODE_EDITOR]
1026
+ }] }, { type: undefined, decorators: [{
1027
+ type: Inject,
1028
+ args: [TUI_DOC_EXAMPLE_CONTENT_PROCESSOR]
1029
+ }] }, { type: undefined, decorators: [{
1030
+ type: Inject,
1031
+ args: [TUI_IS_E2E]
1032
+ }] }, { type: Array, decorators: [{
1033
+ type: Inject,
1034
+ args: [TUI_DOC_CODE_ACTIONS]
1035
+ }] }, { type: i3.Router, decorators: [{
1036
+ type: Inject,
1037
+ args: [Router]
1038
+ }] }, { type: i3.ActivatedRoute, decorators: [{
1039
+ type: Inject,
1040
+ args: [ActivatedRoute]
1041
+ }] }, { type: i1.Location, decorators: [{
1042
+ type: Inject,
1043
+ args: [Location$1]
1044
+ }] }, { type: undefined, decorators: [{
1045
+ type: Inject,
1046
+ args: [TUI_DOC_EXAMPLE_OPTIONS]
1047
+ }] }]; }, propDecorators: { id: [{
1048
+ type: Input
1049
+ }], heading: [{
1050
+ type: Input
1051
+ }], description: [{
1052
+ type: Input
1053
+ }], content: [{
1054
+ type: Input
1055
+ }], fullsize: [{
1056
+ type: Input
1057
+ }, {
1058
+ type: HostBinding,
1059
+ args: ['class._fullsize']
1060
+ }], componentName: [{
1061
+ type: Input
1062
+ }] } });
1063
+
1064
+ class TuiDocExampleModule {
1065
+ }
1066
+ TuiDocExampleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocExampleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1067
+ TuiDocExampleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiDocExampleModule, declarations: [TuiDocExampleComponent, TuiDocExampleGetTabsPipe], imports: [CommonModule,
1068
+ ClipboardModule,
1069
+ TuiTabsModule,
1070
+ TuiButtonModule,
1071
+ TuiDocCopyModule,
1072
+ TuiDocCodeModule,
1073
+ PolymorpheusModule,
1074
+ TuiMapperPipeModule,
1075
+ TuiLoaderModule], exports: [TuiDocExampleComponent, TuiDocExampleGetTabsPipe] });
1076
+ TuiDocExampleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocExampleModule, imports: [CommonModule,
1077
+ ClipboardModule,
1078
+ TuiTabsModule,
1079
+ TuiButtonModule,
1080
+ TuiDocCopyModule,
1081
+ TuiDocCodeModule,
1082
+ PolymorpheusModule,
1083
+ TuiMapperPipeModule,
1084
+ TuiLoaderModule] });
1085
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocExampleModule, decorators: [{
1086
+ type: NgModule,
1087
+ args: [{
1088
+ imports: [
1089
+ CommonModule,
1090
+ ClipboardModule,
1091
+ TuiTabsModule,
1092
+ TuiButtonModule,
1093
+ TuiDocCopyModule,
1094
+ TuiDocCodeModule,
1095
+ PolymorpheusModule,
1096
+ TuiMapperPipeModule,
1097
+ TuiLoaderModule,
1098
+ ],
1099
+ declarations: [TuiDocExampleComponent, TuiDocExampleGetTabsPipe],
1100
+ exports: [TuiDocExampleComponent, TuiDocExampleGetTabsPipe],
1101
+ }]
1102
+ }] });
1103
+
1104
+ function labelsProviderFactory(pages) {
1105
+ return pages
1106
+ .map(({ section }) => section)
1107
+ .filter(tuiIsPresent)
1108
+ .filter((item, index, array) => array.indexOf(item) === index);
1109
+ }
1110
+ /**
1111
+ * Page title
1112
+ */
1113
+ const NAVIGATION_TITLE = new InjectionToken(`[NAVIGATION_TITLE]`);
1114
+ /**
1115
+ * Navigation sections labels for search
1116
+ */
1117
+ const NAVIGATION_LABELS = new InjectionToken(`[NAVIGATION_LABELS]`);
1118
+ /**
1119
+ * Navigation pages
1120
+ */
1121
+ const NAVIGATION_ITEMS = new InjectionToken(`[NAVIGATION_ITEMS]`);
1122
+ const NAVIGATION_PROVIDERS = [
1123
+ TuiDestroyService,
1124
+ {
1125
+ provide: NAVIGATION_TITLE,
1126
+ deps: [Router, ActivatedRoute, TUI_DOC_TITLE, TuiDestroyService],
1127
+ useFactory: (router, activatedRoute, titlePrefix, destroy$) => router.events.pipe(filter(event => event instanceof NavigationEnd), map(() => activatedRoute.firstChild), filter(tuiIsPresent), mergeMap(({ data }) => data), map(({ title }) => `${titlePrefix}${title}`), takeUntil(destroy$)),
1128
+ },
1129
+ {
1130
+ provide: NAVIGATION_LABELS,
1131
+ deps: [TUI_DOC_PAGES],
1132
+ useFactory: labelsProviderFactory,
1133
+ },
1134
+ {
1135
+ provide: NAVIGATION_ITEMS,
1136
+ deps: [TUI_DOC_PAGES],
1137
+ useFactory: (pages) => {
1138
+ const labels = labelsProviderFactory(pages);
1139
+ return [
1140
+ ...labels.map(label => pages.filter(({ section }) => section === label)),
1141
+ pages.filter(page => !page.section),
1142
+ ];
1143
+ },
1144
+ },
1145
+ ];
1146
+
1147
+ class TuiDocNavigationComponent {
1148
+ constructor(cdr, titleService, title$, mode, sidebar, labels, items, searchText, router, activatedRoute, destroy$, readyToScroll$, docIcons, icons, doc) {
1149
+ this.title$ = title$;
1150
+ this.mode = mode;
1151
+ this.sidebar = sidebar;
1152
+ this.labels = labels;
1153
+ this.items = items;
1154
+ this.searchText = searchText;
1155
+ this.router = router;
1156
+ this.activatedRoute = activatedRoute;
1157
+ this.destroy$ = destroy$;
1158
+ this.readyToScroll$ = readyToScroll$;
1159
+ this.docIcons = docIcons;
1160
+ this.icons = icons;
1161
+ this.doc = doc;
1162
+ this.menuOpen = false;
1163
+ this.openPagesArr = [];
1164
+ this.openPagesGroupsArr = [];
1165
+ this.active = '';
1166
+ this.search = new UntypedFormControl('');
1167
+ this.filtered$ = tuiControlValue(this.search).pipe(filter(search => search.trim().length > 2), map(search => this.filterItems(this.flattenSubPages(this.items), search)));
1168
+ this.mode$ = this.mode.change$.pipe(startWith(null), map(() => this.mode.mode || 'onLight'));
1169
+ title$.subscribe(title => {
1170
+ cdr.markForCheck();
1171
+ titleService.setTitle(title);
1172
+ this.openActivePageGroup();
1173
+ });
1174
+ combineLatest([
1175
+ this.router.events.pipe(filter((event) => event instanceof Scroll)),
1176
+ this.title$.pipe(switchMap(() => this.readyToScroll$.pipe(filter(Boolean)))),
1177
+ ])
1178
+ .pipe(take(1), map(([event]) => event.anchor || ''), filter(Boolean), takeUntil(this.destroy$))
1179
+ .subscribe(anchor => this.navigateToAnchorLink(anchor));
1180
+ }
1181
+ get canOpen() {
1182
+ return (this.search.value?.length ?? 0) > 2;
1183
+ }
1184
+ get itemsWithoutSections() {
1185
+ return this.items[this.items.length - 1];
1186
+ }
1187
+ $pages(pages) {
1188
+ return pages;
1189
+ }
1190
+ isActive(route) {
1191
+ return route === this.active;
1192
+ }
1193
+ onGroupClick(index) {
1194
+ this.openPagesGroupsArr[index] = !this.openPagesGroupsArr[index];
1195
+ }
1196
+ closeMenu() {
1197
+ this.menuOpen = false;
1198
+ }
1199
+ onClick(input) {
1200
+ input.open = false;
1201
+ this.menuOpen = false;
1202
+ this.search.setValue('');
1203
+ this.openActivePageGroup();
1204
+ }
1205
+ filterItems(items, search) {
1206
+ return items.map(section => tuiUniqBy(section.filter(({ title, keywords = '' }) => {
1207
+ search = search.toLowerCase().trim();
1208
+ keywords = keywords.toLowerCase();
1209
+ title = title.toLowerCase();
1210
+ return (title.includes(search) ||
1211
+ keywords.includes(search) ||
1212
+ title.includes(tuiTransliterateKeyboardLayout(search)) ||
1213
+ keywords.includes(tuiTransliterateKeyboardLayout(search)) ||
1214
+ search.replace(/-/gi, '').includes(title) ||
1215
+ title.includes(search.replace(/\s|tui/g, '')) ||
1216
+ keywords.includes(search.replace(/\s|tui/g, '')) ||
1217
+ search.split(/\s/).find(word => title.includes(word)));
1218
+ }), 'title'));
1219
+ }
1220
+ flattenSubPages(items) {
1221
+ return items.reduce((array, item) => [
1222
+ ...array,
1223
+ item.reduce((pages, page) => 'subPages' in page
1224
+ ? [...pages, ...page.subPages]
1225
+ : [...pages, page], []),
1226
+ ], []);
1227
+ }
1228
+ isActiveRoute(route) {
1229
+ return this.router.isActive(route, {
1230
+ paths: 'subset',
1231
+ queryParams: 'subset',
1232
+ fragment: 'ignored',
1233
+ matrixParams: 'ignored',
1234
+ });
1235
+ }
1236
+ openActivePageGroup() {
1237
+ this.items.forEach((pages, pagesIndex) => {
1238
+ pages.forEach((page, pageIndex) => {
1239
+ if ('route' in page && this.isActiveRoute(page.route)) {
1240
+ this.openPagesArr[pagesIndex] = true;
1241
+ this.active = page.route;
1242
+ }
1243
+ if ('subPages' in page) {
1244
+ page.subPages.forEach(subPage => {
1245
+ if (this.isActiveRoute(subPage.route)) {
1246
+ this.openPagesArr[pagesIndex] = true;
1247
+ this.openPagesGroupsArr[pagesIndex * 100 + pageIndex] = true;
1248
+ this.active = subPage.route;
1249
+ }
1250
+ });
1251
+ }
1252
+ });
1253
+ });
1254
+ }
1255
+ navigateToAnchorLink(fragment) {
1256
+ const nodes = fragment ? this.doc.querySelectorAll(`#${fragment}`) : [];
1257
+ const element = nodes.length && nodes[nodes.length - 1];
1258
+ if (!element) {
1259
+ return;
1260
+ }
1261
+ // emulate :target event
1262
+ const target = this.doc.createElement('a');
1263
+ target.href = `${this.doc.location.pathname}#${fragment}`;
1264
+ target.style.display = 'none';
1265
+ target.style.position = 'absolute';
1266
+ this.doc.body.appendChild(target);
1267
+ target.click();
1268
+ target.remove();
1269
+ }
1270
+ }
1271
+ TuiDocNavigationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocNavigationComponent, deps: [{ token: ChangeDetectorRef }, { token: Title }, { token: NAVIGATION_TITLE }, { token: TuiModeDirective }, { token: TuiSidebarDirective, optional: true }, { token: NAVIGATION_LABELS }, { token: NAVIGATION_ITEMS }, { token: TUI_DOC_SEARCH_TEXT }, { token: Router }, { token: ActivatedRoute }, { token: TuiDestroyService, self: true }, { token: TUI_DOC_PAGE_LOADED }, { token: TUI_DOC_ICONS }, { token: TUI_COMMON_ICONS }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
1272
+ TuiDocNavigationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiDocNavigationComponent, selector: "tui-doc-navigation", host: { properties: { "class._open": "this.menuOpen" } }, providers: NAVIGATION_PROVIDERS, ngImport: i0, template: "<tui-input\n #input\n tuiTextfieldSize=\"m\"\n class=\"t-input\"\n [formControl]=\"search\"\n [tuiAutoFocus]=\"!!sidebar\"\n [tuiTextfieldCleaner]=\"true\"\n [tuiTextfieldIconLeft]=\"docIcons.search\"\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 [fragment]=\"item.fragment\"\n [routerLink]=\"item.route\"\n (click)=\"onClick(input)\"\n >\n {{ item.title }}\n <tui-svg\n *polymorpheusOutlet=\"item.icon as icon\"\n class=\"t-icon\"\n [src]=\"icon\"\n ></tui-svg>\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-index=\"index\"\n let-item=\"item\"\n >\n <a\n *ngIf=\"!item.subPages; else subPagesTemplate\"\n routerLinkActive=\"t-sublink_active\"\n tuiLink\n class=\"t-sublink\"\n [routerLink]=\"item.route\"\n [tuiScrollIntoViewLink]=\"isActive(item.route)\"\n (click)=\"closeMenu()\"\n >\n {{ item.title }}\n <tui-svg\n *polymorpheusOutlet=\"item.icon as icon\"\n class=\"t-icon\"\n [src]=\"icon\"\n ></tui-svg>\n </a>\n\n <ng-template #subPagesTemplate>\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 class=\"t-chevron\"\n [class.t-chevron_active]=\"!!openPagesGroupsArr[index]\"\n [src]=\"icons.more\"\n ></tui-svg>\n {{ item.title }}\n <tui-svg\n *polymorpheusOutlet=\"item.icon as icon\"\n class=\"t-icon\"\n [src]=\"icon\"\n ></tui-svg>\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 $pages(item.subPages)\"\n routerLinkActive=\"t-sublink_active\"\n tuiLink\n class=\"t-sublink t-sublink_small\"\n [fragment]=\"subPage.fragment\"\n [routerLink]=\"subPage.route\"\n [tuiScrollIntoViewLink]=\"isActive(subPage.route)\"\n (click)=\"closeMenu()\"\n >\n {{ subPage.title }}\n <tui-svg\n *polymorpheusOutlet=\"subPage.icon as icon\"\n class=\"t-icon\"\n [src]=\"icon\"\n ></tui-svg>\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{scroll-behavior:smooth;width:100%}:host-context(tui-root._reduced-motion) .t-scrollbar{scroll-behavior:auto}.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:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;font:var(--tui-font-text-m);margin-left:.5rem;padding-top:1rem}.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.t-sublink.t-sublink_active{color:var(--tui-text-01)}.t-icon{margin-left:.5rem}.t-chevron{transition-property:transform;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"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: i1$1.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: i5.TuiScrollIntoViewLinkDirective, selector: "[tuiScrollIntoViewLink]", inputs: ["tuiScrollIntoViewLink"] }, { kind: "component", type: i3$1.TuiInputComponent, selector: "tui-input" }, { kind: "directive", type: i3$1.TuiInputDirective, selector: "tui-input" }, { kind: "directive", type: i4.TuiTextfieldCleanerDirective, selector: "[tuiTextfieldCleaner]", inputs: ["tuiTextfieldCleaner"] }, { kind: "directive", type: i4.TuiTextfieldLabelOutsideDirective, selector: "[tuiTextfieldLabelOutside]", inputs: ["tuiTextfieldLabelOutside"] }, { kind: "directive", type: i4.TuiTextfieldSizeDirective, selector: "[tuiTextfieldSize]", inputs: ["tuiTextfieldSize"] }, { kind: "directive", type: i4.TuiTextfieldIconLeftDirective, selector: "[tuiTextfieldIconLeft]", inputs: ["tuiTextfieldIconLeft"] }, { kind: "directive", type: i4.TuiModeDirective, selector: "[tuiMode]", inputs: ["tuiMode"] }, { kind: "component", type: i4.TuiLinkComponent, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo", "icon", "iconAlign", "iconRotated", "mode"], exportAs: ["tuiLink"] }, { kind: "component", type: i4.TuiExpandComponent, selector: "tui-expand", inputs: ["async", "expanded"] }, { kind: "component", type: i3$1.TuiAccordionComponent, selector: "tui-accordion", inputs: ["closeOthers", "rounded"] }, { kind: "component", type: i3$1.TuiAccordionItemComponent, selector: "tui-accordion-item", inputs: ["noPadding", "showArrow", "borders", "size", "disabled", "disableHover", "open", "async"], outputs: ["openChange"] }, { kind: "directive", type: i3$1.TuiAccordionItemContentDirective, selector: "ng-template[tuiAccordionItemContent]" }, { kind: "component", type: i4.TuiScrollbarComponent, selector: "tui-scrollbar", inputs: ["hidden"] }, { kind: "component", type: i4.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { kind: "component", type: i4.TuiDataListComponent, selector: "tui-data-list", inputs: ["role", "emptyContent", "size"] }, { kind: "component", type: i4.TuiOptionComponent, selector: "button[tuiOption], a[tuiOption]", inputs: ["size", "role", "disabled", "value"] }, { kind: "directive", type: i4.TuiOptGroupDirective, selector: "tui-opt-group", inputs: ["label"] }, { kind: "directive", type: i4.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { kind: "directive", type: i6.TuiAutoFocusDirective, selector: "[tuiAutoFocus]", inputs: ["tuiAutoFocus"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1273
+ __decorate([
1274
+ tuiPure
1275
+ ], TuiDocNavigationComponent.prototype, "filterItems", null);
1276
+ __decorate([
1277
+ tuiPure
1278
+ ], TuiDocNavigationComponent.prototype, "flattenSubPages", null);
1279
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocNavigationComponent, decorators: [{
1280
+ type: Component,
1281
+ args: [{ selector: 'tui-doc-navigation', changeDetection: ChangeDetectionStrategy.OnPush, providers: NAVIGATION_PROVIDERS, template: "<tui-input\n #input\n tuiTextfieldSize=\"m\"\n class=\"t-input\"\n [formControl]=\"search\"\n [tuiAutoFocus]=\"!!sidebar\"\n [tuiTextfieldCleaner]=\"true\"\n [tuiTextfieldIconLeft]=\"docIcons.search\"\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 [fragment]=\"item.fragment\"\n [routerLink]=\"item.route\"\n (click)=\"onClick(input)\"\n >\n {{ item.title }}\n <tui-svg\n *polymorpheusOutlet=\"item.icon as icon\"\n class=\"t-icon\"\n [src]=\"icon\"\n ></tui-svg>\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-index=\"index\"\n let-item=\"item\"\n >\n <a\n *ngIf=\"!item.subPages; else subPagesTemplate\"\n routerLinkActive=\"t-sublink_active\"\n tuiLink\n class=\"t-sublink\"\n [routerLink]=\"item.route\"\n [tuiScrollIntoViewLink]=\"isActive(item.route)\"\n (click)=\"closeMenu()\"\n >\n {{ item.title }}\n <tui-svg\n *polymorpheusOutlet=\"item.icon as icon\"\n class=\"t-icon\"\n [src]=\"icon\"\n ></tui-svg>\n </a>\n\n <ng-template #subPagesTemplate>\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 class=\"t-chevron\"\n [class.t-chevron_active]=\"!!openPagesGroupsArr[index]\"\n [src]=\"icons.more\"\n ></tui-svg>\n {{ item.title }}\n <tui-svg\n *polymorpheusOutlet=\"item.icon as icon\"\n class=\"t-icon\"\n [src]=\"icon\"\n ></tui-svg>\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 $pages(item.subPages)\"\n routerLinkActive=\"t-sublink_active\"\n tuiLink\n class=\"t-sublink t-sublink_small\"\n [fragment]=\"subPage.fragment\"\n [routerLink]=\"subPage.route\"\n [tuiScrollIntoViewLink]=\"isActive(subPage.route)\"\n (click)=\"closeMenu()\"\n >\n {{ subPage.title }}\n <tui-svg\n *polymorpheusOutlet=\"subPage.icon as icon\"\n class=\"t-icon\"\n [src]=\"icon\"\n ></tui-svg>\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{scroll-behavior:smooth;width:100%}:host-context(tui-root._reduced-motion) .t-scrollbar{scroll-behavior:auto}.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:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;font:var(--tui-font-text-m);margin-left:.5rem;padding-top:1rem}.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.t-sublink.t-sublink_active{color:var(--tui-text-01)}.t-icon{margin-left:.5rem}.t-chevron{transition-property:transform;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"] }]
1282
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef, decorators: [{
1283
+ type: Inject,
1284
+ args: [ChangeDetectorRef]
1285
+ }] }, { type: i9.Title, decorators: [{
1286
+ type: Inject,
1287
+ args: [Title]
1288
+ }] }, { type: i10.Observable, decorators: [{
1289
+ type: Inject,
1290
+ args: [NAVIGATION_TITLE]
1291
+ }] }, { type: i4.TuiModeDirective, decorators: [{
1292
+ type: Inject,
1293
+ args: [TuiModeDirective]
1294
+ }] }, { type: undefined, decorators: [{
1295
+ type: Optional
1296
+ }, {
1297
+ type: Inject,
1298
+ args: [TuiSidebarDirective]
1299
+ }] }, { type: undefined, decorators: [{
1300
+ type: Inject,
1301
+ args: [NAVIGATION_LABELS]
1302
+ }] }, { type: undefined, decorators: [{
1303
+ type: Inject,
1304
+ args: [NAVIGATION_ITEMS]
1305
+ }] }, { type: undefined, decorators: [{
1306
+ type: Inject,
1307
+ args: [TUI_DOC_SEARCH_TEXT]
1308
+ }] }, { type: i3.Router, decorators: [{
1309
+ type: Inject,
1310
+ args: [Router]
1311
+ }] }, { type: i3.ActivatedRoute, decorators: [{
1312
+ type: Inject,
1313
+ args: [ActivatedRoute]
1314
+ }] }, { type: i10.Observable, decorators: [{
1315
+ type: Self
1316
+ }, {
1317
+ type: Inject,
1318
+ args: [TuiDestroyService]
1319
+ }] }, { type: i10.Observable, decorators: [{
1320
+ type: Inject,
1321
+ args: [TUI_DOC_PAGE_LOADED]
1322
+ }] }, { type: undefined, decorators: [{
1323
+ type: Inject,
1324
+ args: [TUI_DOC_ICONS]
1325
+ }] }, { type: undefined, decorators: [{
1326
+ type: Inject,
1327
+ args: [TUI_COMMON_ICONS]
1328
+ }] }, { type: Document, decorators: [{
1329
+ type: Inject,
1330
+ args: [DOCUMENT]
1331
+ }] }]; }, propDecorators: { menuOpen: [{
1332
+ type: HostBinding,
1333
+ args: ['class._open']
1334
+ }], filterItems: [], flattenSubPages: [] } });
1335
+
1336
+ class TuiDocHeaderComponent {
1337
+ constructor(icons, logo, menu, router, swipes$) {
1338
+ this.icons = icons;
1339
+ this.logo = logo;
1340
+ this.menu = menu;
1341
+ this.router = router;
1342
+ this.swipes$ = swipes$;
1343
+ this.stream$ = new Subject();
1344
+ this.open$ = merge(this.router.events.pipe(map(ALWAYS_FALSE_HANDLER)), this.stream$, this.swipes$.pipe(filter(swipe => swipe.direction === 'left' || swipe.direction === 'right'), map(swipe => swipe.direction === 'right'))).pipe(startWith(false), distinctUntilChanged());
1345
+ }
1346
+ onClick() {
1347
+ this.stream$.next(true);
1348
+ }
1349
+ onActiveZone(active) {
1350
+ if (!active) {
1351
+ this.stream$.next(false);
1352
+ }
1353
+ }
1354
+ }
1355
+ TuiDocHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocHeaderComponent, deps: [{ token: TUI_DOC_ICONS }, { token: TUI_DOC_LOGO }, { token: TUI_DOC_MENU_TEXT }, { token: Router }, { token: TuiSwipeService }], target: i0.ɵɵFactoryTarget.Component });
1356
+ TuiDocHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiDocHeaderComponent, selector: "header[tuiDocHeader]", ngImport: i0, template: "<button\n appearance=\"icon\"\n tuiIconButton\n type=\"button\"\n class=\"t-menu\"\n [icon]=\"icons.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{position:fixed;top:0;left:0;right:0;z-index:1;display:flex;box-shadow:var(--tui-shadow-navigation);height:3.9375rem;align-items:center;padding:0 1.25rem;background:var(--tui-base-01);border-bottom:1px solid var(--tui-base-03)}@supports (background: color-mix(in srgb,var(--tui-base-01),transparent 50%)){:host{background:color-mix(in srgb,var(--tui-base-01),transparent 50%);-webkit-backdrop-filter:blur(1.25rem);backdrop-filter:blur(1.25rem)}}.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"], dependencies: [{ kind: "directive", type: i1$1.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: i4.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }, { kind: "directive", type: i3$2.TuiSidebarDirective, selector: "[tuiSidebar]", inputs: ["tuiSidebarDirection", "tuiSidebarAutoWidth", "tuiSidebar"] }, { kind: "directive", type: i6.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { kind: "component", type: TuiDocNavigationComponent, selector: "tui-doc-navigation" }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1357
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocHeaderComponent, decorators: [{
1358
+ type: Component,
1359
+ args: [{ selector: 'header[tuiDocHeader]', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n appearance=\"icon\"\n tuiIconButton\n type=\"button\"\n class=\"t-menu\"\n [icon]=\"icons.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{position:fixed;top:0;left:0;right:0;z-index:1;display:flex;box-shadow:var(--tui-shadow-navigation);height:3.9375rem;align-items:center;padding:0 1.25rem;background:var(--tui-base-01);border-bottom:1px solid var(--tui-base-03)}@supports (background: color-mix(in srgb,var(--tui-base-01),transparent 50%)){:host{background:color-mix(in srgb,var(--tui-base-01),transparent 50%);-webkit-backdrop-filter:blur(1.25rem);backdrop-filter:blur(1.25rem)}}.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"] }]
1360
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1361
+ type: Inject,
1362
+ args: [TUI_DOC_ICONS]
1363
+ }] }, { type: undefined, decorators: [{
1364
+ type: Inject,
1365
+ args: [TUI_DOC_LOGO]
1366
+ }] }, { type: undefined, decorators: [{
1367
+ type: Inject,
1368
+ args: [TUI_DOC_MENU_TEXT]
1369
+ }] }, { type: i3.Router, decorators: [{
1370
+ type: Inject,
1371
+ args: [Router]
1372
+ }] }, { type: i6.TuiSwipeService, decorators: [{
1373
+ type: Inject,
1374
+ args: [TuiSwipeService]
1375
+ }] }]; } });
1376
+
1377
+ class TuiDocNavigationModule {
1378
+ }
1379
+ TuiDocNavigationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocNavigationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1380
+ TuiDocNavigationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiDocNavigationModule, declarations: [TuiDocNavigationComponent], imports: [CommonModule,
1381
+ ReactiveFormsModule,
1382
+ RouterModule,
1383
+ PolymorpheusModule,
1384
+ TuiScrollIntoViewLinkModule,
1385
+ TuiButtonModule,
1386
+ TuiInputModule,
1387
+ TuiTextfieldControllerModule,
1388
+ TuiActiveZoneModule,
1389
+ TuiLetModule,
1390
+ TuiModeModule,
1391
+ TuiLinkModule,
1392
+ TuiExpandModule,
1393
+ TuiHostedDropdownModule,
1394
+ TuiDropdownModule,
1395
+ TuiAccordionModule,
1396
+ TuiScrollbarModule,
1397
+ TuiSvgModule,
1398
+ TuiDataListModule,
1399
+ TuiAutoFocusModule], exports: [TuiDocNavigationComponent] });
1400
+ TuiDocNavigationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocNavigationModule, imports: [CommonModule,
1401
+ ReactiveFormsModule,
1402
+ RouterModule,
1403
+ PolymorpheusModule,
1404
+ TuiScrollIntoViewLinkModule,
1405
+ TuiButtonModule,
1406
+ TuiInputModule,
1407
+ TuiTextfieldControllerModule,
1408
+ TuiActiveZoneModule,
1409
+ TuiLetModule,
1410
+ TuiModeModule,
1411
+ TuiLinkModule,
1412
+ TuiExpandModule,
1413
+ TuiHostedDropdownModule,
1414
+ TuiDropdownModule,
1415
+ TuiAccordionModule,
1416
+ TuiScrollbarModule,
1417
+ TuiSvgModule,
1418
+ TuiDataListModule,
1419
+ TuiAutoFocusModule] });
1420
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocNavigationModule, decorators: [{
1421
+ type: NgModule,
1422
+ args: [{
1423
+ imports: [
1424
+ CommonModule,
1425
+ ReactiveFormsModule,
1426
+ RouterModule,
1427
+ PolymorpheusModule,
1428
+ TuiScrollIntoViewLinkModule,
1429
+ TuiButtonModule,
1430
+ TuiInputModule,
1431
+ TuiTextfieldControllerModule,
1432
+ TuiActiveZoneModule,
1433
+ TuiLetModule,
1434
+ TuiModeModule,
1435
+ TuiLinkModule,
1436
+ TuiExpandModule,
1437
+ TuiHostedDropdownModule,
1438
+ TuiDropdownModule,
1439
+ TuiAccordionModule,
1440
+ TuiScrollbarModule,
1441
+ TuiSvgModule,
1442
+ TuiDataListModule,
1443
+ TuiAutoFocusModule,
1444
+ ],
1445
+ declarations: [TuiDocNavigationComponent],
1446
+ exports: [TuiDocNavigationComponent],
1447
+ }]
1448
+ }] });
1449
+
1450
+ class TuiDocHeaderModule {
1451
+ }
1452
+ TuiDocHeaderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocHeaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1453
+ TuiDocHeaderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiDocHeaderModule, declarations: [TuiDocHeaderComponent], imports: [CommonModule,
1454
+ PolymorpheusModule,
1455
+ TuiButtonModule,
1456
+ TuiSidebarModule,
1457
+ TuiActiveZoneModule,
1458
+ TuiDocNavigationModule], exports: [TuiDocHeaderComponent] });
1459
+ TuiDocHeaderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocHeaderModule, imports: [CommonModule,
1460
+ PolymorpheusModule,
1461
+ TuiButtonModule,
1462
+ TuiSidebarModule,
1463
+ TuiActiveZoneModule,
1464
+ TuiDocNavigationModule] });
1465
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocHeaderModule, decorators: [{
1466
+ type: NgModule,
1467
+ args: [{
1468
+ imports: [
1469
+ CommonModule,
1470
+ PolymorpheusModule,
1471
+ TuiButtonModule,
1472
+ TuiSidebarModule,
1473
+ TuiActiveZoneModule,
1474
+ TuiDocNavigationModule,
1475
+ ],
1476
+ declarations: [TuiDocHeaderComponent],
1477
+ exports: [TuiDocHeaderComponent],
1478
+ }]
1479
+ }] });
1480
+
1481
+ class TuiDocSeeAlsoComponent {
1482
+ constructor(text, pages) {
1483
+ this.text = text;
1484
+ this.pages = pages;
1485
+ this.seeAlso = [];
1486
+ }
1487
+ getRouterLink(pageTitle) {
1488
+ return this.pages.get(pageTitle)?.route ?? '';
1489
+ }
1490
+ }
1491
+ TuiDocSeeAlsoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocSeeAlsoComponent, deps: [{ token: TUI_DOC_SEE_ALSO_TEXT }, { token: TUI_DOC_MAP_PAGES }], target: i0.ɵɵFactoryTarget.Component });
1492
+ TuiDocSeeAlsoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiDocSeeAlsoComponent, selector: "tui-doc-see-also", inputs: { seeAlso: "seeAlso" }, ngImport: i0, template: "<h5 class=\"t-header\">{{ text }}</h5>\n<ng-container *ngFor=\"let item of seeAlso; last as last\">\n <a\n tuiLink\n [innerText]=\"item\"\n [routerLink]=\"getRouterLink(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"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i4.TuiLinkComponent, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo", "icon", "iconAlign", "iconRotated", "mode"], exportAs: ["tuiLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1493
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocSeeAlsoComponent, decorators: [{
1494
+ type: Component,
1495
+ args: [{ selector: 'tui-doc-see-also', changeDetection: ChangeDetectionStrategy.OnPush, template: "<h5 class=\"t-header\">{{ text }}</h5>\n<ng-container *ngFor=\"let item of seeAlso; last as last\">\n <a\n tuiLink\n [innerText]=\"item\"\n [routerLink]=\"getRouterLink(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"] }]
1496
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1497
+ type: Inject,
1498
+ args: [TUI_DOC_SEE_ALSO_TEXT]
1499
+ }] }, { type: Map, decorators: [{
1500
+ type: Inject,
1501
+ args: [TUI_DOC_MAP_PAGES]
1502
+ }] }]; }, propDecorators: { seeAlso: [{
1503
+ type: Input
1504
+ }] } });
1505
+
1506
+ class TuiDocSeeAlsoModule {
1507
+ }
1508
+ TuiDocSeeAlsoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocSeeAlsoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1509
+ TuiDocSeeAlsoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiDocSeeAlsoModule, declarations: [TuiDocSeeAlsoComponent], imports: [CommonModule, RouterModule, TuiLinkModule], exports: [TuiDocSeeAlsoComponent] });
1510
+ TuiDocSeeAlsoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocSeeAlsoModule, imports: [CommonModule, RouterModule, TuiLinkModule] });
1511
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocSeeAlsoModule, decorators: [{
1512
+ type: NgModule,
1513
+ args: [{
1514
+ imports: [CommonModule, RouterModule, TuiLinkModule],
1515
+ declarations: [TuiDocSeeAlsoComponent],
1516
+ exports: [TuiDocSeeAlsoComponent],
1517
+ }]
1518
+ }] });
1519
+
1520
+ class TuiDocSourceCodeComponent {
1521
+ constructor(icons, sourceCode, text) {
1522
+ this.icons = icons;
1523
+ this.sourceCode = sourceCode;
1524
+ this.text = text;
1525
+ this.header = '';
1526
+ this.package = '';
1527
+ this.type = '';
1528
+ this.path = '';
1529
+ }
1530
+ get pathOptions() {
1531
+ return this.getPathOptions(this.header, this.package, this.type, this.path);
1532
+ }
1533
+ pathIsUrl(path) {
1534
+ return path.startsWith('http');
1535
+ }
1536
+ getPathOptions(header, packageName, type, path) {
1537
+ return {
1538
+ header,
1539
+ package: packageName,
1540
+ type,
1541
+ path,
1542
+ };
1543
+ }
1544
+ }
1545
+ TuiDocSourceCodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocSourceCodeComponent, deps: [{ token: TUI_DOC_ICONS }, { token: TUI_DOC_SOURCE_CODE }, { token: TUI_DOC_SOURCE_CODE_TEXT }], target: i0.ɵɵFactoryTarget.Component });
1546
+ TuiDocSourceCodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiDocSourceCodeComponent, selector: "tui-doc-source-code", inputs: { header: "header", package: "package", type: "type", path: "path" }, ngImport: i0, template: "<a\n *polymorpheusOutlet=\"pathIsUrl(path) ? path : sourceCode as link; context: pathOptions\"\n appearance=\"icon\"\n size=\"s\"\n target=\"_blank\"\n tuiIconButton\n type=\"button\"\n [href]=\"link\"\n [icon]=\"icons.code\"\n [title]=\"text\"\n></a>\n", dependencies: [{ kind: "directive", type: i1$1.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: i4.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1547
+ __decorate([
1548
+ tuiPure
1549
+ ], TuiDocSourceCodeComponent.prototype, "pathIsUrl", null);
1550
+ __decorate([
1551
+ tuiPure
1552
+ ], TuiDocSourceCodeComponent.prototype, "getPathOptions", null);
1553
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocSourceCodeComponent, decorators: [{
1554
+ type: Component,
1555
+ args: [{ selector: 'tui-doc-source-code', changeDetection: ChangeDetectionStrategy.OnPush, template: "<a\n *polymorpheusOutlet=\"pathIsUrl(path) ? path : sourceCode as link; context: pathOptions\"\n appearance=\"icon\"\n size=\"s\"\n target=\"_blank\"\n tuiIconButton\n type=\"button\"\n [href]=\"link\"\n [icon]=\"icons.code\"\n [title]=\"text\"\n></a>\n" }]
1556
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1557
+ type: Inject,
1558
+ args: [TUI_DOC_ICONS]
1559
+ }] }, { type: undefined, decorators: [{
1560
+ type: Inject,
1561
+ args: [TUI_DOC_SOURCE_CODE]
1562
+ }] }, { type: undefined, decorators: [{
1563
+ type: Inject,
1564
+ args: [TUI_DOC_SOURCE_CODE_TEXT]
1565
+ }] }]; }, propDecorators: { header: [{
1566
+ type: Input
1567
+ }], package: [{
1568
+ type: Input
1569
+ }], type: [{
1570
+ type: Input
1571
+ }], path: [{
1572
+ type: Input
1573
+ }], pathIsUrl: [], getPathOptions: [] } });
1574
+
1575
+ class TuiDocSourceCodeModule {
1576
+ }
1577
+ TuiDocSourceCodeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocSourceCodeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1578
+ TuiDocSourceCodeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiDocSourceCodeModule, declarations: [TuiDocSourceCodeComponent], imports: [CommonModule, PolymorpheusModule, TuiButtonModule], exports: [TuiDocSourceCodeComponent] });
1579
+ TuiDocSourceCodeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocSourceCodeModule, imports: [CommonModule, PolymorpheusModule, TuiButtonModule] });
1580
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocSourceCodeModule, decorators: [{
1581
+ type: NgModule,
1582
+ args: [{
1583
+ imports: [CommonModule, PolymorpheusModule, TuiButtonModule],
1584
+ declarations: [TuiDocSourceCodeComponent],
1585
+ exports: [TuiDocSourceCodeComponent],
1586
+ }]
1587
+ }] });
1588
+
1589
+ class TuiLanguageSwitcherComponent {
1590
+ constructor(switcher, flagPipe) {
1591
+ this.switcher = switcher;
1592
+ this.flagPipe = flagPipe;
1593
+ this.language = new UntypedFormControl(tuiCapitalizeFirstLetter(this.switcher.language));
1594
+ this.flags = new Map([
1595
+ ['chinese', TuiCountryIsoCode.CN],
1596
+ ['dutch', TuiCountryIsoCode.NL],
1597
+ ['english', TuiCountryIsoCode.GB],
1598
+ ['french', TuiCountryIsoCode.FR],
1599
+ ['german', TuiCountryIsoCode.DE],
1600
+ ['italian', TuiCountryIsoCode.IT],
1601
+ ['polish', TuiCountryIsoCode.PL],
1602
+ ['portuguese', TuiCountryIsoCode.PT],
1603
+ ['russian', TuiCountryIsoCode.RU],
1604
+ ['spanish', TuiCountryIsoCode.ES],
1605
+ ['turkish', TuiCountryIsoCode.TR],
1606
+ ['ukrainian', TuiCountryIsoCode.UA],
1607
+ ['kazakh', TuiCountryIsoCode.KZ],
1608
+ ['malay', TuiCountryIsoCode.MY],
1609
+ ['vietnamese', TuiCountryIsoCode.VN],
1610
+ ]);
1611
+ this.names = Array.from(this.flags.keys());
1612
+ }
1613
+ /**
1614
+ * @deprecated use `<img [src]="countryIsoCode | tuiFlagPipe" />`
1615
+ * TODO drop in v4.0
1616
+ */
1617
+ getFlagPath(code) {
1618
+ return this.flagPipe.transform(code);
1619
+ }
1620
+ }
1621
+ TuiLanguageSwitcherComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiLanguageSwitcherComponent, deps: [{ token: TuiLanguageSwitcher }, { token: TuiFlagPipe }], target: i0.ɵɵFactoryTarget.Component });
1622
+ TuiLanguageSwitcherComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiLanguageSwitcherComponent, selector: "tui-language-switcher", providers: [
1623
+ // TODO: for backward compatibility only. Drop in v4.0
1624
+ TuiFlagPipe,
1625
+ ], ngImport: i0, 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]=\"flags.get(name) | tuiFlag\"\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"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3$1.TuiSelectComponent, selector: "tui-select", inputs: ["stringify", "identityMatcher", "valueContent"] }, { kind: "directive", type: i3$1.TuiSelectDirective, selector: "tui-select" }, { kind: "component", type: i4.TuiDataListComponent, selector: "tui-data-list", inputs: ["role", "emptyContent", "size"] }, { kind: "component", type: i4.TuiOptionComponent, selector: "button[tuiOption], a[tuiOption]", inputs: ["size", "role", "disabled", "value"] }, { kind: "directive", type: i4.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "pipe", type: i1.TitleCasePipe, name: "titlecase" }, { kind: "pipe", type: i4.TuiFlagPipe, name: "tuiFlag" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1626
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiLanguageSwitcherComponent, decorators: [{
1627
+ type: Component,
1628
+ args: [{ selector: 'tui-language-switcher', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
1629
+ // TODO: for backward compatibility only. Drop in v4.0
1630
+ TuiFlagPipe,
1631
+ ], 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]=\"flags.get(name) | tuiFlag\"\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"] }]
1632
+ }], ctorParameters: function () { return [{ type: i5$1.TuiLanguageSwitcher, decorators: [{
1633
+ type: Inject,
1634
+ args: [TuiLanguageSwitcher]
1635
+ }] }, { type: i4.TuiFlagPipe, decorators: [{
1636
+ type: Inject,
1637
+ args: [TuiFlagPipe]
1638
+ }] }]; } });
1639
+
1640
+ class TuiLanguageSwitcherModule {
1641
+ }
1642
+ TuiLanguageSwitcherModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiLanguageSwitcherModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1643
+ TuiLanguageSwitcherModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiLanguageSwitcherModule, declarations: [TuiLanguageSwitcherComponent], imports: [CommonModule,
1644
+ TuiFlagPipeModule,
1645
+ TuiSelectModule,
1646
+ TuiDataListModule,
1647
+ ReactiveFormsModule], exports: [TuiLanguageSwitcherComponent] });
1648
+ TuiLanguageSwitcherModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiLanguageSwitcherModule, imports: [CommonModule,
1649
+ TuiFlagPipeModule,
1650
+ TuiSelectModule,
1651
+ TuiDataListModule,
1652
+ ReactiveFormsModule] });
1653
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiLanguageSwitcherModule, decorators: [{
1654
+ type: NgModule,
1655
+ args: [{
1656
+ imports: [
1657
+ CommonModule,
1658
+ TuiFlagPipeModule,
1659
+ TuiSelectModule,
1660
+ TuiDataListModule,
1661
+ ReactiveFormsModule,
1662
+ ],
1663
+ declarations: [TuiLanguageSwitcherComponent],
1664
+ exports: [TuiLanguageSwitcherComponent],
1665
+ }]
1666
+ }] });
1667
+
1668
+ class TuiDocMainComponent {
1669
+ constructor(icons, theme, night) {
1670
+ this.icons = icons;
1671
+ this.theme = theme;
1672
+ this.night = night;
1673
+ this.change$ = this.night;
1674
+ this.night$ = this.change$.pipe(startWith(null), map(() => this.night.value), distinctUntilChanged(), share());
1675
+ }
1676
+ get mode() {
1677
+ return this.night.value ? 'onDark' : null;
1678
+ }
1679
+ get icon() {
1680
+ return this.night.value ? this.icons.day : this.icons.night;
1681
+ }
1682
+ }
1683
+ TuiDocMainComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocMainComponent, deps: [{ token: TUI_DOC_ICONS }, { token: TuiThemeService }, { token: TuiThemeNightService }], target: i0.ɵɵFactoryTarget.Component });
1684
+ TuiDocMainComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiDocMainComponent, selector: "tui-doc-main", host: { properties: { "attr.data-mode": "this.mode" } }, providers: [
1685
+ {
1686
+ provide: TuiModeDirective,
1687
+ useExisting: forwardRef(() => TuiDocMainComponent),
1688
+ },
1689
+ TuiSwipeService,
1690
+ ], ngImport: i0, template: "<tui-theme-night *ngIf=\"theme.isDefaultTheme && night.useDefaultNightTheme && (night$ | async)\"></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 <ng-content select=\"tuiDocHeader\"></ng-content>\n <button\n appearance=\"secondary\"\n shape=\"rounded\"\n size=\"s\"\n tuiIconButton\n tuiMode=\"onLight\"\n type=\"button\"\n class=\"tui-doc-night-mode-switch\"\n [icon]=\"icon\"\n (click)=\"night.toggle()\"\n ></button>\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: ["@keyframes tuiShaking{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(-.3125rem,0,0)}20%,40%,60%,80%{transform:translate3d(.3125rem,0,0)}}html,body{scroll-padding-top:4rem;background:var(--tui-base-01);height:auto}tui-root>tui-scroll-controls>.t-bar_vertical{top:4rem!important}tui-doc-main{display:block}code:not(pre code):not(.hljs):not([class*=\"language-\"]){transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:inline-flex;background:var(--tui-base-02);color:var(--tui-text-02);vertical-align:middle;align-items:center;border-radius:.25rem;font-weight:500;outline:1px solid var(--tui-base-04);font-size:.75rem;padding:0 .3125rem;margin:.125rem .1875rem;text-wrap:wrap}tui-notification code:not(pre code):not(.hljs):not([class*=\"language-\"]){mix-blend-mode:luminosity}a code:not(pre code):not(.hljs):not([class*=\"language-\"]){color:var(--tui-link)}button:focus code,a:focus code{background:var(--tui-base-01)}.tui-doc-page{isolation:isolate;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-night-mode-switch{margin-left:1rem}.tui-doc-night-mode-switch tui-svg{color:var(--tui-text-02)}tui-doc-code .hljs-tag{background:none}tui-doc-code .hljs{display:block;overflow-x:auto;padding:.5em;color:var(--tui-text-01);background-color:var(--tui-clear)}tui-doc-code .hljs.hljs-line-numbers{background:transparent}tui-doc-code .hljs-subst,tui-doc-code .hljs-title{font-weight:400;color:var(--tui-text-01)}tui-doc-code .hljs-property{color:var(--tui-support-14)}tui-doc-code .hljs-comment,tui-doc-code .hljs-quote{color:var(--tui-text-02);font-style:italic}tui-doc-code .hljs-meta{color:#e38162}tui-doc-code .hljs-section,tui-doc-code .hljs-name,tui-doc-code .hljs-literal,tui-doc-code .hljs-keyword,tui-doc-code .hljs-selector-tag,tui-doc-code .hljs-type,tui-doc-code .hljs-selector-id,tui-doc-code .hljs-selector-class{font-weight:700;color:var(--tui-link)}tui-doc-code .hljs-attr{color:var(--tui-link)}tui-doc-code .hljs-attribute,tui-doc-code .hljs-number,tui-doc-code .hljs-regexp,tui-doc-code .hljs-link,tui-doc-code .hljs-built_in{font-weight:700;color:var(--tui-support-06)}tui-doc-code .hljs-number,tui-doc-code .hljs-regexp,tui-doc-code .hljs-link{font-weight:400}tui-doc-code .hljs-string{color:var(--tui-positive);font-weight:700}tui-doc-code .hljs-symbol,tui-doc-code .hljs-bullet,tui-doc-code .hljs-formula{color:var(--tui-text-01);background:var(--tui-base-02);font-style:italic}tui-doc-code .hljs-doctag{text-decoration:underline}tui-doc-code .hljs-variable,tui-doc-code .hljs-template-variable{color:var(--tui-link-hover)}tui-doc-code [data-mode=onDark] .hljs-variable,tui-doc-code [data-mode=onDark] .hljs-template-variable{color:var(--tui-warning-fill)}tui-doc-code .hljs-addition{background:var(--tui-success-bg)}tui-doc-code .hljs-deletion{background:var(--tui-error-bg)}tui-doc-code .hljs-emphasis{font-style:italic}tui-doc-code .hljs-strong{font-weight:700}tui-doc-code .hljs .hljs-line-numbers{padding:0}tui-doc-code .hljs-ln-numbers{vertical-align:top;opacity:.3;text-align:right;padding-right:1em!important}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i4.TuiThemeNightComponent, selector: "tui-theme-night" }, { kind: "component", type: TuiDocHeaderComponent, selector: "header[tuiDocHeader]" }, { kind: "component", type: i4.TuiRootComponent, selector: "tui-root" }, { kind: "component", type: i4.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }, { kind: "directive", type: i4.TuiModeDirective, selector: "[tuiMode]", inputs: ["tuiMode"] }, { kind: "component", type: TuiDocNavigationComponent, selector: "tui-doc-navigation" }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
1691
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocMainComponent, decorators: [{
1692
+ type: Component,
1693
+ args: [{ selector: 'tui-doc-main', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, providers: [
1694
+ {
1695
+ provide: TuiModeDirective,
1696
+ useExisting: forwardRef(() => TuiDocMainComponent),
1697
+ },
1698
+ TuiSwipeService,
1699
+ ], template: "<tui-theme-night *ngIf=\"theme.isDefaultTheme && night.useDefaultNightTheme && (night$ | async)\"></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 <ng-content select=\"tuiDocHeader\"></ng-content>\n <button\n appearance=\"secondary\"\n shape=\"rounded\"\n size=\"s\"\n tuiIconButton\n tuiMode=\"onLight\"\n type=\"button\"\n class=\"tui-doc-night-mode-switch\"\n [icon]=\"icon\"\n (click)=\"night.toggle()\"\n ></button>\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: ["@keyframes tuiShaking{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(-.3125rem,0,0)}20%,40%,60%,80%{transform:translate3d(.3125rem,0,0)}}html,body{scroll-padding-top:4rem;background:var(--tui-base-01);height:auto}tui-root>tui-scroll-controls>.t-bar_vertical{top:4rem!important}tui-doc-main{display:block}code:not(pre code):not(.hljs):not([class*=\"language-\"]){transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:inline-flex;background:var(--tui-base-02);color:var(--tui-text-02);vertical-align:middle;align-items:center;border-radius:.25rem;font-weight:500;outline:1px solid var(--tui-base-04);font-size:.75rem;padding:0 .3125rem;margin:.125rem .1875rem;text-wrap:wrap}tui-notification code:not(pre code):not(.hljs):not([class*=\"language-\"]){mix-blend-mode:luminosity}a code:not(pre code):not(.hljs):not([class*=\"language-\"]){color:var(--tui-link)}button:focus code,a:focus code{background:var(--tui-base-01)}.tui-doc-page{isolation:isolate;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-night-mode-switch{margin-left:1rem}.tui-doc-night-mode-switch tui-svg{color:var(--tui-text-02)}tui-doc-code .hljs-tag{background:none}tui-doc-code .hljs{display:block;overflow-x:auto;padding:.5em;color:var(--tui-text-01);background-color:var(--tui-clear)}tui-doc-code .hljs.hljs-line-numbers{background:transparent}tui-doc-code .hljs-subst,tui-doc-code .hljs-title{font-weight:400;color:var(--tui-text-01)}tui-doc-code .hljs-property{color:var(--tui-support-14)}tui-doc-code .hljs-comment,tui-doc-code .hljs-quote{color:var(--tui-text-02);font-style:italic}tui-doc-code .hljs-meta{color:#e38162}tui-doc-code .hljs-section,tui-doc-code .hljs-name,tui-doc-code .hljs-literal,tui-doc-code .hljs-keyword,tui-doc-code .hljs-selector-tag,tui-doc-code .hljs-type,tui-doc-code .hljs-selector-id,tui-doc-code .hljs-selector-class{font-weight:700;color:var(--tui-link)}tui-doc-code .hljs-attr{color:var(--tui-link)}tui-doc-code .hljs-attribute,tui-doc-code .hljs-number,tui-doc-code .hljs-regexp,tui-doc-code .hljs-link,tui-doc-code .hljs-built_in{font-weight:700;color:var(--tui-support-06)}tui-doc-code .hljs-number,tui-doc-code .hljs-regexp,tui-doc-code .hljs-link{font-weight:400}tui-doc-code .hljs-string{color:var(--tui-positive);font-weight:700}tui-doc-code .hljs-symbol,tui-doc-code .hljs-bullet,tui-doc-code .hljs-formula{color:var(--tui-text-01);background:var(--tui-base-02);font-style:italic}tui-doc-code .hljs-doctag{text-decoration:underline}tui-doc-code .hljs-variable,tui-doc-code .hljs-template-variable{color:var(--tui-link-hover)}tui-doc-code [data-mode=onDark] .hljs-variable,tui-doc-code [data-mode=onDark] .hljs-template-variable{color:var(--tui-warning-fill)}tui-doc-code .hljs-addition{background:var(--tui-success-bg)}tui-doc-code .hljs-deletion{background:var(--tui-error-bg)}tui-doc-code .hljs-emphasis{font-style:italic}tui-doc-code .hljs-strong{font-weight:700}tui-doc-code .hljs .hljs-line-numbers{padding:0}tui-doc-code .hljs-ln-numbers{vertical-align:top;opacity:.3;text-align:right;padding-right:1em!important}\n"] }]
1700
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1701
+ type: Inject,
1702
+ args: [TUI_DOC_ICONS]
1703
+ }] }, { type: i6$1.TuiThemeService, decorators: [{
1704
+ type: Inject,
1705
+ args: [TuiThemeService]
1706
+ }] }, { type: i6$1.TuiThemeNightService, decorators: [{
1707
+ type: Inject,
1708
+ args: [TuiThemeNightService]
1709
+ }] }]; }, propDecorators: { mode: [{
1710
+ type: HostBinding,
1711
+ args: ['attr.data-mode']
1712
+ }] } });
1713
+
1714
+ class TuiDocMainModule {
1715
+ }
1716
+ TuiDocMainModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocMainModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1717
+ TuiDocMainModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiDocMainModule, declarations: [TuiDocMainComponent], imports: [CommonModule,
1718
+ RouterModule,
1719
+ TuiThemeNightModule,
1720
+ TuiDocHeaderModule,
1721
+ TuiRootModule,
1722
+ TuiDialogModule,
1723
+ TuiAlertModule,
1724
+ TuiButtonModule,
1725
+ TuiModeModule,
1726
+ TuiDocNavigationModule], exports: [TuiDocMainComponent] });
1727
+ TuiDocMainModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocMainModule, imports: [CommonModule,
1728
+ RouterModule,
1729
+ TuiThemeNightModule,
1730
+ TuiDocHeaderModule,
1731
+ TuiRootModule,
1732
+ TuiDialogModule,
1733
+ TuiAlertModule,
1734
+ TuiButtonModule,
1735
+ TuiModeModule,
1736
+ TuiDocNavigationModule] });
1737
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocMainModule, decorators: [{
1738
+ type: NgModule,
1739
+ args: [{
1740
+ imports: [
1741
+ CommonModule,
1742
+ RouterModule,
1743
+ TuiThemeNightModule,
1744
+ TuiDocHeaderModule,
1745
+ TuiRootModule,
1746
+ TuiDialogModule,
1747
+ TuiAlertModule,
1748
+ TuiButtonModule,
1749
+ TuiModeModule,
1750
+ TuiDocNavigationModule,
1751
+ ],
1752
+ declarations: [TuiDocMainComponent],
1753
+ exports: [TuiDocMainComponent],
1754
+ }]
1755
+ }] });
1756
+
1757
+ /**
1758
+ * Array if related page titles
1759
+ */
1760
+ const PAGE_SEE_ALSO = new InjectionToken(`[PAGE_SEE_ALSO]`);
1761
+ const PAGE_PROVIDERS = [
1762
+ {
1763
+ provide: PAGE_SEE_ALSO,
1764
+ deps: [ElementRef, TUI_DOC_SEE_ALSO],
1765
+ useFactory: ({ nativeElement }, seeAlsoGroups) => {
1766
+ const currentHeader = nativeElement.getAttribute(`header`);
1767
+ const groups = seeAlsoGroups.filter(group => group.includes(currentHeader)) || [];
1768
+ const seeAlsoSet = new Set(groups
1769
+ .join()
1770
+ .split(`,`)
1771
+ .filter(component => component && component !== currentHeader));
1772
+ return Array.from(seeAlsoSet);
1773
+ },
1774
+ },
1775
+ ];
1776
+
1777
+ class TuiDocPageTabConnectorDirective {
1778
+ constructor(template) {
1779
+ this.template = template;
1780
+ }
1781
+ }
1782
+ TuiDocPageTabConnectorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocPageTabConnectorDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
1783
+ TuiDocPageTabConnectorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiDocPageTabConnectorDirective, selector: "[pageTab]", inputs: { pageTab: "pageTab" }, ngImport: i0 });
1784
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocPageTabConnectorDirective, decorators: [{
1785
+ type: Directive,
1786
+ args: [{
1787
+ selector: '[pageTab]',
1788
+ }]
1789
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
1790
+ type: Inject,
1791
+ args: [TemplateRef]
1792
+ }] }]; }, propDecorators: { pageTab: [{
1793
+ type: Input
1794
+ }] } });
1795
+
1796
+ class TuiDocPageComponent {
1797
+ constructor(defaultTabs, seeAlso) {
1798
+ this.defaultTabs = defaultTabs;
1799
+ this.seeAlso = seeAlso;
1800
+ this.header = '';
1801
+ this.package = '';
1802
+ this.type = '';
1803
+ this.path = '';
1804
+ this.deprecated = false;
1805
+ this.tabConnectors = EMPTY_QUERY;
1806
+ this.activeItemIndex = 0;
1807
+ this.from = / /g;
1808
+ this.to = '_';
1809
+ }
1810
+ get showSeeAlso() {
1811
+ return !!this.seeAlso.length && this.activeItemIndex === 0;
1812
+ }
1813
+ }
1814
+ TuiDocPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocPageComponent, deps: [{ token: TUI_DOC_DEFAULT_TABS }, { token: PAGE_SEE_ALSO }], target: i0.ɵɵFactoryTarget.Component });
1815
+ TuiDocPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiDocPageComponent, selector: "tui-doc-page", inputs: { header: "header", package: "package", type: "type", path: "path", deprecated: "deprecated" }, providers: PAGE_PROVIDERS, queries: [{ propertyName: "tabConnectors", predicate: TuiDocPageTabConnectorDirective }], ngImport: i0, template: "<header class=\"t-header\">\n <h1 class=\"t-title\">\n {{ header }}\n <tui-tag\n *ngIf=\"!!deprecated || deprecated === ''\"\n status=\"custom\"\n value=\"deprecated\"\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 [autoColor]=\"true\"\n [value]=\"package\"\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=\"tab.pageTab || defaultTabs[index] as tabName\">\n <a\n *tuiItem\n routerLinkActive\n tuiTab\n [routerLink]=\"first ? './' : (tabName | tuiReplace: from : to)\"\n [routerLinkActiveOptions]=\"{exact: first}\"\n >\n {{ tabName }}\n </a>\n </ng-container>\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 [path]=\"path\"\n [type]=\"type\"\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);color:#fff}.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;margin-left:auto}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: TuiDocSeeAlsoComponent, selector: "tui-doc-see-also", inputs: ["seeAlso"] }, { kind: "component", type: i3$1.TuiTabsWithMoreComponent, selector: "tui-tabs-with-more, nav[tuiTabsWithMore]", inputs: ["moreContent", "dropdownContent", "underline", "activeItemIndex", "itemsLimit"], outputs: ["activeItemIndexChange"] }, { kind: "component", type: i3$1.TuiTabComponent, selector: "a[tuiTab]:not([routerLink]), a[tuiTab][routerLink][routerLinkActive], button[tuiTab]" }, { kind: "directive", type: i6.TuiItemDirective, selector: "[tuiItem]" }, { kind: "component", type: i3$1.TuiTagComponent, selector: "tui-tag, a[tuiTag], button[tuiTag]", inputs: ["value", "editable", "separator", "maxLength", "size", "showLoader", "status", "hoverable", "removable", "disabled", "autoColor", "leftContent"], outputs: ["edited"] }, { kind: "component", type: TuiDocSourceCodeComponent, selector: "tui-doc-source-code", inputs: ["header", "package", "type", "path"] }, { kind: "pipe", type: i6.TuiReplacePipe, name: "tuiReplace" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1816
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocPageComponent, decorators: [{
1817
+ type: Component,
1818
+ args: [{ selector: 'tui-doc-page', changeDetection: ChangeDetectionStrategy.OnPush, providers: PAGE_PROVIDERS, template: "<header class=\"t-header\">\n <h1 class=\"t-title\">\n {{ header }}\n <tui-tag\n *ngIf=\"!!deprecated || deprecated === ''\"\n status=\"custom\"\n value=\"deprecated\"\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 [autoColor]=\"true\"\n [value]=\"package\"\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=\"tab.pageTab || defaultTabs[index] as tabName\">\n <a\n *tuiItem\n routerLinkActive\n tuiTab\n [routerLink]=\"first ? './' : (tabName | tuiReplace: from : to)\"\n [routerLinkActiveOptions]=\"{exact: first}\"\n >\n {{ tabName }}\n </a>\n </ng-container>\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 [path]=\"path\"\n [type]=\"type\"\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);color:#fff}.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;margin-left:auto}\n"] }]
1819
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1820
+ type: Inject,
1821
+ args: [TUI_DOC_DEFAULT_TABS]
1822
+ }] }, { type: undefined, decorators: [{
1823
+ type: Inject,
1824
+ args: [PAGE_SEE_ALSO]
1825
+ }] }]; }, propDecorators: { header: [{
1826
+ type: Input
1827
+ }], package: [{
1828
+ type: Input
1829
+ }], type: [{
1830
+ type: Input
1831
+ }], path: [{
1832
+ type: Input
1833
+ }], deprecated: [{
1834
+ type: Input
1835
+ }], tabConnectors: [{
1836
+ type: ContentChildren,
1837
+ args: [TuiDocPageTabConnectorDirective]
1838
+ }] } });
1839
+
1840
+ class TuiDocPageModule {
1841
+ }
1842
+ TuiDocPageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocPageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1843
+ TuiDocPageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiDocPageModule, declarations: [TuiDocPageComponent, TuiDocPageTabConnectorDirective], imports: [CommonModule,
1844
+ RouterModule,
1845
+ TuiDocSeeAlsoModule,
1846
+ TuiTabsModule,
1847
+ TuiTagModule,
1848
+ TuiDocSourceCodeModule,
1849
+ TuiReplacePipeModule], exports: [TuiDocPageComponent, TuiDocPageTabConnectorDirective] });
1850
+ TuiDocPageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocPageModule, imports: [CommonModule,
1851
+ RouterModule,
1852
+ TuiDocSeeAlsoModule,
1853
+ TuiTabsModule,
1854
+ TuiTagModule,
1855
+ TuiDocSourceCodeModule,
1856
+ TuiReplacePipeModule] });
1857
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDocPageModule, decorators: [{
1858
+ type: NgModule,
1859
+ args: [{
1860
+ imports: [
1861
+ CommonModule,
1862
+ RouterModule,
1863
+ TuiDocSeeAlsoModule,
1864
+ TuiTabsModule,
1865
+ TuiTagModule,
1866
+ TuiDocSourceCodeModule,
1867
+ TuiReplacePipeModule,
1868
+ ],
1869
+ declarations: [TuiDocPageComponent, TuiDocPageTabConnectorDirective],
1870
+ exports: [TuiDocPageComponent, TuiDocPageTabConnectorDirective],
1871
+ }]
1872
+ }] });
1873
+
1874
+ /**
1875
+ * Generated bundle index. Do not edit.
1876
+ */
1877
+
1878
+ export { PAGE_PROVIDERS, PAGE_SEE_ALSO, TUI_DOC_EXAMPLE_DEFAULT_OPTIONS, TUI_DOC_EXAMPLE_OPTIONS, TuiDocCodeComponent, TuiDocCodeModule, TuiDocCopyComponent, TuiDocCopyModule, TuiDocDemoComponent, TuiDocDemoModule, TuiDocDocumentationComponent, TuiDocDocumentationModule, TuiDocDocumentationPropertyConnectorDirective, TuiDocExampleComponent, TuiDocExampleGetTabsPipe, TuiDocExampleModule, TuiDocHeaderComponent, TuiDocHeaderModule, TuiDocMainComponent, TuiDocMainModule, TuiDocNavigationComponent, TuiDocNavigationModule, TuiDocPageComponent, TuiDocPageModule, TuiDocPageTabConnectorDirective, TuiDocSeeAlsoComponent, TuiDocSeeAlsoModule, TuiDocSourceCodeComponent, TuiDocSourceCodeModule, TuiDocTabComponent, TuiDocTabModule, TuiDocTypeReferencePipe, TuiGetColorPipe, TuiGetOpacityPipe, TuiInputOpacityDirective, TuiInputOpacityModule, TuiInspectPipe, TuiIsOptionalPipe, TuiIsPrimitivePolymorpheusContentPipe, TuiLanguageSwitcherComponent, TuiLanguageSwitcherModule, TuiShowCleanerPipe, TuiStripOptionalPipe, tuiDocExampleOptionsProvider };
1879
+ //# sourceMappingURL=taiga-ui-addon-doc-components.mjs.map