infinity-forge 2.6.6 → 2.6.7
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 +6 -6
- package/dist/system/presentation/components/data/menu/modes/collapsed-menu/index.js.map +1 -1
- 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 +0 -19
- 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 +0 -1
- package/dist/system/presentation/hooks/notifications/use-load-all/index.js +0 -63
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.d.ts +0 -2
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.js +0 -60
- package/dist/system/presentation/hooks/ui/use-table/component.d.ts +0 -8
- package/dist/system/presentation/hooks/ui/use-table/component.js +0 -26
- 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 +36 -31
- 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.d.ts +4 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/styles.js +4 -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/styles.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/styles.js.map +1 -1
- 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 +0 -4
- package/dist/system/presentation/hooks/ui/use-table/index.js +0 -21
- package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +0 -93
- 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/accordion/interfaces.d.ts +1 -1
- package/dist/ui/components/carousel/carousel-lib/components-shared/get-changed-params.js +0 -51
- package/dist/ui/components/carousel/carousel-lib/components-shared/get-element-params.js +0 -148
- package/dist/ui/components/carousel/carousel-lib/components-shared/get-params.js +0 -61
- package/dist/ui/components/carousel/carousel-lib/components-shared/mount-swiper.js +0 -24
- package/dist/ui/components/carousel/carousel-lib/components-shared/update-swiper.js +0 -208
- 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 +0 -654
- 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 +0 -42
- 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 +0 -336
- package/dist/ui/components/carousel/carousel-lib/modules/effect-fade.js +0 -63
- package/dist/ui/components/carousel/carousel-lib/modules/free-mode.js +0 -247
- package/dist/ui/components/carousel/carousel-lib/modules/index.d.ts +0 -6
- package/dist/ui/components/carousel/carousel-lib/modules/index.js +0 -23
- package/dist/ui/components/carousel/carousel-lib/modules/navigation.js +0 -223
- package/dist/ui/components/carousel/carousel-lib/modules/pagination.js +0 -514
- package/dist/ui/components/carousel/carousel-lib/modules/virtual.js +0 -379
- package/dist/ui/components/carousel/carousel-lib/react/swiper-slide.js +0 -88
- package/dist/ui/components/carousel/carousel-lib/react/swiper.js +0 -210
- package/dist/ui/components/carousel/carousel-lib/shared/create-element-if-not-defined.js +0 -22
- package/dist/ui/components/carousel/carousel-lib/shared/create-shadow.js +0 -15
- package/dist/ui/components/carousel/carousel-lib/shared/effect-target.js +0 -13
- package/dist/ui/components/carousel/carousel-lib/shared/effect-virtual-transition-end.js +0 -47
- package/dist/ui/components/carousel/carousel-lib/shared/get-browser.js +0 -43
- package/dist/ui/components/carousel/carousel-lib/shared/get-device.js +0 -69
- package/dist/ui/components/carousel/carousel-lib/shared/get-support.js +0 -25
- package/dist/ui/components/carousel/carousel-lib/shared/utils.js +0 -372
- package/dist/ui/components/carousel/carousel-lib/ssr-window/document.js +0 -65
- package/dist/ui/components/carousel/carousel-lib/ssr-window/ssr-window.d.ts +0 -4
- package/dist/ui/components/carousel/carousel-lib/ssr-window/ssr-window.js +0 -15
- package/dist/ui/components/carousel/carousel-lib/ssr-window/window.js +0 -71
- package/dist/ui/components/carousel/carousel-lib/types/index.d.ts +0 -5
- package/dist/ui/components/carousel/carousel-lib/types/index.js +0 -27
- package/dist/ui/components/carousel/carousel-lib/types/swiper-events.d.ts +0 -162
- package/dist/ui/components/form/handler/custom-submit/index.d.ts +0 -17
- package/dist/ui/components/form/handler/custom-submit/index.js +0 -25
- package/dist/ui/components/form/handler/dynamic_form_handler/component.d.ts +0 -2
- package/dist/ui/components/form/handler/dynamic_form_handler/component.js +0 -118
- package/dist/ui/components/form/handler/dynamic_form_handler/index.d.ts +0 -2
- package/dist/ui/components/form/handler/dynamic_form_handler/index.js +0 -19
- package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.d.ts +0 -28
- package/dist/ui/components/form/handler/form-handler/generate-schemas.js +0 -111
- package/dist/ui/components/form/handler/form-handler/index.d.ts +0 -2
- package/dist/ui/components/form/handler/form-handler/index.js +0 -241
- package/dist/ui/components/form/handler/form-handler/use-schemas.d.ts +0 -2
- package/dist/ui/components/form/handler/form-handler/use-schemas.js +0 -115
- package/dist/ui/components/form/handler/form-handler/use-send-file.d.ts +0 -5
- package/dist/ui/components/form/handler/form-handler/use-send-file.js +0 -209
- 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 +0 -2
- package/dist/ui/components/form/handler/i18n/index.js +0 -57
- package/dist/ui/components/form/input-cep/use-cep/hook.d.ts +0 -5
- package/dist/ui/components/form/input-cep/use-cep/hook.js +0 -14
- package/dist/ui/components/form/input-cep/use-cep/index.d.ts +0 -2
- package/dist/ui/components/form/input-cep/use-cep/index.js +0 -19
- 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 +0 -34
- package/dist/ui/components/form/input-control/label/index.js +0 -34
- package/dist/ui/components/form/input-control/loader-input/index.js +0 -34
- package/dist/ui/components/form/input-currency/components/CurrencyInput.js +0 -247
- package/dist/ui/components/form/input-currency/components/index.d.ts +0 -1
- package/dist/ui/components/form/input-currency/components/index.js +0 -18
- 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 +0 -9
- package/dist/ui/components/form/input-date-picker/calendar/index.js +0 -58
- 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 -0
- package/dist/ui/icons/index.js +1 -0
- package/dist/ui/icons/index.js.map +1 -1
- package/dist/ui/icons/render/arrow-lupa.d.ts +3 -0
- package/dist/ui/icons/render/arrow-lupa.js +15 -0
- package/dist/ui/icons/render/arrow-lupa.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,336 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint no-underscore-dangle: "off" */
|
|
3
|
-
/* eslint no-use-before-define: "off" */
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Autoplay = void 0;
|
|
6
|
-
var document_1 = require("../ssr-window/document.js");
|
|
7
|
-
function Autoplay(_a) {
|
|
8
|
-
var swiper = _a.swiper, extendParams = _a.extendParams, on = _a.on, emit = _a.emit, params = _a.params;
|
|
9
|
-
swiper.autoplay = {
|
|
10
|
-
running: false,
|
|
11
|
-
paused: false,
|
|
12
|
-
timeLeft: 0,
|
|
13
|
-
};
|
|
14
|
-
extendParams({
|
|
15
|
-
autoplay: {
|
|
16
|
-
enabled: false,
|
|
17
|
-
delay: 3000,
|
|
18
|
-
waitForTransition: true,
|
|
19
|
-
disableOnInteraction: false,
|
|
20
|
-
stopOnLastSlide: false,
|
|
21
|
-
reverseDirection: false,
|
|
22
|
-
pauseOnMouseEnter: false,
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
var timeout;
|
|
26
|
-
var raf;
|
|
27
|
-
var autoplayDelayTotal = params && params.autoplay ? params.autoplay.delay : 3000;
|
|
28
|
-
var autoplayDelayCurrent = params && params.autoplay ? params.autoplay.delay : 3000;
|
|
29
|
-
var autoplayTimeLeft;
|
|
30
|
-
var autoplayStartTime = new Date().getTime();
|
|
31
|
-
var wasPaused;
|
|
32
|
-
var isTouched;
|
|
33
|
-
var pausedByTouch;
|
|
34
|
-
var touchStartTimeout;
|
|
35
|
-
var slideChanged;
|
|
36
|
-
var pausedByInteraction;
|
|
37
|
-
var pausedByPointerEnter;
|
|
38
|
-
function onTransitionEnd(e) {
|
|
39
|
-
if (!swiper || swiper.destroyed || !swiper.wrapperEl)
|
|
40
|
-
return;
|
|
41
|
-
if (e.target !== swiper.wrapperEl)
|
|
42
|
-
return;
|
|
43
|
-
swiper.wrapperEl.removeEventListener('transitionend', onTransitionEnd);
|
|
44
|
-
if (pausedByPointerEnter || (e.detail && e.detail.bySwiperTouchMove)) {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
resume();
|
|
48
|
-
}
|
|
49
|
-
var calcTimeLeft = function () {
|
|
50
|
-
if (swiper.destroyed || !swiper.autoplay.running)
|
|
51
|
-
return;
|
|
52
|
-
if (swiper.autoplay.paused) {
|
|
53
|
-
wasPaused = true;
|
|
54
|
-
}
|
|
55
|
-
else if (wasPaused) {
|
|
56
|
-
autoplayDelayCurrent = autoplayTimeLeft;
|
|
57
|
-
wasPaused = false;
|
|
58
|
-
}
|
|
59
|
-
var timeLeft = swiper.autoplay.paused
|
|
60
|
-
? autoplayTimeLeft
|
|
61
|
-
: autoplayStartTime + autoplayDelayCurrent - new Date().getTime();
|
|
62
|
-
swiper.autoplay.timeLeft = timeLeft;
|
|
63
|
-
emit('autoplayTimeLeft', timeLeft, timeLeft / autoplayDelayTotal);
|
|
64
|
-
raf = requestAnimationFrame(function () {
|
|
65
|
-
calcTimeLeft();
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
var getSlideDelay = function () {
|
|
69
|
-
var activeSlideEl;
|
|
70
|
-
if (swiper.virtual && swiper.params.virtual.enabled) {
|
|
71
|
-
activeSlideEl = swiper.slides.filter(function (slideEl) {
|
|
72
|
-
return slideEl.classList.contains('swiper-slide-active');
|
|
73
|
-
})[0];
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
activeSlideEl = swiper.slides[swiper.activeIndex];
|
|
77
|
-
}
|
|
78
|
-
if (!activeSlideEl)
|
|
79
|
-
return undefined;
|
|
80
|
-
var currentSlideDelay = parseInt(activeSlideEl.getAttribute('data-swiper-autoplay'), 10);
|
|
81
|
-
return currentSlideDelay;
|
|
82
|
-
};
|
|
83
|
-
var run = function (delayForce) {
|
|
84
|
-
if (swiper.destroyed || !swiper.autoplay.running)
|
|
85
|
-
return;
|
|
86
|
-
cancelAnimationFrame(raf);
|
|
87
|
-
calcTimeLeft();
|
|
88
|
-
var delay = typeof delayForce === 'undefined' ? swiper.params.autoplay.delay : delayForce;
|
|
89
|
-
autoplayDelayTotal = swiper.params.autoplay.delay;
|
|
90
|
-
autoplayDelayCurrent = swiper.params.autoplay.delay;
|
|
91
|
-
var currentSlideDelay = getSlideDelay();
|
|
92
|
-
if (!Number.isNaN(currentSlideDelay) &&
|
|
93
|
-
currentSlideDelay > 0 &&
|
|
94
|
-
typeof delayForce === 'undefined') {
|
|
95
|
-
delay = currentSlideDelay;
|
|
96
|
-
autoplayDelayTotal = currentSlideDelay;
|
|
97
|
-
autoplayDelayCurrent = currentSlideDelay;
|
|
98
|
-
}
|
|
99
|
-
autoplayTimeLeft = delay;
|
|
100
|
-
var speed = swiper.params.speed;
|
|
101
|
-
var proceed = function () {
|
|
102
|
-
if (!swiper || swiper.destroyed)
|
|
103
|
-
return;
|
|
104
|
-
if (swiper.params.autoplay.reverseDirection) {
|
|
105
|
-
if (!swiper.isBeginning || swiper.params.loop || swiper.params.rewind) {
|
|
106
|
-
swiper.slidePrev(speed, true, true);
|
|
107
|
-
emit('autoplay');
|
|
108
|
-
}
|
|
109
|
-
else if (!swiper.params.autoplay.stopOnLastSlide) {
|
|
110
|
-
swiper.slideTo(swiper.slides.length - 1, speed, true, true);
|
|
111
|
-
emit('autoplay');
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
if (!swiper.isEnd || swiper.params.loop || swiper.params.rewind) {
|
|
116
|
-
swiper.slideNext(speed, true, true);
|
|
117
|
-
emit('autoplay');
|
|
118
|
-
}
|
|
119
|
-
else if (!swiper.params.autoplay.stopOnLastSlide) {
|
|
120
|
-
swiper.slideTo(0, speed, true, true);
|
|
121
|
-
emit('autoplay');
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
if (swiper.params.cssMode) {
|
|
125
|
-
autoplayStartTime = new Date().getTime();
|
|
126
|
-
requestAnimationFrame(function () {
|
|
127
|
-
run(undefined);
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
if (delay > 0) {
|
|
132
|
-
clearTimeout(timeout);
|
|
133
|
-
timeout = setTimeout(function () {
|
|
134
|
-
proceed();
|
|
135
|
-
}, delay);
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
requestAnimationFrame(function () {
|
|
139
|
-
proceed();
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
// eslint-disable-next-line
|
|
143
|
-
return delay;
|
|
144
|
-
};
|
|
145
|
-
var start = function () {
|
|
146
|
-
autoplayStartTime = new Date().getTime();
|
|
147
|
-
swiper.autoplay.running = true;
|
|
148
|
-
run(undefined);
|
|
149
|
-
emit('autoplayStart');
|
|
150
|
-
};
|
|
151
|
-
var stop = function () {
|
|
152
|
-
swiper.autoplay.running = false;
|
|
153
|
-
clearTimeout(timeout);
|
|
154
|
-
cancelAnimationFrame(raf);
|
|
155
|
-
emit('autoplayStop');
|
|
156
|
-
};
|
|
157
|
-
var pause = function (internal, reset) {
|
|
158
|
-
if (swiper.destroyed || !swiper.autoplay.running)
|
|
159
|
-
return;
|
|
160
|
-
clearTimeout(timeout);
|
|
161
|
-
if (!internal) {
|
|
162
|
-
pausedByInteraction = true;
|
|
163
|
-
}
|
|
164
|
-
var proceed = function () {
|
|
165
|
-
emit('autoplayPause');
|
|
166
|
-
if (swiper.params.autoplay.waitForTransition) {
|
|
167
|
-
swiper.wrapperEl.addEventListener('transitionend', onTransitionEnd);
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
resume();
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
|
-
swiper.autoplay.paused = true;
|
|
174
|
-
if (reset) {
|
|
175
|
-
if (slideChanged) {
|
|
176
|
-
autoplayTimeLeft = swiper.params.autoplay.delay;
|
|
177
|
-
}
|
|
178
|
-
slideChanged = false;
|
|
179
|
-
proceed();
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
|
-
var delay = autoplayTimeLeft || swiper.params.autoplay.delay;
|
|
183
|
-
autoplayTimeLeft = delay - (new Date().getTime() - autoplayStartTime);
|
|
184
|
-
if (swiper.isEnd && autoplayTimeLeft < 0 && !swiper.params.loop)
|
|
185
|
-
return;
|
|
186
|
-
if (autoplayTimeLeft < 0)
|
|
187
|
-
autoplayTimeLeft = 0;
|
|
188
|
-
proceed();
|
|
189
|
-
};
|
|
190
|
-
var resume = function () {
|
|
191
|
-
if ((swiper.isEnd && autoplayTimeLeft < 0 && !swiper.params.loop) ||
|
|
192
|
-
swiper.destroyed ||
|
|
193
|
-
!swiper.autoplay.running)
|
|
194
|
-
return;
|
|
195
|
-
autoplayStartTime = new Date().getTime();
|
|
196
|
-
if (pausedByInteraction) {
|
|
197
|
-
pausedByInteraction = false;
|
|
198
|
-
run(autoplayTimeLeft);
|
|
199
|
-
}
|
|
200
|
-
else {
|
|
201
|
-
run(undefined);
|
|
202
|
-
}
|
|
203
|
-
swiper.autoplay.paused = false;
|
|
204
|
-
emit('autoplayResume');
|
|
205
|
-
};
|
|
206
|
-
var onVisibilityChange = function () {
|
|
207
|
-
if (swiper.destroyed || !swiper.autoplay.running)
|
|
208
|
-
return;
|
|
209
|
-
var document = (0, document_1.getDocument)();
|
|
210
|
-
if (document.visibilityState === 'hidden') {
|
|
211
|
-
pausedByInteraction = true;
|
|
212
|
-
pause(true, undefined);
|
|
213
|
-
}
|
|
214
|
-
if (document.visibilityState === 'visible') {
|
|
215
|
-
resume();
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
|
-
var onPointerEnter = function (e) {
|
|
219
|
-
if (e.pointerType !== 'mouse')
|
|
220
|
-
return;
|
|
221
|
-
pausedByInteraction = true;
|
|
222
|
-
pausedByPointerEnter = true;
|
|
223
|
-
if (swiper.animating || swiper.autoplay.paused)
|
|
224
|
-
return;
|
|
225
|
-
pause(true, undefined);
|
|
226
|
-
};
|
|
227
|
-
var onPointerLeave = function (e) {
|
|
228
|
-
if (e.pointerType !== 'mouse')
|
|
229
|
-
return;
|
|
230
|
-
pausedByPointerEnter = false;
|
|
231
|
-
if (swiper.autoplay.paused) {
|
|
232
|
-
resume();
|
|
233
|
-
}
|
|
234
|
-
};
|
|
235
|
-
var attachMouseEvents = function () {
|
|
236
|
-
if (swiper.params.autoplay.pauseOnMouseEnter) {
|
|
237
|
-
swiper.el.addEventListener('pointerenter', onPointerEnter);
|
|
238
|
-
swiper.el.addEventListener('pointerleave', onPointerLeave);
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
var detachMouseEvents = function () {
|
|
242
|
-
if (swiper.el && typeof swiper.el !== 'string') {
|
|
243
|
-
swiper.el.removeEventListener('pointerenter', onPointerEnter);
|
|
244
|
-
swiper.el.removeEventListener('pointerleave', onPointerLeave);
|
|
245
|
-
}
|
|
246
|
-
};
|
|
247
|
-
var attachDocumentEvents = function () {
|
|
248
|
-
var document = (0, document_1.getDocument)();
|
|
249
|
-
document.addEventListener('visibilitychange', onVisibilityChange);
|
|
250
|
-
};
|
|
251
|
-
var detachDocumentEvents = function () {
|
|
252
|
-
var document = (0, document_1.getDocument)();
|
|
253
|
-
document.removeEventListener('visibilitychange', onVisibilityChange);
|
|
254
|
-
};
|
|
255
|
-
on('init', function () {
|
|
256
|
-
if (swiper.params.autoplay.enabled) {
|
|
257
|
-
attachMouseEvents();
|
|
258
|
-
attachDocumentEvents();
|
|
259
|
-
start();
|
|
260
|
-
}
|
|
261
|
-
});
|
|
262
|
-
on('destroy', function () {
|
|
263
|
-
detachMouseEvents();
|
|
264
|
-
detachDocumentEvents();
|
|
265
|
-
if (swiper.autoplay.running) {
|
|
266
|
-
stop();
|
|
267
|
-
}
|
|
268
|
-
});
|
|
269
|
-
on('_freeModeStaticRelease', function () {
|
|
270
|
-
if (pausedByTouch || pausedByInteraction) {
|
|
271
|
-
resume();
|
|
272
|
-
}
|
|
273
|
-
});
|
|
274
|
-
on('_freeModeNoMomentumRelease', function () {
|
|
275
|
-
if (!swiper.params.autoplay.disableOnInteraction) {
|
|
276
|
-
pause(true, true);
|
|
277
|
-
}
|
|
278
|
-
else {
|
|
279
|
-
stop();
|
|
280
|
-
}
|
|
281
|
-
});
|
|
282
|
-
on('beforeTransitionStart', function (_s, speed, internal) {
|
|
283
|
-
if (swiper.destroyed || !swiper.autoplay.running)
|
|
284
|
-
return;
|
|
285
|
-
if (internal || !swiper.params.autoplay.disableOnInteraction) {
|
|
286
|
-
pause(true, true);
|
|
287
|
-
}
|
|
288
|
-
else {
|
|
289
|
-
stop();
|
|
290
|
-
}
|
|
291
|
-
});
|
|
292
|
-
on('sliderFirstMove', function () {
|
|
293
|
-
if (swiper.destroyed || !swiper.autoplay.running)
|
|
294
|
-
return;
|
|
295
|
-
if (swiper.params.autoplay.disableOnInteraction) {
|
|
296
|
-
stop();
|
|
297
|
-
return;
|
|
298
|
-
}
|
|
299
|
-
isTouched = true;
|
|
300
|
-
pausedByTouch = false;
|
|
301
|
-
pausedByInteraction = false;
|
|
302
|
-
touchStartTimeout = setTimeout(function () {
|
|
303
|
-
pausedByInteraction = true;
|
|
304
|
-
pausedByTouch = true;
|
|
305
|
-
pause(true, undefined);
|
|
306
|
-
}, 200);
|
|
307
|
-
});
|
|
308
|
-
on('touchEnd', function () {
|
|
309
|
-
if (swiper.destroyed || !swiper.autoplay.running || !isTouched)
|
|
310
|
-
return;
|
|
311
|
-
clearTimeout(touchStartTimeout);
|
|
312
|
-
clearTimeout(timeout);
|
|
313
|
-
if (swiper.params.autoplay.disableOnInteraction) {
|
|
314
|
-
pausedByTouch = false;
|
|
315
|
-
isTouched = false;
|
|
316
|
-
return;
|
|
317
|
-
}
|
|
318
|
-
if (pausedByTouch && swiper.params.cssMode)
|
|
319
|
-
resume();
|
|
320
|
-
pausedByTouch = false;
|
|
321
|
-
isTouched = false;
|
|
322
|
-
});
|
|
323
|
-
on('slideChange', function () {
|
|
324
|
-
if (swiper.destroyed || !swiper.autoplay.running)
|
|
325
|
-
return;
|
|
326
|
-
slideChanged = true;
|
|
327
|
-
});
|
|
328
|
-
Object.assign(swiper.autoplay, {
|
|
329
|
-
start: start,
|
|
330
|
-
stop: stop,
|
|
331
|
-
pause: pause,
|
|
332
|
-
resume: resume,
|
|
333
|
-
});
|
|
334
|
-
}
|
|
335
|
-
exports.Autoplay = Autoplay;
|
|
336
|
-
//# sourceMappingURL=autoplay.js.map
|
|
@@ -1,63 +0,0 @@
|
|
|
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.EffectFade = void 0;
|
|
7
|
-
var effect_init_1 = __importDefault(require("../shared/effect-init.js"));
|
|
8
|
-
var effect_target_1 = __importDefault(require("../shared/effect-target.js"));
|
|
9
|
-
var effect_virtual_transition_end_1 = __importDefault(require("../shared/effect-virtual-transition-end.js"));
|
|
10
|
-
var utils_1 = require("../shared/utils.js");
|
|
11
|
-
function EffectFade(_a) {
|
|
12
|
-
var swiper = _a.swiper, extendParams = _a.extendParams, on = _a.on;
|
|
13
|
-
extendParams({
|
|
14
|
-
fadeEffect: {
|
|
15
|
-
crossFade: false,
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
var setTranslate = function () {
|
|
19
|
-
var slides = swiper.slides;
|
|
20
|
-
var params = swiper.params.fadeEffect;
|
|
21
|
-
for (var i = 0; i < slides.length; i += 1) {
|
|
22
|
-
var slideEl = swiper.slides[i];
|
|
23
|
-
var offset = slideEl.swiperSlideOffset;
|
|
24
|
-
var tx = -offset;
|
|
25
|
-
if (!swiper.params.virtualTranslate)
|
|
26
|
-
tx -= swiper.translate;
|
|
27
|
-
var ty = 0;
|
|
28
|
-
if (!swiper.isHorizontal()) {
|
|
29
|
-
ty = tx;
|
|
30
|
-
tx = 0;
|
|
31
|
-
}
|
|
32
|
-
var slideOpacity = swiper.params.fadeEffect.crossFade
|
|
33
|
-
? Math.max(1 - Math.abs(slideEl.progress), 0)
|
|
34
|
-
: 1 + Math.min(Math.max(slideEl.progress, -1), 0);
|
|
35
|
-
var targetEl = (0, effect_target_1.default)(params, slideEl);
|
|
36
|
-
targetEl.style.opacity = slideOpacity;
|
|
37
|
-
targetEl.style.transform = "translate3d(".concat(tx, "px, ").concat(ty, "px, 0px)");
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
var setTransition = function (duration) {
|
|
41
|
-
var transformElements = swiper.slides.map(function (slideEl) { return (0, utils_1.getSlideTransformEl)(slideEl); });
|
|
42
|
-
transformElements.forEach(function (el) {
|
|
43
|
-
el.style.transitionDuration = "".concat(duration, "ms");
|
|
44
|
-
});
|
|
45
|
-
(0, effect_virtual_transition_end_1.default)({ swiper: swiper, duration: duration, transformElements: transformElements, allSlides: true });
|
|
46
|
-
};
|
|
47
|
-
(0, effect_init_1.default)({
|
|
48
|
-
effect: 'fade',
|
|
49
|
-
swiper: swiper,
|
|
50
|
-
on: on,
|
|
51
|
-
setTranslate: setTranslate,
|
|
52
|
-
setTransition: setTransition,
|
|
53
|
-
overwriteParams: function () { return ({
|
|
54
|
-
slidesPerView: 1,
|
|
55
|
-
slidesPerGroup: 1,
|
|
56
|
-
watchSlidesProgress: true,
|
|
57
|
-
spaceBetween: 0,
|
|
58
|
-
virtualTranslate: !swiper.params.cssMode,
|
|
59
|
-
}); },
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
exports.EffectFade = EffectFade;
|
|
63
|
-
//# sourceMappingURL=effect-fade.js.map
|
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.freeMode = void 0;
|
|
4
|
-
var utils_1 = require("../shared/utils.js");
|
|
5
|
-
function freeMode(_a) {
|
|
6
|
-
var swiper = _a.swiper, extendParams = _a.extendParams, emit = _a.emit, once = _a.once;
|
|
7
|
-
extendParams({
|
|
8
|
-
freeMode: {
|
|
9
|
-
enabled: false,
|
|
10
|
-
momentum: true,
|
|
11
|
-
momentumRatio: 1,
|
|
12
|
-
momentumBounce: true,
|
|
13
|
-
momentumBounceRatio: 1,
|
|
14
|
-
momentumVelocityRatio: 1,
|
|
15
|
-
sticky: false,
|
|
16
|
-
minimumVelocity: 0.02,
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
function onTouchStart() {
|
|
20
|
-
if (swiper.params.cssMode)
|
|
21
|
-
return;
|
|
22
|
-
var translate = swiper.getTranslate();
|
|
23
|
-
swiper.setTranslate(translate);
|
|
24
|
-
swiper.setTransition(0);
|
|
25
|
-
swiper.touchEventsData.velocities.length = 0;
|
|
26
|
-
swiper.freeMode.onTouchEnd({ currentPos: swiper.rtl ? swiper.translate : -swiper.translate });
|
|
27
|
-
}
|
|
28
|
-
function onTouchMove() {
|
|
29
|
-
if (swiper.params.cssMode)
|
|
30
|
-
return;
|
|
31
|
-
var data = swiper.touchEventsData, touches = swiper.touches;
|
|
32
|
-
// Velocity
|
|
33
|
-
if (data.velocities.length === 0) {
|
|
34
|
-
data.velocities.push({
|
|
35
|
-
position: touches[swiper.isHorizontal() ? 'startX' : 'startY'],
|
|
36
|
-
time: data.touchStartTime,
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
data.velocities.push({
|
|
40
|
-
position: touches[swiper.isHorizontal() ? 'currentX' : 'currentY'],
|
|
41
|
-
time: (0, utils_1.now)(),
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
function onTouchEnd(_a) {
|
|
45
|
-
var currentPos = _a.currentPos;
|
|
46
|
-
if (swiper.params.cssMode)
|
|
47
|
-
return;
|
|
48
|
-
var params = swiper.params, wrapperEl = swiper.wrapperEl, rtl = swiper.rtlTranslate, snapGrid = swiper.snapGrid, data = swiper.touchEventsData;
|
|
49
|
-
// Time diff
|
|
50
|
-
var touchEndTime = (0, utils_1.now)();
|
|
51
|
-
var timeDiff = touchEndTime - data.touchStartTime;
|
|
52
|
-
if (currentPos < -swiper.minTranslate()) {
|
|
53
|
-
swiper.slideTo(swiper.activeIndex);
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
if (currentPos > -swiper.maxTranslate()) {
|
|
57
|
-
if (swiper.slides.length < snapGrid.length) {
|
|
58
|
-
swiper.slideTo(snapGrid.length - 1);
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
swiper.slideTo(swiper.slides.length - 1);
|
|
62
|
-
}
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
if (params.freeMode.momentum) {
|
|
66
|
-
if (data.velocities.length > 1) {
|
|
67
|
-
var lastMoveEvent = data.velocities.pop();
|
|
68
|
-
var velocityEvent = data.velocities.pop();
|
|
69
|
-
var distance = lastMoveEvent.position - velocityEvent.position;
|
|
70
|
-
var time = lastMoveEvent.time - velocityEvent.time;
|
|
71
|
-
swiper.velocity = distance / time;
|
|
72
|
-
swiper.velocity /= 2;
|
|
73
|
-
if (Math.abs(swiper.velocity) < params.freeMode.minimumVelocity) {
|
|
74
|
-
swiper.velocity = 0;
|
|
75
|
-
}
|
|
76
|
-
// this implies that the user stopped moving a finger then released.
|
|
77
|
-
// There would be no events with distance zero, so the last event is stale.
|
|
78
|
-
if (time > 150 || (0, utils_1.now)() - lastMoveEvent.time > 300) {
|
|
79
|
-
swiper.velocity = 0;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
swiper.velocity = 0;
|
|
84
|
-
}
|
|
85
|
-
swiper.velocity *= params.freeMode.momentumVelocityRatio;
|
|
86
|
-
data.velocities.length = 0;
|
|
87
|
-
var momentumDuration = 1000 * params.freeMode.momentumRatio;
|
|
88
|
-
var momentumDistance = swiper.velocity * momentumDuration;
|
|
89
|
-
var newPosition = swiper.translate + momentumDistance;
|
|
90
|
-
if (rtl)
|
|
91
|
-
newPosition = -newPosition;
|
|
92
|
-
var doBounce = false;
|
|
93
|
-
var afterBouncePosition_1;
|
|
94
|
-
var bounceAmount = Math.abs(swiper.velocity) * 20 * params.freeMode.momentumBounceRatio;
|
|
95
|
-
var needsLoopFix = void 0;
|
|
96
|
-
if (newPosition < swiper.maxTranslate()) {
|
|
97
|
-
if (params.freeMode.momentumBounce) {
|
|
98
|
-
if (newPosition + swiper.maxTranslate() < -bounceAmount) {
|
|
99
|
-
newPosition = swiper.maxTranslate() - bounceAmount;
|
|
100
|
-
}
|
|
101
|
-
afterBouncePosition_1 = swiper.maxTranslate();
|
|
102
|
-
doBounce = true;
|
|
103
|
-
data.allowMomentumBounce = true;
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
newPosition = swiper.maxTranslate();
|
|
107
|
-
}
|
|
108
|
-
if (params.loop && params.centeredSlides)
|
|
109
|
-
needsLoopFix = true;
|
|
110
|
-
}
|
|
111
|
-
else if (newPosition > swiper.minTranslate()) {
|
|
112
|
-
if (params.freeMode.momentumBounce) {
|
|
113
|
-
if (newPosition - swiper.minTranslate() > bounceAmount) {
|
|
114
|
-
newPosition = swiper.minTranslate() + bounceAmount;
|
|
115
|
-
}
|
|
116
|
-
afterBouncePosition_1 = swiper.minTranslate();
|
|
117
|
-
doBounce = true;
|
|
118
|
-
data.allowMomentumBounce = true;
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
newPosition = swiper.minTranslate();
|
|
122
|
-
}
|
|
123
|
-
if (params.loop && params.centeredSlides)
|
|
124
|
-
needsLoopFix = true;
|
|
125
|
-
}
|
|
126
|
-
else if (params.freeMode.sticky) {
|
|
127
|
-
var nextSlide = void 0;
|
|
128
|
-
for (var j = 0; j < snapGrid.length; j += 1) {
|
|
129
|
-
if (snapGrid[j] > -newPosition) {
|
|
130
|
-
nextSlide = j;
|
|
131
|
-
break;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
if (Math.abs(snapGrid[nextSlide] - newPosition) <
|
|
135
|
-
Math.abs(snapGrid[nextSlide - 1] - newPosition) ||
|
|
136
|
-
swiper.swipeDirection === 'next') {
|
|
137
|
-
newPosition = snapGrid[nextSlide];
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
newPosition = snapGrid[nextSlide - 1];
|
|
141
|
-
}
|
|
142
|
-
newPosition = -newPosition;
|
|
143
|
-
}
|
|
144
|
-
if (needsLoopFix) {
|
|
145
|
-
once('transitionEnd', function () {
|
|
146
|
-
swiper.loopFix();
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
// Fix duration
|
|
150
|
-
if (swiper.velocity !== 0) {
|
|
151
|
-
if (rtl) {
|
|
152
|
-
momentumDuration = Math.abs((-newPosition - swiper.translate) / swiper.velocity);
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
momentumDuration = Math.abs((newPosition - swiper.translate) / swiper.velocity);
|
|
156
|
-
}
|
|
157
|
-
if (params.freeMode.sticky) {
|
|
158
|
-
// If freeMode.sticky is active and the user ends a swipe with a slow-velocity
|
|
159
|
-
// event, then durations can be 20+ seconds to slide one (or zero!) slides.
|
|
160
|
-
// It's easy to see this when simulating touch with mouse events. To fix this,
|
|
161
|
-
// limit single-slide swipes to the default slide duration. This also has the
|
|
162
|
-
// nice side effect of matching slide speed if the user stopped moving before
|
|
163
|
-
// lifting finger or mouse vs. moving slowly before lifting the finger/mouse.
|
|
164
|
-
// For faster swipes, also apply limits (albeit higher ones).
|
|
165
|
-
var moveDistance = Math.abs((rtl ? -newPosition : newPosition) - swiper.translate);
|
|
166
|
-
var currentSlideSize = swiper.slidesSizesGrid[swiper.activeIndex];
|
|
167
|
-
if (moveDistance < currentSlideSize) {
|
|
168
|
-
momentumDuration = params.speed;
|
|
169
|
-
}
|
|
170
|
-
else if (moveDistance < 2 * currentSlideSize) {
|
|
171
|
-
momentumDuration = params.speed * 1.5;
|
|
172
|
-
}
|
|
173
|
-
else {
|
|
174
|
-
momentumDuration = params.speed * 2.5;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
else if (params.freeMode.sticky) {
|
|
179
|
-
swiper.slideToClosest();
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
|
-
if (params.freeMode.momentumBounce && doBounce) {
|
|
183
|
-
swiper.updateProgress(afterBouncePosition_1);
|
|
184
|
-
swiper.setTransition(momentumDuration);
|
|
185
|
-
swiper.setTranslate(newPosition);
|
|
186
|
-
swiper.transitionStart(true, swiper.swipeDirection);
|
|
187
|
-
swiper.animating = true;
|
|
188
|
-
(0, utils_1.elementTransitionEnd)(wrapperEl, function () {
|
|
189
|
-
if (!swiper || swiper.destroyed || !data.allowMomentumBounce)
|
|
190
|
-
return;
|
|
191
|
-
emit('momentumBounce');
|
|
192
|
-
swiper.setTransition(params.speed);
|
|
193
|
-
setTimeout(function () {
|
|
194
|
-
swiper.setTranslate(afterBouncePosition_1);
|
|
195
|
-
(0, utils_1.elementTransitionEnd)(wrapperEl, function () {
|
|
196
|
-
if (!swiper || swiper.destroyed)
|
|
197
|
-
return;
|
|
198
|
-
swiper.transitionEnd();
|
|
199
|
-
});
|
|
200
|
-
}, 0);
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
else if (swiper.velocity) {
|
|
204
|
-
emit('_freeModeNoMomentumRelease');
|
|
205
|
-
swiper.updateProgress(newPosition);
|
|
206
|
-
swiper.setTransition(momentumDuration);
|
|
207
|
-
swiper.setTranslate(newPosition);
|
|
208
|
-
swiper.transitionStart(true, swiper.swipeDirection);
|
|
209
|
-
if (!swiper.animating) {
|
|
210
|
-
swiper.animating = true;
|
|
211
|
-
(0, utils_1.elementTransitionEnd)(wrapperEl, function () {
|
|
212
|
-
if (!swiper || swiper.destroyed)
|
|
213
|
-
return;
|
|
214
|
-
swiper.transitionEnd();
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
else {
|
|
219
|
-
swiper.updateProgress(newPosition);
|
|
220
|
-
}
|
|
221
|
-
swiper.updateActiveIndex();
|
|
222
|
-
swiper.updateSlidesClasses();
|
|
223
|
-
}
|
|
224
|
-
else if (params.freeMode.sticky) {
|
|
225
|
-
swiper.slideToClosest();
|
|
226
|
-
return;
|
|
227
|
-
}
|
|
228
|
-
else if (params.freeMode) {
|
|
229
|
-
emit('_freeModeNoMomentumRelease');
|
|
230
|
-
}
|
|
231
|
-
if (!params.freeMode.momentum || timeDiff >= params.longSwipesMs) {
|
|
232
|
-
emit('_freeModeStaticRelease');
|
|
233
|
-
swiper.updateProgress();
|
|
234
|
-
swiper.updateActiveIndex();
|
|
235
|
-
swiper.updateSlidesClasses();
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
Object.assign(swiper, {
|
|
239
|
-
freeMode: {
|
|
240
|
-
onTouchStart: onTouchStart,
|
|
241
|
-
onTouchMove: onTouchMove,
|
|
242
|
-
onTouchEnd: onTouchEnd,
|
|
243
|
-
},
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
exports.freeMode = freeMode;
|
|
247
|
-
//# sourceMappingURL=free-mode.js.map
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./autoplay.js"), exports);
|
|
18
|
-
__exportStar(require("./effect-fade.js"), exports);
|
|
19
|
-
__exportStar(require("./free-mode.js"), exports);
|
|
20
|
-
__exportStar(require("./navigation.js"), exports);
|
|
21
|
-
__exportStar(require("./pagination.js"), exports);
|
|
22
|
-
__exportStar(require("./virtual.js"), exports);
|
|
23
|
-
//# sourceMappingURL=index.js.map
|