@db-ux/wc-core-components 4.5.4-table-c758ae7 → 4.5.4-tailwind-inline-5d37a00

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 (221) hide show
  1. package/README.md +11 -9
  2. package/dist/cjs/db-accordion-item.cjs.entry.js +3 -3
  3. package/dist/cjs/db-accordion.cjs.entry.js +2 -2
  4. package/dist/cjs/db-badge.cjs.entry.js +2 -2
  5. package/dist/cjs/db-brand.cjs.entry.js +2 -2
  6. package/dist/cjs/db-button.cjs.entry.js +2 -2
  7. package/dist/cjs/db-card.cjs.entry.js +3 -3
  8. package/dist/cjs/db-checkbox.cjs.entry.js +3 -3
  9. package/dist/cjs/db-custom-button.cjs.entry.js +3 -3
  10. package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +10 -10
  11. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +3 -3
  12. package/dist/cjs/db-custom-select.cjs.entry.js +6 -6
  13. package/dist/cjs/db-divider.cjs.entry.js +2 -2
  14. package/dist/cjs/db-drawer.cjs.entry.js +4 -4
  15. package/dist/cjs/db-header.cjs.entry.js +3 -3
  16. package/dist/cjs/db-icon.cjs.entry.js +2 -2
  17. package/dist/cjs/db-infotext.cjs.entry.js +2 -2
  18. package/dist/cjs/{db-table-caption.cjs.entry.js → db-link.cjs.entry.js} +7 -6
  19. package/dist/cjs/db-navigation-item.cjs.entry.js +2 -2
  20. package/dist/cjs/db-navigation.cjs.entry.js +3 -3
  21. package/dist/cjs/db-notification.cjs.entry.js +3 -3
  22. package/dist/cjs/db-page.cjs.entry.js +3 -3
  23. package/dist/cjs/db-popover.cjs.entry.js +3 -3
  24. package/dist/cjs/db-radio.cjs.entry.js +2 -2
  25. package/dist/cjs/db-section.cjs.entry.js +3 -3
  26. package/dist/cjs/db-select.cjs.entry.js +3 -3
  27. package/dist/cjs/db-stack.cjs.entry.js +3 -3
  28. package/dist/cjs/db-switch.cjs.entry.js +3 -3
  29. package/dist/cjs/db-tab-item_3.cjs.entry.js +7 -7
  30. package/dist/cjs/db-tabs.cjs.entry.js +3 -3
  31. package/dist/cjs/db-textarea.cjs.entry.js +3 -3
  32. package/dist/cjs/db-tooltip.cjs.entry.js +3 -3
  33. package/dist/cjs/db-ux.cjs.js +2 -2
  34. package/dist/cjs/{index-CSakRmZZ.js → index-EqJP9Qyt.js} +0 -21
  35. package/dist/cjs/index.cjs.js +1 -20
  36. package/dist/cjs/loader.cjs.js +2 -2
  37. package/dist/collection/collection-manifest.json +1 -9
  38. package/dist/collection/components/accordion/accordion.js +1 -1
  39. package/dist/collection/components/accordion-item/accordion-item.js +2 -2
  40. package/dist/collection/components/badge/badge.js +1 -1
  41. package/dist/collection/components/brand/brand.js +2 -2
  42. package/dist/collection/components/button/button.js +4 -4
  43. package/dist/collection/components/card/card.js +2 -2
  44. package/dist/collection/components/checkbox/checkbox.js +3 -3
  45. package/dist/collection/components/custom-button/custom-button.js +5 -5
  46. package/dist/collection/components/custom-select/custom-select.js +7 -7
  47. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +2 -2
  48. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +2 -2
  49. package/dist/collection/components/custom-select-list/custom-select-list.js +2 -2
  50. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +2 -2
  51. package/dist/collection/components/divider/divider.js +1 -1
  52. package/dist/collection/components/drawer/drawer.js +3 -3
  53. package/dist/collection/components/header/header.js +2 -2
  54. package/dist/collection/components/icon/icon.js +2 -2
  55. package/dist/collection/components/infotext/infotext.js +2 -2
  56. package/dist/collection/components/input/input.js +6 -6
  57. package/dist/collection/components/link/link.js +1 -1
  58. package/dist/collection/components/navigation/navigation.js +2 -2
  59. package/dist/collection/components/navigation-item/navigation-item.js +2 -2
  60. package/dist/collection/components/notification/notification.js +3 -3
  61. package/dist/collection/components/page/page.js +2 -2
  62. package/dist/collection/components/popover/popover.js +2 -2
  63. package/dist/collection/components/radio/radio.js +1 -1
  64. package/dist/collection/components/section/section.js +2 -2
  65. package/dist/collection/components/select/select.js +4 -4
  66. package/dist/collection/components/stack/stack.js +2 -2
  67. package/dist/collection/components/switch/switch.js +6 -6
  68. package/dist/collection/components/tab-item/tab-item.js +5 -5
  69. package/dist/collection/components/tab-list/tab-list.js +2 -2
  70. package/dist/collection/components/tab-panel/tab-panel.js +2 -2
  71. package/dist/collection/components/tabs/tabs.js +2 -2
  72. package/dist/collection/components/tag/tag.js +3 -3
  73. package/dist/collection/components/textarea/textarea.js +3 -3
  74. package/dist/collection/components/tooltip/tooltip.js +2 -2
  75. package/dist/collection/index.js +0 -16
  76. package/dist/collection/shared/model.js +1 -1
  77. package/dist/custom-elements.json +2660 -5671
  78. package/dist/db-ux/db-ux.esm.js +1 -1
  79. package/dist/db-ux/index.esm.js +1 -1
  80. package/dist/db-ux/p-05e9aa2e.entry.js +1 -0
  81. package/dist/db-ux/{p-7387346c.entry.js → p-19ae6336.entry.js} +1 -1
  82. package/dist/db-ux/{p-dbdfc04a.entry.js → p-2c30a356.entry.js} +1 -1
  83. package/dist/db-ux/p-2ed98454.entry.js +1 -0
  84. package/dist/db-ux/p-33443732.entry.js +1 -0
  85. package/dist/db-ux/{p-150c4aeb.entry.js → p-3ca07f53.entry.js} +1 -1
  86. package/dist/db-ux/{p-d603dcc4.entry.js → p-4a0870fa.entry.js} +1 -1
  87. package/dist/db-ux/{p-8f76eea7.entry.js → p-4f519859.entry.js} +1 -1
  88. package/dist/db-ux/{p-0055d6ce.entry.js → p-516c3f64.entry.js} +1 -1
  89. package/dist/db-ux/{p-6b87f6f1.entry.js → p-56da8875.entry.js} +1 -1
  90. package/dist/db-ux/p-58c6c29d.entry.js +1 -0
  91. package/dist/db-ux/{p-7da51a4c.entry.js → p-669fe992.entry.js} +1 -1
  92. package/dist/db-ux/{p-19fe0672.entry.js → p-72d1ea3b.entry.js} +1 -1
  93. package/dist/db-ux/{p-77ee580e.entry.js → p-7f6fae6f.entry.js} +1 -1
  94. package/dist/db-ux/{p-10acdb01.entry.js → p-83e69c0e.entry.js} +1 -1
  95. package/dist/db-ux/p-85897212.entry.js +1 -0
  96. package/dist/db-ux/p-8a521b05.entry.js +1 -0
  97. package/dist/db-ux/p-974fbc69.entry.js +1 -0
  98. package/dist/db-ux/{p-8baf5ea2.entry.js → p-a0f6fc10.entry.js} +1 -1
  99. package/dist/db-ux/p-a3aef74b.entry.js +1 -0
  100. package/dist/db-ux/{p-e367150f.entry.js → p-a726cd18.entry.js} +1 -1
  101. package/dist/db-ux/{p-54d2e18d.entry.js → p-aad2d524.entry.js} +1 -1
  102. package/dist/db-ux/{p-5e4de899.entry.js → p-b99e76fd.entry.js} +1 -1
  103. package/dist/db-ux/{p-823a7488.entry.js → p-bd1b0142.entry.js} +1 -1
  104. package/dist/db-ux/{p-032487d0.entry.js → p-c7d1bee4.entry.js} +1 -1
  105. package/dist/db-ux/p-cb093137.entry.js +1 -0
  106. package/dist/db-ux/{p-003f3468.entry.js → p-cdef6789.entry.js} +1 -1
  107. package/dist/db-ux/{p-e3279b61.entry.js → p-df2b1979.entry.js} +1 -1
  108. package/dist/db-ux/{p-e9058123.entry.js → p-f49ed233.entry.js} +1 -1
  109. package/dist/db-ux/{p-50a16969.entry.js → p-fc9fb7cd.entry.js} +1 -1
  110. package/dist/db-ux/{p-47bd992d.entry.js → p-fdbf8d91.entry.js} +1 -1
  111. package/dist/db-ux/p-kHKR5QG5.js +2 -0
  112. package/dist/esm/db-accordion-item.entry.js +3 -3
  113. package/dist/esm/db-accordion.entry.js +2 -2
  114. package/dist/esm/db-badge.entry.js +2 -2
  115. package/dist/esm/db-brand.entry.js +2 -2
  116. package/dist/esm/db-button.entry.js +2 -2
  117. package/dist/esm/db-card.entry.js +3 -3
  118. package/dist/esm/db-checkbox.entry.js +3 -3
  119. package/dist/esm/db-custom-button.entry.js +3 -3
  120. package/dist/esm/db-custom-select-dropdown_5.entry.js +10 -10
  121. package/dist/esm/db-custom-select-form-field.entry.js +3 -3
  122. package/dist/esm/db-custom-select.entry.js +6 -6
  123. package/dist/esm/db-divider.entry.js +2 -2
  124. package/dist/esm/db-drawer.entry.js +4 -4
  125. package/dist/esm/db-header.entry.js +3 -3
  126. package/dist/esm/db-icon.entry.js +2 -2
  127. package/dist/esm/db-infotext.entry.js +2 -2
  128. package/dist/esm/{db-table-caption.entry.js → db-link.entry.js} +8 -7
  129. package/dist/esm/db-navigation-item.entry.js +2 -2
  130. package/dist/esm/db-navigation.entry.js +3 -3
  131. package/dist/esm/db-notification.entry.js +3 -3
  132. package/dist/esm/db-page.entry.js +3 -3
  133. package/dist/esm/db-popover.entry.js +3 -3
  134. package/dist/esm/db-radio.entry.js +2 -2
  135. package/dist/esm/db-section.entry.js +3 -3
  136. package/dist/esm/db-select.entry.js +3 -3
  137. package/dist/esm/db-stack.entry.js +3 -3
  138. package/dist/esm/db-switch.entry.js +3 -3
  139. package/dist/esm/db-tab-item_3.entry.js +7 -7
  140. package/dist/esm/db-tabs.entry.js +3 -3
  141. package/dist/esm/db-textarea.entry.js +3 -3
  142. package/dist/esm/db-tooltip.entry.js +3 -3
  143. package/dist/esm/db-ux.js +3 -3
  144. package/dist/esm/{index-LpjjuLKB.js → index-kHKR5QG5.js} +0 -21
  145. package/dist/esm/index.js +2 -13
  146. package/dist/esm/loader.js +3 -3
  147. package/dist/types/components.d.ts +0 -278
  148. package/dist/types/index.d.ts +0 -16
  149. package/dist/types/shared/model.d.ts +2 -42
  150. package/dist/vscode.html-custom-data.json +2 -400
  151. package/dist/web-types.json +4 -692
  152. package/package.json +3 -3
  153. package/dist/cjs/db-link_4.cjs.entry.js +0 -220
  154. package/dist/cjs/db-table-body_3.cjs.entry.js +0 -173
  155. package/dist/cjs/db-table.cjs.entry.js +0 -136
  156. package/dist/collection/components/table/examples/data.js +0 -258
  157. package/dist/collection/components/table/index.js +0 -2
  158. package/dist/collection/components/table/model.js +0 -6
  159. package/dist/collection/components/table/table.js +0 -456
  160. package/dist/collection/components/table-body/index.js +0 -2
  161. package/dist/collection/components/table-body/model.js +0 -1
  162. package/dist/collection/components/table-body/table-body.js +0 -137
  163. package/dist/collection/components/table-caption/index.js +0 -2
  164. package/dist/collection/components/table-caption/model.js +0 -1
  165. package/dist/collection/components/table-caption/table-caption.js +0 -109
  166. package/dist/collection/components/table-data-cell/index.js +0 -2
  167. package/dist/collection/components/table-data-cell/model.js +0 -1
  168. package/dist/collection/components/table-data-cell/table-data-cell.js +0 -291
  169. package/dist/collection/components/table-footer/index.js +0 -2
  170. package/dist/collection/components/table-footer/model.js +0 -1
  171. package/dist/collection/components/table-footer/table-footer.js +0 -137
  172. package/dist/collection/components/table-head/index.js +0 -2
  173. package/dist/collection/components/table-head/model.js +0 -1
  174. package/dist/collection/components/table-head/table-head.js +0 -140
  175. package/dist/collection/components/table-header-cell/index.js +0 -2
  176. package/dist/collection/components/table-header-cell/model.js +0 -1
  177. package/dist/collection/components/table-header-cell/table-header-cell.js +0 -369
  178. package/dist/collection/components/table-row/index.js +0 -2
  179. package/dist/collection/components/table-row/model.js +0 -1
  180. package/dist/collection/components/table-row/table-row.js +0 -195
  181. package/dist/db-ux/p-2cdc1311.entry.js +0 -1
  182. package/dist/db-ux/p-33ca6422.entry.js +0 -1
  183. package/dist/db-ux/p-42e61221.entry.js +0 -1
  184. package/dist/db-ux/p-68a1d35a.entry.js +0 -1
  185. package/dist/db-ux/p-75005663.entry.js +0 -1
  186. package/dist/db-ux/p-7f2eaa8b.entry.js +0 -1
  187. package/dist/db-ux/p-8826c7fc.entry.js +0 -1
  188. package/dist/db-ux/p-97f5d48e.entry.js +0 -1
  189. package/dist/db-ux/p-LpjjuLKB.js +0 -2
  190. package/dist/db-ux/p-a8368ed2.entry.js +0 -1
  191. package/dist/db-ux/p-c0b8571d.entry.js +0 -1
  192. package/dist/db-ux/p-d20bd873.entry.js +0 -1
  193. package/dist/db-ux/p-e9142fec.entry.js +0 -1
  194. package/dist/esm/db-link_4.entry.js +0 -215
  195. package/dist/esm/db-table-body_3.entry.js +0 -169
  196. package/dist/esm/db-table.entry.js +0 -134
  197. package/dist/types/components/table/examples/data.d.ts +0 -9
  198. package/dist/types/components/table/index.d.ts +0 -2
  199. package/dist/types/components/table/model.d.ts +0 -74
  200. package/dist/types/components/table/table.d.ts +0 -37
  201. package/dist/types/components/table-body/index.d.ts +0 -2
  202. package/dist/types/components/table-body/model.d.ts +0 -8
  203. package/dist/types/components/table-body/table-body.d.ts +0 -19
  204. package/dist/types/components/table-caption/index.d.ts +0 -2
  205. package/dist/types/components/table-caption/model.d.ts +0 -5
  206. package/dist/types/components/table-caption/table-caption.d.ts +0 -18
  207. package/dist/types/components/table-data-cell/index.d.ts +0 -2
  208. package/dist/types/components/table-data-cell/model.d.ts +0 -5
  209. package/dist/types/components/table-data-cell/table-data-cell.d.ts +0 -25
  210. package/dist/types/components/table-footer/index.d.ts +0 -2
  211. package/dist/types/components/table-footer/model.d.ts +0 -8
  212. package/dist/types/components/table-footer/table-footer.d.ts +0 -19
  213. package/dist/types/components/table-head/index.d.ts +0 -2
  214. package/dist/types/components/table-head/model.d.ts +0 -10
  215. package/dist/types/components/table-head/table-head.d.ts +0 -58
  216. package/dist/types/components/table-header-cell/index.d.ts +0 -2
  217. package/dist/types/components/table-header-cell/model.d.ts +0 -24
  218. package/dist/types/components/table-header-cell/table-header-cell.d.ts +0 -28
  219. package/dist/types/components/table-row/index.d.ts +0 -2
  220. package/dist/types/components/table-row/model.d.ts +0 -30
  221. package/dist/types/components/table-row/table-row.d.ts +0 -23
