@db-ux/wc-core-components 2.0.0-0-custom-select-16b8cce → 2.0.0

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 (483) hide show
  1. package/dist/cjs/db-accordion-item.cjs.entry.js +42 -8
  2. package/dist/cjs/db-accordion-item.cjs.entry.js.map +1 -1
  3. package/dist/cjs/db-accordion-item.entry.cjs.js.map +1 -1
  4. package/dist/cjs/db-accordion.cjs.entry.js +12 -12
  5. package/dist/cjs/db-accordion.cjs.entry.js.map +1 -1
  6. package/dist/cjs/db-accordion.entry.cjs.js.map +1 -1
  7. package/dist/cjs/db-badge.cjs.entry.js +3 -3
  8. package/dist/cjs/db-badge.cjs.entry.js.map +1 -1
  9. package/dist/cjs/db-badge.entry.cjs.js.map +1 -1
  10. package/dist/cjs/db-brand.cjs.entry.js +3 -3
  11. package/dist/cjs/db-brand.cjs.entry.js.map +1 -1
  12. package/dist/cjs/db-brand.entry.cjs.js.map +1 -1
  13. package/dist/cjs/db-button.cjs.entry.js +7 -7
  14. package/dist/cjs/db-button.cjs.entry.js.map +1 -1
  15. package/dist/cjs/db-button.entry.cjs.js.map +1 -1
  16. package/dist/cjs/db-card.cjs.entry.js +7 -7
  17. package/dist/cjs/db-card.cjs.entry.js.map +1 -1
  18. package/dist/cjs/db-card.entry.cjs.js.map +1 -1
  19. package/dist/cjs/db-checkbox.cjs.entry.js +59 -44
  20. package/dist/cjs/db-checkbox.cjs.entry.js.map +1 -1
  21. package/dist/cjs/db-checkbox.entry.cjs.js.map +1 -1
  22. package/dist/cjs/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.db-tooltip.entry.cjs.js.map +1 -1
  23. package/dist/cjs/db-custom-select-dropdown_6.cjs.entry.js +78 -64
  24. package/dist/cjs/db-custom-select-dropdown_6.cjs.entry.js.map +1 -1
  25. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +4 -4
  26. package/dist/cjs/db-custom-select-form-field.cjs.entry.js.map +1 -1
  27. package/dist/cjs/db-custom-select-form-field.entry.cjs.js.map +1 -1
  28. package/dist/cjs/db-custom-select.cjs.entry.js +203 -189
  29. package/dist/cjs/db-custom-select.cjs.entry.js.map +1 -1
  30. package/dist/cjs/db-custom-select.entry.cjs.js.map +1 -1
  31. package/dist/cjs/db-divider.cjs.entry.js +3 -3
  32. package/dist/cjs/db-divider.cjs.entry.js.map +1 -1
  33. package/dist/cjs/db-divider.entry.cjs.js.map +1 -1
  34. package/dist/cjs/db-drawer.cjs.entry.js +8 -9
  35. package/dist/cjs/db-drawer.cjs.entry.js.map +1 -1
  36. package/dist/cjs/db-drawer.entry.cjs.js.map +1 -1
  37. package/dist/cjs/db-header.cjs.entry.js +13 -11
  38. package/dist/cjs/db-header.cjs.entry.js.map +1 -1
  39. package/dist/cjs/db-header.entry.cjs.js.map +1 -1
  40. package/dist/cjs/db-icon.cjs.entry.js +3 -3
  41. package/dist/cjs/db-icon.cjs.entry.js.map +1 -1
  42. package/dist/cjs/db-icon.entry.cjs.js.map +1 -1
  43. package/dist/cjs/db-infotext.cjs.entry.js +3 -3
  44. package/dist/cjs/db-infotext.cjs.entry.js.map +1 -1
  45. package/dist/cjs/db-infotext.entry.cjs.js.map +1 -1
  46. package/dist/cjs/db-link.cjs.entry.js +7 -7
  47. package/dist/cjs/db-link.cjs.entry.js.map +1 -1
  48. package/dist/cjs/db-link.entry.cjs.js.map +1 -1
  49. package/dist/cjs/db-navigation-item.cjs.entry.js +26 -28
  50. package/dist/cjs/db-navigation-item.cjs.entry.js.map +1 -1
  51. package/dist/cjs/db-navigation-item.entry.cjs.js.map +1 -1
  52. package/dist/cjs/db-navigation.cjs.entry.js +4 -4
  53. package/dist/cjs/db-navigation.cjs.entry.js.map +1 -1
  54. package/dist/cjs/db-navigation.entry.cjs.js.map +1 -1
  55. package/dist/cjs/db-notification.cjs.entry.js +7 -7
  56. package/dist/cjs/db-notification.cjs.entry.js.map +1 -1
  57. package/dist/cjs/db-notification.entry.cjs.js.map +1 -1
  58. package/dist/cjs/db-page.cjs.entry.js +4 -4
  59. package/dist/cjs/db-page.cjs.entry.js.map +1 -1
  60. package/dist/cjs/db-page.entry.cjs.js.map +1 -1
  61. package/dist/cjs/db-popover.cjs.entry.js +4 -4
  62. package/dist/cjs/db-popover.cjs.entry.js.map +1 -1
  63. package/dist/cjs/db-popover.entry.cjs.js.map +1 -1
  64. package/dist/cjs/db-radio.cjs.entry.js +10 -19
  65. package/dist/cjs/db-radio.cjs.entry.js.map +1 -1
  66. package/dist/cjs/db-radio.entry.cjs.js.map +1 -1
  67. package/dist/cjs/db-section.cjs.entry.js +4 -4
  68. package/dist/cjs/db-section.cjs.entry.js.map +1 -1
  69. package/dist/cjs/db-section.entry.cjs.js.map +1 -1
  70. package/dist/cjs/db-select.cjs.entry.js +70 -57
  71. package/dist/cjs/db-select.cjs.entry.js.map +1 -1
  72. package/dist/cjs/db-select.entry.cjs.js.map +1 -1
  73. package/dist/cjs/db-stack.cjs.entry.js +4 -4
  74. package/dist/cjs/db-stack.cjs.entry.js.map +1 -1
  75. package/dist/cjs/db-stack.entry.cjs.js.map +1 -1
  76. package/dist/cjs/db-switch.cjs.entry.js +11 -20
  77. package/dist/cjs/db-switch.cjs.entry.js.map +1 -1
  78. package/dist/cjs/db-switch.entry.cjs.js.map +1 -1
  79. package/dist/cjs/db-tab-item.db-tab-list.db-tab-panel.entry.cjs.js.map +1 -1
  80. package/dist/cjs/db-tab-item_3.cjs.entry.js +38 -17
  81. package/dist/cjs/db-tab-item_3.cjs.entry.js.map +1 -1
  82. package/dist/cjs/db-tabs.cjs.entry.js +24 -23
  83. package/dist/cjs/db-tabs.cjs.entry.js.map +1 -1
  84. package/dist/cjs/db-tabs.entry.cjs.js.map +1 -1
  85. package/dist/cjs/db-textarea.cjs.entry.js +60 -45
  86. package/dist/cjs/db-textarea.cjs.entry.js.map +1 -1
  87. package/dist/cjs/db-textarea.entry.cjs.js.map +1 -1
  88. package/dist/cjs/db-ux.cjs.js +3 -3
  89. package/dist/cjs/db-ux.cjs.js.map +1 -1
  90. package/dist/cjs/document-click-listener-CrbHspH2.js +37 -0
  91. package/dist/cjs/document-click-listener-CrbHspH2.js.map +1 -0
  92. package/dist/cjs/{index-DeqKGVDx.js → index-9h8KqOUd.js} +25 -7
  93. package/dist/cjs/index-9h8KqOUd.js.map +1 -0
  94. package/dist/cjs/{index-DBEtsnky.js → index-w2CAlvjJ.js} +6 -5
  95. package/dist/cjs/index-w2CAlvjJ.js.map +1 -0
  96. package/dist/cjs/index.cjs.js +6 -5
  97. package/dist/cjs/index.cjs.js.map +1 -1
  98. package/dist/cjs/loader.cjs.js +2 -2
  99. package/dist/cjs/{navigation-Cfm1OFWB.js → navigation-DjZJIxIq.js} +3 -3
  100. package/dist/cjs/{navigation-Cfm1OFWB.js.map → navigation-DjZJIxIq.js.map} +1 -1
  101. package/dist/collection/collection-manifest.json +1 -1
  102. package/dist/collection/components/accordion/accordion.js +26 -25
  103. package/dist/collection/components/accordion/accordion.js.map +1 -1
  104. package/dist/collection/components/accordion/model.js.map +1 -1
  105. package/dist/collection/components/accordion-item/accordion-item.js +87 -17
  106. package/dist/collection/components/accordion-item/accordion-item.js.map +1 -1
  107. package/dist/collection/components/accordion-item/model.js.map +1 -1
  108. package/dist/collection/components/badge/badge.js +10 -10
  109. package/dist/collection/components/badge/badge.js.map +1 -1
  110. package/dist/collection/components/badge/model.js.map +1 -1
  111. package/dist/collection/components/brand/brand.js +9 -9
  112. package/dist/collection/components/brand/brand.js.map +1 -1
  113. package/dist/collection/components/button/button.js +57 -32
  114. package/dist/collection/components/button/button.js.map +1 -1
  115. package/dist/collection/components/button/model.js.map +1 -1
  116. package/dist/collection/components/card/card.js +12 -12
  117. package/dist/collection/components/card/card.js.map +1 -1
  118. package/dist/collection/components/checkbox/checkbox.js +118 -166
  119. package/dist/collection/components/checkbox/checkbox.js.map +1 -1
  120. package/dist/collection/components/checkbox/model.js.map +1 -1
  121. package/dist/collection/components/custom-select/custom-select.js +340 -335
  122. package/dist/collection/components/custom-select/custom-select.js.map +1 -1
  123. package/dist/collection/components/custom-select/model.js.map +1 -1
  124. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +5 -5
  125. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js.map +1 -1
  126. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +4 -4
  127. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js.map +1 -1
  128. package/dist/collection/components/custom-select-list/custom-select-list.js +6 -6
  129. package/dist/collection/components/custom-select-list/custom-select-list.js.map +1 -1
  130. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +27 -52
  131. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js.map +1 -1
  132. package/dist/collection/components/divider/divider.js +7 -7
  133. package/dist/collection/components/divider/divider.js.map +1 -1
  134. package/dist/collection/components/drawer/drawer.js +23 -24
  135. package/dist/collection/components/drawer/drawer.js.map +1 -1
  136. package/dist/collection/components/drawer/model.js.map +1 -1
  137. package/dist/collection/components/header/header.js +22 -20
  138. package/dist/collection/components/header/header.js.map +1 -1
  139. package/dist/collection/components/header/model.js.map +1 -1
  140. package/dist/collection/components/icon/icon.js +7 -7
  141. package/dist/collection/components/icon/icon.js.map +1 -1
  142. package/dist/collection/components/infotext/infotext.js +10 -10
  143. package/dist/collection/components/infotext/infotext.js.map +1 -1
  144. package/dist/collection/components/input/input.js +218 -213
  145. package/dist/collection/components/input/input.js.map +1 -1
  146. package/dist/collection/components/input/model.js.map +1 -1
  147. package/dist/collection/components/link/link.js +29 -29
  148. package/dist/collection/components/link/link.js.map +1 -1
  149. package/dist/collection/components/navigation/navigation.js +5 -5
  150. package/dist/collection/components/navigation/navigation.js.map +1 -1
  151. package/dist/collection/components/navigation-item/model.js.map +1 -1
  152. package/dist/collection/components/navigation-item/navigation-item.js +43 -43
  153. package/dist/collection/components/navigation-item/navigation-item.js.map +1 -1
  154. package/dist/collection/components/notification/model.js.map +1 -1
  155. package/dist/collection/components/notification/notification.js +32 -32
  156. package/dist/collection/components/notification/notification.js.map +1 -1
  157. package/dist/collection/components/page/model.js.map +1 -1
  158. package/dist/collection/components/page/page.js +10 -10
  159. package/dist/collection/components/page/page.js.map +1 -1
  160. package/dist/collection/components/popover/model.js.map +1 -1
  161. package/dist/collection/components/popover/popover.js +17 -17
  162. package/dist/collection/components/popover/popover.js.map +1 -1
  163. package/dist/collection/components/radio/radio.js +32 -110
  164. package/dist/collection/components/radio/radio.js.map +1 -1
  165. package/dist/collection/components/section/section.js +6 -6
  166. package/dist/collection/components/section/section.js.map +1 -1
  167. package/dist/collection/components/select/model.js.map +1 -1
  168. package/dist/collection/components/select/select.js +130 -203
  169. package/dist/collection/components/select/select.js.map +1 -1
  170. package/dist/collection/components/stack/model.js.map +1 -1
  171. package/dist/collection/components/stack/stack.js +12 -12
  172. package/dist/collection/components/stack/stack.js.map +1 -1
  173. package/dist/collection/components/switch/model.js.map +1 -1
  174. package/dist/collection/components/switch/switch.js +39 -117
  175. package/dist/collection/components/switch/switch.js.map +1 -1
  176. package/dist/collection/components/tab-item/model.js.map +1 -1
  177. package/dist/collection/components/tab-item/tab-item.js +66 -40
  178. package/dist/collection/components/tab-item/tab-item.js.map +1 -1
  179. package/dist/collection/components/tab-list/tab-list.js +4 -4
  180. package/dist/collection/components/tab-list/tab-list.js.map +1 -1
  181. package/dist/collection/components/tab-panel/tab-panel.js +6 -6
  182. package/dist/collection/components/tab-panel/tab-panel.js.map +1 -1
  183. package/dist/collection/components/tabs/model.js.map +1 -1
  184. package/dist/collection/components/tabs/tabs.js +63 -62
  185. package/dist/collection/components/tabs/tabs.js.map +1 -1
  186. package/dist/collection/components/tag/model.js.map +1 -1
  187. package/dist/collection/components/tag/tag.js +27 -27
  188. package/dist/collection/components/tag/tag.js.map +1 -1
  189. package/dist/collection/components/textarea/model.js.map +1 -1
  190. package/dist/collection/components/textarea/textarea.js +171 -168
  191. package/dist/collection/components/textarea/textarea.js.map +1 -1
  192. package/dist/collection/components/tooltip/model.js.map +1 -1
  193. package/dist/collection/components/tooltip/tooltip.js +14 -14
  194. package/dist/collection/components/tooltip/tooltip.js.map +1 -1
  195. package/dist/collection/shared/model.js +0 -1
  196. package/dist/collection/shared/model.js.map +1 -1
  197. package/dist/collection/utils/document-click-listener.js +30 -0
  198. package/dist/collection/utils/document-click-listener.js.map +1 -0
  199. package/dist/collection/utils/index.js +21 -21
  200. package/dist/collection/utils/index.js.map +1 -1
  201. package/dist/custom-elements.json +2629 -1698
  202. package/dist/db-ux/db-accordion-item.entry.esm.js.map +1 -1
  203. package/dist/db-ux/db-accordion.entry.esm.js.map +1 -1
  204. package/dist/db-ux/db-badge.entry.esm.js.map +1 -1
  205. package/dist/db-ux/db-brand.entry.esm.js.map +1 -1
  206. package/dist/db-ux/db-button.entry.esm.js.map +1 -1
  207. package/dist/db-ux/db-card.entry.esm.js.map +1 -1
  208. package/dist/db-ux/db-checkbox.entry.esm.js.map +1 -1
  209. package/dist/db-ux/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.db-tooltip.entry.esm.js.map +1 -1
  210. package/dist/db-ux/db-custom-select-form-field.entry.esm.js.map +1 -1
  211. package/dist/db-ux/db-custom-select.entry.esm.js.map +1 -1
  212. package/dist/db-ux/db-divider.entry.esm.js.map +1 -1
  213. package/dist/db-ux/db-drawer.entry.esm.js.map +1 -1
  214. package/dist/db-ux/db-header.entry.esm.js.map +1 -1
  215. package/dist/db-ux/db-icon.entry.esm.js.map +1 -1
  216. package/dist/db-ux/db-infotext.entry.esm.js.map +1 -1
  217. package/dist/db-ux/db-link.entry.esm.js.map +1 -1
  218. package/dist/db-ux/db-navigation-item.entry.esm.js.map +1 -1
  219. package/dist/db-ux/db-navigation.entry.esm.js.map +1 -1
  220. package/dist/db-ux/db-notification.entry.esm.js.map +1 -1
  221. package/dist/db-ux/db-page.entry.esm.js.map +1 -1
  222. package/dist/db-ux/db-popover.entry.esm.js.map +1 -1
  223. package/dist/db-ux/db-radio.entry.esm.js.map +1 -1
  224. package/dist/db-ux/db-section.entry.esm.js.map +1 -1
  225. package/dist/db-ux/db-select.entry.esm.js.map +1 -1
  226. package/dist/db-ux/db-stack.entry.esm.js.map +1 -1
  227. package/dist/db-ux/db-switch.entry.esm.js.map +1 -1
  228. package/dist/db-ux/db-tab-item.db-tab-list.db-tab-panel.entry.esm.js.map +1 -1
  229. package/dist/db-ux/db-tabs.entry.esm.js.map +1 -1
  230. package/dist/db-ux/db-textarea.entry.esm.js.map +1 -1
  231. package/dist/db-ux/db-ux.esm.js +1 -1
  232. package/dist/db-ux/db-ux.esm.js.map +1 -1
  233. package/dist/db-ux/index.esm.js +1 -1
  234. package/dist/db-ux/index.esm.js.map +1 -1
  235. package/dist/db-ux/p-0c1b4216.entry.js +2 -0
  236. package/dist/db-ux/p-0c1b4216.entry.js.map +1 -0
  237. package/dist/db-ux/p-19ebdb92.entry.js +2 -0
  238. package/dist/db-ux/p-19ebdb92.entry.js.map +1 -0
  239. package/dist/db-ux/p-20f2efec.entry.js +2 -0
  240. package/dist/db-ux/p-20f2efec.entry.js.map +1 -0
  241. package/dist/db-ux/p-2ea85ed3.entry.js +2 -0
  242. package/dist/db-ux/p-2ea85ed3.entry.js.map +1 -0
  243. package/dist/db-ux/p-3d9cfe8d.entry.js +2 -0
  244. package/dist/db-ux/p-3d9cfe8d.entry.js.map +1 -0
  245. package/dist/db-ux/p-56fa0857.entry.js +2 -0
  246. package/dist/db-ux/p-56fa0857.entry.js.map +1 -0
  247. package/dist/db-ux/p-6f9de31b.entry.js +2 -0
  248. package/dist/db-ux/p-6f9de31b.entry.js.map +1 -0
  249. package/dist/db-ux/p-797ccaa9.entry.js +2 -0
  250. package/dist/db-ux/p-797ccaa9.entry.js.map +1 -0
  251. package/dist/db-ux/{p-0b9779be.entry.js → p-7bc56311.entry.js} +2 -2
  252. package/dist/db-ux/p-7bc56311.entry.js.map +1 -0
  253. package/dist/db-ux/p-828bb611.entry.js +2 -0
  254. package/dist/db-ux/p-828bb611.entry.js.map +1 -0
  255. package/dist/db-ux/{p-d10ee6dc.entry.js → p-84136093.entry.js} +2 -2
  256. package/dist/db-ux/p-84136093.entry.js.map +1 -0
  257. package/dist/db-ux/p-861c92ee.entry.js +2 -0
  258. package/dist/db-ux/p-861c92ee.entry.js.map +1 -0
  259. package/dist/db-ux/{p-0414dab3.entry.js → p-924110bd.entry.js} +2 -2
  260. package/dist/db-ux/p-924110bd.entry.js.map +1 -0
  261. package/dist/db-ux/p-96a0c7de.entry.js +2 -0
  262. package/dist/db-ux/p-96a0c7de.entry.js.map +1 -0
  263. package/dist/db-ux/p-B_W_wePN.js +2 -0
  264. package/dist/db-ux/p-B_W_wePN.js.map +1 -0
  265. package/dist/db-ux/p-BkYjDIed.js +3 -0
  266. package/dist/db-ux/p-BkYjDIed.js.map +1 -0
  267. package/dist/db-ux/{p-VkX3SW7K.js → p-Duz60W3r.js} +2 -2
  268. package/dist/db-ux/{p-VkX3SW7K.js.map → p-Duz60W3r.js.map} +1 -1
  269. package/dist/db-ux/p-TU0pfK1i.js +2 -0
  270. package/dist/db-ux/p-TU0pfK1i.js.map +1 -0
  271. package/dist/db-ux/p-a20f9b38.entry.js +2 -0
  272. package/dist/db-ux/p-a20f9b38.entry.js.map +1 -0
  273. package/dist/db-ux/{p-9a3c9ffe.entry.js → p-aad2b065.entry.js} +2 -2
  274. package/dist/db-ux/p-aad2b065.entry.js.map +1 -0
  275. package/dist/db-ux/p-abc1afa7.entry.js +2 -0
  276. package/dist/db-ux/p-abc1afa7.entry.js.map +1 -0
  277. package/dist/db-ux/p-b074eb7f.entry.js +2 -0
  278. package/dist/db-ux/p-b074eb7f.entry.js.map +1 -0
  279. package/dist/db-ux/p-b6821ac2.entry.js +2 -0
  280. package/dist/db-ux/p-b6821ac2.entry.js.map +1 -0
  281. package/dist/db-ux/p-b7cd9e31.entry.js +2 -0
  282. package/dist/db-ux/p-b7cd9e31.entry.js.map +1 -0
  283. package/dist/db-ux/p-b92bbd61.entry.js +2 -0
  284. package/dist/db-ux/p-b92bbd61.entry.js.map +1 -0
  285. package/dist/db-ux/p-bcb3d891.entry.js +2 -0
  286. package/dist/db-ux/p-bcb3d891.entry.js.map +1 -0
  287. package/dist/db-ux/{p-65983b83.entry.js → p-be35b5b4.entry.js} +2 -2
  288. package/dist/db-ux/p-be35b5b4.entry.js.map +1 -0
  289. package/dist/db-ux/p-d60822ce.entry.js +2 -0
  290. package/dist/db-ux/p-d60822ce.entry.js.map +1 -0
  291. package/dist/db-ux/p-dc71d000.entry.js +2 -0
  292. package/dist/db-ux/p-dc71d000.entry.js.map +1 -0
  293. package/dist/db-ux/p-e397a44c.entry.js +2 -0
  294. package/dist/db-ux/p-e397a44c.entry.js.map +1 -0
  295. package/dist/db-ux/p-e4f73b24.entry.js +2 -0
  296. package/dist/db-ux/p-e4f73b24.entry.js.map +1 -0
  297. package/dist/db-ux/p-e72a0bfe.entry.js +2 -0
  298. package/dist/db-ux/p-e72a0bfe.entry.js.map +1 -0
  299. package/dist/db-ux/p-fba19a3f.entry.js +2 -0
  300. package/dist/db-ux/p-fba19a3f.entry.js.map +1 -0
  301. package/dist/esm/db-accordion-item.entry.js +42 -8
  302. package/dist/esm/db-accordion-item.entry.js.map +1 -1
  303. package/dist/esm/db-accordion.entry.js +12 -12
  304. package/dist/esm/db-accordion.entry.js.map +1 -1
  305. package/dist/esm/db-badge.entry.js +3 -3
  306. package/dist/esm/db-badge.entry.js.map +1 -1
  307. package/dist/esm/db-brand.entry.js +3 -3
  308. package/dist/esm/db-brand.entry.js.map +1 -1
  309. package/dist/esm/db-button.entry.js +7 -7
  310. package/dist/esm/db-button.entry.js.map +1 -1
  311. package/dist/esm/db-card.entry.js +7 -7
  312. package/dist/esm/db-card.entry.js.map +1 -1
  313. package/dist/esm/db-checkbox.entry.js +60 -45
  314. package/dist/esm/db-checkbox.entry.js.map +1 -1
  315. package/dist/esm/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.db-tooltip.entry.js.map +1 -1
  316. package/dist/esm/db-custom-select-dropdown_6.entry.js +79 -65
  317. package/dist/esm/db-custom-select-dropdown_6.entry.js.map +1 -1
  318. package/dist/esm/db-custom-select-form-field.entry.js +4 -4
  319. package/dist/esm/db-custom-select-form-field.entry.js.map +1 -1
  320. package/dist/esm/db-custom-select.entry.js +204 -190
  321. package/dist/esm/db-custom-select.entry.js.map +1 -1
  322. package/dist/esm/db-divider.entry.js +3 -3
  323. package/dist/esm/db-divider.entry.js.map +1 -1
  324. package/dist/esm/db-drawer.entry.js +8 -9
  325. package/dist/esm/db-drawer.entry.js.map +1 -1
  326. package/dist/esm/db-header.entry.js +13 -11
  327. package/dist/esm/db-header.entry.js.map +1 -1
  328. package/dist/esm/db-icon.entry.js +3 -3
  329. package/dist/esm/db-icon.entry.js.map +1 -1
  330. package/dist/esm/db-infotext.entry.js +3 -3
  331. package/dist/esm/db-infotext.entry.js.map +1 -1
  332. package/dist/esm/db-link.entry.js +7 -7
  333. package/dist/esm/db-link.entry.js.map +1 -1
  334. package/dist/esm/db-navigation-item.entry.js +26 -28
  335. package/dist/esm/db-navigation-item.entry.js.map +1 -1
  336. package/dist/esm/db-navigation.entry.js +4 -4
  337. package/dist/esm/db-navigation.entry.js.map +1 -1
  338. package/dist/esm/db-notification.entry.js +7 -7
  339. package/dist/esm/db-notification.entry.js.map +1 -1
  340. package/dist/esm/db-page.entry.js +4 -4
  341. package/dist/esm/db-page.entry.js.map +1 -1
  342. package/dist/esm/db-popover.entry.js +4 -4
  343. package/dist/esm/db-popover.entry.js.map +1 -1
  344. package/dist/esm/db-radio.entry.js +10 -19
  345. package/dist/esm/db-radio.entry.js.map +1 -1
  346. package/dist/esm/db-section.entry.js +4 -4
  347. package/dist/esm/db-section.entry.js.map +1 -1
  348. package/dist/esm/db-select.entry.js +71 -58
  349. package/dist/esm/db-select.entry.js.map +1 -1
  350. package/dist/esm/db-stack.entry.js +4 -4
  351. package/dist/esm/db-stack.entry.js.map +1 -1
  352. package/dist/esm/db-switch.entry.js +11 -20
  353. package/dist/esm/db-switch.entry.js.map +1 -1
  354. package/dist/esm/db-tab-item.db-tab-list.db-tab-panel.entry.js.map +1 -1
  355. package/dist/esm/db-tab-item_3.entry.js +38 -17
  356. package/dist/esm/db-tab-item_3.entry.js.map +1 -1
  357. package/dist/esm/db-tabs.entry.js +24 -23
  358. package/dist/esm/db-tabs.entry.js.map +1 -1
  359. package/dist/esm/db-textarea.entry.js +61 -46
  360. package/dist/esm/db-textarea.entry.js.map +1 -1
  361. package/dist/esm/db-ux.js +4 -4
  362. package/dist/esm/db-ux.js.map +1 -1
  363. package/dist/esm/document-click-listener-B2jDrCt8.js +35 -0
  364. package/dist/esm/document-click-listener-B2jDrCt8.js.map +1 -0
  365. package/dist/esm/{index-D-D8lQAG.js → index-BkYjDIed.js} +6 -5
  366. package/dist/esm/index-BkYjDIed.js.map +1 -0
  367. package/dist/esm/{index-fw8E73KY.js → index-TU0pfK1i.js} +24 -8
  368. package/dist/esm/index-TU0pfK1i.js.map +1 -0
  369. package/dist/esm/index.js +5 -5
  370. package/dist/esm/index.js.map +1 -1
  371. package/dist/esm/loader.js +3 -3
  372. package/dist/esm/{navigation-1ba3zvi0.js → navigation-BjeAmWrQ.js} +3 -3
  373. package/dist/esm/{navigation-1ba3zvi0.js.map → navigation-BjeAmWrQ.js.map} +1 -1
  374. package/dist/types/components/accordion/accordion.d.ts +2 -2
  375. package/dist/types/components/accordion/model.d.ts +2 -2
  376. package/dist/types/components/accordion-item/accordion-item.d.ts +11 -2
  377. package/dist/types/components/accordion-item/model.d.ts +5 -5
  378. package/dist/types/components/badge/model.d.ts +2 -2
  379. package/dist/types/components/button/button.d.ts +3 -1
  380. package/dist/types/components/button/model.d.ts +11 -7
  381. package/dist/types/components/card/card.d.ts +2 -1
  382. package/dist/types/components/checkbox/checkbox.d.ts +13 -10
  383. package/dist/types/components/checkbox/model.d.ts +3 -3
  384. package/dist/types/components/custom-select/custom-select.d.ts +18 -15
  385. package/dist/types/components/custom-select/model.d.ts +49 -29
  386. package/dist/types/components/custom-select-list-item/custom-select-list-item.d.ts +2 -2
  387. package/dist/types/components/drawer/drawer.d.ts +2 -1
  388. package/dist/types/components/drawer/model.d.ts +2 -2
  389. package/dist/types/components/header/header.d.ts +3 -2
  390. package/dist/types/components/header/model.d.ts +2 -2
  391. package/dist/types/components/input/input.d.ts +19 -14
  392. package/dist/types/components/input/model.d.ts +3 -3
  393. package/dist/types/components/link/link.d.ts +2 -1
  394. package/dist/types/components/navigation-item/model.d.ts +2 -3
  395. package/dist/types/components/navigation-item/navigation-item.d.ts +4 -4
  396. package/dist/types/components/notification/model.d.ts +3 -3
  397. package/dist/types/components/notification/notification.d.ts +3 -2
  398. package/dist/types/components/page/model.d.ts +1 -1
  399. package/dist/types/components/popover/model.d.ts +1 -1
  400. package/dist/types/components/radio/radio.d.ts +7 -9
  401. package/dist/types/components/select/model.d.ts +2 -2
  402. package/dist/types/components/select/select.d.ts +18 -16
  403. package/dist/types/components/stack/model.d.ts +1 -1
  404. package/dist/types/components/switch/model.d.ts +2 -2
  405. package/dist/types/components/switch/switch.d.ts +4 -6
  406. package/dist/types/components/tab-item/model.d.ts +6 -6
  407. package/dist/types/components/tab-item/tab-item.d.ts +8 -3
  408. package/dist/types/components/tabs/model.d.ts +11 -3
  409. package/dist/types/components/tabs/tabs.d.ts +5 -4
  410. package/dist/types/components/tag/model.d.ts +9 -5
  411. package/dist/types/components/tag/tag.d.ts +2 -1
  412. package/dist/types/components/textarea/model.d.ts +4 -4
  413. package/dist/types/components/textarea/textarea.d.ts +17 -12
  414. package/dist/types/components/tooltip/model.d.ts +1 -1
  415. package/dist/types/components.d.ts +96 -124
  416. package/dist/types/shared/model.d.ts +56 -31
  417. package/dist/types/stencil-public-runtime.d.ts +2 -0
  418. package/dist/types/utils/document-click-listener.d.ts +8 -0
  419. package/dist/types/utils/index.d.ts +5 -28
  420. package/dist/vscode.html-custom-data.json +143 -122
  421. package/dist/web-types.json +803 -475
  422. package/package.json +4 -4
  423. package/dist/cjs/index-DBEtsnky.js.map +0 -1
  424. package/dist/cjs/index-DeqKGVDx.js.map +0 -1
  425. package/dist/db-ux/p-0414dab3.entry.js.map +0 -1
  426. package/dist/db-ux/p-05505797.entry.js +0 -2
  427. package/dist/db-ux/p-05505797.entry.js.map +0 -1
  428. package/dist/db-ux/p-0b9779be.entry.js.map +0 -1
  429. package/dist/db-ux/p-1799c085.entry.js +0 -2
  430. package/dist/db-ux/p-1799c085.entry.js.map +0 -1
  431. package/dist/db-ux/p-30261cf0.entry.js +0 -2
  432. package/dist/db-ux/p-30261cf0.entry.js.map +0 -1
  433. package/dist/db-ux/p-43f2df95.entry.js +0 -2
  434. package/dist/db-ux/p-43f2df95.entry.js.map +0 -1
  435. package/dist/db-ux/p-463c100b.entry.js +0 -2
  436. package/dist/db-ux/p-463c100b.entry.js.map +0 -1
  437. package/dist/db-ux/p-4cf2c595.entry.js +0 -2
  438. package/dist/db-ux/p-4cf2c595.entry.js.map +0 -1
  439. package/dist/db-ux/p-56a39c64.entry.js +0 -2
  440. package/dist/db-ux/p-56a39c64.entry.js.map +0 -1
  441. package/dist/db-ux/p-5ceb34d7.entry.js +0 -2
  442. package/dist/db-ux/p-5ceb34d7.entry.js.map +0 -1
  443. package/dist/db-ux/p-65983b83.entry.js.map +0 -1
  444. package/dist/db-ux/p-6e1aa320.entry.js +0 -2
  445. package/dist/db-ux/p-6e1aa320.entry.js.map +0 -1
  446. package/dist/db-ux/p-70b6a633.entry.js +0 -2
  447. package/dist/db-ux/p-70b6a633.entry.js.map +0 -1
  448. package/dist/db-ux/p-72cbf9ff.entry.js +0 -2
  449. package/dist/db-ux/p-72cbf9ff.entry.js.map +0 -1
  450. package/dist/db-ux/p-7346f78f.entry.js +0 -2
  451. package/dist/db-ux/p-7346f78f.entry.js.map +0 -1
  452. package/dist/db-ux/p-7b3689ea.entry.js +0 -2
  453. package/dist/db-ux/p-7b3689ea.entry.js.map +0 -1
  454. package/dist/db-ux/p-93ee59f3.entry.js +0 -2
  455. package/dist/db-ux/p-93ee59f3.entry.js.map +0 -1
  456. package/dist/db-ux/p-969ce4ec.entry.js +0 -2
  457. package/dist/db-ux/p-969ce4ec.entry.js.map +0 -1
  458. package/dist/db-ux/p-97cfc836.entry.js +0 -2
  459. package/dist/db-ux/p-97cfc836.entry.js.map +0 -1
  460. package/dist/db-ux/p-9a3c9ffe.entry.js.map +0 -1
  461. package/dist/db-ux/p-D-D8lQAG.js +0 -3
  462. package/dist/db-ux/p-D-D8lQAG.js.map +0 -1
  463. package/dist/db-ux/p-a2f461ee.entry.js +0 -2
  464. package/dist/db-ux/p-a2f461ee.entry.js.map +0 -1
  465. package/dist/db-ux/p-acca879a.entry.js +0 -2
  466. package/dist/db-ux/p-acca879a.entry.js.map +0 -1
  467. package/dist/db-ux/p-b09d7817.entry.js +0 -2
  468. package/dist/db-ux/p-b09d7817.entry.js.map +0 -1
  469. package/dist/db-ux/p-b858ced9.entry.js +0 -2
  470. package/dist/db-ux/p-b858ced9.entry.js.map +0 -1
  471. package/dist/db-ux/p-bb06aac0.entry.js +0 -2
  472. package/dist/db-ux/p-bb06aac0.entry.js.map +0 -1
  473. package/dist/db-ux/p-d10ee6dc.entry.js.map +0 -1
  474. package/dist/db-ux/p-d4d01646.entry.js +0 -2
  475. package/dist/db-ux/p-d4d01646.entry.js.map +0 -1
  476. package/dist/db-ux/p-e393938c.entry.js +0 -2
  477. package/dist/db-ux/p-e393938c.entry.js.map +0 -1
  478. package/dist/db-ux/p-ea7da771.entry.js +0 -2
  479. package/dist/db-ux/p-ea7da771.entry.js.map +0 -1
  480. package/dist/db-ux/p-fw8E73KY.js +0 -2
  481. package/dist/db-ux/p-fw8E73KY.js.map +0 -1
  482. package/dist/esm/index-D-D8lQAG.js.map +0 -1
  483. package/dist/esm/index-fw8E73KY.js.map +0 -1
