@tekkare/auriga 0.1.119 → 0.1.121

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.119"
7
+ "version": "0.1.121"
8
8
  }
@@ -6,7 +6,9 @@
6
6
  >
7
7
  <div
8
8
  :style="
9
- isDisplay === false || scopes.length === 0 ? 'display : none' : ''
9
+ isDisplay === false || (scopes.length === 0 && !showActions)
10
+ ? 'display : none'
11
+ : ''
10
12
  "
11
13
  class="scope_select_dropdown_block"
12
14
  >
@@ -114,6 +116,10 @@ export default defineComponent({
114
116
  clearMsg: {
115
117
  type: String,
116
118
  default: null
119
+ },
120
+ showActions: {
121
+ type: Boolean,
122
+ default: false
117
123
  }
118
124
  },
119
125
  emits: ["changeScope", "update:Scope", "onNewScope", "onClear"],
@@ -135,10 +141,10 @@ export default defineComponent({
135
141
  }
136
142
  );
137
143
  const getTitle = computed(() => {
138
- if (props.scopes.length > 0) {
144
+ if (props.scopes.length > 0 || props.scopes.length === 0 && props.showActions) {
139
145
  return props.lang === "en" ? "My scope" : props.lang === "es" ? "Mi scope" : "Mon scope";
140
146
  } else
141
- return props.lang === "en" ? "New scope" : props.lang === "en" ? "Nuevo scope" : "Nouveau scope";
147
+ return props.lang === "en" ? "New scope" : props.lang === "es" ? "Nuevo scope" : "Nouveau scope";
142
148
  });
143
149
  function closeDropdown() {
144
150
  isDisplay.value = false;
@@ -42,6 +42,10 @@ declare const _default: import("vue").DefineComponent<{
42
42
  type: StringConstructor;
43
43
  default: null;
44
44
  };
45
+ showActions: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
45
49
  }, {
46
50
  isDisplay: import("vue").Ref<boolean>;
47
51
  closeDropdown: () => void;
@@ -95,6 +99,10 @@ declare const _default: import("vue").DefineComponent<{
95
99
  type: StringConstructor;
96
100
  default: null;
97
101
  };
102
+ showActions: {
103
+ type: BooleanConstructor;
104
+ default: boolean;
105
+ };
98
106
  }>> & {
99
107
  "onUpdate:Scope"?: ((...args: any[]) => any) | undefined;
100
108
  onChangeScope?: ((...args: any[]) => any) | undefined;
@@ -107,5 +115,6 @@ declare const _default: import("vue").DefineComponent<{
107
115
  active_scope: Record<string, any>;
108
116
  createNew: boolean;
109
117
  custom: boolean;
118
+ showActions: boolean;
110
119
  }, {}>;
111
120
  export default _default;
@@ -68,7 +68,7 @@ export default defineComponent({
68
68
  type: String,
69
69
  default: "en",
70
70
  validator: (value) => {
71
- return ["en", "fr"].includes(value);
71
+ return ["en", "fr", "es"].includes(value);
72
72
  }
73
73
  }
74
74
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.1.119",
3
+ "version": "0.1.121",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",