@tekkare/auriga 0.1.137 → 0.1.139
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/argExportXLSX.vue +1 -1
- package/dist/runtime/components/argModal.vue +25 -0
- package/dist/runtime/components/argModal.vue.d.ts +14 -0
- package/dist/runtime/components/argSourceCollapse.vue +11 -12
- package/dist/runtime/components/argToolbarSources.vue +5 -1
- package/dist/runtime/components/argToolbarSources.vue.d.ts +9 -0
- package/dist/runtime/typings/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -356,5 +356,5 @@ export default defineComponent({
|
|
|
356
356
|
</script>
|
|
357
357
|
|
|
358
358
|
<style scoped>
|
|
359
|
-
.modal{align-items:center;background-color:rgba(0,0,0,.2);display:flex;height:
|
|
359
|
+
.modal{align-items:center;background-color:rgba(0,0,0,.2);display:flex;height:100vh;justify-content:center;left:0;overflow:auto;position:fixed;top:0;width:100%;z-index:100}.modal-content{background-color:#fff;border-radius:8px;display:flex;flex-direction:column;font-size:16px;font-weight:400;gap:24px;line-height:160%;padding:24px;width:420px}.modal-content,.modal_title{color:var(--Base-Darkest,#1e293b);font-family:Figtree;font-style:normal}.modal_title{font-size:20px;font-weight:900;line-height:normal}
|
|
360
360
|
</style>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="['arg_modal_container', open ? 'arg_modal_open' : '']">
|
|
3
|
+
<div v-show="open" class="arg_modal">
|
|
4
|
+
<slot />
|
|
5
|
+
</div>
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
import {
|
|
11
|
+
defineComponent
|
|
12
|
+
} from "vue";
|
|
13
|
+
export default defineComponent({
|
|
14
|
+
name: "argModal",
|
|
15
|
+
props: {
|
|
16
|
+
open: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: false
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
</script>
|
|
23
|
+
<style scoped>
|
|
24
|
+
.arg_modal_container{align-items:center;background-color:transparent;bottom:0;display:flex;height:0;justify-content:center;left:0;opacity:0;position:fixed;transition:all .35s ease;width:0}.arg_modal_open{background-color:rgba(0,0,0,.4);height:100vh;opacity:1;width:100%;z-index:99}.arg_modal{align-items:flex-start;background:var(--base-white,#fff);border-radius:var(--m,16px);display:flex;flex-direction:column;flex-shrink:0;max-height:calc(100% - 48px);max-width:600px;padding:24px}
|
|
25
|
+
</style>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
open: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
open: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
}>>, {
|
|
12
|
+
open: boolean;
|
|
13
|
+
}, {}>;
|
|
14
|
+
export default _default;
|
|
@@ -4,14 +4,22 @@
|
|
|
4
4
|
@click="sourceOpen = !sourceOpen"
|
|
5
5
|
>
|
|
6
6
|
<div class="source_card_header">
|
|
7
|
-
<div class="oip_row v-
|
|
7
|
+
<div class="oip_row v-start gap-8 header">
|
|
8
8
|
<arg-icon
|
|
9
9
|
name="CaretDown"
|
|
10
10
|
color="var(--dark)"
|
|
11
11
|
size="16"
|
|
12
12
|
:class="['icon_open', sourceOpen ? 'icon_rotate' : '']"
|
|
13
13
|
/>
|
|
14
|
-
<
|
|
14
|
+
<div class="title_container">
|
|
15
|
+
<arg-tags class="source_tag">
|
|
16
|
+
<div class="oip_row v-center gap-4">
|
|
17
|
+
<arg-flag :slug="sourceCountry.toLowerCase()" emoji height="10" />
|
|
18
|
+
<p>{{ sourceCountry }}</p>
|
|
19
|
+
</div>
|
|
20
|
+
</arg-tags>
|
|
21
|
+
<p class="source_title">{{ sourceTitle }}</p>
|
|
22
|
+
</div>
|
|
15
23
|
</div>
|
|
16
24
|
<div class="copy_action" @click.stop="copy()">
|
|
17
25
|
<arg-icon name="Copy" color="var(--cool-grey)" size="16" />
|
|
@@ -27,15 +35,6 @@
|
|
|
27
35
|
Source update in OIP: {{ sourceUpdate }}
|
|
28
36
|
</p> -->
|
|
29
37
|
<div class="oip_row v-start gap-16">
|
|
30
|
-
<div class="tag_display">
|
|
31
|
-
<p class="toolbar_tag_title">Country</p>
|
|
32
|
-
<arg-tags class="source_tag">
|
|
33
|
-
<div class="oip_row v-center gap-4">
|
|
34
|
-
<arg-flag :slug="sourceCountry.toLowerCase()" emoji height="10" />
|
|
35
|
-
<p>{{ sourceCountry }}</p>
|
|
36
|
-
</div>
|
|
37
|
-
</arg-tags>
|
|
38
|
-
</div>
|
|
39
38
|
<div class="tag_display">
|
|
40
39
|
<p class="toolbar_tag_title">Sector</p>
|
|
41
40
|
<arg-tags>{{ sourceSector }}</arg-tags>
|
|
@@ -122,5 +121,5 @@ export default defineComponent({
|
|
|
122
121
|
</script>
|
|
123
122
|
|
|
124
123
|
<style scoped>
|
|
125
|
-
.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:
|
|
124
|
+
.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:88px}.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}
|
|
126
125
|
</style>
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
: "you must list in your reports the sources used."
|
|
31
31
|
}}
|
|
32
32
|
</p>
|
|
33
|
-
<p>
|
|
33
|
+
<p v-if="showCopy">
|
|
34
34
|
{{
|
|
35
35
|
lang === "fr"
|
|
36
36
|
? "Le bouton “Copier” est prévu pour faciliter cette démarche."
|
|
@@ -59,6 +59,10 @@ export default defineComponent({
|
|
|
59
59
|
validator: (value) => {
|
|
60
60
|
return ["en", "fr", "es"].includes(value);
|
|
61
61
|
}
|
|
62
|
+
},
|
|
63
|
+
showCopy: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: true
|
|
62
66
|
}
|
|
63
67
|
}
|
|
64
68
|
});
|
|
@@ -4,13 +4,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4
4
|
default: string;
|
|
5
5
|
validator: (value: string) => boolean;
|
|
6
6
|
};
|
|
7
|
+
showCopy: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
7
11
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
12
|
lang: {
|
|
9
13
|
type: StringConstructor;
|
|
10
14
|
default: string;
|
|
11
15
|
validator: (value: string) => boolean;
|
|
12
16
|
};
|
|
17
|
+
showCopy: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
13
21
|
}>>, {
|
|
14
22
|
lang: string;
|
|
23
|
+
showCopy: boolean;
|
|
15
24
|
}, {}>;
|
|
16
25
|
export default _default;
|