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,21 @@
|
|
|
1
|
+
const l = Symbol(
|
|
2
|
+
"r3uiTableDefaultApi"
|
|
3
|
+
), e = Symbol("setFilterParamsStrings"), t = Symbol("selectedFilterTitles"), s = Symbol("tableFilters"), o = Symbol("filterModalVisibility"), i = Symbol("resetFilters"), b = Symbol("applyFilters"), n = Symbol("editTableColumnsModalVisibility"), y = Symbol("tableOptions"), a = Symbol("editTableColumnVisibility"), m = Symbol("isTableCoumnsHidden"), c = Symbol("unselectAllTableColumnCheckboxes"), r = Symbol("selectAllTableColumnCheckboxes"), d = Symbol("handleColumnsChanged"), u = Symbol("handleColumnsApply"), C = Symbol("table");
|
|
4
|
+
export {
|
|
5
|
+
b as applyFiltersKey,
|
|
6
|
+
a as editTableColumnVisibilityKey,
|
|
7
|
+
n as editTableColumnsModalVisibilityKey,
|
|
8
|
+
o as filterModalVisibilityKey,
|
|
9
|
+
u as handleColumnsApplyKey,
|
|
10
|
+
d as handleColumnsChangedKey,
|
|
11
|
+
m as isTableCoumnsHiddenKey,
|
|
12
|
+
l as r3uiTableDefaultApiKey,
|
|
13
|
+
i as resetFiltersKey,
|
|
14
|
+
r as selectAllTableColumnCheckboxesKey,
|
|
15
|
+
t as selectedFilterTitlesKey,
|
|
16
|
+
e as setFilterParamsStringsKey,
|
|
17
|
+
s as tableFiltersRefKey,
|
|
18
|
+
y as tableOptionsKey,
|
|
19
|
+
C as tableRefKey,
|
|
20
|
+
c as unselectAllTableColumnCheckboxesKey
|
|
21
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const r = [
|
|
2
|
+
"setColumns",
|
|
3
|
+
"setHeaderFilterValue",
|
|
4
|
+
"setSort",
|
|
5
|
+
"getPage",
|
|
6
|
+
"getPageSize",
|
|
7
|
+
"getHeaderFilters",
|
|
8
|
+
"getSorters",
|
|
9
|
+
"getColumnLayout",
|
|
10
|
+
"replaceData",
|
|
11
|
+
"setPage"
|
|
12
|
+
], s = [
|
|
13
|
+
"getFilters",
|
|
14
|
+
"getAjaxUrl",
|
|
15
|
+
"getSelectedData",
|
|
16
|
+
"selectRow",
|
|
17
|
+
"deselectRow",
|
|
18
|
+
"hideColumn",
|
|
19
|
+
"showColumn"
|
|
20
|
+
];
|
|
21
|
+
function n(t) {
|
|
22
|
+
if (!t || typeof t != "object" || Array.isArray(t))
|
|
23
|
+
throw new TypeError("Некорректный экземпляр таблицы");
|
|
24
|
+
const e = t;
|
|
25
|
+
if (!e.options || typeof e.options != "object" || Array.isArray(e.options) || r.some((o) => typeof e[o] != "function") || s.some(
|
|
26
|
+
(o) => e[o] !== void 0 && typeof e[o] != "function"
|
|
27
|
+
))
|
|
28
|
+
throw new TypeError("Некорректный экземпляр таблицы");
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
n as assertR3uiTableInstance
|
|
32
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const o = {
|
|
2
|
+
expandAll: "accordion.expand_all",
|
|
3
|
+
collapseAll: "accordion.collapse_all"
|
|
4
|
+
};
|
|
5
|
+
function a(l) {
|
|
6
|
+
return {
|
|
7
|
+
expandText: l(o.expandAll),
|
|
8
|
+
collapseText: l(o.collapseAll)
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
o as ACCORDION_LOCALIZATION_KEYS,
|
|
13
|
+
a as getAccordionLocalization
|
|
14
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const r = {
|
|
2
|
+
country: "country",
|
|
3
|
+
region: "region",
|
|
4
|
+
district: "district",
|
|
5
|
+
locality: "locality",
|
|
6
|
+
street: "street",
|
|
7
|
+
house: "house",
|
|
8
|
+
building: "building",
|
|
9
|
+
apartment: "apartment"
|
|
10
|
+
};
|
|
11
|
+
function t(e) {
|
|
12
|
+
return {
|
|
13
|
+
emptyLabel: e("table_pagination.no_data"),
|
|
14
|
+
errorLabel: e("pages.errors.unexpected"),
|
|
15
|
+
retryLabel: e("pages.retry"),
|
|
16
|
+
countryLabel: e(r.country),
|
|
17
|
+
regionLabel: e(r.region),
|
|
18
|
+
districtLabel: e(r.district),
|
|
19
|
+
localityLabel: e(r.locality),
|
|
20
|
+
streetLabel: e(r.street),
|
|
21
|
+
houseLabel: e(r.house),
|
|
22
|
+
buildingLabel: e(r.building),
|
|
23
|
+
apartmentLabel: e(r.apartment)
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
r as ADDRESS_FORM_TRANSLATIONS,
|
|
28
|
+
t as getAddressFormLabels
|
|
29
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { publicHttpMessage as i, statusFromUnknown as a } from "../upstreamHttpStatus.js";
|
|
2
|
+
function o(r, t) {
|
|
3
|
+
if (typeof r != "function")
|
|
4
|
+
throw new Error(`exchangePasswordToken: deps.${t} обязателен`);
|
|
5
|
+
}
|
|
6
|
+
function n(r, t, e) {
|
|
7
|
+
throw r({ statusCode: t, statusMessage: e });
|
|
8
|
+
}
|
|
9
|
+
async function l(r) {
|
|
10
|
+
if (!r)
|
|
11
|
+
throw new Error("exchangePasswordToken: deps обязателен");
|
|
12
|
+
o(r.readBody, "readBody"), o(r.fetchToken, "fetchToken"), o(r.createError, "createError");
|
|
13
|
+
const t = await r.readBody(r.event);
|
|
14
|
+
(!t || typeof t != "object" || Array.isArray(t)) && n(r.createError, 400, "Request body must be an object."), (typeof r.tokenUrl != "string" || r.tokenUrl.length === 0) && n(
|
|
15
|
+
r.createError,
|
|
16
|
+
500,
|
|
17
|
+
"Internal Server Error: OAuth token URL is missing."
|
|
18
|
+
), (typeof r.clientId != "string" || r.clientId.length === 0) && n(
|
|
19
|
+
r.createError,
|
|
20
|
+
500,
|
|
21
|
+
"Internal Server Error: OAuth client_id is missing."
|
|
22
|
+
), (typeof r.clientSecret != "string" || r.clientSecret.length === 0) && n(
|
|
23
|
+
r.createError,
|
|
24
|
+
500,
|
|
25
|
+
"Internal Server Error: OAuth client_secret is missing."
|
|
26
|
+
);
|
|
27
|
+
try {
|
|
28
|
+
const e = await r.fetchToken(r.tokenUrl, {
|
|
29
|
+
method: "POST",
|
|
30
|
+
body: {
|
|
31
|
+
...t,
|
|
32
|
+
grant_type: "password",
|
|
33
|
+
scope: "*",
|
|
34
|
+
client_id: r.clientId,
|
|
35
|
+
client_secret: r.clientSecret
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
if (typeof e == "string")
|
|
39
|
+
try {
|
|
40
|
+
return JSON.parse(e);
|
|
41
|
+
} catch {
|
|
42
|
+
n(r.createError, 502, i(502));
|
|
43
|
+
}
|
|
44
|
+
return e;
|
|
45
|
+
} catch (e) {
|
|
46
|
+
const c = a(e, 500);
|
|
47
|
+
n(r.createError, c, i(c));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
l as exchangePasswordToken
|
|
52
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { getAuthCookieOptions as b } from "../authCookie.js";
|
|
2
|
+
import { statusFromUnknown as v, publicHttpMessage as _ } from "../upstreamHttpStatus.js";
|
|
3
|
+
function n(e, o) {
|
|
4
|
+
if (typeof e != "function")
|
|
5
|
+
throw new Error(`handlePkceCallback: deps.${o} обязателен`);
|
|
6
|
+
}
|
|
7
|
+
function t(e, o, i, r) {
|
|
8
|
+
throw e({
|
|
9
|
+
statusCode: o,
|
|
10
|
+
statusMessage: i,
|
|
11
|
+
...r !== void 0 ? { cause: r } : {}
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function a(e) {
|
|
15
|
+
if (!(typeof e != "string" || e.length === 0))
|
|
16
|
+
return e;
|
|
17
|
+
}
|
|
18
|
+
function y(e) {
|
|
19
|
+
return !!e && typeof e == "object" && !Array.isArray(e);
|
|
20
|
+
}
|
|
21
|
+
async function w(e) {
|
|
22
|
+
if (!e)
|
|
23
|
+
throw new Error("handlePkceCallback: deps обязателен");
|
|
24
|
+
if (n(e.getQuery, "getQuery"), n(e.getCookie, "getCookie"), n(e.setCookie, "setCookie"), n(e.deleteCookie, "deleteCookie"), n(e.createError, "createError"), n(e.sendRedirect, "sendRedirect"), n(e.fetchToken, "fetchToken"), !y(e.publicConfig))
|
|
25
|
+
throw new Error("handlePkceCallback: deps.publicConfig обязателен");
|
|
26
|
+
const o = e.publicConfig.authApiUrl, i = e.publicConfig.ssoClientId, r = e.publicConfig.origin;
|
|
27
|
+
(typeof o != "string" || o.length === 0) && t(
|
|
28
|
+
e.createError,
|
|
29
|
+
500,
|
|
30
|
+
"Internal Server Error: Could not exchange code for token."
|
|
31
|
+
), (typeof i != "string" || i.length === 0) && t(
|
|
32
|
+
e.createError,
|
|
33
|
+
500,
|
|
34
|
+
"Internal Server Error: Could not exchange code for token."
|
|
35
|
+
), (typeof r != "string" || r.length === 0) && t(
|
|
36
|
+
e.createError,
|
|
37
|
+
500,
|
|
38
|
+
"Internal Server Error: Could not exchange code for token."
|
|
39
|
+
);
|
|
40
|
+
const f = e.getQuery(e.event);
|
|
41
|
+
y(f) || t(
|
|
42
|
+
e.createError,
|
|
43
|
+
500,
|
|
44
|
+
"Internal Server Error: Could not exchange code for token."
|
|
45
|
+
);
|
|
46
|
+
const k = a(f.code), u = a(f.state), h = a(e.getCookie(e.event, "pkce_state")), g = a(e.getCookie(e.event, "pkce_verifier"));
|
|
47
|
+
k || t(e.createError, 400, "Authorization code is missing."), (!u || !h || u !== h) && t(e.createError, 400, "OAuth state is invalid."), g || t(e.createError, 400, "PKCE code_verifier is missing.");
|
|
48
|
+
const E = b({
|
|
49
|
+
origin: r,
|
|
50
|
+
authCookieDomain: e.publicConfig.authCookieDomain,
|
|
51
|
+
httpOnly: !1
|
|
52
|
+
});
|
|
53
|
+
let c;
|
|
54
|
+
try {
|
|
55
|
+
c = await e.fetchToken(`${o}/oauth/token`, {
|
|
56
|
+
method: "POST",
|
|
57
|
+
body: {
|
|
58
|
+
grant_type: "authorization_code",
|
|
59
|
+
client_id: i,
|
|
60
|
+
redirect_uri: `${r}/api/auth/callback`,
|
|
61
|
+
code: k,
|
|
62
|
+
code_verifier: g
|
|
63
|
+
},
|
|
64
|
+
headers: {
|
|
65
|
+
Accept: "application/json"
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
} catch (C) {
|
|
69
|
+
const s = v(C, 500);
|
|
70
|
+
t(
|
|
71
|
+
e.createError,
|
|
72
|
+
s,
|
|
73
|
+
_(s),
|
|
74
|
+
C
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
const l = c && typeof c == "object" && "access_token" in c ? c.access_token : void 0;
|
|
78
|
+
return (typeof l != "string" || l.length === 0) && t(
|
|
79
|
+
e.createError,
|
|
80
|
+
500,
|
|
81
|
+
"Internal Server Error: Could not exchange code for token."
|
|
82
|
+
), e.setCookie(e.event, "auth_token", l, {
|
|
83
|
+
...E
|
|
84
|
+
}), e.deleteCookie(e.event, "pkce_verifier"), e.deleteCookie(e.event, "pkce_state"), e.sendRedirect(e.event, "/");
|
|
85
|
+
}
|
|
86
|
+
export {
|
|
87
|
+
w as handlePkceCallback
|
|
88
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
async function g(c) {
|
|
2
|
+
const {
|
|
3
|
+
logOutSSO: t,
|
|
4
|
+
nextTick: a,
|
|
5
|
+
navigateTo: u,
|
|
6
|
+
redirect: r,
|
|
7
|
+
onReset: n,
|
|
8
|
+
redirectPath: e = "/login",
|
|
9
|
+
onError: i
|
|
10
|
+
} = c;
|
|
11
|
+
if (typeof i != "function")
|
|
12
|
+
throw new Error("runLogoutFlow: onError обязателен");
|
|
13
|
+
const f = typeof t == "function" ? t : async () => {
|
|
14
|
+
};
|
|
15
|
+
try {
|
|
16
|
+
await f();
|
|
17
|
+
} catch (o) {
|
|
18
|
+
i(o);
|
|
19
|
+
} finally {
|
|
20
|
+
const o = r ?? u;
|
|
21
|
+
if (r) {
|
|
22
|
+
n(), o(e);
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
await a(() => {
|
|
26
|
+
n(), o(e);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
g as runLogoutFlow
|
|
32
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { getAuthCookieOptions as c } from "../authCookie.js";
|
|
2
|
+
import { statusFromUnknown as l, publicHttpMessage as f } from "../upstreamHttpStatus.js";
|
|
3
|
+
function n(o, e) {
|
|
4
|
+
if (typeof o != "function")
|
|
5
|
+
throw new Error(`runLogoutHandler: deps.${e} обязателен`);
|
|
6
|
+
}
|
|
7
|
+
function u(o, e, a, t) {
|
|
8
|
+
throw o({
|
|
9
|
+
statusCode: e,
|
|
10
|
+
statusMessage: a,
|
|
11
|
+
...t !== void 0 ? { cause: t } : {}
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function g(o) {
|
|
15
|
+
return !!o && typeof o == "object" && !Array.isArray(o);
|
|
16
|
+
}
|
|
17
|
+
async function k(o) {
|
|
18
|
+
if (!o)
|
|
19
|
+
throw new Error("runLogoutHandler: deps обязателен");
|
|
20
|
+
if (n(o.getCookie, "getCookie"), n(o.deleteCookie, "deleteCookie"), n(o.createError, "createError"), n(o.fetchLogout, "fetchLogout"), !g(o.publicConfig))
|
|
21
|
+
throw new Error("runLogoutHandler: deps.publicConfig обязателен");
|
|
22
|
+
const e = typeof o.publicConfig.origin == "string" ? o.publicConfig.origin : void 0, a = c({
|
|
23
|
+
origin: e,
|
|
24
|
+
authCookieDomain: o.publicConfig.authCookieDomain
|
|
25
|
+
}), t = o.publicConfig.authApiUrl;
|
|
26
|
+
let i;
|
|
27
|
+
try {
|
|
28
|
+
if (typeof t == "string" && t.length > 0) {
|
|
29
|
+
const r = o.getCookie(o.event, "auth_token");
|
|
30
|
+
await o.fetchLogout(`${t}/api/logout`, {
|
|
31
|
+
method: "POST",
|
|
32
|
+
headers: {
|
|
33
|
+
Accept: "application/json",
|
|
34
|
+
Authorization: `Bearer ${r}`
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
} catch (r) {
|
|
39
|
+
i = r;
|
|
40
|
+
} finally {
|
|
41
|
+
o.deleteCookie(o.event, "auth_token", { ...a }), o.deleteCookie(o.event, "laravel_session"), o.deleteCookie(o.event, "sessionId"), o.deleteCookie(o.event, "XSRF-TOKEN");
|
|
42
|
+
}
|
|
43
|
+
if ((typeof t != "string" || t.length === 0) && u(
|
|
44
|
+
o.createError,
|
|
45
|
+
500,
|
|
46
|
+
"Internal Server Error: Could not clear session."
|
|
47
|
+
), i !== void 0) {
|
|
48
|
+
const r = l(i, 500);
|
|
49
|
+
u(
|
|
50
|
+
o.createError,
|
|
51
|
+
r,
|
|
52
|
+
f(r),
|
|
53
|
+
i
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
return !0;
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
k as runLogoutHandler
|
|
60
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
function c(e) {
|
|
2
|
+
let t = 0, r;
|
|
3
|
+
function n() {
|
|
4
|
+
t++, e.token.value = null, e.user.value = null, e.clearCookie();
|
|
5
|
+
}
|
|
6
|
+
async function s() {
|
|
7
|
+
const l = e.token.value, f = ++t;
|
|
8
|
+
if (!l || r) return !1;
|
|
9
|
+
const a = () => t === f && e.token.value === l && !r;
|
|
10
|
+
try {
|
|
11
|
+
const u = await e.loadUser(l);
|
|
12
|
+
if (!a()) return !1;
|
|
13
|
+
if (u == null) throw new TypeError("fetchUser: пустой ответ");
|
|
14
|
+
return e.user.value = u, !0;
|
|
15
|
+
} catch (u) {
|
|
16
|
+
return a() && (e.isUnauthorized(u) ? n() : e.onError(u)), !1;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function o() {
|
|
20
|
+
return r || (t++, r = Promise.resolve().then(() => e.runLogout(n)).finally(() => {
|
|
21
|
+
r = void 0;
|
|
22
|
+
}), r);
|
|
23
|
+
}
|
|
24
|
+
return { fetchUser: s, logout: o, reset: n };
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
c as createAuthSessionController
|
|
28
|
+
};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { generatePkcePair as E, generateState as O } from "../pkce.js";
|
|
2
|
+
import { statusFromUnknown as v, publicHttpMessage as T } from "../upstreamHttpStatus.js";
|
|
3
|
+
import { nextTick as R } from "vue";
|
|
4
|
+
const W = "Web Crypto API недоступен. Используйте HTTPS или обновите браузер.", $ = "NUXT_PUBLIC_ORIGIN не совпадает с адресом вкладки. Откройте приложение по origin из конфига.", C = "r3ui-sso-start-lock", S = "r3ui-sso-auth-url";
|
|
5
|
+
let i;
|
|
6
|
+
function b() {
|
|
7
|
+
try {
|
|
8
|
+
const e = sessionStorage.getItem(S);
|
|
9
|
+
return typeof e == "string" && e.length > 0 ? e : null;
|
|
10
|
+
} catch {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
function U() {
|
|
15
|
+
try {
|
|
16
|
+
sessionStorage.setItem(C, "1");
|
|
17
|
+
} catch {
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function x(e) {
|
|
21
|
+
try {
|
|
22
|
+
sessionStorage.setItem(S, e);
|
|
23
|
+
} catch {
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function h() {
|
|
27
|
+
i = void 0;
|
|
28
|
+
try {
|
|
29
|
+
sessionStorage.removeItem(C), sessionStorage.removeItem(S);
|
|
30
|
+
} catch {
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function K() {
|
|
34
|
+
h();
|
|
35
|
+
}
|
|
36
|
+
function V() {
|
|
37
|
+
i = void 0;
|
|
38
|
+
}
|
|
39
|
+
async function X(e) {
|
|
40
|
+
if (!e || typeof e.setLoading != "function")
|
|
41
|
+
throw new Error("signInWithSSO: deps.setLoading обязателен");
|
|
42
|
+
if (typeof e.getPublicConfig != "function")
|
|
43
|
+
throw new Error("signInWithSSO: deps.getPublicConfig обязателен");
|
|
44
|
+
if (typeof e.useCookie != "function")
|
|
45
|
+
throw new Error("signInWithSSO: deps.useCookie обязателен");
|
|
46
|
+
if (typeof e.showError != "function")
|
|
47
|
+
throw new Error("signInWithSSO: deps.showError обязателен");
|
|
48
|
+
if (typeof window > "u")
|
|
49
|
+
return;
|
|
50
|
+
const w = e.redirectTo ?? ((t) => {
|
|
51
|
+
window.location.href = t;
|
|
52
|
+
}), g = {
|
|
53
|
+
maxAge: 300,
|
|
54
|
+
sameSite: "lax",
|
|
55
|
+
secure: (e.isSecure ?? (() => window.location.protocol === "https:"))(),
|
|
56
|
+
path: "/"
|
|
57
|
+
}, _ = (t) => {
|
|
58
|
+
const o = e.useCookie(t, g).value;
|
|
59
|
+
return typeof o == "string" && o.length > 0 ? o : null;
|
|
60
|
+
};
|
|
61
|
+
if (i?.url === null)
|
|
62
|
+
return;
|
|
63
|
+
e.setLoading(!0);
|
|
64
|
+
const P = e.generatePkcePair ?? E, L = e.generateState ?? O;
|
|
65
|
+
try {
|
|
66
|
+
const { authApiUrl: t, ssoClientId: o, origin: a } = e.getPublicConfig();
|
|
67
|
+
if (!t || !o)
|
|
68
|
+
throw new Error("Не настроены CLIENT_ID или NUXT_AUTH_API_URL");
|
|
69
|
+
if (typeof a != "string" || a !== window.location.origin) {
|
|
70
|
+
e.setLoading(!1), e.showError({
|
|
71
|
+
statusCode: 400,
|
|
72
|
+
statusMessage: $
|
|
73
|
+
});
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const p = `${a}/api/auth/callback`, n = new URL(
|
|
77
|
+
`${t.replace(/\/+$/, "")}/oauth/authorize`
|
|
78
|
+
);
|
|
79
|
+
if (!["https:", "http:"].includes(n.protocol) || n.username || n.password || n.search || n.hash)
|
|
80
|
+
throw new Error("Некорректный NUXT_AUTH_API_URL");
|
|
81
|
+
const s = i?.url ?? b(), d = _("pkce_state"), y = _("pkce_verifier");
|
|
82
|
+
let r;
|
|
83
|
+
if (s && d && y)
|
|
84
|
+
try {
|
|
85
|
+
r = new URL(s);
|
|
86
|
+
} catch {
|
|
87
|
+
}
|
|
88
|
+
const A = {
|
|
89
|
+
client_id: o,
|
|
90
|
+
redirect_uri: p,
|
|
91
|
+
response_type: "code",
|
|
92
|
+
code_challenge_method: "S256",
|
|
93
|
+
state: d
|
|
94
|
+
};
|
|
95
|
+
if (s && r && r.origin === n.origin && r.pathname === n.pathname && !r.username && !r.password && !r.hash && !r.searchParams.has("scope") && r.searchParams.getAll("code_challenge").length === 1 && r.searchParams.get("code_challenge") && Object.entries(A).every(
|
|
96
|
+
([l, c]) => r.searchParams.getAll(l).length === 1 && r.searchParams.get(l) === c
|
|
97
|
+
)) {
|
|
98
|
+
i?.url !== s && (i = { url: s }, U(), w(s));
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
h(), i = { url: null }, U();
|
|
102
|
+
let f, k, u;
|
|
103
|
+
try {
|
|
104
|
+
({ codeVerifier: f, codeChallenge: k } = await P()), u = L();
|
|
105
|
+
} catch {
|
|
106
|
+
h(), e.setLoading(!1), e.showError({
|
|
107
|
+
statusCode: 500,
|
|
108
|
+
statusMessage: W
|
|
109
|
+
});
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
e.useCookie("pkce_verifier", g).value = f, e.useCookie("pkce_state", g).value = u, await R();
|
|
113
|
+
const I = (l) => document.cookie.split(";").map((c) => c.trim()).find((c) => c.startsWith(`${l}=`));
|
|
114
|
+
if (I("pkce_verifier") !== `pkce_verifier=${encodeURIComponent(f)}` || I("pkce_state") !== `pkce_state=${encodeURIComponent(u)}`)
|
|
115
|
+
throw new Error(
|
|
116
|
+
"Не удалось сохранить данные входа. Разрешите cookie в браузере и повторите вход."
|
|
117
|
+
);
|
|
118
|
+
const m = `${n.href}?` + new URLSearchParams({
|
|
119
|
+
client_id: o,
|
|
120
|
+
redirect_uri: p,
|
|
121
|
+
response_type: "code",
|
|
122
|
+
code_challenge: k,
|
|
123
|
+
code_challenge_method: "S256",
|
|
124
|
+
state: u
|
|
125
|
+
});
|
|
126
|
+
i = { url: m }, x(m), w(m);
|
|
127
|
+
} catch (t) {
|
|
128
|
+
h(), e.setLoading(!1);
|
|
129
|
+
const o = v(t, 500), a = t instanceof Error && t.message.trim() ? t.message : T(o);
|
|
130
|
+
e.showError({
|
|
131
|
+
statusCode: o,
|
|
132
|
+
statusMessage: a,
|
|
133
|
+
cause: t
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
export {
|
|
138
|
+
K as resetSignInWithSSOLock,
|
|
139
|
+
X as signInWithSSO,
|
|
140
|
+
V as simulateSignInWithSSOHmr
|
|
141
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const r = (o) => {
|
|
2
|
+
if (typeof o == "string" && o.length !== 0 && !o.toLowerCase().includes("localhost"))
|
|
3
|
+
return o;
|
|
4
|
+
}, n = ({
|
|
5
|
+
origin: o,
|
|
6
|
+
authCookieDomain: i,
|
|
7
|
+
httpOnly: t
|
|
8
|
+
}) => {
|
|
9
|
+
const e = r(i);
|
|
10
|
+
return {
|
|
11
|
+
path: "/",
|
|
12
|
+
sameSite: "lax",
|
|
13
|
+
secure: o?.startsWith("https://") ?? !1,
|
|
14
|
+
...typeof t == "boolean" ? { httpOnly: t } : {},
|
|
15
|
+
...e ? { domain: e } : {}
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
n as getAuthCookieOptions,
|
|
20
|
+
r as getSharedCookieDomain
|
|
21
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
gender: {
|
|
3
|
+
MALE: 1,
|
|
4
|
+
FEMALE: 2
|
|
5
|
+
},
|
|
6
|
+
timeTypes: {
|
|
7
|
+
HOUR: 1,
|
|
8
|
+
DAY: 2,
|
|
9
|
+
WEEK: 3,
|
|
10
|
+
MONTH: 4,
|
|
11
|
+
YEAR: 5
|
|
12
|
+
},
|
|
13
|
+
customPerPageOptions: [
|
|
14
|
+
{ id: 10, label: 10 },
|
|
15
|
+
{ id: 40, label: 40 },
|
|
16
|
+
{ id: 100, label: 100 },
|
|
17
|
+
{ id: 150, label: 150 },
|
|
18
|
+
{ id: 200, label: 200 }
|
|
19
|
+
],
|
|
20
|
+
mask_regex: {
|
|
21
|
+
INTEGER: "^[0-9]*$",
|
|
22
|
+
DECIMAL: "^[0-9]{1,10}[.]?[0-9]{1}$",
|
|
23
|
+
HUNDREDTHS: "^([0]{1}[.][0-9]{1,2}|[1-9][0-9]*[.]?[0-9]{1,2})$",
|
|
24
|
+
THOUSANDS: "^([0]{1}[.][0-9]{1,2}|[1-9][0-9]*[.]?[0-9]{1,3})$",
|
|
25
|
+
NO_LIMIT_AFTER_DOT: "^[0-9]{1,10}[.]?[0-9]*$",
|
|
26
|
+
ABOVE_ONE: "^[1-9]+[0-9]*$",
|
|
27
|
+
NO_START_SPACE: "^[^ ]+.*$",
|
|
28
|
+
NO_SPACE: "[^ ]*"
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
Object.preventExtensions(e);
|
|
32
|
+
export {
|
|
33
|
+
e as default
|
|
34
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
function n(a, t) {
|
|
2
|
+
return {
|
|
3
|
+
[`${t}-${t}`]: {
|
|
4
|
+
pagination: {
|
|
5
|
+
first: a("table_pagination.first"),
|
|
6
|
+
first_title: a("table_pagination.first_title"),
|
|
7
|
+
last: a("table_pagination.last"),
|
|
8
|
+
last_title: a("table_pagination.last_title"),
|
|
9
|
+
prev: a("table_pagination.prev"),
|
|
10
|
+
prev_title: a("table_pagination.prev_title"),
|
|
11
|
+
next: a("table_pagination.next"),
|
|
12
|
+
next_title: a("table_pagination.next_title"),
|
|
13
|
+
all: a("table_pagination.all"),
|
|
14
|
+
counter: {
|
|
15
|
+
showing: a("table_pagination.showing"),
|
|
16
|
+
of: a("table_pagination.of"),
|
|
17
|
+
rows: a("table_pagination.rows"),
|
|
18
|
+
pages: a("table_pagination.pages")
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
data: {
|
|
22
|
+
loading: a("table_pagination.loading"),
|
|
23
|
+
error: a("table_pagination.error")
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
n as createTabulatorLangsFromT
|
|
30
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { computed as n, unref as r } from "vue";
|
|
2
|
+
import { createTabulatorLangsFromT as o } from "./createTabulatorLangsFromT.js";
|
|
3
|
+
function i(a, t) {
|
|
4
|
+
return {
|
|
5
|
+
locale: `${t}-${t}`,
|
|
6
|
+
langs: o(a, t),
|
|
7
|
+
rtl: t === "he",
|
|
8
|
+
loadMoreText: a("table_pagination.load_more"),
|
|
9
|
+
noDataText: a("table_pagination.no_data"),
|
|
10
|
+
paginationLimitText: a("table_pagination.pagination_limit")
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function u(a, t) {
|
|
14
|
+
return n(() => i(a, r(t)));
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
i as createTabulatorTableProps,
|
|
18
|
+
u as useTabulatorTableProps
|
|
19
|
+
};
|