@db-ux/wc-core-components 2.1.2 → 2.2.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 (280) hide show
  1. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -1
  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 +2 -2
  9. package/dist/cjs/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.entry.cjs.js.map +1 -1
  10. package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +4 -4
  11. package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js.map +1 -1
  12. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +2 -2
  13. package/dist/cjs/db-custom-select.cjs.entry.js +37 -13
  14. package/dist/cjs/db-custom-select.cjs.entry.js.map +1 -1
  15. package/dist/cjs/db-custom-select.entry.cjs.js.map +1 -1
  16. package/dist/cjs/db-divider.cjs.entry.js +2 -2
  17. package/dist/cjs/db-drawer.cjs.entry.js +2 -2
  18. package/dist/cjs/db-header.cjs.entry.js +4 -3
  19. package/dist/cjs/db-header.cjs.entry.js.map +1 -1
  20. package/dist/cjs/db-header.entry.cjs.js.map +1 -1
  21. package/dist/cjs/db-icon.cjs.entry.js +2 -2
  22. package/dist/cjs/db-infotext.cjs.entry.js +2 -2
  23. package/dist/cjs/db-link.cjs.entry.js +2 -2
  24. package/dist/cjs/db-navigation-item.cjs.entry.js +4 -3
  25. package/dist/cjs/db-navigation-item.cjs.entry.js.map +1 -1
  26. package/dist/cjs/db-navigation-item.entry.cjs.js.map +1 -1
  27. package/dist/cjs/db-navigation.cjs.entry.js +2 -2
  28. package/dist/cjs/db-notification.cjs.entry.js +2 -2
  29. package/dist/cjs/db-page.cjs.entry.js +2 -2
  30. package/dist/cjs/db-popover.cjs.entry.js +65 -11
  31. package/dist/cjs/db-popover.cjs.entry.js.map +1 -1
  32. package/dist/cjs/db-popover.entry.cjs.js.map +1 -1
  33. package/dist/cjs/db-radio.cjs.entry.js +2 -2
  34. package/dist/cjs/db-section.cjs.entry.js +2 -2
  35. package/dist/cjs/db-select.cjs.entry.js +7 -7
  36. package/dist/cjs/db-select.cjs.entry.js.map +1 -1
  37. package/dist/cjs/db-select.entry.cjs.js.map +1 -1
  38. package/dist/cjs/db-stack.cjs.entry.js +2 -2
  39. package/dist/cjs/db-switch.cjs.entry.js +2 -2
  40. package/dist/cjs/db-tab-item_3.cjs.entry.js +2 -2
  41. package/dist/cjs/db-tabs.cjs.entry.js +2 -2
  42. package/dist/cjs/db-textarea.cjs.entry.js +6 -6
  43. package/dist/cjs/db-textarea.cjs.entry.js.map +1 -1
  44. package/dist/cjs/db-textarea.entry.cjs.js.map +1 -1
  45. package/dist/cjs/db-tooltip.cjs.entry.js +66 -14
  46. package/dist/cjs/db-tooltip.cjs.entry.js.map +1 -1
  47. package/dist/cjs/db-tooltip.entry.cjs.js.map +1 -1
  48. package/dist/cjs/db-ux.cjs.js +3 -3
  49. package/dist/cjs/db-ux.cjs.js.map +1 -1
  50. package/dist/cjs/{document-click-listener-Dfd-wUYX.js → document-click-listener-DT5rWFez.js} +3 -3
  51. package/dist/cjs/{document-click-listener-Dfd-wUYX.js.map → document-click-listener-DT5rWFez.js.map} +1 -1
  52. package/dist/cjs/document-scroll-listener-Dr1OKmow.js +46 -0
  53. package/dist/cjs/document-scroll-listener-Dr1OKmow.js.map +1 -0
  54. package/dist/cjs/floating-components-BNCfdqZJ.js +299 -0
  55. package/dist/cjs/floating-components-BNCfdqZJ.js.map +1 -0
  56. package/dist/cjs/{index-7lbP4BU6.js → index-ArRmNC2k.js} +8 -76
  57. package/dist/cjs/index-ArRmNC2k.js.map +1 -0
  58. package/dist/cjs/{index-BzLx0HVU.js → index-DiwURPCd.js} +3 -3
  59. package/dist/cjs/index-DiwURPCd.js.map +1 -0
  60. package/dist/cjs/index.cjs.js +9 -8
  61. package/dist/cjs/index.cjs.js.map +1 -1
  62. package/dist/cjs/loader.cjs.js +2 -2
  63. package/dist/cjs/{navigation-BLjJ1vaO.js → navigation-U4SBgT7D.js} +4 -4
  64. package/dist/cjs/navigation-U4SBgT7D.js.map +1 -0
  65. package/dist/collection/collection-manifest.json +1 -1
  66. package/dist/collection/components/custom-select/custom-select.js +61 -35
  67. package/dist/collection/components/custom-select/custom-select.js.map +1 -1
  68. package/dist/collection/components/custom-select/model.js.map +1 -1
  69. package/dist/collection/components/input/input.js +27 -2
  70. package/dist/collection/components/input/input.js.map +1 -1
  71. package/dist/collection/components/popover/model.js.map +1 -1
  72. package/dist/collection/components/popover/popover.js +92 -36
  73. package/dist/collection/components/popover/popover.js.map +1 -1
  74. package/dist/collection/components/select/select.js +5 -5
  75. package/dist/collection/components/select/select.js.map +1 -1
  76. package/dist/collection/components/textarea/model.js.map +1 -1
  77. package/dist/collection/components/textarea/textarea.js +54 -4
  78. package/dist/collection/components/textarea/textarea.js.map +1 -1
  79. package/dist/collection/components/tooltip/model.js.map +1 -1
  80. package/dist/collection/components/tooltip/tooltip.js +93 -39
  81. package/dist/collection/components/tooltip/tooltip.js.map +1 -1
  82. package/dist/collection/shared/model.js +1 -0
  83. package/dist/collection/shared/model.js.map +1 -1
  84. package/dist/collection/utils/document-scroll-listener.js +39 -0
  85. package/dist/collection/utils/document-scroll-listener.js.map +1 -0
  86. package/dist/collection/utils/floating-components.js +291 -0
  87. package/dist/collection/utils/floating-components.js.map +1 -0
  88. package/dist/collection/utils/index.js +5 -70
  89. package/dist/collection/utils/index.js.map +1 -1
  90. package/dist/collection/utils/navigation.js +1 -1
  91. package/dist/collection/utils/navigation.js.map +1 -1
  92. package/dist/custom-elements.json +313 -97
  93. package/dist/db-ux/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.entry.esm.js.map +1 -1
  94. package/dist/db-ux/db-custom-select.entry.esm.js.map +1 -1
  95. package/dist/db-ux/db-header.entry.esm.js.map +1 -1
  96. package/dist/db-ux/db-navigation-item.entry.esm.js.map +1 -1
  97. package/dist/db-ux/db-popover.entry.esm.js.map +1 -1
  98. package/dist/db-ux/db-select.entry.esm.js.map +1 -1
  99. package/dist/db-ux/db-textarea.entry.esm.js.map +1 -1
  100. package/dist/db-ux/db-tooltip.entry.esm.js.map +1 -1
  101. package/dist/db-ux/db-ux.esm.js +1 -1
  102. package/dist/db-ux/db-ux.esm.js.map +1 -1
  103. package/dist/db-ux/index.esm.js +1 -1
  104. package/dist/db-ux/index.esm.js.map +1 -1
  105. package/dist/db-ux/p-04fb737c.entry.js +2 -0
  106. package/dist/db-ux/p-04fb737c.entry.js.map +1 -0
  107. package/dist/db-ux/{p-b4bc8f26.entry.js → p-0bb2fc14.entry.js} +2 -2
  108. package/dist/db-ux/{p-16a0ae38.entry.js → p-0d8b6ecd.entry.js} +2 -2
  109. package/dist/db-ux/p-0f107c11.entry.js +2 -0
  110. package/dist/db-ux/{p-0740aa7d.entry.js → p-144ebba2.entry.js} +2 -2
  111. package/dist/db-ux/{p-14c44b94.entry.js → p-1face452.entry.js} +2 -2
  112. package/dist/db-ux/{p-8b7d868b.entry.js → p-36b32211.entry.js} +2 -2
  113. package/dist/db-ux/p-3fe511ce.entry.js +2 -0
  114. package/dist/db-ux/{p-5c2eddb6.entry.js.map → p-3fe511ce.entry.js.map} +1 -1
  115. package/dist/db-ux/p-474734cf.entry.js +2 -0
  116. package/dist/db-ux/p-474734cf.entry.js.map +1 -0
  117. package/dist/db-ux/p-4c47f2d7.entry.js +2 -0
  118. package/dist/db-ux/p-4c47f2d7.entry.js.map +1 -0
  119. package/dist/db-ux/{p-55b02c80.entry.js → p-53f83d20.entry.js} +2 -2
  120. package/dist/db-ux/{p-0e4c3fb1.entry.js → p-55f53705.entry.js} +2 -2
  121. package/dist/db-ux/p-5bbfcf9a.entry.js +2 -0
  122. package/dist/db-ux/p-5bbfcf9a.entry.js.map +1 -0
  123. package/dist/db-ux/{p-f83357e2.entry.js → p-5c63036a.entry.js} +2 -2
  124. package/dist/db-ux/p-695bf91e.entry.js +2 -0
  125. package/dist/db-ux/{p-8ad4f80a.entry.js.map → p-695bf91e.entry.js.map} +1 -1
  126. package/dist/db-ux/p-698c2d19.entry.js +2 -0
  127. package/dist/db-ux/p-698c2d19.entry.js.map +1 -0
  128. package/dist/db-ux/p-6f1226da.entry.js +2 -0
  129. package/dist/db-ux/{p-139f5623.entry.js → p-77ce5cb6.entry.js} +2 -2
  130. package/dist/db-ux/{p-c088c8c8.entry.js → p-833f8694.entry.js} +2 -2
  131. package/dist/db-ux/{p-7de004e3.entry.js → p-87a03fc0.entry.js} +2 -2
  132. package/dist/db-ux/{p-6wgV8aKO.js → p-BDA9dlfd.js} +2 -2
  133. package/dist/db-ux/p-BDA9dlfd.js.map +1 -0
  134. package/dist/db-ux/p-BbHrTk7a.js +2 -0
  135. package/dist/db-ux/{p-YMQoOWgh.js.map → p-BbHrTk7a.js.map} +1 -1
  136. package/dist/db-ux/p-BgQRUWMZ.js +2 -0
  137. package/dist/db-ux/p-BgQRUWMZ.js.map +1 -0
  138. package/dist/db-ux/{p-bH2PZLSq.js → p-Ctmm4hMW.js} +1 -1
  139. package/dist/db-ux/p-Ctmm4hMW.js.map +1 -0
  140. package/dist/db-ux/p-DQuL1Twl.js.map +1 -1
  141. package/dist/db-ux/p-DYeQU2bY.js +2 -0
  142. package/dist/db-ux/p-DYeQU2bY.js.map +1 -0
  143. package/dist/db-ux/p-Dgkqk5fN.js +2 -0
  144. package/dist/db-ux/p-Dgkqk5fN.js.map +1 -0
  145. package/dist/db-ux/{p-6b6dbd54.entry.js → p-a107ec7c.entry.js} +2 -2
  146. package/dist/db-ux/p-b0c5f546.entry.js +2 -0
  147. package/dist/db-ux/p-b0c5f546.entry.js.map +1 -0
  148. package/dist/db-ux/{p-9046dcdf.entry.js → p-c40a990b.entry.js} +2 -2
  149. package/dist/db-ux/{p-5c4d25b8.entry.js → p-c673c483.entry.js} +2 -2
  150. package/dist/db-ux/{p-01112955.entry.js → p-ca134c76.entry.js} +2 -2
  151. package/dist/db-ux/{p-c5909b40.entry.js → p-cff88428.entry.js} +2 -2
  152. package/dist/db-ux/{p-9c07a46d.entry.js → p-d5e0c0b5.entry.js} +2 -2
  153. package/dist/db-ux/{p-40713825.entry.js → p-ef6cda9f.entry.js} +2 -2
  154. package/dist/db-ux/{p-e8cabe82.entry.js → p-f60fc221.entry.js} +2 -2
  155. package/dist/db-ux/{p-63f30576.entry.js → p-f71fe126.entry.js} +2 -2
  156. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -1
  157. package/dist/esm/db-accordion-item.entry.js +2 -2
  158. package/dist/esm/db-accordion.entry.js +2 -2
  159. package/dist/esm/db-badge.entry.js +2 -2
  160. package/dist/esm/db-brand.entry.js +2 -2
  161. package/dist/esm/db-button.entry.js +2 -2
  162. package/dist/esm/db-card.entry.js +2 -2
  163. package/dist/esm/db-checkbox.entry.js +2 -2
  164. package/dist/esm/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.entry.js.map +1 -1
  165. package/dist/esm/db-custom-select-dropdown_5.entry.js +4 -4
  166. package/dist/esm/db-custom-select-dropdown_5.entry.js.map +1 -1
  167. package/dist/esm/db-custom-select-form-field.entry.js +2 -2
  168. package/dist/esm/db-custom-select.entry.js +37 -13
  169. package/dist/esm/db-custom-select.entry.js.map +1 -1
  170. package/dist/esm/db-divider.entry.js +2 -2
  171. package/dist/esm/db-drawer.entry.js +2 -2
  172. package/dist/esm/db-header.entry.js +4 -3
  173. package/dist/esm/db-header.entry.js.map +1 -1
  174. package/dist/esm/db-icon.entry.js +2 -2
  175. package/dist/esm/db-infotext.entry.js +2 -2
  176. package/dist/esm/db-link.entry.js +2 -2
  177. package/dist/esm/db-navigation-item.entry.js +4 -3
  178. package/dist/esm/db-navigation-item.entry.js.map +1 -1
  179. package/dist/esm/db-navigation.entry.js +2 -2
  180. package/dist/esm/db-notification.entry.js +2 -2
  181. package/dist/esm/db-page.entry.js +2 -2
  182. package/dist/esm/db-popover.entry.js +65 -11
  183. package/dist/esm/db-popover.entry.js.map +1 -1
  184. package/dist/esm/db-radio.entry.js +2 -2
  185. package/dist/esm/db-section.entry.js +2 -2
  186. package/dist/esm/db-select.entry.js +7 -7
  187. package/dist/esm/db-select.entry.js.map +1 -1
  188. package/dist/esm/db-stack.entry.js +2 -2
  189. package/dist/esm/db-switch.entry.js +2 -2
  190. package/dist/esm/db-tab-item_3.entry.js +2 -2
  191. package/dist/esm/db-tabs.entry.js +2 -2
  192. package/dist/esm/db-textarea.entry.js +6 -6
  193. package/dist/esm/db-textarea.entry.js.map +1 -1
  194. package/dist/esm/db-tooltip.entry.js +66 -14
  195. package/dist/esm/db-tooltip.entry.js.map +1 -1
  196. package/dist/esm/db-ux.js +4 -4
  197. package/dist/esm/db-ux.js.map +1 -1
  198. package/dist/esm/{document-click-listener-Bf90GXqB.js → document-click-listener-CG0rJGJ-.js} +3 -3
  199. package/dist/esm/{document-click-listener-Bf90GXqB.js.map → document-click-listener-CG0rJGJ-.js.map} +1 -1
  200. package/dist/esm/document-scroll-listener-CwWQuwL5.js +44 -0
  201. package/dist/esm/document-scroll-listener-CwWQuwL5.js.map +1 -0
  202. package/dist/esm/floating-components-DYeQU2bY.js +295 -0
  203. package/dist/esm/floating-components-DYeQU2bY.js.map +1 -0
  204. package/dist/esm/{index-pglUTSkG.js → index-BgQRUWMZ.js} +8 -73
  205. package/dist/esm/index-BgQRUWMZ.js.map +1 -0
  206. package/dist/esm/{index-bH2PZLSq.js → index-Ctmm4hMW.js} +3 -3
  207. package/dist/esm/index-Ctmm4hMW.js.map +1 -0
  208. package/dist/esm/index.js +8 -5
  209. package/dist/esm/index.js.map +1 -1
  210. package/dist/esm/loader.js +3 -3
  211. package/dist/esm/{navigation-C1ssnmpm.js → navigation-CE_2IUA4.js} +3 -3
  212. package/dist/esm/navigation-CE_2IUA4.js.map +1 -0
  213. package/dist/types/components/custom-select/custom-select.d.ts +4 -2
  214. package/dist/types/components/custom-select/model.d.ts +3 -3
  215. package/dist/types/components/input/input.d.ts +1 -0
  216. package/dist/types/components/popover/model.d.ts +0 -1
  217. package/dist/types/components/popover/popover.d.ts +7 -2
  218. package/dist/types/components/textarea/model.d.ts +4 -0
  219. package/dist/types/components/textarea/textarea.d.ts +2 -0
  220. package/dist/types/components/tooltip/model.d.ts +5 -3
  221. package/dist/types/components/tooltip/tooltip.d.ts +9 -2
  222. package/dist/types/components.d.ts +24 -0
  223. package/dist/types/shared/model.d.ts +18 -3
  224. package/dist/types/stencil-public-runtime.d.ts +1 -1
  225. package/dist/types/utils/document-scroll-listener.d.ts +9 -0
  226. package/dist/types/utils/floating-components.d.ts +7 -0
  227. package/dist/types/utils/index.d.ts +4 -13
  228. package/dist/types/utils/navigation.d.ts +1 -1
  229. package/dist/vscode.html-custom-data.json +37 -22
  230. package/dist/web-types.json +70 -34
  231. package/package.json +4 -4
  232. package/dist/cjs/index-7lbP4BU6.js.map +0 -1
  233. package/dist/cjs/index-BzLx0HVU.js.map +0 -1
  234. package/dist/cjs/navigation-BLjJ1vaO.js.map +0 -1
  235. package/dist/db-ux/p-39d957bb.entry.js +0 -2
  236. package/dist/db-ux/p-426d06bb.entry.js +0 -2
  237. package/dist/db-ux/p-426d06bb.entry.js.map +0 -1
  238. package/dist/db-ux/p-52e736c3.entry.js +0 -2
  239. package/dist/db-ux/p-5c2eddb6.entry.js +0 -2
  240. package/dist/db-ux/p-6610dd91.entry.js +0 -2
  241. package/dist/db-ux/p-6610dd91.entry.js.map +0 -1
  242. package/dist/db-ux/p-6wgV8aKO.js.map +0 -1
  243. package/dist/db-ux/p-7332ab62.entry.js +0 -2
  244. package/dist/db-ux/p-7332ab62.entry.js.map +0 -1
  245. package/dist/db-ux/p-8ad4f80a.entry.js +0 -2
  246. package/dist/db-ux/p-YMQoOWgh.js +0 -2
  247. package/dist/db-ux/p-a49adbd6.entry.js +0 -2
  248. package/dist/db-ux/p-a49adbd6.entry.js.map +0 -1
  249. package/dist/db-ux/p-a8feda0a.entry.js +0 -2
  250. package/dist/db-ux/p-a8feda0a.entry.js.map +0 -1
  251. package/dist/db-ux/p-bH2PZLSq.js.map +0 -1
  252. package/dist/db-ux/p-e3117b8a.entry.js +0 -2
  253. package/dist/db-ux/p-e3117b8a.entry.js.map +0 -1
  254. package/dist/db-ux/p-pglUTSkG.js +0 -2
  255. package/dist/db-ux/p-pglUTSkG.js.map +0 -1
  256. package/dist/esm/index-bH2PZLSq.js.map +0 -1
  257. package/dist/esm/index-pglUTSkG.js.map +0 -1
  258. package/dist/esm/navigation-C1ssnmpm.js.map +0 -1
  259. /package/dist/db-ux/{p-b4bc8f26.entry.js.map → p-0bb2fc14.entry.js.map} +0 -0
  260. /package/dist/db-ux/{p-16a0ae38.entry.js.map → p-0d8b6ecd.entry.js.map} +0 -0
  261. /package/dist/db-ux/{p-39d957bb.entry.js.map → p-0f107c11.entry.js.map} +0 -0
  262. /package/dist/db-ux/{p-0740aa7d.entry.js.map → p-144ebba2.entry.js.map} +0 -0
  263. /package/dist/db-ux/{p-14c44b94.entry.js.map → p-1face452.entry.js.map} +0 -0
  264. /package/dist/db-ux/{p-8b7d868b.entry.js.map → p-36b32211.entry.js.map} +0 -0
  265. /package/dist/db-ux/{p-55b02c80.entry.js.map → p-53f83d20.entry.js.map} +0 -0
  266. /package/dist/db-ux/{p-0e4c3fb1.entry.js.map → p-55f53705.entry.js.map} +0 -0
  267. /package/dist/db-ux/{p-f83357e2.entry.js.map → p-5c63036a.entry.js.map} +0 -0
  268. /package/dist/db-ux/{p-52e736c3.entry.js.map → p-6f1226da.entry.js.map} +0 -0
  269. /package/dist/db-ux/{p-139f5623.entry.js.map → p-77ce5cb6.entry.js.map} +0 -0
  270. /package/dist/db-ux/{p-c088c8c8.entry.js.map → p-833f8694.entry.js.map} +0 -0
  271. /package/dist/db-ux/{p-7de004e3.entry.js.map → p-87a03fc0.entry.js.map} +0 -0
  272. /package/dist/db-ux/{p-6b6dbd54.entry.js.map → p-a107ec7c.entry.js.map} +0 -0
  273. /package/dist/db-ux/{p-9046dcdf.entry.js.map → p-c40a990b.entry.js.map} +0 -0
  274. /package/dist/db-ux/{p-5c4d25b8.entry.js.map → p-c673c483.entry.js.map} +0 -0
  275. /package/dist/db-ux/{p-01112955.entry.js.map → p-ca134c76.entry.js.map} +0 -0
  276. /package/dist/db-ux/{p-c5909b40.entry.js.map → p-cff88428.entry.js.map} +0 -0
  277. /package/dist/db-ux/{p-9c07a46d.entry.js.map → p-d5e0c0b5.entry.js.map} +0 -0
  278. /package/dist/db-ux/{p-40713825.entry.js.map → p-ef6cda9f.entry.js.map} +0 -0
  279. /package/dist/db-ux/{p-e8cabe82.entry.js.map → p-f60fc221.entry.js.map} +0 -0
  280. /package/dist/db-ux/{p-63f30576.entry.js.map → p-f71fe126.entry.js.map} +0 -0
