@fctc/sme-widget-ui 4.1.7 → 4.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-CPRUGYSW.mjs +46 -0
- package/dist/{chunk-5Y4EK5OE.mjs → chunk-O6IVOXHJ.mjs} +2 -2
- package/dist/chunk-QH3T7FI4.mjs +1 -0
- package/dist/icons.d.mts +3 -1
- package/dist/icons.mjs +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -1
- package/dist/utils.d.mts +11 -1
- package/dist/utils.mjs +1 -1
- package/dist/widgets.d.mts +38 -19
- package/dist/widgets.mjs +1 -1
- package/package.json +9 -14
- package/dist/chunk-46JF543M.mjs +0 -44
- package/dist/chunk-S6G4QW5T.mjs +0 -1
package/dist/utils.d.mts
CHANGED
|
@@ -14,6 +14,16 @@ declare const checkIsImageLink: (url: any) => boolean;
|
|
|
14
14
|
declare const formatFileSize: (size: any) => string;
|
|
15
15
|
declare const convertTimeToFloat: (timeString: string) => number;
|
|
16
16
|
declare const formatFloatNumber: (value: number | string) => string;
|
|
17
|
+
declare const generateTagColors: (name: string, id: number) => {
|
|
18
|
+
background: string;
|
|
19
|
+
border: string;
|
|
20
|
+
textColor: string;
|
|
21
|
+
};
|
|
22
|
+
declare const getFileLabel: (name: string) => "PDF" | "JSON" | "ZIP" | "MP4" | "XLS" | "IMG" | "FILE";
|
|
23
|
+
declare const ALLOWED_MIME_TYPES: Set<string>;
|
|
24
|
+
declare const ALLOWED_EXTS: string[];
|
|
25
|
+
declare const ACCEPT_TYPES: string;
|
|
26
|
+
declare const uppercaseFirstLetter: (str: string) => string;
|
|
17
27
|
|
|
18
28
|
declare const COLORS: {
|
|
19
29
|
name: string;
|
|
@@ -27,4 +37,4 @@ declare const SearchType: {
|
|
|
27
37
|
GROUP: string;
|
|
28
38
|
};
|
|
29
39
|
|
|
30
|
-
export { COLORS, DOTS, SearchType, checkIsImageLink, convertFloatToTime, convertTimeToFloat, formatFileSize, formatFloatNumber, formatNumberOnly, getPasswordMessage, isBase64Image, isObjectEmpty, parseFormattedNumber, range, useFormatDate, validateAndParseDate, validateInput };
|
|
40
|
+
export { ACCEPT_TYPES, ALLOWED_EXTS, ALLOWED_MIME_TYPES, COLORS, DOTS, SearchType, checkIsImageLink, convertFloatToTime, convertTimeToFloat, formatFileSize, formatFloatNumber, formatNumberOnly, generateTagColors, getFileLabel, getPasswordMessage, isBase64Image, isObjectEmpty, parseFormattedNumber, range, uppercaseFirstLetter, useFormatDate, validateAndParseDate, validateInput };
|
package/dist/utils.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{v as COLORS,
|
|
1
|
+
export{x as ACCEPT_TYPES,w as ALLOWED_EXTS,v as ALLOWED_MIME_TYPES,z as COLORS,A as DOTS,B as SearchType,p as checkIsImageLink,n as convertFloatToTime,r as convertTimeToFloat,q as formatFileSize,s as formatFloatNumber,j as formatNumberOnly,t as generateTagColors,u as getFileLabel,h as getPasswordMessage,o as isBase64Image,m as isObjectEmpty,k as parseFormattedNumber,i as range,y as uppercaseFirstLetter,f as useFormatDate,l as validateAndParseDate,g as validateInput}from'./chunk-QH3T7FI4.mjs';import'./chunk-YEKQJ4YC.mjs';
|
package/dist/widgets.d.mts
CHANGED
|
@@ -192,17 +192,6 @@ interface IButtonBadgeProps extends IInputFieldProps {
|
|
|
192
192
|
|
|
193
193
|
declare const ButtonBadgeField: (props: IButtonBadgeProps) => JSX.Element | null;
|
|
194
194
|
|
|
195
|
-
interface IButtonProps {
|
|
196
|
-
func?: () => void;
|
|
197
|
-
className?: string;
|
|
198
|
-
loading?: boolean;
|
|
199
|
-
content: string;
|
|
200
|
-
disable?: boolean;
|
|
201
|
-
type?: 'button' | 'submit' | 'reset';
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
declare const ButtonField: (props: IButtonProps) => JSX.Element;
|
|
205
|
-
|
|
206
195
|
interface ICharFieldProps extends IInputFieldProps {
|
|
207
196
|
trim?: boolean;
|
|
208
197
|
max?: string;
|
|
@@ -378,13 +367,6 @@ declare const TextAreaField: (props: IInputFieldProps) => JSX.Element;
|
|
|
378
367
|
|
|
379
368
|
declare const ToggleButtonField: (props: IInputFieldProps) => JSX.Element;
|
|
380
369
|
|
|
381
|
-
interface InformationProps extends IInputFieldProps {
|
|
382
|
-
showName?: boolean;
|
|
383
|
-
stringToColor?: any;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
declare const InfomationField: React__default.FC<InformationProps>;
|
|
387
|
-
|
|
388
370
|
declare const IntegerField: (props: IInputFieldProps) => JSX.Element;
|
|
389
371
|
|
|
390
372
|
interface IStatusDropdownFieldProps extends IInputFieldProps {
|
|
@@ -468,6 +450,43 @@ type Item = {
|
|
|
468
450
|
source: 'upload' | 'link' | 'value';
|
|
469
451
|
};
|
|
470
452
|
|
|
453
|
+
interface UrlDownloadType extends IInputFieldProps {
|
|
454
|
+
action?: any;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
declare const UrlDownload: ({ value, action }: UrlDownloadType) => JSX.Element;
|
|
458
|
+
|
|
459
|
+
interface IStatusSingleFieldProps extends IInputFieldProps {
|
|
460
|
+
selection?: [string | number, string][] | any;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
declare const StatusSingle: ({ selection, defaultValue, }: IStatusSingleFieldProps) => JSX.Element;
|
|
464
|
+
|
|
465
|
+
interface MiniQrType extends IInputFieldProps {
|
|
466
|
+
maskingValue?: any;
|
|
467
|
+
string?: any;
|
|
468
|
+
class?: any;
|
|
469
|
+
handleCopyToClipboard?: any;
|
|
470
|
+
isCopied?: any;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
declare const MiniQRLink: (props: MiniQrType) => JSX.Element;
|
|
474
|
+
|
|
475
|
+
interface CountdownProps {
|
|
476
|
+
value: string;
|
|
477
|
+
string?: string;
|
|
478
|
+
mode?: "default" | "seconds";
|
|
479
|
+
overdue_string?: string;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
declare const Countdown: React__default.FC<CountdownProps>;
|
|
483
|
+
|
|
484
|
+
interface IProviderEinvoicesProps extends IInputFieldProps {
|
|
485
|
+
listDataCard?: any;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
declare const ProviderEinvoice: (props: IProviderEinvoicesProps) => JSX.Element;
|
|
489
|
+
|
|
471
490
|
declare const ModalConfirm: ({ name, isShowModal, onClick, onClose, title, content, isLoading, }: {
|
|
472
491
|
name: "delete" | "duplicate" | "archive" | "unarchive";
|
|
473
492
|
isShowModal: boolean;
|
|
@@ -498,4 +517,4 @@ interface VideoPlayerProps {
|
|
|
498
517
|
}
|
|
499
518
|
declare const VideoPlayer: ({ src }: VideoPlayerProps) => JSX.Element;
|
|
500
519
|
|
|
501
|
-
export { ActiveBadgeField, AvatarField, BinaryField, ButtonBadgeField,
|
|
520
|
+
export { ActiveBadgeField, AvatarField, BinaryField, ButtonBadgeField, ButtonSelectFiles, CharField, CheckboxField, ColorField, ColorWrapper, CopyLinkButtonField, Countdown, type CountdownProps, DateField, DateOptionField, DownLoadBinaryField, DownloadFileField, DropdownField, EmptyTable, FeeField, FileUploadField, FloatField, FloatTimeField, HtmlField, type IActiveBadgeProps, type IAvatarProps, type IBinaryFieldProps, type IButtonBadgeProps, type ICharFieldProps, type IColorFieldProps, type IColorWrapperProps, type ICopyLinkButtonProps, type IDateFieldProps, type IDownLoadBinary, type IDownloadFileProps, type IDurationProps, type IFileUploadProps, type IMany2ManyTagsProps, type IMonetaryProps, type IOptionProps, type IPaginationProps, type IPriorityFieldProps, type IProviderEinvoicesProps, type IRadioGroupProps, type IRatingStarProps, type ISelectDropdownProps, type IStatusDropdownFieldProps, type IStatusSingleFieldProps, ImageField, IntegerField, type Item, LayerLoading, LoadingSmall, Login, Many2ManyField, type Many2ManyProps, Many2ManyTagField, Many2OneField, type Many2OneProps, Many2manyBinaryField, MiniQRLink, type MiniQrType, ModalConfirm, ModalDetail, ModalLayer, MonetaryField, PaginationView, PaidBadgedField, PriorityField, ProviderEinvoice, RadioGroupField, RatingStarField, RemainingDaysField, Row, Search, SecureField, SelectDropdownField, StatusBarOptionField, StatusDropdownField, StatusSingle, StatusbarDurationField, type TDropdownSelectorProps, TableBody, TableFilter, TableFooter, TableGroup, TableHead, TextAreaField, ToggleButtonField, UrlDownload, type UrlDownloadType, VideoPlayer, usePagination };
|
package/dist/widgets.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{l as ActiveBadgeField,t as AvatarField,u as BinaryField,v as ButtonBadgeField,
|
|
1
|
+
export{l as ActiveBadgeField,t as AvatarField,u as BinaryField,v as ButtonBadgeField,r as ButtonSelectFiles,w as CharField,y as CheckboxField,A as ColorField,z as ColorWrapper,B as CopyLinkButtonField,fa as Countdown,C as DateField,aa as DateOptionField,D as DownLoadBinaryField,E as DownloadFileField,F as DropdownField,i as EmptyTable,G as FeeField,H as FileUploadField,I as FloatField,J as FloatTimeField,K as HtmlField,L as ImageField,W as IntegerField,p as LayerLoading,q as LoadingSmall,j as Login,Y as Many2ManyField,M as Many2ManyTagField,Z as Many2OneField,ba as Many2manyBinaryField,ea as MiniQRLink,n as ModalConfirm,o as ModalDetail,m as ModalLayer,N as MonetaryField,b as PaginationView,O as PaidBadgedField,Q as PriorityField,ga as ProviderEinvoice,R as RadioGroupField,P as RatingStarField,S as RemainingDaysField,d as Row,k as Search,x as SecureField,T as SelectDropdownField,$ as StatusBarOptionField,X as StatusDropdownField,da as StatusSingle,_ as StatusbarDurationField,e as TableBody,f as TableFilter,g as TableFooter,c as TableGroup,h as TableHead,U as TextAreaField,V as ToggleButtonField,ca as UrlDownload,s as VideoPlayer,a as usePagination}from'./chunk-CPRUGYSW.mjs';import'./chunk-U7MAFS3I.mjs';import'./chunk-O6IVOXHJ.mjs';import'./chunk-KVH366MY.mjs';import'./chunk-QH3T7FI4.mjs';import'./chunk-YEKQJ4YC.mjs';
|
package/package.json
CHANGED
|
@@ -1,39 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fctc/sme-widget-ui",
|
|
3
|
-
"version": "4.1.
|
|
4
|
-
"main": "dist/index.
|
|
3
|
+
"version": "4.1.8",
|
|
4
|
+
"main": "dist/index.mjs",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
10
|
-
"import": "./dist/index.mjs"
|
|
11
|
-
"require": "./dist/index.cjs"
|
|
10
|
+
"import": "./dist/index.mjs"
|
|
12
11
|
},
|
|
13
12
|
"./hooks": {
|
|
14
13
|
"types": "./dist/hooks.d.ts",
|
|
15
|
-
"import": "./dist/hooks.mjs"
|
|
16
|
-
"require": "./dist/hooks.cjs"
|
|
14
|
+
"import": "./dist/hooks.mjs"
|
|
17
15
|
},
|
|
18
16
|
"./icons": {
|
|
19
17
|
"types": "./dist/icons.d.ts",
|
|
20
|
-
"import": "./dist/icons.mjs"
|
|
21
|
-
"require": "./dist/icons.cjs"
|
|
18
|
+
"import": "./dist/icons.mjs"
|
|
22
19
|
},
|
|
23
20
|
"./types": {
|
|
24
21
|
"types": "./dist/types.d.ts",
|
|
25
|
-
"import": "./dist/types.mjs"
|
|
26
|
-
"require": "./dist/types.cjs"
|
|
22
|
+
"import": "./dist/types.mjs"
|
|
27
23
|
},
|
|
28
24
|
"./widgets": {
|
|
29
25
|
"types": "./dist/widgets.d.ts",
|
|
30
|
-
"import": "./dist/widgets.mjs"
|
|
31
|
-
"require": "./dist/widgets.cjs"
|
|
26
|
+
"import": "./dist/widgets.mjs"
|
|
32
27
|
},
|
|
33
28
|
"./utils": {
|
|
34
29
|
"types": "./dist/utils.d.ts",
|
|
35
|
-
"import": "./dist/utils.mjs"
|
|
36
|
-
"require": "./dist/utils.cjs"
|
|
30
|
+
"import": "./dist/utils.mjs"
|
|
37
31
|
}
|
|
38
32
|
},
|
|
39
33
|
"files": [
|
|
@@ -46,6 +40,7 @@
|
|
|
46
40
|
"dependencies": {
|
|
47
41
|
"@headlessui/react": "^2.2.7",
|
|
48
42
|
"@types/react-dom": "^19.1.7",
|
|
43
|
+
"qrcode.react": "^4.2.0",
|
|
49
44
|
"react-dom": "18.0.0",
|
|
50
45
|
"zod": "^3.24.2"
|
|
51
46
|
},
|