edvoyui-component-library-test-flight 0.0.149 → 0.0.151

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.
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "/Volumes/work/repos/edvoy-ui-v2/src/components/searchTagSelect/EUISearchTagSelect.vue?vue&type=script&setup=true&lang.ts";
2
+ export * from "/Volumes/work/repos/edvoy-ui-v2/src/components/searchTagSelect/EUISearchTagSelect.vue?vue&type=script&setup=true&lang.ts";
3
+ import "/Volumes/work/repos/edvoy-ui-v2/src/components/searchTagSelect/EUISearchTagSelect.vue?vue&type=style&index=0&lang.scss";
4
+ export default _sfc_main;
5
+ //# sourceMappingURL=EUISearchTagSelect.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EUISearchTagSelect.vue.d.ts","sourceRoot":"","sources":["../../src/components/searchTagSelect/EUISearchTagSelect.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0HAA0H,CAAC;AACjJ,cAAc,0HAA0H,CAAC;AACzI,OAAO,wHAAwH,CAAC;AAChI,eAAe,SAAS,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from "/Volumes/work/repos/edvoy-ui-v2/src/components/searchTagSelect/SearchInput.vue?vue&type=script&setup=true&lang.ts";
2
+ import "/Volumes/work/repos/edvoy-ui-v2/src/components/searchTagSelect/SearchInput.vue?vue&type=style&index=0&scoped=d6f85bc3&lang.scss";
3
+ declare const _default: any;
4
+ export default _default;
5
+ //# sourceMappingURL=SearchInput.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchInput.vue.d.ts","sourceRoot":"","sources":["../../src/components/searchTagSelect/SearchInput.vue"],"names":[],"mappings":"AACA,cAAc,mHAAmH,CAAC;AAClI,OAAO,iIAAiI,CAAC;;AAEzI,wBAA0F"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EUITelephone.vue.d.ts","sourceRoot":"","sources":["../../src/components/telephone/EUITelephone.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,8GAA8G,CAAC;AACrI,cAAc,8GAA8G,CAAC;AAC7H,OAAO,4GAA4G,CAAC;AACpH,eAAe,SAAS,CAAC"}
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.149",
4
+ "version": "0.0.151",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist/",
@@ -41,7 +41,8 @@
41
41
  "tailwindcss": "^3.4.11",
42
42
  "vue": "^3.4.37",
43
43
  "vue-select": "^4.0.0-beta.6",
44
- "vue-tel-input": "^9.2.0"
44
+ "vue-tel-input": "^9.2.0",
45
+ "vue3-popper": "^1.5.0"
45
46
  },
