@tekkare/auriga 0.2.53 → 0.2.54

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.2.53"
7
+ "version": "0.2.54"
8
8
  }
@@ -5,11 +5,7 @@
5
5
  <script>
6
6
  import { defineComponent } from "vue";
7
7
  export default defineComponent({
8
- name: "ArgLoader",
9
- props: {},
10
- setup() {
11
- return {};
12
- }
8
+ name: "ArgLoader"
13
9
  });
14
10
  </script>
15
11
 
@@ -1,8 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
2
- [x: string]: unknown;
3
- }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, readonly string[] | Readonly<import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
4
- [x: string]: unknown;
5
- }>>>>, {
6
- readonly [x: number]: string;
7
- } | {}, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
8
2
  export default _default;
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
2
  scopes: {
3
3
  type: {
4
- (arrayLength: number): string[];
5
- (...items: string[]): string[];
6
- new (arrayLength: number): string[];
7
- new (...items: string[]): string[];
4
+ (arrayLength: number): any[];
5
+ (...items: any[]): any[];
6
+ new (arrayLength: number): any[];
7
+ new (...items: any[]): any[];
8
8
  isArray(arg: any): arg is any[];
9
9
  readonly prototype: any[];
10
10
  from<T>(arrayLike: ArrayLike<T>): T[];
@@ -67,10 +67,10 @@ declare const _default: import("vue").DefineComponent<{
67
67
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:Scope" | "changeScope" | "onNewScope" | "onSave")[], "update:Scope" | "changeScope" | "onNewScope" | "onSave", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
68
68
  scopes: {
69
69
  type: {
70
- (arrayLength: number): string[];
71
- (...items: string[]): string[];
72
- new (arrayLength: number): string[];
73
- new (...items: string[]): string[];
70
+ (arrayLength: number): any[];
71
+ (...items: any[]): any[];
72
+ new (arrayLength: number): any[];
73
+ new (...items: any[]): any[];
74
74
  isArray(arg: any): arg is any[];
75
75
  readonly prototype: any[];
76
76
  from<T>(arrayLike: ArrayLike<T>): T[];
@@ -116,14 +116,25 @@
116
116
  showLine === contIndex ? 'icon_rotate' : '',
117
117
  ]"
118
118
  />
119
+
120
+ <div v-if="autoCrop === true">
121
+ <div v-if="columnTypeNonProps[valIndex] !== ''">
122
+ <table-row-crop :key="cropKey" :value="value" custom>
123
+ <slot
124
+ :name="columnTypeNonProps[valIndex]"
125
+ v-bind:value="value"
126
+ ></slot>
127
+ </table-row-crop>
128
+ </div>
129
+ <table-row-crop v-else :key="cropKey" :value="value" />
130
+ </div>
131
+
119
132
  <slot
120
- v-if="columnTypeNonProps[valIndex] !== ''"
133
+ v-else-if="columnTypeNonProps[valIndex] !== ''"
121
134
  :name="columnTypeNonProps[valIndex]"
122
135
  v-bind:value="value"
123
136
  ></slot>
124
- <div v-else-if="autoCrop === true">
125
- <table-row-crop :key="cropKey" :value="value" />
126
- </div>
137
+
127
138
  <!-- <div v-else-if="autoCrop === true" class="display_auto_crop">
128
139
  <p
129
140
  :class="
@@ -791,5 +802,5 @@ export default defineComponent({
791
802
  </script>
792
803
 
793
804
  <style scoped>
794
- .empty_table{align-items:center;display:flex;justify-content:center;width:100%}.filter_tooltip{cursor:pointer}.sort_up_icon{position:relative;top:3px}.sort_down_icon{position:relative;top:-2px}.table_input{align-self:stretch!important;margin:0 24px!important;width:auto!important}.oip_column{display:table-cell;padding-left:0}.scroll_table .rcd_scrollTable{gap:8px;overflow-x:auto;padding-top:8px}td{font-size:14px}tr{position:relative}table{border-collapse:collapse;padding:0;width:100%}thead tr th{background-color:transparent;height:35px}td,th{padding:10px 24px}th,tr{height:43px;text-align:start}th{flex-grow:0;font-size:12px;font-weight:700;line-height:14px;order:0}td:last-child,th:last-child div.rcd-table-header{justify-content:end;text-align:end}.rcd-table-header{align-items:center;display:flex;flex-direction:row;margin-left:24px}.rcd-col-title{align-items:center;gap:4px}.rcd-col-title,.rcd-table-sort{display:flex;justify-content:center}.rcd-table-sort{cursor:pointer;flex-direction:column;-moz-text-align-last:right;text-align-last:right}.rcd-NA{color:var(--independance);font-style:italic;font-weight:400}.rcd-pagination{align-items:center;background:transparent;border-radius:8px;cursor:pointer;display:flex;font-size:14px;font-style:normal;font-weight:700;gap:10px;justify-content:center;line-height:normal;padding:10px 16px}.rcd-pagination:hover{color:var(--primary)!important}.rcd-pagination-navigate{cursor:pointer}.rcd-pagination-navigate:hover svg{color:var(--primary)!important}.rcd-current:hover{color:var(--white)!important}.rcd-datas{align-items:center;display:flex;gap:10px;margin:10px 10px 15px}.align-left{justify-content:left}.align-center{justify-content:center}.align-right,.rcd-rows{justify-content:right}.rcd-rows{align-items:center;display:flex}.rcd-current{background:var(--primary);box-shadow:4px 7px 12px 0 rgba(33,118,255,.2);color:var(--white)}.hideInput{display:none;visibility:hidden}.showInput{display:flex;visibility:visible}.rcd-search{cursor:pointer;margin-right:5px}.column_align.left{justify-content:left!important;text-align:left!important}.column_align.center{justify-content:center!important;text-align:center!important}.column_align.right{justify-content:right!important;text-align:right!important}.show_full_table{align-items:center;display:flex;justify-content:center;width:100%}.flex-table{align-items:flex-start;display:flex;flex-direction:column;gap:12px;width:100%}.rcd_scrollTable{width:100%}.more_section{padding:24px;text-align:start!important;width:100%}.more_row{border-bottom:1px solid var(--light,#ececf2);border-top:1px solid var(--light,#ececf2)}.grey_bg,.grey_bg>td{background:var(--demi-fond)!important}.white_bg,.white_bg>td{background:var(--white)!important}.icon-show-more{cursor:pointer;transition:transform .3s}.icon-show-more:hover,.icon_rotate{color:var(--primary)!important}.icon_rotate{transform:rotate(90deg)}.scroll_table .rcd_scrollTable table thead,.scroll_table .rcd_scrollTable table thead tr,.scroll_table .rcd_scrollTable table thead tr th{position:sticky!important;top:0!important}.scroll_table .rcd_scrollTable thead{background:var(--white)!important;z-index:10}.scroll_table .rcd_scrollTable{overflow-y:scroll;padding-top:0!important}.full{width:100%}.hidden{display:none!important}.scroll_table .rcd_scrollTable::-webkit-scrollbar{height:5px!important;width:5px!important}.modal_content::-webkit-scrollbar-thumb,.scroll_table .rcd_scrollTable::-webkit-scrollbar-thumb{background:var(--medium);border-radius:12px!important}.modal_content::-webkit-scrollbar-thumb:hover,.scroll_table .rcd_scrollTable::-webkit-scrollbar-thumb:hover{background:var(--medium)!important}.crop_text{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.read_more{color:var(--primary);cursor:pointer;text-decoration:underline}.display_auto_crop{display:flex;flex-direction:column;gap:8px}
805
+ .empty_table{align-items:center;display:flex;justify-content:center;width:100%}.filter_tooltip{cursor:pointer}.sort_up_icon{position:relative;top:3px}.sort_down_icon{position:relative;top:-2px}.table_input{align-self:stretch!important;margin:0 24px!important;width:auto!important}.oip_column{display:table-cell;padding-left:0}.scroll_table .rcd_scrollTable{gap:8px;overflow-x:auto;padding-top:8px}td{font-size:14px}tr{position:relative}table{border-collapse:collapse;padding:0;width:100%}thead tr th{background-color:transparent;height:35px}td,th{padding:10px 24px}th,tr{height:43px;text-align:start}th{flex-grow:0;font-size:12px;font-weight:700;line-height:14px;order:0}td:last-child,th:last-child div.rcd-table-header{justify-content:end;text-align:end}.rcd-table-header{align-items:center;display:flex;flex-direction:row;margin-left:24px}.rcd-col-title{align-items:center;gap:4px}.rcd-col-title,.rcd-table-sort{display:flex;justify-content:center}.rcd-table-sort{cursor:pointer;flex-direction:column;-moz-text-align-last:right;text-align-last:right}.rcd-NA{color:var(--independance);font-style:italic;font-weight:400}.rcd-pagination{align-items:center;background:transparent;border-radius:8px;cursor:pointer;display:flex;font-size:14px;font-style:normal;font-weight:700;gap:10px;justify-content:center;line-height:normal;padding:10px 16px}.rcd-pagination:hover{color:var(--primary)!important}.rcd-pagination-navigate{cursor:pointer}.rcd-pagination-navigate:hover svg{color:var(--primary)!important}.rcd-current:hover{color:var(--white)!important}.rcd-datas{align-items:center;display:flex;gap:10px;margin:10px 10px 15px}.align-left{justify-content:left}.align-center{justify-content:center}.align-right,.rcd-rows{justify-content:right}.rcd-rows{align-items:center;display:flex}.rcd-current{background:var(--primary);box-shadow:4px 7px 12px 0 rgba(33,118,255,.2);color:var(--white)}.hideInput{display:none;visibility:hidden}.showInput{display:flex;visibility:visible}.rcd-search{cursor:pointer;margin-right:5px}.column_align.left{justify-content:left!important;text-align:left!important}.column_align.center{justify-content:center!important;text-align:center!important}.column_align.right{justify-content:right!important;text-align:right!important}.show_full_table{align-items:center;display:flex;justify-content:center;width:100%}.flex-table{align-items:flex-start;display:flex;flex-direction:column;gap:12px;width:100%}.rcd_scrollTable{width:100%}.more_section{padding:24px;text-align:start!important;width:100%}.more_row{border-bottom:1px solid var(--light,#ececf2);border-top:1px solid var(--light,#ececf2)}.grey_bg,.grey_bg>td{background:var(--demi-fond)!important}.white_bg,.white_bg>td{background:var(--white)!important}.icon-show-more{cursor:pointer;transition:transform .3s}.icon-show-more:hover,.icon_rotate{color:var(--primary)!important}.icon_rotate{transform:rotate(90deg)}.scroll_table .rcd_scrollTable table thead,.scroll_table .rcd_scrollTable table thead tr,.scroll_table .rcd_scrollTable table thead tr th{position:sticky!important;top:0!important}.scroll_table .rcd_scrollTable thead{background:var(--white)!important;z-index:10}.scroll_table .rcd_scrollTable{overflow-y:scroll;padding-top:0!important}.full{width:100%}.hidden{display:none!important}.scroll_table .rcd_scrollTable::-webkit-scrollbar{height:5px!important;width:5px!important}.modal_content::-webkit-scrollbar-thumb,.scroll_table .rcd_scrollTable::-webkit-scrollbar-thumb{background:var(--medium);border-radius:12px!important}.modal_content::-webkit-scrollbar-thumb:hover,.scroll_table .rcd_scrollTable::-webkit-scrollbar-thumb:hover{background:var(--medium)!important}.crop_text{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.read_more{color:var(--primary);cursor:pointer;text-decoration:underline}.display_auto_crop{display:flex;flex-direction:column;gap:8px}.crop{max-height:65px}
795
806
  </style>
@@ -1,14 +1,21 @@
1
1
  <template>
2
2
  <div ref="element" class="oip_list gap-6">
3
+ <div
4
+ v-if="custom"
5
+ :class="custom && isBig && !showMore ? 'fix-height' : ''"
6
+ >
7
+ <slot />
8
+ </div>
9
+
3
10
  <p
4
- v-if="typeof value === 'string'"
11
+ v-else-if="typeof value === 'string'"
5
12
  :class="isBig && !showMore ? 'crop' : ''"
6
13
  class="wrap-line"
7
14
  >
8
15
  {{ value }}
9
16
  </p>
10
17
  <p v-else-if="typeof value === 'number'">
11
- {{ new Intl.NumberFormat("fr-FR").format(value) }}
18
+ {{ new Intl.NumberFormat("fr-FR").format(value).replace(",", ".") }}
12
19
  </p>
13
20
 
14
21
  <p v-if="showReadMore" class="read_more" @click="toggleShowMore()">
@@ -29,7 +36,8 @@ export default defineComponent({
29
36
  name: "tableRowCrop",
30
37
  /* components: { argIcon, argStyle }, */
31
38
  props: {
32
- value: { type: [String, Number], default: "" }
39
+ value: { type: [String, Number], default: "" },
40
+ custom: { type: Boolean, default: false }
33
41
  },
34
42
  setup(props, { emit }) {
35
43
  const isBig = ref(false);
@@ -63,5 +71,5 @@ export default defineComponent({
63
71
  </script>
64
72
 
65
73
  <style scoped>
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}
74
+ .read_more{color:var(--primary);cursor:pointer;font-style:normal;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}.fix-height{max-height:50px;overflow:hidden}
67
75
  </style>
@@ -3,6 +3,10 @@ declare const _default: import("vue").DefineComponent<{
3
3
  type: (StringConstructor | NumberConstructor)[];
4
4
  default: string;
5
5
  };
6
+ custom: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
6
10
  }, {
7
11
  isBig: import("vue").Ref<boolean>;
8
12
  element: import("vue").Ref<null>;
@@ -14,7 +18,12 @@ declare const _default: import("vue").DefineComponent<{
14
18
  type: (StringConstructor | NumberConstructor)[];
15
19
  default: string;
16
20
  };
21
+ custom: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
17
25
  }>>, {
18
26
  value: string | number;
27
+ custom: boolean;
19
28
  }, {}>;
20
29
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.2.53",
3
+ "version": "0.2.54",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",