@fewangsit/wangsvue 1.5.219 → 1.5.220-alpha.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.
@@ -153,7 +153,7 @@ export interface ButtonScanProps extends Omit<ButtonProps, 'type'> {
153
153
  /**
154
154
  * Defines the size of the button.
155
155
  *
156
- * @default to large
156
+ * @default to undefined / normal
157
157
  */
158
158
  size?: 'small' | 'large';
159
159
  }
package/components.d.ts CHANGED
@@ -11,6 +11,7 @@ export { default as ButtonRadio } from './buttonradio';
11
11
  export { default as ButtonSearch } from './buttonsearch';
12
12
  export { default as ButtonSelectTree } from './buttonselecttree';
13
13
  export { default as ButtonToggle } from './buttontoggle';
14
+ export { default as Calendar } from './calendar';
14
15
  export { default as Card } from './card';
15
16
  export { default as Checkbox } from './checkbox';
16
17
  export { default as CodeSnippet } from './codesnippet';
@@ -733,6 +733,13 @@ export type TreeTableEmits = BaseDataTableEmits & {
733
733
 
734
734
  export type DataTableEmits = TreeTableEmits;
735
735
 
736
+ export type DataTableSlots = {
737
+ /**
738
+ * Slot for rendering sub content below a table row.
739
+ */
740
+ 'row-subcontent': (props: { item: Data }) => any;
741
+ };
742
+
736
743
  /**
737
744
  * **WangsVue - DataTable**
738
745
  *
@@ -746,7 +753,7 @@ export type DataTableEmits = TreeTableEmits;
746
753
  */
747
754
  declare class DataTable extends ClassComponent<
748
755
  DataTableProps,
749
- Record<string, unknown>,
756
+ DataTableSlots,
750
757
  DataTableEmits
751
758
  > {}
752
759
 
@@ -1,7 +1,10 @@
1
1
  import { DefineComponent } from 'vue';
2
2
 
3
+ import { CustomValidation } from '../form';
4
+
3
5
  export interface InputPhoneNumberLocaleConfig {
4
6
  defaultPlaceholder?: string;
7
+ emptyInvalidText?: string;
5
8
  }
6
9
 
7
10
  /**
@@ -63,7 +66,7 @@ export interface InputPhoneNumberProps {
63
66
  * Set the custom validator message.
64
67
  * By default each field has preserved with its validator message, you don't need to worrying about the message.
65
68
  */
66
- validatorMessage?: string;
69
+ validatorMessage?: string | CustomValidation<'empty'>;
67
70
  /**
68
71
  * Show information about the field.
69
72
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue",
3
- "version": "1.5.219",
3
+ "version": "1.5.220-alpha.0",
4
4
  "author": "Wangsit FE Developer",
5
5
  "description": "Wangsit VueJS Component Library",
6
6
  "type": "module",