@ng-prism/core 22.5.0 → 22.7.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (437) hide show
  1. package/README.md +13 -9
  2. package/dist/app/canvas/canvas-bg.styles.d.ts +1 -1
  3. package/dist/app/canvas/canvas-bg.styles.d.ts.map +1 -1
  4. package/dist/app/canvas/canvas-bg.styles.js +1 -1
  5. package/dist/app/canvas/canvas-overlay-tokens.d.ts +12 -0
  6. package/dist/app/canvas/canvas-overlay-tokens.d.ts.map +1 -0
  7. package/dist/app/canvas/canvas-overlay-tokens.js +52 -0
  8. package/dist/app/canvas/prism-canvas-bg-pill.component.js +2 -2
  9. package/dist/app/canvas/prism-canvas-pin-row.component.js +2 -2
  10. package/dist/app/canvas/prism-canvas-rulers.component.d.ts +2 -0
  11. package/dist/app/canvas/prism-canvas-rulers.component.d.ts.map +1 -1
  12. package/dist/app/canvas/prism-canvas-rulers.component.js +17 -12
  13. package/dist/app/canvas/prism-canvas-toolbar.component.d.ts +25 -3
  14. package/dist/app/canvas/prism-canvas-toolbar.component.d.ts.map +1 -1
  15. package/dist/app/canvas/prism-canvas-toolbar.component.js +154 -89
  16. package/dist/app/canvas/prism-template-popover.component.d.ts.map +1 -1
  17. package/dist/app/canvas/prism-template-popover.component.js +16 -7
  18. package/dist/app/canvas/state-chips.d.ts +50 -0
  19. package/dist/app/canvas/state-chips.d.ts.map +1 -0
  20. package/dist/app/canvas/state-chips.js +40 -0
  21. package/dist/app/component-head/head-metrics.d.ts +35 -19
  22. package/dist/app/component-head/head-metrics.d.ts.map +1 -1
  23. package/dist/app/component-head/head-metrics.js +57 -27
  24. package/dist/app/component-head/pipe-facts.d.ts +9 -0
  25. package/dist/app/component-head/pipe-facts.d.ts.map +1 -0
  26. package/dist/app/component-head/pipe-facts.js +15 -0
  27. package/dist/app/component-head/prism-component-head.component.d.ts +20 -22
  28. package/dist/app/component-head/prism-component-head.component.d.ts.map +1 -1
  29. package/dist/app/component-head/prism-component-head.component.js +85 -96
  30. package/dist/app/component-head/prism-head-gauge.component.d.ts +8 -12
  31. package/dist/app/component-head/prism-head-gauge.component.d.ts.map +1 -1
  32. package/dist/app/component-head/prism-head-gauge.component.js +51 -67
  33. package/dist/app/component-head/prism-head-info.component.d.ts +14 -2
  34. package/dist/app/component-head/prism-head-info.component.d.ts.map +1 -1
  35. package/dist/app/component-head/prism-head-info.component.js +84 -20
  36. package/dist/app/component-head/prism-stat.component.d.ts +4 -5
  37. package/dist/app/component-head/prism-stat.component.d.ts.map +1 -1
  38. package/dist/app/component-head/prism-stat.component.js +16 -12
  39. package/dist/app/component-head/service-facts.d.ts +8 -0
  40. package/dist/app/component-head/service-facts.d.ts.map +1 -0
  41. package/dist/app/component-head/service-facts.js +11 -0
  42. package/dist/app/controls/boolean-control.component.js +2 -2
  43. package/dist/app/controls/json-control.component.js +2 -2
  44. package/dist/app/controls/union-control.component.js +4 -3
  45. package/dist/app/directives/resize-value.d.ts +1 -1
  46. package/dist/app/directives/resize-value.js +1 -1
  47. package/dist/app/discovery-manifest.d.ts +2 -2
  48. package/dist/app/discovery-manifest.d.ts.map +1 -1
  49. package/dist/app/discovery-manifest.js +15 -3
  50. package/dist/app/header/header-brand.d.ts +25 -0
  51. package/dist/app/header/header-brand.d.ts.map +1 -0
  52. package/dist/app/header/header-brand.js +10 -0
  53. package/dist/app/header/prism-header.component.d.ts +2 -2
  54. package/dist/app/header/prism-header.component.d.ts.map +1 -1
  55. package/dist/app/header/prism-header.component.js +73 -57
  56. package/dist/app/icons/icon-registry.d.ts.map +1 -1
  57. package/dist/app/icons/icon-registry.js +4 -1
  58. package/dist/app/index.d.ts +12 -0
  59. package/dist/app/index.d.ts.map +1 -1
  60. package/dist/app/index.js +12 -1
  61. package/dist/app/layout-menu/prism-layout-menu.component.d.ts +3 -0
  62. package/dist/app/layout-menu/prism-layout-menu.component.d.ts.map +1 -1
  63. package/dist/app/layout-menu/prism-layout-menu.component.js +72 -58
  64. package/dist/app/overview/open-in-playground.d.ts +19 -0
  65. package/dist/app/overview/open-in-playground.d.ts.map +1 -0
  66. package/dist/app/overview/open-in-playground.js +25 -0
  67. package/dist/app/overview/overview-matrix.d.ts +85 -0
  68. package/dist/app/overview/overview-matrix.d.ts.map +1 -0
  69. package/dist/app/overview/overview-matrix.js +98 -0
  70. package/dist/app/overview/overview-visibility.d.ts +10 -2
  71. package/dist/app/overview/overview-visibility.d.ts.map +1 -1
  72. package/dist/app/overview/overview-visibility.js +14 -3
  73. package/dist/app/overview/prism-overview-cell.component.d.ts +27 -2
  74. package/dist/app/overview/prism-overview-cell.component.d.ts.map +1 -1
  75. package/dist/app/overview/prism-overview-cell.component.js +145 -28
  76. package/dist/app/overview/prism-overview-matrix.component.d.ts +29 -0
  77. package/dist/app/overview/prism-overview-matrix.component.d.ts.map +1 -0
  78. package/dist/app/overview/prism-overview-matrix.component.js +155 -0
  79. package/dist/app/overview/prism-overview.component.d.ts +4 -0
  80. package/dist/app/overview/prism-overview.component.d.ts.map +1 -1
  81. package/dist/app/overview/prism-overview.component.js +37 -14
  82. package/dist/app/page-renderer/prism-page-renderer.component.js +2 -2
  83. package/dist/app/panels/a11y/a11y-core.plugin.d.ts.map +1 -1
  84. package/dist/app/panels/a11y/a11y-core.plugin.js +0 -1
  85. package/dist/app/panels/a11y/a11y-header-badge.component.d.ts +1 -4
  86. package/dist/app/panels/a11y/a11y-header-badge.component.d.ts.map +1 -1
  87. package/dist/app/panels/a11y/a11y-header-badge.component.js +8 -19
  88. package/dist/app/panels/a11y/a11y-keyboard-overlay.component.js +2 -2
  89. package/dist/app/panels/a11y/a11y-overlay-host.component.d.ts +1 -0
  90. package/dist/app/panels/a11y/a11y-overlay-host.component.d.ts.map +1 -1
  91. package/dist/app/panels/a11y/a11y-overlay-host.component.js +4 -3
  92. package/dist/app/panels/a11y/a11y-panel.component.d.ts +4 -1
  93. package/dist/app/panels/a11y/a11y-panel.component.d.ts.map +1 -1
  94. package/dist/app/panels/a11y/a11y-panel.component.js +32 -54
  95. package/dist/app/panels/a11y/a11y-score.component.d.ts +8 -3
  96. package/dist/app/panels/a11y/a11y-score.component.d.ts.map +1 -1
  97. package/dist/app/panels/a11y/a11y-score.component.js +19 -35
  98. package/dist/app/panels/a11y/a11y-sr-overlay.component.js +2 -2
  99. package/dist/app/panels/a11y/a11y-sr.component.js +2 -2
  100. package/dist/app/panels/a11y/a11y-summary.d.ts.map +1 -1
  101. package/dist/app/panels/a11y/a11y-summary.js +8 -1
  102. package/dist/app/panels/a11y/a11y-tree.component.js +2 -2
  103. package/dist/app/panels/a11y/a11y-violations.component.d.ts +23 -2
  104. package/dist/app/panels/a11y/a11y-violations.component.d.ts.map +1 -1
  105. package/dist/app/panels/a11y/a11y-violations.component.js +104 -89
  106. package/dist/app/panels/a11y/severity.d.ts +9 -0
  107. package/dist/app/panels/a11y/severity.d.ts.map +1 -0
  108. package/dist/app/panels/a11y/severity.js +12 -0
  109. package/dist/app/panels/controls/controls-plugin.d.ts.map +1 -1
  110. package/dist/app/panels/controls/controls-plugin.js +1 -2
  111. package/dist/app/panels/controls/non-editable-input-types.d.ts +9 -1
  112. package/dist/app/panels/controls/non-editable-input-types.d.ts.map +1 -1
  113. package/dist/app/panels/controls/non-editable-input-types.js +18 -0
  114. package/dist/app/panels/controls/prism-controls-panel.component.d.ts +2 -1
  115. package/dist/app/panels/controls/prism-controls-panel.component.d.ts.map +1 -1
  116. package/dist/app/panels/controls/prism-controls-panel.component.js +77 -59
  117. package/dist/app/panels/events/events-plugin.d.ts.map +1 -1
  118. package/dist/app/panels/events/events-plugin.js +1 -2
  119. package/dist/app/panels/events/prism-events-panel.component.d.ts +2 -0
  120. package/dist/app/panels/events/prism-events-panel.component.d.ts.map +1 -1
  121. package/dist/app/panels/events/prism-events-panel.component.js +20 -7
  122. package/dist/app/panels/events/prism-json-node.utils.d.ts +6 -0
  123. package/dist/app/panels/events/prism-json-node.utils.d.ts.map +1 -1
  124. package/dist/app/panels/events/prism-json-node.utils.js +8 -0
  125. package/dist/app/panels/panel-host/addon-panels.d.ts +11 -0
  126. package/dist/app/panels/panel-host/addon-panels.d.ts.map +1 -0
  127. package/dist/app/panels/panel-host/addon-panels.js +12 -0
  128. package/dist/app/panels/panel-host/panel-badge.d.ts +22 -0
  129. package/dist/app/panels/panel-host/panel-badge.d.ts.map +1 -1
  130. package/dist/app/panels/panel-host/panel-badge.js +56 -11
  131. package/dist/app/panels/panel-host/prism-panel-host.component.d.ts +4 -1
  132. package/dist/app/panels/panel-host/prism-panel-host.component.d.ts.map +1 -1
  133. package/dist/app/panels/panel-host/prism-panel-host.component.js +36 -70
  134. package/dist/app/pseudo/pseudo-state-marker.d.ts +32 -10
  135. package/dist/app/pseudo/pseudo-state-marker.d.ts.map +1 -1
  136. package/dist/app/pseudo/pseudo-state-marker.js +83 -67
  137. package/dist/app/pseudo/pseudo-targets.d.ts +11 -0
  138. package/dist/app/pseudo/pseudo-targets.d.ts.map +1 -0
  139. package/dist/app/pseudo/pseudo-targets.js +46 -0
  140. package/dist/app/pseudo/state-fit.d.ts +28 -0
  141. package/dist/app/pseudo/state-fit.d.ts.map +1 -0
  142. package/dist/app/pseudo/state-fit.js +97 -0
  143. package/dist/app/renderer/composition.d.ts +20 -0
  144. package/dist/app/renderer/composition.d.ts.map +1 -0
  145. package/dist/app/renderer/composition.js +26 -0
  146. package/dist/app/renderer/input-bindings.d.ts +28 -0
  147. package/dist/app/renderer/input-bindings.d.ts.map +1 -0
  148. package/dist/app/renderer/input-bindings.js +42 -0
  149. package/dist/app/renderer/known-inputs.d.ts +8 -1
  150. package/dist/app/renderer/known-inputs.d.ts.map +1 -1
  151. package/dist/app/renderer/known-inputs.js +13 -5
  152. package/dist/app/renderer/prism-renderer.component.d.ts +18 -4
  153. package/dist/app/renderer/prism-renderer.component.d.ts.map +1 -1
  154. package/dist/app/renderer/prism-renderer.component.js +78 -44
  155. package/dist/app/renderer/projectable-content.d.ts +8 -1
  156. package/dist/app/renderer/projectable-content.d.ts.map +1 -1
  157. package/dist/app/renderer/projectable-content.js +40 -29
  158. package/dist/app/renderer/rendered-key.d.ts +20 -6
  159. package/dist/app/renderer/rendered-key.d.ts.map +1 -1
  160. package/dist/app/renderer/rendered-key.js +25 -8
  161. package/dist/app/renderer/snippet-generator.d.ts +14 -2
  162. package/dist/app/renderer/snippet-generator.d.ts.map +1 -1
  163. package/dist/app/renderer/snippet-generator.js +138 -81
  164. package/dist/app/services/navigation-item.d.ts +10 -0
  165. package/dist/app/services/navigation-item.d.ts.map +1 -0
  166. package/dist/app/services/navigation-item.js +20 -0
  167. package/dist/app/services/navigation-item.types.d.ts +8 -0
  168. package/dist/app/services/navigation-item.types.d.ts.map +1 -1
  169. package/dist/app/services/prism-layout.service.d.ts +12 -0
  170. package/dist/app/services/prism-layout.service.d.ts.map +1 -1
  171. package/dist/app/services/prism-layout.service.js +17 -7
  172. package/dist/app/services/prism-manifest.service.d.ts +4 -0
  173. package/dist/app/services/prism-manifest.service.d.ts.map +1 -1
  174. package/dist/app/services/prism-manifest.service.js +4 -0
  175. package/dist/app/services/prism-navigation.service.d.ts +12 -0
  176. package/dist/app/services/prism-navigation.service.d.ts.map +1 -1
  177. package/dist/app/services/prism-navigation.service.js +85 -19
  178. package/dist/app/services/prism-panel.service.d.ts +7 -3
  179. package/dist/app/services/prism-panel.service.d.ts.map +1 -1
  180. package/dist/app/services/prism-panel.service.js +13 -4
  181. package/dist/app/services/prism-pseudo-state.service.d.ts +59 -14
  182. package/dist/app/services/prism-pseudo-state.service.d.ts.map +1 -1
  183. package/dist/app/services/prism-pseudo-state.service.js +86 -29
  184. package/dist/app/services/prism-renderer.service.d.ts +23 -0
  185. package/dist/app/services/prism-renderer.service.d.ts.map +1 -1
  186. package/dist/app/services/prism-renderer.service.js +77 -8
  187. package/dist/app/services/prism-search.service.d.ts +4 -0
  188. package/dist/app/services/prism-search.service.d.ts.map +1 -1
  189. package/dist/app/services/prism-search.service.js +29 -6
  190. package/dist/app/services/prism-theme.service.d.ts +11 -3
  191. package/dist/app/services/prism-theme.service.d.ts.map +1 -1
  192. package/dist/app/services/prism-theme.service.js +27 -19
  193. package/dist/app/services/prism-url-state.service.d.ts.map +1 -1
  194. package/dist/app/services/prism-url-state.service.js +81 -12
  195. package/dist/app/shared/badge.types.d.ts +7 -0
  196. package/dist/app/shared/badge.types.d.ts.map +1 -0
  197. package/dist/app/shared/badge.types.js +9 -0
  198. package/dist/app/shared/brand-mark.d.ts +35 -0
  199. package/dist/app/shared/brand-mark.d.ts.map +1 -0
  200. package/dist/app/shared/brand-mark.js +52 -0
  201. package/dist/app/shared/metric-bar.d.ts +6 -0
  202. package/dist/app/shared/metric-bar.d.ts.map +1 -0
  203. package/dist/app/shared/metric-bar.js +7 -0
  204. package/dist/app/shared/prism-badge.component.d.ts +21 -0
  205. package/dist/app/shared/prism-badge.component.d.ts.map +1 -0
  206. package/dist/app/shared/prism-badge.component.js +68 -0
  207. package/dist/app/shared/prism-button.component.d.ts +12 -0
  208. package/dist/app/shared/prism-button.component.d.ts.map +1 -0
  209. package/dist/app/shared/prism-button.component.js +28 -0
  210. package/dist/app/shared/prism-icon-button.component.d.ts +17 -0
  211. package/dist/app/shared/prism-icon-button.component.d.ts.map +1 -0
  212. package/dist/app/shared/prism-icon-button.component.js +37 -0
  213. package/dist/app/shared/prism-list-row.component.d.ts +17 -0
  214. package/dist/app/shared/prism-list-row.component.d.ts.map +1 -0
  215. package/dist/app/shared/prism-list-row.component.js +57 -0
  216. package/dist/app/shared/prism-logo.component.d.ts +24 -0
  217. package/dist/app/shared/prism-logo.component.d.ts.map +1 -0
  218. package/dist/app/shared/prism-logo.component.js +77 -0
  219. package/dist/app/shared/prism-metric-badge.component.d.ts +9 -4
  220. package/dist/app/shared/prism-metric-badge.component.d.ts.map +1 -1
  221. package/dist/app/shared/prism-metric-badge.component.js +33 -12
  222. package/dist/app/shared/prism-metric-card.component.d.ts +30 -0
  223. package/dist/app/shared/prism-metric-card.component.d.ts.map +1 -0
  224. package/dist/app/shared/prism-metric-card.component.js +111 -0
  225. package/dist/app/shared/prism-panel-toolbar.component.d.ts +13 -0
  226. package/dist/app/shared/prism-panel-toolbar.component.d.ts.map +1 -0
  227. package/dist/app/shared/prism-panel-toolbar.component.js +28 -0
  228. package/dist/app/shared/prism-segmented.component.d.ts +25 -0
  229. package/dist/app/shared/prism-segmented.component.d.ts.map +1 -0
  230. package/dist/app/shared/prism-segmented.component.js +77 -0
  231. package/dist/app/shared/prism-tabs.component.d.ts +44 -0
  232. package/dist/app/shared/prism-tabs.component.d.ts.map +1 -0
  233. package/dist/app/shared/prism-tabs.component.js +134 -0
  234. package/dist/app/shared/roving-focus.d.ts +13 -0
  235. package/dist/app/shared/roving-focus.d.ts.map +1 -0
  236. package/dist/app/shared/roving-focus.js +34 -0
  237. package/dist/app/shell/prism-shell.component.d.ts +13 -0
  238. package/dist/app/shell/prism-shell.component.d.ts.map +1 -1
  239. package/dist/app/shell/prism-shell.component.js +57 -28
  240. package/dist/app/shell/should-select-first.d.ts +17 -0
  241. package/dist/app/shell/should-select-first.d.ts.map +1 -0
  242. package/dist/app/shell/should-select-first.js +13 -0
  243. package/dist/app/sidebar/navigation-decorations.d.ts +23 -1
  244. package/dist/app/sidebar/navigation-decorations.d.ts.map +1 -1
  245. package/dist/app/sidebar/navigation-decorations.js +33 -2
  246. package/dist/app/sidebar/prism-sidebar.component.d.ts +5 -15
  247. package/dist/app/sidebar/prism-sidebar.component.d.ts.map +1 -1
  248. package/dist/app/sidebar/prism-sidebar.component.js +89 -77
  249. package/dist/app/theme/deprecated-tokens.d.ts +15 -0
  250. package/dist/app/theme/deprecated-tokens.d.ts.map +1 -0
  251. package/dist/app/theme/deprecated-tokens.js +22 -0
  252. package/dist/app/theme/favicon.d.ts +3 -0
  253. package/dist/app/theme/favicon.d.ts.map +1 -0
  254. package/dist/app/theme/favicon.js +3 -0
  255. package/dist/app/theme/prism-default-theme.d.ts.map +1 -1
  256. package/dist/app/theme/prism-default-theme.js +122 -66
  257. package/dist/app/theme/resolve-theme-tokens.d.ts +29 -0
  258. package/dist/app/theme/resolve-theme-tokens.d.ts.map +1 -0
  259. package/dist/app/theme/resolve-theme-tokens.js +43 -0
  260. package/dist/app/variant-ribbon/prism-variant-ribbon.component.d.ts +4 -7
  261. package/dist/app/variant-ribbon/prism-variant-ribbon.component.d.ts.map +1 -1
  262. package/dist/app/variant-ribbon/prism-variant-ribbon.component.js +31 -69
  263. package/dist/app/view-tab-bar/next-view-id.d.ts +7 -1
  264. package/dist/app/view-tab-bar/next-view-id.d.ts.map +1 -1
  265. package/dist/app/view-tab-bar/next-view-id.js +9 -1
  266. package/dist/app/view-tab-bar/panel-inputs.d.ts +28 -0
  267. package/dist/app/view-tab-bar/panel-inputs.d.ts.map +1 -0
  268. package/dist/app/view-tab-bar/panel-inputs.js +41 -0
  269. package/dist/app/view-tab-bar/prism-view-panel-host.component.d.ts +2 -3
  270. package/dist/app/view-tab-bar/prism-view-panel-host.component.d.ts.map +1 -1
  271. package/dist/app/view-tab-bar/prism-view-panel-host.component.js +9 -9
  272. package/dist/app/view-tab-bar/prism-view-tab-bar.component.d.ts +6 -0
  273. package/dist/app/view-tab-bar/prism-view-tab-bar.component.d.ts.map +1 -1
  274. package/dist/app/view-tab-bar/prism-view-tab-bar.component.js +22 -29
  275. package/dist/builder/config-loader/deprecated-options.d.ts +9 -0
  276. package/dist/builder/config-loader/deprecated-options.d.ts.map +1 -0
  277. package/dist/builder/config-loader/deprecated-options.js +34 -0
  278. package/dist/builder/manifest/composition-wrapper.generator.d.ts +14 -0
  279. package/dist/builder/manifest/composition-wrapper.generator.d.ts.map +1 -0
  280. package/dist/builder/manifest/composition-wrapper.generator.js +66 -0
  281. package/dist/builder/manifest/host-parser.d.ts +2 -0
  282. package/dist/builder/manifest/host-parser.d.ts.map +1 -1
  283. package/dist/builder/manifest/host-parser.js +9 -4
  284. package/dist/builder/manifest/manifest-imports.d.ts +34 -0
  285. package/dist/builder/manifest/manifest-imports.d.ts.map +1 -0
  286. package/dist/builder/manifest/manifest-imports.js +91 -0
  287. package/dist/builder/manifest/runtime-manifest.generator.d.ts +13 -0
  288. package/dist/builder/manifest/runtime-manifest.generator.d.ts.map +1 -1
  289. package/dist/builder/manifest/runtime-manifest.generator.js +137 -65
  290. package/dist/builder/manifest/selector-element.d.ts +16 -0
  291. package/dist/builder/manifest/selector-element.d.ts.map +1 -0
  292. package/dist/builder/manifest/selector-element.js +46 -0
  293. package/dist/builder/manifest/template-literal.d.ts +3 -0
  294. package/dist/builder/manifest/template-literal.d.ts.map +1 -0
  295. package/dist/builder/manifest/template-literal.js +4 -0
  296. package/dist/builder/plugin-runner/plugin-runner.d.ts.map +1 -1
  297. package/dist/builder/plugin-runner/plugin-runner.js +29 -26
  298. package/dist/builder/scanner/api/angular-decorators.d.ts +84 -0
  299. package/dist/builder/scanner/api/angular-decorators.d.ts.map +1 -0
  300. package/dist/builder/scanner/api/angular-decorators.js +157 -0
  301. package/dist/builder/scanner/api/component-api.extractor.d.ts +13 -0
  302. package/dist/builder/scanner/api/component-api.extractor.d.ts.map +1 -0
  303. package/dist/builder/scanner/api/component-api.extractor.js +104 -0
  304. package/dist/builder/scanner/api/doc-tags.d.ts +13 -0
  305. package/dist/builder/scanner/api/doc-tags.d.ts.map +1 -0
  306. package/dist/builder/scanner/api/doc-tags.js +101 -0
  307. package/dist/builder/scanner/api/export-index.d.ts +18 -0
  308. package/dist/builder/scanner/api/export-index.d.ts.map +1 -0
  309. package/dist/builder/scanner/api/export-index.js +22 -0
  310. package/dist/builder/scanner/api/member.extractor.d.ts +90 -0
  311. package/dist/builder/scanner/api/member.extractor.d.ts.map +1 -0
  312. package/dist/builder/scanner/api/member.extractor.js +270 -0
  313. package/dist/builder/scanner/api/pipe-api.extractor.d.ts +12 -0
  314. package/dist/builder/scanner/api/pipe-api.extractor.d.ts.map +1 -0
  315. package/dist/builder/scanner/api/pipe-api.extractor.js +52 -0
  316. package/dist/builder/scanner/api/service-api.extractor.d.ts +14 -0
  317. package/dist/builder/scanner/api/service-api.extractor.d.ts.map +1 -0
  318. package/dist/builder/scanner/api/service-api.extractor.js +119 -0
  319. package/dist/builder/scanner/api/setup.reader.d.ts +26 -0
  320. package/dist/builder/scanner/api/setup.reader.d.ts.map +1 -0
  321. package/dist/builder/scanner/api/setup.reader.js +89 -0
  322. package/dist/builder/scanner/api/type-collector.d.ts +24 -0
  323. package/dist/builder/scanner/api/type-collector.d.ts.map +1 -0
  324. package/dist/builder/scanner/api/type-collector.js +211 -0
  325. package/dist/builder/scanner/ast-utils.d.ts +8 -0
  326. package/dist/builder/scanner/ast-utils.d.ts.map +1 -1
  327. package/dist/builder/scanner/ast-utils.js +37 -1
  328. package/dist/builder/scanner/class-hierarchy.d.ts +5 -3
  329. package/dist/builder/scanner/class-hierarchy.d.ts.map +1 -1
  330. package/dist/builder/scanner/class-hierarchy.js +12 -6
  331. package/dist/builder/scanner/component.scanner.d.ts +60 -6
  332. package/dist/builder/scanner/component.scanner.d.ts.map +1 -1
  333. package/dist/builder/scanner/component.scanner.js +229 -58
  334. package/dist/builder/scanner/composition/compose-template.d.ts +36 -0
  335. package/dist/builder/scanner/composition/compose-template.d.ts.map +1 -0
  336. package/dist/builder/scanner/composition/compose-template.js +187 -0
  337. package/dist/builder/scanner/composition/declarables.d.ts +54 -0
  338. package/dist/builder/scanner/composition/declarables.d.ts.map +1 -0
  339. package/dist/builder/scanner/composition/declarables.js +182 -0
  340. package/dist/builder/scanner/composition/match-declarables.d.ts +43 -0
  341. package/dist/builder/scanner/composition/match-declarables.d.ts.map +1 -0
  342. package/dist/builder/scanner/composition/match-declarables.js +131 -0
  343. package/dist/builder/scanner/composition/read-composition.d.ts +77 -0
  344. package/dist/builder/scanner/composition/read-composition.d.ts.map +1 -0
  345. package/dist/builder/scanner/composition/read-composition.js +302 -0
  346. package/dist/builder/scanner/composition/template-elements.d.ts +12 -0
  347. package/dist/builder/scanner/composition/template-elements.d.ts.map +1 -0
  348. package/dist/builder/scanner/composition/template-elements.js +41 -0
  349. package/dist/builder/scanner/entry-point-discovery.d.ts +5 -0
  350. package/dist/builder/scanner/entry-point-discovery.d.ts.map +1 -1
  351. package/dist/builder/scanner/entry-point-discovery.js +14 -0
  352. package/dist/builder/scanner/entry-point.scanner.d.ts +3 -1
  353. package/dist/builder/scanner/entry-point.scanner.d.ts.map +1 -1
  354. package/dist/builder/scanner/entry-point.scanner.js +7 -6
  355. package/dist/builder/scanner/index.d.ts +4 -0
  356. package/dist/builder/scanner/index.d.ts.map +1 -1
  357. package/dist/builder/scanner/index.js +2 -0
  358. package/dist/builder/scanner/input.extractor.d.ts +31 -2
  359. package/dist/builder/scanner/input.extractor.d.ts.map +1 -1
  360. package/dist/builder/scanner/input.extractor.js +73 -17
  361. package/dist/builder/scanner/pipe.scanner.d.ts +29 -0
  362. package/dist/builder/scanner/pipe.scanner.d.ts.map +1 -0
  363. package/dist/builder/scanner/pipe.scanner.js +65 -0
  364. package/dist/builder/scanner/pseudo-states.d.ts +1 -0
  365. package/dist/builder/scanner/pseudo-states.d.ts.map +1 -1
  366. package/dist/builder/scanner/pseudo-states.js +1 -1
  367. package/dist/builder/scanner/scanner.d.ts +27 -3
  368. package/dist/builder/scanner/scanner.d.ts.map +1 -1
  369. package/dist/builder/scanner/scanner.js +68 -24
  370. package/dist/builder/scanner/service/angular-decorators.d.ts +80 -0
  371. package/dist/builder/scanner/service/angular-decorators.d.ts.map +1 -0
  372. package/dist/builder/scanner/service/angular-decorators.js +154 -0
  373. package/dist/builder/scanner/service/doc-tags.d.ts +13 -0
  374. package/dist/builder/scanner/service/doc-tags.d.ts.map +1 -0
  375. package/dist/builder/scanner/service/doc-tags.js +97 -0
  376. package/dist/builder/scanner/service/export-index.d.ts +18 -0
  377. package/dist/builder/scanner/service/export-index.d.ts.map +1 -0
  378. package/dist/builder/scanner/service/export-index.js +22 -0
  379. package/dist/builder/scanner/service/member.extractor.d.ts +65 -0
  380. package/dist/builder/scanner/service/member.extractor.d.ts.map +1 -0
  381. package/dist/builder/scanner/service/member.extractor.js +216 -0
  382. package/dist/builder/scanner/service/pipe-api.extractor.d.ts +12 -0
  383. package/dist/builder/scanner/service/pipe-api.extractor.d.ts.map +1 -0
  384. package/dist/builder/scanner/service/pipe-api.extractor.js +72 -0
  385. package/dist/builder/scanner/service/service-api.extractor.d.ts +14 -0
  386. package/dist/builder/scanner/service/service-api.extractor.d.ts.map +1 -0
  387. package/dist/builder/scanner/service/service-api.extractor.js +119 -0
  388. package/dist/builder/scanner/service/setup.reader.d.ts +26 -0
  389. package/dist/builder/scanner/service/setup.reader.d.ts.map +1 -0
  390. package/dist/builder/scanner/service/setup.reader.js +89 -0
  391. package/dist/builder/scanner/service/type-collector.d.ts +23 -0
  392. package/dist/builder/scanner/service/type-collector.d.ts.map +1 -0
  393. package/dist/builder/scanner/service/type-collector.js +210 -0
  394. package/dist/builder/scanner/service.scanner.d.ts +26 -0
  395. package/dist/builder/scanner/service.scanner.d.ts.map +1 -0
  396. package/dist/builder/scanner/service.scanner.js +61 -0
  397. package/dist/builder/scanner/showcase-diagnostics.d.ts +60 -1
  398. package/dist/builder/scanner/showcase-diagnostics.d.ts.map +1 -1
  399. package/dist/builder/scanner/showcase-diagnostics.js +123 -10
  400. package/dist/builder/scanner/showcase-states.d.ts +17 -0
  401. package/dist/builder/scanner/showcase-states.d.ts.map +1 -0
  402. package/dist/builder/scanner/showcase-states.js +58 -0
  403. package/dist/builder/scanner/source-file-cache.d.ts +26 -0
  404. package/dist/builder/scanner/source-file-cache.d.ts.map +1 -0
  405. package/dist/builder/scanner/source-file-cache.js +60 -0
  406. package/dist/builder/shared/prism-pipeline.d.ts +6 -0
  407. package/dist/builder/shared/prism-pipeline.d.ts.map +1 -1
  408. package/dist/builder/shared/prism-pipeline.js +71 -18
  409. package/dist/decorator/index.d.ts +1 -1
  410. package/dist/decorator/index.d.ts.map +1 -1
  411. package/dist/decorator/showcase.types.d.ts +102 -9
  412. package/dist/decorator/showcase.types.d.ts.map +1 -1
  413. package/dist/plugin/index.d.ts +6 -1
  414. package/dist/plugin/index.d.ts.map +1 -1
  415. package/dist/plugin/index.js +4 -0
  416. package/dist/plugin/pipe.types.d.ts +36 -0
  417. package/dist/plugin/pipe.types.d.ts.map +1 -0
  418. package/dist/plugin/pipe.types.js +1 -0
  419. package/dist/plugin/plugin.types.d.ts +184 -8
  420. package/dist/plugin/plugin.types.d.ts.map +1 -1
  421. package/dist/plugin/service.types.d.ts +124 -0
  422. package/dist/plugin/service.types.d.ts.map +1 -0
  423. package/dist/plugin/service.types.js +1 -0
  424. package/dist/plugin/status.d.ts +27 -0
  425. package/dist/plugin/status.d.ts.map +1 -0
  426. package/dist/plugin/status.js +26 -0
  427. package/dist/shared/composition.d.ts +30 -0
  428. package/dist/shared/composition.d.ts.map +1 -0
  429. package/dist/shared/composition.js +29 -0
  430. package/dist/shared/pseudo-state.type.d.ts +2 -1
  431. package/dist/shared/pseudo-state.type.d.ts.map +1 -1
  432. package/dist/shared/void-elements.d.ts +3 -0
  433. package/dist/shared/void-elements.d.ts.map +1 -0
  434. package/dist/shared/void-elements.js +2 -0
  435. package/package.json +1 -1
  436. package/src/builder/build/schema.json +6 -6
  437. package/src/builder/serve/schema.json +6 -6
