@ukic/web-components 3.26.0 → 3.28.0

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 (482) hide show
  1. package/components/OpenInNew.js +5 -0
  2. package/components/OpenInNew.js.map +1 -0
  3. package/components/check-icon.js +8 -0
  4. package/components/check-icon.js.map +1 -0
  5. package/components/chevron-icon.js +8 -0
  6. package/components/chevron-icon.js.map +1 -0
  7. package/{dist/esm/close-icon-539ec8d1.js → components/close-icon.js} +2 -3
  8. package/components/close-icon.js.map +1 -0
  9. package/components/constants.js +184 -0
  10. package/components/constants.js.map +1 -0
  11. package/components/custom-elements.d.ts +2 -0
  12. package/components/helpers.js +547 -0
  13. package/components/helpers.js.map +1 -0
  14. package/components/ic-accordion-group.d.ts +11 -0
  15. package/components/ic-accordion-group.js +191 -0
  16. package/components/ic-accordion-group.js.map +1 -0
  17. package/components/ic-accordion.d.ts +11 -0
  18. package/components/ic-accordion.js +188 -0
  19. package/components/ic-accordion.js.map +1 -0
  20. package/components/ic-action-chip.d.ts +11 -0
  21. package/components/ic-action-chip.js +164 -0
  22. package/components/ic-action-chip.js.map +1 -0
  23. package/components/ic-alert.d.ts +11 -0
  24. package/components/ic-alert.js +193 -0
  25. package/components/ic-alert.js.map +1 -0
  26. package/components/ic-back-to-top.d.ts +11 -0
  27. package/components/ic-back-to-top.js +216 -0
  28. package/components/ic-back-to-top.js.map +1 -0
  29. package/components/ic-badge.d.ts +11 -0
  30. package/components/ic-badge.js +222 -0
  31. package/components/ic-badge.js.map +1 -0
  32. package/components/ic-breadcrumb-group.d.ts +11 -0
  33. package/components/ic-breadcrumb-group.js +278 -0
  34. package/components/ic-breadcrumb-group.js.map +1 -0
  35. package/components/ic-breadcrumb.d.ts +11 -0
  36. package/components/ic-breadcrumb.js +8 -0
  37. package/components/ic-breadcrumb.js.map +1 -0
  38. package/components/ic-breadcrumb2.js +145 -0
  39. package/components/ic-breadcrumb2.js.map +1 -0
  40. package/components/ic-button.d.ts +11 -0
  41. package/components/ic-button.js +8 -0
  42. package/components/ic-button.js.map +1 -0
  43. package/components/ic-button2.js +509 -0
  44. package/components/ic-button2.js.map +1 -0
  45. package/components/ic-card-horizontal.d.ts +11 -0
  46. package/components/ic-card-horizontal.js +214 -0
  47. package/components/ic-card-horizontal.js.map +1 -0
  48. package/components/ic-card-vertical.d.ts +11 -0
  49. package/components/ic-card-vertical.js +219 -0
  50. package/components/ic-card-vertical.js.map +1 -0
  51. package/components/ic-checkbox-group.d.ts +11 -0
  52. package/components/ic-checkbox-group.js +198 -0
  53. package/components/ic-checkbox-group.js.map +1 -0
  54. package/components/ic-checkbox.d.ts +11 -0
  55. package/components/ic-checkbox.js +202 -0
  56. package/components/ic-checkbox.js.map +1 -0
  57. package/components/ic-chip.d.ts +11 -0
  58. package/components/ic-chip.js +183 -0
  59. package/components/ic-chip.js.map +1 -0
  60. package/components/ic-classification-banner.d.ts +11 -0
  61. package/components/ic-classification-banner.js +102 -0
  62. package/components/ic-classification-banner.js.map +1 -0
  63. package/components/ic-data-list.d.ts +11 -0
  64. package/components/ic-data-list.js +63 -0
  65. package/components/ic-data-list.js.map +1 -0
  66. package/components/ic-data-row.d.ts +11 -0
  67. package/components/ic-data-row.js +115 -0
  68. package/components/ic-data-row.js.map +1 -0
  69. package/components/ic-dialog.d.ts +11 -0
  70. package/components/ic-dialog.js +366 -0
  71. package/components/ic-dialog.js.map +1 -0
  72. package/components/ic-divider.d.ts +11 -0
  73. package/components/ic-divider.js +8 -0
  74. package/components/ic-divider.js.map +1 -0
  75. package/components/ic-divider2.js +148 -0
  76. package/components/ic-divider2.js.map +1 -0
  77. package/components/ic-empty-state.d.ts +11 -0
  78. package/components/ic-empty-state.js +82 -0
  79. package/components/ic-empty-state.js.map +1 -0
  80. package/components/ic-footer-link-group.d.ts +11 -0
  81. package/components/ic-footer-link-group.js +101 -0
  82. package/components/ic-footer-link-group.js.map +1 -0
  83. package/components/ic-footer-link.d.ts +11 -0
  84. package/components/ic-footer-link.js +95 -0
  85. package/components/ic-footer-link.js.map +1 -0
  86. package/components/ic-footer.d.ts +11 -0
  87. package/components/ic-footer.js +156 -0
  88. package/components/ic-footer.js.map +1 -0
  89. package/components/ic-hero.d.ts +11 -0
  90. package/components/ic-hero.js +145 -0
  91. package/components/ic-hero.js.map +1 -0
  92. package/components/ic-horizontal-scroll.d.ts +11 -0
  93. package/components/ic-horizontal-scroll.js +8 -0
  94. package/components/ic-horizontal-scroll.js.map +1 -0
  95. package/components/ic-horizontal-scroll2.js +240 -0
  96. package/components/ic-horizontal-scroll2.js.map +1 -0
  97. package/components/ic-input-component-container.d.ts +11 -0
  98. package/components/ic-input-component-container.js +8 -0
  99. package/components/ic-input-component-container.js.map +1 -0
  100. package/components/ic-input-component-container2.js +95 -0
  101. package/components/ic-input-component-container2.js.map +1 -0
  102. package/components/ic-input-container.d.ts +11 -0
  103. package/components/ic-input-container.js +8 -0
  104. package/components/ic-input-container.js.map +1 -0
  105. package/components/ic-input-container2.js +47 -0
  106. package/components/ic-input-container2.js.map +1 -0
  107. package/components/ic-input-label.d.ts +11 -0
  108. package/components/ic-input-label.js +8 -0
  109. package/components/ic-input-label.js.map +1 -0
  110. package/components/ic-input-label2.js +121 -0
  111. package/components/ic-input-label2.js.map +1 -0
  112. package/components/ic-input-validation.d.ts +11 -0
  113. package/components/ic-input-validation.js +8 -0
  114. package/components/ic-input-validation.js.map +1 -0
  115. package/components/ic-input-validation2.js +90 -0
  116. package/components/ic-input-validation2.js.map +1 -0
  117. package/components/ic-layout-grid-item.d.ts +11 -0
  118. package/components/ic-layout-grid-item.js +95 -0
  119. package/components/ic-layout-grid-item.js.map +1 -0
  120. package/components/ic-layout-grid.d.ts +11 -0
  121. package/components/ic-layout-grid.js +188 -0
  122. package/components/ic-layout-grid.js.map +1 -0
  123. package/components/ic-link.d.ts +11 -0
  124. package/components/ic-link.js +8 -0
  125. package/components/ic-link.js.map +1 -0
  126. package/components/ic-link2.js +135 -0
  127. package/components/ic-link2.js.map +1 -0
  128. package/components/ic-loading-indicator.d.ts +11 -0
  129. package/components/ic-loading-indicator.js +8 -0
  130. package/components/ic-loading-indicator.js.map +1 -0
  131. package/components/ic-loading-indicator2.js +278 -0
  132. package/components/ic-loading-indicator2.js.map +1 -0
  133. package/components/ic-menu-group.d.ts +11 -0
  134. package/components/ic-menu-group.js +47 -0
  135. package/components/ic-menu-group.js.map +1 -0
  136. package/components/ic-menu-item.d.ts +11 -0
  137. package/components/ic-menu-item.js +8 -0
  138. package/components/ic-menu-item.js.map +1 -0
  139. package/components/ic-menu-item2.js +171 -0
  140. package/components/ic-menu-item2.js.map +1 -0
  141. package/components/ic-menu.d.ts +11 -0
  142. package/components/ic-menu.js +8 -0
  143. package/components/ic-menu.js.map +1 -0
  144. package/components/ic-menu2.js +2590 -0
  145. package/components/ic-menu2.js.map +1 -0
  146. package/components/ic-navigation-button.d.ts +11 -0
  147. package/components/ic-navigation-button.js +175 -0
  148. package/components/ic-navigation-button.js.map +1 -0
  149. package/components/ic-navigation-group.d.ts +11 -0
  150. package/components/ic-navigation-group.js +326 -0
  151. package/components/ic-navigation-group.js.map +1 -0
  152. package/components/ic-navigation-item.d.ts +11 -0
  153. package/components/ic-navigation-item.js +294 -0
  154. package/components/ic-navigation-item.js.map +1 -0
  155. package/components/ic-navigation-menu.d.ts +11 -0
  156. package/components/ic-navigation-menu.js +8 -0
  157. package/components/ic-navigation-menu.js.map +1 -0
  158. package/components/ic-navigation-menu2.js +188 -0
  159. package/components/ic-navigation-menu2.js.map +1 -0
  160. package/components/ic-page-header.d.ts +11 -0
  161. package/components/ic-page-header.js +196 -0
  162. package/components/ic-page-header.js.map +1 -0
  163. package/components/ic-pagination-bar.d.ts +11 -0
  164. package/components/ic-pagination-bar.js +523 -0
  165. package/components/ic-pagination-bar.js.map +1 -0
  166. package/components/ic-pagination-item.d.ts +11 -0
  167. package/components/ic-pagination-item.js +8 -0
  168. package/components/ic-pagination-item.js.map +1 -0
  169. package/components/ic-pagination-item2.js +107 -0
  170. package/components/ic-pagination-item2.js.map +1 -0
  171. package/components/ic-pagination.d.ts +11 -0
  172. package/components/ic-pagination.js +8 -0
  173. package/components/ic-pagination.js.map +1 -0
  174. package/components/ic-pagination2.js +383 -0
  175. package/components/ic-pagination2.js.map +1 -0
  176. package/components/ic-popover-menu.d.ts +11 -0
  177. package/components/ic-popover-menu.js +391 -0
  178. package/components/ic-popover-menu.js.map +1 -0
  179. package/components/ic-radio-group.d.ts +11 -0
  180. package/components/ic-radio-group.js +317 -0
  181. package/components/ic-radio-group.js.map +1 -0
  182. package/components/ic-radio-option.d.ts +11 -0
  183. package/components/ic-radio-option.js +211 -0
  184. package/components/ic-radio-option.js.map +1 -0
  185. package/components/ic-search-bar.d.ts +11 -0
  186. package/components/ic-search-bar.js +715 -0
  187. package/components/ic-search-bar.js.map +1 -0
  188. package/components/ic-section-container.d.ts +11 -0
  189. package/components/ic-section-container.js +8 -0
  190. package/components/ic-section-container.js.map +1 -0
  191. package/components/ic-section-container2.js +50 -0
  192. package/components/ic-section-container2.js.map +1 -0
  193. package/components/ic-select.d.ts +11 -0
  194. package/components/ic-select.js +8 -0
  195. package/components/ic-select.js.map +1 -0
  196. package/components/ic-select2.js +806 -0
  197. package/components/ic-select2.js.map +1 -0
  198. package/components/ic-side-navigation.d.ts +11 -0
  199. package/components/ic-side-navigation.js +568 -0
  200. package/components/ic-side-navigation.js.map +1 -0
  201. package/components/ic-skeleton.d.ts +11 -0
  202. package/components/ic-skeleton.js +81 -0
  203. package/components/ic-skeleton.js.map +1 -0
  204. package/components/ic-skip-link.d.ts +11 -0
  205. package/components/ic-skip-link.js +91 -0
  206. package/components/ic-skip-link.js.map +1 -0
  207. package/components/ic-status-tag.d.ts +11 -0
  208. package/components/ic-status-tag.js +85 -0
  209. package/components/ic-status-tag.js.map +1 -0
  210. package/components/ic-step.d.ts +11 -0
  211. package/components/ic-step.js +200 -0
  212. package/components/ic-step.js.map +1 -0
  213. package/components/ic-stepper.d.ts +11 -0
  214. package/components/ic-stepper.js +340 -0
  215. package/components/ic-stepper.js.map +1 -0
  216. package/components/ic-switch.d.ts +11 -0
  217. package/components/ic-switch.js +164 -0
  218. package/components/ic-switch.js.map +1 -0
  219. package/components/ic-tab-context.d.ts +11 -0
  220. package/components/ic-tab-context.js +275 -0
  221. package/components/ic-tab-context.js.map +1 -0
  222. package/components/ic-tab-group.d.ts +11 -0
  223. package/components/ic-tab-group.js +89 -0
  224. package/components/ic-tab-group.js.map +1 -0
  225. package/components/ic-tab-panel.d.ts +11 -0
  226. package/components/ic-tab-panel.js +63 -0
  227. package/components/ic-tab-panel.js.map +1 -0
  228. package/components/ic-tab.d.ts +11 -0
  229. package/components/ic-tab.js +143 -0
  230. package/components/ic-tab.js.map +1 -0
  231. package/components/ic-text-field.d.ts +11 -0
  232. package/components/ic-text-field.js +8 -0
  233. package/components/ic-text-field.js.map +1 -0
  234. package/components/ic-text-field2.js +532 -0
  235. package/components/ic-text-field2.js.map +1 -0
  236. package/components/ic-theme.d.ts +11 -0
  237. package/components/ic-theme.js +105 -0
  238. package/components/ic-theme.js.map +1 -0
  239. package/components/ic-toast-region.d.ts +11 -0
  240. package/components/ic-toast-region.js +76 -0
  241. package/components/ic-toast-region.js.map +1 -0
  242. package/components/ic-toast.d.ts +11 -0
  243. package/components/ic-toast.js +295 -0
  244. package/components/ic-toast.js.map +1 -0
  245. package/components/ic-toggle-button-group.d.ts +11 -0
  246. package/components/ic-toggle-button-group.js +323 -0
  247. package/components/ic-toggle-button-group.js.map +1 -0
  248. package/components/ic-toggle-button.d.ts +11 -0
  249. package/components/ic-toggle-button.js +235 -0
  250. package/components/ic-toggle-button.js.map +1 -0
  251. package/components/ic-tooltip.d.ts +11 -0
  252. package/components/ic-tooltip.js +8 -0
  253. package/components/ic-tooltip.js.map +1 -0
  254. package/components/ic-tooltip2.js +2078 -0
  255. package/components/ic-tooltip2.js.map +1 -0
  256. package/components/ic-top-navigation.d.ts +11 -0
  257. package/components/ic-top-navigation.js +320 -0
  258. package/components/ic-top-navigation.js.map +1 -0
  259. package/components/ic-typography.d.ts +11 -0
  260. package/components/ic-typography.js +8 -0
  261. package/components/ic-typography.js.map +1 -0
  262. package/components/ic-typography2.js +228 -0
  263. package/components/ic-typography2.js.map +1 -0
  264. package/components/index.d.ts +33 -0
  265. package/components/index.js +4 -0
  266. package/components/index.js.map +1 -0
  267. package/components/package.json +9 -0
  268. package/dist/cjs/{close-icon-7f6ef8e4.js → close-icon-30d8bb41.js} +2 -3
  269. package/dist/cjs/close-icon-30d8bb41.js.map +1 -0
  270. package/dist/cjs/ic-alert.cjs.entry.js +1 -1
  271. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  272. package/dist/cjs/ic-data-list.cjs.entry.js +1 -1
  273. package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
  274. package/dist/cjs/ic-data-row.cjs.entry.js +1 -1
  275. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  276. package/dist/cjs/ic-dialog.cjs.entry.js +1 -1
  277. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +63 -37
  278. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  279. package/dist/cjs/ic-pagination-item.cjs.entry.js +1 -1
  280. package/dist/cjs/ic-pagination-item.cjs.entry.js.map +1 -1
  281. package/dist/cjs/ic-pagination_3.cjs.entry.js +29 -25
  282. package/dist/cjs/ic-pagination_3.cjs.entry.js.map +1 -1
  283. package/dist/cjs/ic-popover-menu.cjs.entry.js +33 -11
  284. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  285. package/dist/cjs/ic-search-bar.cjs.entry.js +2 -6
  286. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  287. package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
  288. package/dist/cjs/ic-side-navigation.cjs.entry.js +1 -1
  289. package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
  290. package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
  291. package/dist/cjs/ic-status-tag.cjs.entry.js +2 -2
  292. package/dist/cjs/ic-step.cjs.entry.js +13 -13
  293. package/dist/cjs/ic-stepper.cjs.entry.js +2 -2
  294. package/dist/cjs/ic-switch.cjs.entry.js +4 -4
  295. package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
  296. package/dist/cjs/ic-tab-group.cjs.entry.js +2 -2
  297. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
  298. package/dist/cjs/ic-theme.cjs.entry.js +1 -1
  299. package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
  300. package/dist/cjs/ic-toast.cjs.entry.js +6 -6
  301. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +2 -2
  302. package/dist/cjs/ic-toggle-button.cjs.entry.js +2 -2
  303. package/dist/collection/assets/close-icon.svg +1 -2
  304. package/dist/collection/components/ic-data-list/ic-data-list.css +4 -0
  305. package/dist/collection/components/ic-data-row/ic-data-row.css +1 -1
  306. package/dist/collection/components/ic-menu/ic-menu.css +19 -0
  307. package/dist/collection/components/ic-menu/ic-menu.js +62 -36
  308. package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
  309. package/dist/collection/components/ic-menu/ic-menu.types.js.map +1 -1
  310. package/dist/collection/components/ic-pagination/ic-pagination.js +12 -8
  311. package/dist/collection/components/ic-pagination/ic-pagination.js.map +1 -1
  312. package/dist/collection/components/ic-pagination-item/ic-pagination-item.css +2 -1
  313. package/dist/collection/components/ic-popover-menu/ic-popover-menu.css +4 -4
  314. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +36 -11
  315. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
  316. package/dist/collection/components/ic-popover-menu/ic-popover-menu.stories.js +72 -0
  317. package/dist/collection/components/ic-search-bar/ic-search-bar.js +1 -1
  318. package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
  319. package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
  320. package/dist/collection/components/ic-select/ic-select.js +17 -17
  321. package/dist/collection/components/ic-select/ic-select.js.map +1 -1
  322. package/dist/collection/components/ic-select/ic-select_(single).stories.js +54 -0
  323. package/dist/collection/components/ic-skeleton/ic-skeleton.js +2 -2
  324. package/dist/collection/components/ic-skip-link/ic-skip-link.js +2 -2
  325. package/dist/collection/components/ic-status-tag/ic-status-tag.js +2 -2
  326. package/dist/collection/components/ic-step/ic-step.js +13 -13
  327. package/dist/collection/components/ic-stepper/ic-stepper.js +2 -2
  328. package/dist/collection/components/ic-switch/ic-switch.js +4 -4
  329. package/dist/collection/components/ic-tab-context/ic-tab-context.js +1 -1
  330. package/dist/collection/components/ic-tab-group/ic-tab-group.js +2 -2
  331. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +2 -2
  332. package/dist/collection/components/ic-theme/ic-theme.js +1 -1
  333. package/dist/collection/components/ic-toast/ic-toast.js +5 -5
  334. package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -1
  335. package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +2 -2
  336. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +2 -2
  337. package/dist/components/close-icon.js +1 -2
  338. package/dist/components/close-icon.js.map +1 -1
  339. package/dist/components/ic-data-list.js +1 -1
  340. package/dist/components/ic-data-list.js.map +1 -1
  341. package/dist/components/ic-data-row.js +1 -1
  342. package/dist/components/ic-data-row.js.map +1 -1
  343. package/dist/components/ic-menu2.js +63 -37
  344. package/dist/components/ic-menu2.js.map +1 -1
  345. package/dist/components/ic-page-header.js.map +1 -1
  346. package/dist/components/ic-pagination-bar.js.map +1 -1
  347. package/dist/components/ic-pagination-item2.js +1 -1
  348. package/dist/components/ic-pagination-item2.js.map +1 -1
  349. package/dist/components/ic-pagination2.js +12 -8
  350. package/dist/components/ic-pagination2.js.map +1 -1
  351. package/dist/components/ic-popover-menu.js +34 -12
  352. package/dist/components/ic-popover-menu.js.map +1 -1
  353. package/dist/components/ic-radio-group.js.map +1 -1
  354. package/dist/components/ic-radio-option.js.map +1 -1
  355. package/dist/components/ic-search-bar.js +2 -6
  356. package/dist/components/ic-search-bar.js.map +1 -1
  357. package/dist/components/ic-section-container2.js +2 -2
  358. package/dist/components/ic-select2.js +17 -17
  359. package/dist/components/ic-select2.js.map +1 -1
  360. package/dist/components/ic-side-navigation.js.map +1 -1
  361. package/dist/components/ic-skeleton.js +2 -2
  362. package/dist/components/ic-skip-link.js +2 -2
  363. package/dist/components/ic-status-tag.js +2 -2
  364. package/dist/components/ic-step.js +13 -13
  365. package/dist/components/ic-stepper.js +2 -2
  366. package/dist/components/ic-switch.js +4 -4
  367. package/dist/components/ic-tab-context.js +1 -1
  368. package/dist/components/ic-tab-group.js +2 -2
  369. package/dist/components/ic-tab-panel.js +2 -2
  370. package/dist/components/ic-theme.js +1 -1
  371. package/dist/components/ic-toast-region.js +1 -1
  372. package/dist/components/ic-toast.js +5 -5
  373. package/dist/components/ic-toggle-button-group.js +2 -2
  374. package/dist/components/ic-toggle-button.js +2 -2
  375. package/dist/core/core.esm.js +1 -1
  376. package/dist/core/{p-23fb87be.entry.js → p-0558baed.entry.js} +2 -2
  377. package/dist/core/{p-a0c54a50.entry.js → p-0740be66.entry.js} +2 -2
  378. package/dist/core/{p-d0dd9f2c.entry.js → p-0cd21e04.entry.js} +2 -2
  379. package/dist/core/p-0cd21e04.entry.js.map +1 -0
  380. package/dist/core/{p-bb52e752.entry.js → p-1043f3dd.entry.js} +2 -2
  381. package/dist/core/{p-74a3a450.entry.js → p-1843357b.entry.js} +2 -2
  382. package/dist/core/{p-b58fb588.entry.js → p-2251df98.entry.js} +2 -2
  383. package/dist/core/{p-cf87b6db.entry.js → p-2bb815ef.entry.js} +2 -2
  384. package/dist/core/p-308be45e.entry.js +2 -0
  385. package/dist/core/p-308be45e.entry.js.map +1 -0
  386. package/dist/core/p-4b61e92e.entry.js +2 -0
  387. package/dist/core/{p-99b20121.entry.js.map → p-4b61e92e.entry.js.map} +1 -1
  388. package/dist/core/p-56ab6fb7.entry.js +2 -0
  389. package/dist/core/p-56ab6fb7.entry.js.map +1 -0
  390. package/dist/core/{p-fd9ea62a.entry.js → p-75f91c8c.entry.js} +2 -2
  391. package/dist/core/p-77f011e7.entry.js +2 -0
  392. package/dist/core/p-77f011e7.entry.js.map +1 -0
  393. package/dist/core/{p-70ca7796.entry.js → p-85db7e71.entry.js} +2 -2
  394. package/dist/core/{p-ab104baa.entry.js → p-987b08f9.entry.js} +2 -2
  395. package/dist/core/p-98dee727.entry.js.map +1 -1
  396. package/dist/core/{p-85ac0d78.entry.js → p-9b144bed.entry.js} +2 -2
  397. package/dist/core/{p-d1220d2a.entry.js → p-a8d98164.entry.js} +2 -2
  398. package/dist/core/{p-a7c263bd.entry.js → p-ba8799ea.entry.js} +2 -2
  399. package/dist/core/p-ba8799ea.entry.js.map +1 -0
  400. package/dist/core/{p-85232cec.entry.js → p-bf06d022.entry.js} +2 -2
  401. package/dist/core/{p-c41fd2cf.entry.js → p-c0f6f568.entry.js} +2 -2
  402. package/dist/core/p-c391e323.js +2 -0
  403. package/dist/core/{p-271ee0bc.entry.js → p-c75c316b.entry.js} +2 -2
  404. package/dist/core/{p-970e190c.entry.js → p-e0b52a71.entry.js} +2 -2
  405. package/dist/core/{p-3da9774b.entry.js → p-ef91cf17.entry.js} +2 -2
  406. package/dist/core/{p-d7c6fc8d.entry.js → p-f8e5d8f8.entry.js} +2 -2
  407. package/dist/core/{p-6b5edd6b.entry.js → p-f9daecc7.entry.js} +2 -2
  408. package/dist/core/{p-171a19bf.entry.js → p-fdc4376e.entry.js} +2 -2
  409. package/dist/core/p-fdc4376e.entry.js.map +1 -0
  410. package/dist/esm/close-icon-0db44bf2.js +9 -0
  411. package/dist/esm/close-icon-0db44bf2.js.map +1 -0
  412. package/dist/esm/ic-alert.entry.js +1 -1
  413. package/dist/esm/ic-button_3.entry.js.map +1 -1
  414. package/dist/esm/ic-data-list.entry.js +1 -1
  415. package/dist/esm/ic-data-list.entry.js.map +1 -1
  416. package/dist/esm/ic-data-row.entry.js +1 -1
  417. package/dist/esm/ic-data-row.entry.js.map +1 -1
  418. package/dist/esm/ic-dialog.entry.js +1 -1
  419. package/dist/esm/ic-input-component-container_3.entry.js +63 -37
  420. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  421. package/dist/esm/ic-pagination-item.entry.js +1 -1
  422. package/dist/esm/ic-pagination-item.entry.js.map +1 -1
  423. package/dist/esm/ic-pagination_3.entry.js +29 -25
  424. package/dist/esm/ic-pagination_3.entry.js.map +1 -1
  425. package/dist/esm/ic-popover-menu.entry.js +34 -12
  426. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  427. package/dist/esm/ic-search-bar.entry.js +2 -6
  428. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  429. package/dist/esm/ic-section-container.entry.js +2 -2
  430. package/dist/esm/ic-side-navigation.entry.js +1 -1
  431. package/dist/esm/ic-skeleton.entry.js +2 -2
  432. package/dist/esm/ic-skip-link.entry.js +2 -2
  433. package/dist/esm/ic-status-tag.entry.js +2 -2
  434. package/dist/esm/ic-step.entry.js +13 -13
  435. package/dist/esm/ic-stepper.entry.js +2 -2
  436. package/dist/esm/ic-switch.entry.js +4 -4
  437. package/dist/esm/ic-tab-context.entry.js +1 -1
  438. package/dist/esm/ic-tab-group.entry.js +2 -2
  439. package/dist/esm/ic-tab-panel.entry.js +2 -2
  440. package/dist/esm/ic-theme.entry.js +1 -1
  441. package/dist/esm/ic-toast-region.entry.js +1 -1
  442. package/dist/esm/ic-toast.entry.js +6 -6
  443. package/dist/esm/ic-toggle-button-group.entry.js +2 -2
  444. package/dist/esm/ic-toggle-button.entry.js +2 -2
  445. package/dist/types/components/ic-menu/ic-menu.types.d.ts +1 -0
  446. package/dist/types/components/ic-popover-menu/ic-popover-menu.d.ts +4 -0
  447. package/hydrate/index.js +176 -127
  448. package/hydrate/index.mjs +176 -127
  449. package/package.json +10 -9
  450. package/dist/cjs/close-icon-7f6ef8e4.js.map +0 -1
  451. package/dist/collection/assets/clear-icon.svg +0 -3
  452. package/dist/core/p-023cf5d9.entry.js +0 -2
  453. package/dist/core/p-023cf5d9.entry.js.map +0 -1
  454. package/dist/core/p-171a19bf.entry.js.map +0 -1
  455. package/dist/core/p-2424f82f.entry.js +0 -2
  456. package/dist/core/p-2424f82f.entry.js.map +0 -1
  457. package/dist/core/p-343670b4.entry.js +0 -2
  458. package/dist/core/p-343670b4.entry.js.map +0 -1
  459. package/dist/core/p-99b20121.entry.js +0 -2
  460. package/dist/core/p-a7c263bd.entry.js.map +0 -1
  461. package/dist/core/p-d0dd9f2c.entry.js.map +0 -1
  462. package/dist/core/p-f074ef5b.js +0 -2
  463. package/dist/esm/close-icon-539ec8d1.js.map +0 -1
  464. /package/dist/core/{p-23fb87be.entry.js.map → p-0558baed.entry.js.map} +0 -0
  465. /package/dist/core/{p-a0c54a50.entry.js.map → p-0740be66.entry.js.map} +0 -0
  466. /package/dist/core/{p-bb52e752.entry.js.map → p-1043f3dd.entry.js.map} +0 -0
  467. /package/dist/core/{p-74a3a450.entry.js.map → p-1843357b.entry.js.map} +0 -0
  468. /package/dist/core/{p-b58fb588.entry.js.map → p-2251df98.entry.js.map} +0 -0
  469. /package/dist/core/{p-cf87b6db.entry.js.map → p-2bb815ef.entry.js.map} +0 -0
  470. /package/dist/core/{p-fd9ea62a.entry.js.map → p-75f91c8c.entry.js.map} +0 -0
  471. /package/dist/core/{p-70ca7796.entry.js.map → p-85db7e71.entry.js.map} +0 -0
  472. /package/dist/core/{p-ab104baa.entry.js.map → p-987b08f9.entry.js.map} +0 -0
  473. /package/dist/core/{p-85ac0d78.entry.js.map → p-9b144bed.entry.js.map} +0 -0
  474. /package/dist/core/{p-d1220d2a.entry.js.map → p-a8d98164.entry.js.map} +0 -0
  475. /package/dist/core/{p-85232cec.entry.js.map → p-bf06d022.entry.js.map} +0 -0
  476. /package/dist/core/{p-c41fd2cf.entry.js.map → p-c0f6f568.entry.js.map} +0 -0
  477. /package/dist/core/{p-f074ef5b.js.map → p-c391e323.js.map} +0 -0
  478. /package/dist/core/{p-271ee0bc.entry.js.map → p-c75c316b.entry.js.map} +0 -0
  479. /package/dist/core/{p-970e190c.entry.js.map → p-e0b52a71.entry.js.map} +0 -0
  480. /package/dist/core/{p-3da9774b.entry.js.map → p-ef91cf17.entry.js.map} +0 -0
  481. /package/dist/core/{p-d7c6fc8d.entry.js.map → p-f8e5d8f8.entry.js.map} +0 -0
  482. /package/dist/core/{p-6b5edd6b.entry.js.map → p-f9daecc7.entry.js.map} +0 -0
