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,15 +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.extend = exports.ssrWindow = exports.getWindow = exports.ssrDocument = exports.getDocument = void 0;
|
|
7
|
-
var document_1 = require("./document.js");
|
|
8
|
-
Object.defineProperty(exports, "getDocument", { enumerable: true, get: function () { return document_1.getDocument; } });
|
|
9
|
-
Object.defineProperty(exports, "ssrDocument", { enumerable: true, get: function () { return document_1.ssrDocument; } });
|
|
10
|
-
var window_1 = require("./window.js");
|
|
11
|
-
Object.defineProperty(exports, "getWindow", { enumerable: true, get: function () { return window_1.getWindow; } });
|
|
12
|
-
Object.defineProperty(exports, "ssrWindow", { enumerable: true, get: function () { return window_1.ssrWindow; } });
|
|
13
|
-
var extend_1 = __importDefault(require("./extend.js"));
|
|
14
|
-
exports.extend = extend_1.default;
|
|
15
|
-
//# sourceMappingURL=ssr-window.js.map
|
|
@@ -1,71 +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.ssrWindow = exports.getWindow = void 0;
|
|
7
|
-
var extend_1 = __importDefault(require("./extend.js"));
|
|
8
|
-
var document_1 = require("./document.js");
|
|
9
|
-
var ssrWindow = {
|
|
10
|
-
document: document_1.ssrDocument,
|
|
11
|
-
navigator: {
|
|
12
|
-
userAgent: '',
|
|
13
|
-
},
|
|
14
|
-
location: {
|
|
15
|
-
hash: '',
|
|
16
|
-
host: '',
|
|
17
|
-
hostname: '',
|
|
18
|
-
href: '',
|
|
19
|
-
origin: '',
|
|
20
|
-
pathname: '',
|
|
21
|
-
protocol: '',
|
|
22
|
-
search: '',
|
|
23
|
-
},
|
|
24
|
-
history: {
|
|
25
|
-
replaceState: function () { },
|
|
26
|
-
pushState: function () { },
|
|
27
|
-
go: function () { },
|
|
28
|
-
back: function () { },
|
|
29
|
-
},
|
|
30
|
-
CustomEvent: function CustomEvent() {
|
|
31
|
-
return this;
|
|
32
|
-
},
|
|
33
|
-
addEventListener: function () { },
|
|
34
|
-
removeEventListener: function () { },
|
|
35
|
-
getComputedStyle: function () {
|
|
36
|
-
return {
|
|
37
|
-
getPropertyValue: function () {
|
|
38
|
-
return '';
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
},
|
|
42
|
-
Image: function () { },
|
|
43
|
-
Date: function () { },
|
|
44
|
-
screen: {},
|
|
45
|
-
setTimeout: function () { },
|
|
46
|
-
clearTimeout: function () { },
|
|
47
|
-
matchMedia: function () {
|
|
48
|
-
return {};
|
|
49
|
-
},
|
|
50
|
-
requestAnimationFrame: function (callback) {
|
|
51
|
-
if (typeof setTimeout === 'undefined') {
|
|
52
|
-
callback();
|
|
53
|
-
return null;
|
|
54
|
-
}
|
|
55
|
-
return setTimeout(callback, 0);
|
|
56
|
-
},
|
|
57
|
-
cancelAnimationFrame: function (id) {
|
|
58
|
-
if (typeof setTimeout === 'undefined') {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
clearTimeout(id);
|
|
62
|
-
},
|
|
63
|
-
};
|
|
64
|
-
exports.ssrWindow = ssrWindow;
|
|
65
|
-
function getWindow() {
|
|
66
|
-
var win = typeof window !== 'undefined' ? window : {};
|
|
67
|
-
(0, extend_1.default)(win, ssrWindow);
|
|
68
|
-
return win;
|
|
69
|
-
}
|
|
70
|
-
exports.getWindow = getWindow;
|
|
71
|
-
//# sourceMappingURL=window.js.map
|
|
@@ -1,27 +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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.Swiper = void 0;
|
|
21
|
-
__exportStar(require("./shared.js"), exports);
|
|
22
|
-
var swiper_class_1 = require("./swiper-class.js");
|
|
23
|
-
Object.defineProperty(exports, "Swiper", { enumerable: true, get: function () { return __importDefault(swiper_class_1).default; } });
|
|
24
|
-
__exportStar(require("./swiper-events.js"), exports);
|
|
25
|
-
__exportStar(require("./swiper-options.js"), exports);
|
|
26
|
-
__exportStar(require("./modules/public-api"), exports);
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import type { SwiperOptions } from './swiper-options.js';
|
|
2
|
-
import type Swiper from './swiper-class.js';
|
|
3
|
-
import type { A11yEvents } from './modules/a11y';
|
|
4
|
-
import type { AutoplayEvents } from './modules/autoplay';
|
|
5
|
-
import type { ControllerEvents } from './modules/controller';
|
|
6
|
-
import type { CoverflowEffectEvents } from './modules/effect-coverflow';
|
|
7
|
-
import type { CubeEffectEvents } from './modules/effect-cube';
|
|
8
|
-
import type { FadeEffectEvents } from './modules/effect-fade';
|
|
9
|
-
import type { FlipEffectEvents } from './modules/effect-flip';
|
|
10
|
-
import type { CreativeEffectEvents } from './modules/effect-creative';
|
|
11
|
-
import type { CardsEffectEvents } from './modules/effect-cards';
|
|
12
|
-
import type { HashNavigationEvents } from './modules/hash-navigation';
|
|
13
|
-
export type SwiperEvents = {
|
|
14
|
-
init: (swiper: Swiper) => any;
|
|
15
|
-
beforeDestroy: (swiper: Swiper) => void;
|
|
16
|
-
slidesUpdated: (swiper: Swiper) => void;
|
|
17
|
-
slideChange: (swiper: Swiper) => void;
|
|
18
|
-
slideChangeTransitionStart: (swiper: Swiper) => void;
|
|
19
|
-
slideChangeTransitionEnd: (swiper: Swiper) => void;
|
|
20
|
-
slideNextTransitionStart: (swiper: Swiper) => void;
|
|
21
|
-
slideNextTransitionEnd: (swiper: Swiper) => void;
|
|
22
|
-
slidePrevTransitionStart: (swiper: Swiper) => void;
|
|
23
|
-
slidePrevTransitionEnd: (swiper: Swiper) => void;
|
|
24
|
-
transitionStart: (swiper: Swiper) => void;
|
|
25
|
-
transitionEnd: (swiper: Swiper) => void;
|
|
26
|
-
touchStart: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
27
|
-
touchMove: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
28
|
-
touchMoveOpposite: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
29
|
-
sliderMove: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
30
|
-
touchEnd: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
31
|
-
click: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
32
|
-
tap: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
33
|
-
doubleTap: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
34
|
-
/**
|
|
35
|
-
* Event will be fired when Swiper progress is changed, as an arguments it receives progress that is always from 0 to 1
|
|
36
|
-
*/
|
|
37
|
-
progress: (swiper: Swiper, progress: number) => void;
|
|
38
|
-
/**
|
|
39
|
-
* Event will be fired when Swiper reach its beginning (initial position)
|
|
40
|
-
*/
|
|
41
|
-
reachBeginning: (swiper: Swiper) => void;
|
|
42
|
-
/**
|
|
43
|
-
* Event will be fired when Swiper reach last slide
|
|
44
|
-
*/
|
|
45
|
-
reachEnd: (swiper: Swiper) => void;
|
|
46
|
-
/**
|
|
47
|
-
* Event will be fired when Swiper goes to beginning or end position
|
|
48
|
-
*/
|
|
49
|
-
toEdge: (swiper: Swiper) => void;
|
|
50
|
-
/**
|
|
51
|
-
* Event will be fired when Swiper goes from beginning or end position
|
|
52
|
-
*/
|
|
53
|
-
fromEdge: (swiper: Swiper) => void;
|
|
54
|
-
/**
|
|
55
|
-
* Event will be fired when swiper's wrapper change its position. Receives current translate value as an arguments
|
|
56
|
-
*/
|
|
57
|
-
setTranslate: (swiper: Swiper, translate: number) => void;
|
|
58
|
-
/**
|
|
59
|
-
* Event will be fired everytime when swiper starts animation. Receives current transition duration (in ms) as an arguments
|
|
60
|
-
*/
|
|
61
|
-
setTransition: (swiper: Swiper, transition: number) => void;
|
|
62
|
-
/**
|
|
63
|
-
* Event will be fired on window resize right before swiper's onresize manipulation
|
|
64
|
-
*/
|
|
65
|
-
resize: (swiper: Swiper) => void;
|
|
66
|
-
/**
|
|
67
|
-
* Event will be fired if observer is enabled and it detects DOM mutations
|
|
68
|
-
*/
|
|
69
|
-
observerUpdate: (swiper: Swiper) => void;
|
|
70
|
-
/**
|
|
71
|
-
* Event will be fired right before "loop fix"
|
|
72
|
-
*/
|
|
73
|
-
beforeLoopFix: (swiper: Swiper) => void;
|
|
74
|
-
/**
|
|
75
|
-
* Event will be fired after "loop fix"
|
|
76
|
-
*/
|
|
77
|
-
loopFix: (swiper: Swiper) => void;
|
|
78
|
-
breakpoint: (swiper: Swiper, breakpointParams: SwiperOptions) => void;
|
|
79
|
-
_beforeBreakpoint?: (swiper: Swiper, breakpointParams: SwiperOptions) => void;
|
|
80
|
-
_containerClasses?: (swiper: Swiper, classNames: string) => void;
|
|
81
|
-
_slideClass?: (swiper: Swiper, slideEl: HTMLElement, classNames: string) => void;
|
|
82
|
-
_slideClasses?: (swiper: Swiper, slides: {
|
|
83
|
-
slideEl: HTMLElement;
|
|
84
|
-
classNames: string;
|
|
85
|
-
index: number;
|
|
86
|
-
}[]) => void;
|
|
87
|
-
_swiper?: (swiper: Swiper) => void;
|
|
88
|
-
_freeModeNoMomentumRelease?: (swiper: Swiper) => void;
|
|
89
|
-
activeIndexChange: (swiper: Swiper) => void;
|
|
90
|
-
snapIndexChange: (swiper: Swiper) => void;
|
|
91
|
-
realIndexChange: (swiper: Swiper) => void;
|
|
92
|
-
afterInit: (swiper: Swiper) => void;
|
|
93
|
-
beforeInit: (swiper: Swiper) => void;
|
|
94
|
-
/**
|
|
95
|
-
* Event will fired before resize handler
|
|
96
|
-
*/
|
|
97
|
-
beforeResize: (swiper: Swiper) => void;
|
|
98
|
-
/**
|
|
99
|
-
* Event will fired before slide change transition start
|
|
100
|
-
*/
|
|
101
|
-
beforeSlideChangeStart: (swiper: Swiper) => void;
|
|
102
|
-
/**
|
|
103
|
-
* Event will fired before transition start
|
|
104
|
-
*/
|
|
105
|
-
beforeTransitionStart: (swiper: Swiper, speed: number, internal: any) => void;
|
|
106
|
-
/**
|
|
107
|
-
* Event will fired on direction change
|
|
108
|
-
*/
|
|
109
|
-
changeDirection: (swiper: Swiper) => void;
|
|
110
|
-
/**
|
|
111
|
-
* Event will be fired when user double click/tap on Swiper
|
|
112
|
-
*/
|
|
113
|
-
doubleClick: (swiper: Swiper, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
114
|
-
/**
|
|
115
|
-
* Event will be fired on swiper destroy
|
|
116
|
-
*/
|
|
117
|
-
destroy: (swiper: Swiper) => void;
|
|
118
|
-
/**
|
|
119
|
-
* Event will be fired on momentum bounce
|
|
120
|
-
*/
|
|
121
|
-
momentumBounce: (swiper: Swiper) => void;
|
|
122
|
-
/**
|
|
123
|
-
* Event will be fired on orientation change (e.g. landscape -> portrait)
|
|
124
|
-
*/
|
|
125
|
-
orientationchange: (swiper: Swiper) => void;
|
|
126
|
-
/**
|
|
127
|
-
* Event will be fired in the beginning of animation of resetting slide to current one
|
|
128
|
-
*/
|
|
129
|
-
slideResetTransitionStart: (swiper: Swiper) => void;
|
|
130
|
-
/**
|
|
131
|
-
* Event will be fired in the end of animation of resetting slide to current one
|
|
132
|
-
*/
|
|
133
|
-
slideResetTransitionEnd: (swiper: Swiper) => void;
|
|
134
|
-
/**
|
|
135
|
-
* Event will be fired with first touch/drag move
|
|
136
|
-
*/
|
|
137
|
-
sliderFirstMove: (swiper: Swiper, event: TouchEvent) => void;
|
|
138
|
-
/**
|
|
139
|
-
* Event will be fired when number of slides has changed
|
|
140
|
-
*/
|
|
141
|
-
slidesLengthChange: (swiper: Swiper) => void;
|
|
142
|
-
/**
|
|
143
|
-
* Event will be fired when slides grid has changed
|
|
144
|
-
*/
|
|
145
|
-
slidesGridLengthChange: (swiper: Swiper) => void;
|
|
146
|
-
/**
|
|
147
|
-
* Event will be fired when snap grid has changed
|
|
148
|
-
*/
|
|
149
|
-
snapGridLengthChange: (swiper: Swiper) => void;
|
|
150
|
-
/**
|
|
151
|
-
* Event will be fired after swiper.update() call
|
|
152
|
-
*/
|
|
153
|
-
update: (swiper: Swiper) => void;
|
|
154
|
-
/**
|
|
155
|
-
* Event will be fired when swiper is locked (when `watchOverflow` enabled)
|
|
156
|
-
*/
|
|
157
|
-
lock: (swiper: Swiper) => void;
|
|
158
|
-
/**
|
|
159
|
-
* Event will be fired when swiper is unlocked (when `watchOverflow` enabled)
|
|
160
|
-
*/
|
|
161
|
-
unlock: (swiper: Swiper) => void;
|
|
162
|
-
} & A11yEvents & AutoplayEvents & ControllerEvents & CoverflowEffectEvents & CubeEffectEvents & FadeEffectEvents & FlipEffectEvents & CreativeEffectEvents & CardsEffectEvents & HashNavigationEvents;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { ButtonProps } from '../../../../../ui/index.js';
|
|
3
|
-
export type ICustomSubmitProps = {
|
|
4
|
-
props: ButtonProps;
|
|
5
|
-
action: (data: any, setStateForm: Dispatch<SetStateAction<{
|
|
6
|
-
state: string;
|
|
7
|
-
message: string;
|
|
8
|
-
}>>) => void;
|
|
9
|
-
active?: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare function CustomSubmitButton({ props, action, stateForm, onSubmit, active }: {
|
|
12
|
-
onSubmit: (action: any) => void;
|
|
13
|
-
stateForm: {
|
|
14
|
-
state: string;
|
|
15
|
-
message: string;
|
|
16
|
-
};
|
|
17
|
-
} & ICustomSubmitProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,25 +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.CustomSubmitButton = void 0;
|
|
15
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
-
var ui_1 = require("../../../../../ui/index.js");
|
|
17
|
-
function CustomSubmitButton(_a) {
|
|
18
|
-
var props = _a.props, action = _a.action, stateForm = _a.stateForm, onSubmit = _a.onSubmit, active = _a.active;
|
|
19
|
-
if (active === false) {
|
|
20
|
-
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
21
|
-
}
|
|
22
|
-
return (0, jsx_runtime_1.jsx)(ui_1.Button, __assign({}, props, { type: 'button', onClick: function () { return onSubmit(action); }, loading: stateForm.state === 'loading' }));
|
|
23
|
-
}
|
|
24
|
-
exports.CustomSubmitButton = CustomSubmitButton;
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,117 +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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
46
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
47
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
48
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
49
|
-
function step(op) {
|
|
50
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
51
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
52
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
53
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
54
|
-
switch (op[0]) {
|
|
55
|
-
case 0: case 1: t = op; break;
|
|
56
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
57
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
58
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
59
|
-
default:
|
|
60
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
61
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
62
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
63
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
64
|
-
if (t[2]) _.ops.pop();
|
|
65
|
-
_.trys.pop(); continue;
|
|
66
|
-
}
|
|
67
|
-
op = body.call(thisArg, _);
|
|
68
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
69
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73
|
-
exports.DynamicFormHandler = void 0;
|
|
74
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
75
|
-
var ui_1 = require("../../../../../ui/index.js");
|
|
76
|
-
var Inputs = __importStar(require("../../index.js"));
|
|
77
|
-
var S = __importStar(require("./styles.js"));
|
|
78
|
-
function DynamicFormHandler(props) {
|
|
79
|
-
var _this = this;
|
|
80
|
-
var queryKEY = props.getDetails && props.getDetails.key && props.getDetails.key(props.tableItem);
|
|
81
|
-
function fetcher() {
|
|
82
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var _a;
|
|
84
|
-
return __generator(this, function (_b) {
|
|
85
|
-
return [2 /*return*/, (_a = props === null || props === void 0 ? void 0 : props.getDetails) === null || _a === void 0 ? void 0 : _a.fetcher(props.tableItem)];
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
var _a = (0, ui_1.useQuery)({
|
|
90
|
-
queryFn: fetcher,
|
|
91
|
-
queryKey: queryKEY,
|
|
92
|
-
enabled: !!queryKEY,
|
|
93
|
-
}), data = _a.data, isLoading = _a.isLoading, mutate = _a.mutate, isFetching = _a.isFetching;
|
|
94
|
-
if ((isLoading || isFetching) && props.getDetails) {
|
|
95
|
-
return (0, jsx_runtime_1.jsx)(ui_1.LoaderCircle, { size: 30, color: '#000' });
|
|
96
|
-
}
|
|
97
|
-
return ((0, jsx_runtime_1.jsxs)(S.DynamiFormHandler, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'header', children: [props.title && (0, jsx_runtime_1.jsx)("h3", { className: 'font-20-bold', children: props.title }), props.subtitle && (0, jsx_runtime_1.jsx)("span", { className: 'font-16-regular', children: props.subtitle })] }), (0, jsx_runtime_1.jsx)(ui_1.FormHandler, __assign({}, props, { cleanFieldsOnSubmit: false, onSucess: function (data) { return __awaiter(_this, void 0, void 0, function () {
|
|
98
|
-
var response;
|
|
99
|
-
return __generator(this, function (_a) {
|
|
100
|
-
switch (_a.label) {
|
|
101
|
-
case 0: return [4 /*yield*/, props.onSucess(data, undefined, props.tableItem)];
|
|
102
|
-
case 1:
|
|
103
|
-
response = _a.sent();
|
|
104
|
-
queryKEY && mutate();
|
|
105
|
-
return [2 /*return*/, response];
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
}); }, initialData: props.initialDataIsTableItem
|
|
109
|
-
? __assign(__assign({}, ((props === null || props === void 0 ? void 0 : props.tableItem) || {})), (props.initialData || {})) : __assign(__assign({}, data), (props.initialData || {})), children: props.inputs.map(function (row, index) {
|
|
110
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: { display: 'grid', gap: 15, gridTemplateColumns: "repeat(".concat(row.length, ", 1fr)") }, children: row.map(function (input) {
|
|
111
|
-
var Element = Inputs[input.InputComponent];
|
|
112
|
-
return (0, jsx_runtime_1.jsx)(Element, __assign({}, input), input.name);
|
|
113
|
-
}) }, index));
|
|
114
|
-
}) }))] }));
|
|
115
|
-
}
|
|
116
|
-
exports.DynamicFormHandler = DynamicFormHandler;
|
|
117
|
-
//# sourceMappingURL=component.js.map
|
|
@@ -1,19 +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("./component.js"), exports);
|
|
18
|
-
__exportStar(require("./interfaces.js"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { IconsNames } from '../../../../../ui/icons/index.js';
|
|
2
|
-
import { IFormHandler } from '../interfaces.js';
|
|
3
|
-
import { ISelectProps } from '../../select/interfaces.js';
|
|
4
|
-
import * as Inputs from '../../index.js';
|
|
5
|
-
type InputProps<T = any> = {
|
|
6
|
-
name: keyof T;
|
|
7
|
-
InputComponent: keyof typeof Inputs;
|
|
8
|
-
} & Partial<Omit<ISelectProps, 'name'>>;
|
|
9
|
-
export type DynamicFormHandlerProps<T = any> = Partial<IFormHandler> & {
|
|
10
|
-
button?: {
|
|
11
|
-
text?: string;
|
|
12
|
-
icon?: IconsNames;
|
|
13
|
-
};
|
|
14
|
-
initialDataIsTableItem?: boolean;
|
|
15
|
-
tableItem?: any;
|
|
16
|
-
title?: string;
|
|
17
|
-
subtitle?: string;
|
|
18
|
-
inputs?: InputProps<T>[][];
|
|
19
|
-
getDetails?: {
|
|
20
|
-
key: (params: {
|
|
21
|
-
[key in keyof T]: T[key];
|
|
22
|
-
}) => string;
|
|
23
|
-
fetcher: (params: {
|
|
24
|
-
[key in keyof T]: T[key];
|
|
25
|
-
}) => Promise<any>;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export {};
|
|
@@ -1,111 +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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
35
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
36
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
37
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
38
|
-
function step(op) {
|
|
39
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
40
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
41
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
42
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
43
|
-
switch (op[0]) {
|
|
44
|
-
case 0: case 1: t = op; break;
|
|
45
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
46
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
47
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
48
|
-
default:
|
|
49
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
50
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
51
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
52
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
53
|
-
if (t[2]) _.ops.pop();
|
|
54
|
-
_.trys.pop(); continue;
|
|
55
|
-
}
|
|
56
|
-
op = body.call(thisArg, _);
|
|
57
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
58
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
-
exports.generateSchemasByDemand = void 0;
|
|
63
|
-
var ui_1 = require("../../../../../ui/index.js");
|
|
64
|
-
function generateSchemasByDemand(defaultSchemas) {
|
|
65
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
66
|
-
var yup, schema, schemas, s;
|
|
67
|
-
return __generator(this, function (_a) {
|
|
68
|
-
switch (_a.label) {
|
|
69
|
-
case 0: return [4 /*yield*/, Promise.resolve().then(function () { return __importStar(require('yup')); })];
|
|
70
|
-
case 1:
|
|
71
|
-
yup = _a.sent();
|
|
72
|
-
schema = {};
|
|
73
|
-
schemas = {
|
|
74
|
-
name: yup
|
|
75
|
-
.string()
|
|
76
|
-
.required('Digite o seu nome.')
|
|
77
|
-
.test('teste nome', 'Digite um nome válido', function (value) { return value && value.length >= 2; }),
|
|
78
|
-
cpf: yup
|
|
79
|
-
.string()
|
|
80
|
-
.required('Digite o número do seu cpf.')
|
|
81
|
-
.min(11, 'Digite um cpf válido.')
|
|
82
|
-
.test('test-invalid-cpf', 'Digite um cpf válido.', function (cpf) { return (0, ui_1.validateCPF)((0, ui_1.removeDigits)(cpf || '')); }),
|
|
83
|
-
subject: yup.string().required('Por favor, digite uma assunto'),
|
|
84
|
-
message: yup.string().required('Por favor, digite uma mensagem'),
|
|
85
|
-
email: yup.string().required('Por favor, digite um email').email('Por favor, digite um email válido'),
|
|
86
|
-
phone: yup
|
|
87
|
-
.string()
|
|
88
|
-
.test('Validar Telefone', 'Por favor, digite um telefone válido', ui_1.validatePhone),
|
|
89
|
-
street: yup.string().required('Digite sua rua/avenida'),
|
|
90
|
-
district: yup.string().required('Digite seu bairro'),
|
|
91
|
-
city: yup.string().required('Digite sua cidade'),
|
|
92
|
-
state: yup.string().required('Digite seu estado'),
|
|
93
|
-
addressNumber: yup.string().required('Digite seu número'),
|
|
94
|
-
zipCode: yup
|
|
95
|
-
.string()
|
|
96
|
-
.required('Digite seu CEP')
|
|
97
|
-
.test('valid CEP', 'Digite um CEP válido.', function (zipcode) { return (zipcode === null || zipcode === void 0 ? void 0 : zipcode.replace(/[^0-9]/g, '').length) === 8; }),
|
|
98
|
-
};
|
|
99
|
-
if (!defaultSchemas) {
|
|
100
|
-
return [2 /*return*/, {}];
|
|
101
|
-
}
|
|
102
|
-
for (s in defaultSchemas) {
|
|
103
|
-
schema[s] = schemas[s];
|
|
104
|
-
}
|
|
105
|
-
return [2 /*return*/, schema];
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
exports.generateSchemasByDemand = generateSchemasByDemand;
|
|
111
|
-
//# sourceMappingURL=generate-schemas.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { IFormHandler } from '../interfaces.js';
|
|
2
|
-
export default function FormElement({ i18n, button, schema, children, onFinish, onSucess, debugMode, fileFields, autoComplete, customSubmit, onChangeForm, customAction, decimalFields, defaultSchemas, isStickyButtons, cleanFieldsOnSubmit, disableEnterKeySubmitForm, }: IFormHandler): import("react/jsx-runtime").JSX.Element;
|