@tekkare/auriga 0.1.160 → 0.1.162

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.160"
7
+ "version": "0.1.162"
8
8
  }
@@ -37,7 +37,7 @@
37
37
  >
38
38
  <slot v-if="customizeBlocks" name="custom" v-bind:block="block" />
39
39
  <div v-else class="block_content">
40
- <div class="oip_row v-center space-between full_stretch">
40
+ <div class="oip_row v-center space-between full_stretch card_head">
41
41
  <p class="block_title">
42
42
  <span v-if="block.country"
43
43
  ><arg-flag v-if="block.iso" :iso="block.iso" height="14" />
@@ -182,5 +182,5 @@ export default defineComponent({
182
182
  </script>
183
183
 
184
184
  <style scoped>
185
- .arg_home_all_blocks{align-items:flex-start;align-self:stretch;display:flex;flex-direction:column;gap:24px}.block_card{cursor:pointer;flex:0 0 calc(50% - 59px);margin:0!important;padding:24px!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;border:1px solid var(--primary)!important;box-shadow:var(--large-shadow)!important;color:var(--white)!important}.full_stretch{align-self:stretch}.population p{color:var(--medium);font-size:12px;font-weight:400;line-height:14px}
185
+ .arg_home_all_blocks{align-items:flex-start;align-self:stretch;display:flex;flex-direction:column;gap:24px}.block_card{cursor:pointer;flex:0 0 calc(50% - 59px);margin:0!important;padding:24px!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;border:1px solid var(--primary)!important;box-shadow:var(--large-shadow)!important;color:var(--white)!important}.full_stretch{align-self:stretch}.population p{color:var(--medium);font-size:12px;font-weight:400;line-height:14px}.block_selected>.block_content>.card_head>.population p,.block_selected>.block_content>.card_head>.population svg{color:var(--white)!important}
186
186
  </style>
@@ -1,10 +1,10 @@
1
1
  <template>
2
2
  <div class="arg_section_card" :class="isAction ? 'action' : ''">
3
- <div class="arg_section header" v-if="position === 'top'">
3
+ <div class="arg_section card_header" v-if="position === 'top'">
4
4
  <slot name="Header" />
5
5
  </div>
6
6
  <div
7
- class="content"
7
+ class="card_content"
8
8
  :class="
9
9
  position === 'top'
10
10
  ? 'footer'
@@ -15,7 +15,7 @@
15
15
  >
16
16
  <slot />
17
17
  </div>
18
- <div class="arg_section footer" v-if="position === 'bottom'">
18
+ <div class="arg_section card_footer" v-if="position === 'bottom'">
19
19
  <slot name="Footer" />
20
20
  </div>
21
21
  </div>
@@ -39,5 +39,5 @@ export default defineComponent({
39
39
  </script>
40
40
 
41
41
  <style scoped>
42
- .arg_section{align-self:stretch;background:rgba(253,253,255,.8);color:var(--dark);font-size:12px;font-style:normal;font-weight:400;line-height:normal;padding:8px 16px}.arg_section_card{align-items:flex-start;border:1px solid var(--Main-Light,#dbdef0);border-radius:12px;box-shadow:var(--small-shadow);display:flex;flex-direction:column}.arg_section_card.action:hover{border:1px solid var(--primary)!important;box-shadow:var(--large-shadow)!important}.content{align-self:stretch;background:var(--white);padding:24px}.arg_section.header{border-bottom:1px solid var(--Main-Light,#dbdef0)}.header{border-top-left-radius:12px;border-top-right-radius:12px}.arg_section.footer{border-top:1px solid var(--Main-Light,#dbdef0)}.footer{border-bottom-left-radius:12px;border-bottom-right-radius:12px}.none{border-radius:12px!important}
42
+ .arg_section{align-self:stretch;background:rgba(253,253,255,.8);color:var(--dark);font-size:12px;font-style:normal;font-weight:400;line-height:normal;padding:8px 16px}.arg_section_card{align-items:flex-start;border:1px solid var(--Main-Light,#dbdef0);border-radius:12px;box-shadow:var(--small-shadow);display:flex;flex-direction:column}.arg_section_card.action:hover{border:1px solid var(--primary)!important;box-shadow:var(--large-shadow)!important}.card_content{align-self:stretch;background:var(--white);padding:24px}.arg_section.header{border-bottom:1px solid var(--Main-Light,#dbdef0)}.card_header{border-top-left-radius:12px;border-top-right-radius:12px}.arg_section.footer{border-top:1px solid var(--Main-Light,#dbdef0)}.card_footer{border-bottom-left-radius:12px;border-bottom-right-radius:12px}.none{border-radius:12px!important}
43
43
  </style>
@@ -727,7 +727,8 @@ export default defineComponent({
727
727
  sendSearch,
728
728
  toggleCrop,
729
729
  hasReadMore,
730
- applyToggleCrop
730
+ applyToggleCrop,
731
+ tableKey
731
732
  };
732
733
  }
733
734
  });
@@ -202,6 +202,7 @@ declare const _default: import("vue").DefineComponent<{
202
202
  toggleCrop: import("vue").Ref<any>;
203
203
  hasReadMore: import("vue").Ref<string[]>;
204
204
  applyToggleCrop: (index: number, value: number) => void;
205
+ tableKey: import("vue").Ref<number>;
205
206
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "changeInputValue"[], "changeInputValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
206
207
  heads: {
207
208
  type: {
@@ -1,11 +1,16 @@
1
1
  <template>
2
2
  <div ref="element" class="oip_list gap-6">
3
3
  <p
4
- :class="isBig && typeof value === 'string' && !showMore ? 'crop' : ''"
4
+ v-if="typeof value === 'string'"
5
+ :class="isBig && !showMore ? 'crop' : ''"
5
6
  class="wrap-line"
6
7
  >
7
8
  {{ value }}
8
9
  </p>
10
+ <p v-else-if="typeof value === 'number'">
11
+ {{ new Intl.NumberFormat("fr-FR").format(value) }}
12
+ </p>
13
+
9
14
  <p v-if="showReadMore" class="read_more" @click="toggleShowMore()">
10
15
  {{ showMore ? "Show less" : "Show more" }}
11
16
  </p>
@@ -24,7 +29,7 @@ export default defineComponent({
24
29
  name: "TableCropRow",
25
30
  /* components: { argIcon, argStyle }, */
26
31
  props: {
27
- value: { type: String, default: "" }
32
+ value: { type: [String, Number], default: "" }
28
33
  },
29
34
  setup(props, { emit }) {
30
35
  const isBig = ref(false);
@@ -36,7 +41,7 @@ export default defineComponent({
36
41
  showMore.value = !showMore.value;
37
42
  }
38
43
  onMounted(() => {
39
- if (height.value > 51) {
44
+ if (height.value > 55) {
40
45
  isBig.value = true;
41
46
  showReadMore.value = true;
42
47
  } else
@@ -45,7 +50,7 @@ export default defineComponent({
45
50
  watch(
46
51
  () => height.value,
47
52
  () => {
48
- if (height.value > 51) {
53
+ if (height.value > 55) {
49
54
  isBig.value = true;
50
55
  showReadMore.value = true;
51
56
  } else
@@ -58,5 +63,5 @@ export default defineComponent({
58
63
  </script>
59
64
 
60
65
  <style scoped>
61
- .read_more{color:var(--primary);cursor:pointer;text-decoration:underline}.crop{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.wrap-line{white-space:pre-line}
66
+ .read_more{color:var(--primary);cursor:pointer;text-decoration:underline}.read_more:hover{color:var(--primary-hover)}.crop{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.wrap-line{white-space:pre-line}
62
67
  </style>
@@ -1,6 +1,6 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
2
  value: {
3
- type: StringConstructor;
3
+ type: (StringConstructor | NumberConstructor)[];
4
4
  default: string;
5
5
  };
6
6
  }, {
@@ -11,10 +11,10 @@ declare const _default: import("vue").DefineComponent<{
11
11
  showReadMore: import("vue").Ref<boolean>;
12
12
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
13
  value: {
14
- type: StringConstructor;
14
+ type: (StringConstructor | NumberConstructor)[];
15
15
  default: string;
16
16
  };
17
17
  }>>, {
18
- value: string;
18
+ value: string | number;
19
19
  }, {}>;
20
20
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.1.160",
3
+ "version": "0.1.162",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",