@siemens/ix 5.2.0 → 5.2.1

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 (437) hide show
  1. package/READMEOSS.html +1 -1
  2. package/components/index.js +1 -1
  3. package/components/ix-action-card.js +1 -1
  4. package/components/ix-application-header.js +1 -1
  5. package/components/ix-application-switch-modal.js +1 -1
  6. package/components/ix-avatar.js +1 -1
  7. package/components/ix-badge.js +1 -1
  8. package/components/ix-blind.js +1 -1
  9. package/components/ix-breadcrumb-item.js +1 -1
  10. package/components/ix-breadcrumb.js +1 -1
  11. package/components/ix-button.js +1 -1
  12. package/components/ix-card-accordion.js +1 -1
  13. package/components/ix-card-list.js +1 -1
  14. package/components/ix-category-filter.js +1 -1
  15. package/components/ix-chat-attachment.js +1 -1
  16. package/components/ix-chat-input.js +1 -1
  17. package/components/ix-checkbox-group.js +1 -1
  18. package/components/ix-checkbox.js +1 -1
  19. package/components/ix-chip.js +1 -1
  20. package/components/ix-content-header.js +1 -1
  21. package/components/ix-custom-field.js +1 -1
  22. package/components/ix-date-dropdown.js +1 -1
  23. package/components/ix-date-input.js +1 -1
  24. package/components/ix-date-picker.js +1 -1
  25. package/components/ix-datetime-input.js +1 -1
  26. package/components/ix-datetime-picker.js +1 -1
  27. package/components/ix-dropdown-button.js +1 -1
  28. package/components/ix-dropdown-item.js +1 -1
  29. package/components/ix-dropdown.js +1 -1
  30. package/components/ix-empty-state.js +1 -1
  31. package/components/ix-event-list-item.js +1 -1
  32. package/components/ix-event-list.js +1 -1
  33. package/components/ix-expanding-search.js +1 -1
  34. package/components/ix-field-label.js +1 -1
  35. package/components/ix-field-wrapper.js +1 -1
  36. package/components/ix-filter-chip.js +1 -1
  37. package/components/ix-flip-tile.js +1 -1
  38. package/components/ix-group-context-menu.js +1 -1
  39. package/components/ix-group.js +1 -1
  40. package/components/ix-helper-text.js +1 -1
  41. package/components/ix-icon-button.js +1 -1
  42. package/components/ix-icon-toggle-button.js +1 -1
  43. package/components/ix-input.js +1 -1
  44. package/components/ix-menu-about-news.js +1 -1
  45. package/components/ix-menu-about.js +1 -1
  46. package/components/ix-menu-avatar-item.js +1 -1
  47. package/components/ix-menu-avatar.js +1 -1
  48. package/components/ix-menu-category.js +1 -1
  49. package/components/ix-menu-expand-icon.js +1 -1
  50. package/components/ix-menu-item.js +1 -1
  51. package/components/ix-menu-settings.js +1 -1
  52. package/components/ix-menu.js +1 -1
  53. package/components/ix-message-bar.js +1 -1
  54. package/components/ix-modal-header.js +1 -1
  55. package/components/ix-modal-loading.js +1 -1
  56. package/components/ix-modal.js +1 -1
  57. package/components/ix-number-input.js +1 -1
  58. package/components/ix-pagination.js +1 -1
  59. package/components/ix-pane.js +1 -1
  60. package/components/ix-pill.js +1 -1
  61. package/components/ix-popover-header.js +1 -1
  62. package/components/ix-popover.js +1 -1
  63. package/components/ix-progress-indicator.js +1 -1
  64. package/components/ix-push-card.js +1 -1
  65. package/components/ix-radio-group.js +1 -1
  66. package/components/ix-radio.js +1 -1
  67. package/components/ix-select-item.js +1 -1
  68. package/components/ix-select.js +1 -1
  69. package/components/ix-slider.js +1 -1
  70. package/components/ix-spinner.js +1 -1
  71. package/components/ix-split-button.js +1 -1
  72. package/components/ix-tab-item.js +1 -1
  73. package/components/ix-tabs.js +1 -1
  74. package/components/ix-textarea.js +1 -1
  75. package/components/ix-time-input.js +1 -1
  76. package/components/ix-time-picker.js +1 -1
  77. package/components/ix-toast-container.js +1 -1
  78. package/components/ix-toast.js +1 -1
  79. package/components/ix-toggle-button.js +1 -1
  80. package/components/ix-toggle.js +1 -1
  81. package/components/ix-tooltip.js +1 -1
  82. package/components/ix-upload.js +1 -1
  83. package/components/ix-workflow-step.js +1 -1
  84. package/components/{p-Bs5X90wM.js → p-B3ZUi0gM.js} +1 -1
  85. package/components/p-BE708_H3.js +1 -0
  86. package/components/p-BF2IsI5j.js +1 -0
  87. package/components/{p-l9UTiHpM.js → p-BGpGr8Qv.js} +1 -1
  88. package/components/{p-CEE0wwD3.js → p-BKCLcJ_A.js} +1 -1
  89. package/components/{p-D7sEY2UQ.js → p-BKVBe7Co.js} +1 -1
  90. package/components/{p-3U_cSqu_.js → p-BOImZPcG.js} +1 -1
  91. package/components/{p-CtZAuwv3.js → p-BpE93ty6.js} +1 -1
  92. package/components/p-BqeSHO6C.js +1 -0
  93. package/components/{p-BGOtCwtj.js → p-CAd-WgR8.js} +1 -1
  94. package/components/p-CFH9HkmQ.js +1 -0
  95. package/components/p-CGGWaScq.js +1 -0
  96. package/components/{p-WisOWbJ8.js → p-CHJbp28K.js} +1 -1
  97. package/components/{p-BQ-hS49k.js → p-CRbQNmxe.js} +1 -1
  98. package/components/{p-DmtgI24u.js → p-CYgC-XN6.js} +1 -1
  99. package/components/p-CiP3eKpd.js +1 -0
  100. package/components/{p-OxstEnSC.js → p-CqWfy46u.js} +1 -1
  101. package/components/p-D5-dW4IM.js +1 -0
  102. package/components/p-DB-zpRCO.js +1 -0
  103. package/components/{p-C21npbUc.js → p-DD206pTM.js} +1 -1
  104. package/components/{p-D_HzQCU-.js → p-DIq_C5Sa.js} +1 -1
  105. package/components/p-DKU5FVxI.js +1 -0
  106. package/components/{p-snX1FfdL.js → p-DLgZfUmI.js} +1 -1
  107. package/components/p-DXmwthlZ.js +1 -0
  108. package/components/p-D_VBAyPm.js +1 -0
  109. package/components/p-DcOoa9vE.js +1 -0
  110. package/components/{p-CatmTvkh.js → p-DyC90hvu.js} +1 -1
  111. package/components/p-DzDB4UBp.js +1 -0
  112. package/components/p-QnnFQ3fz.js +1 -0
  113. package/components/p-WX1HYV2-.js +1 -0
  114. package/components/{p-BC2PyjjU.js → p-_irxfS9S.js} +1 -1
  115. package/components/{p-CUpOF7jN.js → p-n2_EOgMr.js} +1 -1
  116. package/components/p-q_MHsaAK.js +1 -0
  117. package/components/{p-eGuQ8D3W.js → p-viP8I2_s.js} +1 -1
  118. package/dist/cjs/{a11y-_XjpTo2w.js → a11y--G19CFwe.js} +1 -0
  119. package/dist/cjs/{animation-hxDbANsw.js → animation-BIfSQAkX.js} +8 -12
  120. package/dist/cjs/{base-button-BP6iIMR7.js → base-button-DIhNZecD.js} +1 -1
  121. package/dist/cjs/{base-icon-button-BmiGQb9v.js → base-icon-button-DASKxRmK.js} +1 -1
  122. package/dist/cjs/{focus-visible.mixin-1V7Eldn_.js → focus-visible.mixin-GrZAmMez.js} +1 -1
  123. package/dist/cjs/{helper-text-util-Ci_KFQZ4.js → helper-text-util-EAfzAOH6.js} +1 -1
  124. package/dist/cjs/index.cjs.js +1 -1
  125. package/dist/cjs/inherit-aria-attributes.mixin-DZ_vNjkJ.js +306 -0
  126. package/dist/cjs/{input.fc-xGzM_I6q.js → input.fc-ellguRiE.js} +8 -3
  127. package/dist/cjs/ix-action-card.cjs.entry.js +1 -1
  128. package/dist/cjs/ix-application-header.cjs.entry.js +1 -1
  129. package/dist/cjs/ix-avatar_2.cjs.entry.js +2 -2
  130. package/dist/cjs/ix-badge.cjs.entry.js +8 -159
  131. package/dist/cjs/ix-blind.cjs.entry.js +13 -7
  132. package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +4 -157
  133. package/dist/cjs/ix-breadcrumb.cjs.entry.js +1 -1
  134. package/dist/cjs/ix-button.cjs.entry.js +4 -157
  135. package/dist/cjs/ix-card-accordion_2.cjs.entry.js +7 -4
  136. package/dist/cjs/ix-category-filter.cjs.entry.js +7 -7
  137. package/dist/cjs/ix-chat-input.cjs.entry.js +8 -8
  138. package/dist/cjs/ix-checkbox-group.cjs.entry.js +1 -1
  139. package/dist/cjs/ix-checkbox.cjs.entry.js +1 -1
  140. package/dist/cjs/ix-chip.cjs.entry.js +2 -157
  141. package/dist/cjs/ix-col_4.cjs.entry.js +5 -5
  142. package/dist/cjs/ix-date-dropdown.cjs.entry.js +6 -6
  143. package/dist/cjs/ix-date-input.cjs.entry.js +3 -3
  144. package/dist/cjs/ix-date-picker.cjs.entry.js +15 -11
  145. package/dist/cjs/ix-datetime-input.cjs.entry.js +3 -3
  146. package/dist/cjs/ix-dropdown-button.cjs.entry.js +9 -6
  147. package/dist/cjs/ix-dropdown_2.cjs.entry.js +13 -7
  148. package/dist/cjs/ix-event-list-item.cjs.entry.js +1 -1
  149. package/dist/cjs/ix-event-list.cjs.entry.js +6 -2
  150. package/dist/cjs/ix-field-label_2.cjs.entry.js +2 -2
  151. package/dist/cjs/ix-filter-chip_2.cjs.entry.js +2 -2
  152. package/dist/cjs/ix-flip-tile.cjs.entry.js +1 -1
  153. package/dist/cjs/ix-group.cjs.entry.js +9 -9
  154. package/dist/cjs/ix-helper-text.cjs.entry.js +2 -2
  155. package/dist/cjs/ix-icon-button_2.cjs.entry.js +5 -160
  156. package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +5 -160
  157. package/dist/cjs/ix-input.cjs.entry.js +3 -3
  158. package/dist/cjs/ix-menu-avatar.cjs.entry.js +1 -1
  159. package/dist/cjs/ix-menu-category.cjs.entry.js +24 -166
  160. package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +3 -3
  161. package/dist/cjs/ix-menu-item.cjs.entry.js +11 -160
  162. package/dist/cjs/ix-menu.cjs.entry.js +40 -18
  163. package/dist/cjs/ix-modal-content_2.cjs.entry.js +2 -2
  164. package/dist/cjs/ix-modal.cjs.entry.js +15 -8
  165. package/dist/cjs/ix-number-input.cjs.entry.js +16 -13
  166. package/dist/cjs/ix-pagination.cjs.entry.js +3 -3
  167. package/dist/cjs/ix-pane.cjs.entry.js +2 -2
  168. package/dist/cjs/ix-pill_4.cjs.entry.js +12 -160
  169. package/dist/cjs/ix-popover-header.cjs.entry.js +1 -1
  170. package/dist/cjs/ix-popover.cjs.entry.js +5 -156
  171. package/dist/cjs/ix-radio.cjs.entry.js +1 -1
  172. package/dist/cjs/ix-select.cjs.entry.js +10 -10
  173. package/dist/cjs/ix-slider.cjs.entry.js +1 -1
  174. package/dist/cjs/ix-textarea.cjs.entry.js +3 -3
  175. package/dist/cjs/ix-time-input.cjs.entry.js +3 -3
  176. package/dist/cjs/ix-toggle-button.cjs.entry.js +4 -159
  177. package/dist/cjs/ix-toggle.cjs.entry.js +2 -155
  178. package/dist/cjs/ix-tooltip.cjs.entry.js +6 -2
  179. package/dist/cjs/ix-tree.cjs.entry.js +1 -0
  180. package/dist/cjs/ix-upload.cjs.entry.js +1 -1
  181. package/dist/cjs/ix-workflow-step.cjs.entry.js +11 -5
  182. package/dist/cjs/loader.cjs.js +1 -1
  183. package/dist/cjs/siemens-ix.cjs.js +1 -1
  184. package/dist/collection/components/badge/badge.js +7 -5
  185. package/dist/collection/components/badge/test/badge.page.js +6 -2
  186. package/dist/collection/components/blind/blind.js +11 -5
  187. package/dist/collection/components/breadcrumb-item/breadcrumb-item.css +108 -0
  188. package/dist/collection/components/button/button.css +54 -0
  189. package/dist/collection/components/card-accordion/card-accordion.js +7 -4
  190. package/dist/collection/components/category-filter/category-filter.css +54 -0
  191. package/dist/collection/components/category-filter/category-filter.js +4 -4
  192. package/dist/collection/components/chat-input/chat-input.js +8 -8
  193. package/dist/collection/components/checkbox-group/checkbox-group.css +1 -1
  194. package/dist/collection/components/date-dropdown/date-dropdown.js +4 -4
  195. package/dist/collection/components/date-picker/date-picker.js +15 -11
  196. package/dist/collection/components/dropdown/dropdown.js +11 -5
  197. package/dist/collection/components/dropdown-button/dropdown-button.css +9 -180
  198. package/dist/collection/components/dropdown-button/dropdown-button.js +7 -4
  199. package/dist/collection/components/event-list/event-list.js +6 -2
  200. package/dist/collection/components/group/group.js +9 -9
  201. package/dist/collection/components/icon-button/icon-button.css +54 -0
  202. package/dist/collection/components/icon-toggle-button/icon-toggle-button.css +54 -0
  203. package/dist/collection/components/input/input.util.js +6 -1
  204. package/dist/collection/components/input/number-input.js +13 -10
  205. package/dist/collection/components/menu/menu-expand-icon.css +6 -0
  206. package/dist/collection/components/menu/menu.js +39 -17
  207. package/dist/collection/components/menu-category/menu-category.js +22 -11
  208. package/dist/collection/components/menu-item/menu-item.js +9 -5
  209. package/dist/collection/components/modal/modal.js +13 -6
  210. package/dist/collection/components/modal-header/modal-header.js +2 -2
  211. package/dist/collection/components/pagination/pagination.css +54 -0
  212. package/dist/collection/components/popover/popover.js +3 -1
  213. package/dist/collection/components/popover/test/popover.page.js +3 -2
  214. package/dist/collection/components/select/select.js +9 -9
  215. package/dist/collection/components/tabs/tabs.js +10 -5
  216. package/dist/collection/components/time-picker/test/expect-defined.js +13 -0
  217. package/dist/collection/components/time-picker/time-picker.js +5 -5
  218. package/dist/collection/components/toggle-button/toggle-button.css +54 -0
  219. package/dist/collection/components/tooltip/tooltip.js +6 -2
  220. package/dist/collection/components/utils/a11y.js +1 -1
  221. package/dist/collection/components/utils/animation.js +8 -12
  222. package/dist/collection/components/utils/internal/mixins/accessibility/aria-attribute-observer.js +106 -0
  223. package/dist/collection/components/utils/internal/mixins/accessibility/inherit-aria-attributes.mixin.js +175 -166
  224. package/dist/collection/components/utils/lazy-list/lazy.js +1 -0
  225. package/dist/collection/components/workflow-step/workflow-step.css +2 -2
  226. package/dist/collection/components/workflow-step/workflow-step.js +10 -4
  227. package/dist/collection/tests/utils/test/page.js +3 -0
  228. package/dist/esm/{a11y-C21npbUc.js → a11y-DD206pTM.js} +1 -1
  229. package/dist/esm/{animation-DNIQ2C1K.js → animation-BqeSHO6C.js} +8 -12
  230. package/dist/esm/{base-button-DZdtpLxn.js → base-button-Oanl-VqF.js} +1 -1
  231. package/dist/esm/{base-icon-button-DufFLJC-.js → base-icon-button-CxmfMOOd.js} +1 -1
  232. package/dist/esm/{focus-visible.mixin-CaRK3Ex_.js → focus-visible.mixin-DNYMa4dY.js} +1 -1
  233. package/dist/esm/{helper-text-util-sQKO6RPJ.js → helper-text-util-BJ-ZMW2J.js} +1 -1
  234. package/dist/esm/index.js +1 -1
  235. package/dist/esm/inherit-aria-attributes.mixin-BmTKblYV.js +304 -0
  236. package/dist/esm/{input.fc-DliqEtCM.js → input.fc-Cwmx0lGN.js} +8 -3
  237. package/dist/esm/ix-action-card.entry.js +1 -1
  238. package/dist/esm/ix-application-header.entry.js +1 -1
  239. package/dist/esm/ix-avatar_2.entry.js +2 -2
  240. package/dist/esm/ix-badge.entry.js +8 -159
  241. package/dist/esm/ix-blind.entry.js +13 -7
  242. package/dist/esm/ix-breadcrumb-item.entry.js +4 -157
  243. package/dist/esm/ix-breadcrumb.entry.js +1 -1
  244. package/dist/esm/ix-button.entry.js +4 -157
  245. package/dist/esm/ix-card-accordion_2.entry.js +7 -4
  246. package/dist/esm/ix-category-filter.entry.js +7 -7
  247. package/dist/esm/ix-chat-input.entry.js +8 -8
  248. package/dist/esm/ix-checkbox-group.entry.js +1 -1
  249. package/dist/esm/ix-checkbox.entry.js +1 -1
  250. package/dist/esm/ix-chip.entry.js +2 -157
  251. package/dist/esm/ix-col_4.entry.js +5 -5
  252. package/dist/esm/ix-date-dropdown.entry.js +6 -6
  253. package/dist/esm/ix-date-input.entry.js +3 -3
  254. package/dist/esm/ix-date-picker.entry.js +15 -11
  255. package/dist/esm/ix-datetime-input.entry.js +3 -3
  256. package/dist/esm/ix-dropdown-button.entry.js +9 -6
  257. package/dist/esm/ix-dropdown_2.entry.js +13 -7
  258. package/dist/esm/ix-event-list-item.entry.js +1 -1
  259. package/dist/esm/ix-event-list.entry.js +6 -2
  260. package/dist/esm/ix-field-label_2.entry.js +2 -2
  261. package/dist/esm/ix-filter-chip_2.entry.js +2 -2
  262. package/dist/esm/ix-flip-tile.entry.js +1 -1
  263. package/dist/esm/ix-group.entry.js +9 -9
  264. package/dist/esm/ix-helper-text.entry.js +2 -2
  265. package/dist/esm/ix-icon-button_2.entry.js +5 -160
  266. package/dist/esm/ix-icon-toggle-button.entry.js +5 -160
  267. package/dist/esm/ix-input.entry.js +3 -3
  268. package/dist/esm/ix-menu-avatar.entry.js +1 -1
  269. package/dist/esm/ix-menu-category.entry.js +24 -166
  270. package/dist/esm/ix-menu-expand-icon.entry.js +3 -3
  271. package/dist/esm/ix-menu-item.entry.js +11 -160
  272. package/dist/esm/ix-menu.entry.js +40 -18
  273. package/dist/esm/ix-modal-content_2.entry.js +2 -2
  274. package/dist/esm/ix-modal.entry.js +15 -8
  275. package/dist/esm/ix-number-input.entry.js +16 -13
  276. package/dist/esm/ix-pagination.entry.js +3 -3
  277. package/dist/esm/ix-pane.entry.js +2 -2
  278. package/dist/esm/ix-pill_4.entry.js +12 -160
  279. package/dist/esm/ix-popover-header.entry.js +1 -1
  280. package/dist/esm/ix-popover.entry.js +5 -156
  281. package/dist/esm/ix-radio.entry.js +1 -1
  282. package/dist/esm/ix-select.entry.js +10 -10
  283. package/dist/esm/ix-slider.entry.js +1 -1
  284. package/dist/esm/ix-textarea.entry.js +3 -3
  285. package/dist/esm/ix-time-input.entry.js +3 -3
  286. package/dist/esm/ix-toggle-button.entry.js +4 -159
  287. package/dist/esm/ix-toggle.entry.js +2 -155
  288. package/dist/esm/ix-tooltip.entry.js +6 -2
  289. package/dist/esm/ix-tree.entry.js +1 -0
  290. package/dist/esm/ix-upload.entry.js +1 -1
  291. package/dist/esm/ix-workflow-step.entry.js +11 -5
  292. package/dist/esm/loader.js +1 -1
  293. package/dist/esm/siemens-ix.js +1 -1
  294. package/dist/siemens-ix/index.esm.js +1 -1
  295. package/dist/siemens-ix/p-0409f281.entry.js +1 -0
  296. package/dist/siemens-ix/{p-2e780c86.entry.js → p-0819923e.entry.js} +1 -1
  297. package/dist/siemens-ix/p-0b875bbd.entry.js +1 -0
  298. package/dist/siemens-ix/p-1a7b51d8.entry.js +1 -0
  299. package/dist/siemens-ix/{p-2b0ffba0.entry.js → p-1aef893c.entry.js} +1 -1
  300. package/dist/siemens-ix/{p-03745110.entry.js → p-213059a9.entry.js} +1 -1
  301. package/dist/siemens-ix/p-24138425.entry.js +1 -0
  302. package/dist/siemens-ix/{p-29e8126a.entry.js → p-32104d25.entry.js} +1 -1
  303. package/dist/siemens-ix/{p-447d52de.entry.js → p-35042cda.entry.js} +1 -1
  304. package/dist/siemens-ix/p-351e8732.entry.js +1 -0
  305. package/dist/siemens-ix/{p-884fd236.entry.js → p-38eef16a.entry.js} +1 -1
  306. package/dist/siemens-ix/p-3a60004f.entry.js +1 -0
  307. package/dist/siemens-ix/p-3ad11c04.entry.js +1 -0
  308. package/dist/siemens-ix/p-3c92d126.entry.js +1 -0
  309. package/dist/siemens-ix/{p-d0649c07.entry.js → p-3fe85552.entry.js} +1 -1
  310. package/dist/siemens-ix/{p-f4575603.entry.js → p-40239cf6.entry.js} +1 -1
  311. package/dist/siemens-ix/{p-a92495b8.entry.js → p-403b7d10.entry.js} +1 -1
  312. package/dist/siemens-ix/p-4739e88e.entry.js +1 -0
  313. package/dist/siemens-ix/p-4c765c73.entry.js +1 -0
  314. package/dist/siemens-ix/{p-0b10bb78.entry.js → p-50ece3e2.entry.js} +1 -1
  315. package/dist/siemens-ix/p-53319a22.entry.js +1 -0
  316. package/dist/siemens-ix/{p-1fbb010f.entry.js → p-571a1628.entry.js} +1 -1
  317. package/dist/siemens-ix/{p-4079292f.entry.js → p-60f7be48.entry.js} +1 -1
  318. package/dist/siemens-ix/p-643ed439.entry.js +1 -0
  319. package/dist/siemens-ix/p-6505e43d.entry.js +1 -0
  320. package/dist/siemens-ix/{p-217dc62a.entry.js → p-675e2aa8.entry.js} +1 -1
  321. package/dist/siemens-ix/{p-99b97922.entry.js → p-79a08a2a.entry.js} +1 -1
  322. package/dist/siemens-ix/p-83827bb2.entry.js +1 -0
  323. package/dist/siemens-ix/p-859294b4.entry.js +1 -0
  324. package/dist/siemens-ix/p-8af23465.entry.js +1 -0
  325. package/dist/siemens-ix/{p-6ffe8ec7.entry.js → p-8bc225b7.entry.js} +1 -1
  326. package/dist/siemens-ix/p-9254cb19.entry.js +1 -0
  327. package/dist/siemens-ix/p-9c6e5dcc.entry.js +1 -0
  328. package/dist/siemens-ix/{p-bf827cb3.entry.js → p-9df616d3.entry.js} +1 -1
  329. package/dist/siemens-ix/p-Bemn50Nk.js +1 -0
  330. package/dist/siemens-ix/p-BqeSHO6C.js +1 -0
  331. package/dist/siemens-ix/{p-HpQs38Y0.js → p-CDKWxg_L.js} +1 -1
  332. package/dist/siemens-ix/{p-CXbob2Ew.js → p-CLxF-dX8.js} +1 -1
  333. package/dist/siemens-ix/p-Cv_omozQ.js +1 -0
  334. package/dist/siemens-ix/{p-C21npbUc.js → p-DD206pTM.js} +1 -1
  335. package/dist/siemens-ix/p-a05bf6b5.entry.js +1 -0
  336. package/dist/siemens-ix/p-a4c3f3d3.entry.js +1 -0
  337. package/dist/siemens-ix/{p-836df58e.entry.js → p-aa0770ab.entry.js} +1 -1
  338. package/dist/siemens-ix/{p-89f6329b.entry.js → p-b5bf48cb.entry.js} +1 -1
  339. package/dist/siemens-ix/p-b9dcbd84.entry.js +1 -0
  340. package/dist/siemens-ix/{p-f3528209.entry.js → p-c393c20e.entry.js} +1 -1
  341. package/dist/siemens-ix/{p-b3eaf43d.entry.js → p-caac5984.entry.js} +1 -1
  342. package/dist/siemens-ix/p-cfd75035.entry.js +1 -0
  343. package/dist/siemens-ix/{p-47e2c5a1.entry.js → p-d4d99140.entry.js} +1 -1
  344. package/dist/siemens-ix/p-d94ad8f8.entry.js +1 -0
  345. package/dist/siemens-ix/p-da700215.entry.js +1 -0
  346. package/dist/siemens-ix/p-ddb49318.entry.js +1 -0
  347. package/dist/siemens-ix/{p-1afa8fb3.entry.js → p-de9a4607.entry.js} +1 -1
  348. package/dist/siemens-ix/{p-4b85292e.entry.js → p-e2e7c16a.entry.js} +1 -1
  349. package/dist/siemens-ix/p-e5239c6d.entry.js +1 -0
  350. package/dist/siemens-ix/p-e87e947c.entry.js +1 -0
  351. package/dist/siemens-ix/p-e8d73d19.entry.js +1 -0
  352. package/dist/siemens-ix/{p-0329eb6e.entry.js → p-e8f5519f.entry.js} +1 -1
  353. package/dist/siemens-ix/{p-92804589.entry.js → p-f7f6cf46.entry.js} +1 -1
  354. package/dist/siemens-ix/{p-bd2f7002.entry.js → p-fcfecc91.entry.js} +1 -1
  355. package/dist/siemens-ix/{p-kmPsIcs5.js → p-rgh7lt60.js} +1 -1
  356. package/dist/siemens-ix/p-xptA1Kt1.js +1 -0
  357. package/dist/siemens-ix/siemens-ix.esm.js +1 -1
  358. package/dist/types/components/badge/badge.d.ts +1 -16
  359. package/dist/types/components/breadcrumb-item/breadcrumb-item.d.ts +1 -16
  360. package/dist/types/components/button/button.d.ts +1 -16
  361. package/dist/types/components/chip/chip.d.ts +1 -16
  362. package/dist/types/components/dropdown/dropdown-focus.d.ts +1 -1
  363. package/dist/types/components/group/group.d.ts +1 -1
  364. package/dist/types/components/icon-button/icon-button.d.ts +2 -17
  365. package/dist/types/components/icon-toggle-button/icon-toggle-button.d.ts +1 -16
  366. package/dist/types/components/input/input.util.d.ts +2 -3
  367. package/dist/types/components/input/number-input.d.ts +1 -0
  368. package/dist/types/components/menu/menu.d.ts +1 -1
  369. package/dist/types/components/menu-category/menu-category.d.ts +2 -17
  370. package/dist/types/components/menu-item/menu-item.d.ts +1 -16
  371. package/dist/types/components/modal/modal.d.ts +1 -0
  372. package/dist/types/components/modal-header/modal-header.d.ts +1 -1
  373. package/dist/types/components/popover/popover.d.ts +1 -16
  374. package/dist/types/components/tabs/tabs.d.ts +3 -16
  375. package/dist/types/components/time-picker/test/expect-defined.d.ts +1 -0
  376. package/dist/types/components/toggle/toggle.d.ts +1 -16
  377. package/dist/types/components/toggle-button/toggle-button.d.ts +1 -16
  378. package/dist/types/components/tree/tree.d.ts +1 -1
  379. package/dist/types/components/utils/a11y.d.ts +1 -0
  380. package/dist/types/components/utils/internal/mixins/accessibility/aria-attribute-observer.d.ts +7 -0
  381. package/dist/types/components/utils/internal/mixins/accessibility/inherit-aria-attributes.mixin.d.ts +7 -18
  382. package/dist/types/components/utils/shadow-dom.d.ts +1 -1
  383. package/dist/types/components/workflow-step/workflow-step.d.ts +1 -0
  384. package/hydrate/index.js +535 -2015
  385. package/hydrate/index.mjs +535 -2015
  386. package/package.json +1 -1
  387. package/components/p-1FBWW6v2.js +0 -1
  388. package/components/p-BDnx22Gp.js +0 -1
  389. package/components/p-BHoJOFM-.js +0 -1
  390. package/components/p-BST8QY5w.js +0 -1
  391. package/components/p-BcbFeRB0.js +0 -1
  392. package/components/p-CLDB-pmj.js +0 -1
  393. package/components/p-CRtj-KBq.js +0 -1
  394. package/components/p-CTRSoM-z.js +0 -1
  395. package/components/p-CgPr717U.js +0 -1
  396. package/components/p-CvAmaEU2.js +0 -1
  397. package/components/p-DNIQ2C1K.js +0 -1
  398. package/components/p-DdlGyKd2.js +0 -1
  399. package/components/p-DtWFUcZO.js +0 -1
  400. package/components/p-DylHkzl6.js +0 -1
  401. package/components/p-NXyac9kC.js +0 -1
  402. package/components/p-hf_zqlB1.js +0 -1
  403. package/dist/cjs/inherit-aria-attributes.mixin-EyRU0cDO.js +0 -36
  404. package/dist/esm/inherit-aria-attributes.mixin-nCmPujqf.js +0 -34
  405. package/dist/siemens-ix/p-0555a6fb.entry.js +0 -1
  406. package/dist/siemens-ix/p-05c35730.entry.js +0 -1
  407. package/dist/siemens-ix/p-0f2ac675.entry.js +0 -1
  408. package/dist/siemens-ix/p-12bce791.entry.js +0 -1
  409. package/dist/siemens-ix/p-30008054.entry.js +0 -1
  410. package/dist/siemens-ix/p-488b7074.entry.js +0 -1
  411. package/dist/siemens-ix/p-49d8b129.entry.js +0 -1
  412. package/dist/siemens-ix/p-55a57ce6.entry.js +0 -1
  413. package/dist/siemens-ix/p-55ae6204.entry.js +0 -1
  414. package/dist/siemens-ix/p-55e8ad3b.entry.js +0 -1
  415. package/dist/siemens-ix/p-5f48d238.entry.js +0 -1
  416. package/dist/siemens-ix/p-64432fa0.entry.js +0 -1
  417. package/dist/siemens-ix/p-6ebf66b8.entry.js +0 -1
  418. package/dist/siemens-ix/p-7690a56d.entry.js +0 -1
  419. package/dist/siemens-ix/p-80d7a07a.entry.js +0 -1
  420. package/dist/siemens-ix/p-816bcf01.entry.js +0 -1
  421. package/dist/siemens-ix/p-86ad005e.entry.js +0 -1
  422. package/dist/siemens-ix/p-8c3e7613.entry.js +0 -1
  423. package/dist/siemens-ix/p-8df1362f.entry.js +0 -1
  424. package/dist/siemens-ix/p-9094212f.entry.js +0 -1
  425. package/dist/siemens-ix/p-99df3561.entry.js +0 -1
  426. package/dist/siemens-ix/p-B4oiZyZC.js +0 -1
  427. package/dist/siemens-ix/p-DNIQ2C1K.js +0 -1
  428. package/dist/siemens-ix/p-a1d79970.entry.js +0 -1
  429. package/dist/siemens-ix/p-a7d695f5.entry.js +0 -1
  430. package/dist/siemens-ix/p-baf74d39.entry.js +0 -1
  431. package/dist/siemens-ix/p-bf75d77b.entry.js +0 -1
  432. package/dist/siemens-ix/p-cddc43e2.entry.js +0 -1
  433. package/dist/siemens-ix/p-cfd83faa.entry.js +0 -1
  434. package/dist/siemens-ix/p-fff1f8b1.entry.js +0 -1
  435. package/dist/siemens-ix/p-vphIrWGB.js +0 -1
  436. package/dist/siemens-ix/p-yUgQMMln.js +0 -1
  437. /package/dist/siemens-ix/{p-383e95ad.entry.js → p-f4d8f94b.entry.js} +0 -0
