@ukic/canary-web-components 2.0.0-canary.14 → 2.0.0-canary.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (516) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/{helpers-6d736902.js → helpers-4f5f087e.js} +59 -99
  3. package/dist/cjs/helpers-4f5f087e.js.map +1 -0
  4. package/dist/cjs/{helpers-f75cf7cf.js → helpers-fc9441f8.js} +34 -1
  5. package/dist/cjs/helpers-fc9441f8.js.map +1 -0
  6. package/dist/cjs/ic-accordion-group.cjs.entry.js +3 -1
  7. package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
  8. package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
  9. package/dist/cjs/ic-alert.cjs.entry.js +1 -1
  10. package/dist/cjs/ic-back-to-top.cjs.entry.js +15 -9
  11. package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
  12. package/dist/cjs/ic-badge.cjs.entry.js +55 -77
  13. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  14. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +3 -1
  15. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  16. package/dist/cjs/ic-breadcrumb.cjs.entry.js +1 -1
  17. package/dist/cjs/ic-button_3.cjs.entry.js +14 -14
  18. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ic-card.cjs.entry.js +1 -1
  20. package/dist/cjs/ic-card.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ic-checkbox-group.cjs.entry.js +23 -16
  22. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ic-checkbox.cjs.entry.js +33 -31
  24. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  25. package/dist/cjs/ic-chip.cjs.entry.js +21 -31
  26. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  27. package/dist/cjs/ic-data-row.cjs.entry.js +1 -1
  28. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +57 -0
  29. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js.map +1 -0
  30. package/dist/cjs/ic-data-table.cjs.entry.js +163 -36
  31. package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
  32. package/dist/cjs/ic-date-input.cjs.entry.js +1 -1
  33. package/dist/cjs/ic-date-picker.cjs.entry.js +1 -1
  34. package/dist/cjs/ic-dialog.cjs.entry.js +4 -2
  35. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  36. package/dist/cjs/ic-divider.cjs.entry.js +1 -1
  37. package/dist/cjs/ic-empty-state_2.cjs.entry.js +345 -0
  38. package/dist/cjs/ic-empty-state_2.cjs.entry.js.map +1 -0
  39. package/dist/cjs/ic-footer-link-group.cjs.entry.js +2 -2
  40. package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
  41. package/dist/cjs/ic-footer-link.cjs.entry.js +1 -1
  42. package/dist/cjs/ic-footer.cjs.entry.js +2 -2
  43. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
  44. package/dist/cjs/ic-hero.cjs.entry.js +3 -2
  45. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  46. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +2 -3
  47. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  48. package/dist/cjs/ic-input-component-container_4.cjs.entry.js +2 -2
  49. package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +1 -1
  50. package/dist/cjs/ic-link.cjs.entry.js +2 -2
  51. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  52. package/dist/cjs/ic-menu-group.cjs.entry.js +1 -1
  53. package/dist/cjs/ic-menu-item.cjs.entry.js +4 -10
  54. package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
  55. package/dist/cjs/ic-menu-with-multi.cjs.entry.js +176 -35
  56. package/dist/cjs/ic-menu-with-multi.cjs.entry.js.map +1 -1
  57. package/dist/cjs/ic-menu.cjs.entry.js +4 -4
  58. package/dist/cjs/ic-menu.cjs.entry.js.map +1 -1
  59. package/dist/cjs/ic-navigation-button.cjs.entry.js +1 -1
  60. package/dist/cjs/ic-navigation-group.cjs.entry.js +1 -1
  61. package/dist/cjs/ic-navigation-item.cjs.entry.js +2 -2
  62. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  63. package/dist/cjs/ic-navigation-menu.cjs.entry.js +1 -1
  64. package/dist/cjs/ic-page-header.cjs.entry.js +1 -1
  65. package/dist/cjs/ic-pagination_4.cjs.entry.js +54 -29
  66. package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
  67. package/dist/cjs/ic-popover-menu.cjs.entry.js +13 -18
  68. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  69. package/dist/cjs/ic-radio-group.cjs.entry.js +12 -16
  70. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  71. package/dist/cjs/ic-radio-option.cjs.entry.js +37 -37
  72. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  73. package/dist/cjs/ic-search-bar.cjs.entry.js +1 -1
  74. package/dist/cjs/ic-select-with-multi.cjs.entry.js +1 -1
  75. package/dist/cjs/ic-side-navigation.cjs.entry.js +1 -1
  76. package/dist/cjs/ic-skeleton.cjs.entry.js +16 -35
  77. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  78. package/dist/cjs/ic-status-tag.cjs.entry.js +1 -1
  79. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  80. package/dist/cjs/ic-step.cjs.entry.js +1 -1
  81. package/dist/cjs/ic-stepper.cjs.entry.js +1 -1
  82. package/dist/cjs/ic-switch.cjs.entry.js +2 -2
  83. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  84. package/dist/cjs/ic-tab-group.cjs.entry.js +1 -1
  85. package/dist/cjs/ic-tab-panel.cjs.entry.js +1 -1
  86. package/dist/cjs/ic-tab.cjs.entry.js +2 -2
  87. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  88. package/dist/cjs/ic-theme.cjs.entry.js +13 -15
  89. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  90. package/dist/cjs/ic-toast.cjs.entry.js +1 -1
  91. package/dist/cjs/ic-toggle-button.cjs.entry.js +2 -2
  92. package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
  93. package/dist/cjs/ic-top-navigation.cjs.entry.js +15 -24
  94. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  95. package/dist/cjs/ic-typography.cjs.entry.js +2 -2
  96. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  97. package/dist/cjs/index-4cf27b16.js +8 -8
  98. package/dist/cjs/loader.cjs.js +1 -1
  99. package/dist/collection/collection-manifest.json +1 -0
  100. package/dist/collection/components/ic-data-table/ic-data-table.css +76 -1
  101. package/dist/collection/components/ic-data-table/ic-data-table.js +372 -53
  102. package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
  103. package/dist/collection/components/ic-data-table/ic-data-table.types.js.map +1 -1
  104. package/dist/collection/components/ic-data-table/story-data.js +262 -4
  105. package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
  106. package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js +324 -3
  107. package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js.map +1 -1
  108. package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.css +91 -0
  109. package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js +160 -0
  110. package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js.map +1 -0
  111. package/dist/collection/components/ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.js +11 -0
  112. package/dist/collection/components/ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.js.map +1 -0
  113. package/dist/collection/components/ic-data-table-title-bar/test/basic/ic-data-table-title-bar.spec.js +70 -0
  114. package/dist/collection/components/ic-data-table-title-bar/test/basic/ic-data-table-title-bar.spec.js.map +1 -0
  115. package/dist/collection/components/ic-menu-with-multi/ic-menu.js +176 -35
  116. package/dist/collection/components/ic-menu-with-multi/ic-menu.js.map +1 -1
  117. package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js +226 -49
  118. package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js.map +1 -1
  119. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +180 -119
  120. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
  121. package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js +56 -11
  122. package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js.map +1 -1
  123. package/dist/collection/utils/helpers.js +4 -1
  124. package/dist/collection/utils/helpers.js.map +1 -1
  125. package/dist/collection/utils/types.js.map +1 -1
  126. package/dist/components/helpers.js +57 -97
  127. package/dist/components/helpers.js.map +1 -1
  128. package/dist/components/helpers2.js +31 -1
  129. package/dist/components/helpers2.js.map +1 -1
  130. package/dist/components/ic-accordion-group.js +2 -1
  131. package/dist/components/ic-accordion-group.js.map +1 -1
  132. package/dist/components/ic-back-to-top.js +22 -9
  133. package/dist/components/ic-back-to-top.js.map +1 -1
  134. package/dist/components/ic-badge.js +59 -77
  135. package/dist/components/ic-badge.js.map +1 -1
  136. package/dist/components/ic-breadcrumb-group.js +2 -0
  137. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  138. package/dist/components/ic-button2.js +11 -11
  139. package/dist/components/ic-button2.js.map +1 -1
  140. package/dist/components/ic-card.js.map +1 -1
  141. package/dist/components/ic-checkbox-group.js +26 -16
  142. package/dist/components/ic-checkbox-group.js.map +1 -1
  143. package/dist/components/ic-checkbox.js +33 -31
  144. package/dist/components/ic-checkbox.js.map +1 -1
  145. package/dist/components/ic-chip.js +21 -31
  146. package/dist/components/ic-chip.js.map +1 -1
  147. package/dist/components/ic-data-table-title-bar.d.ts +11 -0
  148. package/dist/components/ic-data-table-title-bar.js +136 -0
  149. package/dist/components/ic-data-table-title-bar.js.map +1 -0
  150. package/dist/components/ic-data-table.js +189 -43
  151. package/dist/components/ic-data-table.js.map +1 -1
  152. package/dist/components/ic-date-input2.js +1 -1
  153. package/dist/components/ic-date-picker.js +1 -1
  154. package/dist/components/ic-dialog.js +4 -2
  155. package/dist/components/ic-dialog.js.map +1 -1
  156. package/dist/components/ic-divider2.js +1 -1
  157. package/dist/components/ic-empty-state.js +1 -57
  158. package/dist/components/ic-empty-state.js.map +1 -1
  159. package/dist/{esm/ic-empty-state.entry.js → components/ic-empty-state2.js} +38 -11
  160. package/dist/components/ic-empty-state2.js.map +1 -0
  161. package/dist/components/ic-footer-link-group.js +2 -2
  162. package/dist/components/ic-footer-link-group.js.map +1 -1
  163. package/dist/components/ic-footer-link.js +1 -1
  164. package/dist/components/ic-footer.js +2 -2
  165. package/dist/components/ic-footer.js.map +1 -1
  166. package/dist/components/ic-hero.js +3 -2
  167. package/dist/components/ic-hero.js.map +1 -1
  168. package/dist/components/ic-horizontal-scroll2.js +1 -2
  169. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  170. package/dist/components/ic-input-component-container2.js +2 -2
  171. package/dist/components/ic-input-component-container2.js.map +1 -1
  172. package/dist/components/ic-link2.js +1 -1
  173. package/dist/components/ic-link2.js.map +1 -1
  174. package/dist/components/ic-loading-indicator2.js +1 -1
  175. package/dist/components/ic-loading-indicator2.js.map +1 -1
  176. package/dist/components/ic-menu-item2.js +4 -10
  177. package/dist/components/ic-menu-item2.js.map +1 -1
  178. package/dist/components/ic-menu2.js +3 -3
  179. package/dist/components/ic-menu2.js.map +1 -1
  180. package/dist/components/ic-menu3.js +177 -36
  181. package/dist/components/ic-menu3.js.map +1 -1
  182. package/dist/components/ic-navigation-button.js +1 -1
  183. package/dist/components/ic-navigation-group.js +1 -1
  184. package/dist/components/ic-navigation-item.js +2 -2
  185. package/dist/components/ic-navigation-item.js.map +1 -1
  186. package/dist/components/ic-pagination-bar2.js +160 -103
  187. package/dist/components/ic-pagination-bar2.js.map +1 -1
  188. package/dist/components/ic-pagination-item2.js +22 -12
  189. package/dist/components/ic-pagination-item2.js.map +1 -1
  190. package/dist/components/ic-pagination2.js +23 -8
  191. package/dist/components/ic-pagination2.js.map +1 -1
  192. package/dist/components/ic-popover-menu.js +12 -17
  193. package/dist/components/ic-popover-menu.js.map +1 -1
  194. package/dist/components/ic-radio-group.js +11 -15
  195. package/dist/components/ic-radio-group.js.map +1 -1
  196. package/dist/components/ic-radio-option.js +37 -37
  197. package/dist/components/ic-radio-option.js.map +1 -1
  198. package/dist/components/ic-search-bar.js +1 -1
  199. package/dist/components/ic-select-with-multi.js +1 -1
  200. package/dist/components/ic-select2.js +10 -6
  201. package/dist/components/ic-select2.js.map +1 -1
  202. package/dist/components/ic-side-navigation.js +1 -1
  203. package/dist/components/ic-skeleton.js +17 -40
  204. package/dist/components/ic-skeleton.js.map +1 -1
  205. package/dist/components/ic-status-tag.js.map +1 -1
  206. package/dist/components/ic-switch.js +1 -1
  207. package/dist/components/ic-switch.js.map +1 -1
  208. package/dist/components/ic-tab.js +1 -1
  209. package/dist/components/ic-tab.js.map +1 -1
  210. package/dist/components/ic-text-field2.js +8 -8
  211. package/dist/components/ic-text-field2.js.map +1 -1
  212. package/dist/components/ic-theme.js +13 -15
  213. package/dist/components/ic-theme.js.map +1 -1
  214. package/dist/components/ic-toggle-button.js +1 -1
  215. package/dist/components/ic-toggle-button.js.map +1 -1
  216. package/dist/components/ic-tooltip2.js +1 -1
  217. package/dist/components/ic-tooltip2.js.map +1 -1
  218. package/dist/components/ic-top-navigation.js +15 -24
  219. package/dist/components/ic-top-navigation.js.map +1 -1
  220. package/dist/components/ic-typography2.js +1 -1
  221. package/dist/components/ic-typography2.js.map +1 -1
  222. package/dist/core/core.css +2 -2
  223. package/dist/core/core.esm.js +1 -1
  224. package/dist/core/core.esm.js.map +1 -1
  225. package/dist/core/p-0e51d58e.entry.js +2 -0
  226. package/dist/core/p-0e51d58e.entry.js.map +1 -0
  227. package/dist/core/{p-4fd58768.entry.js → p-11b243c9.entry.js} +2 -2
  228. package/dist/core/{p-4bd13376.entry.js → p-185e91f0.entry.js} +2 -2
  229. package/dist/core/p-185e91f0.entry.js.map +1 -0
  230. package/dist/core/p-1a45f961.entry.js +2 -0
  231. package/dist/core/{p-e8151d13.entry.js.map → p-1a45f961.entry.js.map} +1 -1
  232. package/dist/core/p-1b4f852c.js +2 -0
  233. package/dist/core/p-1b4f852c.js.map +1 -0
  234. package/dist/core/{p-4ad3012a.entry.js → p-1fb48c84.entry.js} +2 -2
  235. package/dist/core/{p-6dce8e88.entry.js → p-1fff20ce.entry.js} +2 -2
  236. package/dist/core/p-1fff20ce.entry.js.map +1 -0
  237. package/dist/core/{p-1a91e842.entry.js → p-201ec29e.entry.js} +2 -2
  238. package/dist/core/{p-1a91e842.entry.js.map → p-201ec29e.entry.js.map} +1 -1
  239. package/dist/core/p-20d4ded5.js +2 -0
  240. package/dist/core/p-20d4ded5.js.map +1 -0
  241. package/dist/core/p-20f244ad.entry.js +2 -0
  242. package/dist/core/p-20f244ad.entry.js.map +1 -0
  243. package/dist/core/p-2536b95b.entry.js +2 -0
  244. package/dist/core/p-2536b95b.entry.js.map +1 -0
  245. package/dist/core/{p-730f058b.entry.js → p-25bbf4be.entry.js} +2 -2
  246. package/dist/core/p-25bbf4be.entry.js.map +1 -0
  247. package/dist/core/p-303dc008.entry.js +2 -0
  248. package/dist/core/p-303dc008.entry.js.map +1 -0
  249. package/dist/core/p-3484b15b.entry.js +2 -0
  250. package/dist/core/p-3484b15b.entry.js.map +1 -0
  251. package/dist/core/{p-aabab75f.entry.js → p-3fa986f8.entry.js} +2 -2
  252. package/dist/core/{p-f8f36680.entry.js → p-450f72b2.entry.js} +2 -2
  253. package/dist/core/{p-8b820365.entry.js → p-48c39d2a.entry.js} +2 -2
  254. package/dist/core/{p-a2dc10d8.entry.js → p-4aac2373.entry.js} +2 -2
  255. package/dist/core/{p-db3a35fb.entry.js → p-5201cd2b.entry.js} +2 -2
  256. package/dist/core/{p-db3a35fb.entry.js.map → p-5201cd2b.entry.js.map} +1 -1
  257. package/dist/core/p-53aeca18.entry.js +2 -0
  258. package/dist/core/p-53aeca18.entry.js.map +1 -0
  259. package/dist/core/{p-6eb58b0a.entry.js → p-5447f2fd.entry.js} +2 -2
  260. package/dist/core/{p-e1963c78.entry.js → p-5a5a52d3.entry.js} +2 -2
  261. package/dist/core/p-5a5a52d3.entry.js.map +1 -0
  262. package/dist/core/{p-946625a3.entry.js → p-60494f69.entry.js} +2 -2
  263. package/dist/core/p-60494f69.entry.js.map +1 -0
  264. package/dist/core/p-646b886c.entry.js +2 -0
  265. package/dist/core/p-646b886c.entry.js.map +1 -0
  266. package/dist/core/p-6996b750.entry.js +2 -0
  267. package/dist/core/p-6996b750.entry.js.map +1 -0
  268. package/dist/core/{p-849f43c3.entry.js → p-7114ae3b.entry.js} +2 -2
  269. package/dist/core/{p-494c3cbe.entry.js → p-71ddb6d9.entry.js} +2 -2
  270. package/dist/core/{p-baf81f30.entry.js → p-787ffd96.entry.js} +2 -2
  271. package/dist/core/p-787ffd96.entry.js.map +1 -0
  272. package/dist/core/p-7c569c2d.entry.js +2 -0
  273. package/dist/core/p-7c569c2d.entry.js.map +1 -0
  274. package/dist/core/{p-c621d6b0.entry.js → p-7f6de032.entry.js} +2 -2
  275. package/dist/core/p-7f6de032.entry.js.map +1 -0
  276. package/dist/core/{p-c14a897d.entry.js → p-7fe37432.entry.js} +2 -2
  277. package/dist/core/{p-9567c117.entry.js → p-86e679ab.entry.js} +2 -2
  278. package/dist/core/{p-a8c15117.entry.js → p-87075008.entry.js} +2 -2
  279. package/dist/core/p-895472da.entry.js +2 -0
  280. package/dist/core/p-895472da.entry.js.map +1 -0
  281. package/dist/core/{p-00bd7919.entry.js → p-8a67e960.entry.js} +2 -2
  282. package/dist/core/{p-9d8883d7.entry.js → p-8ccb23bd.entry.js} +2 -2
  283. package/dist/core/{p-9d8883d7.entry.js.map → p-8ccb23bd.entry.js.map} +1 -1
  284. package/dist/core/{p-d2d63a61.entry.js → p-9c22b14f.entry.js} +2 -2
  285. package/dist/core/{p-d2d63a61.entry.js.map → p-9c22b14f.entry.js.map} +1 -1
  286. package/dist/core/{p-19c1e271.entry.js → p-a1df23b4.entry.js} +2 -2
  287. package/dist/core/p-a1df23b4.entry.js.map +1 -0
  288. package/dist/core/{p-3dcc61cc.entry.js → p-a821c21f.entry.js} +2 -2
  289. package/dist/core/{p-3dcc61cc.entry.js.map → p-a821c21f.entry.js.map} +1 -1
  290. package/dist/core/{p-cca482e2.entry.js → p-b3b834b3.entry.js} +2 -2
  291. package/dist/core/p-b3b834b3.entry.js.map +1 -0
  292. package/dist/core/p-b4949e9a.entry.js +2 -0
  293. package/dist/core/p-b4949e9a.entry.js.map +1 -0
  294. package/dist/core/p-b7c644d1.entry.js +2 -0
  295. package/dist/core/p-b7c644d1.entry.js.map +1 -0
  296. package/dist/core/{p-0af27517.entry.js → p-b94ef8de.entry.js} +2 -2
  297. package/dist/core/p-ba1c1804.entry.js +2 -0
  298. package/dist/core/p-ba1c1804.entry.js.map +1 -0
  299. package/dist/core/{p-7fda2f94.entry.js → p-bbb1ce94.entry.js} +2 -2
  300. package/dist/core/p-bda7d350.entry.js +2 -0
  301. package/dist/core/p-bda7d350.entry.js.map +1 -0
  302. package/dist/core/{p-8b1f9648.entry.js → p-c5147498.entry.js} +2 -2
  303. package/dist/core/{p-ff6f1e3a.entry.js → p-d3a13342.entry.js} +2 -2
  304. package/dist/core/{p-843bdaae.entry.js → p-d4fed5f6.entry.js} +2 -2
  305. package/dist/core/p-d4fed5f6.entry.js.map +1 -0
  306. package/dist/core/p-d6ad82d8.entry.js +2 -0
  307. package/dist/core/p-d6ad82d8.entry.js.map +1 -0
  308. package/dist/core/{p-a05755b1.entry.js → p-d79bfead.entry.js} +2 -2
  309. package/dist/core/{p-a05755b1.entry.js.map → p-d79bfead.entry.js.map} +1 -1
  310. package/dist/core/p-db5c4969.entry.js +2 -0
  311. package/dist/core/{p-06c27edb.entry.js.map → p-db5c4969.entry.js.map} +1 -1
  312. package/dist/core/{p-957de939.entry.js → p-dd787b5b.entry.js} +2 -2
  313. package/dist/core/p-e42b66d5.entry.js +2 -0
  314. package/dist/core/p-e42b66d5.entry.js.map +1 -0
  315. package/dist/core/{p-9528b29e.entry.js → p-e4e89a4d.entry.js} +2 -2
  316. package/dist/core/{p-e16f73ba.entry.js → p-f704629e.entry.js} +2 -2
  317. package/dist/core/p-f704629e.entry.js.map +1 -0
  318. package/dist/core/p-fae5b518.entry.js +2 -0
  319. package/dist/core/p-fae5b518.entry.js.map +1 -0
  320. package/dist/core/{p-00c5639e.entry.js → p-ff697d68.entry.js} +2 -2
  321. package/dist/core/p-ff697d68.entry.js.map +1 -0
  322. package/dist/esm/core.js +1 -1
  323. package/dist/esm/{helpers-f328a7b6.js → helpers-1cd71f8a.js} +32 -2
  324. package/dist/esm/helpers-1cd71f8a.js.map +1 -0
  325. package/dist/esm/{helpers-c34e4042.js → helpers-84d21612.js} +58 -98
  326. package/dist/esm/helpers-84d21612.js.map +1 -0
  327. package/dist/esm/ic-accordion-group.entry.js +3 -1
  328. package/dist/esm/ic-accordion-group.entry.js.map +1 -1
  329. package/dist/esm/ic-accordion.entry.js +1 -1
  330. package/dist/esm/ic-alert.entry.js +1 -1
  331. package/dist/esm/ic-back-to-top.entry.js +15 -9
  332. package/dist/esm/ic-back-to-top.entry.js.map +1 -1
  333. package/dist/esm/ic-badge.entry.js +55 -77
  334. package/dist/esm/ic-badge.entry.js.map +1 -1
  335. package/dist/esm/ic-breadcrumb-group.entry.js +3 -1
  336. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  337. package/dist/esm/ic-breadcrumb.entry.js +1 -1
  338. package/dist/esm/ic-button_3.entry.js +14 -14
  339. package/dist/esm/ic-button_3.entry.js.map +1 -1
  340. package/dist/esm/ic-card.entry.js +1 -1
  341. package/dist/esm/ic-card.entry.js.map +1 -1
  342. package/dist/esm/ic-checkbox-group.entry.js +23 -16
  343. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  344. package/dist/esm/ic-checkbox.entry.js +33 -31
  345. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  346. package/dist/esm/ic-chip.entry.js +21 -31
  347. package/dist/esm/ic-chip.entry.js.map +1 -1
  348. package/dist/esm/ic-data-row.entry.js +1 -1
  349. package/dist/esm/ic-data-table-title-bar.entry.js +53 -0
  350. package/dist/esm/ic-data-table-title-bar.entry.js.map +1 -0
  351. package/dist/esm/ic-data-table.entry.js +164 -37
  352. package/dist/esm/ic-data-table.entry.js.map +1 -1
  353. package/dist/esm/ic-date-input.entry.js +1 -1
  354. package/dist/esm/ic-date-picker.entry.js +1 -1
  355. package/dist/esm/ic-dialog.entry.js +4 -2
  356. package/dist/esm/ic-dialog.entry.js.map +1 -1
  357. package/dist/esm/ic-divider.entry.js +1 -1
  358. package/dist/esm/ic-empty-state_2.entry.js +340 -0
  359. package/dist/esm/ic-empty-state_2.entry.js.map +1 -0
  360. package/dist/esm/ic-footer-link-group.entry.js +2 -2
  361. package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
  362. package/dist/esm/ic-footer-link.entry.js +1 -1
  363. package/dist/esm/ic-footer.entry.js +2 -2
  364. package/dist/esm/ic-footer.entry.js.map +1 -1
  365. package/dist/esm/ic-hero.entry.js +3 -2
  366. package/dist/esm/ic-hero.entry.js.map +1 -1
  367. package/dist/esm/ic-horizontal-scroll.entry.js +2 -3
  368. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  369. package/dist/esm/ic-input-component-container_4.entry.js +2 -2
  370. package/dist/esm/ic-input-component-container_4.entry.js.map +1 -1
  371. package/dist/esm/ic-link.entry.js +2 -2
  372. package/dist/esm/ic-link.entry.js.map +1 -1
  373. package/dist/esm/ic-menu-group.entry.js +1 -1
  374. package/dist/esm/ic-menu-item.entry.js +4 -10
  375. package/dist/esm/ic-menu-item.entry.js.map +1 -1
  376. package/dist/esm/ic-menu-with-multi.entry.js +176 -35
  377. package/dist/esm/ic-menu-with-multi.entry.js.map +1 -1
  378. package/dist/esm/ic-menu.entry.js +4 -4
  379. package/dist/esm/ic-menu.entry.js.map +1 -1
  380. package/dist/esm/ic-navigation-button.entry.js +1 -1
  381. package/dist/esm/ic-navigation-group.entry.js +1 -1
  382. package/dist/esm/ic-navigation-item.entry.js +2 -2
  383. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  384. package/dist/esm/ic-navigation-menu.entry.js +1 -1
  385. package/dist/esm/ic-page-header.entry.js +1 -1
  386. package/dist/esm/ic-pagination_4.entry.js +54 -29
  387. package/dist/esm/ic-pagination_4.entry.js.map +1 -1
  388. package/dist/esm/ic-popover-menu.entry.js +13 -18
  389. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  390. package/dist/esm/ic-radio-group.entry.js +12 -16
  391. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  392. package/dist/esm/ic-radio-option.entry.js +37 -37
  393. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  394. package/dist/esm/ic-search-bar.entry.js +1 -1
  395. package/dist/esm/ic-select-with-multi.entry.js +1 -1
  396. package/dist/esm/ic-side-navigation.entry.js +1 -1
  397. package/dist/esm/ic-skeleton.entry.js +16 -35
  398. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  399. package/dist/esm/ic-status-tag.entry.js +1 -1
  400. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  401. package/dist/esm/ic-step.entry.js +1 -1
  402. package/dist/esm/ic-stepper.entry.js +1 -1
  403. package/dist/esm/ic-switch.entry.js +2 -2
  404. package/dist/esm/ic-switch.entry.js.map +1 -1
  405. package/dist/esm/ic-tab-group.entry.js +1 -1
  406. package/dist/esm/ic-tab-panel.entry.js +1 -1
  407. package/dist/esm/ic-tab.entry.js +2 -2
  408. package/dist/esm/ic-tab.entry.js.map +1 -1
  409. package/dist/esm/ic-theme.entry.js +13 -15
  410. package/dist/esm/ic-theme.entry.js.map +1 -1
  411. package/dist/esm/ic-toast.entry.js +1 -1
  412. package/dist/esm/ic-toggle-button.entry.js +2 -2
  413. package/dist/esm/ic-toggle-button.entry.js.map +1 -1
  414. package/dist/esm/ic-top-navigation.entry.js +15 -24
  415. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  416. package/dist/esm/ic-typography.entry.js +2 -2
  417. package/dist/esm/ic-typography.entry.js.map +1 -1
  418. package/dist/esm/index-93509377.js +8 -8
  419. package/dist/esm/loader.js +1 -1
  420. package/dist/types/components/ic-data-table/ic-data-table.d.ts +79 -13
  421. package/dist/types/components/ic-data-table/ic-data-table.types.d.ts +9 -0
  422. package/dist/types/components/ic-data-table/story-data.d.ts +59 -0
  423. package/dist/types/components/ic-data-table-title-bar/ic-data-table-title-bar.d.ts +36 -0
  424. package/dist/types/components/ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.d.ts +1 -0
  425. package/dist/types/components/ic-menu-with-multi/ic-menu.d.ts +10 -0
  426. package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +33 -13
  427. package/dist/types/components.d.ts +211 -46
  428. package/dist/types/utils/helpers.d.ts +1 -0
  429. package/dist/types/utils/types.d.ts +21 -5
  430. package/hydrate/index.js +1414 -1058
  431. package/package.json +3 -3
  432. package/dist/cjs/helpers-6d736902.js.map +0 -1
  433. package/dist/cjs/helpers-f75cf7cf.js.map +0 -1
  434. package/dist/cjs/ic-empty-state.cjs.entry.js +0 -38
  435. package/dist/cjs/ic-empty-state.cjs.entry.js.map +0 -1
  436. package/dist/cjs/ic-pagination-bar.cjs.entry.js +0 -269
  437. package/dist/cjs/ic-pagination-bar.cjs.entry.js.map +0 -1
  438. package/dist/collection/components/ic-pagination/ic-pagination.types.js +0 -2
  439. package/dist/collection/components/ic-pagination/ic-pagination.types.js.map +0 -1
  440. package/dist/core/p-00c5639e.entry.js.map +0 -1
  441. package/dist/core/p-06c27edb.entry.js +0 -2
  442. package/dist/core/p-162f3e36.entry.js +0 -2
  443. package/dist/core/p-162f3e36.entry.js.map +0 -1
  444. package/dist/core/p-19c1e271.entry.js.map +0 -1
  445. package/dist/core/p-1c3bd46d.entry.js +0 -2
  446. package/dist/core/p-1c3bd46d.entry.js.map +0 -1
  447. package/dist/core/p-2c9d6334.entry.js +0 -2
  448. package/dist/core/p-2c9d6334.entry.js.map +0 -1
  449. package/dist/core/p-3e9a8977.entry.js +0 -2
  450. package/dist/core/p-3e9a8977.entry.js.map +0 -1
  451. package/dist/core/p-41b682dc.entry.js +0 -2
  452. package/dist/core/p-41b682dc.entry.js.map +0 -1
  453. package/dist/core/p-4bd13376.entry.js.map +0 -1
  454. package/dist/core/p-6dce8e88.entry.js.map +0 -1
  455. package/dist/core/p-730f058b.entry.js.map +0 -1
  456. package/dist/core/p-7f53d1be.entry.js +0 -2
  457. package/dist/core/p-7f53d1be.entry.js.map +0 -1
  458. package/dist/core/p-843bdaae.entry.js.map +0 -1
  459. package/dist/core/p-946625a3.entry.js.map +0 -1
  460. package/dist/core/p-99bf38e3.entry.js +0 -2
  461. package/dist/core/p-99bf38e3.entry.js.map +0 -1
  462. package/dist/core/p-9e3178e8.entry.js +0 -2
  463. package/dist/core/p-9e3178e8.entry.js.map +0 -1
  464. package/dist/core/p-a1556d97.entry.js +0 -2
  465. package/dist/core/p-a1556d97.entry.js.map +0 -1
  466. package/dist/core/p-baf81f30.entry.js.map +0 -1
  467. package/dist/core/p-c621d6b0.entry.js.map +0 -1
  468. package/dist/core/p-c7590421.entry.js +0 -2
  469. package/dist/core/p-c7590421.entry.js.map +0 -1
  470. package/dist/core/p-c953edb9.entry.js +0 -2
  471. package/dist/core/p-c953edb9.entry.js.map +0 -1
  472. package/dist/core/p-cca482e2.entry.js.map +0 -1
  473. package/dist/core/p-cd799087.js +0 -2
  474. package/dist/core/p-cd799087.js.map +0 -1
  475. package/dist/core/p-d32d331b.entry.js +0 -2
  476. package/dist/core/p-d32d331b.entry.js.map +0 -1
  477. package/dist/core/p-dc5e1f8f.entry.js +0 -2
  478. package/dist/core/p-dc5e1f8f.entry.js.map +0 -1
  479. package/dist/core/p-e16f73ba.entry.js.map +0 -1
  480. package/dist/core/p-e189f1d0.entry.js +0 -2
  481. package/dist/core/p-e189f1d0.entry.js.map +0 -1
  482. package/dist/core/p-e1963c78.entry.js.map +0 -1
  483. package/dist/core/p-e8151d13.entry.js +0 -2
  484. package/dist/core/p-ee765ad5.js +0 -2
  485. package/dist/core/p-ee765ad5.js.map +0 -1
  486. package/dist/core/p-f2147136.entry.js +0 -2
  487. package/dist/core/p-f2147136.entry.js.map +0 -1
  488. package/dist/core/p-fca46bd9.entry.js +0 -2
  489. package/dist/core/p-fca46bd9.entry.js.map +0 -1
  490. package/dist/core/p-ff3a01f3.entry.js +0 -2
  491. package/dist/core/p-ff3a01f3.entry.js.map +0 -1
  492. package/dist/esm/helpers-c34e4042.js.map +0 -1
  493. package/dist/esm/helpers-f328a7b6.js.map +0 -1
  494. package/dist/esm/ic-empty-state.entry.js.map +0 -1
  495. package/dist/esm/ic-pagination-bar.entry.js +0 -265
  496. package/dist/esm/ic-pagination-bar.entry.js.map +0 -1
  497. package/dist/types/components/ic-pagination/ic-pagination.types.d.ts +0 -6
  498. /package/dist/core/{p-4fd58768.entry.js.map → p-11b243c9.entry.js.map} +0 -0
  499. /package/dist/core/{p-4ad3012a.entry.js.map → p-1fb48c84.entry.js.map} +0 -0
  500. /package/dist/core/{p-aabab75f.entry.js.map → p-3fa986f8.entry.js.map} +0 -0
  501. /package/dist/core/{p-f8f36680.entry.js.map → p-450f72b2.entry.js.map} +0 -0
  502. /package/dist/core/{p-8b820365.entry.js.map → p-48c39d2a.entry.js.map} +0 -0
  503. /package/dist/core/{p-a2dc10d8.entry.js.map → p-4aac2373.entry.js.map} +0 -0
  504. /package/dist/core/{p-6eb58b0a.entry.js.map → p-5447f2fd.entry.js.map} +0 -0
  505. /package/dist/core/{p-849f43c3.entry.js.map → p-7114ae3b.entry.js.map} +0 -0
  506. /package/dist/core/{p-494c3cbe.entry.js.map → p-71ddb6d9.entry.js.map} +0 -0
  507. /package/dist/core/{p-c14a897d.entry.js.map → p-7fe37432.entry.js.map} +0 -0
  508. /package/dist/core/{p-9567c117.entry.js.map → p-86e679ab.entry.js.map} +0 -0
  509. /package/dist/core/{p-a8c15117.entry.js.map → p-87075008.entry.js.map} +0 -0
  510. /package/dist/core/{p-00bd7919.entry.js.map → p-8a67e960.entry.js.map} +0 -0
  511. /package/dist/core/{p-0af27517.entry.js.map → p-b94ef8de.entry.js.map} +0 -0
  512. /package/dist/core/{p-7fda2f94.entry.js.map → p-bbb1ce94.entry.js.map} +0 -0
  513. /package/dist/core/{p-8b1f9648.entry.js.map → p-c5147498.entry.js.map} +0 -0
  514. /package/dist/core/{p-ff6f1e3a.entry.js.map → p-d3a13342.entry.js.map} +0 -0
  515. /package/dist/core/{p-957de939.entry.js.map → p-dd787b5b.entry.js.map} +0 -0
  516. /package/dist/core/{p-9528b29e.entry.js.map → p-e4e89a4d.entry.js.map} +0 -0
