@tekkare/auriga 0.2.117 → 0.2.119

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/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "0.2.117"
7
+ "version": "0.2.119"
8
8
  }
@@ -186,6 +186,7 @@ export default defineComponent({
186
186
  closeSugg();
187
187
  }
188
188
  } else {
189
+ emit("update:Value", searchValue.value);
189
190
  closeSugg();
190
191
  }
191
192
  optionIndex.value = 1;
@@ -254,14 +255,15 @@ export default defineComponent({
254
255
  openSugg();
255
256
  searchValue.value = event?.target?.value;
256
257
  emit("update:Value", searchValue.value);
258
+ console.log(searchValue.value);
257
259
  }
258
260
  onMounted(() => {
259
- searchBar.value = document.getElementById("search_input_simple");
260
- searchBar.value.addEventListener("input", debounce(handleInput, 300));
261
+ searchBar.value = document.getElementById(props.searchBarId);
262
+ searchBar.value?.addEventListener("input", debounce(handleInput, 300));
261
263
  searchValue.value = props.defaultValue;
262
264
  });
263
265
  onUnmounted(() => {
264
- searchBar.value.removeEventListener("input", debounce(handleInput, 300));
266
+ searchBar.value?.removeEventListener("input", debounce(handleInput, 300));
265
267
  });
266
268
  watch(
267
269
  () => props.defaultValue,
@@ -272,7 +274,9 @@ export default defineComponent({
272
274
  function submitSearch() {
273
275
  if (optionIndex.value > 0) {
274
276
  closeOnEnter.value = true;
275
- searchValue.value = filterSuggestions.value[optionIndex.value - 1].text;
277
+ if (props.suggestions) {
278
+ searchValue.value = filterSuggestions.value[optionIndex.value - 1]?.text;
279
+ }
276
280
  emit("update:Value", searchValue.value);
277
281
  emit("selectSuggestion", searchValue.value);
278
282
  setTimeout(() => {
@@ -470,7 +470,7 @@ export default defineComponent({
470
470
  getColumnTypes();
471
471
  }
472
472
  );
473
- watch(searchKey, (newSearchKey) => {
473
+ watch(searchKey.value, (newSearchKey) => {
474
474
  setPage(1);
475
475
  if (!props.searchFullWord || props.searchFullWord && newSearchKey.length === 0) {
476
476
  emit("changeInputValue", newSearchKey);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.2.117",
3
+ "version": "0.2.119",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",