@ng-doc/app 16.2.1 → 16.3.0-beta.1

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 (284) hide show
  1. package/classes/root-page/root-page.d.ts +2 -3
  2. package/components/api-list/api-list.component.d.ts +1 -1
  3. package/components/api-list/api-list.module.d.ts +6 -7
  4. package/components/breadcrumb/breadcrumb.component.d.ts +1 -1
  5. package/components/breadcrumb/index.d.ts +1 -2
  6. package/components/code/code.component.d.ts +1 -1
  7. package/components/code/index.d.ts +0 -1
  8. package/components/demo/demo.component.d.ts +1 -1
  9. package/components/demo/index.d.ts +0 -1
  10. package/components/demo-displayer/demo-displayer.component.d.ts +1 -1
  11. package/components/demo-displayer/index.d.ts +0 -1
  12. package/components/demo-pane/demo-pane.component.d.ts +1 -1
  13. package/components/demo-pane/index.d.ts +0 -1
  14. package/components/kind-icon/index.d.ts +0 -1
  15. package/components/kind-icon/kind-icon.component.d.ts +1 -1
  16. package/components/link/index.d.ts +0 -1
  17. package/components/link/link.component.d.ts +1 -1
  18. package/components/navbar/navbar.component.d.ts +1 -1
  19. package/components/navbar/navbar.module.d.ts +1 -7
  20. package/components/page/page.component.d.ts +1 -1
  21. package/components/page/page.module.d.ts +5 -10
  22. package/components/page-link/index.d.ts +0 -1
  23. package/components/page-link/page-link.component.d.ts +1 -1
  24. package/components/playground/index.d.ts +0 -1
  25. package/components/playground/playground-demo/playground-demo.component.d.ts +1 -1
  26. package/components/playground/playground-properties/playground-properties.component.d.ts +1 -1
  27. package/components/playground/playground-property/playground-property.component.d.ts +1 -1
  28. package/components/playground/playground.component.d.ts +1 -1
  29. package/components/root/index.d.ts +0 -1
  30. package/components/root/root.component.d.ts +3 -3
  31. package/components/search/search.component.d.ts +1 -1
  32. package/components/search/search.module.d.ts +6 -7
  33. package/components/search-result/index.d.ts +0 -1
  34. package/components/search-result/search-result.component.d.ts +1 -1
  35. package/components/sidebar/sidebar-category/sidebar-category.component.d.ts +1 -1
  36. package/components/sidebar/sidebar-item/sidebar-item.component.d.ts +1 -1
  37. package/components/sidebar/sidebar.component.d.ts +1 -1
  38. package/components/sidebar/sidebar.module.d.ts +1 -13
  39. package/components/theme-toggle/index.d.ts +0 -1
  40. package/components/theme-toggle/theme-toggle.component.d.ts +1 -1
  41. package/components/toc/index.d.ts +0 -1
  42. package/components/toc/toc-element/toc-element.component.d.ts +1 -1
  43. package/components/toc/toc.component.d.ts +1 -1
  44. package/directives/code-highlighter/code-highlighter.directive.d.ts +1 -1
  45. package/directives/code-highlighter/index.d.ts +0 -1
  46. package/directives/route-active/index.d.ts +0 -1
  47. package/directives/route-active/route-active.directive.d.ts +1 -1
  48. package/esm2022/classes/root-page/root-page.mjs +1 -1
  49. package/esm2022/components/api-list/api-list.component.mjs +29 -8
  50. package/esm2022/components/api-list/api-list.module.mjs +5 -54
  51. package/esm2022/components/breadcrumb/breadcrumb.component.mjs +6 -6
  52. package/esm2022/components/breadcrumb/index.mjs +2 -3
  53. package/esm2022/components/code/code.component.mjs +16 -7
  54. package/esm2022/components/code/index.mjs +1 -2
  55. package/esm2022/components/demo/demo.component.mjs +19 -10
  56. package/esm2022/components/demo/index.mjs +1 -2
  57. package/esm2022/components/demo-displayer/demo-displayer.component.mjs +17 -7
  58. package/esm2022/components/demo-displayer/index.mjs +1 -2
  59. package/esm2022/components/demo-pane/demo-pane.component.mjs +20 -9
  60. package/esm2022/components/demo-pane/index.mjs +1 -2
  61. package/esm2022/components/kind-icon/index.mjs +1 -2
  62. package/esm2022/components/kind-icon/kind-icon.component.mjs +3 -3
  63. package/esm2022/components/link/index.mjs +1 -2
  64. package/esm2022/components/link/link.component.mjs +4 -4
  65. package/esm2022/components/navbar/navbar.component.mjs +16 -10
  66. package/esm2022/components/navbar/navbar.module.mjs +4 -28
  67. package/esm2022/components/page/page.component.mjs +31 -10
  68. package/esm2022/components/page/page.module.mjs +5 -59
  69. package/esm2022/components/page-link/index.mjs +1 -2
  70. package/esm2022/components/page-link/page-link.component.mjs +5 -5
  71. package/esm2022/components/playground/index.mjs +1 -2
  72. package/esm2022/components/playground/playground-demo/playground-demo.component.mjs +5 -5
  73. package/esm2022/components/playground/playground-properties/playground-properties.component.mjs +23 -8
  74. package/esm2022/components/playground/playground-property/playground-property.component.mjs +4 -4
  75. package/esm2022/components/playground/playground.component.mjs +8 -8
  76. package/esm2022/components/root/index.mjs +1 -2
  77. package/esm2022/components/root/root.component.mjs +11 -9
  78. package/esm2022/components/search/search.component.mjs +34 -10
  79. package/esm2022/components/search/search.module.mjs +5 -69
  80. package/esm2022/components/search-result/index.mjs +1 -2
  81. package/esm2022/components/search-result/search-result.component.mjs +7 -7
  82. package/esm2022/components/sidebar/sidebar-category/sidebar-category.component.mjs +18 -11
  83. package/esm2022/components/sidebar/sidebar-item/sidebar-item.component.mjs +5 -6
  84. package/esm2022/components/sidebar/sidebar.component.mjs +6 -6
  85. package/esm2022/components/sidebar/sidebar.module.mjs +4 -46
  86. package/esm2022/components/theme-toggle/index.mjs +1 -2
  87. package/esm2022/components/theme-toggle/theme-toggle.component.mjs +5 -5
  88. package/esm2022/components/toc/index.mjs +1 -2
  89. package/esm2022/components/toc/toc-element/toc-element.component.mjs +3 -3
  90. package/esm2022/components/toc/toc.component.mjs +4 -6
  91. package/esm2022/directives/code-highlighter/code-highlighter.directive.mjs +3 -2
  92. package/esm2022/directives/code-highlighter/index.mjs +1 -2
  93. package/esm2022/directives/route-active/index.mjs +1 -2
  94. package/esm2022/directives/route-active/route-active.directive.mjs +3 -2
  95. package/esm2022/modules/root/ng-doc.module.mjs +6 -6
  96. package/esm2022/pipes/extract-value/extract-value.pipe.mjs +3 -2
  97. package/esm2022/pipes/extract-value/index.mjs +1 -2
  98. package/esm2022/pipes/filter-by-text/filter-by-text.pipe.mjs +3 -2
  99. package/esm2022/pipes/filter-by-text/index.mjs +1 -2
  100. package/esm2022/pipes/sanitize-html/index.mjs +1 -2
  101. package/esm2022/pipes/sanitize-html/sanitize-html.pipe.mjs +3 -2
  102. package/esm2022/processors/blockquote-processor/blockquote-processor.directive.mjs +3 -2
  103. package/esm2022/processors/blockquote-processor/index.mjs +1 -2
  104. package/esm2022/processors/code-processor/code-processor.directive.mjs +3 -2
  105. package/esm2022/processors/code-processor/index.mjs +1 -2
  106. package/esm2022/processors/demo-pane-processor/demo-pane-processor.directive.mjs +3 -2
  107. package/esm2022/processors/demo-pane-processor/index.mjs +1 -2
  108. package/esm2022/processors/demo-processor/demo-processor.directive.mjs +3 -2
  109. package/esm2022/processors/demo-processor/index.mjs +1 -2
  110. package/esm2022/processors/icon-processor/icon-processor.directive.mjs +3 -2
  111. package/esm2022/processors/icon-processor/index.mjs +1 -2
  112. package/esm2022/processors/link-processor/index.mjs +1 -2
  113. package/esm2022/processors/link-processor/link-processor.directive.mjs +3 -2
  114. package/esm2022/processors/playground-processor/index.mjs +1 -2
  115. package/esm2022/processors/playground-processor/playground-processor.directive.mjs +3 -2
  116. package/esm2022/processors/tooltip-processor/index.mjs +1 -2
  117. package/esm2022/processors/tooltip-processor/tooltip-processor.directive.mjs +3 -2
  118. package/esm2022/processors/tooltip-processor/tooltip-wrapper.component.mjs +5 -5
  119. package/esm2022/type-controls/boolean-control/boolean-control.component.mjs +4 -4
  120. package/esm2022/type-controls/boolean-control/boolean-control.module.mjs +4 -6
  121. package/esm2022/type-controls/number-control/number-control.component.mjs +18 -8
  122. package/esm2022/type-controls/number-control/number-control.module.mjs +4 -32
  123. package/esm2022/type-controls/string-control/string-control.component.mjs +18 -8
  124. package/esm2022/type-controls/string-control/string-control.module.mjs +4 -36
  125. package/esm2022/type-controls/type-alias-control/type-alias-control.component.mjs +27 -8
  126. package/esm2022/type-controls/type-alias-control/type-alias-control.module.mjs +5 -46
  127. package/fesm2022/ng-doc-app-classes-root-page.mjs.map +1 -1
  128. package/fesm2022/ng-doc-app-components-api-list.mjs +31 -61
  129. package/fesm2022/ng-doc-app-components-api-list.mjs.map +1 -1
  130. package/fesm2022/ng-doc-app-components-breadcrumb.mjs +6 -22
  131. package/fesm2022/ng-doc-app-components-breadcrumb.mjs.map +1 -1
  132. package/fesm2022/ng-doc-app-components-code.mjs +17 -49
  133. package/fesm2022/ng-doc-app-components-code.mjs.map +1 -1
  134. package/fesm2022/ng-doc-app-components-demo-displayer.mjs +18 -53
  135. package/fesm2022/ng-doc-app-components-demo-displayer.mjs.map +1 -1
  136. package/fesm2022/ng-doc-app-components-demo-pane.mjs +20 -26
  137. package/fesm2022/ng-doc-app-components-demo-pane.mjs.map +1 -1
  138. package/fesm2022/ng-doc-app-components-demo.mjs +19 -48
  139. package/fesm2022/ng-doc-app-components-demo.mjs.map +1 -1
  140. package/fesm2022/ng-doc-app-components-kind-icon.mjs +4 -19
  141. package/fesm2022/ng-doc-app-components-kind-icon.mjs.map +1 -1
  142. package/fesm2022/ng-doc-app-components-link.mjs +5 -21
  143. package/fesm2022/ng-doc-app-components-link.mjs.map +1 -1
  144. package/fesm2022/ng-doc-app-components-navbar.mjs +18 -36
  145. package/fesm2022/ng-doc-app-components-navbar.mjs.map +1 -1
  146. package/fesm2022/ng-doc-app-components-page-link.mjs +5 -21
  147. package/fesm2022/ng-doc-app-components-page-link.mjs.map +1 -1
  148. package/fesm2022/ng-doc-app-components-page.mjs +33 -67
  149. package/fesm2022/ng-doc-app-components-page.mjs.map +1 -1
  150. package/fesm2022/ng-doc-app-components-playground.mjs +141 -204
  151. package/fesm2022/ng-doc-app-components-playground.mjs.map +1 -1
  152. package/fesm2022/ng-doc-app-components-root.mjs +12 -26
  153. package/fesm2022/ng-doc-app-components-root.mjs.map +1 -1
  154. package/fesm2022/ng-doc-app-components-search-result.mjs +8 -26
  155. package/fesm2022/ng-doc-app-components-search-result.mjs.map +1 -1
  156. package/fesm2022/ng-doc-app-components-search.mjs +35 -78
  157. package/fesm2022/ng-doc-app-components-search.mjs.map +1 -1
  158. package/fesm2022/ng-doc-app-components-sidebar.mjs +25 -57
  159. package/fesm2022/ng-doc-app-components-sidebar.mjs.map +1 -1
  160. package/fesm2022/ng-doc-app-components-theme-toggle.mjs +6 -22
  161. package/fesm2022/ng-doc-app-components-theme-toggle.mjs.map +1 -1
  162. package/fesm2022/ng-doc-app-components-toc.mjs +9 -24
  163. package/fesm2022/ng-doc-app-components-toc.mjs.map +1 -1
  164. package/fesm2022/ng-doc-app-directives-code-highlighter.mjs +4 -16
  165. package/fesm2022/ng-doc-app-directives-code-highlighter.mjs.map +1 -1
  166. package/fesm2022/ng-doc-app-directives-route-active.mjs +4 -18
  167. package/fesm2022/ng-doc-app-directives-route-active.mjs.map +1 -1
  168. package/fesm2022/ng-doc-app-modules-root.mjs +5 -5
  169. package/fesm2022/ng-doc-app-modules-root.mjs.map +1 -1
  170. package/fesm2022/ng-doc-app-pipes-extract-value.mjs +4 -16
  171. package/fesm2022/ng-doc-app-pipes-extract-value.mjs.map +1 -1
  172. package/fesm2022/ng-doc-app-pipes-filter-by-text.mjs +4 -16
  173. package/fesm2022/ng-doc-app-pipes-filter-by-text.mjs.map +1 -1
  174. package/fesm2022/ng-doc-app-pipes-sanitize-html.mjs +4 -16
  175. package/fesm2022/ng-doc-app-pipes-sanitize-html.mjs.map +1 -1
  176. package/fesm2022/ng-doc-app-processors-blockquote-processor.mjs +5 -18
  177. package/fesm2022/ng-doc-app-processors-blockquote-processor.mjs.map +1 -1
  178. package/fesm2022/ng-doc-app-processors-code-processor.mjs +5 -18
  179. package/fesm2022/ng-doc-app-processors-code-processor.mjs.map +1 -1
  180. package/fesm2022/ng-doc-app-processors-demo-pane-processor.mjs +5 -18
  181. package/fesm2022/ng-doc-app-processors-demo-pane-processor.mjs.map +1 -1
  182. package/fesm2022/ng-doc-app-processors-demo-processor.mjs +5 -18
  183. package/fesm2022/ng-doc-app-processors-demo-processor.mjs.map +1 -1
  184. package/fesm2022/ng-doc-app-processors-icon-processor.mjs +4 -16
  185. package/fesm2022/ng-doc-app-processors-icon-processor.mjs.map +1 -1
  186. package/fesm2022/ng-doc-app-processors-link-processor.mjs +4 -16
  187. package/fesm2022/ng-doc-app-processors-link-processor.mjs.map +1 -1
  188. package/fesm2022/ng-doc-app-processors-playground-processor.mjs +5 -18
  189. package/fesm2022/ng-doc-app-processors-playground-processor.mjs.map +1 -1
  190. package/fesm2022/ng-doc-app-processors-tooltip-processor.mjs +8 -22
  191. package/fesm2022/ng-doc-app-processors-tooltip-processor.mjs.map +1 -1
  192. package/fesm2022/ng-doc-app-type-controls-boolean-control.mjs +6 -8
  193. package/fesm2022/ng-doc-app-type-controls-boolean-control.mjs.map +1 -1
  194. package/fesm2022/ng-doc-app-type-controls-number-control.mjs +19 -39
  195. package/fesm2022/ng-doc-app-type-controls-number-control.mjs.map +1 -1
  196. package/fesm2022/ng-doc-app-type-controls-string-control.mjs +19 -43
  197. package/fesm2022/ng-doc-app-type-controls-string-control.mjs.map +1 -1
  198. package/fesm2022/ng-doc-app-type-controls-type-alias-control.mjs +29 -54
  199. package/fesm2022/ng-doc-app-type-controls-type-alias-control.mjs.map +1 -1
  200. package/modules/root/ng-doc.module.d.ts +1 -1
  201. package/package.json +3 -3
  202. package/pipes/extract-value/extract-value.pipe.d.ts +1 -1
  203. package/pipes/extract-value/index.d.ts +0 -1
  204. package/pipes/filter-by-text/filter-by-text.pipe.d.ts +1 -1
  205. package/pipes/filter-by-text/index.d.ts +0 -1
  206. package/pipes/sanitize-html/index.d.ts +0 -1
  207. package/pipes/sanitize-html/sanitize-html.pipe.d.ts +1 -1
  208. package/processors/blockquote-processor/blockquote-processor.directive.d.ts +1 -1
  209. package/processors/blockquote-processor/index.d.ts +0 -1
  210. package/processors/code-processor/code-processor.directive.d.ts +1 -1
  211. package/processors/code-processor/index.d.ts +0 -1
  212. package/processors/demo-pane-processor/demo-pane-processor.directive.d.ts +1 -1
  213. package/processors/demo-pane-processor/index.d.ts +0 -1
  214. package/processors/demo-processor/demo-processor.directive.d.ts +1 -1
  215. package/processors/demo-processor/index.d.ts +0 -1
  216. package/processors/icon-processor/icon-processor.directive.d.ts +1 -1
  217. package/processors/icon-processor/index.d.ts +0 -1
  218. package/processors/link-processor/index.d.ts +0 -1
  219. package/processors/link-processor/link-processor.directive.d.ts +1 -1
  220. package/processors/playground-processor/index.d.ts +0 -1
  221. package/processors/playground-processor/playground-processor.directive.d.ts +1 -1
  222. package/processors/tooltip-processor/index.d.ts +0 -1
  223. package/processors/tooltip-processor/tooltip-processor.directive.d.ts +1 -1
  224. package/processors/tooltip-processor/tooltip-wrapper.component.d.ts +1 -1
  225. package/type-controls/boolean-control/boolean-control.component.d.ts +1 -1
  226. package/type-controls/boolean-control/boolean-control.module.d.ts +3 -4
  227. package/type-controls/number-control/number-control.component.d.ts +1 -1
  228. package/type-controls/number-control/number-control.module.d.ts +5 -6
  229. package/type-controls/string-control/string-control.component.d.ts +1 -1
  230. package/type-controls/string-control/string-control.module.d.ts +5 -7
  231. package/type-controls/type-alias-control/type-alias-control.component.d.ts +1 -1
  232. package/type-controls/type-alias-control/type-alias-control.module.d.ts +5 -7
  233. package/components/breadcrumb/breadcrumb.module.d.ts +0 -10
  234. package/components/code/code.module.d.ts +0 -11
  235. package/components/demo/demo.module.d.ts +0 -12
  236. package/components/demo-displayer/demo-displayer.module.d.ts +0 -12
  237. package/components/demo-pane/demo-pane.module.d.ts +0 -11
  238. package/components/kind-icon/kind-icon.module.d.ts +0 -8
  239. package/components/link/link.module.d.ts +0 -9
  240. package/components/page-link/page-link.module.d.ts +0 -9
  241. package/components/playground/playground.module.d.ts +0 -15
  242. package/components/root/root.module.d.ts +0 -10
  243. package/components/search-result/search-result.module.d.ts +0 -11
  244. package/components/theme-toggle/theme-toggle.module.d.ts +0 -9
  245. package/components/toc/toc.module.d.ts +0 -11
  246. package/directives/code-highlighter/code-highlighter.module.d.ts +0 -7
  247. package/directives/route-active/route-active.module.d.ts +0 -8
  248. package/esm2022/components/breadcrumb/breadcrumb.module.mjs +0 -21
  249. package/esm2022/components/code/code.module.mjs +0 -45
  250. package/esm2022/components/demo/demo.module.mjs +0 -43
  251. package/esm2022/components/demo-displayer/demo-displayer.module.mjs +0 -49
  252. package/esm2022/components/demo-pane/demo-pane.module.mjs +0 -22
  253. package/esm2022/components/kind-icon/kind-icon.module.mjs +0 -19
  254. package/esm2022/components/link/link.module.mjs +0 -20
  255. package/esm2022/components/page-link/page-link.module.mjs +0 -20
  256. package/esm2022/components/playground/playground.module.mjs +0 -86
  257. package/esm2022/components/root/root.module.mjs +0 -21
  258. package/esm2022/components/search-result/search-result.module.mjs +0 -22
  259. package/esm2022/components/theme-toggle/theme-toggle.module.mjs +0 -20
  260. package/esm2022/components/toc/toc.module.mjs +0 -22
  261. package/esm2022/directives/code-highlighter/code-highlighter.module.mjs +0 -17
  262. package/esm2022/directives/route-active/route-active.module.mjs +0 -19
  263. package/esm2022/pipes/extract-value/extract-value.module.mjs +0 -17
  264. package/esm2022/pipes/filter-by-text/filter-by-text.module.mjs +0 -17
  265. package/esm2022/pipes/sanitize-html/sanitize-html.module.mjs +0 -17
  266. package/esm2022/processors/blockquote-processor/blockquote-processor.module.mjs +0 -19
  267. package/esm2022/processors/code-processor/code-processor.module.mjs +0 -19
  268. package/esm2022/processors/demo-pane-processor/demo-pane-processor.module.mjs +0 -19
  269. package/esm2022/processors/demo-processor/demo-processor.module.mjs +0 -19
  270. package/esm2022/processors/icon-processor/icon-processor.module.mjs +0 -17
  271. package/esm2022/processors/link-processor/link-processor.module.mjs +0 -17
  272. package/esm2022/processors/playground-processor/playground-processor.module.mjs +0 -19
  273. package/esm2022/processors/tooltip-processor/tooltip-processor.module.mjs +0 -20
  274. package/pipes/extract-value/extract-value.module.d.ts +0 -7
  275. package/pipes/filter-by-text/filter-by-text.module.d.ts +0 -7
  276. package/pipes/sanitize-html/sanitize-html.module.d.ts +0 -7
  277. package/processors/blockquote-processor/blockquote-processor.module.d.ts +0 -8
  278. package/processors/code-processor/code-processor.module.d.ts +0 -8
  279. package/processors/demo-pane-processor/demo-pane-processor.module.d.ts +0 -8
  280. package/processors/demo-processor/demo-processor.module.d.ts +0 -8
  281. package/processors/icon-processor/icon-processor.module.d.ts +0 -7
  282. package/processors/link-processor/link-processor.module.d.ts +0 -7
  283. package/processors/playground-processor/playground-processor.module.d.ts +0 -8
  284. package/processors/tooltip-processor/tooltip-processor.module.d.ts +0 -9
