infinity-forge 2.4.0 → 2.4.1
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/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/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/opened/index.js +3 -3
- package/dist/system/presentation/components/data/menu/modes/opened/styles.js +1 -1
- package/dist/system/presentation/components/data/tab/tab-item/index.d.ts +5 -0
- package/dist/system/presentation/components/data/tab/tab-item/index.js +46 -0
- package/dist/system/presentation/components/data/tab/tab-item/styles.d.ts +8 -0
- package/dist/system/presentation/components/layout/header/components/index.d.ts +2 -0
- package/dist/system/presentation/components/layout/header/components/index.js +19 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js +0 -36
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +0 -38
- package/dist/system/presentation/components/layout/header/components/menu-right/settings/index.js +0 -42
- package/dist/system/presentation/components/layout/header/components/search-modal/index.js +4 -4
- package/dist/system/presentation/components/layout/header/version-01/index.d.ts +2 -0
- package/dist/system/presentation/components/layout/header/version-01/index.js +45 -0
- package/dist/system/presentation/components/pages/menus/table/columns.d.ts +3 -0
- package/dist/system/presentation/components/pages/menus/table/columns.js +21 -0
- package/dist/system/presentation/components/pages/menus/table/create.d.ts +3 -0
- package/dist/system/presentation/components/pages/menus/table/create.js +72 -0
- package/dist/system/presentation/components/pages/menus/table/delete.js +71 -0
- package/dist/system/presentation/components/pages/menus/table/edit.d.ts +3 -0
- package/dist/system/presentation/components/pages/menus/table/edit.js +78 -0
- 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 -0
- package/dist/system/presentation/components/pages/menus/table/index.js +21 -0
- package/dist/system/presentation/components/pages/users/table/columns.d.ts +3 -0
- package/dist/system/presentation/components/pages/users/table/create.d.ts +3 -0
- package/dist/system/presentation/components/pages/users/table/create.js +75 -0
- package/dist/system/presentation/components/pages/users/table/delete.js +74 -0
- package/dist/system/presentation/components/pages/users/table/edit.d.ts +3 -0
- package/dist/system/presentation/components/pages/users/table/edit.js +83 -0
- package/dist/system/presentation/components/pages/users/table/index.d.ts +4 -0
- package/dist/system/presentation/components/pages/users/table/index.js +21 -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 +38 -0
- package/dist/system/presentation/context/auth/components/private-page/index.d.ts +2 -0
- package/dist/system/presentation/context/auth/components/private-page/index.js +141 -0
- package/dist/system/presentation/hooks/ui/use-table/components/index.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/index.js +18 -0
- 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/query/get-query-arguments-table.d.ts +2 -0
- package/dist/system/presentation/hooks/ui/use-table/query/hook.d.ts +5 -0
- package/dist/system/presentation/hooks/ui/use-table/query/hook.js +52 -0
- package/dist/system/presentation/hooks/ui/use-table/query/index.d.ts +2 -0
- package/dist/system/presentation/hooks/ui/use-table/query/index.js +19 -0
- package/dist/ui/components/carousel/carousel-lib/core/breakpoints/getBreakpoint.js +35 -0
- package/dist/ui/components/carousel/carousel-lib/core/breakpoints/index.d.ts +7 -0
- package/dist/ui/components/carousel/carousel-lib/core/breakpoints/index.js +9 -0
- package/dist/ui/components/carousel/carousel-lib/core/breakpoints/setBreakpoint.js +94 -0
- package/dist/ui/components/carousel/carousel-lib/core/classes/index.d.ts +7 -0
- package/dist/ui/components/carousel/carousel-lib/core/classes/index.js +9 -0
- package/dist/ui/components/carousel/carousel-lib/core/events/index.js +77 -0
- package/dist/ui/components/carousel/carousel-lib/core/events/onLoad.js +14 -0
- package/dist/ui/components/carousel/carousel-lib/core/events/onTouchEnd.js +194 -0
- package/dist/ui/components/carousel/carousel-lib/core/events/onTouchMove.js +314 -0
- package/dist/ui/components/carousel/carousel-lib/core/events/onTouchStart.js +154 -0
- package/dist/ui/components/carousel/carousel-lib/core/grab-cursor/index.d.ts +7 -0
- package/dist/ui/components/carousel/carousel-lib/core/grab-cursor/index.js +12 -0
- package/dist/ui/components/carousel/carousel-lib/core/loop/index.d.ts +9 -0
- package/dist/ui/components/carousel/carousel-lib/core/loop/index.js +14 -0
- package/dist/ui/components/carousel/carousel-lib/core/loop/loopCreate.js +57 -0
- package/dist/ui/components/carousel/carousel-lib/core/loop/loopFix.js +230 -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 +17 -0
- package/dist/ui/components/carousel/carousel-lib/core/slide/index.js +22 -0
- package/dist/ui/components/carousel/carousel-lib/core/slide/slideTo.js +160 -0
- package/dist/ui/components/carousel/carousel-lib/core/slide/slideToClickedSlide.js +46 -0
- package/dist/ui/components/carousel/carousel-lib/core/transition/index.d.ts +9 -0
- package/dist/ui/components/carousel/carousel-lib/core/transition/index.js +14 -0
- package/dist/ui/components/carousel/carousel-lib/core/transition/transitionEnd.js +18 -0
- package/dist/ui/components/carousel/carousel-lib/core/transition/transitionStart.js +19 -0
- package/dist/ui/components/carousel/carousel-lib/core/translate/getTranslate.js +21 -0
- package/dist/ui/components/carousel/carousel-lib/core/translate/index.d.ts +13 -0
- package/dist/ui/components/carousel/carousel-lib/core/translate/index.js +18 -0
- package/dist/ui/components/carousel/carousel-lib/core/translate/translateTo.js +81 -0
- package/dist/ui/components/carousel/carousel-lib/core/update/index.d.ts +21 -0
- package/dist/ui/components/carousel/carousel-lib/core/update/index.js +26 -0
- package/dist/ui/components/carousel/carousel-lib/core/update/updateActiveIndex.js +125 -0
- package/dist/ui/components/carousel/carousel-lib/core/update/updateSize.js +45 -0
- package/dist/ui/components/carousel/carousel-lib/core/update/updateSlides.js +306 -0
- package/dist/ui/components/carousel/carousel-lib/core/update/updateSlidesClasses.js +69 -0
- package/dist/ui/components/form/handler/i18n/capture-i18n-errors/index.d.ts +1 -1
- 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-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/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-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-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 +0 -18
- 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 +0 -13
- 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 +0 -24
- package/package.json +1 -1
|
@@ -38,16 +38,16 @@ exports.Table = void 0;
|
|
|
38
38
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
39
|
var react_1 = require("react");
|
|
40
40
|
var router_1 = require("next/router");
|
|
41
|
-
var ui_1 = require("../../../../../../../ui");
|
|
42
|
-
var export_1 = require("./export");
|
|
43
|
-
var actions_1 = require("./actions");
|
|
44
|
-
var filters_1 = require("./filters");
|
|
45
|
-
var create_1 = require("./create");
|
|
46
|
-
var thead_item_1 = require("./thead-item");
|
|
47
|
-
var pagination_1 = require("./pagination");
|
|
48
|
-
var skeleton_table_1 = require("./skeleton-table");
|
|
49
|
-
var active_filters_1 = require("./active-filters");
|
|
50
|
-
var S = __importStar(require("./styles"));
|
|
41
|
+
var ui_1 = require("../../../../../../../ui/index.js");
|
|
42
|
+
var export_1 = require("./export/index.js");
|
|
43
|
+
var actions_1 = require("./actions/index.js");
|
|
44
|
+
var filters_1 = require("./filters/index.js");
|
|
45
|
+
var create_1 = require("./create/index.js");
|
|
46
|
+
var thead_item_1 = require("./thead-item/index.js");
|
|
47
|
+
var pagination_1 = require("./pagination/index.js");
|
|
48
|
+
var skeleton_table_1 = require("./skeleton-table/index.js");
|
|
49
|
+
var active_filters_1 = require("./active-filters/index.js");
|
|
50
|
+
var S = __importStar(require("./styles.js"));
|
|
51
51
|
function Table(props) {
|
|
52
52
|
var _a, _b, _c, _d;
|
|
53
53
|
var configs = props.configs, isFetching = props.isFetching, columnsConfiguration = props.columnsConfiguration, tableInformations = props.tableInformations;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { List, Pagination, TableConfiguration } from '../../../../../../../system';
|
|
2
|
-
import { IUseTableProps } from '../../interfaces';
|
|
1
|
+
import { List, Pagination, TableConfiguration } from '../../../../../../../system/index.js';
|
|
2
|
+
import { IUseTableProps } from '../../interfaces.js';
|
|
3
3
|
type colunm = keyof any;
|
|
4
4
|
interface IShowHiden {
|
|
5
5
|
text: string;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.useQueryTable = void 0;
|
|
15
|
+
var router_1 = require("next/router");
|
|
16
|
+
var ui_1 = require("../../../../../../ui/index.js");
|
|
17
|
+
function useQueryTable(props) {
|
|
18
|
+
var _a;
|
|
19
|
+
var _b = (0, router_1.useRouter)(), query = _b.query, isReady = _b.isReady;
|
|
20
|
+
var queryKEY = props.queryKey.customKey || props.queryKey.remoteName;
|
|
21
|
+
var enabled = props.requireUser ? props.user : true;
|
|
22
|
+
var REMOTE = props.container && ((_a = props.container) === null || _a === void 0 ? void 0 : _a.get(props.Types[queryKEY]));
|
|
23
|
+
var queryFiltersBase64 = (0, ui_1.fromBase64ToString)(query.filters);
|
|
24
|
+
var params = __assign(__assign({}, query), { orderColumn: undefined, asc: undefined, order: query.orderColumn && { column: query.orderColumn, asc: !!(query.asc === 'true') }, filters: queryFiltersBase64.filters });
|
|
25
|
+
var tableResponse = (0, ui_1.useQuery)(__assign(__assign({ queryKey: props.queryKeyParams || queryKEY, queryFn: function () { return props.customRemote ? props.customRemote(params) : REMOTE.loadAll(params); } }, props.options), { enabled: !!((REMOTE || queryKEY) && isReady) }));
|
|
26
|
+
var configurations = (0, ui_1.useQuery)({
|
|
27
|
+
queryFn: function () { return REMOTE.loadTable(); },
|
|
28
|
+
queryKey: "".concat(queryKEY, "/Table"),
|
|
29
|
+
enableCache: true,
|
|
30
|
+
enabled: !!(REMOTE && props.dynamicFiltersFromApi && isReady)
|
|
31
|
+
});
|
|
32
|
+
if (props.debugMode) {
|
|
33
|
+
console.log({
|
|
34
|
+
enabled: enabled,
|
|
35
|
+
REMOTE: REMOTE,
|
|
36
|
+
KEY_TABLE: queryKEY,
|
|
37
|
+
queryFiltersBase64: queryFiltersBase64,
|
|
38
|
+
params: params,
|
|
39
|
+
data: tableResponse.data,
|
|
40
|
+
isLoading: tableResponse.isLoading,
|
|
41
|
+
error: tableResponse.error,
|
|
42
|
+
loadAll: REMOTE.loadAll,
|
|
43
|
+
configurations: configurations,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
data: __assign(__assign({}, tableResponse.data), configurations === null || configurations === void 0 ? void 0 : configurations.data),
|
|
48
|
+
isLoading: (configurations === null || configurations === void 0 ? void 0 : configurations.isLoading) || tableResponse.isLoading || tableResponse.isFetching,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.useQueryTable = useQueryTable;
|
|
52
|
+
//# sourceMappingURL=hook.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./hook.js"), exports);
|
|
18
|
+
__exportStar(require("./get-query-arguments-table.js"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//@ts-nocheck
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
var window_1 = require("../../ssr-window/window.js");
|
|
5
|
+
function getBreakpoint(breakpoints, base, containerEl) {
|
|
6
|
+
if (base === void 0) { base = 'window'; }
|
|
7
|
+
if (!breakpoints || (base === 'container' && !containerEl))
|
|
8
|
+
return undefined;
|
|
9
|
+
var breakpoint = false;
|
|
10
|
+
var window = (0, window_1.getWindow)();
|
|
11
|
+
var currentHeight = base === 'window' ? window.innerHeight : containerEl.clientHeight;
|
|
12
|
+
var points = Object.keys(breakpoints).map(function (point) {
|
|
13
|
+
if (typeof point === 'string' && point.indexOf('@') === 0) {
|
|
14
|
+
var minRatio = parseFloat(point.substr(1));
|
|
15
|
+
var value = currentHeight * minRatio;
|
|
16
|
+
return { value: value, point: point };
|
|
17
|
+
}
|
|
18
|
+
return { value: point, point: point };
|
|
19
|
+
});
|
|
20
|
+
points.sort(function (a, b) { return parseInt(a.value, 10) - parseInt(b.value, 10); });
|
|
21
|
+
for (var i = 0; i < points.length; i += 1) {
|
|
22
|
+
var _a = points[i], point = _a.point, value = _a.value;
|
|
23
|
+
if (base === 'window') {
|
|
24
|
+
if (window.matchMedia("(min-width: ".concat(value, "px)")).matches) {
|
|
25
|
+
breakpoint = point;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
else if (value <= containerEl.clientWidth) {
|
|
29
|
+
breakpoint = point;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return breakpoint || 'max';
|
|
33
|
+
}
|
|
34
|
+
exports.default = getBreakpoint;
|
|
35
|
+
//# sourceMappingURL=getBreakpoint.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
var setBreakpoint_1 = __importDefault(require("./setBreakpoint.js"));
|
|
7
|
+
var getBreakpoint_1 = __importDefault(require("./getBreakpoint.js"));
|
|
8
|
+
exports.default = { setBreakpoint: setBreakpoint_1.default, getBreakpoint: getBreakpoint_1.default };
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var utils_1 = require("../../shared/utils.js");
|
|
4
|
+
var isGridEnabled = function (swiper, params) {
|
|
5
|
+
return swiper.grid && params.grid && params.grid.rows > 1;
|
|
6
|
+
};
|
|
7
|
+
function setBreakpoint() {
|
|
8
|
+
var swiper = this;
|
|
9
|
+
var realIndex = swiper.realIndex, initialized = swiper.initialized, params = swiper.params, el = swiper.el;
|
|
10
|
+
var breakpoints = params.breakpoints;
|
|
11
|
+
if (!breakpoints || (breakpoints && Object.keys(breakpoints).length === 0))
|
|
12
|
+
return;
|
|
13
|
+
// Get breakpoint for window width and update parameters
|
|
14
|
+
var breakpoint = swiper.getBreakpoint(breakpoints, swiper.params.breakpointsBase, swiper.el);
|
|
15
|
+
if (!breakpoint || swiper.currentBreakpoint === breakpoint)
|
|
16
|
+
return;
|
|
17
|
+
var breakpointOnlyParams = breakpoint in breakpoints ? breakpoints[breakpoint] : undefined;
|
|
18
|
+
var breakpointParams = breakpointOnlyParams || swiper.originalParams;
|
|
19
|
+
var wasMultiRow = isGridEnabled(swiper, params);
|
|
20
|
+
var isMultiRow = isGridEnabled(swiper, breakpointParams);
|
|
21
|
+
var wasGrabCursor = swiper.params.grabCursor;
|
|
22
|
+
var isGrabCursor = breakpointParams.grabCursor;
|
|
23
|
+
var wasEnabled = params.enabled;
|
|
24
|
+
if (wasMultiRow && !isMultiRow) {
|
|
25
|
+
el.classList.remove("".concat(params.containerModifierClass, "grid"), "".concat(params.containerModifierClass, "grid-column"));
|
|
26
|
+
swiper.emitContainerClasses();
|
|
27
|
+
}
|
|
28
|
+
else if (!wasMultiRow && isMultiRow) {
|
|
29
|
+
el.classList.add("".concat(params.containerModifierClass, "grid"));
|
|
30
|
+
if ((breakpointParams.grid.fill && breakpointParams.grid.fill === 'column') ||
|
|
31
|
+
(!breakpointParams.grid.fill && params.grid.fill === 'column')) {
|
|
32
|
+
el.classList.add("".concat(params.containerModifierClass, "grid-column"));
|
|
33
|
+
}
|
|
34
|
+
swiper.emitContainerClasses();
|
|
35
|
+
}
|
|
36
|
+
if (wasGrabCursor && !isGrabCursor) {
|
|
37
|
+
swiper.unsetGrabCursor();
|
|
38
|
+
}
|
|
39
|
+
else if (!wasGrabCursor && isGrabCursor) {
|
|
40
|
+
swiper.setGrabCursor();
|
|
41
|
+
}
|
|
42
|
+
// Toggle navigation, pagination, scrollbar
|
|
43
|
+
['navigation', 'pagination', 'scrollbar'].forEach(function (prop) {
|
|
44
|
+
if (typeof breakpointParams[prop] === 'undefined')
|
|
45
|
+
return;
|
|
46
|
+
var wasModuleEnabled = params[prop] && params[prop].enabled;
|
|
47
|
+
var isModuleEnabled = breakpointParams[prop] && breakpointParams[prop].enabled;
|
|
48
|
+
if (wasModuleEnabled && !isModuleEnabled) {
|
|
49
|
+
swiper[prop].disable();
|
|
50
|
+
}
|
|
51
|
+
if (!wasModuleEnabled && isModuleEnabled) {
|
|
52
|
+
swiper[prop].enable();
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
var directionChanged = breakpointParams.direction && breakpointParams.direction !== params.direction;
|
|
56
|
+
var needsReLoop = params.loop && (breakpointParams.slidesPerView !== params.slidesPerView || directionChanged);
|
|
57
|
+
var wasLoop = params.loop;
|
|
58
|
+
if (directionChanged && initialized) {
|
|
59
|
+
swiper.changeDirection();
|
|
60
|
+
}
|
|
61
|
+
(0, utils_1.extend)(swiper.params, breakpointParams);
|
|
62
|
+
var isEnabled = swiper.params.enabled;
|
|
63
|
+
var hasLoop = swiper.params.loop;
|
|
64
|
+
Object.assign(swiper, {
|
|
65
|
+
allowTouchMove: swiper.params.allowTouchMove,
|
|
66
|
+
allowSlideNext: swiper.params.allowSlideNext,
|
|
67
|
+
allowSlidePrev: swiper.params.allowSlidePrev,
|
|
68
|
+
});
|
|
69
|
+
if (wasEnabled && !isEnabled) {
|
|
70
|
+
swiper.disable();
|
|
71
|
+
}
|
|
72
|
+
else if (!wasEnabled && isEnabled) {
|
|
73
|
+
swiper.enable();
|
|
74
|
+
}
|
|
75
|
+
swiper.currentBreakpoint = breakpoint;
|
|
76
|
+
swiper.emit('_beforeBreakpoint', breakpointParams);
|
|
77
|
+
if (initialized) {
|
|
78
|
+
if (needsReLoop) {
|
|
79
|
+
swiper.loopDestroy();
|
|
80
|
+
swiper.loopCreate(realIndex);
|
|
81
|
+
swiper.updateSlides();
|
|
82
|
+
}
|
|
83
|
+
else if (!wasLoop && hasLoop) {
|
|
84
|
+
swiper.loopCreate(realIndex);
|
|
85
|
+
swiper.updateSlides();
|
|
86
|
+
}
|
|
87
|
+
else if (wasLoop && !hasLoop) {
|
|
88
|
+
swiper.loopDestroy();
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
swiper.emit('breakpoint', breakpointParams);
|
|
92
|
+
}
|
|
93
|
+
exports.default = setBreakpoint;
|
|
94
|
+
//# sourceMappingURL=setBreakpoint.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
var addClasses_1 = __importDefault(require("./addClasses.js"));
|
|
7
|
+
var removeClasses_1 = __importDefault(require("./removeClasses.js"));
|
|
8
|
+
exports.default = { addClasses: addClasses_1.default, removeClasses: removeClasses_1.default };
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
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
|
+
var events = function (swiper, method) {
|
|
16
|
+
var document = (0, document_1.getDocument)();
|
|
17
|
+
var params = swiper.params, el = swiper.el, wrapperEl = swiper.wrapperEl, device = swiper.device;
|
|
18
|
+
var capture = !!params.nested;
|
|
19
|
+
var domMethod = method === 'on' ? 'addEventListener' : 'removeEventListener';
|
|
20
|
+
var swiperMethod = method;
|
|
21
|
+
if (!el || typeof el === 'string')
|
|
22
|
+
return;
|
|
23
|
+
// Touch Events
|
|
24
|
+
document[domMethod]('touchstart', swiper.onDocumentTouchStart, { passive: false, capture: capture });
|
|
25
|
+
el[domMethod]('touchstart', swiper.onTouchStart, { passive: false });
|
|
26
|
+
el[domMethod]('pointerdown', swiper.onTouchStart, { passive: false });
|
|
27
|
+
document[domMethod]('touchmove', swiper.onTouchMove, { passive: false, capture: capture });
|
|
28
|
+
document[domMethod]('pointermove', swiper.onTouchMove, { passive: false, capture: capture });
|
|
29
|
+
document[domMethod]('touchend', swiper.onTouchEnd, { passive: true });
|
|
30
|
+
document[domMethod]('pointerup', swiper.onTouchEnd, { passive: true });
|
|
31
|
+
document[domMethod]('pointercancel', swiper.onTouchEnd, { passive: true });
|
|
32
|
+
document[domMethod]('touchcancel', swiper.onTouchEnd, { passive: true });
|
|
33
|
+
document[domMethod]('pointerout', swiper.onTouchEnd, { passive: true });
|
|
34
|
+
document[domMethod]('pointerleave', swiper.onTouchEnd, { passive: true });
|
|
35
|
+
document[domMethod]('contextmenu', swiper.onTouchEnd, { passive: true });
|
|
36
|
+
// Prevent Links Clicks
|
|
37
|
+
if (params.preventClicks || params.preventClicksPropagation) {
|
|
38
|
+
el[domMethod]('click', swiper.onClick, true);
|
|
39
|
+
}
|
|
40
|
+
if (params.cssMode) {
|
|
41
|
+
wrapperEl[domMethod]('scroll', swiper.onScroll);
|
|
42
|
+
}
|
|
43
|
+
// Resize handler
|
|
44
|
+
if (params.updateOnWindowResize) {
|
|
45
|
+
swiper[swiperMethod](device.ios || device.android
|
|
46
|
+
? 'resize orientationchange observerUpdate'
|
|
47
|
+
: 'resize observerUpdate', onResize_1.default, true);
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
swiper[swiperMethod]('observerUpdate', onResize_1.default, true);
|
|
51
|
+
}
|
|
52
|
+
// Images loader
|
|
53
|
+
el[domMethod]('load', swiper.onLoad, { capture: true });
|
|
54
|
+
};
|
|
55
|
+
function attachEvents() {
|
|
56
|
+
var swiper = this;
|
|
57
|
+
var params = swiper.params;
|
|
58
|
+
swiper.onTouchStart = onTouchStart_1.default.bind(swiper);
|
|
59
|
+
swiper.onTouchMove = onTouchMove_1.default.bind(swiper);
|
|
60
|
+
swiper.onTouchEnd = onTouchEnd_1.default.bind(swiper);
|
|
61
|
+
swiper.onDocumentTouchStart = onDocumentTouchStart_1.default.bind(swiper);
|
|
62
|
+
if (params.cssMode) {
|
|
63
|
+
swiper.onScroll = onScroll_1.default.bind(swiper);
|
|
64
|
+
}
|
|
65
|
+
swiper.onClick = onClick_1.default.bind(swiper);
|
|
66
|
+
swiper.onLoad = onLoad_1.default.bind(swiper);
|
|
67
|
+
events(swiper, 'on');
|
|
68
|
+
}
|
|
69
|
+
function detachEvents() {
|
|
70
|
+
var swiper = this;
|
|
71
|
+
events(swiper, 'off');
|
|
72
|
+
}
|
|
73
|
+
exports.default = {
|
|
74
|
+
attachEvents: attachEvents,
|
|
75
|
+
detachEvents: detachEvents,
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var process_lazy_preloader_1 = require("../../shared/process-lazy-preloader.js");
|
|
4
|
+
function onLoad(e) {
|
|
5
|
+
var swiper = this;
|
|
6
|
+
(0, process_lazy_preloader_1.processLazyPreloader)(swiper, e.target);
|
|
7
|
+
if (swiper.params.cssMode ||
|
|
8
|
+
(swiper.params.slidesPerView !== 'auto' && !swiper.params.autoHeight)) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
swiper.update();
|
|
12
|
+
}
|
|
13
|
+
exports.default = onLoad;
|
|
14
|
+
//# sourceMappingURL=onLoad.js.map
|
|
@@ -0,0 +1,194 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
var utils_1 = require("../../shared/utils.js");
|
|
13
|
+
function onTouchEnd(event) {
|
|
14
|
+
var swiper = this;
|
|
15
|
+
var data = swiper.touchEventsData;
|
|
16
|
+
var e = event;
|
|
17
|
+
if (e.originalEvent)
|
|
18
|
+
e = e.originalEvent;
|
|
19
|
+
var targetTouch;
|
|
20
|
+
var isTouchEvent = e.type === 'touchend' || e.type === 'touchcancel';
|
|
21
|
+
if (!isTouchEvent) {
|
|
22
|
+
if (data.touchId !== null)
|
|
23
|
+
return; // return from pointer if we use touch
|
|
24
|
+
if (e.pointerId !== data.pointerId)
|
|
25
|
+
return;
|
|
26
|
+
targetTouch = e;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
targetTouch = __spreadArray([], e.changedTouches, true).filter(function (t) { return t.identifier === data.touchId; })[0];
|
|
30
|
+
if (!targetTouch || targetTouch.identifier !== data.touchId)
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (['pointercancel', 'pointerout', 'pointerleave', 'contextmenu'].includes(e.type)) {
|
|
34
|
+
var proceed = ['pointercancel', 'contextmenu'].includes(e.type) &&
|
|
35
|
+
(swiper.browser.isSafari || swiper.browser.isWebView);
|
|
36
|
+
if (!proceed) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
data.pointerId = null;
|
|
41
|
+
data.touchId = null;
|
|
42
|
+
var params = swiper.params, touches = swiper.touches, rtl = swiper.rtlTranslate, slidesGrid = swiper.slidesGrid, enabled = swiper.enabled;
|
|
43
|
+
if (!enabled)
|
|
44
|
+
return;
|
|
45
|
+
if (!params.simulateTouch && e.pointerType === 'mouse')
|
|
46
|
+
return;
|
|
47
|
+
if (data.allowTouchCallbacks) {
|
|
48
|
+
swiper.emit('touchEnd', e);
|
|
49
|
+
}
|
|
50
|
+
data.allowTouchCallbacks = false;
|
|
51
|
+
if (!data.isTouched) {
|
|
52
|
+
if (data.isMoved && params.grabCursor) {
|
|
53
|
+
swiper.setGrabCursor(false);
|
|
54
|
+
}
|
|
55
|
+
data.isMoved = false;
|
|
56
|
+
data.startMoving = false;
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
// Return Grab Cursor
|
|
60
|
+
if (params.grabCursor &&
|
|
61
|
+
data.isMoved &&
|
|
62
|
+
data.isTouched &&
|
|
63
|
+
(swiper.allowSlideNext === true || swiper.allowSlidePrev === true)) {
|
|
64
|
+
swiper.setGrabCursor(false);
|
|
65
|
+
}
|
|
66
|
+
// Time diff
|
|
67
|
+
var touchEndTime = (0, utils_1.now)();
|
|
68
|
+
var timeDiff = touchEndTime - data.touchStartTime;
|
|
69
|
+
// Tap, doubleTap, Click
|
|
70
|
+
if (swiper.allowClick) {
|
|
71
|
+
var pathTree = e.path || (e.composedPath && e.composedPath());
|
|
72
|
+
swiper.updateClickedSlide((pathTree && pathTree[0]) || e.target, pathTree);
|
|
73
|
+
swiper.emit('tap click', e);
|
|
74
|
+
if (timeDiff < 300 && touchEndTime - data.lastClickTime < 300) {
|
|
75
|
+
swiper.emit('doubleTap doubleClick', e);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
data.lastClickTime = (0, utils_1.now)();
|
|
79
|
+
(0, utils_1.nextTick)(function () {
|
|
80
|
+
if (!swiper.destroyed)
|
|
81
|
+
swiper.allowClick = true;
|
|
82
|
+
});
|
|
83
|
+
if (!data.isTouched ||
|
|
84
|
+
!data.isMoved ||
|
|
85
|
+
!swiper.swipeDirection ||
|
|
86
|
+
(touches.diff === 0 && !data.loopSwapReset) ||
|
|
87
|
+
(data.currentTranslate === data.startTranslate && !data.loopSwapReset)) {
|
|
88
|
+
data.isTouched = false;
|
|
89
|
+
data.isMoved = false;
|
|
90
|
+
data.startMoving = false;
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
data.isTouched = false;
|
|
94
|
+
data.isMoved = false;
|
|
95
|
+
data.startMoving = false;
|
|
96
|
+
var currentPos;
|
|
97
|
+
if (params.followFinger) {
|
|
98
|
+
currentPos = rtl ? swiper.translate : -swiper.translate;
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
currentPos = -data.currentTranslate;
|
|
102
|
+
}
|
|
103
|
+
if (params.cssMode) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
if (params.freeMode && params.freeMode.enabled) {
|
|
107
|
+
swiper.freeMode.onTouchEnd({ currentPos: currentPos });
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
// Find current slide
|
|
111
|
+
var swipeToLast = currentPos >= -swiper.maxTranslate() && !swiper.params.loop;
|
|
112
|
+
var stopIndex = 0;
|
|
113
|
+
var groupSize = swiper.slidesSizesGrid[0];
|
|
114
|
+
for (var i = 0; i < slidesGrid.length; i += i < params.slidesPerGroupSkip ? 1 : params.slidesPerGroup) {
|
|
115
|
+
var increment_1 = i < params.slidesPerGroupSkip - 1 ? 1 : params.slidesPerGroup;
|
|
116
|
+
if (typeof slidesGrid[i + increment_1] !== 'undefined') {
|
|
117
|
+
if (swipeToLast || (currentPos >= slidesGrid[i] && currentPos < slidesGrid[i + increment_1])) {
|
|
118
|
+
stopIndex = i;
|
|
119
|
+
groupSize = slidesGrid[i + increment_1] - slidesGrid[i];
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
else if (swipeToLast || currentPos >= slidesGrid[i]) {
|
|
123
|
+
stopIndex = i;
|
|
124
|
+
groupSize = slidesGrid[slidesGrid.length - 1] - slidesGrid[slidesGrid.length - 2];
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
var rewindFirstIndex = null;
|
|
128
|
+
var rewindLastIndex = null;
|
|
129
|
+
if (params.rewind) {
|
|
130
|
+
if (swiper.isBeginning) {
|
|
131
|
+
rewindLastIndex =
|
|
132
|
+
params.virtual && params.virtual.enabled && swiper.virtual
|
|
133
|
+
? swiper.virtual.slides.length - 1
|
|
134
|
+
: swiper.slides.length - 1;
|
|
135
|
+
}
|
|
136
|
+
else if (swiper.isEnd) {
|
|
137
|
+
rewindFirstIndex = 0;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
// Find current slide size
|
|
141
|
+
var ratio = (currentPos - slidesGrid[stopIndex]) / groupSize;
|
|
142
|
+
var increment = stopIndex < params.slidesPerGroupSkip - 1 ? 1 : params.slidesPerGroup;
|
|
143
|
+
if (timeDiff > params.longSwipesMs) {
|
|
144
|
+
// Long touches
|
|
145
|
+
if (!params.longSwipes) {
|
|
146
|
+
swiper.slideTo(swiper.activeIndex);
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
if (swiper.swipeDirection === 'next') {
|
|
150
|
+
if (ratio >= params.longSwipesRatio)
|
|
151
|
+
swiper.slideTo(params.rewind && swiper.isEnd ? rewindFirstIndex : stopIndex + increment);
|
|
152
|
+
else
|
|
153
|
+
swiper.slideTo(stopIndex);
|
|
154
|
+
}
|
|
155
|
+
if (swiper.swipeDirection === 'prev') {
|
|
156
|
+
if (ratio > 1 - params.longSwipesRatio) {
|
|
157
|
+
swiper.slideTo(stopIndex + increment);
|
|
158
|
+
}
|
|
159
|
+
else if (rewindLastIndex !== null &&
|
|
160
|
+
ratio < 0 &&
|
|
161
|
+
Math.abs(ratio) > params.longSwipesRatio) {
|
|
162
|
+
swiper.slideTo(rewindLastIndex);
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
swiper.slideTo(stopIndex);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
// Short swipes
|
|
171
|
+
if (!params.shortSwipes) {
|
|
172
|
+
swiper.slideTo(swiper.activeIndex);
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
var isNavButtonTarget = swiper.navigation &&
|
|
176
|
+
(e.target === swiper.navigation.nextEl || e.target === swiper.navigation.prevEl);
|
|
177
|
+
if (!isNavButtonTarget) {
|
|
178
|
+
if (swiper.swipeDirection === 'next') {
|
|
179
|
+
swiper.slideTo(rewindFirstIndex !== null ? rewindFirstIndex : stopIndex + increment);
|
|
180
|
+
}
|
|
181
|
+
if (swiper.swipeDirection === 'prev') {
|
|
182
|
+
swiper.slideTo(rewindLastIndex !== null ? rewindLastIndex : stopIndex);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
else if (e.target === swiper.navigation.nextEl) {
|
|
186
|
+
swiper.slideTo(stopIndex + increment);
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
swiper.slideTo(stopIndex);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
exports.default = onTouchEnd;
|
|
194
|
+
//# sourceMappingURL=onTouchEnd.js.map
|