@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
@@ -0,0 +1,772 @@
1
+ import { DEFAULT_BACK } from "../../shared/constants.js";
2
+ import { cls, delay, getBoolean, getBooleanAsString, hasCssFlag, uuid, } from "../../utils/index.js";
3
+ import { handleDataOutside } from "../../utils/floating-components.js";
4
+ import { IntersectionObserverListener } from "../../utils/intersection-observer-listener.js";
5
+ import { handleSubNavigationPosition, NavigationItemSafeTriangle, } from "../../utils/navigation.js";
6
+ import { ResizeObserverListener } from "../../utils/resize-observer-listener.js";
7
+ import { h } from "@stencil/core";
8
+ /**
9
+ * @slot children - This is a default/unnamed slot
10
+ * @slot endSlot - TODO: Add description for slotEndSlot
11
+ */
12
+ export class DBControlPanelNavigationItemGroup {
13
+ constructor() {
14
+ this.hasSubNavigation = true;
15
+ this.isSubNavigationExpanded = false;
16
+ this.autoClose = false;
17
+ this.hasPopup = false;
18
+ this.initialized = false;
19
+ this._isMobile = false;
20
+ this._role = undefined;
21
+ this._attributeObserver = undefined;
22
+ this._itemGroupMenuId = "db-control-panel-navigation-item-group-menu-" + uuid();
23
+ this._intersectionObserverCallbackId = undefined;
24
+ this._resizeObserverCallbackId = undefined;
25
+ this._popoverListenersAttached = false;
26
+ this.navigationItemSafeTriangle = undefined;
27
+ this.observer = undefined;
28
+ }
29
+ _handleFocusIn() {
30
+ if (!this.hasPopup)
31
+ return;
32
+ this.isSubNavigationExpanded = true;
33
+ }
34
+ _handleFocusOut(event) {
35
+ if (!this.hasPopup)
36
+ return;
37
+ const relatedTarget = event.relatedTarget;
38
+ if (!relatedTarget || !this._ref.contains(relatedTarget)) {
39
+ this.isSubNavigationExpanded = false;
40
+ }
41
+ }
42
+ _handleMouseEnter() {
43
+ if (!this.hasPopup)
44
+ return;
45
+ if (this._menuRef) {
46
+ handleSubNavigationPosition(this._menuRef);
47
+ // Check if the menu overflows the viewport and set
48
+ // data-outside-vy / data-outside-vx for CSS flipping.
49
+ // visibility:hidden elements report correct layout via
50
+ // getBoundingClientRect, so we can measure immediately.
51
+ handleDataOutside(this._menuRef);
52
+ }
53
+ this.isSubNavigationExpanded = true;
54
+ }
55
+ _handleMouseLeave() {
56
+ if (!this.hasPopup)
57
+ return;
58
+ this.isSubNavigationExpanded = false;
59
+ }
60
+ _setSiblingsInert(inert) {
61
+ if (!this._ref || !this._menuRef)
62
+ return;
63
+ // 1. Mark sibling <li> elements within the parent <menu> as inert
64
+ const parentMenu = this._ref.parentElement;
65
+ if (parentMenu) {
66
+ const siblings = parentMenu.children;
67
+ for (let i = 0; i < siblings.length; i++) {
68
+ const sibling = siblings[i];
69
+ if (sibling !== this._ref) {
70
+ if (inert) {
71
+ sibling.setAttribute("inert", "");
72
+ }
73
+ else {
74
+ sibling.removeAttribute("inert");
75
+ }
76
+ }
77
+ }
78
+ }
79
+ // 2. Mark the expand button as inert when the sub-menu
80
+ // overlay is open, since it is visually behind the overlay.
81
+ if (this._buttonRef) {
82
+ if (inert) {
83
+ this._buttonRef.setAttribute("inert", "");
84
+ }
85
+ else {
86
+ this._buttonRef.removeAttribute("inert");
87
+ }
88
+ }
89
+ // 3. Mark other sections in the drawer scroll container as inert
90
+ // (e.g. meta navigation), but NOT the <nav> ancestor of this item.
91
+ const scrollContainer = this._ref.closest(".db-control-panel-mobile-drawer-scroll-container");
92
+ if (scrollContainer) {
93
+ const navAncestor = this._ref.closest(".db-control-panel-navigation");
94
+ const children = scrollContainer.children;
95
+ for (let i = 0; i < children.length; i++) {
96
+ const child = children[i];
97
+ if (child !== navAncestor) {
98
+ if (inert) {
99
+ child.setAttribute("inert", "");
100
+ }
101
+ else {
102
+ child.removeAttribute("inert");
103
+ }
104
+ }
105
+ }
106
+ }
107
+ }
108
+ _attachPopoverListeners() {
109
+ if (this._popoverListenersAttached || !this._ref)
110
+ return;
111
+ this._ref.addEventListener("mouseenter", this._handleMouseEnter);
112
+ this._ref.addEventListener("mouseleave", this._handleMouseLeave);
113
+ this._ref.addEventListener("focusin", this._handleFocusIn);
114
+ this._ref.addEventListener("focusout", this._handleFocusOut);
115
+ this._popoverListenersAttached = true;
116
+ }
117
+ _detachPopoverListeners() {
118
+ if (!this._popoverListenersAttached || !this._ref)
119
+ return;
120
+ this._ref.removeEventListener("mouseenter", this._handleMouseEnter);
121
+ this._ref.removeEventListener("mouseleave", this._handleMouseLeave);
122
+ this._ref.removeEventListener("focusin", this._handleFocusIn);
123
+ this._ref.removeEventListener("focusout", this._handleFocusOut);
124
+ this.isSubNavigationExpanded = false;
125
+ this._popoverListenersAttached = false;
126
+ }
127
+ _teardownPopover() {
128
+ this._detachPopoverListeners();
129
+ this.navigationItemSafeTriangle = undefined;
130
+ if (this._intersectionObserverCallbackId) {
131
+ new IntersectionObserverListener().unobserve(this._intersectionObserverCallbackId);
132
+ this._intersectionObserverCallbackId = undefined;
133
+ }
134
+ if (this._resizeObserverCallbackId) {
135
+ new ResizeObserverListener().unobserve(this._resizeObserverCallbackId);
136
+ this._resizeObserverCallbackId = undefined;
137
+ }
138
+ }
139
+ onScroll() {
140
+ if (this.hasPopup && this._menuRef) {
141
+ handleSubNavigationPosition(this._menuRef);
142
+ }
143
+ }
144
+ handleNavigationItemClick(event) {
145
+ var _a;
146
+ if (((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.nodeName) === "A") {
147
+ this.forceClose();
148
+ }
149
+ }
150
+ forceClose() {
151
+ this.autoClose = true;
152
+ void delay(() => {
153
+ this.autoClose = false;
154
+ }, 300);
155
+ }
156
+ handleClick(event) {
157
+ if (!this.hasPopup) {
158
+ this.isSubNavigationExpanded = !this.isSubNavigationExpanded;
159
+ }
160
+ if (this.click) {
161
+ // Prevent click from bubbling to the control-panel-mobile
162
+ // handleNavigationItemClick which would close the drawer.
163
+ event.stopPropagation();
164
+ this.click.emit(event);
165
+ }
166
+ }
167
+ handleBackClick(event) {
168
+ event.stopPropagation();
169
+ this.isSubNavigationExpanded = false;
170
+ // Return focus to the expand button after closing the sub-menu.
171
+ // Use a delay to ensure the inert attribute has been removed first.
172
+ void delay(() => {
173
+ if (this._buttonRef) {
174
+ this._buttonRef.focus();
175
+ }
176
+ }, 1);
177
+ }
178
+ handleEscape(event) {
179
+ if (!event || event.key === "Escape") {
180
+ this.forceClose();
181
+ this._buttonRef.blur();
182
+ }
183
+ }
184
+ setupObserver(element) {
185
+ if (!element)
186
+ return;
187
+ const parent = element.closest("db-control-panel-navigation-item-group");
188
+ if (!parent || this.observer)
189
+ return;
190
+ this.observer = new MutationObserver((mutations) => {
191
+ if (mutations.some((mutation) => {
192
+ var _a;
193
+ const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
194
+ return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
195
+ })) {
196
+ this.enableAttributePassing(element, "db-control-panel-navigation-item-group");
197
+ }
198
+ });
199
+ this.observer.observe(parent, {
200
+ attributes: true,
201
+ attributeOldValue: true,
202
+ });
203
+ }
204
+ /**
205
+ * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
206
+ * @param element the ref for the component
207
+ * @param customElementSelector the custom element like `my-component`
208
+ */
209
+ enableAttributePassing(element, customElementSelector) {
210
+ const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
211
+ if (element && parent) {
212
+ const attributes = parent.attributes;
213
+ for (let i = 0; i < attributes.length; i++) {
214
+ const attr = attributes.item(i);
215
+ if (attr && attr.name !== 'data-density' &&
216
+ (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
217
+ if (attr.value) {
218
+ element.setAttribute(attr.name, attr.value);
219
+ }
220
+ else {
221
+ element.removeAttribute(attr.name);
222
+ }
223
+ parent.removeAttribute(attr.name);
224
+ }
225
+ else if (attr && ["style"].includes(attr.name)) {
226
+ element.setAttribute(attr.name, attr.value);
227
+ parent.removeAttribute(attr.name);
228
+ }
229
+ else if (attr && attr.name === "class") {
230
+ const isWebComponent = attr.value.includes("hydrated");
231
+ const value = attr.value.replace("hydrated", "").trim();
232
+ const currentClass = element.getAttribute("class");
233
+ element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
234
+ if (isWebComponent) {
235
+ // Stencil is using this class for lazy loading component
236
+ parent.setAttribute("class", "hydrated");
237
+ }
238
+ else {
239
+ parent.removeAttribute(attr.name);
240
+ }
241
+ }
242
+ }
243
+ }
244
+ }
245
+ watch0Fn() {
246
+ var _a;
247
+ if (!this.initialized || !this._ref || this._attributeObserver)
248
+ return;
249
+ // Read initial role value synchronously in case parent set it before mount
250
+ const initialRole = (_a = this._ref.getAttribute("role")) !== null && _a !== void 0 ? _a : undefined;
251
+ if (initialRole !== this._role) {
252
+ this._role = initialRole;
253
+ }
254
+ const observer = new MutationObserver((mutations) => {
255
+ var _a;
256
+ for (const mutation of mutations) {
257
+ if (mutation.attributeName === "role") {
258
+ const newRole = (_a = this._ref.getAttribute("role")) !== null && _a !== void 0 ? _a : undefined;
259
+ if (newRole !== this._role) {
260
+ this._role = newRole;
261
+ }
262
+ }
263
+ }
264
+ });
265
+ observer.observe(this._ref, {
266
+ attributes: true,
267
+ attributeFilter: ["role"],
268
+ });
269
+ this._attributeObserver = observer;
270
+ }
271
+ watch0() {
272
+ this.watch0Fn();
273
+ }
274
+ watch1Fn() {
275
+ if (this.expanded !== undefined) {
276
+ this.isSubNavigationExpanded = !!getBoolean(this.expanded, "expanded");
277
+ }
278
+ }
279
+ watch1() {
280
+ this.watch1Fn();
281
+ }
282
+ watch2Fn() {
283
+ if (this._ref && this.initialized) {
284
+ this.initialized = false;
285
+ this.hasPopup = hasCssFlag(this._ref, "--db-control-panel-navigation-item-group-menu-popover");
286
+ if (this._menuRef) {
287
+ this._isMobile = hasCssFlag(this._menuRef, "--db-control-panel-navigation-item-group-menu-mobile");
288
+ }
289
+ }
290
+ }
291
+ watch2() {
292
+ this.watch2Fn();
293
+ }
294
+ watch3Fn() {
295
+ if (this._isMobile && this.isSubNavigationExpanded) {
296
+ this._setSiblingsInert(true);
297
+ // Move focus to the first navigation item link inside the sub-menu
298
+ if (this._menuRef) {
299
+ const firstLink = this._menuRef.querySelector(".db-control-panel-navigation-item a");
300
+ if (firstLink) {
301
+ firstLink.focus();
302
+ }
303
+ }
304
+ }
305
+ else {
306
+ this._setSiblingsInert(false);
307
+ }
308
+ }
309
+ watch3() {
310
+ this.watch3Fn();
311
+ }
312
+ watch4Fn() {
313
+ if (this._ref && this._buttonRef && this._menuRef && this.hasPopup) {
314
+ if (!this.navigationItemSafeTriangle) {
315
+ this.navigationItemSafeTriangle = new NavigationItemSafeTriangle(this._ref, this._menuRef);
316
+ }
317
+ this._attachPopoverListeners();
318
+ if (!this._intersectionObserverCallbackId) {
319
+ this._intersectionObserverCallbackId =
320
+ new IntersectionObserverListener().observe(this._buttonRef, (entry) => {
321
+ if (!entry.isIntersecting) {
322
+ this.forceClose();
323
+ }
324
+ });
325
+ }
326
+ // Re-position the sub-navigation popover on viewport resize
327
+ // (e.g. orientation change), because placement depends on the
328
+ // viewport dimensions.
329
+ if (!this._resizeObserverCallbackId) {
330
+ this._resizeObserverCallbackId = new ResizeObserverListener().observe(document.documentElement, () => {
331
+ if (this._menuRef) {
332
+ handleSubNavigationPosition(this._menuRef);
333
+ }
334
+ });
335
+ }
336
+ }
337
+ if (!this.hasPopup) {
338
+ this._teardownPopover();
339
+ }
340
+ }
341
+ watch4() {
342
+ this.watch4Fn();
343
+ }
344
+ componentDidLoad() {
345
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
346
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
347
+ if (connectedElement) {
348
+ connectedElement.remove();
349
+ }
350
+ }
351
+ this.enableAttributePassing(this._ref, "db-control-panel-navigation-item-group");
352
+ const onMountHook_0 = () => {
353
+ this.initialized = true;
354
+ };
355
+ onMountHook_0();
356
+ const onMountHook_1 = () => {
357
+ this.setupObserver(this._ref);
358
+ };
359
+ onMountHook_1();
360
+ this.watch0Fn();
361
+ this.watch1Fn();
362
+ this.watch2Fn();
363
+ this.watch3Fn();
364
+ this.watch4Fn();
365
+ }
366
+ disconnectedCallback() {
367
+ var _a, _b;
368
+ this._teardownPopover();
369
+ this._setSiblingsInert(false);
370
+ (_a = this._attributeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
371
+ this._attributeObserver = undefined;
372
+ (_b = this.observer) === null || _b === void 0 ? void 0 : _b.disconnect();
373
+ }
374
+ render() {
375
+ var _a, _b, _c, _d, _e;
376
+ return (h("li", { key: 'e842f5d91531596bc1b4077b50a2aa4b7349b557', class: cls("db-control-panel-navigation-item-group", this.className), ref: (el) => {
377
+ this._ref = el;
378
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, role: this._role, onMouseOver: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.enableFollow(); }, onMouseLeave: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.disableFollow(); }, onMouseMove: (event) => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.followByMouseEvent(event); }, onKeyDown: (event) => this.handleEscape(event), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon, "showIcon"), "data-active": getBooleanAsString(this.active, "active"), "aria-disabled": getBooleanAsString(this.disabled, "disabled") }, h("button", { key: '58ba0cb92b2a10a880d8c9f59c11850085b2f9ec', class: "db-control-panel-navigation-item-group-expand-button", type: "button", ref: (el) => {
379
+ this._buttonRef = el;
380
+ }, "aria-haspopup": getBooleanAsString(this.hasPopup ? true : undefined), "aria-controls": (_c = this.menuId) !== null && _c !== void 0 ? _c : this._itemGroupMenuId, "aria-expanded": getBooleanAsString(this.isSubNavigationExpanded), disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text, h("div", { key: '70f9d5553fc644f957fefc31a31350041aad2b83', class: "db-control-panel-navigation-item-group-expand-button-end-slot-container" }, h("slot", { key: '34ca08f31c839144194960294c35f9d4ef057e2a', name: "endSlot" }))), h("menu", { key: '877d344a558361d4bc6c4a7cbaa65325cf0d1d35', class: "db-control-panel-navigation-item-group-menu", ref: (el) => {
381
+ this._menuRef = el;
382
+ }, "data-force-close": getBooleanAsString(this.autoClose), id: (_d = this.menuId) !== null && _d !== void 0 ? _d : this._itemGroupMenuId, onScroll: () => this.onScroll(), onClick: (event) => this.handleNavigationItemClick(event) }, h("li", { key: '9a7c9be7cb8bbe5aac6dd2a4c8530ba1dbdb3f35', class: "db-control-panel-navigation-item-group-back-button" }, h("db-button", { key: '65808897bb081139d1c5a229f4c6e6fcf37f980d', icon: "arrow_left", variant: "ghost", id: this.backButtonId, onClick: (event) => this.handleBackClick(event) }, (_e = this.backButtonText) !== null && _e !== void 0 ? _e : DEFAULT_BACK)), h("slot", { key: 'fa8a9703ae21bb54349081935d42c5128f3cc8f9' }))));
383
+ }
384
+ static get is() { return "db-control-panel-navigation-item-group"; }
385
+ static get properties() {
386
+ return {
387
+ "expanded": {
388
+ "type": "any",
389
+ "mutable": false,
390
+ "complexType": {
391
+ "original": "DBControlPanelNavigationItemGroupProps[\"expanded\"]",
392
+ "resolved": "boolean | string",
393
+ "references": {
394
+ "DBControlPanelNavigationItemGroupProps": {
395
+ "location": "import",
396
+ "path": "./model.js",
397
+ "id": "src/components/control-panel-navigation-item-group/model.ts::DBControlPanelNavigationItemGroupProps",
398
+ "referenceLocation": "DBControlPanelNavigationItemGroupProps"
399
+ }
400
+ }
401
+ },
402
+ "required": false,
403
+ "optional": false,
404
+ "docs": {
405
+ "tags": [],
406
+ "text": ""
407
+ },
408
+ "getter": false,
409
+ "setter": false,
410
+ "reflect": false,
411
+ "attribute": "expanded"
412
+ },
413
+ "id": {
414
+ "type": "string",
415
+ "mutable": false,
416
+ "complexType": {
417
+ "original": "DBControlPanelNavigationItemGroupProps[\"id\"]",
418
+ "resolved": "string",
419
+ "references": {
420
+ "DBControlPanelNavigationItemGroupProps": {
421
+ "location": "import",
422
+ "path": "./model.js",
423
+ "id": "src/components/control-panel-navigation-item-group/model.ts::DBControlPanelNavigationItemGroupProps",
424
+ "referenceLocation": "DBControlPanelNavigationItemGroupProps"
425
+ }
426
+ }
427
+ },
428
+ "required": false,
429
+ "optional": false,
430
+ "docs": {
431
+ "tags": [],
432
+ "text": ""
433
+ },
434
+ "getter": false,
435
+ "setter": false,
436
+ "reflect": false,
437
+ "attribute": "id"
438
+ },
439
+ "propOverrides": {
440
+ "type": "unknown",
441
+ "mutable": false,
442
+ "complexType": {
443
+ "original": "DBControlPanelNavigationItemGroupProps[\"propOverrides\"]",
444
+ "resolved": "{ id?: string; }",
445
+ "references": {
446
+ "DBControlPanelNavigationItemGroupProps": {
447
+ "location": "import",
448
+ "path": "./model.js",
449
+ "id": "src/components/control-panel-navigation-item-group/model.ts::DBControlPanelNavigationItemGroupProps",
450
+ "referenceLocation": "DBControlPanelNavigationItemGroupProps"
451
+ }
452
+ }
453
+ },
454
+ "required": false,
455
+ "optional": false,
456
+ "docs": {
457
+ "tags": [],
458
+ "text": ""
459
+ },
460
+ "getter": false,
461
+ "setter": false
462
+ },
463
+ "className": {
464
+ "type": "string",
465
+ "mutable": false,
466
+ "complexType": {
467
+ "original": "DBControlPanelNavigationItemGroupProps[\"className\"]",
468
+ "resolved": "string",
469
+ "references": {
470
+ "DBControlPanelNavigationItemGroupProps": {
471
+ "location": "import",
472
+ "path": "./model.js",
473
+ "id": "src/components/control-panel-navigation-item-group/model.ts::DBControlPanelNavigationItemGroupProps",
474
+ "referenceLocation": "DBControlPanelNavigationItemGroupProps"
475
+ }
476
+ }
477
+ },
478
+ "required": false,
479
+ "optional": false,
480
+ "docs": {
481
+ "tags": [],
482
+ "text": ""
483
+ },
484
+ "getter": false,
485
+ "setter": false,
486
+ "reflect": false,
487
+ "attribute": "classname"
488
+ },
489
+ "icon": {
490
+ "type": "string",
491
+ "mutable": false,
492
+ "complexType": {
493
+ "original": "DBControlPanelNavigationItemGroupProps[\"icon\"]",
494
+ "resolved": "\"arrow_down\" | \"arrow_left\" | \"arrow_right\" | \"arrow_up\" | \"arrow_up_right\" | \"arrows_vertical\" | \"brand\" | \"calendar\" | \"chat\" | \"check\" | \"check_circle\" | \"chevron_down\" | \"chevron_left\" | \"chevron_right\" | \"chevron_up\" | \"circle\" | \"circle_small\" | \"circular_arrows\" | \"clock\" | \"copy\" | \"cross\" | \"cross_circle\" | \"double_chevron_down\" | \"double_chevron_left\" | \"double_chevron_right\" | \"double_chevron_up\" | \"exclamation_mark_circle\" | \"exclamation_mark_triangle\" | \"eye\" | \"eye_disabled\" | \"house\" | \"information_circle\" | \"magnifying_glass\" | \"menu\" | \"minus\" | \"moon\" | \"more_vertical\" | \"plus\" | \"resize_handle_corner\" | \"sun\" | \"x_placeholder\" | string & Record<never, never>",
495
+ "references": {
496
+ "DBControlPanelNavigationItemGroupProps": {
497
+ "location": "import",
498
+ "path": "./model.js",
499
+ "id": "src/components/control-panel-navigation-item-group/model.ts::DBControlPanelNavigationItemGroupProps",
500
+ "referenceLocation": "DBControlPanelNavigationItemGroupProps"
501
+ }
502
+ }
503
+ },
504
+ "required": false,
505
+ "optional": false,
506
+ "docs": {
507
+ "tags": [],
508
+ "text": ""
509
+ },
510
+ "getter": false,
511
+ "setter": false,
512
+ "reflect": false,
513
+ "attribute": "icon"
514
+ },
515
+ "showIcon": {
516
+ "type": "any",
517
+ "mutable": false,
518
+ "complexType": {
519
+ "original": "DBControlPanelNavigationItemGroupProps[\"showIcon\"]",
520
+ "resolved": "boolean | string",
521
+ "references": {
522
+ "DBControlPanelNavigationItemGroupProps": {
523
+ "location": "import",
524
+ "path": "./model.js",
525
+ "id": "src/components/control-panel-navigation-item-group/model.ts::DBControlPanelNavigationItemGroupProps",
526
+ "referenceLocation": "DBControlPanelNavigationItemGroupProps"
527
+ }
528
+ }
529
+ },
530
+ "required": false,
531
+ "optional": false,
532
+ "docs": {
533
+ "tags": [],
534
+ "text": ""
535
+ },
536
+ "getter": false,
537
+ "setter": false,
538
+ "reflect": false,
539
+ "attribute": "show-icon"
540
+ },
541
+ "active": {
542
+ "type": "boolean",
543
+ "mutable": false,
544
+ "complexType": {
545
+ "original": "DBControlPanelNavigationItemGroupProps[\"active\"]",
546
+ "resolved": "boolean",
547
+ "references": {
548
+ "DBControlPanelNavigationItemGroupProps": {
549
+ "location": "import",
550
+ "path": "./model.js",
551
+ "id": "src/components/control-panel-navigation-item-group/model.ts::DBControlPanelNavigationItemGroupProps",
552
+ "referenceLocation": "DBControlPanelNavigationItemGroupProps"
553
+ }
554
+ }
555
+ },
556
+ "required": false,
557
+ "optional": false,
558
+ "docs": {
559
+ "tags": [],
560
+ "text": ""
561
+ },
562
+ "getter": false,
563
+ "setter": false,
564
+ "reflect": false,
565
+ "attribute": "active"
566
+ },
567
+ "disabled": {
568
+ "type": "any",
569
+ "mutable": false,
570
+ "complexType": {
571
+ "original": "DBControlPanelNavigationItemGroupProps[\"disabled\"]",
572
+ "resolved": "boolean | string",
573
+ "references": {
574
+ "DBControlPanelNavigationItemGroupProps": {
575
+ "location": "import",
576
+ "path": "./model.js",
577
+ "id": "src/components/control-panel-navigation-item-group/model.ts::DBControlPanelNavigationItemGroupProps",
578
+ "referenceLocation": "DBControlPanelNavigationItemGroupProps"
579
+ }
580
+ }
581
+ },
582
+ "required": false,
583
+ "optional": false,
584
+ "docs": {
585
+ "tags": [],
586
+ "text": ""
587
+ },
588
+ "getter": false,
589
+ "setter": false,
590
+ "reflect": false,
591
+ "attribute": "disabled"
592
+ },
593
+ "menuId": {
594
+ "type": "string",
595
+ "mutable": false,
596
+ "complexType": {
597
+ "original": "DBControlPanelNavigationItemGroupProps[\"menuId\"]",
598
+ "resolved": "string",
599
+ "references": {
600
+ "DBControlPanelNavigationItemGroupProps": {
601
+ "location": "import",
602
+ "path": "./model.js",
603
+ "id": "src/components/control-panel-navigation-item-group/model.ts::DBControlPanelNavigationItemGroupProps",
604
+ "referenceLocation": "DBControlPanelNavigationItemGroupProps"
605
+ }
606
+ }
607
+ },
608
+ "required": false,
609
+ "optional": false,
610
+ "docs": {
611
+ "tags": [],
612
+ "text": ""
613
+ },
614
+ "getter": false,
615
+ "setter": false,
616
+ "reflect": false,
617
+ "attribute": "menu-id"
618
+ },
619
+ "text": {
620
+ "type": "string",
621
+ "mutable": false,
622
+ "complexType": {
623
+ "original": "DBControlPanelNavigationItemGroupProps[\"text\"]",
624
+ "resolved": "string",
625
+ "references": {
626
+ "DBControlPanelNavigationItemGroupProps": {
627
+ "location": "import",
628
+ "path": "./model.js",
629
+ "id": "src/components/control-panel-navigation-item-group/model.ts::DBControlPanelNavigationItemGroupProps",
630
+ "referenceLocation": "DBControlPanelNavigationItemGroupProps"
631
+ }
632
+ }
633
+ },
634
+ "required": false,
635
+ "optional": false,
636
+ "docs": {
637
+ "tags": [],
638
+ "text": ""
639
+ },
640
+ "getter": false,
641
+ "setter": false,
642
+ "reflect": false,
643
+ "attribute": "text"
644
+ },
645
+ "backButtonId": {
646
+ "type": "string",
647
+ "mutable": false,
648
+ "complexType": {
649
+ "original": "DBControlPanelNavigationItemGroupProps[\"backButtonId\"]",
650
+ "resolved": "string",
651
+ "references": {
652
+ "DBControlPanelNavigationItemGroupProps": {
653
+ "location": "import",
654
+ "path": "./model.js",
655
+ "id": "src/components/control-panel-navigation-item-group/model.ts::DBControlPanelNavigationItemGroupProps",
656
+ "referenceLocation": "DBControlPanelNavigationItemGroupProps"
657
+ }
658
+ }
659
+ },
660
+ "required": false,
661
+ "optional": false,
662
+ "docs": {
663
+ "tags": [],
664
+ "text": ""
665
+ },
666
+ "getter": false,
667
+ "setter": false,
668
+ "reflect": false,
669
+ "attribute": "back-button-id"
670
+ },
671
+ "backButtonText": {
672
+ "type": "string",
673
+ "mutable": false,
674
+ "complexType": {
675
+ "original": "DBControlPanelNavigationItemGroupProps[\"backButtonText\"]",
676
+ "resolved": "string",
677
+ "references": {
678
+ "DBControlPanelNavigationItemGroupProps": {
679
+ "location": "import",
680
+ "path": "./model.js",
681
+ "id": "src/components/control-panel-navigation-item-group/model.ts::DBControlPanelNavigationItemGroupProps",
682
+ "referenceLocation": "DBControlPanelNavigationItemGroupProps"
683
+ }
684
+ }
685
+ },
686
+ "required": false,
687
+ "optional": false,
688
+ "docs": {
689
+ "tags": [],
690
+ "text": ""
691
+ },
692
+ "getter": false,
693
+ "setter": false,
694
+ "reflect": false,
695
+ "attribute": "back-button-text"
696
+ }
697
+ };
698
+ }
699
+ static get states() {
700
+ return {
701
+ "hasSubNavigation": {},
702
+ "isSubNavigationExpanded": {},
703
+ "autoClose": {},
704
+ "hasPopup": {},
705
+ "initialized": {},
706
+ "_isMobile": {},
707
+ "_role": {},
708
+ "_attributeObserver": {},
709
+ "_itemGroupMenuId": {},
710
+ "_intersectionObserverCallbackId": {},
711
+ "_resizeObserverCallbackId": {},
712
+ "_popoverListenersAttached": {},
713
+ "navigationItemSafeTriangle": {},
714
+ "observer": {}
715
+ };
716
+ }
717
+ static get events() {
718
+ return [{
719
+ "method": "click",
720
+ "name": "click",
721
+ "bubbles": true,
722
+ "cancelable": true,
723
+ "composed": true,
724
+ "docs": {
725
+ "tags": [],
726
+ "text": ""
727
+ },
728
+ "complexType": {
729
+ "original": "any",
730
+ "resolved": "any",
731
+ "references": {}
732
+ }
733
+ }];
734
+ }
735
+ static get elementRef() { return "rootElement"; }
736
+ static get watchers() {
737
+ return [{
738
+ "propName": "_ref",
739
+ "methodName": "watch0"
740
+ }, {
741
+ "propName": "initialized",
742
+ "methodName": "watch0"
743
+ }, {
744
+ "propName": "expanded",
745
+ "methodName": "watch1"
746
+ }, {
747
+ "propName": "_ref",
748
+ "methodName": "watch2"
749
+ }, {
750
+ "propName": "initialized",
751
+ "methodName": "watch2"
752
+ }, {
753
+ "propName": "_isMobile",
754
+ "methodName": "watch3"
755
+ }, {
756
+ "propName": "isSubNavigationExpanded",
757
+ "methodName": "watch3"
758
+ }, {
759
+ "propName": "_ref",
760
+ "methodName": "watch4"
761
+ }, {
762
+ "propName": "_menuRef",
763
+ "methodName": "watch4"
764
+ }, {
765
+ "propName": "_buttonRef",
766
+ "methodName": "watch4"
767
+ }, {
768
+ "propName": "hasPopup",
769
+ "methodName": "watch4"
770
+ }];
771
+ }
772
+ }