@@ -1,20 +1,33 @@
1
1
  import type { Provider, Type } from '@angular/core';
2
+ import type { ShowcaseImport } from '../decorator/showcase.types.js';
2
3
  import type { CanvasBg } from '../shared/canvas-bg.type.js';
3
4
  import type { ForcedPseudoStates } from '../shared/pseudo-state.type.js';
4
5
  import type { StyleguidePage } from './page.types.js';
6
+ import type { RuntimePipe, ScannedPipe } from './pipe.types.js';
7
+ import type { ApiDocTags, ApiMethod, ApiTypeDoc, ApiTypeRef, PanelTarget, RuntimeService, ScannedService } from './service.types.js';
5
8
  export interface NgPrismPlugin {
6
9
  /** Unique plugin name, used for debugging and conflict detection */
7
10
  name: string;
8
11
  onComponentScanned?: (component: ScannedComponent) => ScannedComponent | void | Promise<ScannedComponent | void>;
12
+ onServiceScanned?: (service: ScannedService) => ScannedService | void | Promise<ScannedService | void>;
13
+ onPipeScanned?: (pipe: ScannedPipe) => ScannedPipe | void | Promise<ScannedPipe | void>;
9
14
  onPageScanned?: (page: StyleguidePage) => StyleguidePage | void | Promise<StyleguidePage | void>;
10
15
  onManifestReady?: (manifest: PrismManifest) => PrismManifest | void | Promise<PrismManifest | void>;
16
+ /**
17
+ * Set when a hook or a panel of the plugin reads {@link ScannedComponent.api}. The scan only reads the API of the
18
+ * components, and the manifest only carries it, when a plugin in the config sets this. Read from the plugin's
19
+ * Node entry, like the build-time hooks.
20
+ *
21
+ * @experimental Experimental until 23.0.0, like {@link ComponentApi}: it may change in a 22.x minor release.
22
+ */
23
+ componentApi?: boolean;
11
24
  panels?: PanelDefinition[];
12
25
  controls?: ControlDefinition[];
13
26
  /** Header widgets rendered in the Prism shell header bar */
14
27
  headerWidgets?: HeaderWidgetDefinition[];
15
28
  /** Markers contributed to each component's navigation item. */
16
29
  navigationDecorations?: NavigationDecorationDefinition[];
17
- /** Angular standalone component that wraps each rendered component */
30
+ /** @deprecated Deprecated since 22.6.0, removed in 23.0.0. It has never had an effect: nothing reads it. */
18
31
  wrapComponent?: Type<unknown>;
19
32
  }
