tsv2-library 0.3.20 → 0.3.21

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.
@@ -52,6 +52,12 @@ export interface DropdownProps {
52
52
  * It is rarely use, this component has handled the validator message.
53
53
  */
54
54
  validatorMessage?: string;
55
+ /**
56
+ * Wether to format the message
57
+ *
58
+ * @default true
59
+ */
60
+ formatValidatorMessage?: boolean;
55
61
  /**
56
62
  * Set custom invalid state.
57
63
  */
@@ -48201,6 +48201,7 @@ const Xb = (e) => e ? typeof e[0] == "string" ? e : e.filter(
48201
48201
  useValidator: { type: Boolean },
48202
48202
  mandatory: { type: Boolean },
48203
48203
  validatorMessage: {},
48204
+ formatValidatorMessage: { type: Boolean, default: !0 },
48204
48205
  invalid: { type: Boolean },
48205
48206
  fieldName: {},
48206
48207
  placeholder: {},
@@ -48327,8 +48328,9 @@ const Xb = (e) => e ? typeof e[0] == "string" ? e : e.filter(
48327
48328
  }, 8, ["class", "disabled", "invalid"]),
48328
48329
  M(rr, {
48329
48330
  id: n.label + "error",
48331
+ format: h.formatValidatorMessage,
48330
48332
  message: o.errorMessage ?? n.validatorMessage
48331
- }, null, 8, ["id", "message"])
48333
+ }, null, 8, ["id", "format", "message"])
48332
48334
  ]),
48333
48335
  _: 3
48334
48336
  }, 8, ["info", "label", "mandatory"]));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsv2-library",
3
- "version": "0.3.20",
3
+ "version": "0.3.21",
4
4
  "author": "fixedassetv2-fe",
5
5
  "license": "ISC",
6
6
  "homepage": "https://github.com/fixedassetv2-fe/tsv2-library#readme",
@@ -52,6 +52,12 @@ export interface DropdownProps {
52
52
  * It is rarely use, this component has handled the validator message.
53
53
  */
54
54
  validatorMessage?: string;
55
+ /**
56
+ * Wether to format the message
57
+ *
58
+ * @default true
59
+ */
60
+ formatValidatorMessage?: boolean;
55
61
  /**
56
62
  * Set custom invalid state.
57
63
  */