@ukic/canary-web-components 3.0.0-canary.28 → 3.0.0-canary.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (603) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/{helpers-046745ee.js → helpers-2cc5f6db.js} +5 -1
  3. package/dist/cjs/helpers-2cc5f6db.js.map +1 -0
  4. package/dist/cjs/helpers-da852478.js.map +1 -1
  5. package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
  6. package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
  7. package/dist/cjs/ic-action-chip.cjs.entry.js +1 -1
  8. package/dist/cjs/ic-alert.cjs.entry.js +4 -2
  9. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  10. package/dist/cjs/ic-back-to-top.cjs.entry.js +6 -5
  11. package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
  12. package/dist/cjs/ic-badge.cjs.entry.js +3 -3
  13. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  14. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +3 -3
  15. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  16. package/dist/cjs/ic-breadcrumb.cjs.entry.js +5 -4
  17. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
  18. package/dist/cjs/ic-button_3.cjs.entry.js +43 -19
  19. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  20. package/dist/cjs/ic-card-horizontal.cjs.entry.js +32 -6
  21. package/dist/cjs/ic-card-horizontal.cjs.entry.js.map +1 -1
  22. package/dist/cjs/ic-card-vertical.cjs.entry.js +5 -5
  23. package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
  24. package/dist/cjs/ic-checkbox-group.cjs.entry.js +3 -3
  25. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  26. package/dist/cjs/ic-checkbox_3.cjs.entry.js +12 -12
  27. package/dist/cjs/ic-checkbox_3.cjs.entry.js.map +1 -1
  28. package/dist/cjs/ic-chip.cjs.entry.js +4 -4
  29. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  30. package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
  31. package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
  32. package/dist/cjs/ic-data-row.cjs.entry.js +3 -3
  33. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  34. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +3 -3
  35. package/dist/cjs/ic-data-table.cjs.entry.js +35 -15
  36. package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
  37. package/dist/cjs/ic-date-input.cjs.entry.js +3 -3
  38. package/dist/cjs/ic-date-picker.cjs.entry.js +10 -10
  39. package/dist/cjs/ic-dialog.cjs.entry.js +5 -4
  40. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  41. package/dist/cjs/ic-divider.cjs.entry.js +3 -2
  42. package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
  43. package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
  44. package/dist/cjs/ic-footer-link.cjs.entry.js +3 -3
  45. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  46. package/dist/cjs/ic-footer.cjs.entry.js +1 -1
  47. package/dist/cjs/ic-hero.cjs.entry.js +8 -7
  48. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  49. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -6
  50. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  51. package/dist/cjs/ic-input-component-container_4.cjs.entry.js +11 -11
  52. package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +1 -1
  53. package/dist/cjs/ic-layout-grid-item.cjs.entry.js +2 -2
  54. package/dist/cjs/ic-layout-grid-item.cjs.entry.js.map +1 -1
  55. package/dist/cjs/ic-layout-grid.cjs.entry.js +2 -2
  56. package/dist/cjs/ic-layout-grid.cjs.entry.js.map +1 -1
  57. package/dist/cjs/ic-link.cjs.entry.js +2 -2
  58. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  59. package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
  60. package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
  61. package/dist/cjs/ic-menu-item.cjs.entry.js +3 -2
  62. package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
  63. package/dist/cjs/ic-menu.cjs.entry.js +4 -4
  64. package/dist/cjs/ic-menu.cjs.entry.js.map +1 -1
  65. package/dist/cjs/ic-navigation-button.cjs.entry.js +3 -3
  66. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  67. package/dist/cjs/ic-navigation-group.cjs.entry.js +2 -2
  68. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  69. package/dist/cjs/ic-navigation-item.cjs.entry.js +3 -3
  70. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  71. package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -5
  72. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  73. package/dist/cjs/ic-page-header.cjs.entry.js +7 -7
  74. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  75. package/dist/cjs/ic-pagination_4.cjs.entry.js +36 -23
  76. package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
  77. package/dist/cjs/ic-popover-menu.cjs.entry.js +5 -5
  78. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  79. package/dist/cjs/ic-radio-group.cjs.entry.js +5 -5
  80. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  81. package/dist/cjs/ic-radio-option.cjs.entry.js +5 -5
  82. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  83. package/dist/cjs/ic-search-bar.cjs.entry.js +10 -10
  84. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  85. package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
  86. package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
  87. package/dist/cjs/ic-side-navigation.cjs.entry.js +6 -6
  88. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  89. package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
  90. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  91. package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
  92. package/dist/cjs/ic-skip-link.cjs.entry.js.map +1 -1
  93. package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
  94. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  95. package/dist/cjs/ic-step.cjs.entry.js +14 -14
  96. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  97. package/dist/cjs/ic-stepper.cjs.entry.js +3 -3
  98. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  99. package/dist/cjs/ic-switch.cjs.entry.js +5 -5
  100. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  101. package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
  102. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  103. package/dist/cjs/ic-tab-group.cjs.entry.js +3 -3
  104. package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
  105. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
  106. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  107. package/dist/cjs/ic-tab.cjs.entry.js +3 -3
  108. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  109. package/dist/cjs/ic-table-of-contents.cjs.entry.js +3 -3
  110. package/dist/cjs/ic-theme.cjs.entry.js +2 -2
  111. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  112. package/dist/cjs/ic-time-input.cjs.entry.js +4 -4
  113. package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
  114. package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
  115. package/dist/cjs/ic-toast.cjs.entry.js +8 -5
  116. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  117. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +8 -4
  118. package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
  119. package/dist/cjs/ic-toggle-button.cjs.entry.js +58 -45
  120. package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
  121. package/dist/cjs/ic-top-navigation.cjs.entry.js +5 -5
  122. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  123. package/dist/cjs/ic-tree-item.cjs.entry.js +2 -2
  124. package/dist/cjs/ic-tree-view.cjs.entry.js +3 -3
  125. package/dist/cjs/ic-typography.cjs.entry.js +3 -3
  126. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  127. package/dist/cjs/loader.cjs.js +1 -1
  128. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.css +65 -12
  129. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js +88 -13
  130. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js.map +1 -1
  131. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.stories.js +355 -36
  132. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.stories.js.map +1 -1
  133. package/dist/collection/components/ic-data-table/ic-data-table.css +17 -17
  134. package/dist/collection/components/ic-data-table/ic-data-table.js +37 -16
  135. package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
  136. package/dist/collection/components/ic-data-table/ic-data-table.stories.js +11 -1
  137. package/dist/collection/components/ic-data-table/ic-data-table.stories.js.map +1 -1
  138. package/dist/collection/components/ic-data-table/story-data.js +80 -0
  139. package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
  140. package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js +3 -3
  141. package/dist/collection/components/ic-date-input/ic-date-input.js +3 -3
  142. package/dist/collection/components/ic-date-picker/ic-date-picker.js +10 -10
  143. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +5 -5
  144. package/dist/collection/components/ic-table-of-contents/ic-table-of-contents.js +3 -3
  145. package/dist/collection/components/ic-time-input/ic-time-input.js +4 -4
  146. package/dist/collection/components/ic-tree-item/ic-tree-item.js +2 -2
  147. package/dist/collection/components/ic-tree-view/ic-tree-view.js +3 -3
  148. package/dist/collection/utils/types.js.map +1 -1
  149. package/dist/components/helpers.js +4 -1
  150. package/dist/components/helpers.js.map +1 -1
  151. package/dist/components/helpers2.js.map +1 -1
  152. package/dist/components/ic-action-chip.js +1 -1
  153. package/dist/components/ic-alert.js +4 -2
  154. package/dist/components/ic-alert.js.map +1 -1
  155. package/dist/components/ic-back-to-top.js +6 -5
  156. package/dist/components/ic-back-to-top.js.map +1 -1
  157. package/dist/components/ic-badge.js +3 -3
  158. package/dist/components/ic-badge.js.map +1 -1
  159. package/dist/components/ic-breadcrumb-group.js +3 -3
  160. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  161. package/dist/components/ic-breadcrumb2.js +5 -4
  162. package/dist/components/ic-breadcrumb2.js.map +1 -1
  163. package/dist/components/ic-button2.js +35 -11
  164. package/dist/components/ic-button2.js.map +1 -1
  165. package/dist/components/ic-card-horizontal.js +34 -6
  166. package/dist/components/ic-card-horizontal.js.map +1 -1
  167. package/dist/components/ic-card-vertical.js +5 -5
  168. package/dist/components/ic-card-vertical.js.map +1 -1
  169. package/dist/components/ic-checkbox-group.js +3 -3
  170. package/dist/components/ic-checkbox-group.js.map +1 -1
  171. package/dist/components/ic-checkbox2.js +5 -5
  172. package/dist/components/ic-checkbox2.js.map +1 -1
  173. package/dist/components/ic-chip.js +4 -4
  174. package/dist/components/ic-chip.js.map +1 -1
  175. package/dist/components/ic-data-list.js +2 -2
  176. package/dist/components/ic-data-list.js.map +1 -1
  177. package/dist/components/ic-data-row.js +3 -3
  178. package/dist/components/ic-data-row.js.map +1 -1
  179. package/dist/components/ic-data-table-title-bar.js +3 -3
  180. package/dist/components/ic-data-table.js +36 -15
  181. package/dist/components/ic-data-table.js.map +1 -1
  182. package/dist/components/ic-date-input2.js +3 -3
  183. package/dist/components/ic-date-picker.js +10 -10
  184. package/dist/components/ic-dialog.js +5 -4
  185. package/dist/components/ic-dialog.js.map +1 -1
  186. package/dist/components/ic-divider2.js +3 -2
  187. package/dist/components/ic-divider2.js.map +1 -1
  188. package/dist/components/ic-empty-state2.js +3 -3
  189. package/dist/components/ic-empty-state2.js.map +1 -1
  190. package/dist/components/ic-footer-link-group.js +1 -1
  191. package/dist/components/ic-footer-link.js +3 -3
  192. package/dist/components/ic-footer-link.js.map +1 -1
  193. package/dist/components/ic-footer.js +1 -1
  194. package/dist/components/ic-hero.js +8 -7
  195. package/dist/components/ic-hero.js.map +1 -1
  196. package/dist/components/ic-horizontal-scroll2.js +6 -6
  197. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  198. package/dist/components/ic-input-component-container2.js +4 -4
  199. package/dist/components/ic-input-component-container2.js.map +1 -1
  200. package/dist/components/ic-input-container2.js +2 -2
  201. package/dist/components/ic-input-container2.js.map +1 -1
  202. package/dist/components/ic-input-label2.js +3 -3
  203. package/dist/components/ic-input-label2.js.map +1 -1
  204. package/dist/components/ic-input-validation2.js +4 -4
  205. package/dist/components/ic-input-validation2.js.map +1 -1
  206. package/dist/components/ic-layout-grid-item.js +2 -2
  207. package/dist/components/ic-layout-grid-item.js.map +1 -1
  208. package/dist/components/ic-layout-grid.js +2 -2
  209. package/dist/components/ic-layout-grid.js.map +1 -1
  210. package/dist/components/ic-link2.js +1 -1
  211. package/dist/components/ic-link2.js.map +1 -1
  212. package/dist/components/ic-loading-indicator2.js +7 -6
  213. package/dist/components/ic-loading-indicator2.js.map +1 -1
  214. package/dist/components/ic-menu-group.js +2 -2
  215. package/dist/components/ic-menu-group.js.map +1 -1
  216. package/dist/components/ic-menu-item2.js +3 -2
  217. package/dist/components/ic-menu-item2.js.map +1 -1
  218. package/dist/components/ic-menu2.js +4 -4
  219. package/dist/components/ic-menu2.js.map +1 -1
  220. package/dist/components/ic-navigation-button.js +3 -3
  221. package/dist/components/ic-navigation-button.js.map +1 -1
  222. package/dist/components/ic-navigation-group.js +2 -2
  223. package/dist/components/ic-navigation-group.js.map +1 -1
  224. package/dist/components/ic-navigation-item.js +3 -3
  225. package/dist/components/ic-navigation-item.js.map +1 -1
  226. package/dist/components/ic-navigation-menu2.js +5 -5
  227. package/dist/components/ic-navigation-menu2.js.map +1 -1
  228. package/dist/components/ic-page-header.js +7 -7
  229. package/dist/components/ic-page-header.js.map +1 -1
  230. package/dist/components/ic-pagination-bar2.js +5 -5
  231. package/dist/components/ic-pagination-item2.js +2 -2
  232. package/dist/components/ic-pagination-item2.js.map +1 -1
  233. package/dist/components/ic-pagination2.js +4 -4
  234. package/dist/components/ic-pagination2.js.map +1 -1
  235. package/dist/components/ic-popover-menu.js +5 -5
  236. package/dist/components/ic-popover-menu.js.map +1 -1
  237. package/dist/components/ic-radio-group.js +5 -5
  238. package/dist/components/ic-radio-group.js.map +1 -1
  239. package/dist/components/ic-radio-option.js +5 -5
  240. package/dist/components/ic-radio-option.js.map +1 -1
  241. package/dist/components/ic-search-bar.js +10 -10
  242. package/dist/components/ic-search-bar.js.map +1 -1
  243. package/dist/components/ic-section-container2.js +2 -2
  244. package/dist/components/ic-section-container2.js.map +1 -1
  245. package/dist/components/ic-select2.js +20 -12
  246. package/dist/components/ic-select2.js.map +1 -1
  247. package/dist/components/ic-side-navigation.js +6 -6
  248. package/dist/components/ic-side-navigation.js.map +1 -1
  249. package/dist/components/ic-skeleton.js +2 -2
  250. package/dist/components/ic-skeleton.js.map +1 -1
  251. package/dist/components/ic-skip-link.js +2 -2
  252. package/dist/components/ic-skip-link.js.map +1 -1
  253. package/dist/components/ic-status-tag.js +2 -2
  254. package/dist/components/ic-status-tag.js.map +1 -1
  255. package/dist/components/ic-step.js +14 -14
  256. package/dist/components/ic-step.js.map +1 -1
  257. package/dist/components/ic-stepper.js +2 -2
  258. package/dist/components/ic-stepper.js.map +1 -1
  259. package/dist/components/ic-switch.js +5 -5
  260. package/dist/components/ic-switch.js.map +1 -1
  261. package/dist/components/ic-tab-context.js +1 -1
  262. package/dist/components/ic-tab-context.js.map +1 -1
  263. package/dist/components/ic-tab-group.js +2 -2
  264. package/dist/components/ic-tab-group.js.map +1 -1
  265. package/dist/components/ic-tab-panel.js +2 -2
  266. package/dist/components/ic-tab-panel.js.map +1 -1
  267. package/dist/components/ic-tab.js +2 -2
  268. package/dist/components/ic-tab.js.map +1 -1
  269. package/dist/components/ic-table-of-contents.js +3 -3
  270. package/dist/components/ic-text-field2.js +12 -7
  271. package/dist/components/ic-text-field2.js.map +1 -1
  272. package/dist/components/ic-theme.js +2 -2
  273. package/dist/components/ic-theme.js.map +1 -1
  274. package/dist/components/ic-time-input.js +4 -4
  275. package/dist/components/ic-toast-region.js +1 -1
  276. package/dist/components/ic-toast-region.js.map +1 -1
  277. package/dist/components/ic-toast.js +8 -5
  278. package/dist/components/ic-toast.js.map +1 -1
  279. package/dist/components/ic-toggle-button-group.js +7 -3
  280. package/dist/components/ic-toggle-button-group.js.map +1 -1
  281. package/dist/components/ic-toggle-button.js +58 -45
  282. package/dist/components/ic-toggle-button.js.map +1 -1
  283. package/dist/components/ic-tooltip2.js +3 -3
  284. package/dist/components/ic-tooltip2.js.map +1 -1
  285. package/dist/components/ic-top-navigation.js +5 -5
  286. package/dist/components/ic-top-navigation.js.map +1 -1
  287. package/dist/components/ic-tree-item.js +2 -2
  288. package/dist/components/ic-tree-view.js +3 -3
  289. package/dist/components/ic-typography2.js +2 -2
  290. package/dist/components/ic-typography2.js.map +1 -1
  291. package/dist/core/core.css +5 -2
  292. package/dist/core/core.esm.js +1 -1
  293. package/dist/core/core.esm.js.map +1 -1
  294. package/dist/core/{p-74439163.entry.js → p-035dbee0.entry.js} +2 -2
  295. package/dist/core/{p-74439163.entry.js.map → p-035dbee0.entry.js.map} +1 -1
  296. package/dist/core/{p-d4a1e90d.entry.js → p-03ae0bc3.entry.js} +2 -2
  297. package/dist/core/{p-d4a1e90d.entry.js.map → p-03ae0bc3.entry.js.map} +1 -1
  298. package/dist/core/p-04a9f82f.entry.js +2 -0
  299. package/dist/core/p-04a9f82f.entry.js.map +1 -0
  300. package/dist/core/{p-e4f1d72b.entry.js → p-069e758b.entry.js} +2 -2
  301. package/dist/core/{p-4747c39f.entry.js → p-09c31ac6.entry.js} +2 -2
  302. package/dist/core/{p-4747c39f.entry.js.map → p-09c31ac6.entry.js.map} +1 -1
  303. package/dist/core/p-0f22f41e.js.map +1 -1
  304. package/dist/core/{p-0b0cc10d.entry.js → p-10950727.entry.js} +2 -2
  305. package/dist/core/p-10950727.entry.js.map +1 -0
  306. package/dist/core/{p-760a57e7.entry.js → p-12e8dcdd.entry.js} +2 -2
  307. package/dist/core/{p-760a57e7.entry.js.map → p-12e8dcdd.entry.js.map} +1 -1
  308. package/dist/core/{p-154bb0fb.entry.js → p-13c8859b.entry.js} +2 -2
  309. package/dist/core/{p-154bb0fb.entry.js.map → p-13c8859b.entry.js.map} +1 -1
  310. package/dist/core/p-15a81f32.entry.js +2 -0
  311. package/dist/core/p-15a81f32.entry.js.map +1 -0
  312. package/dist/core/p-1900c7c7.entry.js +2 -0
  313. package/dist/core/p-1900c7c7.entry.js.map +1 -0
  314. package/dist/core/{p-94e5ed81.entry.js → p-193afb53.entry.js} +2 -2
  315. package/dist/core/{p-94e5ed81.entry.js.map → p-193afb53.entry.js.map} +1 -1
  316. package/dist/core/{p-796b9ac5.entry.js → p-1be092cc.entry.js} +2 -2
  317. package/dist/core/{p-796b9ac5.entry.js.map → p-1be092cc.entry.js.map} +1 -1
  318. package/dist/core/{p-8908b8e6.entry.js → p-1ca62941.entry.js} +2 -2
  319. package/dist/core/{p-4c5af5f7.entry.js → p-2528ecec.entry.js} +2 -2
  320. package/dist/core/{p-6d4418e4.entry.js → p-3594922d.entry.js} +2 -2
  321. package/dist/core/{p-6d4418e4.entry.js.map → p-3594922d.entry.js.map} +1 -1
  322. package/dist/core/{p-54da2d5f.entry.js → p-3f0bce15.entry.js} +2 -2
  323. package/dist/core/{p-54da2d5f.entry.js.map → p-3f0bce15.entry.js.map} +1 -1
  324. package/dist/core/p-402870f7.entry.js +2 -0
  325. package/dist/core/p-402870f7.entry.js.map +1 -0
  326. package/dist/core/{p-07365d6f.entry.js → p-444cd8d3.entry.js} +2 -2
  327. package/dist/core/{p-07365d6f.entry.js.map → p-444cd8d3.entry.js.map} +1 -1
  328. package/dist/core/{p-18b793e0.entry.js → p-5a1cfb3c.entry.js} +2 -2
  329. package/dist/core/{p-9cf6ccfd.entry.js → p-5cf704e3.entry.js} +2 -2
  330. package/dist/core/{p-9cf6ccfd.entry.js.map → p-5cf704e3.entry.js.map} +1 -1
  331. package/dist/core/{p-66f45822.entry.js → p-5ef453b6.entry.js} +2 -2
  332. package/dist/core/{p-66f45822.entry.js.map → p-5ef453b6.entry.js.map} +1 -1
  333. package/dist/core/{p-9b68bee6.entry.js → p-615d474e.entry.js} +2 -2
  334. package/dist/core/p-63203e59.entry.js +2 -0
  335. package/dist/core/p-63203e59.entry.js.map +1 -0
  336. package/dist/core/p-6c238418.entry.js +2 -0
  337. package/dist/core/p-6c238418.entry.js.map +1 -0
  338. package/dist/core/{p-f591abc2.entry.js → p-7026afad.entry.js} +2 -2
  339. package/dist/core/{p-f591abc2.entry.js.map → p-7026afad.entry.js.map} +1 -1
  340. package/dist/core/p-72171192.entry.js +2 -0
  341. package/dist/core/p-72171192.entry.js.map +1 -0
  342. package/dist/core/p-72b7051a.entry.js +2 -0
  343. package/dist/core/p-72b7051a.entry.js.map +1 -0
  344. package/dist/core/{p-2bba11f8.entry.js → p-7bf9bbde.entry.js} +2 -2
  345. package/dist/core/{p-2bba11f8.entry.js.map → p-7bf9bbde.entry.js.map} +1 -1
  346. package/dist/core/{p-77c4d1d2.entry.js → p-7cf6b428.entry.js} +2 -2
  347. package/dist/core/{p-77c4d1d2.entry.js.map → p-7cf6b428.entry.js.map} +1 -1
  348. package/dist/core/{p-e8cea1d5.entry.js → p-7f304d85.entry.js} +2 -2
  349. package/dist/core/{p-e8cea1d5.entry.js.map → p-7f304d85.entry.js.map} +1 -1
  350. package/dist/core/{p-37d217b5.entry.js → p-889bb8db.entry.js} +2 -2
  351. package/dist/core/{p-37d217b5.entry.js.map → p-889bb8db.entry.js.map} +1 -1
  352. package/dist/core/{p-8c841dc8.entry.js → p-8c580d88.entry.js} +2 -2
  353. package/dist/core/{p-c5d03c65.entry.js → p-8c94541e.entry.js} +2 -2
  354. package/dist/core/{p-c5d03c65.entry.js.map → p-8c94541e.entry.js.map} +1 -1
  355. package/dist/core/{p-6d2fa004.entry.js → p-92936b49.entry.js} +2 -2
  356. package/dist/core/{p-57721431.entry.js → p-93e1ba0a.entry.js} +2 -2
  357. package/dist/core/{p-57721431.entry.js.map → p-93e1ba0a.entry.js.map} +1 -1
  358. package/dist/core/{p-70447473.entry.js → p-982a173d.entry.js} +2 -2
  359. package/dist/core/{p-70447473.entry.js.map → p-982a173d.entry.js.map} +1 -1
  360. package/dist/core/{p-8b0abe0f.entry.js → p-9a9605c3.entry.js} +2 -2
  361. package/dist/core/{p-8b0abe0f.entry.js.map → p-9a9605c3.entry.js.map} +1 -1
  362. package/dist/core/{p-37daa8fe.entry.js → p-9c2e9189.entry.js} +2 -2
  363. package/dist/core/{p-37daa8fe.entry.js.map → p-9c2e9189.entry.js.map} +1 -1
  364. package/dist/core/p-9ce9d39a.entry.js +2 -0
  365. package/dist/core/p-9ce9d39a.entry.js.map +1 -0
  366. package/dist/core/p-9e200827.entry.js +2 -0
  367. package/dist/core/{p-9af5008c.entry.js.map → p-9e200827.entry.js.map} +1 -1
  368. package/dist/core/{p-a4184f39.entry.js → p-9fade6ad.entry.js} +2 -2
  369. package/dist/core/{p-a4184f39.entry.js.map → p-9fade6ad.entry.js.map} +1 -1
  370. package/dist/core/{p-fba9f5b6.entry.js → p-a27e1cee.entry.js} +2 -2
  371. package/dist/core/{p-fba9f5b6.entry.js.map → p-a27e1cee.entry.js.map} +1 -1
  372. package/dist/core/p-a8cc28a6.entry.js +2 -0
  373. package/dist/core/p-a8cc28a6.entry.js.map +1 -0
  374. package/dist/core/{p-f6209622.entry.js → p-a99ad459.entry.js} +2 -2
  375. package/dist/core/{p-f6209622.entry.js.map → p-a99ad459.entry.js.map} +1 -1
  376. package/dist/core/{p-9a8bcb78.entry.js → p-b00efb15.entry.js} +2 -2
  377. package/dist/core/{p-9a8bcb78.entry.js.map → p-b00efb15.entry.js.map} +1 -1
  378. package/dist/core/{p-656b92d7.entry.js → p-b6d6b26e.entry.js} +2 -2
  379. package/dist/core/{p-ff4a873e.entry.js → p-b88db5e3.entry.js} +2 -2
  380. package/dist/core/{p-ff4a873e.entry.js.map → p-b88db5e3.entry.js.map} +1 -1
  381. package/dist/core/{p-1131db25.entry.js → p-c0d4db72.entry.js} +2 -2
  382. package/dist/core/{p-d77981a5.entry.js → p-c87cc0d1.entry.js} +2 -2
  383. package/dist/core/{p-d77981a5.entry.js.map → p-c87cc0d1.entry.js.map} +1 -1
  384. package/dist/core/{p-553531bf.entry.js → p-c8ce7d60.entry.js} +2 -2
  385. package/dist/core/{p-553531bf.entry.js.map → p-c8ce7d60.entry.js.map} +1 -1
  386. package/dist/core/{p-5bc54721.entry.js → p-d144ca59.entry.js} +2 -2
  387. package/dist/core/{p-5bc54721.entry.js.map → p-d144ca59.entry.js.map} +1 -1
  388. package/dist/core/{p-492fcb51.entry.js → p-d8200098.entry.js} +2 -2
  389. package/dist/core/{p-492fcb51.entry.js.map → p-d8200098.entry.js.map} +1 -1
  390. package/dist/core/{p-479e5fa2.entry.js → p-df220b91.entry.js} +2 -2
  391. package/dist/core/p-e380a54e.entry.js +2 -0
  392. package/dist/core/p-e380a54e.entry.js.map +1 -0
  393. package/dist/core/{p-b7a726fb.entry.js → p-e4b82731.entry.js} +2 -2
  394. package/dist/core/{p-b7a726fb.entry.js.map → p-e4b82731.entry.js.map} +1 -1
  395. package/dist/core/{p-542ac498.js → p-e4ef4263.js} +2 -2
  396. package/dist/core/p-e4ef4263.js.map +1 -0
  397. package/dist/core/p-ea1de762.entry.js +2 -0
  398. package/dist/core/p-ea1de762.entry.js.map +1 -0
  399. package/dist/core/{p-a86756fa.entry.js → p-eb958cc8.entry.js} +2 -2
  400. package/dist/core/{p-a86756fa.entry.js.map → p-eb958cc8.entry.js.map} +1 -1
  401. package/dist/core/{p-b4a2f6fa.entry.js → p-f098e531.entry.js} +2 -2
  402. package/dist/core/{p-b4a2f6fa.entry.js.map → p-f098e531.entry.js.map} +1 -1
  403. package/dist/core/p-f16c4210.entry.js +2 -0
  404. package/dist/core/p-f16c4210.entry.js.map +1 -0
  405. package/dist/core/{p-c1ae14ad.entry.js → p-f3ccaa0b.entry.js} +2 -2
  406. package/dist/core/{p-c1ae14ad.entry.js.map → p-f3ccaa0b.entry.js.map} +1 -1
  407. package/dist/core/{p-76ab72ef.entry.js → p-f457d508.entry.js} +2 -2
  408. package/dist/core/{p-266d5e13.entry.js → p-f4e7cae6.entry.js} +2 -2
  409. package/dist/core/{p-266d5e13.entry.js.map → p-f4e7cae6.entry.js.map} +1 -1
  410. package/dist/core/{p-bf5558ac.entry.js → p-fad44bc8.entry.js} +2 -2
  411. package/dist/core/{p-bf5558ac.entry.js.map → p-fad44bc8.entry.js.map} +1 -1
  412. package/dist/core/{p-5fcfcfb6.entry.js → p-fb43abd6.entry.js} +2 -2
  413. package/dist/core/{p-5fcfcfb6.entry.js.map → p-fb43abd6.entry.js.map} +1 -1
  414. package/dist/core/{p-8b8df1da.entry.js → p-fd64c0e5.entry.js} +2 -2
  415. package/dist/core/{p-8b8df1da.entry.js.map → p-fd64c0e5.entry.js.map} +1 -1
  416. package/dist/core/{p-ba26a1f0.entry.js → p-ffbf493f.entry.js} +2 -2
  417. package/dist/core/p-ffc1cea6.entry.js +2 -0
  418. package/dist/core/p-ffc1cea6.entry.js.map +1 -0
  419. package/dist/esm/core.js +1 -1
  420. package/dist/esm/{helpers-1dbd527e.js → helpers-5419eb6c.js} +5 -2
  421. package/dist/esm/helpers-5419eb6c.js.map +1 -0
  422. package/dist/esm/helpers-89cb996d.js.map +1 -1
  423. package/dist/esm/ic-accordion-group.entry.js +1 -1
  424. package/dist/esm/ic-accordion.entry.js +1 -1
  425. package/dist/esm/ic-action-chip.entry.js +1 -1
  426. package/dist/esm/ic-alert.entry.js +4 -2
  427. package/dist/esm/ic-alert.entry.js.map +1 -1
  428. package/dist/esm/ic-back-to-top.entry.js +6 -5
  429. package/dist/esm/ic-back-to-top.entry.js.map +1 -1
  430. package/dist/esm/ic-badge.entry.js +3 -3
  431. package/dist/esm/ic-badge.entry.js.map +1 -1
  432. package/dist/esm/ic-breadcrumb-group.entry.js +3 -3
  433. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  434. package/dist/esm/ic-breadcrumb.entry.js +5 -4
  435. package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
  436. package/dist/esm/ic-button_3.entry.js +43 -19
  437. package/dist/esm/ic-button_3.entry.js.map +1 -1
  438. package/dist/esm/ic-card-horizontal.entry.js +32 -6
  439. package/dist/esm/ic-card-horizontal.entry.js.map +1 -1
  440. package/dist/esm/ic-card-vertical.entry.js +5 -5
  441. package/dist/esm/ic-card-vertical.entry.js.map +1 -1
  442. package/dist/esm/ic-checkbox-group.entry.js +3 -3
  443. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  444. package/dist/esm/ic-checkbox_3.entry.js +12 -12
  445. package/dist/esm/ic-checkbox_3.entry.js.map +1 -1
  446. package/dist/esm/ic-chip.entry.js +4 -4
  447. package/dist/esm/ic-chip.entry.js.map +1 -1
  448. package/dist/esm/ic-data-list.entry.js +2 -2
  449. package/dist/esm/ic-data-list.entry.js.map +1 -1
  450. package/dist/esm/ic-data-row.entry.js +3 -3
  451. package/dist/esm/ic-data-row.entry.js.map +1 -1
  452. package/dist/esm/ic-data-table-title-bar.entry.js +3 -3
  453. package/dist/esm/ic-data-table.entry.js +35 -15
  454. package/dist/esm/ic-data-table.entry.js.map +1 -1
  455. package/dist/esm/ic-date-input.entry.js +3 -3
  456. package/dist/esm/ic-date-picker.entry.js +10 -10
  457. package/dist/esm/ic-dialog.entry.js +5 -4
  458. package/dist/esm/ic-dialog.entry.js.map +1 -1
  459. package/dist/esm/ic-divider.entry.js +3 -2
  460. package/dist/esm/ic-divider.entry.js.map +1 -1
  461. package/dist/esm/ic-footer-link-group.entry.js +1 -1
  462. package/dist/esm/ic-footer-link.entry.js +3 -3
  463. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  464. package/dist/esm/ic-footer.entry.js +1 -1
  465. package/dist/esm/ic-hero.entry.js +8 -7
  466. package/dist/esm/ic-hero.entry.js.map +1 -1
  467. package/dist/esm/ic-horizontal-scroll.entry.js +6 -6
  468. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  469. package/dist/esm/ic-input-component-container_4.entry.js +11 -11
  470. package/dist/esm/ic-input-component-container_4.entry.js.map +1 -1
  471. package/dist/esm/ic-layout-grid-item.entry.js +2 -2
  472. package/dist/esm/ic-layout-grid-item.entry.js.map +1 -1
  473. package/dist/esm/ic-layout-grid.entry.js +2 -2
  474. package/dist/esm/ic-layout-grid.entry.js.map +1 -1
  475. package/dist/esm/ic-link.entry.js +2 -2
  476. package/dist/esm/ic-link.entry.js.map +1 -1
  477. package/dist/esm/ic-menu-group.entry.js +2 -2
  478. package/dist/esm/ic-menu-group.entry.js.map +1 -1
  479. package/dist/esm/ic-menu-item.entry.js +3 -2
  480. package/dist/esm/ic-menu-item.entry.js.map +1 -1
  481. package/dist/esm/ic-menu.entry.js +4 -4
  482. package/dist/esm/ic-menu.entry.js.map +1 -1
  483. package/dist/esm/ic-navigation-button.entry.js +3 -3
  484. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  485. package/dist/esm/ic-navigation-group.entry.js +2 -2
  486. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  487. package/dist/esm/ic-navigation-item.entry.js +3 -3
  488. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  489. package/dist/esm/ic-navigation-menu.entry.js +5 -5
  490. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  491. package/dist/esm/ic-page-header.entry.js +7 -7
  492. package/dist/esm/ic-page-header.entry.js.map +1 -1
  493. package/dist/esm/ic-pagination_4.entry.js +36 -23
  494. package/dist/esm/ic-pagination_4.entry.js.map +1 -1
  495. package/dist/esm/ic-popover-menu.entry.js +5 -5
  496. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  497. package/dist/esm/ic-radio-group.entry.js +5 -5
  498. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  499. package/dist/esm/ic-radio-option.entry.js +5 -5
  500. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  501. package/dist/esm/ic-search-bar.entry.js +10 -10
  502. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  503. package/dist/esm/ic-section-container.entry.js +2 -2
  504. package/dist/esm/ic-section-container.entry.js.map +1 -1
  505. package/dist/esm/ic-side-navigation.entry.js +6 -6
  506. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  507. package/dist/esm/ic-skeleton.entry.js +2 -2
  508. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  509. package/dist/esm/ic-skip-link.entry.js +2 -2
  510. package/dist/esm/ic-skip-link.entry.js.map +1 -1
  511. package/dist/esm/ic-status-tag.entry.js +3 -3
  512. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  513. package/dist/esm/ic-step.entry.js +14 -14
  514. package/dist/esm/ic-step.entry.js.map +1 -1
  515. package/dist/esm/ic-stepper.entry.js +3 -3
  516. package/dist/esm/ic-stepper.entry.js.map +1 -1
  517. package/dist/esm/ic-switch.entry.js +5 -5
  518. package/dist/esm/ic-switch.entry.js.map +1 -1
  519. package/dist/esm/ic-tab-context.entry.js +1 -1
  520. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  521. package/dist/esm/ic-tab-group.entry.js +3 -3
  522. package/dist/esm/ic-tab-group.entry.js.map +1 -1
  523. package/dist/esm/ic-tab-panel.entry.js +2 -2
  524. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  525. package/dist/esm/ic-tab.entry.js +3 -3
  526. package/dist/esm/ic-tab.entry.js.map +1 -1
  527. package/dist/esm/ic-table-of-contents.entry.js +3 -3
  528. package/dist/esm/ic-theme.entry.js +2 -2
  529. package/dist/esm/ic-theme.entry.js.map +1 -1
  530. package/dist/esm/ic-time-input.entry.js +4 -4
  531. package/dist/esm/ic-toast-region.entry.js +1 -1
  532. package/dist/esm/ic-toast-region.entry.js.map +1 -1
  533. package/dist/esm/ic-toast.entry.js +8 -5
  534. package/dist/esm/ic-toast.entry.js.map +1 -1
  535. package/dist/esm/ic-toggle-button-group.entry.js +8 -4
  536. package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
  537. package/dist/esm/ic-toggle-button.entry.js +58 -45
  538. package/dist/esm/ic-toggle-button.entry.js.map +1 -1
  539. package/dist/esm/ic-top-navigation.entry.js +5 -5
  540. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  541. package/dist/esm/ic-tree-item.entry.js +2 -2
  542. package/dist/esm/ic-tree-view.entry.js +3 -3
  543. package/dist/esm/ic-typography.entry.js +3 -3
  544. package/dist/esm/ic-typography.entry.js.map +1 -1
  545. package/dist/esm/loader.js +1 -1
  546. package/dist/types/components/ic-card-horizontal/ic-card-horizontal.d.ts +19 -4
  547. package/dist/types/components/ic-card-horizontal/ic-card-horizontal.stories.d.ts +51 -9
  548. package/dist/types/components/ic-data-table/ic-data-table.d.ts +5 -0
  549. package/dist/types/components/ic-data-table/ic-data-table.stories.d.ts +6 -0
  550. package/dist/types/components/ic-data-table/story-data.d.ts +1 -0
  551. package/dist/types/components.d.ts +42 -24
  552. package/dist/types/utils/types.d.ts +1 -0
  553. package/hydrate/index.js +419 -298
  554. package/hydrate/index.mjs +419 -298
  555. package/package.json +3 -3
  556. package/dist/cjs/helpers-046745ee.js.map +0 -1
  557. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.types.js +0 -2
  558. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.types.js.map +0 -1
  559. package/dist/core/p-05e0cadf.entry.js +0 -2
  560. package/dist/core/p-05e0cadf.entry.js.map +0 -1
  561. package/dist/core/p-0b0cc10d.entry.js.map +0 -1
  562. package/dist/core/p-1d89fcda.entry.js +0 -2
  563. package/dist/core/p-1d89fcda.entry.js.map +0 -1
  564. package/dist/core/p-2f0ab1d0.entry.js +0 -2
  565. package/dist/core/p-2f0ab1d0.entry.js.map +0 -1
  566. package/dist/core/p-542ac498.js.map +0 -1
  567. package/dist/core/p-62ad6ce5.entry.js +0 -2
  568. package/dist/core/p-62ad6ce5.entry.js.map +0 -1
  569. package/dist/core/p-6addd986.entry.js +0 -2
  570. package/dist/core/p-6addd986.entry.js.map +0 -1
  571. package/dist/core/p-6e5fc63c.entry.js +0 -2
  572. package/dist/core/p-6e5fc63c.entry.js.map +0 -1
  573. package/dist/core/p-7986db4a.entry.js +0 -2
  574. package/dist/core/p-7986db4a.entry.js.map +0 -1
  575. package/dist/core/p-8b4a7a78.entry.js +0 -2
  576. package/dist/core/p-8b4a7a78.entry.js.map +0 -1
  577. package/dist/core/p-9af5008c.entry.js +0 -2
  578. package/dist/core/p-9fa329f2.entry.js +0 -2
  579. package/dist/core/p-9fa329f2.entry.js.map +0 -1
  580. package/dist/core/p-a7a572d9.entry.js +0 -2
  581. package/dist/core/p-a7a572d9.entry.js.map +0 -1
  582. package/dist/core/p-bad17ba7.entry.js +0 -2
  583. package/dist/core/p-bad17ba7.entry.js.map +0 -1
  584. package/dist/core/p-bc58e37e.entry.js +0 -2
  585. package/dist/core/p-bc58e37e.entry.js.map +0 -1
  586. package/dist/core/p-bf08d34c.entry.js +0 -2
  587. package/dist/core/p-bf08d34c.entry.js.map +0 -1
  588. package/dist/core/p-c4bf8742.entry.js +0 -2
  589. package/dist/core/p-c4bf8742.entry.js.map +0 -1
  590. package/dist/esm/helpers-1dbd527e.js.map +0 -1
  591. package/dist/types/components/ic-card-horizontal/ic-card-horizontal.types.d.ts +0 -1
  592. /package/dist/core/{p-e4f1d72b.entry.js.map → p-069e758b.entry.js.map} +0 -0
  593. /package/dist/core/{p-8908b8e6.entry.js.map → p-1ca62941.entry.js.map} +0 -0
  594. /package/dist/core/{p-4c5af5f7.entry.js.map → p-2528ecec.entry.js.map} +0 -0
  595. /package/dist/core/{p-18b793e0.entry.js.map → p-5a1cfb3c.entry.js.map} +0 -0
  596. /package/dist/core/{p-9b68bee6.entry.js.map → p-615d474e.entry.js.map} +0 -0
  597. /package/dist/core/{p-8c841dc8.entry.js.map → p-8c580d88.entry.js.map} +0 -0
  598. /package/dist/core/{p-6d2fa004.entry.js.map → p-92936b49.entry.js.map} +0 -0
  599. /package/dist/core/{p-656b92d7.entry.js.map → p-b6d6b26e.entry.js.map} +0 -0
  600. /package/dist/core/{p-1131db25.entry.js.map → p-c0d4db72.entry.js.map} +0 -0
  601. /package/dist/core/{p-479e5fa2.entry.js.map → p-df220b91.entry.js.map} +0 -0
  602. /package/dist/core/{p-76ab72ef.entry.js.map → p-f457d508.entry.js.map} +0 -0
  603. /package/dist/core/{p-ba26a1f0.entry.js.map → p-ffbf493f.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["icPageHeaderCss","IcPageHeaderStyle0","PageHeader","constructor","hostRef","this","resizeObserver","areButtonsReversed","deviceSize","DEVICE_SIZES","XL","aligned","border","reverseOrder","size","sticky","stickyDesktopOnly","theme","resizeObserverCallback","isSlotUsed","el","applyReverseOrder","runResizeObserver","ResizeObserver","observe","_a","currSize","getCurrentDeviceSize","actionArea","shadowRoot","querySelector","actionHeights","i","actionContent","length","action","actionHeight","offsetHeight","undefined","push","max","Math","actionAreaHeight","appendActionContent","reverse","forEach","btn","append","S","disconnectedCallback","disconnect","componentWillLoad","Array","from","querySelectorAll","componentDidLoad","checkResizeObserver","render","_b","heading","subheading","navAriaLabel","textContent","h","Host","key","class","ariaLabel","role","fullHeight","name","variant"],"sources":["../web-components/dist/collection/components/ic-page-header/ic-page-header.css?tag=ic-page-header&encapsulation=shadow","../web-components/dist/collection/components/ic-page-header/ic-page-header.js"],"sourcesContent":["/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput {\n /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect {\n /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font-style: inherit;\n vertical-align: baseline;\n}\n\n\n/**\n * @prop --ic-z-index-page-header: z-index of page-header\n */\n\n:host {\n display: block;\n z-index: var(--ic-z-index-page-header);\n}\n\n:host(.ic-page-header-sticky) {\n position: sticky;\n top: 0;\n box-shadow: var(--ic-elevation-overlay);\n z-index: var(--ic-z-index-sticky-page-header);\n}\n\nheader {\n background-color: var(--ic-page-header-background);\n}\n\nheader.border-bottom {\n border-bottom: var(--ic-border-default);\n border-bottom: var(--ic-space-1px) solid var(--ic-page-header-border);\n}\n\nheader.tabs {\n padding-top: var(--ic-space-md);\n}\n\n.breadcrumb-area {\n margin-bottom: var(--ic-space-md);\n}\n\n::slotted(ic-navigation-item) {\n --navigation-link-colour: var(--ic-color-text-primary);\n}\n\n.main-content {\n display: grid;\n grid-template-columns: auto 1fr;\n grid-template-areas:\n \"title-area action-area\"\n \"input-area action-area\";\n -moz-column-gap: var(--ic-space-md);\n column-gap: var(--ic-space-md);\n justify-content: space-between;\n width: 100%;\n}\n\n.title-area {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 19rem;\n grid-area: title-area;\n}\n\n.header-content {\n display: flex;\n align-items: center;\n width: 100%;\n flex-wrap: wrap;\n -moz-column-gap: var(--ic-space-md);\n column-gap: var(--ic-space-md);\n}\n\n.heading {\n display: inline-block;\n overflow-wrap: break-word;\n -webkit-hyphens: auto;\n hyphens: auto;\n}\n\n.subheading-content {\n margin-top: var(--ic-space-xs);\n}\n\n.subheading-content.small {\n margin-top: var(--ic-space-md);\n}\n\n.action-area {\n display: flex;\n gap: var(--ic-space-md);\n flex-flow: row wrap;\n justify-self: end;\n justify-content: flex-end;\n height: -moz-fit-content;\n height: fit-content;\n grid-area: action-area;\n}\n\n.input-area,\n.navigation-area {\n margin-top: var(--ic-space-md);\n width: 100%;\n}\n\n.tabs-slot {\n display: flex;\n overflow-x: auto;\n padding: 0.5rem;\n margin: -0.5rem;\n}\n\n.tabs-slot::-webkit-scrollbar {\n display: none;\n}\n\n.input-area {\n grid-area: input-area;\n}\n\n@media screen and (max-width: 576px) {\n ::slotted(ic-text-field) {\n --input-width: 100%;\n\n max-width: 20rem;\n }\n\n .main-content {\n grid-template-areas:\n \"title-area\"\n \"action-area\"\n \"input-area\";\n justify-content: flex-start;\n }\n\n .title-area {\n min-width: 0;\n }\n\n .action-area {\n min-width: 100%;\n margin-top: var(--ic-space-md);\n justify-content: start;\n }\n}\n\n@media screen and (min-width: 992px) {\n :host(.ic-page-header-sticky-desktop) {\n position: sticky;\n top: 0;\n box-shadow: var(--ic-elevation-overlay);\n z-index: var(--ic-z-index-sticky-page-header);\n }\n}\n","import { Host, h } from \"@stencil/core\";\nimport { isSlotUsed, DEVICE_SIZES, getCurrentDeviceSize, checkResizeObserver, } from \"../../utils/helpers\";\n/**\n * @slot breadcrumbs - Content will be rendered in the breadcrumb area, above the title and action areas.\n * @slot heading - Content will be rendered in the title area, in place of the heading.\n * @slot subheading - Content will be rendered in the title area, in place of the subheading.\n * @slot heading-adornment - Content will be rendered in the title area, adjacent to the heading.\n * @slot actions - Content will be rendered in the action area, adjacent to the title area.\n * @slot input - Content will be rendered in the input area, below the title area and adjacent to the action area.\n * @slot stepper - Content will be rendered in the navigation area, below the title and action areas. Note: stepper slot cannot be used when the tabs slot is being used.\n * @slot tabs - Content will be rendered in the navigation area, below the title and action areas. Note: the stepper slot cannot be used when the tabs slot is being used.\n */\nexport class PageHeader {\n constructor() {\n this.resizeObserver = null;\n this.areButtonsReversed = false;\n this.deviceSize = DEVICE_SIZES.XL;\n /**\n * The alignment of the page header.\n */\n this.aligned = \"left\";\n /**\n * If `true`, a border will be displayed along the bottom of the page header.\n */\n this.border = true;\n /**\n * If `true`, the reading pattern and tab order will change in the action area for viewport widths of above 576px and when actions have not wrapped.\n */\n this.reverseOrder = false;\n /**\n * The size of the page header component.\n */\n this.size = \"medium\";\n /**\n * If `true`, the page header will be sticky at all breakpoints.\n */\n this.sticky = false;\n /**\n * If `true`, the page header will only be sticky for viewport widths of 992px and above.\n */\n this.stickyDesktopOnly = false;\n /**\n * Sets the theme color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component.\n */\n this.theme = \"inherit\";\n this.resizeObserverCallback = () => {\n if (this.reverseOrder && isSlotUsed(this.el, \"actions\")) {\n this.applyReverseOrder();\n }\n };\n this.runResizeObserver = () => {\n this.resizeObserver = new ResizeObserver(() => {\n this.resizeObserverCallback();\n });\n this.resizeObserver.observe(this.el);\n };\n this.applyReverseOrder = () => {\n var _a;\n const currSize = getCurrentDeviceSize();\n if (currSize !== this.deviceSize) {\n this.deviceSize = currSize;\n }\n const actionArea = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(\"div.action-area\");\n const actionHeights = [];\n /* For each button in the actions slot, check the height of the button and push this number into the actionHeights array and then find the greatest number in this array (i.e. find the height of the tallest button) */\n for (let i = 0; i < this.actionContent.length; i++) {\n const action = this.actionContent[i];\n let actionHeight = action.offsetHeight;\n if (actionHeight === undefined) {\n actionHeight = 0;\n }\n actionHeights.push(actionHeight);\n }\n const max = Math.max(...actionHeights);\n /* The smallest breakpoint displays buttons in the same order the user has slotted them in. When the device size is larger than the small breakpoint then the order of the button reverses due to best practice for reading patterns. If the device size is larger than the small breakpoint and the buttons have started to wrap then they follow the order the user has slotted them in. This logic is programmed based on the height of the action-area div that wraps the actions slot. If the height of the action-area div is taller than the height of the tallest button, then it is assumed that the taller height is caused by the buttons wrapping */\n let actionAreaHeight = actionArea.offsetHeight;\n if (actionAreaHeight === undefined) {\n actionAreaHeight = 0;\n }\n const appendActionContent = () => {\n this.actionContent = this.actionContent.reverse();\n this.actionContent.forEach((btn) => {\n this.el.append(btn);\n });\n this.areButtonsReversed = !this.areButtonsReversed;\n };\n if ((this.deviceSize > DEVICE_SIZES.S &&\n actionAreaHeight <= max &&\n !this.areButtonsReversed) ||\n (((this.deviceSize > DEVICE_SIZES.S && actionAreaHeight > max) ||\n this.deviceSize <= DEVICE_SIZES.S) &&\n this.areButtonsReversed)) {\n appendActionContent();\n }\n };\n }\n disconnectedCallback() {\n if (this.resizeObserver !== null) {\n this.resizeObserver.disconnect();\n }\n }\n componentWillLoad() {\n this.actionContent = Array.from(this.el.querySelectorAll(`[slot=\"actions\"]`));\n }\n componentDidLoad() {\n checkResizeObserver(this.runResizeObserver);\n }\n render() {\n var _a, _b;\n const { size, border, heading, subheading, aligned, sticky, stickyDesktopOnly, theme, } = this;\n const navAriaLabel = `${isSlotUsed(this.el, \"heading\")\n ? (_b = (_a = this.el.querySelector('[slot=\"heading\"]')) === null || _a === void 0 ? void 0 : _a.textContent) !== null && _b !== void 0 ? _b : \"\"\n : heading !== null && heading !== void 0 ? heading : \"\"} page sections`;\n return (h(Host, { key: 'ef9b1c5acf30851bedddd8f840fae60b545dfd3f', class: {\n [\"ic-page-header-sticky\"]: !!sticky,\n [\"ic-page-header-sticky-desktop\"]: !sticky && !!stickyDesktopOnly,\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n }, \"aria-label\": this.el.ariaLabel || \"page header\" }, h(\"header\", { key: 'e3f5ec39b13afbd9be424125fa43ea4634a90418', class: {\n [\"border-bottom\"]: !!border,\n [\"tabs\"]: isSlotUsed(this.el, \"tabs\"),\n }, role: \"presentation\" }, h(\"ic-section-container\", { key: '7b58d10dbc3e72c05db7fdc67342eedfde9ed139', aligned: aligned, fullHeight: isSlotUsed(this.el, \"tabs\") }, isSlotUsed(this.el, \"breadcrumbs\") && (h(\"div\", { key: '386e595418e6234228b2518c430d59248b68641f', class: \"breadcrumb-area\" }, h(\"slot\", { key: 'c11be2d0fdccd46ff3ac512a2816b7d6ceceac72', name: \"breadcrumbs\" }))), h(\"div\", { key: 'd9d1bd5b030a28dbdccbdbb80a5ef609bcc927df', class: \"main-content\" }, h(\"div\", { key: '4743493c932b474fad24fc708ca05648d516f3fe', class: \"title-area\" }, h(\"div\", { key: '34fb35fd36f2ef0d8edf3efa0b7e62323be512bb', class: \"header-content\" }, h(\"slot\", { key: '1830379330d7f2a2742dd5ed75c5ea1755d7f8aa', name: \"heading\" }, h(\"ic-typography\", { key: '44e86892aa90b0af8eb1def5733852a4e8225dbb', variant: size === \"small\" ? \"h4\" : \"h2\", class: \"heading\" }, h(\"h2\", { key: 'be25fb99e3e8e5c81c209d1bcd57680718bdc5b8' }, heading))), h(\"slot\", { key: 'c907d0d661b042a77232979fd99a375dcfcc96fe', name: \"heading-adornment\" })), h(\"div\", { key: 'a7561b492f4d5135b4d8957694e498a50ca42645', class: {\n [\"subheading-content\"]: !!subheading || isSlotUsed(this.el, \"subheading\"),\n [\"small\"]: size === \"small\",\n } }, h(\"slot\", { key: '6dc20fc584493c88e1a3baaf5badf583ad4bf694', name: \"subheading\" }, h(\"ic-typography\", { key: 'a1baec7c38856a1d982e7be6cdba10f59ca01351', variant: \"body\" }, subheading)))), isSlotUsed(this.el, \"actions\") && (h(\"div\", { key: '1b5c8bc9cdcb8398379665c2ca60a470a8e5a486', class: \"action-area\" }, h(\"slot\", { key: 'dcc940cea6c4a0b5871aa1501752fed22cc5f932', name: \"actions\" }))), isSlotUsed(this.el, \"input\") && (h(\"div\", { key: '8d0ff957c398f1ac9d8cbc7c78ec18c9b2710a43', class: \"input-area\" }, h(\"slot\", { key: '3dc09d1512ad8ce911ddee0a2dddafb8ae52450c', name: \"input\" })))), (isSlotUsed(this.el, \"stepper\") ||\n isSlotUsed(this.el, \"tabs\")) && (h(\"div\", { key: '9f527e5a1c67ec718a55fa4756249bb0f4c6a6fe', class: \"navigation-area\" }, isSlotUsed(this.el, \"stepper\") &&\n !isSlotUsed(this.el, \"tabs\") && h(\"slot\", { key: 'c8f71660620ec8d74dcefb02f2663a625e539a4d', name: \"stepper\" }), isSlotUsed(this.el, \"tabs\") && (h(\"nav\", { key: 'b2aef6529f53572613bf7a0996e6f1644c98463b', \"aria-label\": navAriaLabel }, h(\"ic-horizontal-scroll\", { key: 'fcb0cd4af39f445f6dd6e84d46e9289a2623ce8f' }, h(\"ul\", { key: '20c1b075f4f784856f4b067d25d4b1aff1720327', class: \"tabs-slot\" }, h(\"slot\", { key: '3f35ee8f7b07edbe36f979aee6638e0e430d9ea0', name: \"tabs\" })))))))))));\n }\n static get is() { return \"ic-page-header\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"ic-page-header.css\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"ic-page-header.css\"]\n };\n }\n static get properties() {\n return {\n \"aligned\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcAlignment\",\n \"resolved\": \"\\\"center\\\" | \\\"full-width\\\" | \\\"left\\\" | undefined\",\n \"references\": {\n \"IcAlignment\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcAlignment\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The alignment of the page header.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"aligned\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"left\\\"\"\n },\n \"border\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, a border will be displayed along the bottom of the page header.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"border\",\n \"reflect\": false,\n \"defaultValue\": \"true\"\n },\n \"heading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The title to render on the page header.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"heading\",\n \"reflect\": false\n },\n \"reverseOrder\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the reading pattern and tab order will change in the action area for viewport widths of above 576px and when actions have not wrapped.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"reverse-order\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"size\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcSizesNoLarge\",\n \"resolved\": \"\\\"medium\\\" | \\\"small\\\" | undefined\",\n \"references\": {\n \"IcSizesNoLarge\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcSizesNoLarge\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The size of the page header component.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"size\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"medium\\\"\"\n },\n \"sticky\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the page header will be sticky at all breakpoints.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"sticky\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"stickyDesktopOnly\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the page header will only be sticky for viewport widths of 992px and above.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"sticky-desktop-only\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"subheading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The subtitle to render on the page header.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"subheading\",\n \"reflect\": false\n },\n \"theme\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcThemeMode\",\n \"resolved\": \"\\\"dark\\\" | \\\"inherit\\\" | \\\"light\\\" | undefined\",\n \"references\": {\n \"IcThemeMode\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcThemeMode\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Sets the theme color to the dark or light theme color. \\\"inherit\\\" will set the color based on the system settings or ic-theme component.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"theme\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"inherit\\\"\"\n }\n };\n }\n static get states() {\n return {\n \"actionContent\": {},\n \"areButtonsReversed\": {},\n \"deviceSize\": {}\n };\n }\n static get elementRef() { return \"el\"; }\n}\n//# sourceMappingURL=ic-page-header.js.map\n"],"mappings":"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","ignoreList":[]}
