@gnwebsoft/ui 2.17.12 → 2.18.1

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.
@@ -27,8 +27,9 @@ var FilterButton = ({ isSubmitting }) => {
27
27
  };
28
28
  var FilterButton_default = FilterButton;
29
29
 
30
- // src/components/FormWrapper/FormWrapper.tsx
30
+ // src/components/FilterWrapper/FilterWrapper.tsx
31
31
  import {
32
+ Box,
32
33
  Card,
33
34
  CardContent,
34
35
  CardHeader,
@@ -36,25 +37,80 @@ import {
36
37
  Grid2,
37
38
  Typography
38
39
  } from "@mui/material";
39
- import { Fragment, jsx as jsx3, jsxs } from "react/jsx-runtime";
40
+ import ManageSearchIcon from "@mui/icons-material/ManageSearch";
41
+ import { jsx as jsx3, jsxs } from "react/jsx-runtime";
42
+ var FilterWrapper = ({ children, title }) => {
43
+ return /* @__PURE__ */ jsxs(
44
+ Card,
45
+ {
46
+ sx: {
47
+ position: "relative",
48
+ borderRadius: "0px",
49
+ mb: 2
50
+ },
51
+ children: [
52
+ /* @__PURE__ */ jsx3(
53
+ CardHeader,
54
+ {
55
+ sx: {
56
+ display: "flex",
57
+ flexWrap: "wrap",
58
+ p: "1rem",
59
+ ".MuiCardHeader-action": {
60
+ margin: 0,
61
+ alignSelf: "center"
62
+ },
63
+ alignItems: "center"
64
+ },
65
+ title: /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
66
+ /* @__PURE__ */ jsx3(ManageSearchIcon, { sx: { color: "#4db3a2", height: "2.5rem" } }),
67
+ /* @__PURE__ */ jsx3(
68
+ Typography,
69
+ {
70
+ variant: "h5",
71
+ sx: { color: "#4db3a2", fontWeight: "bold" },
72
+ children: title
73
+ }
74
+ )
75
+ ] })
76
+ }
77
+ ),
78
+ /* @__PURE__ */ jsx3(Divider, {}),
79
+ /* @__PURE__ */ jsx3(CardContent, { sx: { py: 2 }, children: /* @__PURE__ */ jsx3(Grid2, { container: true, spacing: 2, children }) })
80
+ ]
81
+ }
82
+ );
83
+ };
84
+ var FilterWrapper_default = FilterWrapper;
85
+
86
+ // src/components/FormWrapper/FormWrapper.tsx
87
+ import {
88
+ Card as Card2,
89
+ CardContent as CardContent2,
90
+ CardHeader as CardHeader2,
91
+ Divider as Divider2,
92
+ Grid2 as Grid22,
93
+ Typography as Typography2
94
+ } from "@mui/material";
95
+ import { Fragment, jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
40
96
  var FormWrapper = ({
41
97
  children,
42
98
  title,
43
99
  editMode,
44
100
  breadCrumb
45
101
  }) => {
46
- return /* @__PURE__ */ jsxs(Fragment, { children: [
47
- breadCrumb ? breadCrumb : /* @__PURE__ */ jsx3(Fragment, {}),
48
- /* @__PURE__ */ jsxs(
49
- Card,
102
+ return /* @__PURE__ */ jsxs2(Fragment, { children: [
103
+ breadCrumb ? breadCrumb : /* @__PURE__ */ jsx4(Fragment, {}),
104
+ /* @__PURE__ */ jsxs2(
105
+ Card2,
50
106
  {
51
107
  sx: {
52
108
  position: "relative",
53
109
  borderRadius: "0px"
54
110
  },
55
111
  children: [
56
- /* @__PURE__ */ jsx3(
57
- CardHeader,
112
+ /* @__PURE__ */ jsx4(
113
+ CardHeader2,
58
114
  {
59
115
  sx: {
60
116
  display: "flex",
@@ -65,11 +121,11 @@ var FormWrapper = ({
65
121
  alignSelf: "center"
66
122
  }
67
123
  },
68
- title: title ?? /* @__PURE__ */ jsx3(Typography, { variant: "h5", children: editMode ? `Create ${title}` : `Edit ${title}` })
124
+ title: title ?? /* @__PURE__ */ jsx4(Typography2, { variant: "h5", children: editMode ? `Create ${title}` : `Edit ${title}` })
69
125
  }
70
126
  ),
71
- /* @__PURE__ */ jsx3(Divider, { sx: { mt: 0 } }),
72
- /* @__PURE__ */ jsx3(CardContent, { children: /* @__PURE__ */ jsx3(Grid2, { container: true, spacing: 3, children }) })
127
+ /* @__PURE__ */ jsx4(Divider2, { sx: { mt: 0 } }),
128
+ /* @__PURE__ */ jsx4(CardContent2, { children: /* @__PURE__ */ jsx4(Grid22, { container: true, spacing: 2, children }) })
73
129
  ]
74
130
  }
75
131
  )
@@ -78,10 +134,10 @@ var FormWrapper = ({
78
134
  var FormWrapper_default = FormWrapper;
79
135
 
80
136
  // src/components/LabelText/LabelText.tsx
81
- import { Grid2 as Grid22, Tooltip, Typography as Typography2 } from "@mui/material";
82
- import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
83
- var LabelText = ({ label, value }) => /* @__PURE__ */ jsxs2(
84
- Grid22,
137
+ import { Grid2 as Grid23, Tooltip, Typography as Typography3 } from "@mui/material";
138
+ import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
139
+ var LabelText = ({ label, value }) => /* @__PURE__ */ jsxs3(
140
+ Grid23,
85
141
  {
86
142
  size: { xs: 12, sm: 6, md: 6 },
87
143
  sx: {
@@ -90,8 +146,8 @@ var LabelText = ({ label, value }) => /* @__PURE__ */ jsxs2(
90
146
  "&:hover": { bgcolor: "#efefef", overflow: "hidden" }
91
147
  },
92
148
  children: [
93
- /* @__PURE__ */ jsxs2(
94
- Grid22,
149
+ /* @__PURE__ */ jsxs3(
150
+ Grid23,
95
151
  {
96
152
  size: { xs: 6, sm: 7, md: 6 },
97
153
  sx: {
@@ -105,13 +161,13 @@ var LabelText = ({ label, value }) => /* @__PURE__ */ jsxs2(
105
161
  ]
106
162
  }
107
163
  ),
108
- /* @__PURE__ */ jsx4(
109
- Grid22,
164
+ /* @__PURE__ */ jsx5(
165
+ Grid23,
110
166
  {
111
167
  size: { xs: 12, sm: 5, md: 6 },
112
168
  sx: { padding: "5px", display: "flex", flexWrap: "wrap" },
113
- children: /* @__PURE__ */ jsx4(Tooltip, { title: value, arrow: true, children: /* @__PURE__ */ jsx4(
114
- Typography2,
169
+ children: /* @__PURE__ */ jsx5(Tooltip, { title: value, arrow: true, children: /* @__PURE__ */ jsx5(
170
+ Typography3,
115
171
  {
116
172
  color: "#3598dc",
117
173
  fontSize: "14px",
@@ -135,27 +191,27 @@ var LabelText_default = LabelText;
135
191
 
136
192
  // src/components/ListWrapper/ListWrapper.tsx
137
193
  import {
138
- Box,
139
- Card as Card2,
140
- CardContent as CardContent2,
141
- CardHeader as CardHeader2,
142
- Divider as Divider2,
143
- Grid2 as Grid23,
144
- Typography as Typography3
194
+ Box as Box2,
195
+ Card as Card3,
196
+ CardContent as CardContent3,
197
+ CardHeader as CardHeader3,
198
+ Divider as Divider3,
199
+ Grid2 as Grid24,
200
+ Typography as Typography4
145
201
  } from "@mui/material";
146
- import ManageSearchIcon from "@mui/icons-material/ManageSearch";
147
- import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
202
+ import ManageSearchIcon2 from "@mui/icons-material/ManageSearch";
203
+ import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
148
204
  var ListWrapper = ({ children, title, count }) => {
149
- return /* @__PURE__ */ jsxs3(
150
- Card2,
205
+ return /* @__PURE__ */ jsxs4(
206
+ Card3,
151
207
  {
152
208
  sx: {
153
209
  position: "relative",
154
210
  borderRadius: "0px"
155
211
  },
156
212
  children: [
157
- /* @__PURE__ */ jsx5(
158
- CardHeader2,
213
+ /* @__PURE__ */ jsx6(
214
+ CardHeader3,
159
215
  {
160
216
  sx: {
161
217
  display: "flex",
@@ -167,10 +223,10 @@ var ListWrapper = ({ children, title, count }) => {
167
223
  },
168
224
  alignItems: "center"
169
225
  },
170
- title: /* @__PURE__ */ jsxs3(Box, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
171
- /* @__PURE__ */ jsx5(ManageSearchIcon, { sx: { color: "#4db3a2", height: "2.5rem" } }),
172
- /* @__PURE__ */ jsx5(
173
- Typography3,
226
+ title: /* @__PURE__ */ jsxs4(Box2, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
227
+ /* @__PURE__ */ jsx6(ManageSearchIcon2, { sx: { color: "#4db3a2", height: "2.5rem" } }),
228
+ /* @__PURE__ */ jsx6(
229
+ Typography4,
174
230
  {
175
231
  variant: "h5",
176
232
  sx: { color: "#4db3a2", fontWeight: "bold" },
@@ -180,8 +236,8 @@ var ListWrapper = ({ children, title, count }) => {
180
236
  ] })
181
237
  }
182
238
  ),
183
- /* @__PURE__ */ jsx5(Divider2, {}),
184
- /* @__PURE__ */ jsx5(CardContent2, { sx: { pt: 0 }, children: /* @__PURE__ */ jsx5(Grid23, { container: true, spacing: 2, children }) })
239
+ /* @__PURE__ */ jsx6(Divider3, {}),
240
+ /* @__PURE__ */ jsx6(CardContent3, { sx: { pt: 0 }, children: /* @__PURE__ */ jsx6(Grid24, { container: true, spacing: 2, children }) })
185
241
  ]
186
242
  }
187
243
  );
@@ -196,10 +252,10 @@ import {
196
252
  GridToolbarFilterButton,
197
253
  GridToolbarQuickFilter
198
254
  } from "@mui/x-data-grid";
199
- import { Box as Box2 } from "@mui/material";
200
- import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
201
- var SimpleToolbar = () => /* @__PURE__ */ jsxs4(GridToolbarContainer, { children: [
202
- /* @__PURE__ */ jsx6(
255
+ import { Box as Box3 } from "@mui/material";
256
+ import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
257
+ var SimpleToolbar = () => /* @__PURE__ */ jsxs5(GridToolbarContainer, { children: [
258
+ /* @__PURE__ */ jsx7(
203
259
  GridToolbarQuickFilter,
204
260
  {
205
261
  sx: {
@@ -220,16 +276,17 @@ var SimpleToolbar = () => /* @__PURE__ */ jsxs4(GridToolbarContainer, { children
220
276
  }
221
277
  }
222
278
  ),
223
- /* @__PURE__ */ jsx6(Box2, { sx: { flexGrow: 1 } }),
224
- /* @__PURE__ */ jsx6(GridToolbarColumnsButton, {}),
225
- /* @__PURE__ */ jsx6(GridToolbarFilterButton, {}),
226
- /* @__PURE__ */ jsx6(GridToolbarExport, {})
279
+ /* @__PURE__ */ jsx7(Box3, { sx: { flexGrow: 1 } }),
280
+ /* @__PURE__ */ jsx7(GridToolbarColumnsButton, {}),
281
+ /* @__PURE__ */ jsx7(GridToolbarFilterButton, {}),
282
+ /* @__PURE__ */ jsx7(GridToolbarExport, {})
227
283
  ] });
228
284
  var SimpleToolbar_default = SimpleToolbar;
229
285
 
230
286
  export {
231
287
  ClearButton_default,
232
288
  FilterButton_default,
289
+ FilterWrapper_default,
233
290
  FormWrapper_default,
234
291
  LabelText_default,
235
292
  ListWrapper_default,
@@ -27,6 +27,62 @@ var FilterButton = ({ isSubmitting }) => {
27
27
  };
28
28
  var FilterButton_default = FilterButton;
29
29
 
30
+ // src/components/FilterWrapper/FilterWrapper.tsx
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+ var _ManageSearch = require('@mui/icons-material/ManageSearch'); var _ManageSearch2 = _interopRequireDefault(_ManageSearch);
41
+
42
+ var FilterWrapper = ({ children, title }) => {
43
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
44
+ _material.Card,
45
+ {
46
+ sx: {
47
+ position: "relative",
48
+ borderRadius: "0px",
49
+ mb: 2
50
+ },
51
+ children: [
52
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
53
+ _material.CardHeader,
54
+ {
55
+ sx: {
56
+ display: "flex",
57
+ flexWrap: "wrap",
58
+ p: "1rem",
59
+ ".MuiCardHeader-action": {
60
+ margin: 0,
61
+ alignSelf: "center"
62
+ },
63
+ alignItems: "center"
64
+ },
65
+ title: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Box, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
66
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ManageSearch2.default, { sx: { color: "#4db3a2", height: "2.5rem" } }),
67
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
68
+ _material.Typography,
69
+ {
70
+ variant: "h5",
71
+ sx: { color: "#4db3a2", fontWeight: "bold" },
72
+ children: title
73
+ }
74
+ )
75
+ ] })
76
+ }
77
+ ),
78
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Divider, {}),
79
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.CardContent, { sx: { py: 2 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Grid2, { container: true, spacing: 2, children }) })
80
+ ]
81
+ }
82
+ );
83
+ };
84
+ var FilterWrapper_default = FilterWrapper;
85
+
30
86
  // src/components/FormWrapper/FormWrapper.tsx
31
87
 
32
88
 
@@ -69,7 +125,7 @@ var FormWrapper = ({
69
125
  }
70
126
  ),
71
127
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Divider, { sx: { mt: 0 } }),
72
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.CardContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Grid2, { container: true, spacing: 3, children }) })
128
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.CardContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Grid2, { container: true, spacing: 2, children }) })
73
129
  ]
74
130
  }
75
131
  )
@@ -143,7 +199,7 @@ var LabelText_default = LabelText;
143
199
 
144
200
 
145
201
 
146
- var _ManageSearch = require('@mui/icons-material/ManageSearch'); var _ManageSearch2 = _interopRequireDefault(_ManageSearch);
202
+
147
203
 
148
204
  var ListWrapper = ({ children, title, count }) => {
149
205
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -234,4 +290,5 @@ var SimpleToolbar_default = SimpleToolbar;
234
290
 
235
291
 
236
292
 
237
- exports.ClearButton_default = ClearButton_default; exports.FilterButton_default = FilterButton_default; exports.FormWrapper_default = FormWrapper_default; exports.LabelText_default = LabelText_default; exports.ListWrapper_default = ListWrapper_default; exports.SimpleToolbar_default = SimpleToolbar_default;
293
+
294
+ exports.ClearButton_default = ClearButton_default; exports.FilterButton_default = FilterButton_default; exports.FilterWrapper_default = FilterWrapper_default; exports.FormWrapper_default = FormWrapper_default; exports.LabelText_default = LabelText_default; exports.ListWrapper_default = ListWrapper_default; exports.SimpleToolbar_default = SimpleToolbar_default;
@@ -3,7 +3,7 @@
3
3
  var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
4
4
 
5
5
 
6
- var _chunkBSA6BJG2js = require('./chunk-BSA6BJG2.js');
6
+ var _chunkKTAQRRS7js = require('./chunk-KTAQRRS7.js');
7
7
 
8
8
  // src/wrappers/DatePickerElement/DatePickerElement.tsx
9
9
 
@@ -47,7 +47,7 @@ var Component = function DatePickerElement(props) {
47
47
  value: field.value,
48
48
  onChange: field.onChange,
49
49
  transform: {
50
- input: typeof _optionalChain([transform, 'optionalAccess', _3 => _3.input]) === "function" ? transform.input : (newValue) => _chunkBSA6BJG2js.readValueAsDate.call(void 0, adapter, newValue),
50
+ input: typeof _optionalChain([transform, 'optionalAccess', _3 => _3.input]) === "function" ? transform.input : (newValue) => _chunkKTAQRRS7js.readValueAsDate.call(void 0, adapter, newValue),
51
51
  output: typeof _optionalChain([transform, 'optionalAccess', _4 => _4.output]) === "function" ? transform.output : (newValue) => newValue
52
52
  }
53
53
  });
@@ -430,7 +430,8 @@ var Component4 = function TextFieldElement(props) {
430
430
  type,
431
431
  error: !!error,
432
432
  helperText: error ? error.message : helperText,
433
- inputRef: handleInputRef
433
+ inputRef: handleInputRef,
434
+ size: "small"
434
435
  }
435
436
  );
436
437
  };
@@ -484,7 +485,7 @@ var Component5 = function TimePickerElement(props) {
484
485
  value: field.value,
485
486
  onChange: field.onChange,
486
487
  transform: {
487
- input: typeof _optionalChain([transform, 'optionalAccess', _15 => _15.input]) === "function" ? transform.input : (newValue) => _chunkBSA6BJG2js.readValueAsDate.call(void 0, adapter, newValue),
488
+ input: typeof _optionalChain([transform, 'optionalAccess', _15 => _15.input]) === "function" ? transform.input : (newValue) => _chunkKTAQRRS7js.readValueAsDate.call(void 0, adapter, newValue),
488
489
  output: typeof _optionalChain([transform, 'optionalAccess', _16 => _16.output]) === "function" ? transform.output : (newValue) => newValue
489
490
  }
490
491
  });
@@ -19,6 +19,18 @@ var makeRequest = async (url, options = {}) => {
19
19
  return apiResponse;
20
20
  };
21
21
  var api = class {
22
+ static async filter(url, postModel) {
23
+ const alteredOptions = {
24
+ headers: {
25
+ "Content-Type": "application/json",
26
+ Authorization: `Bearer ${localStorage.getItem("serviceToken")}`
27
+ },
28
+ body: JSON.stringify({ ...postModel, ...postModel.filterModel }),
29
+ method: "POST"
30
+ };
31
+ const apiResponse = await makeRequest(url, alteredOptions);
32
+ return apiResponse;
33
+ }
22
34
  static async post(url, body = {}) {
23
35
  const alteredOptions = {
24
36
  headers: {
@@ -19,6 +19,18 @@ var makeRequest = async (url, options = {}) => {
19
19
  return apiResponse;
20
20
  };
21
21
  var api = class {
22
+ static async filter(url, postModel) {
23
+ const alteredOptions = {
24
+ headers: {
25
+ "Content-Type": "application/json",
26
+ Authorization: `Bearer ${localStorage.getItem("serviceToken")}`
27
+ },
28
+ body: JSON.stringify({ ...postModel, ...postModel.filterModel }),
29
+ method: "POST"
30
+ };
31
+ const apiResponse = await makeRequest(url, alteredOptions);
32
+ return apiResponse;
33
+ }
22
34
  static async post(url, body = {}) {
23
35
  const alteredOptions = {
24
36
  headers: {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-GFSTK7KN.mjs";
4
4
  import {
5
5
  readValueAsDate
6
- } from "./chunk-44LP4RZD.mjs";
6
+ } from "./chunk-NIG6OXKY.mjs";
7
7
 
8
8
  // src/wrappers/DatePickerElement/DatePickerElement.tsx
9
9
  import {
@@ -430,7 +430,8 @@ var Component4 = function TextFieldElement(props) {
430
430
  type,
431
431
  error: !!error,
432
432
  helperText: error ? error.message : helperText,
433
- inputRef: handleInputRef
433
+ inputRef: handleInputRef,
434
+ size: "small"
434
435
  }
435
436
  );
436
437
  };
@@ -12,6 +12,11 @@ type FilterButtonProps = {
12
12
  };
13
13
  declare const FilterButton: ({ isSubmitting }: FilterButtonProps) => react_jsx_runtime.JSX.Element;
14
14
 
15
+ type FilterWrapperProps = PropsWithChildren<{
16
+ title: string;
17
+ }>;
18
+ declare const FilterWrapper: ({ children, title }: FilterWrapperProps) => react_jsx_runtime.JSX.Element;
19
+
15
20
  type FormWrapper = PropsWithChildren<{
16
21
  title: string;
17
22
  editMode: boolean;
@@ -34,4 +39,4 @@ declare const ListWrapper: ({ children, title, count }: ListWrapperProps) => rea
34
39
 
35
40
  declare const SimpleToolbar: () => react_jsx_runtime.JSX.Element;
36
41
 
37
- export { ClearButton, FilterButton, FormWrapper, LabelText, ListWrapper, SimpleToolbar };
42
+ export { ClearButton, FilterButton, FilterWrapper, FormWrapper, LabelText, ListWrapper, SimpleToolbar };
@@ -12,6 +12,11 @@ type FilterButtonProps = {
12
12
  };
13
13
  declare const FilterButton: ({ isSubmitting }: FilterButtonProps) => react_jsx_runtime.JSX.Element;
14
14
 
15
+ type FilterWrapperProps = PropsWithChildren<{
16
+ title: string;
17
+ }>;
18
+ declare const FilterWrapper: ({ children, title }: FilterWrapperProps) => react_jsx_runtime.JSX.Element;
19
+
15
20
  type FormWrapper = PropsWithChildren<{
16
21
  title: string;
17
22
  editMode: boolean;
@@ -34,4 +39,4 @@ declare const ListWrapper: ({ children, title, count }: ListWrapperProps) => rea
34
39
 
35
40
  declare const SimpleToolbar: () => react_jsx_runtime.JSX.Element;
36
41
 
37
- export { ClearButton, FilterButton, FormWrapper, LabelText, ListWrapper, SimpleToolbar };
42
+ export { ClearButton, FilterButton, FilterWrapper, FormWrapper, LabelText, ListWrapper, SimpleToolbar };
@@ -5,12 +5,14 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkMXOTA42Jjs = require('../chunk-MXOTA42J.js');
9
8
 
9
+ var _chunkDMKDUMBDjs = require('../chunk-DMKDUMBD.js');
10
10
 
11
11
 
12
12
 
13
13
 
14
14
 
15
15
 
16
- exports.ClearButton = _chunkMXOTA42Jjs.ClearButton_default; exports.FilterButton = _chunkMXOTA42Jjs.FilterButton_default; exports.FormWrapper = _chunkMXOTA42Jjs.FormWrapper_default; exports.LabelText = _chunkMXOTA42Jjs.LabelText_default; exports.ListWrapper = _chunkMXOTA42Jjs.ListWrapper_default; exports.SimpleToolbar = _chunkMXOTA42Jjs.SimpleToolbar_default;
16
+
17
+
18
+ exports.ClearButton = _chunkDMKDUMBDjs.ClearButton_default; exports.FilterButton = _chunkDMKDUMBDjs.FilterButton_default; exports.FilterWrapper = _chunkDMKDUMBDjs.FilterWrapper_default; exports.FormWrapper = _chunkDMKDUMBDjs.FormWrapper_default; exports.LabelText = _chunkDMKDUMBDjs.LabelText_default; exports.ListWrapper = _chunkDMKDUMBDjs.ListWrapper_default; exports.SimpleToolbar = _chunkDMKDUMBDjs.SimpleToolbar_default;
@@ -1,14 +1,16 @@
1
1
  import {
2
2
  ClearButton_default,
3
3
  FilterButton_default,
4
+ FilterWrapper_default,
4
5
  FormWrapper_default,
5
6
  LabelText_default,
6
7
  ListWrapper_default,
7
8
  SimpleToolbar_default
8
- } from "../chunk-WE5MOMEE.mjs";
9
+ } from "../chunk-B5ZIFGAN.mjs";
9
10
  export {
10
11
  ClearButton_default as ClearButton,
11
12
  FilterButton_default as FilterButton,
13
+ FilterWrapper_default as FilterWrapper,
12
14
  FormWrapper_default as FormWrapper,
13
15
  LabelText_default as LabelText,
14
16
  ListWrapper_default as ListWrapper,
package/dist/index.d.mts CHANGED
@@ -1,9 +1,8 @@
1
- export { ClearButton, FilterButton, FormWrapper, LabelText, ListWrapper, SimpleToolbar } from './components/index.mjs';
1
+ export { ClearButton, FilterButton, FilterWrapper, FormWrapper, LabelText, ListWrapper, SimpleToolbar } from './components/index.mjs';
2
2
  export { UseTransformOptions, UseTransformReturn, useTransform } from './hooks/index.mjs';
3
- export { AsyncMultiSelectPayload, ListResponse, OptionItem, OptionItem2, PostModel, ValueLabel } from './types/index.mjs';
3
+ export { ApiResponse, AsyncMultiSelectPayload, ListResponse, OptionItem, OptionItem2, PostModel, ValidationErrors, ValueLabel } from './types/index.mjs';
4
4
  export { api, flattenObjectKeys, getTimezone, handleServerErrors, propertyExists, readValueAsDate, removeLeadingTrailingSlashes, schemaTools } from './utils/index.mjs';
5
5
  export { Field } from './wrappers/index.mjs';
6
- export { A as ApiResponse, V as ValidationErrors } from './ApiResponse-DWjEML13.mjs';
7
6
  export { A as AsyncSelectPayload } from './AsyncSelectPayload-DHN-R3gc.mjs';
8
7
  import 'react/jsx-runtime';
9
8
  import 'react';
package/dist/index.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- export { ClearButton, FilterButton, FormWrapper, LabelText, ListWrapper, SimpleToolbar } from './components/index.js';
1
+ export { ClearButton, FilterButton, FilterWrapper, FormWrapper, LabelText, ListWrapper, SimpleToolbar } from './components/index.js';
2
2
  export { UseTransformOptions, UseTransformReturn, useTransform } from './hooks/index.js';
3
- export { AsyncMultiSelectPayload, ListResponse, OptionItem, OptionItem2, PostModel, ValueLabel } from './types/index.js';
3
+ export { ApiResponse, AsyncMultiSelectPayload, ListResponse, OptionItem, OptionItem2, PostModel, ValidationErrors, ValueLabel } from './types/index.js';
4
4
  export { api, flattenObjectKeys, getTimezone, handleServerErrors, propertyExists, readValueAsDate, removeLeadingTrailingSlashes, schemaTools } from './utils/index.js';
5
5
  export { Field } from './wrappers/index.js';
6
- export { A as ApiResponse, V as ValidationErrors } from './ApiResponse-DWjEML13.js';
7
6
  export { A as AsyncSelectPayload } from './AsyncSelectPayload-DHN-R3gc.js';
8
7
  import 'react/jsx-runtime';
9
8
  import 'react';
package/dist/index.js CHANGED
@@ -5,12 +5,13 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkMXOTA42Jjs = require('./chunk-MXOTA42J.js');
8
+
9
+ var _chunkDMKDUMBDjs = require('./chunk-DMKDUMBD.js');
9
10
  require('./chunk-7M2VOCYN.js');
10
11
  require('./chunk-TLJXC46A.js');
11
12
 
12
13
 
13
- var _chunkBMJZCRJTjs = require('./chunk-BMJZCRJT.js');
14
+ var _chunkIQ2NGFMEjs = require('./chunk-IQ2NGFME.js');
14
15
 
15
16
 
16
17
  var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
@@ -23,7 +24,8 @@ var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
23
24
 
24
25
 
25
26
 
26
- var _chunkBSA6BJG2js = require('./chunk-BSA6BJG2.js');
27
+ var _chunkKTAQRRS7js = require('./chunk-KTAQRRS7.js');
28
+
27
29
 
28
30
 
29
31
 
@@ -41,4 +43,4 @@ var _chunkBSA6BJG2js = require('./chunk-BSA6BJG2.js');
41
43
 
42
44
 
43
45
 
44
- exports.ClearButton = _chunkMXOTA42Jjs.ClearButton_default; exports.Field = _chunkBMJZCRJTjs.Field_default; exports.FilterButton = _chunkMXOTA42Jjs.FilterButton_default; exports.FormWrapper = _chunkMXOTA42Jjs.FormWrapper_default; exports.LabelText = _chunkMXOTA42Jjs.LabelText_default; exports.ListWrapper = _chunkMXOTA42Jjs.ListWrapper_default; exports.SimpleToolbar = _chunkMXOTA42Jjs.SimpleToolbar_default; exports.api = _chunkBSA6BJG2js.api; exports.flattenObjectKeys = _chunkBSA6BJG2js.flattenObjectKeys; exports.getTimezone = _chunkBSA6BJG2js.getTimezone; exports.handleServerErrors = _chunkBSA6BJG2js.handleServerErrors; exports.propertyExists = _chunkBSA6BJG2js.propertyExists; exports.readValueAsDate = _chunkBSA6BJG2js.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkBSA6BJG2js.removeLeadingTrailingSlashes; exports.schemaTools = _chunkBSA6BJG2js.schemaTools; exports.useTransform = _chunk6JZ35VQJjs.useTransform;
46
+ exports.ClearButton = _chunkDMKDUMBDjs.ClearButton_default; exports.Field = _chunkIQ2NGFMEjs.Field_default; exports.FilterButton = _chunkDMKDUMBDjs.FilterButton_default; exports.FilterWrapper = _chunkDMKDUMBDjs.FilterWrapper_default; exports.FormWrapper = _chunkDMKDUMBDjs.FormWrapper_default; exports.LabelText = _chunkDMKDUMBDjs.LabelText_default; exports.ListWrapper = _chunkDMKDUMBDjs.ListWrapper_default; exports.SimpleToolbar = _chunkDMKDUMBDjs.SimpleToolbar_default; exports.api = _chunkKTAQRRS7js.api; exports.flattenObjectKeys = _chunkKTAQRRS7js.flattenObjectKeys; exports.getTimezone = _chunkKTAQRRS7js.getTimezone; exports.handleServerErrors = _chunkKTAQRRS7js.handleServerErrors; exports.propertyExists = _chunkKTAQRRS7js.propertyExists; exports.readValueAsDate = _chunkKTAQRRS7js.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkKTAQRRS7js.removeLeadingTrailingSlashes; exports.schemaTools = _chunkKTAQRRS7js.schemaTools; exports.useTransform = _chunk6JZ35VQJjs.useTransform;
package/dist/index.mjs CHANGED
@@ -1,16 +1,17 @@
1
1
  import {
2
2
  ClearButton_default,
3
3
  FilterButton_default,
4
+ FilterWrapper_default,
4
5
  FormWrapper_default,
5
6
  LabelText_default,
6
7
  ListWrapper_default,
7
8
  SimpleToolbar_default
8
- } from "./chunk-WE5MOMEE.mjs";
9
+ } from "./chunk-B5ZIFGAN.mjs";
9
10
  import "./chunk-2JFL7TS5.mjs";
10
11
  import "./chunk-5VR5QVUV.mjs";
11
12
  import {
12
13
  Field_default
13
- } from "./chunk-T5CD2TUF.mjs";
14
+ } from "./chunk-W2WJWT42.mjs";
14
15
  import {
15
16
  useTransform
16
17
  } from "./chunk-GFSTK7KN.mjs";
@@ -23,11 +24,12 @@ import {
23
24
  readValueAsDate,
24
25
  removeLeadingTrailingSlashes,
25
26
  schemaTools
26
- } from "./chunk-44LP4RZD.mjs";
27
+ } from "./chunk-NIG6OXKY.mjs";
27
28
  export {
28
29
  ClearButton_default as ClearButton,
29
30
  Field_default as Field,
30
31
  FilterButton_default as FilterButton,
32
+ FilterWrapper_default as FilterWrapper,
31
33
  FormWrapper_default as FormWrapper,
32
34
  LabelText_default as LabelText,
33
35
  ListWrapper_default as ListWrapper,
@@ -1,7 +1,23 @@
1
1
  import { GridSortModel } from '@mui/x-data-grid';
2
- export { A as ApiResponse, V as ValidationErrors } from '../ApiResponse-DWjEML13.mjs';
3
2
  export { A as AsyncSelectPayload } from '../AsyncSelectPayload-DHN-R3gc.mjs';
4
3
 
4
+ type ValidationErrors = {
5
+ [field: string]: string | string[] | boolean | {
6
+ key: string;
7
+ message: string;
8
+ };
9
+ };
10
+
11
+ type ApiResponse<TModel> = {
12
+ type?: string;
13
+ title?: string;
14
+ status?: number;
15
+ traceId?: string;
16
+ errors?: ValidationErrors;
17
+ modelErrors?: boolean;
18
+ apiData?: TModel;
19
+ };
20
+
5
21
  type OptionItem = {
6
22
  label: string;
7
23
  value: string;
@@ -32,4 +48,4 @@ type ValueLabel = {
32
48
  label: number;
33
49
  };
34
50
 
35
- export type { AsyncMultiSelectPayload, ListResponse, OptionItem, OptionItem2, PostModel, ValueLabel };
51
+ export type { ApiResponse, AsyncMultiSelectPayload, ListResponse, OptionItem, OptionItem2, PostModel, ValidationErrors, ValueLabel };
@@ -1,7 +1,23 @@
1
1
  import { GridSortModel } from '@mui/x-data-grid';
2
- export { A as ApiResponse, V as ValidationErrors } from '../ApiResponse-DWjEML13.js';
3
2
  export { A as AsyncSelectPayload } from '../AsyncSelectPayload-DHN-R3gc.js';
4
3
 
4
+ type ValidationErrors = {
5
+ [field: string]: string | string[] | boolean | {
6
+ key: string;
7
+ message: string;
8
+ };
9
+ };
10
+
11
+ type ApiResponse<TModel> = {
12
+ type?: string;
13
+ title?: string;
14
+ status?: number;
15
+ traceId?: string;
16
+ errors?: ValidationErrors;
17
+ modelErrors?: boolean;
18
+ apiData?: TModel;
19
+ };
20
+
5
21
  type OptionItem = {
6
22
  label: string;
7
23
  value: string;
@@ -32,4 +48,4 @@ type ValueLabel = {
32
48
  label: number;
33
49
  };
34
50
 
35
- export type { AsyncMultiSelectPayload, ListResponse, OptionItem, OptionItem2, PostModel, ValueLabel };
51
+ export type { ApiResponse, AsyncMultiSelectPayload, ListResponse, OptionItem, OptionItem2, PostModel, ValidationErrors, ValueLabel };
@@ -1,10 +1,13 @@
1
- import { A as ApiResponse } from '../ApiResponse-DWjEML13.mjs';
1
+ import { PostModel, ApiResponse } from '../types/index.mjs';
2
2
  import { PickerValidDate } from '@mui/x-date-pickers';
3
3
  import { useLocalizationContext } from '@mui/x-date-pickers/internals';
4
4
  import { FieldValues, UseFormSetError } from 'react-hook-form';
5
5
  import { z } from 'zod';
6
+ import '@mui/x-data-grid';
7
+ import '../AsyncSelectPayload-DHN-R3gc.mjs';
6
8
 
7
9
  declare class api {
10
+ static filter<T, TFilter>(url: string, postModel: PostModel<TFilter>): Promise<ApiResponse<T>>;
8
11
  static post<T>(url: string, body?: any): Promise<ApiResponse<T>>;
9
12
  static get<T>(url: string): Promise<ApiResponse<T>>;
10
13
  static delete<T>(url: string): Promise<ApiResponse<T>>;
@@ -1,10 +1,13 @@
1
- import { A as ApiResponse } from '../ApiResponse-DWjEML13.js';
1
+ import { PostModel, ApiResponse } from '../types/index.js';
2
2
  import { PickerValidDate } from '@mui/x-date-pickers';
3
3
  import { useLocalizationContext } from '@mui/x-date-pickers/internals';
4
4
  import { FieldValues, UseFormSetError } from 'react-hook-form';
5
5
  import { z } from 'zod';
6
+ import '@mui/x-data-grid';
7
+ import '../AsyncSelectPayload-DHN-R3gc.js';
6
8
 
7
9
  declare class api {
10
+ static filter<T, TFilter>(url: string, postModel: PostModel<TFilter>): Promise<ApiResponse<T>>;
8
11
  static post<T>(url: string, body?: any): Promise<ApiResponse<T>>;
9
12
  static get<T>(url: string): Promise<ApiResponse<T>>;
10
13
  static delete<T>(url: string): Promise<ApiResponse<T>>;
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkBSA6BJG2js = require('../chunk-BSA6BJG2.js');
10
+ var _chunkKTAQRRS7js = require('../chunk-KTAQRRS7.js');
11
11
 
12
12
 
13
13
 
@@ -17,4 +17,4 @@ var _chunkBSA6BJG2js = require('../chunk-BSA6BJG2.js');
17
17
 
18
18
 
19
19
 
20
- exports.api = _chunkBSA6BJG2js.api; exports.flattenObjectKeys = _chunkBSA6BJG2js.flattenObjectKeys; exports.getTimezone = _chunkBSA6BJG2js.getTimezone; exports.handleServerErrors = _chunkBSA6BJG2js.handleServerErrors; exports.propertyExists = _chunkBSA6BJG2js.propertyExists; exports.readValueAsDate = _chunkBSA6BJG2js.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkBSA6BJG2js.removeLeadingTrailingSlashes; exports.schemaTools = _chunkBSA6BJG2js.schemaTools;
20
+ exports.api = _chunkKTAQRRS7js.api; exports.flattenObjectKeys = _chunkKTAQRRS7js.flattenObjectKeys; exports.getTimezone = _chunkKTAQRRS7js.getTimezone; exports.handleServerErrors = _chunkKTAQRRS7js.handleServerErrors; exports.propertyExists = _chunkKTAQRRS7js.propertyExists; exports.readValueAsDate = _chunkKTAQRRS7js.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkKTAQRRS7js.removeLeadingTrailingSlashes; exports.schemaTools = _chunkKTAQRRS7js.schemaTools;
@@ -7,7 +7,7 @@ import {
7
7
  readValueAsDate,
8
8
  removeLeadingTrailingSlashes,
9
9
  schemaTools
10
- } from "../chunk-44LP4RZD.mjs";
10
+ } from "../chunk-NIG6OXKY.mjs";
11
11
  export {
12
12
  api,
13
13
  flattenObjectKeys,
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkBMJZCRJTjs = require('../chunk-BMJZCRJT.js');
3
+ var _chunkIQ2NGFMEjs = require('../chunk-IQ2NGFME.js');
4
4
  require('../chunk-6JZ35VQJ.js');
5
- require('../chunk-BSA6BJG2.js');
5
+ require('../chunk-KTAQRRS7.js');
6
6
 
7
7
 
8
- exports.Field = _chunkBMJZCRJTjs.Field_default;
8
+ exports.Field = _chunkIQ2NGFMEjs.Field_default;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Field_default
3
- } from "../chunk-T5CD2TUF.mjs";
3
+ } from "../chunk-W2WJWT42.mjs";
4
4
  import "../chunk-GFSTK7KN.mjs";
5
- import "../chunk-44LP4RZD.mjs";
5
+ import "../chunk-NIG6OXKY.mjs";
6
6
  export {
7
7
  Field_default as Field
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnwebsoft/ui",
3
- "version": "2.17.12",
3
+ "version": "2.18.1",
4
4
  "description": "A set of reusable wrappers for MUI v6",
5
5
  "author": "GNWebsoft Private Limited",
6
6
  "license": "",
@@ -1,18 +0,0 @@
1
- type ValidationErrors = {
2
- [field: string]: string | string[] | boolean | {
3
- key: string;
4
- message: string;
5
- };
6
- };
7
-
8
- type ApiResponse<TModel> = {
9
- type?: string;
10
- title?: string;
11
- status?: number;
12
- traceId?: string;
13
- errors?: ValidationErrors;
14
- modelErrors?: boolean;
15
- apiData?: TModel;
16
- };
17
-
18
- export type { ApiResponse as A, ValidationErrors as V };
@@ -1,18 +0,0 @@
1
- type ValidationErrors = {
2
- [field: string]: string | string[] | boolean | {
3
- key: string;
4
- message: string;
5
- };
6
- };
7
-
8
- type ApiResponse<TModel> = {
9
- type?: string;
10
- title?: string;
11
- status?: number;
12
- traceId?: string;
13
- errors?: ValidationErrors;
14
- modelErrors?: boolean;
15
- apiData?: TModel;
16
- };
17
-
18
- export type { ApiResponse as A, ValidationErrors as V };