edvoyui-component-library-test-flight 0.0.164 → 0.0.166

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,5 @@
1
1
  export * from "/Volumes/work/repos/edvoy-ui-v2/src/components/radio/EUIRadio.vue?vue&type=script&setup=true&lang.ts";
2
- import "/Volumes/work/repos/edvoy-ui-v2/src/components/radio/EUIRadio.vue?vue&type=style&index=0&scoped=85a67463&lang.scss";
2
+ import "/Volumes/work/repos/edvoy-ui-v2/src/components/radio/EUIRadio.vue?vue&type=style&index=0&scoped=2c4d7e6e&lang.scss";
3
3
  declare const _default: any;
4
4
  export default _default;
5
5
  //# sourceMappingURL=EUIRadio.vue.d.ts.map
@@ -1,5 +1,5 @@
1
1
  export * from "/Volumes/work/repos/edvoy-ui-v2/src/components/table/EUIDashboardTable.vue?vue&type=script&setup=true&lang.ts";
2
- import "/Volumes/work/repos/edvoy-ui-v2/src/components/table/EUIDashboardTable.vue?vue&type=style&index=0&scoped=3d989b7f&lang.scss";
2
+ import "/Volumes/work/repos/edvoy-ui-v2/src/components/table/EUIDashboardTable.vue?vue&type=style&index=0&scoped=96e61185&lang.scss";
3
3
  declare const _default: any;
4
4
  export default _default;
5
5
  //# sourceMappingURL=EUIDashboardTable.vue.d.ts.map
@@ -1,5 +1,5 @@
1
1
  export * from "/Volumes/work/repos/edvoy-ui-v2/src/components/table/EUITable.vue?vue&type=script&setup=true&lang.ts";
2
- import "/Volumes/work/repos/edvoy-ui-v2/src/components/table/EUITable.vue?vue&type=style&index=0&scoped=7695a283&lang.scss";
2
+ import "/Volumes/work/repos/edvoy-ui-v2/src/components/table/EUITable.vue?vue&type=style&index=0&scoped=8982a42f&lang.scss";
3
3
  declare const _default: any;
4
4
  export default _default;
5
5
  //# sourceMappingURL=EUITable.vue.d.ts.map
@@ -1,5 +1,5 @@
1
1
  export * from "/Volumes/work/repos/edvoy-ui-v2/src/components/table/GrowthTable.vue?vue&type=script&setup=true&lang.ts";
2
- import "/Volumes/work/repos/edvoy-ui-v2/src/components/table/GrowthTable.vue?vue&type=style&index=0&scoped=f7c99f58&lang.scss";
2
+ import "/Volumes/work/repos/edvoy-ui-v2/src/components/table/GrowthTable.vue?vue&type=style&index=0&scoped=53514ae1&lang.scss";
3
3
  declare const _default: any;
4
4
  export default _default;
5
5
  //# sourceMappingURL=GrowthTable.vue.d.ts.map
@@ -1,5 +1,5 @@
1
1
  export * from "/Volumes/work/repos/edvoy-ui-v2/src/components/toggle/EUIToggle.vue?vue&type=script&setup=true&lang.ts";
2
- import "/Volumes/work/repos/edvoy-ui-v2/src/components/toggle/EUIToggle.vue?vue&type=style&index=0&scoped=f3426066&lang.scss";
2
+ import "/Volumes/work/repos/edvoy-ui-v2/src/components/toggle/EUIToggle.vue?vue&type=style&index=0&scoped=8bc6f54e&lang.scss";
3
3
  declare const _default: any;
4
4
  export default _default;
5
5
  //# sourceMappingURL=EUIToggle.vue.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "edvoyui-component-library-test-flight",
3
3
  "private": false,
4
- "version": "0.0.164",
4
+ "version": "0.0.166",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist/",
@@ -1653,7 +1653,7 @@ const selectedRows = ref([]);
1653
1653
  const checkedRows = ref([]);
1654
1654
  const defaultSortOrder = ref("asc");
1655
1655
  const limit = ref(5);
1656
- const offset = ref(1);
1656
+ const offset = ref(0);
1657
1657
  const selectedIndex = ref(null);
1658
1658
  const selected: { index: string } = { index: "" };
1659
1659
 
