@tekkare/auriga 0.2.174 → 0.2.176

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.174"
7
+ "version": "0.2.176"
8
8
  }
@@ -19,7 +19,7 @@
19
19
  :without-country="!showCountry"
20
20
  :source-id="uuid"
21
21
  :source-title="constructTitle(uuid)"
22
- :default-open="openedSource && sourceToOpen == uuid"
22
+ :default-open="sourceToOpen && sourceToOpen == uuid"
23
23
  >
24
24
  <div class="oip_list gap-24">
25
25
  <div class="oip_row v-center gap-24">
@@ -67,19 +67,15 @@ export default defineComponent({
67
67
  },
68
68
  emits: ["updateSources"],
69
69
  setup(props, { emit }) {
70
- const sourceResults = ref(null);
70
+ const sourceResults = ref([]);
71
71
  const isLoadingQuery = ref(false);
72
72
  const reloadKey = ref(0);
73
- const openedSource = ref(null);
74
- onMounted(async () => {
75
- openedSource.value = props.sourceToOpen;
76
- });
77
73
  const reorderedUuids = computed(() => {
78
- const uuids = props.uuids?.slice() ?? [];
79
- if (props.sourceToOpen && uuids.includes(props.sourceToOpen)) {
74
+ const uuids = Array.isArray(props.uuids) ? props?.uuids : [];
75
+ if (props?.sourceToOpen && uuids.includes(props?.sourceToOpen)) {
80
76
  return [
81
- props.sourceToOpen,
82
- ...uuids.filter((x) => x !== props.sourceToOpen)
77
+ props?.sourceToOpen,
78
+ ...uuids?.filter((x) => x !== props?.sourceToOpen)
83
79
  ];
84
80
  }
85
81
  return uuids;
@@ -89,7 +85,7 @@ export default defineComponent({
89
85
  (x) => x.provider_uuid === uuid || x?.sources?.some((y) => y?.source_id === uuid)
90
86
  );
91
87
  const source = provider?.sources?.find((x) => x.source_id === uuid);
92
- return `${provider?.provider_title} - ${source?.source_nickname}`;
88
+ return `${provider?.provider_title} - ${source?.source_title}`;
93
89
  }
94
90
  function getDescriptions(uuid) {
95
91
  const provider = sourceResults.value.find(
@@ -245,7 +241,7 @@ export default defineComponent({
245
241
  }
246
242
  ];
247
243
  await queryElastic({
248
- index: props.index,
244
+ index: props?.index,
249
245
  take: { values: 500 },
250
246
  customQuery: matchTable
251
247
  });
@@ -265,7 +261,6 @@ export default defineComponent({
265
261
  getDescriptions,
266
262
  getLastUpdate,
267
263
  isLoadingQuery,
268
- openedSource,
269
264
  reorderedUuids,
270
265
  reloadKey
271
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.174",
3
+ "version": "0.2.176",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",