@siemens/ix 2.6.0 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1228) hide show
  1. package/components/a11y.js.map +1 -1
  2. package/components/application-header.js +20 -11
  3. package/components/application-header.js.map +1 -1
  4. package/components/avatar.js.map +1 -1
  5. package/components/breadcrumb-item.js.map +1 -1
  6. package/components/button.js +7 -2
  7. package/components/button.js.map +1 -1
  8. package/components/card-content.js +2 -2
  9. package/components/card-content.js.map +1 -1
  10. package/components/card-title.js +2 -2
  11. package/components/card-title.js.map +1 -1
  12. package/components/card.js +1 -1
  13. package/components/card.js.map +1 -1
  14. package/components/date-picker.js +4 -4
  15. package/components/date-picker.js.map +1 -1
  16. package/components/divider.js +1 -1
  17. package/components/dropdown-item.js +4 -4
  18. package/components/dropdown-item.js.map +1 -1
  19. package/components/dropdown.js +2 -2
  20. package/components/field-label.js +1 -1
  21. package/components/field-label.js.map +1 -1
  22. package/components/field-wrapper.js +2 -2
  23. package/components/field-wrapper.js.map +1 -1
  24. package/components/filter-chip.js +2 -2
  25. package/components/filter-chip.js.map +1 -1
  26. package/components/group-context-menu.js +1 -1
  27. package/components/group-context-menu.js.map +1 -1
  28. package/components/group-item.js +2 -2
  29. package/components/icon-button.js +4 -4
  30. package/components/icon-button.js.map +1 -1
  31. package/components/index.js +4 -0
  32. package/components/index.js.map +1 -1
  33. package/components/index2.js +4 -0
  34. package/components/index2.js.map +1 -1
  35. package/components/index3.js +2 -1
  36. package/components/index3.js.map +1 -1
  37. package/components/input.util.js +30 -10
  38. package/components/input.util.js.map +1 -1
  39. package/components/ix-application-switch-modal.js +1 -1
  40. package/components/ix-application-switch-modal.js.map +1 -1
  41. package/components/ix-application.js +7 -3
  42. package/components/ix-application.js.map +1 -1
  43. package/components/ix-basic-navigation.js +2 -2
  44. package/components/ix-basic-navigation.js.map +1 -1
  45. package/components/ix-card-list.js +6 -6
  46. package/components/ix-card-list.js.map +1 -1
  47. package/components/ix-category-filter.js +4 -4
  48. package/components/ix-category-filter.js.map +1 -1
  49. package/components/ix-checkbox-group.js +2 -2
  50. package/components/ix-checkbox.js +5 -4
  51. package/components/ix-checkbox.js.map +1 -1
  52. package/components/ix-chip.js +5 -5
  53. package/components/ix-chip.js.map +1 -1
  54. package/components/ix-content.js +3 -3
  55. package/components/ix-css-grid-item.js +1 -1
  56. package/components/ix-css-grid-item.js.map +1 -1
  57. package/components/ix-custom-field.js +1 -1
  58. package/components/ix-date-dropdown.js +13 -5
  59. package/components/ix-date-dropdown.js.map +1 -1
  60. package/components/ix-date-input.js +12 -13
  61. package/components/ix-date-input.js.map +1 -1
  62. package/components/ix-drawer.js +2 -2
  63. package/components/ix-dropdown-header.js +1 -1
  64. package/components/ix-dropdown-header.js.map +1 -1
  65. package/components/ix-dropdown-quick-actions.js +1 -1
  66. package/components/ix-empty-state.js +1 -1
  67. package/components/ix-empty-state.js.map +1 -1
  68. package/components/ix-event-list-item.js +4 -4
  69. package/components/ix-event-list.js +2 -2
  70. package/components/ix-expanding-search.js +10 -4
  71. package/components/ix-expanding-search.js.map +1 -1
  72. package/components/ix-flip-tile-content.js +1 -1
  73. package/components/ix-flip-tile.js +6 -5
  74. package/components/ix-flip-tile.js.map +1 -1
  75. package/components/ix-group.js +8 -8
  76. package/components/ix-group.js.map +1 -1
  77. package/components/ix-helper-text.js +1 -1
  78. package/components/ix-icon-toggle-button.js +1 -1
  79. package/components/ix-icon-toggle-button.js.map +1 -1
  80. package/components/ix-input-group.js +1 -1
  81. package/components/ix-input-group.js.map +1 -1
  82. package/components/ix-input.js +12 -7
  83. package/components/ix-input.js.map +1 -1
  84. package/components/ix-key-value-list.js +2 -2
  85. package/components/ix-key-value-list.js.map +1 -1
  86. package/components/ix-key-value.js +1 -1
  87. package/components/ix-key-value.js.map +1 -1
  88. package/components/ix-kpi.js +3 -3
  89. package/components/ix-kpi.js.map +1 -1
  90. package/components/ix-layout-auto.js +1 -1
  91. package/components/ix-link-button.js +3 -3
  92. package/components/ix-link-button.js.map +1 -1
  93. package/components/ix-map-navigation.js +4 -4
  94. package/components/ix-map-navigation.js.map +1 -1
  95. package/components/ix-menu-about-item.js +1 -1
  96. package/components/ix-menu-about-item.js.map +1 -1
  97. package/components/ix-menu-about-news.js +4 -4
  98. package/components/ix-menu-about-news.js.map +1 -1
  99. package/components/ix-menu-about.js +1 -1
  100. package/components/ix-menu-about.js.map +1 -1
  101. package/components/ix-menu-avatar.js +2 -2
  102. package/components/ix-menu-avatar.js.map +1 -1
  103. package/components/ix-menu-category.js +28 -13
  104. package/components/ix-menu-category.js.map +1 -1
  105. package/components/ix-menu-settings-item.js +1 -1
  106. package/components/ix-menu-settings-item.js.map +1 -1
  107. package/components/ix-menu.js +24 -16
  108. package/components/ix-menu.js.map +1 -1
  109. package/components/ix-message-bar.js +4 -2
  110. package/components/ix-message-bar.js.map +1 -1
  111. package/components/ix-modal-footer.js +1 -1
  112. package/components/ix-modal-loading.js +1 -1
  113. package/components/ix-modal.js +3 -3
  114. package/components/ix-modal.js.map +1 -1
  115. package/components/ix-number-input.js +14 -9
  116. package/components/ix-number-input.js.map +1 -1
  117. package/components/ix-pagination.js +8 -5
  118. package/components/ix-pagination.js.map +1 -1
  119. package/components/ix-pane-layout.js +1 -1
  120. package/components/ix-pill.js +19 -8
  121. package/components/ix-pill.js.map +1 -1
  122. package/components/ix-push-card.js +1 -1
  123. package/components/ix-push-card.js.map +1 -1
  124. package/components/ix-radio-group.js +2 -2
  125. package/components/ix-radio.js +6 -5
  126. package/components/ix-radio.js.map +1 -1
  127. package/components/ix-split-button-item.js +1 -1
  128. package/components/ix-split-button-item.js.map +1 -1
  129. package/components/ix-split-button.js +1 -1
  130. package/components/ix-split-button.js.map +1 -1
  131. package/components/ix-textarea.js +3 -3
  132. package/components/ix-textarea.js.map +1 -1
  133. package/components/ix-tile.js +4 -4
  134. package/components/ix-tile.js.map +1 -1
  135. package/components/ix-toast-container.js +10 -6
  136. package/components/ix-toast-container.js.map +1 -1
  137. package/components/ix-toggle-button.js +2 -2
  138. package/components/ix-toggle-button.js.map +1 -1
  139. package/components/ix-toggle.js +25 -5
  140. package/components/ix-toggle.js.map +1 -1
  141. package/components/ix-tree.js +330 -496
  142. package/components/ix-tree.js.map +1 -1
  143. package/components/ix-upload.js +3 -3
  144. package/components/ix-validation-tooltip.js +5 -2
  145. package/components/ix-validation-tooltip.js.map +1 -1
  146. package/components/ix-workflow-step.js +4 -3
  147. package/components/ix-workflow-step.js.map +1 -1
  148. package/components/ix-workflow-steps.js +1 -1
  149. package/components/ix-workflow-steps.js.map +1 -1
  150. package/components/layout-grid.js +2 -2
  151. package/components/make-ref.js.map +1 -1
  152. package/components/map-navigation-overlay.js +2 -2
  153. package/components/map-navigation-overlay.js.map +1 -1
  154. package/components/menu-avatar-item.js +1 -1
  155. package/components/menu-avatar-item.js.map +1 -1
  156. package/components/menu-expand-icon.js +1 -1
  157. package/components/menu-expand-icon.js.map +1 -1
  158. package/components/menu-item.js +3 -3
  159. package/components/menu-tabs-fc.js +10 -3
  160. package/components/menu-tabs-fc.js.map +1 -1
  161. package/components/modal-content.js +1 -1
  162. package/components/modal-header.js +1 -1
  163. package/components/modal.js +6 -0
  164. package/components/modal.js.map +1 -1
  165. package/components/row.js +1 -1
  166. package/components/select-item.js +1 -1
  167. package/components/select.js +95 -57
  168. package/components/select.js.map +1 -1
  169. package/components/shadow-dom.js.map +1 -1
  170. package/components/spinner.js +1 -1
  171. package/components/tabs.js +2 -2
  172. package/components/time-picker.js +1 -1
  173. package/components/time-picker.js.map +1 -1
  174. package/components/toast.js +2 -2
  175. package/components/toast.js.map +1 -1
  176. package/components/tooltip.js +2 -2
  177. package/components/tree-item.js +6 -5
  178. package/components/tree-item.js.map +1 -1
  179. package/components/validation.js +1 -7
  180. package/components/validation.js.map +1 -1
  181. package/dist/cjs/a11y-ae470f01.js.map +1 -1
  182. package/dist/cjs/{app-globals-3c9c6a50.js → app-globals-ca59f3ec.js} +2 -2
  183. package/dist/cjs/{app-globals-3c9c6a50.js.map → app-globals-ca59f3ec.js.map} +1 -1
  184. package/dist/cjs/core-js-b22adfab.js +26 -0
  185. package/dist/cjs/core-js-b22adfab.js.map +1 -0
  186. package/dist/cjs/{helper-text-util-3192e78f.js → helper-text-util-635a1877.js} +2 -2
  187. package/dist/cjs/{helper-text-util-3192e78f.js.map → helper-text-util-635a1877.js.map} +1 -1
  188. package/dist/cjs/{index-74904d8b.js → index-12d386cf.js} +6 -2
  189. package/dist/cjs/index-12d386cf.js.map +1 -0
  190. package/dist/cjs/{index-d2117dc0.js → index-b44a6617.js} +3 -1
  191. package/dist/cjs/index-b44a6617.js.map +1 -0
  192. package/dist/cjs/index.cjs.js +6 -2
  193. package/dist/cjs/index.cjs.js.map +1 -1
  194. package/dist/cjs/{index.es2017-0c2b80b6.js → index.es2017-805b5876.js} +3 -3
  195. package/dist/cjs/{index.es2017-0c2b80b6.js.map → index.es2017-805b5876.js.map} +1 -1
  196. package/dist/cjs/{input.util-1c2fa43d.js → input.util-dee6616a.js} +32 -11
  197. package/dist/cjs/input.util-dee6616a.js.map +1 -0
  198. package/dist/cjs/ix-application-header.cjs.entry.js +22 -13
  199. package/dist/cjs/ix-application-header.cjs.entry.js.map +1 -1
  200. package/dist/cjs/ix-application-switch-modal.cjs.entry.js +2 -2
  201. package/dist/cjs/ix-application-switch-modal.cjs.entry.js.map +1 -1
  202. package/dist/cjs/ix-application.cjs.entry.js +7 -3
  203. package/dist/cjs/ix-application.cjs.entry.js.map +1 -1
  204. package/dist/cjs/ix-avatar_2.cjs.entry.js +1 -1
  205. package/dist/cjs/ix-avatar_2.cjs.entry.js.map +1 -1
  206. package/dist/cjs/ix-basic-navigation.cjs.entry.js +2 -2
  207. package/dist/cjs/ix-basic-navigation.cjs.entry.js.map +1 -1
  208. package/dist/cjs/ix-breadcrumb-item.cjs.entry.js.map +1 -1
  209. package/dist/cjs/ix-button.cjs.entry.js +7 -2
  210. package/dist/cjs/ix-button.cjs.entry.js.map +1 -1
  211. package/dist/cjs/ix-card-accordion_2.cjs.entry.js +2 -2
  212. package/dist/cjs/ix-card-accordion_2.cjs.entry.js.map +1 -1
  213. package/dist/cjs/ix-card-list.cjs.entry.js +6 -6
  214. package/dist/cjs/ix-card-list.cjs.entry.js.map +1 -1
  215. package/dist/cjs/ix-card_2.cjs.entry.js +3 -3
  216. package/dist/cjs/ix-card_2.cjs.entry.js.map +1 -1
  217. package/dist/cjs/ix-category-filter.cjs.entry.js +4 -4
  218. package/dist/cjs/ix-category-filter.cjs.entry.js.map +1 -1
  219. package/dist/cjs/ix-checkbox-group.cjs.entry.js +3 -3
  220. package/dist/cjs/ix-checkbox.cjs.entry.js +6 -5
  221. package/dist/cjs/ix-checkbox.cjs.entry.js.map +1 -1
  222. package/dist/cjs/ix-chip.cjs.entry.js +5 -5
  223. package/dist/cjs/ix-chip.cjs.entry.js.map +1 -1
  224. package/dist/cjs/ix-col_4.cjs.entry.js +8 -8
  225. package/dist/cjs/ix-col_4.cjs.entry.js.map +1 -1
  226. package/dist/cjs/ix-content.cjs.entry.js +3 -3
  227. package/dist/cjs/ix-css-grid-item.cjs.entry.js +1 -1
  228. package/dist/cjs/ix-css-grid-item.cjs.entry.js.map +1 -1
  229. package/dist/cjs/ix-custom-field.cjs.entry.js +2 -2
  230. package/dist/cjs/ix-date-dropdown.cjs.entry.js +9 -5
  231. package/dist/cjs/ix-date-dropdown.cjs.entry.js.map +1 -1
  232. package/dist/cjs/ix-date-input.cjs.entry.js +13 -13
  233. package/dist/cjs/ix-date-input.cjs.entry.js.map +1 -1
  234. package/dist/cjs/ix-divider.cjs.entry.js +1 -1
  235. package/dist/cjs/ix-drawer.cjs.entry.js +2 -2
  236. package/dist/cjs/ix-dropdown-header.cjs.entry.js +1 -1
  237. package/dist/cjs/ix-dropdown-header.cjs.entry.js.map +1 -1
  238. package/dist/cjs/ix-dropdown-item.cjs.entry.js +4 -4
  239. package/dist/cjs/ix-dropdown-item.cjs.entry.js.map +1 -1
  240. package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +1 -1
  241. package/dist/cjs/ix-dropdown.cjs.entry.js +2 -2
  242. package/dist/cjs/ix-empty-state.cjs.entry.js +1 -1
  243. package/dist/cjs/ix-empty-state.cjs.entry.js.map +1 -1
  244. package/dist/cjs/ix-event-list-item.cjs.entry.js +4 -4
  245. package/dist/cjs/ix-event-list.cjs.entry.js +2 -2
  246. package/dist/cjs/ix-expanding-search.cjs.entry.js +7 -4
  247. package/dist/cjs/ix-expanding-search.cjs.entry.js.map +1 -1
  248. package/dist/cjs/ix-field-label_3.cjs.entry.js +8 -8
  249. package/dist/cjs/ix-field-label_3.cjs.entry.js.map +1 -1
  250. package/dist/cjs/ix-filter-chip_2.cjs.entry.js +3 -3
  251. package/dist/cjs/ix-filter-chip_2.cjs.entry.js.map +1 -1
  252. package/dist/cjs/ix-flip-tile-content.cjs.entry.js +1 -1
  253. package/dist/cjs/ix-flip-tile.cjs.entry.js +6 -5
  254. package/dist/cjs/ix-flip-tile.cjs.entry.js.map +1 -1
  255. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +3 -3
  256. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js.map +1 -1
  257. package/dist/cjs/ix-group.cjs.entry.js +8 -8
  258. package/dist/cjs/ix-group.cjs.entry.js.map +1 -1
  259. package/dist/cjs/ix-helper-text.cjs.entry.js +4 -4
  260. package/dist/cjs/ix-icon-button_2.cjs.entry.js +5 -5
  261. package/dist/cjs/ix-icon-button_2.cjs.entry.js.map +1 -1
  262. package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +1 -1
  263. package/dist/cjs/ix-icon-toggle-button.cjs.entry.js.map +1 -1
  264. package/dist/cjs/{ix-icon.entry-e95ddded.js → ix-icon.entry-e33446e2.js} +2 -2
  265. package/dist/cjs/{ix-icon.entry-e95ddded.js.map → ix-icon.entry-e33446e2.js.map} +1 -1
  266. package/dist/cjs/ix-input-group.cjs.entry.js +1 -1
  267. package/dist/cjs/ix-input-group.cjs.entry.js.map +1 -1
  268. package/dist/cjs/ix-input.cjs.entry.js +15 -9
  269. package/dist/cjs/ix-input.cjs.entry.js.map +1 -1
  270. package/dist/cjs/ix-key-value-list.cjs.entry.js +2 -2
  271. package/dist/cjs/ix-key-value-list.cjs.entry.js.map +1 -1
  272. package/dist/cjs/ix-key-value.cjs.entry.js +1 -1
  273. package/dist/cjs/ix-key-value.cjs.entry.js.map +1 -1
  274. package/dist/cjs/ix-kpi.cjs.entry.js +3 -3
  275. package/dist/cjs/ix-kpi.cjs.entry.js.map +1 -1
  276. package/dist/cjs/ix-layout-auto.cjs.entry.js +1 -1
  277. package/dist/cjs/ix-link-button.cjs.entry.js +3 -3
  278. package/dist/cjs/ix-link-button.cjs.entry.js.map +1 -1
  279. package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js +2 -2
  280. package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js.map +1 -1
  281. package/dist/cjs/ix-map-navigation.cjs.entry.js +4 -4
  282. package/dist/cjs/ix-map-navigation.cjs.entry.js.map +1 -1
  283. package/dist/cjs/ix-menu-about-item.cjs.entry.js +1 -1
  284. package/dist/cjs/ix-menu-about-item.cjs.entry.js.map +1 -1
  285. package/dist/cjs/ix-menu-about-news.cjs.entry.js +4 -4
  286. package/dist/cjs/ix-menu-about-news.cjs.entry.js.map +1 -1
  287. package/dist/cjs/ix-menu-about.cjs.entry.js +2 -2
  288. package/dist/cjs/ix-menu-about.cjs.entry.js.map +1 -1
  289. package/dist/cjs/ix-menu-avatar.cjs.entry.js +2 -2
  290. package/dist/cjs/ix-menu-avatar.cjs.entry.js.map +1 -1
  291. package/dist/cjs/ix-menu-category.cjs.entry.js +28 -13
  292. package/dist/cjs/ix-menu-category.cjs.entry.js.map +1 -1
  293. package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +1 -1
  294. package/dist/cjs/ix-menu-expand-icon.cjs.entry.js.map +1 -1
  295. package/dist/cjs/ix-menu-item.cjs.entry.js +3 -3
  296. package/dist/cjs/ix-menu-settings-item.cjs.entry.js +1 -1
  297. package/dist/cjs/ix-menu-settings-item.cjs.entry.js.map +1 -1
  298. package/dist/cjs/ix-menu-settings.cjs.entry.js +1 -1
  299. package/dist/cjs/ix-menu.cjs.entry.js +26 -18
  300. package/dist/cjs/ix-menu.cjs.entry.js.map +1 -1
  301. package/dist/cjs/ix-message-bar.cjs.entry.js +4 -2
  302. package/dist/cjs/ix-message-bar.cjs.entry.js.map +1 -1
  303. package/dist/cjs/ix-modal-content_2.cjs.entry.js +2 -2
  304. package/dist/cjs/ix-modal-footer.cjs.entry.js +1 -1
  305. package/dist/cjs/ix-modal-loading.cjs.entry.js +1 -1
  306. package/dist/cjs/ix-modal.cjs.entry.js +3 -3
  307. package/dist/cjs/ix-modal.cjs.entry.js.map +1 -1
  308. package/dist/cjs/ix-number-input.cjs.entry.js +17 -11
  309. package/dist/cjs/ix-number-input.cjs.entry.js.map +1 -1
  310. package/dist/cjs/ix-pagination.cjs.entry.js +8 -5
  311. package/dist/cjs/ix-pagination.cjs.entry.js.map +1 -1
  312. package/dist/cjs/ix-pane-layout.cjs.entry.js +1 -1
  313. package/dist/cjs/ix-pill.cjs.entry.js +17 -7
  314. package/dist/cjs/ix-pill.cjs.entry.js.map +1 -1
  315. package/dist/cjs/ix-push-card.cjs.entry.js +1 -1
  316. package/dist/cjs/ix-push-card.cjs.entry.js.map +1 -1
  317. package/dist/cjs/ix-radio-group.cjs.entry.js +3 -3
  318. package/dist/cjs/ix-radio.cjs.entry.js +6 -5
  319. package/dist/cjs/ix-radio.cjs.entry.js.map +1 -1
  320. package/dist/cjs/ix-select.cjs.entry.js +93 -57
  321. package/dist/cjs/ix-select.cjs.entry.js.map +1 -1
  322. package/dist/cjs/ix-split-button-item.cjs.entry.js +1 -1
  323. package/dist/cjs/ix-split-button-item.cjs.entry.js.map +1 -1
  324. package/dist/cjs/ix-split-button.cjs.entry.js +1 -1
  325. package/dist/cjs/ix-split-button.cjs.entry.js.map +1 -1
  326. package/dist/cjs/ix-tab-item_2.cjs.entry.js +2 -2
  327. package/dist/cjs/ix-textarea.cjs.entry.js +6 -5
  328. package/dist/cjs/ix-textarea.cjs.entry.js.map +1 -1
  329. package/dist/cjs/ix-tile.cjs.entry.js +4 -4
  330. package/dist/cjs/ix-tile.cjs.entry.js.map +1 -1
  331. package/dist/cjs/ix-time-picker.cjs.entry.js +2 -2
  332. package/dist/cjs/ix-time-picker.cjs.entry.js.map +1 -1
  333. package/dist/cjs/ix-toast-container.cjs.entry.js +10 -6
  334. package/dist/cjs/ix-toast-container.cjs.entry.js.map +1 -1
  335. package/dist/cjs/ix-toast.cjs.entry.js +2 -2
  336. package/dist/cjs/ix-toast.cjs.entry.js.map +1 -1
  337. package/dist/cjs/ix-toggle-button.cjs.entry.js +2 -2
  338. package/dist/cjs/ix-toggle-button.cjs.entry.js.map +1 -1
  339. package/dist/cjs/ix-toggle.cjs.entry.js +17 -3
  340. package/dist/cjs/ix-toggle.cjs.entry.js.map +1 -1
  341. package/dist/cjs/ix-tree-item.cjs.entry.js +6 -5
  342. package/dist/cjs/ix-tree-item.cjs.entry.js.map +1 -1
  343. package/dist/cjs/ix-tree.cjs.entry.js +330 -489
  344. package/dist/cjs/ix-tree.cjs.entry.js.map +1 -1
  345. package/dist/cjs/ix-upload.cjs.entry.js +3 -3
  346. package/dist/cjs/ix-validation-tooltip.cjs.entry.js +5 -2
  347. package/dist/cjs/ix-validation-tooltip.cjs.entry.js.map +1 -1
  348. package/dist/cjs/ix-workflow-step.cjs.entry.js +4 -3
  349. package/dist/cjs/ix-workflow-step.cjs.entry.js.map +1 -1
  350. package/dist/cjs/ix-workflow-steps.cjs.entry.js +1 -1
  351. package/dist/cjs/ix-workflow-steps.cjs.entry.js.map +1 -1
  352. package/dist/cjs/loader.cjs.js +3 -3
  353. package/dist/cjs/make-ref-499e1e41.js.map +1 -1
  354. package/dist/cjs/{menu-tabs-fc-eb899b0d.js → menu-tabs-fc-a9f928f5.js} +11 -4
  355. package/dist/cjs/menu-tabs-fc-a9f928f5.js.map +1 -0
  356. package/dist/cjs/{modal-a49409aa.js → modal-923c83a6.js} +7 -1
  357. package/dist/cjs/modal-923c83a6.js.map +1 -0
  358. package/dist/cjs/{setup-86b7d543.js → setup-49660b91.js} +13 -3
  359. package/dist/cjs/setup-49660b91.js.map +1 -0
  360. package/dist/cjs/shadow-dom-454acc38.js.map +1 -1
  361. package/dist/cjs/siemens-ix.cjs.js +3 -3
  362. package/dist/cjs/{validation-1e3dd5ee.js → validation-cb884b13.js} +2 -8
  363. package/dist/cjs/validation-cb884b13.js.map +1 -0
  364. package/dist/collection/components/action-card/action-card.js +3 -3
  365. package/dist/collection/components/application/application.js +12 -8
  366. package/dist/collection/components/application/application.js.map +1 -1
  367. package/dist/collection/components/application-header/application-header.js +39 -13
  368. package/dist/collection/components/application-header/application-header.js.map +1 -1
  369. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js +3 -3
  370. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js.map +1 -1
  371. package/dist/collection/components/application-header/test/application-header.ct.js +2 -2
  372. package/dist/collection/components/application-header/test/application-header.ct.js.map +1 -1
  373. package/dist/collection/components/avatar/avatar.js +4 -4
  374. package/dist/collection/components/avatar/avatar.js.map +1 -1
  375. package/dist/collection/components/basic-navigation/basic-navigation.js +5 -5
  376. package/dist/collection/components/basic-navigation/basic-navigation.js.map +1 -1
  377. package/dist/collection/components/blind/blind.js +3 -3
  378. package/dist/collection/components/breadcrumb-item/breadcrumb-item.js +4 -4
  379. package/dist/collection/components/breadcrumb-item/breadcrumb-item.js.map +1 -1
  380. package/dist/collection/components/button/button-component.js +2 -0
  381. package/dist/collection/components/button/button-component.js.map +1 -0
  382. package/dist/collection/components/button/button.js +8 -3
  383. package/dist/collection/components/button/button.js.map +1 -1
  384. package/dist/collection/components/button/test/button.spec.js.map +1 -1
  385. package/dist/collection/components/card/card.css +7 -0
  386. package/dist/collection/components/card-content/card-content.css +13 -5
  387. package/dist/collection/components/card-content/card-content.js +1 -1
  388. package/dist/collection/components/card-content/card-content.js.map +1 -1
  389. package/dist/collection/components/card-list/card-list.css +1 -0
  390. package/dist/collection/components/card-list/card-list.js +7 -7
  391. package/dist/collection/components/card-list/card-list.js.map +1 -1
  392. package/dist/collection/components/card-title/card-title.css +2 -2
  393. package/dist/collection/components/card-title/card-title.js +1 -1
  394. package/dist/collection/components/category-filter/category-filter.css +3 -3
  395. package/dist/collection/components/category-filter/category-filter.js +9 -9
  396. package/dist/collection/components/category-filter/filter-state.js +4 -0
  397. package/dist/collection/components/category-filter/filter-state.js.map +1 -1
  398. package/dist/collection/components/checkbox/checkbox.css +216 -91
  399. package/dist/collection/components/checkbox/checkbox.js +7 -6
  400. package/dist/collection/components/checkbox/checkbox.js.map +1 -1
  401. package/dist/collection/components/checkbox/tests/checkbox.ct.js +20 -0
  402. package/dist/collection/components/checkbox/tests/checkbox.ct.js.map +1 -1
  403. package/dist/collection/components/checkbox-group/checkbox-group.js +8 -8
  404. package/dist/collection/components/chip/chip.js +10 -10
  405. package/dist/collection/components/chip/chip.js.map +1 -1
  406. package/dist/collection/components/chip/test/chip.ct.js +4 -2
  407. package/dist/collection/components/chip/test/chip.ct.js.map +1 -1
  408. package/dist/collection/components/col/col.js +4 -4
  409. package/dist/collection/components/content/content.js +3 -3
  410. package/dist/collection/components/content-header/content-header.js +2 -2
  411. package/dist/collection/components/css-grid/css-grid-item.js +2 -2
  412. package/dist/collection/components/css-grid/css-grid-item.js.map +1 -1
  413. package/dist/collection/components/css-grid/css-grid.js +1 -1
  414. package/dist/collection/components/custom-field/custom-field.js +8 -8
  415. package/dist/collection/components/date-dropdown/date-dropdown.js +88 -6
  416. package/dist/collection/components/date-dropdown/date-dropdown.js.map +1 -1
  417. package/dist/collection/components/date-dropdown/test/date-dropdown.ct.js +1 -0
  418. package/dist/collection/components/date-dropdown/test/date-dropdown.ct.js.map +1 -1
  419. package/dist/collection/components/date-input/date-input.css +6 -6
  420. package/dist/collection/components/date-input/date-input.js +27 -26
  421. package/dist/collection/components/date-input/date-input.js.map +1 -1
  422. package/dist/collection/components/date-picker/date-picker.js +9 -9
  423. package/dist/collection/components/date-picker/date-picker.js.map +1 -1
  424. package/dist/collection/components/date-time-card/date-time-card.js +1 -1
  425. package/dist/collection/components/datetime-picker/datetime-picker.js +8 -8
  426. package/dist/collection/components/divider/divider.js +1 -1
  427. package/dist/collection/components/drawer/drawer.js +3 -3
  428. package/dist/collection/components/dropdown/dropdown.js +7 -7
  429. package/dist/collection/components/dropdown/test/dropdown.ct.js.map +1 -1
  430. package/dist/collection/components/dropdown-button/dropdown-button.js +3 -3
  431. package/dist/collection/components/dropdown-header/dropdown-header.js +3 -3
  432. package/dist/collection/components/dropdown-header/dropdown-header.js.map +1 -1
  433. package/dist/collection/components/dropdown-item/dropdown-item.css +0 -3
  434. package/dist/collection/components/dropdown-item/dropdown-item.js +5 -5
  435. package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js +1 -1
  436. package/dist/collection/components/empty-state/empty-state.js +7 -7
  437. package/dist/collection/components/empty-state/empty-state.js.map +1 -1
  438. package/dist/collection/components/event-list/event-list.js +2 -2
  439. package/dist/collection/components/event-list-item/event-list-item.js +6 -6
  440. package/dist/collection/components/expanding-search/expanding-search.js +67 -4
  441. package/dist/collection/components/expanding-search/expanding-search.js.map +1 -1
  442. package/dist/collection/components/expanding-search/test/expanding-search.spec.js +5 -4
  443. package/dist/collection/components/expanding-search/test/expanding-search.spec.js.map +1 -1
  444. package/dist/collection/components/field-label/field-label.js +15 -7
  445. package/dist/collection/components/field-label/field-label.js.map +1 -1
  446. package/dist/collection/components/field-label/tests/field-label.ct.js +2 -2
  447. package/dist/collection/components/field-label/tests/field-label.ct.js.map +1 -1
  448. package/dist/collection/components/field-wrapper/field-wrapper.js +19 -11
  449. package/dist/collection/components/field-wrapper/field-wrapper.js.map +1 -1
  450. package/dist/collection/components/filter-chip/filter-chip.js +2 -2
  451. package/dist/collection/components/filter-chip/filter-chip.js.map +1 -1
  452. package/dist/collection/components/flip-tile/flip-tile.js +8 -7
  453. package/dist/collection/components/flip-tile/flip-tile.js.map +1 -1
  454. package/dist/collection/components/flip-tile-content/flip-tile-content.js +1 -1
  455. package/dist/collection/components/group/group-context-menu.js +1 -1
  456. package/dist/collection/components/group/group-context-menu.js.map +1 -1
  457. package/dist/collection/components/group/group.js +11 -11
  458. package/dist/collection/components/group/group.js.map +1 -1
  459. package/dist/collection/components/group-item/group-item.js +6 -6
  460. package/dist/collection/components/helper-text/helper-text.js +7 -7
  461. package/dist/collection/components/icon-button/icon-button.js +18 -15
  462. package/dist/collection/components/icon-button/icon-button.js.map +1 -1
  463. package/dist/collection/components/icon-button/test/icon-button.spec.js +16 -33
  464. package/dist/collection/components/icon-button/test/icon-button.spec.js.map +1 -1
  465. package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +3 -3
  466. package/dist/collection/components/icon-toggle-button/icon-toggle-button.js.map +1 -1
  467. package/dist/collection/components/input/input.css +6 -6
  468. package/dist/collection/components/input/input.fc.js +4 -8
  469. package/dist/collection/components/input/input.fc.js.map +1 -1
  470. package/dist/collection/components/input/input.js +27 -20
  471. package/dist/collection/components/input/input.js.map +1 -1
  472. package/dist/collection/components/input/input.util.js +25 -1
  473. package/dist/collection/components/input/input.util.js.map +1 -1
  474. package/dist/collection/components/input/number-input.css +3 -3
  475. package/dist/collection/components/input/number-input.js +31 -24
  476. package/dist/collection/components/input/number-input.js.map +1 -1
  477. package/dist/collection/components/input/tests/validation.ct.js +21 -0
  478. package/dist/collection/components/input/tests/validation.ct.js.map +1 -0
  479. package/dist/collection/components/input/textarea.css +3 -3
  480. package/dist/collection/components/input/textarea.js +18 -18
  481. package/dist/collection/components/input/textarea.js.map +1 -1
  482. package/dist/collection/components/input-group/input-group.js +1 -1
  483. package/dist/collection/components/input-group/input-group.js.map +1 -1
  484. package/dist/collection/components/key-value/key-value.js +5 -5
  485. package/dist/collection/components/key-value/key-value.js.map +1 -1
  486. package/dist/collection/components/key-value-list/key-value-list.js +4 -3
  487. package/dist/collection/components/key-value-list/key-value-list.js.map +1 -1
  488. package/dist/collection/components/kpi/kpi.js +9 -9
  489. package/dist/collection/components/kpi/kpi.js.map +1 -1
  490. package/dist/collection/components/layout-auto/layout-auto.js +1 -1
  491. package/dist/collection/components/layout-grid/layout-grid.js +2 -2
  492. package/dist/collection/components/link-button/link-button.js +5 -5
  493. package/dist/collection/components/link-button/link-button.js.map +1 -1
  494. package/dist/collection/components/map-navigation/map-navigation.js +11 -11
  495. package/dist/collection/components/map-navigation/map-navigation.js.map +1 -1
  496. package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +10 -10
  497. package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js.map +1 -1
  498. package/dist/collection/components/menu/menu-expand-icon.js +3 -3
  499. package/dist/collection/components/menu/menu-expand-icon.js.map +1 -1
  500. package/dist/collection/components/menu/menu.js +44 -19
  501. package/dist/collection/components/menu/menu.js.map +1 -1
  502. package/dist/collection/components/menu-about/menu-about.js +3 -3
  503. package/dist/collection/components/menu-about/menu-about.js.map +1 -1
  504. package/dist/collection/components/menu-about-item/menu-about-item.js +3 -3
  505. package/dist/collection/components/menu-about-item/menu-about-item.js.map +1 -1
  506. package/dist/collection/components/menu-about-news/menu-about-news.js +8 -8
  507. package/dist/collection/components/menu-about-news/menu-about-news.js.map +1 -1
  508. package/dist/collection/components/menu-avatar/menu-avatar.js +10 -10
  509. package/dist/collection/components/menu-avatar/menu-avatar.js.map +1 -1
  510. package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +5 -5
  511. package/dist/collection/components/menu-avatar-item/menu-avatar-item.js.map +1 -1
  512. package/dist/collection/components/menu-category/menu-category.js +34 -19
  513. package/dist/collection/components/menu-category/menu-category.js.map +1 -1
  514. package/dist/collection/components/menu-item/menu-item.js +7 -7
  515. package/dist/collection/components/menu-settings/menu-settings.js +3 -3
  516. package/dist/collection/components/menu-settings/menu-settings.js.map +1 -1
  517. package/dist/collection/components/menu-settings-item/menu-settings-item.js +3 -3
  518. package/dist/collection/components/menu-settings-item/menu-settings-item.js.map +1 -1
  519. package/dist/collection/components/message-bar/message-bar.js +4 -2
  520. package/dist/collection/components/message-bar/message-bar.js.map +1 -1
  521. package/dist/collection/components/message-bar/test/message-bar.spec.js.map +1 -1
  522. package/dist/collection/components/modal/modal.js +6 -6
  523. package/dist/collection/components/modal/modal.js.map +1 -1
  524. package/dist/collection/components/modal/test/modal.ct.js +57 -65
  525. package/dist/collection/components/modal/test/modal.ct.js.map +1 -1
  526. package/dist/collection/components/modal-content/modal-content.js +1 -1
  527. package/dist/collection/components/modal-footer/modal-footer.js +1 -1
  528. package/dist/collection/components/modal-header/modal-header.js +3 -3
  529. package/dist/collection/components/modal-loading/modal-loading.js +1 -1
  530. package/dist/collection/components/pagination/pagination.js +10 -6
  531. package/dist/collection/components/pagination/pagination.js.map +1 -1
  532. package/dist/collection/components/pagination/test/pagination.ct.js +1 -1
  533. package/dist/collection/components/pagination/test/pagination.ct.js.map +1 -1
  534. package/dist/collection/components/pagination/test/pagination.spec.js.map +1 -1
  535. package/dist/collection/components/pane/pane.js +2 -2
  536. package/dist/collection/components/pane-layout/pane-layout.js +1 -1
  537. package/dist/collection/components/pill/pill.css +14 -1
  538. package/dist/collection/components/pill/pill.js +25 -10
  539. package/dist/collection/components/pill/pill.js.map +1 -1
  540. package/dist/collection/components/pill/tests/pill.ct.js +23 -0
  541. package/dist/collection/components/pill/tests/pill.ct.js.map +1 -0
  542. package/dist/collection/components/push-card/push-card.css +8 -1
  543. package/dist/collection/components/push-card/push-card.js +4 -4
  544. package/dist/collection/components/radio/radio.css +0 -16
  545. package/dist/collection/components/radio/radio.js +9 -8
  546. package/dist/collection/components/radio/radio.js.map +1 -1
  547. package/dist/collection/components/radio/test/radio.ct.js +19 -0
  548. package/dist/collection/components/radio/test/radio.ct.js.map +1 -1
  549. package/dist/collection/components/radio-group/radio-group.js +10 -10
  550. package/dist/collection/components/row/row.js +1 -1
  551. package/dist/collection/components/select/select.css +3 -0
  552. package/dist/collection/components/select/select.js +142 -66
  553. package/dist/collection/components/select/select.js.map +1 -1
  554. package/dist/collection/components/select/test/select-keyboard.ct.js +379 -0
  555. package/dist/collection/components/select/test/select-keyboard.ct.js.map +1 -0
  556. package/dist/collection/components/select/test/select.ct.js +128 -308
  557. package/dist/collection/components/select/test/select.ct.js.map +1 -1
  558. package/dist/collection/components/select-item/select-item.js +3 -3
  559. package/dist/collection/components/select-item/test/select-item.spec.js +3 -6
  560. package/dist/collection/components/select-item/test/select-item.spec.js.map +1 -1
  561. package/dist/collection/components/slider/slider.js +2 -2
  562. package/dist/collection/components/spinner/spinner.js +1 -1
  563. package/dist/collection/components/split-button/split-button.js +3 -3
  564. package/dist/collection/components/split-button/split-button.js.map +1 -1
  565. package/dist/collection/components/split-button-item/split-button-item.js +5 -5
  566. package/dist/collection/components/split-button-item/split-button-item.js.map +1 -1
  567. package/dist/collection/components/tab-item/tab-item.js +1 -1
  568. package/dist/collection/components/tabs/tabs.js +2 -2
  569. package/dist/collection/components/tile/tile.js +4 -4
  570. package/dist/collection/components/tile/tile.js.map +1 -1
  571. package/dist/collection/components/time-picker/time-picker.css +3 -3
  572. package/dist/collection/components/time-picker/time-picker.js +4 -4
  573. package/dist/collection/components/toast/toast-container.js +10 -6
  574. package/dist/collection/components/toast/toast-container.js.map +1 -1
  575. package/dist/collection/components/toast/toast.js +8 -8
  576. package/dist/collection/components/toast/toast.js.map +1 -1
  577. package/dist/collection/components/toggle/toggle.css +376 -161
  578. package/dist/collection/components/toggle/toggle.js +19 -5
  579. package/dist/collection/components/toggle/toggle.js.map +1 -1
  580. package/dist/collection/components/toggle-button/toggle-button.js +4 -4
  581. package/dist/collection/components/toggle-button/toggle-button.js.map +1 -1
  582. package/dist/collection/components/tooltip/tooltip.js +4 -4
  583. package/dist/collection/components/tree/test/tree.ct.js.map +1 -1
  584. package/dist/collection/components/tree/tree.js +7 -4
  585. package/dist/collection/components/tree/tree.js.map +1 -1
  586. package/dist/collection/components/tree-item/tree-item.js +8 -7
  587. package/dist/collection/components/tree-item/tree-item.js.map +1 -1
  588. package/dist/collection/components/typography/typography.js +3 -3
  589. package/dist/collection/components/upload/upload.js +4 -4
  590. package/dist/collection/components/utils/a11y.js.map +1 -1
  591. package/dist/collection/components/utils/app-switch/index.js +4 -0
  592. package/dist/collection/components/utils/app-switch/index.js.map +1 -1
  593. package/dist/collection/components/utils/input/validation.js +1 -7
  594. package/dist/collection/components/utils/input/validation.js.map +1 -1
  595. package/dist/collection/components/utils/lazy-list/index.js +2 -0
  596. package/dist/collection/components/utils/lazy-list/index.js.map +1 -0
  597. package/dist/collection/components/utils/lazy-list/lazy.js +343 -0
  598. package/dist/collection/components/utils/lazy-list/lazy.js.map +1 -0
  599. package/dist/collection/components/utils/make-ref.js.map +1 -1
  600. package/dist/collection/components/utils/menu-tabs/menu-tabs-fc.js +5 -1
  601. package/dist/collection/components/utils/menu-tabs/menu-tabs-fc.js.map +1 -1
  602. package/dist/collection/components/utils/menu-tabs/menu-tabs-utils.js +4 -1
  603. package/dist/collection/components/utils/menu-tabs/menu-tabs-utils.js.map +1 -1
  604. package/dist/collection/components/utils/modal/modal.js +6 -0
  605. package/dist/collection/components/utils/modal/modal.js.map +1 -1
  606. package/dist/collection/components/utils/shadow-dom.js.map +1 -1
  607. package/dist/collection/components/validation-tooltip/validation-tooltip.js +7 -4
  608. package/dist/collection/components/validation-tooltip/validation-tooltip.js.map +1 -1
  609. package/dist/collection/components/workflow-step/workflow-step.js +4 -3
  610. package/dist/collection/components/workflow-step/workflow-step.js.map +1 -1
  611. package/dist/collection/components/workflow-steps/test/workflow-steps.spec.js.map +1 -1
  612. package/dist/collection/components/workflow-steps/workflow-steps.js +1 -1
  613. package/dist/collection/components/workflow-steps/workflow-steps.js.map +1 -1
  614. package/dist/collection/setup.ct.js +18 -0
  615. package/dist/collection/setup.ct.js.map +1 -0
  616. package/dist/collection/setup.js +11 -1
  617. package/dist/collection/setup.js.map +1 -1
  618. package/dist/collection/tests/application-header/application-header.e2e.js.map +1 -1
  619. package/dist/collection/tests/button/button.e2e.js.map +1 -1
  620. package/dist/collection/tests/card/card.e2e.js +6 -0
  621. package/dist/collection/tests/card/card.e2e.js.map +1 -1
  622. package/dist/collection/tests/date-dropdown/date-dropdown.e2e.js +3 -3
  623. package/dist/collection/tests/date-dropdown/date-dropdown.e2e.js.map +1 -1
  624. package/dist/collection/tests/date-input/date-input.e2e.js +17 -0
  625. package/dist/collection/tests/date-input/date-input.e2e.js.map +1 -0
  626. package/dist/collection/tests/expanding-search/expanding-search.e2e.js +1 -1
  627. package/dist/collection/tests/expanding-search/expanding-search.e2e.js.map +1 -1
  628. package/dist/collection/tests/html-tags/html-tags.e2e.js +17 -0
  629. package/dist/collection/tests/html-tags/html-tags.e2e.js.map +1 -0
  630. package/dist/collection/tests/icon-toggle-button/toggle-button.e2e.js.map +1 -1
  631. package/dist/collection/tests/input-common/input-common.e2e.js +27 -0
  632. package/dist/collection/tests/input-common/input-common.e2e.js.map +1 -0
  633. package/dist/collection/tests/menu/menu.e2e.js +11 -0
  634. package/dist/collection/tests/menu/menu.e2e.js.map +1 -1
  635. package/dist/collection/tests/push-card/push-card.e2e.js +6 -0
  636. package/dist/collection/tests/push-card/push-card.e2e.js.map +1 -1
  637. package/dist/collection/tests/toggle-button/toggle-button.e2e.js.map +1 -1
  638. package/dist/collection/tests/upload/upload.e2e.js +1 -1
  639. package/dist/collection/tests/upload/upload.e2e.js.map +1 -1
  640. package/dist/collection/tests/utils/test/page.js +37 -5
  641. package/dist/collection/tests/utils/test/page.js.map +1 -1
  642. package/dist/collection/tests/workflow-steps/workflow-steps.e2e.js +4 -3
  643. package/dist/collection/tests/workflow-steps/workflow-steps.e2e.js.map +1 -1
  644. package/dist/esm/a11y-b10c12e0.js.map +1 -1
  645. package/dist/esm/app-globals-c85c7809.js +7 -0
  646. package/dist/esm/{app-globals-ae0ca705.js.map → app-globals-c85c7809.js.map} +1 -1
  647. package/dist/esm/{core-js-78b486a8.js → core-js-4a847feb.js} +2 -2
  648. package/dist/esm/{core-js-78b486a8.js.map → core-js-4a847feb.js.map} +1 -1
  649. package/dist/esm/{helper-text-util-10896253.js → helper-text-util-e47b864d.js} +2 -2
  650. package/dist/esm/{helper-text-util-10896253.js.map → helper-text-util-e47b864d.js.map} +1 -1
  651. package/dist/esm/{index-ad2af369.js → index-2b76ea55.js} +3 -2
  652. package/dist/esm/index-2b76ea55.js.map +1 -0
  653. package/dist/esm/{index-60d17930.js → index-f8425403.js} +6 -2
  654. package/dist/esm/index-f8425403.js.map +1 -0
  655. package/dist/esm/{index.es2017-93ac816c.js → index.es2017-4e6fdf77.js} +3 -3
  656. package/dist/esm/{index.es2017-93ac816c.js.map → index.es2017-4e6fdf77.js.map} +1 -1
  657. package/dist/esm/index.js +7 -3
  658. package/dist/esm/index.js.map +1 -1
  659. package/dist/esm/{input.util-715860e3.js → input.util-deca1217.js} +32 -12
  660. package/dist/esm/input.util-deca1217.js.map +1 -0
  661. package/dist/esm/ix-application-header.entry.js +22 -13
  662. package/dist/esm/ix-application-header.entry.js.map +1 -1
  663. package/dist/esm/ix-application-switch-modal.entry.js +2 -2
  664. package/dist/esm/ix-application-switch-modal.entry.js.map +1 -1
  665. package/dist/esm/ix-application.entry.js +7 -3
  666. package/dist/esm/ix-application.entry.js.map +1 -1
  667. package/dist/esm/ix-avatar_2.entry.js +1 -1
  668. package/dist/esm/ix-avatar_2.entry.js.map +1 -1
  669. package/dist/esm/ix-basic-navigation.entry.js +2 -2
  670. package/dist/esm/ix-basic-navigation.entry.js.map +1 -1
  671. package/dist/esm/ix-breadcrumb-item.entry.js.map +1 -1
  672. package/dist/esm/ix-button.entry.js +7 -2
  673. package/dist/esm/ix-button.entry.js.map +1 -1
  674. package/dist/esm/ix-card-accordion_2.entry.js +2 -2
  675. package/dist/esm/ix-card-accordion_2.entry.js.map +1 -1
  676. package/dist/esm/ix-card-list.entry.js +6 -6
  677. package/dist/esm/ix-card-list.entry.js.map +1 -1
  678. package/dist/esm/ix-card_2.entry.js +3 -3
  679. package/dist/esm/ix-card_2.entry.js.map +1 -1
  680. package/dist/esm/ix-category-filter.entry.js +4 -4
  681. package/dist/esm/ix-category-filter.entry.js.map +1 -1
  682. package/dist/esm/ix-checkbox-group.entry.js +3 -3
  683. package/dist/esm/ix-checkbox.entry.js +6 -5
  684. package/dist/esm/ix-checkbox.entry.js.map +1 -1
  685. package/dist/esm/ix-chip.entry.js +5 -5
  686. package/dist/esm/ix-chip.entry.js.map +1 -1
  687. package/dist/esm/ix-col_4.entry.js +8 -8
  688. package/dist/esm/ix-col_4.entry.js.map +1 -1
  689. package/dist/esm/ix-content.entry.js +3 -3
  690. package/dist/esm/ix-css-grid-item.entry.js +1 -1
  691. package/dist/esm/ix-css-grid-item.entry.js.map +1 -1
  692. package/dist/esm/ix-custom-field.entry.js +2 -2
  693. package/dist/esm/ix-date-dropdown.entry.js +9 -5
  694. package/dist/esm/ix-date-dropdown.entry.js.map +1 -1
  695. package/dist/esm/ix-date-input.entry.js +13 -13
  696. package/dist/esm/ix-date-input.entry.js.map +1 -1
  697. package/dist/esm/ix-divider.entry.js +1 -1
  698. package/dist/esm/ix-drawer.entry.js +2 -2
  699. package/dist/esm/ix-dropdown-header.entry.js +1 -1
  700. package/dist/esm/ix-dropdown-header.entry.js.map +1 -1
  701. package/dist/esm/ix-dropdown-item.entry.js +4 -4
  702. package/dist/esm/ix-dropdown-item.entry.js.map +1 -1
  703. package/dist/esm/ix-dropdown-quick-actions.entry.js +1 -1
  704. package/dist/esm/ix-dropdown.entry.js +2 -2
  705. package/dist/esm/ix-empty-state.entry.js +1 -1
  706. package/dist/esm/ix-empty-state.entry.js.map +1 -1
  707. package/dist/esm/ix-event-list-item.entry.js +4 -4
  708. package/dist/esm/ix-event-list.entry.js +2 -2
  709. package/dist/esm/ix-expanding-search.entry.js +7 -4
  710. package/dist/esm/ix-expanding-search.entry.js.map +1 -1
  711. package/dist/esm/ix-field-label_3.entry.js +8 -8
  712. package/dist/esm/ix-field-label_3.entry.js.map +1 -1
  713. package/dist/esm/ix-filter-chip_2.entry.js +3 -3
  714. package/dist/esm/ix-filter-chip_2.entry.js.map +1 -1
  715. package/dist/esm/ix-flip-tile-content.entry.js +1 -1
  716. package/dist/esm/ix-flip-tile.entry.js +6 -5
  717. package/dist/esm/ix-flip-tile.entry.js.map +1 -1
  718. package/dist/esm/ix-group-context-menu_2.entry.js +3 -3
  719. package/dist/esm/ix-group-context-menu_2.entry.js.map +1 -1
  720. package/dist/esm/ix-group.entry.js +8 -8
  721. package/dist/esm/ix-group.entry.js.map +1 -1
  722. package/dist/esm/ix-helper-text.entry.js +4 -4
  723. package/dist/esm/ix-icon-button_2.entry.js +5 -5
  724. package/dist/esm/ix-icon-button_2.entry.js.map +1 -1
  725. package/dist/esm/ix-icon-toggle-button.entry.js +1 -1
  726. package/dist/esm/ix-icon-toggle-button.entry.js.map +1 -1
  727. package/dist/esm/{ix-icon.entry-621b700a.js → ix-icon.entry-f5f7c268.js} +2 -2
  728. package/dist/esm/{ix-icon.entry-621b700a.js.map → ix-icon.entry-f5f7c268.js.map} +1 -1
  729. package/dist/esm/ix-input-group.entry.js +1 -1
  730. package/dist/esm/ix-input-group.entry.js.map +1 -1
  731. package/dist/esm/ix-input.entry.js +15 -9
  732. package/dist/esm/ix-input.entry.js.map +1 -1
  733. package/dist/esm/ix-key-value-list.entry.js +2 -2
  734. package/dist/esm/ix-key-value-list.entry.js.map +1 -1
  735. package/dist/esm/ix-key-value.entry.js +1 -1
  736. package/dist/esm/ix-key-value.entry.js.map +1 -1
  737. package/dist/esm/ix-kpi.entry.js +3 -3
  738. package/dist/esm/ix-kpi.entry.js.map +1 -1
  739. package/dist/esm/ix-layout-auto.entry.js +1 -1
  740. package/dist/esm/ix-link-button.entry.js +3 -3
  741. package/dist/esm/ix-link-button.entry.js.map +1 -1
  742. package/dist/esm/ix-map-navigation-overlay.entry.js +2 -2
  743. package/dist/esm/ix-map-navigation-overlay.entry.js.map +1 -1
  744. package/dist/esm/ix-map-navigation.entry.js +4 -4
  745. package/dist/esm/ix-map-navigation.entry.js.map +1 -1
  746. package/dist/esm/ix-menu-about-item.entry.js +1 -1
  747. package/dist/esm/ix-menu-about-item.entry.js.map +1 -1
  748. package/dist/esm/ix-menu-about-news.entry.js +4 -4
  749. package/dist/esm/ix-menu-about-news.entry.js.map +1 -1
  750. package/dist/esm/ix-menu-about.entry.js +2 -2
  751. package/dist/esm/ix-menu-about.entry.js.map +1 -1
  752. package/dist/esm/ix-menu-avatar.entry.js +2 -2
  753. package/dist/esm/ix-menu-avatar.entry.js.map +1 -1
  754. package/dist/esm/ix-menu-category.entry.js +28 -13
  755. package/dist/esm/ix-menu-category.entry.js.map +1 -1
  756. package/dist/esm/ix-menu-expand-icon.entry.js +1 -1
  757. package/dist/esm/ix-menu-expand-icon.entry.js.map +1 -1
  758. package/dist/esm/ix-menu-item.entry.js +3 -3
  759. package/dist/esm/ix-menu-settings-item.entry.js +1 -1
  760. package/dist/esm/ix-menu-settings-item.entry.js.map +1 -1
  761. package/dist/esm/ix-menu-settings.entry.js +1 -1
  762. package/dist/esm/ix-menu.entry.js +26 -18
  763. package/dist/esm/ix-menu.entry.js.map +1 -1
  764. package/dist/esm/ix-message-bar.entry.js +4 -2
  765. package/dist/esm/ix-message-bar.entry.js.map +1 -1
  766. package/dist/esm/ix-modal-content_2.entry.js +2 -2
  767. package/dist/esm/ix-modal-footer.entry.js +1 -1
  768. package/dist/esm/ix-modal-loading.entry.js +1 -1
  769. package/dist/esm/ix-modal.entry.js +3 -3
  770. package/dist/esm/ix-modal.entry.js.map +1 -1
  771. package/dist/esm/ix-number-input.entry.js +17 -11
  772. package/dist/esm/ix-number-input.entry.js.map +1 -1
  773. package/dist/esm/ix-pagination.entry.js +8 -5
  774. package/dist/esm/ix-pagination.entry.js.map +1 -1
  775. package/dist/esm/ix-pane-layout.entry.js +1 -1
  776. package/dist/esm/ix-pill.entry.js +17 -7
  777. package/dist/esm/ix-pill.entry.js.map +1 -1
  778. package/dist/esm/ix-push-card.entry.js +1 -1
  779. package/dist/esm/ix-push-card.entry.js.map +1 -1
  780. package/dist/esm/ix-radio-group.entry.js +3 -3
  781. package/dist/esm/ix-radio.entry.js +6 -5
  782. package/dist/esm/ix-radio.entry.js.map +1 -1
  783. package/dist/esm/ix-select.entry.js +93 -57
  784. package/dist/esm/ix-select.entry.js.map +1 -1
  785. package/dist/esm/ix-split-button-item.entry.js +1 -1
  786. package/dist/esm/ix-split-button-item.entry.js.map +1 -1
  787. package/dist/esm/ix-split-button.entry.js +1 -1
  788. package/dist/esm/ix-split-button.entry.js.map +1 -1
  789. package/dist/esm/ix-tab-item_2.entry.js +2 -2
  790. package/dist/esm/ix-textarea.entry.js +6 -5
  791. package/dist/esm/ix-textarea.entry.js.map +1 -1
  792. package/dist/esm/ix-tile.entry.js +4 -4
  793. package/dist/esm/ix-tile.entry.js.map +1 -1
  794. package/dist/esm/ix-time-picker.entry.js +2 -2
  795. package/dist/esm/ix-time-picker.entry.js.map +1 -1
  796. package/dist/esm/ix-toast-container.entry.js +10 -6
  797. package/dist/esm/ix-toast-container.entry.js.map +1 -1
  798. package/dist/esm/ix-toast.entry.js +2 -2
  799. package/dist/esm/ix-toast.entry.js.map +1 -1
  800. package/dist/esm/ix-toggle-button.entry.js +2 -2
  801. package/dist/esm/ix-toggle-button.entry.js.map +1 -1
  802. package/dist/esm/ix-toggle.entry.js +18 -4
  803. package/dist/esm/ix-toggle.entry.js.map +1 -1
  804. package/dist/esm/ix-tree-item.entry.js +6 -5
  805. package/dist/esm/ix-tree-item.entry.js.map +1 -1
  806. package/dist/esm/ix-tree.entry.js +330 -489
  807. package/dist/esm/ix-tree.entry.js.map +1 -1
  808. package/dist/esm/ix-upload.entry.js +3 -3
  809. package/dist/esm/ix-validation-tooltip.entry.js +5 -2
  810. package/dist/esm/ix-validation-tooltip.entry.js.map +1 -1
  811. package/dist/esm/ix-workflow-step.entry.js +4 -3
  812. package/dist/esm/ix-workflow-step.entry.js.map +1 -1
  813. package/dist/esm/ix-workflow-steps.entry.js +1 -1
  814. package/dist/esm/ix-workflow-steps.entry.js.map +1 -1
  815. package/dist/esm/loader.js +3 -3
  816. package/dist/esm/make-ref-4b76e9b5.js.map +1 -1
  817. package/dist/esm/{menu-tabs-fc-563a74d9.js → menu-tabs-fc-43b4155d.js} +11 -4
  818. package/dist/esm/menu-tabs-fc-43b4155d.js.map +1 -0
  819. package/dist/esm/{modal-101eef04.js → modal-4b3f8800.js} +7 -1
  820. package/dist/{cjs/modal-a49409aa.js.map → esm/modal-4b3f8800.js.map} +1 -1
  821. package/dist/esm/{setup-d88021f8.js → setup-3a3f57db.js} +13 -3
  822. package/dist/esm/setup-3a3f57db.js.map +1 -0
  823. package/dist/esm/shadow-dom-cc0bc152.js.map +1 -1
  824. package/dist/esm/siemens-ix.js +3 -3
  825. package/dist/esm/{validation-45aa490c.js → validation-54137eaa.js} +2 -8
  826. package/dist/esm/validation-54137eaa.js.map +1 -0
  827. package/dist/siemens-ix/index.esm.js +1 -1
  828. package/dist/siemens-ix/index.esm.js.map +1 -1
  829. package/dist/siemens-ix/{p-bd4c1a44.entry.js → p-03136fc0.entry.js} +2 -2
  830. package/dist/siemens-ix/p-03136fc0.entry.js.map +1 -0
  831. package/dist/siemens-ix/p-060d5c58.entry.js +2 -0
  832. package/dist/siemens-ix/p-060d5c58.entry.js.map +1 -0
  833. package/dist/siemens-ix/{p-475ac85f.entry.js → p-08168e53.entry.js} +2 -2
  834. package/dist/siemens-ix/{p-475ac85f.entry.js.map → p-08168e53.entry.js.map} +1 -1
  835. package/dist/siemens-ix/p-088ad2da.entry.js +2 -0
  836. package/dist/siemens-ix/p-088ad2da.entry.js.map +1 -0
  837. package/dist/siemens-ix/p-0c8a6f43.entry.js +2 -0
  838. package/dist/siemens-ix/{p-0be907d4.entry.js.map → p-0c8a6f43.entry.js.map} +1 -1
  839. package/dist/siemens-ix/{p-8457d846.entry.js → p-0cb18eff.entry.js} +2 -2
  840. package/dist/siemens-ix/p-0cb18eff.entry.js.map +1 -0
  841. package/dist/siemens-ix/{p-2a34a0c2.entry.js → p-0f44ccd1.entry.js} +2 -2
  842. package/dist/siemens-ix/{p-2a34a0c2.entry.js.map → p-0f44ccd1.entry.js.map} +1 -1
  843. package/dist/siemens-ix/p-14d038c6.entry.js +2 -0
  844. package/dist/siemens-ix/p-14d038c6.entry.js.map +1 -0
  845. package/dist/siemens-ix/{p-6722bcff.entry.js → p-16055d56.entry.js} +2 -2
  846. package/dist/siemens-ix/{p-6722bcff.entry.js.map → p-16055d56.entry.js.map} +1 -1
  847. package/dist/siemens-ix/p-177268f7.entry.js +2 -0
  848. package/dist/siemens-ix/p-177268f7.entry.js.map +1 -0
  849. package/dist/siemens-ix/{p-f97a15c4.js → p-186a1f30.js} +2 -2
  850. package/dist/siemens-ix/p-186a1f30.js.map +1 -0
  851. package/dist/siemens-ix/{p-175599e4.entry.js → p-19d1c463.entry.js} +2 -2
  852. package/dist/siemens-ix/{p-2d3a6d29.entry.js → p-1bff0a1f.entry.js} +2 -2
  853. package/dist/siemens-ix/{p-8da941cd.entry.js → p-1c74bd8b.entry.js} +2 -2
  854. package/dist/siemens-ix/{p-8da941cd.entry.js.map → p-1c74bd8b.entry.js.map} +1 -1
  855. package/dist/siemens-ix/{p-0c89cbcc.entry.js → p-1d545640.entry.js} +2 -2
  856. package/dist/siemens-ix/p-1d545640.entry.js.map +1 -0
  857. package/dist/siemens-ix/p-21a8aeaf.js +2 -0
  858. package/dist/siemens-ix/p-21a8aeaf.js.map +1 -0
  859. package/dist/siemens-ix/p-227b0ddd.entry.js +2 -0
  860. package/dist/siemens-ix/p-227b0ddd.entry.js.map +1 -0
  861. package/dist/siemens-ix/{p-63dd987f.entry.js → p-22fc61c9.entry.js} +2 -2
  862. package/dist/siemens-ix/p-22fc61c9.entry.js.map +1 -0
  863. package/dist/siemens-ix/{p-ede52531.entry.js → p-2396b68a.entry.js} +2 -2
  864. package/dist/siemens-ix/p-2396b68a.entry.js.map +1 -0
  865. package/dist/siemens-ix/{p-b2a06e46.entry.js → p-27befdd7.entry.js} +2 -2
  866. package/dist/siemens-ix/p-27befdd7.entry.js.map +1 -0
  867. package/dist/siemens-ix/{p-286feb7e.entry.js → p-297cd68a.entry.js} +2 -2
  868. package/dist/siemens-ix/{p-6bae4e9b.entry.js → p-2f29e208.entry.js} +2 -2
  869. package/dist/siemens-ix/{p-6bae4e9b.entry.js.map → p-2f29e208.entry.js.map} +1 -1
  870. package/dist/siemens-ix/p-309b82ec.entry.js +2 -0
  871. package/dist/siemens-ix/{p-4ec6ddfb.entry.js → p-30a24560.entry.js} +2 -2
  872. package/dist/siemens-ix/p-30a24560.entry.js.map +1 -0
  873. package/dist/siemens-ix/{p-37af7117.entry.js → p-327a1655.entry.js} +2 -2
  874. package/dist/siemens-ix/p-327a1655.entry.js.map +1 -0
  875. package/dist/siemens-ix/p-345e1c73.js.map +1 -1
  876. package/dist/siemens-ix/{p-6624076c.entry.js → p-353f081a.entry.js} +2 -2
  877. package/dist/siemens-ix/p-37eadb06.entry.js +2 -0
  878. package/dist/siemens-ix/{p-ffca56d6.entry.js.map → p-37eadb06.entry.js.map} +1 -1
  879. package/dist/siemens-ix/{p-dfb181c1.entry.js → p-37f1d0ed.entry.js} +2 -2
  880. package/dist/siemens-ix/p-37f1d0ed.entry.js.map +1 -0
  881. package/dist/siemens-ix/{p-5c1b136c.entry.js → p-388b9368.entry.js} +2 -2
  882. package/dist/siemens-ix/{p-5c1b136c.entry.js.map → p-388b9368.entry.js.map} +1 -1
  883. package/dist/siemens-ix/p-38d9d569.js +2 -0
  884. package/dist/siemens-ix/p-38d9d569.js.map +1 -0
  885. package/dist/siemens-ix/{p-d929f23d.entry.js → p-3fd2bacd.entry.js} +2 -2
  886. package/dist/siemens-ix/{p-d929f23d.entry.js.map → p-3fd2bacd.entry.js.map} +1 -1
  887. package/dist/siemens-ix/{p-e9a37b3f.entry.js → p-40da22b1.entry.js} +2 -2
  888. package/dist/siemens-ix/p-40da22b1.entry.js.map +1 -0
  889. package/dist/siemens-ix/{p-4cc79e8f.entry.js → p-44425604.entry.js} +2 -2
  890. package/dist/siemens-ix/p-44fa005c.js +4 -0
  891. package/dist/siemens-ix/{p-a2200306.js.map → p-44fa005c.js.map} +1 -1
  892. package/dist/siemens-ix/{p-05839c77.entry.js → p-48d6554c.entry.js} +2 -2
  893. package/dist/siemens-ix/p-49ca9211.entry.js +2 -0
  894. package/dist/siemens-ix/{p-f39048a2.entry.js.map → p-49ca9211.entry.js.map} +1 -1
  895. package/dist/siemens-ix/{p-0dbc970e.entry.js → p-4cb35508.entry.js} +2 -2
  896. package/dist/siemens-ix/p-4e51d716.entry.js.map +1 -1
  897. package/dist/siemens-ix/p-559cdf73.js +2 -0
  898. package/dist/siemens-ix/p-559cdf73.js.map +1 -0
  899. package/dist/siemens-ix/p-5767345b.entry.js +2 -0
  900. package/dist/siemens-ix/p-5b86301e.js +2 -0
  901. package/dist/siemens-ix/p-5b86301e.js.map +1 -0
  902. package/dist/siemens-ix/p-5fe87e71.js.map +1 -1
  903. package/dist/siemens-ix/{p-cbfca958.entry.js → p-617b3d78.entry.js} +2 -2
  904. package/dist/siemens-ix/{p-654f91f2.entry.js → p-623297ef.entry.js} +2 -2
  905. package/dist/siemens-ix/p-623297ef.entry.js.map +1 -0
  906. package/dist/siemens-ix/p-637df471.entry.js +2 -0
  907. package/dist/siemens-ix/p-637df471.entry.js.map +1 -0
  908. package/dist/siemens-ix/p-6635972c.entry.js +2 -0
  909. package/dist/siemens-ix/p-6635972c.entry.js.map +1 -0
  910. package/dist/siemens-ix/{p-48718dc1.entry.js → p-67209151.entry.js} +2 -2
  911. package/dist/siemens-ix/p-67209151.entry.js.map +1 -0
  912. package/dist/siemens-ix/{p-1c5ebea3.entry.js → p-676a4bd0.entry.js} +2 -2
  913. package/dist/siemens-ix/{p-1c5ebea3.entry.js.map → p-676a4bd0.entry.js.map} +1 -1
  914. package/dist/siemens-ix/{p-3205726a.entry.js → p-6af64cf4.entry.js} +2 -2
  915. package/dist/siemens-ix/{p-3205726a.entry.js.map → p-6af64cf4.entry.js.map} +1 -1
  916. package/dist/siemens-ix/{p-392b4297.entry.js → p-6b84501c.entry.js} +2 -2
  917. package/dist/siemens-ix/{p-392b4297.entry.js.map → p-6b84501c.entry.js.map} +1 -1
  918. package/dist/siemens-ix/{p-484aa96b.js → p-6ccf39dd.js} +2 -2
  919. package/dist/siemens-ix/p-6ccf39dd.js.map +1 -0
  920. package/dist/siemens-ix/{p-66178fe6.entry.js → p-6f3b0a66.entry.js} +2 -2
  921. package/dist/siemens-ix/{p-66178fe6.entry.js.map → p-6f3b0a66.entry.js.map} +1 -1
  922. package/dist/siemens-ix/{p-edc1d44a.entry.js → p-6f970ba4.entry.js} +2 -2
  923. package/dist/siemens-ix/p-6f970ba4.entry.js.map +1 -0
  924. package/dist/siemens-ix/p-71a4590c.entry.js +2 -0
  925. package/dist/siemens-ix/p-71a4590c.entry.js.map +1 -0
  926. package/dist/siemens-ix/{p-1f6df0c6.js → p-738c2d1f.js} +2 -2
  927. package/dist/siemens-ix/{p-be860121.entry.js → p-790709c5.entry.js} +2 -2
  928. package/dist/siemens-ix/p-790709c5.entry.js.map +1 -0
  929. package/dist/siemens-ix/{p-68bb2a09.entry.js → p-7b65535a.entry.js} +2 -2
  930. package/dist/siemens-ix/p-7b65535a.entry.js.map +1 -0
  931. package/dist/siemens-ix/{p-e7ac5657.entry.js → p-7e91e565.entry.js} +2 -2
  932. package/dist/siemens-ix/p-7e91e565.entry.js.map +1 -0
  933. package/dist/siemens-ix/p-8039ec6b.entry.js +2 -0
  934. package/dist/siemens-ix/p-8039ec6b.entry.js.map +1 -0
  935. package/dist/siemens-ix/p-8964b303.entry.js +2 -0
  936. package/dist/siemens-ix/p-8964b303.entry.js.map +1 -0
  937. package/dist/siemens-ix/p-89734934.js +2 -0
  938. package/dist/siemens-ix/{p-50096707.js.map → p-89734934.js.map} +1 -1
  939. package/dist/siemens-ix/{p-b74a8cdc.entry.js → p-8a6d403c.entry.js} +2 -2
  940. package/dist/siemens-ix/p-8a6d403c.entry.js.map +1 -0
  941. package/dist/siemens-ix/{p-a3364116.entry.js → p-8df3318f.entry.js} +2 -2
  942. package/dist/siemens-ix/p-8df3318f.entry.js.map +1 -0
  943. package/dist/siemens-ix/p-8efd9181.entry.js +2 -0
  944. package/dist/siemens-ix/p-8efd9181.entry.js.map +1 -0
  945. package/dist/siemens-ix/{p-d0b38ae2.entry.js → p-9213afda.entry.js} +2 -2
  946. package/dist/siemens-ix/{p-d0b38ae2.entry.js.map → p-9213afda.entry.js.map} +1 -1
  947. package/dist/siemens-ix/{p-f35386ec.js → p-93d4d3c9.js} +2 -2
  948. package/dist/siemens-ix/p-93fab3c7.entry.js +2 -0
  949. package/dist/siemens-ix/{p-c236cf18.entry.js.map → p-93fab3c7.entry.js.map} +1 -1
  950. package/dist/siemens-ix/{p-b62f8f62.entry.js → p-988ca463.entry.js} +2 -2
  951. package/dist/siemens-ix/{p-83da8f11.entry.js → p-9c63869a.entry.js} +2 -2
  952. package/dist/siemens-ix/p-9dd344d4.entry.js +2 -0
  953. package/dist/siemens-ix/{p-2643f32a.entry.js.map → p-9dd344d4.entry.js.map} +1 -1
  954. package/dist/siemens-ix/{p-815699d1.entry.js → p-9df683f8.entry.js} +2 -2
  955. package/dist/siemens-ix/p-9df683f8.entry.js.map +1 -0
  956. package/dist/siemens-ix/p-a36ee7b7.entry.js +2 -0
  957. package/dist/siemens-ix/p-a36ee7b7.entry.js.map +1 -0
  958. package/dist/siemens-ix/{p-fe87443e.js → p-a6af13b0.js} +2 -2
  959. package/dist/siemens-ix/p-aac089f0.entry.js +2 -0
  960. package/dist/siemens-ix/p-aac089f0.entry.js.map +1 -0
  961. package/dist/siemens-ix/p-ac9bb8be.entry.js +2 -0
  962. package/dist/siemens-ix/{p-6a4a2064.entry.js → p-af565741.entry.js} +2 -2
  963. package/dist/siemens-ix/p-af565741.entry.js.map +1 -0
  964. package/dist/siemens-ix/p-b00f255c.entry.js +2 -0
  965. package/dist/siemens-ix/{p-a36ad7c7.entry.js → p-b8b7aa8e.entry.js} +2 -2
  966. package/dist/siemens-ix/{p-9948574f.entry.js → p-ba1aeecb.entry.js} +2 -2
  967. package/dist/siemens-ix/p-ba1aeecb.entry.js.map +1 -0
  968. package/dist/siemens-ix/{p-df7060ae.entry.js → p-ba60132f.entry.js} +2 -2
  969. package/dist/siemens-ix/{p-54efe56b.entry.js → p-bb33784f.entry.js} +2 -2
  970. package/dist/siemens-ix/{p-2d7ea063.entry.js → p-bb99415f.entry.js} +2 -2
  971. package/dist/siemens-ix/p-bb99415f.entry.js.map +1 -0
  972. package/dist/siemens-ix/{p-2db63240.entry.js → p-bc05aafe.entry.js} +2 -2
  973. package/dist/siemens-ix/p-bc05aafe.entry.js.map +1 -0
  974. package/dist/siemens-ix/{p-d19b52bd.entry.js → p-bf01468d.entry.js} +2 -2
  975. package/dist/siemens-ix/{p-8c2b62c3.entry.js → p-c272dbbd.entry.js} +2 -2
  976. package/dist/siemens-ix/p-c272dbbd.entry.js.map +1 -0
  977. package/dist/siemens-ix/p-c4b75f38.entry.js +2 -0
  978. package/dist/siemens-ix/{p-caf49e00.entry.js → p-c7c8e52b.entry.js} +2 -2
  979. package/dist/siemens-ix/{p-57e60a06.entry.js → p-ca95654f.entry.js} +2 -2
  980. package/dist/siemens-ix/{p-57e60a06.entry.js.map → p-ca95654f.entry.js.map} +1 -1
  981. package/dist/siemens-ix/p-ce563a48.js.map +1 -1
  982. package/dist/siemens-ix/{p-3f367d44.entry.js → p-d489e0b3.entry.js} +2 -2
  983. package/dist/siemens-ix/{p-3f367d44.entry.js.map → p-d489e0b3.entry.js.map} +1 -1
  984. package/dist/siemens-ix/p-d70eb520.entry.js +2 -0
  985. package/dist/siemens-ix/p-d70eb520.entry.js.map +1 -0
  986. package/dist/siemens-ix/p-d8c93983.entry.js +2 -0
  987. package/dist/siemens-ix/p-d8c93983.entry.js.map +1 -0
  988. package/dist/siemens-ix/{p-9d323232.entry.js → p-d9b3c267.entry.js} +2 -2
  989. package/dist/siemens-ix/{p-9d323232.entry.js.map → p-d9b3c267.entry.js.map} +1 -1
  990. package/dist/siemens-ix/p-dcc76d47.entry.js +2 -0
  991. package/dist/siemens-ix/p-dcc76d47.entry.js.map +1 -0
  992. package/dist/siemens-ix/{p-0f2bf43d.entry.js → p-e09995d4.entry.js} +2 -2
  993. package/dist/siemens-ix/{p-2b226409.entry.js → p-e1e48602.entry.js} +2 -2
  994. package/dist/siemens-ix/p-e1e48602.entry.js.map +1 -0
  995. package/dist/siemens-ix/p-ebfaeb95.entry.js +2 -0
  996. package/dist/siemens-ix/{p-c6796e64.entry.js.map → p-ebfaeb95.entry.js.map} +1 -1
  997. package/dist/siemens-ix/{p-4c9b7548.entry.js → p-f023b24b.entry.js} +2 -2
  998. package/dist/siemens-ix/p-f023b24b.entry.js.map +1 -0
  999. package/dist/siemens-ix/p-f5ccceb6.entry.js +2 -0
  1000. package/dist/siemens-ix/p-f5ccceb6.entry.js.map +1 -0
  1001. package/dist/siemens-ix/p-f815f96e.entry.js +2 -0
  1002. package/dist/siemens-ix/p-f815f96e.entry.js.map +1 -0
  1003. package/dist/siemens-ix/p-fe158b99.js +2 -0
  1004. package/dist/siemens-ix/p-fe158b99.js.map +1 -0
  1005. package/dist/siemens-ix/siemens-ix-core.css +1 -1
  1006. package/dist/siemens-ix/siemens-ix.css +3 -3
  1007. package/dist/siemens-ix/siemens-ix.esm.js +1 -1
  1008. package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
  1009. package/dist/types/components/application/application.d.ts +4 -4
  1010. package/dist/types/components/application-header/application-header.d.ts +8 -2
  1011. package/dist/types/components/application-header/application-switch-modal/application-switch-modal.d.ts +1 -1
  1012. package/dist/types/components/application-sidebar/events.d.ts +2 -2
  1013. package/dist/types/components/basic-navigation/basic-navigation.d.ts +3 -3
  1014. package/dist/types/components/blind/blind.d.ts +1 -1
  1015. package/dist/types/components/breadcrumb-item/breadcrumb-item.d.ts +2 -2
  1016. package/dist/types/components/button/base-button.d.ts +1 -1
  1017. package/dist/types/components/button/button-component.d.ts +31 -0
  1018. package/dist/types/components/button/button.d.ts +3 -1
  1019. package/dist/types/components/card-accordion/card-accordion.d.ts +1 -1
  1020. package/dist/types/components/category-filter/category-filter.d.ts +1 -1
  1021. package/dist/types/components/chip/chip.d.ts +2 -2
  1022. package/dist/types/components/date-dropdown/date-dropdown.d.ts +19 -1
  1023. package/dist/types/components/date-input/date-input.d.ts +3 -1
  1024. package/dist/types/components/date-picker/date-picker.d.ts +2 -2
  1025. package/dist/types/components/dropdown/dropdown-controller.d.ts +2 -2
  1026. package/dist/types/components/dropdown/dropdown.d.ts +1 -1
  1027. package/dist/types/components/dropdown-header/dropdown-header.d.ts +1 -1
  1028. package/dist/types/components/empty-state/empty-state.d.ts +3 -3
  1029. package/dist/types/components/expanding-search/expanding-search.d.ts +15 -1
  1030. package/dist/types/components/field-label/field-label.d.ts +1 -1
  1031. package/dist/types/components/field-wrapper/field-wrapper.d.ts +1 -1
  1032. package/dist/types/components/field-wrapper/helper-text-util.d.ts +1 -1
  1033. package/dist/types/components/filter-chip/filter-chip.d.ts +1 -1
  1034. package/dist/types/components/flip-tile/flip-tile.d.ts +2 -2
  1035. package/dist/types/components/group/group.d.ts +1 -1
  1036. package/dist/types/components/icon-button/icon-button.d.ts +4 -4
  1037. package/dist/types/components/icon-toggle-button/icon-toggle-button.d.ts +1 -1
  1038. package/dist/types/components/input/input.d.ts +5 -1
  1039. package/dist/types/components/input/input.util.d.ts +2 -0
  1040. package/dist/types/components/input/number-input.d.ts +5 -1
  1041. package/dist/types/components/input/tests/validation.ct.d.ts +1 -0
  1042. package/dist/types/components/input-group/input-group.d.ts +1 -1
  1043. package/dist/types/components/key-value/key-value.d.ts +2 -2
  1044. package/dist/types/components/kpi/kpi.d.ts +3 -3
  1045. package/dist/types/components/link-button/link-button.d.ts +1 -1
  1046. package/dist/types/components/map-navigation/map-navigation.d.ts +2 -2
  1047. package/dist/types/components/map-navigation-overlay/map-navigation-overlay.d.ts +4 -4
  1048. package/dist/types/components/menu/menu-expand-icon.d.ts +1 -1
  1049. package/dist/types/components/menu/menu.d.ts +12 -5
  1050. package/dist/types/components/menu-about/menu-about.d.ts +1 -1
  1051. package/dist/types/components/menu-about-item/menu-about-item.d.ts +1 -1
  1052. package/dist/types/components/menu-about-news/menu-about-news.d.ts +2 -2
  1053. package/dist/types/components/menu-avatar/menu-avatar.d.ts +4 -4
  1054. package/dist/types/components/menu-avatar-item/menu-avatar-item.d.ts +3 -3
  1055. package/dist/types/components/menu-category/menu-category.d.ts +6 -6
  1056. package/dist/types/components/menu-settings/menu-settings.d.ts +1 -1
  1057. package/dist/types/components/menu-settings-item/menu-settings-item.d.ts +1 -1
  1058. package/dist/types/components/message-bar/message-bar.d.ts +2 -2
  1059. package/dist/types/components/modal/modal.d.ts +2 -2
  1060. package/dist/types/components/modal/test/modal.ct.d.ts +2 -1
  1061. package/dist/types/components/pane/pane.d.ts +1 -1
  1062. package/dist/types/components/pill/pill.d.ts +6 -2
  1063. package/dist/types/components/pill/tests/pill.ct.d.ts +1 -0
  1064. package/dist/types/components/select/select.d.ts +25 -9
  1065. package/dist/types/components/select/test/select-keyboard.ct.d.ts +1 -0
  1066. package/dist/types/components/select-item/select-item.d.ts +1 -1
  1067. package/dist/types/components/slider/slider.d.ts +1 -1
  1068. package/dist/types/components/split-button/split-button.d.ts +3 -3
  1069. package/dist/types/components/split-button-item/split-button-item.d.ts +2 -2
  1070. package/dist/types/components/tabs/tabs.d.ts +1 -1
  1071. package/dist/types/components/time-picker/time-picker.d.ts +1 -1
  1072. package/dist/types/components/toast/toast.d.ts +3 -3
  1073. package/dist/types/components/toggle-button/toggle-button.d.ts +1 -1
  1074. package/dist/types/components/tree/tree.d.ts +1 -1
  1075. package/dist/types/components/utils/a11y.d.ts +1 -1
  1076. package/dist/types/components/utils/application-layout/context.d.ts +3 -3
  1077. package/dist/types/components/utils/application-layout/service.d.ts +1 -1
  1078. package/dist/types/components/utils/context.d.ts +2 -2
  1079. package/dist/types/components/utils/find-element.d.ts +1 -1
  1080. package/dist/types/components/utils/lazy-list/index.d.ts +2 -0
  1081. package/dist/types/components/utils/lazy-list/lazy.d.ts +51 -0
  1082. package/dist/types/components/utils/make-ref.d.ts +1 -1
  1083. package/dist/types/components/utils/menu-service/menu-service.d.ts +1 -1
  1084. package/dist/types/components/utils/modal/message.d.ts +5 -5
  1085. package/dist/types/components/utils/shadow-dom.d.ts +2 -2
  1086. package/dist/types/components/validation-tooltip/validation-tooltip.d.ts +7 -7
  1087. package/dist/types/components/workflow-steps/workflow-steps.d.ts +1 -1
  1088. package/dist/types/components.d.ts +156 -62
  1089. package/dist/types/setup.ct.d.ts +1 -0
  1090. package/dist/types/setup.d.ts +1 -0
  1091. package/dist/types/tests/utils/test/index.d.ts +1 -1
  1092. package/dist/types/tests/utils/test/page.d.ts +12 -2
  1093. package/hydrate/index.js +879 -867
  1094. package/package.json +3 -5
  1095. package/scss/components/form/_input.scss +4 -1
  1096. package/dist/cjs/_commonjsHelpers-0192c5b3.js +0 -17
  1097. package/dist/cjs/_commonjsHelpers-0192c5b3.js.map +0 -1
  1098. package/dist/cjs/core-js-2fc351ee.js +0 -26
  1099. package/dist/cjs/core-js-2fc351ee.js.map +0 -1
  1100. package/dist/cjs/index-74904d8b.js.map +0 -1
  1101. package/dist/cjs/index-d2117dc0.js.map +0 -1
  1102. package/dist/cjs/input.util-1c2fa43d.js.map +0 -1
  1103. package/dist/cjs/menu-tabs-fc-eb899b0d.js.map +0 -1
  1104. package/dist/cjs/setup-86b7d543.js.map +0 -1
  1105. package/dist/cjs/validation-1e3dd5ee.js.map +0 -1
  1106. package/dist/esm/_commonjsHelpers-e557d4a5.js +0 -13
  1107. package/dist/esm/_commonjsHelpers-e557d4a5.js.map +0 -1
  1108. package/dist/esm/app-globals-ae0ca705.js +0 -7
  1109. package/dist/esm/index-60d17930.js.map +0 -1
  1110. package/dist/esm/index-ad2af369.js.map +0 -1
  1111. package/dist/esm/input.util-715860e3.js.map +0 -1
  1112. package/dist/esm/menu-tabs-fc-563a74d9.js.map +0 -1
  1113. package/dist/esm/modal-101eef04.js.map +0 -1
  1114. package/dist/esm/setup-d88021f8.js.map +0 -1
  1115. package/dist/esm/validation-45aa490c.js.map +0 -1
  1116. package/dist/siemens-ix/p-044c2a7b.entry.js +0 -2
  1117. package/dist/siemens-ix/p-044c2a7b.entry.js.map +0 -1
  1118. package/dist/siemens-ix/p-08463669.entry.js +0 -2
  1119. package/dist/siemens-ix/p-08463669.entry.js.map +0 -1
  1120. package/dist/siemens-ix/p-0be907d4.entry.js +0 -2
  1121. package/dist/siemens-ix/p-0c89cbcc.entry.js.map +0 -1
  1122. package/dist/siemens-ix/p-0f0e7e14.entry.js +0 -2
  1123. package/dist/siemens-ix/p-0f0e7e14.entry.js.map +0 -1
  1124. package/dist/siemens-ix/p-23a4b81f.js +0 -2
  1125. package/dist/siemens-ix/p-23a4b81f.js.map +0 -1
  1126. package/dist/siemens-ix/p-2643f32a.entry.js +0 -2
  1127. package/dist/siemens-ix/p-2b226409.entry.js.map +0 -1
  1128. package/dist/siemens-ix/p-2b367b12.entry.js +0 -2
  1129. package/dist/siemens-ix/p-2b367b12.entry.js.map +0 -1
  1130. package/dist/siemens-ix/p-2b9c5f59.entry.js +0 -2
  1131. package/dist/siemens-ix/p-2d7ea063.entry.js.map +0 -1
  1132. package/dist/siemens-ix/p-2db63240.entry.js.map +0 -1
  1133. package/dist/siemens-ix/p-37af7117.entry.js.map +0 -1
  1134. package/dist/siemens-ix/p-40dc610f.entry.js +0 -2
  1135. package/dist/siemens-ix/p-40dc610f.entry.js.map +0 -1
  1136. package/dist/siemens-ix/p-424e8092.entry.js +0 -2
  1137. package/dist/siemens-ix/p-424e8092.entry.js.map +0 -1
  1138. package/dist/siemens-ix/p-45840cb9.js +0 -2
  1139. package/dist/siemens-ix/p-4624a772.entry.js +0 -2
  1140. package/dist/siemens-ix/p-4624a772.entry.js.map +0 -1
  1141. package/dist/siemens-ix/p-484aa96b.js.map +0 -1
  1142. package/dist/siemens-ix/p-48718dc1.entry.js.map +0 -1
  1143. package/dist/siemens-ix/p-4a631d9c.entry.js +0 -2
  1144. package/dist/siemens-ix/p-4a631d9c.entry.js.map +0 -1
  1145. package/dist/siemens-ix/p-4a9330a5.entry.js +0 -2
  1146. package/dist/siemens-ix/p-4a9330a5.entry.js.map +0 -1
  1147. package/dist/siemens-ix/p-4c9b7548.entry.js.map +0 -1
  1148. package/dist/siemens-ix/p-4ec6ddfb.entry.js.map +0 -1
  1149. package/dist/siemens-ix/p-50096707.js +0 -2
  1150. package/dist/siemens-ix/p-52928e21.entry.js +0 -2
  1151. package/dist/siemens-ix/p-52928e21.entry.js.map +0 -1
  1152. package/dist/siemens-ix/p-5682e985.js +0 -2
  1153. package/dist/siemens-ix/p-5682e985.js.map +0 -1
  1154. package/dist/siemens-ix/p-5db5a0b5.entry.js +0 -2
  1155. package/dist/siemens-ix/p-5db5a0b5.entry.js.map +0 -1
  1156. package/dist/siemens-ix/p-63dd987f.entry.js.map +0 -1
  1157. package/dist/siemens-ix/p-654f91f2.entry.js.map +0 -1
  1158. package/dist/siemens-ix/p-66559451.entry.js +0 -2
  1159. package/dist/siemens-ix/p-68bb2a09.entry.js.map +0 -1
  1160. package/dist/siemens-ix/p-6a4a2064.entry.js.map +0 -1
  1161. package/dist/siemens-ix/p-6e3f1de3.entry.js +0 -2
  1162. package/dist/siemens-ix/p-6e3f1de3.entry.js.map +0 -1
  1163. package/dist/siemens-ix/p-792e1c52.entry.js +0 -2
  1164. package/dist/siemens-ix/p-792e1c52.entry.js.map +0 -1
  1165. package/dist/siemens-ix/p-79bb0d39.js +0 -2
  1166. package/dist/siemens-ix/p-79bb0d39.js.map +0 -1
  1167. package/dist/siemens-ix/p-7aa07d9b.entry.js +0 -2
  1168. package/dist/siemens-ix/p-7af324e9.entry.js +0 -2
  1169. package/dist/siemens-ix/p-7af324e9.entry.js.map +0 -1
  1170. package/dist/siemens-ix/p-815699d1.entry.js.map +0 -1
  1171. package/dist/siemens-ix/p-8457d846.entry.js.map +0 -1
  1172. package/dist/siemens-ix/p-857f99c8.entry.js +0 -2
  1173. package/dist/siemens-ix/p-857f99c8.entry.js.map +0 -1
  1174. package/dist/siemens-ix/p-8c2b62c3.entry.js.map +0 -1
  1175. package/dist/siemens-ix/p-9948574f.entry.js.map +0 -1
  1176. package/dist/siemens-ix/p-9fe2759f.entry.js +0 -2
  1177. package/dist/siemens-ix/p-9fe2759f.entry.js.map +0 -1
  1178. package/dist/siemens-ix/p-a2200306.js +0 -4
  1179. package/dist/siemens-ix/p-a3364116.entry.js.map +0 -1
  1180. package/dist/siemens-ix/p-a427e6a2.js +0 -2
  1181. package/dist/siemens-ix/p-a427e6a2.js.map +0 -1
  1182. package/dist/siemens-ix/p-a61ed462.entry.js +0 -2
  1183. package/dist/siemens-ix/p-a61ed462.entry.js.map +0 -1
  1184. package/dist/siemens-ix/p-b2a06e46.entry.js.map +0 -1
  1185. package/dist/siemens-ix/p-b74a8cdc.entry.js.map +0 -1
  1186. package/dist/siemens-ix/p-bd4c1a44.entry.js.map +0 -1
  1187. package/dist/siemens-ix/p-bded112a.entry.js +0 -2
  1188. package/dist/siemens-ix/p-bded112a.entry.js.map +0 -1
  1189. package/dist/siemens-ix/p-be860121.entry.js.map +0 -1
  1190. package/dist/siemens-ix/p-c236cf18.entry.js +0 -2
  1191. package/dist/siemens-ix/p-c6796e64.entry.js +0 -2
  1192. package/dist/siemens-ix/p-d01f05cf.entry.js +0 -2
  1193. package/dist/siemens-ix/p-d7aa00d6.js +0 -2
  1194. package/dist/siemens-ix/p-d7aa00d6.js.map +0 -1
  1195. package/dist/siemens-ix/p-dfb181c1.entry.js.map +0 -1
  1196. package/dist/siemens-ix/p-e7ac5657.entry.js.map +0 -1
  1197. package/dist/siemens-ix/p-e9a37b3f.entry.js.map +0 -1
  1198. package/dist/siemens-ix/p-edc1d44a.entry.js.map +0 -1
  1199. package/dist/siemens-ix/p-ede52531.entry.js.map +0 -1
  1200. package/dist/siemens-ix/p-f39048a2.entry.js +0 -2
  1201. package/dist/siemens-ix/p-f7618d1d.entry.js +0 -2
  1202. package/dist/siemens-ix/p-f7618d1d.entry.js.map +0 -1
  1203. package/dist/siemens-ix/p-f97a15c4.js.map +0 -1
  1204. package/dist/siemens-ix/p-ffca56d6.entry.js +0 -2
  1205. /package/dist/siemens-ix/{p-175599e4.entry.js.map → p-19d1c463.entry.js.map} +0 -0
  1206. /package/dist/siemens-ix/{p-2d3a6d29.entry.js.map → p-1bff0a1f.entry.js.map} +0 -0
  1207. /package/dist/siemens-ix/{p-286feb7e.entry.js.map → p-297cd68a.entry.js.map} +0 -0
  1208. /package/dist/siemens-ix/{p-2b9c5f59.entry.js.map → p-309b82ec.entry.js.map} +0 -0
  1209. /package/dist/siemens-ix/{p-6624076c.entry.js.map → p-353f081a.entry.js.map} +0 -0
  1210. /package/dist/siemens-ix/{p-4cc79e8f.entry.js.map → p-44425604.entry.js.map} +0 -0
  1211. /package/dist/siemens-ix/{p-05839c77.entry.js.map → p-48d6554c.entry.js.map} +0 -0
  1212. /package/dist/siemens-ix/{p-0dbc970e.entry.js.map → p-4cb35508.entry.js.map} +0 -0
  1213. /package/dist/siemens-ix/{p-45840cb9.js.map → p-5767345b.entry.js.map} +0 -0
  1214. /package/dist/siemens-ix/{p-cbfca958.entry.js.map → p-617b3d78.entry.js.map} +0 -0
  1215. /package/dist/siemens-ix/{p-1f6df0c6.js.map → p-738c2d1f.js.map} +0 -0
  1216. /package/dist/siemens-ix/{p-f35386ec.js.map → p-93d4d3c9.js.map} +0 -0
  1217. /package/dist/siemens-ix/{p-b62f8f62.entry.js.map → p-988ca463.entry.js.map} +0 -0
  1218. /package/dist/siemens-ix/{p-83da8f11.entry.js.map → p-9c63869a.entry.js.map} +0 -0
  1219. /package/dist/siemens-ix/{p-fe87443e.js.map → p-a6af13b0.js.map} +0 -0
  1220. /package/dist/siemens-ix/{p-7aa07d9b.entry.js.map → p-ac9bb8be.entry.js.map} +0 -0
  1221. /package/dist/siemens-ix/{p-d01f05cf.entry.js.map → p-b00f255c.entry.js.map} +0 -0
  1222. /package/dist/siemens-ix/{p-a36ad7c7.entry.js.map → p-b8b7aa8e.entry.js.map} +0 -0
  1223. /package/dist/siemens-ix/{p-df7060ae.entry.js.map → p-ba60132f.entry.js.map} +0 -0
  1224. /package/dist/siemens-ix/{p-54efe56b.entry.js.map → p-bb33784f.entry.js.map} +0 -0
  1225. /package/dist/siemens-ix/{p-d19b52bd.entry.js.map → p-bf01468d.entry.js.map} +0 -0
  1226. /package/dist/siemens-ix/{p-66559451.entry.js.map → p-c4b75f38.entry.js.map} +0 -0
  1227. /package/dist/siemens-ix/{p-caf49e00.entry.js.map → p-c7c8e52b.entry.js.map} +0 -0
  1228. /package/dist/siemens-ix/{p-0f2bf43d.entry.js.map → p-e09995d4.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{r as t,c as e,h as r,H as o,g as a}from"./p-5806df2b.js";const i='@charset "UTF-8";:host{position:relative;display:flex;align-items:center;justify-content:center;padding:10px 1.5rem;line-height:20px;font-size:14px;font-weight:bold;background-color:var(--theme-tab--background);color:var(--theme-tab--color)}: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::after{content:"";position:absolute;background-color:var(--theme-tab-indicator--background);width:100%;height:var(--theme-tab-indicator--height);left:0}:host .text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}:host .text span,:host .text span::before{pointer-events:none}:host .circle{display:flex;justify-content:center;align-items:center;height:3rem;width:3rem;background-color:var(--theme-animated-tab-indicator--background);border-radius:50%;border:2px solid var(--theme-animated-tab-circle--border-color);color:var(--theme-an…icon--color);cursor:pointer}:host .circle.selected:not(.disabled){background-color:var(--theme-animated-tab-circle--background--selected);color:var(--theme-animated-tab-icon--color--selected);border-color:var(--theme-animated-tab-circle--border-color--selected)}:host .circle.selected:not(.disabled):hover{background-color:var(--theme-animated-tab-circle--background--selected)}:host .circle:hover{background-color:var(--theme-animated-tab-circle--background--hover)}:host .circle:active{background-color:var(--theme-animated-tab-circle--background--active)}:host .circle:active{background-color:var(--theme-animated-tab-circle--background--active)}:host .circle.disabled{background-color:var(--theme-animated-tab-circle--background--disabled);border-color:var(--theme-animated-tab-circle--border-color--disabled)}:host .counter{position:absolute;z-index:1;height:16px;width:auto;background-color:var(--theme-pill-outline--background);border:1px solid var(--theme-tab-pill--border-color);border-radius:100px;bottom:6px;display:flex;justify-content:center;align-items:center;padding-left:0.25rem;padding-right:0.25rem;font-size:12px;line-height:14px;color:var(--theme-pill-outline--color);cursor:pointer}:host .counter.selected{border-color:var(--theme-tab-pill--border-color--selected)}:host .counter.disabled{border-color:var(--theme-tab-pill--border-color--disabled)}:host .hidden{display:none}:host(.circle){height:72px}:host(.top)::after{top:0}:host(.bottom)::after{bottom:0}:host(.stretched){flex-basis:100%;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(:hover:not(.circle)){background-color:var(--theme-tab--background--hover);color:var(--theme-tab-color-hover);cursor:pointer}:host(:hover:not(.circle))::after{background-color:var(--theme-tab-indicator--background--hover)}:host(:active:not(.circle)){background-color:var(--theme-tab--background--active);color:var(--theme-tab-color--active)}:host(:active:not(.circle))::after{background-color:var(--theme-tab-indicator--background--active)}:host(:focus-visible){outline:0px solid var(--focus--border-color)}:host(:focus-visible) .circle{outline:1px solid var(--focus--border-color)}:host(:focus-visible:not(.circle)){outline:1px solid var(--focus--border-color)}:host(.disabled){pointer-events:none;color:var(--theme-tab--color--disabled);background-color:var(--theme-tab--background--disabled)}:host(.disabled)::after{background-color:var(--theme-tab-indicator--background--disabled)}:host(.selected:not(.disabled)){background-color:var(--theme-tab--background--selected);color:var(--theme-tab--color--selected)}:host(.selected:not(.disabled))::after{background-color:var(--theme-tab-indicator--background--selected)}:host(.icon){padding:1.5rem 0.5rem}:host(.small-tab){height:32px;padding:1rem}:host(.small-tab.icon){padding:1rem 0.25rem}';const s=i;const c=class{constructor(r){t(this,r);this.tabClick=e(this,"tabClick",7);this.selected=false;this.disabled=false;this.small=false;this.icon=false;this.rounded=false;this.counter=undefined;this.layout="auto";this.placement="bottom"}tabItemClasses(t){return{selected:t.selected,disabled:t.disabled,"small-tab":t.small,icon:t.small,stretched:t.layout==="stretched",bottom:t.placement==="bottom",top:t.placement==="top",circle:t.circle}}render(){return r(o,{key:"aa3777497e986f80e8f6b5bffea01dc2df37f13b",class:this.tabItemClasses({selected:this.selected,disabled:this.disabled,small:this.small,icon:this.icon,layout:this.layout,placement:this.placement,circle:this.rounded}),tabIndex:0,onClick:t=>{const e=this.tabClick.emit({nativeEvent:t});if(e.defaultPrevented){t.stopPropagation()}}},r("div",{key:"5efa7f3f34b94adfeec71af2c99d7f3f5833755f",class:{circle:this.rounded,text:!this.rounded,selected:this.selected,disabled:this.disabled}},r("slot",{key:"a7299d374904a1c0dada6733734e95c192e0789d"})),r("div",{key:"1f131f3b776e8a1911b68cfccee8f4864fe79e42",class:{counter:true,selected:this.selected,hidden:!(this.rounded&&this.counter!==undefined),disabled:this.disabled}},this.counter))}};c.style=s;const l=t=>{if(typeof __zone_symbol__requestAnimationFrame==="function"){return __zone_symbol__requestAnimationFrame(t)}if(typeof requestAnimationFrame==="function"){return requestAnimationFrame(t)}return setTimeout(t)};const n=":host{width:auto;display:flex;align-items:center;position:relative}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host ::-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 .tab-items{overflow:hidden;scroll-behavior:smooth;width:100%}:host .tab-items .items-content{display:flex;align-items:center}:host .arrow{position:absolute;display:flex;align-items:center;justify-content:center;width:32px;height:32px;top:0;bottom:0;left:0;margin:auto 0;border-radius:4px;color:var(--theme-btn-invisible-primary--color);background-color:var(--theme-btn-invisible-primary--background);z-index:2}:host .arrow:hover{color:var(--theme-btn-invisible-primary--color--hover);background-color:var(--theme-btn-invisible-primary--background--hover)}:host .arrow:active{color:var(--theme-btn-invisible-primary--color--active);background-color:var(--theme-btn-invisible-primary--background--active)}:host .arrow.right{left:auto;right:0}:host .overflow-shadow{display:block;position:relative;height:100%;width:100%;pointer-events:all}:host .overflow-shadow.shadow-left{-webkit-mask-image:linear-gradient(90deg, transparent 0px, black 45px);mask-image:linear-gradient(90deg, transparent 0px, black 45px)}:host .overflow-shadow.shadow-right{-webkit-mask-image:linear-gradient(90deg, black calc(100% - 45px), transparent 100%);mask-image:linear-gradient(90deg, black calc(100% - 45px), transparent 100%)}:host .overflow-shadow.shadow-both{-webkit-mask-image:linear-gradient(90deg, transparent 0px, black 45px, black calc(100% - 45px), transparent 100%);mask-image:linear-gradient(90deg, transparent 0px, black 45px, black calc(100% - 45px), transparent 100%)}";const h=n;const d=class{constructor(r){t(this,r);this.selectedChange=e(this,"selectedChange",7);this.windowStartSize=window.innerWidth;this.clickAction={timeout:null,isClick:true};this.small=false;this.rounded=false;this.selected=0;this.layout="auto";this.placement="bottom";this.totalItems=0;this.currentScrollAmount=0;this.scrollAmount=100;this.scrollActionAmount=0;this.showArrowPrevious=false;this.showArrowNext=false}onWindowResize(){this.totalItems=0;this.totalItems=this.getTabs().length;if(this.windowStartSize===0)return this.windowStartSize=window.innerWidth;this.move(this.windowStartSize-window.innerWidth);this.windowStartSize=window.innerWidth}getTabs(){return Array.from(this.hostElement.querySelectorAll("ix-tab-item"))}getTab(t){return this.getTabs()[t]}getTabsWrapper(){var t;return(t=this.hostElement.shadowRoot)===null||t===void 0?void 0:t.querySelector(".items-content")}initResizeObserver(){const t=this.hostElement.parentElement;if(!t)return;this.resizeObserver=new ResizeObserver((()=>{this.renderArrows()}));this.resizeObserver.observe(t)}showArrows(){try{const t=this.getTabsWrapper();return t&&t.scrollWidth>Math.ceil(t.getBoundingClientRect().width)&&this.layout==="auto"}catch(t){return false}}showPreviousArrow(){try{return this.showArrows()===true&&this.scrollActionAmount<0}catch(t){return false}}showNextArrow(){try{const t=this.getTabsWrapper();if(!t){return false}const e=t.getBoundingClientRect();return this.showArrows()===true&&this.scrollActionAmount>(t.scrollWidth-e.width)*-1}catch(t){return false}}move(t,e=false){const r=this.getTabsWrapper();if(!r){return}const o=r.getBoundingClientRect().width;const a=-this.currentScrollAmount+o-r.scrollWidth;t=t<a?a:t;t+=this.currentScrollAmount;t=Math.min(t,0);const i=[`transform: translateX(${t}px);`,e?"transition: all ease-in-out 400ms;":""].join("");r.setAttribute("style",i);if(e)this.currentScrollAmount=this.scrollActionAmount=t;else this.scrollActionAmount=t}onSelectedChange(t){var e;if(!this.showArrows())return;const r=this.getTab(t).getBoundingClientRect();const o=(e=this.getTabsWrapper())===null||e===void 0?void 0:e.clientWidth;const a=32;if(r.left<a){this.move(-r.left+a,true)}else if(o&&r.right>o-a){this.move(o-r.right-a,true)}}setSelected(t){this.selected=t}clickTab(t){if(!this.clickAction.isClick||this.dragStop()){return}const{defaultPrevented:e}=this.selectedChange.emit(t);if(e){return}this.setSelected(t)}dragStart(t,e){if(!this.showArrows())return;if(e.button>0)return;this.clickAction.timeout=this.clickAction.timeout===null?setTimeout((()=>this.clickAction.isClick=false),300):null;const r=parseFloat(window.getComputedStyle(t).left);const o=e.clientX;const a=t=>this.dragMove(t,r,o);const i=()=>{window.removeEventListener("mousemove",a,false);window.removeEventListener("click",i,false);this.dragStop()};window.addEventListener("click",i);window.addEventListener("mousemove",a,false)}dragMove(t,e,r){this.move(t.clientX+e-r)}dragStop(){if(this.clickAction.timeout){clearTimeout(this.clickAction.timeout);this.clickAction.timeout=null}if(this.clickAction.isClick)return false;this.currentScrollAmount=this.scrollActionAmount;this.clickAction.isClick=true;return true}componentWillLoad(){const t=this.getTabs();t.map(((t,e)=>{if(this.small)t.setAttribute("small","true");if(this.rounded)t.setAttribute("rounded","true");t.setAttribute("layout",this.layout);t.setAttribute("selected",e===this.selected?"true":"false");t.setAttribute("placement",this.placement)}));this.initResizeObserver()}componentDidRender(){const t=this.getTabs();this.totalItems=t.length;t.map(((t,e)=>{t.setAttribute("selected",e===this.selected?"true":"false")}))}componentWillRender(){this.renderArrows()}renderArrows(){l((()=>{this.showArrowNext=this.showNextArrow();this.showArrowPrevious=this.showPreviousArrow()}))}componentDidLoad(){const t=this.getTabs();t.forEach((t=>{t.addEventListener("mousedown",(e=>this.dragStart(t,e)))}))}disconnectedCallback(){var t;(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect()}onTabClick(t){if(t.defaultPrevented){return}const e=t.target;const r=this.getTabs();r.forEach(((t,r)=>{if(!t.disabled&&t===e){this.clickTab(r)}}))}render(){return r(o,{key:"40618db9c5179c15841a181ebaff044a994fa41b"},this.showArrowPrevious&&r("div",{key:"6470740adb92447a2c15da33d3e3bca217c4c5d2",class:"arrow",onClick:()=>this.move(this.scrollAmount,true)},r("ix-icon",{key:"4e0775a52a8c7da00f9b07b51accc14ca9ba81bb",name:"chevron-left-small"})),r("div",{key:"5acd5d6f79f78ac07b10538c5ad4f1574fc4345c",class:{"tab-items":true,"overflow-shadow":true,"shadow-left":this.showArrowPrevious,"shadow-right":this.showArrowNext,"shadow-both":this.showArrowNext&&this.showArrowPrevious}},r("div",{key:"5b86235a18ff74dfe29f7aaec0894a10ce94ffd5",class:"items-content"},r("slot",{key:"39c0c5f320952d5da92e63407c2a2a792c72e44e"}))),this.showArrowNext&&r("div",{key:"82f02f4cccb7edd793a69bf1eb4087c3fab6c75f",class:"arrow right",onClick:()=>this.move(-this.scrollAmount,true)},r("ix-icon",{key:"c8ef765fbeff3ad9dfac79a4c0188ff67a6c1b76",name:"chevron-right-small"})))}get hostElement(){return a(this)}static get watchers(){return{selected:["onSelectedChange"]}}};d.style=h;export{c as ix_tab_item,d as ix_tabs};
2
- //# sourceMappingURL=p-2d3a6d29.entry.js.map
1
+ import{r as t,c as e,h as r,H as o,g as a}from"./p-5806df2b.js";const i='@charset "UTF-8";:host{position:relative;display:flex;align-items:center;justify-content:center;padding:10px 1.5rem;line-height:20px;font-size:14px;font-weight:bold;background-color:var(--theme-tab--background);color:var(--theme-tab--color)}: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::after{content:"";position:absolute;background-color:var(--theme-tab-indicator--background);width:100%;height:var(--theme-tab-indicator--height);left:0}:host .text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}:host .text span,:host .text span::before{pointer-events:none}:host .circle{display:flex;justify-content:center;align-items:center;height:3rem;width:3rem;background-color:var(--theme-animated-tab-indicator--background);border-radius:50%;border:2px solid var(--theme-animated-tab-circle--border-color);color:var(--theme-an…icon--color);cursor:pointer}:host .circle.selected:not(.disabled){background-color:var(--theme-animated-tab-circle--background--selected);color:var(--theme-animated-tab-icon--color--selected);border-color:var(--theme-animated-tab-circle--border-color--selected)}:host .circle.selected:not(.disabled):hover{background-color:var(--theme-animated-tab-circle--background--selected)}:host .circle:hover{background-color:var(--theme-animated-tab-circle--background--hover)}:host .circle:active{background-color:var(--theme-animated-tab-circle--background--active)}:host .circle:active{background-color:var(--theme-animated-tab-circle--background--active)}:host .circle.disabled{background-color:var(--theme-animated-tab-circle--background--disabled);border-color:var(--theme-animated-tab-circle--border-color--disabled)}:host .counter{position:absolute;z-index:1;height:16px;width:auto;background-color:var(--theme-pill-outline--background);border:1px solid var(--theme-tab-pill--border-color);border-radius:100px;bottom:6px;display:flex;justify-content:center;align-items:center;padding-left:0.25rem;padding-right:0.25rem;font-size:12px;line-height:14px;color:var(--theme-pill-outline--color);cursor:pointer}:host .counter.selected{border-color:var(--theme-tab-pill--border-color--selected)}:host .counter.disabled{border-color:var(--theme-tab-pill--border-color--disabled)}:host .hidden{display:none}:host(.circle){height:72px}:host(.top)::after{top:0}:host(.bottom)::after{bottom:0}:host(.stretched){flex-basis:100%;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(:hover:not(.circle)){background-color:var(--theme-tab--background--hover);color:var(--theme-tab-color-hover);cursor:pointer}:host(:hover:not(.circle))::after{background-color:var(--theme-tab-indicator--background--hover)}:host(:active:not(.circle)){background-color:var(--theme-tab--background--active);color:var(--theme-tab-color--active)}:host(:active:not(.circle))::after{background-color:var(--theme-tab-indicator--background--active)}:host(:focus-visible){outline:0px solid var(--focus--border-color)}:host(:focus-visible) .circle{outline:1px solid var(--focus--border-color)}:host(:focus-visible:not(.circle)){outline:1px solid var(--focus--border-color)}:host(.disabled){pointer-events:none;color:var(--theme-tab--color--disabled);background-color:var(--theme-tab--background--disabled)}:host(.disabled)::after{background-color:var(--theme-tab-indicator--background--disabled)}:host(.selected:not(.disabled)){background-color:var(--theme-tab--background--selected);color:var(--theme-tab--color--selected)}:host(.selected:not(.disabled))::after{background-color:var(--theme-tab-indicator--background--selected)}:host(.icon){padding:1.5rem 0.5rem}:host(.small-tab){height:32px;padding:1rem}:host(.small-tab.icon){padding:1rem 0.25rem}';const s=i;const c=class{constructor(r){t(this,r);this.tabClick=e(this,"tabClick",7);this.selected=false;this.disabled=false;this.small=false;this.icon=false;this.rounded=false;this.counter=undefined;this.layout="auto";this.placement="bottom"}tabItemClasses(t){return{selected:t.selected,disabled:t.disabled,"small-tab":t.small,icon:t.small,stretched:t.layout==="stretched",bottom:t.placement==="bottom",top:t.placement==="top",circle:t.circle}}render(){return r(o,{key:"aa3777497e986f80e8f6b5bffea01dc2df37f13b",class:this.tabItemClasses({selected:this.selected,disabled:this.disabled,small:this.small,icon:this.icon,layout:this.layout,placement:this.placement,circle:this.rounded}),tabIndex:0,onClick:t=>{const e=this.tabClick.emit({nativeEvent:t});if(e.defaultPrevented){t.stopPropagation()}}},r("div",{key:"5efa7f3f34b94adfeec71af2c99d7f3f5833755f",class:{circle:this.rounded,text:!this.rounded,selected:this.selected,disabled:this.disabled}},r("slot",{key:"a7299d374904a1c0dada6733734e95c192e0789d"})),r("div",{key:"1f131f3b776e8a1911b68cfccee8f4864fe79e42",class:{counter:true,selected:this.selected,hidden:!(this.rounded&&this.counter!==undefined),disabled:this.disabled}},this.counter))}};c.style=s;const l=t=>{if(typeof __zone_symbol__requestAnimationFrame==="function"){return __zone_symbol__requestAnimationFrame(t)}if(typeof requestAnimationFrame==="function"){return requestAnimationFrame(t)}return setTimeout(t)};const n=":host{width:auto;display:flex;align-items:center;position:relative}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host ::-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 .tab-items{overflow:hidden;scroll-behavior:smooth;width:100%}:host .tab-items .items-content{display:flex;align-items:center}:host .arrow{position:absolute;display:flex;align-items:center;justify-content:center;width:32px;height:32px;top:0;bottom:0;left:0;margin:auto 0;border-radius:4px;color:var(--theme-btn-invisible-primary--color);background-color:var(--theme-btn-invisible-primary--background);z-index:2}:host .arrow:hover{color:var(--theme-btn-invisible-primary--color--hover);background-color:var(--theme-btn-invisible-primary--background--hover)}:host .arrow:active{color:var(--theme-btn-invisible-primary--color--active);background-color:var(--theme-btn-invisible-primary--background--active)}:host .arrow.right{left:auto;right:0}:host .overflow-shadow{display:block;position:relative;height:100%;width:100%;pointer-events:all}:host .overflow-shadow.shadow-left{-webkit-mask-image:linear-gradient(90deg, transparent 0px, black 45px);mask-image:linear-gradient(90deg, transparent 0px, black 45px)}:host .overflow-shadow.shadow-right{-webkit-mask-image:linear-gradient(90deg, black calc(100% - 45px), transparent 100%);mask-image:linear-gradient(90deg, black calc(100% - 45px), transparent 100%)}:host .overflow-shadow.shadow-both{-webkit-mask-image:linear-gradient(90deg, transparent 0px, black 45px, black calc(100% - 45px), transparent 100%);mask-image:linear-gradient(90deg, transparent 0px, black 45px, black calc(100% - 45px), transparent 100%)}";const h=n;const d=class{constructor(r){t(this,r);this.selectedChange=e(this,"selectedChange",7);this.windowStartSize=window.innerWidth;this.clickAction={timeout:null,isClick:true};this.small=false;this.rounded=false;this.selected=0;this.layout="auto";this.placement="bottom";this.totalItems=0;this.currentScrollAmount=0;this.scrollAmount=100;this.scrollActionAmount=0;this.showArrowPrevious=false;this.showArrowNext=false}onWindowResize(){this.totalItems=0;this.totalItems=this.getTabs().length;if(this.windowStartSize===0)return this.windowStartSize=window.innerWidth;this.move(this.windowStartSize-window.innerWidth);this.windowStartSize=window.innerWidth}getTabs(){return Array.from(this.hostElement.querySelectorAll("ix-tab-item"))}getTab(t){return this.getTabs()[t]}getTabsWrapper(){var t;return(t=this.hostElement.shadowRoot)===null||t===void 0?void 0:t.querySelector(".items-content")}initResizeObserver(){const t=this.hostElement.parentElement;if(!t)return;this.resizeObserver=new ResizeObserver((()=>{this.renderArrows()}));this.resizeObserver.observe(t)}showArrows(){try{const t=this.getTabsWrapper();return t&&t.scrollWidth>Math.ceil(t.getBoundingClientRect().width)&&this.layout==="auto"}catch(t){return false}}showPreviousArrow(){try{return this.showArrows()===true&&this.scrollActionAmount<0}catch(t){return false}}showNextArrow(){try{const t=this.getTabsWrapper();if(!t){return false}const e=t.getBoundingClientRect();return this.showArrows()===true&&this.scrollActionAmount>(t.scrollWidth-e.width)*-1}catch(t){return false}}move(t,e=false){const r=this.getTabsWrapper();if(!r){return}const o=r.getBoundingClientRect().width;const a=-this.currentScrollAmount+o-r.scrollWidth;t=t<a?a:t;t+=this.currentScrollAmount;t=Math.min(t,0);const i=[`transform: translateX(${t}px);`,e?"transition: all ease-in-out 400ms;":""].join("");r.setAttribute("style",i);if(e)this.currentScrollAmount=this.scrollActionAmount=t;else this.scrollActionAmount=t}onSelectedChange(t){var e;if(!this.showArrows())return;const r=this.getTab(t).getBoundingClientRect();const o=(e=this.getTabsWrapper())===null||e===void 0?void 0:e.clientWidth;const a=32;if(r.left<a){this.move(-r.left+a,true)}else if(o&&r.right>o-a){this.move(o-r.right-a,true)}}setSelected(t){this.selected=t}clickTab(t){if(!this.clickAction.isClick||this.dragStop()){return}const{defaultPrevented:e}=this.selectedChange.emit(t);if(e){return}this.setSelected(t)}dragStart(t,e){if(!this.showArrows())return;if(e.button>0)return;this.clickAction.timeout=this.clickAction.timeout===null?setTimeout((()=>this.clickAction.isClick=false),300):null;const r=parseFloat(window.getComputedStyle(t).left);const o=e.clientX;const a=t=>this.dragMove(t,r,o);const i=()=>{window.removeEventListener("mousemove",a,false);window.removeEventListener("click",i,false);this.dragStop()};window.addEventListener("click",i);window.addEventListener("mousemove",a,false)}dragMove(t,e,r){this.move(t.clientX+e-r)}dragStop(){if(this.clickAction.timeout){clearTimeout(this.clickAction.timeout);this.clickAction.timeout=null}if(this.clickAction.isClick)return false;this.currentScrollAmount=this.scrollActionAmount;this.clickAction.isClick=true;return true}componentWillLoad(){const t=this.getTabs();t.map(((t,e)=>{if(this.small)t.setAttribute("small","true");if(this.rounded)t.setAttribute("rounded","true");t.setAttribute("layout",this.layout);t.setAttribute("selected",e===this.selected?"true":"false");t.setAttribute("placement",this.placement)}));this.initResizeObserver()}componentDidRender(){const t=this.getTabs();this.totalItems=t.length;t.map(((t,e)=>{t.setAttribute("selected",e===this.selected?"true":"false")}))}componentWillRender(){this.renderArrows()}renderArrows(){l((()=>{this.showArrowNext=this.showNextArrow();this.showArrowPrevious=this.showPreviousArrow()}))}componentDidLoad(){const t=this.getTabs();t.forEach((t=>{t.addEventListener("mousedown",(e=>this.dragStart(t,e)))}))}disconnectedCallback(){var t;(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect()}onTabClick(t){if(t.defaultPrevented){return}const e=t.target;const r=this.getTabs();r.forEach(((t,r)=>{if(!t.disabled&&t===e){this.clickTab(r)}}))}render(){return r(o,{key:"5757cc920ea2b89cc9939105053637dba7845d99"},this.showArrowPrevious&&r("div",{key:"383591a874a69a2648f7442a45beab57d4e640f4",class:"arrow",onClick:()=>this.move(this.scrollAmount,true)},r("ix-icon",{key:"5473b2126b251e42c0764299ba34d7a99a53a3f1",name:"chevron-left-small"})),r("div",{key:"f13e44ec54af45c4e1a98c33b9c3dfb8610d7ae0",class:{"tab-items":true,"overflow-shadow":true,"shadow-left":this.showArrowPrevious,"shadow-right":this.showArrowNext,"shadow-both":this.showArrowNext&&this.showArrowPrevious}},r("div",{key:"5838bc0dc74ff67826446dde195b3b5040a6b425",class:"items-content"},r("slot",{key:"0b5eb4c8273d8f603f739790d3ea1f4c2e139fde"}))),this.showArrowNext&&r("div",{key:"1037686d86fd6679d0a32c35397b28dac856930a",class:"arrow right",onClick:()=>this.move(-this.scrollAmount,true)},r("ix-icon",{key:"cfa4efccdf75b7f0d30cbc1b9bb7694d2c70896e",name:"chevron-right-small"})))}get hostElement(){return a(this)}static get watchers(){return{selected:["onSelectedChange"]}}};d.style=h;export{c as ix_tab_item,d as ix_tabs};
2
+ //# sourceMappingURL=p-1bff0a1f.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as e,h as t,H as o,g as r}from"./p-5806df2b.js";const s=":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}";const a=s;const h=class{constructor(t){e(this,t);this.size="medium";this.hasHeaderSlot=false;this.hasFooterSlot=false}handleHeaderSlotChange(){this.hasHeaderSlot=!!this.hostElement.querySelector('[slot="header"]')}handleFooterSlotChange(){this.hasFooterSlot=!!this.hostElement.querySelector('[slot="footer"]')}render(){return t(o,{key:"cfc8d6668c5811b204b3e29c007a91f1212ef898",class:{"tile-small":this.size==="small","tile-medium":this.size==="medium","tile-big":this.size==="big"}},t("div",{key:"babc111307d12495e85df1082ba80bc4220141c1",class:{"tile-header":true,"has-content":this.hasHeaderSlot}},t("slot",{key:"e5b3867c6f6b84c2c79cde4e6fa172c9b8f9aece",name:"header",onSlotchange:()=>this.handleHeaderSlotChange()})),t("div",{key:"34c3a63614c9dd0197fb8887c7225bd52d8f782b",class:"tile-subheader"},t("slot",{key:"f45955002e2cc973b0f71c3ce23152d4bb1ed6f2",name:"subheader"})),t("div",{key:"1bb7411eb62e7f43718b7912efc951ab49795f0d",class:"tile-content"},t("slot",{key:"84961331ba612b39b157bb455a99187a57fa941d"})),t("div",{key:"55154883296f5d07df9fc45e554980c6bb40d8a0",class:{"tile-footer":true,"has-content":this.hasFooterSlot}},t("slot",{key:"22449cad3f6068f16555c82bb20d6cf87e76f143",name:"footer",onSlotchange:()=>this.handleFooterSlotChange()})))}get hostElement(){return r(this)}};h.style=a;export{h as ix_tile};
2
- //# sourceMappingURL=p-8da941cd.entry.js.map
1
+ import{r as e,h as t,H as o,g as r}from"./p-5806df2b.js";const a=":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}";const s=a;const h=class{constructor(t){e(this,t);this.size="medium";this.hasHeaderSlot=false;this.hasFooterSlot=false}handleHeaderSlotChange(){this.hasHeaderSlot=!!this.hostElement.querySelector('[slot="header"]')}handleFooterSlotChange(){this.hasFooterSlot=!!this.hostElement.querySelector('[slot="footer"]')}render(){return t(o,{key:"ac3f0fca5c25f7bb7224ef248cca4ee6e6294d85",class:{"tile-small":this.size==="small","tile-medium":this.size==="medium","tile-big":this.size==="big"}},t("div",{key:"c1d65c385b98420f4bdd6d742058200b14634c7b",class:{"tile-header":true,"has-content":this.hasHeaderSlot}},t("slot",{key:"38a70fedd15e29e0c238e94bd60f69b31dbf7d2a",name:"header",onSlotchange:()=>this.handleHeaderSlotChange()})),t("div",{key:"25d69652c0315f0a434487d523cfbae1d93fda6b",class:"tile-subheader"},t("slot",{key:"514cbc260eab41c4d400dcbf985a3be3290fb3cd",name:"subheader"})),t("div",{key:"7f4f75b86e8afd4d3e0aa80926d7f7190ca8fa61",class:"tile-content"},t("slot",{key:"ae9be816cda00d9b1365403dbce6e254e8c3b808"})),t("div",{key:"cc46d36240e64c2717aa89c0e7ba7a787d225096",class:{"tile-footer":true,"has-content":this.hasFooterSlot}},t("slot",{key:"740503c075e46accb41952baf68f1e1b41dea0fd",name:"footer",onSlotchange:()=>this.handleFooterSlotChange()})))}get hostElement(){return r(this)}};h.style=s;export{h as ix_tile};
2
+ //# sourceMappingURL=p-1c74bd8b.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["tileCss","IxTileStyle0","Tile","handleHeaderSlotChange","this","hasHeaderSlot","hostElement","querySelector","handleFooterSlotChange","hasFooterSlot","render","h","Host","key","class","size","name","onSlotchange"],"sources":["src/components/tile/tile.scss?tag=ix-tile&encapsulation=shadow","src/components/tile/tile.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\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: 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 { 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"],"mappings":"yDAAA,MAAMA,EAAU,w8DAChB,MAAAC,EAAeD,E,MCeFE,EAAI,M,mCAM4B,S,mBAET,M,mBACA,K,CAElC,sBAAAC,GACEC,KAAKC,gBAAkBD,KAAKE,YAAYC,cAAc,kB,CAGxD,sBAAAC,GACEJ,KAAKK,gBAAkBL,KAAKE,YAAYC,cAAc,kB,CAGxD,MAAAG,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CACHC,MAAO,CACL,aAAcV,KAAKW,OAAS,QAC5B,cAAeX,KAAKW,OAAS,SAC7B,WAAYX,KAAKW,OAAS,QAG5BJ,EAAA,OAAAE,IAAA,2CACEC,MAAO,CACL,cAAe,KACf,cAAeV,KAAKC,gBAGtBM,EAAA,QAAAE,IAAA,2CACEG,KAAK,SACLC,aAAc,IAAMb,KAAKD,4BAG7BQ,EAAA,OAAAE,IAAA,2CAAKC,MAAM,kBACTH,EAAA,QAAAE,IAAA,2CAAMG,KAAK,eAEbL,EAAA,OAAAE,IAAA,2CAAKC,MAAM,gBACTH,EAAA,QAAAE,IAAA,8CAEFF,EAAA,OAAAE,IAAA,2CACEC,MAAO,CACL,cAAe,KACf,cAAeV,KAAKK,gBAGtBE,EAAA,QAAAE,IAAA,2CACEG,KAAK,SACLC,aAAc,IAAMb,KAAKI,4B"}
1
+ {"version":3,"names":["tileCss","IxTileStyle0","Tile","handleHeaderSlotChange","this","hasHeaderSlot","hostElement","querySelector","handleFooterSlotChange","hasFooterSlot","render","h","Host","key","class","size","name","onSlotchange"],"sources":["src/components/tile/tile.scss?tag=ix-tile&encapsulation=shadow","src/components/tile/tile.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\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: 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 { 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"],"mappings":"yDAAA,MAAMA,EAAU,w8DAChB,MAAAC,EAAeD,E,MCeFE,EAAI,M,mCAM4B,S,mBAET,M,mBACA,K,CAElC,sBAAAC,GACEC,KAAKC,gBAAkBD,KAAKE,YAAYC,cAAc,kB,CAGxD,sBAAAC,GACEJ,KAAKK,gBAAkBL,KAAKE,YAAYC,cAAc,kB,CAGxD,MAAAG,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CACHC,MAAO,CACL,aAAcV,KAAKW,OAAS,QAC5B,cAAeX,KAAKW,OAAS,SAC7B,WAAYX,KAAKW,OAAS,QAG5BJ,EAAA,OAAAE,IAAA,2CACEC,MAAO,CACL,cAAe,KACf,cAAeV,KAAKC,gBAGtBM,EAAA,QAAAE,IAAA,2CACEG,KAAK,SACLC,aAAc,IAAMb,KAAKD,4BAG7BQ,EAAA,OAAAE,IAAA,2CAAKC,MAAM,kBACTH,EAAA,QAAAE,IAAA,2CAAMG,KAAK,eAEbL,EAAA,OAAAE,IAAA,2CAAKC,MAAM,gBACTH,EAAA,QAAAE,IAAA,8CAEFF,EAAA,OAAAE,IAAA,2CACEC,MAAO,CACL,cAAe,KACf,cAAeV,KAAKK,gBAGtBE,EAAA,QAAAE,IAAA,2CACEG,KAAK,SACLC,aAAc,IAAMb,KAAKI,4B"}
@@ -1,2 +1,2 @@
1
- import{r as e,f as t,h as r,H as i,c as o,F as a,g as s}from"./p-5806df2b.js";import{m as d}from"./p-68a274e7.js";import{D as n,I as c}from"./p-f5e574da.js";import{O as h}from"./p-9d5d4948.js";import{m as l}from"./p-ce563a48.js";import{n as u,o as b,p as f}from"./p-a427e6a2.js";const m=":host{position:relative;flex-basis:0;flex-grow:1;width:100%;max-width:100%;min-height:1px;padding:calc(var(--ix-layout-grid-gutter) * 0.5)}: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}";const g=m;const k=class{constructor(t){e(this,t);this.size=undefined;this.sizeSm=undefined;this.sizeMd=undefined;this.sizeLg=undefined}onResize(){t(this)}getSize(e){if(e===""){return this.size}if(e==="sm"){return this.sizeSm}if(e==="md"){return this.sizeMd}if(e==="lg"){return this.sizeLg}}getColumnSize(){let e;k.Breakpoints.forEach((t=>{const r=t!==""?d(t):true;if(!r){return}const i=this.getSize(t);if(i){e=i}}));return e}getColumnSizeStyling(){const e=this.getColumnSize();if(!e){return}if(e==="auto"){return{flex:"0 0 auto",width:"auto","max-width":"auto"}}const t=`calc(calc(${e} / var(--ix-layout-grid-columns)) * 100%)`;return{flex:`0 0 ${t}`,width:`${t}`,"max-width":`${t}`}}render(){return r(i,{key:"b1d777df4ddbe04b4c49206dedead245bcdd307a",style:Object.assign({},this.getColumnSizeStyling())},r("slot",{key:"80c027d13d22c89b42ce2f117ef5946934fc398e"}))}};k.Breakpoints=["","sm","md","lg"];k.style=g;const p=":host{display:block;position:relative;width:21rem}: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 .header{display:flex;align-items:center;justify-content:space-between}:host .disabled-item{pointer-events:none;background-color:var(--theme-datepicker-day--background--disabled);color:var(--theme-datepicker-day--color--disabled);cursor:default}:host .selector{flex-basis:100%;display:flex;align-items:center;justify-content:center;padding:0.25rem 1rem}:host .selector .dropdown{color:var(--theme-menu-item--color);font-size:14px;line-height:20px}:host .selector .fontSize{font-size:16px}:host .selector .capitalize{text-transform:capitalize}:host .selector .month-dropdown-item{margin-left:4px;margin-right:4px}:host .selector .month-dropdown-item:focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .selector .arrowYear{display:flex;position:relative;padding:0.75rem 2rem;align-items:center;cursor:pointer}:host .selector .arrowYear:hover{background-color:var(--theme-select-list-item--background--hover)}:host .selector .arrowYear.selected{background-color:var(--theme-select-list-item--background--selected)}:host .selector .arrowYear .arrowPosition{position:absolute;left:calc(1rem - 6px);top:calc(50% - 6px)}:host .selector .arrowYear .checkPosition{position:absolute;left:calc(1rem - 6px);top:calc(50% - 8px)}:host .selector .arrowYear .monthMargin{margin-left:10px}:host .wrapper{display:flex}:host .wrapper .overflow{overflow-y:scroll;max-height:250px}:host .grid{display:grid;grid-template-columns:24px repeat(7, 40px);grid-template-rows:repeat(7, 40px);align-items:center;justify-items:center;justify-content:center;color:var(--theme-datepicker-today--color)}:host .grid .calendar-item{position:relative;display:flex;justify-content:center;align-items:center;background-color:var(--theme-datepicker-day--background);border:1px solid var(--theme-datepicker-day--background);width:40px;height:40px;cursor:pointer}:host .grid .calendar-item:first-child{width:24px}:host .grid .calendar-item:focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset);background-color:var(--theme-datepicker-day--background--selected);border:inset 1px solid var(--theme-datepicker-day--border-color--selected);color:var(--theme-datepicker-day--color--selected);font-size:14px;line-height:20px;letter-spacing:0}:host .grid .calendar-item.today{border:1px solid var(--theme-datepicker-today--border-color)}:host .grid .calendar-item.today:hover{background-color:var(--theme-datepicker-day--background--hover)}:host .grid .calendar-item.today:active{background-color:var(--theme-datepicker-day--background--active)}:host .grid .calendar-item.today.selected{box-shadow:inset 0 0 0 1px white}:host .grid .calendar-item.today.selected:hover{background-color:var(--theme-datepicker-day--background--selected-hover)}:host .grid .calendar-item.today.selected:active{background-color:var(--theme-datepicker-day--background--selected-active)}:host .grid .calendar-item.today.selected.disabled{pointer-events:none;background-color:var(--theme-datepicker-day--background--selected-disabled);border:1px solid var(--theme-datepicker-day--background--selected-disabled);color:var(--theme-datepicker-day--color--selected-disabled)}:host .grid .calendar-item.today.range{background-color:var(--theme-datepicker-day--background--range);color:var(--theme-datepicker-day--color--range);border:1px solid var(--theme-datepicker-today--border-color--range);box-shadow:inset 0 0 0 1px white}:host .grid .calendar-item.today.range:hover{background-color:var(--theme-datepicker-day--background--range-hover);border:1px solid var(--theme-datepicker-today--border-color--range-hover)}:host .grid .calendar-item.today.range:active{background-color:var(--theme-datepicker-day--background--range-active);border:1px solid var(--theme-datepicker-today--border-color--range-active)}:host .grid .calendar-item.today.range.disabled{background-color:var(--theme-datepicker-day--background--range-disabled);color:var(--theme-datepicker-day--color--range-disabled);border:1px solid var(--theme-datepicker-today--border-color--range-disabled)}:host .grid .calendar-item.today.disabled{pointer-events:none;background-color:var(--theme-datepicker-day--background--disabled);color:var(--theme-datepicker-day--color--disabled);cursor:default}:host .grid .calendar-item:hover{background-color:var(--theme-datepicker-day--background--hover)}:host .grid .calendar-item:active{background-color:var(--theme-datepicker-day--background--active)}:host .grid .calendar-item.selected{background-color:var(--theme-datepicker-day--background--selected);color:var(--theme-datepicker-day--color--selected);border:1px solid var(--theme-datepicker-day--background--selected)}:host .grid .calendar-item.selected:hover{background-color:var(--theme-datepicker-day--background--selected-hover)}:host .grid .calendar-item.selected:active{background-color:var(--theme-datepicker-day--background--selected-active)}:host .grid .calendar-item.selected.disabled{pointer-events:none;background-color:var(--theme-datepicker-day--background--selected-disabled);color:var(--theme-datepicker-day--color--selected-disabled)}:host .grid .calendar-item.range{background-color:var(--theme-datepicker-day--background--range);color:var(--theme-datepicker-day--color--range)}:host .grid .calendar-item.range:hover{background-color:var(--theme-datepicker-day--background--range-hover)}:host .grid .calendar-item.range:active{background-color:var(--theme-datepicker-day--background--range-active)}:host .grid .calendar-item.range.disabled{pointer-events:none;background-color:var(--theme-datepicker-day--background--range-disabled);color:var(--theme-datepicker-day--color--range-disabled)}:host .grid .calendar-item.disabled{pointer-events:none;background-color:var(--theme-datepicker-day--background--disabled);color:var(--theme-datepicker-day--color--disabled)}:host .grid .calendar-item.week-day{color:var(--theme-datepicker-weekday--color);font-size:12px;line-height:20px;border:none;background:none;cursor:initial}:host .grid .calendar-item.week-day .overflow{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .grid .calendar-item.empty-day{border:none;background:none;cursor:initial}:host .grid .calendar-item.week-number{font-size:10px;line-height:14px;color:var(--theme-datepicker-weekday--color);border:none;background:none;cursor:initial;width:1.5rem}:host .button{display:flex;justify-content:flex-end;margin-top:1rem}:host .hidden{display:none}";const v=p;var y=undefined&&undefined.__decorate||function(e,t,r,i){var o=arguments.length,a=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,r,i);else for(var d=e.length-1;d>=0;d--)if(s=e[d])a=(o<3?s(a):o>3?s(t,r,a):s(t,r))||a;return o>3&&a&&Object.defineProperty(t,r,a),a};const w=class{constructor(t){e(this,t);this.dateChange=o(this,"dateChange",7);this.dateRangeChange=o(this,"dateRangeChange",7);this.dateSelect=o(this,"dateSelect",7);this.done=o(this,"done",7);this.dropdownButtonRef=l();this.yearContainerRef=l();this.firstMonthRef=l();this.isDayFocus=false;this.monthChangedFromFocus=false;this.DAYS_IN_WEEK=7;this.calendar=[];this.format="yyyy/LL/dd";this.range=true;this.corners="rounded";this.from=undefined;this.to=undefined;this.minDate="";this.maxDate="";this.textSelectDate="";this.i18nDone="Done";this.weekStartIndex=0;this.locale=undefined;this.individual=true;this.eventDelimiter=" - ";this.standaloneAppearance=true;this.today=n.now().toISO();this.currFromDate=undefined;this.currToDate=undefined;this.selectedYear=0;this.tempYear=0;this.startYear=0;this.endYear=0;this.selectedMonth=0;this.tempMonth=0;this.dayNames=undefined;this.monthNames=undefined;this.focusedDay=1}watchFromPropHandler(e){var t;this.currFromDate=e?n.fromFormat(e,this.format):undefined;if((t=this.currFromDate)===null||t===void 0?void 0:t.isValid){this.selectedYear=this.currFromDate.year;this.selectedMonth=this.currFromDate.month-1}}watchToPropHandler(e){var t;this.currToDate=e?n.fromFormat(e,this.format):undefined;if((t=this.currToDate)===null||t===void 0?void 0:t.isValid){this.selectedYear=this.currToDate.year;this.selectedMonth=this.currToDate.month-1}}onLocaleChange(){this.setTranslations()}async getCurrentDate(){var e,t,r,i;const o=((e=this.currFromDate)===null||e===void 0?void 0:e.isValid)?(t=this.currFromDate)===null||t===void 0?void 0:t.toFormat(this.format):undefined;const a=((r=this.currToDate)===null||r===void 0?void 0:r.isValid)?(i=this.currToDate)===null||i===void 0?void 0:i.toFormat(this.format):undefined;if(this.range){return{from:o,to:a}}return{from:o,to:undefined}}handleKeyUp(e){if(!this.isDayFocus){return}let t=this.focusedDay;switch(e.key){case"ArrowLeft":t--;break;case"ArrowRight":t++;break;case"ArrowUp":t=t-7;break;case"ArrowDown":t=t+7;break;default:return}if(t>this.getDaysInCurrentMonth()){t=t-this.getDaysInCurrentMonth();this.changeToAdjacentMonth(1);this.monthChangedFromFocus=true}else if(t<1){this.changeToAdjacentMonth(-1);t=t+this.getDaysInCurrentMonth();this.monthChangedFromFocus=true}this.focusedDay=t}getDaysInCurrentMonth(){return n.utc(this.selectedYear,this.selectedMonth+1).daysInMonth||0}getDateTimeNow(){return n.fromISO(this.today)}onDayBlur(){this.isDayFocus=false}onDayFocus(){this.isDayFocus=true}componentWillLoad(){var e,t,r,i;this.setTranslations();this.currFromDate=this.from?n.fromFormat(this.from,this.format):undefined;this.currToDate=this.to?n.fromFormat(this.to,this.format):undefined;const o=(t=(e=this.currFromDate)===null||e===void 0?void 0:e.year)!==null&&t!==void 0?t:this.getDateTimeNow().year;this.startYear=o-5;this.endYear=o+5;this.selectedMonth=((i=(r=this.currFromDate)===null||r===void 0?void 0:r.month)!==null&&i!==void 0?i:this.getDateTimeNow().month)-1;this.selectedYear=o;this.tempMonth=this.selectedMonth;this.tempYear=this.selectedYear}componentWillRender(){this.calculateCalendar()}componentDidRender(){if(!this.monthChangedFromFocus&&!this.isDayFocus){return}const e=this.hostElement.shadowRoot.querySelector(`[id=day-cell-${this.focusedDay}]`);e.focus()}setTranslations(){this.dayNames=this.rotateWeekDayNames(c.weekdays("long",{locale:this.locale}),this.weekStartIndex);this.monthNames=c.months("long",{locale:this.locale})}rotateWeekDayNames(e,t){const r=[...e];if(t===0){return r}t=-t;const i=e.length;r.push(...r.splice(0,(-t%i+i)%i));return r}async onDone(){const e=await this.getCurrentDate();this.dateSelect.emit(e)}calculateCalendar(){const e=[];const t=n.utc(this.selectedYear,this.selectedMonth+1);const r=t.startOf("month");const i=t.endOf("month");let o=r.weekNumber;let a=i.weekNumber;let s=r.weekday-1;let d=i.weekday-1;if(this.weekStartIndex!==0){const e=c.weekdays();const t=e[r.weekday];s=this.dayNames.findIndex((e=>e===t));const o=e[i.weekday];d=this.dayNames.findIndex((e=>e===o))}let h=false;if(a===1){a=i.weeksInWeekYear+1;h=true}let l=false;if(o===r.weeksInWeekYear){o=1;a++;l=true}let u=1;for(let t=o;t<=a&&u<=31;t++){const n=[];for(let e=0;e<this.DAYS_IN_WEEK&&u<=31;e++){if(t===o&&e<s||t===a&&e>d){n.push(undefined)}else{n.push(u++)}}if(l||h){if(t===1){e.push({weekNumber:r.weeksInWeekYear,dayNumbers:n})}else if(t===i.weekNumber){e.push({weekNumber:1,dayNumbers:n})}else{e.push({weekNumber:t-1,dayNumbers:n})}continue}e.push({weekNumber:t,dayNumbers:n})}this.calendar=e}selectTempYear(e,t){e===null||e===void 0?void 0:e.stopPropagation();this.tempYear=t}focusMonth(){var e;(e=this.firstMonthRef.current)===null||e===void 0?void 0:e.focus()}infiniteScrollYears(){const e=this.yearContainerRef.current;if(!e){return}const t=e.scrollTop;const r=e.scrollHeight;const i=t===0;const o=Math.round(t+e.offsetHeight)>=r;const a=200;if(this.endYear-this.startYear>a)return;if(i){const t=e.firstElementChild;this.startYear-=5;e.scrollTo(0,t.offsetTop);return}if(o){const t=e.lastElementChild;this.endYear+=5;e.scrollTo(0,t.offsetTop)}}selectMonth(e){this.selectedMonth=e;this.selectedYear=this.tempYear;this.tempMonth=e;const t=this.hostElement.shadowRoot.querySelector("ix-dropdown");if(t){t.show=false}}changeToAdjacentMonth(e){if(this.selectedMonth+e<0){this.selectedYear--;this.selectedMonth=11}else if(this.selectedMonth+e>11){this.selectedYear++;this.selectedMonth=0}else{this.selectedMonth+=e}}selectDay(e,t){if(t.classList.contains("disabled")){return}const r=n.fromJSDate(new Date(this.selectedYear,this.selectedMonth,e));if(!this.range||this.currFromDate===undefined){this.currFromDate=r;this.onDateChange();return}if(this.currToDate!==undefined){this.currFromDate=r;this.currToDate=undefined;this.onDateChange();return}if(r<this.currFromDate){this.currToDate=this.currFromDate;this.currFromDate=r;this.onDateChange();return}this.currToDate=r;this.onDateChange()}onDateChange(){this.getCurrentDate().then((e=>{this.dateChange.emit(e);if(this.range){this.dateRangeChange.emit(e)}}))}getDayClasses(e){var t,r,i;const o=this.getDateTimeNow();const a=n.fromJSDate(new Date(this.selectedYear,this.selectedMonth,e));return{"calendar-item":true,"empty-day":e===undefined,today:o.hasSame(a,"day"),selected:((t=this.currFromDate)===null||t===void 0?void 0:t.hasSame(a,"day"))||((r=this.currToDate)===null||r===void 0?void 0:r.hasSame(a,"day")),range:this.currFromDate&&a.startOf("day")>this.currFromDate.startOf("day")&&this.currToDate!==undefined&&a.startOf("day")<((i=this.currToDate)===null||i===void 0?void 0:i.startOf("day")),disabled:!this.isWithinMinMaxDate(a)}}isWithinMinMaxYear(e){const t=this.minDate?n.fromFormat(this.minDate,this.format).year:undefined;const r=this.maxDate?n.fromFormat(this.maxDate,this.format).year:undefined;const i=t?e<t:false;const o=r?e>r:false;return!i&&!o}isWithinMinMaxMonth(e){const t=this.minDate?n.fromFormat(this.minDate,this.format):undefined;const r=this.maxDate?n.fromFormat(this.maxDate,this.format):undefined;const i=t===null||t===void 0?void 0:t.month;const o=r===null||r===void 0?void 0:r.month;const a=i?this.tempYear===t.year&&e<i:false;const s=o?this.tempYear===r.year&&e>o:false;return!a&&!s}isWithinMinMaxDate(e){const t=this.minDate?n.fromFormat(this.minDate,this.format):undefined;const r=this.maxDate?n.fromFormat(this.maxDate,this.format):undefined;const i=t?e.startOf("day")<t.startOf("day"):false;const o=r?e.startOf("day")>r.startOf("day"):false;return!i&&!o}renderYears(){const e=[];for(let t=this.startYear;t<=this.endYear;t++){e.push(r("div",{key:t,class:{arrowYear:true,"month-dropdown-item":true,"disabled-item":!this.isWithinMinMaxYear(t)},onClick:e=>this.selectTempYear(e,t),onKeyUp:e=>{if(e.key==="Enter"){this.tempYear=t;this.focusMonth()}},tabIndex:0},r("ix-icon",{class:{hidden:this.tempYear!==t,arrowPosition:true},name:u,size:"12"}),r("div",{style:{"min-width":"max-content"}},`${t}`)))}return e}render(){return r(i,{key:"238c08c47cda55cd5719af6bb0dd88b15cdd6a0b"},r("ix-date-time-card",{key:"ce2cf5f01d5b97cffbf56be5034f1b28f65be31e",corners:this.corners,standaloneAppearance:this.standaloneAppearance},r("div",{key:"cdfd57fae1b96face3d41ec167fca76a94ad639d",class:"header",slot:"header"},r("ix-icon-button",{key:"2f0fe29c971d7b25259d91aadbeec9bfa12128bb",onClick:()=>this.changeToAdjacentMonth(-1),ghost:true,icon:b,variant:"primary",class:"arrows"}),r("div",{key:"19e2fd6622c3079f8830ab364847342fe22fe534",class:"selector"},r("ix-button",{key:"b967de770c789884c84c166dce0a33cb68490807",ghost:true,ref:this.dropdownButtonRef,"data-testid":"year-month-button"},r("span",{key:"2e137239fa8b48396a2f77753b07c4dd821784e7",class:"fontSize capitalize"},this.monthNames[this.selectedMonth]," ",this.selectedYear)),r("ix-dropdown",{key:"4e41ef26fe89e2436746b887b4c4a3637235fb1e","data-testid":"year-month-dropdown",class:"dropdown",trigger:this.dropdownButtonRef.waitForCurrent(),ignoreRelatedSubmenu:true,placement:"bottom-start"},r("div",{key:"d22832a957d2c144734204426f82f96c633d2c3c",class:"wrapper"},r("div",{key:"8f5b66c3951b6adf1171cf504a71278a71abfb75","data-testid":"year-container",class:"overflow",onScroll:()=>this.infiniteScrollYears(),ref:this.yearContainerRef},this.renderYears()),r("div",{key:"3de4460f49c49cfeadf92436928cfce5865ec524",class:"overflow","data-testid":"month-container"},this.monthNames.map(((e,t)=>r("div",{key:e,ref:t=>{if(e===this.monthNames[0]){this.firstMonthRef(t)}},class:{arrowYear:true,"month-dropdown-item":true,selected:this.tempYear===this.selectedYear&&this.tempMonth===t,"disabled-item":!this.isWithinMinMaxMonth(t)},onClick:()=>this.selectMonth(t),onKeyUp:e=>e.key==="Enter"&&this.selectMonth(t),tabIndex:0},r("ix-icon",{class:{hidden:this.tempYear!==this.selectedYear||this.tempMonth!==t,checkPosition:true},name:f,size:"16"}),r("div",null,r("span",{class:"capitalize monthMargin"},`${e} ${this.tempYear}`))))))))),r("ix-icon-button",{key:"e784d17edc322d7c9f3a08935b39310f03570f01",onClick:()=>this.changeToAdjacentMonth(1),ghost:true,icon:u,variant:"primary",class:"arrows"})),r("div",{key:"03e2298da73e89bad67385c3606bd9379ba6023e",class:"grid"},r("div",{key:"92e401cc859da4ee6b48d003622f201337396e63",class:"calendar-item week-day"}),this.dayNames.map((e=>r("div",{key:e,class:"calendar-item week-day"},r("div",{class:"overflow"},e.slice(0,3))))),this.calendar.map((e=>r(a,null,r("div",{class:"calendar-item week-number"},e.weekNumber),e.dayNumbers.map((e=>e?r("div",{key:e,id:`day-cell-${e}`,"date-calender-day":true,class:this.getDayClasses(e),onClick:t=>{const r=t.currentTarget;this.selectDay(e,r)},onKeyUp:t=>{const r=t.currentTarget;if(t.key==="Enter"){this.selectDay(e,r)}},tabIndex:e===this.focusedDay?0:-1,onFocus:()=>this.onDayFocus(),onBlur:()=>this.onDayBlur()},e):r("div",null))))))),r("div",{key:"4a372c1b81f373bd7d7587f7bd3b9833331f5180",class:{button:true,hidden:!this.range||!this.standaloneAppearance}},r("ix-button",{key:"df8e87595933516e5348233dea8861f5a4da0541",onClick:()=>this.onDone()},this.textSelectDate||this.i18nDone))))}get hostElement(){return s(this)}static get watchers(){return{from:["watchFromPropHandler"],to:["watchToPropHandler"],locale:["onLocaleChange"]}}};y([h("keydown")],w.prototype,"handleKeyUp",null);w.style=v;const x=":host{--ix-layout-grid-gutter:24px;display:block;flex:1 1 0%;width:100%;padding-left:calc(var(--ix-layout-grid-gutter) * 0.5);padding-right:calc(var(--ix-layout-grid-gutter) * 0.5)}:host(.no-margin){padding-left:0;padding-right:0}";const z=x;const j=class{constructor(t){e(this,t);this.noMargin=false;this.gap="24";this.columns=12}render(){return r(i,{key:"c94b508ccf7ff23d457bec9444d69eb97c9b46a2",class:{"no-margin":this.noMargin},style:{"--ix-layout-grid-columns":`${this.columns}`,"--ix-layout-grid-gutter":`${this.gap}px`}},r("slot",{key:"5a8180b92db51b02dbc3ddd805fa3f2eacd886c0"}))}};j.style=z;const C=":host{display:flex;flex-wrap:wrap}:host(:not(:first-of-type)){margin-block-start:var(--ix-layout-grid-row-margin, 0)}";const D=C;const M=class{constructor(t){e(this,t)}render(){return r(i,{key:"89172693b9ba7a6cbe639e50e72992d5028af953"},r("slot",{key:"bb424e5fe98e377dd765192debdf0a268bb4f7a2"}))}};M.style=D;export{k as ix_col,w as ix_date_picker,j as ix_layout_grid,M as ix_row};
2
- //# sourceMappingURL=p-0c89cbcc.entry.js.map
1
+ import{r as e,f as t,h as r,H as i,c as o,F as a,g as s}from"./p-5806df2b.js";import{m as d}from"./p-68a274e7.js";import{D as n,I as c}from"./p-f5e574da.js";import{O as h}from"./p-9d5d4948.js";import{m as l}from"./p-ce563a48.js";import{o as u,p as b,q as f}from"./p-fe158b99.js";const m=":host{position:relative;flex-basis:0;flex-grow:1;width:100%;max-width:100%;min-height:1px;padding:calc(var(--ix-layout-grid-gutter) * 0.5)}: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}";const g=m;const k=class{constructor(t){e(this,t);this.size=undefined;this.sizeSm=undefined;this.sizeMd=undefined;this.sizeLg=undefined}onResize(){t(this)}getSize(e){if(e===""){return this.size}if(e==="sm"){return this.sizeSm}if(e==="md"){return this.sizeMd}if(e==="lg"){return this.sizeLg}}getColumnSize(){let e;k.Breakpoints.forEach((t=>{const r=t!==""?d(t):true;if(!r){return}const i=this.getSize(t);if(i){e=i}}));return e}getColumnSizeStyling(){const e=this.getColumnSize();if(!e){return}if(e==="auto"){return{flex:"0 0 auto",width:"auto","max-width":"auto"}}const t=`calc(calc(${e} / var(--ix-layout-grid-columns)) * 100%)`;return{flex:`0 0 ${t}`,width:`${t}`,"max-width":`${t}`}}render(){return r(i,{key:"b1d777df4ddbe04b4c49206dedead245bcdd307a",style:Object.assign({},this.getColumnSizeStyling())},r("slot",{key:"80c027d13d22c89b42ce2f117ef5946934fc398e"}))}};k.Breakpoints=["","sm","md","lg"];k.style=g;const p=":host{display:block;position:relative;width:21rem}: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 .header{display:flex;align-items:center;justify-content:space-between}:host .disabled-item{pointer-events:none;background-color:var(--theme-datepicker-day--background--disabled);color:var(--theme-datepicker-day--color--disabled);cursor:default}:host .selector{flex-basis:100%;display:flex;align-items:center;justify-content:center;padding:0.25rem 1rem}:host .selector .dropdown{color:var(--theme-menu-item--color);font-size:14px;line-height:20px}:host .selector .fontSize{font-size:16px}:host .selector .capitalize{text-transform:capitalize}:host .selector .month-dropdown-item{margin-left:4px;margin-right:4px}:host .selector .month-dropdown-item:focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .selector .arrowYear{display:flex;position:relative;padding:0.75rem 2rem;align-items:center;cursor:pointer}:host .selector .arrowYear:hover{background-color:var(--theme-select-list-item--background--hover)}:host .selector .arrowYear.selected{background-color:var(--theme-select-list-item--background--selected)}:host .selector .arrowYear .arrowPosition{position:absolute;left:calc(1rem - 6px);top:calc(50% - 6px)}:host .selector .arrowYear .checkPosition{position:absolute;left:calc(1rem - 6px);top:calc(50% - 8px)}:host .selector .arrowYear .monthMargin{margin-left:10px}:host .wrapper{display:flex}:host .wrapper .overflow{overflow-y:scroll;max-height:250px}:host .grid{display:grid;grid-template-columns:24px repeat(7, 40px);grid-template-rows:repeat(7, 40px);align-items:center;justify-items:center;justify-content:center;color:var(--theme-datepicker-today--color)}:host .grid .calendar-item{position:relative;display:flex;justify-content:center;align-items:center;background-color:var(--theme-datepicker-day--background);border:1px solid var(--theme-datepicker-day--background);width:40px;height:40px;cursor:pointer}:host .grid .calendar-item:first-child{width:24px}:host .grid .calendar-item:focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset);background-color:var(--theme-datepicker-day--background--selected);border:inset 1px solid var(--theme-datepicker-day--border-color--selected);color:var(--theme-datepicker-day--color--selected);font-size:14px;line-height:20px;letter-spacing:0}:host .grid .calendar-item.today{border:1px solid var(--theme-datepicker-today--border-color)}:host .grid .calendar-item.today:hover{background-color:var(--theme-datepicker-day--background--hover)}:host .grid .calendar-item.today:active{background-color:var(--theme-datepicker-day--background--active)}:host .grid .calendar-item.today.selected{box-shadow:inset 0 0 0 1px white}:host .grid .calendar-item.today.selected:hover{background-color:var(--theme-datepicker-day--background--selected-hover)}:host .grid .calendar-item.today.selected:active{background-color:var(--theme-datepicker-day--background--selected-active)}:host .grid .calendar-item.today.selected.disabled{pointer-events:none;background-color:var(--theme-datepicker-day--background--selected-disabled);border:1px solid var(--theme-datepicker-day--background--selected-disabled);color:var(--theme-datepicker-day--color--selected-disabled)}:host .grid .calendar-item.today.range{background-color:var(--theme-datepicker-day--background--range);color:var(--theme-datepicker-day--color--range);border:1px solid var(--theme-datepicker-today--border-color--range);box-shadow:inset 0 0 0 1px white}:host .grid .calendar-item.today.range:hover{background-color:var(--theme-datepicker-day--background--range-hover);border:1px solid var(--theme-datepicker-today--border-color--range-hover)}:host .grid .calendar-item.today.range:active{background-color:var(--theme-datepicker-day--background--range-active);border:1px solid var(--theme-datepicker-today--border-color--range-active)}:host .grid .calendar-item.today.range.disabled{background-color:var(--theme-datepicker-day--background--range-disabled);color:var(--theme-datepicker-day--color--range-disabled);border:1px solid var(--theme-datepicker-today--border-color--range-disabled)}:host .grid .calendar-item.today.disabled{pointer-events:none;background-color:var(--theme-datepicker-day--background--disabled);color:var(--theme-datepicker-day--color--disabled);cursor:default}:host .grid .calendar-item:hover{background-color:var(--theme-datepicker-day--background--hover)}:host .grid .calendar-item:active{background-color:var(--theme-datepicker-day--background--active)}:host .grid .calendar-item.selected{background-color:var(--theme-datepicker-day--background--selected);color:var(--theme-datepicker-day--color--selected);border:1px solid var(--theme-datepicker-day--background--selected)}:host .grid .calendar-item.selected:hover{background-color:var(--theme-datepicker-day--background--selected-hover)}:host .grid .calendar-item.selected:active{background-color:var(--theme-datepicker-day--background--selected-active)}:host .grid .calendar-item.selected.disabled{pointer-events:none;background-color:var(--theme-datepicker-day--background--selected-disabled);color:var(--theme-datepicker-day--color--selected-disabled)}:host .grid .calendar-item.range{background-color:var(--theme-datepicker-day--background--range);color:var(--theme-datepicker-day--color--range)}:host .grid .calendar-item.range:hover{background-color:var(--theme-datepicker-day--background--range-hover)}:host .grid .calendar-item.range:active{background-color:var(--theme-datepicker-day--background--range-active)}:host .grid .calendar-item.range.disabled{pointer-events:none;background-color:var(--theme-datepicker-day--background--range-disabled);color:var(--theme-datepicker-day--color--range-disabled)}:host .grid .calendar-item.disabled{pointer-events:none;background-color:var(--theme-datepicker-day--background--disabled);color:var(--theme-datepicker-day--color--disabled)}:host .grid .calendar-item.week-day{color:var(--theme-datepicker-weekday--color);font-size:12px;line-height:20px;border:none;background:none;cursor:initial}:host .grid .calendar-item.week-day .overflow{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .grid .calendar-item.empty-day{border:none;background:none;cursor:initial}:host .grid .calendar-item.week-number{font-size:10px;line-height:14px;color:var(--theme-datepicker-weekday--color);border:none;background:none;cursor:initial;width:1.5rem}:host .button{display:flex;justify-content:flex-end;margin-top:1rem}:host .hidden{display:none}";const v=p;var y=undefined&&undefined.__decorate||function(e,t,r,i){var o=arguments.length,a=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,r,i);else for(var d=e.length-1;d>=0;d--)if(s=e[d])a=(o<3?s(a):o>3?s(t,r,a):s(t,r))||a;return o>3&&a&&Object.defineProperty(t,r,a),a};const w=class{constructor(t){e(this,t);this.dateChange=o(this,"dateChange",7);this.dateRangeChange=o(this,"dateRangeChange",7);this.dateSelect=o(this,"dateSelect",7);this.done=o(this,"done",7);this.dropdownButtonRef=l();this.yearContainerRef=l();this.firstMonthRef=l();this.isDayFocus=false;this.monthChangedFromFocus=false;this.DAYS_IN_WEEK=7;this.calendar=[];this.format="yyyy/LL/dd";this.range=true;this.corners="rounded";this.from=undefined;this.to=undefined;this.minDate="";this.maxDate="";this.textSelectDate="";this.i18nDone="Done";this.weekStartIndex=0;this.locale=undefined;this.individual=true;this.eventDelimiter=" - ";this.standaloneAppearance=true;this.today=n.now().toISO();this.currFromDate=undefined;this.currToDate=undefined;this.selectedYear=0;this.tempYear=0;this.startYear=0;this.endYear=0;this.selectedMonth=0;this.tempMonth=0;this.dayNames=undefined;this.monthNames=undefined;this.focusedDay=1}watchFromPropHandler(e){var t;this.currFromDate=e?n.fromFormat(e,this.format):undefined;if((t=this.currFromDate)===null||t===void 0?void 0:t.isValid){this.selectedYear=this.currFromDate.year;this.selectedMonth=this.currFromDate.month-1}}watchToPropHandler(e){var t;this.currToDate=e?n.fromFormat(e,this.format):undefined;if((t=this.currToDate)===null||t===void 0?void 0:t.isValid){this.selectedYear=this.currToDate.year;this.selectedMonth=this.currToDate.month-1}}onLocaleChange(){this.setTranslations()}async getCurrentDate(){var e,t,r,i;const o=((e=this.currFromDate)===null||e===void 0?void 0:e.isValid)?(t=this.currFromDate)===null||t===void 0?void 0:t.toFormat(this.format):undefined;const a=((r=this.currToDate)===null||r===void 0?void 0:r.isValid)?(i=this.currToDate)===null||i===void 0?void 0:i.toFormat(this.format):undefined;if(this.range){return{from:o,to:a}}return{from:o,to:undefined}}handleKeyUp(e){if(!this.isDayFocus){return}let t=this.focusedDay;switch(e.key){case"ArrowLeft":t--;break;case"ArrowRight":t++;break;case"ArrowUp":t=t-7;break;case"ArrowDown":t=t+7;break;default:return}if(t>this.getDaysInCurrentMonth()){t=t-this.getDaysInCurrentMonth();this.changeToAdjacentMonth(1);this.monthChangedFromFocus=true}else if(t<1){this.changeToAdjacentMonth(-1);t=t+this.getDaysInCurrentMonth();this.monthChangedFromFocus=true}this.focusedDay=t}getDaysInCurrentMonth(){return n.utc(this.selectedYear,this.selectedMonth+1).daysInMonth||0}getDateTimeNow(){return n.fromISO(this.today)}onDayBlur(){this.isDayFocus=false}onDayFocus(){this.isDayFocus=true}componentWillLoad(){var e,t,r,i;this.setTranslations();this.currFromDate=this.from?n.fromFormat(this.from,this.format):undefined;this.currToDate=this.to?n.fromFormat(this.to,this.format):undefined;const o=(t=(e=this.currFromDate)===null||e===void 0?void 0:e.year)!==null&&t!==void 0?t:this.getDateTimeNow().year;this.startYear=o-5;this.endYear=o+5;this.selectedMonth=((i=(r=this.currFromDate)===null||r===void 0?void 0:r.month)!==null&&i!==void 0?i:this.getDateTimeNow().month)-1;this.selectedYear=o;this.tempMonth=this.selectedMonth;this.tempYear=this.selectedYear}componentWillRender(){this.calculateCalendar()}componentDidRender(){if(!this.monthChangedFromFocus&&!this.isDayFocus){return}const e=this.hostElement.shadowRoot.querySelector(`[id=day-cell-${this.focusedDay}]`);e.focus()}setTranslations(){this.dayNames=this.rotateWeekDayNames(c.weekdays("long",{locale:this.locale}),this.weekStartIndex);this.monthNames=c.months("long",{locale:this.locale})}rotateWeekDayNames(e,t){const r=[...e];if(t===0){return r}t=-t;const i=e.length;r.push(...r.splice(0,(-t%i+i)%i));return r}async onDone(){const e=await this.getCurrentDate();this.dateSelect.emit(e)}calculateCalendar(){const e=[];const t=n.utc(this.selectedYear,this.selectedMonth+1);const r=t.startOf("month");const i=t.endOf("month");let o=r.weekNumber;let a=i.weekNumber;let s=r.weekday-1;let d=i.weekday-1;if(this.weekStartIndex!==0){const e=c.weekdays();const t=e[r.weekday];s=this.dayNames.findIndex((e=>e===t));const o=e[i.weekday];d=this.dayNames.findIndex((e=>e===o))}let h=false;if(a===1){a=i.weeksInWeekYear+1;h=true}let l=false;if(o===r.weeksInWeekYear){o=1;a++;l=true}let u=1;for(let t=o;t<=a&&u<=31;t++){const n=[];for(let e=0;e<this.DAYS_IN_WEEK&&u<=31;e++){if(t===o&&e<s||t===a&&e>d){n.push(undefined)}else{n.push(u++)}}if(l||h){if(t===1){e.push({weekNumber:r.weeksInWeekYear,dayNumbers:n})}else if(t===i.weekNumber){e.push({weekNumber:1,dayNumbers:n})}else{e.push({weekNumber:t-1,dayNumbers:n})}continue}e.push({weekNumber:t,dayNumbers:n})}this.calendar=e}selectTempYear(e,t){e===null||e===void 0?void 0:e.stopPropagation();this.tempYear=t}focusMonth(){var e;(e=this.firstMonthRef.current)===null||e===void 0?void 0:e.focus()}infiniteScrollYears(){const e=this.yearContainerRef.current;if(!e){return}const t=e.scrollTop;const r=e.scrollHeight;const i=t===0;const o=Math.round(t+e.offsetHeight)>=r;const a=200;if(this.endYear-this.startYear>a)return;if(i){const t=e.firstElementChild;this.startYear-=5;e.scrollTo(0,t.offsetTop);return}if(o){const t=e.lastElementChild;this.endYear+=5;e.scrollTo(0,t.offsetTop)}}selectMonth(e){this.selectedMonth=e;this.selectedYear=this.tempYear;this.tempMonth=e;const t=this.hostElement.shadowRoot.querySelector("ix-dropdown");if(t){t.show=false}}changeToAdjacentMonth(e){if(this.selectedMonth+e<0){this.selectedYear--;this.selectedMonth=11}else if(this.selectedMonth+e>11){this.selectedYear++;this.selectedMonth=0}else{this.selectedMonth+=e}}selectDay(e,t){if(t.classList.contains("disabled")){return}const r=n.fromJSDate(new Date(this.selectedYear,this.selectedMonth,e));if(!this.range||this.currFromDate===undefined){this.currFromDate=r;this.onDateChange();return}if(this.currToDate!==undefined){this.currFromDate=r;this.currToDate=undefined;this.onDateChange();return}if(r<this.currFromDate){this.currToDate=this.currFromDate;this.currFromDate=r;this.onDateChange();return}this.currToDate=r;this.onDateChange()}onDateChange(){this.getCurrentDate().then((e=>{this.dateChange.emit(e);if(this.range){this.dateRangeChange.emit(e)}}))}getDayClasses(e){var t,r,i;const o=this.getDateTimeNow();const a=n.fromJSDate(new Date(this.selectedYear,this.selectedMonth,e));return{"calendar-item":true,"empty-day":e===undefined,today:o.hasSame(a,"day"),selected:((t=this.currFromDate)===null||t===void 0?void 0:t.hasSame(a,"day"))||((r=this.currToDate)===null||r===void 0?void 0:r.hasSame(a,"day")),range:this.currFromDate&&a.startOf("day")>this.currFromDate.startOf("day")&&this.currToDate!==undefined&&a.startOf("day")<((i=this.currToDate)===null||i===void 0?void 0:i.startOf("day")),disabled:!this.isWithinMinMaxDate(a)}}isWithinMinMaxYear(e){const t=this.minDate?n.fromFormat(this.minDate,this.format).year:undefined;const r=this.maxDate?n.fromFormat(this.maxDate,this.format).year:undefined;const i=t?e<t:false;const o=r?e>r:false;return!i&&!o}isWithinMinMaxMonth(e){const t=this.minDate?n.fromFormat(this.minDate,this.format):undefined;const r=this.maxDate?n.fromFormat(this.maxDate,this.format):undefined;const i=t===null||t===void 0?void 0:t.month;const o=r===null||r===void 0?void 0:r.month;const a=i?this.tempYear===t.year&&e<i:false;const s=o?this.tempYear===r.year&&e>o:false;return!a&&!s}isWithinMinMaxDate(e){const t=this.minDate?n.fromFormat(this.minDate,this.format):undefined;const r=this.maxDate?n.fromFormat(this.maxDate,this.format):undefined;const i=t?e.startOf("day")<t.startOf("day"):false;const o=r?e.startOf("day")>r.startOf("day"):false;return!i&&!o}renderYears(){const e=[];for(let t=this.startYear;t<=this.endYear;t++){e.push(r("div",{key:t,class:{arrowYear:true,"month-dropdown-item":true,"disabled-item":!this.isWithinMinMaxYear(t)},onClick:e=>this.selectTempYear(e,t),onKeyUp:e=>{if(e.key==="Enter"){this.tempYear=t;this.focusMonth()}},tabIndex:0},r("ix-icon",{class:{hidden:this.tempYear!==t,arrowPosition:true},name:u,size:"12"}),r("div",{style:{"min-width":"max-content"}},`${t}`)))}return e}render(){return r(i,{key:"34957ec511cc0a41d7e7ae08a79280a6b6f5ab72"},r("ix-date-time-card",{key:"b27d27dafa3754ecdd8a15bf948b5f644e65589d",corners:this.corners,standaloneAppearance:this.standaloneAppearance},r("div",{key:"21d5f001174508d2875d5f3e798489dcdf451fa2",class:"header",slot:"header"},r("ix-icon-button",{key:"bb777361d69512da5f127ebc4c27d350c64ae856",onClick:()=>this.changeToAdjacentMonth(-1),ghost:true,icon:b,variant:"primary",class:"arrows"}),r("div",{key:"7a97d501eaaa67083eb180cc794cd055e6339de8",class:"selector"},r("ix-button",{key:"a29f38f7bb4205fa26978d6ac6a2447a7b3875c5",ghost:true,ref:this.dropdownButtonRef,"data-testid":"year-month-button"},r("span",{key:"1c6e30c6de3d3b8b400f95c8ec23e6888edcec61",class:"fontSize capitalize"},this.monthNames[this.selectedMonth]," ",this.selectedYear)),r("ix-dropdown",{key:"26945c2f0dc2211fb7962e21a94d0ccf3616bfcd","data-testid":"year-month-dropdown",class:"dropdown",trigger:this.dropdownButtonRef.waitForCurrent(),ignoreRelatedSubmenu:true,placement:"bottom-start"},r("div",{key:"27283ca89562f55da01225d9374f9a1ae2796c76",class:"wrapper"},r("div",{key:"5e2f6c7e6071387f4e46805f7a7c22a84266cf4a","data-testid":"year-container",class:"overflow",onScroll:()=>this.infiniteScrollYears(),ref:this.yearContainerRef},this.renderYears()),r("div",{key:"d3ac3fdc808b908cbcc9f67cb153b38583cf38d5",class:"overflow","data-testid":"month-container"},this.monthNames.map(((e,t)=>r("div",{key:e,ref:t=>{if(e===this.monthNames[0]){this.firstMonthRef(t)}},class:{arrowYear:true,"month-dropdown-item":true,selected:this.tempYear===this.selectedYear&&this.tempMonth===t,"disabled-item":!this.isWithinMinMaxMonth(t)},onClick:()=>this.selectMonth(t),onKeyUp:e=>e.key==="Enter"&&this.selectMonth(t),tabIndex:0},r("ix-icon",{class:{hidden:this.tempYear!==this.selectedYear||this.tempMonth!==t,checkPosition:true},name:f,size:"16"}),r("div",null,r("span",{class:"capitalize monthMargin"},`${e} ${this.tempYear}`))))))))),r("ix-icon-button",{key:"7cf66dfb80c949f2c2b41a9cfab3acbb55bf65d0",onClick:()=>this.changeToAdjacentMonth(1),ghost:true,icon:u,variant:"primary",class:"arrows"})),r("div",{key:"ab3448fc6e29904a9ea213fd740a0b7a014306f6",class:"grid"},r("div",{key:"6e484fb6e66d10c2783bd17b86b3f05ff6906780",class:"calendar-item week-day"}),this.dayNames.map((e=>r("div",{key:e,class:"calendar-item week-day"},r("div",{class:"overflow"},e.slice(0,3))))),this.calendar.map((e=>r(a,null,r("div",{class:"calendar-item week-number"},e.weekNumber),e.dayNumbers.map((e=>e?r("div",{key:e,id:`day-cell-${e}`,"date-calender-day":true,class:this.getDayClasses(e),onClick:t=>{const r=t.currentTarget;this.selectDay(e,r)},onKeyUp:t=>{const r=t.currentTarget;if(t.key==="Enter"){this.selectDay(e,r)}},tabIndex:e===this.focusedDay?0:-1,onFocus:()=>this.onDayFocus(),onBlur:()=>this.onDayBlur()},e):r("div",null))))))),r("div",{key:"00ac06be627221297891c1dae0dbca405fd40f54",class:{button:true,hidden:!this.range||!this.standaloneAppearance}},r("ix-button",{key:"765c1b42c4654619877d6e948f5f3cbacf607deb",onClick:()=>this.onDone()},this.textSelectDate||this.i18nDone))))}get hostElement(){return s(this)}static get watchers(){return{from:["watchFromPropHandler"],to:["watchToPropHandler"],locale:["onLocaleChange"]}}};y([h("keydown")],w.prototype,"handleKeyUp",null);w.style=v;const x=":host{--ix-layout-grid-gutter:24px;display:block;flex:1 1 0%;width:100%;padding-left:calc(var(--ix-layout-grid-gutter) * 0.5);padding-right:calc(var(--ix-layout-grid-gutter) * 0.5)}:host(.no-margin){padding-left:0;padding-right:0}";const z=x;const j=class{constructor(t){e(this,t);this.noMargin=false;this.gap="24";this.columns=12}render(){return r(i,{key:"257edb50ece6ae7d3029eb61e4750a766800a226",class:{"no-margin":this.noMargin},style:{"--ix-layout-grid-columns":`${this.columns}`,"--ix-layout-grid-gutter":`${this.gap}px`}},r("slot",{key:"15aa39cb0220b9b11c5f2d2bdbf1966085402096"}))}};j.style=z;const C=":host{display:flex;flex-wrap:wrap}:host(:not(:first-of-type)){margin-block-start:var(--ix-layout-grid-row-margin, 0)}";const D=C;const M=class{constructor(t){e(this,t)}render(){return r(i,{key:"c06bbc4d7e3250ed08dd6206811f2547fd87dddb"},r("slot",{key:"dbea65d73ce27b58a8b3b51185c59e60c7f04827"}))}};M.style=D;export{k as ix_col,w as ix_date_picker,j as ix_layout_grid,M as ix_row};
2
+ //# sourceMappingURL=p-1d545640.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["colCss","IxColStyle0","Col","onResize","forceUpdate","this","getSize","breakpoint","size","sizeSm","sizeMd","sizeLg","getColumnSize","Breakpoints","forEach","isMediaQueryActive","matchBreakpoint","currentSize","getColumnSizeStyling","flex","width","colSize","render","h","Host","key","style","Object","assign","datePickerCss","IxDatePickerStyle0","DatePicker","dropdownButtonRef","makeRef","yearContainerRef","firstMonthRef","isDayFocus","monthChangedFromFocus","DAYS_IN_WEEK","calendar","DateTime","now","toISO","watchFromPropHandler","newValue","currFromDate","fromFormat","format","undefined","_a","isValid","selectedYear","year","selectedMonth","month","watchToPropHandler","currToDate","onLocaleChange","setTranslations","getCurrentDate","_from","_b","toFormat","_to","_c","_d","range","from","to","handleKeyUp","event","_focusedDay","focusedDay","getDaysInCurrentMonth","changeToAdjacentMonth","utc","daysInMonth","getDateTimeNow","fromISO","today","onDayBlur","onDayFocus","componentWillLoad","startYear","endYear","tempMonth","tempYear","componentWillRender","calculateCalendar","componentDidRender","dayElem","hostElement","shadowRoot","querySelector","focus","dayNames","rotateWeekDayNames","Info","weekdays","locale","weekStartIndex","monthNames","months","index","clone","len","length","push","splice","onDone","date","dateSelect","emit","monthStart","startOf","monthEnd","endOf","startWeek","weekNumber","endWeek","monthStartWeekDayIndex","weekday","monthEndWeekDayIndex","monthStartWeekDayName","findIndex","d","monthEndWeekDayName","correctLastWeek","weeksInWeekYear","correctFirstWeek","currDayNumber","weekIndex","daysArr","j","dayNumbers","selectTempYear","stopPropagation","focusMonth","current","infiniteScrollYears","yearContainer","scroll","scrollTop","maxScroll","scrollHeight","atTop","atBottom","Math","round","offsetHeight","limit","first","firstElementChild","scrollTo","offsetTop","last","lastElementChild","selectMonth","dropdown","show","number","selectDay","selectedDay","target","classList","contains","fromJSDate","Date","onDateChange","then","dateChange","dateRangeChange","getDayClasses","day","todayObj","selectedDayObj","hasSame","selected","disabled","isWithinMinMaxDate","isWithinMinMaxYear","minDateYear","minDate","maxDateYear","maxDate","isBefore","isAfter","isWithinMinMaxMonth","minDateObj","maxDateObj","minDateMonth","maxDateMonth","_minDate","_maxDate","renderYears","rows","class","arrowYear","onClick","onKeyUp","tabIndex","hidden","arrowPosition","name","iconChevronRightSmall","corners","standaloneAppearance","slot","ghost","icon","iconChevronLeftSmall","variant","ref","trigger","waitForCurrent","ignoreRelatedSubmenu","placement","onScroll","map","checkPosition","iconSingleCheck","slice","week","Fragment","id","e","currentTarget","onFocus","onBlur","button","textSelectDate","i18nDone","__decorate","OnListener","layoutGridCss","IxLayoutGridStyle0","LayoutGrid","noMargin","columns","gap","rowCss","IxRowStyle0","Row"],"sources":["src/components/col/col.scss?tag=ix-col&encapsulation=shadow","src/components/col/col.tsx","src/components/date-picker/date-picker.scss?tag=ix-date-picker&encapsulation=shadow","src/components/date-picker/date-picker.tsx","src/components/layout-grid/layout-grid.scss?tag=ix-layout-grid&encapsulation=shadow","src/components/layout-grid/layout-grid.tsx","src/components/row/row.scss?tag=ix-row&encapsulation=shadow","src/components/row/row.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 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n position: relative;\n flex-basis: 0;\n flex-grow: 1;\n width: 100%;\n max-width: 100%;\n min-height: 1px;\n\n padding: calc(var(--ix-layout-grid-gutter) * 0.5);\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 { Component, forceUpdate, h, Host, Listen, Prop } from '@stencil/core';\nimport { Breakpoint, matchBreakpoint } from '../utils/breakpoints';\n\ntype GridBreakpoint = Breakpoint | '';\n\nexport type ColumnSize =\n | '1'\n | '2'\n | '3'\n | '4'\n | '5'\n | '6'\n | '7'\n | '8'\n | '9'\n | '10'\n | '11'\n | '12'\n | 'auto';\n\n/**\n * @since 2.0.0\n */\n@Component({\n tag: 'ix-col',\n styleUrl: 'col.scss',\n shadow: true,\n})\nexport class Col {\n static Breakpoints: GridBreakpoint[] = ['', 'sm', 'md', 'lg'];\n\n /**\n * Size of the column\n */\n @Prop() size?: ColumnSize;\n\n /**\n * Size of the column for sm screens\n */\n @Prop() sizeSm?: ColumnSize;\n\n /**\n * Size of the column for md screens\n */\n @Prop() sizeMd?: ColumnSize;\n\n /**\n * Size of the column for lg screens\n */\n @Prop() sizeLg?: ColumnSize;\n\n @Listen('resize', { target: 'window' })\n onResize() {\n forceUpdate(this);\n }\n\n private getSize(breakpoint: GridBreakpoint) {\n if (breakpoint === '') {\n return this.size;\n }\n\n if (breakpoint === 'sm') {\n return this.sizeSm;\n }\n\n if (breakpoint === 'md') {\n return this.sizeMd;\n }\n\n if (breakpoint === 'lg') {\n return this.sizeLg;\n }\n }\n\n private getColumnSize(): ColumnSize | undefined {\n let size: ColumnSize | undefined;\n Col.Breakpoints.forEach((breakpoint) => {\n const isMediaQueryActive =\n breakpoint !== '' ? matchBreakpoint(breakpoint) : true;\n\n if (!isMediaQueryActive) {\n return;\n }\n\n const currentSize = this.getSize(breakpoint);\n\n if (currentSize) {\n size = currentSize;\n }\n });\n\n return size;\n }\n\n private getColumnSizeStyling() {\n const size = this.getColumnSize();\n\n if (!size) {\n return;\n }\n\n if (size === 'auto') {\n return {\n flex: '0 0 auto',\n width: 'auto',\n 'max-width': 'auto',\n };\n }\n\n const colSize = `calc(calc(${size} / var(--ix-layout-grid-columns)) * 100%)`;\n\n return {\n flex: `0 0 ${colSize}`,\n width: `${colSize}`,\n 'max-width': `${colSize}`,\n };\n }\n\n render() {\n return (\n <Host\n style={{\n ...this.getColumnSizeStyling(),\n }}\n >\n <slot></slot>\n </Host>\n );\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\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 position: relative;\n width: 21rem;\n\n .header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .disabled-item {\n pointer-events: none;\n background-color: var(--theme-datepicker-day--background--disabled);\n color: var(--theme-datepicker-day--color--disabled);\n cursor: default;\n }\n\n .selector {\n flex-basis: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: $tiny-space $default-space;\n\n .dropdown {\n color: var(--theme-menu-item--color);\n font-size: 14px;\n line-height: 20px;\n }\n\n .fontSize {\n font-size: 16px;\n }\n\n .capitalize {\n text-transform: capitalize;\n }\n\n .month-dropdown-item {\n margin-left: 4px;\n margin-right: 4px;\n\n &:focus-visible {\n outline: 1px solid var(--theme-color-focus-bdr);\n outline-offset: var(--theme-btn--focus--outline-offset);\n }\n }\n\n .arrowYear {\n display: flex;\n position: relative;\n padding: $medium-space $x-large-space;\n align-items: center;\n cursor: pointer;\n\n &:hover {\n background-color: var(--theme-select-list-item--background--hover);\n }\n\n &.selected {\n background-color: var(--theme-select-list-item--background--selected);\n }\n\n .arrowPosition {\n position: absolute;\n left: calc(($x-large-space / 2) - 6px);\n top: calc(50% - 6px);\n }\n\n .checkPosition {\n position: absolute;\n left: calc(($x-large-space / 2) - 6px);\n top: calc(50% - 8px);\n }\n\n .monthMargin {\n margin-left: 10px;\n }\n }\n }\n\n .wrapper {\n display: flex;\n\n .overflow {\n overflow-y: scroll;\n max-height: 250px;\n }\n }\n\n .grid {\n display: grid;\n grid-template-columns: 24px repeat(7, 40px);\n grid-template-rows: repeat(7, 40px);\n\n align-items: center;\n justify-items: center;\n justify-content: center;\n color: var(--theme-datepicker-today--color);\n\n .calendar-item {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: var(--theme-datepicker-day--background);\n border: 1px solid var(--theme-datepicker-day--background);\n width: 40px;\n height: 40px;\n cursor: pointer;\n\n &:first-child {\n width: 24px;\n }\n\n &:focus-visible {\n outline: 1px solid var(--theme-color-focus-bdr);\n outline-offset: var(--theme-btn--focus--outline-offset);\n\n background-color: var(--theme-datepicker-day--background--selected);\n border: inset 1px solid var(--theme-datepicker-day--border-color--selected);\n color: var(--theme-datepicker-day--color--selected);\n font-size: 14px;\n line-height: 20px;\n letter-spacing: 0;\n }\n\n &.today {\n border: 1px solid var(--theme-datepicker-today--border-color);\n\n &:hover {\n background-color: var(--theme-datepicker-day--background--hover);\n }\n\n &:active {\n background-color: var(--theme-datepicker-day--background--active);\n }\n\n &.selected {\n box-shadow: inset 0 0 0 1px white;\n\n &:hover {\n background-color: var(\n --theme-datepicker-day--background--selected-hover\n );\n }\n\n &:active {\n background-color: var(\n --theme-datepicker-day--background--selected-active\n );\n }\n\n &.disabled {\n pointer-events: none;\n background-color: var(\n --theme-datepicker-day--background--selected-disabled\n );\n border: 1px solid var(--theme-datepicker-day--background--selected-disabled);\n color: var(--theme-datepicker-day--color--selected-disabled);\n }\n }\n\n &.range {\n background-color: var(--theme-datepicker-day--background--range);\n color: var(--theme-datepicker-day--color--range);\n border: 1px solid var(--theme-datepicker-today--border-color--range);\n box-shadow: inset 0 0 0 1px white;\n\n &:hover {\n background-color: var(\n --theme-datepicker-day--background--range-hover\n );\n border: 1px solid var(--theme-datepicker-today--border-color--range-hover);\n }\n\n &:active {\n background-color: var(\n --theme-datepicker-day--background--range-active\n );\n border: 1px solid var(--theme-datepicker-today--border-color--range-active);\n }\n\n &.disabled {\n background-color: var(\n --theme-datepicker-day--background--range-disabled\n );\n color: var(--theme-datepicker-day--color--range-disabled);\n border: 1px solid var(--theme-datepicker-today--border-color--range-disabled);\n }\n }\n\n &.disabled {\n pointer-events: none;\n background-color: var(--theme-datepicker-day--background--disabled);\n color: var(--theme-datepicker-day--color--disabled);\n cursor: default;\n }\n }\n\n &:hover {\n background-color: var(--theme-datepicker-day--background--hover);\n }\n\n &:active {\n background-color: var(--theme-datepicker-day--background--active);\n }\n\n &.selected {\n background-color: var(--theme-datepicker-day--background--selected);\n color: var(--theme-datepicker-day--color--selected);\n border: 1px solid var(--theme-datepicker-day--background--selected);\n\n &:hover {\n background-color: var(\n --theme-datepicker-day--background--selected-hover\n );\n }\n\n &:active {\n background-color: var(\n --theme-datepicker-day--background--selected-active\n );\n }\n\n &.disabled {\n pointer-events: none;\n background-color: var(\n --theme-datepicker-day--background--selected-disabled\n );\n color: var(--theme-datepicker-day--color--selected-disabled);\n }\n }\n\n &.range {\n background-color: var(--theme-datepicker-day--background--range);\n color: var(--theme-datepicker-day--color--range);\n\n &:hover {\n background-color: var(\n --theme-datepicker-day--background--range-hover\n );\n }\n\n &:active {\n background-color: var(\n --theme-datepicker-day--background--range-active\n );\n }\n\n &.disabled {\n pointer-events: none;\n background-color: var(\n --theme-datepicker-day--background--range-disabled\n );\n color: var(--theme-datepicker-day--color--range-disabled);\n }\n }\n\n &.disabled {\n pointer-events: none;\n background-color: var(--theme-datepicker-day--background--disabled);\n color: var(--theme-datepicker-day--color--disabled);\n }\n\n &.week-day {\n color: var(--theme-datepicker-weekday--color);\n font-size: 12px;\n line-height: 20px;\n border: none;\n background: none;\n cursor: initial;\n\n .overflow {\n @include ellipsis;\n }\n }\n\n &.empty-day {\n border: none;\n background: none;\n cursor: initial;\n }\n\n &.week-number {\n font-size: 10px;\n line-height: 14px;\n color: var(--theme-datepicker-weekday--color);\n border: none;\n background: none;\n cursor: initial;\n width: 1.5rem;\n }\n }\n }\n\n .button {\n display: flex;\n justify-content: flex-end;\n margin-top: $default-space;\n }\n\n .hidden {\n display: none;\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 Method,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\nimport { DateTimeCardCorners } from '../date-time-card/date-time-card';\n\nimport { DateTime, Info } from 'luxon';\nimport { OnListener } from '../utils/listener';\nimport { IxDatePickerComponent } from './date-picker-component';\nimport { makeRef } from '../utils/make-ref';\nimport {\n iconChevronLeftSmall,\n iconChevronRightSmall,\n iconSingleCheck,\n} from '@siemens/ix-icons/icons';\n\nexport type DateChangeEvent = {\n from: string;\n to: string;\n};\n\ninterface CalendarWeek {\n weekNumber: number;\n dayNumbers: (number | undefined)[];\n}\n\n@Component({\n tag: 'ix-date-picker',\n styleUrl: 'date-picker.scss',\n shadow: true,\n})\nexport class DatePicker implements IxDatePickerComponent {\n @Element() hostElement!: HTMLIxDatePickerElement;\n\n /**\n * Date format string.\n * See {@link \"https://moment.github.io/luxon/#/formatting?id=table-of-tokens\"} for all available tokens.\n */\n @Prop() format: string = 'yyyy/LL/dd';\n\n /**\n * If true a date-range can be selected (from/to).\n */\n @Prop() range: boolean = true;\n\n /**\n * Corner style\n */\n @Prop() corners: DateTimeCardCorners = 'rounded';\n\n /**\n * The selected starting date. If the date-picker-rework is not in range mode this is the selected date.\n * Format has to match the `format` property.\n *\n * @since 1.1.0\n */\n @Prop() from: string | undefined;\n\n @Watch('from')\n watchFromPropHandler(newValue: string) {\n this.currFromDate = newValue\n ? DateTime.fromFormat(newValue, this.format)\n : undefined;\n\n if (this.currFromDate?.isValid) {\n this.selectedYear = this.currFromDate.year;\n this.selectedMonth = this.currFromDate.month - 1;\n }\n }\n\n /**\n * The selected end date. If the the date-picker-rework is not in range mode this property has no impact.\n * Format has to match the `format` property.\n *\n * @since 1.1.0\n */\n @Prop() to: string | undefined;\n\n @Watch('to')\n watchToPropHandler(newValue: string) {\n this.currToDate = newValue\n ? DateTime.fromFormat(newValue, this.format)\n : undefined;\n\n if (this.currToDate?.isValid) {\n this.selectedYear = this.currToDate.year;\n this.selectedMonth = this.currToDate.month - 1;\n }\n }\n\n /**\n * The earliest date that can be selected by the date picker.\n * If not set there will be no restriction.\n *\n * @since 1.1.0\n */\n @Prop() minDate = '';\n\n /**\n * The latest date that can be selected by the date picker.\n * If not set there will be no restriction.\n *\n * @since 1.1.0\n */\n @Prop() maxDate = '';\n\n /**\n * Text of the button that confirms date selection.\n *\n * @since 1.1.0\n * @deprecated since 2.1.0. Use `i18nDone`\n */\n @Prop() textSelectDate = '';\n\n /**\n * Text of date select button\n *\n * @since 2.1.0\n */\n @Prop({ attribute: 'i18n-done' }) i18nDone = 'Done';\n\n /**\n * The index of which day to start the week on, based on the Locale#weekdays array.\n * E.g. if the locale is en-us, weekStartIndex = 1 results in starting the week on monday.\n *\n * @since 2.1.0\n */\n @Prop() weekStartIndex = 0;\n\n /**\n * Locale identifier (e.g. 'en' or 'de').\n *\n * @since 2.1.0\n */\n @Prop() locale?: string;\n\n @Watch('locale')\n onLocaleChange() {\n this.setTranslations();\n }\n\n /**\n * @deprecated Not supported since 2.0.0.\n */\n @Prop() individual: boolean = true;\n\n /**\n * Default behavior of the done event is to join the two events (date and time) into one combined string output.\n * This combination can be configured over the delimiter\n *\n * @since 1.1.0\n * @deprecated Not used anymore see `this.dateChange`\n */\n @Prop() eventDelimiter = ' - ';\n\n /** @internal */\n @Prop() standaloneAppearance = true;\n\n /** @internal */\n @Prop() today = DateTime.now().toISO();\n\n /**\n * Triggers if the date selection changes.\n * Note: Since 2.0.0 `dateChange` does not dispatch detail property as `string`\n *\n * @since 2.1.0\n */\n @Event() dateChange!: EventEmitter<DateChangeEvent>;\n\n /**\n * Triggers if the date selection changes.\n * Only triggered if date-picker-rework is in range mode.\n *\n * @since 2.1.0\n */\n @Event() dateRangeChange!: EventEmitter<DateChangeEvent>;\n\n /**\n * Date selection confirmed via button action\n *\n * @since 1.1.0\n */\n @Event() dateSelect!: EventEmitter<DateChangeEvent>;\n\n /**\n * Date selection confirmed via button action\n *\n * @deprecated NOT getting dispatched after 2.0.0. Use `dateSelect`.\n */\n @Event() done!: EventEmitter<string>;\n\n /**\n * Get the currently selected date-range.\n */\n @Method()\n async getCurrentDate() {\n const _from = this.currFromDate?.isValid\n ? this.currFromDate?.toFormat(this.format)\n : undefined;\n const _to = this.currToDate?.isValid\n ? this.currToDate?.toFormat(this.format)\n : undefined;\n\n if (this.range) {\n return {\n from: _from,\n to: _to,\n };\n }\n\n return {\n from: _from,\n to: undefined,\n };\n }\n\n @State() currFromDate?: DateTime;\n @State() currToDate?: DateTime;\n\n @State() selectedYear = 0;\n @State() tempYear = 0;\n @State() startYear = 0;\n @State() endYear = 0;\n @State() selectedMonth = 0;\n @State() tempMonth = 0;\n\n private readonly dropdownButtonRef = makeRef<HTMLElement>();\n private readonly yearContainerRef = makeRef<HTMLElement>();\n private readonly firstMonthRef = makeRef<HTMLElement>();\n\n @State() dayNames!: string[];\n @State() monthNames!: string[];\n @State() focusedDay: number = 1;\n\n private isDayFocus = false;\n private monthChangedFromFocus = false;\n private readonly DAYS_IN_WEEK = 7;\n private calendar: CalendarWeek[] = [];\n\n @OnListener<DatePicker>('keydown')\n handleKeyUp(event: KeyboardEvent) {\n if (!this.isDayFocus) {\n return;\n }\n\n let _focusedDay = this.focusedDay;\n\n switch (event.key) {\n case 'ArrowLeft':\n _focusedDay--;\n break;\n case 'ArrowRight':\n _focusedDay++;\n break;\n case 'ArrowUp':\n _focusedDay = _focusedDay - 7;\n break;\n case 'ArrowDown':\n _focusedDay = _focusedDay + 7;\n break;\n default:\n return;\n }\n\n if (_focusedDay > this.getDaysInCurrentMonth()) {\n _focusedDay = _focusedDay - this.getDaysInCurrentMonth();\n this.changeToAdjacentMonth(1);\n this.monthChangedFromFocus = true;\n } else if (_focusedDay < 1) {\n this.changeToAdjacentMonth(-1);\n _focusedDay = _focusedDay + this.getDaysInCurrentMonth();\n this.monthChangedFromFocus = true;\n }\n\n this.focusedDay = _focusedDay;\n }\n\n private getDaysInCurrentMonth(): number {\n return (\n DateTime.utc(this.selectedYear, this.selectedMonth + 1).daysInMonth || 0\n );\n }\n\n private getDateTimeNow() {\n return DateTime.fromISO(this.today);\n }\n\n onDayBlur() {\n this.isDayFocus = false;\n }\n\n onDayFocus() {\n this.isDayFocus = true;\n }\n\n componentWillLoad() {\n this.setTranslations();\n\n this.currFromDate = this.from\n ? DateTime.fromFormat(this.from, this.format)\n : undefined;\n this.currToDate = this.to\n ? DateTime.fromFormat(this.to, this.format)\n : undefined;\n\n const year = this.currFromDate?.year ?? this.getDateTimeNow().year;\n this.startYear = year - 5;\n this.endYear = year + 5;\n\n this.selectedMonth =\n (this.currFromDate?.month ?? this.getDateTimeNow().month) - 1;\n this.selectedYear = year;\n this.tempMonth = this.selectedMonth;\n this.tempYear = this.selectedYear;\n }\n\n componentWillRender() {\n this.calculateCalendar();\n }\n\n componentDidRender() {\n if (!this.monthChangedFromFocus && !this.isDayFocus) {\n return;\n }\n\n const dayElem = this.hostElement.shadowRoot!.querySelector(\n `[id=day-cell-${this.focusedDay}]`\n ) as HTMLElement;\n dayElem.focus();\n }\n\n private setTranslations() {\n this.dayNames = this.rotateWeekDayNames(\n Info.weekdays('long', {\n locale: this.locale,\n }),\n this.weekStartIndex\n );\n\n this.monthNames = Info.months('long', {\n locale: this.locale,\n });\n }\n\n /**\n * Rotate the WeekdayNames array.\n * Based on the position that should be the new 0-index.\n */\n private rotateWeekDayNames(weekdays: string[], index: number): string[] {\n const clone = [...weekdays];\n\n if (index === 0) {\n return clone;\n }\n\n index = -index;\n const len = weekdays.length;\n\n clone.push(...clone.splice(0, ((-index % len) + len) % len));\n return clone;\n }\n\n private async onDone() {\n const date = await this.getCurrentDate();\n // TODO (IX-1870): refactor event signatures to match internal logic with undefined values\n this.dateSelect.emit(date as DateChangeEvent);\n }\n\n private calculateCalendar() {\n const calendar: CalendarWeek[] = [];\n const month = DateTime.utc(this.selectedYear, this.selectedMonth + 1);\n const monthStart = month.startOf('month');\n const monthEnd = month.endOf('month');\n let startWeek = monthStart.weekNumber;\n let endWeek = monthEnd.weekNumber;\n let monthStartWeekDayIndex = monthStart.weekday - 1;\n let monthEndWeekDayIndex = monthEnd.weekday - 1;\n\n if (this.weekStartIndex !== 0) {\n // Find the positions where to start/stop counting the day-numbers based on which day the week starts\n const weekdays = Info.weekdays();\n const monthStartWeekDayName = weekdays[monthStart.weekday];\n\n monthStartWeekDayIndex = this.dayNames.findIndex(\n (d) => d === monthStartWeekDayName\n );\n const monthEndWeekDayName = weekdays[monthEnd.weekday];\n monthEndWeekDayIndex = this.dayNames.findIndex(\n (d) => d === monthEndWeekDayName\n );\n }\n\n let correctLastWeek = false;\n if (endWeek === 1) {\n endWeek = monthEnd.weeksInWeekYear + 1;\n correctLastWeek = true;\n }\n\n let correctFirstWeek = false;\n if (startWeek === monthStart.weeksInWeekYear) {\n startWeek = 1;\n endWeek++;\n\n correctFirstWeek = true;\n }\n\n let currDayNumber = 1;\n for (\n let weekIndex = startWeek;\n weekIndex <= endWeek && currDayNumber <= 31;\n weekIndex++\n ) {\n const daysArr: (number | undefined)[] = [];\n\n for (let j = 0; j < this.DAYS_IN_WEEK && currDayNumber <= 31; j++) {\n // Display empty cells until the calender starts/has ended\n if (\n (weekIndex === startWeek && j < monthStartWeekDayIndex) ||\n (weekIndex === endWeek && j > monthEndWeekDayIndex)\n ) {\n daysArr.push(undefined);\n } else {\n daysArr.push(currDayNumber++);\n }\n }\n\n if (correctFirstWeek || correctLastWeek) {\n if (weekIndex === 1) {\n calendar.push({\n weekNumber: monthStart.weeksInWeekYear,\n dayNumbers: daysArr,\n });\n } else if (weekIndex === monthEnd.weekNumber) {\n calendar.push({\n weekNumber: 1,\n dayNumbers: daysArr,\n });\n } else {\n calendar.push({\n weekNumber: weekIndex - 1,\n dayNumbers: daysArr,\n });\n }\n continue;\n }\n\n calendar.push({\n weekNumber: weekIndex,\n dayNumbers: daysArr,\n });\n }\n\n this.calendar = calendar;\n }\n\n private selectTempYear(event: MouseEvent, year: number) {\n event?.stopPropagation();\n this.tempYear = year;\n }\n\n private focusMonth() {\n this.firstMonthRef.current?.focus();\n }\n\n private infiniteScrollYears() {\n const yearContainer = this.yearContainerRef.current;\n\n if (!yearContainer) {\n return;\n }\n\n const scroll = yearContainer.scrollTop;\n const maxScroll = yearContainer.scrollHeight;\n const atTop = scroll === 0;\n const atBottom =\n Math.round(scroll + yearContainer.offsetHeight) >= maxScroll;\n const limit = 200;\n\n if (this.endYear - this.startYear > limit) return;\n\n if (atTop) {\n const first = yearContainer.firstElementChild as HTMLElement;\n this.startYear -= 5;\n yearContainer.scrollTo(0, first.offsetTop);\n\n return;\n }\n\n if (atBottom) {\n const last = yearContainer.lastElementChild as HTMLElement;\n this.endYear += 5;\n yearContainer.scrollTo(0, last.offsetTop);\n }\n }\n\n private selectMonth(month: number) {\n this.selectedMonth = month;\n this.selectedYear = this.tempYear;\n this.tempMonth = month;\n\n const dropdown = this.hostElement.shadowRoot!.querySelector('ix-dropdown');\n if (dropdown) {\n dropdown.show = false;\n }\n }\n\n private changeToAdjacentMonth(number: -1 | 1) {\n if (this.selectedMonth + number < 0) {\n this.selectedYear--;\n this.selectedMonth = 11;\n } else if (this.selectedMonth + number > 11) {\n this.selectedYear++;\n this.selectedMonth = 0;\n } else {\n this.selectedMonth += number;\n }\n }\n\n private selectDay(selectedDay: number, target: Element) {\n if (target.classList.contains('disabled')) {\n return;\n }\n\n const date = DateTime.fromJSDate(\n new Date(this.selectedYear, this.selectedMonth, selectedDay)\n );\n\n if (!this.range || this.currFromDate === undefined) {\n this.currFromDate = date;\n this.onDateChange();\n\n return;\n }\n\n // Reset the range selection\n if (this.currToDate !== undefined) {\n this.currFromDate = date;\n this.currToDate = undefined;\n this.onDateChange();\n\n return;\n }\n\n // Swap from/to if the second date is before the current date\n if (date < this.currFromDate) {\n this.currToDate = this.currFromDate;\n this.currFromDate = date;\n this.onDateChange();\n\n return;\n }\n\n // Set the range normally\n this.currToDate = date;\n this.onDateChange();\n }\n\n private onDateChange() {\n this.getCurrentDate().then((date) => {\n // TODO (IX-1870): refactor event signatures to match internal logic with undefined values\n this.dateChange.emit(date as DateChangeEvent);\n if (this.range) {\n // TODO (IX-1870): refactor event signatures to match internal logic with undefined values\n this.dateRangeChange.emit(date as DateChangeEvent);\n }\n });\n }\n\n private getDayClasses(day: number): any {\n const todayObj = this.getDateTimeNow();\n const selectedDayObj = DateTime.fromJSDate(\n new Date(this.selectedYear, this.selectedMonth, day)\n );\n\n return {\n 'calendar-item': true,\n 'empty-day': day === undefined,\n today: todayObj.hasSame(selectedDayObj, 'day'),\n selected:\n this.currFromDate?.hasSame(selectedDayObj, 'day') ||\n this.currToDate?.hasSame(selectedDayObj, 'day'),\n range:\n this.currFromDate &&\n selectedDayObj.startOf('day') > this.currFromDate.startOf('day') &&\n this.currToDate !== undefined &&\n selectedDayObj.startOf('day') < this.currToDate?.startOf('day'),\n disabled: !this.isWithinMinMaxDate(selectedDayObj),\n };\n }\n\n private isWithinMinMaxYear(year: number): boolean {\n const minDateYear = this.minDate\n ? DateTime.fromFormat(this.minDate, this.format).year\n : undefined;\n const maxDateYear = this.maxDate\n ? DateTime.fromFormat(this.maxDate, this.format).year\n : undefined;\n const isBefore = minDateYear ? year < minDateYear : false;\n const isAfter = maxDateYear ? year > maxDateYear : false;\n\n return !isBefore && !isAfter;\n }\n\n private isWithinMinMaxMonth(month: number): boolean {\n const minDateObj = this.minDate\n ? DateTime.fromFormat(this.minDate, this.format)\n : undefined;\n const maxDateObj = this.maxDate\n ? DateTime.fromFormat(this.maxDate, this.format)\n : undefined;\n const minDateMonth = minDateObj?.month;\n const maxDateMonth = maxDateObj?.month;\n const isBefore = minDateMonth\n ? this.tempYear === minDateObj.year && month < minDateMonth\n : false;\n const isAfter = maxDateMonth\n ? this.tempYear === maxDateObj.year && month > maxDateMonth\n : false;\n\n return !isBefore && !isAfter;\n }\n\n private isWithinMinMaxDate(date: DateTime): boolean {\n const _minDate = this.minDate\n ? DateTime.fromFormat(this.minDate, this.format)\n : undefined;\n const _maxDate = this.maxDate\n ? DateTime.fromFormat(this.maxDate, this.format)\n : undefined;\n const isBefore = _minDate\n ? date.startOf('day') < _minDate.startOf('day')\n : false;\n const isAfter = _maxDate\n ? date.startOf('day') > _maxDate.startOf('day')\n : false;\n\n return !isBefore && !isAfter;\n }\n\n private renderYears(): any[] {\n const rows = [];\n\n for (let year = this.startYear; year <= this.endYear; year++) {\n rows.push(\n <div\n key={year}\n class={{\n arrowYear: true,\n 'month-dropdown-item': true,\n 'disabled-item': !this.isWithinMinMaxYear(year),\n }}\n onClick={(event) => this.selectTempYear(event, year)}\n onKeyUp={(event) => {\n if (event.key === 'Enter') {\n this.tempYear = year;\n this.focusMonth();\n }\n }}\n tabIndex={0}\n >\n <ix-icon\n class={{\n hidden: this.tempYear !== year,\n arrowPosition: true,\n }}\n name={iconChevronRightSmall}\n size=\"12\"\n ></ix-icon>\n <div style={{ 'min-width': 'max-content' }}>{`${year}`}</div>\n </div>\n );\n }\n\n return rows;\n }\n\n render() {\n return (\n <Host>\n <ix-date-time-card\n corners={this.corners}\n standaloneAppearance={this.standaloneAppearance}\n >\n <div class=\"header\" slot=\"header\">\n <ix-icon-button\n onClick={() => this.changeToAdjacentMonth(-1)}\n ghost\n icon={iconChevronLeftSmall}\n variant=\"primary\"\n class=\"arrows\"\n ></ix-icon-button>\n <div class=\"selector\">\n <ix-button\n ghost\n ref={this.dropdownButtonRef}\n data-testid=\"year-month-button\"\n >\n <span class=\"fontSize capitalize\">\n {this.monthNames[this.selectedMonth]} {this.selectedYear}\n </span>\n </ix-button>\n <ix-dropdown\n data-testid=\"year-month-dropdown\"\n class=\"dropdown\"\n trigger={this.dropdownButtonRef.waitForCurrent()}\n ignoreRelatedSubmenu\n placement=\"bottom-start\"\n >\n <div class=\"wrapper\">\n <div\n data-testid=\"year-container\"\n class=\"overflow\"\n onScroll={() => this.infiniteScrollYears()}\n ref={this.yearContainerRef}\n >\n {this.renderYears()}\n </div>\n <div class=\"overflow\" data-testid=\"month-container\">\n {this.monthNames.map((month, index) => (\n <div\n key={month}\n ref={(ref) => {\n if (month === this.monthNames[0]) {\n this.firstMonthRef(ref);\n }\n }}\n class={{\n arrowYear: true,\n 'month-dropdown-item': true,\n selected:\n this.tempYear === this.selectedYear &&\n this.tempMonth === index,\n 'disabled-item': !this.isWithinMinMaxMonth(index),\n }}\n onClick={() => this.selectMonth(index)}\n onKeyUp={(event) =>\n event.key === 'Enter' && this.selectMonth(index)\n }\n tabIndex={0}\n >\n <ix-icon\n class={{\n hidden:\n this.tempYear !== this.selectedYear ||\n this.tempMonth !== index,\n checkPosition: true,\n }}\n name={iconSingleCheck}\n size=\"16\"\n ></ix-icon>\n <div>\n <span class=\"capitalize monthMargin\">{`${month} ${this.tempYear}`}</span>\n </div>\n </div>\n ))}\n </div>\n </div>\n </ix-dropdown>\n </div>\n <ix-icon-button\n onClick={() => this.changeToAdjacentMonth(1)}\n ghost\n icon={iconChevronRightSmall}\n variant=\"primary\"\n class=\"arrows\"\n ></ix-icon-button>\n </div>\n <div class=\"grid\">\n <div class=\"calendar-item week-day\"></div>\n {this.dayNames.map((name) => (\n <div key={name} class=\"calendar-item week-day\">\n <div class=\"overflow\">{name.slice(0, 3)}</div>\n </div>\n ))}\n {this.calendar.map((week) => {\n return (\n <Fragment>\n <div class=\"calendar-item week-number\">{week.weekNumber}</div>\n {week.dayNumbers.map((day) => {\n return day ? (\n <div\n key={day}\n id={`day-cell-${day}`}\n date-calender-day\n class={this.getDayClasses(day)}\n onClick={(e) => {\n const target = e.currentTarget as HTMLElement;\n this.selectDay(day, target);\n }}\n onKeyUp={(e) => {\n const target = e.currentTarget as HTMLElement;\n if (e.key === 'Enter') {\n this.selectDay(day, target);\n }\n }}\n tabIndex={day === this.focusedDay ? 0 : -1}\n onFocus={() => this.onDayFocus()}\n onBlur={() => this.onDayBlur()}\n >\n {day}\n </div>\n ) : (\n <div></div>\n );\n })}\n </Fragment>\n );\n })}\n </div>\n <div\n class={{\n button: true,\n hidden: !this.range || !this.standaloneAppearance,\n }}\n >\n <ix-button onClick={() => this.onDone()}>\n {this.textSelectDate || this.i18nDone}\n </ix-button>\n </div>\n </ix-date-time-card>\n </Host>\n );\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:host {\n --ix-layout-grid-gutter: 24px;\n\n display: block;\n flex: 1 1 0%;\n width: 100%;\n\n padding-left: calc(var(--ix-layout-grid-gutter) * 0.5);\n padding-right: calc(var(--ix-layout-grid-gutter) * 0.5);\n}\n\n:host(.no-margin) {\n padding-left: 0;\n padding-right: 0;\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 { Component, h, Host, Prop } from '@stencil/core';\n\n/**\n * @since 2.0.0\n */\n@Component({\n tag: 'ix-layout-grid',\n styleUrl: 'layout-grid.scss',\n shadow: true,\n})\nexport class LayoutGrid {\n /**\n * The grid will not have any horizontal padding\n */\n @Prop() noMargin = false;\n\n /**\n * Grid gap\n */\n @Prop() gap: '8' | '12' | '16' | '24' = '24';\n\n /**\n * Overwrite the default number of columns. Choose between 2 and 12 columns.\n */\n @Prop() columns = 12;\n\n render() {\n return (\n <Host\n class={{\n 'no-margin': this.noMargin,\n }}\n style={{\n '--ix-layout-grid-columns': `${this.columns}`,\n '--ix-layout-grid-gutter': `${this.gap}px`,\n }}\n >\n <slot></slot>\n </Host>\n );\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\n:host {\n display: flex;\n flex-wrap: wrap;\n}\n\n:host(:not(:first-of-type)) {\n margin-block-start: var(--ix-layout-grid-row-margin, 0);\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 { Component, h, Host } from '@stencil/core';\n\n/**\n * @since 2.0.0\n */\n@Component({\n tag: 'ix-row',\n styleUrl: 'row.scss',\n shadow: true,\n})\nexport class Row {\n render() {\n return (\n <Host>\n <slot></slot>\n </Host>\n );\n }\n}\n"],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ import{h as n}from"./p-5806df2b.js";import{a as e}from"./p-5fe87e71.js";import{s as t}from"./p-186a1f30.js";import{c as a}from"./p-e898862b.js";import{a as i}from"./p-360b158e.js";import{a as r}from"./p-71206084.js";function s(e){return n("textarea",Object.assign({readOnly:e.readonly,disabled:e.disabled,maxLength:e.maxLength,minLength:e.minLength,cols:e.textareaCols,rows:e.textareaRows,ref:e.textAreaRef,class:{"is-invalid":e.isInvalid},required:e.required,value:e.value,placeholder:e.placeholder,onInput:n=>{const t=n.target;e.updateFormInternalValue(t.value);e.valueChange(t.value)},onBlur:()=>e.onBlur(),style:{resize:e.resizeBehavior,height:e.textareaHeight,width:e.textareaWidth}},e.ariaAttributes))}function o(e){return n("input",Object.assign({id:e.id,autoComplete:"off",readOnly:e.readonly,disabled:e.disabled,min:e.min,max:e.max,maxLength:e.maxLength?Number(e.maxLength):undefined,minLength:e.maxLength?Number(e.minLength):undefined,ref:e.inputRef,pattern:e.pattern,type:e.type,class:{"is-invalid":e.isInvalid},required:e.required,value:e.value,placeholder:e.placeholder,onKeyPress:n=>e.onKeyPress(n),onInput:n=>{const t=n.target;e.updateFormInternalValue(t.value);e.valueChange(t.value)},onBlur:()=>e.onBlur()},e.ariaAttributes))}const u=(e,t)=>n("div",{class:"end-container",ref:e.slotEndRef},n("slot",{name:"end",onSlotchange:e.onSlotChange}),t);const c=e=>n("div",{class:"start-container",ref:e.slotStartRef},n("slot",{name:"start",onSlotchange:e.onSlotChange}));function l(n){const e=5;r({targets:n,duration:200,easing:"easeInOutSine",loop:2,translateX:[{value:e*-1},{value:e},{value:e/-2},{value:e/2},{value:0}]})}function f(n,e){n.isInvalid=e.isInvalid||e.isInvalidByRequired;n.isValid=e.isValid;n.isInfo=e.isInfo;n.isWarning=e.isWarning}function d(n,e){if(n.allowedCharactersPattern){const t=new RegExp(n.allowedCharactersPattern);if(!t.test(e.key)){e.preventDefault();l(n.inputRef.current)}}}async function m(n,e){const a=e.validity;const i=n.validityStateChange.emit(a);if(i.defaultPrevented){return}if(!n.value){return}const r=await t(n);if(r){return}const{valid:s}=a;n.hostElement.classList.toggle("ix-invalid--validity-invalid",!s)}function p(n,e){n.ixBlur.emit();if(!e){throw new Error("Input element is not available")}m(n,e)}function v(n,e,t){var a;if(!n){return}const r=16;const s=i(e+r/2);if(t.slotEnd){n.style.paddingRight=`calc(${s} + ${(a=t.additionalPaddingRight)!==null&&a!==void 0?a:"0rem"})`}else{n.style.paddingLeft=s}}function b(n,e,t){requestAnimationFrame((()=>{requestAnimationFrame((()=>{if(n){const e=n.getBoundingClientRect();if(e){v(t,e.width,{slotEnd:false})}}if(e){const n=e.getBoundingClientRect();if(n){v(t,n.width,{slotEnd:true})}}}))}))}function h(n){const t={"aria-invalid":`${e(n.isInvalid)}`,"aria-required":`${e(n.required)}`};if(n.isInvalid&&n.invalidText){t["aria-errormessage"]=n.invalidText}return t}const g=(n,e)=>{const t=j(n,e);const i=a(e);i.observe(n,{subtree:true,attributes:true});return()=>{t.disconnect();i.disconnect()}};function j(n,e){const t=new IntersectionObserver((n=>{n.forEach((n=>{if(n.isIntersecting){e()}}))}));t.observe(n);return t}export{o as I,u as S,s as T,g as a,b,c,d,m as e,h as g,f as m,p as o};
2
+ //# sourceMappingURL=p-21a8aeaf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["TextareaElement","props","h","Object","assign","readOnly","readonly","disabled","maxLength","minLength","cols","textareaCols","rows","textareaRows","ref","textAreaRef","class","isInvalid","required","value","placeholder","onInput","inputEvent","target","updateFormInternalValue","valueChange","onBlur","style","resize","resizeBehavior","height","textareaHeight","width","textareaWidth","ariaAttributes","InputElement","id","autoComplete","min","max","Number","undefined","inputRef","pattern","type","onKeyPress","event","SlotEnd","children","slotEndRef","name","onSlotchange","onSlotChange","SlotStart","slotStartRef","shakeInput","input","xMax","anime","targets","duration","easing","loop","translateX","mapValidationResult","result","isInvalidByRequired","isValid","isInfo","isWarning","checkAllowedKeys","comp","allowedCharactersPattern","regex","RegExp","test","key","preventDefault","current","async","checkInternalValidity","validityState","validity","eventResult","validityStateChange","emit","defaultPrevented","skipValidation","shouldSuppressInternalValidation","valid","hostElement","classList","toggle","onInputBlur","ixBlur","Error","applyPaddingEnd","inputElement","options","remInPixels","padding","convertToRemString","slotEnd","paddingRight","_a","additionalPaddingRight","paddingLeft","adjustPaddingForStartAndEnd","startElement","endElement","requestAnimationFrame","startBoundingRect","getBoundingClientRect","endBoundingRect","getAriaAttributesForInput","component","inputAria","a11yBoolean","invalidText","addDisposableChangesAndVisibilityObservers","element","callback","intersectionObserver","observeElementUntilVisible","mutationObserver","createMutationObserver","observe","subtree","attributes","disconnect","updateCallback","IntersectionObserver","entries","forEach","entry","isIntersecting"],"sources":["src/components/input/input.fc.tsx","src/components/input/input.animation.ts","src/components/input/input.util.ts"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { h, FunctionalComponent } from '@stencil/core';\nimport { MakeRef } from '../utils/make-ref';\nimport { A11yAttributes } from '../utils/a11y';\n\nexport function TextareaElement(props: {\n resizeBehavior: 'both' | 'horizontal' | 'vertical' | 'none';\n textareaHeight?: string;\n textareaWidth?: string;\n textareaRows?: number;\n textareaCols?: number;\n disabled: boolean;\n readonly: boolean;\n maxLength?: number;\n minLength?: number;\n isInvalid: boolean;\n required: boolean;\n value: string;\n placeholder?: string;\n textAreaRef: (el: HTMLTextAreaElement | undefined) => void;\n valueChange: (value: string) => void;\n updateFormInternalValue: (value: string) => void;\n onBlur: () => void;\n ariaAttributes?: A11yAttributes;\n}) {\n return (\n <textarea\n readOnly={props.readonly}\n disabled={props.disabled}\n maxLength={props.maxLength}\n minLength={props.minLength}\n cols={props.textareaCols}\n rows={props.textareaRows}\n ref={props.textAreaRef}\n class={{\n 'is-invalid': props.isInvalid,\n }}\n required={props.required}\n value={props.value}\n placeholder={props.placeholder}\n onInput={(inputEvent) => {\n const target = inputEvent.target as HTMLInputElement;\n props.updateFormInternalValue(target.value);\n props.valueChange(target.value);\n }}\n onBlur={() => props.onBlur()}\n style={{\n resize: props.resizeBehavior,\n height: props.textareaHeight,\n width: props.textareaWidth,\n }}\n {...props.ariaAttributes}\n ></textarea>\n );\n}\n\nexport function InputElement(props: {\n id: string;\n disabled: boolean;\n readonly: boolean;\n maxLength?: string | number;\n minLength?: string | number;\n max?: string | number;\n min?: string | number;\n pattern?: string;\n type: string;\n isInvalid: boolean;\n required: boolean;\n value: string | number;\n placeholder?: string;\n inputRef: (el: HTMLInputElement | undefined) => void;\n onKeyPress: (event: KeyboardEvent) => void;\n valueChange: (value: string) => void;\n updateFormInternalValue: (value: string) => void;\n onBlur: () => void;\n ariaAttributes?: A11yAttributes;\n}) {\n return (\n <input\n id={props.id}\n autoComplete=\"off\"\n readOnly={props.readonly}\n disabled={props.disabled}\n min={props.min}\n max={props.max}\n maxLength={props.maxLength ? Number(props.maxLength) : undefined}\n minLength={props.maxLength ? Number(props.minLength) : undefined}\n ref={props.inputRef}\n pattern={props.pattern}\n type={props.type}\n class={{\n 'is-invalid': props.isInvalid,\n }}\n required={props.required}\n value={props.value}\n placeholder={props.placeholder}\n onKeyPress={(event) => props.onKeyPress(event)}\n onInput={(inputEvent) => {\n const target = inputEvent.target as HTMLInputElement;\n props.updateFormInternalValue(target.value);\n props.valueChange(target.value);\n }}\n onBlur={() => props.onBlur()}\n {...props.ariaAttributes}\n ></input>\n );\n}\n\nexport const SlotEnd: FunctionalComponent<{\n slotEndRef: MakeRef<HTMLDivElement>;\n onSlotChange?: (e: Event) => void;\n}> = (props, children) => {\n return (\n <div class=\"end-container\" ref={props.slotEndRef}>\n <slot name=\"end\" onSlotchange={props.onSlotChange}></slot>\n {children}\n </div>\n );\n};\n\nexport const SlotStart: FunctionalComponent<{\n slotStartRef: MakeRef<HTMLDivElement>;\n onSlotChange?: (e: Event) => void;\n}> = (props) => {\n return (\n <div class=\"start-container\" ref={props.slotStartRef}>\n <slot name=\"start\" onSlotchange={props.onSlotChange}></slot>\n </div>\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 */\nimport anime from 'animejs';\n\nexport function shakeInput(input: HTMLInputElement) {\n const xMax = 5;\n anime({\n targets: input,\n duration: 200,\n easing: 'easeInOutSine',\n loop: 2,\n translateX: [\n {\n value: xMax * -1,\n },\n {\n value: xMax,\n },\n {\n value: xMax / -2,\n },\n {\n value: xMax / 2,\n },\n {\n value: 0,\n },\n ],\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 { A11yAttributes, a11yBoolean } from '../utils/a11y';\nimport {\n IxFormComponent,\n IxInputFieldComponent,\n ValidationResults,\n shouldSuppressInternalValidation,\n} from '../utils/input';\nimport { createMutationObserver } from '../utils/mutation-observer';\nimport { convertToRemString } from '../utils/rwd.util';\nimport { generateUUID } from '../utils/uuid';\nimport { shakeInput } from './input.animation';\n\nexport function createIdIfNotExists(\n element: IxFormComponent,\n idPrefix: string = 'input'\n) {\n return element.hasAttribute('id')\n ? element.getAttribute('id')\n : `${idPrefix}-${generateUUID()}`;\n}\n\nexport function mapValidationResult<T>(\n ref: IxInputFieldComponent<T>,\n result: ValidationResults\n) {\n ref.isInvalid = result.isInvalid || result.isInvalidByRequired;\n ref.isValid = result.isValid;\n ref.isInfo = result.isInfo;\n ref.isWarning = result.isWarning;\n}\n\nexport function checkAllowedKeys<T>(\n comp: IxInputFieldComponent<T>,\n event: KeyboardEvent\n) {\n if (comp.allowedCharactersPattern) {\n const regex = new RegExp(comp.allowedCharactersPattern);\n if (!regex.test(event.key)) {\n event.preventDefault();\n shakeInput(comp.inputRef.current);\n }\n }\n}\n\nexport async function checkInternalValidity<T>(\n comp: IxFormComponent<T>,\n input: HTMLInputElement | HTMLTextAreaElement\n) {\n const validityState = input.validity;\n\n const eventResult = comp.validityStateChange.emit(validityState);\n\n if (eventResult.defaultPrevented) {\n return;\n }\n\n if (!comp.value) {\n return;\n }\n\n const skipValidation = await shouldSuppressInternalValidation(comp);\n if (skipValidation) {\n return;\n }\n\n const { valid } = validityState;\n comp.hostElement.classList.toggle('ix-invalid--validity-invalid', !valid);\n}\n\nexport function onInputBlur<T>(\n comp: IxInputFieldComponent<T>,\n input?: HTMLInputElement | HTMLTextAreaElement | null\n) {\n comp.ixBlur.emit();\n\n if (!input) {\n throw new Error('Input element is not available');\n }\n checkInternalValidity(comp, input);\n}\n\nexport function applyPaddingEnd(\n inputElement: HTMLElement | null,\n width: number,\n options: {\n slotEnd: boolean;\n additionalPaddingRight?: string;\n }\n) {\n if (!inputElement) {\n return;\n }\n\n const remInPixels = 16;\n const padding = convertToRemString(width + remInPixels / 2);\n\n if (options.slotEnd) {\n inputElement.style.paddingRight = `calc(${padding} + ${\n options.additionalPaddingRight ?? '0rem'\n })`;\n } else {\n inputElement.style.paddingLeft = padding;\n }\n}\n\nexport function adjustPaddingForStartAndEnd(\n startElement: HTMLElement | null,\n endElement: HTMLElement | null,\n inputElement: HTMLElement | null\n) {\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n if (startElement) {\n const startBoundingRect = startElement.getBoundingClientRect();\n if (startBoundingRect) {\n applyPaddingEnd(inputElement, startBoundingRect.width, {\n slotEnd: false,\n });\n }\n }\n\n if (endElement) {\n const endBoundingRect = endElement.getBoundingClientRect();\n if (endBoundingRect) {\n applyPaddingEnd(inputElement, endBoundingRect.width, {\n slotEnd: true,\n });\n }\n }\n });\n });\n}\n\nexport function getAriaAttributesForInput(\n component: IxInputFieldComponent\n): A11yAttributes {\n const inputAria: A11yAttributes = {\n 'aria-invalid': `${a11yBoolean(component.isInvalid)}`,\n 'aria-required': `${a11yBoolean(component.required)}`,\n };\n\n if (component.isInvalid && component.invalidText) {\n inputAria['aria-errormessage'] = component.invalidText;\n }\n return inputAria;\n}\n\nexport type DisposableChangesAndVisibilityObservers = () => void;\n\nexport const addDisposableChangesAndVisibilityObservers = (\n element: HTMLElement,\n callback: () => void\n): DisposableChangesAndVisibilityObservers => {\n const intersectionObserver = observeElementUntilVisible(element, callback);\n const mutationObserver = createMutationObserver(callback);\n\n mutationObserver.observe(element, {\n subtree: true,\n attributes: true,\n });\n\n return () => {\n intersectionObserver.disconnect();\n mutationObserver.disconnect();\n };\n};\n\nfunction observeElementUntilVisible(\n hostElement: HTMLElement,\n updateCallback: () => void\n): IntersectionObserver {\n const intersectionObserver = new IntersectionObserver((entries) => {\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n updateCallback();\n }\n });\n });\n\n intersectionObserver.observe(hostElement);\n return intersectionObserver;\n}\n"],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ import{r as e,c as r,h as o,H as d,g as t}from"./p-5806df2b.js";import{m as a}from"./p-ce563a48.js";import{a as i}from"./p-5fe87e71.js";const c=":host{display:inline-block;position:relative}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host ::-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 button{all:unset;display:inline-flex;position:relative;align-items:center;justify-content:center;width:1.125rem;min-width:1.125rem;max-width:1.125rem;height:1.125rem;min-height:1.125rem;max-height:1.125rem;border:1px solid white;border-radius:100px;margin-right:0.5rem}:host button:focus-visible{outline:0.0625rem solid var(--theme-color-focus-bdr);outline-offset:var(--theme-radiobtn--focus--outline-offset)}:host input[type=radio]{display:none}:host label{display:flex;justify-content:flex-start;align-items:flex-start;width:100%;height:100%}:host .checkmark{border-radius:100px;background-color:var(--theme-color-primary--contrast);width:0.5rem;height:0.5rem}:host button{background-color:var(--theme-radiobtn-unchecked--background);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-unchecked--border-color)}:host(:hover) button{background-color:var(--theme-radiobtn-unchecked--background--hover);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-unchecked--border-color--hover)}:host(:active) button{background-color:var(--theme-radiobtn-unchecked--background--active);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-unchecked--border-color--active)}:host(.checked) button,:host([indeterminate]) button{background-color:var(--theme-radiobtn-checked--background);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-checked--border-color)}:host(.checked:hover) button,:host([indeterminate]:hover) button{background-color:var(--theme-radiobtn-checked--background--hover);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-checked--border-color--hover)}:host(.checked:active) button,:host([indeterminate]:active) button{background-color:var(--theme-radiobtn-checked--background--active);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-checked--border-color--active)}:host(.disabled){pointer-events:none}:host(.disabled) button{background-color:var(--theme-radiobtn-unchecked--background--disabled);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-unchecked--border-color--disabled)}:host(.checked.disabled) button,:host([indeterminate].disabled) button{background-color:var(--theme-radiobtn-checked--background--disabled);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-checked--border-color--disabled)}ix-typography{margin-top:0.125rem}:host(.ix-info:not(.disabled)) button{--theme-radiobtn-unchecked--background:var(--theme-radiobtn-unchecked--background--info);--theme-radiobtn-unchecked--background--hover:var(--theme-radiobtn-unchecked--background--info--hover);--theme-radiobtn-unchecked--background--active:var(--theme-radiobtn-unchecked--background--info--active);--theme-radiobtn-unchecked--border-color:var(--theme-radiobtn-unchecked--border-color--info);--theme-radiobtn-unchecked--border-color--hover:var(--theme-radiobtn-unchecked--border-color--info--hover);--theme-radiobtn-unchecked--border-color--active:var(--theme-radiobtn-unchecked--border-color--info--active);--theme-radiobtn-checked--background:var(--theme-radiobtn-checked--background--info);--theme-radiobtn-checked--background--hover:var(--theme-radiobtn-checked--background--info--hover);--theme-radiobtn-checked--background--active:var(--theme-radiobtn-checked--background--info--active);--theme-radiobtn-checked--border-color:var(--theme-radiobtn-checked--border-color--info);--theme-radiobtn-checked--border-color--hover:var(--theme-radiobtn-checked--border-color--info--hover);--theme-radiobtn-checked--border-color--active:var(--theme-radiobtn-checked--border-color--info--active);--theme-radiobtn-mixed--background:var(--theme-radiobtn-mixed--background--info);--theme-radiobtn-mixed--background--hover:var(--theme-radiobtn-mixed--background--info--hover);--theme-radiobtn-mixed--background--active:var(--theme-radiobtn-mixed--background--info--active);--theme-radiobtn-mixed--border-color:var(--theme-radiobtn-mixed--border-color--info);--theme-radiobtn-mixed--border-color--hover:var(--theme-radiobtn-mixed--border-color--info--hover);--theme-radiobtn-mixed--border-color--active:var(--theme-radiobtn-mixed--border-color--info--active)}:host(.ix-info) button{background-color:var(--theme-radiobtn-unchecked--background);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-unchecked--border-color)}:host(.ix-info:hover) button{background-color:var(--theme-radiobtn-unchecked--background--hover);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-unchecked--border-color--hover)}:host(.ix-info:active) button{background-color:var(--theme-radiobtn-unchecked--background--active);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-unchecked--border-color--active)}:host(.ix-info.checked) button,:host(.ix-info[indeterminate]) button{background-color:var(--theme-radiobtn-checked--background);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-checked--border-color)}:host(.ix-info.checked:hover) button,:host(.ix-info[indeterminate]:hover) button{background-color:var(--theme-radiobtn-checked--background--hover);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-checked--border-color--hover)}:host(.ix-info.checked:active) button,:host(.ix-info[indeterminate]:active) button{background-color:var(--theme-radiobtn-checked--background--active);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-checked--border-color--active)}:host(.ix-info.disabled) button{background-color:var(--theme-radiobtn-unchecked--background--disabled);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-unchecked--border-color--disabled)}:host(.ix-info.checked.disabled) button,:host(.ix-info[indeterminate].disabled) button{background-color:var(--theme-radiobtn-checked--background--disabled);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-checked--border-color--disabled)}:host(.ix-warning:not(.disabled)) button{--theme-radiobtn-unchecked--background:var(--theme-radiobtn-unchecked--background--warning);--theme-radiobtn-unchecked--background--hover:var(--theme-radiobtn-unchecked--background--warning--hover);--theme-radiobtn-unchecked--background--active:var(--theme-radiobtn-unchecked--background--warning--active);--theme-radiobtn-unchecked--border-color:var(--theme-radiobtn-unchecked--border-color--warning);--theme-radiobtn-unchecked--border-color--hover:var(--theme-radiobtn-unchecked--border-color--warning--hover);--theme-radiobtn-unchecked--border-color--active:var(--theme-radiobtn-unchecked--border-color--warning--active);--theme-radiobtn-checked--background:var(--theme-radiobtn-checked--background--warning);--theme-radiobtn-checked--background--hover:var(--theme-radiobtn-checked--background--warning--hover);--theme-radiobtn-checked--background--active:var(--theme-radiobtn-checked--background--warning--active);--theme-radiobtn-checked--border-color:var(--theme-radiobtn-checked--border-color--warning);--theme-radiobtn-checked--border-color--hover:var(--theme-radiobtn-checked--border-color--warning--hover);--theme-radiobtn-checked--border-color--active:var(--theme-radiobtn-checked--border-color--warning--active);--theme-radiobtn-mixed--background:var(--theme-radiobtn-mixed--background--warning);--theme-radiobtn-mixed--background--hover:var(--theme-radiobtn-mixed--background--warning--hover);--theme-radiobtn-mixed--background--active:var(--theme-radiobtn-mixed--background--warning--active);--theme-radiobtn-mixed--border-color:var(--theme-radiobtn-mixed--border-color--warning);--theme-radiobtn-mixed--border-color--hover:var(--theme-radiobtn-mixed--border-color--warning--hover);--theme-radiobtn-mixed--border-color--active:var(--theme-radiobtn-mixed--border-color--warning--active)}:host(.ix-warning) button{background-color:var(--theme-radiobtn-unchecked--background);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-unchecked--border-color)}:host(.ix-warning:hover) button{background-color:var(--theme-radiobtn-unchecked--background--hover);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-unchecked--border-color--hover)}:host(.ix-warning:active) button{background-color:var(--theme-radiobtn-unchecked--background--active);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-unchecked--border-color--active)}:host(.ix-warning.checked) button,:host(.ix-warning[indeterminate]) button{background-color:var(--theme-radiobtn-checked--background);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-checked--border-color)}:host(.ix-warning.checked:hover) button,:host(.ix-warning[indeterminate]:hover) button{background-color:var(--theme-radiobtn-checked--background--hover);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-checked--border-color--hover)}:host(.ix-warning.checked:active) button,:host(.ix-warning[indeterminate]:active) button{background-color:var(--theme-radiobtn-checked--background--active);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-checked--border-color--active)}:host(.ix-warning.disabled) button{background-color:var(--theme-radiobtn-unchecked--background--disabled);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-unchecked--border-color--disabled)}:host(.ix-warning.checked.disabled) button,:host(.ix-warning[indeterminate].disabled) button{background-color:var(--theme-radiobtn-checked--background--disabled);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-checked--border-color--disabled)}:host(.ix-invalid--required:not(.disabled)) button{--theme-radiobtn-unchecked--background:var(--theme-radiobtn-unchecked--background--invalid);--theme-radiobtn-unchecked--background--hover:var(--theme-radiobtn-unchecked--background--invalid--hover);--theme-radiobtn-unchecked--background--active:var(--theme-radiobtn-unchecked--background--invalid--active);--theme-radiobtn-unchecked--border-color:var(--theme-radiobtn-unchecked--border-color--invalid);--theme-radiobtn-unchecked--border-color--hover:var(--theme-radiobtn-unchecked--border-color--invalid--hover);--theme-radiobtn-unchecked--border-color--active:var(--theme-radiobtn-unchecked--border-color--invalid--active);--theme-radiobtn-checked--background:var(--theme-radiobtn-checked--background--invalid);--theme-radiobtn-checked--background--hover:var(--theme-radiobtn-checked--background--invalid--hover);--theme-radiobtn-checked--background--active:var(--theme-radiobtn-checked--background--invalid--active);--theme-radiobtn-checked--border-color:var(--theme-radiobtn-checked--border-color--invalid);--theme-radiobtn-checked--border-color--hover:var(--theme-radiobtn-checked--border-color--invalid--hover);--theme-radiobtn-checked--border-color--active:var(--theme-radiobtn-checked--border-color--invalid--active);--theme-radiobtn-mixed--background:var(--theme-radiobtn-mixed--background--invalid);--theme-radiobtn-mixed--background--hover:var(--theme-radiobtn-mixed--background--invalid--hover);--theme-radiobtn-mixed--background--active:var(--theme-radiobtn-mixed--background--invalid--active);--theme-radiobtn-mixed--border-color:var(--theme-radiobtn-mixed--border-color--invalid);--theme-radiobtn-mixed--border-color--hover:var(--theme-radiobtn-mixed--border-color--invalid--hover);--theme-radiobtn-mixed--border-color--active:var(--theme-radiobtn-mixed--border-color--invalid--active)}:host(.ix-invalid--required) button{background-color:var(--theme-radiobtn-unchecked--background);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-unchecked--border-color)}:host(.ix-invalid--required:hover) button{background-color:var(--theme-radiobtn-unchecked--background--hover);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-unchecked--border-color--hover)}:host(.ix-invalid--required:active) button{background-color:var(--theme-radiobtn-unchecked--background--active);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-unchecked--border-color--active)}:host(.ix-invalid--required.checked) button,:host(.ix-invalid--required[indeterminate]) button{background-color:var(--theme-radiobtn-checked--background);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-checked--border-color)}:host(.ix-invalid--required.checked:hover) button,:host(.ix-invalid--required[indeterminate]:hover) button{background-color:var(--theme-radiobtn-checked--background--hover);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-checked--border-color--hover)}:host(.ix-invalid--required.checked:active) button,:host(.ix-invalid--required[indeterminate]:active) button{background-color:var(--theme-radiobtn-checked--background--active);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-checked--border-color--active)}:host(.ix-invalid--required.disabled) button{background-color:var(--theme-radiobtn-unchecked--background--disabled);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-unchecked--border-color--disabled)}:host(.ix-invalid--required.checked.disabled) button,:host(.ix-invalid--required[indeterminate].disabled) button{background-color:var(--theme-radiobtn-checked--background--disabled);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-checked--border-color--disabled)}:host(.ix-invalid:not(.disabled)) button{--theme-radiobtn-unchecked--background:var(--theme-radiobtn-unchecked--background--invalid);--theme-radiobtn-unchecked--background--hover:var(--theme-radiobtn-unchecked--background--invalid--hover);--theme-radiobtn-unchecked--background--active:var(--theme-radiobtn-unchecked--background--invalid--active);--theme-radiobtn-unchecked--border-color:var(--theme-radiobtn-unchecked--border-color--invalid);--theme-radiobtn-unchecked--border-color--hover:var(--theme-radiobtn-unchecked--border-color--invalid--hover);--theme-radiobtn-unchecked--border-color--active:var(--theme-radiobtn-unchecked--border-color--invalid--active);--theme-radiobtn-checked--background:var(--theme-radiobtn-checked--background--invalid);--theme-radiobtn-checked--background--hover:var(--theme-radiobtn-checked--background--invalid--hover);--theme-radiobtn-checked--background--active:var(--theme-radiobtn-checked--background--invalid--active);--theme-radiobtn-checked--border-color:var(--theme-radiobtn-checked--border-color--invalid);--theme-radiobtn-checked--border-color--hover:var(--theme-radiobtn-checked--border-color--invalid--hover);--theme-radiobtn-checked--border-color--active:var(--theme-radiobtn-checked--border-color--invalid--active);--theme-radiobtn-mixed--background:var(--theme-radiobtn-mixed--background--invalid);--theme-radiobtn-mixed--background--hover:var(--theme-radiobtn-mixed--background--invalid--hover);--theme-radiobtn-mixed--background--active:var(--theme-radiobtn-mixed--background--invalid--active);--theme-radiobtn-mixed--border-color:var(--theme-radiobtn-mixed--border-color--invalid);--theme-radiobtn-mixed--border-color--hover:var(--theme-radiobtn-mixed--border-color--invalid--hover);--theme-radiobtn-mixed--border-color--active:var(--theme-radiobtn-mixed--border-color--invalid--active)}:host(.ix-invalid) button{background-color:var(--theme-radiobtn-unchecked--background);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-unchecked--border-color)}:host(.ix-invalid:hover) button{background-color:var(--theme-radiobtn-unchecked--background--hover);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-unchecked--border-color--hover)}:host(.ix-invalid:active) button{background-color:var(--theme-radiobtn-unchecked--background--active);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-unchecked--border-color--active)}:host(.ix-invalid.checked) button,:host(.ix-invalid[indeterminate]) button{background-color:var(--theme-radiobtn-checked--background);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-checked--border-color)}:host(.ix-invalid.checked:hover) button,:host(.ix-invalid[indeterminate]:hover) button{background-color:var(--theme-radiobtn-checked--background--hover);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-checked--border-color--hover)}:host(.ix-invalid.checked:active) button,:host(.ix-invalid[indeterminate]:active) button{background-color:var(--theme-radiobtn-checked--background--active);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-checked--border-color--active)}:host(.ix-invalid.disabled) button{background-color:var(--theme-radiobtn-unchecked--background--disabled);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-unchecked--border-color--disabled)}:host(.ix-invalid.checked.disabled) button,:host(.ix-invalid[indeterminate].disabled) button{background-color:var(--theme-radiobtn-checked--background--disabled);border:var(--theme-radiobtn--border-thickness) solid var(--theme-radiobtn-checked--border-color--disabled)}";const n=c;const b=class{constructor(o){e(this,o);this.checkedChange=r(this,"checkedChange",7);this.valueChange=r(this,"valueChange",7);if(o.$hostElement$["s-ei"]){this.formInternals=o.$hostElement$["s-ei"]}else{this.formInternals=o.$hostElement$.attachInternals();o.$hostElement$["s-ei"]=this.formInternals}this.required=false;this.inputRef=a((e=>{e.checked=this.checked}));this.name=undefined;this.value=undefined;this.label=undefined;this.disabled=false;this.checked=false}setCheckedState(e){if(this.checked){return}const r=this.checkedChange.emit(e);if(r.defaultPrevented){return}this.checked=e}async onCheckedChange(){const e=await this.inputRef.waitForCurrent();e.checked=this.checked;this.updateFormInternalValue()}onValueChange(){this.valueChange.emit(this.value)}componentWillLoad(){this.updateFormInternalValue()}updateFormInternalValue(){var e;if(this.checked){this.formInternals.setFormValue((e=this.value)!==null&&e!==void 0?e:"on")}else{this.formInternals.setFormValue(null)}}hasValidValue(){return Promise.resolve(this.checked)}getAssociatedFormElement(){return Promise.resolve(this.formInternals.form)}render(){return o(d,{key:"9e8b93bff9225644977905afb2cade77e3fa282c","aria-checked":i(this.checked),"aria-disabled":i(this.disabled),role:"radio",class:{disabled:this.disabled,checked:this.checked}},o("label",{key:"6776e954c1118e707e161ac04c84162fd2eb0792"},o("input",{key:"3674431ef6a480f3eace29a82ffdf6f6eddbd29c","aria-checked":i(this.checked),disabled:this.disabled,checked:this.checked,ref:this.inputRef,type:"radio",onChange:()=>{const e=this.inputRef.current;if(e){this.setCheckedState(e.checked)}}}),o("button",{key:"9464d56a7448886983c4603c2ec1a53bef30f9f3",disabled:this.disabled,class:{checked:this.checked},onClick:()=>this.setCheckedState(!this.checked)},this.checked&&o("div",{key:"e4a3ac25fa19f3fe755b0d0d6c4535187a123b4e",class:"checkmark"})),o("ix-typography",{key:"908f9aae8f8e2930be34bca5d92be343dc057823",format:"label",textColor:this.disabled?"weak":"std"},this.label,o("slot",{key:"30f3bb73204bbf54ce436072a78535932ae777e6"}))))}static get formAssociated(){return true}get hostElement(){return t(this)}static get watchers(){return{checked:["onCheckedChange"],value:["onValueChange"]}}};b.style=n;export{b as ix_radio};
2
+ //# sourceMappingURL=p-227b0ddd.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["radioCss","IxRadioStyle0","Radio","this","required","inputRef","makeRef","radiobuttonRef","checked","setCheckedState","newChecked","result","checkedChange","emit","defaultPrevented","onCheckedChange","waitForCurrent","updateFormInternalValue","onValueChange","valueChange","value","componentWillLoad","formInternals","setFormValue","_a","hasValidValue","Promise","resolve","getAssociatedFormElement","form","render","h","Host","key","a11yBoolean","disabled","role","class","ref","type","onChange","current","onClick","format","textColor","label"],"sources":["src/components/radio/radio.scss?tag=ix-radio&encapsulation=shadow","src/components/radio/radio.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 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n display: inline-block;\n position: relative;\n\n button {\n all: unset;\n\n display: inline-flex;\n position: relative;\n\n align-items: center;\n justify-content: center;\n\n width: 1.125rem;\n min-width: 1.125rem;\n max-width: 1.125rem;\n height: 1.125rem;\n min-height: 1.125rem;\n max-height: 1.125rem;\n\n border: 1px solid white;\n border-radius: 100px;\n\n margin-right: 0.5rem;\n }\n\n button:focus-visible {\n outline: 0.0625rem solid var(--theme-color-focus-bdr);\n outline-offset: var(--theme-radiobtn--focus--outline-offset);\n }\n\n input[type=\"radio\"] {\n display: none;\n }\n\n label {\n display: flex;\n\n justify-content: flex-start;\n align-items: flex-start;\n\n width: 100%;\n height: 100%;\n }\n\n .checkmark {\n border-radius: 100px;\n background-color: var(--theme-color-primary--contrast);\n width: 0.5rem;\n height: 0.5rem;\n }\n}\n\n@mixin radio-base() {\n :host {\n button {\n background-color: var(--theme-radiobtn-unchecked--background);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-unchecked--border-color);\n }\n }\n\n :host(:hover) {\n button {\n background-color: var(--theme-radiobtn-unchecked--background--hover);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-unchecked--border-color--hover);\n }\n }\n\n :host(:active) {\n button {\n background-color: var(--theme-radiobtn-unchecked--background--active);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-unchecked--border-color--active);\n }\n }\n\n :host(.checked),\n :host([indeterminate]) {\n button {\n background-color: var(--theme-radiobtn-checked--background);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-checked--border-color);\n }\n }\n\n :host(.checked:hover),\n :host([indeterminate]:hover) {\n button {\n background-color: var(--theme-radiobtn-checked--background--hover);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-checked--border-color--hover);\n }\n }\n\n :host(.checked:active),\n :host([indeterminate]:active) {\n button {\n background-color: var(--theme-radiobtn-checked--background--active);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-checked--border-color--active);\n }\n }\n\n :host(.disabled) {\n pointer-events: none;\n\n button {\n background-color: var(--theme-radiobtn-unchecked--background--disabled);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-unchecked--border-color--disabled);\n }\n }\n\n :host(.checked.disabled),\n :host([indeterminate].disabled) {\n button {\n background-color: var(--theme-radiobtn-checked--background--disabled);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-checked--border-color--disabled);\n }\n }\n\n ix-typography {\n margin-top: 0.125rem;\n }\n}\n\n@mixin radio-variant($selector) {\n :host(#{$selector}:not(.disabled)) {\n button {\n @content;\n }\n }\n\n :host(#{$selector}) {\n button {\n background-color: var(--theme-radiobtn-unchecked--background);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-unchecked--border-color);\n }\n }\n\n :host(#{$selector}:hover) {\n button {\n background-color: var(--theme-radiobtn-unchecked--background--hover);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-unchecked--border-color--hover);\n }\n }\n\n :host(#{$selector}:active) {\n button {\n background-color: var(--theme-radiobtn-unchecked--background--active);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-unchecked--border-color--active);\n }\n }\n\n :host(#{$selector}.checked),\n :host(#{$selector}[indeterminate]) {\n button {\n background-color: var(--theme-radiobtn-checked--background);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-checked--border-color);\n }\n }\n\n :host(#{$selector}.checked:hover),\n :host(#{$selector}[indeterminate]:hover) {\n button {\n background-color: var(--theme-radiobtn-checked--background--hover);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-checked--border-color--hover);\n }\n }\n\n :host(#{$selector}.checked:active),\n :host(#{$selector}[indeterminate]:active) {\n button {\n background-color: var(--theme-radiobtn-checked--background--active);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-checked--border-color--active);\n }\n }\n\n :host(#{$selector}.disabled) {\n button {\n background-color: var(--theme-radiobtn-unchecked--background--disabled);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-unchecked--border-color--disabled);\n }\n }\n\n :host(#{$selector}.checked.disabled),\n :host(#{$selector}[indeterminate].disabled) {\n button {\n background-color: var(--theme-radiobtn-checked--background--disabled);\n border: var(--theme-radiobtn--border-thickness) solid\n var(--theme-radiobtn-checked--border-color--disabled);\n }\n }\n}\n\n@mixin define-radio-vars($state, $type) {\n --theme-radiobtn-#{$state}--background: var(--theme-radiobtn-#{$state}--background--#{$type});\n --theme-radiobtn-#{$state}--background--hover: var(--theme-radiobtn-#{$state}--background--#{$type}--hover);\n --theme-radiobtn-#{$state}--background--active: var(--theme-radiobtn-#{$state}--background--#{$type}--active);\n\n --theme-radiobtn-#{$state}--border-color: var(--theme-radiobtn-#{$state}--border-color--#{$type});\n --theme-radiobtn-#{$state}--border-color--hover: var(--theme-radiobtn-#{$state}--border-color--#{$type}--hover);\n --theme-radiobtn-#{$state}--border-color--active: var(--theme-radiobtn-#{$state}--border-color--#{$type}--active);\n}\n\n@include radio-base();\n@include radio-variant(\n $selector: '.ix-info',\n) {\n @include define-radio-vars('unchecked', 'info');\n @include define-radio-vars('checked', 'info');\n @include define-radio-vars('mixed', 'info');\n}\n\n@include radio-variant(\n $selector: '.ix-warning',\n) {\n @include define-radio-vars('unchecked', 'warning');\n @include define-radio-vars('checked', 'warning');\n @include define-radio-vars('mixed', 'warning');\n}\n\n@include radio-variant(\n $selector: '.ix-invalid--required',\n) {\n @include define-radio-vars('unchecked', 'invalid');\n @include define-radio-vars('checked', 'invalid');\n @include define-radio-vars('mixed', 'invalid');\n}\n\n@include radio-variant(\n $selector: '.ix-invalid',\n) {\n @include define-radio-vars('unchecked', 'invalid');\n @include define-radio-vars('checked', 'invalid');\n @include define-radio-vars('mixed', 'invalid');\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 Event,\n EventEmitter,\n Host,\n Prop,\n Watch,\n h,\n Method,\n Element,\n} from '@stencil/core';\nimport { makeRef } from '../utils/make-ref';\nimport { IxFormComponent } from '../utils/input';\nimport { a11yBoolean } from '../utils/a11y';\n\n/**\n * @since 2.6.0\n * @form-ready 2.6.0\n */\n@Component({\n tag: 'ix-radio',\n styleUrl: 'radio.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class Radio implements IxFormComponent<string> {\n @Element() hostElement!: HTMLIxRadioElement;\n @AttachInternals() formInternals!: ElementInternals;\n\n /**\n * Name of the radio component\n */\n @Prop({ reflect: true }) name?: string;\n\n /**\n * Value of the radio component\n */\n @Prop({ reflect: true }) value?: string;\n\n /**\n * Label for the radio component\n */\n @Prop() label?: string;\n\n /**\n * Disabled state of the radio component\n */\n @Prop() disabled: boolean = false;\n\n /**\n * Checked state of the radio component\n */\n @Prop({ reflect: true, mutable: true }) checked: boolean = false;\n\n /**\n * Event emitted when the checked state of the radio changes\n */\n @Event() checkedChange!: EventEmitter<boolean>;\n\n /**\n * Event emitted when the value of the radio changes\n */\n @Event() valueChange!: EventEmitter<string>;\n\n /**\n * Single radio cannot be required\n * */\n required = false;\n\n private readonly inputRef = makeRef<HTMLInputElement>((radiobuttonRef) => {\n radiobuttonRef.checked = this.checked;\n });\n\n private setCheckedState(newChecked: boolean) {\n if (this.checked) {\n return;\n }\n const result = this.checkedChange.emit(newChecked);\n if (result.defaultPrevented) {\n return;\n }\n\n this.checked = newChecked;\n }\n\n @Watch('checked')\n async onCheckedChange() {\n const radiobuttonRef = await this.inputRef.waitForCurrent();\n radiobuttonRef.checked = this.checked;\n\n this.updateFormInternalValue();\n }\n\n @Watch('value')\n onValueChange() {\n this.valueChange.emit(this.value);\n }\n\n componentWillLoad() {\n this.updateFormInternalValue();\n }\n\n updateFormInternalValue() {\n if (this.checked) {\n this.formInternals.setFormValue(this.value ?? 'on');\n } else {\n this.formInternals.setFormValue(null);\n }\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 aria-checked={a11yBoolean(this.checked)}\n aria-disabled={a11yBoolean(this.disabled)}\n role=\"radio\"\n class={{\n disabled: this.disabled,\n checked: this.checked,\n }}\n >\n <label>\n <input\n aria-checked={a11yBoolean(this.checked)}\n disabled={this.disabled}\n checked={this.checked}\n ref={this.inputRef}\n type=\"radio\"\n onChange={() => {\n const ref = this.inputRef.current;\n if (ref) {\n this.setCheckedState(ref.checked);\n }\n }}\n />\n <button\n disabled={this.disabled}\n class={{\n checked: this.checked,\n }}\n onClick={() => this.setCheckedState(!this.checked)}\n >\n {this.checked && <div class=\"checkmark\"></div>}\n </button>\n <ix-typography\n format=\"label\"\n textColor={this.disabled ? 'weak' : 'std'}\n >\n {this.label}\n <slot></slot>\n </ix-typography>\n </label>\n </Host>\n );\n }\n}\n"],"mappings":"wIAAA,MAAMA,EAAW,gkjBACjB,MAAAC,EAAeD,E,MCkCFE,EAAK,M,2RA0ChBC,KAAAC,SAAW,MAEMD,KAAAE,SAAWC,GAA2BC,IACrDA,EAAeC,QAAUL,KAAKK,OAAO,I,4EAvBX,M,aAK+B,K,CAqBnD,eAAAC,CAAgBC,GACtB,GAAIP,KAAKK,QAAS,CAChB,M,CAEF,MAAMG,EAASR,KAAKS,cAAcC,KAAKH,GACvC,GAAIC,EAAOG,iBAAkB,CAC3B,M,CAGFX,KAAKK,QAAUE,C,CAIjB,qBAAMK,GACJ,MAAMR,QAAuBJ,KAAKE,SAASW,iBAC3CT,EAAeC,QAAUL,KAAKK,QAE9BL,KAAKc,yB,CAIP,aAAAC,GACEf,KAAKgB,YAAYN,KAAKV,KAAKiB,M,CAG7B,iBAAAC,GACElB,KAAKc,yB,CAGP,uBAAAA,G,MACE,GAAId,KAAKK,QAAS,CAChBL,KAAKmB,cAAcC,cAAaC,EAAArB,KAAKiB,SAAK,MAAAI,SAAA,EAAAA,EAAI,K,KACzC,CACLrB,KAAKmB,cAAcC,aAAa,K,EAMpC,aAAAE,GACE,OAAOC,QAAQC,QAAQxB,KAAKK,Q,CAK9B,wBAAAoB,GACE,OAAOF,QAAQC,QAAQxB,KAAKmB,cAAcO,K,CAG5C,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,0DACWC,EAAY/B,KAAKK,SAAQ,gBACxB0B,EAAY/B,KAAKgC,UAChCC,KAAK,QACLC,MAAO,CACLF,SAAUhC,KAAKgC,SACf3B,QAASL,KAAKK,UAGhBuB,EAAA,SAAAE,IAAA,4CACEF,EAAA,SAAAE,IAAA,0DACgBC,EAAY/B,KAAKK,SAC/B2B,SAAUhC,KAAKgC,SACf3B,QAASL,KAAKK,QACd8B,IAAKnC,KAAKE,SACVkC,KAAK,QACLC,SAAU,KACR,MAAMF,EAAMnC,KAAKE,SAASoC,QAC1B,GAAIH,EAAK,CACPnC,KAAKM,gBAAgB6B,EAAI9B,Q,KAI/BuB,EAAA,UAAAE,IAAA,2CACEE,SAAUhC,KAAKgC,SACfE,MAAO,CACL7B,QAASL,KAAKK,SAEhBkC,QAAS,IAAMvC,KAAKM,iBAAiBN,KAAKK,UAEzCL,KAAKK,SAAWuB,EAAA,OAAAE,IAAA,2CAAKI,MAAM,eAE9BN,EAAA,iBAAAE,IAAA,2CACEU,OAAO,QACPC,UAAWzC,KAAKgC,SAAW,OAAS,OAEnChC,KAAK0C,MACNd,EAAA,QAAAE,IAAA,+C"}
@@ -1,2 +1,2 @@
1
- import{r as t,c as a,h as e,H as r,g as o}from"./p-5806df2b.js";import{g as i}from"./p-345e1c73.js";const s=":host{display:block;position:relative;margin-bottom:0.5rem;margin-right:0.75rem}: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 .avatar{all:unset;box-sizing:border-box;display:flex;align-items:center;height:2.5rem;width:100%;max-height:2.5rem;padding-left:0.25rem;margin-left:0.41rem;margin-right:0.35rem;transition:var(--theme-default-time);border-radius:1.25rem}:host .avatar .avatar-name{display:flex;flex-direction:column;overflow:hidden;white-space:nowrap;margin-left:1rem;line-height:1.14}:host .avatar .avatar-name .text-default-single{color:var(--theme-nav-item-primary--color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .avatar:not(.disabled):not(:disabled){cursor:pointer}:host .avatar:not(.disabled):not(:disabled):hover{background-color:var(--theme-avatar-btn--background--hover);color:var(--theme-avatar-btn--color--hover)}:host .avatar:not(.disabled):not(:disabled){cursor:pointer}:host .avatar:not(.disabled):not(:disabled):active,:host .avatar:not(.disabled):not(:disabled).active{background-color:var(--theme-avatar-btn--background--active);color:var(--theme-avatar-btn--color--active)}:host .avatar:focus-visible{outline:1px solid var(--theme-color-focus-bdr)}";const l=s;const n=class{constructor(e){t(this,e);this.logoutClick=a(this,"logoutClick",7);this.avatarElementId="ix-menu-avatar-id";this.top=undefined;this.bottom=undefined;this.image=undefined;this.initials=undefined;this.i18nLogout="Logout";this.showLogoutButton=true;this.showContextMenu=false}onSlotChange(){const t=this.hostElement.shadowRoot.querySelector("slot");if(!t){return}const a=i(t);this.showContextMenu=a.length!==0}render(){return e(r,{key:"c1fa0cee8afddf06bb3d3920d395305a9b911b3c",slot:"ix-menu-avatar"},e("button",{key:"5012c1e35df4627a9fddb131f545f6e35042250c",class:"nav-item top-item avatar no-hover",title:this.top,id:this.avatarElementId,tabIndex:0},e("ix-avatar",{key:"2a1d4585720d023caeb9a008ee779537fca91715",image:this.image,initials:this.initials}),e("div",{key:"de59499988b75887263c47c4d9612e8ec7ad3e9d",class:"avatar-name"},e("span",{key:"7f824012aacf351597139c302ffccaf45df95d22",class:"text-default-single",title:this.top},this.top),e("span",{key:"8f5d667ac1a6c82c1fd3a30994202457ee007c5a",class:"text-default-single",title:this.bottom},this.bottom))),e("ix-dropdown",{key:"5345172d53852effd5bd360122079476c3894e24",trigger:this.hostElement,placement:"right-start",hidden:!this.showContextMenu&&!this.showLogoutButton,offset:{mainAxis:16}},e("slot",{key:"5ded6f40210ba408b6dd2313568c700f5cb56797",onSlotchange:()=>this.onSlotChange()}),this.showLogoutButton?e("ix-menu-avatar-item",{label:this.i18nLogout,icon:"log-out",onClick:t=>{this.logoutClick.emit(t)}}):null))}get hostElement(){return o(this)}};n.style=l;export{n as ix_menu_avatar};
2
- //# sourceMappingURL=p-63dd987f.entry.js.map
1
+ import{r as t,c as e,h as a,H as r,g as o}from"./p-5806df2b.js";import{g as i}from"./p-345e1c73.js";const s=":host{display:block;position:relative;margin-bottom:0.5rem;margin-right:0.75rem}: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 .avatar{all:unset;box-sizing:border-box;display:flex;align-items:center;height:2.5rem;width:100%;max-height:2.5rem;padding-left:0.25rem;margin-left:0.41rem;margin-right:0.35rem;transition:var(--theme-default-time);border-radius:1.25rem}:host .avatar .avatar-name{display:flex;flex-direction:column;overflow:hidden;white-space:nowrap;margin-left:1rem;line-height:1.14}:host .avatar .avatar-name .text-default-single{color:var(--theme-nav-item-primary--color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .avatar:not(.disabled):not(:disabled){cursor:pointer}:host .avatar:not(.disabled):not(:disabled):hover{background-color:var(--theme-avatar-btn--background--hover);color:var(--theme-avatar-btn--color--hover)}:host .avatar:not(.disabled):not(:disabled){cursor:pointer}:host .avatar:not(.disabled):not(:disabled):active,:host .avatar:not(.disabled):not(:disabled).active{background-color:var(--theme-avatar-btn--background--active);color:var(--theme-avatar-btn--color--active)}:host .avatar:focus-visible{outline:1px solid var(--theme-color-focus-bdr)}";const l=s;const n=class{constructor(a){t(this,a);this.logoutClick=e(this,"logoutClick",7);this.avatarElementId="ix-menu-avatar-id";this.top=undefined;this.bottom=undefined;this.image=undefined;this.initials=undefined;this.i18nLogout="Logout";this.showLogoutButton=true;this.showContextMenu=false}onSlotChange(){const t=this.hostElement.shadowRoot.querySelector("slot");if(!t){return}const e=i(t);this.showContextMenu=e.length!==0}render(){return a(r,{key:"f3761a16d1ebc179e8c7a604182efeebc3ae5dbe",slot:"ix-menu-avatar"},a("button",{key:"706ec6cdd7eb3f45cb6c8cd901511f3bb133d7e7",class:"nav-item top-item avatar no-hover",title:this.top,id:this.avatarElementId,tabIndex:0},a("ix-avatar",{key:"b1ace48f1f21901639d89445ae1e5260772a47e1",image:this.image,initials:this.initials}),a("div",{key:"e6f0edea42cf5c6de4eefa716c1573b1f42133c6",class:"avatar-name"},a("span",{key:"99532083258dbe7a1a4f6bf304c314c25b4f3339",class:"text-default-single",title:this.top},this.top),a("span",{key:"7ba1b282e56f2e6767da4347ec42e501ec0347cd",class:"text-default-single",title:this.bottom},this.bottom))),a("ix-dropdown",{key:"a38543969a094859633a7c3979f5262a0bbc8611",trigger:this.hostElement,placement:"right-start",hidden:!this.showContextMenu&&!this.showLogoutButton,offset:{mainAxis:16}},a("slot",{key:"a6c20075e5beaa33e197889ea41f585e7f079719",onSlotchange:()=>this.onSlotChange()}),this.showLogoutButton?a("ix-menu-avatar-item",{label:this.i18nLogout,icon:"log-out",onClick:t=>{this.logoutClick.emit(t)}}):null))}get hostElement(){return o(this)}};n.style=l;export{n as ix_menu_avatar};
2
+ //# sourceMappingURL=p-22fc61c9.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["menuAvatarCss","IxMenuAvatarStyle0","MenuAvatar","this","avatarElementId","onSlotChange","slot","hostElement","shadowRoot","querySelector","elements","getSlottedElements","showContextMenu","length","render","h","Host","key","class","title","top","id","tabIndex","image","initials","bottom","trigger","placement","hidden","showLogoutButton","offset","mainAxis","onSlotchange","label","i18nLogout","icon","onClick","e","logoutClick","emit"],"sources":["src/components/menu-avatar/menu-avatar.scss?tag=ix-menu-avatar&encapsulation=shadow","src/components/menu-avatar/menu-avatar.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/hover';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n display: block;\n position: relative;\n margin-bottom: 0.5rem;\n margin-right: 0.75rem;\n\n .avatar {\n all: unset;\n box-sizing: border-box;\n\n display: flex;\n align-items: center;\n height: 2.5rem;\n width: 100%;\n max-height: 2.5rem;\n padding-left: 0.25rem;\n margin-left: 0.41rem;\n margin-right: 0.35rem;\n transition: var(--theme-default-time);\n\n .avatar-name {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n white-space: nowrap;\n margin-left: $default-space;\n line-height: 1.14;\n\n .text-default-single {\n color: var(--theme-nav-item-primary--color);\n @include ellipsis;\n }\n }\n\n border-radius: 1.25rem;\n\n @include hover {\n background-color: var(--theme-avatar-btn--background--hover);\n color: var(--theme-avatar-btn--color--hover);\n }\n\n @include active {\n background-color: var(--theme-avatar-btn--background--active);\n color: var(--theme-avatar-btn--color--active);\n }\n }\n\n .avatar:focus-visible {\n outline: 1px solid var(--theme-color-focus-bdr);\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 */\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n State,\n} from '@stencil/core';\nimport { getSlottedElements } from '../utils/shadow-dom';\n\n@Component({\n tag: 'ix-menu-avatar',\n styleUrl: 'menu-avatar.scss',\n shadow: true,\n})\nexport class MenuAvatar {\n @Element() hostElement!: HTMLIxMenuAvatarElement;\n\n /**\n * First line of text\n */\n @Prop() top?: string;\n\n /**\n * Second line of text\n */\n @Prop() bottom?: string;\n\n /**\n * Display a avatar image\n *\n * @since 1.4.0\n */\n @Prop() image?: string;\n\n /**\n * Display the initials of the user. Will be overwritten by image\n *\n * @since 1.4.0\n */\n @Prop() initials?: string;\n\n /**\n * Use for translation\n */\n @Prop() i18nLogout: string = 'Logout';\n\n /**\n * Control the visibility of the logout button\n * @since 2.1.0\n */\n @Prop() showLogoutButton: boolean = true;\n\n /**\n * Control the visibility of the dropdown menu\n * @since 2.1.0\n */\n @State() showContextMenu: boolean = false;\n\n /**\n * Logout click\n */\n @Event() logoutClick!: EventEmitter;\n\n private avatarElementId = 'ix-menu-avatar-id';\n\n onSlotChange() {\n const slot = this.hostElement.shadowRoot!.querySelector('slot');\n if (!slot) {\n return;\n }\n const elements = getSlottedElements(slot);\n this.showContextMenu = elements.length !== 0;\n }\n\n render() {\n return (\n <Host slot=\"ix-menu-avatar\">\n <button\n class=\"nav-item top-item avatar no-hover\"\n title={this.top}\n id={this.avatarElementId}\n tabIndex={0}\n >\n <ix-avatar image={this.image} initials={this.initials}></ix-avatar>\n\n <div class=\"avatar-name\">\n <span class=\"text-default-single\" title={this.top}>\n {this.top}\n </span>\n <span class=\"text-default-single\" title={this.bottom}>\n {this.bottom}\n </span>\n </div>\n </button>\n <ix-dropdown\n trigger={this.hostElement}\n placement={'right-start'}\n hidden={!this.showContextMenu && !this.showLogoutButton}\n offset={{\n mainAxis: 16,\n }}\n >\n <slot onSlotchange={() => this.onSlotChange()}></slot>\n {this.showLogoutButton ? (\n <ix-menu-avatar-item\n label={this.i18nLogout}\n icon={'log-out'}\n onClick={(e) => {\n this.logoutClick.emit(e);\n }}\n ></ix-menu-avatar-item>\n ) : null}\n </ix-dropdown>\n </Host>\n );\n }\n}\n"],"mappings":"oGAAA,MAAMA,EAAgB,g4DACtB,MAAAC,EAAeD,E,MCwBFE,EAAU,M,kEAiDbC,KAAAC,gBAAkB,oB,sGAnBG,S,sBAMO,K,qBAMA,K,CASpC,YAAAC,GACE,MAAMC,EAAOH,KAAKI,YAAYC,WAAYC,cAAc,QACxD,IAAKH,EAAM,CACT,M,CAEF,MAAMI,EAAWC,EAAmBL,GACpCH,KAAKS,gBAAkBF,EAASG,SAAW,C,CAG7C,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CAACX,KAAK,kBACTS,EAAA,UAAAE,IAAA,2CACEC,MAAM,oCACNC,MAAOhB,KAAKiB,IACZC,GAAIlB,KAAKC,gBACTkB,SAAU,GAEVP,EAAA,aAAAE,IAAA,2CAAWM,MAAOpB,KAAKoB,MAAOC,SAAUrB,KAAKqB,WAE7CT,EAAA,OAAAE,IAAA,2CAAKC,MAAM,eACTH,EAAA,QAAAE,IAAA,2CAAMC,MAAM,sBAAsBC,MAAOhB,KAAKiB,KAC3CjB,KAAKiB,KAERL,EAAA,QAAAE,IAAA,2CAAMC,MAAM,sBAAsBC,MAAOhB,KAAKsB,QAC3CtB,KAAKsB,UAIZV,EAAA,eAAAE,IAAA,2CACES,QAASvB,KAAKI,YACdoB,UAAW,cACXC,QAASzB,KAAKS,kBAAoBT,KAAK0B,iBACvCC,OAAQ,CACNC,SAAU,KAGZhB,EAAA,QAAAE,IAAA,2CAAMe,aAAc,IAAM7B,KAAKE,iBAC9BF,KAAK0B,iBACJd,EAAA,uBACEkB,MAAO9B,KAAK+B,WACZC,KAAM,UACNC,QAAUC,IACRlC,KAAKmC,YAAYC,KAAKF,EAAE,IAG1B,M"}