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,197 @@
|
|
|
1
|
+
import { __require as ee } from "../../side-channel/index.js";
|
|
2
|
+
import { __require as re } from "./utils.js";
|
|
3
|
+
import { __require as ne } from "./formats.js";
|
|
4
|
+
var P, G;
|
|
5
|
+
function oe() {
|
|
6
|
+
if (G) return P;
|
|
7
|
+
G = 1;
|
|
8
|
+
var z = ee(), E = /* @__PURE__ */ re(), b = /* @__PURE__ */ ne(), x = Object.prototype.hasOwnProperty, A = {
|
|
9
|
+
brackets: function(e) {
|
|
10
|
+
return e + "[]";
|
|
11
|
+
},
|
|
12
|
+
comma: "comma",
|
|
13
|
+
indices: function(e, a) {
|
|
14
|
+
return e + "[" + a + "]";
|
|
15
|
+
},
|
|
16
|
+
repeat: function(e) {
|
|
17
|
+
return e;
|
|
18
|
+
}
|
|
19
|
+
}, l = Array.isArray, J = Array.prototype.push, k = function(t, e) {
|
|
20
|
+
J.apply(t, l(e) ? e : [e]);
|
|
21
|
+
}, L = Date.prototype.toISOString, Q = b.default, i = {
|
|
22
|
+
addQueryPrefix: !1,
|
|
23
|
+
allowDots: !1,
|
|
24
|
+
allowEmptyArrays: !1,
|
|
25
|
+
arrayFormat: "indices",
|
|
26
|
+
charset: "utf-8",
|
|
27
|
+
charsetSentinel: !1,
|
|
28
|
+
commaRoundTrip: !1,
|
|
29
|
+
delimiter: "&",
|
|
30
|
+
encode: !0,
|
|
31
|
+
encodeDotInKeys: !1,
|
|
32
|
+
encoder: E.encode,
|
|
33
|
+
encodeValuesOnly: !1,
|
|
34
|
+
filter: void 0,
|
|
35
|
+
format: Q,
|
|
36
|
+
formatter: b.formatters[Q],
|
|
37
|
+
// deprecated
|
|
38
|
+
indices: !1,
|
|
39
|
+
serializeDate: function(e) {
|
|
40
|
+
return L.call(e);
|
|
41
|
+
},
|
|
42
|
+
skipNulls: !1,
|
|
43
|
+
strictNullHandling: !1
|
|
44
|
+
}, W = function(e) {
|
|
45
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
46
|
+
}, I = {}, X = function t(e, a, r, o, f, u, s, w, d, c, v, h, p, y, g, D, N, q) {
|
|
47
|
+
for (var n = e, T = q, j = 0, H = !1; (T = T.get(I)) !== void 0 && !H; ) {
|
|
48
|
+
var B = T.get(e);
|
|
49
|
+
if (j += 1, typeof B < "u") {
|
|
50
|
+
if (B === j)
|
|
51
|
+
throw new RangeError("Cyclic object value");
|
|
52
|
+
H = !0;
|
|
53
|
+
}
|
|
54
|
+
typeof T.get(I) > "u" && (j = 0);
|
|
55
|
+
}
|
|
56
|
+
if (typeof c == "function" ? n = c(a, n) : n instanceof Date ? n = p(n) : r === "comma" && l(n) && (n = E.maybeMap(n, function(O) {
|
|
57
|
+
return O instanceof Date ? p(O) : O;
|
|
58
|
+
})), n === null) {
|
|
59
|
+
if (u)
|
|
60
|
+
return d && !D ? d(a, i.encoder, N, "key", y) : a;
|
|
61
|
+
n = "";
|
|
62
|
+
}
|
|
63
|
+
if (W(n) || E.isBuffer(n)) {
|
|
64
|
+
if (d) {
|
|
65
|
+
var Z = D ? a : d(a, i.encoder, N, "key", y);
|
|
66
|
+
return [g(Z) + "=" + g(d(n, i.encoder, N, "value", y))];
|
|
67
|
+
}
|
|
68
|
+
return [g(a) + "=" + g(String(n))];
|
|
69
|
+
}
|
|
70
|
+
var R = [];
|
|
71
|
+
if (typeof n > "u")
|
|
72
|
+
return R;
|
|
73
|
+
var S;
|
|
74
|
+
if (r === "comma" && l(n))
|
|
75
|
+
D && d && (n = E.maybeMap(n, d)), S = [{ value: n.length > 0 ? n.join(",") || null : void 0 }];
|
|
76
|
+
else if (l(c))
|
|
77
|
+
S = c;
|
|
78
|
+
else {
|
|
79
|
+
var C = Object.keys(n);
|
|
80
|
+
S = v ? C.sort(v) : C;
|
|
81
|
+
}
|
|
82
|
+
var M = w ? String(a).replace(/\./g, "%2E") : String(a), F = o && l(n) && n.length === 1 ? M + "[]" : M;
|
|
83
|
+
if (f && l(n) && n.length === 0)
|
|
84
|
+
return F + "[]";
|
|
85
|
+
for (var _ = 0; _ < S.length; ++_) {
|
|
86
|
+
var m = S[_], U = typeof m == "object" && m && typeof m.value < "u" ? m.value : n[m];
|
|
87
|
+
if (!(s && U === null)) {
|
|
88
|
+
var K = h && w ? String(m).replace(/\./g, "%2E") : String(m), $ = l(n) ? typeof r == "function" ? r(F, K) : F : F + (h ? "." + K : "[" + K + "]");
|
|
89
|
+
q.set(e, j);
|
|
90
|
+
var V = z();
|
|
91
|
+
V.set(I, q), k(R, t(
|
|
92
|
+
U,
|
|
93
|
+
$,
|
|
94
|
+
r,
|
|
95
|
+
o,
|
|
96
|
+
f,
|
|
97
|
+
u,
|
|
98
|
+
s,
|
|
99
|
+
w,
|
|
100
|
+
r === "comma" && D && l(n) ? null : d,
|
|
101
|
+
c,
|
|
102
|
+
v,
|
|
103
|
+
h,
|
|
104
|
+
p,
|
|
105
|
+
y,
|
|
106
|
+
g,
|
|
107
|
+
D,
|
|
108
|
+
N,
|
|
109
|
+
V
|
|
110
|
+
));
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return R;
|
|
114
|
+
}, Y = function(e) {
|
|
115
|
+
if (!e)
|
|
116
|
+
return i;
|
|
117
|
+
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
118
|
+
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
119
|
+
if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
|
|
120
|
+
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
121
|
+
if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
|
|
122
|
+
throw new TypeError("Encoder has to be a function.");
|
|
123
|
+
var a = e.charset || i.charset;
|
|
124
|
+
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
125
|
+
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
126
|
+
var r = b.default;
|
|
127
|
+
if (typeof e.format < "u") {
|
|
128
|
+
if (!x.call(b.formatters, e.format))
|
|
129
|
+
throw new TypeError("Unknown format option provided.");
|
|
130
|
+
r = e.format;
|
|
131
|
+
}
|
|
132
|
+
var o = b.formatters[r], f = i.filter;
|
|
133
|
+
(typeof e.filter == "function" || l(e.filter)) && (f = e.filter);
|
|
134
|
+
var u;
|
|
135
|
+
if (e.arrayFormat in A ? u = e.arrayFormat : "indices" in e ? u = e.indices ? "indices" : "repeat" : u = i.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
136
|
+
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
137
|
+
var s = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : i.allowDots : !!e.allowDots;
|
|
138
|
+
return {
|
|
139
|
+
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : i.addQueryPrefix,
|
|
140
|
+
allowDots: s,
|
|
141
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : i.allowEmptyArrays,
|
|
142
|
+
arrayFormat: u,
|
|
143
|
+
charset: a,
|
|
144
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : i.charsetSentinel,
|
|
145
|
+
commaRoundTrip: !!e.commaRoundTrip,
|
|
146
|
+
delimiter: typeof e.delimiter > "u" ? i.delimiter : e.delimiter,
|
|
147
|
+
encode: typeof e.encode == "boolean" ? e.encode : i.encode,
|
|
148
|
+
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : i.encodeDotInKeys,
|
|
149
|
+
encoder: typeof e.encoder == "function" ? e.encoder : i.encoder,
|
|
150
|
+
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : i.encodeValuesOnly,
|
|
151
|
+
filter: f,
|
|
152
|
+
format: r,
|
|
153
|
+
formatter: o,
|
|
154
|
+
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : i.serializeDate,
|
|
155
|
+
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : i.skipNulls,
|
|
156
|
+
sort: typeof e.sort == "function" ? e.sort : null,
|
|
157
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : i.strictNullHandling
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
return P = function(t, e) {
|
|
161
|
+
var a = t, r = Y(e), o, f;
|
|
162
|
+
typeof r.filter == "function" ? (f = r.filter, a = f("", a)) : l(r.filter) && (f = r.filter, o = f);
|
|
163
|
+
var u = [];
|
|
164
|
+
if (typeof a != "object" || a === null)
|
|
165
|
+
return "";
|
|
166
|
+
var s = A[r.arrayFormat], w = s === "comma" && r.commaRoundTrip;
|
|
167
|
+
o || (o = Object.keys(a)), r.sort && o.sort(r.sort);
|
|
168
|
+
for (var d = z(), c = 0; c < o.length; ++c) {
|
|
169
|
+
var v = o[c], h = a[v];
|
|
170
|
+
r.skipNulls && h === null || k(u, X(
|
|
171
|
+
h,
|
|
172
|
+
v,
|
|
173
|
+
s,
|
|
174
|
+
w,
|
|
175
|
+
r.allowEmptyArrays,
|
|
176
|
+
r.strictNullHandling,
|
|
177
|
+
r.skipNulls,
|
|
178
|
+
r.encodeDotInKeys,
|
|
179
|
+
r.encode ? r.encoder : null,
|
|
180
|
+
r.filter,
|
|
181
|
+
r.sort,
|
|
182
|
+
r.allowDots,
|
|
183
|
+
r.serializeDate,
|
|
184
|
+
r.format,
|
|
185
|
+
r.formatter,
|
|
186
|
+
r.encodeValuesOnly,
|
|
187
|
+
r.charset,
|
|
188
|
+
d
|
|
189
|
+
));
|
|
190
|
+
}
|
|
191
|
+
var p = u.join(r.delimiter), y = r.addQueryPrefix === !0 ? "?" : "";
|
|
192
|
+
return r.charsetSentinel && (r.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), p.length > 0 ? y + p : "";
|
|
193
|
+
}, P;
|
|
194
|
+
}
|
|
195
|
+
export {
|
|
196
|
+
oe as __require
|
|
197
|
+
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { __require as T } from "./formats.js";
|
|
2
|
+
var b, F;
|
|
3
|
+
function w() {
|
|
4
|
+
if (F) return b;
|
|
5
|
+
F = 1;
|
|
6
|
+
var O = /* @__PURE__ */ T(), s = Object.prototype.hasOwnProperty, x = Array.isArray, l = (function() {
|
|
7
|
+
for (var i = [], e = 0; e < 256; ++e)
|
|
8
|
+
i.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
9
|
+
return i;
|
|
10
|
+
})(), g = function(e) {
|
|
11
|
+
for (; e.length > 1; ) {
|
|
12
|
+
var r = e.pop(), n = r.obj[r.prop];
|
|
13
|
+
if (x(n)) {
|
|
14
|
+
for (var f = [], u = 0; u < n.length; ++u)
|
|
15
|
+
typeof n[u] < "u" && f.push(n[u]);
|
|
16
|
+
r.obj[r.prop] = f;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}, d = function(e, r) {
|
|
20
|
+
for (var n = r && r.plainObjects ? { __proto__: null } : {}, f = 0; f < e.length; ++f)
|
|
21
|
+
typeof e[f] < "u" && (n[f] = e[f]);
|
|
22
|
+
return n;
|
|
23
|
+
}, E = function i(e, r, n) {
|
|
24
|
+
if (!r)
|
|
25
|
+
return e;
|
|
26
|
+
if (typeof r != "object" && typeof r != "function") {
|
|
27
|
+
if (x(e))
|
|
28
|
+
e.push(r);
|
|
29
|
+
else if (e && typeof e == "object")
|
|
30
|
+
(n && (n.plainObjects || n.allowPrototypes) || !s.call(Object.prototype, r)) && (e[r] = !0);
|
|
31
|
+
else
|
|
32
|
+
return [e, r];
|
|
33
|
+
return e;
|
|
34
|
+
}
|
|
35
|
+
if (!e || typeof e != "object")
|
|
36
|
+
return [e].concat(r);
|
|
37
|
+
var f = e;
|
|
38
|
+
return x(e) && !x(r) && (f = d(e, n)), x(e) && x(r) ? (r.forEach(function(u, t) {
|
|
39
|
+
if (s.call(e, t)) {
|
|
40
|
+
var p = e[t];
|
|
41
|
+
p && typeof p == "object" && u && typeof u == "object" ? e[t] = i(p, u, n) : e.push(u);
|
|
42
|
+
} else
|
|
43
|
+
e[t] = u;
|
|
44
|
+
}), e) : Object.keys(r).reduce(function(u, t) {
|
|
45
|
+
var p = r[t];
|
|
46
|
+
return s.call(u, t) ? u[t] = i(u[t], p, n) : u[t] = p, u;
|
|
47
|
+
}, f);
|
|
48
|
+
}, j = function(e, r) {
|
|
49
|
+
return Object.keys(r).reduce(function(n, f) {
|
|
50
|
+
return n[f] = r[f], n;
|
|
51
|
+
}, e);
|
|
52
|
+
}, m = function(i, e, r) {
|
|
53
|
+
var n = i.replace(/\+/g, " ");
|
|
54
|
+
if (r === "iso-8859-1")
|
|
55
|
+
return n.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
56
|
+
try {
|
|
57
|
+
return decodeURIComponent(n);
|
|
58
|
+
} catch {
|
|
59
|
+
return n;
|
|
60
|
+
}
|
|
61
|
+
}, y = 1024, A = function(e, r, n, f, u) {
|
|
62
|
+
if (e.length === 0)
|
|
63
|
+
return e;
|
|
64
|
+
var t = e;
|
|
65
|
+
if (typeof e == "symbol" ? t = Symbol.prototype.toString.call(e) : typeof e != "string" && (t = String(e)), n === "iso-8859-1")
|
|
66
|
+
return escape(t).replace(/%u[0-9a-f]{4}/gi, function(q) {
|
|
67
|
+
return "%26%23" + parseInt(q.slice(2), 16) + "%3B";
|
|
68
|
+
});
|
|
69
|
+
for (var p = "", v = 0; v < t.length; v += y) {
|
|
70
|
+
for (var c = t.length >= y ? t.slice(v, v + y) : t, a = [], h = 0; h < c.length; ++h) {
|
|
71
|
+
var o = c.charCodeAt(h);
|
|
72
|
+
if (o === 45 || o === 46 || o === 95 || o === 126 || o >= 48 && o <= 57 || o >= 65 && o <= 90 || o >= 97 && o <= 122 || u === O.RFC1738 && (o === 40 || o === 41)) {
|
|
73
|
+
a[a.length] = c.charAt(h);
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
if (o < 128) {
|
|
77
|
+
a[a.length] = l[o];
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
80
|
+
if (o < 2048) {
|
|
81
|
+
a[a.length] = l[192 | o >> 6] + l[128 | o & 63];
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
if (o < 55296 || o >= 57344) {
|
|
85
|
+
a[a.length] = l[224 | o >> 12] + l[128 | o >> 6 & 63] + l[128 | o & 63];
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
h += 1, o = 65536 + ((o & 1023) << 10 | c.charCodeAt(h) & 1023), a[a.length] = l[240 | o >> 18] + l[128 | o >> 12 & 63] + l[128 | o >> 6 & 63] + l[128 | o & 63];
|
|
89
|
+
}
|
|
90
|
+
p += a.join("");
|
|
91
|
+
}
|
|
92
|
+
return p;
|
|
93
|
+
}, _ = function(e) {
|
|
94
|
+
for (var r = [{ obj: { o: e }, prop: "o" }], n = [], f = 0; f < r.length; ++f)
|
|
95
|
+
for (var u = r[f], t = u.obj[u.prop], p = Object.keys(t), v = 0; v < p.length; ++v) {
|
|
96
|
+
var c = p[v], a = t[c];
|
|
97
|
+
typeof a == "object" && a !== null && n.indexOf(a) === -1 && (r.push({ obj: t, prop: c }), n.push(a));
|
|
98
|
+
}
|
|
99
|
+
return g(r), e;
|
|
100
|
+
}, R = function(e) {
|
|
101
|
+
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
102
|
+
}, S = function(e) {
|
|
103
|
+
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
|
|
104
|
+
}, B = function(e, r) {
|
|
105
|
+
return [].concat(e, r);
|
|
106
|
+
}, C = function(e, r) {
|
|
107
|
+
if (x(e)) {
|
|
108
|
+
for (var n = [], f = 0; f < e.length; f += 1)
|
|
109
|
+
n.push(r(e[f]));
|
|
110
|
+
return n;
|
|
111
|
+
}
|
|
112
|
+
return r(e);
|
|
113
|
+
};
|
|
114
|
+
return b = {
|
|
115
|
+
arrayToObject: d,
|
|
116
|
+
assign: j,
|
|
117
|
+
combine: B,
|
|
118
|
+
compact: _,
|
|
119
|
+
decode: m,
|
|
120
|
+
encode: A,
|
|
121
|
+
isBuffer: S,
|
|
122
|
+
isRegExp: R,
|
|
123
|
+
maybeMap: C,
|
|
124
|
+
merge: E
|
|
125
|
+
}, b;
|
|
126
|
+
}
|
|
127
|
+
export {
|
|
128
|
+
w as __require
|
|
129
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const i = (n) => n === void 0 || n === "auto" || n === "instant" || n === "smooth";
|
|
2
|
+
function u(n, e) {
|
|
3
|
+
this.scrollLeft = n, this.scrollTop = e;
|
|
4
|
+
}
|
|
5
|
+
const o = (n, e, t = "cannot convert to dictionary.") => `Failed to execute '${n}' on '${e}': ${t}`, s = (n, e, t) => o(n, e, `The provided value '${t}' is not a valid enum value of type ScrollBehavior.`), a = (n, e, t) => {
|
|
6
|
+
var c;
|
|
7
|
+
const l = `__SEAMLESS.BACKUP$${e}`;
|
|
8
|
+
return !n[l] && n[e] && !(!((c = n[e]) === null || c === void 0) && c.__isPolyfill) && (n[l] = n[e]), n[l] || t;
|
|
9
|
+
}, r = (n) => {
|
|
10
|
+
const e = typeof n;
|
|
11
|
+
return n !== null && (e === "object" || e === "function");
|
|
12
|
+
}, d = (n) => n.ownerDocument.scrollingElement || n.ownerDocument.documentElement;
|
|
13
|
+
export {
|
|
14
|
+
a as backupMethod,
|
|
15
|
+
i as checkBehavior,
|
|
16
|
+
u as elementScrollXY,
|
|
17
|
+
o as failedExecute,
|
|
18
|
+
s as failedExecuteInvalidEnumValue,
|
|
19
|
+
r as isObject,
|
|
20
|
+
d as scrollingElement
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const u = (r) => 0.5 * (1 - Math.cos(Math.PI * r));
|
|
2
|
+
function s() {
|
|
3
|
+
var r;
|
|
4
|
+
let a;
|
|
5
|
+
return !((r = window.performance) === null || r === void 0) && r.now ? a = () => window.performance.now() : a = () => window.Date.now(), s = a, a();
|
|
6
|
+
}
|
|
7
|
+
const o = 500, w = (r) => {
|
|
8
|
+
const e = (s() - r.timeStamp) / (r.duration || o);
|
|
9
|
+
if (e > 1) {
|
|
10
|
+
r.method(r.targetX, r.targetY), r.callback();
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
const n = (r.timingFunc || u)(e), i = r.startX + (r.targetX - r.startX) * n, t = r.startY + (r.targetY - r.startY) * n;
|
|
14
|
+
r.method(i, t), r.rafId = window.requestAnimationFrame(() => {
|
|
15
|
+
w(r);
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
s as now,
|
|
20
|
+
w as step
|
|
21
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { scrollingElement as h, isObject as b, failedExecute as L, checkBehavior as y, failedExecuteInvalidEnumValue as T, backupMethod as w, elementScrollXY as S } from "./common.js";
|
|
2
|
+
import { scrollEndEvent as g } from "./scroll-end-event.js";
|
|
3
|
+
import { now as k, step as x } from "./scroll-step.js";
|
|
4
|
+
const l = (t) => isFinite(t) ? Number(t) : 0, D = (t) => {
|
|
5
|
+
var o;
|
|
6
|
+
return (o = t.isConnected) !== null && o !== void 0 ? o : !t.ownerDocument || // eslint-disable-next-line no-bitwise
|
|
7
|
+
!(t.ownerDocument.compareDocumentPosition(t) & /** DOCUMENT_POSITION_DISCONNECTED */
|
|
8
|
+
1);
|
|
9
|
+
}, O = (t, o, c) => {
|
|
10
|
+
var i, n;
|
|
11
|
+
if (!D(t))
|
|
12
|
+
return;
|
|
13
|
+
const r = t.scrollLeft, e = t.scrollTop, a = l((i = o.left) !== null && i !== void 0 ? i : r), d = l((n = o.top) !== null && n !== void 0 ? n : e);
|
|
14
|
+
if (a === r && d === e)
|
|
15
|
+
return;
|
|
16
|
+
const f = w(HTMLElement.prototype, "scroll", S), u = w(Object.getPrototypeOf(t), "scroll", f).bind(t);
|
|
17
|
+
if (o.behavior !== "smooth") {
|
|
18
|
+
u(a, d);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const m = () => {
|
|
22
|
+
window.removeEventListener("wheel", s), window.removeEventListener("touchmove", s);
|
|
23
|
+
}, p = () => {
|
|
24
|
+
m();
|
|
25
|
+
const E = t.nodeType === /** Node.DOCUMENT_NODE */
|
|
26
|
+
9;
|
|
27
|
+
t.dispatchEvent(g(E));
|
|
28
|
+
}, v = Object.assign(Object.assign({}, c), {
|
|
29
|
+
timeStamp: k(),
|
|
30
|
+
startX: r,
|
|
31
|
+
startY: e,
|
|
32
|
+
targetX: a,
|
|
33
|
+
targetY: d,
|
|
34
|
+
rafId: 0,
|
|
35
|
+
method: u,
|
|
36
|
+
callback: p
|
|
37
|
+
}), s = () => {
|
|
38
|
+
window.cancelAnimationFrame(v.rafId), m();
|
|
39
|
+
};
|
|
40
|
+
window.addEventListener("wheel", s, {
|
|
41
|
+
passive: !0,
|
|
42
|
+
once: !0
|
|
43
|
+
}), window.addEventListener("touchmove", s, {
|
|
44
|
+
passive: !0,
|
|
45
|
+
once: !0
|
|
46
|
+
}), x(v);
|
|
47
|
+
}, j = (t) => t.window === t, F = (t) => (o, c, i) => {
|
|
48
|
+
const [n, r] = j(o) ? [h(o.document.documentElement), "Window"] : [o, "Element"], e = c ?? {};
|
|
49
|
+
if (!b(e))
|
|
50
|
+
throw new TypeError(L(t, r));
|
|
51
|
+
if (!y(e.behavior))
|
|
52
|
+
throw new TypeError(T(t, r, e.behavior));
|
|
53
|
+
t === "scrollBy" && (e.left = l(e.left) + n.scrollLeft, e.top = l(e.top) + n.scrollTop), O(n, e, i);
|
|
54
|
+
}, I = /* @__PURE__ */ F("scroll"), _ = I;
|
|
55
|
+
export {
|
|
56
|
+
_ as elementScroll,
|
|
57
|
+
I as scroll
|
|
58
|
+
};
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { checkBehavior as _, failedExecuteInvalidEnumValue as Y, scrollingElement as B } from "./common.js";
|
|
2
|
+
import { elementScroll as N } from "./scroll.js";
|
|
3
|
+
const C = (t) => {
|
|
4
|
+
switch (t) {
|
|
5
|
+
case "horizontal-tb":
|
|
6
|
+
case "lr":
|
|
7
|
+
case "lr-tb":
|
|
8
|
+
case "rl":
|
|
9
|
+
case "rl-tb":
|
|
10
|
+
return 0;
|
|
11
|
+
case "vertical-rl":
|
|
12
|
+
case "tb":
|
|
13
|
+
case "tb-rl":
|
|
14
|
+
return 1;
|
|
15
|
+
case "vertical-lr":
|
|
16
|
+
case "tb-lr":
|
|
17
|
+
return 2;
|
|
18
|
+
case "sideways-rl":
|
|
19
|
+
return 3;
|
|
20
|
+
case "sideways-lr":
|
|
21
|
+
return 4;
|
|
22
|
+
}
|
|
23
|
+
return 0;
|
|
24
|
+
}, I = (t, e, r, i) => {
|
|
25
|
+
let o = 0;
|
|
26
|
+
switch (e || (o ^= 2), t) {
|
|
27
|
+
/**
|
|
28
|
+
* ↓→
|
|
29
|
+
* | 1 | 2 | 3 |
|
|
30
|
+
* | 4 | 5 | |
|
|
31
|
+
* | | | |
|
|
32
|
+
*
|
|
33
|
+
* RTL: ↓←
|
|
34
|
+
* | 3 | 2 | 1 |
|
|
35
|
+
* | | 5 | 4 |
|
|
36
|
+
* | | | |
|
|
37
|
+
*/
|
|
38
|
+
case 0:
|
|
39
|
+
o = o >> 1 | (o & 1) << 1, [r, i] = [i, r];
|
|
40
|
+
break;
|
|
41
|
+
/**
|
|
42
|
+
* ↓←
|
|
43
|
+
* | | 4 | 1 |
|
|
44
|
+
* | | 5 | 2 |
|
|
45
|
+
* | | | 3 |
|
|
46
|
+
*
|
|
47
|
+
* RTL: ↑←
|
|
48
|
+
* | | | 3 |
|
|
49
|
+
* | | 5 | 2 |
|
|
50
|
+
* | | 4 | 1 |
|
|
51
|
+
*/
|
|
52
|
+
case 1:
|
|
53
|
+
case 3:
|
|
54
|
+
o ^= 1;
|
|
55
|
+
break;
|
|
56
|
+
/**
|
|
57
|
+
* ↑→
|
|
58
|
+
* | 3 | | |
|
|
59
|
+
* | 2 | 5 | |
|
|
60
|
+
* | 1 | 4 | |
|
|
61
|
+
*
|
|
62
|
+
* RTL: ↓→
|
|
63
|
+
* | 1 | 4 | |
|
|
64
|
+
* | 2 | 5 | |
|
|
65
|
+
* | 3 | | |
|
|
66
|
+
*/
|
|
67
|
+
case 4:
|
|
68
|
+
o ^= 2;
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
return [o, r, i];
|
|
72
|
+
}, F = (t) => (I(C(t.writingMode), t.direction !== "rtl", void 0, void 0)[0] & 1) === 1, $ = (t, e, r) => {
|
|
73
|
+
const [i, o, c] = I(e, r, t.block || "start", t.inline || "nearest");
|
|
74
|
+
return [o, c].map((l, f) => {
|
|
75
|
+
switch (l) {
|
|
76
|
+
case "center":
|
|
77
|
+
return 1;
|
|
78
|
+
case "nearest":
|
|
79
|
+
return 0;
|
|
80
|
+
default: {
|
|
81
|
+
const a = i >> f & 1;
|
|
82
|
+
return l === "start" == !a ? 2 : 3;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}, x = (t, e, r, i, o, c, l) => t !== 0 ? t : o < e && c > r || o > e && c < r ? null : o <= e && l <= i || c >= r && l >= i ? 2 : c > r && l < i || o < e && l > i ? 3 : null, A = (t) => t !== "visible" && t !== "clip", O = (t) => {
|
|
87
|
+
var e;
|
|
88
|
+
try {
|
|
89
|
+
return ((e = t.ownerDocument.defaultView) === null || e === void 0 ? void 0 : e.frameElement) || null;
|
|
90
|
+
} catch {
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
}, j = (t, e) => t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth ? A(e.overflowY) || A(e.overflowX) || t === B(t) : !1, R = (t) => {
|
|
94
|
+
const e = t.parentNode, r = t.parentElement;
|
|
95
|
+
if (r === null && e !== null) {
|
|
96
|
+
if (e.nodeType === /** Node.DOCUMENT_FRAGMENT_NODE */
|
|
97
|
+
11)
|
|
98
|
+
return e.host;
|
|
99
|
+
if (e.nodeType === /** Node.DOCUMENT_NODE */
|
|
100
|
+
9)
|
|
101
|
+
return O(t);
|
|
102
|
+
}
|
|
103
|
+
return r;
|
|
104
|
+
}, T = (t, e, r) => t < e ? e : t > r ? r : t, q = (t) => ["scroll-margin", "scroll-snap-margin"].filter((e) => e in t.documentElement.style)[0], G = (t, e, r) => {
|
|
105
|
+
const { top: i, right: o, bottom: c, left: l } = e, f = q(t.ownerDocument);
|
|
106
|
+
if (!f)
|
|
107
|
+
return [i, o, c, l];
|
|
108
|
+
const a = (d) => {
|
|
109
|
+
const s = r.getPropertyValue(`${f}-${d}`);
|
|
110
|
+
return parseInt(s, 10) || 0;
|
|
111
|
+
};
|
|
112
|
+
return [
|
|
113
|
+
i - a("top"),
|
|
114
|
+
o + a("right"),
|
|
115
|
+
c + a("bottom"),
|
|
116
|
+
l - a("left")
|
|
117
|
+
];
|
|
118
|
+
}, w = (t, e, r) => {
|
|
119
|
+
switch (t) {
|
|
120
|
+
case 1:
|
|
121
|
+
return (e + r) / 2;
|
|
122
|
+
case 3:
|
|
123
|
+
return r;
|
|
124
|
+
case 2:
|
|
125
|
+
case 0:
|
|
126
|
+
return e;
|
|
127
|
+
}
|
|
128
|
+
}, J = (t, e) => {
|
|
129
|
+
var r, i, o;
|
|
130
|
+
const c = (r = t.ownerDocument.defaultView) === null || r === void 0 ? void 0 : r.visualViewport, [l, f, a, d] = t === B(t) ? [0, 0, (i = c?.width) !== null && i !== void 0 ? i : t.clientWidth, (o = c?.height) !== null && o !== void 0 ? o : t.clientHeight] : [e.left, e.top, t.clientWidth, t.clientHeight], s = l + t.clientLeft, u = f + t.clientTop, h = s + a, p = u + d;
|
|
131
|
+
return [u, h, p, s];
|
|
132
|
+
}, K = (t, e) => {
|
|
133
|
+
const r = [];
|
|
134
|
+
let i = t.ownerDocument, o = i.defaultView;
|
|
135
|
+
if (!o)
|
|
136
|
+
return r;
|
|
137
|
+
const c = window.getComputedStyle(t), l = c.direction !== "rtl", f = C(c.writingMode || c.getPropertyValue("-webkit-writing-mode") || c.getPropertyValue("-ms-writing-mode")), [a, d] = $(e, f, l);
|
|
138
|
+
let [s, u, h, p] = G(t, t.getBoundingClientRect(), c);
|
|
139
|
+
for (let n = R(t); n !== null; n = R(n)) {
|
|
140
|
+
if (i !== n.ownerDocument) {
|
|
141
|
+
if (i = n.ownerDocument, o = i.defaultView, !o)
|
|
142
|
+
break;
|
|
143
|
+
const { left: L, top: D } = n.getBoundingClientRect();
|
|
144
|
+
s += D, u += L, h += D, p += L;
|
|
145
|
+
}
|
|
146
|
+
const b = o.getComputedStyle(n);
|
|
147
|
+
if (b.position === "fixed")
|
|
148
|
+
break;
|
|
149
|
+
if (!j(n, b))
|
|
150
|
+
continue;
|
|
151
|
+
const P = n.getBoundingClientRect(), [v, g, m, y] = J(n, P), V = x(a, y, g, n.clientWidth, p, u, u - p), W = x(d, v, m, n.clientHeight, s, h, h - s), k = V === null ? 0 : w(V, p, u) - w(V, y, g), X = W === null ? 0 : w(W, s, h) - w(W, v, m), M = F(b) ? T(k, -n.scrollWidth + n.clientWidth - n.scrollLeft, -n.scrollLeft) : T(k, -n.scrollLeft, n.scrollWidth - n.clientWidth - n.scrollLeft), H = T(X, -n.scrollTop, n.scrollHeight - n.clientHeight - n.scrollTop);
|
|
152
|
+
r.push([
|
|
153
|
+
n,
|
|
154
|
+
{ left: n.scrollLeft + M, top: n.scrollTop + H, behavior: e.behavior }
|
|
155
|
+
]), s = Math.max(s - H, v), u = Math.min(u - M, g), h = Math.min(h - H, m), p = Math.max(p - M, y);
|
|
156
|
+
}
|
|
157
|
+
return r;
|
|
158
|
+
}, Z = (t, e, r) => {
|
|
159
|
+
const i = e || {};
|
|
160
|
+
if (!_(i.behavior))
|
|
161
|
+
throw new TypeError(Y("scrollIntoView", "Element", i.behavior));
|
|
162
|
+
K(t, i).forEach(([c, l]) => {
|
|
163
|
+
N(c, l, r);
|
|
164
|
+
});
|
|
165
|
+
};
|
|
166
|
+
export {
|
|
167
|
+
Z as scrollIntoView
|
|
168
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { __require as f } from "../es-errors/type.js";
|
|
2
|
+
import { __require as c } from "../object-inspect/index.js";
|
|
3
|
+
import { __require as p } from "../side-channel-list/index.js";
|
|
4
|
+
import { __require as q } from "../side-channel-map/index.js";
|
|
5
|
+
import { __require as m } from "../side-channel-weakmap/index.js";
|
|
6
|
+
var n, i;
|
|
7
|
+
function k() {
|
|
8
|
+
if (i) return n;
|
|
9
|
+
i = 1;
|
|
10
|
+
var t = /* @__PURE__ */ f(), u = /* @__PURE__ */ c(), o = p(), s = q(), h = m(), l = h || s || o;
|
|
11
|
+
return n = function() {
|
|
12
|
+
var r, a = {
|
|
13
|
+
assert: function(e) {
|
|
14
|
+
if (!a.has(e))
|
|
15
|
+
throw new t("Side channel does not contain " + u(e));
|
|
16
|
+
},
|
|
17
|
+
delete: function(e) {
|
|
18
|
+
return !!r && r.delete(e);
|
|
19
|
+
},
|
|
20
|
+
get: function(e) {
|
|
21
|
+
return r && r.get(e);
|
|
22
|
+
},
|
|
23
|
+
has: function(e) {
|
|
24
|
+
return !!r && r.has(e);
|
|
25
|
+
},
|
|
26
|
+
set: function(e, d) {
|
|
27
|
+
r || (r = l()), r.set(e, d);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
return a;
|
|
31
|
+
}, n;
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
k as __require
|
|
35
|
+
};
|