@gnwebsoft/ui 2.17.11 → 2.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,7 +36,6 @@ var FilterButton_default = FilterButton;
36
36
 
37
37
 
38
38
 
39
-
40
39
  var FormWrapper = ({
41
40
  children,
42
41
  title,
@@ -69,7 +68,7 @@ var FormWrapper = ({
69
68
  }
70
69
  ),
71
70
  /* @__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 }) })
71
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.CardContent, { children })
73
72
  ]
74
73
  }
75
74
  )
@@ -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: {
@@ -33,7 +33,6 @@ import {
33
33
  CardContent,
34
34
  CardHeader,
35
35
  Divider,
36
- Grid2,
37
36
  Typography
38
37
  } from "@mui/material";
39
38
  import { Fragment, jsx as jsx3, jsxs } from "react/jsx-runtime";
@@ -69,7 +68,7 @@ var FormWrapper = ({
69
68
  }
70
69
  ),
71
70
  /* @__PURE__ */ jsx3(Divider, { sx: { mt: 0 } }),
72
- /* @__PURE__ */ jsx3(CardContent, { children: /* @__PURE__ */ jsx3(Grid2, { container: true, spacing: 3, children }) })
71
+ /* @__PURE__ */ jsx3(CardContent, { children })
73
72
  ]
74
73
  }
75
74
  )
@@ -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
  };
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkMXOTA42Jjs = require('../chunk-MXOTA42J.js');
8
+ var _chunkE46YP3KMjs = require('../chunk-E46YP3KM.js');
9
9
 
10
10
 
11
11
 
