@tekkare/auriga 0.2.170 → 0.2.172

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.170"
7
+ "version": "0.2.172"
8
8
  }
@@ -1,42 +1,51 @@
1
1
  <template>
2
- <div v-if="!isLoadingQuery && sourceResults" class="oip_body oip_list gap-12">
3
- <ArgSourceCollapse
4
- v-for="(uuid, index) in reorderedUuids"
5
- :key="index"
6
- :source-country="
7
- sourceResults?.find(
8
- (x) =>
9
- x.provider_uuid == uuid ||
2
+ <div
3
+ v-if="!isLoadingQuery && sourceResults"
4
+ class="oip_body oip_list gap-12"
5
+ :key="reloadKey"
6
+ >
7
+ <template v-for="(uuid, index) in reorderedUuids" :key="index">
8
+ <ArgSourceCollapse
9
+ v-if="
10
+ sourceResults?.find((x) =>
10
11
  x?.sources?.some((y) => y?.source_id === uuid)
11
- )?.country_label
12
- "
13
- :without-country="!showCountry"
14
- :source-id="uuid"
15
- :source-title="constructTitle(uuid)"
16
- :default-open="openedSource === uuid"
17
- >
18
- <div class="oip_list gap-24">
19
- <div class="oip_row v-center gap-24">
20
- <div>
21
- <p class="oip_filter_label">Last Update :</p>
22
- {{ getLastUpdate(uuid)?.update }}
23
- </div>
12
+ )
13
+ "
14
+ :source-country="
15
+ sourceResults?.find((x) =>
16
+ x?.sources?.some((y) => y?.source_id === uuid)
17
+ )?.country_label
18
+ "
19
+ :without-country="!showCountry"
20
+ :source-id="uuid"
21
+ :source-title="constructTitle(uuid)"
22
+ :default-open="
23
+ openedSource?.trim()?.toLowerCase() == uuid?.trim()?.toLowerCase()
24
+ "
25
+ >
26
+ <div class="oip_list gap-24">
27
+ <div class="oip_row v-center gap-24">
28
+ <div>
29
+ <p class="oip_filter_label">Last Update :</p>
30
+ {{ getLastUpdate(uuid)?.update }}
31
+ </div>
24
32
 
25
- <div>
26
- <p class="oip_filter_label">Update Frequency :</p>
27
- {{ getLastUpdate(uuid)?.frequency }}
33
+ <div>
34
+ <p class="oip_filter_label">Update Frequency :</p>
35
+ {{ getLastUpdate(uuid)?.frequency }}
36
+ </div>
37
+ </div>
38
+ <div class="oip_list gap-8">
39
+ <p class="small_heading">About the provider</p>
40
+ <p v-html="getDescriptions(uuid).provider" />
41
+ </div>
42
+ <div class="oip_list gap-8">
43
+ <p class="small_heading">About the source</p>
44
+ <p v-html="getDescriptions(uuid).source" />
28
45
  </div>
29
46
  </div>
30
- <div class="oip_list gap-8">
31
- <p class="small_heading">About the provider</p>
32
- <p v-html="getDescriptions(uuid).provider" />
33
- </div>
34
- <div class="oip_list gap-8">
35
- <p class="small_heading">About the source</p>
36
- <p v-html="getDescriptions(uuid).source" />
37
- </div>
38
- </div>
39
- </ArgSourceCollapse>
47
+ </ArgSourceCollapse>
48
+ </template>
40
49
  </div>
41
50
  <div v-else class="oip_body oip_list gap-12">
42
51
  <div v-for="i in 3" :key="i" class="oneLoader" />
@@ -62,13 +71,14 @@ export default defineComponent({
62
71
  setup(props, { emit }) {
63
72
  const sourceResults = ref(null);
64
73
  const isLoadingQuery = ref(false);
74
+ const reloadKey = ref(0);
65
75
  const openedSource = ref(null);
66
76
  onMounted(async () => {
67
77
  openedSource.value = props.sourceToOpen;
68
78
  });
69
79
  const reorderedUuids = computed(() => {
70
80
  const uuids = props.uuids?.slice() ?? [];
71
- if (props.sourceToOpen) {
81
+ if (props.sourceToOpen && uuids.includes(props.sourceToOpen)) {
72
82
  return [
73
83
  props.sourceToOpen,
74
84
  ...uuids.filter((x) => x !== props.sourceToOpen)
@@ -242,6 +252,7 @@ export default defineComponent({
242
252
  customQuery: matchTable
243
253
  });
244
254
  isLoadingQuery.value = false;
255
+ reloadKey.value += 1;
245
256
  }
246
257
  onMounted(runQuery);
247
258
  watch(
@@ -257,7 +268,8 @@ export default defineComponent({
257
268
  getLastUpdate,
258
269
  isLoadingQuery,
259
270
  openedSource,
260
- reorderedUuids
271
+ reorderedUuids,
272
+ reloadKey
261
273
  };
262
274
  }
263
275
  });
@@ -220,6 +220,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
220
220
  at: (index: number) => string | undefined;
221
221
  } | null>;
222
222
  reorderedUuids: import("vue").ComputedRef<unknown[]>;
223
+ reloadKey: import("vue").Ref<number, number>;
223
224
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "updateSources"[], "updateSources", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
224
225
  fields: {
225
226
  type: ArrayConstructor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.2.170",
3
+ "version": "0.2.172",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",