infinity-forge 2.4.0 → 2.4.2
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/featured-blog/index.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/featured-blog/index.js +2 -2
- package/dist/sites/components/default-pages/blog/components/featured-blog/interfaces.d.ts +2 -2
- package/dist/sites/components/default-pages/blog/components/side-box-categories/index.d.ts +2 -2
- package/dist/sites/components/default-pages/blog/components/side-box-categories/index.js +2 -2
- package/dist/sites/components/default-pages/blog/components/side-box-categories/interfaces.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/side-box-newsletter/index.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/side-box-newsletter/index.js +3 -3
- package/dist/sites/components/default-pages/blog/components/title-blog/index.js +2 -2
- package/dist/system/domain/protocols/http/errors/http-errors/index.d.ts +7 -7
- package/dist/system/domain/protocols/http/errors/http-errors/index.js +7 -7
- package/dist/system/domain/protocols/http/errors/system-errors-model/index.d.ts +1 -1
- package/dist/system/domain/protocols/http/errors/system-errors-model/index.js +1 -1
- package/dist/system/domain/use-cases/auth/admin/index.js +0 -18
- package/dist/system/presentation/components/data/avatar/index.js +0 -59
- package/dist/system/presentation/components/data/buttons/index.d.ts +0 -1
- package/dist/system/presentation/components/data/buttons/index.js +0 -18
- package/dist/system/presentation/components/data/buttons/sidebar-button/index.js +3 -3
- package/dist/system/presentation/components/data/chat/card-message/index.d.ts +1 -1
- package/dist/system/presentation/components/data/chat/card-message/index.js +3 -3
- package/dist/system/presentation/components/data/chat/index.d.ts +0 -2
- package/dist/system/presentation/components/data/chat/index.js +0 -38
- package/dist/system/presentation/components/data/chat/interfaces.d.ts +0 -8
- package/dist/system/presentation/components/data/chat/loader/index.js +1 -1
- package/dist/system/presentation/components/data/detail-card/component.d.ts +0 -2
- package/dist/system/presentation/components/data/detail-card/component.js +0 -42
- package/dist/system/presentation/components/data/detail-card/index.d.ts +0 -2
- package/dist/system/presentation/components/data/detail-card/index.js +0 -19
- package/dist/system/presentation/components/data/detail-card/interfaces.d.ts +0 -19
- package/dist/system/presentation/components/data/highlight-icon/index.d.ts +0 -2
- package/dist/system/presentation/components/data/highlight-icon/index.js +0 -40
- package/dist/system/presentation/components/data/highlight-icon/interfaces.d.ts +0 -8
- package/dist/system/presentation/components/data/highlight-text/index.d.ts +0 -2
- package/dist/system/presentation/components/data/highlight-text/index.js +0 -43
- package/dist/system/presentation/components/data/input-search/index.d.ts +0 -2
- package/dist/system/presentation/components/data/input-search/index.js +0 -39
- package/dist/system/presentation/components/data/logo/index.js +0 -34
- package/dist/system/presentation/components/data/menu/component.js +0 -17
- 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/index.d.ts +0 -2
- package/dist/system/presentation/components/data/menu/index.js +0 -19
- 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/notifications/card/index.d.ts +1 -1
- package/dist/system/presentation/components/data/notifications/card/index.js +2 -2
- package/dist/system/presentation/components/data/notifications/index.js +0 -155
- package/dist/system/presentation/components/data/page-wrapper/index.d.ts +0 -2
- package/dist/system/presentation/components/data/page-wrapper/index.js +0 -35
- package/dist/system/presentation/components/data/page-wrapper/interfaces.d.ts +0 -7
- package/dist/system/presentation/components/data/popover/index.d.ts +0 -2
- package/dist/system/presentation/components/data/profile-infos/index.d.ts +0 -2
- package/dist/system/presentation/components/data/profile-infos/index.js +0 -48
- package/dist/system/presentation/components/data/profile-infos/interfaces.d.ts +0 -6
- package/dist/system/presentation/components/data/profile-infos/profile/index.d.ts +1 -1
- package/dist/system/presentation/components/data/profile-infos/profile/index.js +3 -3
- package/dist/system/presentation/components/data/select-workspace/index.d.ts +0 -4
- package/dist/system/presentation/components/data/select-workspace/index.js +0 -69
- package/dist/system/presentation/components/data/tab/component.d.ts +0 -2
- package/dist/system/presentation/components/data/tab/component.js +0 -67
- package/dist/system/presentation/components/data/tab/index.d.ts +0 -2
- package/dist/system/presentation/components/data/tab/index.js +0 -19
- package/dist/system/presentation/components/data/tab/interfaces.d.ts +0 -29
- 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/index.d.ts +0 -2
- package/dist/system/presentation/components/layout/header/index.js +0 -25
- 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/index.d.ts +0 -1
- package/dist/system/presentation/components/pages/menus/index.js +0 -18
- package/dist/system/presentation/components/pages/menus/page.js +0 -40
- 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/index.d.ts +4 -0
- package/dist/system/presentation/components/pages/menus/table/index.js +21 -0
- package/dist/system/presentation/components/pages/users/index.d.ts +0 -1
- package/dist/system/presentation/components/pages/users/index.js +0 -18
- package/dist/system/presentation/components/pages/users/page.js +0 -40
- 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/index.d.ts +0 -2
- package/dist/system/presentation/context/auth/components/index.js +0 -19
- 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/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 -0
- package/dist/system/presentation/hooks/ui/use-table/components/index.js +18 -0
- 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 -92
- 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/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 +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/core.js +0 -654
- 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/moduleExtendParams.js +0 -42
- 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/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 -117
- 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/index.d.ts +0 -2
- package/dist/ui/components/form/handler/i18n/index.js +4 -4
- package/dist/ui/components/form/input-cep/use-cep/hook.d.ts +2 -2
- package/dist/ui/components/form/input-cep/use-cep/hook.js +1 -1
- package/dist/ui/components/form/input-cep/use-cep/index.d.ts +2 -2
- package/dist/ui/components/form/input-cep/use-cep/index.js +2 -2
- package/dist/ui/components/form/input-control/error/index.js +1 -1
- package/dist/ui/components/form/input-control/label/index.js +1 -1
- package/dist/ui/components/form/input-control/loader-input/index.js +2 -2
- package/dist/ui/components/form/input-currency/components/CurrencyInput.js +1 -1
- package/dist/ui/components/form/input-currency/components/index.d.ts +1 -1
- package/dist/ui/components/form/input-currency/components/index.js +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/index.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/index.js +4 -4
- package/dist/ui/components/form/input-date-picker/calendar/interface.d.ts +2 -2
- package/dist/ui/components/form/input-date-picker/calendar/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/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-seo/input-meta-image/index.d.ts +1 -1
- package/dist/ui/components/form/input-seo/input-meta-image/index.js +2 -2
- package/dist/ui/components/menu-mobile/components/nav-links/index.d.ts +1 -1
- package/dist/ui/components/menu-mobile/components/nav-links/index.js +3 -3
- package/dist/ui/components/menu-mobile/components/nav-links/interfaces.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,26 +0,0 @@
|
|
|
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.useTable = void 0;
|
|
15
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
-
var components_1 = require("./components/index.js");
|
|
17
|
-
var hook_1 = require("./query/hook.js");
|
|
18
|
-
function useTable(props) {
|
|
19
|
-
var queryTable = props.query && (0, hook_1.useQueryTable)(props.query);
|
|
20
|
-
return {
|
|
21
|
-
query: queryTable,
|
|
22
|
-
Table: (0, jsx_runtime_1.jsx)(components_1.Table, __assign({}, props, { isFetching: queryTable === null || queryTable === void 0 ? void 0 : queryTable.isLoading, tableInformations: queryTable === null || queryTable === void 0 ? void 0 : queryTable.data })),
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
exports.useTable = useTable;
|
|
26
|
-
//# sourceMappingURL=component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./table";
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./table"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,21 +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("./query/index.js"), exports);
|
|
18
|
-
__exportStar(require("./component.js"), exports);
|
|
19
|
-
__exportStar(require("./components/index.js"), exports);
|
|
20
|
-
__exportStar(require("./interfaces.js"), exports);
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Filter, PaginationModel } from '../../../../../system/index.js';
|
|
3
|
-
import { IconsNames, DynamicFormHandlerProps, QueryOptions } from '../../../../../ui/index.js';
|
|
4
|
-
interface Column<T = any> {
|
|
5
|
-
id: keyof T;
|
|
6
|
-
label: string;
|
|
7
|
-
width?: number;
|
|
8
|
-
hasAsc?: boolean;
|
|
9
|
-
enabled?: boolean;
|
|
10
|
-
Component?: {
|
|
11
|
-
Element: (props: {
|
|
12
|
-
[key in keyof T]?: any;
|
|
13
|
-
} & {
|
|
14
|
-
index: number;
|
|
15
|
-
}) => JSX.Element;
|
|
16
|
-
allProps?: boolean;
|
|
17
|
-
props: {
|
|
18
|
-
[key in keyof T]?: any;
|
|
19
|
-
};
|
|
20
|
-
defaultProps?: {
|
|
21
|
-
[key: string]: any;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
interface IParamsTable {
|
|
26
|
-
page?: number;
|
|
27
|
-
}
|
|
28
|
-
interface IConfigurationsTable {
|
|
29
|
-
tableData?: any;
|
|
30
|
-
isLoading?: boolean;
|
|
31
|
-
errorMessage: string;
|
|
32
|
-
customFilters?: Filter[];
|
|
33
|
-
disableGetFilter?: boolean;
|
|
34
|
-
disablePagination?: boolean;
|
|
35
|
-
enableSearchInSelf?: boolean;
|
|
36
|
-
pagination?: PaginationModel;
|
|
37
|
-
disableOrdenationTable?: boolean;
|
|
38
|
-
}
|
|
39
|
-
type QueryTable<M = any> = {
|
|
40
|
-
user?: any;
|
|
41
|
-
container?: any;
|
|
42
|
-
Types?: any;
|
|
43
|
-
queryKey: {
|
|
44
|
-
remoteName?: M;
|
|
45
|
-
customKey?: string;
|
|
46
|
-
};
|
|
47
|
-
requireUser?: boolean;
|
|
48
|
-
queryKeyParams?: string;
|
|
49
|
-
dynamicFiltersFromApi?: boolean;
|
|
50
|
-
debugMode?: boolean;
|
|
51
|
-
options?: QueryOptions;
|
|
52
|
-
customRemote?: (params: any) => any;
|
|
53
|
-
};
|
|
54
|
-
type TableActionCreate<T = any> = {
|
|
55
|
-
link?: {
|
|
56
|
-
href: string;
|
|
57
|
-
};
|
|
58
|
-
text?: string;
|
|
59
|
-
icon?: IconsNames;
|
|
60
|
-
} & DynamicFormHandlerProps<T>;
|
|
61
|
-
type TableActionEdit<T = any> = {
|
|
62
|
-
link?: {
|
|
63
|
-
href: (table: {
|
|
64
|
-
[key in keyof T]: string;
|
|
65
|
-
}) => string;
|
|
66
|
-
text: string;
|
|
67
|
-
icon?: IconsNames;
|
|
68
|
-
};
|
|
69
|
-
} & DynamicFormHandlerProps<T>;
|
|
70
|
-
export type FNComponent = (props: any) => JSX.Element;
|
|
71
|
-
type ActionsTable<T = any> = {
|
|
72
|
-
edit?: TableActionEdit<T>;
|
|
73
|
-
create?: TableActionCreate<T>;
|
|
74
|
-
custom?: FNComponent[];
|
|
75
|
-
modalStyles?: React.CSSProperties;
|
|
76
|
-
delete?: (table: {
|
|
77
|
-
[key in keyof T]: T[key];
|
|
78
|
-
}) => void;
|
|
79
|
-
detail?: (table: {
|
|
80
|
-
[key in keyof T]: string;
|
|
81
|
-
}) => string;
|
|
82
|
-
};
|
|
83
|
-
type ColumnsConfiguration<T = any> = {
|
|
84
|
-
columns: Column<T>[];
|
|
85
|
-
actions?: ActionsTable<T>;
|
|
86
|
-
};
|
|
87
|
-
interface IUseTableProps<T = any, M = any> {
|
|
88
|
-
query?: QueryTable<M>;
|
|
89
|
-
configs: IConfigurationsTable;
|
|
90
|
-
columnsConfiguration: ColumnsConfiguration<T>;
|
|
91
|
-
}
|
|
92
|
-
export type { Column, QueryTable, ActionsTable, IParamsTable, IUseTableProps, TableActionEdit, TableActionCreate, IConfigurationsTable, ColumnsConfiguration, };
|
|
@@ -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");
|
|
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"), exports);
|
|
18
|
+
__exportStar(require("./get-query-arguments-table"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getChangedParams = void 0;
|
|
4
|
-
var params_list_1 = require("./params-list.js");
|
|
5
|
-
var utils_1 = require("./utils.js");
|
|
6
|
-
function getChangedParams(swiperParams, oldParams, children, oldChildren, getKey) {
|
|
7
|
-
var keys = [];
|
|
8
|
-
if (!oldParams)
|
|
9
|
-
return keys;
|
|
10
|
-
var addKey = function (key) {
|
|
11
|
-
if (keys.indexOf(key) < 0)
|
|
12
|
-
keys.push(key);
|
|
13
|
-
};
|
|
14
|
-
if (children && oldChildren) {
|
|
15
|
-
var oldChildrenKeys = oldChildren.map(getKey);
|
|
16
|
-
var childrenKeys = children.map(getKey);
|
|
17
|
-
if (oldChildrenKeys.join('') !== childrenKeys.join(''))
|
|
18
|
-
addKey('children');
|
|
19
|
-
if (oldChildren.length !== children.length)
|
|
20
|
-
addKey('children');
|
|
21
|
-
}
|
|
22
|
-
var watchParams = params_list_1.paramsList.filter(function (key) { return key[0] === '_'; }).map(function (key) { return key.replace(/_/, ''); });
|
|
23
|
-
watchParams.forEach(function (key) {
|
|
24
|
-
if (key in swiperParams && key in oldParams) {
|
|
25
|
-
if ((0, utils_1.isObject)(swiperParams[key]) && (0, utils_1.isObject)(oldParams[key])) {
|
|
26
|
-
var newKeys = Object.keys(swiperParams[key]);
|
|
27
|
-
var oldKeys = Object.keys(oldParams[key]);
|
|
28
|
-
if (newKeys.length !== oldKeys.length) {
|
|
29
|
-
addKey(key);
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
newKeys.forEach(function (newKey) {
|
|
33
|
-
if (swiperParams[key][newKey] !== oldParams[key][newKey]) {
|
|
34
|
-
addKey(key);
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
oldKeys.forEach(function (oldKey) {
|
|
38
|
-
if (swiperParams[key][oldKey] !== oldParams[key][oldKey])
|
|
39
|
-
addKey(key);
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
else if (swiperParams[key] !== oldParams[key]) {
|
|
44
|
-
addKey(key);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
return keys;
|
|
49
|
-
}
|
|
50
|
-
exports.getChangedParams = getChangedParams;
|
|
51
|
-
//# sourceMappingURL=get-changed-params.js.map
|
|
@@ -1,148 +0,0 @@
|
|
|
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
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
14
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
15
|
-
if (ar || !(i in from)) {
|
|
16
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
17
|
-
ar[i] = from[i];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
21
|
-
};
|
|
22
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.getParams = void 0;
|
|
27
|
-
//@ts-nocheck
|
|
28
|
-
var utils_1 = require("./utils.js");
|
|
29
|
-
var params_list_1 = require("./params-list.js");
|
|
30
|
-
var defaults_1 = __importDefault(require("../core/defaults.js"));
|
|
31
|
-
var formatValue = function (val) {
|
|
32
|
-
if (parseFloat(val) === Number(val))
|
|
33
|
-
return Number(val);
|
|
34
|
-
if (val === 'true')
|
|
35
|
-
return true;
|
|
36
|
-
if (val === '')
|
|
37
|
-
return true;
|
|
38
|
-
if (val === 'false')
|
|
39
|
-
return false;
|
|
40
|
-
if (val === 'null')
|
|
41
|
-
return null;
|
|
42
|
-
if (val === 'undefined')
|
|
43
|
-
return undefined;
|
|
44
|
-
if (typeof val === 'string' && val.includes('{') && val.includes('}') && val.includes('"')) {
|
|
45
|
-
var v = void 0;
|
|
46
|
-
try {
|
|
47
|
-
v = JSON.parse(val);
|
|
48
|
-
}
|
|
49
|
-
catch (err) {
|
|
50
|
-
v = val;
|
|
51
|
-
}
|
|
52
|
-
return v;
|
|
53
|
-
}
|
|
54
|
-
return val;
|
|
55
|
-
};
|
|
56
|
-
var modulesParamsList = [
|
|
57
|
-
'a11y',
|
|
58
|
-
'autoplay',
|
|
59
|
-
'controller',
|
|
60
|
-
'cards-effect',
|
|
61
|
-
'coverflow-effect',
|
|
62
|
-
'creative-effect',
|
|
63
|
-
'cube-effect',
|
|
64
|
-
'fade-effect',
|
|
65
|
-
'flip-effect',
|
|
66
|
-
'free-mode',
|
|
67
|
-
'grid',
|
|
68
|
-
'hash-navigation',
|
|
69
|
-
'history',
|
|
70
|
-
'keyboard',
|
|
71
|
-
'mousewheel',
|
|
72
|
-
'navigation',
|
|
73
|
-
'pagination',
|
|
74
|
-
'parallax',
|
|
75
|
-
'scrollbar',
|
|
76
|
-
'thumbs',
|
|
77
|
-
'virtual',
|
|
78
|
-
'zoom',
|
|
79
|
-
];
|
|
80
|
-
function getParams(element, propName, propValue) {
|
|
81
|
-
var params = {};
|
|
82
|
-
var passedParams = {};
|
|
83
|
-
(0, utils_1.extend)(params, defaults_1.default);
|
|
84
|
-
var localParamsList = __spreadArray(__spreadArray([], params_list_1.paramsList, true), ['on'], false);
|
|
85
|
-
var allowedParams = localParamsList.map(function (key) { return key.replace(/_/, ''); });
|
|
86
|
-
// First check props
|
|
87
|
-
localParamsList.forEach(function (paramName) {
|
|
88
|
-
paramName = paramName.replace('_', '');
|
|
89
|
-
if (typeof element[paramName] !== 'undefined') {
|
|
90
|
-
passedParams[paramName] = element[paramName];
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
// Attributes
|
|
94
|
-
var attrsList = __spreadArray([], element.attributes, true);
|
|
95
|
-
if (typeof propName === 'string' && typeof propValue !== 'undefined') {
|
|
96
|
-
attrsList.push({ name: propName, value: (0, utils_1.isObject)(propValue) ? __assign({}, propValue) : propValue });
|
|
97
|
-
}
|
|
98
|
-
attrsList.forEach(function (attr) {
|
|
99
|
-
var moduleParam = modulesParamsList.filter(function (mParam) { return attr.name.indexOf("".concat(mParam, "-")) === 0; })[0];
|
|
100
|
-
if (moduleParam) {
|
|
101
|
-
var parentObjName = (0, utils_1.attrToProp)(moduleParam);
|
|
102
|
-
var subObjName = (0, utils_1.attrToProp)(attr.name.split("".concat(moduleParam, "-"))[1]);
|
|
103
|
-
if (typeof passedParams[parentObjName] === 'undefined')
|
|
104
|
-
passedParams[parentObjName] = {};
|
|
105
|
-
if (passedParams[parentObjName] === true) {
|
|
106
|
-
passedParams[parentObjName] = { enabled: true };
|
|
107
|
-
}
|
|
108
|
-
passedParams[parentObjName][subObjName] = formatValue(attr.value);
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
var name_1 = (0, utils_1.attrToProp)(attr.name);
|
|
112
|
-
if (!allowedParams.includes(name_1))
|
|
113
|
-
return;
|
|
114
|
-
var value = formatValue(attr.value);
|
|
115
|
-
if (passedParams[name_1] && modulesParamsList.includes(attr.name) && !(0, utils_1.isObject)(value)) {
|
|
116
|
-
if (passedParams[name_1].constructor !== Object) {
|
|
117
|
-
passedParams[name_1] = {};
|
|
118
|
-
}
|
|
119
|
-
passedParams[name_1].enabled = !!value;
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
passedParams[name_1] = value;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
(0, utils_1.extend)(params, passedParams);
|
|
127
|
-
if (params.navigation) {
|
|
128
|
-
params.navigation = __assign({ prevEl: '.swiper-button-prev', nextEl: '.swiper-button-next' }, (params.navigation !== true ? params.navigation : {}));
|
|
129
|
-
}
|
|
130
|
-
else if (params.navigation === false) {
|
|
131
|
-
delete params.navigation;
|
|
132
|
-
}
|
|
133
|
-
if (params.scrollbar) {
|
|
134
|
-
params.scrollbar = __assign({ el: '.swiper-scrollbar' }, (params.scrollbar !== true ? params.scrollbar : {}));
|
|
135
|
-
}
|
|
136
|
-
else if (params.scrollbar === false) {
|
|
137
|
-
delete params.scrollbar;
|
|
138
|
-
}
|
|
139
|
-
if (params.pagination) {
|
|
140
|
-
params.pagination = __assign({ el: '.swiper-pagination' }, (params.pagination !== true ? params.pagination : {}));
|
|
141
|
-
}
|
|
142
|
-
else if (params.pagination === false) {
|
|
143
|
-
delete params.pagination;
|
|
144
|
-
}
|
|
145
|
-
return { params: params, passedParams: passedParams };
|
|
146
|
-
}
|
|
147
|
-
exports.getParams = getParams;
|
|
148
|
-
//# sourceMappingURL=get-element-params.js.map
|
|
@@ -1,61 +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.getParams = void 0;
|
|
7
|
-
//@ts-nocheck
|
|
8
|
-
var utils_1 = require("./utils.js");
|
|
9
|
-
var params_list_1 = require("./params-list.js");
|
|
10
|
-
var defaults_1 = __importDefault(require("../core/defaults.js"));
|
|
11
|
-
function getParams(obj, splitEvents) {
|
|
12
|
-
if (obj === void 0) { obj = {}; }
|
|
13
|
-
if (splitEvents === void 0) { splitEvents = true; }
|
|
14
|
-
var params = {
|
|
15
|
-
on: {},
|
|
16
|
-
};
|
|
17
|
-
var events = {};
|
|
18
|
-
var passedParams = {};
|
|
19
|
-
(0, utils_1.extend)(params, defaults_1.default);
|
|
20
|
-
params._emitClasses = true;
|
|
21
|
-
params.init = false;
|
|
22
|
-
var rest = {};
|
|
23
|
-
var allowedParams = params_list_1.paramsList.map(function (key) { return key.replace(/_/, ''); });
|
|
24
|
-
var plainObj = Object.assign({}, obj);
|
|
25
|
-
Object.keys(plainObj).forEach(function (key) {
|
|
26
|
-
if (typeof obj[key] === 'undefined')
|
|
27
|
-
return;
|
|
28
|
-
if (allowedParams.indexOf(key) >= 0) {
|
|
29
|
-
if ((0, utils_1.isObject)(obj[key])) {
|
|
30
|
-
params[key] = {};
|
|
31
|
-
passedParams[key] = {};
|
|
32
|
-
(0, utils_1.extend)(params[key], obj[key]);
|
|
33
|
-
(0, utils_1.extend)(passedParams[key], obj[key]);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
params[key] = obj[key];
|
|
37
|
-
passedParams[key] = obj[key];
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
else if (key.search(/on[A-Z]/) === 0 && typeof obj[key] === 'function') {
|
|
41
|
-
if (splitEvents) {
|
|
42
|
-
events["".concat(key[2].toLowerCase()).concat(key.substr(3))] = obj[key];
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
params.on["".concat(key[2].toLowerCase()).concat(key.substr(3))] = obj[key];
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
rest[key] = obj[key];
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
['navigation', 'pagination', 'scrollbar'].forEach(function (key) {
|
|
53
|
-
if (params[key] === true)
|
|
54
|
-
params[key] = {};
|
|
55
|
-
if (params[key] === false)
|
|
56
|
-
delete params[key];
|
|
57
|
-
});
|
|
58
|
-
return { params: params, passedParams: passedParams, rest: rest, events: events };
|
|
59
|
-
}
|
|
60
|
-
exports.getParams = getParams;
|
|
61
|
-
//# sourceMappingURL=get-params.js.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mountSwiper = void 0;
|
|
4
|
-
var utils_1 = require("./utils.js");
|
|
5
|
-
function mountSwiper(_a, swiperParams) {
|
|
6
|
-
var el = _a.el, nextEl = _a.nextEl, prevEl = _a.prevEl, paginationEl = _a.paginationEl, scrollbarEl = _a.scrollbarEl, swiper = _a.swiper;
|
|
7
|
-
if ((0, utils_1.needsNavigation)(swiperParams) && nextEl && prevEl) {
|
|
8
|
-
swiper.params.navigation.nextEl = nextEl;
|
|
9
|
-
swiper.originalParams.navigation.nextEl = nextEl;
|
|
10
|
-
swiper.params.navigation.prevEl = prevEl;
|
|
11
|
-
swiper.originalParams.navigation.prevEl = prevEl;
|
|
12
|
-
}
|
|
13
|
-
if ((0, utils_1.needsPagination)(swiperParams) && paginationEl) {
|
|
14
|
-
swiper.params.pagination.el = paginationEl;
|
|
15
|
-
swiper.originalParams.pagination.el = paginationEl;
|
|
16
|
-
}
|
|
17
|
-
if ((0, utils_1.needsScrollbar)(swiperParams) && scrollbarEl) {
|
|
18
|
-
swiper.params.scrollbar.el = scrollbarEl;
|
|
19
|
-
swiper.originalParams.scrollbar.el = scrollbarEl;
|
|
20
|
-
}
|
|
21
|
-
swiper.init(el);
|
|
22
|
-
}
|
|
23
|
-
exports.mountSwiper = mountSwiper;
|
|
24
|
-
//# sourceMappingURL=mount-swiper.js.map
|