genesys-spark-components 4.0.0-beta.26 → 4.0.0-beta.28

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 (404) hide show
  1. package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
  2. package/dist/cjs/gux-accordion-section.cjs.entry.js +1 -1
  3. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +2 -2
  6. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +218 -0
  7. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-badge.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-button-multi.cjs.entry.js +2 -3
  12. package/dist/cjs/gux-button-slot.cjs.entry.js +2 -2
  13. package/dist/cjs/gux-button.cjs.entry.js +2 -2
  14. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-card.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-column-manager-item.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-dropdown-multi-beta.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-dropdown-option.cjs.entry.js +1 -1
  28. package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
  29. package/dist/cjs/gux-flyout-menu-beta.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-form-field-number_3.cjs.entry.js +2 -2
  35. package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-form-field-range.cjs.entry.js +2 -2
  38. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +2 -2
  41. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +2 -2
  42. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-list-item.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-loading-message.cjs.entry.js +3 -47
  49. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +2 -2
  52. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  53. package/dist/cjs/{gux-pagination-buttons-beta_2.cjs.entry.js → gux-pagination-buttons_3.cjs.entry.js} +49 -11
  54. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  56. package/dist/cjs/{gux-pagination-beta.cjs.entry.js → gux-pagination.cjs.entry.js} +6 -6
  57. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-popover-list.cjs.entry.js +2 -2
  59. package/dist/cjs/gux-popup.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-region-icon.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-skip-navigation-item.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-switch-item.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-switch.cjs.entry.js +2 -2
  71. package/dist/cjs/gux-tab-panel.cjs.entry.js +2 -2
  72. package/dist/cjs/gux-table-select-menu.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-table.cjs.entry.js +2 -2
  78. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-tag.cjs.entry.js +80 -0
  81. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-toast.cjs.entry.js +1 -1
  86. package/dist/cjs/gux-toggle-slider.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-toggle.cjs.entry.js +2 -2
  88. package/dist/cjs/gux-tooltip.cjs.entry.js +1 -1
  89. package/dist/cjs/index-0d0fdb85.js +8 -16
  90. package/dist/cjs/loader.cjs.js +1 -1
  91. package/dist/cjs/{usage-fcdc9156.js → usage-5e9eafc4.js} +1 -1
  92. package/dist/collection/collection-manifest.json +11 -12
  93. package/dist/collection/components/legacy/gux-action-toast-legacy/gux-action-toast.css +44 -30
  94. package/dist/collection/components/{stable/gux-advanced-dropdown → legacy/gux-advanced-dropdown-legacy}/dropdown-option/gux-dropdown-option.css +3 -4
  95. package/dist/collection/components/{stable/gux-advanced-dropdown → legacy/gux-advanced-dropdown-legacy}/dropdown-option/gux-dropdown-option.js +1 -1
  96. package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/gux-advanced-dropdown.css +253 -0
  97. package/dist/collection/components/{stable/gux-advanced-dropdown → legacy/gux-advanced-dropdown-legacy}/gux-advanced-dropdown.js +4 -4
  98. package/dist/collection/components/legacy/gux-notification-toast-legacy/gux-notification-toast.css +44 -30
  99. package/dist/collection/components/stable/gux-accordion/gux-accordion-section/gux-accordion-section.css +65 -45
  100. package/dist/collection/components/stable/gux-button/gux-button.css +43 -3
  101. package/dist/collection/components/stable/gux-button-multi/gux-button-multi.js +1 -19
  102. package/dist/collection/components/stable/gux-button-slot/gux-button-slot.css +43 -3
  103. package/dist/collection/components/stable/gux-column-manager/gux-column-manager-item/gux-column-manager-item.css +47 -32
  104. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.css +44 -30
  105. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.css +65 -45
  106. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.css +65 -45
  107. package/dist/collection/components/stable/gux-list/gux-list-divider/gux-list-divider.css +1 -1
  108. package/dist/collection/components/stable/gux-list/gux-list-divider/gux-list-divider.js +1 -1
  109. package/dist/collection/components/stable/gux-list/gux-list-item/gux-list-item.css +27 -15
  110. package/dist/collection/components/stable/gux-list/gux-list-item/gux-list-item.js +1 -1
  111. package/dist/collection/components/stable/gux-list/gux-list.css +1 -1
  112. package/dist/collection/components/stable/gux-list/gux-list.js +1 -1
  113. package/dist/collection/components/stable/gux-loading-message/gux-loading-message.css +87 -192
  114. package/dist/collection/components/stable/gux-loading-message/gux-loading-message.js +2 -49
  115. package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-buttons-beta.css → stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.css} +11 -11
  116. package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-buttons-beta.js → stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.js} +8 -8
  117. package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-item-counts-beta/gux-pagination-item-counts-beta.css → stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.css} +1 -4
  118. package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-item-counts-beta/gux-pagination-item-counts-beta.js → stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.js} +4 -4
  119. package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-items-per-page-beta/gux-pagination-items-per-page-beta.css → stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.css} +5 -5
  120. package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-items-per-page-beta/gux-pagination-items-per-page-beta.js → stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.js} +5 -5
  121. package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-beta.js → stable/gux-pagination/gux-pagination.js} +8 -8
  122. package/dist/collection/components/stable/gux-popover-list/gux-popover-list.css +8 -34
  123. package/dist/collection/components/stable/gux-popover-list/gux-popover-list.js +1 -1
  124. package/dist/collection/components/stable/gux-popup/gux-popup.css +1 -0
  125. package/dist/collection/components/stable/gux-skip-navigation-list/gux-skip-navigation-item/gux-skip-navigation-item.css +4 -2
  126. package/dist/collection/components/stable/gux-skip-navigation-list/gux-skip-navigation-item/gux-skip-navigation-item.js +1 -1
  127. package/dist/collection/components/stable/gux-switch/gux-switch-item/gux-switch-item.css +173 -7
  128. package/dist/collection/components/stable/gux-switch/gux-switch-item/gux-switch-item.js +1 -1
  129. package/dist/collection/components/stable/gux-switch/gux-switch.css +2 -2
  130. package/dist/collection/components/stable/gux-switch/gux-switch.js +1 -1
  131. package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-menu.css +21 -15
  132. package/dist/collection/components/stable/gux-table/gux-table.css +44 -30
  133. package/dist/collection/components/stable/gux-tabs/gux-tab-panel/gux-tab-panel.css +56 -6
  134. package/dist/collection/components/stable/gux-tabs/gux-tab-panel/gux-tab-panel.js +4 -3
  135. package/dist/collection/components/stable/gux-tag/gux-tag.css +155 -0
  136. package/dist/collection/components/{beta → stable}/gux-tag/gux-tag.js +27 -32
  137. package/dist/collection/components/stable/gux-toggle/gux-toggle-slider/gux-toggle-slider.css +45 -5
  138. package/dist/collection/components/stable/gux-toggle/gux-toggle-slider/gux-toggle-slider.js +1 -1
  139. package/dist/collection/components/stable/gux-toggle/gux-toggle.css +4 -2
  140. package/dist/collection/components/stable/gux-toggle/gux-toggle.js +1 -1
  141. package/dist/component-specs.json +60 -106
  142. package/dist/deploy-info.json +3 -3
  143. package/dist/esm/genesys-webcomponents.js +1 -1
  144. package/dist/esm/gux-accordion-section.entry.js +1 -1
  145. package/dist/esm/gux-accordion.entry.js +1 -1
  146. package/dist/esm/gux-action-button.entry.js +1 -1
  147. package/dist/esm/gux-action-toast-legacy.entry.js +2 -2
  148. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +214 -0
  149. package/dist/esm/gux-announce-beta.entry.js +1 -1
  150. package/dist/esm/gux-badge.entry.js +1 -1
  151. package/dist/esm/gux-blank-state.entry.js +1 -1
  152. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  153. package/dist/esm/gux-button-multi.entry.js +2 -3
  154. package/dist/esm/gux-button-slot.entry.js +2 -2
  155. package/dist/esm/gux-button.entry.js +2 -2
  156. package/dist/esm/gux-calendar.entry.js +1 -1
  157. package/dist/esm/gux-card.entry.js +1 -1
  158. package/dist/esm/gux-column-manager-item.entry.js +1 -1
  159. package/dist/esm/gux-column-manager.entry.js +1 -1
  160. package/dist/esm/gux-content-search.entry.js +1 -1
  161. package/dist/esm/gux-context-menu.entry.js +1 -1
  162. package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
  163. package/dist/esm/gux-date-beta.entry.js +1 -1
  164. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  165. package/dist/esm/gux-datepicker.entry.js +1 -1
  166. package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
  167. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  168. package/dist/esm/gux-dropdown-multi-beta.entry.js +1 -1
  169. package/dist/esm/gux-dropdown-option.entry.js +1 -1
  170. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  171. package/dist/esm/gux-flyout-menu-beta.entry.js +1 -1
  172. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  173. package/dist/esm/gux-form-field-color.entry.js +1 -1
  174. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  175. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  176. package/dist/esm/gux-form-field-number_3.entry.js +2 -2
  177. package/dist/esm/gux-form-field-phone.entry.js +1 -1
  178. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  179. package/dist/esm/gux-form-field-range.entry.js +2 -2
  180. package/dist/esm/gux-form-field-search.entry.js +1 -1
  181. package/dist/esm/gux-form-field-select.entry.js +1 -1
  182. package/dist/esm/gux-form-field-text-like.entry.js +2 -2
  183. package/dist/esm/gux-form-field-textarea.entry.js +2 -2
  184. package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
  185. package/dist/esm/gux-icon.entry.js +1 -1
  186. package/dist/esm/gux-inline-alert.entry.js +1 -1
  187. package/dist/esm/gux-list-item.entry.js +1 -1
  188. package/dist/esm/gux-list.entry.js +1 -1
  189. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  190. package/dist/esm/gux-loading-message.entry.js +4 -48
  191. package/dist/esm/gux-modal.entry.js +1 -1
  192. package/dist/esm/gux-month-picker-beta.entry.js +1 -1
  193. package/dist/esm/gux-notification-toast-legacy.entry.js +2 -2
  194. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  195. package/dist/esm/{gux-pagination-buttons-beta_2.entry.js → gux-pagination-buttons_3.entry.js} +47 -10
  196. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  197. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  198. package/dist/esm/{gux-pagination-beta.entry.js → gux-pagination.entry.js} +6 -6
  199. package/dist/esm/gux-phone-input-beta.entry.js +1 -1
  200. package/dist/esm/gux-popover-list.entry.js +2 -2
  201. package/dist/esm/gux-popup.entry.js +1 -1
  202. package/dist/esm/gux-radial-loading.entry.js +1 -1
  203. package/dist/esm/gux-radial-progress.entry.js +1 -1
  204. package/dist/esm/gux-rating.entry.js +1 -1
  205. package/dist/esm/gux-region-icon.entry.js +1 -1
  206. package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
  207. package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
  208. package/dist/esm/gux-skip-navigation-item.entry.js +1 -1
  209. package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
  210. package/dist/esm/gux-sort-control.entry.js +1 -1
  211. package/dist/esm/gux-switch-item.entry.js +1 -1
  212. package/dist/esm/gux-switch.entry.js +2 -2
  213. package/dist/esm/gux-tab-panel.entry.js +3 -3
  214. package/dist/esm/gux-table-select-menu.entry.js +1 -1
  215. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  216. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  217. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  218. package/dist/esm/gux-table-toolbar.entry.js +1 -1
  219. package/dist/esm/gux-table.entry.js +2 -2
  220. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  221. package/dist/esm/gux-tabs.entry.js +1 -1
  222. package/dist/esm/gux-tag.entry.js +76 -0
  223. package/dist/esm/gux-text-highlight.entry.js +1 -1
  224. package/dist/esm/gux-time-beta.entry.js +1 -1
  225. package/dist/esm/gux-time-picker.entry.js +1 -1
  226. package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
  227. package/dist/esm/gux-toast.entry.js +1 -1
  228. package/dist/esm/gux-toggle-slider.entry.js +1 -1
  229. package/dist/esm/gux-toggle.entry.js +2 -2
  230. package/dist/esm/gux-tooltip.entry.js +1 -1
  231. package/dist/esm/index-0b66fe2c.js +8 -16
  232. package/dist/esm/loader.js +1 -1
  233. package/dist/esm/{usage-f03a9e96.js → usage-c6e07f31.js} +1 -1
  234. package/dist/genesys-webcomponents/genesys-webcomponents.css +2 -2
  235. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  236. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
  237. package/dist/genesys-webcomponents/{p-bcec2244.entry.js → p-01c8bb6b.entry.js} +1 -1
  238. package/dist/genesys-webcomponents/{p-35784c37.entry.js → p-02134088.entry.js} +1 -1
  239. package/dist/genesys-webcomponents/{p-7ae4a9fe.entry.js → p-09961f4d.entry.js} +1 -1
  240. package/dist/genesys-webcomponents/p-0f4948bb.entry.js +1 -0
  241. package/dist/genesys-webcomponents/{p-fab005df.entry.js → p-172655ad.entry.js} +1 -1
  242. package/dist/genesys-webcomponents/{p-b08f2a1f.entry.js → p-188d3d96.entry.js} +1 -1
  243. package/dist/genesys-webcomponents/{p-596ed860.entry.js → p-1b936c21.entry.js} +1 -1
  244. package/dist/genesys-webcomponents/{p-de63108a.entry.js → p-1e850ed3.entry.js} +1 -1
  245. package/dist/genesys-webcomponents/{p-425a79f2.entry.js → p-219a0bad.entry.js} +1 -1
  246. package/dist/genesys-webcomponents/{p-ba247660.entry.js → p-288ab9a2.entry.js} +1 -1
  247. package/dist/genesys-webcomponents/{p-ec46bb6e.entry.js → p-2a4eacec.entry.js} +1 -1
  248. package/dist/genesys-webcomponents/p-3031a578.entry.js +1 -0
  249. package/dist/genesys-webcomponents/p-358f295c.entry.js +1 -0
  250. package/dist/genesys-webcomponents/p-3aa5149b.entry.js +1 -0
  251. package/dist/genesys-webcomponents/{p-a0b3b9f2.entry.js → p-3b4d5b80.entry.js} +1 -1
  252. package/dist/genesys-webcomponents/{p-39170389.entry.js → p-3bc32648.entry.js} +1 -1
  253. package/dist/genesys-webcomponents/p-3d6b25da.entry.js +1 -0
  254. package/dist/genesys-webcomponents/{p-82bab522.entry.js → p-41dffb40.entry.js} +1 -1
  255. package/dist/genesys-webcomponents/{p-24a36458.entry.js → p-46697c27.entry.js} +1 -1
  256. package/dist/genesys-webcomponents/{p-fd52eebf.entry.js → p-47557661.entry.js} +1 -1
  257. package/dist/genesys-webcomponents/{p-516497a8.entry.js → p-47ba479b.entry.js} +1 -1
  258. package/dist/genesys-webcomponents/p-4c46f081.entry.js +1 -0
  259. package/dist/genesys-webcomponents/{p-5623eb9b.entry.js → p-4d17728f.entry.js} +1 -1
  260. package/dist/genesys-webcomponents/{p-ea9d71eb.entry.js → p-4f1063c5.entry.js} +1 -1
  261. package/dist/genesys-webcomponents/p-5676eed0.entry.js +1 -0
  262. package/dist/genesys-webcomponents/p-581738c6.entry.js +1 -0
  263. package/dist/genesys-webcomponents/{p-6b48fbde.entry.js → p-58dbdd6e.entry.js} +1 -1
  264. package/dist/genesys-webcomponents/p-5dea868f.entry.js +1 -0
  265. package/dist/genesys-webcomponents/{p-d68a0863.entry.js → p-5e05cbf4.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/{p-82aad1f7.entry.js → p-5e1230ac.entry.js} +1 -1
  267. package/dist/genesys-webcomponents/{p-06a92400.entry.js → p-5f22855f.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/{p-dc84cec7.js → p-6517ed89.js} +1 -1
  269. package/dist/genesys-webcomponents/{p-b5eb0d49.entry.js → p-651e350f.entry.js} +1 -1
  270. package/dist/genesys-webcomponents/{p-d107d384.entry.js → p-65d42429.entry.js} +1 -1
  271. package/dist/genesys-webcomponents/{p-bb29dc80.entry.js → p-6748082f.entry.js} +1 -1
  272. package/dist/genesys-webcomponents/p-6846d279.entry.js +1 -0
  273. package/dist/genesys-webcomponents/{p-a3f9f44a.entry.js → p-68868258.entry.js} +1 -1
  274. package/dist/genesys-webcomponents/{p-8056c132.entry.js → p-698f98c2.entry.js} +1 -1
  275. package/dist/genesys-webcomponents/p-6bff9eb3.entry.js +1 -0
  276. package/dist/genesys-webcomponents/p-6c5ba842.entry.js +1 -0
  277. package/dist/genesys-webcomponents/{p-30598362.entry.js → p-6cddf4cc.entry.js} +1 -1
  278. package/dist/genesys-webcomponents/{p-bfa89db2.entry.js → p-6ceceb96.entry.js} +1 -1
  279. package/dist/genesys-webcomponents/{p-b90e7457.entry.js → p-6d16729f.entry.js} +1 -1
  280. package/dist/genesys-webcomponents/{p-a5d5ba91.entry.js → p-6d7e7a71.entry.js} +1 -1
  281. package/dist/genesys-webcomponents/{p-dc6723ca.entry.js → p-74009863.entry.js} +1 -1
  282. package/dist/genesys-webcomponents/{p-8e592f22.entry.js → p-76f4a444.entry.js} +1 -1
  283. package/dist/genesys-webcomponents/{p-e33c43dd.entry.js → p-77e60d29.entry.js} +1 -1
  284. package/dist/genesys-webcomponents/p-795e7b1a.entry.js +1 -0
  285. package/dist/genesys-webcomponents/{p-d0abf3d7.entry.js → p-7a8c150f.entry.js} +1 -1
  286. package/dist/genesys-webcomponents/{p-855c7fcc.entry.js → p-7b4ef992.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/{p-c3980b75.entry.js → p-7be9b209.entry.js} +1 -1
  288. package/dist/genesys-webcomponents/p-7c5d3642.entry.js +1 -0
  289. package/dist/genesys-webcomponents/p-7dd13d10.entry.js +1 -0
  290. package/dist/genesys-webcomponents/{p-40744307.entry.js → p-8212cb52.entry.js} +1 -1
  291. package/dist/genesys-webcomponents/{p-8d693163.entry.js → p-8f49f6a8.entry.js} +1 -1
  292. package/dist/genesys-webcomponents/{p-0b01b76e.entry.js → p-91d49ac1.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/{p-c9ada3f6.entry.js → p-95fc6119.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/{p-c4bdc563.entry.js → p-983c952f.entry.js} +1 -1
  295. package/dist/genesys-webcomponents/{p-92095ee1.entry.js → p-9b6831a5.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-f06e2d5d.entry.js → p-9eb61bd3.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/{p-75f9676c.entry.js → p-a4dbc7d1.entry.js} +1 -1
  298. package/dist/genesys-webcomponents/{p-da2efa1d.entry.js → p-a91103ab.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/{p-f2f53d61.entry.js → p-aaaf2fd9.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/p-b030d487.entry.js +1 -0
  301. package/dist/genesys-webcomponents/{p-81a01440.entry.js → p-b0d4ece6.entry.js} +1 -1
  302. package/dist/genesys-webcomponents/{p-46980018.entry.js → p-b2d32b54.entry.js} +1 -1
  303. package/dist/genesys-webcomponents/{p-46abdd72.entry.js → p-ba975521.entry.js} +1 -1
  304. package/dist/genesys-webcomponents/{p-1b35958d.entry.js → p-bcbab73b.entry.js} +1 -1
  305. package/dist/genesys-webcomponents/{p-0212b664.entry.js → p-bd630920.entry.js} +1 -1
  306. package/dist/genesys-webcomponents/{p-e01bffb0.entry.js → p-bdb75a90.entry.js} +1 -1
  307. package/dist/genesys-webcomponents/{p-90379a2c.entry.js → p-bfe3a794.entry.js} +1 -1
  308. package/dist/genesys-webcomponents/p-c2485ed4.entry.js +1 -0
  309. package/dist/genesys-webcomponents/{p-532ea636.entry.js → p-c313de7b.entry.js} +1 -1
  310. package/dist/genesys-webcomponents/p-c4ed84fa.entry.js +1 -0
  311. package/dist/genesys-webcomponents/{p-7b43f40b.entry.js → p-c609ed18.entry.js} +1 -1
  312. package/dist/genesys-webcomponents/p-c8580fbf.entry.js +1 -0
  313. package/dist/genesys-webcomponents/{p-1f39a936.entry.js → p-ca143a76.entry.js} +1 -1
  314. package/dist/genesys-webcomponents/p-ca5e2ee3.entry.js +1 -0
  315. package/dist/genesys-webcomponents/{p-3ad223ac.entry.js → p-cb2c7de5.entry.js} +1 -1
  316. package/dist/genesys-webcomponents/{p-119bf1e5.entry.js → p-ccfcec33.entry.js} +1 -1
  317. package/dist/genesys-webcomponents/{p-dfc7c240.entry.js → p-d9f31512.entry.js} +1 -1
  318. package/dist/genesys-webcomponents/p-e7ea294d.entry.js +1 -0
  319. package/dist/genesys-webcomponents/p-ecac9a08.entry.js +1 -0
  320. package/dist/genesys-webcomponents/{p-0978a177.entry.js → p-eeb5254d.entry.js} +1 -1
  321. package/dist/genesys-webcomponents/{p-ffe2a7bc.entry.js → p-f03c03d4.entry.js} +1 -1
  322. package/dist/genesys-webcomponents/{p-9f919a75.entry.js → p-f4b602e0.entry.js} +1 -1
  323. package/dist/genesys-webcomponents/{p-806357bf.entry.js → p-f58ff022.entry.js} +1 -1
  324. package/dist/genesys-webcomponents/{p-82b561eb.entry.js → p-fdbd6834.entry.js} +1 -1
  325. package/dist/stencil-wrapper.js +1 -1
  326. package/dist/types/components/{stable/gux-advanced-dropdown → legacy/gux-advanced-dropdown-legacy}/gux-advanced-dropdown.d.ts +1 -1
  327. package/dist/types/components/stable/gux-button-multi/gux-button-multi.d.ts +0 -4
  328. package/dist/types/components/stable/gux-loading-message/gux-loading-message.d.ts +0 -10
  329. package/dist/types/components/{beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-buttons-beta.d.ts → stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.d.ts} +3 -3
  330. package/dist/types/components/{beta/gux-pagination-beta/gux-pagination-item-counts-beta/gux-pagination-item-counts-beta.d.ts → stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.d.ts} +1 -1
  331. package/dist/types/components/{beta/gux-pagination-beta/gux-pagination-items-per-page-beta/gux-pagination-items-per-page-beta.d.ts → stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.d.ts} +2 -2
  332. package/dist/types/components/{beta/gux-pagination-beta/gux-pagination-beta.d.ts → stable/gux-pagination/gux-pagination.d.ts} +4 -4
  333. package/dist/types/components/stable/gux-pagination/gux-pagination.types.d.ts +2 -0
  334. package/dist/types/components/{beta → stable}/gux-tag/gux-tag.d.ts +3 -16
  335. package/dist/types/components/stable/gux-tag/gux-tag.types.d.ts +1 -0
  336. package/dist/types/components.d.ts +86 -145
  337. package/dist/types/stencil-wrapper.d.ts +1 -1
  338. package/package.json +1 -1
  339. package/dist/cjs/gux-advanced-dropdown.cjs.entry.js +0 -218
  340. package/dist/cjs/gux-pagination-items-per-page-beta.cjs.entry.js +0 -46
  341. package/dist/cjs/gux-tab-panel-beta.cjs.entry.js +0 -34
  342. package/dist/cjs/gux-tag-beta.cjs.entry.js +0 -84
  343. package/dist/collection/components/beta/gux-tab-panel-beta/gux-tab-panel-beta.css +0 -15
  344. package/dist/collection/components/beta/gux-tab-panel-beta/gux-tab-panel-beta.js +0 -107
  345. package/dist/collection/components/beta/gux-tag/gux-tag.css +0 -461
  346. package/dist/collection/components/stable/gux-advanced-dropdown/gux-advanced-dropdown.css +0 -85
  347. package/dist/collection/components/stable/gux-loading-message/gux-loading-message-constants.js +0 -5
  348. package/dist/collection/components/stable/gux-loading-message/gux-loading-message-size.types.js +0 -1
  349. package/dist/esm/gux-advanced-dropdown.entry.js +0 -214
  350. package/dist/esm/gux-pagination-items-per-page-beta.entry.js +0 -42
  351. package/dist/esm/gux-tab-panel-beta.entry.js +0 -30
  352. package/dist/esm/gux-tag-beta.entry.js +0 -80
  353. package/dist/genesys-webcomponents/p-0af113c1.entry.js +0 -1
  354. package/dist/genesys-webcomponents/p-0b14794a.entry.js +0 -1
  355. package/dist/genesys-webcomponents/p-12e01c6c.entry.js +0 -1
  356. package/dist/genesys-webcomponents/p-15182c48.entry.js +0 -1
  357. package/dist/genesys-webcomponents/p-1a7b3efe.entry.js +0 -1
  358. package/dist/genesys-webcomponents/p-1b9ae90d.entry.js +0 -1
  359. package/dist/genesys-webcomponents/p-27a62f54.entry.js +0 -1
  360. package/dist/genesys-webcomponents/p-3881c2c8.entry.js +0 -1
  361. package/dist/genesys-webcomponents/p-43d22f9f.entry.js +0 -1
  362. package/dist/genesys-webcomponents/p-5f0d8583.entry.js +0 -1
  363. package/dist/genesys-webcomponents/p-81c3fa5a.entry.js +0 -1
  364. package/dist/genesys-webcomponents/p-844dfb88.entry.js +0 -1
  365. package/dist/genesys-webcomponents/p-948ad846.entry.js +0 -1
  366. package/dist/genesys-webcomponents/p-99e5fc7e.entry.js +0 -1
  367. package/dist/genesys-webcomponents/p-a7ad3633.entry.js +0 -1
  368. package/dist/genesys-webcomponents/p-c6a3a814.entry.js +0 -1
  369. package/dist/genesys-webcomponents/p-d2db8cfb.entry.js +0 -1
  370. package/dist/genesys-webcomponents/p-d2ec2410.entry.js +0 -1
  371. package/dist/genesys-webcomponents/p-d6b3146d.entry.js +0 -1
  372. package/dist/genesys-webcomponents/p-e73a5b4e.entry.js +0 -1
  373. package/dist/genesys-webcomponents/p-f2fea056.entry.js +0 -1
  374. package/dist/genesys-webcomponents/p-f4048683.entry.js +0 -1
  375. package/dist/genesys-webcomponents/p-f51f3281.entry.js +0 -1
  376. package/dist/genesys-webcomponents/p-f9768ae7.entry.js +0 -1
  377. package/dist/types/components/beta/gux-pagination-beta/gux-pagination-beta.types.d.ts +0 -2
  378. package/dist/types/components/beta/gux-tab-panel-beta/gux-tab-panel-beta.d.ts +0 -18
  379. package/dist/types/components/beta/gux-tag/gux-tag.types.d.ts +0 -2
  380. package/dist/types/components/stable/gux-loading-message/gux-loading-message-constants.d.ts +0 -5
  381. package/dist/types/components/stable/gux-loading-message/gux-loading-message-size.types.d.ts +0 -1
  382. /package/dist/cjs/{en-b3076cac.js → en-2a12d7c4.js} +0 -0
  383. /package/dist/collection/components/legacy/gux-pagination-legacy/{gux-pagination-buttons → gux-pagination-buttons-legacy}/gux-pagination-button.service.js +0 -0
  384. /package/dist/collection/components/legacy/gux-pagination-legacy/{gux-pagination-buttons → gux-pagination-buttons-legacy}/gux-pagination-buttons-legacy.css +0 -0
  385. /package/dist/collection/components/legacy/gux-pagination-legacy/{gux-pagination-buttons → gux-pagination-buttons-legacy}/gux-pagination-buttons.js +0 -0
  386. /package/dist/collection/components/legacy/gux-pagination-legacy/{gux-pagination-item-counts → gux-pagination-item-counts-legacy}/gux-pagination-item-counts-legacy.css +0 -0
  387. /package/dist/collection/components/legacy/gux-pagination-legacy/{gux-pagination-item-counts → gux-pagination-item-counts-legacy}/gux-pagination-item-counts.js +0 -0
  388. /package/dist/collection/components/legacy/gux-pagination-legacy/{gux-pagination-items-per-page → gux-pagination-items-per-page-legacy}/gux-pagination-items-per-page-legacy.css +0 -0
  389. /package/dist/collection/components/legacy/gux-pagination-legacy/{gux-pagination-items-per-page → gux-pagination-items-per-page-legacy}/gux-pagination-items-per-page.js +0 -0
  390. /package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-button-beta.service.js → stable/gux-pagination/gux-pagination-buttons/gux-pagination-button.service.js} +0 -0
  391. /package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-buttons-beta → stable/gux-pagination/gux-pagination-buttons}/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.css +0 -0
  392. /package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-buttons-beta → stable/gux-pagination/gux-pagination-buttons}/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.js +0 -0
  393. /package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-beta.css → stable/gux-pagination/gux-pagination.css} +0 -0
  394. /package/dist/collection/components/{beta/gux-pagination-beta/gux-pagination-beta.types.js → stable/gux-pagination/gux-pagination.types.js} +0 -0
  395. /package/dist/collection/components/{beta → stable}/gux-tag/gux-tag.types.js +0 -0
  396. /package/dist/esm/{en-5d726a81.js → en-6c4aef39.js} +0 -0
  397. /package/dist/genesys-webcomponents/{p-89af02eb.js → p-abb9b5f7.js} +0 -0
  398. /package/dist/types/components/{stable/gux-advanced-dropdown → legacy/gux-advanced-dropdown-legacy}/dropdown-option/gux-dropdown-option.d.ts +0 -0
  399. /package/dist/types/components/legacy/gux-pagination-legacy/{gux-pagination-buttons → gux-pagination-buttons-legacy}/gux-pagination-button.service.d.ts +0 -0
  400. /package/dist/types/components/legacy/gux-pagination-legacy/{gux-pagination-buttons → gux-pagination-buttons-legacy}/gux-pagination-buttons.d.ts +0 -0
  401. /package/dist/types/components/legacy/gux-pagination-legacy/{gux-pagination-item-counts → gux-pagination-item-counts-legacy}/gux-pagination-item-counts.d.ts +0 -0
  402. /package/dist/types/components/legacy/gux-pagination-legacy/{gux-pagination-items-per-page → gux-pagination-items-per-page-legacy}/gux-pagination-items-per-page.d.ts +0 -0
  403. /package/dist/types/components/{beta/gux-pagination-beta/gux-pagination-buttons-beta/gux-pagination-button-beta.service.d.ts → stable/gux-pagination/gux-pagination-buttons/gux-pagination-button.service.d.ts} +0 -0
  404. /package/dist/types/components/{beta/gux-pagination-beta/gux-pagination-buttons-beta → stable/gux-pagination/gux-pagination-buttons}/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.d.ts +0 -0
@@ -1,214 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-0b66fe2c.js';
2
- import { o as onMutation } from './on-mutation-d500715c.js';
3
- import { O as OnClickOutside } from './on-click-outside-bc432a79.js';
4
- import { a as afterNextRenderTimeout } from './after-next-render-ed0f7dcd.js';
5
- import { t as trackComponent } from './usage-f03a9e96.js';
6
- import { b as buildI18nForComponent } from './index-694d55cf.js';
7
- import './get-closest-element-1597503c.js';
8
-
9
- const searchAria = "Search";
10
- const advancedDropDownResources = {
11
- searchAria: searchAria
12
- };
13
-
14
- const guxAdvancedDropdownCss = ":host{color:#2e394c}gux-popup{display:block;margin:4px 0}gux-popup .gux-select-field{position:relative;width:100%;height:32px}gux-popup .gux-select-field a.gux-select-input{position:absolute;inset:0;padding:6px 24px 6px 12px;overflow:hidden;color:#2e394c;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}gux-popup .gux-select-field a.gux-select-input .gux-select-placeholder,gux-popup .gux-select-field a.gux-select-input .gux-select-value{line-height:20px}gux-popup .gux-select-field a.gux-select-input .gux-select-placeholder{color:#596373}gux-popup .gux-select-field a.gux-select-input:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(117, 168, 255, 0.5)}gux-popup .gux-select-field .gux-icon-wrapper{position:absolute;top:1px;right:8px;bottom:0;display:flex;align-items:center;overflow:hidden;cursor:pointer}gux-popup .gux-select-field .gux-icon-wrapper gux-icon{width:16px;height:16px;color:#596373}gux-popup .gux-select-field:hover .gux-icon-wrapper gux-icon{color:#2e394c}gux-popup .gux-advanced-dropdown-menu{width:100%;background:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 0 2px 0 rgba(32, 41, 55, 0.24);box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}gux-popup .gux-advanced-dropdown-menu .gux-dropdown-menu-container gux-form-field-search{margin:8px 16px}gux-popup .gux-advanced-dropdown-menu .gux-dropdown-menu-container gux-form-field-search input::-webkit-search-cancel-button,gux-popup .gux-advanced-dropdown-menu .gux-dropdown-menu-container gux-form-field-search input::-webkit-search-results-button,gux-popup .gux-advanced-dropdown-menu .gux-dropdown-menu-container gux-form-field-search input::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}gux-popup .gux-dropdown-options{padding:8px 0;margin:0;overflow-y:auto;color:#2e394c;background:#fdfdfd;border-radius:4px;box-shadow:none}gux-popup::part(gux-popup-container){width:inherit}";
15
-
16
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
17
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
18
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
19
- r = Reflect.decorate(decorators, target, key, desc);
20
- else
21
- for (var i = decorators.length - 1; i >= 0; i--)
22
- if (d = decorators[i])
23
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
24
- return c > 3 && r && Object.defineProperty(target, key, r), r;
25
- };
26
- const GuxAdvancedDropdown = class {
27
- constructor(hostRef) {
28
- registerInstance(this, hostRef);
29
- this.input = createEvent(this, "input", 7);
30
- this.filter = createEvent(this, "filter", 7);
31
- this.disabled = false;
32
- this.placeholder = undefined;
33
- this.noFilter = false;
34
- this.filterDebounceTimeout = 500;
35
- this.dropdownHeight = '320px';
36
- this.srLabelledby = undefined;
37
- this.opened = undefined;
38
- this.currentlySelectedOption = undefined;
39
- this.selectionOptions = undefined;
40
- }
41
- watchValue(newValue) {
42
- if (this.opened && newValue) {
43
- this.closeDropdown(false);
44
- }
45
- }
46
- get value() {
47
- var _a;
48
- return (_a = this.currentlySelectedOption) === null || _a === void 0 ? void 0 : _a.text;
49
- }
50
- /**
51
- * Gets the currently selected values.
52
- *
53
- * @returns The array of selected values.
54
- */
55
- getSelectedValues() {
56
- // Once multi-select gets added there will
57
- // be multiple values selectable.
58
- return Promise.resolve([this.value]);
59
- }
60
- // eslint-disable-next-line @typescript-eslint/require-await
61
- async setLabeledBy(id) {
62
- this.srLabelledby = id;
63
- }
64
- onClickOutside() {
65
- this.closeDropdown(false);
66
- }
67
- async componentWillLoad() {
68
- trackComponent(this.root);
69
- this.i18n = await buildI18nForComponent(this.root, advancedDropDownResources);
70
- this.handleSelectionChange = this.handleSelectionChange.bind(this);
71
- this.updateSelectionState();
72
- this.addOptionListener();
73
- this.slotObserver = onMutation(this.root, () => this.updateSelectionState());
74
- }
75
- disconnectedCallback() {
76
- if (this.slotObserver) {
77
- this.slotObserver.disconnect();
78
- }
79
- }
80
- render() {
81
- return (h("gux-popup", { expanded: this.opened, disabled: this.disabled }, h("div", { slot: "target", class: "gux-select-field", onMouseDown: () => this.inputMouseDown() }, h("a", { ref: el => (this.inputBox = el), class: "gux-select-input", "aria-labelledby": this.srLabelledby, tabindex: "0", onKeyDown: e => this.inputKeyDown(e) }, this.placeholder && !this.value && (h("span", { class: "gux-select-placeholder", title: this.placeholder }, this.placeholder)), this.value && (h("span", { class: "gux-select-value", title: this.value }, this.value))), h("div", { class: "gux-icon-wrapper" }, h("gux-icon", { decorative: true, "icon-name": "chevron-small-down" }))), h("div", { slot: "popup", class: "gux-advanced-dropdown-menu" }, h("div", { class: "gux-dropdown-menu-container" }, h("gux-form-field-search", { "label-position": "screenreader" }, h("label", { slot: "label" }, this.i18n('searchAria')), h("input", { slot: "input", type: "search", onInput: (event) => {
82
- this.handleSearchInput(event);
83
- }, ref: el => (this.searchInput = el) })), h("div", { class: "gux-dropdown-options", style: { maxHeight: this.dropdownHeight }, onKeyDown: e => this.optionsKeyDown(e) }, h("slot", null))))));
84
- }
85
- updateSelectionState() {
86
- this.selectionOptions = this.getSelectionOptions();
87
- this.currentlySelectedOption = this.selectionOptions.find(option => option.selected);
88
- }
89
- addOptionListener() {
90
- this.root.addEventListener('selectedChanged', (event) => this.handleSelectionChange(event));
91
- }
92
- handleSelectionChange({ target }) {
93
- const option = target;
94
- this.closeDropdown(true);
95
- if (this.currentlySelectedOption === option) {
96
- return;
97
- }
98
- if (this.currentlySelectedOption) {
99
- this.currentlySelectedOption.selected = false;
100
- }
101
- this.currentlySelectedOption = option;
102
- this.input.emit(option.value);
103
- }
104
- getSelectionOptions() {
105
- const options = this.root.querySelectorAll('gux-dropdown-option');
106
- return Array.from(options);
107
- }
108
- inputMouseDown() {
109
- if (this.disabled) {
110
- return;
111
- }
112
- if (this.opened) {
113
- this.closeDropdown(true);
114
- }
115
- else {
116
- this.openDropdown(false);
117
- }
118
- }
119
- getFocusIndex() {
120
- return this.selectionOptions.findIndex(option => {
121
- return option.matches(':focus');
122
- });
123
- }
124
- optionsKeyDown(event) {
125
- switch (event.key) {
126
- case 'ArrowUp': {
127
- event.preventDefault();
128
- const focusIndex = this.getFocusIndex();
129
- if (focusIndex > 0) {
130
- this.selectionOptions[focusIndex - 1].focus();
131
- }
132
- break;
133
- }
134
- case 'ArrowDown': {
135
- event.preventDefault();
136
- const focusIndex = this.getFocusIndex();
137
- if (focusIndex < this.selectionOptions.length - 1) {
138
- this.selectionOptions[focusIndex + 1].focus();
139
- }
140
- break;
141
- }
142
- case 'Home':
143
- if (!this.selectionOptions.length) {
144
- return;
145
- }
146
- this.selectionOptions[0].focus();
147
- break;
148
- case 'End':
149
- if (!this.selectionOptions.length) {
150
- return;
151
- }
152
- this.selectionOptions[this.selectionOptions.length - 1].focus();
153
- break;
154
- }
155
- }
156
- inputKeyDown(event) {
157
- switch (event.key) {
158
- case 'ArrowUp':
159
- case 'ArrowDown':
160
- case ' ':
161
- this.openDropdown(true);
162
- break;
163
- }
164
- }
165
- handleSearchInput(event) {
166
- event.stopPropagation();
167
- clearTimeout(this.filterDebounceTimer);
168
- this.filterDebounceTimer = setTimeout(() => this.searchRequested(), this.filterDebounceTimeout);
169
- }
170
- searchRequested() {
171
- const value = this.searchInput.value;
172
- this.filter.emit(value);
173
- this.setFilteredOptions();
174
- }
175
- setFilteredOptions() {
176
- const value = this.searchInput.value;
177
- if (!this.noFilter) {
178
- for (const option of this.selectionOptions) {
179
- void option.shouldFilter(value).then(isFiltered => {
180
- option.filtered = isFiltered;
181
- });
182
- }
183
- }
184
- }
185
- changeFocusToSearch() {
186
- afterNextRenderTimeout(() => {
187
- this.searchInput.focus();
188
- });
189
- }
190
- openDropdown(focusSearch) {
191
- this.opened = true;
192
- if (focusSearch) {
193
- this.changeFocusToSearch();
194
- }
195
- }
196
- closeDropdown(focus) {
197
- this.opened = false;
198
- this.searchInput.value = '';
199
- this.setFilteredOptions();
200
- if (focus) {
201
- this.inputBox.focus();
202
- }
203
- }
204
- get root() { return getElement(this); }
205
- static get watchers() { return {
206
- "disabled": ["watchValue"]
207
- }; }
208
- };
209
- __decorate([
210
- OnClickOutside({ triggerEvents: 'mousedown' })
211
- ], GuxAdvancedDropdown.prototype, "onClickOutside", null);
212
- GuxAdvancedDropdown.style = guxAdvancedDropdownCss;
213
-
214
- export { GuxAdvancedDropdown as gux_advanced_dropdown };
@@ -1,42 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-0b66fe2c.js';
2
- import { b as buildI18nForComponent } from './index-694d55cf.js';
3
- import './get-closest-element-1597503c.js';
4
-
5
- const perPage = "per page";
6
- const itemsPerPage = "Items per page";
7
- const rangeSelected = "Items per page dropdown, {range} selected";
8
- const paginationResources = {
9
- perPage: perPage,
10
- itemsPerPage: itemsPerPage,
11
- rangeSelected: rangeSelected
12
- };
13
-
14
- const guxPaginationItemsPerPageBetaCss = "gux-pagination-items-per-page-beta .gux-pagination-items-per-page-container{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);align-items:center;justify-content:center}gux-pagination-items-per-page-beta .gux-pagination-items-per-page-container>div{flex:0 1 auto;align-self:auto;order:0;white-space:nowrap}gux-pagination-items-per-page-beta .gux-pagination-items-per-page-container .gux-pagination-items-per-page-picker gux-dropdown{display:inline-block;width:64px}gux-pagination-items-per-page-beta .gux-pagination-items-per-page-container gux-dropdown div.gux-dropdown .gux-options.gux-opened{bottom:100%;display:flex;flex-direction:column-reverse}gux-pagination-items-per-page-beta .gux-pagination-items-per-page-container .gux-pagination-per-page{font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight)}";
15
-
16
- const GuxPaginationItemsPerPageBeta = class {
17
- constructor(hostRef) {
18
- registerInstance(this, hostRef);
19
- this.internalitemsperpagechange = createEvent(this, "internalitemsperpagechange", 3);
20
- this.itemsPerPage = 25;
21
- }
22
- handleChange(event) {
23
- event.stopPropagation();
24
- const newItemsPerPageValue = parseInt(this.dropdownElement.value, 10);
25
- this.internalitemsperpagechange.emit(newItemsPerPageValue);
26
- }
27
- async componentWillLoad() {
28
- this.i18n = await buildI18nForComponent(this.root, paginationResources);
29
- }
30
- getDropdown() {
31
- return (h("gux-dropdown", { ref: el => (this.dropdownElement = el), value: `${this.itemsPerPage}`, "aria-label": this.i18n('rangeSelected', {
32
- range: this.itemsPerPage
33
- }) }, h("gux-listbox", { "aria-label": this.i18n('itemsPerPage') }, h("gux-option", { value: "25" }, "25"), h("gux-option", { value: "50" }, "50"), h("gux-option", { value: "75" }, "75"), h("gux-option", { value: "100" }, "100"))));
34
- }
35
- render() {
36
- return (h("div", { class: "gux-pagination-items-per-page-container" }, h("div", { class: "gux-pagination-items-per-page-picker" }, this.getDropdown()), h("div", { class: "gux-pagination-per-page" }, this.i18n('perPage'))));
37
- }
38
- get root() { return getElement(this); }
39
- };
40
- GuxPaginationItemsPerPageBeta.style = guxPaginationItemsPerPageBetaCss;
41
-
42
- export { GuxPaginationItemsPerPageBeta as gux_pagination_items_per_page_beta };
@@ -1,30 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-0b66fe2c.js';
2
-
3
- const guxTabPanelBetaCss = ":host{height:calc(100% - 57px)}:host(:not([hidden])){display:flex;flex-grow:1}:host(:focus){outline:none}:host(:focus-visible){outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}";
4
-
5
- const GuxTabPanelBeta = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.guxactivepanelchange = createEvent(this, "guxactivepanelchange", 7);
9
- this.tabId = undefined;
10
- this.active = false;
11
- }
12
- // eslint-disable-next-line @typescript-eslint/require-await
13
- async guxSetActive(active) {
14
- this.active = active;
15
- }
16
- watchActivePanel() {
17
- if (this.active === true) {
18
- this.guxactivepanelchange.emit(this.tabId);
19
- }
20
- }
21
- render() {
22
- return (h(Host, { id: `gux-${this.tabId}-panel`, role: "tabpanel", "aria-labelledby": `gux-${this.tabId}-tab`, tabIndex: 0, hidden: !this.active }, h("slot", null)));
23
- }
24
- static get watchers() { return {
25
- "active": ["watchActivePanel"]
26
- }; }
27
- };
28
- GuxTabPanelBeta.style = guxTabPanelBetaCss;
29
-
30
- export { GuxTabPanelBeta as gux_tab_panel_beta };
@@ -1,80 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-0b66fe2c.js';
2
- import { b as buildI18nForComponent } from './index-694d55cf.js';
3
- import { t as trackComponent } from './usage-f03a9e96.js';
4
- import './get-closest-element-1597503c.js';
5
-
6
- const tag = "tag with label: {label}";
7
- const tagResources = {
8
- tag: tag,
9
- "tag-disabled": "disabled tag with label: {label}",
10
- "remove-tag": "Remove tag with label: {label}"
11
- };
12
-
13
- const guxTagCss = ":host{display:inline-block}.gux-tag{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:flex-start;padding:2px 8px;font-size:12px;font-weight:bold;color:#fdfdfd;background-color:#2e394c;border-radius:4px}.gux-tag gux-tooltip-title{white-space:nowrap;cursor:default}.gux-tag gux-tooltip-title ::slotted(gux-icon){height:20px;font-size:16px}.gux-tag .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gux-tag .gux-tag-remove-button{all:unset;display:flex;align-content:center;align-items:center;justify-content:center;margin-left:8px}.gux-tag .gux-tag-remove-button:not(:disabled):hover{cursor:pointer}.gux-tag .gux-tag-remove-button .gux-tag-remove-icon{width:16px;height:16px;border-radius:25%}.gux-tag .gux-tag-remove-button:focus-within .gux-tag-remove-icon{outline:2px solid #aac9ff;outline-offset:0}.gux-tag.gux-disabled{background-color:rgba(46, 57, 76, 0.5)}.gux-tag.gux-default{background-color:#2e394c}.gux-tag.gux-default.gux-disabled{background-color:rgba(46, 57, 76, 0.5)}.gux-tag.gux-default-subtle{color:#2e394c;background-color:#e2e6ee}.gux-tag.gux-default-subtle.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(226, 230, 238, 0.5)}.gux-tag.gux-navy{background-color:#203b73}.gux-tag.gux-navy.gux-disabled{background-color:rgba(32, 59, 115, 0.5)}.gux-tag.gux-blue{color:#2e394c;background-color:#75a8ff}.gux-tag.gux-blue.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(117, 168, 255, 0.5)}.gux-tag.gux-electric-purple{background-color:#8452cf}.gux-tag.gux-electric-purple.gux-disabled{background-color:rgba(132, 82, 207, 0.5)}.gux-tag.gux-aqua-green{color:#202937;background-color:#1da8b3}.gux-tag.gux-aqua-green.gux-disabled{color:rgba(32, 41, 55, 0.5);background-color:rgba(29, 168, 179, 0.5)}.gux-tag.gux-fuchsia{color:#000;background-color:#cc3ebe}.gux-tag.gux-fuchsia.gux-disabled{color:rgba(0, 0, 0, 0.5);background-color:rgba(204, 62, 190, 0.5)}.gux-tag.gux-dark-purple{background-color:#5e5782}.gux-tag.gux-dark-purple.gux-disabled{background-color:rgba(94, 87, 130, 0.5)}.gux-tag.gux-bubblegum-pink{color:#2e394c;background-color:#ff8fdd}.gux-tag.gux-bubblegum-pink.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(255, 143, 221, 0.5)}.gux-tag.gux-olive-green{color:#151d28;background-color:#868c1e}.gux-tag.gux-olive-green.gux-disabled{color:rgba(21, 29, 40, 0.5);background-color:rgba(134, 140, 30, 0.5)}.gux-tag.gux-lilac{color:#2e394c;background-color:#b5b5eb}.gux-tag.gux-lilac.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(181, 181, 235, 0.5)}.gux-tag.gux-alert-yellow-green{color:#2e394c;background-color:#ddd933}.gux-tag.gux-alert-yellow-green.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(221, 217, 51, 0.5)}.gux-tag.gux-blue-10{background-color:#172b52}.gux-tag.gux-blue-10.gux-disabled{background-color:rgba(23, 43, 82, 0.5)}.gux-tag.gux-blue-20{background-color:#1c3363}.gux-tag.gux-blue-20.gux-disabled{background-color:rgba(28, 51, 99, 0.5)}.gux-tag.gux-blue-30{background-color:#203b73}.gux-tag.gux-blue-30.gux-disabled{background-color:rgba(32, 59, 115, 0.5)}.gux-tag.gux-blue-40{background-color:#23478f}.gux-tag.gux-blue-40.gux-disabled{background-color:rgba(35, 71, 143, 0.5)}.gux-tag.gux-blue-50{background-color:#2754ac}.gux-tag.gux-blue-50.gux-disabled{background-color:rgba(39, 84, 172, 0.5)}.gux-tag.gux-blue-60{background-color:#2a60c8}.gux-tag.gux-blue-60.gux-disabled{background-color:rgba(42, 96, 200, 0.5)}.gux-tag.gux-blue-70{color:#151d28;background-color:#5084e3}.gux-tag.gux-blue-70.gux-disabled{color:rgba(21, 29, 40, 0.5);background-color:rgba(80, 132, 227, 0.5)}.gux-tag.gux-blue-80{color:#2e394c;background-color:#75a8ff}.gux-tag.gux-blue-80.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(117, 168, 255, 0.5)}.gux-tag.gux-blue-90{color:#2e394c;background-color:#aac9ff}.gux-tag.gux-blue-90.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(170, 201, 255, 0.5)}.gux-tag.gux-blue-100{color:#2e394c;background-color:#deeaff}.gux-tag.gux-blue-100.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(222, 234, 255, 0.5)}.gux-tag.gux-alert-red-10{background-color:#520404}.gux-tag.gux-alert-red-10.gux-disabled{background-color:rgba(82, 4, 4, 0.5)}.gux-tag.gux-alert-red-20{background-color:#700505}.gux-tag.gux-alert-red-20.gux-disabled{background-color:rgba(112, 5, 5, 0.5)}.gux-tag.gux-alert-red-30{background-color:#8f0707}.gux-tag.gux-alert-red-30.gux-disabled{background-color:rgba(143, 7, 7, 0.5)}.gux-tag.gux-alert-red-40{background-color:#ad0808}.gux-tag.gux-alert-red-40.gux-disabled{background-color:rgba(173, 8, 8, 0.5)}.gux-tag.gux-alert-red-50{background-color:#cc0a0a}.gux-tag.gux-alert-red-50.gux-disabled{background-color:rgba(204, 10, 10, 0.5)}.gux-tag.gux-alert-red-60{background-color:#ea0b0b}.gux-tag.gux-alert-red-60.gux-disabled{background-color:rgba(234, 11, 11, 0.5)}.gux-tag.gux-alert-red-70{color:#000;background-color:#ef4343}.gux-tag.gux-alert-red-70.gux-disabled{color:rgba(0, 0, 0, 0.5);background-color:rgba(239, 67, 67, 0.5)}.gux-tag.gux-alert-red-80{color:#283243;background-color:#f37a7a}.gux-tag.gux-alert-red-80.gux-disabled{color:rgba(40, 50, 67, 0.5);background-color:rgba(243, 122, 122, 0.5)}.gux-tag.gux-alert-red-90{color:#2e394c;background-color:#f8b2b2}.gux-tag.gux-alert-red-90.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(248, 178, 178, 0.5)}.gux-tag.gux-alert-red-100{color:#2e394c;background-color:#fceaea}.gux-tag.gux-alert-red-100.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(252, 234, 234, 0.5)}.gux-tag.gux-alert-green-10{background-color:#0d3d00}.gux-tag.gux-alert-green-10.gux-disabled{background-color:rgba(13, 61, 0, 0.5)}.gux-tag.gux-alert-green-20{background-color:#164b08}.gux-tag.gux-alert-green-20.gux-disabled{background-color:rgba(22, 75, 8, 0.5)}.gux-tag.gux-alert-green-30{background-color:#205a10}.gux-tag.gux-alert-green-30.gux-disabled{background-color:rgba(32, 90, 16, 0.5)}.gux-tag.gux-alert-green-40{background-color:#296817}.gux-tag.gux-alert-green-40.gux-disabled{background-color:rgba(41, 104, 23, 0.5)}.gux-tag.gux-alert-green-50{background-color:#33771f}.gux-tag.gux-alert-green-50.gux-disabled{background-color:rgba(51, 119, 31, 0.5)}.gux-tag.gux-alert-green-60{background-color:#3c8527}.gux-tag.gux-alert-green-60.gux-disabled{background-color:rgba(60, 133, 39, 0.5)}.gux-tag.gux-alert-green-70{color:#202937;background-color:#69a358}.gux-tag.gux-alert-green-70.gux-disabled{color:rgba(32, 41, 55, 0.5);background-color:rgba(105, 163, 88, 0.5)}.gux-tag.gux-alert-green-80{color:#2e394c;background-color:#95c189}.gux-tag.gux-alert-green-80.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(149, 193, 137, 0.5)}.gux-tag.gux-alert-green-90{color:#2e394c;background-color:#c2deb9}.gux-tag.gux-alert-green-90.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(194, 222, 185, 0.5)}.gux-tag.gux-alert-green-100{color:#2e394c;background-color:#eefcea}.gux-tag.gux-alert-green-100.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(238, 252, 234, 0.5)}.gux-tag.gux-alert-yellow-10{background-color:#523800}.gux-tag.gux-alert-yellow-10.gux-disabled{background-color:rgba(82, 56, 0, 0.5)}.gux-tag.gux-alert-yellow-20{background-color:#755000}.gux-tag.gux-alert-yellow-20.gux-disabled{background-color:rgba(117, 80, 0, 0.5)}.gux-tag.gux-alert-yellow-30{background-color:#976700}.gux-tag.gux-alert-yellow-30.gux-disabled{background-color:rgba(151, 103, 0, 0.5)}.gux-tag.gux-alert-yellow-40{color:#151d28;background-color:#ba7f00}.gux-tag.gux-alert-yellow-40.gux-disabled{color:rgba(21, 29, 40, 0.5);background-color:rgba(186, 127, 0, 0.5)}.gux-tag.gux-alert-yellow-50{color:#2e394c;background-color:#dc9600}.gux-tag.gux-alert-yellow-50.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(220, 150, 0, 0.5)}.gux-tag.gux-alert-yellow-60{color:#2e394c;background-color:#ffae00}.gux-tag.gux-alert-yellow-60.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(255, 174, 0, 0.5)}.gux-tag.gux-alert-yellow-70{color:#2e394c;background-color:#fbbe3b}.gux-tag.gux-alert-yellow-70.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(251, 190, 59, 0.5)}.gux-tag.gux-alert-yellow-80{color:#2e394c;background-color:#fcd276}.gux-tag.gux-alert-yellow-80.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(252, 210, 118, 0.5)}.gux-tag.gux-alert-yellow-90{color:#2e394c;background-color:#fce5b1}.gux-tag.gux-alert-yellow-90.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(252, 229, 177, 0.5)}.gux-tag.gux-alert-yellow-100{color:#2e394c;background-color:#fdf8ec}.gux-tag.gux-alert-yellow-100.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(253, 248, 236, 0.5)}.gux-tag.gux-brand-orange{color:#151d28;background-color:#ff4f1f}.gux-tag.gux-brand-orange.gux-disabled{color:rgba(21, 29, 40, 0.5);background-color:rgba(255, 79, 31, 0.5)}.gux-tag.gux-brand-teal{color:#283243;background-color:#00ae9e}.gux-tag.gux-brand-teal.gux-disabled{color:rgba(40, 50, 67, 0.5);background-color:rgba(0, 174, 158, 0.5)}.gux-tag.gux-brand-navy{background-color:#23395d}.gux-tag.gux-brand-navy.gux-disabled{background-color:rgba(35, 57, 93, 0.5)}.gux-tag.gux-brand-light-blue{color:#151d28;background-color:#3b90aa}.gux-tag.gux-brand-light-blue.gux-disabled{color:rgba(21, 29, 40, 0.5);background-color:rgba(59, 144, 170, 0.5)}.gux-tag.gux-brand-yellow{color:#2e394c;background-color:#ff8f14}.gux-tag.gux-brand-yellow.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(255, 143, 20, 0.5)}";
14
-
15
- const GuxTag = class {
16
- constructor(hostRef) {
17
- registerInstance(this, hostRef);
18
- this.guxdelete = createEvent(this, "guxdelete", 7);
19
- this.color = 'default';
20
- this.accent = 'default';
21
- this.value = undefined;
22
- this.disabled = false;
23
- this.removable = false;
24
- this.label = undefined;
25
- }
26
- onKeyDown(event) {
27
- switch (event.key) {
28
- case 'Backspace':
29
- case 'Delete':
30
- this.removeTag();
31
- }
32
- }
33
- removeTag() {
34
- if (this.disabled || !this.removable) {
35
- return;
36
- }
37
- this.guxdelete.emit(this.value);
38
- }
39
- onSlotChange(event) {
40
- const slotAssignedNodes = event.composedPath()[0].assignedNodes();
41
- this.label = slotAssignedNodes
42
- .map(nodeItem => nodeItem.textContent)
43
- .join('');
44
- }
45
- renderTagTitle() {
46
- return (h("gux-tooltip-title", null, h("span", null, h("slot", { "aria-hidden": "true", onSlotchange: this.onSlotChange.bind(this) }))));
47
- }
48
- renderSrText() {
49
- return (h("div", { class: "gux-sr-only" }, this.disabled
50
- ? this.i18n('tag-disabled', { label: this.label })
51
- : this.i18n('tag', { label: this.label })));
52
- }
53
- renderRemoveButton() {
54
- if (this.removable) {
55
- return (h("button", { class: "gux-tag-remove-button", onClick: this.removeTag.bind(this), type: "button", disabled: this.disabled }, h("gux-icon", { class: "gux-tag-remove-icon", "icon-name": "close", "screenreader-text": this.i18n('remove-tag', {
56
- label: this.label
57
- }) })));
58
- }
59
- }
60
- componentWillLoad() {
61
- trackComponent(this.root, {
62
- variant: this.removable ? 'removable' : 'permenant'
63
- });
64
- }
65
- async componentWillRender() {
66
- this.i18n = await buildI18nForComponent(this.root, tagResources);
67
- }
68
- render() {
69
- return (h("div", { class: {
70
- 'gux-tag': true,
71
- [`gux-${this.color}`]: true,
72
- [`gux-accent-${this.accent}`]: true,
73
- 'gux-disabled': this.disabled
74
- }, "aria-disabled": this.disabled.toString() }, this.renderTagTitle(), this.renderSrText(), this.renderRemoveButton()));
75
- }
76
- get root() { return getElement(this); }
77
- };
78
- GuxTag.style = guxTagCss;
79
-
80
- export { GuxTag as gux_tag_beta };
@@ -1 +0,0 @@
1
- import{r as o,h as r,g as t}from"./p-7d26b2e1.js";import{t as e}from"./p-dc84cec7.js";const n=class{constructor(r){o(this,r),this.type="button",this.guxTitle=void 0,this.disabled=!1,this.accent="secondary"}componentWillLoad(){e(this.root,{variant:this.accent}),this.makeSlotContentDisableable()}render(){return r("button",{type:this.type,title:this.guxTitle,disabled:this.disabled,class:`gux-${this.accent}`},r("slot",null))}makeSlotContentDisableable(){this.root.shadowRoot.addEventListener("click",(o=>{this.disabled&&(o.stopImmediatePropagation(),o.stopPropagation(),o.preventDefault())})),Array.from(this.root.children).forEach((o=>{o.addEventListener("click",(o=>{this.disabled&&(o.stopImmediatePropagation(),o.stopPropagation(),o.preventDefault())}))}))}static get delegatesFocus(){return!0}get root(){return t(this)}};n.style=":host{display:inline-block;pointer-events:none;-webkit-user-select:none;user-select:none}:host(:focus){outline:none}:host(:focus) button{outline:none}::slotted(gux-icon){width:var(--gse-ui-button-icon-size);height:var(--gse-ui-button-icon-size)}::slotted(*){padding-left:8px;vertical-align:middle}::slotted(*:first-child){padding:0}button{font-family:var(--gse-ui-button-text-fontFamily);font-weight:var(--gse-ui-button-text-fontWeight);font-size:var(--gse-ui-button-text-fontSize);line-height:var(--gse-ui-button-text-lineHeight);color:var(--gse-ui-button-secondary-default-foregroundColor);background-color:var(--gse-ui-button-secondary-default-backgroundColor);width:100%;min-width:var(--gse-ui-button-icon-only-width);height:var(--gse-ui-button-height);padding:var(--gse-ui-button-padding);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:auto;cursor:pointer;border:none;border-radius:var(--gse-ui-button-borderRadius)}button[disabled]{opacity:var(--gse-ui-button-disabled-opacity);cursor:default}button:hover:enabled{color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}button:active:enabled{color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}button:focus-visible:enabled{outline:3px solid #7b88f7;outline-offset:1px;border-radius:3px}button.gux-primary{color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}button.gux-primary:hover:enabled{color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}button.gux-primary:active:enabled{color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}button.gux-tertiary{color:var(--gse-ui-button-tertiary-default-foregroundColor);background-color:var(--gse-ui-button-tertiary-default-backgroundColor);border-width:var(--gse-ui-button-tertiary-default-border-width);border-style:var(--gse-ui-button-tertiary-default-border-style);border-color:var(--gse-ui-button-tertiary-default-border-color)}button.gux-tertiary:hover:enabled{color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}button.gux-tertiary:active:enabled{color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}button.gux-ghost{color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}button.gux-ghost:hover:enabled{color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}button.gux-ghost:active:enabled{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}button.gux-danger{color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}button.gux-danger:hover:enabled{color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}button.gux-danger:active:enabled{color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}button.gux-inline{min-width:initial;height:initial;padding:0;color:var(--gse-ui-link-default-color);background:none;border:none}button.gux-inline[disabled]{color:var(--gse-ui-link-disabled-color)}button.gux-inline:hover:enabled{text-decoration:underline;color:var(--gse-ui-link-hover-color);background:none}button.gux-inline:active:enabled{text-decoration:underline;color:var(--gse-ui-link-active-color);background:none}";export{n as gux_button}
@@ -1 +0,0 @@
1
- import{r as t,h as o,H as e,g as n}from"./p-7d26b2e1.js";import{t as r}from"./p-dc84cec7.js";import{l as a}from"./p-d0805f56.js";const u=class{constructor(o){t(this,o),this.accent="secondary"}validateSlotContent(){let t=this.root.children[0],o=t.tagName;if("SLOT"===o&&(t=t.assignedNodes()[0],o=t.tagName),"BUTTON"!==o){if("INPUT"===o){const o=t.getAttribute("type");if("button"===o||"submit"===o)return}a(this.root,'You must slot a button, input[type="button"] or input[type="submit"] element.')}}componentWillLoad(){r(this.root),this.validateSlotContent()}render(){return o(e,{accent:this.accent},o("slot",null))}get root(){return n(this)}};u.style=":host{display:inline-block;pointer-events:none}::slotted(input[type=button]),::slotted(input[type=submit]),::slotted(button){font-family:var(--gse-ui-button-text-fontFamily);font-weight:var(--gse-ui-button-text-fontWeight);font-size:var(--gse-ui-button-text-fontSize);line-height:var(--gse-ui-button-text-lineHeight);color:var(--gse-ui-button-secondary-default-foregroundColor);background-color:var(--gse-ui-button-secondary-default-backgroundColor);width:100%;min-width:var(--gse-ui-button-icon-only-width);height:var(--gse-ui-button-height);padding:var(--gse-ui-button-padding);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:auto;cursor:pointer;border:none;border-radius:var(--gse-ui-button-borderRadius)}::slotted(input[type=button][disabled]),::slotted(input[type=submit][disabled]),::slotted(button[disabled]){opacity:var(--gse-ui-button-disabled-opacity);cursor:default}::slotted(input[type=button]:focus),::slotted(input[type=submit]:focus),::slotted(button:focus){outline:none}::slotted(input[type=button]:focus-visible:enabled),::slotted(input[type=submit]:focus-visible:enabled),::slotted(button:focus-visible:enabled){outline:3px solid #7b88f7;outline-offset:1px;border-radius:3px}::slotted(input[type=button]:hover:enabled),::slotted(input[type=submit]:hover:enabled),::slotted(button:hover:enabled){color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}::slotted(input[type=button]:active:enabled),::slotted(input[type=submit]:active:enabled),::slotted(button:active:enabled){color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}:host([accent=primary]) ::slotted(input[type=button]),:host([accent=primary]) ::slotted(input[type=submit]),:host([accent=primary]) ::slotted(button){color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}:host([accent=primary]) ::slotted(input[type=button]:hover:enabled),:host([accent=primary]) ::slotted(input[type=submit]:hover:enabled),:host([accent=primary]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}:host([accent=primary]) ::slotted(input[type=button]:active:enabled),:host([accent=primary]) ::slotted(input[type=submit]:active:enabled),:host([accent=primary]) ::slotted(button:active:enabled){color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}:host([accent=tertiary]) ::slotted(input[type=button]),:host([accent=tertiary]) ::slotted(input[type=submit]),:host([accent=tertiary]) ::slotted(button){color:var(--gse-ui-button-tertiary-default-foregroundColor);background-color:var(--gse-ui-button-tertiary-default-backgroundColor);border-width:var(--gse-ui-button-tertiary-default-border-width);border-style:var(--gse-ui-button-tertiary-default-border-style);border-color:var(--gse-ui-button-tertiary-default-border-color)}:host([accent=tertiary]) ::slotted(input[type=button]:hover:enabled),:host([accent=tertiary]) ::slotted(input[type=submit]:hover:enabled),:host([accent=tertiary]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}:host([accent=tertiary]) ::slotted(input[type=button]:active:enabled),:host([accent=tertiary]) ::slotted(input[type=submit]:active:enabled),:host([accent=tertiary]) ::slotted(button:active:enabled){color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}:host([accent=ghost]) ::slotted(input[type=button]),:host([accent=ghost]) ::slotted(input[type=submit]),:host([accent=ghost]) ::slotted(button){color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}:host([accent=ghost]) ::slotted(input[type=button]:hover:enabled),:host([accent=ghost]) ::slotted(input[type=submit]:hover:enabled),:host([accent=ghost]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}:host([accent=ghost]) ::slotted(input[type=button]:active:enabled),:host([accent=ghost]) ::slotted(input[type=submit]:active:enabled),:host([accent=ghost]) ::slotted(button:active:enabled){color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}:host([accent=danger]) ::slotted(input[type=button]),:host([accent=danger]) ::slotted(input[type=submit]),:host([accent=danger]) ::slotted(button){color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}:host([accent=danger]) ::slotted(input[type=button]:hover:enabled),:host([accent=danger]) ::slotted(input[type=submit]:hover:enabled),:host([accent=danger]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}:host([accent=danger]) ::slotted(input[type=button]:active:enabled),:host([accent=danger]) ::slotted(input[type=submit]:active:enabled),:host([accent=danger]) ::slotted(button:active:enabled){color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}:host([accent=inline]){min-width:initial}:host([accent=inline]) ::slotted(input[type=button]),:host([accent=inline]) ::slotted(input[type=submit]),:host([accent=inline]) ::slotted(button){height:initial;padding:0;color:var(--gse-ui-link-default-color);background:none;border:none}:host([accent=inline]) ::slotted(input[type=button][disabled]),:host([accent=inline]) ::slotted(input[type=submit][disabled]),:host([accent=inline]) ::slotted(button[disabled]){color:var(--gse-ui-link-disabled-color)}:host([accent=inline]) ::slotted(input[type=button]:hover:enabled),:host([accent=inline]) ::slotted(input[type=submit]:hover:enabled),:host([accent=inline]) ::slotted(button:hover:enabled){text-decoration:underline;color:var(--gse-ui-link-hover-color);background:none}:host([accent=inline]) ::slotted(input[type=button]:active:enabled),:host([accent=inline]) ::slotted(input[type=submit]:active:enabled),:host([accent=inline]) ::slotted(button:active:enabled){text-decoration:underline;color:var(--gse-ui-link-active-color);background:none}";export{u as gux_button_slot}
@@ -1 +0,0 @@
1
- import{r as o,c as e,h as t,g as i}from"./p-7d26b2e1.js";import{r}from"./p-cbcbd1bb.js";import{l as a}from"./p-d0805f56.js";const n=class{constructor(t){o(this,t),this.internalsectionopened=e(this,"internalsectionopened",7),this.sectionId=r("gux-accordion-section"),this.headerId=r("gux-accordion-header"),this.arrowPosition="end",this.contentLayout="text",this.open=!1,this.disabled=!1,this.reverseHeadings=!1,this.headingLevel=void 0}watchOpen(o){o&&this.internalsectionopened.emit()}toggle(){this.open=!this.open}isArrowPositionBeforeText(){return"start"===this.arrowPosition}handleSlotChange(o){const e=this.root.querySelector(`[slot="${o}"]`);e&&/^H[1-6]$/.test(e.nodeName)||a(this.root,`For accessibility reasons the ${o} slot should be filled with a HTML heading tag (h1 - h6).`),"header"==o&&(this.headingLevel=parseInt(e.nodeName.replace("H",""),10))}componentWillLoad(){this.hasIconSlot=!!this.root.querySelector('[slot="icon"]')}render(){return t("section",{class:{"gux-disabled":this.disabled}},t("div",{id:this.headerId,role:"heading","aria-level":this.headingLevel},t("button",{class:{"gux-header":!0,"gux-reverse-headings":this.reverseHeadings},type:"button","aria-expanded":this.open.toString(),"aria-controls":this.sectionId,disabled:this.disabled,onClick:this.toggle.bind(this)},this.hasIconSlot&&t("slot",{name:"icon"}),t("div",{class:{"gux-header-text":!0}},t("slot",{onSlotchange:()=>this.handleSlotChange("header"),name:"header"}),t("slot",{onSlotchange:()=>this.handleSlotChange("subheader"),name:"subheader"})),t("div",{class:{"gux-header-icon":!0,"gux-expanded":this.open,"gux-arrow-position-start":this.isArrowPositionBeforeText()}},t("gux-icon",{decorative:!0,"icon-name":"chevron-small-down"})))),t("div",{id:this.sectionId,role:"region","aria-labelledby":this.headerId,class:{"gux-content":!0,"gux-expanded":this.open,"gux-text-content-layout":"text"===this.contentLayout}},t("slot",{name:"content"})))}get root(){return i(this)}static get watchers(){return{open:["watchOpen"]}}};n.style='.gux-focus-ring-focused:focus{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-focus-ring-focused-within:focus-within{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-focus-ring-focused-visible:focus-visible{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-focus-ring-small-focused:focus{outline:2px solid #aac9ff;outline-offset:0}.gux-focus-ring-small-focused-within:focus-within{outline:2px solid #aac9ff;outline-offset:0}.gux-focus-ring-small-focused-visible:focus-visible{outline:2px solid #aac9ff;outline-offset:0}.gux-focus-ring-focused:focus{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-focus-ring-focused-within:focus-within{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-focus-ring-focused-visible:focus-visible{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-focus-ring-small-focused:focus{outline:2px solid #aac9ff;outline-offset:0}.gux-focus-ring-small-focused-within:focus-within{outline:2px solid #aac9ff;outline-offset:0}.gux-focus-ring-small-focused-visible:focus-visible{outline:2px solid #aac9ff;outline-offset:0}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:url("./fonts/roboto-v20-latin-300.eot");src:local("Roboto Light"), local("Roboto-Light"), url("./fonts/roboto-v20-latin-300.eot?#iefix") format("embedded-opentype"), url("./fonts/roboto-v20-latin-300.woff2") format("woff2"), url("./fonts/roboto-v20-latin-300.woff") format("woff"), url("./fonts/roboto-v20-latin-300.ttf") format("truetype"), url("./fonts/roboto-v20-latin-300.svg#Roboto") format("svg");}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:url("./fonts/roboto-v20-latin-regular.eot");src:local("Roboto"), local("Roboto-Regular"), url("./fonts/roboto-v20-latin-regular.eot?#iefix") format("embedded-opentype"), url("./fonts/roboto-v20-latin-regular.woff2") format("woff2"), url("./fonts/roboto-v20-latin-regular.woff") format("woff"), url("./fonts/roboto-v20-latin-regular.ttf") format("truetype"), url("./fonts/roboto-v20-latin-regular.svg#Roboto") format("svg");}@font-face{font-family:Roboto;font-style:italic;font-weight:400;src:url("./fonts/roboto-v20-latin-italic.eot");src:local("Roboto Italic"), local("Roboto-Italic"), url("./fonts/roboto-v20-latin-italic.eot?#iefix") format("embedded-opentype"), url("./fonts/roboto-v20-latin-italic.woff2") format("woff2"), url("./fonts/roboto-v20-latin-italic.woff") format("woff"), url("./fonts/roboto-v20-latin-italic.ttf") format("truetype"), url("./fonts/roboto-v20-latin-italic.svg#Roboto") format("svg");}@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:url("./fonts/roboto-v20-latin-700.eot");src:local("Roboto Bold"), local("Roboto-Bold"), url("./fonts/roboto-v20-latin-700.eot?#iefix") format("embedded-opentype"), url("./fonts/roboto-v20-latin-700.woff2") format("woff2"), url("./fonts/roboto-v20-latin-700.woff") format("woff"), url("./fonts/roboto-v20-latin-700.ttf") format("truetype"), url("./fonts/roboto-v20-latin-700.svg#Roboto") format("svg");}body{font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}h1{font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:24px;line-height:32px}h2{font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:18px;line-height:24px}h3{font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:14px;line-height:20px}h4,h5,h6{font-family:Roboto, sans-serif;font-weight:400;font-size:14px;line-height:20px}.gux-icon-anchor gux-icon{padding-right:2px}a{color:#2a60c8;text-decoration:underline;border-radius:2px}a:hover{color:#2754ac}a:active{color:#23478f}a:focus-visible{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}table a{color:#2a60c8;text-decoration:underline;border-radius:2px;text-decoration:none}table a:hover{color:#2754ac}table a:active{color:#23478f}table a:focus-visible{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}:host{-webkit-user-select:none;user-select:none}:host:first-child .gux-header{border-top:var(--gse-ui-accordion-wrapper-dividerBorder-width) var(--gse-ui-accordion-wrapper-dividerBorder-style) var(--gse-ui-accordion-wrapper-dividerBorder-color)}section.gux-disabled{cursor:default;opacity:0.5}section.gux-disabled>*{pointer-events:none}.gux-header{all:unset;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;justify-content:flex-start;width:100%;padding:var(--gse-ui-accordion-header-padding);margin:0;cursor:pointer;border-bottom:var(--gse-ui-accordion-wrapper-dividerBorder-width) var(--gse-ui-accordion-wrapper-dividerBorder-style) var(--gse-ui-accordion-wrapper-dividerBorder-color)}.gux-header .gux-header-text{flex:1 1 auto;align-self:auto;text-align:left;color:var(--gse-ui-accordion-header-default-foreground-labelColor);font-weight:--gse-ui-accordion-header-label-defaultText-fontWeight}.gux-header.gux-reverse-headings .gux-header-text{display:flex;flex-direction:column-reverse}.gux-header ::slotted([slot=header]){padding:0;margin:0;font-size:var(--gse-ui-accordion-header-label-defaultText-fontFamily) !important;font-weight:var(--gse-ui-accordion-header-label-defaultText-fontWeight) !important;line-height:var(--gse-ui-accordion-header-label-defaultText-lineHeight) !important}.gux-header ::slotted([slot=subheader]){padding:0;margin:var(--gux-spacing-3xs) 0 0;font-size:var(--gse-ui-accordion-contentItem-defaultText-fontSize) !important;font-weight:var(--gse-ui-accordion-contentItem-defaultText-fontWeight) !important;color:var(--gse-ui-accordion-contentItem-foregroundColor)}.gux-header ::slotted([slot=subheader]) .gux-reverse-headings{margin:0 0 var(--gux-spacing-3xs) 0}.gux-header ::slotted([slot=icon]){flex:0 0 auto;align-self:flex-start;width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);margin-right:var(--gse-ui-accordion-header-gap);color:var(--gse-ui-accordion-header-default-foreground-chevronIcon-closed)}.gux-header ::slotted([slot=icon]) .gux-reverse-headings{align-self:flex-end}.gux-header .gux-header-icon{flex:0 1 auto;align-items:center;align-self:auto;margin-left:var(--gse-ui-accordion-header-gap);color:var(--gse-ui-accordion-header-default-foreground-chevronIcon-closed);transition:transform 0.5s ease;transform-origin:center}.gux-header .gux-header-icon gux-icon{width:var(--gse-ui-accordion-header-chevronIcon);height:var(--gse-ui-accordion-header-chevronIcon)}.gux-header .gux-header-icon.gux-arrow-position-start{order:-1;margin-right:var(--gse-ui-accordion-header-gap)}.gux-header .gux-header-icon.gux-expanded{transform:rotate(-180deg);color:var(--gse-ui-accordion-header-default-foreground-chevronIcon-open)}.gux-header:focus-visible{outline:var(--gse-ui-accordion-focusBorder-width) var(--gse-ui-accordion-focusBorder-style) var(--gse-ui-accordion-focusBorder-color);border-radius:var(--gse-ui-accordion-menuItem-focus-borderRadius);outline-offset:var(--gse-ui-accordion-focus-offset-gap)}.gux-header:hover .gux-header-icon{color:var(--gse-ui-accordion-header-default-foreground-chevronIcon-hover)}.gux-content{box-sizing:border-box;display:none;border-bottom:var(--gse-ui-accordion-wrapper-dividerBorder-width) var(--gse-ui-accordion-wrapper-dividerBorder-style) var(--gse-ui-accordion-wrapper-dividerBorder-color)}.gux-content.gux-expanded{display:block}.gux-content.gux-text-content-layout{padding:var(--gse-ui-accordion-contentItem-padding)}';export{n as gux_accordion_section}
@@ -1 +0,0 @@
1
- import{r as g,c as o,h as a,g as r}from"./p-7d26b2e1.js";import{b as u}from"./p-deee079e.js";import{t as l}from"./p-dc84cec7.js";import"./p-8a133b9b.js";const e={tag:"tag with label: {label}","tag-disabled":"disabled tag with label: {label}","remove-tag":"Remove tag with label: {label}"},c=class{constructor(a){g(this,a),this.guxdelete=o(this,"guxdelete",7),this.color="default",this.accent="default",this.value=void 0,this.disabled=!1,this.removable=!1,this.label=void 0}onKeyDown(g){switch(g.key){case"Backspace":case"Delete":this.removeTag()}}removeTag(){!this.disabled&&this.removable&&this.guxdelete.emit(this.value)}onSlotChange(g){const o=g.composedPath()[0].assignedNodes();this.label=o.map((g=>g.textContent)).join("")}renderTagTitle(){return a("gux-tooltip-title",null,a("span",null,a("slot",{"aria-hidden":"true",onSlotchange:this.onSlotChange.bind(this)})))}renderSrText(){return a("div",{class:"gux-sr-only"},this.i18n(this.disabled?"tag-disabled":"tag",{label:this.label}))}renderRemoveButton(){if(this.removable)return a("button",{class:"gux-tag-remove-button",onClick:this.removeTag.bind(this),type:"button",disabled:this.disabled},a("gux-icon",{class:"gux-tag-remove-icon","icon-name":"close","screenreader-text":this.i18n("remove-tag",{label:this.label})}))}componentWillLoad(){l(this.root,{variant:this.removable?"removable":"permenant"})}async componentWillRender(){this.i18n=await u(this.root,e)}render(){return a("div",{class:{"gux-tag":!0,[`gux-${this.color}`]:!0,[`gux-accent-${this.accent}`]:!0,"gux-disabled":this.disabled},"aria-disabled":this.disabled.toString()},this.renderTagTitle(),this.renderSrText(),this.renderRemoveButton())}get root(){return r(this)}};c.style=":host{display:inline-block}.gux-tag{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:flex-start;padding:2px 8px;font-size:12px;font-weight:bold;color:#fdfdfd;background-color:#2e394c;border-radius:4px}.gux-tag gux-tooltip-title{white-space:nowrap;cursor:default}.gux-tag gux-tooltip-title ::slotted(gux-icon){height:20px;font-size:16px}.gux-tag .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gux-tag .gux-tag-remove-button{all:unset;display:flex;align-content:center;align-items:center;justify-content:center;margin-left:8px}.gux-tag .gux-tag-remove-button:not(:disabled):hover{cursor:pointer}.gux-tag .gux-tag-remove-button .gux-tag-remove-icon{width:16px;height:16px;border-radius:25%}.gux-tag .gux-tag-remove-button:focus-within .gux-tag-remove-icon{outline:2px solid #aac9ff;outline-offset:0}.gux-tag.gux-disabled{background-color:rgba(46, 57, 76, 0.5)}.gux-tag.gux-default{background-color:#2e394c}.gux-tag.gux-default.gux-disabled{background-color:rgba(46, 57, 76, 0.5)}.gux-tag.gux-default-subtle{color:#2e394c;background-color:#e2e6ee}.gux-tag.gux-default-subtle.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(226, 230, 238, 0.5)}.gux-tag.gux-navy{background-color:#203b73}.gux-tag.gux-navy.gux-disabled{background-color:rgba(32, 59, 115, 0.5)}.gux-tag.gux-blue{color:#2e394c;background-color:#75a8ff}.gux-tag.gux-blue.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(117, 168, 255, 0.5)}.gux-tag.gux-electric-purple{background-color:#8452cf}.gux-tag.gux-electric-purple.gux-disabled{background-color:rgba(132, 82, 207, 0.5)}.gux-tag.gux-aqua-green{color:#202937;background-color:#1da8b3}.gux-tag.gux-aqua-green.gux-disabled{color:rgba(32, 41, 55, 0.5);background-color:rgba(29, 168, 179, 0.5)}.gux-tag.gux-fuchsia{color:#000;background-color:#cc3ebe}.gux-tag.gux-fuchsia.gux-disabled{color:rgba(0, 0, 0, 0.5);background-color:rgba(204, 62, 190, 0.5)}.gux-tag.gux-dark-purple{background-color:#5e5782}.gux-tag.gux-dark-purple.gux-disabled{background-color:rgba(94, 87, 130, 0.5)}.gux-tag.gux-bubblegum-pink{color:#2e394c;background-color:#ff8fdd}.gux-tag.gux-bubblegum-pink.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(255, 143, 221, 0.5)}.gux-tag.gux-olive-green{color:#151d28;background-color:#868c1e}.gux-tag.gux-olive-green.gux-disabled{color:rgba(21, 29, 40, 0.5);background-color:rgba(134, 140, 30, 0.5)}.gux-tag.gux-lilac{color:#2e394c;background-color:#b5b5eb}.gux-tag.gux-lilac.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(181, 181, 235, 0.5)}.gux-tag.gux-alert-yellow-green{color:#2e394c;background-color:#ddd933}.gux-tag.gux-alert-yellow-green.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(221, 217, 51, 0.5)}.gux-tag.gux-blue-10{background-color:#172b52}.gux-tag.gux-blue-10.gux-disabled{background-color:rgba(23, 43, 82, 0.5)}.gux-tag.gux-blue-20{background-color:#1c3363}.gux-tag.gux-blue-20.gux-disabled{background-color:rgba(28, 51, 99, 0.5)}.gux-tag.gux-blue-30{background-color:#203b73}.gux-tag.gux-blue-30.gux-disabled{background-color:rgba(32, 59, 115, 0.5)}.gux-tag.gux-blue-40{background-color:#23478f}.gux-tag.gux-blue-40.gux-disabled{background-color:rgba(35, 71, 143, 0.5)}.gux-tag.gux-blue-50{background-color:#2754ac}.gux-tag.gux-blue-50.gux-disabled{background-color:rgba(39, 84, 172, 0.5)}.gux-tag.gux-blue-60{background-color:#2a60c8}.gux-tag.gux-blue-60.gux-disabled{background-color:rgba(42, 96, 200, 0.5)}.gux-tag.gux-blue-70{color:#151d28;background-color:#5084e3}.gux-tag.gux-blue-70.gux-disabled{color:rgba(21, 29, 40, 0.5);background-color:rgba(80, 132, 227, 0.5)}.gux-tag.gux-blue-80{color:#2e394c;background-color:#75a8ff}.gux-tag.gux-blue-80.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(117, 168, 255, 0.5)}.gux-tag.gux-blue-90{color:#2e394c;background-color:#aac9ff}.gux-tag.gux-blue-90.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(170, 201, 255, 0.5)}.gux-tag.gux-blue-100{color:#2e394c;background-color:#deeaff}.gux-tag.gux-blue-100.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(222, 234, 255, 0.5)}.gux-tag.gux-alert-red-10{background-color:#520404}.gux-tag.gux-alert-red-10.gux-disabled{background-color:rgba(82, 4, 4, 0.5)}.gux-tag.gux-alert-red-20{background-color:#700505}.gux-tag.gux-alert-red-20.gux-disabled{background-color:rgba(112, 5, 5, 0.5)}.gux-tag.gux-alert-red-30{background-color:#8f0707}.gux-tag.gux-alert-red-30.gux-disabled{background-color:rgba(143, 7, 7, 0.5)}.gux-tag.gux-alert-red-40{background-color:#ad0808}.gux-tag.gux-alert-red-40.gux-disabled{background-color:rgba(173, 8, 8, 0.5)}.gux-tag.gux-alert-red-50{background-color:#cc0a0a}.gux-tag.gux-alert-red-50.gux-disabled{background-color:rgba(204, 10, 10, 0.5)}.gux-tag.gux-alert-red-60{background-color:#ea0b0b}.gux-tag.gux-alert-red-60.gux-disabled{background-color:rgba(234, 11, 11, 0.5)}.gux-tag.gux-alert-red-70{color:#000;background-color:#ef4343}.gux-tag.gux-alert-red-70.gux-disabled{color:rgba(0, 0, 0, 0.5);background-color:rgba(239, 67, 67, 0.5)}.gux-tag.gux-alert-red-80{color:#283243;background-color:#f37a7a}.gux-tag.gux-alert-red-80.gux-disabled{color:rgba(40, 50, 67, 0.5);background-color:rgba(243, 122, 122, 0.5)}.gux-tag.gux-alert-red-90{color:#2e394c;background-color:#f8b2b2}.gux-tag.gux-alert-red-90.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(248, 178, 178, 0.5)}.gux-tag.gux-alert-red-100{color:#2e394c;background-color:#fceaea}.gux-tag.gux-alert-red-100.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(252, 234, 234, 0.5)}.gux-tag.gux-alert-green-10{background-color:#0d3d00}.gux-tag.gux-alert-green-10.gux-disabled{background-color:rgba(13, 61, 0, 0.5)}.gux-tag.gux-alert-green-20{background-color:#164b08}.gux-tag.gux-alert-green-20.gux-disabled{background-color:rgba(22, 75, 8, 0.5)}.gux-tag.gux-alert-green-30{background-color:#205a10}.gux-tag.gux-alert-green-30.gux-disabled{background-color:rgba(32, 90, 16, 0.5)}.gux-tag.gux-alert-green-40{background-color:#296817}.gux-tag.gux-alert-green-40.gux-disabled{background-color:rgba(41, 104, 23, 0.5)}.gux-tag.gux-alert-green-50{background-color:#33771f}.gux-tag.gux-alert-green-50.gux-disabled{background-color:rgba(51, 119, 31, 0.5)}.gux-tag.gux-alert-green-60{background-color:#3c8527}.gux-tag.gux-alert-green-60.gux-disabled{background-color:rgba(60, 133, 39, 0.5)}.gux-tag.gux-alert-green-70{color:#202937;background-color:#69a358}.gux-tag.gux-alert-green-70.gux-disabled{color:rgba(32, 41, 55, 0.5);background-color:rgba(105, 163, 88, 0.5)}.gux-tag.gux-alert-green-80{color:#2e394c;background-color:#95c189}.gux-tag.gux-alert-green-80.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(149, 193, 137, 0.5)}.gux-tag.gux-alert-green-90{color:#2e394c;background-color:#c2deb9}.gux-tag.gux-alert-green-90.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(194, 222, 185, 0.5)}.gux-tag.gux-alert-green-100{color:#2e394c;background-color:#eefcea}.gux-tag.gux-alert-green-100.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(238, 252, 234, 0.5)}.gux-tag.gux-alert-yellow-10{background-color:#523800}.gux-tag.gux-alert-yellow-10.gux-disabled{background-color:rgba(82, 56, 0, 0.5)}.gux-tag.gux-alert-yellow-20{background-color:#755000}.gux-tag.gux-alert-yellow-20.gux-disabled{background-color:rgba(117, 80, 0, 0.5)}.gux-tag.gux-alert-yellow-30{background-color:#976700}.gux-tag.gux-alert-yellow-30.gux-disabled{background-color:rgba(151, 103, 0, 0.5)}.gux-tag.gux-alert-yellow-40{color:#151d28;background-color:#ba7f00}.gux-tag.gux-alert-yellow-40.gux-disabled{color:rgba(21, 29, 40, 0.5);background-color:rgba(186, 127, 0, 0.5)}.gux-tag.gux-alert-yellow-50{color:#2e394c;background-color:#dc9600}.gux-tag.gux-alert-yellow-50.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(220, 150, 0, 0.5)}.gux-tag.gux-alert-yellow-60{color:#2e394c;background-color:#ffae00}.gux-tag.gux-alert-yellow-60.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(255, 174, 0, 0.5)}.gux-tag.gux-alert-yellow-70{color:#2e394c;background-color:#fbbe3b}.gux-tag.gux-alert-yellow-70.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(251, 190, 59, 0.5)}.gux-tag.gux-alert-yellow-80{color:#2e394c;background-color:#fcd276}.gux-tag.gux-alert-yellow-80.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(252, 210, 118, 0.5)}.gux-tag.gux-alert-yellow-90{color:#2e394c;background-color:#fce5b1}.gux-tag.gux-alert-yellow-90.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(252, 229, 177, 0.5)}.gux-tag.gux-alert-yellow-100{color:#2e394c;background-color:#fdf8ec}.gux-tag.gux-alert-yellow-100.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(253, 248, 236, 0.5)}.gux-tag.gux-brand-orange{color:#151d28;background-color:#ff4f1f}.gux-tag.gux-brand-orange.gux-disabled{color:rgba(21, 29, 40, 0.5);background-color:rgba(255, 79, 31, 0.5)}.gux-tag.gux-brand-teal{color:#283243;background-color:#00ae9e}.gux-tag.gux-brand-teal.gux-disabled{color:rgba(40, 50, 67, 0.5);background-color:rgba(0, 174, 158, 0.5)}.gux-tag.gux-brand-navy{background-color:#23395d}.gux-tag.gux-brand-navy.gux-disabled{background-color:rgba(35, 57, 93, 0.5)}.gux-tag.gux-brand-light-blue{color:#151d28;background-color:#3b90aa}.gux-tag.gux-brand-light-blue.gux-disabled{color:rgba(21, 29, 40, 0.5);background-color:rgba(59, 144, 170, 0.5)}.gux-tag.gux-brand-yellow{color:#2e394c;background-color:#ff8f14}.gux-tag.gux-brand-yellow.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(255, 143, 20, 0.5)}";export{c as gux_tag_beta}
@@ -1 +0,0 @@
1
- import{r as t,c as o,h as e,g as r}from"./p-7d26b2e1.js";import{a as p,c as a,o as s,f as i,s as c,b as d}from"./p-4e2b5bcf.js";import{O as n}from"./p-9d18d475.js";import{t as l}from"./p-dc84cec7.js";import{f as h}from"./p-82ffe3cc.js";const b=class{constructor(e){t(this,e),this.guxdismiss=o(this,"guxdismiss",7),this.for=void 0,this.position="bottom",this.displayDismissButton=void 0,this.closeOnClickOutside=!1,this.isOpen=!1}checkForClickOutside(t){const o=t.composedPath(),e=h(this.root,this.for),r=o.includes(e);!this.closeOnClickOutside&&this.displayDismissButton||!this.isOpen||r||this.dismiss()}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=p(h(this.root,this.for),this.popupElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const t=h(this.root,this.for);this.popupElement&&a(t,this.popupElement,{placement:this.position,middleware:[s(7),i(),c(),d({element:this.arrowElement,padding:16})]}).then((({x:t,y:o,middlewareData:e,placement:r})=>{Object.assign(this.popupElement.style,{left:`${t}px`,top:`${o}px`});const p={top:"bottom",right:"left",bottom:"top",left:"right"}[r.split("-")[0]];if(e.arrow){const{x:t,y:o}=e.arrow;this.popupElement.setAttribute("data-placement",r),Object.assign(this.arrowElement.style,{left:null!=t?`${t}px`:"",top:null!=o?`${o}px`:"",right:"",bottom:"",[p]:"-6.5px",transform:"rotate(45deg)"})}}))}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1)}connectedCallback(){l(this.root,{variant:this.position})}componentDidLoad(){this.isOpen&&this.runUpdatePosition()}componentDidUpdate(){this.isOpen?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return e("div",{ref:t=>this.popupElement=t,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0},e("div",{ref:t=>this.arrowElement=t,class:"gux-arrow"}),this.displayDismissButton&&e("gux-dismiss-button",{onClick:this.dismiss.bind(this)}),e("div",{class:"gux-popover-content"},e("slot",null)))}get root(){return r(this)}};(function(t,o,e,r){var p,a=arguments.length,s=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,o,e,r);else for(var i=t.length-1;i>=0;i--)(p=t[i])&&(s=(a<3?p(s):a>3?p(o,e,s):p(o,e))||s);a>3&&s&&Object.defineProperty(o,e,s)})([n({triggerEvents:"mousedown"})],b.prototype,"checkForClickOutside",null),b.style=".gux-popover-wrapper{position:absolute;top:0;left:0;z-index:var(--gux-zindex-popover, 2);display:inline-block;padding:8px 0;color:#2e394c;background-color:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-popover-wrapper.gux-hidden{display:none}.gux-popover-wrapper .gux-arrow{position:absolute;width:10px;height:10px;background:inherit}.gux-popover-wrapper[data-placement='bottom'] .gux-arrow,.gux-popover-wrapper[data-placement='bottom-start'] .gux-arrow,.gux-popover-wrapper[data-placement='bottom-end'] .gux-arrow{border-top:1px solid #b4bccb;border-left:1px solid #b4bccb}.gux-popover-wrapper[data-placement='top'] .gux-arrow,.gux-popover-wrapper[data-placement='top-start'] .gux-arrow,.gux-popover-wrapper[data-placement='top-end'] .gux-arrow{border-right:1px solid #b4bccb;border-bottom:1px solid #b4bccb}.gux-popover-wrapper[data-placement='left'] .gux-arrow,.gux-popover-wrapper[data-placement='left-start'] .gux-arrow,.gux-popover-wrapper[data-placement='left-end'] .gux-arrow{border-top:1px solid #b4bccb;border-right:1px solid #b4bccb}.gux-popover-wrapper[data-placement='right'] .gux-arrow,.gux-popover-wrapper[data-placement='right-start'] .gux-arrow,.gux-popover-wrapper[data-placement='right-end'] .gux-arrow{border-bottom:1px solid #b4bccb;border-left:1px solid #b4bccb}";export{b as gux_popover_list}
@@ -1 +0,0 @@
1
- import{r as o,h as t,H as e,g as f}from"./p-7d26b2e1.js";import{t as i}from"./p-dc84cec7.js";const a=class{constructor(t){o(this,t)}componentWillLoad(){i(this.root)}render(){return t(e,null,t("div",{class:"gux-header"},t("div",{class:"gux-icon"},t("slot",{name:"icon"})),t("div",{class:"gux-title"},t("slot",{name:"title"}))),t("div",{class:"gux-message"},t("slot",{name:"message"})),t("div",{class:"gux-action-buttons"},t("div",{class:"gux-positive-button"},t("slot",{name:"positive-button"})),t("div",{class:"gux-negative-button"},t("slot",{name:"negative-button"}))))}get root(){return f(this)}};a.style='.gux-focus-ring-focused:focus{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-focus-ring-focused-within:focus-within{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-focus-ring-focused-visible:focus-visible{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-focus-ring-small-focused:focus{outline:2px solid #aac9ff;outline-offset:0}.gux-focus-ring-small-focused-within:focus-within{outline:2px solid #aac9ff;outline-offset:0}.gux-focus-ring-small-focused-visible:focus-visible{outline:2px solid #aac9ff;outline-offset:0}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:url("./fonts/roboto-v20-latin-300.eot");src:local("Roboto Light"), local("Roboto-Light"), url("./fonts/roboto-v20-latin-300.eot?#iefix") format("embedded-opentype"), url("./fonts/roboto-v20-latin-300.woff2") format("woff2"), url("./fonts/roboto-v20-latin-300.woff") format("woff"), url("./fonts/roboto-v20-latin-300.ttf") format("truetype"), url("./fonts/roboto-v20-latin-300.svg#Roboto") format("svg");}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:url("./fonts/roboto-v20-latin-regular.eot");src:local("Roboto"), local("Roboto-Regular"), url("./fonts/roboto-v20-latin-regular.eot?#iefix") format("embedded-opentype"), url("./fonts/roboto-v20-latin-regular.woff2") format("woff2"), url("./fonts/roboto-v20-latin-regular.woff") format("woff"), url("./fonts/roboto-v20-latin-regular.ttf") format("truetype"), url("./fonts/roboto-v20-latin-regular.svg#Roboto") format("svg");}@font-face{font-family:Roboto;font-style:italic;font-weight:400;src:url("./fonts/roboto-v20-latin-italic.eot");src:local("Roboto Italic"), local("Roboto-Italic"), url("./fonts/roboto-v20-latin-italic.eot?#iefix") format("embedded-opentype"), url("./fonts/roboto-v20-latin-italic.woff2") format("woff2"), url("./fonts/roboto-v20-latin-italic.woff") format("woff"), url("./fonts/roboto-v20-latin-italic.ttf") format("truetype"), url("./fonts/roboto-v20-latin-italic.svg#Roboto") format("svg");}@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:url("./fonts/roboto-v20-latin-700.eot");src:local("Roboto Bold"), local("Roboto-Bold"), url("./fonts/roboto-v20-latin-700.eot?#iefix") format("embedded-opentype"), url("./fonts/roboto-v20-latin-700.woff2") format("woff2"), url("./fonts/roboto-v20-latin-700.woff") format("woff"), url("./fonts/roboto-v20-latin-700.ttf") format("truetype"), url("./fonts/roboto-v20-latin-700.svg#Roboto") format("svg");}body{font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}h1{font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:24px;line-height:32px}h2{font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:18px;line-height:24px}h3{font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:14px;line-height:20px}h4,h5,h6{font-family:Roboto, sans-serif;font-weight:400;font-size:14px;line-height:20px}.gux-icon-anchor gux-icon{padding-right:2px}a{color:#2a60c8;text-decoration:underline;border-radius:2px}a:hover{color:#2754ac}a:active{color:#23478f}a:focus-visible{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}table a{color:#2a60c8;text-decoration:underline;border-radius:2px;text-decoration:none}table a:hover{color:#2754ac}table a:active{color:#23478f}table a:focus-visible{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}:host{display:flex;flex-direction:column;flex-wrap:nowrap;align-content:stretch;align-items:stretch;justify-content:flex-start;width:270px;padding:20px 24px;margin-bottom:4px;color:#2e394c;background:#f6f7f9;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-header{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:flex-start;order:0;font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:18px;line-height:24px}.gux-header .gux-icon{flex:0 1 auto;align-self:auto;order:0;color:#1da8b3}.gux-header .gux-icon ::slotted(gux-icon){width:32px !important;height:32px !important}.gux-header .gux-title{flex:1 1 auto;align-self:auto;order:0;margin:0 0 0 8px}.gux-message{flex:0 1 auto;align-self:auto;order:0;margin:16px 0;font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}.gux-message ::slotted(dl){display:flex;flex-direction:row;flex-wrap:wrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;align-self:auto;justify-content:space-between;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;align-self:auto;justify-content:space-between;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}';export{a as gux_action_toast_legacy}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as s,H as a}from"./p-7d26b2e1.js";const i=class{constructor(s){t(this,s),this.guxactivepanelchange=e(this,"guxactivepanelchange",7),this.tabId=void 0,this.active=!1}async guxSetActive(t){this.active=t}watchActivePanel(){!0===this.active&&this.guxactivepanelchange.emit(this.tabId)}render(){return s(a,{id:`gux-${this.tabId}-panel`,role:"tabpanel","aria-labelledby":`gux-${this.tabId}-tab`,tabIndex:0,hidden:!this.active},s("slot",null))}static get watchers(){return{active:["watchActivePanel"]}}};i.style=":host{height:calc(100% - 57px)}:host(:not([hidden])){display:flex;flex-grow:1}:host(:focus){outline:none}:host(:focus-visible){outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}";export{i as gux_tab_panel_beta}
@@ -1 +0,0 @@
1
- import{r as t,c as a,h as n,g as i}from"./p-7d26b2e1.js";import{b as e}from"./p-deee079e.js";import{t as o}from"./p-89af02eb.js";import{b as s}from"./p-091f51f6.js";import"./p-8a133b9b.js";class r{static displayAllPageButtons(t,a,n){switch(n){case"advanced":return function(t,a){if(a<=7)return[...Array(a).keys()].map((a=>{const n=a+1;return{pageNumber:n,display:String(n),current:n===t}}));if(t<=3)return[...[...Array(5).keys()].map((a=>{const n=a+1;return{pageNumber:n,display:String(n),current:n===t}})),{pageNumber:6,display:"...",current:!1},{pageNumber:a,display:String(a),current:!1}];if(t>a-3){const n=[...Array(5).keys()].map((n=>{const i=n+a-4;return{pageNumber:i,display:String(i),current:i===t}}));return[{pageNumber:1,display:"1",current:!1},{pageNumber:a-6,display:"...",current:!1},...n]}const n=[...Array(3).keys()].map((a=>{const n=a+t-1;return{pageNumber:n,display:String(n),current:n===t}}));return[{pageNumber:1,display:"1",current:!1},{pageNumber:t-3,display:"...",current:!1},...n,{pageNumber:t+3,display:"...",current:!1},{pageNumber:a,display:String(a),current:!1}]}(t,a);case"simple":return function(t,a){return a<=3?[...Array(a).keys()].map((a=>{const n=a+1;return{pageNumber:n,display:String(n),current:n===t}})):a>=4?[...[...Array(1).keys()].map((n=>{const i=n+t;return{pageNumber:i,display:String(i),current:i!==a}})),{pageNumber:t,display:"...",current:!1},{pageNumber:a,display:String(a),current:a==t}]:void 0}(t,a)}}}const u=class{constructor(n){t(this,n),this.internalcurrentpagechange=a(this,"internalcurrentpagechange",3),this.currentPage=void 0,this.totalPages=void 0,this.layout="advanced"}goToPageHandler(t){this.currentPage=t.detail,this.handlePageChange(this.currentPage),s((()=>{this.currentElement.focus()}))}get onFirstPage(){return this.currentPage<=1}get onLastPage(){return this.currentPage>=this.totalPages}handleClickFirst(){this.internalcurrentpagechange.emit(1)}handleClickPrevious(){this.internalcurrentpagechange.emit(this.currentPage-1)}handleClickNext(){this.internalcurrentpagechange.emit(this.currentPage+1)}handleClickLast(){this.internalcurrentpagechange.emit(this.totalPages)}handlePageChange(t){this.internalcurrentpagechange.emit(t)}getPageListEnteries(t,a,i){return r.displayAllPageButtons(t,a,i).reduce(((t,a)=>t.concat(a.current?n("button",{ref:t=>this.currentElement=t,class:"gux-pagination-buttons-list-current"},a.display):"..."==a.display?n("gux-pagination-ellipsis-button",{totalPages:this.totalPages}):n("button",{class:"gux-pagination-buttons-list-target",onClick:()=>this.handlePageChange(a.pageNumber)},a.display))),[])}getPageNavigation(){return n("div",{class:"gux-pagination-buttons-list-container"},this.getPageListEnteries(this.currentPage,this.totalPages,this.layout))}async componentWillLoad(){this.i18n=await e(this.root,o)}render(){return n("div",{class:`gux-pagination-buttons-container gux-${this.layout}`},n("div",{class:"gux-pagination-buttons-group"},n("gux-button-slot",{accent:"ghost"},n("button",{title:this.i18n("first"),disabled:this.onFirstPage,onClick:this.handleClickFirst.bind(this)},n("gux-icon",{decorative:!0,"icon-name":"chevron-double-left"}))),n("gux-button-slot",{accent:"ghost"},n("button",{title:this.i18n("previous"),disabled:this.onFirstPage,onClick:this.handleClickPrevious.bind(this)},n("gux-icon",{decorative:!0,"icon-name":"chevron-small-left"})))),this.getPageNavigation(),n("div",{class:"gux-pagination-buttons-group"},n("gux-button-slot",{accent:"ghost"},n("button",{title:this.i18n("next"),disabled:this.onLastPage,onClick:this.handleClickNext.bind(this)},n("gux-icon",{decorative:!0,"icon-name":"chevron-small-right"}))),n("gux-button-slot",{accent:"ghost"},n("button",{title:this.i18n("last"),disabled:this.onLastPage,onClick:this.handleClickLast.bind(this)},n("gux-icon",{decorative:!0,"icon-name":"chevron-double-right"})))))}get root(){return i(this)}};u.style="gux-pagination-buttons-beta .gux-pagination-buttons-container{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);justify-content:flex-end;margin-left:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap)}gux-pagination-buttons-beta .gux-pagination-buttons-container>div{flex:0 1 auto;align-self:auto;order:0}gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-group{display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);white-space:nowrap}gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container{display:flex;flex-direction:row;flex-shrink:0;flex-wrap:nowrap;align-content:stretch;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);align-items:center;justify-content:center}gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-current,gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-target{min-width:28px;min-height:24px;padding-left:var(--gse-ui-dataTableItems-tablePagination-padding);padding-right:var(--gse-ui-dataTableItems-tablePagination-padding);margin:0;background:inherit;border:none;font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight)}gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-current:focus-visible,gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-target:focus-visible{outline:var(--gse-semantic-focusRing-width) solid var(--gse-semantic-color-focus);outline-offset:var(--gse-semantic-focusRing-offset);border-radius:calc(var(--gse-semantic-focusRing-cornerRadius) - var(--gse-semantic-focusRing-offset))}gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-current{background-color:var(--gse-ui-button-ghost-active-backgroundColor);border-radius:var(--gse-ui-button-borderRadius)}gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-target{color:var(--gse-ui-button-ghost-default-foregroundColor);cursor:pointer}gux-pagination-buttons-beta .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-target:hover{color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor);border-radius:var(--gse-ui-button-borderRadius)}";const g={itemCountDisplay:"{firstItem, number} - {lastItem, number}",totalItems:" of {totalItems, number}"},l=class{constructor(a){t(this,a),this.totalItems=0,this.currentPage=0,this.itemsPerPage=25}get firstItem(){return this.totalItems<1?0:(this.currentPage-1)*this.itemsPerPage+1}get lastItem(){return this.totalItems<1?0:Math.min(this.currentPage*this.itemsPerPage,this.totalItems)}async componentWillLoad(){this.i18n=await e(this.root,g)}getPaginationItemCountsRange(){if(this.totalItems)return n("span",null,this.i18n("totalItems",{totalItems:this.totalItems}))}render(){return n("div",{class:"gux-pagination-item-counts-container"},n("span",{class:"gux-pagination-item-counts-range"},this.i18n("itemCountDisplay",{firstItem:this.firstItem,lastItem:this.lastItem})),this.getPaginationItemCountsRange())}get root(){return i(this)}};l.style="gux-pagination-item-counts-beta .gux-pagination-item-counts-container{display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);white-space:nowrap;font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight)}gux-pagination-item-counts-beta .gux-pagination-item-counts-container .gux-pagination-item-counts-range{font-weight:bold}";export{u as gux_pagination_buttons_beta,l as gux_pagination_item_counts_beta}
@@ -1 +0,0 @@
1
- import{r as t,h as o,H as e,g as s}from"./p-7d26b2e1.js";import{g as r}from"./p-8a133b9b.js";const n=class{constructor(o){t(this,o),this.disabled=!1}onMouseup(){this.focusParentList()}onMouseover(){this.focusParentList()}focusParentList(){const t=r("gux-list",this.root);t&&null===t.shadowRoot.activeElement&&(this.root.blur(),t.focus({preventScroll:!0}))}render(){return o(e,{role:"listitem"},o("button",{type:"button",tabIndex:-1,disabled:this.disabled},o("slot",null)))}static get delegatesFocus(){return!0}get root(){return s(this)}};n.style=":host{width:100%;outline:none}:host([disabled]){pointer-events:none}:host([disabled='false']){pointer-events:auto}::slotted(gux-icon){width:16px;height:16px;margin-right:8px;vertical-align:middle}button{all:unset;box-sizing:border-box;width:100%;min-height:32px;padding:8px 16px;color:#2e394c;word-wrap:break-word;cursor:pointer;border:none;outline:none}button:focus-visible:not(:disabled){color:#fdfdfd;background:#2a60c8}button:hover:not(:disabled){color:#fdfdfd;background:#2754ac}button:active:not(:disabled){color:#fdfdfd;background:#23478f}button:disabled{color:rgba(46, 57, 76, 0.5);cursor:default}";export{n as gux_list_item}
@@ -1 +0,0 @@
1
- import{r as t,c as a,d as i,h as e,g as n}from"./p-7d26b2e1.js";import{a as s}from"./p-091f51f6.js";import{t as o}from"./p-dc84cec7.js";const r=class{constructor(i){t(this,i),this.guxpaginationchange=a(this,"guxpaginationchange",7),this.reinstateLayoutBreakpoint=0,this.layout="advanced",this.currentPage=1,this.totalItems=0,this.itemsPerPage=25,this.totalPages=void 0,this.displayedLayout=void 0}setPage(t){if(t<=0)return void this.setPage(1);const a=this.calculateTotalPages(this.totalItems,this.itemsPerPage);t>a?this.setPage(a):(this.currentPage=t,this.guxpaginationchange.emit({currentPage:this.currentPage,itemsPerPage:this.itemsPerPage}))}handleInternalitemsperpagechange(t){this.itemsPerPage=t.detail,this.setPage(1)}handleInternalcurrentpagechange(t){this.setPage(t.detail)}calculateTotalPages(t,a){return Math.max(1,Math.ceil(t/a))}calculateCurrentPage(t,a){return Math.max(t>0?1:0,Math.min(a,t))}checkPaginationContainerWidthForLayout(){i((()=>{const t=this.root.shadowRoot.querySelector(".gux-pagination-container"),a=this.root.shadowRoot.querySelector(".gux-pagination-spacer"),i=t.clientWidth;a.clientWidth<24&&"simple"!==this.displayedLayout?(this.reinstateLayoutBreakpoint=i,this.displayedLayout="simple"):i>this.reinstateLayoutBreakpoint&&(this.reinstateLayoutBreakpoint=0,this.displayedLayout=this.layout)}))}componentWillLoad(){o(this.root,{variant:this.layout})}componentWillRender(){this.totalPages=this.calculateTotalPages(this.totalItems,this.itemsPerPage),this.currentPage=this.calculateCurrentPage(this.totalPages,this.currentPage)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.unobserve(this.root.shadowRoot.querySelector(".gux-pagination-container"))}componentDidLoad(){!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.checkPaginationContainerWidthForLayout()))),this.resizeObserver&&this.resizeObserver.observe(this.root.shadowRoot.querySelector(".gux-pagination-container")),s((()=>{this.checkPaginationContainerWidthForLayout()}),500)}render(){return e("div",{class:"gux-pagination-container"},e("div",{class:"gux-pagination-info"},e("gux-pagination-item-counts-beta",{"total-items":this.totalItems,"current-page":this.currentPage,"items-per-page":this.itemsPerPage}),"advanced"===this.displayedLayout&&e("gux-pagination-items-per-page-beta",{"items-per-page":this.itemsPerPage,onInternalitemsperpagechange:this.handleInternalitemsperpagechange.bind(this)})),e("div",{class:"gux-pagination-spacer"}),e("div",{class:"gux-pagination-change"},e("gux-pagination-buttons-beta",{layout:this.displayedLayout,"current-page":this.currentPage,"total-pages":this.totalPages,onInternalcurrentpagechange:this.handleInternalcurrentpagechange.bind(this)})))}get root(){return n(this)}};r.style=":host{display:block;border-top:var(--gse-ui-dataTableItems-tablePagination-divider-width) var(--gse-ui-dataTableItems-tablePagination-divider-style) var(--gse-ui-dataTableItems-tablePagination-divider-color)}.gux-pagination-container{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:space-between;height:var(--gse-ui-dataTableItems-cell-tablePagination-height);padding:var(--gse-ui-dataTableItems-tablePagination-padding);background-color:var(--gse-ui-dataTableItems-tablePagination-defaultBackgroundColor)}.gux-pagination-container .gux-pagination-info{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);justify-content:flex-start;order:0}.gux-pagination-container .gux-pagination-info>*{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-spacer{flex:1 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change:first-child{margin-left:0}";export{r as gux_pagination_beta}
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as e}from"./p-7d26b2e1.js";const s=class{constructor(i){t(this,i),this.value=void 0,this.selected=!1,this.disabled=!1}onClick(t){this.disabled&&t.stopPropagation()}render(){return i(e,{class:{"gux-selected":this.selected}},i("button",{type:"button",class:"gux-switch-item",disabled:this.disabled},i("slot",null)))}};s.style="gux-switch-item>.gux-switch-item{font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px;font:unset;color:#2e394c;text-align:center;background:none;border:none;outline:none}gux-switch-item>.gux-switch-item>gux-icon svg{fill:#99a4b8}gux-switch-item[disabled]{pointer-events:none;opacity:0.5}gux-switch-item.gux-selected{font-family:Roboto, sans-serif;font-weight:400;font-weight:700}gux-switch>gux-switch-item .gux-switch-item{padding:0 8px 4px;border-bottom:1px solid #e2e6ee}gux-switch>gux-switch-item .gux-switch-item:focus-visible,gux-switch>gux-switch-item .gux-switch-item:hover{padding:0 8px 1px;border-bottom:4px solid #2a60c8;outline:none}gux-switch>gux-switch-item .gux-switch-item:focus-visible>gux-icon svg,gux-switch>gux-switch-item .gux-switch-item:hover>gux-icon svg{fill:#2e394c}gux-switch>gux-switch-item .gux-switch-item>gux-icon{width:32px;height:32px}gux-switch>gux-switch-item.gux-selected .gux-switch-item{padding:0 8px 1px;border-bottom:4px solid #2a60c8}gux-switch>gux-switch-item.gux-selected .gux-switch-item>gux-icon svg{fill:#2e394c}gux-switch.gux-small>gux-switch-item .gux-switch-item{font-family:Roboto, sans-serif;font-weight:400;font-size:11px;line-height:16px;padding:0 4px;border-bottom:1px solid #e2e6ee}gux-switch.gux-small>gux-switch-item .gux-switch-item:focus-visible,gux-switch.gux-small>gux-switch-item .gux-switch-item:hover{border-bottom-color:#2e394c}gux-switch.gux-small>gux-switch-item .gux-switch-item>gux-icon{width:24px;height:24px}gux-switch.gux-small>gux-switch-item.gux-selected .gux-switch-item{border-bottom-color:#2e394c}";export{s as gux_switch_item}
@@ -1 +0,0 @@
1
- import{r as o,c as t,h as e,H as r,g as i}from"./p-7d26b2e1.js";import{b as n}from"./p-deee079e.js";import{c as a}from"./p-4a6ae41e.js";import"./p-8a133b9b.js";import"./p-9dd4b14a.js";import"./p-d176c2ae.js";const s={activateReordering:"Activate reordering mode for {columnName} column"},f=class{constructor(e){o(this,e),this.internal_order_change=t(this,"internal_order_change",7),this.internal_keyboard_reorder_start=t(this,"internal_keyboard_reorder_start",7),this.internal_keyboard_reorder_move=t(this,"internal_keyboard_reorder_move",7),this.internal_keyboard_reorder_emit=t(this,"internal_keyboard_reorder_emit",7),this.internal_keyboard_reorder_finish=t(this,"internal_keyboard_reorder_finish",7),this.orderId=void 0,this.highlightActive=void 0,this.highlight=void 0,this.text=void 0,this.pendingReorder="none",this.isDragging=!1,this.isReordering=!1}async guxSetHighlight(o="",t=!1){this.highlight=o,this.highlightActive=t}async guxFocus(){this.reorderButtonElement.focus()}onBlur(){this.setReorderMode(!1)}onDragStart(o){this.isDragging=!0;const t=a(this.root);o.dataTransfer.setData("oldIndex",String(t)),o.dataTransfer.effectAllowed="move"}onDragEnter(o){o.dataTransfer.dropEffect="move",this.pendingReorder=this.mouseOnTopHalf(o)?"above":"below"}onDragOver(o){o.preventDefault(),this.pendingReorder=this.mouseOnTopHalf(o)?"above":"below"}onDragLeave(){this.pendingReorder="none"}onDragEnd(){this.isDragging=!1}onDrop(o){const t=Number(o.dataTransfer.getData("oldIndex")),e=a(this.root);o.stopPropagation(),o.stopImmediatePropagation(),this.pendingReorder="none";const r=function(o,t,e){return o<t?e?t-1:t:e?t:t+1}(t,e,this.mouseOnTopHalf(o));return this.internal_order_change.emit({oldIndex:t,newIndex:r}),!1}mouseOnTopHalf(o){const t=this.root.getBoundingClientRect();return o.clientY-t.top<=(t.bottom-t.top)/2}onSlotChange(){this.text=this.root.querySelector("gux-form-field-checkbox label").textContent}setReorderMode(o,t=!1){this.isReordering!==o&&(this.isReordering=o,o?this.internal_keyboard_reorder_start.emit(this.text):(t&&this.internal_keyboard_reorder_emit.emit(),this.internal_keyboard_reorder_finish.emit()))}toggleReorderMode(){this.setReorderMode(!this.isReordering,!0)}keyboardReorder(o){if(this.isReordering)switch(o.key){case"ArrowUp":o.preventDefault(),this.internal_keyboard_reorder_move.emit({delta:-1,column:this.text});break;case"ArrowDown":o.preventDefault(),this.internal_keyboard_reorder_move.emit({delta:1,column:this.text});break;case"Home":o.preventDefault(),this.internal_keyboard_reorder_move.emit({delta:-1/0,column:this.text});break;case"End":o.preventDefault(),console.log("End"),this.internal_keyboard_reorder_move.emit({delta:1/0,column:this.text});break;case"Escape":o.preventDefault(),this.setReorderMode(!1)}}async componentWillLoad(){this.i18n=await n(this.root,s)}render(){return e(r,{draggable:"true"},e("div",{class:{"gux-container":!0,[`gux-drop-${this.pendingReorder}`]:!0,"gux-dragging":this.isDragging}},e("button",{class:{"gux-reorder":!0,"gux-reordering":this.isReordering},type:"button",onClick:()=>this.toggleReorderMode(),onKeyDown:o=>this.keyboardReorder(o),ref:o=>this.reorderButtonElement=o},e("gux-icon",{"icon-name":"grab-vertical",decorative:!0}),e("span",{class:"gux-sr-only"},this.i18n("activateReordering",{columnName:this.text}))),e("div",{class:"gux-select"},e("slot",{onSlotchange:()=>this.onSlotChange()}),e("gux-text-highlight",{highlight:this.highlight,text:this.text,strategy:"contains",dimmed:!this.highlightActive}))))}get root(){return i(this)}};f.style='.gux-focus-ring-focused:focus{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-focus-ring-focused-within:focus-within{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-focus-ring-focused-visible:focus-visible{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-focus-ring-small-focused:focus{outline:2px solid #aac9ff;outline-offset:0}.gux-focus-ring-small-focused-within:focus-within{outline:2px solid #aac9ff;outline-offset:0}.gux-focus-ring-small-focused-visible:focus-visible{outline:2px solid #aac9ff;outline-offset:0}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:url("./fonts/roboto-v20-latin-300.eot");src:local("Roboto Light"), local("Roboto-Light"), url("./fonts/roboto-v20-latin-300.eot?#iefix") format("embedded-opentype"), url("./fonts/roboto-v20-latin-300.woff2") format("woff2"), url("./fonts/roboto-v20-latin-300.woff") format("woff"), url("./fonts/roboto-v20-latin-300.ttf") format("truetype"), url("./fonts/roboto-v20-latin-300.svg#Roboto") format("svg");}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:url("./fonts/roboto-v20-latin-regular.eot");src:local("Roboto"), local("Roboto-Regular"), url("./fonts/roboto-v20-latin-regular.eot?#iefix") format("embedded-opentype"), url("./fonts/roboto-v20-latin-regular.woff2") format("woff2"), url("./fonts/roboto-v20-latin-regular.woff") format("woff"), url("./fonts/roboto-v20-latin-regular.ttf") format("truetype"), url("./fonts/roboto-v20-latin-regular.svg#Roboto") format("svg");}@font-face{font-family:Roboto;font-style:italic;font-weight:400;src:url("./fonts/roboto-v20-latin-italic.eot");src:local("Roboto Italic"), local("Roboto-Italic"), url("./fonts/roboto-v20-latin-italic.eot?#iefix") format("embedded-opentype"), url("./fonts/roboto-v20-latin-italic.woff2") format("woff2"), url("./fonts/roboto-v20-latin-italic.woff") format("woff"), url("./fonts/roboto-v20-latin-italic.ttf") format("truetype"), url("./fonts/roboto-v20-latin-italic.svg#Roboto") format("svg");}@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:url("./fonts/roboto-v20-latin-700.eot");src:local("Roboto Bold"), local("Roboto-Bold"), url("./fonts/roboto-v20-latin-700.eot?#iefix") format("embedded-opentype"), url("./fonts/roboto-v20-latin-700.woff2") format("woff2"), url("./fonts/roboto-v20-latin-700.woff") format("woff"), url("./fonts/roboto-v20-latin-700.ttf") format("truetype"), url("./fonts/roboto-v20-latin-700.svg#Roboto") format("svg");}body{font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}h1{font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:24px;line-height:32px}h2{font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:18px;line-height:24px}h3{font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:14px;line-height:20px}h4,h5,h6{font-family:Roboto, sans-serif;font-weight:400;font-size:14px;line-height:20px}.gux-icon-anchor gux-icon{padding-right:2px}a{color:#2a60c8;text-decoration:underline;border-radius:2px}a:hover{color:#2754ac}a:active{color:#23478f}a:focus-visible{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}table a{color:#2a60c8;text-decoration:underline;border-radius:2px;text-decoration:none}table a:hover{color:#2754ac}table a:active{color:#23478f}table a:focus-visible{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}:host([gs-reorder-indicator=above]) .gux-container{border-top-color:#aac9ff}:host([gs-reorder-indicator=below]) .gux-container{border-bottom-color:#aac9ff}.gux-container{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:flex-start;margin-bottom:-2px;border-top:2px solid transparent;border-bottom:2px solid transparent}.gux-container.gux-drop-above{border-top-color:#aac9ff}.gux-container.gux-drop-below{border-bottom-color:#aac9ff}.gux-container.gux-dragging{border-top-color:transparent;border-bottom-color:transparent;opacity:0.4}.gux-container .gux-reorder{all:unset;flex:0 1 auto;align-self:auto;order:0;margin-right:4px;color:#596373;cursor:grab;border-radius:4px}.gux-container .gux-reorder.gux-reordering:focus-visible gux-icon{color:#2a60c8}.gux-container .gux-reorder:active{pointer-events:none;cursor:grabbing !important}.gux-container .gux-reorder:hover,.gux-container .gux-reorder:focus-visible{outline:2px solid #aac9ff;outline-offset:0}.gux-container .gux-reorder:hover gux-icon,.gux-container .gux-reorder:focus-visible gux-icon{color:#2a60c8}.gux-container .gux-select{position:relative;flex:1 1 auto;align-self:auto;order:1}.gux-container .gux-select gux-text-highlight{position:absolute;top:2px;left:24px;pointer-events:none}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}';export{f as gux_column_manager_item}
@@ -1 +0,0 @@
1
- import{r as t,c as o,f as e,d as i,h as s,H as a,g as l}from"./p-7d26b2e1.js";import{b as n}from"./p-deee079e.js";import{w as r}from"./p-76ff3e75.js";import{r as f}from"./p-cbcbd1bb.js";import{t as h}from"./p-dc84cec7.js";import{t as c}from"./p-1aa11396.js";import"./p-8a133b9b.js";const u=class{constructor(i){t(this,i),this.guxselectionchanged=o(this,"guxselectionchanged",7),this.guxsortchanged=o(this,"guxsortchanged",7),this.slotObserver=new MutationObserver((()=>e(this))),this.tableId=f("gux-table"),this.columnsWidths={},this.isVerticalScroll=!1,this.columnResizeHover=!1,this.compact=!1,this.objectTable=!1,this.emptyMessage=void 0,this.resizableColumns=void 0}async componentWillLoad(){h(this.root),this.i18n=await n(this.root,c)}componentDidLoad(){this.resizableColumns&&this.prepareResizableColumns(),this.prepareSelectableRows(),this.checkVerticalScroll(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{i((()=>{this.checkVerticalScroll()}))}))),this.resizeObserver&&(this.resizeObserver.observe(this.tableContainer),this.resizeObserver.observe(this.slottedTable)),this.slotObserver.observe(this.slottedTable,{subtree:!0,childList:!0})}checkVerticalScroll(){const t=this.tableContainer;this.isVerticalScroll=t.scrollHeight>t.clientHeight}disconnectedCallback(){this.resizeObserver&&(this.resizeObserver.unobserve(this.tableContainer),this.resizeObserver.unobserve(this.slottedTable)),this.resizableColumns&&document.getElementById(`${this.tableId}-resizable-styles`).remove()}onInternalAllRowSelectChange(t){t.stopPropagation(),this.handleSelectAllRows(t.detail)}onInternalRowSelectChange(t){t.stopPropagation();const o=t.target;o.selected=t.detail,this.handleRowSelection(o)}onMouseMove(t){this.resizableColumns&&this.updateResizeState(t)}onMouseDown(t){this.resizableColumns&&this.maybeStartResizing(t)}onMouseUp(){this.resizableColumns&&this.stopResizing()}get tableContainer(){return this.root.shadowRoot.querySelector(".gux-table-container")}get slottedTable(){return this.root.querySelector('table[slot="data"]')}get tableRows(){return Array.from(this.slottedTable.querySelectorAll("tbody tr"))}get tableColumns(){return Array.from(this.slottedTable.querySelectorAll("thead th"))}get rowCheckboxes(){return Array.from(this.slottedTable.querySelectorAll("tbody tr td gux-row-select"))}get selectAllCheckbox(){return this.slottedTable.querySelector("thead tr th gux-all-row-select")}async getSelected(){return this.getSelectedInternal()}getSelectedInternal(){return{selectedRowIds:Array.from(this.rowCheckboxes).filter((t=>t.selected)).map((t=>t.closest("tr").getAttribute("data-row-id")))}}prepareSelectableRows(){this.rowCheckboxes.forEach((t=>{this.updateRowSelection(t)})),this.updateSelectAllBoxState()}updateSelectAllBoxState(){const t=this.selectAllCheckbox;if(t){const o=this.rowCheckboxes,e=o.filter((t=>!t.hasAttribute("disabled"))),i=e.filter((t=>t.selected)),s=Boolean(o.length),a=i.length===e.length,l=0===i.length;t.selected=s&&a,t.setIndeterminate(s&&!a&&!l)}}handleSelectAllRows(t){const o=this.selectAllCheckbox;this.rowCheckboxes.forEach((e=>{o.selected=t,e.hasAttribute("disabled")||(e.selected=t,this.updateRowSelection(e))})),this.emitSelectionEvent()}handleRowSelection(t){this.updateRowSelection(t),this.updateSelectAllBoxState(),this.emitSelectionEvent()}emitSelectionEvent(){this.guxselectionchanged.emit(this.getSelectedInternal())}updateRowSelection(t){const o=t.closest("tr");t.selected?o.setAttribute("data-selected-row",""):o.removeAttribute("data-selected-row")}prepareResizableColumns(){const t=document.createElement("style");t.id=`${this.tableId}-resizable-styles`,document.querySelector("head").appendChild(t),this.calculateColumnWidths(this.tableColumns).slice(0,-1).forEach((t=>this.columnsWidths[t.name]=t.width)),this.setResizableColumnsStyles()}updateResizeState(t){if(this.columnResizeState){const o=this.columnResizeState.resizableColumn.dataset.columnName,e=Math.max(this.columnResizeState.resizableColumnInitialWidth+(t.pageX-this.columnResizeState.columnResizeMouseStartX),1),i=this.calculateColumnWidths(this.tableColumns).map((t=>t.name===o?Object.assign(Object.assign({},t),{width:e}):t));this.columnsWidths[o]=i.find((t=>t.name===o)).width,this.setResizableColumnsStyles()}else this.columnResizeHover=!1,r("th",t,(o=>{this.tableColumns.length-1!==o.cellIndex&&this.isInResizeZone(t,o)&&(this.columnResizeHover=!0)}))}maybeStartResizing(t){r("th",t,(o=>{this.isInResizeZone(t,o)&&(this.columnResizeState={resizableColumn:o,columnResizeMouseStartX:t.pageX,resizableColumnInitialWidth:o.clientWidth})}))}stopResizing(){this.columnResizeState&&(this.columnResizeState=null)}isInResizeZone(t,o){return o.getBoundingClientRect().right-t.clientX<3}calculateColumnWidths(t){return t.map((t=>({name:t.dataset.columnName,width:t.clientWidth})))}setResizableColumnsStyles(){const t=document.getElementById(`${this.tableId}-resizable-styles`);let o="";Object.keys(this.columnsWidths).forEach((t=>{o+=`[gs-table-id=${this.tableId}] th[data-column-name="${t}"]{\n width:${String(this.columnsWidths[t])}px;\n min-width:${String(this.columnsWidths[t])}px;\n }`})),t.innerHTML=o}get isTableEmpty(){return!this.root.children[0]||this.tableRows.length<1}get tableContainerClasses(){return{"gux-table-container":!0,"gux-column-resizing":Boolean(this.columnResizeState),"gux-column-resizing-hover":this.columnResizeHover}}render(){return s(a,{"gs-table-id":this.tableId,"gs-obj-table":this.objectTable,"gs-compact":this.compact},s("div",{class:"gux-table"},s("div",{tabindex:this.isVerticalScroll?"0":"-1",id:this.tableId,class:this.tableContainerClasses},s("slot",{name:"data"})),this.isTableEmpty&&s("div",{class:"gux-empty-table"},this.emptyMessage||this.i18n("emptyMessage"))))}get root(){return l(this)}};u.style='.gux-focus-ring-focused:focus{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-focus-ring-focused-within:focus-within{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-focus-ring-focused-visible:focus-visible{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-focus-ring-small-focused:focus{outline:2px solid #aac9ff;outline-offset:0}.gux-focus-ring-small-focused-within:focus-within{outline:2px solid #aac9ff;outline-offset:0}.gux-focus-ring-small-focused-visible:focus-visible{outline:2px solid #aac9ff;outline-offset:0}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:url("./fonts/roboto-v20-latin-300.eot");src:local("Roboto Light"), local("Roboto-Light"), url("./fonts/roboto-v20-latin-300.eot?#iefix") format("embedded-opentype"), url("./fonts/roboto-v20-latin-300.woff2") format("woff2"), url("./fonts/roboto-v20-latin-300.woff") format("woff"), url("./fonts/roboto-v20-latin-300.ttf") format("truetype"), url("./fonts/roboto-v20-latin-300.svg#Roboto") format("svg");}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:url("./fonts/roboto-v20-latin-regular.eot");src:local("Roboto"), local("Roboto-Regular"), url("./fonts/roboto-v20-latin-regular.eot?#iefix") format("embedded-opentype"), url("./fonts/roboto-v20-latin-regular.woff2") format("woff2"), url("./fonts/roboto-v20-latin-regular.woff") format("woff"), url("./fonts/roboto-v20-latin-regular.ttf") format("truetype"), url("./fonts/roboto-v20-latin-regular.svg#Roboto") format("svg");}@font-face{font-family:Roboto;font-style:italic;font-weight:400;src:url("./fonts/roboto-v20-latin-italic.eot");src:local("Roboto Italic"), local("Roboto-Italic"), url("./fonts/roboto-v20-latin-italic.eot?#iefix") format("embedded-opentype"), url("./fonts/roboto-v20-latin-italic.woff2") format("woff2"), url("./fonts/roboto-v20-latin-italic.woff") format("woff"), url("./fonts/roboto-v20-latin-italic.ttf") format("truetype"), url("./fonts/roboto-v20-latin-italic.svg#Roboto") format("svg");}@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:url("./fonts/roboto-v20-latin-700.eot");src:local("Roboto Bold"), local("Roboto-Bold"), url("./fonts/roboto-v20-latin-700.eot?#iefix") format("embedded-opentype"), url("./fonts/roboto-v20-latin-700.woff2") format("woff2"), url("./fonts/roboto-v20-latin-700.woff") format("woff"), url("./fonts/roboto-v20-latin-700.ttf") format("truetype"), url("./fonts/roboto-v20-latin-700.svg#Roboto") format("svg");}body{font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}h1{font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:24px;line-height:32px}h2{font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:18px;line-height:24px}h3{font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:14px;line-height:20px}h4,h5,h6{font-family:Roboto, sans-serif;font-weight:400;font-size:14px;line-height:20px}.gux-icon-anchor gux-icon{padding-right:2px}a{color:#2a60c8;text-decoration:underline;border-radius:2px}a:hover{color:#2754ac}a:active{color:#23478f}a:focus-visible{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}table a{color:#2a60c8;text-decoration:underline;border-radius:2px;text-decoration:none}table a:hover{color:#2754ac}table a:active{color:#23478f}table a:focus-visible{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}:host{display:block;isolation:isolate}:host .gux-table{position:relative;height:inherit}:host .gux-table .gux-table-container{max-height:100%;overflow:auto;scrollbar-color:var(--gse-ui-dataTableItems-scrollbar-foregroundColor);scrollbar-width:thin}:host .gux-table .gux-table-container.gux-column-resizing-hover,:host .gux-table .gux-table-container.gux-column-resizing{cursor:col-resize}:host .gux-empty-table{display:flex;align-items:center;justify-content:center;height:calc(100% - var(--gse-ui-dataTableItems-header-default-height));color:#596373;background:#fdfdfd;font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:18px;line-height:24px}';export{u as gux_table}