@nldd/design-system 0.8.53 → 0.8.55

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 (374) hide show
  1. package/dist/assets/styles/slotted-reset.fixtures.d.ts +2 -3
  2. package/dist/assets/styles/slotted-reset.fixtures.d.ts.map +1 -1
  3. package/dist/assets/styles/slotted-reset.fixtures.js +2 -3
  4. package/dist/assets/styles/slotted-reset.fixtures.js.map +1 -1
  5. package/dist/components/actions/button/button.d.ts +11 -0
  6. package/dist/components/actions/button/button.d.ts.map +1 -1
  7. package/dist/components/actions/button/button.js +15 -1
  8. package/dist/components/actions/button/button.js.map +1 -1
  9. package/dist/components/actions/button/button.styles.d.ts.map +1 -1
  10. package/dist/components/actions/button/button.styles.js +34 -2
  11. package/dist/components/actions/button/button.styles.js.map +1 -1
  12. package/dist/components/actions/button/button.template.d.ts.map +1 -1
  13. package/dist/components/actions/button/button.template.js +21 -0
  14. package/dist/components/actions/button/button.template.js.map +1 -1
  15. package/dist/components/actions/icon-button/icon-button.d.ts +11 -0
  16. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  17. package/dist/components/actions/icon-button/icon-button.js +15 -1
  18. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  19. package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
  20. package/dist/components/actions/icon-button/icon-button.styles.js +35 -1
  21. package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
  22. package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
  23. package/dist/components/actions/icon-button/icon-button.template.js +32 -5
  24. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  25. package/dist/components/{lists-and-menus → actions}/menu/menu.d.ts +3 -3
  26. package/dist/components/actions/menu/menu.d.ts.map +1 -0
  27. package/dist/components/actions/menu/menu.i18n.d.ts.map +1 -0
  28. package/dist/components/actions/menu/menu.i18n.js.map +1 -0
  29. package/dist/components/{lists-and-menus → actions}/menu/menu.js +3 -3
  30. package/dist/components/actions/menu/menu.js.map +1 -0
  31. package/dist/components/actions/menu/menu.styles.d.ts.map +1 -0
  32. package/dist/components/{lists-and-menus → actions}/menu/menu.styles.js +1 -1
  33. package/dist/components/actions/menu/menu.styles.js.map +1 -0
  34. package/dist/components/actions/menu/menu.template.d.ts.map +1 -0
  35. package/dist/components/actions/menu/menu.template.js.map +1 -0
  36. package/dist/components/actions/split-button/split-button.d.ts +1 -1
  37. package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
  38. package/dist/components/actions/split-button/split-button.js +1 -1
  39. package/dist/components/actions/split-button/split-button.js.map +1 -1
  40. package/dist/components/components.js +76 -74
  41. package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
  42. package/dist/components/content/code-viewer/code-viewer.styles.js +2 -8
  43. package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
  44. package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
  45. package/dist/components/content/icon/icon-aliases.js +5 -0
  46. package/dist/components/content/icon/icon-aliases.js.map +1 -1
  47. package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
  48. package/dist/components/content/icon/icon-registry.js +2 -0
  49. package/dist/components/content/icon/icon-registry.js.map +1 -1
  50. package/dist/components/content/image/lqip-encoder-element.js +1 -1
  51. package/dist/components/{index-Cwro7Ee_.js → index-C3JellW2.js} +1455 -803
  52. package/dist/components/index.d.ts +15 -14
  53. package/dist/components/index.d.ts.map +1 -1
  54. package/dist/components/index.js +16 -15
  55. package/dist/components/index.js.map +1 -1
  56. package/dist/components/inputs/combo-box/combo-box.d.ts +1 -1
  57. package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
  58. package/dist/components/inputs/combo-box/combo-box.js +1 -1
  59. package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
  60. package/dist/components/layout/app-view/app-view.js +1 -1
  61. package/dist/components/layout/app-view/app-view.js.map +1 -1
  62. package/dist/components/layout/app-view/app-view.styles.js +1 -1
  63. package/dist/components/layout/page/page.styles.js +2 -2
  64. package/dist/components/layout/popover/popover.styles.js +1 -1
  65. package/dist/components/layout/sheet/sheet.styles.js +1 -1
  66. package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.js +2 -2
  67. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +4 -4
  68. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js +2 -2
  69. package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js +2 -2
  70. package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js +2 -2
  71. package/dist/components/layout/window/window.styles.js +1 -1
  72. package/dist/components/lists-and-tables/cells/cell/cell.d.ts.map +1 -0
  73. package/dist/components/{lists-and-menus → lists-and-tables}/cells/cell/cell.js +1 -1
  74. package/dist/components/lists-and-tables/cells/cell/cell.js.map +1 -0
  75. package/dist/components/lists-and-tables/cells/cell/cell.styles.d.ts.map +1 -0
  76. package/dist/components/lists-and-tables/cells/cell/cell.styles.js.map +1 -0
  77. package/dist/components/lists-and-tables/cells/cell/cell.template.d.ts.map +1 -0
  78. package/dist/components/lists-and-tables/cells/cell/cell.template.js.map +1 -0
  79. package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts.map +1 -0
  80. package/dist/components/{lists-and-menus → lists-and-tables}/cells/description-cell/description-cell.js +1 -1
  81. package/dist/components/lists-and-tables/cells/description-cell/description-cell.js.map +1 -0
  82. package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.d.ts.map +1 -0
  83. package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js.map +1 -0
  84. package/dist/components/lists-and-tables/cells/description-cell/description-cell.template.d.ts.map +1 -0
  85. package/dist/components/lists-and-tables/cells/description-cell/description-cell.template.js.map +1 -0
  86. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.d.ts.map +1 -0
  87. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.d.ts.map +1 -0
  88. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.js.map +1 -0
  89. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js.map +1 -0
  90. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.d.ts.map +1 -0
  91. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.js.map +1 -0
  92. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.d.ts.map +1 -0
  93. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.js.map +1 -0
  94. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts.map +1 -0
  95. package/dist/components/{lists-and-menus → lists-and-tables}/cells/icon-cell/icon-cell.js +1 -1
  96. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js.map +1 -0
  97. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.d.ts.map +1 -0
  98. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js.map +1 -0
  99. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.d.ts.map +1 -0
  100. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.js.map +1 -0
  101. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.d.ts.map +1 -0
  102. package/dist/components/{lists-and-menus → lists-and-tables}/cells/spacer-cell/spacer-cell.js +1 -1
  103. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js.map +1 -0
  104. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.styles.d.ts.map +1 -0
  105. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.styles.js.map +1 -0
  106. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.template.d.ts.map +1 -0
  107. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.template.js.map +1 -0
  108. package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts.map +1 -0
  109. package/dist/components/{lists-and-menus → lists-and-tables}/cells/text-cell/text-cell.js +1 -1
  110. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -0
  111. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.d.ts.map +1 -0
  112. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js.map +1 -0
  113. package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.d.ts.map +1 -0
  114. package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.js.map +1 -0
  115. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts.map +1 -0
  116. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js.map +1 -0
  117. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.d.ts.map +1 -0
  118. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.js.map +1 -0
  119. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.d.ts.map +1 -0
  120. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.js.map +1 -0
  121. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts.map +1 -0
  122. package/dist/components/{lists-and-menus → lists-and-tables}/cells/title-cell/title-cell.js +1 -1
  123. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -0
  124. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.d.ts.map +1 -0
  125. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js.map +1 -0
  126. package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.d.ts.map +1 -0
  127. package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.js.map +1 -0
  128. package/dist/components/lists-and-tables/list/list.d.ts.map +1 -0
  129. package/dist/components/lists-and-tables/list/list.i18n.d.ts.map +1 -0
  130. package/dist/components/lists-and-tables/list/list.i18n.js.map +1 -0
  131. package/dist/components/{lists-and-menus → lists-and-tables}/list/list.js +1 -1
  132. package/dist/components/lists-and-tables/list/list.js.map +1 -0
  133. package/dist/components/lists-and-tables/list/list.styles.d.ts.map +1 -0
  134. package/dist/components/{lists-and-menus → lists-and-tables}/list/list.styles.js +3 -3
  135. package/dist/components/lists-and-tables/list/list.styles.js.map +1 -0
  136. package/dist/components/lists-and-tables/list/list.template.d.ts.map +1 -0
  137. package/dist/components/lists-and-tables/list/list.template.js.map +1 -0
  138. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -0
  139. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -0
  140. package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -0
  141. package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -0
  142. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -0
  143. package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -0
  144. package/dist/components/lists-and-tables/table/table.d.ts +137 -0
  145. package/dist/components/lists-and-tables/table/table.d.ts.map +1 -0
  146. package/dist/components/lists-and-tables/table/table.i18n.d.ts +6 -0
  147. package/dist/components/lists-and-tables/table/table.i18n.d.ts.map +1 -0
  148. package/dist/components/lists-and-tables/table/table.i18n.js +5 -0
  149. package/dist/components/lists-and-tables/table/table.i18n.js.map +1 -0
  150. package/dist/components/lists-and-tables/table/table.js +359 -0
  151. package/dist/components/lists-and-tables/table/table.js.map +1 -0
  152. package/dist/components/lists-and-tables/table/table.styles.d.ts +3 -0
  153. package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -0
  154. package/dist/components/lists-and-tables/table/table.styles.js +120 -0
  155. package/dist/components/lists-and-tables/table/table.styles.js.map +1 -0
  156. package/dist/components/lists-and-tables/table/table.template.d.ts +3 -0
  157. package/dist/components/lists-and-tables/table/table.template.d.ts.map +1 -0
  158. package/dist/components/lists-and-tables/table/table.template.js +34 -0
  159. package/dist/components/lists-and-tables/table/table.template.js.map +1 -0
  160. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +1 -1
  161. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
  162. package/dist/components/navigation/document-tab-bar/document-tab-bar.js +1 -1
  163. package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
  164. package/dist/components/navigation/menu-bar/menu-bar.d.ts +1 -1
  165. package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
  166. package/dist/components/navigation/menu-bar/menu-bar.js +1 -1
  167. package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
  168. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +1 -1
  169. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
  170. package/dist/components/navigation/menu-bar-item/menu-bar-item.js +1 -1
  171. package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
  172. package/dist/components/navigation/skip-link/skip-link.styles.js +1 -1
  173. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +3 -3
  174. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
  175. package/dist/components/{prism-python-DupfA39T.js → prism-python-QiimuE8j.js} +1 -1
  176. package/dist/components/{prism-rust-yPrYE0Hd.js → prism-rust-D4vfxUpk.js} +1 -1
  177. package/dist/components/{prism-typescript-C1NT9IBX.js → prism-typescript-Dy2F4cF2.js} +1 -1
  178. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts +80 -0
  179. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts.map +1 -0
  180. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.i18n.d.ts +5 -0
  181. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.i18n.d.ts.map +1 -0
  182. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.i18n.js +4 -0
  183. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.i18n.js.map +1 -0
  184. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +163 -0
  185. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -0
  186. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.d.ts +2 -0
  187. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.d.ts.map +1 -0
  188. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +151 -0
  189. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js.map +1 -0
  190. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.d.ts +4 -0
  191. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.d.ts.map +1 -0
  192. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.js +41 -0
  193. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.js.map +1 -0
  194. package/dist/components/status-and-feedback/badge/badge.styles.js +1 -1
  195. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +1 -1
  196. package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +18 -16
  197. package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts.map +1 -1
  198. package/dist/components/status-and-feedback/progress-bar/progress-bar.js +68 -63
  199. package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
  200. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts +1 -1
  201. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts.map +1 -1
  202. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +42 -39
  203. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -1
  204. package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js +14 -14
  205. package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js.map +1 -1
  206. package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts +6 -6
  207. package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts.map +1 -1
  208. package/dist/components/status-and-feedback/progress-circle/progress-circle.js +42 -42
  209. package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
  210. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.d.ts +1 -1
  211. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.d.ts.map +1 -1
  212. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +57 -56
  213. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js.map +1 -1
  214. package/dist/components/status-and-feedback/progress-circle/progress-circle.template.d.ts.map +1 -1
  215. package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js +12 -2
  216. package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js.map +1 -1
  217. package/dist/css/rich-text.css +43 -15
  218. package/dist/css/settings.css +27 -15
  219. package/dist/utilities/page-section-mixin.js +1 -1
  220. package/dist/utilities/page-section-mixin.js.map +1 -1
  221. package/dist/utilities/visibility-mixin.d.ts +8 -4
  222. package/dist/utilities/visibility-mixin.d.ts.map +1 -1
  223. package/dist/utilities/visibility-mixin.js +36 -8
  224. package/dist/utilities/visibility-mixin.js.map +1 -1
  225. package/package.json +37 -28
  226. package/dist/components/lists-and-menus/cells/cell/cell.d.ts.map +0 -1
  227. package/dist/components/lists-and-menus/cells/cell/cell.js.map +0 -1
  228. package/dist/components/lists-and-menus/cells/cell/cell.styles.d.ts.map +0 -1
  229. package/dist/components/lists-and-menus/cells/cell/cell.styles.js.map +0 -1
  230. package/dist/components/lists-and-menus/cells/cell/cell.template.d.ts.map +0 -1
  231. package/dist/components/lists-and-menus/cells/cell/cell.template.js.map +0 -1
  232. package/dist/components/lists-and-menus/cells/description-cell/description-cell.d.ts.map +0 -1
  233. package/dist/components/lists-and-menus/cells/description-cell/description-cell.js.map +0 -1
  234. package/dist/components/lists-and-menus/cells/description-cell/description-cell.styles.d.ts.map +0 -1
  235. package/dist/components/lists-and-menus/cells/description-cell/description-cell.styles.js.map +0 -1
  236. package/dist/components/lists-and-menus/cells/description-cell/description-cell.template.d.ts.map +0 -1
  237. package/dist/components/lists-and-menus/cells/description-cell/description-cell.template.js.map +0 -1
  238. package/dist/components/lists-and-menus/cells/drag-handle-cell/drag-handle-cell.d.ts.map +0 -1
  239. package/dist/components/lists-and-menus/cells/drag-handle-cell/drag-handle-cell.i18n.d.ts.map +0 -1
  240. package/dist/components/lists-and-menus/cells/drag-handle-cell/drag-handle-cell.i18n.js.map +0 -1
  241. package/dist/components/lists-and-menus/cells/drag-handle-cell/drag-handle-cell.js.map +0 -1
  242. package/dist/components/lists-and-menus/cells/drag-handle-cell/drag-handle-cell.styles.d.ts.map +0 -1
  243. package/dist/components/lists-and-menus/cells/drag-handle-cell/drag-handle-cell.styles.js.map +0 -1
  244. package/dist/components/lists-and-menus/cells/drag-handle-cell/drag-handle-cell.template.d.ts.map +0 -1
  245. package/dist/components/lists-and-menus/cells/drag-handle-cell/drag-handle-cell.template.js.map +0 -1
  246. package/dist/components/lists-and-menus/cells/icon-cell/icon-cell.d.ts.map +0 -1
  247. package/dist/components/lists-and-menus/cells/icon-cell/icon-cell.js.map +0 -1
  248. package/dist/components/lists-and-menus/cells/icon-cell/icon-cell.styles.d.ts.map +0 -1
  249. package/dist/components/lists-and-menus/cells/icon-cell/icon-cell.styles.js.map +0 -1
  250. package/dist/components/lists-and-menus/cells/icon-cell/icon-cell.template.d.ts.map +0 -1
  251. package/dist/components/lists-and-menus/cells/icon-cell/icon-cell.template.js.map +0 -1
  252. package/dist/components/lists-and-menus/cells/spacer-cell/spacer-cell.d.ts.map +0 -1
  253. package/dist/components/lists-and-menus/cells/spacer-cell/spacer-cell.js.map +0 -1
  254. package/dist/components/lists-and-menus/cells/spacer-cell/spacer-cell.styles.d.ts.map +0 -1
  255. package/dist/components/lists-and-menus/cells/spacer-cell/spacer-cell.styles.js.map +0 -1
  256. package/dist/components/lists-and-menus/cells/spacer-cell/spacer-cell.template.d.ts.map +0 -1
  257. package/dist/components/lists-and-menus/cells/spacer-cell/spacer-cell.template.js.map +0 -1
  258. package/dist/components/lists-and-menus/cells/text-cell/text-cell.d.ts.map +0 -1
  259. package/dist/components/lists-and-menus/cells/text-cell/text-cell.js.map +0 -1
  260. package/dist/components/lists-and-menus/cells/text-cell/text-cell.styles.d.ts.map +0 -1
  261. package/dist/components/lists-and-menus/cells/text-cell/text-cell.styles.js.map +0 -1
  262. package/dist/components/lists-and-menus/cells/text-cell/text-cell.template.d.ts.map +0 -1
  263. package/dist/components/lists-and-menus/cells/text-cell/text-cell.template.js.map +0 -1
  264. package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.d.ts.map +0 -1
  265. package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.js.map +0 -1
  266. package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.styles.d.ts.map +0 -1
  267. package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.styles.js.map +0 -1
  268. package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.template.d.ts.map +0 -1
  269. package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.template.js.map +0 -1
  270. package/dist/components/lists-and-menus/cells/title-cell/title-cell.d.ts.map +0 -1
  271. package/dist/components/lists-and-menus/cells/title-cell/title-cell.js.map +0 -1
  272. package/dist/components/lists-and-menus/cells/title-cell/title-cell.styles.d.ts.map +0 -1
  273. package/dist/components/lists-and-menus/cells/title-cell/title-cell.styles.js.map +0 -1
  274. package/dist/components/lists-and-menus/cells/title-cell/title-cell.template.d.ts.map +0 -1
  275. package/dist/components/lists-and-menus/cells/title-cell/title-cell.template.js.map +0 -1
  276. package/dist/components/lists-and-menus/list/list.d.ts.map +0 -1
  277. package/dist/components/lists-and-menus/list/list.i18n.d.ts.map +0 -1
  278. package/dist/components/lists-and-menus/list/list.i18n.js.map +0 -1
  279. package/dist/components/lists-and-menus/list/list.js.map +0 -1
  280. package/dist/components/lists-and-menus/list/list.styles.d.ts.map +0 -1
  281. package/dist/components/lists-and-menus/list/list.styles.js.map +0 -1
  282. package/dist/components/lists-and-menus/list/list.template.d.ts.map +0 -1
  283. package/dist/components/lists-and-menus/list/list.template.js.map +0 -1
  284. package/dist/components/lists-and-menus/list-item/list-item.d.ts.map +0 -1
  285. package/dist/components/lists-and-menus/list-item/list-item.js.map +0 -1
  286. package/dist/components/lists-and-menus/list-item/list-item.styles.d.ts.map +0 -1
  287. package/dist/components/lists-and-menus/list-item/list-item.styles.js.map +0 -1
  288. package/dist/components/lists-and-menus/list-item/list-item.template.d.ts.map +0 -1
  289. package/dist/components/lists-and-menus/list-item/list-item.template.js.map +0 -1
  290. package/dist/components/lists-and-menus/menu/menu.d.ts.map +0 -1
  291. package/dist/components/lists-and-menus/menu/menu.i18n.d.ts.map +0 -1
  292. package/dist/components/lists-and-menus/menu/menu.i18n.js.map +0 -1
  293. package/dist/components/lists-and-menus/menu/menu.js.map +0 -1
  294. package/dist/components/lists-and-menus/menu/menu.styles.d.ts.map +0 -1
  295. package/dist/components/lists-and-menus/menu/menu.styles.js.map +0 -1
  296. package/dist/components/lists-and-menus/menu/menu.template.d.ts.map +0 -1
  297. package/dist/components/lists-and-menus/menu/menu.template.js.map +0 -1
  298. package/dist/components/status-and-feedback/progress/progress.d.ts +0 -77
  299. package/dist/components/status-and-feedback/progress/progress.d.ts.map +0 -1
  300. package/dist/components/status-and-feedback/progress/progress.i18n.d.ts +0 -5
  301. package/dist/components/status-and-feedback/progress/progress.i18n.d.ts.map +0 -1
  302. package/dist/components/status-and-feedback/progress/progress.i18n.js +0 -4
  303. package/dist/components/status-and-feedback/progress/progress.i18n.js.map +0 -1
  304. package/dist/components/status-and-feedback/progress/progress.js +0 -137
  305. package/dist/components/status-and-feedback/progress/progress.js.map +0 -1
  306. package/dist/components/status-and-feedback/progress/progress.styles.d.ts +0 -2
  307. package/dist/components/status-and-feedback/progress/progress.styles.d.ts.map +0 -1
  308. package/dist/components/status-and-feedback/progress/progress.styles.js +0 -59
  309. package/dist/components/status-and-feedback/progress/progress.styles.js.map +0 -1
  310. package/dist/components/status-and-feedback/progress/progress.template.d.ts +0 -4
  311. package/dist/components/status-and-feedback/progress/progress.template.d.ts.map +0 -1
  312. package/dist/components/status-and-feedback/progress/progress.template.js +0 -26
  313. package/dist/components/status-and-feedback/progress/progress.template.js.map +0 -1
  314. /package/dist/components/{lists-and-menus → actions}/menu/menu.i18n.d.ts +0 -0
  315. /package/dist/components/{lists-and-menus → actions}/menu/menu.i18n.js +0 -0
  316. /package/dist/components/{lists-and-menus → actions}/menu/menu.styles.d.ts +0 -0
  317. /package/dist/components/{lists-and-menus → actions}/menu/menu.template.d.ts +0 -0
  318. /package/dist/components/{lists-and-menus → actions}/menu/menu.template.js +0 -0
  319. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/cell/cell.d.ts +0 -0
  320. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/cell/cell.styles.d.ts +0 -0
  321. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/cell/cell.styles.js +0 -0
  322. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/cell/cell.template.d.ts +0 -0
  323. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/cell/cell.template.js +0 -0
  324. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/description-cell/description-cell.d.ts +0 -0
  325. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/description-cell/description-cell.styles.d.ts +0 -0
  326. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/description-cell/description-cell.styles.js +0 -0
  327. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/description-cell/description-cell.template.d.ts +0 -0
  328. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/description-cell/description-cell.template.js +0 -0
  329. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/drag-handle-cell/drag-handle-cell.d.ts +0 -0
  330. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/drag-handle-cell/drag-handle-cell.i18n.d.ts +0 -0
  331. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/drag-handle-cell/drag-handle-cell.i18n.js +0 -0
  332. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/drag-handle-cell/drag-handle-cell.js +0 -0
  333. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/drag-handle-cell/drag-handle-cell.styles.d.ts +0 -0
  334. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/drag-handle-cell/drag-handle-cell.styles.js +0 -0
  335. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/drag-handle-cell/drag-handle-cell.template.d.ts +0 -0
  336. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/drag-handle-cell/drag-handle-cell.template.js +0 -0
  337. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/icon-cell/icon-cell.d.ts +0 -0
  338. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/icon-cell/icon-cell.styles.d.ts +0 -0
  339. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/icon-cell/icon-cell.styles.js +0 -0
  340. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/icon-cell/icon-cell.template.d.ts +0 -0
  341. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/icon-cell/icon-cell.template.js +0 -0
  342. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/spacer-cell/spacer-cell.d.ts +0 -0
  343. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/spacer-cell/spacer-cell.styles.d.ts +0 -0
  344. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/spacer-cell/spacer-cell.styles.js +0 -0
  345. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/spacer-cell/spacer-cell.template.d.ts +0 -0
  346. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/spacer-cell/spacer-cell.template.js +0 -0
  347. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/text-cell/text-cell.d.ts +0 -0
  348. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/text-cell/text-cell.styles.d.ts +0 -0
  349. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/text-cell/text-cell.styles.js +0 -0
  350. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/text-cell/text-cell.template.d.ts +0 -0
  351. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/text-cell/text-cell.template.js +0 -0
  352. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/timeline-track-cell/timeline-track-cell.d.ts +0 -0
  353. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/timeline-track-cell/timeline-track-cell.js +0 -0
  354. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/timeline-track-cell/timeline-track-cell.styles.d.ts +0 -0
  355. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/timeline-track-cell/timeline-track-cell.styles.js +0 -0
  356. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/timeline-track-cell/timeline-track-cell.template.d.ts +0 -0
  357. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/timeline-track-cell/timeline-track-cell.template.js +0 -0
  358. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/title-cell/title-cell.d.ts +0 -0
  359. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/title-cell/title-cell.styles.d.ts +0 -0
  360. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/title-cell/title-cell.styles.js +0 -0
  361. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/title-cell/title-cell.template.d.ts +0 -0
  362. /package/dist/components/{lists-and-menus → lists-and-tables}/cells/title-cell/title-cell.template.js +0 -0
  363. /package/dist/components/{lists-and-menus → lists-and-tables}/list/list.d.ts +0 -0
  364. /package/dist/components/{lists-and-menus → lists-and-tables}/list/list.i18n.d.ts +0 -0
  365. /package/dist/components/{lists-and-menus → lists-and-tables}/list/list.i18n.js +0 -0
  366. /package/dist/components/{lists-and-menus → lists-and-tables}/list/list.styles.d.ts +0 -0
  367. /package/dist/components/{lists-and-menus → lists-and-tables}/list/list.template.d.ts +0 -0
  368. /package/dist/components/{lists-and-menus → lists-and-tables}/list/list.template.js +0 -0
  369. /package/dist/components/{lists-and-menus → lists-and-tables}/list-item/list-item.d.ts +0 -0
  370. /package/dist/components/{lists-and-menus → lists-and-tables}/list-item/list-item.js +0 -0
  371. /package/dist/components/{lists-and-menus → lists-and-tables}/list-item/list-item.styles.d.ts +0 -0
  372. /package/dist/components/{lists-and-menus → lists-and-tables}/list-item/list-item.styles.js +0 -0
  373. /package/dist/components/{lists-and-menus → lists-and-tables}/list-item/list-item.template.d.ts +0 -0
  374. /package/dist/components/{lists-and-menus → lists-and-tables}/list-item/list-item.template.js +0 -0
