@ukic/canary-web-components 2.0.0-canary.8 → 3.0.0-canary.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (853) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/date-helpers-c9551119.js +150 -0
  3. package/dist/cjs/date-helpers-c9551119.js.map +1 -0
  4. package/dist/cjs/{helpers-b525d45a.js → helpers-33b42cd6.js} +101 -102
  5. package/dist/cjs/helpers-33b42cd6.js.map +1 -0
  6. package/dist/cjs/{helpers-93c5fc92.js → helpers-6817cfbb.js} +209 -12
  7. package/dist/cjs/helpers-6817cfbb.js.map +1 -0
  8. package/dist/cjs/ic-accordion-group.cjs.entry.js +31 -9
  9. package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
  10. package/dist/cjs/ic-accordion.cjs.entry.js +7 -8
  11. package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
  12. package/dist/cjs/ic-alert.cjs.entry.js +28 -10
  13. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  14. package/dist/cjs/ic-back-to-top.cjs.entry.js +17 -8
  15. package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
  16. package/dist/cjs/ic-badge.cjs.entry.js +67 -117
  17. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  18. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +37 -11
  19. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  20. package/dist/cjs/ic-breadcrumb.cjs.entry.js +8 -7
  21. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
  22. package/dist/cjs/ic-button_3.cjs.entry.js +121 -128
  23. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  24. package/dist/cjs/ic-card-horizontal.cjs.entry.js +131 -0
  25. package/dist/cjs/ic-card-horizontal.cjs.entry.js.map +1 -0
  26. package/dist/cjs/ic-card-vertical.cjs.entry.js +149 -0
  27. package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -0
  28. package/dist/cjs/ic-checkbox-group.cjs.entry.js +27 -20
  29. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  30. package/dist/cjs/ic-checkbox.cjs.entry.js +45 -40
  31. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  32. package/dist/cjs/ic-chip.cjs.entry.js +40 -29
  33. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  34. package/dist/cjs/ic-classification-banner.cjs.entry.js +14 -5
  35. package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
  36. package/dist/cjs/ic-data-list.cjs.entry.js +32 -0
  37. package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -0
  38. package/dist/cjs/ic-data-row.cjs.entry.js +12 -12
  39. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  40. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +57 -0
  41. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js.map +1 -0
  42. package/dist/cjs/ic-data-table.cjs.entry.js +805 -65
  43. package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
  44. package/dist/cjs/ic-date-input.cjs.entry.js +1110 -0
  45. package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -0
  46. package/dist/cjs/ic-date-picker.cjs.entry.js +1069 -0
  47. package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -0
  48. package/dist/cjs/ic-dialog.cjs.entry.js +27 -101
  49. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  50. package/dist/cjs/ic-divider.cjs.entry.js +2 -3
  51. package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
  52. package/dist/cjs/ic-empty-state_2.cjs.entry.js +317 -0
  53. package/dist/cjs/ic-empty-state_2.cjs.entry.js.map +1 -0
  54. package/dist/cjs/ic-footer-link-group.cjs.entry.js +9 -10
  55. package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
  56. package/dist/cjs/ic-footer-link.cjs.entry.js +6 -8
  57. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  58. package/dist/cjs/ic-footer.cjs.entry.js +9 -10
  59. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
  60. package/dist/cjs/ic-hero.cjs.entry.js +27 -12
  61. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  62. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -8
  63. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  64. package/dist/cjs/ic-input-component-container_4.cjs.entry.js +156 -0
  65. package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +1 -0
  66. package/dist/cjs/ic-link.cjs.entry.js +51 -24
  67. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  68. package/dist/cjs/ic-menu-group.cjs.entry.js +2 -3
  69. package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
  70. package/dist/cjs/ic-menu-item.cjs.entry.js +6 -13
  71. package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
  72. package/dist/cjs/ic-menu-with-multi.cjs.entry.js +186 -47
  73. package/dist/cjs/ic-menu-with-multi.cjs.entry.js.map +1 -1
  74. package/dist/cjs/{ic-input-component-container_3.cjs.entry.js → ic-menu.cjs.entry.js} +17 -86
  75. package/dist/cjs/ic-menu.cjs.entry.js.map +1 -0
  76. package/dist/cjs/ic-navigation-button.cjs.entry.js +28 -8
  77. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  78. package/dist/cjs/ic-navigation-group.cjs.entry.js +23 -21
  79. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  80. package/dist/cjs/ic-navigation-item.cjs.entry.js +33 -38
  81. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  82. package/dist/cjs/ic-navigation-menu.cjs.entry.js +3 -4
  83. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  84. package/dist/cjs/ic-page-header.cjs.entry.js +10 -12
  85. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  86. package/dist/cjs/ic-pagination_4.cjs.entry.js +226 -185
  87. package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
  88. package/dist/cjs/ic-popover-menu.cjs.entry.js +15 -21
  89. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  90. package/dist/cjs/ic-radio-group.cjs.entry.js +75 -51
  91. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  92. package/dist/cjs/ic-radio-option.cjs.entry.js +44 -53
  93. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  94. package/dist/cjs/ic-search-bar.cjs.entry.js +23 -30
  95. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  96. package/dist/cjs/ic-section-container.cjs.entry.js +1 -1
  97. package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
  98. package/dist/cjs/ic-select-with-multi.cjs.entry.js +20 -69
  99. package/dist/cjs/ic-select-with-multi.cjs.entry.js.map +1 -1
  100. package/dist/cjs/ic-side-navigation.cjs.entry.js +8 -9
  101. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  102. package/dist/cjs/ic-skeleton.cjs.entry.js +17 -37
  103. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  104. package/dist/cjs/ic-status-tag.cjs.entry.js +7 -15
  105. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  106. package/dist/cjs/ic-step.cjs.entry.js +42 -43
  107. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  108. package/dist/cjs/ic-stepper.cjs.entry.js +45 -24
  109. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  110. package/dist/cjs/ic-switch.cjs.entry.js +7 -9
  111. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  112. package/dist/cjs/ic-tab-context.cjs.entry.js +35 -18
  113. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  114. package/dist/cjs/ic-tab-group.cjs.entry.js +25 -11
  115. package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
  116. package/dist/cjs/ic-tab-panel.cjs.entry.js +6 -13
  117. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  118. package/dist/cjs/ic-tab.cjs.entry.js +10 -9
  119. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  120. package/dist/cjs/ic-theme.cjs.entry.js +39 -25
  121. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  122. package/dist/cjs/ic-toast-region.cjs.entry.js +6 -7
  123. package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
  124. package/dist/cjs/ic-toast.cjs.entry.js +88 -35
  125. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  126. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +17 -17
  127. package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
  128. package/dist/cjs/ic-toggle-button.cjs.entry.js +15 -14
  129. package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
  130. package/dist/cjs/ic-top-navigation.cjs.entry.js +62 -86
  131. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  132. package/dist/cjs/ic-tree-item.cjs.entry.js +241 -0
  133. package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -0
  134. package/dist/cjs/ic-tree-view.cjs.entry.js +203 -0
  135. package/dist/cjs/ic-tree-view.cjs.entry.js.map +1 -0
  136. package/dist/cjs/ic-typography.cjs.entry.js +55 -19
  137. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  138. package/dist/cjs/index-4cf27b16.js +38 -18
  139. package/dist/cjs/loader.cjs.js +1 -1
  140. package/dist/collection/assets/arrow-dropdown.svg +3 -0
  141. package/dist/collection/assets/calendar.svg +3 -0
  142. package/dist/collection/collection-manifest.json +9 -3
  143. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.css +661 -0
  144. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js +373 -0
  145. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js.map +1 -0
  146. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.types.js +2 -0
  147. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.types.js.map +1 -0
  148. package/dist/collection/components/ic-card-horizontal/test/basic/ic-card-horizontal.spec.js +130 -0
  149. package/dist/collection/components/ic-card-horizontal/test/basic/ic-card-horizontal.spec.js.map +1 -0
  150. package/dist/collection/components/ic-data-table/ic-data-table.css +155 -10
  151. package/dist/collection/components/ic-data-table/ic-data-table.js +1174 -90
  152. package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
  153. package/dist/collection/components/ic-data-table/ic-data-table.types.js.map +1 -1
  154. package/dist/collection/components/ic-data-table/story-data.js +758 -40
  155. package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
  156. package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js +339 -3
  157. package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js.map +1 -1
  158. package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.css +93 -0
  159. package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js +160 -0
  160. package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js.map +1 -0
  161. package/dist/collection/components/ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.js +11 -0
  162. package/dist/collection/components/ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.js.map +1 -0
  163. package/dist/collection/components/ic-data-table-title-bar/test/basic/ic-data-table-title-bar.spec.js +70 -0
  164. package/dist/collection/components/ic-data-table-title-bar/test/basic/ic-data-table-title-bar.spec.js.map +1 -0
  165. package/dist/collection/components/ic-date-input/ic-date-input.css +560 -0
  166. package/dist/collection/components/ic-date-input/ic-date-input.js +1775 -0
  167. package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -0
  168. package/dist/collection/components/ic-date-input/story-data.js +28 -0
  169. package/dist/collection/components/ic-date-input/story-data.js.map +1 -0
  170. package/dist/collection/components/ic-date-input/test/basic/ic-date-input.spec.js +1158 -0
  171. package/dist/collection/components/ic-date-input/test/basic/ic-date-input.spec.js.map +1 -0
  172. package/dist/collection/components/ic-date-input/test/helpers/ic-date-input.js +42 -0
  173. package/dist/collection/components/ic-date-input/test/helpers/ic-date-input.js.map +1 -0
  174. package/dist/collection/components/ic-date-picker/ic-date-picker.css +880 -0
  175. package/dist/collection/components/ic-date-picker/ic-date-picker.js +1566 -0
  176. package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -0
  177. package/dist/collection/components/ic-date-picker/ic-day-button.js +36 -0
  178. package/dist/collection/components/ic-date-picker/ic-day-button.js.map +1 -0
  179. package/dist/collection/components/ic-date-picker/ic-month-picker.js +29 -0
  180. package/dist/collection/components/ic-date-picker/ic-month-picker.js.map +1 -0
  181. package/dist/collection/components/ic-date-picker/ic-year-picker.js +39 -0
  182. package/dist/collection/components/ic-date-picker/ic-year-picker.js.map +1 -0
  183. package/dist/collection/components/ic-date-picker/story-data.js +148 -0
  184. package/dist/collection/components/ic-date-picker/story-data.js.map +1 -0
  185. package/dist/collection/components/ic-date-picker/test/a11y/ic-date-picker.test.a11y.js +13 -0
  186. package/dist/collection/components/ic-date-picker/test/a11y/ic-date-picker.test.a11y.js.map +1 -0
  187. package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker-utils.spec.js +207 -0
  188. package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker-utils.spec.js.map +1 -0
  189. package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker.spec.js +1030 -0
  190. package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker.spec.js.map +1 -0
  191. package/dist/collection/components/ic-menu-with-multi/ic-menu.css +25 -14
  192. package/dist/collection/components/ic-menu-with-multi/ic-menu.js +189 -71
  193. package/dist/collection/components/ic-menu-with-multi/ic-menu.js.map +1 -1
  194. package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js +229 -52
  195. package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js.map +1 -1
  196. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.css +1 -1
  197. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +173 -158
  198. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
  199. package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js +56 -11
  200. package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js.map +1 -1
  201. package/dist/collection/components/ic-select-with-multi/ic-select.css +14 -12
  202. package/dist/collection/components/ic-select-with-multi/ic-select.js +18 -147
  203. package/dist/collection/components/ic-select-with-multi/ic-select.js.map +1 -1
  204. package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.spec.js +7 -7
  205. package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.spec.js.map +1 -1
  206. package/dist/collection/components/ic-tree-item/ic-tree-item.css +172 -0
  207. package/dist/collection/components/ic-tree-item/ic-tree-item.js +592 -0
  208. package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -0
  209. package/dist/collection/components/ic-tree-item/test/basic/ic-tree-item.spec.js +114 -0
  210. package/dist/collection/components/ic-tree-item/test/basic/ic-tree-item.spec.js.map +1 -0
  211. package/dist/collection/components/ic-tree-view/ic-tree-view.css +59 -0
  212. package/dist/collection/components/ic-tree-view/ic-tree-view.js +296 -0
  213. package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -0
  214. package/dist/collection/components/ic-tree-view/test/basic/ic-tree-view.spec.js +85 -0
  215. package/dist/collection/components/ic-tree-view/test/basic/ic-tree-view.spec.js.map +1 -0
  216. package/dist/collection/utils/constants.js +55 -0
  217. package/dist/collection/utils/constants.js.map +1 -1
  218. package/dist/collection/utils/date-helpers.js +133 -0
  219. package/dist/collection/utils/date-helpers.js.map +1 -0
  220. package/dist/collection/utils/helpers.js +302 -10
  221. package/dist/collection/utils/helpers.js.map +1 -1
  222. package/dist/collection/utils/types.js +45 -0
  223. package/dist/collection/utils/types.js.map +1 -1
  224. package/dist/components/helpers.js +90 -91
  225. package/dist/components/helpers.js.map +1 -1
  226. package/dist/components/helpers2.js +197 -12
  227. package/dist/components/helpers2.js.map +1 -1
  228. package/dist/components/ic-accordion-group.js +39 -13
  229. package/dist/components/ic-accordion-group.js.map +1 -1
  230. package/dist/components/ic-accordion.js +6 -6
  231. package/dist/components/ic-accordion.js.map +1 -1
  232. package/dist/components/ic-alert.js +132 -1
  233. package/dist/components/ic-alert.js.map +1 -1
  234. package/dist/components/ic-back-to-top.js +37 -8
  235. package/dist/components/ic-back-to-top.js.map +1 -1
  236. package/dist/components/ic-badge.js +75 -121
  237. package/dist/components/ic-badge.js.map +1 -1
  238. package/dist/components/ic-breadcrumb-group.js +42 -10
  239. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  240. package/dist/components/ic-breadcrumb2.js +10 -7
  241. package/dist/components/ic-breadcrumb2.js.map +1 -1
  242. package/dist/components/ic-button2.js +74 -102
  243. package/dist/components/ic-button2.js.map +1 -1
  244. package/dist/components/ic-card-horizontal.d.ts +11 -0
  245. package/dist/components/ic-card-horizontal.js +167 -0
  246. package/dist/components/ic-card-horizontal.js.map +1 -0
  247. package/dist/components/ic-card-vertical.js +194 -0
  248. package/dist/components/ic-card-vertical.js.map +1 -0
  249. package/dist/components/ic-checkbox-group.js +31 -21
  250. package/dist/components/ic-checkbox-group.js.map +1 -1
  251. package/dist/components/ic-checkbox.js +52 -47
  252. package/dist/components/ic-checkbox.js.map +1 -1
  253. package/dist/components/ic-chip.js +45 -31
  254. package/dist/components/ic-chip.js.map +1 -1
  255. package/dist/components/ic-classification-banner.js +14 -5
  256. package/dist/components/ic-classification-banner.js.map +1 -1
  257. package/dist/components/ic-data-list.js +56 -0
  258. package/dist/components/ic-data-list.js.map +1 -0
  259. package/dist/components/ic-data-row.js +14 -13
  260. package/dist/components/ic-data-row.js.map +1 -1
  261. package/dist/components/ic-data-table-title-bar.d.ts +11 -0
  262. package/dist/components/ic-data-table-title-bar.js +136 -0
  263. package/dist/components/ic-data-table-title-bar.js.map +1 -0
  264. package/dist/components/ic-data-table.js +841 -72
  265. package/dist/components/ic-data-table.js.map +1 -1
  266. package/dist/components/ic-date-input.d.ts +11 -0
  267. package/dist/components/ic-date-input.js +8 -0
  268. package/dist/components/ic-date-input.js.map +1 -0
  269. package/dist/components/ic-date-input2.js +1344 -0
  270. package/dist/components/ic-date-input2.js.map +1 -0
  271. package/dist/components/ic-date-picker.d.ts +11 -0
  272. package/dist/components/ic-date-picker.js +1194 -0
  273. package/dist/components/ic-date-picker.js.map +1 -0
  274. package/dist/components/ic-dialog.js +29 -115
  275. package/dist/components/ic-dialog.js.map +1 -1
  276. package/dist/components/ic-divider2.js +1 -2
  277. package/dist/components/ic-divider2.js.map +1 -1
  278. package/dist/components/ic-empty-state.js +1 -57
  279. package/dist/components/ic-empty-state.js.map +1 -1
  280. package/dist/components/ic-empty-state2.js +80 -0
  281. package/dist/components/ic-empty-state2.js.map +1 -0
  282. package/dist/components/ic-footer-link-group.js +10 -10
  283. package/dist/components/ic-footer-link-group.js.map +1 -1
  284. package/dist/components/ic-footer-link.js +13 -8
  285. package/dist/components/ic-footer-link.js.map +1 -1
  286. package/dist/components/ic-footer.js +9 -10
  287. package/dist/components/ic-footer.js.map +1 -1
  288. package/dist/components/ic-hero.js +28 -14
  289. package/dist/components/ic-hero.js.map +1 -1
  290. package/dist/components/ic-horizontal-scroll2.js +6 -8
  291. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  292. package/dist/components/ic-input-component-container2.js +26 -21
  293. package/dist/components/ic-input-component-container2.js.map +1 -1
  294. package/dist/components/ic-input-label2.js +9 -11
  295. package/dist/components/ic-input-label2.js.map +1 -1
  296. package/dist/components/ic-input-validation2.js +4 -5
  297. package/dist/components/ic-input-validation2.js.map +1 -1
  298. package/dist/components/ic-link2.js +54 -27
  299. package/dist/components/ic-link2.js.map +1 -1
  300. package/dist/components/ic-loading-indicator2.js +23 -19
  301. package/dist/components/ic-loading-indicator2.js.map +1 -1
  302. package/dist/components/ic-menu-group.js +2 -2
  303. package/dist/components/ic-menu-group.js.map +1 -1
  304. package/dist/components/ic-menu-item2.js +6 -12
  305. package/dist/components/ic-menu-item2.js.map +1 -1
  306. package/dist/components/ic-menu2.js +15 -20
  307. package/dist/components/ic-menu2.js.map +1 -1
  308. package/dist/components/ic-menu3.js +187 -49
  309. package/dist/components/ic-menu3.js.map +1 -1
  310. package/dist/components/ic-navigation-button.js +28 -8
  311. package/dist/components/ic-navigation-button.js.map +1 -1
  312. package/dist/components/ic-navigation-group.js +23 -20
  313. package/dist/components/ic-navigation-group.js.map +1 -1
  314. package/dist/components/ic-navigation-item.js +33 -37
  315. package/dist/components/ic-navigation-item.js.map +1 -1
  316. package/dist/components/ic-navigation-menu2.js +3 -3
  317. package/dist/components/ic-navigation-menu2.js.map +1 -1
  318. package/dist/components/ic-page-header.js +9 -11
  319. package/dist/components/ic-page-header.js.map +1 -1
  320. package/dist/components/ic-pagination-bar2.js +154 -143
  321. package/dist/components/ic-pagination-bar2.js.map +1 -1
  322. package/dist/components/ic-pagination-item2.js +22 -12
  323. package/dist/components/ic-pagination-item2.js.map +1 -1
  324. package/dist/components/ic-pagination2.js +50 -33
  325. package/dist/components/ic-pagination2.js.map +1 -1
  326. package/dist/components/ic-popover-menu.js +15 -20
  327. package/dist/components/ic-popover-menu.js.map +1 -1
  328. package/dist/components/ic-radio-group.js +76 -51
  329. package/dist/components/ic-radio-group.js.map +1 -1
  330. package/dist/components/ic-radio-option.js +47 -60
  331. package/dist/components/ic-radio-option.js.map +1 -1
  332. package/dist/components/ic-search-bar.js +21 -29
  333. package/dist/components/ic-search-bar.js.map +1 -1
  334. package/dist/components/ic-section-container2.js +1 -1
  335. package/dist/components/ic-section-container2.js.map +1 -1
  336. package/dist/components/ic-select-with-multi.js +15 -71
  337. package/dist/components/ic-select-with-multi.js.map +1 -1
  338. package/dist/components/ic-select2.js +59 -42
  339. package/dist/components/ic-select2.js.map +1 -1
  340. package/dist/components/ic-side-navigation.js +8 -9
  341. package/dist/components/ic-side-navigation.js.map +1 -1
  342. package/dist/components/ic-skeleton.js +18 -43
  343. package/dist/components/ic-skeleton.js.map +1 -1
  344. package/dist/components/ic-status-tag.js +7 -15
  345. package/dist/components/ic-status-tag.js.map +1 -1
  346. package/dist/components/ic-step.js +48 -48
  347. package/dist/components/ic-step.js.map +1 -1
  348. package/dist/components/ic-stepper.js +49 -23
  349. package/dist/components/ic-stepper.js.map +1 -1
  350. package/dist/components/ic-switch.js +7 -9
  351. package/dist/components/ic-switch.js.map +1 -1
  352. package/dist/components/ic-tab-context.js +40 -20
  353. package/dist/components/ic-tab-context.js.map +1 -1
  354. package/dist/components/ic-tab-group.js +27 -13
  355. package/dist/components/ic-tab-group.js.map +1 -1
  356. package/dist/components/ic-tab-panel.js +9 -16
  357. package/dist/components/ic-tab-panel.js.map +1 -1
  358. package/dist/components/ic-tab.js +12 -10
  359. package/dist/components/ic-tab.js.map +1 -1
  360. package/dist/components/ic-text-field2.js +104 -113
  361. package/dist/components/ic-text-field2.js.map +1 -1
  362. package/dist/components/ic-theme.js +45 -28
  363. package/dist/components/ic-theme.js.map +1 -1
  364. package/dist/components/ic-toast-region.js +7 -9
  365. package/dist/components/ic-toast-region.js.map +1 -1
  366. package/dist/components/ic-toast.js +93 -36
  367. package/dist/components/ic-toast.js.map +1 -1
  368. package/dist/components/ic-toggle-button-group.js +17 -17
  369. package/dist/components/ic-toggle-button-group.js.map +1 -1
  370. package/dist/components/ic-toggle-button.js +16 -14
  371. package/dist/components/ic-toggle-button.js.map +1 -1
  372. package/dist/components/ic-tooltip2.js +31 -9
  373. package/dist/components/ic-tooltip2.js.map +1 -1
  374. package/dist/components/ic-top-navigation.js +63 -87
  375. package/dist/components/ic-top-navigation.js.map +1 -1
  376. package/dist/components/ic-tree-item.d.ts +11 -0
  377. package/dist/components/ic-tree-item.js +286 -0
  378. package/dist/components/ic-tree-item.js.map +1 -0
  379. package/dist/components/ic-tree-view.d.ts +11 -0
  380. package/dist/components/ic-tree-view.js +237 -0
  381. package/dist/components/ic-tree-view.js.map +1 -0
  382. package/dist/components/ic-typography2.js +62 -21
  383. package/dist/components/ic-typography2.js.map +1 -1
  384. package/dist/core/core.css +38 -20
  385. package/dist/core/core.esm.js +1 -1
  386. package/dist/core/core.esm.js.map +1 -1
  387. package/dist/core/p-06eeb7f2.entry.js +2 -0
  388. package/dist/core/p-06eeb7f2.entry.js.map +1 -0
  389. package/dist/core/p-0922c552.entry.js +2 -0
  390. package/dist/core/p-0922c552.entry.js.map +1 -0
  391. package/dist/core/p-0bc0e852.entry.js +2 -0
  392. package/dist/core/p-0bc0e852.entry.js.map +1 -0
  393. package/dist/core/p-108a9029.entry.js +2 -0
  394. package/dist/core/p-108a9029.entry.js.map +1 -0
  395. package/dist/core/p-13100d3c.entry.js +2 -0
  396. package/dist/core/p-13100d3c.entry.js.map +1 -0
  397. package/dist/core/p-1769df1d.entry.js +2 -0
  398. package/dist/core/p-1769df1d.entry.js.map +1 -0
  399. package/dist/core/p-202bc922.entry.js +2 -0
  400. package/dist/core/p-202bc922.entry.js.map +1 -0
  401. package/dist/core/p-266341f5.entry.js +2 -0
  402. package/dist/core/p-266341f5.entry.js.map +1 -0
  403. package/dist/core/p-297e99cf.js +2 -0
  404. package/dist/core/p-297e99cf.js.map +1 -0
  405. package/dist/core/p-306def43.entry.js +2 -0
  406. package/dist/core/p-306def43.entry.js.map +1 -0
  407. package/dist/core/p-30b046b2.entry.js +2 -0
  408. package/dist/core/p-30b046b2.entry.js.map +1 -0
  409. package/dist/core/p-33dd24eb.js +2 -0
  410. package/dist/core/p-33dd24eb.js.map +1 -0
  411. package/dist/core/p-3778cc5e.entry.js +2 -0
  412. package/dist/core/p-3778cc5e.entry.js.map +1 -0
  413. package/dist/core/p-383a5a76.entry.js +2 -0
  414. package/dist/core/p-383a5a76.entry.js.map +1 -0
  415. package/dist/core/p-3a0510e2.entry.js +2 -0
  416. package/dist/core/p-3a0510e2.entry.js.map +1 -0
  417. package/dist/core/p-3ace51f5.entry.js +2 -0
  418. package/dist/core/p-3ace51f5.entry.js.map +1 -0
  419. package/dist/core/p-3ef28704.entry.js +2 -0
  420. package/dist/core/p-3ef28704.entry.js.map +1 -0
  421. package/dist/core/p-3f0391c1.entry.js +2 -0
  422. package/dist/core/p-3f0391c1.entry.js.map +1 -0
  423. package/dist/core/p-41fecc61.entry.js +2 -0
  424. package/dist/core/p-41fecc61.entry.js.map +1 -0
  425. package/dist/core/p-46cb94a2.entry.js +2 -0
  426. package/dist/core/p-46cb94a2.entry.js.map +1 -0
  427. package/dist/core/p-4e67f127.entry.js +2 -0
  428. package/dist/core/p-4e67f127.entry.js.map +1 -0
  429. package/dist/core/p-505250cf.entry.js +2 -0
  430. package/dist/core/p-505250cf.entry.js.map +1 -0
  431. package/dist/core/p-50e48f4d.entry.js +2 -0
  432. package/dist/core/p-50e48f4d.entry.js.map +1 -0
  433. package/dist/core/p-56e7459a.entry.js +2 -0
  434. package/dist/core/p-56e7459a.entry.js.map +1 -0
  435. package/dist/core/p-59028160.entry.js +2 -0
  436. package/dist/core/p-59028160.entry.js.map +1 -0
  437. package/dist/core/p-5cfb5821.entry.js +2 -0
  438. package/dist/core/p-5cfb5821.entry.js.map +1 -0
  439. package/dist/core/p-5e6fd734.entry.js +2 -0
  440. package/dist/core/p-5e6fd734.entry.js.map +1 -0
  441. package/dist/core/p-5f313e1a.entry.js +2 -0
  442. package/dist/core/p-5f313e1a.entry.js.map +1 -0
  443. package/dist/core/{p-c2b5e7b1.entry.js → p-5f5403e2.entry.js} +2 -2
  444. package/dist/core/{p-c2b5e7b1.entry.js.map → p-5f5403e2.entry.js.map} +1 -1
  445. package/dist/core/p-710c6a42.entry.js +2 -0
  446. package/dist/core/p-710c6a42.entry.js.map +1 -0
  447. package/dist/core/p-73b40c79.entry.js +2 -0
  448. package/dist/core/p-73b40c79.entry.js.map +1 -0
  449. package/dist/core/p-77a32de5.entry.js +2 -0
  450. package/dist/core/p-77a32de5.entry.js.map +1 -0
  451. package/dist/core/p-7a9de008.entry.js +2 -0
  452. package/dist/core/p-7a9de008.entry.js.map +1 -0
  453. package/dist/core/p-801414e2.entry.js +2 -0
  454. package/dist/core/p-801414e2.entry.js.map +1 -0
  455. package/dist/core/p-82ba744d.entry.js +2 -0
  456. package/dist/core/p-82ba744d.entry.js.map +1 -0
  457. package/dist/core/p-897b8d16.entry.js +2 -0
  458. package/dist/core/p-897b8d16.entry.js.map +1 -0
  459. package/dist/core/p-9397b15b.js +2 -0
  460. package/dist/core/p-9397b15b.js.map +1 -0
  461. package/dist/core/p-9af6adb1.entry.js +2 -0
  462. package/dist/core/p-9af6adb1.entry.js.map +1 -0
  463. package/dist/core/p-9b54feca.entry.js +2 -0
  464. package/dist/core/p-9b54feca.entry.js.map +1 -0
  465. package/dist/core/{p-356b8a4c.entry.js → p-9f3cf053.entry.js} +2 -2
  466. package/dist/core/{p-356b8a4c.entry.js.map → p-9f3cf053.entry.js.map} +1 -1
  467. package/dist/core/p-a57cd616.entry.js +2 -0
  468. package/dist/core/p-a57cd616.entry.js.map +1 -0
  469. package/dist/core/p-a5eaed1a.entry.js +2 -0
  470. package/dist/core/p-a5eaed1a.entry.js.map +1 -0
  471. package/dist/core/p-a78cf2cb.entry.js +2 -0
  472. package/dist/core/p-a78cf2cb.entry.js.map +1 -0
  473. package/dist/core/p-a91340b4.entry.js +2 -0
  474. package/dist/core/p-a91340b4.entry.js.map +1 -0
  475. package/dist/core/p-aee8d45b.entry.js +2 -0
  476. package/dist/core/p-aee8d45b.entry.js.map +1 -0
  477. package/dist/core/{p-452985d9.entry.js → p-b40ecaef.entry.js} +2 -2
  478. package/dist/core/p-b40ecaef.entry.js.map +1 -0
  479. package/dist/core/p-badd4c8d.entry.js +2 -0
  480. package/dist/core/p-badd4c8d.entry.js.map +1 -0
  481. package/dist/core/p-bf670360.entry.js +2 -0
  482. package/dist/core/{p-a434c3d4.entry.js.map → p-bf670360.entry.js.map} +1 -1
  483. package/dist/core/p-c033e7d6.entry.js +2 -0
  484. package/dist/core/p-c033e7d6.entry.js.map +1 -0
  485. package/dist/core/p-c07af2d8.entry.js +2 -0
  486. package/dist/core/p-c07af2d8.entry.js.map +1 -0
  487. package/dist/core/p-c21d0db8.entry.js +2 -0
  488. package/dist/core/p-c21d0db8.entry.js.map +1 -0
  489. package/dist/core/p-c678f73d.entry.js +2 -0
  490. package/dist/core/p-c678f73d.entry.js.map +1 -0
  491. package/dist/core/p-c6ae9bad.entry.js +2 -0
  492. package/dist/core/p-c6ae9bad.entry.js.map +1 -0
  493. package/dist/core/p-c6c1e08e.entry.js +2 -0
  494. package/dist/core/p-c6c1e08e.entry.js.map +1 -0
  495. package/dist/core/p-cb6cebdd.entry.js +2 -0
  496. package/dist/core/p-cb6cebdd.entry.js.map +1 -0
  497. package/dist/core/p-d03374fc.entry.js +2 -0
  498. package/dist/core/p-d03374fc.entry.js.map +1 -0
  499. package/dist/core/p-d16f364a.entry.js +2 -0
  500. package/dist/core/p-d16f364a.entry.js.map +1 -0
  501. package/dist/core/p-d239c33b.entry.js +2 -0
  502. package/dist/core/p-d239c33b.entry.js.map +1 -0
  503. package/dist/core/p-d8563643.entry.js +2 -0
  504. package/dist/core/p-d8563643.entry.js.map +1 -0
  505. package/dist/core/p-da40757f.entry.js +2 -0
  506. package/dist/core/p-da40757f.entry.js.map +1 -0
  507. package/dist/core/p-de052137.entry.js +2 -0
  508. package/dist/core/p-de052137.entry.js.map +1 -0
  509. package/dist/core/p-e5d99316.entry.js +2 -0
  510. package/dist/core/p-e5d99316.entry.js.map +1 -0
  511. package/dist/core/p-e89bb650.entry.js +2 -0
  512. package/dist/core/p-e89bb650.entry.js.map +1 -0
  513. package/dist/core/{p-baf81f30.entry.js → p-f1072c28.entry.js} +2 -2
  514. package/dist/core/{p-452985d9.entry.js.map → p-f1072c28.entry.js.map} +1 -1
  515. package/dist/core/p-f37df214.entry.js +2 -0
  516. package/dist/core/{p-c34848da.entry.js.map → p-f37df214.entry.js.map} +1 -1
  517. package/dist/core/p-f743b0eb.entry.js +2 -0
  518. package/dist/core/p-f743b0eb.entry.js.map +1 -0
  519. package/dist/core/p-f98b1afc.entry.js +2 -0
  520. package/dist/core/p-f98b1afc.entry.js.map +1 -0
  521. package/dist/core/p-fe13f1ba.entry.js +2 -0
  522. package/dist/core/p-fe13f1ba.entry.js.map +1 -0
  523. package/dist/esm/core.js +1 -1
  524. package/dist/esm/date-helpers-0e5e32a7.js +136 -0
  525. package/dist/esm/date-helpers-0e5e32a7.js.map +1 -0
  526. package/dist/esm/helpers-5bd2012a.js +368 -0
  527. package/dist/esm/helpers-5bd2012a.js.map +1 -0
  528. package/dist/esm/{helpers-12b4266a.js → helpers-dab8ddfe.js} +91 -92
  529. package/dist/esm/helpers-dab8ddfe.js.map +1 -0
  530. package/dist/esm/ic-accordion-group.entry.js +31 -9
  531. package/dist/esm/ic-accordion-group.entry.js.map +1 -1
  532. package/dist/esm/ic-accordion.entry.js +7 -8
  533. package/dist/esm/ic-accordion.entry.js.map +1 -1
  534. package/dist/esm/ic-alert.entry.js +27 -9
  535. package/dist/esm/ic-alert.entry.js.map +1 -1
  536. package/dist/esm/ic-back-to-top.entry.js +17 -8
  537. package/dist/esm/ic-back-to-top.entry.js.map +1 -1
  538. package/dist/esm/ic-badge.entry.js +67 -117
  539. package/dist/esm/ic-badge.entry.js.map +1 -1
  540. package/dist/esm/ic-breadcrumb-group.entry.js +37 -11
  541. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  542. package/dist/esm/ic-breadcrumb.entry.js +8 -7
  543. package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
  544. package/dist/esm/ic-button_3.entry.js +118 -125
  545. package/dist/esm/ic-button_3.entry.js.map +1 -1
  546. package/dist/esm/ic-card-horizontal.entry.js +127 -0
  547. package/dist/esm/ic-card-horizontal.entry.js.map +1 -0
  548. package/dist/esm/ic-card-vertical.entry.js +145 -0
  549. package/dist/esm/ic-card-vertical.entry.js.map +1 -0
  550. package/dist/esm/ic-checkbox-group.entry.js +27 -20
  551. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  552. package/dist/esm/ic-checkbox.entry.js +45 -40
  553. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  554. package/dist/esm/ic-chip.entry.js +40 -29
  555. package/dist/esm/ic-chip.entry.js.map +1 -1
  556. package/dist/esm/ic-classification-banner.entry.js +14 -5
  557. package/dist/esm/ic-classification-banner.entry.js.map +1 -1
  558. package/dist/esm/ic-data-list.entry.js +28 -0
  559. package/dist/esm/ic-data-list.entry.js.map +1 -0
  560. package/dist/esm/ic-data-row.entry.js +12 -12
  561. package/dist/esm/ic-data-row.entry.js.map +1 -1
  562. package/dist/esm/ic-data-table-title-bar.entry.js +53 -0
  563. package/dist/esm/ic-data-table-title-bar.entry.js.map +1 -0
  564. package/dist/esm/ic-data-table.entry.js +806 -66
  565. package/dist/esm/ic-data-table.entry.js.map +1 -1
  566. package/dist/esm/ic-date-input.entry.js +1106 -0
  567. package/dist/esm/ic-date-input.entry.js.map +1 -0
  568. package/dist/esm/ic-date-picker.entry.js +1065 -0
  569. package/dist/esm/ic-date-picker.entry.js.map +1 -0
  570. package/dist/esm/ic-dialog.entry.js +27 -101
  571. package/dist/esm/ic-dialog.entry.js.map +1 -1
  572. package/dist/esm/ic-divider.entry.js +1 -2
  573. package/dist/esm/ic-divider.entry.js.map +1 -1
  574. package/dist/esm/ic-empty-state_2.entry.js +312 -0
  575. package/dist/esm/ic-empty-state_2.entry.js.map +1 -0
  576. package/dist/esm/ic-footer-link-group.entry.js +9 -10
  577. package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
  578. package/dist/esm/ic-footer-link.entry.js +6 -8
  579. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  580. package/dist/esm/ic-footer.entry.js +9 -10
  581. package/dist/esm/ic-footer.entry.js.map +1 -1
  582. package/dist/esm/ic-hero.entry.js +28 -13
  583. package/dist/esm/ic-hero.entry.js.map +1 -1
  584. package/dist/esm/ic-horizontal-scroll.entry.js +6 -8
  585. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  586. package/dist/esm/ic-input-component-container_4.entry.js +149 -0
  587. package/dist/esm/ic-input-component-container_4.entry.js.map +1 -0
  588. package/dist/esm/ic-link.entry.js +52 -25
  589. package/dist/esm/ic-link.entry.js.map +1 -1
  590. package/dist/esm/ic-menu-group.entry.js +2 -3
  591. package/dist/esm/ic-menu-group.entry.js.map +1 -1
  592. package/dist/esm/ic-menu-item.entry.js +6 -13
  593. package/dist/esm/ic-menu-item.entry.js.map +1 -1
  594. package/dist/esm/ic-menu-with-multi.entry.js +186 -47
  595. package/dist/esm/ic-menu-with-multi.entry.js.map +1 -1
  596. package/dist/esm/{ic-input-component-container_3.entry.js → ic-menu.entry.js} +19 -86
  597. package/dist/esm/ic-menu.entry.js.map +1 -0
  598. package/dist/esm/ic-navigation-button.entry.js +28 -8
  599. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  600. package/dist/esm/ic-navigation-group.entry.js +23 -21
  601. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  602. package/dist/esm/ic-navigation-item.entry.js +33 -38
  603. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  604. package/dist/esm/ic-navigation-menu.entry.js +3 -4
  605. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  606. package/dist/esm/ic-page-header.entry.js +10 -12
  607. package/dist/esm/ic-page-header.entry.js.map +1 -1
  608. package/dist/esm/ic-pagination_4.entry.js +219 -178
  609. package/dist/esm/ic-pagination_4.entry.js.map +1 -1
  610. package/dist/esm/ic-popover-menu.entry.js +15 -21
  611. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  612. package/dist/esm/ic-radio-group.entry.js +75 -51
  613. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  614. package/dist/esm/ic-radio-option.entry.js +44 -53
  615. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  616. package/dist/esm/ic-search-bar.entry.js +19 -26
  617. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  618. package/dist/esm/ic-section-container.entry.js +1 -1
  619. package/dist/esm/ic-section-container.entry.js.map +1 -1
  620. package/dist/esm/ic-select-with-multi.entry.js +14 -63
  621. package/dist/esm/ic-select-with-multi.entry.js.map +1 -1
  622. package/dist/esm/ic-side-navigation.entry.js +8 -9
  623. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  624. package/dist/esm/ic-skeleton.entry.js +17 -37
  625. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  626. package/dist/esm/ic-status-tag.entry.js +7 -15
  627. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  628. package/dist/esm/ic-step.entry.js +42 -43
  629. package/dist/esm/ic-step.entry.js.map +1 -1
  630. package/dist/esm/ic-stepper.entry.js +45 -24
  631. package/dist/esm/ic-stepper.entry.js.map +1 -1
  632. package/dist/esm/ic-switch.entry.js +7 -9
  633. package/dist/esm/ic-switch.entry.js.map +1 -1
  634. package/dist/esm/ic-tab-context.entry.js +35 -18
  635. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  636. package/dist/esm/ic-tab-group.entry.js +25 -11
  637. package/dist/esm/ic-tab-group.entry.js.map +1 -1
  638. package/dist/esm/ic-tab-panel.entry.js +6 -13
  639. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  640. package/dist/esm/ic-tab.entry.js +10 -9
  641. package/dist/esm/ic-tab.entry.js.map +1 -1
  642. package/dist/esm/ic-theme.entry.js +39 -25
  643. package/dist/esm/ic-theme.entry.js.map +1 -1
  644. package/dist/esm/ic-toast-region.entry.js +6 -7
  645. package/dist/esm/ic-toast-region.entry.js.map +1 -1
  646. package/dist/esm/ic-toast.entry.js +88 -35
  647. package/dist/esm/ic-toast.entry.js.map +1 -1
  648. package/dist/esm/ic-toggle-button-group.entry.js +17 -17
  649. package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
  650. package/dist/esm/ic-toggle-button.entry.js +15 -14
  651. package/dist/esm/ic-toggle-button.entry.js.map +1 -1
  652. package/dist/esm/ic-top-navigation.entry.js +62 -86
  653. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  654. package/dist/esm/ic-tree-item.entry.js +237 -0
  655. package/dist/esm/ic-tree-item.entry.js.map +1 -0
  656. package/dist/esm/ic-tree-view.entry.js +199 -0
  657. package/dist/esm/ic-tree-view.entry.js.map +1 -0
  658. package/dist/esm/ic-typography.entry.js +56 -20
  659. package/dist/esm/ic-typography.entry.js.map +1 -1
  660. package/dist/esm/index-93509377.js +38 -18
  661. package/dist/esm/loader.js +1 -1
  662. package/dist/types/components/ic-card-horizontal/ic-card-horizontal.d.ts +71 -0
  663. package/dist/types/components/ic-card-horizontal/ic-card-horizontal.types.d.ts +1 -0
  664. package/dist/types/components/ic-data-table/ic-data-table.d.ts +176 -19
  665. package/dist/types/components/ic-data-table/ic-data-table.types.d.ts +30 -0
  666. package/dist/types/components/ic-data-table/story-data.d.ts +236 -3
  667. package/dist/types/components/ic-data-table-title-bar/ic-data-table-title-bar.d.ts +36 -0
  668. package/dist/types/components/ic-date-input/ic-date-input.d.ts +259 -0
  669. package/dist/types/components/ic-date-input/story-data.d.ts +1 -0
  670. package/dist/types/components/ic-date-input/test/helpers/ic-date-input.d.ts +23 -0
  671. package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +240 -0
  672. package/dist/types/components/ic-date-picker/ic-day-button.d.ts +16 -0
  673. package/dist/types/components/ic-date-picker/ic-month-picker.d.ts +14 -0
  674. package/dist/types/components/ic-date-picker/ic-year-picker.d.ts +16 -0
  675. package/dist/types/components/ic-date-picker/story-data.d.ts +22 -0
  676. package/dist/types/components/ic-date-picker/test/a11y/ic-date-picker.test.a11y.d.ts +1 -0
  677. package/dist/types/components/ic-menu-with-multi/ic-menu.d.ts +12 -6
  678. package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +37 -18
  679. package/dist/types/components/ic-select-with-multi/ic-select.d.ts +3 -33
  680. package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +95 -0
  681. package/dist/types/components/ic-tree-view/ic-tree-view.d.ts +40 -0
  682. package/dist/types/components.d.ts +978 -114
  683. package/dist/types/interface.d.ts +1 -0
  684. package/dist/types/utils/constants.d.ts +37 -0
  685. package/dist/types/utils/date-helpers.d.ts +22 -0
  686. package/dist/types/utils/helpers.d.ts +92 -11
  687. package/dist/types/utils/types.d.ts +108 -1
  688. package/hydrate/index.js +6683 -2381
  689. package/package.json +6 -6
  690. package/dist/cjs/helpers-93c5fc92.js.map +0 -1
  691. package/dist/cjs/helpers-b525d45a.js.map +0 -1
  692. package/dist/cjs/ic-card.cjs.entry.js +0 -126
  693. package/dist/cjs/ic-card.cjs.entry.js.map +0 -1
  694. package/dist/cjs/ic-data-entity.cjs.entry.js +0 -29
  695. package/dist/cjs/ic-data-entity.cjs.entry.js.map +0 -1
  696. package/dist/cjs/ic-empty-state.cjs.entry.js +0 -38
  697. package/dist/cjs/ic-empty-state.cjs.entry.js.map +0 -1
  698. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +0 -1
  699. package/dist/cjs/ic-input-label_2.cjs.entry.js +0 -86
  700. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +0 -1
  701. package/dist/cjs/ic-pagination-bar.cjs.entry.js +0 -269
  702. package/dist/cjs/ic-pagination-bar.cjs.entry.js.map +0 -1
  703. package/dist/cjs/types-17dba796.js +0 -16
  704. package/dist/cjs/types-17dba796.js.map +0 -1
  705. package/dist/collection/components/ic-pagination/ic-pagination.types.js +0 -2
  706. package/dist/collection/components/ic-pagination/ic-pagination.types.js.map +0 -1
  707. package/dist/collection/components/ic-select-with-multi/test/a11y/ic-select.test.a11y.js +0 -146
  708. package/dist/collection/components/ic-select-with-multi/test/a11y/ic-select.test.a11y.js.map +0 -1
  709. package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.e2e.js +0 -2040
  710. package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.e2e.js.map +0 -1
  711. package/dist/components/ic-alert2.js +0 -117
  712. package/dist/components/ic-alert2.js.map +0 -1
  713. package/dist/components/ic-card.js +0 -171
  714. package/dist/components/ic-card.js.map +0 -1
  715. package/dist/components/ic-data-entity.js +0 -53
  716. package/dist/components/ic-data-entity.js.map +0 -1
  717. package/dist/components/types.js +0 -16
  718. package/dist/components/types.js.map +0 -1
  719. package/dist/core/p-045359e1.entry.js +0 -2
  720. package/dist/core/p-045359e1.entry.js.map +0 -1
  721. package/dist/core/p-10fb4c46.entry.js +0 -2
  722. package/dist/core/p-10fb4c46.entry.js.map +0 -1
  723. package/dist/core/p-169bfa51.entry.js +0 -2
  724. package/dist/core/p-169bfa51.entry.js.map +0 -1
  725. package/dist/core/p-1ca332ca.entry.js +0 -2
  726. package/dist/core/p-1ca332ca.entry.js.map +0 -1
  727. package/dist/core/p-204ace96.entry.js +0 -2
  728. package/dist/core/p-204ace96.entry.js.map +0 -1
  729. package/dist/core/p-21150122.entry.js +0 -2
  730. package/dist/core/p-21150122.entry.js.map +0 -1
  731. package/dist/core/p-2eac7dcc.entry.js +0 -2
  732. package/dist/core/p-2eac7dcc.entry.js.map +0 -1
  733. package/dist/core/p-3803a5b5.entry.js +0 -2
  734. package/dist/core/p-3803a5b5.entry.js.map +0 -1
  735. package/dist/core/p-4753bac8.entry.js +0 -2
  736. package/dist/core/p-4753bac8.entry.js.map +0 -1
  737. package/dist/core/p-4baa0916.entry.js +0 -2
  738. package/dist/core/p-4baa0916.entry.js.map +0 -1
  739. package/dist/core/p-4f413fc0.entry.js +0 -2
  740. package/dist/core/p-4f413fc0.entry.js.map +0 -1
  741. package/dist/core/p-595be57d.entry.js +0 -2
  742. package/dist/core/p-595be57d.entry.js.map +0 -1
  743. package/dist/core/p-5ae93c16.entry.js +0 -2
  744. package/dist/core/p-5ae93c16.entry.js.map +0 -1
  745. package/dist/core/p-5e0c830b.entry.js +0 -2
  746. package/dist/core/p-5e0c830b.entry.js.map +0 -1
  747. package/dist/core/p-624d4f5f.entry.js +0 -2
  748. package/dist/core/p-624d4f5f.entry.js.map +0 -1
  749. package/dist/core/p-6933f8e9.entry.js +0 -2
  750. package/dist/core/p-6933f8e9.entry.js.map +0 -1
  751. package/dist/core/p-6c3044b6.entry.js +0 -2
  752. package/dist/core/p-6c3044b6.entry.js.map +0 -1
  753. package/dist/core/p-73be1251.entry.js +0 -2
  754. package/dist/core/p-73be1251.entry.js.map +0 -1
  755. package/dist/core/p-75dac3d1.entry.js +0 -2
  756. package/dist/core/p-75dac3d1.entry.js.map +0 -1
  757. package/dist/core/p-76915584.entry.js +0 -2
  758. package/dist/core/p-76915584.entry.js.map +0 -1
  759. package/dist/core/p-7ef8d616.entry.js +0 -2
  760. package/dist/core/p-7ef8d616.entry.js.map +0 -1
  761. package/dist/core/p-81ddc39d.entry.js +0 -2
  762. package/dist/core/p-81ddc39d.entry.js.map +0 -1
  763. package/dist/core/p-869954a2.entry.js +0 -2
  764. package/dist/core/p-869954a2.entry.js.map +0 -1
  765. package/dist/core/p-88d54b72.entry.js +0 -2
  766. package/dist/core/p-88d54b72.entry.js.map +0 -1
  767. package/dist/core/p-8b08d8fe.entry.js +0 -2
  768. package/dist/core/p-8b08d8fe.entry.js.map +0 -1
  769. package/dist/core/p-917c5721.entry.js +0 -2
  770. package/dist/core/p-917c5721.entry.js.map +0 -1
  771. package/dist/core/p-942282cd.entry.js +0 -2
  772. package/dist/core/p-942282cd.entry.js.map +0 -1
  773. package/dist/core/p-9777ebb1.entry.js +0 -2
  774. package/dist/core/p-9777ebb1.entry.js.map +0 -1
  775. package/dist/core/p-99cad6c2.js +0 -2
  776. package/dist/core/p-99cad6c2.js.map +0 -1
  777. package/dist/core/p-9caf19eb.js +0 -2
  778. package/dist/core/p-9caf19eb.js.map +0 -1
  779. package/dist/core/p-a0f8efb2.entry.js +0 -2
  780. package/dist/core/p-a0f8efb2.entry.js.map +0 -1
  781. package/dist/core/p-a31031a5.entry.js +0 -2
  782. package/dist/core/p-a31031a5.entry.js.map +0 -1
  783. package/dist/core/p-a434c3d4.entry.js +0 -2
  784. package/dist/core/p-a43c12cd.entry.js +0 -2
  785. package/dist/core/p-a43c12cd.entry.js.map +0 -1
  786. package/dist/core/p-a50c3b9e.entry.js +0 -2
  787. package/dist/core/p-a50c3b9e.entry.js.map +0 -1
  788. package/dist/core/p-ab09986c.entry.js +0 -2
  789. package/dist/core/p-ab09986c.entry.js.map +0 -1
  790. package/dist/core/p-ac4e40a7.entry.js +0 -2
  791. package/dist/core/p-ac4e40a7.entry.js.map +0 -1
  792. package/dist/core/p-b2aa3d7c.entry.js +0 -2
  793. package/dist/core/p-b2aa3d7c.entry.js.map +0 -1
  794. package/dist/core/p-b82dcc29.entry.js +0 -2
  795. package/dist/core/p-b82dcc29.entry.js.map +0 -1
  796. package/dist/core/p-ba86928c.entry.js +0 -2
  797. package/dist/core/p-ba86928c.entry.js.map +0 -1
  798. package/dist/core/p-baf81f30.entry.js.map +0 -1
  799. package/dist/core/p-c125b65a.entry.js +0 -2
  800. package/dist/core/p-c125b65a.entry.js.map +0 -1
  801. package/dist/core/p-c34848da.entry.js +0 -2
  802. package/dist/core/p-d8469ac0.entry.js +0 -2
  803. package/dist/core/p-d8469ac0.entry.js.map +0 -1
  804. package/dist/core/p-db9c03c0.entry.js +0 -2
  805. package/dist/core/p-db9c03c0.entry.js.map +0 -1
  806. package/dist/core/p-e0462b23.entry.js +0 -2
  807. package/dist/core/p-e0462b23.entry.js.map +0 -1
  808. package/dist/core/p-e0a94f2d.entry.js +0 -2
  809. package/dist/core/p-e0a94f2d.entry.js.map +0 -1
  810. package/dist/core/p-e189f1d0.entry.js +0 -2
  811. package/dist/core/p-e189f1d0.entry.js.map +0 -1
  812. package/dist/core/p-e3997d60.entry.js +0 -2
  813. package/dist/core/p-e3997d60.entry.js.map +0 -1
  814. package/dist/core/p-e79e0292.entry.js +0 -2
  815. package/dist/core/p-e79e0292.entry.js.map +0 -1
  816. package/dist/core/p-e834344e.entry.js +0 -2
  817. package/dist/core/p-e834344e.entry.js.map +0 -1
  818. package/dist/core/p-f14454b1.entry.js +0 -2
  819. package/dist/core/p-f14454b1.entry.js.map +0 -1
  820. package/dist/core/p-f3c840cd.entry.js +0 -2
  821. package/dist/core/p-f3c840cd.entry.js.map +0 -1
  822. package/dist/core/p-f6888309.entry.js +0 -2
  823. package/dist/core/p-f6888309.entry.js.map +0 -1
  824. package/dist/core/p-f74a8752.entry.js +0 -2
  825. package/dist/core/p-f74a8752.entry.js.map +0 -1
  826. package/dist/core/p-f7a14c01.entry.js +0 -2
  827. package/dist/core/p-f7a14c01.entry.js.map +0 -1
  828. package/dist/core/p-f843da01.entry.js +0 -2
  829. package/dist/core/p-f843da01.entry.js.map +0 -1
  830. package/dist/core/p-fc5611e2.entry.js +0 -2
  831. package/dist/core/p-fc5611e2.entry.js.map +0 -1
  832. package/dist/core/p-fd186591.js +0 -2
  833. package/dist/core/p-fd186591.js.map +0 -1
  834. package/dist/core/p-fde45b29.entry.js +0 -2
  835. package/dist/core/p-fde45b29.entry.js.map +0 -1
  836. package/dist/esm/helpers-12b4266a.js.map +0 -1
  837. package/dist/esm/helpers-5271897c.js +0 -183
  838. package/dist/esm/helpers-5271897c.js.map +0 -1
  839. package/dist/esm/ic-card.entry.js +0 -122
  840. package/dist/esm/ic-card.entry.js.map +0 -1
  841. package/dist/esm/ic-data-entity.entry.js +0 -25
  842. package/dist/esm/ic-data-entity.entry.js.map +0 -1
  843. package/dist/esm/ic-empty-state.entry.js +0 -34
  844. package/dist/esm/ic-empty-state.entry.js.map +0 -1
  845. package/dist/esm/ic-input-component-container_3.entry.js.map +0 -1
  846. package/dist/esm/ic-input-label_2.entry.js +0 -81
  847. package/dist/esm/ic-input-label_2.entry.js.map +0 -1
  848. package/dist/esm/ic-pagination-bar.entry.js +0 -265
  849. package/dist/esm/ic-pagination-bar.entry.js.map +0 -1
  850. package/dist/esm/types-f605c21c.js +0 -16
  851. package/dist/esm/types-f605c21c.js.map +0 -1
  852. package/dist/types/components/ic-pagination/ic-pagination.types.d.ts +0 -6
  853. /package/dist/types/components/{ic-select-with-multi/test/a11y/ic-select.test.a11y.d.ts → ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.d.ts} +0 -0
