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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (485) hide show
  1. package/components/custom-elements.d.ts +11 -0
  2. package/components/index.d.ts +33 -0
  3. package/components/index.js +122 -0
  4. package/components/index.js.map +1 -0
  5. package/components/ix-action-card.d.ts +11 -0
  6. package/components/ix-action-card.js +72 -0
  7. package/components/ix-action-card.js.map +1 -0
  8. package/components/ix-application-header.d.ts +11 -0
  9. package/components/ix-application-header.js +9 -0
  10. package/components/ix-application-header.js.map +1 -0
  11. package/components/ix-application-sidebar.d.ts +11 -0
  12. package/components/ix-application-sidebar.js +64 -0
  13. package/components/ix-application-sidebar.js.map +1 -0
  14. package/components/ix-application-switch-modal.d.ts +11 -0
  15. package/components/ix-application-switch-modal.js +106 -0
  16. package/components/ix-application-switch-modal.js.map +1 -0
  17. package/components/ix-application.d.ts +11 -0
  18. package/components/ix-application.js +148 -0
  19. package/components/ix-application.js.map +1 -0
  20. package/components/ix-avatar.d.ts +11 -0
  21. package/components/ix-avatar.js +9 -0
  22. package/components/ix-avatar.js.map +1 -0
  23. package/components/ix-basic-navigation.d.ts +11 -0
  24. package/components/ix-basic-navigation.js +154 -0
  25. package/components/ix-basic-navigation.js.map +1 -0
  26. package/components/ix-blind.d.ts +11 -0
  27. package/components/ix-blind.js +130 -0
  28. package/components/ix-blind.js.map +1 -0
  29. package/components/ix-breadcrumb-item.d.ts +11 -0
  30. package/components/ix-breadcrumb-item.js +9 -0
  31. package/components/ix-breadcrumb-item.js.map +1 -0
  32. package/components/ix-breadcrumb.d.ts +11 -0
  33. package/components/ix-breadcrumb.js +169 -0
  34. package/components/ix-breadcrumb.js.map +1 -0
  35. package/components/ix-button.d.ts +11 -0
  36. package/components/ix-button.js +9 -0
  37. package/components/ix-button.js.map +1 -0
  38. package/components/ix-card-accordion.d.ts +11 -0
  39. package/components/ix-card-accordion.js +9 -0
  40. package/components/ix-card-accordion.js.map +1 -0
  41. package/components/ix-card-content.d.ts +11 -0
  42. package/components/ix-card-content.js +9 -0
  43. package/components/ix-card-content.js.map +1 -0
  44. package/components/ix-card-list.d.ts +11 -0
  45. package/components/ix-card-list.js +256 -0
  46. package/components/ix-card-list.js.map +1 -0
  47. package/components/ix-card-title.d.ts +11 -0
  48. package/components/ix-card-title.js +9 -0
  49. package/components/ix-card-title.js.map +1 -0
  50. package/components/ix-card.d.ts +11 -0
  51. package/components/ix-card.js +9 -0
  52. package/components/ix-card.js.map +1 -0
  53. package/components/ix-category-filter.d.ts +11 -0
  54. package/components/ix-category-filter.js +600 -0
  55. package/components/ix-category-filter.js.map +1 -0
  56. package/components/ix-checkbox-group.d.ts +11 -0
  57. package/components/ix-checkbox-group.js +158 -0
  58. package/components/ix-checkbox-group.js.map +1 -0
  59. package/components/ix-checkbox.d.ts +11 -0
  60. package/components/ix-checkbox.js +163 -0
  61. package/components/ix-checkbox.js.map +1 -0
  62. package/components/ix-chip.d.ts +11 -0
  63. package/components/ix-chip.js +154 -0
  64. package/components/ix-chip.js.map +1 -0
  65. package/components/ix-col.d.ts +11 -0
  66. package/components/ix-col.js +9 -0
  67. package/components/ix-col.js.map +1 -0
  68. package/components/ix-content-header.d.ts +11 -0
  69. package/components/ix-content-header.js +73 -0
  70. package/components/ix-content-header.js.map +1 -0
  71. package/components/ix-content.d.ts +11 -0
  72. package/components/ix-content.js +49 -0
  73. package/components/ix-content.js.map +1 -0
  74. package/components/ix-css-grid-item.d.ts +11 -0
  75. package/components/ix-css-grid-item.js +40 -0
  76. package/components/ix-css-grid-item.js.map +1 -0
  77. package/components/ix-css-grid.d.ts +11 -0
  78. package/components/ix-css-grid.js +117 -0
  79. package/components/ix-css-grid.js.map +1 -0
  80. package/components/ix-custom-field.d.ts +11 -0
  81. package/components/ix-custom-field.js +112 -0
  82. package/components/ix-custom-field.js.map +1 -0
  83. package/components/ix-date-dropdown.d.ts +11 -0
  84. package/components/ix-date-dropdown.js +368 -0
  85. package/components/ix-date-dropdown.js.map +1 -0
  86. package/components/ix-date-input.d.ts +11 -0
  87. package/components/ix-date-input.js +393 -0
  88. package/components/ix-date-input.js.map +1 -0
  89. package/components/ix-date-picker.d.ts +11 -0
  90. package/components/ix-date-picker.js +9 -0
  91. package/components/ix-date-picker.js.map +1 -0
  92. package/components/ix-date-time-card.d.ts +11 -0
  93. package/components/ix-date-time-card.js +9 -0
  94. package/components/ix-date-time-card.js.map +1 -0
  95. package/components/ix-datetime-picker.d.ts +11 -0
  96. package/components/ix-datetime-picker.js +204 -0
  97. package/components/ix-datetime-picker.js.map +1 -0
  98. package/components/ix-divider.d.ts +11 -0
  99. package/components/ix-divider.js +9 -0
  100. package/components/ix-divider.js.map +1 -0
  101. package/components/ix-drawer.d.ts +11 -0
  102. package/components/ix-drawer.js +200 -0
  103. package/components/ix-drawer.js.map +1 -0
  104. package/components/ix-dropdown-button.d.ts +11 -0
  105. package/components/ix-dropdown-button.js +106 -0
  106. package/components/ix-dropdown-button.js.map +1 -0
  107. package/components/ix-dropdown-header.d.ts +11 -0
  108. package/components/ix-dropdown-header.js +44 -0
  109. package/components/ix-dropdown-header.js.map +1 -0
  110. package/components/ix-dropdown-item.d.ts +11 -0
  111. package/components/ix-dropdown-item.js +9 -0
  112. package/components/ix-dropdown-item.js.map +1 -0
  113. package/components/ix-dropdown-quick-actions.d.ts +11 -0
  114. package/components/ix-dropdown-quick-actions.js +36 -0
  115. package/components/ix-dropdown-quick-actions.js.map +1 -0
  116. package/components/ix-dropdown.d.ts +11 -0
  117. package/components/ix-dropdown.js +9 -0
  118. package/components/ix-dropdown.js.map +1 -0
  119. package/components/ix-empty-state.d.ts +11 -0
  120. package/components/ix-empty-state.js +65 -0
  121. package/components/ix-empty-state.js.map +1 -0
  122. package/components/ix-event-list-item.d.ts +11 -0
  123. package/components/ix-event-list-item.js +72 -0
  124. package/components/ix-event-list-item.js.map +1 -0
  125. package/components/ix-event-list.d.ts +11 -0
  126. package/components/ix-event-list.js +173 -0
  127. package/components/ix-event-list.js.map +1 -0
  128. package/components/ix-expanding-search.d.ts +11 -0
  129. package/components/ix-expanding-search.js +145 -0
  130. package/components/ix-expanding-search.js.map +1 -0
  131. package/components/ix-field-label.d.ts +11 -0
  132. package/components/ix-field-label.js +9 -0
  133. package/components/ix-field-label.js.map +1 -0
  134. package/components/ix-field-wrapper.d.ts +11 -0
  135. package/components/ix-field-wrapper.js +9 -0
  136. package/components/ix-field-wrapper.js.map +1 -0
  137. package/components/ix-filter-chip.d.ts +11 -0
  138. package/components/ix-filter-chip.js +9 -0
  139. package/components/ix-filter-chip.js.map +1 -0
  140. package/components/ix-flip-tile-content.d.ts +11 -0
  141. package/components/ix-flip-tile-content.js +44 -0
  142. package/components/ix-flip-tile-content.js.map +1 -0
  143. package/components/ix-flip-tile.d.ts +11 -0
  144. package/components/ix-flip-tile.js +153 -0
  145. package/components/ix-flip-tile.js.map +1 -0
  146. package/components/ix-group-context-menu.d.ts +11 -0
  147. package/components/ix-group-context-menu.js +9 -0
  148. package/components/ix-group-context-menu.js.map +1 -0
  149. package/components/ix-group-item.d.ts +11 -0
  150. package/components/ix-group-item.js +9 -0
  151. package/components/ix-group-item.js.map +1 -0
  152. package/components/ix-group.d.ts +11 -0
  153. package/components/ix-group.js +221 -0
  154. package/components/ix-group.js.map +1 -0
  155. package/components/ix-helper-text.d.ts +11 -0
  156. package/components/ix-helper-text.js +95 -0
  157. package/components/ix-helper-text.js.map +1 -0
  158. package/components/ix-icon-button.d.ts +11 -0
  159. package/components/ix-icon-button.js +9 -0
  160. package/components/ix-icon-button.js.map +1 -0
  161. package/components/ix-icon-toggle-button.d.ts +11 -0
  162. package/components/ix-icon-toggle-button.js +149 -0
  163. package/components/ix-icon-toggle-button.js.map +1 -0
  164. package/components/ix-input-group.d.ts +11 -0
  165. package/components/ix-input-group.js +152 -0
  166. package/components/ix-input-group.js.map +1 -0
  167. package/components/ix-input.d.ts +11 -0
  168. package/components/ix-input.js +248 -0
  169. package/components/ix-input.js.map +1 -0
  170. package/components/ix-key-value-list.d.ts +11 -0
  171. package/components/ix-key-value-list.js +42 -0
  172. package/components/ix-key-value-list.js.map +1 -0
  173. package/components/ix-key-value.d.ts +11 -0
  174. package/components/ix-key-value.js +48 -0
  175. package/components/ix-key-value.js.map +1 -0
  176. package/components/ix-kpi.d.ts +11 -0
  177. package/components/ix-kpi.js +74 -0
  178. package/components/ix-kpi.js.map +1 -0
  179. package/components/ix-layout-auto.d.ts +11 -0
  180. package/components/ix-layout-auto.js +113 -0
  181. package/components/ix-layout-auto.js.map +1 -0
  182. package/components/ix-layout-grid.d.ts +11 -0
  183. package/components/ix-layout-grid.js +9 -0
  184. package/components/ix-layout-grid.js.map +1 -0
  185. package/components/ix-link-button.d.ts +11 -0
  186. package/components/ix-link-button.js +57 -0
  187. package/components/ix-link-button.js.map +1 -0
  188. package/components/ix-map-navigation-overlay.d.ts +11 -0
  189. package/components/ix-map-navigation-overlay.js +9 -0
  190. package/components/ix-map-navigation-overlay.js.map +1 -0
  191. package/components/ix-map-navigation.d.ts +11 -0
  192. package/components/ix-map-navigation.js +240 -0
  193. package/components/ix-map-navigation.js.map +1 -0
  194. package/components/ix-menu-about-item.d.ts +11 -0
  195. package/components/ix-menu-about-item.js +51 -0
  196. package/components/ix-menu-about-item.js.map +1 -0
  197. package/components/ix-menu-about-news.d.ts +11 -0
  198. package/components/ix-menu-about-news.js +93 -0
  199. package/components/ix-menu-about-news.js.map +1 -0
  200. package/components/ix-menu-about.d.ts +11 -0
  201. package/components/ix-menu-about.js +89 -0
  202. package/components/ix-menu-about.js.map +1 -0
  203. package/components/ix-menu-avatar-item.d.ts +11 -0
  204. package/components/ix-menu-avatar-item.js +9 -0
  205. package/components/ix-menu-avatar-item.js.map +1 -0
  206. package/components/ix-menu-avatar.d.ts +11 -0
  207. package/components/ix-menu-avatar.js +115 -0
  208. package/components/ix-menu-avatar.js.map +1 -0
  209. package/components/ix-menu-category.d.ts +11 -0
  210. package/components/ix-menu-category.js +284 -0
  211. package/components/ix-menu-category.js.map +1 -0
  212. package/components/ix-menu-expand-icon.d.ts +11 -0
  213. package/components/ix-menu-expand-icon.js +9 -0
  214. package/components/ix-menu-expand-icon.js.map +1 -0
  215. package/components/ix-menu-item.d.ts +11 -0
  216. package/components/ix-menu-item.js +9 -0
  217. package/components/ix-menu-item.js.map +1 -0
  218. package/components/ix-menu-settings-item.d.ts +11 -0
  219. package/components/ix-menu-settings-item.js +51 -0
  220. package/components/ix-menu-settings-item.js.map +1 -0
  221. package/components/ix-menu-settings.d.ts +11 -0
  222. package/components/ix-menu-settings.js +9 -0
  223. package/components/ix-menu-settings.js.map +1 -0
  224. package/components/ix-menu.d.ts +11 -0
  225. package/components/ix-menu.js +590 -0
  226. package/components/ix-menu.js.map +1 -0
  227. package/components/ix-message-bar.d.ts +11 -0
  228. package/components/ix-message-bar.js +103 -0
  229. package/components/ix-message-bar.js.map +1 -0
  230. package/components/ix-modal-content.d.ts +11 -0
  231. package/components/ix-modal-content.js +9 -0
  232. package/components/ix-modal-content.js.map +1 -0
  233. package/components/ix-modal-footer.d.ts +11 -0
  234. package/components/ix-modal-footer.js +36 -0
  235. package/components/ix-modal-footer.js.map +1 -0
  236. package/components/ix-modal-header.d.ts +11 -0
  237. package/components/ix-modal-header.js +9 -0
  238. package/components/ix-modal-header.js.map +1 -0
  239. package/components/ix-modal-loading.d.ts +11 -0
  240. package/components/ix-modal-loading.js +42 -0
  241. package/components/ix-modal-loading.js.map +1 -0
  242. package/components/ix-modal.d.ts +11 -0
  243. package/components/ix-modal.js +241 -0
  244. package/components/ix-modal.js.map +1 -0
  245. package/components/ix-number-input.d.ts +11 -0
  246. package/components/ix-number-input.js +241 -0
  247. package/components/ix-number-input.js.map +1 -0
  248. package/components/ix-pagination.d.ts +11 -0
  249. package/components/ix-pagination.js +261 -0
  250. package/components/ix-pagination.js.map +1 -0
  251. package/components/ix-pane-layout.d.ts +11 -0
  252. package/components/ix-pane-layout.js +311 -0
  253. package/components/ix-pane-layout.js.map +1 -0
  254. package/components/ix-pane.d.ts +11 -0
  255. package/components/ix-pane.js +568 -0
  256. package/components/ix-pane.js.map +1 -0
  257. package/components/ix-pill.d.ts +11 -0
  258. package/components/ix-pill.js +127 -0
  259. package/components/ix-pill.js.map +1 -0
  260. package/components/ix-progress-indicator.d.ts +11 -0
  261. package/components/ix-progress-indicator.js +193 -0
  262. package/components/ix-progress-indicator.js.map +1 -0
  263. package/components/ix-push-card.d.ts +11 -0
  264. package/components/ix-push-card.js +82 -0
  265. package/components/ix-push-card.js.map +1 -0
  266. package/components/ix-radio-group.d.ts +11 -0
  267. package/components/ix-radio-group.js +195 -0
  268. package/components/ix-radio-group.js.map +1 -0
  269. package/components/ix-radio.d.ts +11 -0
  270. package/components/ix-radio.js +145 -0
  271. package/components/ix-radio.js.map +1 -0
  272. package/components/ix-row.d.ts +11 -0
  273. package/components/ix-row.js +9 -0
  274. package/components/ix-row.js.map +1 -0
  275. package/components/ix-select-item.d.ts +11 -0
  276. package/components/ix-select-item.js +9 -0
  277. package/components/ix-select-item.js.map +1 -0
  278. package/components/ix-select.d.ts +11 -0
  279. package/components/ix-select.js +9 -0
  280. package/components/ix-select.js.map +1 -0
  281. package/components/ix-slider.d.ts +11 -0
  282. package/components/ix-slider.js +255 -0
  283. package/components/ix-slider.js.map +1 -0
  284. package/components/ix-spinner.d.ts +11 -0
  285. package/components/ix-spinner.js +9 -0
  286. package/components/ix-spinner.js.map +1 -0
  287. package/components/ix-split-button.d.ts +11 -0
  288. package/components/ix-split-button.js +117 -0
  289. package/components/ix-split-button.js.map +1 -0
  290. package/components/ix-tab-item.d.ts +11 -0
  291. package/components/ix-tab-item.js +9 -0
  292. package/components/ix-tab-item.js.map +1 -0
  293. package/components/ix-tabs.d.ts +11 -0
  294. package/components/ix-tabs.js +9 -0
  295. package/components/ix-tabs.js.map +1 -0
  296. package/components/ix-textarea.d.ts +11 -0
  297. package/components/ix-textarea.js +192 -0
  298. package/components/ix-textarea.js.map +1 -0
  299. package/components/ix-tile.d.ts +11 -0
  300. package/components/ix-tile.js +63 -0
  301. package/components/ix-tile.js.map +1 -0
  302. package/components/ix-time-input.d.ts +11 -0
  303. package/components/ix-time-input.js +442 -0
  304. package/components/ix-time-input.js.map +1 -0
  305. package/components/ix-time-picker.d.ts +11 -0
  306. package/components/ix-time-picker.js +9 -0
  307. package/components/ix-time-picker.js.map +1 -0
  308. package/components/ix-toast-container.d.ts +11 -0
  309. package/components/ix-toast-container.js +143 -0
  310. package/components/ix-toast-container.js.map +1 -0
  311. package/components/ix-toast.d.ts +11 -0
  312. package/components/ix-toast.js +9 -0
  313. package/components/ix-toast.js.map +1 -0
  314. package/components/ix-toggle-button.d.ts +11 -0
  315. package/components/ix-toggle-button.js +128 -0
  316. package/components/ix-toggle-button.js.map +1 -0
  317. package/components/ix-toggle.d.ts +11 -0
  318. package/components/ix-toggle.js +188 -0
  319. package/components/ix-toggle.js.map +1 -0
  320. package/components/ix-tooltip.d.ts +11 -0
  321. package/components/ix-tooltip.js +9 -0
  322. package/components/ix-tooltip.js.map +1 -0
  323. package/components/ix-tree-item.d.ts +11 -0
  324. package/components/ix-tree-item.js +9 -0
  325. package/components/ix-tree-item.js.map +1 -0
  326. package/components/ix-tree.d.ts +11 -0
  327. package/components/ix-tree.js +610 -0
  328. package/components/ix-tree.js.map +1 -0
  329. package/components/ix-typography.d.ts +11 -0
  330. package/components/ix-typography.js +9 -0
  331. package/components/ix-typography.js.map +1 -0
  332. package/components/ix-upload.d.ts +11 -0
  333. package/components/ix-upload.js +234 -0
  334. package/components/ix-upload.js.map +1 -0
  335. package/components/ix-validation-tooltip.d.ts +11 -0
  336. package/components/ix-validation-tooltip.js +182 -0
  337. package/components/ix-validation-tooltip.js.map +1 -0
  338. package/components/ix-workflow-step.d.ts +11 -0
  339. package/components/ix-workflow-step.js +147 -0
  340. package/components/ix-workflow-step.js.map +1 -0
  341. package/components/ix-workflow-steps.d.ts +11 -0
  342. package/components/ix-workflow-steps.js +112 -0
  343. package/components/ix-workflow-steps.js.map +1 -0
  344. package/components/p--2LOMK-5.js +105 -0
  345. package/components/p--2LOMK-5.js.map +1 -0
  346. package/components/p-5uA5ifmT.js +72 -0
  347. package/components/p-5uA5ifmT.js.map +1 -0
  348. package/components/p-9dLpp1OQ.js +71 -0
  349. package/components/p-9dLpp1OQ.js.map +1 -0
  350. package/components/p-B1Gzt08S.js +51 -0
  351. package/components/p-B1Gzt08S.js.map +1 -0
  352. package/components/p-B3duqvjW.js +33 -0
  353. package/components/p-B3duqvjW.js.map +1 -0
  354. package/components/p-B6e7P4xT.js +42 -0
  355. package/components/p-B6e7P4xT.js.map +1 -0
  356. package/components/p-BGzrnl_l.js +21 -0
  357. package/components/p-BGzrnl_l.js.map +1 -0
  358. package/components/p-BH3f5fa3.js +37 -0
  359. package/components/p-BH3f5fa3.js.map +1 -0
  360. package/components/p-BJcX2_-N.js +110 -0
  361. package/components/p-BJcX2_-N.js.map +1 -0
  362. package/components/p-BMU8AlMD.js +107 -0
  363. package/components/p-BMU8AlMD.js.map +1 -0
  364. package/components/p-BNu7ac9R.js +79 -0
  365. package/components/p-BNu7ac9R.js.map +1 -0
  366. package/components/p-BP-8cvOJ.js +90 -0
  367. package/components/p-BP-8cvOJ.js.map +1 -0
  368. package/components/p-BQ6999e5.js +22 -0
  369. package/components/p-BQ6999e5.js.map +1 -0
  370. package/components/p-BXjBChze.js +130 -0
  371. package/components/p-BXjBChze.js.map +1 -0
  372. package/components/p-Bb7pDeaQ.js +144 -0
  373. package/components/p-Bb7pDeaQ.js.map +1 -0
  374. package/components/p-BcGAKMQ_.js +76 -0
  375. package/components/p-BcGAKMQ_.js.map +1 -0
  376. package/components/p-BdCnOrqW.js +47 -0
  377. package/components/p-BdCnOrqW.js.map +1 -0
  378. package/components/p-BedSAVZh.js +90 -0
  379. package/components/p-BedSAVZh.js.map +1 -0
  380. package/components/p-BhLbU_vK.js +129 -0
  381. package/components/p-BhLbU_vK.js.map +1 -0
  382. package/components/p-Bi1VyG64.js +46 -0
  383. package/components/p-Bi1VyG64.js.map +1 -0
  384. package/components/p-BkWbk29R.js +75 -0
  385. package/components/p-BkWbk29R.js.map +1 -0
  386. package/components/p-BmmgJGNd.js +64 -0
  387. package/components/p-BmmgJGNd.js.map +1 -0
  388. package/components/p-Bu-j8wxy.js +162 -0
  389. package/components/p-Bu-j8wxy.js.map +1 -0
  390. package/components/p-BuJ6BWIi.js +2042 -0
  391. package/components/p-BuJ6BWIi.js.map +1 -0
  392. package/components/p-Bvsx56zn.js +203 -0
  393. package/components/p-Bvsx56zn.js.map +1 -0
  394. package/components/p-BygLxZIM.js +54 -0
  395. package/components/p-BygLxZIM.js.map +1 -0
  396. package/components/p-Bzyt4nTL.js +110 -0
  397. package/components/p-Bzyt4nTL.js.map +1 -0
  398. package/components/p-C6o-AByw.js +33 -0
  399. package/components/p-C6o-AByw.js.map +1 -0
  400. package/components/p-CAqtPJ4-.js +1786 -0
  401. package/components/p-CAqtPJ4-.js.map +1 -0
  402. package/components/p-CGwHQeMX.js +54 -0
  403. package/components/p-CGwHQeMX.js.map +1 -0
  404. package/components/p-CKkTXQiw.js +164 -0
  405. package/components/p-CKkTXQiw.js.map +1 -0
  406. package/components/p-CX81WQtk.js +14 -0
  407. package/components/p-CX81WQtk.js.map +1 -0
  408. package/components/p-Cb-eBcUF.js +61 -0
  409. package/components/p-Cb-eBcUF.js.map +1 -0
  410. package/components/p-Cp5J1RZq.js +765 -0
  411. package/components/p-Cp5J1RZq.js.map +1 -0
  412. package/components/p-Cpxz1Kcs.js +19 -0
  413. package/components/p-Cpxz1Kcs.js.map +1 -0
  414. package/components/p-Cs8DEpjh.js +611 -0
  415. package/components/p-Cs8DEpjh.js.map +1 -0
  416. package/components/p-Cut5OrRw.js +461 -0
  417. package/components/p-Cut5OrRw.js.map +1 -0
  418. package/components/p-CvvOe8xV.js +151 -0
  419. package/components/p-CvvOe8xV.js.map +1 -0
  420. package/components/p-CyFFBc_G.js +100 -0
  421. package/components/p-CyFFBc_G.js.map +1 -0
  422. package/components/p-D3Aowo70.js +113 -0
  423. package/components/p-D3Aowo70.js.map +1 -0
  424. package/components/p-D3K9vmFp.js +157 -0
  425. package/components/p-D3K9vmFp.js.map +1 -0
  426. package/components/p-D6vSVaHq.js +26 -0
  427. package/components/p-D6vSVaHq.js.map +1 -0
  428. package/components/p-D9LaIICQ.js +118 -0
  429. package/components/p-D9LaIICQ.js.map +1 -0
  430. package/components/p-DCx3-1oU.js +310 -0
  431. package/components/p-DCx3-1oU.js.map +1 -0
  432. package/components/p-DDHkNPby.js +79 -0
  433. package/components/p-DDHkNPby.js.map +1 -0
  434. package/components/p-DJ7U7oUq.js +89 -0
  435. package/components/p-DJ7U7oUq.js.map +1 -0
  436. package/components/p-DMlmNp-B.js +33 -0
  437. package/components/p-DMlmNp-B.js.map +1 -0
  438. package/components/p-DWO4uklL.js +146 -0
  439. package/components/p-DWO4uklL.js.map +1 -0
  440. package/components/p-DaztMgDr.js +757 -0
  441. package/components/p-DaztMgDr.js.map +1 -0
  442. package/components/p-DbR-LZrk.js +33 -0
  443. package/components/p-DbR-LZrk.js.map +1 -0
  444. package/components/p-DfbCO042.js +207 -0
  445. package/components/p-DfbCO042.js.map +1 -0
  446. package/components/p-DkGdSI6e.js +103 -0
  447. package/components/p-DkGdSI6e.js.map +1 -0
  448. package/components/p-DojBQCbP.js +55 -0
  449. package/components/p-DojBQCbP.js.map +1 -0
  450. package/components/p-Dp15M30K.js +20 -0
  451. package/components/p-Dp15M30K.js.map +1 -0
  452. package/components/p-Dp4RJcgZ.js +125 -0
  453. package/components/p-Dp4RJcgZ.js.map +1 -0
  454. package/components/p-DyHdZRT0.js +359 -0
  455. package/components/p-DyHdZRT0.js.map +1 -0
  456. package/components/p-DyMgW0fR.js +65 -0
  457. package/components/p-DyMgW0fR.js.map +1 -0
  458. package/components/p-G0biE2Kx.js +33 -0
  459. package/components/p-G0biE2Kx.js.map +1 -0
  460. package/components/p-JJddxCCh.js +42 -0
  461. package/components/p-JJddxCCh.js.map +1 -0
  462. package/components/p-Ooq8eqJM.js +33 -0
  463. package/components/p-Ooq8eqJM.js.map +1 -0
  464. package/components/p-Ou74PMQs.js +1313 -0
  465. package/components/p-Ou74PMQs.js.map +1 -0
  466. package/components/p-PxA_udyJ.js +254 -0
  467. package/components/p-PxA_udyJ.js.map +1 -0
  468. package/components/p-TNoCM8Wi.js +83 -0
  469. package/components/p-TNoCM8Wi.js.map +1 -0
  470. package/components/p-UQa1aROL.js +23 -0
  471. package/components/p-UQa1aROL.js.map +1 -0
  472. package/components/p-bDicGJUN.js +7697 -0
  473. package/components/p-bDicGJUN.js.map +1 -0
  474. package/components/p-bcj7UEIC.js +24 -0
  475. package/components/p-bcj7UEIC.js.map +1 -0
  476. package/components/p-kY0vP3rC.js +122 -0
  477. package/components/p-kY0vP3rC.js.map +1 -0
  478. package/components/p-qauH9Ci4.js +54 -0
  479. package/components/p-qauH9Ci4.js.map +1 -0
  480. package/components/p-r63hglsv.js +90 -0
  481. package/components/p-r63hglsv.js.map +1 -0
  482. package/components/p-tH4n038Z.js +48 -0
  483. package/components/p-tH4n038Z.js.map +1 -0
  484. package/components/package.json +9 -0
  485. package/package.json +2 -1