@@ -0,0 +1,107 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import { r as removeDisabledFalse, R as capitalize } from './helpers.js';
3
+ import { d as defineCustomElement$1 } from './ic-typography2.js';
4
+
5
+ const icPaginationItemCss = "/*! 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}a{text-align:center}.item-container{display:flex;justify-content:center;align-items:center;width:calc(var(--ic-space-xl) + var(--ic-space-sm));height:var(--ic-space-xl);margin:var(--ic-space-xxs) var(--ic-space-xxxs);cursor:pointer;text-decoration:none}button{background:none;border:none;outline:inherit;position:relative}.ellipsis{pointer-events:none;--ic-typography-color:var(--ic-pagination-ellipsis)}.monochrome .ellipsis{--ic-typography-color:var(--ic-pagination-ellipsis-monochrome)}.item-container:focus{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast)}.page{--ic-typography-color:var(--ic-pagination-page-number)}.monochrome .page{--ic-typography-color:var(--ic-pagination-page-number-monochrome)}.simple-current{min-width:calc(var(--ic-space-xxl));padding:0 var(--ic-space-xs);height:var(--ic-space-lg);cursor:default}.item-container.page:hover:not(.selected):not(:focus){border-radius:var(--ic-border-radius);background-color:var(--ic-pagination-hover)}.item-container.page:active:not(.selected):not(:focus){background-color:var(--ic-pagination-pressed)}.monochrome .item-container.page:hover:not(.selected):not(:focus){background-color:var(--ic-pagination-hover-monochrome)}.monochrome .item-container.page:active:not(.selected):not(:focus){background-color:var(--ic-pagination-pressed-monochrome)}.selected{pointer-events:none;outline:none}.selected::after{content:\"\";height:var(--ic-space-xxs);width:100%;position:absolute;bottom:0;background-color:var(--ic-pagination-selected-banner)}.monochrome .selected::after{background-color:var(--ic-pagination-selected-banner-monochrome)}.page-selected{--ic-typography-color:var(--ic-pagination-text)}.item-container.page.light:hover:not(.selected):not(:focus){background-color:var(--ic-action-light-bg-hover)}.item-container.page.light:active:not(.selected):not(:focus){background-color:var(--ic-action-light-bg-pressed)}ic-typography.light,ic-typography.page-selected.light{--ic-typography-color:var(--ic-architectural-white)}.selected.light::after{content:\"\";height:var(--ic-space-xxs);width:100%;position:absolute;bottom:0;background-color:var(--ic-action-monochrome)}.item-container.page.dark:hover:not(.selected):not(:focus){background-color:var(--ic-action-dark-bg-hover)}.item-container.page.dark:active:not(.selected):not(:focus){background-color:var(--ic-action-dark-bg-pressed)}ic-typography.dark{--ic-typography-color:var(--ic-color-text-primary)}.selected.dark::after{content:\"\";height:var(--ic-space-xxs);width:100%;position:absolute;bottom:0;background-color:var(--ic-action-monochrome-dark)}.disabled{--ic-typography-color:var(--ic-pagination-text-disabled);pointer-events:none;cursor:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.disabled.page ic-typography{--ic-typography-color:var(--ic-pagination-page-number-disabled)}.disabled.ellipsis{--ic-typography-color:var(--ic-pagination-ellipsis-disabled)}.monochrome .disabled.page{--ic-typography-color:var(--ic-pagination-page-number-monochrome-disabled)}.monochrome .disabled.ellipsis{--ic-typography-color:var(--ic-pagination-ellipsis-monochrome-disabled)}@media (forced-colors: active){.selected::after{background-color:Highlight}.selected.light::after{background-color:Highlight}.selected.dark::after{background-color:Highlight}.disabled{--ic-typography-color:GrayText}}@media (prefers-reduced-motion: reduce){.item-container:focus{transition:none}}";
6
+ const IcPaginationItemStyle0 = icPaginationItemCss;
7
+
8
+ const PaginationItem = /*@__PURE__*/ proxyCustomElement(class PaginationItem extends HTMLElement {
9
+ constructor() {
10
+ super();
11
+ this.__registerHost();
12
+ this.__attachShadow();
13
+ this.paginationItemClick = createEvent(this, "paginationItemClick", 7);
14
+ /**
15
+ * If `true`, the pagination item will be disabled.
16
+ */
17
+ this.disabled = false;
18
+ /**
19
+ * The label for the pagination item (applicable when simple pagination is being used).
20
+ */
21
+ this.label = "Page";
22
+ /**
23
+ * If `true`, the pagination item will display as black in the light theme, and white in dark theme.
24
+ */
25
+ this.monochrome = false;
26
+ /**
27
+ * If `true`, the pagination item will be selected.
28
+ */
29
+ this.selected = false;
30
+ /**
31
+ * 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.
32
+ */
33
+ this.theme = "inherit";
34
+ this.handleClick = () => {
35
+ this.paginationItemClick.emit({ page: this.page || null });
36
+ };
37
+ }
38
+ watchDisabledHandler() {
39
+ removeDisabledFalse(this.disabled, this.el);
40
+ }
41
+ watchLabelHandler() {
42
+ this.capitalizedLabel = capitalize(this.label);
43
+ }
44
+ componentWillLoad() {
45
+ this.watchLabelHandler();
46
+ removeDisabledFalse(this.disabled, this.el);
47
+ }
48
+ render() {
49
+ const { page, selected, type, disabled, label, capitalizedLabel, monochrome, } = this;
50
+ return (h("a", { key: '1ed788f91d47fcaf163a11cf910c9269ca83466c', class: { ["monochrome"]: !!monochrome } }, type === "ellipsis" ? (h("div", { class: {
51
+ ["item-container"]: true,
52
+ ["ellipsis"]: true,
53
+ ["disabled"]: !!disabled,
54
+ } }, h("ic-typography", { variant: "label" }, "..."))) : type === "page" ? (h("button", { disabled: disabled, onClick: this.handleClick, tabindex: selected ? "-1" : "0", role: "button", "aria-current": selected && "page", "aria-label": selected ? `${label}: ${page}` : `Go to ${label} ${page}`, class: {
55
+ ["selected"]: !disabled && selected,
56
+ ["disabled"]: !!disabled,
57
+ ["item-container"]: true,
58
+ ["page"]: type === "page",
59
+ } }, h("ic-typography", { variant: "label", class: {
60
+ ["page-selected"]: selected,
61
+ ["disabled"]: !!disabled,
62
+ } }, page))) : (h("ic-typography", { "aria-live": "polite", class: {
63
+ [`simple-current`]: true,
64
+ ["disabled"]: !!disabled,
65
+ }, variant: "label" }, capitalizedLabel, " ", page))));
66
+ }
67
+ get el() { return this; }
68
+ static get watchers() { return {
69
+ "disabled": ["watchDisabledHandler"],
70
+ "label": ["watchLabelHandler"]
71
+ }; }
72
+ static get style() { return IcPaginationItemStyle0; }
73
+ }, [1, "ic-pagination-item", {
74
+ "disabled": [4],
75
+ "label": [1],
76
+ "monochrome": [4],
77
+ "page": [2],
78
+ "selected": [4],
79
+ "theme": [1],
80
+ "type": [1],
81
+ "capitalizedLabel": [32]
82
+ }, undefined, {
83
+ "disabled": ["watchDisabledHandler"],
84
+ "label": ["watchLabelHandler"]
85
+ }]);
86
+ function defineCustomElement() {
87
+ if (typeof customElements === "undefined") {
88
+ return;
89
+ }
90
+ const components = ["ic-pagination-item", "ic-typography"];
91
+ components.forEach(tagName => { switch (tagName) {
92
+ case "ic-pagination-item":
93
+ if (!customElements.get(tagName)) {
94
+ customElements.define(tagName, PaginationItem);
95
+ }
96
+ break;
97
+ case "ic-typography":
98
+ if (!customElements.get(tagName)) {
99
+ defineCustomElement$1();
100
+ }
101
+ break;
102
+ } });
103
+ }
104
+
105
+ export { PaginationItem as P, defineCustomElement as d };
106
+
107
+ //# sourceMappingURL=ic-pagination-item2.js.map
@@ -0,0 +1 @@
1
+ {"file":"ic-pagination-item2.js","mappings":";;;;AAAA,MAAM,mBAAmB,GAAG,mzLAAmzL,CAAC;AACh1L,+BAAe,mBAAmB;;MCkBrB,cAAc;IAL3B;;;;;;;;QAaU,aAAQ,GAAa,KAAK,CAAC;;;;QAS3B,UAAK,GAAY,MAAM,CAAC;;;;QAUxB,eAAU,GAAa,KAAK,CAAC;;;;QAU7B,aAAQ,GAAY,KAAK,CAAC;;;;QAK1B,UAAK,GAAiB,SAAS,CAAC;QAiBhC,gBAAW,GAAG;YACpB,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC;SAC5D,CAAC;KAmEH;IAtHC,oBAAoB;QAClB,mBAAmB,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;KAC7C;IAQD,iBAAiB;QACf,IAAI,CAAC,gBAAgB,GAAG,UAAU,CAAC,IAAI,CAAC,KAAM,CAAC,CAAC;KACjD;IAgCD,iBAAiB;QACf,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACzB,mBAAmB,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;KAC7C;IAMD,MAAM;QACJ,MAAM,EACJ,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,gBAAgB,EAChB,UAAU,GACX,GAAG,IAAI,CAAC;QAET,QACE,0DAAG,KAAK,EAAE,EAAE,CAAC,YAAY,GAAG,CAAC,CAAC,UAAU,EAAE,IACvC,IAAI,KAAK,UAAU,IAClB,WACE,KAAK,EAAE;gBACL,CAAC,gBAAgB,GAAG,IAAI;gBACxB,CAAC,UAAU,GAAG,IAAI;gBAClB,CAAC,UAAU,GAAG,CAAC,CAAC,QAAQ;aACzB,IAED,qBAAe,OAAO,EAAC,OAAO,UAAoB,CAC9C,IACJ,IAAI,KAAK,MAAM,IACjB,cACE,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,QAAQ,EAAE,QAAQ,GAAG,IAAI,GAAG,GAAG,EAC/B,IAAI,EAAC,QAAQ,kBACC,QAAQ,IAAI,MAAM,gBAE9B,QAAQ,GAAG,GAAG,KAAK,KAAK,IAAI,EAAE,GAAG,SAAS,KAAK,IAAI,IAAI,EAAE,EAE3D,KAAK,EAAE;gBACL,CAAC,UAAU,GAAG,CAAC,QAAQ,IAAI,QAAQ;gBACnC,CAAC,UAAU,GAAG,CAAC,CAAC,QAAQ;gBACxB,CAAC,gBAAgB,GAAG,IAAI;gBACxB,CAAC,MAAM,GAAG,IAAI,KAAK,MAAM;aAC1B,IAED,qBACE,OAAO,EAAC,OAAO,EACf,KAAK,EAAE;gBACL,CAAC,eAAe,GAAG,QAAQ;gBAC3B,CAAC,UAAU,GAAG,CAAC,CAAC,QAAQ;aACzB,IAEA,IAAI,CACS,CACT,KAET,kCACY,QAAQ,EAClB,KAAK,EAAE;gBACL,CAAC,gBAAgB,GAAG,IAAI;gBACxB,CAAC,UAAU,GAAG,CAAC,CAAC,QAAQ;aACzB,EACD,OAAO,EAAC,OAAO,IAEd,gBAAgB,OAAG,IAAI,CACV,CACjB,CACC,EACJ;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/ic-pagination-item/ic-pagination-item.css?tag=ic-pagination-item&encapsulation=shadow","src/components/ic-pagination-item/ic-pagination-item.tsx"],"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\na {\n text-align: center;\n}\n\n.item-container {\n display: flex;\n justify-content: center;\n align-items: center;\n width: calc(var(--ic-space-xl) + var(--ic-space-sm));\n height: var(--ic-space-xl);\n margin: var(--ic-space-xxs) var(--ic-space-xxxs);\n cursor: pointer;\n text-decoration: none;\n}\n\nbutton {\n background: none;\n border: none;\n outline: inherit;\n position: relative;\n}\n\n.ellipsis {\n pointer-events: none;\n\n --ic-typography-color: var(--ic-pagination-ellipsis);\n}\n\n.monochrome .ellipsis {\n --ic-typography-color: var(--ic-pagination-ellipsis-monochrome);\n}\n\n.item-container:focus {\n box-shadow: var(--ic-border-focus);\n outline: var(--ic-hc-focus-outline);\n border-radius: var(--ic-border-radius);\n transition: var(--ic-easing-transition-fast);\n}\n\n.page {\n --ic-typography-color: var(--ic-pagination-page-number);\n}\n\n.monochrome .page {\n --ic-typography-color: var(--ic-pagination-page-number-monochrome);\n}\n\n.simple-current {\n min-width: calc(var(--ic-space-xxl));\n padding: 0 var(--ic-space-xs);\n height: var(--ic-space-lg);\n cursor: default;\n}\n\n/** DEFAULT STATES **/\n.item-container.page:hover:not(.selected):not(:focus) {\n border-radius: var(--ic-border-radius);\n background-color: var(--ic-pagination-hover);\n}\n\n.item-container.page:active:not(.selected):not(:focus) {\n background-color: var(--ic-pagination-pressed);\n}\n\n.monochrome .item-container.page:hover:not(.selected):not(:focus) {\n background-color: var(--ic-pagination-hover-monochrome);\n}\n\n.monochrome .item-container.page:active:not(.selected):not(:focus) {\n background-color: var(--ic-pagination-pressed-monochrome);\n}\n\n.selected {\n pointer-events: none;\n outline: none;\n}\n\n.selected::after {\n content: \"\";\n height: var(--ic-space-xxs);\n width: 100%;\n position: absolute;\n bottom: 0;\n background-color: var(--ic-pagination-selected-banner);\n}\n\n.monochrome .selected::after {\n background-color: var(--ic-pagination-selected-banner-monochrome);\n}\n\n.page-selected {\n --ic-typography-color: var(--ic-pagination-text);\n}\n\n/** LIGHT STATES **/\n.item-container.page.light:hover:not(.selected):not(:focus) {\n background-color: var(--ic-action-light-bg-hover);\n}\n\n.item-container.page.light:active:not(.selected):not(:focus) {\n background-color: var(--ic-action-light-bg-pressed);\n}\n\nic-typography.light,\nic-typography.page-selected.light {\n --ic-typography-color: var(--ic-architectural-white);\n}\n\n.selected.light::after {\n content: \"\";\n height: var(--ic-space-xxs);\n width: 100%;\n position: absolute;\n bottom: 0;\n background-color: var(--ic-action-monochrome);\n}\n\n/** DARK STATES **/\n.item-container.page.dark:hover:not(.selected):not(:focus) {\n background-color: var(--ic-action-dark-bg-hover);\n}\n\n.item-container.page.dark:active:not(.selected):not(:focus) {\n background-color: var(--ic-action-dark-bg-pressed);\n}\n\nic-typography.dark {\n --ic-typography-color: var(--ic-color-text-primary);\n}\n\n.selected.dark::after {\n content: \"\";\n height: var(--ic-space-xxs);\n width: 100%;\n position: absolute;\n bottom: 0;\n background-color: var(--ic-action-monochrome-dark);\n}\n\n.disabled {\n --ic-typography-color: var(--ic-pagination-text-disabled);\n\n pointer-events: none;\n cursor: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n.disabled.page ic-typography {\n --ic-typography-color: var(--ic-pagination-page-number-disabled);\n}\n\n.disabled.ellipsis {\n --ic-typography-color: var(--ic-pagination-ellipsis-disabled);\n}\n\n.monochrome .disabled.page {\n --ic-typography-color: var(--ic-pagination-page-number-monochrome-disabled);\n}\n\n.monochrome .disabled.ellipsis {\n --ic-typography-color: var(--ic-pagination-ellipsis-monochrome-disabled);\n}\n\n@media (forced-colors: active) {\n .selected::after {\n background-color: Highlight;\n }\n\n .selected.light::after {\n background-color: Highlight;\n }\n\n .selected.dark::after {\n background-color: Highlight;\n }\n\n .disabled {\n --ic-typography-color: GrayText;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .item-container:focus {\n transition: none;\n }\n}\n","import {\n Component,\n Prop,\n State,\n Element,\n h,\n Event,\n EventEmitter,\n Watch,\n} from \"@stencil/core\";\nimport { IcPaginationItemType } from \"./ic-pagination-item.types\";\nimport { IcThemeMode } from \"../../utils/types\";\nimport { removeDisabledFalse, capitalize } from \"../../utils/helpers\";\n\n@Component({\n tag: \"ic-pagination-item\",\n styleUrl: \"ic-pagination-item.css\",\n shadow: true,\n})\nexport class PaginationItem {\n @Element() el: HTMLIcPaginationItemElement;\n\n @State() capitalizedLabel: string;\n\n /**\n * If `true`, the pagination item will be disabled.\n */\n @Prop() disabled?: boolean = false;\n @Watch(\"disabled\")\n watchDisabledHandler(): void {\n removeDisabledFalse(this.disabled, this.el);\n }\n\n /**\n * The label for the pagination item (applicable when simple pagination is being used).\n */\n @Prop() label?: string = \"Page\";\n\n @Watch(\"label\")\n watchLabelHandler(): void {\n this.capitalizedLabel = capitalize(this.label!);\n }\n\n /**\n * If `true`, the pagination item will display as black in the light theme, and white in dark theme.\n */\n @Prop() monochrome?: boolean = false;\n\n /**\n * The current page number.\n */\n @Prop() page?: number;\n\n /**\n * If `true`, the pagination item will be selected.\n */\n @Prop() selected: boolean = false;\n\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 @Prop() theme?: IcThemeMode = \"inherit\";\n\n /**\n * The type of pagination item - 'page' or 'ellipsis'.\n */\n @Prop() type: IcPaginationItemType;\n\n /**\n * @internal - Emitted when a pagination item is clicked.\n */\n @Event() paginationItemClick: EventEmitter<{ page: number | null }>;\n\n componentWillLoad(): void {\n this.watchLabelHandler();\n removeDisabledFalse(this.disabled, this.el);\n }\n\n private handleClick = () => {\n this.paginationItemClick.emit({ page: this.page || null });\n };\n\n render() {\n const {\n page,\n selected,\n type,\n disabled,\n label,\n capitalizedLabel,\n monochrome,\n } = this;\n\n return (\n <a class={{ [\"monochrome\"]: !!monochrome }}>\n {type === \"ellipsis\" ? (\n <div\n class={{\n [\"item-container\"]: true,\n [\"ellipsis\"]: true,\n [\"disabled\"]: !!disabled,\n }}\n >\n <ic-typography variant=\"label\">...</ic-typography>\n </div>\n ) : type === \"page\" ? (\n <button\n disabled={disabled}\n onClick={this.handleClick}\n tabindex={selected ? \"-1\" : \"0\"}\n role=\"button\"\n aria-current={selected && \"page\"}\n aria-label={\n selected ? `${label}: ${page}` : `Go to ${label} ${page}`\n }\n class={{\n [\"selected\"]: !disabled && selected,\n [\"disabled\"]: !!disabled,\n [\"item-container\"]: true,\n [\"page\"]: type === \"page\",\n }}\n >\n <ic-typography\n variant=\"label\"\n class={{\n [\"page-selected\"]: selected,\n [\"disabled\"]: !!disabled,\n }}\n >\n {page}\n </ic-typography>\n </button>\n ) : (\n <ic-typography\n aria-live=\"polite\"\n class={{\n [`simple-current`]: true,\n [\"disabled\"]: !!disabled,\n }}\n variant=\"label\"\n >\n {capitalizedLabel} {page}\n </ic-typography>\n )}\n </a>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface IcPagination extends Components.IcPagination, HTMLElement {}
4
+ export const IcPagination: {
5
+ prototype: IcPagination;
6
+ new (): IcPagination;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,8 @@
1
+ import { P as Pagination, d as defineCustomElement$1 } from './ic-pagination2.js';
2
+
3
+ const IcPagination = Pagination;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { IcPagination, defineCustomElement };
7
+
8
+ //# sourceMappingURL=ic-pagination.js.map
@@ -0,0 +1 @@
1
+ {"file":"ic-pagination.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -0,0 +1,383 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { r as removeDisabledFalse, o as onComponentRequiredPropUndefined } from './helpers.js';
3
+ import { d as defineCustomElement$5 } from './ic-button2.js';
4
+ import { d as defineCustomElement$4 } from './ic-loading-indicator2.js';
5
+ import { d as defineCustomElement$3 } from './ic-pagination-item2.js';
6
+ import { d as defineCustomElement$2 } from './ic-tooltip2.js';
7
+ import { d as defineCustomElement$1 } from './ic-typography2.js';
8
+
9
+ const paginationNextPrevious = `<svg width="8" height="10" viewBox="0 0 8 10" fill="none" xmlns="http://www.w3.org/2000/svg">
10
+ <path d="M2.08748 0L0.912476 1.175L4.72914 5L0.912476 8.825L2.08748 10L7.08748 5L2.08748 0Z" fill="currentColor"/>
11
+ </svg>
12
+ `;
13
+
14
+ const paginationFirstLast = `<svg width="12" height="10" viewBox="0 0 12 10" fill="none" xmlns="http://www.w3.org/2000/svg">
15
+ <path d="M11.1709 8.825L7.34589 5L11.1709 1.175L9.99589 0L4.99589 5L9.99589 10L11.1709 8.825ZM0.829224 0H2.49589V10H0.829224V0Z" fill="currentColour"/>
16
+ </svg>`;
17
+
18
+ const icPaginationCss = "/*! 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{box-sizing:border-box;width:100%;display:flex;justify-content:center}nav{width:100%;display:flex;flex-flow:row wrap;justify-content:flex-start;align-items:center}ic-button{cursor:pointer}ic-button.next-previous{--icon-width:var(--ic-space-xs);--icon-height:calc(var(--ic-space-xs) + var(--ic-space-xxxs));padding:0 var(--ic-space-xxs) 0 var(--ic-space-xxxs)}ic-button.first-last{--icon-width:calc(var(--ic-space-sm) + var(--ic-space-xxxs));--icon-height:calc(var(--ic-space-xs) + var(--ic-space-xxxs))}ic-button.first-last::part(button),ic-button.next-previous::part(button){color:var(--ic-pagination-chevron)}:host(.ic-pagination-monochrome) ic-button.first-last::part(button),:host(.ic-pagination-monochrome) ic-button.next-previous::part(button){color:var(--ic-pagination-chevron-monochrome)}ic-button.ic-button-disabled.first-last::part(button),ic-button.ic-button-disabled.next-previous::part(button),:host(.ic-pagination-monochrome) ic-button.ic-button-disabled.first-last::part(button),:host(.ic-pagination-monochrome) ic-button.ic-button-disabled.next-previous::part(button){color:var(--ic-pagination-chevron-disabled)}.disabled{color:var(--ic-color-text-disabled-mid);pointer-events:none;cursor:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.hide-current-page{display:none}.sr-only{position:absolute;left:-9999px}.sr-only:dir(rtl){right:-9999px}";
19
+ const IcPaginationStyle0 = icPaginationCss;
20
+
21
+ const Pagination = /*@__PURE__*/ proxyCustomElement(class Pagination extends HTMLElement {
22
+ constructor() {
23
+ super();
24
+ this.__registerHost();
25
+ this.__attachShadow();
26
+ this.icPageChange = createEvent(this, "icPageChange", 7);
27
+ this.endEllipsis = false;
28
+ this.endItems = [];
29
+ this.midItems = [];
30
+ this.startEllipsis = false;
31
+ this.startItems = [];
32
+ /**
33
+ * The accessible label of the pagination component to provide context for screen reader users.
34
+ */
35
+ this.accessibleLabel = "Pagination Navigation";
36
+ /**
37
+ * The number of pages displayed adjacent to the current page when using 'complex' type pagination. Accepted values are 0, 1 & 2.
38
+ */
39
+ this.adjacentPageCount = 1;
40
+ /**
41
+ * The number of pages displayed as boundary items to the current page when using 'complex' type pagination. Accepted values are 0, 1 & 2.
42
+ */
43
+ this.boundaryPageCount = 1;
44
+ /**
45
+ * The default page to display.
46
+ */
47
+ this.defaultPage = 1;
48
+ /**
49
+ * If `true`, the pagination will not allow interaction.
50
+ */
51
+ this.disabled = false;
52
+ /**
53
+ * If `true`, the current page of the simple pagination will not be displayed.
54
+ */
55
+ this.hideCurrentPage = false;
56
+ /**
57
+ * If `true`, the first and last page buttons will not be displayed.
58
+ */
59
+ this.hideFirstAndLastPageButton = false;
60
+ /**
61
+ * The label for the pagination item (applicable when simple pagination is being used).
62
+ */
63
+ this.label = "Page";
64
+ /**
65
+ * If `true`, the pagination will display as black in the light theme, and white in dark theme.
66
+ */
67
+ this.monochrome = false;
68
+ /**
69
+ * 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.
70
+ */
71
+ this.theme = "inherit";
72
+ /**
73
+ * The type of pagination to be used.
74
+ */
75
+ this.type = "simple";
76
+ /**
77
+ * The current page displayed by the pagination.
78
+ */
79
+ this.currentPage = this.defaultPage;
80
+ this.handleClickFirst = () => {
81
+ this.currentPage = 1;
82
+ this.icPageChange.emit({ value: this.currentPage });
83
+ };
84
+ this.handleClickPrevious = () => {
85
+ this.currentPage--;
86
+ this.icPageChange.emit({ value: this.currentPage });
87
+ };
88
+ this.handleClickNext = () => {
89
+ this.currentPage++;
90
+ this.icPageChange.emit({ value: this.currentPage });
91
+ };
92
+ this.handleClickLast = () => {
93
+ this.currentPage = this.pages;
94
+ this.icPageChange.emit({ value: this.currentPage });
95
+ };
96
+ // button rendering abstracted from component render methods for clarity
97
+ this.firstButton = () => {
98
+ var _a;
99
+ return (h("ic-button", { id: "first-page-button", "aria-label": `Go to first ${(_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()}`, theme: this.theme, onClick: this.handleClickFirst, class: "page-button first-last", disabled: this.currentPage === 1 || this.disabled, variant: "icon-tertiary", monochrome: this.theme == "light" || this.theme == "dark", innerHTML: paginationFirstLast }));
100
+ };
101
+ this.previousButton = () => {
102
+ var _a;
103
+ return (h("ic-button", { id: "previous-page-button", "aria-label": `Go to previous ${(_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()}`, theme: this.theme, onClick: this.handleClickPrevious, class: "page-button next-previous flip", disabled: this.currentPage === 1 || this.disabled, variant: "icon-tertiary", monochrome: this.theme == "light" || this.theme == "dark", innerHTML: paginationNextPrevious }));
104
+ };
105
+ this.nextButton = () => {
106
+ var _a;
107
+ return (h("ic-button", { id: "next-page-button", "aria-label": `Go to next ${(_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()}`, theme: this.theme, onClick: this.handleClickNext, class: "page-button next-previous", disabled: this.currentPage === this.pages || this.disabled, variant: "icon-tertiary", monochrome: this.theme == "light" || this.theme == "dark", innerHTML: paginationNextPrevious }));
108
+ };
109
+ this.lastButton = () => {
110
+ var _a;
111
+ return (h("ic-button", { id: "last-page-button", "aria-label": `Go to last ${(_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()}`, theme: this.theme, onClick: this.handleClickLast, class: "page-button first-last flip", disabled: this.currentPage === this.pages || this.disabled, variant: "icon-tertiary", monochrome: this.theme == "light" || this.theme == "dark", innerHTML: paginationFirstLast }));
112
+ };
113
+ this.renderStartEllipsis = () => {
114
+ return (h("ic-pagination-item", { theme: this.theme, monochrome: this.monochrome, type: "ellipsis", id: "start-ellipsis", disabled: this.disabled }));
115
+ };
116
+ this.renderEndEllipsis = () => {
117
+ return (h("ic-pagination-item", { theme: this.theme, monochrome: this.monochrome, type: "ellipsis", id: "end-ellipsis", disabled: this.disabled }));
118
+ };
119
+ this.renderStartItems = () => {
120
+ return this.startItems.map((page) => {
121
+ return (h("ic-pagination-item", { theme: this.theme, monochrome: this.monochrome, selected: page === this.currentPage, id: `pagination-item-${page}`, type: "page", page: page, disabled: this.disabled }));
122
+ });
123
+ };
124
+ this.renderEndItems = () => {
125
+ return this.endItems.map((page) => {
126
+ return (h("ic-pagination-item", { theme: this.theme, monochrome: this.monochrome, selected: page === this.currentPage, id: `pagination-item-${page}`, type: "page", page: page, disabled: this.disabled }));
127
+ });
128
+ };
129
+ this.renderMiddleItems = () => {
130
+ return this.midItems.map((page) => {
131
+ return (h("ic-pagination-item", { theme: this.theme, monochrome: this.monochrome, selected: page === this.currentPage, id: `pagination-item-${page}`, type: "page", page: page, disabled: this.disabled }));
132
+ });
133
+ };
134
+ }
135
+ watchAdjacentPageCountHandler() {
136
+ if (this.adjacentPageCount > 2) {
137
+ this.adjacentPageCount = 2;
138
+ }
139
+ }
140
+ watchBoundaryPageCountHandler() {
141
+ if (this.boundaryPageCount > 2) {
142
+ this.boundaryPageCount = 2;
143
+ }
144
+ }
145
+ watchDisabledHandler() {
146
+ removeDisabledFalse(this.disabled, this.el);
147
+ }
148
+ watchNumberPagesHandler() {
149
+ this.watchPageChangeHandler();
150
+ }
151
+ watchTypeHandler() {
152
+ this.watchPageChangeHandler();
153
+ }
154
+ watchPageChangeHandler() {
155
+ if (this.type === "simple") {
156
+ return;
157
+ }
158
+ this.startEllipsis = false;
159
+ this.endEllipsis = false;
160
+ this.startItems = [];
161
+ this.endItems = [];
162
+ this.midItems = [];
163
+ const startItems = [];
164
+ let startItemCount = 0;
165
+ const endItems = [];
166
+ let endStart = this.pages;
167
+ const midItems = [];
168
+ let midStart;
169
+ let midEnd;
170
+ let startEllipsis = false;
171
+ let endEllipsis = false;
172
+ if (this.pages <=
173
+ this.boundaryPageCount * 2 + this.adjacentPageCount * 2 + 3) {
174
+ this.startEllipsis = false;
175
+ this.endEllipsis = false;
176
+ for (let i = 1; i <= this.pages; i++) {
177
+ startItems.push(i);
178
+ }
179
+ this.startItems = startItems;
180
+ return;
181
+ }
182
+ startItemCount = this.boundaryPageCount === 0 ? 1 : this.boundaryPageCount;
183
+ endStart =
184
+ this.boundaryPageCount === 0
185
+ ? this.pages
186
+ : this.pages - this.boundaryPageCount + 1;
187
+ if (this.currentPage <=
188
+ this.adjacentPageCount + this.boundaryPageCount + 2) {
189
+ startEllipsis = false;
190
+ endEllipsis = true;
191
+ let numItems = 2 * this.adjacentPageCount + 1;
192
+ if (this.boundaryPageCount === 0) {
193
+ numItems--;
194
+ }
195
+ midStart = startItemCount + 1;
196
+ midEnd = midStart + numItems;
197
+ }
198
+ else {
199
+ startEllipsis = true;
200
+ if (this.currentPage >
201
+ this.pages - (this.adjacentPageCount + this.boundaryPageCount + 2)) {
202
+ let numItems = 2 * this.adjacentPageCount + 1;
203
+ if (this.boundaryPageCount === 0) {
204
+ numItems--;
205
+ }
206
+ midEnd =
207
+ this.boundaryPageCount === 0
208
+ ? this.pages - 1
209
+ : this.pages - this.boundaryPageCount;
210
+ midStart = midEnd - numItems;
211
+ }
212
+ else {
213
+ endEllipsis = true;
214
+ midStart = this.currentPage - this.adjacentPageCount;
215
+ midEnd = this.currentPage + this.adjacentPageCount;
216
+ }
217
+ }
218
+ //create array of start items
219
+ if (this.boundaryPageCount > 0 ||
220
+ (this.boundaryPageCount === 0 && startEllipsis === false)) {
221
+ for (let i = 1; i <= startItemCount; i++) {
222
+ startItems.push(i);
223
+ }
224
+ }
225
+ //create array of end items
226
+ if (this.boundaryPageCount > 0 ||
227
+ (this.boundaryPageCount === 0 && endEllipsis === false)) {
228
+ for (let i = endStart; i <= this.pages; i++) {
229
+ endItems.push(i);
230
+ }
231
+ }
232
+ //create array of mid items
233
+ for (let i = midStart; i <= midEnd; i++) {
234
+ midItems.push(i);
235
+ }
236
+ this.startEllipsis = startEllipsis;
237
+ this.endEllipsis = endEllipsis;
238
+ this.startItems = startItems;
239
+ this.endItems = endItems;
240
+ this.midItems = midItems;
241
+ }
242
+ componentWillLoad() {
243
+ this.watchPageChangeHandler();
244
+ this.watchBoundaryPageCountHandler();
245
+ this.watchAdjacentPageCountHandler();
246
+ removeDisabledFalse(this.disabled, this.el);
247
+ }
248
+ componentDidLoad() {
249
+ onComponentRequiredPropUndefined([{ prop: this.pages, propName: "pages" }], "Pagination");
250
+ }
251
+ /**
252
+ * Prevents focus lingering on a disabled element. If the currently
253
+ * focused element is one of the back buttons (and we reach the first page),
254
+ * move focus to "next" button, and vice versa.
255
+ * @param ev
256
+ */
257
+ icPageChangeHandler(ev) {
258
+ var _a, _b, _c;
259
+ const shadow = (_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.shadowRoot;
260
+ const activeEl = shadow ? shadow.activeElement : document.activeElement;
261
+ if (!shadow || !activeEl) {
262
+ return;
263
+ }
264
+ if (ev.detail.value === 1 &&
265
+ ["first-page-button", "previous-page-button"].some((id) => id === (activeEl === null || activeEl === void 0 ? void 0 : activeEl.id))) {
266
+ const btn = (_b = shadow.querySelector("#next-page-button").shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector("button");
267
+ // When navigating from firstPage->lastPage or vice versa, the to-be-selected element will be disabled. wait a tick so that it can receive focus.
268
+ setTimeout(() => btn === null || btn === void 0 ? void 0 : btn.focus(), 10);
269
+ }
270
+ else if (ev.detail.value === this.pages &&
271
+ ["last-page-button", "next-page-button"].some((id) => id === (activeEl === null || activeEl === void 0 ? void 0 : activeEl.id))) {
272
+ const btn = (_c = shadow.querySelector("#previous-page-button").shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector("button");
273
+ setTimeout(() => btn === null || btn === void 0 ? void 0 : btn.focus(), 10);
274
+ }
275
+ }
276
+ paginationItemClickHandler(ev) {
277
+ const page = ev.detail.page;
278
+ this.currentPage = page;
279
+ this.icPageChange.emit({ value: this.currentPage });
280
+ }
281
+ /**
282
+ * Sets the currently displayed page.
283
+ * @param {number} page The page number to set as the current page
284
+ */
285
+ async setCurrentPage(page) {
286
+ if (typeof page === "number" && page > 0 && page <= this.pages) {
287
+ this.currentPage = page;
288
+ }
289
+ else {
290
+ console.error("Current page must be a number greater than zero but less than or equal to the total number of pages");
291
+ }
292
+ }
293
+ render() {
294
+ const { type, currentPage, hideCurrentPage, disabled, hideFirstAndLastPageButton, label, theme, monochrome, } = this;
295
+ return (h(Host, { key: '17e45e030ef6620c592d73a21d9b6dded9978565', class: {
296
+ [`ic-theme-${theme}`]: theme !== "inherit",
297
+ ["ic-pagination-monochrome"]: !!monochrome,
298
+ } }, type === "simple" && (h("nav", { key: 'a42e658ed8d67797390d5d256786f9abaa258ede', class: {
299
+ ["disabled"]: !!disabled,
300
+ }, role: "navigation", "aria-label": this.accessibleLabel }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), h("ic-pagination-item", { key: 'ce42e8e0c6c0227554cb17c83a1b36f688112a01', theme: this.theme, monochrome: this.monochrome, type: "simple-current", page: currentPage, label: label, class: { ["hide-current-page"]: !!hideCurrentPage }, disabled: disabled }), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (h("nav", { key: '5b2c3a6da6dfde3eb51594a47f617bb7cc2fdcdb', class: {
301
+ ["disabled"]: !!disabled,
302
+ }, role: "navigation", "aria-label": this.accessibleLabel }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), this.renderStartItems(), this.startEllipsis && this.renderStartEllipsis(), this.renderMiddleItems(), this.endEllipsis && this.renderEndEllipsis(), this.renderEndItems(), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (h("span", { key: 'fe85a33cfa0b3d2e2d556f15e6ade209dd0099eb', class: "sr-only", "aria-live": "polite" }, "Page ", this.currentPage))));
303
+ }
304
+ get el() { return this; }
305
+ static get watchers() { return {
306
+ "adjacentPageCount": ["watchAdjacentPageCountHandler"],
307
+ "boundaryPageCount": ["watchBoundaryPageCountHandler"],
308
+ "disabled": ["watchDisabledHandler"],
309
+ "pages": ["watchNumberPagesHandler"],
310
+ "type": ["watchTypeHandler"],
311
+ "currentPage": ["watchPageChangeHandler"]
312
+ }; }
313
+ static get style() { return IcPaginationStyle0; }
314
+ }, [1, "ic-pagination", {
315
+ "accessibleLabel": [1, "accessible-label"],
316
+ "adjacentPageCount": [1026, "adjacent-page-count"],
317
+ "boundaryPageCount": [1026, "boundary-page-count"],
318
+ "defaultPage": [2, "default-page"],
319
+ "disabled": [4],
320
+ "hideCurrentPage": [4, "hide-current-page"],
321
+ "hideFirstAndLastPageButton": [4, "hide-first-and-last-page-button"],
322
+ "label": [1],
323
+ "monochrome": [4],
324
+ "pages": [2],
325
+ "theme": [1],
326
+ "type": [1],
327
+ "currentPage": [1026, "current-page"],
328
+ "endEllipsis": [32],
329
+ "endItems": [32],
330
+ "midItems": [32],
331
+ "startEllipsis": [32],
332
+ "startItems": [32],
333
+ "setCurrentPage": [64]
334
+ }, [[0, "icPageChange", "icPageChangeHandler"], [0, "paginationItemClick", "paginationItemClickHandler"]], {
335
+ "adjacentPageCount": ["watchAdjacentPageCountHandler"],
336
+ "boundaryPageCount": ["watchBoundaryPageCountHandler"],
337
+ "disabled": ["watchDisabledHandler"],
338
+ "pages": ["watchNumberPagesHandler"],
339
+ "type": ["watchTypeHandler"],
340
+ "currentPage": ["watchPageChangeHandler"]
341
+ }]);
342
+ function defineCustomElement() {
343
+ if (typeof customElements === "undefined") {
344
+ return;
345
+ }
346
+ const components = ["ic-pagination", "ic-button", "ic-loading-indicator", "ic-pagination-item", "ic-tooltip", "ic-typography"];
347
+ components.forEach(tagName => { switch (tagName) {
348
+ case "ic-pagination":
349
+ if (!customElements.get(tagName)) {
350
+ customElements.define(tagName, Pagination);
351
+ }
352
+ break;
353
+ case "ic-button":
354
+ if (!customElements.get(tagName)) {
355
+ defineCustomElement$5();
356
+ }
357
+ break;
358
+ case "ic-loading-indicator":
359
+ if (!customElements.get(tagName)) {
360
+ defineCustomElement$4();
361
+ }
362
+ break;
363
+ case "ic-pagination-item":
364
+ if (!customElements.get(tagName)) {
365
+ defineCustomElement$3();
366
+ }
367
+ break;
368
+ case "ic-tooltip":
369
+ if (!customElements.get(tagName)) {
370
+ defineCustomElement$2();
371
+ }
372
+ break;
373
+ case "ic-typography":
374
+ if (!customElements.get(tagName)) {
375
+ defineCustomElement$1();
376
+ }
377
+ break;
378
+ } });
379
+ }
380
+
381
+ export { Pagination as P, defineCustomElement as d };
382
+
383
+ //# sourceMappingURL=ic-pagination2.js.map