@fewangsit/wangsvue-fats 1.0.0-alpha.144 → 1.0.0-alpha.146

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,5 +1,23 @@
1
+ import { DataTableProps } from '../datatable/DataTable.vue.d';
1
2
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
2
3
 
4
+ export interface ButtonDownloadLocaleConfig {
5
+ /**
6
+ * Message to display on loading ovevrlay while downloading
7
+ */
8
+ downloadingMessage: string;
9
+
10
+ /**
11
+ * Text when booleanValue is true
12
+ */
13
+ trueText: string;
14
+
15
+ /**
16
+ * Text when booleanValue is false
17
+ */
18
+ falseText: string;
19
+ }
20
+
3
21
  export interface ButtonDownloadProps {
4
22
  fileName: string;
5
23
  /**
@@ -21,6 +39,13 @@ export interface ButtonDownloadProps {
21
39
  * Texts below table in downloaded excel
22
40
  */
23
41
  additionalTextBelowTable?: (string | string[])[];
42
+ /**
43
+ * If this props exist, download data from provided configs instead syncing with data tables
44
+ */
45
+ tableConfigs?: Pick<
46
+ DataTableProps,
47
+ 'columns' | 'fetchFunction' | 'data' | 'tableTitle'
48
+ >[];
24
49
  }
25
50
 
26
51
  /**
@@ -57,6 +57,7 @@ export { default as Toast } from './toast/Toast.vue';
57
57
  export { default as ToggleSwitch } from './toggleswitch/ToggleSwitch.vue';
58
58
  export { default as Tree } from './tree/Tree.vue';
59
59
  export { default as UserName } from './username/UserName.vue';
60
+ export { default as ValidatorMessage } from './validatormessage/ValidatorMessage.vue';
60
61
 
61
62
  export { default as AssetInfo } from './assetinfo/AssetInfo.vue';
62
63
  export { default as ButtonAddByScan } from './buttonaddbyscan/ButtonAddByScan.vue';
@@ -0,0 +1,12 @@
1
+ import { DefineComponent } from 'vue';
2
+
3
+ export interface ValidatorMessageProps {
4
+ /**
5
+ * Shows validator message if message exist.
6
+ */
7
+ message?: string;
8
+ }
9
+
10
+ declare const ValidatorMessage: DefineComponent<ValidatorMessageProps>;
11
+
12
+ export default ValidatorMessage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue-fats",
3
- "version": "1.0.0-alpha.144",
3
+ "version": "1.0.0-alpha.146",
4
4
  "author": "Wangsit FE Developer",
5
5
  "description": "Fixed Asset Tagsamurai VueJS Component Library",
6
6
  "type": "module",
@@ -7,6 +7,7 @@ import {
7
7
  ButtonBulkActionLocaleConfig,
8
8
  ButtonBulkActionProps,
9
9
  } from '../components/buttonbulkaction/ButtonBulkAction.vue.d';
10
+ import { ButtonDownloadLocaleConfig } from '../components/buttondownload/ButtonDownload.vue.d';
10
11
  import { ButtonSearchLocaleConfig } from '../components/buttonsearch/ButtonSearch.vue.d';
11
12
  import {
12
13
  CalendarLocaleConfig,
@@ -91,6 +92,7 @@ interface ComponentLocaleConfig {
91
92
  ButtonBulkAction?: ButtonBulkActionLocaleConfig;
92
93
  UserName?: UserNameLocaleConfig;
93
94
  DataTable?: DataTableLocaleConfig;
95
+ ButtonDownload?: ButtonDownloadLocaleConfig;
94
96
  ImageCompressor?: ImageCompressorLocaleConfig;
95
97
  }
96
98
  export interface LocaleConfig {