@xplor-education/core-stencil-components 2.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/LICENSE +21 -0
- package/components/index.d.ts +33 -0
- package/components/index.js +2324 -0
- package/components/index.js.map +1 -0
- package/components/p-B1W2qj2l.js +50 -0
- package/components/p-B1W2qj2l.js.map +1 -0
- package/components/p-BK_ATKuB.js +37 -0
- package/components/p-BK_ATKuB.js.map +1 -0
- package/components/p-CBSi5kQB.js +56 -0
- package/components/p-CBSi5kQB.js.map +1 -0
- package/components/p-CTD6SyTD.js +181 -0
- package/components/p-CTD6SyTD.js.map +1 -0
- package/components/p-Ddr35stE.js +117 -0
- package/components/p-Ddr35stE.js.map +1 -0
- package/components/p-x30CgLRv.js +184 -0
- package/components/p-x30CgLRv.js.map +1 -0
- package/components/xplor-alert-dialog.d.ts +11 -0
- package/components/xplor-alert-dialog.js +85 -0
- package/components/xplor-alert-dialog.js.map +1 -0
- package/components/xplor-alert-message.d.ts +11 -0
- package/components/xplor-alert-message.js +48 -0
- package/components/xplor-alert-message.js.map +1 -0
- package/components/xplor-assistant.d.ts +11 -0
- package/components/xplor-assistant.js +763 -0
- package/components/xplor-assistant.js.map +1 -0
- package/components/xplor-autocomplete.d.ts +11 -0
- package/components/xplor-autocomplete.js +268 -0
- package/components/xplor-autocomplete.js.map +1 -0
- package/components/xplor-avatar-and-name.d.ts +11 -0
- package/components/xplor-avatar-and-name.js +48 -0
- package/components/xplor-avatar-and-name.js.map +1 -0
- package/components/xplor-avatar.d.ts +11 -0
- package/components/xplor-avatar.js +9 -0
- package/components/xplor-avatar.js.map +1 -0
- package/components/xplor-badge-active.d.ts +11 -0
- package/components/xplor-badge-active.js +35 -0
- package/components/xplor-badge-active.js.map +1 -0
- package/components/xplor-badge-archived.d.ts +11 -0
- package/components/xplor-badge-archived.js +35 -0
- package/components/xplor-badge-archived.js.map +1 -0
- package/components/xplor-badge-deleted.d.ts +11 -0
- package/components/xplor-badge-deleted.js +35 -0
- package/components/xplor-badge-deleted.js.map +1 -0
- package/components/xplor-badge-expired.d.ts +11 -0
- package/components/xplor-badge-expired.js +35 -0
- package/components/xplor-badge-expired.js.map +1 -0
- package/components/xplor-badge-inactive.d.ts +11 -0
- package/components/xplor-badge-inactive.js +35 -0
- package/components/xplor-badge-inactive.js.map +1 -0
- package/components/xplor-badge-recalled.d.ts +11 -0
- package/components/xplor-badge-recalled.js +35 -0
- package/components/xplor-badge-recalled.js.map +1 -0
- package/components/xplor-badge-session-booking.d.ts +11 -0
- package/components/xplor-badge-session-booking.js +60 -0
- package/components/xplor-badge-session-booking.js.map +1 -0
- package/components/xplor-badge-upcoming.d.ts +11 -0
- package/components/xplor-badge-upcoming.js +35 -0
- package/components/xplor-badge-upcoming.js.map +1 -0
- package/components/xplor-badge-waitlist.d.ts +11 -0
- package/components/xplor-badge-waitlist.js +35 -0
- package/components/xplor-badge-waitlist.js.map +1 -0
- package/components/xplor-badge.d.ts +11 -0
- package/components/xplor-badge.js +151 -0
- package/components/xplor-badge.js.map +1 -0
- package/components/xplor-btn-back-to-parent.d.ts +11 -0
- package/components/xplor-btn-back-to-parent.js +72 -0
- package/components/xplor-btn-back-to-parent.js.map +1 -0
- package/components/xplor-btn-back.d.ts +11 -0
- package/components/xplor-btn-back.js +76 -0
- package/components/xplor-btn-back.js.map +1 -0
- package/components/xplor-btn-icon.d.ts +11 -0
- package/components/xplor-btn-icon.js +77 -0
- package/components/xplor-btn-icon.js.map +1 -0
- package/components/xplor-btn-menu.d.ts +11 -0
- package/components/xplor-btn-menu.js +105 -0
- package/components/xplor-btn-menu.js.map +1 -0
- package/components/xplor-btn-toggle-group.d.ts +11 -0
- package/components/xplor-btn-toggle-group.js +46 -0
- package/components/xplor-btn-toggle-group.js.map +1 -0
- package/components/xplor-btn-toggle-secondary.d.ts +11 -0
- package/components/xplor-btn-toggle-secondary.js +64 -0
- package/components/xplor-btn-toggle-secondary.js.map +1 -0
- package/components/xplor-btn-toggle.d.ts +11 -0
- package/components/xplor-btn-toggle.js +69 -0
- package/components/xplor-btn-toggle.js.map +1 -0
- package/components/xplor-btn-tooltip.d.ts +11 -0
- package/components/xplor-btn-tooltip.js +58 -0
- package/components/xplor-btn-tooltip.js.map +1 -0
- package/components/xplor-button.d.ts +11 -0
- package/components/xplor-button.js +9 -0
- package/components/xplor-button.js.map +1 -0
- package/components/xplor-chat-widget.d.ts +11 -0
- package/components/xplor-chat-widget.js +104 -0
- package/components/xplor-chat-widget.js.map +1 -0
- package/components/xplor-checkbox.d.ts +11 -0
- package/components/xplor-checkbox.js +124 -0
- package/components/xplor-checkbox.js.map +1 -0
- package/components/xplor-combobox.d.ts +11 -0
- package/components/xplor-combobox.js +278 -0
- package/components/xplor-combobox.js.map +1 -0
- package/components/xplor-datatable.d.ts +11 -0
- package/components/xplor-datatable.js +243 -0
- package/components/xplor-datatable.js.map +1 -0
- package/components/xplor-date-picker.d.ts +11 -0
- package/components/xplor-date-picker.js +268 -0
- package/components/xplor-date-picker.js.map +1 -0
- package/components/xplor-drag-and-drop-input.d.ts +11 -0
- package/components/xplor-drag-and-drop-input.js +137 -0
- package/components/xplor-drag-and-drop-input.js.map +1 -0
- package/components/xplor-dropdown.d.ts +11 -0
- package/components/xplor-dropdown.js +9 -0
- package/components/xplor-dropdown.js.map +1 -0
- package/components/xplor-expansion-panel.d.ts +11 -0
- package/components/xplor-expansion-panel.js +74 -0
- package/components/xplor-expansion-panel.js.map +1 -0
- package/components/xplor-expansion-panels.d.ts +11 -0
- package/components/xplor-expansion-panels.js +70 -0
- package/components/xplor-expansion-panels.js.map +1 -0
- package/components/xplor-file-upload.d.ts +11 -0
- package/components/xplor-file-upload.js +183 -0
- package/components/xplor-file-upload.js.map +1 -0
- package/components/xplor-inline-checkbox.d.ts +11 -0
- package/components/xplor-inline-checkbox.js +75 -0
- package/components/xplor-inline-checkbox.js.map +1 -0
- package/components/xplor-inline-date-picker.d.ts +11 -0
- package/components/xplor-inline-date-picker.js +9 -0
- package/components/xplor-inline-date-picker.js.map +1 -0
- package/components/xplor-inline-switch.d.ts +11 -0
- package/components/xplor-inline-switch.js +68 -0
- package/components/xplor-inline-switch.js.map +1 -0
- package/components/xplor-input-file.d.ts +11 -0
- package/components/xplor-input-file.js +121 -0
- package/components/xplor-input-file.js.map +1 -0
- package/components/xplor-input-search.d.ts +11 -0
- package/components/xplor-input-search.js +89 -0
- package/components/xplor-input-search.js.map +1 -0
- package/components/xplor-input-select.d.ts +11 -0
- package/components/xplor-input-select.js +168 -0
- package/components/xplor-input-select.js.map +1 -0
- package/components/xplor-input-send.d.ts +11 -0
- package/components/xplor-input-send.js +87 -0
- package/components/xplor-input-send.js.map +1 -0
- package/components/xplor-input-text-area.d.ts +11 -0
- package/components/xplor-input-text-area.js +131 -0
- package/components/xplor-input-text-area.js.map +1 -0
- package/components/xplor-input-text-secondary.d.ts +11 -0
- package/components/xplor-input-text-secondary.js +94 -0
- package/components/xplor-input-text-secondary.js.map +1 -0
- package/components/xplor-input-text.d.ts +11 -0
- package/components/xplor-input-text.js +129 -0
- package/components/xplor-input-text.js.map +1 -0
- package/components/xplor-input-title.d.ts +11 -0
- package/components/xplor-input-title.js +68 -0
- package/components/xplor-input-title.js.map +1 -0
- package/components/xplor-links.d.ts +11 -0
- package/components/xplor-links.js +38 -0
- package/components/xplor-links.js.map +1 -0
- package/components/xplor-modal-persistent.d.ts +11 -0
- package/components/xplor-modal-persistent.js +65 -0
- package/components/xplor-modal-persistent.js.map +1 -0
- package/components/xplor-modal.d.ts +11 -0
- package/components/xplor-modal.js +9 -0
- package/components/xplor-modal.js.map +1 -0
- package/components/xplor-nav-tabs.d.ts +11 -0
- package/components/xplor-nav-tabs.js +58 -0
- package/components/xplor-nav-tabs.js.map +1 -0
- package/components/xplor-section-card.d.ts +11 -0
- package/components/xplor-section-card.js +46 -0
- package/components/xplor-section-card.js.map +1 -0
- package/components/xplor-section-heading.d.ts +11 -0
- package/components/xplor-section-heading.js +43 -0
- package/components/xplor-section-heading.js.map +1 -0
- package/components/xplor-table.d.ts +11 -0
- package/components/xplor-table.js +275 -0
- package/components/xplor-table.js.map +1 -0
- package/components/xplor-text-bubble.d.ts +11 -0
- package/components/xplor-text-bubble.js +42 -0
- package/components/xplor-text-bubble.js.map +1 -0
- package/components/xplor-text-field.d.ts +11 -0
- package/components/xplor-text-field.js +190 -0
- package/components/xplor-text-field.js.map +1 -0
- package/components/xplor-time-picker.d.ts +11 -0
- package/components/xplor-time-picker.js +348 -0
- package/components/xplor-time-picker.js.map +1 -0
- package/components/xplor-tooltip.d.ts +11 -0
- package/components/xplor-tooltip.js +9 -0
- package/components/xplor-tooltip.js.map +1 -0
- package/dist/cjs/index-Bc5o_4vY.js +2594 -0
- package/dist/cjs/index-Bc5o_4vY.js.map +1 -0
- package/dist/cjs/index.cjs.js +5 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/xplor-alert-dialog_57.cjs.entry.js +4750 -0
- package/dist/cjs/xplor-alert-dialog_57.cjs.entry.js.map +1 -0
- package/dist/cjs/xplor-component-library.cjs.js +27 -0
- package/dist/cjs/xplor-component-library.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +69 -0
- package/dist/collection/components/element-interface.js +2 -0
- package/dist/collection/components/element-interface.js.map +1 -0
- package/dist/collection/components/helpers.js +129 -0
- package/dist/collection/components/helpers.js.map +1 -0
- package/dist/collection/components/xplor-alert-dialog/xplor-alert-dialog.css +348 -0
- package/dist/collection/components/xplor-alert-dialog/xplor-alert-dialog.js +163 -0
- package/dist/collection/components/xplor-alert-dialog/xplor-alert-dialog.js.map +1 -0
- package/dist/collection/components/xplor-alert-message/xplor-alert-message.css +352 -0
- package/dist/collection/components/xplor-alert-message/xplor-alert-message.js +110 -0
- package/dist/collection/components/xplor-alert-message/xplor-alert-message.js.map +1 -0
- package/dist/collection/components/xplor-assistant/internal/AssistantInput.js +39 -0
- package/dist/collection/components/xplor-assistant/internal/AssistantInput.js.map +1 -0
- package/dist/collection/components/xplor-assistant/internal/AssistantMessage.js +35 -0
- package/dist/collection/components/xplor-assistant/internal/AssistantMessage.js.map +1 -0
- package/dist/collection/components/xplor-assistant/internal/QuickReplies.js +13 -0
- package/dist/collection/components/xplor-assistant/internal/QuickReplies.js.map +1 -0
- package/dist/collection/components/xplor-assistant/internal/TypingIndicator.js +9 -0
- package/dist/collection/components/xplor-assistant/internal/TypingIndicator.js.map +1 -0
- package/dist/collection/components/xplor-assistant/internal/types.js +2 -0
- package/dist/collection/components/xplor-assistant/internal/types.js.map +1 -0
- package/dist/collection/components/xplor-assistant/utils/api.js +138 -0
- package/dist/collection/components/xplor-assistant/utils/api.js.map +1 -0
- package/dist/collection/components/xplor-assistant/utils/icons.js +53 -0
- package/dist/collection/components/xplor-assistant/utils/icons.js.map +1 -0
- package/dist/collection/components/xplor-assistant/utils/speech.js +230 -0
- package/dist/collection/components/xplor-assistant/utils/speech.js.map +1 -0
- package/dist/collection/components/xplor-assistant/xplor-assistant.css +1384 -0
- package/dist/collection/components/xplor-assistant/xplor-assistant.js +675 -0
- package/dist/collection/components/xplor-assistant/xplor-assistant.js.map +1 -0
- package/dist/collection/components/xplor-autocomplete/xplor-autocomplete.css +458 -0
- package/dist/collection/components/xplor-autocomplete/xplor-autocomplete.js +613 -0
- package/dist/collection/components/xplor-autocomplete/xplor-autocomplete.js.map +1 -0
- package/dist/collection/components/xplor-avatar/avatar.stories.js +175 -0
- package/dist/collection/components/xplor-avatar/avatar.stories.js.map +1 -0
- package/dist/collection/components/xplor-avatar/xplor-avatar.css +271 -0
- package/dist/collection/components/xplor-avatar/xplor-avatar.js +186 -0
- package/dist/collection/components/xplor-avatar/xplor-avatar.js.map +1 -0
- package/dist/collection/components/xplor-avatar-and-name/xplor-avatar-and-name.css +284 -0
- package/dist/collection/components/xplor-avatar-and-name/xplor-avatar-and-name.js +122 -0
- package/dist/collection/components/xplor-avatar-and-name/xplor-avatar-and-name.js.map +1 -0
- package/dist/collection/components/xplor-badge/xplor-badge.css +1100 -0
- package/dist/collection/components/xplor-badge/xplor-badge.js +273 -0
- package/dist/collection/components/xplor-badge/xplor-badge.js.map +1 -0
- package/dist/collection/components/xplor-badge-active/xplor-badge-active.css +280 -0
- package/dist/collection/components/xplor-badge-active/xplor-badge-active.js +19 -0
- package/dist/collection/components/xplor-badge-active/xplor-badge-active.js.map +1 -0
- package/dist/collection/components/xplor-badge-archived/xplor-badge-archived.css +280 -0
- package/dist/collection/components/xplor-badge-archived/xplor-badge-archived.js +19 -0
- package/dist/collection/components/xplor-badge-archived/xplor-badge-archived.js.map +1 -0
- package/dist/collection/components/xplor-badge-deleted/xplor-badge-deleted.css +280 -0
- package/dist/collection/components/xplor-badge-deleted/xplor-badge-deleted.js +19 -0
- package/dist/collection/components/xplor-badge-deleted/xplor-badge-deleted.js.map +1 -0
- package/dist/collection/components/xplor-badge-expired/xplor-badge-expired.css +280 -0
- package/dist/collection/components/xplor-badge-expired/xplor-badge-expired.js +19 -0
- package/dist/collection/components/xplor-badge-expired/xplor-badge-expired.js.map +1 -0
- package/dist/collection/components/xplor-badge-inactive/xplor-badge-inactive.css +280 -0
- package/dist/collection/components/xplor-badge-inactive/xplor-badge-inactive.js +19 -0
- package/dist/collection/components/xplor-badge-inactive/xplor-badge-inactive.js.map +1 -0
- package/dist/collection/components/xplor-badge-recalled/xplor-badge-recalled.css +280 -0
- package/dist/collection/components/xplor-badge-recalled/xplor-badge-recalled.js +19 -0
- package/dist/collection/components/xplor-badge-recalled/xplor-badge-recalled.js.map +1 -0
- package/dist/collection/components/xplor-badge-session-booking/xplor-badge-session-booking.css +300 -0
- package/dist/collection/components/xplor-badge-session-booking/xplor-badge-session-booking.js +93 -0
- package/dist/collection/components/xplor-badge-session-booking/xplor-badge-session-booking.js.map +1 -0
- package/dist/collection/components/xplor-badge-upcoming/xplor-badge-upcoming.css +280 -0
- package/dist/collection/components/xplor-badge-upcoming/xplor-badge-upcoming.js +19 -0
- package/dist/collection/components/xplor-badge-upcoming/xplor-badge-upcoming.js.map +1 -0
- package/dist/collection/components/xplor-badge-waitlist/xplor-badge-waitlist.css +280 -0
- package/dist/collection/components/xplor-badge-waitlist/xplor-badge-waitlist.js +19 -0
- package/dist/collection/components/xplor-badge-waitlist/xplor-badge-waitlist.js.map +1 -0
- package/dist/collection/components/xplor-btn-back/xplor-btn-back.css +306 -0
- package/dist/collection/components/xplor-btn-back/xplor-btn-back.js +182 -0
- package/dist/collection/components/xplor-btn-back/xplor-btn-back.js.map +1 -0
- package/dist/collection/components/xplor-btn-back-to-parent/xplor-btn-back-to-parent.css +306 -0
- package/dist/collection/components/xplor-btn-back-to-parent/xplor-btn-back-to-parent.js +173 -0
- package/dist/collection/components/xplor-btn-back-to-parent/xplor-btn-back-to-parent.js.map +1 -0
- package/dist/collection/components/xplor-btn-icon/xplor-btn-icon.css +370 -0
- package/dist/collection/components/xplor-btn-icon/xplor-btn-icon.js +183 -0
- package/dist/collection/components/xplor-btn-icon/xplor-btn-icon.js.map +1 -0
- package/dist/collection/components/xplor-btn-menu/xplor-btn-menu.css +327 -0
- package/dist/collection/components/xplor-btn-menu/xplor-btn-menu.js +238 -0
- package/dist/collection/components/xplor-btn-menu/xplor-btn-menu.js.map +1 -0
- package/dist/collection/components/xplor-btn-toggle/xplor-btn-toggle.css +312 -0
- package/dist/collection/components/xplor-btn-toggle/xplor-btn-toggle.js +151 -0
- package/dist/collection/components/xplor-btn-toggle/xplor-btn-toggle.js.map +1 -0
- package/dist/collection/components/xplor-btn-toggle-group/xplor-btn-toggle-group.css +278 -0
- package/dist/collection/components/xplor-btn-toggle-group/xplor-btn-toggle-group.js +73 -0
- package/dist/collection/components/xplor-btn-toggle-group/xplor-btn-toggle-group.js.map +1 -0
- package/dist/collection/components/xplor-btn-toggle-secondary/xplor-btn-toggle-secondary.css +314 -0
- package/dist/collection/components/xplor-btn-toggle-secondary/xplor-btn-toggle-secondary.js +127 -0
- package/dist/collection/components/xplor-btn-toggle-secondary/xplor-btn-toggle-secondary.js.map +1 -0
- package/dist/collection/components/xplor-btn-tooltip/xplor-btn-tooltip.css +271 -0
- package/dist/collection/components/xplor-btn-tooltip/xplor-btn-tooltip.js +164 -0
- package/dist/collection/components/xplor-btn-tooltip/xplor-btn-tooltip.js.map +1 -0
- package/dist/collection/components/xplor-button/xplor-button.css +1253 -0
- package/dist/collection/components/xplor-button/xplor-button.js +212 -0
- package/dist/collection/components/xplor-button/xplor-button.js.map +1 -0
- package/dist/collection/components/xplor-button/xplor-buttons.stories.js +49 -0
- package/dist/collection/components/xplor-button/xplor-buttons.stories.js.map +1 -0
- package/dist/collection/components/xplor-chat-widget/xplor-chat-widget.css +276 -0
- package/dist/collection/components/xplor-chat-widget/xplor-chat-widget.js +139 -0
- package/dist/collection/components/xplor-chat-widget/xplor-chat-widget.js.map +1 -0
- package/dist/collection/components/xplor-chat-widget/xplor-chat.stories.js +31 -0
- package/dist/collection/components/xplor-chat-widget/xplor-chat.stories.js.map +1 -0
- package/dist/collection/components/xplor-checkbox/xplor-checkbox.css +453 -0
- package/dist/collection/components/xplor-checkbox/xplor-checkbox.js +230 -0
- package/dist/collection/components/xplor-checkbox/xplor-checkbox.js.map +1 -0
- package/dist/collection/components/xplor-combobox/xplor-combobox.css +473 -0
- package/dist/collection/components/xplor-combobox/xplor-combobox.js +553 -0
- package/dist/collection/components/xplor-combobox/xplor-combobox.js.map +1 -0
- package/dist/collection/components/xplor-datatable/xplor-datatable.css +580 -0
- package/dist/collection/components/xplor-datatable/xplor-datatable.js +536 -0
- package/dist/collection/components/xplor-datatable/xplor-datatable.js.map +1 -0
- package/dist/collection/components/xplor-datatable/xplor-datatable.stories.js +137 -0
- package/dist/collection/components/xplor-datatable/xplor-datatable.stories.js.map +1 -0
- package/dist/collection/components/xplor-date-picker/xplor-date-picker.css +415 -0
- package/dist/collection/components/xplor-date-picker/xplor-date-picker.js +694 -0
- package/dist/collection/components/xplor-date-picker/xplor-date-picker.js.map +1 -0
- package/dist/collection/components/xplor-drag-and-drop-input/xplor-drag-and-drop-input.css +1149 -0
- package/dist/collection/components/xplor-drag-and-drop-input/xplor-drag-and-drop-input.js +256 -0
- package/dist/collection/components/xplor-drag-and-drop-input/xplor-drag-and-drop-input.js.map +1 -0
- package/dist/collection/components/xplor-dropdown/xplor-dropdown.css +286 -0
- package/dist/collection/components/xplor-dropdown/xplor-dropdown.js +83 -0
- package/dist/collection/components/xplor-dropdown/xplor-dropdown.js.map +1 -0
- package/dist/collection/components/xplor-expansion-panel/xplor-expansion-panel.css +334 -0
- package/dist/collection/components/xplor-expansion-panel/xplor-expansion-panel.js +122 -0
- package/dist/collection/components/xplor-expansion-panel/xplor-expansion-panel.js.map +1 -0
- package/dist/collection/components/xplor-expansion-panels/xplor-expansion-panels.css +277 -0
- package/dist/collection/components/xplor-expansion-panels/xplor-expansion-panels.js +129 -0
- package/dist/collection/components/xplor-expansion-panels/xplor-expansion-panels.js.map +1 -0
- package/dist/collection/components/xplor-file-upload/xplor-file-upload.css +433 -0
- package/dist/collection/components/xplor-file-upload/xplor-file-upload.js +347 -0
- package/dist/collection/components/xplor-file-upload/xplor-file-upload.js.map +1 -0
- package/dist/collection/components/xplor-inline-checkbox/xplor-inline-checkbox.css +300 -0
- package/dist/collection/components/xplor-inline-checkbox/xplor-inline-checkbox.js +194 -0
- package/dist/collection/components/xplor-inline-checkbox/xplor-inline-checkbox.js.map +1 -0
- package/dist/collection/components/xplor-inline-date-picker/xplor-inline-date-picker.css +410 -0
- package/dist/collection/components/xplor-inline-date-picker/xplor-inline-date-picker.js +325 -0
- package/dist/collection/components/xplor-inline-date-picker/xplor-inline-date-picker.js.map +1 -0
- package/dist/collection/components/xplor-inline-switch/xplor-inline-switch.css +343 -0
- package/dist/collection/components/xplor-inline-switch/xplor-inline-switch.js +168 -0
- package/dist/collection/components/xplor-inline-switch/xplor-inline-switch.js.map +1 -0
- package/dist/collection/components/xplor-input-file/xplor-input-file.css +392 -0
- package/dist/collection/components/xplor-input-file/xplor-input-file.js +340 -0
- package/dist/collection/components/xplor-input-file/xplor-input-file.js.map +1 -0
- package/dist/collection/components/xplor-input-search/xplor-input-search.css +371 -0
- package/dist/collection/components/xplor-input-search/xplor-input-search.js +213 -0
- package/dist/collection/components/xplor-input-search/xplor-input-search.js.map +1 -0
- package/dist/collection/components/xplor-input-select/xplor-input-select.css +397 -0
- package/dist/collection/components/xplor-input-select/xplor-input-select.js +430 -0
- package/dist/collection/components/xplor-input-select/xplor-input-select.js.map +1 -0
- package/dist/collection/components/xplor-input-send/xplor-input-send.css +312 -0
- package/dist/collection/components/xplor-input-send/xplor-input-send.js +218 -0
- package/dist/collection/components/xplor-input-send/xplor-input-send.js.map +1 -0
- package/dist/collection/components/xplor-input-text/xplor-input-text.css +334 -0
- package/dist/collection/components/xplor-input-text/xplor-input-text.js +419 -0
- package/dist/collection/components/xplor-input-text/xplor-input-text.js.map +1 -0
- package/dist/collection/components/xplor-input-text-area/xplor-input-text-area.css +359 -0
- package/dist/collection/components/xplor-input-text-area/xplor-input-text-area.js +416 -0
- package/dist/collection/components/xplor-input-text-area/xplor-input-text-area.js.map +1 -0
- package/dist/collection/components/xplor-input-text-secondary/xplor-input-text-secondary.css +339 -0
- package/dist/collection/components/xplor-input-text-secondary/xplor-input-text-secondary.js +384 -0
- package/dist/collection/components/xplor-input-text-secondary/xplor-input-text-secondary.js.map +1 -0
- package/dist/collection/components/xplor-input-title/xplor-input-title.css +304 -0
- package/dist/collection/components/xplor-input-title/xplor-input-title.js +164 -0
- package/dist/collection/components/xplor-input-title/xplor-input-title.js.map +1 -0
- package/dist/collection/components/xplor-links/xplor-links.css +9 -0
- package/dist/collection/components/xplor-links/xplor-links.js +42 -0
- package/dist/collection/components/xplor-links/xplor-links.js.map +1 -0
- package/dist/collection/components/xplor-links/xplor-links.stories.js +18 -0
- package/dist/collection/components/xplor-links/xplor-links.stories.js.map +1 -0
- package/dist/collection/components/xplor-modal/xplor-modal.css +385 -0
- package/dist/collection/components/xplor-modal/xplor-modal.js +279 -0
- package/dist/collection/components/xplor-modal/xplor-modal.js.map +1 -0
- package/dist/collection/components/xplor-modal-persistent/xplor-modal-persistent.js +152 -0
- package/dist/collection/components/xplor-modal-persistent/xplor-modal-persistent.js.map +1 -0
- package/dist/collection/components/xplor-nav-tabs/xplor-nav-tabs.css +333 -0
- package/dist/collection/components/xplor-nav-tabs/xplor-nav-tabs.js +144 -0
- package/dist/collection/components/xplor-nav-tabs/xplor-nav-tabs.js.map +1 -0
- package/dist/collection/components/xplor-section-card/xplor-section-card.css +1076 -0
- package/dist/collection/components/xplor-section-card/xplor-section-card.js +92 -0
- package/dist/collection/components/xplor-section-card/xplor-section-card.js.map +1 -0
- package/dist/collection/components/xplor-section-heading/xplor-section-heading.css +285 -0
- package/dist/collection/components/xplor-section-heading/xplor-section-heading.js +69 -0
- package/dist/collection/components/xplor-section-heading/xplor-section-heading.js.map +1 -0
- package/dist/collection/components/xplor-table/xplor-table.js +695 -0
- package/dist/collection/components/xplor-table/xplor-table.js.map +1 -0
- package/dist/collection/components/xplor-table/xplor-table.stories.js +159 -0
- package/dist/collection/components/xplor-table/xplor-table.stories.js.map +1 -0
- package/dist/collection/components/xplor-text-bubble/xplor-text-bubble.css +285 -0
- package/dist/collection/components/xplor-text-bubble/xplor-text-bubble.js +50 -0
- package/dist/collection/components/xplor-text-bubble/xplor-text-bubble.js.map +1 -0
- package/dist/collection/components/xplor-text-field/xplor-text-field.css +1280 -0
- package/dist/collection/components/xplor-text-field/xplor-text-field.js +591 -0
- package/dist/collection/components/xplor-text-field/xplor-text-field.js.map +1 -0
- package/dist/collection/components/xplor-time-picker/xplor-time-picker.css +448 -0
- package/dist/collection/components/xplor-time-picker/xplor-time-picker.js +647 -0
- package/dist/collection/components/xplor-time-picker/xplor-time-picker.js.map +1 -0
- package/dist/collection/components/xplor-tooltip/xplor-tooltip.css +336 -0
- package/dist/collection/components/xplor-tooltip/xplor-tooltip.js +311 -0
- package/dist/collection/components/xplor-tooltip/xplor-tooltip.js.map +1 -0
- package/dist/collection/globals/globals.js +32 -0
- package/dist/collection/globals/globals.js.map +1 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/stories/Button.js +17 -0
- package/dist/collection/stories/Button.js.map +1 -0
- package/dist/collection/stories/Button.stories.js +50 -0
- package/dist/collection/stories/Button.stories.js.map +1 -0
- package/dist/collection/stories/Header.js +41 -0
- package/dist/collection/stories/Header.js.map +1 -0
- package/dist/collection/stories/Header.stories.js +28 -0
- package/dist/collection/stories/Header.stories.js.map +1 -0
- package/dist/collection/stories/Page.js +85 -0
- package/dist/collection/stories/Page.js.map +1 -0
- package/dist/collection/stories/Page.stories.js +25 -0
- package/dist/collection/stories/Page.stories.js.map +1 -0
- package/dist/collection/stories/assets/accessibility.svg +1 -0
- package/dist/collection/stories/assets/discord.svg +1 -0
- package/dist/collection/stories/assets/github.svg +1 -0
- package/dist/collection/stories/assets/tutorials.svg +1 -0
- package/dist/collection/stories/assets/youtube.svg +1 -0
- package/dist/collection/utils/helpers.js +25 -0
- package/dist/collection/utils/helpers.js.map +1 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +2324 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/p-4l9DAhAo.js +182 -0
- package/dist/components/p-4l9DAhAo.js.map +1 -0
- package/dist/components/p-BHdeGt6k.js +51 -0
- package/dist/components/p-BHdeGt6k.js.map +1 -0
- package/dist/components/p-BIFlTsO8.js +185 -0
- package/dist/components/p-BIFlTsO8.js.map +1 -0
- package/dist/components/p-CJGP2_5k.js +38 -0
- package/dist/components/p-CJGP2_5k.js.map +1 -0
- package/dist/components/p-DIv_A5Gj.js +57 -0
- package/dist/components/p-DIv_A5Gj.js.map +1 -0
- package/dist/components/p-DKh6y3GY.js +118 -0
- package/dist/components/p-DKh6y3GY.js.map +1 -0
- package/dist/components/xplor-alert-dialog.d.ts +11 -0
- package/dist/components/xplor-alert-dialog.js +86 -0
- package/dist/components/xplor-alert-dialog.js.map +1 -0
- package/dist/components/xplor-alert-message.d.ts +11 -0
- package/dist/components/xplor-alert-message.js +49 -0
- package/dist/components/xplor-alert-message.js.map +1 -0
- package/dist/components/xplor-assistant.d.ts +11 -0
- package/dist/components/xplor-assistant.js +764 -0
- package/dist/components/xplor-assistant.js.map +1 -0
- package/dist/components/xplor-autocomplete.d.ts +11 -0
- package/dist/components/xplor-autocomplete.js +269 -0
- package/dist/components/xplor-autocomplete.js.map +1 -0
- package/dist/components/xplor-avatar-and-name.d.ts +11 -0
- package/dist/components/xplor-avatar-and-name.js +49 -0
- package/dist/components/xplor-avatar-and-name.js.map +1 -0
- package/dist/components/xplor-avatar.d.ts +11 -0
- package/dist/components/xplor-avatar.js +9 -0
- package/dist/components/xplor-avatar.js.map +1 -0
- package/dist/components/xplor-badge-active.d.ts +11 -0
- package/dist/components/xplor-badge-active.js +36 -0
- package/dist/components/xplor-badge-active.js.map +1 -0
- package/dist/components/xplor-badge-archived.d.ts +11 -0
- package/dist/components/xplor-badge-archived.js +36 -0
- package/dist/components/xplor-badge-archived.js.map +1 -0
- package/dist/components/xplor-badge-deleted.d.ts +11 -0
- package/dist/components/xplor-badge-deleted.js +36 -0
- package/dist/components/xplor-badge-deleted.js.map +1 -0
- package/dist/components/xplor-badge-expired.d.ts +11 -0
- package/dist/components/xplor-badge-expired.js +36 -0
- package/dist/components/xplor-badge-expired.js.map +1 -0
- package/dist/components/xplor-badge-inactive.d.ts +11 -0
- package/dist/components/xplor-badge-inactive.js +36 -0
- package/dist/components/xplor-badge-inactive.js.map +1 -0
- package/dist/components/xplor-badge-recalled.d.ts +11 -0
- package/dist/components/xplor-badge-recalled.js +36 -0
- package/dist/components/xplor-badge-recalled.js.map +1 -0
- package/dist/components/xplor-badge-session-booking.d.ts +11 -0
- package/dist/components/xplor-badge-session-booking.js +61 -0
- package/dist/components/xplor-badge-session-booking.js.map +1 -0
- package/dist/components/xplor-badge-upcoming.d.ts +11 -0
- package/dist/components/xplor-badge-upcoming.js +36 -0
- package/dist/components/xplor-badge-upcoming.js.map +1 -0
- package/dist/components/xplor-badge-waitlist.d.ts +11 -0
- package/dist/components/xplor-badge-waitlist.js +36 -0
- package/dist/components/xplor-badge-waitlist.js.map +1 -0
- package/dist/components/xplor-badge.d.ts +11 -0
- package/dist/components/xplor-badge.js +152 -0
- package/dist/components/xplor-badge.js.map +1 -0
- package/dist/components/xplor-btn-back-to-parent.d.ts +11 -0
- package/dist/components/xplor-btn-back-to-parent.js +73 -0
- package/dist/components/xplor-btn-back-to-parent.js.map +1 -0
- package/dist/components/xplor-btn-back.d.ts +11 -0
- package/dist/components/xplor-btn-back.js +77 -0
- package/dist/components/xplor-btn-back.js.map +1 -0
- package/dist/components/xplor-btn-icon.d.ts +11 -0
- package/dist/components/xplor-btn-icon.js +78 -0
- package/dist/components/xplor-btn-icon.js.map +1 -0
- package/dist/components/xplor-btn-menu.d.ts +11 -0
- package/dist/components/xplor-btn-menu.js +106 -0
- package/dist/components/xplor-btn-menu.js.map +1 -0
- package/dist/components/xplor-btn-toggle-group.d.ts +11 -0
- package/dist/components/xplor-btn-toggle-group.js +47 -0
- package/dist/components/xplor-btn-toggle-group.js.map +1 -0
- package/dist/components/xplor-btn-toggle-secondary.d.ts +11 -0
- package/dist/components/xplor-btn-toggle-secondary.js +65 -0
- package/dist/components/xplor-btn-toggle-secondary.js.map +1 -0
- package/dist/components/xplor-btn-toggle.d.ts +11 -0
- package/dist/components/xplor-btn-toggle.js +70 -0
- package/dist/components/xplor-btn-toggle.js.map +1 -0
- package/dist/components/xplor-btn-tooltip.d.ts +11 -0
- package/dist/components/xplor-btn-tooltip.js +59 -0
- package/dist/components/xplor-btn-tooltip.js.map +1 -0
- package/dist/components/xplor-button.d.ts +11 -0
- package/dist/components/xplor-button.js +9 -0
- package/dist/components/xplor-button.js.map +1 -0
- package/dist/components/xplor-chat-widget.d.ts +11 -0
- package/dist/components/xplor-chat-widget.js +105 -0
- package/dist/components/xplor-chat-widget.js.map +1 -0
- package/dist/components/xplor-checkbox.d.ts +11 -0
- package/dist/components/xplor-checkbox.js +125 -0
- package/dist/components/xplor-checkbox.js.map +1 -0
- package/dist/components/xplor-combobox.d.ts +11 -0
- package/dist/components/xplor-combobox.js +279 -0
- package/dist/components/xplor-combobox.js.map +1 -0
- package/dist/components/xplor-datatable.d.ts +11 -0
- package/dist/components/xplor-datatable.js +244 -0
- package/dist/components/xplor-datatable.js.map +1 -0
- package/dist/components/xplor-date-picker.d.ts +11 -0
- package/dist/components/xplor-date-picker.js +269 -0
- package/dist/components/xplor-date-picker.js.map +1 -0
- package/dist/components/xplor-drag-and-drop-input.d.ts +11 -0
- package/dist/components/xplor-drag-and-drop-input.js +138 -0
- package/dist/components/xplor-drag-and-drop-input.js.map +1 -0
- package/dist/components/xplor-dropdown.d.ts +11 -0
- package/dist/components/xplor-dropdown.js +9 -0
- package/dist/components/xplor-dropdown.js.map +1 -0
- package/dist/components/xplor-expansion-panel.d.ts +11 -0
- package/dist/components/xplor-expansion-panel.js +75 -0
- package/dist/components/xplor-expansion-panel.js.map +1 -0
- package/dist/components/xplor-expansion-panels.d.ts +11 -0
- package/dist/components/xplor-expansion-panels.js +71 -0
- package/dist/components/xplor-expansion-panels.js.map +1 -0
- package/dist/components/xplor-file-upload.d.ts +11 -0
- package/dist/components/xplor-file-upload.js +184 -0
- package/dist/components/xplor-file-upload.js.map +1 -0
- package/dist/components/xplor-inline-checkbox.d.ts +11 -0
- package/dist/components/xplor-inline-checkbox.js +76 -0
- package/dist/components/xplor-inline-checkbox.js.map +1 -0
- package/dist/components/xplor-inline-date-picker.d.ts +11 -0
- package/dist/components/xplor-inline-date-picker.js +9 -0
- package/dist/components/xplor-inline-date-picker.js.map +1 -0
- package/dist/components/xplor-inline-switch.d.ts +11 -0
- package/dist/components/xplor-inline-switch.js +69 -0
- package/dist/components/xplor-inline-switch.js.map +1 -0
- package/dist/components/xplor-input-file.d.ts +11 -0
- package/dist/components/xplor-input-file.js +122 -0
- package/dist/components/xplor-input-file.js.map +1 -0
- package/dist/components/xplor-input-search.d.ts +11 -0
- package/dist/components/xplor-input-search.js +90 -0
- package/dist/components/xplor-input-search.js.map +1 -0
- package/dist/components/xplor-input-select.d.ts +11 -0
- package/dist/components/xplor-input-select.js +169 -0
- package/dist/components/xplor-input-select.js.map +1 -0
- package/dist/components/xplor-input-send.d.ts +11 -0
- package/dist/components/xplor-input-send.js +88 -0
- package/dist/components/xplor-input-send.js.map +1 -0
- package/dist/components/xplor-input-text-area.d.ts +11 -0
- package/dist/components/xplor-input-text-area.js +132 -0
- package/dist/components/xplor-input-text-area.js.map +1 -0
- package/dist/components/xplor-input-text-secondary.d.ts +11 -0
- package/dist/components/xplor-input-text-secondary.js +95 -0
- package/dist/components/xplor-input-text-secondary.js.map +1 -0
- package/dist/components/xplor-input-text.d.ts +11 -0
- package/dist/components/xplor-input-text.js +130 -0
- package/dist/components/xplor-input-text.js.map +1 -0
- package/dist/components/xplor-input-title.d.ts +11 -0
- package/dist/components/xplor-input-title.js +69 -0
- package/dist/components/xplor-input-title.js.map +1 -0
- package/dist/components/xplor-links.d.ts +11 -0
- package/dist/components/xplor-links.js +39 -0
- package/dist/components/xplor-links.js.map +1 -0
- package/dist/components/xplor-modal-persistent.d.ts +11 -0
- package/dist/components/xplor-modal-persistent.js +66 -0
- package/dist/components/xplor-modal-persistent.js.map +1 -0
- package/dist/components/xplor-modal.d.ts +11 -0
- package/dist/components/xplor-modal.js +9 -0
- package/dist/components/xplor-modal.js.map +1 -0
- package/dist/components/xplor-nav-tabs.d.ts +11 -0
- package/dist/components/xplor-nav-tabs.js +59 -0
- package/dist/components/xplor-nav-tabs.js.map +1 -0
- package/dist/components/xplor-section-card.d.ts +11 -0
- package/dist/components/xplor-section-card.js +47 -0
- package/dist/components/xplor-section-card.js.map +1 -0
- package/dist/components/xplor-section-heading.d.ts +11 -0
- package/dist/components/xplor-section-heading.js +44 -0
- package/dist/components/xplor-section-heading.js.map +1 -0
- package/dist/components/xplor-table.d.ts +11 -0
- package/dist/components/xplor-table.js +276 -0
- package/dist/components/xplor-table.js.map +1 -0
- package/dist/components/xplor-text-bubble.d.ts +11 -0
- package/dist/components/xplor-text-bubble.js +43 -0
- package/dist/components/xplor-text-bubble.js.map +1 -0
- package/dist/components/xplor-text-field.d.ts +11 -0
- package/dist/components/xplor-text-field.js +191 -0
- package/dist/components/xplor-text-field.js.map +1 -0
- package/dist/components/xplor-time-picker.d.ts +11 -0
- package/dist/components/xplor-time-picker.js +349 -0
- package/dist/components/xplor-time-picker.js.map +1 -0
- package/dist/components/xplor-tooltip.d.ts +11 -0
- package/dist/components/xplor-tooltip.js +9 -0
- package/dist/components/xplor-tooltip.js.map +1 -0
- package/dist/esm/index-Zkk2NJif.js +2566 -0
- package/dist/esm/index-Zkk2NJif.js.map +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/xplor-alert-dialog_57.entry.js +4692 -0
- package/dist/esm/xplor-alert-dialog_57.entry.js.map +1 -0
- package/dist/esm/xplor-component-library.js +23 -0
- package/dist/esm/xplor-component-library.js.map +1 -0
- package/dist/hydrate/index.d.ts +273 -0
- package/dist/hydrate/index.js +25064 -0
- package/dist/hydrate/index.mjs +25056 -0
- package/dist/hydrate/package.json +12 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/element-interface.d.ts +19 -0
- package/dist/types/components/helpers.d.ts +47 -0
- package/dist/types/components/xplor-alert-dialog/xplor-alert-dialog.d.ts +29 -0
- package/dist/types/components/xplor-alert-message/xplor-alert-message.d.ts +9 -0
- package/dist/types/components/xplor-assistant/internal/AssistantInput.d.ts +17 -0
- package/dist/types/components/xplor-assistant/internal/AssistantMessage.d.ts +6 -0
- package/dist/types/components/xplor-assistant/internal/QuickReplies.d.ts +6 -0
- package/dist/types/components/xplor-assistant/internal/TypingIndicator.d.ts +5 -0
- package/dist/types/components/xplor-assistant/internal/types.d.ts +106 -0
- package/dist/types/components/xplor-assistant/utils/api.d.ts +48 -0
- package/dist/types/components/xplor-assistant/utils/icons.d.ts +24 -0
- package/dist/types/components/xplor-assistant/utils/speech.d.ts +86 -0
- package/dist/types/components/xplor-assistant/xplor-assistant.d.ts +52 -0
- package/dist/types/components/xplor-autocomplete/xplor-autocomplete.d.ts +92 -0
- package/dist/types/components/xplor-avatar/avatar.stories.d.ts +75 -0
- package/dist/types/components/xplor-avatar/xplor-avatar.d.ts +21 -0
- package/dist/types/components/xplor-avatar-and-name/xplor-avatar-and-name.d.ts +8 -0
- package/dist/types/components/xplor-badge/xplor-badge.d.ts +52 -0
- package/dist/types/components/xplor-badge-active/xplor-badge-active.d.ts +3 -0
- package/dist/types/components/xplor-badge-archived/xplor-badge-archived.d.ts +3 -0
- package/dist/types/components/xplor-badge-deleted/xplor-badge-deleted.d.ts +3 -0
- package/dist/types/components/xplor-badge-expired/xplor-badge-expired.d.ts +3 -0
- package/dist/types/components/xplor-badge-inactive/xplor-badge-inactive.d.ts +3 -0
- package/dist/types/components/xplor-badge-recalled/xplor-badge-recalled.d.ts +3 -0
- package/dist/types/components/xplor-badge-session-booking/xplor-badge-session-booking.d.ts +20 -0
- package/dist/types/components/xplor-badge-upcoming/xplor-badge-upcoming.d.ts +3 -0
- package/dist/types/components/xplor-badge-waitlist/xplor-badge-waitlist.d.ts +3 -0
- package/dist/types/components/xplor-btn-back/xplor-btn-back.d.ts +29 -0
- package/dist/types/components/xplor-btn-back-to-parent/xplor-btn-back-to-parent.d.ts +29 -0
- package/dist/types/components/xplor-btn-icon/xplor-btn-icon.d.ts +29 -0
- package/dist/types/components/xplor-btn-menu/xplor-btn-menu.d.ts +49 -0
- package/dist/types/components/xplor-btn-toggle/xplor-btn-toggle.d.ts +25 -0
- package/dist/types/components/xplor-btn-toggle-group/xplor-btn-toggle-group.d.ts +11 -0
- package/dist/types/components/xplor-btn-toggle-secondary/xplor-btn-toggle-secondary.d.ts +21 -0
- package/dist/types/components/xplor-btn-tooltip/xplor-btn-tooltip.d.ts +10 -0
- package/dist/types/components/xplor-button/xplor-button.d.ts +19 -0
- package/dist/types/components/xplor-button/xplor-buttons.stories.d.ts +32 -0
- package/dist/types/components/xplor-chat-widget/xplor-chat-widget.d.ts +13 -0
- package/dist/types/components/xplor-chat-widget/xplor-chat.stories.d.ts +32 -0
- package/dist/types/components/xplor-checkbox/xplor-checkbox.d.ts +25 -0
- package/dist/types/components/xplor-combobox/xplor-combobox.d.ts +77 -0
- package/dist/types/components/xplor-datatable/xplor-datatable.d.ts +103 -0
- package/dist/types/components/xplor-datatable/xplor-datatable.stories.d.ts +18 -0
- package/dist/types/components/xplor-date-picker/xplor-date-picker.d.ts +53 -0
- package/dist/types/components/xplor-drag-and-drop-input/xplor-drag-and-drop-input.d.ts +42 -0
- package/dist/types/components/xplor-dropdown/xplor-dropdown.d.ts +6 -0
- package/dist/types/components/xplor-expansion-panel/xplor-expansion-panel.d.ts +18 -0
- package/dist/types/components/xplor-expansion-panels/xplor-expansion-panels.d.ts +12 -0
- package/dist/types/components/xplor-file-upload/xplor-file-upload.d.ts +51 -0
- package/dist/types/components/xplor-inline-checkbox/xplor-inline-checkbox.d.ts +33 -0
- package/dist/types/components/xplor-inline-date-picker/xplor-inline-date-picker.d.ts +57 -0
- package/dist/types/components/xplor-inline-switch/xplor-inline-switch.d.ts +29 -0
- package/dist/types/components/xplor-input-file/xplor-input-file.d.ts +60 -0
- package/dist/types/components/xplor-input-search/xplor-input-search.d.ts +36 -0
- package/dist/types/components/xplor-input-select/xplor-input-select.d.ts +76 -0
- package/dist/types/components/xplor-input-send/xplor-input-send.d.ts +18 -0
- package/dist/types/components/xplor-input-text/xplor-input-text.d.ts +73 -0
- package/dist/types/components/xplor-input-text-area/xplor-input-text-area.d.ts +72 -0
- package/dist/types/components/xplor-input-text-secondary/xplor-input-text-secondary.d.ts +25 -0
- package/dist/types/components/xplor-input-title/xplor-input-title.d.ts +30 -0
- package/dist/types/components/xplor-links/xplor-links.d.ts +4 -0
- package/dist/types/components/xplor-links/xplor-links.stories.d.ts +12 -0
- package/dist/types/components/xplor-modal/xplor-modal.d.ts +45 -0
- package/dist/types/components/xplor-modal-persistent/xplor-modal-persistent.d.ts +28 -0
- package/dist/types/components/xplor-nav-tabs/xplor-nav-tabs.d.ts +15 -0
- package/dist/types/components/xplor-section-card/xplor-section-card.d.ts +6 -0
- package/dist/types/components/xplor-section-heading/xplor-section-heading.d.ts +5 -0
- package/dist/types/components/xplor-table/xplor-table.d.ts +65 -0
- package/dist/types/components/xplor-table/xplor-table.stories.d.ts +77 -0
- package/dist/types/components/xplor-text-bubble/xplor-text-bubble.d.ts +4 -0
- package/dist/types/components/xplor-text-field/xplor-text-field.d.ts +111 -0
- package/dist/types/components/xplor-time-picker/xplor-time-picker.d.ts +55 -0
- package/dist/types/components/xplor-tooltip/xplor-tooltip.d.ts +28 -0
- package/dist/types/components.d.ts +4360 -0
- package/dist/types/globals/globals.d.ts +3 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/interfaces.d.ts +104 -0
- package/dist/types/stencil-public-runtime.d.ts +1702 -0
- package/dist/types/stories/Button.d.ts +15 -0
- package/dist/types/stories/Header.d.ts +10 -0
- package/dist/types/stories/Page.d.ts +2 -0
- package/dist/types/stories/Page.stories.d.ts +11 -0
- package/dist/types/utils/helpers.d.ts +3 -0
- package/dist/xplor-component-library/index.esm.js +2 -0
- package/dist/xplor-component-library/index.esm.js.map +1 -0
- package/dist/xplor-component-library/loader.esm.js.map +1 -0
- package/dist/xplor-component-library/p-25fa8553.entry.js +2 -0
- package/dist/xplor-component-library/p-25fa8553.entry.js.map +1 -0
- package/dist/xplor-component-library/p-Zkk2NJif.js +3 -0
- package/dist/xplor-component-library/p-Zkk2NJif.js.map +1 -0
- package/dist/xplor-component-library/xplor-component-library.css +1 -0
- package/dist/xplor-component-library/xplor-component-library.esm.js +2 -0
- package/dist/xplor-component-library/xplor-component-library.esm.js.map +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +124 -0
- package/readme.md +315 -0
|
@@ -0,0 +1,695 @@
|
|
|
1
|
+
import { h, Host, } from "@stencil/core";
|
|
2
|
+
const getIconType = (sortType) => {
|
|
3
|
+
switch (sortType) {
|
|
4
|
+
case 'asc':
|
|
5
|
+
return 'arrow-up';
|
|
6
|
+
case 'desc':
|
|
7
|
+
return 'arrow-down';
|
|
8
|
+
default:
|
|
9
|
+
return 'dash';
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
export class XplorTable {
|
|
13
|
+
constructor() {
|
|
14
|
+
/**
|
|
15
|
+
* The values for the input for each row when multiselect is activated.
|
|
16
|
+
*/
|
|
17
|
+
this.selectedValues = [];
|
|
18
|
+
/**
|
|
19
|
+
* Toggles to show the sort button on each table head
|
|
20
|
+
*/
|
|
21
|
+
this.isSortable = true;
|
|
22
|
+
/**
|
|
23
|
+
* Manually determined if the column is sortable
|
|
24
|
+
*/
|
|
25
|
+
this.sortableColumns = [];
|
|
26
|
+
this.areAllSelected = false;
|
|
27
|
+
this.hasScrolled = false;
|
|
28
|
+
this.sortTypeArray = [];
|
|
29
|
+
this.selectedDateRange = 'All';
|
|
30
|
+
/**
|
|
31
|
+
* Callback function that is called when the checkbox for a row of a
|
|
32
|
+
* `multiselect` table is checked
|
|
33
|
+
*/
|
|
34
|
+
this.currentPage = 1;
|
|
35
|
+
this.totalPages = 3;
|
|
36
|
+
this.handlePagination = (direction) => {
|
|
37
|
+
switch (direction) {
|
|
38
|
+
case 'first':
|
|
39
|
+
this.currentPage = 1;
|
|
40
|
+
break;
|
|
41
|
+
case 'prev':
|
|
42
|
+
if (this.currentPage > 1)
|
|
43
|
+
this.currentPage--;
|
|
44
|
+
break;
|
|
45
|
+
case 'next':
|
|
46
|
+
if (this.currentPage < this.totalPages)
|
|
47
|
+
this.currentPage++;
|
|
48
|
+
break;
|
|
49
|
+
case 'last':
|
|
50
|
+
this.currentPage = this.totalPages;
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
this.handleDateRangeChange = (event) => {
|
|
55
|
+
const target = event.target;
|
|
56
|
+
this.selectedDateRange = target.value;
|
|
57
|
+
};
|
|
58
|
+
this.handleFilterReports = () => {
|
|
59
|
+
console.log('Filter reports clicked');
|
|
60
|
+
};
|
|
61
|
+
this.handleDownloadAll = () => {
|
|
62
|
+
console.log('Download all clicked');
|
|
63
|
+
};
|
|
64
|
+
// private handleDownloadReport = (index: number) => {
|
|
65
|
+
// console.log(`Download report ${index} clicked`);
|
|
66
|
+
// };
|
|
67
|
+
this.selectAllValue = Math.random().toString(36).slice(2);
|
|
68
|
+
this.selectAll = (e) => {
|
|
69
|
+
const { target } = e;
|
|
70
|
+
if (!(target instanceof HTMLInputElement))
|
|
71
|
+
return;
|
|
72
|
+
const { checked } = target;
|
|
73
|
+
this.areAllSelected = checked;
|
|
74
|
+
this.selected =
|
|
75
|
+
this.selectedValues.length > 0
|
|
76
|
+
? // gets all checkboxes in body
|
|
77
|
+
Array.from(this.el.querySelectorAll('tbody td:first-child input')).map((input) =>
|
|
78
|
+
// if the select all checkbox is checked, return
|
|
79
|
+
// the value from the current input. If false, set all to false.
|
|
80
|
+
checked ? input === null || input === void 0 ? void 0 : input.value : checked)
|
|
81
|
+
: this.selected.map(() => checked);
|
|
82
|
+
this.onChange();
|
|
83
|
+
};
|
|
84
|
+
this.selectOne = (e, checkboxIdx) => {
|
|
85
|
+
const { target } = e;
|
|
86
|
+
if (!(target instanceof HTMLInputElement))
|
|
87
|
+
return;
|
|
88
|
+
const { checked, value } = target;
|
|
89
|
+
this.areAllSelected = false;
|
|
90
|
+
this.selected = this.selected.map((v, selectedIdx) => {
|
|
91
|
+
// if the checkbox that fired the event is not the current idx
|
|
92
|
+
// return the current value
|
|
93
|
+
if (selectedIdx !== checkboxIdx)
|
|
94
|
+
return v;
|
|
95
|
+
/**
|
|
96
|
+
* If there are values in this.selectedValues, either return the value
|
|
97
|
+
* for that checkbox or false, dependent on if the checkbox is checked or not.
|
|
98
|
+
* If there are no values in this.selectedValues, return the value
|
|
99
|
+
* to either true or false, dependent on if the checkbox is checked or not.
|
|
100
|
+
*
|
|
101
|
+
*/
|
|
102
|
+
return this.selectedValues.length > 0
|
|
103
|
+
? checked
|
|
104
|
+
? value
|
|
105
|
+
: checked
|
|
106
|
+
: checked;
|
|
107
|
+
});
|
|
108
|
+
this.onChange();
|
|
109
|
+
};
|
|
110
|
+
this.onChange = () => {
|
|
111
|
+
this.tableSelect.emit({
|
|
112
|
+
selected: this.selected,
|
|
113
|
+
areAllSelected: this.areAllSelected,
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
this.onScroll = () => {
|
|
117
|
+
this.hasScrolled = this.container.scrollLeft > 0;
|
|
118
|
+
};
|
|
119
|
+
this.sortBy = (col) => {
|
|
120
|
+
this.sortTypeArray = this.sortTypeArray.map((val, idx) => {
|
|
121
|
+
if (idx !== col)
|
|
122
|
+
return null;
|
|
123
|
+
switch (val) {
|
|
124
|
+
case 'asc':
|
|
125
|
+
return 'desc';
|
|
126
|
+
case 'desc':
|
|
127
|
+
return null;
|
|
128
|
+
default:
|
|
129
|
+
return 'asc';
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
const handleSort = (a, b) => {
|
|
133
|
+
if (a[col].toLocaleLowerCase() < b[col].toLocaleLowerCase()) {
|
|
134
|
+
return -1;
|
|
135
|
+
}
|
|
136
|
+
if (a[col].toLocaleLowerCase() > b[col].toLocaleLowerCase()) {
|
|
137
|
+
return 1;
|
|
138
|
+
}
|
|
139
|
+
return 0;
|
|
140
|
+
};
|
|
141
|
+
if (this.sortTypeArray[col] === 'asc') {
|
|
142
|
+
this.rowData.sort((a, b) => handleSort(a, b));
|
|
143
|
+
}
|
|
144
|
+
else if (this.sortTypeArray[col] === 'desc') {
|
|
145
|
+
this.rowData.sort((a, b) => handleSort(b, a));
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
this.rowData = this.data;
|
|
149
|
+
this.sortTypeArray[col] = null;
|
|
150
|
+
}
|
|
151
|
+
this.rowData = Array.from(this.rowData);
|
|
152
|
+
this.render();
|
|
153
|
+
};
|
|
154
|
+
this.setData = () => {
|
|
155
|
+
this.rowData = this.data !== undefined ? Array.from(this.data) : [];
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
// Add this method to paginate rowData
|
|
159
|
+
getPaginatedData() {
|
|
160
|
+
const startIndex = (this.currentPage - 1) * 10;
|
|
161
|
+
const endIndex = startIndex + 10;
|
|
162
|
+
return this.rowData.slice(startIndex, endIndex);
|
|
163
|
+
}
|
|
164
|
+
watchData() {
|
|
165
|
+
this.setData();
|
|
166
|
+
}
|
|
167
|
+
componentWillLoad() {
|
|
168
|
+
this.areAllSelected = false;
|
|
169
|
+
this.setData();
|
|
170
|
+
this.selected = new Array(this.rowData.length).fill(false);
|
|
171
|
+
// Fill the Sort Type Array to default null depends on number of columns
|
|
172
|
+
this.sortTypeArray = this.columns && this.columns.map(() => null);
|
|
173
|
+
}
|
|
174
|
+
render() {
|
|
175
|
+
let className = 'xpl-table';
|
|
176
|
+
if (this.striped)
|
|
177
|
+
className += ' xpl-table--striped';
|
|
178
|
+
if (this.freeze)
|
|
179
|
+
className += ' xpl-table--freeze';
|
|
180
|
+
if (this.hasScrolled)
|
|
181
|
+
className += ' xpl-table--has-scrolled';
|
|
182
|
+
const paginatedData = this.getPaginatedData();
|
|
183
|
+
return (h(Host, { key: '2d97030af789ed65f7021cb28a7afc2419fbccd5', class: "xplor-table" }, h("div", { key: 'e790897b07a94c98f28af0c1a8d9acbc0bded6c6', class: "bg-white rounded-lg shadow-sm border border-gray-200 p-6 max-w-6xl mx-auto" }, h("div", { key: 'a1f167a0de10b05288715269bc9c469a547c6102', class: "xpl-table-container", onScroll: this.onScroll, ref: (el) => {
|
|
184
|
+
this.container = el;
|
|
185
|
+
} }, h("div", { key: '84ab92d9467e4ac9d866a3220ccba9d63b8c8cc8', class: "mb-6" }, h("h1", { key: 'f8746a5162a38476937b83d9549a2fad2a030f8a', class: "text-xl font-semibold text-gray-900 mb-4" }, "Head Counts Report"), h("div", { key: '1e7188d1e0a7dd74f466dab3e6ee00189ab88e53', class: "flex flex-wrap items-center gap-4 mb-6" }, h("div", { key: 'c3f2d92bef894ccc749e1249536154147a324711', class: "flex items-center gap-2" }, h("label", { key: '6156ed236c96b1e1f7d480bc97bb0ab8b0b01a87', class: "text-sm text-gray-600 font-medium" }, "Date Range"), h("select", { key: 'da1caff2afb5a1b4786adec7fd9ca7a9480c0f57', 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",
|
|
186
|
+
// value={this.selectedDateRange}
|
|
187
|
+
onInput: this.handleDateRangeChange }, h("option", { key: '6c31c50fe2119d1f5086e3f33ddff4903a290a03', value: "All" }, "All"), h("option", { key: '17d4c7b7c52763065dab2f5dceb85ddd8d23e892', value: "Today" }, "Today"), h("option", { key: '1ec247907dc275825d6a8a105b3c841d2de131f0', value: "This Week" }, "This Week"), h("option", { key: '3fa99b268c42232eb3dccf73dd125b27608d2ba8', value: "This Month" }, "This Month"), h("option", { key: 'bfeea456dde4d67cdc12b00cdba0b694fb5fa3cf', value: "Custom" }, "Custom Range")), h("button", { key: 'f5d3badb19132f137573b4248f0ce99e95e38daa', class: "p-1.5 border border-gray-300 rounded hover:bg-gray-50" }, h("svg", { key: 'f32657ec8d66d3e1a10cdb304406999a933ad7ee', class: "w-4 h-4 text-gray-500", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" }, h("path", { key: '4b63cca1e36df1a5cd5b598f558fc5bd88f25f17', "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" })))), h("button", { key: 'f5133d241b1669c8ae425a76b69a25db91bc9e69', 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"), h("button", { key: '4df30f93e7b019be1ad293a7e70fad80df5c42a8', onClick: this.handleDownloadAll, class: "flex items-center gap-2 text-gray-600 hover:text-gray-800 text-sm" }, h("svg", { key: '18dc2f9716e0f5bc095d84349f85703f38d23238', class: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" }, h("path", { key: 'cbcfc4fd12a099008c3fcbf762cbfccc63b1706c', "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"))), h("table", { key: 'cf9f942709fcc413f99891d612b1640eed94debf', class: `w-full ${className}` }, this.columns && (h("thead", { key: 'baeee3644d8fb2fd9e2d038200b24d433bbdf87b' }, this.columns.map((column, i) => {
|
|
188
|
+
const iconType = getIconType(this.sortTypeArray[i]);
|
|
189
|
+
const isColumnSortable = !!(this.isSortable &&
|
|
190
|
+
this.sortableColumns[i]);
|
|
191
|
+
return (h("th", { class: "text-left py-3 px-4 text-sm font-medium text-gray-600" }, this.multiselect && i === 0 ? (h("label", { onClick: (e) => {
|
|
192
|
+
e.preventDefault();
|
|
193
|
+
e.stopPropagation();
|
|
194
|
+
debugger;
|
|
195
|
+
if (isColumnSortable) {
|
|
196
|
+
this.sortBy(i);
|
|
197
|
+
}
|
|
198
|
+
}, class: isColumnSortable
|
|
199
|
+
? 'cursor-pointer'
|
|
200
|
+
: '' }, h("input", { checked: this.areAllSelected, id: "__xpl-table-th",
|
|
201
|
+
// appear indeterminate when at least one but not all
|
|
202
|
+
// are selected
|
|
203
|
+
indeterminate: !this
|
|
204
|
+
.areAllSelected &&
|
|
205
|
+
this.selected.some((a) => a), onClick: (e) => {
|
|
206
|
+
e.stopPropagation();
|
|
207
|
+
this.selectAll(e);
|
|
208
|
+
}, type: "checkbox", value: `select-all-${this.selectAllValue}` }), column, isColumnSortable &&
|
|
209
|
+
!!this.sortTypeArray[i] && (h("xpl-icon", { icon: iconType, size: 16 })))) : (h("label", { onClick: () => isColumnSortable &&
|
|
210
|
+
this.sortBy(i), class: isColumnSortable
|
|
211
|
+
? 'cursor-pointer'
|
|
212
|
+
: '' }, column, isColumnSortable &&
|
|
213
|
+
!!this.sortTypeArray[i] && (h("svg", { width: "11", height: "6", viewBox: "0 0 11 6", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M10.5 5.5L5.5 0.5L0.5 5.5L10.5 5.5Z", fill: "currentColor" }))
|
|
214
|
+
// <xpl-icon
|
|
215
|
+
// icon={iconType}
|
|
216
|
+
// size={16}
|
|
217
|
+
// id="__xpl-icon-sort"
|
|
218
|
+
// ></xpl-icon>
|
|
219
|
+
)))));
|
|
220
|
+
}))), h("tbody", { key: 'b0715075cfba14dd9ac1e783e0c27a197e41a725' }, paginatedData.map((row, rowNum) => (h("tr", { class: `border-b border-gray-100 hover:bg-gray-50` }, row.map((cell, i) => (h("td", { class: "py-3 px-4 text-sm text-gray-900" }, this.multiselect && i === 0 ? (h("label", { class: "flex items-center gap-2", htmlFor: `__xpl-table-row-${rowNum}` }, h("input", { id: `__xpl-table-row-${rowNum}`, checked: !!this.selected[rowNum], type: "checkbox", onChange: (e) => this.selectOne(e, rowNum), value: this.selectedValues
|
|
221
|
+
.length > 0
|
|
222
|
+
? this
|
|
223
|
+
.selectedValues[rowNum]
|
|
224
|
+
: `xpl-table-checkbox-${rowNum}` }), h("div", { innerHTML: cell }))) : (h("div", { innerHTML: cell })))))))))), h("div", { key: '658aec34fd3394c205d12ab67d06c6f1bb385aa6', id: "pagination", class: "w-full flex items-center justify-between mt-6 text-sm" }, h("div", { key: 'aa7d796792186a3bd76f4201ead86e2055d65cf9', class: "flex items-center gap-2" }, h("button", { key: '7517d034c1456224fb24a0d66c3f60a446e96ef0', onClick: () => this.handlePagination('first'), class: "p-1.5 text-gray-400 hover:text-gray-600 disabled:opacity-50", disabled: this.currentPage === 1 }, h("svg", { key: '9af8fe875c042ffdd8fd7015b01703d29789a1af', class: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" }, h("path", { key: '41a1023ce1243190df484411ac9390ccd1496f10', "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M11 19l-7-7 7-7m8 14l-7-7 7-7" }))), h("button", { key: 'ac9f0e09603e4bd45d6aa10dd45303f8bc90f892', onClick: () => this.handlePagination('prev'), class: "p-1.5 text-gray-400 hover:text-gray-600 disabled:opacity-50", disabled: this.currentPage === 1 }, h("svg", { key: 'af67ed98c91a36076f1578e5eaa49321aa919984', class: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" }, h("path", { key: 'f0e3498f7b8e784e4848c0190eaab285f1c220af', "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M15 19l-7-7 7-7" })))), h("span", { key: '29ae566f6e8f3cbaad39998165529b5022073a56', class: "text-gray-600" }, "Page ", this.currentPage, " of ", this.totalPages), h("div", { key: '91da8153fd11fac318ef63b768e3ce0fda3e4b63', class: "flex items-center gap-2" }, h("button", { key: 'f8e399e46605f060d09c0f1fcc5864dae84949fd', onClick: () => this.handlePagination('next'), class: "p-1.5 text-gray-400 hover:text-gray-600 disabled:opacity-50", disabled: this.currentPage === this.totalPages }, h("svg", { key: '93a0154407f0034993b31f79f746b905d8c720ba', class: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" }, h("path", { key: '67341c2e70e6e0e51bca7f6c0f8d790577efb80c', "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M9 5l7 7-7 7" }))), h("button", { key: '6c4e12bf4877e44ffb5cb6cec4a91dd41c76a95d', onClick: () => this.handlePagination('last'), class: "p-1.5 text-gray-400 hover:text-gray-600 disabled:opacity-50", disabled: this.currentPage === this.totalPages }, h("svg", { key: 'b476cb40832e1116db85780080839fe87fc75777', class: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" }, h("path", { key: 'da32eb5c65018fe776af2f65ccd433573b21822e', "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M13 5l7 7-7 7M5 5l7 7-7 7" })))))))));
|
|
225
|
+
}
|
|
226
|
+
static get is() { return "xplor-table"; }
|
|
227
|
+
static get encapsulation() { return "shadow"; }
|
|
228
|
+
static get properties() {
|
|
229
|
+
return {
|
|
230
|
+
"columns": {
|
|
231
|
+
"type": "unknown",
|
|
232
|
+
"attribute": "columns",
|
|
233
|
+
"mutable": false,
|
|
234
|
+
"complexType": {
|
|
235
|
+
"original": "string[]",
|
|
236
|
+
"resolved": "string[]",
|
|
237
|
+
"references": {}
|
|
238
|
+
},
|
|
239
|
+
"required": false,
|
|
240
|
+
"optional": true,
|
|
241
|
+
"docs": {
|
|
242
|
+
"tags": [],
|
|
243
|
+
"text": "The header values for each column."
|
|
244
|
+
},
|
|
245
|
+
"getter": false,
|
|
246
|
+
"setter": false
|
|
247
|
+
},
|
|
248
|
+
"data": {
|
|
249
|
+
"type": "unknown",
|
|
250
|
+
"attribute": "data",
|
|
251
|
+
"mutable": false,
|
|
252
|
+
"complexType": {
|
|
253
|
+
"original": "string[][]",
|
|
254
|
+
"resolved": "string[][]",
|
|
255
|
+
"references": {}
|
|
256
|
+
},
|
|
257
|
+
"required": false,
|
|
258
|
+
"optional": true,
|
|
259
|
+
"docs": {
|
|
260
|
+
"tags": [],
|
|
261
|
+
"text": "The data for the body of the table."
|
|
262
|
+
},
|
|
263
|
+
"getter": false,
|
|
264
|
+
"setter": false
|
|
265
|
+
},
|
|
266
|
+
"freeze": {
|
|
267
|
+
"type": "boolean",
|
|
268
|
+
"attribute": "freeze",
|
|
269
|
+
"mutable": false,
|
|
270
|
+
"complexType": {
|
|
271
|
+
"original": "boolean",
|
|
272
|
+
"resolved": "boolean",
|
|
273
|
+
"references": {}
|
|
274
|
+
},
|
|
275
|
+
"required": false,
|
|
276
|
+
"optional": true,
|
|
277
|
+
"docs": {
|
|
278
|
+
"tags": [],
|
|
279
|
+
"text": "When true, the first column of the table is sticky and will cover the leftmost rows in a horizontally scrollable container."
|
|
280
|
+
},
|
|
281
|
+
"getter": false,
|
|
282
|
+
"setter": false,
|
|
283
|
+
"reflect": false
|
|
284
|
+
},
|
|
285
|
+
"multiselect": {
|
|
286
|
+
"type": "boolean",
|
|
287
|
+
"attribute": "multiselect",
|
|
288
|
+
"mutable": false,
|
|
289
|
+
"complexType": {
|
|
290
|
+
"original": "boolean",
|
|
291
|
+
"resolved": "boolean",
|
|
292
|
+
"references": {}
|
|
293
|
+
},
|
|
294
|
+
"required": false,
|
|
295
|
+
"optional": true,
|
|
296
|
+
"docs": {
|
|
297
|
+
"tags": [],
|
|
298
|
+
"text": "Toggles a selectable checkbox for each row in the table"
|
|
299
|
+
},
|
|
300
|
+
"getter": false,
|
|
301
|
+
"setter": false,
|
|
302
|
+
"reflect": false
|
|
303
|
+
},
|
|
304
|
+
"striped": {
|
|
305
|
+
"type": "boolean",
|
|
306
|
+
"attribute": "striped",
|
|
307
|
+
"mutable": false,
|
|
308
|
+
"complexType": {
|
|
309
|
+
"original": "boolean",
|
|
310
|
+
"resolved": "boolean",
|
|
311
|
+
"references": {}
|
|
312
|
+
},
|
|
313
|
+
"required": false,
|
|
314
|
+
"optional": true,
|
|
315
|
+
"docs": {
|
|
316
|
+
"tags": [],
|
|
317
|
+
"text": "Toggles an optional styling of the background of each even row of the table body."
|
|
318
|
+
},
|
|
319
|
+
"getter": false,
|
|
320
|
+
"setter": false,
|
|
321
|
+
"reflect": false
|
|
322
|
+
},
|
|
323
|
+
"selectedValues": {
|
|
324
|
+
"type": "unknown",
|
|
325
|
+
"attribute": "selected-values",
|
|
326
|
+
"mutable": false,
|
|
327
|
+
"complexType": {
|
|
328
|
+
"original": "string[]",
|
|
329
|
+
"resolved": "string[]",
|
|
330
|
+
"references": {}
|
|
331
|
+
},
|
|
332
|
+
"required": false,
|
|
333
|
+
"optional": true,
|
|
334
|
+
"docs": {
|
|
335
|
+
"tags": [],
|
|
336
|
+
"text": "The values for the input for each row when multiselect is activated."
|
|
337
|
+
},
|
|
338
|
+
"getter": false,
|
|
339
|
+
"setter": false,
|
|
340
|
+
"defaultValue": "[]"
|
|
341
|
+
},
|
|
342
|
+
"isSortable": {
|
|
343
|
+
"type": "boolean",
|
|
344
|
+
"attribute": "is-sortable",
|
|
345
|
+
"mutable": false,
|
|
346
|
+
"complexType": {
|
|
347
|
+
"original": "boolean",
|
|
348
|
+
"resolved": "boolean",
|
|
349
|
+
"references": {}
|
|
350
|
+
},
|
|
351
|
+
"required": false,
|
|
352
|
+
"optional": true,
|
|
353
|
+
"docs": {
|
|
354
|
+
"tags": [],
|
|
355
|
+
"text": "Toggles to show the sort button on each table head"
|
|
356
|
+
},
|
|
357
|
+
"getter": false,
|
|
358
|
+
"setter": false,
|
|
359
|
+
"reflect": false,
|
|
360
|
+
"defaultValue": "true"
|
|
361
|
+
},
|
|
362
|
+
"sortableColumns": {
|
|
363
|
+
"type": "unknown",
|
|
364
|
+
"attribute": "sortable-columns",
|
|
365
|
+
"mutable": false,
|
|
366
|
+
"complexType": {
|
|
367
|
+
"original": "boolean[]",
|
|
368
|
+
"resolved": "boolean[]",
|
|
369
|
+
"references": {}
|
|
370
|
+
},
|
|
371
|
+
"required": false,
|
|
372
|
+
"optional": true,
|
|
373
|
+
"docs": {
|
|
374
|
+
"tags": [],
|
|
375
|
+
"text": "Manually determined if the column is sortable"
|
|
376
|
+
},
|
|
377
|
+
"getter": false,
|
|
378
|
+
"setter": false,
|
|
379
|
+
"defaultValue": "[]"
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
static get states() {
|
|
384
|
+
return {
|
|
385
|
+
"areAllSelected": {},
|
|
386
|
+
"rowData": {},
|
|
387
|
+
"hasScrolled": {},
|
|
388
|
+
"selected": {},
|
|
389
|
+
"sortTypeArray": {},
|
|
390
|
+
"selectedDateRange": {},
|
|
391
|
+
"currentPage": {},
|
|
392
|
+
"totalPages": {}
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
static get events() {
|
|
396
|
+
return [{
|
|
397
|
+
"method": "tableSelect",
|
|
398
|
+
"name": "tableSelect",
|
|
399
|
+
"bubbles": true,
|
|
400
|
+
"cancelable": true,
|
|
401
|
+
"composed": true,
|
|
402
|
+
"docs": {
|
|
403
|
+
"tags": [],
|
|
404
|
+
"text": ""
|
|
405
|
+
},
|
|
406
|
+
"complexType": {
|
|
407
|
+
"original": "any",
|
|
408
|
+
"resolved": "any",
|
|
409
|
+
"references": {}
|
|
410
|
+
}
|
|
411
|
+
}];
|
|
412
|
+
}
|
|
413
|
+
static get elementRef() { return "el"; }
|
|
414
|
+
static get watchers() {
|
|
415
|
+
return [{
|
|
416
|
+
"propName": "data",
|
|
417
|
+
"methodName": "watchData"
|
|
418
|
+
}];
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
////////////// ######################## ///////////////////////////////// This code is commented out as it is not currently in use.
|
|
422
|
+
// import { Component, Prop, State, h } from '@stencil/core';
|
|
423
|
+
// import { StyledHost } from '../x-styles/x-styles';
|
|
424
|
+
// interface ReportData {
|
|
425
|
+
// submitDate: string;
|
|
426
|
+
// time: string;
|
|
427
|
+
// educatorName: string;
|
|
428
|
+
// room: string;
|
|
429
|
+
// }
|
|
430
|
+
// @Component({
|
|
431
|
+
// tag: 'xplor-table',
|
|
432
|
+
// styleUrl: 'xplor-table.scss',
|
|
433
|
+
// shadow: true,
|
|
434
|
+
// })
|
|
435
|
+
// export class XplorTable {
|
|
436
|
+
// @State() selectedDateRange: string = 'All';
|
|
437
|
+
// @State() currentPage: number = 1;
|
|
438
|
+
// @State() totalPages: number = 1;
|
|
439
|
+
// @State() sortBy: string = '';
|
|
440
|
+
// @State() sortDirection: 'asc' | 'desc' = 'asc';
|
|
441
|
+
// @Prop() tablecContent: ReportData[]
|
|
442
|
+
// private reportData: ReportData[] = [
|
|
443
|
+
// {
|
|
444
|
+
// submitDate: '14/01/2025',
|
|
445
|
+
// time: '10:01:21',
|
|
446
|
+
// educatorName: 'Andi Kelman',
|
|
447
|
+
// room: '2025 Holiday Programme'
|
|
448
|
+
// },
|
|
449
|
+
// {
|
|
450
|
+
// submitDate: '10/10/2023',
|
|
451
|
+
// time: '10:44:46',
|
|
452
|
+
// educatorName: 'Andi Kelman',
|
|
453
|
+
// room: '3 Kinder 3 - 23'
|
|
454
|
+
// },
|
|
455
|
+
// {
|
|
456
|
+
// submitDate: '10/10/2023',
|
|
457
|
+
// time: '10:36:15',
|
|
458
|
+
// educatorName: 'Andi Kelman',
|
|
459
|
+
// room: '3 Kinder 3 - 23'
|
|
460
|
+
// },
|
|
461
|
+
// {
|
|
462
|
+
// submitDate: '28/03/2023',
|
|
463
|
+
// time: '15:51:51',
|
|
464
|
+
// educatorName: 'Cara Bierenkrant',
|
|
465
|
+
// room: '8 KINDER 8 - CRECHE Kinder 8 2023'
|
|
466
|
+
// }
|
|
467
|
+
// ];
|
|
468
|
+
// private handleDateRangeChange = (event: Event) => {
|
|
469
|
+
// const target = event.target as HTMLSelectElement;
|
|
470
|
+
// this.selectedDateRange = target.value;
|
|
471
|
+
// };
|
|
472
|
+
// private handleFilterReports = () => {
|
|
473
|
+
// console.log('Filter reports clicked');
|
|
474
|
+
// };
|
|
475
|
+
// private handleDownloadAll = () => {
|
|
476
|
+
// console.log('Download all clicked');
|
|
477
|
+
// };
|
|
478
|
+
// private handleDownloadReport = (index: number) => {
|
|
479
|
+
// console.log(`Download report ${index} clicked`);
|
|
480
|
+
// };
|
|
481
|
+
// private handleSort = (column: string) => {
|
|
482
|
+
// if (this.sortBy === column) {
|
|
483
|
+
// this.sortDirection = this.sortDirection === 'asc' ? 'desc' : 'asc';
|
|
484
|
+
// } else {
|
|
485
|
+
// this.sortBy = column;
|
|
486
|
+
// this.sortDirection = 'asc';
|
|
487
|
+
// }
|
|
488
|
+
// };
|
|
489
|
+
// private handlePagination = (direction: 'first' | 'prev' | 'next' | 'last') => {
|
|
490
|
+
// switch (direction) {
|
|
491
|
+
// case 'first':
|
|
492
|
+
// this.currentPage = 1;
|
|
493
|
+
// break;
|
|
494
|
+
// case 'prev':
|
|
495
|
+
// if (this.currentPage > 1) this.currentPage--;
|
|
496
|
+
// break;
|
|
497
|
+
// case 'next':
|
|
498
|
+
// if (this.currentPage < this.totalPages) this.currentPage++;
|
|
499
|
+
// break;
|
|
500
|
+
// case 'last':
|
|
501
|
+
// this.currentPage = this.totalPages;
|
|
502
|
+
// break;
|
|
503
|
+
// }
|
|
504
|
+
// };
|
|
505
|
+
// private getSortIcon(column: string) {
|
|
506
|
+
// if (this.sortBy !== column) {
|
|
507
|
+
// // Unsorted
|
|
508
|
+
// return (
|
|
509
|
+
// <svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
510
|
+
// <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l4-4 4 4m0 6l-4 4-4-4"/>
|
|
511
|
+
// </svg>
|
|
512
|
+
// );
|
|
513
|
+
// }
|
|
514
|
+
// if (this.sortDirection === 'asc') {
|
|
515
|
+
// // Ascending
|
|
516
|
+
// return (
|
|
517
|
+
// <svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
518
|
+
// <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 15l4-4 4 4"/>
|
|
519
|
+
// </svg>
|
|
520
|
+
// );
|
|
521
|
+
// }
|
|
522
|
+
// // Descending
|
|
523
|
+
// return (
|
|
524
|
+
// <svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
525
|
+
// <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 9l-4 4-4-4"/>
|
|
526
|
+
// </svg>
|
|
527
|
+
// );
|
|
528
|
+
// }
|
|
529
|
+
// render() {
|
|
530
|
+
// return (
|
|
531
|
+
// <StyledHost class="xplor-table">
|
|
532
|
+
// <div class="bg-white rounded-lg shadow-sm border border-gray-200 p-6 max-w-6xl mx-auto">
|
|
533
|
+
// {/* Header */}
|
|
534
|
+
// <div class="mb-6">
|
|
535
|
+
// <h1 class="text-xl font-semibold text-gray-900 mb-4">Head Counts Report</h1>
|
|
536
|
+
// {/* Filter Controls */}
|
|
537
|
+
// <div class="flex flex-wrap items-center gap-4 mb-6">
|
|
538
|
+
// <div class="flex items-center gap-2">
|
|
539
|
+
// <label class="text-sm text-gray-600 font-medium">Date Range</label>
|
|
540
|
+
// <select
|
|
541
|
+
// 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"
|
|
542
|
+
// // value={this.selectedDateRange}
|
|
543
|
+
// onInput={this.handleDateRangeChange}
|
|
544
|
+
// >
|
|
545
|
+
// <option value="All">All</option>
|
|
546
|
+
// <option value="Today">Today</option>
|
|
547
|
+
// <option value="This Week">This Week</option>
|
|
548
|
+
// <option value="This Month">This Month</option>
|
|
549
|
+
// <option value="Custom">Custom Range</option>
|
|
550
|
+
// </select>
|
|
551
|
+
// <button class="p-1.5 border border-gray-300 rounded hover:bg-gray-50">
|
|
552
|
+
// <svg class="w-4 h-4 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
553
|
+
// <path 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"/>
|
|
554
|
+
// </svg>
|
|
555
|
+
// </button>
|
|
556
|
+
// </div>
|
|
557
|
+
// <button
|
|
558
|
+
// onClick={this.handleFilterReports}
|
|
559
|
+
// class="bg-teal-600 hover:bg-teal-700 text-white px-4 py-1.5 rounded text-sm font-medium transition-colors"
|
|
560
|
+
// >
|
|
561
|
+
// Filter Reports
|
|
562
|
+
// </button>
|
|
563
|
+
// <button
|
|
564
|
+
// onClick={this.handleDownloadAll}
|
|
565
|
+
// class="flex items-center gap-2 text-gray-600 hover:text-gray-800 text-sm"
|
|
566
|
+
// >
|
|
567
|
+
// <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
568
|
+
// <path 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"/>
|
|
569
|
+
// </svg>
|
|
570
|
+
// Download All
|
|
571
|
+
// </button>
|
|
572
|
+
// </div>
|
|
573
|
+
// </div>
|
|
574
|
+
// {/* Table */}
|
|
575
|
+
// <div class="overflow-x-auto">
|
|
576
|
+
// <table class="w-full">
|
|
577
|
+
// <thead>
|
|
578
|
+
// <tr class="border-b border-gray-200">
|
|
579
|
+
// <th class="text-left py-3 px-4 text-sm font-medium text-gray-600">
|
|
580
|
+
// <button
|
|
581
|
+
// onClick={() => this.handleSort('submitDate')}
|
|
582
|
+
// class="flex items-center gap-1 hover:text-gray-900"
|
|
583
|
+
// >
|
|
584
|
+
// Submit Date
|
|
585
|
+
// {this.getSortIcon('submitDate')}
|
|
586
|
+
// </button>
|
|
587
|
+
// </th>
|
|
588
|
+
// <th class="text-left py-3 px-4 text-sm font-medium text-gray-600">
|
|
589
|
+
// <button
|
|
590
|
+
// onClick={() => this.handleSort('time')}
|
|
591
|
+
// class="flex items-center gap-1 hover:text-gray-900"
|
|
592
|
+
// >
|
|
593
|
+
// Time
|
|
594
|
+
// {this.getSortIcon('time')}
|
|
595
|
+
// </button>
|
|
596
|
+
// </th>
|
|
597
|
+
// <th class="text-left py-3 px-4 text-sm font-medium text-gray-600">
|
|
598
|
+
// <button
|
|
599
|
+
// onClick={() => this.handleSort('educatorName')}
|
|
600
|
+
// class="flex items-center gap-1 hover:text-gray-900"
|
|
601
|
+
// >
|
|
602
|
+
// Educator Name
|
|
603
|
+
// {this.getSortIcon('educatorName')}
|
|
604
|
+
// </button>
|
|
605
|
+
// </th>
|
|
606
|
+
// <th class="text-left py-3 px-4 text-sm font-medium text-gray-600">
|
|
607
|
+
// <button
|
|
608
|
+
// onClick={() => this.handleSort('room')}
|
|
609
|
+
// class="flex items-center gap-1 hover:text-gray-900"
|
|
610
|
+
// >
|
|
611
|
+
// Room(s)
|
|
612
|
+
// {this.getSortIcon('room')}
|
|
613
|
+
// </button>
|
|
614
|
+
// </th>
|
|
615
|
+
// <th class="text-center py-3 px-4 text-sm font-medium text-gray-600">
|
|
616
|
+
// Download Report
|
|
617
|
+
// </th>
|
|
618
|
+
// </tr>
|
|
619
|
+
// </thead>
|
|
620
|
+
// <tbody>
|
|
621
|
+
// {this.reportData.map((row, index) => (
|
|
622
|
+
// <tr key={index} class="border-b border-gray-100 hover:bg-gray-50">
|
|
623
|
+
// <td class="py-3 px-4 text-sm text-gray-900">{row.submitDate}</td>
|
|
624
|
+
// <td class="py-3 px-4 text-sm text-gray-900">{row.time}</td>
|
|
625
|
+
// <td class="py-3 px-4 text-sm text-gray-900">{row.educatorName}</td>
|
|
626
|
+
// <td class="py-3 px-4 text-sm text-gray-900">{row.room}</td>
|
|
627
|
+
// <td class="py-3 px-4 text-center">
|
|
628
|
+
// <div class="flex items-center justify-center gap-2">
|
|
629
|
+
// <span class="bg-gray-100 text-gray-700 px-2 py-1 rounded text-xs">
|
|
630
|
+
// Toggle SortBy
|
|
631
|
+
// </span>
|
|
632
|
+
// <button
|
|
633
|
+
// onClick={() => this.handleDownloadReport(index)}
|
|
634
|
+
// class="p-1.5 text-teal-600 hover:text-teal-800 hover:bg-teal-50 rounded"
|
|
635
|
+
// >
|
|
636
|
+
// <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
637
|
+
// <path 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"/>
|
|
638
|
+
// </svg>
|
|
639
|
+
// </button>
|
|
640
|
+
// </div>
|
|
641
|
+
// </td>
|
|
642
|
+
// </tr>
|
|
643
|
+
// ))}
|
|
644
|
+
// </tbody>
|
|
645
|
+
// </table>
|
|
646
|
+
// </div>
|
|
647
|
+
// {/* Pagination */}
|
|
648
|
+
// <div class="flex items-center justify-between mt-6 text-sm">
|
|
649
|
+
// <div class="flex items-center gap-2">
|
|
650
|
+
// <button
|
|
651
|
+
// onClick={() => this.handlePagination('first')}
|
|
652
|
+
// class="p-1.5 text-gray-400 hover:text-gray-600 disabled:opacity-50"
|
|
653
|
+
// disabled={this.currentPage === 1}
|
|
654
|
+
// >
|
|
655
|
+
// <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
656
|
+
// <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 19l-7-7 7-7m8 14l-7-7 7-7"/>
|
|
657
|
+
// </button>
|
|
658
|
+
// <button
|
|
659
|
+
// onClick={() => this.handlePagination('prev')}
|
|
660
|
+
// class="p-1.5 text-gray-400 hover:text-gray-600 disabled:opacity-50"
|
|
661
|
+
// disabled={this.currentPage === 1}
|
|
662
|
+
// >
|
|
663
|
+
// <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
664
|
+
// <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"/>
|
|
665
|
+
// </button>
|
|
666
|
+
// </div>
|
|
667
|
+
// <span class="text-gray-600">
|
|
668
|
+
// Page {this.currentPage} of {this.totalPages}
|
|
669
|
+
// </span>
|
|
670
|
+
// <div class="flex items-center gap-2">
|
|
671
|
+
// <button
|
|
672
|
+
// onClick={() => this.handlePagination('next')}
|
|
673
|
+
// class="p-1.5 text-gray-400 hover:text-gray-600 disabled:opacity-50"
|
|
674
|
+
// disabled={this.currentPage === this.totalPages}
|
|
675
|
+
// >
|
|
676
|
+
// <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
677
|
+
// <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"/>
|
|
678
|
+
// </button>
|
|
679
|
+
// <button
|
|
680
|
+
// onClick={() => this.handlePagination('last')}
|
|
681
|
+
// class="p-1.5 text-gray-400 hover:text-gray-600 disabled:opacity-50"
|
|
682
|
+
// disabled={this.currentPage === this.totalPages}
|
|
683
|
+
// >
|
|
684
|
+
// <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
685
|
+
// <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 5l7 7-7 7M5 5l7 7-7 7"/>
|
|
686
|
+
// </svg>
|
|
687
|
+
// </button>
|
|
688
|
+
// </div>
|
|
689
|
+
// </div>
|
|
690
|
+
// </div>
|
|
691
|
+
// </StyledHost>
|
|
692
|
+
// );
|
|
693
|
+
// }
|
|
694
|
+
// }
|
|
695
|
+
//# sourceMappingURL=xplor-table.js.map
|