@fctc/sme-widget-ui 1.9.8 → 2.0.0

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/types.d.mts CHANGED
@@ -30,6 +30,7 @@ interface IInputFieldProps {
30
30
  idForm?: boolean;
31
31
  widget?: string;
32
32
  options?: any;
33
+ filename?: string;
33
34
  }
34
35
  declare const loginSchema: z.ZodObject<{
35
36
  username: z.ZodString;
package/dist/types.d.ts CHANGED
@@ -30,6 +30,7 @@ interface IInputFieldProps {
30
30
  idForm?: boolean;
31
31
  widget?: string;
32
32
  options?: any;
33
+ filename?: string;
33
34
  }
34
35
  declare const loginSchema: z.ZodObject<{
35
36
  username: z.ZodString;
package/dist/utils.js CHANGED
@@ -6894,8 +6894,8 @@ var en_default = {
6894
6894
  download_file: "Download this file",
6895
6895
  upload_success: "Upload file success",
6896
6896
  upload_failure: "Upload file failure",
6897
- file_accept_single: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP formats are allowed, and each file should be up to 10MB.",
6898
- file_accept_total: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP formats are allowed, and total should be up to 50MB.",
6897
+ file_accept_single: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP, JSON formats are allowed, and each file should be up to 10MB.",
6898
+ file_accept_total: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP, JSON formats are allowed, and total should be up to 50MB.",
6899
6899
  must_required: "is required",
6900
6900
  invalid_number: "Invalid number",
6901
6901
  active: "Active",
package/dist/utils.mjs CHANGED
@@ -6871,8 +6871,8 @@ var en_default = {
6871
6871
  download_file: "Download this file",
6872
6872
  upload_success: "Upload file success",
6873
6873
  upload_failure: "Upload file failure",
6874
- file_accept_single: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP formats are allowed, and each file should be up to 10MB.",
6875
- file_accept_total: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP formats are allowed, and total should be up to 50MB.",
6874
+ file_accept_single: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP, JSON formats are allowed, and each file should be up to 10MB.",
6875
+ file_accept_total: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP, JSON formats are allowed, and total should be up to 50MB.",
6876
6876
  must_required: "is required",
6877
6877
  invalid_number: "Invalid number",
6878
6878
  active: "Active",
@@ -158,16 +158,14 @@ interface IAvatarProps extends IInputFieldProps {
158
158
  declare const AvatarField: (props: IAvatarProps) => JSX.Element;
159
159
 
160
160
  interface IBinaryFieldProps extends IInputFieldProps {
161
- inputId: any;
162
- selectedImage: any;
163
- initialImage: any;
164
- isInsideTable: any;
165
- binaryRef: any;
166
- handleImageChange: any;
167
- handleRemoveImage: any;
168
- checkIsImageLink: any;
169
- getImageBase64WithMimeType: any;
170
- image: any;
161
+ placeHolderImage?: any;
162
+ inputId?: any;
163
+ initialFile?: any;
164
+ binaryRef?: any;
165
+ handleFileChange?: any;
166
+ handleRemoveFile?: any;
167
+ checkIsImageLink?: any;
168
+ onDownload?: any;
171
169
  }
172
170
 
173
171
  declare const BinaryField: (props: IBinaryFieldProps) => JSX.Element;
package/dist/widgets.d.ts CHANGED
@@ -158,16 +158,14 @@ interface IAvatarProps extends IInputFieldProps {
158
158
  declare const AvatarField: (props: IAvatarProps) => JSX.Element;
159
159
 
160
160
  interface IBinaryFieldProps extends IInputFieldProps {
161
- inputId: any;
162
- selectedImage: any;
163
- initialImage: any;
164
- isInsideTable: any;
165
- binaryRef: any;
166
- handleImageChange: any;
167
- handleRemoveImage: any;
168
- checkIsImageLink: any;
169
- getImageBase64WithMimeType: any;
170
- image: any;
161
+ placeHolderImage?: any;
162
+ inputId?: any;
163
+ initialFile?: any;
164
+ binaryRef?: any;
165
+ handleFileChange?: any;
166
+ handleRemoveFile?: any;
167
+ checkIsImageLink?: any;
168
+ onDownload?: any;
171
169
  }
172
170
 
173
171
  declare const BinaryField: (props: IBinaryFieldProps) => JSX.Element;