genesys-spark-components 3.1.3-beta.7 → 3.3.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 (313) hide show
  1. package/CHANGELOG.md +33 -10
  2. package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
  3. package/dist/cjs/gux-accordion-legacy.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-action-button-legacy.cjs.entry.js +2 -2
  6. package/dist/cjs/gux-action-button.cjs.entry.js +2 -2
  7. package/dist/cjs/gux-action-list-legacy.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-action-toast.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-advanced-dropdown.cjs.entry.js +2 -2
  10. package/dist/cjs/gux-all-row-select.cjs.entry.js +2 -2
  11. package/dist/cjs/gux-badge-beta.cjs.entry.js +2 -2
  12. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +2 -2
  13. package/dist/cjs/gux-button-multi-legacy.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-button-slot-beta.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-button.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-calendar.cjs.entry.js +2 -2
  18. package/dist/cjs/gux-card-beta.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +133 -0
  24. package/dist/cjs/gux-command-palette-legacy.cjs.entry.js +2 -2
  25. package/dist/cjs/gux-content-search.cjs.entry.js +2 -2
  26. package/dist/cjs/gux-datepicker.cjs.entry.js +2 -2
  27. package/dist/cjs/gux-disclosure-button.cjs.entry.js +2 -2
  28. package/dist/cjs/gux-dismiss-button.cjs.entry.js +2 -2
  29. package/dist/cjs/gux-dropdown-legacy.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-dropdown_3.cjs.entry.js +2 -2
  31. package/dist/cjs/gux-error-message-beta.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-flyout-menu-beta.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +2 -2
  36. package/dist/cjs/gux-form-field-legacy.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-form-field-number.cjs.entry.js +2 -2
  38. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-input-checkbox_7.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-input-search.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-input-text-like.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-list-item-legacy_2.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-notification-toast.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-pagination-beta.cjs.entry.js +115 -0
  54. package/dist/cjs/gux-pagination-buttons-beta_3.cjs.entry.js +258 -0
  55. package/dist/cjs/gux-pagination-buttons_3.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +2 -2
  57. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-panel-frame-legacy.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-popover.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-radial-loading.cjs.entry.js +2 -2
  62. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-row-select.cjs.entry.js +2 -2
  65. package/dist/cjs/gux-side-panel-legacy.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-simple-toast.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-switch.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-tab-advanced-list.cjs.entry.js +2 -2
  69. package/dist/cjs/gux-tab-advanced.cjs.entry.js +2 -2
  70. package/dist/cjs/gux-tab-list.cjs.entry.js +2 -2
  71. package/dist/cjs/gux-tab.cjs.entry.js +2 -0
  72. package/dist/cjs/gux-table-beta.cjs.entry.js +2 -2
  73. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-tabs-legacy.cjs.entry.js +2 -2
  75. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-tag-beta.cjs.entry.js +2 -2
  77. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-text-label-legacy.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-time-picker-beta.cjs.entry.js +2 -2
  80. package/dist/cjs/gux-toggle.cjs.entry.js +2 -2
  81. package/dist/cjs/gux-tooltip_2.cjs.entry.js +3 -1
  82. package/dist/cjs/gux-visualization-beta.cjs.entry.js +2 -2
  83. package/dist/cjs/{index-608364a8.js → index-2202ad01.js} +5 -8
  84. package/dist/cjs/loader.cjs.js +1 -1
  85. package/dist/cjs/{usage-tracking-b1c3321a.js → usage-tracking-53d21391.js} +3 -1
  86. package/dist/collection/collection-manifest.json +5 -0
  87. package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.css +4 -0
  88. package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.js +344 -0
  89. package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-beta.css +39 -0
  90. package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-beta.js +225 -0
  91. package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-beta.types.js +1 -0
  92. package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-button-beta.service.js +91 -0
  93. package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-buttons-beta.css +77 -0
  94. package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-buttons-beta.js +154 -0
  95. package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-item-counts-beta/gux-pagination-item-counts-beta.css +9 -0
  96. package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-item-counts-beta/gux-pagination-item-counts-beta.js +102 -0
  97. package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-items-per-page-beta/gux-pagination-items-per-page-beta.css +25 -0
  98. package/dist/collection/components/beta/gux-pagination-beta/gux-pagination-items-per-page-beta/gux-pagination-items-per-page-beta.js +85 -0
  99. package/dist/collection/components/beta/gux-table/gux-all-row-select/gux-all-row-select.js +1 -1
  100. package/dist/collection/components/beta/gux-table/gux-row-select/gux-row-select.js +1 -1
  101. package/dist/collection/components/stable/gux-tabs/gux-tab/gux-tab.js +2 -0
  102. package/dist/collection/components/stable/gux-tabs/gux-tab-list/gux-tab-list.js +1 -1
  103. package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced/gux-tab-advanced.js +1 -1
  104. package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-list/gux-tab-advanced-list.js +1 -1
  105. package/dist/collection/components/stable/gux-tooltip-title/gux-tooltip-title.js +2 -0
  106. package/dist/collection/i18n/index.js +5 -8
  107. package/dist/deploy-info.json +9 -0
  108. package/dist/esm/genesys-webcomponents.js +1 -1
  109. package/dist/esm/gux-accordion-legacy.entry.js +1 -1
  110. package/dist/esm/gux-accordion.entry.js +1 -1
  111. package/dist/esm/gux-action-button-legacy.entry.js +2 -2
  112. package/dist/esm/gux-action-button.entry.js +2 -2
  113. package/dist/esm/gux-action-list-legacy.entry.js +1 -1
  114. package/dist/esm/gux-action-toast.entry.js +1 -1
  115. package/dist/esm/gux-advanced-dropdown.entry.js +2 -2
  116. package/dist/esm/gux-all-row-select.entry.js +2 -2
  117. package/dist/esm/gux-badge-beta.entry.js +2 -2
  118. package/dist/esm/gux-breadcrumbs.entry.js +2 -2
  119. package/dist/esm/gux-button-multi-legacy.entry.js +1 -1
  120. package/dist/esm/gux-button-multi.entry.js +1 -1
  121. package/dist/esm/gux-button-slot-beta.entry.js +1 -1
  122. package/dist/esm/gux-button.entry.js +1 -1
  123. package/dist/esm/gux-calendar.entry.js +2 -2
  124. package/dist/esm/gux-card-beta.entry.js +1 -1
  125. package/dist/esm/gux-chart-column-beta.entry.js +1 -1
  126. package/dist/esm/gux-chart-donut-beta.entry.js +1 -1
  127. package/dist/esm/gux-chart-line-beta.entry.js +1 -1
  128. package/dist/esm/gux-chart-pie-beta.entry.js +1 -1
  129. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +129 -0
  130. package/dist/esm/gux-command-palette-legacy.entry.js +2 -2
  131. package/dist/esm/gux-content-search.entry.js +2 -2
  132. package/dist/esm/gux-datepicker.entry.js +2 -2
  133. package/dist/esm/gux-disclosure-button.entry.js +2 -2
  134. package/dist/esm/gux-dismiss-button.entry.js +2 -2
  135. package/dist/esm/gux-dropdown-legacy.entry.js +1 -1
  136. package/dist/esm/gux-dropdown_3.entry.js +2 -2
  137. package/dist/esm/gux-error-message-beta.entry.js +1 -1
  138. package/dist/esm/gux-flyout-menu-beta.entry.js +1 -1
  139. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  140. package/dist/esm/gux-form-field-color.entry.js +1 -1
  141. package/dist/esm/gux-form-field-input-clear-button.entry.js +2 -2
  142. package/dist/esm/gux-form-field-legacy.entry.js +1 -1
  143. package/dist/esm/gux-form-field-number.entry.js +2 -2
  144. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  145. package/dist/esm/gux-form-field-range.entry.js +1 -1
  146. package/dist/esm/gux-form-field-search.entry.js +1 -1
  147. package/dist/esm/gux-form-field-select.entry.js +1 -1
  148. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  149. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  150. package/dist/esm/gux-icon.entry.js +1 -1
  151. package/dist/esm/gux-input-checkbox_7.entry.js +1 -1
  152. package/dist/esm/gux-input-search.entry.js +1 -1
  153. package/dist/esm/gux-input-text-like.entry.js +1 -1
  154. package/dist/esm/gux-list-item-legacy_2.entry.js +1 -1
  155. package/dist/esm/gux-list.entry.js +1 -1
  156. package/dist/esm/gux-modal.entry.js +1 -1
  157. package/dist/esm/gux-notification-toast.entry.js +1 -1
  158. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  159. package/dist/esm/gux-pagination-beta.entry.js +111 -0
  160. package/dist/esm/gux-pagination-buttons-beta_3.entry.js +252 -0
  161. package/dist/esm/gux-pagination-buttons_3.entry.js +1 -1
  162. package/dist/esm/gux-pagination-cursor.entry.js +2 -2
  163. package/dist/esm/gux-pagination.entry.js +1 -1
  164. package/dist/esm/gux-panel-frame-legacy.entry.js +1 -1
  165. package/dist/esm/gux-popover-list.entry.js +1 -1
  166. package/dist/esm/gux-popover.entry.js +1 -1
  167. package/dist/esm/gux-radial-loading.entry.js +2 -2
  168. package/dist/esm/gux-radial-progress.entry.js +1 -1
  169. package/dist/esm/gux-rating.entry.js +1 -1
  170. package/dist/esm/gux-row-select.entry.js +2 -2
  171. package/dist/esm/gux-side-panel-legacy.entry.js +1 -1
  172. package/dist/esm/gux-simple-toast.entry.js +1 -1
  173. package/dist/esm/gux-switch.entry.js +1 -1
  174. package/dist/esm/gux-tab-advanced-list.entry.js +2 -2
  175. package/dist/esm/gux-tab-advanced.entry.js +2 -2
  176. package/dist/esm/gux-tab-list.entry.js +2 -2
  177. package/dist/esm/gux-tab.entry.js +2 -0
  178. package/dist/esm/gux-table-beta.entry.js +2 -2
  179. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  180. package/dist/esm/gux-tabs-legacy.entry.js +2 -2
  181. package/dist/esm/gux-tabs.entry.js +1 -1
  182. package/dist/esm/gux-tag-beta.entry.js +2 -2
  183. package/dist/esm/gux-text-highlight.entry.js +1 -1
  184. package/dist/esm/gux-text-label-legacy.entry.js +1 -1
  185. package/dist/esm/gux-time-picker-beta.entry.js +2 -2
  186. package/dist/esm/gux-toggle.entry.js +2 -2
  187. package/dist/esm/gux-tooltip_2.entry.js +3 -1
  188. package/dist/esm/gux-visualization-beta.entry.js +2 -2
  189. package/dist/esm/{index-eb3999c5.js → index-5bfcdeb1.js} +5 -8
  190. package/dist/esm/loader.js +1 -1
  191. package/dist/esm/{usage-tracking-caafd588.js → usage-tracking-51697c05.js} +3 -1
  192. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  193. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ar.json +1 -1
  194. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.cs.json +1 -1
  195. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.da.json +1 -1
  196. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.de.json +1 -1
  197. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
  198. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.es-es.json +1 -1
  199. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.es.json +1 -1
  200. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fi.json +1 -1
  201. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fr-ca.json +1 -1
  202. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fr.json +1 -1
  203. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.it.json +1 -1
  204. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ja.json +1 -1
  205. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ko.json +1 -1
  206. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.nl.json +1 -1
  207. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.no.json +1 -1
  208. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pl.json +1 -1
  209. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pt-br.json +1 -1
  210. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ru.json +1 -1
  211. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.sv.json +1 -1
  212. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.th.json +1 -1
  213. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.tr.json +1 -1
  214. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.zh-cn.json +1 -1
  215. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.zh-tw.json +1 -1
  216. package/dist/genesys-webcomponents/{p-2f9715c3.entry.js → p-029337ed.entry.js} +1 -1
  217. package/dist/genesys-webcomponents/{p-0a5c269e.entry.js → p-0657bb17.entry.js} +1 -1
  218. package/dist/genesys-webcomponents/{p-4e3fdc36.entry.js → p-0769a6d9.entry.js} +1 -1
  219. package/dist/genesys-webcomponents/{p-e8a02b19.entry.js → p-0e778f56.entry.js} +1 -1
  220. package/dist/genesys-webcomponents/{p-8a06b419.entry.js → p-12d27bc7.entry.js} +1 -1
  221. package/dist/genesys-webcomponents/{p-8c23e089.entry.js → p-1312bc4b.entry.js} +1 -1
  222. package/dist/genesys-webcomponents/{p-92aafbfe.entry.js → p-13a7eb59.entry.js} +1 -1
  223. package/dist/genesys-webcomponents/{p-2a1d2b35.entry.js → p-15964b3a.entry.js} +1 -1
  224. package/dist/genesys-webcomponents/p-1bba8576.js +1 -0
  225. package/dist/genesys-webcomponents/{p-1c3d7e56.entry.js → p-1c57ad87.entry.js} +1 -1
  226. package/dist/genesys-webcomponents/{p-0139cd24.entry.js → p-1cd8af37.entry.js} +1 -1
  227. package/dist/genesys-webcomponents/p-201c4e67.entry.js +1 -0
  228. package/dist/genesys-webcomponents/{p-e1be144a.entry.js → p-22d6e306.entry.js} +1 -1
  229. package/dist/genesys-webcomponents/{p-973a46bf.entry.js → p-22f6880d.entry.js} +1 -1
  230. package/dist/genesys-webcomponents/{p-b969f587.entry.js → p-23b66369.entry.js} +1 -1
  231. package/dist/genesys-webcomponents/{p-14a51c35.js → p-2548bdad.js} +1 -1
  232. package/dist/genesys-webcomponents/{p-6d87bfb1.entry.js → p-30095062.entry.js} +1 -1
  233. package/dist/genesys-webcomponents/{p-5883a979.entry.js → p-3160cd26.entry.js} +1 -1
  234. package/dist/genesys-webcomponents/{p-0ed5770b.entry.js → p-3753e5bf.entry.js} +1 -1
  235. package/dist/genesys-webcomponents/{p-7e70c9c1.entry.js → p-3aa02e38.entry.js} +1 -1
  236. package/dist/genesys-webcomponents/{p-e391d97b.entry.js → p-40b404e4.entry.js} +1 -1
  237. package/dist/genesys-webcomponents/p-421513fb.entry.js +1 -0
  238. package/dist/genesys-webcomponents/{p-f90b11f9.entry.js → p-42d912d4.entry.js} +1 -1
  239. package/dist/genesys-webcomponents/p-4402a21b.entry.js +1 -0
  240. package/dist/genesys-webcomponents/{p-954375b3.entry.js → p-47b43bb0.entry.js} +1 -1
  241. package/dist/genesys-webcomponents/{p-50cbdc7f.entry.js → p-4a191fdf.entry.js} +1 -1
  242. package/dist/genesys-webcomponents/{p-3d8cdaa7.entry.js → p-4b3e2f4d.entry.js} +1 -1
  243. package/dist/genesys-webcomponents/{p-608eca17.entry.js → p-4b9a1290.entry.js} +1 -1
  244. package/dist/genesys-webcomponents/{p-88ec68e2.entry.js → p-4cb5c8d4.entry.js} +1 -1
  245. package/dist/genesys-webcomponents/{p-d28a9689.entry.js → p-4d83e96e.entry.js} +1 -1
  246. package/dist/genesys-webcomponents/{p-e2ccc99d.entry.js → p-51919256.entry.js} +1 -1
  247. package/dist/genesys-webcomponents/{p-26ad6687.entry.js → p-541f1383.entry.js} +1 -1
  248. package/dist/genesys-webcomponents/{p-b9986930.entry.js → p-5535d4ed.entry.js} +1 -1
  249. package/dist/genesys-webcomponents/p-5d2b22a6.entry.js +1 -0
  250. package/dist/genesys-webcomponents/{p-f72e9d11.entry.js → p-5e3c1579.entry.js} +1 -1
  251. package/dist/genesys-webcomponents/{p-677dee33.entry.js → p-5f7759a8.entry.js} +1 -1
  252. package/dist/genesys-webcomponents/{p-21435de2.entry.js → p-5f9dc418.entry.js} +1 -1
  253. package/dist/genesys-webcomponents/{p-42985b5e.entry.js → p-604b978b.entry.js} +1 -1
  254. package/dist/genesys-webcomponents/{p-4035a6f8.entry.js → p-608ee12d.entry.js} +1 -1
  255. package/dist/genesys-webcomponents/{p-eef9954f.entry.js → p-612d3b4c.entry.js} +1 -1
  256. package/dist/genesys-webcomponents/{p-5947bba5.entry.js → p-62046104.entry.js} +1 -1
  257. package/dist/genesys-webcomponents/p-65de98a6.entry.js +1 -0
  258. package/dist/genesys-webcomponents/{p-a8ac4edb.entry.js → p-67d2bac0.entry.js} +1 -1
  259. package/dist/genesys-webcomponents/{p-4636daf4.entry.js → p-68ee84bf.entry.js} +1 -1
  260. package/dist/genesys-webcomponents/{p-b9160eb4.entry.js → p-6d9ba55a.entry.js} +1 -1
  261. package/dist/genesys-webcomponents/{p-5bb84166.entry.js → p-7b4c2f8b.entry.js} +1 -1
  262. package/dist/genesys-webcomponents/{p-76980e6d.entry.js → p-80c489ef.entry.js} +1 -1
  263. package/dist/genesys-webcomponents/{p-400b5b09.entry.js → p-8ad470a9.entry.js} +1 -1
  264. package/dist/genesys-webcomponents/p-8bcf179a.entry.js +1 -0
  265. package/dist/genesys-webcomponents/{p-69fe4ffe.entry.js → p-8df52df5.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/{p-4678a4e8.entry.js → p-8e0974b7.entry.js} +1 -1
  267. package/dist/genesys-webcomponents/{p-d4b616eb.entry.js → p-93cf1b7e.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/p-947b7fe3.entry.js +1 -0
  269. package/dist/genesys-webcomponents/{p-3d46505b.entry.js → p-9ea979d4.entry.js} +1 -1
  270. package/dist/genesys-webcomponents/{p-98e368b9.entry.js → p-aa078b1d.entry.js} +1 -1
  271. package/dist/genesys-webcomponents/{p-bb2c9b20.entry.js → p-b3bdfcc9.entry.js} +1 -1
  272. package/dist/genesys-webcomponents/{p-b3527345.entry.js → p-b5762726.entry.js} +1 -1
  273. package/dist/genesys-webcomponents/{p-230911f2.entry.js → p-b9911d1a.entry.js} +1 -1
  274. package/dist/genesys-webcomponents/{p-31477334.entry.js → p-ba4e06bc.entry.js} +1 -1
  275. package/dist/genesys-webcomponents/{p-68ba6371.entry.js → p-badab913.entry.js} +1 -1
  276. package/dist/genesys-webcomponents/{p-02407395.entry.js → p-bb12b2dc.entry.js} +1 -1
  277. package/dist/genesys-webcomponents/{p-f26263ae.entry.js → p-bde629e7.entry.js} +1 -1
  278. package/dist/genesys-webcomponents/{p-0fce04d5.entry.js → p-be911be7.entry.js} +1 -1
  279. package/dist/genesys-webcomponents/p-c150db37.entry.js +1 -0
  280. package/dist/genesys-webcomponents/{p-dcbef79f.entry.js → p-c3524a32.entry.js} +1 -1
  281. package/dist/genesys-webcomponents/{p-09f8b72d.entry.js → p-ce0c292e.entry.js} +1 -1
  282. package/dist/genesys-webcomponents/{p-8cf71be5.entry.js → p-d748b223.entry.js} +1 -1
  283. package/dist/genesys-webcomponents/{p-e8a398e5.entry.js → p-d9bcb92f.entry.js} +1 -1
  284. package/dist/genesys-webcomponents/{p-2cb99443.entry.js → p-d9cbc341.entry.js} +1 -1
  285. package/dist/genesys-webcomponents/{p-64fb35a9.entry.js → p-e17d08a7.entry.js} +1 -1
  286. package/dist/genesys-webcomponents/{p-4bc1f7cb.entry.js → p-ed20a20e.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/{p-ed230e32.entry.js → p-edb68d93.entry.js} +1 -1
  288. package/dist/genesys-webcomponents/{p-87f44e1a.entry.js → p-ee19896a.entry.js} +1 -1
  289. package/dist/genesys-webcomponents/{p-9cdc663e.entry.js → p-ef83b43e.entry.js} +1 -1
  290. package/dist/genesys-webcomponents/{p-70f68ff1.entry.js → p-f0ae8bb8.entry.js} +1 -1
  291. package/dist/genesys-webcomponents/{p-a7564000.entry.js → p-f6242c65.entry.js} +1 -1
  292. package/dist/genesys-webcomponents/{p-a7638b69.entry.js → p-f7f7374c.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/{p-2f894b8a.entry.js → p-f992d937.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/{p-b75a51e5.entry.js → p-f9f89217.entry.js} +1 -1
  295. package/dist/genesys-webcomponents/{p-a2b6f0e3.entry.js → p-faa78d1f.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-2fd71eb9.entry.js → p-fe70aa84.entry.js} +1 -1
  297. package/dist/stencil-wrapper.js +1 -1
  298. package/dist/types/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.d.ts +52 -0
  299. package/dist/types/components/beta/gux-pagination-beta/gux-pagination-beta.d.ts +43 -0
  300. package/dist/types/components/beta/gux-pagination-beta/gux-pagination-beta.types.d.ts +2 -0
  301. package/dist/types/components/beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-button-beta.service.d.ts +9 -0
  302. package/dist/types/components/beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-buttons-beta.d.ts +23 -0
  303. package/dist/types/components/beta/gux-pagination-beta/gux-pagination-item-counts-beta/gux-pagination-item-counts-beta.d.ts +13 -0
  304. package/dist/types/components/beta/gux-pagination-beta/gux-pagination-items-per-page-beta/gux-pagination-items-per-page-beta.d.ts +13 -0
  305. package/dist/types/components.d.ts +221 -0
  306. package/dist/types/i18n/index.d.ts +2 -2
  307. package/package.json +3 -1
  308. package/dist/genesys-webcomponents/p-155a1000.entry.js +0 -1
  309. package/dist/genesys-webcomponents/p-64d6f1fa.entry.js +0 -1
  310. package/dist/genesys-webcomponents/p-9bdbd2da.entry.js +0 -1
  311. package/dist/genesys-webcomponents/p-ae53d4d6.entry.js +0 -1
  312. package/dist/genesys-webcomponents/p-b4a812f0.js +0 -1
  313. package/dist/genesys-webcomponents/p-c3c3c607.entry.js +0 -1
@@ -0,0 +1,225 @@
1
+ import { Component, Element, Event, h, readTask, Prop, State } from '@stencil/core';
2
+ import { trackComponent } from '../../../usage-tracking';
3
+ /**
4
+ * The minimum size in px at which the advanced layout will display.
5
+ * Below this size we switch to the simple layout.
6
+ * This was chosen based on the width required for 3-digit page numbers, so
7
+ * page counts that go into 4 digits could overflow at small sizes.
8
+ */
9
+ const MIN_ADVANCED_SIZE = 810;
10
+ export class GuxPaginationBeta {
11
+ constructor() {
12
+ /**
13
+ * The pagination component can have different layouts to suit the available space
14
+ */
15
+ this.layout = 'advanced';
16
+ /**
17
+ * The currently select page. Changes are watched by the component.
18
+ */
19
+ this.currentPage = 1;
20
+ /**
21
+ * The total number of items in the data set. Used to calculate total page count
22
+ */
23
+ this.totalItems = 0;
24
+ /**
25
+ * The max number of items on a page. Used to calculate total page count
26
+ */
27
+ this.itemsPerPage = 25;
28
+ }
29
+ setPage(page) {
30
+ if (page < 0) {
31
+ if (this.totalPages > 0) {
32
+ this.setPage(1);
33
+ }
34
+ else {
35
+ this.setPage(0);
36
+ }
37
+ return;
38
+ }
39
+ const totalPages = this.calculateTotalPages(this.totalItems, this.itemsPerPage);
40
+ if (page > totalPages) {
41
+ this.setPage(totalPages);
42
+ return;
43
+ }
44
+ this.currentPage = page;
45
+ this.guxpaginationchange.emit({
46
+ currentPage: this.currentPage,
47
+ itemsPerPage: this.itemsPerPage
48
+ });
49
+ }
50
+ handleInternalitemsperpagechange(event) {
51
+ this.itemsPerPage = event.detail;
52
+ this.setPage(1);
53
+ }
54
+ handleInternalcurrentpagechange(event) {
55
+ this.setPage(event.detail);
56
+ }
57
+ calculateTotalPages(totalItems, itemsPerPage) {
58
+ return Math.ceil(totalItems / itemsPerPage);
59
+ }
60
+ calculateCurrentPage(totalPages, currentPage) {
61
+ const minCurrentPage = totalPages > 0 ? 1 : 0;
62
+ return Math.max(minCurrentPage, Math.min(currentPage, totalPages));
63
+ }
64
+ checkPaginationContainerWidthForLayout() {
65
+ readTask(() => {
66
+ const el = this.root.shadowRoot.querySelector('.gux-pagination-container');
67
+ const paginationContainerWidth = el.clientWidth;
68
+ if (paginationContainerWidth < MIN_ADVANCED_SIZE) {
69
+ this.displayedLayout = 'simple';
70
+ }
71
+ else {
72
+ this.displayedLayout = this.layout;
73
+ }
74
+ });
75
+ }
76
+ componentWillLoad() {
77
+ trackComponent(this.root, { variant: this.layout });
78
+ }
79
+ componentWillRender() {
80
+ this.totalPages = this.calculateTotalPages(this.totalItems, this.itemsPerPage);
81
+ this.currentPage = this.calculateCurrentPage(this.totalPages, this.currentPage);
82
+ }
83
+ disconnectedCallback() {
84
+ if (this.resizeObserver) {
85
+ this.resizeObserver.unobserve(this.root.shadowRoot.querySelector('.gux-pagination-container'));
86
+ }
87
+ }
88
+ componentDidLoad() {
89
+ if (!this.resizeObserver && window.ResizeObserver) {
90
+ this.resizeObserver = new ResizeObserver(() => this.checkPaginationContainerWidthForLayout());
91
+ }
92
+ if (this.resizeObserver) {
93
+ this.resizeObserver.observe(this.root.shadowRoot.querySelector('.gux-pagination-container'));
94
+ }
95
+ setTimeout(() => {
96
+ this.checkPaginationContainerWidthForLayout();
97
+ }, 500);
98
+ }
99
+ render() {
100
+ return (h("div", { class: "gux-pagination-container" },
101
+ h("div", { class: "gux-pagination-info" },
102
+ h("gux-pagination-item-counts-beta", { "total-items": this.totalItems, "current-page": this.currentPage, "items-per-page": this.itemsPerPage }),
103
+ this.displayedLayout === 'advanced' && (h("gux-pagination-items-per-page-beta", { "items-per-page": this.itemsPerPage, onInternalitemsperpagechange: this.handleInternalitemsperpagechange.bind(this) }))),
104
+ h("div", { class: "gux-pagination-change" },
105
+ h("gux-pagination-buttons-beta", { layout: this.displayedLayout, "current-page": this.currentPage, "total-pages": this.totalPages, onInternalcurrentpagechange: this.handleInternalcurrentpagechange.bind(this) }))));
106
+ }
107
+ static get is() { return "gux-pagination-beta"; }
108
+ static get encapsulation() { return "shadow"; }
109
+ static get originalStyleUrls() { return {
110
+ "$": ["gux-pagination-beta.less"]
111
+ }; }
112
+ static get styleUrls() { return {
113
+ "$": ["gux-pagination-beta.css"]
114
+ }; }
115
+ static get properties() { return {
116
+ "layout": {
117
+ "type": "string",
118
+ "mutable": false,
119
+ "complexType": {
120
+ "original": "GuxPaginationLayoutBeta",
121
+ "resolved": "\"advanced\" | \"simple\"",
122
+ "references": {
123
+ "GuxPaginationLayoutBeta": {
124
+ "location": "import",
125
+ "path": "./gux-pagination-beta.types"
126
+ }
127
+ }
128
+ },
129
+ "required": false,
130
+ "optional": false,
131
+ "docs": {
132
+ "tags": [],
133
+ "text": "The pagination component can have different layouts to suit the available space"
134
+ },
135
+ "attribute": "layout",
136
+ "reflect": false,
137
+ "defaultValue": "'advanced'"
138
+ },
139
+ "currentPage": {
140
+ "type": "number",
141
+ "mutable": true,
142
+ "complexType": {
143
+ "original": "number",
144
+ "resolved": "number",
145
+ "references": {}
146
+ },
147
+ "required": false,
148
+ "optional": false,
149
+ "docs": {
150
+ "tags": [],
151
+ "text": "The currently select page. Changes are watched by the component."
152
+ },
153
+ "attribute": "current-page",
154
+ "reflect": false,
155
+ "defaultValue": "1"
156
+ },
157
+ "totalItems": {
158
+ "type": "number",
159
+ "mutable": false,
160
+ "complexType": {
161
+ "original": "number",
162
+ "resolved": "number",
163
+ "references": {}
164
+ },
165
+ "required": false,
166
+ "optional": false,
167
+ "docs": {
168
+ "tags": [],
169
+ "text": "The total number of items in the data set. Used to calculate total page count"
170
+ },
171
+ "attribute": "total-items",
172
+ "reflect": false,
173
+ "defaultValue": "0"
174
+ },
175
+ "itemsPerPage": {
176
+ "type": "number",
177
+ "mutable": true,
178
+ "complexType": {
179
+ "original": "GuxItemsPerPage",
180
+ "resolved": "100 | 25 | 50 | 75",
181
+ "references": {
182
+ "GuxItemsPerPage": {
183
+ "location": "import",
184
+ "path": "../../stable/gux-pagination/gux-pagination.types"
185
+ }
186
+ }
187
+ },
188
+ "required": false,
189
+ "optional": false,
190
+ "docs": {
191
+ "tags": [],
192
+ "text": "The max number of items on a page. Used to calculate total page count"
193
+ },
194
+ "attribute": "items-per-page",
195
+ "reflect": false,
196
+ "defaultValue": "25"
197
+ }
198
+ }; }
199
+ static get states() { return {
200
+ "totalPages": {},
201
+ "displayedLayout": {}
202
+ }; }
203
+ static get events() { return [{
204
+ "method": "guxpaginationchange",
205
+ "name": "guxpaginationchange",
206
+ "bubbles": true,
207
+ "cancelable": true,
208
+ "composed": true,
209
+ "docs": {
210
+ "tags": [],
211
+ "text": ""
212
+ },
213
+ "complexType": {
214
+ "original": "GuxPaginationState",
215
+ "resolved": "{ currentPage: number; itemsPerPage: number; }",
216
+ "references": {
217
+ "GuxPaginationState": {
218
+ "location": "import",
219
+ "path": "../../stable/gux-pagination/gux-pagination.types"
220
+ }
221
+ }
222
+ }
223
+ }]; }
224
+ static get elementRef() { return "root"; }
225
+ }
@@ -0,0 +1,91 @@
1
+ export class GuxPaginationButtonsService {
2
+ static getPageList(currentPage, totalPages) {
3
+ if (totalPages <= 10) {
4
+ return [...Array(totalPages).keys()].map(index => {
5
+ const pageNumber = index + 1;
6
+ return {
7
+ pageNumber,
8
+ display: String(pageNumber),
9
+ current: pageNumber === currentPage
10
+ };
11
+ });
12
+ }
13
+ if (currentPage <= 5) {
14
+ const startPageList = [...Array(6).keys()].map(index => {
15
+ const pageNumber = index + 1;
16
+ return {
17
+ pageNumber,
18
+ display: String(pageNumber),
19
+ current: pageNumber === currentPage
20
+ };
21
+ });
22
+ return [
23
+ ...startPageList,
24
+ {
25
+ pageNumber: 7,
26
+ display: '...',
27
+ current: false
28
+ },
29
+ {
30
+ pageNumber: totalPages,
31
+ display: String(totalPages),
32
+ current: false
33
+ }
34
+ ];
35
+ }
36
+ if (currentPage > totalPages - 5) {
37
+ const endPageList = [...Array(6).keys()].map(index => {
38
+ const pageNumber = index + totalPages - 5;
39
+ return {
40
+ pageNumber,
41
+ display: String(pageNumber),
42
+ current: pageNumber === currentPage
43
+ };
44
+ });
45
+ return [
46
+ {
47
+ pageNumber: 1,
48
+ display: '1',
49
+ current: false
50
+ },
51
+ {
52
+ pageNumber: totalPages - 6,
53
+ display: '...',
54
+ current: false
55
+ },
56
+ ...endPageList
57
+ ];
58
+ }
59
+ const middlePageList = [...Array(5).keys()].map(index => {
60
+ const pageNumber = index + currentPage - 2;
61
+ return {
62
+ pageNumber,
63
+ display: String(pageNumber),
64
+ current: pageNumber === currentPage
65
+ };
66
+ });
67
+ return [
68
+ {
69
+ pageNumber: 1,
70
+ display: '1',
71
+ current: false
72
+ },
73
+ {
74
+ pageNumber: currentPage - 3,
75
+ display: '...',
76
+ current: false
77
+ },
78
+ ...middlePageList,
79
+ {
80
+ pageNumber: currentPage + 3,
81
+ display: '...',
82
+ current: false
83
+ },
84
+ {
85
+ pageNumber: totalPages,
86
+ display: String(totalPages),
87
+ current: false
88
+ }
89
+ ];
90
+ }
91
+ }
@@ -0,0 +1,77 @@
1
+ gux-pagination-buttons-beta {
2
+ color: #2e394c;
3
+ }
4
+ gux-pagination-buttons-beta .gux-pagination-buttons-container {
5
+ display: flex;
6
+ flex-direction: row;
7
+ flex-wrap: nowrap;
8
+ align-content: stretch;
9
+ align-items: center;
10
+ justify-content: flex-end;
11
+ }
12
+ gux-pagination-buttons-beta .gux-pagination-buttons-container > div {
13
+ flex: 0 1 auto;
14
+ align-self: auto;
15
+ order: 0;
16
+ }
17
+ gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-group {
18
+ white-space: nowrap;
19
+ }
20
+ gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-group gux-button-slot-beta:not(:first-of-type) {
21
+ margin-left: 8px;
22
+ }
23
+ gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-input-container {
24
+ display: flex;
25
+ flex-direction: row;
26
+ flex-wrap: nowrap;
27
+ align-content: stretch;
28
+ align-items: center;
29
+ justify-content: center;
30
+ margin: 0 16px;
31
+ }
32
+ gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-input-container > div {
33
+ flex: 0 1 auto;
34
+ align-self: auto;
35
+ order: 0;
36
+ white-space: nowrap;
37
+ }
38
+ gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-input-container .gux-pagination-buttons-input {
39
+ width: 60px;
40
+ margin: 0 8px;
41
+ }
42
+ gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-input-container .gux-pagination-buttons-input input {
43
+ width: inherit;
44
+ text-align: center;
45
+ }
46
+ gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container {
47
+ display: flex;
48
+ flex-direction: row;
49
+ flex-wrap: nowrap;
50
+ align-content: stretch;
51
+ align-items: center;
52
+ justify-content: center;
53
+ }
54
+ gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-current,
55
+ gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-target {
56
+ height: 32px;
57
+ padding: 0 8px;
58
+ margin: 0;
59
+ background: inherit;
60
+ border: none;
61
+ }
62
+ gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-current:focus-visible,
63
+ gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-target:focus-visible {
64
+ border: 3px solid #aac9ff;
65
+ border-radius: 5px;
66
+ outline: none;
67
+ }
68
+ gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-current {
69
+ font-weight: 600;
70
+ }
71
+ gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-target {
72
+ color: #2a60c8;
73
+ cursor: pointer;
74
+ }
75
+ gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-spacer {
76
+ width: 8px;
77
+ }
@@ -0,0 +1,154 @@
1
+ import { Component, Element, Event, h, Prop } from '@stencil/core';
2
+ import { buildI18nForComponent } from '../../../../i18n';
3
+ import paginationResources from './i18n/en.json';
4
+ import { GuxPaginationButtonsService } from './gux-pagination-button-beta.service';
5
+ export class GuxPaginationButtonsBeta {
6
+ constructor() {
7
+ this.layout = 'advanced';
8
+ }
9
+ get onFirstPage() {
10
+ return this.currentPage <= 1;
11
+ }
12
+ get onLastPage() {
13
+ return this.currentPage >= this.totalPages;
14
+ }
15
+ handleClickFirst() {
16
+ this.internalcurrentpagechange.emit(1);
17
+ }
18
+ handleClickPrevious() {
19
+ this.internalcurrentpagechange.emit(this.currentPage - 1);
20
+ }
21
+ handleClickNext() {
22
+ this.internalcurrentpagechange.emit(this.currentPage + 1);
23
+ }
24
+ handleClickLast() {
25
+ this.internalcurrentpagechange.emit(this.totalPages);
26
+ }
27
+ handleClickPage(pageNumber) {
28
+ this.internalcurrentpagechange.emit(pageNumber);
29
+ }
30
+ getPageListEnteries(currentPage, totalPages) {
31
+ return GuxPaginationButtonsService.getPageList(currentPage, totalPages).reduce((acc, cv) => {
32
+ if (cv.current) {
33
+ return acc.concat((h("button", { class: "gux-pagination-buttons-list-current" }, cv.display)));
34
+ }
35
+ return acc.concat((h("button", { class: "gux-pagination-buttons-list-target", onClick: () => this.handleClickPage(cv.pageNumber) }, cv.display)));
36
+ }, []);
37
+ }
38
+ getSmallPagePicker() {
39
+ return (h("div", { class: 'gux-pagination-buttons-spacer' }));
40
+ }
41
+ getFullPagePicker() {
42
+ return (h("div", { class: "gux-pagination-buttons-list-container" }, this.getPageListEnteries(this.currentPage, this.totalPages)));
43
+ }
44
+ getPagePicker(layout) {
45
+ if (layout === 'simple') {
46
+ return this.getSmallPagePicker();
47
+ }
48
+ return this.getFullPagePicker();
49
+ }
50
+ async componentWillLoad() {
51
+ this.i18n = await buildI18nForComponent(this.root, paginationResources);
52
+ }
53
+ render() {
54
+ return (h("div", { class: `gux-pagination-buttons-container gux-${this.layout}` },
55
+ h("div", { class: "gux-pagination-buttons-group" },
56
+ h("gux-button-slot-beta", { accent: "secondary" },
57
+ h("button", { title: this.i18n('first'), disabled: this.onFirstPage, onClick: this.handleClickFirst.bind(this) },
58
+ h("gux-icon", { decorative: true, "icon-name": "chevron-double-left" }))),
59
+ h("gux-button-slot-beta", { accent: "secondary" },
60
+ h("button", { title: this.i18n('previous'), disabled: this.onFirstPage, onClick: this.handleClickPrevious.bind(this) },
61
+ h("gux-icon", { decorative: true, "icon-name": "chevron-small-left" })))),
62
+ this.getPagePicker(this.layout),
63
+ h("div", { class: "gux-pagination-buttons-group" },
64
+ h("gux-button-slot-beta", { accent: "secondary" },
65
+ h("button", { title: this.i18n('next'), disabled: this.onLastPage, onClick: this.handleClickNext.bind(this) },
66
+ h("gux-icon", { decorative: true, "icon-name": "chevron-small-right" }))),
67
+ h("gux-button-slot-beta", { accent: "secondary" },
68
+ h("button", { title: this.i18n('last'), disabled: this.onLastPage, onClick: this.handleClickLast.bind(this) },
69
+ h("gux-icon", { decorative: true, "icon-name": "chevron-double-right" }))))));
70
+ }
71
+ static get is() { return "gux-pagination-buttons-beta"; }
72
+ static get originalStyleUrls() { return {
73
+ "$": ["gux-pagination-buttons-beta.less"]
74
+ }; }
75
+ static get styleUrls() { return {
76
+ "$": ["gux-pagination-buttons-beta.css"]
77
+ }; }
78
+ static get properties() { return {
79
+ "currentPage": {
80
+ "type": "number",
81
+ "mutable": false,
82
+ "complexType": {
83
+ "original": "number",
84
+ "resolved": "number",
85
+ "references": {}
86
+ },
87
+ "required": false,
88
+ "optional": false,
89
+ "docs": {
90
+ "tags": [],
91
+ "text": ""
92
+ },
93
+ "attribute": "current-page",
94
+ "reflect": false
95
+ },
96
+ "totalPages": {
97
+ "type": "number",
98
+ "mutable": false,
99
+ "complexType": {
100
+ "original": "number",
101
+ "resolved": "number",
102
+ "references": {}
103
+ },
104
+ "required": false,
105
+ "optional": false,
106
+ "docs": {
107
+ "tags": [],
108
+ "text": ""
109
+ },
110
+ "attribute": "total-pages",
111
+ "reflect": false
112
+ },
113
+ "layout": {
114
+ "type": "string",
115
+ "mutable": false,
116
+ "complexType": {
117
+ "original": "GuxPaginationLayoutBeta",
118
+ "resolved": "\"advanced\" | \"simple\"",
119
+ "references": {
120
+ "GuxPaginationLayoutBeta": {
121
+ "location": "import",
122
+ "path": "../gux-pagination-beta.types"
123
+ }
124
+ }
125
+ },
126
+ "required": false,
127
+ "optional": false,
128
+ "docs": {
129
+ "tags": [],
130
+ "text": ""
131
+ },
132
+ "attribute": "layout",
133
+ "reflect": false,
134
+ "defaultValue": "'advanced'"
135
+ }
136
+ }; }
137
+ static get events() { return [{
138
+ "method": "internalcurrentpagechange",
139
+ "name": "internalcurrentpagechange",
140
+ "bubbles": false,
141
+ "cancelable": true,
142
+ "composed": true,
143
+ "docs": {
144
+ "tags": [],
145
+ "text": ""
146
+ },
147
+ "complexType": {
148
+ "original": "number",
149
+ "resolved": "number",
150
+ "references": {}
151
+ }
152
+ }]; }
153
+ static get elementRef() { return "root"; }
154
+ }
@@ -0,0 +1,9 @@
1
+ gux-pagination-item-counts-beta {
2
+ color: #2e394c;
3
+ }
4
+ gux-pagination-item-counts-beta .gux-pagination-item-counts-container {
5
+ white-space: nowrap;
6
+ }
7
+ gux-pagination-item-counts-beta .gux-pagination-item-counts-container .gux-pagination-item-counts-range {
8
+ font-weight: bold;
9
+ }
@@ -0,0 +1,102 @@
1
+ import { Component, Element, h, Prop } from '@stencil/core';
2
+ import { buildI18nForComponent } from '../../../../i18n';
3
+ import paginationResources from './i18n/en.json';
4
+ export class GuxPaginationItemCountsBeta {
5
+ constructor() {
6
+ this.totalItems = 0;
7
+ this.currentPage = 0;
8
+ this.itemsPerPage = 25;
9
+ }
10
+ get firstItem() {
11
+ if (this.totalItems < 1) {
12
+ return 0;
13
+ }
14
+ return (this.currentPage - 1) * this.itemsPerPage + 1;
15
+ }
16
+ get lastItem() {
17
+ if (this.totalItems < 1) {
18
+ return 0;
19
+ }
20
+ return Math.min(this.currentPage * this.itemsPerPage, this.totalItems);
21
+ }
22
+ async componentWillLoad() {
23
+ this.i18n = await buildI18nForComponent(this.root, paginationResources);
24
+ }
25
+ getPaginationItemCountsRange() {
26
+ if (this.totalItems) {
27
+ return (h("span", null, this.i18n('totalItems', { totalItems: this.totalItems })));
28
+ }
29
+ }
30
+ render() {
31
+ return (h("div", { class: "gux-pagination-item-counts-container" },
32
+ h("span", { class: "gux-pagination-item-counts-range" }, this.i18n('itemCountDisplay', {
33
+ firstItem: this.firstItem,
34
+ lastItem: this.lastItem
35
+ })),
36
+ this.getPaginationItemCountsRange()));
37
+ }
38
+ static get is() { return "gux-pagination-item-counts-beta"; }
39
+ static get originalStyleUrls() { return {
40
+ "$": ["gux-pagination-item-counts-beta.less"]
41
+ }; }
42
+ static get styleUrls() { return {
43
+ "$": ["gux-pagination-item-counts-beta.css"]
44
+ }; }
45
+ static get properties() { return {
46
+ "totalItems": {
47
+ "type": "number",
48
+ "mutable": false,
49
+ "complexType": {
50
+ "original": "number",
51
+ "resolved": "number",
52
+ "references": {}
53
+ },
54
+ "required": false,
55
+ "optional": false,
56
+ "docs": {
57
+ "tags": [],
58
+ "text": ""
59
+ },
60
+ "attribute": "total-items",
61
+ "reflect": false,
62
+ "defaultValue": "0"
63
+ },
64
+ "currentPage": {
65
+ "type": "number",
66
+ "mutable": false,
67
+ "complexType": {
68
+ "original": "number",
69
+ "resolved": "number",
70
+ "references": {}
71
+ },
72
+ "required": false,
73
+ "optional": false,
74
+ "docs": {
75
+ "tags": [],
76
+ "text": ""
77
+ },
78
+ "attribute": "current-page",
79
+ "reflect": false,
80
+ "defaultValue": "0"
81
+ },
82
+ "itemsPerPage": {
83
+ "type": "number",
84
+ "mutable": false,
85
+ "complexType": {
86
+ "original": "number",
87
+ "resolved": "number",
88
+ "references": {}
89
+ },
90
+ "required": false,
91
+ "optional": false,
92
+ "docs": {
93
+ "tags": [],
94
+ "text": ""
95
+ },
96
+ "attribute": "items-per-page",
97
+ "reflect": false,
98
+ "defaultValue": "25"
99
+ }
100
+ }; }
101
+ static get elementRef() { return "root"; }
102
+ }
@@ -0,0 +1,25 @@
1
+ gux-pagination-items-per-page-beta {
2
+ color: #2e394c;
3
+ }
4
+ gux-pagination-items-per-page-beta .gux-pagination-items-per-page-container {
5
+ display: flex;
6
+ flex-direction: row;
7
+ flex-wrap: nowrap;
8
+ align-content: stretch;
9
+ align-items: center;
10
+ justify-content: center;
11
+ }
12
+ gux-pagination-items-per-page-beta .gux-pagination-items-per-page-container > div {
13
+ flex: 0 1 auto;
14
+ align-self: auto;
15
+ order: 0;
16
+ white-space: nowrap;
17
+ }
18
+ gux-pagination-items-per-page-beta .gux-pagination-items-per-page-container .gux-pagination-items-per-page-picker {
19
+ margin: 0 8px 0 16px;
20
+ }
21
+ gux-pagination-items-per-page-beta .gux-pagination-items-per-page-container gux-dropdown div.gux-dropdown .gux-options.gux-opened {
22
+ bottom: 100%;
23
+ display: flex;
24
+ flex-direction: column-reverse;
25
+ }