tsv2-library 1.0.61-alpha.56 → 1.0.61-alpha.57

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.
@@ -106,6 +106,10 @@ export type FileUploadProps = {
106
106
  * Wether show validator message on invalid file input
107
107
  */
108
108
  showValidatorMessage?: boolean;
109
+ /**
110
+ * Wether show validator message on invalid file input
111
+ */
112
+ validatorMessage?: boolean;
109
113
  };
110
114
 
111
115
  export type FileUploadEmits = {
@@ -68235,7 +68235,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
68235
68235
  fieldName: { default: "fileUpload" },
68236
68236
  mandatory: { type: Boolean },
68237
68237
  useErrorToast: { type: Boolean, default: true },
68238
- showValidatorMessage: { type: Boolean, default: false }
68238
+ showValidatorMessage: { type: Boolean, default: false },
68239
+ validatorMessage: { type: Boolean }
68239
68240
  }, {
68240
68241
  "modelValue": {},
68241
68242
  "modelModifiers": {}
@@ -68267,7 +68268,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
68267
68268
  });
68268
68269
  const setValidatorMessage = (value) => {
68269
68270
  if (props.mandatory && !value && !currentFile.value)
68270
- return `${props.label} must not be empty`;
68271
+ return props.validatorMessage ?? `${props.label} must not be empty`;
68271
68272
  return true;
68272
68273
  };
68273
68274
  const selectHandler = (event2) => {