@tekkare/auriga 0.2.42 → 0.2.44
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 +1 -1
- package/dist/runtime/components/argChaptersNav.vue +23 -10
- package/dist/runtime/components/argChaptersNav.vue.d.ts +1 -0
- package/dist/runtime/components/argComplexSelect.vue +52 -51
- package/dist/runtime/components/argComplexSelect.vue.d.ts +11 -26
- package/dist/runtime/components/argDate.vue +46 -18
- package/dist/runtime/components/argDate.vue.d.ts +1 -1
- package/dist/runtime/components/argDropdownSelect.vue +25 -5
- package/dist/runtime/components/argDropdownSelect.vue.d.ts +4 -4
- package/dist/runtime/components/argFilterCard.vue +27 -34
- package/dist/runtime/components/argFilterCard.vue.d.ts +1 -0
- package/dist/runtime/components/argFooter.vue +29 -14
- package/dist/runtime/components/argFooter.vue.d.ts +3 -1
- package/dist/runtime/components/argHomeAllBlocks.vue +29 -15
- package/dist/runtime/components/argHomeAllBlocks.vue.d.ts +4 -3
- package/dist/runtime/components/argHomeHeader.vue +28 -3
- package/dist/runtime/components/argHomeHeader.vue.d.ts +3 -1
- package/dist/runtime/components/argHomeLayout.vue +1 -1
- package/dist/runtime/components/argHomeSelectedBlock.vue +29 -8
- package/dist/runtime/components/argHomeSelectedBlock.vue.d.ts +3 -1
- package/dist/runtime/components/argMainLayout.vue +1 -1
- package/dist/runtime/components/argMaps.vue +1 -1
- package/dist/runtime/components/argMapsFrRegionsToDepartements.vue +31 -15
- package/dist/runtime/components/argMapsFrRegionsToDepartements.vue.d.ts +12 -2
- package/dist/runtime/components/argMultipleSelect.vue +29 -8
- package/dist/runtime/components/argMultipleSelect.vue.d.ts +5 -4
- package/dist/runtime/components/argNoSavedScope.vue +44 -38
- package/dist/runtime/components/argNoSavedScope.vue.d.ts +4 -15
- package/dist/runtime/components/argNoSelectedScope.vue +35 -31
- package/dist/runtime/components/argNoSelectedScope.vue.d.ts +2 -1
- package/dist/runtime/components/argScopeChange.vue +27 -20
- package/dist/runtime/components/argScopeChange.vue.d.ts +2 -1
- package/dist/runtime/components/argScopeCriteria.vue +32 -31
- package/dist/runtime/components/argScopeCriteria.vue.d.ts +4 -11
- package/dist/runtime/components/argScopeCriteriaIndicator.vue +31 -18
- package/dist/runtime/components/argScopeCriteriaIndicator.vue.d.ts +3 -1
- package/dist/runtime/components/argScopeHeader.vue +27 -12
- package/dist/runtime/components/argScopeHeader.vue.d.ts +1 -0
- package/dist/runtime/components/argScopeManage.vue +29 -35
- package/dist/runtime/components/argScopeManage.vue.d.ts +1 -0
- package/dist/runtime/components/argScopeModal.vue +33 -64
- package/dist/runtime/components/argScopeModal.vue.d.ts +1 -0
- package/dist/runtime/components/argSearchInput.vue +36 -14
- package/dist/runtime/components/argSearchInput.vue.d.ts +2 -10
- package/dist/runtime/components/argSidebar.vue +26 -14
- package/dist/runtime/components/argSidebar.vue.d.ts +1 -0
- package/dist/runtime/components/argSourceCollapse.vue +26 -6
- package/dist/runtime/components/argSourceCollapse.vue.d.ts +1 -0
- package/dist/runtime/components/argTable.vue +42 -14
- package/dist/runtime/components/argTable.vue.d.ts +5 -5
- package/dist/runtime/components/argTipsBox.vue +27 -17
- package/dist/runtime/components/argTipsBox.vue.d.ts +3 -2
- package/dist/runtime/components/argToolbarSources.vue +29 -22
- package/dist/runtime/components/argToolbarSources.vue.d.ts +3 -1
- package/dist/runtime/components/locales/en.json +180 -1
- package/dist/runtime/components/locales/es.json +179 -1
- package/dist/runtime/components/locales/fr.json +179 -1
- package/dist/runtime/components/locales/jp.json +179 -2
- package/dist/runtime/components/maps/world/index.d.ts +10 -0
- package/dist/runtime/components/maps/world/index.mjs +1 -0
- package/dist/runtime/components/maps/world/world.svg +1286 -0
- package/package.json +1 -1
- package/dist/runtime/components/textHighlight.vue +0 -251
- package/dist/runtime/components/textHighlight.vue.d.ts +0 -96
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<div class="copy_action" @click.stop="copy()">
|
|
29
29
|
<arg-icon name="Copy" color="var(--cool-grey)" size="16" />
|
|
30
30
|
<p>
|
|
31
|
-
{{
|
|
31
|
+
{{ langData?.copySource }}
|
|
32
32
|
</p>
|
|
33
33
|
</div>
|
|
34
34
|
</div>
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
</p> -->
|
|
41
41
|
<div class="oip_row v-start gap-16">
|
|
42
42
|
<div class="tag_display">
|
|
43
|
-
<p class="toolbar_tag_title">
|
|
43
|
+
<p class="toolbar_tag_title">{{ langData?.sector }}</p>
|
|
44
44
|
<arg-tags>{{ sourceSector }}</arg-tags>
|
|
45
45
|
</div>
|
|
46
46
|
</div>
|
|
@@ -57,7 +57,8 @@ import {
|
|
|
57
57
|
ref,
|
|
58
58
|
computed,
|
|
59
59
|
watch,
|
|
60
|
-
defineComponent
|
|
60
|
+
defineComponent,
|
|
61
|
+
onBeforeMount
|
|
61
62
|
} from "vue";
|
|
62
63
|
import argFlag from "./argFlag.vue";
|
|
63
64
|
import argIcon from "./argIcon.vue";
|
|
@@ -86,13 +87,32 @@ export default defineComponent({
|
|
|
86
87
|
type: String,
|
|
87
88
|
default: "en",
|
|
88
89
|
validator: (value) => {
|
|
89
|
-
return ["en", "fr", "es"].includes(value);
|
|
90
|
+
return ["en", "fr", "es", "jp"].includes(value);
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
},
|
|
93
94
|
emits: ["copyTitle"],
|
|
94
95
|
setup(props, { emit }) {
|
|
95
96
|
const sourceOpen = ref(false);
|
|
97
|
+
const langData = ref(null);
|
|
98
|
+
async function setLang() {
|
|
99
|
+
const jsonFiles = import.meta.glob("./locales/*.json");
|
|
100
|
+
for (const path in jsonFiles) {
|
|
101
|
+
if (path.split("/")[2].includes(props.lang)) {
|
|
102
|
+
const json = await jsonFiles[path]();
|
|
103
|
+
langData.value = json.sourceCollapse;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
onBeforeMount(async () => {
|
|
108
|
+
setLang();
|
|
109
|
+
});
|
|
110
|
+
watch(
|
|
111
|
+
() => props.lang,
|
|
112
|
+
() => {
|
|
113
|
+
setLang();
|
|
114
|
+
}
|
|
115
|
+
);
|
|
96
116
|
function closeSource() {
|
|
97
117
|
sourceOpen.value = false;
|
|
98
118
|
}
|
|
@@ -138,11 +158,11 @@ export default defineComponent({
|
|
|
138
158
|
navigator.clipboard.writeText(props.sourceTitle);
|
|
139
159
|
emit("copyTitle");
|
|
140
160
|
}
|
|
141
|
-
return { closeSource, sourceOpen, copy, getCountryName };
|
|
161
|
+
return { closeSource, sourceOpen, copy, getCountryName, langData };
|
|
142
162
|
}
|
|
143
163
|
});
|
|
144
164
|
</script>
|
|
145
165
|
|
|
146
166
|
<style scoped>
|
|
147
|
-
.oip_source_card_collapse{align-self:stretch;border:1px solid var(--light,#dbdef0);border-radius:8px;cursor:pointer;display:flex;flex-direction:column;overflow:hidden;padding:8px 8px 8px 16px;transition:gap .3s linear,max-height .3s linear,background-color .3s linear,padding .3s linear}.oip_source_card_collapse:hover .header>svg{color:var(--primary)!important}.oip_source_card_collapse.close{background-color:var(--white,#fff);gap:0;max-height:110px}.oip_source_card_collapse.open{background-color:var(--demi-fond);gap:16px;max-height:800px;padding:8px 8px 16px 16px}.icon_open{transition:transform .3s}.icon_rotate{transform:rotateX(180deg)}.source_card_header{align-items:center;align-self:stretch;display:flex;flex-direction:row;gap:8px;justify-content:space-between}.source_title{font-family:Figtree;font-size:14px;font-style:normal;font-weight:700;line-height:160%}.source_content{display:flex;flex-direction:column;gap:16px;margin-right:-6px;padding-right:4px;transition:max-height .3s linear,opacity .3s linear}.hide_content{max-height:0;opacity:0}.show_content{max-height:100%;opacity:1;overflow-y:scroll}.show_content::-webkit-scrollbar{height:5px;width:5px}.show_content::-webkit-scrollbar-thumb{background:var(--medium);border-radius:12px!important}.show_content::-webkit-scrollbar-thumb:hover{background:var(--medium)!important}.source_tag{align-self:stretch;display:flex}.toolbar_source_update,.toolbar_tag_title{color:var(--dark);font-size:12px;font-style:normal;font-weight:400;line-height:normal}.tag_display{align-items:flex-start;display:flex;flex-direction:column;gap:var(--s,8px);justify-content:center}.copy_action{align-items:center;background:var(--white);border:1px solid var(--light);border-radius:6px;box-shadow:0 1px 2px 0 rgba(30,41,59,.1);color:var(--dark);cursor:pointer;display:flex;flex-direction:row;font-size:12px;font-style:normal;font-weight:500;gap:4px;line-height:normal;padding:4px 8px 4px 6px}.copy_action:hover,.copy_action:hover svg{color:var(--primary)!important}.title_container{display:flex;flex-direction:column;gap:4px}
|
|
167
|
+
.oip_source_card_collapse{align-self:stretch;border:1px solid var(--light,#dbdef0);border-radius:8px;cursor:pointer;display:flex;flex-direction:column;overflow:hidden;padding:8px 8px 8px 16px;transition:gap .3s linear,max-height .3s linear,background-color .3s linear,padding .3s linear}.oip_source_card_collapse:hover .header>svg{color:var(--primary)!important}.oip_source_card_collapse.close{background-color:var(--white,#fff);gap:0;max-height:110px}.oip_source_card_collapse.open{background-color:var(--demi-fond);gap:16px;max-height:800px;padding:8px 8px 16px 16px}.icon_open{transition:transform .3s}.icon_rotate{transform:rotateX(180deg)}.source_card_header{align-items:center;align-self:stretch;display:flex;flex-direction:row;gap:8px;justify-content:space-between}.source_title{font-family:Figtree;font-size:14px;font-style:normal;font-weight:700;line-height:160%}.source_content{display:flex;flex-direction:column;gap:16px;margin-right:-6px;padding-right:4px;transition:max-height .3s linear,opacity .3s linear}.hide_content{max-height:0;opacity:0}.show_content{max-height:100%;opacity:1;overflow-y:scroll}.show_content::-webkit-scrollbar{height:5px;width:5px}.show_content::-webkit-scrollbar-thumb{background:var(--medium);border-radius:12px!important}.show_content::-webkit-scrollbar-thumb:hover{background:var(--medium)!important}.source_tag{align-self:stretch;display:flex}.toolbar_source_update,.toolbar_tag_title{color:var(--dark);font-size:12px;font-style:normal;font-weight:400;line-height:normal}.tag_display{align-items:flex-start;display:flex;flex-direction:column;gap:var(--s,8px);justify-content:center}.copy_action{align-items:center;background:var(--white);border:1px solid var(--light);border-radius:6px;box-shadow:0 1px 2px 0 rgba(30,41,59,.1);color:var(--dark);cursor:pointer;display:flex;flex-direction:row;font-size:12px;font-style:normal;font-weight:500;gap:4px;line-height:normal;padding:4px 8px 4px 6px;white-space:nowrap}.copy_action:hover,.copy_action:hover svg{color:var(--primary)!important}.title_container{display:flex;flex-direction:column;gap:4px}
|
|
148
168
|
</style>
|
|
@@ -25,6 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
sourceOpen: import("vue").Ref<boolean>;
|
|
26
26
|
copy: () => void;
|
|
27
27
|
getCountryName: import("vue").ComputedRef<string>;
|
|
28
|
+
langData: import("vue").Ref<any>;
|
|
28
29
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "copyTitle"[], "copyTitle", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
30
|
sourceTitle: {
|
|
30
31
|
type: StringConstructor;
|
|
@@ -178,14 +178,25 @@
|
|
|
178
178
|
</tbody>
|
|
179
179
|
</table>
|
|
180
180
|
<div v-if="finalTable.length === 0" class="empty_table">
|
|
181
|
-
<arg-no-data
|
|
181
|
+
<arg-no-data
|
|
182
|
+
:text="
|
|
183
|
+
noDataValues !== null ? noDataValues[0] : langData?.emptyTitle
|
|
184
|
+
"
|
|
185
|
+
:sub-text="
|
|
186
|
+
noDataValues !== null ? noDataValues[1] : langData?.emptySub
|
|
187
|
+
"
|
|
188
|
+
/>
|
|
182
189
|
</div>
|
|
183
190
|
<div v-else-if="loadingData" class="empty_table">
|
|
184
191
|
<arg-tekkare-loader v-if="loaderType === 'tekkare'" />
|
|
185
192
|
<arg-data-loader
|
|
186
193
|
v-else
|
|
187
|
-
:text="
|
|
188
|
-
|
|
194
|
+
:text="
|
|
195
|
+
loaderValues !== null ? loaderValues[0] : langData?.loadingTitle
|
|
196
|
+
"
|
|
197
|
+
:sub-text="
|
|
198
|
+
loaderValues !== null ? loaderValues[1] : langData?.loadingSub
|
|
199
|
+
"
|
|
189
200
|
/>
|
|
190
201
|
</div>
|
|
191
202
|
<div
|
|
@@ -245,7 +256,7 @@
|
|
|
245
256
|
btn-style="skeleton"
|
|
246
257
|
prefix-icon="Table"
|
|
247
258
|
@click="showFull = !showFull"
|
|
248
|
-
>{{ showFull ?
|
|
259
|
+
>{{ showFull ? langData?.page : langData?.full }}</arg-btn
|
|
249
260
|
>
|
|
250
261
|
</div>
|
|
251
262
|
</div>
|
|
@@ -265,7 +276,8 @@ import {
|
|
|
265
276
|
ref,
|
|
266
277
|
computed,
|
|
267
278
|
watch,
|
|
268
|
-
defineComponent
|
|
279
|
+
defineComponent,
|
|
280
|
+
onBeforeMount
|
|
269
281
|
} from "vue";
|
|
270
282
|
export default defineComponent({
|
|
271
283
|
name: "argTable",
|
|
@@ -329,14 +341,11 @@ export default defineComponent({
|
|
|
329
341
|
},
|
|
330
342
|
noDataValues: {
|
|
331
343
|
type: Array,
|
|
332
|
-
default: () =>
|
|
333
|
-
"No content found for your search.",
|
|
334
|
-
"Change or empty your search."
|
|
335
|
-
]
|
|
344
|
+
default: () => null
|
|
336
345
|
},
|
|
337
346
|
loaderValues: {
|
|
338
347
|
type: Array,
|
|
339
|
-
default: () =>
|
|
348
|
+
default: () => null
|
|
340
349
|
},
|
|
341
350
|
loadingData: {
|
|
342
351
|
type: Boolean,
|
|
@@ -370,7 +379,7 @@ export default defineComponent({
|
|
|
370
379
|
type: String,
|
|
371
380
|
default: "en",
|
|
372
381
|
validator: (value) => {
|
|
373
|
-
return ["en", "fr", "es"].includes(value);
|
|
382
|
+
return ["en", "fr", "es", "jp"].includes(value);
|
|
374
383
|
}
|
|
375
384
|
},
|
|
376
385
|
customPlaceholder: {
|
|
@@ -399,6 +408,25 @@ export default defineComponent({
|
|
|
399
408
|
const hasReadMore = ref([]);
|
|
400
409
|
const tableKey = ref(0);
|
|
401
410
|
const cropKey = ref(0);
|
|
411
|
+
const langData = ref(null);
|
|
412
|
+
async function setLang() {
|
|
413
|
+
const jsonFiles = import.meta.glob("./locales/*.json");
|
|
414
|
+
for (const path in jsonFiles) {
|
|
415
|
+
if (path.split("/")[2].includes(props.lang)) {
|
|
416
|
+
const json = await jsonFiles[path]();
|
|
417
|
+
langData.value = json.table;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
onBeforeMount(async () => {
|
|
422
|
+
setLang();
|
|
423
|
+
});
|
|
424
|
+
watch(
|
|
425
|
+
() => props.lang,
|
|
426
|
+
() => {
|
|
427
|
+
setLang();
|
|
428
|
+
}
|
|
429
|
+
);
|
|
402
430
|
const alternateColor = computed(() => {
|
|
403
431
|
return props.whiteLines === null ? true : false;
|
|
404
432
|
});
|
|
@@ -680,16 +708,16 @@ export default defineComponent({
|
|
|
680
708
|
if (props.customPlaceholder !== null) {
|
|
681
709
|
return props.customPlaceholder;
|
|
682
710
|
} else if (props.searchColumns !== null) {
|
|
683
|
-
let columnNames = `${
|
|
711
|
+
let columnNames = `${langData.value?.searchBy} ${props.heads[props.searchColumns[0]]}`;
|
|
684
712
|
for (let i = 1; i < props.searchColumns.length; i++) {
|
|
685
713
|
if (i === props.searchColumns.length - 1) {
|
|
686
|
-
columnNames += ` ${
|
|
714
|
+
columnNames += ` ${langData.value?.or} ${props.heads[props.searchColumns[i]]}...`;
|
|
687
715
|
} else
|
|
688
716
|
columnNames += `, ${props.heads[props.searchColumns[i]]}`;
|
|
689
717
|
}
|
|
690
718
|
return columnNames;
|
|
691
719
|
} else
|
|
692
|
-
return
|
|
720
|
+
return langData.value?.searchAll;
|
|
693
721
|
});
|
|
694
722
|
getColumnTypes();
|
|
695
723
|
dataValues.value = fillTable.value;
|
|
@@ -130,11 +130,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
130
130
|
};
|
|
131
131
|
noDataValues: {
|
|
132
132
|
type: ArrayConstructor;
|
|
133
|
-
default: () =>
|
|
133
|
+
default: () => null;
|
|
134
134
|
};
|
|
135
135
|
loaderValues: {
|
|
136
136
|
type: ArrayConstructor;
|
|
137
|
-
default: () =>
|
|
137
|
+
default: () => null;
|
|
138
138
|
};
|
|
139
139
|
loadingData: {
|
|
140
140
|
type: BooleanConstructor;
|
|
@@ -209,7 +209,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
209
209
|
finalTable: import("vue").ComputedRef<any>;
|
|
210
210
|
resultCount: import("vue").ComputedRef<any>;
|
|
211
211
|
totalPages: import("vue").ComputedRef<number>;
|
|
212
|
-
getPlaceHolder: import("vue").ComputedRef<
|
|
212
|
+
getPlaceHolder: import("vue").ComputedRef<any>;
|
|
213
213
|
getHeight: import("vue").ComputedRef<string>;
|
|
214
214
|
sendSearch: () => void;
|
|
215
215
|
toggleCrop: import("vue").Ref<any>;
|
|
@@ -349,11 +349,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
349
349
|
};
|
|
350
350
|
noDataValues: {
|
|
351
351
|
type: ArrayConstructor;
|
|
352
|
-
default: () =>
|
|
352
|
+
default: () => null;
|
|
353
353
|
};
|
|
354
354
|
loaderValues: {
|
|
355
355
|
type: ArrayConstructor;
|
|
356
|
-
default: () =>
|
|
356
|
+
default: () => null;
|
|
357
357
|
};
|
|
358
358
|
loadingData: {
|
|
359
359
|
type: BooleanConstructor;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<slot name="Text" />
|
|
11
11
|
</div>
|
|
12
12
|
<div v-if="haveClose" class="tip_action" @click="displayTip = false">
|
|
13
|
-
{{
|
|
13
|
+
{{ langData?.close }}
|
|
14
14
|
</div>
|
|
15
15
|
<div
|
|
16
16
|
v-else-if="haveMore"
|
|
@@ -23,19 +23,7 @@
|
|
|
23
23
|
:class="['action-icon', showMore ? 'icon-rotate' : '']"
|
|
24
24
|
/>
|
|
25
25
|
<p>
|
|
26
|
-
{{
|
|
27
|
-
tipsLang === "fr"
|
|
28
|
-
? showMore
|
|
29
|
-
? "Réduire"
|
|
30
|
-
: "En savoir plus"
|
|
31
|
-
: tipsLang === "es"
|
|
32
|
-
? showMore
|
|
33
|
-
? "Ocultar"
|
|
34
|
-
: "Saber más"
|
|
35
|
-
: showMore
|
|
36
|
-
? "Hide"
|
|
37
|
-
: "Learn more"
|
|
38
|
-
}}
|
|
26
|
+
{{ showMore ? langData?.more : langData?.hide }}
|
|
39
27
|
</p>
|
|
40
28
|
</div>
|
|
41
29
|
</div>
|
|
@@ -48,7 +36,9 @@
|
|
|
48
36
|
<script>
|
|
49
37
|
import {
|
|
50
38
|
ref,
|
|
51
|
-
defineComponent
|
|
39
|
+
defineComponent,
|
|
40
|
+
onBeforeMount,
|
|
41
|
+
watch
|
|
52
42
|
} from "vue";
|
|
53
43
|
import argEmoji from "./argEmoji.vue";
|
|
54
44
|
import argIcon from "./argIcon.vue";
|
|
@@ -68,7 +58,7 @@ export default defineComponent({
|
|
|
68
58
|
type: String,
|
|
69
59
|
default: "en",
|
|
70
60
|
validator: (value) => {
|
|
71
|
-
return ["en", "fr", "es"].includes(value);
|
|
61
|
+
return ["en", "fr", "es", "jp"].includes(value);
|
|
72
62
|
}
|
|
73
63
|
},
|
|
74
64
|
defaultOpen: {
|
|
@@ -79,9 +69,29 @@ export default defineComponent({
|
|
|
79
69
|
setup(props, { emit }) {
|
|
80
70
|
const displayTip = ref(true);
|
|
81
71
|
const showMore = ref(props.defaultOpen);
|
|
72
|
+
const langData = ref(null);
|
|
73
|
+
async function setLang() {
|
|
74
|
+
const jsonFiles = import.meta.glob("./locales/*.json");
|
|
75
|
+
for (const path in jsonFiles) {
|
|
76
|
+
if (path.split("/")[2].includes(props.tipsLang)) {
|
|
77
|
+
const json = await jsonFiles[path]();
|
|
78
|
+
langData.value = json.tips;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
onBeforeMount(async () => {
|
|
83
|
+
setLang();
|
|
84
|
+
});
|
|
85
|
+
watch(
|
|
86
|
+
() => props.tipsLang,
|
|
87
|
+
() => {
|
|
88
|
+
setLang();
|
|
89
|
+
}
|
|
90
|
+
);
|
|
82
91
|
return {
|
|
83
92
|
displayTip,
|
|
84
|
-
showMore
|
|
93
|
+
showMore,
|
|
94
|
+
langData
|
|
85
95
|
};
|
|
86
96
|
}
|
|
87
97
|
});
|
|
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
tipsLang: {
|
|
11
11
|
type: StringConstructor;
|
|
12
12
|
default: string;
|
|
13
|
-
validator: (value:
|
|
13
|
+
validator: (value: string) => boolean;
|
|
14
14
|
};
|
|
15
15
|
defaultOpen: {
|
|
16
16
|
type: BooleanConstructor;
|
|
@@ -19,6 +19,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
}, {
|
|
20
20
|
displayTip: import("vue").Ref<boolean>;
|
|
21
21
|
showMore: import("vue").Ref<boolean>;
|
|
22
|
+
langData: import("vue").Ref<any>;
|
|
22
23
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
24
|
haveClose: {
|
|
24
25
|
type: BooleanConstructor;
|
|
@@ -31,7 +32,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
32
|
tipsLang: {
|
|
32
33
|
type: StringConstructor;
|
|
33
34
|
default: string;
|
|
34
|
-
validator: (value:
|
|
35
|
+
validator: (value: string) => boolean;
|
|
35
36
|
};
|
|
36
37
|
defaultOpen: {
|
|
37
38
|
type: BooleanConstructor;
|
|
@@ -3,13 +3,7 @@
|
|
|
3
3
|
<p class="oip_heading">Sources</p>
|
|
4
4
|
<div class="source_legal">
|
|
5
5
|
<p>
|
|
6
|
-
{{
|
|
7
|
-
lang === "fr"
|
|
8
|
-
? "Pour être conforme à l’"
|
|
9
|
-
: lang === "es"
|
|
10
|
-
? "Para cumplir con "
|
|
11
|
-
: "To comply with the"
|
|
12
|
-
}}
|
|
6
|
+
{{ langData?.comply }}
|
|
13
7
|
<span class="open_data_link"
|
|
14
8
|
><a
|
|
15
9
|
:href="
|
|
@@ -22,22 +16,10 @@
|
|
|
22
16
|
Open Data License 2.0</a
|
|
23
17
|
></span
|
|
24
18
|
>,
|
|
25
|
-
{{
|
|
26
|
-
lang === "fr"
|
|
27
|
-
? "vous devez annotez vos documents avec les sources utilisées."
|
|
28
|
-
: lang === "es"
|
|
29
|
-
? "debe enumerar en sus informes las fuentes utilizadas."
|
|
30
|
-
: "you must list in your reports the sources used."
|
|
31
|
-
}}
|
|
19
|
+
{{ langData?.list }}
|
|
32
20
|
</p>
|
|
33
21
|
<p v-if="showCopy">
|
|
34
|
-
{{
|
|
35
|
-
lang === "fr"
|
|
36
|
-
? "Le bouton “Copier” est prévu pour faciliter cette démarche."
|
|
37
|
-
: lang === "es"
|
|
38
|
-
? "El botón ”Copiar” facilita este proceso."
|
|
39
|
-
: "The ”Copy” button is provided to ease this process."
|
|
40
|
-
}}
|
|
22
|
+
{{ langData?.copy }}
|
|
41
23
|
</p>
|
|
42
24
|
</div>
|
|
43
25
|
<div class="toolbar_sources_display">
|
|
@@ -48,6 +30,9 @@
|
|
|
48
30
|
|
|
49
31
|
<script>
|
|
50
32
|
import {
|
|
33
|
+
ref,
|
|
34
|
+
watch,
|
|
35
|
+
onBeforeMount,
|
|
51
36
|
defineComponent
|
|
52
37
|
} from "vue";
|
|
53
38
|
export default defineComponent({
|
|
@@ -57,13 +42,35 @@ export default defineComponent({
|
|
|
57
42
|
type: String,
|
|
58
43
|
default: "en",
|
|
59
44
|
validator: (value) => {
|
|
60
|
-
return ["en", "fr", "es"].includes(value);
|
|
45
|
+
return ["en", "fr", "es", "jp"].includes(value);
|
|
61
46
|
}
|
|
62
47
|
},
|
|
63
48
|
showCopy: {
|
|
64
49
|
type: Boolean,
|
|
65
50
|
default: true
|
|
66
51
|
}
|
|
52
|
+
},
|
|
53
|
+
setup(props) {
|
|
54
|
+
const langData = ref(null);
|
|
55
|
+
async function setLang() {
|
|
56
|
+
const jsonFiles = import.meta.glob("./locales/*.json");
|
|
57
|
+
for (const path in jsonFiles) {
|
|
58
|
+
if (path.split("/")[2].includes(props.lang)) {
|
|
59
|
+
const json = await jsonFiles[path]();
|
|
60
|
+
langData.value = json.toolbarSource;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
onBeforeMount(async () => {
|
|
65
|
+
setLang();
|
|
66
|
+
});
|
|
67
|
+
watch(
|
|
68
|
+
() => props.lang,
|
|
69
|
+
() => {
|
|
70
|
+
setLang();
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
return { langData };
|
|
67
74
|
}
|
|
68
75
|
});
|
|
69
76
|
</script>
|
|
@@ -8,7 +8,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
type: BooleanConstructor;
|
|
9
9
|
default: boolean;
|
|
10
10
|
};
|
|
11
|
-
},
|
|
11
|
+
}, {
|
|
12
|
+
langData: import("vue").Ref<any>;
|
|
13
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
14
|
lang: {
|
|
13
15
|
type: StringConstructor;
|
|
14
16
|
default: string;
|
|
@@ -7,5 +7,184 @@
|
|
|
7
7
|
"save-analysis": "Save and continue",
|
|
8
8
|
"download": "Download all",
|
|
9
9
|
"close": "Close"
|
|
10
|
-
}
|
|
10
|
+
},
|
|
11
|
+
"chapters": "Chapters",
|
|
12
|
+
"complex": {
|
|
13
|
+
"quick": "Quick selection",
|
|
14
|
+
"current": "Current selection",
|
|
15
|
+
"empty": "No selection",
|
|
16
|
+
"loading": "Loading...",
|
|
17
|
+
"wait": "Please wait",
|
|
18
|
+
"search": "Search options...",
|
|
19
|
+
"searchSelect": "Search selected options...",
|
|
20
|
+
"max": "Maximum selection reached",
|
|
21
|
+
"notFound": "No content was found",
|
|
22
|
+
"custom": "Custom selection",
|
|
23
|
+
"orCustom": "Or custom selection",
|
|
24
|
+
"noSelection": "No selection yet",
|
|
25
|
+
"all": "Select all",
|
|
26
|
+
"clear": "Clear"
|
|
27
|
+
},
|
|
28
|
+
"dropdown": {
|
|
29
|
+
"empty": "No selection",
|
|
30
|
+
"loading": "Loading...",
|
|
31
|
+
"wait": "Please wait",
|
|
32
|
+
"search": "Search options...",
|
|
33
|
+
"notFound": "No content was found"
|
|
34
|
+
},
|
|
35
|
+
"multiple": {
|
|
36
|
+
"empty": "No selection",
|
|
37
|
+
"loading": "Loading...",
|
|
38
|
+
"wait": "Please wait",
|
|
39
|
+
"search": "Search options...",
|
|
40
|
+
"notFound": "No content was found",
|
|
41
|
+
"all": "All"
|
|
42
|
+
},
|
|
43
|
+
"search": {
|
|
44
|
+
"loading": "Loading more suggestions",
|
|
45
|
+
"empty": "No suggestions were found"
|
|
46
|
+
},
|
|
47
|
+
"date": {
|
|
48
|
+
"compact": {
|
|
49
|
+
"jan": "Jan.",
|
|
50
|
+
"feb": "Feb.",
|
|
51
|
+
"mar": "Mar.",
|
|
52
|
+
"apr": "Apr.",
|
|
53
|
+
"may": "May",
|
|
54
|
+
"jun": "Jun.",
|
|
55
|
+
"jul": "Jul.",
|
|
56
|
+
"aug": "Aug.",
|
|
57
|
+
"sep": "Sep.",
|
|
58
|
+
"oct": "Oct.",
|
|
59
|
+
"nov": "Nov.",
|
|
60
|
+
"dec": "Dec."
|
|
61
|
+
},
|
|
62
|
+
"full": {
|
|
63
|
+
"jan": "January",
|
|
64
|
+
"feb": "February",
|
|
65
|
+
"mar": "March",
|
|
66
|
+
"apr": "April",
|
|
67
|
+
"may": "May",
|
|
68
|
+
"jun": "June",
|
|
69
|
+
"jul": "July",
|
|
70
|
+
"aug": "August",
|
|
71
|
+
"sep": "September",
|
|
72
|
+
"oct": "October",
|
|
73
|
+
"nov": "November",
|
|
74
|
+
"dec": "December"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"tips": {
|
|
78
|
+
"close": "Close",
|
|
79
|
+
"more": "Learn more",
|
|
80
|
+
"hide": "Hide"
|
|
81
|
+
},
|
|
82
|
+
"sourceCollapse": {
|
|
83
|
+
"copySource": "Copy",
|
|
84
|
+
"sector": "Sector"
|
|
85
|
+
},
|
|
86
|
+
|
|
87
|
+
"backOIP": "Back to OIP",
|
|
88
|
+
"footer": {
|
|
89
|
+
"rights": "All rights reserved",
|
|
90
|
+
"terms": "Terms of use"
|
|
91
|
+
},
|
|
92
|
+
"sidebar": {
|
|
93
|
+
"home": "Home",
|
|
94
|
+
"open": "Open sidebar"
|
|
95
|
+
},
|
|
96
|
+
"map": {
|
|
97
|
+
"dep": "Departmental scale",
|
|
98
|
+
"reg": "Regional scale",
|
|
99
|
+
"return": "Return to regions"
|
|
100
|
+
},
|
|
101
|
+
"homeBlocks": {
|
|
102
|
+
"all": "All themes",
|
|
103
|
+
"countries": "Countries",
|
|
104
|
+
"global": "Global themes",
|
|
105
|
+
"search": "Search...",
|
|
106
|
+
"empty1": "No applications found",
|
|
107
|
+
"empty2": "No applications were found matching your search. Try changing your search terms or contact us fore more assistance."
|
|
108
|
+
},
|
|
109
|
+
"selectedBlock": {
|
|
110
|
+
"title": "Select a theme",
|
|
111
|
+
"subtitle": "Select a theme to display the analyses available within it."
|
|
112
|
+
},
|
|
113
|
+
"noScope": {
|
|
114
|
+
"message": "You need to select your scope to view any results or data. Please choose one of the options below to proceed.",
|
|
115
|
+
"exist": "Apply an existing scope",
|
|
116
|
+
"apply": "Apply scope",
|
|
117
|
+
"new": "+ New scope",
|
|
118
|
+
"or": "or"
|
|
119
|
+
},
|
|
120
|
+
"noSavedScope": {
|
|
121
|
+
"main": "You don't have Scopes saved yet. Here's how to create a new scope: ",
|
|
122
|
+
"step1": "Switch to “New Scope Criteria”",
|
|
123
|
+
"step2": "Select all the criteria you need",
|
|
124
|
+
"step3": "Click on “Save and continue” at the top right of your screen",
|
|
125
|
+
"step4": "Fill the form with the information you need and click on “Save scope and continue”",
|
|
126
|
+
"end": "And that’s it! Your scope will be saved and you will be able to recover it next time you connect."
|
|
127
|
+
},
|
|
128
|
+
"scopeChange": {
|
|
129
|
+
"save": "Save scope",
|
|
130
|
+
"new": "New scope",
|
|
131
|
+
"change": "Change scope",
|
|
132
|
+
"apply": "Apply scope"
|
|
133
|
+
},
|
|
134
|
+
"scopeIndic": {
|
|
135
|
+
"apply": "Scope applied:",
|
|
136
|
+
"custom": "Custom"
|
|
137
|
+
},
|
|
138
|
+
"myScope": "My scope",
|
|
139
|
+
"scopeCriteria": {
|
|
140
|
+
"tabs": {
|
|
141
|
+
"new": "New scope criteria",
|
|
142
|
+
"saved": "Apply an existing scope"
|
|
143
|
+
},
|
|
144
|
+
"title": "Scope criteria",
|
|
145
|
+
"saved": "Your saved scopes"
|
|
146
|
+
},
|
|
147
|
+
"scopeManage": {
|
|
148
|
+
"title": "Manage my scopes",
|
|
149
|
+
"del": "Delete",
|
|
150
|
+
"created": "Created the ",
|
|
151
|
+
"criteria": "Criteria",
|
|
152
|
+
"close": "Close"
|
|
153
|
+
},
|
|
154
|
+
"scopeCreate": {
|
|
155
|
+
"title": "Save my scope",
|
|
156
|
+
"myscope": "My scope",
|
|
157
|
+
"name": "Scope name",
|
|
158
|
+
"namePlaceholder": "Name of your scope e.g. Benchmark 2023",
|
|
159
|
+
"nameError": "Name is required to save your scope!",
|
|
160
|
+
"descr": "Describe your scope (optional)",
|
|
161
|
+
"descrPlaceholder": "Your description here",
|
|
162
|
+
"crit": "Criteria",
|
|
163
|
+
"cancel": "Cancel",
|
|
164
|
+
"save": "Save scope and continue"
|
|
165
|
+
},
|
|
166
|
+
"toolbarSource": {
|
|
167
|
+
"comply": "To comply with the ",
|
|
168
|
+
"list": "You must list in your reports the sources used.",
|
|
169
|
+
"copy": "The ”Copy” button is provided to ease this process."
|
|
170
|
+
},
|
|
171
|
+
"filterCard": {
|
|
172
|
+
"title": "Filters",
|
|
173
|
+
"save": "Save scope",
|
|
174
|
+
"clear": "Clear all",
|
|
175
|
+
"hide": "Hide",
|
|
176
|
+
"show": "Show"
|
|
177
|
+
},
|
|
178
|
+
"table": {
|
|
179
|
+
"page": "Show with pagination",
|
|
180
|
+
"full": "Show full table",
|
|
181
|
+
"searchBy": "Search by",
|
|
182
|
+
"or": "or",
|
|
183
|
+
"searchAll": "Search all...",
|
|
184
|
+
"loadingTitle": "Loading...",
|
|
185
|
+
"loadingSub": "Please wait",
|
|
186
|
+
"emptyTitle": "No content found for your search",
|
|
187
|
+
"emptySub": "Change or empty your search"
|
|
188
|
+
},
|
|
189
|
+
"close": "Close"
|
|
11
190
|
}
|