@tekkare/auriga 0.2.162 → 0.2.164

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.162"
7
+ "version": "0.2.164"
8
8
  }
@@ -12,7 +12,7 @@
12
12
  :class="['icon_open', sourceOpen ? 'icon_rotate' : '']"
13
13
  />
14
14
  <div class="title_container">
15
- <arg-tags class="source_tag">
15
+ <arg-tags class="source_tag" v-if="!withoutCountry">
16
16
  <div class="oip_row v-center gap-4">
17
17
  <arg-flag
18
18
  :slug="getCountryName(sourceContent?.country?.toLowerCase())"
@@ -105,6 +105,10 @@ export default defineComponent({
105
105
  type: Boolean,
106
106
  default: false
107
107
  },
108
+ withoutCountry: {
109
+ type: Boolean,
110
+ default: false
111
+ },
108
112
  lang: {
109
113
  type: String,
110
114
  default: "en",
@@ -15,6 +15,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
15
15
  type: BooleanConstructor;
16
16
  default: boolean;
17
17
  };
18
+ withoutCountry: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
18
22
  lang: {
19
23
  type: StringConstructor;
20
24
  default: string;
@@ -68,6 +72,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
68
72
  type: BooleanConstructor;
69
73
  default: boolean;
70
74
  };
75
+ withoutCountry: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
71
79
  lang: {
72
80
  type: StringConstructor;
73
81
  default: string;
@@ -93,6 +101,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
93
101
  sourceCountry: string;
94
102
  sourceSector: string;
95
103
  defaultOpen: boolean;
104
+ withoutCountry: boolean;
96
105
  directusToken: string;
97
106
  providerId: string;
98
107
  sourceId: string;
@@ -10,6 +10,7 @@
10
10
  x?.sources?.some((y) => y?.source_id === uuid)
11
11
  )?.country_label
12
12
  "
13
+ :without-country="showCountry"
13
14
  :source-id="uuid"
14
15
  :source-title="constructTitle(uuid)"
15
16
  >
@@ -52,7 +53,8 @@ export default defineComponent({
52
53
  uuids: { type: Array },
53
54
  index: { type: String },
54
55
  authKey: { type: String },
55
- cluster: { type: String, default: "new" }
56
+ cluster: { type: String, default: "new" },
57
+ showCountry: { type: Boolean, default: true }
56
58
  },
57
59
  emits: ["updateSources"],
58
60
  setup(props, { emit }) {
@@ -81,12 +83,16 @@ export default defineComponent({
81
83
  );
82
84
  const source = provider?.sources?.find((x) => x.source_id === uuid);
83
85
  return {
84
- update: source?.last_update ? new Date(source?.last_update)?.toLocaleDateString({
86
+ update: source?.last_download_date ? new Date(source?.last_download_date)?.toLocaleDateString({
87
+ day: "numeric",
88
+ month: "long",
89
+ year: "numeric"
90
+ }) : provider?.["@timestamp"] ? new Date(provider?.["@timestamp"])?.toLocaleDateString({
85
91
  day: "numeric",
86
92
  month: "long",
87
93
  year: "numeric"
88
94
  }) : "-",
89
- visit: source?.last_visit ? new Date(source?.last_visit)?.toLocaleDateString({
95
+ visit: source?.source_last_visit ? new Date(source?.source_last_visit)?.toLocaleDateString({
90
96
  day: "numeric",
91
97
  month: "long",
92
98
  year: "numeric"
@@ -15,6 +15,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
15
15
  type: StringConstructor;
16
16
  default: string;
17
17
  };
18
+ showCountry: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
18
22
  }>, {
19
23
  sourceResults: import("vue").Ref<null, null>;
20
24
  constructTitle: (uuid: string) => string;
@@ -45,10 +49,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
45
49
  type: StringConstructor;
46
50
  default: string;
47
51
  };
52
+ showCountry: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
48
56
  }>> & Readonly<{
49
57
  onUpdateSources?: ((...args: any[]) => any) | undefined;
50
58
  }>, {
51
59
  cluster: string;
60
+ showCountry: boolean;
52
61
  }, {}, {
53
62
  ArgSourceCollapse: any;
54
63
  }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.2.162",
3
+ "version": "0.2.164",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",