infinity-forge 0.5.2 → 0.5.4
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/system/infra/http/axios-http-client.js +0 -1
- package/dist/system/infra/http/axios-http-client.js.map +1 -1
- package/dist/system/presentation/context/auth/context.js +2 -1
- package/dist/system/presentation/context/auth/context.js.map +1 -1
- package/package.json +1 -1
- package/dist/system/domain/generics/return-type.d.ts +0 -8
- package/dist/system/domain/generics/return-type.js +0 -3
- package/dist/system/domain/generics/return-type.js.map +0 -1
- package/dist/system/presentation/configs/menu.d.ts +0 -16
- package/dist/system/presentation/configs/menu.js +0 -138
- package/dist/system/presentation/configs/menu.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/index.d.ts +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/index.js +0 -33
- package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/index.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/styles.d.ts +0 -4
- package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/styles.js +0 -14
- package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/styles.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.d.ts +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.js +0 -33
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/styles.d.ts +0 -4
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/styles.js +0 -14
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/styles.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/index.d.ts +0 -2
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/index.js +0 -56
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/index.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/interfaces.d.ts +0 -7
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/interfaces.js +0 -3
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/interfaces.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/styles.d.ts +0 -8
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/styles.js +0 -14
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/styles.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/query/index.d.ts +0 -6
- package/dist/system/presentation/hooks/ui/use-table/query/index.js +0 -30
- package/dist/system/presentation/hooks/ui/use-table/query/index.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/query/interfaces.d.ts +0 -33
- package/dist/system/presentation/hooks/ui/use-table/query/interfaces.js +0 -3
- package/dist/system/presentation/hooks/ui/use-table/query/interfaces.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/query/service.d.ts +0 -25
- package/dist/system/presentation/hooks/ui/use-table/query/service.js +0 -113
- package/dist/system/presentation/hooks/ui/use-table/query/service.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/utils/buffer.d.ts +0 -3
- package/dist/system/presentation/hooks/ui/use-table/utils/buffer.js +0 -32
- package/dist/system/presentation/hooks/ui/use-table/utils/buffer.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/utils/filter-empty-values.d.ts +0 -1
- package/dist/system/presentation/hooks/ui/use-table/utils/filter-empty-values.js +0 -22
- package/dist/system/presentation/hooks/ui/use-table/utils/filter-empty-values.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/utils/index.d.ts +0 -4
- package/dist/system/presentation/hooks/ui/use-table/utils/index.js +0 -21
- package/dist/system/presentation/hooks/ui/use-table/utils/index.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/utils/is-object-empty.d.ts +0 -1
- package/dist/system/presentation/hooks/ui/use-table/utils/is-object-empty.js +0 -12
- package/dist/system/presentation/hooks/ui/use-table/utils/is-object-empty.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/utils/update-route.d.ts +0 -6
- package/dist/system/presentation/hooks/ui/use-table/utils/update-route.js +0 -31
- package/dist/system/presentation/hooks/ui/use-table/utils/update-route.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -98,7 +98,6 @@ var AxiosHttpClient = /** @class */ (function () {
|
|
|
98
98
|
case domain_1.HttpStatusCode.conflict: throw new conflict_error_1.ConflictError({ message: data.message, code: '409' });
|
|
99
99
|
case domain_1.HttpStatusCode.badRequest: throw new domain_1.BadRequestError({ message: data.message, code: '400' });
|
|
100
100
|
default: {
|
|
101
|
-
axios_1.default.post("https://logdofernando/ApiDeLogDoFernando", data);
|
|
102
101
|
throw new domain_1.BadRequestError({ message: "Internal Server Error", code: '500' });
|
|
103
102
|
}
|
|
104
103
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axios-http-client.js","sourceRoot":"","sources":["../../../../src/system/infra/http/axios-http-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAsC;AAEtC,gDAAyB;AAEzB,0CAQwB;AACxB,mGAAgG;AAGhG;IAAA;
|
|
1
|
+
{"version":3,"file":"axios-http-client.js","sourceRoot":"","sources":["../../../../src/system/infra/http/axios-http-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAsC;AAEtC,gDAAyB;AAEzB,0CAQwB;AACxB,mGAAgG;AAGhG;IAAA;IA0CA,CAAC;IAzCO,iCAAO,GAAb,UAAc,OAAoB;;;;;;wBAC1B,MAAM,GAAG,OAAO,CAAC,MAAM,CAAA;wBAEvB,OAAO,GAAG,OAAO,CAAC,IAAI;4BAC1B,CAAC,CAAC,MAAM,CAA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7F,KAAK,uBAAc,CAAC,UAAU,CAAC,CAAC,MAAM,IAAI,wBAAe,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAA;4BAEjG,OAAO,CAAC,CAAC,CAAC;gCACR,MAAM,IAAI,wBAAe,CAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAA;4BAC9E,CAAC;wBACH,CAAC;;;;;KACF;IAzCU,eAAe;QAD3B,IAAA,sBAAU,GAAE;OACA,eAAe,CA0C3B;IAAD,sBAAC;CAAA,AA1CD,IA0CC;AA1CY,0CAAe"}
|
|
@@ -119,8 +119,9 @@ function AuthAdminProvider(_a) {
|
|
|
119
119
|
(0, react_query_1.useQuery)(__assign(__assign({ queryKey: ["load_user"], queryFn: loadUser }, system_1.callApiOneTime), { retry: 0 }));
|
|
120
120
|
(0, react_1.useEffect)(function () {
|
|
121
121
|
axios_1.default.interceptors.response.use(function (r) { return r; }, function (err) {
|
|
122
|
+
var _a;
|
|
122
123
|
if (err instanceof axios_1.AxiosError) {
|
|
123
|
-
if (err.response.status === 401) {
|
|
124
|
+
if (((_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.status) === 401) {
|
|
124
125
|
signOut();
|
|
125
126
|
}
|
|
126
127
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../src/system/presentation/context/auth/context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAsE;AAEtE,6CAAyC;AACzC,qDAAgE;AAEhE,2BAAoC;AACpC,mCAA6I;AAI7I,IAAM,WAAW,GAAG,IAAA,qBAAa,EAAC,EAAsB,CAAC,CAAA;AAEzD,SAAS,iBAAiB,CAAC,EAA2C;QAAzC,Q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UAAC,CAAC,IAAK,OAAA,CAAC,EAAD,CAAC,EACR,UAAC,GAAG;;YACF,IAAI,GAAG,YAAY,kBAAU,EAAE,CAAC;gBAC9B,IAAI,CAAA,MAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,QAAQ,0CAAE,MAAM,MAAK,GAAG,EAAE,CAAC;oBAClC,OAAO,EAAE,CAAA;gBACX,CAAC;YACH,CAAC;YAED,MAAM,GAAG,CAAA;QACX,CAAC,CACF,CAAA;IACH,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,CACL,wBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,IAAI,MAAA,EAAE,MAAM,QAAA,EAAE,OAAO,SAAA,EAAE,aACnD,IAAI,KAAK,SAAS,IAAI,uBAAC,kBAAa,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAC,MAAM,GAAG,EAE9D,QAAQ,IACY,CACxB,CAAA;AACH,CAAC;AAWQ,8CAAiB;AAT1B,SAAS,YAAY;IACnB,IAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,WAAW,CAAC,CAAA;IAEvC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAA;IACtE,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC;AAE2B,oCAAY"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"return-type.js","sourceRoot":"","sources":["../../../../src/system/domain/generics/return-type.ts"],"names":[],"mappings":""}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IconsNames } from '../../../ui/index.js';
|
|
2
|
-
export interface IMenu {
|
|
3
|
-
id: string;
|
|
4
|
-
titulo: string;
|
|
5
|
-
icon: IconsNames;
|
|
6
|
-
href?: string;
|
|
7
|
-
menuItems?: IMenu[];
|
|
8
|
-
}
|
|
9
|
-
export interface ISideBarContent {
|
|
10
|
-
id: 1;
|
|
11
|
-
label: string;
|
|
12
|
-
items: IMenu[];
|
|
13
|
-
}
|
|
14
|
-
export declare const MENU: IMenu[];
|
|
15
|
-
export declare const AJUDA_SUPORTE: IMenu[];
|
|
16
|
-
export declare const SIDE_BAR_ITEMS: ISideBarContent[];
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SIDE_BAR_ITEMS = exports.AJUDA_SUPORTE = exports.MENU = void 0;
|
|
4
|
-
exports.MENU = [
|
|
5
|
-
{
|
|
6
|
-
id: '1',
|
|
7
|
-
titulo: 'Produtos',
|
|
8
|
-
icon: 'IconShopping',
|
|
9
|
-
menuItems: [
|
|
10
|
-
{
|
|
11
|
-
id: '1',
|
|
12
|
-
titulo: 'Produto 1',
|
|
13
|
-
icon: 'IconExclamation',
|
|
14
|
-
menuItems: [
|
|
15
|
-
{
|
|
16
|
-
id: '1',
|
|
17
|
-
titulo: 'Produto 1',
|
|
18
|
-
icon: 'IconExclamation',
|
|
19
|
-
href: '#produto-1',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
id: '2',
|
|
23
|
-
titulo: 'Produto 2',
|
|
24
|
-
icon: 'IconExclamation',
|
|
25
|
-
href: '#produto-2',
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
id: '3',
|
|
29
|
-
titulo: 'Produto 3',
|
|
30
|
-
icon: 'IconExclamation',
|
|
31
|
-
menuItems: [
|
|
32
|
-
{
|
|
33
|
-
id: '1',
|
|
34
|
-
titulo: 'Produto 1',
|
|
35
|
-
icon: 'IconExclamation',
|
|
36
|
-
href: '#produto-1',
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
id: '2',
|
|
40
|
-
titulo: 'Produto 2',
|
|
41
|
-
icon: 'IconExclamation',
|
|
42
|
-
href: '#produto-2',
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
id: '3',
|
|
46
|
-
titulo: 'Produto 3',
|
|
47
|
-
icon: 'IconExclamation',
|
|
48
|
-
href: '#produto-3',
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
id: '2',
|
|
56
|
-
titulo: 'Produto 2',
|
|
57
|
-
icon: 'IconExclamation',
|
|
58
|
-
href: '#produto-2',
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
id: '3',
|
|
62
|
-
titulo: 'Produto 3',
|
|
63
|
-
icon: 'IconExclamation',
|
|
64
|
-
href: '#produto-3',
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
id: '2',
|
|
70
|
-
titulo: 'Sobre nós',
|
|
71
|
-
icon: 'IconExclamation',
|
|
72
|
-
href: '#sobre-nos',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
id: '3',
|
|
76
|
-
titulo: 'Arquivos',
|
|
77
|
-
icon: 'IconFile',
|
|
78
|
-
menuItems: [
|
|
79
|
-
{
|
|
80
|
-
id: '1',
|
|
81
|
-
titulo: 'Produto 1',
|
|
82
|
-
icon: 'IconExclamation',
|
|
83
|
-
href: '#produto-1',
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
id: '2',
|
|
87
|
-
titulo: 'Produto 2',
|
|
88
|
-
icon: 'IconExclamation',
|
|
89
|
-
href: '#produto-2',
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
id: '3',
|
|
93
|
-
titulo: 'Produto 3',
|
|
94
|
-
icon: 'IconExclamation',
|
|
95
|
-
href: '#produto-3',
|
|
96
|
-
},
|
|
97
|
-
],
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
id: '5',
|
|
101
|
-
titulo: 'Galeria',
|
|
102
|
-
icon: 'IconImage',
|
|
103
|
-
href: '#galeria',
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
id: '5',
|
|
107
|
-
titulo: 'Calendário',
|
|
108
|
-
icon: 'IconCalendar',
|
|
109
|
-
href: '#calendario',
|
|
110
|
-
},
|
|
111
|
-
];
|
|
112
|
-
exports.AJUDA_SUPORTE = [
|
|
113
|
-
{
|
|
114
|
-
id: '1',
|
|
115
|
-
titulo: 'Chat',
|
|
116
|
-
icon: 'IconChat',
|
|
117
|
-
href: '#chat',
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
id: '2',
|
|
121
|
-
titulo: 'FAQ',
|
|
122
|
-
icon: 'IconExclamation',
|
|
123
|
-
href: '#faq',
|
|
124
|
-
},
|
|
125
|
-
];
|
|
126
|
-
exports.SIDE_BAR_ITEMS = [
|
|
127
|
-
{
|
|
128
|
-
id: 1,
|
|
129
|
-
label: 'MENU',
|
|
130
|
-
items: exports.MENU,
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
id: 1,
|
|
134
|
-
label: 'AJUDA E SUPORTE',
|
|
135
|
-
items: exports.AJUDA_SUPORTE,
|
|
136
|
-
},
|
|
137
|
-
];
|
|
138
|
-
//# sourceMappingURL=menu.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../../../../src/system/presentation/configs/menu.ts"],"names":[],"mappings":";;;AAgBa,QAAA,IAAI,GAAY;IAC3B;QACE,EAAE,EAAE,GAAG;QACP,MAAM,EAAE,UAAU;QAClB,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE;YACT;gBACE,EAAE,EAAE,GAAG;gBACP,MAAM,EAAE,WAAW;gBACnB,IAAI,EAAE,iBAAiB;gBACvB,SAAS,EAAE;oBACT;wBACE,EAAE,EAAE,GAAG;wBACP,MAAM,EAAE,WAAW;wBACnB,IAAI,EAAE,iBAAiB;wBACvB,IAAI,EAAE,YAAY;qBACnB;oBACD;wBACE,EAAE,EAAE,GAAG;wBACP,MAAM,EAAE,WAAW;wBACnB,IAAI,EAAE,iBAAiB;wBACv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gBACvB,IAAI,EAAE,YAAY;aACnB;SACF;KACF;IACD;QACE,EAAE,EAAE,GAAG;QACP,MAAM,EAAE,SAAS;QACjB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,EAAE,EAAE,GAAG;QACP,MAAM,EAAE,YAAY;QACpB,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,aAAa;KACpB;CACF,CAAA;AAEY,QAAA,aAAa,GAAY;IACpC;QACE,EAAE,EAAE,GAAG;QACP,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,OAAO;KACd;IACD;QACE,EAAE,EAAE,GAAG;QACP,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,MAAM;KACb;CACF,CAAA;AAEY,QAAA,cAAc,GAAsB;IAC/C;QACE,EAAE,EAAE,CAAC;QACL,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,YAAI;KACZ;IACD;QACE,EAAE,EAAE,CAAC;QACL,KAAK,EAAE,iBAAiB;QACxB,KAAK,EAAE,qBAAa;KACrB;CACF,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ActiveIndicator(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,33 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.ActiveIndicator = void 0;
|
|
27
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var S = __importStar(require("./styles.js"));
|
|
29
|
-
function ActiveIndicator() {
|
|
30
|
-
return (0, jsx_runtime_1.jsx)(S.ActiveIndicator, { className: "active-indicator" });
|
|
31
|
-
}
|
|
32
|
-
exports.ActiveIndicator = ActiveIndicator;
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/active-indicator/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAA6B;AAE7B,SAAgB,eAAe;IAC3B,OAAO,uBAAC,CAAC,CAAC,eAAe,IAAC,SAAS,EAAC,kBAAkB,GAAE,CAAA;AAC5D,CAAC;AAFD,0CAEC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const ActiveIndicator: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
-
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
|
-
}, never>>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ActiveIndicator = void 0;
|
|
11
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.ActiveIndicator = (0, styled_components_1.default)("div")(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n width: 14px;\n height: 14px;\n border: 3px solid #fff;\n border-radius: 100%;\n background-color: #000;\n"], ["\n position: absolute;\n width: 14px;\n height: 14px;\n border: 3px solid #fff;\n border-radius: 100%;\n background-color: #000;\n"])));
|
|
13
|
-
var templateObject_1;
|
|
14
|
-
//# sourceMappingURL=styles.js.map
|
package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/styles.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/active-indicator/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAuC;AAE1B,QAAA,eAAe,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,6MAAA,0IAO3C,KAAC"}
|
package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ActiveIndicator(): import("react/jsx-runtime").JSX.Element;
|
package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.js
DELETED
|
@@ -1,33 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.ActiveIndicator = void 0;
|
|
27
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var S = __importStar(require("./styles.js"));
|
|
29
|
-
function ActiveIndicator() {
|
|
30
|
-
return (0, jsx_runtime_1.jsx)(S.ActiveIndicator, { className: "active-indicator" });
|
|
31
|
-
}
|
|
32
|
-
exports.ActiveIndicator = ActiveIndicator;
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAA6B;AAE7B,SAAgB,eAAe;IAC3B,OAAO,uBAAC,CAAC,CAAC,eAAe,IAAC,SAAS,EAAC,kBAAkB,GAAE,CAAA;AAC5D,CAAC;AAFD,0CAEC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const ActiveIndicator: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
-
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
|
-
}, never>>;
|
package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/styles.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ActiveIndicator = void 0;
|
|
11
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.ActiveIndicator = (0, styled_components_1.default)("div")(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n width: 14px;\n height: 14px;\n border: 3px solid #fff;\n border-radius: 100%;\n background-color: #000;\n"], ["\n position: absolute;\n width: 14px;\n height: 14px;\n border: 3px solid #fff;\n border-radius: 100%;\n background-color: #000;\n"])));
|
|
13
|
-
var templateObject_1;
|
|
14
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAuC;AAE1B,QAAA,eAAe,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,6MAAA,0IAO3C,KAAC"}
|
|
@@ -1,56 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.SearchBar = void 0;
|
|
27
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var react_1 = require("react");
|
|
29
|
-
var router_1 = require("next/router");
|
|
30
|
-
var ui_1 = require("../../../../../../../ui/index.js");
|
|
31
|
-
var utils_1 = require("../../utils/index.js");
|
|
32
|
-
var active_indicator_1 = require("../active-indicator/index.js");
|
|
33
|
-
var S = __importStar(require("./styles.js"));
|
|
34
|
-
function SearchBar(_a) {
|
|
35
|
-
var _b, _c, _d;
|
|
36
|
-
var isFetching = _a.isFetching;
|
|
37
|
-
var router = (0, router_1.useRouter)();
|
|
38
|
-
var _e = (0, react_1.useState)(((_b = router.query) === null || _b === void 0 ? void 0 : _b.search) || ""), search = _e[0], setSearch = _e[1];
|
|
39
|
-
var _f = (0, react_1.useState)(false), error = _f[0], setError = _f[1];
|
|
40
|
-
function handleChange(ev) {
|
|
41
|
-
setSearch(ev.target.value);
|
|
42
|
-
(0, utils_1.updateRoute)({ params: { search: ev.target.value }, router: router });
|
|
43
|
-
}
|
|
44
|
-
(0, react_1.useEffect)(function () {
|
|
45
|
-
if (search.length > 0) {
|
|
46
|
-
setError(false);
|
|
47
|
-
}
|
|
48
|
-
}, [search]);
|
|
49
|
-
(0, react_1.useEffect)(function () {
|
|
50
|
-
var _a;
|
|
51
|
-
setSearch(((_a = router.query) === null || _a === void 0 ? void 0 : _a.search) || "");
|
|
52
|
-
}, [(_c = router.query) === null || _c === void 0 ? void 0 : _c.search]);
|
|
53
|
-
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: "search-table", children: (0, jsx_runtime_1.jsx)(S.SearchBar, { "$error": !!error, children: (0, jsx_runtime_1.jsx)("div", { className: "search", children: ((_d = router.query) === null || _d === void 0 ? void 0 : _d.search) && (0, jsx_runtime_1.jsx)(active_indicator_1.ActiveIndicator, {}) }) }) }));
|
|
54
|
-
}
|
|
55
|
-
exports.SearchBar = SearchBar;
|
|
56
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/searchbar/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA4C;AAE5C,sCAAwC;AAExC,2BAA6B;AAC7B,qCAA0C;AAC1C,wDAAsD;AAItD,0CAA8B;AAE9B,SAAgB,SAAS,CAAC,EAA2B;;QAAxB,UAAU,gBAAA;IACrC,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAC;IAErB,IAAA,KAAsB,IAAA,gBAAQ,EAAC,CAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,MAAM,KAAI,EAAE,CAAC,EAAzD,MAAM,QAAA,EAAE,SAAS,QAAwC,CAAC;IAC3D,IAAA,KAAoB,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAAlC,KAAK,QAAA,EAAE,QAAQ,QAAmB,CAAC;IAE1C,SAAS,YAAY,CAAC,EAAE;QACtB,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAE3B,IAAA,mBAAW,EAAC,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,EAAG,EAAE,MAAM,QAAA,EAAE,CAAC,CAAC;IAChE,CAAC;IAED,IAAA,iBAAS,EAAC;QACR,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACtB,QAAQ,CAAC,KAAK,CAAC,CAAC;QAClB,CAAC;IACH,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,IAAA,iBAAS,EAAC;;QACR,SAAS,CAAC,CAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,MAAM,KAAI,EAAE,CAAC,CAAC;IACxC,CAAC,EAAE,CAAC,MAAA,MAAM,CAAC,KAAK,0CAAE,MAAM,CAAC,CAAC,CAAC;IAE3B,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,cAAc,YACxB,uBAAC,CAAC,CAAC,SAAS,cAAS,CAAC,CAAC,KAAK,YAC1B,gCAAK,SAAS,EAAC,QAAQ,YAGpB,CAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,MAAM,KAAI,uBAAC,kCAAe,KAAG,GACxC,GACM,GACR,CACT,CAAC;AACJ,CAAC;AAjCD,8BAiCC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/searchbar/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface SearchBarStyleProps {
|
|
3
|
-
$error: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const SearchBar: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
|
-
ref?: import("react").Ref<HTMLDivElement>;
|
|
7
|
-
}, SearchBarStyleProps>>;
|
|
8
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.SearchBar = void 0;
|
|
11
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.SearchBar = (0, styled_components_1.default)("div")(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: flex-end;\n\n .active-indicator {\n top: 6px;\n right: 23px;\n z-index: 3;\n }\n\n .MuiSelect-select {\n width: 100px;\n }\n\n .search {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n width: 370px;\n position: relative;\n transition: 0.3;\n\n input {\n padding: 8px 12px;\n z-index: 1;\n position: relative;\n transition: 0.3;\n font-size: 14px;\n }\n\n input::placeholder {\n color: ", ";\n opacity: 1;\n }\n\n button {\n position: absolute;\n right: 0;\n z-index: 2;\n border-radius: 100%;\n }\n }\n"], ["\n display: flex;\n align-items: flex-end;\n\n .active-indicator {\n top: 6px;\n right: 23px;\n z-index: 3;\n }\n\n .MuiSelect-select {\n width: 100px;\n }\n\n .search {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n width: 370px;\n position: relative;\n transition: 0.3;\n\n input {\n padding: 8px 12px;\n z-index: 1;\n position: relative;\n transition: 0.3;\n font-size: 14px;\n }\n\n input::placeholder {\n color: ", ";\n opacity: 1;\n }\n\n button {\n position: absolute;\n right: 0;\n z-index: 2;\n border-radius: 100%;\n }\n }\n"])), function (props) { return (props.$error ? "#d32f2f" : "rgba(0, 0, 0, 0.87)"); });
|
|
13
|
-
var templateObject_1;
|
|
14
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/searchbar/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAuC;AAM1B,QAAA,SAAS,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,kuBAAqB,ugBA+B5C,EAA6D,sJAW3E,KAXc,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,EAAlD,CAAkD,EAW1E"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IResponseGetTableInformations } from "./service.js";
|
|
2
|
-
import { IUseQueryTable } from "./interfaces.js";
|
|
3
|
-
export declare function useQueryTable({ router, tableKey, configs }: IUseQueryTable): {
|
|
4
|
-
tableIsFetching: boolean;
|
|
5
|
-
tableInformations: IResponseGetTableInformations;
|
|
6
|
-
};
|
|
@@ -1,30 +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.useQueryTable = void 0;
|
|
15
|
-
var react_query_1 = require("@tanstack/react-query");
|
|
16
|
-
var service_1 = require("./service.js");
|
|
17
|
-
function useQueryTable(_a) {
|
|
18
|
-
var router = _a.router, tableKey = _a.tableKey, configs = _a.configs;
|
|
19
|
-
var _b = (0, react_query_1.useQuery)(__assign(__assign({}, service_1.configsQuery), { enabled: (configs === null || configs === void 0 ? void 0 : configs.disableFetch) ? false : !!(router === null || router === void 0 ? void 0 : router.isReady), queryKey: ["table-".concat(tableKey), router === null || router === void 0 ? void 0 : router.query], queryFn: function () {
|
|
20
|
-
return (0, service_1.getTableInformations)({ params: router === null || router === void 0 ? void 0 : router.query, tableKey: tableKey });
|
|
21
|
-
} })), data = _b.data, isFetching = _b.isFetching;
|
|
22
|
-
return {
|
|
23
|
-
tableIsFetching: isFetching,
|
|
24
|
-
tableInformations: (configs === null || configs === void 0 ? void 0 : configs.tableData)
|
|
25
|
-
? __assign(__assign({}, service_1.defaultResponseTableInformations), { items: configs === null || configs === void 0 ? void 0 : configs.tableData })
|
|
26
|
-
: data,
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
exports.useQueryTable = useQueryTable;
|
|
30
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/hooks/ui/use-table/query/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qDAAiD;AAEjD,qCAKmB;AAInB,SAAgB,aAAa,CAAC,EAA6C;QAA3C,MAAM,YAAA,EAAE,QAAQ,cAAA,EAAE,OAAO,aAAA;IAEjD,IAAA,KAAuB,IAAA,sBAAQ,wBAChC,sBAAY,KACf,OAAO,EAAE,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,EAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,CAAC,EAC5D,QAAQ,EAAE,CAAC,gBAAS,QAAQ,CAAE,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,CAAC,EAC9C,OAAO,EAAE;YACP,OAAA,IAAA,8BAAoB,EAAC,EAAE,MAAM,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,EAAE,QAAQ,UAAA,EAAE,CAAC;QAAzD,CAAyD,IAC3D,EANM,IAAI,UAAA,EAAE,UAAU,gBAMtB,CAAC;IAEH,OAAO;QACL,eAAe,EAAE,UAAU;QAC3B,iBAAiB,EAAE,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS;YACnC,CAAC,CAAC,sBAAK,0CAAgC,KAAE,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,GAAmC;YACrG,CAAC,CAAC,IAAI;KACT,CAAC;AACJ,CAAC;AAhBD,sCAgBC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { NextRouter } from "next/router";
|
|
2
|
-
import { IConfigurationsTable } from "../interfaces.js";
|
|
3
|
-
export interface IUseQueryTable {
|
|
4
|
-
router?: NextRouter;
|
|
5
|
-
tableKey: string | null;
|
|
6
|
-
configs?: IConfigurationsTable;
|
|
7
|
-
}
|
|
8
|
-
export interface IFilterDate {
|
|
9
|
-
range: boolean;
|
|
10
|
-
endDate?: string;
|
|
11
|
-
startDate?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface IFilterConfigurationsTable {
|
|
14
|
-
date: IFilterDate;
|
|
15
|
-
searchOptions: {
|
|
16
|
-
label: string;
|
|
17
|
-
value: string;
|
|
18
|
-
}[];
|
|
19
|
-
filters: {
|
|
20
|
-
key: string;
|
|
21
|
-
title: string;
|
|
22
|
-
type: string;
|
|
23
|
-
options: {
|
|
24
|
-
label: string;
|
|
25
|
-
value: string;
|
|
26
|
-
}[];
|
|
27
|
-
}[];
|
|
28
|
-
exportFormats: {
|
|
29
|
-
label: string;
|
|
30
|
-
value: string;
|
|
31
|
-
contentType: string;
|
|
32
|
-
}[];
|
|
33
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/hooks/ui/use-table/query/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { ParsedUrlQuery } from 'querystring';
|
|
3
|
-
interface IGetTableService {
|
|
4
|
-
params?: ParsedUrlQuery;
|
|
5
|
-
tableKey: string | null;
|
|
6
|
-
}
|
|
7
|
-
export declare function getTablePayload(params: ParsedUrlQuery | undefined): any;
|
|
8
|
-
export interface IResponseGetTableInformations {
|
|
9
|
-
hasNextPage: boolean;
|
|
10
|
-
hasPreviousPage: boolean;
|
|
11
|
-
items: any[];
|
|
12
|
-
pageIndex: number;
|
|
13
|
-
pageSize: number;
|
|
14
|
-
totalCount: number;
|
|
15
|
-
totalPages: number;
|
|
16
|
-
}
|
|
17
|
-
export declare const defaultResponseTableInformations: IResponseGetTableInformations;
|
|
18
|
-
declare function getTableInformations({ params, tableKey, }: IGetTableService): Promise<IResponseGetTableInformations | undefined>;
|
|
19
|
-
declare const configsQuery: {
|
|
20
|
-
retry: number;
|
|
21
|
-
staleTime: number;
|
|
22
|
-
refetchInterval: number;
|
|
23
|
-
refetchOnWindowFocus: boolean;
|
|
24
|
-
};
|
|
25
|
-
export { configsQuery, getTableInformations };
|