20
33
  export interface HeaderWidgetDefinition {
@@ -32,13 +45,26 @@ export interface HeaderWidgetDefinition {
32
45
  /** Sort order within the same placement (lower = earlier). Default: 0. */
33
46
  order?: number;
34
47
  }
35
- /** A short marker rendered on a panel's tab, usually a count. */
48
+ /**
49
+ * A short marker on a panel's tab.
50
+ *
51
+ * Two kinds, and a filled badge means exactly one thing: `issues` is a number of
52
+ * open findings, drawn as a pill in its tone and hidden at zero; `count` is a
53
+ * plain quantity, drawn as a muted figure without a fill.
54
+ */
36
55
  export interface PanelBadge {
56
+ /** Defaults from `variant` for badges written before 22.7: a judgement is `issues`, anything else `count`. Since 22.7.0. */
57
+ kind?: 'count' | 'issues';
37
58
  /** Kept to a couple of characters because the tab bar scrolls horizontally. */
38
59
  text: string;
60
+ /** Tone of an `issues` badge. Default `'danger'`. Since 22.7.0. */
61
+ tone?: 'primary' | 'warn' | 'danger';
62
+ /** Read after the tab's label by assistive technology, e.g. `'1 violation'`. Defaults to `text`. Since 22.7.0. */
63
+ label?: string;
39
64
  /**
40
- * Colour role. `default` is the neutral primary tint used for a plain count;
41
- * the other three carry a judgement and should be reserved for one.
65
+ * @deprecated Deprecated since 22.7.0, removed in 23.0.0. Use `kind` and `tone`:
66
+ * `warn`/`danger` map to `kind: 'issues'` with that tone, `default` to `kind: 'count'`,
67
+ * and `ok` is not rendered.
42
68
  */
43
69
  variant?: 'default' | 'ok' | 'warn' | 'danger';
44
70
  }
@@ -83,9 +109,22 @@ export interface PanelDefinition {
83
109
  overlayComponent?: Type<unknown>;
84
110
  loadOverlayComponent?: () => Promise<Type<unknown>>;
85
111
  icon?: string;
112
+ /** @deprecated Deprecated since 22.6.0, removed in 23.0.0. It has never had an effect: nothing reads it. Where a panel appears is `placement`. */
86
113
  position?: 'bottom' | 'right';
87
- /** Where this panel appears: 'addon' (bottom/right tabbar) or 'view' (top view toolbar). Default: 'addon' */
114
+ /** Where this panel appears: 'addon' (the tab bar below the canvas) or 'view' (top view toolbar). Default: 'addon' */
88
115
  placement?: 'addon' | 'view';
116
+ /**
117
+ * Where this panel appears. Default: `['component']`. A panel with `'component'`
118
+ * gets the input `activeComponent`, one with `'service'` gets the input
119
+ * `activeService` (`RuntimeService | null`), one with `'pipe'` gets the input
120
+ * `activePipe` (`RuntimePipe | null`). `isVisible` and `badge` are only
121
+ * called for components.
122
+ *
123
+ * `'service'` and `'pipe'` only count on a view panel (`placement: 'view'`): a
124
+ * service or pipe page has no addon area, so an addon panel shows on component
125
+ * pages alone, and only when it applies to `'component'`. Since 22.7.0.
126
+ */
127
+ appliesTo?: readonly PanelTarget[];
89
128
  /** Providers injected into a child EnvironmentInjector scoped to this panel */
90
129
  providers?: Provider[];
91
130
  /** When provided, the panel tab is only shown if this returns true for the active component */
@@ -118,6 +157,8 @@ export interface ControlDefinition {
118
157
  }
119
158
  export interface PrismManifest {
120
159
  components: ScannedComponent[];
160
+ services?: ScannedService[];
161
+ pipes?: ScannedPipe[];
121
162
  pages?: StyleguidePage[];
122
163
  /** Library-wide plugin metadata (e.g. aggregate coverage totals). */
123
164
  meta?: Record<string, unknown>;
@@ -144,24 +185,121 @@ export interface ScannedComponent {
144
185
  className: string;
145
186
  filePath: string;
146
187
  }[];
188
+ /**
189
+ * What the API page needs beyond `inputs` and `outputs`. Read only when a
190
+ * plugin in the config sets {@link NgPrismPlugin.componentApi}. Absent
191
+ * without one, when the scan cannot read it, when a plugin hook builds the
192
+ * component, or in the manifest of an older core.
193
+ *
194
+ * @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release.
195
+ */
196
+ api?: ComponentApi;
197
+ /**
198
+ * The compositions of the showcase: what its variants render, written as Angular templates. Absent when no variant
199
+ * declares a `template` or a host template, and when a plugin hook builds the component. Since 22.7.0.
200
+ */
201
+ composition?: ComponentComposition;
147
202
  /** Arbitrary plugin metadata */
148
203
  meta?: Record<string, unknown>;
149
204
  }
205
+ /**
206
+ * One distinct composition of a showcase, the markup of one or more variants as the generated wrapper renders it in a
207
+ * `@case`. Since 22.7.0.
208
+ *
209
+ * @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release.
210
+ */
211
+ export interface CompositionCase {
212
+ /**
213
+ * The markup as written, the subject element included, with `COMPOSITION_SUBJECT_SLOT` at the end of the start tag
214
+ * of the subject.
215
+ */
216
+ template: string;
217
+ /**
218
+ * The inputs of the subject that the wrapper does not bind in this case: `'template'` when the template sets the
219
+ * input itself, `'default'` when its default could not be read and the variant does not set it. Controls show
220
+ * them as not editable. `name` is the member name.
221
+ */
222
+ unbound: {
223
+ name: string;
224
+ reason: 'template' | 'default';
225
+ }[];
226
+ /**
227
+ * Where the case comes from, as `file:line` and the variants: for the comments and errors of the generated code.
228
+ * Set by the scan at build time, absent in the runtime manifest.
229
+ */
230
+ origin?: string;
231
+ }
232
+ /**
233
+ * The compositions of a showcase: the distinct ones, and which one each variant uses. Since 22.7.0.
234
+ *
235
+ * @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release.
236
+ */
237
+ export interface ComponentComposition {
238
+ /**
239
+ * One entry per variant, or one for a showcase without variants, which renders as one implicit variant. Each is
240
+ * the index into `cases`, or `-1` for a variant without a composition, which renders as it did before.
241
+ */
242
+ variantCases: number[];
243
+ cases: CompositionCase[];
244
+ /**
245
+ * Every class the generated wrapper imports besides the subject: the library classes the templates use, matched
246
+ * by selector, the showcase's `imports`, and the class of a directive's object host. Set by the scan, and in the
247
+ * runtime manifest as well, so that a usage example in the browser can name them.
248
+ */
249
+ imports?: ShowcaseImport[];
250
+ }
251
+ /**
252
+ * What the API page of a component or directive needs beyond `inputs` and `outputs`.
253
+ *
254
+ * @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release.
255
+ */
256
+ export interface ComponentApi {
257
+ /** The class's own description (Markdown, `{@link}` kept), as for services and pipes. */
258
+ description?: string;
259
+ tags: ApiDocTags;
260
+ /** The type of each input by member name, as written, with links. */
261
+ inputTypes: Record<string, ApiTypeRef>;
262
+ /** The payload type of each `output()` by member name. */
263
+ outputTypes: Record<string, ApiTypeRef>;
264
+ /** One entry per `model()` input: the change output Angular adds for it. `input` is the member name. */
265
+ modelChanges: {
266
+ input: string;
267
+ event: string;
268
+ type: ApiTypeRef;
269
+ }[];
270
+ /** Public methods with JSDoc of their own or inherited, signatures from the code. */
271
+ methods: ApiMethod[];
272
+ types: ApiTypeDoc[];
273
+ }
150
274
  export interface InputMeta {
275
+ /** The class member. Variants and controls use this name. */
151
276
  name: string;
277
+ /** The public name Angular binds the input by, when an `alias` makes it differ from `name`. */
278
+ alias?: string;
152
279
  type: 'string' | 'number' | 'boolean' | 'union' | 'array' | 'object' | 'unknown';
153
280
  rawType?: string;
154
281
  values?: string[];
155
282
  defaultValue?: unknown;
283
+ /**
284
+ * The input starts out with a value the scan could not evaluate, such as the result of a function call: it has a
285
+ * default, but `defaultValue` cannot say which. Not set for `input<string>()`, which starts out `undefined`.
286
+ * Since 22.7.0.
287
+ */
288
+ defaultUnreadable?: true;
156
289
  required: boolean;
157
290
  doc?: string;
158
291
  }
159
292
  export interface OutputMeta {
293
+ /** The class member. */
160
294
  name: string;
295
+ /** The public event name, when an `alias` makes it differ from `name`. */
296
+ alias?: string;
161
297
  doc?: string;
162
298
  }
163
299
  export interface RuntimeManifest {
164
300
  components: RuntimeComponent[];
301
+ services?: RuntimeService[];
302
+ pipes?: RuntimePipe[];
165
303
  pages?: StyleguidePage[];
166
304
  /** Library-wide plugin metadata, mirrored from the build-time PrismManifest. */
167
305
  meta?: Record<string, unknown>;
@@ -169,14 +307,21 @@ export interface RuntimeManifest {
169
307
  export interface RuntimeComponent {
170
308
  meta: ScannedComponent;
171
309
  type: Type<unknown>;
310
+ /**
311
+ * The generated wrapper that renders the compositions of the showcase, for a component with
312
+ * {@link ScannedComponent.composition}. It is set to the index of the variant through its `__prismVariant__` input.
313
+ * When every variant is composed, `type` is this wrapper too. Since 22.7.0.
314
+ */
315
+ composition?: Type<unknown>;
172
316
  }
173
317
  /**
174
318
  * The shape external tooling reads from `globalThis.__PRISM_MANIFEST__`.
175
319
  *
176
320
  * A thin, JSON-safe projection of the runtime manifest: enough to enumerate and
177
- * address every variant, plus the `@Showcase` metadata a tool needs to decide how
178
- * to treat one. It carries no Angular class references, and `meta` values that
179
- * cannot survive a structured clone are dropped rather than half-serialised.
321
+ * address every variant and component-level state, plus the `@Showcase` metadata
322
+ * a tool needs to decide how to treat one. It carries no Angular class
323
+ * references, and `meta` values that cannot survive a structured clone are
324
+ * dropped rather than half-serialised.
180
325
  */
181
326
  export interface DiscoveryManifest {
182
327
  components: DiscoveryComponent[];
@@ -187,6 +332,16 @@ export interface DiscoveryComponent {
187
332
  /** `ShowcaseConfig.title`, i.e. the display name, not the class name. */
188
333
  title: string;
189
334
  variants: DiscoveryVariant[];
335
+ /**
336
+ * `ShowcaseConfig.states`: the component-level states, one entry per declared
337
+ * slot. Omitted when the component declares none. A component without
338
+ * `variants` lists them next to its single `Default` variant.
339
+ *
340
+ * Whether a state fits a variant is not part of the manifest, because that is
341
+ * only known once the variant renders; the render marker reports it
342
+ * (`data-prism-excluded`).
343
+ */
344
+ states?: DiscoveryState[];
190
345
  /** Sanitised `ShowcaseConfig.meta`. Omitted when empty. */
191
346
  meta?: Record<string, unknown>;
192
347
  }
@@ -211,6 +366,23 @@ export interface DiscoveryVariant {
211
366
  * without any action on the runner's side.
212
367
  */
213
368
  pseudo?: ForcedPseudoStates;
369
+ /**
370
+ * `false` when the variant opts out of the component's `states` (`Variant.states`).
371
+ * Omitted otherwise. Nothing is forced for a state on such a variant, and the
372
+ * render marker still reports its cell as excluded.
373
+ */
374
+ states?: false;
375
+ }
376
+ export interface DiscoveryState {
377
+ name: string;
378
+ /** 0-based index into the `states` array (the `?state=` URL value). */
379
+ index: number;
380
+ /**
381
+ * The pseudo states the state forces, exactly as declared. An empty object
382
+ * for a slot that forces nothing, for example one the scanner could not
383
+ * evaluate: the slot stays listed so the indices behind it keep their value.
384
+ */
385
+ pseudo: ForcedPseudoStates;
214
386
  }
215
387
  export interface DiscoveryPage {
216
388
  title: string;
@@ -229,7 +401,9 @@ export interface NgPrismConfig {
229
401
  };
230
402
  title?: string;
231
403
  subtitle?: string;
404
+ /** @deprecated Deprecated since 22.6.0, removed in 23.0.0. It has never had an effect: nothing reads it. */
232
405
  themeStylesheet?: string;
406
+ /** @deprecated Deprecated since 22.6.0, removed in 23.0.0. It has never had an effect: nothing reads it. */
233
407
  ui?: {
234
408
  header?: Type<unknown>;
235
409
  sidebar?: Type<unknown>;
@@ -239,7 +413,9 @@ export interface NgPrismConfig {
239
413
  eventsPanel?: Type<unknown>;
240
414
  footer?: Type<unknown>;
241
415
  };
416
+ /** @deprecated Deprecated since 22.6.0, removed in 23.0.0. It has never had an effect: nothing reads it. */
242
417
  headless?: boolean;
418
+ /** @deprecated Deprecated since 22.6.0, removed in 23.0.0. It has never had an effect: nothing reads it. */
243
419
  appComponent?: Type<unknown>;
244
420
  /** When false, disables URL state sync (default: true). */
245
421
  urlState?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.types.d.ts","sourceRoot":"","sources":["../../src/plugin/plugin.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,WAAW,aAAa;IAC1B,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAC;IAGb,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAAE,gBAAgB,KAAK,gBAAgB,GAAG,IAAI,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACjH,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,cAAc,GAAG,IAAI,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACjG,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,aAAa,GAAG,IAAI,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;IAGpG,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC/B,4DAA4D;IAC5D,aAAa,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACzC,+DAA+D;IAC/D,qBAAqB,CAAC,EAAE,8BAA8B,EAAE,CAAC;IACzD,sEAAsE;IACtE,aAAa,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,sBAAsB;IACnC,8DAA8D;IAC9D,EAAE,EAAE,MAA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O,kCAAkC,EAAE,iBAAiB,CAAC;IACpE;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B"}
@@ -0,0 +1,124 @@
1
+ import type { ShowcaseConfig } from '../decorator/showcase.types.js';
2
+ /** How a service reaches the injector: on its own, or through a providers array. */
3
+ export type ServiceProvision = 'auto' | 'manual';
4
+ /** Where a panel appears: on component pages, on service pages, on pipe pages, or on several. */
5
+ export type PanelTarget = 'component' | 'service' | 'pipe';
6
+ /** @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release. */
7
+ export interface ApiDocTags {
8
+ deprecated?: string | true;
9
+ since?: string;
10
+ /** From `@version`. */
11
+ version?: string;
12
+ see?: string[];
13
+ example?: string[];
14
+ /** From `@default`. Prose such as "Default `x`." is not read. */
15
+ default?: string;
16
+ }
17
+ /**
18
+ * A type as written, plus the ids of documented types it mentions.
19
+ *
20
+ * @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release.
21
+ */
22
+ export interface ApiTypeRef {
23
+ /** Display text, e.g. `ToastOptions`, `Signal<boolean>`, `number | null`. */
24
+ text: string;
25
+ /** Ids of the entries in the page's `types` (service, pipe or component) whose names occur in `text`. Omitted when none. */
26
+ links?: string[];
27
+ }
28
+ /** @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release. */
29
+ export interface ApiParam {
30
+ name: string;
31
+ type: ApiTypeRef;
32
+ optional: boolean;
33
+ rest?: true;
34
+ /** The initializer as written, e.g. `{}`. */
35
+ defaultValue?: string;
36
+ /** From `@param`. */
37
+ description?: string;
38
+ }
39
+ /** @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release. */
40
+ export interface ApiMethod {
41
+ name: string;
42
+ params: ApiParam[];
43
+ returnType: ApiTypeRef;
44
+ description?: string;
45
+ tags: ApiDocTags;
46
+ }
47
+ /** @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release. */
48
+ export interface ApiProperty {
49
+ name: string;
50
+ type: ApiTypeRef;
51
+ readonly: boolean;
52
+ /** `?` on an interface member. */
53
+ optional?: true;
54
+ description?: string;
55
+ tags: ApiDocTags;
56
+ }
57
+ /** @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release. */
58
+ export interface ApiTypeDoc {
59
+ /** Unique within one page's `types` (service, pipe or component): the name, or `${name}@${importPath}` when two reachable types share a name. */
60
+ id: string;
61
+ name: string;
62
+ kind: 'interface' | 'class' | 'type' | 'enum';
63
+ importPath: string;
64
+ description?: string;
65
+ tags: ApiDocTags;
66
+ /** Interfaces, classes and object-literal type aliases. */
67
+ properties?: ApiProperty[];
68
+ /** Interfaces and classes. */
69
+ methods?: ApiMethod[];
70
+ /** A type alias of a literal union: each member as written, e.g. `'top-left'`. */
71
+ union?: string[];
72
+ /** Any other type alias: the aliased type as written. */
73
+ text?: string;
74
+ /** Enums. */
75
+ members?: {
76
+ name: string;
77
+ value?: string;
78
+ description?: string;
79
+ }[];
80
+ /** Where the type was first reached, e.g. `parameter of show()`, `via options.action`. */
81
+ reachedFrom?: string;
82
+ }
83
+ /** @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release. */
84
+ export interface ApiSetupEntry {
85
+ name: string;
86
+ kind: 'function' | 'token';
87
+ importPath: string;
88
+ description?: string;
89
+ tags: ApiDocTags;
90
+ /** Functions only. */
91
+ params?: ApiParam[];
92
+ returnType?: ApiTypeRef;
93
+ /** Tokens only: `InjectionToken<T>` as written. */
94
+ tokenType?: ApiTypeRef;
95
+ /** The properties of the first parameter's object type (function) or of `T` (token). */
96
+ config?: ApiProperty[];
97
+ }
98
+ /** @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release. */
99
+ export interface ServiceApi {
100
+ description?: string;
101
+ tags: ApiDocTags;
102
+ properties: ApiProperty[];
103
+ methods: ApiMethod[];
104
+ setup: ApiSetupEntry[];
105
+ types: ApiTypeDoc[];
106
+ }
107
+ export interface ScannedService {
108
+ className: string;
109
+ filePath: string;
110
+ /** Import path of the entry point that exports the service. */
111
+ importPath?: string;
112
+ /** Only the fields that apply to services: title, description, category, categoryOrder, componentOrder, section, sectionOrder, tags, meta, status. */
113
+ showcaseConfig: ShowcaseConfig;
114
+ provision: ServiceProvision;
115
+ /** @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release. */
116
+ api: ServiceApi;
117
+ /** Arbitrary plugin metadata */
118
+ meta?: Record<string, unknown>;
119
+ }
120
+ /** A service in the runtime manifest. Carries data only: the class is never imported into the styleguide. */
121
+ export interface RuntimeService {
122
+ meta: ScannedService;
123
+ }
124
+ //# sourceMappingURL=service.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.types.d.ts","sourceRoot":"","sources":["../../src/plugin/service.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,oFAAoF;AACpF,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEjD,iGAAiG;AACjG,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC;AAE3D,6FAA6F;AAC7F,MAAM,WAAW,UAAU;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uBAAuB;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB,6EAA6E;IAC7E,IAAI,EAAE,MAAM,CAAC;IACb,4HAA4H;IAC5H,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,6FAA6F;AAC7F,MAAM,WAAW,QAAQ;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC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
1
+ /**
2
+ * One grading rule for every key figure the styleguide shows.
3
+ *
4
+ * Framework-free on purpose: plugins grade at build time in Node
5
+ * (`onComponentScanned` writes the sidebar's verdict into the meta) and the app
6
+ * grades live values in the browser, and the two must never disagree about
7
+ * the same number. Thresholds come from whoever owns the figure: the a11y
8
+ * config, the coverage plugin, the visual regression plugin.
9
+ */
10
+ export type StatusTone = 'ok' | 'warn' | 'danger';
11
+ /** How far below a single target a value may fall before it is critical. */
12
+ export declare const STATUS_DANGER_RATIO = 0.75;
13
+ /**
14
+ * `higher` (default): ok from `ok` up, warn from `warn` up, below that danger.
15
+ * `lower`: ok up to `ok`, warn up to `warn`, above that danger.
16
+ */
17
+ export interface StatusThreshold {
18
+ ok: number;
19
+ warn: number;
20
+ direction?: 'higher' | 'lower';
21
+ }
22
+ export declare function statusFor(value: number, threshold: StatusThreshold): StatusTone;
23
+ /** A threshold from a single target: ok at the target, warn down to {@link STATUS_DANGER_RATIO} of it. */
24
+ export declare function thresholdFromTarget(target: number): StatusThreshold;
25
+ /** The most severe of several verdicts; `ok` when there are none. */
26
+ export declare function worstTone(tones: Iterable<StatusTone>): StatusTone;
27
+ //# sourceMappingURL=status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/plugin/status.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,MAAM,GAAG,QAAQ,CAAC;AAElD,4EAA4E;AAC5E,eAAO,MAAM,mBAAmB,OAAO,CAAC;AAExC;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CAClC;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,GAAG,UAAU,CAO/E;AAED,0GAA0G;AAC1G,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,CAEnE;AAID,qEAAqE;AACrE,wBAAgB,SAAS,CAAC,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,UAAU,CAOjE"}
@@ -0,0 +1,26 @@
1
+ /** How far below a single target a value may fall before it is critical. */
2
+ export const STATUS_DANGER_RATIO = 0.75;
3
+ export function statusFor(value, threshold) {
4
+ if (threshold.direction === 'lower') {
5
+ if (value <= threshold.ok)
6
+ return 'ok';
7
+ return value <= threshold.warn ? 'warn' : 'danger';
8
+ }
9
+ if (value >= threshold.ok)
10
+ return 'ok';
11
+ return value >= threshold.warn ? 'warn' : 'danger';
12
+ }
13
+ /** A threshold from a single target: ok at the target, warn down to {@link STATUS_DANGER_RATIO} of it. */
14
+ export function thresholdFromTarget(target) {
15
+ return { ok: target, warn: target * STATUS_DANGER_RATIO };
16
+ }
17
+ const SEVERITY = { ok: 0, warn: 1, danger: 2 };
18
+ /** The most severe of several verdicts; `ok` when there are none. */
19
+ export function worstTone(tones) {
20
+ let worst = 'ok';
21
+ for (const tone of tones) {
22
+ if (SEVERITY[tone] > SEVERITY[worst])
23
+ worst = tone;
24
+ }
25
+ return worst;
26
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Where the subject element of a composition takes the attributes and bindings ng-prism gives it: the end of its start
3
+ * tag, in `CompositionCase.template`. Snippets replace it with the current values, the generated wrapper with the
4
+ * bindings. A private-use character, so that it cannot occur in the markup an author wrote. Since 22.7.0.
5
+ *
6
+ * @experimental Experimental until 23.0.0: it may change in a 22.x minor release.
7
+ */
8
+ export declare const COMPOSITION_SUBJECT_SLOT = "\uE000";
9
+ /**
10
+ * Attribute the generated wrapper puts on the subject element, which is how the styleguide finds it in the rendered
11
+ * composition. Since 22.7.0.
12
+ *
13
+ * @experimental Experimental until 23.0.0: it may change in a 22.x minor release.
14
+ */
15
+ export declare const COMPOSITION_SUBJECT_ATTR = "data-prism-subject";
16
+ /**
17
+ * Attribute an author puts on the one of several elements matching the subject's selector that is the subject. It is
18
+ * removed from the generated template and from snippets. Since 22.7.0.
19
+ *
20
+ * @experimental Experimental until 23.0.0: it may change in a 22.x minor release.
21
+ */
22
+ export declare const SUBJECT_MARKER_ATTR = "prism-subject";
23
+ /**
24
+ * The input a composition wrapper declares to switch between its cases: the index of the variant, which the wrapper
25
+ * maps onto a case. Since 22.7.0.
26
+ *
27
+ * @experimental Experimental until 23.0.0: it may change in a 22.x minor release.
28
+ */
29
+ export declare const PRISM_VARIANT_INPUT = "__prismVariant__";
30
+ //# sourceMappingURL=composition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composition.d.ts","sourceRoot":"","sources":["../../src/shared/composition.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,WAAW,CAAC;AAEjD;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAE7D;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,qBAAqB,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Where the subject element of a composition takes the attributes and bindings ng-prism gives it: the end of its start
3
+ * tag, in `CompositionCase.template`. Snippets replace it with the current values, the generated wrapper with the
4
+ * bindings. A private-use character, so that it cannot occur in the markup an author wrote. Since 22.7.0.
5
+ *
6
+ * @experimental Experimental until 23.0.0: it may change in a 22.x minor release.
7
+ */
8
+ export const COMPOSITION_SUBJECT_SLOT = '\uE000';
9
+ /**
10
+ * Attribute the generated wrapper puts on the subject element, which is how the styleguide finds it in the rendered
11
+ * composition. Since 22.7.0.
12
+ *
13
+ * @experimental Experimental until 23.0.0: it may change in a 22.x minor release.
14
+ */
15
+ export const COMPOSITION_SUBJECT_ATTR = 'data-prism-subject';
16
+ /**
17
+ * Attribute an author puts on the one of several elements matching the subject's selector that is the subject. It is
18
+ * removed from the generated template and from snippets. Since 22.7.0.
19
+ *
20
+ * @experimental Experimental until 23.0.0: it may change in a 22.x minor release.
21
+ */
22
+ export const SUBJECT_MARKER_ATTR = 'prism-subject';
23
+ /**
24
+ * The input a composition wrapper declares to switch between its cases: the index of the variant, which the wrapper
25
+ * maps onto a case. Since 22.7.0.
26
+ *
27
+ * @experimental Experimental until 23.0.0: it may change in a 22.x minor release.
28
+ */
29
+ export const PRISM_VARIANT_INPUT = '__prismVariant__';
@@ -14,7 +14,8 @@ export declare const PSEUDO_STATES: readonly PseudoState[];
14
14
  *
15
15
  * `true` puts it on every element of the rendered component, the host
16
16
  * included. A selector, or a list of them, limits it to the matching elements,
17
- * resolved against the host and everything inside it.
17
+ * resolved against what is rendered: the host and everything inside it, or the
18
+ * whole composition for a variant with a `template` or a host template.
18
19
  */
19
20
  export type PseudoTarget = true | string | readonly string[];
20
21
  /** The pseudo states a variant forces, each with the elements it applies to. */
@@ -1 +1 @@
1
- {"version":3,"file":"pseudo-state.type.d.ts","sourceRoot":"","sources":["../../src/shared/pseudo-state.type.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,eAAe,GAAG,cAAc,CAAC;AAE1F,uFAAuF;AACvF,eAAO,MAAM,aAAa,EAAE,SAAS,WAAW,EAA2E,CAAC;AAE5H;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC;AAE7D,gFAAgF;AAChF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"pseudo-state.type.d.ts","sourceRoot":"","sources":["../../src/shared/pseudo-state.type.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,eAAe,GAAG,cAAc,CAAC;AAE1F,uFAAuF;AACvF,eAAO,MAAM,aAAa,EAAE,SAAS,WAAW,EAA2E,CAAC;AAE5H;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC;AAE7D,gFAAgF;AAChF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** The HTML elements that take no content and no end tag: `<input>` and `<input />` are valid, `<input></input>` is not. */
2
+ export declare const VOID_ELEMENTS: ReadonlySet<string>;
3
+ //# sourceMappingURL=void-elements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"void-elements.d.ts","sourceRoot":"","sources":["../../src/shared/void-elements.ts"],"names":[],"mappings":"AAAA,4HAA4H;AAC5H,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,MAAM,CAAmH,CAAC"}
@@ -0,0 +1,2 @@
1
+ /** The HTML elements that take no content and no end tag: `<input>` and `<input />` are valid, `<input></input>` is not. */
2
+ export const VOID_ELEMENTS = new Set(['area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'source', 'track', 'wbr']);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-prism/core",
3
- "version": "22.5.0",
3
+ "version": "22.7.0-beta.0",
4
4
  "description": "ng-prism: the Angular-native Storybook alternative. Lightweight component showcase with @Showcase decorator, no story files needed.",
5
5
  "keywords": [
6
6
  "ng-prism",