@tekkare/auriga 0.2.51 → 0.2.53

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.51"
7
+ "version": "0.2.53"
8
8
  }
@@ -178,7 +178,12 @@ export default defineComponent({
178
178
  props.options["colors"] = props.colors;
179
179
  }
180
180
  if (props.type === "line") {
181
- props.options["stroke"] = { width: 3, curve: "smooth" };
181
+ if (props.options["stroke"] === void 0) {
182
+ if (allValues.length === 1) {
183
+ props.options["stroke"] = { show: false };
184
+ } else
185
+ props.options["stroke"] = { width: 3, curve: "smooth" };
186
+ }
182
187
  let defaultDataLabelsConfig = {
183
188
  enabled: true,
184
189
  position: "top",
@@ -95,7 +95,7 @@ export default defineComponent({
95
95
  },
96
96
  sourceCountry: {
97
97
  type: String,
98
- default: null
98
+ default: "World"
99
99
  },
100
100
  sourceSector: {
101
101
  type: String,
@@ -139,72 +139,6 @@ export default defineComponent({
139
139
  }
140
140
  }
141
141
  }
142
- async function fetchAll() {
143
- const graphqlQuery = `
144
- {
145
- DataProvider(
146
- limit: -1
147
- ) {
148
- provider_uuid
149
- provider_country
150
- sources {
151
- source_uuid
152
- translations {
153
- source_name
154
- source_description
155
- languages_code {
156
- code
157
- name
158
- }
159
- }
160
- datasets {
161
- id
162
- Dataset_id {
163
- id
164
- table_name
165
- schema_name
166
- status
167
- }
168
- }
169
- }
170
- translations {
171
- provider_name
172
- provider_description
173
- languages_code {
174
- code
175
- name
176
- }
177
- }
178
- }
179
- }
180
- `;
181
- const headers = {
182
- Authorization: `Bearer ${props.directusToken}`,
183
- "Content-Type": "application/json"
184
- };
185
- const payload = {
186
- query: graphqlQuery
187
- };
188
- try {
189
- const response = await fetch(
190
- "https://metadata.rcd.lensuscloud.com/graphql",
191
- {
192
- method: "POST",
193
- headers,
194
- body: JSON.stringify(payload)
195
- }
196
- );
197
- if (response.ok) {
198
- const responseData = await response.json();
199
- console.log("zebi", responseData);
200
- } else {
201
- const errorText = await response.text();
202
- console.log(`Error: ${response.status}. ${errorText}`);
203
- }
204
- } catch (err) {
205
- console.log(`Request failed: ${err.message}`);
206
- }
207
- }
208
142
  async function fetchData() {
209
143
  const graphqlQuery = `
210
144
  query {
@@ -310,7 +244,6 @@ export default defineComponent({
310
244
  setLang();
311
245
  if (props.directusToken !== null) {
312
246
  await fetchData();
313
- await fetchAll();
314
247
  }
315
248
  });
316
249
  watch(
@@ -5,7 +5,7 @@ declare const _default: import("vue").DefineComponent<{
5
5
  };
6
6
  sourceCountry: {
7
7
  type: StringConstructor;
8
- default: null;
8
+ default: string;
9
9
  };
10
10
  sourceSector: {
11
11
  type: StringConstructor;
@@ -58,7 +58,7 @@ declare const _default: import("vue").DefineComponent<{
58
58
  };
59
59
  sourceCountry: {
60
60
  type: StringConstructor;
61
- default: null;
61
+ default: string;
62
62
  };
63
63
  sourceSector: {
64
64
  type: StringConstructor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.2.51",
3
+ "version": "0.2.53",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",