infinity-forge 2.6.7 → 2.6.9
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 +1 -1
- package/dist/sites/components/default-pages/blog/components/side-box-categories/index.d.ts +1 -1
- 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.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/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/loader/index.js +1 -1
- 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/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/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/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/component.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/component.js +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/index.d.ts +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/index.js +3 -3
- 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 +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js +3 -3
- 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 +4 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/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 +3 -3
- package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js +2 -2
- 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 +3 -3
- 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/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.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/delete/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/delete/index.js +2 -2
- 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 +4 -4
- 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 +2 -2
- 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 +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.js +2 -2
- 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 -4
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/styles.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/styles.js.map +1 -1
- 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 +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/index.js +2 -2
- 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 +2 -2
- 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 +93 -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 +118 -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 +57 -0
- package/dist/ui/components/form/input-cep/use-cep/hook.d.ts +5 -0
- package/dist/ui/components/form/input-cep/use-cep/hook.js +14 -0
- package/dist/ui/components/form/input-cep/use-cep/index.d.ts +2 -0
- package/dist/ui/components/form/input-cep/use-cep/index.js +19 -0
- 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 +34 -0
- package/dist/ui/components/form/input-control/label/index.js +34 -0
- package/dist/ui/components/form/input-control/loader-input/index.js +34 -0
- package/dist/ui/components/form/input-currency/components/CurrencyInput.js +247 -0
- package/dist/ui/components/form/input-currency/components/index.d.ts +1 -0
- package/dist/ui/components/form/input-currency/components/index.js +18 -0
- 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 +9 -0
- package/dist/ui/components/form/input-date-picker/calendar/index.js +58 -0
- 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/dist/ui/icons/index.d.ts +1 -1
- package/dist/ui/icons/index.js +1 -1
- package/dist/ui/icons/index.js.map +1 -1
- package/dist/ui/icons/render/equalizer.d.ts +3 -0
- package/dist/ui/icons/render/equalizer.js +15 -0
- package/dist/ui/icons/render/equalizer.js.map +1 -0
- package/package.json +3 -2
- package/dist/ui/icons/render/arrow-lupa.d.ts +0 -3
- package/dist/ui/icons/render/arrow-lupa.js +0 -15
- package/dist/ui/icons/render/arrow-lupa.js.map +0 -1
|
@@ -0,0 +1,654 @@
|
|
|
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
|
+
//@ts-nocheck
|
|
16
|
+
/* eslint no-param-reassign: "off" */
|
|
17
|
+
var utils_1 = require("../shared/utils.js");
|
|
18
|
+
var get_support_1 = require("../shared/get-support.js");
|
|
19
|
+
var get_device_1 = require("../shared/get-device.js");
|
|
20
|
+
var get_browser_1 = require("../shared/get-browser.js");
|
|
21
|
+
var resize_1 = __importDefault(require("./modules/resize/resize.js"));
|
|
22
|
+
var observer_1 = __importDefault(require("./modules/observer/observer.js"));
|
|
23
|
+
var events_emitter_1 = __importDefault(require("./events-emitter.js"));
|
|
24
|
+
var index_1 = __importDefault(require("./update/index.js"));
|
|
25
|
+
var index_2 = __importDefault(require("./translate/index.js"));
|
|
26
|
+
var index_3 = __importDefault(require("./transition/index.js"));
|
|
27
|
+
var index_4 = __importDefault(require("./slide/index.js"));
|
|
28
|
+
var index_5 = __importDefault(require("./loop/index.js"));
|
|
29
|
+
var index_6 = __importDefault(require("./grab-cursor/index.js"));
|
|
30
|
+
var index_7 = __importDefault(require("./events/index.js"));
|
|
31
|
+
var index_8 = __importDefault(require("./breakpoints/index.js"));
|
|
32
|
+
var index_9 = __importDefault(require("./classes/index.js"));
|
|
33
|
+
var index_10 = __importDefault(require("./check-overflow/index.js"));
|
|
34
|
+
var defaults_1 = __importDefault(require("./defaults.js"));
|
|
35
|
+
var moduleExtendParams_1 = __importDefault(require("./moduleExtendParams.js"));
|
|
36
|
+
var process_lazy_preloader_1 = require("../shared/process-lazy-preloader.js");
|
|
37
|
+
var document_1 = require("../ssr-window/document.js");
|
|
38
|
+
var prototypes = {
|
|
39
|
+
eventsEmitter: events_emitter_1.default,
|
|
40
|
+
update: index_1.default,
|
|
41
|
+
translate: index_2.default,
|
|
42
|
+
transition: index_3.default,
|
|
43
|
+
slide: index_4.default,
|
|
44
|
+
loop: index_5.default,
|
|
45
|
+
grabCursor: index_6.default,
|
|
46
|
+
events: index_7.default,
|
|
47
|
+
breakpoints: index_8.default,
|
|
48
|
+
checkOverflow: index_10.default,
|
|
49
|
+
classes: index_9.default,
|
|
50
|
+
};
|
|
51
|
+
var extendedDefaults = {};
|
|
52
|
+
var Swiper = /** @class */ (function () {
|
|
53
|
+
function Swiper() {
|
|
54
|
+
var _a;
|
|
55
|
+
var args = [];
|
|
56
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
57
|
+
args[_i] = arguments[_i];
|
|
58
|
+
}
|
|
59
|
+
var el;
|
|
60
|
+
var params;
|
|
61
|
+
if (args.length === 1 &&
|
|
62
|
+
args[0].constructor &&
|
|
63
|
+
Object.prototype.toString.call(args[0]).slice(8, -1) === 'Object') {
|
|
64
|
+
params = args[0];
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
el = args[0], params = args[1];
|
|
68
|
+
}
|
|
69
|
+
if (!params)
|
|
70
|
+
params = {};
|
|
71
|
+
params = (0, utils_1.extend)({}, params);
|
|
72
|
+
if (el && !params.el)
|
|
73
|
+
params.el = el;
|
|
74
|
+
var document = (0, document_1.getDocument)();
|
|
75
|
+
if (params.el &&
|
|
76
|
+
typeof params.el === 'string' &&
|
|
77
|
+
document.querySelectorAll(params.el).length > 1) {
|
|
78
|
+
var swipers_1 = [];
|
|
79
|
+
document.querySelectorAll(params.el).forEach(function (containerEl) {
|
|
80
|
+
var newParams = (0, utils_1.extend)({}, params, { el: containerEl });
|
|
81
|
+
swipers_1.push(new Swiper(newParams));
|
|
82
|
+
});
|
|
83
|
+
// eslint-disable-next-line no-constructor-return
|
|
84
|
+
return swipers_1;
|
|
85
|
+
}
|
|
86
|
+
// Swiper Instance
|
|
87
|
+
var swiper = this;
|
|
88
|
+
swiper.__swiper__ = true;
|
|
89
|
+
swiper.support = (0, get_support_1.getSupport)();
|
|
90
|
+
swiper.device = (0, get_device_1.getDevice)({ userAgent: params.userAgent });
|
|
91
|
+
swiper.browser = (0, get_browser_1.getBrowser)();
|
|
92
|
+
swiper.eventsListeners = {};
|
|
93
|
+
swiper.eventsAnyListeners = [];
|
|
94
|
+
swiper.modules = __spreadArray([], swiper.__modules__, true);
|
|
95
|
+
if (params.modules && Array.isArray(params.modules)) {
|
|
96
|
+
(_a = swiper.modules).push.apply(_a, params.modules);
|
|
97
|
+
}
|
|
98
|
+
var allModulesParams = {};
|
|
99
|
+
swiper.modules.forEach(function (mod) {
|
|
100
|
+
mod({
|
|
101
|
+
params: params,
|
|
102
|
+
swiper: swiper,
|
|
103
|
+
extendParams: (0, moduleExtendParams_1.default)(params, allModulesParams),
|
|
104
|
+
on: swiper.on.bind(swiper),
|
|
105
|
+
once: swiper.once.bind(swiper),
|
|
106
|
+
off: swiper.off.bind(swiper),
|
|
107
|
+
emit: swiper.emit.bind(swiper),
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
// Extend defaults with modules params
|
|
111
|
+
var swiperParams = (0, utils_1.extend)({}, defaults_1.default, allModulesParams);
|
|
112
|
+
// Extend defaults with passed params
|
|
113
|
+
swiper.params = (0, utils_1.extend)({}, swiperParams, extendedDefaults, params);
|
|
114
|
+
swiper.originalParams = (0, utils_1.extend)({}, swiper.params);
|
|
115
|
+
swiper.passedParams = (0, utils_1.extend)({}, params);
|
|
116
|
+
// add event listeners
|
|
117
|
+
if (swiper.params && swiper.params.on) {
|
|
118
|
+
Object.keys(swiper.params.on).forEach(function (eventName) {
|
|
119
|
+
swiper.on(eventName, swiper.params.on[eventName]);
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
if (swiper.params && swiper.params.onAny) {
|
|
123
|
+
swiper.onAny(swiper.params.onAny);
|
|
124
|
+
}
|
|
125
|
+
// Extend Swiper
|
|
126
|
+
Object.assign(swiper, {
|
|
127
|
+
enabled: swiper.params.enabled,
|
|
128
|
+
el: el,
|
|
129
|
+
// Classes
|
|
130
|
+
classNames: [],
|
|
131
|
+
// Slides
|
|
132
|
+
slides: [],
|
|
133
|
+
slidesGrid: [],
|
|
134
|
+
snapGrid: [],
|
|
135
|
+
slidesSizesGrid: [],
|
|
136
|
+
// isDirection
|
|
137
|
+
isHorizontal: function () {
|
|
138
|
+
return swiper.params.direction === 'horizontal';
|
|
139
|
+
},
|
|
140
|
+
isVertical: function () {
|
|
141
|
+
return swiper.params.direction === 'vertical';
|
|
142
|
+
},
|
|
143
|
+
// Indexes
|
|
144
|
+
activeIndex: 0,
|
|
145
|
+
realIndex: 0,
|
|
146
|
+
//
|
|
147
|
+
isBeginning: true,
|
|
148
|
+
isEnd: false,
|
|
149
|
+
// Props
|
|
150
|
+
translate: 0,
|
|
151
|
+
previousTranslate: 0,
|
|
152
|
+
progress: 0,
|
|
153
|
+
velocity: 0,
|
|
154
|
+
animating: false,
|
|
155
|
+
cssOverflowAdjustment: function () {
|
|
156
|
+
// Returns 0 unless `translate` is > 2**23
|
|
157
|
+
// Should be subtracted from css values to prevent overflow
|
|
158
|
+
return Math.trunc(this.translate / Math.pow(2, 23)) * Math.pow(2, 23);
|
|
159
|
+
},
|
|
160
|
+
// Locks
|
|
161
|
+
allowSlideNext: swiper.params.allowSlideNext,
|
|
162
|
+
allowSlidePrev: swiper.params.allowSlidePrev,
|
|
163
|
+
// Touch Events
|
|
164
|
+
touchEventsData: {
|
|
165
|
+
isTouched: undefined,
|
|
166
|
+
isMoved: undefined,
|
|
167
|
+
allowTouchCallbacks: undefined,
|
|
168
|
+
touchStartTime: undefined,
|
|
169
|
+
isScrolling: undefined,
|
|
170
|
+
currentTranslate: undefined,
|
|
171
|
+
startTranslate: undefined,
|
|
172
|
+
allowThresholdMove: undefined,
|
|
173
|
+
// Form elements to match
|
|
174
|
+
focusableElements: swiper.params.focusableElements,
|
|
175
|
+
// Last click time
|
|
176
|
+
lastClickTime: 0,
|
|
177
|
+
clickTimeout: undefined,
|
|
178
|
+
// Velocities
|
|
179
|
+
velocities: [],
|
|
180
|
+
allowMomentumBounce: undefined,
|
|
181
|
+
startMoving: undefined,
|
|
182
|
+
pointerId: null,
|
|
183
|
+
touchId: null,
|
|
184
|
+
},
|
|
185
|
+
// Clicks
|
|
186
|
+
allowClick: true,
|
|
187
|
+
// Touches
|
|
188
|
+
allowTouchMove: swiper.params.allowTouchMove,
|
|
189
|
+
touches: {
|
|
190
|
+
startX: 0,
|
|
191
|
+
startY: 0,
|
|
192
|
+
currentX: 0,
|
|
193
|
+
currentY: 0,
|
|
194
|
+
diff: 0,
|
|
195
|
+
},
|
|
196
|
+
// Images
|
|
197
|
+
imagesToLoad: [],
|
|
198
|
+
imagesLoaded: 0,
|
|
199
|
+
});
|
|
200
|
+
swiper.emit('_swiper');
|
|
201
|
+
// Init
|
|
202
|
+
if (swiper.params.init) {
|
|
203
|
+
swiper.init();
|
|
204
|
+
}
|
|
205
|
+
// Return app instance
|
|
206
|
+
// eslint-disable-next-line no-constructor-return
|
|
207
|
+
return swiper;
|
|
208
|
+
}
|
|
209
|
+
Swiper.prototype.getDirectionLabel = function (property) {
|
|
210
|
+
if (this.isHorizontal()) {
|
|
211
|
+
return property;
|
|
212
|
+
}
|
|
213
|
+
// prettier-ignore
|
|
214
|
+
return {
|
|
215
|
+
'width': 'height',
|
|
216
|
+
'margin-top': 'margin-left',
|
|
217
|
+
'margin-bottom ': 'margin-right',
|
|
218
|
+
'margin-left': 'margin-top',
|
|
219
|
+
'margin-right': 'margin-bottom',
|
|
220
|
+
'padding-left': 'padding-top',
|
|
221
|
+
'padding-right': 'padding-bottom',
|
|
222
|
+
'marginRight': 'marginBottom',
|
|
223
|
+
}[property];
|
|
224
|
+
};
|
|
225
|
+
Swiper.prototype.getSlideIndex = function (slideEl) {
|
|
226
|
+
var _a = this, slidesEl = _a.slidesEl, params = _a.params;
|
|
227
|
+
var slides = (0, utils_1.elementChildren)(slidesEl, ".".concat(params.slideClass, ", swiper-slide"));
|
|
228
|
+
var firstSlideIndex = (0, utils_1.elementIndex)(slides[0]);
|
|
229
|
+
return (0, utils_1.elementIndex)(slideEl) - firstSlideIndex;
|
|
230
|
+
};
|
|
231
|
+
Swiper.prototype.getSlideIndexByData = function (index) {
|
|
232
|
+
return this.getSlideIndex(this.slides.filter(function (slideEl) { return slideEl.getAttribute('data-swiper-slide-index') * 1 === index; })[0]);
|
|
233
|
+
};
|
|
234
|
+
Swiper.prototype.recalcSlides = function () {
|
|
235
|
+
var swiper = this;
|
|
236
|
+
var slidesEl = swiper.slidesEl, params = swiper.params;
|
|
237
|
+
swiper.slides = (0, utils_1.elementChildren)(slidesEl, ".".concat(params.slideClass, ", swiper-slide"));
|
|
238
|
+
};
|
|
239
|
+
Swiper.prototype.enable = function () {
|
|
240
|
+
var swiper = this;
|
|
241
|
+
if (swiper.enabled)
|
|
242
|
+
return;
|
|
243
|
+
swiper.enabled = true;
|
|
244
|
+
if (swiper.params.grabCursor) {
|
|
245
|
+
swiper.setGrabCursor();
|
|
246
|
+
}
|
|
247
|
+
swiper.emit('enable');
|
|
248
|
+
};
|
|
249
|
+
Swiper.prototype.disable = function () {
|
|
250
|
+
var swiper = this;
|
|
251
|
+
if (!swiper.enabled)
|
|
252
|
+
return;
|
|
253
|
+
swiper.enabled = false;
|
|
254
|
+
if (swiper.params.grabCursor) {
|
|
255
|
+
swiper.unsetGrabCursor();
|
|
256
|
+
}
|
|
257
|
+
swiper.emit('disable');
|
|
258
|
+
};
|
|
259
|
+
Swiper.prototype.setProgress = function (progress, speed) {
|
|
260
|
+
var swiper = this;
|
|
261
|
+
progress = Math.min(Math.max(progress, 0), 1);
|
|
262
|
+
var min = swiper.minTranslate();
|
|
263
|
+
var max = swiper.maxTranslate();
|
|
264
|
+
var current = (max - min) * progress + min;
|
|
265
|
+
swiper.translateTo(current, typeof speed === 'undefined' ? 0 : speed);
|
|
266
|
+
swiper.updateActiveIndex();
|
|
267
|
+
swiper.updateSlidesClasses();
|
|
268
|
+
};
|
|
269
|
+
Swiper.prototype.emitContainerClasses = function () {
|
|
270
|
+
var swiper = this;
|
|
271
|
+
if (!swiper.params._emitClasses || !swiper.el)
|
|
272
|
+
return;
|
|
273
|
+
var cls = swiper.el.className.split(' ').filter(function (className) {
|
|
274
|
+
return (className.indexOf('swiper') === 0 ||
|
|
275
|
+
className.indexOf(swiper.params.containerModifierClass) === 0);
|
|
276
|
+
});
|
|
277
|
+
swiper.emit('_containerClasses', cls.join(' '));
|
|
278
|
+
};
|
|
279
|
+
Swiper.prototype.getSlideClasses = function (slideEl) {
|
|
280
|
+
var swiper = this;
|
|
281
|
+
if (swiper.destroyed)
|
|
282
|
+
return '';
|
|
283
|
+
return slideEl.className
|
|
284
|
+
.split(' ')
|
|
285
|
+
.filter(function (className) {
|
|
286
|
+
return (className.indexOf('swiper-slide') === 0 ||
|
|
287
|
+
className.indexOf(swiper.params.slideClass) === 0);
|
|
288
|
+
})
|
|
289
|
+
.join(' ');
|
|
290
|
+
};
|
|
291
|
+
Swiper.prototype.emitSlidesClasses = function () {
|
|
292
|
+
var swiper = this;
|
|
293
|
+
if (!swiper.params._emitClasses || !swiper.el)
|
|
294
|
+
return;
|
|
295
|
+
var updates = [];
|
|
296
|
+
swiper.slides.forEach(function (slideEl) {
|
|
297
|
+
var classNames = swiper.getSlideClasses(slideEl);
|
|
298
|
+
updates.push({ slideEl: slideEl, classNames: classNames });
|
|
299
|
+
swiper.emit('_slideClass', slideEl, classNames);
|
|
300
|
+
});
|
|
301
|
+
swiper.emit('_slideClasses', updates);
|
|
302
|
+
};
|
|
303
|
+
Swiper.prototype.slidesPerViewDynamic = function (view, exact) {
|
|
304
|
+
if (view === void 0) { view = 'current'; }
|
|
305
|
+
if (exact === void 0) { exact = false; }
|
|
306
|
+
var swiper = this;
|
|
307
|
+
var params = swiper.params, slides = swiper.slides, slidesGrid = swiper.slidesGrid, slidesSizesGrid = swiper.slidesSizesGrid, swiperSize = swiper.size, activeIndex = swiper.activeIndex;
|
|
308
|
+
var spv = 1;
|
|
309
|
+
if (typeof params.slidesPerView === 'number')
|
|
310
|
+
return params.slidesPerView;
|
|
311
|
+
if (params.centeredSlides) {
|
|
312
|
+
var slideSize = slides[activeIndex] ? Math.ceil(slides[activeIndex].swiperSlideSize) : 0;
|
|
313
|
+
var breakLoop = void 0;
|
|
314
|
+
for (var i = activeIndex + 1; i < slides.length; i += 1) {
|
|
315
|
+
if (slides[i] && !breakLoop) {
|
|
316
|
+
slideSize += Math.ceil(slides[i].swiperSlideSize);
|
|
317
|
+
spv += 1;
|
|
318
|
+
if (slideSize > swiperSize)
|
|
319
|
+
breakLoop = true;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
for (var i = activeIndex - 1; i >= 0; i -= 1) {
|
|
323
|
+
if (slides[i] && !breakLoop) {
|
|
324
|
+
slideSize += slides[i].swiperSlideSize;
|
|
325
|
+
spv += 1;
|
|
326
|
+
if (slideSize > swiperSize)
|
|
327
|
+
breakLoop = true;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
else {
|
|
332
|
+
// eslint-disable-next-line
|
|
333
|
+
if (view === 'current') {
|
|
334
|
+
for (var i = activeIndex + 1; i < slides.length; i += 1) {
|
|
335
|
+
var slideInView = exact
|
|
336
|
+
? slidesGrid[i] + slidesSizesGrid[i] - slidesGrid[activeIndex] < swiperSize
|
|
337
|
+
: slidesGrid[i] - slidesGrid[activeIndex] < swiperSize;
|
|
338
|
+
if (slideInView) {
|
|
339
|
+
spv += 1;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
else {
|
|
344
|
+
// previous
|
|
345
|
+
for (var i = activeIndex - 1; i >= 0; i -= 1) {
|
|
346
|
+
var slideInView = slidesGrid[activeIndex] - slidesGrid[i] < swiperSize;
|
|
347
|
+
if (slideInView) {
|
|
348
|
+
spv += 1;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
return spv;
|
|
354
|
+
};
|
|
355
|
+
Swiper.prototype.update = function () {
|
|
356
|
+
var swiper = this;
|
|
357
|
+
if (!swiper || swiper.destroyed)
|
|
358
|
+
return;
|
|
359
|
+
var snapGrid = swiper.snapGrid, params = swiper.params;
|
|
360
|
+
// Breakpoints
|
|
361
|
+
if (params.breakpoints) {
|
|
362
|
+
swiper.setBreakpoint();
|
|
363
|
+
}
|
|
364
|
+
__spreadArray([], swiper.el.querySelectorAll('[loading="lazy"]'), true).forEach(function (imageEl) {
|
|
365
|
+
if (imageEl.complete) {
|
|
366
|
+
(0, process_lazy_preloader_1.processLazyPreloader)(swiper, imageEl);
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
swiper.updateSize();
|
|
370
|
+
swiper.updateSlides();
|
|
371
|
+
swiper.updateProgress();
|
|
372
|
+
swiper.updateSlidesClasses();
|
|
373
|
+
function setTranslate() {
|
|
374
|
+
var translateValue = swiper.rtlTranslate ? swiper.translate * -1 : swiper.translate;
|
|
375
|
+
var newTranslate = Math.min(Math.max(translateValue, swiper.maxTranslate()), swiper.minTranslate());
|
|
376
|
+
swiper.setTranslate(newTranslate);
|
|
377
|
+
swiper.updateActiveIndex();
|
|
378
|
+
swiper.updateSlidesClasses();
|
|
379
|
+
}
|
|
380
|
+
var translated;
|
|
381
|
+
if (params.freeMode && params.freeMode.enabled && !params.cssMode) {
|
|
382
|
+
setTranslate();
|
|
383
|
+
if (params.autoHeight) {
|
|
384
|
+
swiper.updateAutoHeight();
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
else {
|
|
388
|
+
if ((params.slidesPerView === 'auto' || params.slidesPerView > 1) &&
|
|
389
|
+
swiper.isEnd &&
|
|
390
|
+
!params.centeredSlides) {
|
|
391
|
+
var slides = swiper.virtual && params.virtual.enabled ? swiper.virtual.slides : swiper.slides;
|
|
392
|
+
translated = swiper.slideTo(slides.length - 1, 0, false, true);
|
|
393
|
+
}
|
|
394
|
+
else {
|
|
395
|
+
translated = swiper.slideTo(swiper.activeIndex, 0, false, true);
|
|
396
|
+
}
|
|
397
|
+
if (!translated) {
|
|
398
|
+
setTranslate();
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
if (params.watchOverflow && snapGrid !== swiper.snapGrid) {
|
|
402
|
+
swiper.checkOverflow();
|
|
403
|
+
}
|
|
404
|
+
swiper.emit('update');
|
|
405
|
+
};
|
|
406
|
+
Swiper.prototype.changeDirection = function (newDirection, needUpdate) {
|
|
407
|
+
if (needUpdate === void 0) { needUpdate = true; }
|
|
408
|
+
var swiper = this;
|
|
409
|
+
var currentDirection = swiper.params.direction;
|
|
410
|
+
if (!newDirection) {
|
|
411
|
+
// eslint-disable-next-line
|
|
412
|
+
newDirection = currentDirection === 'horizontal' ? 'vertical' : 'horizontal';
|
|
413
|
+
}
|
|
414
|
+
if (newDirection === currentDirection ||
|
|
415
|
+
(newDirection !== 'horizontal' && newDirection !== 'vertical')) {
|
|
416
|
+
return swiper;
|
|
417
|
+
}
|
|
418
|
+
swiper.el.classList.remove("".concat(swiper.params.containerModifierClass).concat(currentDirection));
|
|
419
|
+
swiper.el.classList.add("".concat(swiper.params.containerModifierClass).concat(newDirection));
|
|
420
|
+
swiper.emitContainerClasses();
|
|
421
|
+
swiper.params.direction = newDirection;
|
|
422
|
+
swiper.slides.forEach(function (slideEl) {
|
|
423
|
+
if (newDirection === 'vertical') {
|
|
424
|
+
slideEl.style.width = '';
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
slideEl.style.height = '';
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
swiper.emit('changeDirection');
|
|
431
|
+
if (needUpdate)
|
|
432
|
+
swiper.update();
|
|
433
|
+
return swiper;
|
|
434
|
+
};
|
|
435
|
+
Swiper.prototype.changeLanguageDirection = function (direction) {
|
|
436
|
+
var swiper = this;
|
|
437
|
+
if ((swiper.rtl && direction === 'rtl') || (!swiper.rtl && direction === 'ltr'))
|
|
438
|
+
return;
|
|
439
|
+
swiper.rtl = direction === 'rtl';
|
|
440
|
+
swiper.rtlTranslate = swiper.params.direction === 'horizontal' && swiper.rtl;
|
|
441
|
+
if (swiper.rtl) {
|
|
442
|
+
swiper.el.classList.add("".concat(swiper.params.containerModifierClass, "rtl"));
|
|
443
|
+
swiper.el.dir = 'rtl';
|
|
444
|
+
}
|
|
445
|
+
else {
|
|
446
|
+
swiper.el.classList.remove("".concat(swiper.params.containerModifierClass, "rtl"));
|
|
447
|
+
swiper.el.dir = 'ltr';
|
|
448
|
+
}
|
|
449
|
+
swiper.update();
|
|
450
|
+
};
|
|
451
|
+
Swiper.prototype.mount = function (element) {
|
|
452
|
+
var swiper = this;
|
|
453
|
+
if (swiper.mounted)
|
|
454
|
+
return true;
|
|
455
|
+
// Find el
|
|
456
|
+
var el = element || swiper.params.el;
|
|
457
|
+
if (typeof el === 'string') {
|
|
458
|
+
el = document.querySelector(el);
|
|
459
|
+
}
|
|
460
|
+
if (!el) {
|
|
461
|
+
return false;
|
|
462
|
+
}
|
|
463
|
+
el.swiper = swiper;
|
|
464
|
+
if (el.parentNode &&
|
|
465
|
+
el.parentNode.host &&
|
|
466
|
+
el.parentNode.host.nodeName === swiper.params.swiperElementNodeName.toUpperCase()) {
|
|
467
|
+
swiper.isElement = true;
|
|
468
|
+
}
|
|
469
|
+
var getWrapperSelector = function () {
|
|
470
|
+
return ".".concat((swiper.params.wrapperClass || '').trim().split(' ').join('.'));
|
|
471
|
+
};
|
|
472
|
+
var getWrapper = function () {
|
|
473
|
+
if (el && el.shadowRoot && el.shadowRoot.querySelector) {
|
|
474
|
+
var res = el.shadowRoot.querySelector(getWrapperSelector());
|
|
475
|
+
// Children needs to return slot items
|
|
476
|
+
return res;
|
|
477
|
+
}
|
|
478
|
+
return (0, utils_1.elementChildren)(el, getWrapperSelector())[0];
|
|
479
|
+
};
|
|
480
|
+
// Find Wrapper
|
|
481
|
+
var wrapperEl = getWrapper();
|
|
482
|
+
if (!wrapperEl && swiper.params.createElements) {
|
|
483
|
+
wrapperEl = (0, utils_1.createElement)('div', swiper.params.wrapperClass);
|
|
484
|
+
el.append(wrapperEl);
|
|
485
|
+
(0, utils_1.elementChildren)(el, ".".concat(swiper.params.slideClass)).forEach(function (slideEl) {
|
|
486
|
+
wrapperEl.append(slideEl);
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
Object.assign(swiper, {
|
|
490
|
+
el: el,
|
|
491
|
+
wrapperEl: wrapperEl,
|
|
492
|
+
slidesEl: swiper.isElement && !el.parentNode.host.slideSlots ? el.parentNode.host : wrapperEl,
|
|
493
|
+
hostEl: swiper.isElement ? el.parentNode.host : el,
|
|
494
|
+
mounted: true,
|
|
495
|
+
// RTL
|
|
496
|
+
rtl: el.dir.toLowerCase() === 'rtl' || (0, utils_1.elementStyle)(el, 'direction') === 'rtl',
|
|
497
|
+
rtlTranslate: swiper.params.direction === 'horizontal' &&
|
|
498
|
+
(el.dir.toLowerCase() === 'rtl' || (0, utils_1.elementStyle)(el, 'direction') === 'rtl'),
|
|
499
|
+
wrongRTL: (0, utils_1.elementStyle)(wrapperEl, 'display') === '-webkit-box',
|
|
500
|
+
});
|
|
501
|
+
return true;
|
|
502
|
+
};
|
|
503
|
+
Swiper.prototype.init = function (el) {
|
|
504
|
+
var swiper = this;
|
|
505
|
+
if (swiper.initialized)
|
|
506
|
+
return swiper;
|
|
507
|
+
var mounted = swiper.mount(el);
|
|
508
|
+
if (mounted === false)
|
|
509
|
+
return swiper;
|
|
510
|
+
swiper.emit('beforeInit');
|
|
511
|
+
// Set breakpoint
|
|
512
|
+
if (swiper.params.breakpoints) {
|
|
513
|
+
swiper.setBreakpoint();
|
|
514
|
+
}
|
|
515
|
+
// Add Classes
|
|
516
|
+
swiper.addClasses();
|
|
517
|
+
// Update size
|
|
518
|
+
swiper.updateSize();
|
|
519
|
+
// Update slides
|
|
520
|
+
swiper.updateSlides();
|
|
521
|
+
if (swiper.params.watchOverflow) {
|
|
522
|
+
swiper.checkOverflow();
|
|
523
|
+
}
|
|
524
|
+
// Set Grab Cursor
|
|
525
|
+
if (swiper.params.grabCursor && swiper.enabled) {
|
|
526
|
+
swiper.setGrabCursor();
|
|
527
|
+
}
|
|
528
|
+
// Slide To Initial Slide
|
|
529
|
+
if (swiper.params.loop && swiper.virtual && swiper.params.virtual.enabled) {
|
|
530
|
+
swiper.slideTo(swiper.params.initialSlide + swiper.virtual.slidesBefore, 0, swiper.params.runCallbacksOnInit, false, true);
|
|
531
|
+
}
|
|
532
|
+
else {
|
|
533
|
+
swiper.slideTo(swiper.params.initialSlide, 0, swiper.params.runCallbacksOnInit, false, true);
|
|
534
|
+
}
|
|
535
|
+
// Create loop
|
|
536
|
+
if (swiper.params.loop) {
|
|
537
|
+
swiper.loopCreate();
|
|
538
|
+
}
|
|
539
|
+
// Attach events
|
|
540
|
+
swiper.attachEvents();
|
|
541
|
+
var lazyElements = __spreadArray([], swiper.el.querySelectorAll('[loading="lazy"]'), true);
|
|
542
|
+
if (swiper.isElement) {
|
|
543
|
+
lazyElements.push.apply(lazyElements, swiper.hostEl.querySelectorAll('[loading="lazy"]'));
|
|
544
|
+
}
|
|
545
|
+
lazyElements.forEach(function (imageEl) {
|
|
546
|
+
if (imageEl.complete) {
|
|
547
|
+
(0, process_lazy_preloader_1.processLazyPreloader)(swiper, imageEl);
|
|
548
|
+
}
|
|
549
|
+
else {
|
|
550
|
+
imageEl.addEventListener('load', function (e) {
|
|
551
|
+
(0, process_lazy_preloader_1.processLazyPreloader)(swiper, e.target);
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
});
|
|
555
|
+
(0, process_lazy_preloader_1.preload)(swiper);
|
|
556
|
+
// Init Flag
|
|
557
|
+
swiper.initialized = true;
|
|
558
|
+
(0, process_lazy_preloader_1.preload)(swiper);
|
|
559
|
+
// Emit
|
|
560
|
+
swiper.emit('init');
|
|
561
|
+
swiper.emit('afterInit');
|
|
562
|
+
return swiper;
|
|
563
|
+
};
|
|
564
|
+
Swiper.prototype.destroy = function (deleteInstance, cleanStyles) {
|
|
565
|
+
if (deleteInstance === void 0) { deleteInstance = true; }
|
|
566
|
+
if (cleanStyles === void 0) { cleanStyles = true; }
|
|
567
|
+
var swiper = this;
|
|
568
|
+
var params = swiper.params, el = swiper.el, wrapperEl = swiper.wrapperEl, slides = swiper.slides;
|
|
569
|
+
if (typeof swiper.params === 'undefined' || swiper.destroyed) {
|
|
570
|
+
return null;
|
|
571
|
+
}
|
|
572
|
+
swiper.emit('beforeDestroy');
|
|
573
|
+
// Init Flag
|
|
574
|
+
swiper.initialized = false;
|
|
575
|
+
// Detach events
|
|
576
|
+
swiper.detachEvents();
|
|
577
|
+
// Destroy loop
|
|
578
|
+
if (params.loop) {
|
|
579
|
+
swiper.loopDestroy();
|
|
580
|
+
}
|
|
581
|
+
// Cleanup styles
|
|
582
|
+
if (cleanStyles) {
|
|
583
|
+
swiper.removeClasses();
|
|
584
|
+
if (el && typeof el !== 'string') {
|
|
585
|
+
el.removeAttribute('style');
|
|
586
|
+
}
|
|
587
|
+
if (wrapperEl) {
|
|
588
|
+
wrapperEl.removeAttribute('style');
|
|
589
|
+
}
|
|
590
|
+
if (slides && slides.length) {
|
|
591
|
+
slides.forEach(function (slideEl) {
|
|
592
|
+
slideEl.classList.remove(params.slideVisibleClass, params.slideFullyVisibleClass, params.slideActiveClass, params.slideNextClass, params.slidePrevClass);
|
|
593
|
+
slideEl.removeAttribute('style');
|
|
594
|
+
slideEl.removeAttribute('data-swiper-slide-index');
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
swiper.emit('destroy');
|
|
599
|
+
// Detach emitter events
|
|
600
|
+
Object.keys(swiper.eventsListeners).forEach(function (eventName) {
|
|
601
|
+
swiper.off(eventName);
|
|
602
|
+
});
|
|
603
|
+
if (deleteInstance !== false) {
|
|
604
|
+
if (swiper.el && typeof swiper.el !== 'string') {
|
|
605
|
+
swiper.el.swiper = null;
|
|
606
|
+
}
|
|
607
|
+
(0, utils_1.deleteProps)(swiper);
|
|
608
|
+
}
|
|
609
|
+
swiper.destroyed = true;
|
|
610
|
+
return null;
|
|
611
|
+
};
|
|
612
|
+
Swiper.extendDefaults = function (newDefaults) {
|
|
613
|
+
(0, utils_1.extend)(extendedDefaults, newDefaults);
|
|
614
|
+
};
|
|
615
|
+
Object.defineProperty(Swiper, "extendedDefaults", {
|
|
616
|
+
get: function () {
|
|
617
|
+
return extendedDefaults;
|
|
618
|
+
},
|
|
619
|
+
enumerable: false,
|
|
620
|
+
configurable: true
|
|
621
|
+
});
|
|
622
|
+
Object.defineProperty(Swiper, "defaults", {
|
|
623
|
+
get: function () {
|
|
624
|
+
return defaults_1.default;
|
|
625
|
+
},
|
|
626
|
+
enumerable: false,
|
|
627
|
+
configurable: true
|
|
628
|
+
});
|
|
629
|
+
Swiper.installModule = function (mod) {
|
|
630
|
+
if (!Swiper.prototype.__modules__)
|
|
631
|
+
Swiper.prototype.__modules__ = [];
|
|
632
|
+
var modules = Swiper.prototype.__modules__;
|
|
633
|
+
if (typeof mod === 'function' && modules.indexOf(mod) < 0) {
|
|
634
|
+
modules.push(mod);
|
|
635
|
+
}
|
|
636
|
+
};
|
|
637
|
+
Swiper.use = function (module) {
|
|
638
|
+
if (Array.isArray(module)) {
|
|
639
|
+
module.forEach(function (m) { return Swiper.installModule(m); });
|
|
640
|
+
return Swiper;
|
|
641
|
+
}
|
|
642
|
+
Swiper.installModule(module);
|
|
643
|
+
return Swiper;
|
|
644
|
+
};
|
|
645
|
+
return Swiper;
|
|
646
|
+
}());
|
|
647
|
+
Object.keys(prototypes).forEach(function (prototypeGroup) {
|
|
648
|
+
Object.keys(prototypes[prototypeGroup]).forEach(function (protoMethod) {
|
|
649
|
+
Swiper.prototype[protoMethod] = prototypes[prototypeGroup][protoMethod];
|
|
650
|
+
});
|
|
651
|
+
});
|
|
652
|
+
Swiper.use([resize_1.default, observer_1.default]);
|
|
653
|
+
exports.default = Swiper;
|
|
654
|
+
//# sourceMappingURL=core.js.map
|
|
@@ -3,15 +3,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var onTouchStart_1 = __importDefault(require("./onTouchStart"));
|
|
7
|
-
var onTouchMove_1 = __importDefault(require("./onTouchMove"));
|
|
8
|
-
var onTouchEnd_1 = __importDefault(require("./onTouchEnd"));
|
|
9
|
-
var onResize_1 = __importDefault(require("./onResize"));
|
|
10
|
-
var onClick_1 = __importDefault(require("./onClick"));
|
|
11
|
-
var onScroll_1 = __importDefault(require("./onScroll"));
|
|
12
|
-
var onLoad_1 = __importDefault(require("./onLoad"));
|
|
13
|
-
var onDocumentTouchStart_1 = __importDefault(require("./onDocumentTouchStart"));
|
|
14
|
-
var document_1 = require("../../ssr-window/document");
|
|
6
|
+
var onTouchStart_1 = __importDefault(require("./onTouchStart.js"));
|
|
7
|
+
var onTouchMove_1 = __importDefault(require("./onTouchMove.js"));
|
|
8
|
+
var onTouchEnd_1 = __importDefault(require("./onTouchEnd.js"));
|
|
9
|
+
var onResize_1 = __importDefault(require("./onResize.js"));
|
|
10
|
+
var onClick_1 = __importDefault(require("./onClick.js"));
|
|
11
|
+
var onScroll_1 = __importDefault(require("./onScroll.js"));
|
|
12
|
+
var onLoad_1 = __importDefault(require("./onLoad.js"));
|
|
13
|
+
var onDocumentTouchStart_1 = __importDefault(require("./onDocumentTouchStart.js"));
|
|
14
|
+
var document_1 = require("../../ssr-window/document.js");
|
|
15
15
|
var events = function (swiper, method) {
|
|
16
16
|
var document = (0, document_1.getDocument)();
|
|
17
17
|
var params = swiper.params, el = swiper.el, wrapperEl = swiper.wrapperEl, device = swiper.device;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var process_lazy_preloader_1 = require("../../shared/process-lazy-preloader");
|
|
3
|
+
var process_lazy_preloader_1 = require("../../shared/process-lazy-preloader.js");
|
|
4
4
|
function onLoad(e) {
|
|
5
5
|
var swiper = this;
|
|
6
6
|
(0, process_lazy_preloader_1.processLazyPreloader)(swiper, e.target);
|