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,72 @@
|
|
|
1
|
+
import { defineComponent as v, createElementBlock as a, openBlock as o, createCommentVNode as t, createBlock as p, toDisplayString as i, mergeProps as b, createSlots as c, renderList as f, withCtx as h, renderSlot as g, normalizeProps as C, guardReactiveProps as k, createElementVNode as E } from "vue";
|
|
2
|
+
import O from "./Table.vue.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
const R = ["aria-busy"], S = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "visually-hidden",
|
|
7
|
+
role: "status"
|
|
8
|
+
}, M = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "alert alert-danger mt-2",
|
|
11
|
+
role: "alert"
|
|
12
|
+
}, T = ["disabled"], N = /* @__PURE__ */ v({
|
|
13
|
+
inheritAttrs: !1,
|
|
14
|
+
__name: "ManagedRemoteTable",
|
|
15
|
+
props: {
|
|
16
|
+
view: {}
|
|
17
|
+
},
|
|
18
|
+
emits: ["retryError", "readyError"],
|
|
19
|
+
setup(d, { emit: u }) {
|
|
20
|
+
const r = d, s = u;
|
|
21
|
+
async function w(e) {
|
|
22
|
+
try {
|
|
23
|
+
await r.view.ready(e);
|
|
24
|
+
} catch (n) {
|
|
25
|
+
if (!r.view.error) throw n;
|
|
26
|
+
s("readyError", n);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
async function y() {
|
|
30
|
+
if (!(!r.view.canRetry || r.view.busy))
|
|
31
|
+
try {
|
|
32
|
+
await r.view.retry();
|
|
33
|
+
} catch (e) {
|
|
34
|
+
s("retryError", e);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return (e, n) => (o(), a("section", {
|
|
38
|
+
"aria-busy": e.view.busy
|
|
39
|
+
}, [
|
|
40
|
+
e.view.busy ? (o(), a("p", S, i(e.view.labels.loading), 1)) : t("", !0),
|
|
41
|
+
(o(), p(O, b({ ...e.$attrs, ...e.view.props }, {
|
|
42
|
+
key: e.view.key,
|
|
43
|
+
"managed-loading": e.view.busy,
|
|
44
|
+
"managed-failed": e.view.status === "failed",
|
|
45
|
+
onUpdateTable: w,
|
|
46
|
+
onOnTableRowMoved: e.view.rowMoved,
|
|
47
|
+
onOnShowColumn: e.view.showColumn,
|
|
48
|
+
onOnHideColumn: e.view.hideColumn
|
|
49
|
+
}), c({ _: 2 }, [
|
|
50
|
+
f(e.$slots, ($, l) => ({
|
|
51
|
+
name: l,
|
|
52
|
+
fn: h((m) => [
|
|
53
|
+
g(e.$slots, l, C(k(m || {})))
|
|
54
|
+
])
|
|
55
|
+
}))
|
|
56
|
+
]), 1040, ["managed-loading", "managed-failed", "onOnTableRowMoved", "onOnShowColumn", "onOnHideColumn"])),
|
|
57
|
+
e.view.error ? (o(), a("div", M, [
|
|
58
|
+
E("p", null, i(e.view.labels.error), 1),
|
|
59
|
+
e.view.canRetry ? (o(), a("button", {
|
|
60
|
+
key: 0,
|
|
61
|
+
type: "button",
|
|
62
|
+
class: "btn btn-primary",
|
|
63
|
+
disabled: e.view.busy,
|
|
64
|
+
onClick: y
|
|
65
|
+
}, i(e.view.labels.retry), 9, T)) : t("", !0)
|
|
66
|
+
])) : t("", !0)
|
|
67
|
+
], 8, R));
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
export {
|
|
71
|
+
N as default
|
|
72
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createElementBlock as e, openBlock as o } from "vue";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import i from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const a = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "bi bi-chevron-up"
|
|
7
|
+
}, r = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "bi bi-chevron-down"
|
|
10
|
+
}, d = {
|
|
11
|
+
__name: "SubFilterToggleBtn",
|
|
12
|
+
props: ["modelValue"],
|
|
13
|
+
emits: ["update:modelValue"],
|
|
14
|
+
setup(t, { emit: l }) {
|
|
15
|
+
const c = l, s = t, n = () => {
|
|
16
|
+
c("update:modelValue", !s.modelValue);
|
|
17
|
+
};
|
|
18
|
+
return (m, u) => (o(), e("div", {
|
|
19
|
+
class: "icon",
|
|
20
|
+
onClick: n
|
|
21
|
+
}, [
|
|
22
|
+
t.modelValue ? (o(), e("i", a)) : (o(), e("i", r))
|
|
23
|
+
]));
|
|
24
|
+
}
|
|
25
|
+
}, f = /* @__PURE__ */ i(d, [["__scopeId", "data-v-4810f2ed"]]);
|
|
26
|
+
export {
|
|
27
|
+
f as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
import { defineComponent as we, inject as $, ref as r, computed as R, watch as c, toRaw as k, nextTick as w, useSlots as Ce, onMounted as Pe, onBeforeUnmount as Re, createElementBlock as L, openBlock as T, normalizeClass as Le, withDirectives as z, createCommentVNode as V, createVNode as G, createElementVNode as m, createStaticVNode as Te, vShow as B, toDisplayString as K, renderSlot as Ne, createTextVNode as Me } from "vue";
|
|
2
|
+
import { TabulatorFull as De, AjaxModule as je } from "../../vendor/tabulator-tables/dist/js/tabulator_esm.js";
|
|
3
|
+
import _e from "../notifications/Toast.vue.js";
|
|
4
|
+
import Fe from "../form/VSelect.vue.js";
|
|
5
|
+
import ke from "./SubFilterToggleBtn.vue.js";
|
|
6
|
+
import ze from "../../utils/constants.js";
|
|
7
|
+
import { getUniqueKey as Ve, mountSubFilter as Be } from "../../utils/helpers.js";
|
|
8
|
+
import { getTableLocalizations as Ae } from "../../utils/tableLocalizations.js";
|
|
9
|
+
import { createTableResponseGuard as qe, installTableCancellationGuard as Ee } from "../../utils/tableCancellation.js";
|
|
10
|
+
import Ie from "../../assets/img/preloader.gif.js";
|
|
11
|
+
const He = { class: "placeholder-glow" }, Ue = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "alert alert-danger mt-2 table-load-error",
|
|
14
|
+
role: "alert"
|
|
15
|
+
}, Oe = { class: "tabulator hide-to-print sticky-bottom bg-white" }, $e = { class: "row" }, Ge = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "col-auto"
|
|
18
|
+
}, Ke = { class: "col" }, Je = {
|
|
19
|
+
class: "tabulator-footer",
|
|
20
|
+
ref: "footer"
|
|
21
|
+
}, Qe = ["id"], We = ["disabled"], Xe = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "spinner-border spinner-border-sm",
|
|
24
|
+
role: "status",
|
|
25
|
+
"aria-hidden": "true"
|
|
26
|
+
}, ia = /* @__PURE__ */ we({
|
|
27
|
+
__name: "Table",
|
|
28
|
+
props: {
|
|
29
|
+
managedLoading: { type: Boolean, default: void 0 },
|
|
30
|
+
managedFailed: { type: Boolean, default: !1 },
|
|
31
|
+
langs: { type: Object, default: () => ({}) },
|
|
32
|
+
paginationPage: { type: Number, default: null },
|
|
33
|
+
locale: { type: String, default: "en-en" },
|
|
34
|
+
rtl: { type: Boolean, default: !1 },
|
|
35
|
+
columnHide: { type: String, default: "" },
|
|
36
|
+
columnShow: { type: String, default: "" },
|
|
37
|
+
options: {
|
|
38
|
+
type: Object,
|
|
39
|
+
default: () => ({}),
|
|
40
|
+
required: !0
|
|
41
|
+
},
|
|
42
|
+
filters: {
|
|
43
|
+
type: [Array, Function, Object],
|
|
44
|
+
default: () => []
|
|
45
|
+
},
|
|
46
|
+
tableData: { type: Array, default: () => [] },
|
|
47
|
+
showAllColumnsIfAllHidden: { type: Boolean, default: !1 },
|
|
48
|
+
parentComponent: { type: Object, default: () => ({}) },
|
|
49
|
+
selectedRowsStorage: { type: Array, default: () => [] },
|
|
50
|
+
isVisibleColumnSubFilter: { type: Boolean, default: null },
|
|
51
|
+
loadMoreText: { type: String, default: "Load More" },
|
|
52
|
+
noDataText: { type: String, default: "No data found" },
|
|
53
|
+
paginationLimitText: {
|
|
54
|
+
type: String,
|
|
55
|
+
default: "Please use pagination to navigate"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
emits: [
|
|
59
|
+
"selectedRow",
|
|
60
|
+
"unselectedRow",
|
|
61
|
+
"updateSelectedRows",
|
|
62
|
+
"updateUnselectedRows",
|
|
63
|
+
"updateTable",
|
|
64
|
+
"onHideColumn",
|
|
65
|
+
"onShowColumn",
|
|
66
|
+
"onTableRowClick",
|
|
67
|
+
"onCellClick",
|
|
68
|
+
"onTableRowMoved",
|
|
69
|
+
"pageLoaded",
|
|
70
|
+
"savePaginationPage",
|
|
71
|
+
"updateIsVisibleColumnSubFilter",
|
|
72
|
+
"loadError"
|
|
73
|
+
],
|
|
74
|
+
setup(C, { emit: J }) {
|
|
75
|
+
const l = C, u = J, Q = $("selectedTabIndex", r()), A = $("selectAll", r(0)), x = r(""), N = r(""), M = r(null), g = r({
|
|
76
|
+
data: [],
|
|
77
|
+
rows: []
|
|
78
|
+
}), S = r(new Set(l.selectedRowsStorage)), f = r(!1), q = r(Ve()), d = r(null), a = r(null), h = r(!1), b = R(() => l.managedLoading ?? h.value), D = R(
|
|
79
|
+
() => l.managedLoading === void 0 ? N.value : ""
|
|
80
|
+
), P = r(
|
|
81
|
+
l.options?.paginationMode === "remote"
|
|
82
|
+
);
|
|
83
|
+
let E = !1, I = !1;
|
|
84
|
+
const y = r(null), n = r(!1);
|
|
85
|
+
c(b, async (e) => {
|
|
86
|
+
if (e || !f.value || !a.value) return;
|
|
87
|
+
const t = k(a.value);
|
|
88
|
+
if (await w(), !n.value && !b.value && f.value && k(a.value) === t) {
|
|
89
|
+
if (l.managedLoading !== void 0) {
|
|
90
|
+
const o = t.getPageSize();
|
|
91
|
+
typeof o == "number" && (M.value = o);
|
|
92
|
+
}
|
|
93
|
+
t.redraw();
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
const i = R(() => l.options?.paginationMode === "remote"), W = R(() => ze.customPerPageOptions), X = Ce(), Y = (e) => !!X[e], Z = () => {
|
|
97
|
+
x.value = "";
|
|
98
|
+
}, ee = (e) => !e || !e.length ? [] : e.map((t) => t), ae = () => {
|
|
99
|
+
a.value && (n.value = !0, u("updateTable", null), a.value.destroy(), f.value = !1, a.value = null);
|
|
100
|
+
}, te = () => {
|
|
101
|
+
if (!d.value) return;
|
|
102
|
+
const e = d.value.querySelector(".tabulator-header");
|
|
103
|
+
!e || l.isVisibleColumnSubFilter === null || Be(e, ke, {
|
|
104
|
+
modelValue: l.isVisibleColumnSubFilter,
|
|
105
|
+
"onUpdate:modelValue": (t) => u("updateIsVisibleColumnSubFilter", t)
|
|
106
|
+
});
|
|
107
|
+
}, le = () => {
|
|
108
|
+
if (!d.value) return;
|
|
109
|
+
const e = d.value.querySelector(".tabulator-header");
|
|
110
|
+
e && (e.classList.add("position-relative"), te());
|
|
111
|
+
}, H = () => {
|
|
112
|
+
if (!a.value) return null;
|
|
113
|
+
const e = a.value;
|
|
114
|
+
if (typeof e.getPageMax == "function") {
|
|
115
|
+
const o = e.getPageMax();
|
|
116
|
+
if (o != null && !Number.isNaN(Number(o)))
|
|
117
|
+
return Number(o);
|
|
118
|
+
}
|
|
119
|
+
const t = e.last_page;
|
|
120
|
+
return t != null && t !== "" && !Number.isNaN(Number(t)) ? Number(t) : null;
|
|
121
|
+
}, U = () => {
|
|
122
|
+
if (!a.value) return;
|
|
123
|
+
const e = d.value?.parentNode?.querySelector(".tabulator-footer"), t = d.value?.parentNode?.querySelector(
|
|
124
|
+
".tabulator-pages"
|
|
125
|
+
), o = H();
|
|
126
|
+
if (o == null || o < 1 || Number.isNaN(o)) {
|
|
127
|
+
e && e.classList.add("d-none");
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
o > 1 ? (e && e.classList.remove("d-none"), t && t.style.display === "none" && (t.style.display = "")) : e && e.classList.add("d-none");
|
|
131
|
+
}, oe = () => {
|
|
132
|
+
n.value || i.value && !f.value || (h.value = !0, N.value = "", P.value && (E = !0));
|
|
133
|
+
}, ne = (e) => {
|
|
134
|
+
if (!n.value && !(!i.value || !f.value)) {
|
|
135
|
+
if (!Array.isArray(e))
|
|
136
|
+
throw new TypeError("Некорректный ответ сервера: ожидался массив строк");
|
|
137
|
+
E && (I = !0);
|
|
138
|
+
}
|
|
139
|
+
}, se = (e) => {
|
|
140
|
+
if (h.value = !1, n.value) return;
|
|
141
|
+
const t = e instanceof Error && e.message ? e.message : typeof e == "string" && e ? e : "Failed to load data";
|
|
142
|
+
N.value = t, u("loadError", e);
|
|
143
|
+
}, ue = () => {
|
|
144
|
+
n.value || (f.value = !0, u("updateTable", a.value), a.value && a.value.selectRow(Array.from(S.value)));
|
|
145
|
+
}, ie = (e) => {
|
|
146
|
+
n.value || (setTimeout(() => {
|
|
147
|
+
n.value || u("savePaginationPage", e);
|
|
148
|
+
}), i.value && U(), A.value > 0 && u("pageLoaded"), le());
|
|
149
|
+
}, re = (e) => {
|
|
150
|
+
if (n.value) return;
|
|
151
|
+
const t = e.getData(), o = a.value?.options?.index || "id", s = t[o] ?? null;
|
|
152
|
+
s !== null && (S.value.add(s), g.value.data.push(t), g.value.rows.push(e), u("updateSelectedRows", {
|
|
153
|
+
data: g.value.data,
|
|
154
|
+
row: g.value.rows
|
|
155
|
+
}), u("selectedRow", { data: t, row: e }));
|
|
156
|
+
}, de = (e) => {
|
|
157
|
+
if (n.value) return;
|
|
158
|
+
const t = e.getData(), o = a.value?.options?.index || "id", s = t[o] ?? null;
|
|
159
|
+
if (s === null) return;
|
|
160
|
+
S.value.delete(s);
|
|
161
|
+
const v = g.value.data.findIndex(
|
|
162
|
+
(p) => p[o] === s
|
|
163
|
+
);
|
|
164
|
+
v !== -1 && (g.value.data.splice(v, 1), g.value.rows.splice(v, 1)), u("updateUnselectedRows", { data: t, row: e }), u("unselectedRow", { data: t, row: e });
|
|
165
|
+
}, ce = function() {
|
|
166
|
+
n.value || (I && (P.value = !1), a.value && a.value.selectRow(Array.from(S.value)), P.value || (h.value = !1), i.value && U());
|
|
167
|
+
}, ve = (e, t) => {
|
|
168
|
+
if (n.value) return;
|
|
169
|
+
if (t?._cell?.column?.definition?.hasCellClickHandler) {
|
|
170
|
+
u("onCellClick", e, t);
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
const o = [], s = e.target;
|
|
174
|
+
for (let v = 0; v < s.childNodes.length; v++) {
|
|
175
|
+
const p = s.childNodes[v];
|
|
176
|
+
p.nodeName === "INPUT" && p.type === "checkbox" && o.push("checkbox");
|
|
177
|
+
}
|
|
178
|
+
o.includes("checkbox") || u("onTableRowClick", e, t._cell.row, l.parentComponent);
|
|
179
|
+
}, pe = (e) => {
|
|
180
|
+
n.value || a.value && u("onTableRowMoved", a.value.getColumnLayout());
|
|
181
|
+
}, fe = () => {
|
|
182
|
+
n.value || setTimeout(() => {
|
|
183
|
+
n.value;
|
|
184
|
+
});
|
|
185
|
+
}, me = () => {
|
|
186
|
+
n.value || setTimeout(() => {
|
|
187
|
+
if (n.value) return;
|
|
188
|
+
const e = d.value?.parentElement?.querySelector(
|
|
189
|
+
".tabulator-paginator"
|
|
190
|
+
);
|
|
191
|
+
e && !y.value && (y.value = new MutationObserver(() => {
|
|
192
|
+
const t = d.value?.parentElement?.querySelector(
|
|
193
|
+
".tabulator-pages"
|
|
194
|
+
), o = H();
|
|
195
|
+
t && o != null && !Number.isNaN(o) && o > 1 && t.style.display === "none" && (t.style.display = "");
|
|
196
|
+
}), y.value.observe(e, {
|
|
197
|
+
childList: !0,
|
|
198
|
+
subtree: !0,
|
|
199
|
+
attributes: !0
|
|
200
|
+
})), Se();
|
|
201
|
+
});
|
|
202
|
+
}, ge = () => {
|
|
203
|
+
f.value = !1;
|
|
204
|
+
};
|
|
205
|
+
let j = (e) => e;
|
|
206
|
+
const _ = () => {
|
|
207
|
+
if (!d.value || i.value && !l.options.ajaxResponse || a.value)
|
|
208
|
+
return;
|
|
209
|
+
h.value = !0;
|
|
210
|
+
const e = Ae(), t = l.langs && typeof l.langs == "object" ? l.langs : {}, o = {
|
|
211
|
+
...l.options,
|
|
212
|
+
// В remote режиме не передаем data, данные загружаются через ajaxURL
|
|
213
|
+
...i.value ? {} : { data: l.tableData },
|
|
214
|
+
langs: { ...e, ...t },
|
|
215
|
+
locale: l.locale,
|
|
216
|
+
textDirection: l.rtl ? "rtl" : "ltr",
|
|
217
|
+
columns: ee(l.options.columns),
|
|
218
|
+
dataLoaderLoading: `<img alt="" src="${Ie}">`,
|
|
219
|
+
placeholder: l.noDataText,
|
|
220
|
+
// debugEventsExternal: true,
|
|
221
|
+
...l.options.ajaxResponse ? { ajaxResponse: l.options.ajaxResponse } : {}
|
|
222
|
+
};
|
|
223
|
+
let s, v;
|
|
224
|
+
if (i.value) {
|
|
225
|
+
delete o.ajaxURL, o.footerElement = `#tabulator-footer${q.value}`;
|
|
226
|
+
const p = je.defaultLoaderPromise, F = qe(
|
|
227
|
+
l.options.ajaxRequestFunc || p,
|
|
228
|
+
() => !n.value && k(a.value) === s,
|
|
229
|
+
() => {
|
|
230
|
+
h.value = !1;
|
|
231
|
+
}
|
|
232
|
+
);
|
|
233
|
+
v = F, j = F.wrapResponse, o.ajaxRequestFunc = F.request, o.ajaxResponse = j(l.options.ajaxResponse);
|
|
234
|
+
}
|
|
235
|
+
s = new De(d.value, o), a.value = s, i.value && Ee(a.value, v), a.value.on("dataLoading", oe), a.value.on("dataLoaded", ne), a.value.on("dataLoadError", se), a.value.on("tableBuilt", ue), a.value.on("pageLoaded", ie), a.value.on("rowSelected", re), a.value.on("rowDeselected", de), a.value.on("dataProcessed", ce), a.value.on("cellClick", ve), a.value.on("columnMoved", pe), a.value.on("renderStarted", fe), a.value.on("renderComplete", me), a.value.on("tableDestroyed", ge);
|
|
236
|
+
}, be = (e) => {
|
|
237
|
+
if (n.value || !f.value || !e || !a.value || Number(e) === a.value.getPageSize()) return;
|
|
238
|
+
const t = a.value.options.ajaxParams;
|
|
239
|
+
t && (t.per_page = Number(e)), a.value.options.paginationSize = Number(e), a.value.setPageSize(e);
|
|
240
|
+
}, he = () => {
|
|
241
|
+
if (n.value || !a.value) return;
|
|
242
|
+
const e = 640, t = a.value.options;
|
|
243
|
+
if (i.value) {
|
|
244
|
+
const o = t.ajaxParams?.per_page ?? t.paginationSize ?? a.value.getPageSize() ?? 10, s = Number(o);
|
|
245
|
+
if (!Number.isFinite(s) || s < 1)
|
|
246
|
+
return;
|
|
247
|
+
if (s >= e) {
|
|
248
|
+
x.value = l.paginationLimitText;
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
const p = Math.min(
|
|
252
|
+
s + s,
|
|
253
|
+
e
|
|
254
|
+
);
|
|
255
|
+
t.ajaxParams || (t.ajaxParams = {}), t.ajaxParams.per_page = p, t.paginationSize = p, a.value.setPageSize(p), p >= e && (x.value = l.paginationLimitText);
|
|
256
|
+
return;
|
|
257
|
+
} else {
|
|
258
|
+
const o = a.value.getPageSize();
|
|
259
|
+
if (typeof o == "number" && o < e) {
|
|
260
|
+
const s = o;
|
|
261
|
+
a.value.setPageSize(
|
|
262
|
+
Math.min(o + s, e)
|
|
263
|
+
);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
t.paginationSize >= e && (x.value = l.paginationLimitText);
|
|
267
|
+
}, ye = (e) => {
|
|
268
|
+
n.value || e === "" || !a.value || (a.value.showColumn(e), u("onShowColumn", a.value.getColumnLayout()));
|
|
269
|
+
}, xe = (e) => {
|
|
270
|
+
n.value || e === "" || !a.value || (a.value.hideColumn(e), u("onHideColumn", a.value.getColumnLayout()));
|
|
271
|
+
}, O = (e) => {
|
|
272
|
+
n.value || !a.value || (e.filter(({ visible: t }) => !t).length === e.length ? e.map(({ field: t }) => {
|
|
273
|
+
w(() => {
|
|
274
|
+
!n.value && a.value && a.value.showColumn(t);
|
|
275
|
+
});
|
|
276
|
+
}) : e.map(({ field: t, visible: o }) => {
|
|
277
|
+
!n.value && a.value && (o ? a.value.showColumn(t) : a.value.hideColumn(t));
|
|
278
|
+
}));
|
|
279
|
+
}, Se = () => {
|
|
280
|
+
w(() => {
|
|
281
|
+
if (n.value || !a.value || a.value.getPage() !== 1 || !l.paginationPage || l.paginationPage === a.value.getPage()) return !1;
|
|
282
|
+
a.value.setPage(l.paginationPage);
|
|
283
|
+
});
|
|
284
|
+
};
|
|
285
|
+
return Pe(() => {
|
|
286
|
+
_();
|
|
287
|
+
}), Re(() => {
|
|
288
|
+
n.value = !0, y.value && (y.value.disconnect(), y.value = null), ae();
|
|
289
|
+
}), c(
|
|
290
|
+
() => l.columnShow,
|
|
291
|
+
(e) => {
|
|
292
|
+
e && ye(e);
|
|
293
|
+
}
|
|
294
|
+
), c(
|
|
295
|
+
() => l.columnHide,
|
|
296
|
+
(e) => {
|
|
297
|
+
e && xe(e);
|
|
298
|
+
}
|
|
299
|
+
), c(
|
|
300
|
+
() => l.filters,
|
|
301
|
+
(e) => {
|
|
302
|
+
n.value || !a.value || a.value.setFilter(e);
|
|
303
|
+
},
|
|
304
|
+
{ deep: !0 }
|
|
305
|
+
), c(
|
|
306
|
+
() => l.tableData,
|
|
307
|
+
(e) => {
|
|
308
|
+
n.value || !a.value || i.value || a.value.setData(e);
|
|
309
|
+
},
|
|
310
|
+
{ deep: !1 }
|
|
311
|
+
), c(
|
|
312
|
+
() => l.options.ajaxResponse,
|
|
313
|
+
(e) => {
|
|
314
|
+
n.value || (a.value && e ? a.value.options.ajaxResponse = i.value ? j(e) : e : i.value && e && !a.value && w(() => {
|
|
315
|
+
n.value || !d.value || _();
|
|
316
|
+
}));
|
|
317
|
+
}
|
|
318
|
+
), c(
|
|
319
|
+
() => l.options,
|
|
320
|
+
(e) => {
|
|
321
|
+
n.value || i.value && e.ajaxResponse && !a.value && w(() => {
|
|
322
|
+
n.value || !d.value || _();
|
|
323
|
+
});
|
|
324
|
+
},
|
|
325
|
+
{ deep: !0 }
|
|
326
|
+
), c(Q, () => {
|
|
327
|
+
n.value || !a.value || a.value.deselectRow();
|
|
328
|
+
}), c(A, (e) => {
|
|
329
|
+
n.value || e <= 0 || !a.value || a.value.selectRow();
|
|
330
|
+
}), c(
|
|
331
|
+
() => l.options.columns,
|
|
332
|
+
(e) => {
|
|
333
|
+
n.value || !f.value || !a.value || !e || (!e.find(({ visible: t }) => t) && l.showAllColumnsIfAllHidden ? O(e) : a.value.setColumns(e));
|
|
334
|
+
},
|
|
335
|
+
{ deep: !0 }
|
|
336
|
+
), c(
|
|
337
|
+
() => l.selectedRowsStorage,
|
|
338
|
+
(e) => {
|
|
339
|
+
n.value || !e || (S.value = new Set(e));
|
|
340
|
+
},
|
|
341
|
+
{ deep: !0 }
|
|
342
|
+
), c(
|
|
343
|
+
f,
|
|
344
|
+
(e) => {
|
|
345
|
+
n.value || !e || (l.showAllColumnsIfAllHidden && O(l.options.columns || []), l.tableData.length > 0 && !i.value && a.value && a.value.setData(l.tableData));
|
|
346
|
+
},
|
|
347
|
+
{ deep: !0 }
|
|
348
|
+
), (e, t) => (T(), L("div", {
|
|
349
|
+
class: Le(["position-relative", {
|
|
350
|
+
"table-has-load-error": !!D.value || C.managedFailed,
|
|
351
|
+
"table-awaiting-first-page": C.managedLoading === void 0 ? P.value : b.value
|
|
352
|
+
}]),
|
|
353
|
+
style: { "min-height": "300px" }
|
|
354
|
+
}, [
|
|
355
|
+
z(m("p", He, [...t[2] || (t[2] = [
|
|
356
|
+
Te('<span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span>', 10)
|
|
357
|
+
])], 512), [
|
|
358
|
+
[B, b.value]
|
|
359
|
+
]),
|
|
360
|
+
z(m("div", {
|
|
361
|
+
ref_key: "tableRef",
|
|
362
|
+
ref: d
|
|
363
|
+
}, null, 512), [
|
|
364
|
+
[B, !b.value]
|
|
365
|
+
]),
|
|
366
|
+
D.value ? (T(), L("div", Ue, K(D.value), 1)) : V("", !0),
|
|
367
|
+
z(m("div", Oe, [
|
|
368
|
+
m("div", $e, [
|
|
369
|
+
Y("table-footer-left") ? (T(), L("div", Ge, [
|
|
370
|
+
Ne(e.$slots, "table-footer-left")
|
|
371
|
+
])) : V("", !0),
|
|
372
|
+
m("div", Ke, [
|
|
373
|
+
m("div", Je, [
|
|
374
|
+
m("div", {
|
|
375
|
+
class: "tabulator-footer-contents d-flex",
|
|
376
|
+
id: `tabulator-footer${q.value}`
|
|
377
|
+
}, [
|
|
378
|
+
m("button", {
|
|
379
|
+
class: "btn btn-primary me-3",
|
|
380
|
+
id: "loadMoreButton",
|
|
381
|
+
onClick: he,
|
|
382
|
+
disabled: b.value
|
|
383
|
+
}, [
|
|
384
|
+
Me(K(C.loadMoreText) + " ", 1),
|
|
385
|
+
t[3] || (t[3] = m("i", { class: "bi bi-plus-lg" }, null, -1)),
|
|
386
|
+
b.value ? (T(), L("div", Xe)) : V("", !0)
|
|
387
|
+
], 8, We),
|
|
388
|
+
G(Fe, {
|
|
389
|
+
class: "me-3",
|
|
390
|
+
style: { "min-width": "150px" },
|
|
391
|
+
modelValue: M.value,
|
|
392
|
+
"onUpdate:modelValue": [
|
|
393
|
+
t[0] || (t[0] = (o) => M.value = o),
|
|
394
|
+
t[1] || (t[1] = (o) => be(o))
|
|
395
|
+
],
|
|
396
|
+
allowClear: !1,
|
|
397
|
+
options: W.value,
|
|
398
|
+
dropDownPlacement: "top"
|
|
399
|
+
}, null, 8, ["modelValue", "options"])
|
|
400
|
+
], 8, Qe)
|
|
401
|
+
], 512)
|
|
402
|
+
])
|
|
403
|
+
])
|
|
404
|
+
], 512), [
|
|
405
|
+
[B, i.value]
|
|
406
|
+
]),
|
|
407
|
+
G(_e, {
|
|
408
|
+
message: x.value,
|
|
409
|
+
onClearMessage: Z
|
|
410
|
+
}, null, 8, ["message"])
|
|
411
|
+
], 2));
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
export {
|
|
415
|
+
ia as default
|
|
416
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { defineComponent as N, computed as v, toRef as b, createCommentVNode as O } from "vue";
|
|
2
|
+
import { getDeepCopyObject as f } from "../../utils/helpers.js";
|
|
3
|
+
const I = /* @__PURE__ */ N({
|
|
4
|
+
__name: "TableAppliedFiltersStorage",
|
|
5
|
+
props: {
|
|
6
|
+
tableName: {},
|
|
7
|
+
filters: {}
|
|
8
|
+
},
|
|
9
|
+
emits: ["update:filters"],
|
|
10
|
+
setup(u, { expose: c, emit: m }) {
|
|
11
|
+
const a = u, s = m, r = v(() => "default-page"), p = b(a, "filters");
|
|
12
|
+
function o() {
|
|
13
|
+
let e = localStorage.getItem("filters"), t = e ? JSON.parse(e) : {};
|
|
14
|
+
t = {
|
|
15
|
+
...f(t),
|
|
16
|
+
[r.value]: {
|
|
17
|
+
[a.tableName]: n(p.value)
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const l = JSON.stringify(t);
|
|
21
|
+
return localStorage.setItem("filters", l), e = localStorage.getItem("filters"), e ? JSON.parse(e) : {};
|
|
22
|
+
}
|
|
23
|
+
function g(e) {
|
|
24
|
+
return !(!e || !e[r.value] || !e[r.value][a.tableName]);
|
|
25
|
+
}
|
|
26
|
+
function S(e) {
|
|
27
|
+
const t = JSON.parse(e);
|
|
28
|
+
return g(t) ? (e = localStorage.getItem("filters") || "{}", JSON.parse(e)) : o();
|
|
29
|
+
}
|
|
30
|
+
function n(e) {
|
|
31
|
+
const t = {};
|
|
32
|
+
for (const [l, i] of Object.entries(e))
|
|
33
|
+
t[l] = f(i._value || i);
|
|
34
|
+
return t;
|
|
35
|
+
}
|
|
36
|
+
function d() {
|
|
37
|
+
let e = localStorage.getItem("filters");
|
|
38
|
+
if (!e)
|
|
39
|
+
return s("update:filters", {}), !1;
|
|
40
|
+
let t = S(e);
|
|
41
|
+
if (!t[r.value] || !t[r.value][a.tableName])
|
|
42
|
+
return s("update:filters", {}), !1;
|
|
43
|
+
const l = n(t[r.value][a.tableName]);
|
|
44
|
+
return s("update:filters", {
|
|
45
|
+
...l
|
|
46
|
+
}), !0;
|
|
47
|
+
}
|
|
48
|
+
return c({
|
|
49
|
+
getFilters: d,
|
|
50
|
+
saveFilters: o
|
|
51
|
+
}), (e, t) => O("", !0);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
export {
|
|
55
|
+
I as default
|
|
56
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent as r, createBlock as s, openBlock as a, mergeProps as m } from "vue";
|
|
2
|
+
import u from "./TableColumnsDialog.vue.js";
|
|
3
|
+
const d = /* @__PURE__ */ r({
|
|
4
|
+
__name: "TableColumnsButton",
|
|
5
|
+
props: {
|
|
6
|
+
columns: {},
|
|
7
|
+
applyColumns: {},
|
|
8
|
+
applyContext: {},
|
|
9
|
+
applyErrorText: { default: "Unable to apply column settings. Try again." },
|
|
10
|
+
title: { default: "Table Columns Settings" },
|
|
11
|
+
applyText: { default: "Apply" },
|
|
12
|
+
selectAllText: { default: "Select All" },
|
|
13
|
+
unselectAllText: { default: "Unselect All" }
|
|
14
|
+
},
|
|
15
|
+
emits: ["columns-changed", "apply", "apply-error"],
|
|
16
|
+
setup(n, { emit: p }) {
|
|
17
|
+
const o = n, t = p;
|
|
18
|
+
return (y, l) => (a(), s(u, m(o, {
|
|
19
|
+
onColumnsChanged: l[0] || (l[0] = (e) => t("columns-changed", e)),
|
|
20
|
+
onApply: l[1] || (l[1] = (e) => t("apply")),
|
|
21
|
+
onApplyError: l[2] || (l[2] = (e) => t("apply-error", e))
|
|
22
|
+
}), null, 16));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
d as default
|
|
27
|
+
};
|