r3ui-lib 1.3.20 → 1.3.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/login.es.js +14 -3148
- package/dist/modules/_virtual/___vite-browser-external.js +6 -0
- package/dist/modules/_virtual/__vite-browser-external.js +4 -0
- package/dist/modules/_virtual/_commonjsHelpers.js +33 -0
- package/dist/modules/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/modules/_virtual/he.js +5 -0
- package/dist/modules/_virtual/he2.js +4 -0
- package/dist/modules/_virtual/index.js +7 -0
- package/dist/modules/_virtual/inputmask.js +7 -0
- package/dist/modules/_virtual/inputmask2.js +4 -0
- package/dist/modules/_virtual/ru.js +5 -0
- package/dist/modules/_virtual/ru2.js +4 -0
- package/dist/modules/assets/img/confirmation.png.js +4 -0
- package/dist/modules/assets/img/error.png.js +4 -0
- package/dist/modules/assets/img/preloader.gif.js +4 -0
- package/dist/modules/assets/img/regagro_logo.svg.js +4 -0
- package/dist/modules/assets/img/success.png.js +4 -0
- package/dist/modules/assets/img/warning.png.js +4 -0
- package/dist/modules/components/DefaultButton.vue.js +112 -0
- package/dist/modules/components/Divider.vue.js +33 -0
- package/dist/modules/components/Icon.vue.js +18 -0
- package/dist/modules/components/Slider.vue.js +7 -0
- package/dist/modules/components/Slider.vue2.js +127 -0
- package/dist/modules/components/Spinner.vue.js +19 -0
- package/dist/modules/components/SsoLoginPending.vue.js +7 -0
- package/dist/modules/components/SsoLoginPending.vue2.js +44 -0
- package/dist/modules/components/SsoLoginScreen.vue.js +57 -0
- package/dist/modules/components/SsoLoginScreen.vue2.js +4 -0
- package/dist/modules/components/accordions/DefaultAccordion.vue.js +7 -0
- package/dist/modules/components/accordions/DefaultAccordion.vue2.js +72 -0
- package/dist/modules/components/accordions/KindCheckboxesAccordion.vue.js +7 -0
- package/dist/modules/components/accordions/KindCheckboxesAccordion.vue2.js +152 -0
- package/dist/modules/components/buttons/AddButton.vue.js +7 -0
- package/dist/modules/components/buttons/AddButton.vue2.js +30 -0
- package/dist/modules/components/buttons/ClearFormButton.vue.js +7 -0
- package/dist/modules/components/buttons/ClearFormButton.vue2.js +28 -0
- package/dist/modules/components/buttons/CollapseButton.vue.js +7 -0
- package/dist/modules/components/buttons/CollapseButton.vue2.js +57 -0
- package/dist/modules/components/buttons/ExportButton.vue.js +7 -0
- package/dist/modules/components/buttons/ExportButton.vue2.js +28 -0
- package/dist/modules/components/buttons/PrintButton.vue.js +7 -0
- package/dist/modules/components/buttons/PrintButton.vue2.js +27 -0
- package/dist/modules/components/buttons/ToggleButtons.vue.js +7 -0
- package/dist/modules/components/buttons/ToggleButtons.vue2.js +30 -0
- package/dist/modules/components/cards/CardInfo.vue.js +7 -0
- package/dist/modules/components/cards/CardInfo.vue2.js +56 -0
- package/dist/modules/components/cards/PageCard.vue.js +7 -0
- package/dist/modules/components/cards/PageCard.vue2.js +117 -0
- package/dist/modules/components/dropdowns/DefaultDropDown.vue.js +102 -0
- package/dist/modules/components/export/ExportComponent.vue.js +7 -0
- package/dist/modules/components/export/ExportComponent.vue2.js +74 -0
- package/dist/modules/components/filters/MultipleQuickFilterComponent.vue.js +7 -0
- package/dist/modules/components/filters/MultipleQuickFilterComponent.vue2.js +34 -0
- package/dist/modules/components/form/Checkbox.vue.js +66 -0
- package/dist/modules/components/form/CustomInput.vue.js +161 -0
- package/dist/modules/components/form/FormError.vue.js +24 -0
- package/dist/modules/components/form/PasswordInput.vue.js +82 -0
- package/dist/modules/components/form/VSelect.vue.js +192 -0
- package/dist/modules/components/form/useWithPopper.js +29 -0
- package/dist/modules/components/forms/AddressForm.vue.js +7 -0
- package/dist/modules/components/forms/AddressForm.vue2.js +382 -0
- package/dist/modules/components/forms/AgeFromAgeTo.vue.js +7 -0
- package/dist/modules/components/forms/AgeFromAgeTo.vue2.js +207 -0
- package/dist/modules/components/forms/BooleanCheckbox.vue.js +7 -0
- package/dist/modules/components/forms/BooleanCheckbox.vue2.js +54 -0
- package/dist/modules/components/forms/Flatpickr.vue.js +7 -0
- package/dist/modules/components/forms/Flatpickr.vue2.js +273 -0
- package/dist/modules/components/forms/HeaderSearchForm.vue.js +7 -0
- package/dist/modules/components/forms/HeaderSearchForm.vue2.js +142 -0
- package/dist/modules/components/forms/MultiCheckbox.vue.js +7 -0
- package/dist/modules/components/forms/MultiCheckbox.vue2.js +64 -0
- package/dist/modules/components/forms/MultiInput.vue.js +7 -0
- package/dist/modules/components/forms/MultiInput.vue2.js +115 -0
- package/dist/modules/components/icons/QuestionIcon.vue.js +7 -0
- package/dist/modules/components/icons/QuestionIcon.vue2.js +56 -0
- package/dist/modules/components/layout/Breadcrumbs.vue.js +7 -0
- package/dist/modules/components/layout/Breadcrumbs.vue2.js +40 -0
- package/dist/modules/components/layout/Card.vue.js +31 -0
- package/dist/modules/components/layout/Footer.vue.js +15 -0
- package/dist/modules/components/layout/Footer.vue2.js +4 -0
- package/dist/modules/components/layout/Header.vue.js +7 -0
- package/dist/modules/components/layout/Header.vue2.js +68 -0
- package/dist/modules/components/layout/LanguageSelector.vue.js +32 -0
- package/dist/modules/components/layout/LanguageSelector.vue3.js +5 -0
- package/dist/modules/components/layout/LoginLayoutFrame.vue.js +48 -0
- package/dist/modules/components/layout/LoginLayoutFrame.vue2.js +4 -0
- package/dist/modules/components/layout/MainComponent.vue.js +50 -0
- package/dist/modules/components/layout/MainComponent.vue2.js +4 -0
- package/dist/modules/components/layout/PageTitle.vue.js +7 -0
- package/dist/modules/components/layout/PageTitle.vue2.js +40 -0
- package/dist/modules/components/logo/Logo.vue.js +7 -0
- package/dist/modules/components/logo/Logo.vue2.js +50 -0
- package/dist/modules/components/modals/ConfirmationModal.vue.js +7 -0
- package/dist/modules/components/modals/ConfirmationModal.vue2.js +154 -0
- package/dist/modules/components/modals/DefaultModal.vue.js +116 -0
- package/dist/modules/components/modals/DefaultModal.vue3.js +5 -0
- package/dist/modules/components/modals/EditTableColumnsModalComponent.vue.js +7 -0
- package/dist/modules/components/modals/EditTableColumnsModalComponent.vue2.js +41 -0
- package/dist/modules/components/modals/TableFilterModalComponent.vue.js +7 -0
- package/dist/modules/components/modals/TableFilterModalComponent.vue2.js +66 -0
- package/dist/modules/components/modals/TableFilterModalShell.vue.js +89 -0
- package/dist/modules/components/modals/TableFilterModalShell.vue2.js +4 -0
- package/dist/modules/components/notifications/ErrorMessageComponent.vue.js +7 -0
- package/dist/modules/components/notifications/ErrorMessageComponent.vue2.js +45 -0
- package/dist/modules/components/notifications/NotificationMessage.vue.js +55 -0
- package/dist/modules/components/notifications/NotificationMessage.vue2.js +4 -0
- package/dist/modules/components/notifications/Toast.vue.js +71 -0
- package/dist/modules/components/sidebar/CollapsedSidebarLink.vue.js +7 -0
- package/dist/modules/components/sidebar/CollapsedSidebarLink.vue2.js +90 -0
- package/dist/modules/components/sidebar/Sidebar.vue.js +59 -0
- package/dist/modules/components/sidebar/Sidebar.vue3.js +5 -0
- package/dist/modules/components/sidebar/SidebarLink.vue.js +7 -0
- package/dist/modules/components/sidebar/SidebarLink.vue2.js +93 -0
- package/dist/modules/components/tables/ColumnSubFilter.vue.js +7 -0
- package/dist/modules/components/tables/ColumnSubFilter.vue2.js +36 -0
- package/dist/modules/components/tables/EditTableColumns.vue.js +7 -0
- package/dist/modules/components/tables/EditTableColumns.vue2.js +125 -0
- package/dist/modules/components/tables/ManagedRemoteTable.vue.js +72 -0
- package/dist/modules/components/tables/ManagedRemoteTable.vue2.js +4 -0
- package/dist/modules/components/tables/SubFilterToggleBtn.vue.js +28 -0
- package/dist/modules/components/tables/Table.vue.js +416 -0
- package/dist/modules/components/tables/Table.vue3.js +5 -0
- package/dist/modules/components/tables/TableAppliedFiltersStorage.vue.js +7 -0
- package/dist/modules/components/tables/TableAppliedFiltersStorage.vue2.js +56 -0
- package/dist/modules/components/tables/TableColumnsButton.vue.js +27 -0
- package/dist/modules/components/tables/TableColumnsButton.vue2.js +4 -0
- package/dist/modules/components/tables/TableColumnsDialog.vue.js +67 -0
- package/dist/modules/components/tables/TableColumnsDialog.vue2.js +4 -0
- package/dist/modules/components/tables/TableColumnsModal.vue.js +27 -0
- package/dist/modules/components/tables/TableColumnsModal.vue2.js +4 -0
- package/dist/modules/components/tables/TableCount.vue.js +7 -0
- package/dist/modules/components/tables/TableCount.vue2.js +26 -0
- package/dist/modules/components/tables/TableQuickFilterComponent.vue.js +7 -0
- package/dist/modules/components/tables/TableQuickFilterComponent.vue2.js +29 -0
- package/dist/modules/components/tables/ToggleAllTableRowButtons.vue.js +7 -0
- package/dist/modules/components/tables/ToggleAllTableRowButtons.vue2.js +41 -0
- package/dist/modules/components/utilities/FilterValuesPanel.vue.js +7 -0
- package/dist/modules/components/utilities/FilterValuesPanel.vue2.js +95 -0
- package/dist/modules/composables/forms/useAddressForm.js +289 -0
- package/dist/modules/composables/forms/useFieldError.js +23 -0
- package/dist/modules/composables/forms/useSearchForm.js +52 -0
- package/dist/modules/composables/forms/useUnsavedChanges.js +84 -0
- package/dist/modules/composables/layout/useR3uiLayoutInject.js +32 -0
- package/dist/modules/composables/main/useBreadcrumbs.js +75 -0
- package/dist/modules/composables/main/useMain.js +38 -0
- package/dist/modules/composables/main/usePermissionChecker.js +15 -0
- package/dist/modules/composables/modals/useModalLayer.js +109 -0
- package/dist/modules/composables/sidebar/useSidebar.js +40 -0
- package/dist/modules/composables/table/createTableCommandScheduler.js +62 -0
- package/dist/modules/composables/table/createTableLifecycle.js +719 -0
- package/dist/modules/composables/table/createTableRebuildTransaction.js +61 -0
- package/dist/modules/composables/table/createTableSession.js +38 -0
- package/dist/modules/composables/table/createTableState.js +122 -0
- package/dist/modules/composables/table/createTabulatorAdapter.js +90 -0
- package/dist/modules/composables/table/tableQueryTransitions.js +82 -0
- package/dist/modules/composables/table/useManagedRemoteTable.js +179 -0
- package/dist/modules/composables/table/useR3uiTableDefaultInject.js +27 -0
- package/dist/modules/composables/table/useRemoteTable.js +96 -0
- package/dist/modules/composables/table/useTableColumnApply.js +38 -0
- package/dist/modules/composables/table/useTableColumns.js +70 -0
- package/dist/modules/composables/table/useTableColumnsEnhanced.js +155 -0
- package/dist/modules/composables/table/useTableColumnsIntegration.js +82 -0
- package/dist/modules/composables/table/useTableDefault.js +258 -0
- package/dist/modules/composables/table/useTableStorage.js +32 -0
- package/dist/modules/constants/authSidebar.js +36 -0
- package/dist/modules/services/AddressService.js +21 -0
- package/dist/modules/types/layoutInjectKeys.js +10 -0
- package/dist/modules/types/tableInjectKeys.js +21 -0
- package/dist/modules/types/tableInstance.js +32 -0
- package/dist/modules/utils/accordionLocalization.js +14 -0
- package/dist/modules/utils/addressFormTranslations.js +29 -0
- package/dist/modules/utils/auth/authUser.js +13 -0
- package/dist/modules/utils/auth/exchangePasswordToken.js +52 -0
- package/dist/modules/utils/auth/handlePkceCallback.js +88 -0
- package/dist/modules/utils/auth/logout.js +32 -0
- package/dist/modules/utils/auth/runLogoutHandler.js +60 -0
- package/dist/modules/utils/auth/sessionController.js +28 -0
- package/dist/modules/utils/auth/signInWithSSO.js +141 -0
- package/dist/modules/utils/authCookie.js +21 -0
- package/dist/modules/utils/constants.js +34 -0
- package/dist/modules/utils/createTabulatorLangsFromT.js +30 -0
- package/dist/modules/utils/createTabulatorTableProps.js +19 -0
- package/dist/modules/utils/helpers.js +537 -0
- package/dist/modules/utils/pkce.js +50 -0
- package/dist/modules/utils/table-columns-utils.js +59 -0
- package/dist/modules/utils/tableAdapter.js +156 -0
- package/dist/modules/utils/tableAjaxRequest.js +82 -0
- package/dist/modules/utils/tableCancellation.js +271 -0
- package/dist/modules/utils/tableColumnStorage.js +55 -0
- package/dist/modules/utils/tableData.js +118 -0
- package/dist/modules/utils/tableLoad.js +67 -0
- package/dist/modules/utils/tableLocalizations.js +6 -0
- package/dist/modules/utils/tableOperation.js +63 -0
- package/dist/modules/utils/tableProjection.js +137 -0
- package/dist/modules/utils/tableQueryParameters.js +46 -0
- package/dist/modules/utils/tableSnapshotValue.js +73 -0
- package/dist/modules/utils/tabulatorQueryAdapter.js +203 -0
- package/dist/modules/utils/tabulatorRuntime.js +131 -0
- package/dist/modules/utils/upstreamHttpStatus.js +32 -0
- package/dist/modules/vendor/@popperjs/core/lib/createPopper.js +122 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/contains.js +18 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getBoundingClientRect.js +23 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getClippingRect.js +37 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getCompositeRect.js +32 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getComputedStyle.js +7 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getDocumentElement.js +10 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getDocumentRect.js +17 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js +9 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getLayoutRect.js +13 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getNodeName.js +6 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getNodeScroll.js +10 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getOffsetParent.js +35 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getParentNode.js +18 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getScrollParent.js +10 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getViewportRect.js +21 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getWindow.js +12 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getWindowScroll.js +11 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js +9 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/instanceOf.js +20 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/isLayoutViewport.js +7 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/isScrollParent.js +8 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/isTableElement.js +7 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/listScrollParents.js +16 -0
- package/dist/modules/vendor/@popperjs/core/lib/enums.js +31 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/applyStyles.js +47 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/arrow.js +37 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/computeStyles.js +99 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/eventListeners.js +26 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/flip.js +74 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/hide.js +44 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/offset.js +31 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/popperOffsets.js +19 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/preventOverflow.js +54 -0
- package/dist/modules/vendor/@popperjs/core/lib/popper.js +27 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/computeAutoPlacement.js +27 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/computeOffsets.js +54 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/debounce.js +13 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/detectOverflow.js +33 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/expandToHashMap.js +8 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/getAltAxis.js +6 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/getBasePlacement.js +6 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/getFreshSideObject.js +11 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/getMainAxisFromPlacement.js +6 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/getOppositePlacement.js +14 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/getOppositeVariationPlacement.js +12 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/getVariation.js +6 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/math.js +6 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/mergeByName.js +15 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/mergePaddingObject.js +7 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/orderModifiers.js +31 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/rectToClientRect.js +11 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/userAgent.js +9 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/within.js +12 -0
- package/dist/modules/vendor/call-bind-apply-helpers/actualApply.js +14 -0
- package/dist/modules/vendor/call-bind-apply-helpers/functionApply.js +7 -0
- package/dist/modules/vendor/call-bind-apply-helpers/functionCall.js +7 -0
- package/dist/modules/vendor/call-bind-apply-helpers/index.js +18 -0
- package/dist/modules/vendor/call-bind-apply-helpers/reflectApply.js +7 -0
- package/dist/modules/vendor/call-bound/index.js +21 -0
- package/dist/modules/vendor/dompurify/dist/purify.es.js +1522 -0
- package/dist/modules/vendor/dunder-proto/get.js +29 -0
- package/dist/modules/vendor/es-define-property/index.js +16 -0
- package/dist/modules/vendor/es-errors/eval.js +7 -0
- package/dist/modules/vendor/es-errors/index.js +7 -0
- package/dist/modules/vendor/es-errors/range.js +7 -0
- package/dist/modules/vendor/es-errors/ref.js +7 -0
- package/dist/modules/vendor/es-errors/syntax.js +7 -0
- package/dist/modules/vendor/es-errors/type.js +7 -0
- package/dist/modules/vendor/es-errors/uri.js +7 -0
- package/dist/modules/vendor/es-object-atoms/index.js +7 -0
- package/dist/modules/vendor/flatpickr/dist/esm/index.js +942 -0
- package/dist/modules/vendor/flatpickr/dist/esm/l10n/default.js +75 -0
- package/dist/modules/vendor/flatpickr/dist/esm/types/options.js +80 -0
- package/dist/modules/vendor/flatpickr/dist/esm/utils/dates.js +89 -0
- package/dist/modules/vendor/flatpickr/dist/esm/utils/dom.js +45 -0
- package/dist/modules/vendor/flatpickr/dist/esm/utils/formatting.js +170 -0
- package/dist/modules/vendor/flatpickr/dist/esm/utils/index.js +23 -0
- package/dist/modules/vendor/flatpickr/dist/esm/utils/polyfills.js +15 -0
- package/dist/modules/vendor/flatpickr/dist/l10n/he.js +56 -0
- package/dist/modules/vendor/flatpickr/dist/l10n/ru.js +73 -0
- package/dist/modules/vendor/function-bind/implementation.js +48 -0
- package/dist/modules/vendor/function-bind/index.js +11 -0
- package/dist/modules/vendor/get-intrinsic/index.js +265 -0
- package/dist/modules/vendor/get-proto/Object.getPrototypeOf.js +11 -0
- package/dist/modules/vendor/get-proto/Reflect.getPrototypeOf.js +7 -0
- package/dist/modules/vendor/get-proto/index.js +21 -0
- package/dist/modules/vendor/gopd/gOPD.js +7 -0
- package/dist/modules/vendor/gopd/index.js +17 -0
- package/dist/modules/vendor/has-symbols/index.js +13 -0
- package/dist/modules/vendor/has-symbols/shams.js +33 -0
- package/dist/modules/vendor/hasown/index.js +11 -0
- package/dist/modules/vendor/inputmask/dist/inputmask.js +3517 -0
- package/dist/modules/vendor/math-intrinsics/abs.js +7 -0
- package/dist/modules/vendor/math-intrinsics/floor.js +7 -0
- package/dist/modules/vendor/math-intrinsics/isNaN.js +9 -0
- package/dist/modules/vendor/math-intrinsics/max.js +7 -0
- package/dist/modules/vendor/math-intrinsics/min.js +7 -0
- package/dist/modules/vendor/math-intrinsics/pow.js +7 -0
- package/dist/modules/vendor/math-intrinsics/round.js +7 -0
- package/dist/modules/vendor/math-intrinsics/sign.js +13 -0
- package/dist/modules/vendor/moment/dist/moment.js +2589 -0
- package/dist/modules/vendor/nouislider/dist/nouislider.js +1064 -0
- package/dist/modules/vendor/object-inspect/index.js +376 -0
- package/dist/modules/vendor/qs/lib/formats.js +25 -0
- package/dist/modules/vendor/qs/lib/index.js +17 -0
- package/dist/modules/vendor/qs/lib/parse.js +161 -0
- package/dist/modules/vendor/qs/lib/stringify.js +197 -0
- package/dist/modules/vendor/qs/lib/utils.js +129 -0
- package/dist/modules/vendor/seamless-scroll-polyfill/lib/common.js +21 -0
- package/dist/modules/vendor/seamless-scroll-polyfill/lib/scroll-end-event.js +12 -0
- package/dist/modules/vendor/seamless-scroll-polyfill/lib/scroll-step.js +21 -0
- package/dist/modules/vendor/seamless-scroll-polyfill/lib/scroll.js +58 -0
- package/dist/modules/vendor/seamless-scroll-polyfill/lib/scrollIntoView.js +168 -0
- package/dist/modules/vendor/side-channel/index.js +35 -0
- package/dist/modules/vendor/side-channel-list/index.js +64 -0
- package/dist/modules/vendor/side-channel-map/index.js +40 -0
- package/dist/modules/vendor/side-channel-weakmap/index.js +43 -0
- package/dist/modules/vendor/tabulator-tables/dist/js/tabulator_esm.js +11127 -0
- package/dist/modules/vendor/vue-select/dist/vue-select.es.js +769 -0
- package/dist/r3ui-lib.es.js +334 -35120
- package/package.json +7 -3
|
@@ -0,0 +1,769 @@
|
|
|
1
|
+
import { resolveDirective as T, createElementBlock as h, openBlock as a, normalizeClass as _, renderSlot as r, createElementVNode as p, createVNode as F, normalizeProps as d, guardReactiveProps as c, Fragment as V, renderList as $, createCommentVNode as m, createTextVNode as w, toDisplayString as C, createBlock as b, resolveDynamicComponent as O, mergeProps as L, toHandlers as E, withDirectives as v, vShow as B, Transition as M, withCtx as j, withModifiers as A } from "vue";
|
|
2
|
+
var I = Object.defineProperty, N = Object.defineProperties, K = Object.getOwnPropertyDescriptors, D = Object.getOwnPropertySymbols, R = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable, P = (e, t, s) => t in e ? I(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, f = (e, t) => {
|
|
3
|
+
for (var s in t || (t = {}))
|
|
4
|
+
R.call(t, s) && P(e, s, t[s]);
|
|
5
|
+
if (D)
|
|
6
|
+
for (var s of D(t))
|
|
7
|
+
z.call(t, s) && P(e, s, t[s]);
|
|
8
|
+
return e;
|
|
9
|
+
}, x = (e, t) => N(e, K(t));
|
|
10
|
+
const U = {
|
|
11
|
+
props: {
|
|
12
|
+
autoscroll: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !0
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
watch: {
|
|
18
|
+
typeAheadPointer() {
|
|
19
|
+
this.autoscroll && this.maybeAdjustScroll();
|
|
20
|
+
},
|
|
21
|
+
open(e) {
|
|
22
|
+
this.autoscroll && e && this.$nextTick(() => this.maybeAdjustScroll());
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
methods: {
|
|
26
|
+
maybeAdjustScroll() {
|
|
27
|
+
var e;
|
|
28
|
+
const t = ((e = this.$refs.dropdownMenu) == null ? void 0 : e.children[this.typeAheadPointer]) || !1;
|
|
29
|
+
if (t) {
|
|
30
|
+
const s = this.getDropdownViewport(), { top: n, bottom: l, height: o } = t.getBoundingClientRect();
|
|
31
|
+
if (n < s.top)
|
|
32
|
+
return this.$refs.dropdownMenu.scrollTop = t.offsetTop;
|
|
33
|
+
if (l > s.bottom)
|
|
34
|
+
return this.$refs.dropdownMenu.scrollTop = t.offsetTop - (s.height - o);
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
getDropdownViewport() {
|
|
38
|
+
return this.$refs.dropdownMenu ? this.$refs.dropdownMenu.getBoundingClientRect() : {
|
|
39
|
+
height: 0,
|
|
40
|
+
top: 0,
|
|
41
|
+
bottom: 0
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}, J = {
|
|
46
|
+
data() {
|
|
47
|
+
return {
|
|
48
|
+
typeAheadPointer: -1
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
watch: {
|
|
52
|
+
filteredOptions() {
|
|
53
|
+
for (let e = 0; e < this.filteredOptions.length; e++)
|
|
54
|
+
if (this.selectable(this.filteredOptions[e])) {
|
|
55
|
+
this.typeAheadPointer = e;
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
open(e) {
|
|
60
|
+
e && this.typeAheadToLastSelected();
|
|
61
|
+
},
|
|
62
|
+
selectedValue() {
|
|
63
|
+
this.open && this.typeAheadToLastSelected();
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
methods: {
|
|
67
|
+
typeAheadUp() {
|
|
68
|
+
for (let e = this.typeAheadPointer - 1; e >= 0; e--)
|
|
69
|
+
if (this.selectable(this.filteredOptions[e])) {
|
|
70
|
+
this.typeAheadPointer = e;
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
typeAheadDown() {
|
|
75
|
+
for (let e = this.typeAheadPointer + 1; e < this.filteredOptions.length; e++)
|
|
76
|
+
if (this.selectable(this.filteredOptions[e])) {
|
|
77
|
+
this.typeAheadPointer = e;
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
typeAheadSelect() {
|
|
82
|
+
const e = this.filteredOptions[this.typeAheadPointer];
|
|
83
|
+
e && this.selectable(e) && this.select(e);
|
|
84
|
+
},
|
|
85
|
+
typeAheadToLastSelected() {
|
|
86
|
+
this.typeAheadPointer = this.selectedValue.length !== 0 ? this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length - 1]) : -1;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}, q = {
|
|
90
|
+
props: {
|
|
91
|
+
loading: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
default: !1
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
data() {
|
|
97
|
+
return {
|
|
98
|
+
mutableLoading: !1
|
|
99
|
+
};
|
|
100
|
+
},
|
|
101
|
+
watch: {
|
|
102
|
+
search() {
|
|
103
|
+
this.$emit("search", this.search, this.toggleLoading);
|
|
104
|
+
},
|
|
105
|
+
loading(e) {
|
|
106
|
+
this.mutableLoading = e;
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
methods: {
|
|
110
|
+
toggleLoading(e = null) {
|
|
111
|
+
return e == null ? this.mutableLoading = !this.mutableLoading : this.mutableLoading = e;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}, S = (e, t) => {
|
|
115
|
+
const s = e.__vccOpts || e;
|
|
116
|
+
for (const [n, l] of t)
|
|
117
|
+
s[n] = l;
|
|
118
|
+
return s;
|
|
119
|
+
}, H = {}, Q = {
|
|
120
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
121
|
+
width: "10",
|
|
122
|
+
height: "10"
|
|
123
|
+
}, X = /* @__PURE__ */ p("path", { d: "M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z" }, null, -1), Y = [
|
|
124
|
+
X
|
|
125
|
+
];
|
|
126
|
+
function G(e, t) {
|
|
127
|
+
return a(), h("svg", Q, Y);
|
|
128
|
+
}
|
|
129
|
+
const W = /* @__PURE__ */ S(H, [["render", G]]), Z = {}, ee = {
|
|
130
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
131
|
+
width: "14",
|
|
132
|
+
height: "10"
|
|
133
|
+
}, te = /* @__PURE__ */ p("path", { d: "M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z" }, null, -1), se = [
|
|
134
|
+
te
|
|
135
|
+
];
|
|
136
|
+
function oe(e, t) {
|
|
137
|
+
return a(), h("svg", ee, se);
|
|
138
|
+
}
|
|
139
|
+
const ie = /* @__PURE__ */ S(Z, [["render", oe]]), k = {
|
|
140
|
+
Deselect: W,
|
|
141
|
+
OpenIndicator: ie
|
|
142
|
+
}, ne = {
|
|
143
|
+
mounted(e, { instance: t }) {
|
|
144
|
+
if (t.appendToBody) {
|
|
145
|
+
const {
|
|
146
|
+
height: s,
|
|
147
|
+
top: n,
|
|
148
|
+
left: l,
|
|
149
|
+
width: o
|
|
150
|
+
} = t.$refs.toggle.getBoundingClientRect();
|
|
151
|
+
let y = window.scrollX || window.pageXOffset, i = window.scrollY || window.pageYOffset;
|
|
152
|
+
e.unbindPosition = t.calculatePosition(e, t, {
|
|
153
|
+
width: o + "px",
|
|
154
|
+
left: y + l + "px",
|
|
155
|
+
top: i + n + s + "px"
|
|
156
|
+
}), document.body.appendChild(e);
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
unmounted(e, { instance: t }) {
|
|
160
|
+
t.appendToBody && (e.unbindPosition && typeof e.unbindPosition == "function" && e.unbindPosition(), e.parentNode && e.parentNode.removeChild(e));
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
function le(e) {
|
|
164
|
+
const t = {};
|
|
165
|
+
return Object.keys(e).sort().forEach((s) => {
|
|
166
|
+
t[s] = e[s];
|
|
167
|
+
}), JSON.stringify(t);
|
|
168
|
+
}
|
|
169
|
+
let ae = 0;
|
|
170
|
+
function re() {
|
|
171
|
+
return ++ae;
|
|
172
|
+
}
|
|
173
|
+
const de = {
|
|
174
|
+
components: f({}, k),
|
|
175
|
+
directives: { appendToBody: ne },
|
|
176
|
+
mixins: [U, J, q],
|
|
177
|
+
compatConfig: {
|
|
178
|
+
MODE: 3
|
|
179
|
+
},
|
|
180
|
+
emits: [
|
|
181
|
+
"open",
|
|
182
|
+
"close",
|
|
183
|
+
"update:modelValue",
|
|
184
|
+
"search",
|
|
185
|
+
"search:compositionstart",
|
|
186
|
+
"search:compositionend",
|
|
187
|
+
"search:keydown",
|
|
188
|
+
"search:blur",
|
|
189
|
+
"search:focus",
|
|
190
|
+
"search:input",
|
|
191
|
+
"option:created",
|
|
192
|
+
"option:selecting",
|
|
193
|
+
"option:selected",
|
|
194
|
+
"option:deselecting",
|
|
195
|
+
"option:deselected"
|
|
196
|
+
],
|
|
197
|
+
props: {
|
|
198
|
+
modelValue: {},
|
|
199
|
+
components: {
|
|
200
|
+
type: Object,
|
|
201
|
+
default: () => ({})
|
|
202
|
+
},
|
|
203
|
+
options: {
|
|
204
|
+
type: Array,
|
|
205
|
+
default() {
|
|
206
|
+
return [];
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
disabled: {
|
|
210
|
+
type: Boolean,
|
|
211
|
+
default: !1
|
|
212
|
+
},
|
|
213
|
+
clearable: {
|
|
214
|
+
type: Boolean,
|
|
215
|
+
default: !0
|
|
216
|
+
},
|
|
217
|
+
deselectFromDropdown: {
|
|
218
|
+
type: Boolean,
|
|
219
|
+
default: !1
|
|
220
|
+
},
|
|
221
|
+
searchable: {
|
|
222
|
+
type: Boolean,
|
|
223
|
+
default: !0
|
|
224
|
+
},
|
|
225
|
+
multiple: {
|
|
226
|
+
type: Boolean,
|
|
227
|
+
default: !1
|
|
228
|
+
},
|
|
229
|
+
placeholder: {
|
|
230
|
+
type: String,
|
|
231
|
+
default: ""
|
|
232
|
+
},
|
|
233
|
+
transition: {
|
|
234
|
+
type: String,
|
|
235
|
+
default: "vs__fade"
|
|
236
|
+
},
|
|
237
|
+
clearSearchOnSelect: {
|
|
238
|
+
type: Boolean,
|
|
239
|
+
default: !0
|
|
240
|
+
},
|
|
241
|
+
closeOnSelect: {
|
|
242
|
+
type: Boolean,
|
|
243
|
+
default: !0
|
|
244
|
+
},
|
|
245
|
+
label: {
|
|
246
|
+
type: String,
|
|
247
|
+
default: "label"
|
|
248
|
+
},
|
|
249
|
+
autocomplete: {
|
|
250
|
+
type: String,
|
|
251
|
+
default: "off"
|
|
252
|
+
},
|
|
253
|
+
reduce: {
|
|
254
|
+
type: Function,
|
|
255
|
+
default: (e) => e
|
|
256
|
+
},
|
|
257
|
+
selectable: {
|
|
258
|
+
type: Function,
|
|
259
|
+
default: (e) => !0
|
|
260
|
+
},
|
|
261
|
+
getOptionLabel: {
|
|
262
|
+
type: Function,
|
|
263
|
+
default(e) {
|
|
264
|
+
return typeof e == "object" ? e.hasOwnProperty(this.label) ? e[this.label] : console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(e)}.
|
|
265
|
+
https://vue-select.org/api/props.html#getoptionlabel`) : e;
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
getOptionKey: {
|
|
269
|
+
type: Function,
|
|
270
|
+
default(e) {
|
|
271
|
+
if (typeof e != "object")
|
|
272
|
+
return e;
|
|
273
|
+
try {
|
|
274
|
+
return e.hasOwnProperty("id") ? e.id : le(e);
|
|
275
|
+
} catch (t) {
|
|
276
|
+
return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.
|
|
277
|
+
https://vue-select.org/api/props.html#getoptionkey`, e, t);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
onTab: {
|
|
282
|
+
type: Function,
|
|
283
|
+
default: function() {
|
|
284
|
+
this.selectOnTab && !this.isComposing && this.typeAheadSelect();
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
taggable: {
|
|
288
|
+
type: Boolean,
|
|
289
|
+
default: !1
|
|
290
|
+
},
|
|
291
|
+
tabindex: {
|
|
292
|
+
type: Number,
|
|
293
|
+
default: null
|
|
294
|
+
},
|
|
295
|
+
pushTags: {
|
|
296
|
+
type: Boolean,
|
|
297
|
+
default: !1
|
|
298
|
+
},
|
|
299
|
+
filterable: {
|
|
300
|
+
type: Boolean,
|
|
301
|
+
default: !0
|
|
302
|
+
},
|
|
303
|
+
filterBy: {
|
|
304
|
+
type: Function,
|
|
305
|
+
default(e, t, s) {
|
|
306
|
+
return (t || "").toLocaleLowerCase().indexOf(s.toLocaleLowerCase()) > -1;
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
filter: {
|
|
310
|
+
type: Function,
|
|
311
|
+
default(e, t) {
|
|
312
|
+
return e.filter((s) => {
|
|
313
|
+
let n = this.getOptionLabel(s);
|
|
314
|
+
return typeof n == "number" && (n = n.toString()), this.filterBy(s, n, t);
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
createOption: {
|
|
319
|
+
type: Function,
|
|
320
|
+
default(e) {
|
|
321
|
+
return typeof this.optionList[0] == "object" ? { [this.label]: e } : e;
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
resetOnOptionsChange: {
|
|
325
|
+
default: !1,
|
|
326
|
+
validator: (e) => ["function", "boolean"].includes(typeof e)
|
|
327
|
+
},
|
|
328
|
+
clearSearchOnBlur: {
|
|
329
|
+
type: Function,
|
|
330
|
+
default: function({ clearSearchOnSelect: e, multiple: t }) {
|
|
331
|
+
return e && !t;
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
noDrop: {
|
|
335
|
+
type: Boolean,
|
|
336
|
+
default: !1
|
|
337
|
+
},
|
|
338
|
+
inputId: {
|
|
339
|
+
type: String
|
|
340
|
+
},
|
|
341
|
+
dir: {
|
|
342
|
+
type: String,
|
|
343
|
+
default: "auto"
|
|
344
|
+
},
|
|
345
|
+
selectOnTab: {
|
|
346
|
+
type: Boolean,
|
|
347
|
+
default: !1
|
|
348
|
+
},
|
|
349
|
+
selectOnKeyCodes: {
|
|
350
|
+
type: Array,
|
|
351
|
+
default: () => [13]
|
|
352
|
+
},
|
|
353
|
+
searchInputQuerySelector: {
|
|
354
|
+
type: String,
|
|
355
|
+
default: "[type=search]"
|
|
356
|
+
},
|
|
357
|
+
mapKeydown: {
|
|
358
|
+
type: Function,
|
|
359
|
+
default: (e, t) => e
|
|
360
|
+
},
|
|
361
|
+
appendToBody: {
|
|
362
|
+
type: Boolean,
|
|
363
|
+
default: !1
|
|
364
|
+
},
|
|
365
|
+
calculatePosition: {
|
|
366
|
+
type: Function,
|
|
367
|
+
default(e, t, { width: s, top: n, left: l }) {
|
|
368
|
+
e.style.top = n, e.style.left = l, e.style.width = s;
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
dropdownShouldOpen: {
|
|
372
|
+
type: Function,
|
|
373
|
+
default({ noDrop: e, open: t, mutableLoading: s }) {
|
|
374
|
+
return e ? !1 : t && !s;
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
uid: {
|
|
378
|
+
type: [String, Number],
|
|
379
|
+
default: () => re()
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
data() {
|
|
383
|
+
return {
|
|
384
|
+
search: "",
|
|
385
|
+
open: !1,
|
|
386
|
+
isComposing: !1,
|
|
387
|
+
pushedTags: [],
|
|
388
|
+
_value: [],
|
|
389
|
+
deselectButtons: []
|
|
390
|
+
};
|
|
391
|
+
},
|
|
392
|
+
computed: {
|
|
393
|
+
isReducingValues() {
|
|
394
|
+
return this.$props.reduce !== this.$options.props.reduce.default;
|
|
395
|
+
},
|
|
396
|
+
isTrackingValues() {
|
|
397
|
+
return typeof this.modelValue > "u" || this.isReducingValues;
|
|
398
|
+
},
|
|
399
|
+
selectedValue() {
|
|
400
|
+
let e = this.modelValue;
|
|
401
|
+
return this.isTrackingValues && (e = this.$data._value), e != null && e !== "" ? [].concat(e) : [];
|
|
402
|
+
},
|
|
403
|
+
optionList() {
|
|
404
|
+
return this.options.concat(this.pushTags ? this.pushedTags : []);
|
|
405
|
+
},
|
|
406
|
+
searchEl() {
|
|
407
|
+
return this.$slots.search ? this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector) : this.$refs.search;
|
|
408
|
+
},
|
|
409
|
+
scope() {
|
|
410
|
+
const e = {
|
|
411
|
+
search: this.search,
|
|
412
|
+
loading: this.loading,
|
|
413
|
+
searching: this.searching,
|
|
414
|
+
filteredOptions: this.filteredOptions
|
|
415
|
+
};
|
|
416
|
+
return {
|
|
417
|
+
search: {
|
|
418
|
+
attributes: f({
|
|
419
|
+
disabled: this.disabled,
|
|
420
|
+
placeholder: this.searchPlaceholder,
|
|
421
|
+
tabindex: this.tabindex,
|
|
422
|
+
readonly: !this.searchable,
|
|
423
|
+
id: this.inputId,
|
|
424
|
+
"aria-autocomplete": "list",
|
|
425
|
+
"aria-labelledby": `vs${this.uid}__combobox`,
|
|
426
|
+
"aria-controls": `vs${this.uid}__listbox`,
|
|
427
|
+
ref: "search",
|
|
428
|
+
type: "search",
|
|
429
|
+
autocomplete: this.autocomplete,
|
|
430
|
+
value: this.search
|
|
431
|
+
}, this.dropdownOpen && this.filteredOptions[this.typeAheadPointer] ? {
|
|
432
|
+
"aria-activedescendant": `vs${this.uid}__option-${this.typeAheadPointer}`
|
|
433
|
+
} : {}),
|
|
434
|
+
events: {
|
|
435
|
+
compositionstart: () => this.isComposing = !0,
|
|
436
|
+
compositionend: () => this.isComposing = !1,
|
|
437
|
+
keydown: this.onSearchKeyDown,
|
|
438
|
+
blur: this.onSearchBlur,
|
|
439
|
+
focus: this.onSearchFocus,
|
|
440
|
+
input: (t) => this.search = t.target.value
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
spinner: {
|
|
444
|
+
loading: this.mutableLoading
|
|
445
|
+
},
|
|
446
|
+
noOptions: {
|
|
447
|
+
search: this.search,
|
|
448
|
+
loading: this.mutableLoading,
|
|
449
|
+
searching: this.searching
|
|
450
|
+
},
|
|
451
|
+
openIndicator: {
|
|
452
|
+
attributes: {
|
|
453
|
+
ref: "openIndicator",
|
|
454
|
+
role: "presentation",
|
|
455
|
+
class: "vs__open-indicator"
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
listHeader: e,
|
|
459
|
+
listFooter: e,
|
|
460
|
+
header: x(f({}, e), { deselect: this.deselect }),
|
|
461
|
+
footer: x(f({}, e), { deselect: this.deselect })
|
|
462
|
+
};
|
|
463
|
+
},
|
|
464
|
+
childComponents() {
|
|
465
|
+
return f(f({}, k), this.components);
|
|
466
|
+
},
|
|
467
|
+
stateClasses() {
|
|
468
|
+
return {
|
|
469
|
+
"vs--open": this.dropdownOpen,
|
|
470
|
+
"vs--single": !this.multiple,
|
|
471
|
+
"vs--multiple": this.multiple,
|
|
472
|
+
"vs--searching": this.searching && !this.noDrop,
|
|
473
|
+
"vs--searchable": this.searchable && !this.noDrop,
|
|
474
|
+
"vs--unsearchable": !this.searchable,
|
|
475
|
+
"vs--loading": this.mutableLoading,
|
|
476
|
+
"vs--disabled": this.disabled
|
|
477
|
+
};
|
|
478
|
+
},
|
|
479
|
+
searching() {
|
|
480
|
+
return !!this.search;
|
|
481
|
+
},
|
|
482
|
+
dropdownOpen() {
|
|
483
|
+
return this.dropdownShouldOpen(this);
|
|
484
|
+
},
|
|
485
|
+
searchPlaceholder() {
|
|
486
|
+
return this.isValueEmpty && this.placeholder ? this.placeholder : void 0;
|
|
487
|
+
},
|
|
488
|
+
filteredOptions() {
|
|
489
|
+
const e = [].concat(this.optionList);
|
|
490
|
+
if (!this.filterable && !this.taggable)
|
|
491
|
+
return e;
|
|
492
|
+
const t = this.search.length ? this.filter(e, this.search, this) : e;
|
|
493
|
+
if (this.taggable && this.search.length) {
|
|
494
|
+
const s = this.createOption(this.search);
|
|
495
|
+
this.optionExists(s) || t.unshift(s);
|
|
496
|
+
}
|
|
497
|
+
return t;
|
|
498
|
+
},
|
|
499
|
+
isValueEmpty() {
|
|
500
|
+
return this.selectedValue.length === 0;
|
|
501
|
+
},
|
|
502
|
+
showClearButton() {
|
|
503
|
+
return !this.multiple && this.clearable && !this.open && !this.isValueEmpty;
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
watch: {
|
|
507
|
+
options(e, t) {
|
|
508
|
+
const s = () => typeof this.resetOnOptionsChange == "function" ? this.resetOnOptionsChange(e, t, this.selectedValue) : this.resetOnOptionsChange;
|
|
509
|
+
!this.taggable && s() && this.clearSelection(), this.modelValue && this.isTrackingValues && this.setInternalValueFromOptions(this.modelValue);
|
|
510
|
+
},
|
|
511
|
+
modelValue: {
|
|
512
|
+
immediate: !0,
|
|
513
|
+
handler(e) {
|
|
514
|
+
this.isTrackingValues && this.setInternalValueFromOptions(e);
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
multiple() {
|
|
518
|
+
this.clearSelection();
|
|
519
|
+
},
|
|
520
|
+
open(e) {
|
|
521
|
+
this.$emit(e ? "open" : "close");
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
created() {
|
|
525
|
+
this.mutableLoading = this.loading;
|
|
526
|
+
},
|
|
527
|
+
methods: {
|
|
528
|
+
setInternalValueFromOptions(e) {
|
|
529
|
+
Array.isArray(e) ? this.$data._value = e.map((t) => this.findOptionFromReducedValue(t)) : this.$data._value = this.findOptionFromReducedValue(e);
|
|
530
|
+
},
|
|
531
|
+
select(e) {
|
|
532
|
+
this.$emit("option:selecting", e), this.isOptionSelected(e) ? this.deselectFromDropdown && (this.clearable || this.multiple && this.selectedValue.length > 1) && this.deselect(e) : (this.taggable && !this.optionExists(e) && (this.$emit("option:created", e), this.pushTag(e)), this.multiple && (e = this.selectedValue.concat(e)), this.updateValue(e), this.$emit("option:selected", e)), this.onAfterSelect(e);
|
|
533
|
+
},
|
|
534
|
+
deselect(e) {
|
|
535
|
+
this.$emit("option:deselecting", e), this.updateValue(this.selectedValue.filter((t) => !this.optionComparator(t, e))), this.$emit("option:deselected", e);
|
|
536
|
+
},
|
|
537
|
+
clearSelection() {
|
|
538
|
+
this.updateValue(this.multiple ? [] : null);
|
|
539
|
+
},
|
|
540
|
+
onAfterSelect(e) {
|
|
541
|
+
this.closeOnSelect && (this.open = !this.open, this.searchEl.blur()), this.clearSearchOnSelect && (this.search = "");
|
|
542
|
+
},
|
|
543
|
+
updateValue(e) {
|
|
544
|
+
typeof this.modelValue > "u" && (this.$data._value = e), e !== null && (Array.isArray(e) ? e = e.map((t) => this.reduce(t)) : e = this.reduce(e)), this.$emit("update:modelValue", e);
|
|
545
|
+
},
|
|
546
|
+
toggleDropdown(e) {
|
|
547
|
+
const t = e.target !== this.searchEl;
|
|
548
|
+
t && e.preventDefault();
|
|
549
|
+
const s = [
|
|
550
|
+
...this.deselectButtons || [],
|
|
551
|
+
this.$refs.clearButton
|
|
552
|
+
];
|
|
553
|
+
if (this.searchEl === void 0 || s.filter(Boolean).some((n) => n.contains(e.target) || n === e.target)) {
|
|
554
|
+
e.preventDefault();
|
|
555
|
+
return;
|
|
556
|
+
}
|
|
557
|
+
this.open && t ? this.searchEl.blur() : this.disabled || (this.open = !0, this.searchEl.focus());
|
|
558
|
+
},
|
|
559
|
+
isOptionSelected(e) {
|
|
560
|
+
return this.selectedValue.some((t) => this.optionComparator(t, e));
|
|
561
|
+
},
|
|
562
|
+
isOptionDeselectable(e) {
|
|
563
|
+
return this.isOptionSelected(e) && this.deselectFromDropdown;
|
|
564
|
+
},
|
|
565
|
+
optionComparator(e, t) {
|
|
566
|
+
return this.getOptionKey(e) === this.getOptionKey(t);
|
|
567
|
+
},
|
|
568
|
+
findOptionFromReducedValue(e) {
|
|
569
|
+
const t = (n) => JSON.stringify(this.reduce(n)) === JSON.stringify(e), s = [...this.options, ...this.pushedTags].filter(t);
|
|
570
|
+
return s.length === 1 ? s[0] : s.find((n) => this.optionComparator(n, this.$data._value)) || e;
|
|
571
|
+
},
|
|
572
|
+
closeSearchOptions() {
|
|
573
|
+
this.open = !1, this.$emit("search:blur");
|
|
574
|
+
},
|
|
575
|
+
maybeDeleteValue() {
|
|
576
|
+
if (!this.searchEl.value.length && this.selectedValue && this.selectedValue.length && this.clearable) {
|
|
577
|
+
let e = null;
|
|
578
|
+
this.multiple && (e = [
|
|
579
|
+
...this.selectedValue.slice(0, this.selectedValue.length - 1)
|
|
580
|
+
]), this.updateValue(e);
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
optionExists(e) {
|
|
584
|
+
return this.optionList.some((t) => this.optionComparator(t, e));
|
|
585
|
+
},
|
|
586
|
+
normalizeOptionForSlot(e) {
|
|
587
|
+
return typeof e == "object" ? e : { [this.label]: e };
|
|
588
|
+
},
|
|
589
|
+
pushTag(e) {
|
|
590
|
+
this.pushedTags.push(e);
|
|
591
|
+
},
|
|
592
|
+
onEscape() {
|
|
593
|
+
this.search.length ? this.search = "" : this.searchEl.blur();
|
|
594
|
+
},
|
|
595
|
+
onSearchBlur() {
|
|
596
|
+
if (this.mousedown && !this.searching)
|
|
597
|
+
this.mousedown = !1;
|
|
598
|
+
else {
|
|
599
|
+
const { clearSearchOnSelect: e, multiple: t } = this;
|
|
600
|
+
this.clearSearchOnBlur({ clearSearchOnSelect: e, multiple: t }) && (this.search = ""), this.closeSearchOptions();
|
|
601
|
+
return;
|
|
602
|
+
}
|
|
603
|
+
if (this.search.length === 0 && this.options.length === 0) {
|
|
604
|
+
this.closeSearchOptions();
|
|
605
|
+
return;
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
onSearchFocus() {
|
|
609
|
+
this.open = !0, this.$emit("search:focus");
|
|
610
|
+
},
|
|
611
|
+
onMousedown() {
|
|
612
|
+
this.mousedown = !0;
|
|
613
|
+
},
|
|
614
|
+
onMouseUp() {
|
|
615
|
+
this.mousedown = !1;
|
|
616
|
+
},
|
|
617
|
+
onSearchKeyDown(e) {
|
|
618
|
+
const t = (l) => (l.preventDefault(), !this.isComposing && this.typeAheadSelect()), s = {
|
|
619
|
+
8: (l) => this.maybeDeleteValue(),
|
|
620
|
+
9: (l) => this.onTab(),
|
|
621
|
+
27: (l) => this.onEscape(),
|
|
622
|
+
38: (l) => (l.preventDefault(), this.typeAheadUp()),
|
|
623
|
+
40: (l) => (l.preventDefault(), this.typeAheadDown())
|
|
624
|
+
};
|
|
625
|
+
this.selectOnKeyCodes.forEach((l) => s[l] = t);
|
|
626
|
+
const n = this.mapKeydown(s, this);
|
|
627
|
+
if (typeof n[e.keyCode] == "function")
|
|
628
|
+
return n[e.keyCode](e);
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
}, he = ["dir"], ce = ["id", "aria-expanded", "aria-owns"], pe = {
|
|
632
|
+
ref: "selectedOptions",
|
|
633
|
+
class: "vs__selected-options"
|
|
634
|
+
}, ue = ["disabled", "title", "aria-label", "onClick"], fe = {
|
|
635
|
+
ref: "actions",
|
|
636
|
+
class: "vs__actions"
|
|
637
|
+
}, ge = ["disabled"], ye = { class: "vs__spinner" }, me = ["id"], be = ["id", "aria-selected", "onMouseover", "onClick"], Oe = {
|
|
638
|
+
key: 0,
|
|
639
|
+
class: "vs__no-options"
|
|
640
|
+
}, ve = /* @__PURE__ */ w(" Sorry, no matching options. "), we = ["id"];
|
|
641
|
+
function Se(e, t, s, n, l, o) {
|
|
642
|
+
const y = T("append-to-body");
|
|
643
|
+
return a(), h("div", {
|
|
644
|
+
dir: s.dir,
|
|
645
|
+
class: _(["v-select", o.stateClasses])
|
|
646
|
+
}, [
|
|
647
|
+
r(e.$slots, "header", d(c(o.scope.header))),
|
|
648
|
+
p("div", {
|
|
649
|
+
id: `vs${s.uid}__combobox`,
|
|
650
|
+
ref: "toggle",
|
|
651
|
+
class: "vs__dropdown-toggle",
|
|
652
|
+
role: "combobox",
|
|
653
|
+
"aria-expanded": o.dropdownOpen.toString(),
|
|
654
|
+
"aria-owns": `vs${s.uid}__listbox`,
|
|
655
|
+
"aria-label": "Search for option",
|
|
656
|
+
onMousedown: t[1] || (t[1] = (i) => o.toggleDropdown(i))
|
|
657
|
+
}, [
|
|
658
|
+
p("div", pe, [
|
|
659
|
+
(a(!0), h(V, null, $(o.selectedValue, (i, u) => r(e.$slots, "selected-option-container", {
|
|
660
|
+
option: o.normalizeOptionForSlot(i),
|
|
661
|
+
deselect: o.deselect,
|
|
662
|
+
multiple: s.multiple,
|
|
663
|
+
disabled: s.disabled
|
|
664
|
+
}, () => [
|
|
665
|
+
(a(), h("span", {
|
|
666
|
+
key: s.getOptionKey(i),
|
|
667
|
+
class: "vs__selected"
|
|
668
|
+
}, [
|
|
669
|
+
r(e.$slots, "selected-option", d(c(o.normalizeOptionForSlot(i))), () => [
|
|
670
|
+
w(C(s.getOptionLabel(i)), 1)
|
|
671
|
+
]),
|
|
672
|
+
s.multiple ? (a(), h("button", {
|
|
673
|
+
key: 0,
|
|
674
|
+
ref_for: !0,
|
|
675
|
+
ref: (g) => l.deselectButtons[u] = g,
|
|
676
|
+
disabled: s.disabled,
|
|
677
|
+
type: "button",
|
|
678
|
+
class: "vs__deselect",
|
|
679
|
+
title: `Deselect ${s.getOptionLabel(i)}`,
|
|
680
|
+
"aria-label": `Deselect ${s.getOptionLabel(i)}`,
|
|
681
|
+
onClick: (g) => o.deselect(i)
|
|
682
|
+
}, [
|
|
683
|
+
(a(), b(O(o.childComponents.Deselect)))
|
|
684
|
+
], 8, ue)) : m("", !0)
|
|
685
|
+
]))
|
|
686
|
+
])), 256)),
|
|
687
|
+
r(e.$slots, "search", d(c(o.scope.search)), () => [
|
|
688
|
+
p("input", L({ class: "vs__search" }, o.scope.search.attributes, E(o.scope.search.events)), null, 16)
|
|
689
|
+
])
|
|
690
|
+
], 512),
|
|
691
|
+
p("div", fe, [
|
|
692
|
+
v(p("button", {
|
|
693
|
+
ref: "clearButton",
|
|
694
|
+
disabled: s.disabled,
|
|
695
|
+
type: "button",
|
|
696
|
+
class: "vs__clear",
|
|
697
|
+
title: "Clear Selected",
|
|
698
|
+
"aria-label": "Clear Selected",
|
|
699
|
+
onClick: t[0] || (t[0] = (...i) => o.clearSelection && o.clearSelection(...i))
|
|
700
|
+
}, [
|
|
701
|
+
(a(), b(O(o.childComponents.Deselect)))
|
|
702
|
+
], 8, ge), [
|
|
703
|
+
[B, o.showClearButton]
|
|
704
|
+
]),
|
|
705
|
+
r(e.$slots, "open-indicator", d(c(o.scope.openIndicator)), () => [
|
|
706
|
+
s.noDrop ? m("", !0) : (a(), b(O(o.childComponents.OpenIndicator), d(L({ key: 0 }, o.scope.openIndicator.attributes)), null, 16))
|
|
707
|
+
]),
|
|
708
|
+
r(e.$slots, "spinner", d(c(o.scope.spinner)), () => [
|
|
709
|
+
v(p("div", ye, "Loading...", 512), [
|
|
710
|
+
[B, e.mutableLoading]
|
|
711
|
+
])
|
|
712
|
+
])
|
|
713
|
+
], 512)
|
|
714
|
+
], 40, ce),
|
|
715
|
+
F(M, { name: s.transition }, {
|
|
716
|
+
default: j(() => [
|
|
717
|
+
o.dropdownOpen ? v((a(), h("ul", {
|
|
718
|
+
id: `vs${s.uid}__listbox`,
|
|
719
|
+
ref: "dropdownMenu",
|
|
720
|
+
key: `vs${s.uid}__listbox`,
|
|
721
|
+
class: "vs__dropdown-menu",
|
|
722
|
+
role: "listbox",
|
|
723
|
+
tabindex: "-1",
|
|
724
|
+
onMousedown: t[2] || (t[2] = A((...i) => o.onMousedown && o.onMousedown(...i), ["prevent"])),
|
|
725
|
+
onMouseup: t[3] || (t[3] = (...i) => o.onMouseUp && o.onMouseUp(...i))
|
|
726
|
+
}, [
|
|
727
|
+
r(e.$slots, "list-header", d(c(o.scope.listHeader))),
|
|
728
|
+
(a(!0), h(V, null, $(o.filteredOptions, (i, u) => (a(), h("li", {
|
|
729
|
+
id: `vs${s.uid}__option-${u}`,
|
|
730
|
+
key: s.getOptionKey(i),
|
|
731
|
+
role: "option",
|
|
732
|
+
class: _(["vs__dropdown-option", {
|
|
733
|
+
"vs__dropdown-option--deselect": o.isOptionDeselectable(i) && u === e.typeAheadPointer,
|
|
734
|
+
"vs__dropdown-option--selected": o.isOptionSelected(i),
|
|
735
|
+
"vs__dropdown-option--highlight": u === e.typeAheadPointer,
|
|
736
|
+
"vs__dropdown-option--disabled": !s.selectable(i)
|
|
737
|
+
}]),
|
|
738
|
+
"aria-selected": u === e.typeAheadPointer ? !0 : null,
|
|
739
|
+
onMouseover: (g) => s.selectable(i) ? e.typeAheadPointer = u : null,
|
|
740
|
+
onClick: A((g) => s.selectable(i) ? o.select(i) : null, ["prevent", "stop"])
|
|
741
|
+
}, [
|
|
742
|
+
r(e.$slots, "option", d(c(o.normalizeOptionForSlot(i))), () => [
|
|
743
|
+
w(C(s.getOptionLabel(i)), 1)
|
|
744
|
+
])
|
|
745
|
+
], 42, be))), 128)),
|
|
746
|
+
o.filteredOptions.length === 0 ? (a(), h("li", Oe, [
|
|
747
|
+
r(e.$slots, "no-options", d(c(o.scope.noOptions)), () => [
|
|
748
|
+
ve
|
|
749
|
+
])
|
|
750
|
+
])) : m("", !0),
|
|
751
|
+
r(e.$slots, "list-footer", d(c(o.scope.listFooter)))
|
|
752
|
+
], 40, me)), [
|
|
753
|
+
[y]
|
|
754
|
+
]) : (a(), h("ul", {
|
|
755
|
+
key: 1,
|
|
756
|
+
id: `vs${s.uid}__listbox`,
|
|
757
|
+
role: "listbox",
|
|
758
|
+
style: { display: "none", visibility: "hidden" }
|
|
759
|
+
}, null, 8, we))
|
|
760
|
+
]),
|
|
761
|
+
_: 3
|
|
762
|
+
}, 8, ["name"]),
|
|
763
|
+
r(e.$slots, "footer", d(c(o.scope.footer)))
|
|
764
|
+
], 10, he);
|
|
765
|
+
}
|
|
766
|
+
const Ve = /* @__PURE__ */ S(de, [["render", Se]]);
|
|
767
|
+
export {
|
|
768
|
+
Ve as default
|
|
769
|
+
};
|