@@ -13,4 +13,4 @@ var _chunkMXOTA42Jjs = require('../chunk-MXOTA42J.js');
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
+ exports.ClearButton = _chunkE46YP3KMjs.ClearButton_default; exports.FilterButton = _chunkE46YP3KMjs.FilterButton_default; exports.FormWrapper = _chunkE46YP3KMjs.FormWrapper_default; exports.LabelText = _chunkE46YP3KMjs.LabelText_default; exports.ListWrapper = _chunkE46YP3KMjs.ListWrapper_default; exports.SimpleToolbar = _chunkE46YP3KMjs.SimpleToolbar_default;
@@ -5,7 +5,7 @@ import {
5
5
  LabelText_default,
6
6
  ListWrapper_default,
7
7
  SimpleToolbar_default
8
- } from "../chunk-WE5MOMEE.mjs";
8
+ } from "../chunk-POY32C6G.mjs";
9
9
  export {
10
10
  ClearButton_default as ClearButton,
11
11
  FilterButton_default as FilterButton,
package/dist/index.d.mts CHANGED
@@ -1,13 +1,13 @@
1
1
  export { ClearButton, FilterButton, 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';
10
9
  import 'react-hook-form';
10
+ import '@mui/x-data-grid';
11
11
  import '@mui/x-date-pickers';
12
12
  import '@mui/x-date-pickers/internals';
13
13
  import 'zod';
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  export { ClearButton, FilterButton, 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';
10
9
  import 'react-hook-form';
10
+ import '@mui/x-data-grid';
11
11
  import '@mui/x-date-pickers';
12
12
  import '@mui/x-date-pickers/internals';
13
13
  import 'zod';
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-7M2VOCYN.js');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
4
 
5
5
 
6
6
 
7
7
 
8
-
9
- var _chunkMXOTA42Jjs = require('./chunk-MXOTA42J.js');
8
+ var _chunkE46YP3KMjs = require('./chunk-E46YP3KM.js');
9
+ require('./chunk-7M2VOCYN.js');
10
10
  require('./chunk-TLJXC46A.js');
11
11
 
12
12
 
13
- var _chunkBMJZCRJTjs = require('./chunk-BMJZCRJT.js');
13
+ var _chunkIQ2NGFMEjs = require('./chunk-IQ2NGFME.js');
14
14
 
15
15
 
16
16
  var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
@@ -23,7 +23,7 @@ var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
23
23
 
24
24
 
25
25
 
26
- var _chunkBSA6BJG2js = require('./chunk-BSA6BJG2.js');
26
+ var _chunkKTAQRRS7js = require('./chunk-KTAQRRS7.js');
27
27
 
28
28
 
29
29
 
@@ -41,4 +41,4 @@ var _chunkBSA6BJG2js = require('./chunk-BSA6BJG2.js');
41
41
 
42
42
 
43
43
 
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;
44
+ exports.ClearButton = _chunkE46YP3KMjs.ClearButton_default; exports.Field = _chunkIQ2NGFMEjs.Field_default; exports.FilterButton = _chunkE46YP3KMjs.FilterButton_default; exports.FormWrapper = _chunkE46YP3KMjs.FormWrapper_default; exports.LabelText = _chunkE46YP3KMjs.LabelText_default; exports.ListWrapper = _chunkE46YP3KMjs.ListWrapper_default; exports.SimpleToolbar = _chunkE46YP3KMjs.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,4 +1,3 @@
1
- import "./chunk-2JFL7TS5.mjs";
2
1
  import {
3
2
  ClearButton_default,
4
3
  FilterButton_default,
@@ -6,11 +5,12 @@ import {
6
5
  LabelText_default,
7
6
  ListWrapper_default,
8
7
  SimpleToolbar_default
9
- } from "./chunk-WE5MOMEE.mjs";
8
+ } from "./chunk-POY32C6G.mjs";
9
+ import "./chunk-2JFL7TS5.mjs";
10
10
  import "./chunk-5VR5QVUV.mjs";
11
11
  import {
12
12
  Field_default
13
- } from "./chunk-T5CD2TUF.mjs";
13
+ } from "./chunk-W2WJWT42.mjs";
14
14
  import {
15
15
  useTransform
16
16
  } from "./chunk-GFSTK7KN.mjs";
@@ -23,7 +23,7 @@ import {
23
23
  readValueAsDate,
24
24
  removeLeadingTrailingSlashes,
25
25
  schemaTools
26
- } from "./chunk-44LP4RZD.mjs";
26
+ } from "./chunk-NIG6OXKY.mjs";
27
27
  export {
28
28
  ClearButton_default as ClearButton,
29
29
  Field_default as Field,
@@ -1,6 +1,23 @@
1
- export { A as ApiResponse, V as ValidationErrors } from '../ApiResponse-DWjEML13.mjs';
1
+ import { GridSortModel } from '@mui/x-data-grid';
2
2
  export { A as AsyncSelectPayload } from '../AsyncSelectPayload-DHN-R3gc.mjs';
3
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
+
4
21
  type OptionItem = {
5
22
  label: string;
6
23
  value: string;
@@ -20,10 +37,7 @@ type PostModel<TFilterModel> = {
20
37
  pageSize: number;
21
38
  sortField: string | null;
22
39
  sortOrder: "asc" | "desc" | null | undefined;
23
- sortModel?: {
24
- sortField: string | null;
25
- sortDirection: string | null;
26
- };
40
+ sortModel?: GridSortModel;
27
41
  };
28
42
  type ListResponse<TGridModel> = {
29
43
  data: TGridModel[];
@@ -34,4 +48,4 @@ type ValueLabel = {
34
48
  label: number;
35
49
  };
36
50
 
37
- export type { AsyncMultiSelectPayload, ListResponse, OptionItem, OptionItem2, PostModel, ValueLabel };
51
+ export type { ApiResponse, AsyncMultiSelectPayload, ListResponse, OptionItem, OptionItem2, PostModel, ValidationErrors, ValueLabel };
@@ -1,6 +1,23 @@
1
- export { A as ApiResponse, V as ValidationErrors } from '../ApiResponse-DWjEML13.js';
1
+ import { GridSortModel } from '@mui/x-data-grid';
2
2
  export { A as AsyncSelectPayload } from '../AsyncSelectPayload-DHN-R3gc.js';
3
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
+
4
21
  type OptionItem = {
5
22
  label: string;
6
23
  value: string;
@@ -20,10 +37,7 @@ type PostModel<TFilterModel> = {
20
37
  pageSize: number;
21
38
  sortField: string | null;
22
39
  sortOrder: "asc" | "desc" | null | undefined;
23
- sortModel?: {
24
- sortField: string | null;
25
- sortDirection: string | null;
26
- };
40
+ sortModel?: GridSortModel;
27
41
  };
28
42
  type ListResponse<TGridModel> = {
29
43
  data: TGridModel[];
@@ -34,4 +48,4 @@ type ValueLabel = {
34
48
  label: number;
35
49
  };
36
50
 
37
- 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.11",
3
+ "version": "2.18.0",
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 };