@@ -1,27 +1,23 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, ViewContainerRef, Component, ChangeDetectionStrategy, Input, ViewChild, HostBinding, EventEmitter, isDevMode, Output, ChangeDetectorRef, Injector, NgModule } from '@angular/core';
3
- import * as i3 from '@angular/forms';
4
- import { ReactiveFormsModule, FormsModule } from '@angular/forms';
5
- import * as i1$2 from '@ng-doc/app/classes/root-page';
2
+ import { Directive, ChangeDetectorRef, ViewContainerRef, Injector, Component, ChangeDetectionStrategy, Input, ViewChild, HostBinding, EventEmitter, isDevMode, Output } from '@angular/core';
3
+ import { AsyncPipe, NgIf, NgFor, KeyValuePipe } from '@angular/common';
4
+ import * as i2 from '@angular/forms';
5
+ import { FormsModule } from '@angular/forms';
6
+ import * as i1$1 from '@ng-doc/app/classes/root-page';
6
7
  import { extractValue } from '@ng-doc/core/helpers/extract-value';
7
- import { objectKeys as objectKeys$1 } from '@ng-doc/core/helpers/object-keys';
8
- import * as i2 from '@angular/common';
9
- import { CommonModule } from '@angular/common';
10
- import * as i1 from '@angular/cdk/layout';
11
- import { Breakpoints } from '@angular/cdk/layout';
12
- import { isPlaygroundProperty, getTokenForType, getPlaygroundDemoToken } from '@ng-doc/app/helpers';
13
- import { objectKeys, isPresent, extractValueOrThrow } from '@ng-doc/core';
14
- import { pluck, takeUntil } from 'rxjs/operators';
15
- import * as i4 from '@ng-doc/ui-kit';
16
- import { NgDocLabelModule, NgDocTooltipModule, NgDocAsArrayModule, NgDocButtonIconModule, NgDocIconModule, NgDocTextModule, NgDocCheckboxModule, NgDocButtonModule, NgDocBindModule, NgDocRunModule } from '@ng-doc/ui-kit';
8
+ import { objectKeys } from '@ng-doc/core/helpers/object-keys';
9
+ import { NgDocLabelComponent, NgDocTooltipDirective, NgDocTextComponent, NgDocButtonComponent, NgDocCheckboxComponent, NgDocIconComponent, NgDocTextRightDirective, NgDocBindPipe, NgDocRunPipe, NgDocAsArrayPipe } from '@ng-doc/ui-kit';
17
10
  import { __decorate, __metadata } from 'tslib';
