@monoui/vuejs 1.1.12 → 1.1.13

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.12",
3
+ "version": "1.1.13",
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",
@@ -206,16 +206,23 @@
206
206
  <b-dropdown-divider
207
207
  v-if="
208
208
  filteredPerPageValues &&
209
- filteredPerPageValues.length
209
+ filteredPerPageValues.length &&
210
+ inLimit()
210
211
  "
211
212
  ></b-dropdown-divider>
212
- <b-dropdown-item
213
- @click="
214
- changeItemPerPage(settings.totalItemCount)
215
- "
216
- >
217
- All
218
- </b-dropdown-item>
213
+
214
+ <template>
215
+ <b-dropdown-item
216
+ v-if="inLimit()"
217
+ @click="
218
+ changeItemPerPage(
219
+ settings.totalItemCount
220
+ )
221
+ "
222
+ >
223
+ All ({{ settings.totalItemCount }})
224
+ </b-dropdown-item>
225
+ </template>
219
226
  </b-dropdown>
220
227
  </div>
221
228
  </slot>
@@ -320,7 +327,7 @@ export default {
320
327
  emptyMessage: {
321
328
  type: String,
322
329
  required: false,
323
- default: "No data avaible in table"
330
+ default: "No data available in table"
324
331
  },
325
332
  autoLoad: {
326
333
  type: Boolean,
@@ -379,7 +386,8 @@ export default {
379
386
  tableData: [],
380
387
  searchWord: null,
381
388
  isDataEmpty: false,
382
- isLoading: false
389
+ isLoading: false,
390
+ limit: 250
383
391
  };
384
392
  },
385
393
  computed: {
@@ -531,6 +539,9 @@ export default {
531
539
  }
532
540
 
533
541
  this.getValues();
542
+ },
543
+ inLimit() {
544
+ return this.settings.totalItemCount <= this.limit;
534
545
  }
535
546
  }
536
547
  };