@db-ux/wc-core-components 4.12.0 → 4.13.0-shell-f221975

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 (548) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/agent/ControlPanelBrand.md +9 -0
  3. package/agent/ControlPanelDesktop.md +46 -0
  4. package/agent/ControlPanelMeta.md +13 -0
  5. package/agent/ControlPanelMobile.md +37 -0
  6. package/agent/ControlPanelNavigation.md +19 -0
  7. package/agent/ControlPanelNavigationItem.md +33 -0
  8. package/agent/ControlPanelPrimaryActions.md +13 -0
  9. package/agent/ControlPanelSecondaryActions.md +19 -0
  10. package/agent/Drawer.md +0 -8
  11. package/agent/Shell.md +24 -0
  12. package/agent/ShellSubNavigation.md +6 -0
  13. package/agent/_instructions.md +11 -6
  14. package/bundle/db-accordion-item.js +1 -1
  15. package/bundle/db-accordion.js +1 -1
  16. package/bundle/db-badge.js +1 -1
  17. package/bundle/db-button.js +1 -1
  18. package/bundle/db-card.js +1 -1
  19. package/bundle/db-checkbox.js +1 -1
  20. package/bundle/db-control-panel-brand.d.ts +11 -0
  21. package/bundle/db-control-panel-brand.js +1 -0
  22. package/bundle/db-control-panel-desktop.d.ts +11 -0
  23. package/bundle/db-control-panel-desktop.js +1 -0
  24. package/bundle/db-control-panel-flat-icon.d.ts +11 -0
  25. package/bundle/db-control-panel-flat-icon.js +1 -0
  26. package/bundle/{db-navigation-item.d.ts → db-control-panel-meta.d.ts} +4 -4
  27. package/bundle/db-control-panel-meta.js +1 -0
  28. package/bundle/db-control-panel-mobile.d.ts +11 -0
  29. package/bundle/db-control-panel-mobile.js +1 -0
  30. package/bundle/db-control-panel-navigation-item-group.d.ts +11 -0
  31. package/bundle/db-control-panel-navigation-item-group.js +1 -0
  32. package/bundle/db-control-panel-navigation-item.d.ts +11 -0
  33. package/bundle/db-control-panel-navigation-item.js +1 -0
  34. package/bundle/db-control-panel-navigation.d.ts +11 -0
  35. package/bundle/db-control-panel-navigation.js +1 -0
  36. package/bundle/db-control-panel-primary-actions.d.ts +11 -0
  37. package/bundle/db-control-panel-primary-actions.js +1 -0
  38. package/bundle/db-control-panel-secondary-actions.d.ts +11 -0
  39. package/bundle/db-control-panel-secondary-actions.js +1 -0
  40. package/bundle/db-control-panel-skip-navigation.d.ts +11 -0
  41. package/bundle/db-control-panel-skip-navigation.js +1 -0
  42. package/bundle/db-custom-button.js +1 -1
  43. package/bundle/db-custom-select-dropdown.js +1 -1
  44. package/bundle/db-custom-select-form-field.js +1 -1
  45. package/bundle/db-custom-select-list-item.js +1 -1
  46. package/bundle/db-custom-select-list.js +1 -1
  47. package/bundle/db-custom-select.js +1 -1
  48. package/bundle/db-divider.js +1 -1
  49. package/bundle/{db-navigation.d.ts → db-drawer-footer.d.ts} +4 -4
  50. package/bundle/db-drawer-footer.js +1 -0
  51. package/bundle/{db-page.d.ts → db-drawer-header.d.ts} +4 -4
  52. package/bundle/db-drawer-header.js +1 -0
  53. package/bundle/db-drawer.js +1 -1
  54. package/bundle/db-icon.js +1 -1
  55. package/bundle/db-infotext.js +1 -1
  56. package/bundle/db-input.js +1 -1
  57. package/bundle/db-link.js +1 -1
  58. package/bundle/db-notification.js +1 -1
  59. package/bundle/db-popover.js +1 -1
  60. package/bundle/db-radio.js +1 -1
  61. package/bundle/db-section.js +1 -1
  62. package/bundle/db-select.js +1 -1
  63. package/bundle/{db-header.d.ts → db-shell-content.d.ts} +4 -4
  64. package/bundle/db-shell-content.js +1 -0
  65. package/bundle/db-shell-sub-navigation.d.ts +11 -0
  66. package/bundle/db-shell-sub-navigation.js +1 -0
  67. package/bundle/{db-brand.d.ts → db-shell.d.ts} +4 -4
  68. package/bundle/db-shell.js +1 -0
  69. package/bundle/db-stack.js +1 -1
  70. package/bundle/db-switch.js +1 -1
  71. package/bundle/db-tab-item.js +1 -1
  72. package/bundle/db-tab-list.js +1 -1
  73. package/bundle/db-tab-panel.js +1 -1
  74. package/bundle/db-table-body.js +1 -1
  75. package/bundle/db-table-caption.js +1 -1
  76. package/bundle/db-table-data-cell.js +1 -1
  77. package/bundle/db-table-footer.js +1 -1
  78. package/bundle/db-table-head.js +1 -1
  79. package/bundle/db-table-header-cell.js +1 -1
  80. package/bundle/db-table-row.js +1 -1
  81. package/bundle/db-table.js +1 -1
  82. package/bundle/db-tabs.js +1 -1
  83. package/bundle/db-tag.js +1 -1
  84. package/bundle/db-textarea.js +1 -1
  85. package/bundle/db-tooltip.js +1 -1
  86. package/bundle/index.js +1 -1
  87. package/bundle/p-6eFmbk2q.js +1 -0
  88. package/bundle/p-9FBjLlz8.js +1 -0
  89. package/bundle/p-B2-mqMAV.js +1 -0
  90. package/bundle/{p-G57oLrr4.js → p-B3HO0pCt.js} +1 -1
  91. package/bundle/p-B5p2TBcA.js +1 -0
  92. package/bundle/{p-BQov9sQb.js → p-BSn68Z6b.js} +1 -1
  93. package/bundle/p-BT3wZY6f.js +1 -0
  94. package/bundle/p-BWWm2aVB.js +1 -0
  95. package/bundle/{p-Cc5hdI0x.js → p-B_cQ652T.js} +1 -1
  96. package/bundle/{p-DcgghWWs.js → p-BbEdAR4o.js} +1 -1
  97. package/bundle/{p-C0JLpZ9Q.js → p-BtQh3jbl.js} +1 -1
  98. package/bundle/p-C3NPZvho.js +1 -0
  99. package/bundle/p-CGLknNHl.js +1 -0
  100. package/bundle/p-COv1iCFP.js +1 -0
  101. package/bundle/p-C_xaJ8Kg.js +1 -0
  102. package/bundle/p-CjeAJfEo.js +1 -0
  103. package/bundle/{p-to845Mg2.js → p-Cr4l4OlK.js} +1 -1
  104. package/bundle/p-CtoC6vGL.js +1 -0
  105. package/bundle/p-D2lYeElK.js +1 -0
  106. package/bundle/{p-BvgvWjGH.js → p-D9qEmJkQ.js} +1 -1
  107. package/bundle/p-DAr8BCe0.js +1 -0
  108. package/bundle/{p-CYYSsu3p.js → p-DEicAzan.js} +1 -1
  109. package/bundle/{p-C9llbu6g.js → p-DKhSQnne.js} +1 -1
  110. package/bundle/{p-BpO8Ok-r.js → p-DTmum76Y.js} +1 -1
  111. package/bundle/p-DtqySxCV.js +1 -0
  112. package/bundle/p-Nyi3Ccqz.js +1 -0
  113. package/bundle/p-V6Dppnfj.js +1 -0
  114. package/bundle/p-WOdZHiUh.js +1 -0
  115. package/bundle/p-_kvIQ0Iy.js +1 -0
  116. package/bundle/{p-fu0VCCbW.js → p-mf371GRo.js} +1 -1
  117. package/dist/cjs/{constants-bMY2_d8A.js → constants-BM1EltPT.js} +12 -3
  118. package/dist/cjs/db-accordion-item.cjs.entry.js +3 -3
  119. package/dist/cjs/db-accordion.cjs.entry.js +2 -2
  120. package/dist/cjs/db-badge.cjs.entry.js +4 -4
  121. package/dist/cjs/db-button.cjs.entry.js +6 -3
  122. package/dist/cjs/db-card.cjs.entry.js +3 -3
  123. package/dist/cjs/db-checkbox.cjs.entry.js +5 -5
  124. package/dist/cjs/{db-brand.cjs.entry.js → db-control-panel-brand.cjs.entry.js} +9 -10
  125. package/dist/cjs/db-control-panel-desktop.cjs.entry.js +148 -0
  126. package/dist/cjs/db-control-panel-flat-icon.cjs.entry.js +134 -0
  127. package/dist/cjs/{db-navigation.cjs.entry.js → db-control-panel-meta.cjs.entry.js} +8 -8
  128. package/dist/cjs/db-control-panel-mobile.cjs.entry.js +124 -0
  129. package/dist/cjs/db-control-panel-navigation-item-group.cjs.entry.js +420 -0
  130. package/dist/cjs/db-control-panel-navigation-item.cjs.entry.js +235 -0
  131. package/dist/cjs/db-control-panel-navigation.cjs.entry.js +579 -0
  132. package/dist/cjs/db-control-panel-primary-actions.cjs.entry.js +95 -0
  133. package/dist/cjs/db-control-panel-secondary-actions.cjs.entry.js +95 -0
  134. package/dist/cjs/db-control-panel-skip-navigation.cjs.entry.js +96 -0
  135. package/dist/cjs/db-custom-button.cjs.entry.js +3 -3
  136. package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +14 -14
  137. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +3 -3
  138. package/dist/cjs/db-custom-select.cjs.entry.js +50 -26
  139. package/dist/cjs/db-divider.cjs.entry.js +2 -2
  140. package/dist/cjs/db-drawer_3.cjs.entry.js +457 -0
  141. package/dist/cjs/db-icon.cjs.entry.js +3 -3
  142. package/dist/cjs/db-infotext.cjs.entry.js +3 -3
  143. package/dist/cjs/db-link_4.cjs.entry.js +12 -10
  144. package/dist/cjs/db-notification.cjs.entry.js +4 -4
  145. package/dist/cjs/db-popover.cjs.entry.js +50 -22
  146. package/dist/cjs/db-radio.cjs.entry.js +4 -4
  147. package/dist/cjs/db-section.cjs.entry.js +3 -3
  148. package/dist/cjs/db-select.cjs.entry.js +5 -5
  149. package/dist/cjs/db-shell-content.cjs.entry.js +97 -0
  150. package/dist/cjs/db-shell-sub-navigation.cjs.entry.js +110 -0
  151. package/dist/cjs/{db-page.cjs.entry.js → db-shell.cjs.entry.js} +16 -17
  152. package/dist/cjs/db-stack.cjs.entry.js +3 -3
  153. package/dist/cjs/db-switch.cjs.entry.js +5 -5
  154. package/dist/cjs/db-tab-item_3.cjs.entry.js +8 -8
  155. package/dist/cjs/db-table-body_3.cjs.entry.js +10 -10
  156. package/dist/cjs/db-table-caption.cjs.entry.js +4 -3
  157. package/dist/cjs/db-table.cjs.entry.js +4 -4
  158. package/dist/cjs/db-tabs.cjs.entry.js +23 -18
  159. package/dist/cjs/db-textarea.cjs.entry.js +5 -5
  160. package/dist/cjs/db-tooltip.cjs.entry.js +39 -26
  161. package/dist/cjs/db-ux.cjs.js +1 -1
  162. package/dist/cjs/{document-click-listener-DdNXbErU.js → document-click-listener-D_0Q6lvb.js} +5 -9
  163. package/dist/cjs/{document-scroll-listener-CvAZ6uPr.js → document-scroll-listener-CgyYRmvZ.js} +29 -9
  164. package/dist/cjs/{floating-components-DlstoCKH.js → floating-components-B3bpFI90.js} +193 -115
  165. package/dist/cjs/{form-components-CmQlkARp.js → form-components-XNiwIGq8.js} +1 -1
  166. package/dist/cjs/{index-spuu3sXz.js → index-Df-6pBQf.js} +41 -2
  167. package/dist/cjs/index.cjs.js +34 -17
  168. package/dist/cjs/intersection-observer-listener-DlrHabJb.js +41 -0
  169. package/dist/cjs/loader.cjs.js +1 -1
  170. package/dist/cjs/navigation-CHCtasZv.js +178 -0
  171. package/dist/cjs/resize-observer-listener-CmPDfoZs.js +103 -0
  172. package/dist/collection/collection-manifest.json +18 -7
  173. package/dist/collection/components/accordion/accordion.js +1 -1
  174. package/dist/collection/components/accordion/model.js +0 -1
  175. package/dist/collection/components/accordion-item/accordion-item.js +2 -2
  176. package/dist/collection/components/badge/badge.js +2 -2
  177. package/dist/collection/components/button/button.js +57 -2
  178. package/dist/collection/components/card/card.js +2 -2
  179. package/dist/collection/components/checkbox/checkbox.js +2 -2
  180. package/dist/collection/components/control-panel-brand/control-panel-brand.js +179 -0
  181. package/dist/collection/components/control-panel-brand/index.js +2 -0
  182. package/dist/collection/components/control-panel-desktop/control-panel-desktop.js +343 -0
  183. package/dist/collection/components/control-panel-desktop/index.js +2 -0
  184. package/dist/collection/components/control-panel-flat-icon/control-panel-flat-icon.js +246 -0
  185. package/dist/collection/components/control-panel-flat-icon/index.js +2 -0
  186. package/dist/collection/components/control-panel-meta/control-panel-meta.js +179 -0
  187. package/dist/collection/components/control-panel-meta/index.js +2 -0
  188. package/dist/collection/components/control-panel-mobile/control-panel-mobile.js +307 -0
  189. package/dist/collection/components/control-panel-mobile/index.js +2 -0
  190. package/dist/collection/components/control-panel-mobile/model.js +1 -0
  191. package/dist/collection/components/control-panel-navigation/control-panel-navigation.js +829 -0
  192. package/dist/collection/components/control-panel-navigation/index.js +2 -0
  193. package/dist/collection/components/control-panel-navigation/model.js +1 -0
  194. package/dist/collection/components/control-panel-navigation-item/control-panel-navigation-item.js +484 -0
  195. package/dist/collection/components/control-panel-navigation-item/index.js +2 -0
  196. package/dist/collection/components/control-panel-navigation-item/model.js +1 -0
  197. package/dist/collection/components/control-panel-navigation-item-group/control-panel-navigation-item-group.js +772 -0
  198. package/dist/collection/components/control-panel-navigation-item-group/index.js +2 -0
  199. package/dist/collection/components/control-panel-navigation-item-group/model.js +1 -0
  200. package/dist/collection/components/control-panel-primary-actions/control-panel-primary-actions.js +179 -0
  201. package/dist/collection/components/control-panel-primary-actions/index.js +2 -0
  202. package/dist/collection/components/control-panel-primary-actions/model.js +1 -0
  203. package/dist/collection/components/control-panel-secondary-actions/control-panel-secondary-actions.js +179 -0
  204. package/dist/collection/components/control-panel-secondary-actions/index.js +2 -0
  205. package/dist/collection/components/control-panel-secondary-actions/model.js +1 -0
  206. package/dist/collection/components/control-panel-skip-navigation/control-panel-skip-navigation.js +232 -0
  207. package/dist/collection/components/control-panel-skip-navigation/index.js +2 -0
  208. package/dist/collection/components/control-panel-skip-navigation/model.js +1 -0
  209. package/dist/collection/components/custom-button/custom-button.js +2 -2
  210. package/dist/collection/components/custom-select/custom-select.js +46 -21
  211. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +2 -2
  212. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +2 -2
  213. package/dist/collection/components/custom-select-list/custom-select-list.js +2 -2
  214. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +2 -2
  215. package/dist/collection/components/divider/divider.js +1 -1
  216. package/dist/collection/components/drawer/drawer.js +71 -75
  217. package/dist/collection/components/drawer/model.js +1 -0
  218. package/dist/collection/components/{navigation/navigation.js → drawer-footer/drawer-footer.js} +19 -19
  219. package/dist/collection/components/drawer-footer/index.js +2 -0
  220. package/dist/collection/components/drawer-footer/model.js +1 -0
  221. package/dist/collection/components/{brand/brand.js → drawer-header/drawer-header.js} +83 -79
  222. package/dist/collection/components/drawer-header/index.js +2 -0
  223. package/dist/collection/components/drawer-header/model.js +1 -0
  224. package/dist/collection/components/icon/icon.js +2 -2
  225. package/dist/collection/components/infotext/infotext.js +2 -2
  226. package/dist/collection/components/input/input.js +3 -3
  227. package/dist/collection/components/link/link.js +2 -2
  228. package/dist/collection/components/notification/notification.js +2 -2
  229. package/dist/collection/components/popover/popover.js +75 -46
  230. package/dist/collection/components/radio/radio.js +2 -2
  231. package/dist/collection/components/section/section.js +2 -2
  232. package/dist/collection/components/select/select.js +2 -2
  233. package/dist/collection/components/shell/index.js +2 -0
  234. package/dist/collection/components/shell/model.js +1 -0
  235. package/dist/collection/components/{header/header.js → shell/shell.js} +92 -143
  236. package/dist/collection/components/shell-content/index.js +2 -0
  237. package/dist/collection/components/shell-content/model.js +1 -0
  238. package/dist/collection/components/{page/page.js → shell-content/shell-content.js} +67 -86
  239. package/dist/collection/components/shell-sub-navigation/index.js +2 -0
  240. package/dist/collection/components/shell-sub-navigation/model.js +1 -0
  241. package/dist/collection/components/shell-sub-navigation/shell-sub-navigation.js +248 -0
  242. package/dist/collection/components/stack/stack.js +2 -2
  243. package/dist/collection/components/switch/switch.js +2 -2
  244. package/dist/collection/components/tab-item/tab-item.js +3 -3
  245. package/dist/collection/components/tab-list/tab-list.js +2 -2
  246. package/dist/collection/components/tab-panel/tab-panel.js +2 -2
  247. package/dist/collection/components/table/table.js +27 -3
  248. package/dist/collection/components/table-body/table-body.js +27 -3
  249. package/dist/collection/components/table-caption/table-caption.js +27 -2
  250. package/dist/collection/components/table-data-cell/table-data-cell.js +27 -2
  251. package/dist/collection/components/table-footer/table-footer.js +27 -3
  252. package/dist/collection/components/table-head/table-head.js +27 -3
  253. package/dist/collection/components/table-header-cell/table-header-cell.js +27 -2
  254. package/dist/collection/components/table-row/table-row.js +27 -3
  255. package/dist/collection/components/tabs/tabs.js +75 -18
  256. package/dist/collection/components/tag/tag.js +2 -2
  257. package/dist/collection/components/textarea/textarea.js +2 -2
  258. package/dist/collection/components/tooltip/tooltip.js +63 -49
  259. package/dist/collection/index.js +32 -10
  260. package/dist/collection/shared/constants.js +7 -2
  261. package/dist/collection/shared/model.js +4 -0
  262. package/dist/collection/utils/abstract-document-listener.js +23 -0
  263. package/dist/collection/utils/abstract-observer-listener.js +61 -0
  264. package/dist/collection/utils/document-click-listener.js +5 -9
  265. package/dist/collection/utils/document-scroll-listener.js +5 -9
  266. package/dist/collection/utils/floating-components.js +193 -115
  267. package/dist/collection/utils/index.js +40 -2
  268. package/dist/collection/utils/intersection-observer-listener.js +36 -0
  269. package/dist/collection/utils/navigation.js +113 -74
  270. package/dist/collection/utils/resize-observer-listener.js +36 -0
  271. package/dist/custom-elements.json +11897 -8400
  272. package/dist/db-ux/db-ux.esm.js +1 -1
  273. package/dist/db-ux/index.esm.js +1 -1
  274. package/dist/db-ux/{p-d9d006e7.entry.js → p-158c64e0.entry.js} +1 -1
  275. package/dist/db-ux/p-1fa944fd.entry.js +1 -0
  276. package/dist/db-ux/{p-a176424b.entry.js → p-2012c72a.entry.js} +1 -1
  277. package/dist/db-ux/p-234fee81.entry.js +1 -0
  278. package/dist/db-ux/{p-6b8375e8.entry.js → p-3566a5b2.entry.js} +1 -1
  279. package/dist/db-ux/p-3b61c223.entry.js +1 -0
  280. package/dist/db-ux/p-3d5fc4b6.entry.js +1 -0
  281. package/dist/db-ux/p-3e113cfe.entry.js +1 -0
  282. package/dist/db-ux/p-42644385.entry.js +1 -0
  283. package/dist/db-ux/p-42fd6a5c.entry.js +1 -0
  284. package/dist/db-ux/p-441d444e.entry.js +1 -0
  285. package/dist/db-ux/{p-a8556349.entry.js → p-4ecd501a.entry.js} +1 -1
  286. package/dist/db-ux/{p-77a47225.entry.js → p-53f827e1.entry.js} +1 -1
  287. package/dist/db-ux/{p-eedf08e0.entry.js → p-5696a8d3.entry.js} +1 -1
  288. package/dist/db-ux/p-56b2a25d.entry.js +1 -0
  289. package/dist/db-ux/{p-68f00121.entry.js → p-5a1a7588.entry.js} +1 -1
  290. package/dist/db-ux/p-5c5dce95.entry.js +1 -0
  291. package/dist/db-ux/p-5ce9ac6d.entry.js +1 -0
  292. package/dist/db-ux/{p-57527cef.entry.js → p-636e6a6d.entry.js} +1 -1
  293. package/dist/db-ux/p-6aac51bf.entry.js +1 -0
  294. package/dist/db-ux/p-6fc31876.entry.js +1 -0
  295. package/dist/db-ux/p-7d3541c6.entry.js +1 -0
  296. package/dist/db-ux/p-8f288b5e.entry.js +1 -0
  297. package/dist/db-ux/{p-37bf8d87.entry.js → p-9174a1f8.entry.js} +1 -1
  298. package/dist/db-ux/p-92d1d118.entry.js +1 -0
  299. package/dist/db-ux/p-94806e39.entry.js +1 -0
  300. package/dist/db-ux/p-95afbd4b.entry.js +1 -0
  301. package/dist/db-ux/p-BNNa1bIH.js +1 -0
  302. package/dist/db-ux/p-BT3wZY6f.js +1 -0
  303. package/dist/db-ux/p-Bs6e6rEa.js +1 -0
  304. package/dist/db-ux/p-Bu2uTpuB.js +1 -0
  305. package/dist/db-ux/p-CHtd83tf.js +1 -0
  306. package/dist/db-ux/p-COv1iCFP.js +1 -0
  307. package/dist/db-ux/p-D-LMtTru.js +1 -0
  308. package/dist/db-ux/p-DB8jc8lh.js +1 -0
  309. package/dist/db-ux/p-a2fd6f02.entry.js +1 -0
  310. package/dist/db-ux/p-a526be72.entry.js +1 -0
  311. package/dist/db-ux/{p-db1b9f5d.entry.js → p-aa0d6af7.entry.js} +1 -1
  312. package/dist/db-ux/p-ab2ca4f9.entry.js +1 -0
  313. package/dist/db-ux/p-b124f5d7.entry.js +1 -0
  314. package/dist/db-ux/p-b4069c07.entry.js +1 -0
  315. package/dist/db-ux/p-b90adbf2.entry.js +1 -0
  316. package/dist/db-ux/p-bbqCwwgU.js +1 -0
  317. package/dist/db-ux/p-c36731c4.entry.js +1 -0
  318. package/dist/db-ux/p-c6e965b9.entry.js +1 -0
  319. package/dist/db-ux/p-d0340bf6.entry.js +1 -0
  320. package/dist/db-ux/p-d354d861.entry.js +1 -0
  321. package/dist/db-ux/{p-6d41baf1.entry.js → p-d7ffa767.entry.js} +1 -1
  322. package/dist/db-ux/{p-70b6ebcd.entry.js → p-da34c367.entry.js} +1 -1
  323. package/dist/db-ux/{p-81edb316.entry.js → p-eb18be29.entry.js} +1 -1
  324. package/dist/db-ux/p-eee0f32c.entry.js +1 -0
  325. package/dist/db-ux/p-f1f23724.entry.js +1 -0
  326. package/dist/esm/{constants-BdL-nI5y.js → constants-COv1iCFP.js} +8 -3
  327. package/dist/esm/db-accordion-item.entry.js +3 -3
  328. package/dist/esm/db-accordion.entry.js +2 -2
  329. package/dist/esm/db-badge.entry.js +4 -4
  330. package/dist/esm/db-button.entry.js +6 -3
  331. package/dist/esm/db-card.entry.js +3 -3
  332. package/dist/esm/db-checkbox.entry.js +5 -5
  333. package/dist/esm/db-control-panel-brand.entry.js +93 -0
  334. package/dist/esm/db-control-panel-desktop.entry.js +146 -0
  335. package/dist/esm/db-control-panel-flat-icon.entry.js +132 -0
  336. package/dist/esm/{db-navigation.entry.js → db-control-panel-meta.entry.js} +8 -8
  337. package/dist/esm/db-control-panel-mobile.entry.js +122 -0
  338. package/dist/esm/db-control-panel-navigation-item-group.entry.js +418 -0
  339. package/dist/esm/db-control-panel-navigation-item.entry.js +233 -0
  340. package/dist/esm/db-control-panel-navigation.entry.js +577 -0
  341. package/dist/esm/db-control-panel-primary-actions.entry.js +93 -0
  342. package/dist/esm/db-control-panel-secondary-actions.entry.js +93 -0
  343. package/dist/esm/{db-brand.entry.js → db-control-panel-skip-navigation.entry.js} +9 -9
  344. package/dist/esm/db-custom-button.entry.js +3 -3
  345. package/dist/esm/db-custom-select-dropdown_5.entry.js +14 -14
  346. package/dist/esm/db-custom-select-form-field.entry.js +3 -3
  347. package/dist/esm/db-custom-select.entry.js +50 -26
  348. package/dist/esm/db-divider.entry.js +2 -2
  349. package/dist/esm/db-drawer_3.entry.js +453 -0
  350. package/dist/esm/db-icon.entry.js +3 -3
  351. package/dist/esm/db-infotext.entry.js +3 -3
  352. package/dist/esm/db-link_4.entry.js +12 -10
  353. package/dist/esm/db-notification.entry.js +4 -4
  354. package/dist/esm/db-popover.entry.js +50 -22
  355. package/dist/esm/db-radio.entry.js +4 -4
  356. package/dist/esm/db-section.entry.js +3 -3
  357. package/dist/esm/db-select.entry.js +5 -5
  358. package/dist/esm/db-shell-content.entry.js +95 -0
  359. package/dist/esm/db-shell-sub-navigation.entry.js +108 -0
  360. package/dist/esm/{db-page.entry.js → db-shell.entry.js} +16 -17
  361. package/dist/esm/db-stack.entry.js +3 -3
  362. package/dist/esm/db-switch.entry.js +5 -5
  363. package/dist/esm/db-tab-item_3.entry.js +8 -8
  364. package/dist/esm/db-table-body_3.entry.js +10 -10
  365. package/dist/esm/db-table-caption.entry.js +4 -3
  366. package/dist/esm/db-table.entry.js +4 -4
  367. package/dist/esm/db-tabs.entry.js +23 -18
  368. package/dist/esm/db-textarea.entry.js +5 -5
  369. package/dist/esm/db-tooltip.entry.js +39 -26
  370. package/dist/esm/db-ux.js +1 -1
  371. package/dist/esm/{document-click-listener-9wJfRcvz.js → document-click-listener-BEYsNvC5.js} +5 -9
  372. package/dist/esm/{document-scroll-listener-4F0ZAg9p.js → document-scroll-listener-B8lkAL-m.js} +29 -10
  373. package/dist/esm/{floating-components-DOPXnIzL.js → floating-components-BT3wZY6f.js} +194 -116
  374. package/dist/esm/{form-components-ZV7IN0oG.js → form-components-zJeL8XMn.js} +1 -1
  375. package/dist/esm/{index-fumiz06Y.js → index-DB8jc8lh.js} +41 -3
  376. package/dist/esm/index.js +17 -10
  377. package/dist/esm/intersection-observer-listener-DQ4WWSLe.js +39 -0
  378. package/dist/esm/loader.js +1 -1
  379. package/dist/esm/navigation-Cc_Ln-dl.js +174 -0
  380. package/dist/esm/resize-observer-listener-z8XjzxC9.js +100 -0
  381. package/dist/types/components/accordion/model.d.ts +2 -8
  382. package/dist/types/components/button/button.d.ts +2 -0
  383. package/dist/types/components/button/model.d.ts +8 -0
  384. package/dist/types/components/{brand/brand.d.ts → control-panel-brand/control-panel-brand.d.ts} +5 -9
  385. package/dist/types/components/control-panel-brand/index.d.ts +2 -0
  386. package/dist/types/components/control-panel-brand/model.d.ts +5 -0
  387. package/dist/types/components/control-panel-desktop/control-panel-desktop.d.ts +41 -0
  388. package/dist/types/components/control-panel-desktop/index.d.ts +2 -0
  389. package/dist/types/components/control-panel-desktop/model.d.ts +5 -0
  390. package/dist/types/components/{page/page.d.ts → control-panel-flat-icon/control-panel-flat-icon.d.ts} +10 -12
  391. package/dist/types/components/control-panel-flat-icon/index.d.ts +2 -0
  392. package/dist/types/components/control-panel-flat-icon/model.d.ts +12 -0
  393. package/dist/types/components/control-panel-meta/control-panel-meta.d.ts +23 -0
  394. package/dist/types/components/control-panel-meta/index.d.ts +2 -0
  395. package/dist/types/components/control-panel-meta/model.d.ts +5 -0
  396. package/dist/types/components/control-panel-mobile/control-panel-mobile.d.ts +36 -0
  397. package/dist/types/components/control-panel-mobile/index.d.ts +2 -0
  398. package/dist/types/components/control-panel-mobile/model.d.ts +21 -0
  399. package/dist/types/components/control-panel-navigation/control-panel-navigation.d.ts +54 -0
  400. package/dist/types/components/control-panel-navigation/index.d.ts +2 -0
  401. package/dist/types/components/control-panel-navigation/model.d.ts +25 -0
  402. package/dist/types/components/control-panel-navigation-item/control-panel-navigation-item.d.ts +42 -0
  403. package/dist/types/components/control-panel-navigation-item/index.d.ts +2 -0
  404. package/dist/types/components/control-panel-navigation-item/model.d.ts +20 -0
  405. package/dist/types/components/control-panel-navigation-item-group/control-panel-navigation-item-group.d.ts +74 -0
  406. package/dist/types/components/control-panel-navigation-item-group/index.d.ts +2 -0
  407. package/dist/types/components/control-panel-navigation-item-group/model.d.ts +44 -0
  408. package/dist/types/components/control-panel-primary-actions/control-panel-primary-actions.d.ts +23 -0
  409. package/dist/types/components/control-panel-primary-actions/index.d.ts +2 -0
  410. package/dist/types/components/control-panel-primary-actions/model.d.ts +5 -0
  411. package/dist/types/components/control-panel-secondary-actions/control-panel-secondary-actions.d.ts +23 -0
  412. package/dist/types/components/control-panel-secondary-actions/index.d.ts +2 -0
  413. package/dist/types/components/control-panel-secondary-actions/model.d.ts +5 -0
  414. package/dist/types/components/control-panel-skip-navigation/control-panel-skip-navigation.d.ts +25 -0
  415. package/dist/types/components/control-panel-skip-navigation/index.d.ts +2 -0
  416. package/dist/types/components/control-panel-skip-navigation/model.d.ts +16 -0
  417. package/dist/types/components/custom-select/custom-select.d.ts +2 -1
  418. package/dist/types/components/custom-select/model.d.ts +5 -1
  419. package/dist/types/components/drawer/drawer.d.ts +9 -6
  420. package/dist/types/components/drawer/model.d.ts +21 -3
  421. package/dist/types/components/{navigation/navigation.d.ts → drawer-footer/drawer-footer.d.ts} +5 -5
  422. package/dist/types/components/drawer-footer/index.d.ts +2 -0
  423. package/dist/types/components/drawer-footer/model.d.ts +5 -0
  424. package/dist/types/components/drawer-header/drawer-header.d.ts +30 -0
  425. package/dist/types/components/drawer-header/index.d.ts +2 -0
  426. package/dist/types/components/drawer-header/model.d.ts +9 -0
  427. package/dist/types/components/popover/popover.d.ts +3 -2
  428. package/dist/types/components/shell/index.d.ts +2 -0
  429. package/dist/types/components/shell/model.d.ts +34 -0
  430. package/dist/types/components/shell/shell.d.ts +30 -0
  431. package/dist/types/components/shell-content/index.d.ts +2 -0
  432. package/dist/types/components/shell-content/model.d.ts +28 -0
  433. package/dist/types/components/shell-content/shell-content.d.ts +28 -0
  434. package/dist/types/components/shell-sub-navigation/index.d.ts +2 -0
  435. package/dist/types/components/shell-sub-navigation/model.d.ts +5 -0
  436. package/dist/types/components/shell-sub-navigation/shell-sub-navigation.d.ts +29 -0
  437. package/dist/types/components/table/table.d.ts +1 -0
  438. package/dist/types/components/table-body/table-body.d.ts +1 -0
  439. package/dist/types/components/table-caption/table-caption.d.ts +1 -0
  440. package/dist/types/components/table-data-cell/table-data-cell.d.ts +1 -0
  441. package/dist/types/components/table-footer/table-footer.d.ts +1 -0
  442. package/dist/types/components/table-head/table-head.d.ts +1 -0
  443. package/dist/types/components/table-header-cell/table-header-cell.d.ts +1 -0
  444. package/dist/types/components/table-row/table-row.d.ts +1 -0
  445. package/dist/types/components/tabs/model.d.ts +4 -12
  446. package/dist/types/components/tabs/tabs.d.ts +3 -1
  447. package/dist/types/components/tooltip/tooltip.d.ts +3 -2
  448. package/dist/types/components.d.ts +621 -243
  449. package/dist/types/index.d.ts +32 -10
  450. package/dist/types/shared/constants.d.ts +44 -39
  451. package/dist/types/shared/figma.d.ts +11 -4
  452. package/dist/types/shared/model.d.ts +109 -7
  453. package/dist/types/utils/abstract-document-listener.d.ts +18 -0
  454. package/dist/types/utils/abstract-observer-listener.d.ts +39 -0
  455. package/dist/types/utils/document-click-listener.d.ts +3 -3
  456. package/dist/types/utils/document-scroll-listener.d.ts +3 -3
  457. package/dist/types/utils/floating-components.d.ts +29 -6
  458. package/dist/types/utils/index.d.ts +11 -0
  459. package/dist/types/utils/intersection-observer-listener.d.ts +15 -0
  460. package/dist/types/utils/navigation.d.ts +12 -11
  461. package/dist/types/utils/resize-observer-listener.d.ts +15 -0
  462. package/dist/vscode.html-custom-data.json +998 -540
  463. package/dist/web-types.json +2176 -1176
  464. package/package.json +5 -5
  465. package/agent/Brand.md +0 -13
  466. package/agent/Header.md +0 -29
  467. package/agent/Navigation.md +0 -19
  468. package/agent/NavigationItem.md +0 -29
  469. package/agent/Page.md +0 -27
  470. package/bundle/db-brand.js +0 -1
  471. package/bundle/db-header.js +0 -1
  472. package/bundle/db-navigation-item.js +0 -1
  473. package/bundle/db-navigation.js +0 -1
  474. package/bundle/db-page.js +0 -1
  475. package/bundle/p-2eQDIPlF.js +0 -1
  476. package/bundle/p-BdL-nI5y.js +0 -1
  477. package/bundle/p-BuBrj57D.js +0 -1
  478. package/bundle/p-C2w7ILj8.js +0 -1
  479. package/bundle/p-C47AKJPy.js +0 -1
  480. package/bundle/p-Cn5NdjPW.js +0 -1
  481. package/bundle/p-D6L0n3gO.js +0 -1
  482. package/bundle/p-DFypNnh0.js +0 -1
  483. package/bundle/p-DJTpgiBy.js +0 -1
  484. package/bundle/p-DOPXnIzL.js +0 -1
  485. package/bundle/p-DTM6Wcbf.js +0 -1
  486. package/bundle/p-DVuZmW_J.js +0 -1
  487. package/bundle/p-DW47OZNu.js +0 -1
  488. package/bundle/p-DiEfz0o1.js +0 -1
  489. package/bundle/p-n2qePi9e.js +0 -1
  490. package/dist/cjs/db-drawer.cjs.entry.js +0 -204
  491. package/dist/cjs/db-header.cjs.entry.js +0 -145
  492. package/dist/cjs/db-navigation-item.cjs.entry.js +0 -182
  493. package/dist/cjs/navigation-Bah882nU.js +0 -138
  494. package/dist/collection/components/brand/index.js +0 -2
  495. package/dist/collection/components/header/index.js +0 -2
  496. package/dist/collection/components/navigation/index.js +0 -2
  497. package/dist/collection/components/navigation-item/index.js +0 -2
  498. package/dist/collection/components/navigation-item/navigation-item.js +0 -577
  499. package/dist/collection/components/page/index.js +0 -2
  500. package/dist/collection/components/page/model.js +0 -2
  501. package/dist/db-ux/p-0758418a.entry.js +0 -1
  502. package/dist/db-ux/p-1e70d93f.entry.js +0 -1
  503. package/dist/db-ux/p-2c23efe2.entry.js +0 -1
  504. package/dist/db-ux/p-38c55e9c.entry.js +0 -1
  505. package/dist/db-ux/p-4a94fbc9.entry.js +0 -1
  506. package/dist/db-ux/p-5706f20a.entry.js +0 -1
  507. package/dist/db-ux/p-6ce4a109.entry.js +0 -1
  508. package/dist/db-ux/p-6fd70ba4.entry.js +0 -1
  509. package/dist/db-ux/p-6fdc00bd.entry.js +0 -1
  510. package/dist/db-ux/p-71399ee3.entry.js +0 -1
  511. package/dist/db-ux/p-88dcff6a.entry.js +0 -1
  512. package/dist/db-ux/p-90e9ec2d.entry.js +0 -1
  513. package/dist/db-ux/p-96978a7f.entry.js +0 -1
  514. package/dist/db-ux/p-BdL-nI5y.js +0 -1
  515. package/dist/db-ux/p-BihrW11j.js +0 -1
  516. package/dist/db-ux/p-BtImZ8Nt.js +0 -1
  517. package/dist/db-ux/p-BuBrj57D.js +0 -1
  518. package/dist/db-ux/p-DOPXnIzL.js +0 -1
  519. package/dist/db-ux/p-OOIf-5XP.js +0 -1
  520. package/dist/db-ux/p-a07e33e7.entry.js +0 -1
  521. package/dist/db-ux/p-a4fb4782.entry.js +0 -1
  522. package/dist/db-ux/p-bb5149a9.entry.js +0 -1
  523. package/dist/db-ux/p-e58fbd4d.entry.js +0 -1
  524. package/dist/db-ux/p-e66aa9d8.entry.js +0 -1
  525. package/dist/db-ux/p-ef63c591.entry.js +0 -1
  526. package/dist/db-ux/p-f0b5c785.entry.js +0 -1
  527. package/dist/db-ux/p-f964d5f5.entry.js +0 -1
  528. package/dist/db-ux/p-fumiz06Y.js +0 -1
  529. package/dist/esm/db-drawer.entry.js +0 -202
  530. package/dist/esm/db-header.entry.js +0 -143
  531. package/dist/esm/db-navigation-item.entry.js +0 -180
  532. package/dist/esm/navigation-Jh6m0eMk.js +0 -135
  533. package/dist/types/components/brand/index.d.ts +0 -2
  534. package/dist/types/components/brand/model.d.ts +0 -10
  535. package/dist/types/components/header/header.d.ts +0 -40
  536. package/dist/types/components/header/index.d.ts +0 -2
  537. package/dist/types/components/header/model.d.ts +0 -44
  538. package/dist/types/components/navigation/index.d.ts +0 -2
  539. package/dist/types/components/navigation/model.d.ts +0 -5
  540. package/dist/types/components/navigation-item/index.d.ts +0 -2
  541. package/dist/types/components/navigation-item/model.d.ts +0 -39
  542. package/dist/types/components/navigation-item/navigation-item.d.ts +0 -52
  543. package/dist/types/components/page/index.d.ts +0 -2
  544. package/dist/types/components/page/model.d.ts +0 -36
  545. /package/dist/collection/components/{brand → control-panel-brand}/model.js +0 -0
  546. /package/dist/collection/components/{header → control-panel-desktop}/model.js +0 -0
  547. /package/dist/collection/components/{navigation-item → control-panel-flat-icon}/model.js +0 -0
  548. /package/dist/collection/components/{navigation → control-panel-meta}/model.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@db-ux/wc-core-components",
