infinity-forge 0.30.8 → 0.31.0
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/README.md +20 -42
- package/dist/sites/components/brands-carousel/styles.d.ts +1 -0
- package/dist/sites/components/counter/versions/version-01/box/styles.d.ts +1 -0
- package/dist/sites/components/counter/versions/version-01/styles.d.ts +1 -0
- package/dist/sites/components/header-link/versions/version-01/styles.d.ts +1 -0
- package/dist/sites/components/mvv/versions/version-01/styles.d.ts +1 -0
- package/dist/sites/context/configs/interfaces.d.ts +1 -0
- package/dist/sites/context/configs/scripts/acept-cookies/styles.d.ts +1 -0
- package/dist/sites/context/configs/scripts/acept-ratedr/styles.d.ts +1 -0
- package/dist/sites/context/configs/scripts/whatsapp-fixed/styles.d.ts +1 -0
- package/dist/system/container/index.d.ts +4 -3
- package/dist/system/container/index.js +1 -0
- package/dist/system/container/index.js.map +1 -1
- package/dist/system/container/main.d.ts +1 -1
- package/dist/system/container/main.js +3 -2
- package/dist/system/container/main.js.map +1 -1
- package/dist/system/container/notifications/container.d.ts +3 -0
- package/dist/system/container/notifications/container.js +12 -0
- package/dist/system/container/notifications/container.js.map +1 -0
- package/dist/system/container/notifications/index.d.ts +2 -0
- package/dist/system/container/notifications/index.js +19 -0
- package/dist/system/container/notifications/index.js.map +1 -0
- package/dist/system/container/notifications/types.d.ts +3 -0
- package/dist/system/container/notifications/types.js +7 -0
- package/dist/system/container/notifications/types.js.map +1 -0
- package/dist/system/container/types.d.ts +1 -0
- package/dist/system/container/types.js +2 -1
- package/dist/system/container/types.js.map +1 -1
- package/dist/system/data/use-cases/index.d.ts +2 -1
- package/dist/system/data/use-cases/index.js +1 -0
- package/dist/system/data/use-cases/index.js.map +1 -1
- package/dist/system/data/use-cases/notifications/index.d.ts +1 -0
- package/dist/system/data/use-cases/notifications/index.js +18 -0
- package/dist/system/data/use-cases/notifications/index.js.map +1 -0
- package/dist/system/data/use-cases/notifications/remote-notifications.d.ts +11 -0
- package/dist/system/data/use-cases/notifications/remote-notifications.js +158 -0
- package/dist/system/data/use-cases/notifications/remote-notifications.js.map +1 -0
- package/dist/system/domain/index.d.ts +1 -1
- package/dist/system/domain/use-cases/index.d.ts +2 -1
- package/dist/system/domain/use-cases/index.js +1 -0
- package/dist/system/domain/use-cases/index.js.map +1 -1
- package/dist/system/domain/use-cases/notifications/create.d.ts +11 -0
- package/dist/system/{presentation/components/layout/header/components/menu-right/notifications/interfaces.js → domain/use-cases/notifications/create.js} +1 -1
- package/dist/system/domain/use-cases/notifications/create.js.map +1 -0
- package/dist/system/domain/use-cases/notifications/index.d.ts +4 -0
- package/dist/system/domain/use-cases/notifications/index.js +21 -0
- package/dist/system/domain/use-cases/notifications/index.js.map +1 -0
- package/dist/system/domain/use-cases/notifications/load-all.d.ts +18 -0
- package/dist/system/domain/use-cases/notifications/load-all.js +3 -0
- package/dist/system/domain/use-cases/notifications/load-all.js.map +1 -0
- package/dist/system/domain/use-cases/notifications/load-no-read.d.ts +8 -0
- package/dist/system/domain/use-cases/notifications/load-no-read.js +3 -0
- package/dist/system/domain/use-cases/notifications/load-no-read.js.map +1 -0
- package/dist/system/domain/use-cases/notifications/read.d.ts +9 -0
- package/dist/system/domain/use-cases/notifications/read.js +3 -0
- package/dist/system/domain/use-cases/notifications/read.js.map +1 -0
- package/dist/system/presentation/components/data/chat/card-message/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/chat/loader/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/chat/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/highlight-text/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/input-search/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/logo/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/overlay/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/page-wrapper/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/sign-up/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/component.d.ts +1 -3
- package/dist/system/presentation/components/layout/component.js +2 -2
- package/dist/system/presentation/components/layout/component.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/index.js +2 -2
- package/dist/system/presentation/components/layout/header/components/menu-right/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/index.d.ts +2 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/index.js +35 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/index.js.map +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/styles.d.ts +5 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/styles.js +14 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/styles.js.map +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.d.ts +1 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js +77 -8
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/styles.d.ts +7 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/styles.js +4 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/styles.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/settings/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/search-modal/search-list/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/search-modal/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/search-modal/trigger/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/index.d.ts +1 -2
- package/dist/system/presentation/components/layout/header/index.js +3 -3
- package/dist/system/presentation/components/layout/header/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/version-01/index.d.ts +1 -2
- package/dist/system/presentation/components/layout/header/version-01/index.js +2 -2
- package/dist/system/presentation/components/layout/header/version-01/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/version-01/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/menu/components/menu/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/menu/version-01/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/styles.d.ts +1 -0
- package/dist/system/presentation/components/pages/menus/table/icon/style.d.ts +1 -0
- package/dist/system/presentation/context/auth/context.js +1 -1
- package/dist/system/presentation/context/auth/context.js.map +1 -1
- package/dist/system/presentation/context/auth/login/styles.d.ts +1 -0
- package/dist/system/presentation/hooks/index.d.ts +1 -0
- package/dist/system/presentation/hooks/index.js +1 -0
- package/dist/system/presentation/hooks/index.js.map +1 -1
- package/dist/system/presentation/hooks/menu/use-load-menu.d.ts +1 -1
- package/dist/system/presentation/hooks/notifications/index.d.ts +2 -0
- package/dist/system/presentation/hooks/notifications/index.js +19 -0
- package/dist/system/presentation/hooks/notifications/index.js.map +1 -0
- package/dist/system/presentation/hooks/notifications/use-load-all/index.d.ts +4 -0
- package/dist/system/presentation/hooks/notifications/use-load-all/index.js +67 -0
- package/dist/system/presentation/hooks/notifications/use-load-all/index.js.map +1 -0
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.d.ts +2 -0
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.js +62 -0
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/styles.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/styles.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/styles.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/styles.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/styles.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/styles.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/styles.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/styles.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/styles.d.ts +1 -0
- package/dist/ui/components/accordion/styles.d.ts +1 -0
- package/dist/ui/components/breadcrumb/styles.d.ts +1 -0
- package/dist/ui/components/button/styles.d.ts +1 -0
- package/dist/ui/components/form/checkbox/index.js +1 -1
- package/dist/ui/components/form/checkbox/index.js.map +1 -1
- package/dist/ui/components/form/checkbox/styles.d.ts +1 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/component.js +1 -1
- package/dist/ui/components/form/handler/dynamic_form_handler/styles.d.ts +1 -0
- package/dist/ui/components/form/handler/styles.d.ts +1 -0
- package/dist/ui/components/form/input-control/error/styles.d.ts +1 -0
- package/dist/ui/components/form/input-control/index.d.ts +1 -1
- package/dist/ui/components/form/input-control/index.js +2 -2
- package/dist/ui/components/form/input-control/index.js.map +1 -1
- package/dist/ui/components/form/input-control/label/styles.d.ts +1 -0
- package/dist/ui/components/form/input-control/loader-input/styles.d.ts +1 -0
- package/dist/ui/components/form/input-control/styles.d.ts +4 -1
- package/dist/ui/components/form/input-control/styles.js +1 -1
- package/dist/ui/components/form/input-control/styles.js.map +1 -1
- package/dist/ui/components/form/input-date/styles.d.ts +1 -0
- package/dist/ui/components/form/input-file/file-card/styles.d.ts +1 -0
- package/dist/ui/components/form/input-file/styles.d.ts +1 -0
- package/dist/ui/components/form/input-password/styles.d.ts +1 -0
- package/dist/ui/components/form/interfaces.d.ts +1 -0
- package/dist/ui/components/form/radio/styles.d.ts +1 -0
- package/dist/ui/components/form/select/styles.d.ts +1 -0
- package/dist/ui/components/loading-screen/styles.d.ts +1 -0
- package/dist/ui/components/menu-mobile/components/nav-links/styles.d.ts +1 -0
- package/dist/ui/components/menu-mobile/styles.d.ts +1 -0
- package/dist/ui/components/menu-mobile/top/styles.d.ts +1 -0
- package/dist/ui/components/next-image/styles.d.ts +1 -0
- package/dist/ui/components/sidebar/styles.d.ts +1 -0
- package/dist/ui/contexts/toast/styles.d.ts +1 -0
- package/dist/ui/contexts/toast/toast-item/styles.d.ts +1 -0
- package/dist/ui/utils/file/load-file.js +1 -1
- package/dist/ui/utils/file/upload-file.js +5 -5
- package/dist/ui/utils/file/upload-file.js.map +1 -1
- package/package.json +5 -6
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/interfaces.d.ts +0 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/interfaces.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function useLoadMenu(): import("swr
|
|
1
|
+
export declare function useLoadMenu(): import("swr").SWRResponse<import("../../../../system/index.js").LoadAllMenu.Model, any, {
|
|
2
2
|
revalidateIfStale: false;
|
|
3
3
|
revalidateOnFocus: false;
|
|
4
4
|
revalidateOnReconnect: false;
|
|
@@ -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("./use-load-all/index.js"), exports);
|
|
18
|
+
__exportStar(require("./use-load-no-read/index.js"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/presentation/hooks/notifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B;AAC9B,qDAAkC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
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;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.useLoadAllNotifications = void 0;
|
|
43
|
+
var swr_1 = __importDefault(require("swr"));
|
|
44
|
+
var container_1 = require("../../../../../system/container/index.js");
|
|
45
|
+
function useLoadAllNotifications() {
|
|
46
|
+
var timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
47
|
+
function fetcher() {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
49
|
+
var response;
|
|
50
|
+
return __generator(this, function (_a) {
|
|
51
|
+
switch (_a.label) {
|
|
52
|
+
case 0: return [4 /*yield*/, container_1.container.get(container_1.Types.RemoteNotifications).loadAll({ timezone: timezone })];
|
|
53
|
+
case 1:
|
|
54
|
+
response = _a.sent();
|
|
55
|
+
return [2 /*return*/, response];
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
var swrResponse = (0, swr_1.default)('LoadAllNotifications' + timezone, fetcher);
|
|
61
|
+
return {
|
|
62
|
+
notifications: swrResponse.data,
|
|
63
|
+
isLoading: swrResponse.isLoading,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
exports.useLoadAllNotifications = useLoadAllNotifications;
|
|
67
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/hooks/notifications/use-load-all/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAwB;AAExB,gDAAqD;AAGrD,SAAgB,uBAAuB;IACrC,IAAM,QAAQ,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC,eAAe,EAAE,CAAC,QAAQ,CAAA;IACjE,SAAe,OAAO;;;;;4BACH,qBAAM,qBAAS,CAAC,GAAG,CAAsB,iBAAK,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,EAAE,QAAQ,UAAA,EAAE,CAAC,EAAA;;wBAApG,QAAQ,GAAG,SAAyF;wBAE1G,sBAAO,QAAQ,EAAA;;;;KAChB;IAED,IAAM,WAAW,GAAG,IAAA,aAAM,EAAC,sBAAsB,GAAG,QAAQ,EAAE,OAAO,CAAC,CAAA;IAEtE,OAAO;QACL,aAAa,EAAE,WAAW,CAAC,IAAI;QAC/B,SAAS,EAAE,WAAW,CAAC,SAAS;KACjC,CAAA;AACH,CAAC;AAdD,0DAcC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
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;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.useLoadNoReadNotifications = void 0;
|
|
43
|
+
var swr_1 = __importDefault(require("swr"));
|
|
44
|
+
var container_1 = require("../../../../../system/container/index.js");
|
|
45
|
+
function useLoadNoReadNotifications() {
|
|
46
|
+
function fetcher() {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
48
|
+
var response;
|
|
49
|
+
return __generator(this, function (_a) {
|
|
50
|
+
switch (_a.label) {
|
|
51
|
+
case 0: return [4 /*yield*/, container_1.container.get(container_1.Types.RemoteNotifications).loadNoRead()];
|
|
52
|
+
case 1:
|
|
53
|
+
response = _a.sent();
|
|
54
|
+
return [2 /*return*/, response];
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
return (0, swr_1.default)('LoadNoReadNotifications', fetcher);
|
|
60
|
+
}
|
|
61
|
+
exports.useLoadNoReadNotifications = useLoadNoReadNotifications;
|
|
62
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/hooks/notifications/use-load-no-read/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAwB;AAExB,gDAAqD;AAGrD,SAAgB,0BAA0B;IACxC,SAAe,OAAO;;;;;4BACH,qBAAM,qBAAS,CAAC,GAAG,CAA0B,iBAAK,CAAC,mBAAmB,CAAC,CAAC,UAAU,EAAE,EAAA;;wBAA/F,QAAQ,GAAG,SAAoF;wBAErG,sBAAO,QAAQ,EAAA;;;;KAChB;IAED,OAAO,IAAA,aAAM,EAAC,yBAAyB,EAAE,OAAO,CAAC,CAAA;AACnD,CAAC;AARD,gEAQC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Create: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Export: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Filters: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const PaginationStyle: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/styles.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const SkeletonCustom: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Table: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -9,7 +9,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.TableBottom = exports.TopActions = exports.Table = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.Table = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n overflow-x: hidden;\n width: 100%;\n background-color: #fff;\n border-radius: 6px 6px 0 0;\n border: 0.3px solid rgba(0, 0, 0, 0.09);\n border-bottom: 0;\n\n > div {\n width: 100%;\n overflow-x: auto;\n }\n\n .title {\n padding: 20px;\n }\n\n table {\n width: 100%;\n border-collapse: collapse;\n\n > div {\n width: 100%;\n }\n\n thead {\n background-color: #f1f1f1;\n height: 48px;\n\n tr {\n height: 48px;\n }\n\n th {\n vertical-align: inherit;\n border-bottom: 1px solid rgba(224, 224, 224, 1);\n padding: 0 15px;\n color: rgba(0, 0, 0, 0.87);\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n z-index: 2;\n text-align: center;\n }\n }\n\n tbody {\n display: table-row-group;\n\n tr {\n height:
|
|
12
|
+
exports.Table = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n overflow-x: hidden;\n width: 100%;\n background-color: #fff;\n border-radius: 6px 6px 0 0;\n border: 0.3px solid rgba(0, 0, 0, 0.09);\n border-bottom: 0;\n\n > div {\n width: 100%;\n overflow-x: auto;\n }\n\n .title {\n padding: 20px;\n }\n\n table {\n width: 100%;\n border-collapse: collapse;\n\n > div {\n width: 100%;\n }\n\n thead {\n background-color: #f1f1f1;\n height: 48px;\n\n tr {\n height: 48px;\n }\n\n th {\n vertical-align: inherit;\n border-bottom: 1px solid rgba(224, 224, 224, 1);\n padding: 0 15px;\n color: rgba(0, 0, 0, 0.87);\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n z-index: 2;\n text-align: center;\n }\n }\n\n tbody {\n display: table-row-group;\n\n tr {\n height: 45px;\n transition: background 0.1s ease-in-out;\n\n &:hover {\n background-color: rgba(0, 0, 0, 0.02);\n }\n }\n\n td {\n border-bottom: 1px solid rgba(224, 224, 224, 1);\n padding: 0 15px;\n color: rgba(0, 0, 0, 0.87);\n text-align: left;\n font-weight: 400;\n }\n }\n }\n\n .error_table {\n min-height: 400px;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n flex-direction: column;\n width: 100%;\n\n h3 {\n margin-top: 15px;\n color: #828282;\n font-size: 18px;\n }\n }\n"], ["\n overflow-x: hidden;\n width: 100%;\n background-color: #fff;\n border-radius: 6px 6px 0 0;\n border: 0.3px solid rgba(0, 0, 0, 0.09);\n border-bottom: 0;\n\n > div {\n width: 100%;\n overflow-x: auto;\n }\n\n .title {\n padding: 20px;\n }\n\n table {\n width: 100%;\n border-collapse: collapse;\n\n > div {\n width: 100%;\n }\n\n thead {\n background-color: #f1f1f1;\n height: 48px;\n\n tr {\n height: 48px;\n }\n\n th {\n vertical-align: inherit;\n border-bottom: 1px solid rgba(224, 224, 224, 1);\n padding: 0 15px;\n color: rgba(0, 0, 0, 0.87);\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n z-index: 2;\n text-align: center;\n }\n }\n\n tbody {\n display: table-row-group;\n\n tr {\n height: 45px;\n transition: background 0.1s ease-in-out;\n\n &:hover {\n background-color: rgba(0, 0, 0, 0.02);\n }\n }\n\n td {\n border-bottom: 1px solid rgba(224, 224, 224, 1);\n padding: 0 15px;\n color: rgba(0, 0, 0, 0.87);\n text-align: left;\n font-weight: 400;\n }\n }\n }\n\n .error_table {\n min-height: 400px;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n flex-direction: column;\n width: 100%;\n\n h3 {\n margin-top: 15px;\n color: #828282;\n font-size: 18px;\n }\n }\n"])));
|
|
13
13
|
exports.TopActions = (0, styled_components_1.default)('div')(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n margin-bottom: 15px;\n justify-content: space-between;\n\n > div {\n width: fit-content;\n }\n\n .right {\n display: flex;\n gap: 15px;\n }\n"], ["\n display: flex;\n margin-bottom: 15px;\n justify-content: space-between;\n\n > div {\n width: fit-content;\n }\n\n .right {\n display: flex;\n gap: 15px;\n }\n"])));
|
|
14
14
|
exports.TableBottom = (0, styled_components_1.default)('div')(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 60px;\n width: auto;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 20px;\n border-radius: 0 0 5px 5px;\n border: 1px solid #e1e1e1;\n border-top: 0;\n\n > span {\n color: #828282;\n }\n\n p {\n margin: 0;\n color: #808080;\n }\n\n .pagination {\n margin: 0 0 0 auto;\n }\n"], ["\n height: 60px;\n width: auto;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 20px;\n border-radius: 0 0 5px 5px;\n border: 1px solid #e1e1e1;\n border-top: 0;\n\n > span {\n color: #828282;\n }\n\n p {\n margin: 0;\n color: #808080;\n }\n\n .pagination {\n margin: 0 0 0 auto;\n }\n"])));
|
|
15
15
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,KAAK,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,KAAK,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,sjDAAA,m/CAmFjC,KAAA;AAEY,QAAA,UAAU,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,sPAAA,mLAatC,KAAA;AAEY,QAAA,WAAW,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,oaAAA,iWAuBvC,KAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const THeadItem: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Accordion: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Breadcrumb: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -49,7 +49,7 @@ function InputCheckbox(props) {
|
|
|
49
49
|
}, [field.value]);
|
|
50
50
|
return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props, { name: props.name, children: (0, jsx_runtime_1.jsx)(S.InputCheckbox, { children: (0, jsx_runtime_1.jsx)("div", { className: 'list-radios', children: props.options.map(function (option, index) {
|
|
51
51
|
var _a;
|
|
52
|
-
return ((0, jsx_runtime_1.jsxs)("label", { htmlFor: props.name + index, children: [(0, jsx_runtime_1.jsx)("input", __assign({ id: props.name + index }, field, { checked: (_a = field === null || field === void 0 ? void 0 : field.value) === null || _a === void 0 ? void 0 : _a.find(function (v) { return v === option.value; }), type: 'checkbox', value: option.value })), option.label] }, option.value));
|
|
52
|
+
return ((0, jsx_runtime_1.jsxs)("label", { htmlFor: props.name + index, children: [(0, jsx_runtime_1.jsx)("input", __assign({ id: props.name + index }, field, { checked: (_a = field === null || field === void 0 ? void 0 : field.value) === null || _a === void 0 ? void 0 : _a.find(function (v) { return v === option.value; }), type: 'checkbox', value: option.value })), (0, jsx_runtime_1.jsx)("span", { dangerouslySetInnerHTML: { __html: option.label } })] }, option.value));
|
|
53
53
|
}) }) }) })));
|
|
54
54
|
}
|
|
55
55
|
exports.InputCheckbox = InputCheckbox;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/checkbox/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAwC;AACxC,iCAAiC;AAEjC,kDAA+C;AAE/C,0CAA6B;AAQ7B,SAAgB,aAAa,CAAC,KAAyB;IAC/C,IAAA,KAAsB,IAAA,iBAAQ,EAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,EAAnD,KAAK,QAAA,EAAE,CAAC,QAAA,EAAE,OAAO,QAAkC,CAAA;IAE1D,IAAA,iBAAS,EAAC;QACR,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC9B,OAAO,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QACxB,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAA;IAEjB,OAAO,CACL,uBAAC,4BAAY,eAAK,KAAK,IAAE,IAAI,EAAE,KAAK,CAAC,IAAI,YACvC,uBAAC,CAAC,CAAC,aAAa,cACd,gCAAK,SAAS,EAAC,aAAa,YACzB,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,UAAC,MAAM,EAAE,KAAK;;oBAAK,OAAA,CACpC,mCAA0B,OAAO,EAAE,KAAK,CAAC,IAAI,GAAG,KAAK,aACnD,2CACE,EAAE,EAAE,KAAK,CAAC,IAAI,GAAG,KAAK,IAClB,KAAK,IACT,OAAO,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,0CAAE,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,KAAK,MAAM,CAAC,KAAK,EAAlB,CAAkB,CAAC,EACtD,IAAI,EAAC,UAAU,EACf,KAAK,EAAE,MAAM,CAAC,KAAK,IACnB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/checkbox/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAwC;AACxC,iCAAiC;AAEjC,kDAA+C;AAE/C,0CAA6B;AAQ7B,SAAgB,aAAa,CAAC,KAAyB;IAC/C,IAAA,KAAsB,IAAA,iBAAQ,EAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,EAAnD,KAAK,QAAA,EAAE,CAAC,QAAA,EAAE,OAAO,QAAkC,CAAA;IAE1D,IAAA,iBAAS,EAAC;QACR,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC9B,OAAO,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QACxB,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAA;IAEjB,OAAO,CACL,uBAAC,4BAAY,eAAK,KAAK,IAAE,IAAI,EAAE,KAAK,CAAC,IAAI,YACvC,uBAAC,CAAC,CAAC,aAAa,cACd,gCAAK,SAAS,EAAC,aAAa,YACzB,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,UAAC,MAAM,EAAE,KAAK;;oBAAK,OAAA,CACpC,mCAA0B,OAAO,EAAE,KAAK,CAAC,IAAI,GAAG,KAAK,aACnD,2CACE,EAAE,EAAE,KAAK,CAAC,IAAI,GAAG,KAAK,IAClB,KAAK,IACT,OAAO,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,0CAAE,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,KAAK,MAAM,CAAC,KAAK,EAAlB,CAAkB,CAAC,EACtD,IAAI,EAAC,UAAU,EACf,KAAK,EAAE,MAAM,CAAC,KAAK,IACnB,EAEF,iCAAM,uBAAuB,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,GAAI,KATjD,MAAM,CAAC,KAAK,CAUhB,CACT,CAAA;iBAAA,CAAC,GACE,GACU,IACL,CAChB,CAAA;AACH,CAAC;AA9BD,sCA8BC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const InputCheckbox: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -81,8 +81,8 @@ function DynamicFormHandler(props) {
|
|
|
81
81
|
var _this = this;
|
|
82
82
|
var queryKEY = props.getDetails && props.getDetails.key && props.getDetails.key(props.tableItem);
|
|
83
83
|
function fetcher() {
|
|
84
|
-
var _a;
|
|
85
84
|
return __awaiter(this, void 0, void 0, function () {
|
|
85
|
+
var _a;
|
|
86
86
|
return __generator(this, function (_b) {
|
|
87
87
|
return [2 /*return*/, (_a = props === null || props === void 0 ? void 0 : props.getDetails) === null || _a === void 0 ? void 0 : _a.fetcher(props.tableItem)];
|
|
88
88
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const DynamiFormHandler: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const FormHandler: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const ErrorMessage: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { InputProps } from '../interfaces.js';
|
|
2
|
-
export declare function InputControl({ name, label, loading, children }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function InputControl({ icon, name, label, loading, children }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -32,10 +32,10 @@ var error_1 = require("./error/index.js");
|
|
|
32
32
|
var loader_input_1 = require("./loader-input/index.js");
|
|
33
33
|
var S = __importStar(require("./styles.js"));
|
|
34
34
|
function InputControl(_a) {
|
|
35
|
-
var name = _a.name, label = _a.label, loading = _a.loading, children = _a.children;
|
|
35
|
+
var icon = _a.icon, name = _a.name, label = _a.label, loading = _a.loading, children = _a.children;
|
|
36
36
|
var errors = (0, formik_1.useFormikContext)().errors;
|
|
37
37
|
var error = errors[name];
|
|
38
|
-
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: "input-control-".concat(name), children: (0, jsx_runtime_1.jsxs)(S.InputControl, { "$loading": loading, "$error": !!
|
|
38
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: "input-control-".concat(name), children: (0, jsx_runtime_1.jsxs)(S.InputControl, { "$loading": loading, "$error": !!error, className: 'input_control', "$inputIconSize": (icon === null || icon === void 0 ? void 0 : icon.size) || 20, "$inputIconDirection": (icon === null || icon === void 0 ? void 0 : icon.direction) || 'left', children: [label && (0, jsx_runtime_1.jsx)(label_1.Label, { inputId: name, label: label }), (0, jsx_runtime_1.jsxs)("div", { className: 'input-content', children: [loading && (0, jsx_runtime_1.jsx)(loader_input_1.LoaderInput, {}), icon && ((0, jsx_runtime_1.jsx)("div", { className: 'input-icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: icon.name, fill: icon.color }) })), (0, jsx_runtime_1.jsx)("div", { className: 'input-wrapper', children: children })] }), error && (0, jsx_runtime_1.jsx)(error_1.ErrorMessage, { error: error })] }) }));
|
|
39
39
|
}
|
|
40
40
|
exports.InputControl = InputControl;
|
|
41
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-control/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAyC;AAEzC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-control/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAyC;AAEzC,2BAAkC;AAClC,iCAA+B;AAC/B,iCAAsC;AACtC,+CAA4C;AAI5C,0CAA6B;AAE7B,SAAgB,YAAY,CAAC,EAAoD;QAAlD,IAAI,UAAA,EAAE,IAAI,UAAA,EAAE,KAAK,WAAA,EAAE,OAAO,aAAA,EAAE,QAAQ,cAAA;IACzD,IAAA,MAAM,GAAK,IAAA,yBAAgB,GAAE,OAAvB,CAAuB;IAErC,IAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;IAE1B,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAE,wBAAiB,IAAI,CAAE,YAClC,wBAAC,CAAC,CAAC,YAAY,gBACH,OAAO,YACT,CAAC,CAAC,KAAK,EACf,SAAS,EAAC,eAAe,oBACT,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,KAAI,EAAE,yBACX,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS,KAAI,MAAM,aAE7C,KAAK,IAAI,uBAAC,aAAK,IAAC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,GAAI,EAEhD,iCAAK,SAAS,EAAC,eAAe,aAC3B,OAAO,IAAI,uBAAC,0BAAW,KAAG,EAC1B,IAAI,IAAI,CACP,gCAAK,SAAS,EAAC,YAAY,YACzB,uBAAC,SAAI,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,GAAI,GACvC,CACP,EAED,gCAAK,SAAS,EAAC,eAAe,YAAE,QAAQ,GAAO,IAC3C,EAEL,KAAK,IAAI,uBAAC,oBAAY,IAAC,KAAK,EAAE,KAAK,GAAI,IACzB,GACX,CACT,CAAA;AACH,CAAC;AA/BD,oCA+BC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Label: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const LoaderInput: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
interface IInputStyleProps {
|
|
3
|
-
$loading?: boolean;
|
|
4
4
|
$error?: boolean;
|
|
5
|
+
$loading?: boolean;
|
|
6
|
+
$inputIconSize: number;
|
|
7
|
+
$inputIconDirection?: 'left' | 'right';
|
|
5
8
|
}
|
|
6
9
|
export declare const InputControl: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
10
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
@@ -9,6 +9,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.InputControl = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.InputControl = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n margin-bottom: 10px;\n position: relative;\n\n .input-content {\n position: relative;\n }\n\n .eye .icon svg {\n fill: ", ";\n }\n\n input,\n select,\n textarea {\n border: 0;\n background-color: #fff;\n color: ", ";\n padding: 0 10px;\n width: 100%;\n position: relative;\n display: flex;\n height: 40px;\n font-weight: 400;\n border: 1px solid ", ";\n border-radius: 4px;\n font-size: 14px;\n outline: transparent;\n\n &::placeholder {\n font-weight: 400;\n color: ", ";\n }\n }\n\n textarea {\n height: 120px;\n padding-top: 20px;\n padding-bottom: 20px;\n }\n\n input::placeholder {\n color: ", ";\n }\n\n textarea::placeholder {\n color: ", ";\n }\n\n input:not([type='color']):read-only {\n opacity: 0.6;\n cursor: not-allowed;\n }\n"], ["\n width: 100%;\n margin-bottom: 10px;\n position: relative;\n\n .input-content {\n position: relative;\n }\n\n .eye .icon svg {\n fill: ", ";\n }\n\n input,\n select,\n textarea {\n border: 0;\n background-color: #fff;\n color: ", ";\n padding: 0 10px;\n width: 100%;\n position: relative;\n display: flex;\n height: 40px;\n font-weight: 400;\n border: 1px solid ", ";\n border-radius: 4px;\n font-size: 14px;\n outline: transparent;\n\n &::placeholder {\n font-weight: 400;\n color: ", ";\n }\n }\n\n textarea {\n height: 120px;\n padding-top: 20px;\n padding-bottom: 20px;\n }\n\n input::placeholder {\n color: ", ";\n }\n\n textarea::placeholder {\n color: ", ";\n }\n\n input:not([type='color']):read-only {\n opacity: 0.6;\n cursor: not-allowed;\n }\n"])), function (props) { return (props.$error ? 'red !important' : '#526484'); }, function (props) { return (props.$error ? 'red' : '#111'); }, function (props) { return (props.$error ? 'red' : '#ccc'); }, function (props) { return (props.$error ? 'red' : '#828282'); }, function (props) { return props.theme['grey-dark']; }, function (props) { return props.theme['grey-dark']; });
|
|
12
|
+
exports.InputControl = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n margin-bottom: 10px;\n position: relative;\n\n .input-content {\n position: relative;\n }\n\n .eye .icon svg {\n fill: ", ";\n }\n\n .input-icon {\n position: absolute;\n z-index: 2;\n left: ", ";\n right: ", ";\n top: 50%;\n transform: translateY(-50%);\n\n svg {\n width: 100%;\n height: auto;\n max-width: ", ";\n }\n }\n\n input,\n select,\n textarea {\n border: 0;\n background-color: #fff;\n color: ", ";\n padding: 0 10px;\n width: 100%;\n position: relative;\n display: flex;\n height: 40px;\n font-weight: 400;\n border: 1px solid ", ";\n border-radius: 4px;\n font-size: 14px;\n outline: transparent;\n\n &::placeholder {\n font-weight: 400;\n color: ", ";\n }\n }\n\n .input-icon + .input-wrapper {\n input,\n select,\n textarea {\n padding-left: ", ";\n padding-right: ", ";\n }\n }\n\n textarea {\n height: 120px;\n padding-top: 20px;\n padding-bottom: 20px;\n }\n\n input::placeholder {\n color: ", ";\n }\n\n textarea::placeholder {\n color: ", ";\n }\n\n input:not([type='color']):read-only {\n opacity: 0.6;\n cursor: not-allowed;\n }\n"], ["\n width: 100%;\n margin-bottom: 10px;\n position: relative;\n\n .input-content {\n position: relative;\n }\n\n .eye .icon svg {\n fill: ", ";\n }\n\n .input-icon {\n position: absolute;\n z-index: 2;\n left: ", ";\n right: ", ";\n top: 50%;\n transform: translateY(-50%);\n\n svg {\n width: 100%;\n height: auto;\n max-width: ", ";\n }\n }\n\n input,\n select,\n textarea {\n border: 0;\n background-color: #fff;\n color: ", ";\n padding: 0 10px;\n width: 100%;\n position: relative;\n display: flex;\n height: 40px;\n font-weight: 400;\n border: 1px solid ", ";\n border-radius: 4px;\n font-size: 14px;\n outline: transparent;\n\n &::placeholder {\n font-weight: 400;\n color: ", ";\n }\n }\n\n .input-icon + .input-wrapper {\n input,\n select,\n textarea {\n padding-left: ", ";\n padding-right: ", ";\n }\n }\n\n textarea {\n height: 120px;\n padding-top: 20px;\n padding-bottom: 20px;\n }\n\n input::placeholder {\n color: ", ";\n }\n\n textarea::placeholder {\n color: ", ";\n }\n\n input:not([type='color']):read-only {\n opacity: 0.6;\n cursor: not-allowed;\n }\n"])), function (props) { return (props.$error ? 'red !important' : '#526484'); }, function (props) { return (props.$inputIconDirection === 'left' ? '16px' : 'unset'); }, function (props) { return (props.$inputIconDirection === 'right' ? '16px' : 'unset'); }, function (props) { return props.$inputIconSize + 'px'; }, function (props) { return (props.$error ? 'red' : '#111'); }, function (props) { return (props.$error ? 'red' : '#ccc'); }, function (props) { return (props.$error ? 'red' : '#828282'); }, function (props) { return (props.$inputIconDirection === 'left' ? props.$inputIconSize + 20 + 'px' : '16px'); }, function (props) { return (props.$inputIconDirection === 'right' ? props.$inputIconSize + 20 + 'px' : '16px'); }, function (props) { return props.theme['grey-dark']; }, function (props) { return props.theme['grey-dark']; });
|
|
13
13
|
var templateObject_1;
|
|
14
14
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-control/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-control/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AASzB,QAAA,YAAY,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,0xCAAkB,uJAU/C,EAAwD,iFAMxD,EAAoE,gBACnE,EAAqE,6HAO/D,EAAsC,8GAS5C,EAA0C,0JAO/B,EAA0C,6IAOnD,EAA6C,kHAQtC,EAA6F,0BAC5F,EAA8F,kJAWxG,EAAmC,kDAInC,EAAmC,uGAO/C,KApEW,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC,EAA7C,CAA6C,EAMxD,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,mBAAmB,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,EAAzD,CAAyD,EACnE,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,mBAAmB,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,EAA1D,CAA0D,EAO/D,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,cAAc,GAAG,IAAI,EAA3B,CAA2B,EAS5C,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAA/B,CAA+B,EAO/B,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAA/B,CAA+B,EAOnD,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,EAAlC,CAAkC,EAQtC,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,mBAAmB,KAAK,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,EAAlF,CAAkF,EAC5F,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,mBAAmB,KAAK,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,EAAnF,CAAmF,EAWxG,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,EAAxB,CAAwB,EAInC,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,EAAxB,CAAwB,EAO/C"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const InputDate: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const FileCard: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const InputFile: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const InputPassword: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const InputRadio: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const SelectWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const LoadingScreen: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const NavLinks: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const MenuMobile: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Top: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Image: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Toast: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const ToastItem: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -43,9 +43,9 @@ exports.loadFile = void 0;
|
|
|
43
43
|
var system_1 = require("../../../system/index.js");
|
|
44
44
|
var axios_1 = __importDefault(require("axios"));
|
|
45
45
|
function loadFile(data) {
|
|
46
|
-
var _a;
|
|
47
46
|
return __awaiter(this, void 0, void 0, function () {
|
|
48
47
|
var token, response, type, blob, url, link;
|
|
48
|
+
var _a;
|
|
49
49
|
return __generator(this, function (_b) {
|
|
50
50
|
switch (_b.label) {
|
|
51
51
|
case 0: return [4 /*yield*/, ((_a = system_1.container.get(system_1.InfraTypes.storage).get('token')) === null || _a === void 0 ? void 0 : _a.value)];
|
|
@@ -39,11 +39,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.uploadFile = void 0;
|
|
40
40
|
var system_1 = require("../../../system/index.js");
|
|
41
41
|
function uploadFile(_a) {
|
|
42
|
-
|
|
43
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
42
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
44
43
|
var filesToArray, formData, response;
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
var files = _b.files;
|
|
45
|
+
return __generator(this, function (_c) {
|
|
46
|
+
switch (_c.label) {
|
|
47
47
|
case 0:
|
|
48
48
|
if (!files || files.length === 0) {
|
|
49
49
|
return [2 /*return*/, []];
|
|
@@ -55,7 +55,7 @@ function uploadFile(_a) {
|
|
|
55
55
|
});
|
|
56
56
|
return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteFile).upload(formData)];
|
|
57
57
|
case 1:
|
|
58
|
-
response =
|
|
58
|
+
response = _c.sent();
|
|
59
59
|
return [2 /*return*/, response.items];
|
|
60
60
|
}
|
|
61
61
|
});
|