@@ -1,195 +0,0 @@
1
- import { cls, getBooleanAsString, uuid } from "../../utils";
2
- import { h } from "@stencil/core";
3
- /**
4
- * @slot children - This is a default/unnamed slot
5
-
6
- */
7
- export class DBTableRow {
8
- getHeaderCell(cell) {
9
- if (cell.headerCell) {
10
- return cell;
11
- }
12
- return undefined;
13
- }
14
- /**
15
- * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
16
- * @param element the ref for the component
17
- * @param customElementSelector the custom element like `my-component`
18
- */
19
- enableAttributePassing(element, customElementSelector) {
20
- const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
21
- if (element && parent) {
22
- const attributes = parent.attributes;
23
- for (let i = 0; i < attributes.length; i++) {
24
- const attr = attributes.item(i);
25
- if (attr && attr.name !== 'data-density' &&
26
- (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
27
- element.setAttribute(attr.name, attr.value);
28
- parent.removeAttribute(attr.name);
29
- }
30
- else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
31
- element.setAttribute(attr.name, attr.value);
32
- parent.removeAttribute(attr.name);
33
- }
34
- else if (attr && attr.name === "class") {
35
- const isWebComponent = attr.value.includes("hydrated");
36
- const value = attr.value.replace("hydrated", "").trim();
37
- const currentClass = element.getAttribute("class");
38
- element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
39
- if (isWebComponent) {
40
- // Stencil is using this class for lazy loading component
41
- parent.setAttribute("class", "hydrated");
42
- }
43
- else {
44
- parent.removeAttribute(attr.name);
45
- }
46
- }
47
- }
48
- }
49
- }
50
- componentDidLoad() {
51
- this.enableAttributePassing(this._ref, "db-table-row");
52
- }
53
- render() {
54
- var _a;
55
- return (h("tr", { key: '0826ccfb6e11937280649f6b59263676e8f5f668', class: cls("db-table-row", this.className), ref: (el) => {
56
- this._ref = el;
57
- }, id: this.id, "data-interactive": getBooleanAsString(this.interactive), "data-sub-header-emphasis": this.subHeaderEmphasis }, this.cells ? ((_a = this.cells) === null || _a === void 0 ? void 0 : _a.map((cell, index) => {
58
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20;
59
- return cell.headerCell ? (h("db-table-header-cell", { class: (_a = cell.className) !== null && _a !== void 0 ? _a : cell.class, key: `${(_b = this.id) !== null && _b !== void 0 ? _b : uuid()}-table-row-header-cell-${index}`, id: cell.id, abbr: (_c = this.getHeaderCell(cell)) === null || _c === void 0 ? void 0 : _c.abbr, scope: (_d = this.getHeaderCell(cell)) === null || _d === void 0 ? void 0 : _d.scope, noText: (_e = this.getHeaderCell(cell)) === null || _e === void 0 ? void 0 : _e.noText, horizontalAlignment: cell.horizontalAlignment, verticalAlignment: cell.verticalAlignment, headers: cell.headers, colSpan: cell.colSpan, colspan: cell.colspan, rowSpan: cell.rowSpan, rowspan: cell.rowspan }, cell.link ? (h("db-link", { class: (_g = (_f = cell.link) === null || _f === void 0 ? void 0 : _f.className) !== null && _g !== void 0 ? _g : (_h = cell.link) === null || _h === void 0 ? void 0 : _h.class, content: (_j = cell.link) === null || _j === void 0 ? void 0 : _j.content, size: (_k = cell.link) === null || _k === void 0 ? void 0 : _k.size, variant: (_l = cell.link) === null || _l === void 0 ? void 0 : _l.variant, id: (_m = cell.link) === null || _m === void 0 ? void 0 : _m.id, autofocus: (_o = cell.link) === null || _o === void 0 ? void 0 : _o.autofocus, disabled: (_p = cell.link) === null || _p === void 0 ? void 0 : _p.disabled, href: (_q = cell.link) === null || _q === void 0 ? void 0 : _q.href, hreflang: (_r = cell.link) === null || _r === void 0 ? void 0 : _r.hreflang, target: (_s = cell.link) === null || _s === void 0 ? void 0 : _s.target, rel: (_t = cell.link) === null || _t === void 0 ? void 0 : _t.rel, referrerPolicy: (_u = cell.link) === null || _u === void 0 ? void 0 : _u.referrerPolicy, role: (_v = cell.link) === null || _v === void 0 ? void 0 : _v.role, showIcon: (_w = cell.link) === null || _w === void 0 ? void 0 : _w.showIcon, text: (_x = cell.link) === null || _x === void 0 ? void 0 : _x.text, wrap: (_y = cell.link) === null || _y === void 0 ? void 0 : _y.wrap }, (_z = cell.link) === null || _z === void 0 ? void 0 : _z.children)) : (cell.content))) : (h("db-table-data-cell", { class: (_0 = cell.className) !== null && _0 !== void 0 ? _0 : cell.class, key: `${(_1 = this.id) !== null && _1 !== void 0 ? _1 : uuid()}-table-row-data-cell-${index}`, id: cell.id, horizontalAlignment: cell.horizontalAlignment, verticalAlignment: cell.verticalAlignment, headers: cell.headers, colSpan: cell.colSpan, colspan: cell.colspan, rowSpan: cell.rowSpan, rowspan: cell.rowspan }, cell.link ? (h("db-link", { class: (_3 = (_2 = cell.link) === null || _2 === void 0 ? void 0 : _2.className) !== null && _3 !== void 0 ? _3 : (_4 = cell.link) === null || _4 === void 0 ? void 0 : _4.class, content: (_5 = cell.link) === null || _5 === void 0 ? void 0 : _5.content, size: (_6 = cell.link) === null || _6 === void 0 ? void 0 : _6.size, variant: (_7 = cell.link) === null || _7 === void 0 ? void 0 : _7.variant, id: (_8 = cell.link) === null || _8 === void 0 ? void 0 : _8.id, autofocus: (_9 = cell.link) === null || _9 === void 0 ? void 0 : _9.autofocus, disabled: (_10 = cell.link) === null || _10 === void 0 ? void 0 : _10.disabled, href: (_11 = cell.link) === null || _11 === void 0 ? void 0 : _11.href, hreflang: (_12 = cell.link) === null || _12 === void 0 ? void 0 : _12.hreflang, target: (_13 = cell.link) === null || _13 === void 0 ? void 0 : _13.target, rel: (_14 = cell.link) === null || _14 === void 0 ? void 0 : _14.rel, referrerPolicy: (_15 = cell.link) === null || _15 === void 0 ? void 0 : _15.referrerPolicy, role: (_16 = cell.link) === null || _16 === void 0 ? void 0 : _16.role, showIcon: (_17 = cell.link) === null || _17 === void 0 ? void 0 : _17.showIcon, text: (_18 = cell.link) === null || _18 === void 0 ? void 0 : _18.text, wrap: (_19 = cell.link) === null || _19 === void 0 ? void 0 : _19.wrap }, (_20 = cell.link) === null || _20 === void 0 ? void 0 : _20.children)) : (cell.content)));
60
- })) : (h("slot", null))));
61
- }
62
- static get is() { return "db-table-row"; }
63
- static get properties() {
64
- return {
65
- "id": {
66
- "type": "string",
67
- "mutable": false,
68
- "complexType": {
69
- "original": "DBTableRowProps[\"id\"]",
70
- "resolved": "string",
71
- "references": {
72
- "DBTableRowProps": {
73
- "location": "import",
74
- "path": "./model",
75
- "id": "src/components/table-row/model.ts::DBTableRowProps",
76
- "referenceLocation": "DBTableRowProps"
77
- }
78
- }
79
- },
80
- "required": false,
81
- "optional": false,
82
- "docs": {
83
- "tags": [],
84
- "text": ""
85
- },
86
- "getter": false,
87
- "setter": false,
88
- "reflect": false,
89
- "attribute": "id"
90
- },
91
- "className": {
92
- "type": "string",
93
- "mutable": false,
94
- "complexType": {
95
- "original": "DBTableRowProps[\"className\"]",
96
- "resolved": "string",
97
- "references": {
98
- "DBTableRowProps": {
99
- "location": "import",
100
- "path": "./model",
101
- "id": "src/components/table-row/model.ts::DBTableRowProps",
102
- "referenceLocation": "DBTableRowProps"
103
- }
104
- }
105
- },
106
- "required": false,
107
- "optional": false,
108
- "docs": {
109
- "tags": [],
110
- "text": ""
111
- },
112
- "getter": false,
113
- "setter": false,
114
- "reflect": false,
115
- "attribute": "classname"
116
- },
117
- "interactive": {
118
- "type": "any",
119
- "mutable": false,
120
- "complexType": {
121
- "original": "DBTableRowProps[\"interactive\"]",
122
- "resolved": "boolean | string",
123
- "references": {
124
- "DBTableRowProps": {
125
- "location": "import",
126
- "path": "./model",
127
- "id": "src/components/table-row/model.ts::DBTableRowProps",
128
- "referenceLocation": "DBTableRowProps"
129
- }
130
- }
131
- },
132
- "required": false,
133
- "optional": false,
134
- "docs": {
135
- "tags": [],
136
- "text": ""
137
- },
138
- "getter": false,
139
- "setter": false,
140
- "reflect": false,
141
- "attribute": "interactive"
142
- },
143
- "subHeaderEmphasis": {
144
- "type": "string",
145
- "mutable": false,
146
- "complexType": {
147
- "original": "DBTableRowProps[\"subHeaderEmphasis\"]",
148
- "resolved": "\"none\" | \"strong\" | \"weak\"",
149
- "references": {
150
- "DBTableRowProps": {
151
- "location": "import",
152
- "path": "./model",
153
- "id": "src/components/table-row/model.ts::DBTableRowProps",
154
- "referenceLocation": "DBTableRowProps"
155
- }
156
- }
157
- },
158
- "required": false,
159
- "optional": false,
160
- "docs": {
161
- "tags": [],
162
- "text": ""
163
- },
164
- "getter": false,
165
- "setter": false,
166
- "reflect": false,
167
- "attribute": "sub-header-emphasis"
168
- },
169
- "cells": {
170
- "type": "unknown",
171
- "mutable": false,
172
- "complexType": {
173
- "original": "DBTableRowProps[\"cells\"]",
174
- "resolved": "DBTableRowCell[]",
175
- "references": {
176
- "DBTableRowProps": {
177
- "location": "import",
178
- "path": "./model",
179
- "id": "src/components/table-row/model.ts::DBTableRowProps",
180
- "referenceLocation": "DBTableRowProps"
181
- }
182
- }
183
- },
184
- "required": false,
185
- "optional": false,
186
- "docs": {
187
- "tags": [],
188
- "text": ""
189
- },
190
- "getter": false,
191
- "setter": false
192
- }
193
- };
194
- }
195
- }
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-LpjjuLKB.js";import{c as t,g as s}from"./p-xkoBSP8R.js";const d=class{constructor(a){e(this,a),this.fontsLoaded=!1}enableAttributePassing(e,a){const t=null==e?void 0:e.closest(a);if(e&&t){const a=t.attributes;for(let s=0;s<a.length;s++){const d=a.item(s);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))e.setAttribute(d.name,d.value),t.removeAttribute(d.name);else if(d&&"data-density"!==d.name&&"class"!==d.name&&"style"===d.name)e.setAttribute(d.name,d.value),t.removeAttribute(d.name);else if(d&&"class"===d.name){const a=d.value.includes("hydrated"),s=d.value.replace("hydrated","").trim(),i=e.getAttribute("class");e.setAttribute(d.name,`${i?`${i} `:""}${s}`),a?t.setAttribute("class","hydrated"):t.removeAttribute(d.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-page"),this.fontsLoaded=!this.fadeIn,document&&this.fadeIn?document.fonts.ready.then((()=>{this.fontsLoaded=!0})):this.fontsLoaded=!0}disconnectedCallback(){"undefined"!=typeof window&&document.documentElement.classList.contains("db-page-document")&&document.documentElement.classList.remove("db-page-document")}render(){var e,d;return a("div",{key:"3ab3a293a869c9d557e8998e8d523a999b50f582",class:t("db-page",this.className),ref:e=>{this._ref=e},id:null!==(e=this.id)&&void 0!==e?e:null===(d=this.propOverrides)||void 0===d?void 0:d.id,"data-variant":this.variant,"data-fade-in":s(this.fadeIn),"data-fonts-loaded":s(this.fontsLoaded)},a("slot",{key:"d4ad87f9642d0be01271e3cc31389083893b5b12",name:"header"}),a("main",{key:"74d35e61900006b8996e91236a8f8aa56b50a571",class:t("db-main",this.mainClass)},a("slot",{key:"a41b05ab87cfee50527ce033cdde32664219a830"})),a("slot",{key:"6612f687f66f6382366ce97eb50c17f905ebecdf",name:"footer"}))}};export{d as db_page}
@@ -1 +0,0 @@
1
- import{r as e,c as a,h as d}from"./p-LpjjuLKB.js";import{p as t}from"./p-BdL-nI5y.js";import{a as s,e as c,c as i}from"./p-xkoBSP8R.js";import{i as b}from"./p-BuBrj57D.js";import"./p-DOPXnIzL.js";const n=class{constructor(d){e(this,d),this.toggle=a(this,"toggle"),this.initialized=!1,this.forcedToMobile=!1}handleToggle(e){e&&e.stopPropagation&&e.stopPropagation();const a=!c(this.drawerOpen,"drawerOpen");this.toggle&&this.toggle.emit(a)}handleNavigationItemClick(e){b(e)&&this.handleToggle()}enableAttributePassing(e,a){const d=null==e?void 0:e.closest(a);if(e&&d){const a=d.attributes;for(let t=0;t<a.length;t++){const s=a.item(t);if(s&&"data-density"!==s.name&&(s.name.startsWith("data-")||s.name.startsWith("aria-")))e.setAttribute(s.name,s.value),d.removeAttribute(s.name);else if(s&&"data-density"!==s.name&&"class"!==s.name&&"style"===s.name)e.setAttribute(s.name,s.value),d.removeAttribute(s.name);else if(s&&"class"===s.name){const a=s.value.includes("hydrated"),t=s.value.replace("hydrated","").trim(),c=e.getAttribute("class");e.setAttribute(s.name,`${c?`${c} `:""}${t}`),a?d.setAttribute("class","hydrated"):d.removeAttribute(s.name)}}}}watch0Fn(){this.initialized&&this._ref&&this.forceMobile&&(s(this._ref,{key:"data-force-mobile",value:"true"}),this.forcedToMobile=!0)}watch0(){this.watch0Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-header"),this.initialized=!0,this.watch0Fn()}render(){var e,a,s;return d("header",{key:"8e54210db9b89732d6405bbe8bcdbfe1151b9731",class:i("db-header",this.className),ref:e=>{this._ref=e},id:null!==(e=this.id)&&void 0!==e?e:null===(a=this.propOverrides)||void 0===a?void 0:a.id,"data-width":this.width,"data-on-forcing-mobile":this.forceMobile&&!this.forcedToMobile},d("db-drawer",{key:"ce22e304d9c36200d421aee13ff70316fdba442f",class:"db-header-drawer",spacing:"small",rounded:!0,closeButtonId:this.closeButtonId,closeButtonText:this.closeButtonText,open:c(this.drawerOpen),onClose:()=>this.handleToggle()},d("div",{key:"908307e3c05e5ca675112a6e3c87b1e4d7fed751",class:"db-header-drawer-navigation"},d("div",{key:"da6c85a149b09733bab2e51fed341b16282577a1",class:"db-header-navigation",onClick:e=>this.handleNavigationItemClick(e)},d("slot",{key:"f0092c3f841c796acc940c70772731964b2f44c0"})),d("div",{key:"7afc8e437343327f5707f45be0a2fd5e03e58a29",class:"db-header-meta-navigation"},d("slot",{key:"08a7c6500bd59a860242ebe17b71fdc3cc303b33",name:"metaNavigation"}))),d("div",{key:"2e49cc794f28e3d25c2bcdd5d7e857ade2127e11",class:"db-header-secondary-action"},d("slot",{key:"7877c1166d58fc228236d1279720cfc16c496b72",name:"secondaryAction"}))),d("div",{key:"9b2c8ad3b231d6b98b72dd10c7d6961770c203e6",class:"db-header-meta-navigation"},d("slot",{key:"d8a56e3c478fc665aebd6e450cf84a3bb319f73a",name:"metaNavigation"})),d("div",{key:"3ea89f132a57326a968a9d9def0077aa6e9124c7",class:"db-header-navigation-bar"},d("div",{key:"5f24251272645917aec75d4a4eed962bb93bf72f",class:"db-header-brand-container"},d("slot",{key:"0f484f8b46d50841d081ffcd859a5eacedd021b3",name:"brand"})),d("div",{key:"05e28c8261c3957f27e72ef79e184261035f0954",class:"db-header-navigation-container"},d("div",{key:"bf013bb85f2cd6bee2544237c6888325ba14ab1a",class:"db-header-navigation"},d("slot",{key:"9fad72ee7f7be86eb8c3ff58b8d1351e7def044e"})),d("div",{key:"b859a359c3a9f579b3dd57b74cc0c28d1d2f8f99",class:"db-header-primary-action"},d("slot",{key:"25382acb1f778a4f2064c27219c41a3da4238007",name:"primaryAction"}))),d("div",{key:"beccb5ee836518231ca9d99daa2d6a1a881ce3b9",class:"db-header-action-container"},d("div",{key:"fa85b7a06a88ef94746974734083ad92d7e0a7d0",class:"db-header-burger-menu-container"},d("db-button",{key:"b7c80b7e1e2ebe798f7815236444280a672338d4",icon:"menu",variant:"ghost",noText:!0,onClick:()=>this.handleToggle()},null!==(s=this.burgerMenuLabel)&&void 0!==s?s:t)),d("div",{key:"1bb4dd0e6bf32dd922e4eb28ffb2b632637a1be7",class:"db-header-secondary-action"},d("slot",{key:"42fd8c627f309e901ca8d07442a5a1c5f8776288",name:"secondaryAction"})))))}static get watchers(){return{initialized:[{watch0:0}],_ref:[{watch0:0}]}}};export{n as db_header}
@@ -1 +0,0 @@
1
- import{r as i,h as l}from"./p-LpjjuLKB.js";import{g as t,c as d,u as a,f as s}from"./p-xkoBSP8R.js";const e=class{constructor(l){i(this,l)}enableAttributePassing(i,l){const t=null==i?void 0:i.closest(l);if(i&&t){const l=t.attributes;for(let d=0;d<l.length;d++){const a=l.item(d);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))i.setAttribute(a.name,a.value),t.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)i.setAttribute(a.name,a.value),t.removeAttribute(a.name);else if(a&&"class"===a.name){const l=a.value.includes("hydrated"),d=a.value.replace("hydrated","").trim(),s=i.getAttribute("class");i.setAttribute(a.name,`${s?`${s} `:""}${d}`),l?t.setAttribute("class","hydrated"):t.removeAttribute(a.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-link")}render(){var i,a,s,e;return l("a",{key:"9cecd89fae35481cbc053fd253fc75140f8e57a1",class:d("db-link",this.className),ref:i=>{this._ref=i},id:null!==(i=this.id)&&void 0!==i?i:null===(a=this.propOverrides)||void 0===a?void 0:a.id,href:this.href,target:this.target,rel:this.rel,role:this.role,referrerPolicy:null!==(s=this.referrerpolicy)&&void 0!==s?s:this.referrerPolicy,hrefLang:this.hreflang,"aria-disabled":t(this.disabled),tabIndex:this.disabled?-1:0,"data-size":this.size,"data-show-icon-trailing":t(null===(e=this.showIcon)||void 0===e||e),"data-variant":this.variant,"data-content":this.content||"internal","data-wrap":t(this.wrap)},this.text?this.text:l("slot",null))}},o=class{constructor(l){i(this,l)}getHeaderCell(i){if(i.headerCell)return i}enableAttributePassing(i,l){const t=null==i?void 0:i.closest(l);if(i&&t){const l=t.attributes;for(let d=0;d<l.length;d++){const a=l.item(d);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))i.setAttribute(a.name,a.value),t.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)i.setAttribute(a.name,a.value),t.removeAttribute(a.name);else if(a&&"class"===a.name){const l=a.value.includes("hydrated"),d=a.value.replace("hydrated","").trim(),s=i.getAttribute("class");i.setAttribute(a.name,`${s?`${s} `:""}${d}`),l?t.setAttribute("class","hydrated"):t.removeAttribute(a.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-table-row")}render(){var i;return l("tr",{key:"0826ccfb6e11937280649f6b59263676e8f5f668",class:d("db-table-row",this.className),ref:i=>{this._ref=i},id:this.id,"data-interactive":t(this.interactive),"data-sub-header-emphasis":this.subHeaderEmphasis},this.cells?null===(i=this.cells)||void 0===i?void 0:i.map(((i,t)=>{var d,s,e,o,n,r,v,c,h,u,b,f,y,p,g,m,w,$,k,S,_,A,P,x,z,L,j,D,I,B,C,H,K,R,T,q,E,F,G,J,M,N,O,Q,U;return i.headerCell?l("db-table-header-cell",{class:null!==(d=i.className)&&void 0!==d?d:i.class,key:`${null!==(s=this.id)&&void 0!==s?s:a()}-table-row-header-cell-${t}`,id:i.id,abbr:null===(e=this.getHeaderCell(i))||void 0===e?void 0:e.abbr,scope:null===(o=this.getHeaderCell(i))||void 0===o?void 0:o.scope,noText:null===(n=this.getHeaderCell(i))||void 0===n?void 0:n.noText,horizontalAlignment:i.horizontalAlignment,verticalAlignment:i.verticalAlignment,headers:i.headers,colSpan:i.colSpan,colspan:i.colspan,rowSpan:i.rowSpan,rowspan:i.rowspan},i.link?l("db-link",{class:null!==(v=null===(r=i.link)||void 0===r?void 0:r.className)&&void 0!==v?v:null===(c=i.link)||void 0===c?void 0:c.class,content:null===(h=i.link)||void 0===h?void 0:h.content,size:null===(u=i.link)||void 0===u?void 0:u.size,variant:null===(b=i.link)||void 0===b?void 0:b.variant,id:null===(f=i.link)||void 0===f?void 0:f.id,autofocus:null===(y=i.link)||void 0===y?void 0:y.autofocus,disabled:null===(p=i.link)||void 0===p?void 0:p.disabled,href:null===(g=i.link)||void 0===g?void 0:g.href,hreflang:null===(m=i.link)||void 0===m?void 0:m.hreflang,target:null===(w=i.link)||void 0===w?void 0:w.target,rel:null===($=i.link)||void 0===$?void 0:$.rel,referrerPolicy:null===(k=i.link)||void 0===k?void 0:k.referrerPolicy,role:null===(S=i.link)||void 0===S?void 0:S.role,showIcon:null===(_=i.link)||void 0===_?void 0:_.showIcon,text:null===(A=i.link)||void 0===A?void 0:A.text,wrap:null===(P=i.link)||void 0===P?void 0:P.wrap},null===(x=i.link)||void 0===x?void 0:x.children):i.content):l("db-table-data-cell",{class:null!==(z=i.className)&&void 0!==z?z:i.class,key:`${null!==(L=this.id)&&void 0!==L?L:a()}-table-row-data-cell-${t}`,id:i.id,horizontalAlignment:i.horizontalAlignment,verticalAlignment:i.verticalAlignment,headers:i.headers,colSpan:i.colSpan,colspan:i.colspan,rowSpan:i.rowSpan,rowspan:i.rowspan},i.link?l("db-link",{class:null!==(D=null===(j=i.link)||void 0===j?void 0:j.className)&&void 0!==D?D:null===(I=i.link)||void 0===I?void 0:I.class,content:null===(B=i.link)||void 0===B?void 0:B.content,size:null===(C=i.link)||void 0===C?void 0:C.size,variant:null===(H=i.link)||void 0===H?void 0:H.variant,id:null===(K=i.link)||void 0===K?void 0:K.id,autofocus:null===(R=i.link)||void 0===R?void 0:R.autofocus,disabled:null===(T=i.link)||void 0===T?void 0:T.disabled,href:null===(q=i.link)||void 0===q?void 0:q.href,hreflang:null===(E=i.link)||void 0===E?void 0:E.hreflang,target:null===(F=i.link)||void 0===F?void 0:F.target,rel:null===(G=i.link)||void 0===G?void 0:G.rel,referrerPolicy:null===(J=i.link)||void 0===J?void 0:J.referrerPolicy,role:null===(M=i.link)||void 0===M?void 0:M.role,showIcon:null===(N=i.link)||void 0===N?void 0:N.showIcon,text:null===(O=i.link)||void 0===O?void 0:O.text,wrap:null===(Q=i.link)||void 0===Q?void 0:Q.wrap},null===(U=i.link)||void 0===U?void 0:U.children):i.content)})):l("slot",null))}},n=class{constructor(l){i(this,l)}enableAttributePassing(i,l){const t=null==i?void 0:i.closest(l);if(i&&t){const l=t.attributes;for(let d=0;d<l.length;d++){const a=l.item(d);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))i.setAttribute(a.name,a.value),t.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)i.setAttribute(a.name,a.value),t.removeAttribute(a.name);else if(a&&"class"===a.name){const l=a.value.includes("hydrated"),d=a.value.replace("hydrated","").trim(),s=i.getAttribute("class");i.setAttribute(a.name,`${s?`${s} `:""}${d}`),l?t.setAttribute("class","hydrated"):t.removeAttribute(a.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-table-header-cell")}render(){return l("th",{key:"8e4041b823d5a1e31e92992eb9233bc75e6f0db9",class:d("db-table-header-cell",this.className),ref:i=>{this._ref=i},id:this.id,"data-horizontal-alignment":this.horizontalAlignment,"data-vertical-alignment":this.verticalAlignment,"data-no-text":t(this.noText),scope:this.scope,colSpan:s(this.colSpan,this.colspan),rowSpan:s(this.rowSpan,this.rowspan),headers:this.headers,abbr:this.abbr},l("slot",{key:"a78d87d22ead57dbb4a97175da963028fa603a39"}))}},r=class{constructor(l){i(this,l)}enableAttributePassing(i,l){const t=null==i?void 0:i.closest(l);if(i&&t){const l=t.attributes;for(let d=0;d<l.length;d++){const a=l.item(d);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))i.setAttribute(a.name,a.value),t.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)i.setAttribute(a.name,a.value),t.removeAttribute(a.name);else if(a&&"class"===a.name){const l=a.value.includes("hydrated"),d=a.value.replace("hydrated","").trim(),s=i.getAttribute("class");i.setAttribute(a.name,`${s?`${s} `:""}${d}`),l?t.setAttribute("class","hydrated"):t.removeAttribute(a.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-table-data-cell")}render(){return l("td",{key:"8274250200fc80a6dd6df6d337b397930c665e18",class:d("db-table-data-cell",this.className),ref:i=>{this._ref=i},id:this.id,"data-horizontal-alignment":this.horizontalAlignment,"data-vertical-alignment":this.verticalAlignment,colSpan:s(this.colSpan,this.colspan),rowSpan:s(this.rowSpan,this.rowspan),headers:this.headers},l("slot",{key:"15e1f9e5492c105d953fb8f4ec272f3c8853b318"}))}};export{e as db_link,r as db_table_data_cell,n as db_table_header_cell,o as db_table_row}
@@ -1 +0,0 @@
1
- import{r as i,c as t,h as s,F as h}from"./p-LpjjuLKB.js";import{l as e,a as l,m as a,f as o,g as d,h as n,e as c,d as v,i as r,o as u,k as w,c as f,s as b}from"./p-BdL-nI5y.js";import{h as m,d as p,s as y,m as g,u as k,g as F,e as A,l as D,c as x}from"./p-xkoBSP8R.js";import{D as C}from"./p-D_roHmuC.js";import{D as L}from"./p-CHLgQ9vn.js";import{a as S}from"./p-DOPXnIzL.js";import{b as I}from"./p-D5mInaY7.js";const R=class{constructor(s){i(this,s),this.amountChange=t(this,"amountChange"),this.dropdownToggle=t(this,"dropdownToggle"),this.optionSelected=t(this,"optionSelected"),this.search=t(this,"search"),this.showClearSelection=!0,this.clearSelectionText="Clear selection",this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._selectId=void 0,this._labelId=void 0,this._summaryId=void 0,this._placeholderId=void 0,this._infoTextId=void 0,this._validity="no-validation",this._userInteraction=!1,this.abortController=void 0,this._descByIds=void 0,this._selectedLabels="",this._selectedLabelsId=void 0,this._voiceOverFallback="",this._selectedOptions=[],this.selectAllEnabled=!1,this.searchEnabled=!1,this.amountOptions=0,this._values=[],this._options=[],this._hasNoOptions=!1,this._documentClickListenerCallbackId=void 0,this._internalChangeTimestamp=0,this._documentScrollListenerCallbackId=void 0,this._observer=void 0,this._searchValue=void 0,this.selectAllChecked=!1,this.selectAllIndeterminate=!1,this.satisfyReact=function(i){i.stopPropagation()}}handleDocumentScroll(i){var t,s;(null===(t=null==i?void 0:i.target)||void 0===t?void 0:t.contains)&&(null===(s=null==i?void 0:i.target)||void 0===s?void 0:s.contains(this.detailsRef))&&this.handleAutoPlacement()}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,t,s,h,l,a,o,d;this.selectRef&&(this.selectRef.value=this.getNativeSelectValue()),(null===(i=this.selectRef)||void 0===i?void 0:i.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(h=this.selectRef)||void 0===h?void 0:h.validity.valid)&&this.required?(this.setDescById(this._validMessageId),m()&&(this._voiceOverFallback=null!==(l=this.validMessage)&&void 0!==l?l:w,p((()=>this._voiceOverFallback=""),1e3)),this._validity=null!==(a=this.validation)&&void 0!==a?a:"valid"):y(this.message,this.showMessage)?(this.setDescById(this._messageId),this._validity=null!==(o=this.validation)&&void 0!==o?o:"no-validation"):(this.setDescById(this._placeholderId),this._validity=null!==(d=this.validation)&&void 0!==d?d:"no-validation"):(this.setDescById(this._invalidMessageId),this._invalidMessage=this.invalidMessage||(null===(t=this.selectRef)||void 0===t?void 0:t.validationMessage)||e,m()&&(this._voiceOverFallback=this._invalidMessage,p((()=>this._voiceOverFallback=""),1e3)),this._userInteraction&&(this._validity=null!==(s=this.validation)&&void 0!==s?s:"invalid"))}handleDropdownToggle(i){var t,s;this.dropdownToggle&&(i.stopPropagation(),this.dropdownToggle.emit(i)),i.target instanceof HTMLDetailsElement&&i.target.open?(this._documentClickListenerCallbackId=(new C).addCallback((i=>this.handleDocumentClose(i))),this._documentScrollListenerCallbackId=(new L).addCallback((i=>this.handleDocumentScroll(i))),this.handleAutoPlacement(),null===(t=this._observer)||void 0===t||t.observe(this.detailsRef),i.target.dataset.test||this.handleOpenByKeyboardFocus()):(this._documentClickListenerCallbackId&&(new C).removeCallback(this._documentClickListenerCallbackId),this._documentScrollListenerCallbackId&&(new L).removeCallback(this._documentScrollListenerCallbackId),null===(s=this._observer)||void 0===s||s.unobserve(this.detailsRef))}getNativeSelectValue(){var i,t;return(null===(i=this._values)||void 0===i?void 0:i.length)&&null!==(t=this._values.at(0))&&void 0!==t?t:""}setDescById(i){var t;const s=[];i&&s.push(i),this._selectedLabelsId&&(null===(t=this._selectedLabels)||void 0===t?void 0:t.length)&&s.push(this._selectedLabelsId),this._descByIds=s.join(" ")}getSelectAllLabel(){var i;return null!==(i=this.selectAllLabel)&&void 0!==i?i:l}getOptionLabel(i){var t,s,h;return null!==(h=null!==(t=i.label)&&void 0!==t?t:null===(s=i.value)||void 0===s?void 0:s.toString())&&void 0!==h?h:""}getOptionChecked(i){var t,s;return!(!i||!(null===(t=this._values)||void 0===t?void 0:t.includes))&&(null===(s=this._values)||void 0===s?void 0:s.includes(i))}getTagRemoveLabel(i){const t=this.removeTagsTexts,s=this.options;if(t&&s){const h=s.findIndex((t=>t.value===i.value));if(h>=0&&h<t.length)return t[h]}return`${a} ${this.getOptionLabel(i)}`}handleTagRemove(i,t){t&&t.stopPropagation(),this.handleSelect(i.value),this.handleSummaryFocus()}handleAutoPlacement(){if(this.detailsRef){const i=this.detailsRef.querySelector("article");i&&p((()=>{var t;S(i,this.detailsRef,null!==(t=this.placement)&&void 0!==t?t:"bottom")}),1)}}handleArrowDownUp(i){var t,s,h;if(null===(t=this.detailsRef)||void 0===t?void 0:t.open){if(self.document){const t=self.document.activeElement;if(t)if("checkbox"===t.getAttribute("type")||"radio"===t.getAttribute("type")){const e=null==t?void 0:t.closest("li");if("ArrowDown"===i.key||"ArrowRight"===i.key){let i=null==e?void 0:e.nextElementSibling;for(;i;){const t=i.querySelector("input");if(t){t.focus();break}i=i.nextElementSibling}i||this.handleFocusFirstDropdownCheckbox(t)}else{let i=null==e?void 0:e.previousElementSibling;for(;i;){const t=i.querySelector("input");if(t){t.focus();break}i=i.previousElementSibling}if(!i){const i=this.detailsRef.querySelector('input[type="checkbox"]');if(i&&i!==t)this.handleFocusFirstDropdownCheckbox(t);else{const i=g(this.detailsRef);if(i)p((()=>{i.focus()}),100);else{const i=Array.from(null===(s=this.detailsRef)||void 0===s?void 0:s.querySelectorAll('input[type="checkbox"],input[type="radio"]'));i.length&&(null===(h=i.at(-1))||void 0===h||h.focus())}}}}}else"search"!==t.getAttribute("type")||"ArrowUp"!==i.key&&"ArrowLeft"!==i.key?this.handleFocusFirstDropdownCheckbox(t):(this.handleClose(void 0,!0),this.handleSummaryFocus())}}else"ArrowDown"!==i.key&&"ArrowRight"!==i.key||(this.handleAutoPlacement(),this.detailsRef&&(this.detailsRef.open=!0),this.handleOpenByKeyboardFocus());i.stopPropagation(),i.preventDefault()}handleKeyboardPress(i){var t,s,h;if(i.stopPropagation(),"Escape"===i.key&&(null===(t=this.detailsRef)||void 0===t?void 0:t.open))this.handleClose(void 0,!0),this.handleSummaryFocus();else if("Enter"===i.key&&(null===(s=this.detailsRef)||void 0===s?void 0:s.open)){if(self.document){const t=self.document.activeElement;if(["checkbox","radio"].includes(t.getAttribute("type")||""))t.click(),i.preventDefault();else if("search"===t.getAttribute("type")){const t=null===(h=this._options)||void 0===h?void 0:h.find((i=>!i.isGroupTitle&&!i.disabled));(null==t?void 0:t.value)&&(this.handleSelect(t.value),i.preventDefault())}}}else"ArrowDown"!==i.key&&"ArrowUp"!==i.key&&"ArrowLeft"!==i.key&&"ArrowRight"!==i.key||this.handleArrowDownUp(i)}handleClose(i,t){if(this.detailsRef)if(t)this.detailsRef.open=!1,this.handleSummaryFocus();else if(this.detailsRef.open&&i&&i.relatedTarget){const t=i.relatedTarget;this.detailsRef.contains(t)||"dialog"===t.localName||p((()=>this.detailsRef.open=!1),1)}}handleDocumentClose(i){var t,s;if(i){const h="number"==typeof i.detail?i.target:null===(t=i.detail)||void 0===t?void 0:t.target;(null===(s=this.detailsRef)||void 0===s?void 0:s.open)&&!this.detailsRef.contains(h)&&(this.detailsRef.open=!1)}}handleOptionSelected(i){(new Date).getTime()-this._internalChangeTimestamp<200||(this._values=i,this._userInteraction=!0,this.optionSelected&&this.optionSelected.emit(null!=i?i:[]),this._internalChangeTimestamp=(new Date).getTime())}handleSelect(i){var t;i&&(this.multiple?(null===(t=this._values)||void 0===t?void 0:t.includes(i))?this.handleOptionSelected(this._values.filter((t=>t!==i))):this.handleOptionSelected([...this._values||[],i]):(this.handleOptionSelected([i]),this.handleClose(void 0,!0)))}handleSelectAll(i){var t;if(i.stopPropagation(),(null===(t=this._values)||void 0===t?void 0:t.length)===this.amountOptions)this.handleOptionSelected([]);else{const i=this.searchEnabled&&this.searchInputRef?this.searchInputRef.value:void 0;this.handleOptionSelected(this.options?this.options.filter((t=>{var s;return!t.isGroupTitle&&(!i||(null===(s=t.value)||void 0===s?void 0:s.toLowerCase().includes(i.toLowerCase())))})).map((i=>{var t;return null!==(t=i.value)&&void 0!==t?t:""})):[])}}handleFocusFirstDropdownCheckbox(i){if(this.detailsRef){const t=Array.from(this.detailsRef.querySelectorAll('input[type="checkbox"],input[type="radio"]'));if(t.length){const s=t.at(0),h=s===i&&t.length>1?t.at(1):s;h&&p((()=>{h.focus()}),1)}}}handleOpenByKeyboardFocus(){if(this.detailsRef){const i=g(this.detailsRef);i?p((()=>{i.focus()}),1):this.handleFocusFirstDropdownCheckbox()}}handleSearch(i){if(void 0===i)return;let t;if("string"==typeof i)t=i;else{const s=i;s.stopPropagation(),this.search&&this.search.emit(s),t=s.target.value,this._searchValue=t}this._options=this.options&&t&&0!==t.length?this.options.filter(this.searchFilter?i=>this.searchFilter(i,t):i=>!i.isGroupTitle&&this.getOptionLabel(i).toLowerCase().includes(t.toLowerCase())):this.options}handleClearAll(i){i.stopPropagation(),this.handleOptionSelected([]),this.handleSummaryFocus()}handleSummaryFocus(){var i;this.detailsRef&&(null===(i=this.detailsRef.querySelector("summary"))||void 0===i||i.focus())}resetIds(){var i,t,s;const h=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:`custom-select-${k()}`;this._id=h,this._messageId=h+o,this._validMessageId=h+d,this._invalidMessageId=h+n,this._selectId=h+c,this._labelId=h+v,this._summaryId=h+"-summary",this._placeholderId=h+r,this._selectedLabelsId=h+"-selected-labels",this._infoTextId=h+"-info"}enableAttributePassing(i,t){const s=null==i?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let h=0;h<t.length;h++){const e=t.item(h);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))i.setAttribute(e.name,e.value),s.removeAttribute(e.name);else if(e&&"data-density"!==e.name&&"class"!==e.name&&"style"===e.name)i.setAttribute(e.name,e.value),s.removeAttribute(e.name);else if(e&&"class"===e.name){const t=e.value.includes("hydrated"),h=e.value.replace("hydrated","").trim(),l=i.getAttribute("class");i.setAttribute(e.name,`${l?`${l} `:""}${h}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(e.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(){this.detailsRef&&this.detailsRef.addEventListener("focusout",(i=>this.handleClose(i)))}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const i=this._id+o;this._labelId=this._id+v,this._selectId=this._id+c,this._validMessageId=this._id+d,this._invalidMessageId=this._id+n,this._placeholderId=this._id+r,y(this.message,this.showMessage)?this.setDescById(i):this.setDescById()}}watch2(){this.watch2Fn()}watch3Fn(){var i;if(this.detailsRef){const t=this.detailsRef.querySelector("summary");t&&t.setAttribute("aria-describedby",null!==(i=this.ariaDescribedBy)&&void 0!==i?i:this._descByIds||"")}}watch3(){this.watch3Fn()}watch4Fn(){void 0!==this.showNoResults?this._hasNoOptions=this.showNoResults:this._options&&(this._hasNoOptions=0===this._options.length)}watch4(){this.watch4Fn()}watch5Fn(){var i;this.selectAllEnabled=Boolean(this.multiple&&(null!==(i=this.showSelectAll)&&void 0!==i?i:this.amountOptions>5))}watch5(){this.watch5Fn()}watch6Fn(){var i;this.searchEnabled=null!==(i=this.showSearch)&&void 0!==i?i:this.amountOptions>9}watch6(){this.watch6Fn()}watch7Fn(){var i;const t=this.values;Array.isArray(t)?this._values!==t&&(this._values=t):null==t&&0!==(null===(i=this._values)||void 0===i?void 0:i.length)&&(this._values=[])}watch7(){this.watch7Fn()}watch8Fn(){this.selectRef&&this.handleValidation()}watch8(){this.watch8Fn()}watch9Fn(){if(this.selectRef){let i=this.abortController;i||(i=new AbortController,this.abortController=i);const t=this.values;I(this.selectRef,(()=>{this.handleOptionSelected(t||(this.selectRef.value?[this.selectRef.value]:[])),this.handleValidation()}),i.signal)}}watch9(){this.watch9Fn()}watch10Fn(){this._validity=this.validation}watch10(){this.watch10Fn()}watch11Fn(){var i,t;0===(null===(i=this._values)||void 0===i?void 0:i.length)?(this.selectAllChecked=!1,this.selectAllIndeterminate=!1):(null===(t=this._values)||void 0===t?void 0:t.length)===this.amountOptions?(this.selectAllIndeterminate=!1,this.selectAllChecked=!0):this._values&&(this.selectAllIndeterminate=!0)}watch11(){this.watch11Fn()}watch12Fn(){var i,t;this._options=this.options,this.amountOptions=null!==(t=null===(i=this.options)||void 0===i?void 0:i.filter((i=>!i.isGroupTitle)).length)&&void 0!==t?t:0}watch12(){this.watch12Fn()}watch13Fn(){this._searchValue=this.searchValue,this.searchValue&&this.handleSearch(this.searchValue)}watch13(){this.watch13Fn()}watch14Fn(){var i,t;(null===(i=this.options)||void 0===i?void 0:i.length)&&(this._selectedOptions=null===(t=this.options)||void 0===t?void 0:t.filter((i=>{var t,s;return!(!i.value||!(null===(t=this._values)||void 0===t?void 0:t.includes))&&!i.isGroupTitle&&(null===(s=this._values)||void 0===s?void 0:s.includes(i.value))})))}watch14(){this.watch14Fn()}watch15Fn(){var i,t,s;if(this.selectedLabels)this._selectedLabels=this.selectedLabels;else if(null===(i=this._selectedOptions)||void 0===i?void 0:i.length){if(this.transformSelectedLabels)return void(this._selectedLabels=(0,this.transformSelectedLabels)(this._selectedOptions));this._selectedLabels="amount"===this.selectedType?this.amountText?this.amountText:`${null===(t=this._selectedOptions)||void 0===t?void 0:t.length} ${u}`:null===(s=this._selectedOptions)||void 0===s?void 0:s.map((i=>this.getOptionLabel(i))).join(", ")}else this._selectedLabels=""}watch15(){this.watch15Fn()}watch16Fn(){var i,t;this.amountChange&&this.amountChange.emit(null!==(t=null===(i=this._selectedOptions)||void 0===i?void 0:i.length)&&void 0!==t?t:0)}watch16(){this.watch16Fn()}watch17Fn(){this.selectAllRef&&(this.selectAllRef.indeterminate=Boolean(this.selectAllIndeterminate))}watch17(){this.watch17Fn()}watch18Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this.selectRef)||void 0===i?void 0:i.validationMessage)||e}watch18(){this.watch18Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-custom-select"),this.resetIds(),this._invalidMessage=this.invalidMessage||e,"undefined"!=typeof window&&"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((i=>{if(this.detailsRef){const t=i.find((({target:i})=>i===this.detailsRef));t&&!t.isIntersecting&&this.detailsRef.open&&(this.detailsRef.open=!1)}}))),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn(),this.watch5Fn(),this.watch6Fn(),this.watch7Fn(),this.watch8Fn(),this.watch9Fn(),this.watch10Fn(),this.watch11Fn(),this.watch12Fn(),this.watch13Fn(),this.watch14Fn(),this.watch15Fn(),this.watch16Fn(),this.watch17Fn(),this.watch18Fn()}disconnectedCallback(){var i;null===(i=this.abortController)||void 0===i||i.abort()}render(){var i,t,e,a,o,d,n,c,v,r,u,m,p,g,k;return s("div",{key:"adc424fa6a3f8653e88e5f5db601a8661da73994",class:x("db-custom-select",this.className),id:this._id,ref:i=>{this._ref=i},"aria-invalid":"invalid"===this._validity,"data-custom-validity":this._validity,"data-width":this.formFieldWidth,"data-variant":"floating"===this.variant&&"tag"===this.selectedType&&this.multiple?"above":this.variant,"data-required":F(this.required),"data-hide-asterisk":D(this.showRequiredAsterisk),"data-placement":this.placement,"data-selected-type":this.multiple?this.selectedType:"text","data-hide-label":D(this.showLabel),"data-icon":this.icon,"data-show-icon":F(this.showIcon)},s("label",{key:"fecde7273841b8365690a6b1e0de407107f0765f",id:this._labelId},null!==(i=this.label)&&void 0!==i?i:l,s("select",{key:"c6498a15a6c57bfdd46cc9624d42de5ebe78c0cc",role:"none",hidden:!0,id:this._selectId,tabIndex:-1,ref:i=>{this.selectRef=i},form:this.form,name:this.name,"data-custom-validity":this._validity,multiple:A(this.multiple,"multiple"),disabled:A(this.disabled,"disabled"),required:A(this.required,"required"),onChange:i=>this.satisfyReact(i)},(null===(t=this.options)||void 0===t?void 0:t.length)?null===(e=this.options)||void 0===e?void 0:e.map((i=>s("option",{disabled:i.disabled,value:i.value,key:void 0},this.getOptionLabel(i)))):null)),s("details",{key:"ea5eecf0c0a3285921c191c81710947c3ab14cab",ref:i=>{this.detailsRef=i},open:this.open,onToggle:i=>this.handleDropdownToggle(i),onKeyDown:i=>this.handleKeyboardPress(i)},s("slot",{key:"52d3c600ec77ad908deb69b1b57b089f05579aa5"}),this.options?s(h,null,s("summary",{class:"db-custom-select-form-field",id:this._summaryId,"aria-disabled":F(this.disabled),tabIndex:this.disabled?-1:void 0,"aria-labelledby":this._labelId},(null===(a=this._selectedLabels)||void 0===a?void 0:a.length)?s("span",{"data-visually-hidden":F("tag"===this.selectedType),id:this._selectedLabelsId},this.selectedPrefix?s("span",{"data-visually-hidden":"true"},this.selectedPrefix):null,this._selectedLabels):null,"tag"===this.selectedType?s("div",null,null===(o=this._selectedOptions)||void 0===o?void 0:o.map((i=>s("db-tag",{emphasis:"strong",behavior:"removable",removeButton:this.getTagRemoveLabel(i),onRemove:t=>this.handleTagRemove(i,t),key:void 0},this.getOptionLabel(i))))):null),s("db-custom-select-dropdown",{width:this.dropdownWidth},this.searchEnabled?s("div",null,s("db-input",{type:"search",ref:i=>{this.searchInputRef=i},name:this._id,form:this._id,showLabel:!1,value:this._searchValue,label:null!==(d=this.searchLabel)&&void 0!==d?d:l,placeholder:null!==(n=this.searchPlaceholder)&&void 0!==n?n:this.searchLabel,ariaDescribedBy:this._hasNoOptions||this.showLoading?this._infoTextId:void 0,onInput:i=>this.handleSearch(i)})):null,this._hasNoOptions||this.showLoading?s("db-infotext",{id:this._infoTextId,icon:this.showLoading?"circular_arrows":void 0,semantic:this.showLoading?"informational":"warning"},null!==(c=this.showLoading?this.loadingText:this.noResultsText)&&void 0!==c?c:f):s(h,null,this.selectAllEnabled?s("div",null,s("div",{class:"db-checkbox db-custom-select-list-item"},s("label",null,s("input",{type:"checkbox",value:"select-all",ref:i=>{this.selectAllRef=i},form:this._id,checked:this.selectAllChecked,onChange:i=>this.handleSelectAll(i)}),this.getSelectAllLabel()))):null,s("db-custom-select-list",{multiple:A(this.multiple,"multiple"),label:null!==(r=null!==(v=this.listLabel)&&void 0!==v?v:this.label)&&void 0!==r?r:l},null===(u=this._options)||void 0===u?void 0:u.map((i=>s("db-custom-select-list-item",{type:this.multiple?"checkbox":"radio",showDivider:i.showDivider,icon:i.icon,isGroupTitle:i.isGroupTitle,groupTitle:this.getOptionLabel(i),name:this._id,checked:this.getOptionChecked(i.value),disabled:i.disabled,value:i.value,onChange:()=>this.handleSelect(i.value),key:void 0},i.isGroupTitle?null:this.getOptionLabel(i)))))),s("div",null,s("db-button",{variant:"ghost",width:"full",icon:"cross",size:"small",name:this._id,form:this._id,onClick:()=>this.handleClose(void 0,!0)},null!==(m=this.mobileCloseButtonText)&&void 0!==m?m:b)))):null),(null===(p=this.showClearSelection)||void 0===p||p)&&(null===(g=this._values)||void 0===g?void 0:g.length)?s("db-button",{icon:"cross",variant:"ghost",size:"small",noText:!0,name:this._id,form:this._id,disabled:A(this.disabled,"disabled"),onClick:i=>this.handleClearAll(i)},this.clearSelectionText,s("db-tooltip",{placement:"top"},this.clearSelectionText)):null,s("span",{key:"312797b7c41d57e43821cbaecaf6f82be6dc6239",class:"db-custom-select-placeholder","aria-hidden":F(!0),id:this._placeholderId},null!==(k=this.placeholder)&&void 0!==k?k:this.label),y(this.message,this.showMessage)?s("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?s("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||w):null,s("db-infotext",{key:"c4f623a9e3c3ed61054960db586b0589873235fe",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),s("span",{key:"69f9c8fe36de328caed05e820faec5a76bdae6d2","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],detailsRef:[{watch1:0},{watch3:0}],_id:[{watch2:0}],_descByIds:[{watch3:0}],showNoResults:[{watch4:0}],showLoading:[{watch4:0}],_options:[{watch4:0}],showSelectAll:[{watch5:0}],amountOptions:[{watch5:0},{watch6:0},{watch11:0}],multiple:[{watch5:0}],showSearch:[{watch6:0}],values:[{watch7:0}],_values:[{watch8:0},{watch11:0},{watch14:0}],selectRef:[{watch8:0},{watch9:0},{watch18:0}],validation:[{watch10:0}],options:[{watch12:0},{watch14:0}],searchValue:[{watch13:0}],_selectedOptions:[{watch15:0},{watch16:0}],selectedType:[{watch15:0}],amountText:[{watch15:0}],selectedLabels:[{watch15:0}],transformSelectedLabels:[{watch15:0}],selectAllIndeterminate:[{watch17:0}],selectAllRef:[{watch17:0}],invalidMessage:[{watch18:0}]}}};export{R as db_custom_select}
@@ -1 +0,0 @@
1
- import{r as t,h as s,F as i}from"./p-LpjjuLKB.js";import{d as a,g as h,c as d}from"./p-xkoBSP8R.js";const e=class{constructor(s){t(this,s),this._data=void 0,this._style=void 0}convertData(){try{return"string"==typeof this.data?JSON.parse(this.data):this.data}catch(t){console.error(t)}return{}}enableAttributePassing(t,s){const i=null==t?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let a=0;a<s.length;a++){const h=s.item(a);if(h&&"data-density"!==h.name&&(h.name.startsWith("data-")||h.name.startsWith("aria-")))t.setAttribute(h.name,h.value),i.removeAttribute(h.name);else if(h&&"data-density"!==h.name&&"class"!==h.name&&"style"===h.name)t.setAttribute(h.name,h.value),i.removeAttribute(h.name);else if(h&&"class"===h.name){const s=h.value.includes("hydrated"),a=h.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(h.name,`${d?`${d} `:""}${a}`),s?i.setAttribute("class","hydrated"):i.removeAttribute(h.name)}}}}watch0Fn(){this.data&&(this._data=this.convertData())}watch0(){this.watch0Fn()}watch1Fn(){this._ref&&"list"===this.mobileVariant&&a((()=>{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,i)=>{const a=s[i];a&&a.textContent&&!t.dataset.header&&(t.dataset.header=a.textContent.trim())}))}))}),1)}watch1(){this.watch1Fn()}watch2Fn(){if(this.columnSizes){const t={};Object.entries(this.columnSizes).forEach((([s,i])=>{t[`--db-table-column-size-${s}`]=i})),this._style=t}}watch2(){this.watch2Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-table"),this.watch0Fn(),this.watch1Fn(),this.watch2Fn()}render(){var t,a,e,o,l,c;return s("div",{key:"f64631aec68b83467db063e5e0923144743bce72",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":h(this.showCaption),"data-sticky-header":this.stickyHeader},s("table",{key:"6cce6265d3907c99c333d8c4d209493548f22b36",ref:t=>{this._ref=t},id:this.id},s("caption",{key:"3ad5a7a85bd195180b842b39a5b2aeaebdd3bee7"},this.captionPlain?this.captionPlain:s("slot",{name:"caption"})),this._data?s(i,null,(null===(t=this._data)||void 0===t?void 0:t.header)?s("db-table-head",{rows:null===(a=this._data)||void 0===a?void 0:a.header}):null,(null===(e=this._data)||void 0===e?void 0:e.body)?s("db-table-body",{rows:null===(o=this._data)||void 0===o?void 0:o.body}):null,(null===(l=this._data)||void 0===l?void 0:l.footer)?s("db-table-footer",{rows:null===(c=this._data)||void 0===c?void 0:c.footer}):null):s("slot",null)))}static get watchers(){return{data:[{watch0:0}],mobileVariant:[{watch1:0}],_ref:[{watch1:0}],columnSizes:[{watch2:0}]}}};export{e as db_table}
@@ -1 +0,0 @@
1
- import{r as s,h as t}from"./p-LpjjuLKB.js";import{c as e}from"./p-xkoBSP8R.js";const a=class{constructor(t){s(this,t)}enableAttributePassing(s,t){const e=null==s?void 0:s.closest(t);if(s&&e){const t=e.attributes;for(let a=0;a<t.length;a++){const d=t.item(a);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))s.setAttribute(d.name,d.value),e.removeAttribute(d.name);else if(d&&"data-density"!==d.name&&"class"!==d.name&&"style"===d.name)s.setAttribute(d.name,d.value),e.removeAttribute(d.name);else if(d&&"class"===d.name){const t=d.value.includes("hydrated"),a=d.value.replace("hydrated","").trim(),o=s.getAttribute("class");s.setAttribute(d.name,`${o?`${o} `:""}${a}`),t?e.setAttribute("class","hydrated"):e.removeAttribute(d.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-custom-select-form-field")}render(){var s,a;return t("summary",{key:"76aa8c30e636d11faf08ea79fd8e55d162a6c224",class:e("db-custom-select-form-field",this.className),ref:s=>{this._ref=s},id:null!==(s=this.id)&&void 0!==s?s:null===(a=this.propOverrides)||void 0===a?void 0:a.id},t("slot",{key:"829025ec61e9b2b4891e9289f0292261a43aff0a"}))}};export{a as db_custom_select_form_field}
@@ -1 +0,0 @@
1
- import{r as t,h as s}from"./p-LpjjuLKB.js";import{c as a}from"./p-xkoBSP8R.js";const e=class{constructor(s){t(this,s)}enableAttributePassing(t,s){const a=null==t?void 0:t.closest(s);if(t&&a){const s=a.attributes;for(let e=0;e<s.length;e++){const d=s.item(e);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))t.setAttribute(d.name,d.value),a.removeAttribute(d.name);else if(d&&"data-density"!==d.name&&"class"!==d.name&&"style"===d.name)t.setAttribute(d.name,d.value),a.removeAttribute(d.name);else if(d&&"class"===d.name){const s=d.value.includes("hydrated"),e=d.value.replace("hydrated","").trim(),i=t.getAttribute("class");t.setAttribute(d.name,`${i?`${i} `:""}${e}`),s?a.setAttribute("class","hydrated"):a.removeAttribute(d.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-table-caption")}render(){return s("caption",{key:"baeddf92648dcbf2965b0c3832e54f196a95dabe",class:a("db-table-caption",this.className),ref:t=>{this._ref=t},id:this.id},s("slot",{key:"46e4b15773e65ae78bd93699c41b463a2783fcd3"}))}};export{e as db_table_caption}
@@ -1 +0,0 @@
1
- import{r as t,h as s}from"./p-LpjjuLKB.js";import{g as a,c as i}from"./p-xkoBSP8R.js";const d=class{constructor(s){t(this,s)}enableAttributePassing(t,s){const a=null==t?void 0:t.closest(s);if(t&&a){const s=a.attributes;for(let i=0;i<s.length;i++){const d=s.item(i);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))t.setAttribute(d.name,d.value),a.removeAttribute(d.name);else if(d&&"data-density"!==d.name&&"class"!==d.name&&"style"===d.name)t.setAttribute(d.name,d.value),a.removeAttribute(d.name);else if(d&&"class"===d.name){const s=d.value.includes("hydrated"),i=d.value.replace("hydrated","").trim(),e=t.getAttribute("class");t.setAttribute(d.name,`${e?`${e} `:""}${i}`),s?a.setAttribute("class","hydrated"):a.removeAttribute(d.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-infotext")}render(){var t,d,e;return s("span",{key:"2e7fc7ada2ff751ab1b3e31bd19dc4f3dc0db63d",class:i("db-infotext",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(d=this.propOverrides)||void 0===d?void 0:d.id,"data-icon":this.icon,"data-semantic":this.semantic,"data-size":this.size,"data-wrap":a(this.wrap),"data-show-icon-leading":a(null===(e=this.showIcon)||void 0===e||e)},this.text?this.text:s("slot",null))}};export{d as db_infotext}
@@ -1,2 +0,0 @@
1
- function t(t,n,e){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,n);if(o&&(!e||o.get))return o;t=Object.getPrototypeOf(t)}}var n=(n,e)=>{var o;Object.entries(null!=(o=e.o.t)?o:{}).map((([o,[l]])=>{if(31&l||32&l){const l=n[o],s=t(Object.getPrototypeOf(n),o,!0)||Object.getOwnPropertyDescriptor(n,o);s&&Object.defineProperty(n,o,{get(){return s.get.call(this)},set(t){s.set.call(this,t)},configurable:!0,enumerable:!0}),e.l.has(o)?n[o]=e.l.get(o):void 0!==l&&(n[o]=l)}}))},e=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},o=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.i=t,512&e.o.u&&n(t,e))},l=(t,n)=>n in t,s=(t,n)=>(0,console.error)(t,n),i=new Map,r="undefined"!=typeof window?window:{},c={u:0,p:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},u=t=>Promise.resolve(t),f=!1,a=[],d=[],p=(t,n)=>e=>{t.push(e),f||(f=!0,n&&4&c.u?m(v):c.raf(v))},h=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){s(t)}t.length=0},v=()=>{h(a),h(d),(f=a.length>0)&&c.raf(v)},m=t=>u().then(t),b=p(d,!0),y=t=>{const n=O(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&$(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!g(t,w(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&O(t,"childNodes").length&&y(t)}};function $(t,n,e){let o,l=0,s=[];for(;l<t.length;l++){if(o=t[l],o["s-sr"]&&(!n||o["s-hn"]===n)&&(void 0===e||w(o)===e)&&(s.push(o),void 0!==e))return s;s=[...s,...$(o.childNodes,n,e)]}return s}var g=(t,n,e=!0)=>{const o=[];(e&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)w(l)!==n||!e&&l["s-sr"]||o.push(l);return o},j=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,w=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function O(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}var k,N,S=new WeakMap,E=t=>"object"==(t=typeof t)||"function"===t,M=(t,n,...e)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],u=n=>{for(let e=0;e<n.length;e++)o=n[e],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!E(o))&&(o+=""),i&&r?c[c.length-1].h+=o:c.push(i?C(null,o):o),r=i)};if(u(e),n){n.key&&(l=n.key),n.name&&(s=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}if("function"==typeof t)return t(null===n?{}:n,c,L);const f=C(t,null);return f.v=n,c.length>0&&(f.m=c),f.$=l,f.j=s,f},C=(t,n)=>({u:0,O:t,h:null!=n?n:null,k:null,m:null,v:null,$:null,j:null}),T={},L={forEach:(t,n)=>t.map(R).forEach(n),map:(t,n)=>t.map(R).map(n).map(x)},R=t=>({vattrs:t.v,vchildren:t.m,vkey:t.$,vname:t.j,vtag:t.O,vtext:t.h}),x=t=>{if("function"==typeof t.vtag){const n={...t.vattrs};return t.vkey&&(n.key=t.vkey),t.vname&&(n.name=t.vname),M(t.vtag,n,...t.vchildren||[])}const n=C(t.vtag,t.vtext);return n.v=t.vattrs,n.m=t.vchildren,n.$=t.vkey,n.j=t.vname,n},F=(t,n)=>null==t||E(t)?t:4&n?"false"!==t&&(""===t||!!t):2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&n?t+"":t,A=(t,n)=>{const o=(t=>{var n;return null==(n=e(t))?void 0:n.$hostElement$})(t);return{emit:t=>P(o,n,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},P=(t,n,e)=>{const o=c.ce(n,e);return t.dispatchEvent(o),o},D=(t,n,o,s,i,u)=>{if(o===s)return;let f=l(t,n),a=n.toLowerCase();if("class"===n){const n=t.classList,e=H(o);let l=H(s);n.remove(...e.filter((t=>t&&!l.includes(t)))),n.add(...l.filter((t=>t&&!e.includes(t))))}else if("style"===n){for(const n in o)s&&null!=s[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in s)o&&s[n]===o[n]||(n.includes("-")?t.style.setProperty(n,s[n]):t.style[n]=s[n])}else if("key"===n);else if("ref"===n)s&&rt(s,t);else if(f||"o"!==n[0]||"n"!==n[1]){if("a"===n[0]&&n.startsWith("attr:")){const o=n.slice(5);let l;{const n=e(t);if(n&&n.o&&n.o.t){const t=n.o.t[o];t&&t[1]&&(l=t[1])}}return l||(l=o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==s||!1===s?!1===s&&""!==t.getAttribute(l)||t.removeAttribute(l):t.setAttribute(l,!0===s?"":s))}if("p"===n[0]&&n.startsWith("prop:")){const e=n.slice(5);try{t[e]=s}catch(t){}return}{const e=E(s);if((f||e&&null!==s)&&!i)try{if(t.tagName.includes("-"))t[n]!==s&&(t[n]=s);else{const e=null==s?"":s;"list"===n?f=!1:null!=o&&t[n]===e||("function"==typeof t.__lookupSetter__(n)?t[n]=e:t.setAttribute(n,e))}}catch(t){}null==s||!1===s?!1===s&&""!==t.getAttribute(n)||t.removeAttribute(n):(!f||4&u||i)&&!e&&1===t.nodeType&&t.setAttribute(n,s=!0===s?"":s)}}else if(n="-"===n[2]?n.slice(3):l(r,a)?a.slice(2):a[2]+n.slice(3),o||s){const e=n.endsWith(U);n=n.replace(W,""),o&&c.rel(t,n,o,e),s&&c.ael(t,n,s,e)}},_=/\s/,H=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(_):[]),U="Capture",W=RegExp(U+"$"),z=(t,n,e)=>{const o=11===n.k.nodeType&&n.k.host?n.k.host:n.k,l=t&&t.v||{},s=n.v||{};for(const t of B(Object.keys(l)))t in s||D(o,t,l[t],void 0,e,n.u);for(const t of B(Object.keys(s)))D(o,t,l[t],s[t],e,n.u)};function B(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var V=!1,q=!1,Y=!1,G=!1,I=[],Z=[],J=(t,n,e)=>{var o;const l=n.m[e];let s,i,c,u=0;if(V||(Y=!0,"slot"===l.O&&(l.u|=l.m?2:1)),null!=l.h)s=l.k=r.document.createTextNode(l.h);else if(1&l.u)s=l.k=r.document.createTextNode(""),z(null,l,G);else{if(!r.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(s=l.k=r.document.createElement(!V&&2&l.u?"slot-fb":l.O),z(null,l,G),l.m){const n="template"===l.O?s.content:s;for(u=0;u<l.m.length;++u)i=J(t,l,u),i&&n.appendChild(i)}}return s["s-hn"]=N,3&l.u&&(s["s-sr"]=!0,s["s-cr"]=k,s["s-sn"]=l.j||"",s["s-rf"]=null==(o=l.v)?void 0:o.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n})(l.childNodes)).forEach((t=>{o===w(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}(s),c=t&&t.m&&t.m[e],c&&c.O===l.O&&t.k&&K(t.k)),s},K=t=>{c.u|=1;const n=t.closest(N.toLowerCase());if(null!=n){const e=Array.from(n.__childNodes||n.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of e?o.reverse():o)null!=t["s-sh"]&&(ct(n,t,null!=e?e:null),t["s-sh"]=void 0,Y=!0)}c.u&=-2},Q=(t,n)=>{c.u|=1;const e=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let n=t;for(;n=n.nextSibling;)n&&n["s-sn"]===t["s-sn"]&&n["s-sh"]===N&&e.push(n)}for(let t=e.length-1;t>=0;t--){const o=e[t];o["s-hn"]!==N&&o["s-ol"]&&(ct(et(o).parentNode,o,et(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,Y=!0),n&&Q(o,n)}c.u&=-2},X=(t,n,e,o,l,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for("template"===e.O&&(r=r.content);l<=s;++l)o[l]&&(i=J(null,e,l),i&&(o[l].k=i,ct(r,i,et(n))))},tt=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.k;it(n),t&&(q=!0,t["s-ol"]?t["s-ol"].remove():Q(t,!0),t.remove())}}},nt=(t,n,e=!1)=>t.O===n.O&&("slot"===t.O?t.j===n.j:e?(e&&!t.$&&n.$&&(t.$=n.$),!0):t.$===n.$),et=t=>t&&t["s-ol"]||t,ot=(t,n,e=!1)=>{const o=n.k=t.k,l=t.m,s=n.m,i=n.h;let r;null==i?("slot"!==n.O||V||t.j!==n.j&&(n.k["s-sn"]=n.j||"",K(n.k.parentElement)),z(t,n,G),null!==l&&null!==s?((t,n,e,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=n.length-1,d=n[0],p=n[a],h=o.length-1,v=o[0],m=o[h];const b="template"===e.O?t.content:t;for(;r<=a&&c<=h;)if(null==d)d=n[++r];else if(null==p)p=n[--a];else if(null==v)v=o[++c];else if(null==m)m=o[--h];else if(nt(d,v,l))ot(d,v,l),d=n[++r],v=o[++c];else if(nt(p,m,l))ot(p,m,l),p=n[--a],m=o[--h];else if(nt(d,m,l))"slot"!==d.O&&"slot"!==m.O||Q(d.k.parentNode,!1),ot(d,m,l),ct(b,d.k,p.k.nextSibling),d=n[++r],m=o[--h];else if(nt(p,v,l))"slot"!==d.O&&"slot"!==m.O||Q(p.k.parentNode,!1),ot(p,v,l),ct(b,p.k,d.k),p=n[--a],v=o[++c];else{for(u=-1,f=r;f<=a;++f)if(n[f]&&null!==n[f].$&&n[f].$===v.$){u=f;break}u>=0?(i=n[u],i.O!==v.O?s=J(n&&n[c],e,u):(ot(i,v,l),n[u]=void 0,s=i.k),v=o[++c]):(s=J(n&&n[c],e,c),v=o[++c]),s&&ct(et(d.k).parentNode,s,et(d.k))}r>a?X(t,null==o[h+1]?null:o[h+1].k,e,o,c,h):c>h&&tt(n,r,a)})(o,l,n,s,e):null!==s?(null!==t.h&&(o.textContent=""),X(o,null,n,s,0,s.length-1)):!e&&null!==l&&tt(l,0,l.length-1)):(r=o["s-cr"])?r.parentNode.textContent=i:t.h!==i&&(o.data=i)},lt=[],st=t=>{let n,e,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const l=t["s-sn"];for(o=e.length-1;o>=0;o--)if(n=e[o],!(n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||n["s-sh"]&&n["s-sh"]===t["s-hn"]))if(j(n,l)){let e=lt.find((t=>t.N===n));q=!0,n["s-sn"]=n["s-sn"]||l,e?(e.N["s-sh"]=t["s-hn"],e.S=t):(n["s-sh"]=t["s-hn"],lt.push({S:t,N:n})),n["s-sr"]&&lt.map((t=>{j(t.N,n["s-sn"])&&(e=lt.find((t=>t.N===n)),e&&!t.S&&(t.S=e.S))}))}else lt.some((t=>t.N===n))||lt.push({N:n})}1===t.nodeType&&st(t)}},it=t=>{t.v&&t.v.ref&&I.push((()=>t.v.ref(null))),t.m&&t.m.map(it)},rt=(t,n)=>{Z.push((()=>t(n)))},ct=(t,n,e,o)=>{if("string"==typeof n["s-sn"]){t.insertBefore(n,e);const{slotNode:l}=function(t,n){var e;if(!(n=n||(null==(e=t["s-ol"])?void 0:e.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=w(t)||"";return{slotNode:$(O(n,"childNodes"),n.tagName,o)[0],slotName:o}}(n);return l&&!o&&function(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}(l),n}return t.__insertBefore?t.__insertBefore(n,e):null==t?void 0:t.insertBefore(n,e)},ut=(t,n)=>{if(n&&!t.M&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.M=()=>{n["s-p"].splice(e-1,1),o()})))}},ft=(t,n)=>{if(t.u|=16,4&t.u)return void(t.u|=512);ut(t,t.C);const e=()=>at(t,n);if(!n)return b(e);queueMicrotask((()=>{e()}))},at=(t,n)=>{const e=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return n?(t.T&&(t.T=!1,yt(o,"connectedCallback",void 0,e)),t.L.length&&t.L.forEach((t=>t(e))),l=yt(o,"componentWillLoad",void 0,e)):l=yt(o,"componentWillUpdate",void 0,e),l=dt(l,(()=>yt(o,"componentWillRender",void 0,e))),dt(l,(()=>ht(t,o,n)))},dt=(t,n)=>pt(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),pt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,ht=async(t,n,e)=>{var o;const l=t.$hostElement$,s=l["s-rc"];vt(t,n,l,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const n=null!=(o=l["s-p"])?o:[],e=()=>mt(t);0===n.length?e():(Promise.all(n).then(e).catch(e),t.u|=4,n.length=0)}},vt=(t,n,e,o)=>{try{n=n.render(),t.u&=-17,t.u|=2,((t,n,e=!1)=>{var o,l,s,i,u;const f=t.$hostElement$,a=t.o,d=t.R||C(null,null),p=(t=>t&&t.O===T)(n)?n:M(null,null,n);if(N=f.tagName,e&&p.v)for(const t of Object.keys(p.v))f.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(p.v[t]=f[t]);if(p.O=null,p.u|=4,t.R=p,p.k=d.k=f,V=!1,k=f["s-cr"],q=!1,ot(d,p,e),c.u|=1,Y){st(p.k);for(const t of lt){const n=t.N;if(!n["s-ol"]&&r.document){const t=r.document.createTextNode("");t["s-nr"]=n,ct(n.parentNode,n["s-ol"]=t,n,e)}}for(const t of lt){const n=t.N,c=t.S;if(1===n.nodeType&&e&&(n["s-ih"]=null!=(o=n.hidden)&&o),c){const t=c.parentNode;let o=c.nextSibling;if(o&&1===o.nodeType){let e=null==(l=n["s-ol"])?void 0:l.previousSibling;for(;e;){let l=null!=(s=e["s-nr"])?s:null;if(l&&l["s-sn"]===n["s-sn"]&&t===(l.__parentNode||l.parentNode)){for(l=l.nextSibling;l===n||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){o=l;break}}e=e.previousSibling}}if((!o&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==o)&&n!==o){if(ct(t,n,o,e),8===n.nodeType&&n.nodeValue.startsWith("s-nt-")){const t=r.document.createTextNode(n.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=n["s-hn"],t["s-sn"]=n["s-sn"],t["s-sh"]=n["s-sh"],t["s-sr"]=n["s-sr"],t["s-ol"]=n["s-ol"],t["s-ol"]["s-nr"]=t,ct(n.parentNode,t,n,e),n.parentNode.removeChild(n)}1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(i=n["s-ih"])&&i)}n&&"function"==typeof c["s-rf"]&&c["s-rf"](c)}else 1===n.nodeType&&(n.hidden=!0)}}if(q&&y(p.k),c.u&=-2,lt.length=0,!V&&!(1&a.u)&&f["s-cr"]){const t=p.k.__childNodes||p.k.childNodes;for(const n of t)if(n["s-hn"]!==N&&!n["s-sh"])if(e&&null==n["s-ih"]&&(n["s-ih"]=null!=(u=n.hidden)&&u),1===n.nodeType)n.hidden=!0;else if(3===n.nodeType&&n.nodeValue.trim()){const t=r.document.createComment("s-nt-"+n.nodeValue);t["s-sn"]=n["s-sn"],ct(n.parentNode,t,n,e),n.parentNode.removeChild(n)}}k=void 0,I.forEach((t=>t())),I.length=0,Z.forEach((t=>t())),Z.length=0})(t,n,o)}catch(n){s(n,t.$hostElement$)}return null},mt=t=>{const n=t.$hostElement$,e=t.i,o=t.C;yt(e,"componentDidRender",void 0,n),64&t.u?yt(e,"componentDidUpdate",void 0,n):(t.u|=64,$t(n),yt(e,"componentDidLoad",void 0,n),t.F(n),o||bt()),t.M&&(t.M(),t.M=void 0),512&t.u&&m((()=>ft(t,!1))),t.u&=-517},bt=()=>{m((()=>P(r,"appload",{detail:{namespace:"db-ux"}})))},yt=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){s(t,o)}},$t=t=>t.classList.add("hydrated"),gt=(t,n,o,l)=>{const i=e(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${l.A}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=i.$hostElement$,c=i.l.get(n),u=i.u,f=i.i;if(o=F(o,l.t[n][0]),!(8&u&&void 0!==c||o===c||Number.isNaN(c)&&Number.isNaN(o))){if(i.l.set(n,o),l.P){const t=l.P[n];t&&t.map((t=>{try{const[[e,l]]=Object.entries(t);(128&u||1&l)&&(f?f[e](o,c,n):i.L.push((()=>{i.i[e](o,c,n)})))}catch(t){s(t,r)}}))}if(2&u){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(o,c,n)&&!(16&u))return;16&u||ft(i,!1)}}},jt=(n,o,l)=>{var s,i;const r=n.prototype;{n.watchers&&!o.P&&(o.P=n.watchers),n.deserializers&&!o.D&&(o.D=n.deserializers),n.serializers&&!o._&&(o._=n.serializers);const u=Object.entries(null!=(s=o.t)?s:{});if(u.map((([n,[s]])=>{if(31&s||2&l&&32&s){const{get:i,set:c}=t(r,n)||{};i&&(o.t[n][0]|=2048),c&&(o.t[n][0]|=4096),(1&l||!i)&&Object.defineProperty(r,n,{get(){{if(!(2048&o.t[n][0]))return((t,n)=>e(this).l.get(n))(0,n);const t=e(this),l=t?t.i:r;if(!l)return;return l[n]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,n,{set(t){const i=e(this);if(i){if(c)return void 0===(32&s?this[n]:i.$hostElement$[n])&&i.l.get(n)&&(t=i.l.get(n)),c.call(this,F(t,s)),void gt(this,n,t=32&s?this[n]:i.$hostElement$[n],o);{if(!(1&l&&4096&o.t[n][0]))return gt(this,n,t,o),void(1&l&&!i.i&&i.L.push((()=>{4096&o.t[n][0]&&i.i[n]!==i.l.get(n)&&(i.i[n]=t)})));const e=()=>{const e=i.i[n];!i.l.get(n)&&e&&i.l.set(n,e),i.i[n]=F(t,s),gt(this,n,i.i[n],o)};i.i?e():i.L.push((()=>{e()}))}}}})}})),1&l){const t=new Map;r.attributeChangedCallback=function(n,l,s){c.jmp((()=>{var i;const c=t.get(n),f=e(this);if(this.hasOwnProperty(c)&&(s=this[c],delete this[c]),r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const t=null==f?void 0:f.u;if(f&&t&&!(8&t)&&s!==l){const e=f.i,r=null==(i=o.P)?void 0:i[n];null==r||r.forEach((o=>{const[[i,r]]=Object.entries(o);null!=e[i]&&(128&t||1&r)&&e[i].call(e,s,l,n)}))}return}const a=u.find((([t])=>t===c));a&&4&a[1][0]&&(s=null!==s&&"false"!==s);const d=Object.getOwnPropertyDescriptor(r,c);s==this[c]||d.get&&!d.set||(this[c]=s)}))},n.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=o.P)?i:{}),...u.filter((([t,n])=>31&n[0])).map((([n,e])=>{const o=e[1]||n;return t.set(o,n),o}))]))}}return n},wt=(t,n)=>{yt(t,"connectedCallback",void 0,n)},Ot=(t,n)=>{yt(t,"disconnectedCallback",void 0,n||t)},kt=(t,n={})=>{var o;if(!r.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const l=[],u=n.exclude||[],f=r.customElements,a=r.document.head,d=a.querySelector("meta[charset]"),p=r.document.createElement("style"),h=[];let v,m=!0;Object.assign(c,n),c.p=new URL(n.resourcesUrl||"./",r.document.baseURI).href;let b=!1;if(t.map((t=>{t[1].map((n=>{var o,a,d;const p={u:n[0],A:n[1],t:n[2],H:n[3]};4&p.u&&(b=!0),p.t=n[2],p.P=null!=(o=n[4])?o:{},p._=null!=(a=n[5])?a:{},p.D=null!=(d=n[6])?d:{};const y=p.A,$=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){super(t),((t,n)=>{const e={u:0,$hostElement$:t,o:n,l:new Map,U:new Map};e.W=new Promise((t=>e.F=t)),t["s-p"]=[],t["s-rc"]=[],e.L=[];const o=e;t.__stencil__getHostRef=()=>o})(t=this,p)}connectedCallback(){e(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),m?h.push(this):c.jmp((()=>(t=>{if(!(1&c.u)){const n=e(t);if(!n)return;const o=n.o,l=()=>{};if(1&n.u)(null==n?void 0:n.i)?wt(n.i,t):(null==n?void 0:n.W)&&n.W.then((()=>wt(n.i,t)));else{n.u|=1,12&o.u&&(t=>{if(!r.document)return;const n=t["s-cr"]=r.document.createComment("");n["s-cn"]=!0,ct(t,n,t.firstChild)})(t);{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){ut(n,n.C=e);break}}o.t&&Object.entries(o.t).map((([n,[e]])=>{if(31&e&&Object.prototype.hasOwnProperty.call(t,n)){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e)=>{let o;try{if(!(32&n.u))if(n.u|=32,e.B){const l=((t,n)=>{const e=t.A.replace(/-/g,"_"),o=t.B;if(!o)return;const l=i.get(o);return l?l[e]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[e])),(t=>{s(t,n.$hostElement$)}))
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(e,n);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${e.A}#${n.V}" was not found`);o.isProxied||(e.P=o.watchers,e._=o.serializers,e.D=o.deserializers,jt(o,e,2),o.isProxied=!0);const r=()=>{};n.u|=8;try{new o(n)}catch(n){s(n,t)}n.u&=-9,n.u|=128,r(),4&e.u?n.T=!0:wt(n.i,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>n.u|=128));const l=n.C,r=()=>ft(n,!0);l&&l["s-rc"]?l["s-rc"].push(r):r()}catch(e){s(e,t),n.M&&(n.M(),n.M=void 0),n.F&&n.F(t)}})(t,n,o)}l()}})(this))))}disconnectedCallback(){c.jmp((()=>(async t=>{if(!(1&c.u)){const n=e(t);(null==n?void 0:n.i)?Ot(n.i,t):(null==n?void 0:n.W)&&n.W.then((()=>Ot(n.i,t)))}S.has(t)&&S.delete(t),t.shadowRoot&&S.has(t.shadowRoot)&&S.delete(t.shadowRoot)})(this))),c.raf((()=>{var t;const n=e(this);if(!n)return;const o=h.findIndex((t=>t===this));o>-1&&h.splice(o,1),(null==(t=null==n?void 0:n.R)?void 0:t.k)instanceof Node&&!n.R.k.isConnected&&delete n.R.k}))}componentOnReady(){var t;return null==(t=e(this))?void 0:t.W}};p.B=t[0],u.includes(y)||f.get(y)||(l.push(y),f.define(y,jt($,p,1)))}))})),l.length>0&&(b&&(p.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p.textContent+=l.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",p.innerHTML.length)){p.setAttribute("data-styles","");const t=null!=(o=c.q)?o:function(){var t,n,e;return null!=(e=null==(n=null==(t=r.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?e:void 0}();null!=t&&p.setAttribute("nonce",t),a.insertBefore(p,d?d.nextSibling:a.firstChild)}m=!1,h.length?h.map((t=>t.connectedCallback())):c.jmp((()=>v=setTimeout(bt,30)))},Nt=(t,n)=>n,St=t=>c.q=t;export{Nt as F,kt as b,A as c,M as h,u as p,o as r,St as s}
@@ -1 +0,0 @@
1
- import{r as t,h as s}from"./p-LpjjuLKB.js";import{u as a,c as e}from"./p-xkoBSP8R.js";const l=class{constructor(s){t(this,s)}getCells(t){return null==t?void 0:t.map((t=>Object.assign(Object.assign({},t),{headerCell:!0})))}enableAttributePassing(t,s){const a=null==t?void 0:t.closest(s);if(t&&a){const s=a.attributes;for(let e=0;e<s.length;e++){const l=s.item(e);if(l&&"data-density"!==l.name&&(l.name.startsWith("data-")||l.name.startsWith("aria-")))t.setAttribute(l.name,l.value),a.removeAttribute(l.name);else if(l&&"data-density"!==l.name&&"class"!==l.name&&"style"===l.name)t.setAttribute(l.name,l.value),a.removeAttribute(l.name);else if(l&&"class"===l.name){const s=l.value.includes("hydrated"),e=l.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(l.name,`${d?`${d} `:""}${e}`),s?a.setAttribute("class","hydrated"):a.removeAttribute(l.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-table-head")}render(){var t;return s("thead",{key:"fc59a3bac4953eaf10bbd04f29716804c98b05c8",class:e("db-table-head",this.className),ref:t=>{this._ref=t},id:this.id},this.rows?null===(t=this.rows)||void 0===t?void 0:t.map(((t,e)=>{var l,d;return s("db-table-row",{class:null!==(l=t.className)&&void 0!==l?l:t.class,key:`${null!==(d=this.id)&&void 0!==d?d:a()}-table-head-row-${e}`,cells:this.getCells(t.cells),subHeaderEmphasis:t.subHeaderEmphasis,id:t.id})})):s("slot",null))}},d=class{constructor(s){t(this,s)}enableAttributePassing(t,s){const a=null==t?void 0:t.closest(s);if(t&&a){const s=a.attributes;for(let e=0;e<s.length;e++){const l=s.item(e);if(l&&"data-density"!==l.name&&(l.name.startsWith("data-")||l.name.startsWith("aria-")))t.setAttribute(l.name,l.value),a.removeAttribute(l.name);else if(l&&"data-density"!==l.name&&"class"!==l.name&&"style"===l.name)t.setAttribute(l.name,l.value),a.removeAttribute(l.name);else if(l&&"class"===l.name){const s=l.value.includes("hydrated"),e=l.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(l.name,`${d?`${d} `:""}${e}`),s?a.setAttribute("class","hydrated"):a.removeAttribute(l.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-table-body")}render(){var t;return s("tbody",{key:"f32625da9123926d08a779f2b04f907249153f8b",class:e("db-table-body",this.className),ref:t=>{this._ref=t},id:this.id},this.rows?null===(t=this.rows)||void 0===t?void 0:t.map(((t,e)=>{var l,d;return s("db-table-row",{class:null!==(l=t.className)&&void 0!==l?l:t.class,key:`${null!==(d=this.id)&&void 0!==d?d:a()}-table-body-row-${e}`,cells:t.cells,id:t.id})})):s("slot",null))}},i=class{constructor(s){t(this,s)}enableAttributePassing(t,s){const a=null==t?void 0:t.closest(s);if(t&&a){const s=a.attributes;for(let e=0;e<s.length;e++){const l=s.item(e);if(l&&"data-density"!==l.name&&(l.name.startsWith("data-")||l.name.startsWith("aria-")))t.setAttribute(l.name,l.value),a.removeAttribute(l.name);else if(l&&"data-density"!==l.name&&"class"!==l.name&&"style"===l.name)t.setAttribute(l.name,l.value),a.removeAttribute(l.name);else if(l&&"class"===l.name){const s=l.value.includes("hydrated"),e=l.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(l.name,`${d?`${d} `:""}${e}`),s?a.setAttribute("class","hydrated"):a.removeAttribute(l.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-table-footer")}render(){var t;return s("tfoot",{key:"97d0abedb46046365f4d1a713133cd31a86c12c7",class:e("db-table-footer",this.className),ref:t=>{this._ref=t},id:this.id},this.rows?null===(t=this.rows)||void 0===t?void 0:t.map(((t,e)=>{var l,d;return s("db-table-row",{class:null!==(l=t.className)&&void 0!==l?l:t.class,key:`${null!==(d=this.id)&&void 0!==d?d:a()}-table-footer-row-${e}`,cells:t.cells,id:t.id})})):s("slot",null))}};export{d as db_table_body,i as db_table_footer,l as db_table_head}
@@ -1 +0,0 @@
1
- import{r as s,h as t}from"./p-LpjjuLKB.js";import{c as a}from"./p-xkoBSP8R.js";const i=class{constructor(t){s(this,t)}enableAttributePassing(s,t){const a=null==s?void 0:s.closest(t);if(s&&a){const t=a.attributes;for(let i=0;i<t.length;i++){const e=t.item(i);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))s.setAttribute(e.name,e.value),a.removeAttribute(e.name);else if(e&&"data-density"!==e.name&&"class"!==e.name&&"style"===e.name)s.setAttribute(e.name,e.value),a.removeAttribute(e.name);else if(e&&"class"===e.name){const t=e.value.includes("hydrated"),i=e.value.replace("hydrated","").trim(),d=s.getAttribute("class");s.setAttribute(e.name,`${d?`${d} `:""}${i}`),t?a.setAttribute("class","hydrated"):a.removeAttribute(e.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-section")}render(){var s,i;return t("section",{key:"21276e8ff993a9db126db60f13ec9b61ee903d52",class:a("db-section",this.className),ref:s=>{this._ref=s},id:null!==(s=this.id)&&void 0!==s?s:null===(i=this.propOverrides)||void 0===i?void 0:i.id,"data-spacing":this.spacing||"medium","data-width":this.width},t("slot",{key:"5f239ac66f8caaf528db0e9af88ac7950894ff2a"}))}};export{i as db_section}
@@ -1 +0,0 @@
1
- import{r as s,h as a}from"./p-LpjjuLKB.js";import{c as t}from"./p-xkoBSP8R.js";const e=class{constructor(a){s(this,a)}enableAttributePassing(s,a){const t=null==s?void 0:s.closest(a);if(s&&t){const a=t.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-")))s.setAttribute(i.name,i.value),t.removeAttribute(i.name);else if(i&&"data-density"!==i.name&&"class"!==i.name&&"style"===i.name)s.setAttribute(i.name,i.value),t.removeAttribute(i.name);else if(i&&"class"===i.name){const a=i.value.includes("hydrated"),e=i.value.replace("hydrated","").trim(),d=s.getAttribute("class");s.setAttribute(i.name,`${d?`${d} `:""}${e}`),a?t.setAttribute("class","hydrated"):t.removeAttribute(i.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-navigation")}render(){var s,e;return a("nav",{key:"b010a46304b40eb38d99b2e26a4f46d32fc86d97",class:t("db-navigation",this.className),ref:s=>{this._ref=s},id:null!==(s=this.id)&&void 0!==s?s:null===(e=this.propOverrides)||void 0===e?void 0:e.id},a("menu",{key:"8e731e3da4f8e414c8e0756c70bba576e93a5841"},a("slot",{key:"302cc4871db0bf06c9f35766be74b52a30ed1f82"})))}};export{e as db_navigation}
@@ -1 +0,0 @@
1
- import{r as t,h as s}from"./p-LpjjuLKB.js";import{g as a,c as d}from"./p-xkoBSP8R.js";const i=class{constructor(s){t(this,s)}enableAttributePassing(t,s){const a=null==t?void 0:t.closest(s);if(t&&a){const s=a.attributes;for(let d=0;d<s.length;d++){const i=s.item(d);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))t.setAttribute(i.name,i.value),a.removeAttribute(i.name);else if(i&&"data-density"!==i.name&&"class"!==i.name&&"style"===i.name)t.setAttribute(i.name,i.value),a.removeAttribute(i.name);else if(i&&"class"===i.name){const s=i.value.includes("hydrated"),d=i.value.replace("hydrated","").trim(),e=t.getAttribute("class");t.setAttribute(i.name,`${e?`${e} `:""}${d}`),s?a.setAttribute("class","hydrated"):a.removeAttribute(i.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-stack")}render(){var t,i;return s("div",{key:"4792ed6d6adf369b6b031e4545476b4461be0bde",class:d("db-stack",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-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)},s("slot",{key:"e4104abeed53330037edfc294fa9315e4d553783"}))}};export{i as db_stack}