@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
@@ -1,9 +1,9 @@
1
1
  import type { Components, JSX } from "../dist/types/components";
2
2
 
3
- interface DbHeader extends Components.DbHeader, HTMLElement {}
4
- export const DbHeader: {
5
- prototype: DbHeader;
6
- new (): DbHeader;
3
+ interface DbShellContent extends Components.DbShellContent, HTMLElement {}
4
+ export const DbShellContent: {
5
+ prototype: DbShellContent;
6
+ new (): DbShellContent;
7
7
  };
8
8
  /**
9
9
  * Used to define this component and all nested components recursively.
@@ -0,0 +1 @@
1
+ import{z as t,H as e,A as s,d as a,t as n}from"./p-DEicAzan.js";import{M as i}from"./p-COv1iCFP.js";const d=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.variant="auto",this.observer=void 0}setupObserver(t){if(!t)return;const e=t.closest("db-shell-content");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-shell-content")})),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 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(),i=t.getAttribute("class");t.setAttribute(n.name,`${i||""}${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-shell-content"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,e,n;return s("div",{key:"731bf736a256dbb756c28c6ec1e2ff4013ca4ed7",class:a("db-shell-content",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,"data-variant":this.variant},s("slot",{key:"10529094c104300eb4135fb6aadb4b368ddf9e66",name:"startSlot"}),s("main",{key:"7b28388d870b5351eaca6ce6d3988ed70052e69c",class:a("db-main",this.mainClass),id:null!==(n=this.mainId)&&void 0!==n?n:i,"aria-label":this.mainLabel},s("slot",{key:"182adf6e0563762abf939a3d9625ab56ec81a6d9"})),s("slot",{key:"e6701313eb0aabfab1a40c4bcc44e5dd406748c2",name:"endSlot"}))}get rootElement(){return this}},[260,"db-shell-content",{id:[1],propOverrides:[16],className:[1,"classname"],variant:[1],mainId:[1,"main-id"],mainClass:[1,"main-class"],mainLabel:[1,"main-label"],observer:[32]}]),l=d,o=function(){"undefined"!=typeof customElements&&["db-shell-content"].forEach((t=>{"db-shell-content"===t&&(customElements.get(n(t))||customElements.define(n(t),d))}))};export{l as DbShellContent,o as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface DbShellSubNavigation extends Components.DbShellSubNavigation, HTMLElement {}
4
+ export const DbShellSubNavigation: {
5
+ prototype: DbShellSubNavigation;
6
+ new (): DbShellSubNavigation;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{z as t,H as s,u as e,A as i,k as a,d as n,t as o}from"./p-DEicAzan.js";import{q as d,p as l}from"./p-COv1iCFP.js";import{d as c}from"./p-B5p2TBcA.js";const b=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this._id="db-shell-sub-navigation-"+e(),this._open=!0,this.observer=void 0}handleToggle(t){t.stopPropagation(),this._open=!this._open}getToggleButtonText(){return this.expandButtonTooltip?this.expandButtonTooltip:this._open?d:l}setupObserver(t){if(!t)return;const s=t.closest("db-shell-sub-navigation");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-shell-sub-navigation")})),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 a=s.item(i);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),e.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),e.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),i=a.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(a.name,`${n||""}${i?" "+i:""}`),s?e.setAttribute("class","hydrated"):e.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-shell-sub-navigation"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s,e,o,d,l;return i("aside",{key:"b7d0f24dad986142ff9dd1934ba26cf69aa8afa7",class:n("db-shell-sub-navigation",this.className),ref:t=>{this._ref=t},id:null!==(e=null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&void 0!==e?e:this._id,"data-open":a(this._open)},i("slot",{key:"a81ef3f89b5fd04b9a37b82104a104daa8b0a3fd"}),i("div",{key:"2b7f4c8a505e7eb2051e1cc00056fe4a128a7b7f",class:"db-shell-sub-navigation-button"},i("button",{key:"9f58b47acff481c63e63480e8eac60c2b267c67d",class:"db-button","data-variant":"ghost","data-no-text":"true","data-icon":"double_chevron_left",onClick:t=>this.handleToggle(t),"aria-controls":null!==(l=null!==(o=this.id)&&void 0!==o?o:null===(d=this.propOverrides)||void 0===d?void 0:d.id)&&void 0!==l?l:this._id,"aria-expanded":a(this._open)},i("db-tooltip",{key:"febfc5670fbce950bc756292543ab3b1de3651de",variant:"label",placement:"right"},this.getToggleButtonText()))))}get rootElement(){return this}},[260,"db-shell-sub-navigation",{expanded:[8],expandButtonTooltip:[1,"expand-button-tooltip"],id:[1],propOverrides:[16],className:[1,"classname"],_id:[32],_open:[32],observer:[32]}]),r=b,h=function(){"undefined"!=typeof customElements&&["db-shell-sub-navigation","db-tooltip"].forEach((t=>{switch(t){case"db-shell-sub-navigation":customElements.get(o(t))||customElements.define(o(t),b);break;case"db-tooltip":customElements.get(o(t))||c()}}))};export{r as DbShellSubNavigation,h as defineCustomElement}
@@ -1,9 +1,9 @@
1
1
  import type { Components, JSX } from "../dist/types/components";
2
2
 
3
- interface DbBrand extends Components.DbBrand, HTMLElement {}
4
- export const DbBrand: {
5
- prototype: DbBrand;
6
- new (): DbBrand;
3
+ interface DbShell extends Components.DbShell, HTMLElement {}
4
+ export const DbShell: {
5
+ prototype: DbShell;
6
+ new (): DbShell;
7
7
  };
8
8
  /**
9
9
  * Used to define this component and all nested components recursively.
@@ -0,0 +1 @@
1
+ import{z as t,H as i,A as s,k as o,d as n,l as e,t as a}from"./p-DEicAzan.js";const l=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.fontsLoaded=!1,this.observer=void 0}setupObserver(t){if(!t)return;const i=t.closest("db-shell");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-shell")})),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 o=0;o<i.length;o++){const n=i.item(o);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 i=n.value.includes("hydrated"),o=n.value.replace("hydrated","").trim(),e=t.getAttribute("class");t.setAttribute(n.name,`${e||""}${o?" "+o:""}`),i?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-shell"),(()=>{var t,i;const s=e(this.fadeIn,"fadeIn");this.fontsLoaded=!s,document&&s?null===(i=null===(t=document.fonts)||void 0===t?void 0:t.ready)||void 0===i||i.then((()=>{this.fontsLoaded=!0})).catch((()=>{this.fontsLoaded=!0})):this.fontsLoaded=!0})(),(()=>{this.setupObserver(this._ref)})()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,i,e,a,l,d;return s("div",{key:"3dbac9ffe368787517b775903e88ac086614066f",class:n("db-shell",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,"data-control-panel-desktop-position":null!==(e=this.controlPanelDesktopPosition)&&void 0!==e?e:"top","data-control-panel-mobile-position":null!==(a=this.controlPanelMobilePosition)&&void 0!==a?a:"top","data-sub-navigation-desktop-position":null!==(l=this.subNavigationDesktopPosition)&&void 0!==l?l:"top","data-sub-navigation-mobile-position":null!==(d=this.subNavigationMobilePosition)&&void 0!==d?d:"top","data-show-sub-navigation":o(this.showSubNavigation,"showSubNavigation"),"data-fade-in":o(this.fadeIn,"fadeIn"),"data-fonts-loaded":o(this.fontsLoaded)},s("slot",{key:"97b4ae8f0a3e718d02c1d79f41c4d0989fd543e4"}))}get rootElement(){return this}},[260,"db-shell",{fadeIn:[8,"fade-in"],id:[1],propOverrides:[16],className:[1,"classname"],controlPanelDesktopPosition:[1,"control-panel-desktop-position"],controlPanelMobilePosition:[1,"control-panel-mobile-position"],subNavigationDesktopPosition:[1,"sub-navigation-desktop-position"],subNavigationMobilePosition:[1,"sub-navigation-mobile-position"],showSubNavigation:[8,"show-sub-navigation"],fontsLoaded:[32],observer:[32]}]),d=l,h=function(){"undefined"!=typeof customElements&&["db-shell"].forEach((t=>{"db-shell"===t&&(customElements.get(a(t))||customElements.define(a(t),l))}))};export{d as DbShell,h as defineCustomElement}
@@ -1 +1 @@
1
- import{y as t,H as s,z as e,j as a,d as i,t as n}from"./p-CYYSsu3p.js";const d=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-stack");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-stack")})),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 a=0;a<s.length;a++){const i=s.item(a);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))i.value?t.setAttribute(i.name,i.value):t.removeAttribute(i.name),e.removeAttribute(i.name);else if(i&&["style"].includes(i.name))t.setAttribute(i.name,i.value),e.removeAttribute(i.name);else if(i&&"class"===i.name){const s=i.value.includes("hydrated"),a=i.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(i.name,`${n||""}${a?" "+a:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(i.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-stack"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return e("div",{key:"643002e053cb9d039f2e212c526586503c322ccc",class:i("db-stack",this.className),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-gap":this.gap,"data-variant":this.variant,"data-direction":this.direction,"data-alignment":this.alignment,"data-justify-content":this.justifyContent,"data-wrap":a(this.wrap,"wrap")},e("slot",{key:"d38d30e92d276b6c31328ede2a68db8eb62fe05e"}))}get rootElement(){return this}},[260,"db-stack",{id:[1],propOverrides:[16],className:[1,"classname"],gap:[1],variant:[1],direction:[1],alignment:[1],justifyContent:[1,"justify-content"],wrap:[8],observer:[32]}]),c=d,o=function(){"undefined"!=typeof customElements&&["db-stack"].forEach((t=>{"db-stack"===t&&(customElements.get(n(t))||customElements.define(n(t),d))}))};export{c as DbStack,o as defineCustomElement}
1
+ import{z as t,H as s,A as e,k as a,d as i,t as n}from"./p-DEicAzan.js";const d=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-stack");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-stack")})),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 a=0;a<s.length;a++){const i=s.item(a);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))i.value?t.setAttribute(i.name,i.value):t.removeAttribute(i.name),e.removeAttribute(i.name);else if(i&&["style"].includes(i.name))t.setAttribute(i.name,i.value),e.removeAttribute(i.name);else if(i&&"class"===i.name){const s=i.value.includes("hydrated"),a=i.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(i.name,`${n||""}${a?" "+a:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(i.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-stack"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return e("div",{key:"d5710ec1389c92d561eeafa0854415eb458100df",class:i("db-stack",this.className),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-gap":this.gap,"data-variant":this.variant,"data-direction":this.direction,"data-alignment":this.alignment,"data-justify-content":this.justifyContent,"data-wrap":a(this.wrap,"wrap")},e("slot",{key:"8f82797854c793e312d21c327fc90fd81d7ebed5"}))}get rootElement(){return this}},[260,"db-stack",{id:[1],propOverrides:[16],className:[1,"classname"],gap:[1],variant:[1],direction:[1],alignment:[1],justifyContent:[1,"justify-content"],wrap:[8],observer:[32]}]),c=d,o=function(){"undefined"!=typeof customElements&&["db-stack"].forEach((t=>{"db-stack"===t&&(customElements.get(n(t))||customElements.define(n(t),d))}))};export{c as DbStack,o as defineCustomElement}
@@ -1 +1 @@
1
- import{y as i,H as s,A as t,h as a,f as e,p as h,u as d,z as l,k as o,o as n,j as c,d as r,t as v}from"./p-CYYSsu3p.js";import{l as u,f as w,g as b,h as f,k as m}from"./p-BdL-nI5y.js";import{a as g}from"./p-D6L0n3gO.js";import{d as p}from"./p-BpO8Ok-r.js";const k=i(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._descByIds=void 0,this._voiceOverFallback="",this.abortController=void 0,this.observer=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,s,t,d,l,o;return(null===(s=null===(i=this._ref)||void 0===i?void 0:i.validity)||void 0===s?void 0:s.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(l=null===(d=this._ref)||void 0===d?void 0:d.validity)||void 0===l?void 0:l.valid)&&this.required?(this._descByIds=this._validMessageId,void(a()&&(this._voiceOverFallback=null!==(o=this.validMessage)&&void 0!==o?o:m,e((()=>{this._voiceOverFallback=""}),1e3)))):void(this._descByIds=h(this.message,this.showMessage)?this._messageId:void 0):(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||u,void(a()&&(this._voiceOverFallback=this._invalidMessage||u,e((()=>{this._voiceOverFallback=""}),1e3))))}handleChange(i,s){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}handleKeyDown(i){var s;"Enter"===i.key&&(i.preventDefault(),this.disabled||null===(s=this._ref)||void 0===s||s.click())}resetIds(){var i,s,t;const a=null!==(t=null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&void 0!==t?t:"switch-"+d();this._id=a,this._messageId=`${a}${w}`,this._validMessageId=`${a}${b}`,this._invalidMessageId=`${a}${f}`}setupObserver(i){if(!i)return;const s=i.closest("db-switch");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((i=>{var s;const t=i.target.attributes.getNamedItem(null!==(s=i.attributeName)&&void 0!==s?s:"");return(null==t?void 0:t.value)!==i.oldValue}))&&this.enableAttributePassing(i,"db-switch")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(i,s){const t=null==i?void 0:i.closest(s);if(i&&t){const s=t.attributes;for(let a=0;a<s.length;a++){const e=s.item(a);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))e.value?i.setAttribute(e.name,e.value):i.removeAttribute(e.name),t.removeAttribute(e.name);else if(e&&["style"].includes(e.name))i.setAttribute(e.name,e.value),t.removeAttribute(e.name);else if(e&&"class"===e.name){const s=e.value.includes("hydrated"),a=e.value.replace("hydrated","").trim(),h=i.getAttribute("class");i.setAttribute(e.name,`${h||""}${a?" "+a:""}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(e.name)}}}}watch0Fn(){var i,s;(null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){this.handleValidation()}watch1(){this.watch1Fn()}watch2Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||u}watch2(){this.watch2Fn()}watch3Fn(){if(this._ref){const i=void 0;let s=this.abortController;s||(s=new AbortController,this.abortController=s),g(this._ref,{checked:this.checked,defaultChecked:i},(i=>{this.handleChange(i,!0)}),s.signal)}}watch3(){this.watch3Fn()}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-switch"),(()=>{this.resetIds(),this.handleValidation(),this._invalidMessage=this.invalidMessage||u})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn()}disconnectedCallback(){var i,s;null===(i=this.abortController)||void 0===i||i.abort(),null===(s=this.observer)||void 0===s||s.disconnect()}render(){var i,s;return l("div",{key:"f9182aa08b0ac9a58767d5de15bada3b31850b1b",class:r("db-switch",this.className),"data-visual-aid":c(this.visualAid,"visualAid"),"data-size":this.size,"data-hide-label":n(this.showLabel),"data-variant":this.variant,"data-hide-asterisk":n(this.showRequiredAsterisk),"data-custom-validity":this.validation},l("label",{key:"4f27226dbe245461f2fd9bd6913db00a5b207732",htmlFor:this._id},l("input",{key:"b0995a9fb3246105d0769c32b16342f76e74f40c",type:"checkbox",role:"switch",id:this._id,ref:i=>{this._ref=i},checked:o(this.checked,"checked"),value:this.value,disabled:o(this.disabled,"disabled"),"aria-invalid":"invalid"===this.validation?"true":void 0,"aria-describedby":this._descByIds,name:this.name,required:o(this.required,"required"),"data-aid-icon":null!==(i=this.iconLeading)&&void 0!==i?i:this.icon,"data-aid-icon-trailing":this.iconTrailing,onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),onKeyDown:i=>this.handleKeyDown(i)}),this.label?this.label:null,l("slot",{key:"d03438513412079f745be2671d54e4ddb87c042c"})),h(this.message,this.showMessage)?l("db-infotext",{size:"small",semantic:"adaptive",id:this._messageId,icon:this.messageIcon},this.message):null,this.hasValidState()?l("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},null!==(s=this.validMessage)&&void 0!==s?s:m):null,l("db-infotext",{key:"5f2f82215ffd9119b3f27f5d37c2349cecc28325",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"27278f4285a7aa297d4e985c2710eec5e4bb45ce","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],validation:[{watch1:0}],required:[{watch1:0}],message:[{watch1:0}],showMessage:[{watch1:0}],validMessage:[{watch1:0}],invalidMessage:[{watch1:0},{watch2:0}],checked:[{watch1:0}],_ref:[{watch2:0},{watch3:0}]}}},[260,"db-switch",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],validation:[1],required:[8],message:[1],showMessage:[8,"show-message"],validMessage:[1,"valid-message"],checked:[8],disabled:[8],visualAid:[8,"visual-aid"],size:[1],showLabel:[8,"show-label"],variant:[1],showRequiredAsterisk:[8,"show-required-asterisk"],className:[1,"classname"],value:[8],name:[1],iconLeading:[1,"icon-leading"],icon:[1],iconTrailing:[1,"icon-trailing"],label:[1],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_descByIds:[32],_voiceOverFallback:[32],abortController:[32],observer:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],validation:[{watch1:0}],required:[{watch1:0}],message:[{watch1:0}],showMessage:[{watch1:0}],validMessage:[{watch1:0}],invalidMessage:[{watch1:0},{watch2:0}],checked:[{watch1:0}],_ref:[{watch2:0},{watch3:0}]}]),y=k,M=function(){"undefined"!=typeof customElements&&["db-switch","db-infotext"].forEach((i=>{switch(i){case"db-switch":customElements.get(v(i))||customElements.define(v(i),k);break;case"db-infotext":customElements.get(v(i))||p()}}))};export{y as DbSwitch,M as defineCustomElement}
1
+ import{z as i,H as s,B as t,h as a,f as e,q as h,u as d,A as l,l as c,p as o,k as n,d as r,t as v}from"./p-DEicAzan.js";import{l as u,f as w,g as b,h as f,k as m}from"./p-COv1iCFP.js";import{a as g}from"./p-DAr8BCe0.js";import{d as p}from"./p-DTmum76Y.js";const k=i(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._descByIds=void 0,this._voiceOverFallback="",this.abortController=void 0,this.observer=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,s,t,d,l,c;return(null===(s=null===(i=this._ref)||void 0===i?void 0:i.validity)||void 0===s?void 0:s.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(l=null===(d=this._ref)||void 0===d?void 0:d.validity)||void 0===l?void 0:l.valid)&&this.required?(this._descByIds=this._validMessageId,void(a()&&(this._voiceOverFallback=null!==(c=this.validMessage)&&void 0!==c?c:m,e((()=>{this._voiceOverFallback=""}),1e3)))):void(this._descByIds=h(this.message,this.showMessage)?this._messageId:void 0):(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||u,void(a()&&(this._voiceOverFallback=this._invalidMessage||u,e((()=>{this._voiceOverFallback=""}),1e3))))}handleChange(i,s){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}handleKeyDown(i){var s;"Enter"===i.key&&(i.preventDefault(),this.disabled||null===(s=this._ref)||void 0===s||s.click())}resetIds(){var i,s,t;const a=null!==(t=null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&void 0!==t?t:"switch-"+d();this._id=a,this._messageId=`${a}${w}`,this._validMessageId=`${a}${b}`,this._invalidMessageId=`${a}${f}`}setupObserver(i){if(!i)return;const s=i.closest("db-switch");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((i=>{var s;const t=i.target.attributes.getNamedItem(null!==(s=i.attributeName)&&void 0!==s?s:"");return(null==t?void 0:t.value)!==i.oldValue}))&&this.enableAttributePassing(i,"db-switch")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(i,s){const t=null==i?void 0:i.closest(s);if(i&&t){const s=t.attributes;for(let a=0;a<s.length;a++){const e=s.item(a);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))e.value?i.setAttribute(e.name,e.value):i.removeAttribute(e.name),t.removeAttribute(e.name);else if(e&&["style"].includes(e.name))i.setAttribute(e.name,e.value),t.removeAttribute(e.name);else if(e&&"class"===e.name){const s=e.value.includes("hydrated"),a=e.value.replace("hydrated","").trim(),h=i.getAttribute("class");i.setAttribute(e.name,`${h||""}${a?" "+a:""}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(e.name)}}}}watch0Fn(){var i,s;(null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){this.handleValidation()}watch1(){this.watch1Fn()}watch2Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||u}watch2(){this.watch2Fn()}watch3Fn(){if(this._ref){const i=void 0;let s=this.abortController;s||(s=new AbortController,this.abortController=s),g(this._ref,{checked:this.checked,defaultChecked:i},(i=>{this.handleChange(i,!0)}),s.signal)}}watch3(){this.watch3Fn()}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-switch"),(()=>{this.resetIds(),this.handleValidation(),this._invalidMessage=this.invalidMessage||u})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn()}disconnectedCallback(){var i,s;null===(i=this.abortController)||void 0===i||i.abort(),null===(s=this.observer)||void 0===s||s.disconnect()}render(){var i,s;return l("div",{key:"8a2f8bfcc0fa422aa9ac10494134f8e6836b0c71",class:r("db-switch",this.className),"data-visual-aid":n(this.visualAid,"visualAid"),"data-size":this.size,"data-hide-label":o(this.showLabel),"data-variant":this.variant,"data-hide-asterisk":o(this.showRequiredAsterisk),"data-custom-validity":this.validation},l("label",{key:"cba1ba915a9641372c71d8b6a0988e5b4d76590a",htmlFor:this._id},l("input",{key:"246a9a0b3e0fc8696cfe9c3113d875ff68abf7c6",type:"checkbox",role:"switch",id:this._id,ref:i=>{this._ref=i},checked:c(this.checked,"checked"),value:this.value,disabled:c(this.disabled,"disabled"),"aria-invalid":"invalid"===this.validation?"true":void 0,"aria-describedby":this._descByIds,name:this.name,required:c(this.required,"required"),"data-aid-icon":null!==(i=this.iconLeading)&&void 0!==i?i:this.icon,"data-aid-icon-trailing":this.iconTrailing,onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),onKeyDown:i=>this.handleKeyDown(i)}),this.label?this.label:null,l("slot",{key:"9e127dffefe790a2b210d4ce1819ca9fca2ab5b1"})),h(this.message,this.showMessage)?l("db-infotext",{size:"small",semantic:"adaptive",id:this._messageId,icon:this.messageIcon},this.message):null,this.hasValidState()?l("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},null!==(s=this.validMessage)&&void 0!==s?s:m):null,l("db-infotext",{key:"6963789651730d6ccf8fc9788bf5e0f99db51bea",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"a96a877b37a40ece9c320e4668cb7becd60489ef","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],validation:[{watch1:0}],required:[{watch1:0}],message:[{watch1:0}],showMessage:[{watch1:0}],validMessage:[{watch1:0}],invalidMessage:[{watch1:0},{watch2:0}],checked:[{watch1:0}],_ref:[{watch2:0},{watch3:0}]}}},[260,"db-switch",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],validation:[1],required:[8],message:[1],showMessage:[8,"show-message"],validMessage:[1,"valid-message"],checked:[8],disabled:[8],visualAid:[8,"visual-aid"],size:[1],showLabel:[8,"show-label"],variant:[1],showRequiredAsterisk:[8,"show-required-asterisk"],className:[1,"classname"],value:[8],name:[1],iconLeading:[1,"icon-leading"],icon:[1],iconTrailing:[1,"icon-trailing"],label:[1],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_descByIds:[32],_voiceOverFallback:[32],abortController:[32],observer:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],validation:[{watch1:0}],required:[{watch1:0}],message:[{watch1:0}],showMessage:[{watch1:0}],validMessage:[{watch1:0}],invalidMessage:[{watch1:0},{watch2:0}],checked:[{watch1:0}],_ref:[{watch2:0},{watch3:0}]}]),y=k,M=function(){"undefined"!=typeof customElements&&["db-switch","db-infotext"].forEach((i=>{switch(i){case"db-switch":customElements.get(v(i))||customElements.define(v(i),k);break;case"db-infotext":customElements.get(v(i))||p()}}))};export{y as DbSwitch,M as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as p}from"./p-C0JLpZ9Q.js";const s=o,r=p;export{s as DbTabItem,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-BtQh3jbl.js";const t=o,p=s;export{t as DbTabItem,p as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-C9llbu6g.js";const p=o,r=s;export{p as DbTabList,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-DKhSQnne.js";const n=o,p=s;export{n as DbTabList,p as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-BQov9sQb.js";const p=o,r=s;export{p as DbTabPanel,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-BSn68Z6b.js";const p=o,r=s;export{p as DbTabPanel,r as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-2eQDIPlF.js";const p=o,r=s;export{p as DbTableBody,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-CGLknNHl.js";const p=o,r=s;export{p as DbTableBody,r as defineCustomElement}
@@ -1 +1 @@
1
- import{y as t,H as e,z as s,d as a,t as i}from"./p-CYYSsu3p.js";const n=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-table-caption");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-table-caption")})),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 a=0;a<e.length;a++){const i=e.item(a);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))i.value?t.setAttribute(i.name,i.value):t.removeAttribute(i.name),s.removeAttribute(i.name);else if(i&&["style"].includes(i.name))t.setAttribute(i.name,i.value),s.removeAttribute(i.name);else if(i&&"class"===i.name){const e=i.value.includes("hydrated"),a=i.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(i.name,`${n||""}${a?" "+a:""}`),e?s.setAttribute("class","hydrated"):s.removeAttribute(i.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-caption"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){return s("caption",{key:"940bfd3ec5f3f13c14b4a838774e0f0014bb5b12",class:a("db-table-caption",this.className),ref:t=>{this._ref=t},id:this.id},s("slot",{key:"0bbee85651cc51b5b131dd7aeff15ad454b40c3f"}))}get rootElement(){return this}},[260,"db-table-caption",{id:[1],className:[1,"classname"],observer:[32]}]),o=n,d=function(){"undefined"!=typeof customElements&&["db-table-caption"].forEach((t=>{"db-table-caption"===t&&(customElements.get(i(t))||customElements.define(i(t),n))}))};export{o as DbTableCaption,d as defineCustomElement}
1
+ import{z as t,H as e,A as s,d as i,t as a}from"./p-DEicAzan.js";const n=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-table-caption");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-table-caption")})),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 a=e.item(i);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 e=a.value.includes("hydrated"),i=a.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(a.name,`${n||""}${i?" "+i:""}`),e?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-table-caption"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,e;return s("caption",{key:"83d15c286f092d5dbdf31f36f1c899a0afd3633c",class:i("db-table-caption",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("slot",{key:"e6648c3017dec5340538e198b19f3546a3ba6253"}))}get rootElement(){return this}},[260,"db-table-caption",{id:[1],propOverrides:[16],className:[1,"classname"],observer:[32]}]),d=n,o=function(){"undefined"!=typeof customElements&&["db-table-caption"].forEach((t=>{"db-table-caption"===t&&(customElements.get(a(t))||customElements.define(a(t),n))}))};export{d as DbTableCaption,o as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-C2w7ILj8.js";const p=o,r=s;export{p as DbTableDataCell,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-6eFmbk2q.js";const m=o,p=s;export{m as DbTableDataCell,p as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-DiEfz0o1.js";const p=o,r=s;export{p as DbTableFooter,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-D2lYeElK.js";const p=o,r=s;export{p as DbTableFooter,r as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-DTM6Wcbf.js";const p=o,r=s;export{p as DbTableHead,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-C_xaJ8Kg.js";const a=o,p=s;export{a as DbTableHead,p as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-C47AKJPy.js";const p=o,r=s;export{p as DbTableHeaderCell,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-DtqySxCV.js";const t=o,p=s;export{t as DbTableHeaderCell,p as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-Cn5NdjPW.js";const p=o,r=s;export{p as DbTableRow,r as defineCustomElement}
1
+ import{D as p,d as o}from"./p-V6Dppnfj.js";const s=p,r=o;export{s as DbTableRow,r as defineCustomElement}
@@ -1 +1 @@
1
- import{y as t,H as a,f as s,z as e,F as i,j as o,d,t as l}from"./p-CYYSsu3p.js";import{d as n}from"./p-Cc5hdI0x.js";import{d as c}from"./p-2eQDIPlF.js";import{d as r}from"./p-C2w7ILj8.js";import{d as h}from"./p-DiEfz0o1.js";import{d as b}from"./p-DTM6Wcbf.js";import{d as u}from"./p-C47AKJPy.js";import{d as m}from"./p-Cn5NdjPW.js";const v=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this._data=void 0,this._style=void 0,this.observer=void 0}convertData(){try{return"string"==typeof this.data?JSON.parse(this.data):this.data}catch(t){console.error(t)}return{}}setupObserver(t){if(!t)return;const a=t.closest("db-table");a&&!this.observer&&(this.observer=new MutationObserver((a=>{a.some((t=>{var a;const s=t.target.attributes.getNamedItem(null!==(a=t.attributeName)&&void 0!==a?a:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-table")})),this.observer.observe(a,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,a){const s=null==t?void 0:t.closest(a);if(t&&s){const a=s.attributes;for(let e=0;e<a.length;e++){const i=a.item(e);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))i.value?t.setAttribute(i.name,i.value):t.removeAttribute(i.name),s.removeAttribute(i.name);else if(i&&["style"].includes(i.name))t.setAttribute(i.name,i.value),s.removeAttribute(i.name);else if(i&&"class"===i.name){const a=i.value.includes("hydrated"),e=i.value.replace("hydrated","").trim(),o=t.getAttribute("class");t.setAttribute(i.name,`${o||""}${e?" "+e:""}`),a?s.setAttribute("class","hydrated"):s.removeAttribute(i.name)}}}}watch0Fn(){this._data=this.data?this.convertData():void 0}watch0(){this.watch0Fn()}watch1Fn(){this._ref&&"list"===this.mobileVariant&&s((()=>{const t=this._ref;if(!t)return;const a=t.querySelectorAll("thead tr th");a.length&&t.querySelectorAll(":is(tbody,tfoot) tr").forEach((t=>{t.querySelectorAll(":is(td,th)").forEach(((t,s)=>{const e=a[s];if(e){const a=Array.from(e.childNodes).filter((t=>t.nodeType===Node.TEXT_NODE)).map((t=>{var a;return null===(a=t.textContent)||void 0===a?void 0:a.trim()})).filter(Boolean).join(" ");a&&(t.dataset.header=a)}}))}))}),1)}watch1(){this.watch1Fn()}watch2Fn(){if(this.columnSizes){const t={};Object.entries(this.columnSizes).forEach((([a,s])=>{t["--db-table-column-size-"+a]=s})),this._style=t}else this._style=void 0}watch2(){this.watch2Fn()}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"),this.setupObserver(this._ref),this.watch0Fn(),this.watch1Fn(),this.watch2Fn()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,a,s,l,n,c;return e("div",{key:"8baec1021c6c8aa2bafc4e735b81e7d149e4ca6e",class:d("db-table",this.className),style:this._style,"data-width":this.width,"data-size":this.size,"data-divider":this.divider,"data-variant":this.variant,"data-mobile-variant":this.mobileVariant,"data-show-caption":o(this.showCaption),"data-sticky-header":this.stickyHeader},e("table",{key:"423304ec355a57e6df37c48baca039a9aabdf7b5",ref:t=>{this._ref=t},id:this.id},this.captionPlain?e("caption",null,this.captionPlain):e("slot",{name:"caption"}),this._data?e(i,null,(null===(t=this._data)||void 0===t?void 0:t.header)?e("db-table-head",{rows:null===(a=this._data)||void 0===a?void 0:a.header}):null,(null===(s=this._data)||void 0===s?void 0:s.body)?e("db-table-body",{rows:null===(l=this._data)||void 0===l?void 0:l.body}):null,(null===(n=this._data)||void 0===n?void 0:n.footer)?e("db-table-footer",{rows:null===(c=this._data)||void 0===c?void 0:c.footer}):null):e("slot",null)))}get rootElement(){return this}static get watchers(){return{data:[{watch0:0}],mobileVariant:[{watch1:0}],_ref:[{watch1:0}],_data:[{watch1:0}],columnSizes:[{watch2:0}]}}},[260,"db-table",{data:[1],mobileVariant:[1,"mobile-variant"],columnSizes:[16],className:[1,"classname"],width:[1],size:[1],divider:[1],variant:[1],showCaption:[8,"show-caption"],stickyHeader:[1,"sticky-header"],id:[1],captionPlain:[1,"caption-plain"],_data:[32],_style:[32],observer:[32]},void 0,{data:[{watch0:0}],mobileVariant:[{watch1:0}],_ref:[{watch1:0}],_data:[{watch1:0}],columnSizes:[{watch2:0}]}]),f=v,p=function(){"undefined"!=typeof customElements&&["db-table","db-link","db-table-body","db-table-data-cell","db-table-footer","db-table-head","db-table-header-cell","db-table-row"].forEach((t=>{switch(t){case"db-table":customElements.get(l(t))||customElements.define(l(t),v);break;case"db-link":customElements.get(l(t))||n();break;case"db-table-body":customElements.get(l(t))||c();break;case"db-table-data-cell":customElements.get(l(t))||r();break;case"db-table-footer":customElements.get(l(t))||h();break;case"db-table-head":customElements.get(l(t))||b();break;case"db-table-header-cell":customElements.get(l(t))||u();break;case"db-table-row":customElements.get(l(t))||m()}}))};export{f as DbTable,p as defineCustomElement}
1
+ import{z as t,H as s,f as e,A as a,F as i,k as o,d,t as l}from"./p-DEicAzan.js";import{d as n}from"./p-B_cQ652T.js";import{d as r}from"./p-CGLknNHl.js";import{d as c}from"./p-6eFmbk2q.js";import{d as h}from"./p-D2lYeElK.js";import{d as b}from"./p-C_xaJ8Kg.js";import{d as u}from"./p-DtqySxCV.js";import{d as m}from"./p-V6Dppnfj.js";const v=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this._data=void 0,this._style=void 0,this.observer=void 0}convertData(){try{return"string"==typeof this.data?JSON.parse(this.data):this.data}catch(t){console.error(t)}return{}}setupObserver(t){if(!t)return;const s=t.closest("db-table");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-table")})),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 a=0;a<s.length;a++){const i=s.item(a);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))i.value?t.setAttribute(i.name,i.value):t.removeAttribute(i.name),e.removeAttribute(i.name);else if(i&&["style"].includes(i.name))t.setAttribute(i.name,i.value),e.removeAttribute(i.name);else if(i&&"class"===i.name){const s=i.value.includes("hydrated"),a=i.value.replace("hydrated","").trim(),o=t.getAttribute("class");t.setAttribute(i.name,`${o||""}${a?" "+a:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(i.name)}}}}watch0Fn(){this._data=this.data?this.convertData():void 0}watch0(){this.watch0Fn()}watch1Fn(){this._ref&&"list"===this.mobileVariant&&e((()=>{const t=this._ref;if(!t)return;const s=t.querySelectorAll("thead tr th");s.length&&t.querySelectorAll(":is(tbody,tfoot) tr").forEach((t=>{t.querySelectorAll(":is(td,th)").forEach(((t,e)=>{const a=s[e];if(a){const s=Array.from(a.childNodes).filter((t=>t.nodeType===Node.TEXT_NODE)).map((t=>{var s;return null===(s=t.textContent)||void 0===s?void 0:s.trim()})).filter(Boolean).join(" ");s&&(t.dataset.header=s)}}))}))}),1)}watch1(){this.watch1Fn()}watch2Fn(){if(this.columnSizes){const t={};Object.entries(this.columnSizes).forEach((([s,e])=>{t["--db-table-column-size-"+s]=e})),this._style=t}else this._style=void 0}watch2(){this.watch2Fn()}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"),this.setupObserver(this._ref),this.watch0Fn(),this.watch1Fn(),this.watch2Fn()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s,e,l,n,r,c,h;return a("div",{key:"892e511b084a267e0c00dde181f4ff517f8d004f",class:d("db-table",this.className),style:this._style,"data-width":this.width,"data-size":this.size,"data-divider":this.divider,"data-variant":this.variant,"data-mobile-variant":this.mobileVariant,"data-show-caption":o(this.showCaption),"data-sticky-header":this.stickyHeader},a("table",{key:"18b581d47079b7ec62b66c8605c51c246e3b94f0",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},this.captionPlain?a("caption",null,this.captionPlain):a("slot",{name:"caption"}),this._data?a(i,null,(null===(e=this._data)||void 0===e?void 0:e.header)?a("db-table-head",{rows:null===(l=this._data)||void 0===l?void 0:l.header}):null,(null===(n=this._data)||void 0===n?void 0:n.body)?a("db-table-body",{rows:null===(r=this._data)||void 0===r?void 0:r.body}):null,(null===(c=this._data)||void 0===c?void 0:c.footer)?a("db-table-footer",{rows:null===(h=this._data)||void 0===h?void 0:h.footer}):null):a("slot",null)))}get rootElement(){return this}static get watchers(){return{data:[{watch0:0}],mobileVariant:[{watch1:0}],_ref:[{watch1:0}],_data:[{watch1:0}],columnSizes:[{watch2:0}]}}},[260,"db-table",{data:[1],mobileVariant:[1,"mobile-variant"],columnSizes:[16],className:[1,"classname"],width:[1],size:[1],divider:[1],variant:[1],showCaption:[8,"show-caption"],stickyHeader:[1,"sticky-header"],id:[1],propOverrides:[16],captionPlain:[1,"caption-plain"],_data:[32],_style:[32],observer:[32]},void 0,{data:[{watch0:0}],mobileVariant:[{watch1:0}],_ref:[{watch1:0}],_data:[{watch1:0}],columnSizes:[{watch2:0}]}]),f=v,p=function(){"undefined"!=typeof customElements&&["db-table","db-link","db-table-body","db-table-data-cell","db-table-footer","db-table-head","db-table-header-cell","db-table-row"].forEach((t=>{switch(t){case"db-table":customElements.get(l(t))||customElements.define(l(t),v);break;case"db-link":customElements.get(l(t))||n();break;case"db-table-body":customElements.get(l(t))||r();break;case"db-table-data-cell":customElements.get(l(t))||c();break;case"db-table-footer":customElements.get(l(t))||h();break;case"db-table-head":customElements.get(l(t))||b();break;case"db-table-header-cell":customElements.get(l(t))||u();break;case"db-table-row":customElements.get(l(t))||m()}}))};export{f as DbTable,p as defineCustomElement}
package/bundle/db-tabs.js CHANGED
@@ -1 +1 @@
1
- import{y as t,H as s,A as i,z as e,F as a,d as n,u as o,t as l}from"./p-CYYSsu3p.js";import{d as h}from"./p-DVuZmW_J.js";import{d as r}from"./p-C0JLpZ9Q.js";import{d as c}from"./p-C9llbu6g.js";import{d}from"./p-BQov9sQb.js";const b=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.indexChange=i(this,"indexChange"),this.tabSelect=i(this,"tabSelect"),this._name="",this.initialized=!1,this.showScrollLeft=!1,this.showScrollRight=!1,this.scrollContainer=null,this._resizeObserver=void 0,this.observer=void 0}convertTabs(){try{return"string"==typeof this.tabs?JSON.parse(this.tabs):this.tabs}catch(t){console.error(t)}return[]}evaluateScrollButtons(t){const s=t.scrollWidth>t.clientWidth;this.showScrollLeft=s&&t.scrollLeft>1,this.showScrollRight=s&&t.scrollLeft<t.scrollWidth-t.clientWidth}scroll(t){var s;let i=Number(this.arrowScrollDistance)||100;t&&(i*=-1),null===(s=this.scrollContainer)||void 0===s||s.scrollBy({top:0,left:i,behavior:"smooth"})}initTabList(){if(this._ref){const t=this._ref.querySelector(".db-tab-list");if(t){const s=t.querySelector('[role="tablist"]');if(s&&(s.setAttribute("aria-orientation",this.orientation||"horizontal"),"arrows"===this.behavior&&(this.scrollContainer=s,this.evaluateScrollButtons(s),s.addEventListener("scroll",(()=>{this.evaluateScrollButtons(s)})),!this._resizeObserver))){const t=new ResizeObserver((()=>{this.evaluateScrollButtons(s)}));t.observe(s),this._resizeObserver=t}}}}initTabs(t){if(this._ref){const s=Array.from(this._ref.getElementsByClassName("db-tab-item")),i=Array.from(this._ref.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));for(const e of s){const a=s.indexOf(e),n=e.querySelector("label"),o=e.querySelector("input");if(o&&n){if(!o.id){const t=`${this._name}-tab-${a}`;n.setAttribute("for",t),o.id=t,o.setAttribute("name",this._name),i.length>a&&o.setAttribute("aria-controls",`${this._name}-tab-panel-${a}`)}t&&(!this.initialSelectedMode||"auto"===this.initialSelectedMode)&&(null==this.initialSelectedIndex&&0===a||Number(this.initialSelectedIndex)===a)&&o.click()}}for(const t of i){if(t.id)continue;const s=i.indexOf(t);t.id=`${this._name}-tab-panel-${s}`,t.setAttribute("aria-labelledby",`${this._name}-tab-${s}`)}}}handleChange(t){var s;if(t.stopPropagation(),t.target){const i=t.target.parentElement;if(i&&i.parentElement&&"LI"===(null===(s=i.parentElement)||void 0===s?void 0:s.nodeName)){const s=i.parentElement.parentElement;if(s){const i=s.parentElement;if(i){const e=Array.from(i.children).indexOf(s);this.indexChange&&this.indexChange.emit(e),this.tabSelect&&this.tabSelect.emit(t)}}}}}setupObserver(t){if(!t)return;const s=t.closest("db-tabs");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-tabs")})),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(),n=t.getAttribute("class");t.setAttribute(a.name,`${n||""}${e?" "+e:""}`),s?i.setAttribute("class","hydrated"):i.removeAttribute(a.name)}}}}watch0Fn(){if(this._ref&&this.initialized){this.initTabList(),this.initTabs(!0);const t=this._ref.querySelector(".db-tab-list");t&&new MutationObserver((t=>{t.forEach((t=>{(t.removedNodes.length||t.addedNodes.length)&&(this.initTabList(),this.initTabs())}))})).observe(t,{childList:!0,subtree:!0}),this.initialized=!1}}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-tabs"),(()=>{this._name="tabs-"+(this.name||o()),this.initialized=!0})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn()}disconnectedCallback(){var t,s;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this._resizeObserver=void 0,null===(s=this.observer)||void 0===s||s.disconnect()}render(){var t,s,i,o,l,h;return e("div",{key:"4ea02dd31be437dd343d13cac953658f1799762f",class:n("db-tabs",this.className),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-orientation":this.orientation,"data-scroll-behavior":this.behavior,"data-alignment":null!==(i=this.alignment)&&void 0!==i?i:"start","data-width":null!==(o=this.width)&&void 0!==o?o:"auto",onInput:t=>this.handleChange(t),onChange:t=>this.handleChange(t)},this.showScrollLeft?e("db-button",{class:"tabs-scroll-left",variant:"ghost",icon:"chevron_left",type:"button",noText:!0,onClick:()=>this.scroll(!0)},"Scroll left"):null,this.tabs?e(a,null,e("db-tab-list",null,null===(l=this.convertTabs())||void 0===l?void 0:l.map(((t,s)=>e("db-tab-item",{key:this.name+"tab-item"+s,active:t.active,label:t.label,iconTrailing:t.iconTrailing,icon:t.icon,noText:t.noText})))),null===(h=this.convertTabs())||void 0===h?void 0:h.map(((t,s)=>e("db-tab-panel",{key:this.name+"tab-panel"+s,content:t.content},t.children)))):null,this.showScrollRight?e("db-button",{class:"tabs-scroll-right",variant:"ghost",icon:"chevron_right",type:"button",noText:!0,onClick:()=>this.scroll()},"Scroll right"):null,e("slot",{key:"c7b47c275a5784b8658e9c8b339445e083bc40d6"}))}get rootElement(){return this}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}]}}},[260,"db-tabs",{name:[1],tabs:[1],arrowScrollDistance:[8,"arrow-scroll-distance"],orientation:[1],behavior:[1],initialSelectedMode:[1,"initial-selected-mode"],initialSelectedIndex:[8,"initial-selected-index"],id:[1],propOverrides:[16],className:[1,"classname"],alignment:[1],width:[1],_name:[32],initialized:[32],showScrollLeft:[32],showScrollRight:[32],scrollContainer:[32],_resizeObserver:[32],observer:[32]},void 0,{_ref:[{watch0:0}],initialized:[{watch0:0}]}]),u=b,f=function(){"undefined"!=typeof customElements&&["db-tabs","db-button","db-tab-item","db-tab-list","db-tab-panel"].forEach((t=>{switch(t){case"db-tabs":customElements.get(l(t))||customElements.define(l(t),b);break;case"db-button":customElements.get(l(t))||h();break;case"db-tab-item":customElements.get(l(t))||r();break;case"db-tab-list":customElements.get(l(t))||c();break;case"db-tab-panel":customElements.get(l(t))||d()}}))};export{u as DbTabs,f as defineCustomElement}
1
+ import{z as t,H as s,B as i,A as e,F as a,d as o,u as n,t as l}from"./p-DEicAzan.js";import{s as h,r}from"./p-COv1iCFP.js";import{R as d}from"./p-B2-mqMAV.js";import{d as c}from"./p-C3NPZvho.js";import{d as b}from"./p-BtQh3jbl.js";import{d as u}from"./p-DKhSQnne.js";import{d as f}from"./p-BSn68Z6b.js";const m=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.indexChange=i(this,"indexChange"),this.tabSelect=i(this,"tabSelect"),this._name="",this.initialized=!1,this.showScrollLeft=!1,this.showScrollRight=!1,this.scrollContainer=null,this._resizeObserverCallbackId=void 0,this.observer=void 0}convertTabs(){try{return"string"==typeof this.tabs?JSON.parse(this.tabs):this.tabs}catch(t){console.error(t)}return[]}evaluateScrollButtons(t){const s=t.scrollWidth>t.clientWidth;this.showScrollLeft=s&&t.scrollLeft>1,this.showScrollRight=s&&t.scrollLeft<t.scrollWidth-t.clientWidth}scroll(t){var s;let i=Number(this.arrowScrollDistance)||100;t&&(i*=-1),null===(s=this.scrollContainer)||void 0===s||s.scrollBy({top:0,left:i,behavior:"smooth"})}initTabList(){if(this._ref){const t=this._ref.querySelector(".db-tab-list");if(t){const s=t.querySelector('[role="tablist"]');s&&(s.setAttribute("aria-orientation",this.orientation||"horizontal"),"arrows"===this.behavior&&(this.scrollContainer=s,this.evaluateScrollButtons(s),s.addEventListener("scroll",(()=>{this.evaluateScrollButtons(s)})),this._resizeObserverCallbackId||(this._resizeObserverCallbackId=(new d).observe(s,(()=>{this.evaluateScrollButtons(s)})))))}}}initTabs(t){if(this._ref){const s=Array.from(this._ref.querySelectorAll(":is(:scope > db-tab-list .db-tab-item, :scope > .db-tab-list .db-tab-item)")),i=Array.from(this._ref.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));for(const e of s){const a=s.indexOf(e),o=e.querySelector("label"),n=e.querySelector("input");if(n&&o){if(!n.id){const t=`${this._name}-tab-${a}`;o.setAttribute("for",t),n.id=t,n.setAttribute("name",this._name),i.length>a&&n.setAttribute("aria-controls",`${this._name}-tab-panel-${a}`)}t&&(!this.initialSelectedMode||"auto"===this.initialSelectedMode)&&(null==this.initialSelectedIndex&&0===a||Number(this.initialSelectedIndex)===a)&&n.click()}}for(const t of i){if(t.id)continue;const s=i.indexOf(t);t.id=`${this._name}-tab-panel-${s}`,t.setAttribute("aria-labelledby",`${this._name}-tab-${s}`)}}}handleChange(t){var s;if(t.stopPropagation(),t.target){const i=t.target.parentElement;if(i&&i.parentElement&&"LI"===(null===(s=i.parentElement)||void 0===s?void 0:s.nodeName)){const s=i.parentElement.parentElement;if(s){const i=s.parentElement;if(i){const e=Array.from(i.children).indexOf(s);this.indexChange&&this.indexChange.emit(e),this.tabSelect&&this.tabSelect.emit(t)}}}}}setupObserver(t){if(!t)return;const s=t.closest("db-tabs");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-tabs")})),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(),o=t.getAttribute("class");t.setAttribute(a.name,`${o||""}${e?" "+e:""}`),s?i.setAttribute("class","hydrated"):i.removeAttribute(a.name)}}}}watch0Fn(){if(this._ref&&this.initialized){this.initTabList(),this.initTabs(!0);const t=this._ref.querySelector(".db-tab-list");t&&new MutationObserver((t=>{t.forEach((t=>{(t.removedNodes.length||t.addedNodes.length)&&(this.initTabList(),this.initTabs())}))})).observe(t,{childList:!0,subtree:!0}),this.initialized=!1}}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-tabs"),(()=>{this._name="tabs-"+(this.name||n()),this.initialized=!0})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn()}disconnectedCallback(){var t;this._resizeObserverCallbackId&&((new d).unobserve(this._resizeObserverCallbackId),this._resizeObserverCallbackId=void 0),null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s,i,n,l,d,c,b;return e("div",{key:"5293b93e98c3c3b1ca484d21e4fa3506442ffc78",class:o("db-tabs",this.className),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-orientation":this.orientation,"data-scroll-behavior":this.behavior,"data-alignment":null!==(i=this.alignment)&&void 0!==i?i:"start","data-width":null!==(n=this.width)&&void 0!==n?n:"auto",onInput:t=>this.handleChange(t),onChange:t=>this.handleChange(t)},this.showScrollLeft?e("db-button",{class:"overflow-scroll-left-button",variant:"ghost",icon:"chevron_left",type:"button",noText:!0,onClick:()=>this.scroll(!0)},null!==(l=this.scrollLeftText)&&void 0!==l?l:r):null,this.tabs?e(a,null,e("db-tab-list",null,null===(d=this.convertTabs())||void 0===d?void 0:d.map(((t,s)=>e("db-tab-item",{key:this.name+"tab-item"+s,active:t.active,label:t.label,iconTrailing:t.iconTrailing,icon:t.icon,noText:t.noText})))),null===(c=this.convertTabs())||void 0===c?void 0:c.map(((t,s)=>e("db-tab-panel",{key:this.name+"tab-panel"+s,content:t.content},t.children)))):null,this.showScrollRight?e("db-button",{class:"overflow-scroll-right-button",variant:"ghost",icon:"chevron_right",type:"button",noText:!0,onClick:()=>this.scroll()},null!==(b=this.scrollRightText)&&void 0!==b?b:h):null,e("slot",{key:"03813d32c1132685d6ade480a7790dd9f5dd5c36"}))}get rootElement(){return this}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}]}}},[260,"db-tabs",{name:[1],tabs:[1],arrowScrollDistance:[8,"arrow-scroll-distance"],orientation:[1],behavior:[1],initialSelectedMode:[1,"initial-selected-mode"],initialSelectedIndex:[8,"initial-selected-index"],id:[1],propOverrides:[16],className:[1,"classname"],alignment:[1],width:[1],scrollLeftText:[1,"scroll-left-text"],scrollRightText:[1,"scroll-right-text"],_name:[32],initialized:[32],showScrollLeft:[32],showScrollRight:[32],scrollContainer:[32],_resizeObserverCallbackId:[32],observer:[32]},void 0,{_ref:[{watch0:0}],initialized:[{watch0:0}]}]),v=m,p=function(){"undefined"!=typeof customElements&&["db-tabs","db-button","db-tab-item","db-tab-list","db-tab-panel"].forEach((t=>{switch(t){case"db-tabs":customElements.get(l(t))||customElements.define(l(t),m);break;case"db-button":customElements.get(l(t))||c();break;case"db-tab-item":customElements.get(l(t))||b();break;case"db-tab-list":customElements.get(l(t))||u();break;case"db-tab-panel":customElements.get(l(t))||f()}}))};export{v as DbTabs,p as defineCustomElement}
package/bundle/db-tag.js CHANGED
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-BvgvWjGH.js";const p=o,r=s;export{p as DbTag,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-D9qEmJkQ.js";const m=o,p=s;export{m as DbTag,p as defineCustomElement}
@@ -1 +1 @@
1
- import{y as i,H as s,A as t,h as e,f as a,p as h,u as d,z as l,l as n,k as o,o as r,d as c,t as v}from"./p-CYYSsu3p.js";import{l as u,f as m,g as b,h as f,k as w,b as p,r as g,a as y}from"./p-BdL-nI5y.js";import{c as x}from"./p-D6L0n3gO.js";import{d as k}from"./p-BpO8Ok-r.js";const O=i(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.input=t(this,"input"),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._descByIds=void 0,this._value="",this._voiceOverFallback="",this.abortController=void 0,this.observer=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,s,t,d;(null===(i=this._ref)||void 0===i?void 0:i.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(t=this._ref)||void 0===t?void 0:t.validity.valid)&&(this.required||this.minLength||this.maxLength)?(this._descByIds=this._validMessageId,e()&&(this._voiceOverFallback=null!==(d=this.validMessage)&&void 0!==d?d:w,a((()=>this._voiceOverFallback=""),1e3))):this._descByIds=h(this.message,this.showMessage)?this._messageId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(s=this._ref)||void 0===s?void 0:s.validationMessage)||u,e()&&(this._voiceOverFallback=this._invalidMessage,a((()=>this._voiceOverFallback=""),1e3)))}handleInput(i,s){this.input&&this.input.emit(i),this.handleValidation()}handleChange(i,s){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}resetIds(){var i,s,t;const e=null!==(t=null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&void 0!==t?t:"textarea-"+d();this._id=e,this._messageId=e+m,this._validMessageId=e+b,this._invalidMessageId=e+f}setupObserver(i){if(!i)return;const s=i.closest("db-textarea");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((i=>{var s;const t=i.target.attributes.getNamedItem(null!==(s=i.attributeName)&&void 0!==s?s:"");return(null==t?void 0:t.value)!==i.oldValue}))&&this.enableAttributePassing(i,"db-textarea")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(i,s){const t=null==i?void 0:i.closest(s);if(i&&t){const s=t.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?i.setAttribute(a.name,a.value):i.removeAttribute(a.name),t.removeAttribute(a.name);else if(a&&["style"].includes(a.name))i.setAttribute(a.name,a.value),t.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),h=i.getAttribute("class");i.setAttribute(a.name,`${h||""}${e?" "+e:""}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(a.name)}}}}watch0Fn(){var i,s;(null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||u}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const i=this._id+m;this._messageId=i,this._validMessageId=this._id+b,this._invalidMessageId=this._id+f,h(this.message,this.showMessage)&&(this._descByIds=i),this.handleValidation()}}watch2(){this.watch2Fn()}watch3Fn(){this._value=this.value}watch3(){this.watch3Fn()}watch4Fn(){if(this._ref){const i=void 0;let s=this.abortController;s||(s=new AbortController,this.abortController=s),x(this._ref,{value:this.value,defaultValue:i},(i=>{this.handleChange(i,!0),this.handleInput(i,!0)}),s.signal)}}watch4(){this.watch4Fn()}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-textarea"),(()=>{this.resetIds(),this._invalidMessage=this.invalidMessage||u})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var i,s;null===(i=this.abortController)||void 0===i||i.abort(),null===(s=this.observer)||void 0===s||s.disconnect()}render(){var i,s,t,e,a,d;return l("div",{key:"cf9afaea12a18dbe916bf11e4cfeed5721833f96",class:c("db-textarea",this.className),"data-variant":this.variant,"data-hide-asterisk":r(this.showRequiredAsterisk),"data-hide-label":r(this.showLabel)},l("label",{key:"fd7444fe2963eabdb755d2bc9d0b664103813493",htmlFor:this._id},null!==(i=this.label)&&void 0!==i?i:y),l("textarea",{key:"282e969c036a0cd079a77cd6373103084dd5e75b","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:i=>{this._ref=i},id:this._id,"data-resize":this.resize,"data-hide-resizer":r(null===(s=this.showResizer)||void 0===s||s),disabled:o(this.disabled,"disabled"),required:o(this.required,"required"),readOnly:o(this.readOnly,"readOnly")||o(this.readonly,"readonly")||void 0,form:this.form,maxLength:n(this.maxLength,this.maxlength),minLength:n(this.minLength,this.minlength),name:this.name,wrap:this.wrap,spellcheck:this.spellCheck,autocomplete:this.autocomplete,onInput:i=>this.handleInput(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),value:null!==(e=null!==(t=this.value)&&void 0!==t?t:this._value)&&void 0!==e?e:"","aria-describedby":null!==(a=this.ariaDescribedBy)&&void 0!==a?a:this._descByIds,placeholder:null!==(d=this.placeholder)&&void 0!==d?d:p,rows:n(this.rows,g),cols:n(this.cols)}),h(this.message,this.showMessage)?l("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?l("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||w):null,l("db-infotext",{key:"07e6585b6a89335004382796a9c06da736260028",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"6a8394ae7d62809422e54a810e75cf0628327223","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}}},[0,"db-textarea",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],message:[1],showMessage:[8,"show-message"],value:[8],validMessage:[1,"valid-message"],validation:[1],required:[8],minLength:[8,"min-length"],maxLength:[8,"max-length"],className:[1,"classname"],variant:[1],showRequiredAsterisk:[8,"show-required-asterisk"],showLabel:[8,"show-label"],label:[1],fieldSizing:[1,"field-sizing"],resize:[1],showResizer:[8,"show-resizer"],disabled:[8],readOnly:[8,"read-only"],readonly:[8],form:[1],maxlength:[8],minlength:[8],name:[1],wrap:[1],spellCheck:[4,"spell-check"],autocomplete:[1],ariaDescribedBy:[1,"aria-described-by"],placeholder:[1],rows:[8],cols:[8],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_descByIds:[32],_value:[32],_voiceOverFallback:[32],abortController:[32],observer:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}]),z=O,_=function(){"undefined"!=typeof customElements&&["db-textarea","db-infotext"].forEach((i=>{switch(i){case"db-textarea":customElements.get(v(i))||customElements.define(v(i),O);break;case"db-infotext":customElements.get(v(i))||k()}}))};export{z as DbTextarea,_ as defineCustomElement}
1
+ import{z as i,H as t,B as s,h as e,f as a,q as h,u as d,A as l,m as n,l as o,p as r,d as c,t as v}from"./p-DEicAzan.js";import{l as u,f as m,g as b,h as f,k as w,b as p,u as g,a as y}from"./p-COv1iCFP.js";import{c as x}from"./p-DAr8BCe0.js";import{d as k}from"./p-DTmum76Y.js";const z=i(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.input=s(this,"input"),this.change=s(this,"change"),this.blur=s(this,"blur"),this.focus=s(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._descByIds=void 0,this._value="",this._voiceOverFallback="",this.abortController=void 0,this.observer=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,t,s,d;(null===(i=this._ref)||void 0===i?void 0:i.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(s=this._ref)||void 0===s?void 0:s.validity.valid)&&(this.required||this.minLength||this.maxLength)?(this._descByIds=this._validMessageId,e()&&(this._voiceOverFallback=null!==(d=this.validMessage)&&void 0!==d?d:w,a((()=>this._voiceOverFallback=""),1e3))):this._descByIds=h(this.message,this.showMessage)?this._messageId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||u,e()&&(this._voiceOverFallback=this._invalidMessage,a((()=>this._voiceOverFallback=""),1e3)))}handleInput(i,t){this.input&&this.input.emit(i),this.handleValidation()}handleChange(i,t){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}resetIds(){var i,t,s;const e=null!==(s=null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id)&&void 0!==s?s:"textarea-"+d();this._id=e,this._messageId=e+m,this._validMessageId=e+b,this._invalidMessageId=e+f}setupObserver(i){if(!i)return;const t=i.closest("db-textarea");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-textarea")})),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 e=0;e<t.length;e++){const a=t.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?i.setAttribute(a.name,a.value):i.removeAttribute(a.name),s.removeAttribute(a.name);else if(a&&["style"].includes(a.name))i.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const t=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),h=i.getAttribute("class");i.setAttribute(a.name,`${h||""}${e?" "+e:""}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){var i,t;(null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||u}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const i=this._id+m;this._messageId=i,this._validMessageId=this._id+b,this._invalidMessageId=this._id+f,h(this.message,this.showMessage)&&(this._descByIds=i),this.handleValidation()}}watch2(){this.watch2Fn()}watch3Fn(){this._value=this.value}watch3(){this.watch3Fn()}watch4Fn(){if(this._ref){const i=void 0;let t=this.abortController;t||(t=new AbortController,this.abortController=t),x(this._ref,{value:this.value,defaultValue:i},(i=>{this.handleChange(i,!0),this.handleInput(i,!0)}),t.signal)}}watch4(){this.watch4Fn()}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-textarea"),(()=>{this.resetIds(),this._invalidMessage=this.invalidMessage||u})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var i,t;null===(i=this.abortController)||void 0===i||i.abort(),null===(t=this.observer)||void 0===t||t.disconnect()}render(){var i,t,s,e,a,d;return l("div",{key:"a91b79a14e279e9b947066a061f4615d36250d8d",class:c("db-textarea",this.className),"data-variant":this.variant,"data-hide-asterisk":r(this.showRequiredAsterisk),"data-hide-label":r(this.showLabel)},l("label",{key:"fa93715857493282bdaacb92797f28fe7d1aaf62",htmlFor:this._id},null!==(i=this.label)&&void 0!==i?i:y),l("textarea",{key:"1426813dae3debc249310cf105782371806a85af","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:i=>{this._ref=i},id:this._id,"data-resize":this.resize,"data-hide-resizer":r(null===(t=this.showResizer)||void 0===t||t),disabled:o(this.disabled,"disabled"),required:o(this.required,"required"),readOnly:o(this.readOnly,"readOnly")||o(this.readonly,"readonly")||void 0,form:this.form,maxLength:n(this.maxLength,this.maxlength),minLength:n(this.minLength,this.minlength),name:this.name,wrap:this.wrap,spellcheck:this.spellCheck,autocomplete:this.autocomplete,onInput:i=>this.handleInput(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),value:null!==(e=null!==(s=this.value)&&void 0!==s?s:this._value)&&void 0!==e?e:"","aria-describedby":null!==(a=this.ariaDescribedBy)&&void 0!==a?a:this._descByIds,placeholder:null!==(d=this.placeholder)&&void 0!==d?d:p,rows:n(this.rows,g),cols:n(this.cols)}),h(this.message,this.showMessage)?l("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?l("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||w):null,l("db-infotext",{key:"520030c6872e1c5b1ac7cd9cb466d46e731993be",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"b6dcd1abc611a044dbb97e3be4f22c5453e59e65","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}}},[0,"db-textarea",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],message:[1],showMessage:[8,"show-message"],value:[8],validMessage:[1,"valid-message"],validation:[1],required:[8],minLength:[8,"min-length"],maxLength:[8,"max-length"],className:[1,"classname"],variant:[1],showRequiredAsterisk:[8,"show-required-asterisk"],showLabel:[8,"show-label"],label:[1],fieldSizing:[1,"field-sizing"],resize:[1],showResizer:[8,"show-resizer"],disabled:[8],readOnly:[8,"read-only"],readonly:[8],form:[1],maxlength:[8],minlength:[8],name:[1],wrap:[1],spellCheck:[4,"spell-check"],autocomplete:[1],ariaDescribedBy:[1,"aria-described-by"],placeholder:[1],rows:[8],cols:[8],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_descByIds:[32],_value:[32],_voiceOverFallback:[32],abortController:[32],observer:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}]),_=z,O=function(){"undefined"!=typeof customElements&&["db-textarea","db-infotext"].forEach((i=>{switch(i){case"db-textarea":customElements.get(v(i))||customElements.define(v(i),z);break;case"db-infotext":customElements.get(v(i))||k()}}))};export{_ as DbTextarea,O as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as p}from"./p-DFypNnh0.js";const s=o,r=p;export{s as DbTooltip,r as defineCustomElement}
1
+ import{D as o,d as p}from"./p-B5p2TBcA.js";const s=o,r=p;export{s as DbTooltip,r as defineCustomElement}
package/bundle/index.js CHANGED
@@ -1 +1 @@
1
- import{t as _}from"./p-CYYSsu3p.js";export{c as addAttributeToChildren,d as cls,f as delay,g as getAssetPath,k as getBoolean,j as getBooleanAsString,o as getHideProp,n as getInputValue,x as getNotificationRole,l as getNumber,v as getOptionKey,q as getSearchInput,m as getStep,h as hasVoiceOver,i as isArrayOfStrings,e as isIOSSafari,w as isKeyboardEvent,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions,p as stringPropVisible,u as uuid}from"./p-CYYSsu3p.js";import{DbAccordion as L}from"./db-accordion.js";import{DbAccordionItem as I}from"./db-accordion-item.js";import{DbBadge as O}from"./db-badge.js";import{DbBrand as U}from"./db-brand.js";import{DbButton as R}from"./db-button.js";import{DbCard as P}from"./db-card.js";import{DbCheckbox as M}from"./db-checkbox.js";import{DbCustomButton as V}from"./db-custom-button.js";import{DbCustomSelect as X}from"./db-custom-select.js";export{D as DocumentClickListener}from"./db-custom-select.js";import{DbCustomSelectDropdown as Y}from"./db-custom-select-dropdown.js";import{DbCustomSelectFormField as K}from"./db-custom-select-form-field.js";import{DbCustomSelectList as W}from"./db-custom-select-list.js";import{DbCustomSelectListItem as H}from"./db-custom-select-list-item.js";import{DbDivider as J}from"./db-divider.js";import{DbDrawer as Q}from"./db-drawer.js";import{DbHeader as Z}from"./db-header.js";import{DbIcon as $}from"./db-icon.js";import{DbInfotext as ee}from"./db-infotext.js";import{DbInput as te}from"./db-input.js";import{DbLink as oe}from"./db-link.js";import{DbNavigation as ae}from"./db-navigation.js";import{DbNavigationItem as re}from"./db-navigation-item.js";import{DbNotification as se}from"./db-notification.js";import{DbPage as ie}from"./db-page.js";import{DbPopover as ne}from"./db-popover.js";import{DbRadio as me}from"./db-radio.js";import{DbSection as le}from"./db-section.js";import{DbSelect as de}from"./db-select.js";import{DbStack as ce}from"./db-stack.js";import{DbSwitch as pe}from"./db-switch.js";import{DbTabItem as fe}from"./db-tab-item.js";import{DbTabList as be}from"./db-tab-list.js";import{DbTabPanel as ue}from"./db-tab-panel.js";import{DbTable as ge}from"./db-table.js";import{DbTableBody as Ee}from"./db-table-body.js";import{DbTableCaption as _e}from"./db-table-caption.js";import{DbTableDataCell as je}from"./db-table-data-cell.js";import{DbTableFooter as De}from"./db-table-footer.js";import{DbTableHead as Se}from"./db-table-head.js";import{DbTableHeaderCell as Le}from"./db-table-header-cell.js";import{DbTableRow as Ae}from"./db-table-row.js";import{DbTabs as he}from"./db-tabs.js";import{DbTag as Te}from"./db-tag.js";import{DbTextarea as Ie}from"./db-textarea.js";import{DbTooltip as Fe}from"./db-tooltip.js";export{x as COLOR,y as COLORS,z as COLORS_SIMPLE,C as COLOR_CONST,w as COLOR_SIMPLE,F as DB_UX_LOCAL_STORAGE_FRAMEWORK,G as DB_UX_LOCAL_STORAGE_MODE,n as DEFAULT_BACK,p as DEFAULT_BURGER_MENU,s as DEFAULT_CLOSE_BUTTON,j as DEFAULT_DATALIST_ID_SUFFIX,q as DEFAULT_ICON,D as DEFAULT_ID,l as DEFAULT_INVALID_MESSAGE,h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX,a as DEFAULT_LABEL,d as DEFAULT_LABEL_ID_SUFFIX,c as DEFAULT_MESSAGE,f as DEFAULT_MESSAGE_ID_SUFFIX,b as DEFAULT_PLACEHOLDER,i as DEFAULT_PLACEHOLDER_ID_SUFFIX,m as DEFAULT_REMOVE,r as DEFAULT_ROWS,o as DEFAULT_SELECTED,e as DEFAULT_SELECT_ID_SUFFIX,k as DEFAULT_VALID_MESSAGE,g as DEFAULT_VALID_MESSAGE_ID_SUFFIX,B as DEFAULT_VIEWPORT,v as DENSITIES,u as DENSITY,t as DENSITY_CONST,E as DESKTOP_VIEWPORT,S as SEMANTIC,A as SEMANTICS,T as TESTING_VIEWPORTS}from"./p-BdL-nI5y.js";export{D as DocumentScrollListener}from"./p-DJTpgiBy.js";export{g as getFloatingProps,h as handleDataOutside,a as handleFixedDropdown,b as handleFixedPopover}from"./p-DOPXnIzL.js";export{N as NavigationItemSafeTriangle,i as isEventTargetNavigationItem}from"./p-BuBrj57D.js";const xe=["divider","card"],ve=["multiple","single"],Oe=["inline","corner-top-left","corner-top-right","corner-center-left","corner-center-right","corner-bottom-left","corner-bottom-right"],Ue=["outlined","brand","filled","ghost"],we=["button","reset","submit"],ye=["static","interactive"],Ce=["1","2","3"],Ne=["fixed","auto","full"],Re=["checkbox","radio"],Pe=["amount","text","tag"],ke=["none","_"],Be=["horizontal","vertical"],Me=["none","strong","weak","invisible"],Ge=["left","right","up","down"],Ve=["modal","inside"],ze=["fixed","absolute"],Xe=["16","20","24","32","48","64"],Ye=["color","date","datetime-local","email","file","hidden","month","number","password","range","search","tel","text","time","url","week"],Ke=["adaptive","brand","inline"],We=["medium","small"],He=["external","internal"],qe=["docked","standalone","overlay"],Je=["block","inline"],Qe=["assertive","polite","off"],Ze=["auto","fixed"],$e=["hidden","auto"],et=["simple","divider"],tt=["row","column"],ot=["stretch","start","end","center"],at=["space-between","start","end","center"],rt=["row","col","rowgroup","colgroup"],st=["none","weak","strong"],it=["x-small","small","medium","large"],nt=["flat","zebra","spaced"],mt=["none","both","horizontal","vertical"],lt=["table","list"],dt=["none","both","horizontal","vertical"],ct=["auto","1fr","min-content","max-content"],pt=["scrollbar","arrows"],ft=["auto","manually"],bt=["static","removable"],ut=["none","both","horizontal","vertical"],gt=["hard","soft","off"],Et=["description","label"],_t=["adaptive","neutral","critical","informational","warning","successful"],jt=["medium","small","large","none"],Dt=["medium","small","large","none"],St=["left","right","left-start","left-end","right-start","right-end"],Lt=["top","bottom","top-start","top-end","bottom-start","bottom-end"],At=[...St,...Lt],ht=["none","3x-large","2x-large","x-large","large","medium","small","x-small","2x-small","3x-small"],Tt=["horizontal","vertical"],It=["full","auto"],Ft=["full","medium","large","small"],xt=["none","slow","fast"],vt=["auto","fixed"],Ot=["small","medium"],Ut=["weak","strong"],wt=["invalid","valid","no-validation"],yt=["fixed","content"],Ct=["above","floating"],Nt=["leading","trailing"],Rt=["off","on","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","email","username","new-password","current-password","one-time-code","organization-title","organization","street-address","shipping","billing","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-extension","impp","url","photo","webauthn"],Pt=["_self","_blank","_parent","_top"],kt=["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin","unsafe-url"],Bt=["start","center","end"],Mt=e=>{"undefined"!=typeof customElements&&[L,I,O,U,R,P,M,V,X,Y,K,W,H,J,Q,Z,$,ee,te,oe,ae,re,se,ie,ne,me,le,de,ce,pe,fe,be,ue,ge,Ee,_e,je,De,Se,Le,Ae,he,Te,Ie,Fe].forEach((t=>{customElements.get(_(t.is))||customElements.define(_(t.is),t,e)}))};export{ve as AccordionBehaviorList,xe as AccordionVariantList,Bt as AlignmentList,Rt as AutoCompleteList,Oe as BadgePlacementList,we as ButtonTypeList,Ue as ButtonVariantList,ye as CardBehaviorList,Ce as CardElevationLevelList,Ne as CustomSelectDropdownWidthList,Re as CustomSelectListItemTypeList,ct as DBTableColumnsSizeList,mt as DBTableDividerList,rt as DBTableHeaderCellScopeList,lt as DBTableMobileVariantList,it as DBTableRowSizeList,st as DBTableRowSubHeaderEmphasisList,dt as DBTableStickyHeaderList,nt as DBTableVariantList,ke as DividerMarginList,Be as DividerVariantList,Me as DrawerBackdropList,Ge as DrawerDirectionList,ze as DrawerPositionList,Ve as DrawerVariantList,Ut as EmphasisList,yt as FieldSizingList,ht as GapSpacingList,Xe as IconWeightList,Ye as InputTypeList,Nt as LabelVariantHorizontalList,Ct as LabelVariantList,He as LinkContentList,kt as LinkReferrerPolicyList,We as LinkSizeList,Pt as LinkTargetList,Ke as LinkVariantList,Dt as MarginList,Ft as MaxWidthList,Qe as NotificationAriaLiveList,Je as NotificationLinkVariantList,qe as NotificationVariantList,Tt as OrientationList,$e as PageDocumentOverflowList,Ze as PageVariantList,St as PlacementHorizontalList,At as PlacementList,Lt as PlacementVerticalList,xt as PopoverDelayList,vt as PopoverWidthList,Pe as SelectedTypeList,_t as SemanticList,Ot as SizeList,jt as SpacingList,ot as StackAlignmentList,tt as StackDirectionList,at as StackJustifyContentList,et as StackVariantList,pt as TabsBehaviorList,ft as TabsInitialSelectedModeList,bt as TagBehaviorList,ut as TextareaResizeList,gt as TextareaWrapList,Et as TooltipVariantList,wt as ValidationList,It as WidthList,Mt as defineCustomElements}
1
+ import{t as _}from"./p-DEicAzan.js";export{c as addAttributeToChildren,d as cls,f as delay,g as getAssetPath,l as getBoolean,k as getBooleanAsString,p as getHideProp,o as getInputValue,y as getNotificationRole,m as getNumber,w as getOptionKey,v as getSearchInput,n as getStep,j as hasCssFlag,h as hasVoiceOver,i as isArrayOfStrings,e as isIOSSafari,x as isKeyboardEvent,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions,q as stringPropVisible,u as uuid}from"./p-DEicAzan.js";import{DbAccordion as L}from"./db-accordion.js";import{DbAccordionItem as O}from"./db-accordion-item.js";import{DbBadge as U}from"./db-badge.js";import{DbButton as R}from"./db-button.js";import{DbCard as P}from"./db-card.js";import{DbCheckbox as V}from"./db-checkbox.js";import{DbControlPanelBrand as X}from"./db-control-panel-brand.js";import{DbControlPanelDesktop as W}from"./db-control-panel-desktop.js";import{DbControlPanelFlatIcon as K}from"./db-control-panel-flat-icon.js";import{DbControlPanelMeta as Y}from"./db-control-panel-meta.js";import{DbControlPanelMobile as Q}from"./db-control-panel-mobile.js";import{DbControlPanelNavigation as Z}from"./db-control-panel-navigation.js";import{DbControlPanelNavigationItem as $}from"./db-control-panel-navigation-item.js";import{DbControlPanelNavigationItemGroup as oo}from"./db-control-panel-navigation-item-group.js";import{DbControlPanelPrimaryActions as to}from"./db-control-panel-primary-actions.js";import{DbControlPanelSecondaryActions as eo}from"./db-control-panel-secondary-actions.js";import{DbControlPanelSkipNavigation as ro}from"./db-control-panel-skip-navigation.js";import{DbCustomButton as ao}from"./db-custom-button.js";import{DbCustomSelect as so}from"./db-custom-select.js";export{D as DocumentClickListener}from"./db-custom-select.js";import{DbCustomSelectDropdown as io}from"./db-custom-select-dropdown.js";import{DbCustomSelectFormField as no}from"./db-custom-select-form-field.js";import{DbCustomSelectList as mo}from"./db-custom-select-list.js";import{DbCustomSelectListItem as lo}from"./db-custom-select-list-item.js";import{DbDivider as co}from"./db-divider.js";import{DbDrawer as po}from"./db-drawer.js";import{DbDrawerFooter as fo}from"./db-drawer-footer.js";import{DbDrawerHeader as bo}from"./db-drawer-header.js";import{DbIcon as Eo}from"./db-icon.js";import{DbInfotext as go}from"./db-infotext.js";import{DbInput as uo}from"./db-input.js";import{DbLink as _o}from"./db-link.js";import{DbNotification as jo}from"./db-notification.js";import{DbPopover as Ao}from"./db-popover.js";import{DbRadio as Lo}from"./db-radio.js";import{DbSection as Do}from"./db-section.js";import{DbSelect as So}from"./db-select.js";import{DbShell as ho}from"./db-shell.js";import{DbShellContent as To}from"./db-shell-content.js";import{DbShellSubNavigation as Fo}from"./db-shell-sub-navigation.js";import{DbStack as Io}from"./db-stack.js";import{DbSwitch as vo}from"./db-switch.js";import{DbTabItem as Oo}from"./db-tab-item.js";import{DbTabList as xo}from"./db-tab-list.js";import{DbTabPanel as Uo}from"./db-tab-panel.js";import{DbTable as wo}from"./db-table.js";import{DbTableBody as yo}from"./db-table-body.js";import{DbTableCaption as Co}from"./db-table-caption.js";import{DbTableDataCell as No}from"./db-table-data-cell.js";import{DbTableFooter as Ro}from"./db-table-footer.js";import{DbTableHead as Po}from"./db-table-head.js";import{DbTableHeaderCell as ko}from"./db-table-header-cell.js";import{DbTableRow as Mo}from"./db-table-row.js";import{DbTabs as Bo}from"./db-tabs.js";import{DbTag as Vo}from"./db-tag.js";import{DbTextarea as zo}from"./db-textarea.js";import{DbTooltip as Go}from"./db-tooltip.js";export{A as COLOR,B as COLORS,E as COLORS_SIMPLE,C as COLOR_CONST,z as COLOR_SIMPLE,I as DB_UX_LOCAL_STORAGE_FRAMEWORK,J as DB_UX_LOCAL_STORAGE_MODE,n as DEFAULT_BACK,t as DEFAULT_BURGER_MENU,v as DEFAULT_CLOSE_BUTTON,q as DEFAULT_COLLAPSE,j as DEFAULT_DATALIST_ID_SUFFIX,p as DEFAULT_EXPAND,D as DEFAULT_ID,l as DEFAULT_INVALID_MESSAGE,h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX,a as DEFAULT_LABEL,d as DEFAULT_LABEL_ID_SUFFIX,c as DEFAULT_MESSAGE,f as DEFAULT_MESSAGE_ID_SUFFIX,b as DEFAULT_PLACEHOLDER,i as DEFAULT_PLACEHOLDER_ID_SUFFIX,m as DEFAULT_REMOVE,u as DEFAULT_ROWS,r as DEFAULT_SCROLL_LEFT,s as DEFAULT_SCROLL_RIGHT,o as DEFAULT_SELECTED,e as DEFAULT_SELECT_ID_SUFFIX,k as DEFAULT_VALID_MESSAGE,g as DEFAULT_VALID_MESSAGE_ID_SUFFIX,G as DEFAULT_VIEWPORT,y as DENSITIES,x as DENSITY,w as DENSITY_CONST,H as DESKTOP_VIEWPORT,M as MAIN_CONTENT_ID,S as SEMANTIC,F as SEMANTICS,T as TESTING_VIEWPORTS}from"./p-COv1iCFP.js";export{D as DocumentScrollListener}from"./p-BWWm2aVB.js";export{g as getFloatingProps,b as handleDataOutside,h as handleFixedDropdown,a as handleFixedPopover}from"./p-BT3wZY6f.js";import"./p-Nyi3Ccqz.js";import"./p-B2-mqMAV.js";export{N as NavigationItemSafeTriangle,h as handleSubNavigationPosition,i as isEventTargetNavigationItem}from"./p-_kvIQ0Iy.js";const Xo=["divider","card"],Wo=["inline","corner-top-left","corner-top-right","corner-center-left","corner-center-right","corner-bottom-left","corner-bottom-right"],Ho=["outlined","brand","filled","ghost"],Ko=["button","reset","submit"],qo=["static","interactive"],Yo=["1","2","3"],Jo=["fixed","auto","full"],Qo=["checkbox","radio"],Zo=["amount","text","tag"],$o=["none","_"],ot=["horizontal","vertical"],tt=["none","strong","weak","invisible"],et=["left","right","up","down"],rt=["modal","inside"],at=["fixed","absolute"],st=["small","medium","large","full"],it=["16","20","24","32","48","64"],nt=["color","date","datetime-local","email","file","hidden","month","number","password","range","search","tel","text","time","url","week"],mt=["adaptive","brand","inline"],lt=["medium","small"],dt=["external","internal"],ct=["docked","standalone","overlay"],pt=["block","inline"],ft=["assertive","polite","off"],bt=["auto","fixed"],Et=["top","bottom","none"],gt=["simple","divider"],ut=["row","column"],_t=["stretch","start","end","center"],jt=["space-between","start","end","center"],At=["row","col","rowgroup","colgroup"],Lt=["none","weak","strong"],Dt=["x-small","small","medium","large"],St=["flat","zebra","spaced"],ht=["none","both","horizontal","vertical"],Tt=["table","list"],Ft=["none","both","horizontal","vertical"],It=["auto","1fr","min-content","max-content"],vt=["scrollbar","arrows"],Ot=["auto","manually"],xt=["static","removable"],Ut=["none","both","horizontal","vertical"],wt=["hard","soft","off"],yt=["description","label"],Ct=["adaptive","neutral","critical","informational","warning","successful"],Nt=["medium","small","large","none"],Rt=["medium","small","large","none"],Pt=["top","left"],kt=["top","bottom"],Mt=["left","right","left-start","left-end","right-start","right-end"],Bt=["top","bottom","top-start","top-end","bottom-start","bottom-end"],Vt=[...Mt,...Bt],zt=["none","3x-large","2x-large","x-large","large","medium","small","x-small","2x-small","3x-small"],Gt=["horizontal","vertical"],Xt=["full","auto"],Wt=["full","medium","large","small"],Ht=["none","slow","fast"],Kt=["auto","fixed"],qt=["small","medium"],Yt=["weak","strong"],Jt=["invalid","valid","no-validation"],Qt=["fixed","content"],Zt=["above","floating"],$t=["leading","trailing"],oe=["off","on","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","email","username","new-password","current-password","one-time-code","organization-title","organization","street-address","shipping","billing","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-extension","impp","url","photo","webauthn"],te=["_self","_blank","_parent","_top"],ee=["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin","unsafe-url"],re=["start","center","end"],ae=["popover","tree"],se=["single","multiple"],ie=o=>{"undefined"!=typeof customElements&&[L,O,U,R,P,V,X,W,K,Y,Q,Z,$,oo,to,eo,ro,ao,so,io,no,mo,lo,co,po,fo,bo,Eo,go,uo,_o,jo,Ao,Lo,Do,So,ho,To,Fo,Io,vo,Oo,xo,Uo,wo,yo,Co,No,Ro,Po,ko,Mo,Bo,Vo,zo,Go].forEach((t=>{customElements.get(_(t.is))||customElements.define(_(t.is),t,o)}))};export{Xo as AccordionVariantList,re as AlignmentList,oe as AutoCompleteList,Wo as BadgePlacementList,Ko as ButtonTypeList,Ho as ButtonVariantList,qo as CardBehaviorList,Yo as CardElevationLevelList,se as CollapsibleBehaviorList,Jo as CustomSelectDropdownWidthList,Qo as CustomSelectListItemTypeList,It as DBTableColumnsSizeList,ht as DBTableDividerList,At as DBTableHeaderCellScopeList,Tt as DBTableMobileVariantList,Dt as DBTableRowSizeList,Lt as DBTableRowSubHeaderEmphasisList,Ft as DBTableStickyHeaderList,St as DBTableVariantList,$o as DividerMarginList,ot as DividerVariantList,tt as DrawerBackdropList,st as DrawerContainerSizeList,et as DrawerDirectionList,at as DrawerPositionList,rt as DrawerVariantList,Yt as EmphasisList,Qt as FieldSizingList,zt as GapSpacingList,it as IconWeightList,nt as InputTypeList,$t as LabelVariantHorizontalList,Zt as LabelVariantList,dt as LinkContentList,ee as LinkReferrerPolicyList,lt as LinkSizeList,te as LinkTargetList,mt as LinkVariantList,Rt as MarginList,Wt as MaxWidthList,ae as NavigationItemGroupVariantList,ft as NotificationAriaLiveList,pt as NotificationLinkVariantList,ct as NotificationVariantList,Gt as OrientationList,Mt as PlacementHorizontalList,Vt as PlacementList,Bt as PlacementVerticalList,Ht as PopoverDelayList,Kt as PopoverWidthList,Zo as SelectedTypeList,Ct as SemanticList,bt as ShellContentVariantList,Pt as ShellControlPanelDesktopPosition,kt as ShellControlPanelMobilePosition,Et as ShellSubNavigationMobilePosition,qt as SizeList,Nt as SpacingList,_t as StackAlignmentList,ut as StackDirectionList,jt as StackJustifyContentList,gt as StackVariantList,vt as TabsBehaviorList,Ot as TabsInitialSelectedModeList,xt as TagBehaviorList,Ut as TextareaResizeList,wt as TextareaWrapList,yt as TooltipVariantList,Jt as ValidationList,Xt as WidthList,ie as defineCustomElements}
@@ -0,0 +1 @@
1
+ import{z as t,H as a,A as e,d as s,t as n,m as l}from"./p-DEicAzan.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(){var t,a;return e("td",{key:"5a3ebd6d5339d96b0254cefc8458a7202033dc99",class:s("db-table-data-cell",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(a=this.propOverrides)||void 0===a?void 0:a.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:"a972f0b9053840a126367efcf096d2bd32293547"}))}get rootElement(){return this}},[260,"db-table-data-cell",{id:[1],propOverrides:[16],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}
@@ -0,0 +1 @@
1
+ import{z as t,H as s,B as e,l as i,A as c,k as a,d as h,t as o}from"./p-DEicAzan.js";const l=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.change=e(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 i(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 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-custom-select-list-item")})),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 c=s.item(i);if(c&&"data-density"!==c.name&&(c.name.startsWith("data-")||c.name.startsWith("aria-")))c.value?t.setAttribute(c.name,c.value):t.removeAttribute(c.name),e.removeAttribute(c.name);else if(c&&["style"].includes(c.name))t.setAttribute(c.name,c.value),e.removeAttribute(c.name);else if(c&&"class"===c.name){const s=c.value.includes("hydrated"),i=c.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(c.name,`${a||""}${i?` ${i}`:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(c.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 c("li",{key:"2e8eca178b50e65b563dea560b11cf8ee20da8c8",class:h("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":a(this.hasDivider,"hasDivider")},this.isGroupTitle?c("span",null,this.groupTitle):c("label",{"data-icon":"checkbox"!==this.type&&this.icon?this.icon:void 0,"data-show-icon":a(this.showIcon,"showIcon"),"data-icon-trailing":this.getIconTrailing()},c("input",{class:"db-custom-select-list-item-checkbox","data-disable-focus":"true",type:this.type,name:this.name,form:this.name,checked:i(this.checked,"checked"),disabled:i(this.disabled,"disabled"),value:this.value,onChange:t=>this.handleChange(t)}),c("span",{class:"db-custom-select-list-item-label"},this.label?this.label:null,c("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 d(){"undefined"!=typeof customElements&&["db-custom-select-list-item"].forEach((t=>{"db-custom-select-list-item"===t&&(customElements.get(o(t))||customElements.define(o(t),l))}))}export{l as D,d}
@@ -0,0 +1 @@
1
+ import{u as e}from"./p-DEicAzan.js";class t{observe(t,s){const n=this.getObserver();if(!n)return;const r=e(),i=this.getCallbacksByElement(),o=this.getIdToElement();let u=i.get(t);return u||(u=new Map,i.set(t,u),this.observeElement(n,t)),u.set(r,s),o.set(r,t),r}unobserve(e){const t=this.getCallbacksByElement(),s=this.getIdToElement(),n=this.getObserver(),r=s.get(e);if(!r||!n)return;const i=t.get(r);i&&(i.delete(e),0===i.size&&(t.delete(r),this.unobserveElement(n,r))),s.delete(e)}dispatchEntry(e,t){const s=this.getCallbacksByElement().get(e);s&&s.forEach((e=>{e(t)}))}}class s extends t{constructor(){if(super(),s._instance)return s._instance;s._instance=this,"undefined"!=typeof window&&"ResizeObserver"in window&&(s.observer=new ResizeObserver((e=>{for(const t of e)this.dispatchEntry(t.target,t)})))}getCallbacksByElement(){return s.callbacksByElement}getIdToElement(){return s.idToElement}getObserver(){return s.observer}observeElement(e,t){e.observe(t)}unobserveElement(e,t){e.unobserve(t)}}s._instance=null,s.callbacksByElement=new Map,s.idToElement=new Map,s.observer=null;export{t as A,s as R}
@@ -1 +1 @@
1
- import{y as t,H as s,z as e,d,t as o}from"./p-CYYSsu3p.js";const i=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.width="fixed",this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-custom-select-dropdown");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-custom-select-dropdown")})),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 d=0;d<s.length;d++){const o=s.item(d);if(o&&"data-density"!==o.name&&(o.name.startsWith("data-")||o.name.startsWith("aria-")))o.value?t.setAttribute(o.name,o.value):t.removeAttribute(o.name),e.removeAttribute(o.name);else if(o&&["style"].includes(o.name))t.setAttribute(o.name,o.value),e.removeAttribute(o.name);else if(o&&"class"===o.name){const s=o.value.includes("hydrated"),d=o.value.replace("hydrated","").trim(),i=t.getAttribute("class");t.setAttribute(o.name,`${i||""}${d?` ${d}`:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(o.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-custom-select-dropdown"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return e("article",{key:"7720cebaaa9128aa7f12a3720aa1374a0fd689d7",class:d("db-custom-select-dropdown db-card",this.className),"data-spacing":"none",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-width":this.width},e("slot",{key:"19d66fe8c4369630a1debf34e448c0f13ebe0be9"}))}get rootElement(){return this}},[260,"db-custom-select-dropdown",{id:[1],propOverrides:[16],className:[1,"classname"],width:[1],observer:[32]}]);function a(){"undefined"!=typeof customElements&&["db-custom-select-dropdown"].forEach((t=>{"db-custom-select-dropdown"===t&&(customElements.get(o(t))||customElements.define(o(t),i))}))}export{i as D,a as d}
1
+ import{z as t,H as s,A as e,d,t as o}from"./p-DEicAzan.js";const i=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.width="fixed",this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-custom-select-dropdown");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-custom-select-dropdown")})),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 d=0;d<s.length;d++){const o=s.item(d);if(o&&"data-density"!==o.name&&(o.name.startsWith("data-")||o.name.startsWith("aria-")))o.value?t.setAttribute(o.name,o.value):t.removeAttribute(o.name),e.removeAttribute(o.name);else if(o&&["style"].includes(o.name))t.setAttribute(o.name,o.value),e.removeAttribute(o.name);else if(o&&"class"===o.name){const s=o.value.includes("hydrated"),d=o.value.replace("hydrated","").trim(),i=t.getAttribute("class");t.setAttribute(o.name,`${i||""}${d?` ${d}`:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(o.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-custom-select-dropdown"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return e("article",{key:"f4f45bf53a72ecdfc2f2d8a5efe56cd97b78ea39",class:d("db-custom-select-dropdown db-card",this.className),"data-spacing":"none",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-width":this.width},e("slot",{key:"ca1c3bb74d4197526662177cff18d959d215d73a"}))}get rootElement(){return this}},[260,"db-custom-select-dropdown",{id:[1],propOverrides:[16],className:[1,"classname"],width:[1],observer:[32]}]);function n(){"undefined"!=typeof customElements&&["db-custom-select-dropdown"].forEach((t=>{"db-custom-select-dropdown"===t&&(customElements.get(o(t))||customElements.define(o(t),i))}))}export{i as D,n as d}
@@ -0,0 +1 @@
1
+ import{z as t,H as i,f as s,u as e,A as a,k as h,d as o,t as d}from"./p-DEicAzan.js";import{D as n}from"./p-COv1iCFP.js";import{D as r}from"./p-BWWm2aVB.js";import{a as l}from"./p-BT3wZY6f.js";import{I as c}from"./p-Nyi3Ccqz.js";import{R as u}from"./p-B2-mqMAV.js";const v=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this._id=n,this.initialized=!1,this._documentScrollListenerCallbackId=void 0,this._intersectionObserverCallbackId=void 0,this._resizeObserverCallbackId=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((()=>{this._ref&&l(this._ref,t)}),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;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 r).removeCallback(this._documentScrollListenerCallbackId),this._documentScrollListenerCallbackId=void 0),this._resizeObserverCallbackId&&((new u).unobserve(this._resizeObserverCallbackId),this._resizeObserverCallbackId=void 0),this._intersectionObserverCallbackId&&((new c).unobserve(this._intersectionObserverCallbackId),this._intersectionObserverCallbackId=void 0))}handleEnter(t){var i;this._activeTriggerCount=(null!==(i=this._activeTriggerCount)&&void 0!==i?i:0)+1,1===this._activeTriggerCount&&(this._documentScrollListenerCallbackId=(new r).addCallback((i=>this.handleDocumentScroll(i,t))),this._resizeObserverCallbackId=(new u).observe(document.documentElement,(()=>this.handleAutoPlacement(t))),this._intersectionObserverCallbackId=(new c).observe(this.getParent(),(t=>{t.isIntersecting||this.handleEscape(!1)}))),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;const s=this._documentScrollListenerCallbackId;s&&((new r).removeCallback(s),this._documentScrollListenerCallbackId=void 0),this._resizeObserverCallbackId&&((new u).unobserve(this._resizeObserverCallbackId),this._resizeObserverCallbackId=void 0),this._intersectionObserverCallbackId&&((new c).unobserve(this._intersectionObserverCallbackId),this._intersectionObserverCallbackId=void 0),this._activeTriggerCount=0,(null!==(t=this._boundListeners)&&void 0!==t?t:[]).forEach((t=>{t.parent.removeEventListener(t.type,t.fn)})),this._boundListeners=[];const e=this._attachedParent;if(e){const t=null!==(i=this._attachedId)&&void 0!==i?i:this._id,s=e.querySelectorAll(".db-tooltip"),a=Array.from(s).some((t=>t!==this._ref));"true"!==e.dataset.hasTooltip||a||delete e.dataset.hasTooltip,e.getAttribute("aria-labelledby")===t&&e.removeAttribute("aria-labelledby"),e.getAttribute("aria-describedby")===t&&e.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(),h=t.getAttribute("class");t.setAttribute(a.name,`${h||""}${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}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:"2bc18af1435bfddb54357af071a3b87cd34ff546",class:o("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":h(this.wrap,"wrap"),"data-animation":h(null===(t=this.animation)||void 0===t||t,"animation"),"data-delay":this.delay,"data-width":this.width,"data-show-arrow":h(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:"480998c9b5df9829863bbcc36983415ffa28be5c"}))}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],className:[1,"classname"],emphasis:[1],wrap:[8],animation:[8],delay:[1],width:[1],showArrow:[8,"show-arrow"],placement:[1],text:[1],_id:[32],initialized:[32],_documentScrollListenerCallbackId:[32],_intersectionObserverCallbackId:[32],_resizeObserverCallbackId:[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 p(){"undefined"!=typeof customElements&&["db-tooltip"].forEach((t=>{"db-tooltip"===t&&(customElements.get(d(t))||customElements.define(d(t),v))}))}export{v as D,p as d}
@@ -1 +1 @@
1
- import{y as t,H as e,z as s,d as a,t as n}from"./p-CYYSsu3p.js";const i=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-tab-panel");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-tab-panel")})),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 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(),i=t.getAttribute("class");t.setAttribute(n.name,`${i||""}${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-tab-panel"),(()=>{this.setupObserver(this._ref)})()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,e;return s("section",{key:"a49b39a27112785e03a663c4c0ee9571e46d76fa",class:a("db-tab-panel",this.className),role:"tabpanel",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},this.content?this.content:null,s("slot",{key:"0c70d6a522b959af728df3fda8c16dd9a5bc6a8f"}))}get rootElement(){return this}},[260,"db-tab-panel",{className:[1,"classname"],id:[1],propOverrides:[16],content:[1],observer:[32]}]);function d(){"undefined"!=typeof customElements&&["db-tab-panel"].forEach((t=>{"db-tab-panel"===t&&(customElements.get(n(t))||customElements.define(n(t),i))}))}export{i as D,d}
1
+ import{z as t,H as e,A as s,d as a,t as n}from"./p-DEicAzan.js";const d=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-tab-panel");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-tab-panel")})),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 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(),d=t.getAttribute("class");t.setAttribute(n.name,`${d||""}${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-tab-panel"),(()=>{this.setupObserver(this._ref)})()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,e;return s("section",{key:"287373ceb888b5959d43221add298c3d99065471",class:a("db-tab-panel",this.className),role:"tabpanel",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},this.content?this.content:null,s("slot",{key:"a5faccaa006fbbd4d5fb10d6bb1d161a00738fdd"}))}get rootElement(){return this}},[260,"db-tab-panel",{className:[1,"classname"],id:[1],propOverrides:[16],content:[1],observer:[32]}]);function i(){"undefined"!=typeof customElements&&["db-tab-panel"].forEach((t=>{"db-tab-panel"===t&&(customElements.get(n(t))||customElements.define(n(t),d))}))}export{d as D,i as d}
@@ -0,0 +1 @@
1
+ const t=(t,e,i)=>{if(!t||!e)return;const l="full"===t.dataset.width,n="auto"===t.dataset.width;t.style.inlineSize="",t.style.minInlineSize="";const r=getComputedStyle(t);if("9999"===r.zIndex||"fixed"!==r.position&&"absolute"!==r.position)return;const{top:d,bottom:h,childHeight:p,childWidth:a,width:c,right:s,left:f,correctedPlacement:u,innerWidth:b}=o(t,e,i);let g=c;if(n){const o=parseFloat(getComputedStyle(t).maxInlineSize);!isNaN(o)&&o>0&&(g=Math.min(c,o))}l?t.style.inlineSize=`${c}px`:n&&(t.style.minInlineSize=`${g}px`);let m=a;n?m=Math.max(a,g):l&&(m=c);let $=u;n&&("top"===$||"bottom"===$||"top-start"===$||"bottom-start"===$)&&f+m>b&&($=$.startsWith("top")?"top-end":"bottom-end"),"top"===$||"bottom"===$||"top-start"===$||"bottom-start"===$?t.style.insetInlineStart=`${f}px`:"top-end"!==$&&"bottom-end"!==$||(t.style.insetInlineStart=`${Math.max(s-m,0)}px`),(null==$?void 0:$.startsWith("top"))?t.style.insetBlockStart=d-p+"px":(null==$?void 0:$.startsWith("bottom"))&&(t.style.insetBlockStart=`${h}px`),t.style.position="fixed"},o=(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:n,bottom:r,right:d,left:h,width:p}=o.getBoundingClientRect(),{innerHeight:a,innerWidth:c}=window;let s=i.height,f=i.width;"bottom"!==e&&"top"!==e||(f=p>f?0:f/2),"left"!==e&&"right"!==e||(s=n>s?0:s/2);const u=Math.floor(r+s)>a,b=Math.ceil(l-s)<0,g=Math.ceil(h-f)<0,m=Math.floor(d+f)>c;let $=e;return e.startsWith("bottom")?u?b||($=null==e?void 0:e.replace("bottom","top"),g&&m?$="top":g?$="top-start":m&&($="top-end")):g&&m?$="bottom":g?$="bottom-start":m&&($="bottom-end"):e.startsWith("top")?b?u||($=null==e?void 0:e.replace("top","bottom"),g&&m?$="bottom":g?$="bottom-start":m&&($="bottom-end")):g&&m?$="top":g?$="top-start":m&&($="top-end"):e.startsWith("left")?g?m||($=null==e?void 0:e.replace("left","right"),u&&b?$="right":u?$="right-end":b&&($="right-start")):u&&b?$="left":u?$="left-end":b&&($="left-start"):$.startsWith("right")&&(m?g||($=null==e?void 0:e.replace("right","left"),u&&b?$="left":u?$="left-end":b&&($="left-start")):u&&b?$="right":u?$="right-end":b&&($="right-start")),{top:l,bottom:r,right:d,height:n,width:p,left:h,childHeight:i.height,childWidth:i.width,correctedPlacement:$,innerWidth:c,innerHeight:a,outsideYBoth:b&&u}},e=new WeakMap,i=(t,i,n)=>{var r,d,h;if(!t||!i)return;const p=getComputedStyle(i),a=["absolute","fixed"].includes(p.position),c=(t=>{if(e.has(t))return e.get(t);let o=t.parentElement,i=0;for(;o&&i<10;){if(o.dataset.correctedPlacement)return e.set(t,o),o;o=o.parentElement,i+=1}return e.set(t,null),null})(t),s=!c&&!a,f=getComputedStyle(t);if("fixed"!==f.position&&"absolute"!==f.position)return;let u=f.getPropertyValue("--db-popover-distance");u.length||(u="0px");const b=null!==(h=null!==(d=null===(r=null==t?void 0:t.dataset)||void 0===r?void 0:r.placement)&&void 0!==d?d:n)&&void 0!==h?h:"bottom";let{top:g,height:m,width:$,childHeight:x,childWidth:v,right:w,left:M,bottom:W,correctedPlacement:H,innerWidth:y,innerHeight:k,outsideYBoth:B}=o(t,i,b);if(c){const t=c.getBoundingClientRect();M=Math.abs(M-t.left),w=1.5*($+Math.abs(w-t.right)),g=Math.abs(g-t.top),W=1.5*(m+Math.abs(W-t.bottom))}if(a&&(M=0,w=$,g=0,W=m,["auto","inherit","0"].includes(p.zIndex)&&(i.style.zIndex="1")),v>$&&(H.startsWith("bottom")||H.startsWith("top"))){const o=$/2/v*100;H.endsWith("start")?t.style.setProperty("--db-tooltip-arrow-inline-start",`${o}%`):H.endsWith("end")?t.style.setProperty("--db-tooltip-arrow-inline-start",100-o+"%"):t.style.setProperty("--db-tooltip-arrow-inline-start","50%")}if(x>m&&(H.startsWith("left")||H.startsWith("bottom"))){const o=m/2/x*100;H.endsWith("start")?t.style.setProperty("--db-tooltip-arrow-block-start",`${o}%`):H.endsWith("end")?t.style.setProperty("--db-tooltip-arrow-block-start",100-o+"%"):t.style.setProperty("--db-tooltip-arrow-block-start","50%")}if("right"===H||"left"===H)t.style.insetBlockStart=`${g+m/2}px`;else if("right-start"===H||"left-start"===H){const o=g+x;t.style.insetBlockStart=`${g}px`,t.style.insetBlockEnd=`${!a&&o>k?k:o}px`}else if("right-end"===H||"left-end"===H){const o=W-x;t.style.insetBlockStart=`${!a&&o<0?0:o}px`,t.style.insetBlockEnd=`${W}px`}else if("top"===H||"bottom"===H)t.style.insetInlineStart=`${M+$/2}px`;else if("top-start"===H||"bottom-start"===H){const o=M+v;t.style.insetInlineStart=`${M}px`,t.style.insetInlineEnd=`${!a&&o>y?y:o}px`}else if("top-end"===H||"bottom-end"===H){const o=w-v;t.style.insetInlineStart=`${!a&&o<0?0:o}px`,t.style.insetInlineEnd=`${w}px`}if(null==H?void 0:H.startsWith("right")){const o=w+v;t.style.insetInlineStart=`calc(${w}px + ${u})`,t.style.insetInlineEnd=`calc(${s&&o>y?y:o}px + ${u})`}else if(null==H?void 0:H.startsWith("left")){const o=M-v;t.style.insetInlineStart=`calc(${s&&o<0?0:o}px - ${u})`,t.style.insetInlineEnd=`calc(${w}px - ${u})`}else if(null==H?void 0:H.startsWith("top")){const o=g-x;t.style.insetBlockStart=`calc(${s&&o<0?0:o}px - ${u})`,t.style.insetBlockEnd=`calc(${a?o:W}px - ${u})`}else if(null==H?void 0:H.startsWith("bottom")){const o=W+x;t.style.insetBlockStart=`calc(${a?o:W}px + ${u})`,t.style.insetBlockEnd=`calc(${s&&o>k?k:o}px + ${u})`}B?(t.style.overflow="hidden auto",t.style.insetBlock=u,t.style.maxBlockSize=`calc(${k}px - 2 * ${u})`):(t.style.overflow="",t.style.maxBlockSize=""),t.style.position="fixed",t.dataset.correctedPlacement=H,l(t)},l=t=>{const{outTop:o,outBottom:e,outLeft:i,outRight:l}=n(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},n=t=>{var o;const{top:e,bottom:i,left:l,right:n}=t.getBoundingClientRect(),{innerHeight:r,innerWidth:d}=window;let h=e<0,p=i>r,a=l<0,c=n>d;const s=t.dataset.outsideVy,f=t.dataset.outsideVx,u=null===(o=null==t?void 0:t.parentElement)||void 0===o?void 0:o.getBoundingClientRect();return u&&(s&&("top"===t.dataset.outsideVy?h=u.top-(i-u.bottom)<0:p=u.bottom+(u.top-e)>r),f&&("left"===t.dataset.outsideVx?a=u.left-(n-u.right)<0:c=u.right+(u.left-l)>d)),{outTop:h,outBottom:p,outLeft:a,outRight:c}};export{i as a,l as b,o as g,t as h}
@@ -0,0 +1 @@
1
+ import{u as s}from"./p-DEicAzan.js";class t{addCallback(t){const e=s();return this.getCallbacks()[e]=t,e}removeCallback(s){delete this.getCallbacks()[s]}}class e extends t{static runCallbacks(s){for(const t of Object.values(e.callbacks))"function"==typeof t&&t(s)}constructor(){if(super(),this.ticking=!1,e._instance)return e._instance;e._instance=this,self.document&&self.document.addEventListener("scroll",(s=>{this.ticking||(window.requestAnimationFrame((()=>{e.runCallbacks(s),this.ticking=!1})),this.ticking=!0)}),!0)}getCallbacks(){return e.callbacks}}e.callbacks={},e._instance=null;export{t as A,e as D}
@@ -1 +1 @@
1
- import{y as t,H as e,z as s,j as i,d as r,t as a}from"./p-CYYSsu3p.js";const n=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-link");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-link")})),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 r=e.item(i);if(r&&"data-density"!==r.name&&(r.name.startsWith("data-")||r.name.startsWith("aria-")))r.value?t.setAttribute(r.name,r.value):t.removeAttribute(r.name),s.removeAttribute(r.name);else if(r&&["style"].includes(r.name))t.setAttribute(r.name,r.value),s.removeAttribute(r.name);else if(r&&"class"===r.name){const e=r.value.includes("hydrated"),i=r.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(r.name,`${a||""}${i?` ${i}`:""}`),e?s.setAttribute("class","hydrated"):s.removeAttribute(r.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-link"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,e,a,n;return s("a",{key:"7d627d40c68589558b3e33b1304f4c57b95203e3",class:r("db-link",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,href:this.href,target:this.target,rel:this.rel,role:this.role,referrerPolicy:null!==(a=this.referrerpolicy)&&void 0!==a?a:this.referrerPolicy,hrefLang:this.hreflang,"aria-disabled":i(this.disabled,"disabled"),tabIndex:this.disabled?-1:0,"data-size":this.size,"data-show-icon-trailing":i(null===(n=this.showIcon)||void 0===n||n,"showIcon"),"data-variant":this.variant,"data-content":this.content||"internal","data-wrap":i(this.wrap,"wrap")},this.text?this.text:null,s("slot",{key:"fc12c0b064d4c5d03347bea0f6de4ad5fcf78223"}))}get rootElement(){return this}},[260,"db-link",{id:[1],propOverrides:[16],className:[1,"classname"],href:[1],target:[1],rel:[1],role:[1],referrerpolicy:[1],referrerPolicy:[1,"referrer-policy"],hreflang:[1],disabled:[8],size:[1],showIcon:[8,"show-icon"],variant:[1],content:[1],wrap:[8],text:[1],observer:[32]}]);function d(){"undefined"!=typeof customElements&&["db-link"].forEach((t=>{"db-link"===t&&(customElements.get(a(t))||customElements.define(a(t),n))}))}export{n as D,d}
1
+ import{z as t,H as e,A as s,k as i,d as a,t as n}from"./p-DEicAzan.js";const r=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-link");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-link")})),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 a=e.item(i);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 e=a.value.includes("hydrated"),i=a.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(a.name,`${n||""}${i?` ${i}`:""}`),e?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-link"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,e,n,r;return s("a",{key:"844ef7d3be7d3cfa62ec5b5bbac7afbb2c226ad0",class:a("db-link",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,href:this.href,target:this.target,rel:this.rel,role:this.role,referrerPolicy:null!==(n=this.referrerpolicy)&&void 0!==n?n:this.referrerPolicy,hrefLang:this.hreflang,"aria-disabled":i(this.disabled,"disabled"),tabIndex:this.disabled?-1:0,"data-size":this.size,"data-show-icon-trailing":i(null===(r=this.showIcon)||void 0===r||r,"showIcon"),"data-variant":this.variant,"data-content":this.content||"internal","data-wrap":i(this.wrap,"wrap")},this.text?this.text:null,s("slot",{key:"d99bd3518f8b267b8a50531bac0a4eac737fd4bf"}))}get rootElement(){return this}},[260,"db-link",{id:[1],propOverrides:[16],className:[1,"classname"],href:[1],target:[1],rel:[1],role:[1],referrerpolicy:[1],referrerPolicy:[1,"referrer-policy"],hreflang:[1],disabled:[8],size:[1],showIcon:[8,"show-icon"],variant:[1],content:[1],wrap:[8],text:[1],observer:[32]}]);function d(){"undefined"!=typeof customElements&&["db-link"].forEach((t=>{"db-link"===t&&(customElements.get(n(t))||customElements.define(n(t),r))}))}export{r as D,d}