@@ -0,0 +1,7 @@
1
+ export interface DBDataOutsidePair {
2
+ vx?: 'left' | 'right';
3
+ vy?: 'top' | 'bottom';
4
+ }
5
+ export declare const handleDataOutside: (el: HTMLElement) => DBDataOutsidePair;
6
+ export declare const handleFixedDropdown: (element: HTMLElement, parent: HTMLElement, placement: string) => void;
7
+ export declare const handleFixedPopover: (element: HTMLElement, parent: HTMLElement, placement: string) => void;
@@ -7,19 +7,6 @@ export type ClassNameArg = string | {
7
7
  [key: string]: boolean | undefined;
8
8
  } | undefined;
9
9
  export declare const cls: (...args: ClassNameArg[]) => string;
10
- export declare const visibleInVX: (el: Element) => boolean;
11
- export declare const visibleInVY: (el: Element) => boolean;
12
- export declare const isInView: (el: Element) => {
13
- outTop: boolean;
14
- outBottom: boolean;
15
- outLeft: boolean;
16
- outRight: boolean;
17
- };
18
- export interface DBDataOutsidePair {
19
- vx?: 'left' | 'right';
20
- vy?: 'top' | 'bottom';
21
- }
22
- export declare const handleDataOutside: (el: Element) => DBDataOutsidePair;
23
10
  export declare const isArrayOfStrings: (value: unknown) => value is string[];