@@ -19,7 +19,7 @@
19
19
  <span v-if="label" class="text-sm font-medium tracking-wide text-gray-700 ms-2 first-letter:capitalize">{{ label }}</span>
20
20
  </slot>
21
21
  </label>
22
- <template v-if="errors && errors.length">
22
+ <template v-if="errors && Object.keys(errors).length">
23
23
  <EUIErrorMessage :errors="errors" :name="name" />
24
24
  </template>
25
25
  </div>
@@ -78,7 +78,7 @@
78
78
  @update:model-value="handleDate"
79
79
  />
80
80
  </div>
81
- <template v-if="errors && errors.length">
81
+ <template v-if="errors && Object.keys(errors).length">
82
82
  <EUIErrorMessage :errors="errors" :name="name" class="mt-2" />
83
83
  </template>
84
84
  </div>
@@ -93,7 +93,7 @@
93
93
  @blur="hasFocus = false"
94
94
  />
95
95
  </div>
96
- <template v-if="errors && errors.length">
96
+ <template v-if="errors && Object.keys(errors).length">
97
97
  <EUIErrorMessage :errors="errors" :name="name" />
98
98
  </template>
99
99
  </div>
@@ -82,7 +82,7 @@
82
82
  @blur="hasFocus = false"
83
83
  />
84
84
  </div>
85
- <template v-if="errors && errors.length">
85
+ <template v-if="errors && Object.keys(errors).length">
86
86
  <EUIErrorMessage :errors="errors" :name="name" />
87
87
  </template>
88
88
  </div>
@@ -27,9 +27,9 @@
27
27
  }}
28
28
  </EUIButton>
29
29
  </div>
30
- <div class="ml-2 mt-1">
31
- <EUIErrorMessage :name="name" :errors="errors" />
32
- </div>
30
+ <template v-if="errors && Object.keys(errors).length">
31
+ <EUIErrorMessage :errors="errors" :name="name" />
32
+ </template>
33
33
  </div>
34
34
  </template>
35
35
 
@@ -17,7 +17,9 @@
17
17
  {{ label }}
18
18
  </span>
19
19
  </label>
20
- <EUIErrorMessage :errors="errors" :name="name" />
20
+ <template v-if="errors && Object.keys(errors).length">
21
+ <EUIErrorMessage :errors="errors" :name="name" />
22
+ </template>
21
23
  </div>
22
24
  </template>
23
25
 
@@ -247,8 +247,8 @@
247
247
  </template>
248
248
  </vSelect>
249
249
 
250
- <template v-if="errors && errors.length">
251
- <EUIErrorMessage :errors="errors" :name="name" class="mt-2" />
250
+ <template v-if="errors && Object.keys(errors).length">
251
+ <EUIErrorMessage :errors="errors" :name="name" />
252
252
  </template>
253
253
  </div>
254
254
  </template>
@@ -1,21 +1,24 @@
1
1
  <template>
2
2
  <div>
3
3
  <Transition name="fade" mode="out-in">
4
- <div
5
- v-if="loading"
6
- :class="[
7
- 'overflow-hidden relative z-0 isolate bg-white backdrop-blur transition-colors duration-150 ease-in-out rounded-xl border border-gray-50',
8
- tableHeight
9
- ? tableHeight
10
- : 'h-[calc(100svh-9rem)] max-h-[calc(100svh-9rem)]',
11
- ]"
12
- >
13
- <div
14
- class="absolute flex items-center z-[calc(infinity)] w-full h-auto pointer-events-none inset-0"
15
- >
16
- <EUICircleLoader />
17
- </div>
18
- </div>
4
+ <template v-if="loading">
5
+ <slot name="loader" :loading="loading" :height="tableHeight">
6
+ <div
7
+ :class="[
8
+ 'overflow-hidden relative z-0 isolate bg-white backdrop-blur transition-colors duration-150 ease-in-out rounded-xl border border-gray-50',
9
+ tableHeight
10
+ ? tableHeight
11
+ : 'h-[calc(100svh-9rem)] max-h-[calc(100svh-9rem)]',
12
+ ]"
13
+ >
14
+ <div
15
+ class="absolute flex items-center z-[calc(infinity)] w-full h-auto pointer-events-none inset-0"
16
+ >
17
+ <EUICircleLoader />
18
+ </div>
19
+ </div>
20
+ </slot>
21
+ </template>
19
22
 
