@gnwebsoft/ui 2.17.0 → 2.17.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.
@@ -0,0 +1,6 @@
1
+ type AsyncSelectPayload = {
2
+ query: string | null;
3
+ initialValue?: number | null;
4
+ };
5
+
6
+ export type { AsyncSelectPayload as A };
@@ -0,0 +1,6 @@
1
+ type AsyncSelectPayload = {
2
+ query: string | null;
3
+ initialValue?: number | null;
4
+ };
5
+
6
+ export type { AsyncSelectPayload as A };
package/dist/index.d.mts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { FilterButton, FormWrapper, LabelText, ListWrapper, SimpleToolbar } from './components/index.mjs';
2
2
  export { UseTransformOptions, UseTransformReturn, useTransform } from './hooks/index.mjs';
3
- export { AsyncMultiSelectPayload, OptionItem, OptionItem2, ValidationErrors } from './types/index.mjs';
3
+ export { ApiResponse, AsyncMultiSelectPayload, OptionItem, OptionItem2, ValidationErrors } from './types/index.mjs';
4
+ export { A as AsyncSelectPayload } from './AsyncSelectPayload-DHN-R3gc.mjs';
4
5
  export { flattenObjectKeys, getTimezone, propertyExists, readValueAsDate, removeLeadingTrailingSlashes } from './utils/index.mjs';
5
6
  export { Field } from './wrappers/index.mjs';
6
7
  import 'react/jsx-runtime';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { FilterButton, FormWrapper, LabelText, ListWrapper, SimpleToolbar } from './components/index.js';
2
2
  export { UseTransformOptions, UseTransformReturn, useTransform } from './hooks/index.js';
3
- export { AsyncMultiSelectPayload, OptionItem, OptionItem2, ValidationErrors } from './types/index.js';
3
+ export { ApiResponse, AsyncMultiSelectPayload, OptionItem, OptionItem2, ValidationErrors } from './types/index.js';
4
+ export { A as AsyncSelectPayload } from './AsyncSelectPayload-DHN-R3gc.js';
4
5
  export { flattenObjectKeys, getTimezone, propertyExists, readValueAsDate, removeLeadingTrailingSlashes } from './utils/index.js';
5
6
  export { Field } from './wrappers/index.js';
6
7
  import 'react/jsx-runtime';
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  var _chunkPCTIEZLNjs = require('./chunk-PCTIEZLN.js');
8
8
  require('./chunk-7M2VOCYN.js');
9
- require('./chunk-SK6Y2YH6.js');
9
+ require('./chunk-TLJXC46A.js');
10
10
 
11
11
 
12
12
  var _chunkXMOYASC5js = require('./chunk-XMOYASC5.js');
package/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  SimpleToolbar_default
7
7
  } from "./chunk-2LTU3GNL.mjs";
8
8
  import "./chunk-2JFL7TS5.mjs";
9
- import "./chunk-IJXNDCK2.mjs";
9
+ import "./chunk-5VR5QVUV.mjs";
10
10
  import {
11
11
  Field_default
12
12
  } from "./chunk-JCZNO267.mjs";
