@db-ux/wc-core-components 4.3.2 → 4.4.0-loading-567cd0c

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 (179) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/db-accordion-item.cjs.entry.js +2 -2
  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 +2 -2
  8. package/dist/cjs/db-checkbox.cjs.entry.js +3 -3
  9. package/dist/cjs/{db-custom-select-dropdown_5.cjs.entry.js → db-custom-select-dropdown_6.cjs.entry.js} +257 -5
  10. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +4 -4
  11. package/dist/cjs/db-custom-select.cjs.entry.js +14 -16
  12. package/dist/cjs/db-divider.cjs.entry.js +3 -3
  13. package/dist/cjs/db-drawer.cjs.entry.js +5 -5
  14. package/dist/cjs/db-header.cjs.entry.js +4 -4
  15. package/dist/cjs/db-icon.cjs.entry.js +3 -3
  16. package/dist/cjs/db-infotext.cjs.entry.js +2 -2
  17. package/dist/cjs/db-link.cjs.entry.js +3 -3
  18. package/dist/cjs/db-navigation-item.cjs.entry.js +3 -3
  19. package/dist/cjs/db-navigation.cjs.entry.js +4 -4
  20. package/dist/cjs/db-notification.cjs.entry.js +8 -4
  21. package/dist/cjs/db-page.cjs.entry.js +4 -4
  22. package/dist/cjs/db-popover.cjs.entry.js +5 -5
  23. package/dist/cjs/db-radio.cjs.entry.js +4 -4
  24. package/dist/cjs/db-section.cjs.entry.js +4 -4
  25. package/dist/cjs/db-select.cjs.entry.js +18 -7
  26. package/dist/cjs/db-stack.cjs.entry.js +4 -4
  27. package/dist/cjs/db-switch.cjs.entry.js +5 -5
  28. package/dist/cjs/db-tab-item_3.cjs.entry.js +8 -8
  29. package/dist/cjs/db-tabs.cjs.entry.js +4 -4
  30. package/dist/cjs/db-textarea.cjs.entry.js +5 -5
  31. package/dist/cjs/db-tooltip.cjs.entry.js +5 -5
  32. package/dist/cjs/db-ux.cjs.js +3 -3
  33. package/dist/cjs/{document-click-listener-B2Xzqbvs.js → document-click-listener-Bb3Tinb8.js} +1 -1
  34. package/dist/cjs/{document-scroll-listener-C_v46oIg.js → document-scroll-listener-unypEU42.js} +1 -1
  35. package/dist/cjs/{form-components-BrtqMwX0.js → form-components-LsqVohyb.js} +1 -1
  36. package/dist/cjs/{index-CW5aVEyQ.js → index-CsHqnQII.js} +26 -0
  37. package/dist/cjs/{index-Mi8dWSSD.js → index-TxzPzc5I.js} +69 -6
  38. package/dist/cjs/index.cjs.js +9 -3
  39. package/dist/cjs/loader.cjs.js +2 -2
  40. package/dist/collection/collection-manifest.json +2 -1
  41. package/dist/collection/components/custom-select/custom-select.js +15 -17
  42. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +2 -2
  43. package/dist/collection/components/divider/divider.js +1 -1
  44. package/dist/collection/components/drawer/drawer.js +3 -3
  45. package/dist/collection/components/header/header.js +2 -2
  46. package/dist/collection/components/icon/icon.js +1 -1
  47. package/dist/collection/components/link/link.js +1 -1
  48. package/dist/collection/components/loading-indicator/examples/_indicators.data.js +91 -0
  49. package/dist/collection/components/loading-indicator/index.js +2 -0
  50. package/dist/collection/components/loading-indicator/loading-indicator.js +713 -0
  51. package/dist/collection/components/loading-indicator/model.js +2 -0
  52. package/dist/collection/components/navigation/navigation.js +2 -2
  53. package/dist/collection/components/navigation-item/navigation-item.js +1 -1
  54. package/dist/collection/components/notification/notification.js +41 -11
  55. package/dist/collection/components/page/page.js +2 -2
  56. package/dist/collection/components/popover/popover.js +2 -2
  57. package/dist/collection/components/radio/radio.js +1 -1
  58. package/dist/collection/components/section/section.js +2 -2
  59. package/dist/collection/components/select/select.js +49 -12
  60. package/dist/collection/components/stack/stack.js +2 -2
  61. package/dist/collection/components/switch/switch.js +2 -2
  62. package/dist/collection/components/tab-item/tab-item.js +2 -2
  63. package/dist/collection/components/tab-list/tab-list.js +2 -2
  64. package/dist/collection/components/tab-panel/tab-panel.js +2 -2
  65. package/dist/collection/components/tabs/tabs.js +2 -2
  66. package/dist/collection/components/tag/tag.js +2 -2
  67. package/dist/collection/components/textarea/textarea.js +2 -2
  68. package/dist/collection/components/tooltip/tooltip.js +2 -2
  69. package/dist/collection/index.js +2 -0
  70. package/dist/collection/utils/index.js +25 -0
  71. package/dist/custom-elements.json +2499 -888
  72. package/dist/db-ux/db-ux.esm.js +1 -1
  73. package/dist/db-ux/index.esm.js +1 -1
  74. package/dist/db-ux/{p-e7e35164.entry.js → p-0a073f5e.entry.js} +1 -1
  75. package/dist/db-ux/p-19def2d3.entry.js +1 -0
  76. package/dist/db-ux/p-1bbe8d13.entry.js +1 -0
  77. package/dist/db-ux/{p-197f90e4.entry.js → p-2a1481e9.entry.js} +1 -1
  78. package/dist/db-ux/{p-b6538eed.entry.js → p-30ceac5f.entry.js} +1 -1
  79. package/dist/db-ux/p-34862d35.entry.js +1 -0
  80. package/dist/db-ux/{p-44f2f09d.entry.js → p-3aba68af.entry.js} +1 -1
  81. package/dist/db-ux/p-46b4ed7f.entry.js +1 -0
  82. package/dist/db-ux/{p-5bca6d35.entry.js → p-4b4916fb.entry.js} +1 -1
  83. package/dist/db-ux/{p-78f6b72a.entry.js → p-4bda74c9.entry.js} +1 -1
  84. package/dist/db-ux/{p-9a543d5a.entry.js → p-5c55381c.entry.js} +1 -1
  85. package/dist/db-ux/{p-a1e66a3d.entry.js → p-642484ca.entry.js} +1 -1
  86. package/dist/db-ux/p-66e24856.entry.js +1 -0
  87. package/dist/db-ux/p-69ebe202.entry.js +1 -0
  88. package/dist/db-ux/{p-a232eea2.entry.js → p-78fd1504.entry.js} +1 -1
  89. package/dist/db-ux/p-7c0621ef.entry.js +1 -0
  90. package/dist/db-ux/{p-286f83f4.entry.js → p-8931bdc6.entry.js} +1 -1
  91. package/dist/db-ux/{p-26fa6bc1.entry.js → p-8e63e73c.entry.js} +1 -1
  92. package/dist/db-ux/p-8ff8418d.entry.js +1 -0
  93. package/dist/db-ux/{p-29d3070a.entry.js → p-919ff123.entry.js} +1 -1
  94. package/dist/db-ux/p-B6-lLNGQ.js +2 -0
  95. package/dist/db-ux/p-BhXdfCpU.js +1 -0
  96. package/dist/db-ux/p-C4x0SOcx.js +1 -0
  97. package/dist/db-ux/{p-Cb-k135w.js → p-CAEpg8tJ.js} +1 -1
  98. package/dist/db-ux/{p-EqlW5Wqf.js → p-RHqkTr-_.js} +1 -1
  99. package/dist/db-ux/p-a01a5c4a.entry.js +1 -0
  100. package/dist/db-ux/{p-027fb90a.entry.js → p-a95f6c84.entry.js} +1 -1
  101. package/dist/db-ux/{p-e30a4814.entry.js → p-ada8a2ac.entry.js} +1 -1
  102. package/dist/db-ux/p-b05bc567.entry.js +1 -0
  103. package/dist/db-ux/p-c1825fa6.entry.js +1 -0
  104. package/dist/db-ux/p-e847596c.entry.js +1 -0
  105. package/dist/db-ux/{p-13dd39f1.entry.js → p-f3cc7450.entry.js} +1 -1
  106. package/dist/db-ux/{p-a7463ead.entry.js → p-f64ab366.entry.js} +1 -1
  107. package/dist/db-ux/p-f71548d2.entry.js +1 -0
  108. package/dist/db-ux/{p-29efc51e.entry.js → p-fd4f5fac.entry.js} +1 -1
  109. package/dist/esm/db-accordion-item.entry.js +2 -2
  110. package/dist/esm/db-accordion.entry.js +2 -2
  111. package/dist/esm/db-badge.entry.js +2 -2
  112. package/dist/esm/db-brand.entry.js +2 -2
  113. package/dist/esm/db-button.entry.js +2 -2
  114. package/dist/esm/db-card.entry.js +2 -2
  115. package/dist/esm/db-checkbox.entry.js +3 -3
  116. package/dist/esm/{db-custom-select-dropdown_5.entry.js → db-custom-select-dropdown_6.entry.js} +258 -7
  117. package/dist/esm/db-custom-select-form-field.entry.js +4 -4
  118. package/dist/esm/db-custom-select.entry.js +14 -16
  119. package/dist/esm/db-divider.entry.js +3 -3
  120. package/dist/esm/db-drawer.entry.js +5 -5
  121. package/dist/esm/db-header.entry.js +4 -4
  122. package/dist/esm/db-icon.entry.js +3 -3
  123. package/dist/esm/db-infotext.entry.js +2 -2
  124. package/dist/esm/db-link.entry.js +3 -3
  125. package/dist/esm/db-navigation-item.entry.js +3 -3
  126. package/dist/esm/db-navigation.entry.js +4 -4
  127. package/dist/esm/db-notification.entry.js +8 -4
  128. package/dist/esm/db-page.entry.js +4 -4
  129. package/dist/esm/db-popover.entry.js +5 -5
  130. package/dist/esm/db-radio.entry.js +4 -4
  131. package/dist/esm/db-section.entry.js +4 -4
  132. package/dist/esm/db-select.entry.js +18 -7
  133. package/dist/esm/db-stack.entry.js +4 -4
  134. package/dist/esm/db-switch.entry.js +5 -5
  135. package/dist/esm/db-tab-item_3.entry.js +8 -8
  136. package/dist/esm/db-tabs.entry.js +4 -4
  137. package/dist/esm/db-textarea.entry.js +5 -5
  138. package/dist/esm/db-tooltip.entry.js +5 -5
  139. package/dist/esm/db-ux.js +4 -4
  140. package/dist/esm/{document-click-listener-B_LaIr0O.js → document-click-listener-CmYoXpGE.js} +1 -1
  141. package/dist/esm/{document-scroll-listener-dHAsT0Tb.js → document-scroll-listener-65bHuFAN.js} +1 -1
  142. package/dist/esm/{form-components-Cl_wgkeJ.js → form-components-BLsiOrPI.js} +1 -1
  143. package/dist/esm/{index-9pYJFapZ.js → index-B6-lLNGQ.js} +69 -6
  144. package/dist/esm/{index-BwBkekqp.js → index-C4x0SOcx.js} +26 -1
  145. package/dist/esm/index.js +7 -4
  146. package/dist/esm/loader.js +3 -3
  147. package/dist/types/components/custom-select/custom-select.d.ts +1 -1
  148. package/dist/types/components/link/model.d.ts +2 -2
  149. package/dist/types/components/loading-indicator/examples/_indicators.data.d.ts +49 -0
  150. package/dist/types/components/loading-indicator/index.d.ts +2 -0
  151. package/dist/types/components/loading-indicator/loading-indicator.d.ts +56 -0
  152. package/dist/types/components/loading-indicator/model.d.ts +39 -0
  153. package/dist/types/components/notification/model.d.ts +2 -2
  154. package/dist/types/components/notification/notification.d.ts +2 -1
  155. package/dist/types/components/select/model.d.ts +10 -0
  156. package/dist/types/components/select/select.d.ts +3 -1
  157. package/dist/types/components.d.ts +91 -0
  158. package/dist/types/index.d.ts +2 -0
  159. package/dist/types/shared/model.d.ts +12 -8
  160. package/dist/types/utils/index.d.ts +12 -0
  161. package/dist/vscode.html-custom-data.json +182 -22
  162. package/dist/web-types.json +316 -51
  163. package/package.json +4 -4
  164. package/dist/db-ux/p-15241486.entry.js +0 -1
  165. package/dist/db-ux/p-2069117e.entry.js +0 -1
  166. package/dist/db-ux/p-2baf9c08.entry.js +0 -1
  167. package/dist/db-ux/p-39d22a0f.entry.js +0 -1
  168. package/dist/db-ux/p-462d8de5.entry.js +0 -1
  169. package/dist/db-ux/p-58611dcc.entry.js +0 -1
  170. package/dist/db-ux/p-623a6b59.entry.js +0 -1
  171. package/dist/db-ux/p-9d5365f7.entry.js +0 -1
  172. package/dist/db-ux/p-9pYJFapZ.js +0 -2
  173. package/dist/db-ux/p-BwBkekqp.js +0 -1
  174. package/dist/db-ux/p-a98bde77.entry.js +0 -1
  175. package/dist/db-ux/p-af0e61d0.entry.js +0 -1
  176. package/dist/db-ux/p-b729b29f.entry.js +0 -1
  177. package/dist/db-ux/p-bde7ff5f.entry.js +0 -1
  178. package/dist/db-ux/p-c9d514e5.entry.js +0 -1
  179. package/dist/db-ux/p-cqrM3KjS.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @db-ux/wc-core-components
