@tekkare/auriga 0.2.111 → 0.2.113

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.111"
7
+ "version": "0.2.113"
8
8
  }
@@ -71,13 +71,17 @@
71
71
  </p>
72
72
  <p v-else class="oip_subtitle">{{ getAddText }}</p>
73
73
  <p
74
- v-if="max_amount === null"
74
+ v-if="
75
+ max_amount === null && (show_select_all || dynamicSelectAll)
76
+ "
75
77
  class="add_all_action"
76
78
  @click="add_all_element()"
77
79
  >
78
80
  {{ getAddAllText }}
79
81
  </p>
80
- <p class="oip_body" v-else>(Maximum: {{ max_amount }})</p>
82
+ <p class="oip_body" v-else-if="max_amount">
83
+ (Maximum: {{ max_amount }})
84
+ </p>
81
85
  </div>
82
86
  <p v-if="reachMax" class="warning_text">{{ getMaxSelectMsg }}</p>
83
87
  <div class="complex_search">
@@ -275,7 +279,9 @@ export default defineComponent({
275
279
  filterSearch: { type: Boolean, default: true },
276
280
  labelInfo: { type: Boolean, default: false },
277
281
  forceList: { type: Boolean, default: false },
278
- fuzzyStart: { type: Number, default: 1 }
282
+ fuzzyStart: { type: Number, default: 1 },
283
+ dynamicSelectAll: { type: Boolean, default: false },
284
+ hasMoreData: { type: Boolean, default: false }
279
285
  },
280
286
  emits: [
281
287
  "changeElement",
@@ -324,7 +330,7 @@ export default defineComponent({
324
330
  return langData.value?.custom;
325
331
  });
326
332
  const getAddAllText = computed(() => {
327
- return langData.value?.all;
333
+ return props.dynamicSelectAll ? `${langData.value?.all} (${props.hasMoreData ? "Max:" + props.element_table.length : props.element_table.length})` : langData.value?.all;
328
334
  });
329
335
  const noSelectionMsg = computed(() => {
330
336
  return langData.value?.noSelection;
@@ -140,6 +140,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
140
140
  type: NumberConstructor;
141
141
  default: number;
142
142
  };
143
+ dynamicSelectAll: {
144
+ type: BooleanConstructor;
145
+ default: boolean;
146
+ };
147
+ hasMoreData: {
148
+ type: BooleanConstructor;
149
+ default: boolean;
150
+ };
143
151
  }>, {
144
152
  add_table: import("vue").Ref<any, any>;
145
153
  del_table: import("vue").Ref<any, any>;
@@ -322,6 +330,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
322
330
  type: NumberConstructor;
323
331
  default: number;
324
332
  };
333
+ dynamicSelectAll: {
334
+ type: BooleanConstructor;
335
+ default: boolean;
336
+ };
337
+ hasMoreData: {
338
+ type: BooleanConstructor;
339
+ default: boolean;
340
+ };
325
341
  }>> & Readonly<{
326
342
  onChangeElement?: ((...args: any[]) => any) | undefined;
327
343
  onChangeAddInputValue?: ((...args: any[]) => any) | undefined;
@@ -352,6 +368,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
352
368
  labelInfo: boolean;
353
369
  forceList: boolean;
354
370
  fuzzyStart: number;
371
+ dynamicSelectAll: boolean;
372
+ hasMoreData: boolean;
355
373
  }, {}, {
356
374
  argSimpleLabel: any;
357
375
  argIcon: any;
@@ -329,7 +329,7 @@ export default defineComponent({
329
329
  return langData.value?.search;
330
330
  });
331
331
  const filterBlocks = computed(() => {
332
- return props.appBlocks.length > 0 ? props.appBlocks.filter((a) => includesValue(a)) : null;
332
+ return props.appBlocks.length > 0 ? props.appBlocks.filter((a) => includesValue(a)) : props.appBlocks;
333
333
  });
334
334
  const filterCategoryBlocks = (cat) => {
335
335
  return props.appBlocks.length > 0 ? searchBlocks.value.length > 0 ? props.appBlocks.filter(
@@ -29,5 +29,5 @@ export default defineComponent({
29
29
  });
30
30
  </script>
31
31
  <style>
32
- .arg_main_home{align-items:center;display:flex;flex-direction:column}.arg_home_layout_body{margin:116px 32px 95px;max-width:1200px;min-height:calc(100vh - 77px)}.full_width_footer{align-self:stretch}
32
+ .arg_main_home{align-items:center;display:flex;flex-direction:column}.arg_home_layout_body{margin:116px 32px 95px;max-width:1200px;min-height:calc(100vh - 77px);width:100%}.full_width_footer{align-self:stretch}
33
33
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.2.111",
3
+ "version": "0.2.113",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -39,7 +39,7 @@
39
39
  "@vueuse/integrations": "^10.11.1",
40
40
  "apexcharts": "^3.54.1",
41
41
  "fuse.js": "^6.6.2",
42
- "posthog-js": "^1.194.3",
42
+ "posthog-js": "^1.194.4",
43
43
  "save": "^2.9.0",
44
44
  "vue-apexcharts": "^1.7.0",
45
45
  "vue-svg-map": "^1.2.0",
@@ -51,7 +51,7 @@
51
51
  "@nuxt/eslint-config": "^0.2.0",
52
52
  "@nuxt/module-builder": "^0.5.5",
53
53
  "@nuxt/schema": "^3.14.1592",
54
- "@nuxt/test-utils": "^3.14.4",
54
+ "@nuxt/test-utils": "^3.15.0",
55
55
  "@types/node": "^18.19.67",
56
56
  "changelogen": "^0.5.7",
57
57
  "eslint": "^8.57.1",