@siemens/ix 0.0.0-20240522073858 → 0.0.0-pr-1318-20240627080522

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 (1382) hide show
  1. package/components/a11y.js +3 -2
  2. package/components/a11y.js.map +1 -1
  3. package/components/application-header.js +12 -4
  4. package/components/application-header.js.map +1 -1
  5. package/components/avatar.js +6 -1
  6. package/components/avatar.js.map +1 -1
  7. package/components/breadcrumb-item.js +1 -1
  8. package/components/breadcrumb-item.js.map +1 -1
  9. package/components/button.js +1 -1
  10. package/components/button.js.map +1 -1
  11. package/components/card-accordion.js +1 -1
  12. package/components/card-accordion.js.map +1 -1
  13. package/components/card-content.js +2 -2
  14. package/components/card-content.js.map +1 -1
  15. package/components/card-title.js +1 -1
  16. package/components/card.js +1 -1
  17. package/components/card.js.map +1 -1
  18. package/components/col.js +1 -1
  19. package/components/col.js.map +1 -1
  20. package/components/date-picker.js +5 -5
  21. package/components/date-picker.js.map +1 -1
  22. package/components/date-time-card.js +3 -3
  23. package/components/date-time-card.js.map +1 -1
  24. package/components/divider.js +1 -1
  25. package/components/dropdown-item.js +4 -4
  26. package/components/dropdown-item.js.map +1 -1
  27. package/components/dropdown.js +17 -10
  28. package/components/dropdown.js.map +1 -1
  29. package/components/field-label.js +127 -0
  30. package/components/field-label.js.map +1 -0
  31. package/components/field-wrapper.js +97 -0
  32. package/components/field-wrapper.js.map +1 -0
  33. package/components/filter-chip.js +2 -2
  34. package/components/filter-chip.js.map +1 -1
  35. package/components/group-context-menu.js +1 -1
  36. package/components/group-item.js +3 -3
  37. package/components/group-item.js.map +1 -1
  38. package/components/helper-text-util.js +48 -0
  39. package/components/helper-text-util.js.map +1 -0
  40. package/components/icon-button.js +2 -2
  41. package/components/icon-button.js.map +1 -1
  42. package/components/index.js +19 -4
  43. package/components/index.js.map +1 -1
  44. package/components/ix-action-card.js +1 -1
  45. package/components/ix-action-card.js.map +1 -1
  46. package/components/ix-application-sidebar.js +2 -2
  47. package/components/ix-application-sidebar.js.map +1 -1
  48. package/components/ix-application-switch-modal.js +2 -2
  49. package/components/ix-application-switch-modal.js.map +1 -1
  50. package/components/ix-application.js +4 -4
  51. package/components/ix-application.js.map +1 -1
  52. package/components/ix-basic-navigation.js +3 -3
  53. package/components/ix-basic-navigation.js.map +1 -1
  54. package/components/ix-blind.js +1 -1
  55. package/components/ix-blind.js.map +1 -1
  56. package/components/ix-breadcrumb.js +3 -3
  57. package/components/ix-breadcrumb.js.map +1 -1
  58. package/components/ix-card-list.js +5 -5
  59. package/components/ix-card-list.js.map +1 -1
  60. package/components/ix-category-filter.js +8 -5
  61. package/components/ix-category-filter.js.map +1 -1
  62. package/components/ix-checkbox-group.d.ts +11 -0
  63. package/components/ix-checkbox-group.js +105 -0
  64. package/components/ix-checkbox-group.js.map +1 -0
  65. package/components/ix-checkbox.d.ts +11 -0
  66. package/components/ix-checkbox.js +141 -0
  67. package/components/ix-checkbox.js.map +1 -0
  68. package/components/ix-chip.js +5 -5
  69. package/components/ix-chip.js.map +1 -1
  70. package/components/ix-content.js +4 -4
  71. package/components/ix-content.js.map +1 -1
  72. package/components/ix-css-grid-item.js +1 -1
  73. package/components/ix-custom-field.d.ts +11 -0
  74. package/components/ix-custom-field.js +116 -0
  75. package/components/ix-custom-field.js.map +1 -0
  76. package/components/ix-date-dropdown.js +4 -4
  77. package/components/ix-date-dropdown.js.map +1 -1
  78. package/components/{ix-form-field.d.ts → ix-date-field.d.ts} +4 -4
  79. package/components/ix-date-field.js +351 -0
  80. package/components/ix-date-field.js.map +1 -0
  81. package/components/ix-datetime-picker.js +2 -2
  82. package/components/ix-datetime-picker.js.map +1 -1
  83. package/components/ix-drawer.js +3 -3
  84. package/components/ix-drawer.js.map +1 -1
  85. package/components/ix-dropdown-button.js +3 -3
  86. package/components/ix-dropdown-button.js.map +1 -1
  87. package/components/ix-dropdown-header.js +2 -2
  88. package/components/ix-dropdown-header.js.map +1 -1
  89. package/components/ix-dropdown-quick-actions.js +1 -1
  90. package/components/ix-empty-state.js +2 -2
  91. package/components/ix-empty-state.js.map +1 -1
  92. package/components/ix-event-list-item.js +5 -5
  93. package/components/ix-event-list-item.js.map +1 -1
  94. package/components/ix-event-list.js +3 -3
  95. package/components/ix-event-list.js.map +1 -1
  96. package/components/ix-expanding-search.js +5 -5
  97. package/components/ix-expanding-search.js.map +1 -1
  98. package/components/ix-field-label.d.ts +11 -0
  99. package/components/ix-field-label.js +8 -0
  100. package/components/ix-field-label.js.map +1 -0
  101. package/components/ix-field-wrapper.d.ts +11 -0
  102. package/components/ix-field-wrapper.js +8 -0
  103. package/components/ix-field-wrapper.js.map +1 -0
  104. package/components/ix-flip-tile-content.js +1 -1
  105. package/components/ix-flip-tile.js +5 -5
  106. package/components/ix-flip-tile.js.map +1 -1
  107. package/components/ix-group.js +8 -8
  108. package/components/ix-helper-text.d.ts +11 -0
  109. package/components/ix-helper-text.js +97 -0
  110. package/components/ix-helper-text.js.map +1 -0
  111. package/components/ix-icon-toggle-button.js +2 -2
  112. package/components/ix-icon-toggle-button.js.map +1 -1
  113. package/components/ix-input-group.js +2 -2
  114. package/components/ix-input-group.js.map +1 -1
  115. package/components/ix-key-value-list.js +1 -1
  116. package/components/ix-key-value.js +1 -1
  117. package/components/ix-key-value.js.map +1 -1
  118. package/components/ix-kpi.js +4 -4
  119. package/components/ix-kpi.js.map +1 -1
  120. package/components/ix-layout-form.d.ts +11 -0
  121. package/components/ix-layout-form.js +113 -0
  122. package/components/ix-layout-form.js.map +1 -0
  123. package/components/ix-link-button.js +3 -3
  124. package/components/ix-map-navigation.js +3 -3
  125. package/components/ix-map-navigation.js.map +1 -1
  126. package/components/ix-menu-about-item.js +1 -1
  127. package/components/ix-menu-about-news.js +5 -5
  128. package/components/ix-menu-about-news.js.map +1 -1
  129. package/components/ix-menu-about.js +1 -1
  130. package/components/ix-menu-avatar.js +3 -3
  131. package/components/ix-menu-avatar.js.map +1 -1
  132. package/components/ix-menu-category.js +9 -6
  133. package/components/ix-menu-category.js.map +1 -1
  134. package/components/ix-menu-settings-item.js +1 -1
  135. package/components/ix-menu.js +12 -12
  136. package/components/ix-menu.js.map +1 -1
  137. package/components/ix-message-bar.js +2 -2
  138. package/components/ix-message-bar.js.map +1 -1
  139. package/components/ix-modal-example.js +1 -1
  140. package/components/ix-modal-footer.js +2 -2
  141. package/components/ix-modal-footer.js.map +1 -1
  142. package/components/ix-modal-loading.js +1 -1
  143. package/components/ix-modal.js +3 -3
  144. package/components/ix-number-field.d.ts +11 -0
  145. package/components/ix-number-field.js +217 -0
  146. package/components/ix-number-field.js.map +1 -0
  147. package/components/ix-pagination.js +35 -17
  148. package/components/ix-pagination.js.map +1 -1
  149. package/components/ix-pane-layout.js +2 -2
  150. package/components/ix-pane-layout.js.map +1 -1
  151. package/components/ix-pane.js +7 -7
  152. package/components/ix-pane.js.map +1 -1
  153. package/components/ix-pill.js +5 -5
  154. package/components/ix-pill.js.map +1 -1
  155. package/components/ix-playground-internal.js +1 -1
  156. package/components/ix-playground-internal.js.map +1 -1
  157. package/components/ix-push-card.js +1 -1
  158. package/components/ix-radio-group.d.ts +11 -0
  159. package/components/ix-radio-group.js +169 -0
  160. package/components/ix-radio-group.js.map +1 -0
  161. package/components/ix-radio.d.ts +11 -0
  162. package/components/ix-radio.js +115 -0
  163. package/components/ix-radio.js.map +1 -0
  164. package/components/ix-slider.js +7 -7
  165. package/components/ix-slider.js.map +1 -1
  166. package/components/ix-split-button-item.js +1 -1
  167. package/components/ix-split-button.js +4 -2
  168. package/components/ix-split-button.js.map +1 -1
  169. package/components/ix-text-field.d.ts +11 -0
  170. package/components/ix-text-field.js +223 -0
  171. package/components/ix-text-field.js.map +1 -0
  172. package/components/ix-textarea-field.d.ts +11 -0
  173. package/components/ix-textarea-field.js +177 -0
  174. package/components/ix-textarea-field.js.map +1 -0
  175. package/components/ix-tile.js +5 -5
  176. package/components/ix-tile.js.map +1 -1
  177. package/components/ix-toast-container.js +3 -3
  178. package/components/ix-toast-container.js.map +1 -1
  179. package/components/ix-toggle-button.js +3 -3
  180. package/components/ix-toggle-button.js.map +1 -1
  181. package/components/ix-toggle.js +43 -5
  182. package/components/ix-toggle.js.map +1 -1
  183. package/components/ix-tree.js +1 -1
  184. package/components/ix-upload.js +4 -4
  185. package/components/ix-upload.js.map +1 -1
  186. package/components/ix-validation-tooltip.js +2 -2
  187. package/components/ix-workflow-step.js +5 -5
  188. package/components/ix-workflow-step.js.map +1 -1
  189. package/components/ix-workflow-steps.js +2 -2
  190. package/components/ix-workflow-steps.js.map +1 -1
  191. package/components/layout-grid.js +2 -2
  192. package/components/make-ref.js +5 -0
  193. package/components/make-ref.js.map +1 -1
  194. package/components/map-navigation-overlay.js +3 -3
  195. package/components/map-navigation-overlay.js.map +1 -1
  196. package/components/menu-avatar-item.js +2 -2
  197. package/components/menu-avatar-item.js.map +1 -1
  198. package/components/menu-expand-icon.js +2 -2
  199. package/components/menu-expand-icon.js.map +1 -1
  200. package/components/menu-item.js +4 -4
  201. package/components/menu-item.js.map +1 -1
  202. package/components/menu-tabs-fc.js +2 -2
  203. package/components/menu-tabs-fc.js.map +1 -1
  204. package/components/modal-content.js +2 -2
  205. package/components/modal-content.js.map +1 -1
  206. package/components/modal-header.js +2 -2
  207. package/components/modal-header.js.map +1 -1
  208. package/components/row.js +1 -1
  209. package/components/select-item.js +1 -1
  210. package/components/select.js +172 -58
  211. package/components/select.js.map +1 -1
  212. package/components/spinner.js +2 -2
  213. package/components/spinner.js.map +1 -1
  214. package/components/tab-item.js +4 -4
  215. package/components/tab-item.js.map +1 -1
  216. package/components/tabs.js +3 -3
  217. package/components/tabs.js.map +1 -1
  218. package/components/text-field.util.js +167 -0
  219. package/components/text-field.util.js.map +1 -0
  220. package/components/time-picker.js +4 -4
  221. package/components/time-picker.js.map +1 -1
  222. package/components/toast.js +3 -3
  223. package/components/toast.js.map +1 -1
  224. package/components/tooltip.js +7 -7
  225. package/components/tooltip.js.map +1 -1
  226. package/components/tree-item.js +5 -5
  227. package/components/tree-item.js.map +1 -1
  228. package/components/typography.js +1 -1
  229. package/components/typography.js.map +1 -1
  230. package/components/validation.js +112 -0
  231. package/components/validation.js.map +1 -0
  232. package/dist/cjs/{a11y-d3ce56d1.js → a11y-32046b56.js} +4 -3
  233. package/dist/cjs/a11y-32046b56.js.map +1 -0
  234. package/dist/cjs/app-globals-5cfdf2a0.js.map +1 -1
  235. package/dist/cjs/{base-button-7c45a6c4.js → base-button-16d4fadf.js} +2 -2
  236. package/dist/cjs/{base-button-7c45a6c4.js.map → base-button-16d4fadf.js.map} +1 -1
  237. package/dist/cjs/{base-icon-button-ac2fcf4b.js → base-icon-button-aba2ddbf.js} +3 -3
  238. package/dist/cjs/{base-icon-button-ac2fcf4b.js.map → base-icon-button-aba2ddbf.js.map} +1 -1
  239. package/dist/cjs/dropdown-controller-403dc7fa.js +147 -0
  240. package/dist/cjs/dropdown-controller-403dc7fa.js.map +1 -0
  241. package/dist/cjs/helper-text-util-9f617ef2.js +40 -0
  242. package/dist/cjs/helper-text-util-9f617ef2.js.map +1 -0
  243. package/dist/cjs/index-0f6297c8.js +2044 -0
  244. package/dist/cjs/index-0f6297c8.js.map +1 -0
  245. package/dist/cjs/index-762a29a3.js +24 -0
  246. package/dist/cjs/index-762a29a3.js.map +1 -0
  247. package/dist/cjs/index.cjs.js +16 -0
  248. package/dist/cjs/index.cjs.js.map +1 -1
  249. package/dist/cjs/ix-action-card.cjs.entry.js +2 -2
  250. package/dist/cjs/ix-action-card.cjs.entry.js.map +1 -1
  251. package/dist/cjs/ix-application-header.cjs.entry.js +13 -5
  252. package/dist/cjs/ix-application-header.cjs.entry.js.map +1 -1
  253. package/dist/cjs/ix-application-sidebar.cjs.entry.js +3 -3
  254. package/dist/cjs/ix-application-sidebar.cjs.entry.js.map +1 -1
  255. package/dist/cjs/ix-application-switch-modal.cjs.entry.js +3 -3
  256. package/dist/cjs/ix-application-switch-modal.cjs.entry.js.map +1 -1
  257. package/dist/cjs/ix-application.cjs.entry.js +5 -5
  258. package/dist/cjs/ix-application.cjs.entry.js.map +1 -1
  259. package/dist/cjs/ix-avatar_2.cjs.entry.js +11 -6
  260. package/dist/cjs/ix-avatar_2.cjs.entry.js.map +1 -1
  261. package/dist/cjs/ix-basic-navigation.cjs.entry.js +4 -4
  262. package/dist/cjs/ix-basic-navigation.cjs.entry.js.map +1 -1
  263. package/dist/cjs/ix-blind.cjs.entry.js +3 -3
  264. package/dist/cjs/ix-blind.cjs.entry.js.map +1 -1
  265. package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +4 -4
  266. package/dist/cjs/ix-breadcrumb-item.cjs.entry.js.map +1 -1
  267. package/dist/cjs/ix-breadcrumb.cjs.entry.js +5 -5
  268. package/dist/cjs/ix-breadcrumb.cjs.entry.js.map +1 -1
  269. package/dist/cjs/ix-button.cjs.entry.js +3 -3
  270. package/dist/cjs/ix-button.cjs.entry.js.map +1 -1
  271. package/dist/cjs/ix-card-accordion_2.cjs.entry.js +3 -3
  272. package/dist/cjs/ix-card-accordion_2.cjs.entry.js.map +1 -1
  273. package/dist/cjs/ix-card-list.cjs.entry.js +6 -6
  274. package/dist/cjs/ix-card-list.cjs.entry.js.map +1 -1
  275. package/dist/cjs/ix-card_2.cjs.entry.js +4 -4
  276. package/dist/cjs/ix-card_2.cjs.entry.js.map +1 -1
  277. package/dist/cjs/ix-category-filter.cjs.entry.js +10 -7
  278. package/dist/cjs/ix-category-filter.cjs.entry.js.map +1 -1
  279. package/dist/cjs/ix-checkbox-group.cjs.entry.js +56 -0
  280. package/dist/cjs/ix-checkbox-group.cjs.entry.js.map +1 -0
  281. package/dist/cjs/ix-checkbox.cjs.entry.js +114 -0
  282. package/dist/cjs/ix-checkbox.cjs.entry.js.map +1 -0
  283. package/dist/cjs/ix-chip.cjs.entry.js +6 -6
  284. package/dist/cjs/ix-chip.cjs.entry.js.map +1 -1
  285. package/dist/cjs/ix-col_4.cjs.entry.js +11 -11
  286. package/dist/cjs/ix-col_4.cjs.entry.js.map +1 -1
  287. package/dist/cjs/ix-content-header.cjs.entry.js +1 -1
  288. package/dist/cjs/ix-content.cjs.entry.js +5 -5
  289. package/dist/cjs/ix-content.cjs.entry.js.map +1 -1
  290. package/dist/cjs/ix-css-grid-item.cjs.entry.js +2 -2
  291. package/dist/cjs/ix-css-grid.cjs.entry.js +1 -1
  292. package/dist/cjs/ix-custom-field.cjs.entry.js +65 -0
  293. package/dist/cjs/ix-custom-field.cjs.entry.js.map +1 -0
  294. package/dist/cjs/ix-date-dropdown.cjs.entry.js +5 -5
  295. package/dist/cjs/ix-date-dropdown.cjs.entry.js.map +1 -1
  296. package/dist/cjs/ix-date-field.cjs.entry.js +255 -0
  297. package/dist/cjs/ix-date-field.cjs.entry.js.map +1 -0
  298. package/dist/cjs/ix-date-time-card.cjs.entry.js +3 -3
  299. package/dist/cjs/ix-date-time-card.cjs.entry.js.map +1 -1
  300. package/dist/cjs/ix-datetime-picker.cjs.entry.js +3 -3
  301. package/dist/cjs/ix-datetime-picker.cjs.entry.js.map +1 -1
  302. package/dist/cjs/ix-divider.cjs.entry.js +2 -2
  303. package/dist/cjs/ix-drawer.cjs.entry.js +4 -4
  304. package/dist/cjs/ix-drawer.cjs.entry.js.map +1 -1
  305. package/dist/cjs/ix-dropdown-button.cjs.entry.js +4 -4
  306. package/dist/cjs/ix-dropdown-button.cjs.entry.js.map +1 -1
  307. package/dist/cjs/ix-dropdown-header.cjs.entry.js +3 -3
  308. package/dist/cjs/ix-dropdown-header.cjs.entry.js.map +1 -1
  309. package/dist/cjs/ix-dropdown-item.cjs.entry.js +5 -5
  310. package/dist/cjs/ix-dropdown-item.cjs.entry.js.map +1 -1
  311. package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +2 -2
  312. package/dist/cjs/ix-dropdown.cjs.entry.js +28 -160
  313. package/dist/cjs/ix-dropdown.cjs.entry.js.map +1 -1
  314. package/dist/cjs/ix-empty-state.cjs.entry.js +3 -3
  315. package/dist/cjs/ix-empty-state.cjs.entry.js.map +1 -1
  316. package/dist/cjs/ix-event-list-item.cjs.entry.js +7 -7
  317. package/dist/cjs/ix-event-list-item.cjs.entry.js.map +1 -1
  318. package/dist/cjs/ix-event-list.cjs.entry.js +4 -4
  319. package/dist/cjs/ix-event-list.cjs.entry.js.map +1 -1
  320. package/dist/cjs/ix-expanding-search.cjs.entry.js +6 -6
  321. package/dist/cjs/ix-expanding-search.cjs.entry.js.map +1 -1
  322. package/dist/cjs/{ix-tooltip.cjs.entry.js → ix-field-label_3.cjs.entry.js} +151 -10
  323. package/dist/cjs/ix-field-label_3.cjs.entry.js.map +1 -0
  324. package/dist/cjs/ix-filter-chip_2.cjs.entry.js +4 -4
  325. package/dist/cjs/ix-filter-chip_2.cjs.entry.js.map +1 -1
  326. package/dist/cjs/ix-flip-tile-content.cjs.entry.js +2 -2
  327. package/dist/cjs/ix-flip-tile.cjs.entry.js +6 -6
  328. package/dist/cjs/ix-flip-tile.cjs.entry.js.map +1 -1
  329. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +5 -5
  330. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js.map +1 -1
  331. package/dist/cjs/ix-group.cjs.entry.js +9 -9
  332. package/dist/cjs/ix-helper-text.cjs.entry.js +70 -0
  333. package/dist/cjs/ix-helper-text.cjs.entry.js.map +1 -0
  334. package/dist/cjs/ix-icon-button_2.cjs.entry.js +8 -8
  335. package/dist/cjs/ix-icon-button_2.cjs.entry.js.map +1 -1
  336. package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +6 -6
  337. package/dist/cjs/ix-icon-toggle-button.cjs.entry.js.map +1 -1
  338. package/dist/cjs/ix-input-group.cjs.entry.js +3 -3
  339. package/dist/cjs/ix-input-group.cjs.entry.js.map +1 -1
  340. package/dist/cjs/ix-key-value-list.cjs.entry.js +2 -2
  341. package/dist/cjs/ix-key-value.cjs.entry.js +2 -2
  342. package/dist/cjs/ix-key-value.cjs.entry.js.map +1 -1
  343. package/dist/cjs/ix-kpi.cjs.entry.js +5 -5
  344. package/dist/cjs/ix-kpi.cjs.entry.js.map +1 -1
  345. package/dist/cjs/ix-layout-form.cjs.entry.js +94 -0
  346. package/dist/cjs/ix-layout-form.cjs.entry.js.map +1 -0
  347. package/dist/cjs/ix-link-button.cjs.entry.js +4 -4
  348. package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js +4 -4
  349. package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js.map +1 -1
  350. package/dist/cjs/ix-map-navigation.cjs.entry.js +4 -4
  351. package/dist/cjs/ix-map-navigation.cjs.entry.js.map +1 -1
  352. package/dist/cjs/ix-menu-about-item.cjs.entry.js +2 -2
  353. package/dist/cjs/ix-menu-about-news.cjs.entry.js +6 -6
  354. package/dist/cjs/ix-menu-about-news.cjs.entry.js.map +1 -1
  355. package/dist/cjs/ix-menu-about.cjs.entry.js +3 -3
  356. package/dist/cjs/ix-menu-avatar.cjs.entry.js +4 -4
  357. package/dist/cjs/ix-menu-avatar.cjs.entry.js.map +1 -1
  358. package/dist/cjs/ix-menu-category.cjs.entry.js +10 -7
  359. package/dist/cjs/ix-menu-category.cjs.entry.js.map +1 -1
  360. package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +5 -5
  361. package/dist/cjs/ix-menu-expand-icon.cjs.entry.js.map +1 -1
  362. package/dist/cjs/ix-menu-item.cjs.entry.js +6 -6
  363. package/dist/cjs/ix-menu-item.cjs.entry.js.map +1 -1
  364. package/dist/cjs/ix-menu-settings-item.cjs.entry.js +2 -2
  365. package/dist/cjs/ix-menu-settings.cjs.entry.js +2 -2
  366. package/dist/cjs/ix-menu.cjs.entry.js +13 -13
  367. package/dist/cjs/ix-menu.cjs.entry.js.map +1 -1
  368. package/dist/cjs/ix-message-bar.cjs.entry.js +3 -3
  369. package/dist/cjs/ix-message-bar.cjs.entry.js.map +1 -1
  370. package/dist/cjs/ix-modal-content_2.cjs.entry.js +5 -5
  371. package/dist/cjs/ix-modal-content_2.cjs.entry.js.map +1 -1
  372. package/dist/cjs/ix-modal-example.cjs.entry.js +2 -2
  373. package/dist/cjs/ix-modal-footer.cjs.entry.js +3 -3
  374. package/dist/cjs/ix-modal-footer.cjs.entry.js.map +1 -1
  375. package/dist/cjs/ix-modal-loading.cjs.entry.js +2 -2
  376. package/dist/cjs/ix-modal.cjs.entry.js +6 -6
  377. package/dist/cjs/ix-number-field.cjs.entry.js +148 -0
  378. package/dist/cjs/ix-number-field.cjs.entry.js.map +1 -0
  379. package/dist/cjs/ix-pagination.cjs.entry.js +6 -6
  380. package/dist/cjs/ix-pagination.cjs.entry.js.map +1 -1
  381. package/dist/cjs/ix-pane-layout.cjs.entry.js +3 -3
  382. package/dist/cjs/ix-pane-layout.cjs.entry.js.map +1 -1
  383. package/dist/cjs/ix-pane.cjs.entry.js +8 -8
  384. package/dist/cjs/ix-pane.cjs.entry.js.map +1 -1
  385. package/dist/cjs/ix-pill.cjs.entry.js +6 -6
  386. package/dist/cjs/ix-pill.cjs.entry.js.map +1 -1
  387. package/dist/cjs/ix-playground-internal.cjs.entry.js +2 -2
  388. package/dist/cjs/ix-playground-internal.cjs.entry.js.map +1 -1
  389. package/dist/cjs/ix-push-card.cjs.entry.js +2 -2
  390. package/dist/cjs/ix-radio-group.cjs.entry.js +116 -0
  391. package/dist/cjs/ix-radio-group.cjs.entry.js.map +1 -0
  392. package/dist/cjs/ix-radio.cjs.entry.js +96 -0
  393. package/dist/cjs/ix-radio.cjs.entry.js.map +1 -0
  394. package/dist/cjs/ix-select.cjs.entry.js +126 -46
  395. package/dist/cjs/ix-select.cjs.entry.js.map +1 -1
  396. package/dist/cjs/ix-slider.cjs.entry.js +10 -10
  397. package/dist/cjs/ix-slider.cjs.entry.js.map +1 -1
  398. package/dist/cjs/ix-split-button-item.cjs.entry.js +3 -3
  399. package/dist/cjs/ix-split-button.cjs.entry.js +4 -3
  400. package/dist/cjs/ix-split-button.cjs.entry.js.map +1 -1
  401. package/dist/cjs/ix-tab-item_2.cjs.entry.js +8 -8
  402. package/dist/cjs/ix-tab-item_2.cjs.entry.js.map +1 -1
  403. package/dist/cjs/ix-text-field.cjs.entry.js +151 -0
  404. package/dist/cjs/ix-text-field.cjs.entry.js.map +1 -0
  405. package/dist/cjs/ix-textarea-field.cjs.entry.js +118 -0
  406. package/dist/cjs/ix-textarea-field.cjs.entry.js.map +1 -0
  407. package/dist/cjs/ix-tile.cjs.entry.js +6 -6
  408. package/dist/cjs/ix-tile.cjs.entry.js.map +1 -1
  409. package/dist/cjs/ix-time-picker.cjs.entry.js +5 -5
  410. package/dist/cjs/ix-time-picker.cjs.entry.js.map +1 -1
  411. package/dist/cjs/ix-toast-container.cjs.entry.js +4 -4
  412. package/dist/cjs/ix-toast-container.cjs.entry.js.map +1 -1
  413. package/dist/cjs/ix-toast.cjs.entry.js +4 -4
  414. package/dist/cjs/ix-toast.cjs.entry.js.map +1 -1
  415. package/dist/cjs/ix-toggle-button.cjs.entry.js +6 -6
  416. package/dist/cjs/ix-toggle-button.cjs.entry.js.map +1 -1
  417. package/dist/cjs/ix-toggle.cjs.entry.js +42 -5
  418. package/dist/cjs/ix-toggle.cjs.entry.js.map +1 -1
  419. package/dist/cjs/ix-tree-item.cjs.entry.js +6 -6
  420. package/dist/cjs/ix-tree-item.cjs.entry.js.map +1 -1
  421. package/dist/cjs/ix-tree.cjs.entry.js +2 -2
  422. package/dist/cjs/ix-typography.cjs.entry.js +2 -2
  423. package/dist/cjs/ix-typography.cjs.entry.js.map +1 -1
  424. package/dist/cjs/ix-upload.cjs.entry.js +5 -5
  425. package/dist/cjs/ix-upload.cjs.entry.js.map +1 -1
  426. package/dist/cjs/ix-validation-tooltip.cjs.entry.js +3 -3
  427. package/dist/cjs/ix-workflow-step.cjs.entry.js +6 -6
  428. package/dist/cjs/ix-workflow-step.cjs.entry.js.map +1 -1
  429. package/dist/cjs/ix-workflow-steps.cjs.entry.js +3 -3
  430. package/dist/cjs/ix-workflow-steps.cjs.entry.js.map +1 -1
  431. package/dist/cjs/{listener-d27acb41.js → listener-0881dc51.js} +2 -2
  432. package/dist/cjs/{listener-d27acb41.js.map → listener-0881dc51.js.map} +1 -1
  433. package/dist/cjs/loader.cjs.js +2 -2
  434. package/dist/cjs/{make-ref-c25629b7.js → make-ref-01530e5a.js} +6 -1
  435. package/dist/cjs/make-ref-01530e5a.js.map +1 -0
  436. package/dist/cjs/{menu-tabs-fc-194c3ba9.js → menu-tabs-fc-f6b706e3.js} +4 -4
  437. package/dist/cjs/{menu-tabs-fc-194c3ba9.js.map → menu-tabs-fc-f6b706e3.js.map} +1 -1
  438. package/dist/cjs/siemens-ix.cjs.js +10 -10
  439. package/dist/cjs/siemens-ix.cjs.js.map +1 -1
  440. package/dist/cjs/text-field.util-d7c5c1cd.js +179 -0
  441. package/dist/cjs/text-field.util-d7c5c1cd.js.map +1 -0
  442. package/dist/cjs/validation-c5a41d68.js +117 -0
  443. package/dist/cjs/validation-c5a41d68.js.map +1 -0
  444. package/dist/collection/collection-manifest.json +15 -3
  445. package/dist/collection/components/action-card/action-card.css +6 -0
  446. package/dist/collection/components/action-card/action-card.js +1 -1
  447. package/dist/collection/components/application/application.css +6 -0
  448. package/dist/collection/components/application/application.js +3 -3
  449. package/dist/collection/components/application-header/application-header.css +6 -0
  450. package/dist/collection/components/application-header/application-header.js +11 -3
  451. package/dist/collection/components/application-header/application-header.js.map +1 -1
  452. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.css +6 -0
  453. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js +1 -1
  454. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js.map +1 -1
  455. package/dist/collection/components/application-sidebar/application-sidebar.css +7 -2
  456. package/dist/collection/components/application-sidebar/application-sidebar.js +1 -1
  457. package/dist/collection/components/avatar/avatar.js +6 -1
  458. package/dist/collection/components/avatar/avatar.js.map +1 -1
  459. package/dist/collection/components/basic-navigation/basic-navigation.css +6 -0
  460. package/dist/collection/components/basic-navigation/basic-navigation.js +2 -2
  461. package/dist/collection/components/blind/blind.css +6 -0
  462. package/dist/collection/components/blind/blind.js +1 -1
  463. package/dist/collection/components/breadcrumb/breadcrumb.css +6 -0
  464. package/dist/collection/components/breadcrumb/breadcrumb.js +2 -2
  465. package/dist/collection/components/breadcrumb-item/breadcrumb-item.css +18 -0
  466. package/dist/collection/components/button/button.css +6 -0
  467. package/dist/collection/components/button/button.js +1 -1
  468. package/dist/collection/components/card/card.css +6 -0
  469. package/dist/collection/components/card/card.js +1 -1
  470. package/dist/collection/components/card-accordion/card-accordion.css +6 -0
  471. package/dist/collection/components/card-accordion/card-accordion.js +1 -1
  472. package/dist/collection/components/card-content/card-content.css +7 -2
  473. package/dist/collection/components/card-content/card-content.js +1 -1
  474. package/dist/collection/components/card-list/card-list.css +6 -0
  475. package/dist/collection/components/card-list/card-list.js +4 -4
  476. package/dist/collection/components/card-title/card-title.js +1 -1
  477. package/dist/collection/components/category-filter/category-filter.css +132 -16
  478. package/dist/collection/components/category-filter/category-filter.js +7 -4
  479. package/dist/collection/components/category-filter/category-filter.js.map +1 -1
  480. package/dist/collection/components/checkbox/checkbox.css +437 -0
  481. package/dist/collection/components/checkbox/checkbox.js +323 -0
  482. package/dist/collection/components/checkbox/checkbox.js.map +1 -0
  483. package/dist/collection/components/checkbox/tests/checkbox.ct.js +52 -0
  484. package/dist/collection/components/checkbox/tests/checkbox.ct.js.map +1 -0
  485. package/dist/collection/components/checkbox-group/checkbox-group.css +35 -0
  486. package/dist/collection/components/checkbox-group/checkbox-group.js +173 -0
  487. package/dist/collection/components/checkbox-group/checkbox-group.js.map +1 -0
  488. package/dist/collection/components/chip/chip.css +38 -8
  489. package/dist/collection/components/chip/chip.js +4 -4
  490. package/dist/collection/components/chip/test/chip.ct.js +32 -0
  491. package/dist/collection/components/chip/test/chip.ct.js.map +1 -0
  492. package/dist/collection/components/col/col.css +7 -2
  493. package/dist/collection/components/col/col.js +4 -4
  494. package/dist/collection/components/content/content.css +6 -0
  495. package/dist/collection/components/content/content.js +3 -3
  496. package/dist/collection/components/content-header/content-header.js +1 -1
  497. package/dist/collection/components/css-grid/css-grid-item.js +1 -1
  498. package/dist/collection/components/css-grid/css-grid.js +1 -1
  499. package/dist/collection/components/custom-field/custom-field.css +11 -0
  500. package/dist/collection/components/custom-field/custom-field.js +216 -0
  501. package/dist/collection/components/custom-field/custom-field.js.map +1 -0
  502. package/dist/collection/components/custom-field/tests/custom-field.ct.js +68 -0
  503. package/dist/collection/components/custom-field/tests/custom-field.ct.js.map +1 -0
  504. package/dist/collection/components/date-dropdown/date-dropdown.css +6 -0
  505. package/dist/collection/components/date-dropdown/date-dropdown.js +6 -6
  506. package/dist/collection/components/date-dropdown/date-dropdown.js.map +1 -1
  507. package/dist/collection/components/date-field/date-field.css +938 -0
  508. package/dist/collection/components/date-field/date-field.js +696 -0
  509. package/dist/collection/components/date-field/date-field.js.map +1 -0
  510. package/dist/collection/components/date-field/tests/date-field.ct.js +114 -0
  511. package/dist/collection/components/date-field/tests/date-field.ct.js.map +1 -0
  512. package/dist/collection/components/date-picker/date-picker.css +6 -0
  513. package/dist/collection/components/date-picker/date-picker.js +7 -7
  514. package/dist/collection/components/date-time-card/date-time-card.css +6 -0
  515. package/dist/collection/components/date-time-card/date-time-card.js +7 -8
  516. package/dist/collection/components/date-time-card/date-time-card.js.map +1 -1
  517. package/dist/collection/components/datetime-picker/datetime-picker.css +6 -0
  518. package/dist/collection/components/datetime-picker/datetime-picker.js +3 -3
  519. package/dist/collection/components/divider/divider.js +1 -1
  520. package/dist/collection/components/drawer/drawer.css +6 -0
  521. package/dist/collection/components/drawer/drawer.js +2 -2
  522. package/dist/collection/components/dropdown/dropdown-controller.js +4 -0
  523. package/dist/collection/components/dropdown/dropdown-controller.js.map +1 -1
  524. package/dist/collection/components/dropdown/dropdown.css +6 -0
  525. package/dist/collection/components/dropdown/dropdown.js +11 -8
  526. package/dist/collection/components/dropdown/dropdown.js.map +1 -1
  527. package/dist/collection/components/dropdown/test/dropdown.ct.js +18 -0
  528. package/dist/collection/components/dropdown/test/dropdown.ct.js.map +1 -1
  529. package/dist/collection/components/dropdown-button/dropdown-button.css +6 -0
  530. package/dist/collection/components/dropdown-button/dropdown-button.ct.js +23 -0
  531. package/dist/collection/components/dropdown-button/dropdown-button.ct.js.map +1 -0
  532. package/dist/collection/components/dropdown-button/dropdown-button.js +3 -3
  533. package/dist/collection/components/dropdown-header/dropdown-header.css +6 -0
  534. package/dist/collection/components/dropdown-header/dropdown-header.js +1 -1
  535. package/dist/collection/components/dropdown-item/dropdown-item.css +6 -0
  536. package/dist/collection/components/dropdown-item/dropdown-item.js +3 -3
  537. package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js +1 -1
  538. package/dist/collection/components/empty-state/empty-state.css +6 -0
  539. package/dist/collection/components/empty-state/empty-state.js +2 -2
  540. package/dist/collection/components/empty-state/empty-state.js.map +1 -1
  541. package/dist/collection/components/event-list/event-list.css +6 -0
  542. package/dist/collection/components/event-list/event-list.js +2 -2
  543. package/dist/collection/components/event-list-item/event-list-item.css +6 -0
  544. package/dist/collection/components/event-list-item/event-list-item.js +4 -4
  545. package/dist/collection/components/event-list-item/event-list-item.js.map +1 -1
  546. package/dist/collection/components/expanding-search/expanding-search.css +6 -0
  547. package/dist/collection/components/expanding-search/expanding-search.js +4 -4
  548. package/dist/collection/components/field-label/field-label.css +14 -0
  549. package/dist/collection/components/field-label/field-label.js +173 -0
  550. package/dist/collection/components/field-label/field-label.js.map +1 -0
  551. package/dist/collection/components/field-label/tests/field-label.ct.js +70 -0
  552. package/dist/collection/components/field-label/tests/field-label.ct.js.map +1 -0
  553. package/dist/collection/components/field-wrapper/field-wrapper.css +71 -0
  554. package/dist/collection/components/field-wrapper/field-wrapper.js +309 -0
  555. package/dist/collection/components/field-wrapper/field-wrapper.js.map +1 -0
  556. package/dist/collection/components/field-wrapper/helper-text-util.js +26 -0
  557. package/dist/collection/components/field-wrapper/helper-text-util.js.map +1 -0
  558. package/dist/collection/components/field-wrapper/tests/field-wrapper.ct.js +63 -0
  559. package/dist/collection/components/field-wrapper/tests/field-wrapper.ct.js.map +1 -0
  560. package/dist/collection/components/filter-chip/filter-chip.css +6 -0
  561. package/dist/collection/components/filter-chip/filter-chip.js +1 -1
  562. package/dist/collection/components/flip-tile/flip-tile.css +6 -0
  563. package/dist/collection/components/flip-tile/flip-tile.js +4 -4
  564. package/dist/collection/components/flip-tile-content/flip-tile-content.js +1 -1
  565. package/dist/collection/components/grid/layout-grid.js +2 -2
  566. package/dist/collection/components/group/group-context-menu.js +1 -1
  567. package/dist/collection/components/group/group.js +8 -8
  568. package/dist/collection/components/group-item/group-item.css +6 -0
  569. package/dist/collection/components/group-item/group-item.js +2 -2
  570. package/dist/collection/components/helper-text/helper-text.css +34 -0
  571. package/dist/collection/components/helper-text/helper-text.js +179 -0
  572. package/dist/collection/components/helper-text/helper-text.js.map +1 -0
  573. package/dist/collection/components/icon-button/icon-button.css +12 -0
  574. package/dist/collection/components/icon-button/icon-button.js +2 -2
  575. package/dist/collection/components/icon-toggle-button/icon-toggle-button.css +12 -0
  576. package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +1 -1
  577. package/dist/collection/components/input-group/input-group.css +6 -0
  578. package/dist/collection/components/input-group/input-group.js +1 -1
  579. package/dist/collection/components/key-value/key-value.js +2 -2
  580. package/dist/collection/components/key-value/key-value.js.map +1 -1
  581. package/dist/collection/components/key-value-list/key-value-list.js +1 -1
  582. package/dist/collection/components/kpi/kpi.css +6 -0
  583. package/dist/collection/components/kpi/kpi.js +3 -3
  584. package/dist/collection/components/layout-form/layout-form.css +15 -0
  585. package/dist/collection/components/layout-form/layout-form.js +126 -0
  586. package/dist/collection/components/layout-form/layout-form.js.map +1 -0
  587. package/dist/collection/components/link-button/link-button.js +3 -3
  588. package/dist/collection/components/map-navigation/map-navigation.css +6 -0
  589. package/dist/collection/components/map-navigation/map-navigation.js +2 -2
  590. package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.css +6 -0
  591. package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +2 -2
  592. package/dist/collection/components/menu/menu-expand-icon.css +6 -0
  593. package/dist/collection/components/menu/menu-expand-icon.js +1 -1
  594. package/dist/collection/components/menu/menu.css +7 -1
  595. package/dist/collection/components/menu/menu.js +11 -11
  596. package/dist/collection/components/menu/menu.js.map +1 -1
  597. package/dist/collection/components/menu-about/menu-about.js +1 -1
  598. package/dist/collection/components/menu-about-item/menu-about-item.js +1 -1
  599. package/dist/collection/components/menu-about-news/menu-about-news.css +6 -0
  600. package/dist/collection/components/menu-about-news/menu-about-news.js +4 -4
  601. package/dist/collection/components/menu-avatar/menu-avatar.css +6 -0
  602. package/dist/collection/components/menu-avatar/menu-avatar.js +2 -2
  603. package/dist/collection/components/menu-avatar-item/menu-avatar-item.css +6 -0
  604. package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +1 -1
  605. package/dist/collection/components/menu-category/menu-category.css +6 -0
  606. package/dist/collection/components/menu-category/menu-category.js +8 -5
  607. package/dist/collection/components/menu-category/menu-category.js.map +1 -1
  608. package/dist/collection/components/menu-item/menu-item.css +0 -3
  609. package/dist/collection/components/menu-item/menu-item.js +3 -3
  610. package/dist/collection/components/menu-item/menu-item.js.map +1 -1
  611. package/dist/collection/components/menu-settings/menu-settings.css +6 -0
  612. package/dist/collection/components/menu-settings/menu-settings.js +1 -1
  613. package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
  614. package/dist/collection/components/message-bar/message-bar.css +6 -0
  615. package/dist/collection/components/message-bar/message-bar.js +1 -1
  616. package/dist/collection/components/modal/modal.js +4 -4
  617. package/dist/collection/components/modal-content/modal-content.css +6 -0
  618. package/dist/collection/components/modal-content/modal-content.js +1 -1
  619. package/dist/collection/components/modal-footer/modal-footer.css +6 -0
  620. package/dist/collection/components/modal-footer/modal-footer.js +1 -1
  621. package/dist/collection/components/modal-header/modal-header.css +6 -0
  622. package/dist/collection/components/modal-header/modal-header.js +1 -1
  623. package/dist/collection/components/modal-loading/modal-loading.js +1 -1
  624. package/dist/collection/components/pagination/pagination.css +20 -0
  625. package/dist/collection/components/pagination/pagination.js +2 -2
  626. package/dist/collection/components/pane/pane.css +9 -0
  627. package/dist/collection/components/pane/pane.js +12 -12
  628. package/dist/collection/components/pane-layout/pane-layout.css +6 -0
  629. package/dist/collection/components/pane-layout/pane-layout.js +1 -1
  630. package/dist/collection/components/pill/pill.css +38 -7
  631. package/dist/collection/components/pill/pill.js +4 -4
  632. package/dist/collection/components/playground/example-modal.js +1 -1
  633. package/dist/collection/components/playground/playground.js +3 -3
  634. package/dist/collection/components/playground/playground.js.map +1 -1
  635. package/dist/collection/components/push-card/push-card.js +2 -2
  636. package/dist/collection/components/radio/radio.css +428 -0
  637. package/dist/collection/components/radio/radio.js +276 -0
  638. package/dist/collection/components/radio/radio.js.map +1 -0
  639. package/dist/collection/components/radio/test/radio.ct.js +36 -0
  640. package/dist/collection/components/radio/test/radio.ct.js.map +1 -0
  641. package/dist/collection/components/radio-group/radio-group.css +35 -0
  642. package/dist/collection/components/radio-group/radio-group.js +296 -0
  643. package/dist/collection/components/radio-group/radio-group.js.map +1 -0
  644. package/dist/collection/components/radio-group/test/radio-group.ct.js +99 -0
  645. package/dist/collection/components/radio-group/test/radio-group.ct.js.map +1 -0
  646. package/dist/collection/components/row/row.js +1 -1
  647. package/dist/collection/components/select/select.css +58 -0
  648. package/dist/collection/components/select/select.js +392 -46
  649. package/dist/collection/components/select/select.js.map +1 -1
  650. package/dist/collection/components/select/test/select.ct.js +130 -44
  651. package/dist/collection/components/select/test/select.ct.js.map +1 -1
  652. package/dist/collection/components/select-item/select-item.js +1 -1
  653. package/dist/collection/components/slider/slider.css +6 -0
  654. package/dist/collection/components/slider/slider.js +7 -7
  655. package/dist/collection/components/spinner/spinner.css +30 -0
  656. package/dist/collection/components/spinner/spinner.js +1 -1
  657. package/dist/collection/components/split-button/split-button.css +6 -0
  658. package/dist/collection/components/split-button/split-button.js +30 -2
  659. package/dist/collection/components/split-button/split-button.js.map +1 -1
  660. package/dist/collection/components/split-button-item/split-button-item.js +1 -1
  661. package/dist/collection/components/tab-item/tab-item.css +13 -13
  662. package/dist/collection/components/tab-item/tab-item.js +4 -4
  663. package/dist/collection/components/tabs/tabs.css +6 -0
  664. package/dist/collection/components/tabs/tabs.js +2 -2
  665. package/dist/collection/components/text-field/input.fc.js +38 -0
  666. package/dist/collection/components/text-field/input.fc.js.map +1 -0
  667. package/dist/collection/components/{form-field/form-field.css → text-field/number-field.css} +236 -7
  668. package/dist/collection/components/text-field/number-field.js +586 -0
  669. package/dist/collection/components/text-field/number-field.js.map +1 -0
  670. package/dist/collection/components/text-field/tests/form-ready.ct.js +63 -0
  671. package/dist/collection/components/text-field/tests/form-ready.ct.js.map +1 -0
  672. package/dist/collection/components/text-field/text-field.animation.js +36 -0
  673. package/dist/collection/components/text-field/text-field.animation.js.map +1 -0
  674. package/dist/collection/components/text-field/text-field.css +899 -0
  675. package/dist/collection/components/text-field/text-field.js +594 -0
  676. package/dist/collection/components/text-field/text-field.js.map +1 -0
  677. package/dist/collection/components/text-field/text-field.util.js +93 -0
  678. package/dist/collection/components/text-field/text-field.util.js.map +1 -0
  679. package/dist/collection/components/text-field/textarea-field.css +550 -0
  680. package/dist/collection/components/text-field/textarea-field.js +595 -0
  681. package/dist/collection/components/text-field/textarea-field.js.map +1 -0
  682. package/dist/collection/components/tile/tile.css +6 -0
  683. package/dist/collection/components/tile/tile.js +4 -4
  684. package/dist/collection/components/time-picker/time-picker.css +86 -5
  685. package/dist/collection/components/time-picker/time-picker.js +4 -4
  686. package/dist/collection/components/toast/styles/toast-container.css +6 -0
  687. package/dist/collection/components/toast/toast-container.js +3 -3
  688. package/dist/collection/components/toast/toast.css +6 -0
  689. package/dist/collection/components/toast/toast.js +2 -2
  690. package/dist/collection/components/toggle/test/toggle.ct.js +24 -1
  691. package/dist/collection/components/toggle/test/toggle.ct.js.map +1 -1
  692. package/dist/collection/components/toggle/toggle.css +138 -1
  693. package/dist/collection/components/toggle/toggle.js +157 -2
  694. package/dist/collection/components/toggle/toggle.js.map +1 -1
  695. package/dist/collection/components/toggle-button/toggle-button.css +6 -0
  696. package/dist/collection/components/toggle-button/toggle-button.js +2 -2
  697. package/dist/collection/components/tooltip/tooltip.css +2 -2
  698. package/dist/collection/components/tooltip/tooltip.js +6 -6
  699. package/dist/collection/components/tooltip/tooltip.js.map +1 -1
  700. package/dist/collection/components/tree/tree.js +1 -1
  701. package/dist/collection/components/tree-item/tree-item.css +6 -0
  702. package/dist/collection/components/tree-item/tree-item.js +4 -4
  703. package/dist/collection/components/typography/typography.css +7 -2
  704. package/dist/collection/components/typography/typography.js +5 -5
  705. package/dist/collection/components/upload/upload.css +6 -0
  706. package/dist/collection/components/upload/upload.js +3 -3
  707. package/dist/collection/components/utils/a11y.js +3 -2
  708. package/dist/collection/components/utils/a11y.js.map +1 -1
  709. package/dist/collection/components/utils/attributes.js +25 -0
  710. package/dist/collection/components/utils/attributes.js.map +1 -0
  711. package/dist/collection/components/utils/field/index.js +9 -0
  712. package/dist/collection/components/utils/field/index.js.map +1 -0
  713. package/dist/collection/components/utils/field/validation.js +108 -0
  714. package/dist/collection/components/utils/field/validation.js.map +1 -0
  715. package/dist/collection/components/utils/make-ref.js +5 -0
  716. package/dist/collection/components/utils/make-ref.js.map +1 -1
  717. package/dist/collection/components/utils/testing/index.js +9 -0
  718. package/dist/collection/components/utils/testing/index.js.map +1 -0
  719. package/dist/collection/components/utils/uuid.js +16 -0
  720. package/dist/collection/components/utils/uuid.js.map +1 -0
  721. package/dist/collection/components/validation-tooltip/validation-tooltip.js +2 -2
  722. package/dist/collection/components/workflow-step/workflow-step.css +6 -0
  723. package/dist/collection/components/workflow-step/workflow-step.js +4 -4
  724. package/dist/collection/components/workflow-step/workflow-step.js.map +1 -1
  725. package/dist/collection/components/workflow-steps/workflow-steps.css +6 -0
  726. package/dist/collection/components/workflow-steps/workflow-steps.js +1 -1
  727. package/dist/collection/index.js +6 -0
  728. package/dist/collection/index.js.map +1 -1
  729. package/dist/collection/tests/form-fields/form-fields.e2e.js +57 -0
  730. package/dist/collection/tests/form-fields/form-fields.e2e.js.map +1 -0
  731. package/dist/collection/tests/panes/panes.e2e.js +5 -0
  732. package/dist/collection/tests/panes/panes.e2e.js.map +1 -1
  733. package/dist/collection/tests/utils/test/index.js +11 -0
  734. package/dist/collection/tests/utils/test/index.js.map +1 -1
  735. package/dist/esm/{a11y-d5444a76.js → a11y-13dedaef.js} +4 -3
  736. package/dist/esm/a11y-13dedaef.js.map +1 -0
  737. package/dist/esm/app-globals-0cd07cd9.js.map +1 -1
  738. package/dist/esm/{base-button-3ac703a7.js → base-button-ea06697f.js} +2 -2
  739. package/dist/esm/{base-button-3ac703a7.js.map → base-button-ea06697f.js.map} +1 -1
  740. package/dist/esm/{base-icon-button-59eb1fe5.js → base-icon-button-c64fdb50.js} +3 -3
  741. package/dist/esm/{base-icon-button-59eb1fe5.js.map → base-icon-button-c64fdb50.js.map} +1 -1
  742. package/dist/esm/dropdown-controller-d6d8b14a.js +143 -0
  743. package/dist/esm/dropdown-controller-d6d8b14a.js.map +1 -0
  744. package/dist/esm/helper-text-util-3dd33b44.js +38 -0
  745. package/dist/esm/helper-text-util-3dd33b44.js.map +1 -0
  746. package/dist/esm/index-9103b14c.js +2012 -0
  747. package/dist/esm/index-9103b14c.js.map +1 -0
  748. package/dist/esm/index-f51bf247.js +14 -0
  749. package/dist/esm/index-f51bf247.js.map +1 -0
  750. package/dist/esm/index.js +16 -1
  751. package/dist/esm/index.js.map +1 -1
  752. package/dist/esm/ix-action-card.entry.js +2 -2
  753. package/dist/esm/ix-action-card.entry.js.map +1 -1
  754. package/dist/esm/ix-application-header.entry.js +13 -5
  755. package/dist/esm/ix-application-header.entry.js.map +1 -1
  756. package/dist/esm/ix-application-sidebar.entry.js +3 -3
  757. package/dist/esm/ix-application-sidebar.entry.js.map +1 -1
  758. package/dist/esm/ix-application-switch-modal.entry.js +3 -3
  759. package/dist/esm/ix-application-switch-modal.entry.js.map +1 -1
  760. package/dist/esm/ix-application.entry.js +5 -5
  761. package/dist/esm/ix-application.entry.js.map +1 -1
  762. package/dist/esm/ix-avatar_2.entry.js +11 -6
  763. package/dist/esm/ix-avatar_2.entry.js.map +1 -1
  764. package/dist/esm/ix-basic-navigation.entry.js +4 -4
  765. package/dist/esm/ix-basic-navigation.entry.js.map +1 -1
  766. package/dist/esm/ix-blind.entry.js +3 -3
  767. package/dist/esm/ix-blind.entry.js.map +1 -1
  768. package/dist/esm/ix-breadcrumb-item.entry.js +4 -4
  769. package/dist/esm/ix-breadcrumb-item.entry.js.map +1 -1
  770. package/dist/esm/ix-breadcrumb.entry.js +5 -5
  771. package/dist/esm/ix-breadcrumb.entry.js.map +1 -1
  772. package/dist/esm/ix-button.entry.js +3 -3
  773. package/dist/esm/ix-button.entry.js.map +1 -1
  774. package/dist/esm/ix-card-accordion_2.entry.js +3 -3
  775. package/dist/esm/ix-card-accordion_2.entry.js.map +1 -1
  776. package/dist/esm/ix-card-list.entry.js +6 -6
  777. package/dist/esm/ix-card-list.entry.js.map +1 -1
  778. package/dist/esm/ix-card_2.entry.js +4 -4
  779. package/dist/esm/ix-card_2.entry.js.map +1 -1
  780. package/dist/esm/ix-category-filter.entry.js +10 -7
  781. package/dist/esm/ix-category-filter.entry.js.map +1 -1
  782. package/dist/esm/ix-checkbox-group.entry.js +52 -0
  783. package/dist/esm/ix-checkbox-group.entry.js.map +1 -0
  784. package/dist/esm/ix-checkbox.entry.js +110 -0
  785. package/dist/esm/ix-checkbox.entry.js.map +1 -0
  786. package/dist/esm/ix-chip.entry.js +6 -6
  787. package/dist/esm/ix-chip.entry.js.map +1 -1
  788. package/dist/esm/ix-col_4.entry.js +11 -11
  789. package/dist/esm/ix-col_4.entry.js.map +1 -1
  790. package/dist/esm/ix-content-header.entry.js +1 -1
  791. package/dist/esm/ix-content.entry.js +5 -5
  792. package/dist/esm/ix-content.entry.js.map +1 -1
  793. package/dist/esm/ix-css-grid-item.entry.js +2 -2
  794. package/dist/esm/ix-css-grid.entry.js +1 -1
  795. package/dist/esm/ix-custom-field.entry.js +61 -0
  796. package/dist/esm/ix-custom-field.entry.js.map +1 -0
  797. package/dist/esm/ix-date-dropdown.entry.js +5 -5
  798. package/dist/esm/ix-date-dropdown.entry.js.map +1 -1
  799. package/dist/esm/ix-date-field.entry.js +251 -0
  800. package/dist/esm/ix-date-field.entry.js.map +1 -0
  801. package/dist/esm/ix-date-time-card.entry.js +3 -3
  802. package/dist/esm/ix-date-time-card.entry.js.map +1 -1
  803. package/dist/esm/ix-datetime-picker.entry.js +3 -3
  804. package/dist/esm/ix-datetime-picker.entry.js.map +1 -1
  805. package/dist/esm/ix-divider.entry.js +2 -2
  806. package/dist/esm/ix-drawer.entry.js +4 -4
  807. package/dist/esm/ix-drawer.entry.js.map +1 -1
  808. package/dist/esm/ix-dropdown-button.entry.js +4 -4
  809. package/dist/esm/ix-dropdown-button.entry.js.map +1 -1
  810. package/dist/esm/ix-dropdown-header.entry.js +3 -3
  811. package/dist/esm/ix-dropdown-header.entry.js.map +1 -1
  812. package/dist/esm/ix-dropdown-item.entry.js +5 -5
  813. package/dist/esm/ix-dropdown-item.entry.js.map +1 -1
  814. package/dist/esm/ix-dropdown-quick-actions.entry.js +2 -2
  815. package/dist/esm/ix-dropdown.entry.js +14 -146
  816. package/dist/esm/ix-dropdown.entry.js.map +1 -1
  817. package/dist/esm/ix-empty-state.entry.js +3 -3
  818. package/dist/esm/ix-empty-state.entry.js.map +1 -1
  819. package/dist/esm/ix-event-list-item.entry.js +7 -7
  820. package/dist/esm/ix-event-list-item.entry.js.map +1 -1
  821. package/dist/esm/ix-event-list.entry.js +4 -4
  822. package/dist/esm/ix-event-list.entry.js.map +1 -1
  823. package/dist/esm/ix-expanding-search.entry.js +6 -6
  824. package/dist/esm/ix-expanding-search.entry.js.map +1 -1
  825. package/dist/esm/{ix-tooltip.entry.js → ix-field-label_3.entry.js} +150 -11
  826. package/dist/esm/ix-field-label_3.entry.js.map +1 -0
  827. package/dist/esm/ix-filter-chip_2.entry.js +4 -4
  828. package/dist/esm/ix-filter-chip_2.entry.js.map +1 -1
  829. package/dist/esm/ix-flip-tile-content.entry.js +2 -2
  830. package/dist/esm/ix-flip-tile.entry.js +6 -6
  831. package/dist/esm/ix-flip-tile.entry.js.map +1 -1
  832. package/dist/esm/ix-group-context-menu_2.entry.js +5 -5
  833. package/dist/esm/ix-group-context-menu_2.entry.js.map +1 -1
  834. package/dist/esm/ix-group.entry.js +9 -9
  835. package/dist/esm/ix-helper-text.entry.js +66 -0
  836. package/dist/esm/ix-helper-text.entry.js.map +1 -0
  837. package/dist/esm/ix-icon-button_2.entry.js +8 -8
  838. package/dist/esm/ix-icon-button_2.entry.js.map +1 -1
  839. package/dist/esm/ix-icon-toggle-button.entry.js +6 -6
  840. package/dist/esm/ix-icon-toggle-button.entry.js.map +1 -1
  841. package/dist/esm/ix-input-group.entry.js +3 -3
  842. package/dist/esm/ix-input-group.entry.js.map +1 -1
  843. package/dist/esm/ix-key-value-list.entry.js +2 -2
  844. package/dist/esm/ix-key-value.entry.js +2 -2
  845. package/dist/esm/ix-key-value.entry.js.map +1 -1
  846. package/dist/esm/ix-kpi.entry.js +5 -5
  847. package/dist/esm/ix-kpi.entry.js.map +1 -1
  848. package/dist/esm/ix-layout-form.entry.js +90 -0
  849. package/dist/esm/ix-layout-form.entry.js.map +1 -0
  850. package/dist/esm/ix-link-button.entry.js +4 -4
  851. package/dist/esm/ix-map-navigation-overlay.entry.js +4 -4
  852. package/dist/esm/ix-map-navigation-overlay.entry.js.map +1 -1
  853. package/dist/esm/ix-map-navigation.entry.js +4 -4
  854. package/dist/esm/ix-map-navigation.entry.js.map +1 -1
  855. package/dist/esm/ix-menu-about-item.entry.js +2 -2
  856. package/dist/esm/ix-menu-about-news.entry.js +6 -6
  857. package/dist/esm/ix-menu-about-news.entry.js.map +1 -1
  858. package/dist/esm/ix-menu-about.entry.js +3 -3
  859. package/dist/esm/ix-menu-avatar.entry.js +4 -4
  860. package/dist/esm/ix-menu-avatar.entry.js.map +1 -1
  861. package/dist/esm/ix-menu-category.entry.js +10 -7
  862. package/dist/esm/ix-menu-category.entry.js.map +1 -1
  863. package/dist/esm/ix-menu-expand-icon.entry.js +5 -5
  864. package/dist/esm/ix-menu-expand-icon.entry.js.map +1 -1
  865. package/dist/esm/ix-menu-item.entry.js +6 -6
  866. package/dist/esm/ix-menu-item.entry.js.map +1 -1
  867. package/dist/esm/ix-menu-settings-item.entry.js +2 -2
  868. package/dist/esm/ix-menu-settings.entry.js +2 -2
  869. package/dist/esm/ix-menu.entry.js +13 -13
  870. package/dist/esm/ix-menu.entry.js.map +1 -1
  871. package/dist/esm/ix-message-bar.entry.js +3 -3
  872. package/dist/esm/ix-message-bar.entry.js.map +1 -1
  873. package/dist/esm/ix-modal-content_2.entry.js +5 -5
  874. package/dist/esm/ix-modal-content_2.entry.js.map +1 -1
  875. package/dist/esm/ix-modal-example.entry.js +2 -2
  876. package/dist/esm/ix-modal-footer.entry.js +3 -3
  877. package/dist/esm/ix-modal-footer.entry.js.map +1 -1
  878. package/dist/esm/ix-modal-loading.entry.js +2 -2
  879. package/dist/esm/ix-modal.entry.js +6 -6
  880. package/dist/esm/ix-number-field.entry.js +144 -0
  881. package/dist/esm/ix-number-field.entry.js.map +1 -0
  882. package/dist/esm/ix-pagination.entry.js +6 -6
  883. package/dist/esm/ix-pagination.entry.js.map +1 -1
  884. package/dist/esm/ix-pane-layout.entry.js +3 -3
  885. package/dist/esm/ix-pane-layout.entry.js.map +1 -1
  886. package/dist/esm/ix-pane.entry.js +8 -8
  887. package/dist/esm/ix-pane.entry.js.map +1 -1
  888. package/dist/esm/ix-pill.entry.js +6 -6
  889. package/dist/esm/ix-pill.entry.js.map +1 -1
  890. package/dist/esm/ix-playground-internal.entry.js +2 -2
  891. package/dist/esm/ix-playground-internal.entry.js.map +1 -1
  892. package/dist/esm/ix-push-card.entry.js +2 -2
  893. package/dist/esm/ix-radio-group.entry.js +112 -0
  894. package/dist/esm/ix-radio-group.entry.js.map +1 -0
  895. package/dist/esm/ix-radio.entry.js +92 -0
  896. package/dist/esm/ix-radio.entry.js.map +1 -0
  897. package/dist/esm/ix-select.entry.js +126 -46
  898. package/dist/esm/ix-select.entry.js.map +1 -1
  899. package/dist/esm/ix-slider.entry.js +10 -10
  900. package/dist/esm/ix-slider.entry.js.map +1 -1
  901. package/dist/esm/ix-split-button-item.entry.js +3 -3
  902. package/dist/esm/ix-split-button.entry.js +4 -3
  903. package/dist/esm/ix-split-button.entry.js.map +1 -1
  904. package/dist/esm/ix-tab-item_2.entry.js +8 -8
  905. package/dist/esm/ix-tab-item_2.entry.js.map +1 -1
  906. package/dist/esm/ix-text-field.entry.js +147 -0
  907. package/dist/esm/ix-text-field.entry.js.map +1 -0
  908. package/dist/esm/ix-textarea-field.entry.js +114 -0
  909. package/dist/esm/ix-textarea-field.entry.js.map +1 -0
  910. package/dist/esm/ix-tile.entry.js +6 -6
  911. package/dist/esm/ix-tile.entry.js.map +1 -1
  912. package/dist/esm/ix-time-picker.entry.js +5 -5
  913. package/dist/esm/ix-time-picker.entry.js.map +1 -1
  914. package/dist/esm/ix-toast-container.entry.js +4 -4
  915. package/dist/esm/ix-toast-container.entry.js.map +1 -1
  916. package/dist/esm/ix-toast.entry.js +4 -4
  917. package/dist/esm/ix-toast.entry.js.map +1 -1
  918. package/dist/esm/ix-toggle-button.entry.js +6 -6
  919. package/dist/esm/ix-toggle-button.entry.js.map +1 -1
  920. package/dist/esm/ix-toggle.entry.js +42 -5
  921. package/dist/esm/ix-toggle.entry.js.map +1 -1
  922. package/dist/esm/ix-tree-item.entry.js +6 -6
  923. package/dist/esm/ix-tree-item.entry.js.map +1 -1
  924. package/dist/esm/ix-tree.entry.js +2 -2
  925. package/dist/esm/ix-typography.entry.js +2 -2
  926. package/dist/esm/ix-typography.entry.js.map +1 -1
  927. package/dist/esm/ix-upload.entry.js +5 -5
  928. package/dist/esm/ix-upload.entry.js.map +1 -1
  929. package/dist/esm/ix-validation-tooltip.entry.js +3 -3
  930. package/dist/esm/ix-workflow-step.entry.js +6 -6
  931. package/dist/esm/ix-workflow-step.entry.js.map +1 -1
  932. package/dist/esm/ix-workflow-steps.entry.js +3 -3
  933. package/dist/esm/ix-workflow-steps.entry.js.map +1 -1
  934. package/dist/esm/{listener-b87c1f3d.js → listener-98571ba8.js} +2 -2
  935. package/dist/esm/{listener-b87c1f3d.js.map → listener-98571ba8.js.map} +1 -1
  936. package/dist/esm/loader.js +3 -3
  937. package/dist/esm/{make-ref-c80046bf.js → make-ref-6b3b4e16.js} +6 -1
  938. package/dist/esm/make-ref-6b3b4e16.js.map +1 -0
  939. package/dist/esm/{menu-tabs-fc-c72e41b6.js → menu-tabs-fc-7ec1fb5d.js} +4 -4
  940. package/dist/esm/{menu-tabs-fc-c72e41b6.js.map → menu-tabs-fc-7ec1fb5d.js.map} +1 -1
  941. package/dist/esm/siemens-ix.js +11 -11
  942. package/dist/esm/siemens-ix.js.map +1 -1
  943. package/dist/esm/text-field.util-6a84bffd.js +167 -0
  944. package/dist/esm/text-field.util-6a84bffd.js.map +1 -0
  945. package/dist/esm/validation-9db7dfa3.js +112 -0
  946. package/dist/esm/validation-9db7dfa3.js.map +1 -0
  947. package/dist/siemens-ix/index.esm.js +1 -1
  948. package/dist/siemens-ix/index.esm.js.map +1 -1
  949. package/dist/siemens-ix/p-02ed5606.entry.js +2 -0
  950. package/dist/siemens-ix/{p-4290098e.entry.js.map → p-02ed5606.entry.js.map} +1 -1
  951. package/dist/siemens-ix/p-0681f4d8.entry.js +2 -0
  952. package/dist/siemens-ix/{p-cbbe9dee.entry.js.map → p-0681f4d8.entry.js.map} +1 -1
  953. package/dist/siemens-ix/p-06965e5f.entry.js +2 -0
  954. package/dist/siemens-ix/{p-aa58d9d7.entry.js.map → p-06965e5f.entry.js.map} +1 -1
  955. package/dist/siemens-ix/p-08215ad3.entry.js +2 -0
  956. package/dist/siemens-ix/p-08215ad3.entry.js.map +1 -0
  957. package/dist/siemens-ix/p-0bed10af.entry.js +2 -0
  958. package/dist/siemens-ix/p-0d907964.entry.js +2 -0
  959. package/dist/siemens-ix/p-0dfc3b80.entry.js +2 -0
  960. package/dist/siemens-ix/p-104097fb.entry.js +2 -0
  961. package/dist/siemens-ix/{p-33538474.entry.js.map → p-104097fb.entry.js.map} +1 -1
  962. package/dist/siemens-ix/p-15a5bc5a.entry.js +2 -0
  963. package/dist/siemens-ix/p-15a5bc5a.entry.js.map +1 -0
  964. package/dist/siemens-ix/p-18d15442.entry.js +2 -0
  965. package/dist/siemens-ix/{p-add5b76c.entry.js.map → p-18d15442.entry.js.map} +1 -1
  966. package/dist/siemens-ix/p-1df98c59.entry.js +2 -0
  967. package/dist/siemens-ix/{p-8d156396.entry.js.map → p-1df98c59.entry.js.map} +1 -1
  968. package/dist/siemens-ix/p-1ec8d2b9.entry.js +2 -0
  969. package/dist/siemens-ix/{p-d08cbeaf.entry.js.map → p-1ec8d2b9.entry.js.map} +1 -1
  970. package/dist/siemens-ix/p-1f771917.entry.js +2 -0
  971. package/dist/siemens-ix/{p-c1bd5d78.entry.js.map → p-1f771917.entry.js.map} +1 -1
  972. package/dist/siemens-ix/{p-ced10144.js → p-224ebf90.js} +2 -2
  973. package/dist/siemens-ix/p-235c14ca.js.map +1 -1
  974. package/dist/siemens-ix/p-2442ad01.entry.js +2 -0
  975. package/dist/siemens-ix/{p-902d1046.entry.js.map → p-2442ad01.entry.js.map} +1 -1
  976. package/dist/siemens-ix/p-277980fa.entry.js +2 -0
  977. package/dist/siemens-ix/p-277980fa.entry.js.map +1 -0
  978. package/dist/siemens-ix/{p-418959d3.entry.js → p-293dd6d1.entry.js} +2 -2
  979. package/dist/siemens-ix/p-35690183.entry.js +2 -0
  980. package/dist/siemens-ix/{p-96d2d21f.entry.js.map → p-35690183.entry.js.map} +1 -1
  981. package/dist/siemens-ix/{p-114bb49b.entry.js → p-35fa9e1a.entry.js} +2 -2
  982. package/dist/siemens-ix/p-36c0f378.js +2 -0
  983. package/dist/siemens-ix/p-36c0f378.js.map +1 -0
  984. package/dist/siemens-ix/p-3730ac72.entry.js +2 -0
  985. package/dist/siemens-ix/{p-b475f567.entry.js.map → p-3730ac72.entry.js.map} +1 -1
  986. package/dist/siemens-ix/p-3782e028.js +2 -0
  987. package/dist/siemens-ix/p-3782e028.js.map +1 -0
  988. package/dist/siemens-ix/{p-e07d2623.js → p-37ca7ed4.js} +2 -2
  989. package/dist/siemens-ix/{p-e07d2623.js.map → p-37ca7ed4.js.map} +1 -1
  990. package/dist/siemens-ix/p-399bb0ce.entry.js +2 -0
  991. package/dist/siemens-ix/p-3a5f7b61.entry.js +2 -0
  992. package/dist/siemens-ix/{p-0a1bfcfc.entry.js.map → p-3a5f7b61.entry.js.map} +1 -1
  993. package/dist/siemens-ix/p-3b38f812.entry.js +2 -0
  994. package/dist/siemens-ix/{p-bdc57334.entry.js.map → p-3b38f812.entry.js.map} +1 -1
  995. package/dist/siemens-ix/p-3de71a19.entry.js +2 -0
  996. package/dist/siemens-ix/{p-75548c73.entry.js.map → p-3de71a19.entry.js.map} +1 -1
  997. package/dist/siemens-ix/p-4017727a.entry.js +2 -0
  998. package/dist/siemens-ix/p-4017727a.entry.js.map +1 -0
  999. package/dist/siemens-ix/p-42c66a44.js +2 -0
  1000. package/dist/siemens-ix/p-42c66a44.js.map +1 -0
  1001. package/dist/siemens-ix/p-4a335b55.entry.js +2 -0
  1002. package/dist/siemens-ix/p-4a335b55.entry.js.map +1 -0
  1003. package/dist/siemens-ix/p-4b69ab0d.entry.js +2 -0
  1004. package/dist/siemens-ix/{p-a617e605.entry.js.map → p-4b69ab0d.entry.js.map} +1 -1
  1005. package/dist/siemens-ix/p-504f43d4.entry.js +2 -0
  1006. package/dist/siemens-ix/{p-23dd21b3.entry.js.map → p-504f43d4.entry.js.map} +1 -1
  1007. package/dist/siemens-ix/p-50cae62d.entry.js +2 -0
  1008. package/dist/siemens-ix/p-53e62b51.entry.js +2 -0
  1009. package/dist/siemens-ix/p-56d01130.entry.js +2 -0
  1010. package/dist/siemens-ix/p-56d01130.entry.js.map +1 -0
  1011. package/dist/siemens-ix/p-576b09c9.entry.js +2 -0
  1012. package/dist/siemens-ix/{p-9dabe2f7.entry.js.map → p-576b09c9.entry.js.map} +1 -1
  1013. package/dist/siemens-ix/p-5924a783.entry.js +2 -0
  1014. package/dist/siemens-ix/{p-2c6a35db.entry.js.map → p-5924a783.entry.js.map} +1 -1
  1015. package/dist/siemens-ix/p-5a6d8b69.entry.js +2 -0
  1016. package/dist/siemens-ix/p-5a6d8b69.entry.js.map +1 -0
  1017. package/dist/siemens-ix/p-5bf40a9f.entry.js +2 -0
  1018. package/dist/siemens-ix/p-5eb935a3.entry.js +2 -0
  1019. package/dist/siemens-ix/p-5eb935a3.entry.js.map +1 -0
  1020. package/dist/siemens-ix/p-61265df9.entry.js +2 -0
  1021. package/dist/siemens-ix/{p-784fe260.entry.js.map → p-61265df9.entry.js.map} +1 -1
  1022. package/dist/siemens-ix/{p-01a8adf1.entry.js → p-628c8612.entry.js} +2 -2
  1023. package/dist/siemens-ix/p-628f031a.entry.js +2 -0
  1024. package/dist/siemens-ix/{p-021e1084.entry.js.map → p-628f031a.entry.js.map} +1 -1
  1025. package/dist/siemens-ix/p-6bd0ba14.entry.js +2 -0
  1026. package/dist/siemens-ix/p-6bd0ba14.entry.js.map +1 -0
  1027. package/dist/siemens-ix/p-6c412b52.entry.js +2 -0
  1028. package/dist/siemens-ix/{p-90c55341.entry.js.map → p-6c412b52.entry.js.map} +1 -1
  1029. package/dist/siemens-ix/p-6ca97a73.entry.js +2 -0
  1030. package/dist/siemens-ix/{p-3b8e4fe5.entry.js.map → p-6ca97a73.entry.js.map} +1 -1
  1031. package/dist/siemens-ix/p-6f83793b.entry.js +2 -0
  1032. package/dist/siemens-ix/p-6f83793b.entry.js.map +1 -0
  1033. package/dist/siemens-ix/p-70a7bd22.entry.js +2 -0
  1034. package/dist/siemens-ix/p-70a7bd22.entry.js.map +1 -0
  1035. package/dist/siemens-ix/p-724b98ce.entry.js +2 -0
  1036. package/dist/siemens-ix/{p-b24beb48.entry.js.map → p-724b98ce.entry.js.map} +1 -1
  1037. package/dist/siemens-ix/p-73e0eb40.entry.js +2 -0
  1038. package/dist/siemens-ix/p-73e0eb40.entry.js.map +1 -0
  1039. package/dist/siemens-ix/p-75c61fbf.entry.js +2 -0
  1040. package/dist/siemens-ix/{p-e0cab820.entry.js.map → p-75c61fbf.entry.js.map} +1 -1
  1041. package/dist/siemens-ix/p-781a1922.entry.js +2 -0
  1042. package/dist/siemens-ix/{p-b944d015.entry.js.map → p-781a1922.entry.js.map} +1 -1
  1043. package/dist/siemens-ix/p-787293f4.entry.js +2 -0
  1044. package/dist/siemens-ix/{p-e678bfc5.entry.js.map → p-787293f4.entry.js.map} +1 -1
  1045. package/dist/siemens-ix/p-79c848ec.entry.js +2 -0
  1046. package/dist/siemens-ix/{p-ecd3b070.entry.js.map → p-79c848ec.entry.js.map} +1 -1
  1047. package/dist/siemens-ix/p-7f4b78e5.js +2 -0
  1048. package/dist/siemens-ix/p-7f4b78e5.js.map +1 -0
  1049. package/dist/siemens-ix/{p-08a5d45b.entry.js → p-80051a81.entry.js} +2 -2
  1050. package/dist/siemens-ix/{p-08a5d45b.entry.js.map → p-80051a81.entry.js.map} +1 -1
  1051. package/dist/siemens-ix/{p-a6fbea5b.entry.js → p-815dd9a1.entry.js} +2 -2
  1052. package/dist/siemens-ix/p-83b8b502.entry.js +2 -0
  1053. package/dist/siemens-ix/{p-3b8ff673.entry.js.map → p-83b8b502.entry.js.map} +1 -1
  1054. package/dist/siemens-ix/p-846cf6d2.entry.js +2 -0
  1055. package/dist/siemens-ix/p-846cf6d2.entry.js.map +1 -0
  1056. package/dist/siemens-ix/{p-330343e7.entry.js → p-86b46723.entry.js} +2 -2
  1057. package/dist/siemens-ix/{p-330343e7.entry.js.map → p-86b46723.entry.js.map} +1 -1
  1058. package/dist/siemens-ix/{p-2637665e.entry.js → p-87d7aaf9.entry.js} +2 -2
  1059. package/dist/siemens-ix/{p-4cf6e817.entry.js → p-8a9fc2f0.entry.js} +2 -2
  1060. package/dist/siemens-ix/{p-4cf6e817.entry.js.map → p-8a9fc2f0.entry.js.map} +1 -1
  1061. package/dist/siemens-ix/{p-306c5ab2.entry.js → p-8d737a35.entry.js} +2 -2
  1062. package/dist/siemens-ix/{p-306c5ab2.entry.js.map → p-8d737a35.entry.js.map} +1 -1
  1063. package/dist/siemens-ix/{p-f2a81e70.entry.js → p-8dcf30ce.entry.js} +2 -2
  1064. package/dist/siemens-ix/{p-30e8a26a.entry.js → p-8e10d2f2.entry.js} +2 -2
  1065. package/dist/siemens-ix/p-9010831e.entry.js +2 -0
  1066. package/dist/siemens-ix/p-9010831e.entry.js.map +1 -0
  1067. package/dist/siemens-ix/p-921c59c4.entry.js +2 -0
  1068. package/dist/siemens-ix/{p-18a1c4dd.entry.js.map → p-921c59c4.entry.js.map} +1 -1
  1069. package/dist/siemens-ix/p-934ae9a0.entry.js +2 -0
  1070. package/dist/siemens-ix/{p-5f08da2c.entry.js.map → p-934ae9a0.entry.js.map} +1 -1
  1071. package/dist/siemens-ix/{p-6e1fdc40.entry.js → p-9569e1a2.entry.js} +2 -2
  1072. package/dist/siemens-ix/{p-6e1fdc40.entry.js.map → p-9569e1a2.entry.js.map} +1 -1
  1073. package/dist/siemens-ix/p-97f475db.entry.js +2 -0
  1074. package/dist/siemens-ix/{p-f23e0121.entry.js.map → p-97f475db.entry.js.map} +1 -1
  1075. package/dist/siemens-ix/p-9840f086.entry.js +2 -0
  1076. package/dist/siemens-ix/{p-84b3b311.entry.js.map → p-9840f086.entry.js.map} +1 -1
  1077. package/dist/siemens-ix/p-9cc0d11b.entry.js +2 -0
  1078. package/dist/siemens-ix/{p-ed2ec72f.entry.js.map → p-9cc0d11b.entry.js.map} +1 -1
  1079. package/dist/siemens-ix/{p-493cb880.entry.js → p-9ec92185.entry.js} +2 -2
  1080. package/dist/siemens-ix/p-9ec92185.entry.js.map +1 -0
  1081. package/dist/siemens-ix/p-a9b0c087.entry.js +2 -0
  1082. package/dist/siemens-ix/p-aae05303.entry.js +2 -0
  1083. package/dist/siemens-ix/{p-ee20d08c.entry.js.map → p-aae05303.entry.js.map} +1 -1
  1084. package/dist/siemens-ix/p-ac05950c.entry.js +2 -0
  1085. package/dist/siemens-ix/{p-ec741c06.entry.js.map → p-ac05950c.entry.js.map} +1 -1
  1086. package/dist/siemens-ix/p-ac6c6d3f.entry.js +2 -0
  1087. package/dist/siemens-ix/p-ac6c6d3f.entry.js.map +1 -0
  1088. package/dist/siemens-ix/p-aca94a5e.entry.js +2 -0
  1089. package/dist/siemens-ix/p-aca94a5e.entry.js.map +1 -0
  1090. package/dist/siemens-ix/p-ae7fdfa6.entry.js +2 -0
  1091. package/dist/siemens-ix/{p-cf546284.entry.js.map → p-ae7fdfa6.entry.js.map} +1 -1
  1092. package/dist/siemens-ix/p-b0fe18f7.entry.js +2 -0
  1093. package/dist/siemens-ix/p-b0fe18f7.entry.js.map +1 -0
  1094. package/dist/siemens-ix/p-b5c4fd55.entry.js +2 -0
  1095. package/dist/siemens-ix/{p-ca65a043.entry.js.map → p-b5c4fd55.entry.js.map} +1 -1
  1096. package/dist/siemens-ix/p-b6c0dfb5.entry.js +2 -0
  1097. package/dist/siemens-ix/{p-04a362da.entry.js.map → p-b6c0dfb5.entry.js.map} +1 -1
  1098. package/dist/siemens-ix/p-b789e0e7.entry.js +2 -0
  1099. package/dist/siemens-ix/{p-6eb4eefc.entry.js.map → p-b789e0e7.entry.js.map} +1 -1
  1100. package/dist/siemens-ix/p-b8ed7953.entry.js +2 -0
  1101. package/dist/siemens-ix/{p-b35a627a.entry.js.map → p-b8ed7953.entry.js.map} +1 -1
  1102. package/dist/siemens-ix/{p-2c14670e.entry.js → p-b973db5e.entry.js} +2 -2
  1103. package/dist/siemens-ix/p-b973db5e.entry.js.map +1 -0
  1104. package/dist/siemens-ix/p-b9b59a08.entry.js +2 -0
  1105. package/dist/siemens-ix/p-b9b59a08.entry.js.map +1 -0
  1106. package/dist/siemens-ix/p-bc1e92ac.js +2 -0
  1107. package/dist/siemens-ix/p-bd24bbde.entry.js +2 -0
  1108. package/dist/siemens-ix/{p-2c14670e.entry.js.map → p-bd24bbde.entry.js.map} +1 -1
  1109. package/dist/siemens-ix/p-c3db120e.entry.js +2 -0
  1110. package/dist/siemens-ix/p-c66e4a5f.entry.js +2 -0
  1111. package/dist/siemens-ix/p-c6dcff7e.entry.js +2 -0
  1112. package/dist/siemens-ix/{p-e2464e13.entry.js.map → p-c6dcff7e.entry.js.map} +1 -1
  1113. package/dist/siemens-ix/p-c71d1690.entry.js +2 -0
  1114. package/dist/siemens-ix/p-c71d1690.entry.js.map +1 -0
  1115. package/dist/siemens-ix/p-cce7a3d5.js +2 -0
  1116. package/dist/siemens-ix/p-cce7a3d5.js.map +1 -0
  1117. package/dist/siemens-ix/p-ce8a0611.entry.js +2 -0
  1118. package/dist/siemens-ix/p-ce8a0611.entry.js.map +1 -0
  1119. package/dist/siemens-ix/p-cf65d3b6.entry.js +2 -0
  1120. package/dist/siemens-ix/p-cf65d3b6.entry.js.map +1 -0
  1121. package/dist/siemens-ix/p-cfcd2bd3.entry.js +2 -0
  1122. package/dist/siemens-ix/{p-4d57ca67.entry.js.map → p-cfcd2bd3.entry.js.map} +1 -1
  1123. package/dist/siemens-ix/p-d7131f75.entry.js +2 -0
  1124. package/dist/siemens-ix/{p-a147b152.entry.js.map → p-d7131f75.entry.js.map} +1 -1
  1125. package/dist/siemens-ix/p-da8517ed.js +2 -0
  1126. package/dist/siemens-ix/p-da8517ed.js.map +1 -0
  1127. package/dist/siemens-ix/p-dde0af66.entry.js +2 -0
  1128. package/dist/siemens-ix/{p-abb29515.entry.js.map → p-dde0af66.entry.js.map} +1 -1
  1129. package/dist/siemens-ix/p-dead9c8e.js +2 -0
  1130. package/dist/siemens-ix/p-dead9c8e.js.map +1 -0
  1131. package/dist/siemens-ix/p-e1bd7b4f.entry.js +2 -0
  1132. package/dist/siemens-ix/p-e1bd7b4f.entry.js.map +1 -0
  1133. package/dist/siemens-ix/{p-fb55854a.entry.js → p-e5218382.entry.js} +2 -2
  1134. package/dist/siemens-ix/p-e5218382.entry.js.map +1 -0
  1135. package/dist/siemens-ix/{p-9dc3e182.entry.js → p-e72dfb3c.entry.js} +2 -2
  1136. package/dist/siemens-ix/p-ec0806c3.entry.js +2 -0
  1137. package/dist/siemens-ix/{p-a3ad98bc.entry.js.map → p-ec0806c3.entry.js.map} +1 -1
  1138. package/dist/siemens-ix/p-ed991838.js +2 -0
  1139. package/dist/siemens-ix/p-edd99767.entry.js +2 -0
  1140. package/dist/siemens-ix/p-edd99767.entry.js.map +1 -0
  1141. package/dist/siemens-ix/p-ef6171a2.entry.js +2 -0
  1142. package/dist/siemens-ix/p-f0bbd496.entry.js +2 -0
  1143. package/dist/siemens-ix/{p-e4e24f59.entry.js.map → p-f0bbd496.entry.js.map} +1 -1
  1144. package/dist/siemens-ix/p-f22e4bb2.entry.js +2 -0
  1145. package/dist/siemens-ix/p-f22e4bb2.entry.js.map +1 -0
  1146. package/dist/siemens-ix/p-f37ac17d.entry.js +2 -0
  1147. package/dist/siemens-ix/{p-18a27007.entry.js.map → p-f37ac17d.entry.js.map} +1 -1
  1148. package/dist/siemens-ix/p-f3c3366d.entry.js +2 -0
  1149. package/dist/siemens-ix/p-f86a894a.js +3 -0
  1150. package/dist/siemens-ix/p-f86a894a.js.map +1 -0
  1151. package/dist/siemens-ix/p-fad5daa1.entry.js +2 -0
  1152. package/dist/siemens-ix/{p-bd576793.entry.js.map → p-fad5daa1.entry.js.map} +1 -1
  1153. package/dist/siemens-ix/siemens-ix-core.css +1 -1
  1154. package/dist/siemens-ix/siemens-ix.css +760 -157
  1155. package/dist/siemens-ix/siemens-ix.esm.js +1 -1
  1156. package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
  1157. package/dist/siemens-ix/theme/classic-dark.css +1 -1
  1158. package/dist/siemens-ix/theme/classic-light.css +1 -1
  1159. package/dist/types/components/application-header/application-header.d.ts +2 -0
  1160. package/dist/types/components/avatar/avatar.d.ts +2 -0
  1161. package/dist/types/components/checkbox/checkbox.d.ts +61 -0
  1162. package/dist/types/components/checkbox/tests/checkbox.ct.d.ts +1 -0
  1163. package/dist/types/components/checkbox-group/checkbox-group.d.ts +40 -0
  1164. package/dist/types/components/chip/test/chip.ct.d.ts +1 -0
  1165. package/dist/types/components/custom-field/custom-field.d.ts +46 -0
  1166. package/dist/types/components/custom-field/tests/custom-field.ct.d.ts +1 -0
  1167. package/dist/types/components/date-field/date-field.d.ts +127 -0
  1168. package/dist/types/components/date-field/tests/date-field.ct.d.ts +1 -0
  1169. package/dist/types/components/date-time-card/date-time-card.d.ts +1 -1
  1170. package/dist/types/components/dropdown/dropdown-controller.d.ts +1 -0
  1171. package/dist/types/components/dropdown-button/dropdown-button.ct.d.ts +1 -0
  1172. package/dist/types/components/field-label/field-label.d.ts +27 -0
  1173. package/dist/types/components/field-label/tests/field-label.ct.d.ts +1 -0
  1174. package/dist/types/components/field-wrapper/field-wrapper.d.ts +64 -0
  1175. package/dist/types/components/field-wrapper/helper-text-util.d.ts +11 -0
  1176. package/dist/types/components/field-wrapper/tests/field-wrapper.ct.d.ts +1 -0
  1177. package/dist/types/components/helper-text/helper-text.d.ts +37 -0
  1178. package/dist/types/components/layout-form/layout-form.d.ts +22 -0
  1179. package/dist/types/components/radio/radio.d.ts +53 -0
  1180. package/dist/types/components/radio/test/radio.ct.d.ts +1 -0
  1181. package/dist/types/components/radio-group/radio-group.d.ts +60 -0
  1182. package/dist/types/components/radio-group/test/radio-group.ct.d.ts +1 -0
  1183. package/dist/types/components/select/select.d.ts +84 -4
  1184. package/dist/types/components/split-button/split-button.d.ts +6 -0
  1185. package/dist/types/components/text-field/input.fc.d.ts +50 -0
  1186. package/dist/types/components/text-field/number-field.d.ts +117 -0
  1187. package/dist/types/components/text-field/tests/form-ready.ct.d.ts +1 -0
  1188. package/dist/types/components/text-field/text-field.animation.d.ts +1 -0
  1189. package/dist/types/components/text-field/text-field.d.ts +119 -0
  1190. package/dist/types/components/text-field/text-field.util.d.ts +13 -0
  1191. package/dist/types/components/text-field/textarea-field.d.ts +127 -0
  1192. package/dist/types/components/toggle/toggle.d.ts +29 -1
  1193. package/dist/types/components/utils/a11y.d.ts +5 -5
  1194. package/dist/types/components/utils/attributes.d.ts +2 -0
  1195. package/dist/types/components/utils/field/index.d.ts +60 -0
  1196. package/dist/types/components/utils/field/validation.d.ts +15 -0
  1197. package/dist/types/components/utils/testing/index.d.ts +0 -0
  1198. package/dist/types/components/utils/uuid.d.ts +1 -0
  1199. package/dist/types/components/workflow-step/workflow-step.d.ts +1 -1
  1200. package/dist/types/components.d.ts +1741 -47
  1201. package/dist/types/index.d.ts +1 -0
  1202. package/dist/types/tests/utils/test/index.d.ts +3 -0
  1203. package/hydrate/index.d.ts +218 -0
  1204. package/hydrate/index.js +43475 -0
  1205. package/hydrate/package.json +6 -0
  1206. package/package.json +6 -5
  1207. package/scss/components/form/_input.scss +56 -5
  1208. package/scss/mixins/_field.scss +18 -0
  1209. package/scss/mixins/_scrollbar.scss +7 -0
  1210. package/scss/mixins/validation/_form-component.scss +63 -0
  1211. package/scss/theme/classic-dark/_border.scss +1 -1
  1212. package/scss/theme/classic-dark/_borderRadius.scss +1 -1
  1213. package/scss/theme/classic-dark/_borderWidth.scss +1 -1
  1214. package/scss/theme/classic-dark/_boxShadow.scss +1 -1
  1215. package/scss/theme/classic-dark/_color.scss +320 -62
  1216. package/scss/theme/classic-dark/_fontFamilies.scss +1 -1
  1217. package/scss/theme/classic-dark/_fontSizes.scss +1 -1
  1218. package/scss/theme/classic-dark/_fontWeights.scss +1 -1
  1219. package/scss/theme/classic-dark/_index.scss +1 -1
  1220. package/scss/theme/classic-dark/_letterSpacing.scss +1 -1
  1221. package/scss/theme/classic-dark/_lineHeights.scss +1 -1
  1222. package/scss/theme/classic-dark/_other.scss +1 -1
  1223. package/scss/theme/classic-dark/_sizing.scss +1 -1
  1224. package/scss/theme/classic-dark/_spacing.scss +1 -1
  1225. package/scss/theme/classic-dark/_typography.scss +1 -1
  1226. package/scss/theme/classic-light/_border.scss +1 -1
  1227. package/scss/theme/classic-light/_borderRadius.scss +1 -1
  1228. package/scss/theme/classic-light/_borderWidth.scss +1 -1
  1229. package/scss/theme/classic-light/_boxShadow.scss +1 -1
  1230. package/scss/theme/classic-light/_color.scss +320 -62
  1231. package/scss/theme/classic-light/_fontFamilies.scss +1 -1
  1232. package/scss/theme/classic-light/_fontSizes.scss +1 -1
  1233. package/scss/theme/classic-light/_fontWeights.scss +1 -1
  1234. package/scss/theme/classic-light/_index.scss +1 -1
  1235. package/scss/theme/classic-light/_letterSpacing.scss +1 -1
  1236. package/scss/theme/classic-light/_lineHeights.scss +1 -1
  1237. package/scss/theme/classic-light/_other.scss +1 -1
  1238. package/scss/theme/classic-light/_sizing.scss +1 -1
  1239. package/scss/theme/classic-light/_spacing.scss +1 -1
  1240. package/scss/theme/classic-light/_typography.scss +1 -1
  1241. package/components/ix-form-field.js +0 -44
  1242. package/components/ix-form-field.js.map +0 -1
  1243. package/dist/cjs/a11y-d3ce56d1.js.map +0 -1
  1244. package/dist/cjs/index-c6f0ac73.js +0 -2688
  1245. package/dist/cjs/index-c6f0ac73.js.map +0 -1
  1246. package/dist/cjs/ix-form-field.cjs.entry.js +0 -28
  1247. package/dist/cjs/ix-form-field.cjs.entry.js.map +0 -1
  1248. package/dist/cjs/ix-tooltip.cjs.entry.js.map +0 -1
  1249. package/dist/cjs/make-ref-c25629b7.js.map +0 -1
  1250. package/dist/collection/components/form-field/form-field.js +0 -56
  1251. package/dist/collection/components/form-field/form-field.js.map +0 -1
  1252. package/dist/esm/a11y-d5444a76.js.map +0 -1
  1253. package/dist/esm/index-f18c5ad1.js +0 -2656
  1254. package/dist/esm/index-f18c5ad1.js.map +0 -1
  1255. package/dist/esm/ix-form-field.entry.js +0 -24
  1256. package/dist/esm/ix-form-field.entry.js.map +0 -1
  1257. package/dist/esm/ix-tooltip.entry.js.map +0 -1
  1258. package/dist/esm/make-ref-c80046bf.js.map +0 -1
  1259. package/dist/siemens-ix/p-01b8b98c.entry.js +0 -2
  1260. package/dist/siemens-ix/p-01b8b98c.entry.js.map +0 -1
  1261. package/dist/siemens-ix/p-021e1084.entry.js +0 -2
  1262. package/dist/siemens-ix/p-04a362da.entry.js +0 -2
  1263. package/dist/siemens-ix/p-0a1bfcfc.entry.js +0 -2
  1264. package/dist/siemens-ix/p-0fee2dd5.entry.js +0 -2
  1265. package/dist/siemens-ix/p-0fee2dd5.entry.js.map +0 -1
  1266. package/dist/siemens-ix/p-10f86b92.entry.js +0 -2
  1267. package/dist/siemens-ix/p-10f86b92.entry.js.map +0 -1
  1268. package/dist/siemens-ix/p-18a1c4dd.entry.js +0 -2
  1269. package/dist/siemens-ix/p-18a27007.entry.js +0 -2
  1270. package/dist/siemens-ix/p-1cc910b7.entry.js +0 -2
  1271. package/dist/siemens-ix/p-213f16d5.entry.js +0 -2
  1272. package/dist/siemens-ix/p-213f16d5.entry.js.map +0 -1
  1273. package/dist/siemens-ix/p-23dd21b3.entry.js +0 -2
  1274. package/dist/siemens-ix/p-2459f98f.entry.js +0 -2
  1275. package/dist/siemens-ix/p-2459f98f.entry.js.map +0 -1
  1276. package/dist/siemens-ix/p-26e9d40e.js +0 -3
  1277. package/dist/siemens-ix/p-26e9d40e.js.map +0 -1
  1278. package/dist/siemens-ix/p-2c6a35db.entry.js +0 -2
  1279. package/dist/siemens-ix/p-2f4e6ac1.entry.js +0 -2
  1280. package/dist/siemens-ix/p-2f4e6ac1.entry.js.map +0 -1
  1281. package/dist/siemens-ix/p-33538474.entry.js +0 -2
  1282. package/dist/siemens-ix/p-3b8e4fe5.entry.js +0 -2
  1283. package/dist/siemens-ix/p-3b8ff673.entry.js +0 -2
  1284. package/dist/siemens-ix/p-4290098e.entry.js +0 -2
  1285. package/dist/siemens-ix/p-43a58a77.entry.js +0 -2
  1286. package/dist/siemens-ix/p-43a58a77.entry.js.map +0 -1
  1287. package/dist/siemens-ix/p-493cb880.entry.js.map +0 -1
  1288. package/dist/siemens-ix/p-4d57ca67.entry.js +0 -2
  1289. package/dist/siemens-ix/p-4f8ac3bf.js +0 -2
  1290. package/dist/siemens-ix/p-4f8ac3bf.js.map +0 -1
  1291. package/dist/siemens-ix/p-4fd11865.entry.js +0 -2
  1292. package/dist/siemens-ix/p-52bb526e.entry.js +0 -2
  1293. package/dist/siemens-ix/p-56bbdae4.entry.js +0 -2
  1294. package/dist/siemens-ix/p-5d582c48.entry.js +0 -2
  1295. package/dist/siemens-ix/p-5f08da2c.entry.js +0 -2
  1296. package/dist/siemens-ix/p-601cfc6a.entry.js +0 -2
  1297. package/dist/siemens-ix/p-601cfc6a.entry.js.map +0 -1
  1298. package/dist/siemens-ix/p-64c3fa3d.js +0 -2
  1299. package/dist/siemens-ix/p-64c3fa3d.js.map +0 -1
  1300. package/dist/siemens-ix/p-678d821f.entry.js +0 -2
  1301. package/dist/siemens-ix/p-6ea6396e.entry.js +0 -2
  1302. package/dist/siemens-ix/p-6ea6396e.entry.js.map +0 -1
  1303. package/dist/siemens-ix/p-6eb4eefc.entry.js +0 -2
  1304. package/dist/siemens-ix/p-75548c73.entry.js +0 -2
  1305. package/dist/siemens-ix/p-784fe260.entry.js +0 -2
  1306. package/dist/siemens-ix/p-8362e966.js +0 -2
  1307. package/dist/siemens-ix/p-84b3b311.entry.js +0 -2
  1308. package/dist/siemens-ix/p-890d74cd.entry.js +0 -2
  1309. package/dist/siemens-ix/p-8d156396.entry.js +0 -2
  1310. package/dist/siemens-ix/p-902d1046.entry.js +0 -2
  1311. package/dist/siemens-ix/p-90c55341.entry.js +0 -2
  1312. package/dist/siemens-ix/p-96d2d21f.entry.js +0 -2
  1313. package/dist/siemens-ix/p-9dabe2f7.entry.js +0 -2
  1314. package/dist/siemens-ix/p-a147b152.entry.js +0 -2
  1315. package/dist/siemens-ix/p-a35d02ea.entry.js +0 -2
  1316. package/dist/siemens-ix/p-a3ad98bc.entry.js +0 -2
  1317. package/dist/siemens-ix/p-a617e605.entry.js +0 -2
  1318. package/dist/siemens-ix/p-a8838a77.js +0 -2
  1319. package/dist/siemens-ix/p-a9d1ab94.entry.js +0 -2
  1320. package/dist/siemens-ix/p-a9d1ab94.entry.js.map +0 -1
  1321. package/dist/siemens-ix/p-aa58d9d7.entry.js +0 -2
  1322. package/dist/siemens-ix/p-abb29515.entry.js +0 -2
  1323. package/dist/siemens-ix/p-add5b76c.entry.js +0 -2
  1324. package/dist/siemens-ix/p-b24beb48.entry.js +0 -2
  1325. package/dist/siemens-ix/p-b32c2183.entry.js +0 -2
  1326. package/dist/siemens-ix/p-b35a627a.entry.js +0 -2
  1327. package/dist/siemens-ix/p-b475f567.entry.js +0 -2
  1328. package/dist/siemens-ix/p-b7a8f2d5.entry.js +0 -2
  1329. package/dist/siemens-ix/p-b944d015.entry.js +0 -2
  1330. package/dist/siemens-ix/p-bc5d33ce.entry.js +0 -2
  1331. package/dist/siemens-ix/p-bc5d33ce.entry.js.map +0 -1
  1332. package/dist/siemens-ix/p-bd576793.entry.js +0 -2
  1333. package/dist/siemens-ix/p-bdc57334.entry.js +0 -2
  1334. package/dist/siemens-ix/p-c1bd5d78.entry.js +0 -2
  1335. package/dist/siemens-ix/p-c3939d35.entry.js +0 -2
  1336. package/dist/siemens-ix/p-ca65a043.entry.js +0 -2
  1337. package/dist/siemens-ix/p-cbbe9dee.entry.js +0 -2
  1338. package/dist/siemens-ix/p-ccf1bd22.entry.js +0 -2
  1339. package/dist/siemens-ix/p-cf546284.entry.js +0 -2
  1340. package/dist/siemens-ix/p-d08cbeaf.entry.js +0 -2
  1341. package/dist/siemens-ix/p-d3f26126.entry.js +0 -2
  1342. package/dist/siemens-ix/p-d3f26126.entry.js.map +0 -1
  1343. package/dist/siemens-ix/p-d600ea55.entry.js +0 -2
  1344. package/dist/siemens-ix/p-d600ea55.entry.js.map +0 -1
  1345. package/dist/siemens-ix/p-d6a094cf.entry.js +0 -2
  1346. package/dist/siemens-ix/p-d6a094cf.entry.js.map +0 -1
  1347. package/dist/siemens-ix/p-def8b3a4.entry.js +0 -2
  1348. package/dist/siemens-ix/p-def8b3a4.entry.js.map +0 -1
  1349. package/dist/siemens-ix/p-e0cab820.entry.js +0 -2
  1350. package/dist/siemens-ix/p-e2464e13.entry.js +0 -2
  1351. package/dist/siemens-ix/p-e4e24f59.entry.js +0 -2
  1352. package/dist/siemens-ix/p-e678bfc5.entry.js +0 -2
  1353. package/dist/siemens-ix/p-ec741c06.entry.js +0 -2
  1354. package/dist/siemens-ix/p-ecd3b070.entry.js +0 -2
  1355. package/dist/siemens-ix/p-ed2ec72f.entry.js +0 -2
  1356. package/dist/siemens-ix/p-ee20d08c.entry.js +0 -2
  1357. package/dist/siemens-ix/p-f23e0121.entry.js +0 -2
  1358. package/dist/siemens-ix/p-fb55854a.entry.js.map +0 -1
  1359. package/dist/types/components/form-field/form-field.d.ts +0 -10
  1360. /package/dist/siemens-ix/{p-1cc910b7.entry.js.map → p-0bed10af.entry.js.map} +0 -0
  1361. /package/dist/siemens-ix/{p-5d582c48.entry.js.map → p-0d907964.entry.js.map} +0 -0
  1362. /package/dist/siemens-ix/{p-b7a8f2d5.entry.js.map → p-0dfc3b80.entry.js.map} +0 -0
  1363. /package/dist/siemens-ix/{p-ced10144.js.map → p-224ebf90.js.map} +0 -0
  1364. /package/dist/siemens-ix/{p-418959d3.entry.js.map → p-293dd6d1.entry.js.map} +0 -0
  1365. /package/dist/siemens-ix/{p-114bb49b.entry.js.map → p-35fa9e1a.entry.js.map} +0 -0
  1366. /package/dist/siemens-ix/{p-890d74cd.entry.js.map → p-399bb0ce.entry.js.map} +0 -0
  1367. /package/dist/siemens-ix/{p-a35d02ea.entry.js.map → p-50cae62d.entry.js.map} +0 -0
  1368. /package/dist/siemens-ix/{p-c3939d35.entry.js.map → p-53e62b51.entry.js.map} +0 -0
  1369. /package/dist/siemens-ix/{p-56bbdae4.entry.js.map → p-5bf40a9f.entry.js.map} +0 -0
  1370. /package/dist/siemens-ix/{p-01a8adf1.entry.js.map → p-628c8612.entry.js.map} +0 -0
  1371. /package/dist/siemens-ix/{p-a6fbea5b.entry.js.map → p-815dd9a1.entry.js.map} +0 -0
  1372. /package/dist/siemens-ix/{p-2637665e.entry.js.map → p-87d7aaf9.entry.js.map} +0 -0
  1373. /package/dist/siemens-ix/{p-f2a81e70.entry.js.map → p-8dcf30ce.entry.js.map} +0 -0
  1374. /package/dist/siemens-ix/{p-30e8a26a.entry.js.map → p-8e10d2f2.entry.js.map} +0 -0
  1375. /package/dist/siemens-ix/{p-52bb526e.entry.js.map → p-a9b0c087.entry.js.map} +0 -0
  1376. /package/dist/siemens-ix/{p-a8838a77.js.map → p-bc1e92ac.js.map} +0 -0
  1377. /package/dist/siemens-ix/{p-4fd11865.entry.js.map → p-c3db120e.entry.js.map} +0 -0
  1378. /package/dist/siemens-ix/{p-ccf1bd22.entry.js.map → p-c66e4a5f.entry.js.map} +0 -0
  1379. /package/dist/siemens-ix/{p-9dc3e182.entry.js.map → p-e72dfb3c.entry.js.map} +0 -0
  1380. /package/dist/siemens-ix/{p-8362e966.js.map → p-ed991838.js.map} +0 -0
  1381. /package/dist/siemens-ix/{p-678d821f.entry.js.map → p-ef6171a2.entry.js.map} +0 -0
  1382. /package/dist/siemens-ix/{p-b32c2183.entry.js.map → p-f3c3366d.entry.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"file":"ix-textarea-field.js","mappings":"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","names":[],"sources":["src/components/text-field/textarea-field.scss?tag=ix-textarea-field&encapsulation=shadow","src/components/text-field/textarea-field.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n@import \"./text-field.mixins.scss\";\n\n@include input-field;\n\n@include host-valid {\n}\n\n@include host-info {\n textarea {\n border-color: var(--theme-input--border-color--info);\n }\n\n textarea:hover {\n border-color: var(--theme-input--border-color--info--hover) !important;\n }\n\n textarea:active {\n border-color: var(--theme-input--border-color--info--active) !important;\n }\n}\n\n@include host-warning {\n textarea {\n border-color: var(--theme-input--border-color--warning--active) !important;\n }\n\n textarea:hover {\n border-color: var(--theme-input--border-color--warning--active) !important;\n }\n\n textarea:active {\n border-color: var(--theme-input--border-color--warning--active) !important;\n }\n}\n\n@include host-invalid {\n textarea {\n background-color: var(--theme-input--background--invalid);\n border-color: var(--theme-input--border-color--invalid);\n }\n\n textarea {\n border-color: var(--theme-input--border-color--invalid) !important;\n }\n\n textarea:hover {\n border-color: var(--theme-input--border-color--invalid--hover) !important;\n }\n\n textarea:active {\n border-color: var(--theme-input--border-color--invalid--active) !important;\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n Host,\n Method,\n Prop,\n State,\n h,\n} from '@stencil/core';\nimport {\n HookValidationLifecycle,\n IxInputFieldComponent,\n ValidationResults,\n} from '../utils/field';\nimport { makeRef } from '../utils/make-ref';\nimport { TextareaElement } from './input.fc';\nimport { mapValidationResult, onInputBlur } from './text-field.util';\n\n/**\n * @since 2.4.0\n * @form-ready 2.4.0\n */\n@Component({\n tag: 'ix-textarea-field',\n styleUrl: 'textarea-field.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class TextareaField implements IxInputFieldComponent<string> {\n @Element() hostElement!: HTMLIxTextareaFieldElement;\n @AttachInternals() formInternals!: ElementInternals;\n\n /**\n * The name of the textarea field.\n */\n @Prop({ reflect: true }) name?: string;\n\n /**\n * The placeholder text for the textarea field.\n */\n @Prop({ reflect: true }) placeholder?: string;\n\n /**\n * The value of the textarea field.\n */\n @Prop({ reflect: true, mutable: true }) value: string = '';\n\n /**\n * Determines if the textarea field is required.\n */\n @Prop({ reflect: true }) required: boolean = false;\n\n /**\n * Determines if the textarea field is disabled.\n */\n @Prop() disabled: boolean = false;\n\n /**\n * Determines if the textarea field is readonly.\n */\n @Prop() readonly: boolean = false;\n\n /**\n * The helper text for the textarea field.\n */\n @Prop() helperText?: string;\n\n /**\n * The info text for the textarea field.\n */\n @Prop() infoText?: string;\n\n /**\n * Determines if the text should be displayed as a tooltip.\n */\n @Prop() showTextAsTooltip?: boolean;\n\n /**\n * The valid text for the textarea field.\n */\n @Prop() validText?: string;\n\n /**\n * The warning text for the textarea field.\n */\n @Prop() warningText?: string;\n\n /**\n * The label for the textarea field.\n */\n @Prop({ reflect: true }) label?: string;\n\n /**\n * The error text for the textarea field.\n */\n @Prop() invalidText?: string;\n\n /**\n * The height of the textarea field.\n * Helpful if you want to set an initial height for the textarea.\n */\n @Prop() textareaHeight: string = '300px';\n\n /**\n * The height of the textarea field.\n * Helpful if you want to set an initial height for the textarea.\n */\n @Prop() textareaWidth: string = '100%';\n\n /**\n * The number of rows of the textarea field.\n * Helpful if you want to set an initial height for the textarea.\n */\n @Prop() textareaRows: string = '5';\n\n /**\n * The height of the textarea field.\n * Helpful if you want to set an initial height for the textarea.\n */\n @Prop({ reflect: true }) textareaCols: string = '20';\n\n /**\n * Determines the resize behavior of the textarea field.\n * 'dimensions' means the textarea will be resized based on textareaHeight and textareaWidth.\n * 'rowsCols' means the textarea will be resized based on textareaRows and textareaCols.\n */\n @Prop() resizeBehavior: 'dimensions' | 'rowsCols' = 'rowsCols';\n\n /**\n * The maximum length of the textarea field.\n */\n @Prop() maxLength?: number;\n\n /**\n * The minimum length of the textarea field.\n */\n @Prop() minLength?: number;\n\n /**\n * Event emitted when the value of the textarea field changes.\n */\n @Event() valueChange!: EventEmitter<string>;\n\n /**\n * Event emitted when the validity state of the textarea field changes.\n */\n @Event() validityStateChange!: EventEmitter<ValidityState>;\n\n /**\n * Event emitted when the textarea field loses focus.\n */\n @Event() ixBlur!: EventEmitter<void>;\n\n @State() isInvalid = false;\n @State() isValid = false;\n @State() isInfo = false;\n @State() isWarning = false;\n @State() isInvalidByRequired = false;\n\n private textAreaRef = makeRef<HTMLTextAreaElement>();\n\n @HookValidationLifecycle()\n updateClassMappings(result: ValidationResults) {\n mapValidationResult(this, result);\n }\n\n componentWillLoad() {\n this.updateFormInternalValue(this.value);\n }\n\n updateFormInternalValue(value: string) {\n this.formInternals.setFormValue(value);\n this.value = value;\n }\n\n /** @internal */\n @Method()\n async getAssociatedFormElement(): Promise<HTMLFormElement | null> {\n return this.formInternals.form;\n }\n\n /** @internal */\n @Method()\n hasValidValue(): Promise<boolean> {\n return Promise.resolve(!!this.value);\n }\n\n /**\n * Get the native textarea element.\n */\n @Method()\n getNativeInputElement(): Promise<HTMLTextAreaElement> {\n return this.textAreaRef.waitForCurrent();\n }\n\n getSizeValue(behavior: string, value: string) {\n return this.resizeBehavior === behavior ? value : undefined;\n }\n\n render() {\n return (\n <Host\n class={{\n disabled: this.disabled,\n readonly: this.readonly,\n }}\n >\n <ix-field-wrapper\n required={this.required}\n label={this.label}\n helperText={this.helperText}\n invalidText={this.invalidText}\n infoText={this.infoText}\n warningText={this.warningText}\n validText={this.validText}\n showTextAsTooltip={this.showTextAsTooltip}\n isInvalid={this.isInvalid}\n isValid={this.isValid}\n isInfo={this.isInfo}\n isWarning={this.isWarning}\n controlRef={this.textAreaRef}\n >\n <slot name=\"label\" slot=\"label\"></slot>\n\n {this.maxLength && (\n <ix-typography slot=\"bottom-right\" color=\"weak\">\n {this.value.length}/{this.maxLength}\n </ix-typography>\n )}\n <div\n class={{\n 'input-wrapper': true,\n }}\n >\n <TextareaElement\n minLength={this.minLength}\n maxLength={this.maxLength}\n textareaHeight={this.getSizeValue(\n 'dimensions',\n this.textareaHeight\n )}\n textareaWidth={this.getSizeValue(\n 'dimensions',\n this.textareaWidth\n )}\n textareaCols={this.getSizeValue('rowsCols', this.textareaCols)}\n textareaRows={this.getSizeValue('rowsCols', this.textareaRows)}\n readonly={this.readonly}\n disabled={this.disabled}\n isInvalid={this.isInvalid}\n required={this.required}\n value={this.value}\n placeholder={this.placeholder}\n textAreaRef={this.textAreaRef}\n valueChange={(value) => this.valueChange.emit(value)}\n updateFormInternalValue={(value) =>\n this.updateFormInternalValue(value)\n }\n onBlur={() => onInputBlur(this, this.textAreaRef.current)}\n ></TextareaElement>\n </div>\n </ix-field-wrapper>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
 
3
- const tileCss = ":host{min-width:11.937rem;max-width:11.937rem;width:11.937rem;display:flex;flex-direction:column;border:1px solid var(--theme-tile--border);border-radius:var(--theme-tile--border-radius);background-color:var(--theme-color-2);color:var(--theme-color-std-text);box-shadow:var(--theme-tile--box-shadow)}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .tile-header{display:flex;align-items:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}:host .tile-header,:host .tile-subheader,:host .tile-content,:host .tile-footer{padding:0 1rem}:host .tile-header,:host .tile-content{flex-grow:1}:host .tile-header.has-content{display:flex;height:2.5rem;max-height:2.5rem;padding-inline-end:0.5rem}:host .tile-subheader{color:var(--theme-btn-invisible-secondary--color);flex-grow:0}:host .tile-footer.has-content{border-block-start:1px solid var(--theme-color-1);height:2.5rem}:host(.tile-small){height:2.5rem;min-height:2.5rem;max-height:2.5rem}:host(.tile-medium){height:5rem;min-height:5rem;max-height:5rem}:host(.tile-big){height:10rem;min-height:10rem;max-height:10rem}:host(:active),:host(:focus-visible),:host(:visited){outline:none}";
3
+ const tileCss = ":host{min-width:11.937rem;max-width:11.937rem;width:11.937rem;display:flex;flex-direction:column;border:1px solid var(--theme-tile--border);border-radius:var(--theme-tile--border-radius);background-color:var(--theme-color-2);color:var(--theme-color-std-text);box-shadow:var(--theme-tile--box-shadow)}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .tile-header{display:flex;align-items:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}:host .tile-header,:host .tile-subheader,:host .tile-content,:host .tile-footer{padding:0 1rem}:host .tile-header,:host .tile-content{flex-grow:1}:host .tile-header.has-content{display:flex;height:2.5rem;max-height:2.5rem;padding-inline-end:0.5rem}:host .tile-subheader{color:var(--theme-btn-invisible-secondary--color);flex-grow:0}:host .tile-footer.has-content{border-block-start:1px solid var(--theme-color-1);height:2.5rem}:host(.tile-small){height:2.5rem;min-height:2.5rem;max-height:2.5rem}:host(.tile-medium){height:5rem;min-height:5rem;max-height:5rem}:host(.tile-big){height:10rem;min-height:10rem;max-height:10rem}:host(:active),:host(:focus-visible),:host(:visited){outline:none}";
4
4
  const IxTileStyle0 = tileCss;
5
5
 
6
6
  const Tile = /*@__PURE__*/ proxyCustomElement(class Tile extends HTMLElement {
@@ -19,17 +19,17 @@ const Tile = /*@__PURE__*/ proxyCustomElement(class Tile extends HTMLElement {
19
19
  this.hasFooterSlot = !!this.hostElement.querySelector('[slot="footer"]');
20
20
  }
21
21
  render() {
22
- return (h(Host, { key: '16fa86cdf2448b3335401be00cba0284fd166959', class: {
22
+ return (h(Host, { key: '99be127d35b63162843a0b2f25e0f15578aecd5f', class: {
23
23
  'tile-small': this.size === 'small',
24
24
  'tile-medium': this.size === 'medium',
25
25
  'tile-big': this.size === 'big',
26
- } }, h("div", { key: '0aaf6e763e1bd75f919d1067208af8a33be06937', class: {
26
+ } }, h("div", { key: 'ba0171dcaac9a77cbb4ef2cb54a0084ec2cebbce', class: {
27
27
  'tile-header': true,
28
28
  'has-content': this.hasHeaderSlot,
29
- } }, h("slot", { key: '70178ba49417bf674cc8798f6824aa37864668f7', name: "header", onSlotchange: () => this.handleHeaderSlotChange() })), h("div", { key: '823a4907cbe143ef6586a5482f31c8729644bf76', class: "tile-subheader" }, h("slot", { key: '6e240f390b24fec6630bed00539479d11d89b096', name: "subheader" })), h("div", { key: '7d83cbe84804423f654e4f9dd0fe3f2ca261a3c4', class: "tile-content" }, h("slot", { key: '100276ea9333c7dd7d183dbd7fb2651475b397cf' })), h("div", { key: 'f73dcff2a9730339deed5c82c0978ff4122dd6a5', class: {
29
+ } }, h("slot", { key: '715aab5ae29bbe4bb2ba271a99d47c11a1eba515', name: "header", onSlotchange: () => this.handleHeaderSlotChange() })), h("div", { key: '463ea9e3984c2986137ffd6fa908b9ac368ba927', class: "tile-subheader" }, h("slot", { key: 'a2578417965e67215653af75da65a7940b59f57b', name: "subheader" })), h("div", { key: '90a11faeff5467bb07ce3c08d48f276b02c9a4df', class: "tile-content" }, h("slot", { key: 'f7b49863a870f1a4cd5ff0803eb87f94e2153215' })), h("div", { key: '55518e3cf714cf102a062c7f4c521589807df795', class: {
30
30
  'tile-footer': true,
31
31
  'has-content': this.hasFooterSlot,
32
- } }, h("slot", { key: 'a550b2cc798c1bc8a57adea6c6fcd4863ad9ac57', name: "footer", onSlotchange: () => this.handleFooterSlotChange() }))));
32
+ } }, h("slot", { key: 'd134bcc6c75fee65104641da784b9f98d9f761d2', name: "footer", onSlotchange: () => this.handleFooterSlotChange() }))));
33
33
  }
34
34
  get hostElement() { return this; }
35
35
  static get style() { return IxTileStyle0; }
@@ -1 +1 @@
1
- {"file":"ix-tile.js","mappings":";;AAAA,MAAM,OAAO,GAAG,2yDAA2yD,CAAC;AAC5zD,qBAAe,OAAO;;MCeT,IAAI;;;;;oBAM4B,QAAQ;6BAEjB,KAAK;6BACL,KAAK;;IAEvC,sBAAsB;QACpB,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;KAC1E;IAED,sBAAsB;QACpB,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;KAC1E;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,YAAY,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;gBACnC,aAAa,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;gBACrC,UAAU,EAAE,IAAI,CAAC,IAAI,KAAK,KAAK;aAChC,IAED,4DACE,KAAK,EAAE;gBACL,aAAa,EAAE,IAAI;gBACnB,aAAa,EAAE,IAAI,CAAC,aAAa;aAClC,IAED,6DACE,IAAI,EAAC,QAAQ,EACb,YAAY,EAAE,MAAM,IAAI,CAAC,sBAAsB,EAAE,GAC3C,CACJ,EACN,4DAAK,KAAK,EAAC,gBAAgB,IACzB,6DAAM,IAAI,EAAC,WAAW,GAAQ,CAC1B,EACN,4DAAK,KAAK,EAAC,cAAc,IACvB,8DAAa,CACT,EACN,4DACE,KAAK,EAAE;gBACL,aAAa,EAAE,IAAI;gBACnB,aAAa,EAAE,IAAI,CAAC,aAAa;aAClC,IAED,6DACE,IAAI,EAAC,QAAQ,EACb,YAAY,EAAE,MAAM,IAAI,CAAC,sBAAsB,EAAE,GAC3C,CACJ,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/tile/tile.scss?tag=ix-tile&encapsulation=shadow","src/components/tile/tile.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'common-variables';\n@import 'mixins/text-truncation';\n@import 'mixins/shadow-dom/component';\n@import 'legacy/mixins/fonts';\n\n@mixin set-height($height) {\n height: $height;\n min-height: $height;\n max-height: $height;\n}\n\n$heightSmall: 2.5rem;\n$heightMedium: 5rem;\n$heightBig: 10rem;\n$width: 11.937rem;\n\n:host {\n @include ix-component;\n\n min-width: $width;\n max-width: $width;\n width: $width;\n\n display: flex;\n flex-direction: column;\n border: 1px solid var(--theme-tile--border);\n border-radius: var(--theme-tile--border-radius);\n\n background-color: var(--theme-color-2);\n color: var(--theme-color-std-text);\n box-shadow: var(--theme-tile--box-shadow);\n\n // @each $key, $value in $color-map-status {\n // &.tile-#{$key} {\n // background-color: #{$value};\n // color: automatic-text-color($value, 65);\n // }\n // }\n\n .tile-header {\n display: flex;\n align-items: center;\n\n @include text-l-title;\n }\n\n .tile-header,\n .tile-subheader,\n .tile-content,\n .tile-footer {\n padding: 0 $default-space;\n }\n\n .tile-header,\n .tile-content {\n flex-grow: 1;\n }\n\n .tile-header.has-content {\n display: flex;\n height: $large-control-height;\n max-height: $large-control-height;\n padding-inline-end: $small-space;\n }\n\n .tile-subheader {\n color: var(--theme-btn-invisible-secondary--color);\n flex-grow: 0;\n }\n\n .tile-footer.has-content {\n border-block-start: 1px solid var(--theme-color-1);\n height: $large-control-height;\n }\n}\n\n:host(.tile-small) {\n @include set-height($heightSmall);\n}\n\n:host(.tile-medium) {\n @include set-height($heightMedium);\n}\n\n:host(.tile-big) {\n @include set-height($heightBig);\n}\n\n:host(:active),\n:host(:focus-visible),\n:host(:visited) {\n outline: none;\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Component, Element, h, Host, Prop, State } from '@stencil/core';\n\n@Component({\n tag: 'ix-tile',\n styleUrl: 'tile.scss',\n shadow: true,\n})\nexport class Tile {\n @Element() hostElement: HTMLIxTileElement;\n\n /**\n * Size of the tile - one of 'small', 'medium' or 'large'\n */\n @Prop() size: 'small' | 'medium' | 'big' = 'medium';\n\n @State() hasHeaderSlot: boolean = false;\n @State() hasFooterSlot: boolean = false;\n\n handleHeaderSlotChange() {\n this.hasHeaderSlot = !!this.hostElement.querySelector('[slot=\"header\"]');\n }\n\n handleFooterSlotChange() {\n this.hasFooterSlot = !!this.hostElement.querySelector('[slot=\"footer\"]');\n }\n\n render() {\n return (\n <Host\n class={{\n 'tile-small': this.size === 'small',\n 'tile-medium': this.size === 'medium',\n 'tile-big': this.size === 'big',\n }}\n >\n <div\n class={{\n 'tile-header': true,\n 'has-content': this.hasHeaderSlot,\n }}\n >\n <slot\n name=\"header\"\n onSlotchange={() => this.handleHeaderSlotChange()}\n ></slot>\n </div>\n <div class=\"tile-subheader\">\n <slot name=\"subheader\"></slot>\n </div>\n <div class=\"tile-content\">\n <slot></slot>\n </div>\n <div\n class={{\n 'tile-footer': true,\n 'has-content': this.hasFooterSlot,\n }}\n >\n <slot\n name=\"footer\"\n onSlotchange={() => this.handleFooterSlotChange()}\n ></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ix-tile.js","mappings":";;AAAA,MAAM,OAAO,GAAG,u8DAAu8D,CAAC;AACx9D,qBAAe,OAAO;;MCeT,IAAI;;;;;oBAM4B,QAAQ;6BAEjB,KAAK;6BACL,KAAK;;IAEvC,sBAAsB;QACpB,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;KAC1E;IAED,sBAAsB;QACpB,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;KAC1E;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,YAAY,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;gBACnC,aAAa,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;gBACrC,UAAU,EAAE,IAAI,CAAC,IAAI,KAAK,KAAK;aAChC,IAED,4DACE,KAAK,EAAE;gBACL,aAAa,EAAE,IAAI;gBACnB,aAAa,EAAE,IAAI,CAAC,aAAa;aAClC,IAED,6DACE,IAAI,EAAC,QAAQ,EACb,YAAY,EAAE,MAAM,IAAI,CAAC,sBAAsB,EAAE,GAC3C,CACJ,EACN,4DAAK,KAAK,EAAC,gBAAgB,IACzB,6DAAM,IAAI,EAAC,WAAW,GAAQ,CAC1B,EACN,4DAAK,KAAK,EAAC,cAAc,IACvB,8DAAa,CACT,EACN,4DACE,KAAK,EAAE;gBACL,aAAa,EAAE,IAAI;gBACnB,aAAa,EAAE,IAAI,CAAC,aAAa;aAClC,IAED,6DACE,IAAI,EAAC,QAAQ,EACb,YAAY,EAAE,MAAM,IAAI,CAAC,sBAAsB,EAAE,GAC3C,CACJ,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/tile/tile.scss?tag=ix-tile&encapsulation=shadow","src/components/tile/tile.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'common-variables';\n@import 'mixins/text-truncation';\n@import 'mixins/shadow-dom/component';\n@import 'legacy/mixins/fonts';\n\n@mixin set-height($height) {\n height: $height;\n min-height: $height;\n max-height: $height;\n}\n\n$heightSmall: 2.5rem;\n$heightMedium: 5rem;\n$heightBig: 10rem;\n$width: 11.937rem;\n\n:host {\n @include ix-component;\n\n min-width: $width;\n max-width: $width;\n width: $width;\n\n display: flex;\n flex-direction: column;\n border: 1px solid var(--theme-tile--border);\n border-radius: var(--theme-tile--border-radius);\n\n background-color: var(--theme-color-2);\n color: var(--theme-color-std-text);\n box-shadow: var(--theme-tile--box-shadow);\n\n // @each $key, $value in $color-map-status {\n // &.tile-#{$key} {\n // background-color: #{$value};\n // color: automatic-text-color($value, 65);\n // }\n // }\n\n .tile-header {\n display: flex;\n align-items: center;\n\n @include text-l-title;\n }\n\n .tile-header,\n .tile-subheader,\n .tile-content,\n .tile-footer {\n padding: 0 $default-space;\n }\n\n .tile-header,\n .tile-content {\n flex-grow: 1;\n }\n\n .tile-header.has-content {\n display: flex;\n height: $large-control-height;\n max-height: $large-control-height;\n padding-inline-end: $small-space;\n }\n\n .tile-subheader {\n color: var(--theme-btn-invisible-secondary--color);\n flex-grow: 0;\n }\n\n .tile-footer.has-content {\n border-block-start: 1px solid var(--theme-color-1);\n height: $large-control-height;\n }\n}\n\n:host(.tile-small) {\n @include set-height($heightSmall);\n}\n\n:host(.tile-medium) {\n @include set-height($heightMedium);\n}\n\n:host(.tile-big) {\n @include set-height($heightBig);\n}\n\n:host(:active),\n:host(:focus-visible),\n:host(:visited) {\n outline: none;\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Component, Element, h, Host, Prop, State } from '@stencil/core';\n\n@Component({\n tag: 'ix-tile',\n styleUrl: 'tile.scss',\n shadow: true,\n})\nexport class Tile {\n @Element() hostElement: HTMLIxTileElement;\n\n /**\n * Size of the tile - one of 'small', 'medium' or 'large'\n */\n @Prop() size: 'small' | 'medium' | 'big' = 'medium';\n\n @State() hasHeaderSlot: boolean = false;\n @State() hasFooterSlot: boolean = false;\n\n handleHeaderSlotChange() {\n this.hasHeaderSlot = !!this.hostElement.querySelector('[slot=\"header\"]');\n }\n\n handleFooterSlotChange() {\n this.hasFooterSlot = !!this.hostElement.querySelector('[slot=\"footer\"]');\n }\n\n render() {\n return (\n <Host\n class={{\n 'tile-small': this.size === 'small',\n 'tile-medium': this.size === 'medium',\n 'tile-big': this.size === 'big',\n }}\n >\n <div\n class={{\n 'tile-header': true,\n 'has-content': this.hasHeaderSlot,\n }}\n >\n <slot\n name=\"header\"\n onSlotchange={() => this.handleHeaderSlotChange()}\n ></slot>\n </div>\n <div class=\"tile-subheader\">\n <slot name=\"subheader\"></slot>\n </div>\n <div class=\"tile-content\">\n <slot></slot>\n </div>\n <div\n class={{\n 'tile-footer': true,\n 'has-content': this.hasFooterSlot,\n }}\n >\n <slot\n name=\"footer\"\n onSlotchange={() => this.handleFooterSlotChange()}\n ></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -4,7 +4,7 @@ import { d as defineCustomElement$4 } from './icon-button.js';
4
4
  import { d as defineCustomElement$3 } from './spinner.js';
5
5
  import { d as defineCustomElement$2 } from './toast.js';
6
6
 
7
- const toastContainerCss = ":host{}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}#toast-container>:not(:last-child){margin-block-end:1rem}.toast-container{display:block;position:fixed}.toast-container--top-right{right:1rem;top:2rem}.toast-container--bottom-right{right:1rem;bottom:2rem}";
7
+ const toastContainerCss = ":host{}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}#toast-container>:not(:last-child){margin-block-end:1rem}.toast-container{display:block;position:fixed}.toast-container--top-right{right:1rem;top:2rem}.toast-container--bottom-right{right:1rem;bottom:2rem}";
8
8
  const IxToastContainerStyle0 = toastContainerCss;
9
9
 
10
10
  const ToastContainer = /*@__PURE__*/ proxyCustomElement(class ToastContainer extends HTMLElement {
@@ -79,10 +79,10 @@ const ToastContainer = /*@__PURE__*/ proxyCustomElement(class ToastContainer ext
79
79
  };
80
80
  }
81
81
  render() {
82
- return (h(Host, { key: '22ee0d6985d0b35a3d623dfc318c22cb0a2720ae', class: {
82
+ return (h(Host, { key: '7ed12499736b25361b54781a914704624361f413', class: {
83
83
  'toast-container--bottom-right': this.position === 'bottom-right',
84
84
  'toast-container--top-right': this.position === 'top-right',
85
- } }, h("slot", { key: '9cfd7c6607fde4dd11f6b4c026f017b31acba8d9' })));
85
+ } }, h("slot", { key: '48a789d536cb007c2dc31d15615600cd0b51111d' })));
86
86
  }
87
87
  static get watchers() { return {
88
88
  "position": ["onPositionChange"]
@@ -1 +1 @@
1
- {"file":"ix-toast-container.js","mappings":"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","names":[],"sources":["src/components/toast/styles/toast-container.scss?tag=ix-toast-container&encapsulation=shadow","src/components/toast/toast-container.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'common-variables';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n}\n\n#toast-container {\n > :not(:last-child) {\n margin-block-end: $default-space;\n }\n}\n\n.toast-container {\n display: block;\n position: fixed;\n}\n\n.toast-container--top-right {\n right: 1rem;\n top: 2rem;\n}\n\n.toast-container--bottom-right {\n right: 1rem;\n bottom: 2rem;\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Component, h, Host, Method, Prop, Watch } from '@stencil/core';\nimport { TypedEvent } from '../utils/typed-event';\nimport { ToastConfig } from './toast-utils';\n\nexport type ShowToastResult = {\n onClose: TypedEvent<any | undefined>;\n close: (result?: any) => void;\n};\n\n@Component({\n tag: 'ix-toast-container',\n styleUrl: './styles/toast-container.scss',\n shadow: true,\n})\nexport class ToastContainer {\n /**\n */\n @Prop() containerId = 'toast-container';\n\n /**\n */\n @Prop() containerClass = 'toast-container';\n\n /**\n */\n @Prop() position: 'bottom-right' | 'top-right' = 'bottom-right';\n\n private readonly PREFIX_POSITION_CLASS = 'toast-container--';\n\n get hostContainer() {\n return new Promise<HTMLElement>((resolve) => {\n const interval = setInterval(() => {\n const containerElement = document.getElementById(this.containerId);\n if (containerElement) {\n clearInterval(interval);\n resolve(containerElement);\n }\n });\n });\n }\n\n componentDidLoad() {\n if (!document.getElementById(this.containerId)) {\n const toastContainer = document.createElement('div');\n toastContainer.id = this.containerId;\n toastContainer.classList.add(this.containerClass);\n toastContainer.classList.add(\n `${this.PREFIX_POSITION_CLASS}${this.position}`\n );\n document.body.appendChild(toastContainer);\n }\n }\n\n @Watch('position')\n onPositionChange(newPosition: string, oldPosition: string) {\n const toastContainer = document.getElementById(this.containerId);\n toastContainer.classList.remove(\n `${this.PREFIX_POSITION_CLASS}${oldPosition}`\n );\n toastContainer.classList.add(`${this.PREFIX_POSITION_CLASS}${newPosition}`);\n }\n\n /**\n * Display a toast message\n * @param config\n */\n @Method()\n async showToast(config: ToastConfig): Promise<ShowToastResult> {\n const toast = document.createElement('ix-toast');\n const onClose = new TypedEvent<any | undefined>();\n\n function removeToast(result?: any) {\n toast.remove();\n onClose.emit(result);\n }\n\n toast.toastTitle = config.title;\n toast.type = config.type;\n toast.autoClose = config.autoClose ?? true;\n toast.autoCloseDelay = config.autoCloseDelay ?? 5000;\n toast.icon = config.icon;\n toast.iconColor = config.iconColor;\n toast.addEventListener(\n 'closeToast',\n (event: CustomEvent<any | undefined>) => {\n const { detail } = event;\n removeToast(detail);\n }\n );\n\n if (typeof config.message === 'string') {\n toast.innerText = config.message;\n } else {\n toast.appendChild(config.message);\n }\n\n (await this.hostContainer).appendChild(toast);\n\n return {\n onClose,\n close: (result?: any) => {\n removeToast(result);\n },\n };\n }\n\n render() {\n return (\n <Host\n class={{\n 'toast-container--bottom-right': this.position === 'bottom-right',\n 'toast-container--top-right': this.position === 'top-right',\n }}\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ix-toast-container.js","mappings":";;;;;;AAAA,MAAM,iBAAiB,GAAG,88BAA88B,CAAC;AACz+B,+BAAe,iBAAiB;;MCsBnB,cAAc;;;;;QAaR,0BAAqB,GAAG,mBAAmB,CAAC;2BAVvC,iBAAiB;8BAId,iBAAiB;wBAIO,cAAc;;IAI/D,IAAI,aAAa;QACf,OAAO,IAAI,OAAO,CAAc,CAAC,OAAO;YACtC,MAAM,QAAQ,GAAG,WAAW,CAAC;gBAC3B,MAAM,gBAAgB,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;gBACnE,IAAI,gBAAgB,EAAE;oBACpB,aAAa,CAAC,QAAQ,CAAC,CAAC;oBACxB,OAAO,CAAC,gBAAgB,CAAC,CAAC;iBAC3B;aACF,CAAC,CAAC;SACJ,CAAC,CAAC;KACJ;IAED,gBAAgB;QACd,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE;YAC9C,MAAM,cAAc,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;YACrD,cAAc,CAAC,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC;YACrC,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YAClD,cAAc,CAAC,SAAS,CAAC,GAAG,CAC1B,GAAG,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,QAAQ,EAAE,CAChD,CAAC;YACF,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;SAC3C;KACF;IAGD,gBAAgB,CAAC,WAAmB,EAAE,WAAmB;QACvD,MAAM,cAAc,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACjE,cAAc,CAAC,SAAS,CAAC,MAAM,CAC7B,GAAG,IAAI,CAAC,qBAAqB,GAAG,WAAW,EAAE,CAC9C,CAAC;QACF,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,qBAAqB,GAAG,WAAW,EAAE,CAAC,CAAC;KAC7E;;;;;IAOD,MAAM,SAAS,CAAC,MAAmB;;QACjC,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QACjD,MAAM,OAAO,GAAG,IAAI,UAAU,EAAmB,CAAC;QAElD,SAAS,WAAW,CAAC,MAAY;YAC/B,KAAK,CAAC,MAAM,EAAE,CAAC;YACf,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACtB;QAED,KAAK,CAAC,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC;QAChC,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACzB,KAAK,CAAC,SAAS,GAAG,MAAA,MAAM,CAAC,SAAS,mCAAI,IAAI,CAAC;QAC3C,KAAK,CAAC,cAAc,GAAG,MAAA,MAAM,CAAC,cAAc,mCAAI,IAAI,CAAC;QACrD,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACzB,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;QACnC,KAAK,CAAC,gBAAgB,CACpB,YAAY,EACZ,CAAC,KAAmC;YAClC,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;YACzB,WAAW,CAAC,MAAM,CAAC,CAAC;SACrB,CACF,CAAC;QAEF,IAAI,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ,EAAE;YACtC,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC;SAClC;aAAM;YACL,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;SACnC;QAED,CAAC,MAAM,IAAI,CAAC,aAAa,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;QAE9C,OAAO;YACL,OAAO;YACP,KAAK,EAAE,CAAC,MAAY;gBAClB,WAAW,CAAC,MAAM,CAAC,CAAC;aACrB;SACF,CAAC;KACH;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,+BAA+B,EAAE,IAAI,CAAC,QAAQ,KAAK,cAAc;gBACjE,4BAA4B,EAAE,IAAI,CAAC,QAAQ,KAAK,WAAW;aAC5D,IAED,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/toast/styles/toast-container.scss?tag=ix-toast-container&encapsulation=shadow","src/components/toast/toast-container.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'common-variables';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n}\n\n#toast-container {\n > :not(:last-child) {\n margin-block-end: $default-space;\n }\n}\n\n.toast-container {\n display: block;\n position: fixed;\n}\n\n.toast-container--top-right {\n right: 1rem;\n top: 2rem;\n}\n\n.toast-container--bottom-right {\n right: 1rem;\n bottom: 2rem;\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Component, h, Host, Method, Prop, Watch } from '@stencil/core';\nimport { TypedEvent } from '../utils/typed-event';\nimport { ToastConfig } from './toast-utils';\n\nexport type ShowToastResult = {\n onClose: TypedEvent<any | undefined>;\n close: (result?: any) => void;\n};\n\n@Component({\n tag: 'ix-toast-container',\n styleUrl: './styles/toast-container.scss',\n shadow: true,\n})\nexport class ToastContainer {\n /**\n */\n @Prop() containerId = 'toast-container';\n\n /**\n */\n @Prop() containerClass = 'toast-container';\n\n /**\n */\n @Prop() position: 'bottom-right' | 'top-right' = 'bottom-right';\n\n private readonly PREFIX_POSITION_CLASS = 'toast-container--';\n\n get hostContainer() {\n return new Promise<HTMLElement>((resolve) => {\n const interval = setInterval(() => {\n const containerElement = document.getElementById(this.containerId);\n if (containerElement) {\n clearInterval(interval);\n resolve(containerElement);\n }\n });\n });\n }\n\n componentDidLoad() {\n if (!document.getElementById(this.containerId)) {\n const toastContainer = document.createElement('div');\n toastContainer.id = this.containerId;\n toastContainer.classList.add(this.containerClass);\n toastContainer.classList.add(\n `${this.PREFIX_POSITION_CLASS}${this.position}`\n );\n document.body.appendChild(toastContainer);\n }\n }\n\n @Watch('position')\n onPositionChange(newPosition: string, oldPosition: string) {\n const toastContainer = document.getElementById(this.containerId);\n toastContainer.classList.remove(\n `${this.PREFIX_POSITION_CLASS}${oldPosition}`\n );\n toastContainer.classList.add(`${this.PREFIX_POSITION_CLASS}${newPosition}`);\n }\n\n /**\n * Display a toast message\n * @param config\n */\n @Method()\n async showToast(config: ToastConfig): Promise<ShowToastResult> {\n const toast = document.createElement('ix-toast');\n const onClose = new TypedEvent<any | undefined>();\n\n function removeToast(result?: any) {\n toast.remove();\n onClose.emit(result);\n }\n\n toast.toastTitle = config.title;\n toast.type = config.type;\n toast.autoClose = config.autoClose ?? true;\n toast.autoCloseDelay = config.autoCloseDelay ?? 5000;\n toast.icon = config.icon;\n toast.iconColor = config.iconColor;\n toast.addEventListener(\n 'closeToast',\n (event: CustomEvent<any | undefined>) => {\n const { detail } = event;\n removeToast(detail);\n }\n );\n\n if (typeof config.message === 'string') {\n toast.innerText = config.message;\n } else {\n toast.appendChild(config.message);\n }\n\n (await this.hostContainer).appendChild(toast);\n\n return {\n onClose,\n close: (result?: any) => {\n removeToast(result);\n },\n };\n }\n\n render() {\n return (\n <Host\n class={{\n 'toast-container--bottom-right': this.position === 'bottom-right',\n 'toast-container--top-right': this.position === 'top-right',\n }}\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -3,7 +3,7 @@ import { B as BaseButton } from './base-button.js';
3
3
  import { a as a11yBoolean } from './a11y.js';
4
4
  import { d as defineCustomElement$2 } from './spinner.js';
5
5
 
6
- const toggleButtonCss = ".btn{display:inline-flex;align-items:center;justify-content:center;height:2rem;font-size:0.875rem;font-weight:700;transition:var(--theme-default-time);padding:0 0.5rem;min-width:5rem;gap:0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn .glyph{margin-right:0.25rem;font-weight:400}.btn:focus-visible,.btn.focus{box-shadow:none}.btn-primary{border-radius:var(--theme-btn--border-radius)}.btn-primary,.btn-primary.focus,.btn-primary:focus-visible{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}.btn-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-primary.hover,.btn-primary: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)}.btn-primary.selected.hover,.btn-primary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-primary:not(:disabled):not(.disabled):active,.btn-primary:not(:disabled):not(.disabled).active,.show>.btn-primary.dropdown-toggle{border-color:var(--theme-btn-primary--border-color--active);background-color:var(--theme-btn-primary--background--active);color:var(--theme-btn-primary--color--active)}.btn-primary.selected:not(:disabled):not(.disabled):active,.btn-primary.selected:not(:disabled):not(.disabled).active,.show>.btn-primary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-primary.disabled,.btn-primary:disabled{pointer-events:none;cursor:initial;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)}.btn-outline-primary{border-radius:var(--theme-btn--border-radius)}.btn-outline-primary,.btn-outline-primary.focus,.btn-outline-primary:focus-visible{background-color:var(--theme-btn-outline-primary--background);color:var(--theme-btn-outline-primary--color);--ix-button-color:var(--theme-btn-outline-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-outline-primary--border-color);border-style:solid}.btn-outline-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-outline-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-outline-primary.hover,.btn-outline-primary:hover{border-color:var(--theme-btn-outline-primary--border-color--hover);background-color:var(--theme-btn-outline-primary--background--hover);color:var(--theme-btn-outline-primary--color--hover)}.btn-outline-primary.selected.hover,.btn-outline-primary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-outline-primary:not(:disabled):not(.disabled):active,.btn-outline-primary:not(:disabled):not(.disabled).active,.show>.btn-outline-primary.dropdown-toggle{border-color:var(--theme-btn-outline-primary--border-color--active);background-color:var(--theme-btn-outline-primary--background--active);color:var(--theme-btn-outline-primary--color--active)}.btn-outline-primary.selected:not(:disabled):not(.disabled):active,.btn-outline-primary.selected:not(:disabled):not(.disabled).active,.show>.btn-outline-primary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-outline-primary.disabled,.btn-outline-primary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-outline-primary--border-color--disabled);background-color:var(--theme-btn-outline-primary--background--disabled);color:var(--theme-btn-outline-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-outline-primary--color--disabled)}.btn-invisible-primary{border-radius:var(--theme-btn--border-radius);--bs-btn-border-width:0px;--bs-btn-active-border-color:none}.btn-invisible-primary,.btn-invisible-primary.focus,.btn-invisible-primary:focus-visible{background-color:var(--theme-btn-invisible-primary--background);color:var(--theme-btn-invisible-primary--color);--ix-button-color:var(--theme-btn-invisible-primary--color);border-color:transparent}.btn-invisible-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-invisible-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-invisible-primary.hover,.btn-invisible-primary:hover{background-color:var(--theme-btn-invisible-primary--background--hover);color:var(--theme-btn-invisible-primary--color--hover)}.btn-invisible-primary.selected.hover,.btn-invisible-primary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-invisible-primary:not(:disabled):not(.disabled):active,.btn-invisible-primary:not(:disabled):not(.disabled).active,.show>.btn-invisible-primary.dropdown-toggle{background-color:var(--theme-btn-invisible-primary--background--active);color:var(--theme-btn-invisible-primary--color--active)}.btn-invisible-primary.selected:not(:disabled):not(.disabled):active,.btn-invisible-primary.selected:not(:disabled):not(.disabled).active,.show>.btn-invisible-primary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-invisible-primary.disabled,.btn-invisible-primary:disabled{pointer-events:none;cursor:initial;background-color:var(--theme-btn-invisible-primary--background--disabled);color:var(--theme-btn-invisible-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-invisible-primary--color--disabled)}.btn-secondary{border-radius:var(--theme-btn--border-radius)}.btn-secondary,.btn-secondary.focus,.btn-secondary:focus-visible{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}.btn-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-secondary.hover,.btn-secondary: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)}.btn-secondary.selected.hover,.btn-secondary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-secondary:not(:disabled):not(.disabled):active,.btn-secondary:not(:disabled):not(.disabled).active,.show>.btn-secondary.dropdown-toggle{border-color:var(--theme-btn-secondary--border-color--active);background-color:var(--theme-btn-secondary--background--active);color:var(--theme-btn-secondary--color--active)}.btn-secondary.selected:not(:disabled):not(.disabled):active,.btn-secondary.selected:not(:disabled):not(.disabled).active,.show>.btn-secondary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-secondary.disabled,.btn-secondary:disabled{pointer-events:none;cursor:initial;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)}.btn-outline-secondary{border-radius:var(--theme-btn--border-radius)}.btn-outline-secondary,.btn-outline-secondary.focus,.btn-outline-secondary:focus-visible{background-color:var(--theme-btn-outline-secondary--background);color:var(--theme-btn-outline-secondary--color);--ix-button-color:var(--theme-btn-outline-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-outline-secondary--border-color);border-style:solid}.btn-outline-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-outline-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-outline-secondary.hover,.btn-outline-secondary:hover{border-color:var(--theme-btn-outline-secondary--border-color--hover);background-color:var(--theme-btn-outline-secondary--background--hover);color:var(--theme-btn-outline-secondary--color--hover)}.btn-outline-secondary.selected.hover,.btn-outline-secondary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-outline-secondary:not(:disabled):not(.disabled):active,.btn-outline-secondary:not(:disabled):not(.disabled).active,.show>.btn-outline-secondary.dropdown-toggle{border-color:var(--theme-btn-outline-secondary--border-color--active);background-color:var(--theme-btn-outline-secondary--background--active);color:var(--theme-btn-outline-secondary--color--active)}.btn-outline-secondary.selected:not(:disabled):not(.disabled):active,.btn-outline-secondary.selected:not(:disabled):not(.disabled).active,.show>.btn-outline-secondary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-outline-secondary--border-color--disabled);background-color:var(--theme-btn-outline-secondary--background--disabled);color:var(--theme-btn-outline-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-outline-secondary--color--disabled)}.btn-invisible-secondary{border-radius:var(--theme-btn--border-radius);--bs-btn-border-width:0px;--bs-btn-active-border-color:none}.btn-invisible-secondary,.btn-invisible-secondary.focus,.btn-invisible-secondary:focus-visible{background-color:var(--theme-btn-invisible-secondary--background);color:var(--theme-btn-invisible-secondary--color);--ix-button-color:var(--theme-btn-invisible-secondary--color);border-color:transparent}.btn-invisible-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-invisible-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-invisible-secondary.hover,.btn-invisible-secondary:hover{background-color:var(--theme-btn-invisible-secondary--background--hover);color:var(--theme-btn-invisible-secondary--color--hover)}.btn-invisible-secondary.selected.hover,.btn-invisible-secondary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-invisible-secondary:not(:disabled):not(.disabled):active,.btn-invisible-secondary:not(:disabled):not(.disabled).active,.show>.btn-invisible-secondary.dropdown-toggle{background-color:var(--theme-btn-invisible-secondary--background--active);color:var(--theme-btn-invisible-secondary--color--active)}.btn-invisible-secondary.selected:not(:disabled):not(.disabled):active,.btn-invisible-secondary.selected:not(:disabled):not(.disabled).active,.show>.btn-invisible-secondary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-invisible-secondary.disabled,.btn-invisible-secondary:disabled{pointer-events:none;cursor:initial;background-color:var(--theme-btn-invisible-secondary--background--disabled);color:var(--theme-btn-invisible-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-invisible-secondary--color--disabled)}.btn-oval,.btn-icon{min-width:2rem;width:2rem}.btn-oval .glyph,.btn-icon .glyph{margin-right:0}.btn-oval{border-radius:6.25rem;width:2rem}.btn-icon-xs,.btn-icon-12{height:1rem;width:1rem;min-width:1rem;min-height:1rem}.btn-icon-s,.btn-icon-16{height:1.5rem;width:1.5rem;min-width:1.5rem;min-height:1.5rem}.btn-icon-32{height:2rem;width:2rem;min-width:2rem;min-height:2rem}:host{display:inline-block;width:auto;height:2rem;vertical-align:middle}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .btn{width:100%;height:100%}:host button:not(:disabled){cursor:pointer}:host(.disabled){pointer-events:none}";
6
+ const toggleButtonCss = ".btn{display:inline-flex;align-items:center;justify-content:center;height:2rem;font-size:0.875rem;font-weight:700;transition:var(--theme-default-time);padding:0 0.5rem;min-width:5rem;gap:0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn .glyph{margin-right:0.25rem;font-weight:400}.btn:focus-visible,.btn.focus{box-shadow:none}.btn-primary{border-radius:var(--theme-btn--border-radius)}.btn-primary,.btn-primary.focus,.btn-primary:focus-visible{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}.btn-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-primary.hover,.btn-primary: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)}.btn-primary.selected.hover,.btn-primary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-primary:not(:disabled):not(.disabled):active,.btn-primary:not(:disabled):not(.disabled).active,.show>.btn-primary.dropdown-toggle{border-color:var(--theme-btn-primary--border-color--active);background-color:var(--theme-btn-primary--background--active);color:var(--theme-btn-primary--color--active)}.btn-primary.selected:not(:disabled):not(.disabled):active,.btn-primary.selected:not(:disabled):not(.disabled).active,.show>.btn-primary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-primary.disabled,.btn-primary:disabled{pointer-events:none;cursor:initial;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)}.btn-outline-primary{border-radius:var(--theme-btn--border-radius)}.btn-outline-primary,.btn-outline-primary.focus,.btn-outline-primary:focus-visible{background-color:var(--theme-btn-outline-primary--background);color:var(--theme-btn-outline-primary--color);--ix-button-color:var(--theme-btn-outline-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-outline-primary--border-color);border-style:solid}.btn-outline-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-outline-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-outline-primary.hover,.btn-outline-primary:hover{border-color:var(--theme-btn-outline-primary--border-color--hover);background-color:var(--theme-btn-outline-primary--background--hover);color:var(--theme-btn-outline-primary--color--hover)}.btn-outline-primary.selected.hover,.btn-outline-primary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-outline-primary:not(:disabled):not(.disabled):active,.btn-outline-primary:not(:disabled):not(.disabled).active,.show>.btn-outline-primary.dropdown-toggle{border-color:var(--theme-btn-outline-primary--border-color--active);background-color:var(--theme-btn-outline-primary--background--active);color:var(--theme-btn-outline-primary--color--active)}.btn-outline-primary.selected:not(:disabled):not(.disabled):active,.btn-outline-primary.selected:not(:disabled):not(.disabled).active,.show>.btn-outline-primary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-outline-primary.disabled,.btn-outline-primary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-outline-primary--border-color--disabled);background-color:var(--theme-btn-outline-primary--background--disabled);color:var(--theme-btn-outline-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-outline-primary--color--disabled)}.btn-invisible-primary{border-radius:var(--theme-btn--border-radius);--bs-btn-border-width:0px;--bs-btn-active-border-color:none}.btn-invisible-primary,.btn-invisible-primary.focus,.btn-invisible-primary:focus-visible{background-color:var(--theme-btn-invisible-primary--background);color:var(--theme-btn-invisible-primary--color);--ix-button-color:var(--theme-btn-invisible-primary--color);border-color:transparent}.btn-invisible-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-invisible-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-invisible-primary.hover,.btn-invisible-primary:hover{background-color:var(--theme-btn-invisible-primary--background--hover);color:var(--theme-btn-invisible-primary--color--hover)}.btn-invisible-primary.selected.hover,.btn-invisible-primary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-invisible-primary:not(:disabled):not(.disabled):active,.btn-invisible-primary:not(:disabled):not(.disabled).active,.show>.btn-invisible-primary.dropdown-toggle{background-color:var(--theme-btn-invisible-primary--background--active);color:var(--theme-btn-invisible-primary--color--active)}.btn-invisible-primary.selected:not(:disabled):not(.disabled):active,.btn-invisible-primary.selected:not(:disabled):not(.disabled).active,.show>.btn-invisible-primary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-invisible-primary.disabled,.btn-invisible-primary:disabled{pointer-events:none;cursor:initial;background-color:var(--theme-btn-invisible-primary--background--disabled);color:var(--theme-btn-invisible-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-invisible-primary--color--disabled)}.btn-secondary{border-radius:var(--theme-btn--border-radius)}.btn-secondary,.btn-secondary.focus,.btn-secondary:focus-visible{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}.btn-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-secondary.hover,.btn-secondary: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)}.btn-secondary.selected.hover,.btn-secondary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-secondary:not(:disabled):not(.disabled):active,.btn-secondary:not(:disabled):not(.disabled).active,.show>.btn-secondary.dropdown-toggle{border-color:var(--theme-btn-secondary--border-color--active);background-color:var(--theme-btn-secondary--background--active);color:var(--theme-btn-secondary--color--active)}.btn-secondary.selected:not(:disabled):not(.disabled):active,.btn-secondary.selected:not(:disabled):not(.disabled).active,.show>.btn-secondary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-secondary.disabled,.btn-secondary:disabled{pointer-events:none;cursor:initial;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)}.btn-outline-secondary{border-radius:var(--theme-btn--border-radius)}.btn-outline-secondary,.btn-outline-secondary.focus,.btn-outline-secondary:focus-visible{background-color:var(--theme-btn-outline-secondary--background);color:var(--theme-btn-outline-secondary--color);--ix-button-color:var(--theme-btn-outline-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-outline-secondary--border-color);border-style:solid}.btn-outline-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-outline-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-outline-secondary.hover,.btn-outline-secondary:hover{border-color:var(--theme-btn-outline-secondary--border-color--hover);background-color:var(--theme-btn-outline-secondary--background--hover);color:var(--theme-btn-outline-secondary--color--hover)}.btn-outline-secondary.selected.hover,.btn-outline-secondary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-outline-secondary:not(:disabled):not(.disabled):active,.btn-outline-secondary:not(:disabled):not(.disabled).active,.show>.btn-outline-secondary.dropdown-toggle{border-color:var(--theme-btn-outline-secondary--border-color--active);background-color:var(--theme-btn-outline-secondary--background--active);color:var(--theme-btn-outline-secondary--color--active)}.btn-outline-secondary.selected:not(:disabled):not(.disabled):active,.btn-outline-secondary.selected:not(:disabled):not(.disabled).active,.show>.btn-outline-secondary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-outline-secondary--border-color--disabled);background-color:var(--theme-btn-outline-secondary--background--disabled);color:var(--theme-btn-outline-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-outline-secondary--color--disabled)}.btn-invisible-secondary{border-radius:var(--theme-btn--border-radius);--bs-btn-border-width:0px;--bs-btn-active-border-color:none}.btn-invisible-secondary,.btn-invisible-secondary.focus,.btn-invisible-secondary:focus-visible{background-color:var(--theme-btn-invisible-secondary--background);color:var(--theme-btn-invisible-secondary--color);--ix-button-color:var(--theme-btn-invisible-secondary--color);border-color:transparent}.btn-invisible-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-invisible-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-invisible-secondary.hover,.btn-invisible-secondary:hover{background-color:var(--theme-btn-invisible-secondary--background--hover);color:var(--theme-btn-invisible-secondary--color--hover)}.btn-invisible-secondary.selected.hover,.btn-invisible-secondary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-invisible-secondary:not(:disabled):not(.disabled):active,.btn-invisible-secondary:not(:disabled):not(.disabled).active,.show>.btn-invisible-secondary.dropdown-toggle{background-color:var(--theme-btn-invisible-secondary--background--active);color:var(--theme-btn-invisible-secondary--color--active)}.btn-invisible-secondary.selected:not(:disabled):not(.disabled):active,.btn-invisible-secondary.selected:not(:disabled):not(.disabled).active,.show>.btn-invisible-secondary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-invisible-secondary.disabled,.btn-invisible-secondary:disabled{pointer-events:none;cursor:initial;background-color:var(--theme-btn-invisible-secondary--background--disabled);color:var(--theme-btn-invisible-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-invisible-secondary--color--disabled)}.btn-oval,.btn-icon{min-width:2rem;width:2rem}.btn-oval .glyph,.btn-icon .glyph{margin-right:0}.btn-oval{border-radius:6.25rem;width:2rem}.btn-icon-xs,.btn-icon-12{height:1rem;width:1rem;min-width:1rem;min-height:1rem}.btn-icon-s,.btn-icon-16{height:1.5rem;width:1.5rem;min-width:1.5rem;min-height:1.5rem}.btn-icon-32{height:2rem;width:2rem;min-width:2rem;min-height:2rem}:host{display:inline-block;width:auto;height:2rem;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 ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .btn{width:100%;height:100%}:host button:not(:disabled){cursor:pointer}:host(.disabled){pointer-events:none}";
7
7
  const IxToggleButtonStyle0 = toggleButtonCss;
8
8
 
9
9
  const ToggleButton = /*@__PURE__*/ proxyCustomElement(class ToggleButton extends HTMLElement {
@@ -60,9 +60,9 @@ const ToggleButton = /*@__PURE__*/ proxyCustomElement(class ToggleButton extends
60
60
  'aria-pressed': a11yBoolean(this.pressed),
61
61
  },
62
62
  };
63
- return (h(Host, { key: 'f8633f71b51df3509bc679922b432bd5c530d580', class: {
63
+ return (h(Host, { key: '03308c568a28a0c4410fe3872b1a770995627183', class: {
64
64
  disabled: this.disabled || this.loading,
65
- } }, h(BaseButton, Object.assign({ key: '005a4497d2d37783c6dcf2824c471b56515396ed' }, baseButtonProps), h("slot", { key: '9cafada091aa59fd6b447a2821f58ebd504875cd' }))));
65
+ } }, h(BaseButton, Object.assign({ key: '849c02e51091538631c0a8019fdea2b9091861b6' }, baseButtonProps), h("slot", { key: '1f4c89e2ee5e540dc3f7caae1641853d466b61b4' }))));
66
66
  }
67
67
  static get watchers() { return {
68
68
  "variant": ["onVariantChange"],
@@ -1 +1 @@
1
- {"file":"ix-toggle-button.js","mappings":";;;;;AAAA,MAAM,eAAe,GAAG,oxaAAoxa,CAAC;AAC7ya,6BAAe,eAAe;;MC6BjB,YAAY;;;;;;uBAKU,WAAW;uBAK1B,KAAK;qBAKP,KAAK;wBAKe,KAAK;uBAKd,KAAK;;uBAUd,KAAK;;IAOf,2BAA2B;QACjC,OAAO,IAAI,CAAC,OAAO,KAAK,SAAS,KAAK,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;KACnE;IAEO,gBAAgB;QACtB,OAAO,CAAC,IAAI,CACV,yHAAyH,CAC1H,CAAC;KACH;IAGD,eAAe;QACb,IAAI,IAAI,CAAC,2BAA2B,EAAE,EAAE;YACtC,IAAI,CAAC,gBAAgB,EAAE,CAAC;SACzB;KACF;IAGD,aAAa;QACX,IAAI,CAAC,eAAe,EAAE,CAAC;KACxB;IAGD,eAAe;QACb,IAAI,CAAC,eAAe,EAAE,CAAC;KACxB;IAED,gBAAgB;QACd,IAAI,CAAC,eAAe,EAAE,CAAC;KACxB;IAEO,qBAAqB;QAC3B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACxC;IAED,MAAM;QACJ,MAAM,eAAe,GAAoB;YACvC,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,IAAI,CAAC,OAAO;YACtB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO;YACvC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO,EAAE,MAAM,IAAI,CAAC,qBAAqB,EAAE;YAC3C,IAAI,EAAE,QAAQ;YACd,cAAc,EAAE;gBACd,cAAc,EAAE,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC;aAC1C;SACF,CAAC;QAEF,QACE,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO;aACxC,IAED,EAAC,UAAU,qEAAK,eAAe,GAC7B,8DAAa,CACF,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/toggle-button/toggle-button.scss?tag=ix-toggle-button&encapsulation=shadow","src/components/toggle-button/toggle-button.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'common-variables';\n@import 'legacy/components/buttons';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n display: inline-block;\n width: auto;\n height: $x-large-space;\n vertical-align: middle;\n\n .btn {\n width: 100%;\n height: 100%;\n }\n\n button:not(:disabled) {\n cursor: pointer;\n }\n}\n\n:host(.disabled) {\n pointer-events: none;\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n Watch,\n} from '@stencil/core';\nimport { BaseButton, BaseButtonProps } from '../button/base-button';\nimport { ButtonVariant } from '../button/button';\nimport { a11yBoolean } from '../utils/a11y';\n\n/**\n * @since 2.0.0\n */\n@Component({\n tag: 'ix-toggle-button',\n shadow: true,\n styleUrl: './toggle-button.scss',\n})\nexport class ToggleButton {\n /**\n * Button variant.\n * Important: Variant 'primary' can only be combined with either outline or ghost.\n */\n @Prop() variant: ButtonVariant = 'secondary';\n\n /**\n * Outline button\n */\n @Prop() outline = false;\n\n /**\n * Button with no background or outline\n */\n @Prop() ghost = false;\n\n /**\n * Disable the button\n */\n @Prop({ reflect: true }) disabled = false;\n\n /**\n * Loading button\n */\n @Prop() loading: boolean = false;\n\n /**\n * Icon name\n */\n @Prop() icon: string;\n\n /**\n * Show button as pressed\n */\n @Prop() pressed = false;\n\n /**\n * Pressed change event\n */\n @Event() pressedChange: EventEmitter<boolean>;\n\n private isIllegalToggleButtonConfig() {\n return this.variant === 'primary' && (this.outline || this.ghost);\n }\n\n private logIllegalConfig() {\n console.warn(\n 'iX toggle button with illegal configuration detected. Variant \"primary\" can only be combined with \"outline\" or \"ghost\".'\n );\n }\n\n @Watch('variant')\n onVariantChange() {\n if (this.isIllegalToggleButtonConfig()) {\n this.logIllegalConfig();\n }\n }\n\n @Watch('ghost')\n onGhostChange() {\n this.onVariantChange();\n }\n\n @Watch('outline')\n onOutlineChange() {\n this.onVariantChange();\n }\n\n componentDidLoad() {\n this.onVariantChange();\n }\n\n private dispatchPressedChange() {\n this.pressedChange.emit(!this.pressed);\n }\n\n render() {\n const baseButtonProps: BaseButtonProps = {\n variant: this.variant,\n outline: this.outline,\n ghost: this.ghost,\n iconOnly: false,\n iconOval: false,\n selected: this.pressed,\n disabled: this.disabled || this.loading,\n icon: this.icon,\n loading: this.loading,\n onClick: () => this.dispatchPressedChange(),\n type: 'button',\n ariaAttributes: {\n 'aria-pressed': a11yBoolean(this.pressed),\n },\n };\n\n return (\n <Host\n class={{\n disabled: this.disabled || this.loading,\n }}\n >\n <BaseButton {...baseButtonProps}>\n <slot></slot>\n </BaseButton>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ix-toggle-button.js","mappings":";;;;;AAAA,MAAM,eAAe,GAAG,g7aAAg7a,CAAC;AACz8a,6BAAe,eAAe;;MC6BjB,YAAY;;;;;;uBAKU,WAAW;uBAK1B,KAAK;qBAKP,KAAK;wBAKe,KAAK;uBAKd,KAAK;;uBAUd,KAAK;;IAOf,2BAA2B;QACjC,OAAO,IAAI,CAAC,OAAO,KAAK,SAAS,KAAK,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;KACnE;IAEO,gBAAgB;QACtB,OAAO,CAAC,IAAI,CACV,yHAAyH,CAC1H,CAAC;KACH;IAGD,eAAe;QACb,IAAI,IAAI,CAAC,2BAA2B,EAAE,EAAE;YACtC,IAAI,CAAC,gBAAgB,EAAE,CAAC;SACzB;KACF;IAGD,aAAa;QACX,IAAI,CAAC,eAAe,EAAE,CAAC;KACxB;IAGD,eAAe;QACb,IAAI,CAAC,eAAe,EAAE,CAAC;KACxB;IAED,gBAAgB;QACd,IAAI,CAAC,eAAe,EAAE,CAAC;KACxB;IAEO,qBAAqB;QAC3B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACxC;IAED,MAAM;QACJ,MAAM,eAAe,GAAoB;YACvC,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,IAAI,CAAC,OAAO;YACtB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO;YACvC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO,EAAE,MAAM,IAAI,CAAC,qBAAqB,EAAE;YAC3C,IAAI,EAAE,QAAQ;YACd,cAAc,EAAE;gBACd,cAAc,EAAE,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC;aAC1C;SACF,CAAC;QAEF,QACE,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO;aACxC,IAED,EAAC,UAAU,qEAAK,eAAe,GAC7B,8DAAa,CACF,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/toggle-button/toggle-button.scss?tag=ix-toggle-button&encapsulation=shadow","src/components/toggle-button/toggle-button.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'common-variables';\n@import 'legacy/components/buttons';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n display: inline-block;\n width: auto;\n height: $x-large-space;\n vertical-align: middle;\n\n .btn {\n width: 100%;\n height: 100%;\n }\n\n button:not(:disabled) {\n cursor: pointer;\n }\n}\n\n:host(.disabled) {\n pointer-events: none;\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n Watch,\n} from '@stencil/core';\nimport { BaseButton, BaseButtonProps } from '../button/base-button';\nimport { ButtonVariant } from '../button/button';\nimport { a11yBoolean } from '../utils/a11y';\n\n/**\n * @since 2.0.0\n */\n@Component({\n tag: 'ix-toggle-button',\n shadow: true,\n styleUrl: './toggle-button.scss',\n})\nexport class ToggleButton {\n /**\n * Button variant.\n * Important: Variant 'primary' can only be combined with either outline or ghost.\n */\n @Prop() variant: ButtonVariant = 'secondary';\n\n /**\n * Outline button\n */\n @Prop() outline = false;\n\n /**\n * Button with no background or outline\n */\n @Prop() ghost = false;\n\n /**\n * Disable the button\n */\n @Prop({ reflect: true }) disabled = false;\n\n /**\n * Loading button\n */\n @Prop() loading: boolean = false;\n\n /**\n * Icon name\n */\n @Prop() icon: string;\n\n /**\n * Show button as pressed\n */\n @Prop() pressed = false;\n\n /**\n * Pressed change event\n */\n @Event() pressedChange: EventEmitter<boolean>;\n\n private isIllegalToggleButtonConfig() {\n return this.variant === 'primary' && (this.outline || this.ghost);\n }\n\n private logIllegalConfig() {\n console.warn(\n 'iX toggle button with illegal configuration detected. Variant \"primary\" can only be combined with \"outline\" or \"ghost\".'\n );\n }\n\n @Watch('variant')\n onVariantChange() {\n if (this.isIllegalToggleButtonConfig()) {\n this.logIllegalConfig();\n }\n }\n\n @Watch('ghost')\n onGhostChange() {\n this.onVariantChange();\n }\n\n @Watch('outline')\n onOutlineChange() {\n this.onVariantChange();\n }\n\n componentDidLoad() {\n this.onVariantChange();\n }\n\n private dispatchPressedChange() {\n this.pressedChange.emit(!this.pressed);\n }\n\n render() {\n const baseButtonProps: BaseButtonProps = {\n variant: this.variant,\n outline: this.outline,\n ghost: this.ghost,\n iconOnly: false,\n iconOval: false,\n selected: this.pressed,\n disabled: this.disabled || this.loading,\n icon: this.icon,\n loading: this.loading,\n onClick: () => this.dispatchPressedChange(),\n type: 'button',\n ariaAttributes: {\n 'aria-pressed': a11yBoolean(this.pressed),\n },\n };\n\n return (\n <Host\n class={{\n disabled: this.disabled || this.loading,\n }}\n >\n <BaseButton {...baseButtonProps}>\n <slot></slot>\n </BaseButton>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,7 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host, Fragment } from '@stencil/core/internal/client';
2
2
  import { a as a11yBoolean } from './a11y.js';
3
3
 
4
- const toggleCss = ":host{display:inline-flex;position:relative;height:2rem;justify-content:flex-start;align-items:center;margin-right:0.25rem;cursor:pointer}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .switch{position:relative;display:inline-block;width:3rem;min-width:3rem;max-width:3rem;height:1.5rem;margin-right:0.25rem}:host .switch input{opacity:0;width:0;height:0}:host .slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--theme-switch-off--background);transition:var(--theme-default-time);border-radius:1.5rem}:host .slider:before{position:absolute;content:\"\";height:1.125rem;width:1.125rem;left:4px;bottom:3px;background-color:var(--theme-switch-thumb-off--background);transition:var(--theme-default-time);border-radius:50%}:host input{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}:host input:focus-visible+.switch>.slider{outline:1px solid var(--theme-color-focus-bdr);outline-offset:1px}:host input:checked+.switch>.slider{background-color:var(--theme-switch-on--background)}:host input:checked+.switch>.slider::before{background-color:var(--theme-switch-thumb-on--background);transform:translateX(1.35rem)}:host input+.switch:hover>.slider{background-color:var(--theme-switch-off--background--hover)}:host input+.switch:hover>.slider:before{background-color:var(--theme-switch-thumb-off--background--hover)}:host input+.switch:active>.slider{background-color:var(--theme-switch-off--background--active)}:host input+.switch:active>.slider:before{background-color:var(--theme-switch-thumb-off--background--active)}:host input:checked+.switch:hover>.slider{background-color:var(--theme-switch-on--background--hover)}:host input:checked+.switch:hover>.slider:before{background-color:var(--theme-switch-thumb-on--background--hover)}:host input:checked+.switch:active>.slider{background-color:var(--theme-switch-on--background--active)}:host input:checked+.switch:active>.slider:before{background-color:var(--theme-switch-thumb-on--background--active)}:host input:indeterminate+.switch>.slider::before{transform:translateX(0.7rem)}:host .toggle-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host(.disabled){pointer-events:none}:host(.disabled) input+.switch{opacity:0.5}:host(.disabled) input+.switch>.slider{background-color:var(--theme-switch-off--background--disabled)}:host(.disabled) input+.switch>.slider:before{background-color:var(--theme-switch-thumb-off--background--disabled)}:host(.disabled) input:checked+.switch>.slider{background-color:var(--theme-switch-on--background--disabled)}:host(.disabled) input:checked+.switch>.slider:before{background-color:var(--theme-switch-thumb-on--background--disabled)}:host(.disabled) .toggle-text{color:var(--theme-color-weak-text)}";
4
+ const toggleCss = ":host{display:inline-flex;position:relative;height:2rem;justify-content:flex-start;align-items:center;margin-right:0.25rem;cursor:pointer}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .switch{position:relative;display:inline-block;width:3rem;min-width:3rem;max-width:3rem;height:1.5rem;margin-right:0.25rem}:host .switch input{opacity:0;width:0;height:0}:host .slider{position:absolute;cursor:pointer;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:1px solid transparent}:host .slider:before{position:absolute;content:\"\";height:1.125rem;width:1.125rem;left:4px;bottom:2px;background-color:var(--theme-switch-thumb-off--background);transition:var(--theme-default-time);border-radius:50%}:host input{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}:host input:focus-visible+.switch>.slider{outline:1px solid var(--theme-color-focus-bdr);outline-offset:1px}:host input:checked+.switch>.slider{background-color:var(--theme-switch-on--background)}:host input:checked+.switch>.slider::before{background-color:var(--theme-switch-thumb-on--background);transform:translateX(1.35rem)}:host input+.switch>.slider{border-color:var(--theme-switch-off--border-color)}:host input+.switch:hover>.slider{background-color:var(--theme-switch-off--background--hover);border-color:var(--theme-switch-off--border-color--hover)}:host input+.switch:hover>.slider:before{background-color:var(--theme-switch-thumb-off--background--hover)}:host input+.switch:active>.slider{background-color:var(--theme-switch-off--background--active);border-color:var(--theme-switch-off--border-color--active)}:host input+.switch:active>.slider:before{background-color:var(--theme-switch-thumb-off--background--active)}:host input:checked+.switch>.slider{border-color:var(--theme-switch-on--border-color)}:host input:checked+.switch:hover>.slider{background-color:var(--theme-switch-on--background--hover);border-color:var(--theme-switch-on--border-color--hover)}:host input:checked+.switch:hover>.slider:before{background-color:var(--theme-switch-thumb-on--background--hover)}:host input:checked+.switch:active>.slider{background-color:var(--theme-switch-on--background--active);border-color:var(--theme-switch-on--border-color--active)}:host input:checked+.switch:active>.slider:before{background-color:var(--theme-switch-thumb-on--background--active)}:host input:indeterminate+.switch>.slider::before{transform:translateX(0.7rem)}:host .toggle-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host(.disabled){pointer-events:none}:host(.disabled) input+.switch{opacity:0.5}:host(.disabled) input+.switch>.slider{background-color:var(--theme-switch-off--background--disabled)}:host(.disabled) input+.switch>.slider:before{background-color:var(--theme-switch-thumb-off--background--disabled)}:host(.disabled) input:checked+.switch>.slider{background-color:var(--theme-switch-on--background--disabled)}:host(.disabled) input:checked+.switch>.slider:before{background-color:var(--theme-switch-thumb-on--background--disabled)}:host(.disabled) .toggle-text{color:var(--theme-color-weak-text)}: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--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--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--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--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--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--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--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--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--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--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--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--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)}";
5
5
  const IxToggleStyle0 = toggleCss;
6
6
 
7
7
  const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement {
@@ -10,6 +10,10 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
10
10
  this.__registerHost();
11
11
  this.__attachShadow();
12
12
  this.checkedChange = createEvent(this, "checkedChange", 7);
13
+ this.valueChange = createEvent(this, "valueChange", 7);
14
+ this.formInternals = this.attachInternals();
15
+ this.name = undefined;
16
+ this.value = 'on';
13
17
  this.checked = false;
14
18
  this.disabled = false;
15
19
  this.indeterminate = false;
@@ -17,6 +21,7 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
17
21
  this.textOff = 'Off';
18
22
  this.textIndeterminate = 'Mixed';
19
23
  this.hideText = false;
24
+ this.required = false;
20
25
  }
21
26
  onCheckedChange(newChecked) {
22
27
  if (this.indeterminate) {
@@ -25,21 +30,54 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
25
30
  this.checked = newChecked;
26
31
  this.checkedChange.emit(this.checked);
27
32
  }
33
+ componentWillLoad() {
34
+ this.updateFormInternalValue();
35
+ }
36
+ updateFormInternalValue() {
37
+ if (this.checked) {
38
+ this.formInternals.setFormValue(this.value);
39
+ }
40
+ else {
41
+ this.formInternals.setFormValue(null);
42
+ }
43
+ }
44
+ watchCheckedChange() {
45
+ this.updateFormInternalValue();
46
+ }
47
+ /** @internal */
48
+ hasValidValue() {
49
+ return Promise.resolve(this.checked);
50
+ }
51
+ /** @internal */
52
+ getAssociatedFormElement() {
53
+ return Promise.resolve(this.formInternals.form);
54
+ }
28
55
  render() {
29
- return (h(Host, { key: 'ffc42b6828208dcf6483abfda90ae88dd43ee408', class: {
56
+ return (h(Host, { key: '0afa08e1803352f2bb3360c11fcda2745531e20d', class: {
30
57
  disabled: this.disabled,
31
- }, onClick: () => this.onCheckedChange(!this.checked) }, h("input", { key: '35954eafdb6301bb6e7063a8978f2bfcc7076de0', disabled: this.disabled, indeterminate: this.indeterminate, checked: this.checked, role: "switch", tabindex: 0, type: "checkbox", "aria-checked": a11yBoolean(this.checked), onChange: (event) => this.onCheckedChange(event.target.checked) }), h("label", { key: '0aed058713bc742c3408accee2e3551313a1ad31', class: "switch", tabIndex: -1 }, h("span", { key: '62fbfca9e3adb625006e981f4ae655d2989d9aef', class: "slider" })), !this.hideText ? (h(Fragment, null, !this.indeterminate ? (h("span", { class: 'toggle-text', "aria-hidden": a11yBoolean(true) }, this.checked ? this.textOn : this.textOff)) : (h("span", { class: 'toggle-text', "aria-hidden": a11yBoolean(true) }, this.textIndeterminate)))) : null));
58
+ }, onClick: () => this.onCheckedChange(!this.checked) }, h("input", { key: '37ba0cf086ed01c01e61ff0bb24367759b537cd7', disabled: this.disabled, indeterminate: this.indeterminate, checked: this.checked, role: "switch", tabindex: 0, type: "checkbox", "aria-checked": a11yBoolean(this.checked), onChange: (event) => this.onCheckedChange(event.target.checked) }), h("label", { key: '83d6712432de4b45396b11f7f21cf7072fd19fcd', class: "switch", tabIndex: -1 }, h("span", { key: 'f3f91c36a2043f039813b43bbc6285d67239d050', class: "slider" })), !this.hideText ? (h(Fragment, null, !this.indeterminate ? (h("span", { class: 'toggle-text', "aria-hidden": a11yBoolean(true) }, this.checked ? this.textOn : this.textOff)) : (h("span", { class: 'toggle-text', "aria-hidden": a11yBoolean(true) }, this.textIndeterminate)))) : null));
32
59
  }
60
+ static get formAssociated() { return true; }
33
61
  get hostElement() { return this; }
62
+ static get watchers() { return {
63
+ "checked": ["watchCheckedChange"]
64
+ }; }
34
65
  static get style() { return IxToggleStyle0; }
35
- }, [1, "ix-toggle", {
66
+ }, [65, "ix-toggle", {
67
+ "name": [513],
68
+ "value": [513],
36
69
  "checked": [1540],
37
70
  "disabled": [4],
38
71
  "indeterminate": [1540],
39
72
  "textOn": [1, "text-on"],
40
73
  "textOff": [1, "text-off"],
41
74
  "textIndeterminate": [1, "text-indeterminate"],
42
- "hideText": [4, "hide-text"]
75
+ "hideText": [4, "hide-text"],
76
+ "required": [516],
77
+ "hasValidValue": [64],
78
+ "getAssociatedFormElement": [64]
79
+ }, undefined, {
80
+ "checked": ["watchCheckedChange"]
43
81
  }]);
44
82
  function defineCustomElement$1() {
45
83
  if (typeof customElements === "undefined") {
@@ -1 +1 @@
1
- {"file":"ix-toggle.js","mappings":";;;AAAA,MAAM,SAAS,GAAG,+xGAA+xG,CAAC;AAClzG,uBAAe,SAAS;;MCyBX,MAAM;;;;;;uBAMiC,KAAK;wBAKpC,KAAK;6BAKgC,KAAK;sBAK5C,IAAI;uBAKH,KAAK;iCAKK,OAAO;wBAKhB,KAAK;;IAOxB,eAAe,CAAC,UAAmB;QACjC,IAAI,IAAI,CAAC,aAAa,EAAE;YACtB,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;SAC5B;QACD,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC;QAC1B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACvC;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACxB,EACD,OAAO,EAAE,MAAM,IAAI,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAElD,8DACE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,EACX,IAAI,EAAC,UAAU,kBACD,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,EACvC,QAAQ,EAAE,CAAC,KAAK,KACd,IAAI,CAAC,eAAe,CAAE,KAAK,CAAC,MAAc,CAAC,OAAO,CAAC,GAE9C,EACT,8DAAO,KAAK,EAAC,QAAQ,EAAC,QAAQ,EAAE,CAAC,CAAC,IAChC,6DAAM,KAAK,EAAC,QAAQ,GAAQ,CACtB,EACP,CAAC,IAAI,CAAC,QAAQ,IACb,EAAC,QAAQ,QACN,CAAC,IAAI,CAAC,aAAa,IAClB,YAAM,KAAK,EAAE,aAAa,iBAAe,WAAW,CAAC,IAAI,CAAC,IACvD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CACrC,KAEP,YAAM,KAAK,EAAE,aAAa,iBAAe,WAAW,CAAC,IAAI,CAAC,IACvD,IAAI,CAAC,iBAAiB,CAClB,CACR,CACQ,IACT,IAAI,CACH,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/toggle/toggle.scss?tag=ix-toggle&encapsulation=shadow","src/components/toggle/toggle.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'mixins/hover';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n display: inline-flex;\n position: relative;\n height: 2rem;\n justify-content: flex-start;\n align-items: center;\n margin-right: 0.25rem;\n\n cursor: pointer;\n\n .switch {\n position: relative;\n display: inline-block;\n width: 3rem;\n min-width: 3rem;\n max-width: 3rem;\n height: 1.5rem;\n margin-right: 0.25rem;\n }\n\n .switch input {\n opacity: 0;\n width: 0;\n height: 0;\n }\n\n .slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: var(--theme-switch-off--background);\n transition: var(--theme-default-time);\n border-radius: 1.5rem;\n }\n\n .slider:before {\n position: absolute;\n content: '';\n height: 1.125rem;\n width: 1.125rem;\n left: 4px;\n bottom: 3px;\n background-color: var(--theme-switch-thumb-off--background);\n transition: var(--theme-default-time);\n border-radius: 50%;\n }\n\n input {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n }\n\n input:focus-visible + .switch > .slider {\n outline: 1px solid var(--theme-color-focus-bdr);\n outline-offset: 1px;\n }\n\n input:checked + .switch > .slider {\n background-color: var(--theme-switch-on--background);\n }\n\n input:checked + .switch > .slider::before {\n background-color: var(--theme-switch-thumb-on--background);\n transform: translateX(1.35rem);\n }\n\n // Toggle NOT checked\n input + .switch:hover > .slider {\n background-color: var(--theme-switch-off--background--hover);\n }\n\n input + .switch:hover > .slider:before {\n background-color: var(--theme-switch-thumb-off--background--hover);\n }\n\n input + .switch:active > .slider {\n background-color: var(--theme-switch-off--background--active);\n }\n\n input + .switch:active > .slider:before {\n background-color: var(--theme-switch-thumb-off--background--active);\n }\n\n // Toggle checked\n input:checked + .switch:hover > .slider {\n background-color: var(--theme-switch-on--background--hover);\n }\n\n input:checked + .switch:hover > .slider:before {\n background-color: var(--theme-switch-thumb-on--background--hover);\n }\n\n input:checked + .switch:active > .slider {\n background-color: var(--theme-switch-on--background--active);\n }\n\n input:checked + .switch:active > .slider:before {\n background-color: var(--theme-switch-thumb-on--background--active);\n }\n\n input:indeterminate + .switch > .slider::before {\n transform: translateX(0.7rem);\n }\n\n .toggle-text {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n}\n\n:host(.disabled) {\n pointer-events: none;\n\n input + .switch {\n opacity: 0.5;\n }\n\n input + .switch > .slider {\n background-color: var(--theme-switch-off--background--disabled);\n }\n\n input + .switch > .slider:before {\n background-color: var(--theme-switch-thumb-off--background--disabled);\n }\n\n input:checked + .switch > .slider {\n background-color: var(--theme-switch-on--background--disabled);\n }\n\n input:checked + .switch > .slider:before {\n background-color: var(--theme-switch-thumb-on--background--disabled);\n }\n\n .toggle-text {\n color: var(--theme-color-weak-text);\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n Fragment,\n h,\n Host,\n Prop,\n} from '@stencil/core';\nimport { a11yBoolean } from '../utils/a11y';\n\n@Component({\n tag: 'ix-toggle',\n styleUrl: 'toggle.scss',\n shadow: true,\n})\nexport class Toggle {\n @Element() hostElement!: HTMLIxToggleElement;\n\n /**\n * Whether the slide-toggle element is checked or not.\n */\n @Prop({ mutable: true, reflect: true }) checked = false;\n\n /**\n * Whether the slide-toggle element is disabled or not.\n */\n @Prop() disabled = false;\n\n /**\n * If true the control is in indeterminate state\n */\n @Prop({ mutable: true, reflect: true }) indeterminate = false;\n\n /**\n * Text for on state\n */\n @Prop() textOn = 'On';\n\n /**\n * Text for off state\n */\n @Prop() textOff = 'Off';\n\n /**\n * Text for indeterminate state\n */\n @Prop() textIndeterminate = 'Mixed';\n\n /**\n * Hide `on` and `off` text\n */\n @Prop() hideText = false;\n\n /**\n * An event will be dispatched each time the slide-toggle changes its value.\n */\n @Event() checkedChange: EventEmitter<boolean>;\n\n onCheckedChange(newChecked: boolean) {\n if (this.indeterminate) {\n this.indeterminate = false;\n }\n this.checked = newChecked;\n this.checkedChange.emit(this.checked);\n }\n\n render() {\n return (\n <Host\n class={{\n disabled: this.disabled,\n }}\n onClick={() => this.onCheckedChange(!this.checked)}\n >\n <input\n disabled={this.disabled}\n indeterminate={this.indeterminate}\n checked={this.checked}\n role=\"switch\"\n tabindex={0}\n type=\"checkbox\"\n aria-checked={a11yBoolean(this.checked)}\n onChange={(event) =>\n this.onCheckedChange((event.target as any).checked)\n }\n ></input>\n <label class=\"switch\" tabIndex={-1}>\n <span class=\"slider\"></span>\n </label>\n {!this.hideText ? (\n <Fragment>\n {!this.indeterminate ? (\n <span class={'toggle-text'} aria-hidden={a11yBoolean(true)}>\n {this.checked ? this.textOn : this.textOff}\n </span>\n ) : (\n <span class={'toggle-text'} aria-hidden={a11yBoolean(true)}>\n {this.textIndeterminate}\n </span>\n )}\n </Fragment>\n ) : null}\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ix-toggle.js","mappings":";;;AAAA,MAAM,SAAS,GAAG,mpbAAmpb,CAAC;AACtqb,uBAAe,SAAS;;MCiCX,MAAM;;;;;;;;;qBAawB,IAAI;uBAKK,KAAK;wBAKpC,KAAK;6BAKgC,KAAK;sBAK5C,IAAI;uBAKH,KAAK;iCAKK,OAAO;wBAKhB,KAAK;wBAOY,KAAK;;IAUzC,eAAe,CAAC,UAAmB;QACjC,IAAI,IAAI,CAAC,aAAa,EAAE;YACtB,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;SAC5B;QACD,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC;QAC1B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACvC;IAED,iBAAiB;QACf,IAAI,CAAC,uBAAuB,EAAE,CAAC;KAChC;IAED,uBAAuB;QACrB,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC7C;aAAM;YACL,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;SACvC;KACF;IAGD,kBAAkB;QAChB,IAAI,CAAC,uBAAuB,EAAE,CAAC;KAChC;;IAID,aAAa;QACX,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACtC;;IAID,wBAAwB;QACtB,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;KACjD;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACxB,EACD,OAAO,EAAE,MAAM,IAAI,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAElD,8DACE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,EACX,IAAI,EAAC,UAAU,kBACD,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,EACvC,QAAQ,EAAE,CAAC,KAAK,KACd,IAAI,CAAC,eAAe,CAAE,KAAK,CAAC,MAA2B,CAAC,OAAO,CAAC,GAE3D,EACT,8DAAO,KAAK,EAAC,QAAQ,EAAC,QAAQ,EAAE,CAAC,CAAC,IAChC,6DAAM,KAAK,EAAC,QAAQ,GAAQ,CACtB,EACP,CAAC,IAAI,CAAC,QAAQ,IACb,EAAC,QAAQ,QACN,CAAC,IAAI,CAAC,aAAa,IAClB,YAAM,KAAK,EAAE,aAAa,iBAAe,WAAW,CAAC,IAAI,CAAC,IACvD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CACrC,KAEP,YAAM,KAAK,EAAE,aAAa,iBAAe,WAAW,CAAC,IAAI,CAAC,IACvD,IAAI,CAAC,iBAAiB,CAClB,CACR,CACQ,IACT,IAAI,CACH,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/toggle/toggle.scss?tag=ix-toggle&encapsulation=shadow","src/components/toggle/toggle.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'mixins/hover';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n display: inline-flex;\n position: relative;\n height: 2rem;\n justify-content: flex-start;\n align-items: center;\n margin-right: 0.25rem;\n\n cursor: pointer;\n\n .switch {\n position: relative;\n display: inline-block;\n width: 3rem;\n min-width: 3rem;\n max-width: 3rem;\n height: 1.5rem;\n margin-right: 0.25rem;\n }\n\n .switch input {\n opacity: 0;\n width: 0;\n height: 0;\n }\n\n .slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: var(--theme-switch-off--background);\n transition: var(--theme-default-time);\n border-radius: 1.5rem;\n border: 1px solid transparent;\n }\n\n .slider:before {\n position: absolute;\n content: '';\n height: 1.125rem;\n width: 1.125rem;\n left: 4px;\n bottom: 2px;\n background-color: var(--theme-switch-thumb-off--background);\n transition: var(--theme-default-time);\n border-radius: 50%;\n }\n\n input {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n }\n\n input:focus-visible + .switch > .slider {\n outline: 1px solid var(--theme-color-focus-bdr);\n outline-offset: 1px;\n }\n\n input:checked + .switch > .slider {\n background-color: var(--theme-switch-on--background);\n }\n\n input:checked + .switch > .slider::before {\n background-color: var(--theme-switch-thumb-on--background);\n transform: translateX(1.35rem);\n }\n\n // Toggle NOT checked\n input + .switch > .slider {\n border-color: var(--theme-switch-off--border-color);\n }\n\n input + .switch:hover > .slider {\n background-color: var(--theme-switch-off--background--hover);\n border-color: var(--theme-switch-off--border-color--hover);\n }\n\n input + .switch:hover > .slider:before {\n background-color: var(--theme-switch-thumb-off--background--hover);\n }\n\n input + .switch:active > .slider {\n background-color: var(--theme-switch-off--background--active);\n border-color: var(--theme-switch-off--border-color--active);\n }\n\n input + .switch:active > .slider:before {\n background-color: var(--theme-switch-thumb-off--background--active);\n }\n\n // Toggle checked\n input:checked + .switch > .slider {\n border-color: var(--theme-switch-on--border-color);\n }\n\n input:checked + .switch:hover > .slider {\n background-color: var(--theme-switch-on--background--hover);\n border-color: var(--theme-switch-on--border-color--hover);\n }\n\n input:checked + .switch:hover > .slider:before {\n background-color: var(--theme-switch-thumb-on--background--hover);\n }\n\n input:checked + .switch:active > .slider {\n background-color: var(--theme-switch-on--background--active);\n border-color: var(--theme-switch-on--border-color--active);\n }\n\n input:checked + .switch:active > .slider:before {\n background-color: var(--theme-switch-thumb-on--background--active);\n }\n\n input:indeterminate + .switch > .slider::before {\n transform: translateX(0.7rem);\n }\n\n .toggle-text {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n}\n\n:host(.disabled) {\n pointer-events: none;\n\n input + .switch {\n opacity: 0.5;\n }\n\n input + .switch > .slider {\n background-color: var(--theme-switch-off--background--disabled);\n }\n\n input + .switch > .slider:before {\n background-color: var(--theme-switch-thumb-off--background--disabled);\n }\n\n input:checked + .switch > .slider {\n background-color: var(--theme-switch-on--background--disabled);\n }\n\n input:checked + .switch > .slider:before {\n background-color: var(--theme-switch-thumb-on--background--disabled);\n }\n\n .toggle-text {\n color: var(--theme-color-weak-text);\n }\n}\n\n@mixin toggle-variant($selector) {\n :host(#{$selector}:not(.disabled)) {\n .slider {\n @content;\n }\n }\n}\n\n@mixin define-toggle-vars($state, $type) {\n --theme-switch-#{$state}--background: var(--theme-switch-#{$state}--background--#{$type});\n --theme-switch-#{$state}--background--hover: var(--theme-switch-#{$state}--background--#{$type}--hover);\n --theme-switch-#{$state}--background--active: var(--theme-switch-#{$state}--background--#{$type}--active);\n\n --theme-switch-thumb-#{$state}--background: var(--theme-switch-thumb-#{$state}--background--#{$type});\n --theme-switch-thumb-#{$state}--background--hover: var(--theme-switch-thumb-#{$state}--background--#{$type}--hover);\n --theme-switch-thumb-#{$state}--background--active: var(--theme-switch-thumb-#{$state}--background--#{$type}--active);\n\n --theme-switch-#{$state}--border-color: var(--theme-switch-#{$state}--border-color--#{$type});\n --theme-switch-#{$state}--border-color--hover: var(--theme-switch-#{$state}--border-color--#{$type}--hover);\n --theme-switch-#{$state}--border-color--active: var(--theme-switch-#{$state}--border-color--#{$type}--active);\n}\n\n@include toggle-variant(\n $selector: '.ix-info',\n) {\n @include define-toggle-vars('off', 'info');\n @include define-toggle-vars('on', 'info');\n @include define-toggle-vars('mixed', 'info');\n}\n\n@include toggle-variant(\n $selector: '.ix-warning',\n) {\n @include define-toggle-vars('off', 'warning');\n @include define-toggle-vars('on', 'warning');\n @include define-toggle-vars('mixed', 'warning');\n}\n\n@include toggle-variant(\n $selector: '.ix-invalid--required',\n) {\n @include define-toggle-vars('off', 'invalid');\n @include define-toggle-vars('on', 'invalid');\n @include define-toggle-vars('mixed', 'invalid');\n}\n\n@include toggle-variant(\n $selector: '.ix-invalid',\n) {\n @include define-toggle-vars('off', 'invalid');\n @include define-toggle-vars('on', 'invalid');\n @include define-toggle-vars('mixed', 'invalid');\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n Fragment,\n h,\n Host,\n Method,\n Prop,\n Watch,\n} from '@stencil/core';\nimport { a11yBoolean } from '../utils/a11y';\nimport { IxFormComponent } from '../utils/field';\n\n/**\n * @form-ready 2.4.0\n * */\n@Component({\n tag: 'ix-toggle',\n styleUrl: 'toggle.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class Toggle implements IxFormComponent<string> {\n @AttachInternals() formInternals!: ElementInternals;\n\n @Element() hostElement!: HTMLIxToggleElement;\n\n /**\n * Name of the checkbox component\n */\n @Prop({ reflect: true }) name?: string;\n\n /**\n * Value of the checkbox component\n */\n @Prop({ reflect: true }) value: string = 'on';\n\n /**\n * Whether the slide-toggle element is checked or not.\n */\n @Prop({ mutable: true, reflect: true }) checked = false;\n\n /**\n * Whether the slide-toggle element is disabled or not.\n */\n @Prop() disabled = false;\n\n /**\n * If true the control is in indeterminate state\n */\n @Prop({ mutable: true, reflect: true }) indeterminate = false;\n\n /**\n * Text for on state\n */\n @Prop() textOn = 'On';\n\n /**\n * Text for off state\n */\n @Prop() textOff = 'Off';\n\n /**\n * Text for indeterminate state\n */\n @Prop() textIndeterminate = 'Mixed';\n\n /**\n * Hide `on` and `off` text\n */\n @Prop() hideText = false;\n\n /**\n * Required state of the checkbox component.\n *\n * If true, checkbox needs to be checked to be valid\n */\n @Prop({ reflect: true }) required = false;\n\n /**\n * An event will be dispatched each time the slide-toggle changes its value.\n */\n @Event() checkedChange!: EventEmitter<boolean>;\n\n /** @internal */\n @Event() valueChange!: EventEmitter<string>;\n\n onCheckedChange(newChecked: boolean) {\n if (this.indeterminate) {\n this.indeterminate = false;\n }\n this.checked = newChecked;\n this.checkedChange.emit(this.checked);\n }\n\n componentWillLoad() {\n this.updateFormInternalValue();\n }\n\n updateFormInternalValue(): void {\n if (this.checked) {\n this.formInternals.setFormValue(this.value);\n } else {\n this.formInternals.setFormValue(null);\n }\n }\n\n @Watch('checked')\n watchCheckedChange() {\n this.updateFormInternalValue();\n }\n\n /** @internal */\n @Method()\n hasValidValue(): Promise<boolean> {\n return Promise.resolve(this.checked);\n }\n\n /** @internal */\n @Method()\n getAssociatedFormElement(): Promise<HTMLFormElement | null> {\n return Promise.resolve(this.formInternals.form);\n }\n\n render() {\n return (\n <Host\n class={{\n disabled: this.disabled,\n }}\n onClick={() => this.onCheckedChange(!this.checked)}\n >\n <input\n disabled={this.disabled}\n indeterminate={this.indeterminate}\n checked={this.checked}\n role=\"switch\"\n tabindex={0}\n type=\"checkbox\"\n aria-checked={a11yBoolean(this.checked)}\n onChange={(event) =>\n this.onCheckedChange((event.target as HTMLInputElement).checked)\n }\n ></input>\n <label class=\"switch\" tabIndex={-1}>\n <span class=\"slider\"></span>\n </label>\n {!this.hideText ? (\n <Fragment>\n {!this.indeterminate ? (\n <span class={'toggle-text'} aria-hidden={a11yBoolean(true)}>\n {this.checked ? this.textOn : this.textOff}\n </span>\n ) : (\n <span class={'toggle-text'} aria-hidden={a11yBoolean(true)}>\n {this.textIndeterminate}\n </span>\n )}\n </Fragment>\n ) : null}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -698,7 +698,7 @@ const Tree = /*@__PURE__*/ proxyCustomElement(class Tree extends HTMLElement {
698
698
  this.hyperlist = new Hyperlist(this.hostElement, config);
699
699
  }
700
700
  render() {
701
- return (h(Host, { key: '5e3f0e8bbd14073590ed9ae548fa51abb50bd52b' }, h("slot", { key: '9e05d42472878f4791cce2033271e1918d40c38f' })));
701
+ return (h(Host, { key: 'a64e17e0c6466065fe8de80715cbac794a6e7a95' }, h("slot", { key: 'a348c8357097c31e323d95033546d841f1986680' })));
702
702
  }
703
703
  get hostElement() { return this; }
704
704
  static get watchers() { return {
@@ -3,7 +3,7 @@ import { U as UploadFileState } from './upload-file-state.js';
3
3
  import { d as defineCustomElement$3 } from './button.js';
4
4
  import { d as defineCustomElement$2 } from './spinner.js';
5
5
 
6
- const uploadCss = ":host{display:block;min-height:4rem;height:4rem}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .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;height:1.5rem;width:1.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}";
6
+ const uploadCss = ":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 ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .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;height:1.5rem;width:1.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}";
7
7
  const IxUploadStyle0 = uploadCss;
8
8
 
9
9
  const Upload = /*@__PURE__*/ proxyCustomElement(class Upload extends HTMLElement {
@@ -85,7 +85,7 @@ const Upload = /*@__PURE__*/ proxyCustomElement(class Upload extends HTMLElement
85
85
  this.filesToUpload = obj;
86
86
  }
87
87
  render() {
88
- return (h(Host, { key: 'c13c30ad2fa2a251ad872d7b0461f625798a3d2a' }, h("div", { key: '572bf6899630cdc1fdff1518750415270792a368', class: {
88
+ return (h(Host, { key: '6578e437c8322cf20dbaa01ad7cce0085f840e37' }, h("div", { key: 'b45e0c890ab3a2d8eb3fe8e6c380d456414881d5', class: {
89
89
  'file-upload-area': true,
90
90
  'file-over': this.state !== UploadFileState.LOADING && this.isFileOver,
91
91
  checking: this.state === UploadFileState.LOADING,
@@ -95,9 +95,9 @@ const Upload = /*@__PURE__*/ proxyCustomElement(class Upload extends HTMLElement
95
95
  if (this.state !== UploadFileState.LOADING) {
96
96
  this.fileDropped(e);
97
97
  }
98
- }, onDragOver: (e) => this.fileOver(e), onDragLeave: () => this.fileLeave(), draggable: !this.disabled }, this.renderUploadState(), h("div", { key: '5c48357676e704f0e285e510059593c526ca47fc' }, h("input", { key: '5ed9faca22b46db4962c64ff3822c59d3e44cf95', multiple: this.multiple, type: "file", class: "upload-browser", id: "upload-browser", onChange: (e) => {
98
+ }, onDragOver: (e) => this.fileOver(e), onDragLeave: () => this.fileLeave(), draggable: !this.disabled }, this.renderUploadState(), h("div", { key: '5104dd9de609f5c726444f1c60c69973e01d5202' }, h("input", { key: 'da71d0df9e3c11ef25d7826e0e266b37b21db5e9', multiple: this.multiple, type: "file", class: "upload-browser", id: "upload-browser", onChange: (e) => {
99
99
  this.fileChangeEvent(e);
100
- }, accept: this.accept }), h("ix-button", { key: '6e5bcfec5d982c8674e6bf38bbf1e0d805b1af0f', tabindex: "-1", outline: true, onClick: () => this.inputElement.click(), disabled: this.disabled || this.state === UploadFileState.LOADING }, this.i18nUploadFile)))));
100
+ }, accept: this.accept }), h("ix-button", { key: '4ee1da0f8ce7066c8d36338327fc63a0d0c6eaa4', tabindex: "-1", outline: true, onClick: () => this.inputElement.click(), disabled: this.disabled || this.state === UploadFileState.LOADING }, this.i18nUploadFile)))));
101
101
  }
102
102
  get hostElement() { return this; }
103
103
  static get style() { return IxUploadStyle0; }
@@ -1 +1 @@
1
- {"file":"ix-upload.js","mappings":"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","names":[],"sources":["src/components/upload/upload.scss?tag=ix-upload&encapsulation=shadow","src/components/upload/upload.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'common-variables';\n@import 'mixins/shadow-dom/component';\n@import 'mixins/text-truncation';\n\n:host {\n @include ix-component;\n display: block;\n min-height: 4rem;\n height: 4rem;\n\n .file-upload-area {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n\n overflow: hidden;\n\n height: 100%;\n width: 100%;\n\n padding: $default-space;\n\n border: 1px dashed var(--theme-upload--border-color);\n border-radius: var(--theme-upload--border-radius);\n color: var(--theme-upload-text--color);\n\n &.multiline {\n max-height: unset;\n height: auto;\n\n .glyph {\n align-self: flex-start;\n margin-block-start: 3px;\n }\n\n > div {\n align-self: flex-start;\n }\n }\n\n &:not(.multiline) {\n .state,\n .upload-text {\n @include ellipsis;\n }\n }\n\n &:not(.disabled).file-over {\n border-color: var(--theme-upload--border-color--dragover);\n border-style: solid;\n }\n\n &.checking {\n color: var(--theme-upload-text--color--checking);\n border-style: solid;\n }\n\n &.disabled {\n border-style: solid;\n color: var(--theme-upload-text--color--disabled);\n }\n\n ix-button {\n margin-inline-start: $default-space;\n }\n\n .upload-browser {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n }\n\n .loader {\n margin: 2.187rem auto;\n font-size: 0.937rem;\n width: $default-space;\n height: $default-space;\n border-radius: 50%;\n position: relative;\n text-indent: -9999em;\n animation: optimise-loading 1.1s infinite ease;\n transform: translateZ(0);\n }\n\n .upload-filename {\n margin-bottom: $default-space;\n }\n\n .state {\n display: flex;\n align-items: center;\n\n > ix-spinner {\n margin-inline-end: $small-space;\n height: $large-space;\n width: $large-space;\n }\n\n > ix-icon {\n margin-inline-end: $small-space;\n\n &.icon-error {\n color: var(--theme-color-alarm);\n }\n\n &.icon-success {\n color: var(--theme-color-success);\n }\n }\n }\n }\n}\n\n:host(.disabled) {\n pointer-events: none;\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Method,\n Prop,\n State,\n} from '@stencil/core';\nimport { UploadFileState } from './upload-file-state';\n\n@Component({\n tag: 'ix-upload',\n styleUrl: 'upload.scss',\n shadow: true,\n})\nexport class Upload {\n /**\n * The accept attribute specifies the types of files that the server accepts (that can be submitted through a file upload).\n * [accept]{@link \"https://www.w3schools.com/tags/att_input_accept.asp\"}\n */\n @Prop() accept: string;\n\n /**\n * If multiple is true the user can drop or select multiple files\n */\n @Prop() multiple = false;\n\n /**\n * Whether the text should wrap to more than one line\n */\n @Prop() multiline = false;\n\n /**\n * Disable all input events\n */\n @Prop() disabled = false;\n\n /**\n * After a file is uploaded you can set the upload component to a defined state\n */\n @Prop() state: UploadFileState = UploadFileState.SELECT_FILE;\n\n /**\n * Will be used by state = UploadFileState.SELECT_FILE\n */\n @Prop() selectFileText = '+ Drag files here or…';\n\n /**\n * Will be used by state = UploadFileState.LOADING\n */\n @Prop() loadingText = 'Checking files…';\n\n /**\n * Will be used by state = UploadFileState.UPLOAD_FAILED\n */\n @Prop() uploadFailedText = 'Upload failed. Please try again.';\n\n /**\n * Will be used by state = UploadFileState.UPLOAD_SUCCESSED\n */\n @Prop() uploadSuccessText = 'Upload successful';\n\n /**\n * Label for upload file button\n */\n @Prop() i18nUploadFile = 'Upload file…';\n\n /**\n * Text for disabled state\n */\n @Prop() i18nUploadDisabled = 'File upload currently not possible.';\n\n /**\n * You get an array of Files after drop-action or browse action is finished\n */\n @Event() filesChanged: EventEmitter<Array<File>>;\n\n @Element() hostElement!: HTMLIxUploadElement;\n\n get inputElement(): HTMLInputElement {\n return this.hostElement.shadowRoot.querySelector('#upload-browser');\n }\n\n @State() isFileOver = false;\n\n private filesToUpload: Array<File>;\n\n constructor() {}\n\n private fileDropped(evt: DragEvent) {\n evt.preventDefault();\n if (this.disabled) {\n return;\n }\n\n const file: File | FileList = evt.dataTransfer.files;\n this.isFileOver = false;\n\n this.filesToUpload = this.convertToFileArray(file);\n this.filesChanged.emit(this.filesToUpload);\n }\n\n private fileOver(event: DragEvent) {\n if (this.state !== UploadFileState.LOADING) {\n event.preventDefault();\n event.dataTransfer.dropEffect = 'move';\n }\n\n if (!this.multiple && event.dataTransfer.items.length > 1) {\n event.preventDefault();\n event.stopPropagation();\n event.dataTransfer.effectAllowed = 'none';\n event.dataTransfer.dropEffect = 'none';\n } else {\n this.isFileOver = true;\n }\n }\n\n private fileLeave() {\n this.isFileOver = false;\n }\n\n private fileChangeEvent(event: any) {\n if (this.disabled) {\n return;\n }\n this.filesToUpload = this.convertToFileArray(event.target.files);\n\n this.filesChanged.emit(this.filesToUpload);\n\n // Workaround for bug in native input element, that prevents the user from uploading\n // a file with the same name as the most recent one, but with changed content.\n this.inputElement.type = '';\n this.inputElement.type = 'file';\n }\n\n private convertToFileArray(filesFromEvent: FileList | File): File[] {\n let files = [];\n if (filesFromEvent instanceof FileList) {\n files = Array.from(filesFromEvent);\n } else {\n files = [filesFromEvent];\n }\n return files;\n }\n\n private renderUploadState() {\n if (this.disabled) {\n return (\n <span class=\"state\">\n <span class=\"upload-text\">{this.i18nUploadDisabled}</span>\n </span>\n );\n }\n\n switch (this.state) {\n case UploadFileState.SELECT_FILE:\n return (\n <span class=\"state\">\n <span class=\"upload-text\">{this.selectFileText}</span>\n </span>\n );\n case UploadFileState.LOADING:\n return (\n <span class=\"state\">\n <ix-spinner variant=\"primary\"></ix-spinner>\n <span class=\"upload-text\">{this.loadingText}</span>\n </span>\n );\n case UploadFileState.UPLOAD_FAILED:\n return (\n <span class=\"state\">\n <ix-icon name=\"error\" class=\"icon-error\"></ix-icon>\n <span class=\"upload-text\">{this.uploadFailedText}</span>\n </span>\n );\n case UploadFileState.UPLOAD_SUCCESSED:\n return (\n <span class=\"state\">\n <ix-icon name=\"success\" class=\"icon-success\"></ix-icon>\n <span class=\"upload-text\">{this.uploadSuccessText}</span>\n </span>\n );\n default:\n return '';\n }\n }\n\n /**\n * Set files\n * @param obj\n */\n @Method()\n async setFilesToUpload(obj: any) {\n this.filesToUpload = obj;\n }\n\n render() {\n return (\n <Host>\n <div\n class={{\n 'file-upload-area': true,\n 'file-over':\n this.state !== UploadFileState.LOADING && this.isFileOver,\n checking: this.state === UploadFileState.LOADING,\n disabled: this.disabled,\n multiline: this.multiline,\n }}\n onDrop={(e) => {\n if (this.state !== UploadFileState.LOADING) {\n this.fileDropped(e);\n }\n }}\n onDragOver={(e) => this.fileOver(e)}\n onDragLeave={() => this.fileLeave()}\n draggable={!this.disabled}\n >\n {this.renderUploadState()}\n <div>\n <input\n multiple={this.multiple}\n type=\"file\"\n class=\"upload-browser\"\n id=\"upload-browser\"\n onChange={(e) => {\n this.fileChangeEvent(e);\n }}\n accept={this.accept}\n />\n <ix-button\n tabindex=\"-1\"\n outline\n onClick={() => this.inputElement.click()}\n disabled={this.disabled || this.state === UploadFileState.LOADING}\n >\n {this.i18nUploadFile}\n </ix-button>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ix-upload.js","mappings":"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","names":[],"sources":["src/components/upload/upload.scss?tag=ix-upload&encapsulation=shadow","src/components/upload/upload.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'common-variables';\n@import 'mixins/shadow-dom/component';\n@import 'mixins/text-truncation';\n\n:host {\n @include ix-component;\n display: block;\n min-height: 4rem;\n height: 4rem;\n\n .file-upload-area {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n\n overflow: hidden;\n\n height: 100%;\n width: 100%;\n\n padding: $default-space;\n\n border: 1px dashed var(--theme-upload--border-color);\n border-radius: var(--theme-upload--border-radius);\n color: var(--theme-upload-text--color);\n\n &.multiline {\n max-height: unset;\n height: auto;\n\n .glyph {\n align-self: flex-start;\n margin-block-start: 3px;\n }\n\n > div {\n align-self: flex-start;\n }\n }\n\n &:not(.multiline) {\n .state,\n .upload-text {\n @include ellipsis;\n }\n }\n\n &:not(.disabled).file-over {\n border-color: var(--theme-upload--border-color--dragover);\n border-style: solid;\n }\n\n &.checking {\n color: var(--theme-upload-text--color--checking);\n border-style: solid;\n }\n\n &.disabled {\n border-style: solid;\n color: var(--theme-upload-text--color--disabled);\n }\n\n ix-button {\n margin-inline-start: $default-space;\n }\n\n .upload-browser {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n }\n\n .loader {\n margin: 2.187rem auto;\n font-size: 0.937rem;\n width: $default-space;\n height: $default-space;\n border-radius: 50%;\n position: relative;\n text-indent: -9999em;\n animation: optimise-loading 1.1s infinite ease;\n transform: translateZ(0);\n }\n\n .upload-filename {\n margin-bottom: $default-space;\n }\n\n .state {\n display: flex;\n align-items: center;\n\n > ix-spinner {\n margin-inline-end: $small-space;\n height: $large-space;\n width: $large-space;\n }\n\n > ix-icon {\n margin-inline-end: $small-space;\n\n &.icon-error {\n color: var(--theme-color-alarm);\n }\n\n &.icon-success {\n color: var(--theme-color-success);\n }\n }\n }\n }\n}\n\n:host(.disabled) {\n pointer-events: none;\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Method,\n Prop,\n State,\n} from '@stencil/core';\nimport { UploadFileState } from './upload-file-state';\n\n@Component({\n tag: 'ix-upload',\n styleUrl: 'upload.scss',\n shadow: true,\n})\nexport class Upload {\n /**\n * The accept attribute specifies the types of files that the server accepts (that can be submitted through a file upload).\n * [accept]{@link \"https://www.w3schools.com/tags/att_input_accept.asp\"}\n */\n @Prop() accept: string;\n\n /**\n * If multiple is true the user can drop or select multiple files\n */\n @Prop() multiple = false;\n\n /**\n * Whether the text should wrap to more than one line\n */\n @Prop() multiline = false;\n\n /**\n * Disable all input events\n */\n @Prop() disabled = false;\n\n /**\n * After a file is uploaded you can set the upload component to a defined state\n */\n @Prop() state: UploadFileState = UploadFileState.SELECT_FILE;\n\n /**\n * Will be used by state = UploadFileState.SELECT_FILE\n */\n @Prop() selectFileText = '+ Drag files here or…';\n\n /**\n * Will be used by state = UploadFileState.LOADING\n */\n @Prop() loadingText = 'Checking files…';\n\n /**\n * Will be used by state = UploadFileState.UPLOAD_FAILED\n */\n @Prop() uploadFailedText = 'Upload failed. Please try again.';\n\n /**\n * Will be used by state = UploadFileState.UPLOAD_SUCCESSED\n */\n @Prop() uploadSuccessText = 'Upload successful';\n\n /**\n * Label for upload file button\n */\n @Prop() i18nUploadFile = 'Upload file…';\n\n /**\n * Text for disabled state\n */\n @Prop() i18nUploadDisabled = 'File upload currently not possible.';\n\n /**\n * You get an array of Files after drop-action or browse action is finished\n */\n @Event() filesChanged: EventEmitter<Array<File>>;\n\n @Element() hostElement!: HTMLIxUploadElement;\n\n get inputElement(): HTMLInputElement {\n return this.hostElement.shadowRoot.querySelector('#upload-browser');\n }\n\n @State() isFileOver = false;\n\n private filesToUpload: Array<File>;\n\n constructor() {}\n\n private fileDropped(evt: DragEvent) {\n evt.preventDefault();\n if (this.disabled) {\n return;\n }\n\n const file: File | FileList = evt.dataTransfer.files;\n this.isFileOver = false;\n\n this.filesToUpload = this.convertToFileArray(file);\n this.filesChanged.emit(this.filesToUpload);\n }\n\n private fileOver(event: DragEvent) {\n if (this.state !== UploadFileState.LOADING) {\n event.preventDefault();\n event.dataTransfer.dropEffect = 'move';\n }\n\n if (!this.multiple && event.dataTransfer.items.length > 1) {\n event.preventDefault();\n event.stopPropagation();\n event.dataTransfer.effectAllowed = 'none';\n event.dataTransfer.dropEffect = 'none';\n } else {\n this.isFileOver = true;\n }\n }\n\n private fileLeave() {\n this.isFileOver = false;\n }\n\n private fileChangeEvent(event: any) {\n if (this.disabled) {\n return;\n }\n this.filesToUpload = this.convertToFileArray(event.target.files);\n\n this.filesChanged.emit(this.filesToUpload);\n\n // Workaround for bug in native input element, that prevents the user from uploading\n // a file with the same name as the most recent one, but with changed content.\n this.inputElement.type = '';\n this.inputElement.type = 'file';\n }\n\n private convertToFileArray(filesFromEvent: FileList | File): File[] {\n let files = [];\n if (filesFromEvent instanceof FileList) {\n files = Array.from(filesFromEvent);\n } else {\n files = [filesFromEvent];\n }\n return files;\n }\n\n private renderUploadState() {\n if (this.disabled) {\n return (\n <span class=\"state\">\n <span class=\"upload-text\">{this.i18nUploadDisabled}</span>\n </span>\n );\n }\n\n switch (this.state) {\n case UploadFileState.SELECT_FILE:\n return (\n <span class=\"state\">\n <span class=\"upload-text\">{this.selectFileText}</span>\n </span>\n );\n case UploadFileState.LOADING:\n return (\n <span class=\"state\">\n <ix-spinner variant=\"primary\"></ix-spinner>\n <span class=\"upload-text\">{this.loadingText}</span>\n </span>\n );\n case UploadFileState.UPLOAD_FAILED:\n return (\n <span class=\"state\">\n <ix-icon name=\"error\" class=\"icon-error\"></ix-icon>\n <span class=\"upload-text\">{this.uploadFailedText}</span>\n </span>\n );\n case UploadFileState.UPLOAD_SUCCESSED:\n return (\n <span class=\"state\">\n <ix-icon name=\"success\" class=\"icon-success\"></ix-icon>\n <span class=\"upload-text\">{this.uploadSuccessText}</span>\n </span>\n );\n default:\n return '';\n }\n }\n\n /**\n * Set files\n * @param obj\n */\n @Method()\n async setFilesToUpload(obj: any) {\n this.filesToUpload = obj;\n }\n\n render() {\n return (\n <Host>\n <div\n class={{\n 'file-upload-area': true,\n 'file-over':\n this.state !== UploadFileState.LOADING && this.isFileOver,\n checking: this.state === UploadFileState.LOADING,\n disabled: this.disabled,\n multiline: this.multiline,\n }}\n onDrop={(e) => {\n if (this.state !== UploadFileState.LOADING) {\n this.fileDropped(e);\n }\n }}\n onDragOver={(e) => this.fileOver(e)}\n onDragLeave={() => this.fileLeave()}\n draggable={!this.disabled}\n >\n {this.renderUploadState()}\n <div>\n <input\n multiple={this.multiple}\n type=\"file\"\n class=\"upload-browser\"\n id=\"upload-browser\"\n onChange={(e) => {\n this.fileChangeEvent(e);\n }}\n accept={this.accept}\n />\n <ix-button\n tabindex=\"-1\"\n outline\n onClick={() => this.inputElement.click()}\n disabled={this.disabled || this.state === UploadFileState.LOADING}\n >\n {this.i18nUploadFile}\n </ix-button>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -131,13 +131,13 @@ const ValidationTooltip = /*@__PURE__*/ proxyCustomElement(class ValidationToolt
131
131
  }
132
132
  render() {
133
133
  var _a, _b;
134
- return (h(Host, { key: '2adabc09b27adab332a05e06f95f778e635db7cf' }, h("slot", { key: '9737aa1f46813f88404c5a80eaf0b8e1c6b166c4' }), h("div", { key: '6be2cd8f7c24bd7c3ddc42218ca0b70d3c56dc0a', role: "tooltip", style: {
134
+ return (h(Host, { key: '0c772922a6bdaec23f9d83246d593b46c26e291b' }, h("slot", { key: '198a41c6cb92903c326f2e8d5df3e6a0c92c6522' }), h("div", { key: '717146460e3883374b1c0fbd42d279e5b4d27f8e', role: "tooltip", style: {
135
135
  display: 'none',
136
136
  position: 'fixed',
137
137
  top: '0',
138
138
  left: '0',
139
139
  transform: `translate(${Math.round(((_a = this.tooltipPosition) === null || _a === void 0 ? void 0 : _a.x) || 0)}px,${Math.round(((_b = this.tooltipPosition) === null || _b === void 0 ? void 0 : _b.y) || 0)}px)`,
140
- }, class: "validation-tooltip text-default" }, this.message, h("slot", { key: '228c539e4447ce9a4c89ffe584f9b712ccaa1924', name: "tooltip-message" }), h("div", { key: 'cdbaf18c6c2033b9b03e33b4e5826309f504df14', id: "arrow" }))));
140
+ }, class: "validation-tooltip text-default" }, this.message, h("slot", { key: '6e60e1004bb8d37adb63dd220c7ff0353510b6fa', name: "tooltip-message" }), h("div", { key: 'a6050ccd86d15333835273a011860178df314ee1', id: "arrow" }))));
141
141
  }
142
142
  get hostElement() { return this; }
143
143
  static get watchers() { return {