@esic-lab/data-core-ui 0.0.26 → 0.0.27
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/STO-logo-ADYYAPS3.svg +92 -0
- package/dist/index.css +9 -1
- package/dist/index.d.mts +56 -64
- package/dist/index.d.ts +56 -64
- package/dist/index.js +2361 -373
- package/dist/index.mjs +2354 -365
- package/package.json +1 -2
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import react, { ReactNode } from 'react';
|
|
3
3
|
import { ColumnsType } from 'antd/es/table';
|
|
4
4
|
import { EventSourceInput } from '@fullcalendar/core';
|
|
5
|
-
import { InputNumberProps, SelectProps } from 'antd';
|
|
6
5
|
import { Color } from 'antd/es/color-picker';
|
|
6
|
+
import { SelectProps } from 'antd';
|
|
7
7
|
import { MessageInstance } from 'antd/es/message/interface';
|
|
8
8
|
import { ItemType } from 'antd/es/breadcrumb/Breadcrumb';
|
|
9
9
|
|
|
@@ -175,17 +175,19 @@ interface InputFieldProps {
|
|
|
175
175
|
value: string | undefined;
|
|
176
176
|
onChange: (value: string | undefined) => void;
|
|
177
177
|
placeholder?: string;
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
title?: string;
|
|
179
|
+
require?: boolean;
|
|
180
|
+
bottomText?: string;
|
|
180
181
|
disabled?: boolean;
|
|
181
|
-
|
|
182
|
+
showError?: boolean;
|
|
183
|
+
errorMessage?: string;
|
|
182
184
|
addonBefore?: ReactNode;
|
|
183
185
|
addonAfter?: ReactNode;
|
|
184
186
|
defaultValue?: string;
|
|
185
187
|
className?: string;
|
|
186
188
|
onClear?: () => void;
|
|
187
189
|
}
|
|
188
|
-
declare function InputField({ value, onChange, placeholder,
|
|
190
|
+
declare function InputField({ value, onChange, placeholder, title, require, bottomText, disabled, showError, errorMessage, addonBefore, addonAfter, defaultValue, className, onClear }: InputFieldProps): react_jsx_runtime.JSX.Element;
|
|
189
191
|
|
|
190
192
|
interface TextAreaProps {
|
|
191
193
|
label?: string;
|
|
@@ -202,44 +204,21 @@ interface TextAreaProps {
|
|
|
202
204
|
}
|
|
203
205
|
declare function TextAreaInput({ label, height, placeholder, onChange, value, maxLength, resizable, showCount, required, error, disabled, }: TextAreaProps): react_jsx_runtime.JSX.Element;
|
|
204
206
|
|
|
205
|
-
interface InputFieldNumberProps {
|
|
206
|
-
value: number | string | null;
|
|
207
|
-
onChange: (value: number | string | null) => void;
|
|
208
|
-
placeholder?: string;
|
|
209
|
-
title?: string;
|
|
210
|
-
required?: boolean;
|
|
211
|
-
disabled?: boolean;
|
|
212
|
-
error?: string;
|
|
213
|
-
addonBefore?: React.ReactNode;
|
|
214
|
-
addonAfter?: React.ReactNode;
|
|
215
|
-
defaultValue?: number;
|
|
216
|
-
className?: string;
|
|
217
|
-
max?: number;
|
|
218
|
-
min?: number;
|
|
219
|
-
controls?: boolean | {
|
|
220
|
-
upIcon?: React.ReactNode;
|
|
221
|
-
downIcon?: React.ReactNode;
|
|
222
|
-
};
|
|
223
|
-
size?: "large" | "middle" | "small";
|
|
224
|
-
changeOnWheel?: boolean;
|
|
225
|
-
formatter?: InputNumberProps["formatter"];
|
|
226
|
-
parser?: InputNumberProps["parser"];
|
|
227
|
-
}
|
|
228
|
-
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;
|
|
229
|
-
|
|
230
207
|
interface ColorPickerProps {
|
|
231
208
|
value: string | null;
|
|
232
209
|
onChange?: (color: Color, hex: string) => void;
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
210
|
+
require?: boolean;
|
|
211
|
+
title?: string;
|
|
212
|
+
bottomText?: string;
|
|
213
|
+
showError?: boolean;
|
|
214
|
+
errorMessage?: string;
|
|
236
215
|
disabled?: boolean;
|
|
237
216
|
allowClear?: boolean;
|
|
238
217
|
defaultFormat?: "hex" | "rgb" | "hsb";
|
|
239
218
|
className?: string;
|
|
240
219
|
placeholder?: string;
|
|
241
220
|
}
|
|
242
|
-
declare function ColorPickerBasic({ value, onChange,
|
|
221
|
+
declare function ColorPickerBasic({ value, onChange, require, title, bottomText, showError, errorMessage, disabled, allowClear, defaultFormat, className, placeholder }: ColorPickerProps): react_jsx_runtime.JSX.Element;
|
|
243
222
|
|
|
244
223
|
interface DatePickerBasicProps {
|
|
245
224
|
value: Date | null;
|
|
@@ -308,9 +287,11 @@ declare function TimePickerRangePicker({ value, onChange, placeholder, label, re
|
|
|
308
287
|
interface ColorPalettePickerBasicProps {
|
|
309
288
|
value: string | null;
|
|
310
289
|
onChange?: (color: Color, hex: string) => void;
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
290
|
+
require?: boolean;
|
|
291
|
+
title?: string;
|
|
292
|
+
bottomText?: string;
|
|
293
|
+
showError?: boolean;
|
|
294
|
+
errorMessage?: string;
|
|
314
295
|
disabled?: boolean;
|
|
315
296
|
allowClear?: boolean;
|
|
316
297
|
defaultFormat?: "hex" | "rgb" | "hsb";
|
|
@@ -318,15 +299,17 @@ interface ColorPalettePickerBasicProps {
|
|
|
318
299
|
placeholder?: string;
|
|
319
300
|
onClear?: () => void;
|
|
320
301
|
}
|
|
321
|
-
declare function ColorPalettePickerBasic({ value, onChange,
|
|
302
|
+
declare function ColorPalettePickerBasic({ value, onChange, require, title, bottomText, showError, errorMessage, disabled, allowClear, defaultFormat, className, placeholder, onClear }: ColorPalettePickerBasicProps): react_jsx_runtime.JSX.Element;
|
|
322
303
|
|
|
323
304
|
interface SelectFieldProps$1 {
|
|
324
305
|
value?: SelectProps["value"];
|
|
325
306
|
onChange: (value: SelectProps["value"]) => void;
|
|
326
307
|
placeholder?: string;
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
308
|
+
title?: string;
|
|
309
|
+
require?: boolean;
|
|
310
|
+
bottomText?: string;
|
|
311
|
+
errorMessage?: string;
|
|
312
|
+
showError?: boolean;
|
|
330
313
|
disabled?: boolean;
|
|
331
314
|
defaultValue?: string;
|
|
332
315
|
options?: {
|
|
@@ -341,15 +324,16 @@ interface SelectFieldProps$1 {
|
|
|
341
324
|
className?: string;
|
|
342
325
|
onClear?: () => void;
|
|
343
326
|
}
|
|
344
|
-
declare function SelectField({ value, onChange, placeholder,
|
|
327
|
+
declare function SelectField({ value, onChange, placeholder, title, require, bottomText, showError, errorMessage, disabled, defaultValue, options, mode, prefix, prefixSize, handleSearch, className, onClear }: SelectFieldProps$1): react_jsx_runtime.JSX.Element;
|
|
345
328
|
|
|
346
329
|
interface SelectFieldProps {
|
|
347
330
|
value?: SelectProps["value"];
|
|
348
331
|
onChange: (value: SelectProps["value"]) => void;
|
|
349
332
|
placeholder?: string;
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
333
|
+
title?: string;
|
|
334
|
+
require?: boolean;
|
|
335
|
+
bottomText?: string;
|
|
336
|
+
errorMessage?: string;
|
|
353
337
|
showError?: boolean;
|
|
354
338
|
disabled?: boolean;
|
|
355
339
|
defaultValue?: string;
|
|
@@ -367,16 +351,18 @@ interface SelectFieldProps {
|
|
|
367
351
|
prefixSize?: number;
|
|
368
352
|
className?: string;
|
|
369
353
|
}
|
|
370
|
-
declare function SelectFieldGroup({ value, onChange, placeholder,
|
|
354
|
+
declare function SelectFieldGroup({ value, onChange, placeholder, title, require, bottomText, showError, errorMessage, disabled, defaultValue, options, mode, prefix, prefixSize, handleSearch, className }: SelectFieldProps): react_jsx_runtime.JSX.Element;
|
|
371
355
|
|
|
372
356
|
interface SelectFieldStatusProps {
|
|
373
357
|
value: string | undefined;
|
|
374
358
|
onChange: (value: string | undefined) => void;
|
|
375
359
|
placeholder?: string;
|
|
376
|
-
|
|
377
|
-
|
|
360
|
+
title?: string;
|
|
361
|
+
require?: boolean;
|
|
362
|
+
bottomText?: string;
|
|
378
363
|
disabled?: boolean;
|
|
379
|
-
|
|
364
|
+
showError?: boolean;
|
|
365
|
+
errorMessage?: string;
|
|
380
366
|
options?: {
|
|
381
367
|
label: ReactNode;
|
|
382
368
|
value: string | number | null;
|
|
@@ -384,16 +370,18 @@ interface SelectFieldStatusProps {
|
|
|
384
370
|
}[];
|
|
385
371
|
className?: string;
|
|
386
372
|
}
|
|
387
|
-
declare function SelectFieldStatus({ value, onChange, placeholder,
|
|
373
|
+
declare function SelectFieldStatus({ value, onChange, placeholder, title, require, bottomText, disabled, showError, errorMessage, options, className }: SelectFieldStatusProps): react_jsx_runtime.JSX.Element;
|
|
388
374
|
|
|
389
375
|
interface SelectFieldStatusReportProps {
|
|
390
376
|
value: string | undefined;
|
|
391
377
|
onChange: (value: string | undefined) => void;
|
|
392
378
|
placeholder?: string;
|
|
393
|
-
|
|
394
|
-
|
|
379
|
+
title?: string;
|
|
380
|
+
require?: boolean;
|
|
381
|
+
bottomText?: string;
|
|
395
382
|
disabled?: boolean;
|
|
396
|
-
|
|
383
|
+
showError?: boolean;
|
|
384
|
+
errorMessage?: string;
|
|
397
385
|
className?: string;
|
|
398
386
|
options?: {
|
|
399
387
|
label: ReactNode;
|
|
@@ -401,39 +389,43 @@ interface SelectFieldStatusReportProps {
|
|
|
401
389
|
disabled?: boolean;
|
|
402
390
|
}[];
|
|
403
391
|
}
|
|
404
|
-
declare function SelectFieldStatusReport({ value, onChange, placeholder,
|
|
392
|
+
declare function SelectFieldStatusReport({ value, onChange, placeholder, title, require, bottomText, disabled, showError, errorMessage, className, options }: SelectFieldStatusReportProps): react_jsx_runtime.JSX.Element;
|
|
405
393
|
|
|
406
394
|
interface SelectFieldTagProps {
|
|
407
|
-
|
|
408
|
-
|
|
395
|
+
title?: string | null;
|
|
396
|
+
require?: boolean;
|
|
397
|
+
bottomText?: string | null;
|
|
409
398
|
placeholder?: string;
|
|
410
399
|
options?: {
|
|
411
400
|
label: ReactNode;
|
|
412
401
|
value: string | number | null;
|
|
413
402
|
disabled?: boolean;
|
|
414
403
|
}[];
|
|
415
|
-
|
|
404
|
+
showError?: boolean;
|
|
405
|
+
errorMessage?: string;
|
|
416
406
|
value?: string[];
|
|
417
407
|
onChange?: (val: string[]) => void;
|
|
418
408
|
className?: string;
|
|
419
409
|
onClear?: () => void;
|
|
420
410
|
}
|
|
421
|
-
declare function SelectFieldTag({
|
|
411
|
+
declare function SelectFieldTag({ title, require, bottomText, placeholder, options, showError, errorMessage, value: controlledValue, className, onChange, onClear }: SelectFieldTagProps): react_jsx_runtime.JSX.Element;
|
|
422
412
|
|
|
423
413
|
interface OptionItem {
|
|
424
414
|
value: string;
|
|
425
415
|
label: string;
|
|
426
416
|
}
|
|
427
417
|
interface SelectCustomProps {
|
|
428
|
-
|
|
418
|
+
title?: string;
|
|
429
419
|
placeholder?: string;
|
|
430
420
|
options: OptionItem[];
|
|
431
|
-
|
|
421
|
+
require?: boolean;
|
|
432
422
|
onChange?: (valueList: string[]) => void;
|
|
433
|
-
|
|
423
|
+
bottomText?: string;
|
|
424
|
+
showError?: boolean;
|
|
425
|
+
errorMessage?: string;
|
|
434
426
|
onClear?: () => void;
|
|
435
427
|
}
|
|
436
|
-
declare function SelectCustom({
|
|
428
|
+
declare function SelectCustom({ title, placeholder, options, require, onChange, bottomText, showError, errorMessage, onClear }: SelectCustomProps): react_jsx_runtime.JSX.Element;
|
|
437
429
|
|
|
438
430
|
interface SortFilterProps {
|
|
439
431
|
showYear?: boolean;
|
|
@@ -446,7 +438,7 @@ declare function SortFilter({ showYear, showQuarter, showMonth, onSortClick, onF
|
|
|
446
438
|
|
|
447
439
|
interface FileUploaderProps {
|
|
448
440
|
onUpload: (file: File) => Promise<void>;
|
|
449
|
-
onRemove?: (
|
|
441
|
+
onRemove?: () => Promise<void>;
|
|
450
442
|
onError?: (message: string) => void;
|
|
451
443
|
accept?: string[];
|
|
452
444
|
maxSize?: number;
|
|
@@ -509,4 +501,4 @@ interface KpiSectionProps {
|
|
|
509
501
|
}
|
|
510
502
|
declare function KpiSection({ type, onChangeKpiList }: KpiSectionProps): react_jsx_runtime.JSX.Element;
|
|
511
503
|
|
|
512
|
-
export { AntDataTable, Breadcrumbs, Calendar, Checkbox, CheckboxGroup, ColorPalettePickerBasic, ColorPickerBasic, DataTable, DatePickerBasic, DatePickerRangePicker, FileUploader, GhostButton, HeadingPage, InputField,
|
|
504
|
+
export { AntDataTable, Breadcrumbs, Calendar, Checkbox, CheckboxGroup, ColorPalettePickerBasic, ColorPickerBasic, DataTable, DatePickerBasic, DatePickerRangePicker, FileUploader, GhostButton, HeadingPage, InputField, KpiSection, Loader, MenuNavBar, type MenuNavBarProps, PrimaryButton, ProgressBar, Radio, RadioGroup, SecondaryButton, SelectCustom, SelectField, SelectFieldGroup, SelectFieldStatus, SelectFieldStatusReport, SelectFieldTag, Sidebar, SortFilter, Switch, TextAreaInput, TextInput, TimePickerBasic, TimePickerRangePicker, TopNavBar, messageError, messageInfo, messageLoading, messageSuccess, messageWarning, setMessageApi };
|