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,50 @@
|
|
|
1
|
+
import { defineComponent as b, computed as v, createElementBlock as o, openBlock as a, createElementVNode as t, normalizeClass as k, createCommentVNode as _, normalizeStyle as r, unref as i, createVNode as g, renderSlot as d } from "vue";
|
|
2
|
+
import A from "../sidebar/Sidebar.vue.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { useMain as C } from "../../composables/main/useMain.js";
|
|
5
|
+
const $ = { class: "container-fluid p-0" }, x = {
|
|
6
|
+
class: "py-4",
|
|
7
|
+
style: { "min-height": "90vh" }
|
|
8
|
+
}, w = /* @__PURE__ */ b({
|
|
9
|
+
__name: "MainComponent",
|
|
10
|
+
props: {
|
|
11
|
+
sidebarLinks: { type: Array, required: !0 },
|
|
12
|
+
isAuthenticated: { type: Boolean, default: !1 }
|
|
13
|
+
},
|
|
14
|
+
emits: ["navigate"],
|
|
15
|
+
setup(l, { emit: c }) {
|
|
16
|
+
const e = l, p = c, { contentWidth: m, clientWidth: u, sidebarWidth: f, sidebarContentVisibility: h } = C(v(() => e.isAuthenticated));
|
|
17
|
+
return (n, s) => (a(), o("div", $, [
|
|
18
|
+
t("div", {
|
|
19
|
+
class: k(["d-flex", { "justify-content-center": !e.isAuthenticated }]),
|
|
20
|
+
ref_key: "clientWidth",
|
|
21
|
+
ref: u
|
|
22
|
+
}, [
|
|
23
|
+
e.isAuthenticated ? (a(), o("div", {
|
|
24
|
+
key: 0,
|
|
25
|
+
id: "sidebar",
|
|
26
|
+
class: "pt-3 sidebar px-0 hide-to-print",
|
|
27
|
+
style: r(`background: #efefef; transition: .2s; width:${i(f)}px;`)
|
|
28
|
+
}, [
|
|
29
|
+
g(A, {
|
|
30
|
+
links: e.sidebarLinks,
|
|
31
|
+
"is-collapsed": !i(h),
|
|
32
|
+
onNavigate: s[0] || (s[0] = (y) => p("navigate", y))
|
|
33
|
+
}, null, 8, ["links", "is-collapsed"])
|
|
34
|
+
], 4)) : _("", !0),
|
|
35
|
+
t("div", {
|
|
36
|
+
id: "content-div",
|
|
37
|
+
style: r(`transition: .2s; width:${i(m)}px;`)
|
|
38
|
+
}, [
|
|
39
|
+
t("div", x, [
|
|
40
|
+
d(n.$slots, "breadcrumbs"),
|
|
41
|
+
d(n.$slots, "default")
|
|
42
|
+
])
|
|
43
|
+
], 4)
|
|
44
|
+
], 2)
|
|
45
|
+
]));
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
w as default
|
|
50
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineComponent as d, createElementBlock as l, openBlock as s, createElementVNode as e, createCommentVNode as n, normalizeStyle as o, normalizeClass as i, toDisplayString as a, renderSlot as r } from "vue";
|
|
2
|
+
const u = {
|
|
3
|
+
class: "row mb-4 mx-0",
|
|
4
|
+
"data-test": "PageTitle"
|
|
5
|
+
}, c = { class: "col-12" }, m = { class: "row align-items-center" }, f = { class: "col-auto" }, p = { class: "col d-flex justify-content-end" }, h = /* @__PURE__ */ d({
|
|
6
|
+
__name: "PageTitle",
|
|
7
|
+
props: {
|
|
8
|
+
title: {},
|
|
9
|
+
subtitle: { default: "" },
|
|
10
|
+
titleClass: { default: "" },
|
|
11
|
+
subtitleClass: { default: "" },
|
|
12
|
+
titleStyle: { default: "" },
|
|
13
|
+
subtitleStyle: { default: "" }
|
|
14
|
+
},
|
|
15
|
+
setup(b) {
|
|
16
|
+
return (t, y) => (s(), l("div", u, [
|
|
17
|
+
e("div", c, [
|
|
18
|
+
e("div", m, [
|
|
19
|
+
e("div", f, [
|
|
20
|
+
e("h2", {
|
|
21
|
+
class: i(["mb-0", t.titleClass]),
|
|
22
|
+
style: o(t.titleStyle)
|
|
23
|
+
}, a(t.title), 7),
|
|
24
|
+
t.subtitle ? (s(), l("p", {
|
|
25
|
+
key: 0,
|
|
26
|
+
class: i(["text-muted mb-0 mt-1", t.subtitleClass]),
|
|
27
|
+
style: o(t.subtitleStyle)
|
|
28
|
+
}, a(t.subtitle), 7)) : n("", !0)
|
|
29
|
+
]),
|
|
30
|
+
e("div", p, [
|
|
31
|
+
r(t.$slots, "default", {}, void 0, !0)
|
|
32
|
+
])
|
|
33
|
+
])
|
|
34
|
+
])
|
|
35
|
+
]));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
h as default
|
|
40
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent as h, computed as o, createElementBlock as l, openBlock as r, normalizeClass as a, createElementVNode as m, createCommentVNode as f, normalizeStyle as s, toDisplayString as p } from "vue";
|
|
2
|
+
import x from "../../assets/img/regagro_logo.svg.js";
|
|
3
|
+
const y = ["src", "alt"], v = /* @__PURE__ */ h({
|
|
4
|
+
__name: "Logo",
|
|
5
|
+
props: {
|
|
6
|
+
src: { default: x },
|
|
7
|
+
alt: { default: "Logo" },
|
|
8
|
+
width: { default: 154 },
|
|
9
|
+
height: { default: 50 },
|
|
10
|
+
className: { default: "logo" },
|
|
11
|
+
style: { default: () => ({}) },
|
|
12
|
+
brandText: { default: void 0 },
|
|
13
|
+
textSize: { default: 12 },
|
|
14
|
+
textColor: { default: "#000" },
|
|
15
|
+
textWeight: { default: "normal" },
|
|
16
|
+
showText: { type: Boolean, default: !0 }
|
|
17
|
+
},
|
|
18
|
+
setup(n) {
|
|
19
|
+
const e = n, i = o(() => e.src?.startsWith("~/") ? e.src.replace("~/", "/") : e.src), u = o(() => {
|
|
20
|
+
const t = "r3ui-logo";
|
|
21
|
+
return e.className ? `${t} ${e.className}` : t;
|
|
22
|
+
}), c = o(() => ({
|
|
23
|
+
width: typeof e.width == "number" ? `${e.width}px` : e.width,
|
|
24
|
+
height: typeof e.height == "number" ? `${e.height}px` : e.height,
|
|
25
|
+
...e.style
|
|
26
|
+
})), d = o(() => "r3ui-logo-container"), g = o(() => ({
|
|
27
|
+
fontSize: typeof e.textSize == "number" ? `${e.textSize}px` : e.textSize,
|
|
28
|
+
color: e.textColor,
|
|
29
|
+
fontWeight: e.textWeight
|
|
30
|
+
}));
|
|
31
|
+
return (t, S) => (r(), l("div", {
|
|
32
|
+
class: a(["r3ui-logo-container", d.value])
|
|
33
|
+
}, [
|
|
34
|
+
m("img", {
|
|
35
|
+
src: i.value,
|
|
36
|
+
alt: t.alt,
|
|
37
|
+
class: a(u.value),
|
|
38
|
+
style: s(c.value)
|
|
39
|
+
}, null, 14, y),
|
|
40
|
+
t.brandText && t.brandText.trim() && t.showText ? (r(), l("span", {
|
|
41
|
+
key: 0,
|
|
42
|
+
class: "r3ui-logo-text",
|
|
43
|
+
style: s(g.value)
|
|
44
|
+
}, p(t.brandText), 5)) : f("", !0)
|
|
45
|
+
], 2));
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
v as default
|
|
50
|
+
};
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { defineComponent as _, createBlock as w, openBlock as o, withCtx as c, renderSlot as m, createElementBlock as t, createCommentVNode as n, createElementVNode as s, toDisplayString as l, normalizeClass as k, createTextVNode as v, unref as d } from "vue";
|
|
2
|
+
import B from "./DefaultModal.vue.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import C from "../../assets/img/confirmation.png.js";
|
|
5
|
+
import V from "../../assets/img/error.png.js";
|
|
6
|
+
import E from "../../assets/img/warning.png.js";
|
|
7
|
+
import T from "../../assets/img/success.png.js";
|
|
8
|
+
const z = { class: "row mb-3 flex-column mx-0" }, I = { class: "col-auto mb-3" }, S = {
|
|
9
|
+
class: "image-container",
|
|
10
|
+
style: { width: "90px", height: "90px" }
|
|
11
|
+
}, N = ["src", "alt"], $ = ["src"], A = ["src"], M = ["src"], D = ["src"], F = { class: "col" }, U = { class: "confirmation-content" }, j = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "mb-3"
|
|
14
|
+
}, q = {
|
|
15
|
+
key: 1,
|
|
16
|
+
class: "text-muted"
|
|
17
|
+
}, G = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "row"
|
|
20
|
+
}, H = { class: "col-auto" }, J = ["disabled"], K = { class: "col" }, L = ["disabled"], O = {
|
|
21
|
+
key: 0,
|
|
22
|
+
class: "spinner-border spinner-border-sm me-2",
|
|
23
|
+
role: "status"
|
|
24
|
+
}, ee = /* @__PURE__ */ _({
|
|
25
|
+
__name: "ConfirmationModal",
|
|
26
|
+
props: {
|
|
27
|
+
title: { default: "" },
|
|
28
|
+
message: { default: "" },
|
|
29
|
+
description: { default: "" },
|
|
30
|
+
modalVisibility: { type: Boolean, default: !1 },
|
|
31
|
+
size: { default: "" },
|
|
32
|
+
confirmText: { default: "Да" },
|
|
33
|
+
cancelText: { default: "Нет" },
|
|
34
|
+
imageSrc: { default: "" },
|
|
35
|
+
imageAlt: { default: "" },
|
|
36
|
+
loading: { type: Boolean, default: !1 },
|
|
37
|
+
mode: { default: "confirmation" },
|
|
38
|
+
showButtons: { type: Boolean, default: !0 }
|
|
39
|
+
},
|
|
40
|
+
emits: ["update:modalVisibility", "confirm", "cancel"],
|
|
41
|
+
setup(u, { emit: f }) {
|
|
42
|
+
const i = u, a = f, g = (e) => {
|
|
43
|
+
a("update:modalVisibility", e);
|
|
44
|
+
}, h = () => {
|
|
45
|
+
switch (i.mode) {
|
|
46
|
+
case "success":
|
|
47
|
+
return "btn btn-success";
|
|
48
|
+
case "warning":
|
|
49
|
+
return "btn btn-warning";
|
|
50
|
+
case "error":
|
|
51
|
+
return "btn btn-danger";
|
|
52
|
+
default:
|
|
53
|
+
return "btn btn-primary";
|
|
54
|
+
}
|
|
55
|
+
}, p = () => {
|
|
56
|
+
switch (i.mode) {
|
|
57
|
+
case "success":
|
|
58
|
+
return "Отлично";
|
|
59
|
+
case "warning":
|
|
60
|
+
return "Понятно";
|
|
61
|
+
case "error":
|
|
62
|
+
return "Понятно";
|
|
63
|
+
default:
|
|
64
|
+
return i.confirmText;
|
|
65
|
+
}
|
|
66
|
+
}, b = () => {
|
|
67
|
+
i.loading || a("confirm");
|
|
68
|
+
}, y = () => {
|
|
69
|
+
i.loading || (a("cancel"), a("update:modalVisibility", !1));
|
|
70
|
+
}, r = (e) => {
|
|
71
|
+
console.warn("Failed to load image:", e.target.src);
|
|
72
|
+
};
|
|
73
|
+
return (e, P) => (o(), w(B, {
|
|
74
|
+
"model-value": e.modalVisibility,
|
|
75
|
+
"onUpdate:modelValue": g,
|
|
76
|
+
size: e.size,
|
|
77
|
+
title: e.title
|
|
78
|
+
}, {
|
|
79
|
+
"modal-body": c(() => [
|
|
80
|
+
s("div", z, [
|
|
81
|
+
s("div", I, [
|
|
82
|
+
s("div", S, [
|
|
83
|
+
e.imageSrc ? (o(), t("img", {
|
|
84
|
+
key: 0,
|
|
85
|
+
class: "w-100",
|
|
86
|
+
src: e.imageSrc,
|
|
87
|
+
alt: e.imageAlt || "Изображение"
|
|
88
|
+
}, null, 8, N)) : e.mode === "success" ? (o(), t("img", {
|
|
89
|
+
key: 1,
|
|
90
|
+
class: "w-100",
|
|
91
|
+
src: d(T),
|
|
92
|
+
alt: "Успех",
|
|
93
|
+
onError: r
|
|
94
|
+
}, null, 40, $)) : e.mode === "warning" ? (o(), t("img", {
|
|
95
|
+
key: 2,
|
|
96
|
+
class: "w-100",
|
|
97
|
+
src: d(E),
|
|
98
|
+
alt: "Предупреждение",
|
|
99
|
+
onError: r
|
|
100
|
+
}, null, 40, A)) : e.mode === "error" ? (o(), t("img", {
|
|
101
|
+
key: 3,
|
|
102
|
+
class: "w-100",
|
|
103
|
+
src: d(V),
|
|
104
|
+
alt: "Ошибка",
|
|
105
|
+
onError: r
|
|
106
|
+
}, null, 40, M)) : (o(), t("img", {
|
|
107
|
+
key: 4,
|
|
108
|
+
class: "w-100",
|
|
109
|
+
src: d(C),
|
|
110
|
+
alt: "Подтверждение",
|
|
111
|
+
onError: r
|
|
112
|
+
}, null, 40, D))
|
|
113
|
+
])
|
|
114
|
+
]),
|
|
115
|
+
s("div", F, [
|
|
116
|
+
s("div", U, [
|
|
117
|
+
e.message ? (o(), t("h5", j, l(e.message), 1)) : n("", !0),
|
|
118
|
+
e.description ? (o(), t("p", q, l(e.description), 1)) : n("", !0)
|
|
119
|
+
])
|
|
120
|
+
])
|
|
121
|
+
]),
|
|
122
|
+
m(e.$slots, "modal-body", {}, void 0, !0)
|
|
123
|
+
]),
|
|
124
|
+
"modal-footer": c(() => [
|
|
125
|
+
m(e.$slots, "modal-footer", {}, () => [
|
|
126
|
+
e.showButtons ? (o(), t("div", G, [
|
|
127
|
+
s("div", H, [
|
|
128
|
+
e.mode === "confirmation" ? (o(), t("button", {
|
|
129
|
+
key: 0,
|
|
130
|
+
class: "btn btn-light",
|
|
131
|
+
onClick: y,
|
|
132
|
+
disabled: e.loading
|
|
133
|
+
}, l(e.cancelText), 9, J)) : n("", !0)
|
|
134
|
+
]),
|
|
135
|
+
s("div", K, [
|
|
136
|
+
s("button", {
|
|
137
|
+
class: k([h(), "w-100"]),
|
|
138
|
+
onClick: b,
|
|
139
|
+
disabled: e.loading
|
|
140
|
+
}, [
|
|
141
|
+
e.loading ? (o(), t("span", O)) : n("", !0),
|
|
142
|
+
v(" " + l(p()), 1)
|
|
143
|
+
], 10, L)
|
|
144
|
+
])
|
|
145
|
+
])) : n("", !0)
|
|
146
|
+
], !0)
|
|
147
|
+
]),
|
|
148
|
+
_: 3
|
|
149
|
+
}, 8, ["model-value", "size", "title"]));
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
export {
|
|
153
|
+
ee as default
|
|
154
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { defineComponent as v, useSlots as h, computed as B, ref as b, useId as S, createBlock as z, openBlock as o, Teleport as M, createElementBlock as s, createCommentVNode as i, normalizeClass as g, createElementVNode as l, unref as t, normalizeStyle as C, toDisplayString as $, renderSlot as n } from "vue";
|
|
2
|
+
import { useModalLayer as w } from "../../composables/modals/useModalLayer.js";
|
|
3
|
+
const D = ["aria-labelledby"], E = { class: "modal-header pb-4 border-bottom-0" }, I = ["id"], N = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "modal-body pt-0"
|
|
6
|
+
}, R = { class: "modal-body-content" }, j = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "modal-footer row justify-content-start"
|
|
9
|
+
}, x = { class: "modal-footer-content" }, p = /* @__PURE__ */ v({
|
|
10
|
+
__name: "DefaultModal",
|
|
11
|
+
props: {
|
|
12
|
+
modelValue: {
|
|
13
|
+
// for v-model
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: !1
|
|
16
|
+
},
|
|
17
|
+
title: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: ""
|
|
20
|
+
},
|
|
21
|
+
scrollable: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: !0
|
|
24
|
+
},
|
|
25
|
+
centered: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !0
|
|
28
|
+
},
|
|
29
|
+
size: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: ""
|
|
32
|
+
// sm, lg, xl
|
|
33
|
+
},
|
|
34
|
+
/** На весь вьюпорт: ширина/высота 100%, тело с прокруткой. */
|
|
35
|
+
fullscreen: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !1
|
|
38
|
+
},
|
|
39
|
+
style: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: ""
|
|
42
|
+
},
|
|
43
|
+
// Дополнительные пропсы для совместимости
|
|
44
|
+
modalVisibility: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: !1
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
emits: ["update:modelValue", "emitModalVisibility"],
|
|
50
|
+
setup(e, { emit: V }) {
|
|
51
|
+
const c = e, m = V, a = h(), r = () => {
|
|
52
|
+
m("update:modelValue", !1), m("emitModalVisibility", !1);
|
|
53
|
+
}, k = B(() => c.modelValue || c.modalVisibility), u = b(null), f = b(null), y = S();
|
|
54
|
+
return w(k, u, f, r), (d, L) => (o(), z(M, { to: "body" }, [
|
|
55
|
+
e.modelValue || e.modalVisibility ? (o(), s("div", {
|
|
56
|
+
key: 0,
|
|
57
|
+
ref_key: "layerRoot",
|
|
58
|
+
ref: u,
|
|
59
|
+
class: g(["r3ui-modal-wrapper", { "r3ui-modal-wrapper--fullscreen": e.fullscreen }])
|
|
60
|
+
}, [
|
|
61
|
+
l("div", {
|
|
62
|
+
class: "overlay",
|
|
63
|
+
onClick: r
|
|
64
|
+
}),
|
|
65
|
+
l("div", {
|
|
66
|
+
ref_key: "dialog",
|
|
67
|
+
ref: f,
|
|
68
|
+
role: "dialog",
|
|
69
|
+
tabindex: "-1",
|
|
70
|
+
"aria-labelledby": e.title ? t(y) : void 0,
|
|
71
|
+
class: g(["modal-dialog", {
|
|
72
|
+
"modal-dialog-scrollable": e.scrollable,
|
|
73
|
+
"modal-dialog-centered": e.centered && !e.fullscreen,
|
|
74
|
+
"modal-sm": e.size === "sm" && !e.fullscreen,
|
|
75
|
+
"modal-lg": e.size === "lg" && !e.fullscreen,
|
|
76
|
+
"modal-xl": e.size === "xl" && !e.fullscreen
|
|
77
|
+
}])
|
|
78
|
+
}, [
|
|
79
|
+
l("div", {
|
|
80
|
+
class: "modal-content p-4",
|
|
81
|
+
style: C(e.style)
|
|
82
|
+
}, [
|
|
83
|
+
l("div", E, [
|
|
84
|
+
e.title ? (o(), s("h4", {
|
|
85
|
+
key: 0,
|
|
86
|
+
id: t(y),
|
|
87
|
+
class: "modal-title"
|
|
88
|
+
}, $(e.title), 9, I)) : i("", !0),
|
|
89
|
+
l("button", {
|
|
90
|
+
type: "button",
|
|
91
|
+
class: "btn-close",
|
|
92
|
+
"aria-label": "Закрыть",
|
|
93
|
+
onClick: r
|
|
94
|
+
})
|
|
95
|
+
]),
|
|
96
|
+
t(a)["modal-body"] || t(a).body ? (o(), s("div", N, [
|
|
97
|
+
l("div", R, [
|
|
98
|
+
n(d.$slots, "modal-body"),
|
|
99
|
+
n(d.$slots, "body")
|
|
100
|
+
])
|
|
101
|
+
])) : i("", !0),
|
|
102
|
+
t(a)["modal-footer"] || t(a).footer ? (o(), s("div", j, [
|
|
103
|
+
l("div", x, [
|
|
104
|
+
n(d.$slots, "modal-footer"),
|
|
105
|
+
n(d.$slots, "footer")
|
|
106
|
+
])
|
|
107
|
+
])) : i("", !0)
|
|
108
|
+
], 4)
|
|
109
|
+
], 10, D)
|
|
110
|
+
], 2)) : i("", !0)
|
|
111
|
+
]));
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
export {
|
|
115
|
+
p as default
|
|
116
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent as s, createElementBlock as d, createCommentVNode as a, openBlock as n, createElementVNode as o, toDisplayString as m, renderSlot as i } from "vue";
|
|
2
|
+
const r = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "px-0"
|
|
5
|
+
}, c = { class: "modal-dialog modal-dialog-centered modal-xl" }, p = { class: "modal-content py-2 px-4" }, b = { class: "modal-header mb-3" }, y = { class: "modal-title" }, _ = { class: "modal-body row" }, u = { class: "modal-footer border-0 row justify-content-start pt-0 pb-3" }, h = /* @__PURE__ */ s({
|
|
6
|
+
__name: "EditTableColumnsModalComponent",
|
|
7
|
+
props: {
|
|
8
|
+
title: { default: "" },
|
|
9
|
+
modalVisibility: { type: Boolean, default: !1 }
|
|
10
|
+
},
|
|
11
|
+
emits: ["emitModalVisibility"],
|
|
12
|
+
setup(f, { emit: v }) {
|
|
13
|
+
return (t, e) => t.modalVisibility ? (n(), d("div", r, [
|
|
14
|
+
o("div", {
|
|
15
|
+
class: "overlay",
|
|
16
|
+
onClick: e[0] || (e[0] = (l) => t.$emit("emitModalVisibility", !1))
|
|
17
|
+
}),
|
|
18
|
+
o("div", c, [
|
|
19
|
+
o("div", p, [
|
|
20
|
+
o("div", b, [
|
|
21
|
+
o("h3", y, m(t.title), 1),
|
|
22
|
+
o("button", {
|
|
23
|
+
type: "button",
|
|
24
|
+
class: "btn-close",
|
|
25
|
+
onClick: e[1] || (e[1] = (l) => t.$emit("emitModalVisibility", !1))
|
|
26
|
+
})
|
|
27
|
+
]),
|
|
28
|
+
o("div", _, [
|
|
29
|
+
i(t.$slots, "modal-body", {}, void 0, !0)
|
|
30
|
+
]),
|
|
31
|
+
o("div", u, [
|
|
32
|
+
i(t.$slots, "modal-footer", {}, void 0, !0)
|
|
33
|
+
])
|
|
34
|
+
])
|
|
35
|
+
])
|
|
36
|
+
])) : a("", !0);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
h as default
|
|
41
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent as u, ref as d, useId as _, computed as v, createBlock as h, openBlock as l, Teleport as k, createElementBlock as r, createCommentVNode as n, createElementVNode as e, unref as c, toDisplayString as V, renderSlot as m } from "vue";
|
|
2
|
+
import { useModalLayer as g } from "../../composables/modals/useModalLayer.js";
|
|
3
|
+
const C = ["aria-labelledby"], M = { class: "filter-modal-content" }, B = { class: "filter-modal-header" }, E = ["id"], I = { class: "filter-modal-body" }, N = { class: "filter-modal-footer" }, $ = /* @__PURE__ */ u({
|
|
4
|
+
__name: "TableFilterModalComponent",
|
|
5
|
+
props: {
|
|
6
|
+
title: { default: "" },
|
|
7
|
+
modalVisibility: { type: Boolean, default: !1 }
|
|
8
|
+
},
|
|
9
|
+
emits: ["emitModalVisibility"],
|
|
10
|
+
setup(f, { emit: y }) {
|
|
11
|
+
const b = f, p = y, t = () => {
|
|
12
|
+
p("emitModalVisibility", !1);
|
|
13
|
+
}, i = d(null), a = d(null), s = _();
|
|
14
|
+
return g(
|
|
15
|
+
v(() => b.modalVisibility),
|
|
16
|
+
i,
|
|
17
|
+
a,
|
|
18
|
+
t
|
|
19
|
+
), (o, R) => (l(), h(k, { to: "body" }, [
|
|
20
|
+
o.modalVisibility ? (l(), r("div", {
|
|
21
|
+
key: 0,
|
|
22
|
+
ref_key: "layerRoot",
|
|
23
|
+
ref: i,
|
|
24
|
+
class: "filter-modal-wrapper"
|
|
25
|
+
}, [
|
|
26
|
+
e("div", {
|
|
27
|
+
class: "filter-modal-overlay",
|
|
28
|
+
onClick: t
|
|
29
|
+
}),
|
|
30
|
+
e("div", {
|
|
31
|
+
ref_key: "dialog",
|
|
32
|
+
ref: a,
|
|
33
|
+
class: "filter-modal-dialog",
|
|
34
|
+
role: "dialog",
|
|
35
|
+
tabindex: "-1",
|
|
36
|
+
"aria-labelledby": o.title ? c(s) : void 0
|
|
37
|
+
}, [
|
|
38
|
+
e("div", M, [
|
|
39
|
+
e("div", B, [
|
|
40
|
+
o.title ? (l(), r("h4", {
|
|
41
|
+
key: 0,
|
|
42
|
+
id: c(s),
|
|
43
|
+
class: "filter-modal-title"
|
|
44
|
+
}, V(o.title), 9, E)) : n("", !0),
|
|
45
|
+
e("button", {
|
|
46
|
+
type: "button",
|
|
47
|
+
class: "btn-close",
|
|
48
|
+
"aria-label": "Закрыть",
|
|
49
|
+
onClick: t
|
|
50
|
+
})
|
|
51
|
+
]),
|
|
52
|
+
e("div", I, [
|
|
53
|
+
m(o.$slots, "modal-body", {}, void 0, !0)
|
|
54
|
+
]),
|
|
55
|
+
e("div", N, [
|
|
56
|
+
m(o.$slots, "modal-footer", {}, void 0, !0)
|
|
57
|
+
])
|
|
58
|
+
])
|
|
59
|
+
], 8, C)
|
|
60
|
+
], 512)) : n("", !0)
|
|
61
|
+
]));
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
export {
|
|
65
|
+
$ as default
|
|
66
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { defineComponent as h, ref as c, computed as E, createElementBlock as L, openBlock as S, Fragment as T, createVNode as o, unref as V, withCtx as b, renderSlot as v, createElementVNode as a } from "vue";
|
|
2
|
+
import C from "../form/FormError.vue.js";
|
|
3
|
+
import n from "../DefaultButton.vue.js";
|
|
4
|
+
import R from "./TableFilterModalComponent.vue.js";
|
|
5
|
+
import { useR3uiTableDefaultInject as $ } from "../../composables/table/useR3uiTableDefaultInject.js";
|
|
6
|
+
const k = { class: "row" }, B = { class: "col-auto" }, j = { class: "col-auto ps-0" }, N = /* @__PURE__ */ h({
|
|
7
|
+
__name: "TableFilterModalShell",
|
|
8
|
+
props: {
|
|
9
|
+
validationErrorMessage: {},
|
|
10
|
+
filterLabel: { default: "Filters" },
|
|
11
|
+
applyLabel: { default: "Apply" },
|
|
12
|
+
resetLabel: { default: "Reset" },
|
|
13
|
+
modalTitle: { default: "Filters" }
|
|
14
|
+
},
|
|
15
|
+
emits: ["reset"],
|
|
16
|
+
setup(y, { emit: g }) {
|
|
17
|
+
const t = y, { filterModalVisibility: r, applyFilters: _, resetFilters: F, table: s } = $(), M = g;
|
|
18
|
+
function u() {
|
|
19
|
+
i.value = "", F?.(), M("reset");
|
|
20
|
+
}
|
|
21
|
+
const d = c(), i = c(""), p = E(
|
|
22
|
+
() => i.value ? t.validationErrorMessage || i.value : ""
|
|
23
|
+
);
|
|
24
|
+
function m() {
|
|
25
|
+
const e = d.value?.querySelector("input:invalid");
|
|
26
|
+
if (e) {
|
|
27
|
+
i.value = e.validationMessage, e.getClientRects().length && e.reportValidity();
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
i.value = "";
|
|
31
|
+
const l = s?.value !== void 0 ? s.value : s;
|
|
32
|
+
return _?.(l);
|
|
33
|
+
}
|
|
34
|
+
return (e, l) => (S(), L(T, null, [
|
|
35
|
+
o(n, {
|
|
36
|
+
styles: "light",
|
|
37
|
+
label: t.filterLabel,
|
|
38
|
+
icon: "sliders2",
|
|
39
|
+
"icon-position": "right",
|
|
40
|
+
onSubmit: l[0] || (l[0] = (f) => r.value = !0)
|
|
41
|
+
}, null, 8, ["label"]),
|
|
42
|
+
o(R, {
|
|
43
|
+
title: t.modalTitle,
|
|
44
|
+
"modal-visibility": V(r),
|
|
45
|
+
onEmitModalVisibility: l[1] || (l[1] = (f) => r.value = f)
|
|
46
|
+
}, {
|
|
47
|
+
"modal-body": b(() => [
|
|
48
|
+
a("div", {
|
|
49
|
+
ref_key: "fields",
|
|
50
|
+
ref: d
|
|
51
|
+
}, [
|
|
52
|
+
v(e.$slots, "fields")
|
|
53
|
+
], 512)
|
|
54
|
+
]),
|
|
55
|
+
"modal-footer": b(() => [
|
|
56
|
+
o(C, {
|
|
57
|
+
errors: p.value ? [p.value] : []
|
|
58
|
+
}, null, 8, ["errors"]),
|
|
59
|
+
v(e.$slots, "footer", {
|
|
60
|
+
reset: u,
|
|
61
|
+
apply: m
|
|
62
|
+
}, () => [
|
|
63
|
+
a("div", k, [
|
|
64
|
+
a("div", B, [
|
|
65
|
+
o(n, {
|
|
66
|
+
label: t.applyLabel,
|
|
67
|
+
onSubmit: m
|
|
68
|
+
}, null, 8, ["label"])
|
|
69
|
+
]),
|
|
70
|
+
a("div", j, [
|
|
71
|
+
o(n, {
|
|
72
|
+
styles: "light",
|
|
73
|
+
label: t.resetLabel,
|
|
74
|
+
icon: "x-lg",
|
|
75
|
+
"icon-position": "right",
|
|
76
|
+
onSubmit: u
|
|
77
|
+
}, null, 8, ["label"])
|
|
78
|
+
])
|
|
79
|
+
])
|
|
80
|
+
])
|
|
81
|
+
]),
|
|
82
|
+
_: 3
|
|
83
|
+
}, 8, ["title", "modal-visibility"])
|
|
84
|
+
], 64));
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
export {
|
|
88
|
+
N as default
|
|
89
|
+
};
|