24
11
  export declare const hasVoiceOver: () => boolean;
25
12
  export declare const delay: (fn: () => void, ms: number) => Promise<unknown>;
@@ -45,3 +32,7 @@ export declare const getInputValue: (value?: number | string, inputType?: string
45
32
  export declare const getHideProp: (show?: boolean | string) => any;
46
33
  export declare const stringPropVisible: (givenString?: string, showString?: boolean | string) => boolean;
47
34
  export declare const getSearchInput: (element: HTMLElement) => HTMLInputElement | null;
35
+ export declare const getOptionKey: (option: {
36
+ id?: string;
37
+ value?: string | number | string[] | undefined;
38
+ }, prefix: string) => string;
@@ -15,7 +15,7 @@ export declare class NavigationItemSafeTriangle {
15
15
  private initialized;
16
16
  private mouseX;
17
17
  private mouseY;
18
- constructor(element: HTMLElement | null, subNavigation: Element | null);
18
+ constructor(element: HTMLElement | null, subNavigation: HTMLElement | null);
19
19
  private init;
20
20
  enableFollow(): void;
21
21
  disableFollow(): void;
@@ -796,6 +796,11 @@
796
796
  "description": "The label attribute specifies the caption of the form element.",
797
797
  "values": []
798
798
  },
799
+ {
800
+ "name": "field-sizing",
801
+ "description": "Adds shrinkwrap for input and textarea: https://developer.mozilla.org/en-US/docs/Web/CSS/field-sizing\nNote: Only supported in Chromium browsers so far",
802
+ "values": [{ "name": "fixed" }, { "name": "content" }]
803
+ },
799
804
  {
800
805
  "name": "name",
801
806
  "description": "The name attribute gives the name of the form control, as used in form submission and in the form element's elements object.",
@@ -1542,6 +1547,11 @@
1542
1547
  "description": "Change the behavior of the tooltip:\n- description: Adds `aria-describedby` to parent\n- label: Adds `aria-labelledby` to parent",
1543
1548
  "values": [{ "name": "description" }, { "name": "label" }]
1544
1549
  },
1550
+ {
1551
+ "name": "placement",
1552
+ "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
1553
+ "values": [{ "name": "undefined" }, { "name": "undefined" }]
1554
+ },
1545
1555
  {
1546
1556
  "name": "classname",
1547
1557
  "description": "React specific for adding className to the component.",
@@ -1571,11 +1581,6 @@
1571
1581
  "name": "show-arrow",
1572
1582
  "description": "Show/Hides arrow",
1573
1583
  "values": []
1574
- },
1575
- {
1576
- "name": "placement",
1577
- "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
1578
- "values": [{ "name": "undefined" }, { "name": "undefined" }]
1579
1584
  }
1580
1585
  ],