@@ -0,0 +1,1344 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { a as isEmptyString, s as stringEnumToArray, h as getInputDescribedByText, j as removeFormResetListener, k as addFormResetListener, o as onComponentRequiredPropUndefined, l as isNumeric, m as IcInformationStatus, n as renderHiddenInput, I as IcThemeForegroundEnum, q as IcDayNames, t as IcDateInputMonths } from './helpers2.js';
3
+ import { d as defineCustomElement$8 } from './ic-button2.js';
4
+ import { d as defineCustomElement$7 } from './ic-input-component-container2.js';
5
+ import { d as defineCustomElement$6 } from './ic-input-container2.js';
6
+ import { d as defineCustomElement$5 } from './ic-input-label2.js';
7
+ import { d as defineCustomElement$4 } from './ic-input-validation2.js';
8
+ import { d as defineCustomElement$3 } from './ic-loading-indicator2.js';
9
+ import { d as defineCustomElement$2 } from './ic-tooltip2.js';
10
+ import { d as defineCustomElement$1 } from './ic-typography2.js';
11
+
12
+ const isMonthFirstFormat = (dateString) => {
13
+ const monthFirstFormat = /^(0[1-9]|1[0-2])(\/|-)(0[1-9]|[12][0-9]|3[01])(\/|-)\d{4}$/;
14
+ return monthFirstFormat.test(dateString);
15
+ };
16
+ const isDayFirstFormat = (dateString) => {
17
+ const dayFirstFormat = /^(0[1-9]|[12][0-9]|3[01])(\/|-)(0[1-9]|1[0-2])(\/|-)\d{4}$/;
18
+ return dayFirstFormat.test(dateString);
19
+ };
20
+ const createDate = (date, dateFormat) => {
21
+ let newDate;
22
+ if (isDateOrEpoch(date)) {
23
+ newDate = typeof date === "string" ? new Date(date) : date;
24
+ }
25
+ else if (typeof date === "string") {
26
+ const dateArray = splitStringDate(date, dateFormat);
27
+ const year = Number(dateArray[0]);
28
+ const month = Number(dateArray[1]) - 1;
29
+ const day = Number(dateArray[2]);
30
+ newDate = new Date(year, month, day);
31
+ }
32
+ return newDate;
33
+ };
34
+ const isDateOrEpoch = (date) => {
35
+ return date instanceof Date || !isNaN(+new Date(+date));
36
+ };
37
+ const extractDateFromZuluDateTime = (zuluDateTime) => zuluDateTime.slice(0, zuluDateTime.indexOf("T"));
38
+ const splitStringDate = (date, dateFormat) => {
39
+ // returns an array where item 1 is year, item 2 is month, item 3 is day
40
+ if (date.includes("T") && date.includes("Z")) {
41
+ const nextDate = extractDateFromZuluDateTime(date);
42
+ return nextDate.split("-");
43
+ }
44
+ let newDate = [];
45
+ const dateWithSlashes = date.replace(/-/g, "/");
46
+ if (dateWithSlashes.split("/").length > 1) {
47
+ const dateParts = dateWithSlashes.split("/");
48
+ // pad any values to 2 characters
49
+ dateParts.forEach((d, i) => {
50
+ if (d.length === 1) {
51
+ dateParts[i] = convertToDoubleDigits(d);
52
+ }
53
+ });
54
+ if (dateParts[0].length === 4) {
55
+ newDate = [dateParts[0], dateParts[1], dateParts[2]];
56
+ }
57
+ else {
58
+ const newDateStr = dateParts.join("/");
59
+ const validDayFirst = isDayFirstFormat(newDateStr);
60
+ const validMonthFirst = isMonthFirstFormat(newDateStr);
61
+ if (validDayFirst && validMonthFirst) {
62
+ if (dateFormat.charAt(0) === "M") {
63
+ newDate = [dateParts[2], dateParts[0], dateParts[1]];
64
+ }
65
+ else {
66
+ newDate = [dateParts[2], dateParts[1], dateParts[0]];
67
+ }
68
+ }
69
+ else if (validMonthFirst) {
70
+ newDate = [dateParts[2], dateParts[0], dateParts[1]];
71
+ }
72
+ else {
73
+ newDate = [dateParts[2], dateParts[1], dateParts[0]];
74
+ }
75
+ }
76
+ }
77
+ return newDate;
78
+ };
79
+ const convertToDoubleDigits = (value) => {
80
+ if (+value < 10) {
81
+ return `0${value}`;
82
+ }
83
+ return value.toString();
84
+ };
85
+ const getWeekStart = (date, startDay) => {
86
+ const tmpDate = new Date(date);
87
+ const day = tmpDate.getDay();
88
+ const diff = (day < startDay ? 7 : 0) + day - startDay;
89
+ tmpDate.setDate(tmpDate.getDate() - diff);
90
+ return tmpDate;
91
+ };
92
+ const getWeekEnd = (date, startDay) => {
93
+ const d = new Date(date);
94
+ const day = d.getDay();
95
+ const diff = (day < startDay ? -7 : 0) + 6 - (day - startDay);
96
+ d.setDate(d.getDate() + diff);
97
+ return d;
98
+ };
99
+ const getMonthStart = (date) => {
100
+ return new Date(date.getFullYear(), date.getMonth(), 1);
101
+ };
102
+ const getMonthEnd = (date) => {
103
+ return new Date(date.getFullYear(), date.getMonth() + 1, 0);
104
+ };
105
+ /**
106
+ * Compare if two dates are equal exactly equal
107
+ */
108
+ const dateMatches = (a, b) => {
109
+ if (a === null || b === null) {
110
+ return false;
111
+ }
112
+ return (a.getFullYear() === b.getFullYear() &&
113
+ a.getMonth() === b.getMonth() &&
114
+ a.getDate() === b.getDate());
115
+ };
116
+ const clampDate = (date, min, max) => {
117
+ const time = date.getTime();
118
+ if (min !== null && time < min.getTime()) {
119
+ return min;
120
+ }
121
+ if (max !== null && time > max.getTime()) {
122
+ return max;
123
+ }
124
+ return date;
125
+ };
126
+ /**
127
+ * Compare if date is within specified range
128
+ */
129
+ const dateInRange = (date, min, max) => {
130
+ return clampDate(date, min, max) === date;
131
+ };
132
+ const yearInRange = (year, min, max) => {
133
+ let allowed = true;
134
+ if (year !== null) {
135
+ if (min !== null && year < min.getFullYear()) {
136
+ allowed = false;
137
+ }
138
+ if (allowed && max !== null && year > max.getFullYear()) {
139
+ allowed = false;
140
+ }
141
+ }
142
+ return allowed;
143
+ };
144
+
145
+ const Clear = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
146
+ <path d="M15.8327 5.34199L14.6577 4.16699L9.99935 8.82533L5.34102 4.16699L4.16602 5.34199L8.82435 10.0003L4.16602 14.6587L5.34102 15.8337L9.99935 11.1753L14.6577 15.8337L15.8327 14.6587L11.1743 10.0003L15.8327 5.34199Z" fill="currentColor"/>
147
+ </svg>
148
+ `;
149
+
150
+ const Calendar = `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
151
+ <path d="M16.6667 2.50004H15.8334V0.833374H14.1667V2.50004H5.83342V0.833374H4.16675V2.50004H3.33341C2.41675 2.50004 1.66675 3.25004 1.66675 4.16671V17.5C1.66675 18.4167 2.41675 19.1667 3.33341 19.1667H16.6667C17.5834 19.1667 18.3334 18.4167 18.3334 17.5V4.16671C18.3334 3.25004 17.5834 2.50004 16.6667 2.50004ZM16.6667 17.5H3.33341V6.66671H16.6667V17.5Z" fill="currentColor"/>
152
+ </svg>`;
153
+
154
+ const icDateInputCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}input{border:0;height:100%;padding:0;outline:none;background:none;-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none}ic-input-component-container{cursor:text}ic-input-component-container,ic-input-component-container:hover{color:var(--ic-color-tertiary-text)}ic-input-component-container .focus-indicator{padding:var(--ic-space-xxxs) var(--ic-space-xs);align-items:center}.day-input{width:1.438rem}.month-input{width:1.813rem}.year-input,.year-input.fit-to-value{width:2.313rem}.fit-to-value{width:1.25rem}.sr-only{position:absolute;left:-9999px}.input-container{width:100%;display:flex;justify-content:space-between;align-items:center;position:relative}.action-buttons{display:flex;align-items:center}.show-calendar-button-wrapper{display:flex;justify-content:center;align-items:center}.clear-button,.calendar-button{border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition);margin:0}.clear-button.hidden{display:none}.clear-button:focus,.calendar-button:focus,.clear-button:active,.calendar-button:active{background-color:var(--ic-focus-blue) !important;box-shadow:inset 0 0 0 0.125rem var(--ic-focus-glow) !important;border-radius:0.25rem}.clear-button:focus,.calendar-button:focus,.clear-button:active *,.calendar-button:active *{fill:var(--ic-architectural-white)}.divider{margin:0 var(--ic-space-xxs);width:var(--ic-space-1px);background-color:var(--ic-architectural-400);border-radius:var(--ic-space-1px)}.divider.small{height:var(--ic-space-md)}.divider.medium{height:calc(var(--ic-space-sm) + var(--ic-space-xs))}.divider.large{height:var(--ic-space-lg)}";
155
+
156
+ let inputIds = 0;
157
+ const DateInput = /*@__PURE__*/ proxyCustomElement(class DateInput extends HTMLElement {
158
+ constructor() {
159
+ super();
160
+ this.__registerHost();
161
+ this.__attachShadow();
162
+ this.calendarButtonClicked = createEvent(this, "calendarButtonClicked", 7);
163
+ this.icBlur = createEvent(this, "icBlur", 7);
164
+ this.icChange = createEvent(this, "icChange", 7);
165
+ this.icFocus = createEvent(this, "icFocus", 7);
166
+ this.ARIA_INVALID = "aria-invalid";
167
+ this.ARIA_LABEL = "aria-label";
168
+ this.ARIA_LABELLED_BY = "aria-labelledby";
169
+ this.EVENT_OBJECT_STRING = "[object Event]";
170
+ this.FIT_TO_VALUE = "fit-to-value";
171
+ this.initialValue = this.value;
172
+ this.INPUT_EVENT_OBJECT_STRING = "[object InputEvent]";
173
+ this.inputsInOrder = [];
174
+ this.isAfterMax = false;
175
+ this.isBeforeMin = false;
176
+ this.isDateSetFromKeyboardEvent = false;
177
+ this.isDisabledDate = false;
178
+ this.isValidDay = true;
179
+ this.isValidMonth = true;
180
+ this.isValidDate = true;
181
+ this.isZuluTime = false;
182
+ this.KEYBOARD_EVENT_OBJECT_STRING = "[object KeyboardEvent]";
183
+ this.MAX_DAY = 31;
184
+ this.MAX_MONTH = 12;
185
+ this.previousEmittedDate = undefined;
186
+ this.previousSelectedDate = null;
187
+ this.selectedDate = null;
188
+ this.setInputPasteValue = (input, pastedValue) => {
189
+ const inputEl = input;
190
+ inputEl.value = pastedValue;
191
+ inputEl.classList.add(this.FIT_TO_VALUE);
192
+ };
193
+ this.checkSingleCopiedValueIsValid = (input, pastedValue) => {
194
+ let isValid = false;
195
+ const value = Number(pastedValue);
196
+ switch (input) {
197
+ case this.dayInputEl:
198
+ isValid = value >= 1 && value <= this.MAX_DAY;
199
+ break;
200
+ case this.monthInputEl:
201
+ isValid = value >= 1 && value <= this.MAX_MONTH;
202
+ break;
203
+ case this.yearInputEl:
204
+ isValid = true;
205
+ break;
206
+ default:
207
+ isValid = false;
208
+ break;
209
+ }
210
+ return isValid;
211
+ };
212
+ /**
213
+ * Using Object.prototype.string to determine type if event from user
214
+ * @param event - event object used to differentiate keyboard, generic or input event
215
+ * @returns boolean
216
+ */
217
+ this.isKeyboardOrEvent = (event) => {
218
+ return (Object.prototype.toString.call(event) === this.EVENT_OBJECT_STRING ||
219
+ Object.prototype.toString.call(event) ===
220
+ this.KEYBOARD_EVENT_OBJECT_STRING);
221
+ };
222
+ this.setDateValidity = () => {
223
+ if (!isEmptyString(this.day)) {
224
+ this.isValidDay = +this.day > this.MAX_DAY ? false : true;
225
+ }
226
+ else {
227
+ this.isValidDay = true;
228
+ }
229
+ if (!isEmptyString(this.month)) {
230
+ this.isValidMonth = +this.month > this.MAX_MONTH ? false : true;
231
+ }
232
+ else {
233
+ this.isValidMonth = true;
234
+ }
235
+ };
236
+ this.handleInput = (event) => {
237
+ const inputEvent = event;
238
+ const input = event.target;
239
+ if (input !== this.yearInputEl) {
240
+ // Only auto-format if input event is not a character being deleted
241
+ // and not as user is changing value using up / down keys
242
+ if (inputEvent.inputType !== "deleteContentBackward" &&
243
+ !this.preventAutoFormatting) {
244
+ if (input.value.length === 1 &&
245
+ ((input === this.dayInputEl && +input.value >= 4) ||
246
+ (input === this.monthInputEl && +input.value >= 2)) &&
247
+ +input.value <= 9) {
248
+ this.setInputValue(input);
249
+ this.notifyScreenReader(input, event);
250
+ this.moveToNextInput(input);
251
+ }
252
+ if (input.value.length === 2) {
253
+ if (+input.value === 0) {
254
+ input.value = "01";
255
+ }
256
+ this.setInputValue(input);
257
+ this.setPreventInput(input, true);
258
+ this.notifyScreenReader(input, event);
259
+ this.moveToNextInput(input);
260
+ }
261
+ else {
262
+ this.setPreventInput(input, false);
263
+ }
264
+ }
265
+ else if (this.preventAutoFormatting) {
266
+ /**
267
+ * Using arrow keys prevents auto formatting so need to deal with
268
+ * switching from arrow keys to inputting numbers
269
+ **/
270
+ if (input.value.length === 2 && !this.isKeyboardOrEvent(event)) {
271
+ this.setInputValue(input);
272
+ this.setPreventInput(input, true);
273
+ this.moveToNextInput(input);
274
+ }
275
+ else {
276
+ this.setInputValue(input);
277
+ }
278
+ }
279
+ if (input.value.length !== 2) {
280
+ this.setPreventInput(input, false);
281
+ }
282
+ }
283
+ else {
284
+ if (input.value.length === 4) {
285
+ this.setInputValue(input);
286
+ if (Object.prototype.toString.call(event) !== this.EVENT_OBJECT_STRING) {
287
+ this.moveToNextInput(input);
288
+ }
289
+ this.setPreventInput(input, true);
290
+ }
291
+ else {
292
+ this.setInputValue(input, true);
293
+ this.setPreventInput(input, false);
294
+ }
295
+ }
296
+ // Add / remove class to make input width match size of value i.e. 2 digits' width for day / month, 4 for year
297
+ this.setFitToValueStyling(input);
298
+ if (input.value.length === 0) {
299
+ this.setInputValue(input, true);
300
+ this.setValidationMessage();
301
+ }
302
+ this.notifyScreenReader(input, event);
303
+ };
304
+ this.handleKeyDown = (event, isInputPrevented) => {
305
+ const input = event.target;
306
+ const eventKey = event.key.toLowerCase();
307
+ // Regex required due to FF allowing all characters as values for number text field.
308
+ const regex = /-?\d*\.?\d+(e[-+]?\d+)?|[/-]|arrowup|arrowdown|arrowleft|arrowright|shift|tab|backspace|delete/;
309
+ if (!regex.test(eventKey) &&
310
+ !((event.ctrlKey || event.metaKey) &&
311
+ (eventKey === "v" || eventKey === "c"))) {
312
+ event.preventDefault();
313
+ }
314
+ switch (eventKey) {
315
+ case "/":
316
+ case "-":
317
+ case ".":
318
+ event.preventDefault();
319
+ this.setPasteInvalidText();
320
+ this.moveToNextInput(input);
321
+ break;
322
+ case "arrowright":
323
+ case "arrowleft":
324
+ event.preventDefault();
325
+ this.handleLeftRightArrowKeyPress(input, eventKey);
326
+ break;
327
+ case "arrowup":
328
+ case "arrowdown":
329
+ this.preventAutoFormatting = true;
330
+ this.handleUpDownArrowKeyPress(input, event);
331
+ break;
332
+ }
333
+ this.preventInput(event, isInputPrevented);
334
+ this.isDateSetFromKeyboardEvent = true;
335
+ };
336
+ this.handleFocus = (event) => {
337
+ // Highlight / select all characters in input for easy replacement
338
+ const input = event.target;
339
+ input.select();
340
+ };
341
+ this.handleBlur = (event) => {
342
+ const input = event.target;
343
+ this.setPasteInvalidText();
344
+ this.autocompleteInput(input);
345
+ };
346
+ this.handleLeftRightArrowKeyPress = (input, key) => {
347
+ if (key === "arrowright") {
348
+ this.moveToNextInput(input);
349
+ }
350
+ else {
351
+ this.moveToPreviousInput(input);
352
+ }
353
+ this.setPasteInvalidText();
354
+ };
355
+ this.notifyScreenReaderSelectedDate = () => {
356
+ const dayNames = stringEnumToArray(IcDayNames);
357
+ const months = stringEnumToArray(IcDateInputMonths);
358
+ this.selectedDateInfoEl.textContent = `Selected date: ${dayNames[this.selectedDate.getDay()]}, ${this.selectedDate.getDate()} ${months[this.selectedDate.getMonth()]} ${this.selectedDate.getFullYear()}`;
359
+ };
360
+ this.handleUpDownArrowKeyPress = (input, event) => {
361
+ const minValue = input === this.yearInputEl ? 0 : 1;
362
+ let maxValue;
363
+ switch (input) {
364
+ case this.dayInputEl:
365
+ maxValue = this.MAX_DAY;
366
+ break;
367
+ case this.monthInputEl:
368
+ maxValue = this.MAX_MONTH;
369
+ break;
370
+ case this.yearInputEl:
371
+ maxValue = 9999;
372
+ }
373
+ // Make value loop round when min / max reached
374
+ if (input === null || input === void 0 ? void 0 : input.value) {
375
+ if (event.key === "ArrowUp") {
376
+ if (+input.value === maxValue) {
377
+ event.preventDefault();
378
+ input.value = `0${minValue}`;
379
+ }
380
+ else {
381
+ input.value =
382
+ +input.value + 1 < 10
383
+ ? `0${+input.value + 1}`
384
+ : (+input.value + 1).toString();
385
+ }
386
+ this.notifyScreenReader(input, event);
387
+ }
388
+ if (event.key === "ArrowDown") {
389
+ if (+input.value === minValue) {
390
+ event.preventDefault();
391
+ input.value = maxValue.toString();
392
+ }
393
+ else {
394
+ input.value =
395
+ +input.value - 1 < 10
396
+ ? `0${+input.value - 1}`
397
+ : (+input.value - 1).toString();
398
+ }
399
+ this.notifyScreenReader(input, event);
400
+ }
401
+ }
402
+ else {
403
+ if (event.key === "ArrowDown") {
404
+ event.preventDefault();
405
+ if (input === this.yearInputEl) {
406
+ input.value = new Date().getFullYear().toString();
407
+ }
408
+ else {
409
+ input.value = maxValue.toString();
410
+ }
411
+ this.notifyScreenReader(input, event);
412
+ }
413
+ else if (event.key === "ArrowUp") {
414
+ event.preventDefault();
415
+ if (input === this.yearInputEl) {
416
+ input.value = new Date().getFullYear().toString();
417
+ }
418
+ else {
419
+ input.value = `0${minValue}`;
420
+ }
421
+ this.notifyScreenReader(input, event);
422
+ }
423
+ }
424
+ this.setInputValue(input);
425
+ this.setFitToValueStyling(input);
426
+ };
427
+ this.handleDateChange = (force) => {
428
+ // Prevent icChange being emitted when each individual input is changed
429
+ // This method is used within componentWillUpdate instead of using @Watch('value');
430
+ if (force || !dateMatches(this.selectedDate, this.previousSelectedDate)) {
431
+ if (this.value) {
432
+ this.inputsInOrder.forEach((input) => {
433
+ input.classList.add(this.FIT_TO_VALUE);
434
+ });
435
+ }
436
+ if (this.day && this.month && this.year && this.invalidDateText === "") {
437
+ this.setValueAndEmitChange(this.selectedDate);
438
+ this.notifyScreenReaderSelectedDate();
439
+ }
440
+ else if (!(this.selectedDate === null && this.previousSelectedDate === null)) {
441
+ this.setValueAndEmitChange(null);
442
+ this.selectedDateInfoEl.textContent = "";
443
+ }
444
+ this.previousSelectedDate = this.selectedDate;
445
+ if (!this.isDateSetFromKeyboardEvent) {
446
+ this.updateInputValues(this.day, this.month, this.year);
447
+ }
448
+ }
449
+ };
450
+ this.slicePastedDate = (valueLength, datePart) => {
451
+ return datePart.length > valueLength
452
+ ? datePart.slice(0, valueLength)
453
+ : datePart;
454
+ };
455
+ this.isPastedStringDateValid = (value) => {
456
+ if (/\d+-\d+-\d+$/.test(value) ||
457
+ /\d+\/\d+\/\d+/.test(value) ||
458
+ /\d+\.\d+\.\d+/.test(value)) {
459
+ return true;
460
+ }
461
+ if (/[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}(?::[0-9]{2}(?:\.\d+)?)?Z/.test(value)) {
462
+ this.isZuluTime = true;
463
+ return true;
464
+ }
465
+ return false;
466
+ };
467
+ // Set value of each input to value of pasted date part
468
+ // Allows formats separated by '-' or '/'
469
+ this.handlePaste = (event) => {
470
+ event.preventDefault();
471
+ const pastedValue = event.clipboardData.getData("Text");
472
+ const isValidDate = this.isPastedStringDateValid(pastedValue);
473
+ this.setPastedValueAndValidation(isValidDate, pastedValue, event);
474
+ };
475
+ this.setDate = (date) => {
476
+ if (date === null || date === "" || date === undefined) {
477
+ this.day = null;
478
+ this.month = null;
479
+ this.year = null;
480
+ this.inputsInOrder.forEach((input) => {
481
+ input.classList.remove(this.FIT_TO_VALUE);
482
+ this.setPreventInput(input, false);
483
+ });
484
+ this.handleDateChange(true);
485
+ }
486
+ else {
487
+ if (isDateOrEpoch(date)) {
488
+ let newDate;
489
+ if (typeof date === "string") {
490
+ // Checking if epoch date time
491
+ newDate = new Date(+date);
492
+ }
493
+ else {
494
+ newDate = date;
495
+ }
496
+ this.day = convertToDoubleDigits(newDate.getDate());
497
+ this.month = convertToDoubleDigits(newDate.getMonth() + 1);
498
+ this.year = newDate.getFullYear().toString();
499
+ }
500
+ else if (typeof date === "string") {
501
+ const defaultDateArray = splitStringDate(date, this.dateFormat);
502
+ this.year = defaultDateArray[0];
503
+ this.month = defaultDateArray[1];
504
+ this.day = defaultDateArray[2];
505
+ }
506
+ }
507
+ this.setValidationMessage();
508
+ };
509
+ this.formatMinMax = (date) => {
510
+ let formattedDate;
511
+ const day = convertToDoubleDigits(date.getDate());
512
+ const month = convertToDoubleDigits(date.getMonth() + 1);
513
+ const year = date.getFullYear();
514
+ switch (this.dateFormat) {
515
+ case "DD/MM/YYYY":
516
+ formattedDate = `${day}/${month}/${year}`;
517
+ break;
518
+ case "MM/DD/YYYY":
519
+ formattedDate = `${month}/${day}/${year}`;
520
+ break;
521
+ case "YYYY/MM/DD":
522
+ formattedDate = `${year}/${month}/${day}`;
523
+ break;
524
+ }
525
+ return formattedDate;
526
+ };
527
+ this.updateInputValues = (day, month, year) => {
528
+ this.dayInputEl.value = day;
529
+ this.monthInputEl.value = month;
530
+ this.yearInputEl.value = year;
531
+ };
532
+ // Set value in state based on input
533
+ this.setInputValue = (input, clear = false) => {
534
+ const newValue = clear ? "" : input.value;
535
+ switch (input) {
536
+ case this.dayInputEl:
537
+ this.day = newValue;
538
+ break;
539
+ case this.monthInputEl:
540
+ this.month = newValue;
541
+ break;
542
+ case this.yearInputEl:
543
+ if (this.year !== newValue) {
544
+ this.year = newValue;
545
+ }
546
+ }
547
+ this.setValidationMessage();
548
+ };
549
+ this.setValidationMessage = () => {
550
+ this.setDateValidity();
551
+ if (!isEmptyString(this.day) &&
552
+ !isEmptyString(this.month) &&
553
+ !isEmptyString(this.year)) {
554
+ // Check whether date actually exists
555
+ // (used https://www.hectane.com/blog/javascript-date-validation-with-leap-year)
556
+ this.selectedDate = this.convertToDate(this.year, this.month, this.day);
557
+ this.isValidDate =
558
+ +this.selectedDate !== 0 && this.selectedDate.getDate() == +this.day;
559
+ this.isDisabledDate = this.isSelectedDateDisabled();
560
+ if (!this.isValidDate || this.isDisabledDate) {
561
+ this.inputsInOrder.forEach((input) => input.setAttribute(this.ARIA_INVALID, "true"));
562
+ }
563
+ else {
564
+ this.inputsInOrder.forEach((input) => input.removeAttribute(this.ARIA_INVALID));
565
+ }
566
+ }
567
+ else {
568
+ this.selectedDate = null;
569
+ }
570
+ if (!(this.isValidDay && this.isValidMonth && this.isValidDate)) {
571
+ this.invalidDateText = this.invalidDateMessage;
572
+ }
573
+ else if (this.isDisabledDate && this.selectedDate !== null) {
574
+ if (this.isBeforeMin) {
575
+ if (this.disablePast) {
576
+ this.invalidDateText = this.disablePastMessage;
577
+ }
578
+ else {
579
+ this.invalidDateText = `Please enter a date after ${this.formatMinMax(this.minDate)}.`;
580
+ }
581
+ }
582
+ else if (this.isAfterMax) {
583
+ if (this.disableFuture) {
584
+ this.invalidDateText = this.disableFutureMessage;
585
+ }
586
+ else {
587
+ this.invalidDateText = `Please enter a date before ${this.formatMinMax(this.maxDate)}.`;
588
+ }
589
+ }
590
+ else if (this.disableDays.length !== 0) {
591
+ this.invalidDateText = this.disableDaysMessage;
592
+ }
593
+ else {
594
+ if (this.disablePast) {
595
+ this.invalidDateText = this.disablePastMessage;
596
+ }
597
+ if (this.disableFuture) {
598
+ this.invalidDateText = this.disableFutureMessage;
599
+ }
600
+ }
601
+ }
602
+ else {
603
+ this.invalidDateText = "";
604
+ }
605
+ };
606
+ // Set refs to the input elements in the order they are displayed (based on the dateFormat)
607
+ this.setInputsInOrder = () => {
608
+ const inputs = this.el.shadowRoot.querySelectorAll("input");
609
+ inputs.forEach((input) => this.inputsInOrder.push(input));
610
+ };
611
+ // Includes text usually added using aria-describedby
612
+ // (which doesn't work on input component container)
613
+ this.setAriaLabelledBy = () => {
614
+ var _a;
615
+ if (this.disabled &&
616
+ !isEmptyString((_a = this.inputCompContainerEl) === null || _a === void 0 ? void 0 : _a.getAttribute(this.ARIA_LABELLED_BY))) {
617
+ this.removeAriaLabelledBy();
618
+ return;
619
+ }
620
+ if (this.disabled) {
621
+ return;
622
+ }
623
+ const labelEl = this.el.shadowRoot.querySelector("label");
624
+ const labelId = `${this.inputId}-label`;
625
+ if (labelEl !== null && labelEl !== undefined) {
626
+ labelEl.id = labelId;
627
+ const hasValidation = (!isEmptyString(this.validationStatus) &&
628
+ !isEmptyString(this.validationText)) ||
629
+ !isEmptyString(this.invalidDateText);
630
+ const labelledBy = `${labelId} ${this.screenReaderInfoId} ${getInputDescribedByText(this.inputId, this.helperText !== "" && this.helperText !== this.defaultHelperText, hasValidation)} ${this.selectedDate ? this.selectedDateInfoId : ""} ${this.assistiveHintId}`;
631
+ this.inputCompContainerEl.setAttribute(this.ARIA_LABELLED_BY, labelledBy);
632
+ }
633
+ };
634
+ // Sets boolean for each input, used to limit the number of characters within each field (2 for day / month, 4 for year)
635
+ this.setPreventInput = (input, isPrevented) => {
636
+ switch (input) {
637
+ case this.dayInputEl:
638
+ this.preventDayInput = isPrevented;
639
+ break;
640
+ case this.monthInputEl:
641
+ this.preventMonthInput = isPrevented;
642
+ break;
643
+ case this.yearInputEl:
644
+ this.preventYearInput = isPrevented;
645
+ }
646
+ };
647
+ // Get input based on letter representing each date part ("D", "M" or "Y")
648
+ // (retrieved from dateFormat)
649
+ this.getInputFromDatePart = (datePart) => {
650
+ const dayInput = (h("input", { class: "day-input", id: "day-input", ref: (el) => (this.dayInputEl = el), "aria-label": "day", placeholder: "DD", disabled: this.disabled, onPaste: this.handlePaste, inputmode: "number", pattern: "[0-9]*", onKeyDown: (event) => this.handleKeyDown(event, this.preventDayInput) }));
651
+ const monthInput = (h("input", { id: "month-input", class: "month-input", ref: (el) => (this.monthInputEl = el), "aria-label": "month", placeholder: "MM", disabled: this.disabled, onPaste: this.handlePaste, inputmode: "number", pattern: "[0-9]*", onKeyDown: (event) => this.handleKeyDown(event, this.preventMonthInput) }));
652
+ const yearInput = (h("input", { id: "year-input", class: "year-input", ref: (el) => (this.yearInputEl = el), "aria-label": "year", placeholder: "YYYY", maxLength: 4, disabled: this.disabled, onPaste: this.handlePaste, inputmode: "number", pattern: "[0-9]*", onKeyDown: (event) => this.handleKeyDown(event, this.preventYearInput) }));
653
+ let input;
654
+ switch (datePart) {
655
+ case "D":
656
+ input = dayInput;
657
+ break;
658
+ case "M":
659
+ input = monthInput;
660
+ break;
661
+ case "Y":
662
+ input = yearInput;
663
+ }
664
+ return input;
665
+ };
666
+ // Get input elements in order of chosen date format
667
+ this.getInputsInOrder = () => {
668
+ const dateParts = this.dateFormat.split("/");
669
+ const inputsInOrder = [];
670
+ dateParts.forEach((part) => {
671
+ inputsInOrder.push(this.getInputFromDatePart(part.substring(0, 1)));
672
+ });
673
+ return inputsInOrder;
674
+ };
675
+ // To add to the end of assistive hint to make it clearer that each date part has its own input
676
+ // that can be changed individually
677
+ this.getDescOfInputsOrder = () => {
678
+ let description;
679
+ switch (this.dateFormat) {
680
+ case "DD/MM/YYYY":
681
+ description = "day, month, and year";
682
+ break;
683
+ case "MM/DD/YYYY":
684
+ description = "month, day, and year";
685
+ break;
686
+ case "YYYY/MM/DD":
687
+ description = "year, month, and day";
688
+ }
689
+ return description;
690
+ };
691
+ // Add 'required' or 'invalid data' to span used in aria-labelledby
692
+ // Many ARIA attributes aren't read out by screen reader when on the input component container
693
+ this.getScreenReaderInfo = (validationStatus) => {
694
+ let inputDescriptors = "";
695
+ if (this.required) {
696
+ inputDescriptors += "required";
697
+ }
698
+ if (validationStatus === IcInformationStatus.Error) {
699
+ inputDescriptors += " invalid data";
700
+ }
701
+ return inputDescriptors === "" ? "" : inputDescriptors + ", ";
702
+ };
703
+ // Prevent non-number characters being entered
704
+ // ('e' or '.' - which are usually allowed in <input type="number">)
705
+ // And limit the number of characters within each field (2 for day / month, 4 for year)
706
+ // (because 'maxlength' doesn't work on <input type="number">)
707
+ this.preventInput = (event, isInputPrevented) => {
708
+ const key = event.key;
709
+ const input = event.target;
710
+ let selectedString;
711
+ if (input) {
712
+ selectedString = input.value.substring(input.selectionStart, input.selectionEnd);
713
+ }
714
+ if (key === "e" ||
715
+ key === "." ||
716
+ key === "-" ||
717
+ (event.key >= "0" &&
718
+ event.key <= "9" &&
719
+ isInputPrevented &&
720
+ !selectedString)) {
721
+ event.preventDefault();
722
+ }
723
+ };
724
+ // Get whether date has been disabled using disableFuture or disablePast prop, but always allow current day
725
+ // Consider using dateClamp and inDateRange
726
+ this.isSelectedDateDisabled = () => {
727
+ const currentDate = new Date();
728
+ this.isAfterMax = false;
729
+ this.isBeforeMin = false;
730
+ let disabled = false;
731
+ const isNotToday = this.selectedDate.toDateString() !== currentDate.toDateString();
732
+ if (this.minDate && this.selectedDate < this.minDate && isNotToday) {
733
+ this.isBeforeMin = true;
734
+ disabled = true;
735
+ }
736
+ if (this.maxDate && this.selectedDate > this.maxDate && isNotToday) {
737
+ this.isAfterMax = true;
738
+ disabled = true;
739
+ }
740
+ if (this.disableDays.includes(this.selectedDate.getDay())) {
741
+ disabled = true;
742
+ }
743
+ if (((this.disablePast && this.selectedDate < currentDate) ||
744
+ (this.disableFuture && this.selectedDate > currentDate)) &&
745
+ isNotToday) {
746
+ disabled = true;
747
+ }
748
+ return disabled;
749
+ };
750
+ this.moveToNextInput = (currentInput) => {
751
+ const currentInputPos = this.inputsInOrder.findIndex((input) => input === currentInput);
752
+ const nextInput = this.inputsInOrder[currentInputPos + 1];
753
+ this.preventAutoFormatting = false;
754
+ if (nextInput) {
755
+ nextInput.focus();
756
+ }
757
+ };
758
+ this.moveToPreviousInput = (currentInput) => {
759
+ const currentInputPos = this.inputsInOrder.findIndex((input) => input === currentInput);
760
+ this.preventAutoFormatting = false;
761
+ if (this.inputsInOrder[currentInputPos - 1]) {
762
+ this.inputsInOrder[currentInputPos - 1].focus();
763
+ }
764
+ };
765
+ this.autocompleteInput = (input) => {
766
+ if (input === this.yearInputEl) {
767
+ this.autocompleteYear();
768
+ }
769
+ else {
770
+ const inputValue = input.value;
771
+ // Autocomplete input as 2 characters (leading zero) when only 1 character entered (for day and month)
772
+ if (inputValue.length === 1) {
773
+ if (+inputValue === 0) {
774
+ input.value = "01";
775
+ }
776
+ else {
777
+ input.value = `0${inputValue}`;
778
+ }
779
+ }
780
+ }
781
+ if (input.value) {
782
+ this.setInputValue(input);
783
+ }
784
+ };
785
+ // Autocomplete year as current millennium when fewer than 4 characters entered
786
+ this.autocompleteYear = () => {
787
+ const inputValue = this.yearInputEl.value;
788
+ const yearNumbers = ["2", "0", "0"];
789
+ let autocompletedInput = "";
790
+ if (inputValue) {
791
+ yearNumbers.forEach((number, index) => {
792
+ if (inputValue.length + index <= 3) {
793
+ autocompletedInput += number;
794
+ }
795
+ });
796
+ this.yearInputEl.value = `${autocompletedInput}${inputValue}`;
797
+ }
798
+ };
799
+ this.convertToDate = (year, month, day) => {
800
+ if (!isEmptyString(year) && !isEmptyString(month) && !isEmptyString(day)) {
801
+ return new Date(+year, +month - 1, +day);
802
+ }
803
+ else {
804
+ return null;
805
+ }
806
+ };
807
+ this.handleHostBlur = () => {
808
+ this.removeLabelledBy = false;
809
+ this.icBlur.emit({ value: this.selectedDate });
810
+ };
811
+ this.handleHostFocus = () => {
812
+ var _a;
813
+ if ((_a = this.el.shadowRoot.activeElement) === null || _a === void 0 ? void 0 : _a.id.match(/(day|month|year)-input$/)) {
814
+ this.removeLabelledBy = false;
815
+ }
816
+ else {
817
+ this.removeLabelledBy = true;
818
+ }
819
+ this.icFocus.emit({ value: this.selectedDate });
820
+ };
821
+ this.handleFormReset = () => {
822
+ // Get the initial value and populate day, month and year again.
823
+ this.setDate(this.initialValue);
824
+ this.setValidationMessage();
825
+ this.handleDateChange(false);
826
+ };
827
+ this.getAriaLabel = (input) => {
828
+ return input.getAttribute(this.ARIA_LABEL);
829
+ };
830
+ this.notifyScreenReaderArrowKeys = (input) => {
831
+ const liveRegion = this.el.shadowRoot.querySelector("#live-region");
832
+ let announcement = "";
833
+ const ariaLabel = this.getAriaLabel(input);
834
+ if (liveRegion && input.value) {
835
+ if (input === this.monthInputEl &&
836
+ !!IcDateInputMonths[+input.value - 1]) {
837
+ announcement = `${input.value} - ${IcDateInputMonths[+input.value - 1]}, ${ariaLabel}`;
838
+ }
839
+ if (input === this.dayInputEl || input === this.yearInputEl) {
840
+ announcement = `${input.value}, ${ariaLabel}`;
841
+ }
842
+ liveRegion.textContent = announcement;
843
+ }
844
+ };
845
+ this.notifyScreenReaderInput = (input, liveRegion) => {
846
+ let announcement = "";
847
+ const ariaLabel = this.getAriaLabel(input);
848
+ if (input === this.dayInputEl || input === this.monthInputEl) {
849
+ if (input.value.length === 2) {
850
+ if (input === this.monthInputEl &&
851
+ !!IcDateInputMonths[+input.value - 1] &&
852
+ this.isValidMonth) {
853
+ announcement = `${input.value} - ${IcDateInputMonths[+input.value - 1]}, ${ariaLabel}`;
854
+ }
855
+ if (input === this.dayInputEl && this.isValidDay) {
856
+ announcement = `${input.value}, ${ariaLabel}`;
857
+ }
858
+ }
859
+ else {
860
+ announcement = "";
861
+ }
862
+ }
863
+ else {
864
+ if (input.value.length === 4) {
865
+ announcement = `${input.value}, ${ariaLabel}`;
866
+ }
867
+ else {
868
+ announcement = "";
869
+ }
870
+ }
871
+ liveRegion.textContent = announcement;
872
+ };
873
+ this.setFitToValueStyling = (input) => {
874
+ if (input.value) {
875
+ input.classList.add(this.FIT_TO_VALUE);
876
+ }
877
+ else {
878
+ input.classList.remove(this.FIT_TO_VALUE);
879
+ }
880
+ };
881
+ this.setAriaInvalid = (validDay, validMonth, validDate, disabledDate) => {
882
+ if (this.inputsInOrder.length) {
883
+ this.inputsInOrder.forEach((input) => {
884
+ input.removeAttribute(this.ARIA_INVALID);
885
+ });
886
+ if (!validDay) {
887
+ this.dayInputEl.setAttribute(this.ARIA_INVALID, "true");
888
+ }
889
+ if (!validMonth) {
890
+ this.monthInputEl.setAttribute(this.ARIA_INVALID, "true");
891
+ }
892
+ if (!validDate || disabledDate) {
893
+ this.inputsInOrder.forEach((input) => {
894
+ input.setAttribute(this.ARIA_INVALID, "true");
895
+ });
896
+ }
897
+ }
898
+ };
899
+ this.handleClear = () => {
900
+ this.inputsInOrder.forEach((input) => {
901
+ input.classList.remove(this.FIT_TO_VALUE);
902
+ this.setInputValue(input, true);
903
+ this.setPreventInput(input, false);
904
+ });
905
+ this.isDateSetFromKeyboardEvent = false;
906
+ this.setValidationMessage();
907
+ this.handleDateChange(true);
908
+ this.inputsInOrder[0].focus();
909
+ };
910
+ this.handleCalendarOpen = (ev) => {
911
+ var _a, _b;
912
+ ev.stopImmediatePropagation();
913
+ (_a = this.calendarButtonEl) === null || _a === void 0 ? void 0 : _a.shadowRoot.querySelector("ic-tooltip").displayTooltip(false);
914
+ this.calendarButtonClicked.emit({ value: this.selectedDate });
915
+ (_b = this.calendarButtonEl) === null || _b === void 0 ? void 0 : _b.shadowRoot.querySelector("ic-tooltip").displayTooltip(false);
916
+ this.isDateSetFromKeyboardEvent = false;
917
+ };
918
+ this.setValueAndEmitChange = (value) => {
919
+ if (!dateMatches(new Date(this.value), value)) {
920
+ this.emitIcChange(value);
921
+ this.value = value;
922
+ }
923
+ };
924
+ this.handleCalendarFocus = () => {
925
+ this.calendarFocused = true;
926
+ };
927
+ this.handleCalendarBlur = () => {
928
+ this.calendarFocused = false;
929
+ };
930
+ this.handleClearFocus = () => {
931
+ this.removeLabelledBy = true;
932
+ this.clearButtonFocused = true;
933
+ };
934
+ this.handleClearBlur = (ev) => {
935
+ var _a;
936
+ this.clearButtonFocused = false;
937
+ if ((_a = ev.relatedTarget) === null || _a === void 0 ? void 0 : _a.id.match(/(day|year)-input$/)) {
938
+ this.removeLabelledBy = false;
939
+ return;
940
+ }
941
+ this.removeLabelledBy = true;
942
+ };
943
+ this.emitIcChange = (d) => {
944
+ if (!(d === null && this.previousEmittedDate === null) &&
945
+ !dateMatches(d, this.previousEmittedDate)) {
946
+ this.previousEmittedDate = d;
947
+ this.icChange.emit({ value: d });
948
+ }
949
+ };
950
+ this.day = "";
951
+ this.invalidDateText = undefined;
952
+ this.maxDate = undefined;
953
+ this.minDate = undefined;
954
+ this.month = "";
955
+ this.year = "";
956
+ this.calendarFocused = false;
957
+ this.clearButtonFocused = false;
958
+ this.removeLabelledBy = false;
959
+ this.dateFormat = "DD/MM/YYYY";
960
+ this.disabled = false;
961
+ this.disableDays = [];
962
+ this.disableDaysMessage = "The date you have selected is on a day of the week that is not allowed. Please select another date.";
963
+ this.disableFuture = false;
964
+ this.disableFutureMessage = "Dates in the future are not allowed. Please select a date in the past.";
965
+ this.disablePast = false;
966
+ this.disablePastMessage = "Dates in the past are not allowed. Please select a date in the future.";
967
+ this.helperText = undefined;
968
+ this.hideHelperText = false;
969
+ this.inputId = `ic-date-input-${inputIds++}`;
970
+ this.invalidDateMessage = "Please enter a valid date.";
971
+ this.label = undefined;
972
+ this.max = "";
973
+ this.min = "";
974
+ this.name = this.inputId;
975
+ this.required = false;
976
+ this.showCalendarButton = false;
977
+ this.showClearButton = true;
978
+ this.size = "medium";
979
+ this.value = "";
980
+ this.validationStatus = "";
981
+ this.validationText = "";
982
+ }
983
+ watchDisableFutureHandler() {
984
+ this.watchMaxHandler();
985
+ }
986
+ watchDisablePastHandler() {
987
+ this.watchMinHandler();
988
+ }
989
+ watchMaxHandler() {
990
+ if (this.disableFuture) {
991
+ this.maxDate = new Date();
992
+ }
993
+ else {
994
+ this.maxDate = createDate(this.max, this.dateFormat);
995
+ }
996
+ }
997
+ watchMinHandler() {
998
+ if (this.disablePast) {
999
+ this.minDate = new Date();
1000
+ }
1001
+ else {
1002
+ this.minDate = createDate(this.min, this.dateFormat);
1003
+ }
1004
+ }
1005
+ watchRequiredHandler() {
1006
+ // Prevent asterisk being read out after the label by screen reader (by applying aria-hidden)
1007
+ // Needed because label is included in 'aria-labelledby' instead of using 'aria-label'
1008
+ const labelEl = this.el.shadowRoot.querySelector("label");
1009
+ if (this.required) {
1010
+ const asteriskSpan = document.createElement("span");
1011
+ asteriskSpan.setAttribute("id", "asterisk-span");
1012
+ asteriskSpan.setAttribute("aria-hidden", "true");
1013
+ asteriskSpan.textContent = " *";
1014
+ labelEl === null || labelEl === void 0 ? void 0 : labelEl.appendChild(asteriskSpan);
1015
+ }
1016
+ else {
1017
+ const asteriskSpan = this.el.shadowRoot.querySelector("#asterisk-span");
1018
+ if (asteriskSpan) {
1019
+ asteriskSpan.remove();
1020
+ }
1021
+ }
1022
+ }
1023
+ disconnectedCallback() {
1024
+ removeFormResetListener(this.el, this.handleFormReset);
1025
+ }
1026
+ componentWillLoad() {
1027
+ this.defaultHelperText = `Use format ${this.dateFormat}`;
1028
+ if (isEmptyString(this.helperText))
1029
+ this.helperText = this.defaultHelperText;
1030
+ this.watchMinHandler();
1031
+ this.watchMaxHandler();
1032
+ if (this.value) {
1033
+ this.setDate(this.value);
1034
+ this.previousEmittedDate = this.selectedDate;
1035
+ }
1036
+ else {
1037
+ this.previousEmittedDate = null;
1038
+ }
1039
+ this.screenReaderInfoId = `${this.inputId}-screen-reader-info`;
1040
+ this.assistiveHintId = `${this.inputId}-assistive-hint`;
1041
+ this.selectedDateInfoId = `${this.inputId}-selected-date-info`;
1042
+ addFormResetListener(this.el, this.handleFormReset);
1043
+ }
1044
+ componentDidLoad() {
1045
+ this.setInputsInOrder();
1046
+ onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Date Input");
1047
+ if (this.value) {
1048
+ this.updateInputValues(this.day, this.month, this.year);
1049
+ this.inputsInOrder.forEach((input) => {
1050
+ input.classList.add(this.FIT_TO_VALUE);
1051
+ });
1052
+ }
1053
+ this.setAriaInvalid(this.isValidDay, this.isValidMonth, this.isValidDate, this.isDisabledDate);
1054
+ if (this.value) {
1055
+ this.notifyScreenReaderSelectedDate();
1056
+ }
1057
+ this.inputsInOrder.forEach((input) => {
1058
+ input.addEventListener("input", this.handleInput);
1059
+ input.addEventListener("focus", this.handleFocus);
1060
+ input.addEventListener("blur", this.handleBlur);
1061
+ });
1062
+ this.watchRequiredHandler();
1063
+ }
1064
+ componentWillUpdate() {
1065
+ if (isEmptyString(this.helperText))
1066
+ this.helperText = this.defaultHelperText;
1067
+ if (!this.isDateSetFromKeyboardEvent)
1068
+ this.setDate(this.value);
1069
+ this.setAriaInvalid(this.isValidDay, this.isValidMonth, this.isValidDate, this.isDisabledDate);
1070
+ this.handleDateChange(false);
1071
+ this.isDateSetFromKeyboardEvent = false;
1072
+ }
1073
+ componentDidRender() {
1074
+ if (this.removeLabelledBy) {
1075
+ this.removeAriaLabelledBy();
1076
+ return;
1077
+ }
1078
+ this.setAriaLabelledBy();
1079
+ }
1080
+ /**
1081
+ * Returns the value as a Date object
1082
+ * @returns Date
1083
+ */
1084
+ async getDate() {
1085
+ return this.selectedDate;
1086
+ }
1087
+ /**
1088
+ * @internal Sets focus on the calendar button.
1089
+ */
1090
+ async setCalendarFocus() {
1091
+ if (this.calendarButtonEl) {
1092
+ this.calendarButtonEl.focus();
1093
+ }
1094
+ }
1095
+ /**
1096
+ * @internal Used to pass disabledDays from parent component.
1097
+ */
1098
+ async setDisableDays(days) {
1099
+ this.disableDays = days;
1100
+ }
1101
+ /**
1102
+ * @internal Used to enable other components to invoke an IcChange event from the input.
1103
+ */
1104
+ async triggerIcChange(d) {
1105
+ this.emitIcChange(d);
1106
+ }
1107
+ removeAriaLabelledBy() {
1108
+ this.inputCompContainerEl.removeAttribute(this.ARIA_LABELLED_BY);
1109
+ }
1110
+ setPastedValueAndValidation(isValidDate, pastedValue, event) {
1111
+ switch (true) {
1112
+ case isValidDate: {
1113
+ const nextParsedValue = this.isZuluTime
1114
+ ? extractDateFromZuluDateTime(pastedValue)
1115
+ : pastedValue;
1116
+ const dateParts = nextParsedValue.split(/-|\/|\./);
1117
+ this.inputsInOrder.forEach((input, index) => {
1118
+ input.classList.add(this.FIT_TO_VALUE);
1119
+ if (this.isZuluTime) {
1120
+ this.pasteZuluDateTime(dateParts, index);
1121
+ }
1122
+ else {
1123
+ let dateValue;
1124
+ if (input === this.dayInputEl || input === this.monthInputEl) {
1125
+ dateValue = this.slicePastedDate(2, dateParts[index]);
1126
+ }
1127
+ else {
1128
+ dateValue = this.slicePastedDate(4, dateParts[index]);
1129
+ }
1130
+ input.value = dateValue;
1131
+ this.setInputValue(input);
1132
+ this.autocompleteInput(input);
1133
+ }
1134
+ });
1135
+ this.isZuluTime = false;
1136
+ break;
1137
+ }
1138
+ case (pastedValue.length === 1 ||
1139
+ pastedValue.length === 2 ||
1140
+ pastedValue.length === 4) &&
1141
+ isNumeric(pastedValue):
1142
+ if (this.checkSingleCopiedValueIsValid(event.target, pastedValue)) {
1143
+ // Check if copied value can be pasted into input
1144
+ this.setInputPasteValue(event.target, pastedValue);
1145
+ this.setInputValue(event.target);
1146
+ }
1147
+ else {
1148
+ this.displayPastedValidation(event);
1149
+ }
1150
+ break;
1151
+ case pastedValue.length === 3 && isNumeric(pastedValue):
1152
+ if (event.target !== this.yearInputEl) {
1153
+ this.displayPastedValidation(event);
1154
+ }
1155
+ else {
1156
+ this.setInputPasteValue(event.target, pastedValue);
1157
+ this.setInputValue(event.target);
1158
+ }
1159
+ break;
1160
+ case pastedValue.length >= 5 && isNumeric(pastedValue):
1161
+ this.displayPastedValidation(event);
1162
+ }
1163
+ }
1164
+ pasteZuluDateTime(dateParts, index) {
1165
+ // ['YYYY', 'MM', 'DD']
1166
+ if (index === 0) {
1167
+ const dateValue = this.slicePastedDate(4, dateParts[index]);
1168
+ this.yearInputEl.value = dateValue;
1169
+ this.setInputValue(this.yearInputEl);
1170
+ }
1171
+ else if (index === 1) {
1172
+ // The month value is the second item in the array
1173
+ const dateValue = this.slicePastedDate(2, dateParts[index]);
1174
+ this.monthInputEl.value = dateValue;
1175
+ this.setInputValue(this.monthInputEl);
1176
+ }
1177
+ else {
1178
+ const dateValue = this.slicePastedDate(2, dateParts[index]);
1179
+ this.dayInputEl.value = dateValue;
1180
+ this.setInputValue(this.dayInputEl);
1181
+ }
1182
+ }
1183
+ displayPastedValidation(event) {
1184
+ var _a;
1185
+ if (((_a = this.invalidDateText) === null || _a === void 0 ? void 0 : _a.length) > 0) {
1186
+ this.previousInvalidDateTest = this.invalidDateText;
1187
+ }
1188
+ this.invalidDateText = `Please paste a valid ${this.getAriaLabel(event.target)}`;
1189
+ this.validationStatus = IcInformationStatus.Error;
1190
+ this.isPasteValidationDisplayed = true;
1191
+ }
1192
+ setPasteInvalidText() {
1193
+ var _a;
1194
+ if (this.isPasteValidationDisplayed) {
1195
+ this.invalidDateText = (_a = this.previousInvalidDateTest) !== null && _a !== void 0 ? _a : "";
1196
+ this.isPasteValidationDisplayed = false;
1197
+ // This is to prevent setDate from triggering within componentWillUpdate
1198
+ this.isDateSetFromKeyboardEvent = true;
1199
+ }
1200
+ }
1201
+ notifyScreenReader(input, event) {
1202
+ const liveRegion = this.el.shadowRoot.querySelector("#live-region");
1203
+ if (liveRegion) {
1204
+ if (this.isKeyboardOrEvent(event)) {
1205
+ this.notifyScreenReaderArrowKeys(input);
1206
+ }
1207
+ else if (Object.prototype.toString.call(event) === this.INPUT_EVENT_OBJECT_STRING) {
1208
+ this.notifyScreenReaderInput(input, liveRegion);
1209
+ }
1210
+ }
1211
+ }
1212
+ render() {
1213
+ const { inputId, label, disabled, helperText, hideHelperText, showClearButton, showCalendarButton, size, } = this;
1214
+ const hasCustomValidation = !isEmptyString(this.validationStatus) &&
1215
+ !isEmptyString(this.validationText);
1216
+ const validationStatus = hasCustomValidation
1217
+ ? this.validationStatus
1218
+ : !isEmptyString(this.invalidDateText)
1219
+ ? IcInformationStatus.Error
1220
+ : "";
1221
+ const assistiveHint = `Type or use the up and down arrow keys to change the values for the ${this.getDescOfInputsOrder()}.`;
1222
+ renderHiddenInput(true, this.el, this.name, this.convertToDate(this.year, this.month, this.day), this.disabled);
1223
+ return (h(Host, { onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, h("ic-input-container", { disabled: disabled }, h("ic-input-label", { for: inputId, label: label, helperText: !hideHelperText ? helperText : null, disabled: disabled }), h("span", { id: this.screenReaderInfoId, class: "sr-only", "aria-hidden": "true" }, this.getScreenReaderInfo(validationStatus), hideHelperText && `${helperText}\n`, `${this.defaultHelperText}.`), h("span", { id: this.assistiveHintId, class: "sr-only", "aria-hidden": "true" }, assistiveHint), h("span", { id: "live-region", "aria-live": "assertive", class: "sr-only" }), h("ic-input-component-container", { id: inputId, ref: (el) => (this.inputCompContainerEl = el), disabled: disabled, validationStatus: validationStatus, size: size, role: "group" }, h("div", { class: "input-container" }, h("div", { class: "date-inputs" }, this.getInputsInOrder()[0], "/", this.getInputsInOrder()[1], "/", this.getInputsInOrder()[2]), h("div", { class: "action-buttons" }, showClearButton && (h("ic-button", { id: "clear-button", "aria-label": "Clear input", class: {
1224
+ ["clear-button"]: true,
1225
+ ["hidden"]: isEmptyString(this.day) &&
1226
+ isEmptyString(this.month) &&
1227
+ isEmptyString(this.year),
1228
+ }, disabled: this.disabled, innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearFocus, onBlur: this.handleClearBlur, variant: "icon", appearance: this.clearButtonFocused
1229
+ ? IcThemeForegroundEnum.Light
1230
+ : IcThemeForegroundEnum.Dark, size: size })), showCalendarButton && (h("div", { class: "show-calendar-button-wrapper" }, h("div", { class: { divider: true, [size]: true } }), h("ic-button", { id: "calendar-button", ref: (el) => (this.calendarButtonEl = el), "aria-label": "Display calendar", "aria-haspopup": "dialog", class: "calendar-button", disabled: this.disabled, innerHTML: Calendar, onClick: this.handleCalendarOpen, variant: "icon", size: size, onFocus: this.handleCalendarFocus, onBlur: this.handleCalendarBlur, appearance: this.calendarFocused
1231
+ ? IcThemeForegroundEnum.Light
1232
+ : IcThemeForegroundEnum.Default })))))), h("span", { id: this.selectedDateInfoId, class: "sr-only", "aria-live": "polite" }, h("span", { ref: (el) => (this.selectedDateInfoEl = el), role: "status" })), (hasCustomValidation || !isEmptyString(this.invalidDateText)) && (h("ic-input-validation", { status: validationStatus, message: hasCustomValidation ? this.validationText : this.invalidDateText, for: inputId })))));
1233
+ }
1234
+ static get delegatesFocus() { return true; }
1235
+ get el() { return this; }
1236
+ static get watchers() { return {
1237
+ "disableFuture": ["watchDisableFutureHandler"],
1238
+ "disablePast": ["watchDisablePastHandler"],
1239
+ "max": ["watchMaxHandler"],
1240
+ "min": ["watchMinHandler"],
1241
+ "required": ["watchRequiredHandler"]
1242
+ }; }
1243
+ static get style() { return icDateInputCss; }
1244
+ }, [17, "ic-date-input", {
1245
+ "dateFormat": [1, "date-format"],
1246
+ "disabled": [4],
1247
+ "disableDays": [1040],
1248
+ "disableDaysMessage": [1, "disable-days-message"],
1249
+ "disableFuture": [4, "disable-future"],
1250
+ "disableFutureMessage": [1, "disable-future-message"],
1251
+ "disablePast": [4, "disable-past"],
1252
+ "disablePastMessage": [1, "disable-past-message"],
1253
+ "helperText": [1025, "helper-text"],
1254
+ "hideHelperText": [4, "hide-helper-text"],
1255
+ "inputId": [1, "input-id"],
1256
+ "invalidDateMessage": [1, "invalid-date-message"],
1257
+ "label": [1],
1258
+ "max": [1],
1259
+ "min": [1],
1260
+ "name": [1],
1261
+ "required": [4],
1262
+ "showCalendarButton": [4, "show-calendar-button"],
1263
+ "showClearButton": [4, "show-clear-button"],
1264
+ "size": [1],
1265
+ "value": [1025],
1266
+ "validationStatus": [1025, "validation-status"],
1267
+ "validationText": [1, "validation-text"],
1268
+ "day": [32],
1269
+ "invalidDateText": [32],
1270
+ "maxDate": [32],
1271
+ "minDate": [32],
1272
+ "month": [32],
1273
+ "year": [32],
1274
+ "calendarFocused": [32],
1275
+ "clearButtonFocused": [32],
1276
+ "removeLabelledBy": [32],
1277
+ "getDate": [64],
1278
+ "setCalendarFocus": [64],
1279
+ "setDisableDays": [64],
1280
+ "triggerIcChange": [64]
1281
+ }, undefined, {
1282
+ "disableFuture": ["watchDisableFutureHandler"],
1283
+ "disablePast": ["watchDisablePastHandler"],
1284
+ "max": ["watchMaxHandler"],
1285
+ "min": ["watchMinHandler"],
1286
+ "required": ["watchRequiredHandler"]
1287
+ }]);
1288
+ function defineCustomElement() {
1289
+ if (typeof customElements === "undefined") {
1290
+ return;
1291
+ }
1292
+ const components = ["ic-date-input", "ic-button", "ic-input-component-container", "ic-input-container", "ic-input-label", "ic-input-validation", "ic-loading-indicator", "ic-tooltip", "ic-typography"];
1293
+ components.forEach(tagName => { switch (tagName) {
1294
+ case "ic-date-input":
1295
+ if (!customElements.get(tagName)) {
1296
+ customElements.define(tagName, DateInput);
1297
+ }
1298
+ break;
1299
+ case "ic-button":
1300
+ if (!customElements.get(tagName)) {
1301
+ defineCustomElement$8();
1302
+ }
1303
+ break;
1304
+ case "ic-input-component-container":
1305
+ if (!customElements.get(tagName)) {
1306
+ defineCustomElement$7();
1307
+ }
1308
+ break;
1309
+ case "ic-input-container":
1310
+ if (!customElements.get(tagName)) {
1311
+ defineCustomElement$6();
1312
+ }
1313
+ break;
1314
+ case "ic-input-label":
1315
+ if (!customElements.get(tagName)) {
1316
+ defineCustomElement$5();
1317
+ }
1318
+ break;
1319
+ case "ic-input-validation":
1320
+ if (!customElements.get(tagName)) {
1321
+ defineCustomElement$4();
1322
+ }
1323
+ break;
1324
+ case "ic-loading-indicator":
1325
+ if (!customElements.get(tagName)) {
1326
+ defineCustomElement$3();
1327
+ }
1328
+ break;
1329
+ case "ic-tooltip":
1330
+ if (!customElements.get(tagName)) {
1331
+ defineCustomElement$2();
1332
+ }
1333
+ break;
1334
+ case "ic-typography":
1335
+ if (!customElements.get(tagName)) {
1336
+ defineCustomElement$1();
1337
+ }
1338
+ break;
1339
+ } });
1340
+ }
1341
+
1342
+ export { DateInput as D, dateInRange as a, getMonthStart as b, dateMatches as c, defineCustomElement as d, getWeekStart as e, getWeekEnd as f, getMonthEnd as g, clampDate as h, createDate as i, yearInRange as y };
1343
+
1344
+ //# sourceMappingURL=ic-date-input2.js.map