@@ -0,0 +1,359 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ /**
8
+ * Nederlandse Digitale Dienst Table Component (Lit + TypeScript)
9
+ *
10
+ * Exports both NLDDTable and NLDDTableRow.
11
+ *
12
+ * A data table presented as a boxed surface (rounded corners, an inset border
13
+ * ring, a base or tinted fill) that aligns content into shared columns using a
14
+ * CSS grid + subgrid. Row dividers run full-bleed to the edges; the inline
15
+ * padding lives on the rows, so it insets the cell content but not the dividers.
16
+ * Column widths are defined ONCE on the table via the `columns` attribute (a
17
+ * CSS grid track list), like an HTML `<colgroup>`.
18
+ * Rows are `<nldd-table-row>` elements whose children are the existing
19
+ * `nldd-cell` family — every row uses `grid-template-columns: subgrid`, so all
20
+ * rows snap to the same columns.
21
+ *
22
+ * Header: put one `<nldd-table-row slot="header">` in the `header` slot. Its
23
+ * cells become column headers (role="columnheader").
24
+ *
25
+ * Responsive: two complementary strategies. (1) Give columns a minimum width
26
+ * (e.g. `minmax(160px,1fr)`) — the table is its own scroll container, so it
27
+ * scrolls horizontally when too narrow (no wrapper needed).
28
+ * (2) Drop columns at breakpoints: provide `sm-columns`/`md-columns`/
29
+ * `lg-columns` (shorter track lists) and hide the dropped columns' cells with
30
+ * `hide-below`/`hide-above` at the matching breakpoint. The table picks the
31
+ * track list for its own width via the standard sm/md/lg breakpoints.
32
+ *
33
+ * Selection and sorting are intentionally NOT built in: add a column with an
34
+ * `nldd-cell` + `nldd-checkbox` for selection, and drive sorting from an
35
+ * external control (e.g. a dropdown).
36
+ *
37
+ * @element nldd-table
38
+ *
39
+ * @attr {'base'|'tinted'} background - Surface fill of the box (default 'base')
40
+ * @attr {string} columns - CSS grid track list defining the columns once, e.g. "minmax(200px,1fr) 120px 80px"
41
+ * @attr {string} sm-columns - Track list when the table is sm-wide (≤640px); falls back to `columns`
42
+ * @attr {string} md-columns - Track list when the table is md-wide (641–1007px); falls back to `columns`
43
+ * @attr {string} lg-columns - Track list when the table is lg-wide (≥1008px); falls back to `columns`
44
+ * @attr {string} accessible-label - Accessible name for the table. Strongly recommended — role="table" needs a name. A missing label is DEV-warned and a generic fallback name is used.
45
+ * @attr {boolean} selectable - Opt into row selection: body rows expose aria-selected (true/false). Without it, rows omit aria-selected so a non-selectable table isn't announced as selectable.
46
+ * @attr {string} empty-text - Text for the default empty-state dialog (falls back to the Dutch i18n default). Ignored when `[slot=empty]` is filled
47
+ * @attr {string} empty-supporting-text - Supporting text for the default empty-state dialog. Ignored when `[slot=empty]` is filled
48
+ * @attr {object} translations - Override translation keys; unset keys fall back to Dutch
49
+ *
50
+ * @slot header - One `<nldd-table-row slot="header">` carrying the column headers
51
+ * @slot - The body rows (`<nldd-table-row>`)
52
+ * @slot empty - Shown when there are no visible body rows (the header is hidden too). Defaults to `nldd-inline-dialog` with `empty-text` / `empty-supporting-text`
53
+ *
54
+ * @element nldd-table-row
55
+ *
56
+ * @attr {boolean} selected - Highlights the row (same treatment as nldd-list-item[selected])
57
+ *
58
+ * @slot - The row's cells (`nldd-cell` and variants), one per column
59
+ */
60
+ import { LitElement } from 'lit';
61
+ import { customElement, property } from 'lit/decorators.js';
62
+ import { tableStyles, tableRowStyles } from './table.styles.js';
63
+ import { tableTemplate, tableRowTemplate } from './table.template.js';
64
+ import { nlddTableTranslations } from './table.i18n.js';
65
+ import { breakpoints } from '../../../assets/styles/breakpoints.js';
66
+ import '../../status-and-feedback/inline-dialog/inline-dialog.js';
67
+ // Standard container breakpoints. The table picks its track list against its
68
+ // own content-box width; the same values back the cells' `hide-below`.
69
+ const SM_MAX = parseInt(breakpoints.smMax, 10);
70
+ const MD_MAX = parseInt(breakpoints.mdMax, 10);
71
+ // # nldd-table
72
+ let NLDDTable = class NLDDTable extends LitElement {
73
+ constructor() {
74
+ super(...arguments);
75
+ this.background = 'base';
76
+ /** CSS grid track list applied once as the table's columns. */
77
+ this.columns = '';
78
+ /** Track list when the table is sm-wide (≤640px); falls back to `columns`. */
79
+ this.smColumns = '';
80
+ /** Track list when the table is md-wide (641–1007px); falls back to `columns`. */
81
+ this.mdColumns = '';
82
+ /** Track list when the table is lg-wide (≥1008px); falls back to `columns`. */
83
+ this.lgColumns = '';
84
+ this.accessibleLabel = '';
85
+ /** Opt into row selection. When set, body rows expose aria-selected so
86
+ * assistive tech conveys the selection state; without it, rows omit the
87
+ * attribute so a non-selectable table isn't announced as selectable
88
+ * (ARIA 1.2 §6.6.5). The visual `selected` tint on a row works either way. */
89
+ this.selectable = false;
90
+ /** Text for the default empty-state dialog. Falls back to the Dutch i18n
91
+ * default. Ignored when consumers slot their own `[slot=empty]` content. */
92
+ this.emptyText = '';
93
+ /** Optional supporting text for the default empty-state dialog. Ignored
94
+ * when consumers slot their own `[slot=empty]` content. */
95
+ this.emptySupportingText = '';
96
+ this.translations = {};
97
+ this._warnedColumns = false;
98
+ this._warnedLabel = false;
99
+ /** Last observed content-box width, to resolve the active track list. */
100
+ this._width = 0;
101
+ }
102
+ _t(key) {
103
+ return this.translations[key] ?? nlddTableTranslations[key];
104
+ }
105
+ connectedCallback() {
106
+ super.connectedCallback();
107
+ // display:grid strips native table semantics — restore them for AT.
108
+ this.setAttribute('role', 'table');
109
+ // Cells (VisibilityMixin) hide/show against a container named
110
+ // 'cells-container'. Set it here, like nldd-list, so cell hide-below/
111
+ // hide-above measure the table width (not the row). Inline because
112
+ // Safari ignores container-name set from a shadow stylesheet.
113
+ this.style.containerType = 'inline-size';
114
+ this.style.containerName = 'cells-container';
115
+ // An element can't query its OWN container, so the responsive track list
116
+ // is chosen from the observed width (the cells keep their @container).
117
+ // The same observer keeps the scroll affordance (focusable when the box
118
+ // overflows) in sync.
119
+ this._resizeObserver = new ResizeObserver((entries) => {
120
+ this._width = entries[0].contentRect.width;
121
+ this._applyColumns();
122
+ this._syncHostA11y();
123
+ });
124
+ this._resizeObserver.observe(this);
125
+ }
126
+ disconnectedCallback() {
127
+ super.disconnectedCallback();
128
+ this._resizeObserver?.disconnect();
129
+ this._resizeObserver = undefined;
130
+ this._rowsObserver?.disconnect();
131
+ this._rowsObserver = undefined;
132
+ }
133
+ firstUpdated() {
134
+ // Recompute the empty state when body rows are slotted, added/removed, or
135
+ // toggled [hidden] (consumer-driven filtering) — mirrors nldd-list.
136
+ const slot = this.shadowRoot?.querySelector('slot:not([name])');
137
+ slot?.addEventListener('slotchange', () => this._updateEmpty());
138
+ this._rowsObserver = new MutationObserver((mutations) => {
139
+ const relevant = mutations.some((m) => {
140
+ if (m.type === 'childList')
141
+ return m.target === this;
142
+ if (m.type === 'attributes' && m.attributeName === 'hidden') {
143
+ return m.target instanceof Element && m.target.parentElement === this;
144
+ }
145
+ return false;
146
+ });
147
+ if (relevant)
148
+ this._updateEmpty();
149
+ });
150
+ this._rowsObserver.observe(this, {
151
+ childList: true,
152
+ subtree: true,
153
+ attributes: true,
154
+ attributeFilter: ['hidden'],
155
+ });
156
+ this._updateEmpty();
157
+ }
158
+ /** Show the empty-state slot when there are no visible body rows (header
159
+ * excluded). Toggled imperatively (like the tabindex affordance) so it
160
+ * doesn't schedule a reactive re-render out of firstUpdated. The `is-empty`
161
+ * host class drives hiding the header (CSS) so only the message shows. */
162
+ _updateEmpty() {
163
+ const empty = this.shadowRoot?.querySelector('.table__empty');
164
+ if (!empty)
165
+ return;
166
+ const slot = this.shadowRoot?.querySelector('slot:not([name])');
167
+ const rows = (slot?.assignedElements() ?? []).filter((el) => el.localName === 'nldd-table-row');
168
+ const isEmpty = rows.length === 0 || rows.every((row) => row.hasAttribute('hidden'));
169
+ empty.toggleAttribute('hidden', !isEmpty);
170
+ this.classList.toggle('is-empty', isEmpty);
171
+ }
172
+ /** The track list for the current width: a breakpoint override when set,
173
+ * otherwise the base `columns`. */
174
+ _activeColumns() {
175
+ if (this._width <= SM_MAX)
176
+ return this.smColumns || this.columns;
177
+ if (this._width <= MD_MAX)
178
+ return this.mdColumns || this.columns;
179
+ return this.lgColumns || this.columns;
180
+ }
181
+ _applyColumns() {
182
+ const cols = this._activeColumns();
183
+ if (cols) {
184
+ this.style.setProperty('--_columns', cols);
185
+ }
186
+ else {
187
+ this.style.removeProperty('--_columns');
188
+ }
189
+ }
190
+ /** Make the table focusable while it scrolls horizontally so keyboard users
191
+ * can pan it (mirrors nldd-code-viewer / nldd-rich-text), and keep its
192
+ * accessible name in sync. The table is its own scroll container
193
+ * (overflow-x: auto); the overflow-x check (not width alone) is defensive.
194
+ * accessible-label is the name (role="table" needs one); when it is absent a
195
+ * generic fallback keeps the table (and any focusable region) named. */
196
+ _syncHostA11y() {
197
+ const overflowX = getComputedStyle(this).overflowX;
198
+ const scrollableOverflow = overflowX === 'auto' || overflowX === 'scroll';
199
+ const scrollable = scrollableOverflow && this.scrollWidth > this.clientWidth;
200
+ if (scrollable) {
201
+ this.setAttribute('tabindex', '0');
202
+ }
203
+ else {
204
+ this.removeAttribute('tabindex');
205
+ }
206
+ // accessible-label is the table's name (role="table" requires one). When
207
+ // it is absent we fall back to a generic name so the table is never
208
+ // nameless — and any focusable scroll region always has a name (SC 4.1.2).
209
+ // A missing label is still DEV-warned in updated() to prompt a meaningful
210
+ // one rather than rely on the fallback.
211
+ if (this.accessibleLabel) {
212
+ this.setAttribute('aria-label', this.accessibleLabel);
213
+ }
214
+ else {
215
+ this.setAttribute('aria-label', this._t('components.table.accessible-label'));
216
+ }
217
+ }
218
+ updated(changed) {
219
+ if (changed.has('columns') || changed.has('smColumns')
220
+ || changed.has('mdColumns') || changed.has('lgColumns')) {
221
+ this._applyColumns();
222
+ }
223
+ if (changed.has('accessibleLabel')) {
224
+ this._syncHostA11y();
225
+ }
226
+ if (changed.has('selectable')) {
227
+ // Selectability gates each body row's aria-selected; re-sync them.
228
+ for (const row of this.querySelectorAll('nldd-table-row')) {
229
+ row._syncAriaSelected();
230
+ }
231
+ }
232
+ if (import.meta.env?.DEV && !this.columns && !this._warnedColumns) {
233
+ this._warnedColumns = true;
234
+ console.warn('<nldd-table>: no `columns` set. Define a CSS grid track list (e.g. columns="200px 1fr 80px") so cells align into columns.');
235
+ }
236
+ else if (this.columns) {
237
+ this._warnedColumns = false;
238
+ }
239
+ if (import.meta.env?.DEV && !this.accessibleLabel && !this._warnedLabel) {
240
+ this._warnedLabel = true;
241
+ console.warn('<nldd-table>: no `accessible-label` set. role="table" needs an accessible name — add accessible-label="…".');
242
+ }
243
+ else if (this.accessibleLabel) {
244
+ this._warnedLabel = false;
245
+ }
246
+ }
247
+ render() {
248
+ return tableTemplate(this.emptyText || this._t('components.table.empty-text'), this.emptySupportingText);
249
+ }
250
+ };
251
+ NLDDTable.styles = tableStyles;
252
+ __decorate([
253
+ property({ type: String, reflect: true })
254
+ ], NLDDTable.prototype, "background", void 0);
255
+ __decorate([
256
+ property({ type: String, reflect: true })
257
+ ], NLDDTable.prototype, "columns", void 0);
258
+ __decorate([
259
+ property({ type: String, reflect: true, attribute: 'sm-columns' })
260
+ ], NLDDTable.prototype, "smColumns", void 0);
261
+ __decorate([
262
+ property({ type: String, reflect: true, attribute: 'md-columns' })
263
+ ], NLDDTable.prototype, "mdColumns", void 0);
264
+ __decorate([
265
+ property({ type: String, reflect: true, attribute: 'lg-columns' })
266
+ ], NLDDTable.prototype, "lgColumns", void 0);
267
+ __decorate([
268
+ property({ type: String, reflect: true, attribute: 'accessible-label' })
269
+ ], NLDDTable.prototype, "accessibleLabel", void 0);
270
+ __decorate([
271
+ property({ type: Boolean, reflect: true })
272
+ ], NLDDTable.prototype, "selectable", void 0);
273
+ __decorate([
274
+ property({ type: String, attribute: 'empty-text' })
275
+ ], NLDDTable.prototype, "emptyText", void 0);
276
+ __decorate([
277
+ property({ type: String, attribute: 'empty-supporting-text' })
278
+ ], NLDDTable.prototype, "emptySupportingText", void 0);
279
+ __decorate([
280
+ property({ type: Object })
281
+ ], NLDDTable.prototype, "translations", void 0);
282
+ NLDDTable = __decorate([
283
+ customElement('nldd-table')
284
+ ], NLDDTable);
285
+ export { NLDDTable };
286
+ // # nldd-table-row
287
+ let NLDDTableRow = class NLDDTableRow extends LitElement {
288
+ constructor() {
289
+ super(...arguments);
290
+ /** Selects (highlights) the row. The visual tint applies whenever set; the
291
+ * state is also reflected to aria-selected when the parent table is
292
+ * `selectable`, so assistive tech conveys it. Consumer-driven (e.g. a
293
+ * checkbox cell). */
294
+ this.selected = false;
295
+ this._onSlotChangeBound = this._onSlotChange.bind(this);
296
+ }
297
+ connectedCallback() {
298
+ super.connectedCallback();
299
+ // display:grid strips native row semantics — restore them for AT.
300
+ this.setAttribute('role', 'row');
301
+ this._syncAriaSelected();
302
+ }
303
+ updated(changed) {
304
+ if (changed.has('selected')) {
305
+ this._syncAriaSelected();
306
+ }
307
+ }
308
+ /** A header row lives in the table's `header` slot. */
309
+ get _isHeader() {
310
+ return this.getAttribute('slot') === 'header';
311
+ }
312
+ /** Reflect `selected` to aria-selected — but only when the parent table is
313
+ * `selectable`, so a non-selectable table doesn't announce a false
314
+ * selection affordance (ARIA 1.2 §6.6.5). Header rows are never selectable.
315
+ * @internal Re-invoked by the parent table when its `selectable` changes. */
316
+ _syncAriaSelected() {
317
+ const selectable = !this._isHeader
318
+ && this.closest('nldd-table')?.hasAttribute('selectable') === true;
319
+ if (selectable) {
320
+ this.setAttribute('aria-selected', String(this.selected));
321
+ }
322
+ else {
323
+ this.removeAttribute('aria-selected');
324
+ }
325
+ }
326
+ _onSlotChange(e) {
327
+ const slot = e.target;
328
+ const cells = slot.assignedElements();
329
+ const cellRole = this._isHeader ? 'columnheader' : 'cell';
330
+ for (const cell of cells) {
331
+ // Cells need explicit roles since the grid layout drops native
332
+ // table semantics.
333
+ cell.setAttribute('role', cellRole);
334
+ // A generic nldd-cell defaults to width="fit-content" (reflected),
335
+ // which would shrink-wrap inside a grid track. Default it to fill
336
+ // the column. The reflected default is indistinguishable from an
337
+ // explicit width="fit-content", so both become "full"; an author
338
+ // who set a length or "full" is left untouched.
339
+ if (cell.localName === 'nldd-cell') {
340
+ const w = cell.getAttribute('width');
341
+ if (w === null || w === '' || w === 'fit-content') {
342
+ cell.setAttribute('width', 'full');
343
+ }
344
+ }
345
+ }
346
+ }
347
+ render() {
348
+ return tableRowTemplate(this._onSlotChangeBound);
349
+ }
350
+ };
351
+ NLDDTableRow.styles = tableRowStyles;
352
+ __decorate([
353
+ property({ type: Boolean, reflect: true })
354
+ ], NLDDTableRow.prototype, "selected", void 0);
355
+ NLDDTableRow = __decorate([
356
+ customElement('nldd-table-row')
357
+ ], NLDDTableRow);
358
+ export { NLDDTableRow };
359
+ //# sourceMappingURL=table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,i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AI,GAAG,CAAC,CAAC,MAAyB,CAAC;QACzC,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtC,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC;QAC1D,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YAC1B,+DAA+D;YAC/D,mBAAmB;YACnB,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;YACpC,mEAAmE;YACnE,kEAAkE;YAClE,iEAAiE;YACjE,iEAAiE;YACjE,gDAAgD;YAChD,IAAI,IAAI,CAAC,SAAS,KAAK,WAAW,EAAE,CAAC;gBACpC,MAAM,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;gBACrC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,aAAa,EAAE,CAAC;oBACnD,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;gBACpC,CAAC;YACF,CAAC;QACF,CAAC;IACF,CAAC;IAEQ,MAAM;QACd,OAAO,gBAAgB,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAClD,CAAC;;AAjEe,mBAAM,GAAG,cAAc,AAAjB,CAAkB;AAOxC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAC1B;AARL,YAAY;IADxB,aAAa,CAAC,gBAAgB,CAAC;GACnB,YAAY,CAqExB"}
@@ -0,0 +1,3 @@
1
+ export declare const tableStyles: import("lit").CSSResult;
2
+ export declare const tableRowStyles: import("lit").CSSResult;
3
+ //# sourceMappingURL=table.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,yBAyEvB,CAAC;AAEF,eAAO,MAAM,cAAc,yBA0C1B,CAAC"}
@@ -0,0 +1,120 @@
1
+ import { css } from 'lit';
2
+ import { inheritedTextReset } from '../../../assets/styles/slotted-reset.js';
3
+ export const tableStyles = css `
4
+ :host {
5
+ --_columns: none;
6
+ --_corner-radius: var(--semantics-tables-corner-radius);
7
+ --_column-gap: var(--semantics-tables-column-gap);
8
+ --_background-color: var(--semantics-surfaces-base-background-color);
9
+ --_border-color: var(--semantics-surfaces-base-border-color);
10
+ /* Shared so the focus-visible rule can compose the focus ring over the
11
+ border ring with var(...) instead of repeating the inset literal. */
12
+ --_border-shadow: inset 0 0 0 var(--semantics-tables-border-width) var(--_border-color);
13
+
14
+ ${inheritedTextReset}
15
+ box-sizing: border-box;
16
+ display: grid;
17
+ grid-template-columns: var(--_columns);
18
+ width: 100%;
19
+ /* The table is always a boxed surface and its own horizontal scroll
20
+ container: the columns scroll when they don't fit and the table is made
21
+ focusable in JS while it scrolls. overflow-y stays hidden so the rounded
22
+ corners keep clipping the rows (and their full-bleed dividers). */
23
+ border-radius: var(--_corner-radius);
24
+ box-shadow: var(--_border-shadow);
25
+ background-color: var(--_background-color);
26
+ overflow-x: auto;
27
+ overflow-y: hidden;
28
+ column-gap: var(--_column-gap);
29
+ row-gap: 0;
30
+ }
31
+
32
+ :host([hidden]) {
33
+ display: none;
34
+ }
35
+
36
+ /* Default surface is base; tinted is opt-in. */
37
+ :host([background="tinted"]) {
38
+ --_background-color: var(--semantics-surfaces-tinted-background-color);
39
+ --_border-color: var(--semantics-surfaces-tinted-border-color);
40
+ }
41
+
42
+ /* Keyboard focus while the table scrolls (it gains tabindex in JS): the
43
+ project focus ring, layered over the border ring (mirrors nldd-code-viewer).
44
+ Focus first (outer), border second (inner). */
45
+ :host(:focus-visible) {
46
+ outline: var(--semantics-focus-ring-outline);
47
+ outline-offset: var(--semantics-focus-ring-outline-offset);
48
+ box-shadow: var(--semantics-focus-ring-box-shadow), var(--_border-shadow);
49
+ }
50
+
51
+ :host(:focus:not(:focus-visible)) {
52
+ outline: none;
53
+ }
54
+
55
+ slot {
56
+ display: contents;
57
+ }
58
+
59
+ /* Empty state spans all columns below the rows; its own padding gives the
60
+ message room. The header is hidden in the empty state (only the message). */
61
+ .table__empty {
62
+ grid-column: 1 / -1;
63
+ }
64
+
65
+ .table__empty[hidden] {
66
+ display: none;
67
+ }
68
+
69
+ .table__empty-cell {
70
+ padding: var(--primitives-space-16);
71
+ }
72
+
73
+ :host(.is-empty) slot[name="header"] {
74
+ display: none;
75
+ }
76
+ `;
77
+ export const tableRowStyles = css `
78
+ :host {
79
+ --_min-height: var(--semantics-tables-row-min-height);
80
+ --_padding-block: var(--semantics-tables-row-padding-block);
81
+ --_padding-inline: var(--semantics-tables-row-padding-inline);
82
+ --_divider-color: var(--semantics-tables-border-color);
83
+ --_divider-thickness: var(--semantics-tables-border-width);
84
+
85
+ ${inheritedTextReset}
86
+ box-sizing: border-box;
87
+ display: grid;
88
+ grid-column: 1 / -1;
89
+ grid-template-columns: subgrid;
90
+ min-height: var(--_min-height);
91
+ border-bottom: var(--_divider-thickness) solid var(--_divider-color);
92
+ padding-block: var(--_padding-block);
93
+ padding-inline: var(--_padding-inline);
94
+ align-items: center;
95
+ }
96
+
97
+ :host([hidden]) {
98
+ display: none;
99
+ }
100
+
101
+ /* Selection: a full-bleed row tint (reaches the box edges, corners clipped by
102
+ the table) plus the selected content color, from the shared table tokens. */
103
+ :host([selected]) {
104
+ background-color: var(--semantics-tables-row-is-selected-background-color);
105
+ --context-cell-content-color: var(--semantics-tables-row-is-selected-content-color);
106
+ }
107
+
108
+ /* The box's border ring is the table's outer frame, so the last row drops its
109
+ divider (no doubling on the ring). Inner dividers run full-bleed to the
110
+ sides — the padding only insets the cell content, not the row's border. */
111
+ :host(:last-child) {
112
+ border-bottom: none;
113
+ }
114
+
115
+ /* display:contents so the cells become grid items of this subgrid. */
116
+ slot {
117
+ display: contents;
118
+ }
119
+ `;
120
+ //# sourceMappingURL=table.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.styles.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA;;;;;;;;;;;IAW1B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8DrB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;IAQ7B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCrB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare function tableTemplate(emptyText: string, emptySupportingText: string): import("lit-html").TemplateResult<1>;
2
+ export declare function tableRowTemplate(onSlotChange: (e: Event) => void): import("lit-html").TemplateResult<1>;
3
+ //# sourceMappingURL=table.template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.template.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.template.ts"],"names":[],"mappings":"AAEA,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,wCA0B3E;AAED,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,wCAIhE"}
@@ -0,0 +1,34 @@
1
+ import { html, nothing } from 'lit';
2
+ export function tableTemplate(emptyText, emptySupportingText) {
3
+ // Two bare slots (no rowgroup wrappers): the slots are display:contents so
4
+ // the slotted <nldd-table-row> elements become direct grid items of the
5
+ // table and can use `grid-template-columns: subgrid`. The header slot is
6
+ // rendered first so the header row sits above the body rows.
7
+ //
8
+ // The empty state spans all columns below the rows. It keeps role="row" >
9
+ // role="cell" so the host stays a valid role="table" (an inline-dialog as a
10
+ // direct table child would be invalid ARIA); it's removed from the a11y tree
11
+ // while [hidden]. Slot content (`[slot=empty]`) overrides the default dialog.
12
+ // Starts hidden — the table toggles `hidden` imperatively from _updateEmpty
13
+ // (avoids a reactive re-render scheduled out of firstUpdated).
14
+ return html `
15
+ <slot name="header"></slot>
16
+ <slot></slot>
17
+ <div class="table__empty" role="row" hidden>
18
+ <div class="table__empty-cell" role="cell">
19
+ <slot name="empty">
20
+ <nldd-inline-dialog
21
+ text=${emptyText}
22
+ supporting-text=${emptySupportingText || nothing}
23
+ ></nldd-inline-dialog>
24
+ </slot>
25
+ </div>
26
+ </div>
27
+ `;
28
+ }
29
+ export function tableRowTemplate(onSlotChange) {
30
+ // display:contents (in styles) so the slotted cells are grid items of this
31
+ // row's subgrid. The slot's ::after renders the selected background.
32
+ return html `<slot @slotchange=${onSlotChange}></slot>`;
33
+ }
34
+ //# sourceMappingURL=table.template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.template.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEpC,MAAM,UAAU,aAAa,CAAC,SAAiB,EAAE,mBAA2B;IAC3E,2EAA2E;IAC3E,wEAAwE;IACxE,yEAAyE;IACzE,6DAA6D;IAC7D,EAAE;IACF,0EAA0E;IAC1E,4EAA4E;IAC5E,6EAA6E;IAC7E,8EAA8E;IAC9E,4EAA4E;IAC5E,+DAA+D;IAC/D,OAAO,IAAI,CAAA;;;;;;;aAOC,SAAS;wBACE,mBAAmB,IAAI,OAAO;;;;;EAKpD,CAAC;AACH,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,YAAgC;IAChE,2EAA2E;IAC3E,qEAAqE;IACrE,OAAO,IAAI,CAAA,qBAAqB,YAAY,UAAU,CAAC;AACxD,CAAC"}
@@ -36,7 +36,7 @@
36
36
  * @fires dismiss - Fired when the dismiss button is clicked; detail: { item }
