@xplor-education/core-stencil-components 2.1.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/index.js +1 -1
- package/components/index.js.map +1 -1
- package/components/{p-B1W2qj2l.js → p-B3zR7peH.js} +4 -4
- package/components/p-B3zR7peH.js.map +1 -0
- package/components/{p-Ddr35stE.js → p-BRWe4TXp.js} +65 -5
- package/components/p-BRWe4TXp.js.map +1 -0
- package/components/{p-CBSi5kQB.js → p-Bs_ocvfe.js} +7 -3
- package/components/p-Bs_ocvfe.js.map +1 -0
- package/components/{p-CTD6SyTD.js → p-D4jVa8dE.js} +20 -4
- package/components/p-D4jVa8dE.js.map +1 -0
- package/components/{p-BaDLDCH5.js → p-DURNLP66.js} +71 -6
- package/components/p-DURNLP66.js.map +1 -0
- package/components/xplor-alert-dialog.js +60 -3
- package/components/xplor-alert-dialog.js.map +1 -1
- package/components/xplor-assistant.js +3 -3
- package/components/xplor-assistant.js.map +1 -1
- package/components/xplor-autocomplete.js +15 -9
- package/components/xplor-autocomplete.js.map +1 -1
- package/components/xplor-avatar-and-name.js +1 -1
- package/components/xplor-avatar.js +1 -1
- package/components/xplor-btn-back-to-parent.js +7 -2
- package/components/xplor-btn-back-to-parent.js.map +1 -1
- package/components/xplor-btn-icon.js +3 -2
- package/components/xplor-btn-icon.js.map +1 -1
- package/components/xplor-btn-menu.js +103 -6
- package/components/xplor-btn-menu.js.map +1 -1
- package/components/xplor-btn-tooltip.js +2 -2
- package/components/xplor-button.js +1 -1
- package/components/xplor-chat-widget.js +1 -1
- package/components/xplor-checkbox.js +3 -1
- package/components/xplor-checkbox.js.map +1 -1
- package/components/xplor-combobox.js +20 -10
- package/components/xplor-combobox.js.map +1 -1
- package/components/xplor-datatable.js +10 -4
- package/components/xplor-datatable.js.map +1 -1
- package/components/xplor-date-picker.js +9 -5
- package/components/xplor-date-picker.js.map +1 -1
- package/components/xplor-drag-and-drop-input.js +7 -4
- package/components/xplor-drag-and-drop-input.js.map +1 -1
- package/components/xplor-expansion-panel.js +3 -3
- package/components/xplor-expansion-panel.js.map +1 -1
- package/components/xplor-expansion-panels.js +1 -1
- package/components/xplor-expansion-panels.js.map +1 -1
- package/components/xplor-file-upload.js +2 -2
- package/components/xplor-file-upload.js.map +1 -1
- package/components/xplor-inline-date-picker.js +1 -1
- package/components/xplor-input-file.js +3 -1
- package/components/xplor-input-file.js.map +1 -1
- package/components/xplor-input-search.js +4 -2
- package/components/xplor-input-search.js.map +1 -1
- package/components/xplor-input-select.js +107 -7
- package/components/xplor-input-select.js.map +1 -1
- package/components/xplor-input-send.js +2 -2
- package/components/xplor-input-send.js.map +1 -1
- package/components/xplor-input-text-area.js +6 -2
- package/components/xplor-input-text-area.js.map +1 -1
- package/components/xplor-input-text-secondary.js +6 -2
- package/components/xplor-input-text-secondary.js.map +1 -1
- package/components/xplor-input-text.js +6 -2
- package/components/xplor-input-text.js.map +1 -1
- package/components/xplor-input-title.js +7 -2
- package/components/xplor-input-title.js.map +1 -1
- package/components/xplor-links.js +5 -2
- package/components/xplor-links.js.map +1 -1
- package/components/xplor-modal-persistent.js +1 -1
- package/components/xplor-modal.js +1 -1
- package/components/xplor-nav-tabs.js +41 -3
- package/components/xplor-nav-tabs.js.map +1 -1
- package/components/xplor-radio-btn.js +99 -4
- package/components/xplor-radio-btn.js.map +1 -1
- package/components/xplor-section-card.js +2 -2
- package/components/xplor-section-card.js.map +1 -1
- package/components/xplor-section-heading.js +9 -3
- package/components/xplor-section-heading.js.map +1 -1
- package/components/xplor-table.js +14 -9
- package/components/xplor-table.js.map +1 -1
- package/components/xplor-text-bubble.js +2 -2
- package/components/xplor-text-field.js +2 -2
- package/components/xplor-time-picker.js +6 -6
- package/components/xplor-tooltip.js +1 -1
- package/dist/cjs/{index-Bc5o_4vY.js → index-BjAapk2n.js} +3 -3
- package/dist/cjs/index-BjAapk2n.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/xplor-alert-dialog_58.cjs.entry.js +673 -100
- package/dist/cjs/xplor-alert-dialog_58.cjs.entry.js.map +1 -1
- package/dist/cjs/xplor-component-library.cjs.js +2 -2
- package/dist/collection/components/xplor-alert-dialog/xplor-alert-dialog.js +85 -1
- package/dist/collection/components/xplor-alert-dialog/xplor-alert-dialog.js.map +1 -1
- package/dist/collection/components/xplor-assistant/internal/AssistantInput.js +1 -1
- package/dist/collection/components/xplor-assistant/internal/AssistantInput.js.map +1 -1
- package/dist/collection/components/xplor-assistant/xplor-assistant.js +1 -1
- package/dist/collection/components/xplor-assistant/xplor-assistant.js.map +1 -1
- package/dist/collection/components/xplor-autocomplete/xplor-autocomplete.js +33 -9
- package/dist/collection/components/xplor-autocomplete/xplor-autocomplete.js.map +1 -1
- package/dist/collection/components/xplor-avatar/xplor-avatar.js +2 -2
- package/dist/collection/components/xplor-avatar/xplor-avatar.js.map +1 -1
- package/dist/collection/components/xplor-btn-back-to-parent/xplor-btn-back-to-parent.js +25 -1
- package/dist/collection/components/xplor-btn-back-to-parent/xplor-btn-back-to-parent.js.map +1 -1
- package/dist/collection/components/xplor-btn-icon/xplor-btn-icon.js +20 -1
- package/dist/collection/components/xplor-btn-icon/xplor-btn-icon.js.map +1 -1
- package/dist/collection/components/xplor-btn-menu/xplor-btn-menu.js +129 -5
- package/dist/collection/components/xplor-btn-menu/xplor-btn-menu.js.map +1 -1
- package/dist/collection/components/xplor-button/xplor-button.js +42 -1
- package/dist/collection/components/xplor-button/xplor-button.js.map +1 -1
- package/dist/collection/components/xplor-checkbox/xplor-checkbox.js +3 -1
- package/dist/collection/components/xplor-checkbox/xplor-checkbox.js.map +1 -1
- package/dist/collection/components/xplor-combobox/xplor-combobox.js +38 -10
- package/dist/collection/components/xplor-combobox/xplor-combobox.js.map +1 -1
- package/dist/collection/components/xplor-datatable/xplor-datatable.js +10 -4
- package/dist/collection/components/xplor-datatable/xplor-datatable.js.map +1 -1
- package/dist/collection/components/xplor-date-picker/xplor-date-picker.js +8 -4
- package/dist/collection/components/xplor-date-picker/xplor-date-picker.js.map +1 -1
- package/dist/collection/components/xplor-drag-and-drop-input/xplor-drag-and-drop-input.js +24 -3
- package/dist/collection/components/xplor-drag-and-drop-input/xplor-drag-and-drop-input.js.map +1 -1
- package/dist/collection/components/xplor-expansion-panel/xplor-expansion-panel.js +3 -3
- package/dist/collection/components/xplor-expansion-panel/xplor-expansion-panel.js.map +1 -1
- package/dist/collection/components/xplor-expansion-panels/xplor-expansion-panels.js +1 -1
- package/dist/collection/components/xplor-expansion-panels/xplor-expansion-panels.js.map +1 -1
- package/dist/collection/components/xplor-file-upload/xplor-file-upload.js +2 -2
- package/dist/collection/components/xplor-file-upload/xplor-file-upload.js.map +1 -1
- package/dist/collection/components/xplor-inline-date-picker/xplor-inline-date-picker.js +77 -3
- package/dist/collection/components/xplor-inline-date-picker/xplor-inline-date-picker.js.map +1 -1
- package/dist/collection/components/xplor-input-file/xplor-input-file.js +3 -1
- package/dist/collection/components/xplor-input-file/xplor-input-file.js.map +1 -1
- package/dist/collection/components/xplor-input-search/xplor-input-search.js +4 -2
- package/dist/collection/components/xplor-input-search/xplor-input-search.js.map +1 -1
- package/dist/collection/components/xplor-input-select/xplor-input-select.js +133 -6
- package/dist/collection/components/xplor-input-select/xplor-input-select.js.map +1 -1
- package/dist/collection/components/xplor-input-send/xplor-input-send.js +1 -1
- package/dist/collection/components/xplor-input-send/xplor-input-send.js.map +1 -1
- package/dist/collection/components/xplor-input-text/xplor-input-text.js +6 -2
- package/dist/collection/components/xplor-input-text/xplor-input-text.js.map +1 -1
- package/dist/collection/components/xplor-input-text-area/xplor-input-text-area.js +6 -2
- package/dist/collection/components/xplor-input-text-area/xplor-input-text-area.js.map +1 -1
- package/dist/collection/components/xplor-input-text-secondary/xplor-input-text-secondary.js +6 -2
- package/dist/collection/components/xplor-input-text-secondary/xplor-input-text-secondary.js.map +1 -1
- package/dist/collection/components/xplor-input-title/xplor-input-title.js +25 -1
- package/dist/collection/components/xplor-input-title/xplor-input-title.js.map +1 -1
- package/dist/collection/components/xplor-links/xplor-links.js +25 -1
- package/dist/collection/components/xplor-links/xplor-links.js.map +1 -1
- package/dist/collection/components/xplor-modal/xplor-modal.js +88 -1
- package/dist/collection/components/xplor-modal/xplor-modal.js.map +1 -1
- package/dist/collection/components/xplor-nav-tabs/xplor-nav-tabs.js +49 -2
- package/dist/collection/components/xplor-nav-tabs/xplor-nav-tabs.js.map +1 -1
- package/dist/collection/components/xplor-radio-btn/xplor-radio-btn.css +116 -1
- package/dist/collection/components/xplor-radio-btn/xplor-radio-btn.js +258 -2
- package/dist/collection/components/xplor-radio-btn/xplor-radio-btn.js.map +1 -1
- package/dist/collection/components/xplor-section-card/xplor-section-card.js +2 -2
- package/dist/collection/components/xplor-section-card/xplor-section-card.js.map +1 -1
- package/dist/collection/components/xplor-section-heading/xplor-section-heading.js +27 -2
- package/dist/collection/components/xplor-section-heading/xplor-section-heading.js.map +1 -1
- package/dist/collection/components/xplor-table/xplor-table.js +14 -9
- package/dist/collection/components/xplor-table/xplor-table.js.map +1 -1
- package/dist/collection/components/xplor-text-bubble/xplor-text-bubble.js +2 -2
- package/dist/collection/components/xplor-text-field/xplor-text-field.js +2 -2
- package/dist/collection/components/xplor-time-picker/xplor-time-picker.js +6 -6
- package/dist/collection/components/xplor-tooltip/xplor-tooltip.js +18 -2
- package/dist/collection/components/xplor-tooltip/xplor-tooltip.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-BHdeGt6k.js → p--zhT6rvJ.js} +4 -4
- package/dist/components/p--zhT6rvJ.js.map +1 -0
- package/dist/components/{p-DKh6y3GY.js → p-04oMLTZR.js} +65 -5
- package/dist/components/p-04oMLTZR.js.map +1 -0
- package/dist/components/{p-DIv_A5Gj.js → p-B5rS_jjI.js} +7 -3
- package/dist/components/p-B5rS_jjI.js.map +1 -0
- package/dist/components/{p-4l9DAhAo.js → p-DbQ6ZNvh.js} +20 -4
- package/dist/components/p-DbQ6ZNvh.js.map +1 -0
- package/dist/components/{p-CXJd350E.js → p-Dh0wQJt6.js} +71 -6
- package/dist/components/p-Dh0wQJt6.js.map +1 -0
- package/dist/components/xplor-alert-dialog.js +60 -3
- package/dist/components/xplor-alert-dialog.js.map +1 -1
- package/dist/components/xplor-assistant.js +3 -3
- package/dist/components/xplor-assistant.js.map +1 -1
- package/dist/components/xplor-autocomplete.js +15 -9
- package/dist/components/xplor-autocomplete.js.map +1 -1
- package/dist/components/xplor-avatar-and-name.js +1 -1
- package/dist/components/xplor-avatar.js +1 -1
- package/dist/components/xplor-btn-back-to-parent.js +7 -2
- package/dist/components/xplor-btn-back-to-parent.js.map +1 -1
- package/dist/components/xplor-btn-icon.js +3 -2
- package/dist/components/xplor-btn-icon.js.map +1 -1
- package/dist/components/xplor-btn-menu.js +103 -6
- package/dist/components/xplor-btn-menu.js.map +1 -1
- package/dist/components/xplor-btn-tooltip.js +2 -2
- package/dist/components/xplor-button.js +1 -1
- package/dist/components/xplor-chat-widget.js +1 -1
- package/dist/components/xplor-checkbox.js +3 -1
- package/dist/components/xplor-checkbox.js.map +1 -1
- package/dist/components/xplor-combobox.js +20 -10
- package/dist/components/xplor-combobox.js.map +1 -1
- package/dist/components/xplor-datatable.js +10 -4
- package/dist/components/xplor-datatable.js.map +1 -1
- package/dist/components/xplor-date-picker.js +9 -5
- package/dist/components/xplor-date-picker.js.map +1 -1
- package/dist/components/xplor-drag-and-drop-input.js +7 -4
- package/dist/components/xplor-drag-and-drop-input.js.map +1 -1
- package/dist/components/xplor-expansion-panel.js +3 -3
- package/dist/components/xplor-expansion-panel.js.map +1 -1
- package/dist/components/xplor-expansion-panels.js +1 -1
- package/dist/components/xplor-expansion-panels.js.map +1 -1
- package/dist/components/xplor-file-upload.js +2 -2
- package/dist/components/xplor-file-upload.js.map +1 -1
- package/dist/components/xplor-inline-date-picker.js +1 -1
- package/dist/components/xplor-input-file.js +3 -1
- package/dist/components/xplor-input-file.js.map +1 -1
- package/dist/components/xplor-input-search.js +4 -2
- package/dist/components/xplor-input-search.js.map +1 -1
- package/dist/components/xplor-input-select.js +107 -7
- package/dist/components/xplor-input-select.js.map +1 -1
- package/dist/components/xplor-input-send.js +2 -2
- package/dist/components/xplor-input-send.js.map +1 -1
- package/dist/components/xplor-input-text-area.js +6 -2
- package/dist/components/xplor-input-text-area.js.map +1 -1
- package/dist/components/xplor-input-text-secondary.js +6 -2
- package/dist/components/xplor-input-text-secondary.js.map +1 -1
- package/dist/components/xplor-input-text.js +6 -2
- package/dist/components/xplor-input-text.js.map +1 -1
- package/dist/components/xplor-input-title.js +7 -2
- package/dist/components/xplor-input-title.js.map +1 -1
- package/dist/components/xplor-links.js +5 -2
- package/dist/components/xplor-links.js.map +1 -1
- package/dist/components/xplor-modal-persistent.js +1 -1
- package/dist/components/xplor-modal.js +1 -1
- package/dist/components/xplor-nav-tabs.js +41 -3
- package/dist/components/xplor-nav-tabs.js.map +1 -1
- package/dist/components/xplor-radio-btn.js +99 -4
- package/dist/components/xplor-radio-btn.js.map +1 -1
- package/dist/components/xplor-section-card.js +2 -2
- package/dist/components/xplor-section-card.js.map +1 -1
- package/dist/components/xplor-section-heading.js +9 -3
- package/dist/components/xplor-section-heading.js.map +1 -1
- package/dist/components/xplor-table.js +14 -9
- package/dist/components/xplor-table.js.map +1 -1
- package/dist/components/xplor-text-bubble.js +2 -2
- package/dist/components/xplor-text-field.js +2 -2
- package/dist/components/xplor-time-picker.js +6 -6
- package/dist/components/xplor-tooltip.js +1 -1
- package/dist/esm/{index-Zkk2NJif.js → index-KRfMjDC2.js} +3 -3
- package/dist/esm/index-KRfMjDC2.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/xplor-alert-dialog_58.entry.js +673 -100
- package/dist/esm/xplor-alert-dialog_58.entry.js.map +1 -1
- package/dist/esm/xplor-component-library.js +3 -3
- package/dist/hydrate/index.js +718 -116
- package/dist/hydrate/index.mjs +718 -116
- package/dist/types/components/xplor-alert-dialog/xplor-alert-dialog.d.ts +11 -0
- package/dist/types/components/xplor-autocomplete/xplor-autocomplete.d.ts +4 -0
- package/dist/types/components/xplor-btn-back-to-parent/xplor-btn-back-to-parent.d.ts +4 -0
- package/dist/types/components/xplor-btn-icon/xplor-btn-icon.d.ts +4 -0
- package/dist/types/components/xplor-btn-menu/xplor-btn-menu.d.ts +19 -0
- package/dist/types/components/xplor-button/xplor-button.d.ts +4 -0
- package/dist/types/components/xplor-checkbox/xplor-checkbox.d.ts +1 -0
- package/dist/types/components/xplor-combobox/xplor-combobox.d.ts +4 -0
- package/dist/types/components/xplor-date-picker/xplor-date-picker.d.ts +3 -0
- package/dist/types/components/xplor-drag-and-drop-input/xplor-drag-and-drop-input.d.ts +4 -0
- package/dist/types/components/xplor-inline-date-picker/xplor-inline-date-picker.d.ts +3 -0
- package/dist/types/components/xplor-input-file/xplor-input-file.d.ts +1 -0
- package/dist/types/components/xplor-input-search/xplor-input-search.d.ts +1 -0
- package/dist/types/components/xplor-input-select/xplor-input-select.d.ts +8 -0
- package/dist/types/components/xplor-input-text/xplor-input-text.d.ts +3 -0
- package/dist/types/components/xplor-input-text-area/xplor-input-text-area.d.ts +3 -0
- package/dist/types/components/xplor-input-text-secondary/xplor-input-text-secondary.d.ts +3 -0
- package/dist/types/components/xplor-input-title/xplor-input-title.d.ts +4 -0
- package/dist/types/components/xplor-links/xplor-links.d.ts +2 -0
- package/dist/types/components/xplor-modal/xplor-modal.d.ts +11 -0
- package/dist/types/components/xplor-nav-tabs/xplor-nav-tabs.d.ts +2 -0
- package/dist/types/components/xplor-radio-btn/xplor-radio-btn.d.ts +32 -0
- package/dist/types/components/xplor-section-heading/xplor-section-heading.d.ts +4 -0
- package/dist/types/components/xplor-tooltip/xplor-tooltip.d.ts +3 -0
- package/dist/types/components.d.ts +205 -0
- package/dist/xplor-component-library/p-0df9ea5d.entry.js +2 -0
- package/dist/xplor-component-library/p-0df9ea5d.entry.js.map +1 -0
- package/dist/xplor-component-library/{p-Zkk2NJif.js → p-KRfMjDC2.js} +3 -3
- package/dist/xplor-component-library/p-KRfMjDC2.js.map +1 -0
- package/dist/xplor-component-library/xplor-component-library.css +1 -1
- package/dist/xplor-component-library/xplor-component-library.esm.js +1 -1
- package/package.json +1 -1
- package/components/p-B1W2qj2l.js.map +0 -1
- package/components/p-BaDLDCH5.js.map +0 -1
- package/components/p-CBSi5kQB.js.map +0 -1
- package/components/p-CTD6SyTD.js.map +0 -1
- package/components/p-Ddr35stE.js.map +0 -1
- package/dist/cjs/index-Bc5o_4vY.js.map +0 -1
- package/dist/components/p-4l9DAhAo.js.map +0 -1
- package/dist/components/p-BHdeGt6k.js.map +0 -1
- package/dist/components/p-CXJd350E.js.map +0 -1
- package/dist/components/p-DIv_A5Gj.js.map +0 -1
- package/dist/components/p-DKh6y3GY.js.map +0 -1
- package/dist/esm/index-Zkk2NJif.js.map +0 -1
- package/dist/xplor-component-library/p-07d83c17.entry.js +0 -2
- package/dist/xplor-component-library/p-07d83c17.entry.js.map +0 -1
- package/dist/xplor-component-library/p-Zkk2NJif.js.map +0 -1
package/dist/hydrate/index.js
CHANGED
|
@@ -3298,6 +3298,7 @@ class XplorAlertDialog {
|
|
|
3298
3298
|
* Persistent mode - prevents closing on backdrop click
|
|
3299
3299
|
*/
|
|
3300
3300
|
this.persistent = true;
|
|
3301
|
+
this.previouslyFocusedElement = null;
|
|
3301
3302
|
this.handleBackdropClick = () => {
|
|
3302
3303
|
if (!this.persistent) {
|
|
3303
3304
|
this.closeDialog();
|
|
@@ -3315,20 +3316,75 @@ class XplorAlertDialog {
|
|
|
3315
3316
|
handleOpenChange(newValue) {
|
|
3316
3317
|
if (newValue) {
|
|
3317
3318
|
document.body.style.overflow = 'hidden';
|
|
3319
|
+
this.previouslyFocusedElement = document.activeElement;
|
|
3320
|
+
requestAnimationFrame(() => {
|
|
3321
|
+
this.setInitialFocus();
|
|
3322
|
+
});
|
|
3318
3323
|
}
|
|
3319
3324
|
else {
|
|
3320
3325
|
document.body.style.overflow = '';
|
|
3326
|
+
if (this.previouslyFocusedElement) {
|
|
3327
|
+
this.previouslyFocusedElement.focus();
|
|
3328
|
+
this.previouslyFocusedElement = null;
|
|
3329
|
+
}
|
|
3321
3330
|
}
|
|
3322
3331
|
}
|
|
3323
3332
|
disconnectedCallback() {
|
|
3324
3333
|
document.body.style.overflow = '';
|
|
3325
3334
|
}
|
|
3335
|
+
handleKeyDown(event) {
|
|
3336
|
+
if (!this.open)
|
|
3337
|
+
return;
|
|
3338
|
+
if (event.key === 'Escape' && !this.persistent) {
|
|
3339
|
+
event.preventDefault();
|
|
3340
|
+
this.closeDialog();
|
|
3341
|
+
return;
|
|
3342
|
+
}
|
|
3343
|
+
if (event.key === 'Tab') {
|
|
3344
|
+
this.trapFocus(event);
|
|
3345
|
+
}
|
|
3346
|
+
}
|
|
3347
|
+
getFocusableElements() {
|
|
3348
|
+
if (!this.dialogEl)
|
|
3349
|
+
return [];
|
|
3350
|
+
const selectors = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
3351
|
+
return Array.from(this.dialogEl.querySelectorAll(selectors));
|
|
3352
|
+
}
|
|
3353
|
+
trapFocus(event) {
|
|
3354
|
+
const focusableElements = this.getFocusableElements();
|
|
3355
|
+
if (focusableElements.length === 0)
|
|
3356
|
+
return;
|
|
3357
|
+
const firstElement = focusableElements[0];
|
|
3358
|
+
const lastElement = focusableElements[focusableElements.length - 1];
|
|
3359
|
+
if (event.shiftKey) {
|
|
3360
|
+
if (document.activeElement === firstElement) {
|
|
3361
|
+
event.preventDefault();
|
|
3362
|
+
lastElement.focus();
|
|
3363
|
+
}
|
|
3364
|
+
}
|
|
3365
|
+
else {
|
|
3366
|
+
if (document.activeElement === lastElement) {
|
|
3367
|
+
event.preventDefault();
|
|
3368
|
+
firstElement.focus();
|
|
3369
|
+
}
|
|
3370
|
+
}
|
|
3371
|
+
}
|
|
3372
|
+
setInitialFocus() {
|
|
3373
|
+
const focusableElements = this.getFocusableElements();
|
|
3374
|
+
if (focusableElements.length > 0) {
|
|
3375
|
+
focusableElements[0].focus();
|
|
3376
|
+
}
|
|
3377
|
+
else if (this.dialogEl) {
|
|
3378
|
+
this.dialogEl.focus();
|
|
3379
|
+
}
|
|
3380
|
+
}
|
|
3326
3381
|
render() {
|
|
3327
3382
|
if (!this.open) {
|
|
3328
3383
|
return null;
|
|
3329
3384
|
}
|
|
3330
|
-
return (hAsync(Host, null, hAsync("div", { class: "xplor-alert-dialog__backdrop", onClick: this.handleBackdropClick }, hAsync("div", { class: "xplor-alert-dialog__card", style: { width: this.width }, onClick: this.handleCardClick }, hAsync("button", { type: "button", class: "xplor-alert-dialog__close-btn", onClick: this.closeDialog, "aria-label": "Close dialog" }, "\u2715"), hAsync("div", { class: "xplor-alert-dialog__title" }, hAsync("slot", { name: "title" })), hAsync("div", { class: "xplor-alert-dialog__text" }, hAsync("slot", { name: "text" })), hAsync("div", { class: "xplor-alert-dialog__actions" }, hAsync("slot", { name: "actions" }))))));
|
|
3385
|
+
return (hAsync(Host, null, hAsync("div", { class: "xplor-alert-dialog__backdrop", onClick: this.handleBackdropClick }, hAsync("div", { class: "xplor-alert-dialog__card", style: { width: this.width }, onClick: this.handleCardClick, role: "alertdialog", "aria-modal": "true", "aria-labelledby": this.ariaLabel ? undefined : 'xplor-alert-dialog-title', "aria-label": this.ariaLabel, "aria-describedby": "xplor-alert-dialog-text", tabindex: "-1", ref: (el) => (this.dialogEl = el) }, hAsync("button", { type: "button", class: "xplor-alert-dialog__close-btn", onClick: this.closeDialog, "aria-label": "Close dialog" }, "\u2715"), hAsync("div", { class: "xplor-alert-dialog__title", id: "xplor-alert-dialog-title" }, hAsync("slot", { name: "title" })), hAsync("div", { class: "xplor-alert-dialog__text", id: "xplor-alert-dialog-text" }, hAsync("slot", { name: "text" })), hAsync("div", { class: "xplor-alert-dialog__actions" }, hAsync("slot", { name: "actions" }))))));
|
|
3331
3386
|
}
|
|
3387
|
+
get el() { return getElement(this); }
|
|
3332
3388
|
static get watchers() { return {
|
|
3333
3389
|
"open": ["handleOpenChange"]
|
|
3334
3390
|
}; }
|
|
@@ -3339,9 +3395,10 @@ class XplorAlertDialog {
|
|
|
3339
3395
|
"$members$": {
|
|
3340
3396
|
"open": [1028],
|
|
3341
3397
|
"width": [1],
|
|
3342
|
-
"persistent": [4]
|
|
3398
|
+
"persistent": [4],
|
|
3399
|
+
"ariaLabel": [1, "aria-label"]
|
|
3343
3400
|
},
|
|
3344
|
-
"$listeners$":
|
|
3401
|
+
"$listeners$": [[0, "keydown", "handleKeyDown"]],
|
|
3345
3402
|
"$lazyBundleId$": "-",
|
|
3346
3403
|
"$attrsToReflect$": []
|
|
3347
3404
|
}; }
|
|
@@ -3818,10 +3875,10 @@ const AssistantInput = (props) => {
|
|
|
3818
3875
|
enableVoiceInput && (hAsync("button", { type: "button", class: {
|
|
3819
3876
|
'xplor-assistant__voice-button': true,
|
|
3820
3877
|
'xplor-assistant__voice-button--listening': isListening,
|
|
3821
|
-
}, onClick: handleVoiceClick, disabled: disabled || isLoading, title: isListening ? 'Stop listening' : 'Start voice input' },
|
|
3878
|
+
}, onClick: handleVoiceClick, disabled: disabled || isLoading, title: isListening ? 'Stop listening' : 'Start voice input', "aria-label": "Voice input" },
|
|
3822
3879
|
hAsync("span", { class: "xplor-assistant__voice-icon", innerHTML: microphoneIcon }))),
|
|
3823
3880
|
hAsync("input", { type: "text", class: "xplor-assistant__input", placeholder: placeholder, value: inputValue, onInput: handleInputChange, disabled: disabled || isLoading }),
|
|
3824
|
-
hAsync("button", { type: "submit", class: "xplor-assistant__send-button", disabled: isSendDisabled, title: "Send message" },
|
|
3881
|
+
hAsync("button", { type: "submit", class: "xplor-assistant__send-button", disabled: isSendDisabled, title: "Send message", "aria-label": "Send message" },
|
|
3825
3882
|
hAsync("span", { class: "xplor-assistant__send-icon", innerHTML: sendIcon })))));
|
|
3826
3883
|
};
|
|
3827
3884
|
|
|
@@ -4083,7 +4140,7 @@ class XplorAssistant {
|
|
|
4083
4140
|
return (hAsync(Host, null, hAsync("div", { class: {
|
|
4084
4141
|
'xplor-assistant': true,
|
|
4085
4142
|
'xplor-assistant--disabled': this.disabled,
|
|
4086
|
-
}, style: { maxHeight: this.maxHeight } }, hAsync("div", { class: "xplor-assistant__messages", ref: (el) => (this.messagesContainerRef = el) }, this.messages.map((message) => (hAsync(AssistantMessage, { message: message, enableTextToSpeech: this.enableTextToSpeech, autoSpeak: false, isSpeaking: this.isSpeaking, onSpeak: this.handleSpeak, onStopSpeaking: this.handleStopSpeaking }))), this.isLoading && (hAsync("div", { class: "xplor-assistant__message xplor-assistant__message--assistant" }, hAsync(TypingIndicator, null))), this.error && this.apiEndpoint && (hAsync("div", { class: "xplor-assistant__error-banner" }, this.error))), this.quickReplies && this.quickReplies.length > 0 && (hAsync(QuickReplies, { replies: this.quickReplies, disabled: this.disabled || this.isLoading, onReplyClick: this.handleQuickReply })), hAsync(AssistantInput, { placeholder: this.placeholder, disabled: this.disabled, isLoading: this.isLoading, enableVoiceInput: this.enableVoiceInput && this.hasVoiceSupport, isListening: this.isListening, onSendMessage: this.handleSendMessage, onStartListening: this.handleStartListening, onStopListening: this.handleStopListening, inputValue: this.inputValue, setInputValue: this.setInputValue }))));
|
|
4143
|
+
}, style: { maxHeight: this.maxHeight } }, hAsync("div", { class: "xplor-assistant__messages", ref: (el) => (this.messagesContainerRef = el), role: "log", "aria-live": "polite", "aria-busy": this.isLoading ? 'true' : 'false' }, this.messages.map((message) => (hAsync(AssistantMessage, { message: message, enableTextToSpeech: this.enableTextToSpeech, autoSpeak: false, isSpeaking: this.isSpeaking, onSpeak: this.handleSpeak, onStopSpeaking: this.handleStopSpeaking }))), this.isLoading && (hAsync("div", { class: "xplor-assistant__message xplor-assistant__message--assistant" }, hAsync(TypingIndicator, null))), this.error && this.apiEndpoint && (hAsync("div", { class: "xplor-assistant__error-banner" }, this.error))), this.quickReplies && this.quickReplies.length > 0 && (hAsync(QuickReplies, { replies: this.quickReplies, disabled: this.disabled || this.isLoading, onReplyClick: this.handleQuickReply })), hAsync(AssistantInput, { placeholder: this.placeholder, disabled: this.disabled, isLoading: this.isLoading, enableVoiceInput: this.enableVoiceInput && this.hasVoiceSupport, isListening: this.isListening, onSendMessage: this.handleSendMessage, onStartListening: this.handleStartListening, onStopListening: this.handleStopListening, inputValue: this.inputValue, setInputValue: this.setInputValue }))));
|
|
4087
4144
|
}
|
|
4088
4145
|
get el() { return getElement(this); }
|
|
4089
4146
|
static get watchers() { return {
|
|
@@ -4327,25 +4384,30 @@ class XplorAutocomplete {
|
|
|
4327
4384
|
}
|
|
4328
4385
|
render() {
|
|
4329
4386
|
const hasValue = this.multiple ? this.selectedItems.length > 0 : this.value !== null && this.searchQuery !== '';
|
|
4330
|
-
|
|
4387
|
+
const listboxId = 'autocomplete-listbox';
|
|
4388
|
+
const labelId = 'autocomplete-label';
|
|
4389
|
+
const activeDescendantId = this.highlightedIndex >= 0 ? `autocomplete-option-${this.highlightedIndex}` : undefined;
|
|
4390
|
+
return (hAsync(Host, { key: 'f76ac5f9d1cd6e6c9618ac3884bc86a2bfabb3c5' }, hAsync("div", { key: 'efd2bd854c305c56971b5d6e19a5b9eb497099f8', class: {
|
|
4331
4391
|
'autocomplete': true,
|
|
4332
4392
|
'autocomplete--disabled': this.disabled,
|
|
4333
4393
|
'autocomplete--readonly': this.readonly,
|
|
4334
4394
|
'autocomplete--open': this.isOpen,
|
|
4335
|
-
} }, this.label && (hAsync("label", { key: '
|
|
4395
|
+
} }, this.label && (hAsync("label", { key: '97bb161105b66181558d22519c9f0cd1287b2c49', class: "autocomplete__label", id: labelId }, this.label)), hAsync("div", { key: '128acf53793205be89a8d619ce548107aaed8b28', class: "autocomplete__input-wrapper" }, this.multiple && this.selectedItems.length > 0 && (hAsync("div", { key: '670da50897139688951c077db4b6116b88bfadfa', class: "autocomplete__chips" }, this.selectedItems.map(value => {
|
|
4336
4396
|
const item = this.findItemByValue(value);
|
|
4337
|
-
|
|
4338
|
-
|
|
4397
|
+
const chipLabel = this.getSelectedItemLabel(value);
|
|
4398
|
+
return (hAsync("div", { class: "autocomplete__chip" }, hAsync("span", { class: "autocomplete__chip-label" }, this.renderSelection && item ? this.renderSelection(item) : chipLabel), hAsync("button", { type: "button", class: "autocomplete__chip-remove", onClick: () => this.removeItem(value), disabled: this.disabled || this.readonly, "aria-label": `Remove ${chipLabel}` }, "\u00D7")));
|
|
4399
|
+
}))), hAsync("input", { key: '25e9e5111726cd720ab88a4a5ae25f84b48eee1e', ref: (el) => (this.inputEl = el), type: "text", class: "autocomplete__input", placeholder: this.placeholder, value: this.searchQuery, onFocus: this.handleInputFocus, onInput: this.handleInputChange, onKeyDown: this.handleInputKeyDown, disabled: this.disabled, readonly: this.readonly, autocomplete: "off", role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": this.isOpen ? listboxId : undefined, "aria-activedescendant": activeDescendantId, "aria-labelledby": this.label ? labelId : undefined, "aria-label": !this.label ? (this.ariaLabel || this.placeholder) : undefined, "aria-autocomplete": "list" }), hAsync("div", { key: '5128b893c4743a49439a279b0cb7094077ebd528', class: "autocomplete__actions" }, this.clearable && hasValue && !this.disabled && !this.readonly && (hAsync("button", { key: '512d7956e79d9767e072462f1ec309b081716c86', type: "button", class: "autocomplete__clear", onClick: this.handleClear, "aria-label": "Clear selection" }, "\u00D7")), hAsync("span", { key: 'e0cfba3c1513b63f9697835ad6919d045c7011db', class: "autocomplete__icon", "aria-hidden": "true" }, "\u25BC"))), this.isOpen && this.filteredItems.length > 0 && (hAsync("div", { key: '9c100abedb5ee252df82994722c0da9d5787d1bf', class: "autocomplete__dropdown", ref: (el) => (this.dropdownEl = el), style: { maxWidth: this.menuMaxWidth }, role: "listbox", id: listboxId, "aria-label": this.label || this.ariaLabel || 'Suggestions' }, this.filteredItems.map((item, index) => {
|
|
4339
4400
|
const itemVal = this.getItemValue(item);
|
|
4340
|
-
|
|
4401
|
+
const isSelected = this.multiple
|
|
4402
|
+
? this.selectedItems.includes(itemVal)
|
|
4403
|
+
: this.value === itemVal;
|
|
4404
|
+
return (hAsync("div", { key: itemVal, id: `autocomplete-option-${index}`, "data-index": index, role: "option", "aria-selected": isSelected ? 'true' : 'false', "aria-disabled": item.disabled ? 'true' : undefined, class: {
|
|
4341
4405
|
'autocomplete__item': true,
|
|
4342
4406
|
'autocomplete__item--highlighted': index === this.highlightedIndex,
|
|
4343
|
-
'autocomplete__item--selected':
|
|
4344
|
-
? this.selectedItems.includes(itemVal)
|
|
4345
|
-
: this.value === itemVal,
|
|
4407
|
+
'autocomplete__item--selected': isSelected,
|
|
4346
4408
|
'autocomplete__item--disabled': item.disabled,
|
|
4347
4409
|
}, onClick: () => this.selectItem(item) }, this.renderItem ? this.renderItem(item) : this.getItemText(item)));
|
|
4348
|
-
}))), this.isOpen && this.filteredItems.length === 0 && (hAsync("div", { key: '
|
|
4410
|
+
}))), this.isOpen && this.filteredItems.length === 0 && (hAsync("div", { key: '329f92d7f4bf36bb114909853e249978412ae82f', class: "autocomplete__dropdown", style: { maxWidth: this.menuMaxWidth }, role: "listbox", id: listboxId }, hAsync("div", { key: '400e97f955724f59830fb37b52d99c3723627e51', class: "autocomplete__no-results", role: "option", "aria-disabled": "true" }, "No results found"))))));
|
|
4349
4411
|
}
|
|
4350
4412
|
get el() { return getElement(this); }
|
|
4351
4413
|
static get style() { return xplorAutocompleteCss; }
|
|
@@ -4357,6 +4419,7 @@ class XplorAutocomplete {
|
|
|
4357
4419
|
"value": [1032],
|
|
4358
4420
|
"placeholder": [1],
|
|
4359
4421
|
"label": [1],
|
|
4422
|
+
"ariaLabel": [1, "aria-label"],
|
|
4360
4423
|
"disabled": [4],
|
|
4361
4424
|
"readonly": [4],
|
|
4362
4425
|
"clearable": [4],
|
|
@@ -4393,8 +4456,8 @@ class XplorAvatar {
|
|
|
4393
4456
|
className += ` xpl-avatar--${this.size}`;
|
|
4394
4457
|
if (this.color)
|
|
4395
4458
|
className += ` xpl-avatar--${this.color}`;
|
|
4396
|
-
const inner = (hAsync("div", { key: '2e2722f2649108b7fdc3fd51375e17ac47e6f1ff' }, this.src ? (hAsync("img", { alt: this.name, src: this.src })) : (hAsync("div", { class: "xpl-avatar__placeholder" }, hAsync("slot", null))), this.status && hAsync("div", { key: '
|
|
4397
|
-
return (hAsync(Host, { key: '
|
|
4459
|
+
const inner = (hAsync("div", { key: '2e2722f2649108b7fdc3fd51375e17ac47e6f1ff' }, this.src ? (hAsync("img", { alt: this.name, src: this.src })) : (hAsync("div", { class: "xpl-avatar__placeholder" }, hAsync("slot", null))), this.status && hAsync("div", { key: '26fa57a9a697a110ef73434376715eda0e5134a5', class: `xpl-avatar__dot--${this.status}`, "aria-label": `Status: ${this.status}`, role: "img" })));
|
|
4460
|
+
return (hAsync(Host, { key: '9c99cec20679f0d10fbcf9dffc70877c0dc879f9' }, this.href && !this.disabled ? (hAsync("a", { href: this.href, class: className, target: this.target }, inner)) : this.href && this.disabled ? (hAsync("div", { class: className + ' xpl-avatar--disabled' }, inner)) : (hAsync("div", { class: className }, inner))));
|
|
4398
4461
|
}
|
|
4399
4462
|
static get style() { return xplorAvatarCss; }
|
|
4400
4463
|
static get cmpMeta() { return {
|
|
@@ -4871,6 +4934,10 @@ class XplorBtnBackToParent {
|
|
|
4871
4934
|
* Visual variant
|
|
4872
4935
|
*/
|
|
4873
4936
|
this.variant = 'tonal';
|
|
4937
|
+
/**
|
|
4938
|
+
* Accessible label for the button
|
|
4939
|
+
*/
|
|
4940
|
+
this.ariaLabel = 'Back to parent';
|
|
4874
4941
|
this.handleClick = () => {
|
|
4875
4942
|
this.back.emit();
|
|
4876
4943
|
};
|
|
@@ -4883,7 +4950,7 @@ class XplorBtnBackToParent {
|
|
|
4883
4950
|
const buttonStyles = {
|
|
4884
4951
|
'--btn-size': this.size,
|
|
4885
4952
|
};
|
|
4886
|
-
return (hAsync(Host, { key: '
|
|
4953
|
+
return (hAsync(Host, { key: '0962b04ae634f044dd3e7c1eacf42b7d2c8e0f1e' }, hAsync("button", { key: '82cb8fa3218a17784a0ab360d328b68f2c0e6e81', class: buttonClasses, style: buttonStyles, onClick: this.handleClick, "aria-label": this.ariaLabel }, hAsync("span", { key: '784853baa5b013fc85a07054e446e6166eab7068', class: "xplor-btn-back-to-parent__icon" }, "\u2715"))));
|
|
4887
4954
|
}
|
|
4888
4955
|
static get style() { return xplorBtnBackToParentCss; }
|
|
4889
4956
|
static get cmpMeta() { return {
|
|
@@ -4894,7 +4961,8 @@ class XplorBtnBackToParent {
|
|
|
4894
4961
|
"inline": [4],
|
|
4895
4962
|
"bgColor": [1, "bg-color"],
|
|
4896
4963
|
"color": [1],
|
|
4897
|
-
"variant": [1]
|
|
4964
|
+
"variant": [1],
|
|
4965
|
+
"ariaLabel": [1, "aria-label"]
|
|
4898
4966
|
},
|
|
4899
4967
|
"$listeners$": undefined,
|
|
4900
4968
|
"$lazyBundleId$": "-",
|
|
@@ -4945,7 +5013,7 @@ class XplorBtnIcon {
|
|
|
4945
5013
|
'--btn-size': typeof this.size === 'number' ? `${this.size}px` : this.size,
|
|
4946
5014
|
'--icon-size': typeof this.iconSize === 'number' ? `${this.iconSize}px` : this.iconSize,
|
|
4947
5015
|
};
|
|
4948
|
-
return (hAsync(Host, { key: '
|
|
5016
|
+
return (hAsync(Host, { key: '9d87aab5e3af33201c71dffeab51a5a02cc61e98' }, hAsync("button", { key: 'c30b8c4aa51a957c84e7fff3d72e01961dec911c', class: buttonClasses, style: buttonStyles, disabled: this.disabled, onClick: this.handleClick, "aria-label": this.ariaLabel }, hAsync("span", { key: '99773527f599523638ce8463fe308826f01202cf', class: "xplor-btn-icon__content" }, hAsync("slot", { key: '14e1356bcecd1d2b8768cddbaf257f49bf92e5a7' })))));
|
|
4949
5017
|
}
|
|
4950
5018
|
static get style() { return xplorBtnIconCss; }
|
|
4951
5019
|
static get cmpMeta() { return {
|
|
@@ -4956,7 +5024,8 @@ class XplorBtnIcon {
|
|
|
4956
5024
|
"size": [8],
|
|
4957
5025
|
"iconSize": [8, "icon-size"],
|
|
4958
5026
|
"variant": [1],
|
|
4959
|
-
"disabled": [4]
|
|
5027
|
+
"disabled": [4],
|
|
5028
|
+
"ariaLabel": [1, "aria-label"]
|
|
4960
5029
|
},
|
|
4961
5030
|
"$listeners$": undefined,
|
|
4962
5031
|
"$lazyBundleId$": "-",
|
|
@@ -4998,6 +5067,10 @@ class XplorBtnMenu {
|
|
|
4998
5067
|
* Whether the menu is open
|
|
4999
5068
|
*/
|
|
5000
5069
|
this.show = false;
|
|
5070
|
+
/**
|
|
5071
|
+
* Index of the currently focused menu item for keyboard navigation
|
|
5072
|
+
*/
|
|
5073
|
+
this.focusedIndex = -1;
|
|
5001
5074
|
this.handleOutsideClick = (event) => {
|
|
5002
5075
|
if (this.menuRef && !this.menuRef.contains(event.target)) {
|
|
5003
5076
|
this.show = false;
|
|
@@ -5005,10 +5078,16 @@ class XplorBtnMenu {
|
|
|
5005
5078
|
};
|
|
5006
5079
|
this.toggleMenu = () => {
|
|
5007
5080
|
this.show = !this.show;
|
|
5081
|
+
if (!this.show) {
|
|
5082
|
+
this.focusedIndex = -1;
|
|
5083
|
+
}
|
|
5008
5084
|
};
|
|
5009
5085
|
this.handleClickOption = (option) => {
|
|
5086
|
+
var _a;
|
|
5010
5087
|
this.xplorClick.emit(option);
|
|
5011
5088
|
this.show = false;
|
|
5089
|
+
this.focusedIndex = -1;
|
|
5090
|
+
(_a = this.triggerBtnRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
5012
5091
|
};
|
|
5013
5092
|
this.isHidden = (key) => {
|
|
5014
5093
|
return key !== null && this.hiddenKeys.includes(key);
|
|
@@ -5023,32 +5102,119 @@ class XplorBtnMenu {
|
|
|
5023
5102
|
disconnectedCallback() {
|
|
5024
5103
|
document.removeEventListener('click', this.handleOutsideClick);
|
|
5025
5104
|
}
|
|
5105
|
+
/**
|
|
5106
|
+
* Returns the list of visible (non-hidden) options for keyboard navigation
|
|
5107
|
+
*/
|
|
5108
|
+
getVisibleOptions() {
|
|
5109
|
+
return this.options
|
|
5110
|
+
.map((option, index) => ({ option, key: option.key || String(index) }))
|
|
5111
|
+
.filter(({ key }) => !this.isHidden(key));
|
|
5112
|
+
}
|
|
5113
|
+
/**
|
|
5114
|
+
* Focuses the menu item at the given index in the visible options list
|
|
5115
|
+
*/
|
|
5116
|
+
focusMenuItem(index) {
|
|
5117
|
+
if (this.menuRef) {
|
|
5118
|
+
const items = this.menuRef.querySelectorAll('[role="menuitem"]');
|
|
5119
|
+
if (items[index]) {
|
|
5120
|
+
items[index].focus();
|
|
5121
|
+
}
|
|
5122
|
+
}
|
|
5123
|
+
}
|
|
5124
|
+
handleKeyDown(event) {
|
|
5125
|
+
var _a, _b;
|
|
5126
|
+
if (!this.show && (event.key === 'ArrowDown' || event.key === 'Enter' || event.key === ' ')) {
|
|
5127
|
+
const target = event.target;
|
|
5128
|
+
if (target === this.triggerBtnRef || ((_a = this.el.querySelector('[slot="activator"]')) === null || _a === void 0 ? void 0 : _a.contains(target))) {
|
|
5129
|
+
if (event.key === 'ArrowDown') {
|
|
5130
|
+
event.preventDefault();
|
|
5131
|
+
this.show = true;
|
|
5132
|
+
this.focusedIndex = 0;
|
|
5133
|
+
requestAnimationFrame(() => this.focusMenuItem(0));
|
|
5134
|
+
}
|
|
5135
|
+
}
|
|
5136
|
+
return;
|
|
5137
|
+
}
|
|
5138
|
+
if (!this.show)
|
|
5139
|
+
return;
|
|
5140
|
+
const visibleOptions = this.getVisibleOptions();
|
|
5141
|
+
const totalVisible = visibleOptions.length;
|
|
5142
|
+
switch (event.key) {
|
|
5143
|
+
case 'ArrowDown':
|
|
5144
|
+
event.preventDefault();
|
|
5145
|
+
this.focusedIndex = this.focusedIndex < totalVisible - 1 ? this.focusedIndex + 1 : 0;
|
|
5146
|
+
this.focusMenuItem(this.focusedIndex);
|
|
5147
|
+
break;
|
|
5148
|
+
case 'ArrowUp':
|
|
5149
|
+
event.preventDefault();
|
|
5150
|
+
this.focusedIndex = this.focusedIndex > 0 ? this.focusedIndex - 1 : totalVisible - 1;
|
|
5151
|
+
this.focusMenuItem(this.focusedIndex);
|
|
5152
|
+
break;
|
|
5153
|
+
case 'Escape':
|
|
5154
|
+
event.preventDefault();
|
|
5155
|
+
this.show = false;
|
|
5156
|
+
this.focusedIndex = -1;
|
|
5157
|
+
(_b = this.triggerBtnRef) === null || _b === void 0 ? void 0 : _b.focus();
|
|
5158
|
+
break;
|
|
5159
|
+
case 'Enter':
|
|
5160
|
+
case ' ':
|
|
5161
|
+
event.preventDefault();
|
|
5162
|
+
if (this.focusedIndex >= 0 && this.focusedIndex < totalVisible) {
|
|
5163
|
+
const { option, key } = visibleOptions[this.focusedIndex];
|
|
5164
|
+
if (!this.isDisabled(key)) {
|
|
5165
|
+
this.handleClickOption(option);
|
|
5166
|
+
}
|
|
5167
|
+
}
|
|
5168
|
+
break;
|
|
5169
|
+
case 'Home':
|
|
5170
|
+
event.preventDefault();
|
|
5171
|
+
this.focusedIndex = 0;
|
|
5172
|
+
this.focusMenuItem(this.focusedIndex);
|
|
5173
|
+
break;
|
|
5174
|
+
case 'End':
|
|
5175
|
+
event.preventDefault();
|
|
5176
|
+
this.focusedIndex = totalVisible - 1;
|
|
5177
|
+
this.focusMenuItem(this.focusedIndex);
|
|
5178
|
+
break;
|
|
5179
|
+
case 'Tab':
|
|
5180
|
+
this.show = false;
|
|
5181
|
+
this.focusedIndex = -1;
|
|
5182
|
+
break;
|
|
5183
|
+
}
|
|
5184
|
+
}
|
|
5026
5185
|
render() {
|
|
5027
|
-
|
|
5186
|
+
const menuId = 'xplor-btn-menu-list';
|
|
5187
|
+
let visibleIndex = 0;
|
|
5188
|
+
return (hAsync(Host, { key: '20b1a4d54b992d5ea4b1a4cd8fbaa5699b1bc6ab' }, hAsync("div", { key: 'e23725f6fa432e19b59a3c0809706df45df02def', class: "xplor-btn-menu", ref: (el) => (this.menuRef = el) }, hAsync("slot", { key: 'ed385faab26b9a1bf83ed583261b0d22744a5b10', name: "activator" }, hAsync("button", { key: 'f0539b0092489e356b087cddd67bfb84cb31acf8', ref: (el) => (this.triggerBtnRef = el), class: "xplor-btn-menu__button", onClick: this.toggleMenu, "aria-haspopup": "menu", "aria-expanded": this.show ? 'true' : 'false', "aria-controls": this.show ? menuId : undefined, "aria-label": this.ariaLabel || this.label || 'Menu' }, hAsync("span", { key: 'b1126eb8ffc12a89b3dd1a83afd5f644226496ee' }, this.label), hAsync("span", { key: 'f9053a73065841d35278612e8f9d5345b3e1daf4', class: "xplor-btn-menu__icon", "aria-hidden": "true" }, "\u25BC"))), this.show && (hAsync("div", { key: '7b294e8b3702051c2adc317736d9bb3085137f27', class: "xplor-btn-menu__list", role: "menu", id: menuId, "aria-label": this.ariaLabel || this.label || 'Menu' }, this.options.map((option, index) => {
|
|
5028
5189
|
const key = option.key || String(index);
|
|
5029
5190
|
if (this.isHidden(key)) {
|
|
5030
5191
|
return null;
|
|
5031
5192
|
}
|
|
5032
|
-
|
|
5193
|
+
const disabled = this.isDisabled(key);
|
|
5194
|
+
const currentVisibleIndex = visibleIndex++;
|
|
5195
|
+
return (hAsync("div", { key: key, role: "menuitem", tabindex: currentVisibleIndex === this.focusedIndex ? 0 : -1, "aria-disabled": disabled ? 'true' : undefined, class: {
|
|
5033
5196
|
'xplor-btn-menu__item': true,
|
|
5034
|
-
'xplor-btn-menu__item--disabled':
|
|
5035
|
-
}, onClick: () => !
|
|
5197
|
+
'xplor-btn-menu__item--disabled': disabled,
|
|
5198
|
+
}, onClick: () => !disabled && this.handleClickOption(option) }, hAsync("slot", { name: key }, option.label || '')));
|
|
5036
5199
|
}))))));
|
|
5037
5200
|
}
|
|
5201
|
+
get el() { return getElement(this); }
|
|
5038
5202
|
static get style() { return xplorBtnMenuCss; }
|
|
5039
5203
|
static get cmpMeta() { return {
|
|
5040
5204
|
"$flags$": 6,
|
|
5041
5205
|
"$tagName$": "xplor-btn-menu",
|
|
5042
5206
|
"$members$": {
|
|
5207
|
+
"ariaLabel": [1, "aria-label"],
|
|
5043
5208
|
"label": [1],
|
|
5044
5209
|
"options": [16],
|
|
5045
5210
|
"hiddenKeys": [16, "hidden-keys"],
|
|
5046
5211
|
"disabledKeys": [16, "disabled-keys"],
|
|
5047
5212
|
"color": [1],
|
|
5048
5213
|
"density": [1],
|
|
5049
|
-
"show": [32]
|
|
5214
|
+
"show": [32],
|
|
5215
|
+
"focusedIndex": [32]
|
|
5050
5216
|
},
|
|
5051
|
-
"$listeners$":
|
|
5217
|
+
"$listeners$": [[0, "keydown", "handleKeyDown"]],
|
|
5052
5218
|
"$lazyBundleId$": "-",
|
|
5053
5219
|
"$attrsToReflect$": []
|
|
5054
5220
|
}; }
|
|
@@ -5226,6 +5392,8 @@ class XplorButton {
|
|
|
5226
5392
|
registerInstance(this, hostRef);
|
|
5227
5393
|
this.type = 'secondary';
|
|
5228
5394
|
this.mode = 'pg'; // 'dark', 'pg', 'office' (default: 'dark')
|
|
5395
|
+
/** Whether the button is disabled */
|
|
5396
|
+
this.disabled = false;
|
|
5229
5397
|
/**
|
|
5230
5398
|
* Icon to display (defaults to plus sign)
|
|
5231
5399
|
*/
|
|
@@ -5240,7 +5408,7 @@ class XplorButton {
|
|
|
5240
5408
|
render() {
|
|
5241
5409
|
const isIconOnly = !this.text && this.iconPosition !== null;
|
|
5242
5410
|
const hasIcon = this.iconPosition !== null;
|
|
5243
|
-
return (hAsync(Host, { key: '
|
|
5411
|
+
return (hAsync(Host, { key: '193c8139b43bdbaf108bf09d220b20d746f72cd7' }, hAsync("slot", { key: '61b731d8173a15bcd76fbbf16f0d1d97cbab6e34' }, hAsync("button", { key: '04486cbf547798161e7756a5999898bc46b298b5', role: "button", class: Object.assign({ 'x-button': true, [this.type]: true, 'shadow': this.type !== 'minimal' && this.type !== 'text', 'x-button--icon-only': isIconOnly, 'x-button--with-icon': hasIcon && !isIconOnly, 'x-button--icon-start': this.iconPosition === 'start' && !isIconOnly, 'x-button--icon-end': this.iconPosition === 'end' && !isIconOnly }, (this.styles ? { [this.styles]: true } : {})), onClick: () => this.clickAction && this.clickAction(), "aria-label": this.ariaLabel, "aria-disabled": this.disabled ? 'true' : null, disabled: this.disabled }, hasIcon && this.iconPosition === 'start' && this.renderIcon(), this.text && hAsync("span", { key: '07e204d356d830444e1b26979be6f1f3926ba551', class: "button-text" }, this.text), hasIcon && this.iconPosition === 'end' && this.renderIcon()))));
|
|
5244
5412
|
}
|
|
5245
5413
|
static get style() { return xplorButtonCss; }
|
|
5246
5414
|
static get cmpMeta() { return {
|
|
@@ -5253,6 +5421,8 @@ class XplorButton {
|
|
|
5253
5421
|
"size": [1],
|
|
5254
5422
|
"styles": [1],
|
|
5255
5423
|
"clickAction": [16, "click-action"],
|
|
5424
|
+
"ariaLabel": [1, "aria-label"],
|
|
5425
|
+
"disabled": [4],
|
|
5256
5426
|
"iconPosition": [1, "icon-position"],
|
|
5257
5427
|
"icon": [1],
|
|
5258
5428
|
"iconSvg": [1, "icon-svg"]
|
|
@@ -5341,10 +5511,12 @@ class XplorChatWidget {
|
|
|
5341
5511
|
|
|
5342
5512
|
const xplorCheckboxCss = "/* on mobile browsers, I set a width of 100% */\n@tailwind base;\n@tailwind components;\n@tailwind utilities;\n@layer base {\n /* html[data-theme='office'] {\n --color-primary: rgb(219, 59, 3);\n --color-secondary: rgb(0, 119, 107);\n --color-buttons: #89da59;\n --color-typography: #ff320e;\n }\n\n html {\n --color-primary: #db3b03;\n --color-primary-50: #db3b03;\n --color-secondary: rgb(0, 119, 107);\n --color-secondary-50: rgb(0, 119, 107);\n --color-tertiary: rgb(128, 104, 186);\n } */\n :root {\n --color-primary: #db3b03;\n --color-primary-50: rgba(255, 152, 0, 1);\n --color-secondary: rgb(0, 119, 107);\n --color-secondary-50: rgba(1, 163, 157, 1);\n --color-tertiary: rgb(128, 104, 186);\n --color-tertiary: rgb(223, 242, 241);\n --color-white: white;\n --color-emphasis: rgb(8, 8, 9);\n --color-supergiant: rgb(213, 66, 99);\n --color-orange: rgb(250, 200, 127);\n --color-buttons: #fbbc05;\n --color-typography: #ea4335;\n --background: 20 66% 99%;\n --foreground: 20 51% 4%;\n --muted: 20 25% 86%;\n --muted-foreground: 20 7% 25%;\n --popover: 20 66% 98%;\n --popover-foreground: 20 51% 3%;\n --card: 20 66% 98%;\n --card-foreground: 20 51% 3%;\n --border: 20 15% 94%;\n --input: 20 15% 94%;\n --primary: 20 48% 72%;\n --primary-foreground: 20 48% 12%;\n --secondary: 20 12% 92%;\n --secondary-foreground: 20 12% 32%;\n --accent: 20 12% 92%;\n --accent-foreground: 20 12% 32%;\n --destructive: 11 80% 22%;\n --destructive-foreground: 11 80% 82%;\n --ring: 20 48% 72%;\n --radius: 0.5rem;\n --chart-1: 12 76% 61%;\n --chart-2: 173 58% 39%;\n --chart-3: 197 37% 24%;\n --chart-4: 43 74% 66%;\n --chart-5: 27 87% 67%;\n }\n .dark {\n --background: 253 43% 3%;\n --foreground: 253 31% 98%;\n --muted: 253 7% 13%;\n --muted-foreground: 253 13% 63%;\n --popover: 253 43% 3%;\n --popover-foreground: 253 31% 98%;\n --card: 253 43% 4%;\n --card-foreground: 253 31% 99%;\n --border: 215 27.9% 16.9%;\n --input: 215 27.9% 16.9%;\n --primary: 253 91% 58%;\n --primary-foreground: 253 91% 98%;\n --secondary: 253 7% 9%;\n --secondary-foreground: 253 7% 69%;\n --accent: 253 13% 14%;\n --accent-foreground: 253 13% 74%;\n --destructive: 339.2 90.36% 51.18%;\n --destructive-foreground: 0 0% 100%;\n --ring: 253 91% 58%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n }\n}\n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply box-border bg-background text-foreground;\n }\n}\n@layer utilities {\n .min-h-screen {\n min-height: 100vh;\n /* Fallback */\n min-height: 100dvh;\n }\n .h-screen {\n height: 100vh;\n /* Fallback */\n height: 100dvh;\n }\n}\n@tailwind base;\n@tailwind components;\n@tailwind utilities;\n@layer components {\n .glass {\n border: none;\n backdrop-filter: blur(var(--glass-blur, 40px));\n background-color: transparent;\n background-image: linear-gradient(135deg, rgb(255, 255, 255, var(--glass-opacity, 30%)), transparent), linear-gradient(var(--glass-reflex-degree, 100deg), rgb(255, 255, 255, var(--glass-reflex-opacity, 10%)) 25%, transparent 0);\n box-shadow: 0 0 0 1px rgb(255, 255, 255, var(--glass-border-opacity, 10%)) inset, 0 0 0 2px rgba(0, 0, 0, 0.05);\n text-shadow: 0 1px rgb(0, 0, 0, var(--glass-text-shadow-opacity, 5%));\n }\n}\n.tox.tox-tinymce {\n width: 50% !important;\n height: 400px !important;\n display: inline-flex;\n}\n\n/* on large screens, I use a different layout, so 600px are sufficient */\n@media only screen and (min-width: 600px) {\n .tox.tox-tinymce {\n width: 600px !important;\n }\n}\nh1 {\n color: var(--color-primary);\n /* Header/H1 */\n font-family: Inter;\n font-size: 48px;\n font-style: normal;\n font-weight: 400;\n line-height: 56px; /* 116.667% */\n}\n\nh2 {\n color: var(--grey-1100252525, #252525);\n /* Header/H2 Bold */\n font-family: Inter;\n font-size: 32px;\n font-style: normal;\n font-weight: 600;\n line-height: 38px; /* 118.75% */\n letter-spacing: 0.25px;\n}\n\nh3 {\n color: var(--grey-1100252525, #252525);\n /* Header/H3 */\n font-family: Inter;\n font-size: 24px;\n font-style: normal;\n font-weight: 400;\n line-height: 32px; /* 133.333% */\n}\n\n.overline {\n color: var(--grey-1100252525, #252525);\n /* Overline/Regular */\n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 16px; /* 133.333% */\n letter-spacing: 3.2px;\n text-transform: uppercase;\n}\n\nol,\nul {\n list-style: none;\n margin: 1rem;\n padding: 0;\n}\nol li,\nul li {\n margin: 1rem;\n padding: 0;\n}\nol.mdc-list,\nul.mdc-list {\n list-style-type: none;\n list-style: none;\n}\nol.mdc-list li.mdc-list-item,\nul.mdc-list li.mdc-list-item {\n list-style-type: none;\n list-style: none !important;\n}\n\n.orange-label {\n color: var(--Orange-900-Primary, #db3b03);\n /* Caption 1/Regular */\n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; /* 133.333% */\n letter-spacing: 0.4px;\n margin: 0px 0 -9px 16px;\n z-index: 1 !important;\n position: relative;\n width: fit-content;\n}\n.orange-label.grey-bg {\n background-color: #fefcfb;\n}\n\n#spinnerLoader {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: #fff;\n padding: 20px;\n border-radius: 5px;\n box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 100;\n pointer-events: none;\n}\n\n#textfield-Title-label {\n background-color: white;\n}\n\n.mdc-ripple-upgraded .mdc-text-field--outlined .mdc-notched-outline__notch {\n border: 0px solid transparent !important;\n border-bottom: 1px solid #db3b03 !important;\n padding: 0;\n height: 0;\n}\n\n.mdc-text-field--focused .mdc-notched-outline__notch {\n border: 0px solid transparent !important;\n border-bottom: 2px solid #db3b03 !important;\n}\n\n.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch {\n max-width: calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2);\n border-top: transparent;\n}\n\n.generate-btn {\n display: flex;\n height: 48px;\n padding: 12px 24px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n border-radius: 16px;\n}\n.generate-btn.link:hover {\n background-color: var(--Cyan-700-Secondary, #e27046);\n color: var(--Cyan-700-Secondary-Text, #fff);\n}\n\n.bg-green {\n background: var(--Cyan-700-Secondary, #00776b);\n}\n\n/* custom-checkbox.scss */\n:host {\n display: inline-block;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n}\n\n.checkbox-wrapper {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n}\n\n.checkbox {\n width: 20px;\n height: 20px;\n border-radius: 4px;\n border: 2px solid #6b7280;\n background: white;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: all 0.15s ease;\n outline: none;\n position: relative;\n}\n.checkbox.hover {\n background: #d1fae5;\n border-color: #059669;\n}\n.checkbox.focus {\n background: #a7f3d0;\n border-color: #059669;\n box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);\n}\n.checkbox.pressed {\n background: #6ee7b7;\n border-color: #059669;\n}\n.checkbox.checked {\n background: #059669;\n border-color: #059669;\n}\n.checkbox.checked.hover {\n background: #d1fae5;\n border-color: #059669;\n}\n.checkbox.checked.hover .check-icon {\n color: #059669;\n}\n.checkbox.checked.focus {\n background: #a7f3d0;\n border-color: #059669;\n box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);\n}\n.checkbox.checked.focus .check-icon {\n color: #059669;\n}\n.checkbox.checked.pressed {\n background: #6ee7b7;\n border-color: #059669;\n}\n.checkbox.checked.pressed .check-icon {\n color: #059669;\n}\n.checkbox.indeterminate {\n background: #059669;\n border-color: #059669;\n}\n.checkbox.indeterminate.hover {\n background: #d1fae5;\n border-color: #059669;\n}\n.checkbox.indeterminate.hover .indeterminate-icon {\n color: #059669;\n}\n.checkbox.indeterminate.focus {\n background: #a7f3d0;\n border-color: #059669;\n box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);\n}\n.checkbox.indeterminate.focus .indeterminate-icon {\n color: #059669;\n}\n.checkbox.indeterminate.pressed {\n background: #6ee7b7;\n border-color: #059669;\n}\n.checkbox.indeterminate.pressed .indeterminate-icon {\n color: #059669;\n}\n.checkbox.error {\n border-color: #ef4444;\n}\n.checkbox.error.hover {\n background: #fee2e2;\n border-color: #ef4444;\n}\n.checkbox.error.focus {\n background: #fecaca;\n border-color: #ef4444;\n box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);\n}\n.checkbox.error.pressed {\n background: #fca5a5;\n border-color: #ef4444;\n}\n.checkbox.error.checked {\n background: #ef4444;\n border-color: #ef4444;\n}\n.checkbox.error.checked.hover {\n background: #fee2e2;\n border-color: #ef4444;\n}\n.checkbox.error.checked.hover .check-icon {\n color: #ef4444;\n}\n.checkbox.error.checked.focus {\n background: #fecaca;\n border-color: #ef4444;\n box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);\n}\n.checkbox.error.checked.focus .check-icon {\n color: #ef4444;\n}\n.checkbox.error.checked.pressed {\n background: #fca5a5;\n border-color: #ef4444;\n}\n.checkbox.error.checked.pressed .check-icon {\n color: #ef4444;\n}\n.checkbox.error.indeterminate {\n background: #ef4444;\n border-color: #ef4444;\n}\n.checkbox.error.indeterminate.hover {\n background: #fee2e2;\n border-color: #ef4444;\n}\n.checkbox.error.indeterminate.hover .indeterminate-icon {\n color: #ef4444;\n}\n.checkbox.error.indeterminate.focus {\n background: #fecaca;\n border-color: #ef4444;\n box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);\n}\n.checkbox.error.indeterminate.focus .indeterminate-icon {\n color: #ef4444;\n}\n.checkbox.error.indeterminate.pressed {\n background: #fca5a5;\n border-color: #ef4444;\n}\n.checkbox.error.indeterminate.pressed .indeterminate-icon {\n color: #ef4444;\n}\n.checkbox.disabled {\n opacity: 0.4;\n cursor: not-allowed;\n border-color: #d1d5db;\n background: white;\n}\n.checkbox.disabled.checked, .checkbox.disabled.indeterminate {\n background: #d1d5db;\n border-color: #d1d5db;\n}\n\n.check-icon,\n.indeterminate-icon {\n width: 16px;\n height: 16px;\n color: white;\n}\n\n.label {\n font-size: 14px;\n color: #374151;\n user-select: none;\n}\n.checkbox.disabled ~ .label {\n opacity: 0.4;\n}";
|
|
5343
5513
|
|
|
5514
|
+
let checkboxIdCounter = 0;
|
|
5344
5515
|
class XplorCheckbox {
|
|
5345
5516
|
constructor(hostRef) {
|
|
5346
5517
|
registerInstance(this, hostRef);
|
|
5347
5518
|
this.checkboxChange = createEvent(this, "checkboxChange");
|
|
5519
|
+
this.labelId = `xplor-checkbox-label-${++checkboxIdCounter}`;
|
|
5348
5520
|
this.initialChecked = false;
|
|
5349
5521
|
this.initialIndeterminate = false;
|
|
5350
5522
|
this.disabled = false;
|
|
@@ -5416,7 +5588,7 @@ class XplorCheckbox {
|
|
|
5416
5588
|
this.indeterminate = this.initialIndeterminate;
|
|
5417
5589
|
}
|
|
5418
5590
|
render() {
|
|
5419
|
-
return (hAsync("div", { key: '
|
|
5591
|
+
return (hAsync("div", { key: '02d3efb24ac53caa742721720ec6d212eb159a55', class: "checkbox-wrapper" }, hAsync("div", { key: '1d1024d0dfb9328d607919dad86bfa25def7bf35', class: this.getCheckboxClass(), onClick: this.handleClick, onMouseEnter: () => this.isHovered = true, onMouseLeave: () => this.isHovered = false, onMouseDown: () => this.isPressed = true, onMouseUp: () => this.isPressed = false, onFocus: () => this.isFocused = true, onBlur: () => this.isFocused = false, onKeyDown: this.handleKeyDown, onKeyUp: this.handleKeyUp, tabIndex: this.disabled ? -1 : 0, role: "checkbox", "aria-checked": this.indeterminate ? 'mixed' : this.checked.toString(), "aria-disabled": this.disabled.toString(), "aria-labelledby": this.label ? this.labelId : undefined }, this.checked && (hAsync("svg", { key: 'e5bd243560546d47bfc77d753df3020fb1abb417', class: "check-icon", viewBox: "0 0 16 16", fill: "none" }, hAsync("path", { key: '19da038d854b218177b668da5b8e8c3489dd377d', d: "M13.3334 4L6.00002 11.3333L2.66669 8", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.indeterminate && (hAsync("svg", { key: '069ce072241705fabb0a740271d7b6e6192e35a8', class: "indeterminate-icon", viewBox: "0 0 16 16", fill: "none" }, hAsync("path", { key: 'afc9851ff1e2ecb32cb7f0037c72844e8ae1a625', d: "M3.33331 8H12.6666", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" })))), this.label && hAsync("span", { key: '4fbc5b3bbf78fd53aa0ee5a65e1a3b1b76cbb114', class: "label", id: this.labelId }, this.label)));
|
|
5420
5592
|
}
|
|
5421
5593
|
static get watchers() { return {
|
|
5422
5594
|
"initialChecked": ["watchCheckedProp"],
|
|
@@ -5660,23 +5832,32 @@ class XplorCombobox {
|
|
|
5660
5832
|
render() {
|
|
5661
5833
|
const hasValue = this.multiple ? this.selectedItems.length > 0 : this.value !== null && this.searchQuery !== '';
|
|
5662
5834
|
const showCreateOption = this.canCreateNew();
|
|
5663
|
-
|
|
5835
|
+
const listboxId = 'combobox-listbox';
|
|
5836
|
+
const labelId = 'combobox-label';
|
|
5837
|
+
const activeDescendantId = this.highlightedIndex >= 0 ? `combobox-option-${this.highlightedIndex}` : undefined;
|
|
5838
|
+
return (hAsync(Host, { key: '5c3fb39153fe1a83d72b4ad3aa60d4602014916c' }, hAsync("div", { key: 'ed9f80ab76d19c842e9da6a016040fdf68395332', class: {
|
|
5664
5839
|
'combobox': true,
|
|
5665
5840
|
'combobox--disabled': this.disabled,
|
|
5666
5841
|
'combobox--readonly': this.readonly,
|
|
5667
5842
|
'combobox--open': this.isOpen,
|
|
5668
|
-
} }, this.label && (hAsync("label", { key: '
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5843
|
+
} }, this.label && (hAsync("label", { key: 'a5837bdc2fe30046a56a659a942c82c6612e5eed', class: "combobox__label", id: labelId }, this.label)), hAsync("div", { key: '84022a8390a2024ef29d7dbdb5bd3b34c1da2305', class: "combobox__input-wrapper" }, this.multiple && this.selectedItems.length > 0 && (hAsync("div", { key: '7df2befc1d6104e8b5472c800fe30eda0ecac550', class: "combobox__chips" }, this.selectedItems.map(value => {
|
|
5844
|
+
const chipLabel = this.getSelectedItemLabel(value);
|
|
5845
|
+
return (hAsync("div", { class: "combobox__chip" }, hAsync("span", { class: "combobox__chip-label" }, chipLabel), hAsync("button", { type: "button", class: "combobox__chip-remove", onClick: () => this.removeItem(value), disabled: this.disabled || this.readonly, "aria-label": `Remove ${chipLabel}` }, "\u00D7")));
|
|
5846
|
+
}))), hAsync("input", { key: '4b01ffb37bfe750c24081ec839fcd6b70f87bde0', ref: (el) => (this.inputEl = el), type: "text", class: "combobox__input", placeholder: this.placeholder, value: this.searchQuery, onFocus: this.handleInputFocus, onInput: this.handleInputChange, onKeyDown: this.handleInputKeyDown, disabled: this.disabled, readonly: this.readonly, autocomplete: "off", role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": this.isOpen ? listboxId : undefined, "aria-activedescendant": activeDescendantId, "aria-labelledby": this.label ? labelId : undefined, "aria-label": !this.label ? (this.ariaLabel || this.placeholder) : undefined, "aria-autocomplete": "list" }), hAsync("div", { key: 'f1fa0b56edeb6c5e25eebd34a9d143a0ecca1173', class: "combobox__actions" }, this.clearable && hasValue && !this.disabled && !this.readonly && (hAsync("button", { key: '5179310582b9aef4739985dbeefd35bda1bb86bb', type: "button", class: "combobox__clear", onClick: this.handleClear, "aria-label": "Clear selection" }, "\u00D7")), hAsync("span", { key: '93c5431addfcaf88e51d38907304a4e289c3183d', class: "combobox__icon", "aria-hidden": "true" }, "\u25BC"))), this.isOpen && (this.filteredItems.length > 0 || showCreateOption) && (hAsync("div", { key: '9fba0e29de90f8bdcdd4861fbb0fb06a20fa980b', class: "combobox__dropdown", ref: (el) => (this.dropdownEl = el), role: "listbox", id: listboxId, "aria-label": this.label || this.ariaLabel || 'Options' }, this.filteredItems.map((item, index) => {
|
|
5847
|
+
const isSelected = this.multiple
|
|
5848
|
+
? this.selectedItems.includes(item.value)
|
|
5849
|
+
: this.value === item.value;
|
|
5850
|
+
return (hAsync("div", { key: item.value, id: `combobox-option-${index}`, "data-index": index, role: "option", "aria-selected": isSelected ? 'true' : 'false', "aria-disabled": item.disabled ? 'true' : undefined, class: {
|
|
5851
|
+
'combobox__item': true,
|
|
5852
|
+
'combobox__item--highlighted': index === this.highlightedIndex,
|
|
5853
|
+
'combobox__item--selected': isSelected,
|
|
5854
|
+
'combobox__item--disabled': item.disabled,
|
|
5855
|
+
}, onClick: () => this.selectItem(item) }, item.label));
|
|
5856
|
+
}), showCreateOption && (hAsync("div", { key: '880bc30bc32c87dfb9ecf9b706162299e80fd1c5', id: `combobox-option-${this.filteredItems.length}`, "data-index": this.filteredItems.length, role: "option", "aria-selected": "false", class: {
|
|
5676
5857
|
'combobox__item': true,
|
|
5677
5858
|
'combobox__item--create': true,
|
|
5678
5859
|
'combobox__item--highlighted': this.highlightedIndex === this.filteredItems.length,
|
|
5679
|
-
}, onClick: () => this.createNewItem() }, hAsync("span", { key: '
|
|
5860
|
+
}, onClick: () => this.createNewItem() }, hAsync("span", { key: 'd0ff5841add7495a79a1e9453b87706971cf8907', class: "combobox__create-label" }, this.createMessage, ":"), ' ', hAsync("strong", { key: 'e1b1e94a5afce2ab3f5a714a7c593e59d9d22ff0' }, "\"", this.searchQuery, "\""))))), this.isOpen && this.filteredItems.length === 0 && !showCreateOption && (hAsync("div", { key: '0a95426511036f918cd42999cd1543fc26efbff2', class: "combobox__dropdown", role: "listbox", id: listboxId }, hAsync("div", { key: '551dc3ad968c049c5bbf2a9da71d45e203e15df7', class: "combobox__no-results", role: "option", "aria-disabled": "true" }, "No results found"))))));
|
|
5680
5861
|
}
|
|
5681
5862
|
get el() { return getElement(this); }
|
|
5682
5863
|
static get style() { return xplorComboboxCss; }
|
|
@@ -5688,6 +5869,7 @@ class XplorCombobox {
|
|
|
5688
5869
|
"value": [1032],
|
|
5689
5870
|
"placeholder": [1],
|
|
5690
5871
|
"label": [1],
|
|
5872
|
+
"ariaLabel": [1, "aria-label"],
|
|
5691
5873
|
"disabled": [4],
|
|
5692
5874
|
"readonly": [4],
|
|
5693
5875
|
"clearable": [4],
|
|
@@ -5884,18 +6066,24 @@ class XplorDatatable {
|
|
|
5884
6066
|
'horizontal-lines': this.horizontalLines,
|
|
5885
6067
|
'striped': this.striped,
|
|
5886
6068
|
'is-empty': this.items.length === 0,
|
|
5887
|
-
}, style: hasHeight ? { height: tableHeight } : {} }, hAsync("table", { key: '5f46224fe7ecc2fd3781e11d592fee5c8d80e9f2', class: { 'hover': this.hover } }, hAsync("thead", { key: 'd20432aa1d6551dd324a60ed594cd5ebc2c80198' }, hAsync("tr", { key: '62cc50e679f8345caba6f92a7ae117b68728425d' }, this.canSelect && (hAsync("th", { key: 'dfffb0bf421458b192db6eae3538da8a752f5356', class: "select-column" }, hAsync("label", { key: '17cdb037cee9b2d0cce729e0761f03b4bca14354', class: "checkbox-label" }, hAsync("input", { key: '
|
|
5888
|
-
this.internalSelected.size < this.items.length, onChange: this.handleSelectAll })))), this.headers.map(header => (hAsync("th", { class: {
|
|
6069
|
+
}, style: hasHeight ? { height: tableHeight } : {} }, hAsync("table", { key: '5f46224fe7ecc2fd3781e11d592fee5c8d80e9f2', class: { 'hover': this.hover } }, hAsync("thead", { key: 'd20432aa1d6551dd324a60ed594cd5ebc2c80198' }, hAsync("tr", { key: '62cc50e679f8345caba6f92a7ae117b68728425d' }, this.canSelect && (hAsync("th", { key: 'dfffb0bf421458b192db6eae3538da8a752f5356', class: "select-column" }, hAsync("label", { key: '17cdb037cee9b2d0cce729e0761f03b4bca14354', class: "checkbox-label" }, hAsync("input", { key: '668128d3f8238449b965df2825e164a2e12a4626', type: "checkbox", checked: this.allSelected, indeterminate: this.internalSelected.size > 0 &&
|
|
6070
|
+
this.internalSelected.size < this.items.length, onChange: this.handleSelectAll, "aria-label": "Select all rows" })))), this.headers.map(header => (hAsync("th", { class: {
|
|
5889
6071
|
sortable: header.sortable !== false,
|
|
5890
6072
|
sorted: this.sortBy === header.value,
|
|
5891
6073
|
fixed: header.fixed,
|
|
5892
6074
|
[`align-${header.align || 'left'}`]: true,
|
|
5893
|
-
}, style: header.width ? { width: typeof header.width === 'number' ? `${header.width}px` : header.width } : {}, onClick: () => header.sortable !== false && this.handleSort(header)
|
|
6075
|
+
}, style: header.width ? { width: typeof header.width === 'number' ? `${header.width}px` : header.width } : {}, onClick: () => header.sortable !== false && this.handleSort(header), "aria-sort": header.sortable !== false && this.sortBy === header.value
|
|
6076
|
+
? this.sortDirection === 'asc'
|
|
6077
|
+
? 'ascending'
|
|
6078
|
+
: this.sortDirection === 'desc'
|
|
6079
|
+
? 'descending'
|
|
6080
|
+
: 'none'
|
|
6081
|
+
: undefined }, hAsync("div", { class: "header-content" }, hAsync("span", null, header.text), header.sortable !== false && this.getSortIcon(header))))))), this.loading && this.skeletonLoader ? (this.renderSkeletonLoader()) : (hAsync("tbody", null, this.items.length === 0 ? (hAsync("tr", { class: "empty-row" }, hAsync("td", { colSpan: this.headers.length + (this.canSelect ? 1 : 0) }, hAsync("div", { class: "empty-state" }, hAsync("p", null, "No data available"))))) : (this.items.map(item => {
|
|
5894
6082
|
const isSelected = this.internalSelected.has(item);
|
|
5895
6083
|
return (hAsync("tr", { class: {
|
|
5896
6084
|
selected: isSelected,
|
|
5897
6085
|
clickable: true,
|
|
5898
|
-
}, onClick: (e) => this.handleRowClick(item, e) }, this.canSelect && (hAsync("td", { class: "select-column" }, hAsync("label", { class: "checkbox-label" }, hAsync("input", { type: "checkbox", checked: isSelected, onChange: (e) => this.handleSelectOne(e, item) })))), this.headers.map(header => (hAsync("td", { class: `align-${header.align || 'left'}` }, hAsync("slot", { name: `item.${header.value}` }, item[header.value]))))));
|
|
6086
|
+
}, onClick: (e) => this.handleRowClick(item, e), "aria-selected": this.canSelect ? isSelected ? 'true' : 'false' : undefined }, this.canSelect && (hAsync("td", { class: "select-column" }, hAsync("label", { class: "checkbox-label" }, hAsync("input", { type: "checkbox", checked: isSelected, onChange: (e) => this.handleSelectOne(e, item) })))), this.headers.map(header => (hAsync("td", { class: `align-${header.align || 'left'}` }, hAsync("slot", { name: `item.${header.value}` }, item[header.value]))))));
|
|
5899
6087
|
})))))), this.pagination && this.pagination.total > 0 && this.renderPagination())));
|
|
5900
6088
|
}
|
|
5901
6089
|
get el() { return getElement(this); }
|
|
@@ -5933,6 +6121,7 @@ class XplorDatatable {
|
|
|
5933
6121
|
|
|
5934
6122
|
const xplorDatePickerCss = "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n@layer base {\n \n :root {\n --color-primary: #db3b03;\n --color-primary-50: rgba(255, 152, 0, 1);\n --color-secondary: rgb(0, 119, 107);\n --color-secondary-50: rgba(1, 163, 157, 1);\n --color-tertiary: rgb(128, 104, 186);\n --color-tertiary: rgb(223, 242, 241);\n --color-white: white;\n --color-emphasis: rgb(8, 8, 9);\n --color-supergiant: rgb(213, 66, 99);\n --color-orange: rgb(250, 200, 127);\n --color-buttons: #fbbc05;\n --color-typography: #ea4335;\n --background: 20 66% 99%;\n --foreground: 20 51% 4%;\n --muted: 20 25% 86%;\n --muted-foreground: 20 7% 25%;\n --popover: 20 66% 98%;\n --popover-foreground: 20 51% 3%;\n --card: 20 66% 98%;\n --card-foreground: 20 51% 3%;\n --border: 20 15% 94%;\n --input: 20 15% 94%;\n --primary: 20 48% 72%;\n --primary-foreground: 20 48% 12%;\n --secondary: 20 12% 92%;\n --secondary-foreground: 20 12% 32%;\n --accent: 20 12% 92%;\n --accent-foreground: 20 12% 32%;\n --destructive: 11 80% 22%;\n --destructive-foreground: 11 80% 82%;\n --ring: 20 48% 72%;\n --radius: 0.5rem;\n --chart-1: 12 76% 61%;\n --chart-2: 173 58% 39%;\n --chart-3: 197 37% 24%;\n --chart-4: 43 74% 66%;\n --chart-5: 27 87% 67%;\n }\n .dark {\n --background: 253 43% 3%;\n --foreground: 253 31% 98%;\n --muted: 253 7% 13%;\n --muted-foreground: 253 13% 63%;\n --popover: 253 43% 3%;\n --popover-foreground: 253 31% 98%;\n --card: 253 43% 4%;\n --card-foreground: 253 31% 99%;\n --border: 215 27.9% 16.9%;\n --input: 215 27.9% 16.9%;\n --primary: 253 91% 58%;\n --primary-foreground: 253 91% 98%;\n --secondary: 253 7% 9%;\n --secondary-foreground: 253 7% 69%;\n --accent: 253 13% 14%;\n --accent-foreground: 253 13% 74%;\n --destructive: 339.2 90.36% 51.18%;\n --destructive-foreground: 0 0% 100%;\n --ring: 253 91% 58%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n }\n}\n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply box-border bg-background text-foreground;\n }\n}\n@layer utilities {\n .min-h-screen {\n min-height: 100vh;\n \n min-height: 100dvh;\n }\n .h-screen {\n height: 100vh;\n \n height: 100dvh;\n }\n}\n@tailwind base;\n@tailwind components;\n@tailwind utilities;\n@layer components {\n .glass {\n border: none;\n backdrop-filter: blur(var(--glass-blur, 40px));\n background-color: transparent;\n background-image: linear-gradient(135deg, rgb(255, 255, 255, var(--glass-opacity, 30%)), transparent), linear-gradient(var(--glass-reflex-degree, 100deg), rgb(255, 255, 255, var(--glass-reflex-opacity, 10%)) 25%, transparent 0);\n box-shadow: 0 0 0 1px rgb(255, 255, 255, var(--glass-border-opacity, 10%)) inset, 0 0 0 2px rgba(0, 0, 0, 0.05);\n text-shadow: 0 1px rgb(0, 0, 0, var(--glass-text-shadow-opacity, 5%));\n }\n}\n.tox.tox-tinymce.sc-xplor-date-picker {\n width: 50% !important;\n height: 400px !important;\n display: inline-flex;\n}\n\n\n@media only screen and (min-width: 600px) {\n .tox.tox-tinymce.sc-xplor-date-picker {\n width: 600px !important;\n }\n}\nh1.sc-xplor-date-picker {\n color: var(--color-primary);\n \n font-family: Inter;\n font-size: 48px;\n font-style: normal;\n font-weight: 400;\n line-height: 56px; \n}\n\nh2.sc-xplor-date-picker {\n color: var(--grey-1100252525, #252525);\n \n font-family: Inter;\n font-size: 32px;\n font-style: normal;\n font-weight: 600;\n line-height: 38px; \n letter-spacing: 0.25px;\n}\n\nh3.sc-xplor-date-picker {\n color: var(--grey-1100252525, #252525);\n \n font-family: Inter;\n font-size: 24px;\n font-style: normal;\n font-weight: 400;\n line-height: 32px; \n}\n\n.overline.sc-xplor-date-picker {\n color: var(--grey-1100252525, #252525);\n \n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 16px; \n letter-spacing: 3.2px;\n text-transform: uppercase;\n}\n\nol.sc-xplor-date-picker, ul.sc-xplor-date-picker {\n list-style: none;\n margin: 1rem;\n padding: 0;\n}\nol.sc-xplor-date-picker li.sc-xplor-date-picker, ul.sc-xplor-date-picker li.sc-xplor-date-picker {\n margin: 1rem;\n padding: 0;\n}\nol.mdc-list.sc-xplor-date-picker, ul.mdc-list.sc-xplor-date-picker {\n list-style-type: none;\n list-style: none;\n}\nol.mdc-list.sc-xplor-date-picker li.mdc-list-item.sc-xplor-date-picker, ul.mdc-list.sc-xplor-date-picker li.mdc-list-item.sc-xplor-date-picker {\n list-style-type: none;\n list-style: none !important;\n}\n\n.orange-label.sc-xplor-date-picker {\n color: var(--Orange-900-Primary, #db3b03);\n \n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; \n letter-spacing: 0.4px;\n margin: 0px 0 -9px 16px;\n z-index: 1 !important;\n position: relative;\n width: fit-content;\n}\n.orange-label.grey-bg.sc-xplor-date-picker {\n background-color: #fefcfb;\n}\n\n#spinnerLoader.sc-xplor-date-picker {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: #fff;\n padding: 20px;\n border-radius: 5px;\n box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 100;\n pointer-events: none;\n}\n\n#textfield-Title-label.sc-xplor-date-picker {\n background-color: white;\n}\n\n.mdc-ripple-upgraded.sc-xplor-date-picker .mdc-text-field--outlined.sc-xplor-date-picker .mdc-notched-outline__notch.sc-xplor-date-picker {\n border: 0px solid transparent !important;\n border-bottom: 1px solid #db3b03 !important;\n padding: 0;\n height: 0;\n}\n\n.mdc-text-field--focused.sc-xplor-date-picker .mdc-notched-outline__notch.sc-xplor-date-picker {\n border: 0px solid transparent !important;\n border-bottom: 2px solid #db3b03 !important;\n}\n\n.mdc-text-field--outlined.sc-xplor-date-picker .mdc-notched-outline.sc-xplor-date-picker .mdc-notched-outline__notch.sc-xplor-date-picker {\n max-width: calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2);\n border-top: transparent;\n}\n\n.generate-btn.sc-xplor-date-picker {\n display: flex;\n height: 48px;\n padding: 12px 24px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n border-radius: 16px;\n}\n.generate-btn.link.sc-xplor-date-picker:hover {\n background-color: var(--Cyan-700-Secondary, #e27046);\n color: var(--Cyan-700-Secondary-Text, #fff);\n}\n\n.bg-green.sc-xplor-date-picker {\n background: var(--Cyan-700-Secondary, #00776b);\n}\n\n.sc-xplor-date-picker-h {\n display: block;\n width: 100%;\n}\n\n.date-picker.sc-xplor-date-picker {\n position: relative;\n width: 100%;\n}\n.date-picker--disabled.sc-xplor-date-picker {\n opacity: 0.6;\n cursor: not-allowed;\n}\n.date-picker__label.sc-xplor-date-picker {\n display: block;\n font-size: 0.875rem;\n color: rgba(0, 0, 0, 0.6);\n margin-bottom: 0.25rem;\n}\n.date-picker__required.sc-xplor-date-picker {\n color: #d32f2f;\n margin-left: 0.25rem;\n}\n.date-picker__field.sc-xplor-date-picker {\n position: relative;\n display: flex;\n align-items: center;\n border: 1px solid rgba(0, 0, 0, 0.23);\n border-radius: 1rem;\n transition: border-color 0.2s ease;\n background: white;\n}\n.date-picker__field.sc-xplor-date-picker:focus-within {\n border-color: #008480;\n border-width: 2px;\n}\n.date-picker__field.sc-xplor-date-picker:focus-within .date-picker__input.sc-xplor-date-picker {\n padding: calc(0.875rem - 1px) calc(1rem - 1px);\n}\n.date-picker--error.sc-xplor-date-picker .date-picker__field.sc-xplor-date-picker {\n border-color: #d32f2f;\n}\n.date-picker__input.sc-xplor-date-picker {\n flex: 1;\n width: 100%;\n padding: 0.875rem 1rem;\n font-size: 1rem;\n font-family: inherit;\n border: none;\n border-radius: 1rem;\n outline: none;\n background: transparent;\n}\n.date-picker__input.sc-xplor-date-picker::placeholder {\n color: rgba(0, 0, 0, 0.38);\n}\n.date-picker__input.sc-xplor-date-picker:disabled {\n cursor: not-allowed;\n}\n.date-picker__actions.sc-xplor-date-picker {\n display: flex;\n align-items: center;\n gap: 0.25rem;\n padding-right: 0.5rem;\n flex-shrink: 0;\n}\n.date-picker__clear.sc-xplor-date-picker {\n background: none;\n border: none;\n font-size: 1.25rem;\n cursor: pointer;\n padding: 0;\n width: 1.5rem;\n height: 1.5rem;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #757575;\n border-radius: 50%;\n transition: background-color 0.2s;\n}\n.date-picker__clear.sc-xplor-date-picker:hover {\n background-color: #f5f5f5;\n color: #212121;\n}\n.date-picker__icon-btn.sc-xplor-date-picker {\n background: none;\n border: none;\n cursor: pointer;\n padding: 0.25rem;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #757575;\n border-radius: 50%;\n transition: background-color 0.2s;\n}\n.date-picker__icon-btn.sc-xplor-date-picker:hover:not(:disabled) {\n background-color: #f5f5f5;\n color: #212121;\n}\n.date-picker__icon-btn.sc-xplor-date-picker:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n.date-picker__icon-svg.sc-xplor-date-picker {\n display: block;\n}\n.date-picker__text-display.sc-xplor-date-picker {\n display: inline-flex;\n align-items: center;\n gap: 0.5rem;\n cursor: pointer;\n padding: 0.5rem;\n border-radius: 4px;\n color: #008480;\n font-size: 1rem;\n transition: background-color 0.2s;\n}\n.date-picker__text-display.sc-xplor-date-picker:hover {\n background-color: rgba(0, 132, 128, 0.08);\n}\n.date-picker__text-value.sc-xplor-date-picker {\n text-decoration: underline;\n}\n.date-picker__dropdown.sc-xplor-date-picker {\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n z-index: 1000;\n background-color: #fff;\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n}\n.date-picker__dropdown--top.sc-xplor-date-picker {\n top: auto;\n bottom: calc(100% + 4px);\n}\n.date-picker__details.sc-xplor-date-picker {\n min-height: 1.25rem;\n padding: 0 1rem;\n font-size: 0.75rem;\n}\n.date-picker__error-message.sc-xplor-date-picker {\n color: #d32f2f;\n}";
|
|
5935
6123
|
|
|
6124
|
+
let datePickerIdCounter = 0;
|
|
5936
6125
|
class XplorDatePicker {
|
|
5937
6126
|
constructor(hostRef) {
|
|
5938
6127
|
registerInstance(this, hostRef);
|
|
@@ -5967,6 +6156,9 @@ class XplorDatePicker {
|
|
|
5967
6156
|
this.isOpen = false;
|
|
5968
6157
|
this.inputText = '';
|
|
5969
6158
|
this.dropdownPosition = 'bottom';
|
|
6159
|
+
this.inputId = `xplor-date-picker-${++datePickerIdCounter}`;
|
|
6160
|
+
this.labelId = `${this.inputId}-label`;
|
|
6161
|
+
this.errorId = `${this.inputId}-error`;
|
|
5970
6162
|
this.toggleDropdown = () => {
|
|
5971
6163
|
if (this.disabled || this.readonly)
|
|
5972
6164
|
return;
|
|
@@ -6132,16 +6324,16 @@ class XplorDatePicker {
|
|
|
6132
6324
|
}
|
|
6133
6325
|
render() {
|
|
6134
6326
|
const showDetails = this.hideDetails === false || (this.hideDetails === 'auto' && this.error);
|
|
6135
|
-
const calendarIcon = (hAsync("svg", { key: '
|
|
6136
|
-
return (hAsync(Host, { key: '
|
|
6327
|
+
const calendarIcon = (hAsync("svg", { key: '8e3f3be13346ec15a3e4e2a9e9ccf3481cf8c87b', class: "date-picker__icon-svg", viewBox: "0 0 24 24", width: "20", height: "20", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, hAsync("rect", { key: '1f5d918d65a44a7b8f9dec0609ef125c96b1ccdf', x: "3", y: "4", width: "18", height: "18", rx: "2", ry: "2" }), hAsync("line", { key: 'd2a5ccfbe2e4afe8ed5d9277c49b09169c6ae651', x1: "16", y1: "2", x2: "16", y2: "6" }), hAsync("line", { key: '8d114a93b8f1c4d8fc65360f34afaecc14148328', x1: "8", y1: "2", x2: "8", y2: "6" }), hAsync("line", { key: '40b3ab407c3872d6eda481a64f8210b505e202cc', x1: "3", y1: "10", x2: "21", y2: "10" })));
|
|
6328
|
+
return (hAsync(Host, { key: '7c04e985b0a900863965311e69a336d859852e66' }, hAsync("div", { key: '15b17203d293c694130493bf45b8bd6d38c7bd36', class: {
|
|
6137
6329
|
'date-picker': true,
|
|
6138
6330
|
'date-picker--disabled': this.disabled,
|
|
6139
6331
|
'date-picker--error': !!this.error,
|
|
6140
6332
|
'date-picker--open': this.isOpen,
|
|
6141
|
-
} }, this.label && (hAsync("label", { key: '
|
|
6333
|
+
} }, this.label && (hAsync("label", { key: 'e9e03dde337f9c2259611f1f1f4748bb92d86cfb', class: "date-picker__label", id: this.labelId, htmlFor: this.inputId }, this.label, this.required && hAsync("span", { key: '4e68d0071f5224c9fc30df8864898a4906f6efba', class: "date-picker__required" }, "*"))), this.display === 'text' ? (hAsync("div", { class: "date-picker__text-display", onClick: this.handleTextClick, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "dialog", role: "button", tabIndex: 0 }, hAsync("span", { class: "date-picker__text-value" }, this.value ? this.formatDateForDisplay(this.value) : this.placeholder), calendarIcon)) : (hAsync("div", { class: "date-picker__field" }, hAsync("input", { id: this.inputId, type: "text", class: "date-picker__input", value: this.inputText, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, onInput: this.handleInputChange, style: { backgroundColor: this.bgColor }, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "dialog", "aria-describedby": this.error ? this.errorId : undefined, "aria-invalid": this.error ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined }), hAsync("div", { class: "date-picker__actions" }, this.clearable && this.value && !this.disabled && !this.readonly && (hAsync("button", { type: "button", class: "date-picker__clear", onClick: this.handleClear, "aria-label": "Clear" }, "\u00D7")), hAsync("button", { type: "button", class: "date-picker__icon-btn", onClick: this.toggleDropdown, disabled: this.disabled, "aria-label": "Open calendar" }, calendarIcon)))), showDetails && (hAsync("div", { key: '4e9fd12626bf5436604e28a236a304d60c452b50', class: "date-picker__details" }, this.error && hAsync("div", { key: 'a40425ac84ee81671f4289f4323db9a9a472d3c7', class: "date-picker__error-message", id: this.errorId }, this.error))), this.isOpen && (hAsync("div", { key: '86c55873b678dcfe74c09475cbde7657f1983799', class: {
|
|
6142
6334
|
'date-picker__dropdown': true,
|
|
6143
6335
|
'date-picker__dropdown--top': this.dropdownPosition === 'top',
|
|
6144
|
-
} }, hAsync("xplor-inline-date-picker", { key: '
|
|
6336
|
+
} }, hAsync("xplor-inline-date-picker", { key: 'bd1636e13522a65ea6377857edea2928a6182282', selectedDate: this.value, min: this.min, max: this.max, readonly: this.readonly, color: this.color, startWeekOnSunday: this.startWeekOnSunday, onDateSelected: this.handleDateSelected }))))));
|
|
6145
6337
|
}
|
|
6146
6338
|
get el() { return getElement(this); }
|
|
6147
6339
|
static get style() { return xplorDatePickerCss; }
|
|
@@ -6301,13 +6493,15 @@ class XplorDragAndDropInput {
|
|
|
6301
6493
|
this.fileClear.emit();
|
|
6302
6494
|
}
|
|
6303
6495
|
render() {
|
|
6304
|
-
|
|
6496
|
+
const progressValue = Math.min(Math.max(this.progress, 0), 100);
|
|
6497
|
+
const dropZoneLabel = this.ariaLabel || `${this.label}. Accepted file types: ${this.getAcceptsLabel()}. Or use the ${this.browseLabel} button.`;
|
|
6498
|
+
return (hAsync(Host, { key: '4ca1a26f1c043761a3bcafebf3ccdf57ec17467b' }, hAsync("div", { key: '60c9f55d838820e2d9c087fbb652559944ecfc36', class: "drag-drop-zone" }, hAsync("div", { key: 'f15e206b7f1e1741f5ee96681e000400e72d66b1', class: {
|
|
6305
6499
|
'drag-drop-card': true,
|
|
6306
6500
|
'drag-drop-card--dragover': this.dragover,
|
|
6307
6501
|
'drag-drop-card--disabled': this.disabled,
|
|
6308
|
-
}, onDrop: this.onDrop, onDragOver: this.onDragOver, onDragEnter: this.onDragEnter, onDragLeave: this.onDragLeave }, hAsync("div", { key: '
|
|
6502
|
+
}, onDrop: this.onDrop, onDragOver: this.onDragOver, onDragEnter: this.onDragEnter, onDragLeave: this.onDragLeave, role: "region", "aria-label": dropZoneLabel }, hAsync("div", { key: '49325fd7ff2d44a045eba593e2cb3708316a5be4', class: "drag-drop-card__content" }, hAsync("svg", { key: '23b8f38df073266201a01ec78a45b1cac924a3e4', class: "drag-drop-card__icon", xmlns: "http://www.w3.org/2000/svg", width: "40", height: "40", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true" }, hAsync("path", { key: 'eb1c750d1657fd578cf15c9bc16d5d1885d703e8', d: "M19.35 10.04C18.67 6.59 15.64 4 12 4C9.11 4 6.6 5.64 5.35 8.04C2.34 8.36 0 10.91 0 14C0 17.31 2.69 20 6 20H19C21.76 20 24 17.76 24 15C24 12.36 21.95 10.22 19.35 10.04Z", fill: "currentColor", opacity: "0.3" }), hAsync("path", { key: '04dc16407d2abd999fbef9cc02346d499644f0a7', d: "M19.35 10.04C18.67 6.59 15.64 4 12 4C9.11 4 6.6 5.64 5.35 8.04C2.34 8.36 0 10.91 0 14C0 17.31 2.69 20 6 20H19C21.76 20 24 17.76 24 15C24 12.36 21.95 10.22 19.35 10.04ZM14 13V17H10V13H7L12 8L17 13H14Z", fill: "currentColor" })), hAsync("h3", { key: '82c31b56cb5f17445748e0bfb8668caef4ceea59', class: "drag-drop-card__title" }, this.label), hAsync("p", { key: '69f3cf01f58dc8f3e2e13782be2a0274f2925a0d', class: "drag-drop-card__accepts" }, "Accepted file types: ", this.getAcceptsLabel()), hAsync("p", { key: '0a6221601983e61cb4a0afd4a5178377b59b4ce4', class: "drag-drop-card__divider" }, "or"))), hAsync("div", { key: '164c31d1407d492e415a086ae97dc8081a32eccc', class: "drag-drop-card__action" }, hAsync("xplor-button", { key: 'b47c05a246700472cebc32c551096ad17f12da77', text: this.browseLabel, type: this.disabled ? 'disabled' : 'secondary', clickAction: this.openFileDialog, "aria-label": this.browseLabel }))), this.currentFile && (hAsync("div", { key: '6e74d72d3545bc85f91a6d55865743bde26eba78', class: "file-info", "aria-live": "polite" }, this.showProgress() && (hAsync("p", { key: '7884acf7b14ddcd052a11b53131e6fea03c0376d', class: "file-info__status" }, "Uploading ", this.progress === 100 ? '1' : '0', " / 1")), hAsync("div", { key: '980b31adfde06383bdbe9d03f868a9cf907c83f8', class: "file-info__card" }, hAsync("div", { key: 'c9ed4fc96a229e748a461d788ed60a8b7c693f7c', class: "file-info__icon", "aria-hidden": "true" }, hAsync("svg", { key: '1749fafd0495beacdbbf2f89b2cf62c2530101db', xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "currentColor" }, hAsync("path", { key: '1b114d4b5b0f055534ba5f6a476d413600829c74', d: "M14 2H6C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V8L14 2ZM6 20V4H13V9H18V20H6Z" }))), hAsync("div", { key: '45608139178d2d821a6aeb39d75b1aa4117ca12a', class: "file-info__details" }, hAsync("p", { key: '66df2443dd4dd310891e30f78ccd007df726afd3', class: "file-info__name" }, this.currentFile.name), hAsync("p", { key: 'f8efc8b19987c88e7ff7de242b7ad3df4ff5962e', class: "file-info__meta" }, this.formatFileSize(this.currentFile.size), this.currentFile.lastModified
|
|
6309
6503
|
? ` | Last modified: ${this.formatDate(this.currentFile.lastModified)}`
|
|
6310
|
-
: ''), this.showProgress() && (hAsync("div", { key: '
|
|
6504
|
+
: ''), this.showProgress() && (hAsync("div", { key: 'eb384d34fcb7908a39bb3dd1520389f8bc35a8fd', class: "file-info__progress-row" }, hAsync("div", { key: 'bbfb481fa86247c231db4c7505009d1a991c85d2', class: "file-info__progress-bar", role: "progressbar", "aria-valuenow": progressValue, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": `Upload progress: ${Math.round(progressValue)}%` }, hAsync("div", { key: '8b93dcc26a1497783c4ef832b75c202e639a04ff', class: "file-info__progress-fill", style: { width: `${progressValue}%` } })), hAsync("span", { key: 'a429605ee278d74660a717bc04765ca21af60f64', class: "file-info__progress-text", "aria-hidden": "true" }, Math.round(this.progress), "%")))), hAsync("button", { key: '5ede3c138b788270b45a053ccf2504a35a5037ed', class: "file-info__remove", onClick: () => this.clearCurrentFile(), "aria-label": `Remove file ${this.currentFile.name}` }, hAsync("svg", { key: '0a5c03471e01b7f59dadaff6c8ea08b746c8c4c2', xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, hAsync("path", { key: '29a950f57d7a7d9aa74262f64fc055d8230e4453', d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12Z" })))))), hAsync("input", { key: '437111b2dbd80a8aaf1a2a4105bc8298431b2b95', id: "drag-drop-file-select", type: "file", disabled: this.disabled, accept: this.accepts, class: "drag-drop-input-hidden", ref: (el) => (this.fileInputEl = el), onChange: this.onFileSelect, "aria-label": `${this.browseLabel} - ${this.label}`, tabindex: -1 })));
|
|
6311
6505
|
}
|
|
6312
6506
|
static get style() { return xplorDragAndDropInputCss; }
|
|
6313
6507
|
static get cmpMeta() { return {
|
|
@@ -6318,6 +6512,7 @@ class XplorDragAndDropInput {
|
|
|
6318
6512
|
"accepts": [1],
|
|
6319
6513
|
"label": [1],
|
|
6320
6514
|
"browseLabel": [1, "browse-label"],
|
|
6515
|
+
"ariaLabel": [1, "aria-label"],
|
|
6321
6516
|
"progress": [2],
|
|
6322
6517
|
"dragover": [32],
|
|
6323
6518
|
"currentFile": [32],
|
|
@@ -6388,12 +6583,12 @@ class XplorExpansionPanel {
|
|
|
6388
6583
|
'expansion-panel': true,
|
|
6389
6584
|
'expansion-panel--open': this.open,
|
|
6390
6585
|
'expansion-panel--disabled': this.disabled,
|
|
6391
|
-
} }, hAsync("button", { key: '
|
|
6586
|
+
} }, hAsync("button", { key: '5c2b82b2f13395137413e7f86160ac132c44b7ee', class: "expansion-panel__header", onClick: this.handleToggle, disabled: this.disabled, "aria-expanded": this.open ? 'true' : 'false', "aria-controls": `${this.panelId}-content`, type: "button" }, hAsync("div", { key: 'c1534981f842b0b7d75a6c8135a12fb6f209639c', class: "expansion-panel__header-content" }, hAsync("slot", { key: '01c5a0a1dfacdf730ec82dc0a09916d159d1c016', name: "header" })), hAsync("span", { key: 'f82ea607638e601be6b956f9ad5c6d31d6461ec6', class: {
|
|
6392
6587
|
'expansion-panel__icon': true,
|
|
6393
6588
|
'expansion-panel__icon--open': this.open,
|
|
6394
|
-
} }, "\u25BC")), hAsync("div", { key: '
|
|
6589
|
+
} }, "\u25BC")), hAsync("div", { key: '385abb97450d912cda5fbd3bc5a5e48ea8ce8a0d', class: "expansion-panel__content", id: `${this.panelId}-content`, role: "region", "aria-labelledby": this.panelId, style: {
|
|
6395
6590
|
maxHeight: this.open ? `${this.contentHeight}px` : '0',
|
|
6396
|
-
} }, hAsync("div", { key: '
|
|
6591
|
+
} }, hAsync("div", { key: '12c32ef07b6084b8528bf4800101afe0707adf05', class: "expansion-panel__content-inner", ref: (el) => (this.contentEl = el) }, hAsync("slot", { key: 'a18755879b94fc09948ed8128d73cfb3b0639885' }))))));
|
|
6397
6592
|
}
|
|
6398
6593
|
get el() { return getElement(this); }
|
|
6399
6594
|
static get style() { return xplorExpansionPanelCss; }
|
|
@@ -6449,7 +6644,7 @@ class XplorExpansionPanels {
|
|
|
6449
6644
|
this.value = this.multiple ? Array.from(this.openPanels) : Array.from(this.openPanels)[0] || '';
|
|
6450
6645
|
}
|
|
6451
6646
|
render() {
|
|
6452
|
-
return (hAsync(Host, { key: 'c55c8eef4f6f134c83f2f8dffcb434401596a095' }, hAsync("div", { key: '
|
|
6647
|
+
return (hAsync(Host, { key: 'c55c8eef4f6f134c83f2f8dffcb434401596a095' }, hAsync("div", { key: 'd29c006de658c679ce5cfa2a465b9e5756b8bba5', class: "expansion-panels", "aria-label": "Accordion" }, hAsync("slot", { key: '32560ca5fa3b041e6e1f5f8011df9fef8f50cc6f' }))));
|
|
6453
6648
|
}
|
|
6454
6649
|
static get style() { return xplorExpansionPanelsCss; }
|
|
6455
6650
|
static get cmpMeta() { return {
|
|
@@ -6608,11 +6803,11 @@ class XplorFileUpload {
|
|
|
6608
6803
|
return Math.round(bytes / Math.pow(k, i) * 100) / 100 + ' ' + sizes[i];
|
|
6609
6804
|
}
|
|
6610
6805
|
render() {
|
|
6611
|
-
return (hAsync(Host, { key: '9c3ad81ff741fe6324a5e8af562c740965024df1' }, hAsync("div", { key: 'b0b9bb545ce5a4e74c38bc6b49f7681f6e10dd89', class: "file-upload" }, hAsync("div", { key: '
|
|
6806
|
+
return (hAsync(Host, { key: '9c3ad81ff741fe6324a5e8af562c740965024df1' }, hAsync("div", { key: 'b0b9bb545ce5a4e74c38bc6b49f7681f6e10dd89', class: "file-upload" }, hAsync("div", { key: '791a95676b8e640b7dbd84b6ccf95627e5a10d7e', class: {
|
|
6612
6807
|
'file-upload__dropzone': true,
|
|
6613
6808
|
'file-upload__dropzone--dragging': this.isDragging,
|
|
6614
6809
|
'file-upload__dropzone--disabled': this.disabled,
|
|
6615
|
-
}, onDragOver: this.handleDragOver, onDragLeave: this.handleDragLeave, onDrop: this.handleDrop }, hAsync("input", { key: '
|
|
6810
|
+
}, onDragOver: this.handleDragOver, onDragLeave: this.handleDragLeave, onDrop: this.handleDrop, "aria-label": `Drop zone for file upload. ${this.accepts !== '*/*' ? `Accepts: ${this.accepts}.` : ''} Maximum size: ${this.formatFileSize(this.maxSize)}` }, hAsync("input", { key: 'c2b392d7fdd995819bceec3fa6122f457d78c2a4', ref: (el) => (this.fileInputEl = el), type: "file", accept: this.accepts, multiple: this.multiple, disabled: this.disabled, onChange: this.handleFileSelect, class: "file-upload__input" }), hAsync("div", { key: '33e9ca40b7db3df954ea7221104a5191807ff05a', class: "file-upload__content" }, hAsync("svg", { key: '84c718d713b36dd0b227a234c9b05f7a54bfeb02', class: "file-upload__icon", width: "48", height: "48", viewBox: "0 0 24 24", fill: "none" }, hAsync("path", { key: '21c50cf95b559252a2604352a6d14b0b051d5480', d: "M12 15V3M12 3L8 7M12 3L16 7", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), hAsync("path", { key: '51d16f53f6553d9df2348e10f163b174efb61913', d: "M2 17L2 19C2 20.1046 2.89543 21 4 21L20 21C21.1046 21 22 20.1046 22 19L22 17", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" })), hAsync("p", { key: '854efe384b8f181d5200d959db6633a6492c28f1', class: "file-upload__text" }, "Drag & drop files here or", ' ', hAsync("button", { key: 'e83a3a2f6e6caee30173579c6397edacd6e1c8a8', type: "button", class: "file-upload__button", onClick: this.handleButtonClick, disabled: this.disabled }, this.label)), hAsync("p", { key: 'a667e6665ce619f854c247626454efad11131568', class: "file-upload__hint" }, "Max size: ", this.formatFileSize(this.maxSize), this.accepts !== '*/*' && ` • Accepts: ${this.accepts}`))), this.error && (hAsync("div", { key: '872a3eceb9eebbd35a06c0d841cf486e13bd48ea', class: "file-upload__error", role: "alert" }, this.error)), this.files.length > 0 && (hAsync("div", { key: '15cc50322682fd1d555d313d089f18f92bfbb77d', class: "file-upload__files" }, this.files.map((file) => (hAsync("div", { key: file.id, class: "file-upload__file" }, file.dataUrl && (hAsync("img", { src: file.dataUrl, alt: file.name, class: "file-upload__preview" })), hAsync("div", { class: "file-upload__file-info" }, hAsync("span", { class: "file-upload__file-name", title: file.name }, file.name), hAsync("span", { class: "file-upload__file-size" }, this.formatFileSize(file.size))), hAsync("button", { type: "button", class: "file-upload__remove", onClick: () => this.handleRemoveFile(file), "aria-label": `Remove ${file.name}` }, "\u00D7")))))))));
|
|
6616
6811
|
}
|
|
6617
6812
|
static get style() { return xplorFileUploadCss; }
|
|
6618
6813
|
static get cmpMeta() { return {
|
|
@@ -6726,6 +6921,7 @@ class XplorInlineDatePicker {
|
|
|
6726
6921
|
* Whether to start week on Sunday (default: true)
|
|
6727
6922
|
*/
|
|
6728
6923
|
this.startWeekOnSunday = true;
|
|
6924
|
+
this.focusedDay = 0;
|
|
6729
6925
|
this.monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
6730
6926
|
this.dayNames = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
|
|
6731
6927
|
this.dayNamesStartMonday = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
|
|
@@ -6820,7 +7016,7 @@ class XplorInlineDatePicker {
|
|
|
6820
7016
|
'xplor-inline-date-picker__day--today': isToday,
|
|
6821
7017
|
'xplor-inline-date-picker__day--selected': isSelected,
|
|
6822
7018
|
'xplor-inline-date-picker__day--disabled': isDisabled,
|
|
6823
|
-
}, onClick: () => !isDisabled && this.selectDate(day) }, day));
|
|
7019
|
+
}, onClick: () => !isDisabled && this.selectDate(day), role: "gridcell", "aria-selected": isSelected ? 'true' : 'false', "aria-current": isToday ? 'date' : undefined, "aria-disabled": isDisabled ? 'true' : undefined, tabIndex: day === this.focusedDay ? 0 : -1, "data-day": day }, day));
|
|
6824
7020
|
}
|
|
6825
7021
|
return days;
|
|
6826
7022
|
};
|
|
@@ -6840,12 +7036,75 @@ class XplorInlineDatePicker {
|
|
|
6840
7036
|
this.currentYear = date.getFullYear();
|
|
6841
7037
|
this.currentMonth = date.getMonth();
|
|
6842
7038
|
this.viewDate = new Date(this.currentYear, this.currentMonth, 1);
|
|
7039
|
+
this.focusedDay = date.getDate();
|
|
7040
|
+
}
|
|
7041
|
+
handleKeyDown(event) {
|
|
7042
|
+
const daysInMonth = this.getDaysInMonth();
|
|
7043
|
+
switch (event.key) {
|
|
7044
|
+
case 'ArrowLeft':
|
|
7045
|
+
event.preventDefault();
|
|
7046
|
+
if (this.focusedDay > 1) {
|
|
7047
|
+
this.focusedDay--;
|
|
7048
|
+
}
|
|
7049
|
+
else {
|
|
7050
|
+
this.previousMonth();
|
|
7051
|
+
this.focusedDay = this.getDaysInMonth();
|
|
7052
|
+
}
|
|
7053
|
+
break;
|
|
7054
|
+
case 'ArrowRight':
|
|
7055
|
+
event.preventDefault();
|
|
7056
|
+
if (this.focusedDay < daysInMonth) {
|
|
7057
|
+
this.focusedDay++;
|
|
7058
|
+
}
|
|
7059
|
+
else {
|
|
7060
|
+
this.nextMonth();
|
|
7061
|
+
this.focusedDay = 1;
|
|
7062
|
+
}
|
|
7063
|
+
break;
|
|
7064
|
+
case 'ArrowUp':
|
|
7065
|
+
event.preventDefault();
|
|
7066
|
+
if (this.focusedDay > 7) {
|
|
7067
|
+
this.focusedDay -= 7;
|
|
7068
|
+
}
|
|
7069
|
+
else {
|
|
7070
|
+
this.previousMonth();
|
|
7071
|
+
this.focusedDay = this.getDaysInMonth() - (7 - this.focusedDay);
|
|
7072
|
+
}
|
|
7073
|
+
break;
|
|
7074
|
+
case 'ArrowDown':
|
|
7075
|
+
event.preventDefault();
|
|
7076
|
+
if (this.focusedDay + 7 <= daysInMonth) {
|
|
7077
|
+
this.focusedDay += 7;
|
|
7078
|
+
}
|
|
7079
|
+
else {
|
|
7080
|
+
const remainder = this.focusedDay + 7 - daysInMonth;
|
|
7081
|
+
this.nextMonth();
|
|
7082
|
+
this.focusedDay = remainder;
|
|
7083
|
+
}
|
|
7084
|
+
break;
|
|
7085
|
+
case 'Enter':
|
|
7086
|
+
case ' ':
|
|
7087
|
+
event.preventDefault();
|
|
7088
|
+
if (this.focusedDay >= 1 && this.focusedDay <= daysInMonth) {
|
|
7089
|
+
this.selectDate(this.focusedDay);
|
|
7090
|
+
}
|
|
7091
|
+
break;
|
|
7092
|
+
default:
|
|
7093
|
+
return;
|
|
7094
|
+
}
|
|
7095
|
+
// Focus the day cell after render
|
|
7096
|
+
requestAnimationFrame(() => {
|
|
7097
|
+
const dayEl = this.el.querySelector(`[data-day="${this.focusedDay}"]`);
|
|
7098
|
+
if (dayEl)
|
|
7099
|
+
dayEl.focus();
|
|
7100
|
+
});
|
|
6843
7101
|
}
|
|
6844
7102
|
render() {
|
|
6845
7103
|
const sidebarDate = this.getSidebarDate();
|
|
6846
7104
|
const dayHeaders = this.startWeekOnSunday ? this.dayNames : this.dayNamesStartMonday;
|
|
6847
|
-
return (hAsync(Host, { key: '
|
|
7105
|
+
return (hAsync(Host, { key: '80febb025a7aa5f0ca6f1e2370eb4258bee8d248' }, hAsync("div", { key: 'debf9345ef19400a3eaefeff63e41639e6fd0a81', class: "xplor-inline-date-picker", style: { '--picker-color': this.color } }, hAsync("div", { key: 'c3580aeec39d5305aa9b03e1198ed98ef7321a5d', class: "xplor-inline-date-picker__sidebar" }, hAsync("div", { key: 'f657dcf267477af5390386d61aaa01836b3e70a5', class: "xplor-inline-date-picker__sidebar-year" }, sidebarDate.year), hAsync("div", { key: '66283f6555f37ba7100be5af9d21ac3a7c99f3fa', class: "xplor-inline-date-picker__sidebar-day" }, sidebarDate.day, ","), hAsync("div", { key: 'f479af2fc60e60060a4b43f62b18d1164b762efd', class: "xplor-inline-date-picker__sidebar-date" }, sidebarDate.date)), hAsync("div", { key: '7c60d94c66b60653cd03c0b7e0585bef5cf4fdb0', class: "xplor-inline-date-picker__calendar" }, hAsync("div", { key: 'ac94d2e0c42be967c28af3fa2ccad0316f7220a6', class: "xplor-inline-date-picker__header" }, hAsync("button", { key: '02ab5127e6d25a6832277997177ae760f9e3e602', type: "button", class: "xplor-inline-date-picker__arrow", onClick: this.previousMonth, "aria-label": "Previous month" }, "\u2039"), hAsync("div", { key: '11ec1328d212eea25df1d30e5608ac744a91a74b', class: "xplor-inline-date-picker__title" }, this.monthNames[this.currentMonth], " ", this.currentYear), hAsync("button", { key: '40a7d69baca4784254fbde45a5b2488c6ee94c2c', type: "button", class: "xplor-inline-date-picker__arrow", onClick: this.nextMonth, "aria-label": "Next month" }, "\u203A")), hAsync("div", { key: 'ee2b65a6d095192b41c1f2f81dc326fee817ddda', class: "xplor-inline-date-picker__weekdays" }, dayHeaders.map((day) => (hAsync("div", { class: "xplor-inline-date-picker__weekday" }, day)))), hAsync("div", { key: 'a789c627f00ff649d40fe099b53fa35bc561a148', class: "xplor-inline-date-picker__days", role: "grid" }, this.renderCalendarDays())))));
|
|
6848
7106
|
}
|
|
7107
|
+
get el() { return getElement(this); }
|
|
6849
7108
|
static get style() { return xplorInlineDatePickerCss; }
|
|
6850
7109
|
static get cmpMeta() { return {
|
|
6851
7110
|
"$flags$": 2,
|
|
@@ -6859,9 +7118,10 @@ class XplorInlineDatePicker {
|
|
|
6859
7118
|
"startWeekOnSunday": [4, "start-week-on-sunday"],
|
|
6860
7119
|
"currentYear": [32],
|
|
6861
7120
|
"currentMonth": [32],
|
|
6862
|
-
"viewDate": [32]
|
|
7121
|
+
"viewDate": [32],
|
|
7122
|
+
"focusedDay": [32]
|
|
6863
7123
|
},
|
|
6864
|
-
"$listeners$":
|
|
7124
|
+
"$listeners$": [[0, "keydown", "handleKeyDown"]],
|
|
6865
7125
|
"$lazyBundleId$": "-",
|
|
6866
7126
|
"$attrsToReflect$": []
|
|
6867
7127
|
}; }
|
|
@@ -6922,11 +7182,13 @@ class XplorInlineSwitch {
|
|
|
6922
7182
|
|
|
6923
7183
|
const xplorInputFileCss = "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n@layer base {\n \n :root {\n --color-primary: #db3b03;\n --color-primary-50: rgba(255, 152, 0, 1);\n --color-secondary: rgb(0, 119, 107);\n --color-secondary-50: rgba(1, 163, 157, 1);\n --color-tertiary: rgb(128, 104, 186);\n --color-tertiary: rgb(223, 242, 241);\n --color-white: white;\n --color-emphasis: rgb(8, 8, 9);\n --color-supergiant: rgb(213, 66, 99);\n --color-orange: rgb(250, 200, 127);\n --color-buttons: #fbbc05;\n --color-typography: #ea4335;\n --background: 20 66% 99%;\n --foreground: 20 51% 4%;\n --muted: 20 25% 86%;\n --muted-foreground: 20 7% 25%;\n --popover: 20 66% 98%;\n --popover-foreground: 20 51% 3%;\n --card: 20 66% 98%;\n --card-foreground: 20 51% 3%;\n --border: 20 15% 94%;\n --input: 20 15% 94%;\n --primary: 20 48% 72%;\n --primary-foreground: 20 48% 12%;\n --secondary: 20 12% 92%;\n --secondary-foreground: 20 12% 32%;\n --accent: 20 12% 92%;\n --accent-foreground: 20 12% 32%;\n --destructive: 11 80% 22%;\n --destructive-foreground: 11 80% 82%;\n --ring: 20 48% 72%;\n --radius: 0.5rem;\n --chart-1: 12 76% 61%;\n --chart-2: 173 58% 39%;\n --chart-3: 197 37% 24%;\n --chart-4: 43 74% 66%;\n --chart-5: 27 87% 67%;\n }\n .dark {\n --background: 253 43% 3%;\n --foreground: 253 31% 98%;\n --muted: 253 7% 13%;\n --muted-foreground: 253 13% 63%;\n --popover: 253 43% 3%;\n --popover-foreground: 253 31% 98%;\n --card: 253 43% 4%;\n --card-foreground: 253 31% 99%;\n --border: 215 27.9% 16.9%;\n --input: 215 27.9% 16.9%;\n --primary: 253 91% 58%;\n --primary-foreground: 253 91% 98%;\n --secondary: 253 7% 9%;\n --secondary-foreground: 253 7% 69%;\n --accent: 253 13% 14%;\n --accent-foreground: 253 13% 74%;\n --destructive: 339.2 90.36% 51.18%;\n --destructive-foreground: 0 0% 100%;\n --ring: 253 91% 58%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n }\n}\n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply box-border bg-background text-foreground;\n }\n}\n@layer utilities {\n .min-h-screen {\n min-height: 100vh;\n \n min-height: 100dvh;\n }\n .h-screen {\n height: 100vh;\n \n height: 100dvh;\n }\n}\n@tailwind base;\n@tailwind components;\n@tailwind utilities;\n@layer components {\n .glass {\n border: none;\n backdrop-filter: blur(var(--glass-blur, 40px));\n background-color: transparent;\n background-image: linear-gradient(135deg, rgb(255, 255, 255, var(--glass-opacity, 30%)), transparent), linear-gradient(var(--glass-reflex-degree, 100deg), rgb(255, 255, 255, var(--glass-reflex-opacity, 10%)) 25%, transparent 0);\n box-shadow: 0 0 0 1px rgb(255, 255, 255, var(--glass-border-opacity, 10%)) inset, 0 0 0 2px rgba(0, 0, 0, 0.05);\n text-shadow: 0 1px rgb(0, 0, 0, var(--glass-text-shadow-opacity, 5%));\n }\n}\n.tox.tox-tinymce.sc-xplor-input-file {\n width: 50% !important;\n height: 400px !important;\n display: inline-flex;\n}\n\n\n@media only screen and (min-width: 600px) {\n .tox.tox-tinymce.sc-xplor-input-file {\n width: 600px !important;\n }\n}\nh1.sc-xplor-input-file {\n color: var(--color-primary);\n \n font-family: Inter;\n font-size: 48px;\n font-style: normal;\n font-weight: 400;\n line-height: 56px; \n}\n\nh2.sc-xplor-input-file {\n color: var(--grey-1100252525, #252525);\n \n font-family: Inter;\n font-size: 32px;\n font-style: normal;\n font-weight: 600;\n line-height: 38px; \n letter-spacing: 0.25px;\n}\n\nh3.sc-xplor-input-file {\n color: var(--grey-1100252525, #252525);\n \n font-family: Inter;\n font-size: 24px;\n font-style: normal;\n font-weight: 400;\n line-height: 32px; \n}\n\n.overline.sc-xplor-input-file {\n color: var(--grey-1100252525, #252525);\n \n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 16px; \n letter-spacing: 3.2px;\n text-transform: uppercase;\n}\n\nol.sc-xplor-input-file, ul.sc-xplor-input-file {\n list-style: none;\n margin: 1rem;\n padding: 0;\n}\nol.sc-xplor-input-file li.sc-xplor-input-file, ul.sc-xplor-input-file li.sc-xplor-input-file {\n margin: 1rem;\n padding: 0;\n}\nol.mdc-list.sc-xplor-input-file, ul.mdc-list.sc-xplor-input-file {\n list-style-type: none;\n list-style: none;\n}\nol.mdc-list.sc-xplor-input-file li.mdc-list-item.sc-xplor-input-file, ul.mdc-list.sc-xplor-input-file li.mdc-list-item.sc-xplor-input-file {\n list-style-type: none;\n list-style: none !important;\n}\n\n.orange-label.sc-xplor-input-file {\n color: var(--Orange-900-Primary, #db3b03);\n \n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; \n letter-spacing: 0.4px;\n margin: 0px 0 -9px 16px;\n z-index: 1 !important;\n position: relative;\n width: fit-content;\n}\n.orange-label.grey-bg.sc-xplor-input-file {\n background-color: #fefcfb;\n}\n\n#spinnerLoader.sc-xplor-input-file {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: #fff;\n padding: 20px;\n border-radius: 5px;\n box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 100;\n pointer-events: none;\n}\n\n#textfield-Title-label.sc-xplor-input-file {\n background-color: white;\n}\n\n.mdc-ripple-upgraded.sc-xplor-input-file .mdc-text-field--outlined.sc-xplor-input-file .mdc-notched-outline__notch.sc-xplor-input-file {\n border: 0px solid transparent !important;\n border-bottom: 1px solid #db3b03 !important;\n padding: 0;\n height: 0;\n}\n\n.mdc-text-field--focused.sc-xplor-input-file .mdc-notched-outline__notch.sc-xplor-input-file {\n border: 0px solid transparent !important;\n border-bottom: 2px solid #db3b03 !important;\n}\n\n.mdc-text-field--outlined.sc-xplor-input-file .mdc-notched-outline.sc-xplor-input-file .mdc-notched-outline__notch.sc-xplor-input-file {\n max-width: calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2);\n border-top: transparent;\n}\n\n.generate-btn.sc-xplor-input-file {\n display: flex;\n height: 48px;\n padding: 12px 24px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n border-radius: 16px;\n}\n.generate-btn.link.sc-xplor-input-file:hover {\n background-color: var(--Cyan-700-Secondary, #e27046);\n color: var(--Cyan-700-Secondary-Text, #fff);\n}\n\n.bg-green.sc-xplor-input-file {\n background: var(--Cyan-700-Secondary, #00776b);\n}\n\n.sc-xplor-input-file-h {\n display: block;\n}\n\n.xplor-input-file.sc-xplor-input-file {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n}\n.xplor-input-file__label.sc-xplor-input-file {\n font-size: 0.875rem;\n color: rgba(0, 0, 0, 0.6);\n margin-bottom: 0.25rem;\n}\n.xplor-input-file__field.sc-xplor-input-file {\n position: relative;\n display: flex;\n align-items: center;\n padding: 0.875rem 1rem;\n border: 1px solid rgba(0, 0, 0, 0.23);\n border-radius: 1rem;\n background-color: white;\n cursor: pointer;\n transition: border-color 0.2s ease;\n gap: 0.75rem;\n}\n.xplor-input-file__field.sc-xplor-input-file:hover:not(.xplor-input-file--disabled .xplor-input-file__field) {\n border-color: rgba(0, 0, 0, 0.6);\n}\n.xplor-input-file__field.sc-xplor-input-file:focus-within {\n border-color: #008480;\n border-width: 2px;\n padding: calc(0.875rem - 1px) calc(1rem - 1px);\n}\n.xplor-input-file--disabled.sc-xplor-input-file .xplor-input-file__field.sc-xplor-input-file {\n background-color: rgba(0, 0, 0, 0.04);\n cursor: not-allowed;\n}\n.xplor-input-file--disabled.sc-xplor-input-file .xplor-input-file__placeholder.sc-xplor-input-file, .xplor-input-file--disabled.sc-xplor-input-file .xplor-input-file__icon.sc-xplor-input-file {\n color: rgba(0, 0, 0, 0.38);\n}\n.xplor-input-file__icon.sc-xplor-input-file {\n font-size: 1.25rem;\n color: rgba(0, 0, 0, 0.54);\n flex-shrink: 0;\n}\n.xplor-input-file__content.sc-xplor-input-file {\n flex: 1;\n min-width: 0;\n}\n.xplor-input-file__placeholder.sc-xplor-input-file {\n color: rgba(0, 0, 0, 0.38);\n}\n.xplor-input-file__chips.sc-xplor-input-file {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n align-items: center;\n}\n.xplor-input-file__chip.sc-xplor-input-file {\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n padding: 0.25rem 0.75rem;\n background-color: #673AB7;\n color: white;\n border-radius: 1rem;\n font-size: 0.875rem;\n max-width: 100%;\n}\n.xplor-input-file__chip-text.sc-xplor-input-file {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.xplor-input-file__chip-size.sc-xplor-input-file {\n font-size: 0.75rem;\n opacity: 0.8;\n white-space: nowrap;\n}\n.xplor-input-file__additional.sc-xplor-input-file {\n font-size: 0.875rem;\n color: rgba(0, 0, 0, 0.6);\n margin-left: 0.5rem;\n}\n.xplor-input-file__clear.sc-xplor-input-file {\n position: relative;\n width: 1.5rem;\n height: 1.5rem;\n border: none;\n background: transparent;\n color: rgba(0, 0, 0, 0.54);\n cursor: pointer;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background-color 0.2s ease;\n flex-shrink: 0;\n}\n.xplor-input-file__clear.sc-xplor-input-file:hover {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.xplor-input-file__clear.sc-xplor-input-file:active {\n background-color: rgba(0, 0, 0, 0.08);\n}\n.xplor-input-file__input.sc-xplor-input-file {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n cursor: pointer;\n}\n.xplor-input-file__input.sc-xplor-input-file:disabled {\n cursor: not-allowed;\n}\n.xplor-input-file__counter.sc-xplor-input-file {\n font-size: 0.75rem;\n color: rgba(0, 0, 0, 0.6);\n padding: 0 1rem;\n}";
|
|
6924
7184
|
|
|
7185
|
+
let inputFileIdCounter = 0;
|
|
6925
7186
|
class XplorInputFile {
|
|
6926
7187
|
constructor(hostRef) {
|
|
6927
7188
|
registerInstance(this, hostRef);
|
|
6928
7189
|
this.attach = createEvent(this, "attach");
|
|
6929
7190
|
this.xplorClear = createEvent(this, "xplorClear");
|
|
7191
|
+
this.inputId = `xplor-input-file-${++inputFileIdCounter}`;
|
|
6930
7192
|
/**
|
|
6931
7193
|
* Input label
|
|
6932
7194
|
*/
|
|
@@ -7001,7 +7263,7 @@ class XplorInputFile {
|
|
|
7001
7263
|
};
|
|
7002
7264
|
const visibleFiles = this.selectedFiles.slice(0, this.maxChips);
|
|
7003
7265
|
const additionalCount = this.selectedFiles.length - this.maxChips;
|
|
7004
|
-
return (hAsync(Host, { key: '
|
|
7266
|
+
return (hAsync(Host, { key: 'f4cdb8be9b2a73258a308e31c07f9a8077ae39c8' }, hAsync("div", { key: '3a43a67ebb7354d1965b808d5252c70939fa917e', class: containerClasses }, this.label && (hAsync("label", { key: '03a177574387efc0a1a7aa3ea05c1425d18a0db9', class: "xplor-input-file__label", htmlFor: this.inputId }, this.label)), hAsync("div", { key: 'ca9c5943b0471244343e507955352af0b72eab76', class: "xplor-input-file__field" }, hAsync("span", { key: '4570d02fbed6e939b153a69ca444cf4c2be7230f', class: "xplor-input-file__icon" }, this.prependInnerIcon), hAsync("div", { key: '408231a07d2ccbdca8e57a7ae36de017f01940bc', class: "xplor-input-file__content" }, this.selectedFiles.length === 0 ? (hAsync("span", { class: "xplor-input-file__placeholder" }, this.placeholder)) : (hAsync("div", { class: "xplor-input-file__chips" }, visibleFiles.map((file) => (hAsync("div", { class: "xplor-input-file__chip", key: file.name }, hAsync("span", { class: "xplor-input-file__chip-text" }, file.name), this.showSize && file.size && (hAsync("span", { class: "xplor-input-file__chip-size" }, "(", this.formatFileSize(file.size), ")"))))), additionalCount > 0 && (hAsync("span", { class: "xplor-input-file__additional" }, "+", additionalCount, " additional file", additionalCount > 1 ? 's' : ''))))), this.selectedFiles.length > 0 && !this.disabled && (hAsync("button", { key: 'da690e16f90d31d9def263a69d4ceef18e185aab', type: "button", class: "xplor-input-file__clear", onClick: this.handleClear, "aria-label": "Clear" }, "\u2715")), hAsync("input", { key: 'f72a3b3295ce47aa4dcad63751f12256fcc20c01', id: this.inputId, ref: (el) => (this.fileInputRef = el), type: "file", class: "xplor-input-file__input", multiple: this.multiple, accept: this.accept, disabled: this.disabled, onChange: this.handleFileChange, "aria-label": this.label || 'Choose file' })), this.counter && this.selectedFiles.length > 0 && (hAsync("div", { key: '495dd2d0314549a384085706df7f2ab722169edf', class: "xplor-input-file__counter" }, this.selectedFiles.length, " file", this.selectedFiles.length > 1 ? 's' : '', " selected")))));
|
|
7005
7267
|
}
|
|
7006
7268
|
static get style() { return xplorInputFileCss; }
|
|
7007
7269
|
static get cmpMeta() { return {
|
|
@@ -7028,10 +7290,12 @@ class XplorInputFile {
|
|
|
7028
7290
|
|
|
7029
7291
|
const xplorInputSearchCss = "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n@layer base {\n \n :root {\n --color-primary: #db3b03;\n --color-primary-50: rgba(255, 152, 0, 1);\n --color-secondary: rgb(0, 119, 107);\n --color-secondary-50: rgba(1, 163, 157, 1);\n --color-tertiary: rgb(128, 104, 186);\n --color-tertiary: rgb(223, 242, 241);\n --color-white: white;\n --color-emphasis: rgb(8, 8, 9);\n --color-supergiant: rgb(213, 66, 99);\n --color-orange: rgb(250, 200, 127);\n --color-buttons: #fbbc05;\n --color-typography: #ea4335;\n --background: 20 66% 99%;\n --foreground: 20 51% 4%;\n --muted: 20 25% 86%;\n --muted-foreground: 20 7% 25%;\n --popover: 20 66% 98%;\n --popover-foreground: 20 51% 3%;\n --card: 20 66% 98%;\n --card-foreground: 20 51% 3%;\n --border: 20 15% 94%;\n --input: 20 15% 94%;\n --primary: 20 48% 72%;\n --primary-foreground: 20 48% 12%;\n --secondary: 20 12% 92%;\n --secondary-foreground: 20 12% 32%;\n --accent: 20 12% 92%;\n --accent-foreground: 20 12% 32%;\n --destructive: 11 80% 22%;\n --destructive-foreground: 11 80% 82%;\n --ring: 20 48% 72%;\n --radius: 0.5rem;\n --chart-1: 12 76% 61%;\n --chart-2: 173 58% 39%;\n --chart-3: 197 37% 24%;\n --chart-4: 43 74% 66%;\n --chart-5: 27 87% 67%;\n }\n .dark {\n --background: 253 43% 3%;\n --foreground: 253 31% 98%;\n --muted: 253 7% 13%;\n --muted-foreground: 253 13% 63%;\n --popover: 253 43% 3%;\n --popover-foreground: 253 31% 98%;\n --card: 253 43% 4%;\n --card-foreground: 253 31% 99%;\n --border: 215 27.9% 16.9%;\n --input: 215 27.9% 16.9%;\n --primary: 253 91% 58%;\n --primary-foreground: 253 91% 98%;\n --secondary: 253 7% 9%;\n --secondary-foreground: 253 7% 69%;\n --accent: 253 13% 14%;\n --accent-foreground: 253 13% 74%;\n --destructive: 339.2 90.36% 51.18%;\n --destructive-foreground: 0 0% 100%;\n --ring: 253 91% 58%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n }\n}\n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply box-border bg-background text-foreground;\n }\n}\n@layer utilities {\n .min-h-screen {\n min-height: 100vh;\n \n min-height: 100dvh;\n }\n .h-screen {\n height: 100vh;\n \n height: 100dvh;\n }\n}\n@tailwind base;\n@tailwind components;\n@tailwind utilities;\n@layer components {\n .glass {\n border: none;\n backdrop-filter: blur(var(--glass-blur, 40px));\n background-color: transparent;\n background-image: linear-gradient(135deg, rgb(255, 255, 255, var(--glass-opacity, 30%)), transparent), linear-gradient(var(--glass-reflex-degree, 100deg), rgb(255, 255, 255, var(--glass-reflex-opacity, 10%)) 25%, transparent 0);\n box-shadow: 0 0 0 1px rgb(255, 255, 255, var(--glass-border-opacity, 10%)) inset, 0 0 0 2px rgba(0, 0, 0, 0.05);\n text-shadow: 0 1px rgb(0, 0, 0, var(--glass-text-shadow-opacity, 5%));\n }\n}\n.tox.tox-tinymce.sc-xplor-input-search {\n width: 50% !important;\n height: 400px !important;\n display: inline-flex;\n}\n\n\n@media only screen and (min-width: 600px) {\n .tox.tox-tinymce.sc-xplor-input-search {\n width: 600px !important;\n }\n}\nh1.sc-xplor-input-search {\n color: var(--color-primary);\n \n font-family: Inter;\n font-size: 48px;\n font-style: normal;\n font-weight: 400;\n line-height: 56px; \n}\n\nh2.sc-xplor-input-search {\n color: var(--grey-1100252525, #252525);\n \n font-family: Inter;\n font-size: 32px;\n font-style: normal;\n font-weight: 600;\n line-height: 38px; \n letter-spacing: 0.25px;\n}\n\nh3.sc-xplor-input-search {\n color: var(--grey-1100252525, #252525);\n \n font-family: Inter;\n font-size: 24px;\n font-style: normal;\n font-weight: 400;\n line-height: 32px; \n}\n\n.overline.sc-xplor-input-search {\n color: var(--grey-1100252525, #252525);\n \n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 16px; \n letter-spacing: 3.2px;\n text-transform: uppercase;\n}\n\nol.sc-xplor-input-search, ul.sc-xplor-input-search {\n list-style: none;\n margin: 1rem;\n padding: 0;\n}\nol.sc-xplor-input-search li.sc-xplor-input-search, ul.sc-xplor-input-search li.sc-xplor-input-search {\n margin: 1rem;\n padding: 0;\n}\nol.mdc-list.sc-xplor-input-search, ul.mdc-list.sc-xplor-input-search {\n list-style-type: none;\n list-style: none;\n}\nol.mdc-list.sc-xplor-input-search li.mdc-list-item.sc-xplor-input-search, ul.mdc-list.sc-xplor-input-search li.mdc-list-item.sc-xplor-input-search {\n list-style-type: none;\n list-style: none !important;\n}\n\n.orange-label.sc-xplor-input-search {\n color: var(--Orange-900-Primary, #db3b03);\n \n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; \n letter-spacing: 0.4px;\n margin: 0px 0 -9px 16px;\n z-index: 1 !important;\n position: relative;\n width: fit-content;\n}\n.orange-label.grey-bg.sc-xplor-input-search {\n background-color: #fefcfb;\n}\n\n#spinnerLoader.sc-xplor-input-search {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: #fff;\n padding: 20px;\n border-radius: 5px;\n box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 100;\n pointer-events: none;\n}\n\n#textfield-Title-label.sc-xplor-input-search {\n background-color: white;\n}\n\n.mdc-ripple-upgraded.sc-xplor-input-search .mdc-text-field--outlined.sc-xplor-input-search .mdc-notched-outline__notch.sc-xplor-input-search {\n border: 0px solid transparent !important;\n border-bottom: 1px solid #db3b03 !important;\n padding: 0;\n height: 0;\n}\n\n.mdc-text-field--focused.sc-xplor-input-search .mdc-notched-outline__notch.sc-xplor-input-search {\n border: 0px solid transparent !important;\n border-bottom: 2px solid #db3b03 !important;\n}\n\n.mdc-text-field--outlined.sc-xplor-input-search .mdc-notched-outline.sc-xplor-input-search .mdc-notched-outline__notch.sc-xplor-input-search {\n max-width: calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2);\n border-top: transparent;\n}\n\n.generate-btn.sc-xplor-input-search {\n display: flex;\n height: 48px;\n padding: 12px 24px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n border-radius: 16px;\n}\n.generate-btn.link.sc-xplor-input-search:hover {\n background-color: var(--Cyan-700-Secondary, #e27046);\n color: var(--Cyan-700-Secondary-Text, #fff);\n}\n\n.bg-green.sc-xplor-input-search {\n background: var(--Cyan-700-Secondary, #00776b);\n}\n\n.sc-xplor-input-search-h {\n display: block;\n}\n\n.xplor-input-search.sc-xplor-input-search {\n display: flex;\n flex-direction: column;\n}\n.xplor-input-search__field.sc-xplor-input-search {\n position: relative;\n display: flex;\n align-items: center;\n border: 1px solid rgba(0, 0, 0, 0.23);\n border-radius: 1rem;\n background-color: white;\n transition: border-color 0.2s ease;\n padding-right: 0.375rem;\n}\n.xplor-input-search__field.sc-xplor-input-search:hover:not(.xplor-input-search--disabled .xplor-input-search__field) {\n border-color: rgba(0, 0, 0, 0.6);\n}\n.xplor-input-search--focused.sc-xplor-input-search .xplor-input-search__field.sc-xplor-input-search {\n border-color: #008480;\n border-width: 2px;\n padding-right: calc(0.375rem - 1px);\n}\n.xplor-input-search--focused.sc-xplor-input-search .xplor-input-search__input.sc-xplor-input-search {\n padding-left: calc(1rem - 1px);\n}\n.xplor-input-search__input.sc-xplor-input-search {\n flex: 1;\n padding: 0.875rem 1rem;\n font-size: 1rem;\n font-family: inherit;\n border: none;\n outline: none;\n background: transparent;\n min-width: 0;\n}\n.xplor-input-search__input.sc-xplor-input-search::placeholder {\n color: rgba(0, 0, 0, 0.38);\n}\n.xplor-input-search__input.sc-xplor-input-search:disabled {\n color: rgba(0, 0, 0, 0.38);\n cursor: not-allowed;\n}\n.xplor-input-search__button.sc-xplor-input-search {\n min-height: 0;\n min-width: 0;\n height: 2.5rem;\n width: 2.5rem;\n padding: 0;\n border: none;\n border-radius: 4px;\n background-color: #008480;\n color: white;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background-color 0.2s ease;\n flex-shrink: 0;\n}\n.xplor-input-search__button.sc-xplor-input-search:hover:not(:disabled) {\n background-color: #006D6A;\n}\n.xplor-input-search__button.sc-xplor-input-search:active:not(:disabled) {\n background-color: #005755;\n}\n.xplor-input-search__button.sc-xplor-input-search:disabled {\n opacity: 0.38;\n cursor: not-allowed;\n}\n.xplor-input-search__icon.sc-xplor-input-search {\n width: 1.25rem;\n height: 1.25rem;\n fill: currentColor;\n}\n.xplor-input-search--compact.sc-xplor-input-search .xplor-input-search__input.sc-xplor-input-search {\n padding: 0.625rem 1rem;\n}\n.xplor-input-search--compact.sc-xplor-input-search .xplor-input-search__button.sc-xplor-input-search {\n height: 2rem;\n width: 2rem;\n}\n.xplor-input-search--compact.sc-xplor-input-search .xplor-input-search__icon.sc-xplor-input-search {\n width: 1rem;\n height: 1rem;\n}\n.xplor-input-search--comfortable.sc-xplor-input-search .xplor-input-search__input.sc-xplor-input-search {\n padding: 1rem 1rem;\n}\n.xplor-input-search--comfortable.sc-xplor-input-search .xplor-input-search__button.sc-xplor-input-search {\n height: 2.75rem;\n width: 2.75rem;\n}\n.xplor-input-search--comfortable.sc-xplor-input-search .xplor-input-search__icon.sc-xplor-input-search {\n width: 1.375rem;\n height: 1.375rem;\n}\n.xplor-input-search--disabled.sc-xplor-input-search .xplor-input-search__field.sc-xplor-input-search {\n background-color: rgba(0, 0, 0, 0.04);\n}";
|
|
7030
7292
|
|
|
7293
|
+
let inputSearchIdCounter = 0;
|
|
7031
7294
|
class XplorInputSearch {
|
|
7032
7295
|
constructor(hostRef) {
|
|
7033
7296
|
registerInstance(this, hostRef);
|
|
7034
7297
|
this.search = createEvent(this, "search");
|
|
7298
|
+
this.inputId = `xplor-input-search-${++inputSearchIdCounter}`;
|
|
7035
7299
|
/**
|
|
7036
7300
|
* Search value
|
|
7037
7301
|
*/
|
|
@@ -7077,9 +7341,9 @@ class XplorInputSearch {
|
|
|
7077
7341
|
'xplor-input-search--focused': this.isFocused,
|
|
7078
7342
|
'xplor-input-search--disabled': this.disabled,
|
|
7079
7343
|
};
|
|
7080
|
-
return (hAsync(Host, { key: '
|
|
7344
|
+
return (hAsync(Host, { key: '943cf40e14806c8d2645e8e08c7868f1bbe1d585' }, hAsync("div", { key: 'a073a7da5206a8f97ad4576628bb5688572709ed', class: containerClasses }, hAsync("div", { key: '52d484023b8d5275d22a2b890fc73c0b758a7899', class: "xplor-input-search__field" }, hAsync("input", { key: 'b520a1127ec5aefe99a8ea92d329823e0380ac63', id: this.inputId, type: "search", class: "xplor-input-search__input", value: this.value, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: () => (this.isFocused = true), onBlur: () => (this.isFocused = false), style: {
|
|
7081
7345
|
backgroundColor: this.bgColor,
|
|
7082
|
-
} }), hAsync("slot", { key: '
|
|
7346
|
+
}, role: "searchbox", "aria-label": "Search" }), hAsync("slot", { key: '2e352e10096c529d275071cffa6ff8062faf27a3', name: "append-inner" }, hAsync("button", { key: 'ce5993a34434803f80ff05fc07993ea7865f7120', type: "button", class: "xplor-input-search__button", onClick: this.handleSearch, disabled: this.disabled, "data-testid": "input-search-button", "aria-label": "Search" }, hAsync("svg", { key: '518d76a88181e3286d14102ceced2e1dae0b6a8c', viewBox: "0 0 24 24", class: "xplor-input-search__icon" }, hAsync("path", { key: 'f7253605b82900a022475c107b4719612f614564', d: "M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z" }))))))));
|
|
7083
7347
|
}
|
|
7084
7348
|
static get style() { return xplorInputSearchCss; }
|
|
7085
7349
|
static get cmpMeta() { return {
|
|
@@ -7161,6 +7425,7 @@ class XplorInputSelect {
|
|
|
7161
7425
|
this.isOpen = false;
|
|
7162
7426
|
this.isFocused = false;
|
|
7163
7427
|
this.menuPosition = null;
|
|
7428
|
+
this.highlightedIndex = -1;
|
|
7164
7429
|
this.updateMenuPosition = () => {
|
|
7165
7430
|
if (this.fieldRef) {
|
|
7166
7431
|
const rect = this.fieldRef.getBoundingClientRect();
|
|
@@ -7180,8 +7445,12 @@ class XplorInputSelect {
|
|
|
7180
7445
|
if (!this.disabled && !this.readonly) {
|
|
7181
7446
|
if (!this.isOpen) {
|
|
7182
7447
|
this.updateMenuPosition();
|
|
7448
|
+
this.highlightedIndex = -1;
|
|
7183
7449
|
}
|
|
7184
7450
|
this.isOpen = !this.isOpen;
|
|
7451
|
+
if (!this.isOpen) {
|
|
7452
|
+
this.highlightedIndex = -1;
|
|
7453
|
+
}
|
|
7185
7454
|
}
|
|
7186
7455
|
};
|
|
7187
7456
|
this.handleOptionClick = (option) => {
|
|
@@ -7226,6 +7495,82 @@ class XplorInputSelect {
|
|
|
7226
7495
|
disconnectedCallback() {
|
|
7227
7496
|
document.removeEventListener('click', this.handleOutsideClick);
|
|
7228
7497
|
}
|
|
7498
|
+
handleKeyDown(event) {
|
|
7499
|
+
var _a;
|
|
7500
|
+
const totalOptions = this.options.length;
|
|
7501
|
+
if (totalOptions === 0)
|
|
7502
|
+
return;
|
|
7503
|
+
switch (event.key) {
|
|
7504
|
+
case 'ArrowDown':
|
|
7505
|
+
event.preventDefault();
|
|
7506
|
+
if (!this.isOpen) {
|
|
7507
|
+
this.updateMenuPosition();
|
|
7508
|
+
this.isOpen = true;
|
|
7509
|
+
this.highlightedIndex = 0;
|
|
7510
|
+
}
|
|
7511
|
+
else {
|
|
7512
|
+
this.highlightedIndex = this.highlightedIndex < totalOptions - 1 ? this.highlightedIndex + 1 : 0;
|
|
7513
|
+
}
|
|
7514
|
+
this.scrollToHighlightedOption();
|
|
7515
|
+
break;
|
|
7516
|
+
case 'ArrowUp':
|
|
7517
|
+
event.preventDefault();
|
|
7518
|
+
if (!this.isOpen) {
|
|
7519
|
+
this.updateMenuPosition();
|
|
7520
|
+
this.isOpen = true;
|
|
7521
|
+
this.highlightedIndex = totalOptions - 1;
|
|
7522
|
+
}
|
|
7523
|
+
else {
|
|
7524
|
+
this.highlightedIndex = this.highlightedIndex > 0 ? this.highlightedIndex - 1 : totalOptions - 1;
|
|
7525
|
+
}
|
|
7526
|
+
this.scrollToHighlightedOption();
|
|
7527
|
+
break;
|
|
7528
|
+
case 'Enter':
|
|
7529
|
+
case ' ':
|
|
7530
|
+
event.preventDefault();
|
|
7531
|
+
if (this.isOpen && this.highlightedIndex >= 0 && this.highlightedIndex < totalOptions) {
|
|
7532
|
+
this.handleOptionClick(this.options[this.highlightedIndex]);
|
|
7533
|
+
}
|
|
7534
|
+
else if (!this.isOpen) {
|
|
7535
|
+
this.toggleDropdown();
|
|
7536
|
+
}
|
|
7537
|
+
break;
|
|
7538
|
+
case 'Escape':
|
|
7539
|
+
event.preventDefault();
|
|
7540
|
+
this.isOpen = false;
|
|
7541
|
+
this.highlightedIndex = -1;
|
|
7542
|
+
(_a = this.fieldRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
7543
|
+
break;
|
|
7544
|
+
case 'Home':
|
|
7545
|
+
if (this.isOpen) {
|
|
7546
|
+
event.preventDefault();
|
|
7547
|
+
this.highlightedIndex = 0;
|
|
7548
|
+
this.scrollToHighlightedOption();
|
|
7549
|
+
}
|
|
7550
|
+
break;
|
|
7551
|
+
case 'End':
|
|
7552
|
+
if (this.isOpen) {
|
|
7553
|
+
event.preventDefault();
|
|
7554
|
+
this.highlightedIndex = totalOptions - 1;
|
|
7555
|
+
this.scrollToHighlightedOption();
|
|
7556
|
+
}
|
|
7557
|
+
break;
|
|
7558
|
+
case 'Tab':
|
|
7559
|
+
this.isOpen = false;
|
|
7560
|
+
this.highlightedIndex = -1;
|
|
7561
|
+
break;
|
|
7562
|
+
}
|
|
7563
|
+
}
|
|
7564
|
+
scrollToHighlightedOption() {
|
|
7565
|
+
requestAnimationFrame(() => {
|
|
7566
|
+
if (this.selectRef && this.highlightedIndex >= 0) {
|
|
7567
|
+
const highlightedEl = this.selectRef.querySelector(`[data-option-index="${this.highlightedIndex}"]`);
|
|
7568
|
+
if (highlightedEl) {
|
|
7569
|
+
highlightedEl.scrollIntoView({ block: 'nearest' });
|
|
7570
|
+
}
|
|
7571
|
+
}
|
|
7572
|
+
});
|
|
7573
|
+
}
|
|
7229
7574
|
render() {
|
|
7230
7575
|
const containerClasses = {
|
|
7231
7576
|
'xplor-input-select': true,
|
|
@@ -7235,21 +7580,39 @@ class XplorInputSelect {
|
|
|
7235
7580
|
'xplor-input-select--error': !!this.error,
|
|
7236
7581
|
};
|
|
7237
7582
|
const showDetails = this.hideDetails === false || (this.hideDetails === 'auto' && (this.error || this.helperText));
|
|
7238
|
-
|
|
7583
|
+
const listboxId = 'input-select-listbox';
|
|
7584
|
+
const labelId = 'input-select-label';
|
|
7585
|
+
const errorId = 'input-select-error';
|
|
7586
|
+
const helperId = 'input-select-helper';
|
|
7587
|
+
const activeDescendantId = this.highlightedIndex >= 0 ? `input-select-option-${this.highlightedIndex}` : undefined;
|
|
7588
|
+
// Build aria-describedby from error/helper text
|
|
7589
|
+
const describedByParts = [];
|
|
7590
|
+
if (this.error)
|
|
7591
|
+
describedByParts.push(errorId);
|
|
7592
|
+
if (!this.error && this.helperText)
|
|
7593
|
+
describedByParts.push(helperId);
|
|
7594
|
+
const ariaDescribedBy = describedByParts.length > 0 ? describedByParts.join(' ') : undefined;
|
|
7595
|
+
return (hAsync(Host, { key: '4c7693dfd1a0a4ac74ed4f4ff5024d4375acd3a8' }, hAsync("div", { key: 'bcd180aa7fbccfae34ce29b1c9bbe6329bf87476', class: containerClasses, ref: (el) => (this.selectRef = el) }, this.label && (hAsync("label", { key: '85c20aecaf25a7fc260c79a15e4d4bb30804213d', class: "xplor-input-select__label", id: labelId }, this.label, this.required && hAsync("span", { key: '82c8dbcb5d7e77c42e0a6e54b69cbb514563ac2b', class: "xplor-input-select__required" }, "*"))), hAsync("div", { key: 'b7cfc5c895fc57f3eac6e66aa5fd431a89dd07bb', class: "xplor-input-select__field", onClick: this.toggleDropdown, ref: (el) => (this.fieldRef = el), role: "combobox", tabindex: this.disabled ? -1 : 0, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": this.isOpen ? listboxId : undefined, "aria-activedescendant": activeDescendantId, "aria-labelledby": this.label ? labelId : undefined, "aria-label": !this.label ? (this.ariaLabel || this.placeholder) : undefined, "aria-describedby": ariaDescribedBy, "aria-required": this.required ? 'true' : undefined, "aria-disabled": this.disabled ? 'true' : undefined }, hAsync("div", { key: '1125703089a34186cbbfaba5e51d6ea50c5f4239', class: "xplor-input-select__value" }, this.getDisplayValue()), hAsync("span", { key: 'e33ab0424fddc90d1f48ef2b285e70fd3eeaff8a', class: "xplor-input-select__arrow", "aria-hidden": "true" }, this.isOpen ? '▲' : '▼')), this.isOpen && this.menuPosition && (hAsync("div", { key: 'b1fb47a1d217c4156250bded2c9e9ae9bdebf603', class: "xplor-input-select__menu", role: "listbox", id: listboxId, "aria-label": this.label || this.ariaLabel || 'Options', "aria-multiselectable": this.multiple ? 'true' : undefined, style: {
|
|
7239
7596
|
position: 'fixed',
|
|
7240
7597
|
top: `${this.menuPosition.top}px`,
|
|
7241
7598
|
left: `${this.menuPosition.left}px`,
|
|
7242
7599
|
width: `${this.menuPosition.width}px`,
|
|
7243
|
-
} }, this.options.length === 0 ? (hAsync("div", { class: "xplor-input-select__empty" }, "No options available")) : (this.options.map((option) =>
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7600
|
+
} }, this.options.length === 0 ? (hAsync("div", { class: "xplor-input-select__empty", role: "option", "aria-disabled": "true" }, "No options available")) : (this.options.map((option, index) => {
|
|
7601
|
+
const selected = this.isSelected(option);
|
|
7602
|
+
return (hAsync("div", { key: option.value, id: `input-select-option-${index}`, "data-option-index": index, role: "option", "aria-selected": selected ? 'true' : 'false', class: {
|
|
7603
|
+
'xplor-input-select__option': true,
|
|
7604
|
+
'xplor-input-select__option--selected': selected,
|
|
7605
|
+
'xplor-input-select__option--highlighted': index === this.highlightedIndex,
|
|
7606
|
+
}, onClick: () => this.handleOptionClick(option) }, this.multiple && (hAsync("input", { type: "checkbox", class: "xplor-input-select__checkbox", checked: selected, readOnly: true, tabindex: -1, "aria-checked": selected ? 'true' : 'false', "aria-hidden": "true" })), hAsync("div", { class: "xplor-input-select__option-content" }, hAsync("div", { class: "xplor-input-select__option-title" }, option.title), option.subtitle && (hAsync("div", { class: "xplor-input-select__option-subtitle" }, option.subtitle)))));
|
|
7607
|
+
})))), showDetails && (hAsync("div", { key: '0a4f46b2460cd068fe27635cbe45d054c06e9538', class: "xplor-input-select__details" }, this.error && hAsync("div", { key: '2d0f44af6a4c115bf3ed66764092b29cf117d57e', class: "xplor-input-select__error-message", id: errorId, role: "alert" }, this.error), !this.error && this.helperText && hAsync("div", { key: 'ee93ffdd070c853b1d779235d6c57e368d75bcf1', class: "xplor-input-select__helper-text", id: helperId }, this.helperText))))));
|
|
7247
7608
|
}
|
|
7609
|
+
get el() { return getElement(this); }
|
|
7248
7610
|
static get style() { return xplorInputSelectCss; }
|
|
7249
7611
|
static get cmpMeta() { return {
|
|
7250
7612
|
"$flags$": 2,
|
|
7251
7613
|
"$tagName$": "xplor-input-select",
|
|
7252
7614
|
"$members$": {
|
|
7615
|
+
"ariaLabel": [1, "aria-label"],
|
|
7253
7616
|
"value": [1032],
|
|
7254
7617
|
"label": [1],
|
|
7255
7618
|
"placeholder": [1],
|
|
@@ -7265,9 +7628,10 @@ class XplorInputSelect {
|
|
|
7265
7628
|
"required": [4],
|
|
7266
7629
|
"isOpen": [32],
|
|
7267
7630
|
"isFocused": [32],
|
|
7268
|
-
"menuPosition": [32]
|
|
7631
|
+
"menuPosition": [32],
|
|
7632
|
+
"highlightedIndex": [32]
|
|
7269
7633
|
},
|
|
7270
|
-
"$listeners$":
|
|
7634
|
+
"$listeners$": [[0, "keydown", "handleKeyDown"]],
|
|
7271
7635
|
"$lazyBundleId$": "-",
|
|
7272
7636
|
"$attrsToReflect$": []
|
|
7273
7637
|
}; }
|
|
@@ -7318,7 +7682,7 @@ class XplorInputSend {
|
|
|
7318
7682
|
return (hAsync(Host, { key: '87d0d49d2a9e9061152b294e6b7a91ffae7f39b0' }, hAsync("div", { key: 'ef857693127c5945ff78c20e431609b051df32e7', class: {
|
|
7319
7683
|
'input-send': true,
|
|
7320
7684
|
'input-send--disabled': this.disabled,
|
|
7321
|
-
} }, hAsync("input", { key: '
|
|
7685
|
+
} }, hAsync("input", { key: 'ab468e8669120fef885db5e1dd4da774acfd2f74', ref: (el) => (this.inputEl = el), type: "text", class: "input-send__input", placeholder: this.placeholder, value: this.internalValue, onInput: this.handleInput, onKeyDown: this.handleKeyDown, disabled: this.disabled, maxLength: this.maxLength, "aria-label": this.placeholder || 'Type a message' }), hAsync("xplor-button", { key: '216e72c5c263f0a18e4d8b4f03d253776376c6b3', class: "input-send__button", text: this.buttonText, type: this.disabled || !this.internalValue.trim() ? 'disabled' : this.buttonType, onClick: this.handleSend }))));
|
|
7322
7686
|
}
|
|
7323
7687
|
static get style() { return xplorInputSendCss; }
|
|
7324
7688
|
static get cmpMeta() { return {
|
|
@@ -7341,6 +7705,7 @@ class XplorInputSend {
|
|
|
7341
7705
|
|
|
7342
7706
|
const xplorInputTextCss = "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n@layer base {\n \n :root {\n --color-primary: #db3b03;\n --color-primary-50: rgba(255, 152, 0, 1);\n --color-secondary: rgb(0, 119, 107);\n --color-secondary-50: rgba(1, 163, 157, 1);\n --color-tertiary: rgb(128, 104, 186);\n --color-tertiary: rgb(223, 242, 241);\n --color-white: white;\n --color-emphasis: rgb(8, 8, 9);\n --color-supergiant: rgb(213, 66, 99);\n --color-orange: rgb(250, 200, 127);\n --color-buttons: #fbbc05;\n --color-typography: #ea4335;\n --background: 20 66% 99%;\n --foreground: 20 51% 4%;\n --muted: 20 25% 86%;\n --muted-foreground: 20 7% 25%;\n --popover: 20 66% 98%;\n --popover-foreground: 20 51% 3%;\n --card: 20 66% 98%;\n --card-foreground: 20 51% 3%;\n --border: 20 15% 94%;\n --input: 20 15% 94%;\n --primary: 20 48% 72%;\n --primary-foreground: 20 48% 12%;\n --secondary: 20 12% 92%;\n --secondary-foreground: 20 12% 32%;\n --accent: 20 12% 92%;\n --accent-foreground: 20 12% 32%;\n --destructive: 11 80% 22%;\n --destructive-foreground: 11 80% 82%;\n --ring: 20 48% 72%;\n --radius: 0.5rem;\n --chart-1: 12 76% 61%;\n --chart-2: 173 58% 39%;\n --chart-3: 197 37% 24%;\n --chart-4: 43 74% 66%;\n --chart-5: 27 87% 67%;\n }\n .dark {\n --background: 253 43% 3%;\n --foreground: 253 31% 98%;\n --muted: 253 7% 13%;\n --muted-foreground: 253 13% 63%;\n --popover: 253 43% 3%;\n --popover-foreground: 253 31% 98%;\n --card: 253 43% 4%;\n --card-foreground: 253 31% 99%;\n --border: 215 27.9% 16.9%;\n --input: 215 27.9% 16.9%;\n --primary: 253 91% 58%;\n --primary-foreground: 253 91% 98%;\n --secondary: 253 7% 9%;\n --secondary-foreground: 253 7% 69%;\n --accent: 253 13% 14%;\n --accent-foreground: 253 13% 74%;\n --destructive: 339.2 90.36% 51.18%;\n --destructive-foreground: 0 0% 100%;\n --ring: 253 91% 58%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n }\n}\n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply box-border bg-background text-foreground;\n }\n}\n@layer utilities {\n .min-h-screen {\n min-height: 100vh;\n \n min-height: 100dvh;\n }\n .h-screen {\n height: 100vh;\n \n height: 100dvh;\n }\n}\n@tailwind base;\n@tailwind components;\n@tailwind utilities;\n@layer components {\n .glass {\n border: none;\n backdrop-filter: blur(var(--glass-blur, 40px));\n background-color: transparent;\n background-image: linear-gradient(135deg, rgb(255, 255, 255, var(--glass-opacity, 30%)), transparent), linear-gradient(var(--glass-reflex-degree, 100deg), rgb(255, 255, 255, var(--glass-reflex-opacity, 10%)) 25%, transparent 0);\n box-shadow: 0 0 0 1px rgb(255, 255, 255, var(--glass-border-opacity, 10%)) inset, 0 0 0 2px rgba(0, 0, 0, 0.05);\n text-shadow: 0 1px rgb(0, 0, 0, var(--glass-text-shadow-opacity, 5%));\n }\n}\n.tox.tox-tinymce.sc-xplor-input-text {\n width: 50% !important;\n height: 400px !important;\n display: inline-flex;\n}\n\n\n@media only screen and (min-width: 600px) {\n .tox.tox-tinymce.sc-xplor-input-text {\n width: 600px !important;\n }\n}\nh1.sc-xplor-input-text {\n color: var(--color-primary);\n \n font-family: Inter;\n font-size: 48px;\n font-style: normal;\n font-weight: 400;\n line-height: 56px; \n}\n\nh2.sc-xplor-input-text {\n color: var(--grey-1100252525, #252525);\n \n font-family: Inter;\n font-size: 32px;\n font-style: normal;\n font-weight: 600;\n line-height: 38px; \n letter-spacing: 0.25px;\n}\n\nh3.sc-xplor-input-text {\n color: var(--grey-1100252525, #252525);\n \n font-family: Inter;\n font-size: 24px;\n font-style: normal;\n font-weight: 400;\n line-height: 32px; \n}\n\n.overline.sc-xplor-input-text {\n color: var(--grey-1100252525, #252525);\n \n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 16px; \n letter-spacing: 3.2px;\n text-transform: uppercase;\n}\n\nol.sc-xplor-input-text, ul.sc-xplor-input-text {\n list-style: none;\n margin: 1rem;\n padding: 0;\n}\nol.sc-xplor-input-text li.sc-xplor-input-text, ul.sc-xplor-input-text li.sc-xplor-input-text {\n margin: 1rem;\n padding: 0;\n}\nol.mdc-list.sc-xplor-input-text, ul.mdc-list.sc-xplor-input-text {\n list-style-type: none;\n list-style: none;\n}\nol.mdc-list.sc-xplor-input-text li.mdc-list-item.sc-xplor-input-text, ul.mdc-list.sc-xplor-input-text li.mdc-list-item.sc-xplor-input-text {\n list-style-type: none;\n list-style: none !important;\n}\n\n.orange-label.sc-xplor-input-text {\n color: var(--Orange-900-Primary, #db3b03);\n \n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; \n letter-spacing: 0.4px;\n margin: 0px 0 -9px 16px;\n z-index: 1 !important;\n position: relative;\n width: fit-content;\n}\n.orange-label.grey-bg.sc-xplor-input-text {\n background-color: #fefcfb;\n}\n\n#spinnerLoader.sc-xplor-input-text {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: #fff;\n padding: 20px;\n border-radius: 5px;\n box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 100;\n pointer-events: none;\n}\n\n#textfield-Title-label.sc-xplor-input-text {\n background-color: white;\n}\n\n.mdc-ripple-upgraded.sc-xplor-input-text .mdc-text-field--outlined.sc-xplor-input-text .mdc-notched-outline__notch.sc-xplor-input-text {\n border: 0px solid transparent !important;\n border-bottom: 1px solid #db3b03 !important;\n padding: 0;\n height: 0;\n}\n\n.mdc-text-field--focused.sc-xplor-input-text .mdc-notched-outline__notch.sc-xplor-input-text {\n border: 0px solid transparent !important;\n border-bottom: 2px solid #db3b03 !important;\n}\n\n.mdc-text-field--outlined.sc-xplor-input-text .mdc-notched-outline.sc-xplor-input-text .mdc-notched-outline__notch.sc-xplor-input-text {\n max-width: calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2);\n border-top: transparent;\n}\n\n.generate-btn.sc-xplor-input-text {\n display: flex;\n height: 48px;\n padding: 12px 24px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n border-radius: 16px;\n}\n.generate-btn.link.sc-xplor-input-text:hover {\n background-color: var(--Cyan-700-Secondary, #e27046);\n color: var(--Cyan-700-Secondary-Text, #fff);\n}\n\n.bg-green.sc-xplor-input-text {\n background: var(--Cyan-700-Secondary, #00776b);\n}\n\n.sc-xplor-input-text-h {\n display: block;\n}\n\n.xplor-input-text.sc-xplor-input-text {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n}\n.xplor-input-text__label.sc-xplor-input-text {\n font-size: 0.875rem;\n color: rgba(0, 0, 0, 0.6);\n margin-bottom: 0.25rem;\n}\n.xplor-input-text__required.sc-xplor-input-text {\n color: #d32f2f;\n margin-left: 0.25rem;\n}\n.xplor-input-text__field.sc-xplor-input-text {\n position: relative;\n display: flex;\n align-items: center;\n}\n.xplor-input-text__input.sc-xplor-input-text {\n width: 100%;\n padding: 0.875rem 1rem;\n font-size: 1rem;\n font-family: inherit;\n border: 1px solid rgba(0, 0, 0, 0.23);\n border-radius: 1rem;\n outline: none;\n transition: border-color 0.2s ease;\n}\n.xplor-input-text__input.sc-xplor-input-text::placeholder {\n color: rgba(0, 0, 0, 0.38);\n}\n.xplor-input-text__input.sc-xplor-input-text:hover:not(:disabled) {\n border-color: rgba(0, 0, 0, 0.6);\n}\n.xplor-input-text__input.sc-xplor-input-text:focus {\n border-color: #008480;\n border-width: 2px;\n padding: calc(0.875rem - 1px) calc(1rem - 1px);\n}\n.xplor-input-text__input.sc-xplor-input-text:disabled {\n background-color: rgba(0, 0, 0, 0.04);\n color: rgba(0, 0, 0, 0.38);\n cursor: not-allowed;\n}\n.xplor-input-text__input.sc-xplor-input-text:read-only {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.xplor-input-text--error.sc-xplor-input-text .xplor-input-text__input.sc-xplor-input-text {\n border-color: #d32f2f;\n}\n.xplor-input-text__details.sc-xplor-input-text {\n min-height: 1.25rem;\n padding: 0 1rem;\n font-size: 0.75rem;\n}\n.xplor-input-text__error-message.sc-xplor-input-text {\n color: #d32f2f;\n}\n.xplor-input-text__helper-text.sc-xplor-input-text {\n color: rgba(0, 0, 0, 0.6);\n}";
|
|
7343
7707
|
|
|
7708
|
+
let inputTextIdCounter = 0;
|
|
7344
7709
|
class XplorInputText {
|
|
7345
7710
|
constructor(hostRef) {
|
|
7346
7711
|
registerInstance(this, hostRef);
|
|
@@ -7348,6 +7713,9 @@ class XplorInputText {
|
|
|
7348
7713
|
this.xplorChange = createEvent(this, "xplorChange");
|
|
7349
7714
|
this.xplorFocus = createEvent(this, "xplorFocus");
|
|
7350
7715
|
this.xplorBlur = createEvent(this, "xplorBlur");
|
|
7716
|
+
this.inputId = `xplor-input-text-${++inputTextIdCounter}`;
|
|
7717
|
+
this.errorId = `${this.inputId}-error`;
|
|
7718
|
+
this.helperId = `${this.inputId}-helper`;
|
|
7351
7719
|
/**
|
|
7352
7720
|
* Input value
|
|
7353
7721
|
*/
|
|
@@ -7424,9 +7792,9 @@ class XplorInputText {
|
|
|
7424
7792
|
'xplor-input-text--error': !!this.error,
|
|
7425
7793
|
};
|
|
7426
7794
|
const showDetails = this.hideDetails === false || (this.hideDetails === 'auto' && (this.error || this.helperText));
|
|
7427
|
-
return (hAsync(Host, { key: '
|
|
7795
|
+
return (hAsync(Host, { key: '74d78e4b2d95f642b57606b0e8315d3064de446e' }, hAsync("div", { key: '7852dd1859fec108d191f612c1f02763edb4f419', class: containerClasses }, this.label && (hAsync("label", { key: 'e9f627130b2ed1f07d9eb6a91f7b40b79cafd550', class: "xplor-input-text__label", htmlFor: this.inputId }, this.label, this.required && hAsync("span", { key: 'a4763b2c5e5a3702b126528845dfcdb5d42e9e3d', class: "xplor-input-text__required" }, "*"))), hAsync("div", { key: 'fce0f4b127098b1c88200f36190d2a89214b3341', class: "xplor-input-text__field" }, hAsync("input", { key: '63ce8a595f7ea39f9ab011fe00c11530ce256c6c', id: this.inputId, type: this.type, class: "xplor-input-text__input", value: this.value, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, required: this.required, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
|
|
7428
7796
|
backgroundColor: this.bgColor,
|
|
7429
|
-
} }), hAsync("slot", { key: '
|
|
7797
|
+
}, "aria-invalid": this.error ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.error ? this.errorId : this.helperText ? this.helperId : undefined }), hAsync("slot", { key: 'a24e700dcbd30d21ff559b6a8fa189d260e3a470', name: "append-inner" })), showDetails && (hAsync("div", { key: 'b20cd03b0d9d4fb0ab52f9fe0c7bb03488f88401', class: "xplor-input-text__details" }, this.error && hAsync("div", { key: 'cbc084358dfb8c457d97ae66a21f3068ad5ccabb', class: "xplor-input-text__error-message", id: this.errorId }, this.error), !this.error && this.helperText && hAsync("div", { key: 'a1ab582138c63ed2f1830910e7a5b740c0f71909', class: "xplor-input-text__helper-text", id: this.helperId }, this.helperText))), hAsync("slot", { key: '30f30e929242a463a86a6470ceae0d708714cf8f', name: "append" }))));
|
|
7430
7798
|
}
|
|
7431
7799
|
static get style() { return xplorInputTextCss; }
|
|
7432
7800
|
static get cmpMeta() { return {
|
|
@@ -7455,12 +7823,16 @@ class XplorInputText {
|
|
|
7455
7823
|
|
|
7456
7824
|
const xplorInputTextAreaCss = "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n@layer base {\n \n :root {\n --color-primary: #db3b03;\n --color-primary-50: rgba(255, 152, 0, 1);\n --color-secondary: rgb(0, 119, 107);\n --color-secondary-50: rgba(1, 163, 157, 1);\n --color-tertiary: rgb(128, 104, 186);\n --color-tertiary: rgb(223, 242, 241);\n --color-white: white;\n --color-emphasis: rgb(8, 8, 9);\n --color-supergiant: rgb(213, 66, 99);\n --color-orange: rgb(250, 200, 127);\n --color-buttons: #fbbc05;\n --color-typography: #ea4335;\n --background: 20 66% 99%;\n --foreground: 20 51% 4%;\n --muted: 20 25% 86%;\n --muted-foreground: 20 7% 25%;\n --popover: 20 66% 98%;\n --popover-foreground: 20 51% 3%;\n --card: 20 66% 98%;\n --card-foreground: 20 51% 3%;\n --border: 20 15% 94%;\n --input: 20 15% 94%;\n --primary: 20 48% 72%;\n --primary-foreground: 20 48% 12%;\n --secondary: 20 12% 92%;\n --secondary-foreground: 20 12% 32%;\n --accent: 20 12% 92%;\n --accent-foreground: 20 12% 32%;\n --destructive: 11 80% 22%;\n --destructive-foreground: 11 80% 82%;\n --ring: 20 48% 72%;\n --radius: 0.5rem;\n --chart-1: 12 76% 61%;\n --chart-2: 173 58% 39%;\n --chart-3: 197 37% 24%;\n --chart-4: 43 74% 66%;\n --chart-5: 27 87% 67%;\n }\n .dark {\n --background: 253 43% 3%;\n --foreground: 253 31% 98%;\n --muted: 253 7% 13%;\n --muted-foreground: 253 13% 63%;\n --popover: 253 43% 3%;\n --popover-foreground: 253 31% 98%;\n --card: 253 43% 4%;\n --card-foreground: 253 31% 99%;\n --border: 215 27.9% 16.9%;\n --input: 215 27.9% 16.9%;\n --primary: 253 91% 58%;\n --primary-foreground: 253 91% 98%;\n --secondary: 253 7% 9%;\n --secondary-foreground: 253 7% 69%;\n --accent: 253 13% 14%;\n --accent-foreground: 253 13% 74%;\n --destructive: 339.2 90.36% 51.18%;\n --destructive-foreground: 0 0% 100%;\n --ring: 253 91% 58%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n }\n}\n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply box-border bg-background text-foreground;\n }\n}\n@layer utilities {\n .min-h-screen {\n min-height: 100vh;\n \n min-height: 100dvh;\n }\n .h-screen {\n height: 100vh;\n \n height: 100dvh;\n }\n}\n@tailwind base;\n@tailwind components;\n@tailwind utilities;\n@layer components {\n .glass {\n border: none;\n backdrop-filter: blur(var(--glass-blur, 40px));\n background-color: transparent;\n background-image: linear-gradient(135deg, rgb(255, 255, 255, var(--glass-opacity, 30%)), transparent), linear-gradient(var(--glass-reflex-degree, 100deg), rgb(255, 255, 255, var(--glass-reflex-opacity, 10%)) 25%, transparent 0);\n box-shadow: 0 0 0 1px rgb(255, 255, 255, var(--glass-border-opacity, 10%)) inset, 0 0 0 2px rgba(0, 0, 0, 0.05);\n text-shadow: 0 1px rgb(0, 0, 0, var(--glass-text-shadow-opacity, 5%));\n }\n}\n.tox.tox-tinymce.sc-xplor-input-text-area {\n width: 50% !important;\n height: 400px !important;\n display: inline-flex;\n}\n\n\n@media only screen and (min-width: 600px) {\n .tox.tox-tinymce.sc-xplor-input-text-area {\n width: 600px !important;\n }\n}\nh1.sc-xplor-input-text-area {\n color: var(--color-primary);\n \n font-family: Inter;\n font-size: 48px;\n font-style: normal;\n font-weight: 400;\n line-height: 56px; \n}\n\nh2.sc-xplor-input-text-area {\n color: var(--grey-1100252525, #252525);\n \n font-family: Inter;\n font-size: 32px;\n font-style: normal;\n font-weight: 600;\n line-height: 38px; \n letter-spacing: 0.25px;\n}\n\nh3.sc-xplor-input-text-area {\n color: var(--grey-1100252525, #252525);\n \n font-family: Inter;\n font-size: 24px;\n font-style: normal;\n font-weight: 400;\n line-height: 32px; \n}\n\n.overline.sc-xplor-input-text-area {\n color: var(--grey-1100252525, #252525);\n \n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 16px; \n letter-spacing: 3.2px;\n text-transform: uppercase;\n}\n\nol.sc-xplor-input-text-area, ul.sc-xplor-input-text-area {\n list-style: none;\n margin: 1rem;\n padding: 0;\n}\nol.sc-xplor-input-text-area li.sc-xplor-input-text-area, ul.sc-xplor-input-text-area li.sc-xplor-input-text-area {\n margin: 1rem;\n padding: 0;\n}\nol.mdc-list.sc-xplor-input-text-area, ul.mdc-list.sc-xplor-input-text-area {\n list-style-type: none;\n list-style: none;\n}\nol.mdc-list.sc-xplor-input-text-area li.mdc-list-item.sc-xplor-input-text-area, ul.mdc-list.sc-xplor-input-text-area li.mdc-list-item.sc-xplor-input-text-area {\n list-style-type: none;\n list-style: none !important;\n}\n\n.orange-label.sc-xplor-input-text-area {\n color: var(--Orange-900-Primary, #db3b03);\n \n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; \n letter-spacing: 0.4px;\n margin: 0px 0 -9px 16px;\n z-index: 1 !important;\n position: relative;\n width: fit-content;\n}\n.orange-label.grey-bg.sc-xplor-input-text-area {\n background-color: #fefcfb;\n}\n\n#spinnerLoader.sc-xplor-input-text-area {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: #fff;\n padding: 20px;\n border-radius: 5px;\n box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 100;\n pointer-events: none;\n}\n\n#textfield-Title-label.sc-xplor-input-text-area {\n background-color: white;\n}\n\n.mdc-ripple-upgraded.sc-xplor-input-text-area .mdc-text-field--outlined.sc-xplor-input-text-area .mdc-notched-outline__notch.sc-xplor-input-text-area {\n border: 0px solid transparent !important;\n border-bottom: 1px solid #db3b03 !important;\n padding: 0;\n height: 0;\n}\n\n.mdc-text-field--focused.sc-xplor-input-text-area .mdc-notched-outline__notch.sc-xplor-input-text-area {\n border: 0px solid transparent !important;\n border-bottom: 2px solid #db3b03 !important;\n}\n\n.mdc-text-field--outlined.sc-xplor-input-text-area .mdc-notched-outline.sc-xplor-input-text-area .mdc-notched-outline__notch.sc-xplor-input-text-area {\n max-width: calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2);\n border-top: transparent;\n}\n\n.generate-btn.sc-xplor-input-text-area {\n display: flex;\n height: 48px;\n padding: 12px 24px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n border-radius: 16px;\n}\n.generate-btn.link.sc-xplor-input-text-area:hover {\n background-color: var(--Cyan-700-Secondary, #e27046);\n color: var(--Cyan-700-Secondary-Text, #fff);\n}\n\n.bg-green.sc-xplor-input-text-area {\n background: var(--Cyan-700-Secondary, #00776b);\n}\n\n.sc-xplor-input-text-area-h {\n display: block;\n}\n\n.xplor-input-text-area.sc-xplor-input-text-area {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n}\n.xplor-input-text-area__label.sc-xplor-input-text-area {\n font-size: 0.875rem;\n color: rgba(0, 0, 0, 0.6);\n margin-bottom: 0.25rem;\n}\n.xplor-input-text-area__required.sc-xplor-input-text-area {\n color: #d32f2f;\n margin-left: 0.25rem;\n}\n.xplor-input-text-area__field.sc-xplor-input-text-area {\n position: relative;\n display: flex;\n align-items: flex-start;\n}\n.xplor-input-text-area__input.sc-xplor-input-text-area {\n width: 100%;\n padding: 0.875rem 1rem;\n font-size: 1rem;\n font-family: inherit;\n border: 1px solid rgba(0, 0, 0, 0.23);\n border-radius: 1rem;\n outline: none;\n resize: vertical;\n min-height: 56px;\n transition: border-color 0.2s ease;\n}\n.xplor-input-text-area__input.sc-xplor-input-text-area::placeholder {\n color: rgba(0, 0, 0, 0.38);\n}\n.xplor-input-text-area__input.sc-xplor-input-text-area:hover:not(:disabled) {\n border-color: rgba(0, 0, 0, 0.6);\n}\n.xplor-input-text-area__input.sc-xplor-input-text-area:focus {\n border-color: #008480;\n border-width: 2px;\n padding: calc(0.875rem - 1px) calc(1rem - 1px);\n}\n.xplor-input-text-area__input.sc-xplor-input-text-area:disabled {\n background-color: rgba(0, 0, 0, 0.04);\n color: rgba(0, 0, 0, 0.38);\n cursor: not-allowed;\n resize: none;\n}\n.xplor-input-text-area__input.sc-xplor-input-text-area:read-only {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.xplor-input-text-area__clear.sc-xplor-input-text-area {\n position: absolute;\n right: 0.75rem;\n top: 0.75rem;\n width: 1.5rem;\n height: 1.5rem;\n border: none;\n background: transparent;\n color: rgba(0, 0, 0, 0.54);\n cursor: pointer;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background-color 0.2s ease;\n}\n.xplor-input-text-area__clear.sc-xplor-input-text-area:hover {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.xplor-input-text-area__clear.sc-xplor-input-text-area:active {\n background-color: rgba(0, 0, 0, 0.08);\n}\n.xplor-input-text-area--error.sc-xplor-input-text-area .xplor-input-text-area__input.sc-xplor-input-text-area {\n border-color: #d32f2f;\n}\n.xplor-input-text-area__details.sc-xplor-input-text-area {\n min-height: 1.25rem;\n padding: 0 1rem;\n font-size: 0.75rem;\n}\n.xplor-input-text-area__error-message.sc-xplor-input-text-area {\n color: #d32f2f;\n}\n.xplor-input-text-area__helper-text.sc-xplor-input-text-area {\n color: rgba(0, 0, 0, 0.6);\n}";
|
|
7457
7825
|
|
|
7826
|
+
let inputTextAreaIdCounter = 0;
|
|
7458
7827
|
class XplorInputTextArea {
|
|
7459
7828
|
constructor(hostRef) {
|
|
7460
7829
|
registerInstance(this, hostRef);
|
|
7461
7830
|
this.xplorInput = createEvent(this, "xplorInput");
|
|
7462
7831
|
this.xplorChange = createEvent(this, "xplorChange");
|
|
7463
7832
|
this.xplorClear = createEvent(this, "xplorClear");
|
|
7833
|
+
this.inputId = `xplor-input-text-area-${++inputTextAreaIdCounter}`;
|
|
7834
|
+
this.errorId = `${this.inputId}-error`;
|
|
7835
|
+
this.helperId = `${this.inputId}-helper`;
|
|
7464
7836
|
/**
|
|
7465
7837
|
* Input value
|
|
7466
7838
|
*/
|
|
@@ -7539,9 +7911,9 @@ class XplorInputTextArea {
|
|
|
7539
7911
|
};
|
|
7540
7912
|
const showClearButton = this.clearable && this.value && !this.readonly && !this.disabled;
|
|
7541
7913
|
const showDetails = this.hideDetails === false || (this.hideDetails === 'auto' && (this.error || this.helperText));
|
|
7542
|
-
return (hAsync(Host, { key: '
|
|
7914
|
+
return (hAsync(Host, { key: 'c03b31f6576f7a103227964d33a40cb4e659c3ce' }, hAsync("div", { key: '3f29fe2801d281c6e110a512156527cabce854a8', class: containerClasses }, this.label && (hAsync("label", { key: 'b2d3bcb28e66d80a43fbca6e6bc37f1c967982ba', class: "xplor-input-text-area__label", htmlFor: this.inputId }, this.label, this.required && hAsync("span", { key: '73c21af6cba3faff373a0d1700a8577ee3fffb46', class: "xplor-input-text-area__required" }, "*"))), hAsync("div", { key: 'f9f60ad9aa09747bdd77b51f7576d4d9811b5c81', class: "xplor-input-text-area__field" }, hAsync("textarea", { key: 'd41b249092b9478a5fb323042a1e7397b1326dd0', id: this.inputId, class: "xplor-input-text-area__input", value: this.value, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, required: this.required, rows: this.rows, onInput: this.handleInput, onChange: this.handleChange, onFocus: () => (this.isFocused = true), onBlur: () => (this.isFocused = false), style: {
|
|
7543
7915
|
backgroundColor: this.bgColor,
|
|
7544
|
-
} }), showClearButton && (hAsync("button", { key: '
|
|
7916
|
+
}, "aria-invalid": this.error ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.error ? this.errorId : this.helperText ? this.helperId : undefined }), showClearButton && (hAsync("button", { key: '8cb817547c0c494c2f82216a9f07a78bc4c5314d', type: "button", class: "xplor-input-text-area__clear", onClick: this.handleClear, "aria-label": "Clear" }, "\u2715"))), showDetails && (hAsync("div", { key: 'e0f4d72ac96eda8ce0913cb80f11a65b1adfc0c4', class: "xplor-input-text-area__details" }, this.error && hAsync("div", { key: '7eb06f00783c62614af72fc769b585b167f8d25b', class: "xplor-input-text-area__error-message", id: this.errorId }, this.error), !this.error && this.helperText && hAsync("div", { key: 'c9f5ad0158da20c2a743e7fb304a04eeb6a0270b', class: "xplor-input-text-area__helper-text", id: this.helperId }, this.helperText))))));
|
|
7545
7917
|
}
|
|
7546
7918
|
static get style() { return xplorInputTextAreaCss; }
|
|
7547
7919
|
static get cmpMeta() { return {
|
|
@@ -7571,6 +7943,7 @@ class XplorInputTextArea {
|
|
|
7571
7943
|
|
|
7572
7944
|
const xplorInputTextSecondaryCss = "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n@layer base {\n \n :root {\n --color-primary: #db3b03;\n --color-primary-50: rgba(255, 152, 0, 1);\n --color-secondary: rgb(0, 119, 107);\n --color-secondary-50: rgba(1, 163, 157, 1);\n --color-tertiary: rgb(128, 104, 186);\n --color-tertiary: rgb(223, 242, 241);\n --color-white: white;\n --color-emphasis: rgb(8, 8, 9);\n --color-supergiant: rgb(213, 66, 99);\n --color-orange: rgb(250, 200, 127);\n --color-buttons: #fbbc05;\n --color-typography: #ea4335;\n --background: 20 66% 99%;\n --foreground: 20 51% 4%;\n --muted: 20 25% 86%;\n --muted-foreground: 20 7% 25%;\n --popover: 20 66% 98%;\n --popover-foreground: 20 51% 3%;\n --card: 20 66% 98%;\n --card-foreground: 20 51% 3%;\n --border: 20 15% 94%;\n --input: 20 15% 94%;\n --primary: 20 48% 72%;\n --primary-foreground: 20 48% 12%;\n --secondary: 20 12% 92%;\n --secondary-foreground: 20 12% 32%;\n --accent: 20 12% 92%;\n --accent-foreground: 20 12% 32%;\n --destructive: 11 80% 22%;\n --destructive-foreground: 11 80% 82%;\n --ring: 20 48% 72%;\n --radius: 0.5rem;\n --chart-1: 12 76% 61%;\n --chart-2: 173 58% 39%;\n --chart-3: 197 37% 24%;\n --chart-4: 43 74% 66%;\n --chart-5: 27 87% 67%;\n }\n .dark {\n --background: 253 43% 3%;\n --foreground: 253 31% 98%;\n --muted: 253 7% 13%;\n --muted-foreground: 253 13% 63%;\n --popover: 253 43% 3%;\n --popover-foreground: 253 31% 98%;\n --card: 253 43% 4%;\n --card-foreground: 253 31% 99%;\n --border: 215 27.9% 16.9%;\n --input: 215 27.9% 16.9%;\n --primary: 253 91% 58%;\n --primary-foreground: 253 91% 98%;\n --secondary: 253 7% 9%;\n --secondary-foreground: 253 7% 69%;\n --accent: 253 13% 14%;\n --accent-foreground: 253 13% 74%;\n --destructive: 339.2 90.36% 51.18%;\n --destructive-foreground: 0 0% 100%;\n --ring: 253 91% 58%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n }\n}\n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply box-border bg-background text-foreground;\n }\n}\n@layer utilities {\n .min-h-screen {\n min-height: 100vh;\n \n min-height: 100dvh;\n }\n .h-screen {\n height: 100vh;\n \n height: 100dvh;\n }\n}\n@tailwind base;\n@tailwind components;\n@tailwind utilities;\n@layer components {\n .glass {\n border: none;\n backdrop-filter: blur(var(--glass-blur, 40px));\n background-color: transparent;\n background-image: linear-gradient(135deg, rgb(255, 255, 255, var(--glass-opacity, 30%)), transparent), linear-gradient(var(--glass-reflex-degree, 100deg), rgb(255, 255, 255, var(--glass-reflex-opacity, 10%)) 25%, transparent 0);\n box-shadow: 0 0 0 1px rgb(255, 255, 255, var(--glass-border-opacity, 10%)) inset, 0 0 0 2px rgba(0, 0, 0, 0.05);\n text-shadow: 0 1px rgb(0, 0, 0, var(--glass-text-shadow-opacity, 5%));\n }\n}\n.tox.tox-tinymce.sc-xplor-input-text-secondary {\n width: 50% !important;\n height: 400px !important;\n display: inline-flex;\n}\n\n\n@media only screen and (min-width: 600px) {\n .tox.tox-tinymce.sc-xplor-input-text-secondary {\n width: 600px !important;\n }\n}\nh1.sc-xplor-input-text-secondary {\n color: var(--color-primary);\n \n font-family: Inter;\n font-size: 48px;\n font-style: normal;\n font-weight: 400;\n line-height: 56px; \n}\n\nh2.sc-xplor-input-text-secondary {\n color: var(--grey-1100252525, #252525);\n \n font-family: Inter;\n font-size: 32px;\n font-style: normal;\n font-weight: 600;\n line-height: 38px; \n letter-spacing: 0.25px;\n}\n\nh3.sc-xplor-input-text-secondary {\n color: var(--grey-1100252525, #252525);\n \n font-family: Inter;\n font-size: 24px;\n font-style: normal;\n font-weight: 400;\n line-height: 32px; \n}\n\n.overline.sc-xplor-input-text-secondary {\n color: var(--grey-1100252525, #252525);\n \n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 16px; \n letter-spacing: 3.2px;\n text-transform: uppercase;\n}\n\nol.sc-xplor-input-text-secondary, ul.sc-xplor-input-text-secondary {\n list-style: none;\n margin: 1rem;\n padding: 0;\n}\nol.sc-xplor-input-text-secondary li.sc-xplor-input-text-secondary, ul.sc-xplor-input-text-secondary li.sc-xplor-input-text-secondary {\n margin: 1rem;\n padding: 0;\n}\nol.mdc-list.sc-xplor-input-text-secondary, ul.mdc-list.sc-xplor-input-text-secondary {\n list-style-type: none;\n list-style: none;\n}\nol.mdc-list.sc-xplor-input-text-secondary li.mdc-list-item.sc-xplor-input-text-secondary, ul.mdc-list.sc-xplor-input-text-secondary li.mdc-list-item.sc-xplor-input-text-secondary {\n list-style-type: none;\n list-style: none !important;\n}\n\n.orange-label.sc-xplor-input-text-secondary {\n color: var(--Orange-900-Primary, #db3b03);\n \n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; \n letter-spacing: 0.4px;\n margin: 0px 0 -9px 16px;\n z-index: 1 !important;\n position: relative;\n width: fit-content;\n}\n.orange-label.grey-bg.sc-xplor-input-text-secondary {\n background-color: #fefcfb;\n}\n\n#spinnerLoader.sc-xplor-input-text-secondary {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: #fff;\n padding: 20px;\n border-radius: 5px;\n box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 100;\n pointer-events: none;\n}\n\n#textfield-Title-label.sc-xplor-input-text-secondary {\n background-color: white;\n}\n\n.mdc-ripple-upgraded.sc-xplor-input-text-secondary .mdc-text-field--outlined.sc-xplor-input-text-secondary .mdc-notched-outline__notch.sc-xplor-input-text-secondary {\n border: 0px solid transparent !important;\n border-bottom: 1px solid #db3b03 !important;\n padding: 0;\n height: 0;\n}\n\n.mdc-text-field--focused.sc-xplor-input-text-secondary .mdc-notched-outline__notch.sc-xplor-input-text-secondary {\n border: 0px solid transparent !important;\n border-bottom: 2px solid #db3b03 !important;\n}\n\n.mdc-text-field--outlined.sc-xplor-input-text-secondary .mdc-notched-outline.sc-xplor-input-text-secondary .mdc-notched-outline__notch.sc-xplor-input-text-secondary {\n max-width: calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2);\n border-top: transparent;\n}\n\n.generate-btn.sc-xplor-input-text-secondary {\n display: flex;\n height: 48px;\n padding: 12px 24px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n border-radius: 16px;\n}\n.generate-btn.link.sc-xplor-input-text-secondary:hover {\n background-color: var(--Cyan-700-Secondary, #e27046);\n color: var(--Cyan-700-Secondary-Text, #fff);\n}\n\n.bg-green.sc-xplor-input-text-secondary {\n background: var(--Cyan-700-Secondary, #00776b);\n}\n\n.sc-xplor-input-text-secondary-h {\n display: block;\n}\n\n.input-secondary.sc-xplor-input-text-secondary {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n}\n.input-secondary__label.sc-xplor-input-text-secondary {\n font-size: 0.875rem;\n color: rgba(0, 0, 0, 0.6);\n margin-bottom: 0.25rem;\n}\n.input-secondary__required.sc-xplor-input-text-secondary {\n color: #d32f2f;\n margin-left: 0.25rem;\n}\n.input-secondary__field.sc-xplor-input-text-secondary {\n position: relative;\n display: flex;\n align-items: center;\n}\n.input-secondary__input.sc-xplor-input-text-secondary {\n width: 100%;\n padding: 0.875rem 1rem;\n font-size: 1rem;\n font-family: inherit;\n border: 1px solid rgba(0, 0, 0, 0.23);\n border-radius: 16px;\n outline: none;\n transition: border-color 0.2s ease, border-width 0.2s ease;\n}\n.input-secondary__input.sc-xplor-input-text-secondary::placeholder {\n color: rgba(0, 0, 0, 0.38);\n}\n.input-secondary__input.sc-xplor-input-text-secondary:hover:not(:disabled) {\n border-color: rgba(0, 0, 0, 0.6);\n}\n.input-secondary__input.sc-xplor-input-text-secondary:focus {\n border-color: #008480;\n border-width: 2px;\n padding: calc(0.875rem - 1px) calc(1rem - 1px);\n}\n.input-secondary__input.sc-xplor-input-text-secondary:disabled {\n background-color: rgba(0, 0, 0, 0.04);\n color: rgba(0, 0, 0, 0.38);\n cursor: not-allowed;\n}\n.input-secondary__input.sc-xplor-input-text-secondary:read-only {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.input-secondary--dirty.sc-xplor-input-text-secondary .input-secondary__input.sc-xplor-input-text-secondary {\n border-color: #008480;\n border-width: 2px;\n padding: calc(0.875rem - 1px) calc(1rem - 1px);\n}\n.input-secondary--error.sc-xplor-input-text-secondary .input-secondary__input.sc-xplor-input-text-secondary {\n border-color: #d32f2f;\n}\n.input-secondary__details.sc-xplor-input-text-secondary {\n min-height: 1.25rem;\n padding: 0 1rem;\n font-size: 0.75rem;\n}\n.input-secondary__error-message.sc-xplor-input-text-secondary {\n color: #d32f2f;\n}\n.input-secondary__helper-text.sc-xplor-input-text-secondary {\n color: rgba(0, 0, 0, 0.6);\n}";
|
|
7573
7945
|
|
|
7946
|
+
let inputTextSecondaryIdCounter = 0;
|
|
7574
7947
|
class XplorInputTextSecondary {
|
|
7575
7948
|
constructor(hostRef) {
|
|
7576
7949
|
registerInstance(this, hostRef);
|
|
@@ -7578,6 +7951,9 @@ class XplorInputTextSecondary {
|
|
|
7578
7951
|
this.xplorChange = createEvent(this, "xplorChange");
|
|
7579
7952
|
this.xplorFocus = createEvent(this, "xplorFocus");
|
|
7580
7953
|
this.xplorBlur = createEvent(this, "xplorBlur");
|
|
7954
|
+
this.inputId = `xplor-input-text-secondary-${++inputTextSecondaryIdCounter}`;
|
|
7955
|
+
this.errorId = `${this.inputId}-error`;
|
|
7956
|
+
this.helperId = `${this.inputId}-helper`;
|
|
7581
7957
|
this.value = '';
|
|
7582
7958
|
this.label = '';
|
|
7583
7959
|
this.placeholder = '';
|
|
@@ -7619,9 +7995,9 @@ class XplorInputTextSecondary {
|
|
|
7619
7995
|
'input-secondary--dirty': this.isDirty,
|
|
7620
7996
|
};
|
|
7621
7997
|
const showDetails = this.hideDetails === false || (this.hideDetails === 'auto' && (this.error || this.helperText));
|
|
7622
|
-
return (hAsync(Host, { key: '
|
|
7998
|
+
return (hAsync(Host, { key: 'cba1682d9584d1dad7da1974dee2ba86423e5a8b' }, hAsync("div", { key: '2dd7399f266c15a9654dcb8075edd69501f464e0', class: containerClasses }, this.label && (hAsync("label", { key: '445608b567e7673386bb99791f63e852c6b95627', class: "input-secondary__label", htmlFor: this.inputId }, this.label, this.required && hAsync("span", { key: '3e926e2b17ada694064559525a86dab2f64bbb39', class: "input-secondary__required" }, "*"))), hAsync("div", { key: 'f2b73b8eed06c0ad8931e67e8d26e6d13effa14d', class: "input-secondary__field" }, hAsync("input", { key: 'dd3506bb5fd1e14f3e30600f3b00b28446f7fa87', id: this.inputId, type: this.type, class: "input-secondary__input", value: this.value, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, required: this.required, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
|
|
7623
7999
|
backgroundColor: this.bgColor,
|
|
7624
|
-
} }), hAsync("slot", { key: '
|
|
8000
|
+
}, "aria-invalid": this.error ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.error ? this.errorId : this.helperText ? this.helperId : undefined }), hAsync("slot", { key: 'ae3d7ee9248d8098e36bd44a8e07454cbdfecb32', name: "append-inner" })), showDetails && (hAsync("div", { key: '9cf7faef29234709d7301ede1d635dda4eabf3ac', class: "input-secondary__details" }, this.error && hAsync("div", { key: '7315826f15369e3a98cd629d484a34bc373f753d', class: "input-secondary__error-message", id: this.errorId }, this.error), !this.error && this.helperText && hAsync("div", { key: '356726d208da52b6e4c973f06511132a26f70069', class: "input-secondary__helper-text", id: this.helperId }, this.helperText))), hAsync("slot", { key: '190b4ed0fd2e6253dcae23ac4637bab3e0b26d81', name: "append" }))));
|
|
7625
8001
|
}
|
|
7626
8002
|
static get style() { return xplorInputTextSecondaryCss; }
|
|
7627
8003
|
static get cmpMeta() { return {
|
|
@@ -7671,6 +8047,10 @@ class XplorInputTitle {
|
|
|
7671
8047
|
* Whether the input is readonly
|
|
7672
8048
|
*/
|
|
7673
8049
|
this.readonly = false;
|
|
8050
|
+
/**
|
|
8051
|
+
* Accessible label for the input
|
|
8052
|
+
*/
|
|
8053
|
+
this.ariaLabel = 'Title';
|
|
7674
8054
|
this.handleInput = (event) => {
|
|
7675
8055
|
const target = event.target;
|
|
7676
8056
|
this.value = target.value;
|
|
@@ -7683,7 +8063,7 @@ class XplorInputTitle {
|
|
|
7683
8063
|
};
|
|
7684
8064
|
}
|
|
7685
8065
|
render() {
|
|
7686
|
-
return (hAsync(Host, { key: '
|
|
8066
|
+
return (hAsync(Host, { key: '1e49e53ce1525bdfa81b550739c97b3927a919e6' }, hAsync("input", { key: '74dd032886da4bca30a5f38a15b18903f03c5095', type: "text", class: "xplor-input-title", value: this.value, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, "aria-label": this.ariaLabel, onInput: this.handleInput, onChange: this.handleChange })));
|
|
7687
8067
|
}
|
|
7688
8068
|
static get style() { return xplorInputTitleCss; }
|
|
7689
8069
|
static get cmpMeta() { return {
|
|
@@ -7693,7 +8073,8 @@ class XplorInputTitle {
|
|
|
7693
8073
|
"value": [1025],
|
|
7694
8074
|
"placeholder": [1],
|
|
7695
8075
|
"disabled": [4],
|
|
7696
|
-
"readonly": [4]
|
|
8076
|
+
"readonly": [4],
|
|
8077
|
+
"ariaLabel": [1, "aria-label"]
|
|
7697
8078
|
},
|
|
7698
8079
|
"$listeners$": undefined,
|
|
7699
8080
|
"$lazyBundleId$": "-",
|
|
@@ -7706,16 +8087,19 @@ const xplorLinksCss = ":host{display:block}.x-link{display:block;padding:0.5rem
|
|
|
7706
8087
|
class XplorLinks {
|
|
7707
8088
|
constructor(hostRef) {
|
|
7708
8089
|
registerInstance(this, hostRef);
|
|
8090
|
+
/** Alt text for the image */
|
|
8091
|
+
this.imageAlt = '';
|
|
7709
8092
|
}
|
|
7710
8093
|
render() {
|
|
7711
|
-
return (hAsync(Host, { key: '
|
|
8094
|
+
return (hAsync(Host, { key: 'e26ac5962cb44c6e05a39034e76b6f35d076cb60', class: `theme-${this.brand}` }, hAsync("a", { key: '030c76cf101abf498a2828bffef051f5e01d3a65', class: "x-link", href: "https://google.com" }, ' ', "googole this is a link", ' '), hAsync("div", { key: '13ef22eb8e5ddc49976006b138b7bac0e379d85c', class: "bg-black p-2 rounded-md flex justify-center" }, hAsync("h1", { key: '39e7adc65ee5b26b4be9c111eabdb295fc964065', class: "text-primary font-sans" }, "This is a Stencil component using Tailwind")), hAsync("div", { key: 'dae9ed47cdaa4afb6a6b70ca82c9b3c280f39215', class: "bg-white py-24 sm:py-32" }, hAsync("div", { key: '32f746f7ec8c3337fff37e445dfb7e31a42e68c9', class: "mx-auto grid max-w-7xl gap-20 px-6 lg:px-8 xl:grid-cols-3" }, hAsync("div", { key: '309dfd3930301f77cf83eea80579063d1c4aee85', class: "max-w-xl" }, hAsync("h2", { key: '6fac68cca56d79303a1d92b86d059f7f91296b3e', class: "text-pretty text-3xl font-semibold tracking-tight text-gray-900 sm:text-4xl" }, "Meet our leadership"), hAsync("p", { key: 'd759f98a1c30f4636592a5aa5ffa8f06cfa93dbe', class: "mt-6 text-lg/8 text-gray-600" }, "We\u2019re a dynamic group of individuals who are passionate about what we do and dedicated to delivering the best results for our clients.")), hAsync("ul", { key: '978c9a043988f63c53b2ec9f7e0e73367dd72f41', role: "list", class: "grid gap-x-8 gap-y-12 sm:grid-cols-2 sm:gap-y-16 xl:col-span-2" }, hAsync("li", { key: '6ae95678b9ef5ed2ad60c62661aa4a6c966f2740' }, hAsync("div", { key: '0a98faa21b7216205d1ad44d977bcade55ce3162', class: "flex items-center gap-x-6" }, hAsync("img", { key: '58c7a75c098911ca434d5de959ca358a80cb5598', class: "size-16 rounded-full", src: "https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80", alt: this.imageAlt }), hAsync("div", { key: '314a9de00a4ac46b67a12cc57ca8392ccea7cfd8' }, hAsync("h3", { key: 'd87b6c4fcdcf68e7bd9b9b29428cfe10de9e03fd', class: "text-base/7 font-semibold tracking-tight text-gray-900" }, "Leslie Alexander"), hAsync("p", { key: '254489d8c64e765276fbfb72cd88221a0e2575ad', class: "text-sm/6 font-semibold text-indigo-600" }, "Co-Founder / CEO")))))))));
|
|
7712
8095
|
}
|
|
7713
8096
|
static get style() { return xplorLinksCss; }
|
|
7714
8097
|
static get cmpMeta() { return {
|
|
7715
8098
|
"$flags$": 9,
|
|
7716
8099
|
"$tagName$": "xplor-links",
|
|
7717
8100
|
"$members$": {
|
|
7718
|
-
"brand": [1]
|
|
8101
|
+
"brand": [1],
|
|
8102
|
+
"imageAlt": [1, "image-alt"]
|
|
7719
8103
|
},
|
|
7720
8104
|
"$listeners$": undefined,
|
|
7721
8105
|
"$lazyBundleId$": "-",
|
|
@@ -7761,6 +8145,7 @@ class XplorModal {
|
|
|
7761
8145
|
* Whether to show the title area (for spacing)
|
|
7762
8146
|
*/
|
|
7763
8147
|
this.showTitle = true;
|
|
8148
|
+
this.previouslyFocusedElement = null;
|
|
7764
8149
|
this.handleBackdropClick = () => {
|
|
7765
8150
|
if (!this.persistent) {
|
|
7766
8151
|
this.closeModal();
|
|
@@ -7777,14 +8162,68 @@ class XplorModal {
|
|
|
7777
8162
|
handleOpenChange(newValue) {
|
|
7778
8163
|
if (newValue) {
|
|
7779
8164
|
document.body.style.overflow = 'hidden';
|
|
8165
|
+
this.previouslyFocusedElement = document.activeElement;
|
|
8166
|
+
requestAnimationFrame(() => {
|
|
8167
|
+
this.setInitialFocus();
|
|
8168
|
+
});
|
|
7780
8169
|
}
|
|
7781
8170
|
else {
|
|
7782
8171
|
document.body.style.overflow = '';
|
|
8172
|
+
if (this.previouslyFocusedElement) {
|
|
8173
|
+
this.previouslyFocusedElement.focus();
|
|
8174
|
+
this.previouslyFocusedElement = null;
|
|
8175
|
+
}
|
|
7783
8176
|
}
|
|
7784
8177
|
}
|
|
7785
8178
|
disconnectedCallback() {
|
|
7786
8179
|
document.body.style.overflow = '';
|
|
7787
8180
|
}
|
|
8181
|
+
handleKeyDown(event) {
|
|
8182
|
+
if (!this.open)
|
|
8183
|
+
return;
|
|
8184
|
+
if (event.key === 'Escape' && !this.persistent) {
|
|
8185
|
+
event.preventDefault();
|
|
8186
|
+
this.closeModal();
|
|
8187
|
+
return;
|
|
8188
|
+
}
|
|
8189
|
+
if (event.key === 'Tab') {
|
|
8190
|
+
this.trapFocus(event);
|
|
8191
|
+
}
|
|
8192
|
+
}
|
|
8193
|
+
getFocusableElements() {
|
|
8194
|
+
if (!this.dialogEl)
|
|
8195
|
+
return [];
|
|
8196
|
+
const selectors = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
8197
|
+
return Array.from(this.dialogEl.querySelectorAll(selectors));
|
|
8198
|
+
}
|
|
8199
|
+
trapFocus(event) {
|
|
8200
|
+
const focusableElements = this.getFocusableElements();
|
|
8201
|
+
if (focusableElements.length === 0)
|
|
8202
|
+
return;
|
|
8203
|
+
const firstElement = focusableElements[0];
|
|
8204
|
+
const lastElement = focusableElements[focusableElements.length - 1];
|
|
8205
|
+
if (event.shiftKey) {
|
|
8206
|
+
if (document.activeElement === firstElement) {
|
|
8207
|
+
event.preventDefault();
|
|
8208
|
+
lastElement.focus();
|
|
8209
|
+
}
|
|
8210
|
+
}
|
|
8211
|
+
else {
|
|
8212
|
+
if (document.activeElement === lastElement) {
|
|
8213
|
+
event.preventDefault();
|
|
8214
|
+
firstElement.focus();
|
|
8215
|
+
}
|
|
8216
|
+
}
|
|
8217
|
+
}
|
|
8218
|
+
setInitialFocus() {
|
|
8219
|
+
const focusableElements = this.getFocusableElements();
|
|
8220
|
+
if (focusableElements.length > 0) {
|
|
8221
|
+
focusableElements[0].focus();
|
|
8222
|
+
}
|
|
8223
|
+
else if (this.dialogEl) {
|
|
8224
|
+
this.dialogEl.focus();
|
|
8225
|
+
}
|
|
8226
|
+
}
|
|
7788
8227
|
render() {
|
|
7789
8228
|
if (!this.open) {
|
|
7790
8229
|
return null;
|
|
@@ -7801,8 +8240,12 @@ class XplorModal {
|
|
|
7801
8240
|
width: this.width,
|
|
7802
8241
|
maxWidth: this.maxWidth,
|
|
7803
8242
|
maxHeight: this.maxHeight,
|
|
7804
|
-
}, onClick: this.handleCardClick }, hAsync("button", { type: "button", class: "xplor-modal__close-btn", onClick: this.closeModal, "aria-label": "Close modal", "data-testid": "common-modal-close-button" }, "\u2715"), hAsync("div", { class: "xplor-modal__title" }, hAsync("slot", { name: "title" })), hAsync("div", { class: "xplor-modal__subtitle" }, hAsync("slot", { name: "subtitle" })), hAsync("div", { class: bodyClasses }, this.loading ? (hAsync("div", { class: "xplor-modal__loading"
|
|
8243
|
+
}, onClick: this.handleCardClick, role: "dialog", "aria-modal": "true", "aria-labelledby": this.ariaLabel ? undefined : 'xplor-modal-title', "aria-label": this.ariaLabel, tabindex: "-1", ref: (el) => (this.dialogEl = el) }, hAsync("button", { type: "button", class: "xplor-modal__close-btn", onClick: this.closeModal, "aria-label": "Close modal", "data-testid": "common-modal-close-button" }, "\u2715"), hAsync("div", { class: "xplor-modal__title", id: "xplor-modal-title" }, hAsync("slot", { name: "title" })), hAsync("div", { class: "xplor-modal__subtitle" }, hAsync("slot", { name: "subtitle" })), hAsync("div", { class: bodyClasses }, this.loading ? (hAsync("div", { class: "xplor-modal__loading", role: "status", "aria-label": "Loading" }, hAsync("div", { class: "xplor-modal__spinner" }))) : ([
|
|
8244
|
+
hAsync("slot", { name: "body" }),
|
|
8245
|
+
hAsync("slot", null)
|
|
8246
|
+
])), hAsync("div", { class: "xplor-modal__actions" }, hAsync("slot", { name: "actions" }))))));
|
|
7805
8247
|
}
|
|
8248
|
+
get el() { return getElement(this); }
|
|
7806
8249
|
static get watchers() { return {
|
|
7807
8250
|
"open": ["handleOpenChange"]
|
|
7808
8251
|
}; }
|
|
@@ -7818,9 +8261,10 @@ class XplorModal {
|
|
|
7818
8261
|
"scrollable": [4],
|
|
7819
8262
|
"persistent": [4],
|
|
7820
8263
|
"loading": [4],
|
|
7821
|
-
"showTitle": [4, "show-title"]
|
|
8264
|
+
"showTitle": [4, "show-title"],
|
|
8265
|
+
"ariaLabel": [1, "aria-label"]
|
|
7822
8266
|
},
|
|
7823
|
-
"$listeners$":
|
|
8267
|
+
"$listeners$": [[0, "keydown", "handleKeyDown"]],
|
|
7824
8268
|
"$lazyBundleId$": "-",
|
|
7825
8269
|
"$attrsToReflect$": []
|
|
7826
8270
|
}; }
|
|
@@ -7886,8 +8330,45 @@ class XplorNavTabs {
|
|
|
7886
8330
|
this.xplorChange.emit(item.value);
|
|
7887
8331
|
};
|
|
7888
8332
|
}
|
|
8333
|
+
handleKeyDown(event) {
|
|
8334
|
+
const enabledItems = this.items.filter(item => !item.disabled);
|
|
8335
|
+
if (enabledItems.length === 0)
|
|
8336
|
+
return;
|
|
8337
|
+
const currentIndex = enabledItems.findIndex(item => item.value === this.value);
|
|
8338
|
+
let newIndex = currentIndex;
|
|
8339
|
+
switch (event.key) {
|
|
8340
|
+
case 'ArrowRight':
|
|
8341
|
+
event.preventDefault();
|
|
8342
|
+
newIndex = currentIndex < enabledItems.length - 1 ? currentIndex + 1 : 0;
|
|
8343
|
+
break;
|
|
8344
|
+
case 'ArrowLeft':
|
|
8345
|
+
event.preventDefault();
|
|
8346
|
+
newIndex = currentIndex > 0 ? currentIndex - 1 : enabledItems.length - 1;
|
|
8347
|
+
break;
|
|
8348
|
+
case 'Home':
|
|
8349
|
+
event.preventDefault();
|
|
8350
|
+
newIndex = 0;
|
|
8351
|
+
break;
|
|
8352
|
+
case 'End':
|
|
8353
|
+
event.preventDefault();
|
|
8354
|
+
newIndex = enabledItems.length - 1;
|
|
8355
|
+
break;
|
|
8356
|
+
default:
|
|
8357
|
+
return;
|
|
8358
|
+
}
|
|
8359
|
+
const newItem = enabledItems[newIndex];
|
|
8360
|
+
this.value = newItem.value;
|
|
8361
|
+
this.xplorChange.emit(newItem.value);
|
|
8362
|
+
// Focus the newly active tab button
|
|
8363
|
+
const buttons = this.el.querySelectorAll('button[role="tab"]');
|
|
8364
|
+
const allItemIndex = this.items.indexOf(newItem);
|
|
8365
|
+
const targetButton = buttons[allItemIndex];
|
|
8366
|
+
if (targetButton) {
|
|
8367
|
+
targetButton.focus();
|
|
8368
|
+
}
|
|
8369
|
+
}
|
|
7889
8370
|
render() {
|
|
7890
|
-
return (hAsync(Host, { key: '
|
|
8371
|
+
return (hAsync(Host, { key: '1a94314129f0f6c94df3196ef7e2a493b6626fd7' }, hAsync("div", { key: '71b0ee2d2baab1fed571ed88f04fc49754b2952e', class: {
|
|
7891
8372
|
'nav-tabs': true,
|
|
7892
8373
|
'nav-tabs--grow': this.grow,
|
|
7893
8374
|
[`nav-tabs--${this.color}`]: true,
|
|
@@ -7895,8 +8376,9 @@ class XplorNavTabs {
|
|
|
7895
8376
|
'nav-tabs__tab': true,
|
|
7896
8377
|
'nav-tabs__tab--active': this.value === item.value,
|
|
7897
8378
|
'nav-tabs__tab--disabled': item.disabled,
|
|
7898
|
-
}, onClick: () => this.handleTabClick(item), disabled: item.disabled, role: "tab", "aria-selected": this.value === item.value ? 'true' : 'false', type: "button" }, item.label))), hAsync("slot", { key: '
|
|
8379
|
+
}, onClick: () => this.handleTabClick(item), disabled: item.disabled, role: "tab", "aria-selected": this.value === item.value ? 'true' : 'false', tabIndex: this.value === item.value ? 0 : -1, type: "button" }, item.label))), hAsync("slot", { key: 'fbf08f6785a81babc1c29359f0dff202dca18d6c' }))));
|
|
7899
8380
|
}
|
|
8381
|
+
get el() { return getElement(this); }
|
|
7900
8382
|
static get style() { return xplorNavTabsCss; }
|
|
7901
8383
|
static get cmpMeta() { return {
|
|
7902
8384
|
"$flags$": 6,
|
|
@@ -7907,26 +8389,119 @@ class XplorNavTabs {
|
|
|
7907
8389
|
"color": [1],
|
|
7908
8390
|
"grow": [4]
|
|
7909
8391
|
},
|
|
7910
|
-
"$listeners$":
|
|
8392
|
+
"$listeners$": [[0, "keydown", "handleKeyDown"]],
|
|
7911
8393
|
"$lazyBundleId$": "-",
|
|
7912
8394
|
"$attrsToReflect$": []
|
|
7913
8395
|
}; }
|
|
7914
8396
|
}
|
|
7915
8397
|
|
|
7916
|
-
const xplorRadioBtnCss = "/* on mobile browsers, I set a width of 100% */\n@tailwind base;\n@tailwind components;\n@tailwind utilities;\n@layer base {\n /* html[data-theme='office'] {\n --color-primary: rgb(219, 59, 3);\n --color-secondary: rgb(0, 119, 107);\n --color-buttons: #89da59;\n --color-typography: #ff320e;\n }\n\n html {\n --color-primary: #db3b03;\n --color-primary-50: #db3b03;\n --color-secondary: rgb(0, 119, 107);\n --color-secondary-50: rgb(0, 119, 107);\n --color-tertiary: rgb(128, 104, 186);\n } */\n :root {\n --color-primary: #db3b03;\n --color-primary-50: rgba(255, 152, 0, 1);\n --color-secondary: rgb(0, 119, 107);\n --color-secondary-50: rgba(1, 163, 157, 1);\n --color-tertiary: rgb(128, 104, 186);\n --color-tertiary: rgb(223, 242, 241);\n --color-white: white;\n --color-emphasis: rgb(8, 8, 9);\n --color-supergiant: rgb(213, 66, 99);\n --color-orange: rgb(250, 200, 127);\n --color-buttons: #fbbc05;\n --color-typography: #ea4335;\n --background: 20 66% 99%;\n --foreground: 20 51% 4%;\n --muted: 20 25% 86%;\n --muted-foreground: 20 7% 25%;\n --popover: 20 66% 98%;\n --popover-foreground: 20 51% 3%;\n --card: 20 66% 98%;\n --card-foreground: 20 51% 3%;\n --border: 20 15% 94%;\n --input: 20 15% 94%;\n --primary: 20 48% 72%;\n --primary-foreground: 20 48% 12%;\n --secondary: 20 12% 92%;\n --secondary-foreground: 20 12% 32%;\n --accent: 20 12% 92%;\n --accent-foreground: 20 12% 32%;\n --destructive: 11 80% 22%;\n --destructive-foreground: 11 80% 82%;\n --ring: 20 48% 72%;\n --radius: 0.5rem;\n --chart-1: 12 76% 61%;\n --chart-2: 173 58% 39%;\n --chart-3: 197 37% 24%;\n --chart-4: 43 74% 66%;\n --chart-5: 27 87% 67%;\n }\n .dark {\n --background: 253 43% 3%;\n --foreground: 253 31% 98%;\n --muted: 253 7% 13%;\n --muted-foreground: 253 13% 63%;\n --popover: 253 43% 3%;\n --popover-foreground: 253 31% 98%;\n --card: 253 43% 4%;\n --card-foreground: 253 31% 99%;\n --border: 215 27.9% 16.9%;\n --input: 215 27.9% 16.9%;\n --primary: 253 91% 58%;\n --primary-foreground: 253 91% 98%;\n --secondary: 253 7% 9%;\n --secondary-foreground: 253 7% 69%;\n --accent: 253 13% 14%;\n --accent-foreground: 253 13% 74%;\n --destructive: 339.2 90.36% 51.18%;\n --destructive-foreground: 0 0% 100%;\n --ring: 253 91% 58%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n }\n}\n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply box-border bg-background text-foreground;\n }\n}\n@layer utilities {\n .min-h-screen {\n min-height: 100vh;\n /* Fallback */\n min-height: 100dvh;\n }\n .h-screen {\n height: 100vh;\n /* Fallback */\n height: 100dvh;\n }\n}\n@tailwind base;\n@tailwind components;\n@tailwind utilities;\n@layer components {\n .glass {\n border: none;\n backdrop-filter: blur(var(--glass-blur, 40px));\n background-color: transparent;\n background-image: linear-gradient(135deg, rgb(255, 255, 255, var(--glass-opacity, 30%)), transparent), linear-gradient(var(--glass-reflex-degree, 100deg), rgb(255, 255, 255, var(--glass-reflex-opacity, 10%)) 25%, transparent 0);\n box-shadow: 0 0 0 1px rgb(255, 255, 255, var(--glass-border-opacity, 10%)) inset, 0 0 0 2px rgba(0, 0, 0, 0.05);\n text-shadow: 0 1px rgb(0, 0, 0, var(--glass-text-shadow-opacity, 5%));\n }\n}\n.tox.tox-tinymce {\n width: 50% !important;\n height: 400px !important;\n display: inline-flex;\n}\n\n/* on large screens, I use a different layout, so 600px are sufficient */\n@media only screen and (min-width: 600px) {\n .tox.tox-tinymce {\n width: 600px !important;\n }\n}\nh1 {\n color: var(--color-primary);\n /* Header/H1 */\n font-family: Inter;\n font-size: 48px;\n font-style: normal;\n font-weight: 400;\n line-height: 56px; /* 116.667% */\n}\n\nh2 {\n color: var(--grey-1100252525, #252525);\n /* Header/H2 Bold */\n font-family: Inter;\n font-size: 32px;\n font-style: normal;\n font-weight: 600;\n line-height: 38px; /* 118.75% */\n letter-spacing: 0.25px;\n}\n\nh3 {\n color: var(--grey-1100252525, #252525);\n /* Header/H3 */\n font-family: Inter;\n font-size: 24px;\n font-style: normal;\n font-weight: 400;\n line-height: 32px; /* 133.333% */\n}\n\n.overline {\n color: var(--grey-1100252525, #252525);\n /* Overline/Regular */\n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 16px; /* 133.333% */\n letter-spacing: 3.2px;\n text-transform: uppercase;\n}\n\nol,\nul {\n list-style: none;\n margin: 1rem;\n padding: 0;\n}\nol li,\nul li {\n margin: 1rem;\n padding: 0;\n}\nol.mdc-list,\nul.mdc-list {\n list-style-type: none;\n list-style: none;\n}\nol.mdc-list li.mdc-list-item,\nul.mdc-list li.mdc-list-item {\n list-style-type: none;\n list-style: none !important;\n}\n\n.orange-label {\n color: var(--Orange-900-Primary, #db3b03);\n /* Caption 1/Regular */\n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; /* 133.333% */\n letter-spacing: 0.4px;\n margin: 0px 0 -9px 16px;\n z-index: 1 !important;\n position: relative;\n width: fit-content;\n}\n.orange-label.grey-bg {\n background-color: #fefcfb;\n}\n\n#spinnerLoader {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: #fff;\n padding: 20px;\n border-radius: 5px;\n box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 100;\n pointer-events: none;\n}\n\n#textfield-Title-label {\n background-color: white;\n}\n\n.mdc-ripple-upgraded .mdc-text-field--outlined .mdc-notched-outline__notch {\n border: 0px solid transparent !important;\n border-bottom: 1px solid #db3b03 !important;\n padding: 0;\n height: 0;\n}\n\n.mdc-text-field--focused .mdc-notched-outline__notch {\n border: 0px solid transparent !important;\n border-bottom: 2px solid #db3b03 !important;\n}\n\n.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch {\n max-width: calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2);\n border-top: transparent;\n}\n\n.generate-btn {\n display: flex;\n height: 48px;\n padding: 12px 24px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n border-radius: 16px;\n}\n.generate-btn.link:hover {\n background-color: var(--Cyan-700-Secondary, #e27046);\n color: var(--Cyan-700-Secondary-Text, #fff);\n}\n\n.bg-green {\n background: var(--Cyan-700-Secondary, #00776b);\n}\n\n:host {\n display: block;\n}";
|
|
8398
|
+
const xplorRadioBtnCss = "/* on mobile browsers, I set a width of 100% */\n@tailwind base;\n@tailwind components;\n@tailwind utilities;\n@layer base {\n /* html[data-theme='office'] {\n --color-primary: rgb(219, 59, 3);\n --color-secondary: rgb(0, 119, 107);\n --color-buttons: #89da59;\n --color-typography: #ff320e;\n }\n\n html {\n --color-primary: #db3b03;\n --color-primary-50: #db3b03;\n --color-secondary: rgb(0, 119, 107);\n --color-secondary-50: rgb(0, 119, 107);\n --color-tertiary: rgb(128, 104, 186);\n } */\n :root {\n --color-primary: #db3b03;\n --color-primary-50: rgba(255, 152, 0, 1);\n --color-secondary: rgb(0, 119, 107);\n --color-secondary-50: rgba(1, 163, 157, 1);\n --color-tertiary: rgb(128, 104, 186);\n --color-tertiary: rgb(223, 242, 241);\n --color-white: white;\n --color-emphasis: rgb(8, 8, 9);\n --color-supergiant: rgb(213, 66, 99);\n --color-orange: rgb(250, 200, 127);\n --color-buttons: #fbbc05;\n --color-typography: #ea4335;\n --background: 20 66% 99%;\n --foreground: 20 51% 4%;\n --muted: 20 25% 86%;\n --muted-foreground: 20 7% 25%;\n --popover: 20 66% 98%;\n --popover-foreground: 20 51% 3%;\n --card: 20 66% 98%;\n --card-foreground: 20 51% 3%;\n --border: 20 15% 94%;\n --input: 20 15% 94%;\n --primary: 20 48% 72%;\n --primary-foreground: 20 48% 12%;\n --secondary: 20 12% 92%;\n --secondary-foreground: 20 12% 32%;\n --accent: 20 12% 92%;\n --accent-foreground: 20 12% 32%;\n --destructive: 11 80% 22%;\n --destructive-foreground: 11 80% 82%;\n --ring: 20 48% 72%;\n --radius: 0.5rem;\n --chart-1: 12 76% 61%;\n --chart-2: 173 58% 39%;\n --chart-3: 197 37% 24%;\n --chart-4: 43 74% 66%;\n --chart-5: 27 87% 67%;\n }\n .dark {\n --background: 253 43% 3%;\n --foreground: 253 31% 98%;\n --muted: 253 7% 13%;\n --muted-foreground: 253 13% 63%;\n --popover: 253 43% 3%;\n --popover-foreground: 253 31% 98%;\n --card: 253 43% 4%;\n --card-foreground: 253 31% 99%;\n --border: 215 27.9% 16.9%;\n --input: 215 27.9% 16.9%;\n --primary: 253 91% 58%;\n --primary-foreground: 253 91% 98%;\n --secondary: 253 7% 9%;\n --secondary-foreground: 253 7% 69%;\n --accent: 253 13% 14%;\n --accent-foreground: 253 13% 74%;\n --destructive: 339.2 90.36% 51.18%;\n --destructive-foreground: 0 0% 100%;\n --ring: 253 91% 58%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n }\n}\n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply box-border bg-background text-foreground;\n }\n}\n@layer utilities {\n .min-h-screen {\n min-height: 100vh;\n /* Fallback */\n min-height: 100dvh;\n }\n .h-screen {\n height: 100vh;\n /* Fallback */\n height: 100dvh;\n }\n}\n@tailwind base;\n@tailwind components;\n@tailwind utilities;\n@layer components {\n .glass {\n border: none;\n backdrop-filter: blur(var(--glass-blur, 40px));\n background-color: transparent;\n background-image: linear-gradient(135deg, rgb(255, 255, 255, var(--glass-opacity, 30%)), transparent), linear-gradient(var(--glass-reflex-degree, 100deg), rgb(255, 255, 255, var(--glass-reflex-opacity, 10%)) 25%, transparent 0);\n box-shadow: 0 0 0 1px rgb(255, 255, 255, var(--glass-border-opacity, 10%)) inset, 0 0 0 2px rgba(0, 0, 0, 0.05);\n text-shadow: 0 1px rgb(0, 0, 0, var(--glass-text-shadow-opacity, 5%));\n }\n}\n.tox.tox-tinymce {\n width: 50% !important;\n height: 400px !important;\n display: inline-flex;\n}\n\n/* on large screens, I use a different layout, so 600px are sufficient */\n@media only screen and (min-width: 600px) {\n .tox.tox-tinymce {\n width: 600px !important;\n }\n}\nh1 {\n color: var(--color-primary);\n /* Header/H1 */\n font-family: Inter;\n font-size: 48px;\n font-style: normal;\n font-weight: 400;\n line-height: 56px; /* 116.667% */\n}\n\nh2 {\n color: var(--grey-1100252525, #252525);\n /* Header/H2 Bold */\n font-family: Inter;\n font-size: 32px;\n font-style: normal;\n font-weight: 600;\n line-height: 38px; /* 118.75% */\n letter-spacing: 0.25px;\n}\n\nh3 {\n color: var(--grey-1100252525, #252525);\n /* Header/H3 */\n font-family: Inter;\n font-size: 24px;\n font-style: normal;\n font-weight: 400;\n line-height: 32px; /* 133.333% */\n}\n\n.overline {\n color: var(--grey-1100252525, #252525);\n /* Overline/Regular */\n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 16px; /* 133.333% */\n letter-spacing: 3.2px;\n text-transform: uppercase;\n}\n\nol,\nul {\n list-style: none;\n margin: 1rem;\n padding: 0;\n}\nol li,\nul li {\n margin: 1rem;\n padding: 0;\n}\nol.mdc-list,\nul.mdc-list {\n list-style-type: none;\n list-style: none;\n}\nol.mdc-list li.mdc-list-item,\nul.mdc-list li.mdc-list-item {\n list-style-type: none;\n list-style: none !important;\n}\n\n.orange-label {\n color: var(--Orange-900-Primary, #db3b03);\n /* Caption 1/Regular */\n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; /* 133.333% */\n letter-spacing: 0.4px;\n margin: 0px 0 -9px 16px;\n z-index: 1 !important;\n position: relative;\n width: fit-content;\n}\n.orange-label.grey-bg {\n background-color: #fefcfb;\n}\n\n#spinnerLoader {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: #fff;\n padding: 20px;\n border-radius: 5px;\n box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 100;\n pointer-events: none;\n}\n\n#textfield-Title-label {\n background-color: white;\n}\n\n.mdc-ripple-upgraded .mdc-text-field--outlined .mdc-notched-outline__notch {\n border: 0px solid transparent !important;\n border-bottom: 1px solid #db3b03 !important;\n padding: 0;\n height: 0;\n}\n\n.mdc-text-field--focused .mdc-notched-outline__notch {\n border: 0px solid transparent !important;\n border-bottom: 2px solid #db3b03 !important;\n}\n\n.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch {\n max-width: calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2);\n border-top: transparent;\n}\n\n.generate-btn {\n display: flex;\n height: 48px;\n padding: 12px 24px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n border-radius: 16px;\n}\n.generate-btn.link:hover {\n background-color: var(--Cyan-700-Secondary, #e27046);\n color: var(--Cyan-700-Secondary-Text, #fff);\n}\n\n.bg-green {\n background: var(--Cyan-700-Secondary, #00776b);\n}\n\n:host {\n display: inline-block;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n}\n\n.radio-wrapper {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n cursor: pointer;\n}\n.radio-wrapper--disabled {\n cursor: not-allowed;\n}\n\n.radio {\n width: 20px;\n height: 20px;\n border-radius: 50%;\n border: 2px solid #9ca3af;\n background: white;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: all 0.15s ease;\n outline: none;\n position: relative;\n flex-shrink: 0;\n}\n.radio.hover {\n border-color: #059669;\n background: #d1fae5;\n}\n.radio.focus {\n border-color: #059669;\n background: #a7f3d0;\n box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);\n}\n.radio.pressed {\n border-color: #059669;\n background: #6ee7b7;\n}\n.radio.checked {\n border-color: #059669;\n}\n.radio.checked.hover {\n background: #d1fae5;\n}\n.radio.checked.hover .radio-inner {\n background: #059669;\n}\n.radio.checked.focus {\n background: #a7f3d0;\n box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);\n}\n.radio.checked.focus .radio-inner {\n background: #059669;\n}\n.radio.checked.pressed {\n background: #6ee7b7;\n}\n.radio.checked.pressed .radio-inner {\n background: #059669;\n}\n.radio.error {\n border-color: #ef4444;\n}\n.radio.error.hover {\n background: #fee2e2;\n border-color: #ef4444;\n}\n.radio.error.focus {\n background: #fecaca;\n border-color: #ef4444;\n box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);\n}\n.radio.error.pressed {\n background: #fca5a5;\n border-color: #ef4444;\n}\n.radio.error.checked .radio-inner {\n background: #ef4444;\n}\n.radio.disabled {\n opacity: 0.4;\n cursor: not-allowed;\n border-color: #d1d5db;\n background: white;\n}\n.radio.disabled.checked {\n border-color: #9ca3af;\n}\n.radio.disabled.checked .radio-inner {\n background: #9ca3af;\n}\n\n.radio-inner {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background: #059669;\n transform: scale(0);\n transition: transform 0.15s ease;\n}\n.radio-inner--visible {\n transform: scale(1);\n}\n\n.label {\n font-size: 14px;\n color: #374151;\n user-select: none;\n}\n\n.radio-wrapper--disabled .label {\n opacity: 0.4;\n}";
|
|
7917
8399
|
|
|
7918
8400
|
class XplorRadioBtn {
|
|
7919
8401
|
constructor(hostRef) {
|
|
7920
8402
|
registerInstance(this, hostRef);
|
|
8403
|
+
this.radioChange = createEvent(this, "radioChange");
|
|
8404
|
+
/** The label text displayed next to the radio button */
|
|
8405
|
+
this.label = '';
|
|
8406
|
+
/** The value associated with this radio button */
|
|
8407
|
+
this.value = '';
|
|
8408
|
+
/** The name attribute to group radio buttons together */
|
|
8409
|
+
this.name = '';
|
|
8410
|
+
/** Whether this radio button is initially selected */
|
|
8411
|
+
this.initialChecked = false;
|
|
8412
|
+
/** Whether this radio button is disabled */
|
|
8413
|
+
this.disabled = false;
|
|
8414
|
+
/** Whether this radio button is in an error state */
|
|
8415
|
+
this.error = false;
|
|
8416
|
+
this.checked = false;
|
|
8417
|
+
this.isHovered = false;
|
|
8418
|
+
this.isFocused = false;
|
|
8419
|
+
this.isPressed = false;
|
|
8420
|
+
this.handleClick = () => {
|
|
8421
|
+
if (this.disabled || this.checked)
|
|
8422
|
+
return;
|
|
8423
|
+
// Deselect all siblings in the same name group
|
|
8424
|
+
this.getSiblingRadios().forEach(radio => radio.deselect());
|
|
8425
|
+
this.checked = true;
|
|
8426
|
+
this.radioChange.emit({ value: this.value, checked: this.checked });
|
|
8427
|
+
};
|
|
8428
|
+
this.handleKeyDown = (e) => {
|
|
8429
|
+
if (this.disabled)
|
|
8430
|
+
return;
|
|
8431
|
+
if (e.key === ' ' || e.key === 'Enter') {
|
|
8432
|
+
e.preventDefault();
|
|
8433
|
+
this.isPressed = true;
|
|
8434
|
+
this.handleClick();
|
|
8435
|
+
}
|
|
8436
|
+
};
|
|
8437
|
+
this.handleKeyUp = (e) => {
|
|
8438
|
+
if (e.key === ' ' || e.key === 'Enter') {
|
|
8439
|
+
this.isPressed = false;
|
|
8440
|
+
}
|
|
8441
|
+
};
|
|
8442
|
+
this.getRadioClass = () => {
|
|
8443
|
+
const classes = ['radio'];
|
|
8444
|
+
if (this.checked)
|
|
8445
|
+
classes.push('checked');
|
|
8446
|
+
if (this.disabled)
|
|
8447
|
+
classes.push('disabled');
|
|
8448
|
+
if (this.error)
|
|
8449
|
+
classes.push('error');
|
|
8450
|
+
if (this.isHovered && !this.disabled)
|
|
8451
|
+
classes.push('hover');
|
|
8452
|
+
if (this.isFocused && !this.disabled)
|
|
8453
|
+
classes.push('focus');
|
|
8454
|
+
if (this.isPressed && !this.disabled)
|
|
8455
|
+
classes.push('pressed');
|
|
8456
|
+
return classes.join(' ');
|
|
8457
|
+
};
|
|
8458
|
+
}
|
|
8459
|
+
watchCheckedProp(newValue) {
|
|
8460
|
+
this.checked = newValue;
|
|
8461
|
+
}
|
|
8462
|
+
componentWillLoad() {
|
|
8463
|
+
this.checked = this.initialChecked;
|
|
8464
|
+
}
|
|
8465
|
+
/** Programmatically deselect this radio button */
|
|
8466
|
+
async deselect() {
|
|
8467
|
+
this.checked = false;
|
|
8468
|
+
}
|
|
8469
|
+
getSiblingRadios() {
|
|
8470
|
+
if (!this.name)
|
|
8471
|
+
return [];
|
|
8472
|
+
const parent = this.el.parentElement;
|
|
8473
|
+
if (!parent)
|
|
8474
|
+
return [];
|
|
8475
|
+
const all = Array.from(parent.querySelectorAll(`xplor-radio-btn[name="${this.name}"]`));
|
|
8476
|
+
return all.filter(radio => radio !== this.el);
|
|
7921
8477
|
}
|
|
7922
8478
|
render() {
|
|
7923
|
-
return (hAsync(
|
|
8479
|
+
return (hAsync("label", { key: 'dee9c14f54e292d18b3267ca5e2000aca36b0456', class: {
|
|
8480
|
+
'radio-wrapper': true,
|
|
8481
|
+
'radio-wrapper--disabled': this.disabled,
|
|
8482
|
+
} }, hAsync("div", { key: '30bd9ba24abb9b37e6baa55d6ba767a2058cd1d0', class: this.getRadioClass(), onClick: this.handleClick, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), onMouseDown: () => (this.isPressed = true), onMouseUp: () => (this.isPressed = false), onFocus: () => (this.isFocused = true), onBlur: () => (this.isFocused = false), onKeyDown: this.handleKeyDown, onKeyUp: this.handleKeyUp, tabIndex: this.disabled ? -1 : 0, role: "radio", "aria-checked": this.checked.toString(), "aria-disabled": this.disabled.toString(), "aria-label": this.label }, hAsync("div", { key: 'd09a47486e2041f12cbdeadd29fd537cab41db3b', class: { 'radio-inner': true, 'radio-inner--visible': this.checked } })), this.label && (hAsync("span", { key: 'd8b820cd1b843f33a99a64c236f3f53a1c68be70', class: "label" }, this.label))));
|
|
7924
8483
|
}
|
|
8484
|
+
get el() { return getElement(this); }
|
|
8485
|
+
static get watchers() { return {
|
|
8486
|
+
"initialChecked": ["watchCheckedProp"]
|
|
8487
|
+
}; }
|
|
7925
8488
|
static get style() { return xplorRadioBtnCss; }
|
|
7926
8489
|
static get cmpMeta() { return {
|
|
7927
8490
|
"$flags$": 9,
|
|
7928
8491
|
"$tagName$": "xplor-radio-btn",
|
|
7929
|
-
"$members$":
|
|
8492
|
+
"$members$": {
|
|
8493
|
+
"label": [1],
|
|
8494
|
+
"value": [1],
|
|
8495
|
+
"name": [1],
|
|
8496
|
+
"initialChecked": [4, "initial-checked"],
|
|
8497
|
+
"disabled": [4],
|
|
8498
|
+
"error": [4],
|
|
8499
|
+
"checked": [32],
|
|
8500
|
+
"isHovered": [32],
|
|
8501
|
+
"isFocused": [32],
|
|
8502
|
+
"isPressed": [32],
|
|
8503
|
+
"deselect": [64]
|
|
8504
|
+
},
|
|
7930
8505
|
"$listeners$": undefined,
|
|
7931
8506
|
"$lazyBundleId$": "-",
|
|
7932
8507
|
"$attrsToReflect$": []
|
|
@@ -7943,11 +8518,11 @@ class XplorSectionCard {
|
|
|
7943
8518
|
this.padding = '1.5rem';
|
|
7944
8519
|
}
|
|
7945
8520
|
render() {
|
|
7946
|
-
return (hAsync(Host, { key: '
|
|
8521
|
+
return (hAsync(Host, { key: '14876af087f131508ff26d4fefbba1792fb1f092' }, hAsync("div", { key: '38bf7ff900f46b701416e2a3483c66728939cf8c', class: {
|
|
7947
8522
|
'section-card': true,
|
|
7948
8523
|
'section-card--outlined': this.outlined,
|
|
7949
8524
|
'section-card--rounded': this.rounded,
|
|
7950
|
-
}, style: { padding: this.padding } }, hAsync("slot", { key: '
|
|
8525
|
+
}, style: { padding: this.padding } }, hAsync("slot", { key: '2189b986d9b08b1ef6168af7a5fe24da4a599301', name: "title" }), hAsync("slot", { key: 'c3efe60808ac203e0c9a63c7c636dee242856bf0', name: "subtitle" }), hAsync("div", { key: 'cf9d94651682ca4d1da25ccadbbfe2168295a326', class: "section-card__body" }, hAsync("slot", { key: '732633bbbe5ad06f1c10222e81929a33ba06a12c', name: "body" }), hAsync("slot", { key: 'e403abfc1b71759aab693c700b5ed8be1215f30e' })), hAsync("div", { key: '89ffdd8215a88483635d1542a56a6f446abf61c4', class: "section-card__actions" }, hAsync("slot", { key: 'e21b2e8b8cd048c4a0dfd369684186b547cc7611', name: "actions" })))));
|
|
7951
8526
|
}
|
|
7952
8527
|
static get style() { return xplorSectionCardCss; }
|
|
7953
8528
|
static get cmpMeta() { return {
|
|
@@ -7970,13 +8545,18 @@ class XplorSectionHeading {
|
|
|
7970
8545
|
constructor(hostRef) {
|
|
7971
8546
|
registerInstance(this, hostRef);
|
|
7972
8547
|
this.size = 'medium';
|
|
8548
|
+
/**
|
|
8549
|
+
* Heading level (1-6), renders as h1-h6. Defaults to 2.
|
|
8550
|
+
*/
|
|
8551
|
+
this.level = 2;
|
|
7973
8552
|
}
|
|
7974
8553
|
render() {
|
|
7975
|
-
|
|
8554
|
+
const HeadingTag = `h${this.level}`;
|
|
8555
|
+
return (hAsync(Host, { key: 'dbd9dc5f552dd6a20d6a5e39efd636ced45df7cb' }, hAsync(HeadingTag, { key: '90ceffcb3383b8d167e11e42cb6a2e915ddeec1b', class: {
|
|
7976
8556
|
'section-heading': true,
|
|
7977
8557
|
'section-heading--small': this.size === 'small',
|
|
7978
8558
|
'section-heading--large': this.size === 'large',
|
|
7979
|
-
} }, hAsync("slot", { key: '
|
|
8559
|
+
} }, hAsync("slot", { key: 'dd861c58c3e59e0bb4b0e7195ecaaa55ffab4912' }, this.text))));
|
|
7980
8560
|
}
|
|
7981
8561
|
static get style() { return xplorSectionHeadingCss; }
|
|
7982
8562
|
static get cmpMeta() { return {
|
|
@@ -7984,7 +8564,8 @@ class XplorSectionHeading {
|
|
|
7984
8564
|
"$tagName$": "xplor-section-heading",
|
|
7985
8565
|
"$members$": {
|
|
7986
8566
|
"size": [1],
|
|
7987
|
-
"text": [1]
|
|
8567
|
+
"text": [1],
|
|
8568
|
+
"level": [2]
|
|
7988
8569
|
},
|
|
7989
8570
|
"$listeners$": undefined,
|
|
7990
8571
|
"$lazyBundleId$": "-",
|
|
@@ -8175,18 +8756,23 @@ class XplorTable {
|
|
|
8175
8756
|
if (this.hasScrolled)
|
|
8176
8757
|
className += ' xpl-table--has-scrolled';
|
|
8177
8758
|
const paginatedData = this.getPaginatedData();
|
|
8178
|
-
return (hAsync(Host, { key: '
|
|
8759
|
+
return (hAsync(Host, { key: 'da8ded4b349560e2272fd0ffa1395ffc04d92769', class: "xplor-table" }, hAsync("div", { key: '5cddb71e28a6eb512bbe0a209816fb8ba8050e22', class: "bg-white rounded-lg shadow-sm border border-gray-200 p-6 max-w-6xl mx-auto" }, hAsync("div", { key: '24abe132c8b2889e656f39b197dcb2348cf7c49b', class: "xpl-table-container", onScroll: this.onScroll, ref: (el) => {
|
|
8179
8760
|
this.container = el;
|
|
8180
|
-
} }, hAsync("div", { key: '
|
|
8761
|
+
} }, hAsync("div", { key: 'afd56f434c013d1175c198790562f60cbed5d6ce', class: "mb-6" }, hAsync("h1", { key: 'ba650cfc24623c63910f9dfb7547272dc2adbe68', class: "text-xl font-semibold text-gray-900 mb-4" }, "Head Counts Report"), hAsync("div", { key: '4150efe6295d6697a787322e6bc8550d82296b69', class: "flex flex-wrap items-center gap-4 mb-6" }, hAsync("div", { key: '1bef7dc05a99081de7b2cf0588c58fb4cd0cb429', class: "flex items-center gap-2" }, hAsync("label", { key: 'ce45f248fd5151412bd64f75038996e3febf09a1', class: "text-sm text-gray-600 font-medium" }, "Date Range"), hAsync("select", { key: 'cc7b10bb86619c119bb3d4f5ab5267f733ad7805', class: "border border-gray-300 rounded px-3 py-1.5 text-sm bg-white focus:outline-none focus:ring-2 focus:ring-teal-500 focus:border-teal-500",
|
|
8181
8762
|
// value={this.selectedDateRange}
|
|
8182
|
-
onInput: this.handleDateRangeChange }, hAsync("option", { key: '
|
|
8763
|
+
onInput: this.handleDateRangeChange }, hAsync("option", { key: '62474a4b5ad2fd7ba9f0806bf7bb26b487df04ff', value: "All" }, "All"), hAsync("option", { key: 'aba4fb209168ae645d87475f0467ba38ee258f7e', value: "Today" }, "Today"), hAsync("option", { key: '8203884e17bdcd012f90245dde1b9aec9abf16ed', value: "This Week" }, "This Week"), hAsync("option", { key: '7a721035e8d8e31d61869f7513b586e06d06b1e9', value: "This Month" }, "This Month"), hAsync("option", { key: '9a1d085c513236cb746cc9a6ebac1c48c8e35214', value: "Custom" }, "Custom Range")), hAsync("button", { key: '7119eae652a26a19f774fe2a3e2564a993937caa', class: "p-1.5 border border-gray-300 rounded hover:bg-gray-50" }, hAsync("svg", { key: 'c430ab8a591ebd2e9c7cf14dd0f0758419be1178', class: "w-4 h-4 text-gray-500", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" }, hAsync("path", { key: '8330e74a528e0890375f9277d8dc7481bb88e8f9', "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" })))), hAsync("button", { key: '85dc3c28587d7ce09cdb8dfe50e2b44f0f04b7c9', onClick: this.handleFilterReports, class: "bg-teal-600 hover:bg-teal-700 text-white px-4 py-1.5 rounded text-sm font-medium transition-colors" }, "Filter Reports"), hAsync("button", { key: '36d9d5fc49d73a0944c7abf1f5b96932d9789f0b', onClick: this.handleDownloadAll, class: "flex items-center gap-2 text-gray-600 hover:text-gray-800 text-sm" }, hAsync("svg", { key: '81cbf1b31e01c1d4fbba64b53b21bc26146d6f84', class: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" }, hAsync("path", { key: 'd3c68b2337d4a4ab9a8d218d9aa722814d548e1b', "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" })), "Download All"))), hAsync("table", { key: '782e125327cea0381296ab5a3f2e3ddec6f42f24', class: `w-full ${className}` }, this.columns && (hAsync("thead", { key: 'ad3958e4d04f974dd47136da227afb662ff6cc7f' }, this.columns.map((column, i) => {
|
|
8183
8764
|
const iconType = getIconType(this.sortTypeArray[i]);
|
|
8184
8765
|
const isColumnSortable = !!(this.isSortable &&
|
|
8185
8766
|
this.sortableColumns[i]);
|
|
8186
|
-
return (hAsync("th", { class: "text-left py-3 px-4 text-sm font-medium text-gray-600"
|
|
8767
|
+
return (hAsync("th", { class: "text-left py-3 px-4 text-sm font-medium text-gray-600", "aria-sort": isColumnSortable && this.sortTypeArray[i]
|
|
8768
|
+
? this.sortTypeArray[i] === 'asc'
|
|
8769
|
+
? 'ascending'
|
|
8770
|
+
: 'descending'
|
|
8771
|
+
: isColumnSortable
|
|
8772
|
+
? 'none'
|
|
8773
|
+
: undefined }, this.multiselect && i === 0 ? (hAsync("label", { onClick: (e) => {
|
|
8187
8774
|
e.preventDefault();
|
|
8188
8775
|
e.stopPropagation();
|
|
8189
|
-
debugger;
|
|
8190
8776
|
if (isColumnSortable) {
|
|
8191
8777
|
this.sortBy(i);
|
|
8192
8778
|
}
|
|
@@ -8200,11 +8786,11 @@ class XplorTable {
|
|
|
8200
8786
|
this.selected.some((a) => a), onClick: (e) => {
|
|
8201
8787
|
e.stopPropagation();
|
|
8202
8788
|
this.selectAll(e);
|
|
8203
|
-
}, type: "checkbox", value: `select-all-${this.selectAllValue}
|
|
8789
|
+
}, type: "checkbox", value: `select-all-${this.selectAllValue}`, "aria-label": "Select all rows" }), column, isColumnSortable &&
|
|
8204
8790
|
!!this.sortTypeArray[i] && (hAsync("xpl-icon", { icon: iconType, size: 16 })))) : (hAsync("label", { onClick: () => isColumnSortable &&
|
|
8205
8791
|
this.sortBy(i), class: isColumnSortable
|
|
8206
8792
|
? 'cursor-pointer'
|
|
8207
|
-
: '' }, column, isColumnSortable &&
|
|
8793
|
+
: '', "aria-label": isColumnSortable ? `Sort by ${column}` : undefined }, column, isColumnSortable &&
|
|
8208
8794
|
!!this.sortTypeArray[i] && (hAsync("svg", { width: "11", height: "6", viewBox: "0 0 11 6", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { d: "M10.5 5.5L5.5 0.5L0.5 5.5L10.5 5.5Z", fill: "currentColor" }))
|
|
8209
8795
|
// <xpl-icon
|
|
8210
8796
|
// icon={iconType}
|
|
@@ -8212,11 +8798,11 @@ class XplorTable {
|
|
|
8212
8798
|
// id="__xpl-icon-sort"
|
|
8213
8799
|
// ></xpl-icon>
|
|
8214
8800
|
)))));
|
|
8215
|
-
}))), hAsync("tbody", { key: '
|
|
8801
|
+
}))), hAsync("tbody", { key: '1168d8fb9e1f324b37abdc1e8a899bb14dedf786' }, paginatedData.map((row, rowNum) => (hAsync("tr", { class: `border-b border-gray-100 hover:bg-gray-50` }, row.map((cell, i) => (hAsync("td", { class: "py-3 px-4 text-sm text-gray-900" }, this.multiselect && i === 0 ? (hAsync("label", { class: "flex items-center gap-2", htmlFor: `__xpl-table-row-${rowNum}` }, hAsync("input", { id: `__xpl-table-row-${rowNum}`, checked: !!this.selected[rowNum], type: "checkbox", onChange: (e) => this.selectOne(e, rowNum), value: this.selectedValues
|
|
8216
8802
|
.length > 0
|
|
8217
8803
|
? this
|
|
8218
8804
|
.selectedValues[rowNum]
|
|
8219
|
-
: `xpl-table-checkbox-${rowNum}` }), hAsync("div", { innerHTML: cell }))) : (hAsync("div", { innerHTML: cell })))))))))), hAsync("div", { key: '
|
|
8805
|
+
: `xpl-table-checkbox-${rowNum}` }), hAsync("div", { innerHTML: cell }))) : (hAsync("div", { innerHTML: cell })))))))))), hAsync("div", { key: 'dddc5e97acb0270689af29fdfbb0a96018074f48', id: "pagination", class: "w-full flex items-center justify-between mt-6 text-sm" }, hAsync("div", { key: 'e7a37384aacfcd801b904082b028dd7b646b7938', class: "flex items-center gap-2" }, hAsync("button", { key: '0d099c93f970f255015df19a10736c76317f3d58', onClick: () => this.handlePagination('first'), class: "p-1.5 text-gray-400 hover:text-gray-600 disabled:opacity-50", disabled: this.currentPage === 1 }, hAsync("svg", { key: '3ef73d6177480ef3c6bb2e0ba3c11faf93fad40a', class: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" }, hAsync("path", { key: '61447e4f959176a412b9702dfd5f0c126dfd1dcf', "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M11 19l-7-7 7-7m8 14l-7-7 7-7" }))), hAsync("button", { key: '5d996706416e30beeb36b3ccf5f49a0f728c9d46', onClick: () => this.handlePagination('prev'), class: "p-1.5 text-gray-400 hover:text-gray-600 disabled:opacity-50", disabled: this.currentPage === 1 }, hAsync("svg", { key: 'a4e874b1db8cb252698f36497aebbfd8dfef9f7d', class: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" }, hAsync("path", { key: '9ea64241e49ebfdc43f26317c1403a0dec074a2e', "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M15 19l-7-7 7-7" })))), hAsync("span", { key: '25c2b77e2d374c782bef6907bbaa5f7d1c2b9a51', class: "text-gray-600" }, "Page ", this.currentPage, " of ", this.totalPages), hAsync("div", { key: '6586812fde391e75b56da67db64eeece80629dbc', class: "flex items-center gap-2" }, hAsync("button", { key: 'f63385fd3ccae39ecb97b10fc92f204fb3e2fd62', onClick: () => this.handlePagination('next'), class: "p-1.5 text-gray-400 hover:text-gray-600 disabled:opacity-50", disabled: this.currentPage === this.totalPages }, hAsync("svg", { key: '2024b6fa282b30ffcd8870dab2f50c0f1af0f4ef', class: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" }, hAsync("path", { key: '397312376d85ef4262c42f0f4382371aeb0c5eef', "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M9 5l7 7-7 7" }))), hAsync("button", { key: 'bb42b666d217a21b3f2b91b28eaa39a96ad403ba', onClick: () => this.handlePagination('last'), class: "p-1.5 text-gray-400 hover:text-gray-600 disabled:opacity-50", disabled: this.currentPage === this.totalPages }, hAsync("svg", { key: '2e8f28f57ef6fd799559ae70c3c9bc9d7d74cdc3', class: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" }, hAsync("path", { key: '02270640aefaf430f27acf75465bfc5b30d2a881', "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M13 5l7 7-7 7M5 5l7 7-7 7" })))))))));
|
|
8220
8806
|
}
|
|
8221
8807
|
get el() { return getElement(this); }
|
|
8222
8808
|
static get watchers() { return {
|
|
@@ -8257,11 +8843,11 @@ class XplorTextBubble {
|
|
|
8257
8843
|
this.color = 'orange';
|
|
8258
8844
|
}
|
|
8259
8845
|
render() {
|
|
8260
|
-
return (hAsync(Host, { key: '
|
|
8846
|
+
return (hAsync(Host, { key: 'bd93a7c09ef941a3c5a18b8b6b0704b2c9842b23' }, hAsync("div", { key: '234e72bed4c9cdf297901639130b452dd82392cf', class: {
|
|
8261
8847
|
'text-bubble': true,
|
|
8262
8848
|
'text-bubble--green': this.color === 'green',
|
|
8263
8849
|
'text-bubble--orange': this.color === 'orange',
|
|
8264
|
-
} }, hAsync("slot", { key: '
|
|
8850
|
+
} }, hAsync("slot", { key: '92c5fe22e00dd2506b15d49333ba8e31021d9bbf' }))));
|
|
8265
8851
|
}
|
|
8266
8852
|
static get style() { return xplorTextBubbleCss; }
|
|
8267
8853
|
static get cmpMeta() { return {
|
|
@@ -8408,10 +8994,10 @@ class XplorTextField {
|
|
|
8408
8994
|
}
|
|
8409
8995
|
render() {
|
|
8410
8996
|
const labelFloating = this.isFocused || this.hasValue;
|
|
8411
|
-
return (hAsync(Host, { key: '
|
|
8997
|
+
return (hAsync(Host, { key: '3c7117a290dc3f7157270b083559266c94ad21b8' }, hAsync("div", { key: 'f97ceed7ef938aed090f297d070cd240b658d8a7', class: this.computedClasses }, hAsync("div", { key: '81ba47f6a22762d85e33052765896949e87e824f', class: "xplor-text-field__wrapper", style: { backgroundColor: this.bgColor } }, hAsync("div", { key: '33190e56a1443af9e4891d4a166442daa52ecb79', class: "xplor-text-field__input-wrapper" }, this.label && (hAsync("label", { key: 'a44ab99f0e1719b2a93edcd7963c89476154f2f6', class: {
|
|
8412
8998
|
'xplor-text-field__label': true,
|
|
8413
8999
|
'xplor-text-field__label--floating': labelFloating,
|
|
8414
|
-
} }, hAsync("slot", { key: '
|
|
9000
|
+
} }, hAsync("slot", { key: 'c2299aedeb64c404c6bb7b6c0a29c9daae67fc44', name: "label" }, this.label), this.required && hAsync("span", { key: '0d6ed2e883c3a651986470ef89f7be59ba33a645', class: "xplor-text-field__required" }, "*"))), hAsync("input", { key: 'de966a8eb84dd86bd8a0e529561badffe71d3d46', ref: (el) => (this.inputElement = el), class: "xplor-text-field__input", type: this.type, value: this.value, placeholder: this.isFocused ? this.placeholder : '', disabled: this.disabled, readonly: this.readonly, required: this.required, maxlength: this.maxlength, min: this.min, max: this.max, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, "aria-invalid": this.hasError ? 'true' : 'false', "aria-describedby": this.hasError ? 'error-messages' : undefined }), hAsync("div", { key: 'b0bcd17da89b2f63f25d212f863d875489175a8c', class: "xplor-text-field__append-inner" }, this.clearable && this.hasValue && !this.disabled && !this.readonly && (hAsync("button", { key: '0cac263bf21ccc5536d62d420ce493e906811fd6', type: "button", class: "xplor-text-field__clear-btn", onClick: this.handleClear, "aria-label": "Clear" }, hAsync("svg", { key: '2c02a7e8a9dbe7f9d133fc3c3156389db914bf73', width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor" }, hAsync("path", { key: 'bfaf865c53bb90b7d14ba27e419ca131e4107bfd', d: "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z" })))), hAsync("slot", { key: '82eb809592dcc52a9c447c837b614d57e47f1678', name: "append-inner" })), hAsync("fieldset", { key: '828c5d47eab64b6ff91edd9d739c87fdaa88c589', class: "xplor-text-field__outline" }, hAsync("legend", { key: 'e1fef5e2002b8ea21c07c8f06272c6f53785f8b0', class: { 'xplor-text-field__outline-legend': true, 'xplor-text-field__outline-legend--floating': labelFloating } }, labelFloating && this.label ? hAsync("span", null, this.label, this.required && '*') : hAsync("span", null, "\u200B")))), hAsync("div", { key: 'f5d2af691c5e9adb1295bbc4eb74b5510ab203f6', class: "xplor-text-field__append" }, hAsync("slot", { key: '8b26d1a847bfbbecd77067d2addb2a555464684e', name: "append" }))), this.showDetails && (hAsync("div", { key: '63acbf8b66a619b74769b5aba9559da813e3081e', class: "xplor-text-field__details" }, this.hasError && (hAsync("div", { key: 'c1e72205a335a0cf361ebb1936d19a0a6e1f52fd', id: "error-messages", class: "xplor-text-field__error-messages" }, this.errorMessages.map((error) => (hAsync("div", { class: "xplor-text-field__error" }, error))))))))));
|
|
8415
9001
|
}
|
|
8416
9002
|
get el() { return getElement(this); }
|
|
8417
9003
|
static get watchers() { return {
|
|
@@ -8739,16 +9325,16 @@ class XplorTimePicker {
|
|
|
8739
9325
|
}
|
|
8740
9326
|
render() {
|
|
8741
9327
|
const showDetails = this.hideDetails === false || (this.hideDetails === 'auto' && this.error);
|
|
8742
|
-
const clockIcon = (hAsync("svg", { key: '
|
|
8743
|
-
return (hAsync(Host, { key: '
|
|
9328
|
+
const clockIcon = (hAsync("svg", { key: '4ceaab6e781f50e8a90c075c56cfadabb647d44a', class: "time-picker__icon-svg", viewBox: "0 0 24 24", width: "20", height: "20", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, hAsync("circle", { key: '468d7d3f69e93dfa1dbd1c57922c62747d0332fc', cx: "12", cy: "12", r: "10" }), hAsync("polyline", { key: 'c6e3f11bc952645e9016ff95b3a712394c4a22b8', points: "12 6 12 12 16 14" })));
|
|
9329
|
+
return (hAsync(Host, { key: 'c645e604a3e24895a27018db69116ab12f83f8bf' }, hAsync("div", { key: '67a035080a85b790df31f65292babdddf4e4e61b', class: {
|
|
8744
9330
|
'time-picker': true,
|
|
8745
9331
|
'time-picker--disabled': this.disabled,
|
|
8746
9332
|
'time-picker--error': !!this.error,
|
|
8747
9333
|
'time-picker--open': this.isOpen,
|
|
8748
|
-
} }, this.label && (hAsync("label", { key: '
|
|
8749
|
-
hAsync("div", { key: '
|
|
8750
|
-
hAsync("div", { key: '
|
|
8751
|
-
], hAsync("div", { key: '
|
|
9334
|
+
} }, this.label && (hAsync("label", { key: 'fc39aebaf65eb55a47e36b9e502329938a50deac', class: "time-picker__label" }, this.label, this.required && hAsync("span", { key: 'f55931cd0b55c17176fa0f3da333f44b57b7e6a9', class: "time-picker__required" }, "*"))), hAsync("div", { key: '3f4e57bf5c2973baaa0e53ec9bed0658e23c4c9c', class: "time-picker__field" }, hAsync("input", { key: 'd893bd5ed3793a2e3d4aae60f16846db6c3d84a4', type: "text", class: "time-picker__input", value: this.inputText, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, onInput: this.handleInputChange, style: { backgroundColor: this.bgColor } }), hAsync("div", { key: '7cb62a66b55645c2bc3c18a60abcb0098f4700d9', class: "time-picker__actions" }, this.clearable && this.value && !this.disabled && !this.readonly && (hAsync("button", { key: 'a547394c2508cddbcad2f3ebc52e7f361cab8f2e', type: "button", class: "time-picker__clear", onClick: this.handleClear, "aria-label": "Clear" }, "\u00D7")), hAsync("button", { key: '48bac21bb410015f81b539205bafad2f556ced51', type: "button", class: "time-picker__icon-btn", onClick: this.toggleDropdown, disabled: this.disabled, "aria-label": "Open time picker" }, clockIcon))), showDetails && (hAsync("div", { key: 'f10a2918e0d2cd57c7fc1d64f24e3fd4038463be', class: "time-picker__details" }, this.error && hAsync("div", { key: 'da588b32f0fb80a797b44df89a4526ab337ec491', class: "time-picker__error-message" }, this.error))), this.isOpen && (hAsync("div", { key: 'b23b28c312732c033a28bcb39f862311554d599c', class: "time-picker__dropdown" }, hAsync("div", { key: 'fd8811287be54584fac873644be6da4d9a90a918', class: "time-picker__columns" }, hAsync("div", { key: '9373ac9977bb02507c09673783ecc9fc34f796f6', class: "time-picker__column" }, hAsync("button", { key: '64506ff04f398acf50e11e15adfabfc8a6e2950a', type: "button", class: "time-picker__spinner-btn", onClick: this.incrementHours, "aria-label": "Increase hours" }, this.renderChevronUp()), hAsync("div", { key: 'b593fe8ea7cc1c1620f534a010d0828297845f8a', class: "time-picker__value" }, String(this.hours).padStart(2, '0')), hAsync("button", { key: '1b2729ac84afa3aa5cbace2b027a8be77de7453c', type: "button", class: "time-picker__spinner-btn", onClick: this.decrementHours, "aria-label": "Decrease hours" }, this.renderChevronDown())), hAsync("div", { key: 'cfc0910a6a02a6545d03dc6fd56dce45e389825b', class: "time-picker__separator" }, ":"), hAsync("div", { key: '084da53c62bfe3cfb2cf8843761509393541b82d', class: "time-picker__column" }, hAsync("button", { key: '017378d4bd006957267a242fd5da84bb5364626a', type: "button", class: "time-picker__spinner-btn", onClick: this.incrementMinutes, "aria-label": "Increase minutes" }, this.renderChevronUp()), hAsync("div", { key: '344202f97262fbf267b872927c054d1fbcc636c4', class: "time-picker__value" }, String(this.minutes).padStart(2, '0')), hAsync("button", { key: '690a243ddce9f3da11d172647202e65212e87b53', type: "button", class: "time-picker__spinner-btn", onClick: this.decrementMinutes, "aria-label": "Decrease minutes" }, this.renderChevronDown())), this.showSeconds && [
|
|
9335
|
+
hAsync("div", { key: '6ca3eae6b03f75773a39d1eb67b0db8cbf00021d', class: "time-picker__separator" }, ":"),
|
|
9336
|
+
hAsync("div", { key: 'ce31e8550cff9783229d58f866f5b2cab6b236e6', class: "time-picker__column" }, hAsync("button", { key: '6be3f03bb5cb13f95d9381e22ed4ef27a2c31786', type: "button", class: "time-picker__spinner-btn", onClick: this.incrementSeconds, "aria-label": "Increase seconds" }, this.renderChevronUp()), hAsync("div", { key: 'faae89dc8d1a40f7a91df944c33d6cb0347dab72', class: "time-picker__value" }, String(this.seconds).padStart(2, '0')), hAsync("button", { key: '2e6094b085acefb6b80c835fc49d6d0c6fcde192', type: "button", class: "time-picker__spinner-btn", onClick: this.decrementSeconds, "aria-label": "Decrease seconds" }, this.renderChevronDown()))
|
|
9337
|
+
], hAsync("div", { key: '2b029185906910cf1336726691b491bd8cd10421', class: "time-picker__column time-picker__column--period" }, hAsync("button", { key: 'a1cced2dca331985851a8b2a71733cdc75540339', type: "button", class: "time-picker__spinner-btn", onClick: this.togglePeriod, "aria-label": "Toggle AM/PM" }, this.renderChevronUp()), hAsync("div", { key: 'b17134d423b342cb077af961e9a684a985ed6f13', class: "time-picker__value time-picker__value--period" }, this.period), hAsync("button", { key: '4c4d04f7ba212eb7babccf6ec2ead94fa63dcb04', type: "button", class: "time-picker__spinner-btn", onClick: this.togglePeriod, "aria-label": "Toggle AM/PM" }, this.renderChevronDown()))))))));
|
|
8752
9338
|
}
|
|
8753
9339
|
get el() { return getElement(this); }
|
|
8754
9340
|
static get style() { return xplorTimePickerCss; }
|
|
@@ -8784,6 +9370,7 @@ class XplorTimePicker {
|
|
|
8784
9370
|
|
|
8785
9371
|
const xplorTooltipCss = "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n@layer base {\n \n :root {\n --color-primary: #db3b03;\n --color-primary-50: rgba(255, 152, 0, 1);\n --color-secondary: rgb(0, 119, 107);\n --color-secondary-50: rgba(1, 163, 157, 1);\n --color-tertiary: rgb(128, 104, 186);\n --color-tertiary: rgb(223, 242, 241);\n --color-white: white;\n --color-emphasis: rgb(8, 8, 9);\n --color-supergiant: rgb(213, 66, 99);\n --color-orange: rgb(250, 200, 127);\n --color-buttons: #fbbc05;\n --color-typography: #ea4335;\n --background: 20 66% 99%;\n --foreground: 20 51% 4%;\n --muted: 20 25% 86%;\n --muted-foreground: 20 7% 25%;\n --popover: 20 66% 98%;\n --popover-foreground: 20 51% 3%;\n --card: 20 66% 98%;\n --card-foreground: 20 51% 3%;\n --border: 20 15% 94%;\n --input: 20 15% 94%;\n --primary: 20 48% 72%;\n --primary-foreground: 20 48% 12%;\n --secondary: 20 12% 92%;\n --secondary-foreground: 20 12% 32%;\n --accent: 20 12% 92%;\n --accent-foreground: 20 12% 32%;\n --destructive: 11 80% 22%;\n --destructive-foreground: 11 80% 82%;\n --ring: 20 48% 72%;\n --radius: 0.5rem;\n --chart-1: 12 76% 61%;\n --chart-2: 173 58% 39%;\n --chart-3: 197 37% 24%;\n --chart-4: 43 74% 66%;\n --chart-5: 27 87% 67%;\n }\n .dark {\n --background: 253 43% 3%;\n --foreground: 253 31% 98%;\n --muted: 253 7% 13%;\n --muted-foreground: 253 13% 63%;\n --popover: 253 43% 3%;\n --popover-foreground: 253 31% 98%;\n --card: 253 43% 4%;\n --card-foreground: 253 31% 99%;\n --border: 215 27.9% 16.9%;\n --input: 215 27.9% 16.9%;\n --primary: 253 91% 58%;\n --primary-foreground: 253 91% 98%;\n --secondary: 253 7% 9%;\n --secondary-foreground: 253 7% 69%;\n --accent: 253 13% 14%;\n --accent-foreground: 253 13% 74%;\n --destructive: 339.2 90.36% 51.18%;\n --destructive-foreground: 0 0% 100%;\n --ring: 253 91% 58%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n }\n}\n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply box-border bg-background text-foreground;\n }\n}\n@layer utilities {\n .min-h-screen {\n min-height: 100vh;\n \n min-height: 100dvh;\n }\n .h-screen {\n height: 100vh;\n \n height: 100dvh;\n }\n}\n@tailwind base;\n@tailwind components;\n@tailwind utilities;\n@layer components {\n .glass {\n border: none;\n backdrop-filter: blur(var(--glass-blur, 40px));\n background-color: transparent;\n background-image: linear-gradient(135deg, rgb(255, 255, 255, var(--glass-opacity, 30%)), transparent), linear-gradient(var(--glass-reflex-degree, 100deg), rgb(255, 255, 255, var(--glass-reflex-opacity, 10%)) 25%, transparent 0);\n box-shadow: 0 0 0 1px rgb(255, 255, 255, var(--glass-border-opacity, 10%)) inset, 0 0 0 2px rgba(0, 0, 0, 0.05);\n text-shadow: 0 1px rgb(0, 0, 0, var(--glass-text-shadow-opacity, 5%));\n }\n}\n.tox.tox-tinymce.sc-xplor-tooltip {\n width: 50% !important;\n height: 400px !important;\n display: inline-flex;\n}\n\n\n@media only screen and (min-width: 600px) {\n .tox.tox-tinymce.sc-xplor-tooltip {\n width: 600px !important;\n }\n}\nh1.sc-xplor-tooltip {\n color: var(--color-primary);\n \n font-family: Inter;\n font-size: 48px;\n font-style: normal;\n font-weight: 400;\n line-height: 56px; \n}\n\nh2.sc-xplor-tooltip {\n color: var(--grey-1100252525, #252525);\n \n font-family: Inter;\n font-size: 32px;\n font-style: normal;\n font-weight: 600;\n line-height: 38px; \n letter-spacing: 0.25px;\n}\n\nh3.sc-xplor-tooltip {\n color: var(--grey-1100252525, #252525);\n \n font-family: Inter;\n font-size: 24px;\n font-style: normal;\n font-weight: 400;\n line-height: 32px; \n}\n\n.overline.sc-xplor-tooltip {\n color: var(--grey-1100252525, #252525);\n \n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 16px; \n letter-spacing: 3.2px;\n text-transform: uppercase;\n}\n\nol.sc-xplor-tooltip, ul.sc-xplor-tooltip {\n list-style: none;\n margin: 1rem;\n padding: 0;\n}\nol.sc-xplor-tooltip li.sc-xplor-tooltip, ul.sc-xplor-tooltip li.sc-xplor-tooltip {\n margin: 1rem;\n padding: 0;\n}\nol.mdc-list.sc-xplor-tooltip, ul.mdc-list.sc-xplor-tooltip {\n list-style-type: none;\n list-style: none;\n}\nol.mdc-list.sc-xplor-tooltip li.mdc-list-item.sc-xplor-tooltip, ul.mdc-list.sc-xplor-tooltip li.mdc-list-item.sc-xplor-tooltip {\n list-style-type: none;\n list-style: none !important;\n}\n\n.orange-label.sc-xplor-tooltip {\n color: var(--Orange-900-Primary, #db3b03);\n \n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; \n letter-spacing: 0.4px;\n margin: 0px 0 -9px 16px;\n z-index: 1 !important;\n position: relative;\n width: fit-content;\n}\n.orange-label.grey-bg.sc-xplor-tooltip {\n background-color: #fefcfb;\n}\n\n#spinnerLoader.sc-xplor-tooltip {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: #fff;\n padding: 20px;\n border-radius: 5px;\n box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 100;\n pointer-events: none;\n}\n\n#textfield-Title-label.sc-xplor-tooltip {\n background-color: white;\n}\n\n.mdc-ripple-upgraded.sc-xplor-tooltip .mdc-text-field--outlined.sc-xplor-tooltip .mdc-notched-outline__notch.sc-xplor-tooltip {\n border: 0px solid transparent !important;\n border-bottom: 1px solid #db3b03 !important;\n padding: 0;\n height: 0;\n}\n\n.mdc-text-field--focused.sc-xplor-tooltip .mdc-notched-outline__notch.sc-xplor-tooltip {\n border: 0px solid transparent !important;\n border-bottom: 2px solid #db3b03 !important;\n}\n\n.mdc-text-field--outlined.sc-xplor-tooltip .mdc-notched-outline.sc-xplor-tooltip .mdc-notched-outline__notch.sc-xplor-tooltip {\n max-width: calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2);\n border-top: transparent;\n}\n\n.generate-btn.sc-xplor-tooltip {\n display: flex;\n height: 48px;\n padding: 12px 24px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n border-radius: 16px;\n}\n.generate-btn.link.sc-xplor-tooltip:hover {\n background-color: var(--Cyan-700-Secondary, #e27046);\n color: var(--Cyan-700-Secondary-Text, #fff);\n}\n\n.bg-green.sc-xplor-tooltip {\n background: var(--Cyan-700-Secondary, #00776b);\n}\n\n.sc-xplor-tooltip-h {\n display: inline-block;\n position: relative;\n}\n\n.tooltip-trigger.sc-xplor-tooltip {\n display: inline-flex;\n cursor: pointer;\n}\n\n.tooltip.sc-xplor-tooltip {\n position: fixed;\n z-index: 9999;\n background-color: #424242;\n color: #fff;\n border-radius: 4px;\n padding: 0.5rem 0.75rem;\n font-size: 0.875rem;\n line-height: 1.4;\n max-width: 300px;\n word-wrap: break-word;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n pointer-events: none;\n opacity: 0;\n animation: tooltipFadeIn 0.2s ease forwards;\n}\n\n@keyframes tooltipFadeIn {\n from {\n opacity: 0;\n transform: scale(0.9);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n.tooltip__content.sc-xplor-tooltip {\n position: relative;\n z-index: 1;\n}\n\n.tooltip__arrow.sc-xplor-tooltip {\n position: absolute;\n width: 12px;\n height: 12px;\n background-color: #424242;\n z-index: 0;\n}\n\n.tooltip--top.sc-xplor-tooltip .tooltip__arrow.sc-xplor-tooltip {\n margin-top: -6px;\n box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);\n}\n\n.tooltip--bottom.sc-xplor-tooltip .tooltip__arrow.sc-xplor-tooltip {\n box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.1);\n}\n\n.tooltip--left.sc-xplor-tooltip .tooltip__arrow.sc-xplor-tooltip {\n margin-left: -6px;\n display: block;\n box-shadow: 2px -2px 4px rgba(0, 0, 0, 0.1);\n}\n\n.tooltip--right.sc-xplor-tooltip .tooltip__arrow.sc-xplor-tooltip {\n box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.1);\n}";
|
|
8786
9372
|
|
|
9373
|
+
let tooltipIdCounter = 0;
|
|
8787
9374
|
class XplorTooltip {
|
|
8788
9375
|
constructor(hostRef) {
|
|
8789
9376
|
registerInstance(this, hostRef);
|
|
@@ -8794,6 +9381,7 @@ class XplorTooltip {
|
|
|
8794
9381
|
this.disabled = false;
|
|
8795
9382
|
this.tooltipStyle = {};
|
|
8796
9383
|
this.arrowStyle = {};
|
|
9384
|
+
this.tooltipId = `xplor-tooltip-${++tooltipIdCounter}`;
|
|
8797
9385
|
this.handleMouseEnter = () => {
|
|
8798
9386
|
if (this.disabled)
|
|
8799
9387
|
return;
|
|
@@ -8809,6 +9397,16 @@ class XplorTooltip {
|
|
|
8809
9397
|
this.hideTooltip();
|
|
8810
9398
|
}, 100);
|
|
8811
9399
|
};
|
|
9400
|
+
this.handleFocusIn = () => {
|
|
9401
|
+
if (this.disabled)
|
|
9402
|
+
return;
|
|
9403
|
+
this.showTooltip();
|
|
9404
|
+
};
|
|
9405
|
+
this.handleFocusOut = () => {
|
|
9406
|
+
if (this.disabled)
|
|
9407
|
+
return;
|
|
9408
|
+
this.hideTooltip();
|
|
9409
|
+
};
|
|
8812
9410
|
this.handleClick = () => {
|
|
8813
9411
|
if (this.disabled)
|
|
8814
9412
|
return;
|
|
@@ -8835,12 +9433,16 @@ class XplorTooltip {
|
|
|
8835
9433
|
if (this.triggerEl) {
|
|
8836
9434
|
this.triggerEl.addEventListener('mouseenter', this.handleMouseEnter);
|
|
8837
9435
|
this.triggerEl.addEventListener('mouseleave', this.handleMouseLeave);
|
|
9436
|
+
this.triggerEl.addEventListener('focusin', this.handleFocusIn);
|
|
9437
|
+
this.triggerEl.addEventListener('focusout', this.handleFocusOut);
|
|
8838
9438
|
}
|
|
8839
9439
|
}
|
|
8840
9440
|
cleanupListeners() {
|
|
8841
9441
|
if (this.triggerEl) {
|
|
8842
9442
|
this.triggerEl.removeEventListener('mouseenter', this.handleMouseEnter);
|
|
8843
9443
|
this.triggerEl.removeEventListener('mouseleave', this.handleMouseLeave);
|
|
9444
|
+
this.triggerEl.removeEventListener('focusin', this.handleFocusIn);
|
|
9445
|
+
this.triggerEl.removeEventListener('focusout', this.handleFocusOut);
|
|
8844
9446
|
}
|
|
8845
9447
|
}
|
|
8846
9448
|
handleDocumentClick(event) {
|
|
@@ -8925,10 +9527,10 @@ class XplorTooltip {
|
|
|
8925
9527
|
};
|
|
8926
9528
|
}
|
|
8927
9529
|
render() {
|
|
8928
|
-
return (hAsync(Host, { key: '
|
|
9530
|
+
return (hAsync(Host, { key: '135c627d93956798eef4e842ec256a0f156c771a' }, hAsync("div", { key: '1a4253fa4f893d7726227c346c9ebc850c7ee463', class: "tooltip-trigger", ref: (el) => (this.triggerEl = el), onClick: this.handleClick, "aria-describedby": this.open ? this.tooltipId : undefined }, hAsync("slot", { key: '8970f94fa612b40e573a66102533b1f54387b9b2', name: "trigger" })), this.open && (hAsync("div", { key: 'c1b873e3b9ccaf8747c772672282e63615528be7', class: {
|
|
8929
9531
|
'tooltip': true,
|
|
8930
9532
|
[`tooltip--${this.position}`]: true,
|
|
8931
|
-
}, style: this.tooltipStyle, ref: (el) => (this.tooltipEl = el), role: "tooltip" }, hAsync("div", { key: '
|
|
9533
|
+
}, style: this.tooltipStyle, ref: (el) => (this.tooltipEl = el), role: "tooltip", id: this.tooltipId }, hAsync("div", { key: '93af160a6f7fc1776ca358f3f91f0fecb381ce8d', class: "tooltip__content" }, hAsync("slot", { key: 'cb1c56d228c3f494d668dad73e2af6b303af9f42' }, this.content)), this.arrow && (hAsync("div", { key: '9d528e58c6b772c4b72096533bdb1f0df710aa8f', class: "tooltip__arrow", style: this.arrowStyle }))))));
|
|
8932
9534
|
}
|
|
8933
9535
|
get el() { return getElement(this); }
|
|
8934
9536
|
static get style() { return xplorTooltipCss; }
|