genesys-spark-components 4.22.1 → 4.23.1
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.
- package/dist/cjs/{check-regional-dates-cookie-4bd0f650.js → check-regional-dates-cookie-2b234ae2.js} +49 -1
- package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
- package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-avatar-beta.cjs.entry.js +73 -8
- package/dist/cjs/gux-badge.cjs.entry.js +1 -1
- package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
- package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
- package/dist/cjs/gux-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-calendar.cjs.entry.js +12 -2
- package/dist/cjs/gux-card.cjs.entry.js +1 -1
- package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
- package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
- package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
- package/dist/cjs/gux-date-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-date-time-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-datepicker.cjs.entry.js +11 -2
- package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
- package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-number_3.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +1 -1
- package/dist/cjs/gux-icon.cjs.entry.js +1 -1
- package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
- package/dist/cjs/gux-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal.cjs.entry.js +1 -1
- package/dist/cjs/gux-month-calendar.cjs.entry.js +7 -1
- package/dist/cjs/gux-month-picker-beta.cjs.entry.js +8 -2
- package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
- package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
- package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
- package/dist/cjs/gux-rating.cjs.entry.js +1 -1
- package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
- package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab-advanced-list.cjs.entry.js +500 -871
- package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/gux-table.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gux-tag.cjs.entry.js +1 -1
- package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-time-picker.cjs.entry.js +2 -2
- package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-toast.cjs.entry.js +1 -1
- package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
- package/dist/cjs/gux-tooltip-base-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-tooltip-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{usage-4b9ed6bb.js → usage-1cba9914.js} +6 -6
- package/dist/collection/components/beta/gux-avatar/gux-avatar.css +168 -30
- package/dist/collection/components/beta/gux-avatar/gux-avatar.js +161 -6
- package/dist/collection/components/beta/gux-avatar/tests/gux-avatar.spec.js +42 -0
- package/dist/collection/components/beta/gux-date/gux-date.js +1 -0
- package/dist/collection/components/beta/gux-date-time/gux-date-time.js +1 -0
- package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-calendar.js +9 -1
- package/dist/collection/components/beta/gux-month-picker/gux-month-picker.js +8 -1
- package/dist/collection/components/beta/gux-time/gux-time.js +1 -0
- package/dist/collection/components/stable/gux-calendar/gux-calendar.service.js +14 -1
- package/dist/collection/components/stable/gux-datepicker/gux-datepicker.js +14 -4
- package/dist/collection/components/stable/gux-icon/gux-icon.js +1 -1
- package/dist/collection/components/stable/gux-icon/icons/fa/00-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/anchor-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/arrows-up-down-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/restricted/fa/building-user-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/restricted/fa/calendar-circle-user-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/restricted/fa/compass-drafting-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/restricted/fa/grid-2-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/restricted/fa/headset-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/restricted/fa/screwdriver-wrench-regular.svg +1 -0
- package/dist/collection/genesys-spark-utils/get-closest-element.js +19 -0
- package/dist/collection/genesys-spark-utils/intl.js +28 -1
- package/dist/collection/i18n/check-regional-dates-cookie.js +1 -0
- package/dist/deploy-info.json +3 -3
- package/dist/esm/{check-regional-dates-cookie-681b4814.js → check-regional-dates-cookie-5bd719be.js} +49 -2
- package/dist/esm/genesys-webcomponents.js +1 -1
- package/dist/esm/gux-accordion.entry.js +1 -1
- package/dist/esm/gux-action-button.entry.js +1 -1
- package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
- package/dist/esm/gux-announce-beta.entry.js +1 -1
- package/dist/esm/gux-avatar-beta.entry.js +73 -8
- package/dist/esm/gux-badge.entry.js +1 -1
- package/dist/esm/gux-blank-state.entry.js +1 -1
- package/dist/esm/gux-breadcrumbs.entry.js +1 -1
- package/dist/esm/gux-button-multi.entry.js +1 -1
- package/dist/esm/gux-button-slot.entry.js +1 -1
- package/dist/esm/gux-button.entry.js +1 -1
- package/dist/esm/gux-calendar.entry.js +12 -2
- package/dist/esm/gux-card.entry.js +1 -1
- package/dist/esm/gux-column-manager.entry.js +1 -1
- package/dist/esm/gux-content-search.entry.js +1 -1
- package/dist/esm/gux-context-menu.entry.js +1 -1
- package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
- package/dist/esm/gux-date-beta.entry.js +2 -2
- package/dist/esm/gux-date-time-beta.entry.js +2 -2
- package/dist/esm/gux-datepicker.entry.js +11 -2
- package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
- package/dist/esm/gux-dismiss-button.entry.js +1 -1
- package/dist/esm/gux-dropdown-multi.entry.js +1 -1
- package/dist/esm/gux-dropdown_3.entry.js +1 -1
- package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
- package/dist/esm/gux-flyout-menu.entry.js +1 -1
- package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
- package/dist/esm/gux-form-field-color.entry.js +1 -1
- package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
- package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
- package/dist/esm/gux-form-field-number_3.entry.js +1 -1
- package/dist/esm/gux-form-field-phone.entry.js +1 -1
- package/dist/esm/gux-form-field-radio.entry.js +1 -1
- package/dist/esm/gux-form-field-range.entry.js +1 -1
- package/dist/esm/gux-form-field-search.entry.js +1 -1
- package/dist/esm/gux-form-field-select.entry.js +1 -1
- package/dist/esm/gux-form-field-text-like.entry.js +1 -1
- package/dist/esm/gux-form-field-textarea.entry.js +1 -1
- package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
- package/dist/esm/gux-form-field-time-zone-picker.entry.js +1 -1
- package/dist/esm/gux-icon.entry.js +1 -1
- package/dist/esm/gux-inline-alert.entry.js +1 -1
- package/dist/esm/gux-list.entry.js +1 -1
- package/dist/esm/gux-listbox-multi.entry.js +1 -1
- package/dist/esm/gux-loading-message.entry.js +1 -1
- package/dist/esm/gux-modal-legacy.entry.js +1 -1
- package/dist/esm/gux-modal.entry.js +1 -1
- package/dist/esm/gux-month-calendar.entry.js +7 -1
- package/dist/esm/gux-month-picker-beta.entry.js +8 -2
- package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
- package/dist/esm/gux-pagination-cursor.entry.js +1 -1
- package/dist/esm/gux-pagination-legacy.entry.js +1 -1
- package/dist/esm/gux-pagination.entry.js +1 -1
- package/dist/esm/gux-phone-input-beta.entry.js +1 -1
- package/dist/esm/gux-popover-list.entry.js +1 -1
- package/dist/esm/gux-radial-loading.entry.js +1 -1
- package/dist/esm/gux-radial-progress.entry.js +1 -1
- package/dist/esm/gux-rating.entry.js +1 -1
- package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
- package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
- package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
- package/dist/esm/gux-sort-control.entry.js +1 -1
- package/dist/esm/gux-switch-legacy.entry.js +1 -1
- package/dist/esm/gux-tab-advanced-list.entry.js +500 -871
- package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
- package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
- package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
- package/dist/esm/gux-table-toolbar.entry.js +1 -1
- package/dist/esm/gux-table.entry.js +1 -1
- package/dist/esm/gux-tabs-advanced.entry.js +1 -1
- package/dist/esm/gux-tabs.entry.js +1 -1
- package/dist/esm/gux-tag.entry.js +1 -1
- package/dist/esm/gux-text-highlight.entry.js +1 -1
- package/dist/esm/gux-time-beta.entry.js +2 -2
- package/dist/esm/gux-time-picker.entry.js +2 -2
- package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
- package/dist/esm/gux-toast.entry.js +1 -1
- package/dist/esm/gux-toggle.entry.js +1 -1
- package/dist/esm/gux-tooltip-base-beta.entry.js +1 -1
- package/dist/esm/gux-tooltip-beta.entry.js +1 -1
- package/dist/esm/gux-tooltip.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{usage-bd5ba481.js → usage-9ab96279.js} +6 -6
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
- package/dist/genesys-webcomponents/icons/fa/00-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/anchor-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/arrows-up-down-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/restricted/fa/building-user-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/restricted/fa/calendar-circle-user-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/restricted/fa/compass-drafting-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/restricted/fa/grid-2-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/restricted/fa/headset-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/restricted/fa/screwdriver-wrench-regular.svg +1 -0
- package/dist/genesys-webcomponents/{p-6c8f0ad0.entry.js → p-000f5374.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fc4f4dd0.entry.js → p-06dad1d0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e8469cb5.entry.js → p-098efb8d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-08e6fdd4.entry.js → p-0e141f9a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-152cb931.js → p-10b3595c.js} +1 -1
- package/dist/genesys-webcomponents/{p-f331dc91.entry.js → p-11e26fea.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-24a13ff1.entry.js → p-14d6f9e2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-309e2c70.entry.js → p-20609dc0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-acbd88a2.entry.js → p-2218c7cb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-26eb04e8.entry.js → p-24bbda72.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1ff42ff9.entry.js → p-24d7a6f7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4fcbba5a.entry.js → p-251ebcd4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-00ea968e.entry.js → p-29fcea42.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3223d501.entry.js → p-2a87df17.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-410d89b5.entry.js → p-2be8db39.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-30055f22.entry.js +1 -0
- package/dist/genesys-webcomponents/p-3481815e.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-28286c4c.entry.js → p-376c5290.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e44a0ff4.entry.js → p-39821a6f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-47d6e41f.entry.js → p-3abe060f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f4d14198.entry.js → p-3af4cf46.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3b8f0dd8.entry.js → p-3c47d86d.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-3c958331.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-751fe3a6.entry.js → p-4157fb02.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4f6997c6.entry.js → p-42b4e813.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9a4a4f93.entry.js → p-430bcf97.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-59ebad2e.entry.js → p-43f71174.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8245b0a2.entry.js → p-441d4125.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9e2011ee.entry.js → p-447fafa6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7f0d9df9.entry.js → p-47e98231.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4936247a.entry.js → p-5098f992.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-48faf568.entry.js → p-53ef116d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1c348325.entry.js → p-5a5ad88c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fe63ce6b.entry.js → p-5e1e404a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-99e3b161.entry.js → p-696b97ae.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-142951ad.entry.js → p-6a956c6c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-79160892.entry.js → p-74695e7b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5e671fa1.entry.js → p-7914ba44.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d5acbffd.entry.js → p-79539e26.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1b6faec9.entry.js → p-7f22fafa.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-80a2f466.entry.js +7 -0
- package/dist/genesys-webcomponents/{p-92054806.entry.js → p-80df1352.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-98c5909f.entry.js → p-83232946.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5ee6a9bf.entry.js → p-85f77711.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9161e8c6.entry.js → p-8729f3a2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ec2ff248.entry.js → p-8ca671ab.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-8cc37445.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-8cad99b3.entry.js → p-9898f913.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e09a4c03.entry.js → p-98a990b0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b9c7935d.entry.js → p-9ac2a5cf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1b7b987c.entry.js → p-9afbf25f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9da5d399.entry.js → p-9d94b7fb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9e41411a.entry.js → p-a3a751c5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-96af6a1b.entry.js → p-a4c35ca0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d3f350ae.entry.js → p-a53a9f58.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dd4ff75c.entry.js → p-a6414f16.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b2f36118.entry.js → p-aac35feb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-57643276.entry.js → p-aae53a3f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e939b5a5.entry.js → p-ab394380.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bc769e54.entry.js → p-ab7c2129.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9a0d1250.entry.js → p-aef28448.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6e62f34d.entry.js → p-b005580f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6c0d7240.entry.js → p-b01edf59.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bff957ca.entry.js → p-b1b8e436.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-35c54f1d.entry.js → p-bdc57336.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fcc68e5d.entry.js → p-bf275d7a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0df93af0.entry.js → p-c173e4bb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b5318072.entry.js → p-c867de19.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bd53263b.entry.js → p-ca7d5b8d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-571b8935.entry.js → p-cac009eb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9fe1cc7f.entry.js → p-cafc5f9c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d437ac6c.entry.js → p-cfacf86f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-feb53278.entry.js → p-d0111864.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7329aa11.entry.js → p-d2e8f9f9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b74ae93c.entry.js → p-d64137bb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0c0bc2d3.entry.js → p-d9cea9d9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0e97989f.entry.js → p-dbf4bcb5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c25f415a.entry.js → p-ddc92fba.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-dede4fe3.js +1 -0
- package/dist/genesys-webcomponents/{p-ea32d547.entry.js → p-e383451c.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-e6d375f4.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-5076bdca.entry.js → p-e7069c4f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-830fe06c.entry.js → p-ebec2d84.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-54e56f27.entry.js → p-ec106782.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c831bf20.entry.js → p-edd052ff.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7cbfdb55.entry.js → p-f1ed2086.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/beta/gux-avatar/gux-avatar.d.ts +28 -2
- package/dist/types/components/beta/gux-avatar/gux-avatar.types.d.ts +1 -0
- package/dist/types/components/stable/gux-icon/gux-icon.types.d.ts +1 -1
- package/dist/types/components.d.ts +42 -2
- package/dist/types/genesys-spark-utils/get-closest-element.d.ts +1 -0
- package/dist/types/genesys-spark-utils/intl.d.ts +1 -9
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/package.json +6 -6
- package/dist/genesys-webcomponents/p-209db079.entry.js +0 -1
- package/dist/genesys-webcomponents/p-2d4d5bcb.entry.js +0 -1
- package/dist/genesys-webcomponents/p-4761d903.js +0 -1
- package/dist/genesys-webcomponents/p-54bbb104.entry.js +0 -7
- package/dist/genesys-webcomponents/p-68ddf579.entry.js +0 -1
- package/dist/genesys-webcomponents/p-bdf8cc79.entry.js +0 -1
- package/dist/genesys-webcomponents/p-c984199d.entry.js +0 -1
@@ -14,12 +14,19 @@
|
|
14
14
|
|
15
15
|
.gux-avatar {
|
16
16
|
position: relative;
|
17
|
+
width: var(--gse-ui-avatar-large-size);
|
18
|
+
height: var(--gse-ui-avatar-large-size);
|
19
|
+
overflow: hidden;
|
20
|
+
border-radius: 50%;
|
21
|
+
}
|
22
|
+
.gux-avatar .gux-content {
|
17
23
|
box-sizing: border-box;
|
18
24
|
display: flex;
|
19
25
|
align-items: center;
|
20
26
|
justify-content: center;
|
21
|
-
width: var(--gse-ui-avatar-large-
|
22
|
-
height: var(--gse-ui-avatar-large-
|
27
|
+
width: calc(100% - var(--gse-ui-avatar-large-presenceRing-width) * 2);
|
28
|
+
height: calc(100% - var(--gse-ui-avatar-large-presenceRing-width) * 2);
|
29
|
+
margin: var(--gse-ui-avatar-large-presenceRing-width);
|
23
30
|
overflow: hidden;
|
24
31
|
font-family: var(--gse-ui-avatar-large-initials-fontFamily);
|
25
32
|
font-size: var(--gse-ui-avatar-large-initials-fontSize);
|
@@ -28,75 +35,206 @@
|
|
28
35
|
color: var(--gse-ui-avatar-media-initialsForeground-inverse);
|
29
36
|
text-transform: uppercase;
|
30
37
|
background-color: var(--gse-ui-avatar-media-initialsBackground-default);
|
38
|
+
border: var(--gse-ui-avatar-content-large-border-width) var(--gse-ui-avatar-content-default-border-style) var(--gse-ui-avatar-content-default-border-color);
|
31
39
|
border-radius: 50%;
|
32
40
|
}
|
33
|
-
.gux-avatar.gux-
|
41
|
+
.gux-avatar.gux-medium {
|
42
|
+
width: var(--gse-ui-avatar-medium-size);
|
43
|
+
height: var(--gse-ui-avatar-medium-size);
|
44
|
+
}
|
45
|
+
.gux-avatar.gux-medium .gux-content {
|
46
|
+
width: calc(100% - var(--gse-ui-avatar-medium-presenceRing-width) * 2);
|
47
|
+
height: calc(100% - var(--gse-ui-avatar-medium-presenceRing-width) * 2);
|
48
|
+
margin: var(--gse-ui-avatar-medium-presenceRing-width);
|
49
|
+
font-size: var(--gse-ui-avatar-medium-initials-fontSize);
|
50
|
+
font-weight: var(--gse-ui-avatar-medium-initials-fontWeight);
|
51
|
+
}
|
52
|
+
.gux-avatar.gux-medium .gux-content, .gux-avatar.gux-small .gux-content, .gux-avatar.gux-xsmall .gux-content {
|
53
|
+
border-width: var(--gse-ui-avatar-content-default-border-width);
|
54
|
+
}
|
55
|
+
.gux-avatar.gux-small {
|
56
|
+
width: var(--gse-ui-avatar-small-size);
|
57
|
+
height: var(--gse-ui-avatar-small-size);
|
58
|
+
}
|
59
|
+
.gux-avatar.gux-small .gux-content {
|
60
|
+
width: calc(100% - var(--gse-ui-avatar-small-presenceRing-width) * 2);
|
61
|
+
height: calc(100% - var(--gse-ui-avatar-small-presenceRing-width) * 2);
|
62
|
+
margin: var(--gse-ui-avatar-small-presenceRing-width);
|
63
|
+
font-size: var(--gse-ui-avatar-small-initials-fontSize);
|
64
|
+
font-weight: var(--gse-ui-avatar-small-initials-fontWeight);
|
65
|
+
}
|
66
|
+
.gux-avatar.gux-xsmall {
|
67
|
+
width: var(--gse-ui-avatar-xsmall-size);
|
68
|
+
height: var(--gse-ui-avatar-xsmall-size);
|
69
|
+
}
|
70
|
+
.gux-avatar.gux-xsmall .gux-content {
|
71
|
+
width: calc(100% - var(--gse-ui-avatar-xsmall-presenceRing-width) * 2);
|
72
|
+
height: calc(100% - var(--gse-ui-avatar-xsmall-presenceRing-width) * 2);
|
73
|
+
margin: var(--gse-ui-avatar-xsmall-presenceRing-width);
|
74
|
+
font-size: var(--gse-ui-avatar-xsmall-initials-fontSize);
|
75
|
+
font-weight: var(--gse-ui-avatar-xsmall-initials-fontWeight);
|
76
|
+
}
|
77
|
+
.gux-avatar.gux-accent-1 .gux-content {
|
34
78
|
color: var(--gse-ui-avatar-media-initialsForeground-inverse);
|
35
79
|
background-color: var(--gse-ui-avatar-media-initialsBackground-accent1);
|
36
80
|
}
|
37
|
-
.gux-avatar.gux-accent-2 {
|
81
|
+
.gux-avatar.gux-accent-2 .gux-content {
|
38
82
|
color: var(--gse-ui-avatar-media-initialsForeground-default);
|
39
83
|
background-color: var(--gse-ui-avatar-media-initialsBackground-accent2);
|
40
84
|
}
|
41
|
-
.gux-avatar.gux-accent-3 {
|
85
|
+
.gux-avatar.gux-accent-3 .gux-content {
|
42
86
|
color: var(--gse-ui-avatar-media-initialsForeground-inverse);
|
43
87
|
background-color: var(--gse-ui-avatar-media-initialsBackground-accent3);
|
44
88
|
}
|
45
|
-
.gux-avatar.gux-accent-4 {
|
89
|
+
.gux-avatar.gux-accent-4 .gux-content {
|
46
90
|
color: var(--gse-ui-avatar-media-initialsForeground-inverse);
|
47
91
|
background-color: var(--gse-ui-avatar-media-initialsBackground-accent4);
|
48
92
|
}
|
49
|
-
.gux-avatar.gux-accent-5 {
|
93
|
+
.gux-avatar.gux-accent-5 .gux-content {
|
50
94
|
color: var(--gse-ui-avatar-media-initialsForeground-default);
|
51
95
|
background-color: var(--gse-ui-avatar-media-initialsBackground-accent5);
|
52
96
|
}
|
53
|
-
.gux-avatar.gux-accent-6 {
|
97
|
+
.gux-avatar.gux-accent-6 .gux-content {
|
54
98
|
color: var(--gse-ui-avatar-media-initialsForeground-default);
|
55
99
|
background-color: var(--gse-ui-avatar-media-initialsBackground-accent6);
|
56
100
|
}
|
57
|
-
.gux-avatar.gux-accent-7 {
|
101
|
+
.gux-avatar.gux-accent-7 .gux-content {
|
58
102
|
color: var(--gse-ui-avatar-media-initialsForeground-inverse);
|
59
103
|
background-color: var(--gse-ui-avatar-media-initialsBackground-accent7);
|
60
104
|
}
|
61
|
-
.gux-avatar.gux-accent-8 {
|
105
|
+
.gux-avatar.gux-accent-8 .gux-content {
|
62
106
|
color: var(--gse-ui-avatar-media-initialsForeground-default);
|
63
107
|
background-color: var(--gse-ui-avatar-media-initialsBackground-accent8);
|
64
108
|
}
|
65
|
-
.gux-avatar.gux-accent-9 {
|
109
|
+
.gux-avatar.gux-accent-9 .gux-content {
|
66
110
|
color: var(--gse-ui-avatar-media-initialsForeground-default);
|
67
111
|
background-color: var(--gse-ui-avatar-media-initialsBackground-accent9);
|
68
112
|
}
|
69
|
-
.gux-avatar.gux-accent-10 {
|
113
|
+
.gux-avatar.gux-accent-10 .gux-content {
|
70
114
|
color: var(--gse-ui-avatar-media-initialsForeground-default);
|
71
115
|
background-color: var(--gse-ui-avatar-media-initialsBackground-accent10);
|
72
116
|
}
|
73
|
-
.gux-avatar.gux-accent-11 {
|
117
|
+
.gux-avatar.gux-accent-11 .gux-content {
|
74
118
|
color: var(--gse-ui-avatar-media-initialsForeground-default);
|
75
119
|
background-color: var(--gse-ui-avatar-media-initialsBackground-accent11);
|
76
120
|
}
|
77
|
-
.gux-avatar.gux-accent-12 {
|
121
|
+
.gux-avatar.gux-accent-12 .gux-content {
|
78
122
|
color: var(--gse-ui-avatar-media-initialsForeground-inverse);
|
79
123
|
background-color: var(--gse-ui-avatar-media-initialsBackground-accent12);
|
80
124
|
}
|
81
|
-
.gux-avatar.gux-accent-inherit {
|
125
|
+
.gux-avatar.gux-accent-inherit .gux-content {
|
82
126
|
color: inherit;
|
83
127
|
background-color: inherit;
|
84
128
|
}
|
85
|
-
.gux-avatar.gux-
|
86
|
-
|
87
|
-
height: var(--gse-ui-avatar-medium-content-size);
|
88
|
-
font-size: var(--gse-ui-avatar-medium-initials-fontSize);
|
89
|
-
font-weight: var(--gse-ui-avatar-medium-initials-fontWeight);
|
129
|
+
.gux-avatar.gux-ring.gux-available {
|
130
|
+
background: var(--gse-ui-avatar-presenceRing-available);
|
90
131
|
}
|
91
|
-
.gux-avatar.gux-
|
92
|
-
|
93
|
-
height: var(--gse-ui-avatar-small-content-size);
|
94
|
-
font-size: var(--gse-ui-avatar-small-initials-fontSize);
|
95
|
-
font-weight: var(--gse-ui-avatar-small-initials-fontWeight);
|
132
|
+
.gux-avatar.gux-ring.gux-away, .gux-avatar.gux-ring.gux-break, .gux-avatar.gux-ring.gux-meal, .gux-avatar.gux-ring.gux-training {
|
133
|
+
background: var(--gse-ui-avatar-presenceRing-away);
|
96
134
|
}
|
97
|
-
.gux-avatar.gux-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
135
|
+
.gux-avatar.gux-ring.gux-busy, .gux-avatar.gux-ring.gux-meeting {
|
136
|
+
background: var(--gse-ui-avatar-presenceRing-busy);
|
137
|
+
}
|
138
|
+
.gux-avatar.gux-ring.gux-notifications {
|
139
|
+
background: var(--gse-ui-avatar-presenceRing-notifications);
|
140
|
+
}
|
141
|
+
.gux-avatar.gux-ring.gux-offline {
|
142
|
+
background: var(--gse-ui-avatar-presenceRing-offline);
|
143
|
+
}
|
144
|
+
.gux-avatar.gux-ring.gux-out-of-office {
|
145
|
+
background: var(--gse-ui-avatar-presenceRing-outOfOffice);
|
146
|
+
}
|
147
|
+
.gux-avatar.gux-ring.gux-on-queue {
|
148
|
+
background: var(--gse-ui-avatar-presenceRing-onQueue);
|
149
|
+
}
|
150
|
+
|
151
|
+
.gux-avatar-badge {
|
152
|
+
position: absolute;
|
153
|
+
top: calc(var(--gse-ui-avatar-content-large-border-width) * -1);
|
154
|
+
right: calc(var(--gse-ui-avatar-content-large-border-width) * -1);
|
155
|
+
display: flex;
|
156
|
+
align-items: center;
|
157
|
+
justify-content: center;
|
158
|
+
width: var(--gse-ui-avatar-large-badge-size);
|
159
|
+
height: var(--gse-ui-avatar-large-badge-size);
|
160
|
+
border-color: var(--gse-ui-avatar-content-default-border-color);
|
161
|
+
border-style: var(--gse-ui-avatar-content-default-border-style);
|
162
|
+
border-width: var(--gse-ui-avatar-content-large-border-width);
|
163
|
+
border-radius: 50%;
|
164
|
+
}
|
165
|
+
.gux-avatar-badge.gux-medium {
|
166
|
+
top: calc(var(--gse-ui-avatar-content-default-border-width) * -1);
|
167
|
+
right: calc(var(--gse-ui-avatar-content-default-border-width) * -1);
|
168
|
+
width: var(--gse-ui-avatar-medium-badge-size);
|
169
|
+
height: var(--gse-ui-avatar-medium-badge-size);
|
170
|
+
border-width: var(--gse-ui-avatar-content-default-border-width);
|
171
|
+
}
|
172
|
+
.gux-avatar-badge.gux-small, .gux-avatar-badge.gux-xsmall {
|
173
|
+
top: calc(var(--gse-ui-avatar-content-default-border-width) * -1);
|
174
|
+
right: calc(var(--gse-ui-avatar-content-default-border-width) * -1);
|
175
|
+
width: var(--gse-ui-avatar-small-badge-size);
|
176
|
+
height: var(--gse-ui-avatar-small-badge-size);
|
177
|
+
border-width: var(--gse-ui-avatar-content-default-border-width);
|
178
|
+
}
|
179
|
+
.gux-avatar-badge.gux-small gux-icon, .gux-avatar-badge.gux-xsmall gux-icon {
|
180
|
+
display: none;
|
181
|
+
}
|
182
|
+
.gux-avatar-badge.gux-available {
|
183
|
+
background-color: var(--gse-ui-avatar-badge-foregroundDefault-color);
|
184
|
+
}
|
185
|
+
.gux-avatar-badge.gux-available.gux-small, .gux-avatar-badge.gux-available.gux-xsmall {
|
186
|
+
background-color: var(--gse-ui-avatar-badge-available-color);
|
187
|
+
}
|
188
|
+
.gux-avatar-badge.gux-available gux-icon {
|
189
|
+
color: var(--gse-ui-avatar-badge-available-color);
|
190
|
+
}
|
191
|
+
.gux-avatar-badge.gux-away, .gux-avatar-badge.gux-break, .gux-avatar-badge.gux-meal, .gux-avatar-badge.gux-training {
|
192
|
+
background-color: var(--gse-ui-avatar-badge-away);
|
193
|
+
}
|
194
|
+
.gux-avatar-badge.gux-away gux-icon, .gux-avatar-badge.gux-break gux-icon, .gux-avatar-badge.gux-meal gux-icon, .gux-avatar-badge.gux-training gux-icon {
|
195
|
+
margin: var(--gse-ui-avatar-badge-away-icon-margin);
|
196
|
+
color: var(--gse-ui-avatar-badge-foregroundDark-color);
|
197
|
+
}
|
198
|
+
.gux-avatar-badge.gux-busy, .gux-avatar-badge.gux-meeting {
|
199
|
+
background-color: var(--gse-ui-avatar-badge-busy-color);
|
200
|
+
}
|
201
|
+
.gux-avatar-badge.gux-busy gux-icon, .gux-avatar-badge.gux-meeting gux-icon {
|
202
|
+
margin: var(--gse-ui-avatar-badge-busy-icon-margin);
|
203
|
+
color: var(--gse-ui-avatar-badge-foregroundDefault-color);
|
204
|
+
}
|
205
|
+
.gux-avatar-badge.gux-notifications {
|
206
|
+
background-color: var(--gse-ui-avatar-badge-notification-color);
|
207
|
+
}
|
208
|
+
.gux-avatar-badge.gux-notifications gux-icon {
|
209
|
+
margin: var(--gse-ui-avatar-badge-notifications-icon-margin);
|
210
|
+
color: var(--gse-ui-avatar-badge-foregroundDefault-color);
|
211
|
+
}
|
212
|
+
.gux-avatar-badge.gux-offline {
|
213
|
+
background-color: var(--gse-ui-avatar-badge-foregroundDefault-color);
|
214
|
+
}
|
215
|
+
.gux-avatar-badge.gux-offline.gux-small, .gux-avatar-badge.gux-offline.gux-xsmall {
|
216
|
+
background-color: var(--gse-ui-avatar-badge-offline-color);
|
217
|
+
}
|
218
|
+
.gux-avatar-badge.gux-offline gux-icon {
|
219
|
+
color: var(--gse-ui-avatar-badge-offline-color);
|
220
|
+
}
|
221
|
+
.gux-avatar-badge.gux-out-of-office {
|
222
|
+
background-color: var(--gse-ui-avatar-badge-foregroundDefault-color);
|
223
|
+
}
|
224
|
+
.gux-avatar-badge.gux-out-of-office.gux-small, .gux-avatar-badge.gux-out-of-office.gux-xsmall {
|
225
|
+
background-color: var(--gse-ui-avatar-badge-outOfOffice);
|
226
|
+
}
|
227
|
+
.gux-avatar-badge.gux-out-of-office gux-icon {
|
228
|
+
color: var(--gse-ui-avatar-badge-outOfOffice);
|
229
|
+
}
|
230
|
+
.gux-avatar-badge.gux-on-queue {
|
231
|
+
background-color: var(--gse-ui-avatar-badge-onQueue-color);
|
232
|
+
}
|
233
|
+
.gux-avatar-badge.gux-on-queue gux-icon {
|
234
|
+
margin: var(--gse-ui-avatar-badge-queue-icon-margin);
|
235
|
+
color: var(--gse-ui-avatar-badge-foregroundDefault-color);
|
236
|
+
}
|
237
|
+
.gux-avatar-badge gux-icon {
|
238
|
+
width: 100%;
|
239
|
+
height: 100%;
|
102
240
|
}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { h } from "@stencil/core";
|
2
2
|
import { trackComponent } from "../../../utils/tracking/usage";
|
3
3
|
import { logWarn } from "../../../utils/error/log-error";
|
4
|
+
import { buildI18nForComponent } from "../../../i18n";
|
5
|
+
import defaultResources from "./i18n/en.json";
|
4
6
|
/**
|
5
7
|
* @slot image - Headshot photo.
|
6
8
|
*/
|
@@ -9,6 +11,11 @@ export class GuxAvatar {
|
|
9
11
|
this.size = 'large';
|
10
12
|
this.name = undefined;
|
11
13
|
this.accent = 'default';
|
14
|
+
this.presence = 'none';
|
15
|
+
this.label = undefined;
|
16
|
+
this.ring = false;
|
17
|
+
this.badge = false;
|
18
|
+
this.notifications = false;
|
12
19
|
}
|
13
20
|
generateInitials() {
|
14
21
|
var _a, _b, _c, _d;
|
@@ -36,18 +43,71 @@ export class GuxAvatar {
|
|
36
43
|
logWarn(this.root, 'Alt attribute is required for slotted image.');
|
37
44
|
}
|
38
45
|
}
|
39
|
-
|
46
|
+
renderBadge() {
|
47
|
+
if (this.notifications) {
|
48
|
+
return this.renderNotificationsBadge();
|
49
|
+
}
|
50
|
+
else if (this.badge && !['idle', 'none'].includes(this.presence)) {
|
51
|
+
return (h("div", { class: {
|
52
|
+
'gux-avatar-badge': true,
|
53
|
+
[`gux-${this.presence}`]: true,
|
54
|
+
[`gux-${this.size}`]: true
|
55
|
+
} }, h("gux-icon", { "icon-name": this.getPresenceIcon(this.presence) })));
|
56
|
+
}
|
57
|
+
}
|
58
|
+
renderNotificationsBadge() {
|
59
|
+
return (h("div", { class: {
|
60
|
+
'gux-avatar-badge gux-notifications': true,
|
61
|
+
[`gux-${this.size}`]: true
|
62
|
+
} }, h("gux-icon", { "icon-name": "fa/bell-regular" })));
|
63
|
+
}
|
64
|
+
getPresenceIcon(presence) {
|
65
|
+
switch (presence) {
|
66
|
+
case 'available':
|
67
|
+
return 'fa/circle-check-solid';
|
68
|
+
case 'busy':
|
69
|
+
case 'meeting':
|
70
|
+
return 'fa/ban-outline';
|
71
|
+
case 'away':
|
72
|
+
case 'break':
|
73
|
+
case 'meal':
|
74
|
+
case 'training':
|
75
|
+
return 'fa/clock-outline';
|
76
|
+
case 'on-queue':
|
77
|
+
return 'fa/headset-solid';
|
78
|
+
case 'offline':
|
79
|
+
return 'fa/circle-xmark-regular';
|
80
|
+
case 'out-of-office':
|
81
|
+
return 'fa/subtract-circle';
|
82
|
+
default:
|
83
|
+
return 'fa/circle-xmark-regular';
|
84
|
+
}
|
85
|
+
}
|
86
|
+
getDescriptionText() {
|
87
|
+
if (this.notifications)
|
88
|
+
return `${this.name} (${this.i18n('notifications')})`;
|
89
|
+
if (this.label && this.presence !== 'none')
|
90
|
+
return `${this.name} (${this.label})`;
|
91
|
+
return `${this.name}`;
|
92
|
+
}
|
93
|
+
async componentWillLoad() {
|
40
94
|
trackComponent(this.root, { variant: this.size });
|
95
|
+
this.i18n = await buildI18nForComponent(this.root, defaultResources);
|
41
96
|
}
|
42
97
|
componentDidLoad() {
|
43
98
|
this.validatingInputs();
|
44
99
|
}
|
45
100
|
render() {
|
46
|
-
return
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
101
|
+
return [
|
102
|
+
h("div", { class: {
|
103
|
+
'gux-avatar': true,
|
104
|
+
[`gux-${this.presence}`]: this.ring || this.badge,
|
105
|
+
[`gux-${this.size}`]: true,
|
106
|
+
'gux-ring': this.ring,
|
107
|
+
[`gux-accent-${this.getAccent()}`]: true
|
108
|
+
} }, h("div", { class: "gux-content" }, h("slot", { name: "image" }, h("abbr", { title: this.getDescriptionText(), "aria-label": this.getDescriptionText() }, this.generateInitials())))),
|
109
|
+
this.renderBadge()
|
110
|
+
];
|
51
111
|
}
|
52
112
|
static get is() { return "gux-avatar-beta"; }
|
53
113
|
static get encapsulation() { return "shadow"; }
|
@@ -127,6 +187,101 @@ export class GuxAvatar {
|
|
127
187
|
"attribute": "accent",
|
128
188
|
"reflect": false,
|
129
189
|
"defaultValue": "'default'"
|
190
|
+
},
|
191
|
+
"presence": {
|
192
|
+
"type": "string",
|
193
|
+
"mutable": false,
|
194
|
+
"complexType": {
|
195
|
+
"original": "GuxAvatarPresence",
|
196
|
+
"resolved": "\"available\" | \"away\" | \"break\" | \"busy\" | \"idle\" | \"meal\" | \"meeting\" | \"none\" | \"offline\" | \"on-queue\" | \"out-of-office\" | \"training\"",
|
197
|
+
"references": {
|
198
|
+
"GuxAvatarPresence": {
|
199
|
+
"location": "import",
|
200
|
+
"path": "./gux-avatar.types",
|
201
|
+
"id": "src/components/beta/gux-avatar/gux-avatar.types.ts::GuxAvatarPresence"
|
202
|
+
}
|
203
|
+
}
|
204
|
+
},
|
205
|
+
"required": false,
|
206
|
+
"optional": false,
|
207
|
+
"docs": {
|
208
|
+
"tags": [],
|
209
|
+
"text": "Shows presence such as away or available.\nMust be combined with badge or ring props to take effect."
|
210
|
+
},
|
211
|
+
"attribute": "presence",
|
212
|
+
"reflect": false,
|
213
|
+
"defaultValue": "'none'"
|
214
|
+
},
|
215
|
+
"label": {
|
216
|
+
"type": "string",
|
217
|
+
"mutable": false,
|
218
|
+
"complexType": {
|
219
|
+
"original": "string",
|
220
|
+
"resolved": "string",
|
221
|
+
"references": {}
|
222
|
+
},
|
223
|
+
"required": false,
|
224
|
+
"optional": false,
|
225
|
+
"docs": {
|
226
|
+
"tags": [],
|
227
|
+
"text": "Label to display for accessibility"
|
228
|
+
},
|
229
|
+
"attribute": "label",
|
230
|
+
"reflect": false
|
231
|
+
},
|
232
|
+
"ring": {
|
233
|
+
"type": "boolean",
|
234
|
+
"mutable": false,
|
235
|
+
"complexType": {
|
236
|
+
"original": "boolean",
|
237
|
+
"resolved": "boolean",
|
238
|
+
"references": {}
|
239
|
+
},
|
240
|
+
"required": false,
|
241
|
+
"optional": false,
|
242
|
+
"docs": {
|
243
|
+
"tags": [],
|
244
|
+
"text": "Shows a ring around the avatar indicating current presence"
|
245
|
+
},
|
246
|
+
"attribute": "ring",
|
247
|
+
"reflect": false,
|
248
|
+
"defaultValue": "false"
|
249
|
+
},
|
250
|
+
"badge": {
|
251
|
+
"type": "boolean",
|
252
|
+
"mutable": false,
|
253
|
+
"complexType": {
|
254
|
+
"original": "boolean",
|
255
|
+
"resolved": "boolean",
|
256
|
+
"references": {}
|
257
|
+
},
|
258
|
+
"required": false,
|
259
|
+
"optional": false,
|
260
|
+
"docs": {
|
261
|
+
"tags": [],
|
262
|
+
"text": "Shows a badge indicating current presence"
|
263
|
+
},
|
264
|
+
"attribute": "badge",
|
265
|
+
"reflect": false,
|
266
|
+
"defaultValue": "false"
|
267
|
+
},
|
268
|
+
"notifications": {
|
269
|
+
"type": "boolean",
|
270
|
+
"mutable": false,
|
271
|
+
"complexType": {
|
272
|
+
"original": "boolean",
|
273
|
+
"resolved": "boolean",
|
274
|
+
"references": {}
|
275
|
+
},
|
276
|
+
"required": false,
|
277
|
+
"optional": false,
|
278
|
+
"docs": {
|
279
|
+
"tags": [],
|
280
|
+
"text": "Show notifications indicator"
|
281
|
+
},
|
282
|
+
"attribute": "notifications",
|
283
|
+
"reflect": false,
|
284
|
+
"defaultValue": "false"
|
130
285
|
}
|
131
286
|
};
|
132
287
|
}
|
@@ -66,6 +66,27 @@ describe('gux-avatar', () => {
|
|
66
66
|
});
|
67
67
|
});
|
68
68
|
});
|
69
|
+
describe('#render different presences', () => {
|
70
|
+
[
|
71
|
+
'available',
|
72
|
+
'away',
|
73
|
+
'busy',
|
74
|
+
'meal',
|
75
|
+
'training',
|
76
|
+
'idle',
|
77
|
+
'meeting',
|
78
|
+
'offline',
|
79
|
+
'on-queue',
|
80
|
+
'out-of-office',
|
81
|
+
'invalid-presence'
|
82
|
+
].forEach((presence) => {
|
83
|
+
it(`should work as expected for "${presence}"`, async () => {
|
84
|
+
const html = `<gux-avatar-beta badge presence=${presence} name="John Doe"></gux-avatar-beta>`;
|
85
|
+
const page = await newSpecPage({ components: [GuxAvatar], html });
|
86
|
+
expect(page.root).toMatchSnapshot();
|
87
|
+
});
|
88
|
+
});
|
89
|
+
});
|
69
90
|
describe('#render different accents', () => {
|
70
91
|
[
|
71
92
|
'default',
|
@@ -91,5 +112,26 @@ describe('gux-avatar', () => {
|
|
91
112
|
expect(page.root).toMatchSnapshot();
|
92
113
|
});
|
93
114
|
});
|
115
|
+
describe('#render notification badge', () => {
|
116
|
+
it('should render notification badge', async () => {
|
117
|
+
const html = `<gux-avatar-beta badge notifications name="John Doe"></gux-avatar-beta>`;
|
118
|
+
const page = await newSpecPage({ components: [GuxAvatar], html });
|
119
|
+
expect(page.root).toMatchSnapshot();
|
120
|
+
});
|
121
|
+
});
|
122
|
+
describe('#render presence ring', () => {
|
123
|
+
it('should render presence ring', async () => {
|
124
|
+
const html = `<gux-avatar-beta ring name="John Doe" presen></gux-avatar-beta>`;
|
125
|
+
const page = await newSpecPage({ components: [GuxAvatar], html });
|
126
|
+
expect(page.root).toMatchSnapshot();
|
127
|
+
});
|
128
|
+
});
|
129
|
+
describe('#render label', () => {
|
130
|
+
it('should render label', async () => {
|
131
|
+
const html = `<gux-avatar-beta label="All Hands" name="John Doe" presence="busy" ring></gux-avatar-beta>`;
|
132
|
+
const page = await newSpecPage({ components: [GuxAvatar], html });
|
133
|
+
expect(page.root).toMatchSnapshot();
|
134
|
+
});
|
135
|
+
});
|
94
136
|
});
|
95
137
|
});
|
@@ -2,6 +2,7 @@ import { h, Host } from "@stencil/core";
|
|
2
2
|
import { trackComponent } from "../../../utils/tracking/usage";
|
3
3
|
import { DateTimeFormatter } from "../../../i18n/DateTimeFormatter";
|
4
4
|
import * as sparkIntl from "../../../genesys-spark-utils/intl";
|
5
|
+
// Remove with this ticket https://inindca.atlassian.net/browse/COMUI-2598
|
5
6
|
import { readRegionalDatesCookie } from "../../../i18n/check-regional-dates-cookie";
|
6
7
|
import { getDesiredLocale } from "../../../i18n/index";
|
7
8
|
import { getValidTimezone } from "../../../utils/date/get-valid-timezone";
|
@@ -2,6 +2,7 @@ import { h, Host } from "@stencil/core";
|
|
2
2
|
import { trackComponent } from "../../../utils/tracking/usage";
|
3
3
|
import { DateTimeFormatter } from "../../../i18n/DateTimeFormatter";
|
4
4
|
import * as sparkIntl from "../../../genesys-spark-utils/intl";
|
5
|
+
// Remove with this ticket https://inindca.atlassian.net/browse/COMUI-2598
|
5
6
|
import { readRegionalDatesCookie } from "../../../i18n/check-regional-dates-cookie";
|
6
7
|
import { getDesiredLocale } from "../../../i18n/index";
|
7
8
|
import { getValidTimezone } from "../../../utils/date/get-valid-timezone";
|
package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-calendar.js
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
import { h } from "@stencil/core";
|
2
2
|
import { buildI18nForComponent, getDesiredLocale } from "../../../../i18n";
|
3
|
+
import * as sparkIntl from "../../../../genesys-spark-utils/intl";
|
4
|
+
// Remove with this ticket https://inindca.atlassian.net/browse/COMUI-2598
|
5
|
+
import { readRegionalDatesCookie } from "../../../../i18n/check-regional-dates-cookie";
|
3
6
|
import simulateNativeEvent from "../../../../utils/dom/simulate-native-event";
|
4
7
|
import { afterNextRender } from "../../../../utils/dom/after-next-render";
|
5
8
|
import { getISOYearMonth, getCurrentISOYearMonth, getYearMonthObject } from "../../../../utils/date/year-month-values";
|
@@ -33,7 +36,12 @@ export class GuxMonthCalendar {
|
|
33
36
|
}
|
34
37
|
async componentWillLoad() {
|
35
38
|
this.i18n = await buildI18nForComponent(this.root, translationResources);
|
36
|
-
|
39
|
+
if (readRegionalDatesCookie()) {
|
40
|
+
this.locale = sparkIntl.determineDisplayLocale(this.root);
|
41
|
+
}
|
42
|
+
else {
|
43
|
+
this.locale = getDesiredLocale(this.root);
|
44
|
+
}
|
37
45
|
if (this.value) {
|
38
46
|
this.year = getYearMonthObject(this.value).year;
|
39
47
|
}
|
@@ -13,6 +13,8 @@ import { h } from "@stencil/core";
|
|
13
13
|
import { trackComponent } from "../../../utils/tracking/usage";
|
14
14
|
import { OnClickOutside } from "../../../utils/decorator/on-click-outside";
|
15
15
|
import { buildI18nForComponent, getDesiredLocale } from "../../../i18n";
|
16
|
+
import * as sparkIntl from "../../../genesys-spark-utils/intl";
|
17
|
+
import { readRegionalDatesCookie } from "../../../i18n/check-regional-dates-cookie";
|
16
18
|
import simulateNativeEvent from "../../../utils/dom/simulate-native-event";
|
17
19
|
import { afterNextRender } from "../../../utils/dom/after-next-render";
|
18
20
|
import { getCurrentISOYearMonth, getISOYearMonth, getYearMonthObject } from "../../../utils/date/year-month-values";
|
@@ -57,7 +59,12 @@ export class GuxMonthPicker {
|
|
57
59
|
async componentWillLoad() {
|
58
60
|
trackComponent(this.root);
|
59
61
|
this.i18n = await buildI18nForComponent(this.root, translationResources);
|
60
|
-
|
62
|
+
if (readRegionalDatesCookie()) {
|
63
|
+
this.locale = sparkIntl.determineDisplayLocale(this.root);
|
64
|
+
}
|
65
|
+
else {
|
66
|
+
this.locale = getDesiredLocale(this.root);
|
67
|
+
}
|
61
68
|
}
|
62
69
|
isOutOfBounds(value) {
|
63
70
|
return this.isBeforeMin(value) || this.isAfterMax(value);
|
@@ -2,6 +2,7 @@ import { h, Host } from "@stencil/core";
|
|
2
2
|
import { trackComponent } from "../../../utils/tracking/usage";
|
3
3
|
import { DateTimeFormatter } from "../../../i18n/DateTimeFormatter";
|
4
4
|
import * as sparkIntl from "../../../genesys-spark-utils/intl";
|
5
|
+
// Remove with this ticket https://inindca.atlassian.net/browse/COMUI-2598
|
5
6
|
import { readRegionalDatesCookie } from "../../../i18n/check-regional-dates-cookie";
|
6
7
|
import { getDesiredLocale } from "../../../i18n/index";
|
7
8
|
import { getValidTimezone } from "../../../utils/date/get-valid-timezone";
|
@@ -1,4 +1,7 @@
|
|
1
1
|
import { capitalizeFirstLetter } from "../../../utils/string/capitalize-first-letter";
|
2
|
+
import * as sparkIntl from "../../../genesys-spark-utils/intl";
|
3
|
+
// Remove with this ticket https://inindca.atlassian.net/browse/COMUI-2598
|
4
|
+
import { readRegionalDatesCookie } from "../../../i18n/check-regional-dates-cookie";
|
2
5
|
export function firstDateInMonth(month, year, startDayOfWeek) {
|
3
6
|
const startDate = new Date(year, month, 1, 1, 0, 0, 0);
|
4
7
|
const firstDayOfMonth = startDate.getDay();
|
@@ -27,5 +30,15 @@ export function getOffsetMonthDate(baseDate, monthDelta) {
|
|
27
30
|
return date;
|
28
31
|
}
|
29
32
|
export function getDateMonthAndYearString(date, locale) {
|
30
|
-
|
33
|
+
if (readRegionalDatesCookie()) {
|
34
|
+
return capitalizeFirstLetter(sparkIntl
|
35
|
+
.dateTimeFormat(locale, {
|
36
|
+
year: 'numeric',
|
37
|
+
month: 'long'
|
38
|
+
})
|
39
|
+
.format(date));
|
40
|
+
}
|
41
|
+
else {
|
42
|
+
return capitalizeFirstLetter(date.toLocaleDateString(locale, { year: 'numeric', month: 'long' }));
|
43
|
+
}
|
31
44
|
}
|
@@ -16,6 +16,9 @@ import { asIsoDateRange, asIsoDate, fromIsoDateRange, fromIsoDate } from "../../
|
|
16
16
|
import { OnClickOutside } from "../../../utils/decorator/on-click-outside";
|
17
17
|
import { trackComponent } from "../../../utils/tracking/usage";
|
18
18
|
import { buildI18nForComponent } from "../../../i18n";
|
19
|
+
import * as sparkIntl from "../../../genesys-spark-utils/intl";
|
20
|
+
// Remove with this ticket https://inindca.atlassian.net/browse/COMUI-2598
|
21
|
+
import { readRegionalDatesCookie } from "../../../i18n/check-regional-dates-cookie";
|
19
22
|
import translationResources from "./i18n/en.json";
|
20
23
|
import { getCalendarLabels, isOutOfBoundsDate, incrementDay, incrementMonth, incrementYear, getFormattedDate, getIntervalLetter, getFormatSeparator, getPreviousIntervalRange, getNextIntervalRange, getIntervalOrder, getIntervalRange } from "./gux-datepicker.service";
|
21
24
|
export class GuxDatepicker {
|
@@ -36,7 +39,7 @@ export class GuxDatepicker {
|
|
36
39
|
this.minDate = '';
|
37
40
|
this.maxDate = '';
|
38
41
|
this.mode = "single" /* CalendarModes.Single */;
|
39
|
-
this.format =
|
42
|
+
this.format = undefined;
|
40
43
|
this.disabled = false;
|
41
44
|
this.labelPosition = 'beside';
|
42
45
|
this.formattedValue = '';
|
@@ -411,6 +414,14 @@ export class GuxDatepicker {
|
|
411
414
|
async componentWillLoad() {
|
412
415
|
trackComponent(this.root, { variant: this.mode });
|
413
416
|
this.i18n = await buildI18nForComponent(this.root, translationResources);
|
417
|
+
if (readRegionalDatesCookie()) {
|
418
|
+
this.format =
|
419
|
+
this.format ||
|
420
|
+
sparkIntl.getFormat(sparkIntl.determineDisplayLocale(this.root));
|
421
|
+
}
|
422
|
+
else {
|
423
|
+
this.format = this.format || 'mm/dd/yyyy';
|
424
|
+
}
|
414
425
|
this.watchMinDate(this.minDate);
|
415
426
|
this.watchMaxDate(this.maxDate);
|
416
427
|
this.watchFormat(this.format);
|
@@ -650,7 +661,7 @@ export class GuxDatepicker {
|
|
650
661
|
},
|
651
662
|
"format": {
|
652
663
|
"type": "string",
|
653
|
-
"mutable":
|
664
|
+
"mutable": true,
|
654
665
|
"complexType": {
|
655
666
|
"original": "string",
|
656
667
|
"resolved": "string",
|
@@ -663,8 +674,7 @@ export class GuxDatepicker {
|
|
663
674
|
"text": "The datepicker date format (default to mm/dd/yyyy, or specified)"
|
664
675
|
},
|
665
676
|
"attribute": "format",
|
666
|
-
"reflect": false
|
667
|
-
"defaultValue": "'mm/dd/yyyy'"
|
677
|
+
"reflect": false
|
668
678
|
},
|
669
679
|
"disabled": {
|
670
680
|
"type": "boolean",
|