1581
1586
  "references": []
@@ -1733,6 +1738,11 @@
1733
1738
  "description": "The label attribute specifies the caption of the form element.",
1734
1739
  "values": []
1735
1740
  },
1741
+ {
1742
+ "name": "field-sizing",
1743
+ "description": "Adds shrinkwrap for input and textarea: https://developer.mozilla.org/en-US/docs/Web/CSS/field-sizing\nNote: Only supported in Chromium browsers so far",
1744
+ "values": [{ "name": "fixed" }, { "name": "content" }]
1745
+ },
1736
1746
  {
1737
1747
  "name": "resize",
1738
1748
  "description": "In most browsers, textareas are resizable — you'll notice the drag handle in the right-hand corner, you can control it with this",
@@ -1743,6 +1753,11 @@
1743
1753
  { "name": "vertical" }
1744
1754
  ]
1745
1755
  },
1756
+ {
1757
+ "name": "show-resizer",
1758
+ "description": "Show/Hides drag handle in the right-hand corner - default: true",
1759
+ "values": []
1760
+ },
1746
1761
  {
1747
1762
  "name": "disabled",
1748
1763
  "description": "The disabled attribute can be set to keep a user from clicking on the form element.",
@@ -2056,6 +2071,11 @@
2056
2071
  "name": "db-popover",
2057
2072
  "description": "\n---\n\n\n### **Slots:**\n - **children** - default slot\n- **trigger** - The trigger to open the popover e.g. a button",
2058
2073
  "attributes": [
2074
+ {
2075
+ "name": "placement",
2076
+ "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
2077
+ "values": [{ "name": "undefined" }, { "name": "undefined" }]
2078
+ },
2059
2079
  {
2060
2080
  "name": "id",
2061
2081
  "description": "[ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.",
@@ -2100,11 +2120,6 @@
2100
2120
  "name": "width",
2101
2121
  "description": "Use fixed with for default max-width",
2102
2122
  "values": [{ "name": "auto" }, { "name": "fixed" }]
2103
- },
2104
- {
2105
- "name": "placement",
2106
- "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
2107
- "values": [{ "name": "undefined" }, { "name": "undefined" }]
2108
2123
  }
2109
2124
  ],
2110
2125
  "references": []
@@ -2517,6 +2532,18 @@
2517
2532
  "description": "Optional: if you use selectedType=tag and options, you need to set the removeTagsTexts for screen reader users",
2518
2533
  "values": [{ "name": "string[]" }]
2519
2534
  },
