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