r3ui-lib 1.3.19 → 1.3.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/login.es.js +14 -3148
- package/dist/modules/_virtual/___vite-browser-external.js +6 -0
- package/dist/modules/_virtual/__vite-browser-external.js +4 -0
- package/dist/modules/_virtual/_commonjsHelpers.js +33 -0
- package/dist/modules/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/modules/_virtual/he.js +5 -0
- package/dist/modules/_virtual/he2.js +4 -0
- package/dist/modules/_virtual/index.js +7 -0
- package/dist/modules/_virtual/inputmask.js +7 -0
- package/dist/modules/_virtual/inputmask2.js +4 -0
- package/dist/modules/_virtual/ru.js +5 -0
- package/dist/modules/_virtual/ru2.js +4 -0
- package/dist/modules/assets/img/confirmation.png.js +4 -0
- package/dist/modules/assets/img/error.png.js +4 -0
- package/dist/modules/assets/img/preloader.gif.js +4 -0
- package/dist/modules/assets/img/regagro_logo.svg.js +4 -0
- package/dist/modules/assets/img/success.png.js +4 -0
- package/dist/modules/assets/img/warning.png.js +4 -0
- package/dist/modules/components/DefaultButton.vue.js +112 -0
- package/dist/modules/components/Divider.vue.js +33 -0
- package/dist/modules/components/Icon.vue.js +18 -0
- package/dist/modules/components/Slider.vue.js +7 -0
- package/dist/modules/components/Slider.vue2.js +127 -0
- package/dist/modules/components/Spinner.vue.js +19 -0
- package/dist/modules/components/SsoLoginPending.vue.js +7 -0
- package/dist/modules/components/SsoLoginPending.vue2.js +44 -0
- package/dist/modules/components/SsoLoginScreen.vue.js +57 -0
- package/dist/modules/components/SsoLoginScreen.vue2.js +4 -0
- package/dist/modules/components/accordions/DefaultAccordion.vue.js +7 -0
- package/dist/modules/components/accordions/DefaultAccordion.vue2.js +72 -0
- package/dist/modules/components/accordions/KindCheckboxesAccordion.vue.js +7 -0
- package/dist/modules/components/accordions/KindCheckboxesAccordion.vue2.js +152 -0
- package/dist/modules/components/buttons/AddButton.vue.js +7 -0
- package/dist/modules/components/buttons/AddButton.vue2.js +30 -0
- package/dist/modules/components/buttons/ClearFormButton.vue.js +7 -0
- package/dist/modules/components/buttons/ClearFormButton.vue2.js +28 -0
- package/dist/modules/components/buttons/CollapseButton.vue.js +7 -0
- package/dist/modules/components/buttons/CollapseButton.vue2.js +57 -0
- package/dist/modules/components/buttons/ExportButton.vue.js +7 -0
- package/dist/modules/components/buttons/ExportButton.vue2.js +28 -0
- package/dist/modules/components/buttons/PrintButton.vue.js +7 -0
- package/dist/modules/components/buttons/PrintButton.vue2.js +27 -0
- package/dist/modules/components/buttons/ToggleButtons.vue.js +7 -0
- package/dist/modules/components/buttons/ToggleButtons.vue2.js +30 -0
- package/dist/modules/components/cards/CardInfo.vue.js +7 -0
- package/dist/modules/components/cards/CardInfo.vue2.js +56 -0
- package/dist/modules/components/cards/PageCard.vue.js +7 -0
- package/dist/modules/components/cards/PageCard.vue2.js +117 -0
- package/dist/modules/components/dropdowns/DefaultDropDown.vue.js +102 -0
- package/dist/modules/components/export/ExportComponent.vue.js +7 -0
- package/dist/modules/components/export/ExportComponent.vue2.js +74 -0
- package/dist/modules/components/filters/MultipleQuickFilterComponent.vue.js +7 -0
- package/dist/modules/components/filters/MultipleQuickFilterComponent.vue2.js +34 -0
- package/dist/modules/components/form/Checkbox.vue.js +66 -0
- package/dist/modules/components/form/CustomInput.vue.js +161 -0
- package/dist/modules/components/form/FormError.vue.js +24 -0
- package/dist/modules/components/form/PasswordInput.vue.js +82 -0
- package/dist/modules/components/form/VSelect.vue.js +192 -0
- package/dist/modules/components/form/useWithPopper.js +29 -0
- package/dist/modules/components/forms/AddressForm.vue.js +7 -0
- package/dist/modules/components/forms/AddressForm.vue2.js +382 -0
- package/dist/modules/components/forms/AgeFromAgeTo.vue.js +7 -0
- package/dist/modules/components/forms/AgeFromAgeTo.vue2.js +207 -0
- package/dist/modules/components/forms/BooleanCheckbox.vue.js +7 -0
- package/dist/modules/components/forms/BooleanCheckbox.vue2.js +54 -0
- package/dist/modules/components/forms/Flatpickr.vue.js +7 -0
- package/dist/modules/components/forms/Flatpickr.vue2.js +273 -0
- package/dist/modules/components/forms/HeaderSearchForm.vue.js +7 -0
- package/dist/modules/components/forms/HeaderSearchForm.vue2.js +142 -0
- package/dist/modules/components/forms/MultiCheckbox.vue.js +7 -0
- package/dist/modules/components/forms/MultiCheckbox.vue2.js +64 -0
- package/dist/modules/components/forms/MultiInput.vue.js +7 -0
- package/dist/modules/components/forms/MultiInput.vue2.js +115 -0
- package/dist/modules/components/icons/QuestionIcon.vue.js +7 -0
- package/dist/modules/components/icons/QuestionIcon.vue2.js +56 -0
- package/dist/modules/components/layout/Breadcrumbs.vue.js +7 -0
- package/dist/modules/components/layout/Breadcrumbs.vue2.js +40 -0
- package/dist/modules/components/layout/Card.vue.js +31 -0
- package/dist/modules/components/layout/Footer.vue.js +15 -0
- package/dist/modules/components/layout/Footer.vue2.js +4 -0
- package/dist/modules/components/layout/Header.vue.js +7 -0
- package/dist/modules/components/layout/Header.vue2.js +68 -0
- package/dist/modules/components/layout/LanguageSelector.vue.js +32 -0
- package/dist/modules/components/layout/LanguageSelector.vue3.js +5 -0
- package/dist/modules/components/layout/LoginLayoutFrame.vue.js +48 -0
- package/dist/modules/components/layout/LoginLayoutFrame.vue2.js +4 -0
- package/dist/modules/components/layout/MainComponent.vue.js +50 -0
- package/dist/modules/components/layout/MainComponent.vue2.js +4 -0
- package/dist/modules/components/layout/PageTitle.vue.js +7 -0
- package/dist/modules/components/layout/PageTitle.vue2.js +40 -0
- package/dist/modules/components/logo/Logo.vue.js +7 -0
- package/dist/modules/components/logo/Logo.vue2.js +50 -0
- package/dist/modules/components/modals/ConfirmationModal.vue.js +7 -0
- package/dist/modules/components/modals/ConfirmationModal.vue2.js +154 -0
- package/dist/modules/components/modals/DefaultModal.vue.js +116 -0
- package/dist/modules/components/modals/DefaultModal.vue3.js +5 -0
- package/dist/modules/components/modals/EditTableColumnsModalComponent.vue.js +7 -0
- package/dist/modules/components/modals/EditTableColumnsModalComponent.vue2.js +41 -0
- package/dist/modules/components/modals/TableFilterModalComponent.vue.js +7 -0
- package/dist/modules/components/modals/TableFilterModalComponent.vue2.js +66 -0
- package/dist/modules/components/modals/TableFilterModalShell.vue.js +89 -0
- package/dist/modules/components/modals/TableFilterModalShell.vue2.js +4 -0
- package/dist/modules/components/notifications/ErrorMessageComponent.vue.js +7 -0
- package/dist/modules/components/notifications/ErrorMessageComponent.vue2.js +45 -0
- package/dist/modules/components/notifications/NotificationMessage.vue.js +55 -0
- package/dist/modules/components/notifications/NotificationMessage.vue2.js +4 -0
- package/dist/modules/components/notifications/Toast.vue.js +71 -0
- package/dist/modules/components/sidebar/CollapsedSidebarLink.vue.js +7 -0
- package/dist/modules/components/sidebar/CollapsedSidebarLink.vue2.js +90 -0
- package/dist/modules/components/sidebar/Sidebar.vue.js +59 -0
- package/dist/modules/components/sidebar/Sidebar.vue3.js +5 -0
- package/dist/modules/components/sidebar/SidebarLink.vue.js +7 -0
- package/dist/modules/components/sidebar/SidebarLink.vue2.js +93 -0
- package/dist/modules/components/tables/ColumnSubFilter.vue.js +7 -0
- package/dist/modules/components/tables/ColumnSubFilter.vue2.js +36 -0
- package/dist/modules/components/tables/EditTableColumns.vue.js +7 -0
- package/dist/modules/components/tables/EditTableColumns.vue2.js +125 -0
- package/dist/modules/components/tables/ManagedRemoteTable.vue.js +72 -0
- package/dist/modules/components/tables/ManagedRemoteTable.vue2.js +4 -0
- package/dist/modules/components/tables/SubFilterToggleBtn.vue.js +28 -0
- package/dist/modules/components/tables/Table.vue.js +416 -0
- package/dist/modules/components/tables/Table.vue3.js +5 -0
- package/dist/modules/components/tables/TableAppliedFiltersStorage.vue.js +7 -0
- package/dist/modules/components/tables/TableAppliedFiltersStorage.vue2.js +56 -0
- package/dist/modules/components/tables/TableColumnsButton.vue.js +27 -0
- package/dist/modules/components/tables/TableColumnsButton.vue2.js +4 -0
- package/dist/modules/components/tables/TableColumnsDialog.vue.js +67 -0
- package/dist/modules/components/tables/TableColumnsDialog.vue2.js +4 -0
- package/dist/modules/components/tables/TableColumnsModal.vue.js +27 -0
- package/dist/modules/components/tables/TableColumnsModal.vue2.js +4 -0
- package/dist/modules/components/tables/TableCount.vue.js +7 -0
- package/dist/modules/components/tables/TableCount.vue2.js +26 -0
- package/dist/modules/components/tables/TableQuickFilterComponent.vue.js +7 -0
- package/dist/modules/components/tables/TableQuickFilterComponent.vue2.js +29 -0
- package/dist/modules/components/tables/ToggleAllTableRowButtons.vue.js +7 -0
- package/dist/modules/components/tables/ToggleAllTableRowButtons.vue2.js +41 -0
- package/dist/modules/components/utilities/FilterValuesPanel.vue.js +7 -0
- package/dist/modules/components/utilities/FilterValuesPanel.vue2.js +95 -0
- package/dist/modules/composables/forms/useAddressForm.js +289 -0
- package/dist/modules/composables/forms/useFieldError.js +23 -0
- package/dist/modules/composables/forms/useSearchForm.js +52 -0
- package/dist/modules/composables/forms/useUnsavedChanges.js +84 -0
- package/dist/modules/composables/layout/useR3uiLayoutInject.js +32 -0
- package/dist/modules/composables/main/useBreadcrumbs.js +75 -0
- package/dist/modules/composables/main/useMain.js +38 -0
- package/dist/modules/composables/main/usePermissionChecker.js +15 -0
- package/dist/modules/composables/modals/useModalLayer.js +109 -0
- package/dist/modules/composables/sidebar/useSidebar.js +40 -0
- package/dist/modules/composables/table/createTableCommandScheduler.js +62 -0
- package/dist/modules/composables/table/createTableLifecycle.js +719 -0
- package/dist/modules/composables/table/createTableRebuildTransaction.js +61 -0
- package/dist/modules/composables/table/createTableSession.js +38 -0
- package/dist/modules/composables/table/createTableState.js +122 -0
- package/dist/modules/composables/table/createTabulatorAdapter.js +90 -0
- package/dist/modules/composables/table/tableQueryTransitions.js +82 -0
- package/dist/modules/composables/table/useManagedRemoteTable.js +179 -0
- package/dist/modules/composables/table/useR3uiTableDefaultInject.js +27 -0
- package/dist/modules/composables/table/useRemoteTable.js +96 -0
- package/dist/modules/composables/table/useTableColumnApply.js +38 -0
- package/dist/modules/composables/table/useTableColumns.js +70 -0
- package/dist/modules/composables/table/useTableColumnsEnhanced.js +155 -0
- package/dist/modules/composables/table/useTableColumnsIntegration.js +82 -0
- package/dist/modules/composables/table/useTableDefault.js +258 -0
- package/dist/modules/composables/table/useTableStorage.js +32 -0
- package/dist/modules/constants/authSidebar.js +36 -0
- package/dist/modules/services/AddressService.js +21 -0
- package/dist/modules/types/layoutInjectKeys.js +10 -0
- package/dist/modules/types/tableInjectKeys.js +21 -0
- package/dist/modules/types/tableInstance.js +32 -0
- package/dist/modules/utils/accordionLocalization.js +14 -0
- package/dist/modules/utils/addressFormTranslations.js +29 -0
- package/dist/modules/utils/auth/authUser.js +13 -0
- package/dist/modules/utils/auth/exchangePasswordToken.js +52 -0
- package/dist/modules/utils/auth/handlePkceCallback.js +88 -0
- package/dist/modules/utils/auth/logout.js +32 -0
- package/dist/modules/utils/auth/runLogoutHandler.js +60 -0
- package/dist/modules/utils/auth/sessionController.js +28 -0
- package/dist/modules/utils/auth/signInWithSSO.js +141 -0
- package/dist/modules/utils/authCookie.js +21 -0
- package/dist/modules/utils/constants.js +34 -0
- package/dist/modules/utils/createTabulatorLangsFromT.js +30 -0
- package/dist/modules/utils/createTabulatorTableProps.js +19 -0
- package/dist/modules/utils/helpers.js +537 -0
- package/dist/modules/utils/pkce.js +50 -0
- package/dist/modules/utils/table-columns-utils.js +59 -0
- package/dist/modules/utils/tableAdapter.js +156 -0
- package/dist/modules/utils/tableAjaxRequest.js +82 -0
- package/dist/modules/utils/tableCancellation.js +271 -0
- package/dist/modules/utils/tableColumnStorage.js +55 -0
- package/dist/modules/utils/tableData.js +118 -0
- package/dist/modules/utils/tableLoad.js +67 -0
- package/dist/modules/utils/tableLocalizations.js +6 -0
- package/dist/modules/utils/tableOperation.js +63 -0
- package/dist/modules/utils/tableProjection.js +137 -0
- package/dist/modules/utils/tableQueryParameters.js +46 -0
- package/dist/modules/utils/tableSnapshotValue.js +73 -0
- package/dist/modules/utils/tabulatorQueryAdapter.js +203 -0
- package/dist/modules/utils/tabulatorRuntime.js +131 -0
- package/dist/modules/utils/upstreamHttpStatus.js +32 -0
- package/dist/modules/vendor/@popperjs/core/lib/createPopper.js +122 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/contains.js +18 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getBoundingClientRect.js +23 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getClippingRect.js +37 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getCompositeRect.js +32 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getComputedStyle.js +7 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getDocumentElement.js +10 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getDocumentRect.js +17 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js +9 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getLayoutRect.js +13 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getNodeName.js +6 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getNodeScroll.js +10 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getOffsetParent.js +35 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getParentNode.js +18 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getScrollParent.js +10 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getViewportRect.js +21 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getWindow.js +12 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getWindowScroll.js +11 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js +9 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/instanceOf.js +20 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/isLayoutViewport.js +7 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/isScrollParent.js +8 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/isTableElement.js +7 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/listScrollParents.js +16 -0
- package/dist/modules/vendor/@popperjs/core/lib/enums.js +31 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/applyStyles.js +47 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/arrow.js +37 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/computeStyles.js +99 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/eventListeners.js +26 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/flip.js +74 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/hide.js +44 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/offset.js +31 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/popperOffsets.js +19 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/preventOverflow.js +54 -0
- package/dist/modules/vendor/@popperjs/core/lib/popper.js +27 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/computeAutoPlacement.js +27 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/computeOffsets.js +54 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/debounce.js +13 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/detectOverflow.js +33 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/expandToHashMap.js +8 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/getAltAxis.js +6 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/getBasePlacement.js +6 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/getFreshSideObject.js +11 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/getMainAxisFromPlacement.js +6 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/getOppositePlacement.js +14 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/getOppositeVariationPlacement.js +12 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/getVariation.js +6 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/math.js +6 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/mergeByName.js +15 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/mergePaddingObject.js +7 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/orderModifiers.js +31 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/rectToClientRect.js +11 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/userAgent.js +9 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/within.js +12 -0
- package/dist/modules/vendor/call-bind-apply-helpers/actualApply.js +14 -0
- package/dist/modules/vendor/call-bind-apply-helpers/functionApply.js +7 -0
- package/dist/modules/vendor/call-bind-apply-helpers/functionCall.js +7 -0
- package/dist/modules/vendor/call-bind-apply-helpers/index.js +18 -0
- package/dist/modules/vendor/call-bind-apply-helpers/reflectApply.js +7 -0
- package/dist/modules/vendor/call-bound/index.js +21 -0
- package/dist/modules/vendor/dompurify/dist/purify.es.js +1522 -0
- package/dist/modules/vendor/dunder-proto/get.js +29 -0
- package/dist/modules/vendor/es-define-property/index.js +16 -0
- package/dist/modules/vendor/es-errors/eval.js +7 -0
- package/dist/modules/vendor/es-errors/index.js +7 -0
- package/dist/modules/vendor/es-errors/range.js +7 -0
- package/dist/modules/vendor/es-errors/ref.js +7 -0
- package/dist/modules/vendor/es-errors/syntax.js +7 -0
- package/dist/modules/vendor/es-errors/type.js +7 -0
- package/dist/modules/vendor/es-errors/uri.js +7 -0
- package/dist/modules/vendor/es-object-atoms/index.js +7 -0
- package/dist/modules/vendor/flatpickr/dist/esm/index.js +942 -0
- package/dist/modules/vendor/flatpickr/dist/esm/l10n/default.js +75 -0
- package/dist/modules/vendor/flatpickr/dist/esm/types/options.js +80 -0
- package/dist/modules/vendor/flatpickr/dist/esm/utils/dates.js +89 -0
- package/dist/modules/vendor/flatpickr/dist/esm/utils/dom.js +45 -0
- package/dist/modules/vendor/flatpickr/dist/esm/utils/formatting.js +170 -0
- package/dist/modules/vendor/flatpickr/dist/esm/utils/index.js +23 -0
- package/dist/modules/vendor/flatpickr/dist/esm/utils/polyfills.js +15 -0
- package/dist/modules/vendor/flatpickr/dist/l10n/he.js +56 -0
- package/dist/modules/vendor/flatpickr/dist/l10n/ru.js +73 -0
- package/dist/modules/vendor/function-bind/implementation.js +48 -0
- package/dist/modules/vendor/function-bind/index.js +11 -0
- package/dist/modules/vendor/get-intrinsic/index.js +265 -0
- package/dist/modules/vendor/get-proto/Object.getPrototypeOf.js +11 -0
- package/dist/modules/vendor/get-proto/Reflect.getPrototypeOf.js +7 -0
- package/dist/modules/vendor/get-proto/index.js +21 -0
- package/dist/modules/vendor/gopd/gOPD.js +7 -0
- package/dist/modules/vendor/gopd/index.js +17 -0
- package/dist/modules/vendor/has-symbols/index.js +13 -0
- package/dist/modules/vendor/has-symbols/shams.js +33 -0
- package/dist/modules/vendor/hasown/index.js +11 -0
- package/dist/modules/vendor/inputmask/dist/inputmask.js +3517 -0
- package/dist/modules/vendor/math-intrinsics/abs.js +7 -0
- package/dist/modules/vendor/math-intrinsics/floor.js +7 -0
- package/dist/modules/vendor/math-intrinsics/isNaN.js +9 -0
- package/dist/modules/vendor/math-intrinsics/max.js +7 -0
- package/dist/modules/vendor/math-intrinsics/min.js +7 -0
- package/dist/modules/vendor/math-intrinsics/pow.js +7 -0
- package/dist/modules/vendor/math-intrinsics/round.js +7 -0
- package/dist/modules/vendor/math-intrinsics/sign.js +13 -0
- package/dist/modules/vendor/moment/dist/moment.js +2589 -0
- package/dist/modules/vendor/nouislider/dist/nouislider.js +1064 -0
- package/dist/modules/vendor/object-inspect/index.js +376 -0
- package/dist/modules/vendor/qs/lib/formats.js +25 -0
- package/dist/modules/vendor/qs/lib/index.js +17 -0
- package/dist/modules/vendor/qs/lib/parse.js +161 -0
- package/dist/modules/vendor/qs/lib/stringify.js +197 -0
- package/dist/modules/vendor/qs/lib/utils.js +129 -0
- package/dist/modules/vendor/seamless-scroll-polyfill/lib/common.js +21 -0
- package/dist/modules/vendor/seamless-scroll-polyfill/lib/scroll-end-event.js +12 -0
- package/dist/modules/vendor/seamless-scroll-polyfill/lib/scroll-step.js +21 -0
- package/dist/modules/vendor/seamless-scroll-polyfill/lib/scroll.js +58 -0
- package/dist/modules/vendor/seamless-scroll-polyfill/lib/scrollIntoView.js +168 -0
- package/dist/modules/vendor/side-channel/index.js +35 -0
- package/dist/modules/vendor/side-channel-list/index.js +64 -0
- package/dist/modules/vendor/side-channel-map/index.js +40 -0
- package/dist/modules/vendor/side-channel-weakmap/index.js +43 -0
- package/dist/modules/vendor/tabulator-tables/dist/js/tabulator_esm.js +11127 -0
- package/dist/modules/vendor/vue-select/dist/vue-select.es.js +769 -0
- package/dist/r3ui-lib.css +1 -1
- package/dist/r3ui-lib.es.js +334 -35110
- package/dist/r3ui-lib.umd.js +12 -12
- package/dist/types/components/forms/AddressForm.vue.d.ts.map +1 -1
- package/package.json +7 -3
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { toRaw as b } from "vue";
|
|
2
|
+
const h = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap();
|
|
3
|
+
function v(c) {
|
|
4
|
+
const l = b(c), a = l.dataLoader;
|
|
5
|
+
return h.get(l) ?? (a && y.get(b(a)));
|
|
6
|
+
}
|
|
7
|
+
function A(c, l) {
|
|
8
|
+
if (!c || typeof c != "object")
|
|
9
|
+
throw new TypeError("r3ui-lib: несовместимый DataLoader таблицы");
|
|
10
|
+
const a = b(c), o = a, n = o.dataLoader;
|
|
11
|
+
if (typeof n?.chain != "function")
|
|
12
|
+
throw new TypeError("r3ui-lib: несовместимый DataLoader таблицы");
|
|
13
|
+
if (l && (typeof n.mapParams != "function" || typeof n.load != "function" || typeof n.dispatchExternal != "function" || typeof n.alertError != "function" || typeof n.clearAlert != "function" || typeof o.rowManager?.setData != "function"))
|
|
14
|
+
throw new TypeError("r3ui-lib: несовместимый цикл загрузки таблицы");
|
|
15
|
+
const i = l && o.modules ? o : void 0;
|
|
16
|
+
if (i) {
|
|
17
|
+
const { ajax: e, filter: t, sort: r, page: s } = i.modules;
|
|
18
|
+
if (typeof i.eventBus?.subscribe != "function" || typeof i.eventBus.unsubscribe != "function" || typeof i.rowManager?._setDataActual != "function" || typeof i.rowManager.refreshActiveData != "function" || typeof e?.setUrl != "function" || typeof t?.refreshFilter != "function" || typeof t.setFilter != "function" || typeof r?.setSort != "function" || typeof r.clearColumnHeaders != "function" || typeof r.setColumnHeader != "function" || typeof s?.dispatchExternal != "function" || typeof s?.setPageSize != "function" || typeof s._setPageButtons != "function" || typeof s._setPageCounter != "function")
|
|
19
|
+
throw new TypeError("r3ui-lib: несовместимый адаптер запроса Tabulator");
|
|
20
|
+
if (typeof o.destroy != "function")
|
|
21
|
+
throw new TypeError("r3ui-lib: несовместимое уничтожение Tabulator");
|
|
22
|
+
}
|
|
23
|
+
if (o.destroyed)
|
|
24
|
+
throw new TypeError("r3ui-lib: экземпляр Tabulator уже уничтожен");
|
|
25
|
+
const p = /* @__PURE__ */ new Set(), g = [];
|
|
26
|
+
let f = !1, d = 0;
|
|
27
|
+
function T() {
|
|
28
|
+
if (!f || d) return;
|
|
29
|
+
const e = [];
|
|
30
|
+
for (const t of g.splice(0).reverse())
|
|
31
|
+
try {
|
|
32
|
+
t();
|
|
33
|
+
} catch (r) {
|
|
34
|
+
e.push(r);
|
|
35
|
+
}
|
|
36
|
+
if (e.length)
|
|
37
|
+
throw new AggregateError(
|
|
38
|
+
e,
|
|
39
|
+
"Не удалось освободить перехваты Tabulator"
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
function w() {
|
|
43
|
+
if (f) return;
|
|
44
|
+
f = !0;
|
|
45
|
+
const e = [];
|
|
46
|
+
for (const t of [...p].reverse()) {
|
|
47
|
+
p.delete(t);
|
|
48
|
+
try {
|
|
49
|
+
t();
|
|
50
|
+
} catch (r) {
|
|
51
|
+
e.push(r);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
try {
|
|
55
|
+
T();
|
|
56
|
+
} catch (t) {
|
|
57
|
+
e.push(t);
|
|
58
|
+
}
|
|
59
|
+
if (e.length)
|
|
60
|
+
throw new AggregateError(
|
|
61
|
+
e,
|
|
62
|
+
"Не удалось освободить ресурсы Tabulator"
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
function m(e, t, r) {
|
|
66
|
+
if (f)
|
|
67
|
+
throw new DOMException("Runtime Tabulator завершён", "AbortError");
|
|
68
|
+
const s = Object.getOwnPropertyDescriptor(e, t);
|
|
69
|
+
e[t] = r, g.push(() => {
|
|
70
|
+
e[t] === r && (s ? Object.defineProperty(e, t, s) : delete e[t]);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
const u = {
|
|
74
|
+
table: a,
|
|
75
|
+
loader: n,
|
|
76
|
+
query: i,
|
|
77
|
+
rowManager: o.rowManager,
|
|
78
|
+
isActive: () => !f && !o.destroyed,
|
|
79
|
+
own(e) {
|
|
80
|
+
if (f) {
|
|
81
|
+
e();
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
p.add(e);
|
|
85
|
+
},
|
|
86
|
+
patch: m,
|
|
87
|
+
subscribe(e, t) {
|
|
88
|
+
if (!i)
|
|
89
|
+
throw new TypeError("r3ui-lib: не настроена шина событий Tabulator");
|
|
90
|
+
i.eventBus.subscribe(e, t), u.own(() => i.eventBus.unsubscribe(e, t));
|
|
91
|
+
},
|
|
92
|
+
timeout(e, t) {
|
|
93
|
+
const r = setTimeout(() => {
|
|
94
|
+
p.delete(s), u.isActive() && e();
|
|
95
|
+
}, t), s = () => clearTimeout(r);
|
|
96
|
+
u.own(s);
|
|
97
|
+
},
|
|
98
|
+
/** Старые ответы завершаются под защитой перехватов; DOM-ресурсы освобождаются сразу. */
|
|
99
|
+
retain() {
|
|
100
|
+
d++;
|
|
101
|
+
let e = !1;
|
|
102
|
+
return () => {
|
|
103
|
+
e || (e = !0, d--, T());
|
|
104
|
+
};
|
|
105
|
+
},
|
|
106
|
+
dispose: w,
|
|
107
|
+
rollback() {
|
|
108
|
+
try {
|
|
109
|
+
w();
|
|
110
|
+
} finally {
|
|
111
|
+
h.delete(a), y.get(n) === u && y.delete(n);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
if (h.set(a, u), y.set(n, u), typeof o.destroy == "function") {
|
|
116
|
+
const e = o.destroy;
|
|
117
|
+
m(o, "destroy", function() {
|
|
118
|
+
if (!f)
|
|
119
|
+
try {
|
|
120
|
+
return e.call(this);
|
|
121
|
+
} finally {
|
|
122
|
+
w();
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
return u;
|
|
127
|
+
}
|
|
128
|
+
export {
|
|
129
|
+
A as createTabulatorRuntime,
|
|
130
|
+
v as getTabulatorRuntime
|
|
131
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
function e(r) {
|
|
2
|
+
return Number.isInteger(r) && Number(r) >= 400 && Number(r) < 600;
|
|
3
|
+
}
|
|
4
|
+
function i(r, n = /* @__PURE__ */ new Set()) {
|
|
5
|
+
if (r == null)
|
|
6
|
+
return;
|
|
7
|
+
if (typeof r == "number")
|
|
8
|
+
return e(r) ? r : void 0;
|
|
9
|
+
if (typeof r != "object" || n.has(r))
|
|
10
|
+
return;
|
|
11
|
+
if (n.add(r), typeof Response < "u" && r instanceof Response)
|
|
12
|
+
return e(r.status) ? r.status : void 0;
|
|
13
|
+
const t = r;
|
|
14
|
+
if (e(t.status))
|
|
15
|
+
return t.status;
|
|
16
|
+
if (e(t.statusCode))
|
|
17
|
+
return t.statusCode;
|
|
18
|
+
const f = i(t.response, n);
|
|
19
|
+
return f !== void 0 ? f : i(t.cause, n);
|
|
20
|
+
}
|
|
21
|
+
function o(r) {
|
|
22
|
+
return r === 400 ? "Bad Request" : r === 401 ? "Unauthorized" : r === 403 ? "Forbidden" : r === 404 ? "Not Found" : r === 409 ? "Conflict" : r === 422 ? "Unprocessable Entity" : r === 429 ? "Too Many Requests" : r === 502 ? "Bad Gateway" : r === 503 ? "Service Unavailable" : r === 504 ? "Gateway Timeout" : r >= 500 ? "Internal Server Error" : "Request failed";
|
|
23
|
+
}
|
|
24
|
+
function u(r, n = 500) {
|
|
25
|
+
return i(r) ?? n;
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
i as extractHttpStatus,
|
|
29
|
+
e as isHttpStatus,
|
|
30
|
+
o as publicHttpMessage,
|
|
31
|
+
u as statusFromUnknown
|
|
32
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import R from "./dom-utils/getCompositeRect.js";
|
|
2
|
+
import w from "./dom-utils/getLayoutRect.js";
|
|
3
|
+
import b from "./dom-utils/listScrollParents.js";
|
|
4
|
+
import B from "./dom-utils/getOffsetParent.js";
|
|
5
|
+
import L from "./utils/orderModifiers.js";
|
|
6
|
+
import N from "./utils/debounce.js";
|
|
7
|
+
import S from "./utils/mergeByName.js";
|
|
8
|
+
import { isElement as T } from "./dom-utils/instanceOf.js";
|
|
9
|
+
var U = {
|
|
10
|
+
placement: "bottom",
|
|
11
|
+
modifiers: [],
|
|
12
|
+
strategy: "absolute"
|
|
13
|
+
};
|
|
14
|
+
function F() {
|
|
15
|
+
for (var a = arguments.length, c = new Array(a), n = 0; n < a; n++)
|
|
16
|
+
c[n] = arguments[n];
|
|
17
|
+
return !c.some(function(m) {
|
|
18
|
+
return !(m && typeof m.getBoundingClientRect == "function");
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function J(a) {
|
|
22
|
+
a === void 0 && (a = {});
|
|
23
|
+
var c = a, n = c.defaultModifiers, m = n === void 0 ? [] : n, M = c.defaultOptions, v = M === void 0 ? U : M;
|
|
24
|
+
return function(p, g, u) {
|
|
25
|
+
u === void 0 && (u = v);
|
|
26
|
+
var e = {
|
|
27
|
+
placement: "bottom",
|
|
28
|
+
orderedModifiers: [],
|
|
29
|
+
options: Object.assign({}, U, v),
|
|
30
|
+
modifiersData: {},
|
|
31
|
+
elements: {
|
|
32
|
+
reference: p,
|
|
33
|
+
popper: g
|
|
34
|
+
},
|
|
35
|
+
attributes: {},
|
|
36
|
+
styles: {}
|
|
37
|
+
}, y = [], E = !1, i = {
|
|
38
|
+
state: e,
|
|
39
|
+
setOptions: function(r) {
|
|
40
|
+
var f = typeof r == "function" ? r(e.options) : r;
|
|
41
|
+
h(), e.options = Object.assign({}, v, e.options, f), e.scrollParents = {
|
|
42
|
+
reference: T(p) ? b(p) : p.contextElement ? b(p.contextElement) : [],
|
|
43
|
+
popper: b(g)
|
|
44
|
+
};
|
|
45
|
+
var s = L(S([].concat(m, e.options.modifiers)));
|
|
46
|
+
return e.orderedModifiers = s.filter(function(o) {
|
|
47
|
+
return o.enabled;
|
|
48
|
+
}), D(), i.update();
|
|
49
|
+
},
|
|
50
|
+
// Sync update – it will always be executed, even if not necessary. This
|
|
51
|
+
// is useful for low frequency updates where sync behavior simplifies the
|
|
52
|
+
// logic.
|
|
53
|
+
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
54
|
+
// prefer the async Popper#update method
|
|
55
|
+
forceUpdate: function() {
|
|
56
|
+
if (!E) {
|
|
57
|
+
var r = e.elements, f = r.reference, s = r.popper;
|
|
58
|
+
if (F(f, s)) {
|
|
59
|
+
e.rects = {
|
|
60
|
+
reference: R(f, B(s), e.options.strategy === "fixed"),
|
|
61
|
+
popper: w(s)
|
|
62
|
+
}, e.reset = !1, e.placement = e.options.placement, e.orderedModifiers.forEach(function(P) {
|
|
63
|
+
return e.modifiersData[P.name] = Object.assign({}, P.data);
|
|
64
|
+
});
|
|
65
|
+
for (var o = 0; o < e.orderedModifiers.length; o++) {
|
|
66
|
+
if (e.reset === !0) {
|
|
67
|
+
e.reset = !1, o = -1;
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
var d = e.orderedModifiers[o], l = d.fn, O = d.options, j = O === void 0 ? {} : O, C = d.name;
|
|
71
|
+
typeof l == "function" && (e = l({
|
|
72
|
+
state: e,
|
|
73
|
+
options: j,
|
|
74
|
+
name: C,
|
|
75
|
+
instance: i
|
|
76
|
+
}) || e);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
// Async and optimistically optimized update – it will not be executed if
|
|
82
|
+
// not necessary (debounced to run at most once-per-tick)
|
|
83
|
+
update: N(function() {
|
|
84
|
+
return new Promise(function(t) {
|
|
85
|
+
i.forceUpdate(), t(e);
|
|
86
|
+
});
|
|
87
|
+
}),
|
|
88
|
+
destroy: function() {
|
|
89
|
+
h(), E = !0;
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
if (!F(p, g))
|
|
93
|
+
return i;
|
|
94
|
+
i.setOptions(u).then(function(t) {
|
|
95
|
+
!E && u.onFirstUpdate && u.onFirstUpdate(t);
|
|
96
|
+
});
|
|
97
|
+
function D() {
|
|
98
|
+
e.orderedModifiers.forEach(function(t) {
|
|
99
|
+
var r = t.name, f = t.options, s = f === void 0 ? {} : f, o = t.effect;
|
|
100
|
+
if (typeof o == "function") {
|
|
101
|
+
var d = o({
|
|
102
|
+
state: e,
|
|
103
|
+
name: r,
|
|
104
|
+
instance: i,
|
|
105
|
+
options: s
|
|
106
|
+
}), l = function() {
|
|
107
|
+
};
|
|
108
|
+
y.push(d || l);
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
function h() {
|
|
113
|
+
y.forEach(function(t) {
|
|
114
|
+
return t();
|
|
115
|
+
}), y = [];
|
|
116
|
+
}
|
|
117
|
+
return i;
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
export {
|
|
121
|
+
J as popperGenerator
|
|
122
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { isShadowRoot as a } from "./instanceOf.js";
|
|
2
|
+
function f(r, e) {
|
|
3
|
+
var t = e.getRootNode && e.getRootNode();
|
|
4
|
+
if (r.contains(e))
|
|
5
|
+
return !0;
|
|
6
|
+
if (t && a(t)) {
|
|
7
|
+
var o = e;
|
|
8
|
+
do {
|
|
9
|
+
if (o && r.isSameNode(o))
|
|
10
|
+
return !0;
|
|
11
|
+
o = o.parentNode || o.host;
|
|
12
|
+
} while (o);
|
|
13
|
+
}
|
|
14
|
+
return !1;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
f as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { isHTMLElement as u, isElement as n } from "./instanceOf.js";
|
|
2
|
+
import { round as g } from "../utils/math.js";
|
|
3
|
+
import l from "./getWindow.js";
|
|
4
|
+
import m from "./isLayoutViewport.js";
|
|
5
|
+
function R(t, f, r) {
|
|
6
|
+
f === void 0 && (f = !1), r === void 0 && (r = !1);
|
|
7
|
+
var i = t.getBoundingClientRect(), h = 1, s = 1;
|
|
8
|
+
f && u(t) && (h = t.offsetWidth > 0 && g(i.width) / t.offsetWidth || 1, s = t.offsetHeight > 0 && g(i.height) / t.offsetHeight || 1);
|
|
9
|
+
var w = n(t) ? l(t) : window, o = w.visualViewport, d = !m() && r, a = (i.left + (d && o ? o.offsetLeft : 0)) / h, v = (i.top + (d && o ? o.offsetTop : 0)) / s, e = i.width / h, p = i.height / s;
|
|
10
|
+
return {
|
|
11
|
+
width: e,
|
|
12
|
+
height: p,
|
|
13
|
+
top: v,
|
|
14
|
+
right: a + e,
|
|
15
|
+
bottom: v + p,
|
|
16
|
+
left: a,
|
|
17
|
+
x: a,
|
|
18
|
+
y: v
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
R as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { viewport as c } from "../enums.js";
|
|
2
|
+
import v from "./getViewportRect.js";
|
|
3
|
+
import C from "./getDocumentRect.js";
|
|
4
|
+
import x from "./listScrollParents.js";
|
|
5
|
+
import b from "./getOffsetParent.js";
|
|
6
|
+
import E from "./getDocumentElement.js";
|
|
7
|
+
import P from "./getComputedStyle.js";
|
|
8
|
+
import { isHTMLElement as w, isElement as m } from "./instanceOf.js";
|
|
9
|
+
import T from "./getBoundingClientRect.js";
|
|
10
|
+
import H from "./getParentNode.js";
|
|
11
|
+
import N from "./contains.js";
|
|
12
|
+
import y from "./getNodeName.js";
|
|
13
|
+
import l from "../utils/rectToClientRect.js";
|
|
14
|
+
import { max as u, min as a } from "../utils/math.js";
|
|
15
|
+
function B(i, r) {
|
|
16
|
+
var t = T(i, !1, r === "fixed");
|
|
17
|
+
return t.top = t.top + i.clientTop, t.left = t.left + i.clientLeft, t.bottom = t.top + i.clientHeight, t.right = t.left + i.clientWidth, t.width = i.clientWidth, t.height = i.clientHeight, t.x = t.left, t.y = t.top, t;
|
|
18
|
+
}
|
|
19
|
+
function d(i, r, t) {
|
|
20
|
+
return r === c ? l(v(i, t)) : m(r) ? B(r, t) : l(C(E(i)));
|
|
21
|
+
}
|
|
22
|
+
function D(i) {
|
|
23
|
+
var r = x(H(i)), t = ["absolute", "fixed"].indexOf(P(i).position) >= 0, e = t && w(i) ? b(i) : i;
|
|
24
|
+
return m(e) ? r.filter(function(p) {
|
|
25
|
+
return m(p) && N(p, e) && y(p) !== "body";
|
|
26
|
+
}) : [];
|
|
27
|
+
}
|
|
28
|
+
function J(i, r, t, e) {
|
|
29
|
+
var p = r === "clippingParents" ? D(i) : [].concat(r), g = [].concat(p, [t]), h = g[0], o = g.reduce(function(n, s) {
|
|
30
|
+
var f = d(i, s, e);
|
|
31
|
+
return n.top = u(f.top, n.top), n.right = a(f.right, n.right), n.bottom = a(f.bottom, n.bottom), n.left = u(f.left, n.left), n;
|
|
32
|
+
}, d(i, h, e));
|
|
33
|
+
return o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
J as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import p from "./getBoundingClientRect.js";
|
|
2
|
+
import g from "./getNodeScroll.js";
|
|
3
|
+
import a from "./getNodeName.js";
|
|
4
|
+
import { isHTMLElement as n } from "./instanceOf.js";
|
|
5
|
+
import h from "./getWindowScrollBarX.js";
|
|
6
|
+
import u from "./getDocumentElement.js";
|
|
7
|
+
import s from "./isScrollParent.js";
|
|
8
|
+
import { round as d } from "../utils/math.js";
|
|
9
|
+
function v(e) {
|
|
10
|
+
var t = e.getBoundingClientRect(), o = d(t.width) / e.offsetWidth || 1, l = d(t.height) / e.offsetHeight || 1;
|
|
11
|
+
return o !== 1 || l !== 1;
|
|
12
|
+
}
|
|
13
|
+
function C(e, t, o) {
|
|
14
|
+
o === void 0 && (o = !1);
|
|
15
|
+
var l = n(t), f = n(t) && v(t), c = u(t), i = p(e, f, o), m = {
|
|
16
|
+
scrollLeft: 0,
|
|
17
|
+
scrollTop: 0
|
|
18
|
+
}, r = {
|
|
19
|
+
x: 0,
|
|
20
|
+
y: 0
|
|
21
|
+
};
|
|
22
|
+
return (l || !l && !o) && ((a(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
23
|
+
s(c)) && (m = g(t)), n(t) ? (r = p(t, !0), r.x += t.clientLeft, r.y += t.clientTop) : c && (r.x = h(c))), {
|
|
24
|
+
x: i.left + m.scrollLeft - r.x,
|
|
25
|
+
y: i.top + m.scrollTop - r.y,
|
|
26
|
+
width: i.width,
|
|
27
|
+
height: i.height
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
C as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import m from "./getDocumentElement.js";
|
|
2
|
+
import a from "./getComputedStyle.js";
|
|
3
|
+
import g from "./getWindowScrollBarX.js";
|
|
4
|
+
import f from "./getWindowScroll.js";
|
|
5
|
+
import { max as i } from "../utils/math.js";
|
|
6
|
+
function w(r) {
|
|
7
|
+
var l, o = m(r), e = f(r), t = (l = r.ownerDocument) == null ? void 0 : l.body, c = i(o.scrollWidth, o.clientWidth, t ? t.scrollWidth : 0, t ? t.clientWidth : 0), h = i(o.scrollHeight, o.clientHeight, t ? t.scrollHeight : 0, t ? t.clientHeight : 0), n = -e.scrollLeft + g(r), d = -e.scrollTop;
|
|
8
|
+
return a(t || o).direction === "rtl" && (n += i(o.clientWidth, t ? t.clientWidth : 0) - c), {
|
|
9
|
+
width: c,
|
|
10
|
+
height: h,
|
|
11
|
+
x: n,
|
|
12
|
+
y: d
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
w as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import o from "./getBoundingClientRect.js";
|
|
2
|
+
function e(t) {
|
|
3
|
+
var i = o(t), h = t.offsetWidth, f = t.offsetHeight;
|
|
4
|
+
return Math.abs(i.width - h) <= 1 && (h = i.width), Math.abs(i.height - f) <= 1 && (f = i.height), {
|
|
5
|
+
x: t.offsetLeft,
|
|
6
|
+
y: t.offsetTop,
|
|
7
|
+
width: h,
|
|
8
|
+
height: f
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
e as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import t from "./getWindowScroll.js";
|
|
2
|
+
import o from "./getWindow.js";
|
|
3
|
+
import { isHTMLElement as e } from "./instanceOf.js";
|
|
4
|
+
import l from "./getHTMLElementScroll.js";
|
|
5
|
+
function c(r) {
|
|
6
|
+
return r === o(r) || !e(r) ? t(r) : l(r);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
c as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import d from "./getWindow.js";
|
|
2
|
+
import f from "./getNodeName.js";
|
|
3
|
+
import n from "./getComputedStyle.js";
|
|
4
|
+
import { isHTMLElement as a, isShadowRoot as m } from "./instanceOf.js";
|
|
5
|
+
import g from "./isTableElement.js";
|
|
6
|
+
import s from "./getParentNode.js";
|
|
7
|
+
import p from "../utils/userAgent.js";
|
|
8
|
+
function l(r) {
|
|
9
|
+
return !a(r) || // https://github.com/popperjs/popper-core/issues/837
|
|
10
|
+
n(r).position === "fixed" ? null : r.offsetParent;
|
|
11
|
+
}
|
|
12
|
+
function v(r) {
|
|
13
|
+
var e = /firefox/i.test(p()), t = /Trident/i.test(p());
|
|
14
|
+
if (t && a(r)) {
|
|
15
|
+
var u = n(r);
|
|
16
|
+
if (u.position === "fixed")
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
var i = s(r);
|
|
20
|
+
for (m(i) && (i = i.host); a(i) && ["html", "body"].indexOf(f(i)) < 0; ) {
|
|
21
|
+
var o = n(i);
|
|
22
|
+
if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || e && o.willChange === "filter" || e && o.filter && o.filter !== "none")
|
|
23
|
+
return i;
|
|
24
|
+
i = i.parentNode;
|
|
25
|
+
}
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
function O(r) {
|
|
29
|
+
for (var e = d(r), t = l(r); t && g(t) && n(t).position === "static"; )
|
|
30
|
+
t = l(t);
|
|
31
|
+
return t && (f(t) === "html" || f(t) === "body" && n(t).position === "static") ? e : t || v(r) || e;
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
O as default
|
|
35
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import r from "./getNodeName.js";
|
|
2
|
+
import t from "./getDocumentElement.js";
|
|
3
|
+
import { isShadowRoot as a } from "./instanceOf.js";
|
|
4
|
+
function u(o) {
|
|
5
|
+
return r(o) === "html" ? o : (
|
|
6
|
+
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
7
|
+
// $FlowFixMe[incompatible-return]
|
|
8
|
+
// $FlowFixMe[prop-missing]
|
|
9
|
+
o.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
10
|
+
o.parentNode || // DOM Element detected
|
|
11
|
+
(a(o) ? o.host : null) || // ShadowRoot detected
|
|
12
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
13
|
+
t(o)
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
u as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import t from "./getParentNode.js";
|
|
2
|
+
import e from "./isScrollParent.js";
|
|
3
|
+
import o from "./getNodeName.js";
|
|
4
|
+
import { isHTMLElement as m } from "./instanceOf.js";
|
|
5
|
+
function i(r) {
|
|
6
|
+
return ["html", "body", "#document"].indexOf(o(r)) >= 0 ? r.ownerDocument.body : m(r) && e(r) ? r : i(t(r));
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
i as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import p from "./getWindow.js";
|
|
2
|
+
import w from "./getDocumentElement.js";
|
|
3
|
+
import d from "./getWindowScrollBarX.js";
|
|
4
|
+
import g from "./isLayoutViewport.js";
|
|
5
|
+
function u(i, v) {
|
|
6
|
+
var m = p(i), r = w(i), t = m.visualViewport, o = r.clientWidth, e = r.clientHeight, f = 0, a = 0;
|
|
7
|
+
if (t) {
|
|
8
|
+
o = t.width, e = t.height;
|
|
9
|
+
var h = g();
|
|
10
|
+
(h || !h && v === "fixed") && (f = t.offsetLeft, a = t.offsetTop);
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
width: o,
|
|
14
|
+
height: e,
|
|
15
|
+
x: f + d(i),
|
|
16
|
+
y: a
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
u as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import e from "./getWindow.js";
|
|
2
|
+
function i(n) {
|
|
3
|
+
var t = e(n).Element;
|
|
4
|
+
return n instanceof t || n instanceof Element;
|
|
5
|
+
}
|
|
6
|
+
function a(n) {
|
|
7
|
+
var t = e(n).HTMLElement;
|
|
8
|
+
return n instanceof t || n instanceof HTMLElement;
|
|
9
|
+
}
|
|
10
|
+
function f(n) {
|
|
11
|
+
if (typeof ShadowRoot > "u")
|
|
12
|
+
return !1;
|
|
13
|
+
var t = e(n).ShadowRoot;
|
|
14
|
+
return n instanceof t || n instanceof ShadowRoot;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
i as isElement,
|
|
18
|
+
a as isHTMLElement,
|
|
19
|
+
f as isShadowRoot
|
|
20
|
+
};
|