2535
+ {
2536
+ "name": "placement",
2537
+ "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
2538
+ "values": [
2539
+ { "name": "top" },
2540
+ { "name": "bottom" },
2541
+ { "name": "top-start" },
2542
+ { "name": "top-end" },
2543
+ { "name": "bottom-start" },
2544
+ { "name": "bottom-end" }
2545
+ ]
2546
+ },
2520
2547
  {
2521
2548
  "name": "search-filter",
2522
2549
  "description": "Optional: Change the filter function for the search input",
@@ -2537,18 +2564,6 @@
2537
2564
  "description": "Change the variant of the label to float or hidden",
2538
2565
  "values": [{ "name": "above" }, { "name": "floating" }]
2539
2566
  },
2540
- {
2541
- "name": "placement",
2542
- "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
2543
- "values": [
2544
- { "name": "top" },
2545
- { "name": "bottom" },
2546
- { "name": "top-start" },
2547
- { "name": "top-end" },
2548
- { "name": "bottom-start" },
2549
- { "name": "bottom-end" }
2550
- ]
2551
- },
2552
2567
  {
2553
2568
  "name": "show-label",
2554
2569
  "description": "Enables/disables the visibility of the label",
@@ -1469,6 +1469,11 @@
1469
1469
  "description": "The label attribute specifies the caption of the form element.",
1470
1470
  "value": { "type": "string" }
1471
1471
  },
