@nldd/design-system 0.8.45 → 0.8.47

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 (243) hide show
  1. package/dist/components/actions/button/button.d.ts +3 -0
  2. package/dist/components/actions/button/button.d.ts.map +1 -1
  3. package/dist/components/actions/button/button.js +26 -0
  4. package/dist/components/actions/button/button.js.map +1 -1
  5. package/dist/components/actions/button/button.template.d.ts.map +1 -1
  6. package/dist/components/actions/button/button.template.js +4 -1
  7. package/dist/components/actions/button/button.template.js.map +1 -1
  8. package/dist/components/actions/icon-button/icon-button.d.ts +2 -0
  9. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  10. package/dist/components/actions/icon-button/icon-button.js +23 -0
  11. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  12. package/dist/components/components.js +83 -78
  13. package/dist/components/content/{code/code.d.ts → code-viewer/code-viewer.d.ts} +12 -11
  14. package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -0
  15. package/dist/components/content/{code/code.js → code-viewer/code-viewer.js} +32 -25
  16. package/dist/components/content/code-viewer/code-viewer.js.map +1 -0
  17. package/dist/components/content/code-viewer/code-viewer.styles.d.ts +2 -0
  18. package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -0
  19. package/dist/components/content/code-viewer/code-viewer.styles.js +89 -0
  20. package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -0
  21. package/dist/components/content/code-viewer/code-viewer.template.d.ts +4 -0
  22. package/dist/components/content/code-viewer/code-viewer.template.d.ts.map +1 -0
  23. package/dist/components/content/{code/code.template.js → code-viewer/code-viewer.template.js} +3 -3
  24. package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -0
  25. package/dist/components/forms/form-field/form-field.styles.d.ts.map +1 -1
  26. package/dist/components/forms/form-field/form-field.styles.js +3 -1
  27. package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
  28. package/dist/components/{index-iTa3Ua3y.js → index-CuzqC3j7.js} +3045 -1775
  29. package/dist/components/index.d.ts +3 -1
  30. package/dist/components/index.d.ts.map +1 -1
  31. package/dist/components/index.js +3 -1
  32. package/dist/components/index.js.map +1 -1
  33. package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
  34. package/dist/components/inputs/segmented-control/segmented-control.styles.js +10 -0
  35. package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
  36. package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
  37. package/dist/components/inputs/toggle-button/toggle-button.styles.js +12 -0
  38. package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
  39. package/dist/components/inputs/token/token.styles.d.ts.map +1 -1
  40. package/dist/components/inputs/token/token.styles.js +13 -3
  41. package/dist/components/inputs/token/token.styles.js.map +1 -1
  42. package/dist/components/layout/app-view/app-view.d.ts +2 -2
  43. package/dist/components/layout/app-view/app-view.d.ts.map +1 -1
  44. package/dist/components/layout/app-view/app-view.js +2 -2
  45. package/dist/components/layout/app-view/app-view.js.map +1 -1
  46. package/dist/components/layout/collection/collection.d.ts +2 -0
  47. package/dist/components/layout/collection/collection.d.ts.map +1 -1
  48. package/dist/components/layout/collection/collection.js +8 -0
  49. package/dist/components/layout/collection/collection.js.map +1 -1
  50. package/dist/components/layout/collection/collection.styles.d.ts.map +1 -1
  51. package/dist/components/layout/collection/collection.styles.js +4 -0
  52. package/dist/components/layout/collection/collection.styles.js.map +1 -1
  53. package/dist/components/layout/collection/collection.template.d.ts.map +1 -1
  54. package/dist/components/layout/collection/collection.template.js +5 -2
  55. package/dist/components/layout/collection/collection.template.js.map +1 -1
  56. package/dist/components/layout/container/container.d.ts +62 -8
  57. package/dist/components/layout/container/container.d.ts.map +1 -1
  58. package/dist/components/layout/container/container.js +113 -11
  59. package/dist/components/layout/container/container.js.map +1 -1
  60. package/dist/components/layout/container/container.styles.d.ts.map +1 -1
  61. package/dist/components/layout/container/container.styles.js +262 -16
  62. package/dist/components/layout/container/container.styles.js.map +1 -1
  63. package/dist/components/layout/container/container.template.d.ts.map +1 -1
  64. package/dist/components/layout/container/container.template.js +5 -1
  65. package/dist/components/layout/container/container.template.js.map +1 -1
  66. package/dist/components/layout/page/page.d.ts +2 -2
  67. package/dist/components/layout/page/page.d.ts.map +1 -1
  68. package/dist/components/layout/page/page.js +1 -1
  69. package/dist/components/layout/page/page.js.map +1 -1
  70. package/dist/components/layout/page/page.styles.js +1 -1
  71. package/dist/components/layout/page-footer/page-footer.d.ts +84 -0
  72. package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -0
  73. package/dist/components/layout/page-footer/page-footer.i18n.d.ts +5 -0
  74. package/dist/components/layout/page-footer/page-footer.i18n.d.ts.map +1 -0
  75. package/dist/components/layout/page-footer/page-footer.i18n.js +4 -0
  76. package/dist/components/layout/page-footer/page-footer.i18n.js.map +1 -0
  77. package/dist/components/layout/page-footer/page-footer.js +217 -0
  78. package/dist/components/layout/page-footer/page-footer.js.map +1 -0
  79. package/dist/components/layout/page-footer/page-footer.styles.d.ts +4 -0
  80. package/dist/components/layout/page-footer/page-footer.styles.d.ts.map +1 -0
  81. package/dist/components/layout/page-footer/page-footer.styles.js +207 -0
  82. package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -0
  83. package/dist/components/layout/page-footer/page-footer.template.d.ts +6 -0
  84. package/dist/components/layout/page-footer/page-footer.template.d.ts.map +1 -0
  85. package/dist/components/layout/page-footer/page-footer.template.js +73 -0
  86. package/dist/components/layout/page-footer/page-footer.template.js.map +1 -0
  87. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +26 -1
  88. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
  89. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +10 -1
  90. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
  91. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.d.ts.map +1 -1
  92. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js +23 -35
  93. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js.map +1 -1
  94. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +26 -1
  95. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
  96. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +10 -1
  97. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
  98. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.d.ts.map +1 -1
  99. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +26 -53
  100. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js.map +1 -1
  101. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +26 -1
  102. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
  103. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +10 -1
  104. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
  105. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.d.ts.map +1 -1
  106. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +33 -51
  107. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js.map +1 -1
  108. package/dist/components/layout/page-sections/page-section-controls.d.ts +226 -0
  109. package/dist/components/layout/page-sections/page-section-controls.d.ts.map +1 -0
  110. package/dist/components/layout/page-sections/page-section-controls.js +104 -0
  111. package/dist/components/layout/page-sections/page-section-controls.js.map +1 -0
  112. package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +26 -1
  113. package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
  114. package/dist/components/layout/page-sections/simple-section/simple-section.js +10 -1
  115. package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
  116. package/dist/components/layout/page-sections/simple-section/simple-section.styles.d.ts.map +1 -1
  117. package/dist/components/layout/page-sections/simple-section/simple-section.styles.js +24 -38
  118. package/dist/components/layout/page-sections/simple-section/simple-section.styles.js.map +1 -1
  119. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +26 -1
  120. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
  121. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +10 -1
  122. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
  123. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.d.ts.map +1 -1
  124. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +33 -51
  125. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js.map +1 -1
  126. package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +2 -2
  127. package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
  128. package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +1 -1
  129. package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
  130. package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.js +1 -1
  131. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +1 -1
  132. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts +2 -2
  133. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts.map +1 -1
  134. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +1 -1
  135. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js.map +1 -1
  136. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js +1 -1
  137. package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts +2 -2
  138. package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts.map +1 -1
  139. package/dist/components/layout/split-views/split-view-pane/split-view-pane.js +1 -1
  140. package/dist/components/layout/split-views/split-view-pane/split-view-pane.js.map +1 -1
  141. package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js +1 -1
  142. package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.d.ts +2 -2
  143. package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.d.ts.map +1 -1
  144. package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js +1 -1
  145. package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js.map +1 -1
  146. package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js +1 -1
  147. package/dist/components/layout/window/window.d.ts +5 -0
  148. package/dist/components/layout/window/window.d.ts.map +1 -1
  149. package/dist/components/layout/window/window.js +28 -13
  150. package/dist/components/layout/window/window.js.map +1 -1
  151. package/dist/components/layout/window/window.styles.d.ts.map +1 -1
  152. package/dist/components/layout/window/window.styles.js +1 -7
  153. package/dist/components/layout/window/window.styles.js.map +1 -1
  154. package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.d.ts +6 -5
  155. package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.d.ts.map +1 -1
  156. package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.js +16 -111
  157. package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.js.map +1 -1
  158. package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.styles.d.ts +2 -0
  159. package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.styles.d.ts.map +1 -0
  160. package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.styles.js +94 -0
  161. package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.styles.js.map +1 -0
  162. package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.template.d.ts +4 -0
  163. package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.template.d.ts.map +1 -0
  164. package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.template.js +20 -0
  165. package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.template.js.map +1 -0
  166. package/dist/components/lists-and-menus/list-item/list-item.styles.d.ts.map +1 -1
  167. package/dist/components/lists-and-menus/list-item/list-item.styles.js +9 -13
  168. package/dist/components/lists-and-menus/list-item/list-item.styles.js.map +1 -1
  169. package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +80 -0
  170. package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -0
  171. package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.d.ts +6 -0
  172. package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.d.ts.map +1 -0
  173. package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.js +5 -0
  174. package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.js.map +1 -0
  175. package/dist/components/navigation/breadcrumbs/breadcrumbs.js +192 -0
  176. package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -0
  177. package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.d.ts +3 -0
  178. package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -0
  179. package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js +124 -0
  180. package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js.map +1 -0
  181. package/dist/components/navigation/breadcrumbs/breadcrumbs.template.d.ts +6 -0
  182. package/dist/components/navigation/breadcrumbs/breadcrumbs.template.d.ts.map +1 -0
  183. package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js +57 -0
  184. package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js.map +1 -0
  185. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.d.ts.map +1 -1
  186. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +3 -4
  187. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
  188. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +14 -17
  189. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
  190. package/dist/components/navigation/menu-bar-item/menu-bar-item.js +47 -46
  191. package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
  192. package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js +2 -2
  193. package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js.map +1 -1
  194. package/dist/components/navigation/pagination/pagination.d.ts +8 -0
  195. package/dist/components/navigation/pagination/pagination.d.ts.map +1 -1
  196. package/dist/components/navigation/pagination/pagination.js +11 -0
  197. package/dist/components/navigation/pagination/pagination.js.map +1 -1
  198. package/dist/components/navigation/pagination/pagination.styles.d.ts.map +1 -1
  199. package/dist/components/navigation/pagination/pagination.styles.js +61 -1
  200. package/dist/components/navigation/pagination/pagination.styles.js.map +1 -1
  201. package/dist/components/navigation/pagination/pagination.template.d.ts.map +1 -1
  202. package/dist/components/navigation/pagination/pagination.template.js +1 -0
  203. package/dist/components/navigation/pagination/pagination.template.js.map +1 -1
  204. package/dist/components/navigation/tab-bar/tab-bar.styles.d.ts.map +1 -1
  205. package/dist/components/navigation/tab-bar/tab-bar.styles.js +15 -0
  206. package/dist/components/navigation/tab-bar/tab-bar.styles.js.map +1 -1
  207. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  208. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +28 -26
  209. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  210. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js +1 -1
  211. package/dist/components/prism-gherkin-CMPYyXOQ.js +82 -0
  212. package/dist/components/prism-python-DUL3Gysb.js +99 -0
  213. package/dist/components/prism-rust-BGBMvZa7.js +157 -0
  214. package/dist/components/prism-sql-BGqCBMyJ.js +33 -0
  215. package/dist/components/prism-toml-Ubdq-a5x.js +45 -0
  216. package/dist/components/{prism-typescript-DG_p4Wyh.js → prism-typescript-QDrnGhET.js} +1 -1
  217. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts +3 -0
  218. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts.map +1 -1
  219. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +5 -0
  220. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js.map +1 -1
  221. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.d.ts.map +1 -1
  222. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +20 -4
  223. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js.map +1 -1
  224. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.d.ts.map +1 -1
  225. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.js +16 -14
  226. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.js.map +1 -1
  227. package/dist/css/form.css +4 -5
  228. package/dist/css/rich-text.css +27 -115
  229. package/dist/css/settings.css +46 -37
  230. package/dist/utilities/page-section-mixin.d.ts +53 -0
  231. package/dist/utilities/page-section-mixin.d.ts.map +1 -0
  232. package/dist/utilities/page-section-mixin.js +239 -0
  233. package/dist/utilities/page-section-mixin.js.map +1 -0
  234. package/package.json +12 -4
  235. package/dist/components/content/code/code.d.ts.map +0 -1
  236. package/dist/components/content/code/code.js.map +0 -1
  237. package/dist/components/content/code/code.styles.d.ts +0 -2
  238. package/dist/components/content/code/code.styles.d.ts.map +0 -1
  239. package/dist/components/content/code/code.styles.js +0 -89
  240. package/dist/components/content/code/code.styles.js.map +0 -1
  241. package/dist/components/content/code/code.template.d.ts +0 -4
  242. package/dist/components/content/code/code.template.d.ts.map +0 -1
  243. package/dist/components/content/code/code.template.js.map +0 -1