@@ -0,0 +1,611 @@
1
+ import { p as proxyCustomElement, H, e as createEvent, h, F as Fragment, d as Host } from './p-BuJ6BWIi.js';
2
+ import { b as iconChevronRightSmall, l as iconChevronLeftSmall, m as iconSingleCheck } from './p-CGwHQeMX.js';
3
+ import { D as DateTime, I as Info } from './p-bDicGJUN.js';
4
+ import { O as OnListener } from './p-BcGAKMQ_.js';
5
+ import { m as makeRef } from './p-bcj7UEIC.js';
6
+ import { d as defineCustomElement$5 } from './p-CvvOe8xV.js';
7
+ import { d as defineCustomElement$4 } from './p-5uA5ifmT.js';
8
+ import { d as defineCustomElement$3 } from './p-Cut5OrRw.js';
9
+ import { d as defineCustomElement$2 } from './p-BXjBChze.js';
10
+ import { d as defineCustomElement$1 } from './p-BygLxZIM.js';
11
+
12
+ const datePickerCss = ":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: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--show-week-numbers{grid-template-columns:24px repeat(7, 40px)}: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}";
13
+
14
+ /*
15
+ * SPDX-FileCopyrightText: 2023 Siemens AG
16
+ *
17
+ * SPDX-License-Identifier: MIT
18
+ *
19
+ * This source code is licensed under the MIT license found in the
20
+ * LICENSE file in the root directory of this source tree.
21
+ */
22
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
23
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
24
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
25
+ r = Reflect.decorate(decorators, target, key, desc);
26
+ else
27
+ for (var i = decorators.length - 1; i >= 0; i--)
28
+ if (d = decorators[i])
29
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
30
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
31
+ };
32
+ const DatePicker = /*@__PURE__*/ proxyCustomElement(class DatePicker extends H {
33
+ constructor() {
34
+ super();
35
+ this.__registerHost();
36
+ this.__attachShadow();
37
+ this.dateChange = createEvent(this, "dateChange", 7);
38
+ this.dateRangeChange = createEvent(this, "dateRangeChange", 7);
39
+ this.dateSelect = createEvent(this, "dateSelect", 7);
40
+ /**
41
+ * Date format string.
42
+ * See {@link "https://moment.github.io/luxon/#/formatting?id=table-of-tokens"} for all available tokens.
43
+ */
44
+ this.format = 'yyyy/LL/dd';
45
+ /**
46
+ * If true a date-range can be selected (from/to).
47
+ */
48
+ this.range = true;
49
+ /**
50
+ * Corner style
51
+ */
52
+ this.corners = 'rounded';
53
+ /**
54
+ * The earliest date that can be selected by the date picker.
55
+ * If not set there will be no restriction.
56
+ */
57
+ this.minDate = '';
58
+ /**
59
+ * The latest date that can be selected by the date picker.
60
+ * If not set there will be no restriction.
61
+ */
62
+ this.maxDate = '';
63
+ /**
64
+ * Text of date select button
65
+ */
66
+ this.i18nDone = 'Done';
67
+ /**
68
+ * The index of which day to start the week on, based on the Locale#weekdays array.
69
+ * E.g. if the locale is en-us, weekStartIndex = 1 results in starting the week on monday.
70
+ */
71
+ this.weekStartIndex = 0;
72
+ /**
73
+ * Shows week numbers displayed on the left side of the date picker
74
+ *
75
+ * @since 3.0.0
76
+ */
77
+ this.showWeekNumbers = false;
78
+ /** @internal */
79
+ this.standaloneAppearance = true;
80
+ /** @internal */
81
+ this.today = DateTime.now().toISO();
82
+ this.selectedYear = 0;
83
+ this.tempYear = 0;
84
+ this.startYear = 0;
85
+ this.endYear = 0;
86
+ this.selectedMonth = 0;
87
+ this.tempMonth = 0;
88
+ this.dropdownButtonRef = makeRef();
89
+ this.yearContainerRef = makeRef();
90
+ this.firstMonthRef = makeRef();
91
+ this.focusedDay = 1;
92
+ this.isDayFocus = false;
93
+ this.monthChangedFromFocus = false;
94
+ this.DAYS_IN_WEEK = 7;
95
+ this.calendar = [];
96
+ }
97
+ watchFromPropHandler(newValue) {
98
+ if (!newValue) {
99
+ this.currFromDate = undefined;
100
+ return;
101
+ }
102
+ const date = this.parseDateString(newValue);
103
+ if (date) {
104
+ this.currFromDate = date;
105
+ this.updateSelectedYearMonth(date);
106
+ }
107
+ }
108
+ watchToPropHandler(newValue) {
109
+ if (!newValue) {
110
+ this.currToDate = undefined;
111
+ return;
112
+ }
113
+ const date = this.parseDateString(newValue);
114
+ if (date) {
115
+ this.currToDate = date;
116
+ this.updateSelectedYearMonth(date);
117
+ }
118
+ }
119
+ onLocaleChange() {
120
+ this.setTranslations();
121
+ }
122
+ /**
123
+ * Get the currently selected date-range.
124
+ */
125
+ async getCurrentDate() {
126
+ var _a, _b, _c, _d;
127
+ const _from = ((_a = this.currFromDate) === null || _a === void 0 ? void 0 : _a.isValid)
128
+ ? (_b = this.currFromDate) === null || _b === void 0 ? void 0 : _b.toFormat(this.format)
129
+ : undefined;
130
+ const _to = ((_c = this.currToDate) === null || _c === void 0 ? void 0 : _c.isValid)
131
+ ? (_d = this.currToDate) === null || _d === void 0 ? void 0 : _d.toFormat(this.format)
132
+ : undefined;
133
+ if (this.range) {
134
+ return {
135
+ from: _from,
136
+ to: _to,
137
+ };
138
+ }
139
+ return {
140
+ from: _from,
141
+ to: undefined,
142
+ };
143
+ }
144
+ handleKeyUp(event) {
145
+ if (!this.isDayFocus) {
146
+ return;
147
+ }
148
+ let _focusedDay = this.focusedDay;
149
+ switch (event.key) {
150
+ case 'ArrowLeft':
151
+ _focusedDay--;
152
+ break;
153
+ case 'ArrowRight':
154
+ _focusedDay++;
155
+ break;
156
+ case 'ArrowUp':
157
+ _focusedDay = _focusedDay - 7;
158
+ break;
159
+ case 'ArrowDown':
160
+ _focusedDay = _focusedDay + 7;
161
+ break;
162
+ default:
163
+ return;
164
+ }
165
+ if (_focusedDay > this.getDaysInCurrentMonth()) {
166
+ _focusedDay = _focusedDay - this.getDaysInCurrentMonth();
167
+ this.changeToAdjacentMonth(1);
168
+ this.monthChangedFromFocus = true;
169
+ }
170
+ else if (_focusedDay < 1) {
171
+ this.changeToAdjacentMonth(-1);
172
+ _focusedDay = _focusedDay + this.getDaysInCurrentMonth();
173
+ this.monthChangedFromFocus = true;
174
+ }
175
+ this.focusedDay = _focusedDay;
176
+ }
177
+ getDaysInCurrentMonth() {
178
+ return (DateTime.utc(this.selectedYear, this.selectedMonth + 1).daysInMonth || 0);
179
+ }
180
+ getDateTimeNow() {
181
+ return DateTime.fromISO(this.today);
182
+ }
183
+ parseDateString(dateString) {
184
+ const date = DateTime.fromFormat(dateString, this.format);
185
+ if (!date.isValid) {
186
+ console.error(date.invalidExplanation);
187
+ return undefined;
188
+ }
189
+ return date;
190
+ }
191
+ updateSelectedYearMonth(date) {
192
+ this.selectedYear = date.year;
193
+ this.selectedMonth = date.month - 1;
194
+ }
195
+ onDayBlur() {
196
+ this.isDayFocus = false;
197
+ }
198
+ onDayFocus() {
199
+ this.isDayFocus = true;
200
+ }
201
+ componentWillLoad() {
202
+ var _a, _b, _c, _d;
203
+ this.setTranslations();
204
+ this.currFromDate = this.from
205
+ ? DateTime.fromFormat(this.from, this.format)
206
+ : undefined;
207
+ this.currToDate = this.to
208
+ ? DateTime.fromFormat(this.to, this.format)
209
+ : undefined;
210
+ const year = (_b = (_a = this.currFromDate) === null || _a === void 0 ? void 0 : _a.year) !== null && _b !== void 0 ? _b : this.getDateTimeNow().year;
211
+ this.startYear = year - 5;
212
+ this.endYear = year + 5;
213
+ this.selectedMonth =
214
+ ((_d = (_c = this.currFromDate) === null || _c === void 0 ? void 0 : _c.month) !== null && _d !== void 0 ? _d : this.getDateTimeNow().month) - 1;
215
+ this.selectedYear = year;
216
+ this.tempMonth = this.selectedMonth;
217
+ this.tempYear = this.selectedYear;
218
+ }
219
+ componentWillRender() {
220
+ this.calculateCalendar();
221
+ }
222
+ componentDidRender() {
223
+ if (!this.monthChangedFromFocus && !this.isDayFocus) {
224
+ return;
225
+ }
226
+ const dayElem = this.hostElement.shadowRoot.querySelector(`[id=day-cell-${this.focusedDay}]`);
227
+ dayElem.focus();
228
+ }
229
+ setTranslations() {
230
+ this.dayNames = this.rotateWeekDayNames(Info.weekdays('long', {
231
+ locale: this.locale,
232
+ }), this.weekStartIndex);
233
+ this.monthNames = Info.months('long', {
234
+ locale: this.locale,
235
+ });
236
+ }
237
+ /**
238
+ * Rotate the WeekdayNames array.
239
+ * Based on the position that should be the new 0-index.
240
+ */
241
+ rotateWeekDayNames(weekdays, index) {
242
+ const clone = [...weekdays];
243
+ if (index === 0) {
244
+ return clone;
245
+ }
246
+ index = -index;
247
+ const len = weekdays.length;
248
+ clone.push(...clone.splice(0, ((-index % len) + len) % len));
249
+ return clone;
250
+ }
251
+ async onDone() {
252
+ const date = await this.getCurrentDate();
253
+ this.dateSelect.emit(date);
254
+ }
255
+ calculateCalendar() {
256
+ const calendar = [];
257
+ const month = DateTime.utc(this.selectedYear, this.selectedMonth + 1);
258
+ const monthStart = month.startOf('month');
259
+ const monthEnd = month.endOf('month');
260
+ let startWeek = monthStart.weekNumber;
261
+ let endWeek = monthEnd.weekNumber;
262
+ let monthStartWeekDayIndex = monthStart.weekday - 1;
263
+ let monthEndWeekDayIndex = monthEnd.weekday - 1;
264
+ if (this.weekStartIndex !== 0) {
265
+ // Find the positions where to start/stop counting the day-numbers based on which day the week starts
266
+ const weekdays = Info.weekdays();
267
+ const monthStartWeekDayName = weekdays[monthStart.weekday];
268
+ monthStartWeekDayIndex = this.dayNames.findIndex((d) => d === monthStartWeekDayName);
269
+ const monthEndWeekDayName = weekdays[monthEnd.weekday];
270
+ monthEndWeekDayIndex = this.dayNames.findIndex((d) => d === monthEndWeekDayName);
271
+ }
272
+ let correctLastWeek = false;
273
+ if (endWeek === 1) {
274
+ endWeek = monthEnd.weeksInWeekYear + 1;
275
+ correctLastWeek = true;
276
+ }
277
+ let correctFirstWeek = false;
278
+ if (startWeek === monthStart.weeksInWeekYear) {
279
+ startWeek = 1;
280
+ endWeek++;
281
+ correctFirstWeek = true;
282
+ }
283
+ let currDayNumber = 1;
284
+ for (let weekIndex = startWeek; weekIndex <= endWeek && currDayNumber <= 31; weekIndex++) {
285
+ const daysArr = [];
286
+ for (let j = 0; j < this.DAYS_IN_WEEK && currDayNumber <= 31; j++) {
287
+ // Display empty cells until the calender starts/has ended
288
+ if ((weekIndex === startWeek && j < monthStartWeekDayIndex) ||
289
+ (weekIndex === endWeek && j > monthEndWeekDayIndex)) {
290
+ daysArr.push(undefined);
291
+ }
292
+ else {
293
+ daysArr.push(currDayNumber++);
294
+ }
295
+ }
296
+ if (correctFirstWeek || correctLastWeek) {
297
+ if (weekIndex === 1) {
298
+ calendar.push({
299
+ weekNumber: monthStart.weeksInWeekYear,
300
+ dayNumbers: daysArr,
301
+ });
302
+ }
303
+ else if (weekIndex === monthEnd.weekNumber) {
304
+ calendar.push({
305
+ weekNumber: 1,
306
+ dayNumbers: daysArr,
307
+ });
308
+ }
309
+ else {
310
+ calendar.push({
311
+ weekNumber: weekIndex - 1,
312
+ dayNumbers: daysArr,
313
+ });
314
+ }
315
+ continue;
316
+ }
317
+ calendar.push({
318
+ weekNumber: weekIndex,
319
+ dayNumbers: daysArr,
320
+ });
321
+ }
322
+ this.calendar = calendar;
323
+ }
324
+ selectTempYear(event, year) {
325
+ event === null || event === void 0 ? void 0 : event.stopPropagation();
326
+ this.tempYear = year;
327
+ }
328
+ focusMonth() {
329
+ var _a;
330
+ (_a = this.firstMonthRef.current) === null || _a === void 0 ? void 0 : _a.focus();
331
+ }
332
+ infiniteScrollYears() {
333
+ const yearContainer = this.yearContainerRef.current;
334
+ if (!yearContainer) {
335
+ return;
336
+ }
337
+ const scroll = yearContainer.scrollTop;
338
+ const maxScroll = yearContainer.scrollHeight;
339
+ const atTop = scroll === 0;
340
+ const atBottom = Math.round(scroll + yearContainer.offsetHeight) >= maxScroll;
341
+ const limit = 200;
342
+ if (this.endYear - this.startYear > limit)
343
+ return;
344
+ if (atTop) {
345
+ const first = yearContainer.firstElementChild;
346
+ this.startYear -= 5;
347
+ yearContainer.scrollTo(0, first.offsetTop);
348
+ return;
349
+ }
350
+ if (atBottom) {
351
+ const last = yearContainer.lastElementChild;
352
+ this.endYear += 5;
353
+ yearContainer.scrollTo(0, last.offsetTop);
354
+ }
355
+ }
356
+ selectMonth(month) {
357
+ this.selectedMonth = month;
358
+ this.selectedYear = this.tempYear;
359
+ this.tempMonth = month;
360
+ const dropdown = this.hostElement.shadowRoot.querySelector('ix-dropdown');
361
+ if (dropdown) {
362
+ dropdown.show = false;
363
+ }
364
+ }
365
+ changeToAdjacentMonth(number) {
366
+ if (this.selectedMonth + number < 0) {
367
+ this.selectedYear--;
368
+ this.selectedMonth = 11;
369
+ }
370
+ else if (this.selectedMonth + number > 11) {
371
+ this.selectedYear++;
372
+ this.selectedMonth = 0;
373
+ }
374
+ else {
375
+ this.selectedMonth += number;
376
+ }
377
+ }
378
+ selectDay(selectedDay, target) {
379
+ if (target.classList.contains('disabled')) {
380
+ return;
381
+ }
382
+ const date = DateTime.fromJSDate(new Date(this.selectedYear, this.selectedMonth, selectedDay));
383
+ if (!this.range || this.currFromDate === undefined) {
384
+ this.currFromDate = date;
385
+ this.onDateChange();
386
+ return;
387
+ }
388
+ // Reset the range selection
389
+ if (this.currToDate !== undefined) {
390
+ this.currFromDate = date;
391
+ this.currToDate = undefined;
392
+ this.onDateChange();
393
+ return;
394
+ }
395
+ // Swap from/to if the second date is before the current date
396
+ if (date < this.currFromDate) {
397
+ this.currToDate = this.currFromDate;
398
+ this.currFromDate = date;
399
+ this.onDateChange();
400
+ return;
401
+ }
402
+ // Set the range normally
403
+ this.currToDate = date;
404
+ this.onDateChange();
405
+ }
406
+ onDateChange() {
407
+ this.getCurrentDate().then((date) => {
408
+ this.dateChange.emit(date);
409
+ if (this.range) {
410
+ this.dateRangeChange.emit(date);
411
+ }
412
+ });
413
+ }
414
+ getDayClasses(day) {
415
+ var _a, _b, _c;
416
+ const todayObj = this.getDateTimeNow();
417
+ const selectedDayObj = DateTime.fromJSDate(new Date(this.selectedYear, this.selectedMonth, day));
418
+ return {
419
+ 'calendar-item': true,
420
+ 'empty-day': day === undefined,
421
+ today: todayObj.hasSame(selectedDayObj, 'day'),
422
+ selected: ((_a = this.currFromDate) === null || _a === void 0 ? void 0 : _a.hasSame(selectedDayObj, 'day')) ||
423
+ ((_b = this.currToDate) === null || _b === void 0 ? void 0 : _b.hasSame(selectedDayObj, 'day')),
424
+ range: this.currFromDate &&
425
+ selectedDayObj.startOf('day') > this.currFromDate.startOf('day') &&
426
+ this.currToDate !== undefined &&
427
+ selectedDayObj.startOf('day') < ((_c = this.currToDate) === null || _c === void 0 ? void 0 : _c.startOf('day')),
428
+ disabled: !this.isWithinMinMaxDate(selectedDayObj),
429
+ };
430
+ }
431
+ isWithinMinMaxYear(year) {
432
+ const minDateYear = this.minDate
433
+ ? DateTime.fromFormat(this.minDate, this.format).year
434
+ : undefined;
435
+ const maxDateYear = this.maxDate
436
+ ? DateTime.fromFormat(this.maxDate, this.format).year
437
+ : undefined;
438
+ const isBefore = minDateYear ? year < minDateYear : false;
439
+ const isAfter = maxDateYear ? year > maxDateYear : false;
440
+ return !isBefore && !isAfter;
441
+ }
442
+ isWithinMinMaxMonth(month) {
443
+ const minDateObj = this.minDate
444
+ ? DateTime.fromFormat(this.minDate, this.format)
445
+ : undefined;
446
+ const maxDateObj = this.maxDate
447
+ ? DateTime.fromFormat(this.maxDate, this.format)
448
+ : undefined;
449
+ const minDateMonth = minDateObj === null || minDateObj === void 0 ? void 0 : minDateObj.month;
450
+ const maxDateMonth = maxDateObj === null || maxDateObj === void 0 ? void 0 : maxDateObj.month;
451
+ const isBefore = minDateMonth
452
+ ? this.tempYear === minDateObj.year && month < minDateMonth
453
+ : false;
454
+ const isAfter = maxDateMonth
455
+ ? this.tempYear === maxDateObj.year && month > maxDateMonth
456
+ : false;
457
+ return !isBefore && !isAfter;
458
+ }
459
+ isWithinMinMaxDate(date) {
460
+ const _minDate = this.minDate
461
+ ? DateTime.fromFormat(this.minDate, this.format)
462
+ : undefined;
463
+ const _maxDate = this.maxDate
464
+ ? DateTime.fromFormat(this.maxDate, this.format)
465
+ : undefined;
466
+ const isBefore = _minDate
467
+ ? date.startOf('day') < _minDate.startOf('day')
468
+ : false;
469
+ const isAfter = _maxDate
470
+ ? date.startOf('day') > _maxDate.startOf('day')
471
+ : false;
472
+ return !isBefore && !isAfter;
473
+ }
474
+ renderYears() {
475
+ const rows = [];
476
+ for (let year = this.startYear; year <= this.endYear; year++) {
477
+ rows.push(h("div", { key: year, class: {
478
+ arrowYear: true,
479
+ 'month-dropdown-item': true,
480
+ 'disabled-item': !this.isWithinMinMaxYear(year),
481
+ }, onClick: (event) => this.selectTempYear(event, year), onKeyUp: (event) => {
482
+ if (event.key === 'Enter') {
483
+ this.tempYear = year;
484
+ this.focusMonth();
485
+ }
486
+ }, tabIndex: 0 }, h("ix-icon", { class: {
487
+ hidden: this.tempYear !== year,
488
+ arrowPosition: true,
489
+ }, name: iconChevronRightSmall, size: "12" }), h("div", { style: { 'min-width': 'max-content' } }, `${year}`)));
490
+ }
491
+ return rows;
492
+ }
493
+ render() {
494
+ return (h(Host, { key: 'e48ee389619f52726ce579c6486cab63d62b6fef' }, h("ix-date-time-card", { key: 'bd357a0e14678205965ea14d2e302eb828676d3c', corners: this.corners, standaloneAppearance: this.standaloneAppearance }, h("div", { key: 'bcab79091c34e84ce10de7be193717143d109810', class: "header", slot: "header" }, h("ix-icon-button", { key: 'd8038a98795ccfde0ddc7d50fc59ad36597e031e', onClick: () => this.changeToAdjacentMonth(-1), ghost: true, icon: iconChevronLeftSmall, variant: "primary", class: "arrows" }), h("div", { key: 'a3d445facefd7f74fffb663ed7aca2677d0673bb', class: "selector" }, h("ix-button", { key: 'd680ee000bf2c20b58871a192fb8b53f673db588', ghost: true, ref: this.dropdownButtonRef, "data-testid": "year-month-button" }, h("span", { key: 'e84d83f994f6283c101dccf6278777504c2b8814', class: "fontSize capitalize" }, this.monthNames[this.selectedMonth], " ", this.selectedYear)), h("ix-dropdown", { key: 'e0f414635d751b01162f7dd78caf266295f487ba', "data-testid": "year-month-dropdown", class: "dropdown", trigger: this.dropdownButtonRef.waitForCurrent(), ignoreRelatedSubmenu: true, placement: "bottom-start" }, h("div", { key: '25dd57cad907373c60bb0c2cbb433e75e4a38e93', class: "wrapper" }, h("div", { key: 'a014091ce50a1c7a27d050edff6cbeb15dee34a4', "data-testid": "year-container", class: "overflow", onScroll: () => this.infiniteScrollYears(), ref: this.yearContainerRef }, this.renderYears()), h("div", { key: 'dc687dcea36e21d895945c4fdc18b993002d5d11', class: "overflow", "data-testid": "month-container" }, this.monthNames.map((month, index) => (h("div", { key: month, ref: (ref) => {
495
+ if (month === this.monthNames[0]) {
496
+ this.firstMonthRef(ref);
497
+ }
498
+ }, class: {
499
+ arrowYear: true,
500
+ 'month-dropdown-item': true,
501
+ selected: this.tempYear === this.selectedYear &&
502
+ this.tempMonth === index,
503
+ 'disabled-item': !this.isWithinMinMaxMonth(index),
504
+ }, onClick: () => this.selectMonth(index), onKeyUp: (event) => event.key === 'Enter' && this.selectMonth(index), tabIndex: 0 }, h("ix-icon", { class: {
505
+ hidden: this.tempYear !== this.selectedYear ||
506
+ this.tempMonth !== index,
507
+ checkPosition: true,
508
+ }, name: iconSingleCheck, size: "16" }), h("div", null, h("span", { class: "capitalize monthMargin" }, `${month} ${this.tempYear}`))))))))), h("ix-icon-button", { key: '8e718bbd113146a599e4c15c3ee88a2a4b2bbe1b', onClick: () => this.changeToAdjacentMonth(1), ghost: true, icon: iconChevronRightSmall, variant: "primary", class: "arrows" })), h("div", { key: '9424e9223eabaae8d851d8d7ab852a7d71a0724c', class: {
509
+ grid: true,
510
+ 'grid--show-week-numbers': this.showWeekNumbers,
511
+ } }, this.showWeekNumbers && h("div", { key: '2ff1c7ee249a2a44b9d7c69be17c4d86a1405c20', class: "calendar-item week-day" }), this.dayNames.map((name) => (h("div", { key: name, class: "calendar-item week-day" }, h("div", { class: "overflow" }, name.slice(0, 3))))), this.calendar.map((week) => {
512
+ return (h(Fragment, null, this.showWeekNumbers && (h("div", { class: "calendar-item week-number" }, week.weekNumber)), week.dayNumbers.map((day) => {
513
+ return day ? (h("div", { key: day, id: `day-cell-${day}`, "date-calender-day": true, class: this.getDayClasses(day), onClick: (e) => {
514
+ const target = e.currentTarget;
515
+ this.selectDay(day, target);
516
+ }, onKeyUp: (e) => {
517
+ const target = e.currentTarget;
518
+ if (e.key === 'Enter') {
519
+ this.selectDay(day, target);
520
+ }
521
+ }, tabIndex: day === this.focusedDay ? 0 : -1, onFocus: () => this.onDayFocus(), onBlur: () => this.onDayBlur() }, day)) : (h("div", null));
522
+ })));
523
+ })), h("div", { key: '3a152e3f2c01b4643be45570424ef15996b09fc9', class: {
524
+ button: true,
525
+ hidden: !this.range || !this.standaloneAppearance,
526
+ } }, h("ix-button", { key: 'f485589cfc29f41eb354345bd015b36017e1ad86', onClick: () => this.onDone() }, this.i18nDone)))));
527
+ }
528
+ get hostElement() { return this; }
529
+ static get watchers() { return {
530
+ "from": ["watchFromPropHandler"],
531
+ "to": ["watchToPropHandler"],
532
+ "locale": ["onLocaleChange"]
533
+ }; }
534
+ static get style() { return datePickerCss; }
535
+ }, [1, "ix-date-picker", {
536
+ "format": [1],
537
+ "range": [4],
538
+ "corners": [1],
539
+ "from": [1],
540
+ "to": [1],
541
+ "minDate": [1, "min-date"],
542
+ "maxDate": [1, "max-date"],
543
+ "i18nDone": [1, "i18n-done"],
544
+ "weekStartIndex": [2, "week-start-index"],
545
+ "locale": [1],
546
+ "showWeekNumbers": [4, "show-week-numbers"],
547
+ "standaloneAppearance": [4, "standalone-appearance"],
548
+ "today": [1],
549
+ "currFromDate": [32],
550
+ "currToDate": [32],
551
+ "selectedYear": [32],
552
+ "tempYear": [32],
553
+ "startYear": [32],
554
+ "endYear": [32],
555
+ "selectedMonth": [32],
556
+ "tempMonth": [32],
557
+ "dayNames": [32],
558
+ "monthNames": [32],
559
+ "focusedDay": [32],
560
+ "getCurrentDate": [64]
561
+ }, undefined, {
562
+ "from": ["watchFromPropHandler"],
563
+ "to": ["watchToPropHandler"],
564
+ "locale": ["onLocaleChange"]
565
+ }]);
566
+ __decorate([
567
+ OnListener('keydown')
568
+ ], DatePicker.prototype, "handleKeyUp", null);
569
+ function defineCustomElement() {
570
+ if (typeof customElements === "undefined") {
571
+ return;
572
+ }
573
+ const components = ["ix-date-picker", "ix-button", "ix-date-time-card", "ix-dropdown", "ix-icon-button", "ix-spinner"];
574
+ components.forEach(tagName => { switch (tagName) {
575
+ case "ix-date-picker":
576
+ if (!customElements.get(tagName)) {
577
+ customElements.define(tagName, DatePicker);
578
+ }
579
+ break;
580
+ case "ix-button":
581
+ if (!customElements.get(tagName)) {
582
+ defineCustomElement$5();
583
+ }
584
+ break;
585
+ case "ix-date-time-card":
586
+ if (!customElements.get(tagName)) {
587
+ defineCustomElement$4();
588
+ }
589
+ break;
590
+ case "ix-dropdown":
591
+ if (!customElements.get(tagName)) {
592
+ defineCustomElement$3();
593
+ }
594
+ break;
595
+ case "ix-icon-button":
596
+ if (!customElements.get(tagName)) {
597
+ defineCustomElement$2();
598
+ }
599
+ break;
600
+ case "ix-spinner":
601
+ if (!customElements.get(tagName)) {
602
+ defineCustomElement$1();
603
+ }
604
+ break;
605
+ } });
606
+ }
607
+
608
+ export { DatePicker as D, defineCustomElement as d };
609
+ //# sourceMappingURL=p-Cs8DEpjh.js.map
610
+
611
+ //# sourceMappingURL=p-Cs8DEpjh.js.map