edvoyui-component-library-test-flight 0.0.143 → 0.0.145

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/tabs/EUITabs.vue?vue&type=script&setup=true&lang.ts";
2
- import "/Volumes/work/repos/edvoy-ui-v2/src/components/tabs/EUITabs.vue?vue&type=style&index=0&scoped=4e9b0366&lang.css";
2
+ import "/Volumes/work/repos/edvoy-ui-v2/src/components/tabs/EUITabs.vue?vue&type=style&index=0&scoped=c7325a13&lang.css";
3
3
  declare const _default: any;
4
4
  export default _default;
5
5
  //# sourceMappingURL=EUITabs.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.143",
4
+ "version": "0.0.145",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist/",
@@ -7,8 +7,7 @@
7
7
  </h1>
8
8
  </div>
9
9
  </template>
10
- <script setup lang="ts">
11
- </script>
10
+ <script setup lang="ts"></script>
12
11
  <style lang="scss"></style>
13
12
 
14
13
  <!-- Development code here -->
@@ -18,6 +17,41 @@
18
17
  <div class="h-[clac(100svh-64px)] w-full px-10 py-8 max-w-screen-xl mx-auto">
19
18
  <h1 class="mb-2 font-semibold text-gray-900 tetx-lg">Edvoy UI Componnet</h1>
20
19
 
20
+ <pre class="p-2 text-red-500 text-xxs">
21
+ {{ popoverSelect }}
22
+ {{ businessAreaSel }}
23
+ </pre>
24
+ <div class="grid max-w-2xl grid-cols-2 gap-6 mx-auto">
25
+ <EUISelect
26
+ v-model="businessAreaSel"
27
+ :value="businessAreaSel"
28
+ :items="businessArea"
29
+ search-label="name"
30
+ label="Select Label"
31
+ placeholder="Placeholder"
32
+ :multiple="true"
33
+ :isCheckbox="true"
34
+ :selectedCount="true"
35
+ selectedCountLabel="Business Area"
36
+ :inputFilled="true"
37
+ :searchable="true"
38
+ />
39
+
40
+ <EUISelect
41
+ v-model="popoverSelect"
42
+ :value="popoverSelect"
43
+ :items="datas"
44
+ search-label="name"
45
+ label="Select Label"
46
+ placeholder="Placeholder"
47
+ :searchable="true"
48
+ :multiple="true"
49
+ :isCheckbox="true"
50
+ :selectedCount="true"
51
+ :inputFilled="true"
52
+ />
53
+ </div>
54
+
21
55
 
22
56
  <div class="grid w-full h-48 grid-cols-4 gap-4 mb-20 isolate">
23
57
  <div
@@ -1425,6 +1459,15 @@ import EUITabOutline from "./tabs/EUITabOutline.vue";
1425
1459
  import EUIPopover from "./popover/EUIPopover.vue";
1426
1460
 
1427
1461
  const checkboxData = ref([])
1462
+ const businessAreaSel = ref()
1463
+ const popoverSelect = ref([]);
1464
+
1465
+ const businessArea = ref([
1466
+ "All",
1467
+ "B2B",
1468
+ "B2C",
1469
+ "Accelerator"
1470
+ ])
1428
1471
 
1429
1472
  // TODO: Popover
1430
1473
  const isLoading = ref(false);
@@ -433,14 +433,21 @@ const isCheckedAll =(e: Event) => {
433
433
  };
434
434
 
435
435
  const isChecked = (item: any) => {
436
- const sel = selected.value
436
+ const sel = selected.value;
437
+ const itemValue = item?.[fieldName.value];
437
438
  if (Array.isArray(sel)) {
438
- return sel.some((s:any) => s?.value === item.value)
439
+ return sel.some((s: any) => {
440
+ if(s && typeof s === 'string'){
441
+ return s === itemValue
442
+ } else {
443
+ return s?.[fieldName.value] === itemValue
444
+ }
445
+ });
439
446
  }
440
447
  if (sel && typeof sel === 'object') {
441
- return (sel as any).value === item.value;
448
+ return sel?.[fieldName.value] === itemValue;
442
449
  }
443
- return false
450
+ return false;
444
451
  }
445
452
 
446
453
  const clearAll = (e:Event) => {
@@ -685,7 +692,9 @@ const open = () => {
685
692
  </script>
686
693
  <style lang="scss">
687
694
  :root {
688
- --vs-dropdown-color: theme('colors.gray.600')
695
+ --vs-dropdown-color: theme('colors.gray.600');
696
+ --vs-dropdown-option--active-color: theme('colors.white');
697
+ --vs-disabled-bg: theme('colors.white');
689
698
  }
690
699
  .scrollbar {
691
700
  &--hide {
@@ -2,7 +2,7 @@
2
2
  <div>
3
3
  <div
4
4
  v-if="tabStyle === 'design'"
5
- class="inline-flex flex-row items-center justify-start px-[0.25rem] min-h-[34px] mb-0.5 bg-gray-100 rounded-[0.625rem] ring-1 ring-gray-200/75 gap-2 overflow-x-auto scrollbar--hide whitespace-nowrap max-w-full w-full"
5
+ class="inline-flex flex-row items-center justify-start px-[0.25rem] min-h-[34px] mb-0.5 bg-gray-100 rounded-[0.625rem] ring-1 ring-gray-200/75 gap-2 overflow-x-auto scrollbar--hide whitespace-nowrap max-w-full"
6
6
  >
7
7
  <template v-for="(tab, tabindex) in tabs" :key="tabindex">
8
8
  <button