tsv2-library 0.2.50 → 0.2.52

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.
@@ -1,3 +1,4 @@
1
+ import { CustomValidation } from '../../../types/fieldValidation.type';
1
2
  import { DefineComponent } from 'vue';
2
3
 
3
4
  /**
@@ -16,6 +17,7 @@ export interface TSCalendarProps {
16
17
  * Display label on top of Date Input.
17
18
  */
18
19
  label?: string;
20
+ placeholder?: string;
19
21
  /**
20
22
  * Whether single date or date range model value.
21
23
  */
@@ -25,6 +27,20 @@ export interface TSCalendarProps {
25
27
  * @defaultValue date
26
28
  */
27
29
  view?: 'date' | 'month' | 'year' | undefined;
30
+ /**
31
+ * Wheter show year picker or not
32
+ *
33
+ * @default true
34
+ */
35
+ showYear?: boolean;
36
+ /**
37
+ * Show button Apply and cancel on footer.
38
+ *
39
+ * If shown, the modelValue will be updated on button Apply clicked.
40
+ *
41
+ * @default false;
42
+ */
43
+ showButtons?: boolean;
28
44
  /**
29
45
  * Enable Validator using vee-validate. Combine with TSForm that handle form validation.
30
46
  */
@@ -47,6 +63,10 @@ export interface TSCalendarProps {
47
63
  * By default each field has preserved with its validator message, you don't need to worrying about the message.
48
64
  */
49
65
  validatorMessage?: string;
66
+ /**
67
+ * Set custom validation message for certain condition
68
+ */
69
+ customValidation?: CustomValidation;
50
70
  /**
51
71
  * Defines the calendar to use hour picker.
52
72
  */
@@ -111,6 +111,7 @@ export interface DialogFormProps extends FormProps {
111
111
  * @default 'small';
112
112
  */
113
113
  width?: 'small' | 'medium' | 'large' | 'semi-xlarge' | 'xlarge';
114
+ class?: string | string[];
114
115
  contentClass?: string | string[];
115
116
  /**
116
117
  * Set the header icon left beside of the title.
@@ -101,6 +101,8 @@ export type TSVueIcons =
101
101
  | 'settings'
102
102
  | 'shopping-cart-2-line'
103
103
  | 'smartphone-line'
104
+ | 'sort-asc'
105
+ | 'sort-desc'
104
106
  | 'spinner'
105
107
  | 'stack-line'
106
108
  | 'store-line'
@@ -34,6 +34,13 @@ export interface InputNumberProps {
34
34
  * @default 16 digit number
35
35
  */
36
36
  maxDigit?: number;
37
+ /**
38
+ * Set the pad start of value.
39
+ *
40
+ * Insert '0' in the front of value
41
+ * @default 1
42
+ */
43
+ padStart?: number;
37
44
  /**
38
45
  * Wether the input should be validated with vee-validator or not.
39
46
  * If you use this component within form input, you need to set this props as true.