@tekkare/auriga 0.1.96 → 0.1.98

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.1.96"
7
+ "version": "0.1.98"
8
8
  }
@@ -354,17 +354,10 @@ export default defineComponent({
354
354
  watch(
355
355
  () => props.element_table,
356
356
  (new_element_table) => {
357
- console.log("uhuh");
358
357
  element_table_copy.value = new_element_table;
359
- console.log(props.default_select);
360
358
  if (props.preselection_all) {
361
359
  add_all();
362
360
  } else if (props.default_select && props.default_select.length > 0) {
363
- console.log(
364
- element_table_copy.value.some(
365
- (a) => props.default_select.includes(a)
366
- )
367
- );
368
361
  if (!element_table_copy.value.some(
369
362
  (a) => props.default_select.includes(a)
370
363
  )) {
@@ -389,6 +382,13 @@ export default defineComponent({
389
382
  if (props.preselection_all) {
390
383
  add_all();
391
384
  } else if (props.default_select && props.default_select.length > 0) {
385
+ if (!element_table_copy.value.some(
386
+ (a) => props.default_select.includes(a)
387
+ )) {
388
+ element_table_copy.value = element_table_copy.value.concat(
389
+ props.default_select
390
+ );
391
+ }
392
392
  selected_items.value = props.default_select;
393
393
  }
394
394
  });
@@ -470,7 +470,7 @@ export default defineComponent({
470
470
  }
471
471
  const filterName = computed(() => {
472
472
  if (!props.multiple_columns) {
473
- if (searchName.value !== null) {
473
+ if (searchName.value.length > 0) {
474
474
  if (searchName.value.includes(" ")) {
475
475
  return element_table_copy.value.filter(
476
476
  (element) => checkIfContainsValue(
@@ -487,7 +487,7 @@ export default defineComponent({
487
487
  } else {
488
488
  let selectTable = [];
489
489
  const finalTable = [];
490
- if (searchName.value !== null) {
490
+ if (searchName.value.length > 0) {
491
491
  selectTable = [
492
492
  ...new Set(
493
493
  element_table_copy.value.filter(
@@ -818,7 +818,8 @@ export default defineComponent({
818
818
  getEmptyMsg,
819
819
  getLoaderText,
820
820
  getPlaceholder,
821
- getEmptyContentMsg
821
+ getEmptyContentMsg,
822
+ element_table_copy
822
823
  };
823
824
  }
824
825
  });
@@ -141,6 +141,7 @@ declare const _default: import("vue").DefineComponent<{
141
141
  getLoaderText: import("vue").ComputedRef<string[]>;
142
142
  getPlaceholder: import("vue").ComputedRef<string>;
143
143
  getEmptyContentMsg: import("vue").ComputedRef<string>;
144
+ element_table_copy: import("vue").Ref<any[]>;
144
145
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClose" | "changeElement" | "update:Selection" | "changeInputValue")[], "onClose" | "changeElement" | "update:Selection" | "changeInputValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
145
146
  element_table: {
146
147
  type: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.1.96",
3
+ "version": "0.1.98",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",