@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,1775 @@
1
+ import { h, Host, } from "@stencil/core";
2
+ import { IcInformationStatus, IcThemeForegroundEnum, IcDateInputMonths, IcDayNames, } from "../../utils/types";
3
+ import { convertToDoubleDigits, createDate, dateMatches, extractDateFromZuluDateTime, isDateOrEpoch, splitStringDate, } from "../../utils/date-helpers";
4
+ import { addFormResetListener, getInputDescribedByText, isEmptyString, isNumeric, onComponentRequiredPropUndefined, removeFormResetListener, renderHiddenInput, stringEnumToArray, } from "../../utils/helpers";
5
+ import Clear from "../../assets/clear-icon.svg";
6
+ import Calendar from "../../assets/calendar.svg";
7
+ let inputIds = 0;
8
+ export class DateInput {
9
+ constructor() {
10
+ this.ARIA_INVALID = "aria-invalid";
11
+ this.ARIA_LABEL = "aria-label";
12
+ this.ARIA_LABELLED_BY = "aria-labelledby";
13
+ this.EVENT_OBJECT_STRING = "[object Event]";
14
+ this.FIT_TO_VALUE = "fit-to-value";
15
+ this.initialValue = this.value;
16
+ this.INPUT_EVENT_OBJECT_STRING = "[object InputEvent]";
17
+ this.inputsInOrder = [];
18
+ this.isAfterMax = false;
19
+ this.isBeforeMin = false;
20
+ this.isDateSetFromKeyboardEvent = false;
21
+ this.isDisabledDate = false;
22
+ this.isValidDay = true;
23
+ this.isValidMonth = true;
24
+ this.isValidDate = true;
25
+ this.isZuluTime = false;
26
+ this.KEYBOARD_EVENT_OBJECT_STRING = "[object KeyboardEvent]";
27
+ this.MAX_DAY = 31;
28
+ this.MAX_MONTH = 12;
29
+ this.previousEmittedDate = undefined;
30
+ this.previousSelectedDate = null;
31
+ this.selectedDate = null;
32
+ this.setInputPasteValue = (input, pastedValue) => {
33
+ const inputEl = input;
34
+ inputEl.value = pastedValue;
35
+ inputEl.classList.add(this.FIT_TO_VALUE);
36
+ };
37
+ this.checkSingleCopiedValueIsValid = (input, pastedValue) => {
38
+ let isValid = false;
39
+ const value = Number(pastedValue);
40
+ switch (input) {
41
+ case this.dayInputEl:
42
+ isValid = value >= 1 && value <= this.MAX_DAY;
43
+ break;
44
+ case this.monthInputEl:
45
+ isValid = value >= 1 && value <= this.MAX_MONTH;
46
+ break;
47
+ case this.yearInputEl:
48
+ isValid = true;
49
+ break;
50
+ default:
51
+ isValid = false;
52
+ break;
53
+ }
54
+ return isValid;
55
+ };
56
+ /**
57
+ * Using Object.prototype.string to determine type if event from user
58
+ * @param event - event object used to differentiate keyboard, generic or input event
59
+ * @returns boolean
60
+ */
61
+ this.isKeyboardOrEvent = (event) => {
62
+ return (Object.prototype.toString.call(event) === this.EVENT_OBJECT_STRING ||
63
+ Object.prototype.toString.call(event) ===
64
+ this.KEYBOARD_EVENT_OBJECT_STRING);
65
+ };
66
+ this.setDateValidity = () => {
67
+ if (!isEmptyString(this.day)) {
68
+ this.isValidDay = +this.day > this.MAX_DAY ? false : true;
69
+ }
70
+ else {
71
+ this.isValidDay = true;
72
+ }
73
+ if (!isEmptyString(this.month)) {
74
+ this.isValidMonth = +this.month > this.MAX_MONTH ? false : true;
75
+ }
76
+ else {
77
+ this.isValidMonth = true;
78
+ }
79
+ };
80
+ this.handleInput = (event) => {
81
+ const inputEvent = event;
82
+ const input = event.target;
83
+ if (input !== this.yearInputEl) {
84
+ // Only auto-format if input event is not a character being deleted
85
+ // and not as user is changing value using up / down keys
86
+ if (inputEvent.inputType !== "deleteContentBackward" &&
87
+ !this.preventAutoFormatting) {
88
+ if (input.value.length === 1 &&
89
+ ((input === this.dayInputEl && +input.value >= 4) ||
90
+ (input === this.monthInputEl && +input.value >= 2)) &&
91
+ +input.value <= 9) {
92
+ this.setInputValue(input);
93
+ this.notifyScreenReader(input, event);
94
+ this.moveToNextInput(input);
95
+ }
96
+ if (input.value.length === 2) {
97
+ if (+input.value === 0) {
98
+ input.value = "01";
99
+ }
100
+ this.setInputValue(input);
101
+ this.setPreventInput(input, true);
102
+ this.notifyScreenReader(input, event);
103
+ this.moveToNextInput(input);
104
+ }
105
+ else {
106
+ this.setPreventInput(input, false);
107
+ }
108
+ }
109
+ else if (this.preventAutoFormatting) {
110
+ /**
111
+ * Using arrow keys prevents auto formatting so need to deal with
112
+ * switching from arrow keys to inputting numbers
113
+ **/
114
+ if (input.value.length === 2 && !this.isKeyboardOrEvent(event)) {
115
+ this.setInputValue(input);
116
+ this.setPreventInput(input, true);
117
+ this.moveToNextInput(input);
118
+ }
119
+ else {
120
+ this.setInputValue(input);
121
+ }
122
+ }
123
+ if (input.value.length !== 2) {
124
+ this.setPreventInput(input, false);
125
+ }
126
+ }
127
+ else {
128
+ if (input.value.length === 4) {
129
+ this.setInputValue(input);
130
+ if (Object.prototype.toString.call(event) !== this.EVENT_OBJECT_STRING) {
131
+ this.moveToNextInput(input);
132
+ }
133
+ this.setPreventInput(input, true);
134
+ }
135
+ else {
136
+ this.setInputValue(input, true);
137
+ this.setPreventInput(input, false);
138
+ }
139
+ }
140
+ // Add / remove class to make input width match size of value i.e. 2 digits' width for day / month, 4 for year
141
+ this.setFitToValueStyling(input);
142
+ if (input.value.length === 0) {
143
+ this.setInputValue(input, true);
144
+ this.setValidationMessage();
145
+ }
146
+ this.notifyScreenReader(input, event);
147
+ };
148
+ this.handleKeyDown = (event, isInputPrevented) => {
149
+ const input = event.target;
150
+ const eventKey = event.key.toLowerCase();
151
+ // Regex required due to FF allowing all characters as values for number text field.
152
+ const regex = /-?\d*\.?\d+(e[-+]?\d+)?|[/-]|arrowup|arrowdown|arrowleft|arrowright|shift|tab|backspace|delete/;
153
+ if (!regex.test(eventKey) &&
154
+ !((event.ctrlKey || event.metaKey) &&
155
+ (eventKey === "v" || eventKey === "c"))) {
156
+ event.preventDefault();
157
+ }
158
+ switch (eventKey) {
159
+ case "/":
160
+ case "-":
161
+ case ".":
162
+ event.preventDefault();
163
+ this.setPasteInvalidText();
164
+ this.moveToNextInput(input);
165
+ break;
166
+ case "arrowright":
167
+ case "arrowleft":
168
+ event.preventDefault();
169
+ this.handleLeftRightArrowKeyPress(input, eventKey);
170
+ break;
171
+ case "arrowup":
172
+ case "arrowdown":
173
+ this.preventAutoFormatting = true;
174
+ this.handleUpDownArrowKeyPress(input, event);
175
+ break;
176
+ default:
177
+ break;
178
+ }
179
+ this.preventInput(event, isInputPrevented);
180
+ this.isDateSetFromKeyboardEvent = true;
181
+ };
182
+ this.handleFocus = (event) => {
183
+ // Highlight / select all characters in input for easy replacement
184
+ const input = event.target;
185
+ input.select();
186
+ };
187
+ this.handleBlur = (event) => {
188
+ const input = event.target;
189
+ this.setPasteInvalidText();
190
+ this.autocompleteInput(input);
191
+ };
192
+ this.handleLeftRightArrowKeyPress = (input, key) => {
193
+ if (key === "arrowright") {
194
+ this.moveToNextInput(input);
195
+ }
196
+ else {
197
+ this.moveToPreviousInput(input);
198
+ }
199
+ this.setPasteInvalidText();
200
+ };
201
+ this.notifyScreenReaderSelectedDate = () => {
202
+ const dayNames = stringEnumToArray(IcDayNames);
203
+ const months = stringEnumToArray(IcDateInputMonths);
204
+ this.selectedDateInfoEl.textContent = `Selected date: ${dayNames[this.selectedDate.getDay()]}, ${this.selectedDate.getDate()} ${months[this.selectedDate.getMonth()]} ${this.selectedDate.getFullYear()}`;
205
+ };
206
+ this.handleUpDownArrowKeyPress = (input, event) => {
207
+ const minValue = input === this.yearInputEl ? 0 : 1;
208
+ let maxValue;
209
+ switch (input) {
210
+ case this.dayInputEl:
211
+ maxValue = this.MAX_DAY;
212
+ break;
213
+ case this.monthInputEl:
214
+ maxValue = this.MAX_MONTH;
215
+ break;
216
+ case this.yearInputEl:
217
+ maxValue = 9999;
218
+ }
219
+ // Make value loop round when min / max reached
220
+ if (input === null || input === void 0 ? void 0 : input.value) {
221
+ if (event.key === "ArrowUp") {
222
+ if (+input.value === maxValue) {
223
+ event.preventDefault();
224
+ input.value = `0${minValue}`;
225
+ }
226
+ else {
227
+ input.value =
228
+ +input.value + 1 < 10
229
+ ? `0${+input.value + 1}`
230
+ : (+input.value + 1).toString();
231
+ }
232
+ this.notifyScreenReader(input, event);
233
+ }
234
+ if (event.key === "ArrowDown") {
235
+ if (+input.value === minValue) {
236
+ event.preventDefault();
237
+ input.value = maxValue.toString();
238
+ }
239
+ else {
240
+ input.value =
241
+ +input.value - 1 < 10
242
+ ? `0${+input.value - 1}`
243
+ : (+input.value - 1).toString();
244
+ }
245
+ this.notifyScreenReader(input, event);
246
+ }
247
+ }
248
+ else {
249
+ if (event.key === "ArrowDown") {
250
+ event.preventDefault();
251
+ if (input === this.yearInputEl) {
252
+ input.value = new Date().getFullYear().toString();
253
+ }
254
+ else {
255
+ input.value = maxValue.toString();
256
+ }
257
+ this.notifyScreenReader(input, event);
258
+ }
259
+ else if (event.key === "ArrowUp") {
260
+ event.preventDefault();
261
+ if (input === this.yearInputEl) {
262
+ input.value = new Date().getFullYear().toString();
263
+ }
264
+ else {
265
+ input.value = `0${minValue}`;
266
+ }
267
+ this.notifyScreenReader(input, event);
268
+ }
269
+ }
270
+ this.setInputValue(input);
271
+ this.setFitToValueStyling(input);
272
+ };
273
+ this.handleDateChange = (force) => {
274
+ // Prevent icChange being emitted when each individual input is changed
275
+ // This method is used within componentWillUpdate instead of using @Watch('value');
276
+ if (force || !dateMatches(this.selectedDate, this.previousSelectedDate)) {
277
+ if (this.value) {
278
+ this.inputsInOrder.forEach((input) => {
279
+ input.classList.add(this.FIT_TO_VALUE);
280
+ });
281
+ }
282
+ if (this.day && this.month && this.year && this.invalidDateText === "") {
283
+ this.setValueAndEmitChange(this.selectedDate);
284
+ this.notifyScreenReaderSelectedDate();
285
+ }
286
+ else if (!(this.selectedDate === null && this.previousSelectedDate === null)) {
287
+ this.setValueAndEmitChange(null);
288
+ this.selectedDateInfoEl.textContent = "";
289
+ }
290
+ this.previousSelectedDate = this.selectedDate;
291
+ if (!this.isDateSetFromKeyboardEvent) {
292
+ this.updateInputValues(this.day, this.month, this.year);
293
+ }
294
+ }
295
+ };
296
+ this.slicePastedDate = (valueLength, datePart) => {
297
+ return datePart.length > valueLength
298
+ ? datePart.slice(0, valueLength)
299
+ : datePart;
300
+ };
301
+ this.isPastedStringDateValid = (value) => {
302
+ if (/\d+-\d+-\d+$/.test(value) ||
303
+ /\d+\/\d+\/\d+/.test(value) ||
304
+ /\d+\.\d+\.\d+/.test(value)) {
305
+ return true;
306
+ }
307
+ if (/[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}(?::[0-9]{2}(?:\.\d+)?)?Z/.test(value)) {
308
+ this.isZuluTime = true;
309
+ return true;
310
+ }
311
+ return false;
312
+ };
313
+ // Set value of each input to value of pasted date part
314
+ // Allows formats separated by '-' or '/'
315
+ this.handlePaste = (event) => {
316
+ event.preventDefault();
317
+ const pastedValue = event.clipboardData.getData("Text");
318
+ const isValidDate = this.isPastedStringDateValid(pastedValue);
319
+ this.setPastedValueAndValidation(isValidDate, pastedValue, event);
320
+ };
321
+ this.setDate = (date) => {
322
+ if (date === null || date === "" || date === undefined) {
323
+ this.day = null;
324
+ this.month = null;
325
+ this.year = null;
326
+ this.inputsInOrder.forEach((input) => {
327
+ input.classList.remove(this.FIT_TO_VALUE);
328
+ this.setPreventInput(input, false);
329
+ });
330
+ this.handleDateChange(true);
331
+ }
332
+ else {
333
+ if (isDateOrEpoch(date)) {
334
+ let newDate;
335
+ if (typeof date === "string") {
336
+ // Checking if epoch date time
337
+ newDate = new Date(+date);
338
+ }
339
+ else {
340
+ newDate = date;
341
+ }
342
+ this.day = convertToDoubleDigits(newDate.getDate());
343
+ this.month = convertToDoubleDigits(newDate.getMonth() + 1);
344
+ this.year = newDate.getFullYear().toString();
345
+ }
346
+ else if (typeof date === "string") {
347
+ const defaultDateArray = splitStringDate(date, this.dateFormat);
348
+ this.year = defaultDateArray[0];
349
+ this.month = defaultDateArray[1];
350
+ this.day = defaultDateArray[2];
351
+ }
352
+ }
353
+ this.setValidationMessage();
354
+ };
355
+ this.formatMinMax = (date) => {
356
+ let formattedDate;
357
+ const day = convertToDoubleDigits(date.getDate());
358
+ const month = convertToDoubleDigits(date.getMonth() + 1);
359
+ const year = date.getFullYear();
360
+ switch (this.dateFormat) {
361
+ case "DD/MM/YYYY":
362
+ formattedDate = `${day}/${month}/${year}`;
363
+ break;
364
+ case "MM/DD/YYYY":
365
+ formattedDate = `${month}/${day}/${year}`;
366
+ break;
367
+ case "YYYY/MM/DD":
368
+ formattedDate = `${year}/${month}/${day}`;
369
+ break;
370
+ default:
371
+ break;
372
+ }
373
+ return formattedDate;
374
+ };
375
+ this.updateInputValues = (day, month, year) => {
376
+ this.dayInputEl.value = day;
377
+ this.monthInputEl.value = month;
378
+ this.yearInputEl.value = year;
379
+ };
380
+ // Set value in state based on input
381
+ this.setInputValue = (input, clear = false) => {
382
+ const newValue = clear ? "" : input.value;
383
+ switch (input) {
384
+ case this.dayInputEl:
385
+ this.day = newValue;
386
+ break;
387
+ case this.monthInputEl:
388
+ this.month = newValue;
389
+ break;
390
+ case this.yearInputEl:
391
+ if (this.year !== newValue) {
392
+ this.year = newValue;
393
+ }
394
+ }
395
+ this.setValidationMessage();
396
+ };
397
+ this.setValidationMessage = () => {
398
+ this.setDateValidity();
399
+ if (!isEmptyString(this.day) &&
400
+ !isEmptyString(this.month) &&
401
+ !isEmptyString(this.year)) {
402
+ // Check whether date actually exists
403
+ // (used https://www.hectane.com/blog/javascript-date-validation-with-leap-year)
404
+ this.selectedDate = this.convertToDate(this.year, this.month, this.day);
405
+ this.isValidDate =
406
+ +this.selectedDate !== 0 && this.selectedDate.getDate() == +this.day;
407
+ this.isDisabledDate = this.isSelectedDateDisabled();
408
+ if (!this.isValidDate || this.isDisabledDate) {
409
+ this.inputsInOrder.forEach((input) => input.setAttribute(this.ARIA_INVALID, "true"));
410
+ }
411
+ else {
412
+ this.inputsInOrder.forEach((input) => input.removeAttribute(this.ARIA_INVALID));
413
+ }
414
+ }
415
+ else {
416
+ this.selectedDate = null;
417
+ }
418
+ if (!(this.isValidDay && this.isValidMonth && this.isValidDate)) {
419
+ this.invalidDateText = this.invalidDateMessage;
420
+ }
421
+ else if (this.isDisabledDate && this.selectedDate !== null) {
422
+ if (this.isBeforeMin) {
423
+ if (this.disablePast) {
424
+ this.invalidDateText = this.disablePastMessage;
425
+ }
426
+ else {
427
+ this.invalidDateText = `Please enter a date after ${this.formatMinMax(this.minDate)}.`;
428
+ }
429
+ }
430
+ else if (this.isAfterMax) {
431
+ if (this.disableFuture) {
432
+ this.invalidDateText = this.disableFutureMessage;
433
+ }
434
+ else {
435
+ this.invalidDateText = `Please enter a date before ${this.formatMinMax(this.maxDate)}.`;
436
+ }
437
+ }
438
+ else if (this.disableDays.length !== 0) {
439
+ this.invalidDateText = this.disableDaysMessage;
440
+ }
441
+ else {
442
+ if (this.disablePast) {
443
+ this.invalidDateText = this.disablePastMessage;
444
+ }
445
+ if (this.disableFuture) {
446
+ this.invalidDateText = this.disableFutureMessage;
447
+ }
448
+ }
449
+ }
450
+ else {
451
+ this.invalidDateText = "";
452
+ }
453
+ };
454
+ // Set refs to the input elements in the order they are displayed (based on the dateFormat)
455
+ this.setInputsInOrder = () => {
456
+ const inputs = this.el.shadowRoot.querySelectorAll("input");
457
+ inputs.forEach((input) => this.inputsInOrder.push(input));
458
+ };
459
+ // Includes text usually added using aria-describedby
460
+ // (which doesn't work on input component container)
461
+ this.setAriaLabelledBy = () => {
462
+ var _a;
463
+ if (this.disabled &&
464
+ !isEmptyString((_a = this.inputCompContainerEl) === null || _a === void 0 ? void 0 : _a.getAttribute(this.ARIA_LABELLED_BY))) {
465
+ this.removeAriaLabelledBy();
466
+ return;
467
+ }
468
+ if (this.disabled) {
469
+ return;
470
+ }
471
+ const labelEl = this.el.shadowRoot.querySelector("label");
472
+ const labelId = `${this.inputId}-label`;
473
+ if (labelEl !== null && labelEl !== undefined) {
474
+ labelEl.id = labelId;
475
+ const hasValidation = (!isEmptyString(this.validationStatus) &&
476
+ !isEmptyString(this.validationText)) ||
477
+ !isEmptyString(this.invalidDateText);
478
+ const labelledBy = `${labelId} ${this.screenReaderInfoId} ${getInputDescribedByText(this.inputId, this.helperText !== "" && this.helperText !== this.defaultHelperText, hasValidation)} ${this.selectedDate ? this.selectedDateInfoId : ""} ${this.assistiveHintId}`;
479
+ this.inputCompContainerEl.setAttribute(this.ARIA_LABELLED_BY, labelledBy);
480
+ }
481
+ };
482
+ // Sets boolean for each input, used to limit the number of characters within each field (2 for day / month, 4 for year)
483
+ this.setPreventInput = (input, isPrevented) => {
484
+ switch (input) {
485
+ case this.dayInputEl:
486
+ this.preventDayInput = isPrevented;
487
+ break;
488
+ case this.monthInputEl:
489
+ this.preventMonthInput = isPrevented;
490
+ break;
491
+ case this.yearInputEl:
492
+ this.preventYearInput = isPrevented;
493
+ }
494
+ };
495
+ // Get input based on letter representing each date part ("D", "M" or "Y")
496
+ // (retrieved from dateFormat)
497
+ this.getInputFromDatePart = (datePart) => {
498
+ 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) }));
499
+ 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) }));
500
+ 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) }));
501
+ let input;
502
+ switch (datePart) {
503
+ case "D":
504
+ input = dayInput;
505
+ break;
506
+ case "M":
507
+ input = monthInput;
508
+ break;
509
+ case "Y":
510
+ input = yearInput;
511
+ }
512
+ return input;
513
+ };
514
+ // Get input elements in order of chosen date format
515
+ this.getInputsInOrder = () => {
516
+ const dateParts = this.dateFormat.split("/");
517
+ const inputsInOrder = [];
518
+ dateParts.forEach((part) => {
519
+ inputsInOrder.push(this.getInputFromDatePart(part.substring(0, 1)));
520
+ });
521
+ return inputsInOrder;
522
+ };
523
+ // To add to the end of assistive hint to make it clearer that each date part has its own input
524
+ // that can be changed individually
525
+ this.getDescOfInputsOrder = () => {
526
+ let description;
527
+ switch (this.dateFormat) {
528
+ case "DD/MM/YYYY":
529
+ description = "day, month, and year";
530
+ break;
531
+ case "MM/DD/YYYY":
532
+ description = "month, day, and year";
533
+ break;
534
+ case "YYYY/MM/DD":
535
+ description = "year, month, and day";
536
+ }
537
+ return description;
538
+ };
539
+ // Add 'required' or 'invalid data' to span used in aria-labelledby
540
+ // Many ARIA attributes aren't read out by screen reader when on the input component container
541
+ this.getScreenReaderInfo = (validationStatus) => {
542
+ let inputDescriptors = "";
543
+ if (this.required) {
544
+ inputDescriptors += "required";
545
+ }
546
+ if (validationStatus === IcInformationStatus.Error) {
547
+ inputDescriptors += " invalid data";
548
+ }
549
+ return inputDescriptors === "" ? "" : inputDescriptors + ", ";
550
+ };
551
+ // Prevent non-number characters being entered
552
+ // ('e' or '.' - which are usually allowed in <input type="number">)
553
+ // And limit the number of characters within each field (2 for day / month, 4 for year)
554
+ // (because 'maxlength' doesn't work on <input type="number">)
555
+ this.preventInput = (event, isInputPrevented) => {
556
+ const key = event.key;
557
+ const input = event.target;
558
+ let selectedString;
559
+ if (input) {
560
+ selectedString = input.value.substring(input.selectionStart, input.selectionEnd);
561
+ }
562
+ if (key === "e" ||
563
+ key === "." ||
564
+ key === "-" ||
565
+ (event.key >= "0" &&
566
+ event.key <= "9" &&
567
+ isInputPrevented &&
568
+ !selectedString)) {
569
+ event.preventDefault();
570
+ }
571
+ };
572
+ // Get whether date has been disabled using disableFuture or disablePast prop, but always allow current day
573
+ // Consider using dateClamp and inDateRange
574
+ this.isSelectedDateDisabled = () => {
575
+ const currentDate = new Date();
576
+ this.isAfterMax = false;
577
+ this.isBeforeMin = false;
578
+ let disabled = false;
579
+ const isNotToday = this.selectedDate.toDateString() !== currentDate.toDateString();
580
+ if (this.minDate && this.selectedDate < this.minDate && isNotToday) {
581
+ this.isBeforeMin = true;
582
+ disabled = true;
583
+ }
584
+ if (this.maxDate && this.selectedDate > this.maxDate && isNotToday) {
585
+ this.isAfterMax = true;
586
+ disabled = true;
587
+ }
588
+ if (this.disableDays.includes(this.selectedDate.getDay())) {
589
+ disabled = true;
590
+ }
591
+ if (((this.disablePast && this.selectedDate < currentDate) ||
592
+ (this.disableFuture && this.selectedDate > currentDate)) &&
593
+ isNotToday) {
594
+ disabled = true;
595
+ }
596
+ return disabled;
597
+ };
598
+ this.moveToNextInput = (currentInput) => {
599
+ const currentInputPos = this.inputsInOrder.findIndex((input) => input === currentInput);
600
+ const nextInput = this.inputsInOrder[currentInputPos + 1];
601
+ this.preventAutoFormatting = false;
602
+ if (nextInput) {
603
+ nextInput.focus();
604
+ }
605
+ };
606
+ this.moveToPreviousInput = (currentInput) => {
607
+ const currentInputPos = this.inputsInOrder.findIndex((input) => input === currentInput);
608
+ this.preventAutoFormatting = false;
609
+ if (this.inputsInOrder[currentInputPos - 1]) {
610
+ this.inputsInOrder[currentInputPos - 1].focus();
611
+ }
612
+ };
613
+ this.autocompleteInput = (input) => {
614
+ if (input === this.yearInputEl) {
615
+ this.autocompleteYear();
616
+ }
617
+ else {
618
+ const inputValue = input.value;
619
+ // Autocomplete input as 2 characters (leading zero) when only 1 character entered (for day and month)
620
+ if (inputValue.length === 1) {
621
+ if (+inputValue === 0) {
622
+ input.value = "01";
623
+ }
624
+ else {
625
+ input.value = `0${inputValue}`;
626
+ }
627
+ }
628
+ }
629
+ if (input.value) {
630
+ this.setInputValue(input);
631
+ }
632
+ };
633
+ // Autocomplete year as current millennium when fewer than 4 characters entered
634
+ this.autocompleteYear = () => {
635
+ const inputValue = this.yearInputEl.value;
636
+ const yearNumbers = ["2", "0", "0"];
637
+ let autocompletedInput = "";
638
+ if (inputValue) {
639
+ yearNumbers.forEach((number, index) => {
640
+ if (inputValue.length + index <= 3) {
641
+ autocompletedInput += number;
642
+ }
643
+ });
644
+ this.yearInputEl.value = `${autocompletedInput}${inputValue}`;
645
+ }
646
+ };
647
+ this.convertToDate = (year, month, day) => {
648
+ if (!isEmptyString(year) && !isEmptyString(month) && !isEmptyString(day)) {
649
+ return new Date(+year, +month - 1, +day);
650
+ }
651
+ else {
652
+ return null;
653
+ }
654
+ };
655
+ this.handleHostBlur = () => {
656
+ this.removeLabelledBy = false;
657
+ this.icBlur.emit({ value: this.selectedDate });
658
+ };
659
+ this.handleHostFocus = () => {
660
+ var _a;
661
+ if ((_a = this.el.shadowRoot.activeElement) === null || _a === void 0 ? void 0 : _a.id.match(/(day|month|year)-input$/)) {
662
+ this.removeLabelledBy = false;
663
+ }
664
+ else {
665
+ this.removeLabelledBy = true;
666
+ }
667
+ this.icFocus.emit({ value: this.selectedDate });
668
+ };
669
+ this.handleFormReset = () => {
670
+ // Get the initial value and populate day, month and year again.
671
+ this.setDate(this.initialValue);
672
+ this.setValidationMessage();
673
+ this.handleDateChange(false);
674
+ };
675
+ this.getAriaLabel = (input) => {
676
+ return input.getAttribute(this.ARIA_LABEL);
677
+ };
678
+ this.notifyScreenReaderArrowKeys = (input) => {
679
+ const liveRegion = this.el.shadowRoot.querySelector("#live-region");
680
+ let announcement = "";
681
+ const ariaLabel = this.getAriaLabel(input);
682
+ if (liveRegion && input.value) {
683
+ if (input === this.monthInputEl &&
684
+ !!IcDateInputMonths[+input.value - 1]) {
685
+ announcement = `${input.value} - ${IcDateInputMonths[+input.value - 1]}, ${ariaLabel}`;
686
+ }
687
+ if (input === this.dayInputEl || input === this.yearInputEl) {
688
+ announcement = `${input.value}, ${ariaLabel}`;
689
+ }
690
+ liveRegion.textContent = announcement;
691
+ }
692
+ };
693
+ this.notifyScreenReaderInput = (input, liveRegion) => {
694
+ let announcement = "";
695
+ const ariaLabel = this.getAriaLabel(input);
696
+ if (input === this.dayInputEl || input === this.monthInputEl) {
697
+ if (input.value.length === 2) {
698
+ if (input === this.monthInputEl &&
699
+ !!IcDateInputMonths[+input.value - 1] &&
700
+ this.isValidMonth) {
701
+ announcement = `${input.value} - ${IcDateInputMonths[+input.value - 1]}, ${ariaLabel}`;
702
+ }
703
+ if (input === this.dayInputEl && this.isValidDay) {
704
+ announcement = `${input.value}, ${ariaLabel}`;
705
+ }
706
+ }
707
+ else {
708
+ announcement = "";
709
+ }
710
+ }
711
+ else {
712
+ if (input.value.length === 4) {
713
+ announcement = `${input.value}, ${ariaLabel}`;
714
+ }
715
+ else {
716
+ announcement = "";
717
+ }
718
+ }
719
+ liveRegion.textContent = announcement;
720
+ };
721
+ this.setFitToValueStyling = (input) => {
722
+ if (input.value) {
723
+ input.classList.add(this.FIT_TO_VALUE);
724
+ }
725
+ else {
726
+ input.classList.remove(this.FIT_TO_VALUE);
727
+ }
728
+ };
729
+ this.setAriaInvalid = (validDay, validMonth, validDate, disabledDate) => {
730
+ if (this.inputsInOrder.length) {
731
+ this.inputsInOrder.forEach((input) => {
732
+ input.removeAttribute(this.ARIA_INVALID);
733
+ });
734
+ if (!validDay) {
735
+ this.dayInputEl.setAttribute(this.ARIA_INVALID, "true");
736
+ }
737
+ if (!validMonth) {
738
+ this.monthInputEl.setAttribute(this.ARIA_INVALID, "true");
739
+ }
740
+ if (!validDate || disabledDate) {
741
+ this.inputsInOrder.forEach((input) => {
742
+ input.setAttribute(this.ARIA_INVALID, "true");
743
+ });
744
+ }
745
+ }
746
+ };
747
+ this.handleClear = () => {
748
+ this.inputsInOrder.forEach((input) => {
749
+ input.classList.remove(this.FIT_TO_VALUE);
750
+ this.setInputValue(input, true);
751
+ this.setPreventInput(input, false);
752
+ });
753
+ this.isDateSetFromKeyboardEvent = false;
754
+ this.setValidationMessage();
755
+ this.handleDateChange(true);
756
+ this.inputsInOrder[0].focus();
757
+ };
758
+ this.handleCalendarOpen = (ev) => {
759
+ var _a, _b;
760
+ ev.stopImmediatePropagation();
761
+ (_a = this.calendarButtonEl) === null || _a === void 0 ? void 0 : _a.shadowRoot.querySelector("ic-tooltip").displayTooltip(false);
762
+ this.calendarButtonClicked.emit({ value: this.selectedDate });
763
+ (_b = this.calendarButtonEl) === null || _b === void 0 ? void 0 : _b.shadowRoot.querySelector("ic-tooltip").displayTooltip(false);
764
+ this.isDateSetFromKeyboardEvent = false;
765
+ };
766
+ this.setValueAndEmitChange = (value) => {
767
+ if (!dateMatches(new Date(this.value), value)) {
768
+ this.emitIcChange(value);
769
+ this.value = value;
770
+ }
771
+ };
772
+ this.handleCalendarFocus = () => {
773
+ this.calendarFocused = true;
774
+ };
775
+ this.handleCalendarBlur = () => {
776
+ this.calendarFocused = false;
777
+ };
778
+ this.handleClearFocus = () => {
779
+ this.removeLabelledBy = true;
780
+ this.clearButtonFocused = true;
781
+ };
782
+ this.handleClearBlur = (ev) => {
783
+ var _a;
784
+ this.clearButtonFocused = false;
785
+ if ((_a = ev.relatedTarget) === null || _a === void 0 ? void 0 : _a.id.match(/(day|year)-input$/)) {
786
+ this.removeLabelledBy = false;
787
+ return;
788
+ }
789
+ this.removeLabelledBy = true;
790
+ };
791
+ this.emitIcChange = (d) => {
792
+ if (!(d === null && this.previousEmittedDate === null) &&
793
+ !dateMatches(d, this.previousEmittedDate)) {
794
+ this.previousEmittedDate = d;
795
+ this.icChange.emit({ value: d });
796
+ }
797
+ };
798
+ this.day = "";
799
+ this.invalidDateText = undefined;
800
+ this.maxDate = undefined;
801
+ this.minDate = undefined;
802
+ this.month = "";
803
+ this.year = "";
804
+ this.calendarFocused = false;
805
+ this.clearButtonFocused = false;
806
+ this.removeLabelledBy = false;
807
+ this.dateFormat = "DD/MM/YYYY";
808
+ this.disabled = false;
809
+ this.disableDays = [];
810
+ this.disableDaysMessage = "The date you have selected is on a day of the week that is not allowed. Please select another date.";
811
+ this.disableFuture = false;
812
+ this.disableFutureMessage = "Dates in the future are not allowed. Please select a date in the past.";
813
+ this.disablePast = false;
814
+ this.disablePastMessage = "Dates in the past are not allowed. Please select a date in the future.";
815
+ this.helperText = undefined;
816
+ this.hideHelperText = false;
817
+ this.inputId = `ic-date-input-${inputIds++}`;
818
+ this.invalidDateMessage = "Please enter a valid date.";
819
+ this.label = undefined;
820
+ this.max = "";
821
+ this.min = "";
822
+ this.name = this.inputId;
823
+ this.required = false;
824
+ this.showCalendarButton = false;
825
+ this.showClearButton = true;
826
+ this.size = "medium";
827
+ this.value = "";
828
+ this.validationStatus = "";
829
+ this.validationText = "";
830
+ }
831
+ watchDisableFutureHandler() {
832
+ this.watchMaxHandler();
833
+ }
834
+ watchDisablePastHandler() {
835
+ this.watchMinHandler();
836
+ }
837
+ watchMaxHandler() {
838
+ if (this.disableFuture) {
839
+ this.maxDate = new Date();
840
+ }
841
+ else {
842
+ this.maxDate = createDate(this.max, this.dateFormat);
843
+ }
844
+ }
845
+ watchMinHandler() {
846
+ if (this.disablePast) {
847
+ this.minDate = new Date();
848
+ }
849
+ else {
850
+ this.minDate = createDate(this.min, this.dateFormat);
851
+ }
852
+ }
853
+ watchRequiredHandler() {
854
+ // Prevent asterisk being read out after the label by screen reader (by applying aria-hidden)
855
+ // Needed because label is included in 'aria-labelledby' instead of using 'aria-label'
856
+ const labelEl = this.el.shadowRoot.querySelector("label");
857
+ if (this.required) {
858
+ const asteriskSpan = document.createElement("span");
859
+ asteriskSpan.setAttribute("id", "asterisk-span");
860
+ asteriskSpan.setAttribute("aria-hidden", "true");
861
+ asteriskSpan.textContent = " *";
862
+ labelEl === null || labelEl === void 0 ? void 0 : labelEl.appendChild(asteriskSpan);
863
+ }
864
+ else {
865
+ const asteriskSpan = this.el.shadowRoot.querySelector("#asterisk-span");
866
+ if (asteriskSpan) {
867
+ asteriskSpan.remove();
868
+ }
869
+ }
870
+ }
871
+ disconnectedCallback() {
872
+ removeFormResetListener(this.el, this.handleFormReset);
873
+ }
874
+ componentWillLoad() {
875
+ this.defaultHelperText = `Use format ${this.dateFormat}`;
876
+ if (isEmptyString(this.helperText))
877
+ this.helperText = this.defaultHelperText;
878
+ this.watchMinHandler();
879
+ this.watchMaxHandler();
880
+ if (this.value) {
881
+ this.setDate(this.value);
882
+ this.previousEmittedDate = this.selectedDate;
883
+ }
884
+ else {
885
+ this.previousEmittedDate = null;
886
+ }
887
+ this.screenReaderInfoId = `${this.inputId}-screen-reader-info`;
888
+ this.assistiveHintId = `${this.inputId}-assistive-hint`;
889
+ this.selectedDateInfoId = `${this.inputId}-selected-date-info`;
890
+ addFormResetListener(this.el, this.handleFormReset);
891
+ }
892
+ componentDidLoad() {
893
+ this.setInputsInOrder();
894
+ onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Date Input");
895
+ if (this.value) {
896
+ this.updateInputValues(this.day, this.month, this.year);
897
+ this.inputsInOrder.forEach((input) => {
898
+ input.classList.add(this.FIT_TO_VALUE);
899
+ });
900
+ }
901
+ this.setAriaInvalid(this.isValidDay, this.isValidMonth, this.isValidDate, this.isDisabledDate);
902
+ if (this.value) {
903
+ this.notifyScreenReaderSelectedDate();
904
+ }
905
+ this.inputsInOrder.forEach((input) => {
906
+ input.addEventListener("input", this.handleInput);
907
+ input.addEventListener("focus", this.handleFocus);
908
+ input.addEventListener("blur", this.handleBlur);
909
+ });
910
+ this.watchRequiredHandler();
911
+ }
912
+ componentWillUpdate() {
913
+ if (isEmptyString(this.helperText))
914
+ this.helperText = this.defaultHelperText;
915
+ if (!this.isDateSetFromKeyboardEvent)
916
+ this.setDate(this.value);
917
+ this.setAriaInvalid(this.isValidDay, this.isValidMonth, this.isValidDate, this.isDisabledDate);
918
+ this.handleDateChange(false);
919
+ this.isDateSetFromKeyboardEvent = false;
920
+ }
921
+ componentDidRender() {
922
+ if (this.removeLabelledBy) {
923
+ this.removeAriaLabelledBy();
924
+ return;
925
+ }
926
+ this.setAriaLabelledBy();
927
+ }
928
+ /**
929
+ * Returns the value as a Date object
930
+ * @returns Date
931
+ */
932
+ async getDate() {
933
+ return this.selectedDate;
934
+ }
935
+ /**
936
+ * @internal Sets focus on the calendar button.
937
+ */
938
+ async setCalendarFocus() {
939
+ if (this.calendarButtonEl) {
940
+ this.calendarButtonEl.focus();
941
+ }
942
+ }
943
+ /**
944
+ * @internal Used to pass disabledDays from parent component.
945
+ */
946
+ async setDisableDays(days) {
947
+ this.disableDays = days;
948
+ }
949
+ /**
950
+ * @internal Used to enable other components to invoke an IcChange event from the input.
951
+ */
952
+ async triggerIcChange(d) {
953
+ this.emitIcChange(d);
954
+ }
955
+ removeAriaLabelledBy() {
956
+ this.inputCompContainerEl.removeAttribute(this.ARIA_LABELLED_BY);
957
+ }
958
+ setPastedValueAndValidation(isValidDate, pastedValue, event) {
959
+ switch (true) {
960
+ case isValidDate: {
961
+ const nextParsedValue = this.isZuluTime
962
+ ? extractDateFromZuluDateTime(pastedValue)
963
+ : pastedValue;
964
+ const dateParts = nextParsedValue.split(/-|\/|\./);
965
+ this.inputsInOrder.forEach((input, index) => {
966
+ input.classList.add(this.FIT_TO_VALUE);
967
+ if (this.isZuluTime) {
968
+ this.pasteZuluDateTime(dateParts, index);
969
+ }
970
+ else {
971
+ let dateValue;
972
+ if (input === this.dayInputEl || input === this.monthInputEl) {
973
+ dateValue = this.slicePastedDate(2, dateParts[index]);
974
+ }
975
+ else {
976
+ dateValue = this.slicePastedDate(4, dateParts[index]);
977
+ }
978
+ input.value = dateValue;
979
+ this.setInputValue(input);
980
+ this.autocompleteInput(input);
981
+ }
982
+ });
983
+ this.isZuluTime = false;
984
+ break;
985
+ }
986
+ case (pastedValue.length === 1 ||
987
+ pastedValue.length === 2 ||
988
+ pastedValue.length === 4) &&
989
+ isNumeric(pastedValue):
990
+ if (this.checkSingleCopiedValueIsValid(event.target, pastedValue)) {
991
+ // Check if copied value can be pasted into input
992
+ this.setInputPasteValue(event.target, pastedValue);
993
+ this.setInputValue(event.target);
994
+ }
995
+ else {
996
+ this.displayPastedValidation(event);
997
+ }
998
+ break;
999
+ case pastedValue.length === 3 && isNumeric(pastedValue):
1000
+ if (event.target !== this.yearInputEl) {
1001
+ this.displayPastedValidation(event);
1002
+ }
1003
+ else {
1004
+ this.setInputPasteValue(event.target, pastedValue);
1005
+ this.setInputValue(event.target);
1006
+ }
1007
+ break;
1008
+ case pastedValue.length >= 5 && isNumeric(pastedValue):
1009
+ this.displayPastedValidation(event);
1010
+ }
1011
+ }
1012
+ pasteZuluDateTime(dateParts, index) {
1013
+ // ['YYYY', 'MM', 'DD']
1014
+ if (index === 0) {
1015
+ const dateValue = this.slicePastedDate(4, dateParts[index]);
1016
+ this.yearInputEl.value = dateValue;
1017
+ this.setInputValue(this.yearInputEl);
1018
+ }
1019
+ else if (index === 1) {
1020
+ // The month value is the second item in the array
1021
+ const dateValue = this.slicePastedDate(2, dateParts[index]);
1022
+ this.monthInputEl.value = dateValue;
1023
+ this.setInputValue(this.monthInputEl);
1024
+ }
1025
+ else {
1026
+ const dateValue = this.slicePastedDate(2, dateParts[index]);
1027
+ this.dayInputEl.value = dateValue;
1028
+ this.setInputValue(this.dayInputEl);
1029
+ }
1030
+ }
1031
+ displayPastedValidation(event) {
1032
+ var _a;
1033
+ if (((_a = this.invalidDateText) === null || _a === void 0 ? void 0 : _a.length) > 0) {
1034
+ this.previousInvalidDateTest = this.invalidDateText;
1035
+ }
1036
+ this.invalidDateText = `Please paste a valid ${this.getAriaLabel(event.target)}`;
1037
+ this.validationStatus = IcInformationStatus.Error;
1038
+ this.isPasteValidationDisplayed = true;
1039
+ }
1040
+ setPasteInvalidText() {
1041
+ var _a;
1042
+ if (this.isPasteValidationDisplayed) {
1043
+ this.invalidDateText = (_a = this.previousInvalidDateTest) !== null && _a !== void 0 ? _a : "";
1044
+ this.isPasteValidationDisplayed = false;
1045
+ // This is to prevent setDate from triggering within componentWillUpdate
1046
+ this.isDateSetFromKeyboardEvent = true;
1047
+ }
1048
+ }
1049
+ notifyScreenReader(input, event) {
1050
+ const liveRegion = this.el.shadowRoot.querySelector("#live-region");
1051
+ if (liveRegion) {
1052
+ if (this.isKeyboardOrEvent(event)) {
1053
+ this.notifyScreenReaderArrowKeys(input);
1054
+ }
1055
+ else if (Object.prototype.toString.call(event) === this.INPUT_EVENT_OBJECT_STRING) {
1056
+ this.notifyScreenReaderInput(input, liveRegion);
1057
+ }
1058
+ }
1059
+ }
1060
+ render() {
1061
+ const { inputId, label, disabled, helperText, hideHelperText, showClearButton, showCalendarButton, size, } = this;
1062
+ const hasCustomValidation = !isEmptyString(this.validationStatus) &&
1063
+ !isEmptyString(this.validationText);
1064
+ const validationStatus = hasCustomValidation
1065
+ ? this.validationStatus
1066
+ : !isEmptyString(this.invalidDateText)
1067
+ ? IcInformationStatus.Error
1068
+ : "";
1069
+ const assistiveHint = `Type or use the up and down arrow keys to change the values for the ${this.getDescOfInputsOrder()}.`;
1070
+ renderHiddenInput(true, this.el, this.name, this.convertToDate(this.year, this.month, this.day), this.disabled);
1071
+ 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: {
1072
+ ["clear-button"]: true,
1073
+ ["hidden"]: isEmptyString(this.day) &&
1074
+ isEmptyString(this.month) &&
1075
+ isEmptyString(this.year),
1076
+ }, disabled: this.disabled, innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearFocus, onBlur: this.handleClearBlur, variant: "icon", appearance: this.clearButtonFocused
1077
+ ? IcThemeForegroundEnum.Light
1078
+ : 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
1079
+ ? IcThemeForegroundEnum.Light
1080
+ : 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 })))));
1081
+ }
1082
+ static get is() { return "ic-date-input"; }
1083
+ static get encapsulation() { return "shadow"; }
1084
+ static get delegatesFocus() { return true; }
1085
+ static get originalStyleUrls() {
1086
+ return {
1087
+ "$": ["ic-date-input.css"]
1088
+ };
1089
+ }
1090
+ static get styleUrls() {
1091
+ return {
1092
+ "$": ["ic-date-input.css"]
1093
+ };
1094
+ }
1095
+ static get properties() {
1096
+ return {
1097
+ "dateFormat": {
1098
+ "type": "string",
1099
+ "mutable": false,
1100
+ "complexType": {
1101
+ "original": "IcDateFormat",
1102
+ "resolved": "\"DD/MM/YYYY\" | \"MM/DD/YYYY\" | \"YYYY/MM/DD\"",
1103
+ "references": {
1104
+ "IcDateFormat": {
1105
+ "location": "import",
1106
+ "path": "../../utils/types",
1107
+ "id": "src/utils/types.ts::IcDateFormat"
1108
+ }
1109
+ }
1110
+ },
1111
+ "required": false,
1112
+ "optional": true,
1113
+ "docs": {
1114
+ "tags": [],
1115
+ "text": "The format in which the date will be displayed."
1116
+ },
1117
+ "attribute": "date-format",
1118
+ "reflect": false,
1119
+ "defaultValue": "\"DD/MM/YYYY\""
1120
+ },
1121
+ "disabled": {
1122
+ "type": "boolean",
1123
+ "mutable": false,
1124
+ "complexType": {
1125
+ "original": "boolean",
1126
+ "resolved": "boolean",
1127
+ "references": {}
1128
+ },
1129
+ "required": false,
1130
+ "optional": true,
1131
+ "docs": {
1132
+ "tags": [],
1133
+ "text": "If `true`, the disabled state will be set."
1134
+ },
1135
+ "attribute": "disabled",
1136
+ "reflect": false,
1137
+ "defaultValue": "false"
1138
+ },
1139
+ "disableDays": {
1140
+ "type": "unknown",
1141
+ "mutable": true,
1142
+ "complexType": {
1143
+ "original": "IcWeekDays[]",
1144
+ "resolved": "IcWeekDays[]",
1145
+ "references": {
1146
+ "IcWeekDays": {
1147
+ "location": "import",
1148
+ "path": "../../utils/types",
1149
+ "id": "src/utils/types.ts::IcWeekDays"
1150
+ }
1151
+ }
1152
+ },
1153
+ "required": false,
1154
+ "optional": true,
1155
+ "docs": {
1156
+ "tags": [],
1157
+ "text": "The days of the week to disable."
1158
+ },
1159
+ "defaultValue": "[]"
1160
+ },
1161
+ "disableDaysMessage": {
1162
+ "type": "string",
1163
+ "mutable": false,
1164
+ "complexType": {
1165
+ "original": "string",
1166
+ "resolved": "string",
1167
+ "references": {}
1168
+ },
1169
+ "required": false,
1170
+ "optional": true,
1171
+ "docs": {
1172
+ "tags": [],
1173
+ "text": "The text to display as the validation message when `disableDays` is set and a disabled date is entered."
1174
+ },
1175
+ "attribute": "disable-days-message",
1176
+ "reflect": false,
1177
+ "defaultValue": "\"The date you have selected is on a day of the week that is not allowed. Please select another date.\""
1178
+ },
1179
+ "disableFuture": {
1180
+ "type": "boolean",
1181
+ "mutable": false,
1182
+ "complexType": {
1183
+ "original": "boolean",
1184
+ "resolved": "boolean",
1185
+ "references": {}
1186
+ },
1187
+ "required": false,
1188
+ "optional": true,
1189
+ "docs": {
1190
+ "tags": [],
1191
+ "text": "If `true`, dates in the future are not allowed. A validation message will appear if a date in the future is entered."
1192
+ },
1193
+ "attribute": "disable-future",
1194
+ "reflect": false,
1195
+ "defaultValue": "false"
1196
+ },
1197
+ "disableFutureMessage": {
1198
+ "type": "string",
1199
+ "mutable": false,
1200
+ "complexType": {
1201
+ "original": "string",
1202
+ "resolved": "string",
1203
+ "references": {}
1204
+ },
1205
+ "required": false,
1206
+ "optional": true,
1207
+ "docs": {
1208
+ "tags": [],
1209
+ "text": "The text to display as the validation message when `disableFuture` is true and a date in the future is entered."
1210
+ },
1211
+ "attribute": "disable-future-message",
1212
+ "reflect": false,
1213
+ "defaultValue": "\"Dates in the future are not allowed. Please select a date in the past.\""
1214
+ },
1215
+ "disablePast": {
1216
+ "type": "boolean",
1217
+ "mutable": false,
1218
+ "complexType": {
1219
+ "original": "boolean",
1220
+ "resolved": "boolean",
1221
+ "references": {}
1222
+ },
1223
+ "required": false,
1224
+ "optional": true,
1225
+ "docs": {
1226
+ "tags": [],
1227
+ "text": "If `true`, dates in the past are not allowed. A validation message will appear if a date in the past is entered."
1228
+ },
1229
+ "attribute": "disable-past",
1230
+ "reflect": false,
1231
+ "defaultValue": "false"
1232
+ },
1233
+ "disablePastMessage": {
1234
+ "type": "string",
1235
+ "mutable": false,
1236
+ "complexType": {
1237
+ "original": "string",
1238
+ "resolved": "string",
1239
+ "references": {}
1240
+ },
1241
+ "required": false,
1242
+ "optional": true,
1243
+ "docs": {
1244
+ "tags": [],
1245
+ "text": "The text to display as the validation message when `disablePast` is true and a date in the past is entered."
1246
+ },
1247
+ "attribute": "disable-past-message",
1248
+ "reflect": false,
1249
+ "defaultValue": "\"Dates in the past are not allowed. Please select a date in the future.\""
1250
+ },
1251
+ "helperText": {
1252
+ "type": "string",
1253
+ "mutable": true,
1254
+ "complexType": {
1255
+ "original": "string",
1256
+ "resolved": "string",
1257
+ "references": {}
1258
+ },
1259
+ "required": false,
1260
+ "optional": true,
1261
+ "docs": {
1262
+ "tags": [],
1263
+ "text": "The helper text that will be displayed for additional field guidance. This will default to the text \"Use format\" along with the `dateFormat` value."
1264
+ },
1265
+ "attribute": "helper-text",
1266
+ "reflect": false
1267
+ },
1268
+ "hideHelperText": {
1269
+ "type": "boolean",
1270
+ "mutable": false,
1271
+ "complexType": {
1272
+ "original": "boolean",
1273
+ "resolved": "boolean",
1274
+ "references": {}
1275
+ },
1276
+ "required": false,
1277
+ "optional": false,
1278
+ "docs": {
1279
+ "tags": [],
1280
+ "text": "If `true`, the helper text will be visually hidden, but still read out by screenreaders."
1281
+ },
1282
+ "attribute": "hide-helper-text",
1283
+ "reflect": false,
1284
+ "defaultValue": "false"
1285
+ },
1286
+ "inputId": {
1287
+ "type": "string",
1288
+ "mutable": false,
1289
+ "complexType": {
1290
+ "original": "string",
1291
+ "resolved": "string",
1292
+ "references": {}
1293
+ },
1294
+ "required": false,
1295
+ "optional": true,
1296
+ "docs": {
1297
+ "tags": [],
1298
+ "text": "The ID for the input."
1299
+ },
1300
+ "attribute": "input-id",
1301
+ "reflect": false,
1302
+ "defaultValue": "`ic-date-input-${inputIds++}`"
1303
+ },
1304
+ "invalidDateMessage": {
1305
+ "type": "string",
1306
+ "mutable": false,
1307
+ "complexType": {
1308
+ "original": "string",
1309
+ "resolved": "string",
1310
+ "references": {}
1311
+ },
1312
+ "required": false,
1313
+ "optional": true,
1314
+ "docs": {
1315
+ "tags": [],
1316
+ "text": "The text to display as the validation message when an invalid date is entered."
1317
+ },
1318
+ "attribute": "invalid-date-message",
1319
+ "reflect": false,
1320
+ "defaultValue": "\"Please enter a valid date.\""
1321
+ },
1322
+ "label": {
1323
+ "type": "string",
1324
+ "mutable": false,
1325
+ "complexType": {
1326
+ "original": "string",
1327
+ "resolved": "string",
1328
+ "references": {}
1329
+ },
1330
+ "required": true,
1331
+ "optional": false,
1332
+ "docs": {
1333
+ "tags": [],
1334
+ "text": "The label for the date input."
1335
+ },
1336
+ "attribute": "label",
1337
+ "reflect": false
1338
+ },
1339
+ "max": {
1340
+ "type": "string",
1341
+ "mutable": false,
1342
+ "complexType": {
1343
+ "original": "string | Date",
1344
+ "resolved": "Date | string",
1345
+ "references": {
1346
+ "Date": {
1347
+ "location": "global",
1348
+ "id": "global::Date"
1349
+ }
1350
+ }
1351
+ },
1352
+ "required": false,
1353
+ "optional": true,
1354
+ "docs": {
1355
+ "tags": [],
1356
+ "text": "The latest date that will be allowed. The value can be in any format supported as `dateFormat`, in ISO 8601 date string format (`yyyy-mm-dd`) or as a JavaScript `Date` object.\nThe value of this prop is ignored if `disableFuture` is set to `true`."
1357
+ },
1358
+ "attribute": "max",
1359
+ "reflect": false,
1360
+ "defaultValue": "\"\""
1361
+ },
1362
+ "min": {
1363
+ "type": "string",
1364
+ "mutable": false,
1365
+ "complexType": {
1366
+ "original": "string | Date",
1367
+ "resolved": "Date | string",
1368
+ "references": {
1369
+ "Date": {
1370
+ "location": "global",
1371
+ "id": "global::Date"
1372
+ }
1373
+ }
1374
+ },
1375
+ "required": false,
1376
+ "optional": true,
1377
+ "docs": {
1378
+ "tags": [],
1379
+ "text": "The earliest date that will be allowed. The value can be in any format supported as `dateFormat`, in ISO 8601 date string format (`yyyy-mm-dd`) or as a JavaScript `Date` object.\nThe value of this prop is ignored if `disablePast` is set to `true`."
1380
+ },
1381
+ "attribute": "min",
1382
+ "reflect": false,
1383
+ "defaultValue": "\"\""
1384
+ },
1385
+ "name": {
1386
+ "type": "string",
1387
+ "mutable": false,
1388
+ "complexType": {
1389
+ "original": "string",
1390
+ "resolved": "string",
1391
+ "references": {}
1392
+ },
1393
+ "required": false,
1394
+ "optional": false,
1395
+ "docs": {
1396
+ "tags": [],
1397
+ "text": "The name of the control, which is submitted with the form data."
1398
+ },
1399
+ "attribute": "name",
1400
+ "reflect": false,
1401
+ "defaultValue": "this.inputId"
1402
+ },
1403
+ "required": {
1404
+ "type": "boolean",
1405
+ "mutable": false,
1406
+ "complexType": {
1407
+ "original": "boolean",
1408
+ "resolved": "boolean",
1409
+ "references": {}
1410
+ },
1411
+ "required": false,
1412
+ "optional": true,
1413
+ "docs": {
1414
+ "tags": [],
1415
+ "text": "If `true`, the input will require a value."
1416
+ },
1417
+ "attribute": "required",
1418
+ "reflect": false,
1419
+ "defaultValue": "false"
1420
+ },
1421
+ "showCalendarButton": {
1422
+ "type": "boolean",
1423
+ "mutable": false,
1424
+ "complexType": {
1425
+ "original": "boolean",
1426
+ "resolved": "boolean",
1427
+ "references": {}
1428
+ },
1429
+ "required": false,
1430
+ "optional": true,
1431
+ "docs": {
1432
+ "tags": [{
1433
+ "name": "internal",
1434
+ "text": "If `true`, a button which displays the calendar view when clicked will be displayed."
1435
+ }],
1436
+ "text": ""
1437
+ },
1438
+ "attribute": "show-calendar-button",
1439
+ "reflect": false,
1440
+ "defaultValue": "false"
1441
+ },
1442
+ "showClearButton": {
1443
+ "type": "boolean",
1444
+ "mutable": false,
1445
+ "complexType": {
1446
+ "original": "boolean",
1447
+ "resolved": "boolean",
1448
+ "references": {}
1449
+ },
1450
+ "required": false,
1451
+ "optional": true,
1452
+ "docs": {
1453
+ "tags": [],
1454
+ "text": "If `true`, a button which clears the date input when clicked will be displayed."
1455
+ },
1456
+ "attribute": "show-clear-button",
1457
+ "reflect": false,
1458
+ "defaultValue": "true"
1459
+ },
1460
+ "size": {
1461
+ "type": "string",
1462
+ "mutable": false,
1463
+ "complexType": {
1464
+ "original": "IcSizes",
1465
+ "resolved": "\"large\" | \"medium\" | \"small\"",
1466
+ "references": {
1467
+ "IcSizes": {
1468
+ "location": "import",
1469
+ "path": "../../utils/types",
1470
+ "id": "src/utils/types.ts::IcSizes"
1471
+ }
1472
+ }
1473
+ },
1474
+ "required": false,
1475
+ "optional": true,
1476
+ "docs": {
1477
+ "tags": [],
1478
+ "text": "The size of the date input to be displayed."
1479
+ },
1480
+ "attribute": "size",
1481
+ "reflect": false,
1482
+ "defaultValue": "\"medium\""
1483
+ },
1484
+ "value": {
1485
+ "type": "string",
1486
+ "mutable": true,
1487
+ "complexType": {
1488
+ "original": "string | Date | null | undefined",
1489
+ "resolved": "Date | string",
1490
+ "references": {
1491
+ "Date": {
1492
+ "location": "global",
1493
+ "id": "global::Date"
1494
+ }
1495
+ }
1496
+ },
1497
+ "required": false,
1498
+ "optional": true,
1499
+ "docs": {
1500
+ "tags": [],
1501
+ "text": "The value of the date input. The value can be in any format supported as `dateFormat`, in ISO 8601 date string format (`yyyy-mm-dd`) or as a JavaScript `Date` object."
1502
+ },
1503
+ "attribute": "value",
1504
+ "reflect": false,
1505
+ "defaultValue": "\"\""
1506
+ },
1507
+ "validationStatus": {
1508
+ "type": "string",
1509
+ "mutable": true,
1510
+ "complexType": {
1511
+ "original": "IcInformationStatusOrEmpty",
1512
+ "resolved": "\"\" | \"error\" | \"success\" | \"warning\"",
1513
+ "references": {
1514
+ "IcInformationStatusOrEmpty": {
1515
+ "location": "import",
1516
+ "path": "../../utils/types",
1517
+ "id": "src/utils/types.ts::IcInformationStatusOrEmpty"
1518
+ }
1519
+ }
1520
+ },
1521
+ "required": false,
1522
+ "optional": true,
1523
+ "docs": {
1524
+ "tags": [],
1525
+ "text": "The validation status - e.g. 'error' | 'warning' | 'success'. This will override the built-in date validation."
1526
+ },
1527
+ "attribute": "validation-status",
1528
+ "reflect": false,
1529
+ "defaultValue": "\"\""
1530
+ },
1531
+ "validationText": {
1532
+ "type": "string",
1533
+ "mutable": false,
1534
+ "complexType": {
1535
+ "original": "string",
1536
+ "resolved": "string",
1537
+ "references": {}
1538
+ },
1539
+ "required": false,
1540
+ "optional": true,
1541
+ "docs": {
1542
+ "tags": [],
1543
+ "text": "The text to display as the validation message. This will override the built-in date validation."
1544
+ },
1545
+ "attribute": "validation-text",
1546
+ "reflect": false,
1547
+ "defaultValue": "\"\""
1548
+ }
1549
+ };
1550
+ }
1551
+ static get states() {
1552
+ return {
1553
+ "day": {},
1554
+ "invalidDateText": {},
1555
+ "maxDate": {},
1556
+ "minDate": {},
1557
+ "month": {},
1558
+ "year": {},
1559
+ "calendarFocused": {},
1560
+ "clearButtonFocused": {},
1561
+ "removeLabelledBy": {}
1562
+ };
1563
+ }
1564
+ static get events() {
1565
+ return [{
1566
+ "method": "calendarButtonClicked",
1567
+ "name": "calendarButtonClicked",
1568
+ "bubbles": true,
1569
+ "cancelable": true,
1570
+ "composed": true,
1571
+ "docs": {
1572
+ "tags": [{
1573
+ "name": "internal",
1574
+ "text": "Emitted when the calendar is opened."
1575
+ }],
1576
+ "text": ""
1577
+ },
1578
+ "complexType": {
1579
+ "original": "{ value: Date }",
1580
+ "resolved": "{ value: Date; }",
1581
+ "references": {
1582
+ "Date": {
1583
+ "location": "global",
1584
+ "id": "global::Date"
1585
+ }
1586
+ }
1587
+ }
1588
+ }, {
1589
+ "method": "icBlur",
1590
+ "name": "icBlur",
1591
+ "bubbles": true,
1592
+ "cancelable": true,
1593
+ "composed": true,
1594
+ "docs": {
1595
+ "tags": [],
1596
+ "text": "Emitted when the input loses focus."
1597
+ },
1598
+ "complexType": {
1599
+ "original": "{ value: Date }",
1600
+ "resolved": "{ value: Date; }",
1601
+ "references": {
1602
+ "Date": {
1603
+ "location": "global",
1604
+ "id": "global::Date"
1605
+ }
1606
+ }
1607
+ }
1608
+ }, {
1609
+ "method": "icChange",
1610
+ "name": "icChange",
1611
+ "bubbles": true,
1612
+ "cancelable": true,
1613
+ "composed": true,
1614
+ "docs": {
1615
+ "tags": [],
1616
+ "text": "Emitted when the value has changed."
1617
+ },
1618
+ "complexType": {
1619
+ "original": "{ value: Date }",
1620
+ "resolved": "{ value: Date; }",
1621
+ "references": {
1622
+ "Date": {
1623
+ "location": "global",
1624
+ "id": "global::Date"
1625
+ }
1626
+ }
1627
+ }
1628
+ }, {
1629
+ "method": "icFocus",
1630
+ "name": "icFocus",
1631
+ "bubbles": true,
1632
+ "cancelable": true,
1633
+ "composed": true,
1634
+ "docs": {
1635
+ "tags": [],
1636
+ "text": "Emitted when the input gains focus."
1637
+ },
1638
+ "complexType": {
1639
+ "original": "{ value: Date }",
1640
+ "resolved": "{ value: Date; }",
1641
+ "references": {
1642
+ "Date": {
1643
+ "location": "global",
1644
+ "id": "global::Date"
1645
+ }
1646
+ }
1647
+ }
1648
+ }];
1649
+ }
1650
+ static get methods() {
1651
+ return {
1652
+ "getDate": {
1653
+ "complexType": {
1654
+ "signature": "() => Promise<Date>",
1655
+ "parameters": [],
1656
+ "references": {
1657
+ "Promise": {
1658
+ "location": "global",
1659
+ "id": "global::Promise"
1660
+ },
1661
+ "Date": {
1662
+ "location": "global",
1663
+ "id": "global::Date"
1664
+ }
1665
+ },
1666
+ "return": "Promise<Date>"
1667
+ },
1668
+ "docs": {
1669
+ "text": "Returns the value as a Date object",
1670
+ "tags": [{
1671
+ "name": "returns",
1672
+ "text": "Date"
1673
+ }]
1674
+ }
1675
+ },
1676
+ "setCalendarFocus": {
1677
+ "complexType": {
1678
+ "signature": "() => Promise<void>",
1679
+ "parameters": [],
1680
+ "references": {
1681
+ "Promise": {
1682
+ "location": "global",
1683
+ "id": "global::Promise"
1684
+ }
1685
+ },
1686
+ "return": "Promise<void>"
1687
+ },
1688
+ "docs": {
1689
+ "text": "",
1690
+ "tags": [{
1691
+ "name": "internal",
1692
+ "text": "Sets focus on the calendar button."
1693
+ }]
1694
+ }
1695
+ },
1696
+ "setDisableDays": {
1697
+ "complexType": {
1698
+ "signature": "(days: IcWeekDays[]) => Promise<void>",
1699
+ "parameters": [{
1700
+ "name": "days",
1701
+ "type": "IcWeekDays[]",
1702
+ "docs": ""
1703
+ }],
1704
+ "references": {
1705
+ "Promise": {
1706
+ "location": "global",
1707
+ "id": "global::Promise"
1708
+ },
1709
+ "IcWeekDays": {
1710
+ "location": "import",
1711
+ "path": "../../utils/types",
1712
+ "id": "src/utils/types.ts::IcWeekDays"
1713
+ }
1714
+ },
1715
+ "return": "Promise<void>"
1716
+ },
1717
+ "docs": {
1718
+ "text": "",
1719
+ "tags": [{
1720
+ "name": "internal",
1721
+ "text": "Used to pass disabledDays from parent component."
1722
+ }]
1723
+ }
1724
+ },
1725
+ "triggerIcChange": {
1726
+ "complexType": {
1727
+ "signature": "(d: Date) => Promise<void>",
1728
+ "parameters": [{
1729
+ "name": "d",
1730
+ "type": "Date",
1731
+ "docs": ""
1732
+ }],
1733
+ "references": {
1734
+ "Promise": {
1735
+ "location": "global",
1736
+ "id": "global::Promise"
1737
+ },
1738
+ "Date": {
1739
+ "location": "global",
1740
+ "id": "global::Date"
1741
+ }
1742
+ },
1743
+ "return": "Promise<void>"
1744
+ },
1745
+ "docs": {
1746
+ "text": "",
1747
+ "tags": [{
1748
+ "name": "internal",
1749
+ "text": "Used to enable other components to invoke an IcChange event from the input."
1750
+ }]
1751
+ }
1752
+ }
1753
+ };
1754
+ }
1755
+ static get elementRef() { return "el"; }
1756
+ static get watchers() {
1757
+ return [{
1758
+ "propName": "disableFuture",
1759
+ "methodName": "watchDisableFutureHandler"
1760
+ }, {
1761
+ "propName": "disablePast",
1762
+ "methodName": "watchDisablePastHandler"
1763
+ }, {
1764
+ "propName": "max",
1765
+ "methodName": "watchMaxHandler"
1766
+ }, {
1767
+ "propName": "min",
1768
+ "methodName": "watchMinHandler"
1769
+ }, {
1770
+ "propName": "required",
1771
+ "methodName": "watchRequiredHandler"
1772
+ }];
1773
+ }
1774
+ }
1775
+ //# sourceMappingURL=ic-date-input.js.map