@tekkare/auriga 0.2.167 → 0.2.169
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-if="!isLoadingQuery && sourceResults" class="oip_body oip_list gap-12">
|
|
3
3
|
<ArgSourceCollapse
|
|
4
|
-
v-for="(uuid, index) in
|
|
4
|
+
v-for="(uuid, index) in reorderedUuids"
|
|
5
5
|
:key="index"
|
|
6
6
|
:source-country="
|
|
7
7
|
sourceResults?.find(
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
:without-country="!showCountry"
|
|
14
14
|
:source-id="uuid"
|
|
15
15
|
:source-title="constructTitle(uuid)"
|
|
16
|
+
:default-open="openedSource === uuid"
|
|
17
|
+
@click="openedSource = openedSource === uuid ? null : uuid"
|
|
16
18
|
>
|
|
17
19
|
<div class="oip_list gap-24">
|
|
18
20
|
<div class="oip_row v-center gap-24">
|
|
@@ -54,12 +56,28 @@ export default defineComponent({
|
|
|
54
56
|
index: { type: String },
|
|
55
57
|
authKey: { type: String },
|
|
56
58
|
cluster: { type: String, default: "new" },
|
|
57
|
-
showCountry: { type: Boolean, default: true }
|
|
59
|
+
showCountry: { type: Boolean, default: true },
|
|
60
|
+
sourceToOpen: { type: String, default: null }
|
|
58
61
|
},
|
|
59
62
|
emits: ["updateSources"],
|
|
60
63
|
setup(props, { emit }) {
|
|
61
64
|
const sourceResults = ref(null);
|
|
62
65
|
const isLoadingQuery = ref(false);
|
|
66
|
+
const openedSource = ref(null);
|
|
67
|
+
onMounted(async () => {
|
|
68
|
+
openedSource.value = props.sourceToOpen;
|
|
69
|
+
});
|
|
70
|
+
const reorderedUuids = ref([]);
|
|
71
|
+
onMounted(() => {
|
|
72
|
+
openedSource.value = props.sourceToOpen;
|
|
73
|
+
reorderedUuids.value = props.uuids?.slice() ?? [];
|
|
74
|
+
if (props.sourceToOpen) {
|
|
75
|
+
reorderedUuids.value = [
|
|
76
|
+
props.sourceToOpen,
|
|
77
|
+
...reorderedUuids.value.filter((x) => x !== props.sourceToOpen)
|
|
78
|
+
];
|
|
79
|
+
}
|
|
80
|
+
});
|
|
63
81
|
function constructTitle(uuid) {
|
|
64
82
|
const provider = sourceResults.value.find(
|
|
65
83
|
(x) => x.provider_uuid === uuid || x?.sources?.some((y) => y?.source_id === uuid)
|
|
@@ -83,16 +101,16 @@ export default defineComponent({
|
|
|
83
101
|
);
|
|
84
102
|
const source = provider?.sources?.find((x) => x.source_id === uuid);
|
|
85
103
|
return {
|
|
86
|
-
update: source?.last_download_date ? new Date(source?.last_download_date)?.toLocaleDateString({
|
|
104
|
+
update: source?.last_download_date ? new Date(source?.last_download_date)?.toLocaleDateString("en-GB", {
|
|
87
105
|
day: "numeric",
|
|
88
106
|
month: "long",
|
|
89
107
|
year: "numeric"
|
|
90
|
-
}) : provider?.["@timestamp"] ? new Date(provider?.["@timestamp"])?.toLocaleDateString({
|
|
108
|
+
}) : provider?.["@timestamp"] ? new Date(provider?.["@timestamp"])?.toLocaleDateString("en-GB", {
|
|
91
109
|
day: "numeric",
|
|
92
110
|
month: "long",
|
|
93
111
|
year: "numeric"
|
|
94
112
|
}) : "-",
|
|
95
|
-
visit: source?.source_last_visit ? new Date(source?.source_last_visit)?.toLocaleDateString({
|
|
113
|
+
visit: source?.source_last_visit ? new Date(source?.source_last_visit)?.toLocaleDateString("en-GB", {
|
|
96
114
|
day: "numeric",
|
|
97
115
|
month: "long",
|
|
98
116
|
year: "numeric"
|
|
@@ -239,7 +257,9 @@ export default defineComponent({
|
|
|
239
257
|
constructTitle,
|
|
240
258
|
getDescriptions,
|
|
241
259
|
getLastUpdate,
|
|
242
|
-
isLoadingQuery
|
|
260
|
+
isLoadingQuery,
|
|
261
|
+
openedSource,
|
|
262
|
+
reorderedUuids
|
|
243
263
|
};
|
|
244
264
|
}
|
|
245
265
|
});
|
|
@@ -19,6 +19,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
19
19
|
type: BooleanConstructor;
|
|
20
20
|
default: boolean;
|
|
21
21
|
};
|
|
22
|
+
sourceToOpen: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: null;
|
|
25
|
+
};
|
|
22
26
|
}>, {
|
|
23
27
|
sourceResults: import("vue").Ref<null, null>;
|
|
24
28
|
constructTitle: (uuid: string) => string;
|
|
@@ -32,6 +36,190 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
32
36
|
frequency: any;
|
|
33
37
|
};
|
|
34
38
|
isLoadingQuery: import("vue").Ref<boolean, boolean>;
|
|
39
|
+
openedSource: import("vue").Ref<{
|
|
40
|
+
readonly [x: number]: string;
|
|
41
|
+
toString: () => string;
|
|
42
|
+
charAt: (pos: number) => string;
|
|
43
|
+
charCodeAt: (index: number) => number;
|
|
44
|
+
concat: (...strings: string[]) => string;
|
|
45
|
+
indexOf: (searchString: string, position?: number) => number;
|
|
46
|
+
lastIndexOf: (searchString: string, position?: number) => number;
|
|
47
|
+
localeCompare: {
|
|
48
|
+
(that: string): number;
|
|
49
|
+
(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
|
|
50
|
+
(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
|
|
51
|
+
};
|
|
52
|
+
match: {
|
|
53
|
+
(regexp: string | RegExp): RegExpMatchArray | null;
|
|
54
|
+
(matcher: {
|
|
55
|
+
[Symbol.match](string: string): RegExpMatchArray | null;
|
|
56
|
+
}): RegExpMatchArray | null;
|
|
57
|
+
};
|
|
58
|
+
replace: {
|
|
59
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
60
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
61
|
+
(searchValue: {
|
|
62
|
+
[Symbol.replace](string: string, replaceValue: string): string;
|
|
63
|
+
}, replaceValue: string): string;
|
|
64
|
+
(searchValue: {
|
|
65
|
+
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
66
|
+
}, replacer: (substring: string, ...args: any[]) => string): string;
|
|
67
|
+
};
|
|
68
|
+
search: {
|
|
69
|
+
(regexp: string | RegExp): number;
|
|
70
|
+
(searcher: {
|
|
71
|
+
[Symbol.search](string: string): number;
|
|
72
|
+
}): number;
|
|
73
|
+
};
|
|
74
|
+
slice: (start?: number, end?: number) => string;
|
|
75
|
+
split: {
|
|
76
|
+
(separator: string | RegExp, limit?: number): string[];
|
|
77
|
+
(splitter: {
|
|
78
|
+
[Symbol.split](string: string, limit?: number): string[];
|
|
79
|
+
}, limit?: number): string[];
|
|
80
|
+
};
|
|
81
|
+
substring: (start: number, end?: number) => string;
|
|
82
|
+
toLowerCase: () => string;
|
|
83
|
+
toLocaleLowerCase: {
|
|
84
|
+
(locales?: string | string[]): string;
|
|
85
|
+
(locales?: Intl.LocalesArgument): string;
|
|
86
|
+
};
|
|
87
|
+
toUpperCase: () => string;
|
|
88
|
+
toLocaleUpperCase: {
|
|
89
|
+
(locales?: string | string[]): string;
|
|
90
|
+
(locales?: Intl.LocalesArgument): string;
|
|
91
|
+
};
|
|
92
|
+
trim: () => string;
|
|
93
|
+
readonly length: number;
|
|
94
|
+
substr: (from: number, length?: number) => string;
|
|
95
|
+
valueOf: () => string;
|
|
96
|
+
codePointAt: (pos: number) => number | undefined;
|
|
97
|
+
includes: (searchString: string, position?: number) => boolean;
|
|
98
|
+
endsWith: (searchString: string, endPosition?: number) => boolean;
|
|
99
|
+
normalize: {
|
|
100
|
+
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
|
101
|
+
(form?: string): string;
|
|
102
|
+
};
|
|
103
|
+
repeat: (count: number) => string;
|
|
104
|
+
startsWith: (searchString: string, position?: number) => boolean;
|
|
105
|
+
anchor: (name: string) => string;
|
|
106
|
+
big: () => string;
|
|
107
|
+
blink: () => string;
|
|
108
|
+
bold: () => string;
|
|
109
|
+
fixed: () => string;
|
|
110
|
+
fontcolor: (color: string) => string;
|
|
111
|
+
fontsize: {
|
|
112
|
+
(size: number): string;
|
|
113
|
+
(size: string): string;
|
|
114
|
+
};
|
|
115
|
+
italics: () => string;
|
|
116
|
+
link: (url: string) => string;
|
|
117
|
+
small: () => string;
|
|
118
|
+
strike: () => string;
|
|
119
|
+
sub: () => string;
|
|
120
|
+
sup: () => string;
|
|
121
|
+
padStart: (maxLength: number, fillString?: string) => string;
|
|
122
|
+
padEnd: (maxLength: number, fillString?: string) => string;
|
|
123
|
+
trimEnd: () => string;
|
|
124
|
+
trimStart: () => string;
|
|
125
|
+
trimLeft: () => string;
|
|
126
|
+
trimRight: () => string;
|
|
127
|
+
matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
|
|
128
|
+
[Symbol.iterator]: () => StringIterator<string>;
|
|
129
|
+
at: (index: number) => string | undefined;
|
|
130
|
+
} | null, String | {
|
|
131
|
+
readonly [x: number]: string;
|
|
132
|
+
toString: () => string;
|
|
133
|
+
charAt: (pos: number) => string;
|
|
134
|
+
charCodeAt: (index: number) => number;
|
|
135
|
+
concat: (...strings: string[]) => string;
|
|
136
|
+
indexOf: (searchString: string, position?: number) => number;
|
|
137
|
+
lastIndexOf: (searchString: string, position?: number) => number;
|
|
138
|
+
localeCompare: {
|
|
139
|
+
(that: string): number;
|
|
140
|
+
(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
|
|
141
|
+
(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
|
|
142
|
+
};
|
|
143
|
+
match: {
|
|
144
|
+
(regexp: string | RegExp): RegExpMatchArray | null;
|
|
145
|
+
(matcher: {
|
|
146
|
+
[Symbol.match](string: string): RegExpMatchArray | null;
|
|
147
|
+
}): RegExpMatchArray | null;
|
|
148
|
+
};
|
|
149
|
+
replace: {
|
|
150
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
151
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
152
|
+
(searchValue: {
|
|
153
|
+
[Symbol.replace](string: string, replaceValue: string): string;
|
|
154
|
+
}, replaceValue: string): string;
|
|
155
|
+
(searchValue: {
|
|
156
|
+
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
157
|
+
}, replacer: (substring: string, ...args: any[]) => string): string;
|
|
158
|
+
};
|
|
159
|
+
search: {
|
|
160
|
+
(regexp: string | RegExp): number;
|
|
161
|
+
(searcher: {
|
|
162
|
+
[Symbol.search](string: string): number;
|
|
163
|
+
}): number;
|
|
164
|
+
};
|
|
165
|
+
slice: (start?: number, end?: number) => string;
|
|
166
|
+
split: {
|
|
167
|
+
(separator: string | RegExp, limit?: number): string[];
|
|
168
|
+
(splitter: {
|
|
169
|
+
[Symbol.split](string: string, limit?: number): string[];
|
|
170
|
+
}, limit?: number): string[];
|
|
171
|
+
};
|
|
172
|
+
substring: (start: number, end?: number) => string;
|
|
173
|
+
toLowerCase: () => string;
|
|
174
|
+
toLocaleLowerCase: {
|
|
175
|
+
(locales?: string | string[]): string;
|
|
176
|
+
(locales?: Intl.LocalesArgument): string;
|
|
177
|
+
};
|
|
178
|
+
toUpperCase: () => string;
|
|
179
|
+
toLocaleUpperCase: {
|
|
180
|
+
(locales?: string | string[]): string;
|
|
181
|
+
(locales?: Intl.LocalesArgument): string;
|
|
182
|
+
};
|
|
183
|
+
trim: () => string;
|
|
184
|
+
readonly length: number;
|
|
185
|
+
substr: (from: number, length?: number) => string;
|
|
186
|
+
valueOf: () => string;
|
|
187
|
+
codePointAt: (pos: number) => number | undefined;
|
|
188
|
+
includes: (searchString: string, position?: number) => boolean;
|
|
189
|
+
endsWith: (searchString: string, endPosition?: number) => boolean;
|
|
190
|
+
normalize: {
|
|
191
|
+
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
|
192
|
+
(form?: string): string;
|
|
193
|
+
};
|
|
194
|
+
repeat: (count: number) => string;
|
|
195
|
+
startsWith: (searchString: string, position?: number) => boolean;
|
|
196
|
+
anchor: (name: string) => string;
|
|
197
|
+
big: () => string;
|
|
198
|
+
blink: () => string;
|
|
199
|
+
bold: () => string;
|
|
200
|
+
fixed: () => string;
|
|
201
|
+
fontcolor: (color: string) => string;
|
|
202
|
+
fontsize: {
|
|
203
|
+
(size: number): string;
|
|
204
|
+
(size: string): string;
|
|
205
|
+
};
|
|
206
|
+
italics: () => string;
|
|
207
|
+
link: (url: string) => string;
|
|
208
|
+
small: () => string;
|
|
209
|
+
strike: () => string;
|
|
210
|
+
sub: () => string;
|
|
211
|
+
sup: () => string;
|
|
212
|
+
padStart: (maxLength: number, fillString?: string) => string;
|
|
213
|
+
padEnd: (maxLength: number, fillString?: string) => string;
|
|
214
|
+
trimEnd: () => string;
|
|
215
|
+
trimStart: () => string;
|
|
216
|
+
trimLeft: () => string;
|
|
217
|
+
trimRight: () => string;
|
|
218
|
+
matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
|
|
219
|
+
[Symbol.iterator]: () => StringIterator<string>;
|
|
220
|
+
at: (index: number) => string | undefined;
|
|
221
|
+
} | null>;
|
|
222
|
+
reorderedUuids: import("vue").Ref<string[], string[]>;
|
|
35
223
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "updateSources"[], "updateSources", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
224
|
fields: {
|
|
37
225
|
type: ArrayConstructor;
|
|
@@ -53,11 +241,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
53
241
|
type: BooleanConstructor;
|
|
54
242
|
default: boolean;
|
|
55
243
|
};
|
|
244
|
+
sourceToOpen: {
|
|
245
|
+
type: StringConstructor;
|
|
246
|
+
default: null;
|
|
247
|
+
};
|
|
56
248
|
}>> & Readonly<{
|
|
57
249
|
onUpdateSources?: ((...args: any[]) => any) | undefined;
|
|
58
250
|
}>, {
|
|
59
251
|
cluster: string;
|
|
60
252
|
showCountry: boolean;
|
|
253
|
+
sourceToOpen: string;
|
|
61
254
|
}, {}, {
|
|
62
255
|
ArgSourceCollapse: any;
|
|
63
256
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
:key="index"
|
|
6
6
|
class="oip_info_item"
|
|
7
7
|
:class="item.name === 'Sources' ? 'relative' : ''"
|
|
8
|
-
@click="openMenu(item.name)"
|
|
8
|
+
@click="item.openSlot ? openMenu(item.openSlot) : openMenu(item.name)"
|
|
9
9
|
>
|
|
10
10
|
<arg-tooltip :tooltip-text="item.name" dir="left">
|
|
11
11
|
<arg-icon :name="item.icon" size="20" />
|
|
@@ -49,8 +49,10 @@ export default defineComponent({
|
|
|
49
49
|
const activeMenu = ref("");
|
|
50
50
|
const infoOpen = ref(false);
|
|
51
51
|
function openMenu(item) {
|
|
52
|
+
const exists = props.toolbarArray.some((el) => el.name === item);
|
|
53
|
+
const selected = exists ? item : props.toolbarArray[0]?.name;
|
|
52
54
|
infoOpen.value = true;
|
|
53
|
-
activeMenu.value =
|
|
55
|
+
activeMenu.value = selected;
|
|
54
56
|
emit("openToolbar", { open: infoOpen.value, menu: activeMenu.value });
|
|
55
57
|
}
|
|
56
58
|
return {
|