1472
+ {
1473
+ "name": "field-sizing",
1474
+ "description": "Adds shrinkwrap for input and textarea: https://developer.mozilla.org/en-US/docs/Web/CSS/field-sizing\nNote: Only supported in Chromium browsers so far",
1475
+ "value": { "type": "\"fixed\" | \"content\"" }
1476
+ },
1472
1477
  {
1473
1478
  "name": "name",
1474
1479
  "description": "The name attribute gives the name of the form control, as used in form submission and in the form element's elements object.",
@@ -1680,6 +1685,11 @@
1680
1685
  "description": "The label attribute specifies the caption of the form element.",
1681
1686
  "type": "string"
1682
1687
  },
1688
+ {
1689
+ "name": "fieldSizing",
1690
+ "description": "Adds shrinkwrap for input and textarea: https://developer.mozilla.org/en-US/docs/Web/CSS/field-sizing\nNote: Only supported in Chromium browsers so far",
1691
+ "type": "\"fixed\" | \"content\""
1692
+ },
1683
1693
  {
1684
1694
  "name": "name",
1685
1695
  "description": "The name attribute gives the name of the form control, as used in form submission and in the form element's elements object.",
@@ -2959,6 +2969,11 @@
2959
2969
  "description": "Change the behavior of the tooltip:\n- description: Adds `aria-describedby` to parent\n- label: Adds `aria-labelledby` to parent",
2960
2970
  "value": { "type": "\"description\" | \"label\"" }
2961
2971
  },
2972
+ {
2973
+ "name": "placement",
2974
+ "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
2975
+ "value": { "type": "\"undefined\" | \"undefined\"" }
2976
+ },
2962
2977
  {
2963
2978
  "name": "classname",
2964
2979
  "description": "React specific for adding className to the component.",
@@ -2988,11 +3003,6 @@
2988
3003
  "name": "show-arrow",
2989
3004
  "description": "Show/Hides arrow",
2990
3005
  "value": { "type": "boolean | string" }
2991
- },
2992
- {
2993
- "name": "placement",
2994
- "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
2995
- "value": { "type": "\"undefined\" | \"undefined\"" }
2996
3006
  }
2997
3007
  ],
2998
3008
  "slots": [{ "name": "children", "description": "default slot" }],
@@ -3009,6 +3019,11 @@
3009
3019
  "description": "Change the behavior of the tooltip:\n- description: Adds `aria-describedby` to parent\n- label: Adds `aria-labelledby` to parent",
3010
3020
  "type": "\"description\" | \"label\""
3011
3021
  },
3022
+ {
3023
+ "name": "placement",
3024
+ "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
3025
+ "type": "\"undefined\" | \"undefined\""
3026
+ },
3012
3027
  {
3013
3028
  "name": "className",
3014
3029
  "description": "React specific for adding className to the component.",
@@ -3039,13 +3054,10 @@
3039
3054
  "description": "Show/Hides arrow",
3040
3055
  "type": "boolean | string"
3041
3056
  },
3042
- {
3043
- "name": "placement",
3044
- "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
3045
- "type": "\"undefined\" | \"undefined\""
3046
- },
3047
3057
  { "name": "_id" },
3048
- { "name": "initialized", "type": "boolean" }
3058
+ { "name": "initialized", "type": "boolean" },
3059
+ { "name": "_documentScrollListenerCallbackId" },
3060
+ { "name": "_observer" }
3049
3061
  ],
3050
3062
  "events": []
3051
3063
  }
@@ -3288,6 +3300,11 @@
3288
3300
  "description": "The label attribute specifies the caption of the form element.",
3289
3301
  "value": { "type": "string" }
3290
3302
  },
3303
+ {
3304
+ "name": "field-sizing",
3305
+ "description": "Adds shrinkwrap for input and textarea: https://developer.mozilla.org/en-US/docs/Web/CSS/field-sizing\nNote: Only supported in Chromium browsers so far",
3306
+ "value": { "type": "\"fixed\" | \"content\"" }
3307
+ },
3291
3308
  {
3292
3309
  "name": "resize",
3293
3310
  "description": "In most browsers, textareas are resizable — you'll notice the drag handle in the right-hand corner, you can control it with this",
@@ -3295,6 +3312,11 @@
3295
3312
  "type": "\"none\" | \"both\" | \"horizontal\" | \"vertical\""
3296
3313
  }
3297
3314
  },
3315
+ {
3316
+ "name": "show-resizer",
3317
+ "description": "Show/Hides drag handle in the right-hand corner - default: true",
3318
+ "value": { "type": "boolean | string" }
3319
+ },
3298
3320
  {
3299
3321
  "name": "disabled",
3300
3322
  "description": "The disabled attribute can be set to keep a user from clicking on the form element.",
@@ -3464,11 +3486,21 @@
3464
3486
  "description": "The label attribute specifies the caption of the form element.",
3465
3487
  "type": "string"
3466
3488
  },
3489
+ {
3490
+ "name": "fieldSizing",
3491
+ "description": "Adds shrinkwrap for input and textarea: https://developer.mozilla.org/en-US/docs/Web/CSS/field-sizing\nNote: Only supported in Chromium browsers so far",
3492
+ "type": "\"fixed\" | \"content\""
3493
+ },
3467
3494
  {
3468
3495
  "name": "resize",
3469
3496
  "description": "In most browsers, textareas are resizable — you'll notice the drag handle in the right-hand corner, you can control it with this",
3470
3497
  "type": "\"none\" | \"both\" | \"horizontal\" | \"vertical\""
3471
3498
  },