@@ -19,6 +19,7 @@
19
19
  * @attr {string} target - Link target (e.g. '_blank'); only used when href is set
20
20
  * @attr {string} rel - Link rel attribute; defaults to 'noopener noreferrer' when target is '_blank'
21
21
  *
22
+ * @slot text - Slot for custom button content (e.g. text with inline markup). Used when the text attribute is empty or not set (an empty string counts as "not set", since the attribute and the unset property are indistinguishable). Provide accessible-label when the slotted content isn't plain text.
22
23
  * @slot start-icon - Slot for a custom start icon (e.g. custom SVG). Only used when start-icon attribute is not set.
23
24
  * @slot end-icon - Slot for a custom end icon (e.g. custom SVG). Only used when end-icon attribute is not set.
24
25
  *
@@ -32,6 +33,8 @@ type ButtonType = 'button' | 'submit' | 'reset';
32
33
  type PopupType = 'menu' | 'listbox' | 'dialog' | 'tree' | 'grid';
33
34
  export declare class NLDDButton extends LitElement {
34
35
  static styles: import("lit").CSSResult;
36
+ static formAssociated: boolean;
37
+ private _internals;
35
38
  variant: Variant;
36
39
  size: Size;
37
40
  /** Width mode: 'full' (stretch to container) or any CSS length. */
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAIjC,OAAO,8BAA8B,CAAC;AAEtC,KAAK,OAAO,GACT,SAAS,GACT,WAAW,GACX,aAAa,GACb,eAAe,GACf,oBAAoB,GACpB,gBAAgB,GAChB,qBAAqB,GACrB,iBAAiB,GACjB,sBAAsB,CAAC;AAC1B,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC/B,KAAK,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAChD,KAAK,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEjE,qBACa,UAAW,SAAQ,UAAU;IACzC,OAAgB,MAAM,0BAAgB;IAGtC,OAAO,EAAE,OAAO,C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EvC;;;OAGG;IAEH,GAAG,EAAE,MAAM,GAAG,SAAS,CAAa;IAEpC,OAAO,CAAC,WAAW,CAAS;IAEnB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IA0B/D,OAAO,CAAC,YAAY;IAyBpB,2DAA2D;IAC3D,YAAY,IAAI,MAAM;IAMtB;;;OAGG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAInC,MAAM;CAKf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,aAAa,EAAE,UAAU,CAAC;KAC1B;CACD"}
@@ -19,6 +19,7 @@
19
19
  * @attr {string} target - Link target (e.g. '_blank'); only used when href is set
20
20
  * @attr {string} rel - Link rel attribute; defaults to 'noopener noreferrer' when target is '_blank'
21
21
  *
22
+ * @slot text - Slot for custom button content (e.g. text with inline markup). Used when the text attribute is empty or not set (an empty string counts as "not set", since the attribute and the unset property are indistinguishable). Provide accessible-label when the slotted content isn't plain text.
22
23
  * @slot start-icon - Slot for a custom start icon (e.g. custom SVG). Only used when start-icon attribute is not set.
23
24
  * @slot end-icon - Slot for a custom end icon (e.g. custom SVG). Only used when end-icon attribute is not set.
24
25
  *
@@ -38,6 +39,7 @@ import './../../content/icon/icon.js';
38
39
  let NLDDButton = class NLDDButton extends LitElement {
39
40
  constructor() {
40
41
  super(...arguments);
42
+ this._internals = this.attachInternals();
41
43
  this.variant = 'neutral-tinted';
42
44
  this.size = 'md';
43
45
  /** Width mode: 'full' (stretch to container) or any CSS length. */
@@ -118,6 +120,26 @@ let NLDDButton = class NLDDButton extends LitElement {
118
120
  e.stopPropagation();
119
121
  return;
120
122
  }
123
+ // A link button has no form behaviour. Otherwise drive the associated
124
+ // form ourselves: the shadow <button type="submit"|"reset"> can't reach
125
+ // the light-DOM form across the shadow boundary. requestSubmit() runs
126
+ // constraint validation and fires a cancelable submit event, matching a
127
+ // native submit button.
128
+ //
129
+ // Limitation: we call requestSubmit() without a submitter, so
130
+ // SubmitEvent.submitter is null. A form handler that branches on
131
+ // event.submitter to tell multiple submit buttons apart won't see this
132
+ // element. There is no fix via requestSubmit(submitter): the inner shadow
133
+ // <button> is not a form descendant (throws NotFoundError) and this host
134
+ // is not a "submit button" per spec (throws TypeError) — both verified.
135
+ // Consumers that need to distinguish submitters should use a hidden field
136
+ // or separate forms.
137
+ if (this.href)
138
+ return;
139
+ if (this.type === 'submit')
140
+ this._internals.form?.requestSubmit();
141
+ else if (this.type === 'reset')
142
+ this._internals.form?.reset();
121
143
  }
122
144
  /** Resolves the effective rel value for link rendering. */
123
145
  _resolvedRel() {
@@ -141,6 +163,10 @@ let NLDDButton = class NLDDButton extends LitElement {
141
163
  }
142
164
  };
143
165
  NLDDButton.styles = buttonStyles;
166
+ // Form-associated so a type="submit"/"reset" button can drive its form.
167
+ // The inner <button> lives in the shadow root and has no form owner across
168
+ // the shadow boundary, so the host element must carry the association.
169
+ NLDDButton.formAssociated = true;
144
170
  __decorate([
145
171
  property({ type: String, reflect: true })
146
172
  ], NLDDButton.prototype, "variant", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,8BAA8B,CAAC;AAiB/B,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,UAAU;IAAnC;;QAIN,YAAO,GAAY,gBAAgB,CAAC;QAGpC,SAAI,GAAS,IAAI,CAAC;QAElB,mEAAmE;QAEnE,UAAK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AAE,MAAM,EAAE,CAAC;iDACmB;AAY9C;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;wDACa;AAU5C;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;uDAC4B;AAG3D;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CAC1B;AAIjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCACjB;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;8CAClD;AAInB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;6CACrC;AAIf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;2CACrC;AAIb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;mDACrC;AAIrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wCACL;AAIrC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0CACY;AAOvC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCACS;AAhGxB,UAAU;IADtB,aAAa,CAAC,aAAa,CAAC;GAChB,UAAU,CA2KtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"button.template.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,UAAU,eAAe;IACxB,WAAW,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACrC;AAyBD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,wCAkDlE"}
1
+ {"version":3,"file":"button.template.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,UAAU,eAAe;IACxB,WAAW,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACrC;AA4BD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,wCAkDlE"}
@@ -1,5 +1,8 @@
1
1
  import { html, nothing } from 'lit';
2
2
  function renderContent(component) {
3
+ // `button__text` falls back to the slot on falsy `text`. The property
4
+ // defaults to '', so `text=""` and an absent attribute are indistinguishable
5
+ // — both intentionally render the slot rather than an empty label.
3
6
  return html `
4
7
  <span class="button__content">
5
8
  ${component.startIcon ? html `
@@ -7,7 +10,7 @@ function renderContent(component) {
7
10
  name=${component.startIcon}
8
11
  ></nldd-icon>
9
12
  ` : html `<slot name="start-icon"></slot>`}
10
- <span class="button__text">${component.text}</span>
13
+ <span class="button__text">${component.text ? component.text : html `<slot name="text"></slot>`}</span>
11
14
  ${component.endIcon ? html `
12
15
  <nldd-icon class="button__end-icon"
13
16
  name=${component.endIcon}
@@ -1 +1 @@
1
- {"version":3,"file":"button.template.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAOpC,SAAS,aAAa,CAAC,SAAqB;IAC3C,OAAO,IAAI,CAAA;;KAEP,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAA;;YAEnB,SAAS,CAAC,SAAS;;IAE3B,CAAC,CAAC,CAAC,IAAI,CAAA,iCAAiC;gCACZ,SAAS,CAAC,IAAI;KACzC,SAAS,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AI,CAAC,QAAQ;mBACT,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;gBACnC,IAAI,CAAC,eAAe,IAAI,OAAO;mBAC5B,IAAI,CAAC,SAAS,IAAI,OAAO;mBACzB,YAAY;mBACZ,IAAI,CAAC,aAAa,IAAI,OAAO;2BACrB,IAAI,CAAC,oBAAoB;0BAC1B,IAAI,CAAC,mBAAmB;YACtC,OAAO,CAAC,WAAW;;KAE1B,OAAO;;EAEV,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"button.template.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAOpC,SAAS,aAAa,CAAC,SAAqB;IAC3C,sEAAsE;IACtE,6EAA6E;IAC7E,mEAAmE;IACnE,OAAO,IAAI,CAAA;;KAEP,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAA;;YAEnB,SAAS,CAAC,SAAS;;IAE3B,CAAC,CAAC,CAAC,IAAI,CAAA,iCAAiC;gCACZ,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA,2BAA2B;KAC5F,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAA;;YAEjB,SAAS,CAAC,OAAO;;IAEzB,CAAC,CAAC,CAAC,IAAI,CAAA,+BAA+B;KACrC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAA;;;;IAI5B,CAAC,CAAC,CAAC,OAAO;;EAEZ,CAAC;AACH,CAAC;AAED,MAAM,UAAU,QAAQ,CAAmB,OAAwB;IAClE,MAAM,OAAO,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;IAEpC,2EAA2E;IAC3E,oEAAoE;IACpE,yEAAyE;IACzE,iEAAiE;IACjE,8BAA8B;IAC9B,MAAM,Y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listbox' | 'dialog' | 'tree' | 'grid';
45
45
  export declare class NLDDIconButton extends LitElement {
46
46
  static styles: import("lit").CSSResult;
47
+ static formAssociated: boolean;
48
+ private _internals;
47
49
  variant: Variant;
48
50
  size: Size;
49
51
  disabled: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAIjC,OAAO,8BAA8B,CAAC;AAEtC,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC7C,MAAM,MAAM,OAAO,GAChB,SAAS,GACT,WAAW,GACX,aAAa,GACb,eAAe,GACf,oBAAoB,GACpB,gBAAgB,GAChB,qBAAqB,GACrB,iBAAiB,GACjB,sBAAsB,CAAC;AAC1B,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AACvD,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAExE,qBACa,cAAe,SAAQ,UAAU;IAC7C,OAAgB,MAAM,0BAAoB;IAG1C,OAAO,EAAE,OAAO,CAAoB;IAGpC,IAAI,EAAE,IAAI,CAAQ;IAGlB,QAAQ,UAAS;IAGjB,IAAI,EAAE,UAAU,CAAY;IAG5B,UAAU,UAAS;IAGnB,QAAQ,UAAS;IAEjB;;;;OAIG;IAEH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,mEAAmE;IAEnE,KAAK,SAAM;IAGX,aAAa,EAAE,MAAM,GAAG,SAAS,CAAa;IAE9C;;;;;;;;OAQG;IAEH,oBAAoB,EAAE,OAAO,GAAG,IAAI,CAAQ;IAE5C;;;;;;OAMG;IAEH,mBAAmB,EAA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EAAE,OAAO,CAAC,GAAG,IAAI;IA0B/D,2DAA2D;IAC3D,YAAY,IAAI,MAAM;IAMtB,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IAuB3C;;;OAGG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAInC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,kBAAkB,EAAE,cAAc,CAAC;KACnC;CACD"}
@@ -50,6 +50,7 @@ import './../../content/icon/icon.js';
50
50
  let NLDDIconButton = class NLDDIconButton extends LitElement {
51
51
  constructor() {
52
52
  super(...arguments);
53
+ this._internals = this.attachInternals();
53
54
  this.variant = 'neutral-tinted';
54
55
  this.size = 'md';
55
56
  this.disabled = false;
@@ -146,6 +147,24 @@ let NLDDIconButton = class NLDDIconButton extends LitElement {
146
147
  e.stopPropagation();
147
148
  return;
148
149
  }
150
+ // A link icon-button has no form behaviour. Otherwise drive the
151
+ // associated form ourselves: the shadow <button type="submit"|"reset">
152
+ // can't reach the light-DOM form across the shadow boundary.
153
+ //
154
+ // Limitation: we call requestSubmit() without a submitter, so
155
+ // SubmitEvent.submitter is null. A form handler that branches on
156
+ // event.submitter to tell multiple submit buttons apart won't see this
157
+ // element. There is no fix via requestSubmit(submitter): the inner shadow
158
+ // <button> is not a form descendant (throws NotFoundError) and this host
159
+ // is not a "submit button" per spec (throws TypeError) — both verified.
160
+ // Consumers that need to distinguish submitters should use a hidden field
161
+ // or separate forms.
162
+ if (this.href)
163
+ return;
164
+ if (this.type === 'submit')
165
+ this._internals.form?.requestSubmit();
166
+ else if (this.type === 'reset')
167
+ this._internals.form?.reset();
149
168
  }
150
169
  /**
151
170
  * Delegates focus to the inner `<button>` (or `<a>` when `href` is set), so
@@ -159,6 +178,10 @@ let NLDDIconButton = class NLDDIconButton extends LitElement {
159
178
  }
160
179
  };
161
180
  NLDDIconButton.styles = iconButtonStyles;
181
+ // Form-associated so a type="submit"/"reset" icon-button can drive its
182
+ // form. The inner <button> lives in the shadow root and has no form owner
183
+ // across the shadow boundary, so the host element must carry the association.
184
+ NLDDIconButton.formAssociated = true;
162
185
  __decorate([
163
186
  property({ type: String, reflect: true })
164
187
  ], NLDDIconButton.prototype, "variant", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"icon-button.js","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,8BAA8B,CAAC;AAiB/B,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,UAAU;IAAvC;;QAIN,YAAO,GAAY,gBAAgB,CAAC;QAGpC,SAAI,GAAS,IAAI,CAAC;QAGlB,aAAQ,GAAG,KAAK,CAAC;QAGjB,SAAI,GAAe,QAAQ,CAAC;QAG5B,eAAU,GAAG,KAAK,CAAC;QAGnB,aAAQ,GAAG,KAAK,CAAC;QAUjB,mEAAmE;QAEnE,UAAK,GAAG,EAAE,CAAC;QAGX,kBAAa,GAAuB,SAAS,CAAC;QAE9C;;;;;;;;WAQG;QAEH,yBAAoB,GAAmB,IAAI,CAAC;QAE5C;;;;;;WAMG;QAEH,wBAAmB,GAA+B,QAAQ,CAAC;QAE3D,2EAA2E;QAE3E,SAAI,GAAG,EAAE,CAAC;QAEV,gFAAgF;QAEhF,SAAI,GAAG,EAAE,CAAC;QAEV;sEAC8D;QAE9D,oBAAe,GAAG,EAAE,CAAC;QAErB;iFACyE;QAEzE,kBAAa,GAAoC,SAAS,CAAC;QAE3D,4DAA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C;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;2DAC4B;AAI3D;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CACjB;AAIV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CACjB;AAKV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;uDACrC;AAKrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;qDACZ;AAI3D;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CACL;AAIrC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8CACY;AAOvC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2CACS;AA/FxB,cAAc;IAD1B,aAAa,CAAC,kBAAkB,CAAC;GACrB,cAAc,CA6K1B"}
@@ -1,85 +1,90 @@
1
- import { N, a, b, c, d, e, f, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as } from "./index-iTa3Ua3y.js";
1
+ import { N, a, b, c, d, e, f, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax } from "./index-CuzqC3j7.js";
2
2
  export {
3
3
  N as NLDDAppView,
4
4
  a as NLDDBadge,
5
5
  b as NLDDBarSplitView,
6
6
  c as NLDDBlockquote,
7
7
  d as NLDDBox,
8
- e as NLDDButton,
9
- f as NLDDButtonBar,
10
- h as NLDDButtonGroup,
11
- i as NLDDCard,
12
- j as NLDDCell,
13
- k as NLDDCheckbox,
14
- l as NLDDCheckboxField,
15
- m as NLDDCode,
16
- n as NLDDCodeEditor,
17
- o as NLDDCollection,
18
- p as NLDDComboBox,
19
- q as NLDDContainer,
20
- r as NLDDDescriptionCell,
21
- s as NLDDDivider,
22
- t as NLDDDocumentTabBar,
23
- u as NLDDDragHandleCell,
24
- v as NLDDDropdown,
25
- w as NLDDForm,
26
- x as NLDDFormActions,
27
- y as NLDDFormField,
28
- z as NLDDFormSection,
29
- A as NLDDFullBleedSection,
30
- B as NLDDIcon,
31
- C as NLDDIconButton,
32
- D as NLDDIconCell,
33
- E as NLDDInlineDialog,
34
- F as NLDDKeyboardShortcut,
35
- G as NLDDLink,
36
- H as NLDDList,
37
- I as NLDDListItem,
38
- J as NLDDMenu,
39
- K as NLDDMenuBar,
40
- L as NLDDMenuBarItem,
41
- M as NLDDModalDialog,
42
- O as NLDDMultiLineTextField,
43
- P as NLDDNavigationSplitView,
44
- Q as NLDDNumberField,
45
- R as NLDDOneHalfOneHalfSection,
46
- S as NLDDOneThirdTwoThirdsSection,
47
- T as NLDDPage,
48
- U as NLDDPagination,
49
- V as NLDDPasswordField,
50
- W as NLDDPopover,
51
- X as NLDDRadioButton,
52
- Y as NLDDRadioButtonField,
53
- Z as NLDDRadioButtonGroup,
54
- _ as NLDDRichText,
55
- $ as NLDDSearchField,
56
- a0 as NLDDSegmentedControl,
57
- a1 as NLDDSheet,
58
- a2 as NLDDSideBySideSplitView,
59
- a3 as NLDDSimpleSection,
60
- a4 as NLDDSkipLink,
61
- a5 as NLDDSpacer,
62
- a6 as NLDDSpacerCell,
63
- a7 as NLDDSplitButton,
64
- a8 as NLDDSplitViewPane,
65
- a9 as NLDDStackedSplitView,
66
- aa as NLDDStepper,
67
- ab as NLDDSwitch,
68
- ac as NLDDSwitchField,
69
- ad as NLDDTabBar,
70
- ae as NLDDTag,
71
- af as NLDDTextCell,
72
- ag as NLDDTextField,
73
- ah as NLDDTimelineTrackCell,
74
- ai as NLDDTitle,
75
- aj as NLDDTitleCell,
76
- ak as NLDDToggleButton,
77
- al as NLDDToggleButtonGroup,
78
- am as NLDDToken,
79
- an as NLDDToolbar,
80
- ao as NLDDTooltip,
81
- ap as NLDDTopNavigationBar,
82
- aq as NLDDTopTitleBar,
83
- ar as NLDDTwoThirdsOneThirdSection,
84
- as as NLDDWindow
8
+ e as NLDDBreadcrumbs,
9
+ f as NLDDBreadcrumbsItem,
10
+ h as NLDDButton,
11
+ i as NLDDButtonBar,
12
+ j as NLDDButtonGroup,
13
+ k as NLDDCard,
14
+ l as NLDDCell,
15
+ m as NLDDCheckbox,
16
+ n as NLDDCheckboxField,
17
+ o as NLDDCodeEditor,
18
+ p as NLDDCodeViewer,
19
+ q as NLDDCollection,
20
+ r as NLDDComboBox,
21
+ s as NLDDContainer,
22
+ t as NLDDDescriptionCell,
23
+ u as NLDDDivider,
24
+ v as NLDDDocumentTabBar,
25
+ w as NLDDDragHandleCell,
26
+ x as NLDDDropdown,
27
+ y as NLDDForm,
28
+ z as NLDDFormActions,
29
+ A as NLDDFormField,
30
+ B as NLDDFormSection,
31
+ C as NLDDFullBleedSection,
32
+ D as NLDDIcon,
33
+ E as NLDDIconButton,
34
+ F as NLDDIconCell,
35
+ G as NLDDInlineDialog,
36
+ H as NLDDKeyboardShortcut,
37
+ I as NLDDLink,
38
+ J as NLDDList,
39
+ K as NLDDListItem,
40
+ L as NLDDMenu,
41
+ M as NLDDMenuBar,
42
+ O as NLDDMenuBarItem,
43
+ P as NLDDModalDialog,
44
+ Q as NLDDMultiLineTextField,
45
+ R as NLDDNavigationSplitView,
46
+ S as NLDDNumberField,
47
+ T as NLDDOneHalfOneHalfSection,
48
+ U as NLDDOneThirdTwoThirdsSection,
49
+ V as NLDDPage,
50
+ W as NLDDPageFooter,
51
+ X as NLDDPageFooterLegalBar,
52
+ Y as NLDDPageFooterLegalBarItem,
53
+ Z as NLDDPagination,
54
+ _ as NLDDPasswordField,
55
+ $ as NLDDPopover,
56
+ a0 as NLDDRadioButton,
57
+ a1 as NLDDRadioButtonField,
58
+ a2 as NLDDRadioButtonGroup,
59
+ a3 as NLDDRichText,
60
+ a4 as NLDDSearchField,
61
+ a5 as NLDDSegmentedControl,
62
+ a6 as NLDDSheet,
63
+ a7 as NLDDSideBySideSplitView,
64
+ a8 as NLDDSimpleSection,
65
+ a9 as NLDDSkipLink,
66
+ aa as NLDDSpacer,
67
+ ab as NLDDSpacerCell,
68
+ ac as NLDDSplitButton,
69
+ ad as NLDDSplitViewPane,
70
+ ae as NLDDStackedSplitView,
71
+ af as NLDDStepper,
72
+ ag as NLDDSwitch,
73
+ ah as NLDDSwitchField,
74
+ ai as NLDDTabBar,
75
+ aj as NLDDTag,
76
+ ak as NLDDTextCell,
77
+ al as NLDDTextField,
78
+ am as NLDDTimelineTrackCell,
79
+ an as NLDDTitle,
80
+ ao as NLDDTitleCell,
81
+ ap as NLDDToggleButton,
82
+ aq as NLDDToggleButtonGroup,
83
+ ar as NLDDToken,
84
+ as as NLDDToolbar,
85
+ at as NLDDTooltip,
86
+ au as NLDDTopNavigationBar,
87
+ av as NLDDTopTitleBar,
88
+ aw as NLDDTwoThirdsOneThirdSection,
89
+ ax as NLDDWindow
85
90
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Nederlandse Digitale Dienst Code Component (Lit + TypeScript)
2
+ * Nederlandse Digitale Dienst Code Viewer Component (Lit + TypeScript)
3
3
  *
4
4
  * A block of monospaced text for code, traces, output dumps, etc.
5
5
  * Renders a styled `<pre>` with the design-system's monospace family,
@@ -13,31 +13,32 @@
13
13
  *
14
14
  * ## Syntax highlighting
15
15
  * Set `language` to one of the supported grammars (yaml, json, javascript,
16
- * typescript, css, html, bash, markdown) to highlight the slot content
16
+ * typescript, css, html, xml, bash, markdown, rust, gherkin, toml, sql,
17
+ * python) to highlight the slot content
17
18
  * with Prism. Without `language` the slot content is rendered raw, no
18
19
  * highlighting applied. Grammars are loaded lazily on first use, so a
19
20
  * page that never sets `language` ships zero grammar code.
20
21
  *
21
22
  * ### Theming
22
- * Token colors are exposed as `--components-code-token-*` custom
23
+ * Token colors are exposed as `--components-code-viewer-token-*` custom
23
24
  * properties on the host. Override them per-instance to swap the theme:
24
25
  *
25
26
  * ```css
26
- * nldd-code {
27
- * --components-code-token-keyword-color: var(--my-purple);
28
- * --components-code-token-string-color: var(--my-green);
27
+ * nldd-code-viewer {
28
+ * --components-code-viewer-token-keyword-color: var(--my-purple);
29
+ * --components-code-viewer-token-string-color: var(--my-green);
29
30
  * }
30
31
  * ```
31
32
  *
32
- * @element nldd-code
33
+ * @element nldd-code-viewer
33
34
  *
34
- * @attr {string} language - Grammar to highlight with (yaml, json, javascript, typescript, css, html, bash, markdown). Empty disables highlighting.
35
+ * @attr {string} language - Grammar to highlight with (yaml, json, javascript, typescript, css, html, xml, bash, markdown, rust, gherkin, toml, sql, python). Empty disables highlighting.
35
36
  * @attr {boolean} wrap - Wrap long lines instead of horizontal scroll
36
37
  *
37
38
  * @slot - Default slot for the code/text content
38
39
  */
39
40
  import { LitElement } from 'lit';
40
- export declare class NLDDCode extends LitElement {
41
+ export declare class NLDDCodeViewer extends LitElement {
41
42
  static styles: import("lit").CSSResult;
42
43
  language: string;
43
44
  wrap: boolean;
@@ -56,7 +57,7 @@ export declare class NLDDCode extends LitElement {
56
57
  }
57
58
  declare global {
58
59
  interface HTMLElementTagNameMap {
59
- 'nldd-code': NLDDCode;
60
+ 'nldd-code-viewer': NLDDCodeViewer;
60
61
  }
61
62
  }
62
- //# sourceMappingURL=code.d.ts.map
63
+ //# sourceMappingURL=code-viewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-viewer.d.ts","sourceRoot":"","sources":["../../../../src/components/content/code-viewer/code-viewer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AA8CjC,qBACa,cAAe,SAAQ,UAAU;IAC7C,OAAgB,MAAM,0BAAoB;IAG1C,QAAQ,SAAM;IAGd,IAAI,UAAS;IAGb,gBAAgB,SAAM;IAEtB,OAAO,CAAC,iBAAiB,CAAoC;IAC7D,OAAO,CAAC,kBAAkB,CAAC,CAAa;IAE/B,MAAM;IAIN,iBAAiB,IAAI,IAAI;IAUzB,oBAAoB,IAAI,IAAI;IAMrC,aAAa,CAAC,CAAC,EAAE,KAAK;IAIb,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAI9C,OAAO,CAAC,iBAAiB;IAQV,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC;IAMpD,OAAO,CAAC,iBAAiB;YAIX,aAAa;CA4B3B;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,kBAAkB,EAAE,cAAc,CAAC;KACnC;CACD"}
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
7
  /**
8
- * Nederlandse Digitale Dienst Code Component (Lit + TypeScript)
8
+ * Nederlandse Digitale Dienst Code Viewer Component (Lit + TypeScript)
9
9
  *
10
10
  * A block of monospaced text for code, traces, output dumps, etc.
11
11
  * Renders a styled `<pre>` with the design-system's monospace family,
@@ -19,25 +19,26 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
19
19
  *
20
20
  * ## Syntax highlighting
21
21
  * Set `language` to one of the supported grammars (yaml, json, javascript,
22
- * typescript, css, html, bash, markdown) to highlight the slot content
22
+ * typescript, css, html, xml, bash, markdown, rust, gherkin, toml, sql,
23
+ * python) to highlight the slot content
23
24
  * with Prism. Without `language` the slot content is rendered raw, no
24
25
  * highlighting applied. Grammars are loaded lazily on first use, so a
25
26
  * page that never sets `language` ships zero grammar code.
26
27
  *
27
28
  * ### Theming
28
- * Token colors are exposed as `--components-code-token-*` custom
29
+ * Token colors are exposed as `--components-code-viewer-token-*` custom
29
30
  * properties on the host. Override them per-instance to swap the theme:
30
31
  *
31
32
  * ```css
32
- * nldd-code {
33
- * --components-code-token-keyword-color: var(--my-purple);
34
- * --components-code-token-string-color: var(--my-green);
33
+ * nldd-code-viewer {
34
+ * --components-code-viewer-token-keyword-color: var(--my-purple);
35
+ * --components-code-viewer-token-string-color: var(--my-green);
35
36
  * }
36
37
  * ```
37
38
  *
38
- * @element nldd-code
39
+ * @element nldd-code-viewer
39
40
  *
40
- * @attr {string} language - Grammar to highlight with (yaml, json, javascript, typescript, css, html, bash, markdown). Empty disables highlighting.
41
+ * @attr {string} language - Grammar to highlight with (yaml, json, javascript, typescript, css, html, xml, bash, markdown, rust, gherkin, toml, sql, python). Empty disables highlighting.
41
42
  * @attr {boolean} wrap - Wrap long lines instead of horizontal scroll
42
43
  *
43
44
  * @slot - Default slot for the code/text content
@@ -45,11 +46,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
45
46
  import { LitElement } from 'lit';
46
47
  import { customElement, property, state } from 'lit/decorators.js';
47
48
  import Prism from 'prismjs';
48
- import { codeStyles } from './code.styles.js';
49
- import { codeTemplate } from './code.template.js';
49
+ import { codeViewerStyles } from './code-viewer.styles.js';
50
+ import { codeViewerTemplate } from './code-viewer.template.js';
50
51
  import { onColorSchemeChange, forceScrollLayerRepaint } from '../../../utilities/color-scheme-repaint.js';
51
- /* Map our public language names to Prism grammar loaders. `html` shares
52
- * the markup grammar (covers html/xml/svg). Static `import()` calls let
52
+ /* Map our public language names to Prism grammar loaders. `html` and `xml`
53
+ * share the markup grammar (covers html/xml/svg). Static `import()` calls let
53
54
  * the bundler emit one chunk per file, so consumers only download
54
55
  * grammars they actually render. */
55
56
  const GRAMMAR_LOADERS = {
@@ -59,8 +60,14 @@ const GRAMMAR_LOADERS = {
59
60
  typescript: () => import('prismjs/components/prism-typescript.js'),
60
61
  css: () => import('prismjs/components/prism-css.js'),
61
62
  html: () => import('prismjs/components/prism-markup.js'),
63
+ xml: () => import('prismjs/components/prism-markup.js'),
62
64
  bash: () => import('prismjs/components/prism-bash.js'),
63
65
  markdown: () => import('prismjs/components/prism-markdown.js'),
66
+ rust: () => import('prismjs/components/prism-rust.js'),
67
+ gherkin: () => import('prismjs/components/prism-gherkin.js'),
68
+ toml: () => import('prismjs/components/prism-toml.js'),
69
+ sql: () => import('prismjs/components/prism-sql.js'),
70
+ python: () => import('prismjs/components/prism-python.js'),
64
71
  };
65
72
  const grammarLoads = new Map();
66
73
  function loadGrammar(language) {
@@ -79,7 +86,7 @@ function loadGrammar(language) {
79
86
  }
80
87
  return pending;
81
88
  }
82
- let NLDDCode = class NLDDCode extends LitElement {
89
+ let NLDDCodeViewer = class NLDDCodeViewer extends LitElement {
83
90
  constructor() {
84
91
  super(...arguments);
85
92
  this.language = '';
@@ -88,11 +95,11 @@ let NLDDCode = class NLDDCode extends LitElement {
88
95
  this._highlightPending = Promise.resolve();
89
96
  }
90
97
  render() {
91
- return codeTemplate(this);
98
+ return codeViewerTemplate(this);
92
99
  }
93
100
  connectedCallback() {
94
101
  super.connectedCallback();
95
- /* The .code block has overflow-x: auto and tends to scroll wide
102
+ /* The .code-viewer block has overflow-x: auto and tends to scroll wide
96
103
  * content. Browsers cache off-screen tiles for its scroll layer and
97
104
  * don't reliably invalidate them when light-dark() colours flip with
98
105
  * color-scheme, so scroll back after a theme switch shows stale
@@ -112,7 +119,7 @@ let NLDDCode = class NLDDCode extends LitElement {
112
119
  this._refreshHighlight();
113
120
  }
114
121
  _repaintCodeBlock() {
115
- const block = this.shadowRoot?.querySelector('.code');
122
+ const block = this.shadowRoot?.querySelector('.code-viewer');
116
123
  if (block)
117
124
  forceScrollLayerRepaint(block);
118
125
  }
@@ -158,18 +165,18 @@ let NLDDCode = class NLDDCode extends LitElement {
158
165
  this._highlightedHtml = Prism.highlight(text, grammar, language);
159
166
  }
160
167
  };
161
- NLDDCode.styles = codeStyles;
168
+ NLDDCodeViewer.styles = codeViewerStyles;
162
169
  __decorate([
163
170
  property({ type: String, reflect: true })
164
- ], NLDDCode.prototype, "language", void 0);
171
+ ], NLDDCodeViewer.prototype, "language", void 0);
165
172
  __decorate([
166
173
  property({ type: Boolean, reflect: true })
167
- ], NLDDCode.prototype, "wrap", void 0);
174
+ ], NLDDCodeViewer.prototype, "wrap", void 0);
168
175
  __decorate([
169
176
  state()
170
- ], NLDDCode.prototype, "_highlightedHtml", void 0);
171
- NLDDCode = __decorate([
172
- customElement('nldd-code')
173
- ], NLDDCode);
174
- export { NLDDCode };
175
- //# sourceMappingURL=code.js.map
177
+ ], NLDDCodeViewer.prototype, "_highlightedHtml", void 0);
178
+ NLDDCodeViewer = __decorate([
179
+ customElement('nldd-code-viewer')
180
+ ], NLDDCodeViewer);
181
+ export { NLDDCodeViewer };
182
+ //# sourceMappingURL=code-viewer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-viewer.js","sourceRoot":"","sources":["../../../../src/components/content/code-viewer/code-viewer.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;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G,MAAM;aACjB,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;aAChC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,IAAI,EAAE,CAAC;aAC/B,IAAI,CAAC,EAAE,CAAC,CAAC;QACX,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;IAClE,CAAC;;AAvFe,qBAAM,GAAG,gBAAgB,AAAnB,CAAoB;AAG1C;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gDAC5B;AAGd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CAC9B;AAGb;IADC,KAAK,EAAE;wDACc;AAVV,cAAc;IAD1B,aAAa,CAAC,kBAAkB,CAAC;GACrB,cAAc,CAyF1B"}
@@ -0,0 +1,2 @@
1
+ export declare const codeViewerStyles: import("lit").CSSResult;
2
+ //# sourceMappingURL=code-viewer.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-viewer.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/code-viewer/code-viewer.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,yBAsF5B,CAAC"}