edvoyui-component-library-test-flight 0.0.231 → 0.0.233

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.
@@ -279,18 +279,17 @@
279
279
  <slot
280
280
  name="tableCount"
281
281
  :currentPage="newCurrentPage"
282
- :from="newCurrentPage * limit + 1"
283
- :to="(newCurrentPage + 1) * limit"
282
+ :from="rangeFrom"
283
+ :to="rangeTo"
284
284
  >
285
- <div class="inline-flex items-center gap-x-10">
286
- <div class="text-sm font-normal text-gray-900">
287
- {{ newCurrentPage * limit + 1 }} -
288
- {{ (newCurrentPage + 1) * limit }} of {{ total }}
285
+ <div class="inline-flex items-center self-stretch gap-x-3">
286
+ <div class="text-sm font-normal text-gray-600">
287
+ {{ rangeFrom }} - {{ rangeTo }} of {{ total }}
289
288
  </div>
290
- <div class="inline-flex items-center gap-2">
291
- <span class="text-sm font-normal text-gray-900"
292
- >Result per page</span
293
- >
289
+ <div class="self-stretch w-px h-4 my-auto bg-gray-300"></div>
290
+ <div class="inline-flex items-center gap-0">
291
+ <span class="text-sm font-normal text-gray-600"
292
+ > Items per page:</span>
294
293
  <EUIPageLimit
295
294
  :page-limit="limit"
296
295
  @update-limit="changeLimit($event)"
@@ -418,6 +417,12 @@ const newCheckedRows = ref([...checkedRows.value]);
418
417
  const newCurrentPage = ref(currentPage.value);
419
418
  const limit = ref(props.perPage);
420
419
  const loading = computed(() => props.tableLoading);
420
+ const rangeFrom = computed(() =>
421
+ total.value > 0 ? newCurrentPage.value * limit.value + 1 : 0
422
+ );
423
+ const rangeTo = computed(() =>
424
+ Math.min((newCurrentPage.value + 1) * limit.value, total.value)
425
+ );
421
426
 
422
427
  // Computed Property
423
428