37
37
  */
38
38
  import { LitElement } from 'lit';
39
- import './../../lists-and-menus/menu/menu.js';
39
+ import './../../actions/menu/menu.js';
40
40
  export interface NLDDReorderEventDetail {
41
41
  fromIndex: number;
42
42
  toIndex: number;
@@ -1 +1 @@
1
- {"version":3,"file":"document-tab-bar.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/document-tab-bar/document-tab-bar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAMjC,OAAO,sCAAsC,CAAC;AAO9C,MAAM,WAAW,sBAAsB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CAChB;AAKD,qBACa,sBAAuB,SAAQ,UAAU;IACrD,OAAgB,MAAM,0BAA4B;IAElD,OAAO,CAAC,MAAM,CAAC,UAAU,CAAK;IAC9B,QAAQ,CAAC,GAAG,SAAuE;IAGnF,QAAQ,UAAS;IAGjB,IAAI,SAAM;IAGV,cAAc,SAAM;IAGpB,SAAS,SAAM;IAGf,mBAAmB,SAAM;IAGzB,IAAI,SAAM;IAEV;;;;;OAKG;IAEH,QAAQ,UAAS;IAEjB,OAAO,CAAC,mBAAmB,CAA+B;IAEjD,iBAAiB,IAAI,IAAI;IAOzB,oBAAoB,IAAI,IAAI;IAMrC,OAAO,CAAC,cAAc;IAYtB,gEAAgE;IAEhE,gCAAgC,SAAW;IAE3C,yGAAyG;IAEzG,oBAAoB,UAAS;IAE7B,gEAAgE;IAEhE,WAAW,UAAS;IAEX,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAM5C,YAAY,IAAI,IAAI;IAQpB,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IASzB,MAAM;CAGf;;;;;;;;;;;AAKD,qBACa,kBAA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yles, documentTabBarItemStyles } from './document-tab-b
48
48
  import { documentTabBarTemplate, documentTabBarItemTemplate } from './document-tab-bar.template.js';
49
49
  import { withTranslations } from '../../../utilities/with-translations.js';
50
50
  import { nlddDocumentTabBarTranslations } from './document-tab-bar.i18n.js';
51
- import './../../lists-and-menus/menu/menu.js';
51
+ import './../../actions/menu/menu.js';
52
52
  // Pointer movement threshold in px before drag mode activates.
53
53
  // Distinguishes a click (select) from a drag (reorder).
54
54
  const DRAG_THRESHOLD = 5;