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,67 @@
|
|
|
1
|
+
import { toRaw as a } from "vue";
|
|
2
|
+
import { waitForTableOperation as p } from "./tableOperation.js";
|
|
3
|
+
function g() {
|
|
4
|
+
let e;
|
|
5
|
+
const t = /* @__PURE__ */ new Set();
|
|
6
|
+
return {
|
|
7
|
+
subscribe(r) {
|
|
8
|
+
e ? r(e) : t.add(r);
|
|
9
|
+
},
|
|
10
|
+
finish(r) {
|
|
11
|
+
if (e) return;
|
|
12
|
+
e = r;
|
|
13
|
+
const n = [...t];
|
|
14
|
+
t.clear();
|
|
15
|
+
for (const o of n) o(r);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
const i = /* @__PURE__ */ new WeakMap();
|
|
20
|
+
function k(e) {
|
|
21
|
+
return e ? i.get(a(e)) : void 0;
|
|
22
|
+
}
|
|
23
|
+
function T(e, t, r) {
|
|
24
|
+
const n = a(e), o = i.get(n);
|
|
25
|
+
i.set(n, t);
|
|
26
|
+
try {
|
|
27
|
+
return r();
|
|
28
|
+
} finally {
|
|
29
|
+
o ? i.set(n, o) : i.delete(n);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
const u = /* @__PURE__ */ new WeakMap();
|
|
33
|
+
function b(e) {
|
|
34
|
+
return e ? u.get(a(e)) : void 0;
|
|
35
|
+
}
|
|
36
|
+
const c = /* @__PURE__ */ new WeakMap();
|
|
37
|
+
function m(e, t) {
|
|
38
|
+
return c.set(a(e), t), () => {
|
|
39
|
+
c.get(a(e)) === t && c.delete(a(e));
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
async function v(e, t, r, n) {
|
|
43
|
+
const o = () => {
|
|
44
|
+
const s = a(e), d = u.get(s);
|
|
45
|
+
n && u.set(s, n);
|
|
46
|
+
try {
|
|
47
|
+
const l = c.get(s);
|
|
48
|
+
return l ? l(t) : (async () => (await t(), { status: "applied" }))();
|
|
49
|
+
} finally {
|
|
50
|
+
d ? u.set(s, d) : u.delete(s);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
if (!r) return o();
|
|
54
|
+
const f = await p(o, {
|
|
55
|
+
signal: r,
|
|
56
|
+
isCurrent: () => !r.aborted
|
|
57
|
+
});
|
|
58
|
+
return f.status === "applied" ? f.value : f;
|
|
59
|
+
}
|
|
60
|
+
export {
|
|
61
|
+
g as createTableLoadBoundary,
|
|
62
|
+
k as getTableLoadBoundary,
|
|
63
|
+
b as getTableRequestOperation,
|
|
64
|
+
m as registerTableLoadTracker,
|
|
65
|
+
v as trackTableLoad,
|
|
66
|
+
T as withTableLoadBoundary
|
|
67
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
let c = 0;
|
|
2
|
+
function d(n) {
|
|
3
|
+
const e = new AbortController(), s = [], l = (r = "cancelled") => e.abort(r);
|
|
4
|
+
for (const r of /* @__PURE__ */ new Set([
|
|
5
|
+
n.signal,
|
|
6
|
+
n.parent?.signal,
|
|
7
|
+
...n.signals ?? []
|
|
8
|
+
])) {
|
|
9
|
+
if (!r) continue;
|
|
10
|
+
const t = () => l(r.reason === "superseded" ? "superseded" : "cancelled");
|
|
11
|
+
r.aborted ? t() : (r.addEventListener("abort", t, { once: !0 }), s.push(() => r.removeEventListener("abort", t)));
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
operation: Object.freeze({
|
|
15
|
+
id: ++c,
|
|
16
|
+
parentId: n.parent?.id,
|
|
17
|
+
kind: n.kind,
|
|
18
|
+
generation: n.generation,
|
|
19
|
+
revision: n.revision,
|
|
20
|
+
context: n.context,
|
|
21
|
+
signal: e.signal,
|
|
22
|
+
isCurrent: () => !e.signal.aborted && (n.parent?.isCurrent() ?? !0) && n.isCurrent()
|
|
23
|
+
}),
|
|
24
|
+
abort: l,
|
|
25
|
+
dispose: () => {
|
|
26
|
+
for (const r of s) r();
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function i(n) {
|
|
31
|
+
return {
|
|
32
|
+
status: n.signal.aborted && n.signal.reason !== "superseded" ? "cancelled" : "superseded"
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
async function u(n, e) {
|
|
36
|
+
return e.signal.aborted || !e.isCurrent() ? i(e) : new Promise((s, l) => {
|
|
37
|
+
const a = () => {
|
|
38
|
+
e.signal.removeEventListener("abort", a), s(i(e));
|
|
39
|
+
};
|
|
40
|
+
e.signal.addEventListener("abort", a, { once: !0 });
|
|
41
|
+
let r;
|
|
42
|
+
try {
|
|
43
|
+
r = Promise.resolve(n());
|
|
44
|
+
} catch (t) {
|
|
45
|
+
r = Promise.reject(t);
|
|
46
|
+
}
|
|
47
|
+
r.then(
|
|
48
|
+
(t) => {
|
|
49
|
+
e.signal.removeEventListener("abort", a), s(
|
|
50
|
+
!e.signal.aborted && e.isCurrent() ? { status: "applied", value: t } : i(e)
|
|
51
|
+
);
|
|
52
|
+
},
|
|
53
|
+
(t) => {
|
|
54
|
+
e.signal.removeEventListener("abort", a), e.signal.aborted || !e.isCurrent() ? s(i(e)) : l(t);
|
|
55
|
+
}
|
|
56
|
+
).catch(l), e.signal.aborted && a();
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
d as createTableOperation,
|
|
61
|
+
i as tableOperationStopped,
|
|
62
|
+
u as waitForTableOperation
|
|
63
|
+
};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { createTableParameterSource as h, describeTableParameterSource as V } from "./tableQueryParameters.js";
|
|
2
|
+
import { toRaw as x } from "vue";
|
|
3
|
+
import { cloneTableValue as n, equalTableValue as d } from "./tableSnapshotValue.js";
|
|
4
|
+
function g(i) {
|
|
5
|
+
const t = V(i), o = (a) => Object.fromEntries(
|
|
6
|
+
Object.entries(a).filter(([c]) => c !== "per_page")
|
|
7
|
+
);
|
|
8
|
+
return {
|
|
9
|
+
source: typeof t.source == "function" ? t.source : n(o(t.source ?? {})),
|
|
10
|
+
explicit: n(o(t.explicit)),
|
|
11
|
+
size: t.size
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function m(i) {
|
|
15
|
+
return {
|
|
16
|
+
source: typeof i.source == "function" ? i.source : n(i.source),
|
|
17
|
+
explicit: n(i.explicit),
|
|
18
|
+
size: i.size
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function R(i, t) {
|
|
22
|
+
return d(i.source, t.source) && d(i.explicit, t.explicit);
|
|
23
|
+
}
|
|
24
|
+
function E(i) {
|
|
25
|
+
let t = g(i), o = 0, a = 0, c = 0, f = {}, p;
|
|
26
|
+
const b = {}, q = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new Set();
|
|
27
|
+
function l(e) {
|
|
28
|
+
switch (e.type) {
|
|
29
|
+
case "requested":
|
|
30
|
+
q.set(x(e.query), c);
|
|
31
|
+
return;
|
|
32
|
+
case "configuration-changed": {
|
|
33
|
+
const r = g(e.source);
|
|
34
|
+
R(t, r) || (t = r, o++);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
case "owner-bound":
|
|
38
|
+
p = e.owner, c++;
|
|
39
|
+
return;
|
|
40
|
+
case "accepted": {
|
|
41
|
+
p = e.owner;
|
|
42
|
+
const r = g(e.source);
|
|
43
|
+
d(t.source, r.source) && (a = o);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
case "view-changed":
|
|
47
|
+
if (e.owner !== p || w.has(e.owner) || Object.entries(e.view).every(
|
|
48
|
+
([r, s]) => d(f[r], s)
|
|
49
|
+
))
|
|
50
|
+
return;
|
|
51
|
+
f = { ...f, ...n(e.view) }, c++;
|
|
52
|
+
for (const r of Object.keys(e.view))
|
|
53
|
+
b[r] = c;
|
|
54
|
+
return;
|
|
55
|
+
default: {
|
|
56
|
+
const r = e;
|
|
57
|
+
throw new TypeError(
|
|
58
|
+
`Неизвестное событие проекции: ${String(r)}`
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
requested(e) {
|
|
65
|
+
l({ type: "requested", query: e });
|
|
66
|
+
},
|
|
67
|
+
configure(e) {
|
|
68
|
+
return l({ type: "configuration-changed", source: e }), o !== a ? m(t) : void 0;
|
|
69
|
+
},
|
|
70
|
+
configurationSource() {
|
|
71
|
+
return h(
|
|
72
|
+
m(t).source,
|
|
73
|
+
void 0,
|
|
74
|
+
n(t.explicit)
|
|
75
|
+
);
|
|
76
|
+
},
|
|
77
|
+
sourceForRebuild(e) {
|
|
78
|
+
return o !== a ? h(
|
|
79
|
+
m(t).source,
|
|
80
|
+
void 0,
|
|
81
|
+
n(t.explicit)
|
|
82
|
+
) : e;
|
|
83
|
+
},
|
|
84
|
+
bindView(e) {
|
|
85
|
+
l({ type: "owner-bound", owner: e });
|
|
86
|
+
},
|
|
87
|
+
accepted(e, r) {
|
|
88
|
+
l({ type: "accepted", source: e, owner: r });
|
|
89
|
+
},
|
|
90
|
+
captureView(e, r, s, u = "all") {
|
|
91
|
+
l({
|
|
92
|
+
type: "view-changed",
|
|
93
|
+
owner: s,
|
|
94
|
+
view: {
|
|
95
|
+
...u !== "sort" && r.filter !== "remote" ? {
|
|
96
|
+
programmaticFilters: e.programmaticFilters,
|
|
97
|
+
filters: e.filters
|
|
98
|
+
} : {},
|
|
99
|
+
...u !== "filter" && r.sort !== "remote" ? { sort: e.sort } : {}
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
},
|
|
103
|
+
/** Область только синхронных записей: ожидание HTTP не блокирует пользовательские события. */
|
|
104
|
+
project(e, r, s) {
|
|
105
|
+
const u = c, y = o;
|
|
106
|
+
return s(() => e === p && u === c && y === o && r(), (j) => {
|
|
107
|
+
const O = w.has(e);
|
|
108
|
+
w.add(e);
|
|
109
|
+
try {
|
|
110
|
+
return j();
|
|
111
|
+
} finally {
|
|
112
|
+
O || w.delete(e);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
},
|
|
116
|
+
plan(e, r) {
|
|
117
|
+
const s = q.get(x(e.query)), u = r === "query" && s !== void 0 ? Object.fromEntries(
|
|
118
|
+
Object.entries(f).filter(
|
|
119
|
+
([y]) => (b[y] ?? 0) > s
|
|
120
|
+
)
|
|
121
|
+
) : {};
|
|
122
|
+
return {
|
|
123
|
+
kind: r,
|
|
124
|
+
data: e,
|
|
125
|
+
view: n({
|
|
126
|
+
programmaticFilters: e.query.programmaticFilters,
|
|
127
|
+
filters: e.query.filters,
|
|
128
|
+
sort: e.query.sort,
|
|
129
|
+
...r === "selection" ? f : u
|
|
130
|
+
})
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
export {
|
|
136
|
+
E as createTableProjection
|
|
137
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { toRaw as s } from "vue";
|
|
2
|
+
const a = /* @__PURE__ */ new WeakMap();
|
|
3
|
+
function u(i, t, n) {
|
|
4
|
+
const r = i ? f(i) : void 0, e = r ? r.source : i, c = { ...n ?? r?.explicit ?? {} };
|
|
5
|
+
if (typeof e != "function") {
|
|
6
|
+
const o = {
|
|
7
|
+
...e,
|
|
8
|
+
...c,
|
|
9
|
+
...t === void 0 ? {} : { per_page: t }
|
|
10
|
+
};
|
|
11
|
+
return a.set(o, {
|
|
12
|
+
source: e,
|
|
13
|
+
explicit: c,
|
|
14
|
+
size: t,
|
|
15
|
+
projection: { ...o }
|
|
16
|
+
}), o;
|
|
17
|
+
}
|
|
18
|
+
const p = function() {
|
|
19
|
+
const o = e.call(this);
|
|
20
|
+
if (!o || typeof o != "object" || Array.isArray(o))
|
|
21
|
+
throw new TypeError("ajaxParams должен возвращать объект");
|
|
22
|
+
return {
|
|
23
|
+
...o,
|
|
24
|
+
...c,
|
|
25
|
+
...t === void 0 ? {} : { per_page: t }
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
return a.set(p, { source: e, explicit: c, size: t }), p;
|
|
29
|
+
}
|
|
30
|
+
function f(i) {
|
|
31
|
+
const t = i && a.get(s(i));
|
|
32
|
+
if (!t) return { source: i, explicit: {}, size: void 0 };
|
|
33
|
+
if (!i || typeof i == "function" || !t.projection)
|
|
34
|
+
return t;
|
|
35
|
+
const n = { ...t.source }, r = { ...t.explicit };
|
|
36
|
+
for (const e of /* @__PURE__ */ new Set([
|
|
37
|
+
...Object.keys(t.projection),
|
|
38
|
+
...Object.keys(i)
|
|
39
|
+
]))
|
|
40
|
+
e !== "per_page" && (Object.hasOwn(i, e) ? Object.is(i[e], t.projection[e]) || (Object.hasOwn(r, e) ? r[e] = i[e] : n[e] = i[e]) : (delete n[e], delete r[e]));
|
|
41
|
+
return { source: n, explicit: r, size: t.size };
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
u as createTableParameterSource,
|
|
45
|
+
f as describeTableParameterSource
|
|
46
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { toRaw as l } from "vue";
|
|
2
|
+
function g(i) {
|
|
3
|
+
const o = /* @__PURE__ */ new WeakMap();
|
|
4
|
+
function f(s) {
|
|
5
|
+
if (!s || typeof s != "object") return s;
|
|
6
|
+
const e = l(s);
|
|
7
|
+
if (o.has(e)) return o.get(e);
|
|
8
|
+
if (e instanceof Map) {
|
|
9
|
+
const r = /* @__PURE__ */ new Map();
|
|
10
|
+
o.set(e, r);
|
|
11
|
+
for (const [n, c] of e) r.set(f(n), f(c));
|
|
12
|
+
return r;
|
|
13
|
+
}
|
|
14
|
+
if (e instanceof Set) {
|
|
15
|
+
const r = /* @__PURE__ */ new Set();
|
|
16
|
+
o.set(e, r);
|
|
17
|
+
for (const n of e) r.add(f(n));
|
|
18
|
+
return r;
|
|
19
|
+
}
|
|
20
|
+
if (Array.isArray(e)) {
|
|
21
|
+
const r = [];
|
|
22
|
+
o.set(e, r);
|
|
23
|
+
for (let n = 0; n < e.length; n++)
|
|
24
|
+
Object.hasOwn(e, n) && (r[n] = f(e[n]));
|
|
25
|
+
return r.length = e.length, r;
|
|
26
|
+
}
|
|
27
|
+
if (Object.getPrototypeOf(e) !== Object.prototype && Object.getPrototypeOf(e) !== null)
|
|
28
|
+
return e;
|
|
29
|
+
const t = /* @__PURE__ */ Object.create(null);
|
|
30
|
+
o.set(e, t);
|
|
31
|
+
for (const r of Object.keys(e))
|
|
32
|
+
t[r] = f(e[r]);
|
|
33
|
+
return t;
|
|
34
|
+
}
|
|
35
|
+
return structuredClone(f(i));
|
|
36
|
+
}
|
|
37
|
+
function O(i, o) {
|
|
38
|
+
const f = /* @__PURE__ */ new WeakMap();
|
|
39
|
+
function s(e, t) {
|
|
40
|
+
if (Object.is(e, t)) return !0;
|
|
41
|
+
if (!e || !t || typeof e != "object" || typeof t != "object" || Object.getPrototypeOf(e) !== Object.getPrototypeOf(t)) return !1;
|
|
42
|
+
if (f.has(e)) return f.get(e) === t;
|
|
43
|
+
if (f.set(e, t), e instanceof Date && t instanceof Date)
|
|
44
|
+
return Object.is(e.getTime(), t.getTime());
|
|
45
|
+
if (e instanceof RegExp && t instanceof RegExp)
|
|
46
|
+
return e.source === t.source && e.flags === t.flags;
|
|
47
|
+
if (e instanceof Map && t instanceof Map)
|
|
48
|
+
return e.size === t.size && s([...e], [...t]);
|
|
49
|
+
if (e instanceof Set && t instanceof Set)
|
|
50
|
+
return e.size === t.size && s([...e], [...t]);
|
|
51
|
+
if (e instanceof ArrayBuffer && t instanceof ArrayBuffer)
|
|
52
|
+
return s(new Uint8Array(e), new Uint8Array(t));
|
|
53
|
+
if (ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
|
|
54
|
+
if (e.byteLength !== t.byteLength) return !1;
|
|
55
|
+
const n = new Uint8Array(e.buffer, e.byteOffset, e.byteLength), c = new Uint8Array(t.buffer, t.byteOffset, t.byteLength);
|
|
56
|
+
return n.every((u, y) => u === c[y]);
|
|
57
|
+
}
|
|
58
|
+
if (!Array.isArray(e) && Object.getPrototypeOf(e) !== Object.prototype && Object.getPrototypeOf(e) !== null || Array.isArray(e) && Array.isArray(t) && e.length !== t.length)
|
|
59
|
+
return !1;
|
|
60
|
+
const r = Object.keys(e);
|
|
61
|
+
return r.length === Object.keys(t).length && r.every(
|
|
62
|
+
(n) => Object.hasOwn(t, n) && s(
|
|
63
|
+
e[n],
|
|
64
|
+
t[n]
|
|
65
|
+
)
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
return s(i, o);
|
|
69
|
+
}
|
|
70
|
+
export {
|
|
71
|
+
g as cloneTableValue,
|
|
72
|
+
O as equalTableValue
|
|
73
|
+
};
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { createTableProjection as G } from "./tableProjection.js";
|
|
2
|
+
import { cloneTableValue as F } from "./tableSnapshotValue.js";
|
|
3
|
+
import { describeTableParameterSource as I } from "./tableQueryParameters.js";
|
|
4
|
+
import { toRaw as O } from "vue";
|
|
5
|
+
import { registerTableQueryAdapter as J } from "./tableData.js";
|
|
6
|
+
function $(g) {
|
|
7
|
+
const y = g.table, E = g.query;
|
|
8
|
+
if (!E) return;
|
|
9
|
+
const o = E, { ajax: H, filter: w, sort: S, page: i } = o.modules;
|
|
10
|
+
let c = G(o.options.ajaxParams);
|
|
11
|
+
c.bindView(y);
|
|
12
|
+
let R = () => !0;
|
|
13
|
+
const v = (r = "all") => {
|
|
14
|
+
!g.isActive() || !o.initialized || !R() || c.captureView(
|
|
15
|
+
{
|
|
16
|
+
programmaticFilters: o.getFilters(),
|
|
17
|
+
filters: o.getHeaderFilters(),
|
|
18
|
+
sort: o.getSorters().map(({ field: e, dir: t }) => ({ column: e, dir: t }))
|
|
19
|
+
},
|
|
20
|
+
{ filter: o.options.filterMode, sort: o.options.sortMode },
|
|
21
|
+
y,
|
|
22
|
+
r
|
|
23
|
+
);
|
|
24
|
+
}, T = () => v("filter"), D = () => v("sort");
|
|
25
|
+
g.subscribe("filter-changed", T), g.subscribe("sort-changed", D);
|
|
26
|
+
const L = w.setFilter;
|
|
27
|
+
g.patch(w, "setFilter", function(...r) {
|
|
28
|
+
const e = L.apply(this, r);
|
|
29
|
+
return T(), e;
|
|
30
|
+
});
|
|
31
|
+
let n, h, f = {}, l, b;
|
|
32
|
+
function P() {
|
|
33
|
+
const r = o.options.ajaxParams;
|
|
34
|
+
if (r !== h) {
|
|
35
|
+
const e = I(r);
|
|
36
|
+
n = e.source, f = { ...e.explicit }, typeof e.size == "number" && (l = e.size);
|
|
37
|
+
} else if (r && typeof r != "function" && typeof n != "function") {
|
|
38
|
+
const e = { ...n };
|
|
39
|
+
for (const t of /* @__PURE__ */ new Set([
|
|
40
|
+
...Object.keys(e),
|
|
41
|
+
...Object.keys(f),
|
|
42
|
+
...Object.keys(r)
|
|
43
|
+
]))
|
|
44
|
+
Object.hasOwn(r, t) ? (!Object.hasOwn(f, t) || !Object.is(r[t], f[t])) && (e[t] = r[t], delete f[t]) : (delete e[t], delete f[t]);
|
|
45
|
+
n = e, l = typeof r.per_page == "number" ? r.per_page : l;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
const M = /* @__PURE__ */ new WeakMap();
|
|
49
|
+
function A(r) {
|
|
50
|
+
const e = n, t = { ...f }, p = o.options.dataSendParams ?? {}, d = Object.fromEntries(
|
|
51
|
+
Object.entries(p).map(([a, m]) => [m, a])
|
|
52
|
+
), s = r ? Object.fromEntries(
|
|
53
|
+
Object.entries(r.params).map(([a, m]) => [
|
|
54
|
+
d[a] ?? a,
|
|
55
|
+
m
|
|
56
|
+
])
|
|
57
|
+
) : {};
|
|
58
|
+
typeof e == "function" ? h = function() {
|
|
59
|
+
const a = e.call(this);
|
|
60
|
+
if (!a || typeof a != "object" || Array.isArray(a))
|
|
61
|
+
throw new TypeError("ajaxParams должен возвращать объект");
|
|
62
|
+
return b && !b.replaying && (b.dynamic = { ...a }), {
|
|
63
|
+
...a,
|
|
64
|
+
...t,
|
|
65
|
+
...s,
|
|
66
|
+
...l === void 0 ? {} : { per_page: l }
|
|
67
|
+
};
|
|
68
|
+
} : h = {
|
|
69
|
+
...e,
|
|
70
|
+
...t,
|
|
71
|
+
...s,
|
|
72
|
+
...l === void 0 ? {} : { per_page: l }
|
|
73
|
+
}, typeof h == "function" && Object.assign(h, { per_page: l }), o.options.ajaxParams = h;
|
|
74
|
+
}
|
|
75
|
+
let x;
|
|
76
|
+
function V(r, e) {
|
|
77
|
+
const { query: t } = r;
|
|
78
|
+
e() && (P(), n = typeof n == "function" ? n : F(t.parameterSources?.configured ?? n ?? {}), f = F(
|
|
79
|
+
t.parameterSources?.explicit ?? t.extraParams
|
|
80
|
+
), l = t.size, A(), o.options.ajaxURL = t.url, H.setUrl(t.url));
|
|
81
|
+
}
|
|
82
|
+
function k(r) {
|
|
83
|
+
x = {
|
|
84
|
+
selection: O(r.rows),
|
|
85
|
+
rows: o.rowManager.rows.map((e) => e.data)
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function Q(r, e) {
|
|
89
|
+
e() && (P(), c.accepted(n, y), V(r, e), e() && (v(), k(r)));
|
|
90
|
+
}
|
|
91
|
+
g.own(
|
|
92
|
+
J(y, {
|
|
93
|
+
accept: Q,
|
|
94
|
+
attachProjection(r, e) {
|
|
95
|
+
c = r, R = e, c.bindView(y);
|
|
96
|
+
},
|
|
97
|
+
prepare(r, e) {
|
|
98
|
+
return c.project(y, e, (t, p) => {
|
|
99
|
+
if (!t())
|
|
100
|
+
throw new DOMException("Проекция таблицы завершена", "AbortError");
|
|
101
|
+
return p(r);
|
|
102
|
+
});
|
|
103
|
+
},
|
|
104
|
+
configureParameters(r) {
|
|
105
|
+
P();
|
|
106
|
+
const e = c.configure(r);
|
|
107
|
+
e && (n = e.source, f = { ...f, ...e.explicit }, typeof e.size == "number" && (l = e.size), A());
|
|
108
|
+
},
|
|
109
|
+
parameterSource() {
|
|
110
|
+
return P(), c.sourceForRebuild(n);
|
|
111
|
+
},
|
|
112
|
+
parameters: () => b,
|
|
113
|
+
withReplay(r, e, t) {
|
|
114
|
+
return M.set(r, e), t().finally(() => M.delete(r));
|
|
115
|
+
},
|
|
116
|
+
withParameters(r, e, t) {
|
|
117
|
+
P();
|
|
118
|
+
const p = o.getPageSize();
|
|
119
|
+
typeof p == "number" && (l = p);
|
|
120
|
+
const d = b, s = t ? M.get(t) : void 0;
|
|
121
|
+
b = s?.parameterSources ? {
|
|
122
|
+
...F(s.parameterSources),
|
|
123
|
+
replaying: !0
|
|
124
|
+
} : {
|
|
125
|
+
configured: typeof n == "function" ? {} : { ...n },
|
|
126
|
+
dynamic: {},
|
|
127
|
+
explicit: { ...f, ...r }
|
|
128
|
+
}, A(s);
|
|
129
|
+
const a = i.dataChanging;
|
|
130
|
+
s && i.mode === "remote" && (i.page = s.page, i.dataChanging = !0);
|
|
131
|
+
try {
|
|
132
|
+
return e();
|
|
133
|
+
} finally {
|
|
134
|
+
s && i.mode === "remote" && (i.dataChanging = a), b = d;
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
restoreSelection(r, e, t) {
|
|
138
|
+
q(
|
|
139
|
+
c.plan(r, t ? "selection" : "seed"),
|
|
140
|
+
e
|
|
141
|
+
);
|
|
142
|
+
},
|
|
143
|
+
restore(r, e) {
|
|
144
|
+
q(c.plan(r, "query"), e);
|
|
145
|
+
}
|
|
146
|
+
})
|
|
147
|
+
);
|
|
148
|
+
function q(r, e) {
|
|
149
|
+
return c.project(y, e, (t, p) => {
|
|
150
|
+
if (!t()) return;
|
|
151
|
+
const { data: d, view: s, kind: a } = r, { query: m, total: U, lastPage: B } = d;
|
|
152
|
+
if (a !== "seed") {
|
|
153
|
+
if (V(d, t), !t()) return;
|
|
154
|
+
const z = w.refreshFilter;
|
|
155
|
+
w.refreshFilter = () => {
|
|
156
|
+
};
|
|
157
|
+
try {
|
|
158
|
+
if (p(() => w.setFilter([...s.programmaticFilters])), !t()) return;
|
|
159
|
+
const u = new Set(
|
|
160
|
+
[...o.getHeaderFilters(), ...s.filters].map(
|
|
161
|
+
({ field: j }) => j
|
|
162
|
+
)
|
|
163
|
+
), _ = new Map(
|
|
164
|
+
s.filters.map(({ field: j, value: W }) => [j, W])
|
|
165
|
+
);
|
|
166
|
+
for (const j of u) {
|
|
167
|
+
if (!t()) return;
|
|
168
|
+
p(
|
|
169
|
+
() => o.setHeaderFilterValue(j, _.get(j) ?? "")
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
} finally {
|
|
173
|
+
w.refreshFilter = z;
|
|
174
|
+
}
|
|
175
|
+
if (!t() || (p(() => S.setSort(s.sort.map((u) => ({ ...u })))), !t())) return;
|
|
176
|
+
S.clearColumnHeaders();
|
|
177
|
+
for (const u of S.sortList) {
|
|
178
|
+
if (!t()) return;
|
|
179
|
+
S.setColumnHeader(u.column, u.dir);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
if (t()) {
|
|
183
|
+
if (a !== "query") {
|
|
184
|
+
const z = o.rowManager.rows.map((u) => u.data);
|
|
185
|
+
if (x?.selection !== O(d.rows) || z.length !== x.rows.length || z.some(
|
|
186
|
+
(u, _) => O(u) !== O(x.rows[_])
|
|
187
|
+
) ? o.rowManager._setDataActual(
|
|
188
|
+
F(d.rows),
|
|
189
|
+
!0
|
|
190
|
+
) : o.rowManager.refreshActiveData(!1, !1, !0), !t()) return;
|
|
191
|
+
k(d);
|
|
192
|
+
}
|
|
193
|
+
if (!(a === "seed" || !t()) && (o.options.paginationSize = m.size, i.mode === "remote")) {
|
|
194
|
+
if (i.page = m.page, i.max = B, i.remoteRowCountEstimate = U, i.setPageSize(m.size), !t() || (i._setPageButtons(), !t()) || (i._setPageCounter(), !t())) return;
|
|
195
|
+
i.dispatchExternal("pageLoaded", m.page);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
export {
|
|
202
|
+
$ as installTabulatorQueryAdapter
|
|
203
|
+
};
|