@@ -58,11 +58,11 @@ describe("ic-menu in isolation", () => {
58
58
  const page = await createMenu();
59
59
  expect(page).toMatchSnapshot();
60
60
  });
61
- it("sets open prop to true by default", async () => {
61
+ it("should set open prop to true by default", async () => {
62
62
  const page = await createMenu();
63
63
  expect(page.root.open).toBe(true);
64
64
  });
65
- it("tests ungroupedOptionsSet emitter", async () => {
65
+ it("should test ungroupedOptionsSet emitter", async () => {
66
66
  const page = await createMenu();
67
67
  const eventSpy = jest.fn();
68
68
  page.root.addEventListener("ungroupedOptionsSet", eventSpy);
@@ -74,7 +74,7 @@ describe("ic-menu in isolation", () => {
74
74
  }),
75
75
  }));
76
76
  });
77
- it("tests menuOptionSelect emitter", async () => {
77
+ it("should test menuOptionSelect emitter", async () => {
78
78
  const page = await createMenu();
79
79
  const eventSpy = jest.fn();
80
80
  page.root.addEventListener("menuOptionSelect", eventSpy);
@@ -87,7 +87,7 @@ describe("ic-menu in isolation", () => {
87
87
  }),
88
88
  }));
89
89
  });
90
- it("tests menuStateChange emitter", async () => {
90
+ it("should test menuStateChange emitter", async () => {
91
91
  const page = await createMenu();
92
92
  const eventSpy = jest.fn();
93
93
  page.root.addEventListener("menuStateChange", eventSpy);
@@ -104,7 +104,7 @@ describe("ic-menu in isolation", () => {
104
104
  }),
105
105
  }));
106
106
  });
