@tekkare/auriga 0.2.120 → 0.2.122

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.120"
7
+ "version": "0.2.122"
8
8
  }
@@ -138,6 +138,10 @@ export default defineComponent({
138
138
  posthogHost: {
139
139
  type: String,
140
140
  default: null
141
+ },
142
+ cut: {
143
+ type: Boolean,
144
+ default: false
141
145
  }
142
146
  },
143
147
  setup(props) {
@@ -354,7 +358,14 @@ export default defineComponent({
354
358
  return tab.data.slice(0, props.limit);
355
359
  }
356
360
  } else {
357
- return tab.data;
361
+ return props.cut ? tab.data.map(
362
+ (obj) => Object.fromEntries(
363
+ Object.entries(obj).map(
364
+ ([key, value]) => typeof value === "string" && value.length > 3e4 ? [key, value.substring(0, 3e4)] : [key, value]
365
+ // Keep other values as they are
366
+ )
367
+ )
368
+ ) : tab.data;
358
369
  }
359
370
  });
360
371
  globalData.unshift(data);
@@ -80,6 +80,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
80
80
  type: StringConstructor;
81
81
  default: null;
82
82
  };
83
+ cut: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
83
87
  }>, {
84
88
  launchDownload: () => Promise<void>;
85
89
  isLoading: import("vue").Ref<boolean, boolean>;
@@ -143,8 +147,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
143
147
  type: StringConstructor;
144
148
  default: null;
145
149
  };
150
+ cut: {
151
+ type: BooleanConstructor;
152
+ default: boolean;
153
+ };
146
154
  }>> & Readonly<{}>, {
147
155
  lang: string;
156
+ cut: boolean;
148
157
  style: string;
149
158
  subtitle: string;
150
159
  beforeExport: Function;
@@ -419,7 +419,7 @@ export default defineComponent({
419
419
  ...new Set(element_table_copy.value.concat(props.default_select))
420
420
  ];
421
421
  }
422
- selected_items.value = props.default_select;
422
+ selected_items.value = [...new Set(props.default_select)];
423
423
  }
424
424
  }
425
425
  );
@@ -427,7 +427,7 @@ export default defineComponent({
427
427
  () => props.default_select,
428
428
  (new_selected) => {
429
429
  if (new_selected && new_selected.length > 0) {
430
- selected_items.value = new_selected;
430
+ selected_items.value = [...new Set(props.default_select)];
431
431
  }
432
432
  }
433
433
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.2.120",
3
+ "version": "0.2.122",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",