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,61 @@
|
|
|
1
|
+
import { waitForTableOperation as p, tableOperationStopped as v } from "../../utils/tableOperation.js";
|
|
2
|
+
function w(t) {
|
|
3
|
+
const i = new AbortController();
|
|
4
|
+
let e = "preparing", s, a, n, f;
|
|
5
|
+
const l = () => !i.signal.aborted && e !== "settled" && e !== "failed" && t.isCurrent() && (a?.isCurrent() ?? !0), o = { signal: i.signal, isCurrent: l };
|
|
6
|
+
function c(r) {
|
|
7
|
+
e === "settled" || e === "failed" || (f = r, e = "settled", n?.());
|
|
8
|
+
}
|
|
9
|
+
function u(r = "cancelled") {
|
|
10
|
+
e === "settled" || e === "failed" || (i.abort(r), c(v(o)));
|
|
11
|
+
}
|
|
12
|
+
function g(r) {
|
|
13
|
+
n?.(), a = r;
|
|
14
|
+
const d = () => u(r.signal.reason === "superseded" ? "superseded" : "cancelled");
|
|
15
|
+
r.signal.addEventListener("abort", d, { once: !0 }), n = () => r.signal.removeEventListener("abort", d), r.signal.aborted && d();
|
|
16
|
+
}
|
|
17
|
+
function b() {
|
|
18
|
+
n?.(), n = void 0, a = void 0;
|
|
19
|
+
}
|
|
20
|
+
return g(t.source), {
|
|
21
|
+
operation: o,
|
|
22
|
+
generation: t.generation,
|
|
23
|
+
revision: t.revision,
|
|
24
|
+
source: t.source,
|
|
25
|
+
get stage() {
|
|
26
|
+
return e;
|
|
27
|
+
},
|
|
28
|
+
get snapshot() {
|
|
29
|
+
return s;
|
|
30
|
+
},
|
|
31
|
+
get result() {
|
|
32
|
+
return f;
|
|
33
|
+
},
|
|
34
|
+
wait(r) {
|
|
35
|
+
return p(r, o);
|
|
36
|
+
},
|
|
37
|
+
transfer(r) {
|
|
38
|
+
return l() ? (s = r, b(), e = "awaiting-instance", !0) : !1;
|
|
39
|
+
},
|
|
40
|
+
restore(r) {
|
|
41
|
+
return i.signal.aborted || !r.isCurrent() || !t.isCurrent() || e === "settled" || e === "failed" ? !1 : (g(r), e = "restoring", l());
|
|
42
|
+
},
|
|
43
|
+
release() {
|
|
44
|
+
if (!(e === "settled" || e === "failed")) {
|
|
45
|
+
if (!s) {
|
|
46
|
+
u("superseded");
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
b(), e = "awaiting-instance";
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
finish: c,
|
|
53
|
+
fail() {
|
|
54
|
+
e === "settled" || e === "failed" || (e = "failed", n?.());
|
|
55
|
+
},
|
|
56
|
+
cancel: u
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
w as createTableRebuildTransaction
|
|
61
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { toRaw as r } from "vue";
|
|
2
|
+
import { assertR3uiTableInstance as u } from "../../types/tableInstance.js";
|
|
3
|
+
import { createTabulatorAdapter as b } from "./createTabulatorAdapter.js";
|
|
4
|
+
function g(i, d) {
|
|
5
|
+
let e, o, l = 0;
|
|
6
|
+
function a(t = "cancelled") {
|
|
7
|
+
const n = o;
|
|
8
|
+
e = void 0, o = void 0, n?.abort(t);
|
|
9
|
+
}
|
|
10
|
+
return {
|
|
11
|
+
get current() {
|
|
12
|
+
return e;
|
|
13
|
+
},
|
|
14
|
+
matches(t) {
|
|
15
|
+
return !!e && r(e.instance) === r(t);
|
|
16
|
+
},
|
|
17
|
+
attach(t) {
|
|
18
|
+
if (u(t), e && r(e.instance) === r(t)) return e;
|
|
19
|
+
a("superseded");
|
|
20
|
+
const n = new AbortController();
|
|
21
|
+
o = n;
|
|
22
|
+
const c = {
|
|
23
|
+
signal: n.signal,
|
|
24
|
+
isCurrent: () => e === s && !n.signal.aborted && i()
|
|
25
|
+
}, s = Object.freeze({
|
|
26
|
+
id: ++l,
|
|
27
|
+
instance: r(t),
|
|
28
|
+
...c,
|
|
29
|
+
engine: b(r(t), c, d)
|
|
30
|
+
});
|
|
31
|
+
return e = s, s;
|
|
32
|
+
},
|
|
33
|
+
detach: a
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
g as createTableSessionOwner
|
|
38
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { selectTableQueryContext as u, planTableQueryRebuild as d, transitionTableQuery as l } from "./tableQueryTransitions.js";
|
|
2
|
+
import { shallowRef as v, readonly as p } from "vue";
|
|
3
|
+
function y(n) {
|
|
4
|
+
const a = v({
|
|
5
|
+
status: "idle",
|
|
6
|
+
active: !0,
|
|
7
|
+
desired: {},
|
|
8
|
+
appliedContext: n,
|
|
9
|
+
requestedContext: n,
|
|
10
|
+
startedGeneration: -1
|
|
11
|
+
}), s = (e) => {
|
|
12
|
+
a.value.status !== "disposed" && (a.value = { ...a.value, ...e });
|
|
13
|
+
};
|
|
14
|
+
function o(e) {
|
|
15
|
+
const t = l(a.value, e);
|
|
16
|
+
return t.state !== a.value && s(t.state), t;
|
|
17
|
+
}
|
|
18
|
+
return {
|
|
19
|
+
transition: o,
|
|
20
|
+
rebuildPolicy() {
|
|
21
|
+
return d(a.value);
|
|
22
|
+
},
|
|
23
|
+
queryContext(e, t = !1) {
|
|
24
|
+
return u(a.value, e, t);
|
|
25
|
+
},
|
|
26
|
+
state: p(a),
|
|
27
|
+
get value() {
|
|
28
|
+
return a.value;
|
|
29
|
+
},
|
|
30
|
+
begin(e) {
|
|
31
|
+
const t = {};
|
|
32
|
+
return s({ status: e, owner: t, failure: void 0 }), t;
|
|
33
|
+
},
|
|
34
|
+
move(e, t) {
|
|
35
|
+
a.value.owner === e && s({ status: t });
|
|
36
|
+
},
|
|
37
|
+
finish(e, t) {
|
|
38
|
+
a.value.owner === e && s({ status: t ? "ready" : "idle", owner: void 0 });
|
|
39
|
+
},
|
|
40
|
+
fail(e, t, r, i = a.value.snapshot) {
|
|
41
|
+
a.value.owner === e && s({
|
|
42
|
+
status: "failed",
|
|
43
|
+
failure: { kind: t, cause: r },
|
|
44
|
+
snapshot: i,
|
|
45
|
+
owner: void 0,
|
|
46
|
+
startedGeneration: -1
|
|
47
|
+
});
|
|
48
|
+
},
|
|
49
|
+
cancelled(e, t, r) {
|
|
50
|
+
a.value.owner === e && (r && a.value.snapshot === t ? s({
|
|
51
|
+
status: "failed",
|
|
52
|
+
failure: r,
|
|
53
|
+
owner: void 0,
|
|
54
|
+
startedGeneration: -1
|
|
55
|
+
}) : s({
|
|
56
|
+
status: "idle",
|
|
57
|
+
failure: void 0,
|
|
58
|
+
owner: void 0,
|
|
59
|
+
snapshot: a.value.snapshot === t ? void 0 : a.value.snapshot
|
|
60
|
+
}));
|
|
61
|
+
},
|
|
62
|
+
applied(e, t, r) {
|
|
63
|
+
a.value.owner === e && s({
|
|
64
|
+
status: "ready",
|
|
65
|
+
owner: void 0,
|
|
66
|
+
failure: void 0,
|
|
67
|
+
appliedContext: r,
|
|
68
|
+
snapshot: a.value.snapshot === t ? void 0 : a.value.snapshot
|
|
69
|
+
});
|
|
70
|
+
},
|
|
71
|
+
stop(e, t = "idle") {
|
|
72
|
+
s({
|
|
73
|
+
status: t,
|
|
74
|
+
owner: void 0,
|
|
75
|
+
failure: void 0,
|
|
76
|
+
startedGeneration: -1,
|
|
77
|
+
snapshot: e ? a.value.snapshot : void 0
|
|
78
|
+
});
|
|
79
|
+
},
|
|
80
|
+
requestData(e) {
|
|
81
|
+
o({ type: "requested", data: e });
|
|
82
|
+
},
|
|
83
|
+
acceptData(e) {
|
|
84
|
+
o({ type: "accepted", data: e });
|
|
85
|
+
},
|
|
86
|
+
setSnapshot(e) {
|
|
87
|
+
s({ snapshot: e });
|
|
88
|
+
},
|
|
89
|
+
desire(e, t, r) {
|
|
90
|
+
o({ type: "desired", intent: e, url: t, context: r });
|
|
91
|
+
},
|
|
92
|
+
setIntent(e) {
|
|
93
|
+
o({ type: "intent", intent: e });
|
|
94
|
+
},
|
|
95
|
+
setRequestedContext(e) {
|
|
96
|
+
o({ type: "context-requested", context: e });
|
|
97
|
+
},
|
|
98
|
+
setAppliedContext(e) {
|
|
99
|
+
o({ type: "context-applied", context: e });
|
|
100
|
+
},
|
|
101
|
+
markStarted(e) {
|
|
102
|
+
s({ startedGeneration: e });
|
|
103
|
+
},
|
|
104
|
+
setActive(e) {
|
|
105
|
+
s({ active: e });
|
|
106
|
+
},
|
|
107
|
+
dispose() {
|
|
108
|
+
o({ type: "disposed" }), s({
|
|
109
|
+
status: "disposed",
|
|
110
|
+
active: !1,
|
|
111
|
+
owner: void 0,
|
|
112
|
+
failure: void 0,
|
|
113
|
+
snapshot: void 0,
|
|
114
|
+
desired: {},
|
|
115
|
+
startedGeneration: -1
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
export {
|
|
121
|
+
y as createTableState
|
|
122
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { attachTableProjection as p, withTableQueryReplay as f, restoreAppliedTableSelection as b, restoreAppliedTableQuery as m, acceptTableDataQuery as y, prepareTableProjection as T, getTableParameterSource as C, hasTableQueryAdapter as w } from "../../utils/tableData.js";
|
|
2
|
+
import { captureTableSnapshot as d, restoreTableData as g } from "../../utils/tableAdapter.js";
|
|
3
|
+
import { trackTableLoad as s } from "../../utils/tableLoad.js";
|
|
4
|
+
function x(t, o, a) {
|
|
5
|
+
a && p(t, a, o.isCurrent);
|
|
6
|
+
function l(r) {
|
|
7
|
+
if (!o.isCurrent() || r?.isCurrent() === !1)
|
|
8
|
+
throw new DOMException("Сессия таблицы завершена", "AbortError");
|
|
9
|
+
}
|
|
10
|
+
return {
|
|
11
|
+
get canRestoreQuery() {
|
|
12
|
+
return w(t);
|
|
13
|
+
},
|
|
14
|
+
capture(r) {
|
|
15
|
+
return l(), d(t, r);
|
|
16
|
+
},
|
|
17
|
+
parameterSource(r) {
|
|
18
|
+
return l(), C(t) ?? r;
|
|
19
|
+
},
|
|
20
|
+
url(r) {
|
|
21
|
+
return l(), t.getAjaxUrl?.() ?? (typeof t.options.ajaxURL == "string" ? t.options.ajaxURL : r());
|
|
22
|
+
},
|
|
23
|
+
setUrl(r, e) {
|
|
24
|
+
l(e), t.options.ajaxURL = r;
|
|
25
|
+
},
|
|
26
|
+
setColumns(r, e) {
|
|
27
|
+
l(e), t.options.columns = r, T(
|
|
28
|
+
t,
|
|
29
|
+
() => t.setColumns(
|
|
30
|
+
r.map((u) => ({
|
|
31
|
+
...u,
|
|
32
|
+
title: u.title ?? ""
|
|
33
|
+
}))
|
|
34
|
+
),
|
|
35
|
+
() => o.isCurrent() && e.isCurrent()
|
|
36
|
+
);
|
|
37
|
+
},
|
|
38
|
+
acceptQuery(r, e) {
|
|
39
|
+
l(e), y(t, r, e.isCurrent);
|
|
40
|
+
},
|
|
41
|
+
restoreQuery(r, e) {
|
|
42
|
+
l(e), m(t, r, e.isCurrent);
|
|
43
|
+
},
|
|
44
|
+
restoreSelection(r, e, u = !0) {
|
|
45
|
+
l(e), b(
|
|
46
|
+
t,
|
|
47
|
+
r,
|
|
48
|
+
e.isCurrent,
|
|
49
|
+
u
|
|
50
|
+
);
|
|
51
|
+
},
|
|
52
|
+
restoreView(r, e) {
|
|
53
|
+
for (const u of r.filters)
|
|
54
|
+
l(e), t.setHeaderFilterValue(
|
|
55
|
+
u.field,
|
|
56
|
+
u.value
|
|
57
|
+
);
|
|
58
|
+
l(e), t.setSort(r.sort);
|
|
59
|
+
},
|
|
60
|
+
select(r, e) {
|
|
61
|
+
l(e), r?.length && t.selectRow?.(r);
|
|
62
|
+
},
|
|
63
|
+
restore(r, e, u) {
|
|
64
|
+
return l(u), f(
|
|
65
|
+
t,
|
|
66
|
+
r.query,
|
|
67
|
+
u.owner,
|
|
68
|
+
() => g(
|
|
69
|
+
t,
|
|
70
|
+
{ ...r, params: r.query?.params },
|
|
71
|
+
e,
|
|
72
|
+
u
|
|
73
|
+
)
|
|
74
|
+
);
|
|
75
|
+
},
|
|
76
|
+
load(r, e, u) {
|
|
77
|
+
if (l(u), e !== void 0 && (typeof e != "number" || !Number.isSafeInteger(e) || e <= 0))
|
|
78
|
+
throw new TypeError("Некорректный размер страницы загрузки таблицы");
|
|
79
|
+
return s(
|
|
80
|
+
t,
|
|
81
|
+
() => t.replaceData(r, { per_page: e }),
|
|
82
|
+
u.signal,
|
|
83
|
+
u.owner
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
export {
|
|
89
|
+
x as createTabulatorAdapter
|
|
90
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
function a(t, e) {
|
|
2
|
+
switch (e.type) {
|
|
3
|
+
case "desired":
|
|
4
|
+
return {
|
|
5
|
+
state: {
|
|
6
|
+
...t,
|
|
7
|
+
desired: {
|
|
8
|
+
intent: e.intent,
|
|
9
|
+
url: e.url,
|
|
10
|
+
context: e.context
|
|
11
|
+
},
|
|
12
|
+
...e.intent === "context" ? { currentData: void 0, requestedContext: e.context } : {}
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
case "intent":
|
|
16
|
+
return {
|
|
17
|
+
state: {
|
|
18
|
+
...t,
|
|
19
|
+
desired: { ...t.desired, intent: e.intent }
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
case "requested":
|
|
23
|
+
return {
|
|
24
|
+
state: {
|
|
25
|
+
...t,
|
|
26
|
+
requestedData: e.data,
|
|
27
|
+
currentData: e.data,
|
|
28
|
+
requestedContext: e.data.context
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
case "accepted":
|
|
32
|
+
return {
|
|
33
|
+
state: {
|
|
34
|
+
...t,
|
|
35
|
+
appliedData: e.data,
|
|
36
|
+
currentData: e.data,
|
|
37
|
+
requestedContext: e.data.context,
|
|
38
|
+
appliedContext: e.data.context
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
case "settled":
|
|
42
|
+
return {
|
|
43
|
+
state: {
|
|
44
|
+
...t,
|
|
45
|
+
currentData: t.appliedData,
|
|
46
|
+
requestedContext: t.appliedData ? t.appliedData.context : t.appliedContext
|
|
47
|
+
},
|
|
48
|
+
restore: t.appliedData
|
|
49
|
+
};
|
|
50
|
+
case "context-requested":
|
|
51
|
+
return { state: { ...t, requestedContext: e.context } };
|
|
52
|
+
case "context-applied":
|
|
53
|
+
return { state: { ...t, appliedContext: e.context } };
|
|
54
|
+
case "preserve":
|
|
55
|
+
return { state: t, selection: t.currentData };
|
|
56
|
+
case "disposed":
|
|
57
|
+
return { state: { ...t, desired: {}, currentData: void 0 } };
|
|
58
|
+
default: {
|
|
59
|
+
const r = e;
|
|
60
|
+
throw new TypeError(
|
|
61
|
+
`Неизвестный переход таблицы: ${String(r)}`
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function n(t, e, r = !1) {
|
|
67
|
+
return r && e ? e.context : t.currentData ? t.currentData.context : e ? e.context : t.requestedContext;
|
|
68
|
+
}
|
|
69
|
+
function c(t) {
|
|
70
|
+
const e = t.desired.intent ?? "preserve";
|
|
71
|
+
return {
|
|
72
|
+
mode: e,
|
|
73
|
+
resetContext: e === "context",
|
|
74
|
+
resetPage: e !== "preserve",
|
|
75
|
+
programmatic: e === "context" ? "initial" : "current"
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
export {
|
|
79
|
+
c as planTableQueryRebuild,
|
|
80
|
+
n as selectTableQueryContext,
|
|
81
|
+
a as transitionTableQuery
|
|
82
|
+
};
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { getTableRequestOperation as A, getTableLoadBoundary as D } from "../../utils/tableLoad.js";
|
|
2
|
+
import { waitForTableOperation as T } from "../../utils/tableOperation.js";
|
|
3
|
+
import { onUnmounted as O, onDeactivated as q, onActivated as S, shallowRef as k, computed as m, ref as E, provide as y, watch as g, unref as b } from "vue";
|
|
4
|
+
import { useRemoteTable as j } from "./useRemoteTable.js";
|
|
5
|
+
import { createTableLifecycle as U } from "./createTableLifecycle.js";
|
|
6
|
+
import { applyFiltersKey as K, r3uiTableDefaultApiKey as L } from "../../types/tableInjectKeys.js";
|
|
7
|
+
function P(r, a, d = {
|
|
8
|
+
createRemote: j,
|
|
9
|
+
onActivated: S,
|
|
10
|
+
onDeactivated: q,
|
|
11
|
+
onUnmounted: O
|
|
12
|
+
}) {
|
|
13
|
+
let i;
|
|
14
|
+
const h = k(), C = m(
|
|
15
|
+
() => h.value?.appliedData.value?.total ?? 0
|
|
16
|
+
), t = d.createRemote({
|
|
17
|
+
...r,
|
|
18
|
+
total: C,
|
|
19
|
+
applyFiltersOnReady: !1,
|
|
20
|
+
watchQuickFilter: void 0,
|
|
21
|
+
getAjaxUrl: (n) => i?.acceptedUrl ?? r.getAjaxUrl(n),
|
|
22
|
+
createAjaxResponse: (n) => {
|
|
23
|
+
const u = E(n.value), p = r.createAjaxResponse(u);
|
|
24
|
+
return function(f, v, o) {
|
|
25
|
+
if (!i) throw new Error("Контроллер таблицы ещё не создан");
|
|
26
|
+
if (!i.isResponseCurrent(o)) return !1;
|
|
27
|
+
try {
|
|
28
|
+
u.value = n.value;
|
|
29
|
+
const l = Object.create(this ?? null), s = p.call(l, f, v, o), c = s === !1 ? void 0 : {
|
|
30
|
+
rows: s.data.slice(),
|
|
31
|
+
total: Number(s.last_row ?? u.value),
|
|
32
|
+
lastPage: Number(s.last_page)
|
|
33
|
+
};
|
|
34
|
+
if (c && (!Number.isSafeInteger(c.total) || c.total < 0 || !Number.isSafeInteger(c.lastPage) || c.lastPage < 1))
|
|
35
|
+
throw new TypeError("Некорректные счётчики ответа таблицы");
|
|
36
|
+
return i.responseTransformed(o, s === !1, c), s;
|
|
37
|
+
} catch (l) {
|
|
38
|
+
if (!i.isResponseCurrent(o)) return !1;
|
|
39
|
+
throw i.responseFailed(o, l), (a.presentUntrackedTransformErrors || i.isTrackedResponse(o)) && a.presentError(l), l;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}), w = () => r.getAjaxUrl(() => t.tableDefault.getFilterData()), R = {
|
|
44
|
+
remote: t,
|
|
45
|
+
getColumns: r.getColumns,
|
|
46
|
+
getAjaxUrl: w,
|
|
47
|
+
createRequest: (n) => async (u, p, f, v) => {
|
|
48
|
+
const o = i, l = o.beginRequest(
|
|
49
|
+
n,
|
|
50
|
+
v ?? A(t.table.value),
|
|
51
|
+
p.signal,
|
|
52
|
+
D(t.table.value),
|
|
53
|
+
{ url: String(u), params: f }
|
|
54
|
+
);
|
|
55
|
+
if (!l) return o.superseded;
|
|
56
|
+
try {
|
|
57
|
+
const s = await T(
|
|
58
|
+
() => a.request(
|
|
59
|
+
u,
|
|
60
|
+
{ ...p, signal: l.signal },
|
|
61
|
+
f,
|
|
62
|
+
l.isCurrent,
|
|
63
|
+
l
|
|
64
|
+
),
|
|
65
|
+
l
|
|
66
|
+
);
|
|
67
|
+
return s.status === "applied" ? o.acceptResponse(s.value, l) : (o.requestStopped(l), o.superseded);
|
|
68
|
+
} catch (s) {
|
|
69
|
+
if (!l.isCurrent()) return o.superseded;
|
|
70
|
+
throw o.requestFailed(l, s), s;
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
presentError: a.presentError,
|
|
74
|
+
resetErrors: a.resetErrors,
|
|
75
|
+
refreshLabels: a.refreshLabels,
|
|
76
|
+
initialContext: a.initialContext,
|
|
77
|
+
captureContext: a.captureContext ? () => a.captureContext(t) : void 0,
|
|
78
|
+
onContextApplied: a.onContextApplied,
|
|
79
|
+
onDataApplied: a.onDataApplied,
|
|
80
|
+
initialLoad: a.initialLoad,
|
|
81
|
+
includeSelection: a.includeSelection,
|
|
82
|
+
applyOnReady: r.applyFiltersOnReady,
|
|
83
|
+
initializationFailure: a.initializationFailure,
|
|
84
|
+
columns: {
|
|
85
|
+
commit: t.handleColumnsChanged,
|
|
86
|
+
changed: t.handleColumnsApply,
|
|
87
|
+
titledOnly: a.columnsTitledOnly
|
|
88
|
+
}
|
|
89
|
+
}, e = U(R);
|
|
90
|
+
i = e, h.value = e, t.tableOptions.value.ajaxRequestFunc = R.createRequest(
|
|
91
|
+
e.generation
|
|
92
|
+
), t.tableDefault.applyFilters = (n) => e.apply(n), y("applyFilters", t.tableDefault.applyFilters), y(K, t.tableDefault.applyFilters), y(L, t.tableDefault), g(
|
|
93
|
+
() => b(r.locale),
|
|
94
|
+
() => (a.beforeContextChange?.(), e.localeChanged()),
|
|
95
|
+
{ flush: "sync" }
|
|
96
|
+
), g(
|
|
97
|
+
t.isInitDone,
|
|
98
|
+
(n) => {
|
|
99
|
+
if (n) return e.startReady();
|
|
100
|
+
},
|
|
101
|
+
{ flush: "sync" }
|
|
102
|
+
), g(t.tableKey, () => e.tableKeyChanged(), { flush: "sync" }), r.watchQuickFilter && g(
|
|
103
|
+
r.watchQuickFilter,
|
|
104
|
+
(n, u) => {
|
|
105
|
+
if (n !== u)
|
|
106
|
+
return a.beforeContextChange?.(), e.quickFilterChanged();
|
|
107
|
+
},
|
|
108
|
+
{ flush: "sync" }
|
|
109
|
+
), d.onDeactivated(() => {
|
|
110
|
+
a.beforeContextChange?.(), e.deactivate();
|
|
111
|
+
}), d.onActivated(() => {
|
|
112
|
+
e.activate().catch(a.presentError);
|
|
113
|
+
}), d.onUnmounted(() => {
|
|
114
|
+
a.beforeContextChange?.(), e.dispose();
|
|
115
|
+
});
|
|
116
|
+
const x = {
|
|
117
|
+
get errorContext() {
|
|
118
|
+
return `${e.generation}:${e.revision}`;
|
|
119
|
+
},
|
|
120
|
+
requestedData: e.requestedData,
|
|
121
|
+
appliedData: e.appliedData,
|
|
122
|
+
status: e.status,
|
|
123
|
+
error: e.error,
|
|
124
|
+
canRetry: e.canRetry,
|
|
125
|
+
active: e.active,
|
|
126
|
+
disposed: e.disposed,
|
|
127
|
+
phase: e.phase,
|
|
128
|
+
preparing: e.preparing,
|
|
129
|
+
rebuilding: e.rebuilding,
|
|
130
|
+
restoring: m(() => !!e.pending.value),
|
|
131
|
+
canApplyColumns: e.canApplyColumns,
|
|
132
|
+
columnsApplying: e.columnsApplying
|
|
133
|
+
}, F = m(() => ({
|
|
134
|
+
key: t.tableKey.value,
|
|
135
|
+
props: {
|
|
136
|
+
...t.tableLocalizations.value,
|
|
137
|
+
options: t.tableOptions.value,
|
|
138
|
+
columnHide: t.columnHide.value,
|
|
139
|
+
columnShow: t.columnShow.value
|
|
140
|
+
},
|
|
141
|
+
busy: e.active.value && (!t.isInitDone.value || !["idle", "ready", "failed", "disposed"].includes(
|
|
142
|
+
e.status.value
|
|
143
|
+
)),
|
|
144
|
+
status: e.status.value,
|
|
145
|
+
error: e.error.value,
|
|
146
|
+
canRetry: e.canRetry.value,
|
|
147
|
+
labels: {
|
|
148
|
+
loading: r.t("table_pagination.loading"),
|
|
149
|
+
error: r.t("pages.errors.unexpected"),
|
|
150
|
+
retry: r.t("pages.retry")
|
|
151
|
+
},
|
|
152
|
+
ready: e.tableReady,
|
|
153
|
+
retry: e.retry,
|
|
154
|
+
rowMoved: t.onTableRowMoved,
|
|
155
|
+
showColumn: t.onShowColumn,
|
|
156
|
+
hideColumn: t.onHideColumn
|
|
157
|
+
}));
|
|
158
|
+
return {
|
|
159
|
+
...t,
|
|
160
|
+
total: C,
|
|
161
|
+
state: x,
|
|
162
|
+
tableView: F,
|
|
163
|
+
retry: e.retry,
|
|
164
|
+
handleTableReady: e.tableReady,
|
|
165
|
+
applyColumns: e.applyColumns,
|
|
166
|
+
applyFilters: (n = t.table.value, u) => e.executeFilters(n, u),
|
|
167
|
+
columnApplyContext: m(
|
|
168
|
+
() => JSON.stringify([
|
|
169
|
+
b(r.localStorageKey),
|
|
170
|
+
b(r.locale),
|
|
171
|
+
t.tableKey.value,
|
|
172
|
+
b(r.watchQuickFilter)
|
|
173
|
+
])
|
|
174
|
+
)
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
export {
|
|
178
|
+
P as useManagedRemoteTable
|
|
179
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { inject as e, provide as F } from "vue";
|
|
2
|
+
import { r3uiTableDefaultApiKey as c, filterModalVisibilityKey as f, selectedFilterTitlesKey as y, setFilterParamsStringsKey as b, applyFiltersKey as p, resetFiltersKey as K, tableFiltersRefKey as d, tableRefKey as m } from "../../types/tableInjectKeys.js";
|
|
3
|
+
function D() {
|
|
4
|
+
const t = e(c, null);
|
|
5
|
+
if (t)
|
|
6
|
+
return t;
|
|
7
|
+
const l = e(f, null) ?? e("filterModalVisibility"), i = e(y, null) ?? e("selectedFilterTitles"), s = e(b, null) ?? e(
|
|
8
|
+
"setFilterParamsStrings"
|
|
9
|
+
), r = e(p, null) ?? e("applyFilters"), n = e(K, null) ?? e("resetFilters"), a = e(d, null) ?? e("tableFilters"), o = e(m, null) ?? e("table");
|
|
10
|
+
if (!l || !i || !s || !r || !n || !a || !o)
|
|
11
|
+
throw new Error(
|
|
12
|
+
"useR3uiTableDefaultInject: контекст useTableDefault не найден"
|
|
13
|
+
);
|
|
14
|
+
const u = {
|
|
15
|
+
filterModalVisibility: l,
|
|
16
|
+
selectedFilterTitles: i,
|
|
17
|
+
setFilterParamsStrings: s,
|
|
18
|
+
applyFilters: r,
|
|
19
|
+
resetFilters: n,
|
|
20
|
+
tableFilters: a,
|
|
21
|
+
table: o
|
|
22
|
+
};
|
|
23
|
+
return F(c, u), u;
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
D as useR3uiTableDefaultInject
|
|
27
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { ref as o, computed as d, provide as j, watch as A, onMounted as E } from "vue";
|
|
2
|
+
import { assertR3uiTableInstance as K } from "../../types/tableInstance.js";
|
|
3
|
+
import S from "./useTableDefault.js";
|
|
4
|
+
import { useTabulatorTableProps as D } from "../../utils/createTabulatorTableProps.js";
|
|
5
|
+
import { createTableAjaxRequestFunc as M, createEmptyRemotePageResponse as O } from "../../utils/tableAjaxRequest.js";
|
|
6
|
+
import { toTableEditorColumns as U, applyColumnVisibility as z } from "../../utils/tableAdapter.js";
|
|
7
|
+
function L(e) {
|
|
8
|
+
const f = D(e.t, e.locale), i = e.total ?? o(0), u = o(!1), s = e.createAjaxResponse(i), n = o({
|
|
9
|
+
...e.defaultTableOptions ?? {},
|
|
10
|
+
columns: e.getColumns(),
|
|
11
|
+
ajaxResponse: s,
|
|
12
|
+
ajaxRequestFunc: M({
|
|
13
|
+
onUnauthorized: e.onUnauthorized,
|
|
14
|
+
onError: e.onError,
|
|
15
|
+
onNotFound: e.notFound === "empty" ? ({
|
|
16
|
+
url: a,
|
|
17
|
+
params: t
|
|
18
|
+
}) => O(
|
|
19
|
+
a,
|
|
20
|
+
Number(t.page || 1),
|
|
21
|
+
Number(t.per_page || 10)
|
|
22
|
+
) : void 0
|
|
23
|
+
})
|
|
24
|
+
}), c = d({
|
|
25
|
+
get: () => n.value.columns,
|
|
26
|
+
set: (a) => {
|
|
27
|
+
n.value.columns = a;
|
|
28
|
+
}
|
|
29
|
+
}), y = d(
|
|
30
|
+
() => U(c.value)
|
|
31
|
+
), b = typeof e.localStorageKey == "string" ? o(e.localStorageKey) : e.localStorageKey, r = S({
|
|
32
|
+
localStorageKey: b,
|
|
33
|
+
getAjaxResponse: async () => s,
|
|
34
|
+
getAjaxUrl: () => e.getAjaxUrl(() => r.getFilterData()),
|
|
35
|
+
tableOptions: n,
|
|
36
|
+
initialFilters: e.initialFilters,
|
|
37
|
+
getColumns: e.getColumns,
|
|
38
|
+
initialFilterTitles: e.initialFilterTitles
|
|
39
|
+
}), {
|
|
40
|
+
tableKey: v,
|
|
41
|
+
columnHide: x,
|
|
42
|
+
columnShow: F,
|
|
43
|
+
table: l,
|
|
44
|
+
onTableRowMoved: g,
|
|
45
|
+
onShowColumn: C,
|
|
46
|
+
onHideColumn: p,
|
|
47
|
+
handleColumnsChanged: m,
|
|
48
|
+
handleColumnsApply: R
|
|
49
|
+
} = r;
|
|
50
|
+
function T(a) {
|
|
51
|
+
m(
|
|
52
|
+
z(
|
|
53
|
+
n.value.columns,
|
|
54
|
+
a.map(({ field: t, visible: w }) => ({ field: t, visible: w }))
|
|
55
|
+
)
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
async function h(a) {
|
|
59
|
+
a !== null && K(a), l.value = a, u.value && e.applyFiltersOnReady !== !1 && l.value && await r.applyFilters(l.value);
|
|
60
|
+
}
|
|
61
|
+
if (e.filtersContextKey) {
|
|
62
|
+
const a = { total: i, tableDefault: r }, t = e.extendFiltersContext ? { ...a, ...e.extendFiltersContext(a) } : a;
|
|
63
|
+
j(e.filtersContextKey, t);
|
|
64
|
+
}
|
|
65
|
+
return e.watchQuickFilter && A(
|
|
66
|
+
() => e.watchQuickFilter.value,
|
|
67
|
+
async (a, t) => {
|
|
68
|
+
a !== t && l.value && u.value && await r.applyFilters(l.value);
|
|
69
|
+
},
|
|
70
|
+
{ deep: !0 }
|
|
71
|
+
), E(async () => {
|
|
72
|
+
e.onMountedExtra && await e.onMountedExtra(), u.value = !0, l.value && e.applyFiltersOnReady !== !1 && await r.applyFilters(l.value);
|
|
73
|
+
}), {
|
|
74
|
+
tableOptions: n,
|
|
75
|
+
tableColumns: c,
|
|
76
|
+
editorColumns: y,
|
|
77
|
+
applyEditorColumns: T,
|
|
78
|
+
tableKey: v,
|
|
79
|
+
columnHide: x,
|
|
80
|
+
columnShow: F,
|
|
81
|
+
tableLocalizations: f,
|
|
82
|
+
handleTableReady: h,
|
|
83
|
+
onTableRowMoved: g,
|
|
84
|
+
onShowColumn: C,
|
|
85
|
+
onHideColumn: p,
|
|
86
|
+
handleColumnsChanged: m,
|
|
87
|
+
handleColumnsApply: R,
|
|
88
|
+
total: i,
|
|
89
|
+
tableDefault: r,
|
|
90
|
+
table: l,
|
|
91
|
+
isInitDone: u
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
export {
|
|
95
|
+
L as useRemoteTable
|
|
96
|
+
};
|