infinity-forge 2.4.2 → 2.4.3
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/sites/components/default-pages/blog/components/blog-item/index.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/blog-item/index.js +3 -3
- package/dist/sites/components/default-pages/blog/components/blog-item/intefaces.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/blog-item/share/index.js +2 -2
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.js +2 -2
- package/dist/sites/components/default-pages/blog/components/featured-blog/index.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/featured-blog/index.js +2 -2
- package/dist/sites/components/default-pages/blog/components/featured-blog/interfaces.d.ts +2 -2
- package/dist/sites/components/default-pages/blog/components/side-box-categories/index.d.ts +2 -2
- package/dist/sites/components/default-pages/blog/components/side-box-categories/index.js +2 -2
- package/dist/sites/components/default-pages/blog/components/side-box-categories/interfaces.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/side-box-newsletter/index.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/side-box-newsletter/index.js +3 -3
- package/dist/sites/components/default-pages/blog/components/title-blog/index.js +2 -2
- package/dist/system/domain/protocols/http/errors/http-errors/index.d.ts +7 -7
- package/dist/system/domain/protocols/http/errors/http-errors/index.js +7 -7
- package/dist/system/domain/protocols/http/errors/system-errors-model/index.d.ts +1 -1
- package/dist/system/domain/protocols/http/errors/system-errors-model/index.js +1 -1
- package/dist/system/domain/use-cases/auth/admin/index.js +18 -0
- package/dist/system/presentation/components/data/avatar/index.js +59 -0
- package/dist/system/presentation/components/data/buttons/index.d.ts +1 -0
- package/dist/system/presentation/components/data/buttons/index.js +18 -0
- package/dist/system/presentation/components/data/buttons/sidebar-button/index.js +3 -3
- package/dist/system/presentation/components/data/chat/card-message/index.d.ts +1 -1
- package/dist/system/presentation/components/data/chat/card-message/index.js +3 -3
- package/dist/system/presentation/components/data/chat/index.d.ts +2 -0
- package/dist/system/presentation/components/data/chat/index.js +38 -0
- package/dist/system/presentation/components/data/chat/interfaces.d.ts +8 -0
- package/dist/system/presentation/components/data/chat/loader/index.js +1 -1
- package/dist/system/presentation/components/data/detail-card/component.d.ts +2 -0
- package/dist/system/presentation/components/data/detail-card/component.js +42 -0
- package/dist/system/presentation/components/data/detail-card/index.d.ts +2 -0
- package/dist/system/presentation/components/data/detail-card/index.js +19 -0
- package/dist/system/presentation/components/data/detail-card/interfaces.d.ts +19 -0
- package/dist/system/presentation/components/data/highlight-icon/index.d.ts +2 -0
- package/dist/system/presentation/components/data/highlight-icon/index.js +40 -0
- package/dist/system/presentation/components/data/highlight-icon/interfaces.d.ts +8 -0
- package/dist/system/presentation/components/data/highlight-text/index.d.ts +2 -0
- package/dist/system/presentation/components/data/highlight-text/index.js +43 -0
- package/dist/system/presentation/components/data/input-search/index.d.ts +2 -0
- package/dist/system/presentation/components/data/input-search/index.js +39 -0
- package/dist/system/presentation/components/data/logo/index.js +34 -0
- package/dist/system/presentation/components/data/menu/component.js +17 -0
- package/dist/system/presentation/components/data/menu/components/index.d.ts +1 -1
- package/dist/system/presentation/components/data/menu/components/index.js +1 -1
- package/dist/system/presentation/components/data/menu/components/menu-item/index.js +3 -3
- package/dist/system/presentation/components/data/menu/index.d.ts +2 -0
- package/dist/system/presentation/components/data/menu/index.js +19 -0
- package/dist/system/presentation/components/data/menu/modes/collapsed-menu/index.js +5 -5
- package/dist/system/presentation/components/data/menu/modes/collapsed-menu/styles.js +1 -1
- package/dist/system/presentation/components/data/menu/modes/index.d.ts +2 -2
- package/dist/system/presentation/components/data/menu/modes/index.js +2 -2
- package/dist/system/presentation/components/data/menu/modes/opened/index.js +3 -3
- package/dist/system/presentation/components/data/menu/modes/opened/styles.js +1 -1
- package/dist/system/presentation/components/data/notifications/card/index.d.ts +1 -1
- package/dist/system/presentation/components/data/notifications/card/index.js +2 -2
- package/dist/system/presentation/components/data/notifications/index.js +155 -0
- package/dist/system/presentation/components/data/page-wrapper/index.d.ts +2 -0
- package/dist/system/presentation/components/data/page-wrapper/index.js +35 -0
- package/dist/system/presentation/components/data/page-wrapper/interfaces.d.ts +7 -0
- package/dist/system/presentation/components/data/popover/index.d.ts +2 -0
- package/dist/system/presentation/components/data/profile-infos/index.d.ts +2 -0
- package/dist/system/presentation/components/data/profile-infos/index.js +48 -0
- package/dist/system/presentation/components/data/profile-infos/interfaces.d.ts +6 -0
- package/dist/system/presentation/components/data/profile-infos/profile/index.d.ts +1 -1
- package/dist/system/presentation/components/data/profile-infos/profile/index.js +3 -3
- package/dist/system/presentation/components/data/select-workspace/index.d.ts +4 -0
- package/dist/system/presentation/components/data/select-workspace/index.js +69 -0
- package/dist/system/presentation/components/data/tab/component.d.ts +2 -0
- package/dist/system/presentation/components/data/tab/component.js +67 -0
- package/dist/system/presentation/components/data/tab/index.d.ts +2 -0
- package/dist/system/presentation/components/data/tab/index.js +19 -0
- package/dist/system/presentation/components/data/tab/interfaces.d.ts +29 -0
- package/dist/system/presentation/components/data/tab/tab-item/index.d.ts +1 -1
- package/dist/system/presentation/components/data/tab/tab-item/index.js +2 -2
- package/dist/system/presentation/components/data/tab/tab-item/styles.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/index.d.ts +2 -2
- package/dist/system/presentation/components/layout/header/components/index.js +2 -2
- package/dist/system/presentation/components/layout/header/components/menu-right/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.js +4 -5
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/interfaces.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js +5 -5
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +4 -5
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +5 -6
- package/dist/system/presentation/components/layout/header/components/menu-right/settings/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/search-modal/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/search-modal/search-list/index.js +4 -5
- package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js +3 -3
- package/dist/system/presentation/components/layout/header/index.d.ts +2 -0
- package/dist/system/presentation/components/layout/header/index.js +25 -0
- package/dist/system/presentation/components/layout/header/version-01/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/version-01/index.js +4 -4
- package/dist/system/presentation/components/pages/menus/index.d.ts +1 -0
- package/dist/system/presentation/components/pages/menus/index.js +18 -0
- package/dist/system/presentation/components/pages/menus/page.js +40 -0
- package/dist/system/presentation/components/pages/menus/table/columns.d.ts +2 -2
- package/dist/system/presentation/components/pages/menus/table/columns.js +1 -1
- package/dist/system/presentation/components/pages/menus/table/create.d.ts +2 -2
- package/dist/system/presentation/components/pages/menus/table/create.js +2 -2
- package/dist/system/presentation/components/pages/menus/table/delete.js +2 -2
- package/dist/system/presentation/components/pages/menus/table/edit.d.ts +2 -2
- package/dist/system/presentation/components/pages/menus/table/edit.js +2 -2
- package/dist/system/presentation/components/pages/menus/table/icon/index.js +1 -1
- package/dist/system/presentation/components/pages/menus/table/index.d.ts +4 -4
- package/dist/system/presentation/components/pages/menus/table/index.js +4 -4
- package/dist/system/presentation/components/pages/users/index.d.ts +1 -0
- package/dist/system/presentation/components/pages/users/index.js +18 -0
- package/dist/system/presentation/components/pages/users/page.js +40 -0
- package/dist/system/presentation/components/pages/users/table/columns.d.ts +2 -2
- package/dist/system/presentation/components/pages/users/table/create.d.ts +2 -2
- package/dist/system/presentation/components/pages/users/table/create.js +2 -2
- package/dist/system/presentation/components/pages/users/table/delete.js +2 -2
- package/dist/system/presentation/components/pages/users/table/edit.d.ts +2 -2
- package/dist/system/presentation/components/pages/users/table/edit.js +2 -2
- package/dist/system/presentation/components/pages/users/table/index.d.ts +4 -4
- package/dist/system/presentation/components/pages/users/table/index.js +4 -4
- package/dist/system/presentation/context/auth/components/index.d.ts +2 -0
- package/dist/system/presentation/context/auth/components/index.js +19 -0
- package/dist/system/presentation/context/auth/components/login/form-login/index.js +2 -2
- package/dist/system/presentation/context/auth/components/login/index.js +4 -4
- package/dist/system/presentation/context/auth/components/private-page/index.d.ts +1 -1
- package/dist/system/presentation/context/auth/components/private-page/index.js +3 -3
- package/dist/system/presentation/hooks/notifications/use-load-all/index.d.ts +1 -0
- package/dist/system/presentation/hooks/notifications/use-load-all/index.js +63 -0
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.d.ts +2 -0
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.js +60 -0
- package/dist/system/presentation/hooks/ui/use-table/component.d.ts +8 -0
- package/dist/system/presentation/hooks/ui/use-table/component.js +26 -0
- package/dist/system/presentation/hooks/ui/use-table/components/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.d.ts +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.js +4 -5
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +10 -10
- package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +4 -4
- package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/index.d.ts +4 -0
- package/dist/system/presentation/hooks/ui/use-table/index.js +21 -0
- package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +92 -0
- package/dist/system/presentation/hooks/ui/use-table/query/get-query-arguments-table.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/query/hook.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/query/hook.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/query/index.d.ts +2 -2
- package/dist/system/presentation/hooks/ui/use-table/query/index.js +2 -2
- package/dist/ui/components/carousel/carousel-lib/components-shared/get-changed-params.js +51 -0
- package/dist/ui/components/carousel/carousel-lib/components-shared/get-element-params.js +148 -0
- package/dist/ui/components/carousel/carousel-lib/components-shared/get-params.js +61 -0
- package/dist/ui/components/carousel/carousel-lib/components-shared/mount-swiper.js +24 -0
- package/dist/ui/components/carousel/carousel-lib/components-shared/update-swiper.js +208 -0
- package/dist/ui/components/carousel/carousel-lib/core/breakpoints/getBreakpoint.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/breakpoints/index.d.ts +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/breakpoints/index.js +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/breakpoints/setBreakpoint.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/classes/index.d.ts +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/classes/index.js +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/core.js +654 -0
- package/dist/ui/components/carousel/carousel-lib/core/events/index.js +9 -9
- package/dist/ui/components/carousel/carousel-lib/core/events/onLoad.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/events/onTouchEnd.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/events/onTouchMove.js +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/events/onTouchStart.js +3 -3
- package/dist/ui/components/carousel/carousel-lib/core/grab-cursor/index.d.ts +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/grab-cursor/index.js +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/loop/index.d.ts +3 -3
- package/dist/ui/components/carousel/carousel-lib/core/loop/index.js +3 -3
- package/dist/ui/components/carousel/carousel-lib/core/loop/loopCreate.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/loop/loopFix.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/moduleExtendParams.js +42 -0
- package/dist/ui/components/carousel/carousel-lib/core/modules/observer/observer.js +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/modules/resize/resize.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/slide/index.d.ts +7 -7
- package/dist/ui/components/carousel/carousel-lib/core/slide/index.js +7 -7
- package/dist/ui/components/carousel/carousel-lib/core/slide/slideTo.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/slide/slideToClickedSlide.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/transition/index.d.ts +3 -3
- package/dist/ui/components/carousel/carousel-lib/core/transition/index.js +3 -3
- package/dist/ui/components/carousel/carousel-lib/core/transition/transitionEnd.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/transition/transitionStart.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/translate/getTranslate.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/translate/index.d.ts +5 -5
- package/dist/ui/components/carousel/carousel-lib/core/translate/index.js +5 -5
- package/dist/ui/components/carousel/carousel-lib/core/translate/translateTo.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/update/index.d.ts +9 -9
- package/dist/ui/components/carousel/carousel-lib/core/update/index.js +9 -9
- package/dist/ui/components/carousel/carousel-lib/core/update/updateActiveIndex.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/update/updateSize.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/update/updateSlides.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/update/updateSlidesClasses.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/modules/autoplay.js +336 -0
- package/dist/ui/components/carousel/carousel-lib/modules/effect-fade.js +63 -0
- package/dist/ui/components/carousel/carousel-lib/modules/free-mode.js +247 -0
- package/dist/ui/components/carousel/carousel-lib/modules/index.d.ts +6 -0
- package/dist/ui/components/carousel/carousel-lib/modules/index.js +23 -0
- package/dist/ui/components/carousel/carousel-lib/modules/navigation.js +223 -0
- package/dist/ui/components/carousel/carousel-lib/modules/pagination.js +514 -0
- package/dist/ui/components/carousel/carousel-lib/modules/virtual.js +379 -0
- package/dist/ui/components/carousel/carousel-lib/react/swiper-slide.js +88 -0
- package/dist/ui/components/carousel/carousel-lib/react/swiper.js +210 -0
- package/dist/ui/components/carousel/carousel-lib/shared/create-element-if-not-defined.js +22 -0
- package/dist/ui/components/carousel/carousel-lib/shared/create-shadow.js +15 -0
- package/dist/ui/components/carousel/carousel-lib/shared/effect-target.js +13 -0
- package/dist/ui/components/carousel/carousel-lib/shared/effect-virtual-transition-end.js +47 -0
- package/dist/ui/components/carousel/carousel-lib/shared/get-browser.js +43 -0
- package/dist/ui/components/carousel/carousel-lib/shared/get-device.js +69 -0
- package/dist/ui/components/carousel/carousel-lib/shared/get-support.js +25 -0
- package/dist/ui/components/carousel/carousel-lib/shared/utils.js +372 -0
- package/dist/ui/components/carousel/carousel-lib/ssr-window/document.js +65 -0
- package/dist/ui/components/carousel/carousel-lib/ssr-window/ssr-window.d.ts +4 -0
- package/dist/ui/components/carousel/carousel-lib/ssr-window/ssr-window.js +15 -0
- package/dist/ui/components/carousel/carousel-lib/ssr-window/window.js +71 -0
- package/dist/ui/components/carousel/carousel-lib/types/index.d.ts +5 -0
- package/dist/ui/components/carousel/carousel-lib/types/index.js +27 -0
- package/dist/ui/components/carousel/carousel-lib/types/swiper-events.d.ts +162 -0
- package/dist/ui/components/form/handler/custom-submit/index.d.ts +17 -0
- package/dist/ui/components/form/handler/custom-submit/index.js +25 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/component.d.ts +2 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/component.js +117 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/index.d.ts +2 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/index.js +19 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.d.ts +28 -0
- package/dist/ui/components/form/handler/form-handler/generate-schemas.js +111 -0
- package/dist/ui/components/form/handler/form-handler/index.d.ts +2 -0
- package/dist/ui/components/form/handler/form-handler/index.js +241 -0
- package/dist/ui/components/form/handler/form-handler/use-schemas.d.ts +2 -0
- package/dist/ui/components/form/handler/form-handler/use-schemas.js +115 -0
- package/dist/ui/components/form/handler/form-handler/use-send-file.d.ts +5 -0
- package/dist/ui/components/form/handler/form-handler/use-send-file.js +209 -0
- package/dist/ui/components/form/handler/i18n/capture-i18n-errors/index.d.ts +1 -1
- package/dist/ui/components/form/handler/i18n/index.d.ts +2 -0
- package/dist/ui/components/form/handler/i18n/index.js +4 -4
- package/dist/ui/components/form/input-cep/use-cep/hook.d.ts +2 -2
- package/dist/ui/components/form/input-cep/use-cep/hook.js +1 -1
- package/dist/ui/components/form/input-cep/use-cep/index.d.ts +2 -2
- package/dist/ui/components/form/input-cep/use-cep/index.js +2 -2
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.d.ts +1 -1
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.js +1 -1
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.d.ts +3 -3
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.js +3 -3
- package/dist/ui/components/form/input-cep/use-cep/providers/index.d.ts +1 -1
- package/dist/ui/components/form/input-cep/use-cep/providers/index.js +1 -1
- package/dist/ui/components/form/input-control/error/index.js +1 -1
- package/dist/ui/components/form/input-control/label/index.js +1 -1
- package/dist/ui/components/form/input-control/loader-input/index.js +2 -2
- package/dist/ui/components/form/input-currency/components/CurrencyInput.js +1 -1
- package/dist/ui/components/form/input-currency/components/index.d.ts +1 -1
- package/dist/ui/components/form/input-currency/components/index.js +1 -1
- package/dist/ui/components/form/input-currency/components/utils/cleanValue.d.ts +1 -1
- package/dist/ui/components/form/input-currency/components/utils/cleanValue.js +4 -4
- package/dist/ui/components/form/input-currency/components/utils/formatValue.d.ts +1 -1
- package/dist/ui/components/form/input-currency/components/utils/formatValue.js +2 -2
- package/dist/ui/components/form/input-currency/components/utils/getLocaleConfig.d.ts +1 -1
- package/dist/ui/components/form/input-currency/components/utils/getSuffix.js +1 -1
- package/dist/ui/components/form/input-currency/components/utils/index.d.ts +8 -8
- package/dist/ui/components/form/input-currency/components/utils/index.js +8 -8
- package/dist/ui/components/form/input-currency/components/utils/parseAbbrValue.js +1 -1
- package/dist/ui/components/form/input-currency/components/utils/removeInvalidChars.js +1 -1
- package/dist/ui/components/form/input-currency/components/utils/removeSeparators.js +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.js +3 -3
- package/dist/ui/components/form/input-date-picker/calendar/days/index.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/days/index.js +2 -2
- package/dist/ui/components/form/input-date-picker/calendar/index.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/index.js +4 -4
- package/dist/ui/components/form/input-date-picker/calendar/interface.d.ts +2 -2
- package/dist/ui/components/form/input-date-picker/calendar/months/index.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/months/index.js +2 -2
- package/dist/ui/components/form/input-date-picker/calendar/styles.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/mock/index.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/mock/index.js +1 -1
- package/dist/ui/components/form/input-file/hooks/index.d.ts +4 -4
- package/dist/ui/components/form/input-file/hooks/index.js +4 -4
- package/dist/ui/components/form/input-file/hooks/use-components-file.d.ts +2 -2
- package/dist/ui/components/form/input-file/hooks/use-components-file.js +2 -2
- package/dist/ui/components/form/input-file/hooks/use-file-elements.d.ts +1 -1
- package/dist/ui/components/form/input-file/hooks/use-file-elements.js +2 -2
- package/dist/ui/components/form/input-file/hooks/use-file.d.ts +2 -2
- package/dist/ui/components/form/input-file/hooks/use-file.js +2 -2
- package/dist/ui/components/form/input-file/hooks/use-rendered-file.d.ts +1 -1
- package/dist/ui/components/form/input-file/hooks/use-rendered-file.js +1 -1
- package/dist/ui/components/form/input-file/render-files/component.d.ts +1 -1
- package/dist/ui/components/form/input-file/render-files/component.js +2 -2
- package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.d.ts +1 -1
- package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.js +1 -1
- package/dist/ui/components/form/input-file/render-files/file-item/index.d.ts +2 -2
- package/dist/ui/components/form/input-file/render-files/file-item/index.js +3 -3
- package/dist/ui/components/form/input-file/render-files/index.d.ts +3 -3
- package/dist/ui/components/form/input-file/render-files/index.js +3 -3
- package/dist/ui/components/form/input-file/render-files/interfaces.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/core/errors/SyntheticChangeError.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.js +2 -2
- package/dist/ui/components/form/input-mask/lib/core/index.d.ts +5 -5
- package/dist/ui/components/form/input-mask/lib/core/index.js +4 -4
- package/dist/ui/components/form/input-mask/lib/core/utils/setInputAttributes.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/InputMask.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/mask/InputMask.js +2 -2
- package/dist/ui/components/form/input-mask/lib/mask/index.d.ts +5 -5
- package/dist/ui/components/form/input-mask/lib/mask/index.js +3 -3
- package/dist/ui/components/form/input-mask/lib/mask/types.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/useMask.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/useMask.js +7 -7
- package/dist/ui/components/form/input-mask/lib/mask/utils/filter.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/format.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/formatToParts.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/formatToReplacementObject.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.js +3 -3
- package/dist/ui/components/form/input-mask/lib/mask/utils/resolveSelection.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/mask/utils/unformat.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/validate.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils.js +5 -5
- package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.js +2 -2
- package/dist/ui/components/form/input-mask/lib/number-format/index.d.ts +4 -4
- package/dist/ui/components/form/input-mask/lib/number-format/index.js +2 -2
- package/dist/ui/components/form/input-mask/lib/number-format/types.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.js +6 -6
- package/dist/ui/components/form/input-mask/lib/number-format/utils/localizeValues.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.js +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveMinimumFractionDigits.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveOptions.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveSelection.d.ts +2 -2
- package/dist/ui/components/form/input-seo/input-meta-image/index.d.ts +1 -1
- package/dist/ui/components/form/input-seo/input-meta-image/index.js +2 -2
- package/dist/ui/components/menu-mobile/components/nav-links/index.d.ts +1 -1
- package/dist/ui/components/menu-mobile/components/nav-links/index.js +3 -3
- package/dist/ui/components/menu-mobile/components/nav-links/interfaces.d.ts +1 -1
- package/package.json +75 -75
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var utils_1 = require("./utils.js");
|
|
4
|
+
function createElementIfNotDefined(swiper, originalParams, params, checkProps) {
|
|
5
|
+
if (swiper.params.createElements) {
|
|
6
|
+
Object.keys(checkProps).forEach(function (key) {
|
|
7
|
+
if (!params[key] && params.auto === true) {
|
|
8
|
+
var element = (0, utils_1.elementChildren)(swiper.el, ".".concat(checkProps[key]))[0];
|
|
9
|
+
if (!element) {
|
|
10
|
+
element = (0, utils_1.createElement)('div', checkProps[key]);
|
|
11
|
+
element.className = checkProps[key];
|
|
12
|
+
swiper.el.append(element);
|
|
13
|
+
}
|
|
14
|
+
params[key] = element;
|
|
15
|
+
originalParams[key] = element;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return params;
|
|
20
|
+
}
|
|
21
|
+
exports.default = createElementIfNotDefined;
|
|
22
|
+
//# sourceMappingURL=create-element-if-not-defined.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var utils_1 = require("./utils.js");
|
|
4
|
+
function createShadow(suffix, slideEl, side) {
|
|
5
|
+
var shadowClass = "swiper-slide-shadow".concat(side ? "-".concat(side) : '').concat(suffix ? " swiper-slide-shadow-".concat(suffix) : '');
|
|
6
|
+
var shadowContainer = (0, utils_1.getSlideTransformEl)(slideEl);
|
|
7
|
+
var shadowEl = shadowContainer.querySelector(".".concat(shadowClass.split(' ').join('.')));
|
|
8
|
+
if (!shadowEl) {
|
|
9
|
+
shadowEl = (0, utils_1.createElement)('div', shadowClass.split(' '));
|
|
10
|
+
shadowContainer.append(shadowEl);
|
|
11
|
+
}
|
|
12
|
+
return shadowEl;
|
|
13
|
+
}
|
|
14
|
+
exports.default = createShadow;
|
|
15
|
+
//# sourceMappingURL=create-shadow.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var utils_1 = require("./utils.js");
|
|
4
|
+
function effectTarget(effectParams, slideEl) {
|
|
5
|
+
var transformEl = (0, utils_1.getSlideTransformEl)(slideEl);
|
|
6
|
+
if (transformEl !== slideEl) {
|
|
7
|
+
transformEl.style.backfaceVisibility = 'hidden';
|
|
8
|
+
transformEl.style['-webkit-backface-visibility'] = 'hidden';
|
|
9
|
+
}
|
|
10
|
+
return transformEl;
|
|
11
|
+
}
|
|
12
|
+
exports.default = effectTarget;
|
|
13
|
+
//# sourceMappingURL=effect-target.js.map
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var utils_1 = require("./utils.js");
|
|
4
|
+
function effectVirtualTransitionEnd(_a) {
|
|
5
|
+
var swiper = _a.swiper, duration = _a.duration, transformElements = _a.transformElements, allSlides = _a.allSlides;
|
|
6
|
+
var activeIndex = swiper.activeIndex;
|
|
7
|
+
var getSlide = function (el) {
|
|
8
|
+
if (!el.parentElement) {
|
|
9
|
+
// assume shadow root
|
|
10
|
+
var slide = swiper.slides.filter(function (slideEl) { return slideEl.shadowRoot && slideEl.shadowRoot === el.parentNode; })[0];
|
|
11
|
+
return slide;
|
|
12
|
+
}
|
|
13
|
+
return el.parentElement;
|
|
14
|
+
};
|
|
15
|
+
if (swiper.params.virtualTranslate && duration !== 0) {
|
|
16
|
+
var eventTriggered_1 = false;
|
|
17
|
+
var transitionEndTarget = void 0;
|
|
18
|
+
if (allSlides) {
|
|
19
|
+
transitionEndTarget = transformElements;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
transitionEndTarget = transformElements.filter(function (transformEl) {
|
|
23
|
+
var el = transformEl.classList.contains('swiper-slide-transform')
|
|
24
|
+
? getSlide(transformEl)
|
|
25
|
+
: transformEl;
|
|
26
|
+
return swiper.getSlideIndex(el) === activeIndex;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
transitionEndTarget.forEach(function (el) {
|
|
30
|
+
(0, utils_1.elementTransitionEnd)(el, function () {
|
|
31
|
+
if (eventTriggered_1)
|
|
32
|
+
return;
|
|
33
|
+
if (!swiper || swiper.destroyed)
|
|
34
|
+
return;
|
|
35
|
+
eventTriggered_1 = true;
|
|
36
|
+
swiper.animating = false;
|
|
37
|
+
var evt = new window.CustomEvent('transitionend', {
|
|
38
|
+
bubbles: true,
|
|
39
|
+
cancelable: true,
|
|
40
|
+
});
|
|
41
|
+
swiper.wrapperEl.dispatchEvent(evt);
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.default = effectVirtualTransitionEnd;
|
|
47
|
+
//# sourceMappingURL=effect-virtual-transition-end.js.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getBrowser = void 0;
|
|
4
|
+
var window_1 = require("../ssr-window/window.js");
|
|
5
|
+
var get_device_1 = require("./get-device.js");
|
|
6
|
+
var browser;
|
|
7
|
+
function calcBrowser() {
|
|
8
|
+
var window = (0, window_1.getWindow)();
|
|
9
|
+
var device = (0, get_device_1.getDevice)();
|
|
10
|
+
var needPerspectiveFix = false;
|
|
11
|
+
function isSafari() {
|
|
12
|
+
var ua = window.navigator.userAgent.toLowerCase();
|
|
13
|
+
return ua.indexOf('safari') >= 0 && ua.indexOf('chrome') < 0 && ua.indexOf('android') < 0;
|
|
14
|
+
}
|
|
15
|
+
if (isSafari()) {
|
|
16
|
+
var ua = String(window.navigator.userAgent);
|
|
17
|
+
if (ua.includes('Version/')) {
|
|
18
|
+
var _a = ua
|
|
19
|
+
.split('Version/')[1]
|
|
20
|
+
.split(' ')[0]
|
|
21
|
+
.split('.')
|
|
22
|
+
.map(function (num) { return Number(num); }), major = _a[0], minor = _a[1];
|
|
23
|
+
needPerspectiveFix = major < 16 || (major === 16 && minor < 2);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
var isWebView = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent);
|
|
27
|
+
var isSafariBrowser = isSafari();
|
|
28
|
+
var need3dFix = isSafariBrowser || (isWebView && device.ios);
|
|
29
|
+
return {
|
|
30
|
+
isSafari: needPerspectiveFix || isSafariBrowser,
|
|
31
|
+
needPerspectiveFix: needPerspectiveFix,
|
|
32
|
+
need3dFix: need3dFix,
|
|
33
|
+
isWebView: isWebView,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function getBrowser() {
|
|
37
|
+
if (!browser) {
|
|
38
|
+
browser = calcBrowser();
|
|
39
|
+
}
|
|
40
|
+
return browser;
|
|
41
|
+
}
|
|
42
|
+
exports.getBrowser = getBrowser;
|
|
43
|
+
//# sourceMappingURL=get-browser.js.map
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDevice = void 0;
|
|
4
|
+
var window_1 = require("../ssr-window/window.js");
|
|
5
|
+
var get_support_1 = require("./get-support.js");
|
|
6
|
+
var deviceCached;
|
|
7
|
+
function calcDevice(_a) {
|
|
8
|
+
var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent;
|
|
9
|
+
var support = (0, get_support_1.getSupport)();
|
|
10
|
+
var window = (0, window_1.getWindow)();
|
|
11
|
+
var platform = window.navigator.platform;
|
|
12
|
+
var ua = userAgent || window.navigator.userAgent;
|
|
13
|
+
var device = {
|
|
14
|
+
ios: false,
|
|
15
|
+
android: false,
|
|
16
|
+
};
|
|
17
|
+
var screenWidth = window.screen.width;
|
|
18
|
+
var screenHeight = window.screen.height;
|
|
19
|
+
var android = ua.match(/(Android);?[\s\/]+([\d.]+)?/); // eslint-disable-line
|
|
20
|
+
var ipad = ua.match(/(iPad).*OS\s([\d_]+)/);
|
|
21
|
+
var ipod = ua.match(/(iPod)(.*OS\s([\d_]+))?/);
|
|
22
|
+
var iphone = !ipad && ua.match(/(iPhone\sOS|iOS)\s([\d_]+)/);
|
|
23
|
+
var windows = platform === 'Win32';
|
|
24
|
+
var macos = platform === 'MacIntel';
|
|
25
|
+
// iPadOs 13 fix
|
|
26
|
+
var iPadScreens = [
|
|
27
|
+
'1024x1366',
|
|
28
|
+
'1366x1024',
|
|
29
|
+
'834x1194',
|
|
30
|
+
'1194x834',
|
|
31
|
+
'834x1112',
|
|
32
|
+
'1112x834',
|
|
33
|
+
'768x1024',
|
|
34
|
+
'1024x768',
|
|
35
|
+
'820x1180',
|
|
36
|
+
'1180x820',
|
|
37
|
+
'810x1080',
|
|
38
|
+
'1080x810',
|
|
39
|
+
];
|
|
40
|
+
if (!ipad &&
|
|
41
|
+
macos &&
|
|
42
|
+
support.touch &&
|
|
43
|
+
iPadScreens.indexOf("".concat(screenWidth, "x").concat(screenHeight)) >= 0) {
|
|
44
|
+
ipad = ua.match(/(Version)\/([\d.]+)/);
|
|
45
|
+
if (!ipad)
|
|
46
|
+
ipad = [0, 1, '13_0_0'];
|
|
47
|
+
macos = false;
|
|
48
|
+
}
|
|
49
|
+
// Android
|
|
50
|
+
if (android && !windows) {
|
|
51
|
+
device.os = 'android';
|
|
52
|
+
device.android = true;
|
|
53
|
+
}
|
|
54
|
+
if (ipad || iphone || ipod) {
|
|
55
|
+
device.os = 'ios';
|
|
56
|
+
device.ios = true;
|
|
57
|
+
}
|
|
58
|
+
// Export object
|
|
59
|
+
return device;
|
|
60
|
+
}
|
|
61
|
+
function getDevice(overrides) {
|
|
62
|
+
if (overrides === void 0) { overrides = {}; }
|
|
63
|
+
if (!deviceCached) {
|
|
64
|
+
deviceCached = calcDevice(overrides);
|
|
65
|
+
}
|
|
66
|
+
return deviceCached;
|
|
67
|
+
}
|
|
68
|
+
exports.getDevice = getDevice;
|
|
69
|
+
//# sourceMappingURL=get-device.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSupport = void 0;
|
|
4
|
+
var document_1 = require("../ssr-window/document.js");
|
|
5
|
+
var window_1 = require("../ssr-window/window.js");
|
|
6
|
+
var support;
|
|
7
|
+
function calcSupport() {
|
|
8
|
+
var window = (0, window_1.getWindow)();
|
|
9
|
+
var document = (0, document_1.getDocument)();
|
|
10
|
+
return {
|
|
11
|
+
smoothScroll: document.documentElement &&
|
|
12
|
+
document.documentElement.style &&
|
|
13
|
+
'scrollBehavior' in document.documentElement.style,
|
|
14
|
+
touch: !!('ontouchstart' in window ||
|
|
15
|
+
(window.DocumentTouch && document instanceof window.DocumentTouch)),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function getSupport() {
|
|
19
|
+
if (!support) {
|
|
20
|
+
support = calcSupport();
|
|
21
|
+
}
|
|
22
|
+
return support;
|
|
23
|
+
}
|
|
24
|
+
exports.getSupport = getSupport;
|
|
25
|
+
//# sourceMappingURL=get-support.js.map
|
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
+
if (ar || !(i in from)) {
|
|
5
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
+
ar[i] = from[i];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.makeElementsArray = exports.elementOuterSize = exports.elementTransitionEnd = exports.elementParents = exports.elementIndex = exports.elementStyle = exports.elementNextAll = exports.elementPrevAll = exports.elementOffset = exports.elementChildren = exports.createElement = exports.findElementsInElements = exports.showWarning = exports.getSlideTransformEl = exports.setCSSProperty = exports.getComputedStyle = exports.extend = exports.isObject = exports.getTranslate = exports.now = exports.nextTick = exports.deleteProps = exports.animateCSSModeScroll = void 0;
|
|
16
|
+
//@ts-nocheck
|
|
17
|
+
var classes_to_tokens_1 = __importDefault(require("./classes-to-tokens.js"));
|
|
18
|
+
var document_1 = require("../ssr-window/document.js");
|
|
19
|
+
var window_1 = require("../ssr-window/window.js");
|
|
20
|
+
function deleteProps(obj) {
|
|
21
|
+
var object = obj;
|
|
22
|
+
Object.keys(object).forEach(function (key) {
|
|
23
|
+
try {
|
|
24
|
+
object[key] = null;
|
|
25
|
+
}
|
|
26
|
+
catch (e) {
|
|
27
|
+
// no getter for object
|
|
28
|
+
}
|
|
29
|
+
try {
|
|
30
|
+
delete object[key];
|
|
31
|
+
}
|
|
32
|
+
catch (e) {
|
|
33
|
+
// something got wrong
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
exports.deleteProps = deleteProps;
|
|
38
|
+
function nextTick(callback, delay) {
|
|
39
|
+
if (delay === void 0) { delay = 0; }
|
|
40
|
+
return setTimeout(callback, delay);
|
|
41
|
+
}
|
|
42
|
+
exports.nextTick = nextTick;
|
|
43
|
+
function now() {
|
|
44
|
+
return Date.now();
|
|
45
|
+
}
|
|
46
|
+
exports.now = now;
|
|
47
|
+
function getComputedStyle(el) {
|
|
48
|
+
var window = (0, window_1.getWindow)();
|
|
49
|
+
var style;
|
|
50
|
+
if (window.getComputedStyle) {
|
|
51
|
+
style = window.getComputedStyle(el, null);
|
|
52
|
+
}
|
|
53
|
+
if (!style && el.currentStyle) {
|
|
54
|
+
style = el.currentStyle;
|
|
55
|
+
}
|
|
56
|
+
if (!style) {
|
|
57
|
+
style = el.style;
|
|
58
|
+
}
|
|
59
|
+
return style;
|
|
60
|
+
}
|
|
61
|
+
exports.getComputedStyle = getComputedStyle;
|
|
62
|
+
function getTranslate(el, axis) {
|
|
63
|
+
if (axis === void 0) { axis = 'x'; }
|
|
64
|
+
var window = (0, window_1.getWindow)();
|
|
65
|
+
var matrix;
|
|
66
|
+
var curTransform;
|
|
67
|
+
var transformMatrix;
|
|
68
|
+
var curStyle = getComputedStyle(el, null);
|
|
69
|
+
if (window.WebKitCSSMatrix) {
|
|
70
|
+
curTransform = curStyle.transform || curStyle.webkitTransform;
|
|
71
|
+
if (curTransform.split(',').length > 6) {
|
|
72
|
+
curTransform = curTransform
|
|
73
|
+
.split(', ')
|
|
74
|
+
.map(function (a) { return a.replace(',', '.'); })
|
|
75
|
+
.join(', ');
|
|
76
|
+
}
|
|
77
|
+
// Some old versions of Webkit choke when 'none' is passed; pass
|
|
78
|
+
// empty string instead in this case
|
|
79
|
+
transformMatrix = new window.WebKitCSSMatrix(curTransform === 'none' ? '' : curTransform);
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
transformMatrix =
|
|
83
|
+
curStyle.MozTransform ||
|
|
84
|
+
curStyle.OTransform ||
|
|
85
|
+
curStyle.MsTransform ||
|
|
86
|
+
curStyle.msTransform ||
|
|
87
|
+
curStyle.transform ||
|
|
88
|
+
curStyle.getPropertyValue('transform').replace('translate(', 'matrix(1, 0, 0, 1,');
|
|
89
|
+
matrix = transformMatrix.toString().split(',');
|
|
90
|
+
}
|
|
91
|
+
if (axis === 'x') {
|
|
92
|
+
// Latest Chrome and webkits Fix
|
|
93
|
+
if (window.WebKitCSSMatrix)
|
|
94
|
+
curTransform = transformMatrix.m41;
|
|
95
|
+
// Crazy IE10 Matrix
|
|
96
|
+
else if (matrix.length === 16)
|
|
97
|
+
curTransform = parseFloat(matrix[12]);
|
|
98
|
+
// Normal Browsers
|
|
99
|
+
else
|
|
100
|
+
curTransform = parseFloat(matrix[4]);
|
|
101
|
+
}
|
|
102
|
+
if (axis === 'y') {
|
|
103
|
+
// Latest Chrome and webkits Fix
|
|
104
|
+
if (window.WebKitCSSMatrix)
|
|
105
|
+
curTransform = transformMatrix.m42;
|
|
106
|
+
// Crazy IE10 Matrix
|
|
107
|
+
else if (matrix.length === 16)
|
|
108
|
+
curTransform = parseFloat(matrix[13]);
|
|
109
|
+
// Normal Browsers
|
|
110
|
+
else
|
|
111
|
+
curTransform = parseFloat(matrix[5]);
|
|
112
|
+
}
|
|
113
|
+
return curTransform || 0;
|
|
114
|
+
}
|
|
115
|
+
exports.getTranslate = getTranslate;
|
|
116
|
+
function isObject(o) {
|
|
117
|
+
return (typeof o === 'object' &&
|
|
118
|
+
o !== null &&
|
|
119
|
+
o.constructor &&
|
|
120
|
+
Object.prototype.toString.call(o).slice(8, -1) === 'Object');
|
|
121
|
+
}
|
|
122
|
+
exports.isObject = isObject;
|
|
123
|
+
function isNode(node) {
|
|
124
|
+
// eslint-disable-next-line
|
|
125
|
+
if (typeof window !== 'undefined' && typeof window.HTMLElement !== 'undefined') {
|
|
126
|
+
return node instanceof HTMLElement;
|
|
127
|
+
}
|
|
128
|
+
return node && (node.nodeType === 1 || node.nodeType === 11);
|
|
129
|
+
}
|
|
130
|
+
function extend() {
|
|
131
|
+
var args = [];
|
|
132
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
133
|
+
args[_i] = arguments[_i];
|
|
134
|
+
}
|
|
135
|
+
var to = Object(args[0]);
|
|
136
|
+
var noExtend = ['__proto__', 'constructor', 'prototype'];
|
|
137
|
+
for (var i = 1; i < args.length; i += 1) {
|
|
138
|
+
var nextSource = args[i];
|
|
139
|
+
if (nextSource !== undefined && nextSource !== null && !isNode(nextSource)) {
|
|
140
|
+
var keysArray = Object.keys(Object(nextSource)).filter(function (key) { return noExtend.indexOf(key) < 0; });
|
|
141
|
+
for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex += 1) {
|
|
142
|
+
var nextKey = keysArray[nextIndex];
|
|
143
|
+
var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
|
|
144
|
+
if (desc !== undefined && desc.enumerable) {
|
|
145
|
+
if (isObject(to[nextKey]) && isObject(nextSource[nextKey])) {
|
|
146
|
+
if (nextSource[nextKey].__swiper__) {
|
|
147
|
+
to[nextKey] = nextSource[nextKey];
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
extend(to[nextKey], nextSource[nextKey]);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
else if (!isObject(to[nextKey]) && isObject(nextSource[nextKey])) {
|
|
154
|
+
to[nextKey] = {};
|
|
155
|
+
if (nextSource[nextKey].__swiper__) {
|
|
156
|
+
to[nextKey] = nextSource[nextKey];
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
extend(to[nextKey], nextSource[nextKey]);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
to[nextKey] = nextSource[nextKey];
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
return to;
|
|
170
|
+
}
|
|
171
|
+
exports.extend = extend;
|
|
172
|
+
function setCSSProperty(el, varName, varValue) {
|
|
173
|
+
el.style.setProperty(varName, varValue);
|
|
174
|
+
}
|
|
175
|
+
exports.setCSSProperty = setCSSProperty;
|
|
176
|
+
function animateCSSModeScroll(_a) {
|
|
177
|
+
var swiper = _a.swiper, targetPosition = _a.targetPosition, side = _a.side;
|
|
178
|
+
var window = (0, window_1.getWindow)();
|
|
179
|
+
var startPosition = -swiper.translate;
|
|
180
|
+
var startTime = null;
|
|
181
|
+
var time;
|
|
182
|
+
var duration = swiper.params.speed;
|
|
183
|
+
swiper.wrapperEl.style.scrollSnapType = 'none';
|
|
184
|
+
window.cancelAnimationFrame(swiper.cssModeFrameID);
|
|
185
|
+
var dir = targetPosition > startPosition ? 'next' : 'prev';
|
|
186
|
+
var isOutOfBound = function (current, target) {
|
|
187
|
+
return (dir === 'next' && current >= target) || (dir === 'prev' && current <= target);
|
|
188
|
+
};
|
|
189
|
+
var animate = function () {
|
|
190
|
+
var _a;
|
|
191
|
+
time = new Date().getTime();
|
|
192
|
+
if (startTime === null) {
|
|
193
|
+
startTime = time;
|
|
194
|
+
}
|
|
195
|
+
var progress = Math.max(Math.min((time - startTime) / duration, 1), 0);
|
|
196
|
+
var easeProgress = 0.5 - Math.cos(progress * Math.PI) / 2;
|
|
197
|
+
var currentPosition = startPosition + easeProgress * (targetPosition - startPosition);
|
|
198
|
+
if (isOutOfBound(currentPosition, targetPosition)) {
|
|
199
|
+
currentPosition = targetPosition;
|
|
200
|
+
}
|
|
201
|
+
swiper.wrapperEl.scrollTo((_a = {},
|
|
202
|
+
_a[side] = currentPosition,
|
|
203
|
+
_a));
|
|
204
|
+
if (isOutOfBound(currentPosition, targetPosition)) {
|
|
205
|
+
swiper.wrapperEl.style.overflow = 'hidden';
|
|
206
|
+
swiper.wrapperEl.style.scrollSnapType = '';
|
|
207
|
+
setTimeout(function () {
|
|
208
|
+
var _a;
|
|
209
|
+
swiper.wrapperEl.style.overflow = '';
|
|
210
|
+
swiper.wrapperEl.scrollTo((_a = {},
|
|
211
|
+
_a[side] = currentPosition,
|
|
212
|
+
_a));
|
|
213
|
+
});
|
|
214
|
+
window.cancelAnimationFrame(swiper.cssModeFrameID);
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
swiper.cssModeFrameID = window.requestAnimationFrame(animate);
|
|
218
|
+
};
|
|
219
|
+
animate();
|
|
220
|
+
}
|
|
221
|
+
exports.animateCSSModeScroll = animateCSSModeScroll;
|
|
222
|
+
function getSlideTransformEl(slideEl) {
|
|
223
|
+
return (slideEl.querySelector('.swiper-slide-transform') ||
|
|
224
|
+
(slideEl.shadowRoot && slideEl.shadowRoot.querySelector('.swiper-slide-transform')) ||
|
|
225
|
+
slideEl);
|
|
226
|
+
}
|
|
227
|
+
exports.getSlideTransformEl = getSlideTransformEl;
|
|
228
|
+
function findElementsInElements(elements, selector) {
|
|
229
|
+
if (elements === void 0) { elements = []; }
|
|
230
|
+
if (selector === void 0) { selector = ''; }
|
|
231
|
+
var found = [];
|
|
232
|
+
elements.forEach(function (el) {
|
|
233
|
+
found.push.apply(found, el.querySelectorAll(selector));
|
|
234
|
+
});
|
|
235
|
+
return found;
|
|
236
|
+
}
|
|
237
|
+
exports.findElementsInElements = findElementsInElements;
|
|
238
|
+
function elementChildren(element, selector) {
|
|
239
|
+
if (selector === void 0) { selector = ''; }
|
|
240
|
+
return __spreadArray([], element.children, true).filter(function (el) { return el.matches(selector); });
|
|
241
|
+
}
|
|
242
|
+
exports.elementChildren = elementChildren;
|
|
243
|
+
function showWarning(text) {
|
|
244
|
+
try {
|
|
245
|
+
console.warn(text);
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
catch (err) {
|
|
249
|
+
// err
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
exports.showWarning = showWarning;
|
|
253
|
+
function createElement(tag, classes) {
|
|
254
|
+
var _a;
|
|
255
|
+
if (classes === void 0) { classes = []; }
|
|
256
|
+
var el = document.createElement(tag);
|
|
257
|
+
(_a = el.classList).add.apply(_a, (Array.isArray(classes) ? classes : (0, classes_to_tokens_1.default)(classes)));
|
|
258
|
+
return el;
|
|
259
|
+
}
|
|
260
|
+
exports.createElement = createElement;
|
|
261
|
+
function elementOffset(el) {
|
|
262
|
+
var window = (0, window_1.getWindow)();
|
|
263
|
+
var document = (0, document_1.getDocument)();
|
|
264
|
+
var box = el.getBoundingClientRect();
|
|
265
|
+
var body = document.body;
|
|
266
|
+
var clientTop = el.clientTop || body.clientTop || 0;
|
|
267
|
+
var clientLeft = el.clientLeft || body.clientLeft || 0;
|
|
268
|
+
var scrollTop = el === window ? window.scrollY : el.scrollTop;
|
|
269
|
+
var scrollLeft = el === window ? window.scrollX : el.scrollLeft;
|
|
270
|
+
return {
|
|
271
|
+
top: box.top + scrollTop - clientTop,
|
|
272
|
+
left: box.left + scrollLeft - clientLeft,
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
exports.elementOffset = elementOffset;
|
|
276
|
+
function elementPrevAll(el, selector) {
|
|
277
|
+
var prevEls = [];
|
|
278
|
+
while (el.previousElementSibling) {
|
|
279
|
+
var prev = el.previousElementSibling; // eslint-disable-line
|
|
280
|
+
if (selector) {
|
|
281
|
+
if (prev.matches(selector))
|
|
282
|
+
prevEls.push(prev);
|
|
283
|
+
}
|
|
284
|
+
else
|
|
285
|
+
prevEls.push(prev);
|
|
286
|
+
el = prev;
|
|
287
|
+
}
|
|
288
|
+
return prevEls;
|
|
289
|
+
}
|
|
290
|
+
exports.elementPrevAll = elementPrevAll;
|
|
291
|
+
function elementNextAll(el, selector) {
|
|
292
|
+
var nextEls = [];
|
|
293
|
+
while (el.nextElementSibling) {
|
|
294
|
+
var next = el.nextElementSibling; // eslint-disable-line
|
|
295
|
+
if (selector) {
|
|
296
|
+
if (next.matches(selector))
|
|
297
|
+
nextEls.push(next);
|
|
298
|
+
}
|
|
299
|
+
else
|
|
300
|
+
nextEls.push(next);
|
|
301
|
+
el = next;
|
|
302
|
+
}
|
|
303
|
+
return nextEls;
|
|
304
|
+
}
|
|
305
|
+
exports.elementNextAll = elementNextAll;
|
|
306
|
+
function elementStyle(el, prop) {
|
|
307
|
+
var window = (0, window_1.getWindow)();
|
|
308
|
+
return window.getComputedStyle(el, null).getPropertyValue(prop);
|
|
309
|
+
}
|
|
310
|
+
exports.elementStyle = elementStyle;
|
|
311
|
+
function elementIndex(el) {
|
|
312
|
+
var child = el;
|
|
313
|
+
var i;
|
|
314
|
+
if (child) {
|
|
315
|
+
i = 0;
|
|
316
|
+
// eslint-disable-next-line
|
|
317
|
+
while ((child = child.previousSibling) !== null) {
|
|
318
|
+
if (child.nodeType === 1)
|
|
319
|
+
i += 1;
|
|
320
|
+
}
|
|
321
|
+
return i;
|
|
322
|
+
}
|
|
323
|
+
return undefined;
|
|
324
|
+
}
|
|
325
|
+
exports.elementIndex = elementIndex;
|
|
326
|
+
function elementParents(el, selector) {
|
|
327
|
+
var parents = []; // eslint-disable-line
|
|
328
|
+
var parent = el.parentElement; // eslint-disable-line
|
|
329
|
+
while (parent) {
|
|
330
|
+
if (selector) {
|
|
331
|
+
if (parent.matches(selector))
|
|
332
|
+
parents.push(parent);
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
parents.push(parent);
|
|
336
|
+
}
|
|
337
|
+
parent = parent.parentElement;
|
|
338
|
+
}
|
|
339
|
+
return parents;
|
|
340
|
+
}
|
|
341
|
+
exports.elementParents = elementParents;
|
|
342
|
+
function elementTransitionEnd(el, callback) {
|
|
343
|
+
function fireCallBack(e) {
|
|
344
|
+
if (e.target !== el)
|
|
345
|
+
return;
|
|
346
|
+
callback.call(el, e);
|
|
347
|
+
el.removeEventListener('transitionend', fireCallBack);
|
|
348
|
+
}
|
|
349
|
+
if (callback) {
|
|
350
|
+
el.addEventListener('transitionend', fireCallBack);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
exports.elementTransitionEnd = elementTransitionEnd;
|
|
354
|
+
function elementOuterSize(el, size, includeMargins) {
|
|
355
|
+
var window = (0, window_1.getWindow)();
|
|
356
|
+
if (includeMargins) {
|
|
357
|
+
return (el[size === 'width' ? 'offsetWidth' : 'offsetHeight'] +
|
|
358
|
+
parseFloat(window
|
|
359
|
+
.getComputedStyle(el, null)
|
|
360
|
+
.getPropertyValue(size === 'width' ? 'margin-right' : 'margin-top')) +
|
|
361
|
+
parseFloat(window
|
|
362
|
+
.getComputedStyle(el, null)
|
|
363
|
+
.getPropertyValue(size === 'width' ? 'margin-left' : 'margin-bottom')));
|
|
364
|
+
}
|
|
365
|
+
return el.offsetWidth;
|
|
366
|
+
}
|
|
367
|
+
exports.elementOuterSize = elementOuterSize;
|
|
368
|
+
function makeElementsArray(el) {
|
|
369
|
+
return (Array.isArray(el) ? el : [el]).filter(function (e) { return !!e; });
|
|
370
|
+
}
|
|
371
|
+
exports.makeElementsArray = makeElementsArray;
|
|
372
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ssrDocument = exports.getDocument = void 0;
|
|
7
|
+
var extend_1 = __importDefault(require("./extend.js"));
|
|
8
|
+
var ssrDocument = {
|
|
9
|
+
body: {},
|
|
10
|
+
addEventListener: function () { },
|
|
11
|
+
removeEventListener: function () { },
|
|
12
|
+
activeElement: {
|
|
13
|
+
blur: function () { },
|
|
14
|
+
nodeName: '',
|
|
15
|
+
},
|
|
16
|
+
querySelector: function () {
|
|
17
|
+
return null;
|
|
18
|
+
},
|
|
19
|
+
querySelectorAll: function () {
|
|
20
|
+
return [];
|
|
21
|
+
},
|
|
22
|
+
getElementById: function () {
|
|
23
|
+
return null;
|
|
24
|
+
},
|
|
25
|
+
createEvent: function () {
|
|
26
|
+
return {
|
|
27
|
+
initEvent: function () { },
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
createElement: function () {
|
|
31
|
+
return {
|
|
32
|
+
children: [],
|
|
33
|
+
childNodes: [],
|
|
34
|
+
style: {},
|
|
35
|
+
setAttribute: function () { },
|
|
36
|
+
getElementsByTagName: function () {
|
|
37
|
+
return [];
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
createElementNS: function () {
|
|
42
|
+
return {};
|
|
43
|
+
},
|
|
44
|
+
importNode: function () {
|
|
45
|
+
return null;
|
|
46
|
+
},
|
|
47
|
+
location: {
|
|
48
|
+
hash: '',
|
|
49
|
+
host: '',
|
|
50
|
+
hostname: '',
|
|
51
|
+
href: '',
|
|
52
|
+
origin: '',
|
|
53
|
+
pathname: '',
|
|
54
|
+
protocol: '',
|
|
55
|
+
search: '',
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
exports.ssrDocument = ssrDocument;
|
|
59
|
+
function getDocument() {
|
|
60
|
+
var doc = typeof document !== 'undefined' ? document : {};
|
|
61
|
+
(0, extend_1.default)(doc, ssrDocument);
|
|
62
|
+
return doc;
|
|
63
|
+
}
|
|
64
|
+
exports.getDocument = getDocument;
|
|
65
|
+
//# sourceMappingURL=document.js.map
|