edvoyui-component-library-test-flight 0.0.144 → 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.
- package/dist/library-vue-ts.cjs.js +19 -19
- package/dist/library-vue-ts.css +1 -1
- package/dist/library-vue-ts.es.js +717 -717
- package/dist/library-vue-ts.umd.js +20 -20
- package/package.json +1 -1
- package/src/components/HelloWorld.vue +45 -2
- package/src/components/select/EUISelect.vue +14 -5
package/package.json
CHANGED
|
@@ -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) =>
|
|
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
|
|
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 {
|