@siemens/ix 0.0.0-pr-1974-20250624072317 → 0.0.0-pr-1974-20250627115746

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 (1147) hide show
  1. package/components/custom-elements.d.ts +2 -1
  2. package/components/index.js +7 -22
  3. package/components/index.js.map +1 -1
  4. package/components/ix-action-card.js +5 -5
  5. package/components/ix-action-card.js.map +1 -1
  6. package/components/ix-application-header.js +1 -1
  7. package/components/ix-application-sidebar.js +2 -2
  8. package/components/ix-application-switch-modal.js +7 -7
  9. package/components/ix-application.js +4 -4
  10. package/components/ix-avatar.js +1 -1
  11. package/components/ix-basic-navigation.js +9 -9
  12. package/components/ix-blind.js +7 -7
  13. package/components/ix-blind.js.map +1 -1
  14. package/components/ix-breadcrumb-item.js +1 -1
  15. package/components/ix-breadcrumb.js +7 -7
  16. package/components/ix-button.js +1 -1
  17. package/components/ix-card-accordion.js +1 -1
  18. package/components/ix-card-content.js +1 -1
  19. package/components/ix-card-list.js +11 -11
  20. package/components/ix-card-title.js +1 -1
  21. package/components/ix-card.js +1 -1
  22. package/components/ix-category-filter.js +9 -9
  23. package/components/ix-checkbox-group.js +8 -8
  24. package/components/ix-checkbox.js +6 -6
  25. package/components/ix-chip.js +9 -9
  26. package/components/ix-col.js +1 -1
  27. package/components/ix-content-header.js +5 -5
  28. package/components/ix-content-header.js.map +1 -1
  29. package/components/ix-content.js +4 -4
  30. package/components/ix-css-grid-item.js +2 -2
  31. package/components/ix-css-grid.js +2 -2
  32. package/components/ix-css-grid.js.map +1 -1
  33. package/components/ix-custom-field.js +7 -7
  34. package/components/ix-date-dropdown.js +15 -15
  35. package/components/ix-date-dropdown.js.map +1 -1
  36. package/components/ix-date-input.js +16 -16
  37. package/components/ix-date-input.js.map +1 -1
  38. package/components/ix-date-picker.js +1 -1
  39. package/components/ix-date-time-card.js +1 -1
  40. package/components/ix-datetime-picker.js +13 -13
  41. package/components/ix-datetime-picker.js.map +1 -1
  42. package/components/ix-divider.js +1 -1
  43. package/components/ix-drawer.js +8 -8
  44. package/components/ix-dropdown-button.js +7 -7
  45. package/components/ix-dropdown-button.js.map +1 -1
  46. package/components/ix-dropdown-header.js +3 -3
  47. package/components/ix-dropdown-item.js +1 -1
  48. package/components/ix-dropdown-quick-actions.js +2 -2
  49. package/components/ix-dropdown.js +1 -1
  50. package/components/ix-empty-state.js +5 -5
  51. package/components/ix-empty-state.js.map +1 -1
  52. package/components/ix-event-list-item.js +5 -5
  53. package/components/ix-event-list.js +3 -3
  54. package/components/ix-expanding-search.js +7 -7
  55. package/components/ix-field-label.js +1 -1
  56. package/components/ix-field-wrapper.js +1 -1
  57. package/components/ix-filter-chip.js +1 -1
  58. package/components/ix-flip-tile-content.js +2 -2
  59. package/components/ix-flip-tile.js +7 -7
  60. package/components/ix-group-context-menu.js +1 -1
  61. package/components/ix-group-item.js +1 -1
  62. package/components/ix-group.js +13 -13
  63. package/components/ix-helper-text.js +5 -5
  64. package/components/ix-icon-button.js +1 -1
  65. package/components/ix-icon-toggle-button.js +4 -4
  66. package/components/ix-input-group.js +2 -2
  67. package/components/ix-input.js +13 -13
  68. package/components/ix-key-value-list.js +2 -2
  69. package/components/ix-key-value.js +2 -2
  70. package/components/ix-key-value.js.map +1 -1
  71. package/components/ix-kpi.js +4 -4
  72. package/components/ix-layout-auto.js +2 -2
  73. package/components/ix-layout-grid.js +1 -1
  74. package/components/ix-link-button.js +4 -4
  75. package/components/ix-map-navigation-overlay.js +1 -1
  76. package/components/ix-map-navigation.js +10 -10
  77. package/components/ix-menu-about-item.js +2 -2
  78. package/components/ix-menu-about-news.js +9 -9
  79. package/components/ix-menu-about.js +7 -7
  80. package/components/ix-menu-avatar-item.js +1 -1
  81. package/components/ix-menu-avatar.js +10 -10
  82. package/components/ix-menu-category.js +12 -12
  83. package/components/ix-menu-expand-icon.js +1 -1
  84. package/components/ix-menu-item.js +1 -1
  85. package/components/ix-menu-settings-item.js +2 -2
  86. package/components/ix-menu-settings.js +1 -1
  87. package/components/ix-menu.js +19 -19
  88. package/components/ix-message-bar.js +4 -4
  89. package/components/ix-modal-content.js +1 -1
  90. package/components/ix-modal-footer.js +2 -2
  91. package/components/ix-modal-header.js +1 -1
  92. package/components/ix-modal-loading.js +3 -3
  93. package/components/ix-modal.js +5 -5
  94. package/components/ix-modal.js.map +1 -1
  95. package/components/ix-number-input.js +15 -15
  96. package/components/ix-pagination.js +15 -15
  97. package/components/ix-pane-layout.js +2 -2
  98. package/components/ix-pane-layout.js.map +1 -1
  99. package/components/ix-pane.js +10 -10
  100. package/components/ix-pane.js.map +1 -1
  101. package/components/ix-pill.js +7 -7
  102. package/components/ix-progress-indicator.js +6 -6
  103. package/components/ix-progress-indicator.js.map +1 -1
  104. package/components/ix-push-card.js +7 -7
  105. package/components/ix-push-card.js.map +1 -1
  106. package/components/ix-radio-group.js +8 -8
  107. package/components/ix-radio.js +7 -7
  108. package/components/ix-row.js +1 -1
  109. package/components/ix-select-item.js +1 -1
  110. package/components/ix-select.js +1 -1
  111. package/components/ix-slider.js +10 -10
  112. package/components/ix-slider.js.map +1 -1
  113. package/components/ix-spinner.js +1 -1
  114. package/components/ix-split-button.js +6 -6
  115. package/components/ix-split-button.js.map +1 -1
  116. package/components/ix-tab-item.js +1 -1
  117. package/components/ix-tabs.js +1 -1
  118. package/components/ix-textarea.js +9 -9
  119. package/components/ix-textarea.js.map +1 -1
  120. package/components/ix-tile.js +5 -5
  121. package/components/ix-time-input.js +16 -16
  122. package/components/ix-time-input.js.map +1 -1
  123. package/components/ix-time-picker.js +1 -1
  124. package/components/ix-toast-container.js +6 -6
  125. package/components/ix-toast-container.js.map +1 -1
  126. package/components/ix-toast.js +1 -1
  127. package/components/ix-toggle-button.js +5 -5
  128. package/components/ix-toggle.js +6 -6
  129. package/components/ix-tooltip.js +1 -1
  130. package/components/ix-tree-item.js +1 -1
  131. package/components/ix-tree.js +3 -3
  132. package/components/ix-typography.js +1 -1
  133. package/components/ix-upload.js +3 -3
  134. package/components/ix-validation-tooltip.js +1 -1
  135. package/components/ix-workflow-step.js +1 -1
  136. package/components/ix-workflow-steps.js +1 -1
  137. package/components/{p-C99qjEPE.js → p-5uA5ifmT.js} +5 -5
  138. package/components/{p-C99qjEPE.js.map → p-5uA5ifmT.js.map} +1 -1
  139. package/components/{p-D2Fm_05X.js → p-9dLpp1OQ.js} +3 -3
  140. package/components/{p-D2Fm_05X.js.map → p-9dLpp1OQ.js.map} +1 -1
  141. package/components/{p-DEmiWcQ0.js → p-B1Gzt08S.js} +5 -5
  142. package/components/{p-DEmiWcQ0.js.map → p-B1Gzt08S.js.map} +1 -1
  143. package/components/{p-CYjLayhK.js → p-B3duqvjW.js} +4 -4
  144. package/components/{p-CYjLayhK.js.map → p-B3duqvjW.js.map} +1 -1
  145. package/components/{p-BpwZ_OiO.js → p-B6e7P4xT.js} +3 -3
  146. package/components/{p-BpwZ_OiO.js.map → p-B6e7P4xT.js.map} +1 -1
  147. package/components/{p-Ca62xqUI.js → p-BJcX2_-N.js} +6 -6
  148. package/components/{p-Ca62xqUI.js.map → p-BJcX2_-N.js.map} +1 -1
  149. package/components/{p-CdH-wF59.js → p-BMU8AlMD.js} +9 -9
  150. package/components/{p-CdH-wF59.js.map → p-BMU8AlMD.js.map} +1 -1
  151. package/components/{p-CvYq7fCI.js → p-BNu7ac9R.js} +7 -7
  152. package/components/{p-CvYq7fCI.js.map → p-BNu7ac9R.js.map} +1 -1
  153. package/components/{p-D0hxqaGs.js → p-BP-8cvOJ.js} +6 -6
  154. package/components/{p-D0hxqaGs.js.map → p-BP-8cvOJ.js.map} +1 -1
  155. package/components/{p-BXGAr1UD.js → p-BXjBChze.js} +6 -6
  156. package/components/p-BXjBChze.js.map +1 -0
  157. package/components/{p-DBZZBDKR.js → p-BcGAKMQ_.js} +3 -3
  158. package/components/{p-DBZZBDKR.js.map → p-BcGAKMQ_.js.map} +1 -1
  159. package/components/{p-18F-YfbC.js → p-BedSAVZh.js} +4 -4
  160. package/components/p-BedSAVZh.js.map +1 -0
  161. package/components/{p-CdhP3eo7.js → p-BhLbU_vK.js} +5 -5
  162. package/components/{p-CdhP3eo7.js.map → p-BhLbU_vK.js.map} +1 -1
  163. package/components/{p-Da_mIDFR.js → p-BkWbk29R.js} +6 -6
  164. package/components/{p-Da_mIDFR.js.map → p-BkWbk29R.js.map} +1 -1
  165. package/components/{p-BW7O4gSR.js → p-BmmgJGNd.js} +6 -6
  166. package/components/{p-BW7O4gSR.js.map → p-BmmgJGNd.js.map} +1 -1
  167. package/components/{p-COgaNG0r.js → p-Bu-j8wxy.js} +6 -6
  168. package/components/{p-COgaNG0r.js.map → p-Bu-j8wxy.js.map} +1 -1
  169. package/components/p-BuJ6BWIi.js +2042 -0
  170. package/components/p-BuJ6BWIi.js.map +1 -0
  171. package/components/{p-cugF_dsq.js → p-Bvsx56zn.js} +4 -4
  172. package/components/{p-cugF_dsq.js.map → p-Bvsx56zn.js.map} +1 -1
  173. package/components/{p-BOARJXlu.js → p-BygLxZIM.js} +4 -4
  174. package/components/{p-BOARJXlu.js.map → p-BygLxZIM.js.map} +1 -1
  175. package/components/{p-IMKnzlUb.js → p-Bzyt4nTL.js} +8 -8
  176. package/components/{p-IMKnzlUb.js.map → p-Bzyt4nTL.js.map} +1 -1
  177. package/components/{p-Dih6bry9.js → p-C6o-AByw.js} +4 -4
  178. package/components/{p-Dih6bry9.js.map → p-C6o-AByw.js.map} +1 -1
  179. package/components/{p-BSRi3yyl.js → p-CKkTXQiw.js} +8 -8
  180. package/components/{p-BSRi3yyl.js.map → p-CKkTXQiw.js.map} +1 -1
  181. package/components/{p-CmNagK_M.js → p-Cb-eBcUF.js} +5 -5
  182. package/components/{p-CmNagK_M.js.map → p-Cb-eBcUF.js.map} +1 -1
  183. package/components/{p-B3NgetSU.js → p-Cp5J1RZq.js} +23 -23
  184. package/components/{p-B3NgetSU.js.map → p-Cp5J1RZq.js.map} +1 -1
  185. package/components/{p-DUctjh_Y.js → p-Cpxz1Kcs.js} +4 -4
  186. package/components/{p-DUctjh_Y.js.map → p-Cpxz1Kcs.js.map} +1 -1
  187. package/components/{p-2HalBYF6.js → p-Cs8DEpjh.js} +15 -15
  188. package/components/{p-2HalBYF6.js.map → p-Cs8DEpjh.js.map} +1 -1
  189. package/components/{p-CLe5n0eR.js → p-Cut5OrRw.js} +5 -5
  190. package/components/{p-CLe5n0eR.js.map → p-Cut5OrRw.js.map} +1 -1
  191. package/components/{p-DqBfPYF2.js → p-CvvOe8xV.js} +7 -7
  192. package/components/{p-DqBfPYF2.js.map → p-CvvOe8xV.js.map} +1 -1
  193. package/components/{p-C7qPn3fZ.js → p-D3Aowo70.js} +7 -7
  194. package/components/{p-C7qPn3fZ.js.map → p-D3Aowo70.js.map} +1 -1
  195. package/components/{p-t-aQDKhy.js → p-D9LaIICQ.js} +3 -3
  196. package/components/{p-t-aQDKhy.js.map → p-D9LaIICQ.js.map} +1 -1
  197. package/components/{p-m_8Hy4_G.js → p-DCx3-1oU.js} +5 -5
  198. package/components/{p-m_8Hy4_G.js.map → p-DCx3-1oU.js.map} +1 -1
  199. package/components/{p-6UCgBriG.js → p-DJ7U7oUq.js} +7 -7
  200. package/components/{p-6UCgBriG.js.map → p-DJ7U7oUq.js.map} +1 -1
  201. package/components/{p-D-uSMBXb.js → p-DMlmNp-B.js} +4 -4
  202. package/components/{p-D-uSMBXb.js.map → p-DMlmNp-B.js.map} +1 -1
  203. package/components/{p-D54oqcBC.js → p-DWO4uklL.js} +8 -8
  204. package/components/{p-D54oqcBC.js.map → p-DWO4uklL.js.map} +1 -1
  205. package/components/{p-pMSLP3h4.js → p-DaztMgDr.js} +12 -12
  206. package/components/p-DaztMgDr.js.map +1 -0
  207. package/components/{p-CJ9lFwzL.js → p-DbR-LZrk.js} +4 -4
  208. package/components/{p-CJ9lFwzL.js.map → p-DbR-LZrk.js.map} +1 -1
  209. package/components/{p-BUVYgPbq.js → p-DfbCO042.js} +11 -11
  210. package/components/{p-BUVYgPbq.js.map → p-DfbCO042.js.map} +1 -1
  211. package/components/{p-BI91ISYc.js → p-DkGdSI6e.js} +5 -5
  212. package/components/{p-BI91ISYc.js.map → p-DkGdSI6e.js.map} +1 -1
  213. package/components/{p-DQEpAmYe.js → p-DojBQCbP.js} +7 -7
  214. package/components/{p-DQEpAmYe.js.map → p-DojBQCbP.js.map} +1 -1
  215. package/components/{p-mLgD4b4D.js → p-DyHdZRT0.js} +5 -5
  216. package/components/{p-mLgD4b4D.js.map → p-DyHdZRT0.js.map} +1 -1
  217. package/components/{p-C9zujPO0.js → p-DyMgW0fR.js} +4 -4
  218. package/components/{p-C9zujPO0.js.map → p-DyMgW0fR.js.map} +1 -1
  219. package/components/{p-DpilwXvD.js → p-G0biE2Kx.js} +4 -4
  220. package/components/{p-DpilwXvD.js.map → p-G0biE2Kx.js.map} +1 -1
  221. package/components/p-PxA_udyJ.js.map +1 -1
  222. package/components/{p-CI771zjd.js → p-TNoCM8Wi.js} +6 -6
  223. package/components/{p-CI771zjd.js.map → p-TNoCM8Wi.js.map} +1 -1
  224. package/components/{p-D-lOakIP.js → p-qauH9Ci4.js} +5 -5
  225. package/components/{p-D-lOakIP.js.map → p-qauH9Ci4.js.map} +1 -1
  226. package/components/{p-DeAFXXM2.js → p-r63hglsv.js} +7 -7
  227. package/components/{p-DeAFXXM2.js.map → p-r63hglsv.js.map} +1 -1
  228. package/components/{p-Cuf7Gv_k.js → p-tH4n038Z.js} +5 -5
  229. package/components/p-tH4n038Z.js.map +1 -0
  230. package/dist/cjs/{base-button-CaQoQTFI.js → base-button-B-wht3TB.js} +3 -3
  231. package/dist/cjs/{base-button-CaQoQTFI.js.map → base-button-B-wht3TB.js.map} +1 -1
  232. package/dist/cjs/{base-icon-button-C9L5Gii-.js → base-icon-button-DNisNrCZ.js} +4 -4
  233. package/dist/cjs/{base-icon-button-C9L5Gii-.js.map → base-icon-button-DNisNrCZ.js.map} +1 -1
  234. package/dist/cjs/{helper-text-util-BctMjApu.js → helper-text-util-B_J9aPv0.js} +3 -3
  235. package/dist/cjs/{helper-text-util-BctMjApu.js.map → helper-text-util-B_J9aPv0.js.map} +1 -1
  236. package/dist/cjs/index-CbtIH46j.js +2734 -0
  237. package/dist/cjs/index-CbtIH46j.js.map +1 -0
  238. package/dist/cjs/index.cjs.js +1 -17
  239. package/dist/cjs/index.cjs.js.map +1 -1
  240. package/dist/cjs/{input.util-Ch0ETA-v.js → input.util-BDrqIfiB.js} +4 -4
  241. package/dist/cjs/{input.util-Ch0ETA-v.js.map → input.util-BDrqIfiB.js.map} +1 -1
  242. package/dist/cjs/ix-action-card.cjs.entry.js +2 -2
  243. package/dist/cjs/ix-action-card.cjs.entry.js.map +1 -1
  244. package/dist/cjs/ix-action-card.entry.cjs.js.map +1 -1
  245. package/dist/cjs/ix-application-header.cjs.entry.js +4 -4
  246. package/dist/cjs/ix-application-sidebar.cjs.entry.js +2 -2
  247. package/dist/cjs/ix-application-switch-modal.cjs.entry.js +2 -2
  248. package/dist/cjs/ix-application.cjs.entry.js +4 -4
  249. package/dist/cjs/ix-avatar_2.cjs.entry.js +3 -3
  250. package/dist/cjs/ix-basic-navigation.cjs.entry.js +3 -3
  251. package/dist/cjs/ix-blind.cjs.entry.js +6 -6
  252. package/dist/cjs/ix-blind.cjs.entry.js.map +1 -1
  253. package/dist/cjs/ix-blind.entry.cjs.js.map +1 -1
  254. package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +2 -2
  255. package/dist/cjs/ix-breadcrumb-item.cjs.entry.js.map +1 -1
  256. package/dist/cjs/ix-breadcrumb-item.entry.cjs.js.map +1 -1
  257. package/dist/cjs/ix-breadcrumb.cjs.entry.js +3 -3
  258. package/dist/cjs/ix-button.cjs.entry.js +4 -4
  259. package/dist/cjs/ix-card-accordion.ix-card-title.entry.cjs.js.map +1 -1
  260. package/dist/cjs/ix-card-accordion_2.cjs.entry.js +5 -5
  261. package/dist/cjs/ix-card-accordion_2.cjs.entry.js.map +1 -1
  262. package/dist/cjs/ix-card-list.cjs.entry.js +5 -5
  263. package/dist/cjs/ix-card.ix-card-content.entry.cjs.js.map +1 -1
  264. package/dist/cjs/ix-card_2.cjs.entry.js +4 -4
  265. package/dist/cjs/ix-card_2.cjs.entry.js.map +1 -1
  266. package/dist/cjs/ix-category-filter.cjs.entry.js +5 -5
  267. package/dist/cjs/ix-checkbox-group.cjs.entry.js +4 -4
  268. package/dist/cjs/ix-checkbox.cjs.entry.js +5 -5
  269. package/dist/cjs/ix-chip.cjs.entry.js +5 -5
  270. package/dist/cjs/ix-col.ix-date-picker.ix-layout-grid.ix-row.entry.cjs.js.map +1 -1
  271. package/dist/cjs/ix-col_4.cjs.entry.js +12 -12
  272. package/dist/cjs/ix-col_4.cjs.entry.js.map +1 -1
  273. package/dist/cjs/ix-content-header.cjs.entry.js +2 -2
  274. package/dist/cjs/ix-content-header.cjs.entry.js.map +1 -1
  275. package/dist/cjs/ix-content-header.entry.cjs.js.map +1 -1
  276. package/dist/cjs/ix-content.cjs.entry.js +4 -4
  277. package/dist/cjs/ix-css-grid-item.cjs.entry.js +2 -2
  278. package/dist/cjs/ix-css-grid.cjs.entry.js +2 -2
  279. package/dist/cjs/ix-css-grid.cjs.entry.js.map +1 -1
  280. package/dist/cjs/ix-css-grid.entry.cjs.js.map +1 -1
  281. package/dist/cjs/ix-custom-field.cjs.entry.js +3 -3
  282. package/dist/cjs/ix-date-dropdown.cjs.entry.js +5 -5
  283. package/dist/cjs/ix-date-dropdown.cjs.entry.js.map +1 -1
  284. package/dist/cjs/ix-date-dropdown.entry.cjs.js.map +1 -1
  285. package/dist/cjs/ix-date-input.cjs.entry.js +6 -6
  286. package/dist/cjs/ix-date-input.cjs.entry.js.map +1 -1
  287. package/dist/cjs/ix-date-input.entry.cjs.js.map +1 -1
  288. package/dist/cjs/ix-date-time-card.cjs.entry.js +3 -3
  289. package/dist/cjs/ix-date-time-card.cjs.entry.js.map +1 -1
  290. package/dist/cjs/ix-date-time-card.entry.cjs.js.map +1 -1
  291. package/dist/cjs/ix-datetime-picker.cjs.entry.js +2 -2
  292. package/dist/cjs/ix-datetime-picker.cjs.entry.js.map +1 -1
  293. package/dist/cjs/ix-datetime-picker.entry.cjs.js.map +1 -1
  294. package/dist/cjs/ix-divider.cjs.entry.js +2 -2
  295. package/dist/cjs/ix-drawer.cjs.entry.js +6 -6
  296. package/dist/cjs/ix-dropdown-button.cjs.entry.js +3 -3
  297. package/dist/cjs/ix-dropdown-button.cjs.entry.js.map +1 -1
  298. package/dist/cjs/ix-dropdown-button.entry.cjs.js.map +1 -1
  299. package/dist/cjs/ix-dropdown-header.cjs.entry.js +2 -2
  300. package/dist/cjs/ix-dropdown-item.cjs.entry.js +4 -4
  301. package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +2 -2
  302. package/dist/cjs/ix-dropdown.cjs.entry.js +3 -3
  303. package/dist/cjs/ix-empty-state.cjs.entry.js +2 -2
  304. package/dist/cjs/ix-empty-state.cjs.entry.js.map +1 -1
  305. package/dist/cjs/ix-empty-state.entry.cjs.js.map +1 -1
  306. package/dist/cjs/ix-event-list-item.cjs.entry.js +5 -5
  307. package/dist/cjs/ix-event-list.cjs.entry.js +3 -3
  308. package/dist/cjs/ix-expanding-search.cjs.entry.js +5 -5
  309. package/dist/cjs/ix-field-label_2.cjs.entry.js +6 -6
  310. package/dist/cjs/ix-filter-chip_2.cjs.entry.js +3 -3
  311. package/dist/cjs/ix-flip-tile-content.cjs.entry.js +2 -2
  312. package/dist/cjs/ix-flip-tile.cjs.entry.js +5 -5
  313. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +4 -4
  314. package/dist/cjs/ix-group.cjs.entry.js +9 -9
  315. package/dist/cjs/ix-helper-text.cjs.entry.js +4 -4
  316. package/dist/cjs/ix-icon-button.ix-spinner.entry.cjs.js.map +1 -1
  317. package/dist/cjs/ix-icon-button_2.cjs.entry.js +5 -5
  318. package/dist/cjs/ix-icon-button_2.cjs.entry.js.map +1 -1
  319. package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +4 -4
  320. package/dist/cjs/ix-input-group.cjs.entry.js +2 -2
  321. package/dist/cjs/ix-input.cjs.entry.js +7 -7
  322. package/dist/cjs/ix-key-value-list.cjs.entry.js +2 -2
  323. package/dist/cjs/ix-key-value.cjs.entry.js +2 -2
  324. package/dist/cjs/ix-key-value.cjs.entry.js.map +1 -1
  325. package/dist/cjs/ix-key-value.entry.cjs.js.map +1 -1
  326. package/dist/cjs/ix-kpi.cjs.entry.js +4 -4
  327. package/dist/cjs/ix-layout-auto.cjs.entry.js +2 -2
  328. package/dist/cjs/ix-link-button.cjs.entry.js +4 -4
  329. package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js +3 -3
  330. package/dist/cjs/ix-map-navigation.cjs.entry.js +3 -3
  331. package/dist/cjs/ix-menu-about-item.cjs.entry.js +2 -2
  332. package/dist/cjs/ix-menu-about-news.cjs.entry.js +5 -5
  333. package/dist/cjs/ix-menu-about.cjs.entry.js +3 -3
  334. package/dist/cjs/ix-menu-avatar.cjs.entry.js +3 -3
  335. package/dist/cjs/ix-menu-category.cjs.entry.js +6 -6
  336. package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +3 -3
  337. package/dist/cjs/ix-menu-item.cjs.entry.js +4 -4
  338. package/dist/cjs/{ix-menu-settings-BkPNtMal.js → ix-menu-settings-Dbt7Q2tj.js} +4 -4
  339. package/dist/cjs/{ix-menu-settings-BkPNtMal.js.map → ix-menu-settings-Dbt7Q2tj.js.map} +1 -1
  340. package/dist/cjs/ix-menu-settings-item.cjs.entry.js +2 -2
  341. package/dist/cjs/ix-menu-settings.cjs.entry.js +2 -2
  342. package/dist/cjs/ix-menu.cjs.entry.js +13 -13
  343. package/dist/cjs/ix-message-bar.cjs.entry.js +2 -2
  344. package/dist/cjs/ix-modal-content_2.cjs.entry.js +3 -3
  345. package/dist/cjs/ix-modal-footer.cjs.entry.js +2 -2
  346. package/dist/cjs/ix-modal-loading.cjs.entry.js +2 -2
  347. package/dist/cjs/ix-modal.cjs.entry.js +5 -5
  348. package/dist/cjs/ix-modal.cjs.entry.js.map +1 -1
  349. package/dist/cjs/ix-modal.entry.cjs.js.map +1 -1
  350. package/dist/cjs/ix-number-input.cjs.entry.js +9 -9
  351. package/dist/cjs/ix-pagination.cjs.entry.js +4 -4
  352. package/dist/cjs/ix-pane-layout.cjs.entry.js +2 -2
  353. package/dist/cjs/ix-pane-layout.cjs.entry.js.map +1 -1
  354. package/dist/cjs/ix-pane-layout.entry.cjs.js.map +1 -1
  355. package/dist/cjs/ix-pane.cjs.entry.js +7 -7
  356. package/dist/cjs/ix-pane.cjs.entry.js.map +1 -1
  357. package/dist/cjs/ix-pane.entry.cjs.js.map +1 -1
  358. package/dist/cjs/ix-pill.cjs.entry.js +5 -5
  359. package/dist/cjs/ix-progress-indicator.cjs.entry.js +4 -4
  360. package/dist/cjs/ix-progress-indicator.cjs.entry.js.map +1 -1
  361. package/dist/cjs/ix-progress-indicator.entry.cjs.js.map +1 -1
  362. package/dist/cjs/ix-push-card.cjs.entry.js +2 -2
  363. package/dist/cjs/ix-push-card.cjs.entry.js.map +1 -1
  364. package/dist/cjs/ix-push-card.entry.cjs.js.map +1 -1
  365. package/dist/cjs/ix-radio-group.cjs.entry.js +4 -4
  366. package/dist/cjs/ix-radio.cjs.entry.js +6 -6
  367. package/dist/cjs/ix-select.cjs.entry.js +11 -11
  368. package/dist/cjs/ix-slider.cjs.entry.js +8 -8
  369. package/dist/cjs/ix-slider.cjs.entry.js.map +1 -1
  370. package/dist/cjs/ix-slider.entry.cjs.js.map +1 -1
  371. package/dist/cjs/ix-split-button.cjs.entry.js +2 -2
  372. package/dist/cjs/ix-split-button.cjs.entry.js.map +1 -1
  373. package/dist/cjs/ix-split-button.entry.cjs.js.map +1 -1
  374. package/dist/cjs/ix-tab-item.ix-tabs.entry.cjs.js.map +1 -1
  375. package/dist/cjs/ix-tab-item_2.cjs.entry.js +6 -6
  376. package/dist/cjs/ix-tab-item_2.cjs.entry.js.map +1 -1
  377. package/dist/cjs/ix-textarea.cjs.entry.js +5 -5
  378. package/dist/cjs/ix-textarea.cjs.entry.js.map +1 -1
  379. package/dist/cjs/ix-textarea.entry.cjs.js.map +1 -1
  380. package/dist/cjs/ix-tile.cjs.entry.js +5 -5
  381. package/dist/cjs/ix-time-input.cjs.entry.js +6 -6
  382. package/dist/cjs/ix-time-input.cjs.entry.js.map +1 -1
  383. package/dist/cjs/ix-time-input.entry.cjs.js.map +1 -1
  384. package/dist/cjs/ix-time-picker.cjs.entry.js +6 -6
  385. package/dist/cjs/ix-time-picker.cjs.entry.js.map +1 -1
  386. package/dist/cjs/ix-time-picker.entry.cjs.js.map +1 -1
  387. package/dist/cjs/ix-toast-container.cjs.entry.js +3 -3
  388. package/dist/cjs/ix-toast-container.cjs.entry.js.map +1 -1
  389. package/dist/cjs/ix-toast-container.entry.cjs.js.map +1 -1
  390. package/dist/cjs/ix-toast.cjs.entry.js +3 -3
  391. package/dist/cjs/ix-toggle-button.cjs.entry.js +4 -4
  392. package/dist/cjs/ix-toggle.cjs.entry.js +5 -5
  393. package/dist/cjs/ix-tooltip.cjs.entry.js +2 -2
  394. package/dist/cjs/ix-tree-item.cjs.entry.js +5 -5
  395. package/dist/cjs/ix-tree.cjs.entry.js +2 -2
  396. package/dist/cjs/ix-typography.cjs.entry.js +2 -2
  397. package/dist/cjs/ix-typography.cjs.entry.js.map +1 -1
  398. package/dist/cjs/ix-typography.entry.cjs.js.map +1 -1
  399. package/dist/cjs/ix-upload.cjs.entry.js +1 -1
  400. package/dist/cjs/ix-validation-tooltip.cjs.entry.js +1 -1
  401. package/dist/cjs/ix-workflow-step.cjs.entry.js +1 -1
  402. package/dist/cjs/ix-workflow-steps.cjs.entry.js +1 -1
  403. package/dist/cjs/{listener-BJXzadPO.js → listener-BT212YoD.js} +3 -3
  404. package/dist/cjs/{listener-BJXzadPO.js.map → listener-BT212YoD.js.map} +1 -1
  405. package/dist/cjs/loader.cjs.js +1 -1
  406. package/dist/cjs/modal-CR_0969h.js.map +1 -1
  407. package/dist/cjs/siemens-ix.cjs.js +1 -1
  408. package/dist/cjs/{validation-_-cW9Dku.js → validation-rAd3wIQp.js} +3 -3
  409. package/dist/cjs/{validation-_-cW9Dku.js.map → validation-rAd3wIQp.js.map} +1 -1
  410. package/dist/collection/collection-manifest.json +28 -28
  411. package/dist/collection/components/action-card/action-card.js +4 -4
  412. package/dist/collection/components/action-card/action-card.js.map +1 -1
  413. package/dist/collection/components/action-card/action-card.types.js +2 -0
  414. package/dist/collection/components/action-card/action-card.types.js.map +1 -0
  415. package/dist/collection/components/application/application.js +3 -3
  416. package/dist/collection/components/application-header/application-header.js +3 -3
  417. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js +1 -1
  418. package/dist/collection/components/application-sidebar/application-sidebar.js +1 -1
  419. package/dist/collection/components/basic-navigation/basic-navigation.js +2 -2
  420. package/dist/collection/components/blind/blind.js +8 -8
  421. package/dist/collection/components/blind/blind.js.map +1 -1
  422. package/dist/collection/components/blind/blind.types.js +2 -0
  423. package/dist/collection/components/blind/blind.types.js.map +1 -0
  424. package/dist/collection/components/breadcrumb/breadcrumb.js +2 -2
  425. package/dist/collection/components/breadcrumb-item/breadcrumb-item.js.map +1 -1
  426. package/dist/collection/components/button/button.js +2 -2
  427. package/dist/collection/components/card/card.js +5 -5
  428. package/dist/collection/components/card/card.js.map +1 -1
  429. package/dist/collection/components/card/card.types.js +2 -0
  430. package/dist/collection/components/card/card.types.js.map +1 -0
  431. package/dist/collection/components/card-accordion/card-accordion.js +6 -6
  432. package/dist/collection/components/card-accordion/card-accordion.js.map +1 -1
  433. package/dist/collection/components/card-accordion/card-accordion.types.js +2 -0
  434. package/dist/collection/components/card-accordion/card-accordion.types.js.map +1 -0
  435. package/dist/collection/components/card-content/card-content.js +1 -1
  436. package/dist/collection/components/card-list/card-list.js +4 -4
  437. package/dist/collection/components/card-title/card-title.js +1 -1
  438. package/dist/collection/components/category-filter/category-filter.js +3 -3
  439. package/dist/collection/components/checkbox/checkbox.js +3 -3
  440. package/dist/collection/components/checkbox-group/checkbox-group.js +2 -2
  441. package/dist/collection/components/chip/chip.js +4 -4
  442. package/dist/collection/components/col/col.js +13 -13
  443. package/dist/collection/components/col/col.js.map +1 -1
  444. package/dist/collection/components/col/col.types.js +2 -0
  445. package/dist/collection/components/col/col.types.js.map +1 -0
  446. package/dist/collection/components/content/content.js +3 -3
  447. package/dist/collection/components/content-header/content-header.js +4 -4
  448. package/dist/collection/components/content-header/content-header.js.map +1 -1
  449. package/dist/collection/components/content-header/content-header.types.js +2 -0
  450. package/dist/collection/components/content-header/content-header.types.js.map +1 -0
  451. package/dist/collection/components/css-grid/css-grid-item.js +1 -1
  452. package/dist/collection/components/css-grid/css-grid.js +4 -4
  453. package/dist/collection/components/css-grid/css-grid.js.map +1 -1
  454. package/dist/collection/components/css-grid/css-grid.types.js +2 -0
  455. package/dist/collection/components/css-grid/css-grid.types.js.map +1 -0
  456. package/dist/collection/components/custom-field/custom-field.js +1 -1
  457. package/dist/collection/components/date-dropdown/date-dropdown.js +13 -13
  458. package/dist/collection/components/date-dropdown/date-dropdown.js.map +1 -1
  459. package/dist/collection/components/date-dropdown/date-dropdown.types.js +2 -0
  460. package/dist/collection/components/date-dropdown/date-dropdown.types.js.map +1 -0
  461. package/dist/collection/components/date-dropdown/test/date-dropdown.ct.js.map +1 -1
  462. package/dist/collection/components/date-input/date-input.js +6 -6
  463. package/dist/collection/components/date-input/date-input.js.map +1 -1
  464. package/dist/collection/components/date-input/date-input.types.js +2 -0
  465. package/dist/collection/components/date-input/date-input.types.js.map +1 -0
  466. package/dist/collection/components/date-picker/date-picker-component.js.map +1 -1
  467. package/dist/collection/components/date-picker/date-picker.events.js +2 -0
  468. package/dist/collection/components/date-picker/date-picker.events.js.map +1 -0
  469. package/dist/collection/components/date-picker/date-picker.js +17 -17
  470. package/dist/collection/components/date-picker/date-picker.js.map +1 -1
  471. package/dist/collection/components/date-time-card/date-time-card.js +5 -5
  472. package/dist/collection/components/date-time-card/date-time-card.js.map +1 -1
  473. package/dist/collection/components/date-time-card/date-time-card.types.js +2 -0
  474. package/dist/collection/components/date-time-card/date-time-card.types.js.map +1 -0
  475. package/dist/collection/components/datetime-picker/datetime-picker.js +7 -7
  476. package/dist/collection/components/datetime-picker/datetime-picker.js.map +1 -1
  477. package/dist/collection/components/datetime-picker/datetime-picker.types.js +2 -0
  478. package/dist/collection/components/datetime-picker/datetime-picker.types.js.map +1 -0
  479. package/dist/collection/components/divider/divider.js +1 -1
  480. package/dist/collection/components/drawer/drawer.js +5 -5
  481. package/dist/collection/components/dropdown/dropdown.js +2 -2
  482. package/dist/collection/components/dropdown-button/dropdown-button.js +5 -5
  483. package/dist/collection/components/dropdown-button/dropdown-button.js.map +1 -1
  484. package/dist/collection/components/dropdown-button/dropdown-button.types.js +2 -0
  485. package/dist/collection/components/dropdown-button/dropdown-button.types.js.map +1 -0
  486. package/dist/collection/components/dropdown-header/dropdown-header.js +1 -1
  487. package/dist/collection/components/dropdown-item/dropdown-item.js +3 -3
  488. package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js +1 -1
  489. package/dist/collection/components/empty-state/empty-state.js +4 -4
  490. package/dist/collection/components/empty-state/empty-state.js.map +1 -1
  491. package/dist/collection/components/empty-state/empty-state.types.js +2 -0
  492. package/dist/collection/components/empty-state/empty-state.types.js.map +1 -0
  493. package/dist/collection/components/event-list/event-list.js +2 -2
  494. package/dist/collection/components/event-list-item/event-list-item.js +4 -4
  495. package/dist/collection/components/expanding-search/expanding-search.js +4 -4
  496. package/dist/collection/components/field-label/field-label.js +1 -1
  497. package/dist/collection/components/field-wrapper/field-wrapper.js +2 -2
  498. package/dist/collection/components/filter-chip/filter-chip.js +1 -1
  499. package/dist/collection/components/flip-tile/flip-tile.js +4 -4
  500. package/dist/collection/components/flip-tile-content/flip-tile-content.js +1 -1
  501. package/dist/collection/components/group/group-context-menu.js +1 -1
  502. package/dist/collection/components/group/group.js +8 -8
  503. package/dist/collection/components/group-item/group-item.js +2 -2
  504. package/dist/collection/components/helper-text/helper-text.js +1 -1
  505. package/dist/collection/components/icon-button/icon-button.js +4 -4
  506. package/dist/collection/components/icon-button/icon-button.js.map +1 -1
  507. package/dist/collection/components/icon-button/icon-button.types.js +2 -0
  508. package/dist/collection/components/icon-button/icon-button.types.js.map +1 -0
  509. package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +1 -1
  510. package/dist/collection/components/input/input.js +4 -4
  511. package/dist/collection/components/input/number-input.js +6 -6
  512. package/dist/collection/components/input/textarea.js +5 -5
  513. package/dist/collection/components/input/textarea.js.map +1 -1
  514. package/dist/collection/components/input/textarea.types.js +2 -0
  515. package/dist/collection/components/input/textarea.types.js.map +1 -0
  516. package/dist/collection/components/input-group/input-group.js +1 -1
  517. package/dist/collection/components/key-value/key-value.js +4 -4
  518. package/dist/collection/components/key-value/key-value.js.map +1 -1
  519. package/dist/collection/components/key-value/key-value.types.js +2 -0
  520. package/dist/collection/components/key-value/key-value.types.js.map +1 -0
  521. package/dist/collection/components/key-value-list/key-value-list.js +1 -1
  522. package/dist/collection/components/kpi/kpi.js +3 -3
  523. package/dist/collection/components/layout-auto/layout-auto.js +1 -1
  524. package/dist/collection/components/layout-grid/layout-grid.js +2 -2
  525. package/dist/collection/components/link-button/link-button.js +3 -3
  526. package/dist/collection/components/map-navigation/map-navigation.js +2 -2
  527. package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +2 -2
  528. package/dist/collection/components/menu/menu-expand-icon.js +1 -1
  529. package/dist/collection/components/menu/menu.js +12 -12
  530. package/dist/collection/components/menu-about/menu-about.js +1 -1
  531. package/dist/collection/components/menu-about-item/menu-about-item.js +1 -1
  532. package/dist/collection/components/menu-about-news/menu-about-news.js +4 -4
  533. package/dist/collection/components/menu-avatar/menu-avatar.js +2 -2
  534. package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +1 -1
  535. package/dist/collection/components/menu-category/menu-category.js +5 -5
  536. package/dist/collection/components/menu-item/menu-item.js +3 -3
  537. package/dist/collection/components/menu-settings/menu-settings.js +1 -1
  538. package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
  539. package/dist/collection/components/message-bar/message-bar.js +1 -1
  540. package/dist/collection/components/modal/modal.js +6 -6
  541. package/dist/collection/components/modal/modal.js.map +1 -1
  542. package/dist/collection/components/modal/modal.types.js +2 -0
  543. package/dist/collection/components/modal/modal.types.js.map +1 -0
  544. package/dist/collection/components/modal-content/modal-content.js +1 -1
  545. package/dist/collection/components/modal-footer/modal-footer.js +1 -1
  546. package/dist/collection/components/modal-header/modal-header.js +1 -1
  547. package/dist/collection/components/modal-loading/modal-loading.js +1 -1
  548. package/dist/collection/components/pagination/pagination.js +2 -2
  549. package/dist/collection/components/pane/pane.js +24 -24
  550. package/dist/collection/components/pane/pane.js.map +1 -1
  551. package/dist/collection/components/pane/pane.types.js +2 -0
  552. package/dist/collection/components/pane/pane.types.js.map +1 -0
  553. package/dist/collection/components/pane-layout/pane-layout.js +1 -1
  554. package/dist/collection/components/pane-layout/pane-layout.js.map +1 -1
  555. package/dist/collection/components/pill/pill.js +4 -4
  556. package/dist/collection/components/progress-indicator/circular.js.map +1 -1
  557. package/dist/collection/components/progress-indicator/progress-indicator.js +6 -6
  558. package/dist/collection/components/progress-indicator/progress-indicator.js.map +1 -1
  559. package/dist/collection/components/progress-indicator/progress-indicator.types.js +2 -0
  560. package/dist/collection/components/progress-indicator/progress-indicator.types.js.map +1 -0
  561. package/dist/collection/components/push-card/push-card.js +4 -4
  562. package/dist/collection/components/push-card/push-card.js.map +1 -1
  563. package/dist/collection/components/push-card/push-card.types.js +2 -0
  564. package/dist/collection/components/push-card/push-card.types.js.map +1 -0
  565. package/dist/collection/components/radio/radio.js +4 -4
  566. package/dist/collection/components/radio-group/radio-group.js +2 -2
  567. package/dist/collection/components/row/row.js +1 -1
  568. package/dist/collection/components/select/select.js +8 -8
  569. package/dist/collection/components/select-item/select-item.js +1 -1
  570. package/dist/collection/components/slider/slider.js +9 -9
  571. package/dist/collection/components/slider/slider.js.map +1 -1
  572. package/dist/collection/components/slider/slider.types.js +2 -0
  573. package/dist/collection/components/slider/slider.types.js.map +1 -0
  574. package/dist/collection/components/spinner/spinner.js +1 -1
  575. package/dist/collection/components/split-button/split-button.js +4 -4
  576. package/dist/collection/components/split-button/split-button.js.map +1 -1
  577. package/dist/collection/components/split-button/split-button.types.js +2 -0
  578. package/dist/collection/components/split-button/split-button.types.js.map +1 -0
  579. package/dist/collection/components/tab-item/tab-item.js +6 -6
  580. package/dist/collection/components/tab-item/tab-item.js.map +1 -1
  581. package/dist/collection/components/tab-item/tab-item.types.js +2 -0
  582. package/dist/collection/components/tab-item/tab-item.types.js.map +1 -0
  583. package/dist/collection/components/tabs/tabs.js +2 -2
  584. package/dist/collection/components/tile/tile.js +4 -4
  585. package/dist/collection/components/time-input/time-input.js +6 -6
  586. package/dist/collection/components/time-input/time-input.js.map +1 -1
  587. package/dist/collection/components/time-input/time-input.types.js +2 -0
  588. package/dist/collection/components/time-input/time-input.types.js.map +1 -0
  589. package/dist/collection/components/time-picker/time-picker.js +7 -7
  590. package/dist/collection/components/time-picker/time-picker.js.map +1 -1
  591. package/dist/collection/components/time-picker/time-picker.types.js +2 -0
  592. package/dist/collection/components/time-picker/time-picker.types.js.map +1 -0
  593. package/dist/collection/components/toast/toast-container.js +5 -5
  594. package/dist/collection/components/toast/toast-container.js.map +1 -1
  595. package/dist/collection/components/toast/toast-container.types.js +2 -0
  596. package/dist/collection/components/toast/toast-container.types.js.map +1 -0
  597. package/dist/collection/components/toast/toast-utils.js.map +1 -1
  598. package/dist/collection/components/toast/toast.js +2 -2
  599. package/dist/collection/components/toggle/toggle.js +3 -3
  600. package/dist/collection/components/toggle-button/toggle-button.js +2 -2
  601. package/dist/collection/components/tooltip/tooltip.js +1 -1
  602. package/dist/collection/components/tree/tree.js +1 -1
  603. package/dist/collection/components/tree-item/tree-item.js +4 -4
  604. package/dist/collection/components/typography/typography.js +10 -10
  605. package/dist/collection/components/typography/typography.js.map +1 -1
  606. package/dist/collection/components/typography/typography.types.js +2 -0
  607. package/dist/collection/components/typography/typography.types.js.map +1 -0
  608. package/dist/collection/components/utils/modal/modal.js.map +1 -1
  609. package/dist/collection/index.js +1 -19
  610. package/dist/collection/index.js.map +1 -1
  611. package/dist/collection/public-api.js +22 -0
  612. package/dist/collection/public-api.js.map +1 -0
  613. package/dist/esm/{base-button-dtdYZqMt.js → base-button-CKT5FMT1.js} +3 -3
  614. package/dist/esm/{base-button-dtdYZqMt.js.map → base-button-CKT5FMT1.js.map} +1 -1
  615. package/dist/esm/{base-icon-button-BZvsimpZ.js → base-icon-button-7cQMdhTz.js} +4 -4
  616. package/dist/esm/{base-icon-button-BZvsimpZ.js.map → base-icon-button-7cQMdhTz.js.map} +1 -1
  617. package/dist/esm/{helper-text-util-Dyff2O6m.js → helper-text-util-CBCAKFyG.js} +3 -3
  618. package/dist/esm/{helper-text-util-Dyff2O6m.js.map → helper-text-util-CBCAKFyG.js.map} +1 -1
  619. package/dist/esm/index-DJsXFBNm.js +2702 -0
  620. package/dist/esm/index-DJsXFBNm.js.map +1 -0
  621. package/dist/esm/index.js +2 -17
  622. package/dist/esm/index.js.map +1 -1
  623. package/dist/esm/{input.util-HSoyR1ow.js → input.util-DGHGYsFM.js} +4 -4
  624. package/dist/esm/{input.util-HSoyR1ow.js.map → input.util-DGHGYsFM.js.map} +1 -1
  625. package/dist/esm/ix-action-card.entry.js +2 -2
  626. package/dist/esm/ix-action-card.entry.js.map +1 -1
  627. package/dist/esm/ix-application-header.entry.js +4 -4
  628. package/dist/esm/ix-application-sidebar.entry.js +2 -2
  629. package/dist/esm/ix-application-switch-modal.entry.js +2 -2
  630. package/dist/esm/ix-application.entry.js +4 -4
  631. package/dist/esm/ix-avatar_2.entry.js +3 -3
  632. package/dist/esm/ix-basic-navigation.entry.js +3 -3
  633. package/dist/esm/ix-blind.entry.js +6 -6
  634. package/dist/esm/ix-blind.entry.js.map +1 -1
  635. package/dist/esm/ix-breadcrumb-item.entry.js +2 -2
  636. package/dist/esm/ix-breadcrumb-item.entry.js.map +1 -1
  637. package/dist/esm/ix-breadcrumb.entry.js +3 -3
  638. package/dist/esm/ix-button.entry.js +4 -4
  639. package/dist/esm/ix-card-accordion.ix-card-title.entry.js.map +1 -1
  640. package/dist/esm/ix-card-accordion_2.entry.js +5 -5
  641. package/dist/esm/ix-card-accordion_2.entry.js.map +1 -1
  642. package/dist/esm/ix-card-list.entry.js +5 -5
  643. package/dist/esm/ix-card.ix-card-content.entry.js.map +1 -1
  644. package/dist/esm/ix-card_2.entry.js +4 -4
  645. package/dist/esm/ix-card_2.entry.js.map +1 -1
  646. package/dist/esm/ix-category-filter.entry.js +5 -5
  647. package/dist/esm/ix-checkbox-group.entry.js +4 -4
  648. package/dist/esm/ix-checkbox.entry.js +5 -5
  649. package/dist/esm/ix-chip.entry.js +5 -5
  650. package/dist/esm/ix-col.ix-date-picker.ix-layout-grid.ix-row.entry.js.map +1 -1
  651. package/dist/esm/ix-col_4.entry.js +12 -12
  652. package/dist/esm/ix-col_4.entry.js.map +1 -1
  653. package/dist/esm/ix-content-header.entry.js +2 -2
  654. package/dist/esm/ix-content-header.entry.js.map +1 -1
  655. package/dist/esm/ix-content.entry.js +4 -4
  656. package/dist/esm/ix-css-grid-item.entry.js +2 -2
  657. package/dist/esm/ix-css-grid.entry.js +2 -2
  658. package/dist/esm/ix-css-grid.entry.js.map +1 -1
  659. package/dist/esm/ix-custom-field.entry.js +3 -3
  660. package/dist/esm/ix-date-dropdown.entry.js +5 -5
  661. package/dist/esm/ix-date-dropdown.entry.js.map +1 -1
  662. package/dist/esm/ix-date-input.entry.js +6 -6
  663. package/dist/esm/ix-date-input.entry.js.map +1 -1
  664. package/dist/esm/ix-date-time-card.entry.js +3 -3
  665. package/dist/esm/ix-date-time-card.entry.js.map +1 -1
  666. package/dist/esm/ix-datetime-picker.entry.js +2 -2
  667. package/dist/esm/ix-datetime-picker.entry.js.map +1 -1
  668. package/dist/esm/ix-divider.entry.js +2 -2
  669. package/dist/esm/ix-drawer.entry.js +6 -6
  670. package/dist/esm/ix-dropdown-button.entry.js +3 -3
  671. package/dist/esm/ix-dropdown-button.entry.js.map +1 -1
  672. package/dist/esm/ix-dropdown-header.entry.js +2 -2
  673. package/dist/esm/ix-dropdown-item.entry.js +4 -4
  674. package/dist/esm/ix-dropdown-quick-actions.entry.js +2 -2
  675. package/dist/esm/ix-dropdown.entry.js +3 -3
  676. package/dist/esm/ix-empty-state.entry.js +2 -2
  677. package/dist/esm/ix-empty-state.entry.js.map +1 -1
  678. package/dist/esm/ix-event-list-item.entry.js +5 -5
  679. package/dist/esm/ix-event-list.entry.js +3 -3
  680. package/dist/esm/ix-expanding-search.entry.js +5 -5
  681. package/dist/esm/ix-field-label_2.entry.js +6 -6
  682. package/dist/esm/ix-filter-chip_2.entry.js +3 -3
  683. package/dist/esm/ix-flip-tile-content.entry.js +2 -2
  684. package/dist/esm/ix-flip-tile.entry.js +5 -5
  685. package/dist/esm/ix-group-context-menu_2.entry.js +4 -4
  686. package/dist/esm/ix-group.entry.js +9 -9
  687. package/dist/esm/ix-helper-text.entry.js +4 -4
  688. package/dist/esm/ix-icon-button.ix-spinner.entry.js.map +1 -1
  689. package/dist/esm/ix-icon-button_2.entry.js +5 -5
  690. package/dist/esm/ix-icon-button_2.entry.js.map +1 -1
  691. package/dist/esm/ix-icon-toggle-button.entry.js +4 -4
  692. package/dist/esm/ix-input-group.entry.js +2 -2
  693. package/dist/esm/ix-input.entry.js +7 -7
  694. package/dist/esm/ix-key-value-list.entry.js +2 -2
  695. package/dist/esm/ix-key-value.entry.js +2 -2
  696. package/dist/esm/ix-key-value.entry.js.map +1 -1
  697. package/dist/esm/ix-kpi.entry.js +4 -4
  698. package/dist/esm/ix-layout-auto.entry.js +2 -2
  699. package/dist/esm/ix-link-button.entry.js +4 -4
  700. package/dist/esm/ix-map-navigation-overlay.entry.js +3 -3
  701. package/dist/esm/ix-map-navigation.entry.js +3 -3
  702. package/dist/esm/ix-menu-about-item.entry.js +2 -2
  703. package/dist/esm/ix-menu-about-news.entry.js +5 -5
  704. package/dist/esm/ix-menu-about.entry.js +3 -3
  705. package/dist/esm/ix-menu-avatar.entry.js +3 -3
  706. package/dist/esm/ix-menu-category.entry.js +6 -6
  707. package/dist/esm/ix-menu-expand-icon.entry.js +3 -3
  708. package/dist/esm/ix-menu-item.entry.js +4 -4
  709. package/dist/esm/{ix-menu-settings-B5kM6fHy.js → ix-menu-settings-B56_taBh.js} +4 -4
  710. package/dist/esm/{ix-menu-settings-B5kM6fHy.js.map → ix-menu-settings-B56_taBh.js.map} +1 -1
  711. package/dist/esm/ix-menu-settings-item.entry.js +2 -2
  712. package/dist/esm/ix-menu-settings.entry.js +2 -2
  713. package/dist/esm/ix-menu.entry.js +13 -13
  714. package/dist/esm/ix-message-bar.entry.js +2 -2
  715. package/dist/esm/ix-modal-content_2.entry.js +3 -3
  716. package/dist/esm/ix-modal-footer.entry.js +2 -2
  717. package/dist/esm/ix-modal-loading.entry.js +2 -2
  718. package/dist/esm/ix-modal.entry.js +5 -5
  719. package/dist/esm/ix-modal.entry.js.map +1 -1
  720. package/dist/esm/ix-number-input.entry.js +9 -9
  721. package/dist/esm/ix-pagination.entry.js +4 -4
  722. package/dist/esm/ix-pane-layout.entry.js +2 -2
  723. package/dist/esm/ix-pane-layout.entry.js.map +1 -1
  724. package/dist/esm/ix-pane.entry.js +7 -7
  725. package/dist/esm/ix-pane.entry.js.map +1 -1
  726. package/dist/esm/ix-pill.entry.js +5 -5
  727. package/dist/esm/ix-progress-indicator.entry.js +4 -4
  728. package/dist/esm/ix-progress-indicator.entry.js.map +1 -1
  729. package/dist/esm/ix-push-card.entry.js +2 -2
  730. package/dist/esm/ix-push-card.entry.js.map +1 -1
  731. package/dist/esm/ix-radio-group.entry.js +4 -4
  732. package/dist/esm/ix-radio.entry.js +6 -6
  733. package/dist/esm/ix-select.entry.js +11 -11
  734. package/dist/esm/ix-slider.entry.js +8 -8
  735. package/dist/esm/ix-slider.entry.js.map +1 -1
  736. package/dist/esm/ix-split-button.entry.js +2 -2
  737. package/dist/esm/ix-split-button.entry.js.map +1 -1
  738. package/dist/esm/ix-tab-item.ix-tabs.entry.js.map +1 -1
  739. package/dist/esm/ix-tab-item_2.entry.js +6 -6
  740. package/dist/esm/ix-tab-item_2.entry.js.map +1 -1
  741. package/dist/esm/ix-textarea.entry.js +5 -5
  742. package/dist/esm/ix-textarea.entry.js.map +1 -1
  743. package/dist/esm/ix-tile.entry.js +5 -5
  744. package/dist/esm/ix-time-input.entry.js +6 -6
  745. package/dist/esm/ix-time-input.entry.js.map +1 -1
  746. package/dist/esm/ix-time-picker.entry.js +6 -6
  747. package/dist/esm/ix-time-picker.entry.js.map +1 -1
  748. package/dist/esm/ix-toast-container.entry.js +3 -3
  749. package/dist/esm/ix-toast-container.entry.js.map +1 -1
  750. package/dist/esm/ix-toast.entry.js +3 -3
  751. package/dist/esm/ix-toggle-button.entry.js +4 -4
  752. package/dist/esm/ix-toggle.entry.js +5 -5
  753. package/dist/esm/ix-tooltip.entry.js +2 -2
  754. package/dist/esm/ix-tree-item.entry.js +5 -5
  755. package/dist/esm/ix-tree.entry.js +2 -2
  756. package/dist/esm/ix-typography.entry.js +2 -2
  757. package/dist/esm/ix-typography.entry.js.map +1 -1
  758. package/dist/esm/ix-upload.entry.js +1 -1
  759. package/dist/esm/ix-validation-tooltip.entry.js +1 -1
  760. package/dist/esm/ix-workflow-step.entry.js +1 -1
  761. package/dist/esm/ix-workflow-steps.entry.js +1 -1
  762. package/dist/esm/{listener-DCrO174s.js → listener-B0yYRvMl.js} +3 -3
  763. package/dist/esm/{listener-DCrO174s.js.map → listener-B0yYRvMl.js.map} +1 -1
  764. package/dist/esm/loader.js +2 -2
  765. package/dist/esm/modal-BldRA6Um.js.map +1 -1
  766. package/dist/esm/siemens-ix.js +2 -2
  767. package/dist/esm/{validation-DuPOpjMi.js → validation-gQpVWmEm.js} +3 -3
  768. package/dist/esm/{validation-DuPOpjMi.js.map → validation-gQpVWmEm.js.map} +1 -1
  769. package/dist/siemens-ix/index.esm.js +1 -1
  770. package/dist/siemens-ix/index.esm.js.map +1 -1
  771. package/dist/siemens-ix/ix-action-card.entry.esm.js.map +1 -1
  772. package/dist/siemens-ix/ix-blind.entry.esm.js.map +1 -1
  773. package/dist/siemens-ix/ix-breadcrumb-item.entry.esm.js.map +1 -1
  774. package/dist/siemens-ix/ix-card-accordion.ix-card-title.entry.esm.js.map +1 -1
  775. package/dist/siemens-ix/ix-card.ix-card-content.entry.esm.js.map +1 -1
  776. package/dist/siemens-ix/ix-col.ix-date-picker.ix-layout-grid.ix-row.entry.esm.js.map +1 -1
  777. package/dist/siemens-ix/ix-content-header.entry.esm.js.map +1 -1
  778. package/dist/siemens-ix/ix-css-grid.entry.esm.js.map +1 -1
  779. package/dist/siemens-ix/ix-date-dropdown.entry.esm.js.map +1 -1
  780. package/dist/siemens-ix/ix-date-input.entry.esm.js.map +1 -1
  781. package/dist/siemens-ix/ix-date-time-card.entry.esm.js.map +1 -1
  782. package/dist/siemens-ix/ix-datetime-picker.entry.esm.js.map +1 -1
  783. package/dist/siemens-ix/ix-dropdown-button.entry.esm.js.map +1 -1
  784. package/dist/siemens-ix/ix-empty-state.entry.esm.js.map +1 -1
  785. package/dist/siemens-ix/ix-icon-button.ix-spinner.entry.esm.js.map +1 -1
  786. package/dist/siemens-ix/ix-key-value.entry.esm.js.map +1 -1
  787. package/dist/siemens-ix/ix-modal.entry.esm.js.map +1 -1
  788. package/dist/siemens-ix/ix-pane-layout.entry.esm.js.map +1 -1
  789. package/dist/siemens-ix/ix-pane.entry.esm.js.map +1 -1
  790. package/dist/siemens-ix/ix-progress-indicator.entry.esm.js.map +1 -1
  791. package/dist/siemens-ix/ix-push-card.entry.esm.js.map +1 -1
  792. package/dist/siemens-ix/ix-slider.entry.esm.js.map +1 -1
  793. package/dist/siemens-ix/ix-split-button.entry.esm.js.map +1 -1
  794. package/dist/siemens-ix/ix-tab-item.ix-tabs.entry.esm.js.map +1 -1
  795. package/dist/siemens-ix/ix-textarea.entry.esm.js.map +1 -1
  796. package/dist/siemens-ix/ix-time-input.entry.esm.js.map +1 -1
  797. package/dist/siemens-ix/ix-time-picker.entry.esm.js.map +1 -1
  798. package/dist/siemens-ix/ix-toast-container.entry.esm.js.map +1 -1
  799. package/dist/siemens-ix/ix-typography.entry.esm.js.map +1 -1
  800. package/dist/siemens-ix/p--JQiLjHw.js +2 -0
  801. package/dist/siemens-ix/{p-BaslXuvq.js.map → p--JQiLjHw.js.map} +1 -1
  802. package/dist/siemens-ix/{p-4be22d4d.entry.js → p-003ae2cf.entry.js} +2 -2
  803. package/dist/siemens-ix/{p-094d6f0a.entry.js → p-00eff8b5.entry.js} +2 -2
  804. package/dist/siemens-ix/{p-47956560.entry.js → p-0195766f.entry.js} +2 -2
  805. package/dist/siemens-ix/{p-c23031be.entry.js → p-025c5b1b.entry.js} +2 -2
  806. package/dist/siemens-ix/{p-25c27b28.entry.js → p-03b8e425.entry.js} +2 -2
  807. package/dist/siemens-ix/p-04527b1e.entry.js +2 -0
  808. package/dist/siemens-ix/{p-07733f87.entry.js → p-07b2da86.entry.js} +2 -2
  809. package/dist/siemens-ix/{p-2edc9a43.entry.js → p-0935e05e.entry.js} +2 -2
  810. package/dist/siemens-ix/p-0935e05e.entry.js.map +1 -0
  811. package/dist/siemens-ix/{p-746f49b4.entry.js → p-098aa857.entry.js} +2 -2
  812. package/dist/siemens-ix/{p-b6f02420.entry.js → p-0b2e7f25.entry.js} +2 -2
  813. package/dist/siemens-ix/{p-b6f02420.entry.js.map → p-0b2e7f25.entry.js.map} +1 -1
  814. package/dist/siemens-ix/{p-d4284927.entry.js → p-130ffc16.entry.js} +2 -2
  815. package/dist/siemens-ix/{p-1cff42a5.entry.js → p-13b5f3c3.entry.js} +2 -2
  816. package/dist/siemens-ix/{p-f61c1785.entry.js → p-14d2042d.entry.js} +2 -2
  817. package/dist/siemens-ix/p-15e0db51.entry.js +2 -0
  818. package/dist/siemens-ix/{p-a7e339d0.entry.js.map → p-15e0db51.entry.js.map} +1 -1
  819. package/dist/siemens-ix/{p-702d290f.entry.js → p-173dfb9e.entry.js} +2 -2
  820. package/dist/siemens-ix/p-173dfb9e.entry.js.map +1 -0
  821. package/dist/siemens-ix/p-19501b80.entry.js +2 -0
  822. package/dist/siemens-ix/{p-d2151941.entry.js → p-1df6d18f.entry.js} +2 -2
  823. package/dist/siemens-ix/{p-518290fd.entry.js → p-1fdfe35a.entry.js} +2 -2
  824. package/dist/siemens-ix/{p-38fa1eec.entry.js → p-2642d96b.entry.js} +2 -2
  825. package/dist/siemens-ix/{p-0053fd70.entry.js → p-28aece6e.entry.js} +2 -2
  826. package/dist/siemens-ix/{p-00668881.entry.js → p-29d44cef.entry.js} +2 -2
  827. package/dist/siemens-ix/p-2db9bcfa.entry.js +2 -0
  828. package/dist/siemens-ix/p-2db9bcfa.entry.js.map +1 -0
  829. package/dist/siemens-ix/{p-1f5322d5.entry.js → p-2f2dfb6e.entry.js} +2 -2
  830. package/dist/siemens-ix/{p-7fcec901.entry.js → p-2f9b9e7a.entry.js} +2 -2
  831. package/dist/siemens-ix/{p-6b5cb4c3.entry.js → p-326c0944.entry.js} +2 -2
  832. package/dist/siemens-ix/p-326c0944.entry.js.map +1 -0
  833. package/dist/siemens-ix/{p-2a1152d9.entry.js → p-35054c78.entry.js} +2 -2
  834. package/dist/siemens-ix/p-35054c78.entry.js.map +1 -0
  835. package/dist/siemens-ix/{p-7b5eb3ca.entry.js → p-36b894a2.entry.js} +2 -2
  836. package/dist/siemens-ix/p-36b894a2.entry.js.map +1 -0
  837. package/dist/siemens-ix/{p-44a9c1db.entry.js → p-3b45287a.entry.js} +2 -2
  838. package/dist/siemens-ix/p-3b45287a.entry.js.map +1 -0
  839. package/dist/siemens-ix/p-440a0ee0.entry.js +2 -0
  840. package/dist/siemens-ix/p-44be2535.entry.js +2 -0
  841. package/dist/siemens-ix/{p-c6cb0b06.entry.js.map → p-44be2535.entry.js.map} +1 -1
  842. package/dist/siemens-ix/{p-c7ead0ee.entry.js → p-456ca686.entry.js} +2 -2
  843. package/dist/siemens-ix/p-456ca686.entry.js.map +1 -0
  844. package/dist/siemens-ix/{p-ed05a3ed.entry.js → p-4657ec52.entry.js} +2 -2
  845. package/dist/siemens-ix/p-4657ec52.entry.js.map +1 -0
  846. package/dist/siemens-ix/{p-0e0019a3.entry.js → p-472c1d6b.entry.js} +2 -2
  847. package/dist/siemens-ix/{p-1363ac29.entry.js → p-47f395be.entry.js} +2 -2
  848. package/dist/siemens-ix/{p-cf7448b1.entry.js → p-483bc052.entry.js} +2 -2
  849. package/dist/siemens-ix/p-4959b8e6.entry.js +2 -0
  850. package/dist/siemens-ix/{p-a09ec38c.entry.js → p-4e2b30a4.entry.js} +2 -2
  851. package/dist/siemens-ix/p-4e2b30a4.entry.js.map +1 -0
  852. package/dist/siemens-ix/{p-2e0dab7b.entry.js → p-4ef7a072.entry.js} +2 -2
  853. package/dist/siemens-ix/p-4ef7a072.entry.js.map +1 -0
  854. package/dist/siemens-ix/{p-e499f85d.entry.js → p-4fe2d0f7.entry.js} +2 -2
  855. package/dist/siemens-ix/{p-17a19a44.entry.js → p-518b5533.entry.js} +2 -2
  856. package/dist/siemens-ix/p-518b5533.entry.js.map +1 -0
  857. package/dist/siemens-ix/{p-e006c83c.entry.js → p-5b22342c.entry.js} +2 -2
  858. package/dist/siemens-ix/{p-125b66ec.entry.js → p-605a9fe8.entry.js} +2 -2
  859. package/dist/siemens-ix/{p-2d383fa3.entry.js → p-6337e880.entry.js} +2 -2
  860. package/dist/siemens-ix/{p-0285fa1a.entry.js → p-6549edf0.entry.js} +2 -2
  861. package/dist/siemens-ix/p-66d20585.entry.js +2 -0
  862. package/dist/siemens-ix/{p-53d1f804.entry.js → p-6adde42d.entry.js} +2 -2
  863. package/dist/siemens-ix/{p-b1bc33ef.entry.js → p-6cc448b4.entry.js} +2 -2
  864. package/dist/siemens-ix/{p-ec3786c3.entry.js → p-7011678e.entry.js} +2 -2
  865. package/dist/siemens-ix/p-7111f065.entry.js +2 -0
  866. package/dist/siemens-ix/{p-30e325ee.entry.js → p-71c14a29.entry.js} +2 -2
  867. package/dist/siemens-ix/p-71c14a29.entry.js.map +1 -0
  868. package/dist/siemens-ix/{p-cf3c2573.entry.js → p-76f59fa5.entry.js} +2 -2
  869. package/dist/siemens-ix/{p-c5921b21.entry.js → p-777675ce.entry.js} +2 -2
  870. package/dist/siemens-ix/{p-f66cb323.entry.js → p-7a336485.entry.js} +2 -2
  871. package/dist/siemens-ix/p-7a336485.entry.js.map +1 -0
  872. package/dist/siemens-ix/{p-4a666ab2.entry.js → p-8d4558b9.entry.js} +2 -2
  873. package/dist/siemens-ix/{p-ef56e825.entry.js → p-8fcada5a.entry.js} +2 -2
  874. package/dist/siemens-ix/{p-96c0acb2.entry.js → p-91ba2527.entry.js} +2 -2
  875. package/dist/siemens-ix/p-97693d72.entry.js +2 -0
  876. package/dist/siemens-ix/{p-29eb0f3c.entry.js → p-97a53af6.entry.js} +2 -2
  877. package/dist/siemens-ix/p-981dae13.entry.js +2 -0
  878. package/dist/siemens-ix/{p-f426aa64.entry.js.map → p-981dae13.entry.js.map} +1 -1
  879. package/dist/siemens-ix/{p-5f494293.entry.js → p-988f37da.entry.js} +2 -2
  880. package/dist/siemens-ix/{p-80dfc634.entry.js → p-9f74e709.entry.js} +2 -2
  881. package/dist/siemens-ix/p-9f74e709.entry.js.map +1 -0
  882. package/dist/siemens-ix/{p-61944945.entry.js → p-9f7d82d2.entry.js} +2 -2
  883. package/dist/siemens-ix/{p-DhH1rUwy.js → p-BsJawkTz.js} +2 -2
  884. package/dist/siemens-ix/{p-DhH1rUwy.js.map → p-BsJawkTz.js.map} +1 -1
  885. package/dist/siemens-ix/p-BxQZld1q.js.map +1 -1
  886. package/dist/siemens-ix/{p-zYzFdFx8.js → p-CFsAnuUU.js} +2 -2
  887. package/dist/siemens-ix/{p-zYzFdFx8.js.map → p-CFsAnuUU.js.map} +1 -1
  888. package/dist/siemens-ix/{p-Bko0CTxK.js → p-CpY7qbN7.js} +2 -2
  889. package/dist/siemens-ix/{p-Bko0CTxK.js.map → p-CpY7qbN7.js.map} +1 -1
  890. package/dist/siemens-ix/{p-DeEsc3nL.js → p-Cpl-a_ti.js} +2 -2
  891. package/dist/siemens-ix/{p-DeEsc3nL.js.map → p-Cpl-a_ti.js.map} +1 -1
  892. package/dist/siemens-ix/{p-C1MjXHa0.js → p-CthRnoDv.js} +2 -2
  893. package/dist/siemens-ix/{p-C1MjXHa0.js.map → p-CthRnoDv.js.map} +1 -1
  894. package/dist/siemens-ix/p-DJsXFBNm.js +3 -0
  895. package/dist/siemens-ix/p-DJsXFBNm.js.map +1 -0
  896. package/dist/siemens-ix/p-_tyNUrlp.js +2 -0
  897. package/dist/siemens-ix/{p-DyBJEhgA.js.map → p-_tyNUrlp.js.map} +1 -1
  898. package/dist/siemens-ix/{p-d4936531.entry.js → p-a43c4907.entry.js} +2 -2
  899. package/dist/siemens-ix/{p-e636a236.entry.js → p-a6ea8bc6.entry.js} +2 -2
  900. package/dist/siemens-ix/p-a6ea8bc6.entry.js.map +1 -0
  901. package/dist/siemens-ix/{p-a15f3a9d.entry.js → p-a7bdd5fd.entry.js} +2 -2
  902. package/dist/siemens-ix/p-a7bdd5fd.entry.js.map +1 -0
  903. package/dist/siemens-ix/p-a8cd5e58.entry.js +2 -0
  904. package/dist/siemens-ix/{p-7da60ba2.entry.js.map → p-a8cd5e58.entry.js.map} +1 -1
  905. package/dist/siemens-ix/p-a9336906.entry.js +2 -0
  906. package/dist/siemens-ix/p-a9336906.entry.js.map +1 -0
  907. package/dist/siemens-ix/{p-a951d9e7.entry.js → p-a9ec8094.entry.js} +2 -2
  908. package/dist/siemens-ix/p-aa2dd2c3.entry.js +2 -0
  909. package/dist/siemens-ix/{p-227ea9bc.entry.js.map → p-aa2dd2c3.entry.js.map} +1 -1
  910. package/dist/siemens-ix/{p-7978f54a.entry.js → p-afd392d5.entry.js} +2 -2
  911. package/dist/siemens-ix/{p-381708ea.entry.js → p-b00517df.entry.js} +2 -2
  912. package/dist/siemens-ix/p-b3d4d2cd.entry.js +2 -0
  913. package/dist/siemens-ix/{p-fe1e79d6.entry.js → p-b548335e.entry.js} +2 -2
  914. package/dist/siemens-ix/{p-77d586e5.entry.js → p-b735b8ce.entry.js} +2 -2
  915. package/dist/siemens-ix/p-ba24447f.entry.js +2 -0
  916. package/dist/siemens-ix/{p-07fa84e9.entry.js.map → p-ba24447f.entry.js.map} +1 -1
  917. package/dist/siemens-ix/{p-138de76a.entry.js → p-bec289d7.entry.js} +2 -2
  918. package/dist/siemens-ix/{p-60c6eba1.entry.js → p-bf7fbdfc.entry.js} +2 -2
  919. package/dist/siemens-ix/{p-e850d862.entry.js → p-bf8dd5a1.entry.js} +2 -2
  920. package/dist/siemens-ix/{p-97eb6c3c.entry.js → p-c050d511.entry.js} +2 -2
  921. package/dist/siemens-ix/p-c050d511.entry.js.map +1 -0
  922. package/dist/siemens-ix/{p-de03778d.entry.js → p-c24a5925.entry.js} +2 -2
  923. package/dist/siemens-ix/p-c24a5925.entry.js.map +1 -0
  924. package/dist/siemens-ix/{p-42cf2d8f.entry.js → p-c5f8ccc9.entry.js} +2 -2
  925. package/dist/siemens-ix/p-c9ab3079.entry.js +2 -0
  926. package/dist/siemens-ix/{p-64a2f777.entry.js.map → p-c9ab3079.entry.js.map} +1 -1
  927. package/dist/siemens-ix/{p-26b072bb.entry.js → p-c9d48927.entry.js} +2 -2
  928. package/dist/siemens-ix/{p-ea980990.entry.js → p-ce3aebe6.entry.js} +2 -2
  929. package/dist/siemens-ix/{p-1b04e58a.entry.js → p-cf052f87.entry.js} +2 -2
  930. package/dist/siemens-ix/p-cf052f87.entry.js.map +1 -0
  931. package/dist/siemens-ix/{p-7b455f16.entry.js → p-d0c1473e.entry.js} +2 -2
  932. package/dist/siemens-ix/p-d0c1473e.entry.js.map +1 -0
  933. package/dist/siemens-ix/{p-61bf7678.entry.js → p-d3458382.entry.js} +2 -2
  934. package/dist/siemens-ix/p-d605b181.entry.js +2 -0
  935. package/dist/siemens-ix/{p-96687290.entry.js → p-db6d5110.entry.js} +2 -2
  936. package/dist/siemens-ix/p-db6d5110.entry.js.map +1 -0
  937. package/dist/siemens-ix/{p-92513d0e.entry.js → p-de79e8c0.entry.js} +2 -2
  938. package/dist/siemens-ix/p-de79e8c0.entry.js.map +1 -0
  939. package/dist/siemens-ix/{p-e40c900a.entry.js → p-dfb5f7d8.entry.js} +2 -2
  940. package/dist/siemens-ix/{p-97029efe.entry.js → p-dfe4de85.entry.js} +2 -2
  941. package/dist/siemens-ix/{p-f1d1c522.entry.js → p-ea142215.entry.js} +2 -2
  942. package/dist/siemens-ix/{p-6a275897.entry.js → p-ead88218.entry.js} +2 -2
  943. package/dist/siemens-ix/{p-25368187.entry.js → p-ec7cd008.entry.js} +2 -2
  944. package/dist/siemens-ix/{p-6dffce02.entry.js → p-ecd576f8.entry.js} +2 -2
  945. package/dist/siemens-ix/p-ecd576f8.entry.js.map +1 -0
  946. package/dist/siemens-ix/{p-3725e281.entry.js → p-ee2902a5.entry.js} +2 -2
  947. package/dist/siemens-ix/{p-daf2c2fd.entry.js → p-f4415d44.entry.js} +2 -2
  948. package/dist/siemens-ix/{p-b45ce132.entry.js → p-f4ce72e4.entry.js} +2 -2
  949. package/dist/siemens-ix/p-f4ce72e4.entry.js.map +1 -0
  950. package/dist/siemens-ix/{p-cf3cbb46.entry.js → p-f6a6694e.entry.js} +2 -2
  951. package/dist/siemens-ix/p-f6a6694e.entry.js.map +1 -0
  952. package/dist/siemens-ix/{p-fadc415c.entry.js → p-fbacd6eb.entry.js} +2 -2
  953. package/dist/siemens-ix/p-fbacd6eb.entry.js.map +1 -0
  954. package/dist/siemens-ix/siemens-ix.esm.js +1 -1
  955. package/dist/types/components/action-card/action-card.d.ts +1 -2
  956. package/dist/types/components/action-card/action-card.types.d.ts +2 -0
  957. package/dist/types/components/blind/blind.d.ts +1 -2
  958. package/dist/types/components/blind/blind.types.d.ts +2 -0
  959. package/dist/types/components/breadcrumb-item/breadcrumb-item.d.ts +0 -1
  960. package/dist/types/components/card/card.d.ts +1 -1
  961. package/dist/types/components/card/card.types.d.ts +1 -0
  962. package/dist/types/components/card-accordion/card-accordion.d.ts +1 -4
  963. package/dist/types/components/card-accordion/card-accordion.types.d.ts +4 -0
  964. package/dist/types/components/col/col.d.ts +1 -1
  965. package/dist/types/components/col/col.types.d.ts +1 -0
  966. package/dist/types/components/content-header/content-header.d.ts +1 -1
  967. package/dist/types/components/content-header/content-header.types.d.ts +1 -0
  968. package/dist/types/components/css-grid/css-grid.d.ts +1 -1
  969. package/dist/types/components/css-grid/css-grid.types.d.ts +1 -0
  970. package/dist/types/components/date-dropdown/date-dropdown.d.ts +1 -11
  971. package/dist/types/components/date-dropdown/date-dropdown.types.d.ts +11 -0
  972. package/dist/types/components/date-input/date-input.d.ts +1 -4
  973. package/dist/types/components/date-input/date-input.types.d.ts +4 -0
  974. package/dist/types/components/date-picker/date-picker-component.d.ts +1 -1
  975. package/dist/types/components/date-picker/date-picker.d.ts +2 -5
  976. package/dist/types/components/date-picker/date-picker.events.d.ts +4 -0
  977. package/dist/types/components/date-time-card/date-time-card.d.ts +1 -1
  978. package/dist/types/components/date-time-card/date-time-card.types.d.ts +1 -0
  979. package/dist/types/components/datetime-picker/datetime-picker.d.ts +1 -6
  980. package/dist/types/components/datetime-picker/datetime-picker.types.d.ts +6 -0
  981. package/dist/types/components/dropdown-button/dropdown-button.d.ts +1 -2
  982. package/dist/types/components/dropdown-button/dropdown-button.types.d.ts +2 -0
  983. package/dist/types/components/empty-state/empty-state.d.ts +1 -1
  984. package/dist/types/components/empty-state/empty-state.types.d.ts +1 -0
  985. package/dist/types/components/icon-button/icon-button.d.ts +1 -2
  986. package/dist/types/components/icon-button/icon-button.types.d.ts +2 -0
  987. package/dist/types/components/input/textarea.d.ts +1 -1
  988. package/dist/types/components/input/textarea.types.d.ts +1 -0
  989. package/dist/types/components/key-value/key-value.d.ts +1 -1
  990. package/dist/types/components/key-value/key-value.types.d.ts +1 -0
  991. package/dist/types/components/modal/modal.d.ts +1 -3
  992. package/dist/types/components/modal/modal.types.d.ts +3 -0
  993. package/dist/types/components/pane/pane.d.ts +1 -21
  994. package/dist/types/components/pane/pane.types.d.ts +21 -0
  995. package/dist/types/components/progress-indicator/circular.d.ts +1 -1
  996. package/dist/types/components/progress-indicator/progress-indicator.d.ts +1 -1
  997. package/dist/types/components/progress-indicator/progress-indicator.types.d.ts +1 -0
  998. package/dist/types/components/push-card/push-card.d.ts +1 -2
  999. package/dist/types/components/push-card/push-card.types.d.ts +2 -0
  1000. package/dist/types/components/slider/slider.d.ts +1 -1
  1001. package/dist/types/components/slider/slider.types.d.ts +1 -0
  1002. package/dist/types/components/split-button/split-button.d.ts +1 -2
  1003. package/dist/types/components/split-button/split-button.types.d.ts +2 -0
  1004. package/dist/types/components/tab-item/tab-item.d.ts +1 -3
  1005. package/dist/types/components/tab-item/tab-item.types.d.ts +3 -0
  1006. package/dist/types/components/time-input/time-input.d.ts +1 -4
  1007. package/dist/types/components/time-input/time-input.types.d.ts +4 -0
  1008. package/dist/types/components/time-picker/time-picker.d.ts +1 -2
  1009. package/dist/types/components/time-picker/time-picker.types.d.ts +2 -0
  1010. package/dist/types/components/toast/toast-container.d.ts +1 -5
  1011. package/dist/types/components/toast/toast-container.types.d.ts +5 -0
  1012. package/dist/types/components/toast/toast-utils.d.ts +1 -1
  1013. package/dist/types/components/typography/typography.d.ts +1 -10
  1014. package/dist/types/components/typography/typography.types.d.ts +10 -0
  1015. package/dist/types/components/utils/modal/modal.d.ts +1 -1
  1016. package/dist/types/components.d.ts +58 -60
  1017. package/dist/types/index.d.ts +3 -16
  1018. package/dist/types/public-api.d.ts +15 -0
  1019. package/hydrate/index.js +256 -256
  1020. package/hydrate/index.mjs +256 -256
  1021. package/package.json +5 -5
  1022. package/components/p-18F-YfbC.js.map +0 -1
  1023. package/components/p-BXGAr1UD.js.map +0 -1
  1024. package/components/p-Cuf7Gv_k.js.map +0 -1
  1025. package/components/p-DzKDFBWC.js +0 -2042
  1026. package/components/p-DzKDFBWC.js.map +0 -1
  1027. package/components/p-pMSLP3h4.js.map +0 -1
  1028. package/dist/cjs/index-BDliOtbY.js +0 -2734
  1029. package/dist/cjs/index-BDliOtbY.js.map +0 -1
  1030. package/dist/esm/index-B6NtGPRE.js +0 -2702
  1031. package/dist/esm/index-B6NtGPRE.js.map +0 -1
  1032. package/dist/siemens-ix/p-07fa84e9.entry.js +0 -2
  1033. package/dist/siemens-ix/p-17a19a44.entry.js.map +0 -1
  1034. package/dist/siemens-ix/p-1b04e58a.entry.js.map +0 -1
  1035. package/dist/siemens-ix/p-1fc79a42.entry.js +0 -2
  1036. package/dist/siemens-ix/p-227ea9bc.entry.js +0 -2
  1037. package/dist/siemens-ix/p-2a1152d9.entry.js.map +0 -1
  1038. package/dist/siemens-ix/p-2e0dab7b.entry.js.map +0 -1
  1039. package/dist/siemens-ix/p-2edc9a43.entry.js.map +0 -1
  1040. package/dist/siemens-ix/p-30e325ee.entry.js.map +0 -1
  1041. package/dist/siemens-ix/p-3d4eba06.entry.js +0 -2
  1042. package/dist/siemens-ix/p-44a9c1db.entry.js.map +0 -1
  1043. package/dist/siemens-ix/p-64a2f777.entry.js +0 -2
  1044. package/dist/siemens-ix/p-674dd99b.entry.js +0 -2
  1045. package/dist/siemens-ix/p-6b5cb4c3.entry.js.map +0 -1
  1046. package/dist/siemens-ix/p-6cc4c39e.entry.js +0 -2
  1047. package/dist/siemens-ix/p-6dffce02.entry.js.map +0 -1
  1048. package/dist/siemens-ix/p-702d290f.entry.js.map +0 -1
  1049. package/dist/siemens-ix/p-719704c7.entry.js +0 -2
  1050. package/dist/siemens-ix/p-719704c7.entry.js.map +0 -1
  1051. package/dist/siemens-ix/p-7b455f16.entry.js.map +0 -1
  1052. package/dist/siemens-ix/p-7b5eb3ca.entry.js.map +0 -1
  1053. package/dist/siemens-ix/p-7da60ba2.entry.js +0 -2
  1054. package/dist/siemens-ix/p-80dfc634.entry.js.map +0 -1
  1055. package/dist/siemens-ix/p-8774e0a8.entry.js +0 -2
  1056. package/dist/siemens-ix/p-92513d0e.entry.js.map +0 -1
  1057. package/dist/siemens-ix/p-9513a275.entry.js +0 -2
  1058. package/dist/siemens-ix/p-96687290.entry.js.map +0 -1
  1059. package/dist/siemens-ix/p-97eb6c3c.entry.js.map +0 -1
  1060. package/dist/siemens-ix/p-B6NtGPRE.js +0 -3
  1061. package/dist/siemens-ix/p-B6NtGPRE.js.map +0 -1
  1062. package/dist/siemens-ix/p-BaslXuvq.js +0 -2
  1063. package/dist/siemens-ix/p-DyBJEhgA.js +0 -2
  1064. package/dist/siemens-ix/p-a09ec38c.entry.js.map +0 -1
  1065. package/dist/siemens-ix/p-a15f3a9d.entry.js.map +0 -1
  1066. package/dist/siemens-ix/p-a7e339d0.entry.js +0 -2
  1067. package/dist/siemens-ix/p-b45ce132.entry.js.map +0 -1
  1068. package/dist/siemens-ix/p-c192caa5.entry.js +0 -2
  1069. package/dist/siemens-ix/p-c192caa5.entry.js.map +0 -1
  1070. package/dist/siemens-ix/p-c6cb0b06.entry.js +0 -2
  1071. package/dist/siemens-ix/p-c7ead0ee.entry.js.map +0 -1
  1072. package/dist/siemens-ix/p-c9c30ce7.entry.js +0 -2
  1073. package/dist/siemens-ix/p-cb076f29.entry.js +0 -2
  1074. package/dist/siemens-ix/p-cf3cbb46.entry.js.map +0 -1
  1075. package/dist/siemens-ix/p-de03778d.entry.js.map +0 -1
  1076. package/dist/siemens-ix/p-e088e1d9.entry.js +0 -2
  1077. package/dist/siemens-ix/p-e636a236.entry.js.map +0 -1
  1078. package/dist/siemens-ix/p-ed05a3ed.entry.js.map +0 -1
  1079. package/dist/siemens-ix/p-f426aa64.entry.js +0 -2
  1080. package/dist/siemens-ix/p-f66cb323.entry.js.map +0 -1
  1081. package/dist/siemens-ix/p-fadc415c.entry.js.map +0 -1
  1082. package/dist/types/interfaces.d.ts +0 -27
  1083. /package/dist/siemens-ix/{p-4be22d4d.entry.js.map → p-003ae2cf.entry.js.map} +0 -0
  1084. /package/dist/siemens-ix/{p-094d6f0a.entry.js.map → p-00eff8b5.entry.js.map} +0 -0
  1085. /package/dist/siemens-ix/{p-47956560.entry.js.map → p-0195766f.entry.js.map} +0 -0
  1086. /package/dist/siemens-ix/{p-c23031be.entry.js.map → p-025c5b1b.entry.js.map} +0 -0
  1087. /package/dist/siemens-ix/{p-25c27b28.entry.js.map → p-03b8e425.entry.js.map} +0 -0
  1088. /package/dist/siemens-ix/{p-9513a275.entry.js.map → p-04527b1e.entry.js.map} +0 -0
  1089. /package/dist/siemens-ix/{p-07733f87.entry.js.map → p-07b2da86.entry.js.map} +0 -0
  1090. /package/dist/siemens-ix/{p-746f49b4.entry.js.map → p-098aa857.entry.js.map} +0 -0
  1091. /package/dist/siemens-ix/{p-d4284927.entry.js.map → p-130ffc16.entry.js.map} +0 -0
  1092. /package/dist/siemens-ix/{p-1cff42a5.entry.js.map → p-13b5f3c3.entry.js.map} +0 -0
  1093. /package/dist/siemens-ix/{p-f61c1785.entry.js.map → p-14d2042d.entry.js.map} +0 -0
  1094. /package/dist/siemens-ix/{p-cb076f29.entry.js.map → p-19501b80.entry.js.map} +0 -0
  1095. /package/dist/siemens-ix/{p-d2151941.entry.js.map → p-1df6d18f.entry.js.map} +0 -0
  1096. /package/dist/siemens-ix/{p-518290fd.entry.js.map → p-1fdfe35a.entry.js.map} +0 -0
  1097. /package/dist/siemens-ix/{p-38fa1eec.entry.js.map → p-2642d96b.entry.js.map} +0 -0
  1098. /package/dist/siemens-ix/{p-0053fd70.entry.js.map → p-28aece6e.entry.js.map} +0 -0
  1099. /package/dist/siemens-ix/{p-00668881.entry.js.map → p-29d44cef.entry.js.map} +0 -0
  1100. /package/dist/siemens-ix/{p-1f5322d5.entry.js.map → p-2f2dfb6e.entry.js.map} +0 -0
  1101. /package/dist/siemens-ix/{p-7fcec901.entry.js.map → p-2f9b9e7a.entry.js.map} +0 -0
  1102. /package/dist/siemens-ix/{p-8774e0a8.entry.js.map → p-440a0ee0.entry.js.map} +0 -0
  1103. /package/dist/siemens-ix/{p-0e0019a3.entry.js.map → p-472c1d6b.entry.js.map} +0 -0
  1104. /package/dist/siemens-ix/{p-1363ac29.entry.js.map → p-47f395be.entry.js.map} +0 -0
  1105. /package/dist/siemens-ix/{p-cf7448b1.entry.js.map → p-483bc052.entry.js.map} +0 -0
  1106. /package/dist/siemens-ix/{p-3d4eba06.entry.js.map → p-4959b8e6.entry.js.map} +0 -0
  1107. /package/dist/siemens-ix/{p-e499f85d.entry.js.map → p-4fe2d0f7.entry.js.map} +0 -0
  1108. /package/dist/siemens-ix/{p-e006c83c.entry.js.map → p-5b22342c.entry.js.map} +0 -0
  1109. /package/dist/siemens-ix/{p-125b66ec.entry.js.map → p-605a9fe8.entry.js.map} +0 -0
  1110. /package/dist/siemens-ix/{p-2d383fa3.entry.js.map → p-6337e880.entry.js.map} +0 -0
  1111. /package/dist/siemens-ix/{p-0285fa1a.entry.js.map → p-6549edf0.entry.js.map} +0 -0
  1112. /package/dist/siemens-ix/{p-1fc79a42.entry.js.map → p-66d20585.entry.js.map} +0 -0
  1113. /package/dist/siemens-ix/{p-53d1f804.entry.js.map → p-6adde42d.entry.js.map} +0 -0
  1114. /package/dist/siemens-ix/{p-b1bc33ef.entry.js.map → p-6cc448b4.entry.js.map} +0 -0
  1115. /package/dist/siemens-ix/{p-ec3786c3.entry.js.map → p-7011678e.entry.js.map} +0 -0
  1116. /package/dist/siemens-ix/{p-6cc4c39e.entry.js.map → p-7111f065.entry.js.map} +0 -0
  1117. /package/dist/siemens-ix/{p-cf3c2573.entry.js.map → p-76f59fa5.entry.js.map} +0 -0
  1118. /package/dist/siemens-ix/{p-c5921b21.entry.js.map → p-777675ce.entry.js.map} +0 -0
  1119. /package/dist/siemens-ix/{p-4a666ab2.entry.js.map → p-8d4558b9.entry.js.map} +0 -0
  1120. /package/dist/siemens-ix/{p-ef56e825.entry.js.map → p-8fcada5a.entry.js.map} +0 -0
  1121. /package/dist/siemens-ix/{p-96c0acb2.entry.js.map → p-91ba2527.entry.js.map} +0 -0
  1122. /package/dist/siemens-ix/{p-e088e1d9.entry.js.map → p-97693d72.entry.js.map} +0 -0
  1123. /package/dist/siemens-ix/{p-29eb0f3c.entry.js.map → p-97a53af6.entry.js.map} +0 -0
  1124. /package/dist/siemens-ix/{p-5f494293.entry.js.map → p-988f37da.entry.js.map} +0 -0
  1125. /package/dist/siemens-ix/{p-61944945.entry.js.map → p-9f7d82d2.entry.js.map} +0 -0
  1126. /package/dist/siemens-ix/{p-d4936531.entry.js.map → p-a43c4907.entry.js.map} +0 -0
  1127. /package/dist/siemens-ix/{p-a951d9e7.entry.js.map → p-a9ec8094.entry.js.map} +0 -0
  1128. /package/dist/siemens-ix/{p-7978f54a.entry.js.map → p-afd392d5.entry.js.map} +0 -0
  1129. /package/dist/siemens-ix/{p-381708ea.entry.js.map → p-b00517df.entry.js.map} +0 -0
  1130. /package/dist/siemens-ix/{p-c9c30ce7.entry.js.map → p-b3d4d2cd.entry.js.map} +0 -0
  1131. /package/dist/siemens-ix/{p-fe1e79d6.entry.js.map → p-b548335e.entry.js.map} +0 -0
  1132. /package/dist/siemens-ix/{p-77d586e5.entry.js.map → p-b735b8ce.entry.js.map} +0 -0
  1133. /package/dist/siemens-ix/{p-138de76a.entry.js.map → p-bec289d7.entry.js.map} +0 -0
  1134. /package/dist/siemens-ix/{p-60c6eba1.entry.js.map → p-bf7fbdfc.entry.js.map} +0 -0
  1135. /package/dist/siemens-ix/{p-e850d862.entry.js.map → p-bf8dd5a1.entry.js.map} +0 -0
  1136. /package/dist/siemens-ix/{p-42cf2d8f.entry.js.map → p-c5f8ccc9.entry.js.map} +0 -0
  1137. /package/dist/siemens-ix/{p-26b072bb.entry.js.map → p-c9d48927.entry.js.map} +0 -0
  1138. /package/dist/siemens-ix/{p-ea980990.entry.js.map → p-ce3aebe6.entry.js.map} +0 -0
  1139. /package/dist/siemens-ix/{p-61bf7678.entry.js.map → p-d3458382.entry.js.map} +0 -0
  1140. /package/dist/siemens-ix/{p-674dd99b.entry.js.map → p-d605b181.entry.js.map} +0 -0
  1141. /package/dist/siemens-ix/{p-e40c900a.entry.js.map → p-dfb5f7d8.entry.js.map} +0 -0
  1142. /package/dist/siemens-ix/{p-97029efe.entry.js.map → p-dfe4de85.entry.js.map} +0 -0
  1143. /package/dist/siemens-ix/{p-f1d1c522.entry.js.map → p-ea142215.entry.js.map} +0 -0
  1144. /package/dist/siemens-ix/{p-6a275897.entry.js.map → p-ead88218.entry.js.map} +0 -0
  1145. /package/dist/siemens-ix/{p-25368187.entry.js.map → p-ec7cd008.entry.js.map} +0 -0
  1146. /package/dist/siemens-ix/{p-3725e281.entry.js.map → p-ee2902a5.entry.js.map} +0 -0
  1147. /package/dist/siemens-ix/{p-daf2c2fd.entry.js.map → p-f4415d44.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"p-BxQZld1q.js","sources":["src/components/utils/delegate.ts","src/components/utils/modal/message.ts","src/components/utils/modal/modal.ts"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nexport type DelegateConfig = {\n parentElement?: Element;\n};\n\nexport interface FrameworkDelegate {\n attachView<R = HTMLElement>(view: any, config?: DelegateConfig): Promise<R>;\n removeView(view: any): Promise<void>;\n}\n\nclass DefaultFrameworkDelegate implements FrameworkDelegate {\n async attachView<R = HTMLElement>(\n view: any,\n config?: DelegateConfig\n ): Promise<R> {\n const attachToElement = config?.parentElement ?? document.body;\n attachToElement.appendChild(view);\n return view;\n }\n\n async removeView(view: any) {\n view.remove();\n }\n}\n\nconst coreDelegate = new DefaultFrameworkDelegate();\nlet currentDelegate: FrameworkDelegate = coreDelegate;\n\nexport function registerFrameworkDelegate(delegate: FrameworkDelegate) {\n currentDelegate = delegate;\n}\n\nexport const resolveDelegate = () => {\n return currentDelegate;\n};\n\nexport const getCoreDelegate = () => coreDelegate;\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n iconError,\n iconInfo,\n iconQuestion,\n iconSuccess,\n iconWarning,\n} from '@siemens/ix-icons/icons';\nimport { getCoreDelegate } from '../delegate';\nimport { TypedEvent } from '../typed-event';\nimport { ModalConfig } from './modal';\n\nexport type MessageConfig<T> = Omit<\n ModalConfig<T, unknown>,\n 'content' | 'title'\n> &\n MessageContent;\n\nfunction setA11yAttributes(element: HTMLElement, config: MessageContent) {\n const ariaDescribedby = config.ariaDescribedby;\n const ariaLabelledby = config.ariaLabelledby;\n\n delete config['ariaDescribedby'];\n delete config['ariaLabelledby'];\n\n if (ariaDescribedby) {\n element.setAttribute('aria-describedby', ariaDescribedby);\n }\n\n if (ariaLabelledby) {\n element.setAttribute('aria-labelledby', ariaLabelledby);\n }\n}\n\nfunction createConfirmButtons(\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) {\n let actions: MessageAction[] = [];\n\n if (textCancel !== undefined) {\n actions = [\n ...actions,\n {\n id: 'cancel',\n text: textCancel,\n type: 'cancel',\n payload: payloadCancel,\n } as MessageAction,\n ];\n }\n return [\n ...actions,\n {\n id: 'okay',\n text: textOkay,\n type: 'okay',\n payload: payloadOkay,\n } as MessageAction,\n ];\n}\n\nexport type MessageAction = {\n id: string;\n type: 'button-primary' | 'button-secondary' | 'okay' | 'cancel';\n text: string;\n payload?: any;\n};\n\nexport type MessageContent = {\n icon: string;\n iconColor?: string;\n messageTitle: string;\n message: string;\n actions: MessageAction[];\n ariaLabelledby?: string;\n ariaDescribedby?: string;\n};\n\nexport async function showMessage<T>(config: MessageConfig<T>) {\n const onMessageAction = new TypedEvent<{\n actionId: string;\n payload: T;\n }>();\n const dialog = document.createElement('ix-modal');\n const header = document.createElement('ix-modal-header');\n const content = document.createElement('ix-modal-content');\n const footer = document.createElement('ix-modal-footer');\n\n setA11yAttributes(dialog, config);\n\n Object.assign(header, config);\n Object.assign(content, config);\n Object.assign(footer, config);\n\n header.innerText = config.messageTitle;\n content.innerText = config.message;\n\n config.actions.forEach(({ id, text, type, payload }) => {\n const button = document.createElement('ix-button');\n button.innerText = text;\n footer.appendChild(button);\n\n if (type === 'okay') {\n button.variant = 'primary';\n button.addEventListener('click', () =>\n dialog.closeModal({\n actionId: id,\n payload,\n })\n );\n return;\n } else if (type === 'cancel') {\n button.variant = 'primary';\n button.outline = true;\n button.addEventListener('click', () =>\n dialog.dismissModal({\n actionId: id,\n payload,\n })\n );\n return;\n }\n });\n\n dialog.appendChild(header);\n dialog.appendChild(content);\n dialog.appendChild(footer);\n\n const dialogRef =\n await getCoreDelegate().attachView<HTMLIxModalElement>(dialog);\n\n dialogRef.addEventListener(\n 'dialogClose',\n (\n event: CustomEvent<{\n actionId: string;\n payload: T;\n }>\n ) => {\n onMessageAction.emit(event.detail);\n dialogRef.remove();\n }\n );\n\n dialogRef.addEventListener(\n 'dialogDismiss',\n (\n event: CustomEvent<{\n actionId: string;\n payload: T;\n }>\n ) => {\n onMessageAction.emit(event.detail);\n dialogRef.remove();\n }\n );\n\n setA11yAttributes(dialogRef, config);\n Object.assign(dialogRef, config);\n\n dialogRef.showModal();\n return onMessageAction;\n}\n\nshowMessage.info = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: iconInfo,\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.warning = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: iconWarning,\n iconColor: 'color-warning',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.error = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: iconError,\n iconColor: 'color-alarm',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.success = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: iconSuccess,\n iconColor: 'color-success',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.question = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: iconQuestion,\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { IxModalSize } from '../../modal/modal';\nimport { getCoreDelegate, resolveDelegate } from '../delegate';\nimport { TypedEvent } from '../typed-event';\n\nexport function setA11yAttributes(element: HTMLElement, config: ModalConfig) {\n const ariaDescribedby = config.ariaDescribedby;\n const ariaLabelledby = config.ariaLabelledby;\n\n delete config['ariaDescribedby'];\n delete config['ariaLabelledby'];\n\n if (ariaDescribedby) {\n element.setAttribute('aria-describedby', ariaDescribedby);\n }\n\n if (ariaLabelledby) {\n element.setAttribute('aria-labelledby', ariaLabelledby);\n }\n}\n\nexport interface ModalConfig<TReason = any, CONTENT = any> {\n animation?: boolean;\n ariaDescribedby?: string;\n ariaLabelledby?: string;\n backdrop?: boolean;\n closeOnBackdropClick?: boolean;\n beforeDismiss?: (reason?: TReason) => boolean | Promise<boolean>;\n centered?: boolean;\n container?: string | HTMLElement;\n content: CONTENT | string;\n keyboard?: boolean;\n size?: IxModalSize;\n title?: string;\n}\n\nexport interface ModalInstance<TReason = any> {\n htmlElement: HTMLIxModalElement;\n onClose: TypedEvent<TReason>;\n onDismiss: TypedEvent<TReason>;\n}\n\nfunction getIxModal(element: Element) {\n return element.closest('ix-modal');\n}\n\nexport function closeModal<TClose = any>(\n element: Element,\n closeResult: TClose\n) {\n const dialog = getIxModal(element);\n if (dialog) {\n dialog.closeModal(closeResult);\n return;\n }\n}\n\nexport function dismissModal(element: Element, dismissResult?: any) {\n const dialog = getIxModal(element);\n if (dialog) {\n dialog.dismissModal(dismissResult);\n return;\n }\n}\n\nexport async function showModal<T>(\n config: ModalConfig<T>\n): Promise<ModalInstance<T>> {\n const delegate = resolveDelegate();\n let dialogRef: HTMLIxModalElement | undefined;\n const onClose = new TypedEvent<T>();\n const onDismiss = new TypedEvent<T>();\n\n if (typeof config.content === 'string') {\n const dialog = document.createElement('ix-modal');\n dialog.innerText = config.content;\n dialogRef = await getCoreDelegate().attachView(dialog);\n }\n\n if (\n config.content instanceof HTMLElement &&\n config.content.tagName !== 'IX-MODAL'\n ) {\n const dialog = document.createElement('ix-modal');\n dialog.appendChild(config.content);\n dialogRef = await getCoreDelegate().attachView(dialog);\n }\n if (!dialogRef) {\n dialogRef = await delegate.attachView<HTMLIxModalElement>(config.content);\n }\n\n setA11yAttributes(dialogRef, config);\n Object.assign(dialogRef, config);\n\n await dialogRef.showModal();\n dialogRef.addEventListener('dialogClose', async ({ detail }: CustomEvent) => {\n onClose.emit(detail);\n await delegate.removeView(dialogRef);\n });\n\n dialogRef.addEventListener(\n 'dialogDismiss',\n async ({ detail }: CustomEvent) => {\n onDismiss.emit(detail);\n await delegate.removeView(dialogRef);\n }\n );\n\n requestAnimationFrame(() => {\n const autofocusElement = dialogRef.querySelector(\n '[autofocus],[auto-focus]'\n );\n\n if (autofocusElement) {\n (autofocusElement as HTMLIxButtonElement).focus();\n }\n });\n\n return {\n htmlElement: dialogRef,\n onClose,\n onDismiss,\n };\n}\n"],"names":["setA11yAttributes"],"mappings":";;;AAAA;;;;;;;AAOG;AAWH,MAAM,wBAAwB,CAAA;AAC5B,IAAA,MAAM,UAAU,CACd,IAAS,EACT,MAAuB,EAAA;;AAEvB,QAAA,MAAM,eAAe,GAAG,CAAA,EAAA,GAAA,MAAM,aAAN,MAAM,KAAA,MAAA,GAAA,MAAA,GAAN,MAAM,CAAE,aAAa,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAI,QAAQ,CAAC,IAAI;AAC9D,QAAA,eAAe,CAAC,WAAW,CAAC,IAAI,CAAC;AACjC,QAAA,OAAO,IAAI;;IAGb,MAAM,UAAU,CAAC,IAAS,EAAA;QACxB,IAAI,CAAC,MAAM,EAAE;;AAEhB;AAED,MAAM,YAAY,GAAG,IAAI,wBAAwB,EAAE;AACnD,IAAI,eAAe,GAAsB,YAAY;AAE/C,SAAU,yBAAyB,CAAC,QAA2B,EAAA;IACnE,eAAe,GAAG,QAAQ;AAC5B;AAEO,MAAM,eAAe,GAAG,MAAK;AAClC,IAAA,OAAO,eAAe;AACxB;MAEa,eAAe,GAAG,MAAM;;AC5CrC;;;;;;;AAOG;AAmBH,SAASA,mBAAiB,CAAC,OAAoB,EAAE,MAAsB,EAAA;AACrE,IAAA,MAAM,eAAe,GAAG,MAAM,CAAC,eAAe;AAC9C,IAAA,MAAM,cAAc,GAAG,MAAM,CAAC,cAAc;AAE5C,IAAA,OAAO,MAAM,CAAC,iBAAiB,CAAC;AAChC,IAAA,OAAO,MAAM,CAAC,gBAAgB,CAAC;IAE/B,IAAI,eAAe,EAAE;AACnB,QAAA,OAAO,CAAC,YAAY,CAAC,kBAAkB,EAAE,eAAe,CAAC;;IAG3D,IAAI,cAAc,EAAE;AACl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,MAAM,CAAC;;IAExD,IAAI,CAAC,SAAS,EAAE;QACd,SAAS,GAAG,MAAM,QAAQ,CAAC,UAAU,CAAqB,MAAM,CAAC,OAAO,CAAC;;AAG3E,IAAA,iBAAiB,CAAC,SAAS,EAAE,MAAM,CAAC;AACpC,IAAA,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC;AAEhC,IAAA,MAAM,SAAS,CAAC,SAAS,EAAE;IAC3B,SAAS,CAAC,gBAAgB,CAAC,aAAa,EAAE,OAAO,EAAE,MAAM,EAAe,KAAI;AAC1E,QAAA,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC;AACpB,QAAA,MAAM,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;AACtC,KAAC,CAAC;IAEF,SAAS,CAAC,gBAAgB,CACxB,eAAe,EACf,OAAO,EAAE,MAAM,EAAe,KAAI;AAChC,QAAA,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC;AACtB,QAAA,MAAM,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;AACtC,KAAC,CACF;IAED,qBAAqB,CAAC,MAAK;QACzB,MAAM,gBAAgB,GAAG,SAAS,CAAC,aAAa,CAC9C,0BAA0B,CAC3B;QAED,IAAI,gBAAgB,EAAE;YACnB,gBAAwC,CAAC,KAAK,EAAE;;AAErD,KAAC,CAAC;IAEF,OAAO;AACL,QAAA,WAAW,EAAE,SAAS;QACtB,OAAO;QACP,SAAS;KACV;AACH;;;;"}
1
+ {"version":3,"file":"p-BxQZld1q.js","sources":["src/components/utils/delegate.ts","src/components/utils/modal/message.ts","src/components/utils/modal/modal.ts"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nexport type DelegateConfig = {\n parentElement?: Element;\n};\n\nexport interface FrameworkDelegate {\n attachView<R = HTMLElement>(view: any, config?: DelegateConfig): Promise<R>;\n removeView(view: any): Promise<void>;\n}\n\nclass DefaultFrameworkDelegate implements FrameworkDelegate {\n async attachView<R = HTMLElement>(\n view: any,\n config?: DelegateConfig\n ): Promise<R> {\n const attachToElement = config?.parentElement ?? document.body;\n attachToElement.appendChild(view);\n return view;\n }\n\n async removeView(view: any) {\n view.remove();\n }\n}\n\nconst coreDelegate = new DefaultFrameworkDelegate();\nlet currentDelegate: FrameworkDelegate = coreDelegate;\n\nexport function registerFrameworkDelegate(delegate: FrameworkDelegate) {\n currentDelegate = delegate;\n}\n\nexport const resolveDelegate = () => {\n return currentDelegate;\n};\n\nexport const getCoreDelegate = () => coreDelegate;\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n iconError,\n iconInfo,\n iconQuestion,\n iconSuccess,\n iconWarning,\n} from '@siemens/ix-icons/icons';\nimport { getCoreDelegate } from '../delegate';\nimport { TypedEvent } from '../typed-event';\nimport { ModalConfig } from './modal';\n\nexport type MessageConfig<T> = Omit<\n ModalConfig<T, unknown>,\n 'content' | 'title'\n> &\n MessageContent;\n\nfunction setA11yAttributes(element: HTMLElement, config: MessageContent) {\n const ariaDescribedby = config.ariaDescribedby;\n const ariaLabelledby = config.ariaLabelledby;\n\n delete config['ariaDescribedby'];\n delete config['ariaLabelledby'];\n\n if (ariaDescribedby) {\n element.setAttribute('aria-describedby', ariaDescribedby);\n }\n\n if (ariaLabelledby) {\n element.setAttribute('aria-labelledby', ariaLabelledby);\n }\n}\n\nfunction createConfirmButtons(\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) {\n let actions: MessageAction[] = [];\n\n if (textCancel !== undefined) {\n actions = [\n ...actions,\n {\n id: 'cancel',\n text: textCancel,\n type: 'cancel',\n payload: payloadCancel,\n } as MessageAction,\n ];\n }\n return [\n ...actions,\n {\n id: 'okay',\n text: textOkay,\n type: 'okay',\n payload: payloadOkay,\n } as MessageAction,\n ];\n}\n\nexport type MessageAction = {\n id: string;\n type: 'button-primary' | 'button-secondary' | 'okay' | 'cancel';\n text: string;\n payload?: any;\n};\n\nexport type MessageContent = {\n icon: string;\n iconColor?: string;\n messageTitle: string;\n message: string;\n actions: MessageAction[];\n ariaLabelledby?: string;\n ariaDescribedby?: string;\n};\n\nexport async function showMessage<T>(config: MessageConfig<T>) {\n const onMessageAction = new TypedEvent<{\n actionId: string;\n payload: T;\n }>();\n const dialog = document.createElement('ix-modal');\n const header = document.createElement('ix-modal-header');\n const content = document.createElement('ix-modal-content');\n const footer = document.createElement('ix-modal-footer');\n\n setA11yAttributes(dialog, config);\n\n Object.assign(header, config);\n Object.assign(content, config);\n Object.assign(footer, config);\n\n header.innerText = config.messageTitle;\n content.innerText = config.message;\n\n config.actions.forEach(({ id, text, type, payload }) => {\n const button = document.createElement('ix-button');\n button.innerText = text;\n footer.appendChild(button);\n\n if (type === 'okay') {\n button.variant = 'primary';\n button.addEventListener('click', () =>\n dialog.closeModal({\n actionId: id,\n payload,\n })\n );\n return;\n } else if (type === 'cancel') {\n button.variant = 'primary';\n button.outline = true;\n button.addEventListener('click', () =>\n dialog.dismissModal({\n actionId: id,\n payload,\n })\n );\n return;\n }\n });\n\n dialog.appendChild(header);\n dialog.appendChild(content);\n dialog.appendChild(footer);\n\n const dialogRef =\n await getCoreDelegate().attachView<HTMLIxModalElement>(dialog);\n\n dialogRef.addEventListener(\n 'dialogClose',\n (\n event: CustomEvent<{\n actionId: string;\n payload: T;\n }>\n ) => {\n onMessageAction.emit(event.detail);\n dialogRef.remove();\n }\n );\n\n dialogRef.addEventListener(\n 'dialogDismiss',\n (\n event: CustomEvent<{\n actionId: string;\n payload: T;\n }>\n ) => {\n onMessageAction.emit(event.detail);\n dialogRef.remove();\n }\n );\n\n setA11yAttributes(dialogRef, config);\n Object.assign(dialogRef, config);\n\n dialogRef.showModal();\n return onMessageAction;\n}\n\nshowMessage.info = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: iconInfo,\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.warning = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: iconWarning,\n iconColor: 'color-warning',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.error = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: iconError,\n iconColor: 'color-alarm',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.success = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: iconSuccess,\n iconColor: 'color-success',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.question = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: iconQuestion,\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport type { IxModalSize } from '../../modal/modal.types';\nimport { getCoreDelegate, resolveDelegate } from '../delegate';\nimport { TypedEvent } from '../typed-event';\n\nexport function setA11yAttributes(element: HTMLElement, config: ModalConfig) {\n const ariaDescribedby = config.ariaDescribedby;\n const ariaLabelledby = config.ariaLabelledby;\n\n delete config['ariaDescribedby'];\n delete config['ariaLabelledby'];\n\n if (ariaDescribedby) {\n element.setAttribute('aria-describedby', ariaDescribedby);\n }\n\n if (ariaLabelledby) {\n element.setAttribute('aria-labelledby', ariaLabelledby);\n }\n}\n\nexport interface ModalConfig<TReason = any, CONTENT = any> {\n animation?: boolean;\n ariaDescribedby?: string;\n ariaLabelledby?: string;\n backdrop?: boolean;\n closeOnBackdropClick?: boolean;\n beforeDismiss?: (reason?: TReason) => boolean | Promise<boolean>;\n centered?: boolean;\n container?: string | HTMLElement;\n content: CONTENT | string;\n keyboard?: boolean;\n size?: IxModalSize;\n title?: string;\n}\n\nexport interface ModalInstance<TReason = any> {\n htmlElement: HTMLIxModalElement;\n onClose: TypedEvent<TReason>;\n onDismiss: TypedEvent<TReason>;\n}\n\nfunction getIxModal(element: Element) {\n return element.closest('ix-modal');\n}\n\nexport function closeModal<TClose = any>(\n element: Element,\n closeResult: TClose\n) {\n const dialog = getIxModal(element);\n if (dialog) {\n dialog.closeModal(closeResult);\n return;\n }\n}\n\nexport function dismissModal(element: Element, dismissResult?: any) {\n const dialog = getIxModal(element);\n if (dialog) {\n dialog.dismissModal(dismissResult);\n return;\n }\n}\n\nexport async function showModal<T>(\n config: ModalConfig<T>\n): Promise<ModalInstance<T>> {\n const delegate = resolveDelegate();\n let dialogRef: HTMLIxModalElement | undefined;\n const onClose = new TypedEvent<T>();\n const onDismiss = new TypedEvent<T>();\n\n if (typeof config.content === 'string') {\n const dialog = document.createElement('ix-modal');\n dialog.innerText = config.content;\n dialogRef = await getCoreDelegate().attachView(dialog);\n }\n\n if (\n config.content instanceof HTMLElement &&\n config.content.tagName !== 'IX-MODAL'\n ) {\n const dialog = document.createElement('ix-modal');\n dialog.appendChild(config.content);\n dialogRef = await getCoreDelegate().attachView(dialog);\n }\n if (!dialogRef) {\n dialogRef = await delegate.attachView<HTMLIxModalElement>(config.content);\n }\n\n setA11yAttributes(dialogRef, config);\n Object.assign(dialogRef, config);\n\n await dialogRef.showModal();\n dialogRef.addEventListener('dialogClose', async ({ detail }: CustomEvent) => {\n onClose.emit(detail);\n await delegate.removeView(dialogRef);\n });\n\n dialogRef.addEventListener(\n 'dialogDismiss',\n async ({ detail }: CustomEvent) => {\n onDismiss.emit(detail);\n await delegate.removeView(dialogRef);\n }\n );\n\n requestAnimationFrame(() => {\n const autofocusElement = dialogRef.querySelector(\n '[autofocus],[auto-focus]'\n );\n\n if (autofocusElement) {\n (autofocusElement as HTMLIxButtonElement).focus();\n }\n });\n\n return {\n htmlElement: dialogRef,\n onClose,\n onDismiss,\n };\n}\n"],"names":["setA11yAttributes"],"mappings":";;;AAAA;;;;;;;AAOG;AAWH,MAAM,wBAAwB,CAAA;AAC5B,IAAA,MAAM,UAAU,CACd,IAAS,EACT,MAAuB,EAAA;;AAEvB,QAAA,MAAM,eAAe,GAAG,CAAA,EAAA,GAAA,MAAM,aAAN,MAAM,KAAA,MAAA,GAAA,MAAA,GAAN,MAAM,CAAE,aAAa,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAI,QAAQ,CAAC,IAAI;AAC9D,QAAA,eAAe,CAAC,WAAW,CAAC,IAAI,CAAC;AACjC,QAAA,OAAO,IAAI;;IAGb,MAAM,UAAU,CAAC,IAAS,EAAA;QACxB,IAAI,CAAC,MAAM,EAAE;;AAEhB;AAED,MAAM,YAAY,GAAG,IAAI,wBAAwB,EAAE;AACnD,IAAI,eAAe,GAAsB,YAAY;AAE/C,SAAU,yBAAyB,CAAC,QAA2B,EAAA;IACnE,eAAe,GAAG,QAAQ;AAC5B;AAEO,MAAM,eAAe,GAAG,MAAK;AAClC,IAAA,OAAO,eAAe;AACxB;MAEa,eAAe,GAAG,MAAM;;AC5CrC;;;;;;;AAOG;AAmBH,SAASA,mBAAiB,CAAC,OAAoB,EAAE,MAAsB,EAAA;AACr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2 @@
1
- import{a as i}from"./p-B6NtGPRE.js";async function n(i){if(typeof i.isTouched==="function"){return i.isTouched()}}async function t(i){if(i.getAssociatedFormElement&&typeof i.getAssociatedFormElement==="function"){const n=await i.getAssociatedFormElement();if(!n){return false}return n.noValidate}return false}function e(i,n,t){const e=new MutationObserver(n);e.observe(i,{subtree:t===null||t===void 0?void 0:t.includeChildren,childList:t===null||t===void 0?void 0:t.includeChildren,attributes:true,attributeFilter:["class"]});return{destroy(){e.disconnect()}}}function o(i,n,t){return i.classList.contains(`${n}`)||(t?!!i.querySelector(`.${n}`):false)}function a(i,n=false){return{isInvalid:o(i,"ix-invalid",n),isInvalidByRequired:o(i,"ix-invalid--required",n),isValid:o(i,"ix-valid",n),isInfo:o(i,"ix-info",n),isWarning:o(i,"ix-warning",n)}}function s(o){return(s,l)=>{let u;let r;const{componentWillLoad:c,disconnectedCallback:d,connectedCallback:f}=s;s.connectedCallback=function(){const e=i(this);u=async()=>{const i=await t(e);if(i){return}if(e.hasValidValue&&typeof e.hasValidValue==="function"){const i=await e.hasValidValue();const t=await n(e);if(e.required){e.classList.toggle("ix-invalid--required",!i&&t)}else{e.classList.remove("ix-invalid--required")}}if(e.getValidityState&&typeof e.getValidityState==="function"){const i=await e.getValidityState();e.classList.toggle(`ix-invalid--validity-patternMismatch`,i.patternMismatch)}};e.addEventListener("checkedChange",u);e.addEventListener("valueChange",u);e.addEventListener("ixBlur",u);setTimeout(u);return f===null||f===void 0?void 0:f.call(this)};s.componentWillLoad=function(){const n=i(this);r=e(n,(()=>{const i=a(n,o===null||o===void 0?void 0:o.includeChildren);s[l].call(this,i)}),o);const t=a(n,o===null||o===void 0?void 0:o.includeChildren);s[l].call(this,t);return c===null||c===void 0?void 0:c.call(this)};s.disconnectedCallback=function(){const n=i(this);if(n&&r){r.destroy();r=null}if(n&&u){n.removeEventListener("checkedChange",u);n.removeEventListener("valueChange",u);n.removeEventListener("ixBlur",u);u=null}return d===null||d===void 0?void 0:d.call(this)}}}export{s as H,a,e as c,t as s};
2
- //# sourceMappingURL=p-zYzFdFx8.js.map
1
+ import{a as i}from"./p-DJsXFBNm.js";async function n(i){if(typeof i.isTouched==="function"){return i.isTouched()}}async function t(i){if(i.getAssociatedFormElement&&typeof i.getAssociatedFormElement==="function"){const n=await i.getAssociatedFormElement();if(!n){return false}return n.noValidate}return false}function e(i,n,t){const e=new MutationObserver(n);e.observe(i,{subtree:t===null||t===void 0?void 0:t.includeChildren,childList:t===null||t===void 0?void 0:t.includeChildren,attributes:true,attributeFilter:["class"]});return{destroy(){e.disconnect()}}}function o(i,n,t){return i.classList.contains(`${n}`)||(t?!!i.querySelector(`.${n}`):false)}function a(i,n=false){return{isInvalid:o(i,"ix-invalid",n),isInvalidByRequired:o(i,"ix-invalid--required",n),isValid:o(i,"ix-valid",n),isInfo:o(i,"ix-info",n),isWarning:o(i,"ix-warning",n)}}function s(o){return(s,l)=>{let u;let r;const{componentWillLoad:c,disconnectedCallback:d,connectedCallback:f}=s;s.connectedCallback=function(){const e=i(this);u=async()=>{const i=await t(e);if(i){return}if(e.hasValidValue&&typeof e.hasValidValue==="function"){const i=await e.hasValidValue();const t=await n(e);if(e.required){e.classList.toggle("ix-invalid--required",!i&&t)}else{e.classList.remove("ix-invalid--required")}}if(e.getValidityState&&typeof e.getValidityState==="function"){const i=await e.getValidityState();e.classList.toggle(`ix-invalid--validity-patternMismatch`,i.patternMismatch)}};e.addEventListener("checkedChange",u);e.addEventListener("valueChange",u);e.addEventListener("ixBlur",u);setTimeout(u);return f===null||f===void 0?void 0:f.call(this)};s.componentWillLoad=function(){const n=i(this);r=e(n,(()=>{const i=a(n,o===null||o===void 0?void 0:o.includeChildren);s[l].call(this,i)}),o);const t=a(n,o===null||o===void 0?void 0:o.includeChildren);s[l].call(this,t);return c===null||c===void 0?void 0:c.call(this)};s.disconnectedCallback=function(){const n=i(this);if(n&&r){r.destroy();r=null}if(n&&u){n.removeEventListener("checkedChange",u);n.removeEventListener("valueChange",u);n.removeEventListener("ixBlur",u);u=null}return d===null||d===void 0?void 0:d.call(this)}}}export{s as H,a,e as c,t as s};
2
+ //# sourceMappingURL=p-CFsAnuUU.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"p-zYzFdFx8.js","sources":["src/components/utils/input/validation.ts"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { getElement } from '@stencil/core';\nimport { HTMLIxFormComponentElement, IxFormComponent } from '.';\nimport { IxComponent } from '../internal';\n\nexport type ClassMutationObserver = {\n destroy: () => void;\n};\n\nexport async function isTouched<T>(host: IxFormComponent<T>) {\n if (typeof host.isTouched === 'function') {\n return host.isTouched();\n }\n}\n\nexport async function shouldSuppressInternalValidation<T>(\n host: IxFormComponent<T>\n) {\n if (\n host.getAssociatedFormElement &&\n typeof host.getAssociatedFormElement === 'function'\n ) {\n const form = await host.getAssociatedFormElement();\n\n if (!form) {\n return false;\n }\n\n return form.noValidate;\n }\n\n return false;\n}\n\nexport function createClassMutationObserver(\n element: HTMLElement,\n callback: () => void,\n options?: {\n includeChildren?: boolean;\n }\n): ClassMutationObserver {\n const observer = new MutationObserver(callback);\n observer.observe(element, {\n subtree: options?.includeChildren,\n childList: options?.includeChildren,\n attributes: true,\n attributeFilter: ['class'],\n });\n\n return {\n destroy() {\n observer.disconnect();\n },\n };\n}\n\nexport type ValidationResultProperty =\n | 'isInvalid'\n | 'isInvalidByRequired'\n | 'isValid'\n | 'isInfo'\n | 'isWarning';\nexport type ValidationResults = Record<ValidationResultProperty, boolean>;\n\nfunction containsClass(\n hostElement: HTMLIxFormComponentElement<unknown>,\n className: string,\n includeChildren: boolean\n) {\n return (\n hostElement.classList.contains(`${className}`) ||\n (includeChildren ? !!hostElement.querySelector(`.${className}`) : false)\n );\n}\n\nexport function checkFieldClasses(\n hostElement: HTMLIxFormComponentElement<unknown>,\n includeChildren = false\n): ValidationResults {\n return {\n isInvalid: containsClass(hostElement, 'ix-invalid', includeChildren),\n isInvalidByRequired: containsClass(\n hostElement,\n 'ix-invalid--required',\n includeChildren\n ),\n isValid: containsClass(hostElement, 'ix-valid', includeChildren),\n isInfo: containsClass(hostElement, 'ix-info', includeChildren),\n isWarning: containsClass(hostElement, 'ix-warning', includeChildren),\n };\n}\n\nexport function HookValidationLifecycle(options?: {\n includeChildren?: boolean;\n}) {\n return (proto: IxComponent, methodName: string) => {\n let checkIfRequiredFunction: (() => Promise<void>) | null;\n let classMutationObserver: ClassMutationObserver | null;\n const { componentWillLoad, disconnectedCallback, connectedCallback } =\n proto;\n\n proto.connectedCallback = function () {\n const host = getElement(\n this\n ) as unknown as HTMLIxFormComponentElement<unknown>;\n\n checkIfRequiredFunction = async () => {\n const skipValidation = await shouldSuppressInternalValidation(host);\n if (skipValidation) {\n return;\n }\n\n if (host.hasValidValue && typeof host.hasValidValue === 'function') {\n const hasValue = await host.hasValidValue();\n const touched = await isTouched(host);\n\n if (host.required) {\n host.classList.toggle('ix-invalid--required', !hasValue && touched);\n } else {\n host.classList.remove('ix-invalid--required');\n }\n }\n\n if (\n host.getValidityState &&\n typeof host.getValidityState === 'function'\n ) {\n const validityState = await host.getValidityState();\n\n host.classList.toggle(\n `ix-invalid--validity-patternMismatch`,\n validityState.patternMismatch\n );\n }\n };\n\n host.addEventListener('checkedChange', checkIfRequiredFunction);\n host.addEventListener('valueChange', checkIfRequiredFunction);\n host.addEventListener('ixBlur', checkIfRequiredFunction);\n setTimeout(checkIfRequiredFunction);\n return connectedCallback?.call(this);\n };\n\n proto.componentWillLoad = function () {\n const host = getElement(\n this\n ) as unknown as HTMLIxFormComponentElement<unknown>;\n classMutationObserver = createClassMutationObserver(\n host,\n () => {\n const result = checkFieldClasses(host, options?.includeChildren);\n proto[methodName].call(this, result);\n },\n options\n );\n const result = checkFieldClasses(host, options?.includeChildren);\n proto[methodName].call(this, result);\n return componentWillLoad?.call(this);\n };\n\n proto.disconnectedCallback = function () {\n const host = getElement(this);\n\n if (host && classMutationObserver) {\n classMutationObserver.destroy();\n classMutationObserver = null;\n }\n\n if (host && checkIfRequiredFunction) {\n host.removeEventListener('checkedChange', checkIfRequiredFunction);\n host.removeEventListener('valueChange', checkIfRequiredFunction);\n host.removeEventListener('ixBlur', checkIfRequiredFunction);\n checkIfRequiredFunction = null;\n }\n\n return disconnectedCallback?.call(this);\n };\n };\n}\n"],"names":[],"mappings":";;AAAA;;;;;;;AAOG;AASI,eAAe,SAAS,CAAI,IAAwB,EAAA;AACzD,IAAA,IAAI,OAAO,IAAI,CAAC,SAAS,KAAK,UAAU,EAAE;AACxC,QAAA,OAAO,IAAI,CAAC,SAAS,EAAE;;AAE3B;AAEO,eAAe,gCAAgC,CACpD,IAAwB,EAAA;IAExB,IACE,IAAI,CAAC,wBAAwB;AAC7B,QAAA,OAAO,IAAI,CAAC,wBAAwB,KAAK,UAAU,EACnD;AACA,QAAA,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,wBAAwB,EAAE;QAElD,IAAI,CAAC,IAAI,EAAE;AACT,YAAA,OAAO,KAAK;;QAGd,OAAO,IAAI,CAAC,UAAU;;AAGxB,IAAA,OAAO,KAAK;AACd;SAEgB,2BAA2B,CACzC,OAAoB,EACpB,QAAoB,EACpB,OAEC,EAAA;AAED,IAAA,MAAM,QAAQ,GAAG,IAAI,gBAAgB,CAAC,QAAQ,CAAC;AAC/C,IAAA,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE;AACxB,QAAA,OAAO,EAAE,OAAO,KAAA,IAAA,IAAP,OAAO,KAAP,MAAA,GAAA,MAAA,GAAA,OAAO,CAAE,eAAe;AACjC,QAAA,SAAS,EAAE,OAAO,KAAA,IAAA,IAAP,OAAO,KAAP,MAAA,GAAA,MAAA,GAAA,OAAO,CAAE,eAAe;AACnC,QAAA,UAAU,EAAE,IAAI;QAChB,eAAe,EAAE,CAAC,OAAO,CAAC;AAC3B,KAAA,CAAC;IAEF,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License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { getElement } from '@stencil/core';\nimport { HTMLIxFormComponentElement, IxFormComponent } from '.';\nimport { IxComponent } from '../internal';\n\nexport type ClassMutationObserver = {\n destroy: () => void;\n};\n\nexport async function isTouched<T>(host: IxFormComponent<T>) {\n if (typeof host.isTouched === 'function') {\n return host.isTouched();\n }\n}\n\nexport async function shouldSuppressInternalValidation<T>(\n host: IxFormComponent<T>\n) {\n if (\n host.getAssociatedFormElement &&\n typeof host.getAssociatedFormElement === 'function'\n ) {\n const form = await host.getAssociatedFormElement();\n\n if (!form) {\n return false;\n }\n\n return form.noValidate;\n }\n\n return false;\n}\n\nexport function createClassMutationObserver(\n element: HTMLElement,\n callback: () => void,\n options?: {\n includeChildren?: boolean;\n }\n): ClassMutationObserver {\n const observer = new MutationObserver(callback);\n observer.observe(element, {\n subtree: options?.includeChildren,\n childList: options?.includeChildren,\n attributes: true,\n attributeFilter: ['class'],\n });\n\n return {\n destroy() {\n observer.disconnect();\n },\n };\n}\n\nexport type ValidationResultProperty =\n | 'isInvalid'\n | 'isInvalidByRequired'\n | 'isValid'\n | 'isInfo'\n | 'isWarning';\nexport type ValidationResults = Record<ValidationResultProperty, boolean>;\n\nfunction containsClass(\n hostElement: HTMLIxFormComponentElement<unknown>,\n className: string,\n includeChildren: boolean\n) {\n return (\n hostElement.classList.contains(`${className}`) ||\n (includeChildren ? !!hostElement.querySelector(`.${className}`) : false)\n );\n}\n\nexport function checkFieldClasses(\n hostElement: HTMLIxFormComponentElement<unknown>,\n includeChildren = false\n): ValidationResults {\n return {\n isInvalid: containsClass(hostElement, 'ix-invalid', includeChildren),\n isInvalidByRequired: containsClass(\n hostElement,\n 'ix-invalid--required',\n includeChildren\n ),\n isValid: containsClass(hostElement, 'ix-valid', includeChildren),\n isInfo: containsClass(hostElement, 'ix-info', includeChildren),\n isWarning: containsClass(hostElement, 'ix-warning', includeChildren),\n };\n}\n\nexport function HookValidationLifecycle(options?: {\n includeChildren?: boolean;\n}) {\n return (proto: IxComponent, methodName: string) => {\n let checkIfRequiredFunction: (() => Promise<void>) | null;\n let classMutationObserver: ClassMutationObserver | null;\n const { componentWillLoad, disconnectedCallback, connectedCallback } =\n proto;\n\n proto.connectedCallback = function () {\n const host = getElement(\n this\n ) as unknown as HTMLIxFormComponentElement<unknown>;\n\n checkIfRequiredFunction = async () => {\n const skipValidation = await shouldSuppressInternalValidation(host);\n if (skipValidation) {\n return;\n }\n\n if (host.hasValidValue && typeof host.hasValidValue === 'function') {\n const hasValue = await host.hasValidValue();\n const touched = await isTouched(host);\n\n if (host.required) {\n host.classList.toggle('ix-invalid--required', !hasValue && touched);\n } else {\n host.classList.remove('ix-invalid--required');\n }\n }\n\n if (\n host.getValidityState &&\n typeof host.getValidityState === 'function'\n ) {\n const validityState = await host.getValidityState();\n\n host.classList.toggle(\n `ix-invalid--validity-patternMismatch`,\n validityState.patternMismatch\n );\n }\n };\n\n host.addEventListener('checkedChange', checkIfRequiredFunction);\n host.addEventListener('valueChange', checkIfRequiredFunction);\n host.addEventListener('ixBlur', checkIfRequiredFunction);\n setTimeout(checkIfRequiredFunction);\n return connectedCallback?.call(this);\n };\n\n proto.componentWillLoad = function () {\n const host = getElement(\n this\n ) as unknown as HTMLIxFormComponentElement<unknown>;\n classMutationObserver = createClassMutationObserver(\n host,\n () => {\n const result = checkFieldClasses(host, options?.includeChildren);\n proto[methodName].call(this, result);\n },\n options\n );\n const result = checkFieldClasses(host, options?.includeChildren);\n proto[methodName].call(this, result);\n return componentWillLoad?.call(this);\n };\n\n proto.disconnectedCallback = function () {\n const host = getElement(this);\n\n if (host && classMutationObserver) {\n classMutationObserver.destroy();\n classMutationObserver = null;\n }\n\n if (host && checkIfRequiredFunction) {\n host.removeEventListener('checkedChange', checkIfRequiredFunction);\n host.removeEventListener('valueChange', checkIfRequiredFunction);\n host.removeEventListener('ixBlur', checkIfRequiredFunction);\n checkIfRequiredFunction =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KAAP,MAAA,GAAA,MAAA,GAAA,OAAO,CAAE,eAAe,CAAC;YAChE,KAAK,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC;YACpC,OAAO,iBAAiB,KAAjB,IAAA,IAAA,iBAAiB,KAAjB,MAAA,GAAA,MAAA,GAAA,iBAAiB,CAAE,IAAI,CAAC,IAAI,CAAC;AACtC,SAAC;QAED,KAAK,CAAC,oBAAoB,GAAG,YAAA;AAC3B,YAAA,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;AAE7B,YAAA,IAAI,IAAI,IAAI,qBAAqB,EAAE;gBACjC,qBAAqB,CAAC,OAAO,EAAE;gBAC/B,qBAAqB,GAAG,IAAI;;AAG9B,YAAA,IAAI,IAAI,IAAI,uBAAuB,EAAE;AACnC,gBAAA,IAAI,CAAC,mBAAmB,CAAC,eAAe,EAAE,uBAAuB,CAAC;AAClE,gBAAA,IAAI,CAAC,mBAAmB,CAAC,aAAa,EAAE,uBAAuB,CAAC;AAChE,gBAAA,IAAI,CAAC,mBAAmB,CAAC,QAAQ,EAAE,uBAAuB,CAAC;gBAC3D,uBAAuB,GAAG,IAAI;;YAGhC,OAAO,oBAAoB,KAApB,IAAA,IAAA,oBAAoB,KAApB,MAAA,GAAA,MAAA,GAAA,oBAAoB,CAAE,IAAI,CAAC,IAAI,CAAC;AACzC,SAAC;AACH,KAAC;AACH;;;;"}
@@ -1,2 +1,2 @@
1
- import{a as t}from"./p-B6NtGPRE.js";const n={target:"window",defaultEnabled:true};function e(t,e={}){const i=Object.assign(Object.assign({},n),e);let o;const s=t=>{o(t)};const c={on:t=>{o=t},isEnabled:i.defaultEnabled,enable:n=>{c.isEnabled=n;if(n){addEventListener(t,s)}else{removeEventListener(t,s)}},destroy:()=>{c.enable(false)}};c.enable(!!i.defaultEnabled);return c}function i(n,i){return(o,s)=>{const{componentWillLoad:c,componentWillRender:r,disconnectedCallback:_}=o;if(i){o.componentWillRender=function(){var n;const e=t(this);(n=e[`__ix__${s}`])===null||n===void 0?void 0:n.enable(i(this));return r&&r.call(this)}}o.componentWillLoad=function(){const i=e(n);const o=t(this);const r=this[s];o[`__ix__${s}`]=i;i.on(r.bind(this));return c&&c.call(this)};o.disconnectedCallback=function(){var n;const e=t(this);if(e&&e[`__ix__${s}`]){(n=e[`__ix__${s}`])===null||n===void 0?void 0:n.destroy();e[`__ix__${s}`]=null}return _&&_.call(this)}}}export{i as O};
2
- //# sourceMappingURL=p-Bko0CTxK.js.map
1
+ import{a as t}from"./p-DJsXFBNm.js";const n={target:"window",defaultEnabled:true};function e(t,e={}){const i=Object.assign(Object.assign({},n),e);let o;const s=t=>{o(t)};const c={on:t=>{o=t},isEnabled:i.defaultEnabled,enable:n=>{c.isEnabled=n;if(n){addEventListener(t,s)}else{removeEventListener(t,s)}},destroy:()=>{c.enable(false)}};c.enable(!!i.defaultEnabled);return c}function i(n,i){return(o,s)=>{const{componentWillLoad:c,componentWillRender:r,disconnectedCallback:_}=o;if(i){o.componentWillRender=function(){var n;const e=t(this);(n=e[`__ix__${s}`])===null||n===void 0?void 0:n.enable(i(this));return r&&r.call(this)}}o.componentWillLoad=function(){const i=e(n);const o=t(this);const r=this[s];o[`__ix__${s}`]=i;i.on(r.bind(this));return c&&c.call(this)};o.disconnectedCallback=function(){var n;const e=t(this);if(e&&e[`__ix__${s}`]){(n=e[`__ix__${s}`])===null||n===void 0?void 0:n.destroy();e[`__ix__${s}`]=null}return _&&_.call(this)}}}export{i as O};
2
+ //# sourceMappingURL=p-CpY7qbN7.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"p-Bko0CTxK.js","sources":["src/components/utils/listener.ts"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { getElement } from '@stencil/core';\nimport { HTMLStencilElement } from '@stencil/core/internal';\n\nexport type ListenerOptions = {\n target?: 'window';\n defaultEnabled?: boolean;\n};\n\ntype HostListener = {\n on: (onEventCallback: any) => void;\n isEnabled: boolean | undefined;\n enable: (state: boolean) => void;\n destroy: () => void;\n};\n\nconst defaultOptions: ListenerOptions = {\n target: 'window',\n defaultEnabled: true,\n};\n\nexport function createListener(\n event: string,\n options: ListenerOptions = {}\n): HostListener {\n const opts = {\n ...defaultOptions,\n ...options,\n };\n\n let callback: any;\n const onEvent = (event: Event) => {\n callback(event);\n };\n\n const resultObject = {\n on: (onEventCallback: any) => {\n callback = onEventCallback;\n },\n\n isEnabled: opts.defaultEnabled,\n\n enable: (state: boolean) => {\n resultObject.isEnabled = state;\n\n if (state) {\n addEventListener(event, onEvent);\n } else {\n removeEventListener(event, onEvent);\n }\n },\n\n destroy: () => {\n resultObject.enable(false);\n },\n };\n\n resultObject.enable(!!opts.defaultEnabled);\n return resultObject;\n}\n\ntype HTMLStencilElementWithListener = HTMLStencilElement & {\n [K in `__ix__${string}`]?: HostListener | null;\n};\n\nexport function OnListener<T>(event: string, fnExp?: (self: T) => boolean) {\n return (proto: any, methodName: string) => {\n const { componentWillLoad, componentWillRender, disconnectedCallback } =\n proto;\n\n if (fnExp) {\n proto.componentWillRender = function () {\n const host = getElement(this) as HTMLStencilElementWithListener;\n host[`__ix__${methodName}`]?.enable(fnExp(this));\n return componentWillRender && componentWillRender.call(this);\n };\n }\n\n proto.componentWillLoad = function () {\n const listener = createListener(event);\n const host = getElement(this) as HTMLStencilElementWithListener;\n const method = this[methodName];\n\n host[`__ix__${methodName}`] = listener;\n\n listener.on(method.bind(this));\n return componentWillLoad && componentWillLoad.call(this);\n };\n\n proto.disconnectedCallback = function () {\n const host = getElement(this) as HTMLStencilElementWithListener;\n\n if (host && host[`__ix__${methodName}`]) {\n host[`__ix__${methodName}`]?.destroy();\n host[`__ix__${methodName}`] = null;\n }\n\n return disconnectedCallback && disconnectedCallback.call(this);\n };\n };\n}\n"],"names":[],"mappings":";;AAAA;;;;;;;AAOG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/listener.ts"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { getElement } from '@stencil/core';\nimport { HTMLStencilElement } from '@stencil/core/internal';\n\nexport type ListenerOptions = {\n target?: 'window';\n defaultEnabled?: boolean;\n};\n\ntype HostListener = {\n on: (onEventCallback: any) => void;\n isEnabled: boolean | undefined;\n enable: (state: boolean) => void;\n destroy: () => void;\n};\n\nconst defaultOptions: ListenerOptions = {\n target: 'window',\n defaultEnabled: true,\n};\n\nexport function createListener(\n event: string,\n options: ListenerOptions = {}\n): HostListener {\n const opts = {\n ...defaultOptions,\n ...options,\n };\n\n let callback: any;\n const onEvent = (event: Event) => {\n callback(event);\n };\n\n const resultObject = {\n on: (onEventCallback: any) => {\n callback = onEventCallback;\n },\n\n isEnabled: opts.defaultEnabled,\n\n enable: (state: boolean) => {\n resultObject.isEnabled = state;\n\n if (state) {\n addEventListener(event, onEvent);\n } else {\n removeEventListener(event, onEvent);\n }\n },\n\n destroy: () => {\n resultObject.enable(false);\n },\n };\n\n resultObject.enable(!!opts.defaultEnabled);\n return resultObject;\n}\n\ntype HTMLStencilElementWithListener = HTMLStencilElement & {\n [K in `__ix__${string}`]?: HostListener | null;\n};\n\nexport function OnListener<T>(event: string, fnExp?: (self: T) => boolean) {\n return (proto: any, methodName: string) => {\n const { componentWillLoad, componentWillRender, disconnectedCallback } =\n proto;\n\n if (fnExp) {\n proto.componentWillRender = function () {\n const host = getElement(this) as HTMLStencilElementWithListener;\n host[`__ix__${methodName}`]?.enable(fnExp(this));\n return componentWillRender && componentWillRender.call(this);\n };\n }\n\n proto.componentWillLoad = function () {\n const listener = createListener(event);\n const host = getElement(this) as HTMLStencilElementWithListener;\n const method = this[methodName];\n\n host[`__ix__${methodName}`] = listener;\n\n listener.on(method.bind(this));\n return componentWillLoad && componentWillLoad.call(this);\n };\n\n proto.disconnectedCallback = function () {\n const host = getElement(this) as HTMLStencilElementWithListener;\n\n if (host && host[`__ix__${methodName}`]) {\n host[`__ix__${methodName}`]?.destroy();\n host[`__ix__${methodName}`] = null;\n }\n\n return disconnectedCallback && disconnectedCallback.call(this);\n };\n };\n}\n"],"names":[],"mappings":";;AAAA;;;;;;;AAOG;AAiBH,MAAM,cAAc,GAAoB;AACtC,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,cAAc,EAAE,IAAI;CACrB;SAEe,cAAc,CAC5B,KAAa,EACb,UAA2B,EAAE,EAAA;AAE7B,IAAA,MAAM,IAAI,GACL,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,cAAc,CACd,EAAA,OAAO,CACX;AAED,IAAA,IAAI,QAAa;AACjB,IAAA,MAAM,OAAO,GAAG,CAAC,KAAY,KAAI;QAC/B,QAAQ,CAAC,KAAK,CAAC;AACjB,KAAC;AAED,IAAA,MAAM,YAAY,GAAG;AACnB,QAAA,EAAE,EAAE,CAAC,eAAoB,KAAI;YAC3B,QAAQ,GAAG,eAAe;SAC3B;QAED,SAAS,EAAE,IAAI,CAAC,cAAc;AAE9B,QAAA,MAAM,EAAE,CAAC,KAAc,KAAI;AACzB,YAAA,YAAY,CAAC,SAAS,GAAG,KAAK;YAE9B,IAAI,KAAK,EAAE;AACT,gBAAA,gBAAgB,CAAC,KAAK,EAAE,OAAO,CAAC;;iBAC3B;AACL,gBAAA,mBAAmB,CAAC,KAAK,EAAE,OAAO,CAAC;;SAEtC;QAED,OAAO,EAAE,MAAK;AACZ,YAAA,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC;SAC3B;KACF;IAED,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC;AAC1C,IAAA,OAAO,YAAY;AACrB;AAMgB,SAAA,UAAU,CAAI,KAAa,EAAE,KAA4B,EAAA;AACvE,IAAA,OAAO,CAAC,KAAU,EAAE,UAAkB,KAA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IAAI,CAAC,CAAS,MAAA,EAAA,UAAU,EAAE,CAAC,GAAG,IAAI;;YAGpC,OAAO,oBAAoB,IAAI,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC;AAChE,SAAC;AACH,KAAC;AACH;;;;"}
@@ -1,2 +1,2 @@
1
- import{r as t,c as e,f as o,h as s,a as i,H as n}from"./p-B6NtGPRE.js";import{p as a}from"./p-DLTnniMb.js";const r=".text-xs{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.625rem;font-weight:400;line-height:1.4em;color:var(--theme-color-std-text)}.text-s{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text)}.text-caption{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}.text-caption-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1em;color:var(--theme-color-std-text)}.text-default{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.429em;color:var(--theme-color-std-text)}.text-default-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.143em;color:var(--theme-color-std-text)}.text-default-title{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.429em;color:var(--theme-color-std-text)}.text-default-title-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.143em;color:var(--theme-color-std-text)}.text-l{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text)}.text-l-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.25em;color:var(--theme-color-std-text)}.text-l-title{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}.text-l-title-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.25em;color:var(--theme-color-std-text)}.text-h2{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:700;line-height:1.455em;color:var(--theme-color-std-text)}.text-xl{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:400;line-height:1.091em;color:var(--theme-color-std-text)}a{color:var(--theme-color-primary)}:host{display:block;background-color:var(--theme-nav-overlay--background);padding:0.75rem 1rem 1rem 2rem;flex-grow:1;position:absolute;width:100%;height:100%}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .settings-header{display:flex;justify-content:space-between;flex-direction:row;align-items:center;height:2rem;margin-bottom:0.5rem}:host .settings-header h2{color:var(--theme-nav-overlay-header--color);margin-bottom:1rem}:host ix-tabs{margin-bottom:1.5rem}:host .settings-tabs{margin-bottom:1.5rem}";const l=class{constructor(o){t(this,o);this.tabChange=e(this,"tabChange",7);this.close=e(this,"close",7);this.label="Settings";this.show=false}updateTab(t){h(this,t)}componentWillLoad(){f(this)}componentDidLoad(){o(this.el)}render(){return s(g,{key:"948af8fed069f5e40be7d3b94fd076cc646d12d0",context:this})}get el(){return i(this)}static get watchers(){return{activeTabLabel:["updateTab"]}}};l.style=r;function m(t){return Array.from(t.el.querySelectorAll(t instanceof l?"ix-menu-settings-item":"ix-menu-about-item"))}function h(t,e){const{defaultPrevented:o}=t.tabChange.emit(e);if(o){return}t.activeTabLabel=e;t.items.forEach((e=>{e.style.display="none";if(e.label===t.activeTabLabel){e.style.display="block"}}))}function f(t){t.items=m(t);if(t.items.length){const e=t.activeTabLabel||t.items[0].label;if(e){h(t,e)}}t.items.forEach((e=>{e.addEventListener("labelChange",(e=>{t.items=m(t);if(e.detail.oldLabel===t.activeTabLabel){t.activeTabLabel=e.detail.newLabel}}))}))}const c=t=>t.items.map((({label:e})=>s("ix-tab-item",{selected:e===t.activeTabLabel,onTabClick:t=>t.preventDefault(),onClick:()=>{if(e){h(t,e)}}},e)));const g=({context:t})=>{const e=t.items.findIndex((e=>e.label===t.activeTabLabel));return s(n,{slot:t instanceof l?"ix-menu-settings":"ix-menu-about",class:{show:t.show}},s("div",{class:t instanceof l?"settings-header":"about-header"},s("h2",{class:"text-h2"},t.label),s("ix-icon-button",{ghost:true,size:"24",icon:a,onClick:e=>t.close.emit({name:t instanceof l?"ix-menu-settings":"ix-menu-about",nativeEvent:e})})),s("ix-tabs",{selected:e!==-1?e:0},c(t)),s("slot",null))};export{g as M,l as a,f as i,h as s};
2
- //# sourceMappingURL=p-DeEsc3nL.js.map
1
+ import{r as t,c as e,f as o,h as s,a as i,H as n}from"./p-DJsXFBNm.js";import{p as a}from"./p-DLTnniMb.js";const r=".text-xs{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.625rem;font-weight:400;line-height:1.4em;color:var(--theme-color-std-text)}.text-s{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text)}.text-caption{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}.text-caption-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1em;color:var(--theme-color-std-text)}.text-default{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.429em;color:var(--theme-color-std-text)}.text-default-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.143em;color:var(--theme-color-std-text)}.text-default-title{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.429em;color:var(--theme-color-std-text)}.text-default-title-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.143em;color:var(--theme-color-std-text)}.text-l{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text)}.text-l-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.25em;color:var(--theme-color-std-text)}.text-l-title{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}.text-l-title-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.25em;color:var(--theme-color-std-text)}.text-h2{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:700;line-height:1.455em;color:var(--theme-color-std-text)}.text-xl{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:400;line-height:1.091em;color:var(--theme-color-std-text)}a{color:var(--theme-color-primary)}:host{display:block;background-color:var(--theme-nav-overlay--background);padding:0.75rem 1rem 1rem 2rem;flex-grow:1;position:absolute;width:100%;height:100%}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .settings-header{display:flex;justify-content:space-between;flex-direction:row;align-items:center;height:2rem;margin-bottom:0.5rem}:host .settings-header h2{color:var(--theme-nav-overlay-header--color);margin-bottom:1rem}:host ix-tabs{margin-bottom:1.5rem}:host .settings-tabs{margin-bottom:1.5rem}";const l=class{constructor(o){t(this,o);this.tabChange=e(this,"tabChange",7);this.close=e(this,"close",7);this.label="Settings";this.show=false}updateTab(t){h(this,t)}componentWillLoad(){f(this)}componentDidLoad(){o(this.el)}render(){return s(g,{key:"a59dd5a81b91ff4ae7f516cb192700bffaee3f84",context:this})}get el(){return i(this)}static get watchers(){return{activeTabLabel:["updateTab"]}}};l.style=r;function m(t){return Array.from(t.el.querySelectorAll(t instanceof l?"ix-menu-settings-item":"ix-menu-about-item"))}function h(t,e){const{defaultPrevented:o}=t.tabChange.emit(e);if(o){return}t.activeTabLabel=e;t.items.forEach((e=>{e.style.display="none";if(e.label===t.activeTabLabel){e.style.display="block"}}))}function f(t){t.items=m(t);if(t.items.length){const e=t.activeTabLabel||t.items[0].label;if(e){h(t,e)}}t.items.forEach((e=>{e.addEventListener("labelChange",(e=>{t.items=m(t);if(e.detail.oldLabel===t.activeTabLabel){t.activeTabLabel=e.detail.newLabel}}))}))}const c=t=>t.items.map((({label:e})=>s("ix-tab-item",{selected:e===t.activeTabLabel,onTabClick:t=>t.preventDefault(),onClick:()=>{if(e){h(t,e)}}},e)));const g=({context:t})=>{const e=t.items.findIndex((e=>e.label===t.activeTabLabel));return s(n,{slot:t instanceof l?"ix-menu-settings":"ix-menu-about",class:{show:t.show}},s("div",{class:t instanceof l?"settings-header":"about-header"},s("h2",{class:"text-h2"},t.label),s("ix-icon-button",{ghost:true,size:"24",icon:a,onClick:e=>t.close.emit({name:t instanceof l?"ix-menu-settings":"ix-menu-about",nativeEvent:e})})),s("ix-tabs",{selected:e!==-1?e:0},c(t)),s("slot",null))};export{g as M,l as a,f as i,h as s};
2
+ //# sourceMappingURL=p-Cpl-a_ti.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"p-DeEsc3nL.js","sources":["src/components/menu-settings/menu-settings.scss?tag=ix-menu-settings&encapsulation=shadow","src/components/menu-settings/menu-settings.tsx","src/components/utils/menu-tabs/menu-tabs-utils.ts","src/components/utils/menu-tabs/menu-tabs-fc.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'common-variables';\n@import 'legacy/fonts';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n\n display: block;\n background-color: var(--theme-nav-overlay--background);\n padding: $medium-space $default-space $default-space $x-large-space;\n flex-grow: 1;\n position: absolute;\n width: 100%;\n height: 100%;\n\n .settings-header {\n display: flex;\n justify-content: space-between;\n flex-direction: row;\n align-items: center;\n height: $x-large-space;\n margin-bottom: $small-space;\n\n h2 {\n color: var(--theme-nav-overlay-header--color);\n margin-bottom: 1rem;\n }\n }\n\n ix-tabs {\n margin-bottom: 1.5rem;\n }\n\n .settings-tabs {\n margin-bottom: $large-space;\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n forceUpdate,\n h,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\nimport { MenuTabs } from '../utils/menu-tabs/menu-tabs-fc';\nimport {\n CustomCloseEvent,\n initialize,\n setTab,\n} from '../utils/menu-tabs/menu-tabs-utils';\n\n@Component({\n tag: 'ix-menu-settings',\n styleUrl: 'menu-settings.scss',\n shadow: true,\n})\nexport class MenuSettings {\n @Element() el!: HTMLIxMenuSettingsElement;\n\n /**\n * Active tab\n */\n // eslint-disable-next-line @stencil-community/strict-mutable\n @Prop({ mutable: true }) activeTabLabel?: string;\n\n /**\n * Label of first tab\n */\n @Prop() label = 'Settings';\n\n /** @internal */\n @Prop() show = false;\n\n /**\n * Active tab changed\n * @since 3.0.0\n */\n @Event() tabChange!: EventEmitter<string>;\n\n /**\n * Popover closed\n */\n @Event() close!: EventEmitter<CustomCloseEvent>;\n\n @State() items!: HTMLIxMenuSettingsItemElement[];\n\n @Watch('activeTabLabel')\n updateTab(label: string) {\n setTab(this, label);\n }\n\n componentWillLoad() {\n initialize(this);\n }\n\n componentDidLoad() {\n forceUpdate(this.el);\n }\n\n render() {\n return <MenuTabs context={this} />;\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { MenuAbout } from '../../menu-about/menu-about';\nimport { MenuSettings } from '../../menu-settings/menu-settings';\n\nfunction getItems(\n context: MenuSettings | MenuAbout\n): HTMLIxMenuSettingsItemElement[] | HTMLIxMenuAboutItemElement[] {\n return Array.from(\n context.el.querySelectorAll(\n context instanceof MenuSettings\n ? 'ix-menu-settings-item'\n : 'ix-menu-about-item'\n )\n );\n}\n\nexport function setTab(context: MenuSettings | MenuAbout, label: string) {\n const { defaultPrevented } = context.tabChange.emit(label);\n\n if (defaultPrevented) {\n return;\n }\n\n context.activeTabLabel = label;\n context.items.forEach((i) => {\n i.style.display = 'none';\n if (i.label === context.activeTabLabel) {\n i.style.display = 'block';\n }\n });\n}\n\nexport function initialize(context: MenuSettings | MenuAbout) {\n context.items = getItems(context);\n\n if (context.items.length) {\n const selectedLabel = context.activeTabLabel || context.items[0].label;\n if (selectedLabel) {\n setTab(context, selectedLabel);\n }\n }\n\n context.items.forEach((item) => {\n item.addEventListener('labelChange', (e: CustomEvent) => {\n context.items = getItems(context);\n\n if (e.detail.oldLabel === context.activeTabLabel) {\n context.activeTabLabel = e.detail.newLabel;\n }\n });\n });\n}\n\nexport interface CustomLabelChangeEvent {\n name: string;\n oldLabel: string;\n newLabel: string;\n}\n\nexport interface CustomCloseEvent {\n nativeEvent: MouseEvent;\n name: string;\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { FunctionalComponent, h, Host } from '@stencil/core';\nimport { setTab } from './menu-tabs-utils';\nimport { MenuAbout } from '../../menu-about/menu-about';\nimport { MenuSettings } from '../../menu-settings/menu-settings';\nimport { iconClose } from '@siemens/ix-icons/icons';\n\ninterface MenuTabsProps {\n context: MenuSettings | MenuAbout;\n}\n\nconst getTabItems = (context: MenuSettings | MenuAbout) => {\n return context.items.map(({ label }) => {\n return (\n <ix-tab-item\n selected={label === context.activeTabLabel}\n onTabClick={(e) => e.preventDefault()}\n onClick={() => {\n if (label) {\n setTab(context, label);\n }\n }}\n >\n {label}\n </ix-tab-item>\n );\n });\n};\n\nexport const MenuTabs: FunctionalComponent<MenuTabsProps> = ({ context }) => {\n const selectedIndex = context.items.findIndex(\n (item) => item.label === context.activeTabLabel\n );\n return (\n <Host\n slot={\n context instanceof MenuSettings ? 'ix-menu-settings' : 'ix-menu-about'\n }\n class={{\n show: context.show,\n }}\n >\n <div\n class={\n context instanceof MenuSettings ? 'settings-header' : 'about-header'\n }\n >\n <h2 class=\"text-h2\">{context.label}</h2>\n <ix-icon-button\n ghost\n size=\"24\"\n icon={iconClose}\n onClick={(e) =>\n context.close.emit({\n name:\n context instanceof MenuSettings\n ? 'ix-menu-settings'\n : 'ix-menu-about',\n nativeEvent: e,\n })\n }\n ></ix-icon-button>\n </div>\n <ix-tabs selected={selectedIndex !== -1 ? selectedIndex : 0}>\n {getTabItems(context)}\n </ix-tabs>\n <slot></slot>\n </Host>\n );\n};\n"],"names":[],"mappings":";;;AAAA,MAAM,eAAe,GAAG,sjIAAsjI;;MCgCjkI,YAAY,GAAA,MAAA;AALzB,IAAA,WAAA,CAAA,OAAA,EAAA;;;;AAcE;;AAEG;AACK,QAAA,IAAK,CAAA,KAAA,GAAG,UAAU;;AAGlB,QAAA,IAAI,CAAA,IAAA,GAAG,KAAK;AA+BrB;AAfC,IAAA,SAAS,CAAC,KAAa,EAAA;AACrB,QAAA,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC;;IAGr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AO,YAAY,YAAY,GAAG,iBAAiB,GAAG,cAAc,EAAA;AAGtE,YAAA,CAAA,CAAA,IAAA,EAAA,EAAI,KAAK,EAAC,SAAS,IAAE,OAAO,CAAC,KAAK,CAAM;YACxC,CACE,CAAA,gBAAA,EAAA,EAAA,KAAK,QACL,IAAI,EAAC,IAAI,EACT,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,CAAC,CAAC,KACT,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;oBACjB,IAAI,EACF,OAAO,YAAY;AACjB,0BAAE;AACF,0BAAE,eAAe;AACrB,oBAAA,WAAW,EAAE,CAAC;AACf,iBAAA,CAAC,GAEY,CACd;AACN,QAAA,CAAA,CAAA,SAAA,EAAA,EAAS,QAAQ,EAAE,aAAa,KAAK,EAAE,GAAG,aAAa,GAAG,CAAC,EAAA,EACxD,WAAW,CAAC,OAAO,CAAC,CACb;QACV,CAAa,CAAA,MAAA,EAAA,IAAA,CAAA,CACR;AAEX;;;;"}
1
+ {"version":3,"file":"p-Cpl-a_ti.js","sources":["src/components/menu-settings/menu-settings.scss?tag=ix-menu-settings&encapsulation=shadow","src/components/menu-settings/menu-settings.tsx","src/components/utils/menu-tabs/menu-tabs-utils.ts","src/components/utils/menu-tabs/menu-tabs-fc.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'common-variables';\n@import 'legacy/fonts';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n\n display: block;\n background-color: var(--theme-nav-overlay--background);\n padding: $medium-space $default-space $default-space $x-large-space;\n flex-grow: 1;\n position: absolute;\n width: 100%;\n height: 100%;\n\n .settings-header {\n display: flex;\n justify-content: space-between;\n flex-direction: row;\n align-items: center;\n height: $x-large-space;\n margin-bottom: $small-space;\n\n h2 {\n color: var(--theme-nav-overlay-header--color);\n margin-bottom: 1rem;\n }\n }\n\n ix-tabs {\n margin-bottom: 1.5rem;\n }\n\n .settings-tabs {\n margin-bottom: $large-space;\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n forceUpdate,\n h,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\nimport { MenuTabs } from '../utils/menu-tabs/menu-tabs-fc';\nimport {\n CustomCloseEvent,\n initialize,\n setTab,\n} from '../utils/menu-tabs/menu-tabs-utils';\n\n@Component({\n tag: 'ix-menu-settings',\n styleUrl: 'menu-settings.scss',\n shadow: true,\n})\nexport class MenuSettings {\n @Element() el!: HTMLIxMenuSettingsElement;\n\n /**\n * Active tab\n */\n // eslint-disable-next-line @stencil-community/strict-mutable\n @Prop({ mutable: true }) activeTabLabel?: string;\n\n /**\n * Label of first tab\n */\n @Prop() label = 'Settings';\n\n /** @internal */\n @Prop() show = false;\n\n /**\n * Active tab changed\n * @since 3.0.0\n */\n @Event() tabChange!: EventEmitter<string>;\n\n /**\n * Popover closed\n */\n @Event() close!: EventEmitter<CustomCloseEvent>;\n\n @State() items!: HTMLIxMenuSettingsItemElement[];\n\n @Watch('activeTabLabel')\n updateTab(label: string) {\n setTab(this, label);\n }\n\n componentWillLoad() {\n initialize(this);\n }\n\n componentDidLoad() {\n forceUpdate(this.el);\n }\n\n render() {\n return <MenuTabs context={this} />;\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { MenuAbout } from '../../menu-about/menu-about';\nimport { MenuSettings } from '../../menu-settings/menu-settings';\n\nfunction getItems(\n context: MenuSettings | MenuAbout\n): HTMLIxMenuSettingsItemElement[] | HTMLIxMenuAboutItemElement[] {\n return Array.from(\n context.el.querySelectorAll(\n context instanceof MenuSettings\n ? 'ix-menu-settings-item'\n : 'ix-menu-about-item'\n )\n );\n}\n\nexport function setTab(context: MenuSettings | MenuAbout, label: string) {\n const { defaultPrevented } = context.tabChange.emit(label);\n\n if (defaultPrevented) {\n return;\n }\n\n context.activeTabLabel = label;\n context.items.forEach((i) => {\n i.style.display = 'none';\n if (i.label === context.activeTabLabel) {\n i.style.display = 'block';\n }\n });\n}\n\nexport function initialize(context: MenuSettings | MenuAbout) {\n context.items = getItems(context);\n\n if (context.items.length) {\n const selectedLabel = context.activeTabLabel || context.items[0].label;\n if (selectedLabel) {\n setTab(context, selectedLabel);\n }\n }\n\n context.items.forEach((item) => {\n item.addEventListener('labelChange', (e: CustomEvent) => {\n context.items = getItems(context);\n\n if (e.detail.oldLabel === context.activeTabLabel) {\n context.activeTabLabel = e.detail.newLabel;\n }\n });\n });\n}\n\nexport interface CustomLabelChangeEvent {\n name: string;\n oldLabel: string;\n newLabel: string;\n}\n\nexport interface CustomCloseEvent {\n nativeEvent: MouseEvent;\n name: string;\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { FunctionalComponent, h, Host } from '@stencil/core';\nimport { setTab } from './menu-tabs-utils';\nimport { MenuAbout } from '../../menu-about/menu-about';\nimport { MenuSettings } from '../../menu-settings/menu-settings';\nimport { iconClose } from '@siemens/ix-icons/icons';\n\ninterface MenuTabsProps {\n context: MenuSettings | MenuAbout;\n}\n\nconst getTabItems = (context: MenuSettings | MenuAbout) => {\n return context.items.map(({ label }) => {\n return (\n <ix-tab-item\n selected={label === context.activeTabLabel}\n onTabClick={(e) => e.preventDefault()}\n onClick={() => {\n if (label) {\n setTab(context, label);\n }\n }}\n >\n {label}\n </ix-tab-item>\n );\n });\n};\n\nexport const MenuTabs: FunctionalComponent<MenuTabsProps> = ({ context }) => {\n const selectedIndex = context.items.findIndex(\n (item) => item.label === context.activeTabLabel\n );\n return (\n <Host\n slot={\n context instanceof MenuSettings ? 'ix-menu-settings' : 'ix-menu-about'\n }\n class={{\n show: context.show,\n }}\n >\n <div\n class={\n context instanceof MenuSettings ? 'settings-header' : 'about-header'\n }\n >\n <h2 class=\"text-h2\">{context.label}</h2>\n <ix-icon-button\n ghost\n size=\"24\"\n icon={iconClose}\n onClick={(e) =>\n context.close.emit({\n name:\n context instanceof MenuSettings\n ? 'ix-menu-settings'\n : 'ix-menu-about',\n nativeEvent: e,\n })\n }\n ></ix-icon-button>\n </div>\n <ix-tabs selected={selectedIndex !== -1 ? selectedIndex : 0}>\n {getTabItems(context)}\n </ix-tabs>\n <slot></slot>\n </Host>\n );\n};\n"],"names":[],"mappings":";;;AAAA,MAAM,eAAe,GAAG,sjIAAsjI;;MCgCjkI,YAAY,GAAA,MAAA;AALzB,IAAA,WAAA,CAAA,OAAA,EAAA;;;;AAcE;;AAEG;AACK,QAAA,IAAK,CAAA,KAAA,GAAG,UAAU;;AAGlB,QAAA,IAAI,CAAA,IAAA,GAAG,KAAK;AA+BrB;AAfC,IAAA,SAAS,CAAC,KAAa,EAAA;AACrB,QAAA,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC;;IAGrB,iBAAiB,GAAA;QACf,UAAU,CAAC,IAAI,CAAC;;IAGlB,gBAAgB,GAAA;AACd,QAAA,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;;IAGtB,MAAM,GAAA;AACJ,QAAA,OAAO,EAAC,QAAQ,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,OAAO,EAAE,IAAI,GAAI;;;;;;;;;AC5EtC;;;;;;;AAOG;AAKH,SAAS,QAAQ,CACf,OAAiC,EAAA;AAEjC,IAAA,OAAO,KAAK,CAAC,IAAI,CACf,OAAO,CAAC,EAAE,CAAC,gBAAgB,CACzB,OAAO,YAAY;AACjB,UAAE;AACF,UAAE,oBAAoB,CACzB,CACF;AACH;AA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A,SAAA,EAAA,EAAS,QAAQ,EAAE,aAAa,KAAK,EAAE,GAAG,aAAa,GAAG,CAAC,EAAA,EACxD,WAAW,CAAC,OAAO,CAAC,CACb;QACV,CAAa,CAAA,MAAA,EAAA,IAAA,CAAA,CACR;AAEX;;;;"}
@@ -1,2 +1,2 @@
1
- import{h as t}from"./p-B6NtGPRE.js";import{i,a as e,b as n,c as o}from"./p-DLTnniMb.js";function a({invalidText:t,warningText:i,infoText:e,validText:n,helperText:o}){return t||i||e||n||o}function s({isInvalid:a,invalidText:s,isWarning:r,warningText:x,isInfo:l,infoText:c,isValid:d,validText:f,helperText:p}){if(a&&s!==undefined){return t("ix-typography",{textColor:"alarm",class:"bottom-text"},t("ix-icon",{class:"text-icon invalid",name:i,size:"16"}),s)}if(r&&x!==undefined){return t("ix-typography",{textColor:"std",class:"bottom-text"},t("ix-icon",{class:"text-icon warning",name:e,size:"16"}),x)}if(l&&c!==undefined){return t("ix-typography",{textColor:"std",class:"bottom-text"},t("ix-icon",{class:"text-icon info",name:n,size:"16"}),c)}if(d&&f!==undefined){return t("ix-typography",{textColor:"std",class:"bottom-text"},t("ix-icon",{class:"text-icon valid",name:o,size:"16"}),f)}return p&&t("ix-typography",{class:"bottom-text",textColor:"soft"},p)}export{s as H,a as h};
2
- //# sourceMappingURL=p-C1MjXHa0.js.map
1
+ import{h as t}from"./p-DJsXFBNm.js";import{i,a as e,b as n,c as o}from"./p-DLTnniMb.js";function a({invalidText:t,warningText:i,infoText:e,validText:n,helperText:o}){return t||i||e||n||o}function s({isInvalid:a,invalidText:s,isWarning:r,warningText:x,isInfo:l,infoText:c,isValid:d,validText:f,helperText:p}){if(a&&s!==undefined){return t("ix-typography",{textColor:"alarm",class:"bottom-text"},t("ix-icon",{class:"text-icon invalid",name:i,size:"16"}),s)}if(r&&x!==undefined){return t("ix-typography",{textColor:"std",class:"bottom-text"},t("ix-icon",{class:"text-icon warning",name:e,size:"16"}),x)}if(l&&c!==undefined){return t("ix-typography",{textColor:"std",class:"bottom-text"},t("ix-icon",{class:"text-icon info",name:n,size:"16"}),c)}if(d&&f!==undefined){return t("ix-typography",{textColor:"std",class:"bottom-text"},t("ix-icon",{class:"text-icon valid",name:o,size:"16"}),f)}return p&&t("ix-typography",{class:"bottom-text",textColor:"soft"},p)}export{s as H,a as h};
2
+ //# sourceMappingURL=p-CthRnoDv.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"p-C1MjXHa0.js","sources":["src/components/field-wrapper/helper-text-util.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { h } from '@stencil/core';\nimport {\n iconError,\n iconInfo,\n iconSuccess,\n iconWarning,\n} from '@siemens/ix-icons/icons';\n\nexport function hasAnyText({\n invalidText,\n warningText,\n infoText,\n validText,\n helperText,\n}: {\n invalidText?: string;\n warningText?: string;\n infoText?: string;\n validText?: string;\n helperText?: string;\n}) {\n return invalidText || warningText || infoText || validText || helperText;\n}\n\nexport function HelperText({\n isInvalid,\n invalidText,\n isWarning,\n warningText,\n isInfo,\n infoText,\n isValid,\n validText,\n helperText,\n}: {\n isInvalid: boolean;\n invalidText?: string;\n isWarning: boolean;\n warningText?: string;\n isInfo: boolean;\n infoText?: string;\n isValid: boolean;\n validText?: string;\n helperText?: string;\n}) {\n if (isInvalid && invalidText !== undefined) {\n return (\n <ix-typography textColor=\"alarm\" class=\"bottom-text\">\n <ix-icon class=\"text-icon invalid\" name={iconError} size=\"16\"></ix-icon>\n\n {invalidText}\n </ix-typography>\n );\n }\n\n if (isWarning && warningText !== undefined) {\n return (\n <ix-typography textColor=\"std\" class=\"bottom-text\">\n <ix-icon\n class=\"text-icon warning\"\n name={iconWarning}\n size=\"16\"\n ></ix-icon>\n {warningText}\n </ix-typography>\n );\n }\n\n if (isInfo && infoText !== undefined) {\n return (\n <ix-typography textColor=\"std\" class=\"bottom-text\">\n <ix-icon class=\"text-icon info\" name={iconInfo} size=\"16\"></ix-icon>\n {infoText}\n </ix-typography>\n );\n }\n\n if (isValid && validText !== undefined) {\n return (\n <ix-typography textColor=\"std\" class=\"bottom-text\">\n <ix-icon class=\"text-icon valid\" name={iconSuccess} size=\"16\"></ix-icon>\n {validText}\n </ix-typography>\n );\n }\n\n return (\n helperText && (\n <ix-typography class=\"bottom-text\" textColor=\"soft\">\n {helperText}\n </ix-typography>\n )\n );\n}\n"],"names":["HelperText"],"mappings":";;;AAAA;;;;;;;AAOG;AASa,SAAA,UAAU,CAAC,EACzB,WAAW,EACX,WAAW,EACX,QAAQ,EACR,SAAS,EACT,UAAU,GAOX,EAAA;IACC,OAAO,WAAW,IAAI,WAAW,IAAI,QAAQ,IAAI,SAAS,IAAI,UAAU;AAC1E;AAEM,SAAUA,YAAU,CAAC,EACzB,SAAS,EACT,WAAW,EACX,SAAS,EACT,WAAW,EACX,MAAM,EACN,QAAQ,EACR,OAAO,EACP,SAAS,EACT,UAAU,GAWX,EAAA;AACC,IAAA,IAAI,SAAS,IAAI,WAAW,KAAK,SAAS,EAAE;QAC1C,QACE,qBAAe,SAAS,EAAC,OAAO,EAAC,KAAK,EAAC,aAAa,EAAA;YAClD,CAAS,CAAA,SAAA,EAAA,EAAA,KAAK,EAAC,mBAAmB,EAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAC,IAAI,EAAW,CAAA;YAEvE,WAAW,CACE;;AAIpB,IAAA,IAAI,SAAS,IAAI,WAAW,KAAK,SAAS,EAAE;QAC1C,QACE,qBAAe,SAAS,EAAC,KAAK,EAAC,KAAK,EAAC,aAAa,EAAA;YAChD,CACE,CAAA,SAAA,EAAA,EAAA,KAAK,EAAC,mBAAmB,EACzB,IAAI,EAAE,WAAW,EACjB,IAAI,EAAC,IAAI,EACA,CAAA;YACV,WAAW,CACE;;AAIpB,IAAA,IAAI,MAAM,IAAI,QAAQ,KAAK,SAAS,EAAE;QACpC,QACE,qBAAe,SAAS,EAAC,KAAK,EAAC,KAAK,EAAC,aAAa,EAAA;YAChD,CAAS,CAAA,SAAA,EAAA,EAAA,KAAK,EAAC,gBAAgB,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAC,IAAI,EAAW,CAAA;YACnE,QAAQ,CACK;;AAIpB,IAAA,IAAI,OAAO,IAAI,SAAS,KAAK,SAAS,EAAE;QACtC,QACE,qBAAe,SAAS,EAAC,KAAK,EAAC,KAAK,EAAC,aAAa,EAAA;YAChD,CAAS,CAAA,SAAA,EAAA,EAAA,KAAK,EAAC,iBAAiB,EAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAC,IAAI,EAAW,CAAA;YACvE,SAAS,CACI;;AAIpB,IAAA,QACE,UAAU,KACR,CAAA,CAAA,eAAA,EAAA,EAAe,KAAK,EAAC,aAAa,EAAC,SAAS,EAAC,MAAM,EAAA,EAChD,UAAU,CACG,CACjB;AAEL;;;;"}
1
+ {"version":3,"file":"p-CthRnoDv.js","sources":["src/components/field-wrapper/helper-text-util.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { h } from '@stencil/core';\nimport {\n iconError,\n iconInfo,\n iconSuccess,\n iconWarning,\n} from '@siemens/ix-icons/icons';\n\nexport function hasAnyText({\n invalidText,\n warningText,\n infoText,\n validText,\n helperText,\n}: {\n invalidText?: string;\n warningText?: string;\n infoText?: string;\n validText?: string;\n helperText?: string;\n}) {\n return invalidText || warningText || infoText || validText || helperText;\n}\n\nexport function HelperText({\n isInvalid,\n invalidText,\n isWarning,\n warningText,\n isInfo,\n infoText,\n isValid,\n validText,\n helperText,\n}: {\n isInvalid: boolean;\n invalidText?: string;\n isWarning: boolean;\n warningText?: string;\n isInfo: boolean;\n infoText?: string;\n isValid: boolean;\n validText?: string;\n helperText?: string;\n}) {\n if (isInvalid && invalidText !== undefined) {\n return (\n <ix-typography textColor=\"alarm\" class=\"bottom-text\">\n <ix-icon class=\"text-icon invalid\" name={iconError} size=\"16\"></ix-icon>\n\n {invalidText}\n </ix-typography>\n );\n }\n\n if (isWarning && warningText !== undefined) {\n return (\n <ix-typography textColor=\"std\" class=\"bottom-text\">\n <ix-icon\n class=\"text-icon warning\"\n name={iconWarning}\n size=\"16\"\n ></ix-icon>\n {warningText}\n </ix-typography>\n );\n }\n\n if (isInfo && infoText !== undefined) {\n return (\n <ix-typography textColor=\"std\" class=\"bottom-text\">\n <ix-icon class=\"text-icon info\" name={iconInfo} size=\"16\"></ix-icon>\n {infoText}\n </ix-typography>\n );\n }\n\n if (isValid && validText !== undefined) {\n return (\n <ix-typography textColor=\"std\" class=\"bottom-text\">\n <ix-icon class=\"text-icon valid\" name={iconSuccess} size=\"16\"></ix-icon>\n {validText}\n </ix-typography>\n );\n }\n\n return (\n helperText && (\n <ix-typography class=\"bottom-text\" textColor=\"soft\">\n {helperText}\n </ix-typography>\n )\n );\n}\n"],"names":["HelperText"],"mappings":";;;AAAA;;;;;;;AAOG;AASa,SAAA,UAAU,CAAC,EACzB,WAAW,EACX,WAAW,EACX,QAAQ,EACR,SAAS,EACT,UAAU,GAOX,EAAA;IACC,OAAO,WAAW,IAAI,WAAW,IAAI,QAAQ,IAAI,SAAS,IAAI,UAAU;AAC1E;AAEM,SAAUA,YAAU,CAAC,EACzB,SAAS,EACT,WAAW,EACX,SAAS,EACT,WAAW,EACX,MAAM,EACN,QAAQ,EACR,OAAO,EACP,SAAS,EACT,UAAU,GAWX,EAAA;AACC,IAAA,IAAI,SAAS,IAAI,WAAW,KAAK,SAAS,EAAE;QAC1C,QACE,qBAAe,SAAS,EAAC,OAAO,EAAC,KAAK,EAAC,aAAa,EAAA;YAClD,CAAS,CAAA,SAAA,EAAA,EAAA,KAAK,EAAC,mBAAmB,EAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAC,IAAI,EAAW,CAAA;YAEvE,WAAW,CACE;;AAIpB,IAAA,IAAI,SAAS,IAAI,WAAW,KAAK,SAAS,EAAE;QAC1C,QACE,qBAAe,SAAS,EAAC,KAAK,EAAC,KAAK,EAAC,aAAa,EAAA;YAChD,CACE,CAAA,SAAA,EAAA,EAAA,KAAK,EAAC,mBAAmB,EACzB,IAAI,EAAE,WAAW,EACjB,IAAI,EAAC,IAAI,EACA,CAAA;YACV,WAAW,CACE;;AAIpB,IAAA,IAAI,MAAM,IAAI,QAAQ,KAAK,SAAS,EAAE;QACpC,QACE,qBAAe,SAAS,EAAC,KAAK,EAAC,KAAK,EAAC,aAAa,EAAA;YAChD,CAAS,CAAA,SAAA,EAAA,EAAA,KAAK,EAAC,gBAAgB,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAC,IAAI,EAAW,CAAA;YACnE,QAAQ,CACK;;AAIpB,IAAA,IAAI,OAAO,IAAI,SAAS,KAAK,SAAS,EAAE;QACtC,QACE,qBAAe,SAAS,EAAC,KAAK,EAAC,KAAK,EAAC,aAAa,EAAA;YAChD,CAAS,CAAA,SAAA,EAAA,EAAA,KAAK,EAAC,iBAAiB,EAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAC,IAAI,EAAW,CAAA;YACvE,SAAS,CACI;;AAIpB,IAAA,QACE,UAAU,KACR,CAAA,CAAA,eAAA,EAAA,EAAe,KAAK,EAAC,aAAa,EAAC,SAAS,EAAC,MAAM,EAAA,EAChD,UAAU,CACG,CACjB;AAEL;;;;"}
@@ -0,0 +1,3 @@
1
+ const e="siemens-ix";const t={hydratedSelectorName:"hydrated",lazyLoad:true,updatable:true};function n(e){const t={};if(e.ael){t.ael=e.ael}if(e.rel){t.rel=e.rel}if(e.ce){t.ce=e.ce}L(t)}async function r(e){n(e||{})}const s=r;const i="";var o=Object.defineProperty;var l=(e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:true})};var f="http://www.w3.org/2000/svg";var a="http://www.w3.org/1999/xhtml";var c=(e=>{e["Undefined"]="undefined";e["Null"]="null";e["String"]="string";e["Number"]="number";e["SpecialNumber"]="number";e["Boolean"]="boolean";e["BigInt"]="bigint";return e})(c||{});var u=(e=>{e["Array"]="array";e["Date"]="date";e["Map"]="map";e["Object"]="object";e["RegularExpression"]="regexp";e["Set"]="set";e["Channel"]="channel";e["Symbol"]="symbol";return e})(u||{});var v="type";var d="value";var p="serialized:";var h=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var $=(e,t)=>{e.__stencil__getHostRef=()=>t;t.t=e};var y=(e,t)=>{const n={i:0,$hostElement$:e,o:t,l:new Map};{n.u=new Promise((e=>n.v=e))}{n.p=new Promise((e=>n.h=e));e["s-p"]=[];e["s-rc"]=[]}const r=n;e.__stencil__getHostRef=()=>r;return r};var m=(e,t)=>t in e;var b=(e,t)=>(0,console.error)(e,t);var w=new Map;var g=(e,t,n)=>{const r=e.$.replace(/-/g,"_");const s=e.m;if(!s){return void 0}const i=w.get(s);if(i){return i[r]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${s}.entry.js${""}`).then((e=>{{w.set(s,e)}return e[r]}),(e=>{b(e,t.$hostElement$)}))};var S=new Map;var j="r";var O="o";var k="s";var x="t";var C="c";var E="s-id";var I="sty-id";var N="c-id";var M="{visibility:hidden}.hydrated{visibility:inherit}";var R="slot-fb{display:contents}slot-fb[hidden]{display:none}";var P="http://www.w3.org/1999/xlink";var U=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"];var A=typeof window!=="undefined"?window:{};var D={i:0,S:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)};var L=e=>{Object.assign(D,e)};var W=(()=>{var e;let t=false;try{(e=A.document)==null?void 0:e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=true}}))}catch(e){}return t})();var F=e=>Promise.resolve(e);var V=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var _=false;var z=[];var H=[];var T=(e,t)=>n=>{e.push(n);if(!_){_=true;if(t&&D.i&4){q(Y)}else{D.raf(Y)}}};var J=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){b(e)}}e.length=0};var Y=()=>{J(z);{J(H);if(_=z.length>0){D.raf(Y)}}};var q=e=>F().then(e);var B=T(z,false);var G=T(H,true);var K=e=>{e=typeof e;return e==="object"||e==="function"};function Q(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?r:void 0}var X=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var Z=class e{static fromLocalValue(t){const n=t[v];const r=d in t?t[d]:void 0;switch(n){case"string":return r;case"boolean":return r;case"bigint":return BigInt(r);case"undefined":return void 0;case"null":return null;case"number":if(r==="NaN")return NaN;if(r==="-0")return-0;if(r==="Infinity")return Infinity;if(r==="-Infinity")return-Infinity;return r;case"array":return r.map((t=>e.fromLocalValue(t)));case"date":return new Date(r);case"map":const t=new Map;for(const[n,s]of r){const r=typeof n==="object"&&n!==null?e.fromLocalValue(n):n;const i=e.fromLocalValue(s);t.set(r,i)}return t;case"object":const s={};for(const[t,n]of r){s[t]=e.fromLocalValue(n)}return s;case"regexp":const{pattern:i,flags:o}=r;return new RegExp(i,o);case"set":const l=new Set;for(const t of r){l.add(e.fromLocalValue(t))}return l;case"symbol":return Symbol(r);default:throw new Error(`Unsupported type: ${n}`)}}static fromLocalValueArray(t){return t.map((t=>e.fromLocalValue(t)))}static isLocalValueObject(e){if(typeof e!=="object"||e===null){return false}if(!e.hasOwnProperty(v)){return false}const t=e[v];const n=Object.values({...c,...u}).includes(t);if(!n){return false}if(t!=="null"&&t!=="undefined"){return e.hasOwnProperty(d)}return true}};var ee={};l(ee,{err:()=>ne,map:()=>re,ok:()=>te,unwrap:()=>se,unwrapErr:()=>ie});var te=e=>({isOk:true,isErr:false,value:e});var ne=e=>({isOk:false,isErr:true,value:e});function re(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>te(e)))}else{return te(n)}}if(e.isErr){const t=e.value;return ne(t)}throw"should never get here"}var se=e=>{if(e.isOk){return e.value}else{throw e.value}};var ie=e=>{if(e.isErr){return e.value}else{throw e.value}};function oe(e){if(typeof e!=="string"||!e.startsWith(p)){return e}return Z.fromLocalValue(JSON.parse(atob(e.slice(p.length))))}function le(e){const t=this.attachShadow({mode:"open"});if(V){const e=new CSSStyleSheet;e.replaceSync(i);t.adoptedStyleSheets.push(e)}}var fe=e=>{const t=[];for(let n=0;n<e.length;n++){const r=e[n]["s-nr"]||void 0;if(r&&r.isConnected){t.push(r)}}return t};var ae=(e,t,n,r)=>{if(e["s-ol"]&&e["s-ol"].isConnected){return}const s=document.createTextNode("");s["s-nr"]=e;if(!t["s-cr"]||!t["s-cr"].parentNode)return;const i=t["s-cr"].parentNode;const o=ve(i,"appendChild");if(typeof r!=="undefined"){s["s-oo"]=r;const e=ve(i,"childNodes");const t=[s];e.forEach((e=>{if(e["s-nr"])t.push(e)}));t.sort(((e,t)=>{if(!e["s-oo"]||e["s-oo"]<(t["s-oo"]||0))return-1;else if(!t["s-oo"]||t["s-oo"]<e["s-oo"])return 1;return 0}));t.forEach((e=>o.call(i,e)))}else{o.call(i,s)}e["s-ol"]=s;e["s-sh"]=t["s-hn"]};var ce=e=>typeof e["s-sn"]==="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ue(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const t=t=>function(e){const n=[];const r=this["s-sn"];if(e==null?void 0:e.flatten){console.error(`\n Flattening is not supported for Stencil non-shadow slots.\n You can use \`.childNodes\` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n `)}const s=this["s-cr"].parentElement;const i=s.__childNodes?s.childNodes:fe(s.childNodes);i.forEach((e=>{if(r===ce(e)){n.push(e)}}));if(t){return n.filter((e=>e.nodeType===1))}return n}.bind(e);e.assignedElements=t(true);e.assignedNodes=t(false)}function ve(e,t){if("__"+t in e){const n=e["__"+t];if(typeof n!=="function")return n;return n.bind(e)}else{if(typeof e[t]!=="function")return e[t];return e[t].bind(e)}}var de=(e,t="")=>{{return()=>{}}};var pe=(e,t)=>{{return()=>{}}};var he=(e,t,...n)=>{let r=null;let s=null;let i=false;let o=false;const l=[];const f=t=>{for(let n=0;n<t.length;n++){r=t[n];if(Array.isArray(r)){f(r)}else if(r!=null&&typeof r!=="boolean"){if(i=typeof e!=="function"&&!K(r)){r=String(r)}if(i&&o){l[l.length-1].j+=r}else{l.push(i?$e(null,r):r)}o=i}}};f(n);if(t){if(t.key){s=t.key}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,l,be)}const a=$e(e,null);a.O=t;if(l.length>0){a.k=l}{a.C=s}return a};var $e=(e,t)=>{const n={i:0,I:e,j:t,N:null,k:null};{n.O=null}{n.C=null}return n};var ye={};var me=e=>e&&e.I===ye;var be={forEach:(e,t)=>e.map(we).forEach(t),map:(e,t)=>e.map(we).map(t).map(ge)};var we=e=>({vattrs:e.O,vchildren:e.k,vkey:e.C,vname:e.M,vtag:e.I,vtext:e.j});var ge=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return he(e.vtag,t,...e.vchildren||[])}const t=$e(e.vtag,e.vtext);t.O=e.vattrs;t.k=e.vchildren;t.C=e.vkey;t.M=e.vname;return t};var Se=(e,t,n,r)=>{var s;const i=de("hydrateClient",t);const o=e.shadowRoot;const l=[];const f=[];const a=[];const c=o?[]:null;const u=$e(t,null);u.N=e;const v=Object.entries(((s=r.o)==null?void 0:s.R)||{});v.forEach((([t,[n,s]])=>{var i,o;if(!(n&31)){return}const l=s||t;const f=e.getAttribute(l);if(f!==null){const e=Ne(f,n,!!(((i=r.o)==null?void 0:i.i)&64));(o=r==null?void 0:r.l)==null?void 0:o.set(t,e)}}));if(A.document&&(!D.P||!D.P.size)){Oe(A.document.body,D.P=new Map)}e[E]=n;e.removeAttribute(E);r.U=je(u,l,f,c,e,e,n,a);let d=0;const p=l.length;let h;for(d;d<p;d++){h=l[d];const n=h.A+"."+h.D;const r=D.P.get(n);const s=h.N;if(!o){s["s-hn"]=t.toUpperCase();if(h.I==="slot"){s["s-cr"]=e["s-cr"]}}if(h.I==="slot"){h.M=h.N["s-sn"]||h.N["name"]||null;if(h.k){h.i|=2;if(!h.N.childNodes.length){h.k.forEach((e=>{h.N.appendChild(e.N)}))}}else{h.i|=1}}if(r&&r.isConnected){if(o&&r["s-en"]===""){r.parentNode.insertBefore(s,r.nextSibling)}r.parentNode.removeChild(r);if(!o){s["s-oo"]=parseInt(h.D)}}D.P.delete(n)}const $=[];const y=a.length;let m=0;let b;let w;let g;let S;for(m;m<y;m++){b=a[m];if(!b||!b.length)continue;g=b.length;w=0;for(w;w<g;w++){S=b[w];if(!$[S.hostId]){$[S.hostId]=D.P.get(S.hostId)}if(!$[S.hostId])continue;const e=$[S.hostId];if(!e.shadowRoot||!o){S.slot["s-cr"]=e["s-cr"];if(!S.slot["s-cr"]&&e.shadowRoot){S.slot["s-cr"]=e}else{S.slot["s-cr"]=(e.__childNodes||e.childNodes)[0]}ae(S.node,S.slot,false,S.node["s-oo"])}if(e.shadowRoot&&S.node.parentElement!==e){e.appendChild(S.node)}}}if(o&&!o.childNodes.length){let t=0;const n=c.length;if(n){for(t;t<n;t++){o.appendChild(c[t])}Array.from(e.childNodes).forEach((e=>{if(typeof e["s-en"]!=="string"&&typeof e["s-sn"]!=="string"){if(e.nodeType===1&&e.slot&&e.hidden){e.removeAttribute("hidden")}else if(e.nodeType===8||e.nodeType===3&&!e.wholeText.trim()){e.parentNode.removeChild(e)}}}))}}D.P.delete(e["s-id"]);r.$hostElement$=e;i()};var je=(e,t,n,r,s,i,o,l=[])=>{let f;let a;let c;let u;if(i.nodeType===1){f=i.getAttribute(N);if(f){a=f.split(".");if(a[0]===o||a[0]==="0"){c=ke({i:0,A:a[0],D:a[1],L:a[2],W:a[3],I:i.tagName.toLowerCase(),N:i,O:{class:i.className||""}});t.push(c);i.removeAttribute(N);if(!e.k){e.k=[]}const s=c.N.getAttribute("s-sn");if(typeof s==="string"){if(c.I==="slot-fb"){xe(s,a[2],c,i,e,t,n,r,l)}c.N["s-sn"]=s;c.N.removeAttribute("s-sn")}if(c.W!==void 0){e.k[c.W]=c}e=c;if(r&&c.L==="0"){r[c.W]=c.N}}}if(i.shadowRoot){for(u=i.shadowRoot.childNodes.length-1;u>=0;u--){je(e,t,n,r,s,i.shadowRoot.childNodes[u],o,l)}}const v=i.__childNodes||i.childNodes;for(u=v.length-1;u>=0;u--){je(e,t,n,r,s,v[u],o,l)}}else if(i.nodeType===8){a=i.nodeValue.split(".");if(a[1]===o||a[1]==="0"){f=a[0];c=ke({A:a[1],D:a[2],L:a[3],W:a[4]||"0",N:i,O:null,k:null,C:null,M:null,I:null,j:null});if(f===x){c.N=Ee(i,3);if(c.N&&c.N.nodeType===3){c.j=c.N.textContent;t.push(c);i.remove();if(o===c.A){if(!e.k){e.k=[]}e.k[c.W]=c}if(r&&c.L==="0"){r[c.W]=c.N}}}else if(f===C){c.N=Ee(i,8);if(c.N&&c.N.nodeType===8){t.push(c);i.remove()}}else if(c.A===o){if(f===k){const s=i["s-sn"]=a[5]||"";xe(s,a[2],c,i,e,t,n,r,l)}else if(f===j){if(r){i.remove()}}}}}else if(e&&e.I==="style"){const t=$e(null,i.textContent);t.N=i;t.W="0";e.k=[t]}else{if(i.nodeType===3&&!i.wholeText.trim()){i.remove()}}return e};var Oe=(e,t)=>{if(e.nodeType===1){const n=e[E]||e.getAttribute(E);if(n){t.set(n,e)}let r=0;if(e.shadowRoot){for(;r<e.shadowRoot.childNodes.length;r++){Oe(e.shadowRoot.childNodes[r],t)}}const s=e.__childNodes||e.childNodes;for(r=0;r<s.length;r++){Oe(s[r],t)}}else if(e.nodeType===8){const n=e.nodeValue.split(".");if(n[0]===O){t.set(n[1]+"."+n[2],e);e.nodeValue="";e["s-en"]=n[3]}}};var ke=e=>{const t={i:0,A:null,D:null,L:null,W:"0",N:null,O:null,k:null,C:null,M:null,I:null,j:null};return{...t,...e}};function xe(e,t,n,r,s,i,o,l,f){r["s-sr"]=true;n.M=e||null;n.I="slot";const a=(s==null?void 0:s.N)?s.N["s-id"]||s.N.getAttribute("s-id"):"";if(l&&A.document){const i=n.N=A.document.createElement(n.I);if(n.M){n.N.setAttribute("name",e)}if(a&&a!==n.A){s.N.insertBefore(i,s.N.children[0])}else{r.parentNode.insertBefore(i,r)}Ce(f,t,e,r,n.A);r.remove();if(n.L==="0"){l[n.W]=n.N}}else{const i=n.N;const o=a&&a!==n.A&&s.N.shadowRoot;Ce(f,t,e,r,o?a:n.A);ue(r);if(o){s.N.insertBefore(i,s.N.children[0])}}i.push(n);o.push(n);if(!s.k){s.k=[]}s.k[n.W]=n}var Ce=(e,t,n,r,s)=>{let i=r.nextSibling;e[t]=e[t]||[];while(i&&((i["getAttribute"]&&i.getAttribute("slot")||i["s-sn"])===n||n===""&&!i["s-sn"]&&(i.nodeType===8&&i.nodeValue.indexOf(".")!==1||i.nodeType===3))){i["s-sn"]=n;e[t].push({slot:r,node:i,hostId:s});i=i.nextSibling}};var Ee=(e,t)=>{let n=e;do{n=n.nextSibling}while(n&&(n.nodeType!==t||!n.nodeValue));return n};var Ie=e=>{const t=X(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")};Ie("::slotted");Ie(":host");Ie(":host-context");var Ne=(e,t,n)=>{if(typeof e==="string"&&(e.startsWith("{")&&e.endsWith("}")||e.startsWith("[")&&e.endsWith("]"))){try{e=JSON.parse(e);return e}catch(e){}}if(typeof e==="string"&&e.startsWith(p)){e=oe(e);return e}if(e!=null&&!K(e)){if(t&4){if(n&&typeof e==="string"){return e===""||!!e}else{return e==="false"?false:e===""||!!e}}if(t&2){return typeof e==="string"?parseFloat(e):typeof e==="number"?e:NaN}if(t&1){return String(e)}return e}return e};var Me=e=>h(e).$hostElement$;var Re=(e,t,n)=>{const r=Me(e);return{emit:e=>Pe(r,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}};var Pe=(e,t,n)=>{const r=D.ce(t,n);e.dispatchEvent(r);return r};var Ue=new WeakMap;var Ae=(e,t,n)=>{let r=S.get(e);if(V&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}S.set(e,r)};var De=(e,t,n)=>{var r;const s=We(t);const i=S.get(s);if(!A.document){return s}e=e.nodeType===11?e:A.document;if(i){if(typeof i==="string"){e=e.head||e;let n=Ue.get(e);let o;if(!n){Ue.set(e,n=new Set)}if(!n.has(s)){if(e.host&&(o=e.querySelector(`[${I}="${s}"]`))){o.innerHTML=i}else{o=A.document.createElement("style");o.innerHTML=i;const n=(r=D.F)!=null?r:Q(A.document);if(n!=null){o.setAttribute("nonce",n)}if(!(t.i&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(o,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(V){const t=new CSSStyleSheet;t.replaceSync(i);e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");if(t){t.innerHTML=i+t.innerHTML}else{e.prepend(o)}}}else{e.append(o)}}if(t.i&1){e.insertBefore(o,null)}}if(t.i&4){o.innerHTML+=R}if(n){n.add(s)}}}else if(!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]}}return s};var Le=e=>{const t=e.o;const n=e.$hostElement$;const r=t.i;const s=de("attachStyles",t.$);const i=De(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=i;n.classList.add(i+"-h")}s()};var We=(e,t)=>"sc-"+e.$;var Fe=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{");var Ve=()=>{if(!A.document){return}const e=A.document.querySelectorAll(`[${I}]`);let t=0;for(;t<e.length;t++){Ae(e[t].getAttribute(I),Fe(e[t].innerHTML),true)}};var _e=(e,t,n,r,s,i,o)=>{if(n===r){return}let l=m(e,t);let f=t.toLowerCase();if(t==="class"){const t=e.classList;const s=He(n);let i=He(r);if(e["s-si"]&&o){i.push(e["s-si"]);s.forEach((t=>{if(t.startsWith(e["s-si"]))i.push(t)}));i=[...new Set(i)];t.add(...i)}else{t.remove(...s.filter((e=>e&&!i.includes(e))));t.add(...i.filter((e=>e&&!s.includes(e))))}}else if(t==="style"){{for(const t in n){if(!r||r[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in r){if(!n||r[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,r[t])}else{e.style[t]=r[t]}}}}else if(t==="key");else if(t==="ref"){if(r){r(e)}}else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(m(A,f)){t=f.slice(2)}else{t=f[2]+t.slice(3)}if(n||r){const s=t.endsWith(Te);t=t.replace(Je,"");if(n){D.rel(e,t,n,s)}if(r){D.ael(e,t,r,s)}}}else{const o=K(r);if((l||o&&r!==null)&&!s){try{if(!e.tagName.includes("-")){const s=r==null?"":r;if(t==="list"){l=false}else if(n==null||e[t]!=s){if(typeof e.__lookupSetter__(t)==="function"){e[t]=s}else{e.setAttribute(t,s)}}}else if(e[t]!==r){e[t]=r}}catch(e){}}let a=false;{if(f!==(f=f.replace(/^xlink\:?/,""))){t=f;a=true}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){if(a){e.removeAttributeNS(P,t)}else{e.removeAttribute(t)}}}else if((!l||i&4||s)&&!o&&e.nodeType===1){r=r===true?"":r;if(a){e.setAttributeNS(P,t,r)}else{e.setAttribute(t,r)}}}};var ze=/\s/;var He=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(ze)};var Te="Capture";var Je=new RegExp(Te+"$");var Ye=(e,t,n,r)=>{const s=t.N.nodeType===11&&t.N.host?t.N.host:t.N;const i=e&&e.O||{};const o=t.O||{};{for(const e of qe(Object.keys(i))){if(!(e in o)){_e(s,e,i[e],void 0,n,t.i,r)}}}for(const e of qe(Object.keys(o))){_e(s,e,i[e],o[e],n,t.i,r)}};function qe(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var Be;var Ge=false;var Ke=(e,t,n)=>{const r=t.k[n];let s=0;let i;let o;if(r.j!==null){i=r.N=A.document.createTextNode(r.j)}else{if(!Ge){Ge=r.I==="svg"}if(!A.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}i=r.N=A.document.createElementNS(Ge?f:a,r.I);if(Ge&&r.I==="foreignObject"){Ge=false}{Ye(null,r,Ge)}if(r.k){for(s=0;s<r.k.length;++s){o=Ke(e,r,s);if(o){i.appendChild(o)}}}{if(r.I==="svg"){Ge=false}else if(i.tagName==="foreignObject"){Ge=true}}}i["s-hn"]=Be;return i};var Qe=(e,t,n,r,s,i)=>{let o=e;let l;if(o.shadowRoot&&o.tagName===Be){o=o.shadowRoot}for(;s<=i;++s){if(r[s]){l=Ke(null,n,s);if(l){r[s].N=l;rt(o,l,t)}}}};var Xe=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.N;nt(t);if(e){e.remove()}}}};var Ze=(e,t,n,r,s=false)=>{let i=0;let o=0;let l=0;let f=0;let a=t.length-1;let c=t[0];let u=t[a];let v=r.length-1;let d=r[0];let p=r[v];let h;let $;while(i<=a&&o<=v){if(c==null){c=t[++i]}else if(u==null){u=t[--a]}else if(d==null){d=r[++o]}else if(p==null){p=r[--v]}else if(et(c,d,s)){tt(c,d,s);c=t[++i];d=r[++o]}else if(et(u,p,s)){tt(u,p,s);u=t[--a];p=r[--v]}else if(et(c,p,s)){tt(c,p,s);rt(e,c.N,u.N.nextSibling);c=t[++i];p=r[--v]}else if(et(u,d,s)){tt(u,d,s);rt(e,u.N,c.N);u=t[--a];d=r[++o]}else{l=-1;{for(f=i;f<=a;++f){if(t[f]&&t[f].C!==null&&t[f].C===d.C){l=f;break}}}if(l>=0){$=t[l];if($.I!==d.I){h=Ke(t&&t[o],n,l)}else{tt($,d,s);t[l]=void 0;h=$.N}d=r[++o]}else{h=Ke(t&&t[o],n,o);d=r[++o]}if(h){{rt(c.N.parentNode,h,c.N)}}}}if(i>a){Qe(e,r[v+1]==null?null:r[v+1].N,n,r,o,v)}else if(o>v){Xe(t,i,a)}};var et=(e,t,n=false)=>{if(e.I===t.I){if(!n){return e.C===t.C}if(n&&!e.C&&t.C){e.C=t.C}return true}return false};var tt=(e,n,r=false)=>{const s=n.N=e.N;const i=e.k;const o=n.k;const l=n.I;const f=n.j;if(f===null){{Ge=l==="svg"?true:l==="foreignObject"?false:Ge}{Ye(e,n,Ge,r)}if(i!==null&&o!==null){Ze(s,i,n,o,r)}else if(o!==null){if(e.j!==null){s.textContent=""}Qe(s,null,n,o,0,o.length-1)}else if(!r&&t.updatable&&i!==null){Xe(i,0,i.length-1)}if(Ge&&l==="svg"){Ge=false}}else if(e.j!==f){s.data=f}};var nt=e=>{{e.O&&e.O.ref&&e.O.ref(null);e.k&&e.k.map(nt)}};var rt=(e,t,n)=>{{return e==null?void 0:e.insertBefore(t,n)}};var st=(e,t,n=false)=>{const r=e.$hostElement$;const s=e.o;const i=e.U||$e(null,null);const o=me(t);const l=o?t:he(null,null,t);Be=r.tagName;if(s.V){l.O=l.O||{};s.V.map((([e,t])=>l.O[t]=r[e]))}if(n&&l.O){for(const e of Object.keys(l.O)){if(r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){l.O[e]=r[e]}}}l.I=null;l.i|=4;e.U=l;l.N=i.N=r.shadowRoot||r;tt(i,l,n)};var it=(e,t)=>{if(t&&!e._&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e._=()=>{t["s-p"].splice(n-1,1);r()})))}};var ot=(e,t)=>{{e.i|=16}if(e.i&4){e.i|=512;return}it(e,e.H);const n=()=>lt(e,t);return G(n)};var lt=(e,t)=>{const n=e.$hostElement$;const r=de("scheduleUpdate",e.o.$);const s=e.t;if(!s){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let i;if(t){{e.i|=256;if(e.T){e.T.map((([e,t])=>ht(s,e,t,n)));e.T=void 0}}i=ht(s,"componentWillLoad",void 0,n)}else{i=ht(s,"componentWillUpdate",void 0,n)}i=ft(i,(()=>ht(s,"componentWillRender",void 0,n)));r();return ft(i,(()=>ct(e,s,t)))};var ft=(e,t)=>at(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var at=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var ct=async(e,t,n)=>{var r;const s=e.$hostElement$;const i=de("update",e.o.$);const o=s["s-rc"];if(n){Le(e)}const l=de("render",e.o.$);{ut(e,t,s,n)}if(o){o.map((e=>e()));s["s-rc"]=void 0}l();i();{const t=(r=s["s-p"])!=null?r:[];const n=()=>vt(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.i|=4;t.length=0}}};var ut=(e,t,n,r)=>{try{t=t.render();{e.i&=-17}{e.i|=2}{{{st(e,t,r)}}}}catch(t){b(t,e.$hostElement$)}return null};var vt=e=>{const t=e.o.$;const n=e.$hostElement$;const r=de("postUpdate",t);const s=e.t;const i=e.H;ht(s,"componentDidRender",void 0,n);if(!(e.i&64)){e.i|=64;{$t(n)}ht(s,"componentDidLoad",void 0,n);r();{e.h(n);if(!i){pt()}}}else{ht(s,"componentDidUpdate",void 0,n);r()}{e.v(n)}{if(e._){e._();e._=void 0}if(e.i&512){q((()=>ot(e,false)))}e.i&=-517}};var dt=e=>{{const t=h(e);const n=t.$hostElement$.isConnected;if(n&&(t.i&(2|16))===2){ot(t,false)}return n}};var pt=t=>{q((()=>Pe(A,"appload",{detail:{namespace:e}})))};var ht=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){b(e,r)}}return void 0};var $t=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var yt=(e,t)=>h(e).l.get(t);var mt=(e,t,n,r)=>{const s=h(e);if(!s){throw new Error(`Couldn't find host element for "${r.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`)}const i=s.$hostElement$;const o=s.l.get(t);const l=s.i;const f=s.t;n=Ne(n,r.R[t][0],!!(r.i&64));const a=Number.isNaN(o)&&Number.isNaN(n);const c=n!==o&&!a;if((!(l&8)||o===void 0)&&c){s.l.set(t,n);if(f){if(r.J&&l&128){const e=r.J[t];if(e){e.map((e=>{try{f[e](n,o,t)}catch(e){b(e,i)}}))}}if((l&(2|16))===2){if(f.componentShouldUpdate){if(f.componentShouldUpdate(n,o,t)===false){return}}ot(s,false)}}}};var bt=(e,n,r)=>{var s,i;const o=e.prototype;if(n.i&64&&r&1){U.forEach((e=>{Object.defineProperty(o,e,{value(...t){const n=h(this);const r=n.t;if(!r){n.p.then((n=>{const r=n[e];typeof r==="function"&&r.call(n,...t)}))}else{const n=r[e];typeof n==="function"&&n.call(r,...t)}}})}))}if(n.R||(n.J||e.watchers)){if(e.watchers&&!n.J){n.J=e.watchers}const l=Object.entries((s=n.R)!=null?s:{});l.map((([e,[t]])=>{if(t&31||r&2&&t&32){const{get:s,set:i}=Object.getOwnPropertyDescriptor(o,e)||{};if(s)n.R[e][0]|=2048;if(i)n.R[e][0]|=4096;if(r&1||!s){Object.defineProperty(o,e,{get(){{if((n.R[e][0]&2048)===0){return yt(this,e)}const t=h(this);const r=t?t.t:o;if(!r)return;return r[e]}},configurable:true,enumerable:true})}Object.defineProperty(o,e,{set(s){const o=h(this);if(i){const r=t&32?this[e]:o.$hostElement$[e];if(typeof r==="undefined"&&o.l.get(e)){s=o.l.get(e)}else if(!o.l.get(e)&&r){o.l.set(e,r)}i.apply(this,[Ne(s,t,!!(n.i&64))]);s=t&32?this[e]:o.$hostElement$[e];mt(this,e,s,n);return}{if((r&1)===0||(n.R[e][0]&4096)===0){mt(this,e,s,n);if(r&1&&!o.t){o.p.then((()=>{if(n.R[e][0]&4096&&o.t[e]!==o.l.get(e)){o.t[e]=s}}))}return}const i=()=>{const r=o.t[e];if(!o.l.get(e)&&r){o.l.set(e,r)}o.t[e]=Ne(s,t,!!(n.i&64));mt(this,e,o.t[e],n)};if(o.t){i()}else{o.p.then((()=>i()))}}}})}else if(r&1&&t&64){Object.defineProperty(o,e,{value(...t){var n;const r=h(this);return(n=r==null?void 0:r.u)==null?void 0:n.then((()=>{var n;return(n=r.t)==null?void 0:n[e](...t)}))}})}}));if(r&1){const r=new Map;o.attributeChangedCallback=function(e,s,i){D.jmp((()=>{var l;const f=r.get(e);if(this.hasOwnProperty(f)&&t.lazyLoad){i=this[f];delete this[f]}else if(o.hasOwnProperty(f)&&typeof this[f]==="number"&&this[f]==i){return}else if(f==null){const t=h(this);const r=t==null?void 0:t.i;if(r&&!(r&8)&&r&128&&i!==s){const r=t.t;const o=(l=n.J)==null?void 0:l[e];o==null?void 0:o.forEach((t=>{if(r[t]!=null){r[t].call(r,i,s,e)}}))}return}const a=Object.getOwnPropertyDescriptor(o,f);i=i===null&&typeof this[f]==="boolean"?false:i;if(i!==this[f]&&(!a.get||!!a.set)){this[f]=i}}))};e.observedAttributes=Array.from(new Set([...Object.keys((i=n.J)!=null?i:{}),...l.filter((([e,t])=>t[0]&15)).map((([e,t])=>{var s;const i=t[1]||e;r.set(i,e);if(t[0]&512){(s=n.V)==null?void 0:s.push([e,i])}return i}))]))}}return e};var wt=async(e,t,n,r)=>{let s;if((t.i&32)===0){t.i|=32;const r=n.m;if(r){const r=g(n,t);if(r&&"then"in r){const e=pe();s=await r;e()}else{s=r}if(!s){throw new Error(`Constructor for "${n.$}#${t.Y}" was not found`)}if(!s.isProxied){{n.J=s.watchers}bt(s,n,2);s.isProxied=true}const i=de("createInstance",n.$);{t.i|=8}try{new s(t)}catch(t){b(t,e)}{t.i&=-9}{t.i|=128}i();gt(t.t,e)}else{s=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.i|=128))}if(s&&s.style){let e;if(typeof s.style==="string"){e=s.style}const t=We(n);if(!S.has(t)){const r=de("registerStyles",n.$);Ae(t,e,!!(n.i&1));r()}}}const i=t.H;const o=()=>ot(t,true);if(i&&i["s-rc"]){i["s-rc"].push(o)}else{o()}};var gt=(e,t)=>{{ht(e,"connectedCallback",void 0,t)}};var St=e=>{if((D.i&1)===0){const t=h(e);const n=t.o;const r=de("connectedCallback",n.$);if(!(t.i&1)){t.i|=1;let r;{r=e.getAttribute(E);if(r){if(n.i&1){const t=De(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}Se(e,n.$,r,t)}}{let n=e;while(n=n.parentNode||n.host){if(n.nodeType===1&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){it(t,t.H=n);break}}}if(n.R){Object.entries(n.R).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{wt(e,t,n)}}else{Ct(e,t,n.q);if(t==null?void 0:t.t){gt(t.t,e)}else if(t==null?void 0:t.p){t.p.then((()=>gt(t.t,e)))}}r()}};var jt=(e,t)=>{{ht(e,"disconnectedCallback",void 0,t||e)}};var Ot=async e=>{if((D.i&1)===0){const t=h(e);{if(t.B){t.B.map((e=>e()));t.B=void 0}}if(t==null?void 0:t.t){jt(t.t,e)}else if(t==null?void 0:t.p){t.p.then((()=>jt(t.t,e)))}}if(Ue.has(e)){Ue.delete(e)}if(e.shadowRoot&&Ue.has(e.shadowRoot)){Ue.delete(e.shadowRoot)}};var kt=(e,t={})=>{var n;if(!A.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const r=de();const s=[];const i=t.exclude||[];const o=A.customElements;const l=A.document.head;const f=l.querySelector("meta[charset]");const a=A.document.createElement("style");const c=[];let u;let v=true;Object.assign(D,t);D.S=new URL(t.resourcesUrl||"./",A.document.baseURI).href;{D.i|=2}{Ve()}let d=false;e.map((e=>{e[1].map((t=>{var n;const r={i:t[0],$:t[1],R:t[2],q:t[3]};if(r.i&4){d=true}{r.R=t[2]}{r.q=t[3]}{r.V=[]}{r.J=(n=t[4])!=null?n:{}}const l=r.$;const f=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;y(e,r);if(r.i&1){{if(!e.shadowRoot){le.call(e,r)}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${r.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){const e=h(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;Ct(this,e,r.q)}if(u){clearTimeout(u);u=null}if(v){c.push(this)}else{D.jmp((()=>St(this)))}}disconnectedCallback(){D.jmp((()=>Ot(this)));D.raf((()=>{var e;const t=h(this);const n=c.findIndex((e=>e===this));if(n>-1){c.splice(n,1)}if(((e=t==null?void 0:t.U)==null?void 0:e.N)instanceof Node&&!t.U.N.isConnected){delete t.U.N}}))}componentOnReady(){return h(this).p}};if(r.i&64){f.formAssociated=true}r.m=e[0];if(!i.includes(l)&&!o.get(l)){s.push(l);o.define(l,bt(f,r,1))}}))}));if(s.length>0){if(d){a.textContent+=R}{a.textContent+=s.sort()+M}if(a.innerHTML.length){a.setAttribute("data-styles","");const e=(n=D.F)!=null?n:Q(A.document);if(e!=null){a.setAttribute("nonce",e)}l.insertBefore(a,f?f.nextSibling:l.firstChild)}}v=false;if(c.length){c.map((e=>e.connectedCallback()))}else{{D.jmp((()=>u=setTimeout(pt,30)))}}r()};var xt=(e,t)=>t;var Ct=(e,t,n,r)=>{if(n&&A.document){n.map((([n,r,s])=>{const i=It(A.document,e,n);const o=Et(t,s);const l=Nt(n);D.ael(i,r,o,l);(t.B=t.B||[]).push((()=>D.rel(i,r,o,l)))}))}};var Et=(e,t)=>n=>{var r;try{{if(e.i&256){(r=e.t)==null?void 0:r[t](n)}else{(e.T=e.T||[]).push([t,n])}}}catch(t){b(t,e.$hostElement$)}};var It=(e,t,n)=>{if(n&8){return A}return t};var Nt=e=>W?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var Mt=e=>D.F=e;export{xt as F,ye as H,Me as a,kt as b,Re as c,B as d,n as e,dt as f,s as g,he as h,F as p,$ as r,Mt as s};
3
+ //# sourceMappingURL=p-DJsXFBNm.js.map