@gnwebsoft/ui 2.18.47 → 2.18.49
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/chunk-7E3IFHIS.mjs +1890 -0
- package/dist/chunk-TFNX5LRO.js +1890 -0
- package/dist/index.js +6 -2
- package/dist/index.mjs +5 -1
- package/dist/wrappers3/index.js +8 -0
- package/dist/wrappers3/index.mjs +8 -0
- package/package.json +1 -1
- package/dist/AsyncSelectPayload-Cz4bgak0.d.mts +0 -10
- package/dist/AsyncSelectPayload-Cz4bgak0.d.ts +0 -10
- package/dist/OptionItem-oN6XnOTJ.d.mts +0 -14
- package/dist/OptionItem-oN6XnOTJ.d.ts +0 -14
- package/dist/components/index.d.mts +0 -103
- package/dist/components/index.d.ts +0 -103
- package/dist/hooks/index.d.mts +0 -17
- package/dist/hooks/index.d.ts +0 -17
- package/dist/index.d.mts +0 -18
- package/dist/index.d.ts +0 -18
- package/dist/types/index.d.mts +0 -44
- package/dist/types/index.d.ts +0 -44
- package/dist/utils/index.d.mts +0 -59
- package/dist/utils/index.d.ts +0 -59
- package/dist/wrappers/index.d.mts +0 -220
- package/dist/wrappers/index.d.ts +0 -220
- package/dist/wrappers2/index.d.mts +0 -247
- package/dist/wrappers2/index.d.ts +0 -247
package/dist/index.js
CHANGED
|
@@ -11,15 +11,18 @@
|
|
|
11
11
|
|
|
12
12
|
var _chunkJKUOV3MNjs = require('./chunk-JKUOV3MN.js');
|
|
13
13
|
require('./chunk-7M2VOCYN.js');
|
|
14
|
+
require('./chunk-6BGQA4BQ.js');
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
var _chunkPTW4AAPVjs = require('./chunk-PTW4AAPV.js');
|
|
17
|
-
require('./chunk-6BGQA4BQ.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunk6NOXJGU2js = require('./chunk-6NOXJGU2.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
+
var _chunkTFNX5LROjs = require('./chunk-TFNX5LRO.js');
|
|
24
|
+
|
|
25
|
+
|
|
23
26
|
var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
|
|
24
27
|
|
|
25
28
|
|
|
@@ -55,4 +58,5 @@ var _chunkI7EIUZKKjs = require('./chunk-I7EIUZKK.js');
|
|
|
55
58
|
|
|
56
59
|
|
|
57
60
|
|
|
58
|
-
|
|
61
|
+
|
|
62
|
+
exports.AuthorizedView = _chunkJKUOV3MNjs.AuthorizedView_default; exports.CancelButton = _chunkJKUOV3MNjs.CancelButton_default; exports.ClearButton = _chunkJKUOV3MNjs.ClearButton_default; exports.Field = _chunkPTW4AAPVjs.Field_default; exports.Field2 = _chunk6NOXJGU2js.Field_default; exports.Field3 = _chunkTFNX5LROjs.Field_default; exports.FilterButton = _chunkJKUOV3MNjs.FilterButton_default; exports.FilterWrapper = _chunkJKUOV3MNjs.FilterWrapper_default; exports.FormWrapper = _chunkJKUOV3MNjs.FormWrapper_default; exports.LabelText = _chunkJKUOV3MNjs.LabelText_default; exports.ListWrapper = _chunkJKUOV3MNjs.ListWrapper_default; exports.SimpleButton = _chunkJKUOV3MNjs.SimpleButton_default; exports.SimpleToolbar = _chunkJKUOV3MNjs.SimpleToolbar_default; exports.api = _chunkI7EIUZKKjs.api; exports.api2 = _chunkI7EIUZKKjs.api2; exports.flattenObjectKeys = _chunkI7EIUZKKjs.flattenObjectKeys; exports.getTimezone = _chunkI7EIUZKKjs.getTimezone; exports.handleServerErrors = _chunkI7EIUZKKjs.handleServerErrors; exports.propertyExists = _chunkI7EIUZKKjs.propertyExists; exports.readValueAsDate = _chunkI7EIUZKKjs.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkI7EIUZKKjs.removeLeadingTrailingSlashes; exports.schemaTools = _chunkI7EIUZKKjs.schemaTools; exports.useTransform = _chunk6JZ35VQJjs.useTransform;
|
package/dist/index.mjs
CHANGED
|
@@ -11,13 +11,16 @@ import {
|
|
|
11
11
|
SimpleToolbar_default
|
|
12
12
|
} from "./chunk-FSU3H777.mjs";
|
|
13
13
|
import "./chunk-2JFL7TS5.mjs";
|
|
14
|
+
import "./chunk-EVPUCTZA.mjs";
|
|
14
15
|
import {
|
|
15
16
|
Field_default
|
|
16
17
|
} from "./chunk-7HVI5RBL.mjs";
|
|
17
|
-
import "./chunk-EVPUCTZA.mjs";
|
|
18
18
|
import {
|
|
19
19
|
Field_default as Field_default2
|
|
20
20
|
} from "./chunk-5HOGPCEO.mjs";
|
|
21
|
+
import {
|
|
22
|
+
Field_default as Field_default3
|
|
23
|
+
} from "./chunk-7E3IFHIS.mjs";
|
|
21
24
|
import {
|
|
22
25
|
useTransform
|
|
23
26
|
} from "./chunk-GFSTK7KN.mjs";
|
|
@@ -38,6 +41,7 @@ export {
|
|
|
38
41
|
ClearButton_default as ClearButton,
|
|
39
42
|
Field_default as Field,
|
|
40
43
|
Field_default2 as Field2,
|
|
44
|
+
Field_default3 as Field3,
|
|
41
45
|
FilterButton_default as FilterButton,
|
|
42
46
|
FilterWrapper_default as FilterWrapper,
|
|
43
47
|
FormWrapper_default as FormWrapper,
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type AsyncSelectPayload = {
|
|
2
|
-
query: string | null;
|
|
3
|
-
initialValue?: string | number | null;
|
|
4
|
-
};
|
|
5
|
-
type AsyncSelectMultiPayload = {
|
|
6
|
-
query: string | null;
|
|
7
|
-
initialValues?: string[] | number[] | null;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export type { AsyncSelectPayload as A, AsyncSelectMultiPayload as a };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type AsyncSelectPayload = {
|
|
2
|
-
query: string | null;
|
|
3
|
-
initialValue?: string | number | null;
|
|
4
|
-
};
|
|
5
|
-
type AsyncSelectMultiPayload = {
|
|
6
|
-
query: string | null;
|
|
7
|
-
initialValues?: string[] | number[] | null;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export type { AsyncSelectPayload as A, AsyncSelectMultiPayload as a };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
type OptionItem = {
|
|
2
|
-
Label: string;
|
|
3
|
-
Value: string;
|
|
4
|
-
};
|
|
5
|
-
type AsyncMultiSelectPayload = {
|
|
6
|
-
query: string | null;
|
|
7
|
-
initialValues?: string[] | number[] | null;
|
|
8
|
-
};
|
|
9
|
-
type OptionItem2 = {
|
|
10
|
-
Label: string;
|
|
11
|
-
Value: number | string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export type { AsyncMultiSelectPayload as A, OptionItem as O, OptionItem2 as a };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
type OptionItem = {
|
|
2
|
-
Label: string;
|
|
3
|
-
Value: string;
|
|
4
|
-
};
|
|
5
|
-
type AsyncMultiSelectPayload = {
|
|
6
|
-
query: string | null;
|
|
7
|
-
initialValues?: string[] | number[] | null;
|
|
8
|
-
};
|
|
9
|
-
type OptionItem2 = {
|
|
10
|
-
Label: string;
|
|
11
|
-
Value: number | string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export type { AsyncMultiSelectPayload as A, OptionItem as O, OptionItem2 as a };
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { SxProps, ButtonTypeMap } from '@mui/material';
|
|
3
|
-
import { PropsWithChildren, ReactNode } from 'react';
|
|
4
|
-
import { OverrideProps } from '@mui/material/OverridableComponent';
|
|
5
|
-
|
|
6
|
-
type ClearButtonProps = {
|
|
7
|
-
isSubmitting: boolean;
|
|
8
|
-
handleClear: () => void;
|
|
9
|
-
sx?: SxProps;
|
|
10
|
-
storeKey?: string;
|
|
11
|
-
};
|
|
12
|
-
declare const ClearButton: ({ isSubmitting, handleClear, sx, storeKey, }: ClearButtonProps) => react_jsx_runtime.JSX.Element;
|
|
13
|
-
|
|
14
|
-
type FilterButtonProps = {
|
|
15
|
-
isSubmitting: boolean;
|
|
16
|
-
show?: boolean;
|
|
17
|
-
title?: string;
|
|
18
|
-
icon?: React.ReactNode;
|
|
19
|
-
sx?: SxProps;
|
|
20
|
-
iconSx?: SxProps;
|
|
21
|
-
};
|
|
22
|
-
declare const FilterButton: ({ isSubmitting, show, title, icon, sx, iconSx, }: FilterButtonProps) => react_jsx_runtime.JSX.Element;
|
|
23
|
-
|
|
24
|
-
type FilterWrapperProps = PropsWithChildren<{
|
|
25
|
-
title?: string;
|
|
26
|
-
filterCount?: number;
|
|
27
|
-
cardSx?: SxProps;
|
|
28
|
-
textSx?: SxProps;
|
|
29
|
-
icon?: ReactNode;
|
|
30
|
-
iconSx?: SxProps;
|
|
31
|
-
showCount?: boolean;
|
|
32
|
-
}>;
|
|
33
|
-
declare const FilterWrapper: ({ children, title, filterCount, cardSx, textSx, icon, iconSx, showCount, }: FilterWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
34
|
-
|
|
35
|
-
type FormWrapper = PropsWithChildren<{
|
|
36
|
-
title: string;
|
|
37
|
-
editMode?: boolean;
|
|
38
|
-
icon?: ReactNode;
|
|
39
|
-
cardSx?: SxProps;
|
|
40
|
-
textSx?: SxProps;
|
|
41
|
-
actionButton?: ReactNode;
|
|
42
|
-
}>;
|
|
43
|
-
declare const FormWrapper: ({ children, title, editMode, cardSx, textSx, icon, actionButton, }: FormWrapper) => react_jsx_runtime.JSX.Element;
|
|
44
|
-
|
|
45
|
-
type LabelTextProps = {
|
|
46
|
-
label: string;
|
|
47
|
-
value: React.ReactNode;
|
|
48
|
-
gridSize?: {
|
|
49
|
-
labelSize: {
|
|
50
|
-
xs: number;
|
|
51
|
-
sm: number;
|
|
52
|
-
md: number;
|
|
53
|
-
};
|
|
54
|
-
valueSize: {
|
|
55
|
-
xs: number;
|
|
56
|
-
sm: number;
|
|
57
|
-
md: number;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
containerSize?: {
|
|
61
|
-
xs: number;
|
|
62
|
-
sm: number;
|
|
63
|
-
md: number;
|
|
64
|
-
};
|
|
65
|
-
labelSx?: SxProps;
|
|
66
|
-
valueSx?: SxProps;
|
|
67
|
-
};
|
|
68
|
-
declare const LabelText: ({ label, value, gridSize, containerSize, labelSx, valueSx, }: LabelTextProps) => react_jsx_runtime.JSX.Element;
|
|
69
|
-
|
|
70
|
-
type ListWrapperProps = PropsWithChildren<{
|
|
71
|
-
title?: string;
|
|
72
|
-
count?: number;
|
|
73
|
-
show?: boolean;
|
|
74
|
-
actionButton?: ReactNode;
|
|
75
|
-
cardSx?: SxProps;
|
|
76
|
-
textSx?: SxProps;
|
|
77
|
-
icon?: ReactNode;
|
|
78
|
-
showCount?: boolean;
|
|
79
|
-
iconSx?: SxProps;
|
|
80
|
-
}>;
|
|
81
|
-
declare const ListWrapper: ({ children, title, count, show, actionButton, cardSx, textSx, icon, iconSx, showCount, }: ListWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
82
|
-
|
|
83
|
-
declare const SimpleToolbar: () => react_jsx_runtime.JSX.Element;
|
|
84
|
-
|
|
85
|
-
type SimpleButtonProps<RootComponent extends React.ElementType = ButtonTypeMap["defaultComponent"], AdditionalProps = {}> = OverrideProps<ButtonTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
|
86
|
-
component?: React.ElementType;
|
|
87
|
-
show?: boolean;
|
|
88
|
-
};
|
|
89
|
-
declare const SimpleButton: (props: SimpleButtonProps) => react_jsx_runtime.JSX.Element;
|
|
90
|
-
|
|
91
|
-
type AuthorizedViewProps = PropsWithChildren & {
|
|
92
|
-
show: boolean;
|
|
93
|
-
};
|
|
94
|
-
declare const AuthorizedView: ({ children, show }: AuthorizedViewProps) => react_jsx_runtime.JSX.Element;
|
|
95
|
-
|
|
96
|
-
type CancelButtonProps = {
|
|
97
|
-
isSubmitting: boolean;
|
|
98
|
-
handleCancel: () => void;
|
|
99
|
-
sx?: SxProps;
|
|
100
|
-
};
|
|
101
|
-
declare const CancelButton: ({ isSubmitting, handleCancel, sx, }: CancelButtonProps) => react_jsx_runtime.JSX.Element;
|
|
102
|
-
|
|
103
|
-
export { AuthorizedView, CancelButton, ClearButton, FilterButton, FilterWrapper, FormWrapper, LabelText, ListWrapper, SimpleButton, SimpleToolbar };
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { SxProps, ButtonTypeMap } from '@mui/material';
|
|
3
|
-
import { PropsWithChildren, ReactNode } from 'react';
|
|
4
|
-
import { OverrideProps } from '@mui/material/OverridableComponent';
|
|
5
|
-
|
|
6
|
-
type ClearButtonProps = {
|
|
7
|
-
isSubmitting: boolean;
|
|
8
|
-
handleClear: () => void;
|
|
9
|
-
sx?: SxProps;
|
|
10
|
-
storeKey?: string;
|
|
11
|
-
};
|
|
12
|
-
declare const ClearButton: ({ isSubmitting, handleClear, sx, storeKey, }: ClearButtonProps) => react_jsx_runtime.JSX.Element;
|
|
13
|
-
|
|
14
|
-
type FilterButtonProps = {
|
|
15
|
-
isSubmitting: boolean;
|
|
16
|
-
show?: boolean;
|
|
17
|
-
title?: string;
|
|
18
|
-
icon?: React.ReactNode;
|
|
19
|
-
sx?: SxProps;
|
|
20
|
-
iconSx?: SxProps;
|
|
21
|
-
};
|
|
22
|
-
declare const FilterButton: ({ isSubmitting, show, title, icon, sx, iconSx, }: FilterButtonProps) => react_jsx_runtime.JSX.Element;
|
|
23
|
-
|
|
24
|
-
type FilterWrapperProps = PropsWithChildren<{
|
|
25
|
-
title?: string;
|
|
26
|
-
filterCount?: number;
|
|
27
|
-
cardSx?: SxProps;
|
|
28
|
-
textSx?: SxProps;
|
|
29
|
-
icon?: ReactNode;
|
|
30
|
-
iconSx?: SxProps;
|
|
31
|
-
showCount?: boolean;
|
|
32
|
-
}>;
|
|
33
|
-
declare const FilterWrapper: ({ children, title, filterCount, cardSx, textSx, icon, iconSx, showCount, }: FilterWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
34
|
-
|
|
35
|
-
type FormWrapper = PropsWithChildren<{
|
|
36
|
-
title: string;
|
|
37
|
-
editMode?: boolean;
|
|
38
|
-
icon?: ReactNode;
|
|
39
|
-
cardSx?: SxProps;
|
|
40
|
-
textSx?: SxProps;
|
|
41
|
-
actionButton?: ReactNode;
|
|
42
|
-
}>;
|
|
43
|
-
declare const FormWrapper: ({ children, title, editMode, cardSx, textSx, icon, actionButton, }: FormWrapper) => react_jsx_runtime.JSX.Element;
|
|
44
|
-
|
|
45
|
-
type LabelTextProps = {
|
|
46
|
-
label: string;
|
|
47
|
-
value: React.ReactNode;
|
|
48
|
-
gridSize?: {
|
|
49
|
-
labelSize: {
|
|
50
|
-
xs: number;
|
|
51
|
-
sm: number;
|
|
52
|
-
md: number;
|
|
53
|
-
};
|
|
54
|
-
valueSize: {
|
|
55
|
-
xs: number;
|
|
56
|
-
sm: number;
|
|
57
|
-
md: number;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
containerSize?: {
|
|
61
|
-
xs: number;
|
|
62
|
-
sm: number;
|
|
63
|
-
md: number;
|
|
64
|
-
};
|
|
65
|
-
labelSx?: SxProps;
|
|
66
|
-
valueSx?: SxProps;
|
|
67
|
-
};
|
|
68
|
-
declare const LabelText: ({ label, value, gridSize, containerSize, labelSx, valueSx, }: LabelTextProps) => react_jsx_runtime.JSX.Element;
|
|
69
|
-
|
|
70
|
-
type ListWrapperProps = PropsWithChildren<{
|
|
71
|
-
title?: string;
|
|
72
|
-
count?: number;
|
|
73
|
-
show?: boolean;
|
|
74
|
-
actionButton?: ReactNode;
|
|
75
|
-
cardSx?: SxProps;
|
|
76
|
-
textSx?: SxProps;
|
|
77
|
-
icon?: ReactNode;
|
|
78
|
-
showCount?: boolean;
|
|
79
|
-
iconSx?: SxProps;
|
|
80
|
-
}>;
|
|
81
|
-
declare const ListWrapper: ({ children, title, count, show, actionButton, cardSx, textSx, icon, iconSx, showCount, }: ListWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
82
|
-
|
|
83
|
-
declare const SimpleToolbar: () => react_jsx_runtime.JSX.Element;
|
|
84
|
-
|
|
85
|
-
type SimpleButtonProps<RootComponent extends React.ElementType = ButtonTypeMap["defaultComponent"], AdditionalProps = {}> = OverrideProps<ButtonTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
|
86
|
-
component?: React.ElementType;
|
|
87
|
-
show?: boolean;
|
|
88
|
-
};
|
|
89
|
-
declare const SimpleButton: (props: SimpleButtonProps) => react_jsx_runtime.JSX.Element;
|
|
90
|
-
|
|
91
|
-
type AuthorizedViewProps = PropsWithChildren & {
|
|
92
|
-
show: boolean;
|
|
93
|
-
};
|
|
94
|
-
declare const AuthorizedView: ({ children, show }: AuthorizedViewProps) => react_jsx_runtime.JSX.Element;
|
|
95
|
-
|
|
96
|
-
type CancelButtonProps = {
|
|
97
|
-
isSubmitting: boolean;
|
|
98
|
-
handleCancel: () => void;
|
|
99
|
-
sx?: SxProps;
|
|
100
|
-
};
|
|
101
|
-
declare const CancelButton: ({ isSubmitting, handleCancel, sx, }: CancelButtonProps) => react_jsx_runtime.JSX.Element;
|
|
102
|
-
|
|
103
|
-
export { AuthorizedView, CancelButton, ClearButton, FilterButton, FilterWrapper, FormWrapper, LabelText, ListWrapper, SimpleButton, SimpleToolbar };
|
package/dist/hooks/index.d.mts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FieldValues, FieldPath, UseControllerReturn, PathValue } from 'react-hook-form';
|
|
2
|
-
|
|
3
|
-
type UseTransformOptions<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue = unknown> = {
|
|
4
|
-
value: UseControllerReturn<TFieldValues, TName>["field"]["value"];
|
|
5
|
-
onChange: UseControllerReturn<TFieldValues, TName>["field"]["onChange"];
|
|
6
|
-
transform?: {
|
|
7
|
-
input?: (value: PathValue<TFieldValues, TName>) => TValue;
|
|
8
|
-
output?: (...event: any[]) => PathValue<TFieldValues, TName>;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
type UseTransformReturn<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue = unknown> = {
|
|
12
|
-
value: TValue;
|
|
13
|
-
onChange: UseControllerReturn<TFieldValues, TName>["field"]["onChange"];
|
|
14
|
-
};
|
|
15
|
-
declare function useTransform<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue = unknown>(options: UseTransformOptions<TFieldValues, TName, TValue>): UseTransformReturn<TFieldValues, TName, TValue>;
|
|
16
|
-
|
|
17
|
-
export { type UseTransformOptions, type UseTransformReturn, useTransform };
|
package/dist/hooks/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FieldValues, FieldPath, UseControllerReturn, PathValue } from 'react-hook-form';
|
|
2
|
-
|
|
3
|
-
type UseTransformOptions<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue = unknown> = {
|
|
4
|
-
value: UseControllerReturn<TFieldValues, TName>["field"]["value"];
|
|
5
|
-
onChange: UseControllerReturn<TFieldValues, TName>["field"]["onChange"];
|
|
6
|
-
transform?: {
|
|
7
|
-
input?: (value: PathValue<TFieldValues, TName>) => TValue;
|
|
8
|
-
output?: (...event: any[]) => PathValue<TFieldValues, TName>;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
type UseTransformReturn<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue = unknown> = {
|
|
12
|
-
value: TValue;
|
|
13
|
-
onChange: UseControllerReturn<TFieldValues, TName>["field"]["onChange"];
|
|
14
|
-
};
|
|
15
|
-
declare function useTransform<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue = unknown>(options: UseTransformOptions<TFieldValues, TName, TValue>): UseTransformReturn<TFieldValues, TName, TValue>;
|
|
16
|
-
|
|
17
|
-
export { type UseTransformOptions, type UseTransformReturn, useTransform };
|
package/dist/index.d.mts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export { AuthorizedView, CancelButton, ClearButton, FilterButton, FilterWrapper, FormWrapper, LabelText, ListWrapper, SimpleButton, SimpleToolbar } from './components/index.mjs';
|
|
2
|
-
export { UseTransformOptions, UseTransformReturn, useTransform } from './hooks/index.mjs';
|
|
3
|
-
export { ApiResponse, ListResponse, OperationResponse, PostModel, ValidationErrors, ValueLabel } from './types/index.mjs';
|
|
4
|
-
export { api, api2, flattenObjectKeys, getTimezone, handleServerErrors, propertyExists, readValueAsDate, removeLeadingTrailingSlashes, schemaTools } from './utils/index.mjs';
|
|
5
|
-
export { Field } from './wrappers/index.mjs';
|
|
6
|
-
export { Field2 } from './wrappers2/index.mjs';
|
|
7
|
-
export { a as AsyncSelectMultiPayload, A as AsyncSelectPayload } from './AsyncSelectPayload-Cz4bgak0.mjs';
|
|
8
|
-
export { A as AsyncMultiSelectPayload, O as OptionItem, a as OptionItem2 } from './OptionItem-oN6XnOTJ.mjs';
|
|
9
|
-
import 'react/jsx-runtime';
|
|
10
|
-
import '@mui/material';
|
|
11
|
-
import 'react';
|
|
12
|
-
import '@mui/material/OverridableComponent';
|
|
13
|
-
import 'react-hook-form';
|
|
14
|
-
import '@mui/x-data-grid';
|
|
15
|
-
import '@mui/x-date-pickers';
|
|
16
|
-
import '@mui/x-date-pickers/internals';
|
|
17
|
-
import 'zod';
|
|
18
|
-
import '@mui/x-date-pickers/models';
|
package/dist/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export { AuthorizedView, CancelButton, ClearButton, FilterButton, FilterWrapper, FormWrapper, LabelText, ListWrapper, SimpleButton, SimpleToolbar } from './components/index.js';
|
|
2
|
-
export { UseTransformOptions, UseTransformReturn, useTransform } from './hooks/index.js';
|
|
3
|
-
export { ApiResponse, ListResponse, OperationResponse, PostModel, ValidationErrors, ValueLabel } from './types/index.js';
|
|
4
|
-
export { api, api2, flattenObjectKeys, getTimezone, handleServerErrors, propertyExists, readValueAsDate, removeLeadingTrailingSlashes, schemaTools } from './utils/index.js';
|
|
5
|
-
export { Field } from './wrappers/index.js';
|
|
6
|
-
export { Field2 } from './wrappers2/index.js';
|
|
7
|
-
export { a as AsyncSelectMultiPayload, A as AsyncSelectPayload } from './AsyncSelectPayload-Cz4bgak0.js';
|
|
8
|
-
export { A as AsyncMultiSelectPayload, O as OptionItem, a as OptionItem2 } from './OptionItem-oN6XnOTJ.js';
|
|
9
|
-
import 'react/jsx-runtime';
|
|
10
|
-
import '@mui/material';
|
|
11
|
-
import 'react';
|
|
12
|
-
import '@mui/material/OverridableComponent';
|
|
13
|
-
import 'react-hook-form';
|
|
14
|
-
import '@mui/x-data-grid';
|
|
15
|
-
import '@mui/x-date-pickers';
|
|
16
|
-
import '@mui/x-date-pickers/internals';
|
|
17
|
-
import 'zod';
|
|
18
|
-
import '@mui/x-date-pickers/models';
|
package/dist/types/index.d.mts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { GridSortModel } from '@mui/x-data-grid';
|
|
2
|
-
export { a as AsyncSelectMultiPayload, A as AsyncSelectPayload } from '../AsyncSelectPayload-Cz4bgak0.mjs';
|
|
3
|
-
export { A as AsyncMultiSelectPayload, O as OptionItem, a as OptionItem2 } from '../OptionItem-oN6XnOTJ.mjs';
|
|
4
|
-
|
|
5
|
-
type ValidationErrors = {
|
|
6
|
-
[field: string]: string | string[] | boolean | {
|
|
7
|
-
key: string;
|
|
8
|
-
message: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
type ApiResponse<TModel> = {
|
|
13
|
-
type?: string;
|
|
14
|
-
title?: string;
|
|
15
|
-
status?: number;
|
|
16
|
-
traceId?: string;
|
|
17
|
-
errors?: ValidationErrors;
|
|
18
|
-
modelErrors?: boolean;
|
|
19
|
-
apiData?: TModel;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
type OperationResponse = {
|
|
23
|
-
id?: number;
|
|
24
|
-
rowsAffected: number;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
type PostModel<TFilterModel> = {
|
|
28
|
-
filterModel?: TFilterModel;
|
|
29
|
-
pageOffset: number;
|
|
30
|
-
pageSize: number;
|
|
31
|
-
sortField: string | null;
|
|
32
|
-
sortOrder: "asc" | "desc" | null | undefined;
|
|
33
|
-
sortModel?: GridSortModel;
|
|
34
|
-
};
|
|
35
|
-
type ListResponse<TGridModel> = {
|
|
36
|
-
Data: TGridModel[];
|
|
37
|
-
Total: number;
|
|
38
|
-
};
|
|
39
|
-
type ValueLabel = {
|
|
40
|
-
Value: number | string;
|
|
41
|
-
Label: string;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export type { ApiResponse, ListResponse, OperationResponse, PostModel, ValidationErrors, ValueLabel };
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { GridSortModel } from '@mui/x-data-grid';
|
|
2
|
-
export { a as AsyncSelectMultiPayload, A as AsyncSelectPayload } from '../AsyncSelectPayload-Cz4bgak0.js';
|
|
3
|
-
export { A as AsyncMultiSelectPayload, O as OptionItem, a as OptionItem2 } from '../OptionItem-oN6XnOTJ.js';
|
|
4
|
-
|
|
5
|
-
type ValidationErrors = {
|
|
6
|
-
[field: string]: string | string[] | boolean | {
|
|
7
|
-
key: string;
|
|
8
|
-
message: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
type ApiResponse<TModel> = {
|
|
13
|
-
type?: string;
|
|
14
|
-
title?: string;
|
|
15
|
-
status?: number;
|
|
16
|
-
traceId?: string;
|
|
17
|
-
errors?: ValidationErrors;
|
|
18
|
-
modelErrors?: boolean;
|
|
19
|
-
apiData?: TModel;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
type OperationResponse = {
|
|
23
|
-
id?: number;
|
|
24
|
-
rowsAffected: number;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
type PostModel<TFilterModel> = {
|
|
28
|
-
filterModel?: TFilterModel;
|
|
29
|
-
pageOffset: number;
|
|
30
|
-
pageSize: number;
|
|
31
|
-
sortField: string | null;
|
|
32
|
-
sortOrder: "asc" | "desc" | null | undefined;
|
|
33
|
-
sortModel?: GridSortModel;
|
|
34
|
-
};
|
|
35
|
-
type ListResponse<TGridModel> = {
|
|
36
|
-
Data: TGridModel[];
|
|
37
|
-
Total: number;
|
|
38
|
-
};
|
|
39
|
-
type ValueLabel = {
|
|
40
|
-
Value: number | string;
|
|
41
|
-
Label: string;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export type { ApiResponse, ListResponse, OperationResponse, PostModel, ValidationErrors, ValueLabel };
|
package/dist/utils/index.d.mts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { PostModel, ApiResponse, ListResponse, ValidationErrors } from '../types/index.mjs';
|
|
2
|
-
import { PickerValidDate } from '@mui/x-date-pickers';
|
|
3
|
-
import { useLocalizationContext } from '@mui/x-date-pickers/internals';
|
|
4
|
-
import { FieldValues, UseFormSetError } from 'react-hook-form';
|
|
5
|
-
import { z } from 'zod';
|
|
6
|
-
import '@mui/x-data-grid';
|
|
7
|
-
import '../AsyncSelectPayload-Cz4bgak0.mjs';
|
|
8
|
-
import '../OptionItem-oN6XnOTJ.mjs';
|
|
9
|
-
|
|
10
|
-
declare class api {
|
|
11
|
-
static filter<T, TFilter>(url: string, postModel: PostModel<TFilter>): Promise<ApiResponse<ListResponse<T>>>;
|
|
12
|
-
static post<T>(url: string, body?: any): Promise<ApiResponse<T>>;
|
|
13
|
-
static get<T>(url: string): Promise<ApiResponse<T>>;
|
|
14
|
-
static delete<T>(url: string): Promise<ApiResponse<T>>;
|
|
15
|
-
static put<T>(url: string, body?: any): Promise<ApiResponse<T>>;
|
|
16
|
-
static fetch(url: string, options?: any): Promise<Response>;
|
|
17
|
-
static tempFetch<T>(url: string, options?: any): Promise<ApiResponse<T>>;
|
|
18
|
-
static upload<T>(url: string, formData: FormData): Promise<ApiResponse<T>>;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare class api2 {
|
|
22
|
-
static filter<T, TFilter>(url: string, postModel: PostModel<TFilter>): Promise<ApiResponse<ListResponse<T>>>;
|
|
23
|
-
static post<T>(url: string, body?: any): Promise<ApiResponse<T>>;
|
|
24
|
-
static get<T>(url: string): Promise<ApiResponse<T>>;
|
|
25
|
-
static delete<T>(url: string): Promise<ApiResponse<T>>;
|
|
26
|
-
static put<T>(url: string, body?: any): Promise<ApiResponse<T>>;
|
|
27
|
-
static fetch(url: string, options?: any): Promise<Response>;
|
|
28
|
-
static tempFetch<T>(url: string, options?: any): Promise<ApiResponse<T>>;
|
|
29
|
-
static upload<T>(url: string, formData: FormData): Promise<ApiResponse<T>>;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
declare const flattenObjectKeys: (obj: any, prefix?: string) => {
|
|
33
|
-
[x: string]: any;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
declare function getTimezone<TDate extends PickerValidDate>(adapter: ReturnType<typeof useLocalizationContext>, value: TDate): string | null;
|
|
37
|
-
|
|
38
|
-
type HandleServerErrorsType<TFieldValues extends FieldValues = FieldValues> = {
|
|
39
|
-
errors?: ValidationErrors;
|
|
40
|
-
setError: UseFormSetError<TFieldValues>;
|
|
41
|
-
};
|
|
42
|
-
declare const handleServerErrors: <TFieldValues extends FieldValues = FieldValues>(args: HandleServerErrorsType<TFieldValues>) => void;
|
|
43
|
-
|
|
44
|
-
declare function propertyExists<X, Y extends PropertyKey>(obj: X, prop: Y): obj is X & Record<Y, unknown>;
|
|
45
|
-
|
|
46
|
-
declare function readValueAsDate<TDate extends PickerValidDate>(adapter: ReturnType<typeof useLocalizationContext>, value: string | null | TDate): TDate | null;
|
|
47
|
-
|
|
48
|
-
declare const removeLeadingTrailingSlashes: (route: string) => string;
|
|
49
|
-
|
|
50
|
-
declare const schemaTools: {
|
|
51
|
-
date: ({ message }: {
|
|
52
|
-
message?: string;
|
|
53
|
-
}) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string | null, string>, string | null, string>, string | null, string>;
|
|
54
|
-
nullableDate: ({ message }?: {
|
|
55
|
-
message?: string | null;
|
|
56
|
-
}) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string | null, string>, string | null, string>, string | null, string>;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export { api, api2, flattenObjectKeys, getTimezone, handleServerErrors, propertyExists, readValueAsDate, removeLeadingTrailingSlashes, schemaTools };
|
package/dist/utils/index.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { PostModel, ApiResponse, ListResponse, ValidationErrors } from '../types/index.js';
|
|
2
|
-
import { PickerValidDate } from '@mui/x-date-pickers';
|
|
3
|
-
import { useLocalizationContext } from '@mui/x-date-pickers/internals';
|
|
4
|
-
import { FieldValues, UseFormSetError } from 'react-hook-form';
|
|
5
|
-
import { z } from 'zod';
|
|
6
|
-
import '@mui/x-data-grid';
|
|
7
|
-
import '../AsyncSelectPayload-Cz4bgak0.js';
|
|
8
|
-
import '../OptionItem-oN6XnOTJ.js';
|
|
9
|
-
|
|
10
|
-
declare class api {
|
|
11
|
-
static filter<T, TFilter>(url: string, postModel: PostModel<TFilter>): Promise<ApiResponse<ListResponse<T>>>;
|
|
12
|
-
static post<T>(url: string, body?: any): Promise<ApiResponse<T>>;
|
|
13
|
-
static get<T>(url: string): Promise<ApiResponse<T>>;
|
|
14
|
-
static delete<T>(url: string): Promise<ApiResponse<T>>;
|
|
15
|
-
static put<T>(url: string, body?: any): Promise<ApiResponse<T>>;
|
|
16
|
-
static fetch(url: string, options?: any): Promise<Response>;
|
|
17
|
-
static tempFetch<T>(url: string, options?: any): Promise<ApiResponse<T>>;
|
|
18
|
-
static upload<T>(url: string, formData: FormData): Promise<ApiResponse<T>>;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare class api2 {
|
|
22
|
-
static filter<T, TFilter>(url: string, postModel: PostModel<TFilter>): Promise<ApiResponse<ListResponse<T>>>;
|
|
23
|
-
static post<T>(url: string, body?: any): Promise<ApiResponse<T>>;
|
|
24
|
-
static get<T>(url: string): Promise<ApiResponse<T>>;
|
|
25
|
-
static delete<T>(url: string): Promise<ApiResponse<T>>;
|
|
26
|
-
static put<T>(url: string, body?: any): Promise<ApiResponse<T>>;
|
|
27
|
-
static fetch(url: string, options?: any): Promise<Response>;
|
|
28
|
-
static tempFetch<T>(url: string, options?: any): Promise<ApiResponse<T>>;
|
|
29
|
-
static upload<T>(url: string, formData: FormData): Promise<ApiResponse<T>>;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
declare const flattenObjectKeys: (obj: any, prefix?: string) => {
|
|
33
|
-
[x: string]: any;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
declare function getTimezone<TDate extends PickerValidDate>(adapter: ReturnType<typeof useLocalizationContext>, value: TDate): string | null;
|
|
37
|
-
|
|
38
|
-
type HandleServerErrorsType<TFieldValues extends FieldValues = FieldValues> = {
|
|
39
|
-
errors?: ValidationErrors;
|
|
40
|
-
setError: UseFormSetError<TFieldValues>;
|
|
41
|
-
};
|
|
42
|
-
declare const handleServerErrors: <TFieldValues extends FieldValues = FieldValues>(args: HandleServerErrorsType<TFieldValues>) => void;
|
|
43
|
-
|
|
44
|
-
declare function propertyExists<X, Y extends PropertyKey>(obj: X, prop: Y): obj is X & Record<Y, unknown>;
|
|
45
|
-
|
|
46
|
-
declare function readValueAsDate<TDate extends PickerValidDate>(adapter: ReturnType<typeof useLocalizationContext>, value: string | null | TDate): TDate | null;
|
|
47
|
-
|
|
48
|
-
declare const removeLeadingTrailingSlashes: (route: string) => string;
|
|
49
|
-
|
|
50
|
-
declare const schemaTools: {
|
|
51
|
-
date: ({ message }: {
|
|
52
|
-
message?: string;
|
|
53
|
-
}) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string | null, string>, string | null, string>, string | null, string>;
|
|
54
|
-
nullableDate: ({ message }?: {
|
|
55
|
-
message?: string | null;
|
|
56
|
-
}) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string | null, string>, string | null, string>, string | null, string>;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export { api, api2, flattenObjectKeys, getTimezone, handleServerErrors, propertyExists, readValueAsDate, removeLeadingTrailingSlashes, schemaTools };
|