@@ -1 +1 @@
1
- import{p as r,M as e,e as t,h as o,d as a,t as d}from"./p-eN5fQtqO.js";import{B as i}from"./p-BQ-hS49k.js";import{g as n,a as b}from"./p-C21npbUc.js";import{D as s}from"./p-CApDAYIa.js";import{I as l}from"./p-BST8QY5w.js";import{d as c}from"./p-D7sEY2UQ.js";const h=r(class extends(e(...s,l)){constructor(r){super(!1),!1!==r&&this.__registerHost(),this.__attachShadow(),this.pressedChange=t(this,"pressedChange",7)}get hostElement(){return this}variant="subtle-primary";disabled=!1;loading=!1;icon;iconRight;pressed=!1;pressedChange;dispatchPressedChange(){this.pressedChange.emit(!this.pressed)}render(){const r={variant:this.variant,iconOnly:!1,iconOval:!1,selected:this.pressed,disabled:this.disabled||this.loading,icon:this.icon,iconRight:this.iconRight,loading:this.loading,onClick:()=>this.dispatchPressedChange(),type:"button",ariaAttributes:{...this.inheritAriaAttributes,"aria-pressed":b(this.pressed),"aria-label":this.inheritAriaAttributes["aria-label"]??n(this.icon)}};return o(a,{key:"128350f4501a9f4eb89c6510edafe59c00a0b1e8",class:{disabled:this.disabled||this.loading}},o(i,{key:"9dc929b6fa46e7260b5504b2627c94c794916ad5",...r},o("slot",{key:"b98585200dbee6bfdda03aa1d06243e72106c3e7"})))}static get watchers(){return{role:[{ariaAttributeChanged:0}],"aria-activedescendant":[{ariaAttributeChanged:0}],"aria-atomic":[{ariaAttributeChanged:0}],"aria-autocomplete":[{ariaAttributeChanged:0}],"aria-braillelabel":[{ariaAttributeChanged:0}],"aria-brailleroledescription":[{ariaAttributeChanged:0}],"aria-busy":[{ariaAttributeChanged:0}],"aria-checked":[{ariaAttributeChanged:0}],"aria-colcount":[{ariaAttributeChanged:0}],"aria-colindex":[{ariaAttributeChanged:0}],"aria-colindextext":[{ariaAttributeChanged:0}],"aria-colspan":[{ariaAttributeChanged:0}],"aria-controls":[{ariaAttributeChanged:0}],"aria-current":[{ariaAttributeChanged:0}],"aria-describedby":[{ariaAttributeChanged:0}],"aria-description":[{ariaAttributeChanged:0}],"aria-details":[{ariaAttributeChanged:0}],"aria-disabled":[{ariaAttributeChanged:0}],"aria-errormessage":[{ariaAttributeChanged:0}],"aria-expanded":[{ariaAttributeChanged:0}],"aria-flowto":[{ariaAttributeChanged:0}],"aria-haspopup":[{ariaAttributeChanged:0}],"aria-hidden":[{ariaAttributeChanged:0}],"aria-invalid":[{ariaAttributeChanged:0}],"aria-keyshortcuts":[{ariaAttributeChanged:0}],"aria-label":[{ariaAttributeChanged:0}],"aria-labelledby":[{ariaAttributeChanged:0}],"aria-level":[{ariaAttributeChanged:0}],"aria-live":[{ariaAttributeChanged:0}],"aria-multiline":[{ariaAttributeChanged:0}],"aria-multiselectable":[{ariaAttributeChanged:0}],"aria-orientation":[{ariaAttributeChanged:0}],"aria-owns":[{ariaAttributeChanged:0}],"aria-placeholder":[{ariaAttributeChanged:0}],"aria-posinset":[{ariaAttributeChanged:0}],"aria-pressed":[{ariaAttributeChanged:0}],"aria-readonly":[{ariaAttributeChanged:0}],"aria-relevant":[{ariaAttributeChanged:0}],"aria-required":[{ariaAttributeChanged:0}],"aria-roledescription":[{ariaAttributeChanged:0}],"aria-rowcount":[{ariaAttributeChanged:0}],"aria-rowindex":[{ariaAttributeChanged:0}],"aria-rowindextext":[{ariaAttributeChanged:0}],"aria-rowspan":[{ariaAttributeChanged:0}],"aria-selected":[{ariaAttributeChanged:0}],"aria-setsize":[{ariaAttributeChanged:0}],"aria-sort":[{ariaAttributeChanged:0}],"aria-valuemax":[{ariaAttributeChanged:0}],"aria-valuemin":[{ariaAttributeChanged:0}],"aria-valuenow":[{ariaAttributeChanged:0}],"aria-valuetext":[{ariaAttributeChanged:0}]}}static get style(){return":host{--ix-button-border-radius-left:var(--theme-btn--border-radius);--ix-button-border-radius-right:var(--theme-btn--border-radius);display:inline-block;height:2rem;vertical-align:middle;cursor:pointer;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.429em;color:var(--theme-color-std-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale}: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 *{}:host *::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host *{}: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 *{}:host *::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host *{}:host *::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host *::-webkit-scrollbar-corner{display:none}:host button,:host a{all:unset;box-sizing:border-box;display:inline-flex;flex-direction:row;flex-wrap:nowrap;overflow:hidden;align-items:center;justify-content:center;width:100%;height:100%;padding:var(--ix-button-padding, 0 0.5rem)}:host ix-spinner{margin-right:0.25rem}:host .content{display:inline-block;position:relative;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host .content-start{width:100%}:host .icon{pointer-events:none;margin-right:0.25rem}:host .icon-right{margin-left:0.25rem}:host(.disabled){cursor:default}:host(.ix-focused) .btn{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn:focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host{--ix-button-border-radius-left:var(--theme-btn--border-radius);--ix-button-border-radius-right:var(--theme-btn--border-radius);display:inline-block;height:2rem;vertical-align:middle;cursor:pointer;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.429em;color:var(--theme-color-std-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale}: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 *{}:host *::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host *{}: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 *{}:host *::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host *{}:host *::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host *::-webkit-scrollbar-corner{display:none}:host button,:host a{all:unset;box-sizing:border-box;display:inline-flex;flex-direction:row;flex-wrap:nowrap;overflow:hidden;align-items:center;justify-content:center;width:100%;height:100%;padding:var(--ix-button-padding, 0 0.5rem)}:host ix-spinner{margin-right:0.25rem}:host .content{display:inline-block;position:relative;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host .content-start{width:100%}:host .icon{pointer-events:none;margin-right:0.25rem}:host .icon-right{margin-left:0.25rem}:host(.disabled){cursor:default}:host(.ix-focused) .btn{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn:focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn-primary{text-align:start;border-top-left-radius:var(--ix-button-border-radius-left);border-bottom-left-radius:var(--ix-button-border-radius-left);border-top-right-radius:var(--ix-button-border-radius-right);border-bottom-right-radius:var(--ix-button-border-radius-right)}:host .btn-primary{background-color:var(--theme-btn-primary--background);color:var(--theme-btn-primary--color);--ix-button-color:var(--theme-btn-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-primary--border-color);border-style:solid}:host .btn-primary.selected{background-color:var(--theme-btn-primary--background--pressed);color:var(--theme-btn-primary--color--pressed)}:host .btn-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-primary.selected:not(.disabled):not(:disabled):hover,:host .btn-primary.selected:not(.disabled):not(:disabled).hover{background-color:var(--theme-btn-primary--background--pressed-hover);color:var(--theme-btn-primary--color--pressed-hover)}:host .btn-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-primary.selected:not(.disabled):not(:disabled):active,:host .btn-primary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-primary--background--pressed-hover);color:var(--theme-btn-primary--color--pressed-active)}:host .btn-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-primary:not(.disabled):not(:disabled):hover,:host .btn-primary:not(.disabled):not(:disabled).hover{border-color:var(--theme-btn-primary--border-color--hover);background-color:var(--theme-btn-primary--background--hover);color:var(--theme-btn-primary--color--hover)}:host .btn-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-primary:not(.disabled):not(:disabled):active,:host .btn-primary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-primary--border-color--active);background-color:var(--theme-btn-primary--background--active);color:var(--theme-btn-primary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-primary.disabled,:host(.disabled) .btn-primary:disabled{pointer-events:none;border-color:var(--theme-btn-primary--border-color--disabled);background-color:var(--theme-btn-primary--background--disabled);color:var(--theme-btn-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-primary--color--disabled)}:host .btn-secondary{text-align:start;border-top-left-radius:var(--ix-button-border-radius-left);border-bottom-left-radius:var(--ix-button-border-radius-left);border-top-right-radius:var(--ix-button-border-radius-right);border-bottom-right-radius:var(--ix-button-border-radius-right)}:host .btn-secondary{background-color:var(--theme-btn-secondary--background);color:var(--theme-btn-secondary--color);--ix-button-color:var(--theme-btn-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-secondary--border-color);border-style:solid}:host .btn-secondary.selected{background-color:var(--theme-btn-secondary--background--pressed);color:var(--theme-btn-secondary--color--pressed)}:host .btn-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-secondary.selected:not(.disabled):not(:disabled):hover,:host .btn-secondary.selected:not(.disabled):not(:disabled).hover{background-color:var(--theme-btn-secondary--background--pressed-hover);color:var(--theme-btn-secondary--color--pressed-hover)}:host .btn-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-secondary.selected:not(.disabled):not(:disabled):active,:host .btn-secondary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-secondary--background--pressed-hover);color:var(--theme-btn-secondary--color--pressed-active)}:host .btn-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-secondary:not(.disabled):not(:disabled):hover,:host .btn-secondary:not(.disabled):not(:disabled).hover{border-color:var(--theme-btn-secondary--border-color--hover);background-color:var(--theme-btn-secondary--background--hover);color:var(--theme-btn-secondary--color--hover)}:host .btn-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-secondary:not(.disabled):not(:disabled):active,:host .btn-secondary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-secondary--border-color--active);background-color:var(--theme-btn-secondary--background--active);color:var(--theme-btn-secondary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-secondary.disabled,:host(.disabled) .btn-secondary:disabled{pointer-events:none;border-color:var(--theme-btn-secondary--border-color--disabled);background-color:var(--theme-btn-secondary--background--disabled);color:var(--theme-btn-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-secondary--color--disabled)}:host .btn-tertiary{text-align:start;border-top-left-radius:var(--ix-button-border-radius-left);border-bottom-left-radius:var(--ix-button-border-radius-left);border-top-right-radius:var(--ix-button-border-radius-right);border-bottom-right-radius:var(--ix-button-border-radius-right)}:host .btn-tertiary{background-color:var(--theme-btn-tertiary--background);color:var(--theme-btn-tertiary--color);--ix-button-color:var(--theme-btn-tertiary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-tertiary--border-color);border-style:solid}:host .btn-tertiary.selected{background-color:var(--theme-btn-tertiary--background--pressed);color:var(--theme-btn-tertiary--color--pressed)}:host .btn-tertiary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-tertiary.selected:not(.disabled):not(:disabled):hover,:host .btn-tertiary.selected:not(.disabled):not(:disabled).hover{background-color:var(--theme-btn-tertiary--background--pressed-hover);color:var(--theme-btn-tertiary--color--pressed-hover)}:host .btn-tertiary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-tertiary.selected:not(.disabled):not(:disabled):active,:host .btn-tertiary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-tertiary--background--pressed-hover);color:var(--theme-btn-tertiary--color--pressed-active)}:host .btn-tertiary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-tertiary:not(.disabled):not(:disabled):hover,:host .btn-tertiary:not(.disabled):not(:disabled).hover{border-color:var(--theme-btn-tertiary--border-color--hover);background-color:var(--theme-btn-tertiary--background--hover);color:var(--theme-btn-tertiary--color--hover)}:host .btn-tertiary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-tertiary:not(.disabled):not(:disabled):active,:host .btn-tertiary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-tertiary--border-color--active);background-color:var(--theme-btn-tertiary--background--active);color:var(--theme-btn-tertiary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-tertiary.disabled,:host(.disabled) .btn-tertiary:disabled{pointer-events:none;border-color:var(--theme-btn-tertiary--border-color--disabled);background-color:var(--theme-btn-tertiary--background--disabled);color:var(--theme-btn-tertiary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-tertiary--color--disabled)}:host .btn-subtle-primary{text-align:start;border-top-left-radius:var(--ix-button-border-radius-left);border-bottom-left-radius:var(--ix-button-border-radius-left);border-top-right-radius:var(--ix-button-border-radius-right);border-bottom-right-radius:var(--ix-button-border-radius-right)}:host .btn-subtle-primary{background-color:var(--theme-btn-subtle-primary--background);color:var(--theme-btn-subtle-primary--color);--ix-button-color:var(--theme-btn-subtle-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-subtle-primary--border-color);border-style:solid}:host .btn-subtle-primary.selected{background-color:var(--theme-btn-subtle-primary--background--pressed);color:var(--theme-btn-subtle-primary--color--pressed)}:host .btn-subtle-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-primary.selected:not(.disabled):not(:disabled):hover,:host .btn-subtle-primary.selected:not(.disabled):not(:disabled).hover{background-color:var(--theme-btn-subtle-primary--background--pressed-hover);color:var(--theme-btn-subtle-primary--color--pressed-hover)}:host .btn-subtle-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-primary.selected:not(.disabled):not(:disabled):active,:host .btn-subtle-primary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-subtle-primary--background--pressed-hover);color:var(--theme-btn-subtle-primary--color--pressed-active)}:host .btn-subtle-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-primary:not(.disabled):not(:disabled):hover,:host .btn-subtle-primary:not(.disabled):not(:disabled).hover{border-color:var(--theme-btn-subtle-primary--border-color--hover);background-color:var(--theme-btn-subtle-primary--background--hover);color:var(--theme-btn-subtle-primary--color--hover)}:host .btn-subtle-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-primary:not(.disabled):not(:disabled):active,:host .btn-subtle-primary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-subtle-primary--border-color--active);background-color:var(--theme-btn-subtle-primary--background--active);color:var(--theme-btn-subtle-primary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-subtle-primary.disabled,:host(.disabled) .btn-subtle-primary:disabled{pointer-events:none;border-color:var(--theme-btn-subtle-primary--border-color--disabled);background-color:var(--theme-btn-subtle-primary--background--disabled);color:var(--theme-btn-subtle-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-subtle-primary--color--disabled)}:host .btn-subtle-secondary{text-align:start;border-top-left-radius:var(--ix-button-border-radius-left);border-bottom-left-radius:var(--ix-button-border-radius-left);border-top-right-radius:var(--ix-button-border-radius-right);border-bottom-right-radius:var(--ix-button-border-radius-right)}:host .btn-subtle-secondary{background-color:var(--theme-btn-subtle-secondary--background);color:var(--theme-btn-subtle-secondary--color);--ix-button-color:var(--theme-btn-subtle-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-subtle-secondary--border-color);border-style:solid}:host .btn-subtle-secondary.selected{background-color:var(--theme-btn-subtle-secondary--background--pressed);color:var(--theme-btn-subtle-secondary--color--pressed)}:host .btn-subtle-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-secondary.selected:not(.disabled):not(:disabled):hover,:host .btn-subtle-secondary.selected:not(.disabled):not(:disabled).hover{background-color:var(--theme-btn-subtle-secondary--background--pressed-hover);color:var(--theme-btn-subtle-secondary--color--pressed-hover)}:host .btn-subtle-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-secondary.selected:not(.disabled):not(:disabled):active,:host .btn-subtle-secondary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-subtle-secondary--background--pressed-hover);color:var(--theme-btn-subtle-secondary--color--pressed-active)}:host .btn-subtle-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-secondary:not(.disabled):not(:disabled):hover,:host .btn-subtle-secondary:not(.disabled):not(:disabled).hover{border-color:var(--theme-btn-subtle-secondary--border-color--hover);background-color:var(--theme-btn-subtle-secondary--background--hover);color:var(--theme-btn-subtle-secondary--color--hover)}:host .btn-subtle-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-secondary:not(.disabled):not(:disabled):active,:host .btn-subtle-secondary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-subtle-secondary--border-color--active);background-color:var(--theme-btn-subtle-secondary--background--active);color:var(--theme-btn-subtle-secondary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-subtle-secondary.disabled,:host(.disabled) .btn-subtle-secondary:disabled{pointer-events:none;border-color:var(--theme-btn-subtle-secondary--border-color--disabled);background-color:var(--theme-btn-subtle-secondary--background--disabled);color:var(--theme-btn-subtle-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-subtle-secondary--color--disabled)}:host .btn-subtle-tertiary{text-align:start;border-top-left-radius:var(--ix-button-border-radius-left);border-bottom-left-radius:var(--ix-button-border-radius-left);border-top-right-radius:var(--ix-button-border-radius-right);border-bottom-right-radius:var(--ix-button-border-radius-right)}:host .btn-subtle-tertiary{background-color:var(--theme-btn-subtle-tertiary--background);color:var(--theme-btn-subtle-tertiary--color);--ix-button-color:var(--theme-btn-subtle-tertiary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-subtle-tertiary--border-color);border-style:solid}:host .btn-subtle-tertiary.selected{background-color:var(--theme-btn-subtle-tertiary--background--pressed);color:var(--theme-btn-subtle-tertiary--color--pressed)}:host .btn-subtle-tertiary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-tertiary.selected:not(.disabled):not(:disabled):hover,:host .btn-subtle-tertiary.selected:not(.disabled):not(:disabled).hover{background-color:var(--theme-btn-subtle-tertiary--background--pressed-hover);color:var(--theme-btn-subtle-tertiary--color--pressed-hover)}:host .btn-subtle-tertiary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-tertiary.selected:not(.disabled):not(:disabled):active,:host .btn-subtle-tertiary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-subtle-tertiary--background--pressed-hover);color:var(--theme-btn-subtle-tertiary--color--pressed-active)}:host .btn-subtle-tertiary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-tertiary:not(.disabled):not(:disabled):hover,:host .btn-subtle-tertiary:not(.disabled):not(:disabled).hover{border-color:var(--theme-btn-subtle-tertiary--border-color--hover);background-color:var(--theme-btn-subtle-tertiary--background--hover);color:var(--theme-btn-subtle-tertiary--color--hover)}:host .btn-subtle-tertiary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-tertiary:not(.disabled):not(:disabled):active,:host .btn-subtle-tertiary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-subtle-tertiary--border-color--active);background-color:var(--theme-btn-subtle-tertiary--background--active);color:var(--theme-btn-subtle-tertiary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-subtle-tertiary.disabled,:host(.disabled) .btn-subtle-tertiary:disabled{pointer-events:none;border-color:var(--theme-btn-subtle-tertiary--border-color--disabled);background-color:var(--theme-btn-subtle-tertiary--background--disabled);color:var(--theme-btn-subtle-tertiary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-subtle-tertiary--color--disabled)}:host .btn-danger-primary{text-align:start;border-top-left-radius:var(--ix-button-border-radius-left);border-bottom-left-radius:var(--ix-button-border-radius-left);border-top-right-radius:var(--ix-button-border-radius-right);border-bottom-right-radius:var(--ix-button-border-radius-right)}:host .btn-danger-primary{background-color:var(--theme-btn-danger-primary--background);color:var(--theme-btn-danger-primary--color);--ix-button-color:var(--theme-btn-danger-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-danger-primary--border-color);border-style:solid}:host .btn-danger-primary.selected{background-color:var(--theme-btn-danger-primary--background--pressed);color:var(--theme-btn-danger-primary--color--pressed)}:host .btn-danger-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-primary.selected:not(.disabled):not(:disabled):hover,:host .btn-danger-primary.selected:not(.disabled):not(:disabled).hover{background-color:var(--theme-btn-danger-primary--background--pressed-hover);color:var(--theme-btn-danger-primary--color--pressed-hover)}:host .btn-danger-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-primary.selected:not(.disabled):not(:disabled):active,:host .btn-danger-primary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-danger-primary--background--pressed-hover);color:var(--theme-btn-danger-primary--color--pressed-active)}:host .btn-danger-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-primary:not(.disabled):not(:disabled):hover,:host .btn-danger-primary:not(.disabled):not(:disabled).hover{border-color:var(--theme-btn-danger-primary--border-color--hover);background-color:var(--theme-btn-danger-primary--background--hover);color:var(--theme-btn-danger-primary--color--hover)}:host .btn-danger-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-primary:not(.disabled):not(:disabled):active,:host .btn-danger-primary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-danger-primary--border-color--active);background-color:var(--theme-btn-danger-primary--background--active);color:var(--theme-btn-danger-primary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-danger-primary.disabled,:host(.disabled) .btn-danger-primary:disabled{pointer-events:none;border-color:var(--theme-btn-danger-primary--border-color--disabled);background-color:var(--theme-btn-danger-primary--background--disabled);color:var(--theme-btn-danger-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-danger-primary--color--disabled)}:host .btn-danger-secondary{text-align:start;border-top-left-radius:var(--ix-button-border-radius-left);border-bottom-left-radius:var(--ix-button-border-radius-left);border-top-right-radius:var(--ix-button-border-radius-right);border-bottom-right-radius:var(--ix-button-border-radius-right)}:host .btn-danger-secondary{background-color:var(--theme-btn-danger-secondary--background);color:var(--theme-btn-danger-secondary--color);--ix-button-color:var(--theme-btn-danger-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-danger-secondary--border-color);border-style:solid}:host .btn-danger-secondary.selected{background-color:var(--theme-btn-danger-secondary--background--pressed);color:var(--theme-btn-danger-secondary--color--pressed)}:host .btn-danger-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-secondary.selected:not(.disabled):not(:disabled):hover,:host .btn-danger-secondary.selected:not(.disabled):not(:disabled).hover{background-color:var(--theme-btn-danger-secondary--background--pressed-hover);color:var(--theme-btn-danger-secondary--color--pressed-hover)}:host .btn-danger-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-secondary.selected:not(.disabled):not(:disabled):active,:host .btn-danger-secondary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-danger-secondary--background--pressed-hover);color:var(--theme-btn-danger-secondary--color--pressed-active)}:host .btn-danger-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-secondary:not(.disabled):not(:disabled):hover,:host .btn-danger-secondary:not(.disabled):not(:disabled).hover{border-color:var(--theme-btn-danger-secondary--border-color--hover);background-color:var(--theme-btn-danger-secondary--background--hover);color:var(--theme-btn-danger-secondary--color--hover)}:host .btn-danger-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-secondary:not(.disabled):not(:disabled):active,:host .btn-danger-secondary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-danger-secondary--border-color--active);background-color:var(--theme-btn-danger-secondary--background--active);color:var(--theme-btn-danger-secondary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-danger-secondary.disabled,:host(.disabled) .btn-danger-secondary:disabled{pointer-events:none;border-color:var(--theme-btn-danger-secondary--border-color--disabled);background-color:var(--theme-btn-danger-secondary--background--disabled);color:var(--theme-btn-danger-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-danger-secondary--color--disabled)}:host .btn-danger-tertiary{text-align:start;border-top-left-radius:var(--ix-button-border-radius-left);border-bottom-left-radius:var(--ix-button-border-radius-left);border-top-right-radius:var(--ix-button-border-radius-right);border-bottom-right-radius:var(--ix-button-border-radius-right)}:host .btn-danger-tertiary{background-color:var(--theme-btn-danger-tertiary--background);color:var(--theme-btn-danger-tertiary--color);--ix-button-color:var(--theme-btn-danger-tertiary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-danger-tertiary--border-color);border-style:solid}:host .btn-danger-tertiary.selected{background-color:var(--theme-btn-danger-tertiary--background--pressed);color:var(--theme-btn-danger-tertiary--color--pressed)}:host .btn-danger-tertiary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-tertiary.selected:not(.disabled):not(:disabled):hover,:host .btn-danger-tertiary.selected:not(.disabled):not(:disabled).hover{background-color:var(--theme-btn-danger-tertiary--background--pressed-hover);color:var(--theme-btn-danger-tertiary--color--pressed-hover)}:host .btn-danger-tertiary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-tertiary.selected:not(.disabled):not(:disabled):active,:host .btn-danger-tertiary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-danger-tertiary--background--pressed-hover);color:var(--theme-btn-danger-tertiary--color--pressed-active)}:host .btn-danger-tertiary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-tertiary:not(.disabled):not(:disabled):hover,:host .btn-danger-tertiary:not(.disabled):not(:disabled).hover{border-color:var(--theme-btn-danger-tertiary--border-color--hover);background-color:var(--theme-btn-danger-tertiary--background--hover);color:var(--theme-btn-danger-tertiary--color--hover)}:host .btn-danger-tertiary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-tertiary:not(.disabled):not(:disabled):active,:host .btn-danger-tertiary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-danger-tertiary--border-color--active);background-color:var(--theme-btn-danger-tertiary--background--active);color:var(--theme-btn-danger-tertiary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-danger-tertiary.disabled,:host(.disabled) .btn-danger-tertiary:disabled{pointer-events:none;border-color:var(--theme-btn-danger-tertiary--border-color--disabled);background-color:var(--theme-btn-danger-tertiary--background--disabled);color:var(--theme-btn-danger-tertiary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-danger-tertiary--color--disabled)}:host{display:inline-block;height:2rem;width:auto;min-width:5rem;vertical-align:middle}: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 *{}:host *::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host *{}: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 *{}:host *::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host *{}:host *::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host *::-webkit-scrollbar-corner{display:none}:host .btn{width:100%;height:100%}:host button:not(:disabled){cursor:pointer}:host(.disabled){pointer-events:none}"}},[769,"ix-toggle-button",{variant:[1],disabled:[516],loading:[4],icon:[1],iconRight:[1,"icon-right"],pressed:[4],inheritAriaAttributes:[32]},void 0,{role:[{ariaAttributeChanged:0}],"aria-activedescendant":[{ariaAttributeChanged:0}],"aria-atomic":[{ariaAttributeChanged:0}],"aria-autocomplete":[{ariaAttributeChanged:0}],"aria-braillelabel":[{ariaAttributeChanged:0}],"aria-brailleroledescription":[{ariaAttributeChanged:0}],"aria-busy":[{ariaAttributeChanged:0}],"aria-checked":[{ariaAttributeChanged:0}],"aria-colcount":[{ariaAttributeChanged:0}],"aria-colindex":[{ariaAttributeChanged:0}],"aria-colindextext":[{ariaAttributeChanged:0}],"aria-colspan":[{ariaAttributeChanged:0}],"aria-controls":[{ariaAttributeChanged:0}],"aria-current":[{ariaAttributeChanged:0}],"aria-describedby":[{ariaAttributeChanged:0}],"aria-description":[{ariaAttributeChanged:0}],"aria-details":[{ariaAttributeChanged:0}],"aria-disabled":[{ariaAttributeChanged:0}],"aria-errormessage":[{ariaAttributeChanged:0}],"aria-expanded":[{ariaAttributeChanged:0}],"aria-flowto":[{ariaAttributeChanged:0}],"aria-haspopup":[{ariaAttributeChanged:0}],"aria-hidden":[{ariaAttributeChanged:0}],"aria-invalid":[{ariaAttributeChanged:0}],"aria-keyshortcuts":[{ariaAttributeChanged:0}],"aria-label":[{ariaAttributeChanged:0}],"aria-labelledby":[{ariaAttributeChanged:0}],"aria-level":[{ariaAttributeChanged:0}],"aria-live":[{ariaAttributeChanged:0}],"aria-multiline":[{ariaAttributeChanged:0}],"aria-multiselectable":[{ariaAttributeChanged:0}],"aria-orientation":[{ariaAttributeChanged:0}],"aria-owns":[{ariaAttributeChanged:0}],"aria-placeholder":[{ariaAttributeChanged:0}],"aria-posinset":[{ariaAttributeChanged:0}],"aria-pressed":[{ariaAttributeChanged:0}],"aria-readonly":[{ariaAttributeChanged:0}],"aria-relevant":[{ariaAttributeChanged:0}],"aria-required":[{ariaAttributeChanged:0}],"aria-roledescription":[{ariaAttributeChanged:0}],"aria-rowcount":[{ariaAttributeChanged:0}],"aria-rowindex":[{ariaAttributeChanged:0}],"aria-rowindextext":[{ariaAttributeChanged:0}],"aria-rowspan":[{ariaAttributeChanged:0}],"aria-selected":[{ariaAttributeChanged:0}],"aria-setsize":[{ariaAttributeChanged:0}],"aria-sort":[{ariaAttributeChanged:0}],"aria-valuemax":[{ariaAttributeChanged:0}],"aria-valuemin":[{ariaAttributeChanged:0}],"aria-valuenow":[{ariaAttributeChanged:0}],"aria-valuetext":[{ariaAttributeChanged:0}]}]),u=h,v=function(){"undefined"!=typeof customElements&&["ix-toggle-button","ix-spinner"].forEach((r=>{switch(r){case"ix-toggle-button":customElements.get(d(r))||customElements.define(d(r),h);break;case"ix-spinner":customElements.get(d(r))||c()}}))};export{u as IxToggleButton,v as defineCustomElement}
1
+ import{p as r,M as e,e as t,h as o,d as a,t as d}from"./p-eN5fQtqO.js";import{B as n}from"./p-CRbQNmxe.js";import{g as b,a as s}from"./p-DD206pTM.js";import{D as i}from"./p-CApDAYIa.js";import{I as l}from"./p-BF2IsI5j.js";import{d as c}from"./p-BKVBe7Co.js";const h=r(class extends(e(...i,l)){constructor(r){super(!1),!1!==r&&this.__registerHost(),this.__attachShadow(),this.pressedChange=t(this,"pressedChange",7)}get hostElement(){return this}variant="subtle-primary";disabled=!1;loading=!1;icon;iconRight;pressed=!1;pressedChange;dispatchPressedChange(){this.pressedChange.emit(!this.pressed)}render(){const r={variant:this.variant,iconOnly:!1,iconOval:!1,selected:this.pressed,disabled:this.disabled||this.loading,icon:this.icon,iconRight:this.iconRight,loading:this.loading,onClick:()=>this.dispatchPressedChange(),type:"button",ariaAttributes:{...this.inheritAriaAttributes,"aria-pressed":s(this.pressed),"aria-label":this.inheritAriaAttributes["aria-label"]??b(this.icon)}};return o(a,{key:"128350f4501a9f4eb89c6510edafe59c00a0b1e8",class:{disabled:this.disabled||this.loading}},o(n,{key:"9dc929b6fa46e7260b5504b2627c94c794916ad5",...r},o("slot",{key:"b98585200dbee6bfdda03aa1d06243e72106c3e7"})))}static get style(){return":host{--ix-button-border-radius-left:var(--theme-btn--border-radius);--ix-button-border-radius-right:var(--theme-btn--border-radius);display:inline-block;height:2rem;vertical-align:middle;cursor:pointer;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.429em;color:var(--theme-color-std-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale}: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 *{}:host *::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host *{}: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 *{}:host *::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host *{}:host *::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host *::-webkit-scrollbar-corner{display:none}:host button,:host a{all:unset;box-sizing:border-box;display:inline-flex;flex-direction:row;flex-wrap:nowrap;overflow:hidden;align-items:center;justify-content:center;width:100%;height:100%;padding:var(--ix-button-padding, 0 0.5rem)}:host ix-spinner{margin-right:0.25rem}:host .content{display:inline-block;position:relative;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host .content-start{width:100%}:host .icon{pointer-events:none;margin-right:0.25rem}:host .icon-right{margin-left:0.25rem}:host(.disabled){cursor:default}:host(.ix-focused) .btn{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn:focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host{--ix-button-border-radius-left:var(--theme-btn--border-radius);--ix-button-border-radius-right:var(--theme-btn--border-radius);display:inline-block;height:2rem;vertical-align:middle;cursor:pointer;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.429em;color:var(--theme-color-std-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale}: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 *{}:host *::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host *{}: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 *{}:host *::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host *{}:host *::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host *::-webkit-scrollbar-corner{display:none}:host button,:host a{all:unset;box-sizing:border-box;display:inline-flex;flex-direction:row;flex-wrap:nowrap;overflow:hidden;align-items:center;justify-content:center;width:100%;height:100%;padding:var(--ix-button-padding, 0 0.5rem)}:host ix-spinner{margin-right:0.25rem}:host .content{display:inline-block;position:relative;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host .content-start{width:100%}:host .icon{pointer-events:none;margin-right:0.25rem}:host .icon-right{margin-left:0.25rem}:host(.disabled){cursor:default}:host(.ix-focused) .btn{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn:focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn-primary{text-align:start;border-top-left-radius:var(--ix-button-border-radius-left);border-bottom-left-radius:var(--ix-button-border-radius-left);border-top-right-radius:var(--ix-button-border-radius-right);border-bottom-right-radius:var(--ix-button-border-radius-right)}:host .btn-primary{background-color:var(--theme-btn-primary--background);color:var(--theme-btn-primary--color);--ix-button-color:var(--theme-btn-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-primary--border-color);border-style:solid}:host .btn-primary.selected{background-color:var(--theme-btn-primary--background--pressed);color:var(--theme-btn-primary--color--pressed)}:host .btn-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-primary.selected:not(.disabled):not(:disabled):hover,:host .btn-primary.selected:not(.disabled):not(:disabled).hover{background-color:var(--theme-btn-primary--background--pressed-hover);color:var(--theme-btn-primary--color--pressed-hover)}:host .btn-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-primary.selected:not(.disabled):not(:disabled):active,:host .btn-primary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-primary--background--pressed-hover);color:var(--theme-btn-primary--color--pressed-active)}:host .btn-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-primary:not(.disabled):not(:disabled):hover,:host .btn-primary:not(.disabled):not(:disabled).hover{border-color:var(--theme-btn-primary--border-color--hover);background-color:var(--theme-btn-primary--background--hover);color:var(--theme-btn-primary--color--hover)}:host .btn-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-primary:not(.disabled):not(:disabled):active,:host .btn-primary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-primary--border-color--active);background-color:var(--theme-btn-primary--background--active);color:var(--theme-btn-primary--color--active)}:host(.active:not(.disabled)) .btn-primary:not(.disabled):not(:disabled){border-color:var(--theme-btn-primary--border-color--active);background-color:var(--theme-btn-primary--background--active);color:var(--theme-btn-primary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-primary.disabled,:host(.disabled) .btn-primary:disabled{pointer-events:none;border-color:var(--theme-btn-primary--border-color--disabled);background-color:var(--theme-btn-primary--background--disabled);color:var(--theme-btn-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-primary--color--disabled)}:host .btn-secondary{text-align:start;border-top-left-radius:var(--ix-button-border-radius-left);border-bottom-left-radius:var(--ix-button-border-radius-left);border-top-right-radius:var(--ix-button-border-radius-right);border-bottom-right-radius:var(--ix-button-border-radius-right)}:host .btn-secondary{background-color:var(--theme-btn-secondary--background);color:var(--theme-btn-secondary--color);--ix-button-color:var(--theme-btn-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-secondary--border-color);border-style:solid}:host .btn-secondary.selected{background-color:var(--theme-btn-secondary--background--pressed);color:var(--theme-btn-secondary--color--pressed)}:host .btn-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-secondary.selected:not(.disabled):not(:disabled):hover,:host .btn-secondary.selected:not(.disabled):not(:disabled).hover{background-color:var(--theme-btn-secondary--background--pressed-hover);color:var(--theme-btn-secondary--color--pressed-hover)}:host .btn-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-secondary.selected:not(.disabled):not(:disabled):active,:host .btn-secondary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-secondary--background--pressed-hover);color:var(--theme-btn-secondary--color--pressed-active)}:host .btn-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-secondary:not(.disabled):not(:disabled):hover,:host .btn-secondary:not(.disabled):not(:disabled).hover{border-color:var(--theme-btn-secondary--border-color--hover);background-color:var(--theme-btn-secondary--background--hover);color:var(--theme-btn-secondary--color--hover)}:host .btn-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-secondary:not(.disabled):not(:disabled):active,:host .btn-secondary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-secondary--border-color--active);background-color:var(--theme-btn-secondary--background--active);color:var(--theme-btn-secondary--color--active)}:host(.active:not(.disabled)) .btn-secondary:not(.disabled):not(:disabled){border-color:var(--theme-btn-secondary--border-color--active);background-color:var(--theme-btn-secondary--background--active);color:var(--theme-btn-secondary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-secondary.disabled,:host(.disabled) .btn-secondary:disabled{pointer-events:none;border-color:var(--theme-btn-secondary--border-color--disabled);background-color:var(--theme-btn-secondary--background--disabled);color:var(--theme-btn-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-secondary--color--disabled)}:host .btn-tertiary{text-align:start;border-top-left-radius:var(--ix-button-border-radius-left);border-bottom-left-radius:var(--ix-button-border-radius-left);border-top-right-radius:var(--ix-button-border-radius-right);border-bottom-right-radius:var(--ix-button-border-radius-right)}:host .btn-tertiary{background-color:var(--theme-btn-tertiary--background);color:var(--theme-btn-tertiary--color);--ix-button-color:var(--theme-btn-tertiary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-tertiary--border-color);border-style:solid}:host .btn-tertiary.selected{background-color:var(--theme-btn-tertiary--background--pressed);color:var(--theme-btn-tertiary--color--pressed)}:host .btn-tertiary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-tertiary.selected:not(.disabled):not(:disabled):hover,:host .btn-tertiary.selected:not(.disabled):not(:disabled).hover{background-color:var(--theme-btn-tertiary--background--pressed-hover);color:var(--theme-btn-tertiary--color--pressed-hover)}:host .btn-tertiary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-tertiary.selected:not(.disabled):not(:disabled):active,:host .btn-tertiary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-tertiary--background--pressed-hover);color:var(--theme-btn-tertiary--color--pressed-active)}:host .btn-tertiary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-tertiary:not(.disabled):not(:disabled):hover,:host .btn-tertiary:not(.disabled):not(:disabled).hover{border-color:var(--theme-btn-tertiary--border-color--hover);background-color:var(--theme-btn-tertiary--background--hover);color:var(--theme-btn-tertiary--color--hover)}:host .btn-tertiary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-tertiary:not(.disabled):not(:disabled):active,:host .btn-tertiary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-tertiary--border-color--active);background-color:var(--theme-btn-tertiary--background--active);color:var(--theme-btn-tertiary--color--active)}:host(.active:not(.disabled)) .btn-tertiary:not(.disabled):not(:disabled){border-color:var(--theme-btn-tertiary--border-color--active);background-color:var(--theme-btn-tertiary--background--active);color:var(--theme-btn-tertiary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-tertiary.disabled,:host(.disabled) .btn-tertiary:disabled{pointer-events:none;border-color:var(--theme-btn-tertiary--border-color--disabled);background-color:var(--theme-btn-tertiary--background--disabled);color:var(--theme-btn-tertiary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-tertiary--color--disabled)}:host .btn-subtle-primary{text-align:start;border-top-left-radius:var(--ix-button-border-radius-left);border-bottom-left-radius:var(--ix-button-border-radius-left);border-top-right-radius:var(--ix-button-border-radius-right);border-bottom-right-radius:var(--ix-button-border-radius-right)}:host .btn-subtle-primary{background-color:var(--theme-btn-subtle-primary--background);color:var(--theme-btn-subtle-primary--color);--ix-button-color:var(--theme-btn-subtle-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-subtle-primary--border-color);border-style:solid}:host .btn-subtle-primary.selected{background-color:var(--theme-btn-subtle-primary--background--pressed);color:var(--theme-btn-subtle-primary--color--pressed)}:host .btn-subtle-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-primary.selected:not(.disabled):not(:disabled):hover,:host .btn-subtle-primary.selected:not(.disabled):not(:disabled).hover{background-color:var(--theme-btn-subtle-primary--background--pressed-hover);color:var(--theme-btn-subtle-primary--color--pressed-hover)}:host .btn-subtle-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-primary.selected:not(.disabled):not(:disabled):active,:host .btn-subtle-primary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-subtle-primary--background--pressed-hover);color:var(--theme-btn-subtle-primary--color--pressed-active)}:host .btn-subtle-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-primary:not(.disabled):not(:disabled):hover,:host .btn-subtle-primary:not(.disabled):not(:disabled).hover{border-color:var(--theme-btn-subtle-primary--border-color--hover);background-color:var(--theme-btn-subtle-primary--background--hover);color:var(--theme-btn-subtle-primary--color--hover)}:host .btn-subtle-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-primary:not(.disabled):not(:disabled):active,:host .btn-subtle-primary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-subtle-primary--border-color--active);background-color:var(--theme-btn-subtle-primary--background--active);color:var(--theme-btn-subtle-primary--color--active)}:host(.active:not(.disabled)) .btn-subtle-primary:not(.disabled):not(:disabled){border-color:var(--theme-btn-subtle-primary--border-color--active);background-color:var(--theme-btn-subtle-primary--background--active);color:var(--theme-btn-subtle-primary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-subtle-primary.disabled,:host(.disabled) .btn-subtle-primary:disabled{pointer-events:none;border-color:var(--theme-btn-subtle-primary--border-color--disabled);background-color:var(--theme-btn-subtle-primary--background--disabled);color:var(--theme-btn-subtle-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-subtle-primary--color--disabled)}:host .btn-subtle-secondary{text-align:start;border-top-left-radius:var(--ix-button-border-radius-left);border-bottom-left-radius:var(--ix-button-border-radius-left);border-top-right-radius:var(--ix-button-border-radius-right);border-bottom-right-radius:var(--ix-button-border-radius-right)}:host .btn-subtle-secondary{background-color:var(--theme-btn-subtle-secondary--background);color:var(--theme-btn-subtle-secondary--color);--ix-button-color:var(--theme-btn-subtle-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-subtle-secondary--border-color);border-style:solid}:host .btn-subtle-secondary.selected{background-color:var(--theme-btn-subtle-secondary--background--pressed);color:var(--theme-btn-subtle-secondary--color--pressed)}:host .btn-subtle-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-secondary.selected:not(.disabled):not(:disabled):hover,:host .btn-subtle-secondary.selected:not(.disabled):not(:disabled).hover{background-color:var(--theme-btn-subtle-secondary--background--pressed-hover);color:var(--theme-btn-subtle-secondary--color--pressed-hover)}:host .btn-subtle-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-secondary.selected:not(.disabled):not(:disabled):active,:host .btn-subtle-secondary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-subtle-secondary--background--pressed-hover);color:var(--theme-btn-subtle-secondary--color--pressed-active)}:host .btn-subtle-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-secondary:not(.disabled):not(:disabled):hover,:host .btn-subtle-secondary:not(.disabled):not(:disabled).hover{border-color:var(--theme-btn-subtle-secondary--border-color--hover);background-color:var(--theme-btn-subtle-secondary--background--hover);color:var(--theme-btn-subtle-secondary--color--hover)}:host .btn-subtle-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-secondary:not(.disabled):not(:disabled):active,:host .btn-subtle-secondary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-subtle-secondary--border-color--active);background-color:var(--theme-btn-subtle-secondary--background--active);color:var(--theme-btn-subtle-secondary--color--active)}:host(.active:not(.disabled)) .btn-subtle-secondary:not(.disabled):not(:disabled){border-color:var(--theme-btn-subtle-secondary--border-color--active);background-color:var(--theme-btn-subtle-secondary--background--active);color:var(--theme-btn-subtle-secondary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-subtle-secondary.disabled,:host(.disabled) .btn-subtle-secondary:disabled{pointer-events:none;border-color:var(--theme-btn-subtle-secondary--border-color--disabled);background-color:var(--theme-btn-subtle-secondary--background--disabled);color:var(--theme-btn-subtle-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-subtle-secondary--color--disabled)}:host .btn-subtle-tertiary{text-align:start;border-top-left-radius:var(--ix-button-border-radius-left);border-bottom-left-radius:var(--ix-button-border-radius-left);border-top-right-radius:var(--ix-button-border-radius-right);border-bottom-right-radius:var(--ix-button-border-radius-right)}:host .btn-subtle-tertiary{background-color:var(--theme-btn-subtle-tertiary--background);color:var(--theme-btn-subtle-tertiary--color);--ix-button-color:var(--theme-btn-subtle-tertiary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-subtle-tertiary--border-color);border-style:solid}:host .btn-subtle-tertiary.selected{background-color:var(--theme-btn-subtle-tertiary--background--pressed);color:var(--theme-btn-subtle-tertiary--color--pressed)}:host .btn-subtle-tertiary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-tertiary.selected:not(.disabled):not(:disabled):hover,:host .btn-subtle-tertiary.selected:not(.disabled):not(:disabled).hover{background-color:var(--theme-btn-subtle-tertiary--background--pressed-hover);color:var(--theme-btn-subtle-tertiary--color--pressed-hover)}:host .btn-subtle-tertiary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-tertiary.selected:not(.disabled):not(:disabled):active,:host .btn-subtle-tertiary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-subtle-tertiary--background--pressed-hover);color:var(--theme-btn-subtle-tertiary--color--pressed-active)}:host .btn-subtle-tertiary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-tertiary:not(.disabled):not(:disabled):hover,:host .btn-subtle-tertiary:not(.disabled):not(:disabled).hover{border-color:var(--theme-btn-subtle-tertiary--border-color--hover);background-color:var(--theme-btn-subtle-tertiary--background--hover);color:var(--theme-btn-subtle-tertiary--color--hover)}:host .btn-subtle-tertiary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-subtle-tertiary:not(.disabled):not(:disabled):active,:host .btn-subtle-tertiary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-subtle-tertiary--border-color--active);background-color:var(--theme-btn-subtle-tertiary--background--active);color:var(--theme-btn-subtle-tertiary--color--active)}:host(.active:not(.disabled)) .btn-subtle-tertiary:not(.disabled):not(:disabled){border-color:var(--theme-btn-subtle-tertiary--border-color--active);background-color:var(--theme-btn-subtle-tertiary--background--active);color:var(--theme-btn-subtle-tertiary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-subtle-tertiary.disabled,:host(.disabled) .btn-subtle-tertiary:disabled{pointer-events:none;border-color:var(--theme-btn-subtle-tertiary--border-color--disabled);background-color:var(--theme-btn-subtle-tertiary--background--disabled);color:var(--theme-btn-subtle-tertiary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-subtle-tertiary--color--disabled)}:host .btn-danger-primary{text-align:start;border-top-left-radius:var(--ix-button-border-radius-left);border-bottom-left-radius:var(--ix-button-border-radius-left);border-top-right-radius:var(--ix-button-border-radius-right);border-bottom-right-radius:var(--ix-button-border-radius-right)}:host .btn-danger-primary{background-color:var(--theme-btn-danger-primary--background);color:var(--theme-btn-danger-primary--color);--ix-button-color:var(--theme-btn-danger-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-danger-primary--border-color);border-style:solid}:host .btn-danger-primary.selected{background-color:var(--theme-btn-danger-primary--background--pressed);color:var(--theme-btn-danger-primary--color--pressed)}:host .btn-danger-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-primary.selected:not(.disabled):not(:disabled):hover,:host .btn-danger-primary.selected:not(.disabled):not(:disabled).hover{background-color:var(--theme-btn-danger-primary--background--pressed-hover);color:var(--theme-btn-danger-primary--color--pressed-hover)}:host .btn-danger-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-primary.selected:not(.disabled):not(:disabled):active,:host .btn-danger-primary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-danger-primary--background--pressed-hover);color:var(--theme-btn-danger-primary--color--pressed-active)}:host .btn-danger-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-primary:not(.disabled):not(:disabled):hover,:host .btn-danger-primary:not(.disabled):not(:disabled).hover{border-color:var(--theme-btn-danger-primary--border-color--hover);background-color:var(--theme-btn-danger-primary--background--hover);color:var(--theme-btn-danger-primary--color--hover)}:host .btn-danger-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-primary:not(.disabled):not(:disabled):active,:host .btn-danger-primary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-danger-primary--border-color--active);background-color:var(--theme-btn-danger-primary--background--active);color:var(--theme-btn-danger-primary--color--active)}:host(.active:not(.disabled)) .btn-danger-primary:not(.disabled):not(:disabled){border-color:var(--theme-btn-danger-primary--border-color--active);background-color:var(--theme-btn-danger-primary--background--active);color:var(--theme-btn-danger-primary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-danger-primary.disabled,:host(.disabled) .btn-danger-primary:disabled{pointer-events:none;border-color:var(--theme-btn-danger-primary--border-color--disabled);background-color:var(--theme-btn-danger-primary--background--disabled);color:var(--theme-btn-danger-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-danger-primary--color--disabled)}:host .btn-danger-secondary{text-align:start;border-top-left-radius:var(--ix-button-border-radius-left);border-bottom-left-radius:var(--ix-button-border-radius-left);border-top-right-radius:var(--ix-button-border-radius-right);border-bottom-right-radius:var(--ix-button-border-radius-right)}:host .btn-danger-secondary{background-color:var(--theme-btn-danger-secondary--background);color:var(--theme-btn-danger-secondary--color);--ix-button-color:var(--theme-btn-danger-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-danger-secondary--border-color);border-style:solid}:host .btn-danger-secondary.selected{background-color:var(--theme-btn-danger-secondary--background--pressed);color:var(--theme-btn-danger-secondary--color--pressed)}:host .btn-danger-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-secondary.selected:not(.disabled):not(:disabled):hover,:host .btn-danger-secondary.selected:not(.disabled):not(:disabled).hover{background-color:var(--theme-btn-danger-secondary--background--pressed-hover);color:var(--theme-btn-danger-secondary--color--pressed-hover)}:host .btn-danger-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-secondary.selected:not(.disabled):not(:disabled):active,:host .btn-danger-secondary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-danger-secondary--background--pressed-hover);color:var(--theme-btn-danger-secondary--color--pressed-active)}:host .btn-danger-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-secondary:not(.disabled):not(:disabled):hover,:host .btn-danger-secondary:not(.disabled):not(:disabled).hover{border-color:var(--theme-btn-danger-secondary--border-color--hover);background-color:var(--theme-btn-danger-secondary--background--hover);color:var(--theme-btn-danger-secondary--color--hover)}:host .btn-danger-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-secondary:not(.disabled):not(:disabled):active,:host .btn-danger-secondary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-danger-secondary--border-color--active);background-color:var(--theme-btn-danger-secondary--background--active);color:var(--theme-btn-danger-secondary--color--active)}:host(.active:not(.disabled)) .btn-danger-secondary:not(.disabled):not(:disabled){border-color:var(--theme-btn-danger-secondary--border-color--active);background-color:var(--theme-btn-danger-secondary--background--active);color:var(--theme-btn-danger-secondary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-danger-secondary.disabled,:host(.disabled) .btn-danger-secondary:disabled{pointer-events:none;border-color:var(--theme-btn-danger-secondary--border-color--disabled);background-color:var(--theme-btn-danger-secondary--background--disabled);color:var(--theme-btn-danger-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-danger-secondary--color--disabled)}:host .btn-danger-tertiary{text-align:start;border-top-left-radius:var(--ix-button-border-radius-left);border-bottom-left-radius:var(--ix-button-border-radius-left);border-top-right-radius:var(--ix-button-border-radius-right);border-bottom-right-radius:var(--ix-button-border-radius-right)}:host .btn-danger-tertiary{background-color:var(--theme-btn-danger-tertiary--background);color:var(--theme-btn-danger-tertiary--color);--ix-button-color:var(--theme-btn-danger-tertiary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-danger-tertiary--border-color);border-style:solid}:host .btn-danger-tertiary.selected{background-color:var(--theme-btn-danger-tertiary--background--pressed);color:var(--theme-btn-danger-tertiary--color--pressed)}:host .btn-danger-tertiary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-tertiary.selected:not(.disabled):not(:disabled):hover,:host .btn-danger-tertiary.selected:not(.disabled):not(:disabled).hover{background-color:var(--theme-btn-danger-tertiary--background--pressed-hover);color:var(--theme-btn-danger-tertiary--color--pressed-hover)}:host .btn-danger-tertiary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-tertiary.selected:not(.disabled):not(:disabled):active,:host .btn-danger-tertiary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-danger-tertiary--background--pressed-hover);color:var(--theme-btn-danger-tertiary--color--pressed-active)}:host .btn-danger-tertiary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-tertiary:not(.disabled):not(:disabled):hover,:host .btn-danger-tertiary:not(.disabled):not(:disabled).hover{border-color:var(--theme-btn-danger-tertiary--border-color--hover);background-color:var(--theme-btn-danger-tertiary--background--hover);color:var(--theme-btn-danger-tertiary--color--hover)}:host .btn-danger-tertiary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger-tertiary:not(.disabled):not(:disabled):active,:host .btn-danger-tertiary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-danger-tertiary--border-color--active);background-color:var(--theme-btn-danger-tertiary--background--active);color:var(--theme-btn-danger-tertiary--color--active)}:host(.active:not(.disabled)) .btn-danger-tertiary:not(.disabled):not(:disabled){border-color:var(--theme-btn-danger-tertiary--border-color--active);background-color:var(--theme-btn-danger-tertiary--background--active);color:var(--theme-btn-danger-tertiary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-danger-tertiary.disabled,:host(.disabled) .btn-danger-tertiary:disabled{pointer-events:none;border-color:var(--theme-btn-danger-tertiary--border-color--disabled);background-color:var(--theme-btn-danger-tertiary--background--disabled);color:var(--theme-btn-danger-tertiary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-danger-tertiary--color--disabled)}:host{display:inline-block;height:2rem;width:auto;min-width:5rem;vertical-align:middle}: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 *{}:host *::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host *{}: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 *{}:host *::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host *{}:host *::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host *::-webkit-scrollbar-corner{display:none}:host .btn{width:100%;height:100%}:host button:not(:disabled){cursor:pointer}:host(.disabled){pointer-events:none}"}},[769,"ix-toggle-button",{variant:[1],disabled:[516],loading:[4],icon:[1],iconRight:[1,"icon-right"],pressed:[4],inheritAriaAttributes:[32]}]),u=h,v=function(){"undefined"!=typeof customElements&&["ix-toggle-button","ix-spinner"].forEach((r=>{switch(r){case"ix-toggle-button":customElements.get(d(r))||customElements.define(d(r),h);break;case"ix-spinner":customElements.get(d(r))||c()}}))};export{u as IxToggleButton,v as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,M as r,e as t,h as o,d as i,t as a}from"./p-eN5fQtqO.js";import{a as h}from"./p-C21npbUc.js";import{D as c}from"./p-CApDAYIa.js";import{I as d}from"./p-BST8QY5w.js";import{d as b}from"./p-YFmbQndr.js";import{H as n}from"./p-BTBxxgtF.js";const m=e(class extends(r(...c,d)){constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.checkedChange=t(this,"checkedChange",7),this.valueChange=t(this,"valueChange",7),this.ixBlur=t(this,"ixBlur",7),this.formInternals=this.attachInternals()}formInternals;get hostElement(){return this}name;value="on";checked=!1;disabled=!1;indeterminate=!1;textOn="On";textOff="Off";textIndeterminate="Mixed";hideText=!1;required=!1;checkedChange;valueChange;ixBlur;touched=!1;onCheckedChange(e){if(this.disabled)return;const r=this.indeterminate,t=this.checked;this.indeterminate&&(this.indeterminate=!1),this.checked=e;const{defaultPrevented:o}=this.checkedChange.emit(this.checked);o&&(this.indeterminate=r,this.checked=t)}componentWillLoad(){super.componentWillLoad(),this.updateFormInternalValue()}updateFormInternalValue(){this.formInternals.setFormValue(this.checked?this.value:null)}watchCheckedChange(){this.touched=!0,this.updateFormInternalValue()}hasValidValue(){return Promise.resolve(this.checked)}getAssociatedFormElement(){return Promise.resolve(this.formInternals.form)}isTouched(){return Promise.resolve(this.touched)}updateClassMappings(){}resolveAriaLabel(){if(!this.inheritAriaAttributes["aria-labelledby"])return this.inheritAriaAttributes["aria-label"]}render(){let e=this.textOff;this.checked&&(e=this.textOn),this.indeterminate&&(e=this.textIndeterminate);const r=this.resolveAriaLabel(),t=this.indeterminate?"mixed":h(this.checked);return o(i,{key:"dcc719533d7ebad6ebfc175db7fcce81ca432f6c",...this.inheritAriaAttributes,role:"switch",tabindex:this.disabled?-1:0,"aria-label":r,"aria-checked":t,"aria-disabled":h(this.disabled),"aria-required":h(this.required),class:{disabled:this.disabled},onBlur:()=>this.ixBlur.emit(),onFocus:()=>this.touched=!0,onKeyDown:e=>{this.disabled||" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this.onCheckedChange(!this.checked))},onClick:()=>{this.disabled||this.onCheckedChange(!this.checked)}},o("div",{key:"86cac25e18858e76e535df0c0a66e94dc5ca4c30",class:"wrapper"},o("div",{key:"63eb080dd311b49c211e57abc8b1b5830a8fb81c",class:{switch:!0,checked:this.checked,indeterminate:this.indeterminate},"aria-hidden":"true"},o("div",{key:"a2f46d4412c3f51d93ffe20d9e8e7681c50f2fa8",class:"slider"})),!this.hideText&&o("ix-typography",{key:"8ed5848b4641a0152b937e8e3fdb9ce4d45ff1d3",class:"label","aria-hidden":"true"},e)))}static get formAssociated(){return!0}static get watchers(){return{role:[{ariaAttributeChanged:0}],"aria-activedescendant":[{ariaAttributeChanged:0}],"aria-atomic":[{ariaAttributeChanged:0}],"aria-autocomplete":[{ariaAttributeChanged:0}],"aria-braillelabel":[{ariaAttributeChanged:0}],"aria-brailleroledescription":[{ariaAttributeChanged:0}],"aria-busy":[{ariaAttributeChanged:0}],"aria-checked":[{ariaAttributeChanged:0}],"aria-colcount":[{ariaAttributeChanged:0}],"aria-colindex":[{ariaAttributeChanged:0}],"aria-colindextext":[{ariaAttributeChanged:0}],"aria-colspan":[{ariaAttributeChanged:0}],"aria-controls":[{ariaAttributeChanged:0}],"aria-current":[{ariaAttributeChanged:0}],"aria-describedby":[{ariaAttributeChanged:0}],"aria-description":[{ariaAttributeChanged:0}],"aria-details":[{ariaAttributeChanged:0}],"aria-disabled":[{ariaAttributeChanged:0}],"aria-errormessage":[{ariaAttributeChanged:0}],"aria-expanded":[{ariaAttributeChanged:0}],"aria-flowto":[{ariaAttributeChanged:0}],"aria-haspopup":[{ariaAttributeChanged:0}],"aria-hidden":[{ariaAttributeChanged:0}],"aria-invalid":[{ariaAttributeChanged:0}],"aria-keyshortcuts":[{ariaAttributeChanged:0}],"aria-label":[{ariaAttributeChanged:0}],"aria-labelledby":[{ariaAttributeChanged:0}],"aria-level":[{ariaAttributeChanged:0}],"aria-live":[{ariaAttributeChanged:0}],"aria-multiline":[{ariaAttributeChanged:0}],"aria-multiselectable":[{ariaAttributeChanged:0}],"aria-orientation":[{ariaAttributeChanged:0}],"aria-owns":[{ariaAttributeChanged:0}],"aria-placeholder":[{ariaAttributeChanged:0}],"aria-posinset":[{ariaAttributeChanged:0}],"aria-pressed":[{ariaAttributeChanged:0}],"aria-readonly":[{ariaAttributeChanged:0}],"aria-relevant":[{ariaAttributeChanged:0}],"aria-required":[{ariaAttributeChanged:0}],"aria-roledescription":[{ariaAttributeChanged:0}],"aria-rowcount":[{ariaAttributeChanged:0}],"aria-rowindex":[{ariaAttributeChanged:0}],"aria-rowindextext":[{ariaAttributeChanged:0}],"aria-rowspan":[{ariaAttributeChanged:0}],"aria-selected":[{ariaAttributeChanged:0}],"aria-setsize":[{ariaAttributeChanged:0}],"aria-sort":[{ariaAttributeChanged:0}],"aria-valuemax":[{ariaAttributeChanged:0}],"aria-valuemin":[{ariaAttributeChanged:0}],"aria-valuenow":[{ariaAttributeChanged:0}],"aria-valuetext":[{ariaAttributeChanged:0}],checked:[{watchCheckedChange:0}]}}static get style(){return':host{display:inline-flex;flex-direction:row;position:relative;min-height:1.5rem;max-height:calc(100% - 0.5rem);margin-block-start:0.25rem;margin-block-end:0.25rem}: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 *{}:host *::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host *{}: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 *{}:host *::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host *{}:host *::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host *::-webkit-scrollbar-corner{display:none}:host .wrapper{display:flex;align-items:flex-start;width:100%;max-height:100%}:host .label{word-break:break-word;display:block;white-space:normal;overflow:hidden;margin-block-start:0.125rem;margin-inline-start:0.5rem;min-height:1rem}:host .switch{all:unset;position:relative;display:inline-block;width:3rem;min-width:3rem;max-width:3rem;height:1.5rem}:host .slider{position:absolute;top:0;left:0;right:0;bottom:0;background-color:var(--theme-switch-off--background);transition:var(--theme-default-time);border-radius:1.5rem;border:0.0625rem solid transparent}:host .slider:before{position:absolute;content:"";height:1.125rem;width:1.125rem;left:0.125rem;bottom:0.125rem;background-color:var(--theme-switch-thumb-off--background);transition:var(--theme-default-time);border-radius:50%;border:1px solid var(--theme-switch-thumb-off--border-color)}:host .switch.checked>.slider::before{background-color:var(--theme-switch-thumb-on--background);transform:translateX(1.5rem)}:host .switch>.slider{border-color:var(--theme-switch-off--border-color)}:host .switch:hover>.slider{background-color:var(--theme-switch-off--background--hover);border-color:var(--theme-switch-off--border-color--hover)}:host .switch:hover>.slider:before{background-color:var(--theme-switch-thumb-off--background--hover);border:1px solid var(--theme-switch-thumb-off--border-color--hover)}:host .switch:active>.slider{background-color:var(--theme-switch-off--background--active);border-color:var(--theme-switch-off--border-color--active)}:host .switch:active>.slider:before{background-color:var(--theme-switch-thumb-off--background--active);border:1px solid var(--theme-switch-thumb-off--border-color--active)}:host .switch.checked>.slider{background-color:var(--theme-switch-on--background);border-color:var(--theme-switch-on--border-color)}:host .switch.checked>.slider:before{border:1px solid var(--theme-switch-thumb-on--border-color)}:host .switch.checked:hover>.slider{background-color:var(--theme-switch-on--background--hover);border-color:var(--theme-switch-on--border-color--hover)}:host .switch.checked:hover>.slider:before{background-color:var(--theme-switch-thumb-on--background--hover);border:1px solid var(--theme-switch-thumb-on--border-color--hover)}:host .switch.checked:active>.slider{background-color:var(--theme-switch-on--background--active);border-color:var(--theme-switch-on--border-color--active)}:host .switch.checked:active>.slider:before{background-color:var(--theme-switch-thumb-on--background--active);border:1px solid var(--theme-switch-thumb-on--border-color--active)}:host .switch.indeterminate>.slider::before{transform:translateX(0.75rem)}:host(:not(.disabled)) .wrapper{cursor:pointer}:host(:focus),:host(:focus-visible){outline:none}:host(:not(.disabled):focus-visible) .switch>.slider{outline:0.0625rem solid var(--theme-color-focus-bdr);outline-offset:0.0625rem}:host(.disabled){pointer-events:none}:host(.disabled) .switch{opacity:0.5}:host(.disabled) .switch>.slider{background-color:var(--theme-switch-off--background--disabled)}:host(.disabled) .switch>.slider:before{background-color:var(--theme-switch-thumb-off--background--disabled)}:host(.disabled) .switch.checked>.slider{background-color:var(--theme-switch-on--background--disabled)}:host(.disabled) .switch.checked>.slider:before{background-color:var(--theme-switch-thumb-on--background--disabled)}:host(.disabled) .label{color:var(--theme-color-weak-text)}:host(.ix-valid:not(.disabled)) .slider{--theme-switch-off--background:var( --theme-switch-off--background--valid );--theme-switch-off--background--hover:var( --theme-switch-off--background--valid--hover );--theme-switch-off--background--active:var( --theme-switch-off--background--valid--active );--theme-switch-thumb-off--border-color:var( --theme-switch-thumb-off--border-color--valid );--theme-switch-thumb-off--border-color--hover:var( --theme-switch-thumb-off--border-color--valid--hover );--theme-switch-thumb-off--border-color--active:var( --theme-switch-thumb-off--border-color--valid--active );--theme-switch-thumb-off--background:var( --theme-switch-thumb-off--background--valid );--theme-switch-thumb-off--background--hover:var( --theme-switch-thumb-off--background--valid--hover );--theme-switch-thumb-off--background--active:var( --theme-switch-thumb-off--background--valid--active );--theme-switch-off--border-color:var( --theme-switch-off--border-color--valid );--theme-switch-off--border-color--hover:var( --theme-switch-off--border-color--valid--hover );--theme-switch-off--border-color--active:var( --theme-switch-off--border-color--valid--active );--theme-switch-on--background:var( --theme-switch-on--background--valid );--theme-switch-on--background--hover:var( --theme-switch-on--background--valid--hover );--theme-switch-on--background--active:var( --theme-switch-on--background--valid--active );--theme-switch-thumb-on--border-color:var( --theme-switch-thumb-on--border-color--valid );--theme-switch-thumb-on--border-color--hover:var( --theme-switch-thumb-on--border-color--valid--hover );--theme-switch-thumb-on--border-color--active:var( --theme-switch-thumb-on--border-color--valid--active );--theme-switch-thumb-on--background:var( --theme-switch-thumb-on--background--valid );--theme-switch-thumb-on--background--hover:var( --theme-switch-thumb-on--background--valid--hover );--theme-switch-thumb-on--background--active:var( --theme-switch-thumb-on--background--valid--active );--theme-switch-on--border-color:var( --theme-switch-on--border-color--valid );--theme-switch-on--border-color--hover:var( --theme-switch-on--border-color--valid--hover );--theme-switch-on--border-color--active:var( --theme-switch-on--border-color--valid--active );--theme-switch-mixed--background:var( --theme-switch-mixed--background--valid );--theme-switch-mixed--background--hover:var( --theme-switch-mixed--background--valid--hover );--theme-switch-mixed--background--active:var( --theme-switch-mixed--background--valid--active );--theme-switch-thumb-mixed--border-color:var( --theme-switch-thumb-mixed--border-color--valid );--theme-switch-thumb-mixed--border-color--hover:var( --theme-switch-thumb-mixed--border-color--valid--hover );--theme-switch-thumb-mixed--border-color--active:var( --theme-switch-thumb-mixed--border-color--valid--active );--theme-switch-thumb-mixed--background:var( --theme-switch-thumb-mixed--background--valid );--theme-switch-thumb-mixed--background--hover:var( --theme-switch-thumb-mixed--background--valid--hover );--theme-switch-thumb-mixed--background--active:var( --theme-switch-thumb-mixed--background--valid--active );--theme-switch-mixed--border-color:var( --theme-switch-mixed--border-color--valid );--theme-switch-mixed--border-color--hover:var( --theme-switch-mixed--border-color--valid--hover );--theme-switch-mixed--border-color--active:var( --theme-switch-mixed--border-color--valid--active )}:host(.ix-info:not(.disabled)) .slider{--theme-switch-off--background:var( --theme-switch-off--background--info );--theme-switch-off--background--hover:var( --theme-switch-off--background--info--hover );--theme-switch-off--background--active:var( --theme-switch-off--background--info--active );--theme-switch-thumb-off--border-color:var( --theme-switch-thumb-off--border-color--info );--theme-switch-thumb-off--border-color--hover:var( --theme-switch-thumb-off--border-color--info--hover );--theme-switch-thumb-off--border-color--active:var( --theme-switch-thumb-off--border-color--info--active );--theme-switch-thumb-off--background:var( --theme-switch-thumb-off--background--info );--theme-switch-thumb-off--background--hover:var( --theme-switch-thumb-off--background--info--hover );--theme-switch-thumb-off--background--active:var( --theme-switch-thumb-off--background--info--active );--theme-switch-off--border-color:var( --theme-switch-off--border-color--info );--theme-switch-off--border-color--hover:var( --theme-switch-off--border-color--info--hover );--theme-switch-off--border-color--active:var( --theme-switch-off--border-color--info--active );--theme-switch-on--background:var( --theme-switch-on--background--info );--theme-switch-on--background--hover:var( --theme-switch-on--background--info--hover );--theme-switch-on--background--active:var( --theme-switch-on--background--info--active );--theme-switch-thumb-on--border-color:var( --theme-switch-thumb-on--border-color--info );--theme-switch-thumb-on--border-color--hover:var( --theme-switch-thumb-on--border-color--info--hover );--theme-switch-thumb-on--border-color--active:var( --theme-switch-thumb-on--border-color--info--active );--theme-switch-thumb-on--background:var( --theme-switch-thumb-on--background--info );--theme-switch-thumb-on--background--hover:var( --theme-switch-thumb-on--background--info--hover );--theme-switch-thumb-on--background--active:var( --theme-switch-thumb-on--background--info--active );--theme-switch-on--border-color:var( --theme-switch-on--border-color--info );--theme-switch-on--border-color--hover:var( --theme-switch-on--border-color--info--hover );--theme-switch-on--border-color--active:var( --theme-switch-on--border-color--info--active );--theme-switch-mixed--background:var( --theme-switch-mixed--background--info );--theme-switch-mixed--background--hover:var( --theme-switch-mixed--background--info--hover );--theme-switch-mixed--background--active:var( --theme-switch-mixed--background--info--active );--theme-switch-thumb-mixed--border-color:var( --theme-switch-thumb-mixed--border-color--info );--theme-switch-thumb-mixed--border-color--hover:var( --theme-switch-thumb-mixed--border-color--info--hover );--theme-switch-thumb-mixed--border-color--active:var( --theme-switch-thumb-mixed--border-color--info--active );--theme-switch-thumb-mixed--background:var( --theme-switch-thumb-mixed--background--info );--theme-switch-thumb-mixed--background--hover:var( --theme-switch-thumb-mixed--background--info--hover );--theme-switch-thumb-mixed--background--active:var( --theme-switch-thumb-mixed--background--info--active );--theme-switch-mixed--border-color:var( --theme-switch-mixed--border-color--info );--theme-switch-mixed--border-color--hover:var( --theme-switch-mixed--border-color--info--hover );--theme-switch-mixed--border-color--active:var( --theme-switch-mixed--border-color--info--active )}:host(.ix-warning:not(.disabled)) .slider{--theme-switch-off--background:var( --theme-switch-off--background--warning );--theme-switch-off--background--hover:var( --theme-switch-off--background--warning--hover );--theme-switch-off--background--active:var( --theme-switch-off--background--warning--active );--theme-switch-thumb-off--border-color:var( --theme-switch-thumb-off--border-color--warning );--theme-switch-thumb-off--border-color--hover:var( --theme-switch-thumb-off--border-color--warning--hover );--theme-switch-thumb-off--border-color--active:var( --theme-switch-thumb-off--border-color--warning--active );--theme-switch-thumb-off--background:var( --theme-switch-thumb-off--background--warning );--theme-switch-thumb-off--background--hover:var( --theme-switch-thumb-off--background--warning--hover );--theme-switch-thumb-off--background--active:var( --theme-switch-thumb-off--background--warning--active );--theme-switch-off--border-color:var( --theme-switch-off--border-color--warning );--theme-switch-off--border-color--hover:var( --theme-switch-off--border-color--warning--hover );--theme-switch-off--border-color--active:var( --theme-switch-off--border-color--warning--active );--theme-switch-on--background:var( --theme-switch-on--background--warning );--theme-switch-on--background--hover:var( --theme-switch-on--background--warning--hover );--theme-switch-on--background--active:var( --theme-switch-on--background--warning--active );--theme-switch-thumb-on--border-color:var( --theme-switch-thumb-on--border-color--warning );--theme-switch-thumb-on--border-color--hover:var( --theme-switch-thumb-on--border-color--warning--hover );--theme-switch-thumb-on--border-color--active:var( --theme-switch-thumb-on--border-color--warning--active );--theme-switch-thumb-on--background:var( --theme-switch-thumb-on--background--warning );--theme-switch-thumb-on--background--hover:var( --theme-switch-thumb-on--background--warning--hover );--theme-switch-thumb-on--background--active:var( --theme-switch-thumb-on--background--warning--active );--theme-switch-on--border-color:var( --theme-switch-on--border-color--warning );--theme-switch-on--border-color--hover:var( --theme-switch-on--border-color--warning--hover );--theme-switch-on--border-color--active:var( --theme-switch-on--border-color--warning--active );--theme-switch-mixed--background:var( --theme-switch-mixed--background--warning );--theme-switch-mixed--background--hover:var( --theme-switch-mixed--background--warning--hover );--theme-switch-mixed--background--active:var( --theme-switch-mixed--background--warning--active );--theme-switch-thumb-mixed--border-color:var( --theme-switch-thumb-mixed--border-color--warning );--theme-switch-thumb-mixed--border-color--hover:var( --theme-switch-thumb-mixed--border-color--warning--hover );--theme-switch-thumb-mixed--border-color--active:var( --theme-switch-thumb-mixed--border-color--warning--active );--theme-switch-thumb-mixed--background:var( --theme-switch-thumb-mixed--background--warning );--theme-switch-thumb-mixed--background--hover:var( --theme-switch-thumb-mixed--background--warning--hover );--theme-switch-thumb-mixed--background--active:var( --theme-switch-thumb-mixed--background--warning--active );--theme-switch-mixed--border-color:var( --theme-switch-mixed--border-color--warning );--theme-switch-mixed--border-color--hover:var( --theme-switch-mixed--border-color--warning--hover );--theme-switch-mixed--border-color--active:var( --theme-switch-mixed--border-color--warning--active )}:host(.ix-invalid--required:not(.disabled)) .slider{--theme-switch-off--background:var( --theme-switch-off--background--invalid );--theme-switch-off--background--hover:var( --theme-switch-off--background--invalid--hover );--theme-switch-off--background--active:var( --theme-switch-off--background--invalid--active );--theme-switch-thumb-off--border-color:var( --theme-switch-thumb-off--border-color--invalid );--theme-switch-thumb-off--border-color--hover:var( --theme-switch-thumb-off--border-color--invalid--hover );--theme-switch-thumb-off--border-color--active:var( --theme-switch-thumb-off--border-color--invalid--active );--theme-switch-thumb-off--background:var( --theme-switch-thumb-off--background--invalid );--theme-switch-thumb-off--background--hover:var( --theme-switch-thumb-off--background--invalid--hover );--theme-switch-thumb-off--background--active:var( --theme-switch-thumb-off--background--invalid--active );--theme-switch-off--border-color:var( --theme-switch-off--border-color--invalid );--theme-switch-off--border-color--hover:var( --theme-switch-off--border-color--invalid--hover );--theme-switch-off--border-color--active:var( --theme-switch-off--border-color--invalid--active );--theme-switch-on--background:var( --theme-switch-on--background--invalid );--theme-switch-on--background--hover:var( --theme-switch-on--background--invalid--hover );--theme-switch-on--background--active:var( --theme-switch-on--background--invalid--active );--theme-switch-thumb-on--border-color:var( --theme-switch-thumb-on--border-color--invalid );--theme-switch-thumb-on--border-color--hover:var( --theme-switch-thumb-on--border-color--invalid--hover );--theme-switch-thumb-on--border-color--active:var( --theme-switch-thumb-on--border-color--invalid--active );--theme-switch-thumb-on--background:var( --theme-switch-thumb-on--background--invalid );--theme-switch-thumb-on--background--hover:var( --theme-switch-thumb-on--background--invalid--hover );--theme-switch-thumb-on--background--active:var( --theme-switch-thumb-on--background--invalid--active );--theme-switch-on--border-color:var( --theme-switch-on--border-color--invalid );--theme-switch-on--border-color--hover:var( --theme-switch-on--border-color--invalid--hover );--theme-switch-on--border-color--active:var( --theme-switch-on--border-color--invalid--active );--theme-switch-mixed--background:var( --theme-switch-mixed--background--invalid );--theme-switch-mixed--background--hover:var( --theme-switch-mixed--background--invalid--hover );--theme-switch-mixed--background--active:var( --theme-switch-mixed--background--invalid--active );--theme-switch-thumb-mixed--border-color:var( --theme-switch-thumb-mixed--border-color--invalid );--theme-switch-thumb-mixed--border-color--hover:var( --theme-switch-thumb-mixed--border-color--invalid--hover );--theme-switch-thumb-mixed--border-color--active:var( --theme-switch-thumb-mixed--border-color--invalid--active );--theme-switch-thumb-mixed--background:var( --theme-switch-thumb-mixed--background--invalid );--theme-switch-thumb-mixed--background--hover:var( --theme-switch-thumb-mixed--background--invalid--hover );--theme-switch-thumb-mixed--background--active:var( --theme-switch-thumb-mixed--background--invalid--active );--theme-switch-mixed--border-color:var( --theme-switch-mixed--border-color--invalid );--theme-switch-mixed--border-color--hover:var( --theme-switch-mixed--border-color--invalid--hover );--theme-switch-mixed--border-color--active:var( --theme-switch-mixed--border-color--invalid--active )}:host(.ix-invalid:not(.disabled)) .slider{--theme-switch-off--background:var( --theme-switch-off--background--invalid );--theme-switch-off--background--hover:var( --theme-switch-off--background--invalid--hover );--theme-switch-off--background--active:var( --theme-switch-off--background--invalid--active );--theme-switch-thumb-off--border-color:var( --theme-switch-thumb-off--border-color--invalid );--theme-switch-thumb-off--border-color--hover:var( --theme-switch-thumb-off--border-color--invalid--hover );--theme-switch-thumb-off--border-color--active:var( --theme-switch-thumb-off--border-color--invalid--active );--theme-switch-thumb-off--background:var( --theme-switch-thumb-off--background--invalid );--theme-switch-thumb-off--background--hover:var( --theme-switch-thumb-off--background--invalid--hover );--theme-switch-thumb-off--background--active:var( --theme-switch-thumb-off--background--invalid--active );--theme-switch-off--border-color:var( --theme-switch-off--border-color--invalid );--theme-switch-off--border-color--hover:var( --theme-switch-off--border-color--invalid--hover );--theme-switch-off--border-color--active:var( --theme-switch-off--border-color--invalid--active );--theme-switch-on--background:var( --theme-switch-on--background--invalid );--theme-switch-on--background--hover:var( --theme-switch-on--background--invalid--hover );--theme-switch-on--background--active:var( --theme-switch-on--background--invalid--active );--theme-switch-thumb-on--border-color:var( --theme-switch-thumb-on--border-color--invalid );--theme-switch-thumb-on--border-color--hover:var( --theme-switch-thumb-on--border-color--invalid--hover );--theme-switch-thumb-on--border-color--active:var( --theme-switch-thumb-on--border-color--invalid--active );--theme-switch-thumb-on--background:var( --theme-switch-thumb-on--background--invalid );--theme-switch-thumb-on--background--hover:var( --theme-switch-thumb-on--background--invalid--hover );--theme-switch-thumb-on--background--active:var( --theme-switch-thumb-on--background--invalid--active );--theme-switch-on--border-color:var( --theme-switch-on--border-color--invalid );--theme-switch-on--border-color--hover:var( --theme-switch-on--border-color--invalid--hover );--theme-switch-on--border-color--active:var( --theme-switch-on--border-color--invalid--active );--theme-switch-mixed--background:var( --theme-switch-mixed--background--invalid );--theme-switch-mixed--background--hover:var( --theme-switch-mixed--background--invalid--hover );--theme-switch-mixed--background--active:var( --theme-switch-mixed--background--invalid--active );--theme-switch-thumb-mixed--border-color:var( --theme-switch-thumb-mixed--border-color--invalid );--theme-switch-thumb-mixed--border-color--hover:var( --theme-switch-thumb-mixed--border-color--invalid--hover );--theme-switch-thumb-mixed--border-color--active:var( --theme-switch-thumb-mixed--border-color--invalid--active );--theme-switch-thumb-mixed--background:var( --theme-switch-thumb-mixed--background--invalid );--theme-switch-thumb-mixed--background--hover:var( --theme-switch-thumb-mixed--background--invalid--hover );--theme-switch-thumb-mixed--background--active:var( --theme-switch-thumb-mixed--background--invalid--active );--theme-switch-mixed--border-color:var( --theme-switch-mixed--border-color--invalid );--theme-switch-mixed--border-color--hover:var( --theme-switch-mixed--border-color--invalid--hover );--theme-switch-mixed--border-color--active:var( --theme-switch-mixed--border-color--invalid--active )}'}},[577,"ix-toggle",{name:[513],value:[513],checked:[1540],disabled:[4],indeterminate:[1540],textOn:[1,"text-on"],textOff:[1,"text-off"],textIndeterminate:[1,"text-indeterminate"],hideText:[4,"hide-text"],required:[516],inheritAriaAttributes:[32],hasValidValue:[64],getAssociatedFormElement:[64],isTouched:[64]},void 0,{role:[{ariaAttributeChanged:0}],"aria-activedescendant":[{ariaAttributeChanged:0}],"aria-atomic":[{ariaAttributeChanged:0}],"aria-autocomplete":[{ariaAttributeChanged:0}],"aria-braillelabel":[{ariaAttributeChanged:0}],"aria-brailleroledescription":[{ariaAttributeChanged:0}],"aria-busy":[{ariaAttributeChanged:0}],"aria-checked":[{ariaAttributeChanged:0}],"aria-colcount":[{ariaAttributeChanged:0}],"aria-colindex":[{ariaAttributeChanged:0}],"aria-colindextext":[{ariaAttributeChanged:0}],"aria-colspan":[{ariaAttributeChanged:0}],"aria-controls":[{ariaAttributeChanged:0}],"aria-current":[{ariaAttributeChanged:0}],"aria-describedby":[{ariaAttributeChanged:0}],"aria-description":[{ariaAttributeChanged:0}],"aria-details":[{ariaAttributeChanged:0}],"aria-disabled":[{ariaAttributeChanged:0}],"aria-errormessage":[{ariaAttributeChanged:0}],"aria-expanded":[{ariaAttributeChanged:0}],"aria-flowto":[{ariaAttributeChanged:0}],"aria-haspopup":[{ariaAttributeChanged:0}],"aria-hidden":[{ariaAttributeChanged:0}],"aria-invalid":[{ariaAttributeChanged:0}],"aria-keyshortcuts":[{ariaAttributeChanged:0}],"aria-label":[{ariaAttributeChanged:0}],"aria-labelledby":[{ariaAttributeChanged:0}],"aria-level":[{ariaAttributeChanged:0}],"aria-live":[{ariaAttributeChanged:0}],"aria-multiline":[{ariaAttributeChanged:0}],"aria-multiselectable":[{ariaAttributeChanged:0}],"aria-orientation":[{ariaAttributeChanged:0}],"aria-owns":[{ariaAttributeChanged:0}],"aria-placeholder":[{ariaAttributeChanged:0}],"aria-posinset":[{ariaAttributeChanged:0}],"aria-pressed":[{ariaAttributeChanged:0}],"aria-readonly":[{ariaAttributeChanged:0}],"aria-relevant":[{ariaAttributeChanged:0}],"aria-required":[{ariaAttributeChanged:0}],"aria-roledescription":[{ariaAttributeChanged:0}],"aria-rowcount":[{ariaAttributeChanged:0}],"aria-rowindex":[{ariaAttributeChanged:0}],"aria-rowindextext":[{ariaAttributeChanged:0}],"aria-rowspan":[{ariaAttributeChanged:0}],"aria-selected":[{ariaAttributeChanged:0}],"aria-setsize":[{ariaAttributeChanged:0}],"aria-sort":[{ariaAttributeChanged:0}],"aria-valuemax":[{ariaAttributeChanged:0}],"aria-valuemin":[{ariaAttributeChanged:0}],"aria-valuenow":[{ariaAttributeChanged:0}],"aria-valuetext":[{ariaAttributeChanged:0}],checked:[{watchCheckedChange:0}]}]);!function(e,r,t,o){var i,a=arguments.length,h=a<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(e,r,t,o);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(h=(a<3?i(h):a>3?i(r,t,h):i(r,t))||h);a>3&&h&&Object.defineProperty(r,t,h)}([n()],m.prototype,"updateClassMappings",null);const s=m,v=function(){"undefined"!=typeof customElements&&["ix-toggle","ix-typography"].forEach((e=>{switch(e){case"ix-toggle":customElements.get(a(e))||customElements.define(a(e),m);break;case"ix-typography":customElements.get(a(e))||b()}}))};export{s as IxToggle,v as defineCustomElement}
1
+ import{p as e,M as o,e as r,h as t,d as h,t as i}from"./p-eN5fQtqO.js";import{a as c}from"./p-DD206pTM.js";import{D as a}from"./p-CApDAYIa.js";import{I as d}from"./p-BF2IsI5j.js";import{d as m}from"./p-YFmbQndr.js";import{H as b}from"./p-BTBxxgtF.js";const s=e(class extends(o(...a,d)){constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.checkedChange=r(this,"checkedChange",7),this.valueChange=r(this,"valueChange",7),this.ixBlur=r(this,"ixBlur",7),this.formInternals=this.attachInternals()}formInternals;get hostElement(){return this}name;value="on";checked=!1;disabled=!1;indeterminate=!1;textOn="On";textOff="Off";textIndeterminate="Mixed";hideText=!1;required=!1;checkedChange;valueChange;ixBlur;touched=!1;onCheckedChange(e){if(this.disabled)return;const o=this.indeterminate,r=this.checked;this.indeterminate&&(this.indeterminate=!1),this.checked=e;const{defaultPrevented:t}=this.checkedChange.emit(this.checked);t&&(this.indeterminate=o,this.checked=r)}componentWillLoad(){super.componentWillLoad(),this.updateFormInternalValue()}updateFormInternalValue(){this.formInternals.setFormValue(this.checked?this.value:null)}watchCheckedChange(){this.touched=!0,this.updateFormInternalValue()}hasValidValue(){return Promise.resolve(this.checked)}getAssociatedFormElement(){return Promise.resolve(this.formInternals.form)}isTouched(){return Promise.resolve(this.touched)}updateClassMappings(){}resolveAriaLabel(){if(!this.inheritAriaAttributes["aria-labelledby"])return this.inheritAriaAttributes["aria-label"]}render(){let e=this.textOff;this.checked&&(e=this.textOn),this.indeterminate&&(e=this.textIndeterminate);const o=this.resolveAriaLabel(),r=this.indeterminate?"mixed":c(this.checked);return t(h,{key:"dcc719533d7ebad6ebfc175db7fcce81ca432f6c",...this.inheritAriaAttributes,role:"switch",tabindex:this.disabled?-1:0,"aria-label":o,"aria-checked":r,"aria-disabled":c(this.disabled),"aria-required":c(this.required),class:{disabled:this.disabled},onBlur:()=>this.ixBlur.emit(),onFocus:()=>this.touched=!0,onKeyDown:e=>{this.disabled||" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this.onCheckedChange(!this.checked))},onClick:()=>{this.disabled||this.onCheckedChange(!this.checked)}},t("div",{key:"86cac25e18858e76e535df0c0a66e94dc5ca4c30",class:"wrapper"},t("div",{key:"63eb080dd311b49c211e57abc8b1b5830a8fb81c",class:{switch:!0,checked:this.checked,indeterminate:this.indeterminate},"aria-hidden":"true"},t("div",{key:"a2f46d4412c3f51d93ffe20d9e8e7681c50f2fa8",class:"slider"})),!this.hideText&&t("ix-typography",{key:"8ed5848b4641a0152b937e8e3fdb9ce4d45ff1d3",class:"label","aria-hidden":"true"},e)))}static get formAssociated(){return!0}static get watchers(){return{checked:[{watchCheckedChange:0}]}}static get style(){return':host{display:inline-flex;flex-direction:row;position:relative;min-height:1.5rem;max-height:calc(100% - 0.5rem);margin-block-start:0.25rem;margin-block-end:0.25rem}: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 *{}:host *::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host *{}: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 *{}:host *::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host *{}:host *::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host *::-webkit-scrollbar-corner{display:none}:host .wrapper{display:flex;align-items:flex-start;width:100%;max-height:100%}:host .label{word-break:break-word;display:block;white-space:normal;overflow:hidden;margin-block-start:0.125rem;margin-inline-start:0.5rem;min-height:1rem}:host .switch{all:unset;position:relative;display:inline-block;width:3rem;min-width:3rem;max-width:3rem;height:1.5rem}:host .slider{position:absolute;top:0;left:0;right:0;bottom:0;background-color:var(--theme-switch-off--background);transition:var(--theme-default-time);border-radius:1.5rem;border:0.0625rem solid transparent}:host .slider:before{position:absolute;content:"";height:1.125rem;width:1.125rem;left:0.125rem;bottom:0.125rem;background-color:var(--theme-switch-thumb-off--background);transition:var(--theme-default-time);border-radius:50%;border:1px solid var(--theme-switch-thumb-off--border-color)}:host .switch.checked>.slider::before{background-color:var(--theme-switch-thumb-on--background);transform:translateX(1.5rem)}:host .switch>.slider{border-color:var(--theme-switch-off--border-color)}:host .switch:hover>.slider{background-color:var(--theme-switch-off--background--hover);border-color:var(--theme-switch-off--border-color--hover)}:host .switch:hover>.slider:before{background-color:var(--theme-switch-thumb-off--background--hover);border:1px solid var(--theme-switch-thumb-off--border-color--hover)}:host .switch:active>.slider{background-color:var(--theme-switch-off--background--active);border-color:var(--theme-switch-off--border-color--active)}:host .switch:active>.slider:before{background-color:var(--theme-switch-thumb-off--background--active);border:1px solid var(--theme-switch-thumb-off--border-color--active)}:host .switch.checked>.slider{background-color:var(--theme-switch-on--background);border-color:var(--theme-switch-on--border-color)}:host .switch.checked>.slider:before{border:1px solid var(--theme-switch-thumb-on--border-color)}:host .switch.checked:hover>.slider{background-color:var(--theme-switch-on--background--hover);border-color:var(--theme-switch-on--border-color--hover)}:host .switch.checked:hover>.slider:before{background-color:var(--theme-switch-thumb-on--background--hover);border:1px solid var(--theme-switch-thumb-on--border-color--hover)}:host .switch.checked:active>.slider{background-color:var(--theme-switch-on--background--active);border-color:var(--theme-switch-on--border-color--active)}:host .switch.checked:active>.slider:before{background-color:var(--theme-switch-thumb-on--background--active);border:1px solid var(--theme-switch-thumb-on--border-color--active)}:host .switch.indeterminate>.slider::before{transform:translateX(0.75rem)}:host(:not(.disabled)) .wrapper{cursor:pointer}:host(:focus),:host(:focus-visible){outline:none}:host(:not(.disabled):focus-visible) .switch>.slider{outline:0.0625rem solid var(--theme-color-focus-bdr);outline-offset:0.0625rem}:host(.disabled){pointer-events:none}:host(.disabled) .switch{opacity:0.5}:host(.disabled) .switch>.slider{background-color:var(--theme-switch-off--background--disabled)}:host(.disabled) .switch>.slider:before{background-color:var(--theme-switch-thumb-off--background--disabled)}:host(.disabled) .switch.checked>.slider{background-color:var(--theme-switch-on--background--disabled)}:host(.disabled) .switch.checked>.slider:before{background-color:var(--theme-switch-thumb-on--background--disabled)}:host(.disabled) .label{color:var(--theme-color-weak-text)}:host(.ix-valid:not(.disabled)) .slider{--theme-switch-off--background:var( --theme-switch-off--background--valid );--theme-switch-off--background--hover:var( --theme-switch-off--background--valid--hover );--theme-switch-off--background--active:var( --theme-switch-off--background--valid--active );--theme-switch-thumb-off--border-color:var( --theme-switch-thumb-off--border-color--valid );--theme-switch-thumb-off--border-color--hover:var( --theme-switch-thumb-off--border-color--valid--hover );--theme-switch-thumb-off--border-color--active:var( --theme-switch-thumb-off--border-color--valid--active );--theme-switch-thumb-off--background:var( --theme-switch-thumb-off--background--valid );--theme-switch-thumb-off--background--hover:var( --theme-switch-thumb-off--background--valid--hover );--theme-switch-thumb-off--background--active:var( --theme-switch-thumb-off--background--valid--active );--theme-switch-off--border-color:var( --theme-switch-off--border-color--valid );--theme-switch-off--border-color--hover:var( --theme-switch-off--border-color--valid--hover );--theme-switch-off--border-color--active:var( --theme-switch-off--border-color--valid--active );--theme-switch-on--background:var( --theme-switch-on--background--valid );--theme-switch-on--background--hover:var( --theme-switch-on--background--valid--hover );--theme-switch-on--background--active:var( --theme-switch-on--background--valid--active );--theme-switch-thumb-on--border-color:var( --theme-switch-thumb-on--border-color--valid );--theme-switch-thumb-on--border-color--hover:var( --theme-switch-thumb-on--border-color--valid--hover );--theme-switch-thumb-on--border-color--active:var( --theme-switch-thumb-on--border-color--valid--active );--theme-switch-thumb-on--background:var( --theme-switch-thumb-on--background--valid );--theme-switch-thumb-on--background--hover:var( --theme-switch-thumb-on--background--valid--hover );--theme-switch-thumb-on--background--active:var( --theme-switch-thumb-on--background--valid--active );--theme-switch-on--border-color:var( --theme-switch-on--border-color--valid );--theme-switch-on--border-color--hover:var( --theme-switch-on--border-color--valid--hover );--theme-switch-on--border-color--active:var( --theme-switch-on--border-color--valid--active );--theme-switch-mixed--background:var( --theme-switch-mixed--background--valid );--theme-switch-mixed--background--hover:var( --theme-switch-mixed--background--valid--hover );--theme-switch-mixed--background--active:var( --theme-switch-mixed--background--valid--active );--theme-switch-thumb-mixed--border-color:var( --theme-switch-thumb-mixed--border-color--valid );--theme-switch-thumb-mixed--border-color--hover:var( --theme-switch-thumb-mixed--border-color--valid--hover );--theme-switch-thumb-mixed--border-color--active:var( --theme-switch-thumb-mixed--border-color--valid--active );--theme-switch-thumb-mixed--background:var( --theme-switch-thumb-mixed--background--valid );--theme-switch-thumb-mixed--background--hover:var( --theme-switch-thumb-mixed--background--valid--hover );--theme-switch-thumb-mixed--background--active:var( --theme-switch-thumb-mixed--background--valid--active );--theme-switch-mixed--border-color:var( --theme-switch-mixed--border-color--valid );--theme-switch-mixed--border-color--hover:var( --theme-switch-mixed--border-color--valid--hover );--theme-switch-mixed--border-color--active:var( --theme-switch-mixed--border-color--valid--active )}:host(.ix-info:not(.disabled)) .slider{--theme-switch-off--background:var( --theme-switch-off--background--info );--theme-switch-off--background--hover:var( --theme-switch-off--background--info--hover );--theme-switch-off--background--active:var( --theme-switch-off--background--info--active );--theme-switch-thumb-off--border-color:var( --theme-switch-thumb-off--border-color--info );--theme-switch-thumb-off--border-color--hover:var( --theme-switch-thumb-off--border-color--info--hover );--theme-switch-thumb-off--border-color--active:var( --theme-switch-thumb-off--border-color--info--active );--theme-switch-thumb-off--background:var( --theme-switch-thumb-off--background--info );--theme-switch-thumb-off--background--hover:var( --theme-switch-thumb-off--background--info--hover );--theme-switch-thumb-off--background--active:var( --theme-switch-thumb-off--background--info--active );--theme-switch-off--border-color:var( --theme-switch-off--border-color--info );--theme-switch-off--border-color--hover:var( --theme-switch-off--border-color--info--hover );--theme-switch-off--border-color--active:var( --theme-switch-off--border-color--info--active );--theme-switch-on--background:var( --theme-switch-on--background--info );--theme-switch-on--background--hover:var( --theme-switch-on--background--info--hover );--theme-switch-on--background--active:var( --theme-switch-on--background--info--active );--theme-switch-thumb-on--border-color:var( --theme-switch-thumb-on--border-color--info );--theme-switch-thumb-on--border-color--hover:var( --theme-switch-thumb-on--border-color--info--hover );--theme-switch-thumb-on--border-color--active:var( --theme-switch-thumb-on--border-color--info--active );--theme-switch-thumb-on--background:var( --theme-switch-thumb-on--background--info );--theme-switch-thumb-on--background--hover:var( --theme-switch-thumb-on--background--info--hover );--theme-switch-thumb-on--background--active:var( --theme-switch-thumb-on--background--info--active );--theme-switch-on--border-color:var( --theme-switch-on--border-color--info );--theme-switch-on--border-color--hover:var( --theme-switch-on--border-color--info--hover );--theme-switch-on--border-color--active:var( --theme-switch-on--border-color--info--active );--theme-switch-mixed--background:var( --theme-switch-mixed--background--info );--theme-switch-mixed--background--hover:var( --theme-switch-mixed--background--info--hover );--theme-switch-mixed--background--active:var( --theme-switch-mixed--background--info--active );--theme-switch-thumb-mixed--border-color:var( --theme-switch-thumb-mixed--border-color--info );--theme-switch-thumb-mixed--border-color--hover:var( --theme-switch-thumb-mixed--border-color--info--hover );--theme-switch-thumb-mixed--border-color--active:var( --theme-switch-thumb-mixed--border-color--info--active );--theme-switch-thumb-mixed--background:var( --theme-switch-thumb-mixed--background--info );--theme-switch-thumb-mixed--background--hover:var( --theme-switch-thumb-mixed--background--info--hover );--theme-switch-thumb-mixed--background--active:var( --theme-switch-thumb-mixed--background--info--active );--theme-switch-mixed--border-color:var( --theme-switch-mixed--border-color--info );--theme-switch-mixed--border-color--hover:var( --theme-switch-mixed--border-color--info--hover );--theme-switch-mixed--border-color--active:var( --theme-switch-mixed--border-color--info--active )}:host(.ix-warning:not(.disabled)) .slider{--theme-switch-off--background:var( --theme-switch-off--background--warning );--theme-switch-off--background--hover:var( --theme-switch-off--background--warning--hover );--theme-switch-off--background--active:var( --theme-switch-off--background--warning--active );--theme-switch-thumb-off--border-color:var( --theme-switch-thumb-off--border-color--warning );--theme-switch-thumb-off--border-color--hover:var( --theme-switch-thumb-off--border-color--warning--hover );--theme-switch-thumb-off--border-color--active:var( --theme-switch-thumb-off--border-color--warning--active );--theme-switch-thumb-off--background:var( --theme-switch-thumb-off--background--warning );--theme-switch-thumb-off--background--hover:var( --theme-switch-thumb-off--background--warning--hover );--theme-switch-thumb-off--background--active:var( --theme-switch-thumb-off--background--warning--active );--theme-switch-off--border-color:var( --theme-switch-off--border-color--warning );--theme-switch-off--border-color--hover:var( --theme-switch-off--border-color--warning--hover );--theme-switch-off--border-color--active:var( --theme-switch-off--border-color--warning--active );--theme-switch-on--background:var( --theme-switch-on--background--warning );--theme-switch-on--background--hover:var( --theme-switch-on--background--warning--hover );--theme-switch-on--background--active:var( --theme-switch-on--background--warning--active );--theme-switch-thumb-on--border-color:var( --theme-switch-thumb-on--border-color--warning );--theme-switch-thumb-on--border-color--hover:var( --theme-switch-thumb-on--border-color--warning--hover );--theme-switch-thumb-on--border-color--active:var( --theme-switch-thumb-on--border-color--warning--active );--theme-switch-thumb-on--background:var( --theme-switch-thumb-on--background--warning );--theme-switch-thumb-on--background--hover:var( --theme-switch-thumb-on--background--warning--hover );--theme-switch-thumb-on--background--active:var( --theme-switch-thumb-on--background--warning--active );--theme-switch-on--border-color:var( --theme-switch-on--border-color--warning );--theme-switch-on--border-color--hover:var( --theme-switch-on--border-color--warning--hover );--theme-switch-on--border-color--active:var( --theme-switch-on--border-color--warning--active );--theme-switch-mixed--background:var( --theme-switch-mixed--background--warning );--theme-switch-mixed--background--hover:var( --theme-switch-mixed--background--warning--hover );--theme-switch-mixed--background--active:var( --theme-switch-mixed--background--warning--active );--theme-switch-thumb-mixed--border-color:var( --theme-switch-thumb-mixed--border-color--warning );--theme-switch-thumb-mixed--border-color--hover:var( --theme-switch-thumb-mixed--border-color--warning--hover );--theme-switch-thumb-mixed--border-color--active:var( --theme-switch-thumb-mixed--border-color--warning--active );--theme-switch-thumb-mixed--background:var( --theme-switch-thumb-mixed--background--warning );--theme-switch-thumb-mixed--background--hover:var( --theme-switch-thumb-mixed--background--warning--hover );--theme-switch-thumb-mixed--background--active:var( --theme-switch-thumb-mixed--background--warning--active );--theme-switch-mixed--border-color:var( --theme-switch-mixed--border-color--warning );--theme-switch-mixed--border-color--hover:var( --theme-switch-mixed--border-color--warning--hover );--theme-switch-mixed--border-color--active:var( --theme-switch-mixed--border-color--warning--active )}:host(.ix-invalid--required:not(.disabled)) .slider{--theme-switch-off--background:var( --theme-switch-off--background--invalid );--theme-switch-off--background--hover:var( --theme-switch-off--background--invalid--hover );--theme-switch-off--background--active:var( --theme-switch-off--background--invalid--active );--theme-switch-thumb-off--border-color:var( --theme-switch-thumb-off--border-color--invalid );--theme-switch-thumb-off--border-color--hover:var( --theme-switch-thumb-off--border-color--invalid--hover );--theme-switch-thumb-off--border-color--active:var( --theme-switch-thumb-off--border-color--invalid--active );--theme-switch-thumb-off--background:var( --theme-switch-thumb-off--background--invalid );--theme-switch-thumb-off--background--hover:var( --theme-switch-thumb-off--background--invalid--hover );--theme-switch-thumb-off--background--active:var( --theme-switch-thumb-off--background--invalid--active );--theme-switch-off--border-color:var( --theme-switch-off--border-color--invalid );--theme-switch-off--border-color--hover:var( --theme-switch-off--border-color--invalid--hover );--theme-switch-off--border-color--active:var( --theme-switch-off--border-color--invalid--active );--theme-switch-on--background:var( --theme-switch-on--background--invalid );--theme-switch-on--background--hover:var( --theme-switch-on--background--invalid--hover );--theme-switch-on--background--active:var( --theme-switch-on--background--invalid--active );--theme-switch-thumb-on--border-color:var( --theme-switch-thumb-on--border-color--invalid );--theme-switch-thumb-on--border-color--hover:var( --theme-switch-thumb-on--border-color--invalid--hover );--theme-switch-thumb-on--border-color--active:var( --theme-switch-thumb-on--border-color--invalid--active );--theme-switch-thumb-on--background:var( --theme-switch-thumb-on--background--invalid );--theme-switch-thumb-on--background--hover:var( --theme-switch-thumb-on--background--invalid--hover );--theme-switch-thumb-on--background--active:var( --theme-switch-thumb-on--background--invalid--active );--theme-switch-on--border-color:var( --theme-switch-on--border-color--invalid );--theme-switch-on--border-color--hover:var( --theme-switch-on--border-color--invalid--hover );--theme-switch-on--border-color--active:var( --theme-switch-on--border-color--invalid--active );--theme-switch-mixed--background:var( --theme-switch-mixed--background--invalid );--theme-switch-mixed--background--hover:var( --theme-switch-mixed--background--invalid--hover );--theme-switch-mixed--background--active:var( --theme-switch-mixed--background--invalid--active );--theme-switch-thumb-mixed--border-color:var( --theme-switch-thumb-mixed--border-color--invalid );--theme-switch-thumb-mixed--border-color--hover:var( --theme-switch-thumb-mixed--border-color--invalid--hover );--theme-switch-thumb-mixed--border-color--active:var( --theme-switch-thumb-mixed--border-color--invalid--active );--theme-switch-thumb-mixed--background:var( --theme-switch-thumb-mixed--background--invalid );--theme-switch-thumb-mixed--background--hover:var( --theme-switch-thumb-mixed--background--invalid--hover );--theme-switch-thumb-mixed--background--active:var( --theme-switch-thumb-mixed--background--invalid--active );--theme-switch-mixed--border-color:var( --theme-switch-mixed--border-color--invalid );--theme-switch-mixed--border-color--hover:var( --theme-switch-mixed--border-color--invalid--hover );--theme-switch-mixed--border-color--active:var( --theme-switch-mixed--border-color--invalid--active )}:host(.ix-invalid:not(.disabled)) .slider{--theme-switch-off--background:var( --theme-switch-off--background--invalid );--theme-switch-off--background--hover:var( --theme-switch-off--background--invalid--hover );--theme-switch-off--background--active:var( --theme-switch-off--background--invalid--active );--theme-switch-thumb-off--border-color:var( --theme-switch-thumb-off--border-color--invalid );--theme-switch-thumb-off--border-color--hover:var( --theme-switch-thumb-off--border-color--invalid--hover );--theme-switch-thumb-off--border-color--active:var( --theme-switch-thumb-off--border-color--invalid--active );--theme-switch-thumb-off--background:var( --theme-switch-thumb-off--background--invalid );--theme-switch-thumb-off--background--hover:var( --theme-switch-thumb-off--background--invalid--hover );--theme-switch-thumb-off--background--active:var( --theme-switch-thumb-off--background--invalid--active );--theme-switch-off--border-color:var( --theme-switch-off--border-color--invalid );--theme-switch-off--border-color--hover:var( --theme-switch-off--border-color--invalid--hover );--theme-switch-off--border-color--active:var( --theme-switch-off--border-color--invalid--active );--theme-switch-on--background:var( --theme-switch-on--background--invalid );--theme-switch-on--background--hover:var( --theme-switch-on--background--invalid--hover );--theme-switch-on--background--active:var( --theme-switch-on--background--invalid--active );--theme-switch-thumb-on--border-color:var( --theme-switch-thumb-on--border-color--invalid );--theme-switch-thumb-on--border-color--hover:var( --theme-switch-thumb-on--border-color--invalid--hover );--theme-switch-thumb-on--border-color--active:var( --theme-switch-thumb-on--border-color--invalid--active );--theme-switch-thumb-on--background:var( --theme-switch-thumb-on--background--invalid );--theme-switch-thumb-on--background--hover:var( --theme-switch-thumb-on--background--invalid--hover );--theme-switch-thumb-on--background--active:var( --theme-switch-thumb-on--background--invalid--active );--theme-switch-on--border-color:var( --theme-switch-on--border-color--invalid );--theme-switch-on--border-color--hover:var( --theme-switch-on--border-color--invalid--hover );--theme-switch-on--border-color--active:var( --theme-switch-on--border-color--invalid--active );--theme-switch-mixed--background:var( --theme-switch-mixed--background--invalid );--theme-switch-mixed--background--hover:var( --theme-switch-mixed--background--invalid--hover );--theme-switch-mixed--background--active:var( --theme-switch-mixed--background--invalid--active );--theme-switch-thumb-mixed--border-color:var( --theme-switch-thumb-mixed--border-color--invalid );--theme-switch-thumb-mixed--border-color--hover:var( --theme-switch-thumb-mixed--border-color--invalid--hover );--theme-switch-thumb-mixed--border-color--active:var( --theme-switch-thumb-mixed--border-color--invalid--active );--theme-switch-thumb-mixed--background:var( --theme-switch-thumb-mixed--background--invalid );--theme-switch-thumb-mixed--background--hover:var( --theme-switch-thumb-mixed--background--invalid--hover );--theme-switch-thumb-mixed--background--active:var( --theme-switch-thumb-mixed--background--invalid--active );--theme-switch-mixed--border-color:var( --theme-switch-mixed--border-color--invalid );--theme-switch-mixed--border-color--hover:var( --theme-switch-mixed--border-color--invalid--hover );--theme-switch-mixed--border-color--active:var( --theme-switch-mixed--border-color--invalid--active )}'}},[577,"ix-toggle",{name:[513],value:[513],checked:[1540],disabled:[4],indeterminate:[1540],textOn:[1,"text-on"],textOff:[1,"text-off"],textIndeterminate:[1,"text-indeterminate"],hideText:[4,"hide-text"],required:[516],inheritAriaAttributes:[32],hasValidValue:[64],getAssociatedFormElement:[64],isTouched:[64]},void 0,{checked:[{watchCheckedChange:0}]}]);!function(e,o,r,t){var h,i=arguments.length,c=i<3?o:null===t?t=Object.getOwnPropertyDescriptor(o,r):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,o,r,t);else for(var a=e.length-1;a>=0;a--)(h=e[a])&&(c=(i<3?h(c):i>3?h(o,r,c):h(o,r))||c);i>3&&c&&Object.defineProperty(o,r,c)}([b()],s.prototype,"updateClassMappings",null);const n=s,v=function(){"undefined"!=typeof customElements&&["ix-toggle","ix-typography"].forEach((e=>{switch(e){case"ix-toggle":customElements.get(i(e))||customElements.define(i(e),s);break;case"ix-typography":customElements.get(i(e))||m()}}))};export{n as IxToggle,v as defineCustomElement}
@@ -1 +1 @@
1
- import{T as o,d as r}from"./p-CgPr717U.js";const s=o,p=r;export{s as IxTooltip,p as defineCustomElement}
1
+ import{T as o,d as s}from"./p-D_VBAyPm.js";const m=o,p=s;export{m as IxTooltip,p as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,H as t,e as a,h as i,d as s,t as o}from"./p-eN5fQtqO.js";import{U as r}from"./p-BGzrnl_l.js";import{a as l,b as d}from"./p-DsVj4Cd-.js";import{b as n}from"./p-C21npbUc.js";import{d as c}from"./p-CRtj-KBq.js";import{d as h}from"./p-D7sEY2UQ.js";const p=e(class extends t{accept;multiple=!1;directoryUpload=!1;multiline=!1;disabled=!1;state=r.SELECT_FILE;selectFileText;loadingText;uploadFailedText="Upload failed. Please try again.";uploadSuccessText="Upload successful";i18nUploadFile;i18nUploadDisabled="File upload currently not possible.";filesChanged;get hostElement(){return this}get inputElement(){return this.hostElement.shadowRoot.querySelector("#upload-browser")}isFileOver=!1;filesToUpload;a11y={};constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.filesChanged=a(this,"filesChanged",7)}componentWillLoad(){this.a11y=n(this.hostElement)}fileDropped(e){if(e.preventDefault(),this.disabled)return;if(!e.dataTransfer)return;const t=e.dataTransfer.files;this.isFileOver=!1,this.filesToUpload=this.convertToFileArray(t),this.filesChanged.emit(this.filesToUpload)}fileOver(e){e.dataTransfer&&(this.state!==r.LOADING&&(e.preventDefault(),e.dataTransfer.dropEffect="move"),!this.multiple&&e.dataTransfer.items.length>1?(e.preventDefault(),e.stopPropagation(),e.dataTransfer.effectAllowed="none",e.dataTransfer.dropEffect="none"):this.isFileOver=!0)}fileLeave(){this.isFileOver=!1}fileChangeEvent(e){this.disabled||e.target&&(this.filesToUpload=this.convertToFileArray(e.target.files),this.filesChanged.emit(this.filesToUpload),this.inputElement.type="",this.inputElement.type="file")}convertToFileArray(e){let t=[];return e?(t=e instanceof FileList?Array.from(e):[e],t):[]}renderUploadState(){if(this.disabled)return i("span",{class:"state"},i("span",{class:"upload-text"},this.i18nUploadDisabled));switch(this.state){case r.SELECT_FILE:return i("span",{class:"state"},i("span",{class:"upload-text"},this.selectFileText??(this.directoryUpload?"+ Drag folder here or…":"+ Drag files here or…")));case r.LOADING:return i("span",{class:"state"},i("ix-spinner",{variant:"primary"}),i("span",{class:"upload-text"},this.loadingText??(this.directoryUpload?"Checking folder…":"Checking files…")));case r.UPLOAD_FAILED:return i("span",{class:"state"},i("ix-icon",{name:d,class:"icon-error"}),i("span",{class:"upload-text"},this.uploadFailedText));case r.UPLOAD_SUCCESSED:return i("span",{class:"state"},i("ix-icon",{name:l,class:"icon-success"}),i("span",{class:"upload-text"},this.uploadSuccessText));default:return""}}async setFilesToUpload(e){this.filesToUpload=e}render(){const e=this.disabled||this.state===r.LOADING,t=this.directoryUpload?{webkitdirectory:!0,directory:!0,multiple:!0}:{},a=this.directoryUpload?"Upload folder":"Upload files",{"aria-label":o=a,...l}=this.a11y;return i(s,{key:"183f8abe7ec5d6fd3427e01b9b03216fa12d41ac",...l,"aria-disabled":e},i("div",{key:"333b66856dcb9e55b2b2658f260cfbcf00b0323c",class:{"file-upload-area":!0,"file-over":this.state!==r.LOADING&&this.isFileOver,checking:this.state===r.LOADING,disabled:this.disabled,multiline:this.multiline},onDrop:e=>{this.state!==r.LOADING&&this.fileDropped(e)},onDragOver:e=>this.fileOver(e),onDragLeave:()=>this.fileLeave()},this.renderUploadState(),i("div",{key:"8934a20d5a8ab01a8e18523d1d533eda1ae47bd6"},i("input",{key:"44e78de7cc78501f559102f9c11e5def89f357c7","aria-label":o,"aria-disabled":e,multiple:this.multiple,type:"file",class:"upload-browser",id:"upload-browser",...t,tabindex:"-1",onChange:e=>{this.fileChangeEvent(e)},accept:this.accept,disabled:e}),i("ix-button",{key:"2847f32277c81f54a265e02c0ea03f8301527cad",variant:"secondary","aria-disabled":e,onClick:()=>this.inputElement.click(),disabled:e},this.i18nUploadFile??(this.directoryUpload?"Upload folder…":"Upload file…")))))}static get style(){return":host{display:block;min-height:4rem;height:4rem}: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 *{}:host *::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host *{}: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 *{}:host *::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host *{}:host *::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host *::-webkit-scrollbar-corner{display:none}:host .file-upload-area{display:flex;flex-direction:row;align-items:center;justify-content:space-between;overflow:hidden;height:100%;width:100%;padding:1rem;border:1px dashed var(--theme-upload--border-color);border-radius:var(--theme-upload--border-radius);color:var(--theme-upload-text--color)}:host .file-upload-area.multiline{max-height:unset;height:auto}:host .file-upload-area.multiline .glyph{align-self:flex-start;margin-block-start:3px}:host .file-upload-area.multiline>div{align-self:flex-start}:host .file-upload-area:not(.multiline) .state,:host .file-upload-area:not(.multiline) .upload-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .file-upload-area:not(.disabled).file-over{border-color:var(--theme-upload--border-color--dragover);border-style:solid}:host .file-upload-area.checking{color:var(--theme-upload-text--color--checking);border-style:solid}:host .file-upload-area.disabled{border-style:solid;color:var(--theme-upload-text--color--disabled)}:host .file-upload-area ix-button{margin-inline-start:1rem}:host .file-upload-area .upload-browser{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}:host .file-upload-area .loader{margin:2.187rem auto;font-size:0.937rem;width:1rem;height:1rem;border-radius:50%;position:relative;text-indent:-9999em;animation:optimise-loading 1.1s infinite ease;transform:translateZ(0)}:host .file-upload-area .upload-filename{margin-bottom:1rem}:host .file-upload-area .state{display:flex;align-items:center}:host .file-upload-area .state>ix-spinner{margin-inline-end:0.5rem}:host .file-upload-area .state>ix-icon{margin-inline-end:0.5rem}:host .file-upload-area .state>ix-icon.icon-error{color:var(--theme-color-alarm)}:host .file-upload-area .state>ix-icon.icon-success{color:var(--theme-color-success)}:host(.disabled){pointer-events:none}"}},[513,"ix-upload",{accept:[1],multiple:[4],directoryUpload:[4,"directory-upload"],multiline:[4],disabled:[4],state:[1],selectFileText:[1,"select-file-text"],loadingText:[1,"loading-text"],uploadFailedText:[1,"upload-failed-text"],uploadSuccessText:[1,"upload-success-text"],i18nUploadFile:[1,"i18n-upload-file"],i18nUploadDisabled:[1,"i18n-upload-disabled"],isFileOver:[32],setFilesToUpload:[64]}]),u=p,b=function(){"undefined"!=typeof customElements&&["ix-upload","ix-button","ix-spinner"].forEach((e=>{switch(e){case"ix-upload":customElements.get(o(e))||customElements.define(o(e),p);break;case"ix-button":customElements.get(o(e))||c();break;case"ix-spinner":customElements.get(o(e))||h()}}))};export{u as IxUpload,b as defineCustomElement}
1
+ import{p as e,H as t,e as a,h as i,d as s,t as o}from"./p-eN5fQtqO.js";import{U as r}from"./p-BGzrnl_l.js";import{a as l,b as d}from"./p-DsVj4Cd-.js";import{b as n}from"./p-DD206pTM.js";import{d as c}from"./p-q_MHsaAK.js";import{d as h}from"./p-BKVBe7Co.js";const p=e(class extends t{accept;multiple=!1;directoryUpload=!1;multiline=!1;disabled=!1;state=r.SELECT_FILE;selectFileText;loadingText;uploadFailedText="Upload failed. Please try again.";uploadSuccessText="Upload successful";i18nUploadFile;i18nUploadDisabled="File upload currently not possible.";filesChanged;get hostElement(){return this}get inputElement(){return this.hostElement.shadowRoot.querySelector("#upload-browser")}isFileOver=!1;filesToUpload;a11y={};constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.filesChanged=a(this,"filesChanged",7)}componentWillLoad(){this.a11y=n(this.hostElement)}fileDropped(e){if(e.preventDefault(),this.disabled)return;if(!e.dataTransfer)return;const t=e.dataTransfer.files;this.isFileOver=!1,this.filesToUpload=this.convertToFileArray(t),this.filesChanged.emit(this.filesToUpload)}fileOver(e){e.dataTransfer&&(this.state!==r.LOADING&&(e.preventDefault(),e.dataTransfer.dropEffect="move"),!this.multiple&&e.dataTransfer.items.length>1?(e.preventDefault(),e.stopPropagation(),e.dataTransfer.effectAllowed="none",e.dataTransfer.dropEffect="none"):this.isFileOver=!0)}fileLeave(){this.isFileOver=!1}fileChangeEvent(e){this.disabled||e.target&&(this.filesToUpload=this.convertToFileArray(e.target.files),this.filesChanged.emit(this.filesToUpload),this.inputElement.type="",this.inputElement.type="file")}convertToFileArray(e){let t=[];return e?(t=e instanceof FileList?Array.from(e):[e],t):[]}renderUploadState(){if(this.disabled)return i("span",{class:"state"},i("span",{class:"upload-text"},this.i18nUploadDisabled));switch(this.state){case r.SELECT_FILE:return i("span",{class:"state"},i("span",{class:"upload-text"},this.selectFileText??(this.directoryUpload?"+ Drag folder here or…":"+ Drag files here or…")));case r.LOADING:return i("span",{class:"state"},i("ix-spinner",{variant:"primary"}),i("span",{class:"upload-text"},this.loadingText??(this.directoryUpload?"Checking folder…":"Checking files…")));case r.UPLOAD_FAILED:return i("span",{class:"state"},i("ix-icon",{name:d,class:"icon-error"}),i("span",{class:"upload-text"},this.uploadFailedText));case r.UPLOAD_SUCCESSED:return i("span",{class:"state"},i("ix-icon",{name:l,class:"icon-success"}),i("span",{class:"upload-text"},this.uploadSuccessText));default:return""}}async setFilesToUpload(e){this.filesToUpload=e}render(){const e=this.disabled||this.state===r.LOADING,t=this.directoryUpload?{webkitdirectory:!0,directory:!0,multiple:!0}:{},a=this.directoryUpload?"Upload folder":"Upload files",{"aria-label":o=a,...l}=this.a11y;return i(s,{key:"183f8abe7ec5d6fd3427e01b9b03216fa12d41ac",...l,"aria-disabled":e},i("div",{key:"333b66856dcb9e55b2b2658f260cfbcf00b0323c",class:{"file-upload-area":!0,"file-over":this.state!==r.LOADING&&this.isFileOver,checking:this.state===r.LOADING,disabled:this.disabled,multiline:this.multiline},onDrop:e=>{this.state!==r.LOADING&&this.fileDropped(e)},onDragOver:e=>this.fileOver(e),onDragLeave:()=>this.fileLeave()},this.renderUploadState(),i("div",{key:"8934a20d5a8ab01a8e18523d1d533eda1ae47bd6"},i("input",{key:"44e78de7cc78501f559102f9c11e5def89f357c7","aria-label":o,"aria-disabled":e,multiple:this.multiple,type:"file",class:"upload-browser",id:"upload-browser",...t,tabindex:"-1",onChange:e=>{this.fileChangeEvent(e)},accept:this.accept,disabled:e}),i("ix-button",{key:"2847f32277c81f54a265e02c0ea03f8301527cad",variant:"secondary","aria-disabled":e,onClick:()=>this.inputElement.click(),disabled:e},this.i18nUploadFile??(this.directoryUpload?"Upload folder…":"Upload file…")))))}static get style(){return":host{display:block;min-height:4rem;height:4rem}: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 *{}:host *::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host *{}: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 *{}:host *::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host *{}:host *::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host *::-webkit-scrollbar-corner{display:none}:host .file-upload-area{display:flex;flex-direction:row;align-items:center;justify-content:space-between;overflow:hidden;height:100%;width:100%;padding:1rem;border:1px dashed var(--theme-upload--border-color);border-radius:var(--theme-upload--border-radius);color:var(--theme-upload-text--color)}:host .file-upload-area.multiline{max-height:unset;height:auto}:host .file-upload-area.multiline .glyph{align-self:flex-start;margin-block-start:3px}:host .file-upload-area.multiline>div{align-self:flex-start}:host .file-upload-area:not(.multiline) .state,:host .file-upload-area:not(.multiline) .upload-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .file-upload-area:not(.disabled).file-over{border-color:var(--theme-upload--border-color--dragover);border-style:solid}:host .file-upload-area.checking{color:var(--theme-upload-text--color--checking);border-style:solid}:host .file-upload-area.disabled{border-style:solid;color:var(--theme-upload-text--color--disabled)}:host .file-upload-area ix-button{margin-inline-start:1rem}:host .file-upload-area .upload-browser{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}:host .file-upload-area .loader{margin:2.187rem auto;font-size:0.937rem;width:1rem;height:1rem;border-radius:50%;position:relative;text-indent:-9999em;animation:optimise-loading 1.1s infinite ease;transform:translateZ(0)}:host .file-upload-area .upload-filename{margin-bottom:1rem}:host .file-upload-area .state{display:flex;align-items:center}:host .file-upload-area .state>ix-spinner{margin-inline-end:0.5rem}:host .file-upload-area .state>ix-icon{margin-inline-end:0.5rem}:host .file-upload-area .state>ix-icon.icon-error{color:var(--theme-color-alarm)}:host .file-upload-area .state>ix-icon.icon-success{color:var(--theme-color-success)}:host(.disabled){pointer-events:none}"}},[513,"ix-upload",{accept:[1],multiple:[4],directoryUpload:[4,"directory-upload"],multiline:[4],disabled:[4],state:[1],selectFileText:[1,"select-file-text"],loadingText:[1,"loading-text"],uploadFailedText:[1,"upload-failed-text"],uploadSuccessText:[1,"upload-success-text"],i18nUploadFile:[1,"i18n-upload-file"],i18nUploadDisabled:[1,"i18n-upload-disabled"],isFileOver:[32],setFilesToUpload:[64]}]),u=p,b=function(){"undefined"!=typeof customElements&&["ix-upload","ix-button","ix-spinner"].forEach((e=>{switch(e){case"ix-upload":customElements.get(o(e))||customElements.define(o(e),p);break;case"ix-button":customElements.get(o(e))||c();break;case"ix-spinner":customElements.get(o(e))||h()}}))};export{u as IxUpload,b as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,H as t,e as r,h as o,F as s,d as a,t as i}from"./p-eN5fQtqO.js";import{a0 as l,b as c,c as n,h as d,a as h,a1 as p,l as b}from"./p-DsVj4Cd-.js";const w=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.selectedChanged=r(this,"selectedChanged",7)}get hostElement(){return this}vertical=!1;disabled=!1;status="open";clickable=!1;selected=!1;position="undefined";iconName;iconColor="workflow-step-icon-default--color";selectedChanged;customIconSlot=!1;selectedHandler(){this.setWorkflowStepStyles()}watchPropHandler(){this.setWorkflowStepStyles()}setWorkflowStepStyles(){const e=this.selected?"--selected":"";switch(this.status){case"open":this.iconName=this.selected?p:l,this.iconColor="workflow-step-icon-default--color"+e;break;case"success":this.iconName=h,this.iconColor="color-success";break;case"done":this.iconName=d,this.iconColor="workflow-step-icon-done--color"+e;break;case"warning":this.iconName=n,this.iconColor="color-warning-text";break;case"error":this.iconName=c,this.iconColor="color-alarm";break;default:this.iconName=l}this.disabled&&(this.iconColor="workflow-step-icon-success--color--disabled")}componentWillLoad(){this.watchPropHandler(),this.selectedHandler(),this.customIconSlot=!!this.hostElement.querySelector('[slot="custom-icon"]')}onStepClick(){!this.disabled&&this.clickable&&this.selectedChanged.emit(this.hostElement)}getIconAriaLabel(){switch(this.iconName){case l:return"Circle";case p:return"Circle dot";case d:return"Done";case c:return"Error";case h:return"Success";case b:case n:return"Warning";default:return"Step"}}render(){const e=this.customIconSlot?null:o(s,null,o("ix-icon",{color:"color-1",name:"warning"===this.status?b:d,class:"absolute",size:"24"}),o("ix-icon",{color:this.iconColor,name:this.iconName,class:"absolute",size:"24","aria-label":this.getIconAriaLabel()}));return o(a,{key:"06871acf9245821241c320810bb5febd368140ac",class:{"host-vertical":this.vertical},onClick:()=>this.onStepClick()},o("div",{key:"94aee385c1690f15432f2bfc27b55bc0edfaf7d9",tabIndex:0,class:{step:!0,selected:this.selected,vertical:this.vertical,disabled:this.disabled,clickable:this.clickable&&!this.disabled}},o("div",{key:"74a094732ab9db8f574ede36820ab6e1d34dad7d",class:"wrapper"},o("div",{key:"681e07da1b3047d5db1b9185f094d905e08173f3",class:{line:!0,selected:this.selected,[this.status]:!0,[this.position]:!0}}),o("div",{key:"02d69f1f4f882dfb00eba46ae1702d58eb881c44",class:"iconWrapper"},e,o("slot",{key:"e6a1db6f80d2eddc1a805f20b69c1055de884240",name:"custom-icon"}))),o("div",{key:"e1f7ae29a343cc37370200d6597597c044f10d1e",class:"text"},o("slot",{key:"26cad775e230ebcebc042dbbefdb24a5fc55db34"}))))}static get watchers(){return{selected:[{selectedHandler:0}],disabled:[{watchPropHandler:0}],status:[{watchPropHandler:0}]}}static get style(){return":host(:not(.host-vertical)){width:12rem;height:4rem;min-width:2rem;min-height:4rem;max-width:12rem}:host(.host-vertical){width:100%;height:4rem;min-width:4rem;min-height:2rem;max-height:12rem}:host{display:inline-block;position:relative}: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 *{}:host *::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host *{}: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 *{}:host *::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host *{}:host *::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host *::-webkit-scrollbar-corner{display:none}:host .step{display:flex;flex-direction:column;align-items:center;background-color:var(--theme-workflow-step--background);border-radius:var(--theme-workflow--border-radius);padding:1.125rem 0 0.5rem 0}:host .step .wrapper{display:flex;width:100%;align-items:center;justify-content:center;position:relative}:host .step .wrapper .line{width:100%;height:0.125rem;background-color:var(--theme-workflow-step-icon-default--color)}:host .step .wrapper .line.first,:host .step .wrapper .line.last{width:50%;margin:0 0 0 auto}:host .step .wrapper .line.last{margin:0 auto 0 0}:host .step .wrapper .line.single{width:0}:host .step .wrapper .line.selected{background-color:var(--theme-workflow-step-icon-default--color--selected)}:host .step .wrapper .line.done{background-color:var(--theme-workflow-step-icon-done--color)}:host .step .wrapper .line.done.selected{background-color:var(--theme-workflow-step-icon-done--color--selected)}:host .step .wrapper .line.warning{background-color:var(--theme-color-warning)}:host .step .wrapper .line.success{background-color:var(--theme-color-success)}:host .step .wrapper .line.error{background-color:var(--theme-color-alarm)}:host .step .wrapper .iconWrapper{display:flex;align-items:center;justify-content:center;position:absolute}:host .step .wrapper .iconWrapper .absolute{position:absolute}:host .step .text{margin-top:1rem;width:100%;padding:0 0.5rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:center}:host .step.vertical{flex-direction:row;padding:0;height:100%}:host .step.vertical .wrapper{width:auto;padding-left:1.125rem;height:100%}:host .step.vertical .wrapper .line{width:0.125rem;height:100%}:host .step.vertical .wrapper .line.first,:host .step.vertical .wrapper .line.last{height:50%;margin:auto 0 0 0}:host .step.vertical .wrapper .line.last{margin:0 0 auto 0}:host .step.vertical .wrapper .line.single{width:0}:host .step.vertical .text{margin:0 1rem;padding:0;width:auto}:host .step.clickable:hover{background-color:var(--theme-workflow-step--background--hover)}:host .step.clickable:active{background-color:var(--theme-workflow-step--background--active)}:host .step:focus-visible{outline:1px solid var(--focus--border-color);border-radius:0}:host .step.selected{background-color:var(--theme-workflow-step--background--selected)}:host .step.disabled{background-color:var(--theme-workflow-step--background--disabled)}:host .step.disabled .line{background-color:var(--theme-workflow-step-icon-default--color--disabled) !important}:host .step.disabled .text{color:var(--theme-workflow-step--color--disabled)}"}},[769,"ix-workflow-step",{vertical:[4],disabled:[4],status:[1],clickable:[4],selected:[4],position:[1],iconName:[32],iconColor:[32]},void 0,{selected:[{selectedHandler:0}],disabled:[{watchPropHandler:0}],status:[{watchPropHandler:0}]}]),u=w,m=function(){"undefined"!=typeof customElements&&["ix-workflow-step"].forEach((e=>{"ix-workflow-step"===e&&(customElements.get(i(e))||customElements.define(i(e),w))}))};export{u as IxWorkflowStep,m as defineCustomElement}
1
+ import{p as e,H as t,e as r,h as o,F as s,d as a,t as i}from"./p-eN5fQtqO.js";import{a0 as l,b as c,c as n,h,a as d,a1 as p,l as b}from"./p-DsVj4Cd-.js";const u=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.selectedChanged=r(this,"selectedChanged",7)}get hostElement(){return this}vertical=!1;disabled=!1;status="open";clickable=!1;selected=!1;position="undefined";iconName;iconColor="workflow-step-icon-default--color";selectedChanged;customIconSlot=!1;selectedHandler(){this.setWorkflowStepStyles()}watchPropHandler(){this.setWorkflowStepStyles()}setWorkflowStepStyles(){const e=this.selected?"--selected":"";switch(this.status){case"open":this.iconName=this.selected?p:l,this.iconColor="workflow-step-icon-default--color"+e;break;case"success":this.iconName=d,this.iconColor="color-success";break;case"done":this.iconName=h,this.iconColor="workflow-step-icon-done--color"+e;break;case"warning":this.iconName=n,this.iconColor="color-warning-text";break;case"error":this.iconName=c,this.iconColor="color-alarm";break;default:this.iconName=l}this.disabled&&(this.iconColor="workflow-step-icon-success--color--disabled")}componentWillLoad(){this.watchPropHandler(),this.selectedHandler(),this.customIconSlot=!!this.hostElement.querySelector('[slot="custom-icon"]')}onStepClick(){!this.disabled&&this.clickable&&this.selectedChanged.emit(this.hostElement)}onKeyDown(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this.onStepClick())}getIconAriaLabel(){switch(this.iconName){case l:return"Circle";case p:return"Circle dot";case h:return"Done";case c:return"Error";case d:return"Success";case b:case n:return"Warning";default:return"Step"}}render(){const e=this.customIconSlot?null:o(s,null,o("ix-icon",{color:"color-1",name:"warning"===this.status?b:h,class:"absolute",size:"24","aria-hidden":"true"}),o("ix-icon",{color:this.iconColor,name:this.iconName,class:"absolute",size:"24","aria-label":this.getIconAriaLabel()}));return o(a,{key:"0b31b31bfaaff7cdaf2a3b352dff5a4895d6a8f8",class:{"host-vertical":this.vertical}},o("div",{key:"60fc771cc2c3025281ae93b582f768ed00e70c1d",tabIndex:this.disabled||!this.clickable?-1:0,role:this.clickable?"button":void 0,"aria-disabled":this.disabled?"true":void 0,"aria-current":this.selected?"step":void 0,onClick:()=>this.onStepClick(),onKeyDown:e=>this.onKeyDown(e),class:{step:!0,selected:this.selected,vertical:this.vertical,disabled:this.disabled,clickable:this.clickable&&!this.disabled}},o("div",{key:"6187e161fa1da2b660acdd1ca16f223803b32f51",class:"wrapper"},o("div",{key:"918d1167813489e8caae3759bb104d91963d96f6",class:{line:!0,selected:this.selected,[this.status]:!0,[this.position]:!0}}),o("div",{key:"11df46fc6530a9959a675d0e66b450b2b3beff23",class:"iconWrapper"},e,o("slot",{key:"8e17d1c02e11aa0da20fe2301a4b06394833a89d",name:"custom-icon"}))),o("div",{key:"a195bbb624575f3c056492f0b3afadbd6f0b028d",class:"text"},o("slot",{key:"fb99dccd27941723266a0f4c7ecef584cba91ef2"}))))}static get watchers(){return{selected:[{selectedHandler:0}],disabled:[{watchPropHandler:0}],status:[{watchPropHandler:0}]}}static get style(){return":host(:not(.host-vertical)){width:12rem;height:4rem;min-width:2rem;min-height:4rem;max-width:12rem}:host(.host-vertical){width:100%;height:4rem;min-width:4rem;min-height:2rem;max-height:12rem}:host{display:inline-block;position:relative}: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 *{}:host *::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host *{}: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 *{}:host *::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host *{}:host *::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host *::-webkit-scrollbar-corner{display:none}:host .step{display:flex;flex-direction:column;align-items:center;background-color:var(--theme-workflow-step--background);border-radius:var(--theme-workflow--border-radius);padding:1.125rem 0 0.5rem 0}:host .step .wrapper{display:flex;width:100%;align-items:center;justify-content:center;position:relative}:host .step .wrapper .line{width:100%;height:0.125rem;background-color:var(--theme-workflow-step-icon-default--color)}:host .step .wrapper .line.first,:host .step .wrapper .line.last{width:50%;margin:0 0 0 auto}:host .step .wrapper .line.last{margin:0 auto 0 0}:host .step .wrapper .line.single{width:0}:host .step .wrapper .line.selected{background-color:var(--theme-workflow-step-icon-default--color--selected)}:host .step .wrapper .line.done{background-color:var(--theme-workflow-step-icon-done--color)}:host .step .wrapper .line.done.selected{background-color:var(--theme-workflow-step-icon-done--color--selected)}:host .step .wrapper .line.warning{background-color:var(--theme-color-warning)}:host .step .wrapper .line.success{background-color:var(--theme-color-success)}:host .step .wrapper .line.error{background-color:var(--theme-color-alarm)}:host .step .wrapper .iconWrapper{display:flex;align-items:center;justify-content:center;position:absolute}:host .step .wrapper .iconWrapper .absolute{position:absolute}:host .step .text{margin-top:1rem;width:100%;padding:0 0.5rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:center}:host .step.vertical{flex-direction:row;padding:0;height:100%}:host .step.vertical .wrapper{width:auto;padding-left:1.125rem;height:100%}:host .step.vertical .wrapper .line{width:0.125rem;height:100%}:host .step.vertical .wrapper .line.first,:host .step.vertical .wrapper .line.last{height:50%;margin:auto 0 0 0}:host .step.vertical .wrapper .line.last{margin:0 0 auto 0}:host .step.vertical .wrapper .line.single{width:0}:host .step.vertical .text{margin:0 1rem;padding:0;width:auto}:host .step.clickable:hover{background-color:var(--theme-workflow-step--background--hover)}:host .step.clickable:active{background-color:var(--theme-workflow-step--background--active)}:host .step:focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .step.selected{background-color:var(--theme-workflow-step--background--selected)}:host .step.disabled{background-color:var(--theme-workflow-step--background--disabled)}:host .step.disabled .line{background-color:var(--theme-workflow-step-icon-default--color--disabled) !important}:host .step.disabled .text{color:var(--theme-workflow-step--color--disabled)}"}},[769,"ix-workflow-step",{vertical:[4],disabled:[4],status:[1],clickable:[4],selected:[4],position:[1],iconName:[32],iconColor:[32]},void 0,{selected:[{selectedHandler:0}],disabled:[{watchPropHandler:0}],status:[{watchPropHandler:0}]}]),w=u,m=function(){"undefined"!=typeof customElements&&["ix-workflow-step"].forEach((e=>{"ix-workflow-step"===e&&(customElements.get(i(e))||customElements.define(i(e),u))}))};export{w as IxWorkflowStep,m as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,M as t,e as o,h as r,d as a,t as s}from"./p-eN5fQtqO.js";import{G as i}from"./p-DsVj4Cd-.js";import{a as c}from"./p-C21npbUc.js";import{D as l}from"./p-CApDAYIa.js";import{C as d}from"./p-Dpk_WgCl.js";import{B as n}from"./p-DRw2l8Az.js";import{d as b}from"./p-DdlGyKd2.js";import{d as h}from"./p-CEE0wwD3.js";import{d as m}from"./p-D7sEY2UQ.js";import{d as u}from"./p-CgPr717U.js";import{d as p}from"./p-YFmbQndr.js";const v=e(class extends(t(...l,d,n)){constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.tabClick=o(this,"tabClick",7),this.tabClose=o(this,"tabClose",7)}get hostElement(){return this}selected=!1;disabled=!1;icon;counter;closable=!1;label;ariaLabelCloseButton="Close tab";placement="bottom";rounded=!1;small=!1;layout="auto";iconOnly=!1;tabClick;tabClose;onTabSelect(e){e.defaultPrevented||(this.disabled?e.preventDefault():this.tabClick.emit({tabKey:this.tabKey,nativeEvent:e}).defaultPrevented&&e.stopPropagation())}render(){let e="normal";const t=this.label||this.hostElement.textContent?.trim();return e=this.rounded?"rounded":!this.icon||void 0!==t&&""!==t?"normal":"icon-only",r(a,{key:"a1981fe23e2fd8e0655e22bd33474635a51cbef9",id:this.getHostElementId(),role:"tab","aria-selected":c(this.selected),tabIndex:this.selected&&!this.disabled?0:-1,class:{selected:this.selected,disabled:this.disabled,"small-tab":this.small,"icon-only":"icon-only"===e,stretched:"stretched"===this.layout,bottom:"bottom"===this.placement,top:"top"===this.placement,circle:this.rounded},onClick:e=>this.onTabSelect(e),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||this.onTabSelect(e),this.closable&&"Delete"===e.key&&(e.preventDefault(),this.tabClose.emit({tabKey:this.tabKey,nativeEvent:e}))}},"rounded"===e&&r("div",{key:"254faf12d2bacb122eed12f87ba2788ce23b0cf0",class:{circle:!0}},this.icon&&r("ix-icon",{key:"b93c3250f3f250a62624dd5916f89dcb2827308c",name:this.icon,size:"24"}),r("slot",{key:"027121762879363b90880ed379303bf76d134f67"})),this.icon&&"rounded"!==e&&r("ix-icon",{key:"5e1c1665a517e08e61ae434ecbed6e8e46b5c1e5",name:this.icon,size:"16",class:"tab-icon"}),"normal"===e&&r("div",{key:"32d9e8603dd0fafa17b6bac61a5c7a8e4065aecd",class:{text:!!this.label,selected:this.selected,disabled:this.disabled}},this.label,r("slot",{key:"ecda11782eeae556e74f44613b2ac2b697ef6be0"})),"rounded"===e&&void 0!==this.counter&&r("div",{key:"01e49113bf0d7be5d08ea97f844e88cda5bb73ca",class:{counter:!0,selected:this.selected,disabled:this.disabled}},this.counter),this.counter&&"rounded"!==e&&r("ix-pill",{key:"ab9e497662d8574fd7ed8a57686cc7bd4c91c7e9",variant:"primary",outline:!0,class:"tab-counter"},this.counter),this.closable&&"rounded"!==e&&r("ix-icon-button",{key:"2a81e5282c8dfe6ccb02845264ca23db660b42b1","aria-label":this.ariaLabelCloseButton,class:"close-tab",size:"12",variant:"subtle-tertiary",icon:i,onClick:e=>{e.stopPropagation(),e.preventDefault(),this.tabClose.emit({tabKey:this.tabKey,nativeEvent:e})}}))}static get style(){return':host{position:relative;display:flex;align-items:center;justify-content:center;line-height:20px;font-size:14px;font-weight:bold;background-color:var(--theme-tab--background);color:var(--theme-tab--color);touch-action:none;height:2.5rem;min-height:2.5rem;max-height:2.5rem;padding:0.0625rem 1.5rem;gap:0.5rem}: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 *{}:host *::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host *{}: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 *{}:host *::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host *{}:host *::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host *::-webkit-scrollbar-corner{display:none}:host .text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .text span,:host .text span::before{pointer-events:none}:host .text{vertical-align:middle}:host slot{white-space:nowrap}:host .circle{display:flex;justify-content:center;align-items:center;height:3rem;width:3rem;background-color:var(--theme-animated-tab-circle--background);border-radius:50%;border:2px solid var(--theme-animated-tab-circle--border-color);color:var(--theme-animated-tab-icon--color);cursor:pointer}:host .circle:hover{background-color:var(--theme-animated-tab-circle--background--hover)}:host .circle:active{background-color:var(--theme-animated-tab-circle--background--active)}:host .counter{position:absolute;z-index:1;height:16px;width:auto;background-color:var(--theme-color-1);border:1px solid var(--theme-tab-pill--border-color);border-radius:100px;bottom:6px;display:flex;justify-content:center;align-items:center;padding-left:0.25rem;padding-right:0.25rem;font-size:12px;line-height:14px;color:var(--theme-pill-outline--color);cursor:pointer}:host .counter.selected{border-color:var(--theme-tab-pill--border-color--selected)}:host .counter.disabled{border-color:var(--theme-tab-pill--border-color--disabled);cursor:default}:host .hidden{display:none}:host(:not(.disabled)){cursor:pointer}:host(.circle){height:4.5rem;min-height:4.5rem;max-height:4.5rem}:host(.stretched){flex-basis:100%;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.stretched) div{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.selected:not(.disabled)){background-color:var(--theme-tab--background--selected);color:var(--theme-tab--color--selected)}:host(.selected:not(.disabled))::after{content:"";position:absolute;left:0;width:100%;height:2px;background-color:var(--theme-tab-indicator--background--selected)}:host(.selected:not(.disabled)) .circle{background-color:var(--theme-animated-tab-circle--background--selected);color:var(--theme-animated-tab-icon--color--selected);border-color:var(--theme-animated-tab-circle--border-color--selected)}:host(.selected:not(.disabled)) .circle:hover{background-color:var(--theme-animated-tab-circle--background--selected)}:host(.selected.bottom:not(.disabled)){background-color:var(--theme-tab--background--selected);color:var(--theme-tab--color--selected)}:host(.selected.bottom:not(.disabled))::after{bottom:0px}:host(.selected.top:not(.disabled))::after{top:0px}:host(:hover:not(.circle):not(.disabled)){background-color:var(--theme-tab--background--hover);color:var(--theme-tab-color-hover)}:host(:active:not(.circle):not(.disabled)){background-color:var(--theme-tab--background--active);color:var(--theme-tab-color--active)}:host(.disabled){cursor:default;color:var(--theme-tab--color--disabled);background-color:var(--theme-tab--background--disabled);pointer-events:none}:host(.disabled)::after{background-color:var(--theme-tab-indicator--background--disabled)}:host(.disabled) .circle{background-color:var(--theme-animated-tab-circle--background--disabled);border-color:var(--theme-animated-tab-circle--border-color--disabled);cursor:default}:host(.icon-only){display:flex;justify-content:center;align-items:center;padding:1.5rem 0.5rem}:host(.small-tab){height:2rem;min-height:2rem;max-height:2rem;padding:1rem}:host(.small-tab.icon){padding:1rem 0.25rem}:host(:not(.circle):focus-visible){outline-offset:-0.0625rem;outline:0.0625rem solid var(--theme-color-focus-bdr)}:host(.circle:focus-visible){outline:none}:host(.circle:focus-visible) .circle{outline-offset:0.125rem;outline:0.0625rem solid var(--theme-color-focus-bdr)}'}},[769,"ix-tab-item",{tabKey:[1,"tab-key"],selected:[4],disabled:[4],icon:[1],counter:[2],closable:[4],label:[1],ariaLabelCloseButton:[1,"aria-label-close-button"],placement:[1],rounded:[4],small:[4],layout:[1],iconOnly:[4,"icon-only"]}]);function f(){"undefined"!=typeof customElements&&["ix-tab-item","ix-icon-button","ix-pill","ix-spinner","ix-tooltip","ix-typography"].forEach((e=>{switch(e){case"ix-tab-item":customElements.get(s(e))||customElements.define(s(e),v);break;case"ix-icon-button":customElements.get(s(e))||b();break;case"ix-pill":customElements.get(s(e))||h();break;case"ix-spinner":customElements.get(s(e))||m();break;case"ix-tooltip":customElements.get(s(e))||u();break;case"ix-typography":customElements.get(s(e))||p()}}))}export{v as T,f as d}
1
+ import{p as e,M as t,e as o,h as r,d as a,t as i}from"./p-eN5fQtqO.js";import{G as s}from"./p-DsVj4Cd-.js";import{a as c}from"./p-DD206pTM.js";import{D as l}from"./p-CApDAYIa.js";import{C as d}from"./p-Dpk_WgCl.js";import{B as n}from"./p-DRw2l8Az.js";import{d as b}from"./p-CiP3eKpd.js";import{d as h}from"./p-BKCLcJ_A.js";import{d as m}from"./p-BKVBe7Co.js";import{d as u}from"./p-D_VBAyPm.js";import{d as p}from"./p-YFmbQndr.js";const v=e(class extends(t(...l,d,n)){constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.tabClick=o(this,"tabClick",7),this.tabClose=o(this,"tabClose",7)}get hostElement(){return this}selected=!1;disabled=!1;icon;counter;closable=!1;label;ariaLabelCloseButton="Close tab";placement="bottom";rounded=!1;small=!1;layout="auto";iconOnly=!1;tabClick;tabClose;onTabSelect(e){e.defaultPrevented||(this.disabled?e.preventDefault():this.tabClick.emit({tabKey:this.tabKey,nativeEvent:e}).defaultPrevented&&e.stopPropagation())}render(){let e="normal";const t=this.label||this.hostElement.textContent?.trim();return e=this.rounded?"rounded":!this.icon||void 0!==t&&""!==t?"normal":"icon-only",r(a,{key:"a1981fe23e2fd8e0655e22bd33474635a51cbef9",id:this.getHostElementId(),role:"tab","aria-selected":c(this.selected),tabIndex:this.selected&&!this.disabled?0:-1,class:{selected:this.selected,disabled:this.disabled,"small-tab":this.small,"icon-only":"icon-only"===e,stretched:"stretched"===this.layout,bottom:"bottom"===this.placement,top:"top"===this.placement,circle:this.rounded},onClick:e=>this.onTabSelect(e),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||this.onTabSelect(e),this.closable&&"Delete"===e.key&&(e.preventDefault(),this.tabClose.emit({tabKey:this.tabKey,nativeEvent:e}))}},"rounded"===e&&r("div",{key:"254faf12d2bacb122eed12f87ba2788ce23b0cf0",class:{circle:!0}},this.icon&&r("ix-icon",{key:"b93c3250f3f250a62624dd5916f89dcb2827308c",name:this.icon,size:"24"}),r("slot",{key:"027121762879363b90880ed379303bf76d134f67"})),this.icon&&"rounded"!==e&&r("ix-icon",{key:"5e1c1665a517e08e61ae434ecbed6e8e46b5c1e5",name:this.icon,size:"16",class:"tab-icon"}),"normal"===e&&r("div",{key:"32d9e8603dd0fafa17b6bac61a5c7a8e4065aecd",class:{text:!!this.label,selected:this.selected,disabled:this.disabled}},this.label,r("slot",{key:"ecda11782eeae556e74f44613b2ac2b697ef6be0"})),"rounded"===e&&void 0!==this.counter&&r("div",{key:"01e49113bf0d7be5d08ea97f844e88cda5bb73ca",class:{counter:!0,selected:this.selected,disabled:this.disabled}},this.counter),this.counter&&"rounded"!==e&&r("ix-pill",{key:"ab9e497662d8574fd7ed8a57686cc7bd4c91c7e9",variant:"primary",outline:!0,class:"tab-counter"},this.counter),this.closable&&"rounded"!==e&&r("ix-icon-button",{key:"2a81e5282c8dfe6ccb02845264ca23db660b42b1","aria-label":this.ariaLabelCloseButton,class:"close-tab",size:"12",variant:"subtle-tertiary",icon:s,onClick:e=>{e.stopPropagation(),e.preventDefault(),this.tabClose.emit({tabKey:this.tabKey,nativeEvent:e})}}))}static get style(){return':host{position:relative;display:flex;align-items:center;justify-content:center;line-height:20px;font-size:14px;font-weight:bold;background-color:var(--theme-tab--background);color:var(--theme-tab--color);touch-action:none;height:2.5rem;min-height:2.5rem;max-height:2.5rem;padding:0.0625rem 1.5rem;gap:0.5rem}: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 *{}:host *::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host *{}: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 *{}:host *::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host *{}:host *::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host *::-webkit-scrollbar-corner{display:none}:host .text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .text span,:host .text span::before{pointer-events:none}:host .text{vertical-align:middle}:host slot{white-space:nowrap}:host .circle{display:flex;justify-content:center;align-items:center;height:3rem;width:3rem;background-color:var(--theme-animated-tab-circle--background);border-radius:50%;border:2px solid var(--theme-animated-tab-circle--border-color);color:var(--theme-animated-tab-icon--color);cursor:pointer}:host .circle:hover{background-color:var(--theme-animated-tab-circle--background--hover)}:host .circle:active{background-color:var(--theme-animated-tab-circle--background--active)}:host .counter{position:absolute;z-index:1;height:16px;width:auto;background-color:var(--theme-color-1);border:1px solid var(--theme-tab-pill--border-color);border-radius:100px;bottom:6px;display:flex;justify-content:center;align-items:center;padding-left:0.25rem;padding-right:0.25rem;font-size:12px;line-height:14px;color:var(--theme-pill-outline--color);cursor:pointer}:host .counter.selected{border-color:var(--theme-tab-pill--border-color--selected)}:host .counter.disabled{border-color:var(--theme-tab-pill--border-color--disabled);cursor:default}:host .hidden{display:none}:host(:not(.disabled)){cursor:pointer}:host(.circle){height:4.5rem;min-height:4.5rem;max-height:4.5rem}:host(.stretched){flex-basis:100%;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.stretched) div{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.selected:not(.disabled)){background-color:var(--theme-tab--background--selected);color:var(--theme-tab--color--selected)}:host(.selected:not(.disabled))::after{content:"";position:absolute;left:0;width:100%;height:2px;background-color:var(--theme-tab-indicator--background--selected)}:host(.selected:not(.disabled)) .circle{background-color:var(--theme-animated-tab-circle--background--selected);color:var(--theme-animated-tab-icon--color--selected);border-color:var(--theme-animated-tab-circle--border-color--selected)}:host(.selected:not(.disabled)) .circle:hover{background-color:var(--theme-animated-tab-circle--background--selected)}:host(.selected.bottom:not(.disabled)){background-color:var(--theme-tab--background--selected);color:var(--theme-tab--color--selected)}:host(.selected.bottom:not(.disabled))::after{bottom:0px}:host(.selected.top:not(.disabled))::after{top:0px}:host(:hover:not(.circle):not(.disabled)){background-color:var(--theme-tab--background--hover);color:var(--theme-tab-color-hover)}:host(:active:not(.circle):not(.disabled)){background-color:var(--theme-tab--background--active);color:var(--theme-tab-color--active)}:host(.disabled){cursor:default;color:var(--theme-tab--color--disabled);background-color:var(--theme-tab--background--disabled);pointer-events:none}:host(.disabled)::after{background-color:var(--theme-tab-indicator--background--disabled)}:host(.disabled) .circle{background-color:var(--theme-animated-tab-circle--background--disabled);border-color:var(--theme-animated-tab-circle--border-color--disabled);cursor:default}:host(.icon-only){display:flex;justify-content:center;align-items:center;padding:1.5rem 0.5rem}:host(.small-tab){height:2rem;min-height:2rem;max-height:2rem;padding:1rem}:host(.small-tab.icon){padding:1rem 0.25rem}:host(:not(.circle):focus-visible){outline-offset:-0.0625rem;outline:0.0625rem solid var(--theme-color-focus-bdr)}:host(.circle:focus-visible){outline:none}:host(.circle:focus-visible) .circle{outline-offset:0.125rem;outline:0.0625rem solid var(--theme-color-focus-bdr)}'}},[769,"ix-tab-item",{tabKey:[1,"tab-key"],selected:[4],disabled:[4],icon:[1],counter:[2],closable:[4],label:[1],ariaLabelCloseButton:[1,"aria-label-close-button"],placement:[1],rounded:[4],small:[4],layout:[1],iconOnly:[4,"icon-only"]}]);function f(){"undefined"!=typeof customElements&&["ix-tab-item","ix-icon-button","ix-pill","ix-spinner","ix-tooltip","ix-typography"].forEach((e=>{switch(e){case"ix-tab-item":customElements.get(i(e))||customElements.define(i(e),v);break;case"ix-icon-button":customElements.get(i(e))||b();break;case"ix-pill":customElements.get(i(e))||h();break;case"ix-spinner":customElements.get(i(e))||m();break;case"ix-tooltip":customElements.get(i(e))||u();break;case"ix-typography":customElements.get(i(e))||p()}}))}export{v as T,f as d}
@@ -0,0 +1 @@
1
+ import{p as o,H as t,e,h as r,d as s,t as a}from"./p-eN5fQtqO.js";import{c as i}from"./p-Dw_A3HUC.js";import{G as c}from"./p-DsVj4Cd-.js";import{d as l}from"./p-CiP3eKpd.js";import{d as n}from"./p-BKVBe7Co.js";import{d as h}from"./p-YFmbQndr.js";const d=o(class extends t{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.closeClick=e(this,"closeClick",7)}get hostElement(){return this}hideClose=!1;icon;ariaLabelIcon;ariaLabelCloseIconButton="Close modal";onIconChange(o){this.parentDialog&&(o?this.parentDialog.classList.add("with-icon"):this.parentDialog.classList.remove("with-icon"))}iconColor;closeClick;parentDialog;componentDidLoad(){this.parentDialog=i(this.hostElement,"ix-modal"),this.onIconChange(this.icon)}onCloseClick(o){this.closeClick.emit(o).defaultPrevented||o.defaultPrevented||this.parentDialog?.dismissModal()}render(){return r(s,{key:"9f03264844ac63ce55494f2177d1ea38179e736a"},this.icon?r("ix-icon",{name:this.icon,color:this.iconColor,size:"32","aria-label":this.ariaLabelIcon}):null,r("div",{key:"62cd301023d42678376d6c064f280970185f29d3",class:"modal-title"},r("ix-typography",{key:"7d816462cfca738fca02746590548256bd0d529f",format:"h5"},r("slot",{key:"946ddbbb1dfc674038d618a68e7c4a204d69d6e1"}))),this.hideClose?null:r("ix-icon-button",{class:"modal-close",onClick:o=>this.onCloseClick(o),variant:"tertiary",icon:c,iconColor:"color-soft-text","aria-label":this.ariaLabelCloseIconButton}))}static get delegatesFocus(){return!0}static get watchers(){return{icon:[{onIconChange:0}]}}static get style(){return":host{display:flex;padding:0.5rem 0 0.5rem 0.5rem;align-items:center;gap:1rem}: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 *{}:host *::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host *{}: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 *{}:host *::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host *{}:host *::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host *::-webkit-scrollbar-corner{display:none}:host .modal-title{flex-grow:1;overflow-wrap:anywhere}:host .modal-close{align-self:flex-start}"}},[785,"ix-modal-header",{hideClose:[4,"hide-close"],icon:[1],ariaLabelIcon:[1,"aria-label-icon"],ariaLabelCloseIconButton:[1,"aria-label-close-icon-button"],iconColor:[1,"icon-color"]},void 0,{icon:[{onIconChange:0}]}]);function b(){"undefined"!=typeof customElements&&["ix-modal-header","ix-icon-button","ix-spinner","ix-typography"].forEach((o=>{switch(o){case"ix-modal-header":customElements.get(a(o))||customElements.define(a(o),d);break;case"ix-icon-button":customElements.get(a(o))||l();break;case"ix-spinner":customElements.get(a(o))||n();break;case"ix-typography":customElements.get(a(o))||h()}}))}export{d as M,b as d}
@@ -0,0 +1 @@
1
+ import{c as t,b as i}from"./p-DD206pTM.js";const e=new WeakMap,s=new WeakSet;let r,n=0;const h=t=>{const i=new Map;t.forEach((t=>{const r=t.target;if(s.has(r))return;const n=e.get(r),h=t.attributeName;if(!n||!h)return;let o=i.get(n.handler);o||(o=new Set,i.set(n.handler,o)),o.add(h)})),i.forEach(((t,i)=>{try{i(t)}catch(t){(t=>{"function"!=typeof reportError?console.error(t):reportError(t)})(t)}}))},o=o=>class extends o{constructor(){super()}inheritAriaAttributes={};#t=!1;#i=!1;#e=!1;#s=!1;#r;#n=new Set;#h=!1;#o=!1;#a(t){const i=this.#u(),e=this.getIgnoredAriaAttributes();let s=this.inheritAriaAttributes;t.forEach((t=>{if(e.includes(t))return;const r=i.getAttribute(t);r!==(s[t]??null)&&(s===this.inheritAriaAttributes&&(s={...s}),null===r?delete s[t]:s[t]=r)})),s!==this.inheritAriaAttributes&&(this.inheritAriaAttributes=s)}getIgnoredAriaAttributes(){return[]}readAriaAttributesFromHost(){const t=this.#u();return((t,i)=>{if(!e.get(t)||!r)return i();const n=r;h(n.takeRecords()),s.add(t);try{return i()}finally{const i=n.takeRecords().filter((i=>i.target!==t));s.delete(t),h(i)}})(t,(()=>{this.#o=!0;try{return i(t,this.getIgnoredAriaAttributes())}finally{this.#o=!1}}))}#u(){if(!this.hostElement)throw new Error("Host element is not defined. Make sure to apply the InheritAriaAttributesMixin to a Stencil component.");return this.hostElement}#l(){const i=this.#u(),e=new Map;return t.forEach((t=>{const s=i.getAttribute(t);null!==s&&e.set(t,s)})),e}#c(){if(this.#h||"undefined"==typeof MutationObserver)return;const i=this.#u(),e=i.removeAttribute.bind(i);i.removeAttribute=i=>{if(e(i),t.includes(i)){if(this.#o)return;this.#i||this.#n.add(i),this.#d(null,i)}},this.#h=!0}#f(){this.#i=((i,s)=>{const o=(()=>{if("undefined"!=typeof MutationObserver)return r??=new MutationObserver(h),r})();return!!o&&(e.has(i)||n++,e.set(i,{handler:s}),o.observe(i,{attributeFilter:t,attributes:!0}),!0)})(this.#u(),(t=>this.#a(t)))}connectedCallback(){if(super.connectedCallback&&super.connectedCallback(),this.#s=!1,this.#e&&!this.#t)return this.#e=!1,void this.#A();if(this.#t){const i=this.#u();if(this.#f(),this.#r){const e=this.readAriaAttributesFromHost();t.forEach((t=>{const s=this.#r?.get(t)??null,r=e[t]??i.getAttribute(t);(r!==s||this.#n.has(t))&&this.#d(r??null,t)}))}}this.#r=void 0,this.#n.clear()}componentWillLoad(){if(super.componentWillLoad){const t=super.componentWillLoad();if(t)return t.then((()=>this.#b()))}this.#b()}#b(){this.#s?this.#e=!0:this.#A()}#A(){this.inheritAriaAttributes=this.readAriaAttributesFromHost(),this.#c(),this.#t=!0,this.#f()}#d(t,i){if(this.getIgnoredAriaAttributes().includes(i))return;if(t===(this.inheritAriaAttributes[i]??null))return;const e={...this.inheritAriaAttributes};null===t?delete e[i]:e[i]=t,this.inheritAriaAttributes=e}disconnectedCallback(){var t;this.#s=!0,this.#n.clear(),this.#t?(r&&h(r.takeRecords()),this.#r=this.#l(),t=this.#u(),e.delete(t)&&(n--,0===n&&(r?.disconnect(),r=void 0)),this.#i=!1):this.#r=void 0,super.disconnectedCallback&&super.disconnectedCallback()}};export{o as I}