3499
+ {
3500
+ "name": "showResizer",
3501
+ "description": "Show/Hides drag handle in the right-hand corner - default: true",
3502
+ "type": "boolean | string"
3503
+ },
3472
3504
  {
3473
3505
  "name": "disabled",
3474
3506
  "description": "The disabled attribute can be set to keep a user from clicking on the form element.",
@@ -3969,6 +4001,11 @@
3969
4001
  "description": "\n---\n\n\n### **Slots:**\n - **children** - default slot\n- **trigger** - The trigger to open the popover e.g. a button",
3970
4002
  "doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/popover/properties",
3971
4003
  "attributes": [
4004
+ {
4005
+ "name": "placement",
4006
+ "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
4007
+ "value": { "type": "\"undefined\" | \"undefined\"" }
4008
+ },
3972
4009
  {
3973
4010
  "name": "id",
3974
4011
  "description": "[ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.",
@@ -4010,11 +4047,6 @@
4010
4047
  "name": "width",
4011
4048
  "description": "Use fixed with for default max-width",
4012
4049
  "value": { "type": "\"auto\" | \"fixed\"" }
4013
- },
4014
- {
4015
- "name": "placement",
4016
- "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
4017
- "value": { "type": "\"undefined\" | \"undefined\"" }
4018
4050
  }
4019
4051
  ],
4020
4052
  "slots": [
@@ -4027,6 +4059,11 @@
4027
4059
  "events": [],
4028
4060
  "js": {
4029
4061
  "properties": [
4062
+ {
4063
+ "name": "placement",
4064
+ "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
4065
+ "type": "\"undefined\" | \"undefined\""
4066
+ },
4030
4067
  {
4031
4068
  "name": "id",
4032
4069
  "description": "[ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.",
@@ -4067,13 +4104,10 @@
4067
4104
  "description": "Use fixed with for default max-width",
4068
4105
  "type": "\"auto\" | \"fixed\""
4069
4106
  },
4070
- {
4071
- "name": "placement",
4072
- "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
4073
- "type": "\"undefined\" | \"undefined\""
4074
- },
4075
4107
  { "name": "initialized", "type": "boolean" },
4076
- { "name": "isExpanded", "type": "boolean" }
4108
+ { "name": "isExpanded", "type": "boolean" },
4109
+ { "name": "_documentScrollListenerCallbackId" },
4110
+ { "name": "_observer" }
4077
4111
  ],
4078
4112
  "events": []
4079
4113
  }
@@ -4761,6 +4795,13 @@
4761
4795
  "description": "Optional: if you use selectedType=tag and options, you need to set the removeTagsTexts for screen reader users",
4762
4796
  "value": { "type": "string[]" }
4763
4797
  },
4798
+ {
4799
+ "name": "placement",
4800
+ "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
4801
+ "value": {
4802
+ "type": "\"top\" | \"bottom\" | \"top-start\" | \"top-end\" | \"bottom-start\" | \"bottom-end\""
4803
+ }
4804
+ },
4764
4805
  {
4765
4806
  "name": "search-filter",
4766
4807
  "description": "Optional: Change the filter function for the search input",
@@ -4781,13 +4822,6 @@
4781
4822
  "description": "Change the variant of the label to float or hidden",
4782
4823
  "value": { "type": "\"above\" | \"floating\"" }
4783
4824
  },
4784
- {
4785
- "name": "placement",
4786
- "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
4787
- "value": {
4788
- "type": "\"top\" | \"bottom\" | \"top-start\" | \"top-end\" | \"bottom-start\" | \"bottom-end\""
4789
- }
4790
- },
4791
4825
  {
4792
4826
  "name": "show-label",
4793
4827
  "description": "Enables/disables the visibility of the label",
@@ -5015,6 +5049,11 @@
5015
5049
  "description": "Optional: if you use selectedType=tag and options, you need to set the removeTagsTexts for screen reader users",
5016
5050
  "type": "string[]"
5017
5051
  },
5052
+ {
5053
+ "name": "placement",
5054
+ "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
5055
+ "type": "\"top\" | \"bottom\" | \"top-start\" | \"top-end\" | \"bottom-start\" | \"bottom-end\""
5056
+ },
5018
5057
  {
5019
5058
  "name": "searchFilter",
5020
5059
  "description": "Optional: Change the filter function for the search input",
@@ -5035,11 +5074,6 @@
5035
5074
  "description": "Change the variant of the label to float or hidden",
5036
5075
  "type": "\"above\" | \"floating\""
5037
5076
  },
5038
- {
5039
- "name": "placement",
5040
- "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
5041
- "type": "\"top\" | \"bottom\" | \"top-start\" | \"top-end\" | \"bottom-start\" | \"bottom-end\""
5042
- },
5043
5077
  {
5044
5078
  "name": "showLabel",
5045
5079
  "description": "Enables/disables the visibility of the label",
@@ -5164,6 +5198,8 @@
5164
5198
  { "name": "_hasNoOptions", "type": "boolean" },
5165
5199
  { "name": "_documentClickListenerCallbackId" },
5166
5200
  { "name": "_internalChangeTimestamp", "type": "number" },
5201
+ { "name": "_documentScrollListenerCallbackId" },
5202
+ { "name": "_observer" },
5167
5203
  { "name": "_searchValue" },
5168
5204
  { "name": "selectAllChecked", "type": "boolean" },
5169
5205
  { "name": "selectAllIndeterminate", "type": "boolean" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@db-ux/wc-core-components",
3
- "version": "2.1.2",
3
+ "version": "2.2.0",
4
4
  "description": "Stencil components for @db-ux/core-components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@custom-elements-manifest/analyzer": "^0.10.4",
33
- "@stencil/core": "4.31.0",
33
+ "@stencil/core": "4.33.1",
34
34
  "cem-plugin-expanded-types": "^1.4.0",
35
35
  "custom-element-jet-brains-integration": "^1.7.0",
36
36
  "custom-element-vs-code-integration": "^1.5.0",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "web-types": "./dist/web-types.json",
44
44
  "dependencies": {
45
- "@db-ux/core-components": "2.1.2",
46
- "@db-ux/core-foundations": "2.1.2"
45
+ "@db-ux/core-components": "2.2.0",
46
+ "@db-ux/core-foundations": "2.2.0"
47
47
  }
48
48
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-7lbP4BU6.js","sources":["src/utils/index.ts"],"sourcesContent":["export const uuid = () => {\n if (typeof window !== 'undefined') {\n if (window.crypto?.randomUUID) {\n return window.crypto.randomUUID();\n } else if (window.crypto?.getRandomValues) {\n return window.crypto.getRandomValues(new Uint32Array(3)).join('-');\n }\n }\n return Math.random().toString().substring(2);\n};\nexport const addAttributeToChildren = (element: Element, attribute: {\n key: string;\n value: string;\n}) => {\n const children = element.children;\n Object.values(children).forEach((child: Element) => {\n child.setAttribute(attribute.key, attribute.value);\n if (child.children.length > 0) {\n addAttributeToChildren(child, attribute);\n }\n });\n};\nexport type ClassNameArg = string | {\n [key: string]: boolean | undefined;\n} | undefined;\nexport const cls = (...args: ClassNameArg[]) => {\n let result = '';\n for (const arg of args) {\n if (arg) {\n if (typeof arg === 'string') {\n result += `${arg} `;\n } else {\n for (const key in arg) {\n if (arg[key]) {\n result += `${key} `;\n }\n }\n }\n }\n }\n return result.trim();\n};\nexport const visibleInVX = (el: Element) => {\n const {\n left,\n right\n } = el.getBoundingClientRect();\n const {\n innerWidth\n } = window;\n return left >= 0 && right <= innerWidth;\n};\nexport const visibleInVY = (el: Element) => {\n const {\n top,\n bottom\n } = el.getBoundingClientRect();\n const {\n innerHeight\n } = window;\n return top >= 0 && bottom <= innerHeight;\n};\nexport const isInView = (el: Element) => {\n const {\n top,\n bottom,\n left,\n right\n } = el.getBoundingClientRect();\n const {\n innerHeight,\n innerWidth\n } = window;\n let outTop = top < 0;\n let outBottom = bottom > innerHeight;\n let outLeft = left < 0;\n let outRight = right > innerWidth;\n\n // We need to check if it was already outside\n const outsideY = el.hasAttribute('data-outside-vy');\n const outsideX = el.hasAttribute('data-outside-vx');\n const parentRect = el?.parentElement?.getBoundingClientRect();\n if (parentRect) {\n if (outsideY) {\n const position = el.getAttribute('data-outside-vy');\n if (position === 'top') {\n outTop = parentRect.top - (bottom - parentRect.bottom) < 0;\n } else {\n outBottom = parentRect.bottom + (parentRect.top - top) > innerHeight;\n }\n }\n if (outsideX) {\n const position = el.getAttribute('data-outside-vx');\n if (position === 'left') {\n outLeft = parentRect.left - (right - parentRect.right) < 0;\n } else {\n outRight = parentRect.right + (parentRect.left - left) > innerWidth;\n }\n }\n }\n return {\n outTop,\n outBottom,\n outLeft,\n outRight\n };\n};\nexport interface DBDataOutsidePair {\n vx?: 'left' | 'right';\n vy?: 'top' | 'bottom';\n}\nexport const handleDataOutside = (el: Element): DBDataOutsidePair => {\n const {\n outTop,\n outBottom,\n outLeft,\n outRight\n } = isInView(el);\n let dataOutsidePair: DBDataOutsidePair = {};\n if (outTop || outBottom) {\n dataOutsidePair = {\n vy: outTop ? 'top' : 'bottom'\n };\n el.setAttribute('data-outside-vy', dataOutsidePair.vy!);\n } else {\n el.removeAttribute('data-outside-vy');\n }\n if (outLeft || outRight) {\n dataOutsidePair = {\n ...dataOutsidePair,\n vx: outRight ? 'right' : 'left'\n };\n el.setAttribute('data-outside-vx', dataOutsidePair.vx!);\n } else {\n el.removeAttribute('data-outside-vx');\n }\n return dataOutsidePair;\n};\nexport const isArrayOfStrings = (value: unknown): value is string[] => Array.isArray(value) && value.every(item => typeof item === 'string');\nconst appleOs = ['Mac', 'iPhone', 'iPad', 'iPod'];\nexport const hasVoiceOver = (): boolean => typeof window !== 'undefined' && appleOs.some(os => window.navigator.userAgent.includes(os));\nexport const delay = (fn: () => void, ms: number) => new Promise(() => setTimeout(fn, ms));\n\n/**\n * Some frameworks like stencil would not add \"true\" as value for a prop\n * if it is used in a framework like angular e.g.: [disabled]=\"myDisabledProp\"\n * @param originBool Some boolean to convert to string\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const getBooleanAsString = (originBool?: boolean | string): any => {\n if (originBool === undefined || originBool === null) return;\n if (typeof originBool === 'string') {\n return String(Boolean(originBool));\n }\n return String(originBool);\n};\nexport const getBoolean = (originBool?: boolean | string, propertyName?: string): boolean | undefined => {\n if (originBool === undefined || originBool === null) return;\n if (typeof originBool === 'string' && propertyName) {\n return Boolean(propertyName === originBool || originBool);\n }\n return Boolean(originBool);\n};\nexport const getNumber = (originNumber?: number | string, alternativeNumber?: number | string): number | undefined => {\n if ((originNumber === undefined || originNumber === null) && (alternativeNumber === undefined || alternativeNumber === null)) {\n return;\n }\n return Number(originNumber ?? alternativeNumber);\n};\n\n/**\n * Retrieves the input value based on the provided value and input type.\n *\n * If the input type is \"number\" or \"range\", the value is processed as a number.\n * Otherwise, the value is returned as-is.\n *\n * @param value - The input value, which can be a number, string, or undefined.\n * @param inputType - The type of the input, such as \"number\", \"range\", or other string types.\n * @returns The processed input value as a string, number, or undefined.\n */\nexport const getInputValue = (value?: number | string, inputType?: string): string | number | undefined => {\n return inputType && ['number', 'range'].includes(inputType) ? getNumber(value) : value;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const getHideProp = (show?: boolean | string): any => {\n if (show === undefined || show === null) {\n return undefined;\n }\n return getBooleanAsString(!Boolean(show));\n};\nexport const stringPropVisible = (givenString?: string, showString?: boolean | string) => {\n if (showString === undefined) {\n return !!givenString;\n } else {\n return Boolean(showString) && Boolean(givenString);\n }\n};\nexport const getSearchInput = (element: HTMLElement): HTMLInputElement | null => element.querySelector<HTMLInputElement>(`input[type=\"search\"]`)"],"names":[],"mappings":";;AAAO,MAAM,IAAI,GAAG,MAAK;;AACvB,IAAA,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;AACjC,QAAA,IAAI,MAAA,MAAM,CAAC,MAAM,MAAE,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,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