11
+ import { NgDocDemoDisplayerComponent } from '@ng-doc/app/components/demo-displayer';
12
+ import { getPlaygroundDemoToken, isPlaygroundProperty, getTokenForType } from '@ng-doc/app/helpers';
18
13
  import { buildPlaygroundDemoTemplate } from '@ng-doc/core/helpers/build-playground-demo-template';
19
14
  import { formatHtml } from '@ng-doc/core/helpers/format-html';
20
15
  import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
21
16
  import { of, Subject } from 'rxjs';
22
- import * as i1$1 from '@ng-doc/app/components/demo-displayer';
23
- import { NgDocDemoDisplayerModule } from '@ng-doc/app/components/demo-displayer';
24
- import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
17
+ import { takeUntil, pluck } from 'rxjs/operators';
18
+ import * as i1 from '@angular/cdk/layout';
19
+ import { Breakpoints } from '@angular/cdk/layout';
20
+ import { objectKeys as objectKeys$1, isPresent, extractValueOrThrow } from '@ng-doc/core';
25
21
 
26
22
  /**
27
23
  * Base class for playgrounds components.
@@ -39,6 +35,106 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
39
35
  type: Directive
40
36
  }] });
41
37
 
38
+ let NgDocPlaygroundDemoComponent = class NgDocPlaygroundDemoComponent {
39
+ constructor(injector) {
40
+ this.injector = injector;
41
+ this.id = '';
42
+ this.selector = '';
43
+ this.recreateDemo = false;
44
+ this.code = of('');
45
+ this.unsubscribe$ = new Subject();
46
+ }
47
+ ngOnChanges({ form, id }) {
48
+ if (form && id) {
49
+ this.unsubscribe$.next();
50
+ const demoInjector = getPlaygroundDemoToken(this.id);
51
+ if (demoInjector) {
52
+ const demos = this.injector.get(demoInjector, []);
53
+ this.playgroundDemo = demos.find((demo) => demo.selector === this.selector);
54
+ }
55
+ this.updateDemo();
56
+ this.form?.valueChanges
57
+ .pipe(takeUntil(this.unsubscribe$), untilDestroyed(this))
58
+ .subscribe((data) => this.updateDemo(data));
59
+ }
60
+ }
61
+ updateDemo(data) {
62
+ if (this.recreateDemo || !this.demoRef) {
63
+ this.renderDemo();
64
+ }
65
+ if (data) {
66
+ Object.assign(this.demoRef?.instance.playground ?? {}, data.properties);
67
+ Object.assign(this.demoRef?.instance.content ?? {}, data.content);
68
+ this.demoRef?.instance?.viewContainerRef?.injector.get(ChangeDetectorRef)?.markForCheck();
69
+ }
70
+ this.updateCodeView();
71
+ }
72
+ renderDemo() {
73
+ if (this.playgroundDemo) {
74
+ this.demoRef?.destroy();
75
+ if (this.playgroundDemo) {
76
+ this.demoRef = this.demoOutlet?.createComponent(this.playgroundDemo);
77
+ }
78
+ this.demoRef?.changeDetectorRef.markForCheck();
79
+ }
80
+ }
81
+ updateCodeView() {
82
+ const template = buildPlaygroundDemoTemplate(this.configuration?.template ?? '', this.selector, this.getActiveContent(), this.getActiveInputs());
83
+ this.code = formatHtml(template);
84
+ }
85
+ getActiveContent() {
86
+ const formData = this.form?.controls.content.value ?? {};
87
+ return objectKeys(formData).reduce((result, key) => {
88
+ result[key] = formData[key] ? this.configuration?.content?.[key].template ?? '' : '';
89
+ return result;
90
+ }, {});
91
+ }
92
+ getActiveInputs() {
93
+ const formData = this.form?.controls.properties.value ?? {};
94
+ return objectKeys(formData).reduce((result, key) => {
95
+ const property = this.properties?.[key];
96
+ if (property) {
97
+ const value = formData[key];
98
+ const isString = typeof value === 'string';
99
+ const inputValue = isString ? `'${value}'` : `${JSON.stringify(value)}`;
100
+ if ((property.default ?? '') !== inputValue) {
101
+ result[property.name] = inputValue;
102
+ }
103
+ }
104
+ return result;
105
+ }, {});
106
+ }
107
+ ngOnDestroy() {
108
+ this.unsubscribe$.next();
109
+ this.unsubscribe$.complete();
110
+ }
111
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocPlaygroundDemoComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
112
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocPlaygroundDemoComponent, isStandalone: true, selector: "ng-doc-playground-demo", inputs: { id: "id", selector: "selector", configuration: "configuration", properties: "properties", recreateDemo: "recreateDemo", form: "form" }, viewQueries: [{ propertyName: "demoOutlet", first: true, predicate: ["demoOutlet"], descendants: true, read: ViewContainerRef, static: true }], usesOnChanges: true, ngImport: i0, template: "<ng-doc-demo-displayer [code]=\"(code | async) ?? ''\" [border]=\"false\" language=\"html\">\n\t<ng-container #demoOutlet></ng-container>\n</ng-doc-demo-displayer>\n", styles: [":host{display:block;border:var(--ng-doc-demo-displayer-border);border-radius:var(--ng-doc-demo-displayer-border-radius);overflow:hidden}:host:not(:last-child){border-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}:host:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}\n"], dependencies: [{ kind: "component", type: NgDocDemoDisplayerComponent, selector: "ng-doc-demo-displayer", inputs: ["codeContent", "code", "language", "container", "border", "expanded"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
113
+ };
114
+ NgDocPlaygroundDemoComponent = __decorate([
115
+ UntilDestroy(),
116
+ __metadata("design:paramtypes", [Injector])
117
+ ], NgDocPlaygroundDemoComponent);
118
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocPlaygroundDemoComponent, decorators: [{
119
+ type: Component,
120
+ args: [{ selector: 'ng-doc-playground-demo', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgDocDemoDisplayerComponent, AsyncPipe], template: "<ng-doc-demo-displayer [code]=\"(code | async) ?? ''\" [border]=\"false\" language=\"html\">\n\t<ng-container #demoOutlet></ng-container>\n</ng-doc-demo-displayer>\n", styles: [":host{display:block;border:var(--ng-doc-demo-displayer-border);border-radius:var(--ng-doc-demo-displayer-border-radius);overflow:hidden}:host:not(:last-child){border-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}:host:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}\n"] }]
121
+ }], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { id: [{
122
+ type: Input
123
+ }], selector: [{
124
+ type: Input
125
+ }], configuration: [{
126
+ type: Input
127
+ }], properties: [{
128
+ type: Input
129
+ }], recreateDemo: [{
130
+ type: Input
131
+ }], form: [{
132
+ type: Input
133
+ }], demoOutlet: [{
134
+ type: ViewChild,
135
+ args: ['demoOutlet', { static: true, read: ViewContainerRef }]
136
+ }] } });
137
+
42
138
  class NgDocPlaygroundPropertyComponent {
43
139
  constructor() {
44
140
  this.name = '';
@@ -74,11 +170,11 @@ class NgDocPlaygroundPropertyComponent {
74
170
  return this.property && isPlaygroundProperty(this.property) ? this.property.description ?? '' : '';
75
171
  }
76
172
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocPlaygroundPropertyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
77
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocPlaygroundPropertyComponent, selector: "ng-doc-playground-property", inputs: { name: "name", property: "property", typeControl: "typeControl", control: "control" }, host: { properties: { "attr.data-has-property-control": "this.hasPropertyControl" } }, viewQueries: [{ propertyName: "propertyOutlet", first: true, predicate: ["propertyOutlet"], descendants: true, read: ViewContainerRef, static: true }], usesOnChanges: true, ngImport: i0, template: "<label [ng-doc-label]=\"option?.hideLabel ? '' : labelContent\">\n\t<ng-template #labelContent>\n\t\t<span [ngDocTooltip]=\"tooltipContent\" [canOpen]=\"!!tooltipContent\"\n\t\t\t [positions]=\"['left-center', 'top-right', 'bottom-right']\">{{name}}</span>\n\t</ng-template>\n\t<ng-container #propertyOutlet></ng-container>\n</label>\n", styles: [":host{display:block}:host[data-has-property-control=false]{display:none}\n"], dependencies: [{ kind: "component", type: i4.NgDocLabelComponent, selector: "label[ng-doc-label]", inputs: ["ng-doc-label", "align"] }, { kind: "directive", type: i4.NgDocTooltipDirective, selector: "[ngDocTooltip]", inputs: ["ngDocTooltip", "delay", "displayOrigin", "pointerOrigin", "positions", "canOpen", "panelClass", "minHeight", "maxHeight", "height", "minWidth", "maxWidth", "width"], outputs: ["beforeOpen", "afterOpen", "beforeClose", "afterClose"], exportAs: ["ngDocTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
173
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocPlaygroundPropertyComponent, isStandalone: true, selector: "ng-doc-playground-property", inputs: { name: "name", property: "property", typeControl: "typeControl", control: "control" }, host: { properties: { "attr.data-has-property-control": "this.hasPropertyControl" } }, viewQueries: [{ propertyName: "propertyOutlet", first: true, predicate: ["propertyOutlet"], descendants: true, read: ViewContainerRef, static: true }], usesOnChanges: true, ngImport: i0, template: "<label [ng-doc-label]=\"option?.hideLabel ? '' : labelContent\">\n\t<ng-template #labelContent>\n\t\t<span\n\t\t\t[ngDocTooltip]=\"tooltipContent\"\n\t\t\t[canOpen]=\"!!tooltipContent\"\n\t\t\t[positions]=\"['left-center', 'top-right', 'bottom-right']\"\n\t\t\t>{{ name }}</span\n\t\t>\n\t</ng-template>\n\t<ng-container #propertyOutlet></ng-container>\n</label>\n", styles: [":host{display:block}:host[data-has-property-control=false]{display:none}\n"], dependencies: [{ kind: "component", type: NgDocLabelComponent, selector: "label[ng-doc-label]", inputs: ["ng-doc-label", "align"] }, { kind: "directive", type: NgDocTooltipDirective, selector: "[ngDocTooltip]", inputs: ["ngDocTooltip", "delay", "displayOrigin", "pointerOrigin", "positions", "canOpen", "panelClass", "minHeight", "maxHeight", "height", "minWidth", "maxWidth", "width"], outputs: ["beforeOpen", "afterOpen", "beforeClose", "afterClose"], exportAs: ["ngDocTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
78
174
  }
79
175
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocPlaygroundPropertyComponent, decorators: [{
80
176
  type: Component,
81
- args: [{ selector: 'ng-doc-playground-property', changeDetection: ChangeDetectionStrategy.OnPush, template: "<label [ng-doc-label]=\"option?.hideLabel ? '' : labelContent\">\n\t<ng-template #labelContent>\n\t\t<span [ngDocTooltip]=\"tooltipContent\" [canOpen]=\"!!tooltipContent\"\n\t\t\t [positions]=\"['left-center', 'top-right', 'bottom-right']\">{{name}}</span>\n\t</ng-template>\n\t<ng-container #propertyOutlet></ng-container>\n</label>\n", styles: [":host{display:block}:host[data-has-property-control=false]{display:none}\n"] }]
177
+ args: [{ selector: 'ng-doc-playground-property', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgDocLabelComponent, NgDocTooltipDirective], template: "<label [ng-doc-label]=\"option?.hideLabel ? '' : labelContent\">\n\t<ng-template #labelContent>\n\t\t<span\n\t\t\t[ngDocTooltip]=\"tooltipContent\"\n\t\t\t[canOpen]=\"!!tooltipContent\"\n\t\t\t[positions]=\"['left-center', 'top-right', 'bottom-right']\"\n\t\t\t>{{ name }}</span\n\t\t>\n\t</ng-template>\n\t<ng-container #propertyOutlet></ng-container>\n</label>\n", styles: [":host{display:block}:host[data-has-property-control=false]{display:none}\n"] }]
82
178
  }], propDecorators: { name: [{
83
179
  type: Input
84
180
  }], property: [{
@@ -109,7 +205,7 @@ class NgDocPlaygroundPropertiesComponent {
109
205
  }
110
206
  ngOnChanges({ properties }) {
111
207
  if (properties && this.properties) {
112
- this.propertyControls = objectKeys(this.properties)
208
+ this.propertyControls = objectKeys$1(this.properties)
113
209
  .map((key) => {
114
210
  if (this.properties) {
115
211
  const property = this.properties[key];
@@ -175,11 +271,26 @@ class NgDocPlaygroundPropertiesComponent {
175
271
  return undefined;
176
272
  }
177
273
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocPlaygroundPropertiesComponent, deps: [{ token: i1.BreakpointObserver }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
178
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocPlaygroundPropertiesComponent, selector: "ng-doc-playground-properties", inputs: { form: "form", properties: "properties", dynamicContent: "dynamicContent", recreateDemo: "recreateDemo" }, outputs: { recreateDemoChange: "recreateDemoChange", resetForm: "resetForm" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"ng-doc-playground-properties-wrapper\" [class.vertical]=\"observer | async\">\n\t<div class=\"ng-doc-playground-demos\">\n\t\t<ng-content></ng-content>\n\t</div>\n\t<div class=\"ng-doc-playground-properties\">\n\t\t<div class=\"ng-doc-playground-header\">\n\t\t\t<h4 ng-doc-text>Playground</h4>\n\t\t\t<button ng-doc-button color=\"red\" (click)=\"resetForm.emit()\">Reset</button>\n\t\t</div>\n\t\t<div class=\"ng-doc-playground-setting\">\n\t\t\t<ng-doc-checkbox [(ngModel)]=\"recreateDemo\" (ngModelChange)=\"recreateDemoChange.emit($event)\">\n\t\t\t\t<span\n\t\t\t\t\tng-doc-text\n\t\t\t\t\t[ngDocTooltip]=\"'Recreates demo everytime\\none of the input has changed'\"\n\t\t\t\t\t[positions]=\"['bottom-right', 'left-center']\"\n\t\t\t\t>\n\t\t\t\t\tRecreate\n\t\t\t\t\t<ng-doc-icon icon=\"info\" ngDocTextRight></ng-doc-icon>\n\t\t\t\t</span>\n\t\t\t</ng-doc-checkbox>\n\t\t</div>\n\t\t<div class=\"ng-doc-playground-divider\"></div>\n\t\t<ng-container *ngIf=\"propertyControls.length\">\n\t\t\t<h5 class=\"ng-doc-title\" ng-doc-text>Settings</h5>\n\t\t\t<ng-doc-playground-property\n\t\t\t\t*ngFor=\"let propertyControl of propertyControls\"\n\t\t\t\t[name]=\"propertyControl.property.name\"\n\t\t\t\t[property]=\"propertyControl.property\"\n\t\t\t\t[typeControl]=\"propertyControl.typeControl\"\n\t\t\t\t[control]=\"getFormControl | ngDocBind: this | ngDocRun: 'properties': propertyControl.propertyName\"\n\t\t\t>\n\t\t\t</ng-doc-playground-property>\n\t\t</ng-container>\n\n\t\t<ng-container *ngIf=\"(dynamicContent | keyvalue)?.length\">\n\t\t\t<h5 class=\"ng-doc-title\" ng-doc-text>Content</h5>\n\t\t\t<ng-doc-playground-property\n\t\t\t\t*ngFor=\"let content of dynamicContent | keyvalue\"\n\t\t\t\t[name]=\"content.value.label\"\n\t\t\t\t[property]=\"content.value\"\n\t\t\t\t[typeControl]=\"contentTypeControl\"\n\t\t\t\t[control]=\"getFormControl | ngDocBind: this | ngDocRun: 'content': content.key\"\n\t\t\t>\n\t\t\t</ng-doc-playground-property>\n\t\t</ng-container>\n\t</div>\n</div>\n", styles: [":host .ng-doc-playground-properties-wrapper{position:relative;display:flex}:host .ng-doc-playground-properties-wrapper.vertical{flex-direction:column}:host .ng-doc-playground-properties-wrapper.vertical .ng-doc-playground-demos{margin-right:0;margin-bottom:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-playground-properties-wrapper.vertical .ng-doc-playground-properties{width:100%}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-demos{display:flex;flex-direction:column;width:100%;overflow:hidden;margin-right:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties{flex-shrink:0;width:300px;padding:calc(var(--ng-doc-base-gutter) * 2) calc(var(--ng-doc-base-gutter) * 3);background-color:var(--ng-doc-base-1);border-radius:var(--ng-doc-base-gutter)}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties ng-doc-playground-property:not(:last-child){margin-bottom:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties .ng-doc-playground-controls{display:flex;justify-content:flex-end}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties .ng-doc-playground-header{display:flex;align-items:center;justify-content:space-between;height:40px;margin-bottom:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties .ng-doc-playground-header h4{margin:0}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties .ng-doc-playground-setting{display:flex;flex-direction:column}:host .ng-doc-playground-properties-wrapper .ng-doc-title{margin-top:0;margin-bottom:calc(var(--ng-doc-base-gutter) + var(--ng-doc-base-gutter) / 2)}:host .ng-doc-playground-divider{margin:calc(var(--ng-doc-base-gutter) * 2) 0;height:1px;background-color:var(--ng-doc-base-2)}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgDocTooltipDirective, selector: "[ngDocTooltip]", inputs: ["ngDocTooltip", "delay", "displayOrigin", "pointerOrigin", "positions", "canOpen", "panelClass", "minHeight", "maxHeight", "height", "minWidth", "maxWidth", "width"], outputs: ["beforeOpen", "afterOpen", "beforeClose", "afterClose"], exportAs: ["ngDocTooltip"] }, { kind: "component", type: i4.NgDocIconComponent, selector: "ng-doc-icon", inputs: ["icon", "size"] }, { kind: "component", type: i4.NgDocTextComponent, selector: "[ng-doc-text]", inputs: ["size", "color", "align", "absoluteContent"] }, { kind: "directive", type: i4.NgDocTextRightDirective, selector: "[ngDocTextRight]" }, { kind: "component", type: i4.NgDocCheckboxComponent, selector: "ng-doc-checkbox", inputs: ["color"] }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4.NgDocButtonComponent, selector: "button[ng-doc-button], a[ng-doc-button], button[ng-doc-button-flat], a[ng-doc-button-flat], button[ng-doc-button-text], a[ng-doc-button-text]", inputs: ["size", "color", "rounded"] }, { kind: "component", type: NgDocPlaygroundPropertyComponent, selector: "ng-doc-playground-property", inputs: ["name", "property", "typeControl", "control"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: i4.NgDocBindPipe, name: "ngDocBind" }, { kind: "pipe", type: i4.NgDocRunPipe, name: "ngDocRun" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
274
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocPlaygroundPropertiesComponent, isStandalone: true, selector: "ng-doc-playground-properties", inputs: { form: "form", properties: "properties", dynamicContent: "dynamicContent", recreateDemo: "recreateDemo" }, outputs: { recreateDemoChange: "recreateDemoChange", resetForm: "resetForm" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"ng-doc-playground-properties-wrapper\" [class.vertical]=\"observer | async\">\n\t<div class=\"ng-doc-playground-demos\">\n\t\t<ng-content></ng-content>\n\t</div>\n\t<div class=\"ng-doc-playground-properties\">\n\t\t<div class=\"ng-doc-playground-header\">\n\t\t\t<h4 ng-doc-text>Playground</h4>\n\t\t\t<button ng-doc-button color=\"red\" (click)=\"resetForm.emit()\">Reset</button>\n\t\t</div>\n\t\t<div class=\"ng-doc-playground-setting\">\n\t\t\t<ng-doc-checkbox [(ngModel)]=\"recreateDemo\" (ngModelChange)=\"recreateDemoChange.emit($event)\">\n\t\t\t\t<span\n\t\t\t\t\tng-doc-text\n\t\t\t\t\t[ngDocTooltip]=\"'Recreates demo everytime\\none of the input has changed'\"\n\t\t\t\t\t[positions]=\"['bottom-right', 'left-center']\"\n\t\t\t\t>\n\t\t\t\t\tRecreate\n\t\t\t\t\t<ng-doc-icon icon=\"info\" ngDocTextRight></ng-doc-icon>\n\t\t\t\t</span>\n\t\t\t</ng-doc-checkbox>\n\t\t</div>\n\t\t<div class=\"ng-doc-playground-divider\"></div>\n\t\t<ng-container *ngIf=\"propertyControls.length\">\n\t\t\t<h5 class=\"ng-doc-title\" ng-doc-text>Settings</h5>\n\t\t\t<ng-doc-playground-property\n\t\t\t\t*ngFor=\"let propertyControl of propertyControls\"\n\t\t\t\t[name]=\"propertyControl.property.name\"\n\t\t\t\t[property]=\"propertyControl.property\"\n\t\t\t\t[typeControl]=\"propertyControl.typeControl\"\n\t\t\t\t[control]=\"getFormControl | ngDocBind: this | ngDocRun: 'properties': propertyControl.propertyName\"\n\t\t\t>\n\t\t\t</ng-doc-playground-property>\n\t\t</ng-container>\n\n\t\t<ng-container *ngIf=\"(dynamicContent | keyvalue)?.length\">\n\t\t\t<h5 class=\"ng-doc-title\" ng-doc-text>Content</h5>\n\t\t\t<ng-doc-playground-property\n\t\t\t\t*ngFor=\"let content of dynamicContent | keyvalue\"\n\t\t\t\t[name]=\"content.value.label\"\n\t\t\t\t[property]=\"content.value\"\n\t\t\t\t[typeControl]=\"contentTypeControl\"\n\t\t\t\t[control]=\"getFormControl | ngDocBind: this | ngDocRun: 'content': content.key\"\n\t\t\t>\n\t\t\t</ng-doc-playground-property>\n\t\t</ng-container>\n\t</div>\n</div>\n", styles: [":host .ng-doc-playground-properties-wrapper{position:relative;display:flex}:host .ng-doc-playground-properties-wrapper.vertical{flex-direction:column}:host .ng-doc-playground-properties-wrapper.vertical .ng-doc-playground-demos{margin-right:0;margin-bottom:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-playground-properties-wrapper.vertical .ng-doc-playground-properties{width:100%}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-demos{display:flex;flex-direction:column;width:100%;overflow:hidden;margin-right:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties{flex-shrink:0;width:300px;padding:calc(var(--ng-doc-base-gutter) * 2) calc(var(--ng-doc-base-gutter) * 3);background-color:var(--ng-doc-base-1);border-radius:var(--ng-doc-base-gutter)}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties ng-doc-playground-property:not(:last-child){margin-bottom:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties .ng-doc-playground-controls{display:flex;justify-content:flex-end}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties .ng-doc-playground-header{display:flex;align-items:center;justify-content:space-between;height:40px;margin-bottom:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties .ng-doc-playground-header h4{margin:0}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties .ng-doc-playground-setting{display:flex;flex-direction:column}:host .ng-doc-playground-properties-wrapper .ng-doc-title{margin-top:0;margin-bottom:calc(var(--ng-doc-base-gutter) + var(--ng-doc-base-gutter) / 2)}:host .ng-doc-playground-divider{margin:calc(var(--ng-doc-base-gutter) * 2) 0;height:1px;background-color:var(--ng-doc-base-2)}\n"], dependencies: [{ kind: "component", type: NgDocTextComponent, selector: "[ng-doc-text]", inputs: ["size", "color", "align", "absoluteContent"] }, { kind: "component", type: NgDocButtonComponent, selector: "button[ng-doc-button], a[ng-doc-button], button[ng-doc-button-flat], a[ng-doc-button-flat], button[ng-doc-button-text], a[ng-doc-button-text]", inputs: ["size", "color", "rounded"] }, { kind: "component", type: NgDocCheckboxComponent, selector: "ng-doc-checkbox", inputs: ["color"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgDocTooltipDirective, selector: "[ngDocTooltip]", inputs: ["ngDocTooltip", "delay", "displayOrigin", "pointerOrigin", "positions", "canOpen", "panelClass", "minHeight", "maxHeight", "height", "minWidth", "maxWidth", "width"], outputs: ["beforeOpen", "afterOpen", "beforeClose", "afterClose"], exportAs: ["ngDocTooltip"] }, { kind: "component", type: NgDocIconComponent, selector: "ng-doc-icon", inputs: ["icon", "size"] }, { kind: "directive", type: NgDocTextRightDirective, selector: "[ngDocTextRight]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: NgDocPlaygroundPropertyComponent, selector: "ng-doc-playground-property", inputs: ["name", "property", "typeControl", "control"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: NgDocBindPipe, name: "ngDocBind" }, { kind: "pipe", type: NgDocRunPipe, name: "ngDocRun" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
179
275
  }
180
276
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocPlaygroundPropertiesComponent, decorators: [{
181
277
  type: Component,
182
- args: [{ selector: 'ng-doc-playground-properties', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ng-doc-playground-properties-wrapper\" [class.vertical]=\"observer | async\">\n\t<div class=\"ng-doc-playground-demos\">\n\t\t<ng-content></ng-content>\n\t</div>\n\t<div class=\"ng-doc-playground-properties\">\n\t\t<div class=\"ng-doc-playground-header\">\n\t\t\t<h4 ng-doc-text>Playground</h4>\n\t\t\t<button ng-doc-button color=\"red\" (click)=\"resetForm.emit()\">Reset</button>\n\t\t</div>\n\t\t<div class=\"ng-doc-playground-setting\">\n\t\t\t<ng-doc-checkbox [(ngModel)]=\"recreateDemo\" (ngModelChange)=\"recreateDemoChange.emit($event)\">\n\t\t\t\t<span\n\t\t\t\t\tng-doc-text\n\t\t\t\t\t[ngDocTooltip]=\"'Recreates demo everytime\\none of the input has changed'\"\n\t\t\t\t\t[positions]=\"['bottom-right', 'left-center']\"\n\t\t\t\t>\n\t\t\t\t\tRecreate\n\t\t\t\t\t<ng-doc-icon icon=\"info\" ngDocTextRight></ng-doc-icon>\n\t\t\t\t</span>\n\t\t\t</ng-doc-checkbox>\n\t\t</div>\n\t\t<div class=\"ng-doc-playground-divider\"></div>\n\t\t<ng-container *ngIf=\"propertyControls.length\">\n\t\t\t<h5 class=\"ng-doc-title\" ng-doc-text>Settings</h5>\n\t\t\t<ng-doc-playground-property\n\t\t\t\t*ngFor=\"let propertyControl of propertyControls\"\n\t\t\t\t[name]=\"propertyControl.property.name\"\n\t\t\t\t[property]=\"propertyControl.property\"\n\t\t\t\t[typeControl]=\"propertyControl.typeControl\"\n\t\t\t\t[control]=\"getFormControl | ngDocBind: this | ngDocRun: 'properties': propertyControl.propertyName\"\n\t\t\t>\n\t\t\t</ng-doc-playground-property>\n\t\t</ng-container>\n\n\t\t<ng-container *ngIf=\"(dynamicContent | keyvalue)?.length\">\n\t\t\t<h5 class=\"ng-doc-title\" ng-doc-text>Content</h5>\n\t\t\t<ng-doc-playground-property\n\t\t\t\t*ngFor=\"let content of dynamicContent | keyvalue\"\n\t\t\t\t[name]=\"content.value.label\"\n\t\t\t\t[property]=\"content.value\"\n\t\t\t\t[typeControl]=\"contentTypeControl\"\n\t\t\t\t[control]=\"getFormControl | ngDocBind: this | ngDocRun: 'content': content.key\"\n\t\t\t>\n\t\t\t</ng-doc-playground-property>\n\t\t</ng-container>\n\t</div>\n</div>\n", styles: [":host .ng-doc-playground-properties-wrapper{position:relative;display:flex}:host .ng-doc-playground-properties-wrapper.vertical{flex-direction:column}:host .ng-doc-playground-properties-wrapper.vertical .ng-doc-playground-demos{margin-right:0;margin-bottom:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-playground-properties-wrapper.vertical .ng-doc-playground-properties{width:100%}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-demos{display:flex;flex-direction:column;width:100%;overflow:hidden;margin-right:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties{flex-shrink:0;width:300px;padding:calc(var(--ng-doc-base-gutter) * 2) calc(var(--ng-doc-base-gutter) * 3);background-color:var(--ng-doc-base-1);border-radius:var(--ng-doc-base-gutter)}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties ng-doc-playground-property:not(:last-child){margin-bottom:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties .ng-doc-playground-controls{display:flex;justify-content:flex-end}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties .ng-doc-playground-header{display:flex;align-items:center;justify-content:space-between;height:40px;margin-bottom:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties .ng-doc-playground-header h4{margin:0}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties .ng-doc-playground-setting{display:flex;flex-direction:column}:host .ng-doc-playground-properties-wrapper .ng-doc-title{margin-top:0;margin-bottom:calc(var(--ng-doc-base-gutter) + var(--ng-doc-base-gutter) / 2)}:host .ng-doc-playground-divider{margin:calc(var(--ng-doc-base-gutter) * 2) 0;height:1px;background-color:var(--ng-doc-base-2)}\n"] }]
278
+ args: [{ selector: 'ng-doc-playground-properties', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
279
+ NgDocTextComponent,
280
+ NgDocButtonComponent,
281
+ NgDocCheckboxComponent,
282
+ FormsModule,
283
+ NgDocTooltipDirective,
284
+ NgDocIconComponent,
285
+ NgDocTextRightDirective,
286
+ NgIf,
287
+ NgFor,
288
+ NgDocPlaygroundPropertyComponent,
289
+ AsyncPipe,
290
+ KeyValuePipe,
291
+ NgDocBindPipe,
292
+ NgDocRunPipe,
293
+ ], template: "<div class=\"ng-doc-playground-properties-wrapper\" [class.vertical]=\"observer | async\">\n\t<div class=\"ng-doc-playground-demos\">\n\t\t<ng-content></ng-content>\n\t</div>\n\t<div class=\"ng-doc-playground-properties\">\n\t\t<div class=\"ng-doc-playground-header\">\n\t\t\t<h4 ng-doc-text>Playground</h4>\n\t\t\t<button ng-doc-button color=\"red\" (click)=\"resetForm.emit()\">Reset</button>\n\t\t</div>\n\t\t<div class=\"ng-doc-playground-setting\">\n\t\t\t<ng-doc-checkbox [(ngModel)]=\"recreateDemo\" (ngModelChange)=\"recreateDemoChange.emit($event)\">\n\t\t\t\t<span\n\t\t\t\t\tng-doc-text\n\t\t\t\t\t[ngDocTooltip]=\"'Recreates demo everytime\\none of the input has changed'\"\n\t\t\t\t\t[positions]=\"['bottom-right', 'left-center']\"\n\t\t\t\t>\n\t\t\t\t\tRecreate\n\t\t\t\t\t<ng-doc-icon icon=\"info\" ngDocTextRight></ng-doc-icon>\n\t\t\t\t</span>\n\t\t\t</ng-doc-checkbox>\n\t\t</div>\n\t\t<div class=\"ng-doc-playground-divider\"></div>\n\t\t<ng-container *ngIf=\"propertyControls.length\">\n\t\t\t<h5 class=\"ng-doc-title\" ng-doc-text>Settings</h5>\n\t\t\t<ng-doc-playground-property\n\t\t\t\t*ngFor=\"let propertyControl of propertyControls\"\n\t\t\t\t[name]=\"propertyControl.property.name\"\n\t\t\t\t[property]=\"propertyControl.property\"\n\t\t\t\t[typeControl]=\"propertyControl.typeControl\"\n\t\t\t\t[control]=\"getFormControl | ngDocBind: this | ngDocRun: 'properties': propertyControl.propertyName\"\n\t\t\t>\n\t\t\t</ng-doc-playground-property>\n\t\t</ng-container>\n\n\t\t<ng-container *ngIf=\"(dynamicContent | keyvalue)?.length\">\n\t\t\t<h5 class=\"ng-doc-title\" ng-doc-text>Content</h5>\n\t\t\t<ng-doc-playground-property\n\t\t\t\t*ngFor=\"let content of dynamicContent | keyvalue\"\n\t\t\t\t[name]=\"content.value.label\"\n\t\t\t\t[property]=\"content.value\"\n\t\t\t\t[typeControl]=\"contentTypeControl\"\n\t\t\t\t[control]=\"getFormControl | ngDocBind: this | ngDocRun: 'content': content.key\"\n\t\t\t>\n\t\t\t</ng-doc-playground-property>\n\t\t</ng-container>\n\t</div>\n</div>\n", styles: [":host .ng-doc-playground-properties-wrapper{position:relative;display:flex}:host .ng-doc-playground-properties-wrapper.vertical{flex-direction:column}:host .ng-doc-playground-properties-wrapper.vertical .ng-doc-playground-demos{margin-right:0;margin-bottom:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-playground-properties-wrapper.vertical .ng-doc-playground-properties{width:100%}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-demos{display:flex;flex-direction:column;width:100%;overflow:hidden;margin-right:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties{flex-shrink:0;width:300px;padding:calc(var(--ng-doc-base-gutter) * 2) calc(var(--ng-doc-base-gutter) * 3);background-color:var(--ng-doc-base-1);border-radius:var(--ng-doc-base-gutter)}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties ng-doc-playground-property:not(:last-child){margin-bottom:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties .ng-doc-playground-controls{display:flex;justify-content:flex-end}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties .ng-doc-playground-header{display:flex;align-items:center;justify-content:space-between;height:40px;margin-bottom:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties .ng-doc-playground-header h4{margin:0}:host .ng-doc-playground-properties-wrapper .ng-doc-playground-properties .ng-doc-playground-setting{display:flex;flex-direction:column}:host .ng-doc-playground-properties-wrapper .ng-doc-title{margin-top:0;margin-bottom:calc(var(--ng-doc-base-gutter) + var(--ng-doc-base-gutter) / 2)}:host .ng-doc-playground-divider{margin:calc(var(--ng-doc-base-gutter) * 2) 0;height:1px;background-color:var(--ng-doc-base-2)}\n"] }]
183
294
  }], ctorParameters: function () { return [{ type: i1.BreakpointObserver }, { type: i0.Injector }]; }, propDecorators: { form: [{
184
295
  type: Input
185
296
  }], properties: [{
@@ -194,106 +305,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
194
305
  type: Output
195
306
  }] } });
196
307
 
197
- let NgDocPlaygroundDemoComponent = class NgDocPlaygroundDemoComponent {
198
- constructor(injector) {
199
- this.injector = injector;
200
- this.id = '';
201
- this.selector = '';
202
- this.recreateDemo = false;
203
- this.code = of('');
204
- this.unsubscribe$ = new Subject();
205
- }
206
- ngOnChanges({ form, id }) {
207
- if (form && id) {
208
- this.unsubscribe$.next();
209
- const demoInjector = getPlaygroundDemoToken(this.id);
210
- if (demoInjector) {
211
- const demos = this.injector.get(demoInjector, []);
212
- this.playgroundDemo = demos.find((demo) => demo.selector === this.selector);
213
- }
214
- this.updateDemo();
215
- this.form?.valueChanges
216
- .pipe(takeUntil(this.unsubscribe$), untilDestroyed(this))
217
- .subscribe((data) => this.updateDemo(data));
218
- }
219
- }
220
- updateDemo(data) {
221
- if (this.recreateDemo || !this.demoRef) {
222
- this.renderDemo();
223
- }
224
- if (data) {
225
- Object.assign(this.demoRef?.instance.playground ?? {}, data.properties);
226
- Object.assign(this.demoRef?.instance.content ?? {}, data.content);
227
- this.demoRef?.instance?.viewContainerRef?.injector.get(ChangeDetectorRef)?.markForCheck();
228
- }
229
- this.updateCodeView();
230
- }
231
- renderDemo() {
232
- if (this.playgroundDemo) {
233
- this.demoRef?.destroy();
234
- if (this.playgroundDemo) {
235
- this.demoRef = this.demoOutlet?.createComponent(this.playgroundDemo);
236
- }
237
- this.demoRef?.changeDetectorRef.markForCheck();
238
- }
239
- }
240
- updateCodeView() {
241
- const template = buildPlaygroundDemoTemplate(this.configuration?.template ?? '', this.selector, this.getActiveContent(), this.getActiveInputs());
242
- this.code = formatHtml(template);
243
- }
244
- getActiveContent() {
245
- const formData = this.form?.controls.content.value ?? {};
246
- return objectKeys$1(formData).reduce((result, key) => {
247
- result[key] = formData[key] ? this.configuration?.content?.[key].template ?? '' : '';
248
- return result;
249
- }, {});
250
- }
251
- getActiveInputs() {
252
- const formData = this.form?.controls.properties.value ?? {};
253
- return objectKeys$1(formData).reduce((result, key) => {
254
- const property = this.properties?.[key];
255
- if (property) {
256
- const value = formData[key];
257
- const isString = typeof value === 'string';
258
- const inputValue = isString ? `'${value}'` : `${JSON.stringify(value)}`;
259
- if ((property.default ?? '') !== inputValue) {
260
- result[property.name] = inputValue;
261
- }
262
- }
263
- return result;
264
- }, {});
265
- }
266
- ngOnDestroy() {
267
- this.unsubscribe$.next();
268
- this.unsubscribe$.complete();
269
- }
270
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocPlaygroundDemoComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
271
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocPlaygroundDemoComponent, selector: "ng-doc-playground-demo", inputs: { id: "id", selector: "selector", configuration: "configuration", properties: "properties", recreateDemo: "recreateDemo", form: "form" }, viewQueries: [{ propertyName: "demoOutlet", first: true, predicate: ["demoOutlet"], descendants: true, read: ViewContainerRef, static: true }], usesOnChanges: true, ngImport: i0, template: "<ng-doc-demo-displayer [code]=\"(code | async) ?? ''\" [border]=\"false\" language=\"html\">\n\t<ng-container #demoOutlet></ng-container>\n</ng-doc-demo-displayer>\n", styles: [":host{display:block;border:var(--ng-doc-demo-displayer-border);border-radius:var(--ng-doc-demo-displayer-border-radius);overflow:hidden}:host:not(:last-child){border-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}:host:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}\n"], dependencies: [{ kind: "component", type: i1$1.NgDocDemoDisplayerComponent, selector: "ng-doc-demo-displayer", inputs: ["codeContent", "code", "language", "container", "border", "expanded"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
272
- };
273
- NgDocPlaygroundDemoComponent = __decorate([
274
- UntilDestroy(),
275
- __metadata("design:paramtypes", [Injector])
276
- ], NgDocPlaygroundDemoComponent);
277
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocPlaygroundDemoComponent, decorators: [{
278
- type: Component,
279
- args: [{ selector: 'ng-doc-playground-demo', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-doc-demo-displayer [code]=\"(code | async) ?? ''\" [border]=\"false\" language=\"html\">\n\t<ng-container #demoOutlet></ng-container>\n</ng-doc-demo-displayer>\n", styles: [":host{display:block;border:var(--ng-doc-demo-displayer-border);border-radius:var(--ng-doc-demo-displayer-border-radius);overflow:hidden}:host:not(:last-child){border-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}:host:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}\n"] }]
280
- }], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { id: [{
281
- type: Input
282
- }], selector: [{
283
- type: Input
284
- }], configuration: [{
285
- type: Input
286
- }], properties: [{
287
- type: Input
288
- }], recreateDemo: [{
289
- type: Input
290
- }], form: [{
291
- type: Input
292
- }], demoOutlet: [{
293
- type: ViewChild,
294
- args: ['demoOutlet', { static: true, read: ViewContainerRef }]
295
- }] } });
296
-
297
308
  class NgDocPlaygroundComponent {
298
309
  constructor(rootPage, formBuilder) {
299
310
  this.rootPage = rootPage;
@@ -311,10 +322,10 @@ class NgDocPlaygroundComponent {
311
322
  });
312
323
  }
313
324
  get configuration() {
314
- return this.rootPage.dependencies?.playgrounds?.[this.id];
325
+ return this.rootPage.page?.playgrounds?.[this.id];
315
326
  }
316
327
  getPropertiesFormValues() {
317
- return objectKeys$1(this.properties ?? {}).reduce((controls, key) => {
328
+ return objectKeys(this.properties ?? {}).reduce((controls, key) => {
318
329
  if (this.properties) {
319
330
  controls[key] = extractValue(this.properties[key]?.default ?? 'undefined');
320
331
  }
@@ -322,7 +333,7 @@ class NgDocPlaygroundComponent {
322
333
  }, {});
323
334
  }
324
335
  getContentFormValues() {
325
- return objectKeys$1(this.configuration?.content ?? {}).reduce((controls, key) => {
336
+ return objectKeys(this.configuration?.content ?? {}).reduce((controls, key) => {
326
337
  if (this.configuration?.content) {
327
338
  controls[key] = false;
328
339
  }
@@ -336,91 +347,17 @@ class NgDocPlaygroundComponent {
336
347
  content: this.getContentFormValues(),
337
348
  });
338
349
  }
339
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocPlaygroundComponent, deps: [{ token: i1$2.NgDocRootPage }, { token: i3.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
340
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocPlaygroundComponent, selector: "ng-doc-playground", ngImport: i0, template: "<ng-container *ngIf=\"configuration\">\n\t<ng-doc-playground-properties\n\t\t[form]=\"formGroup\"\n\t\t[properties]=\"properties\"\n\t\t[dynamicContent]=\"configuration.content\"\n\t\t[(recreateDemo)]=\"recreateDemo\"\n\t\t(resetForm)=\"resetForm()\"\n\t>\n\t\t<ng-doc-playground-demo\n\t\t\t*ngFor=\"let selector of configuration.selectors ?? selectors | asArray\"\n\t\t\t[id]=\"id\"\n\t\t\t[selector]=\"selector\"\n\t\t\t[properties]=\"properties\"\n\t\t\t[configuration]=\"configuration\"\n\t\t\t[recreateDemo]=\"recreateDemo\"\n\t\t\t[form]=\"formGroup\"\n\t\t>\n\t\t</ng-doc-playground-demo>\n\t</ng-doc-playground-properties>\n</ng-container>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: NgDocPlaygroundPropertiesComponent, selector: "ng-doc-playground-properties", inputs: ["form", "properties", "dynamicContent", "recreateDemo"], outputs: ["recreateDemoChange", "resetForm"] }, { kind: "component", type: NgDocPlaygroundDemoComponent, selector: "ng-doc-playground-demo", inputs: ["id", "selector", "configuration", "properties", "recreateDemo", "form"] }, { kind: "pipe", type: i4.NgDocAsArrayPipe, name: "asArray" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
350
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocPlaygroundComponent, deps: [{ token: i1$1.NgDocRootPage }, { token: i2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
351
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocPlaygroundComponent, isStandalone: true, selector: "ng-doc-playground", ngImport: i0, template: "<ng-container *ngIf=\"configuration\">\n\t<ng-doc-playground-properties\n\t\t[form]=\"formGroup\"\n\t\t[properties]=\"properties\"\n\t\t[dynamicContent]=\"configuration.content\"\n\t\t[(recreateDemo)]=\"recreateDemo\"\n\t\t(resetForm)=\"resetForm()\"\n\t>\n\t\t<ng-doc-playground-demo\n\t\t\t*ngFor=\"let selector of configuration.selectors ?? selectors | asArray\"\n\t\t\t[id]=\"id\"\n\t\t\t[selector]=\"selector\"\n\t\t\t[properties]=\"properties\"\n\t\t\t[configuration]=\"configuration\"\n\t\t\t[recreateDemo]=\"recreateDemo\"\n\t\t\t[form]=\"formGroup\"\n\t\t>\n\t\t</ng-doc-playground-demo>\n\t</ng-doc-playground-properties>\n</ng-container>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: NgDocPlaygroundPropertiesComponent, selector: "ng-doc-playground-properties", inputs: ["form", "properties", "dynamicContent", "recreateDemo"], outputs: ["recreateDemoChange", "resetForm"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: NgDocPlaygroundDemoComponent, selector: "ng-doc-playground-demo", inputs: ["id", "selector", "configuration", "properties", "recreateDemo", "form"] }, { kind: "pipe", type: NgDocAsArrayPipe, name: "asArray" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
341
352
  }
342
353
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocPlaygroundComponent, decorators: [{
343
354
  type: Component,
344
- args: [{ selector: 'ng-doc-playground', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"configuration\">\n\t<ng-doc-playground-properties\n\t\t[form]=\"formGroup\"\n\t\t[properties]=\"properties\"\n\t\t[dynamicContent]=\"configuration.content\"\n\t\t[(recreateDemo)]=\"recreateDemo\"\n\t\t(resetForm)=\"resetForm()\"\n\t>\n\t\t<ng-doc-playground-demo\n\t\t\t*ngFor=\"let selector of configuration.selectors ?? selectors | asArray\"\n\t\t\t[id]=\"id\"\n\t\t\t[selector]=\"selector\"\n\t\t\t[properties]=\"properties\"\n\t\t\t[configuration]=\"configuration\"\n\t\t\t[recreateDemo]=\"recreateDemo\"\n\t\t\t[form]=\"formGroup\"\n\t\t>\n\t\t</ng-doc-playground-demo>\n\t</ng-doc-playground-properties>\n</ng-container>\n", styles: [":host{display:block}\n"] }]
345
- }], ctorParameters: function () { return [{ type: i1$2.NgDocRootPage }, { type: i3.FormBuilder }]; } });
346
-
347
- class NgDocPlaygroundModule {
348
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocPlaygroundModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
349
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocPlaygroundModule, declarations: [NgDocPlaygroundComponent,
350
- NgDocPlaygroundPropertyComponent,
351
- NgDocPlaygroundPropertiesComponent,
352
- NgDocPlaygroundDemoComponent], imports: [CommonModule,
353
- ReactiveFormsModule,
354
- NgDocLabelModule,
355
- NgDocTooltipModule,
356
- PolymorpheusModule,
357
- NgDocAsArrayModule,
358
- NgDocButtonIconModule,
359
- NgDocIconModule,
360
- NgDocTextModule,
361
- NgDocCheckboxModule,
362
- FormsModule,
363
- NgDocButtonModule,
364
- NgDocDemoDisplayerModule,
365
- NgDocBindModule,
366
- NgDocRunModule], exports: [NgDocPlaygroundComponent,
367
- NgDocPlaygroundPropertyComponent,
368
- NgDocPlaygroundPropertiesComponent,
369
- NgDocPlaygroundDemoComponent] }); }
370
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocPlaygroundModule, imports: [CommonModule,
371
- ReactiveFormsModule,
372
- NgDocLabelModule,
373
- NgDocTooltipModule,
374
- PolymorpheusModule,
375
- NgDocAsArrayModule,
376
- NgDocButtonIconModule,
377
- NgDocIconModule,
378
- NgDocTextModule,
379
- NgDocCheckboxModule,
380
- FormsModule,
381
- NgDocButtonModule,
382
- NgDocDemoDisplayerModule,
383
- NgDocBindModule,
384
- NgDocRunModule] }); }
385
- }
386
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocPlaygroundModule, decorators: [{
387
- type: NgModule,
388
- args: [{
389
- declarations: [
390
- NgDocPlaygroundComponent,
391
- NgDocPlaygroundPropertyComponent,
392
- NgDocPlaygroundPropertiesComponent,
393
- NgDocPlaygroundDemoComponent,
394
- ],
395
- imports: [
396
- CommonModule,
397
- ReactiveFormsModule,
398
- NgDocLabelModule,
399
- NgDocTooltipModule,
400
- PolymorpheusModule,
401
- NgDocAsArrayModule,
402
- NgDocButtonIconModule,
403
- NgDocIconModule,
404
- NgDocTextModule,
405
- NgDocCheckboxModule,
406
- FormsModule,
407
- NgDocButtonModule,
408
- NgDocDemoDisplayerModule,
409
- NgDocBindModule,
410
- NgDocRunModule,
411
- ],
412
- exports: [
413
- NgDocPlaygroundComponent,
414
- NgDocPlaygroundPropertyComponent,
415
- NgDocPlaygroundPropertiesComponent,
416
- NgDocPlaygroundDemoComponent,
417
- ],
418
- }]
419
- }] });
355
+ args: [{ selector: 'ng-doc-playground', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgIf, NgDocPlaygroundPropertiesComponent, NgFor, NgDocPlaygroundDemoComponent, NgDocAsArrayPipe], template: "<ng-container *ngIf=\"configuration\">\n\t<ng-doc-playground-properties\n\t\t[form]=\"formGroup\"\n\t\t[properties]=\"properties\"\n\t\t[dynamicContent]=\"configuration.content\"\n\t\t[(recreateDemo)]=\"recreateDemo\"\n\t\t(resetForm)=\"resetForm()\"\n\t>\n\t\t<ng-doc-playground-demo\n\t\t\t*ngFor=\"let selector of configuration.selectors ?? selectors | asArray\"\n\t\t\t[id]=\"id\"\n\t\t\t[selector]=\"selector\"\n\t\t\t[properties]=\"properties\"\n\t\t\t[configuration]=\"configuration\"\n\t\t\t[recreateDemo]=\"recreateDemo\"\n\t\t\t[form]=\"formGroup\"\n\t\t>\n\t\t</ng-doc-playground-demo>\n\t</ng-doc-playground-properties>\n</ng-container>\n", styles: [":host{display:block}\n"] }]
356
+ }], ctorParameters: function () { return [{ type: i1$1.NgDocRootPage }, { type: i2.FormBuilder }]; } });
420
357
 
421
358
  /**
422
359
  * Generated bundle index. Do not edit.
423
360
  */
424
361
 
425
- export { NgDocBasePlayground, NgDocPlaygroundComponent, NgDocPlaygroundDemoComponent, NgDocPlaygroundModule, NgDocPlaygroundPropertiesComponent, NgDocPlaygroundPropertyComponent };
362
+ export { NgDocBasePlayground, NgDocPlaygroundComponent, NgDocPlaygroundDemoComponent, NgDocPlaygroundPropertiesComponent, NgDocPlaygroundPropertyComponent };
426
363
  //# sourceMappingURL=ng-doc-app-components-playground.mjs.map