20
23
  <div v-else class="relative max-w-full mx-auto">
21
24
  <article
@@ -201,28 +204,30 @@
201
204
  checkable === true ? headers.length + 1 : headers.length
202
205
  "
203
206
  >
204
- <slot name="no-records">
205
- <div
206
- class="flex items-center justify-center w-[calc(100vw-14rem)]"
207
- :class="[
208
- tableHeight
209
- ? tableHeight
210
- : 'h-[calc(100svh-12rem)] max-h-[calc(100svh-12rem)]',
211
- ]"
212
- >
213
- <div class="text-center">
214
- <div class="mx-auto overflow-hidden rounded-md size-56">
215
- <img
216
- src="@/assets/images/search-nodata.png"
217
- alt=""
218
- class="block object-contain object-center h-auto max-w-full opacity-90"
219
- />
220
- </div>
221
- <div class="my-2 text-xl font-medium text-gray-500">
222
- No matching records found
207
+ <slot name="no-records">
208
+ <div
209
+ class="flex items-center justify-center w-[calc(100vw-14rem)]"
210
+ :class="[
211
+ tableHeight
212
+ ? tableHeight
213
+ : 'h-[calc(100svh-12rem)] max-h-[calc(100svh-12rem)]',
214
+ ]"
215
+ >
216
+ <div class="text-center">
217
+ <div
218
+ class="mx-auto overflow-hidden rounded-md size-56"
219
+ >
220
+ <img
221
+ src="@/assets/images/search-nodata.png"
222
+ alt=""
223
+ class="block object-contain object-center h-auto max-w-full opacity-90"
224
+ />
225
+ </div>
226
+ <div class="my-2 text-xl font-medium text-gray-500">
227
+ No matching records found
228
+ </div>
223
229
  </div>
224
230
  </div>
225
- </div>
226
231
  </slot>
227
232
  </td>
228
233
  </tr>
@@ -424,7 +429,7 @@ const searchData = (_data: any) => {
424
429
 
425
430
  const changeLimit = (limitData: number) => {
426
431
  limit.value = limitData;
427
- newCurrentPage.value = 1;
432
+ newCurrentPage.value = 0;
428
433
  emit("update:currentPage", newCurrentPage.value);
429
434
  emit("changeLimit", limitData);
430
435
  };
@@ -573,7 +578,7 @@ const tableColumnResize = () => {
573
578
 
574
579
  let startX: number, startWidth: number;
575
580
 
576
- const mouseDownHandler = function (e:any) {
581
+ const mouseDownHandler = function (e: any) {
577
582
  startX = e.pageX;
578
583
  startWidth = parseInt(
579
584
  document.defaultView?.getComputedStyle(th)?.width || "0px",
@@ -587,7 +592,7 @@ const tableColumnResize = () => {
587
592
  e.preventDefault();
588
593
  };
589
594
 
590
- const onMouseMove = function (e:any) {
595
+ const onMouseMove = function (e: any) {
591
596
  if (isResizing) {
592
597
  const newWidth = startWidth + (e.pageX - startX);
593
598
  if (newWidth > 100) {
@@ -682,9 +687,9 @@ watch(() => tableContainer.value?.clientWidth, checkOverflow);
682
687
  }
683
688
 
684
689
  & > tr {
685
- transition-property: filter, background, opacity;
686
- transition-duration: 0.2s;
687
- transition-timing-function: ease-out;
690
+ transition-property: filter, background, opacity;
691
+ transition-duration: 0.2s;
692
+ transition-timing-function: ease-out;
688
693
  }
689
694
  }
690
695
 
@@ -710,10 +715,10 @@ watch(() => tableContainer.value?.clientWidth, checkOverflow);
710
715
  */
711
716
 
712
717
  // TODO: Hover Row highlight
713
- & tbody:hover tr:not(:hover) td:not(:nth-child(-n+2)) {
714
- filter: blur(4px) saturate(0.2);
715
- pointer-events: none;
716
- opacity: 0.6;
718
+ & tbody:hover tr:not(:hover) td:not(:nth-child(-n + 2)) {
719
+ filter: blur(4px) saturate(0.2);
720
+ pointer-events: none;
721
+ opacity: 0.6;
717
722
  }
718
723
  }
719
724
  }