@fctc/sme-widget-ui 4.1.7 → 4.1.9

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/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,w as DOTS,x as SearchType,o as checkIsImageLink,m as convertFloatToTime,q as convertTimeToFloat,p as formatFileSize,r as formatFloatNumber,i as formatNumberOnly,g as getPasswordMessage,n as isBase64Image,l as isObjectEmpty,j as parseFormattedNumber,h as range,e as useFormatDate,k as validateAndParseDate,f as validateInput}from'./chunk-S6G4QW5T.mjs';import'./chunk-YEKQJ4YC.mjs';
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';
@@ -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;
@@ -242,17 +231,12 @@ interface ICopyLinkButtonProps extends IInputFieldProps {
242
231
  declare const CopyLinkButtonField: (props: ICopyLinkButtonProps) => JSX.Element;
243
232
 
244
233
  interface IDateFieldProps extends IInputFieldProps {
245
- formatDate: any;
246
- formatDateParse: any;
247
- years: any[];
248
- months_vi: any[];
249
- months_en: any[];
250
- customValidateMinMax: any;
251
- minNowValue: boolean;
252
- maxNowValue: boolean;
253
234
  showTime: boolean;
254
- textPlaceHolder: string;
255
235
  context?: any;
236
+ min?: any;
237
+ formValues?: any;
238
+ max?: any;
239
+ viewData?: any;
256
240
  }
257
241
 
258
242
  declare const DateField: (props: IDateFieldProps) => JSX.Element;
@@ -378,13 +362,6 @@ declare const TextAreaField: (props: IInputFieldProps) => JSX.Element;
378
362
 
379
363
  declare const ToggleButtonField: (props: IInputFieldProps) => JSX.Element;
380
364
 
381
- interface InformationProps extends IInputFieldProps {
382
- showName?: boolean;
383
- stringToColor?: any;
384
- }
385
-
386
- declare const InfomationField: React__default.FC<InformationProps>;
387
-
388
365
  declare const IntegerField: (props: IInputFieldProps) => JSX.Element;
389
366
 
390
367
  interface IStatusDropdownFieldProps extends IInputFieldProps {
@@ -468,6 +445,43 @@ type Item = {
468
445
  source: 'upload' | 'link' | 'value';
469
446
  };
470
447
 
448
+ interface UrlDownloadType extends IInputFieldProps {
449
+ action?: any;
450
+ }
451
+
452
+ declare const UrlDownload: ({ value, action }: UrlDownloadType) => JSX.Element;
453
+
454
+ interface IStatusSingleFieldProps extends IInputFieldProps {
455
+ selection?: [string | number, string][] | any;
456
+ }
457
+
458
+ declare const StatusSingle: ({ selection, defaultValue, }: IStatusSingleFieldProps) => JSX.Element;
459
+
460
+ interface MiniQrType extends IInputFieldProps {
461
+ maskingValue?: any;
462
+ string?: any;
463
+ class?: any;
464
+ handleCopyToClipboard?: any;
465
+ isCopied?: any;
466
+ }
467
+
468
+ declare const MiniQRLink: (props: MiniQrType) => JSX.Element;
469
+
470
+ interface CountdownProps {
471
+ value: string;
472
+ string?: string;
473
+ mode?: "default" | "seconds";
474
+ overdue_string?: string;
475
+ }
476
+
477
+ declare const Countdown: React__default.FC<CountdownProps>;
478
+
479
+ interface IProviderEinvoicesProps extends IInputFieldProps {
480
+ listDataCard?: any;
481
+ }
482
+
483
+ declare const ProviderEinvoice: (props: IProviderEinvoicesProps) => JSX.Element;
484
+
471
485
  declare const ModalConfirm: ({ name, isShowModal, onClick, onClose, title, content, isLoading, }: {
472
486
  name: "delete" | "duplicate" | "archive" | "unarchive";
473
487
  isShowModal: boolean;
@@ -498,4 +512,4 @@ interface VideoPlayerProps {
498
512
  }
499
513
  declare const VideoPlayer: ({ src }: VideoPlayerProps) => JSX.Element;
500
514
 
501
- export { ActiveBadgeField, AvatarField, BinaryField, ButtonBadgeField, ButtonField, ButtonSelectFiles, CharField, CheckboxField, ColorField, ColorWrapper, CopyLinkButtonField, DateField, DateOptionField, DownLoadBinaryField, DownloadFileField, DropdownField, EmptyTable, FeeField, FileUploadField, FloatField, FloatTimeField, HtmlField, type IActiveBadgeProps, type IAvatarProps, type IBinaryFieldProps, type IButtonBadgeProps, type IButtonProps, 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 IRadioGroupProps, type IRatingStarProps, type ISelectDropdownProps, type IStatusDropdownFieldProps, ImageField, InfomationField, IntegerField, type Item, LayerLoading, LoadingSmall, Login, Many2ManyField, type Many2ManyProps, Many2ManyTagField, Many2OneField, type Many2OneProps, Many2manyBinaryField, ModalConfirm, ModalDetail, ModalLayer, MonetaryField, PaginationView, PaidBadgedField, PriorityField, RadioGroupField, RatingStarField, RemainingDaysField, Row, Search, SecureField, SelectDropdownField, StatusBarOptionField, StatusDropdownField, StatusbarDurationField, type TDropdownSelectorProps, TableBody, TableFilter, TableFooter, TableGroup, TableHead, TextAreaField, ToggleButtonField, VideoPlayer, usePagination };
515
+ 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,w as ButtonField,r as ButtonSelectFiles,x as CharField,z as CheckboxField,B as ColorField,A as ColorWrapper,C as CopyLinkButtonField,D as DateField,ca as DateOptionField,E as DownLoadBinaryField,F as DownloadFileField,G as DropdownField,i as EmptyTable,H as FeeField,I as FileUploadField,J as FloatField,K as FloatTimeField,L as HtmlField,M as ImageField,X as InfomationField,Y as IntegerField,p as LayerLoading,q as LoadingSmall,j as Login,_ as Many2ManyField,N as Many2ManyTagField,$ as Many2OneField,da as Many2manyBinaryField,n as ModalConfirm,o as ModalDetail,m as ModalLayer,O as MonetaryField,b as PaginationView,P as PaidBadgedField,R as PriorityField,S as RadioGroupField,Q as RatingStarField,T as RemainingDaysField,d as Row,k as Search,y as SecureField,U as SelectDropdownField,ba as StatusBarOptionField,Z as StatusDropdownField,aa as StatusbarDurationField,e as TableBody,f as TableFilter,g as TableFooter,c as TableGroup,h as TableHead,V as TextAreaField,W as ToggleButtonField,s as VideoPlayer,a as usePagination}from'./chunk-46JF543M.mjs';import'./chunk-U7MAFS3I.mjs';import'./chunk-5Y4EK5OE.mjs';import'./chunk-KVH366MY.mjs';import'./chunk-S6G4QW5T.mjs';import'./chunk-YEKQJ4YC.mjs';
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-RPIB4YDU.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.7",
4
- "main": "dist/index.cjs",
3
+ "version": "4.1.9",
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
  },