@tekkare/auriga 0.2.173 → 0.2.175

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.173"
7
+ "version": "0.2.175"
8
8
  }
@@ -19,9 +19,7 @@
19
19
  :without-country="!showCountry"
20
20
  :source-id="uuid"
21
21
  :source-title="constructTitle(uuid)"
22
- :default-open="
23
- openedSource && openedSource?.toLowerCase() == uuid?.toLowerCase()
24
- "
22
+ :default-open="sourceToOpen && sourceToOpen == uuid"
25
23
  >
26
24
  <div class="oip_list gap-24">
27
25
  <div class="oip_row v-center gap-24">
@@ -69,19 +67,15 @@ export default defineComponent({
69
67
  },
70
68
  emits: ["updateSources"],
71
69
  setup(props, { emit }) {
72
- const sourceResults = ref(null);
70
+ const sourceResults = ref([]);
73
71
  const isLoadingQuery = ref(false);
74
72
  const reloadKey = ref(0);
75
- const openedSource = ref(null);
76
- onMounted(async () => {
77
- openedSource.value = props.sourceToOpen;
78
- });
79
73
  const reorderedUuids = computed(() => {
80
- const uuids = props.uuids?.slice() ?? [];
81
- if (props.sourceToOpen && uuids.includes(props.sourceToOpen)) {
74
+ const uuids = Array.isArray(props.uuids) ? props?.uuids : [];
75
+ if (props?.sourceToOpen && uuids.includes(props?.sourceToOpen)) {
82
76
  return [
83
- props.sourceToOpen,
84
- ...uuids.filter((x) => x !== props.sourceToOpen)
77
+ props?.sourceToOpen,
78
+ ...uuids?.filter((x) => x !== props?.sourceToOpen)
85
79
  ];
86
80
  }
87
81
  return uuids;
@@ -247,7 +241,7 @@ export default defineComponent({
247
241
  }
248
242
  ];
249
243
  await queryElastic({
250
- index: props.index,
244
+ index: props?.index,
251
245
  take: { values: 500 },
252
246
  customQuery: matchTable
253
247
  });
@@ -267,7 +261,6 @@ export default defineComponent({
267
261
  getDescriptions,
268
262
  getLastUpdate,
269
263
  isLoadingQuery,
270
- openedSource,
271
264
  reorderedUuids,
272
265
  reloadKey
273
266
  };
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
24
24
  default: null;
25
25
  };
26
26
  }>, {
27
- sourceResults: import("vue").Ref<null, null>;
27
+ sourceResults: import("vue").Ref<never[], never[]>;
28
28
  constructTitle: (uuid: string) => string;
29
29
  getDescriptions: (uuid: any) => {
30
30
  provider: any;
@@ -36,189 +36,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
36
36
  frequency: any;
37
37
  };
38
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
39
  reorderedUuids: import("vue").ComputedRef<unknown[]>;
223
40
  reloadKey: import("vue").Ref<number, number>;
224
41
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "updateSources"[], "updateSources", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.2.173",
3
+ "version": "0.2.175",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",