@monoui/vuejs 1.1.64 → 1.1.66

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.64",
3
+ "version": "1.1.66",
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,11 +264,41 @@
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(0)">
274
+ <b-dropdown-item @click="exportTo(2)">
275
+ <mui-icon icon="file" class="mr-1" />
276
+ Current Page
277
+ <small>
278
+ ({{ settings.itemPerPage }}
279
+ items)
280
+ </small>
281
+ </b-dropdown-item>
282
+
283
+ <b-dropdown-item @click="exportTo(1)">
284
+ <mui-icon icon="list" class="mr-1" />
271
285
  All Pages
286
+ <small v-if="filters.length === 0">
287
+ ({{ settings.totalItemCount }}
288
+ items)
289
+ </small>
290
+ </b-dropdown-item>
291
+
292
+ <b-dropdown-item
293
+ @click="exportTo(3)"
294
+ v-if="filters.length > 0"
295
+ >
296
+ <mui-icon icon="filter" class="mr-1" />
297
+ Only Filtered
298
+ <small>
299
+ ({{ settings.totalItemCount }}
300
+ items)
301
+ </small>
272
302
  </b-dropdown-item>
273
303
 
274
304
  <slot name="pagination-export-item"></slot>
@@ -610,7 +640,6 @@ export default {
610
640
  async getValues(
611
641
  addHistory = true,
612
642
  initialLoad = false,
613
- isExport = false,
614
643
  exportScope = 0
615
644
  ) {
616
645
  this.isLoading = true;
@@ -622,7 +651,6 @@ export default {
622
651
  this.sorting,
623
652
  currentPage,
624
653
  itemPerPage,
625
- isExport,
626
654
  exportScope
627
655
  );
628
656
 
@@ -1131,8 +1159,8 @@ export default {
1131
1159
  }
1132
1160
  },
1133
1161
 
1134
- exportTo(scope) {
1135
- this.getValues(true, false, true, scope);
1162
+ async exportTo(scope) {
1163
+ await this.getValues(true, false, scope);
1136
1164
  }
1137
1165
  }
1138
1166
  };
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,