3
- "version": "4.12.0",
3
+ "version": "4.13.0-shell-f221975",
4
4
  "type": "module",
5
5
  "description": "Stencil components for @db-ux/core-components",
6
6
  "repository": {
@@ -31,19 +31,19 @@
31
31
  "dist/"
32
32
  ],
33
33
  "dependencies": {
34
- "@db-ux/core-components": "4.12.0",
35
- "@db-ux/core-foundations": "4.12.0"
34
+ "@db-ux/core-components": "4.13.0-shell-f221975",
35
+ "@db-ux/core-foundations": "4.13.0-shell-f221975"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@custom-elements-manifest/analyzer": "0.11.0",
39
39
  "@stencil/core": "4.43.5",
40
- "@types/node": "25.9.3",
40
+ "@types/node": "26.1.0",
41
41
  "cem-plugin-expanded-types": "1.4.0",
42
42
  "cpr": "3.0.1",
43
43
  "custom-element-jet-brains-integration": "1.7.0",
44
44
  "custom-element-vs-code-integration": "1.5.0",
45
45
  "npm-run-all2": "9.0.2",
46
- "storybook": "10.4.4",
46
+ "storybook": "10.4.6",
47
47
  "workbox-build": "7.4.1"
48
48
  },
49
49
  "publishConfig": {
package/agent/Brand.md DELETED
@@ -1,13 +0,0 @@
1
-
2
-
3
- # Brand Examples (stencil)
4
-
5
- ```html
6
- <h1>DBBrand Documentation Examples</h1>
7
- <h2>1. Default Brand</h2>
8
- <db-brand>Default Brand</db-brand>
9
- <h2>2. Icon Visibility</h2>
10
- <db-brand showIcon={false}>Icon Hidden</db-brand>
11
- <h2>3. Custom Text</h2>
12
- <db-brand text="Custom Brand Text">With Custom Text</db-brand>
13
- ```
package/agent/Header.md DELETED
@@ -1,29 +0,0 @@
1
-
2
-
3
- # Header Examples (stencil)
4
-
5
- ```html
6
- <h1>DBHeader Documentation Examples</h1>
7
- <h2>1. Default Header</h2>
8
- <db-header
9
- drawerOpen={this.drawerOpen}
10
- onToggle={(open) => (this.drawerOpen = open)}
11
- >
12
- <db-brand slot="brand">My Awesome App</db-brand>
13
- <div slot="metaNavigation"><db-link href="#">Imprint</db-link><db-link href="#">Help</db-link></div>
14
- <db-button slot="primaryAction" icon="magnifying_glass" variant="ghost" noText>Search</db-button>
15
- <div slot="secondaryAction"><db-button icon="x_placeholder" variant="ghost" noText>Profile</db-button><db-button icon="alert" variant="ghost" noText>Notification</db-button><db-button icon="help" variant="ghost" noText>Help</db-button></div>
16
-
17
- <db-navigation>
18
- <db-navigation-item>
19
- <a href="#">Navi-Item 1</a>
20
- </db-navigation-item>
21
- <db-navigation-item icon="x_placeholder">
22
- <a href="#">Navi-Item 2</a>
23
- </db-navigation-item>
24
- <db-navigation-item disabled={true}>
25
- <a href="#">Navi-Item 3</a>
26
- </db-navigation-item>
27
- </db-navigation>
28
- </db-header>
29
- ```
@@ -1,19 +0,0 @@
1
-
2
-
3
- # Navigation Examples (stencil)
4
-
5
- ```html
6
- <h1>DBNavigation Documentation Examples</h1>
7
- <h2>1. Default Navigation</h2>
8
- <db-navigation>
9
- <db-navigation-item>
10
- <a href="#">Navi-Item 1</a>
11
- </db-navigation-item>
12
- <db-navigation-item icon="x_placeholder">
13
- <a href="#">Navi-Item 2</a>
14
- </db-navigation-item>
15
- <db-navigation-item disabled={true}>
16
- <a href="#">Navi-Item 3</a>
17
- </db-navigation-item>
18
- </db-navigation>
19
- ```
@@ -1,29 +0,0 @@
1
-
2
-
3
- # NavigationItem Examples (stencil)
4
-
5
- ```html
6
- <h1>DBNavigationItem Documentation Examples</h1>
7
- <h2>1. Default Navigation Item</h2>
8
- <db-navigation-item>Default Navigation Item</db-navigation-item>
9
- <h2>2. Active State</h2>
10
- <db-navigation-item active={true}>
11
- Active Navigation Item
12
- </db-navigation-item>
13
- <h2>3. Disabled State</h2>
14
- <db-navigation-item disabled={true}>
15
- Disabled Navigation Item
16
- </db-navigation-item>
17
- <h2>4. Sub-Navigation</h2>
18
- <db-navigation-item subNavigation={<div>Sub Navigation Content</div>}>
19
- Navigation Item with Sub-Navigation
20
- </db-navigation-item>
21
- <h2>5. Icon Support</h2>
22
- <db-navigation-item icon="user">
23
- Navigation Item with Icon
24
- </db-navigation-item>
25
- <h2>6. Custom Class</h2>
26
- <db-navigation-item class="custom-class">
27
- Navigation Item with Custom Class
28
- </db-navigation-item>
29
- ```
package/agent/Page.md DELETED
@@ -1,27 +0,0 @@
1
-
2
-
3
- # Page Examples (stencil)
4
-
5
- ```html
6
- <h1>DBPage Documentation Examples</h1>
7
- <h2>1. Default Page</h2>
8
- <db-page><db-header slot="header">Header Content</db-header>
9
- Main Page</db-page>
10
- <h2>2. Document Overflow Variants</h2>
11
- <db-page documentOverflow="hidden">
12
- <db-header slot="header">Header Content</db-header>
13
- Main Page with Hidden Overflow
14
- </db-page>
15
- <db-page documentOverflow="auto">
16
- <db-header slot="header">Header Content</db-header>
17
- Main Page with Auto Overflow
18
- </db-page>
19
- <h2>3. Fade-In Effect</h2>
20
- <db-page fadeIn={true}><db-header slot="header">Header Content</db-header>
21
- Main Page with Fade-In</db-page>
22
- <h2>4. Variant Examples</h2>
23
- <db-page variant="auto"><db-header slot="header">Header Content</db-header>
24
- Page with Auto Variant</db-page>
25
- <db-page variant="fixed"><db-header slot="header">Header Content</db-header>
26
- Page with Fixed Variant</db-page>
27
- ```
@@ -1 +0,0 @@
1
- import{y as t,H as s,z as e,j as i,d as n,t as d}from"./p-CYYSsu3p.js";import{q as o}from"./p-BdL-nI5y.js";const a=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-brand");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-brand")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let i=0;i<s.length;i++){const n=s.item(i);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))n.value?t.setAttribute(n.name,n.value):t.removeAttribute(n.name),e.removeAttribute(n.name);else if(n&&["style"].includes(n.name))t.setAttribute(n.name,n.value),e.removeAttribute(n.name);else if(n&&"class"===n.name){const s=n.value.includes("hydrated"),i=n.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(n.name,`${d||""}${i?" "+i:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-brand"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s,d;return e("div",{key:"eb7ad13ac7dc2b56c0611996975b6f140cb837c8",class:n("db-brand",this.className),ref:t=>{this._ref=t},"data-icon":this.hideLogo?"none":null!==(t=this.icon)&&void 0!==t?t:o,"data-show-icon":i(this.showIcon,"showIcon"),id:null!==(s=this.id)&&void 0!==s?s:null===(d=this.propOverrides)||void 0===d?void 0:d.id},e("slot",{key:"21a1bf9ea2f921c6a38e24062890c7f674213605"}),this.text?this.text:null)}get rootElement(){return this}},[260,"db-brand",{hideLogo:[4,"hide-logo"],icon:[1],showIcon:[8,"show-icon"],id:[1],propOverrides:[16],className:[1,"classname"],text:[1],observer:[32]}]),r=a,c=function(){"undefined"!=typeof customElements&&["db-brand"].forEach((t=>{"db-brand"===t&&(customElements.get(d(t))||customElements.define(d(t),a))}))};export{r as DbBrand,c as defineCustomElement}
@@ -1 +0,0 @@
1
- import{y as e,H as a,A as t,k as d,c as s,z as i,d as c,t as n}from"./p-CYYSsu3p.js";import{p as o}from"./p-BdL-nI5y.js";import{i as r}from"./p-BuBrj57D.js";import{d as b}from"./p-DVuZmW_J.js";import{d as l}from"./p-n2qePi9e.js";const h=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.toggle=t(this,"toggle"),this.initialized=!1,this.forcedToMobile=!1,this.observer=void 0}handleToggle(e){e&&e.stopPropagation&&e.stopPropagation();const a=!d(this.drawerOpen,"drawerOpen");this.toggle&&this.toggle.emit(a)}handleNavigationItemClick(e){r(e)&&this.handleToggle()}setupObserver(e){if(!e)return;const a=e.closest("db-header");a&&!this.observer&&(this.observer=new MutationObserver((a=>{a.some((e=>{var a;const t=e.target.attributes.getNamedItem(null!==(a=e.attributeName)&&void 0!==a?a:"");return(null==t?void 0:t.value)!==e.oldValue}))&&this.enableAttributePassing(e,"db-header")})),this.observer.observe(a,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(e,a){const t=null==e?void 0:e.closest(a);if(e&&t){const a=t.attributes;for(let d=0;d<a.length;d++){const s=a.item(d);if(s&&"data-density"!==s.name&&(s.name.startsWith("data-")||s.name.startsWith("aria-")))s.value?e.setAttribute(s.name,s.value):e.removeAttribute(s.name),t.removeAttribute(s.name);else if(s&&["style"].includes(s.name))e.setAttribute(s.name,s.value),t.removeAttribute(s.name);else if(s&&"class"===s.name){const a=s.value.includes("hydrated"),d=s.value.replace("hydrated","").trim(),i=e.getAttribute("class");e.setAttribute(s.name,`${i||""}${d?" "+d:""}`),a?t.setAttribute("class","hydrated"):t.removeAttribute(s.name)}}}}watch0Fn(){this.initialized&&this._ref&&this.forceMobile&&(s(this._ref,{key:"data-force-mobile",value:"true"}),this.forcedToMobile=!0)}watch0(){this.watch0Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const e=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);e&&e.remove()}this.enableAttributePassing(this._ref,"db-header"),(()=>{this.initialized=!0})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn()}disconnectedCallback(){var e;null===(e=this.observer)||void 0===e||e.disconnect()}render(){var e,a,t;return i("header",{key:"aeeac33c4b9db2b9749b24ccca840aa03bac81df",class:c("db-header",this.className),ref:e=>{this._ref=e},id:null!==(e=this.id)&&void 0!==e?e:null===(a=this.propOverrides)||void 0===a?void 0:a.id,"data-width":this.width,"data-on-forcing-mobile":this.forceMobile&&!this.forcedToMobile},i("div",{key:"1078f960dbc6ed24664b5ff5c23c3524d725b822",class:"db-header-meta-navigation"},i("slot",{key:"c55739d8ae17254c2aa457795a31017a07ab5a88",name:"metaNavigation"})),i("div",{key:"6e82ab28439854dec6bcc6dcf9ed3fa36c6f5e69",class:"db-header-navigation-bar"},i("div",{key:"7e991f8cdee7c1767ea3aefdd9a01c662fb5d178",class:"db-header-brand-container"},i("slot",{key:"a1e2aea32b28520095612367e97a8b955f93bd96",name:"brand"})),i("div",{key:"273f17e3b8594dad83d8fbad021008405d865176",class:"db-header-navigation-container"},i("div",{key:"8bd9a08a0f3cf8083d238963c2cc3715edf1d5a4",class:"db-header-navigation"},i("slot",{key:"abfd95ef152c34e53806c114f243ff26b63a9bbe"})),i("div",{key:"4a61c6d86a0362913b45a432095a621ca22d1268",class:"db-header-primary-action"},i("slot",{key:"3b79bfc6d85a0a39fcb3ca2550be0a2a36b6a682",name:"primaryAction"}))),i("div",{key:"1c506669010a04ae260b692811ed17d76a3ecc03",class:"db-header-action-container"},i("div",{key:"aa522f5b0010a1747a1bc7f550c3700a0bad4e8a",class:"db-header-burger-menu-container"},i("db-button",{key:"2223a3865ed4ea94e3a3849e73e4113e1db0fb66",icon:"menu",variant:"ghost",noText:!0,onClick:()=>this.handleToggle()},null!==(t=this.burgerMenuLabel)&&void 0!==t?t:o)),i("div",{key:"86f41a6b354de871ac3f4d9cf8b7205c699ba189",class:"db-header-secondary-action"},i("slot",{key:"43e443323eb93871bb19cbea2222da6eb8ebd0e8",name:"secondaryAction"})))),i("db-drawer",{key:"8a8474e8a7f54d827f5844f76dea9ce44ef565e0",class:"db-header-drawer",spacing:"small",rounded:!0,closeButtonId:this.closeButtonId,closeButtonText:this.closeButtonText,open:d(this.drawerOpen),onClose:()=>this.handleToggle()},i("div",{key:"21f360dc09f2d53aea13fde8b13c1ffb3781f558",class:"db-header-drawer-navigation"},i("div",{key:"0c567049a2c1788decb48b10b0115348d2f3b406",class:"db-header-navigation",onClick:e=>this.handleNavigationItemClick(e)},i("slot",{key:"1403d518f5f63eca522ccecaf5a4b5f153649a33"})),i("div",{key:"c624cf3f4ea7e89a87e430ef96b34fa4ce6d4236",class:"db-header-meta-navigation"},i("slot",{key:"4fde72b2d7d8c098a8a09160e8f36ca2ddbd0702",name:"metaNavigation"}))),i("div",{key:"91d6fc1b39b3cfc39b8563956971f56a168da218",class:"db-header-secondary-action"},i("slot",{key:"a9745f3cf4c91db6a3cd0bc4e4bf904b8bc7a2aa",name:"secondaryAction"}))))}get rootElement(){return this}static get watchers(){return{initialized:[{watch0:0}],_ref:[{watch0:0}]}}},[260,"db-header",{forceMobile:[8,"force-mobile"],drawerOpen:[8,"drawer-open"],className:[1,"classname"],id:[1],propOverrides:[16],width:[1],burgerMenuLabel:[1,"burger-menu-label"],closeButtonId:[1,"close-button-id"],closeButtonText:[1,"close-button-text"],initialized:[32],forcedToMobile:[32],observer:[32]},void 0,{initialized:[{watch0:0}],_ref:[{watch0:0}]}]),f=h,u=function(){"undefined"!=typeof customElements&&["db-header","db-button","db-drawer"].forEach((e=>{switch(e){case"db-header":customElements.get(n(e))||customElements.define(n(e),h);break;case"db-button":customElements.get(n(e))||b();break;case"db-drawer":customElements.get(n(e))||l()}}))};export{f as DbHeader,u as defineCustomElement}
@@ -1 +0,0 @@
1
- import{y as i,H as t,A as s,f as a,k as n,z as e,F as o,j as d,d as h,u as l,t as c}from"./p-CYYSsu3p.js";import{n as r}from"./p-BdL-nI5y.js";import{N as u}from"./p-BuBrj57D.js";import{d as v}from"./p-DVuZmW_J.js";const b=i(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.click=s(this,"click"),this.initialized=!1,this.hasAreaPopup=!1,this.hasSubNavigation=!0,this.isSubNavigationExpanded=!1,this.autoClose=!1,this.navigationItemSafeTriangle=void 0,this.subNavigationId=void 0,this.subNavigationToggleId=void 0,this.observer=void 0}handleNavigationItemClick(i){var t;"A"===(null===(t=null==i?void 0:i.target)||void 0===t?void 0:t.nodeName)&&(this.autoClose=!0,a((()=>{this.autoClose=!1}),1e3))}handleClick(i){this.click&&(i.stopPropagation(),this.click.emit(i)),this.hasAreaPopup&&(this.isSubNavigationExpanded=!0)}handleBackClick(i){i.stopPropagation(),this.isSubNavigationExpanded=!1}setupObserver(i){if(!i)return;const t=i.closest("db-navigation-item");t&&!this.observer&&(this.observer=new MutationObserver((t=>{t.some((i=>{var t;const s=i.target.attributes.getNamedItem(null!==(t=i.attributeName)&&void 0!==t?t:"");return(null==s?void 0:s.value)!==i.oldValue}))&&this.enableAttributePassing(i,"db-navigation-item")})),this.observer.observe(t,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(i,t){const s=null==i?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let a=0;a<t.length;a++){const n=t.item(a);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))n.value?i.setAttribute(n.name,n.value):i.removeAttribute(n.name),s.removeAttribute(n.name);else if(n&&["style"].includes(n.name))i.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"class"===n.name){const t=n.value.includes("hydrated"),a=n.value.replace("hydrated","").trim(),e=i.getAttribute("class");i.setAttribute(n.name,`${e||""}${a?" "+a:""}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(n.name)}}}}watch0Fn(){void 0!==this.subNavigationExpanded&&(this.isSubNavigationExpanded=!!n(this.subNavigationExpanded,"subNavigationExpanded"))}watch0(){this.watch0Fn()}watch1Fn(){var i;if(this.initialized&&this._ref){const t=this._ref.querySelector("menu");t&&((null===(i=t.children)||void 0===i?void 0:i.length)>0?(this.hasAreaPopup=!0,this.navigationItemSafeTriangle||(this.navigationItemSafeTriangle=new u(this._ref,t))):this.hasSubNavigation=!1)}}watch1(){this.watch1Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const i=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);i&&i.remove()}this.enableAttributePassing(this._ref,"db-navigation-item"),(()=>{var i;this.initialized=!0;const t="sub-nav-"+(null!==(i=this.id)&&void 0!==i?i:l());this.subNavigationId=t,this.subNavigationToggleId=t+"-toggle"})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn()}disconnectedCallback(){var i;null===(i=this.observer)||void 0===i||i.disconnect()}render(){var i,t,s;return e("li",{key:"c7821549626fe4b55c4bc6907832c972723bc174",class:h("db-navigation-item",this.className),ref:i=>{this._ref=i},id:null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id,onMouseOver:()=>{var i;return null===(i=this.navigationItemSafeTriangle)||void 0===i?void 0:i.enableFollow()},onMouseLeave:()=>{var i;return null===(i=this.navigationItemSafeTriangle)||void 0===i?void 0:i.disableFollow()},onMouseMove:i=>{var t;return null===(t=this.navigationItemSafeTriangle)||void 0===t?void 0:t.followByMouseEvent(i)},"data-width":this.width,"data-icon":this.icon,"data-show-icon":d(this.showIcon,"showIcon"),"data-active":this.active,"data-wrap":d(this.wrap,"wrap"),"aria-disabled":d(this.disabled,"disabled")},!n(this.hideSubNavigation,"hideSubNavigation")&&this.hasSubNavigation?e(o,null,e("button",{class:"db-navigation-item-expand-button",id:this.subNavigationToggleId,"aria-haspopup":this.hasAreaPopup?"true":void 0,"aria-expanded":this.isSubNavigationExpanded,"aria-controls":this.subNavigationId,disabled:n(this.disabled,"disabled"),onClick:i=>this.handleClick(i)},this.text?this.text:e("slot",{name:"expandButton"})),e("menu",{class:"db-sub-navigation",id:this.subNavigationId,"aria-labelledby":this.subNavigationToggleId,"data-force-close":this.autoClose,onClick:i=>this.handleNavigationItemClick(i)},this.hasAreaPopup?e("div",{class:"db-mobile-navigation-back"},e("db-button",{icon:"arrow_left",variant:"ghost",id:this.backButtonId,onClick:i=>this.handleBackClick(i)},null!==(s=this.backButtonText)&&void 0!==s?s:r)):null,e("slot",{name:"subNavigation"}))):this.text?this.text:e("slot",null))}get rootElement(){return this}static get watchers(){return{subNavigationExpanded:[{watch0:0}],initialized:[{watch1:0}],_ref:[{watch1:0}]}}},[260,"db-navigation-item",{id:[1],subNavigationExpanded:[8,"sub-navigation-expanded"],propOverrides:[16],className:[1,"classname"],width:[1],icon:[1],showIcon:[8,"show-icon"],active:[4],wrap:[8],disabled:[8],hideSubNavigation:[8,"hide-sub-navigation"],text:[1],backButtonId:[1,"back-button-id"],backButtonText:[1,"back-button-text"],initialized:[32],hasAreaPopup:[32],hasSubNavigation:[32],isSubNavigationExpanded:[32],autoClose:[32],navigationItemSafeTriangle:[32],subNavigationId:[32],subNavigationToggleId:[32],observer:[32]},void 0,{subNavigationExpanded:[{watch0:0}],initialized:[{watch1:0}],_ref:[{watch1:0}]}]),m=b,g=function(){"undefined"!=typeof customElements&&["db-navigation-item","db-button"].forEach((i=>{switch(i){case"db-navigation-item":customElements.get(c(i))||customElements.define(c(i),b);break;case"db-button":customElements.get(c(i))||v()}}))};export{m as DbNavigationItem,g as defineCustomElement}
@@ -1 +0,0 @@
1
- import{y as t,H as e,z as s,d as i,t as n}from"./p-CYYSsu3p.js";const a=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const e=t.closest("db-navigation");e&&!this.observer&&(this.observer=new MutationObserver((e=>{e.some((t=>{var e;const s=t.target.attributes.getNamedItem(null!==(e=t.attributeName)&&void 0!==e?e:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-navigation")})),this.observer.observe(e,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,e){const s=null==t?void 0:t.closest(e);if(t&&s){const e=s.attributes;for(let i=0;i<e.length;i++){const n=e.item(i);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))n.value?t.setAttribute(n.name,n.value):t.removeAttribute(n.name),s.removeAttribute(n.name);else if(n&&["style"].includes(n.name))t.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"class"===n.name){const e=n.value.includes("hydrated"),i=n.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(n.name,`${a||""}${i?" "+i:""}`),e?s.setAttribute("class","hydrated"):s.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-navigation"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,e;return s("nav",{key:"e9dbd8ab905cbb2dd887dfe21fc96afea70b9f70",class:i("db-navigation",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(e=this.propOverrides)||void 0===e?void 0:e.id},s("menu",{key:"421231c4fabc97119732586bf221c07ebc914a19"},s("slot",{key:"f015b010c2d2e09570ead913a90d14160eed857c"})))}get rootElement(){return this}},[260,"db-navigation",{id:[1],propOverrides:[16],className:[1,"classname"],observer:[32]}]),d=a,o=function(){"undefined"!=typeof customElements&&["db-navigation"].forEach((t=>{"db-navigation"===t&&(customElements.get(n(t))||customElements.define(n(t),a))}))};export{d as DbNavigation,o as defineCustomElement}
package/bundle/db-page.js DELETED
@@ -1 +0,0 @@
1
- import{y as e,H as t,z as s,d,j as a,t as i}from"./p-CYYSsu3p.js";const n=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.fontsLoaded=!1,this.observer=void 0}setupObserver(e){if(!e)return;const t=e.closest("db-page");t&&!this.observer&&(this.observer=new MutationObserver((t=>{t.some((e=>{var t;const s=e.target.attributes.getNamedItem(null!==(t=e.attributeName)&&void 0!==t?t:"");return(null==s?void 0:s.value)!==e.oldValue}))&&this.enableAttributePassing(e,"db-page")})),this.observer.observe(t,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(e,t){const s=null==e?void 0:e.closest(t);if(e&&s){const t=s.attributes;for(let d=0;d<t.length;d++){const a=t.item(d);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?e.setAttribute(a.name,a.value):e.removeAttribute(a.name),s.removeAttribute(a.name);else if(a&&["style"].includes(a.name))e.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const t=a.value.includes("hydrated"),d=a.value.replace("hydrated","").trim(),i=e.getAttribute("class");e.setAttribute(a.name,`${i||""}${d?" "+d:""}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const e=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);e&&e.remove()}this.enableAttributePassing(this._ref,"db-page"),(()=>{this.fontsLoaded=!this.fadeIn,document&&this.fadeIn?document.fonts.ready.then((()=>{this.fontsLoaded=!0})):this.fontsLoaded=!0})(),(()=>{this.setupObserver(this._ref)})()}disconnectedCallback(){var e;"undefined"!=typeof window&&document.documentElement.classList.contains("db-page-document")&&document.documentElement.classList.remove("db-page-document"),null===(e=this.observer)||void 0===e||e.disconnect()}render(){var e,t;return s("div",{key:"d8c086f8eb07ec85955f140adabfa43f78286635",class:d("db-page",this.className),ref:e=>{this._ref=e},id:null!==(e=this.id)&&void 0!==e?e:null===(t=this.propOverrides)||void 0===t?void 0:t.id,"data-variant":this.variant,"data-fade-in":a(this.fadeIn,"fadeIn"),"data-fonts-loaded":a(this.fontsLoaded,"fontsLoaded")},s("slot",{key:"9122b1310ce8e47ad01576dcd124da4c37f6c702",name:"header"}),s("main",{key:"27318129c99bdf85882dfe1e28265ebf7abe0437",class:d("db-main",this.mainClass)},s("slot",{key:"cc1e59ff392c38010ffb61fc7dcfffc30bb75990"})),s("slot",{key:"d0335d70f621f133e68f3a79a90a62ecf1b65be5",name:"footer"}))}get rootElement(){return this}},[260,"db-page",{fadeIn:[8,"fade-in"],documentOverflow:[1,"document-overflow"],variant:[1],id:[1],propOverrides:[16],className:[1,"classname"],mainClass:[1,"main-class"],fontsLoaded:[32],observer:[32]}]),o=n,c=function(){"undefined"!=typeof customElements&&["db-page"].forEach((e=>{"db-page"===e&&(customElements.get(i(e))||customElements.define(i(e),n))}))};export{o as DbPage,c as defineCustomElement}
@@ -1 +0,0 @@
1
- import{y as e,H as t,z as s,u as a,d,t as l}from"./p-CYYSsu3p.js";import{d as o}from"./p-Cc5hdI0x.js";import{d as i}from"./p-C2w7ILj8.js";import{d as n}from"./p-C47AKJPy.js";import{d as c}from"./p-Cn5NdjPW.js";const r=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost()}enableAttributePassing(e,t){const s=null==e?void 0:e.closest(t);if(e&&s){const t=s.attributes;for(let a=0;a<t.length;a++){const d=t.item(a);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))d.value?e.setAttribute(d.name,d.value):e.removeAttribute(d.name),s.removeAttribute(d.name);else if(d&&["style"].includes(d.name))e.setAttribute(d.name,d.value),s.removeAttribute(d.name);else if(d&&"class"===d.name){const t=d.value.includes("hydrated"),a=d.value.replace("hydrated","").trim(),l=e.getAttribute("class");e.setAttribute(d.name,`${l||""}${a?` ${a}`:""}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(d.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const e=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);e&&e.remove()}this.enableAttributePassing(this._ref,"db-table-body")}render(){var e;return s("tbody",{key:"cb2c0320960e38d70cf2671ae7afd2b1a1d85029",class:d("db-table-body",this.className),ref:e=>{this._ref=e},id:this.id},this.rows?null===(e=this.rows)||void 0===e?void 0:e.map(((e,t)=>{var d,l,o;return s("db-table-row",{class:null!==(d=e.className)&&void 0!==d?d:e.class,key:`${null!==(o=null!==(l=e.id)&&void 0!==l?l:this.id)&&void 0!==o?o:a()}-table-body-row-${t}`,cells:e.cells,interactive:e.interactive,id:e.id})})):s("slot",null))}get rootElement(){return this}},[260,"db-table-body",{id:[1],className:[1,"classname"],rows:[16]}]);function b(){"undefined"!=typeof customElements&&["db-table-body","db-link","db-table-data-cell","db-table-header-cell","db-table-row"].forEach((e=>{switch(e){case"db-table-body":customElements.get(l(e))||customElements.define(l(e),r);break;case"db-link":customElements.get(l(e))||o();break;case"db-table-data-cell":customElements.get(l(e))||i();break;case"db-table-header-cell":customElements.get(l(e))||n();break;case"db-table-row":customElements.get(l(e))||c()}}))}export{r as D,b as d}
@@ -1 +0,0 @@
1
- const a="OVERWRITE_DEFAULT_ID",s="LABEL SHOULD BE SET",e=" ",i="MESSAGE SHOULD BE SET",l="-label",n="-select",b="-message",c="-valid-message",t="-invalid-message",r="-placeholder",g="-datalist",u="TODO: Add a validMessage",o="TODO: Add an invalidMessage",v="Remove",d="Back",f="Selected",m="BurgerMenu",p="brand",O=4,h="Close",w="density",E="color";var S;!function(a){a.FUNCTIONAL="functional",a.REGULAR="regular",a.EXPRESSIVE="expressive"}(S||(S={}));const j=Object.entries(S).map((([,a])=>a));var D,T;!function(a){a.PRIMARY="primary"}(D||(D={})),function(a){a.NEUTRAL_BG_LEVEL_1="neutral-bg-basic-level-1",a.NEUTRAL_BG_LEVEL_2="neutral-bg-basic-level-2",a.NEUTRAL_BG_LEVEL_3="neutral-bg-basic-level-3",a.NEUTRAL_BG_TRANSPARENT_SEMI="neutral-bg-basic-transparent-semi",a.NEUTRAL_BG_TRANSPARENT_FULL="neutral-bg-basic-transparent-full",a.BRAND_BG_LEVEL_1="brand-bg-basic-level-1",a.BRAND_BG_LEVEL_2="brand-bg-basic-level-2",a.BRAND_BG_LEVEL_3="brand-bg-basic-level-3",a.BRAND_BG_TRANSPARENT_SEMI="brand-bg-basic-transparent-semi",a.BRAND_BG_TRANSPARENT_FULL="brand-bg-basic-transparent-full",a.SUCCESSFUL_BG_LEVEL_1="successful-bg-basic-level-1",a.SUCCESSFUL_BG_LEVEL_2="successful-bg-basic-level-2",a.SUCCESSFUL_BG_LEVEL_3="successful-bg-basic-level-3",a.SUCCESSFUL_BG_TRANSPARENT_SEMI="successful-bg-basic-transparent-semi",a.SUCCESSFUL_BG_TRANSPARENT_FULL="successful-bg-basic-transparent-full",a.CRITICAL_BG_LEVEL_1="critical-bg-basic-level-1",a.CRITICAL_BG_LEVEL_2="critical-bg-basic-level-2",a.CRITICAL_BG_LEVEL_3="critical-bg-basic-level-3",a.CRITICAL_BG_TRANSPARENT_SEMI="critical-bg-basic-transparent-semi",a.CRITICAL_BG_TRANSPARENT_Full="critical-bg-basic-transparent-full",a.WARNING_BG_LEVEL_1="warning-bg-basic-level-1",a.WARNING_BG_LEVEL_2="warning-bg-basic-level-2",a.WARNING_BG_LEVEL_3="warning-bg-basic-level-3",a.WARNING_BG_TRANSPARENT_SEMI="warning-bg-basic-transparent-semi",a.WARNING_BG_TRANSPARENT_FULL="warning-bg-basic-transparent-full",a.INFORMATIONAL_BG_LEVEL_1="informational-bg-basic-level-1",a.INFORMATIONAL_BG_LEVEL_2="informational-bg-basic-level-2",a.INFORMATIONAL_BG_LEVEL_3="informational-bg-basic-level-3",a.INFORMATIONAL_BG_TRANSPARENT_SEMI="informational-bg-basic-transparent-semi",a.INFORMATIONAL_BG_TRANSPARENT_FULL="informational-bg-basic-transparent-full"}(T||(T={}));const A=Object.entries(T).map((([,a])=>a)),B=Object.entries(D).map((([,a])=>a));var x;!function(a){a.CRITICAL="critical",a.INFORMATIONAL="informational",a.WARNING="warning",a.SUCCESSFUL="successful"}(x||(x={}));const L=Object.entries(x).map((([,a])=>a)),k={width:390,height:884},M={width:1920,height:1280},y=[Object.assign({name:"desktop"},M),{name:"tablet",width:768,height:1024},Object.assign({name:"mobile"},k)],R="db-ux-framework",U="db-ux-mode";export{L as A,k as B,E as C,a as D,M as E,R as F,U as G,x as S,y as T,s as a,e as b,i as c,l as d,n as e,b as f,c as g,t as h,r as i,g as j,u as k,o as l,v as m,d as n,f as o,m as p,p as q,O as r,h as s,w as t,S as u,j as v,D as w,T as x,A as y,B as z}
@@ -1 +0,0 @@
1
- import{h as i}from"./p-DOPXnIzL.js";const t=i=>{var t,s;const{target:h}=i;return Boolean(!(null===(t=null==h?void 0:h.classList)||void 0===t?void 0:t.contains("db-navigation-item-expand-button"))&&(null===(s=null==h?void 0:h.parentElement)||void 0===s?void 0:s.classList.contains("db-navigation-item")))};class s{constructor(i,t){var s;this.parentSubNavigation=null,this.initialized=!1,this.mouseX=0,this.mouseY=0,this.element=i,this.subNavigation=t,this.element&&this.subNavigation&&(this.parentSubNavigation=null===(s=this.element)||void 0===s?void 0:s.closest(".db-sub-navigation"),this.parentSubNavigation&&!this.element.closest(".db-drawer")&&this.init())}init(){var i,t,s;const h=null!==(t=null===(i=this.parentSubNavigation)||void 0===i?void 0:i.getBoundingClientRect().width)&&void 0!==t?t:0;null===(s=this.element)||void 0===s||s.style.setProperty("--db-navigation-item-inline-size",`${h}px`),this.initialized=!0}enableFollow(){var t,s;if(!this.initialized||this.triangleData||!this.element||!this.subNavigation)return;const h=i(this.subNavigation),n=this.element.getBoundingClientRect(),o=null!==(s=null===(t=this.parentSubNavigation)||void 0===t?void 0:t.getBoundingClientRect().width)&&void 0!==s?s:0;this.triangleData={itemRect:n,parentElementWidth:o,subNavigationHeight:this.subNavigation.getBoundingClientRect().height,padding:(o-n.width)/2,outsideVX:h.vx,outsideVY:h.vy}}disableFollow(){this.triangleData=void 0}getTriangleTipX(){return this.triangleData?"right"===this.triangleData.outsideVX?this.triangleData.itemRect.width-this.mouseX:Math.min(this.mouseX,.75*this.triangleData.itemRect.width):0}getTriangleTipY(){if(!this.triangleData)return 0;const i=Math.max(Math.min(this.mouseY,this.triangleData.itemRect.height),0)+this.triangleData.padding;return"bottom"===this.triangleData.outsideVY?i+(this.triangleData.subNavigationHeight-2*this.triangleData.padding-this.triangleData.itemRect.height):i}hasMouseEnteredSubNavigation(){if(!this.triangleData)return!1;const i="right"===this.triangleData.outsideVX;return!!(i&&this.mouseX<-1*this.triangleData.padding)||!i&&this.mouseX>this.triangleData.parentElementWidth-this.triangleData.padding}getTriangleCoordinates(i){if(!this.triangleData)return;if("fill-gap"===i){const i=`${this.triangleData.itemRect.height+2*this.triangleData.padding}px`,t=this.triangleData.parentElementWidth-this.triangleData.padding+"px";return{lb:`${t} ${i}`,lt:`${t} 0`,rt:"100% 0",rb:`100% ${i}`}}const t=this.getTriangleTipX(),s=this.getTriangleTipY();return{lb:`${t}px ${s}px`,lt:`${t}px ${s}px`,rt:"100% 0",rb:"100% 100%"}}followByMouseEvent(i){if(!(this.initialized&&this.triangleData&&this.element&&this.subNavigation))return;this.mouseX=i.clientX-this.triangleData.itemRect.left,this.mouseY=i.clientY-this.triangleData.itemRect.top;const t=this.hasMouseEnteredSubNavigation(),s=this.getTriangleCoordinates(t?"fill-gap":"safe-triangle");s&&(this.element.style.setProperty("--db-navigation-item-clip-path",`polygon(${s.lb}, ${s.lt}, ${s.rt}, ${s.rb})`),t&&(this.triangleData=void 0))}}export{s as N,t as i}
@@ -1 +0,0 @@
1
- import{y as t,H as a,z as e,d as s,t as n,l}from"./p-CYYSsu3p.js";const i=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,a){const e=null==t?void 0:t.closest(a);if(t&&e){const a=e.attributes;for(let s=0;s<a.length;s++){const n=a.item(s);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))n.value?t.setAttribute(n.name,n.value):t.removeAttribute(n.name),e.removeAttribute(n.name);else if(n&&["style"].includes(n.name))t.setAttribute(n.name,n.value),e.removeAttribute(n.name);else if(n&&"class"===n.name){const a=n.value.includes("hydrated"),s=n.value.replace("hydrated","").trim(),l=t.getAttribute("class");t.setAttribute(n.name,`${l||""}${s?` ${s}`:""}`),a?e.setAttribute("class","hydrated"):e.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-table-data-cell")}render(){return e("td",{key:"3ca063d88f598584751c0519ae80146525d2fa5a",class:s("db-table-data-cell",this.className),ref:t=>{this._ref=t},id:this.id,"data-horizontal-alignment":this.horizontalAlignment,"data-vertical-alignment":this.verticalAlignment,colSpan:l(this.colSpan,this.colspan),rowSpan:l(this.rowSpan,this.rowspan),headers:this.headers},e("slot",{key:"30d173c99e242c0bf764f710cee0323bf9549e41"}))}get rootElement(){return this}},[260,"db-table-data-cell",{id:[1],className:[1,"classname"],horizontalAlignment:[1,"horizontal-alignment"],verticalAlignment:[1,"vertical-alignment"],colSpan:[8,"col-span"],colspan:[8],rowSpan:[8,"row-span"],rowspan:[8],headers:[1]}]);function d(){"undefined"!=typeof customElements&&["db-table-data-cell"].forEach((t=>{"db-table-data-cell"===t&&(customElements.get(n(t))||customElements.define(n(t),i))}))}export{i as D,d}
@@ -1 +0,0 @@
1
- import{y as t,H as e,z as s,j as a,d as n,t as l,l as i}from"./p-CYYSsu3p.js";const o=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,e){const s=null==t?void 0:t.closest(e);if(t&&s){const e=s.attributes;for(let a=0;a<e.length;a++){const n=e.item(a);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))n.value?t.setAttribute(n.name,n.value):t.removeAttribute(n.name),s.removeAttribute(n.name);else if(n&&["style"].includes(n.name))t.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"class"===n.name){const e=n.value.includes("hydrated"),a=n.value.replace("hydrated","").trim(),l=t.getAttribute("class");t.setAttribute(n.name,`${l||""}${a?` ${a}`:""}`),e?s.setAttribute("class","hydrated"):s.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-table-header-cell")}render(){return s("th",{key:"fd53f0b6cc8b2574b895e131d02f0d47d5f93b63",class:n("db-table-header-cell",this.className),ref:t=>{this._ref=t},id:this.id,"data-horizontal-alignment":this.horizontalAlignment,"data-vertical-alignment":this.verticalAlignment,"data-no-text":a(this.noText),scope:this.scope,colSpan:i(this.colSpan,this.colspan),rowSpan:i(this.rowSpan,this.rowspan),headers:this.headers,abbr:this.abbr},s("slot",{key:"ce5680819cff5294899f7b79287156ff769241f1"}))}get rootElement(){return this}},[260,"db-table-header-cell",{id:[1],className:[1,"classname"],horizontalAlignment:[1,"horizontal-alignment"],verticalAlignment:[1,"vertical-alignment"],noText:[8,"no-text"],scope:[1],colSpan:[8,"col-span"],colspan:[8],rowSpan:[8,"row-span"],rowspan:[8],headers:[1],abbr:[1]}]);function d(){"undefined"!=typeof customElements&&["db-table-header-cell"].forEach((t=>{"db-table-header-cell"===t&&(customElements.get(l(t))||customElements.define(l(t),o))}))}export{o as D,d}
@@ -1 +0,0 @@
1
- import{y as l,H as i,z as o,u as d,j as e,d as t,t as n}from"./p-CYYSsu3p.js";import{d as a}from"./p-Cc5hdI0x.js";import{d as s}from"./p-C2w7ILj8.js";import{d as v}from"./p-C47AKJPy.js";const r=l(class extends i{constructor(l){super(),!1!==l&&this.__registerHost()}getHeaderCell(l){if(l.headerCell)return l}enableAttributePassing(l,i){const o=null==l?void 0:l.closest(i);if(l&&o){const i=o.attributes;for(let d=0;d<i.length;d++){const e=i.item(d);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))e.value?l.setAttribute(e.name,e.value):l.removeAttribute(e.name),o.removeAttribute(e.name);else if(e&&["style"].includes(e.name))l.setAttribute(e.name,e.value),o.removeAttribute(e.name);else if(e&&"class"===e.name){const i=e.value.includes("hydrated"),d=e.value.replace("hydrated","").trim(),t=l.getAttribute("class");l.setAttribute(e.name,`${t||""}${d?` ${d}`:""}`),i?o.setAttribute("class","hydrated"):o.removeAttribute(e.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const l=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);l&&l.remove()}this.enableAttributePassing(this._ref,"db-table-row")}render(){var l;return o("tr",{key:"35a33e8121f2ba41e8785c1399566365741064e3",class:t("db-table-row",this.className),ref:l=>{this._ref=l},id:this.id,"data-interactive":e(this.interactive),"data-sub-header-emphasis":this.subHeaderEmphasis},this.cells?null===(l=this.cells)||void 0===l?void 0:l.map(((l,i)=>{var e,t,n,a,s,v,r,u,c,h,b,m,p,f,w,y,g,k,E,$,j,x,A,z,C,S,I,P,D,H,L,Y,J,K,N,T,q,B,F,G,M,O,Q,R,U,V,W;return l.headerCell?o("db-table-header-cell",{class:null!==(e=l.className)&&void 0!==e?e:l.class,key:`${null!==(n=null!==(t=l.id)&&void 0!==t?t:this.id)&&void 0!==n?n:d()}-table-row-header-cell-${i}`,id:l.id,abbr:null===(a=this.getHeaderCell(l))||void 0===a?void 0:a.abbr,scope:null===(s=this.getHeaderCell(l))||void 0===s?void 0:s.scope,noText:null===(v=this.getHeaderCell(l))||void 0===v?void 0:v.noText,horizontalAlignment:l.horizontalAlignment,verticalAlignment:l.verticalAlignment,headers:l.headers,colSpan:l.colSpan,colspan:l.colspan,rowSpan:l.rowSpan,rowspan:l.rowspan},l.link?o("db-link",{class:null!==(u=null===(r=l.link)||void 0===r?void 0:r.className)&&void 0!==u?u:null===(c=l.link)||void 0===c?void 0:c.class,content:null===(h=l.link)||void 0===h?void 0:h.content,size:null===(b=l.link)||void 0===b?void 0:b.size,variant:null===(m=l.link)||void 0===m?void 0:m.variant,id:null===(p=l.link)||void 0===p?void 0:p.id,autofocus:null===(f=l.link)||void 0===f?void 0:f.autofocus,disabled:null===(w=l.link)||void 0===w?void 0:w.disabled,href:null===(y=l.link)||void 0===y?void 0:y.href,hreflang:null===(g=l.link)||void 0===g?void 0:g.hreflang,target:null===(k=l.link)||void 0===k?void 0:k.target,rel:null===(E=l.link)||void 0===E?void 0:E.rel,referrerPolicy:null===($=l.link)||void 0===$?void 0:$.referrerPolicy,role:null===(j=l.link)||void 0===j?void 0:j.role,showIcon:null===(x=l.link)||void 0===x?void 0:x.showIcon,text:null===(A=l.link)||void 0===A?void 0:A.text,wrap:null===(z=l.link)||void 0===z?void 0:z.wrap},null===(C=l.link)||void 0===C?void 0:C.children):l.content):o("db-table-data-cell",{class:null!==(S=l.className)&&void 0!==S?S:l.class,key:`${null!==(P=null!==(I=l.id)&&void 0!==I?I:this.id)&&void 0!==P?P:d()}-table-row-data-cell-${i}`,id:l.id,horizontalAlignment:l.horizontalAlignment,verticalAlignment:l.verticalAlignment,headers:l.headers,colSpan:l.colSpan,colspan:l.colspan,rowSpan:l.rowSpan,rowspan:l.rowspan},l.link?o("db-link",{class:null!==(H=null===(D=l.link)||void 0===D?void 0:D.className)&&void 0!==H?H:null===(L=l.link)||void 0===L?void 0:L.class,content:null===(Y=l.link)||void 0===Y?void 0:Y.content,size:null===(J=l.link)||void 0===J?void 0:J.size,variant:null===(K=l.link)||void 0===K?void 0:K.variant,id:null===(N=l.link)||void 0===N?void 0:N.id,autofocus:null===(T=l.link)||void 0===T?void 0:T.autofocus,disabled:null===(q=l.link)||void 0===q?void 0:q.disabled,href:null===(B=l.link)||void 0===B?void 0:B.href,hreflang:null===(F=l.link)||void 0===F?void 0:F.hreflang,target:null===(G=l.link)||void 0===G?void 0:G.target,rel:null===(M=l.link)||void 0===M?void 0:M.rel,referrerPolicy:null===(O=l.link)||void 0===O?void 0:O.referrerPolicy,role:null===(Q=l.link)||void 0===Q?void 0:Q.role,showIcon:null===(R=l.link)||void 0===R?void 0:R.showIcon,text:null===(U=l.link)||void 0===U?void 0:U.text,wrap:null===(V=l.link)||void 0===V?void 0:V.wrap},null===(W=l.link)||void 0===W?void 0:W.children):l.content)})):o("slot",null))}get rootElement(){return this}},[260,"db-table-row",{id:[1],className:[1,"classname"],interactive:[8],subHeaderEmphasis:[1,"sub-header-emphasis"],cells:[16]}]);function u(){"undefined"!=typeof customElements&&["db-table-row","db-link","db-table-data-cell","db-table-header-cell"].forEach((l=>{switch(l){case"db-table-row":customElements.get(n(l))||customElements.define(n(l),r);break;case"db-link":customElements.get(n(l))||a();break;case"db-table-data-cell":customElements.get(n(l))||s();break;case"db-table-header-cell":customElements.get(n(l))||v()}}))}export{r as D,u as d}
@@ -1 +0,0 @@
1
- import{f as t}from"./p-CYYSsu3p.js";const e=(t,e,c)=>{t.form&&!t._dbFormResetListenerAdded&&(t.form.addEventListener("reset",(t=>{e(t)}),{signal:c}),t._dbFormResetListenerAdded=!0)},c=(c,s,a,b)=>{e(c,(e=>{t((()=>{const t=s.checked?s.checked:s.defaultChecked?s.defaultChecked:c.checked,b=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{checked:t})});a(b)}),1)}),b)},s=(c,s,a,b)=>{e(c,(e=>{t((()=>{const t=s.value?s.value:s.defaultValue?s.defaultValue:c.value,b=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:t})});a(b)}),1)}),b)};export{c as a,e as b,s as c}
@@ -1 +0,0 @@
1
- import{y as t,H as i,f as s,u as e,z as a,j as o,d as h,t as d}from"./p-CYYSsu3p.js";import{D as n}from"./p-BdL-nI5y.js";import{D as l}from"./p-DJTpgiBy.js";import{b as r}from"./p-DOPXnIzL.js";const c=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this._id=n,this.initialized=!1,this._documentScrollListenerCallbackId=void 0,this._observer=void 0,this._attachedParent=void 0,this._attachedId=void 0,this._activeTriggerCount=0,this._boundListeners=[],this.observer=void 0}handleClick(t){t.stopPropagation()}handleEscape(t){t&&"Escape"!==t.key||!this._ref||"visible"!==getComputedStyle(this._ref).visibility||this.getParent().blur()}getParent(){let t=this._ref.parentElement;return t&&t.localName.includes("tooltip")&&(t=t.parentElement),t}handleAutoPlacement(t){t&&this._ref&&s((()=>{var i;this._ref&&r(this._ref,t,null!==(i=this.placement)&&void 0!==i?i:"bottom")}),1)}handleDocumentScroll(t,i){var s,e;(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.contains)&&(null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.contains(this._ref))&&this.handleAutoPlacement(i)}handleLeave(){var t,i,s;this._activeTriggerCount=Math.max((null!==(t=this._activeTriggerCount)&&void 0!==t?t:0)-1,0),(null!==(i=this._activeTriggerCount)&&void 0!==i?i:0)>0||(this._documentScrollListenerCallbackId&&((new l).removeCallback(this._documentScrollListenerCallbackId),this._documentScrollListenerCallbackId=void 0),null===(s=this._observer)||void 0===s||s.unobserve(this.getParent()))}handleEnter(t){var i,s;this._activeTriggerCount=(null!==(i=this._activeTriggerCount)&&void 0!==i?i:0)+1,1===this._activeTriggerCount&&(this._documentScrollListenerCallbackId=(new l).addCallback((i=>this.handleDocumentScroll(i,t))),null===(s=this._observer)||void 0===s||s.observe(this.getParent())),this.handleAutoPlacement(t)}resetIds(){var t,i,s;this._id=null!==(s=null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&void 0!==s?s:"tooltip-"+e()}_detachListeners(){var t,i,s;const e=this._documentScrollListenerCallbackId;e&&((new l).removeCallback(e),this._documentScrollListenerCallbackId=void 0),null===(t=this._observer)||void 0===t||t.disconnect(),this._observer=void 0,this._activeTriggerCount=0,(null!==(i=this._boundListeners)&&void 0!==i?i:[]).forEach((t=>{t.parent.removeEventListener(t.type,t.fn)})),this._boundListeners=[];const a=this._attachedParent;if(a){const t=null!==(s=this._attachedId)&&void 0!==s?s:this._id,i=a.querySelectorAll(".db-tooltip"),e=Array.from(i).some((t=>t!==this._ref));"true"!==a.dataset.hasTooltip||e||delete a.dataset.hasTooltip,a.getAttribute("aria-labelledby")===t&&a.removeAttribute("aria-labelledby"),a.getAttribute("aria-describedby")===t&&a.removeAttribute("aria-describedby"),this._attachedParent=void 0,this._attachedId=void 0}}setupObserver(t){if(!t)return;const i=t.closest("db-tooltip");i&&!this.observer&&(this.observer=new MutationObserver((i=>{i.some((t=>{var i;const s=t.target.attributes.getNamedItem(null!==(i=t.attributeName)&&void 0!==i?i:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-tooltip")})),this.observer.observe(i,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const a=i.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?t.setAttribute(a.name,a.value):t.removeAttribute(a.name),s.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),o=t.getAttribute("class");t.setAttribute(a.name,`${o||""}${e?` ${e}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){var t,i;(null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var t;if(this._ref&&this.initialized&&this._id){const i=this.getParent();if(i){this.handleAutoPlacement(i);const s=()=>this.handleEnter(i),e=()=>this.handleLeave(),a=t=>this.handleEscape(t);i.addEventListener("mouseenter",s),i.addEventListener("focusin",s),i.addEventListener("keydown",a),i.addEventListener("mouseleave",e),i.addEventListener("focusout",e),this._boundListeners=[...null!==(t=this._boundListeners)&&void 0!==t?t:[],{parent:i,type:"mouseenter",fn:s},{parent:i,type:"focusin",fn:s},{parent:i,type:"keydown",fn:a},{parent:i,type:"mouseleave",fn:e},{parent:i,type:"focusout",fn:e}],i.dataset.hasTooltip="true",i.setAttribute("label"===this.variant?"aria-labelledby":"aria-describedby",this._id),this._attachedParent=i,this._attachedId=this._id}"undefined"!=typeof window&&"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((t=>{const i=t.find((({target:t})=>t===this.getParent()));i&&!i.isIntersecting&&this.handleEscape(!1)}))),this.initialized=!1}}watch1(){this.watch1Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tooltip"),(()=>{this.resetIds(),this.initialized=!0})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn()}disconnectedCallback(){var t;this._detachListeners(),null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,i;return a("i",{key:"a35fc9349a599145e2ea2287aa6467500854fadd",class:h("db-tooltip",this.className),role:"tooltip","aria-hidden":"true","data-gap":"true",ref:t=>{this._ref=t},id:this._id,"data-emphasis":this.emphasis,"data-wrap":o(this.wrap,"wrap"),"data-animation":o(null===(t=this.animation)||void 0===t||t,"animation"),"data-delay":this.delay,"data-width":this.width,"data-show-arrow":o(null===(i=this.showArrow)||void 0===i||i,"showArrow"),"data-placement":this.placement,onClick:t=>this.handleClick(t)},this.text?this.text:null,a("slot",{key:"63d102dc8c4c4022c2dc3bad582f0167635adcb2"}))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],_id:[{watch1:0}]}}},[260,"db-tooltip",{id:[1],propOverrides:[16],variant:[1],placement:[1],className:[1,"classname"],emphasis:[1],wrap:[8],animation:[8],delay:[1],width:[1],showArrow:[8,"show-arrow"],text:[1],_id:[32],initialized:[32],_documentScrollListenerCallbackId:[32],_observer:[32],_attachedParent:[32],_attachedId:[32],_activeTriggerCount:[32],_boundListeners:[32],observer:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],_id:[{watch1:0}]}]);function u(){"undefined"!=typeof customElements&&["db-tooltip"].forEach((t=>{"db-tooltip"===t&&(customElements.get(d(t))||customElements.define(d(t),c))}))}export{c as D,u as d}
@@ -1 +0,0 @@
1
- import{u as s}from"./p-CYYSsu3p.js";class t{static runCallbacks(s){for(const l of Object.values(t.callbacks))"function"==typeof l&&l(s)}constructor(){if(this.ticking=!1,t._instance)return t._instance;t._instance=this,self.document&&self.document.addEventListener("scroll",(s=>{this.ticking||(window.requestAnimationFrame((()=>{t.runCallbacks(s),this.ticking=!1})),this.ticking=!0)}),!0)}addCallback(l){const o=s();return t.callbacks[o]=l,o}removeCallback(s){delete t.callbacks[s]}}t.callbacks={},t._instance=null;export{t as D}
@@ -1 +0,0 @@
1
- const t=t=>{const{outTop:o,outBottom:e,outLeft:i,outRight:l}=(t=>{var o;const{top:e,bottom:i,left:l,right:r}=t.getBoundingClientRect(),{innerHeight:n,innerWidth:d}=window;let h=e<0,p=i>n,c=l<0,a=r>d;const s=t.dataset.outsideVy,f=t.dataset.outsideVx,b=null===(o=null==t?void 0:t.parentElement)||void 0===o?void 0:o.getBoundingClientRect();return b&&(s&&("top"===t.dataset.outsideVy?h=b.top-(i-b.bottom)<0:p=b.bottom+(b.top-e)>n),f&&("left"===t.dataset.outsideVx?c=b.left-(r-b.right)<0:a=b.right+(b.left-l)>d)),{outTop:h,outBottom:p,outLeft:c,outRight:a}})(t);let r={};return o||e?(r={vy:o?"top":"bottom"},t.dataset.outsideVy=r.vy):delete t.dataset.outsideVy,i||l?(r=Object.assign(Object.assign({},r),{vx:l?"right":"left"}),t.dataset.outsideVx=r.vx):delete t.dataset.outsideVx,r},o=(t,o,i)=>{if(!t||!o)return;if("9999"===getComputedStyle(t).zIndex)return;const{top:l,bottom:r,childHeight:n,childWidth:d,width:h,right:p,left:c,correctedPlacement:a}=e(t,o,i);"full"===t.dataset.width&&(t.style.inlineSize=`${h}px`),"top"===a||"bottom"===a||"top-start"===a||"bottom-start"===a?t.style.insetInlineStart=`${c}px`:"top-end"!==a&&"bottom-end"!==a||(t.style.insetInlineStart=p-d+"px"),(null==a?void 0:a.startsWith("top"))?t.style.insetBlockStart=l-n+"px":(null==a?void 0:a.startsWith("bottom"))&&(t.style.insetBlockStart=`${r}px`),t.style.position="fixed"},e=(t,o,e)=>{if(!t||!o)return{top:0,bottom:0,right:0,height:0,width:0,left:0,childHeight:0,childWidth:0,correctedPlacement:e,innerWidth:window.innerWidth,innerHeight:window.innerHeight};const i=t.getBoundingClientRect(),{top:l,height:r,bottom:n,right:d,left:h,width:p}=o.getBoundingClientRect(),{innerHeight:c,innerWidth:a}=window;let s=i.height,f=i.width;"bottom"!==e&&"top"!==e||(f/=2),"left"!==e&&"right"!==e||(s/=2);const b=n+s>c,g=l-s<0,u=h-f<0,m=d+f>a;let $=e;return e.startsWith("bottom")?b?($=null==e?void 0:e.replace("bottom","top"),u&&m?$="top":u?$="top-start":m&&($="top-end")):u&&m?$="bottom":u?$="bottom-start":m&&($="bottom-end"):e.startsWith("top")?g?($=null==e?void 0:e.replace("top","bottom"),u&&m?$="bottom":u?$="bottom-start":m&&($="bottom-end")):u&&m?$="top":u?$="top-start":m&&($="top-end"):e.startsWith("left")?u?($=null==e?void 0:e.replace("left","right"),b&&g?$="right":b?$="right-end":g&&($="right-start")):b&&g?$="left":b?$="left-end":g&&($="left-start"):$.startsWith("right")&&(m?($=null==e?void 0:e.replace("right","left"),b&&g?$="left":b?$="left-end":g&&($="left-start")):b&&g?$="right":b?$="right-end":g&&($="right-start")),{top:l,bottom:n,right:d,height:r,width:p,left:h,childHeight:i.height,childWidth:i.width,correctedPlacement:$,innerWidth:a,innerHeight:c}},i=new WeakMap,l=(t,o,l)=>{var r,n;if(!t||!o)return;const d=getComputedStyle(o),h=["absolute","fixed"].includes(d.position),p=(t=>{if(i.has(t))return i.get(t);let o=t.parentElement,e=0;for(;o&&e<10;){if(o.dataset.correctedPlacement)return i.set(t,o),o;o=o.parentElement,e+=1}return i.set(t,null),null})(t),c=!p&&!h,a=null!==(n=null===(r=getComputedStyle(t))||void 0===r?void 0:r.getPropertyValue("--db-popover-distance"))&&void 0!==n?n:"0px";let{top:s,height:f,width:b,childHeight:g,childWidth:u,right:m,left:$,bottom:x,correctedPlacement:v,innerWidth:w,innerHeight:W}=e(t,o,l);if(p){const t=p.getBoundingClientRect();$=Math.abs($-t.left),m=1.5*(b+Math.abs(m-t.right)),s=Math.abs(s-t.top),x=1.5*(f+Math.abs(x-t.bottom))}if(h&&($=0,m=b,s=0,x=f,["auto","inherit","0"].includes(d.zIndex)&&(o.style.zIndex="1")),u>b&&(v.startsWith("bottom")||v.startsWith("top"))){const o=b/2/u*100;v.endsWith("start")?t.style.setProperty("--db-tooltip-arrow-inline-start",`${o}%`):v.endsWith("end")?t.style.setProperty("--db-tooltip-arrow-inline-start",100-o+"%"):t.style.setProperty("--db-tooltip-arrow-inline-start","50%")}if(g>f&&(v.startsWith("left")||v.startsWith("bottom"))){const o=f/2/g*100;v.endsWith("start")?t.style.setProperty("--db-tooltip-arrow-block-start",`${o}%`):v.endsWith("end")?t.style.setProperty("--db-tooltip-arrow-block-start",100-o+"%"):t.style.setProperty("--db-tooltip-arrow-block-start","50%")}if("right"===v||"left"===v)t.style.insetBlockStart=`${s+f/2}px`;else if("right-start"===v||"left-start"===v){const o=s+g;t.style.insetBlockStart=`${s}px`,t.style.insetBlockEnd=`${!h&&o>W?W:o}px`}else if("right-end"===v||"left-end"===v){const o=x-g;t.style.insetBlockStart=`${!h&&o<0?0:o}px`,t.style.insetBlockEnd=`${x}px`}else if("top"===v||"bottom"===v)t.style.insetInlineStart=`${$+b/2}px`;else if("top-start"===v||"bottom-start"===v){const o=$+u;t.style.insetInlineStart=`${$}px`,t.style.insetInlineEnd=`${!h&&o>w?w:o}px`}else if("top-end"===v||"bottom-end"===v){const o=m-u;t.style.insetInlineStart=`${!h&&o<0?0:o}px`,t.style.insetInlineEnd=`${m}px`}if(null==v?void 0:v.startsWith("right")){const o=m+u;t.style.insetInlineStart=`calc(${m}px + ${a})`,t.style.insetInlineEnd=`calc(${c&&o>w?w:o}px + ${a})`}else if(null==v?void 0:v.startsWith("left")){const o=$-u;t.style.insetInlineStart=`calc(${c&&o<0?0:o}px - ${a})`,t.style.insetInlineEnd=`calc(${m}px - ${a})`}else if(null==v?void 0:v.startsWith("top")){const o=s-g;t.style.insetBlockStart=`calc(${c&&o<0?0:o}px - ${a})`,t.style.insetBlockEnd=`calc(${h?o:x}px - ${a})`}else if(null==v?void 0:v.startsWith("bottom")){const o=x+g;t.style.insetBlockStart=`calc(${h?o:x}px + ${a})`,t.style.insetBlockEnd=`calc(${c&&o>W?W:o}px + ${a})`}t.style.position="fixed",t.dataset.correctedPlacement=v};export{o as a,l as b,e as g,t as h}
@@ -1 +0,0 @@
1
- import{y as e,H as t,z as s,u as a,d,t as l}from"./p-CYYSsu3p.js";import{d as i}from"./p-Cc5hdI0x.js";import{d as r}from"./p-C2w7ILj8.js";import{d as o}from"./p-C47AKJPy.js";import{d as n}from"./p-Cn5NdjPW.js";const b=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.observer=void 0}getCells(e){return null==e?void 0:e.map((e=>Object.assign(Object.assign({},e),{headerCell:!0})))}setupObserver(e){if(!e)return;const t=e.closest("db-table-head");t&&!this.observer&&(this.observer=new MutationObserver((t=>{t.some((e=>{var t;const s=e.target.attributes.getNamedItem(null!==(t=e.attributeName)&&void 0!==t?t:"");return(null==s?void 0:s.value)!==e.oldValue}))&&this.enableAttributePassing(e,"db-table-head")})),this.observer.observe(t,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(e,t){const s=null==e?void 0:e.closest(t);if(e&&s){const t=s.attributes;for(let a=0;a<t.length;a++){const d=t.item(a);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))d.value?e.setAttribute(d.name,d.value):e.removeAttribute(d.name),s.removeAttribute(d.name);else if(d&&["style"].includes(d.name))e.setAttribute(d.name,d.value),s.removeAttribute(d.name);else if(d&&"class"===d.name){const t=d.value.includes("hydrated"),a=d.value.replace("hydrated","").trim(),l=e.getAttribute("class");e.setAttribute(d.name,`${l||""}${a?` ${a}`:""}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(d.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const e=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);e&&e.remove()}this.enableAttributePassing(this._ref,"db-table-head"),this.setupObserver(this._ref)}disconnectedCallback(){var e;null===(e=this.observer)||void 0===e||e.disconnect()}render(){var e;return s("thead",{key:"d2796be8931832f63f6948ea20b14b6e9981f50e",class:d("db-table-head",this.className),ref:e=>{this._ref=e},id:this.id},this.rows?null===(e=this.rows)||void 0===e?void 0:e.map(((e,t)=>{var d,l,i;return s("db-table-row",{class:null!==(d=e.className)&&void 0!==d?d:e.class,key:`${null!==(i=null!==(l=e.id)&&void 0!==l?l:this.id)&&void 0!==i?i:a()}-table-head-row-${t}`,cells:this.getCells(e.cells),subHeaderEmphasis:e.subHeaderEmphasis,interactive:e.interactive,id:e.id})})):s("slot",null))}get rootElement(){return this}},[260,"db-table-head",{id:[1],className:[1,"classname"],rows:[16],observer:[32]}]);function c(){"undefined"!=typeof customElements&&["db-table-head","db-link","db-table-data-cell","db-table-header-cell","db-table-row"].forEach((e=>{switch(e){case"db-table-head":customElements.get(l(e))||customElements.define(l(e),b);break;case"db-link":customElements.get(l(e))||i();break;case"db-table-data-cell":customElements.get(l(e))||r();break;case"db-table-header-cell":customElements.get(l(e))||o();break;case"db-table-row":customElements.get(l(e))||n()}}))}export{b as D,c as d}
@@ -1 +0,0 @@
1
- import{y as t,H as i,A as s,z as n,j as a,k as e,d as o,t as d}from"./p-CYYSsu3p.js";const h=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.click=s(this,"click"),this.observer=void 0}getButtonType(){return this.type?this.type:this.click?"button":"submit"}setupObserver(t){if(!t)return;const i=t.closest("db-button");i&&!this.observer&&(this.observer=new MutationObserver((i=>{i.some((t=>{var i;const s=t.target.attributes.getNamedItem(null!==(i=t.attributeName)&&void 0!==i?i:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-button")})),this.observer.observe(i,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let n=0;n<i.length;n++){const a=i.item(n);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?t.setAttribute(a.name,a.value):t.removeAttribute(a.name),s.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),n=a.value.replace("hydrated","").trim(),e=t.getAttribute("class");t.setAttribute(a.name,`${e||""}${n?` ${n}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-button"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,i,s;return n("button",{key:"5eadddc7c23a90019ab373dfd11aedfc2000735f",class:o("db-button",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id,type:this.getButtonType(),disabled:e(this.disabled,"disabled"),"data-icon":null!==(s=this.iconLeading)&&void 0!==s?s:this.icon,"data-show-icon":a(this.showIconLeading,"showIconLeading")||a(this.showIcon,"showIcon"),"data-icon-trailing":this.iconTrailing,"data-show-icon-trailing":a(this.showIconTrailing,"showIconTrailing"),"data-size":this.size,"data-width":this.width,"data-variant":this.variant,"data-wrap":a(this.wrap,"wrap"),"data-no-text":a(this.noText,"noText"),name:this.name,form:this.form,value:this.value},this.text?this.text:null,n("slot",{key:"d42f84050c3eb885783ed3488293062cf9a00bcf"}))}get rootElement(){return this}},[260,"db-button",{type:[1],id:[1],propOverrides:[16],className:[1,"classname"],disabled:[8],iconLeading:[1,"icon-leading"],icon:[1],showIconLeading:[8,"show-icon-leading"],showIcon:[8,"show-icon"],iconTrailing:[1,"icon-trailing"],showIconTrailing:[8,"show-icon-trailing"],size:[1],width:[1],variant:[1],wrap:[8],noText:[8,"no-text"],name:[1],form:[1],value:[1],text:[1],observer:[32]}]);function c(){"undefined"!=typeof customElements&&["db-button"].forEach((t=>{"db-button"===t&&(customElements.get(d(t))||customElements.define(d(t),h))}))}export{h as D,c as d}
@@ -1 +0,0 @@
1
- import{y as t,H as s,A as i,k as e,z as h,j as c,d as o,t as a}from"./p-CYYSsu3p.js";const d=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.change=i(this,"change"),this.hasDivider=!1,this.observer=void 0}handleChange(t){t.stopPropagation(),this.change&&this.change.emit(t)}getIconTrailing(){if(!this.isGroupTitle&&"checkbox"!==this.type)return e(this.checked,"checked")?"check":"x_placeholder"}setupObserver(t){if(!t)return;const s=t.closest("db-custom-select-list-item");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const i=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==i?void 0:i.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-custom-select-list-item")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const i=null==t?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let e=0;e<s.length;e++){const h=s.item(e);if(h&&"data-density"!==h.name&&(h.name.startsWith("data-")||h.name.startsWith("aria-")))h.value?t.setAttribute(h.name,h.value):t.removeAttribute(h.name),i.removeAttribute(h.name);else if(h&&["style"].includes(h.name))t.setAttribute(h.name,h.value),i.removeAttribute(h.name);else if(h&&"class"===h.name){const s=h.value.includes("hydrated"),e=h.value.replace("hydrated","").trim(),c=t.getAttribute("class");t.setAttribute(h.name,`${c||""}${e?` ${e}`:""}`),s?i.setAttribute("class","hydrated"):i.removeAttribute(h.name)}}}}watch0Fn(){this.hasDivider=Boolean(this.isGroupTitle||this.showDivider)}watch0(){this.watch0Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-custom-select-list-item"),this.setupObserver(this._ref),this.watch0Fn()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return h("li",{key:"95e2aeea15f86890868013ddb33a6b365d814fc4",class:o("db-custom-select-list-item",this.className,{"db-checkbox":"checkbox"===this.type&&!this.isGroupTitle,"db-radio":"checkbox"!==this.type&&!this.isGroupTitle}),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-divider":c(this.hasDivider,"hasDivider")},this.isGroupTitle?h("span",null,this.groupTitle):h("label",{"data-icon":"checkbox"!==this.type&&this.icon?this.icon:void 0,"data-show-icon":c(this.showIcon,"showIcon"),"data-icon-trailing":this.getIconTrailing()},h("input",{class:"db-custom-select-list-item-checkbox","data-disable-focus":"true",type:this.type,name:this.name,form:this.name,checked:e(this.checked,"checked"),disabled:e(this.disabled,"disabled"),value:this.value,onChange:t=>this.handleChange(t)}),this.label?this.label:null,h("slot",null)))}get rootElement(){return this}static get watchers(){return{isGroupTitle:[{watch0:0}],showDivider:[{watch0:0}]}}},[260,"db-custom-select-list-item",{isGroupTitle:[4,"is-group-title"],showDivider:[4,"show-divider"],type:[1],checked:[8],id:[1],propOverrides:[16],className:[1,"classname"],groupTitle:[1,"group-title"],icon:[1],showIcon:[8,"show-icon"],name:[1],disabled:[8],value:[8],label:[1],hasDivider:[32],observer:[32]},void 0,{isGroupTitle:[{watch0:0}],showDivider:[{watch0:0}]}]);function l(){"undefined"!=typeof customElements&&["db-custom-select-list-item"].forEach((t=>{"db-custom-select-list-item"===t&&(customElements.get(a(t))||customElements.define(a(t),d))}))}export{d as D,l as d}
@@ -1 +0,0 @@
1
- import{y as e,H as t,z as s,u as a,d as o,t as d}from"./p-CYYSsu3p.js";import{d as l}from"./p-Cc5hdI0x.js";import{d as r}from"./p-C2w7ILj8.js";import{d as i}from"./p-C47AKJPy.js";import{d as n}from"./p-Cn5NdjPW.js";const c=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost()}enableAttributePassing(e,t){const s=null==e?void 0:e.closest(t);if(e&&s){const t=s.attributes;for(let a=0;a<t.length;a++){const o=t.item(a);if(o&&"data-density"!==o.name&&(o.name.startsWith("data-")||o.name.startsWith("aria-")))o.value?e.setAttribute(o.name,o.value):e.removeAttribute(o.name),s.removeAttribute(o.name);else if(o&&["style"].includes(o.name))e.setAttribute(o.name,o.value),s.removeAttribute(o.name);else if(o&&"class"===o.name){const t=o.value.includes("hydrated"),a=o.value.replace("hydrated","").trim(),d=e.getAttribute("class");e.setAttribute(o.name,`${d||""}${a?` ${a}`:""}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(o.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const e=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);e&&e.remove()}this.enableAttributePassing(this._ref,"db-table-footer")}render(){var e;return s("tfoot",{key:"204ca2b37050ebd079e26fe0dba6c55a87806d44",class:o("db-table-footer",this.className),ref:e=>{this._ref=e},id:this.id},this.rows?null===(e=this.rows)||void 0===e?void 0:e.map(((e,t)=>{var o,d,l;return s("db-table-row",{class:null!==(o=e.className)&&void 0!==o?o:e.class,key:`${null!==(l=null!==(d=e.id)&&void 0!==d?d:this.id)&&void 0!==l?l:a()}-table-footer-row-${t}`,cells:e.cells,interactive:e.interactive,id:e.id})})):s("slot",null))}get rootElement(){return this}},[260,"db-table-footer",{id:[1],className:[1,"classname"],rows:[16]}]);function b(){"undefined"!=typeof customElements&&["db-table-footer","db-link","db-table-data-cell","db-table-header-cell","db-table-row"].forEach((e=>{switch(e){case"db-table-footer":customElements.get(d(e))||customElements.define(d(e),c);break;case"db-link":customElements.get(d(e))||l();break;case"db-table-data-cell":customElements.get(d(e))||r();break;case"db-table-header-cell":customElements.get(d(e))||i();break;case"db-table-row":customElements.get(d(e))||n()}}))}export{c as D,b as d}
@@ -1 +0,0 @@
1
- import{y as t,H as s,A as i,w as e,k as a,f as d,z as o,j as n,d as c,t as r}from"./p-CYYSsu3p.js";import{s as h}from"./p-BdL-nI5y.js";import{d as l}from"./p-DVuZmW_J.js";const b=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.close=i(this,"close"),this.initialized=!1,this.observer=void 0}handleClose(t,s){var i;t&&(e(t)?"Escape"===t.key&&(t.preventDefault(),this.close&&this.close.emit(t)):(s&&(t.stopPropagation(),this.close&&this.close.emit(t)),"DIALOG"===(null===(i=t.target)||void 0===i?void 0:i.nodeName)&&"click"===t.type&&"none"!==this.backdrop&&this.close&&this.close.emit(t)))}handleDialogOpen(){if(this._ref){const t=a(this.open,"open");t&&!this._ref.open&&(this.dialogContainerRef&&this.dialogContainerRef.removeAttribute("data-transition"),"absolute"===this.position||"none"===this.backdrop||"inside"===this.variant?this._ref.show():this._ref.showModal(),d((()=>{this.dialogContainerRef&&(this.dialogContainerRef.dataset.transition="open")}),1)),!t&&this._ref.open&&(this.dialogContainerRef&&(this.dialogContainerRef.dataset.transition="close"),d((()=>{var t;null===(t=this._ref)||void 0===t||t.close()}),401))}}setupObserver(t){if(!t)return;const s=t.closest("db-drawer");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const i=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==i?void 0:i.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-drawer")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const i=null==t?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let e=0;e<s.length;e++){const a=s.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?t.setAttribute(a.name,a.value):t.removeAttribute(a.name),i.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),i.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(a.name,`${d||""}${e?` ${e}`:""}`),s?i.setAttribute("class","hydrated"):i.removeAttribute(a.name)}}}}watch0Fn(){this.handleDialogOpen()}watch0(){this.watch0Fn()}watch1Fn(){if(this._ref&&this.initialized&&"absolute"===this.position){const t=this._ref.parentElement;t&&(t.style.position="relative")}}watch1(){this.watch1Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-drawer"),(()=>{this.handleDialogOpen(),this.initialized=!0})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s,i;return o("dialog",{key:"da82f7380e7d7e4fcad45db3ba3ec83b02b2c197",class:"db-drawer",id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,ref:t=>{this._ref=t},onClick:t=>this.handleClose(t),onKeyDown:t=>this.handleClose(t),"data-position":this.position,"data-backdrop":this.backdrop,"data-direction":this.direction,"data-variant":this.variant},o("article",{key:"2cf07ab412c07ee52693bc274e672e162fcfdb6a",class:c("db-drawer-container",this.className),ref:t=>{this.dialogContainerRef=t},"data-spacing":this.spacing,"data-width":this.width,"data-direction":this.direction,"data-rounded":n(this.rounded,"rounded")},o("header",{key:"e157aa7d79396cba7dc80d9b28cfcf0bbd5023f9",class:"db-drawer-header"},o("div",{key:"8297856ab0be4390b13de2331993615a777d0fb0",class:"db-drawer-header-text"},o("slot",{key:"171f6828f42cdea289e09dd7700561d35df8fe71",name:"drawerHeader"})),o("db-button",{key:"c066db25db7b90abdd4f4cd169257a7f1f523a47",class:"button-close-drawer",icon:"cross",variant:"ghost",id:this.closeButtonId,noText:!0,onClick:t=>this.handleClose(t,!0)},null!==(i=this.closeButtonText)&&void 0!==i?i:h)),o("div",{key:"d25e9aab5c3a65028599e09d0cb0c8e9b714b459",class:"db-drawer-content"},o("slot",{key:"77cb41d2176ca55ead3ad1f4dd58605864bf8d6a"}))))}get rootElement(){return this}static get watchers(){return{open:[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],position:[{watch1:0}]}}},[260,"db-drawer",{open:[8],position:[1],backdrop:[1],variant:[1],id:[1],propOverrides:[16],direction:[1],className:[1,"classname"],spacing:[1],width:[1],rounded:[8],closeButtonId:[1,"close-button-id"],closeButtonText:[1,"close-button-text"],initialized:[32],observer:[32]},void 0,{open:[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],position:[{watch1:0}]}]);function u(){"undefined"!=typeof customElements&&["db-drawer","db-button"].forEach((t=>{switch(t){case"db-drawer":customElements.get(r(t))||customElements.define(r(t),b);break;case"db-button":customElements.get(r(t))||l()}}))}export{b as D,u as d}
@@ -1,204 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index-C313bRqJ.js');
4
- var constants = require('./constants-bMY2_d8A.js');
5
- var index$1 = require('./index-spuu3sXz.js');
6
-
7
- const DBDrawer = class {
8
- constructor(hostRef) {
9
- index.registerInstance(this, hostRef);
10
- this.close = index.createEvent(this, "close");
11
- this.initialized = false;
12
- this.observer = undefined;
13
- }
14
- handleClose(event, forceClose) {
15
- var _a;
16
- if (!event)
17
- return;
18
- if (index$1.isKeyboardEvent(event)) {
19
- if (event.key === "Escape") {
20
- event.preventDefault();
21
- if (this.close) {
22
- this.close.emit(event);
23
- }
24
- }
25
- }
26
- else {
27
- if (forceClose) {
28
- event.stopPropagation();
29
- if (this.close) {
30
- this.close.emit(event);
31
- }
32
- }
33
- if (((_a = event.target) === null || _a === void 0 ? void 0 : _a.nodeName) === "DIALOG" &&
34
- event.type === "click" &&
35
- this.backdrop !== "none") {
36
- if (this.close) {
37
- this.close.emit(event);
38
- }
39
- }
40
- }
41
- }
42
- handleDialogOpen() {
43
- if (this._ref) {
44
- const dialogOpen = index$1.getBoolean(this.open, "open");
45
- if (dialogOpen && !this._ref.open) {
46
- if (this.dialogContainerRef) {
47
- this.dialogContainerRef.removeAttribute("data-transition");
48
- }
49
- if (this.position === "absolute" ||
50
- this.backdrop === "none" ||
51
- this.variant === "inside") {
52
- this._ref.show();
53
- }
54
- else {
55
- this._ref.showModal();
56
- }
57
- void index$1.delay(() => {
58
- if (this.dialogContainerRef) {
59
- this.dialogContainerRef.dataset["transition"] =
60
- "open";
61
- }
62
- }, 1);
63
- }
64
- if (!dialogOpen && this._ref.open) {
65
- if (this.dialogContainerRef) {
66
- this.dialogContainerRef.dataset["transition"] =
67
- "close";
68
- }
69
- void index$1.delay(() => {
70
- var _a;
71
- (_a = this._ref) === null || _a === void 0 ? void 0 : _a.close();
72
- }, 401);
73
- }
74
- }
75
- }
76
- setupObserver(element) {
77
- if (!element)
78
- return;
79
- const parent = element.closest("db-drawer");
80
- if (!parent || this.observer)
81
- return;
82
- this.observer = new MutationObserver((mutations) => {
83
- if (mutations.some((mutation) => {
84
- var _a;
85
- const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
86
- return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
87
- })) {
88
- this.enableAttributePassing(element, "db-drawer");
89
- }
90
- });
91
- this.observer.observe(parent, {
92
- attributes: true,
93
- attributeOldValue: true,
94
- });
95
- }
96
- /**
97
- * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
98
- * @param element the ref for the component
99
- * @param customElementSelector the custom element like `my-component`
100
- */
101
- enableAttributePassing(element, customElementSelector) {
102
- const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
103
- if (element && parent) {
104
- const attributes = parent.attributes;
105
- for (let i = 0; i < attributes.length; i++) {
106
- const attr = attributes.item(i);
107
- if (attr && attr.name !== 'data-density' &&
108
- (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
109
- if (attr.value) {
110
- element.setAttribute(attr.name, attr.value);
111
- }
112
- else {
113
- element.removeAttribute(attr.name);
114
- }
115
- parent.removeAttribute(attr.name);
116
- }
117
- else if (attr && ["style"].includes(attr.name)) {
118
- element.setAttribute(attr.name, attr.value);
119
- parent.removeAttribute(attr.name);
120
- }
121
- else if (attr && attr.name === "class") {
122
- const isWebComponent = attr.value.includes("hydrated");
123
- const value = attr.value.replace("hydrated", "").trim();
124
- const currentClass = element.getAttribute("class");
125
- element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
126
- if (isWebComponent) {
127
- // Stencil is using this class for lazy loading component
128
- parent.setAttribute("class", "hydrated");
129
- }
130
- else {
131
- parent.removeAttribute(attr.name);
132
- }
133
- }
134
- }
135
- }
136
- }
137
- watch0Fn() {
138
- this.handleDialogOpen();
139
- }
140
- watch0() {
141
- this.watch0Fn();
142
- }
143
- watch1Fn() {
144
- if (this._ref && this.initialized && this.position === "absolute") {
145
- const refElement = this._ref;
146
- const parent = refElement.parentElement;
147
- if (parent) {
148
- parent.style.position = "relative";
149
- }
150
- }
151
- }
152
- watch1() {
153
- this.watch1Fn();
154
- }
155
- componentDidLoad() {
156
- if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
157
- const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
158
- if (connectedElement) {
159
- connectedElement.remove();
160
- }
161
- }
162
- this.enableAttributePassing(this._ref, "db-drawer");
163
- const onMountHook_0 = () => {
164
- this.handleDialogOpen();
165
- this.initialized = true;
166
- };
167
- onMountHook_0();
168
- const onMountHook_1 = () => {
169
- this.setupObserver(this._ref);
170
- };
171
- onMountHook_1();
172
- this.watch0Fn();
173
- this.watch1Fn();
174
- }
175
- disconnectedCallback() {
176
- var _a;
177
- (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
178
- }
179
- render() {
180
- var _a, _b, _c;
181
- return (index.h("dialog", { key: 'da82f7380e7d7e4fcad45db3ba3ec83b02b2c197', class: "db-drawer", id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, ref: (el) => {
182
- this._ref = el;
183
- }, onClick: (event) => this.handleClose(event), onKeyDown: (event) => this.handleClose(event), "data-position": this.position, "data-backdrop": this.backdrop, "data-direction": this.direction, "data-variant": this.variant }, index.h("article", { key: '2cf07ab412c07ee52693bc274e672e162fcfdb6a', class: index$1.cls("db-drawer-container", this.className), ref: (el) => {
184
- this.dialogContainerRef = el;
185
- }, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": index$1.getBooleanAsString(this.rounded, "rounded") }, index.h("header", { key: 'e157aa7d79396cba7dc80d9b28cfcf0bbd5023f9', class: "db-drawer-header" }, index.h("div", { key: '8297856ab0be4390b13de2331993615a777d0fb0', class: "db-drawer-header-text" }, index.h("slot", { key: '171f6828f42cdea289e09dd7700561d35df8fe71', name: "drawerHeader" })), index.h("db-button", { key: 'c066db25db7b90abdd4f4cd169257a7f1f523a47', class: "button-close-drawer", icon: "cross", variant: "ghost", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event, true) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : constants.DEFAULT_CLOSE_BUTTON)), index.h("div", { key: 'd25e9aab5c3a65028599e09d0cb0c8e9b714b459', class: "db-drawer-content" }, index.h("slot", { key: '77cb41d2176ca55ead3ad1f4dd58605864bf8d6a' })))));
186
- }
187
- get rootElement() { return index.getElement(this); }
188
- static get watchers() { return {
189
- "open": [{
190
- "watch0": 0
191
- }],
192
- "_ref": [{
193
- "watch1": 0
194
- }],
195
- "initialized": [{
196
- "watch1": 0
197
- }],
198
- "position": [{
199
- "watch1": 0
200
- }]
201
- }; }
202
- };
203
-
204
- exports.db_drawer = DBDrawer;