r3ui-lib 1.3.19 → 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.css +1 -1
- package/dist/r3ui-lib.es.js +334 -35110
- package/dist/r3ui-lib.umd.js +12 -12
- package/dist/types/components/forms/AddressForm.vue.d.ts.map +1 -1
- package/package.json +7 -3
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ref as a, computed as r } from "vue";
|
|
2
|
+
function w(i = {}) {
|
|
3
|
+
const {
|
|
4
|
+
placeholder: p = "Поиск...",
|
|
5
|
+
searchHint: g = "Введите минимум 3 символа",
|
|
6
|
+
searchTypes: h = [
|
|
7
|
+
{ value: "partial", label: "По частичному совпадению" },
|
|
8
|
+
{ value: "exact", label: "По полному совпадению" }
|
|
9
|
+
],
|
|
10
|
+
defaultSearchType: u = "partial",
|
|
11
|
+
minSearchLength: s = 3
|
|
12
|
+
} = i, t = a(""), o = a([]), l = a(!1), S = a(u), n = a(!1), c = a(!1), v = r(() => t.value && t.value.length > 0 && t.value.length < s ? `Введите минимум ${s} символа` : g), d = r(() => h);
|
|
13
|
+
return {
|
|
14
|
+
// State
|
|
15
|
+
search: t,
|
|
16
|
+
options: o,
|
|
17
|
+
isSearchLoading: l,
|
|
18
|
+
searchType: S,
|
|
19
|
+
showSettings: n,
|
|
20
|
+
isLoading: c,
|
|
21
|
+
// Computed
|
|
22
|
+
enterCharacterMessage: v,
|
|
23
|
+
filteredSearchTypes: d,
|
|
24
|
+
// Methods
|
|
25
|
+
onSearch: (e) => {
|
|
26
|
+
t.value = e || "", e && e.length >= s;
|
|
27
|
+
},
|
|
28
|
+
onSelect: (e) => {
|
|
29
|
+
},
|
|
30
|
+
clearSearch: () => {
|
|
31
|
+
t.value = "", o.value = [];
|
|
32
|
+
},
|
|
33
|
+
toggleSettings: () => {
|
|
34
|
+
n.value = !n.value;
|
|
35
|
+
},
|
|
36
|
+
hideSettings: () => {
|
|
37
|
+
n.value = !1;
|
|
38
|
+
},
|
|
39
|
+
setOptions: (e) => {
|
|
40
|
+
o.value = e;
|
|
41
|
+
},
|
|
42
|
+
setLoading: (e) => {
|
|
43
|
+
l.value = e;
|
|
44
|
+
},
|
|
45
|
+
setGlobalLoading: (e) => {
|
|
46
|
+
c.value = e;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
w as useSearchForm
|
|
52
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { getCurrentScope as V, shallowRef as D, ref as h, getCurrentInstance as U, computed as T, watch as P, toValue as E, onMounted as q, onActivated as B, onDeactivated as O, onScopeDispose as W, readonly as x } from "vue";
|
|
2
|
+
import { equalTableValue as A, cloneTableValue as I } from "../../utils/tableSnapshotValue.js";
|
|
3
|
+
function j(s) {
|
|
4
|
+
if (!V())
|
|
5
|
+
throw new Error("useUnsavedChanges требует активный Vue scope");
|
|
6
|
+
if (typeof s?.getSnapshot != "function")
|
|
7
|
+
throw new TypeError("useUnsavedChanges: getSnapshot должен быть функцией");
|
|
8
|
+
const a = D(null), f = h(!1), n = h(!0), m = U(), w = h(!m), u = () => E(s.enabled ?? !0), l = () => E(s.isPersisting ?? !1), c = T(
|
|
9
|
+
() => a.value !== null && !A(s.getSnapshot(), a.value.snapshot)
|
|
10
|
+
);
|
|
11
|
+
let i = !1, r;
|
|
12
|
+
function g(e) {
|
|
13
|
+
const o = r;
|
|
14
|
+
r = void 0, f.value = !1, o?.(e);
|
|
15
|
+
}
|
|
16
|
+
function t() {
|
|
17
|
+
g(!1);
|
|
18
|
+
}
|
|
19
|
+
function L(...e) {
|
|
20
|
+
if (i) throw new Error("Отслеживание формы уже завершено");
|
|
21
|
+
const o = I(
|
|
22
|
+
e.length ? e[0] : s.getSnapshot()
|
|
23
|
+
);
|
|
24
|
+
a.value = { snapshot: o };
|
|
25
|
+
}
|
|
26
|
+
function b() {
|
|
27
|
+
t(), a.value = null;
|
|
28
|
+
}
|
|
29
|
+
function S() {
|
|
30
|
+
const e = r;
|
|
31
|
+
if (r = void 0, e?.(!1), i || !n.value)
|
|
32
|
+
return t(), Promise.resolve(!1);
|
|
33
|
+
if (!u())
|
|
34
|
+
return t(), Promise.resolve(!0);
|
|
35
|
+
if (l())
|
|
36
|
+
return t(), Promise.resolve(!1);
|
|
37
|
+
if (!c.value)
|
|
38
|
+
return t(), Promise.resolve(!0);
|
|
39
|
+
const o = new Promise((p) => {
|
|
40
|
+
r = p;
|
|
41
|
+
});
|
|
42
|
+
return f.value = !0, o;
|
|
43
|
+
}
|
|
44
|
+
function C() {
|
|
45
|
+
r && g(!i && n.value && u() && !l());
|
|
46
|
+
}
|
|
47
|
+
P(
|
|
48
|
+
[u, l, n],
|
|
49
|
+
([e, o, p]) => {
|
|
50
|
+
(!e || o || !p) && t();
|
|
51
|
+
},
|
|
52
|
+
{ flush: "sync" }
|
|
53
|
+
);
|
|
54
|
+
const y = () => w.value && n.value && u() && (l() || c.value), v = typeof window > "u" ? void 0 : window;
|
|
55
|
+
function d(e) {
|
|
56
|
+
y() && (e.preventDefault(), e.returnValue = "");
|
|
57
|
+
}
|
|
58
|
+
return P(
|
|
59
|
+
y,
|
|
60
|
+
(e) => {
|
|
61
|
+
e ? v?.addEventListener("beforeunload", d) : v?.removeEventListener("beforeunload", d);
|
|
62
|
+
},
|
|
63
|
+
{ immediate: !0, flush: "sync" }
|
|
64
|
+
), m && (q(() => {
|
|
65
|
+
w.value = !0;
|
|
66
|
+
}), B(() => {
|
|
67
|
+
n.value = !0;
|
|
68
|
+
}), O(() => {
|
|
69
|
+
n.value = !1;
|
|
70
|
+
})), W(() => {
|
|
71
|
+
i = !0, n.value = !1, b(), v?.removeEventListener("beforeunload", d);
|
|
72
|
+
}), {
|
|
73
|
+
isDirty: c,
|
|
74
|
+
confirmationOpen: x(f),
|
|
75
|
+
captureBaseline: L,
|
|
76
|
+
clearBaseline: b,
|
|
77
|
+
requestLeave: S,
|
|
78
|
+
confirmLeave: C,
|
|
79
|
+
cancelLeave: t
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
export {
|
|
83
|
+
j as useUnsavedChanges
|
|
84
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { inject as n } from "vue";
|
|
2
|
+
import { expandAccordionKey as e, expandedAccordionKey as i, addToLocalStorageKey as o, hideSpinnerKey as r, showSpinnerKey as t, sidebarContentVisibilityKey as c, toggleSidebarKey as d } from "../../types/layoutInjectKeys.js";
|
|
3
|
+
function a() {
|
|
4
|
+
return n(e, null) ?? n("expandAccordion");
|
|
5
|
+
}
|
|
6
|
+
function p() {
|
|
7
|
+
return n(i, null) ?? n("expandedAccordion");
|
|
8
|
+
}
|
|
9
|
+
function S() {
|
|
10
|
+
return n(c, null) ?? n("sidebarContentVisibility");
|
|
11
|
+
}
|
|
12
|
+
function y() {
|
|
13
|
+
return n(d, null) ?? n("toggleSidebar");
|
|
14
|
+
}
|
|
15
|
+
function b() {
|
|
16
|
+
return n(t, null) ?? n("showSpinner");
|
|
17
|
+
}
|
|
18
|
+
function f() {
|
|
19
|
+
return n(r, null) ?? n("hideSpinner");
|
|
20
|
+
}
|
|
21
|
+
function g() {
|
|
22
|
+
return n(o, null) ?? n("addToLocalStorage");
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
g as injectAddToLocalStorage,
|
|
26
|
+
a as injectExpandAccordion,
|
|
27
|
+
p as injectExpandedAccordion,
|
|
28
|
+
f as injectHideSpinner,
|
|
29
|
+
b as injectShowSpinner,
|
|
30
|
+
S as injectSidebarContentVisibility,
|
|
31
|
+
y as injectToggleSidebar
|
|
32
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ref as S, computed as B, onMounted as w } from "vue";
|
|
2
|
+
const N = (i = {}) => {
|
|
3
|
+
const {
|
|
4
|
+
navigate: l = (e) => console.warn("useBreadcrumbs: navigate function not provided"),
|
|
5
|
+
translate: f = (e) => e,
|
|
6
|
+
getCurrentRoute: m = () => ({ path: "/", name: "home" }),
|
|
7
|
+
maxItems: o = 5,
|
|
8
|
+
storageKey: n = "breadcrumbs"
|
|
9
|
+
} = i, t = S([]);
|
|
10
|
+
function p(e) {
|
|
11
|
+
l(e);
|
|
12
|
+
}
|
|
13
|
+
function u(e, r) {
|
|
14
|
+
if (!Array.isArray(e)) return [];
|
|
15
|
+
const a = JSON.parse(JSON.stringify(e));
|
|
16
|
+
return a.length > r && a.splice(0, a.length - r), a;
|
|
17
|
+
}
|
|
18
|
+
function d() {
|
|
19
|
+
const e = m();
|
|
20
|
+
if (typeof e.path != "string" || !e.path)
|
|
21
|
+
throw new TypeError("useBreadcrumbs: path обязателен");
|
|
22
|
+
if (typeof e.name != "string" || !e.name)
|
|
23
|
+
throw new TypeError("useBreadcrumbs: name обязателен");
|
|
24
|
+
return { path: e.path, name: e.name };
|
|
25
|
+
}
|
|
26
|
+
function g() {
|
|
27
|
+
const e = localStorage.getItem(n);
|
|
28
|
+
if (e === null || e === "") return [];
|
|
29
|
+
let r;
|
|
30
|
+
try {
|
|
31
|
+
r = JSON.parse(e);
|
|
32
|
+
} catch {
|
|
33
|
+
throw new TypeError("useBreadcrumbs: невалидный JSON в storage");
|
|
34
|
+
}
|
|
35
|
+
if (!Array.isArray(r))
|
|
36
|
+
throw new TypeError("useBreadcrumbs: storage должен быть массивом");
|
|
37
|
+
return r;
|
|
38
|
+
}
|
|
39
|
+
function s() {
|
|
40
|
+
const e = d(), r = t.value || [], a = r[r.length - 1];
|
|
41
|
+
if (JSON.stringify(a) === JSON.stringify(e)) return !1;
|
|
42
|
+
r.push(e), t.value = u(r, o), localStorage.setItem(n, JSON.stringify(t.value));
|
|
43
|
+
}
|
|
44
|
+
function c() {
|
|
45
|
+
t.value = g(), s();
|
|
46
|
+
}
|
|
47
|
+
const h = B(() => t.value.map((e, r) => ({
|
|
48
|
+
text: f(`routes.${e.name}`),
|
|
49
|
+
href: e.path,
|
|
50
|
+
isActive: r === t.value.length - 1
|
|
51
|
+
})));
|
|
52
|
+
function y() {
|
|
53
|
+
s();
|
|
54
|
+
}
|
|
55
|
+
function v() {
|
|
56
|
+
t.value = [], localStorage.removeItem(n);
|
|
57
|
+
}
|
|
58
|
+
function b(e) {
|
|
59
|
+
const r = t.value || [];
|
|
60
|
+
r.push(e), t.value = u(r, o), localStorage.setItem(n, JSON.stringify(t.value));
|
|
61
|
+
}
|
|
62
|
+
return typeof localStorage < "u" && c(), w(() => {
|
|
63
|
+
t.value.length === 0 && typeof localStorage < "u" && c();
|
|
64
|
+
}), {
|
|
65
|
+
goTo: p,
|
|
66
|
+
crumbs: h,
|
|
67
|
+
breadcrumbs: t,
|
|
68
|
+
updateBreadcrumbs: y,
|
|
69
|
+
clearBreadcrumbs: v,
|
|
70
|
+
addBreadcrumb: b
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
export {
|
|
74
|
+
N as useBreadcrumbs
|
|
75
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ref as n, provide as s, watch as f, onMounted as g, onBeforeUnmount as m } from "vue";
|
|
2
|
+
import { sidebarContentVisibilityKey as h, toggleSidebarKey as w } from "../../types/layoutInjectKeys.js";
|
|
3
|
+
const V = (b) => {
|
|
4
|
+
const e = n(!0), a = n(null), l = n(null), t = n(320), d = () => {
|
|
5
|
+
e.value = !1, t.value = 60, localStorage.setItem("sideBarVisibility", "0");
|
|
6
|
+
}, c = () => {
|
|
7
|
+
e.value = !0, t.value = 320, localStorage.setItem("sideBarVisibility", "1");
|
|
8
|
+
}, r = () => {
|
|
9
|
+
e.value ? d() : c();
|
|
10
|
+
}, v = () => {
|
|
11
|
+
localStorage.getItem("sideBarVisibility") === "0" ? d() : c();
|
|
12
|
+
}, i = () => {
|
|
13
|
+
setTimeout(() => {
|
|
14
|
+
const o = a.value?.offsetWidth || 0, u = t.value || 0;
|
|
15
|
+
if (o > 0 && u > 0) {
|
|
16
|
+
const S = window.innerWidth < 768;
|
|
17
|
+
l.value = S ? o : o - u - 20;
|
|
18
|
+
}
|
|
19
|
+
}, 50);
|
|
20
|
+
};
|
|
21
|
+
return s(h, e), s("sidebarContentVisibility", e), s(w, r), s("toggleSidebar", r), f(t, () => {
|
|
22
|
+
i();
|
|
23
|
+
}, { deep: !0 }), g(() => {
|
|
24
|
+
v(), i(), window.addEventListener("resize", i, !0);
|
|
25
|
+
}), m(() => {
|
|
26
|
+
window.removeEventListener("resize", i, !0);
|
|
27
|
+
}), {
|
|
28
|
+
isAuthenticated: b,
|
|
29
|
+
contentWidth: l,
|
|
30
|
+
clientWidth: a,
|
|
31
|
+
sidebarWidth: t,
|
|
32
|
+
toggleSidebar: r,
|
|
33
|
+
sidebarContentVisibility: e
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
V as useMain
|
|
38
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { computed as o, toValue as t } from "vue";
|
|
2
|
+
import { hasPermission as u } from "../../utils/helpers.js";
|
|
3
|
+
function s(e) {
|
|
4
|
+
return e?.length ? e.map((r) => typeof r == "string" ? r : r?.name ?? "").filter((r) => !!r) : [];
|
|
5
|
+
}
|
|
6
|
+
function f(e) {
|
|
7
|
+
const r = o(() => {
|
|
8
|
+
const n = t(e);
|
|
9
|
+
return s(n);
|
|
10
|
+
});
|
|
11
|
+
return (n) => u(n, r.value);
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
f as usePermissionChecker
|
|
15
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { useId as w, onMounted as E, onActivated as x, onDeactivated as S, watch as I, onScopeDispose as L } from "vue";
|
|
2
|
+
const m = /* @__PURE__ */ new WeakMap(), M = 'a[href], button, input, select, textarea, [tabindex], [contenteditable="true"]';
|
|
3
|
+
function b(n) {
|
|
4
|
+
const o = Array.from(
|
|
5
|
+
n.querySelectorAll(M)
|
|
6
|
+
).filter(
|
|
7
|
+
(t) => t.tabIndex >= 0 && !t.matches(":disabled") && !t.closest('[inert], [hidden], [aria-hidden="true"]') && t.getClientRects().length > 0 && getComputedStyle(t).visibility !== "hidden"
|
|
8
|
+
), c = /* @__PURE__ */ new Map();
|
|
9
|
+
for (const t of o) {
|
|
10
|
+
if (!(t instanceof HTMLInputElement) || t.type !== "radio" || !t.name)
|
|
11
|
+
continue;
|
|
12
|
+
let s = c.get(t.name);
|
|
13
|
+
s || (s = /* @__PURE__ */ new Map(), c.set(t.name, s)), (!s.has(t.form) || t.checked) && s.set(t.form, t);
|
|
14
|
+
}
|
|
15
|
+
return o.filter(
|
|
16
|
+
(t) => !(t instanceof HTMLInputElement) || t.type !== "radio" || !t.name ? !0 : c.get(t.name)?.get(t.form) === t
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
function v(n) {
|
|
20
|
+
const o = b(n.dialog);
|
|
21
|
+
(o.find((t) => t.hasAttribute("autofocus")) ?? o[0] ?? n.dialog).focus({ preventScroll: !0 });
|
|
22
|
+
}
|
|
23
|
+
function k(n) {
|
|
24
|
+
const o = [];
|
|
25
|
+
let c = "", t = "";
|
|
26
|
+
const s = () => o[o.length - 1], g = new MutationObserver(() => {
|
|
27
|
+
const e = s();
|
|
28
|
+
e && !e.root.contains(n.activeElement) && v(e);
|
|
29
|
+
});
|
|
30
|
+
function l() {
|
|
31
|
+
g.disconnect();
|
|
32
|
+
let e = 0;
|
|
33
|
+
o.forEach((i) => {
|
|
34
|
+
const a = i === s();
|
|
35
|
+
e = Math.max(i.baseZIndex, e + 2), i.root.style.zIndex = String(e), i.root.inert = !a, i.dialog.setAttribute("aria-modal", String(a));
|
|
36
|
+
});
|
|
37
|
+
const r = s();
|
|
38
|
+
r && g.observe(r.dialog, { childList: !0, subtree: !0 });
|
|
39
|
+
}
|
|
40
|
+
function u(e) {
|
|
41
|
+
const r = s();
|
|
42
|
+
if (!(!r || e.defaultPrevented || e.isComposing)) {
|
|
43
|
+
if (e.key === "Escape")
|
|
44
|
+
e.preventDefault(), e.stopPropagation(), r.close();
|
|
45
|
+
else if (e.key === "Tab") {
|
|
46
|
+
const i = b(r.dialog), a = i.indexOf(n.activeElement), h = e.shiftKey ? a <= 0 ? i.length - 1 : a - 1 : a < 0 || a === i.length - 1 ? 0 : a + 1;
|
|
47
|
+
e.preventDefault(), (i[h] ?? r.dialog).focus({ preventScroll: !0 });
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function f(e) {
|
|
52
|
+
const r = s();
|
|
53
|
+
r && !r.root.contains(e.target) && v(r);
|
|
54
|
+
}
|
|
55
|
+
function d(e) {
|
|
56
|
+
o.length === 0 && (c = n.body.style.getPropertyValue("overflow"), t = n.body.style.getPropertyPriority("overflow"), n.body.style.setProperty("overflow", "hidden"), n.defaultView?.addEventListener("keydown", u), n.addEventListener("focusin", f)), o.push(e), l(), v(e);
|
|
57
|
+
}
|
|
58
|
+
function p(e) {
|
|
59
|
+
const r = o.indexOf(e);
|
|
60
|
+
if (r < 0) return;
|
|
61
|
+
const i = e === s();
|
|
62
|
+
o.splice(r, 1);
|
|
63
|
+
for (const y of o)
|
|
64
|
+
y.returnFocus && e.root.contains(y.returnFocus) && (y.returnFocus = e.returnFocus);
|
|
65
|
+
if (l(), o.length === 0 && (n.body.style.setProperty(
|
|
66
|
+
"overflow",
|
|
67
|
+
c,
|
|
68
|
+
t
|
|
69
|
+
), n.defaultView?.removeEventListener("keydown", u), n.removeEventListener("focusin", f), m.delete(n)), !i) return;
|
|
70
|
+
const a = s(), h = e.returnFocus;
|
|
71
|
+
h?.isConnected && !h.closest("[inert], [hidden]") && (!a || a.root.contains(h)) && h.focus({ preventScroll: !0 }), a && !a.root.contains(n.activeElement) && v(a);
|
|
72
|
+
}
|
|
73
|
+
return { add: d, remove: p };
|
|
74
|
+
}
|
|
75
|
+
function A(n, o, c, t) {
|
|
76
|
+
const s = w();
|
|
77
|
+
let g = !0, l;
|
|
78
|
+
function u() {
|
|
79
|
+
const f = o.value, d = c.value;
|
|
80
|
+
if (!g || !n.value || !f || !d) {
|
|
81
|
+
l?.(), l = void 0;
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
if (l) return;
|
|
85
|
+
const p = f.ownerDocument, e = m.get(p) ?? k(p);
|
|
86
|
+
if (m.set(p, e), !d.hasAttribute("aria-labelledby")) {
|
|
87
|
+
const i = d.querySelector(
|
|
88
|
+
"h1, h2, h3, h4, h5, h6"
|
|
89
|
+
);
|
|
90
|
+
i && (i.id || (i.id = s), d.setAttribute("aria-labelledby", i.id));
|
|
91
|
+
}
|
|
92
|
+
const r = {
|
|
93
|
+
root: f,
|
|
94
|
+
dialog: d,
|
|
95
|
+
close: t,
|
|
96
|
+
baseZIndex: Number.parseInt(getComputedStyle(f).zIndex, 10) || 999,
|
|
97
|
+
returnFocus: p.activeElement instanceof HTMLElement ? p.activeElement : null
|
|
98
|
+
};
|
|
99
|
+
l = () => e.remove(r), e.add(r);
|
|
100
|
+
}
|
|
101
|
+
E(u), x(() => {
|
|
102
|
+
g = !0, u();
|
|
103
|
+
}), S(() => {
|
|
104
|
+
g = !1, u(), n.value && t();
|
|
105
|
+
}), I([n, o, c], u, { flush: "sync" }), L(() => l?.());
|
|
106
|
+
}
|
|
107
|
+
export {
|
|
108
|
+
A as useModalLayer
|
|
109
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ref as p, computed as s, provide as i, watch as a, onMounted as f } from "vue";
|
|
2
|
+
import { expandAccordionKey as v, expandedAccordionKey as x } from "../../types/layoutInjectKeys.js";
|
|
3
|
+
import { injectSidebarContentVisibility as A, injectToggleSidebar as h } from "../layout/useR3uiLayoutInject.js";
|
|
4
|
+
const S = (c) => {
|
|
5
|
+
const d = A(), u = h(), o = p({}), r = (n, e) => {
|
|
6
|
+
o.value[e] === n ? o.value[e] = null : o.value[e] = n;
|
|
7
|
+
}, l = s(() => c.value), t = () => {
|
|
8
|
+
if (o.value = {}, !d?.value)
|
|
9
|
+
return;
|
|
10
|
+
const n = (e) => {
|
|
11
|
+
e.childrens?.length && e.childrens.forEach(n), e.isActive && e.uniqueKey && r(e.uniqueKey, e.level);
|
|
12
|
+
};
|
|
13
|
+
c.value.forEach(n);
|
|
14
|
+
};
|
|
15
|
+
return i(v, r), i("expandAccordion", r), i(x, o), i("expandedAccordion", o), a(
|
|
16
|
+
c,
|
|
17
|
+
() => {
|
|
18
|
+
t();
|
|
19
|
+
},
|
|
20
|
+
{ deep: !0 }
|
|
21
|
+
), a(
|
|
22
|
+
() => d?.value,
|
|
23
|
+
() => {
|
|
24
|
+
t();
|
|
25
|
+
},
|
|
26
|
+
{ deep: !0 }
|
|
27
|
+
), f(() => {
|
|
28
|
+
t();
|
|
29
|
+
}), {
|
|
30
|
+
expandedAccordion: o,
|
|
31
|
+
expandAccordion: r,
|
|
32
|
+
sidebarLinks: c,
|
|
33
|
+
collapsedSidebarLinks: l,
|
|
34
|
+
toggleSidebar: u,
|
|
35
|
+
sidebarContentVisibility: d
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
S as useSidebar
|
|
40
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { createTableOperation as h, tableOperationStopped as C } from "../../utils/tableOperation.js";
|
|
2
|
+
function q() {
|
|
3
|
+
let o, d, a = !1, i = !1;
|
|
4
|
+
function l(t = "superseded") {
|
|
5
|
+
d?.(t);
|
|
6
|
+
}
|
|
7
|
+
function b(t) {
|
|
8
|
+
l();
|
|
9
|
+
let r = "queued", c, f;
|
|
10
|
+
const p = new Promise((n, v) => {
|
|
11
|
+
c = n, f = v;
|
|
12
|
+
});
|
|
13
|
+
p.catch(() => {
|
|
14
|
+
});
|
|
15
|
+
const e = h({
|
|
16
|
+
...t,
|
|
17
|
+
signal: t.signal,
|
|
18
|
+
signals: [t.external?.signal, ...t.signals ?? []],
|
|
19
|
+
isCurrent: () => !i && !a && o === u && (t.external?.isCurrent() ?? !0) && t.isCurrent()
|
|
20
|
+
});
|
|
21
|
+
function g() {
|
|
22
|
+
e.operation.signal.removeEventListener("abort", s), e.dispose();
|
|
23
|
+
}
|
|
24
|
+
function m(n) {
|
|
25
|
+
r !== "settled" && (r = "settled", g(), c(n));
|
|
26
|
+
}
|
|
27
|
+
function s() {
|
|
28
|
+
m(C(e.operation));
|
|
29
|
+
}
|
|
30
|
+
const u = {
|
|
31
|
+
operation: e.operation,
|
|
32
|
+
result: p,
|
|
33
|
+
get phase() {
|
|
34
|
+
return r;
|
|
35
|
+
},
|
|
36
|
+
start() {
|
|
37
|
+
return r !== "queued" ? !1 : e.operation.isCurrent() ? (r = "running", !0) : (s(), !1);
|
|
38
|
+
},
|
|
39
|
+
finish: m,
|
|
40
|
+
fail(n) {
|
|
41
|
+
r !== "settled" && (r = "settled", g(), f(n));
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
return o = u, d = e.abort, e.operation.signal.addEventListener("abort", s, { once: !0 }), i || a ? e.abort("cancelled") : e.operation.signal.aborted && s(), u;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
schedule: b,
|
|
48
|
+
invalidate: l,
|
|
49
|
+
pause() {
|
|
50
|
+
a = !0, l("cancelled");
|
|
51
|
+
},
|
|
52
|
+
resume() {
|
|
53
|
+
i || (a = !1);
|
|
54
|
+
},
|
|
55
|
+
dispose() {
|
|
56
|
+
i = !0, l("cancelled");
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
export {
|
|
61
|
+
q as createTableCommandScheduler
|
|
62
|
+
};
|