107
- it("tests menuOptionId emitter", async () => {
107
+ it("should test menuOptionId emitter", async () => {
108
108
  const page = await createMenu();
109
109
  const eventSpy = jest.fn();
110
110
  page.root.addEventListener("menuOptionId", eventSpy);
@@ -117,7 +117,7 @@ describe("ic-menu in isolation", () => {
117
117
  }),
118
118
  }));
119
119
  });
120
- it("tests menuKeyPress emitter", async () => {
120
+ it("should test menuKeyPress emitter", async () => {
121
121
  const page = await createMenu();
122
122
  const eventSpy = jest.fn();
123
123
  page.root.addEventListener("menuKeyPress", eventSpy);
@@ -131,7 +131,7 @@ describe("ic-menu in isolation", () => {
131
131
  }),
132
132
  }));
133
133
  });
134
- it("tests setNextOptionValue function", async () => {
134
+ it("should test setNextOptionValue function", async () => {
135
135
  const page = await createMenu();
136
136
  const eventSpy = jest.fn();
137
137
  page.root.addEventListener("menuOptionSelect", eventSpy);
@@ -143,7 +143,7 @@ describe("ic-menu in isolation", () => {
143
143
  }),
144
144
  }));
145
145
  });
146
- it("tests setPreviousOptionValue function", async () => {
146
+ it("should test setPreviousOptionValue function", async () => {
147
147
  const page = await createMenu();
148
148
  const eventSpy = jest.fn();
149
149
  page.root.addEventListener("menuOptionSelect", eventSpy);
@@ -156,7 +156,7 @@ describe("ic-menu in isolation", () => {
156
156
  }),
157
157
  }));
158
158
  });
