@tekkare/auriga 0.1.87 → 0.1.89

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.87"
7
+ "version": "0.1.89"
8
8
  }
@@ -85,14 +85,18 @@ export default defineComponent({
85
85
  emits: ["onSelectLang", "update:Lang"],
86
86
  setup(props, { emit }) {
87
87
  const showLangOptions = ref(false);
88
- const selectedItem = ref({
89
- title: "Fran\xE7ais",
90
- iso: "fr",
91
- locale: "fr"
92
- });
88
+ const selectedItem = ref(
89
+ props.langs[props.langs.findIndex((a) => a.locale === props.default_locale)]
90
+ );
93
91
  onMounted(() => {
94
92
  selectedItem.value = props.langs[props.langs.findIndex((a) => a.locale === props.default_locale)];
95
93
  });
94
+ watch(
95
+ () => props.default_locale,
96
+ () => {
97
+ selectedItem.value = props.langs[props.langs.findIndex((a) => a.locale === props.default_locale)];
98
+ }
99
+ );
96
100
  watch(
97
101
  () => showLangOptions.value,
98
102
  () => {
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
25
25
  default: null;
26
26
  };
27
27
  }, {
28
- selectedItem: import("vue").Ref<any>;
28
+ selectedItem: import("vue").Ref<Object>;
29
29
  showLangOptions: import("vue").Ref<boolean>;
30
30
  selectLang: (item: any) => void;
31
31
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSelectLang" | "update:Lang")[], "onSelectLang" | "update:Lang", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -170,5 +170,5 @@ export default defineComponent({
170
170
  </script>
171
171
 
172
172
  <style scoped>
173
- .arg_scope_save{align-items:center;background-color:transparent;bottom:0;display:flex;height:0;justify-content:center;left:0;position:fixed;transition:all .5s ease;width:0}.arg_scope_save_open{background-color:rgba(0,0,0,.4);height:100%;width:100%;z-index:99}.arg_save_modal{align-items:flex-start;background:var(--white);border-radius:var(--m,8px);display:flex;flex-direction:column;flex-shrink:0;max-height:850px;max-width:640px;width:calc(100% - 164px)}.arg_save_header{border-bottom:1px solid #e5e7eb;justify-content:space-between}.arg_save_footer,.arg_save_header{align-items:center;align-self:stretch;display:flex;padding:24px}.arg_save_footer{border-top:1px solid #e5e7eb;gap:32px}.footer_action{align-self:stretch;display:flex;flex:1 1 0;width:50%}.arg_save_header>h1{font-size:20px;font-style:normal;font-weight:900;line-height:normal}.arg_save_body{align-items:flex-start;align-self:stretch;display:flex;flex-direction:column;gap:24px;padding:24px}.scope_criteria,textarea{align-self:stretch;border:1.5px solid var(--light);border-radius:8px;font-family:Figtree,sans-serif!important;height:110px;margin:5px 0;outline:none!important;padding:12px}.scope_criteria{align-items:flex-start;display:flex;flex-direction:row;gap:8px}textarea::-moz-placeholder{color:var(--medium);font-family:Figtree,sans-serif!important}textarea::placeholder{color:var(--medium);font-family:Figtree,sans-serif!important}.scope_name_input{max-width:100%;width:300px}.full_width{width:100%}.footer_action .footer_btn{align-self:stretch;justify-content:center;text-align:center;white-space:wrap;width:100%}.cursor-pointer{cursor:pointer!important}.oip_simple_input{border:1.5px solid var(--light);border-radius:8px;margin:5px 0;padding:12px;width:calc(100% - 24px)}.oip_simple_input::-moz-placeholder{color:var(--medium)}.oip_simple_input::placeholder{color:var(--medium)}.oip_simple_input,.oip_simple_input:focus-visible{outline:none!important}.oip_simple_input:hover,textarea:hover{border:1.5px solid rgba(33,118,255,.2)!important}.oip_simple_input:focus-within,textarea:focus-within{border:1.5px solid var(--primary)!important;box-shadow:0 0 0 4px rgba(33,118,255,.1)!important}.oip_required_input,.oip_required_input:hover{border-color:var(--system-alert)!important}.oip_error{color:var(--system-alert)}
173
+ .arg_scope_save{align-items:center;background-color:transparent;bottom:0;display:flex;height:0;justify-content:center;left:0;position:fixed;transition:all .5s ease;width:0}.arg_scope_save_open{background-color:rgba(0,0,0,.4);height:100%;width:100%;z-index:99}.arg_save_modal{align-items:flex-start;background:var(--white);border-radius:var(--m,8px);display:flex;flex-direction:column;flex-shrink:0;max-height:850px;max-width:640px;width:calc(100% - 164px)}.arg_save_header{border-bottom:1px solid #e5e7eb;justify-content:space-between}.arg_save_footer,.arg_save_header{align-items:center;align-self:stretch;display:flex;padding:24px}.arg_save_footer{border-top:1px solid #e5e7eb;gap:32px}.footer_action{align-self:stretch;display:flex;flex:1 1 0;width:50%}.arg_save_header>h1{font-size:20px;font-style:normal;font-weight:900;line-height:normal}.arg_save_body{align-items:flex-start;align-self:stretch;display:flex;flex-direction:column;gap:24px;padding:24px}.scope_criteria,textarea{align-self:stretch;border:1.5px solid var(--light);border-radius:8px;font-family:Figtree,sans-serif!important;height:110px;margin:5px 0;outline:none!important;padding:12px}.scope_criteria{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:wrap;gap:8px}textarea::-moz-placeholder{color:var(--medium);font-family:Figtree,sans-serif!important}textarea::placeholder{color:var(--medium);font-family:Figtree,sans-serif!important}.scope_name_input{max-width:100%;width:300px}.full_width{width:100%}.footer_action .footer_btn{align-self:stretch;justify-content:center;text-align:center;white-space:wrap;width:100%}.cursor-pointer{cursor:pointer!important}.oip_simple_input{border:1.5px solid var(--light);border-radius:8px;margin:5px 0;padding:12px;width:calc(100% - 24px)}.oip_simple_input::-moz-placeholder{color:var(--medium)}.oip_simple_input::placeholder{color:var(--medium)}.oip_simple_input,.oip_simple_input:focus-visible{outline:none!important}.oip_simple_input:hover,textarea:hover{border:1.5px solid rgba(33,118,255,.2)!important}.oip_simple_input:focus-within,textarea:focus-within{border:1.5px solid var(--primary)!important;box-shadow:0 0 0 4px rgba(33,118,255,.1)!important}.oip_required_input,.oip_required_input:hover{border-color:var(--system-alert)!important}.oip_error{color:var(--system-alert)}
174
174
  </style>
@@ -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() {
@@ -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.87",
3
+ "version": "0.1.89",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",