tsv2-library 0.2.43 → 0.2.44

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.
@@ -2,7 +2,7 @@ import { CurrencyFormat } from '../../../utils/currency.util';
2
2
  import { DefineComponent } from 'vue';
3
3
 
4
4
  export interface CurrencyValue {
5
- currency: CurrencyFormat;
5
+ currency: string; // Currency ISO Code
6
6
  value?: number;
7
7
  }
8
8
 
@@ -55,6 +55,12 @@ export interface InputNumberProps {
55
55
  * It is rarely use, this component has handled the validator message.
56
56
  */
57
57
  validatorMessage?: string;
58
+ /**
59
+ * Show the validator message on error.
60
+ *
61
+ * @default true;
62
+ */
63
+ showValidatorMessage?: boolean;
58
64
  /**
59
65
  * Specify the input placeholder.
60
66
  *
@@ -27,6 +27,6 @@ export type CurrencyFormat = {
27
27
  locale: string;
28
28
  };
29
29
  export type Locale = CurrencyFormat['locale'];
30
- declare const getCurrency: () => CurrencyFormat;
31
- declare const formatCurrency: (value?: number | string | null, currency?: GeneralSetting['currency'], prefix?: boolean) => string;
30
+ declare const getCurrency: (code?: string) => CurrencyFormat;
31
+ declare const formatCurrency: (value?: number | string | null, currency?: GeneralSetting['currency']['currency'], prefix?: boolean) => string;
32
32
  export { getCurrency, formatCurrency };