1
+ {"version":3,"names":["icPageHeaderCss","IcPageHeaderStyle0","PageHeader","constructor","hostRef","this","resizeObserver","areButtonsReversed","deviceSize","DEVICE_SIZES","XL","aligned","border","reverseOrder","size","sticky","stickyDesktopOnly","theme","resizeObserverCallback","isSlotUsed","el","applyReverseOrder","runResizeObserver","ResizeObserver","observe","_a","currSize","getCurrentDeviceSize","actionArea","shadowRoot","querySelector","actionHeights","i","actionContent","length","action","actionHeight","offsetHeight","undefined","push","max","Math","actionAreaHeight","appendActionContent","reverse","forEach","btn","append","S","disconnectedCallback","disconnect","componentWillLoad","Array","from","querySelectorAll","componentDidLoad","checkResizeObserver","render","_b","heading","subheading","navAriaLabel","textContent","h","Host","key","class","ariaLabel","role","fullHeight","name","variant"],"sources":["../web-components/dist/collection/components/ic-page-header/ic-page-header.css?tag=ic-page-header&encapsulation=shadow","../web-components/dist/collection/components/ic-page-header/ic-page-header.js"],"sourcesContent":["/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput {\n /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect {\n /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font-style: inherit;\n vertical-align: baseline;\n}\n\n\n/**\n * @prop --ic-z-index-page-header: z-index of page-header\n */\n\n:host {\n display: block;\n z-index: var(--ic-z-index-page-header);\n}\n\n:host(.ic-page-header-sticky) {\n position: sticky;\n top: 0;\n box-shadow: var(--ic-elevation-overlay);\n z-index: var(--ic-z-index-sticky-page-header);\n}\n\nheader {\n background-color: var(--ic-page-header-background);\n}\n\nheader.border-bottom {\n border-bottom: var(--ic-border-default);\n border-bottom: var(--ic-space-1px) solid var(--ic-page-header-border);\n}\n\nheader.tabs {\n padding-top: var(--ic-space-md);\n}\n\n.breadcrumb-area {\n margin-bottom: var(--ic-space-md);\n}\n\n::slotted(ic-navigation-item) {\n --navigation-link-colour: var(--ic-color-text-primary);\n}\n\n.main-content {\n display: grid;\n grid-template-columns: auto 1fr;\n grid-template-areas:\n \"title-area action-area\"\n \"input-area action-area\";\n -moz-column-gap: var(--ic-space-md);\n column-gap: var(--ic-space-md);\n justify-content: space-between;\n width: 100%;\n}\n\n.title-area {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 19rem;\n grid-area: title-area;\n}\n\n.header-content {\n display: flex;\n align-items: center;\n width: 100%;\n flex-wrap: wrap;\n -moz-column-gap: var(--ic-space-md);\n column-gap: var(--ic-space-md);\n}\n\n.heading {\n display: inline-block;\n overflow-wrap: break-word;\n -webkit-hyphens: auto;\n hyphens: auto;\n}\n\n.subheading-content {\n margin-top: var(--ic-space-xs);\n}\n\n.subheading-content.small {\n margin-top: var(--ic-space-md);\n}\n\n.action-area {\n display: flex;\n gap: var(--ic-space-md);\n flex-flow: row wrap;\n justify-self: end;\n justify-content: flex-end;\n height: -moz-fit-content;\n height: fit-content;\n grid-area: action-area;\n}\n\n.input-area,\n.navigation-area {\n margin-top: var(--ic-space-md);\n width: 100%;\n}\n\n.tabs-slot {\n display: flex;\n overflow-x: auto;\n padding: 0.5rem;\n margin: -0.5rem;\n}\n\n.tabs-slot::-webkit-scrollbar {\n display: none;\n}\n\n.input-area {\n grid-area: input-area;\n}\n\n@media screen and (max-width: 576px) {\n ::slotted(ic-text-field) {\n --input-width: 100%;\n\n max-width: 20rem;\n }\n\n .main-content {\n grid-template-areas:\n \"title-area\"\n \"action-area\"\n \"input-area\";\n justify-content: flex-start;\n }\n\n .title-area {\n min-width: 0;\n }\n\n .action-area {\n min-width: 100%;\n margin-top: var(--ic-space-md);\n justify-content: start;\n }\n}\n\n@media screen and (min-width: 992px) {\n :host(.ic-page-header-sticky-desktop) {\n position: sticky;\n top: 0;\n box-shadow: var(--ic-elevation-overlay);\n z-index: var(--ic-z-index-sticky-page-header);\n }\n}\n","import { Host, h } from \"@stencil/core\";\nimport { isSlotUsed, DEVICE_SIZES, getCurrentDeviceSize, checkResizeObserver, } from \"../../utils/helpers\";\n/**\n * @slot breadcrumbs - Content will be rendered in the breadcrumb area, above the title and action areas.\n * @slot heading - Content will be rendered in the title area, in place of the heading.\n * @slot subheading - Content will be rendered in the title area, in place of the subheading.\n * @slot heading-adornment - Content will be rendered in the title area, adjacent to the heading.\n * @slot actions - Content will be rendered in the action area, adjacent to the title area.\n * @slot input - Content will be rendered in the input area, below the title area and adjacent to the action area.\n * @slot stepper - Content will be rendered in the navigation area, below the title and action areas. Note: stepper slot cannot be used when the tabs slot is being used.\n * @slot tabs - Content will be rendered in the navigation area, below the title and action areas. Note: the stepper slot cannot be used when the tabs slot is being used.\n */\nexport class PageHeader {\n constructor() {\n this.resizeObserver = null;\n this.areButtonsReversed = false;\n this.deviceSize = DEVICE_SIZES.XL;\n /**\n * The alignment of the page header.\n */\n this.aligned = \"left\";\n /**\n * If `true`, a border will be displayed along the bottom of the page header.\n */\n this.border = true;\n /**\n * If `true`, the reading pattern and tab order will change in the action area for viewport widths of above 576px and when actions have not wrapped.\n */\n this.reverseOrder = false;\n /**\n * The size of the page header component.\n */\n this.size = \"medium\";\n /**\n * If `true`, the page header will be sticky at all breakpoints.\n */\n this.sticky = false;\n /**\n * If `true`, the page header will only be sticky for viewport widths of 992px and above.\n */\n this.stickyDesktopOnly = false;\n /**\n * Sets the theme color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component.\n */\n this.theme = \"inherit\";\n this.resizeObserverCallback = () => {\n if (this.reverseOrder && isSlotUsed(this.el, \"actions\")) {\n this.applyReverseOrder();\n }\n };\n this.runResizeObserver = () => {\n this.resizeObserver = new ResizeObserver(() => {\n this.resizeObserverCallback();\n });\n this.resizeObserver.observe(this.el);\n };\n this.applyReverseOrder = () => {\n var _a;\n const currSize = getCurrentDeviceSize();\n if (currSize !== this.deviceSize) {\n this.deviceSize = currSize;\n }\n const actionArea = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(\"div.action-area\");\n const actionHeights = [];\n /* For each button in the actions slot, check the height of the button and push this number into the actionHeights array and then find the greatest number in this array (i.e. find the height of the tallest button) */\n for (let i = 0; i < this.actionContent.length; i++) {\n const action = this.actionContent[i];\n let actionHeight = action.offsetHeight;\n if (actionHeight === undefined) {\n actionHeight = 0;\n }\n actionHeights.push(actionHeight);\n }\n const max = Math.max(...actionHeights);\n /* The smallest breakpoint displays buttons in the same order the user has slotted them in. When the device size is larger than the small breakpoint then the order of the button reverses due to best practice for reading patterns. If the device size is larger than the small breakpoint and the buttons have started to wrap then they follow the order the user has slotted them in. This logic is programmed based on the height of the action-area div that wraps the actions slot. If the height of the action-area div is taller than the height of the tallest button, then it is assumed that the taller height is caused by the buttons wrapping */\n let actionAreaHeight = actionArea.offsetHeight;\n if (actionAreaHeight === undefined) {\n actionAreaHeight = 0;\n }\n const appendActionContent = () => {\n this.actionContent = this.actionContent.reverse();\n this.actionContent.forEach((btn) => {\n this.el.append(btn);\n });\n this.areButtonsReversed = !this.areButtonsReversed;\n };\n if ((this.deviceSize > DEVICE_SIZES.S &&\n actionAreaHeight <= max &&\n !this.areButtonsReversed) ||\n (((this.deviceSize > DEVICE_SIZES.S && actionAreaHeight > max) ||\n this.deviceSize <= DEVICE_SIZES.S) &&\n this.areButtonsReversed)) {\n appendActionContent();\n }\n };\n }\n disconnectedCallback() {\n if (this.resizeObserver !== null) {\n this.resizeObserver.disconnect();\n }\n }\n componentWillLoad() {\n this.actionContent = Array.from(this.el.querySelectorAll(`[slot=\"actions\"]`));\n }\n componentDidLoad() {\n checkResizeObserver(this.runResizeObserver);\n }\n render() {\n var _a, _b;\n const { size, border, heading, subheading, aligned, sticky, stickyDesktopOnly, theme, } = this;\n const navAriaLabel = `${isSlotUsed(this.el, \"heading\")\n ? (_b = (_a = this.el.querySelector('[slot=\"heading\"]')) === null || _a === void 0 ? void 0 : _a.textContent) !== null && _b !== void 0 ? _b : \"\"\n : heading !== null && heading !== void 0 ? heading : \"\"} page sections`;\n return (h(Host, { key: '6839f2d164672f2aa33e05134c3426e5374d1f06', class: {\n [\"ic-page-header-sticky\"]: !!sticky,\n [\"ic-page-header-sticky-desktop\"]: !sticky && !!stickyDesktopOnly,\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n }, \"aria-label\": this.el.ariaLabel || \"page header\" }, h(\"header\", { key: '7d5137cb542941699de9cc5721ae28a17861dbf0', class: {\n [\"border-bottom\"]: !!border,\n [\"tabs\"]: isSlotUsed(this.el, \"tabs\"),\n }, role: \"presentation\" }, h(\"ic-section-container\", { key: '454a9621964544cff3503b6553e7a17c60da3832', aligned: aligned, fullHeight: isSlotUsed(this.el, \"tabs\") }, isSlotUsed(this.el, \"breadcrumbs\") && (h(\"div\", { key: '58cd2a99c294c0e74d7236dfadaed9df5a2e468a', class: \"breadcrumb-area\" }, h(\"slot\", { key: '02a27ba25893819a676272f7b5c99ba111cec39a', name: \"breadcrumbs\" }))), h(\"div\", { key: '252904de3b7c608bca4e42325880560ee7bdc431', class: \"main-content\" }, h(\"div\", { key: 'f9256d53398c537fe19e6b27ed777542650de68b', class: \"title-area\" }, h(\"div\", { key: 'a1d40860aa4a7191974e44f400b3b8d486e09bf4', class: \"header-content\" }, h(\"slot\", { key: '81f3ac92b61b9943166ae930c7ada3662e494a60', name: \"heading\" }, h(\"ic-typography\", { key: '78f00c7412b22c74b25db7ce1136edaa173c557b', variant: size === \"small\" ? \"h4\" : \"h2\", class: \"heading\" }, h(\"h2\", { key: '6e9608ec80c3f05482ac3a8e60ee27d2e6f683ad' }, heading))), h(\"slot\", { key: '59600cab7fe6df1e7fbb9786060c1338c1d24109', name: \"heading-adornment\" })), h(\"div\", { key: '8008f53d6ee65c3ac3bb849e136e417a85fb185a', class: {\n [\"subheading-content\"]: !!subheading || isSlotUsed(this.el, \"subheading\"),\n [\"small\"]: size === \"small\",\n } }, h(\"slot\", { key: '2f7f52d845ac9ae2d4a7122c17dda2cd9439301d', name: \"subheading\" }, h(\"ic-typography\", { key: 'c0aea12079ad430c8fc80de47dbc36998c7dafde', variant: \"body\" }, subheading)))), isSlotUsed(this.el, \"actions\") && (h(\"div\", { key: '522be093d57e17bd669e6a00de00b5d762371464', class: \"action-area\" }, h(\"slot\", { key: '5044800dd45ad23bded19fb947103fc33fb224f9', name: \"actions\" }))), isSlotUsed(this.el, \"input\") && (h(\"div\", { key: 'c2ed3ac5f6683e17dff5e30bb4b0836c6882a62a', class: \"input-area\" }, h(\"slot\", { key: '7fa5429dde9cafd6cf7a91e6c018c137c4596cb8', name: \"input\" })))), (isSlotUsed(this.el, \"stepper\") ||\n isSlotUsed(this.el, \"tabs\")) && (h(\"div\", { key: '7adb7f57bb469ddb2f88303784c5bb4f47af3e7a', class: \"navigation-area\" }, isSlotUsed(this.el, \"stepper\") &&\n !isSlotUsed(this.el, \"tabs\") && h(\"slot\", { key: '523c906aff9a5dcf0911b99e58a49bae70f6dc1a', name: \"stepper\" }), isSlotUsed(this.el, \"tabs\") && (h(\"nav\", { key: '3d387ad3a2ca763d7837ad7604d7efbe46b3b2c9', \"aria-label\": navAriaLabel }, h(\"ic-horizontal-scroll\", { key: 'dee59ffc315702860977ca50ca8bdf90459a6a63' }, h(\"ul\", { key: 'ce68af19740fd60be9a08fa955643854eb5ac0c7', class: \"tabs-slot\" }, h(\"slot\", { key: 'd2297a18b03a95711ae20beaef363b39462c3866', name: \"tabs\" })))))))))));\n }\n static get is() { return \"ic-page-header\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"ic-page-header.css\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"ic-page-header.css\"]\n };\n }\n static get properties() {\n return {\n \"aligned\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcAlignment\",\n \"resolved\": \"\\\"center\\\" | \\\"full-width\\\" | \\\"left\\\" | undefined\",\n \"references\": {\n \"IcAlignment\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcAlignment\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The alignment of the page header.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"aligned\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"left\\\"\"\n },\n \"border\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, a border will be displayed along the bottom of the page header.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"border\",\n \"reflect\": false,\n \"defaultValue\": \"true\"\n },\n \"heading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The title to render on the page header.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"heading\",\n \"reflect\": false\n },\n \"reverseOrder\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the reading pattern and tab order will change in the action area for viewport widths of above 576px and when actions have not wrapped.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"reverse-order\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"size\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcSizesNoLarge\",\n \"resolved\": \"\\\"medium\\\" | \\\"small\\\" | undefined\",\n \"references\": {\n \"IcSizesNoLarge\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcSizesNoLarge\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The size of the page header component.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"size\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"medium\\\"\"\n },\n \"sticky\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the page header will be sticky at all breakpoints.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"sticky\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"stickyDesktopOnly\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the page header will only be sticky for viewport widths of 992px and above.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"sticky-desktop-only\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"subheading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The subtitle to render on the page header.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"subheading\",\n \"reflect\": false\n },\n \"theme\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcThemeMode\",\n \"resolved\": \"\\\"dark\\\" | \\\"inherit\\\" | \\\"light\\\" | undefined\",\n \"references\": {\n \"IcThemeMode\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcThemeMode\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Sets the theme color to the dark or light theme color. \\\"inherit\\\" will set the color based on the system settings or ic-theme component.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"theme\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"inherit\\\"\"\n }\n };\n }\n static get states() {\n return {\n \"actionContent\": {},\n \"areButtonsReversed\": {},\n \"deviceSize\": {}\n };\n }\n static get elementRef() { return \"el\"; }\n}\n//# sourceMappingURL=ic-page-header.js.map\n"],"mappings":"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","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as e,c as t,h as i,H as a,g as s}from"./p-8e4e97b4.js";import{r as c,z as r,o,y as n,F as l,M as h,i as d,a as b}from"./p-542ac498.js";import{A as p,f as m}from"./p-0f22f41e.js";const g='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host(.ic-checkbox-disabled){pointer-events:none}.container{display:flex;width:-moz-fit-content;width:fit-content;padding:var(--ic-space-xxs) 0 var(--ic-space-xxs) var(--ic-space-xxs);margin-bottom:var(--ic-space-xxs);align-items:center}:host(.ic-data-table-checkbox) .container{padding:0;margin-bottom:0}:host(.ic-checkbox-small) .container{margin-bottom:var(--ic-space-xxxs)}.checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;position:relative;top:0;left:0;height:var(--ic-space-lg);width:var(--ic-space-lg);background-color:var(--ic-checkbox-background-unselected);border:var(--ic-border-width) solid var(--ic-checkbox-border-unselected);border-radius:var(--ic-border-radius);outline:none;cursor:pointer;transition:var(--ic-easing-transition-fast);flex-shrink:0}:host .container svg{width:var(--ic-space-lg);height:var(--ic-space-lg)}:host(.ic-checkbox-small) .checkbox,:host(.ic-checkbox-small) .container svg{width:var(--ic-space-md);height:var(--ic-space-md)}:host(.ic-checkbox-large) .checkbox,:host(.ic-checkbox-large) .container svg{width:var(--ic-space-xl);height:var(--ic-space-xl)}.checkbox:checked{background-color:var(--ic-checkbox-background-selected);border:var(--ic-border-width) solid var(--ic-checkbox-background-selected);transition:var(--ic-easing-transition-slow)}.checkbox:checked:disabled{background-color:var(--ic-checkbox-background-selected-disabled);border:var(--ic-border-width) solid\n var(--ic-checkbox-background-selected-disabled)}.checkbox:indeterminate,.checkbox.indeterminate:checked{background-color:var(--ic-checkbox-background-indeterminate);border:0.125rem solid var(--ic-checkbox-background-indeterminate)}.checkbox:indeterminate:disabled,.checkbox.indeterminate:checked:disabled{background-color:var(--ic-checkbox-background-indeterminate-disabled);border:0.125rem solid var(--ic-checkbox-background-indeterminate-disabled)}.checkbox:checked:hover{background-color:var(--ic-checkbox-background-selected-hover)}.checkbox:indeterminate:hover,.checkbox.indeterminate:checked:hover{background-color:var(--ic-checkbox-background-indeterminate-hover);border:0.125rem solid var(--ic-checkbox-background-indeterminate-hover)}.checkbox:checked:active{background-color:var(--ic-checkbox-background-selected-pressed)}.checkbox:indeterminate:active,.checkbox.indeterminate:checked:active{background-color:var(--ic-checkbox-background-indeterminate-pressed);border:0.125rem solid var(--ic-checkbox-background-indeterminate-pressed)}.checkbox:hover{box-shadow:0 0 0 0.25rem var(--ic-checkbox-action-background-hover);border:var(--ic-border-width) solid\n var(--ic-checkbox-border-unselected-hover)}.checkbox:active{box-shadow:0 0 0 0.25rem var(--ic-checkbox-action-background-pressed);border:var(--ic-border-width) solid\n var(--ic-checkbox-border-unselected-pressed)}.checkbox:focus{box-shadow:var(--ic-border-focus)}.checkbox:disabled{border:var(--ic-border-width) dashed\n var(--ic-checkbox-border-unselected-disabled)}.checkbox-label{color:var(--ic-checkbox-text);--ic-typography-color:var(--ic-checkbox-text)}.checkbox-label>label{padding-left:var(--ic-space-sm);display:inline-block}:host(.ic-checkbox-disabled) .checkbox-label{color:var(--ic-checkbox-text-disabled);--ic-typography-color:var(--ic-checkbox-text-disabled)}.checkbox-label:hover{cursor:pointer}.checkmark{position:relative;right:calc(-1 * var(--ic-space-lg));margin-left:calc(-1 * var(--ic-space-lg));fill:var(--ic-checkbox-icon-pressed);z-index:1;background-color:transparent;pointer-events:none;flex-shrink:0}:host(.ic-checkbox-small) .checkmark{margin-left:calc(-1 * var(--ic-space-md));right:calc(-1 * var(--ic-space-md))}:host(.ic-checkbox-large) .checkmark{margin-left:calc(-1 * var(--ic-space-xl));right:calc(-1 * var(--ic-space-xl))}.indeterminate-symbol{position:relative;width:0.875rem;height:var(--ic-space-xxxs);right:-1.188rem;margin-left:-0.875rem;z-index:1;background-color:var(--ic-checkbox-icon-indeterminate);pointer-events:none;flex-shrink:0}:host(.ic-checkbox-small) .indeterminate-symbol{width:0.6rem;right:-0.8rem;margin-left:-0.6rem}:host(.ic-checkbox-large) .indeterminate-symbol{width:1.25rem;right:-1.625rem;margin-left:-1.25rem}.additional-field-wrapper{margin-left:calc(var(--ic-space-md) + var(--ic-space-lg));margin-top:calc(var(--ic-space-sm) / 2)}.branch-corner{height:var(--ic-space-md);width:var(--ic-space-xl);border-radius:0 0 0 0.188rem;border-bottom:0.125rem solid var(--ic-checkbox-required-bar);border-left:0.125rem solid var(--ic-checkbox-required-bar)}.dynamic-container{display:flex;position:relative;margin:var(--ic-space-xxxs) 0 var(--ic-space-xxs) var(--ic-space-md);gap:var(--ic-space-xs)}.dynamic-text{color:var(--ic-checkbox-required-text);--ic-typography-color:var(--ic-checkbox-required-text);margin-top:calc(var(--ic-space-sm) / 2);margin-bottom:var(--ic-space-xs);border-radius:2%}.dynamic-field-container{flex:100%}.sr-only{position:absolute;left:-9999px}@media (max-width: 576px){::slotted(*){--input-width:100%}.dynamic-field-container{flex:initial}}@media (forced-colors: active){.checkbox{-webkit-appearance:revert;-moz-appearance:revert;appearance:revert;transition:none}.checkbox:checked{transition:none}.checkbox:focus-visible{outline:0.125rem solid highlight}.checkbox:disabled:not(:checked){-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:GrayText}.checkmark{fill:none}.indeterminate-symbol{display:none}}.checkmark:dir(rtl){right:0}.checkbox-label:dir(rtl){padding-right:var(--ic-space-sm);padding-left:0}.indeterminate-symbol:dir(rtl){right:0.288rem}.branch-corner:dir(rtl){border-radius:0 0 0.188rem;border-right:0.125rem solid var(--ic-action-default);border-left:none}.dynamic-container:dir(rtl){margin:var(--ic-space-xxxs) var(--ic-space-sm) var(--ic-space-xxs) 0}';const f=g;const u=class{constructor(i){e(this,i);this.icCheck=t(this,"icCheck",7);this.additionalFieldDisplay="static";this.checked=false;this.initiallyChecked=this.checked;this.disabled=false;this.dynamicText="This selection requires additional answers";this.hideLabel=false;this.indeterminate=false;this.displayIndeterminate=this.indeterminate;this.nativeIndeterminateBehaviour=false;this.theme="inherit";this.value="";this.handleClick=()=>{this.checked=!this.checked;this.displayIndeterminate=!this.nativeIndeterminateBehaviour&&this.indeterminate&&this.checked;this.icCheck.emit()};this.handleFormReset=()=>{this.checked=this.initiallyChecked}}watchDisabledHandler(){c(this.disabled,this.el)}watchIndeterminateHandler(){this.displayIndeterminate=this.indeterminate&&(this.nativeIndeterminateBehaviour||this.checked)}componentWillLoad(){c(this.disabled,this.el);r(this.el,this.handleFormReset);const{parentElement:e}=this.el;if((e===null||e===void 0?void 0:e.tagName)==="IC-CHECKBOX-GROUP"){const{name:t,label:i,size:a}=e;if(!this.name)this.name=t;if(!this.size)this.size=a;this.groupLabel=i}}componentDidLoad(){o([{prop:this.label,propName:"label"}],"Checkbox")}componentDidRender(){if(this.additionalFieldDisplay==="static"){this.el.querySelectorAll("ic-text-field").forEach((e=>e.setAttribute("disabled",`${!this.checked}`)))}else if(this.additionalFieldContainer){this.additionalFieldContainer.style.display=!this.checked?"none":"flex"}}disconnectedCallback(){n(this.el,this.handleFormReset)}async setFocus(){var e;(e=this.checkboxEl)===null||e===void 0?void 0:e.focus()}render(){const{additionalFieldDisplay:e,checked:t,disabled:s,displayIndeterminate:c,dynamicText:r,el:o,form:n,groupLabel:b,handleClick:p,hideLabel:m,label:g,name:f,size:u,theme:v,value:x}=this;const k=`ic-checkbox-${g}-${b}`.replace(/ /g,"-");const y=e==="dynamic";t?l(o,x,f,s):h(o);return i(a,{key:"153b0b333ca1d0755d4e52dd9119d48cd1c246cc",class:{"ic-checkbox-disabled":s,[`ic-checkbox-${u}`]:!!u,[`ic-theme-${v}`]:v!=="inherit"}},i("div",{key:"c0f56ee4fbbdd38fea208d133cdd1fa91a41d6c7",class:"container"},c?i("div",{class:"indeterminate-symbol"}):t&&i("svg",{class:"checkmark",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","fill-rule":"evenodd","clip-rule":"evenodd"},i("title",null,"checkmark icon"),i("path",{d:"M21 6.285l-11.16 12.733-6.84-6.018 1.319-1.49 5.341 4.686 9.865-11.196 1.475 1.285z"})),i("input",{key:"f8335e54b2f765591b3781d76a01632c34065855",role:"checkbox",class:{checkbox:true,checked:t,indeterminate:c},ref:e=>this.checkboxEl=e,type:"checkbox",name:f,id:k,value:x,disabled:s,checked:t,indeterminate:c,onClick:p,form:n,"aria-label":m?g:undefined}),!m&&i("ic-typography",{key:"2ba4862a349e6b3f34c050c434ce247687f0dfd8",class:"checkbox-label",variant:"body"},i("label",{key:"a3f3c733b5dc0a0acdf89d3b7db603e965102618",htmlFor:k},g))),i("span",{key:"e671e1532bdfea4a1c5d85cbb8cde2cc41044757",id:`${k}-additional-field-description`,role:"alert",class:"sr-only"},y&&t?r:""),d(o,"additional-field")&&i("div",{key:"b562e4d2bf3cb6651c6a95aedb8a8e4991d1d1e7",class:"dynamic-container",ref:e=>this.additionalFieldContainer=e},y&&i("div",{key:"9c6d8a88882fe32f1f272c3df42eeca896459284",class:"branch-corner"}),i("div",{key:"7a88d8ae6fc193a3b2e08e82eb47a6b0228ce40b",class:"dynamic-field-container"},y&&i("ic-typography",{key:"64fdfe413653b6583789de3ee56c91c18522764e",variant:"caption"},i("p",{key:"0075205b0805a37b362658d70152bb180c290f0c",class:"dynamic-text"},y&&t?r:"")),i("div",{key:"d6494d984bd1de5b08265fe1f8b2deb0a45e7d3a",class:{"additional-field-wrapper":!y}},i("slot",{key:"905f210aaf41f4ba5d7c24e92bd19dbb17b81355",name:"additional-field"})))))}static get delegatesFocus(){return true}get el(){return s(this)}static get watchers(){return{disabled:["watchDisabledHandler"],indeterminate:["watchIndeterminateHandler"]}}};u.style=f;const v=':host{gap:var(--ic-space-xs);padding:var(--ic-space-xs)}:host,.action-area{display:flex;flex-direction:column}.action-area{gap:var(--ic-space-md)}:host ::slotted(svg),:host ::slotted(img){border-radius:var(--ic-space-xxs)}:host(.ic-empty-state-right),:host(.ic-empty-state-right) .action-area{align-items:flex-end;text-align:right}:host(.ic-empty-state-center),:host(.ic-empty-state-center) .action-area{align-items:center;text-align:center}:host(.image-medium) ::slotted(svg),:host(.image-medium) ::slotted(img){height:calc(3 * var(--ic-space-lg)) !important;width:calc(3 * var(--ic-space-lg)) !important}:host(.image-small) ::slotted(svg),:host(.image-small) ::slotted(img){height:var(--ic-space-xxl) !important;width:var(--ic-space-xxl) !important}:host(.image-large) ::slotted(svg),:host(.image-large) ::slotted(img){height:calc(4 * var(--ic-space-xl)) !important;width:calc(4 * var(--ic-space-xl)) !important}::slotted([slot="heading"]),.empty-state-heading{--ic-typography-color:var(--ic-empty-state-title)}::slotted([slot="subheading"]),.empty-state-subheading{--ic-typography-color:var(--ic-empty-state-subtitle)}::slotted([slot="body"]),.empty-state-body{--ic-typography-color:var(--ic-empty-state-body)}';const x=v;const k=class{constructor(t){e(this,t);this.hostMutationObserver=null;this.aligned="left";this.imageSize="medium";this.theme="inherit"}disconnectedCallback(){var e;(e=this.hostMutationObserver)===null||e===void 0?void 0:e.disconnect()}componentDidLoad(){!d(this.el,"heading")&&o([{prop:this.heading,propName:"heading"}],"Empty State");this.hostMutationObserver=new MutationObserver((e=>b(e,["image","actions"],this)));this.hostMutationObserver.observe(this.el,{childList:true})}render(){const{aligned:e,body:t,maxLines:s,heading:c,imageSize:r,subheading:o,theme:n}=this;return i(a,{key:"d1f0ef089d59f00d57b70a44c22f248ce12314fa",class:{[`ic-empty-state-${e}`]:true,[`image-${r}`]:d(this.el,"image"),[`ic-theme-${n}`]:n!=="inherit"}},d(this.el,"image")&&i("slot",{key:"07406cfb8a629a854fe3e0b500f5a21db373e9a7",name:"image"}),i("div",{key:"cce8db2f16fd451a69c713792f42d4ca4a1d9e5e"},i("slot",{key:"6bb39d26bb009d445bce71434e5db8cf71829b2a",name:"heading"},i("ic-typography",{key:"46ffaf055facc3884b3b53041e89c5309db36869",variant:"h4",class:"empty-state-heading"},c)),i("slot",{key:"2d45d9838c8a13d2e4e916519a388c1a234eecb8",name:"subheading"},i("ic-typography",{key:"c3f0bac962303ac98f451821eb76d9ee731f9e19",variant:"subtitle-small",class:"empty-state-subheading"},o)),i("slot",{key:"a155c2825af5c81b8a19da1aa3b0878dc7abb478",name:"body"},i("ic-typography",{key:"2336a276e810acfa4bde850e78f9332acf4551ce",maxLines:s,class:"empty-state-body"},t))),d(this.el,"actions")&&i("div",{key:"75a4a0fce3f0a4206c35647de547e5caa76a015e",class:"action-area"},i("slot",{key:"2a0b08b6c6ade82137a5ea9337549092953a1a46",name:"actions"})))}get el(){return s(this)}};k.style=x;const y=":host(){display:block}.pagination-bar{height:3.5rem;display:flex;align-items:center;justify-content:flex-end;gap:var(--ic-space-xl);padding:var(--ic-space-xs) var(--ic-space-md);box-sizing:border-box;--ic-typography-color:var(--ic-pagination-text)}.pagination-bar-left{justify-content:flex-start}.item-controls{display:flex;align-items:center;gap:var(--ic-space-xl)}.pagination-bar-space-between .item-controls{margin-right:auto}.items-per-page-holder{display:flex;align-items:center;gap:var(--ic-space-xs)}.items-per-page-input{--input-width:5rem;--ic-typography-color:var(--ic-pagination-select-content)}.pagination-controls{display:flex;align-items:center;gap:var(--ic-space-xl)}.pagination-controls-wrap{flex-direction:column;align-items:flex-end;gap:var(--ic-space-xs)}.pagination-bar-space-between .pagination-controls{margin-left:auto}.go-to-page-holder{display:flex;align-items:center;gap:var(--ic-space-xs)}.go-to-page-input{--input-width:var(--ic-space-xl)}.go-to-page-button{--min-width:var(--ic-space-xl)}.items-per-page-control-label{white-space:nowrap}@media screen and (max-width: 768px){.pagination-bar{flex-direction:column;align-items:flex-end;height:-moz-fit-content;height:fit-content;gap:var(--ic-space-xs)}.pagination-bar-left{align-items:flex-start}}@media screen and (max-width: 320px){.item-controls,.pagination-controls{flex-direction:column;align-items:flex-end;gap:var(--ic-space-xs)}.pagination-bar-left .item-controls,.pagination-bar-left .pagination-controls,.pagination-bar-space-between .item-controls,.pagination-bar-space-between .pagination-controls{align-items:flex-start}}";const w=y;const P=class{constructor(i){e(this,i);this.icPageChange=t(this,"icPageChange",7);this.icItemsPerPageChange=t(this,"icItemsPerPageChange",7);this.PAGE_INPUT_FIELD_ID="go-to-page-input";this.INVALID_PAGE_ERROR="Please enter a valid page";this.resizeObserver=null;this.activePage=1;this.inputError="Please enter a valid page";this.itemsPerPage=10;this.itemsPerPageString="10";this.lowerBound=1;this.paginationWrapped=false;this.alignment="right";this.currentPage=1;this.hideAllFromItemsPerPage=false;this.itemLabel="Item";this.monochrome=false;this.theme="inherit";this.type="simple";this.rangeLabelType="page";this.pageLabel="Page";this.showGoToPageControl=false;this.hideRangeLabel=false;this.selectItemsPerPageOnEnter=true;this.showItemsPerPageControl=false;this.setToFirstPageOnPaginationChange=false;this.setSelectedItemsPerPage=(e,t=[])=>{const i=t===null||t===void 0?void 0:t.some((({value:e})=>{var t;return e===((t=this.selectedItemsPerPage)===null||t===void 0?void 0:t.toString())}));if(i){this.setItemsPerPage(e,false)}else{console.error(`The selected items per page option "${this.selectedItemsPerPage}" does not exist`);this.setItemsPerPage(+this.totalItems,false)}};this.changeItemsPerPage=()=>{this.setItemsPerPage(Number(this.pageDropdownEl.value));this.userSetItemsPerPage=Number(this.pageDropdownEl.value)};this.changePage=e=>{this.activePage=e;this.lowerBound=e!==1?(e-1)*this.itemsPerPage+1:e;this.setUpperBound()};this.focusElFromLabel=e=>{var t,i;(i=(t=this.paginationBarEl)===null||t===void 0?void 0:t.querySelector(e))===null||i===void 0?void 0:i.setFocus()};this.goToPage=()=>{var e;const t=this.pageInputEl;const i=Number(t.value);if(i<=this.totalPages&&i>0){this.changePage(i);(e=this.paginationEl)===null||e===void 0?void 0:e.setCurrentPage(i);this.activePage=i;t.value="";this.icPageChange.emit({value:i});this.pageInputTooltipEl.displayTooltip(false,false);t.validationStatus=""}else{this.setInputError(t,this.INVALID_PAGE_ERROR)}};this.goToPageLabelClickHandler=()=>{this.focusElFromLabel("ic-text-field")};this.handleBlur=()=>{const e=this.pageInputEl;if(Number(e.value)<=this.totalPages&&Number(e.value)>0||e.value===""){e.validationStatus=""}this.pageInputTooltipEl.displayTooltip(false,false)};this.handleFocus=()=>{if(this.pageInputEl.validationStatus==="error"){this.pageInputTooltipEl.displayTooltip(true,true)}};this.handleInputChange=()=>{const e=parseInt(this.pageInputEl.value);if(e>this.totalPages||e<=0){this.setInputError(this.pageInputEl,this.INVALID_PAGE_ERROR);this.pageInputTooltipEl.displayTooltip(true,true)}};this.handleKeydown=e=>{if(e.key==="Enter"){if(this.pageInputEl.validationStatus==="error"){this.pageInputTooltipEl.displayTooltip(true,true)}else{this.goToPage()}}else{this.pageInputTooltipEl.displayTooltip(false,false);this.pageInputEl.validationStatus=""}};this.handleKeyUp=e=>{if(Number.isNaN(parseInt(this.pageInputEl.value))&&e.key!=="Backspace"&&e.key!=="Enter"&&e.key!=="Tab"&&e.key!=="Shift"){this.setInputError(this.pageInputEl,"Please enter a number",false);this.pageInputTooltipEl.displayTooltip(true,false)}};this.itemsPerPageLabelClickHandler=()=>{this.focusElFromLabel("ic-select")};this.paginationShouldWrap=()=>{if(this.type==="simple"){this.paginationWrapped=this.paginationEl.clientHeight>63}};this.runResizeObserver=()=>{if(this.paginationBarEl){this.resizeObserver=new ResizeObserver((()=>{const{clientWidth:e}=this.paginationBarEl;if(e-this.paginationWidth>50||e-this.paginationWidth<-50){this.paginationWidth=e;this.paginationShouldWrap()}}));this.resizeObserver.observe(this.paginationBarEl)}};this.setInputError=(e,t,i=true)=>{this.inputError=t;e.validationStatus="error";if(i)e.setFocus()};this.setToFirstPage=()=>{var e;const t=1;this.changePage(t);(e=this.paginationEl)===null||e===void 0?void 0:e.setCurrentPage(t);this.activePage=t;this.icPageChange.emit({value:t})};this.setItemsPerPage=(e,t=true)=>{var i;if(this.itemsPerPage!==e){this.itemsPerPage=e;this.itemsPerPageString=e.toString();this.icItemsPerPageChange.emit({value:this.itemsPerPage,isUserAction:t});if(this.setToFirstPageOnPaginationChange){this.setToFirstPage()}}this.totalPages=this.totalItems>this.itemsPerPage?Math.ceil(this.totalItems/this.itemsPerPage):1;this.setUpperBound();if(this.activePage>this.totalPages){(i=this.paginationEl)===null||i===void 0?void 0:i.setCurrentPage(this.totalPages);this.activePage=this.totalPages}this.icPageChange.emit({value:this.activePage,fromItemsPerPage:true})};this.setPaginationBarContent=()=>{const e=this.itemsPerPageOptions?JSON.parse(JSON.stringify(this.itemsPerPageOptions)):null;const t=e||(this.totalItems<=100?[{label:"10",value:"10"},{label:"25",value:"25"},{label:"50",value:"50"}]:[{label:"25",value:"25"},{label:"100",value:"100"},{label:"1000",value:"1000"}]);!this.hideAllFromItemsPerPage&&t.push({label:"All",value:String(this.totalItems)});this.displayedItemsPerPageOptions=t.filter((({value:e})=>this.totalItems>=Number(e)));let i=0;if(this.userSetItemsPerPage){this.displayedItemsPerPageOptions.some((({value:e})=>{i=Number(e);return this.userSetItemsPerPage<=i}));this.setItemsPerPage(i)}else{if(this.selectedItemsPerPage!==null&&this.selectedItemsPerPage!==undefined){this.setSelectedItemsPerPage(this.selectedItemsPerPage,this.displayedItemsPerPageOptions)}else{const e=this.displayedItemsPerPageOptions.some((({value:e})=>{i=Number(e);return this.itemsPerPage<=i}));this.setItemsPerPage(e||!e&&this.itemsPerPage>i?i:this.itemsPerPage,false)}}};this.setUpperBound=()=>{this.upperBound=Math.min(this.lowerBound+this.itemsPerPage-1,this.totalItems)}}watchPageNumberHandler(){this.setPaginationBarContent();if(typeof this.currentPage==="number"&&this.currentPage){if(this.currentPage<1||this.totalPages&&this.currentPage>this.totalPages){console.error(`The current page (${this.currentPage}) must be a number greater than zero but less than or equal to the total number of pages (${this.totalPages})`)}else{this.activePage=this.currentPage}}}watchSelectedItemsPerPageHandler(){if(this.selectedItemsPerPage!==null&&this.selectedItemsPerPage!==undefined){this.setSelectedItemsPerPage(this.selectedItemsPerPage,this.displayedItemsPerPageOptions)}}watchItemLabelHandler(){this.capitalizedItemLabel=p(this.itemLabel);this.lowerCaseItemLabel=this.itemLabel.toLowerCase()}watchItemsPerPageOptionsHandler(e,t){if(JSON.stringify(e)===JSON.stringify(t))return;this.setPaginationBarContent()}watchPageLabelHandler(){this.capitalizedPageLabel=p(this.pageLabel);this.lowerCasePageLabel=this.pageLabel.toLowerCase()}watchTotalItemsHandler(){this.setPaginationBarContent()}watchSetToFirstPageOnPaginationChange(){this.setPaginationBarContent()}disconnectedCallback(){var e;(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect()}componentWillLoad(){this.watchPageNumberHandler();this.watchPageLabelHandler();this.watchItemLabelHandler();this.setPaginationBarContent()}componentDidLoad(){var e,t,i;this.paginationWidth=((e=this.paginationBarEl)===null||e===void 0?void 0:e.clientWidth)||0;m(this.runResizeObserver);const a=(t=this.el.shadowRoot)===null||t===void 0?void 0:t.querySelector(`.${this.PAGE_INPUT_FIELD_ID}`);if(a){const e=(i=a===null||a===void 0?void 0:a.shadowRoot)===null||i===void 0?void 0:i.querySelector("input");if(e){e.style.textAlign="center";e.style.padding="0"}}this.paginationShouldWrap()}pageChangeHandler(e){const t=e.detail.value;this.changePage(t)}render(){const{alignment:e,displayedItemsPerPageOptions:t,PAGE_INPUT_FIELD_ID:s,type:c,rangeLabelType:r,hideRangeLabel:o,showItemsPerPageControl:n,showGoToPageControl:l,pageLabel:h,capitalizedPageLabel:d,lowerCasePageLabel:b,capitalizedItemLabel:p,lowerCaseItemLabel:m,totalPages:g,activePage:f,itemsPerPageString:u,theme:v,monochrome:x,selectItemsPerPageOnEnter:k}=this;return i(a,{key:"c69d7b2032367620b35d339163cc56ec6383016a",class:{[`ic-theme-${v}`]:v!=="inherit"}},i("div",{key:"0ffcb94ee6e3a04410d158d6716520e2969cecfe",class:{["pagination-bar"]:true,[`pagination-bar-${e}`]:true},ref:e=>this.paginationBarEl=e},(!o||n)&&i("div",{key:"513180ace8fc3f82c26ee5c745e0d5b852a10fda",class:"item-controls"},n&&i("div",{key:"042383e4d976e5d70386bd228d74036e5923d135",class:"items-per-page-holder"},i("ic-typography",{key:"5a803102cd7793f267b6de476f402a354c9daaee",class:{["items-per-page-control-label"]:true},variant:"label",onClick:this.itemsPerPageLabelClickHandler},p,"s per ",b),i("ic-select",{key:"0165e03c68c40791ef35a0064a4cb94e0490763e",theme:v,size:"small",label:"items-per-page-input",class:"items-per-page-input",hideLabel:true,options:t,selectOnEnter:k,value:u,onIcChange:this.changeItemsPerPage,ref:e=>this.pageDropdownEl=e})),!o&&(r==="data"?i("ic-typography",{class:{["item-pagination-label"]:true},variant:"label","aria-live":"polite"},this.upperBound===0&&`0 ${m}s`,this.upperBound>0&&`${this.lowerBound} - ${this.upperBound} of ${this.totalItems} ${m}${this.totalItems>1?"s":""}`):i("ic-typography",{class:{["page-pagination-label"]:true},variant:"label","aria-live":"polite"},d," ",f," of ",g))),i("div",{key:"6fdec8e5aa7edac5b6857fe5dd71995539c1093a",class:{["pagination-controls"]:true,["pagination-controls-wrap"]:this.paginationWrapped}},i("div",{key:"aa128b6414fdc3a62f0c0e0bbc70676279a80388",class:"pagination-holder"},i("ic-pagination",{key:"3fc38294f98b07e4b27a731d81eb72536bbf8907",type:c,pages:g,label:h,ref:e=>this.paginationEl=e,currentPage:f,theme:v,monochrome:x})),l&&i("div",{key:"02d6832988b1e442682e63eb11c168d50a7f8aaa",class:"go-to-page-holder"},i("ic-typography",{key:"cf0236ecc6cda9047ae4ce84bde95fd60130c1ae",variant:"label",onClick:this.goToPageLabelClickHandler},"Go to ",b),i("ic-tooltip",{key:"5c1bb281471249243a00bb2ca336e1f01b63ea40",label:this.inputError,target:`#${s}`,disableHover:true,disableClick:true,ref:e=>this.pageInputTooltipEl=e},i("ic-text-field",{key:"728e6563db060cdc166e9a18d1de5f3afd1e42f3",theme:v,type:"number",size:"small",label:s,class:s,id:s,hideLabel:true,onKeyDown:this.handleKeydown,onKeyUp:this.handleKeyUp,onInput:this.handleInputChange,max:g,min:"1",validationInlineInternal:true,onBlur:this.handleBlur,onFocus:this.handleFocus,ref:e=>this.pageInputEl=e})),i("ic-button",{key:"418d9b8d49c185a6630ce0d742901bcf9a646947",variant:"secondary",onClick:this.goToPage,size:"small",class:"go-to-page-button"},"Go")))))}get el(){return s(this)}static get watchers(){return{currentPage:["watchPageNumberHandler"],selectedItemsPerPage:["watchSelectedItemsPerPageHandler"],itemLabel:["watchItemLabelHandler"],itemsPerPageOptions:["watchItemsPerPageOptionsHandler"],pageLabel:["watchPageLabelHandler"],totalItems:["watchTotalItemsHandler"],setToFirstPageOnPaginationChange:["watchSetToFirstPageOnPaginationChange"]}}};P.style=w;export{u as ic_checkbox,k as ic_empty_state,P as ic_pagination_bar};
2
- //# sourceMappingURL=p-154bb0fb.entry.js.map
1
+ import{r as e,c as t,h as i,H as a,g as s}from"./p-8e4e97b4.js";import{r as c,z as r,o,y as n,F as l,M as d,i as h,a as b}from"./p-e4ef4263.js";import{A as p,f as m}from"./p-0f22f41e.js";const g='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host(.ic-checkbox-disabled){pointer-events:none}.container{display:flex;width:-moz-fit-content;width:fit-content;padding:var(--ic-space-xxs) 0 var(--ic-space-xxs) var(--ic-space-xxs);margin-bottom:var(--ic-space-xxs);align-items:center}:host(.ic-data-table-checkbox) .container{padding:0;margin-bottom:0}:host(.ic-checkbox-small) .container{margin-bottom:var(--ic-space-xxxs)}.checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;position:relative;top:0;left:0;height:var(--ic-space-lg);width:var(--ic-space-lg);background-color:var(--ic-checkbox-background-unselected);border:var(--ic-border-width) solid var(--ic-checkbox-border-unselected);border-radius:var(--ic-border-radius);outline:none;cursor:pointer;transition:var(--ic-easing-transition-fast);flex-shrink:0}:host .container svg{width:var(--ic-space-lg);height:var(--ic-space-lg)}:host(.ic-checkbox-small) .checkbox,:host(.ic-checkbox-small) .container svg{width:var(--ic-space-md);height:var(--ic-space-md)}:host(.ic-checkbox-large) .checkbox,:host(.ic-checkbox-large) .container svg{width:var(--ic-space-xl);height:var(--ic-space-xl)}.checkbox:checked{background-color:var(--ic-checkbox-background-selected);border:var(--ic-border-width) solid var(--ic-checkbox-background-selected);transition:var(--ic-easing-transition-slow)}.checkbox:checked:disabled{background-color:var(--ic-checkbox-background-selected-disabled);border:var(--ic-border-width) solid\n var(--ic-checkbox-background-selected-disabled)}.checkbox:indeterminate,.checkbox.indeterminate:checked{background-color:var(--ic-checkbox-background-indeterminate);border:0.125rem solid var(--ic-checkbox-background-indeterminate)}.checkbox:indeterminate:disabled,.checkbox.indeterminate:checked:disabled{background-color:var(--ic-checkbox-background-indeterminate-disabled);border:0.125rem solid var(--ic-checkbox-background-indeterminate-disabled)}.checkbox:checked:hover{background-color:var(--ic-checkbox-background-selected-hover)}.checkbox:indeterminate:hover,.checkbox.indeterminate:checked:hover{background-color:var(--ic-checkbox-background-indeterminate-hover);border:0.125rem solid var(--ic-checkbox-background-indeterminate-hover)}.checkbox:checked:active{background-color:var(--ic-checkbox-background-selected-pressed)}.checkbox:indeterminate:active,.checkbox.indeterminate:checked:active{background-color:var(--ic-checkbox-background-indeterminate-pressed);border:0.125rem solid var(--ic-checkbox-background-indeterminate-pressed)}.checkbox:hover{box-shadow:0 0 0 0.25rem var(--ic-checkbox-action-background-hover);border:var(--ic-border-width) solid\n var(--ic-checkbox-border-unselected-hover)}.checkbox:active{box-shadow:0 0 0 0.25rem var(--ic-checkbox-action-background-pressed);border:var(--ic-border-width) solid\n var(--ic-checkbox-border-unselected-pressed)}.checkbox:focus{box-shadow:var(--ic-border-focus)}.checkbox:disabled{border:var(--ic-border-width) dashed\n var(--ic-checkbox-border-unselected-disabled)}.checkbox-label{color:var(--ic-checkbox-text);--ic-typography-color:var(--ic-checkbox-text)}.checkbox-label>label{padding-left:var(--ic-space-sm);display:inline-block}:host(.ic-checkbox-disabled) .checkbox-label{color:var(--ic-checkbox-text-disabled);--ic-typography-color:var(--ic-checkbox-text-disabled)}.checkbox-label:hover{cursor:pointer}.checkmark{position:relative;right:calc(-1 * var(--ic-space-lg));margin-left:calc(-1 * var(--ic-space-lg));fill:var(--ic-checkbox-icon-pressed);z-index:1;background-color:transparent;pointer-events:none;flex-shrink:0}:host(.ic-checkbox-small) .checkmark{margin-left:calc(-1 * var(--ic-space-md));right:calc(-1 * var(--ic-space-md))}:host(.ic-checkbox-large) .checkmark{margin-left:calc(-1 * var(--ic-space-xl));right:calc(-1 * var(--ic-space-xl))}.indeterminate-symbol{position:relative;width:0.875rem;height:var(--ic-space-xxxs);right:-1.188rem;margin-left:-0.875rem;z-index:1;background-color:var(--ic-checkbox-icon-indeterminate);pointer-events:none;flex-shrink:0}:host(.ic-checkbox-small) .indeterminate-symbol{width:0.6rem;right:-0.8rem;margin-left:-0.6rem}:host(.ic-checkbox-large) .indeterminate-symbol{width:1.25rem;right:-1.625rem;margin-left:-1.25rem}.additional-field-wrapper{margin-left:calc(var(--ic-space-md) + var(--ic-space-lg));margin-top:calc(var(--ic-space-sm) / 2)}.branch-corner{height:var(--ic-space-md);width:var(--ic-space-xl);border-radius:0 0 0 0.188rem;border-bottom:0.125rem solid var(--ic-checkbox-required-bar);border-left:0.125rem solid var(--ic-checkbox-required-bar)}.dynamic-container{display:flex;position:relative;margin:var(--ic-space-xxxs) 0 var(--ic-space-xxs) var(--ic-space-md);gap:var(--ic-space-xs)}.dynamic-text{color:var(--ic-checkbox-required-text);--ic-typography-color:var(--ic-checkbox-required-text);margin-top:calc(var(--ic-space-sm) / 2);margin-bottom:var(--ic-space-xs);border-radius:2%}.dynamic-field-container{flex:100%}.sr-only{position:absolute;left:-9999px}@media (max-width: 576px){::slotted(*){--input-width:100%}.dynamic-field-container{flex:initial}}@media (forced-colors: active){.checkbox{-webkit-appearance:revert;-moz-appearance:revert;appearance:revert;transition:none}.checkbox:checked{transition:none}.checkbox:focus-visible{outline:0.125rem solid highlight}.checkbox:disabled:not(:checked){-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:GrayText}.checkmark{fill:none}.indeterminate-symbol{display:none}}.checkmark:dir(rtl){right:0}.checkbox-label:dir(rtl){padding-right:var(--ic-space-sm);padding-left:0}.indeterminate-symbol:dir(rtl){right:0.288rem}.branch-corner:dir(rtl){border-radius:0 0 0.188rem;border-right:0.125rem solid var(--ic-action-default);border-left:none}.dynamic-container:dir(rtl){margin:var(--ic-space-xxxs) var(--ic-space-sm) var(--ic-space-xxs) 0}';const f=g;const u=class{constructor(i){e(this,i);this.icCheck=t(this,"icCheck",7);this.additionalFieldDisplay="static";this.checked=false;this.initiallyChecked=this.checked;this.disabled=false;this.dynamicText="This selection requires additional answers";this.hideLabel=false;this.indeterminate=false;this.displayIndeterminate=this.indeterminate;this.nativeIndeterminateBehaviour=false;this.theme="inherit";this.value="";this.handleClick=()=>{this.checked=!this.checked;this.displayIndeterminate=!this.nativeIndeterminateBehaviour&&this.indeterminate&&this.checked;this.icCheck.emit()};this.handleFormReset=()=>{this.checked=this.initiallyChecked}}watchDisabledHandler(){c(this.disabled,this.el)}watchIndeterminateHandler(){this.displayIndeterminate=this.indeterminate&&(this.nativeIndeterminateBehaviour||this.checked)}componentWillLoad(){c(this.disabled,this.el);r(this.el,this.handleFormReset);const{parentElement:e}=this.el;if((e===null||e===void 0?void 0:e.tagName)==="IC-CHECKBOX-GROUP"){const{name:t,label:i,size:a}=e;if(!this.name)this.name=t;if(!this.size)this.size=a;this.groupLabel=i}}componentDidLoad(){o([{prop:this.label,propName:"label"}],"Checkbox")}componentDidRender(){if(this.additionalFieldDisplay==="static"){this.el.querySelectorAll("ic-text-field").forEach((e=>e.setAttribute("disabled",`${!this.checked}`)))}else if(this.additionalFieldContainer){this.additionalFieldContainer.style.display=!this.checked?"none":"flex"}}disconnectedCallback(){n(this.el,this.handleFormReset)}async setFocus(){var e;(e=this.checkboxEl)===null||e===void 0?void 0:e.focus()}render(){const{additionalFieldDisplay:e,checked:t,disabled:s,displayIndeterminate:c,dynamicText:r,el:o,form:n,groupLabel:b,handleClick:p,hideLabel:m,label:g,name:f,size:u,theme:v,value:x}=this;const k=`ic-checkbox-${g}-${b}`.replace(/ /g,"-");const y=e==="dynamic";t?l(o,x,f,s):d(o);return i(a,{key:"085faed0fb3d46c8903cc09959a1a04f36ac2eeb",class:{"ic-checkbox-disabled":s,[`ic-checkbox-${u}`]:!!u,[`ic-theme-${v}`]:v!=="inherit"}},i("div",{key:"20c07a9059a4fd3b1b59587771190dfd7ebf70fe",class:"container"},c?i("div",{class:"indeterminate-symbol"}):t&&i("svg",{class:"checkmark",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","fill-rule":"evenodd","clip-rule":"evenodd"},i("title",null,"checkmark icon"),i("path",{d:"M21 6.285l-11.16 12.733-6.84-6.018 1.319-1.49 5.341 4.686 9.865-11.196 1.475 1.285z"})),i("input",{key:"94f8a343a8d80a8ceb68f2cddc300c7c500deae7",role:"checkbox",class:{checkbox:true,checked:t,indeterminate:c},ref:e=>this.checkboxEl=e,type:"checkbox",name:f,id:k,value:x,disabled:s,checked:t,indeterminate:c,onClick:p,form:n,"aria-label":m?g:undefined}),!m&&i("ic-typography",{key:"b8b137c6cd0b1ee18ca44f8aa55c976b735b7af8",class:"checkbox-label",variant:"body"},i("label",{key:"44976b751599275d613ff52a816133a896791912",htmlFor:k},g))),i("span",{key:"e1e39b78d26a6d057c722794784b69b422197ff3",id:`${k}-additional-field-description`,role:"alert",class:"sr-only"},y&&t?r:""),h(o,"additional-field")&&i("div",{key:"62457da0c99d40b8bbfb97d3b41f400ef1a22dd0",class:"dynamic-container",ref:e=>this.additionalFieldContainer=e},y&&i("div",{key:"65a6a9deddeb2c2b11fe56273c2d3bc5391f696e",class:"branch-corner"}),i("div",{key:"3e920fd15f6cf506e793bc6386db140332ed390a",class:"dynamic-field-container"},y&&i("ic-typography",{key:"0257c5f48fe33b49742d0a5bd50dac4c000a1f04",variant:"caption"},i("p",{key:"24d8ebe43598283a5e5af287379f3b0f54e17d85",class:"dynamic-text"},y&&t?r:"")),i("div",{key:"38bcc265ce747daad6577a244d2db6c7fbd6d22b",class:{"additional-field-wrapper":!y}},i("slot",{key:"117707c0f26bb70c0c7d13e3d1a01c2120f0f948",name:"additional-field"})))))}static get delegatesFocus(){return true}get el(){return s(this)}static get watchers(){return{disabled:["watchDisabledHandler"],indeterminate:["watchIndeterminateHandler"]}}};u.style=f;const v=':host{gap:var(--ic-space-xs);padding:var(--ic-space-xs)}:host,.action-area{display:flex;flex-direction:column}.action-area{gap:var(--ic-space-md)}:host ::slotted(svg),:host ::slotted(img){border-radius:var(--ic-space-xxs)}:host(.ic-empty-state-right),:host(.ic-empty-state-right) .action-area{align-items:flex-end;text-align:right}:host(.ic-empty-state-center),:host(.ic-empty-state-center) .action-area{align-items:center;text-align:center}:host(.image-medium) ::slotted(svg),:host(.image-medium) ::slotted(img){height:calc(3 * var(--ic-space-lg)) !important;width:calc(3 * var(--ic-space-lg)) !important}:host(.image-small) ::slotted(svg),:host(.image-small) ::slotted(img){height:var(--ic-space-xxl) !important;width:var(--ic-space-xxl) !important}:host(.image-large) ::slotted(svg),:host(.image-large) ::slotted(img){height:calc(4 * var(--ic-space-xl)) !important;width:calc(4 * var(--ic-space-xl)) !important}::slotted([slot="heading"]),.empty-state-heading{--ic-typography-color:var(--ic-empty-state-title)}::slotted([slot="subheading"]),.empty-state-subheading{--ic-typography-color:var(--ic-empty-state-subtitle)}::slotted([slot="body"]),.empty-state-body{--ic-typography-color:var(--ic-empty-state-body)}';const x=v;const k=class{constructor(t){e(this,t);this.hostMutationObserver=null;this.aligned="left";this.imageSize="medium";this.theme="inherit"}disconnectedCallback(){var e;(e=this.hostMutationObserver)===null||e===void 0?void 0:e.disconnect()}componentDidLoad(){!h(this.el,"heading")&&o([{prop:this.heading,propName:"heading"}],"Empty State");this.hostMutationObserver=new MutationObserver((e=>b(e,["image","actions"],this)));this.hostMutationObserver.observe(this.el,{childList:true})}render(){const{aligned:e,body:t,maxLines:s,heading:c,imageSize:r,subheading:o,theme:n}=this;return i(a,{key:"a0dcd0b2fe385b4c2f1f4ffc346ac54b3e19565c",class:{[`ic-empty-state-${e}`]:true,[`image-${r}`]:h(this.el,"image"),[`ic-theme-${n}`]:n!=="inherit"}},h(this.el,"image")&&i("slot",{key:"e652b784ccd7b2af7ed0f9755547a9ddbbb4c5e7",name:"image"}),i("div",{key:"1dfc5567a55de1301caec6d779ad60f851826a41"},i("slot",{key:"70b5a550c9650fcab692acbc53d035e114eaf09e",name:"heading"},i("ic-typography",{key:"043fc0ae7d4364442d75bb78bdbe3004fa1274f4",variant:"h4",class:"empty-state-heading"},c)),i("slot",{key:"84dbde519a4b6cb0cd7ab03e8dbcb85931796a24",name:"subheading"},i("ic-typography",{key:"a2d94ae6cba46c73212f2c688858ee56ceaa5a90",variant:"subtitle-small",class:"empty-state-subheading"},o)),i("slot",{key:"aa1fc8130e5d4fb6a472f908a30fd319463b443f",name:"body"},i("ic-typography",{key:"f73a7eb783dd049cb4de2510b977500d0fa47d52",maxLines:s,class:"empty-state-body"},t))),h(this.el,"actions")&&i("div",{key:"3cb1e55fb552cf4177498d87e874d16a3f16d429",class:"action-area"},i("slot",{key:"e25cb0c875f095825a512cea93c5ffe700072e71",name:"actions"})))}get el(){return s(this)}};k.style=x;const y=":host(){display:block}.pagination-bar{height:3.5rem;display:flex;align-items:center;justify-content:flex-end;gap:var(--ic-space-xl);padding:var(--ic-space-xs) var(--ic-space-md);box-sizing:border-box;--ic-typography-color:var(--ic-pagination-text)}.pagination-bar-left{justify-content:flex-start}.item-controls{display:flex;align-items:center;gap:var(--ic-space-xl)}.pagination-bar-space-between .item-controls{margin-right:auto}.items-per-page-holder{display:flex;align-items:center;gap:var(--ic-space-xs)}.items-per-page-input{--input-width:5rem;--ic-typography-color:var(--ic-pagination-select-content)}.pagination-controls{display:flex;align-items:center;gap:var(--ic-space-xl)}.pagination-controls-wrap{flex-direction:column;align-items:flex-end;gap:var(--ic-space-xs)}.pagination-bar-space-between .pagination-controls{margin-left:auto}.go-to-page-holder{display:flex;align-items:center;gap:var(--ic-space-xs)}.go-to-page-input{--input-width:var(--ic-space-xl)}.go-to-page-button{--min-width:var(--ic-space-xl)}.items-per-page-control-label{white-space:nowrap}@media screen and (max-width: 768px){.pagination-bar{flex-direction:column;align-items:flex-end;height:-moz-fit-content;height:fit-content;gap:var(--ic-space-xs)}.pagination-bar-left{align-items:flex-start}}@media screen and (max-width: 320px){.item-controls,.pagination-controls{flex-direction:column;align-items:flex-end;gap:var(--ic-space-xs)}.pagination-bar-left .item-controls,.pagination-bar-left .pagination-controls,.pagination-bar-space-between .item-controls,.pagination-bar-space-between .pagination-controls{align-items:flex-start}}";const w=y;const P=class{constructor(i){e(this,i);this.icPageChange=t(this,"icPageChange",7);this.icItemsPerPageChange=t(this,"icItemsPerPageChange",7);this.PAGE_INPUT_FIELD_ID="go-to-page-input";this.INVALID_PAGE_ERROR="Please enter a valid page";this.resizeObserver=null;this.activePage=1;this.inputError="Please enter a valid page";this.itemsPerPage=10;this.itemsPerPageString="10";this.lowerBound=1;this.paginationWrapped=false;this.alignment="right";this.currentPage=1;this.hideAllFromItemsPerPage=false;this.itemLabel="Item";this.monochrome=false;this.theme="inherit";this.type="simple";this.rangeLabelType="page";this.pageLabel="Page";this.showGoToPageControl=false;this.hideRangeLabel=false;this.selectItemsPerPageOnEnter=true;this.showItemsPerPageControl=false;this.setToFirstPageOnPaginationChange=false;this.setSelectedItemsPerPage=(e,t=[])=>{const i=t===null||t===void 0?void 0:t.some((({value:e})=>{var t;return e===((t=this.selectedItemsPerPage)===null||t===void 0?void 0:t.toString())}));if(i){this.setItemsPerPage(e,false)}else{console.error(`The selected items per page option "${this.selectedItemsPerPage}" does not exist`);this.setItemsPerPage(+this.totalItems,false)}};this.changeItemsPerPage=()=>{this.setItemsPerPage(Number(this.pageDropdownEl.value));this.userSetItemsPerPage=Number(this.pageDropdownEl.value)};this.changePage=e=>{this.activePage=e;this.lowerBound=e!==1?(e-1)*this.itemsPerPage+1:e;this.setUpperBound()};this.focusElFromLabel=e=>{var t,i;(i=(t=this.paginationBarEl)===null||t===void 0?void 0:t.querySelector(e))===null||i===void 0?void 0:i.setFocus()};this.goToPage=()=>{var e;const t=this.pageInputEl;const i=Number(t.value);if(i<=this.totalPages&&i>0){this.changePage(i);(e=this.paginationEl)===null||e===void 0?void 0:e.setCurrentPage(i);this.activePage=i;t.value="";this.icPageChange.emit({value:i});this.pageInputTooltipEl.displayTooltip(false,false);t.validationStatus=""}else{this.setInputError(t,this.INVALID_PAGE_ERROR)}};this.goToPageLabelClickHandler=()=>{this.focusElFromLabel("ic-text-field")};this.handleBlur=()=>{const e=this.pageInputEl;if(Number(e.value)<=this.totalPages&&Number(e.value)>0||e.value===""){e.validationStatus=""}this.pageInputTooltipEl.displayTooltip(false,false)};this.handleFocus=()=>{if(this.pageInputEl.validationStatus==="error"){this.pageInputTooltipEl.displayTooltip(true,true)}};this.handleInputChange=()=>{const e=parseInt(this.pageInputEl.value);if(e>this.totalPages||e<=0){this.setInputError(this.pageInputEl,this.INVALID_PAGE_ERROR);this.pageInputTooltipEl.displayTooltip(true,true)}};this.handleKeydown=e=>{if(e.key==="Enter"){if(this.pageInputEl.validationStatus==="error"){this.pageInputTooltipEl.displayTooltip(true,true)}else{this.goToPage()}}else{this.pageInputTooltipEl.displayTooltip(false,false);this.pageInputEl.validationStatus=""}};this.handleKeyUp=e=>{if(Number.isNaN(parseInt(this.pageInputEl.value))&&e.key!=="Backspace"&&e.key!=="Enter"&&e.key!=="Tab"&&e.key!=="Shift"){this.setInputError(this.pageInputEl,"Please enter a number",false);this.pageInputTooltipEl.displayTooltip(true,false)}};this.itemsPerPageLabelClickHandler=()=>{this.focusElFromLabel("ic-select")};this.paginationShouldWrap=()=>{if(this.type==="simple"){this.paginationWrapped=this.paginationEl.clientHeight>63}};this.runResizeObserver=()=>{if(this.paginationBarEl){this.resizeObserver=new ResizeObserver((()=>{const{clientWidth:e}=this.paginationBarEl;if(e-this.paginationWidth>50||e-this.paginationWidth<-50){this.paginationWidth=e;this.paginationShouldWrap()}}));this.resizeObserver.observe(this.paginationBarEl)}};this.setInputError=(e,t,i=true)=>{this.inputError=t;e.validationStatus="error";if(i)e.setFocus()};this.setToFirstPage=()=>{var e;const t=1;this.changePage(t);(e=this.paginationEl)===null||e===void 0?void 0:e.setCurrentPage(t);this.activePage=t;this.icPageChange.emit({value:t})};this.setItemsPerPage=(e,t=true)=>{var i;if(this.itemsPerPage!==e){this.itemsPerPage=e;this.itemsPerPageString=e.toString();this.icItemsPerPageChange.emit({value:this.itemsPerPage,isUserAction:t});if(this.setToFirstPageOnPaginationChange){this.setToFirstPage()}}this.totalPages=this.totalItems>this.itemsPerPage?Math.ceil(this.totalItems/this.itemsPerPage):1;this.setUpperBound();if(this.activePage>this.totalPages){(i=this.paginationEl)===null||i===void 0?void 0:i.setCurrentPage(this.totalPages);this.activePage=this.totalPages}this.icPageChange.emit({value:this.activePage,fromItemsPerPage:true})};this.setPaginationBarContent=()=>{const e=this.itemsPerPageOptions?JSON.parse(JSON.stringify(this.itemsPerPageOptions)):null;const t=e||(this.totalItems<=100?[{label:"10",value:"10"},{label:"25",value:"25"},{label:"50",value:"50"}]:[{label:"25",value:"25"},{label:"100",value:"100"},{label:"1000",value:"1000"}]);!this.hideAllFromItemsPerPage&&t.push({label:"All",value:String(this.totalItems)});this.displayedItemsPerPageOptions=t.filter((({value:e})=>this.totalItems>=Number(e)));let i=0;if(this.userSetItemsPerPage){this.displayedItemsPerPageOptions.some((({value:e})=>{i=Number(e);return this.userSetItemsPerPage<=i}));this.setItemsPerPage(i)}else{if(this.selectedItemsPerPage!==null&&this.selectedItemsPerPage!==undefined){this.setSelectedItemsPerPage(this.selectedItemsPerPage,this.displayedItemsPerPageOptions)}else{const e=this.displayedItemsPerPageOptions.some((({value:e})=>{i=Number(e);return this.itemsPerPage<=i}));this.setItemsPerPage(e||!e&&this.itemsPerPage>i?i:this.itemsPerPage,false)}}};this.setUpperBound=()=>{this.upperBound=Math.min(this.lowerBound+this.itemsPerPage-1,this.totalItems)}}watchPageNumberHandler(){this.setPaginationBarContent();if(typeof this.currentPage==="number"&&this.currentPage){if(this.currentPage<1||this.totalPages&&this.currentPage>this.totalPages){console.error(`The current page (${this.currentPage}) must be a number greater than zero but less than or equal to the total number of pages (${this.totalPages})`)}else{this.activePage=this.currentPage}}}watchSelectedItemsPerPageHandler(){if(this.selectedItemsPerPage!==null&&this.selectedItemsPerPage!==undefined){this.setSelectedItemsPerPage(this.selectedItemsPerPage,this.displayedItemsPerPageOptions)}}watchItemLabelHandler(){this.capitalizedItemLabel=p(this.itemLabel);this.lowerCaseItemLabel=this.itemLabel.toLowerCase()}watchItemsPerPageOptionsHandler(e,t){if(JSON.stringify(e)===JSON.stringify(t))return;this.setPaginationBarContent()}watchPageLabelHandler(){this.capitalizedPageLabel=p(this.pageLabel);this.lowerCasePageLabel=this.pageLabel.toLowerCase()}watchTotalItemsHandler(){this.setPaginationBarContent()}watchSetToFirstPageOnPaginationChange(){this.setPaginationBarContent()}disconnectedCallback(){var e;(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect()}componentWillLoad(){this.watchPageNumberHandler();this.watchPageLabelHandler();this.watchItemLabelHandler();this.setPaginationBarContent()}componentDidLoad(){var e,t,i;this.paginationWidth=((e=this.paginationBarEl)===null||e===void 0?void 0:e.clientWidth)||0;m(this.runResizeObserver);const a=(t=this.el.shadowRoot)===null||t===void 0?void 0:t.querySelector(`.${this.PAGE_INPUT_FIELD_ID}`);if(a){const e=(i=a===null||a===void 0?void 0:a.shadowRoot)===null||i===void 0?void 0:i.querySelector("input");if(e){e.style.textAlign="center";e.style.padding="0"}}this.paginationShouldWrap()}pageChangeHandler(e){const t=e.detail.value;this.changePage(t)}render(){const{alignment:e,displayedItemsPerPageOptions:t,PAGE_INPUT_FIELD_ID:s,type:c,rangeLabelType:r,hideRangeLabel:o,showItemsPerPageControl:n,showGoToPageControl:l,pageLabel:d,capitalizedPageLabel:h,lowerCasePageLabel:b,capitalizedItemLabel:p,lowerCaseItemLabel:m,totalPages:g,activePage:f,itemsPerPageString:u,theme:v,monochrome:x,selectItemsPerPageOnEnter:k}=this;return i(a,{key:"1bdb283b4cee9f3b82bebdda9ee2a87a14f029f2",class:{[`ic-theme-${v}`]:v!=="inherit"}},i("div",{key:"6e9f804d4cf83872dd4db5945544e87980bcfcd0",class:{["pagination-bar"]:true,[`pagination-bar-${e}`]:true},ref:e=>this.paginationBarEl=e},(!o||n)&&i("div",{key:"55b793e9373472c650df949a6df6bd56a908c2d8",class:"item-controls"},n&&i("div",{key:"e0dcc5cd7283b8efd7e336dc666d1a02f7521559",class:"items-per-page-holder"},i("ic-typography",{key:"fd22b1152361b3d34229f5216c46a26ccb7c83a1",class:{["items-per-page-control-label"]:true},variant:"label",onClick:this.itemsPerPageLabelClickHandler},p,"s per ",b),i("ic-select",{key:"9f9d68b2754533139e6296d4e82929a32f057a62",theme:v,size:"small",label:"items-per-page-input",class:"items-per-page-input",hideLabel:true,options:t,selectOnEnter:k,value:u,onIcChange:this.changeItemsPerPage,ref:e=>this.pageDropdownEl=e})),!o&&(r==="data"?i("ic-typography",{class:{["item-pagination-label"]:true},variant:"label","aria-live":"polite"},this.upperBound===0&&`0 ${m}s`,this.upperBound>0&&`${this.lowerBound} - ${this.upperBound} of ${this.totalItems} ${m}${this.totalItems>1?"s":""}`):i("ic-typography",{class:{["page-pagination-label"]:true},variant:"label","aria-live":"polite"},h," ",f," of ",g))),i("div",{key:"672ad8420d478f014739114a908bb04925e6aeb9",class:{["pagination-controls"]:true,["pagination-controls-wrap"]:this.paginationWrapped}},i("div",{key:"cb935dfcb4c533fd6393ef3936d1c5e525c54a48",class:"pagination-holder"},i("ic-pagination",{key:"13c998f882c64ceb7378d3946331e51615ac91bb",type:c,pages:g,label:d,ref:e=>this.paginationEl=e,currentPage:f,theme:v,monochrome:x})),l&&i("div",{key:"284fb3adcb71840ad3f5cd94e169c723e29e3c42",class:"go-to-page-holder"},i("ic-typography",{key:"3573ec4a04fd9d4255cbdc9baa5af094d4fa4cf6",variant:"label",onClick:this.goToPageLabelClickHandler},"Go to ",b),i("ic-tooltip",{key:"6ec3806df8407e0a67cf88193b11bf91dae15d8f",label:this.inputError,target:`#${s}`,disableHover:true,disableClick:true,ref:e=>this.pageInputTooltipEl=e},i("ic-text-field",{key:"2401a8ab487c1aea29e0faa17ad4b3aa04ee8d64",theme:v,type:"number",size:"small",label:s,class:s,id:s,hideLabel:true,onKeyDown:this.handleKeydown,onKeyUp:this.handleKeyUp,onInput:this.handleInputChange,max:g,min:"1",validationInlineInternal:true,onBlur:this.handleBlur,onFocus:this.handleFocus,ref:e=>this.pageInputEl=e})),i("ic-button",{key:"ed1b6758582ba5ee2187048037989cf2e8441526",variant:"secondary",onClick:this.goToPage,size:"small",class:"go-to-page-button"},"Go")))))}get el(){return s(this)}static get watchers(){return{currentPage:["watchPageNumberHandler"],selectedItemsPerPage:["watchSelectedItemsPerPageHandler"],itemLabel:["watchItemLabelHandler"],itemsPerPageOptions:["watchItemsPerPageOptionsHandler"],pageLabel:["watchPageLabelHandler"],totalItems:["watchTotalItemsHandler"],setToFirstPageOnPaginationChange:["watchSetToFirstPageOnPaginationChange"]}}};P.style=w;export{u as ic_checkbox,k as ic_empty_state,P as ic_pagination_bar};
2
+ //# sourceMappingURL=p-13c8859b.entry.js.map