@tekkare/auriga 0.1.88 → 0.1.90

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.1.88"
7
+ "version": "0.1.90"
8
8
  }
@@ -4,7 +4,7 @@
4
4
  @click="sourceOpen = !sourceOpen"
5
5
  >
6
6
  <div class="source_card_header">
7
- <div class="oip_row v-center gap-8">
7
+ <div class="oip_row v-center gap-8 header">
8
8
  <arg-icon
9
9
  name="CaretDown"
10
10
  color="var(--dark)"
@@ -15,7 +15,7 @@
15
15
  </div>
16
16
  <div class="copy_action" @click.stop="copy()">
17
17
  <arg-icon name="Copy" color="var(--cool-grey)" size="16" />
18
- <p>Copy</p>
18
+ <p>{{ lang === "fr" ? "Copier" : "Copy" }}</p>
19
19
  </div>
20
20
  </div>
21
21
  <div
@@ -75,9 +75,16 @@ export default defineComponent({
75
75
  defaultOpen: {
76
76
  type: Boolean,
77
77
  default: false
78
+ },
79
+ lang: {
80
+ type: String,
81
+ default: "en",
82
+ validator: (value) => {
83
+ return ["en", "fr"].includes(value);
84
+ }
78
85
  }
79
86
  },
80
- emits: ["onClick", "copyTitle"],
87
+ emits: ["copyTitle"],
81
88
  setup(props, { emit }) {
82
89
  const sourceOpen = ref(false);
83
90
  function closeSource() {
@@ -113,5 +120,5 @@ export default defineComponent({
113
120
  </script>
114
121
 
115
122
  <style scoped>
116
- .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 svg{color:var(--primary)!important}.oip_source_card_collapse.close{background-color:var(--white,#fff);gap:0;max-height:40px}.oip_source_card_collapse.open{background-color:var(--demi-fond);gap:16px;max-height:500px;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;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}
123
+ .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:40px}.oip_source_card_collapse.open{background-color:var(--demi-fond);gap:16px;max-height:500px;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;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}
117
124
  </style>
@@ -15,11 +15,16 @@ declare const _default: import("vue").DefineComponent<{
15
15
  type: BooleanConstructor;
16
16
  default: boolean;
17
17
  };
18
+ lang: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ validator: (value: string) => boolean;
22
+ };
18
23
  }, {
19
24
  closeSource: () => void;
20
25
  sourceOpen: import("vue").Ref<boolean>;
21
26
  copy: () => void;
22
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClick" | "copyTitle")[], "onClick" | "copyTitle", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "copyTitle"[], "copyTitle", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
28
  sourceTitle: {
24
29
  type: StringConstructor;
25
30
  required: true;
@@ -36,10 +41,15 @@ declare const _default: import("vue").DefineComponent<{
36
41
  type: BooleanConstructor;
37
42
  default: boolean;
38
43
  };
44
+ lang: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ validator: (value: string) => boolean;
48
+ };
39
49
  }>> & {
40
- onOnClick?: ((...args: any[]) => any) | undefined;
41
50
  onCopyTitle?: ((...args: any[]) => any) | undefined;
42
51
  }, {
52
+ lang: string;
43
53
  sourceCountry: string;
44
54
  sourceSector: string;
45
55
  defaultOpen: boolean;
@@ -4,8 +4,17 @@
4
4
  <div>
5
5
  <p>
6
6
  {{ lang === "fr" ? "Pour être conforme à l’" : "To comply with the" }}
7
- <span class="open_data_link" @click="openPDF()"
8
- >Open Data License 2.0</span
7
+ <span class="open_data_link"
8
+ ><a
9
+ :href="
10
+ lang === 'fr'
11
+ ? 'https://rcd-media.com/tekkare/documents/Licence+Open+Data+2.0.pdf'
12
+ : 'https://rcd-media.com/tekkare/documents/Open+Licence+2.0.pdf'
13
+ "
14
+ target="_blank"
15
+ >
16
+ Open Data License 2.0</a
17
+ ></span
9
18
  >,
10
19
  {{
11
20
  lang === "fr"
@@ -41,13 +50,6 @@ export default defineComponent({
41
50
  return ["en", "fr"].includes(value);
42
51
  }
43
52
  }
44
- },
45
- emits: ["openPDF"],
46
- setup(props, { emit }) {
47
- function openPDF() {
48
- emit("openPDF");
49
- }
50
- return { openPDF };
51
53
  }
52
54
  });
53
55
  </script>
@@ -4,17 +4,13 @@ declare const _default: import("vue").DefineComponent<{
4
4
  default: string;
5
5
  validator: (value: string) => boolean;
6
6
  };
7
- }, {
8
- openPDF: () => void;
9
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "openPDF"[], "openPDF", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
7
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
8
  lang: {
11
9
  type: StringConstructor;
12
10
  default: string;
13
11
  validator: (value: string) => boolean;
14
12
  };
15
- }>> & {
16
- onOpenPDF?: ((...args: any[]) => any) | undefined;
17
- }, {
13
+ }>>, {
18
14
  lang: string;
19
15
  }, {}>;
20
16
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.1.88",
3
+ "version": "0.1.90",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",