@@ -1,3 +1,22 @@
1
+ export { A as AsyncSelectPayload } from '../AsyncSelectPayload-DHN-R3gc.mjs';
2
+
3
+ type ValidationErrors = {
4
+ [field: string]: string | string[] | boolean | {
5
+ key: string;
6
+ message: string;
7
+ };
8
+ };
9
+
10
+ type ApiResponse<TModel> = {
11
+ type?: string;
12
+ title?: string;
13
+ status?: number;
14
+ traceId?: string;
15
+ errors?: ValidationErrors;
16
+ modelErrors?: boolean;
17
+ apiData?: TModel;
18
+ };
19
+
1
20
  type OptionItem = {
2
21
  label: string;
3
22
  value: string;
@@ -11,11 +30,4 @@ type OptionItem2 = {
11
30
  value: number;
12
31
  };
13
32
 
14
- type ValidationErrors = {
15
- [field: string]: string | string[] | boolean | {
16
- key: string;
17
- message: string;
18
- };
19
- };
20
-
21
- export type { AsyncMultiSelectPayload, OptionItem, OptionItem2, ValidationErrors };
33
+ export type { ApiResponse, AsyncMultiSelectPayload, OptionItem, OptionItem2, ValidationErrors };
@@ -1,3 +1,22 @@
1
+ export { A as AsyncSelectPayload } from '../AsyncSelectPayload-DHN-R3gc.js';
2
+
3
+ type ValidationErrors = {
4
+ [field: string]: string | string[] | boolean | {
5
+ key: string;
6
+ message: string;
7
+ };
8
+ };
9
+
10
+ type ApiResponse<TModel> = {
11
+ type?: string;
12
+ title?: string;
13
+ status?: number;
14
+ traceId?: string;
15
+ errors?: ValidationErrors;
16
+ modelErrors?: boolean;
17
+ apiData?: TModel;
18
+ };
19
+
1
20
  type OptionItem = {
2
21
  label: string;
3
22
  value: string;
@@ -11,11 +30,4 @@ type OptionItem2 = {
11
30
  value: number;
12
31
  };
13
32
 
14
- type ValidationErrors = {
15
- [field: string]: string | string[] | boolean | {
16
- key: string;
17
- message: string;
18
- };
19
- };
20
-
21
- export type { AsyncMultiSelectPayload, OptionItem, OptionItem2, ValidationErrors };
33
+ export type { ApiResponse, AsyncMultiSelectPayload, OptionItem, OptionItem2, ValidationErrors };
@@ -1 +1 @@
1
- "use strict";require('../chunk-SK6Y2YH6.js');
1
+ "use strict";require('../chunk-TLJXC46A.js');
@@ -1 +1 @@
1
- import "../chunk-IJXNDCK2.mjs";
1
+ import "../chunk-5VR5QVUV.mjs";
@@ -1,3 +1,4 @@
1
+ import { A as AsyncSelectPayload } from '../AsyncSelectPayload-DHN-R3gc.mjs';
1
2
  import { ChipTypeMap, AutocompleteProps, Grid2Props, TextFieldProps, IconButtonProps, FormControlLabelProps, FormLabelProps, RadioProps, CheckboxProps, TextField } from '@mui/material';
2
3
  import * as react_hook_form from 'react-hook-form';
3
4
  import { FieldValues, FieldPath, Control, UseControllerProps, FieldError, PathValue } from 'react-hook-form';
@@ -22,10 +23,6 @@ type AsyncSelectElementProps<TFieldValues extends FieldValues = FieldValues, TNa
22
23
  initialValue?: number | null;
23
24
  queryFn: (data: AsyncSelectPayload) => Promise<TValue[] | undefined>;
24
25
  };
25
- type AsyncSelectPayload = {
26
- query: string | null;
27
- initialValue?: number | null;
28
- };
29
26
 
30
27
  type SelectCascadeElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue extends {
31
28
  value: number | boolean;
@@ -1,3 +1,4 @@
1
+ import { A as AsyncSelectPayload } from '../AsyncSelectPayload-DHN-R3gc.js';
1
2
  import { ChipTypeMap, AutocompleteProps, Grid2Props, TextFieldProps, IconButtonProps, FormControlLabelProps, FormLabelProps, RadioProps, CheckboxProps, TextField } from '@mui/material';
2
3
  import * as react_hook_form from 'react-hook-form';
3
4
  import { FieldValues, FieldPath, Control, UseControllerProps, FieldError, PathValue } from 'react-hook-form';
@@ -22,10 +23,6 @@ type AsyncSelectElementProps<TFieldValues extends FieldValues = FieldValues, TNa
22
23
  initialValue?: number | null;
23
24
  queryFn: (data: AsyncSelectPayload) => Promise<TValue[] | undefined>;
24
25
  };
25
- type AsyncSelectPayload = {
26
- query: string | null;
27
- initialValue?: number | null;
28
- };
29
26
 
30
27
  type SelectCascadeElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue extends {
31
28
  value: number | boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnwebsoft/ui",
3
- "version": "2.17.0",
3
+ "version": "2.17.1",
4
4
  "description": "A set of reusable wrappers for MUI v6",
5
5
  "author": "GNWebsoft Private Limited",
6
6
  "license": "",
File without changes
File without changes