@tekkare/auriga 0.1.101 → 0.1.103

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.101"
7
+ "version": "0.1.103"
8
8
  }
@@ -2,7 +2,7 @@
2
2
  <div class="arg_home_all_blocks">
3
3
  <div v-if="hasGlobal" class="arg_home_all_blocks">
4
4
  <h1 class="arg_home_blocks_title">{{ getGlobalTitle }}</h1>
5
- <div class="oip_row v-start gap-16 wrap">
5
+ <div class="oip_row v-start gap-16 wrap full_stretch">
6
6
  <div
7
7
  v-for="(block, index) in globalBlocks"
8
8
  :key="index"
@@ -35,7 +35,9 @@
35
35
  <div v-else class="block_content">
36
36
  <p class="block_title">
37
37
  <span v-if="block.country"
38
- ><arg-flag
38
+ ><arg-flag v-if="block.iso" :iso="block.iso" height="14" />
39
+ <arg-flag
40
+ v-else
39
41
  :slug="block.country.toLowerCase()"
40
42
  height="14" /></span
41
43
  >{{ block.title }}
@@ -149,5 +151,5 @@ export default defineComponent({
149
151
  </script>
150
152
 
151
153
  <style scoped>
152
- .arg_home_all_blocks{align-items:flex-start;display:flex;flex-direction:column;gap:24px}.block_card{border:1.5px solid transparent;cursor:pointer;flex:0 0 calc(50% - 59px);margin:0!important;padding:24px!important}.block_card:hover{border-color:rgba(33,118,255,.2)!important}.block_card:not(.block_selected):hover .block_title{color:var(--primary)!important}.block_descr{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:14px;font-style:normal;font-weight:400;line-height:160%;overflow:hidden}.block_content{align-items:flex-start;display:flex;flex-direction:column;gap:12px}.block_title{align-items:flex-end;display:flex;flex-direction:row;font-size:16px;font-style:normal;font-weight:700;gap:8px;line-height:normal}.block_selected{background:var(--primary)!important;color:var(--white)!important}
154
+ .arg_home_all_blocks{align-items:flex-start;align-self:stretch;display:flex;flex-direction:column;gap:24px}.block_card{border:1.5px solid transparent;cursor:pointer;flex:0 0 calc(50% - 59px);margin:0!important;padding:24px!important}.block_card:hover{border-color:rgba(33,118,255,.2)!important}.block_card:not(.block_selected):hover .block_title{color:var(--primary)!important}.block_descr{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:14px;font-style:normal;font-weight:400;line-height:160%;overflow:hidden}.block_content{align-items:flex-start;display:flex;flex-direction:column;gap:12px}.block_title{align-items:flex-end;display:flex;flex-direction:row;font-size:16px;font-style:normal;font-weight:700;gap:8px;line-height:normal}.block_selected{background:var(--primary)!important;color:var(--white)!important}.full_stretch{align-self:stretch}
153
155
  </style>
@@ -20,8 +20,9 @@
20
20
  <div v-else class="selected_block_display">
21
21
  <div class="theme_title_display">
22
22
  <div class="oip_row v-center gap-8">
23
+ <arg-flag v-if="selected.iso" :iso="selected.iso" height="16" />
23
24
  <arg-flag
24
- v-if="selected.country"
25
+ v-else-if="selected.country"
25
26
  :slug="selected.country.toLowerCase()"
26
27
  height="16"
27
28
  />
@@ -36,7 +36,7 @@ export default defineComponent({
36
36
  required: true
37
37
  },
38
38
  defaultSelect: {
39
- type: Number,
39
+ type: [Number, String],
40
40
  default: null
41
41
  },
42
42
  returnValue: {
@@ -54,11 +54,13 @@ export default defineComponent({
54
54
  onMounted(() => {
55
55
  if (typeof props.defaultSelect === "number") {
56
56
  selectedRadio.value = props.defaultSelect;
57
+ } else {
58
+ selectedRadio.value = props.elements.findIndex((a) => a === props.defaultSelect) + 1;
57
59
  }
58
60
  });
59
61
  function selectRadio(index, value) {
60
62
  selectedRadio.value = index;
61
- if (props.returnValue) {
63
+ if (props.returnValue === true) {
62
64
  emit("changeElement", value);
63
65
  emit("update:Selection", value);
64
66
  } else {
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
17
17
  required: true;
18
18
  };
19
19
  defaultSelect: {
20
- type: NumberConstructor;
20
+ type: (StringConstructor | NumberConstructor)[];
21
21
  default: null;
22
22
  };
23
23
  returnValue: {
@@ -52,7 +52,7 @@ declare const _default: import("vue").DefineComponent<{
52
52
  required: true;
53
53
  };
54
54
  defaultSelect: {
55
- type: NumberConstructor;
55
+ type: (StringConstructor | NumberConstructor)[];
56
56
  default: null;
57
57
  };
58
58
  returnValue: {
@@ -67,7 +67,7 @@ declare const _default: import("vue").DefineComponent<{
67
67
  onChangeElement?: ((...args: any[]) => any) | undefined;
68
68
  "onUpdate:Selection"?: ((...args: any[]) => any) | undefined;
69
69
  }, {
70
- defaultSelect: number;
70
+ defaultSelect: string | number;
71
71
  returnValue: boolean;
72
72
  dir: string;
73
73
  }, {}>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.1.101",
3
+ "version": "0.1.103",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",