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

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
  /**
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.145",
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 {