159
- it("tests handleClickOpen function", async () => {
159
+ it("should test handleClickOpen function", async () => {
160
160
  const page = await createMenu();
161
161
  const eventSpy = jest.fn();
162
162
  page.root.addEventListener("menuStateChange", eventSpy);
@@ -170,7 +170,7 @@ describe("ic-menu in isolation", () => {
170
170
  }),
171
171
  }));
172
172
  });
173
- it("tests handleKeyboardOpen function", async () => {
173
+ it("should test handleKeyboardOpen function", async () => {
174
174
  const page = await createMenu();
175
175
  page.root.open = false;
176
176
  const eventSpy = jest.fn();
@@ -195,7 +195,7 @@ describe("ic-menu in isolation", () => {
195
195
  }),
196
196
  }));
197
197
  });
198
- it("tests autoSetInputValueKeyboardOpen function", async () => {
198
+ it("should test autoSetInputValueKeyboardOpen function", async () => {
199
199
  const page = await createMenu();
200
200
  const eventSpy = jest.fn();
201
201
  const inputEl = page.rootInstance.inputEl;
@@ -232,7 +232,7 @@ describe("ic-menu in isolation", () => {
232
232
  }),
233
233
  }));
234
234
  });
235
- it("tests autoSetInputValueKeyboardOpen function with character keys", async () => {
235
+ it("should test autoSetInputValueKeyboardOpen function with character keys", async () => {
236
236
  const page = await createMenu();
237
237
  page.root.options = menuOptions;
238
238
  await page.waitForChanges();
@@ -241,7 +241,7 @@ describe("ic-menu in isolation", () => {
241
241
  await page.waitForChanges();
242
242
  expect(page.root.value).toBe("espresso");
243
243
  });
244
- it("tests manualSetInputValueKeyboardOpen function", async () => {
244
+ it("should test manualSetInputValueKeyboardOpen function", async () => {
245
245
  const searchBar = window.document.createElement(IcSearchBar);
246
246
  const input = window.document.createElement("input");
247
247
  const searchMenuOptions = JSON.parse(JSON.stringify(menuOptions));
@@ -299,13 +299,18 @@ describe("ic-menu in isolation", () => {
299
299
  }));
300
300
  page.rootInstance.setHighlightedOption(2);
301
301
  await page.waitForChanges();
302
+ const eventSpy2 = jest.fn();
303
+ page.root.addEventListener("menuOptionId", eventSpy2);
302
304
  page.rootInstance.manualSetInputValueKeyboardOpen(keyboardEvent("ArrowDown"));
303
305
  await page.waitForChanges();
304
- expect(page.rootInstance.value).toBe(searchMenuOptions[2].value);
306
+ expect(eventSpy2).toHaveBeenCalledWith(expect.objectContaining({
307
+ detail: expect.objectContaining({
308
+ optionId: "menu-id-cappucino",
309
+ }),
310
+ }));
305
311
  page.rootInstance.manualSetInputValueKeyboardOpen(keyboardEvent("Enter"));
306
312
  await page.waitForChanges();
307
313
  expect(page.rootInstance.disabledOptionSelected).toBe(true);
308
- expect(page.rootInstance.value).toBe(searchMenuOptions[2].value);
309
314
  page.rootInstance.manualSetInputValueKeyboardOpen(keyboardEvent("Escape"));
310
315
  await page.waitForChanges();
311
316
  expect(eventSpy).toHaveBeenCalledWith(expect.objectContaining({
@@ -352,7 +357,7 @@ describe("ic-menu in isolation", () => {
352
357
  }),
353
358
  }));
354
359
  });
355
- it("tests manualSetInputValueKeyboardOpen function when searchable select", async () => {
360
+ it("should test manualSetInputValueKeyboardOpen function when searchable select", async () => {
356
361
  const searchableSelect = window.document.createElement("IC-SELECT");
357
362
  const input = window.document.createElement("input");
358
363
  searchableSelect.setFocus = jest.fn();
@@ -366,7 +371,7 @@ describe("ic-menu in isolation", () => {
366
371
  await page.waitForChanges();
367
372
  expect(searchableSelect.setFocus).toHaveBeenCalled();
368
373
  });
369
- it("tests manualSetInputValueKeyboardOpen function when searchbar", async () => {
374
+ it("should test manualSetInputValueKeyboardOpen function when searchbar", async () => {
370
375
  const select = window.document.createElement("IC-SELECT");
371
376
  const input = window.document.createElement("input");
372
377
  select.setFocus = jest.fn();
@@ -379,7 +384,7 @@ describe("ic-menu in isolation", () => {
379
384
  await page.waitForChanges();
380
385
  expect(select.setFocus).toHaveBeenCalled();
381
386
  });
382
- it("tests manualSetInputValueKeyboardOpen function when default parameter passed", async () => {
387
+ it("should test manualSetInputValueKeyboardOpen function when default parameter passed", async () => {
383
388
  const select = window.document.createElement("IC-SELECT");
384
389
  const input = window.document.createElement("input");
385
390
  select.setFocus = jest.fn();
@@ -393,7 +398,7 @@ describe("ic-menu in isolation", () => {
393
398
  await page.waitForChanges();
394
399
  expect(page.rootInstance.value).toBe(menuOptions[0].value);
395
400
  });
396
- it("tests manualSetInputValueKeyboardOpen function when multi-select", async () => {
401
+ it("should test manualSetInputValueKeyboardOpen function when multi-select", async () => {
397
402
  const multiSelect = window.document.createElement("IC-SELECT");
398
403
  const input = window.document.createElement("input");
399
404
  const page = await newSpecPage({
@@ -450,6 +455,21 @@ describe("ic-menu in isolation", () => {
450
455
  });
451
456
  await page.waitForChanges();
452
457
  expect(page.rootInstance.emitSelectAll).toHaveBeenCalledTimes(2);
458
+ page.rootInstance.optionHighlighted = "doubleespresso";
459
+ page.rootInstance.multiOptionClicked = null;
460
+ await page.rootInstance.manualSetInputValueKeyboardOpen({
461
+ key: "ArrowDown",
462
+ preventDefault: () => null,
463
+ stopImmediatePropagation: () => null,
464
+ shiftKey: true,
465
+ target: {
466
+ id: "key-id",
467
+ },
468
+ });
469
+ await page.waitForChanges();
470
+ expect(page.rootInstance.selectHighlightedOption).toHaveBeenCalledWith({
471
+ id: "key-id",
472
+ }, menuOptions, 1);
453
473
  const eventSpy = jest.fn();
454
474
  page.rootInstance.selectAllButton.addEventListener("focus", eventSpy);
455
475
  await page.rootInstance.manualSetInputValueKeyboardOpen(keyboardEvent("Tab"));
@@ -459,7 +479,7 @@ describe("ic-menu in isolation", () => {
459
479
  expect(page.rootInstance.preventClickOpen).toBe(true);
460
480
  expect(page.rootInstance.optionHighlighted).toBe(undefined);
461
481
  });
462
- it("tests manualSetInputValueKeyboardOpen function when select on enter", async () => {
482
+ it("should test manualSetInputValueKeyboardOpen function when select on enter", async () => {
463
483
  const select = window.document.createElement("IC-SELECT");
464
484
  const input = window.document.createElement("input");
465
485
  select.selectOnEnter = true;
@@ -476,7 +496,7 @@ describe("ic-menu in isolation", () => {
476
496
  await page.waitForChanges();
477
497
  expect(eventSpy).toHaveBeenCalled();
478
498
  });
479
- it("tests setInputValue function when default parameter passed", async () => {
499
+ it("should test setInputValue function when default parameter passed", async () => {
480
500
  const select = window.document.createElement("IC-SELECT");
481
501
  const input = window.document.createElement("input");
482
502
  select.setFocus = jest.fn();
@@ -489,7 +509,7 @@ describe("ic-menu in isolation", () => {
489
509
  await page.waitForChanges();
490
510
  expect(select.setFocus).toHaveBeenCalled();
491
511
  });
492
- it("tests handleSubmitSearch function", async () => {
512
+ it("should test handleSubmitSearch function", async () => {
493
513
  const page = await createMenu();
494
514
  const eventSpy = jest.fn();
495
515
  page.root.addEventListener("menuOptionSelect", eventSpy);
@@ -506,7 +526,7 @@ describe("ic-menu in isolation", () => {
506
526
  await page.waitForChanges();
507
527
  expect(eventSpy).toHaveBeenCalled();
508
528
  });
509
- it("tests handleSetFirstOption function", async () => {
529
+ it("should test handleSetFirstOption function", async () => {
510
530
  const page = await createMenu();
511
531
  const eventSpy = jest.fn();
512
532
  page.root.addEventListener("menuOptionSelect", eventSpy);
@@ -520,7 +540,7 @@ describe("ic-menu in isolation", () => {
520
540
  await page.waitForChanges();
521
541
  expect(page.rootInstance.optionHighlighted).toBe("espresso");
522
542
  });
523
- it("tests handleClearListener function", async () => {
543
+ it("should test handleClearListener function", async () => {
524
544
  const page = await createMenu();
525
545
  const eventSpy = jest.fn();
526
546
  page.root.addEventListener("menuOptionSelect", eventSpy);
@@ -530,12 +550,12 @@ describe("ic-menu in isolation", () => {
530
550
  await page.waitForChanges();
531
551
  expect(page.rootInstance.optionHighlighted).toBe("");
532
552
  });
533
- it("tests handleOptionClick function", async () => {
553
+ it("should test handleOptionClick function", async () => {
534
554
  const page = await createMenu();
535
555
  const eventSpy = jest.fn();
536
556
  page.root.addEventListener("menuOptionSelect", eventSpy);
537
557
  const el = page.rootInstance.menu.childNodes[1];
538
- const event = { target: el };
558
+ const event = { target: el, shiftKey: false };
539
559
  await page.waitForChanges();
540
560
  page.rootInstance.handleOptionClick(event);
541
561
  await page.waitForChanges();
@@ -549,8 +569,15 @@ describe("ic-menu in isolation", () => {
549
569
  await page.waitForChanges();
550
570
  await page.rootInstance.handleOptionClick(event);
551
571
  expect(page.rootInstance.multiOptionClicked).toBe("doubleespresso");
572
+ page.rootInstance.value = ["espresso", "flatwhite", "cappuccino"];
573
+ page.rootInstance.isMultiSelect = true;
574
+ page.rootInstance.multiOptionClicked = null;
575
+ event.shiftKey = true;
576
+ await page.waitForChanges();
577
+ await page.rootInstance.handleOptionClick(event);
578
+ expect(page.rootInstance.multiOptionClicked).toBe("doubleespresso");
552
579
  });
553
- it("tests handleBlur function", async () => {
580
+ it("should test handleBlur function", async () => {
554
581
  const page = await createMenu();
555
582
  const eventSpy = jest.fn();
556
583
  const event = new FocusEvent("blur");
@@ -574,7 +601,7 @@ describe("ic-menu in isolation", () => {
574
601
  },
575
602
  }));
576
603
  });
577
- it("tests handleMouseDown function", async () => {
604
+ it("should test handleMouseDown function", async () => {
578
605
  const page = await createMenu();
579
606
  const eventSpy = jest.fn();
580
607
  page.root.addEventListener("preventDefault", eventSpy);
@@ -585,7 +612,7 @@ describe("ic-menu in isolation", () => {
585
612
  await page.waitForChanges();
586
613
  expect(eventSpy).toHaveBeenCalled();
587
614
  });
588
- it("tests handleMenuKeyDown function", async () => {
615
+ it("should test handleMenuKeyDown function", async () => {
589
616
  const page = await createMenu();
590
617
  const eventSpy = jest.fn();
591
618
  page.root.addEventListener("menuOptionSelect", eventSpy);
@@ -599,14 +626,14 @@ describe("ic-menu in isolation", () => {
599
626
  }),
600
627
  }));
601
628
  });
602
- it("tests searchMode=`query", async () => {
629
+ it("should test searchMode=`query", async () => {
603
630
  const page = await createMenu();
604
631
  page.rootInstance.searchMode = "query";
605
632
  await page.waitForChanges();
606
633
  page.rootInstance.handleMenuKeyDown(keyboardEvent("F"));
607
634
  expect(page.rootInstance.optionHighlighted).toBeUndefined;
608
635
  });
609
- it("tests handleMenuKeyDown function as searchableSelect", async () => {
636
+ it("should test handleMenuKeyDown function as searchableSelect", async () => {
610
637
  const page = await createMenu();
611
638
  page.rootInstance.activationType = "manual";
612
639
  page.rootInstance.isSearchableSelect = true;
@@ -616,7 +643,7 @@ describe("ic-menu in isolation", () => {
616
643
  await page.waitForChanges();
617
644
  expect(eventSpy).toHaveBeenCalled();
618
645
  });
619
- it("tests handleRetry function", async () => {
646
+ it("should test handleRetry function", async () => {
620
647
  const page = await createMenu();
621
648
  const eventSpy = jest.fn();
622
649
  page.root.addEventListener("retryButtonClicked", eventSpy);
@@ -628,7 +655,7 @@ describe("ic-menu in isolation", () => {
628
655
  }),
629
656
  }));
630
657
  });
631
- it("tests handleRetryKeyDown function", async () => {
658
+ it("should test handleRetryKeyDown function", async () => {
632
659
  const page = await createMenu();
633
660
  const eventSpy = jest.fn();
634
661
  page.root.addEventListener("retryButtonClicked", eventSpy);
@@ -641,7 +668,7 @@ describe("ic-menu in isolation", () => {
641
668
  }),
642
669
  }));
643
670
  });
644
- it("tests autoSetValueOnMenuKeyDown - Shift - function", async () => {
671
+ it("should test autoSetValueOnMenuKeyDown - Shift - function", async () => {
645
672
  const page = await createMenu();
646
673
  const inputEl = page.rootInstance.inputEl;
647
674
  const eventSpy = jest.fn();
@@ -652,7 +679,7 @@ describe("ic-menu in isolation", () => {
652
679
  await page.waitForChanges();
653
680
  expect(eventSpy).not.toHaveBeenCalled();
654
681
  });
655
- it("tests autoSetValueOnMenuKeyDown function", async () => {
682
+ it("should test autoSetValueOnMenuKeyDown function", async () => {
656
683
  const page = await createMenu();
657
684
  const inputEl = page.rootInstance.inputEl;
658
685
  const eventSpy = jest.fn();
@@ -699,7 +726,7 @@ describe("ic-menu in isolation", () => {
699
726
  }),
700
727
  }));
701
728
  });
702
- it("tests handleMenukeyUp function", async () => {
729
+ it("should test handleMenukeyUp function", async () => {
703
730
  const page = await createMenu();
704
731
  page.rootInstance.preventClickOpen = true;
705
732
  let key = keyboardEvent("Tab");
@@ -714,8 +741,13 @@ describe("ic-menu in isolation", () => {
714
741
  page.rootInstance.handleMenuKeyUp(key);
715
742
  await page.waitForChanges();
716
743
  expect(page.rootInstance.disabledOptionSelected).toBe(false);
744
+ key = keyboardEvent("Shift");
745
+ await page.waitForChanges();
746
+ page.rootInstance.handleMenuKeyUp(key);
747
+ await page.waitForChanges();
748
+ expect(page.rootInstance.shiftPressed).toBe(false);
717
749
  });
718
- it("tests connectedCallback function", async () => {
750
+ it("should test connectedCallback function", async () => {
719
751
  const searchBar = window.document.createElement(IcSearchBar);
720
752
  const input = window.document.createElement("input");
721
753
  const page = await newSpecPage({
@@ -724,7 +756,7 @@ describe("ic-menu in isolation", () => {
724
756
  });
725
757
  expect(page.rootInstance.optionHighlighted).toBe("espresso");
726
758
  });
727
- it("tests disconnectedCallback function", async () => {
759
+ it("should test disconnectedCallback function", async () => {
728
760
  const page = await createMenu();
729
761
  await page.waitForChanges();
730
762
  expect(page.rootInstance.parentEl.__listeners[1].type).toBe("icSubmitSearch");
@@ -732,7 +764,7 @@ describe("ic-menu in isolation", () => {
732
764
  await page.waitForChanges();
733
765
  expect(page.rootInstance.parentEl.__listeners.length).toBe(0);
734
766
  });
735
- it("tests componentDidLoad function", async () => {
767
+ it("should test componentDidLoad function", async () => {
736
768
  const searchBar = window.document.createElement(IcSearchBar);
737
769
  const input = window.document.createElement("input");
738
770
  searchBar.disableFilter = true;
@@ -745,7 +777,7 @@ describe("ic-menu in isolation", () => {
745
777
  await page.waitForChanges();
746
778
  expect(page.rootInstance.focusFromSearchKeypress).toBe(true);
747
779
  });
748
- it("tests getParentEl function", async () => {
780
+ it("should test getParentEl function", async () => {
749
781
  const select = window.document.createElement("ic-select");
750
782
  select.searchable = true;
751
783
  select.setAttribute("searchable", "true");
@@ -754,7 +786,7 @@ describe("ic-menu in isolation", () => {
754
786
  await page.waitForChanges();
755
787
  expect(page.rootInstance.isSearchableSelect).toBe(true);
756
788
  });
757
- it("tests handleTimeoutBlur function", async () => {
789
+ it("should test handleTimeoutBlur function", async () => {
758
790
  const page = await createMenu();
759
791
  const eventSpy = jest.fn();
760
792
  page.root.addEventListener("timeoutBlur", eventSpy);
@@ -769,7 +801,7 @@ describe("ic-menu in isolation", () => {
769
801
  }),
770
802
  }));
771
803
  });
772
- it("tests handleMenuChange function when multi-select", async () => {
804
+ it("should test handleMenuChange function when multi-select", async () => {
773
805
  const page = await createMenu();
774
806
  page.rootInstance.optionHighlighted = "espresso";
775
807
  page.rootInstance.isMultiSelect = true;
@@ -779,7 +811,7 @@ describe("ic-menu in isolation", () => {
779
811
  await page.waitForChanges();
780
812
  expect(page.rootInstance.optionHighlighted).toBe(undefined);
781
813
  });
782
- it("tests selectHighlightedOption function when multi-select", async () => {
814
+ it("should test selectHighlightedOption function when multi-select", async () => {
783
815
  const page = await createMenu();
784
816
  page.rootInstance.open = false;
785
817
  page.rootInstance.isMultiSelect = true;
@@ -789,7 +821,7 @@ describe("ic-menu in isolation", () => {
789
821
  await page.waitForChanges();
790
822
  expect(page.rootInstance.handleMenuChange).toHaveBeenCalledWith(true);
791
823
  });
792
- it("tests selectHighlightedOption function when multi-select", async () => {
824
+ it("should test selectHighlightedOption function when multi-select", async () => {
793
825
  const page = await createMenu();
794
826
  page.rootInstance.open = false;
795
827
  page.rootInstance.isMultiSelect = true;
@@ -799,7 +831,7 @@ describe("ic-menu in isolation", () => {
799
831
  await page.waitForChanges();
800
832
  expect(page.rootInstance.handleMenuChange).toHaveBeenCalledWith(true);
801
833
  });
802
- it("tests handleSelectAllClick function", async () => {
834
+ it("should test handleSelectAllClick function", async () => {
803
835
  const page = await createMenu();
804
836
  page.rootInstance.menu.tabIndex = -1;
805
837
  const eventSpy = jest.fn();
@@ -809,7 +841,7 @@ describe("ic-menu in isolation", () => {
809
841
  expect(eventSpy).toHaveBeenCalled();
810
842
  expect(page.rootInstance.emitSelectAll).toHaveBeenCalled();
811
843
  });
812
- it("tests handleSelectAllBlur function", async () => {
844
+ it("should test handleSelectAllBlur function", async () => {
813
845
  const multiSelect = window.document.createElement("IC-SELECT");
814
846
  const input = window.document.createElement("input");
815
847
  const page = await newSpecPage({
@@ -825,12 +857,12 @@ describe("ic-menu in isolation", () => {
825
857
  await page.waitForChanges();
826
858
  expect(page.rootInstance.handleMenuChange).toHaveBeenCalledWith(false, false);
827
859
  });
828
- it("tests handleSelectAllFocus function", async () => {
860
+ it("should test handleSelectAllFocus function", async () => {
829
861
  const page = await createMenu();
830
862
  await page.rootInstance.handleSelectAllFocus();
831
863
  expect(page.root).toMatchSnapshot();
832
864
  });
833
- it("tests emitSelectAll function", async () => {
865
+ it("should test emitSelectAll function", async () => {
834
866
  const page = await createMenu();
835
867
  const eventSpy = jest.fn();
836
868
  page.root.addEventListener("menuOptionSelectAll", eventSpy);
@@ -867,7 +899,7 @@ describe("ic-menu in isolation", () => {
867
899
  }),
868
900
  }));
869
901
  });
870
- it("tests handleSelectAllMouseDown", async () => {
902
+ it("should test handleSelectAllMouseDown", async () => {
871
903
  const page = await createMenu();
872
904
  const eventSpy = jest.fn();
873
905
  page.root.addEventListener("preventDefault", eventSpy);
@@ -876,5 +908,150 @@ describe("ic-menu in isolation", () => {
876
908
  await page.rootInstance.handleSelectAllMouseDown(event);
877
909
  expect(eventSpy).toHaveBeenCalled();
878
910
  });
911
+ it("tests deselection of options when pressing ArrowDown after Shift", async () => {
912
+ const multiSelect = window.document.createElement("IC-SELECT");
913
+ const input = window.document.createElement("input");
914
+ const page = await newSpecPage({
915
+ components: [Menu, IcInputComponentContainer],
916
+ template: () => (h("ic-menu", { open: true, activationType: "automatic", options: menuOptions, menuId: "menu-id", inputLabel: "input-label", inputEl: input, anchorEl: multiSelect, value: menuOptions[0].value, parentEl: multiSelect })),
917
+ });
918
+ page.rootInstance.isMultiSelect = true;
919
+ jest
920
+ .spyOn(page.rootInstance, "deselectSelectedOptions")
921
+ .mockImplementation();
922
+ page.rootInstance.value = [
923
+ "espresso",
924
+ "doubleespresso",
925
+ "flatwhite",
926
+ "cappuccino",
927
+ "americano",
928
+ "ameno",
929
+ "green",
930
+ "acano",
931
+ "mocha",
932
+ ];
933
+ await page.waitForChanges();
934
+ await page.rootInstance.manualSetInputValueKeyboardOpen(keyboardEvent("Shift"));
935
+ await page.waitForChanges();
936
+ await page.rootInstance.manualSetInputValueKeyboardOpen(keyboardEvent("ArrowDown"));
937
+ await page.waitForChanges();
938
+ expect(page.rootInstance.deselectSelectedOptions).toHaveBeenCalledWith([
939
+ -1, 0,
940
+ ]);
941
+ });
942
+ it("tests deselection of options when pressing ArrowUp after Shift", async () => {
943
+ const multiSelect = window.document.createElement("IC-SELECT");
944
+ const input = window.document.createElement("input");
945
+ const page = await newSpecPage({
946
+ components: [Menu, IcInputComponentContainer],
947
+ template: () => (h("ic-menu", { open: true, activationType: "automatic", options: menuOptions, menuId: "menu-id", inputLabel: "input-label", inputEl: input, anchorEl: multiSelect, value: menuOptions[0].value, parentEl: multiSelect })),
948
+ });
949
+ page.rootInstance.isMultiSelect = true;
950
+ jest
951
+ .spyOn(page.rootInstance, "deselectSelectedOptions")
952
+ .mockImplementation();
953
+ page.rootInstance.value = [
954
+ "espresso",
955
+ "doubleespresso",
956
+ "flatwhite",
957
+ "cappuccino",
958
+ "americano",
959
+ "ameno",
960
+ "green",
961
+ "acano",
962
+ "mocha",
963
+ ];
964
+ await page.waitForChanges();
965
+ await page.rootInstance.manualSetInputValueKeyboardOpen(keyboardEvent("Shift"));
966
+ await page.waitForChanges();
967
+ await page.rootInstance.manualSetInputValueKeyboardOpen(keyboardEvent("ArrowUp"));
968
+ await page.waitForChanges();
969
+ expect(page.rootInstance.deselectSelectedOptions).toHaveBeenCalledWith([
970
+ -1, 8,
971
+ ]);
972
+ });
973
+ it("tests selection of options when pressing Home or End with Shift & Ctrl", async () => {
974
+ const multiSelect = window.document.createElement("IC-SELECT");
975
+ const input = window.document.createElement("input");
976
+ const page = await newSpecPage({
977
+ components: [Menu, IcInputComponentContainer],
978
+ template: () => (h("ic-menu", { open: true, activationType: "automatic", options: menuOptions, menuId: "menu-id", inputLabel: "input-label", inputEl: input, anchorEl: multiSelect, value: menuOptions[0].value, parentEl: multiSelect })),
979
+ });
980
+ page.rootInstance.isMultiSelect = true;
981
+ jest
982
+ .spyOn(page.rootInstance, "handleMultipleShiftSelect")
983
+ .mockImplementation();
984
+ page.rootInstance.value = [
985
+ "espresso",
986
+ "doubleespresso",
987
+ "flatwhite",
988
+ "cappuccino",
989
+ "americano",
990
+ "ameno",
991
+ "green",
992
+ "acano",
993
+ "mocha",
994
+ ];
995
+ await page.waitForChanges();
996
+ await page.rootInstance.manualSetInputValueKeyboardOpen({
997
+ key: "End",
998
+ preventDefault: () => null,
999
+ stopImmediatePropagation: () => null,
1000
+ ctrlKey: true,
1001
+ shiftKey: true,
1002
+ target: {
1003
+ id: "key-id",
1004
+ },
1005
+ });
1006
+ expect(page.rootInstance.handleMultipleShiftSelect).toHaveBeenCalledWith(8);
1007
+ await page.rootInstance.manualSetInputValueKeyboardOpen({
1008
+ key: "Home",
1009
+ preventDefault: () => null,
1010
+ stopImmediatePropagation: () => null,
1011
+ ctrlKey: true,
1012
+ shiftKey: true,
1013
+ target: {
1014
+ id: "key-id",
1015
+ },
1016
+ });
1017
+ expect(page.rootInstance.handleMultipleShiftSelect).toHaveBeenCalledWith(0);
1018
+ });
1019
+ it("tests isOptionSelected", async () => {
1020
+ const multiSelect = window.document.createElement("IC-SELECT");
1021
+ const input = window.document.createElement("input");
1022
+ const page = await newSpecPage({
1023
+ components: [Menu, IcInputComponentContainer],
1024
+ template: () => (h("ic-menu", { open: true, activationType: "automatic", options: menuOptions, menuId: "menu-id", inputLabel: "input-label", inputEl: input, anchorEl: multiSelect, value: menuOptions[0].value, parentEl: multiSelect })),
1025
+ });
1026
+ page.rootInstance.value = ["espresso", "doubleespresso"];
1027
+ await page.waitForChanges();
1028
+ let isSelected = await page.rootInstance.isOptionSelected([1]);
1029
+ expect(isSelected).toBe(true);
1030
+ isSelected = await page.rootInstance.isOptionSelected([3]);
1031
+ expect(isSelected).toBe(false);
1032
+ page.rootInstance.value = "";
1033
+ await page.waitForChanges();
1034
+ isSelected = await page.rootInstance.isOptionSelected([0]);
1035
+ expect(isSelected).toBe(false);
1036
+ });
1037
+ it("tests handleMultipleShiftSelect with optional params using default values", async () => {
1038
+ const multiSelect = window.document.createElement("IC-SELECT");
1039
+ const input = window.document.createElement("input");
1040
+ const page = await newSpecPage({
1041
+ components: [Menu, IcInputComponentContainer],
1042
+ template: () => (h("ic-menu", { open: true, activationType: "automatic", options: menuOptions, menuId: "menu-id", inputLabel: "input-label", inputEl: input, anchorEl: multiSelect, value: menuOptions[0].value, parentEl: multiSelect })),
1043
+ });
1044
+ page.rootInstance.value = ["espresso", "doubleespresso", "flatwhite"];
1045
+ jest
1046
+ .spyOn(page.rootInstance, "deselectSelectedOptions")
1047
+ .mockImplementation();
1048
+ page.rootInstance.lastOptionSelected = 1;
1049
+ await page.waitForChanges();
1050
+ page.rootInstance.handleMultipleShiftSelect(3);
1051
+ await page.waitForChanges();
1052
+ expect(page.rootInstance.deselectSelectedOptions).toHaveBeenCalledWith([
1053
+ 1, 2, 3,
1054
+ ]);
1055
+ });
879
1056
  });
880
1057
  //# sourceMappingURL=ic-menu.spec.js.map