46
47
  "devDependencies": {
47
48
  "@storybook/addon-essentials": "^8.4.4",
@@ -0,0 +1,21 @@
1
+ <template>
2
+ <svg
3
+ width="24"
4
+ height="24"
5
+ viewBox="0 0 24 24"
6
+ fill="none"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ >
9
+ <path
10
+ d="M5 12.7132L10.0168 17.7247L10.4177 17.0238C12.5668 13.2658 15.541 10.0448 19.1161 7.60354L20 7"
11
+ stroke="currentColor"
12
+ stroke-width="2"
13
+ stroke-linecap="round"
14
+ stroke-linejoin="round"
15
+ />
16
+ </svg>
17
+ </template>
18
+
19
+ <script setup lang="ts"></script>
20
+
21
+ <style scoped></style>
@@ -5,9 +5,11 @@
5
5
  >
6
6
  Edvoy User Interface
7
7
  </h1>
8
- </div>
8
+
9
+ </div>
9
10
  </template>
10
- <script setup lang="ts"></script>
11
+ <script setup lang="ts">
12
+ </script>
11
13
  <style lang="scss"></style>
12
14
 
13
15
  <!-- Development code here -->
@@ -17,6 +19,29 @@
17
19
  <div class="h-[clac(100svh-64px)] w-full px-10 py-8 max-w-screen-xl mx-auto">
18
20
  <h1 class="mb-2 font-semibold text-gray-900 tetx-lg">Edvoy UI Componnet</h1>
19
21
 
22
+ <div class="max-w-xs py-4 mx-auto border border-red-500 rounded-xl">
23
+ <EUISearchTagSelect
24
+ v-model="selectedCity"
25
+ :items="datas"
26
+ :searchIcon="true"
27
+ :required="false"
28
+ itemText="name"
29
+ placeholder="Search Cities"
30
+ select-type="multiple"
31
+ :clearable="true"
32
+ @search="onSearch"
33
+ @on-change="onCitySelect"
34
+ @on-deselect="clear"
35
+ >
36
+ <template #labelhint>
37
+ <div class="my-1 text-xs font-medium text-gray-400">
38
+ Changing the city will affect your university selection
39
+ </div>
40
+ </template>
41
+ </EUISearchTagSelect>
42
+ <pre class="p-2 text-red-500 text-xxs">{{ selectedCity }}--</pre>
43
+ </div>
44
+
20
45
  <div class="relative">
21
46
  <EUIStepperHorizontal
22
47
  :steps="allSteps"
@@ -1466,6 +1491,8 @@ import EUISearchExpand from "./searchexpand/EUISearchExpand.vue";
1466
1491
  import EUITabOutline from "./tabs/EUITabOutline.vue";
1467
1492
  import EUIPopover from "./popover/EUIPopover.vue";
1468
1493
  import EUIStepperHorizontal from "./stepperTimeline/EUIStepperHorizontal.vue";
1494
+ import { debounce } from "lodash";
1495
+ import EUISearchTagSelect from "./searchTagSelect/EUISearchTagSelect.vue";
1469
1496
 
1470
1497
  const checkboxData = ref([])
1471
1498
  const businessAreaSel = ref()
@@ -1478,6 +1505,25 @@ const businessArea = ref([
1478
1505
  "Accelerator"
1479
1506
  ])
1480
1507
 
1508
+ const emit = defineEmits(["update:modelValue", "on-select"]);
1509
+ const selectedCity = ref()
1510
+
1511
+ const onSearch = debounce(async (query: string) => query, 350);
1512
+ const onCitySelect = (value: any) => {
1513
+ emit("on-select", value);
1514
+ };
1515
+
1516
+ const clear = (item: any) => {
1517
+ // const currentSelection = props.modelValue;
1518
+ // if (Array.isArray(currentSelection)) {
1519
+ // const updatedSelection = currentSelection.filter(
1520
+ // (selectedItem) => !selectedItem.slug?.includes(item.slug)
1521
+ // );
1522
+ // emit("update:modelValue", updatedSelection);
1523
+ // emit("on-select", updatedSelection);
1524
+ // }
1525
+ };
1526
+
1481
1527
  // TODO: Popover
1482
1528
  const isLoading = ref(false);
1483
1529
  const popoverVisible = ref(false);
@@ -1614,8 +1660,8 @@ const handleActiveItem = (activeItems: number) => {
1614
1660
  };
1615
1661
 
1616
1662
  // Stepper dynamic Data
1617
- const allSteps = ['MQL','SAL','Prospect','Customer']
1618
- const currentStage = 'Prospect'
1663
+ const allSteps = ['MQL','SAL','PROSPECT','CUSTOMER']
1664
+ const currentStage = 'PROSPECT'
1619
1665
  const lifeCycleHistory = [
1620
1666
  {
1621
1667
  "lifecycleStage": "MQL",
@@ -1,5 +1,6 @@
1
1
  <template>
2
- <label class="flex flex-row items-center scale-100 translate-x-0 translate-y-0 eui-checkbox">
2
+ <div>
3
+ <label class="flex flex-row items-center scale-100 translate-x-0 translate-y-0 eui-checkbox">
3
4
  <input v-model="isChecked" type="checkbox" id="checkbox" class="appearance-none sr-only input-checkbox" :disabled="disabled"
4
5
  @change="toggle($event)" />
5
6
  <div class="cbx-icon" for="checkbox">
@@ -14,9 +15,14 @@
14
15
  </symbol>
15
16
  </svg>
16
17
  </div>
17
- <span v-if="label" class="text-sm font-medium tracking-wide text-gray-700 ms-2 first-letter:capitalize">{{ label }}</span>
18
+ <slot name="label">
19
+ <span v-if="label" class="text-sm font-medium tracking-wide text-gray-700 ms-2 first-letter:capitalize">{{ label }}</span>
20
+ </slot>
18
21
  </label>
19
- <EUIErrorMessage :errors="errors" :name="name" />
22
+ <template v-if="errors && errors.length">
23
+ <EUIErrorMessage :errors="errors" :name="name" />
24
+ </template>
25
+ </div>
20
26
  </template>
21
27
 
22
28
  <script setup lang="ts">
@@ -63,7 +69,7 @@ watch(props, (newValue) => {
63
69
  <style lang="scss">
64
70
  .eui-checkbox .cbx-icon {
65
71
  transition: all 0.2s ease;
66
- @apply select-none cursor-pointer p-0.5 rounded-md overflow-hidden inline-block scale-110;
72
+ @apply select-none cursor-pointer p-px rounded-md overflow-hidden inline-block scale-110;
67
73
  }
68
74
 
69
75
  .eui-checkbox .cbx-icon span {
@@ -93,6 +99,7 @@ watch(props, (newValue) => {
93
99
 
94
100
  .eui-checkbox .input-checkbox:checked + .cbx-icon span > svg {
95
101
  stroke-dashoffset: 0;
102
+ transition: rotate(8deg);
96
103
  }
97
104
 
98
105
  @keyframes anim {
@@ -52,6 +52,7 @@ export { default as EUITooltip } from "./tooltip/EUITooltip.vue";
52
52
  export { default as EUISearch } from "./searchInput/EUISearch.vue";
53
53
  export { default as EUISearchExpand } from "./searchexpand/EUISearchExpand.vue";
54
54
  export { default as EUISearchToggle } from "./searchexpand/EUISearchToggle.vue";
55
+ export { default as EUISearchTagSelect } from "./searchTagSelect/EUISearchTagSelect.vue";
55
56
 
56
57
  export { default as EUIBreadcrumb } from "./breadcrumb/EUIBreadcrumb.vue";
57
58
  export { default as EUIAlerts } from "./alerts/EUIAlerts.vue";