@monoui/vuejs 1.1.65 → 1.1.67

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monoui/vuejs",
3
- "version": "1.1.65",
3
+ "version": "1.1.67",
4
4
  "description": "This project will contain MonoFor UI Framework",
5
5
  "main": "./dist/main.js",
6
6
  "repository": "git@gitlab.com:monoui/vuejs.git",
@@ -264,19 +264,52 @@
264
264
  variant="light"
265
265
  >
266
266
  <template #button-content>
267
+ <mui-icon
268
+ icon="download"
269
+ class="mr-1"
270
+ />
267
271
  Export
268
272
  </template>
269
273
 
270
- <b-dropdown-item @click="exportTo(1)">
274
+ <b-dropdown-item @click="exportTo(2)">
275
+ <mui-icon icon="file" class="mr-1" />
271
276
  Current Page
277
+ <small>
278
+ ({{ settings.itemPerPage }}
279
+ items)
280
+ </small>
272
281
  </b-dropdown-item>
273
282
 
274
- <b-dropdown-item @click="exportTo(0)">
283
+ <b-dropdown-item @click="exportTo(1)">
284
+ <mui-icon icon="list" class="mr-1" />
275
285
  All Pages
286
+ <small v-if="filters.length === 0">
287
+ ({{ settings.totalItemCount }}
288
+ items)
289
+ </small>
276
290
  </b-dropdown-item>
277
291
 
278
- <b-dropdown-item @click="exportTo(2)">
292
+ <b-dropdown-item
293
+ @click="exportTo(3)"
294
+ v-if="filters.length > 0"
295
+ >
296
+ <mui-icon icon="filter" class="mr-1" />
279
297
  Only Filtered
298
+ <small>
299
+ ({{ settings.totalItemCount }}
300
+ items)
301
+ </small>
302
+ </b-dropdown-item>
303
+
304
+ <b-dropdown-divider />
305
+
306
+ <b-dropdown-item
307
+ :to="{
308
+ name: 'Exports'
309
+ }"
310
+ >
311
+ <mui-icon icon="link" class="mr-1" />
312
+ Go Downloads
280
313
  </b-dropdown-item>
281
314
 
282
315
  <slot name="pagination-export-item"></slot>
@@ -618,19 +651,24 @@ export default {
618
651
  async getValues(
619
652
  addHistory = true,
620
653
  initialLoad = false,
621
- isExport = false,
622
654
  exportScope = 0
623
655
  ) {
624
656
  this.isLoading = true;
625
657
  this.$emit("loading", this.isLoading);
626
658
  const { currentPage, itemPerPage } = this.settings;
627
659
 
660
+ if (exportScope) {
661
+ this.$successToast(
662
+ "Export Started",
663
+ "The export process has begun. Please wait... Once completed, you can download it from the Reports/Exports page."
664
+ );
665
+ }
666
+
628
667
  let result = await this.requestFunction(
629
668
  this.filters,
630
669
  this.sorting,
631
670
  currentPage,
632
671
  itemPerPage,
633
- isExport,
634
672
  exportScope
635
673
  );
636
674
 
@@ -1140,7 +1178,7 @@ export default {
1140
1178
  },
1141
1179
 
1142
1180
  async exportTo(scope) {
1143
- await this.getValues(true, false, true, scope);
1181
+ await this.getValues(true, false, scope);
1144
1182
  }
1145
1183
  }
1146
1184
  };
package/src/icons.js CHANGED
@@ -45,6 +45,7 @@ import {
45
45
  faAngleDoubleRight,
46
46
  faStopwatch,
47
47
  faFilter,
48
+ faFile,
48
49
  faBezierCurve,
49
50
  faInfoCircle,
50
51
  faBolt,
@@ -126,6 +127,7 @@ library.add(
126
127
  faAngleDoubleRight,
127
128
  faStopwatch,
128
129
  faFilter,
130
+ faFile,
129
131
  faBezierCurve,
130
132
  faInfoCircle,
131
133
  faBolt,