infinity-forge 0.6.93 → 0.6.94
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/pages/index.d.ts +1 -0
- package/dist/system/pages/index.js +18 -0
- package/dist/system/pages/index.js.map +1 -0
- package/dist/system/pages/usuarios/index.d.ts +1 -0
- package/dist/system/pages/usuarios/index.js +57 -0
- package/dist/system/pages/usuarios/index.js.map +1 -0
- package/dist/system/pages/usuarios/styles.d.ts +4 -0
- package/dist/system/pages/usuarios/styles.js +14 -0
- package/dist/system/pages/usuarios/styles.js.map +1 -0
- package/dist/system/presentation/configs/menu.d.ts +16 -0
- package/dist/system/presentation/configs/menu.js +138 -0
- package/dist/system/presentation/configs/menu.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/index.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/index.js +33 -0
- package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/index.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/styles.d.ts +4 -0
- package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/styles.js +14 -0
- package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/styles.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.js +33 -0
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/styles.d.ts +4 -0
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/styles.js +14 -0
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/styles.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/index.d.ts +2 -0
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/index.js +56 -0
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/index.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/interfaces.d.ts +7 -0
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/interfaces.js +3 -0
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/interfaces.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/styles.d.ts +8 -0
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/styles.js +14 -0
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/styles.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/query/index.d.ts +6 -0
- package/dist/system/presentation/hooks/ui/use-table/query/index.js +30 -0
- package/dist/system/presentation/hooks/ui/use-table/query/index.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/query/interfaces.d.ts +33 -0
- package/dist/system/presentation/hooks/ui/use-table/query/interfaces.js +3 -0
- package/dist/system/presentation/hooks/ui/use-table/query/interfaces.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/query/service.d.ts +25 -0
- package/dist/system/presentation/hooks/ui/use-table/query/service.js +113 -0
- package/dist/system/presentation/hooks/ui/use-table/query/service.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/utils/buffer.d.ts +3 -0
- package/dist/system/presentation/hooks/ui/use-table/utils/buffer.js +32 -0
- package/dist/system/presentation/hooks/ui/use-table/utils/buffer.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/utils/filter-empty-values.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/utils/filter-empty-values.js +22 -0
- package/dist/system/presentation/hooks/ui/use-table/utils/filter-empty-values.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/utils/index.d.ts +4 -0
- package/dist/system/presentation/hooks/ui/use-table/utils/index.js +21 -0
- package/dist/system/presentation/hooks/ui/use-table/utils/index.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/utils/is-object-empty.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/utils/is-object-empty.js +12 -0
- package/dist/system/presentation/hooks/ui/use-table/utils/is-object-empty.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/utils/update-route.d.ts +6 -0
- package/dist/system/presentation/hooks/ui/use-table/utils/update-route.js +31 -0
- package/dist/system/presentation/hooks/ui/use-table/utils/update-route.js.map +1 -0
- package/dist/ui/components/form/checkbox/index.d.ts +1 -0
- package/dist/ui/components/form/checkbox/index.js +2 -1
- package/dist/ui/components/form/checkbox/index.js.map +1 -1
- package/dist/ui/components/form/radio/index.d.ts +2 -1
- package/dist/ui/components/form/radio/index.js +16 -3
- package/dist/ui/components/form/radio/index.js.map +1 -1
- package/dist/ui/utils/libs/@tanstack/index.d.ts +1 -0
- package/dist/ui/utils/libs/@tanstack/index.js +18 -0
- package/dist/ui/utils/libs/@tanstack/index.js.map +1 -0
- package/dist/ui/utils/libs/@tanstack/react-query/cached-query.d.ts +6 -0
- package/dist/ui/utils/libs/@tanstack/react-query/cached-query.js +10 -0
- package/dist/ui/utils/libs/@tanstack/react-query/cached-query.js.map +1 -0
- package/dist/ui/utils/libs/@tanstack/react-query/index.d.ts +1 -0
- package/dist/ui/utils/libs/@tanstack/react-query/index.js +18 -0
- package/dist/ui/utils/libs/@tanstack/react-query/index.js.map +1 -0
- package/package.json +85 -85
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './usuarios/index.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./usuarios/index.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/pages/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Usuarios(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.Usuarios = void 0;
|
|
27
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
+
var ui_1 = require("../../../ui/index.js");
|
|
29
|
+
var presentation_1 = require("../../../system/presentation/index.js");
|
|
30
|
+
var S = __importStar(require("./styles.js"));
|
|
31
|
+
function Usuarios() {
|
|
32
|
+
var tableData = {
|
|
33
|
+
configs: { errorMessage: '' },
|
|
34
|
+
tableKey: 'user-table',
|
|
35
|
+
columnsTable: [
|
|
36
|
+
{
|
|
37
|
+
id: '1',
|
|
38
|
+
label: 'Lucas',
|
|
39
|
+
type: 'number',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: '2',
|
|
43
|
+
label: 'Lucas',
|
|
44
|
+
type: 'number',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: '3',
|
|
48
|
+
label: 'Lucas',
|
|
49
|
+
type: 'number',
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
};
|
|
53
|
+
var Table = (0, presentation_1.useTable)(tableData).Table;
|
|
54
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Usuarios', children: (0, jsx_runtime_1.jsx)(S.Usuarios, { children: (0, jsx_runtime_1.jsx)(ui_1.Container, { children: Table }) }) }));
|
|
55
|
+
}
|
|
56
|
+
exports.Usuarios = Usuarios;
|
|
57
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/pages/usuarios/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAuC;AAEvC,sDAAgE;AAEhE,0CAA6B;AAE7B,SAAgB,QAAQ;IACtB,IAAM,SAAS,GAAmB;QAChC,OAAO,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE;QAC7B,QAAQ,EAAE,YAAY;QACtB,YAAY,EAAE;YACZ;gBACE,EAAE,EAAE,GAAG;gBACP,KAAK,EAAE,OAAO;gBACd,IAAI,EAAE,QAAQ;aACf;YACD;gBACE,EAAE,EAAE,GAAG;gBACP,KAAK,EAAE,OAAO;gBACd,IAAI,EAAE,QAAQ;aACf;YACD;gBACE,EAAE,EAAE,GAAG;gBACP,KAAK,EAAE,OAAO;gBACd,IAAI,EAAE,QAAQ;aACf;SACF;KACF,CAAA;IAEO,IAAA,KAAK,GAAK,IAAA,uBAAQ,EAAC,SAAS,CAAC,MAAxB,CAAwB;IAErC,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,UAAU,YACpB,uBAAC,CAAC,CAAC,QAAQ,cACT,uBAAC,cAAS,cAAE,KAAK,GAAa,GACnB,GACP,CACT,CAAA;AACH,CAAC;AAhCD,4BAgCC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Usuarios: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
3
|
+
ref?: import("react").Ref<HTMLElement>;
|
|
4
|
+
}, never>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
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.Usuarios = void 0;
|
|
11
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
+
exports.Usuarios = (0, styled_components_1.default)('section')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
|
|
13
|
+
var templateObject_1;
|
|
14
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/system/pages/usuarios/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,QAAQ,GAAG,IAAA,2BAAM,EAAC,SAAS,CAAC,uFAAA,oBAExC,KAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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[];
|
|
@@ -0,0 +1,138 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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;wBACvB,IAAI,EAAE,YAAY;qBACnB;oBACD;wBACE,EAAE,EAAE,GAAG;wBACP,MAAM,EAAE,WAAW;wBACnB,IAAI,EAAE,iBAAiB;wBACvB,SAAS,EAAE;4BACT;gCACE,EAAE,EAAE,GAAG;gCACP,MAAM,EAAE,WAAW;gCACnB,IAAI,EAAE,iBAAiB;gCACvB,IAAI,EAAE,YAAY;6BACnB;4BACD;gCACE,EAAE,EAAE,GAAG;gCACP,MAAM,EAAE,WAAW;gCACnB,IAAI,EAAE,iBAAiB;gCACvB,IAAI,EAAE,YAAY;6BACnB;4BACD;gCACE,EAAE,EAAE,GAAG;gCACP,MAAM,EAAE,WAAW;gCACnB,IAAI,EAAE,iBAAiB;gCACvB,IAAI,EAAE,YAAY;6BACnB;yBACF;qBACF;iBACF;aACF;YACD;gBACE,EAAE,EAAE,GAAG;gBACP,MAAM,EAAE,WAAW;gBACnB,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,YAAY;aACnB;YACD;gBACE,EAAE,EAAE,GAAG;gBACP,MAAM,EAAE,WAAW;gBACnB,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,YAAY;aACnB;SACF;KACF;IACD;QACE,EAAE,EAAE,GAAG;QACP,MAAM,EAAE,WAAW;QACnB,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,YAAY;KACnB;IACD;QACE,EAAE,EAAE,GAAG;QACP,MAAM,EAAE,UAAU;QAClB,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE;YACT;gBACE,EAAE,EAAE,GAAG;gBACP,MAAM,EAAE,WAAW;gBACnB,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,YAAY;aACnB;YACD;gBACE,EAAE,EAAE,GAAG;gBACP,MAAM,EAAE,WAAW;gBACnB,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,YAAY;aACnB;YACD;gBACE,EAAE,EAAE,GAAG;gBACP,MAAM,EAAE,WAAW;gBACnB,IAAI,EAAE,iBAAiB;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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ActiveIndicator(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,4 @@
|
|
|
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>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,4 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/searchbar/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/hooks/ui/use-table/query/interfaces.ts"],"names":[],"mappings":""}
|