@@ -1,13 +1,13 @@
1
- import { cls, getBooleanAsString, getHideProp } from "../../utils";
2
- import { h } from "@stencil/core";
1
+ import { cls, getBoolean, getBooleanAsString, getHideProp } from "../../utils";
2
+ import { h, } from "@stencil/core";
3
3
  /**
4
4
  * @slot children - This is a default/unnamed slot
5
5
 
6
6
  */
7
7
  export class DBButton {
8
8
  handleClick(event) {
9
- if (this.onClick) {
10
- this.onClick.emit(event);
9
+ if (this.click) {
10
+ this.click.emit(event);
11
11
  }
12
12
  }
13
13
  /**
@@ -46,15 +46,16 @@ export class DBButton {
46
46
  this.enableAttributePassing(this._ref, "db-button");
47
47
  }
48
48
  render() {
49
- return (h("button", { key: 'd469bdf0d339b5ea838a7f1841b1ceb7d604d660', class: cls("db-button", this.className), ref: (el) => {
49
+ return (h("button", { key: 'f804bbf8840c2d9d16d45a7255e7ec20a6473773', class: cls("db-button", this.className), ref: (el) => {
50
50
  this._ref = el;
51
- }, id: this.id, type: this.type || "button", disabled: this.disabled, "aria-label": this.label, "data-icon": this.icon, "data-hide-icon": getHideProp(this.showIcon), "data-size": this.size, "data-state": this.state, "data-width": this.width, "data-variant": this.variant, "data-no-text": getBooleanAsString(this.noText), name: this.name, value: this.value, "aria-describedby": this.describedbyid, "aria-expanded": this.ariaexpanded, "aria-pressed": this.ariapressed, onClick: (event) => this.handleClick(event) }, this.text ? this.text : h("slot", null)));
51
+ }, id: this.id, type: this.type || "button", disabled: getBoolean(this.disabled, "disabled"), "aria-label": this.label, "data-icon": this.icon, "data-hide-icon": getHideProp(this.showIcon), "data-size": this.size, "data-state": this.state, "data-width": this.width, "data-variant": this.variant, "data-no-text": getBooleanAsString(this.noText), name: this.name, form: this.form, value: this.value, "aria-describedby": this.describedbyid, "aria-expanded": this.ariaexpanded, "aria-pressed": this.ariapressed, onClick: (event) => this.handleClick(event) }, this.text ? this.text : h("slot", null)));
52
52
  }
53
53
  static get is() { return "db-button"; }
54
54
  static get properties() {
55
55
  return {
56
56
  "id": {
57
57
  "type": "string",
58
+ "attribute": "id",
58
59
  "mutable": false,
59
60
  "complexType": {
60
61
  "original": "DBButtonProps[\"id\"]",
@@ -75,11 +76,11 @@ export class DBButton {
75
76
  },
76
77
  "getter": false,
77
78
  "setter": false,
78
- "attribute": "id",
79
79
  "reflect": false
80
80
  },
81
81
  "className": {
82
82
  "type": "string",
83
+ "attribute": "classname",
83
84
  "mutable": false,
84
85
  "complexType": {
85
86
  "original": "DBButtonProps[\"className\"]",
@@ -100,11 +101,11 @@ export class DBButton {
100
101
  },
101
102
  "getter": false,
102
103
  "setter": false,
103
- "attribute": "classname",
104
104
  "reflect": false
105
105
  },
106
106
  "type": {
107
107
  "type": "string",
108
+ "attribute": "type",
108
109
  "mutable": false,
109
110
  "complexType": {
110
111
  "original": "DBButtonProps[\"type\"]",
@@ -125,15 +126,15 @@ export class DBButton {
125
126
  },
126
127
  "getter": false,
127
128
  "setter": false,
128
- "attribute": "type",
129
129
  "reflect": false
130
130
  },
131
131
  "disabled": {
132
- "type": "boolean",
132
+ "type": "any",
133
+ "attribute": "disabled",
133
134
  "mutable": false,
134
135
  "complexType": {
135
136
  "original": "DBButtonProps[\"disabled\"]",
136
- "resolved": "boolean",
137
+ "resolved": "boolean | string",
137
138
  "references": {
138
139
  "DBButtonProps": {
139
140
  "location": "import",
@@ -150,11 +151,11 @@ export class DBButton {
150
151
  },
151
152
  "getter": false,
152
153
  "setter": false,
153
- "attribute": "disabled",
154
154
  "reflect": false
155
155
  },
156
156
  "label": {
157
157
  "type": "string",
158
+ "attribute": "label",
158
159
  "mutable": false,
159
160
  "complexType": {
160
161
  "original": "DBButtonProps[\"label\"]",
@@ -175,11 +176,11 @@ export class DBButton {
175
176
  },
176
177
  "getter": false,
177
178
  "setter": false,
178
- "attribute": "label",
179
179
  "reflect": false
180
180
  },
181
181
  "icon": {
182
182
  "type": "string",
183
+ "attribute": "icon",
183
184
  "mutable": false,
184
185
  "complexType": {
185
186
  "original": "DBButtonProps[\"icon\"]",
@@ -200,15 +201,15 @@ export class DBButton {
200
201
  },
201
202
  "getter": false,
202
203
  "setter": false,
203
- "attribute": "icon",
204
204
  "reflect": false
205
205
  },
206
206
  "showIcon": {
207
- "type": "boolean",
207
+ "type": "any",
208
+ "attribute": "show-icon",
208
209
  "mutable": false,
209
210
  "complexType": {
210
211
  "original": "DBButtonProps[\"showIcon\"]",
211
- "resolved": "boolean",
212
+ "resolved": "boolean | string",
212
213
  "references": {
213
214
  "DBButtonProps": {
214
215
  "location": "import",
@@ -225,11 +226,11 @@ export class DBButton {
225
226
  },
226
227
  "getter": false,
227
228
  "setter": false,
228
- "attribute": "show-icon",
229
229
  "reflect": false
230
230
  },
231
231
  "size": {
232
232
  "type": "string",
233
+ "attribute": "size",
233
234
  "mutable": false,
234
235
  "complexType": {
235
236
  "original": "DBButtonProps[\"size\"]",
@@ -250,11 +251,11 @@ export class DBButton {
250
251
  },
251
252
  "getter": false,
252
253
  "setter": false,
253
- "attribute": "size",
254
254
  "reflect": false
255
255
  },
256
256
  "state": {
257
257
  "type": "string",
258
+ "attribute": "state",
258
259
  "mutable": false,
259
260
  "complexType": {
260
261
  "original": "DBButtonProps[\"state\"]",
@@ -275,11 +276,11 @@ export class DBButton {
275
276
  },
276
277
  "getter": false,
277
278
  "setter": false,
278
- "attribute": "state",
279
279
  "reflect": false
280
280
  },
281
281
  "width": {
282
282
  "type": "string",
283
+ "attribute": "width",
283
284
  "mutable": false,
284
285
  "complexType": {
285
286
  "original": "DBButtonProps[\"width\"]",
@@ -300,11 +301,11 @@ export class DBButton {
300
301
  },
301
302
  "getter": false,
302
303
  "setter": false,
303
- "attribute": "width",
304
304
  "reflect": false
305
305
  },
306
306
  "variant": {
307
307
  "type": "string",
308
+ "attribute": "variant",
308
309
  "mutable": false,
309
310
  "complexType": {
310
311
  "original": "DBButtonProps[\"variant\"]",
@@ -325,15 +326,15 @@ export class DBButton {
325
326
  },
326
327
  "getter": false,
327
328
  "setter": false,
328
- "attribute": "variant",
329
329
  "reflect": false
330
330
  },
331
331
  "noText": {
332
- "type": "boolean",
332
+ "type": "any",
333
+ "attribute": "no-text",
333
334
  "mutable": false,
334
335
  "complexType": {
335
336
  "original": "DBButtonProps[\"noText\"]",
336
- "resolved": "boolean",
337
+ "resolved": "boolean | string",
337
338
  "references": {
338
339
  "DBButtonProps": {
339
340
  "location": "import",
@@ -350,11 +351,11 @@ export class DBButton {
350
351
  },
351
352
  "getter": false,
352
353
  "setter": false,
353
- "attribute": "no-text",
354
354
  "reflect": false
355
355
  },
356
356
  "name": {
357
357
  "type": "string",
358
+ "attribute": "name",
358
359
  "mutable": false,
359
360
  "complexType": {
360
361
  "original": "DBButtonProps[\"name\"]",
@@ -375,11 +376,36 @@ export class DBButton {
375
376
  },
376
377
  "getter": false,
377
378
  "setter": false,
378
- "attribute": "name",
379
+ "reflect": false
380
+ },
381
+ "form": {
382
+ "type": "string",
383
+ "attribute": "form",
384
+ "mutable": false,
385
+ "complexType": {
386
+ "original": "DBButtonProps[\"form\"]",
387
+ "resolved": "string",
388
+ "references": {
389
+ "DBButtonProps": {
390
+ "location": "import",
391
+ "path": "./model",
392
+ "id": "src/components/button/model.ts::DBButtonProps"
393
+ }
394
+ }
395
+ },
396
+ "required": false,
397
+ "optional": false,
398
+ "docs": {
399
+ "tags": [],
400
+ "text": ""
401
+ },
402
+ "getter": false,
403
+ "setter": false,
379
404
  "reflect": false
380
405
  },
381
406
  "value": {
382
407
  "type": "string",
408
+ "attribute": "value",
383
409
  "mutable": false,
384
410
  "complexType": {
385
411
  "original": "DBButtonProps[\"value\"]",
@@ -400,11 +426,11 @@ export class DBButton {
400
426
  },
401
427
  "getter": false,
402
428
  "setter": false,
403
- "attribute": "value",
404
429
  "reflect": false
405
430
  },
406
431
  "describedbyid": {
407
432
  "type": "string",
433
+ "attribute": "describedbyid",
408
434
  "mutable": false,
409
435
  "complexType": {
410
436
  "original": "DBButtonProps[\"describedbyid\"]",
@@ -425,11 +451,11 @@ export class DBButton {
425
451
  },
426
452
  "getter": false,
427
453
  "setter": false,
428
- "attribute": "describedbyid",
429
454
  "reflect": false
430
455
  },
431
456
  "ariaexpanded": {
432
457
  "type": "boolean",
458
+ "attribute": "ariaexpanded",
433
459
  "mutable": false,
434
460
  "complexType": {
435
461
  "original": "DBButtonProps[\"ariaexpanded\"]",
@@ -450,11 +476,11 @@ export class DBButton {
450
476
  },
451
477
  "getter": false,
452
478
  "setter": false,
453
- "attribute": "ariaexpanded",
454
479
  "reflect": false
455
480
  },
456
481
  "ariapressed": {
457
482
  "type": "boolean",
483
+ "attribute": "ariapressed",
458
484
  "mutable": false,
459
485
  "complexType": {
460
486
  "original": "DBButtonProps[\"ariapressed\"]",
@@ -475,11 +501,11 @@ export class DBButton {
475
501
  },
476
502
  "getter": false,
477
503
  "setter": false,
478
- "attribute": "ariapressed",
479
504
  "reflect": false
480
505
  },
481
506
  "text": {
482
507
  "type": "string",
508
+ "attribute": "text",
483
509
  "mutable": false,
484
510
  "complexType": {
485
511
  "original": "DBButtonProps[\"text\"]",
@@ -500,15 +526,14 @@ export class DBButton {
500
526
  },
501
527
  "getter": false,
502
528
  "setter": false,
503
- "attribute": "text",
504
529
  "reflect": false
505
530
  }
506
531
  };
507
532
  }
508
533
  static get events() {
509
534
  return [{
510
- "method": "onClick",
511
- "name": "onClick",
535
+ "method": "click",
536
+ "name": "click",
512
537
  "bubbles": true,
513
538
  "cancelable": true,
514
539
  "composed": true,
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAGnE,OAAO,EAAE,SAAS,EAAE,CAAC,EAAY,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAGpE;;;GAGG;AAIH,MAAM,OAAO,QAAQ;IAuBnB,WAAW,CAAC,KAAoC;QAC9C,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC3B,C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AC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import type { DBButtonProps, DBButtonState } from \"./model\";\nimport { cls, getBooleanAsString, getHideProp } from \"../../utils\";\nimport { ClickEvent } from \"../../shared/model\";\n\nimport { Component, h, Fragment, Event, Prop } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-button\",\n})\nexport class DBButton {\n private _ref!: HTMLButtonElement | null;\n @Event() onClick: any;\n @Prop() id: DBButtonProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBButtonProps[\"className\"];\n @Prop() type: DBButtonProps[\"type\"];\n @Prop() disabled: DBButtonProps[\"disabled\"];\n @Prop() label: DBButtonProps[\"label\"];\n @Prop() icon: DBButtonProps[\"icon\"];\n @Prop() showIcon: DBButtonProps[\"showIcon\"];\n @Prop() size: DBButtonProps[\"size\"];\n @Prop() state: DBButtonProps[\"state\"];\n @Prop() width: DBButtonProps[\"width\"];\n @Prop() variant: DBButtonProps[\"variant\"];\n @Prop() noText: DBButtonProps[\"noText\"];\n @Prop() name: DBButtonProps[\"name\"];\n @Prop() value: DBButtonProps[\"value\"];\n @Prop() describedbyid: DBButtonProps[\"describedbyid\"];\n @Prop() ariaexpanded: DBButtonProps[\"ariaexpanded\"];\n @Prop() ariapressed: DBButtonProps[\"ariapressed\"];\n @Prop() text: DBButtonProps[\"text\"];\n\n\n handleClick(event: ClickEvent<HTMLButtonElement>) {\n if (this.onClick) {\n this.onClick.emit(event);\n }\n }\n\n /**\n * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.\n * @param element the ref for the component\n * @param customElementSelector the custom element like `my-component`\n */\n private enableAttributePassing(\n element: HTMLElement | null,\n customElementSelector: string\n ) {\n const parent = element?.closest(customElementSelector);\n if (element && parent) {\n const attributes = parent.attributes;\n for (let i = 0; i < attributes.length; i++) {\n const attr = attributes.item(i);\n if (\n attr &&\n (attr.name.startsWith(\"data-\") || attr.name.startsWith(\"aria-\"))\n ) {\n element.setAttribute(attr.name, attr.value);\n parent.removeAttribute(attr.name);\n }\n if (attr && attr.name === \"class\") {\n const isWebComponent = attr.value.includes(\"hydrated\");\n const value = attr.value.replace(\"hydrated\", \"\").trim();\n const currentClass = element.getAttribute(\"class\");\n element.setAttribute(\n attr.name,\n `${currentClass ? `${currentClass} ` : \"\"}${value}`\n );\n if (isWebComponent) {\n // Stencil is using this class for lazy loading component\n parent.setAttribute(\"class\", \"hydrated\");\n } else {\n parent.removeAttribute(attr.name);\n }\n }\n }\n }\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-button\");\n }\n\n render() {\n return (\n <button\n class={cls(\"db-button\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this.id}\n type={this.type || \"button\"}\n disabled={this.disabled}\n aria-label={this.label}\n data-icon={this.icon}\n data-hide-icon={getHideProp(this.showIcon)}\n data-size={this.size}\n data-state={this.state}\n data-width={this.width}\n data-variant={this.variant}\n data-no-text={getBooleanAsString(this.noText)}\n name={this.name}\n value={this.value}\n aria-describedby={this.describedbyid}\n aria-expanded={this.ariaexpanded}\n aria-pressed={this.ariapressed}\n onClick={(event) => this.handleClick(event)}\n >\n {this.text ? this.text : <slot></slot>}\n </button>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/E,OAAO,EACL,SAAS,EACT,CAAC,EAED,KAAK,EAEL,IAAI,GACL,MAAM,eAAe,CAAC;AAGvB;;;GAGG;AAIH,MAAM,OAAO,QAAQ;IAyBnB,WAAW,CAAC,KAAoC;QAC9C,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC;IACH,CAAC;IAED;;;;OAIG;IACK,sBAAsB,CAC5B,OAA2B,EAC3B,qBAA6B;QAE7B,MAAM,MAAM,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;QACvD,IAAI,OAAO,IAAI,MAAM,EAAE,CAAC;YACtB,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;YACrC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC3C,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBAChC,IACE,IAAI;oBACJ,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,EAChE,CAAC;oBACD,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;oBAC5C,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CA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getBoolean, getBooleanAsString, getHideProp } from \"../../utils\";\nimport { ClickEvent } from \"../../shared/model\";\n\nimport {\n Component,\n h,\n Fragment,\n Event,\n EventEmitter,\n Prop,\n} from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-button\",\n})\nexport class DBButton {\n private _ref!: HTMLButtonElement | any;\n @Event() click: EventEmitter<\n Parameters<Required<DBButtonProps>[\"onClick\"]>[number]\n > | void;\n @Prop() id: DBButtonProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBButtonProps[\"className\"];\n @Prop() type: DBButtonProps[\"type\"];\n @Prop() disabled: DBButtonProps[\"disabled\"];\n @Prop() label: DBButtonProps[\"label\"];\n @Prop() icon: DBButtonProps[\"icon\"];\n @Prop() showIcon: DBButtonProps[\"showIcon\"];\n @Prop() size: DBButtonProps[\"size\"];\n @Prop() state: DBButtonProps[\"state\"];\n @Prop() width: DBButtonProps[\"width\"];\n @Prop() variant: DBButtonProps[\"variant\"];\n @Prop() noText: DBButtonProps[\"noText\"];\n @Prop() name: DBButtonProps[\"name\"];\n @Prop() form: DBButtonProps[\"form\"];\n @Prop() value: DBButtonProps[\"value\"];\n @Prop() describedbyid: DBButtonProps[\"describedbyid\"];\n @Prop() ariaexpanded: DBButtonProps[\"ariaexpanded\"];\n @Prop() ariapressed: DBButtonProps[\"ariapressed\"];\n @Prop() text: DBButtonProps[\"text\"];\n\n handleClick(event: ClickEvent<HTMLButtonElement>) {\n if (this.click) {\n this.click.emit(event);\n }\n }\n\n /**\n * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.\n * @param element the ref for the component\n * @param customElementSelector the custom element like `my-component`\n */\n private enableAttributePassing(\n element: HTMLElement | null,\n customElementSelector: string\n ) {\n const parent = element?.closest(customElementSelector);\n if (element && parent) {\n const attributes = parent.attributes;\n for (let i = 0; i < attributes.length; i++) {\n const attr = attributes.item(i);\n if (\n attr &&\n (attr.name.startsWith(\"data-\") || attr.name.startsWith(\"aria-\"))\n ) {\n element.setAttribute(attr.name, attr.value);\n parent.removeAttribute(attr.name);\n }\n if (attr && attr.name === \"class\") {\n const isWebComponent = attr.value.includes(\"hydrated\");\n const value = attr.value.replace(\"hydrated\", \"\").trim();\n const currentClass = element.getAttribute(\"class\");\n element.setAttribute(\n attr.name,\n `${currentClass ? `${currentClass} ` : \"\"}${value}`\n );\n if (isWebComponent) {\n // Stencil is using this class for lazy loading component\n parent.setAttribute(\"class\", \"hydrated\");\n } else {\n parent.removeAttribute(attr.name);\n }\n }\n }\n }\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-button\");\n }\n\n render() {\n return (\n <button\n class={cls(\"db-button\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this.id}\n type={this.type || \"button\"}\n disabled={getBoolean(this.disabled, \"disabled\")}\n aria-label={this.label}\n data-icon={this.icon}\n data-hide-icon={getHideProp(this.showIcon)}\n data-size={this.size}\n data-state={this.state}\n data-width={this.width}\n data-variant={this.variant}\n data-no-text={getBooleanAsString(this.noText)}\n name={this.name}\n form={this.form}\n value={this.value}\n aria-describedby={this.describedbyid}\n aria-expanded={this.ariaexpanded}\n aria-pressed={this.ariapressed}\n onClick={(event) => this.handleClick(event)}\n >\n {this.text ? this.text : <slot></slot>}\n </button>\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/button/model.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAC;AAEnF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAU,CAAC;AAErE,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAAS,CAAU,CAAC","sourcesContent":["import { ClickEventProps, ClickEventState, GlobalProps, GlobalState, IconProps, ShowIconProps, SizeProps, TextProps, WidthProps } from '../../shared/model';\nexport const ButtonVariantList = ['outlined', 'brand', 'filled', 'ghost'] as const;\nexport type ButtonVariantType = (typeof ButtonVariantList)[number];\nexport const ButtonTypeList = ['button', 'reset', 'submit'] as const;\nexport type ButtonTypeType = (typeof ButtonTypeList)[number];\nexport const ButtonStateList = ['loading'] as const;\nexport type ButtonStateType = (typeof ButtonStateList)[number];\nexport type DBButtonDefaultProps = {\n /**\n * If the button controls a grouping of other elements, the ariaexpanded state [indicates whether the controlled grouping is currently expanded or collapsed](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded).\n */\n ariaexpanded?: boolean;\n\n /**\n * Defines the button as a toggle button. The value of [ariapressed describes the state of the button](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-pressed).\n */\n ariapressed?: boolean;\n\n /**\n * The disabled attribute can be set to [keep a user from clicking on the button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#disabled).\n */\n disabled?: boolean;\n\n /**\n * Define the text next to the icon specified via the icon Property to get hidden.\n */\n noText?: boolean; // We had to rename this to noText because wc-core-components uses a regex and always finds \"icon\" instead of \"onlyIcon\"\n\n /**\n * The label represents the [aria-label attributes](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label) value of the button\n */\n label?: string;\n\n /**\n * The name attribute specifies a [name attributes value](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#name) for the button.\n */\n name?: string;\n\n /**\n * The type attribute specifies the [type of button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type).\n */\n type?: ButtonTypeType;\n\n /**\n * The value attribute specifies an initial [value for the button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#value).\n */\n value?: string;\n\n /**\n * Show loading progress inside button.\n */\n state?: ButtonStateType;\n\n /**\n * Variant of the button. Use only 1 primary button on a page as CTA otherwise use one of the adaptive buttons.\n */\n variant?: ButtonVariantType | string;\n};\nexport type DBButtonProps = DBButtonDefaultProps & GlobalProps & ClickEventProps<HTMLButtonElement> & IconProps & WidthProps & SizeProps & ShowIconProps & TextProps;\nexport type DBButtonDefaultState = {};\nexport type DBButtonState = DBButtonDefaultState & GlobalState & ClickEventState<HTMLButtonElement>"]}
1
+ {"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/button/model.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAC;AAEnF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAU,CAAC;AAErE,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAAS,CAAU,CAAC","sourcesContent":["import { ClickEventProps, ClickEventState, GlobalProps, GlobalState, IconProps, ShowIconProps, SizeProps, TextProps, WidthProps } from '../../shared/model';\nexport const ButtonVariantList = ['outlined', 'brand', 'filled', 'ghost'] as const;\nexport type ButtonVariantType = (typeof ButtonVariantList)[number];\nexport const ButtonTypeList = ['button', 'reset', 'submit'] as const;\nexport type ButtonTypeType = (typeof ButtonTypeList)[number];\nexport const ButtonStateList = ['loading'] as const;\nexport type ButtonStateType = (typeof ButtonStateList)[number];\nexport type DBButtonDefaultProps = {\n /**\n * If the button controls a grouping of other elements, the ariaexpanded state [indicates whether the controlled grouping is currently expanded or collapsed](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded).\n */\n ariaexpanded?: boolean;\n\n /**\n * Defines the button as a toggle button. The value of [ariapressed describes the state of the button](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-pressed).\n */\n ariapressed?: boolean;\n\n /**\n * The disabled attribute can be set to [keep a user from clicking on the button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#disabled).\n */\n disabled?: boolean | string;\n\n /**\n * \tAssociates the control with a form element\n */\n form?: string;\n\n /**\n * The label represents the [aria-label attributes](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label) value of the button\n */\n label?: string;\n\n /**\n * The name attribute specifies a [name attributes value](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#name) for the button.\n */\n name?: string;\n\n /**\n * Define the text next to the icon specified via the icon Property to get hidden.\n */\n noText?: boolean | string;\n\n /**\n * Show loading progress inside button.\n */\n state?: ButtonStateType;\n\n /**\n * The type attribute specifies the [type of button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type).\n */\n type?: ButtonTypeType;\n\n /**\n * The value attribute specifies an initial [value for the button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#value).\n */\n value?: string;\n\n /**\n * Variant of the button. Use only 1 primary button on a page as CTA otherwise use one of the adaptive buttons.\n */\n variant?: ButtonVariantType | string;\n};\nexport type DBButtonProps = DBButtonDefaultProps & GlobalProps & ClickEventProps<HTMLButtonElement> & IconProps & WidthProps & SizeProps & ShowIconProps & TextProps;\nexport type DBButtonDefaultState = {};\nexport type DBButtonState = DBButtonDefaultState & GlobalState & ClickEventState<HTMLButtonElement>"]}
@@ -1,13 +1,13 @@
1
1
  import { cls } from "../../utils";
2
- import { h } from "@stencil/core";
2
+ import { h, } from "@stencil/core";
3
3
  /**
4
4
  * @slot children - This is a default/unnamed slot
5
5
 
6
6
  */
7
7
  export class DBCard {
8
8
  handleClick(event) {
9
- if (this.onClick) {
10
- this.onClick.emit(event);
9
+ if (this.click) {
10
+ this.click.emit(event);
11
11
  }
12
12
  }
13
13
  /**
@@ -46,15 +46,16 @@ export class DBCard {
46
46
  this.enableAttributePassing(this._ref, "db-card");
47
47
  }
48
48
  render() {
49
- return (h("div", { key: 'ccbc53820799b727bdf095528da4bf4c7fdf1129', class: cls("db-card", this.className), ref: (el) => {
49
+ return (h("div", { key: 'dfc5004a3cc98b94ccd3ff6c930f231ef39c918e', class: cls("db-card", this.className), ref: (el) => {
50
50
  this._ref = el;
51
- }, id: this.id, "data-behavior": this.behavior, "data-elevation-level": this.elevationLevel, "data-spacing": this.spacing, role: this.behavior === "interactive" ? "button" : undefined, tabIndex: this.behavior === "interactive" ? 0 : undefined, onClick: (event) => this.handleClick(event) }, h("slot", { key: '8afa05261ef6931eceecfd55694c8dc06d78f7a3' })));
51
+ }, id: this.id, "data-behavior": this.behavior, "data-elevation-level": this.elevationLevel, "data-spacing": this.spacing, role: this.behavior === "interactive" ? "button" : undefined, tabIndex: this.behavior === "interactive" ? 0 : undefined, onClick: (event) => this.handleClick(event) }, h("slot", { key: '6c73a087dab46b17c01e48eec340788f3a10bf63' })));
52
52
  }
53
53
  static get is() { return "db-card"; }
54
54
  static get properties() {
55
55
  return {
56
56
  "id": {
57
57
  "type": "string",
58
+ "attribute": "id",
58
59
  "mutable": false,
59
60
  "complexType": {
60
61
  "original": "DBCardProps[\"id\"]",
@@ -75,11 +76,11 @@ export class DBCard {
75
76
  },
76
77
  "getter": false,
77
78
  "setter": false,
78
- "attribute": "id",
79
79
  "reflect": false
80
80
  },
81
81
  "className": {
82
82
  "type": "string",
83
+ "attribute": "classname",
83
84
  "mutable": false,
84
85
  "complexType": {
85
86
  "original": "DBCardProps[\"className\"]",
@@ -100,11 +101,11 @@ export class DBCard {
100
101
  },
101
102
  "getter": false,
102
103
  "setter": false,
103
- "attribute": "classname",
104
104
  "reflect": false
105
105
  },
106
106
  "behavior": {
107
107
  "type": "string",
108
+ "attribute": "behavior",
108
109
  "mutable": false,
109
110
  "complexType": {
110
111
  "original": "DBCardProps[\"behavior\"]",
@@ -125,11 +126,11 @@ export class DBCard {
125
126
  },
126
127
  "getter": false,
127
128
  "setter": false,
128
- "attribute": "behavior",
129
129
  "reflect": false
130
130
  },
131
131
  "elevationLevel": {
132
132
  "type": "string",
133
+ "attribute": "elevation-level",
133
134
  "mutable": false,
134
135
  "complexType": {
135
136
  "original": "DBCardProps[\"elevationLevel\"]",
@@ -150,11 +151,11 @@ export class DBCard {
150
151
  },
151
152
  "getter": false,
152
153
  "setter": false,
153
- "attribute": "elevation-level",
154
154
  "reflect": false
155
155
  },
156
156
  "spacing": {
157
157
  "type": "string",
158
+ "attribute": "spacing",
158
159
  "mutable": false,
159
160
  "complexType": {
160
161
  "original": "DBCardProps[\"spacing\"]",
@@ -175,15 +176,14 @@ export class DBCard {
175
176
  },
176
177
  "getter": false,
177
178
  "setter": false,
178
- "attribute": "spacing",
179
179
  "reflect": false
180
180
  }
181
181
  };
182
182
  }
183
183
  static get events() {
184
184
  return [{
185
- "method": "onClick",
186
- "name": "onClick",
185
+ "method": "click",
186
+ "name": "click",
187
187
  "bubbles": true,
188
188
  "cancelable": true,
189
189
  "composed": true,
@@ -1 +1 @@
1
- {"version":3,"file":"card.js","sourceRoot":"","sources":["../../../src/components/card/card.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAGlC,OAAO,EAAE,SAAS,EAAE,CAAC,EAAY,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAGpE;;;GAGG;AAIH,MAAM,OAAO,MAAM;IAUjB,WAAW,CAAC,KAA8B;QACxC,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC3B,CAAC;IACH,CAAC;IAED;;;;OAIG;IACK,sBAAsB,CAC5B,OAA2B,EAC3B,qBAA6B;QAE7B,MAAM,MAAM,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;QACvD,IAAI,OAAO,IAAI,MAAM,EAAE,CAAC;YACtB,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;YACrC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC3C,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBA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,EACrC,GAAG,EAAE,CAAC,EAAO,EAAE,EAAE;gBACf,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;YACjB,CAAC,EACD,EAAE,EAAE,IAAI,CAAC,EAAE,mBACI,IAAI,CAAC,QAAQ,0BACN,IAAI,CAAC,cAAc,kBAC3B,IAAI,CAAC,OAAO,EAC1B,IAAI,EAAE,IAAI,CAAC,QAAQ,KAAK,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAC5D,QAAQ,EAAE,IAAI,CAAC,QAAQ,KAAK,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,EACzD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;YAE3C,8DAAa,CACT,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import type { DBCardProps, DBCardState } from \"./model\";\nimport { cls } from \"../../utils\";\nimport { ClickEvent } from \"../../shared/model\";\n\nimport { Component, h, Fragment, Event, Prop } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-card\",\n})\nexport class DBCard {\n private _ref!: HTMLDivElement | null;\n @Event() onClick: any;\n @Prop() id: DBCardProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBCardProps[\"className\"];\n @Prop() behavior: DBCardProps[\"behavior\"];\n @Prop() elevationLevel: DBCardProps[\"elevationLevel\"];\n @Prop() spacing: DBCardProps[\"spacing\"];\n\n\n handleClick(event: ClickEvent<HTMLElement>) {\n if (this.onClick) {\n this.onClick.emit(event);\n }\n }\n\n /**\n * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.\n * @param element the ref for the component\n * @param customElementSelector the custom element like `my-component`\n */\n private enableAttributePassing(\n element: HTMLElement | null,\n customElementSelector: string\n ) {\n const parent = element?.closest(customElementSelector);\n if (element && parent) {\n const attributes = parent.attributes;\n for (let i = 0; i < attributes.length; i++) {\n const attr = attributes.item(i);\n if (\n attr &&\n (attr.name.startsWith(\"data-\") || attr.name.startsWith(\"aria-\"))\n ) {\n element.setAttribute(attr.name, attr.value);\n parent.removeAttribute(attr.name);\n }\n if (attr && attr.name === \"class\") {\n const isWebComponent = attr.value.includes(\"hydrated\");\n const value = attr.value.replace(\"hydrated\", \"\").trim();\n const currentClass = element.getAttribute(\"class\");\n element.setAttribute(\n attr.name,\n `${currentClass ? `${currentClass} ` : \"\"}${value}`\n );\n if (isWebComponent) {\n // Stencil is using this class for lazy loading component\n parent.setAttribute(\"class\", \"hydrated\");\n } else {\n parent.removeAttribute(attr.name);\n }\n }\n }\n }\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-card\");\n }\n\n render() {\n return (\n <div\n class={cls(\"db-card\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this.id}\n data-behavior={this.behavior}\n data-elevation-level={this.elevationLevel}\n data-spacing={this.spacing}\n role={this.behavior === \"interactive\" ? \"button\" : undefined}\n tabIndex={this.behavior === \"interactive\" ? 0 : undefined}\n onClick={(event) => this.handleClick(event)}\n >\n <slot></slot>\n </div>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"card.js","sourceRoot":"","sources":["../../../src/components/card/card.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAGlC,OAAO,EACL,SAAS,EACT,CAAC,EAED,KAAK,EAEL,IAAI,GACL,MAAM,eAAe,CAAC;AAGvB;;;GAGG;AAIH,MAAM,OAAO,MAAM;IAWjB,WAAW,CAAC,KAA8B;QACxC,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,IAAI,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"./model\";\nimport { cls } from \"../../utils\";\nimport { ClickEvent } from \"../../shared/model\";\n\nimport {\n Component,\n h,\n Fragment,\n Event,\n EventEmitter,\n Prop,\n} from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-card\",\n})\nexport class DBCard {\n private _ref!: HTMLDivElement | any;\n @Event() click: EventEmitter<\n Parameters<Required<DBCardProps>[\"onClick\"]>[number]\n > | void;\n @Prop() id: DBCardProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBCardProps[\"className\"];\n @Prop() behavior: DBCardProps[\"behavior\"];\n @Prop() elevationLevel: DBCardProps[\"elevationLevel\"];\n @Prop() spacing: DBCardProps[\"spacing\"];\n\n handleClick(event: ClickEvent<HTMLElement>) {\n if (this.click) {\n this.click.emit(event);\n }\n }\n\n /**\n * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.\n * @param element the ref for the component\n * @param customElementSelector the custom element like `my-component`\n */\n private enableAttributePassing(\n element: HTMLElement | null,\n customElementSelector: string\n ) {\n const parent = element?.closest(customElementSelector);\n if (element && parent) {\n const attributes = parent.attributes;\n for (let i = 0; i < attributes.length; i++) {\n const attr = attributes.item(i);\n if (\n attr &&\n (attr.name.startsWith(\"data-\") || attr.name.startsWith(\"aria-\"))\n ) {\n element.setAttribute(attr.name, attr.value);\n parent.removeAttribute(attr.name);\n }\n if (attr && attr.name === \"class\") {\n const isWebComponent = attr.value.includes(\"hydrated\");\n const value = attr.value.replace(\"hydrated\", \"\").trim();\n const currentClass = element.getAttribute(\"class\");\n element.setAttribute(\n attr.name,\n `${currentClass ? `${currentClass} ` : \"\"}${value}`\n );\n if (isWebComponent) {\n // Stencil is using this class for lazy loading component\n parent.setAttribute(\"class\", \"hydrated\");\n } else {\n parent.removeAttribute(attr.name);\n }\n }\n }\n }\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-card\");\n }\n\n render() {\n return (\n <div\n class={cls(\"db-card\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this.id}\n data-behavior={this.behavior}\n data-elevation-level={this.elevationLevel}\n data-spacing={this.spacing}\n role={this.behavior === \"interactive\" ? \"button\" : undefined}\n tabIndex={this.behavior === \"interactive\" ? 0 : undefined}\n onClick={(event) => this.handleClick(event)}\n >\n <slot></slot>\n </div>\n );\n }\n}\n"]}