2
2
 
3
+ ## 4.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - feat: add `role` property to DBNotification & automatically add role based on semantic if no `role` or `ariaLive` is provided to increase UX for screen-reader users - [see commit 177d71e](https://github.com/db-ux-design-system/core-web/commit/177d71e287a64a6491ba446e7812d0adbda1717e)
8
+
9
+ - feat(DBSelect): hide empty first option in `required` selects with placeholder after the first user selection, and add `showEmptyOption` prop to overwrite this - [see commit 4280bc4](https://github.com/db-ux-design-system/core-web/commit/4280bc47538d6983d6bb5575f012b6c6b25b40e8)
10
+
3
11
  ## 4.3.2
4
12
 
5
13
  ### Patch Changes
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Mi8dWSSD.js');
3
+ var index = require('./index-TxzPzc5I.js');
4
4
  var constants = require('./constants-bMY2_d8A.js');
5
- var index$1 = require('./index-CW5aVEyQ.js');
5
+ var index$1 = require('./index-CsHqnQII.js');
6
6
 
7
7
  const DBAccordionItem = class {
8
8
  constructor(hostRef) {
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Mi8dWSSD.js');
3
+ var index = require('./index-TxzPzc5I.js');
4
4
  var constants = require('./constants-bMY2_d8A.js');
5
- var index$1 = require('./index-CW5aVEyQ.js');
5
+ var index$1 = require('./index-CsHqnQII.js');
6
6
 
7
7
  const DBAccordion = class {
8
8
  constructor(hostRef) {
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Mi8dWSSD.js');
3
+ var index = require('./index-TxzPzc5I.js');
4
4
  var constants = require('./constants-bMY2_d8A.js');
5
- var index$1 = require('./index-CW5aVEyQ.js');
5
+ var index$1 = require('./index-CsHqnQII.js');
6
6
 
7
7
  const DBBadge = class {
8
8
  constructor(hostRef) {
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Mi8dWSSD.js');
3
+ var index = require('./index-TxzPzc5I.js');
4
4
  var constants = require('./constants-bMY2_d8A.js');
5
- var index$1 = require('./index-CW5aVEyQ.js');
5
+ var index$1 = require('./index-CsHqnQII.js');
6
6
 
7
7
  const DBBrand = class {
8
8
  constructor(hostRef) {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Mi8dWSSD.js');
4
- var index$1 = require('./index-CW5aVEyQ.js');
3
+ var index = require('./index-TxzPzc5I.js');
4
+ var index$1 = require('./index-CsHqnQII.js');
5
5
 
6
6
  const DBButton = class {
7
7
  constructor(hostRef) {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Mi8dWSSD.js');
4
- var index$1 = require('./index-CW5aVEyQ.js');
3
+ var index = require('./index-TxzPzc5I.js');
4
+ var index$1 = require('./index-CsHqnQII.js');
5
5
 
6
6
  const DBCard = class {
7
7
  constructor(hostRef) {
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Mi8dWSSD.js');
3
+ var index = require('./index-TxzPzc5I.js');
4
4
  var constants = require('./constants-bMY2_d8A.js');
5
- var index$1 = require('./index-CW5aVEyQ.js');
6
- var formComponents = require('./form-components-BrtqMwX0.js');
5
+ var index$1 = require('./index-CsHqnQII.js');
6
+ var formComponents = require('./form-components-LsqVohyb.js');
7
7
 
8
8
  const DBCheckbox = class {
9
9
  constructor(hostRef) {
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Mi8dWSSD.js');
4
- var index$1 = require('./index-CW5aVEyQ.js');
3
+ var index = require('./index-TxzPzc5I.js');
4
+ var index$1 = require('./index-CsHqnQII.js');
5
5
  var constants = require('./constants-bMY2_d8A.js');
6
- var formComponents = require('./form-components-BrtqMwX0.js');
6
+ var formComponents = require('./form-components-LsqVohyb.js');
7
7
 
8
8
  const DBCustomSelectDropdown = class {
9
9
  constructor(hostRef) {
@@ -463,14 +463,266 @@ const DBTag = class {
463
463
  }
464
464
  render() {
465
465
  var _a;
466
- return (index.h("div", { key: 'db86fabfde3f9d1e41a863f58db34eb88d067440', class: index$1.cls("db-tag", this.className), ref: (el) => {
466
+ return (index.h("div", { key: '6be4d8cc4b856ac198e4c207860e9529c436060f', class: index$1.cls("db-tag", this.className), ref: (el) => {
467
467
  this._ref = el;
468
- }, id: this.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": index$1.getBooleanAsString((_a = this.showCheckState) !== null && _a !== void 0 ? _a : true), "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-no-text": index$1.getBooleanAsString(this.noText), "data-overflow": index$1.getBooleanAsString(this.overflow) }, index.h("slot", { key: '1bef11e30ca670fa5bf1d438cd12c43e233cded4', name: "content" }), index.h("slot", { key: '3f94141f60688d0730478711748fa9dbb194f810' }), this.text ? this.text : null, this.behavior === "removable" ? (index.h("button", { class: "db-button db-tab-remove-button", "data-icon": "cross", "data-size": "small", "data-no-text": "true", "data-variant": "ghost", type: "button", onClick: (event) => this.handleRemove(event) }, index.h("db-tooltip", { variant: "label" }, this.getRemoveButtonText()))) : null));
468
+ }, id: this.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": index$1.getBooleanAsString((_a = this.showCheckState) !== null && _a !== void 0 ? _a : true), "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-no-text": index$1.getBooleanAsString(this.noText), "data-overflow": index$1.getBooleanAsString(this.overflow) }, index.h("slot", { key: '3ed9ce9b0eb66bb92a2c4a5303be1b0d16001841', name: "content" }), index.h("slot", { key: '9098de64b545b04f81f6a980700879610f9ec7bc' }), this.text ? this.text : null, this.behavior === "removable" ? (index.h("button", { class: "db-button db-tab-remove-button", "data-icon": "cross", "data-size": "small", "data-no-text": "true", "data-variant": "ghost", type: "button", onClick: (event) => this.handleRemove(event) }, index.h("db-tooltip", { variant: "label" }, this.getRemoveButtonText()))) : null));
469
469
  }
470
470
  };
471
471
 
472
+ const DBLoadingIndicator = class {
473
+ constructor(hostRef) {
474
+ index.registerInstance(this, hostRef);
475
+ this.timeout = index.createEvent(this, "timeout");
476
+ this.autoDisable = true;
477
+ this.indeterminate = true;
478
+ this.size = "medium";
479
+ this.variant = "inline";
480
+ this._id = constants.DEFAULT_ID;
481
+ this._loadingState = "inactive";
482
+ this._previousLoadingState = undefined;
483
+ this._style = {};
484
+ this.initialized = false;
485
+ }
486
+ getPercentage() {
487
+ if (this.indeterminate || !this.value || !this.max) {
488
+ return;
489
+ }
490
+ return `${(Number(this.value) / Number(this.max)).toFixed(2)}`;
491
+ }
492
+ getRole() {
493
+ if (this.role) {
494
+ if (this.role === "none") {
495
+ return;
496
+ }
497
+ return this.role;
498
+ }
499
+ return "status";
500
+ }
501
+ handleParentDisabled() {
502
+ if (this._ref && this.autoDisable && this.initialized) {
503
+ let parent = this._ref.parentElement;
504
+ if (parent && parent.localName === "db-loading-indicator") {
505
+ parent = parent.parentElement;
506
+ }
507
+ if (parent && "disabled" in parent) {
508
+ parent.disabled = this._loadingState !== "inactive";
509
+ }
510
+ }
511
+ }
512
+ handleParentAria(remove) {
513
+ if (this._ref && this._id && this.initialized) {
514
+ let parent = this._ref.parentElement;
515
+ if (parent && parent.localName === "db-loading-indicator") {
516
+ parent = parent.parentElement;
517
+ }
518
+ if (!parent)
519
+ return;
520
+ const isButton = (parent === null || parent === void 0 ? void 0 : parent.localName) === "button";
521
+ if (!(isButton || this.overlay))
522
+ return;
523
+ const ariaAttribute = isButton ? "aria-labelledby" : "aria-describedby";
524
+ const ariaLabelledBy = parent.getAttribute(ariaAttribute);
525
+ let labelledByElements = ariaLabelledBy ? ariaLabelledBy.split(",") : [];
526
+ if (remove || this._loadingState === "inactive") {
527
+ if (labelledByElements.includes(this._id)) {
528
+ labelledByElements = labelledByElements.filter((elementId) => elementId !== this._id);
529
+ if (!isButton) {
530
+ parent.ariaBusy = null;
531
+ }
532
+ }
533
+ else {
534
+ return;
535
+ }
536
+ }
537
+ else {
538
+ if (!labelledByElements.includes(this._id)) {
539
+ labelledByElements.push(this._id);
540
+ }
541
+ if (!isButton) {
542
+ parent.ariaBusy = this._loadingState === "active" ? "true" : null;
543
+ }
544
+ }
545
+ if (labelledByElements.length) {
546
+ parent.setAttribute(ariaAttribute, labelledByElements.join(","));
547
+ }
548
+ else {
549
+ parent.removeAttribute(ariaAttribute);
550
+ }
551
+ }
552
+ }
553
+ /**
554
+ * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
555
+ * @param element the ref for the component
556
+ * @param customElementSelector the custom element like `my-component`
557
+ */
558
+ enableAttributePassing(element, customElementSelector) {
559
+ const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
560
+ if (element && parent) {
561
+ const attributes = parent.attributes;
562
+ for (let i = 0; i < attributes.length; i++) {
563
+ const attr = attributes.item(i);
564
+ if (attr &&
565
+ (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
566
+ element.setAttribute(attr.name, attr.value);
567
+ parent.removeAttribute(attr.name);
568
+ }
569
+ if (attr && attr.name === "class") {
570
+ const isWebComponent = attr.value.includes("hydrated");
571
+ const value = attr.value.replace("hydrated", "").trim();
572
+ const currentClass = element.getAttribute("class");
573
+ element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
574
+ if (isWebComponent) {
575
+ // Stencil is using this class for lazy loading component
576
+ parent.setAttribute("class", "hydrated");
577
+ }
578
+ else {
579
+ parent.removeAttribute(attr.name);
580
+ }
581
+ }
582
+ }
583
+ }
584
+ }
585
+ watch0Fn() {
586
+ this.handleParentDisabled();
587
+ }
588
+ watch0() {
589
+ this.watch0Fn();
590
+ }
591
+ watch1Fn() {
592
+ this.handleParentAria(false);
593
+ }
594
+ watch1() {
595
+ this.watch1Fn();
596
+ }
597
+ watch2Fn() {
598
+ if (this.timeout) {
599
+ // Not merged if as workaround for angular
600
+ if (this._loadingState !== "inactive" &&
601
+ this._loadingState !== this._previousLoadingState) {
602
+ this._previousLoadingState = this._loadingState;
603
+ void index$1.delay(() => {
604
+ if (this.timeout) {
605
+ this.timeout.emit(this._loadingState);
606
+ }
607
+ }, this._loadingState === "active" ? 5000 : 2000);
608
+ }
609
+ }
610
+ }
611
+ watch2() {
612
+ this.watch2Fn();
613
+ }
614
+ watch3Fn() {
615
+ if (this._loadingState === this.state)
616
+ return;
617
+ if (this.state) {
618
+ this._loadingState = this.state;
619
+ }
620
+ else if (this.indeterminate === undefined || this.indeterminate) {
621
+ this._loadingState = "active";
622
+ }
623
+ else {
624
+ this._loadingState = "inactive";
625
+ }
626
+ }
627
+ watch3() {
628
+ this.watch3Fn();
629
+ }
630
+ watch4Fn() {
631
+ if (this._ref) {
632
+ if (this.delay === "slow" || this.delay === "fast") {
633
+ void index$1.delay(() => {
634
+ if (this._ref) {
635
+ this._ref.dataset["delay"] = "";
636
+ }
637
+ }, this.delay === "slow" ? 500 : 250);
638
+ }
639
+ }
640
+ }
641
+ watch4() {
642
+ this.watch4Fn();
643
+ }
644
+ watch5Fn() {
645
+ this._style = {
646
+ "--db-loading-indicator-percentage": this.getPercentage(),
647
+ };
648
+ }
649
+ watch5() {
650
+ this.watch5Fn();
651
+ }
652
+ componentDidLoad() {
653
+ this.enableAttributePassing(this._ref, "db-loading-indicator");
654
+ this._id = this.id || "loading-indicator-" + index$1.uuid();
655
+ this.initialized = true;
656
+ this.watch0Fn();
657
+ this.watch1Fn();
658
+ this.watch2Fn();
659
+ this.watch3Fn();
660
+ this.watch4Fn();
661
+ this.watch5Fn();
662
+ }
663
+ disconnectedCallback() {
664
+ this.handleParentAria(true);
665
+ this.handleParentDisabled();
666
+ }
667
+ render() {
668
+ var _a, _b;
669
+ return (index.h("div", { key: '4467fd7c9ebec6fe699995183b870ea08fa60ba7', class: index$1.cls("db-loading-indicator", this.className), ref: (el) => {
670
+ this._ref = el;
671
+ }, style: this._style, "data-indeterminate": index$1.getBooleanAsString(this.indeterminate), "data-size": this.size, "data-variant": this.variant, "data-delay": this.delay, "data-state": this._loadingState, "data-overlay": index$1.getBooleanAsString(this.overlay) }, this.variant !== "progress-bar" ? (index.h("svg", { class: "db-loading-indicator-circle", "aria-hidden": "true", viewBox: this.variant === "inline" ? "10 10 20 20" : "32 32 64 64" }, index.h("circle", { class: "db-loading-indicator-circle-track" }), index.h("circle", { class: "db-loading-indicator-circle-segment" }))) : null, index.h("div", { key: '7ea9f9fd64f1b7d073ca7917a4e8eb905eb344f0', role: this.getRole() }, index.h("label", { key: 'de7fd82a1e14e459735cf596f18104722965e7f2', "data-show-label": index$1.getBooleanAsString(this.showLabel), id: this._id }, this.label ? this.label : index.h("slot", null), index.h("progress", { key: 'd2abf58f6595675e873056610e1bec18bf4dff85', value: this.indeterminate ? undefined : (_a = this.value) !== null && _a !== void 0 ? _a : 0, max: this.indeterminate ? undefined : (_b = this.max) !== null && _b !== void 0 ? _b : 100 }, this.indeterminate ? undefined : this.progressText)), !this.indeterminate ? (index.h("span", { "aria-hidden": "true", "data-show-progress-text": index$1.getBooleanAsString(this.showProgressText) }, this.progressText)) : null)));
672
+ }
673
+ static get watchers() { return {
674
+ "_ref": [{
675
+ "watch0": 0
676
+ }, {
677
+ "watch1": 0
678
+ }, {
679
+ "watch4": 0
680
+ }],
681
+ "initialized": [{
682
+ "watch0": 0
683
+ }, {
684
+ "watch1": 0
685
+ }],
686
+ "autoDisable": [{
687
+ "watch0": 0
688
+ }],
689
+ "_loadingState": [{
690
+ "watch0": 0
691
+ }, {
692
+ "watch1": 0
693
+ }, {
694
+ "watch2": 0
695
+ }],
696
+ "overlay": [{
697
+ "watch1": 0
698
+ }],
699
+ "_id": [{
700
+ "watch1": 0
701
+ }],
702
+ "timeout": [{
703
+ "watch2": 0
704
+ }],
705
+ "state": [{
706
+ "watch3": 0
707
+ }],
708
+ "delay": [{
709
+ "watch4": 0
710
+ }],
711
+ "indeterminate": [{
712
+ "watch5": 0
713
+ }],
714
+ "value": [{
715
+ "watch5": 0
716
+ }],
717
+ "max": [{
718
+ "watch5": 0
719
+ }]
720
+ }; }
721
+ };
722
+
472
723
  exports.db_custom_select_dropdown = DBCustomSelectDropdown;
473
724
  exports.db_custom_select_list = DBCustomSelectList;
474
725
  exports.db_custom_select_list_item = DBCustomSelectListItem;
475
726
  exports.db_input = DBInput;
727
+ exports.db_loading_indicator = DBLoadingIndicator;
476
728
  exports.db_tag = DBTag;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Mi8dWSSD.js');
4
- var index$1 = require('./index-CW5aVEyQ.js');
3
+ var index = require('./index-TxzPzc5I.js');
4
+ var index$1 = require('./index-CsHqnQII.js');
5
5
 
6
6
  const DBCustomSelectFormField = class {
7
7
  constructor(hostRef) {
@@ -43,9 +43,9 @@ const DBCustomSelectFormField = class {
43
43
  this.enableAttributePassing(this._ref, "db-custom-select-form-field");
44
44
  }
45
45
  render() {
46
- return (index.h("summary", { key: '22a05256e65e56208335b9a5c840e75988a57182', class: index$1.cls("db-custom-select-form-field", this.className), ref: (el) => {
46
+ return (index.h("summary", { key: 'd99ab4a28f0604d5aa10d54e5da18ce976a93bf8', class: index$1.cls("db-custom-select-form-field", this.className), ref: (el) => {
47
47
  this._ref = el;
48
- }, id: this.id }, index.h("slot", { key: '3c6c62df9bf0d2a73e37a9ad69d3a46daa672984' })));
48
+ }, id: this.id }, index.h("slot", { key: '40f581da69159f298d83a097e08c2f74e5dfcb23' })));
49
49
  }
50
50
  };
51
51
 
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Mi8dWSSD.js');
3
+ var index = require('./index-TxzPzc5I.js');
4
4
  var constants = require('./constants-bMY2_d8A.js');
5
- var index$1 = require('./index-CW5aVEyQ.js');
6
- var documentClickListener = require('./document-click-listener-B2Xzqbvs.js');
7
- var documentScrollListener = require('./document-scroll-listener-C_v46oIg.js');
5
+ var index$1 = require('./index-CsHqnQII.js');
6
+ var documentClickListener = require('./document-click-listener-Bb3Tinb8.js');
7
+ var documentScrollListener = require('./document-scroll-listener-unypEU42.js');
8
8
  var floatingComponents = require('./floating-components-ogUqz72V.js');
9
- var formComponents = require('./form-components-BrtqMwX0.js');
9
+ var formComponents = require('./form-components-LsqVohyb.js');
10
10
 
11
11
  const DBCustomSelect = class {
12
12
  constructor(hostRef) {
@@ -772,30 +772,28 @@ const DBCustomSelect = class {
772
772
  (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
773
773
  }
774
774
  render() {
775
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
776
- return (index.h("div", { key: '5ab3c80f3af53b7795e709feaea160e4aa26f281', class: index$1.cls("db-custom-select", this.className), id: this._id, ref: (el) => {
775
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
776
+ return (index.h("div", { key: '633c651cd764cf5bb424955fa5e2bfd30e5e8e28', class: index$1.cls("db-custom-select", this.className), id: this._id, ref: (el) => {
777
777
  this._ref = el;
778
778
  }, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
779
779
  this.selectedType === "tag" &&
780
780
  this.multiple
781
781
  ? "above"
782
- : this.variant, "data-required": index$1.getBooleanAsString(this.required), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": index$1.getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon) }, index.h("label", { key: '281d6b75a9ae62b6e2f59c04876603988366952d', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL, index.h("select", { key: '26029a01c106666155c40cac98a7f67739145491', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
782
+ : this.variant, "data-required": index$1.getBooleanAsString(this.required), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": index$1.getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon) }, index.h("label", { key: 'c6341945f060e403c8b0d5a3bb65c8055a07e3c4', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL, index.h("select", { key: 'f7f9c77a12b40942365717378617ea45d38d3c0d', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
783
783
  this.selectRef = el;
784
784
  }, form: this.form, name: this.name, multiple: index$1.getBoolean(this.multiple, "multiple"), disabled: index$1.getBoolean(this.disabled, "disabled"), required: index$1.getBoolean(this.required, "required"), onChange: (event) => this.satisfyReact(event) }, ((_b = this.options) === null || _b === void 0 ? void 0 : _b.length)
785
- ? (_c = this.options) === null || _c === void 0 ? void 0 : _c.map((option) => (index.h("option", { disabled: option.disabled, value: option.value, key: undefined }, this.getOptionLabel(option))))
786
- : null)), index.h("details", { key: '60f50d851ebf3b180094bdbd1c9acb3c6e1069af', ref: (el) => {
785
+ ? (_c = this.options) === null || _c === void 0 ? void 0 : _c.map((option) => (index.h("option", { disabled: option.disabled, value: option.value }, this.getOptionLabel(option))))
786
+ : null)), index.h("details", { key: '3fa0220b25ec6de48ccc29628418094022835df1', ref: (el) => {
787
787
  this.detailsRef = el;
788
- }, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '369ba87529acc1e3b2d12869174eff0a824c0176' }), this.options ? (index.h(index.Fragment, null, index.h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": index$1.getBooleanAsString(this.disabled), "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (index.h("span", { "data-visually-hidden": index$1.getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this.selectedPrefix ? (index.h("span", { "data-visually-hidden": "true" }, this.selectedPrefix)) : null, this._selectedLabels)) : null, this.selectedType === "tag" ? (index.h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option, index$1) => (index.h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(option), onRemove: (event) => this.handleTagRemove(option, event), key: undefined }, this.getOptionLabel(option)))))) : null), index.h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (index.h("div", null, index.h("db-input", { type: "search", ref: (el) => {
788
+ }, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '7eb160f589f3dbb0e171ac49bb310272108511b8' }), this.options ? (index.h(index.Fragment, null, index.h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": index$1.getBooleanAsString(this.disabled), "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (index.h("span", { "data-visually-hidden": index$1.getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this.selectedPrefix ? (index.h("span", { "data-visually-hidden": "true" }, this.selectedPrefix)) : null, this._selectedLabels)) : null, this.selectedType === "tag" ? (index.h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option, index$1) => (index.h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(option), onRemove: (event) => this.handleTagRemove(option, event) }, this.getOptionLabel(option)))))) : null), index.h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (index.h("div", null, index.h("db-input", { type: "search", ref: (el) => {
789
789
  this.searchInputRef = el;
790
790
  }, name: this._id, form: this._id, showLabel: false, value: this._searchValue, label: (_f = this.searchLabel) !== null && _f !== void 0 ? _f : constants.DEFAULT_LABEL, placeholder: (_g = this.searchPlaceholder) !== null && _g !== void 0 ? _g : this.searchLabel, ariaDescribedBy: this._hasNoOptions || this.showLoading
791
791
  ? this._infoTextId
792
- : undefined, onInput: (event) => this.handleSearch(event) }))) : null, this._hasNoOptions || this.showLoading ? (index.h("db-infotext", { id: this._infoTextId, icon: this.showLoading ? "circular_arrows" : undefined, semantic: this.showLoading ? "informational" : "warning" }, (_h = (this.showLoading
793
- ? this.loadingText
794
- : this.noResultsText)) !== null && _h !== void 0 ? _h : constants.DEFAULT_MESSAGE)) : (index.h(index.Fragment, null, this.selectAllEnabled ? (index.h("div", null, index.h("div", { class: "db-checkbox db-custom-select-list-item" }, index.h("label", null, index.h("input", { type: "checkbox", value: "select-all", ref: (el) => {
792
+ : undefined, onInput: (event) => this.handleSearch(event) }))) : null, this._hasNoOptions || this.showLoading ? (this.showLoading ? (index.h("db-loading-indicator", { id: this._infoTextId }, (_h = this.loadingText) !== null && _h !== void 0 ? _h : constants.DEFAULT_MESSAGE)) : (index.h("db-infotext", { semantic: "warning", id: this._infoTextId }, (_j = this.noResultsText) !== null && _j !== void 0 ? _j : constants.DEFAULT_MESSAGE))) : (index.h(index.Fragment, null, this.selectAllEnabled ? (index.h("div", null, index.h("div", { class: "db-checkbox db-custom-select-list-item" }, index.h("label", null, index.h("input", { type: "checkbox", value: "select-all", ref: (el) => {
795
793
  this.selectAllRef = el;
796
- }, form: this._id, checked: this.selectAllChecked, onChange: (event) => this.handleSelectAll(event) }), this.getSelectAllLabel())))) : null, index.h("db-custom-select-list", { multiple: index$1.getBoolean(this.multiple, "multiple"), label: (_k = (_j = this.listLabel) !== null && _j !== void 0 ? _j : this.label) !== null && _k !== void 0 ? _k : constants.DEFAULT_LABEL }, (_l = this._options) === null || _l === void 0 ? void 0 : _l.map((option) => (index.h("db-custom-select-list-item", { type: this.multiple ? "checkbox" : "radio", showDivider: option.showDivider, icon: option.icon, isGroupTitle: option.isGroupTitle, groupTitle: this.getOptionLabel(option), name: this._id, checked: this.getOptionChecked(option.value), disabled: option.disabled, value: option.value, onChange: () => this.handleSelect(option.value), key: undefined }, !option.isGroupTitle
794
+ }, form: this._id, checked: this.selectAllChecked, onChange: (event) => this.handleSelectAll(event) }), this.getSelectAllLabel())))) : null, index.h("db-custom-select-list", { multiple: index$1.getBoolean(this.multiple, "multiple"), label: (_l = (_k = this.listLabel) !== null && _k !== void 0 ? _k : this.label) !== null && _l !== void 0 ? _l : constants.DEFAULT_LABEL }, (_m = this._options) === null || _m === void 0 ? void 0 : _m.map((option) => (index.h("db-custom-select-list-item", { type: this.multiple ? "checkbox" : "radio", showDivider: option.showDivider, icon: option.icon, isGroupTitle: option.isGroupTitle, groupTitle: this.getOptionLabel(option), name: this._id, checked: this.getOptionChecked(option.value), disabled: option.disabled, value: option.value, onChange: () => this.handleSelect(option.value) }, !option.isGroupTitle
797
795
  ? this.getOptionLabel(option)
798
- : null)))))), index.h("div", null, index.h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose(undefined, true) }, (_m = this.mobileCloseButtonText) !== null && _m !== void 0 ? _m : constants.DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (index.h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, index.h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, index.h("span", { key: 'b4a9cebfe1db06422f428bac4d04d581bcadbb95', class: "db-custom-select-placeholder", "aria-hidden": index$1.getBooleanAsString(true), id: this._placeholderId }, (_q = this.placeholder) !== null && _q !== void 0 ? _q : this.label), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: 'a407a98afeecf7634770f34e2f427a09d657419a', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '4465c3745c21e5333c8498927416fd0f244673dd', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
796
+ : null)))))), index.h("div", null, index.h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose(undefined, true) }, (_o = this.mobileCloseButtonText) !== null && _o !== void 0 ? _o : constants.DEFAULT_CLOSE_BUTTON))))) : null), ((_p = this.showClearSelection) !== null && _p !== void 0 ? _p : true) && ((_q = this._values) === null || _q === void 0 ? void 0 : _q.length) ? (index.h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, index.h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, index.h("span", { key: 'df9efbb6d3dbae644a5dbfc0fc92488f5b67da54', class: "db-custom-select-placeholder", "aria-hidden": index$1.getBooleanAsString(true), id: this._placeholderId }, (_r = this.placeholder) !== null && _r !== void 0 ? _r : this.label), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '562bb4adda23878fe108eba0d2395124685cf24a', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '93195757db11641ed911fd3684e91d6b76168cb1', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
799
797
  }
800
798
  static get watchers() { return {
801
799
  "detailsRef": [{
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Mi8dWSSD.js');
4
- var index$1 = require('./index-CW5aVEyQ.js');
3
+ var index = require('./index-TxzPzc5I.js');
4
+ var index$1 = require('./index-CsHqnQII.js');
5
5
 
6
6
  const DBDivider = class {
7
7
  constructor(hostRef) {
@@ -43,7 +43,7 @@ const DBDivider = class {
43
43
  this.enableAttributePassing(this._ref, "db-divider");
44
44
  }
45
45
  render() {
46
- return (index.h("div", { key: '0e9bf54bcd77ec1c324eb6300162bbf8c67b8c16', class: index$1.cls("db-divider", this.className), ref: (el) => {
46
+ return (index.h("div", { key: '46d2766f34dc660f82cda63261ea96da0a72115f', class: index$1.cls("db-divider", this.className), ref: (el) => {
47
47
  this._ref = el;
48
48
  }, id: this.id, "data-margin": this.margin, "data-variant": this.variant, "data-emphasis": this.emphasis, "data-width": this.width }));
49
49
  }
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Mi8dWSSD.js');
3
+ var index = require('./index-TxzPzc5I.js');
4
4
  var constants = require('./constants-bMY2_d8A.js');
5
- var index$1 = require('./index-CW5aVEyQ.js');
5
+ var index$1 = require('./index-CsHqnQII.js');
6
6
 
7
7
  const DBDrawer = class {
8
8
  constructor(hostRef) {
@@ -131,11 +131,11 @@ const DBDrawer = class {
131
131
  }
132
132
  render() {
133
133
  var _a;
134
- return (index.h("dialog", { key: '171c5580c99bbe2d2ea0a6e8e5962e4132d9b07f', class: "db-drawer", id: this.id, ref: (el) => {
134
+ return (index.h("dialog", { key: 'cc48481a5694b3ed2a21accbbbf0a2d803cbae34', class: "db-drawer", id: this.id, ref: (el) => {
135
135
  this._ref = el;
136
- }, onClick: (event) => this.handleClose(event), onKeyDown: (event) => this.handleClose(event), "data-position": this.position, "data-backdrop": this.backdrop, "data-direction": this.direction, "data-variant": this.variant }, index.h("article", { key: 'e9fad39beff3e642ad13be4950bb64fd15896f80', class: index$1.cls("db-drawer-container", this.className), ref: (el) => {
136
+ }, onClick: (event) => this.handleClose(event), onKeyDown: (event) => this.handleClose(event), "data-position": this.position, "data-backdrop": this.backdrop, "data-direction": this.direction, "data-variant": this.variant }, index.h("article", { key: 'd50942300d0d842e3f6ad754920c8deddb3b4f3f', class: index$1.cls("db-drawer-container", this.className), ref: (el) => {
137
137
  this.dialogContainerRef = el;
138
- }, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": index$1.getBooleanAsString(this.rounded) }, index.h("header", { key: 'cb9f374f26ebca0f11d02081c28e856cc87107c3', class: "db-drawer-header" }, index.h("div", { key: '7fca8037c16e16d909bcede75e223f38ae019453', class: "db-drawer-header-text" }, index.h("slot", { key: '85159cc4d260fa992bfe8b933920ae286b9ab09c', name: "drawerHeader" })), index.h("db-button", { key: '4a9ad6ba576480b154614da72752421a8ff81df6', class: "button-close-drawer", icon: "cross", variant: "ghost", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event, true) }, (_a = this.closeButtonText) !== null && _a !== void 0 ? _a : constants.DEFAULT_CLOSE_BUTTON)), index.h("div", { key: '9dbbd6a3835dad60dea79a9b2fbed6a62dd6b837', class: "db-drawer-content" }, index.h("slot", { key: '1bc4b88266e6d7250d0075e2405b725ad38b950e' })))));
138
+ }, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": index$1.getBooleanAsString(this.rounded) }, index.h("header", { key: 'd1c47a728ce03f4415e455352efcee61b9373d61', class: "db-drawer-header" }, index.h("div", { key: 'f19808d4597fbda4d9e0ceb224f8de4d3407f98c', class: "db-drawer-header-text" }, index.h("slot", { key: 'cfab663cef760d9d78244eead6b92bbabd919b4a', name: "drawerHeader" })), index.h("db-button", { key: '5391285b886bfba3be830f49365fd7c3acd98bb6', class: "button-close-drawer", icon: "cross", variant: "ghost", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event, true) }, (_a = this.closeButtonText) !== null && _a !== void 0 ? _a : constants.DEFAULT_CLOSE_BUTTON)), index.h("div", { key: 'b83ad6bdaa47d7881ce831c696f38df7b77b041d', class: "db-drawer-content" }, index.h("slot", { key: '9fc37bc76ce5a6fc2945eaa225919f9c8fac8629' })))));
139
139
  }
140
140
  static get watchers() { return {
141
141
  "open": [{
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Mi8dWSSD.js');
3
+ var index = require('./index-TxzPzc5I.js');
4
4
  var constants = require('./constants-bMY2_d8A.js');
5
- var index$1 = require('./index-CW5aVEyQ.js');
5
+ var index$1 = require('./index-CsHqnQII.js');
6
6
  var navigation = require('./navigation-DauGE-qj.js');
7
7
  require('./floating-components-ogUqz72V.js');
8
8
 
@@ -80,9 +80,9 @@ const DBHeader = class {
80
80
  }
81
81
  render() {
82
82
  var _a;
83
- return (index.h("header", { key: 'f9850f5a6f59bee2ed97db4baea343e07aaff91a', class: index$1.cls("db-header", this.className), ref: (el) => {
83
+ return (index.h("header", { key: 'f701b77c43467d06b10c109ff60694f70746eaf8', class: index$1.cls("db-header", this.className), ref: (el) => {
84
84
  this._ref = el;
85
- }, id: this.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, index.h("db-drawer", { key: '32f62d8f0bf634e96cf7b0e96721fcd40aa3a3eb', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: index$1.getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, index.h("div", { key: 'a42c28439d07e97a3842efe4fa1c143c23691b5f', class: "db-header-drawer-navigation" }, index.h("div", { key: '141165e04574db312d51b0b4c376c53ddace243e', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, index.h("slot", { key: '2208e0677b1f15da56fd6be230523559fcb5f1da' })), index.h("div", { key: 'fb980500cdb2f6f3ce2fce2489c48ac27ebd256a', class: "db-header-meta-navigation" }, index.h("slot", { key: '7eea7189a1e82821fc3f0bd600bda5a040382e88', name: "metaNavigation" }))), index.h("div", { key: 'a492419586593d43edbada69ad136ad832902e15', class: "db-header-secondary-action" }, index.h("slot", { key: '90ed75a19c230c3a2af94b8e0b397c8712f9a0df', name: "secondaryAction" }))), index.h("div", { key: '1d0451bd1f522f51cbd2bab3cd1b7c316fd644b4', class: "db-header-meta-navigation" }, index.h("slot", { key: 'd92c5a30a0131225f2b7b1428c5121fed241d8a7', name: "metaNavigation" })), index.h("div", { key: 'f65c8e6b2b997c281046f20e1ac7c89d8b5697f6', class: "db-header-navigation-bar" }, index.h("div", { key: 'be1e1017417595bbb4ff845b650f5edef1f4fd49', class: "db-header-brand-container" }, index.h("slot", { key: '5552b137967ae4659887ad67514fd0078ced1473', name: "brand" })), index.h("div", { key: '682e11b41f5131feb17cdf1e175b9bbcf8399740', class: "db-header-navigation-container" }, index.h("div", { key: '29f5a7afa6d8c014f6e574d72198289970e5324e', class: "db-header-navigation" }, index.h("slot", { key: 'f03956cf3368d3ec0dbaab3b3091c276eaf03a92' })), index.h("div", { key: '8a81b9ee537f84e14c9d41acf323552d6f239748', class: "db-header-primary-action" }, index.h("slot", { key: '78ae4dbdc9bcad5bd4bd951a0a334c47cb35bcf6', name: "primaryAction" }))), index.h("div", { key: 'e1e913c181df2f73cc9fe4cda17f505a26b1ad04', class: "db-header-action-container" }, index.h("div", { key: '92d7c9c0e50f9aa86e15c18a2ac7dddabc241358', class: "db-header-burger-menu-container" }, index.h("db-button", { key: '775ca507ba24b19e411e529e9ad67fcdfa6f3dea', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_a = this.burgerMenuLabel) !== null && _a !== void 0 ? _a : constants.DEFAULT_BURGER_MENU)), index.h("div", { key: '7cd5a16e27c72e3e0635056df8bcb7f45461c9fb', class: "db-header-secondary-action" }, index.h("slot", { key: '09669c165311f8dc95961c64900d5ab36281700a', name: "secondaryAction" }))))));
85
+ }, id: this.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, index.h("db-drawer", { key: '18c1b671c898c183bb352bb5f41978325cfa272e', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: index$1.getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, index.h("div", { key: 'dd79824d62aa735869d10c1d667a64de2ed61cd7', class: "db-header-drawer-navigation" }, index.h("div", { key: 'baab299c370aeb0133022ac8715a97af2d41e598', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, index.h("slot", { key: '25fba42e53aedf89b9efcd6479df4a20c31b37a0' })), index.h("div", { key: 'ee9e0fab26a77cbc44edda5f200e6d52e24d4ae6', class: "db-header-meta-navigation" }, index.h("slot", { key: '6a94b711843f10518e84f335df875d6d454d28a0', name: "metaNavigation" }))), index.h("div", { key: '1a9f4e2ccb9ffaddbbf19ee640dc82d0db009ffa', class: "db-header-secondary-action" }, index.h("slot", { key: '23f705f72608e8b5fa08fabc0f97ce61449fa388', name: "secondaryAction" }))), index.h("div", { key: 'a033891b1a8260327c56591fb12516dbe159b5e1', class: "db-header-meta-navigation" }, index.h("slot", { key: 'cfa5ffd51164e184eb68e04e8d83f3fd7ba94927', name: "metaNavigation" })), index.h("div", { key: '04430a76404e9e282b7249beee655a8e86d78dd2', class: "db-header-navigation-bar" }, index.h("div", { key: '5461e8c087ae579079017b738fb4ac36ddd44624', class: "db-header-brand-container" }, index.h("slot", { key: 'eed71de59cfb3cc65dc24797830bb4b7243a09f6', name: "brand" })), index.h("div", { key: 'c83e6866e91abc17fbe6ef06f3e976c8237644e7', class: "db-header-navigation-container" }, index.h("div", { key: '7cd0f313b6d25b400e0f0324b6f9d7e0f4dab61e', class: "db-header-navigation" }, index.h("slot", { key: '850c0eb5d3f7979a311880e3cf7b4c6484668ac3' })), index.h("div", { key: '48c8d805965f4bf8d443fa66bf2d8f9b46e30377', class: "db-header-primary-action" }, index.h("slot", { key: '42b4b88ecb12aedd83aaf97411c746a222ef7e83', name: "primaryAction" }))), index.h("div", { key: '836ed1d499998a707bc302443ed4885ec3347a0b', class: "db-header-action-container" }, index.h("div", { key: '8a483f37b9de0e49a97c352690dcfc9b3e457aba', class: "db-header-burger-menu-container" }, index.h("db-button", { key: '32e96e0f6ae32b0c56d4540307a5cf5e92e35822', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_a = this.burgerMenuLabel) !== null && _a !== void 0 ? _a : constants.DEFAULT_BURGER_MENU)), index.h("div", { key: 'c0db759bb4ce588e6d2302e3284908501fa556cb', class: "db-header-secondary-action" }, index.h("slot", { key: 'c2b198053cb8c57eeeb18153691b926627787083', name: "secondaryAction" }))))));
86
86
  }
87
87
  static get watchers() { return {
88
88
  "initialized": [{
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Mi8dWSSD.js');
4
- var index$1 = require('./index-CW5aVEyQ.js');
3
+ var index = require('./index-TxzPzc5I.js');
4
+ var index$1 = require('./index-CsHqnQII.js');
5
5
 
6
6
  const DBIcon = class {
7
7
  constructor(hostRef) {
@@ -43,7 +43,7 @@ const DBIcon = class {
43
43
  this.enableAttributePassing(this._ref, "db-icon");
44
44
  }
45
45
  render() {
46
- return (index.h("span", { key: '3a67532009f85e493784e99774e230f52c588ccc', class: index$1.cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
46
+ return (index.h("span", { key: 'f74b58da121bb69df759870f24684f15fc63cd3c', class: index$1.cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
47
47
  this._ref = el;
48
48
  }, id: this.id, "data-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : index.h("slot", null)));
49
49
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Mi8dWSSD.js');
4
- var index$1 = require('./index-CW5aVEyQ.js');
3
+ var index = require('./index-TxzPzc5I.js');
4
+ var index$1 = require('./index-CsHqnQII.js');
5
5
 
6
6
  const DBInfotext = class {
7
7
  constructor(hostRef) {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Mi8dWSSD.js');
4
- var index$1 = require('./index-CW5aVEyQ.js');
3
+ var index = require('./index-TxzPzc5I.js');
4
+ var index$1 = require('./index-CsHqnQII.js');
5
5
 
6
6
  const DBLink = class {
7
7
  constructor(hostRef) {
@@ -44,7 +44,7 @@ const DBLink = class {
44
44
  }
45
45
  render() {
46
46
  var _a, _b;
47
- return (index.h("a", { key: 'a43d8889621390017c07dda184c570e54d7f81e0', class: index$1.cls("db-link", this.className), ref: (el) => {
47
+ return (index.h("a", { key: '9eec6b26274544cc6325624ad4028039610c8b2a', class: index$1.cls("db-link", this.className), ref: (el) => {
48
48
  this._ref = el;
49
49
  }, id: this.id, href: this.href, target: this.target, rel: this.rel, role: this.role, referrerPolicy: (_a = this.referrerpolicy) !== null && _a !== void 0 ? _a : this.referrerPolicy, hrefLang: this.hreflang, "aria-disabled": index$1.getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : 0, "data-size": this.size, "data-show-icon-trailing": index$1.getBooleanAsString((_b = this.showIcon) !== null && _b !== void 0 ? _b : true), "data-variant": this.variant, "data-content": this.content || "internal", "data-wrap": index$1.getBooleanAsString(this.wrap) }, this.text ? this.text : index.h("slot", null)));
50
50
  }