sti-antd-package 0.0.11 → 0.0.13
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/components/Button/Group/Add/types.d.ts +5 -0
- package/dist/components/Button/Group/Edit/types.d.ts +7 -0
- package/dist/components/DataGrid/Component.d.ts +3 -2
- package/dist/components/DataGrid/FilterRenderer/Component.d.ts +4 -0
- package/dist/components/DataGrid/FilterRenderer/types.d.ts +6 -0
- package/dist/components/DataGrid/index.d.ts +2 -0
- package/dist/components/DataGrid/types.d.ts +12 -4
- package/dist/components/DatePicker/types.d.ts +1 -2
- package/dist/components/DateRangePicker/types.d.ts +1 -2
- package/dist/context/DataGrid/Context.d.ts +3 -3
- package/dist/context/DataGrid/Provider.d.ts +4 -2
- package/dist/context/DataGrid/index.d.ts +3 -0
- package/dist/context/DataGrid/types.d.ts +32 -2
- package/dist/context/index.d.ts +2 -0
- package/dist/index.d.ts +51 -4
- package/dist/index.esm.js +68 -19
- package/dist/index.js +68 -18
- package/package.json +1 -1
|
@@ -9,4 +9,11 @@ export interface ButtonGroupEditComponentProps {
|
|
|
9
9
|
setEditing?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
10
10
|
onBack?: ButtonComponentProps['onClick'];
|
|
11
11
|
onSave?: ButtonComponentProps['onClick'];
|
|
12
|
+
classNames?: string[];
|
|
13
|
+
className?: {
|
|
14
|
+
buttonBack?: string[];
|
|
15
|
+
buttonCancel?: string[];
|
|
16
|
+
buttonSave?: string[];
|
|
17
|
+
buttonEdit?: string[];
|
|
18
|
+
};
|
|
12
19
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { DataGridRow } from "../../context/DataGrid";
|
|
2
|
+
import { DataGridComponentProps } from "./types";
|
|
1
3
|
import React from "react";
|
|
2
4
|
import "react-data-grid/lib/styles.css";
|
|
3
5
|
export declare const filterColumnClassName: string;
|
|
4
|
-
declare const DataGridComponent: React.
|
|
6
|
+
declare const DataGridComponent: <Rows extends DataGridRow<Key>, SummaryRows, Key extends React.Key>({ filterHeader, ...props }: DataGridComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
7
|
export default DataGridComponent;
|
|
6
|
-
export declare const FilterRenderer: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { DataGridFilter, DataGridProviderProps } from "../../context/DataGrid";
|
|
2
|
+
import React, { Ref } from "react";
|
|
3
|
+
export interface DataGridComponentRef {
|
|
4
|
+
inputStopPropagation: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
5
|
+
selectStopPropagation: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
6
|
+
setLoading: React.Dispatch<React.SetStateAction<boolean>> | undefined;
|
|
7
|
+
filter: () => DataGridFilter | undefined;
|
|
8
|
+
setFilter: (filter: DataGridFilter) => void;
|
|
9
|
+
}
|
|
10
|
+
export type DataGridComponentProps = DataGridProviderProps & {
|
|
3
11
|
addRows?: boolean;
|
|
4
|
-
filterHeader?: boolean;
|
|
5
12
|
extraLeft?: React.ReactNode;
|
|
6
|
-
|
|
13
|
+
ref?: Ref<DataGridComponentRef>;
|
|
14
|
+
};
|
|
@@ -2,7 +2,7 @@ import { formColLayout } from "../../constants";
|
|
|
2
2
|
import { Variant } from "antd/es/config-provider";
|
|
3
3
|
import { SizeType } from "antd/es/config-provider/SizeContext";
|
|
4
4
|
import { DatePickerProps } from "antd/es/date-picker";
|
|
5
|
-
import { Rule
|
|
5
|
+
import { Rule } from "antd/es/form";
|
|
6
6
|
import { ValidateStatus } from "antd/es/form/FormItem";
|
|
7
7
|
import { Dayjs } from "dayjs";
|
|
8
8
|
import { ShouldUpdate } from "rc-field-form/lib/Field";
|
|
@@ -34,7 +34,6 @@ export interface DatePickerComponentProps {
|
|
|
34
34
|
className?: Partial<Record<SemanticStructure, string>>;
|
|
35
35
|
required?: boolean;
|
|
36
36
|
rules?: Rule[];
|
|
37
|
-
ruleType?: RuleObject['type'];
|
|
38
37
|
ruleMessage?: string;
|
|
39
38
|
validateStatus?: ValidateStatus;
|
|
40
39
|
help?: React.ReactNode;
|
|
@@ -6,7 +6,7 @@ import { RangePickerProps } from "antd/es/date-picker";
|
|
|
6
6
|
import { ValidateStatus } from "antd/es/form/FormItem";
|
|
7
7
|
import dayjs from "dayjs";
|
|
8
8
|
import { ShouldUpdate } from "rc-field-form/lib/Field";
|
|
9
|
-
import { NamePath, Rule
|
|
9
|
+
import { NamePath, Rule } from "rc-field-form/lib/interface";
|
|
10
10
|
import { SemanticStructure } from "rc-picker/lib/interface";
|
|
11
11
|
import { RangeValueType } from "rc-picker/lib/PickerInput/RangePicker";
|
|
12
12
|
import { Ref } from "react";
|
|
@@ -35,7 +35,6 @@ export interface DateRangePickerComponentProps {
|
|
|
35
35
|
className?: Partial<Record<SemanticStructure, string>>;
|
|
36
36
|
required?: boolean;
|
|
37
37
|
rules?: Rule[];
|
|
38
|
-
ruleType?: RuleObject['type'];
|
|
39
38
|
ruleMessage?: string;
|
|
40
39
|
validateStatus?: ValidateStatus;
|
|
41
40
|
help?: React.ReactNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DataGridContextType } from "./types";
|
|
2
|
-
export declare const DataGridContext: import("react").Context<
|
|
3
|
-
export declare const useDataGrid: () => DataGridContextType
|
|
1
|
+
import { DataGridContextType, DataGridRow } from "./types";
|
|
2
|
+
export declare const DataGridContext: import("react").Context<{}>;
|
|
3
|
+
export declare const useDataGrid: <Row extends DataGridRow<Key>, SummaryRow, Key extends React.Key>() => DataGridContextType<Row, SummaryRow, Key>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { DataGridProviderProps } from "./types";
|
|
1
|
+
import { DataGridProviderProps, DataGridRow } from "./types";
|
|
2
2
|
import React from "react";
|
|
3
|
-
declare const DataGridProvider: React.
|
|
3
|
+
declare const DataGridProvider: <Row extends DataGridRow<Key>, SummaryRow, Key extends React.Key>({ filterHeader, children, }: DataGridProviderProps & {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
4
6
|
export default DataGridProvider;
|
|
@@ -1,8 +1,38 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
import { ColumnOrColumnGroup } from "react-data-grid";
|
|
3
|
+
export type DataGridColumnType = "text" | "select";
|
|
4
|
+
export type DataGridColumn<Row, SummaryRow = unknown> = ColumnOrColumnGroup<Row, SummaryRow> & {
|
|
5
|
+
hide?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export interface DataGridFilterColumn {
|
|
8
|
+
type: DataGridColumnType;
|
|
9
|
+
value: string;
|
|
10
|
+
}
|
|
11
|
+
export interface DataGridFilter {
|
|
12
|
+
[key: string]: DataGridFilterColumn;
|
|
13
|
+
}
|
|
14
|
+
export interface DataGridRow<Key> {
|
|
15
|
+
index: Key;
|
|
16
|
+
read: boolean;
|
|
17
|
+
extraData?: {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
};
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}
|
|
22
|
+
export interface DataGridContextType<Row extends DataGridRow<Key>, SummaryRow, Key extends React.Key> {
|
|
23
|
+
rows?: Row[];
|
|
24
|
+
setRows?: React.Dispatch<React.SetStateAction<Row[]>>;
|
|
25
|
+
columns?: DataGridColumn<Row, SummaryRow>[];
|
|
26
|
+
setColumns?: React.Dispatch<React.SetStateAction<DataGridColumn<Row, SummaryRow>[]>>;
|
|
27
|
+
filterHeader?: boolean;
|
|
28
|
+
filter?: DataGridFilter;
|
|
29
|
+
setFilter?: React.Dispatch<React.SetStateAction<DataGridFilter>>;
|
|
3
30
|
loading?: boolean;
|
|
4
31
|
setLoading?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
32
|
+
selectedRows?: ReadonlySet<Key>;
|
|
33
|
+
setSelectedRows?: React.Dispatch<React.SetStateAction<ReadonlySet<Key> | undefined>>;
|
|
34
|
+
addRow?: (index: number) => Row[];
|
|
5
35
|
}
|
|
6
36
|
export interface DataGridProviderProps {
|
|
7
|
-
|
|
37
|
+
filterHeader?: boolean;
|
|
8
38
|
}
|
package/dist/context/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { default as ConfigProvider, useConfig } from "./Config";
|
|
2
2
|
export type { ConfigContextType, ConfigProviderProps, LinkType } from "./Config";
|
|
3
|
+
export { useDataGrid } from "./DataGrid";
|
|
4
|
+
export type { DataGridColumn, DataGridColumnType, DataGridContextType, DataGridFilter, DataGridFilterColumn, DataGridRow } from "./DataGrid";
|
|
3
5
|
export { default as FeedbackProvider, useFeedback } from "./Feedback";
|
|
4
6
|
export type { FeedbackContextType } from "./Feedback";
|
|
5
7
|
export { useTableAsyncSearch } from "./TableAsyncSearch";
|
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ import { TableProps } from 'rc-table';
|
|
|
29
29
|
import { GetRowKey, ExpandableConfig } from 'rc-table/lib/interface';
|
|
30
30
|
import { AxiosResponse } from 'axios';
|
|
31
31
|
import { TabsType, TabsPosition, TabsProps } from 'antd/es/tabs';
|
|
32
|
+
import { ColumnOrColumnGroup } from 'react-data-grid';
|
|
32
33
|
import { MessageInstance } from 'antd/es/message/interface';
|
|
33
34
|
import { HookAPI } from 'antd/es/modal/useModal';
|
|
34
35
|
import { NotificationInstance } from 'antd/es/notification/interface';
|
|
@@ -113,6 +114,11 @@ interface ButtonGroupAddComponentProps {
|
|
|
113
114
|
loading?: boolean;
|
|
114
115
|
onBack?: ButtonComponentProps['onClick'];
|
|
115
116
|
onSave?: ButtonComponentProps['onClick'];
|
|
117
|
+
classNames?: string[];
|
|
118
|
+
className?: {
|
|
119
|
+
buttonBack?: string[];
|
|
120
|
+
buttonSave?: string[];
|
|
121
|
+
};
|
|
116
122
|
}
|
|
117
123
|
|
|
118
124
|
declare const ButtonGroupAddComponent: React.FC<ButtonGroupAddComponentProps>;
|
|
@@ -126,6 +132,13 @@ interface ButtonGroupEditComponentProps {
|
|
|
126
132
|
setEditing?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
127
133
|
onBack?: ButtonComponentProps['onClick'];
|
|
128
134
|
onSave?: ButtonComponentProps['onClick'];
|
|
135
|
+
classNames?: string[];
|
|
136
|
+
className?: {
|
|
137
|
+
buttonBack?: string[];
|
|
138
|
+
buttonCancel?: string[];
|
|
139
|
+
buttonSave?: string[];
|
|
140
|
+
buttonEdit?: string[];
|
|
141
|
+
};
|
|
129
142
|
}
|
|
130
143
|
|
|
131
144
|
declare const ButtonGroupEditComponent: React__default.FC<ButtonGroupEditComponentProps>;
|
|
@@ -248,7 +261,6 @@ interface DatePickerComponentProps {
|
|
|
248
261
|
className?: Partial<Record<SemanticStructure, string>>;
|
|
249
262
|
required?: boolean;
|
|
250
263
|
rules?: Rule$2[];
|
|
251
|
-
ruleType?: RuleObject$2['type'];
|
|
252
264
|
ruleMessage?: string;
|
|
253
265
|
validateStatus?: ValidateStatus;
|
|
254
266
|
help?: React.ReactNode;
|
|
@@ -283,7 +295,6 @@ interface DateRangePickerComponentProps {
|
|
|
283
295
|
className?: Partial<Record<SemanticStructure, string>>;
|
|
284
296
|
required?: boolean;
|
|
285
297
|
rules?: Rule$1[];
|
|
286
|
-
ruleType?: RuleObject$1['type'];
|
|
287
298
|
ruleMessage?: string;
|
|
288
299
|
validateStatus?: ValidateStatus;
|
|
289
300
|
help?: React.ReactNode;
|
|
@@ -671,6 +682,42 @@ declare const ConfigProvider: React.FC<ConfigProviderProps>;
|
|
|
671
682
|
|
|
672
683
|
declare const useConfig: () => ConfigContextType;
|
|
673
684
|
|
|
685
|
+
type DataGridColumnType = "text" | "select";
|
|
686
|
+
type DataGridColumn<Row, SummaryRow = unknown> = ColumnOrColumnGroup<Row, SummaryRow> & {
|
|
687
|
+
hide?: boolean;
|
|
688
|
+
};
|
|
689
|
+
interface DataGridFilterColumn {
|
|
690
|
+
type: DataGridColumnType;
|
|
691
|
+
value: string;
|
|
692
|
+
}
|
|
693
|
+
interface DataGridFilter {
|
|
694
|
+
[key: string]: DataGridFilterColumn;
|
|
695
|
+
}
|
|
696
|
+
interface DataGridRow<Key> {
|
|
697
|
+
index: Key;
|
|
698
|
+
read: boolean;
|
|
699
|
+
extraData?: {
|
|
700
|
+
[key: string]: any;
|
|
701
|
+
};
|
|
702
|
+
[key: string]: any;
|
|
703
|
+
}
|
|
704
|
+
interface DataGridContextType<Row extends DataGridRow<Key>, SummaryRow, Key extends React__default.Key> {
|
|
705
|
+
rows?: Row[];
|
|
706
|
+
setRows?: React__default.Dispatch<React__default.SetStateAction<Row[]>>;
|
|
707
|
+
columns?: DataGridColumn<Row, SummaryRow>[];
|
|
708
|
+
setColumns?: React__default.Dispatch<React__default.SetStateAction<DataGridColumn<Row, SummaryRow>[]>>;
|
|
709
|
+
filterHeader?: boolean;
|
|
710
|
+
filter?: DataGridFilter;
|
|
711
|
+
setFilter?: React__default.Dispatch<React__default.SetStateAction<DataGridFilter>>;
|
|
712
|
+
loading?: boolean;
|
|
713
|
+
setLoading?: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
714
|
+
selectedRows?: ReadonlySet<Key>;
|
|
715
|
+
setSelectedRows?: React__default.Dispatch<React__default.SetStateAction<ReadonlySet<Key> | undefined>>;
|
|
716
|
+
addRow?: (index: number) => Row[];
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
declare const useDataGrid: <Row extends DataGridRow<Key>, SummaryRow, Key extends React.Key>() => DataGridContextType<Row, SummaryRow, Key>;
|
|
720
|
+
|
|
674
721
|
declare const FeedbackProvider: React__default.FC<{
|
|
675
722
|
children?: React__default.ReactNode;
|
|
676
723
|
}>;
|
|
@@ -964,5 +1011,5 @@ declare const useRemoveError: (setInputErrors: React.Dispatch<React.SetStateActi
|
|
|
964
1011
|
[key: string]: any;
|
|
965
1012
|
}>>) => (name?: string) => void;
|
|
966
1013
|
|
|
967
|
-
export { BaseModel, ButtonComponent, ButtonGroupAddComponent, ButtonGroupEditComponent, CardComponent, CascaderComponent, CheckboxComponent$1 as CheckboxComponent, CheckboxComponent as CheckboxGroupComponent, ConfigProvider, DateFormat, DatePickerComponent, DateRangePickerComponent, DropdownButtonComponent, FeedbackProvider, FormItemComponent, IconCheckOrClose, InputComponent, LinkComponent, NumberFormatComponent, RadioComponent, SelectAsyncComponent, SelectComponent, SwitchComponent, TableAsyncComponent, TableAsyncSearchComponent, TableCellEditableComponent, TableComponent, TableRowProvider, TabsComponent, TagComponent, TextAreaComponent, TransformBoolean, TransformDayjs, TransformNumber, colInline, colLayout, datePickerFormat, _default as formColLayout, getTableAsyncName, getTableFilterStorage, selectAsync, styleCSS, toCamel, useConfig, useFeedback, useFocus, useRemoveError, useTableAsyncSearch, useTableRow };
|
|
968
|
-
export type { ButtonComponentProps, ButtonComponentRef, ButtonGroupAddComponentProps, ButtonGroupEditComponentProps, CardComponentProps, CascaderComponentProps, CascaderComponentRef, CheckboxComponentProps, CheckboxComponentRef, CheckboxGroupComponentProps, CheckboxGroupComponentRef, ConfigContextType, ConfigProviderProps, DatePickerComponentProps, DatePickerComponentRef, DateRangePickerComponentProps, DateRangePickerComponentRef, DefaultColumn, DefaultParams, DropdownButtonComponentProps, DropdownButtonMenuItem, FeedbackContextType, FormColLayout, FormColSizeSpan, FormItemComponentProps, IconCheckOrCloseProps, InputComponentProps, InputComponentRef, LinkComponentProps, LinkType, NumberFormatComponentProps, NumberFormatComponentRef, RadioComponentProps, SelectAsyncComponentProps, SelectAsyncComponentRef, SelectAsyncFormat, SelectAsyncProps, SelectComponentProps, SelectOption, SwitchComponentProps, TableAsyncComponentProps, TableAsyncComponentRef, TableAsyncSearchCheckbox, TableAsyncSearchComponentProps, TableAsyncSearchContextType, TableAsyncSearchDate, TableAsyncSearchDateRange, TableAsyncSearchFetchSelectMultiple, TableAsyncSearchItem, TableAsyncSearchItemType, TableAsyncSearchLocalSelectMultiple, TableAsyncSearchProviderProps, TableAsyncSearchSelect, TableAsyncSearchSelectMultiple, TableAsyncSearchSwitch, TableAsyncSearchText, TableAsyncType, TableButtonMiddle, TableCellEditableProps, TableComponentProps, TableParams, TableParamsFormatter, TableRowContextType, TableRowProviderProps, TabsComponentProps, TagComponentProps, TextAreaComponentProps, TextAreaComponentRef, YajraColumn, YajraColumnParams, YajraOrderParams, YajraParams, YajraSearchParams };
|
|
1014
|
+
export { BaseModel, ButtonComponent, ButtonGroupAddComponent, ButtonGroupEditComponent, CardComponent, CascaderComponent, CheckboxComponent$1 as CheckboxComponent, CheckboxComponent as CheckboxGroupComponent, ConfigProvider, DateFormat, DatePickerComponent, DateRangePickerComponent, DropdownButtonComponent, FeedbackProvider, FormItemComponent, IconCheckOrClose, InputComponent, LinkComponent, NumberFormatComponent, RadioComponent, SelectAsyncComponent, SelectComponent, SwitchComponent, TableAsyncComponent, TableAsyncSearchComponent, TableCellEditableComponent, TableComponent, TableRowProvider, TabsComponent, TagComponent, TextAreaComponent, TransformBoolean, TransformDayjs, TransformNumber, colInline, colLayout, datePickerFormat, _default as formColLayout, getTableAsyncName, getTableFilterStorage, selectAsync, styleCSS, toCamel, useConfig, useDataGrid, useFeedback, useFocus, useRemoveError, useTableAsyncSearch, useTableRow };
|
|
1015
|
+
export type { ButtonComponentProps, ButtonComponentRef, ButtonGroupAddComponentProps, ButtonGroupEditComponentProps, CardComponentProps, CascaderComponentProps, CascaderComponentRef, CheckboxComponentProps, CheckboxComponentRef, CheckboxGroupComponentProps, CheckboxGroupComponentRef, ConfigContextType, ConfigProviderProps, DataGridColumn, DataGridColumnType, DataGridContextType, DataGridFilter, DataGridFilterColumn, DataGridRow, DatePickerComponentProps, DatePickerComponentRef, DateRangePickerComponentProps, DateRangePickerComponentRef, DefaultColumn, DefaultParams, DropdownButtonComponentProps, DropdownButtonMenuItem, FeedbackContextType, FormColLayout, FormColSizeSpan, FormItemComponentProps, IconCheckOrCloseProps, InputComponentProps, InputComponentRef, LinkComponentProps, LinkType, NumberFormatComponentProps, NumberFormatComponentRef, RadioComponentProps, SelectAsyncComponentProps, SelectAsyncComponentRef, SelectAsyncFormat, SelectAsyncProps, SelectComponentProps, SelectOption, SwitchComponentProps, TableAsyncComponentProps, TableAsyncComponentRef, TableAsyncSearchCheckbox, TableAsyncSearchComponentProps, TableAsyncSearchContextType, TableAsyncSearchDate, TableAsyncSearchDateRange, TableAsyncSearchFetchSelectMultiple, TableAsyncSearchItem, TableAsyncSearchItemType, TableAsyncSearchLocalSelectMultiple, TableAsyncSearchProviderProps, TableAsyncSearchSelect, TableAsyncSearchSelectMultiple, TableAsyncSearchSwitch, TableAsyncSearchText, TableAsyncType, TableButtonMiddle, TableCellEditableProps, TableComponentProps, TableParams, TableParamsFormatter, TableRowContextType, TableRowProviderProps, TabsComponentProps, TagComponentProps, TextAreaComponentProps, TextAreaComponentRef, YajraColumn, YajraColumnParams, YajraOrderParams, YajraParams, YajraSearchParams };
|
package/dist/index.esm.js
CHANGED
|
@@ -1861,7 +1861,7 @@ const selectAsync = ({ format, request, initData, }) => {
|
|
|
1861
1861
|
};
|
|
1862
1862
|
|
|
1863
1863
|
var css_248z$9 = ".style-module_button-save__CGfus {\n background-color: var(--color-primary-a0);\n}\n\n@keyframes style-module_zoom-in__HJzbj {\n from {\n width: 0;\n opacity: 0;\n }\n\n to {\n display: inline-flex;\n transform: scaleX(100%) scaleY(100%);\n opacity: 1;\n }\n}\n\n@keyframes style-module_zoom-out__PqWZu {\n from {\n display: inline-flex;\n }\n\n to {\n transform: scaleX(0) scaleY(0);\n width: 0;\n opacity: 0;\n }\n}\n\ndiv.style-module_button-group__m4a-F.style-module_button-group-add__J3FOg>button:nth-child(-n + 1) {\n margin-right: .5rem;\n}\n\ndiv.style-module_button-group__m4a-F.style-module_button-group-edit__-ZIEQ>button:nth-child(-n + 2) {\n margin-right: .5rem;\n}\n\ndiv.style-module_button-group__m4a-F>button {\n animation: style-module_zoom-in__HJzbj .5s;\n}\n\n.style-module_button-group__m4a-F .style-module_display-none__y57XG {\n animation: style-module_zoom-out__PqWZu .5s;\n display: none;\n}";
|
|
1864
|
-
var styleButton = {"button-group":"style-module_button-group__m4a-F","button-group-add":"style-module_button-group-add__J3FOg","button-group-edit":"style-module_button-group-edit__-ZIEQ","display-none":"style-module_display-none__y57XG"};
|
|
1864
|
+
var styleButton = {"button-save":"style-module_button-save__CGfus","button-group":"style-module_button-group__m4a-F","button-group-add":"style-module_button-group-add__J3FOg","button-group-edit":"style-module_button-group-edit__-ZIEQ","zoom-in":"style-module_zoom-in__HJzbj","display-none":"style-module_display-none__y57XG","zoom-out":"style-module_zoom-out__PqWZu"};
|
|
1865
1865
|
styleInject(css_248z$9);
|
|
1866
1866
|
|
|
1867
1867
|
const IconContext$1 = /*#__PURE__*/createContext({});
|
|
@@ -3793,31 +3793,71 @@ function requireReactIs () {
|
|
|
3793
3793
|
|
|
3794
3794
|
var reactIsExports = requireReactIs();
|
|
3795
3795
|
|
|
3796
|
-
const ButtonGroupAddComponent = ({ formColLayout, disabled, loading, onBack, onSave, }) => {
|
|
3796
|
+
const ButtonGroupAddComponent = ({ formColLayout, disabled, loading, onBack, onSave, classNames, className, }) => {
|
|
3797
3797
|
const saveMethod = onSave
|
|
3798
3798
|
? { onClick: onSave }
|
|
3799
3799
|
: { htmlType: 'submit' };
|
|
3800
3800
|
const col = useMemo$1(() => {
|
|
3801
3801
|
return formColLayout ? colLayout(formColLayout) : undefined;
|
|
3802
3802
|
}, [formColLayout]);
|
|
3803
|
-
const
|
|
3803
|
+
const classButton = useMemo$1(() => {
|
|
3804
|
+
const classButtonNames = [
|
|
3804
3805
|
styleButton['button-group'],
|
|
3805
3806
|
styleButton['button-group-add'],
|
|
3806
|
-
]
|
|
3807
|
+
];
|
|
3808
|
+
classNames && classButtonNames.push(...classNames);
|
|
3809
|
+
return classButtonNames;
|
|
3810
|
+
}, [styleButton, classNames]);
|
|
3811
|
+
const classButtonBack = useMemo$1(() => {
|
|
3812
|
+
const classButtonBackNames = [];
|
|
3813
|
+
!onBack && classButtonBackNames.push(styleButton['display-none']);
|
|
3814
|
+
(className === null || className === void 0 ? void 0 : className.buttonBack) && classButtonBackNames.push(...className.buttonBack);
|
|
3815
|
+
return classButtonBackNames;
|
|
3816
|
+
}, [styleButton, className, onBack]);
|
|
3817
|
+
const buttonGroup = (jsxRuntimeExports.jsxs("div", { className: classButton.join(' '), children: [jsxRuntimeExports.jsx(ButtonComponent, { tooltip: { title: 'Back' }, icon: jsxRuntimeExports.jsx(RefIcon$g, {}), classNames: classButtonBack, disabled: disabled, onClick: onBack }), jsxRuntimeExports.jsx(ButtonComponent, Object.assign({ tooltip: { title: 'Save' }, icon: jsxRuntimeExports.jsx(RefIcon$3, {}), type: "primary", classNames: className === null || className === void 0 ? void 0 : className.buttonSave, disabled: disabled, loading: loading }, saveMethod))] }));
|
|
3807
3818
|
return col ? (jsxRuntimeExports.jsx(Row, { children: jsxRuntimeExports.jsx(Col, Object.assign({}, col, { children: buttonGroup })) })) : buttonGroup;
|
|
3808
3819
|
};
|
|
3809
3820
|
|
|
3810
|
-
const ButtonGroupEditComponent = ({ formColLayout, disabled, loading, allowEdit = true, editing, setEditing, onBack, onSave, }) => {
|
|
3821
|
+
const ButtonGroupEditComponent = ({ formColLayout, disabled, loading, allowEdit = true, editing, setEditing, onBack, onSave, classNames, className, }) => {
|
|
3811
3822
|
const saveMethod = onSave
|
|
3812
3823
|
? { onClick: onSave }
|
|
3813
3824
|
: { htmlType: 'submit' };
|
|
3814
3825
|
const col = useMemo$1(() => {
|
|
3815
3826
|
return formColLayout ? colLayout(formColLayout) : undefined;
|
|
3816
3827
|
}, [formColLayout]);
|
|
3817
|
-
const
|
|
3828
|
+
const classButton = useMemo$1(() => {
|
|
3829
|
+
const classButtonNames = [
|
|
3818
3830
|
styleButton['button-group'],
|
|
3819
3831
|
styleButton['button-group-edit'],
|
|
3820
|
-
]
|
|
3832
|
+
];
|
|
3833
|
+
classNames && classButtonNames.push(...classNames);
|
|
3834
|
+
return classButtonNames;
|
|
3835
|
+
}, [styleButton, classNames]);
|
|
3836
|
+
const classButtonBack = useMemo$1(() => {
|
|
3837
|
+
const classButtonBackNames = [];
|
|
3838
|
+
!onBack && classButtonBackNames.push(styleButton['display-none']);
|
|
3839
|
+
(className === null || className === void 0 ? void 0 : className.buttonBack) && classButtonBackNames.push(...className.buttonBack);
|
|
3840
|
+
return classButtonBackNames;
|
|
3841
|
+
}, [styleButton, className, onBack]);
|
|
3842
|
+
const classButtonCancel = useMemo$1(() => {
|
|
3843
|
+
const classButtonCancelNames = [];
|
|
3844
|
+
!editing && classButtonCancelNames.push(styleButton['display-none']);
|
|
3845
|
+
(className === null || className === void 0 ? void 0 : className.buttonCancel) && classButtonCancelNames.push(...className.buttonCancel);
|
|
3846
|
+
return classButtonCancelNames;
|
|
3847
|
+
}, [styleButton, className, editing]);
|
|
3848
|
+
const classButtonSave = useMemo$1(() => {
|
|
3849
|
+
const classButtonSaveNames = [];
|
|
3850
|
+
!editing && classButtonSaveNames.push(styleButton['display-none']);
|
|
3851
|
+
(className === null || className === void 0 ? void 0 : className.buttonSave) && classButtonSaveNames.push(...className.buttonSave);
|
|
3852
|
+
return classButtonSaveNames;
|
|
3853
|
+
}, [styleButton, className, editing]);
|
|
3854
|
+
const classButtonEdit = useMemo$1(() => {
|
|
3855
|
+
const classButtonEditNames = [];
|
|
3856
|
+
!(allowEdit && !editing) && classButtonEditNames.push(styleButton['display-none']);
|
|
3857
|
+
(className === null || className === void 0 ? void 0 : className.buttonEdit) && classButtonEditNames.push(...className.buttonEdit);
|
|
3858
|
+
return classButtonEditNames;
|
|
3859
|
+
}, [styleButton, className, allowEdit, editing]);
|
|
3860
|
+
const buttonGroup = (jsxRuntimeExports.jsxs("div", { className: classButton.join(' '), children: [jsxRuntimeExports.jsx(ButtonComponent, { tooltip: { title: 'Back' }, icon: jsxRuntimeExports.jsx(RefIcon$g, {}), classNames: classButtonBack, disabled: disabled, onClick: onBack }), jsxRuntimeExports.jsx(ButtonComponent, { tooltip: { title: 'Cancel' }, icon: jsxRuntimeExports.jsx(RefIcon$c, {}), classNames: classButtonCancel, disabled: disabled, onClick: () => setEditing === null || setEditing === void 0 ? void 0 : setEditing(false) }), jsxRuntimeExports.jsx(ButtonComponent, Object.assign({ tooltip: { title: 'Save' }, icon: jsxRuntimeExports.jsx(RefIcon$3, {}), type: "primary", classNames: classButtonSave, disabled: disabled, loading: loading }, saveMethod)), jsxRuntimeExports.jsx(ButtonComponent, { tooltip: { title: 'Edit' }, icon: jsxRuntimeExports.jsx(RefIcon$9, {}), classNames: classButtonEdit, disabled: disabled, onClick: () => setEditing === null || setEditing === void 0 ? void 0 : setEditing(true) })] }));
|
|
3821
3861
|
return col ? (jsxRuntimeExports.jsx(Row, { children: jsxRuntimeExports.jsx(Col, Object.assign({}, col, { children: buttonGroup })) })) : buttonGroup;
|
|
3822
3862
|
};
|
|
3823
3863
|
|
|
@@ -3927,7 +3967,7 @@ var formColLayout = {
|
|
|
3927
3967
|
notInline: {},
|
|
3928
3968
|
};
|
|
3929
3969
|
|
|
3930
|
-
const DatePickerComponent = ({ noItem, size, variant, picker, disabledDate, disabledTime, loading, disabled, value, defaultValue, removeError, onChange, style, formColLayout, name, label, classNames = [], className, required, rules,
|
|
3970
|
+
const DatePickerComponent = ({ noItem, size, variant, picker, disabledDate, disabledTime, loading, disabled, value, defaultValue, removeError, onChange, style, formColLayout, name, label, classNames = [], className, required, rules, ruleMessage, validateStatus, help, shouldUpdate, ref, }) => {
|
|
3931
3971
|
const [valueDate, setValueDate] = useState(defaultValue);
|
|
3932
3972
|
const handleChange = (date, dateString) => {
|
|
3933
3973
|
setValueDate(date);
|
|
@@ -3941,12 +3981,12 @@ const DatePickerComponent = ({ noItem, size, variant, picker, disabledDate, disa
|
|
|
3941
3981
|
const classDate = [styleCSS['w-100']];
|
|
3942
3982
|
classNames && classDate.push(...classNames);
|
|
3943
3983
|
const datePicker = !loading ? (jsxRuntimeExports.jsx(DatePicker, { className: classDate === null || classDate === void 0 ? void 0 : classDate.join(' '), classNames: className, size: size !== null && size !== void 0 ? size : 'middle', variant: variant, picker: picker, format: datePickerFormat[picker !== null && picker !== void 0 ? picker : 'default'], allowClear: !required, disabled: disabled, disabledDate: disabledDate, disabledTime: disabledTime, value: value !== null && value !== void 0 ? value : valueDate, onChange: handleChange, style: style })) : jsxRuntimeExports.jsx(Skeleton.Input, { block: true, active: true });
|
|
3944
|
-
return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: !noItem ? (jsxRuntimeExports.jsx(FormItemComponent, Object.assign({}, formColLayout, { name: name, label: label, required: required, ruleType:
|
|
3984
|
+
return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: !noItem ? (jsxRuntimeExports.jsx(FormItemComponent, Object.assign({}, formColLayout, { name: name, label: label, required: required, ruleType: "date", ruleMessage: ruleMessage, rules: rules, validateStatus: validateStatus, help: help, shouldUpdate: shouldUpdate, children: datePicker })))
|
|
3945
3985
|
: datePicker }));
|
|
3946
3986
|
};
|
|
3947
3987
|
|
|
3948
3988
|
const { RangePicker } = DatePicker;
|
|
3949
|
-
const DateRangePickerComponent = ({ noItem, size, variant, picker, disabledDate, disabledTime, loading, disabled, value, defaultValue, removeError, onChange, style, formColLayout, name, label, classNames = [], className, required, rules,
|
|
3989
|
+
const DateRangePickerComponent = ({ noItem, size, variant, picker, disabledDate, disabledTime, loading, disabled, value, defaultValue, removeError, onChange, style, formColLayout, name, label, classNames = [], className, required, rules, ruleMessage, validateStatus, help, shouldUpdate, ref, }) => {
|
|
3950
3990
|
var _a;
|
|
3951
3991
|
const [valueDateRange, setValueDateRange] = useState(defaultValue);
|
|
3952
3992
|
const handleChange = (date, dateStrings) => {
|
|
@@ -3961,7 +4001,7 @@ const DateRangePickerComponent = ({ noItem, size, variant, picker, disabledDate,
|
|
|
3961
4001
|
const classDateRange = [styleCSS['w-100']];
|
|
3962
4002
|
classNames && classDateRange.push(...classNames);
|
|
3963
4003
|
const datePicker = !loading ? (jsxRuntimeExports.jsx(RangePicker, { className: classDateRange.join(' '), classNames: className, size: size !== null && size !== void 0 ? size : 'middle', variant: variant, picker: picker, format: datePickerFormat[(_a = picker === null || picker === void 0 ? void 0 : picker.toString()) !== null && _a !== void 0 ? _a : 'default'], allowClear: !required, disabled: disabled, disabledDate: disabledDate, disabledTime: disabledTime, value: value !== null && value !== void 0 ? value : valueDateRange, onChange: handleChange, style: style })) : jsxRuntimeExports.jsx(Skeleton.Input, { block: true, active: true });
|
|
3964
|
-
return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: !noItem ? (jsxRuntimeExports.jsx(FormItemComponent, Object.assign({}, formColLayout, { name: name, label: label, required: required, ruleType:
|
|
4004
|
+
return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: !noItem ? (jsxRuntimeExports.jsx(FormItemComponent, Object.assign({}, formColLayout, { name: name, label: label, required: required, ruleType: "array", ruleMessage: ruleMessage, rules: rules, validateStatus: validateStatus, help: help, shouldUpdate: shouldUpdate, children: datePicker })))
|
|
3965
4005
|
: datePicker }));
|
|
3966
4006
|
};
|
|
3967
4007
|
|
|
@@ -6044,7 +6084,7 @@ const NumberFormat = ({ noItem, text, size, align, classNames, variant, trailing
|
|
|
6044
6084
|
}, [classNames, text, size, validateStatus, status, variant, align]);
|
|
6045
6085
|
return (jsxRuntimeExports.jsx("div", Object.assign({ onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onFocus: onFocus, onClick: onClick }, text && align === 'right' && {
|
|
6046
6086
|
style: { textAlign: 'right' }
|
|
6047
|
-
}, { children: jsxRuntimeExports.jsx(NumericFormat, { thousandSeparator: true, className: classNumberFormat.join(' '), disabled: disabled, readOnly: readOnly, required: required, allowNegative: allowNegative, displayType: text ? 'text' : undefined, prefix: prefix, suffix: suffix, placeholder: placeholder, decimalScale: trailingProps !== null && trailingProps !== void 0 ? trailingProps : trailing, min: ruleMin, max: ruleMax,
|
|
6087
|
+
}, { children: jsxRuntimeExports.jsx(NumericFormat, { thousandSeparator: true, fixedDecimalScale: true, className: classNumberFormat.join(' '), disabled: disabled, readOnly: readOnly, required: required, allowNegative: allowNegative, displayType: text ? 'text' : undefined, prefix: prefix, suffix: suffix, placeholder: placeholder, decimalScale: trailingProps !== null && trailingProps !== void 0 ? trailingProps : trailing, min: ruleMin, max: ruleMax, value: value !== null && value !== void 0 ? value : valueNumberFormat, onChange: event => {
|
|
6048
6088
|
removeError === null || removeError === void 0 ? void 0 : removeError(name);
|
|
6049
6089
|
}, onValueChange: (values, info) => {
|
|
6050
6090
|
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(values, info);
|
|
@@ -6854,6 +6894,9 @@ const TableComponent = ({ noPagination, buttonReload, buttonAdd, buttonMiddle, b
|
|
|
6854
6894
|
} })), buttonFilter] }))] }), jsxRuntimeExports.jsx(Table, { showSorterTooltip: true, tableLayout: "fixed", className: "table-data", rowClassName: rowClassName, size: size !== null && size !== void 0 ? size : 'middle', columns: columns, rowKey: rowKey !== null && rowKey !== void 0 ? rowKey : 'id', dataSource: data, expandable: expandable, pagination: !noPagination && Object.assign({ pageSizeOptions: ['10', '20', '50', '100', '200'], showSizeChanger: true, showQuickJumper: true, showTotal: (total, range) => `${range[0]}-${range[1]} of ${total} items` }, pagination), loading: loading, scroll: scroll !== null && scroll !== void 0 ? scroll : { y: 'calc(100vh - 300px)' }, sticky: sticky, components: components, summary: summary, onChange: onChange, rowSelection: rowSelectionTable, style: style })] }));
|
|
6855
6895
|
};
|
|
6856
6896
|
|
|
6897
|
+
const DataGridContext = createContext({});
|
|
6898
|
+
const useDataGrid = () => useContext(DataGridContext);
|
|
6899
|
+
|
|
6857
6900
|
var css_248z$3 = "html {\n --success-default: #28a745;\n --danger-default: #dc3545;\n\n --color-light-a0-default: #ffffff;\n --color-light-a10-default: #e9e9e9;\n --color-light-a20-default: #d2d2d2;\n --color-light-a30-default: #bababa;\n --color-light-a40-default: #a0a0a0;\n --color-light-a50-default: #868686;\n\n --color-dark-a0-default: #121212;\n --color-dark-a10-default: #282828;\n --color-dark-a20-default: #3f3f3f;\n --color-dark-a30-default: #575757;\n --color-dark-a40-default: #717171;\n --color-dark-a50-default: #8b8b8b;\n\n --color-primary-a0-default: #3dc2ec;\n --color-primary-a10-default: #5fc9ee;\n --color-primary-a20-default: #79d0f0;\n --color-primary-a30-default: #90d6f3;\n --color-primary-a40-default: #a4ddf5;\n --color-primary-a50-default: #b8e4f7;\n\n --color-primary-dark-a0-default: #213137;\n --color-primary-dark-a10-default: #36454a;\n --color-primary-dark-a20-default: #4d5a5f;\n --color-primary-dark-a30-default: #646f74;\n --color-primary-dark-a40-default: #7c8689;\n --color-primary-dark-a50-default: #959da0;\n\n --color-secondary-a0-default: #ad49e1;\n --color-secondary-a10-default: #b860e5;\n --color-secondary-a20-default: #c274e9;\n --color-secondary-a30-default: #cc89ec;\n --color-secondary-a40-default: #d69df0;\n --color-secondary-a50-default: #dfb0f3;\n\n --color-secondary-dark-a0-default: #2e1f36;\n --color-secondary-dark-a10-default: #42344a;\n --color-secondary-dark-a20-default: #584a5e;\n --color-secondary-dark-a30-default: #6e6273;\n --color-secondary-dark-a40-default: #847a89;\n --color-secondary-dark-a50-default: #9c93a0;\n}\n\n.style_success__OJLGK {\n color: var(--success, var(--success-default)) !important;\n}\n\n.style_danger__Kkj7I {\n color: var(--danger, var(--danger-default)) !important;\n}\n\n.style_light-a0__IqAbq {\n color: var(--color-light-a0, var(--color-light-a0-default)) !important;\n}\n\n.style_light-a10__HmZkj {\n color: var(--color-light-a10, var(--color-light-a10-default)) !important;\n}\n\n.style_light-a20__jwK9u {\n color: var(--color-light-a20, var(--color-light-a20-default)) !important;\n}\n\n.style_light-a30__u7-f- {\n color: var(--color-light-a30, var(--color-light-a30-default)) !important;\n}\n\n.style_light-a40__ozfI4 {\n color: var(--color-light-a40, var(--color-light-a40-default)) !important;\n}\n\n.style_light-a50__kRA5g {\n color: var(--color-light-a50, var(--color-light-a50-default)) !important;\n}\n\n.style_dark-a0__9m3yI {\n color: var(--color-dark-a0, var(--color-dark-a0-default)) !important;\n}\n\n.style_dark-a10__jAtYh {\n color: var(--color-dark-a10, var(--color-dark-a10-default)) !important;\n}\n\n.style_dark-a20__60nkd {\n color: var(--color-dark-a20, var(--color-dark-a20-default)) !important;\n}\n\n.style_dark-a30__ED3PC {\n color: var(--color-dark-a30, var(--color-dark-a30-default)) !important;\n}\n\n.style_dark-a40__rSYy6 {\n color: var(--color-dark-a40, var(--color-dark-a40-default)) !important;\n}\n\n.style_dark-a50__uIvD- {\n color: var(--color-dark-a50, var(--color-dark-a50-default)) !important;\n}\n\n.style_primary-a0__bsl-7 {\n color: var(--color-primary-a0, var(--color-primary-a0-default)) !important;\n}\n\n.style_primary-a10__pr2vt {\n color: var(--color-primary-a10, var(--color-primary-a10-default)) !important;\n}\n\n.style_primary-a20__HhTmN {\n color: var(--color-primary-a20, var(--color-primary-a20-default)) !important;\n}\n\n.style_primary-a30__2JV2J {\n color: var(--color-primary-a30, var(--color-primary-a30-default)) !important;\n}\n\n.style_primary-a40__xeKpG {\n color: var(--color-primary-a40, var(--color-primary-a40-default)) !important;\n}\n\n.style_primary-a50__moUMf {\n color: var(--color-primary-a50, var(--color-primary-a50-default)) !important;\n}\n\n.style_primary-dark-a0__-bRAb {\n color: var(--color-primary-dark-a0, var(--color-primary-dark-a0-default)) !important;\n}\n\n.style_primary-dark-a10__u6chI {\n color: var(--color-primary-dark-a10, var(--color-primary-dark-a10-default)) !important;\n}\n\n.style_primary-dark-a20__stCee {\n color: var(--color-primary-dark-a20, var(--color-primary-dark-a20-default)) !important;\n}\n\n.style_primary-dark-a30__zIK00 {\n color: var(--color-primary-dark-a30, var(--color-primary-dark-a30-default)) !important;\n}\n\n.style_primary-dark-a40__lx9UB {\n color: var(--color-primary-dark-a40, var(--color-primary-dark-a40-default)) !important;\n}\n\n.style_primary-dark-a50__LoPRz {\n color: var(--color-primary-dark-a50, var(--color-primary-dark-a50-default)) !important;\n}";
|
|
6858
6901
|
styleInject(css_248z$3);
|
|
6859
6902
|
|
|
@@ -6983,12 +7026,18 @@ const TableAsyncSearchProvider = props => {
|
|
|
6983
7026
|
return;
|
|
6984
7027
|
if (column.defaultSortOrder) {
|
|
6985
7028
|
defaultOrderFound = true;
|
|
6986
|
-
setTableParams(prevState =>
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
7029
|
+
setTableParams(prevState => {
|
|
7030
|
+
var _a, _b, _c;
|
|
7031
|
+
return (Object.assign(Object.assign({}, prevState), { ['yajra']: {
|
|
7032
|
+
order: [{
|
|
7033
|
+
column: defaultOrder,
|
|
7034
|
+
dir: column.defaultSortOrder === 'ascend' ? 'asc' : 'desc',
|
|
7035
|
+
}],
|
|
7036
|
+
start: (_a = prevState['yajra']) === null || _a === void 0 ? void 0 : _a.start,
|
|
7037
|
+
length: (_b = prevState['yajra']) === null || _b === void 0 ? void 0 : _b.length,
|
|
7038
|
+
search: (_c = prevState['yajra']) === null || _c === void 0 ? void 0 : _c.search,
|
|
7039
|
+
} }));
|
|
7040
|
+
});
|
|
6992
7041
|
}
|
|
6993
7042
|
yajraColumnParams.push({
|
|
6994
7043
|
data: getTableAsyncName(((_a = column.dataIndex) !== null && _a !== void 0 ? _a : column.dataIndexName)),
|
|
@@ -23222,4 +23271,4 @@ class BaseModel {
|
|
|
23222
23271
|
}
|
|
23223
23272
|
}
|
|
23224
23273
|
|
|
23225
|
-
export { BaseModel, ButtonComponent, ButtonGroupAddComponent, ButtonGroupEditComponent, CardComponent, CascaderComponent, CheckboxComponent$1 as CheckboxComponent, CheckboxComponent as CheckboxGroupComponent, ConfigProvider$1 as ConfigProvider, DateFormat$1 as DateFormat, DatePickerComponent, DateRangePickerComponent, DropdownButtonComponent, FeedbackProvider, FormItemComponent, IconCheckOrClose, InputComponent, LinkComponent, NumberFormatComponent, RadioComponent, SelectAsyncComponent, SelectComponent, SwitchComponent, TableAsyncComponent, TableAsyncSearchComponent, TableCellEditableComponent, TableComponent, TableRowProvider, TabsComponent, TagComponent, TextAreaComponent, TransformBoolean, TransformDayjs, TransformNumber, colInline, colLayout, datePickerFormat, formColLayout, getTableAsyncName, getTableFilterStorage, selectAsync, styleCSS, toCamel, useConfig$1 as useConfig, useFeedback, useFocus, useRemoveError, useTableAsyncSearch, useTableRow };
|
|
23274
|
+
export { BaseModel, ButtonComponent, ButtonGroupAddComponent, ButtonGroupEditComponent, CardComponent, CascaderComponent, CheckboxComponent$1 as CheckboxComponent, CheckboxComponent as CheckboxGroupComponent, ConfigProvider$1 as ConfigProvider, DateFormat$1 as DateFormat, DatePickerComponent, DateRangePickerComponent, DropdownButtonComponent, FeedbackProvider, FormItemComponent, IconCheckOrClose, InputComponent, LinkComponent, NumberFormatComponent, RadioComponent, SelectAsyncComponent, SelectComponent, SwitchComponent, TableAsyncComponent, TableAsyncSearchComponent, TableCellEditableComponent, TableComponent, TableRowProvider, TabsComponent, TagComponent, TextAreaComponent, TransformBoolean, TransformDayjs, TransformNumber, colInline, colLayout, datePickerFormat, formColLayout, getTableAsyncName, getTableFilterStorage, selectAsync, styleCSS, toCamel, useConfig$1 as useConfig, useDataGrid, useFeedback, useFocus, useRemoveError, useTableAsyncSearch, useTableRow };
|
package/dist/index.js
CHANGED
|
@@ -1880,7 +1880,7 @@ const selectAsync = ({ format, request, initData, }) => {
|
|
|
1880
1880
|
};
|
|
1881
1881
|
|
|
1882
1882
|
var css_248z$9 = ".style-module_button-save__CGfus {\n background-color: var(--color-primary-a0);\n}\n\n@keyframes style-module_zoom-in__HJzbj {\n from {\n width: 0;\n opacity: 0;\n }\n\n to {\n display: inline-flex;\n transform: scaleX(100%) scaleY(100%);\n opacity: 1;\n }\n}\n\n@keyframes style-module_zoom-out__PqWZu {\n from {\n display: inline-flex;\n }\n\n to {\n transform: scaleX(0) scaleY(0);\n width: 0;\n opacity: 0;\n }\n}\n\ndiv.style-module_button-group__m4a-F.style-module_button-group-add__J3FOg>button:nth-child(-n + 1) {\n margin-right: .5rem;\n}\n\ndiv.style-module_button-group__m4a-F.style-module_button-group-edit__-ZIEQ>button:nth-child(-n + 2) {\n margin-right: .5rem;\n}\n\ndiv.style-module_button-group__m4a-F>button {\n animation: style-module_zoom-in__HJzbj .5s;\n}\n\n.style-module_button-group__m4a-F .style-module_display-none__y57XG {\n animation: style-module_zoom-out__PqWZu .5s;\n display: none;\n}";
|
|
1883
|
-
var styleButton = {"button-group":"style-module_button-group__m4a-F","button-group-add":"style-module_button-group-add__J3FOg","button-group-edit":"style-module_button-group-edit__-ZIEQ","display-none":"style-module_display-none__y57XG"};
|
|
1883
|
+
var styleButton = {"button-save":"style-module_button-save__CGfus","button-group":"style-module_button-group__m4a-F","button-group-add":"style-module_button-group-add__J3FOg","button-group-edit":"style-module_button-group-edit__-ZIEQ","zoom-in":"style-module_zoom-in__HJzbj","display-none":"style-module_display-none__y57XG","zoom-out":"style-module_zoom-out__PqWZu"};
|
|
1884
1884
|
styleInject(css_248z$9);
|
|
1885
1885
|
|
|
1886
1886
|
const IconContext$1 = /*#__PURE__*/React.createContext({});
|
|
@@ -3812,31 +3812,71 @@ function requireReactIs () {
|
|
|
3812
3812
|
|
|
3813
3813
|
var reactIsExports = requireReactIs();
|
|
3814
3814
|
|
|
3815
|
-
const ButtonGroupAddComponent = ({ formColLayout, disabled, loading, onBack, onSave, }) => {
|
|
3815
|
+
const ButtonGroupAddComponent = ({ formColLayout, disabled, loading, onBack, onSave, classNames, className, }) => {
|
|
3816
3816
|
const saveMethod = onSave
|
|
3817
3817
|
? { onClick: onSave }
|
|
3818
3818
|
: { htmlType: 'submit' };
|
|
3819
3819
|
const col = React.useMemo(() => {
|
|
3820
3820
|
return formColLayout ? colLayout(formColLayout) : undefined;
|
|
3821
3821
|
}, [formColLayout]);
|
|
3822
|
-
const
|
|
3822
|
+
const classButton = React.useMemo(() => {
|
|
3823
|
+
const classButtonNames = [
|
|
3823
3824
|
styleButton['button-group'],
|
|
3824
3825
|
styleButton['button-group-add'],
|
|
3825
|
-
]
|
|
3826
|
+
];
|
|
3827
|
+
classNames && classButtonNames.push(...classNames);
|
|
3828
|
+
return classButtonNames;
|
|
3829
|
+
}, [styleButton, classNames]);
|
|
3830
|
+
const classButtonBack = React.useMemo(() => {
|
|
3831
|
+
const classButtonBackNames = [];
|
|
3832
|
+
!onBack && classButtonBackNames.push(styleButton['display-none']);
|
|
3833
|
+
(className === null || className === void 0 ? void 0 : className.buttonBack) && classButtonBackNames.push(...className.buttonBack);
|
|
3834
|
+
return classButtonBackNames;
|
|
3835
|
+
}, [styleButton, className, onBack]);
|
|
3836
|
+
const buttonGroup = (jsxRuntimeExports.jsxs("div", { className: classButton.join(' '), children: [jsxRuntimeExports.jsx(ButtonComponent, { tooltip: { title: 'Back' }, icon: jsxRuntimeExports.jsx(RefIcon$g, {}), classNames: classButtonBack, disabled: disabled, onClick: onBack }), jsxRuntimeExports.jsx(ButtonComponent, Object.assign({ tooltip: { title: 'Save' }, icon: jsxRuntimeExports.jsx(RefIcon$3, {}), type: "primary", classNames: className === null || className === void 0 ? void 0 : className.buttonSave, disabled: disabled, loading: loading }, saveMethod))] }));
|
|
3826
3837
|
return col ? (jsxRuntimeExports.jsx(antd.Row, { children: jsxRuntimeExports.jsx(antd.Col, Object.assign({}, col, { children: buttonGroup })) })) : buttonGroup;
|
|
3827
3838
|
};
|
|
3828
3839
|
|
|
3829
|
-
const ButtonGroupEditComponent = ({ formColLayout, disabled, loading, allowEdit = true, editing, setEditing, onBack, onSave, }) => {
|
|
3840
|
+
const ButtonGroupEditComponent = ({ formColLayout, disabled, loading, allowEdit = true, editing, setEditing, onBack, onSave, classNames, className, }) => {
|
|
3830
3841
|
const saveMethod = onSave
|
|
3831
3842
|
? { onClick: onSave }
|
|
3832
3843
|
: { htmlType: 'submit' };
|
|
3833
3844
|
const col = React.useMemo(() => {
|
|
3834
3845
|
return formColLayout ? colLayout(formColLayout) : undefined;
|
|
3835
3846
|
}, [formColLayout]);
|
|
3836
|
-
const
|
|
3847
|
+
const classButton = React.useMemo(() => {
|
|
3848
|
+
const classButtonNames = [
|
|
3837
3849
|
styleButton['button-group'],
|
|
3838
3850
|
styleButton['button-group-edit'],
|
|
3839
|
-
]
|
|
3851
|
+
];
|
|
3852
|
+
classNames && classButtonNames.push(...classNames);
|
|
3853
|
+
return classButtonNames;
|
|
3854
|
+
}, [styleButton, classNames]);
|
|
3855
|
+
const classButtonBack = React.useMemo(() => {
|
|
3856
|
+
const classButtonBackNames = [];
|
|
3857
|
+
!onBack && classButtonBackNames.push(styleButton['display-none']);
|
|
3858
|
+
(className === null || className === void 0 ? void 0 : className.buttonBack) && classButtonBackNames.push(...className.buttonBack);
|
|
3859
|
+
return classButtonBackNames;
|
|
3860
|
+
}, [styleButton, className, onBack]);
|
|
3861
|
+
const classButtonCancel = React.useMemo(() => {
|
|
3862
|
+
const classButtonCancelNames = [];
|
|
3863
|
+
!editing && classButtonCancelNames.push(styleButton['display-none']);
|
|
3864
|
+
(className === null || className === void 0 ? void 0 : className.buttonCancel) && classButtonCancelNames.push(...className.buttonCancel);
|
|
3865
|
+
return classButtonCancelNames;
|
|
3866
|
+
}, [styleButton, className, editing]);
|
|
3867
|
+
const classButtonSave = React.useMemo(() => {
|
|
3868
|
+
const classButtonSaveNames = [];
|
|
3869
|
+
!editing && classButtonSaveNames.push(styleButton['display-none']);
|
|
3870
|
+
(className === null || className === void 0 ? void 0 : className.buttonSave) && classButtonSaveNames.push(...className.buttonSave);
|
|
3871
|
+
return classButtonSaveNames;
|
|
3872
|
+
}, [styleButton, className, editing]);
|
|
3873
|
+
const classButtonEdit = React.useMemo(() => {
|
|
3874
|
+
const classButtonEditNames = [];
|
|
3875
|
+
!(allowEdit && !editing) && classButtonEditNames.push(styleButton['display-none']);
|
|
3876
|
+
(className === null || className === void 0 ? void 0 : className.buttonEdit) && classButtonEditNames.push(...className.buttonEdit);
|
|
3877
|
+
return classButtonEditNames;
|
|
3878
|
+
}, [styleButton, className, allowEdit, editing]);
|
|
3879
|
+
const buttonGroup = (jsxRuntimeExports.jsxs("div", { className: classButton.join(' '), children: [jsxRuntimeExports.jsx(ButtonComponent, { tooltip: { title: 'Back' }, icon: jsxRuntimeExports.jsx(RefIcon$g, {}), classNames: classButtonBack, disabled: disabled, onClick: onBack }), jsxRuntimeExports.jsx(ButtonComponent, { tooltip: { title: 'Cancel' }, icon: jsxRuntimeExports.jsx(RefIcon$c, {}), classNames: classButtonCancel, disabled: disabled, onClick: () => setEditing === null || setEditing === void 0 ? void 0 : setEditing(false) }), jsxRuntimeExports.jsx(ButtonComponent, Object.assign({ tooltip: { title: 'Save' }, icon: jsxRuntimeExports.jsx(RefIcon$3, {}), type: "primary", classNames: classButtonSave, disabled: disabled, loading: loading }, saveMethod)), jsxRuntimeExports.jsx(ButtonComponent, { tooltip: { title: 'Edit' }, icon: jsxRuntimeExports.jsx(RefIcon$9, {}), classNames: classButtonEdit, disabled: disabled, onClick: () => setEditing === null || setEditing === void 0 ? void 0 : setEditing(true) })] }));
|
|
3840
3880
|
return col ? (jsxRuntimeExports.jsx(antd.Row, { children: jsxRuntimeExports.jsx(antd.Col, Object.assign({}, col, { children: buttonGroup })) })) : buttonGroup;
|
|
3841
3881
|
};
|
|
3842
3882
|
|
|
@@ -3946,7 +3986,7 @@ var formColLayout = {
|
|
|
3946
3986
|
notInline: {},
|
|
3947
3987
|
};
|
|
3948
3988
|
|
|
3949
|
-
const DatePickerComponent = ({ noItem, size, variant, picker, disabledDate, disabledTime, loading, disabled, value, defaultValue, removeError, onChange, style, formColLayout, name, label, classNames = [], className, required, rules,
|
|
3989
|
+
const DatePickerComponent = ({ noItem, size, variant, picker, disabledDate, disabledTime, loading, disabled, value, defaultValue, removeError, onChange, style, formColLayout, name, label, classNames = [], className, required, rules, ruleMessage, validateStatus, help, shouldUpdate, ref, }) => {
|
|
3950
3990
|
const [valueDate, setValueDate] = React.useState(defaultValue);
|
|
3951
3991
|
const handleChange = (date, dateString) => {
|
|
3952
3992
|
setValueDate(date);
|
|
@@ -3960,12 +4000,12 @@ const DatePickerComponent = ({ noItem, size, variant, picker, disabledDate, disa
|
|
|
3960
4000
|
const classDate = [styleCSS['w-100']];
|
|
3961
4001
|
classNames && classDate.push(...classNames);
|
|
3962
4002
|
const datePicker = !loading ? (jsxRuntimeExports.jsx(antd.DatePicker, { className: classDate === null || classDate === void 0 ? void 0 : classDate.join(' '), classNames: className, size: size !== null && size !== void 0 ? size : 'middle', variant: variant, picker: picker, format: datePickerFormat[picker !== null && picker !== void 0 ? picker : 'default'], allowClear: !required, disabled: disabled, disabledDate: disabledDate, disabledTime: disabledTime, value: value !== null && value !== void 0 ? value : valueDate, onChange: handleChange, style: style })) : jsxRuntimeExports.jsx(antd.Skeleton.Input, { block: true, active: true });
|
|
3963
|
-
return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: !noItem ? (jsxRuntimeExports.jsx(FormItemComponent, Object.assign({}, formColLayout, { name: name, label: label, required: required, ruleType:
|
|
4003
|
+
return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: !noItem ? (jsxRuntimeExports.jsx(FormItemComponent, Object.assign({}, formColLayout, { name: name, label: label, required: required, ruleType: "date", ruleMessage: ruleMessage, rules: rules, validateStatus: validateStatus, help: help, shouldUpdate: shouldUpdate, children: datePicker })))
|
|
3964
4004
|
: datePicker }));
|
|
3965
4005
|
};
|
|
3966
4006
|
|
|
3967
4007
|
const { RangePicker } = antd.DatePicker;
|
|
3968
|
-
const DateRangePickerComponent = ({ noItem, size, variant, picker, disabledDate, disabledTime, loading, disabled, value, defaultValue, removeError, onChange, style, formColLayout, name, label, classNames = [], className, required, rules,
|
|
4008
|
+
const DateRangePickerComponent = ({ noItem, size, variant, picker, disabledDate, disabledTime, loading, disabled, value, defaultValue, removeError, onChange, style, formColLayout, name, label, classNames = [], className, required, rules, ruleMessage, validateStatus, help, shouldUpdate, ref, }) => {
|
|
3969
4009
|
var _a;
|
|
3970
4010
|
const [valueDateRange, setValueDateRange] = React.useState(defaultValue);
|
|
3971
4011
|
const handleChange = (date, dateStrings) => {
|
|
@@ -3980,7 +4020,7 @@ const DateRangePickerComponent = ({ noItem, size, variant, picker, disabledDate,
|
|
|
3980
4020
|
const classDateRange = [styleCSS['w-100']];
|
|
3981
4021
|
classNames && classDateRange.push(...classNames);
|
|
3982
4022
|
const datePicker = !loading ? (jsxRuntimeExports.jsx(RangePicker, { className: classDateRange.join(' '), classNames: className, size: size !== null && size !== void 0 ? size : 'middle', variant: variant, picker: picker, format: datePickerFormat[(_a = picker === null || picker === void 0 ? void 0 : picker.toString()) !== null && _a !== void 0 ? _a : 'default'], allowClear: !required, disabled: disabled, disabledDate: disabledDate, disabledTime: disabledTime, value: value !== null && value !== void 0 ? value : valueDateRange, onChange: handleChange, style: style })) : jsxRuntimeExports.jsx(antd.Skeleton.Input, { block: true, active: true });
|
|
3983
|
-
return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: !noItem ? (jsxRuntimeExports.jsx(FormItemComponent, Object.assign({}, formColLayout, { name: name, label: label, required: required, ruleType:
|
|
4023
|
+
return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: !noItem ? (jsxRuntimeExports.jsx(FormItemComponent, Object.assign({}, formColLayout, { name: name, label: label, required: required, ruleType: "array", ruleMessage: ruleMessage, rules: rules, validateStatus: validateStatus, help: help, shouldUpdate: shouldUpdate, children: datePicker })))
|
|
3984
4024
|
: datePicker }));
|
|
3985
4025
|
};
|
|
3986
4026
|
|
|
@@ -6063,7 +6103,7 @@ const NumberFormat = ({ noItem, text, size, align, classNames, variant, trailing
|
|
|
6063
6103
|
}, [classNames, text, size, validateStatus, status, variant, align]);
|
|
6064
6104
|
return (jsxRuntimeExports.jsx("div", Object.assign({ onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onFocus: onFocus, onClick: onClick }, text && align === 'right' && {
|
|
6065
6105
|
style: { textAlign: 'right' }
|
|
6066
|
-
}, { children: jsxRuntimeExports.jsx(reactNumberFormat.NumericFormat, { thousandSeparator: true, className: classNumberFormat.join(' '), disabled: disabled, readOnly: readOnly, required: required, allowNegative: allowNegative, displayType: text ? 'text' : undefined, prefix: prefix, suffix: suffix, placeholder: placeholder, decimalScale: trailingProps !== null && trailingProps !== void 0 ? trailingProps : trailing, min: ruleMin, max: ruleMax,
|
|
6106
|
+
}, { children: jsxRuntimeExports.jsx(reactNumberFormat.NumericFormat, { thousandSeparator: true, fixedDecimalScale: true, className: classNumberFormat.join(' '), disabled: disabled, readOnly: readOnly, required: required, allowNegative: allowNegative, displayType: text ? 'text' : undefined, prefix: prefix, suffix: suffix, placeholder: placeholder, decimalScale: trailingProps !== null && trailingProps !== void 0 ? trailingProps : trailing, min: ruleMin, max: ruleMax, value: value !== null && value !== void 0 ? value : valueNumberFormat, onChange: event => {
|
|
6067
6107
|
removeError === null || removeError === void 0 ? void 0 : removeError(name);
|
|
6068
6108
|
}, onValueChange: (values, info) => {
|
|
6069
6109
|
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(values, info);
|
|
@@ -6873,6 +6913,9 @@ const TableComponent = ({ noPagination, buttonReload, buttonAdd, buttonMiddle, b
|
|
|
6873
6913
|
} })), buttonFilter] }))] }), jsxRuntimeExports.jsx(antd.Table, { showSorterTooltip: true, tableLayout: "fixed", className: "table-data", rowClassName: rowClassName, size: size !== null && size !== void 0 ? size : 'middle', columns: columns, rowKey: rowKey !== null && rowKey !== void 0 ? rowKey : 'id', dataSource: data, expandable: expandable, pagination: !noPagination && Object.assign({ pageSizeOptions: ['10', '20', '50', '100', '200'], showSizeChanger: true, showQuickJumper: true, showTotal: (total, range) => `${range[0]}-${range[1]} of ${total} items` }, pagination), loading: loading, scroll: scroll !== null && scroll !== void 0 ? scroll : { y: 'calc(100vh - 300px)' }, sticky: sticky, components: components, summary: summary, onChange: onChange, rowSelection: rowSelectionTable, style: style })] }));
|
|
6874
6914
|
};
|
|
6875
6915
|
|
|
6916
|
+
const DataGridContext = React.createContext({});
|
|
6917
|
+
const useDataGrid = () => React.useContext(DataGridContext);
|
|
6918
|
+
|
|
6876
6919
|
var css_248z$3 = "html {\n --success-default: #28a745;\n --danger-default: #dc3545;\n\n --color-light-a0-default: #ffffff;\n --color-light-a10-default: #e9e9e9;\n --color-light-a20-default: #d2d2d2;\n --color-light-a30-default: #bababa;\n --color-light-a40-default: #a0a0a0;\n --color-light-a50-default: #868686;\n\n --color-dark-a0-default: #121212;\n --color-dark-a10-default: #282828;\n --color-dark-a20-default: #3f3f3f;\n --color-dark-a30-default: #575757;\n --color-dark-a40-default: #717171;\n --color-dark-a50-default: #8b8b8b;\n\n --color-primary-a0-default: #3dc2ec;\n --color-primary-a10-default: #5fc9ee;\n --color-primary-a20-default: #79d0f0;\n --color-primary-a30-default: #90d6f3;\n --color-primary-a40-default: #a4ddf5;\n --color-primary-a50-default: #b8e4f7;\n\n --color-primary-dark-a0-default: #213137;\n --color-primary-dark-a10-default: #36454a;\n --color-primary-dark-a20-default: #4d5a5f;\n --color-primary-dark-a30-default: #646f74;\n --color-primary-dark-a40-default: #7c8689;\n --color-primary-dark-a50-default: #959da0;\n\n --color-secondary-a0-default: #ad49e1;\n --color-secondary-a10-default: #b860e5;\n --color-secondary-a20-default: #c274e9;\n --color-secondary-a30-default: #cc89ec;\n --color-secondary-a40-default: #d69df0;\n --color-secondary-a50-default: #dfb0f3;\n\n --color-secondary-dark-a0-default: #2e1f36;\n --color-secondary-dark-a10-default: #42344a;\n --color-secondary-dark-a20-default: #584a5e;\n --color-secondary-dark-a30-default: #6e6273;\n --color-secondary-dark-a40-default: #847a89;\n --color-secondary-dark-a50-default: #9c93a0;\n}\n\n.style_success__OJLGK {\n color: var(--success, var(--success-default)) !important;\n}\n\n.style_danger__Kkj7I {\n color: var(--danger, var(--danger-default)) !important;\n}\n\n.style_light-a0__IqAbq {\n color: var(--color-light-a0, var(--color-light-a0-default)) !important;\n}\n\n.style_light-a10__HmZkj {\n color: var(--color-light-a10, var(--color-light-a10-default)) !important;\n}\n\n.style_light-a20__jwK9u {\n color: var(--color-light-a20, var(--color-light-a20-default)) !important;\n}\n\n.style_light-a30__u7-f- {\n color: var(--color-light-a30, var(--color-light-a30-default)) !important;\n}\n\n.style_light-a40__ozfI4 {\n color: var(--color-light-a40, var(--color-light-a40-default)) !important;\n}\n\n.style_light-a50__kRA5g {\n color: var(--color-light-a50, var(--color-light-a50-default)) !important;\n}\n\n.style_dark-a0__9m3yI {\n color: var(--color-dark-a0, var(--color-dark-a0-default)) !important;\n}\n\n.style_dark-a10__jAtYh {\n color: var(--color-dark-a10, var(--color-dark-a10-default)) !important;\n}\n\n.style_dark-a20__60nkd {\n color: var(--color-dark-a20, var(--color-dark-a20-default)) !important;\n}\n\n.style_dark-a30__ED3PC {\n color: var(--color-dark-a30, var(--color-dark-a30-default)) !important;\n}\n\n.style_dark-a40__rSYy6 {\n color: var(--color-dark-a40, var(--color-dark-a40-default)) !important;\n}\n\n.style_dark-a50__uIvD- {\n color: var(--color-dark-a50, var(--color-dark-a50-default)) !important;\n}\n\n.style_primary-a0__bsl-7 {\n color: var(--color-primary-a0, var(--color-primary-a0-default)) !important;\n}\n\n.style_primary-a10__pr2vt {\n color: var(--color-primary-a10, var(--color-primary-a10-default)) !important;\n}\n\n.style_primary-a20__HhTmN {\n color: var(--color-primary-a20, var(--color-primary-a20-default)) !important;\n}\n\n.style_primary-a30__2JV2J {\n color: var(--color-primary-a30, var(--color-primary-a30-default)) !important;\n}\n\n.style_primary-a40__xeKpG {\n color: var(--color-primary-a40, var(--color-primary-a40-default)) !important;\n}\n\n.style_primary-a50__moUMf {\n color: var(--color-primary-a50, var(--color-primary-a50-default)) !important;\n}\n\n.style_primary-dark-a0__-bRAb {\n color: var(--color-primary-dark-a0, var(--color-primary-dark-a0-default)) !important;\n}\n\n.style_primary-dark-a10__u6chI {\n color: var(--color-primary-dark-a10, var(--color-primary-dark-a10-default)) !important;\n}\n\n.style_primary-dark-a20__stCee {\n color: var(--color-primary-dark-a20, var(--color-primary-dark-a20-default)) !important;\n}\n\n.style_primary-dark-a30__zIK00 {\n color: var(--color-primary-dark-a30, var(--color-primary-dark-a30-default)) !important;\n}\n\n.style_primary-dark-a40__lx9UB {\n color: var(--color-primary-dark-a40, var(--color-primary-dark-a40-default)) !important;\n}\n\n.style_primary-dark-a50__LoPRz {\n color: var(--color-primary-dark-a50, var(--color-primary-dark-a50-default)) !important;\n}";
|
|
6877
6920
|
styleInject(css_248z$3);
|
|
6878
6921
|
|
|
@@ -7002,12 +7045,18 @@ const TableAsyncSearchProvider = props => {
|
|
|
7002
7045
|
return;
|
|
7003
7046
|
if (column.defaultSortOrder) {
|
|
7004
7047
|
defaultOrderFound = true;
|
|
7005
|
-
setTableParams(prevState =>
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7048
|
+
setTableParams(prevState => {
|
|
7049
|
+
var _a, _b, _c;
|
|
7050
|
+
return (Object.assign(Object.assign({}, prevState), { ['yajra']: {
|
|
7051
|
+
order: [{
|
|
7052
|
+
column: defaultOrder,
|
|
7053
|
+
dir: column.defaultSortOrder === 'ascend' ? 'asc' : 'desc',
|
|
7054
|
+
}],
|
|
7055
|
+
start: (_a = prevState['yajra']) === null || _a === void 0 ? void 0 : _a.start,
|
|
7056
|
+
length: (_b = prevState['yajra']) === null || _b === void 0 ? void 0 : _b.length,
|
|
7057
|
+
search: (_c = prevState['yajra']) === null || _c === void 0 ? void 0 : _c.search,
|
|
7058
|
+
} }));
|
|
7059
|
+
});
|
|
7011
7060
|
}
|
|
7012
7061
|
yajraColumnParams.push({
|
|
7013
7062
|
data: getTableAsyncName(((_a = column.dataIndex) !== null && _a !== void 0 ? _a : column.dataIndexName)),
|
|
@@ -23289,6 +23338,7 @@ exports.selectAsync = selectAsync;
|
|
|
23289
23338
|
exports.styleCSS = styleCSS;
|
|
23290
23339
|
exports.toCamel = toCamel;
|
|
23291
23340
|
exports.useConfig = useConfig$1;
|
|
23341
|
+
exports.useDataGrid = useDataGrid;
|
|
23292
23342
|
exports.useFeedback = useFeedback;
|
|
23293
23343
|
exports.useFocus = useFocus;
|
|
23294
23344
|
exports.useRemoveError = useRemoveError;
|