@tekkare/auriga 0.2.118 → 0.2.120

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.118"
7
+ "version": "0.2.120"
8
8
  }
@@ -31,7 +31,7 @@
31
31
  }"
32
32
  @click="changeMenu(index + 1)"
33
33
  >
34
- <p class="header_one_tab_title oip_row v-center gap-4">
34
+ <div class="header_one_tab_title oip_row v-center gap-4">
35
35
  {{ tab }}
36
36
  <span
37
37
  v-if="
@@ -50,7 +50,7 @@
50
50
  />
51
51
  </arg-tooltip>
52
52
  </span>
53
- </p>
53
+ </div>
54
54
  </button>
55
55
  </span>
56
56
  </div>
@@ -255,15 +255,14 @@ export default defineComponent({
255
255
  openSugg();
256
256
  searchValue.value = event?.target?.value;
257
257
  emit("update:Value", searchValue.value);
258
- console.log(searchValue.value);
259
258
  }
260
259
  onMounted(() => {
261
- searchBar.value = document.getElementById("search_input_simple");
262
- searchBar.value.addEventListener("input", debounce(handleInput, 300));
260
+ searchBar.value = document.getElementById(props.searchBarId);
261
+ searchBar.value?.addEventListener("input", debounce(handleInput, 300));
263
262
  searchValue.value = props.defaultValue;
264
263
  });
265
264
  onUnmounted(() => {
266
- searchBar.value.removeEventListener("input", debounce(handleInput, 300));
265
+ searchBar.value?.removeEventListener("input", debounce(handleInput, 300));
267
266
  });
268
267
  watch(
269
268
  () => props.defaultValue,
@@ -413,6 +413,17 @@ export default defineComponent({
413
413
  }
414
414
  },
415
415
  emits: ["changeInputValue"],
416
+ /************* ✨ Codeium Command ⭐ *************/
417
+ /**
418
+ * This function is the setup function for the argTable component.
419
+ * It initializes and defines all the computed properties and functions
420
+ * needed for the component to work properly.
421
+ * It also sets up the watchers for the props and emits changes to the parent component.
422
+ * @param {Object} props - The props object passed to the component.
423
+ * @param {Object} { emit } - The emit function to emit events to the parent component.
424
+ * @returns {Object} An object containing all the computed properties and functions.
425
+ */
426
+ /****** fa6b7854-ac63-49ae-9d0f-ab8469d321ab *******/
416
427
  setup(props, { emit }) {
417
428
  const dataValues = ref();
418
429
  const sortCol = ref();
@@ -420,7 +431,7 @@ export default defineComponent({
420
431
  const currentPage = ref();
421
432
  const sortIndex = ref();
422
433
  const searchIndex = ref();
423
- const searchKey = ref();
434
+ const searchKey = ref("");
424
435
  const showSearch = ref(false);
425
436
  const saveTable = ref([]);
426
437
  const columnTypeNonProps = ref();
@@ -457,7 +468,7 @@ export default defineComponent({
457
468
  });
458
469
  watch(
459
470
  () => props.contents,
460
- (newContent) => {
471
+ () => {
461
472
  saveTable.value = Object.assign([], [...new Set(fillTable.value)]);
462
473
  dataValues.value = fillTable.value;
463
474
  currentPage.value = 1;
@@ -466,16 +477,16 @@ export default defineComponent({
466
477
  );
467
478
  watch(
468
479
  () => props.heads,
469
- (newHeads) => {
480
+ () => {
470
481
  getColumnTypes();
471
482
  }
472
483
  );
473
- watch(searchKey.value, (newSearchKey) => {
484
+ watch(searchKey, () => {
474
485
  setPage(1);
475
- if (!props.searchFullWord || props.searchFullWord && newSearchKey.length === 0) {
476
- emit("changeInputValue", newSearchKey);
486
+ if (!props.searchFullWord || props.searchFullWord && searchKey.value.length === 0) {
487
+ emit("changeInputValue", searchKey.value);
477
488
  }
478
- if (newSearchKey.length === 0) {
489
+ if (searchKey.value.length === 0) {
479
490
  searchSubmit.value = false;
480
491
  }
481
492
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.2.118",
3
+ "version": "0.2.120",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",