@esic-lab/data-core-ui 0.0.29 → 0.0.30
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/index.d.mts +71 -27
- package/dist/index.d.ts +71 -27
- package/dist/index.js +528 -438
- package/dist/index.mjs +515 -428
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3,8 +3,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
3
3
|
import react, { ReactNode } from 'react';
|
|
4
4
|
import { ColumnsType } from 'antd/es/table';
|
|
5
5
|
import { EventSourceInput } from '@fullcalendar/core';
|
|
6
|
+
import { InputNumberProps, SelectProps } from 'antd';
|
|
6
7
|
import { Color } from 'antd/es/color-picker';
|
|
7
|
-
import { SelectProps } from 'antd';
|
|
8
8
|
import { MessageInstance } from 'antd/es/message/interface';
|
|
9
9
|
import { ItemType } from 'antd/es/breadcrumb/Breadcrumb';
|
|
10
10
|
|
|
@@ -40,6 +40,17 @@ interface GhostButtonProps {
|
|
|
40
40
|
}
|
|
41
41
|
declare function GhostButton({ title, onClick, iconLeft, iconRight, disabled }: GhostButtonProps): react_jsx_runtime.JSX.Element;
|
|
42
42
|
|
|
43
|
+
interface Title {
|
|
44
|
+
path: string;
|
|
45
|
+
name: string;
|
|
46
|
+
}
|
|
47
|
+
interface ParamTabSelection {
|
|
48
|
+
title: Title[];
|
|
49
|
+
now: string;
|
|
50
|
+
onClickGoto: (path: string) => void;
|
|
51
|
+
}
|
|
52
|
+
declare const TabSelectionButton: ({ title, now, onClickGoto }: ParamTabSelection) => react_jsx_runtime.JSX.Element;
|
|
53
|
+
|
|
43
54
|
interface LoaderProps {
|
|
44
55
|
size?: number;
|
|
45
56
|
color?: string;
|
|
@@ -173,6 +184,21 @@ interface TextInputProps {
|
|
|
173
184
|
}
|
|
174
185
|
declare function TextInput({ label, placeholder, type, maxLength, required, error, value, onChange, disabled, }: TextInputProps): react_jsx_runtime.JSX.Element;
|
|
175
186
|
|
|
187
|
+
interface TextAreaProps {
|
|
188
|
+
label?: string;
|
|
189
|
+
height?: number;
|
|
190
|
+
placeholder?: string;
|
|
191
|
+
value: string;
|
|
192
|
+
onChange: (value: string) => void;
|
|
193
|
+
maxLength?: number;
|
|
194
|
+
resizable?: boolean;
|
|
195
|
+
showCount?: boolean;
|
|
196
|
+
required?: boolean;
|
|
197
|
+
error?: string;
|
|
198
|
+
disabled?: boolean;
|
|
199
|
+
}
|
|
200
|
+
declare function TextAreaInput({ label, height, placeholder, onChange, value, maxLength, resizable, showCount, required, error, disabled, }: TextAreaProps): react_jsx_runtime.JSX.Element;
|
|
201
|
+
|
|
176
202
|
interface InputFieldProps {
|
|
177
203
|
value: string | undefined;
|
|
178
204
|
onChange: (value: string | undefined) => void;
|
|
@@ -190,35 +216,30 @@ interface InputFieldProps {
|
|
|
190
216
|
}
|
|
191
217
|
declare function InputField({ value, onChange, placeholder, title, required, bottomText, disabled, error, addonBefore, addonAfter, defaultValue, className, onClear, }: InputFieldProps): react_jsx_runtime.JSX.Element;
|
|
192
218
|
|
|
193
|
-
interface
|
|
194
|
-
|
|
195
|
-
|
|
219
|
+
interface InputFieldNumberProps {
|
|
220
|
+
value: number | string | null;
|
|
221
|
+
onChange: (value: number | string | null) => void;
|
|
196
222
|
placeholder?: string;
|
|
197
|
-
|
|
198
|
-
onChange: (value: string) => void;
|
|
199
|
-
maxLength?: number;
|
|
200
|
-
resizable?: boolean;
|
|
201
|
-
showCount?: boolean;
|
|
223
|
+
title?: string;
|
|
202
224
|
required?: boolean;
|
|
203
|
-
error?: string;
|
|
204
225
|
disabled?: boolean;
|
|
205
|
-
}
|
|
206
|
-
declare function TextAreaInput({ label, height, placeholder, onChange, value, maxLength, resizable, showCount, required, error, disabled, }: TextAreaProps): react_jsx_runtime.JSX.Element;
|
|
207
|
-
|
|
208
|
-
interface ColorPickerProps {
|
|
209
|
-
value: string | null;
|
|
210
|
-
onChange?: (color: Color, hex: string) => void;
|
|
211
|
-
required?: boolean;
|
|
212
|
-
title?: string;
|
|
213
|
-
bottomText?: string;
|
|
214
226
|
error?: string;
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
227
|
+
addonBefore?: React.ReactNode;
|
|
228
|
+
addonAfter?: React.ReactNode;
|
|
229
|
+
defaultValue?: number;
|
|
218
230
|
className?: string;
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
231
|
+
max?: number;
|
|
232
|
+
min?: number;
|
|
233
|
+
controls?: boolean | {
|
|
234
|
+
upIcon?: React.ReactNode;
|
|
235
|
+
downIcon?: React.ReactNode;
|
|
236
|
+
};
|
|
237
|
+
size?: "large" | "middle" | "small";
|
|
238
|
+
changeOnWheel?: boolean;
|
|
239
|
+
formatter?: InputNumberProps["formatter"];
|
|
240
|
+
parser?: InputNumberProps["parser"];
|
|
241
|
+
}
|
|
242
|
+
declare function InputFieldNumber({ value, onChange, placeholder, title, required, disabled, error, addonBefore, addonAfter, defaultValue, className, max, min, controls, size, changeOnWheel, formatter, parser, }: InputFieldNumberProps): react_jsx_runtime.JSX.Element;
|
|
222
243
|
|
|
223
244
|
declare function dayjs (date?: dayjs.ConfigType): dayjs.Dayjs
|
|
224
245
|
|
|
@@ -716,6 +737,21 @@ interface TimePickerRangePickerProps {
|
|
|
716
737
|
}
|
|
717
738
|
declare function TimePickerRangePicker({ value, onChange, placeholder, title, required, bottomText, error, disabled, className, }: TimePickerRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
718
739
|
|
|
740
|
+
interface ColorPickerProps {
|
|
741
|
+
value: string | null;
|
|
742
|
+
onChange?: (color: Color, hex: string) => void;
|
|
743
|
+
required?: boolean;
|
|
744
|
+
title?: string;
|
|
745
|
+
bottomText?: string;
|
|
746
|
+
error?: string;
|
|
747
|
+
disabled?: boolean;
|
|
748
|
+
allowClear?: boolean;
|
|
749
|
+
defaultFormat?: "hex" | "rgb" | "hsb";
|
|
750
|
+
className?: string;
|
|
751
|
+
placeholder?: string;
|
|
752
|
+
}
|
|
753
|
+
declare function ColorPickerBasic({ value, onChange, required, title, bottomText, error, disabled, allowClear, defaultFormat, className, placeholder, }: ColorPickerProps): react_jsx_runtime.JSX.Element;
|
|
754
|
+
|
|
719
755
|
interface ColorPalettePickerBasicProps {
|
|
720
756
|
value: string | null;
|
|
721
757
|
onChange?: (color: Color, hex: string) => void;
|
|
@@ -910,7 +946,7 @@ interface ProgressBarProps {
|
|
|
910
946
|
steps?: number;
|
|
911
947
|
isCheckPoints?: boolean;
|
|
912
948
|
}
|
|
913
|
-
declare function ProgressBar({ percent, size, checkpoints, showInfo, trailColor, type, strokeLinecap, strokeWidth, steps, isCheckPoints }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
949
|
+
declare function ProgressBar({ percent, size, checkpoints, showInfo, trailColor, type, strokeLinecap, strokeWidth, steps, isCheckPoints, }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
914
950
|
|
|
915
951
|
interface KpiNumberItem {
|
|
916
952
|
id: string;
|
|
@@ -926,4 +962,12 @@ interface KpiSectionProps {
|
|
|
926
962
|
}
|
|
927
963
|
declare function KpiSection({ type, onChangeKpiList }: KpiSectionProps): react_jsx_runtime.JSX.Element;
|
|
928
964
|
|
|
929
|
-
|
|
965
|
+
interface ModalProps {
|
|
966
|
+
children: ReactNode;
|
|
967
|
+
isOpen: boolean;
|
|
968
|
+
width?: string | number;
|
|
969
|
+
onCancel: () => void;
|
|
970
|
+
}
|
|
971
|
+
declare function AntDModal({ children, isOpen, width, onCancel }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
972
|
+
|
|
973
|
+
export { AntDModal, AntDataTable, Breadcrumbs, Calendar, Checkbox, CheckboxGroup, ColorPalettePickerBasic, ColorPickerBasic, DataTable, DatePickerBasic, DatePickerRangePicker, FileUploader, GhostButton, HeadingPage, InputField, InputFieldNumber, KpiSection, Loader, MenuNavBar, type MenuNavBarProps, PrimaryButton, ProgressBar, Radio, RadioGroup, SecondaryButton, SelectCustom, SelectField, SelectFieldGroup, SelectFieldStatus, SelectFieldStatusReport, SelectFieldTag, Sidebar, SortFilter, Switch, TabSelectionButton, TextAreaInput, TextInput, TimePickerBasic, TimePickerRangePicker, TopNavBar, messageError, messageInfo, messageLoading, messageSuccess, messageWarning, setMessageApi };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
3
3
|
import react, { ReactNode } from 'react';
|
|
4
4
|
import { ColumnsType } from 'antd/es/table';
|
|
5
5
|
import { EventSourceInput } from '@fullcalendar/core';
|
|
6
|
+
import { InputNumberProps, SelectProps } from 'antd';
|
|
6
7
|
import { Color } from 'antd/es/color-picker';
|
|
7
|
-
import { SelectProps } from 'antd';
|
|
8
8
|
import { MessageInstance } from 'antd/es/message/interface';
|
|
9
9
|
import { ItemType } from 'antd/es/breadcrumb/Breadcrumb';
|
|
10
10
|
|
|
@@ -40,6 +40,17 @@ interface GhostButtonProps {
|
|
|
40
40
|
}
|
|
41
41
|
declare function GhostButton({ title, onClick, iconLeft, iconRight, disabled }: GhostButtonProps): react_jsx_runtime.JSX.Element;
|
|
42
42
|
|
|
43
|
+
interface Title {
|
|
44
|
+
path: string;
|
|
45
|
+
name: string;
|
|
46
|
+
}
|
|
47
|
+
interface ParamTabSelection {
|
|
48
|
+
title: Title[];
|
|
49
|
+
now: string;
|
|
50
|
+
onClickGoto: (path: string) => void;
|
|
51
|
+
}
|
|
52
|
+
declare const TabSelectionButton: ({ title, now, onClickGoto }: ParamTabSelection) => react_jsx_runtime.JSX.Element;
|
|
53
|
+
|
|
43
54
|
interface LoaderProps {
|
|
44
55
|
size?: number;
|
|
45
56
|
color?: string;
|
|
@@ -173,6 +184,21 @@ interface TextInputProps {
|
|
|
173
184
|
}
|
|
174
185
|
declare function TextInput({ label, placeholder, type, maxLength, required, error, value, onChange, disabled, }: TextInputProps): react_jsx_runtime.JSX.Element;
|
|
175
186
|
|
|
187
|
+
interface TextAreaProps {
|
|
188
|
+
label?: string;
|
|
189
|
+
height?: number;
|
|
190
|
+
placeholder?: string;
|
|
191
|
+
value: string;
|
|
192
|
+
onChange: (value: string) => void;
|
|
193
|
+
maxLength?: number;
|
|
194
|
+
resizable?: boolean;
|
|
195
|
+
showCount?: boolean;
|
|
196
|
+
required?: boolean;
|
|
197
|
+
error?: string;
|
|
198
|
+
disabled?: boolean;
|
|
199
|
+
}
|
|
200
|
+
declare function TextAreaInput({ label, height, placeholder, onChange, value, maxLength, resizable, showCount, required, error, disabled, }: TextAreaProps): react_jsx_runtime.JSX.Element;
|
|
201
|
+
|
|
176
202
|
interface InputFieldProps {
|
|
177
203
|
value: string | undefined;
|
|
178
204
|
onChange: (value: string | undefined) => void;
|
|
@@ -190,35 +216,30 @@ interface InputFieldProps {
|
|
|
190
216
|
}
|
|
191
217
|
declare function InputField({ value, onChange, placeholder, title, required, bottomText, disabled, error, addonBefore, addonAfter, defaultValue, className, onClear, }: InputFieldProps): react_jsx_runtime.JSX.Element;
|
|
192
218
|
|
|
193
|
-
interface
|
|
194
|
-
|
|
195
|
-
|
|
219
|
+
interface InputFieldNumberProps {
|
|
220
|
+
value: number | string | null;
|
|
221
|
+
onChange: (value: number | string | null) => void;
|
|
196
222
|
placeholder?: string;
|
|
197
|
-
|
|
198
|
-
onChange: (value: string) => void;
|
|
199
|
-
maxLength?: number;
|
|
200
|
-
resizable?: boolean;
|
|
201
|
-
showCount?: boolean;
|
|
223
|
+
title?: string;
|
|
202
224
|
required?: boolean;
|
|
203
|
-
error?: string;
|
|
204
225
|
disabled?: boolean;
|
|
205
|
-
}
|
|
206
|
-
declare function TextAreaInput({ label, height, placeholder, onChange, value, maxLength, resizable, showCount, required, error, disabled, }: TextAreaProps): react_jsx_runtime.JSX.Element;
|
|
207
|
-
|
|
208
|
-
interface ColorPickerProps {
|
|
209
|
-
value: string | null;
|
|
210
|
-
onChange?: (color: Color, hex: string) => void;
|
|
211
|
-
required?: boolean;
|
|
212
|
-
title?: string;
|
|
213
|
-
bottomText?: string;
|
|
214
226
|
error?: string;
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
227
|
+
addonBefore?: React.ReactNode;
|
|
228
|
+
addonAfter?: React.ReactNode;
|
|
229
|
+
defaultValue?: number;
|
|
218
230
|
className?: string;
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
231
|
+
max?: number;
|
|
232
|
+
min?: number;
|
|
233
|
+
controls?: boolean | {
|
|
234
|
+
upIcon?: React.ReactNode;
|
|
235
|
+
downIcon?: React.ReactNode;
|
|
236
|
+
};
|
|
237
|
+
size?: "large" | "middle" | "small";
|
|
238
|
+
changeOnWheel?: boolean;
|
|
239
|
+
formatter?: InputNumberProps["formatter"];
|
|
240
|
+
parser?: InputNumberProps["parser"];
|
|
241
|
+
}
|
|
242
|
+
declare function InputFieldNumber({ value, onChange, placeholder, title, required, disabled, error, addonBefore, addonAfter, defaultValue, className, max, min, controls, size, changeOnWheel, formatter, parser, }: InputFieldNumberProps): react_jsx_runtime.JSX.Element;
|
|
222
243
|
|
|
223
244
|
declare function dayjs (date?: dayjs.ConfigType): dayjs.Dayjs
|
|
224
245
|
|
|
@@ -716,6 +737,21 @@ interface TimePickerRangePickerProps {
|
|
|
716
737
|
}
|
|
717
738
|
declare function TimePickerRangePicker({ value, onChange, placeholder, title, required, bottomText, error, disabled, className, }: TimePickerRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
718
739
|
|
|
740
|
+
interface ColorPickerProps {
|
|
741
|
+
value: string | null;
|
|
742
|
+
onChange?: (color: Color, hex: string) => void;
|
|
743
|
+
required?: boolean;
|
|
744
|
+
title?: string;
|
|
745
|
+
bottomText?: string;
|
|
746
|
+
error?: string;
|
|
747
|
+
disabled?: boolean;
|
|
748
|
+
allowClear?: boolean;
|
|
749
|
+
defaultFormat?: "hex" | "rgb" | "hsb";
|
|
750
|
+
className?: string;
|
|
751
|
+
placeholder?: string;
|
|
752
|
+
}
|
|
753
|
+
declare function ColorPickerBasic({ value, onChange, required, title, bottomText, error, disabled, allowClear, defaultFormat, className, placeholder, }: ColorPickerProps): react_jsx_runtime.JSX.Element;
|
|
754
|
+
|
|
719
755
|
interface ColorPalettePickerBasicProps {
|
|
720
756
|
value: string | null;
|
|
721
757
|
onChange?: (color: Color, hex: string) => void;
|
|
@@ -910,7 +946,7 @@ interface ProgressBarProps {
|
|
|
910
946
|
steps?: number;
|
|
911
947
|
isCheckPoints?: boolean;
|
|
912
948
|
}
|
|
913
|
-
declare function ProgressBar({ percent, size, checkpoints, showInfo, trailColor, type, strokeLinecap, strokeWidth, steps, isCheckPoints }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
949
|
+
declare function ProgressBar({ percent, size, checkpoints, showInfo, trailColor, type, strokeLinecap, strokeWidth, steps, isCheckPoints, }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
914
950
|
|
|
915
951
|
interface KpiNumberItem {
|
|
916
952
|
id: string;
|
|
@@ -926,4 +962,12 @@ interface KpiSectionProps {
|
|
|
926
962
|
}
|
|
927
963
|
declare function KpiSection({ type, onChangeKpiList }: KpiSectionProps): react_jsx_runtime.JSX.Element;
|
|
928
964
|
|
|
929
|
-
|
|
965
|
+
interface ModalProps {
|
|
966
|
+
children: ReactNode;
|
|
967
|
+
isOpen: boolean;
|
|
968
|
+
width?: string | number;
|
|
969
|
+
onCancel: () => void;
|
|
970
|
+
}
|
|
971
|
+
declare function AntDModal({ children, isOpen, width, onCancel }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
972
|
+
|
|
973
|
+
export { AntDModal, AntDataTable, Breadcrumbs, Calendar, Checkbox, CheckboxGroup, ColorPalettePickerBasic, ColorPickerBasic, DataTable, DatePickerBasic, DatePickerRangePicker, FileUploader, GhostButton, HeadingPage, InputField, InputFieldNumber, KpiSection, Loader, MenuNavBar, type MenuNavBarProps, PrimaryButton, ProgressBar, Radio, RadioGroup, SecondaryButton, SelectCustom, SelectField, SelectFieldGroup, SelectFieldStatus, SelectFieldStatusReport, SelectFieldTag, Sidebar, SortFilter, Switch, TabSelectionButton, TextAreaInput, TextInput, TimePickerBasic, TimePickerRangePicker, TopNavBar, messageError, messageInfo, messageLoading, messageSuccess, messageWarning, setMessageApi };
|