@tekkare/auriga 0.1.26 → 0.1.27

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.26"
7
+ "version": "0.1.27"
8
8
  }
@@ -155,7 +155,7 @@ export default defineComponent({
155
155
  color: var(--primary) !important;
156
156
  }
157
157
  .filter_box:hover .filter_icon_check {
158
- color: var(--primary-hover2) !important;
158
+ color: var(--primary-hover) !important;
159
159
  }
160
160
  .disable {
161
161
  cursor: initial;
@@ -356,7 +356,7 @@ export default defineComponent({
356
356
  color: var(--independence) !important;
357
357
  }
358
358
  .oip_select_complex_selection_loop:hover > svg.add {
359
- color: var(--primary-hover2) !important;
359
+ color: var(--primary-hover) !important;
360
360
  }
361
361
 
362
362
  .oip_select_complex_selection_loop:hover svg {
@@ -162,17 +162,13 @@ export default defineComponent({
162
162
  color: var(--wild-blue-yonder);
163
163
  list-style: none;
164
164
  font-style: normal;
165
- font-size: 12px;
166
- font-weight: 700;
165
+ font-size: 14px;
166
+ font-weight: 500;
167
167
  text-align: center;
168
168
  padding: 0px 0px 8px 0px;
169
169
  white-space: pre-line;
170
170
  overflow-wrap: break-word;
171
171
  vertical-align: middle;
172
- font-size: 16px;
173
- font-style: normal;
174
- font-weight: 700;
175
- line-height: normal;
176
172
  }
177
173
 
178
174
  .header_one_tab:hover {
@@ -7,13 +7,15 @@
7
7
  :class="item.name === 'Sources' ? 'relative' : ''"
8
8
  @click="openMenu(item.name)"
9
9
  >
10
- <arg-icon :name="item.icon" size="20" />
11
- <div
12
- v-if="item.name === 'Sources' && sourceAmount > 0"
13
- class="arg_source_nb"
14
- >
15
- {{ sourceAmount }}
16
- </div>
10
+ <arg-tooltip :tooltip-text="item.name" dir="left">
11
+ <arg-icon :name="item.icon" size="20" />
12
+ <div
13
+ v-if="item.name === 'Sources' && sourceAmount > 0"
14
+ class="arg_source_nb"
15
+ >
16
+ {{ sourceAmount }}
17
+ </div>
18
+ </arg-tooltip>
17
19
  </div>
18
20
  </div>
19
21
  </template>
@@ -24,9 +26,10 @@ import {
24
26
  defineComponent
25
27
  } from "vue";
26
28
  import argIcon from "./argIcon.vue";
29
+ import argTooltip from "./argTooltip.vue";
27
30
  export default defineComponent({
28
31
  name: "argInfoBar",
29
- components: { argIcon },
32
+ components: { argIcon, argTooltip },
30
33
  props: {
31
34
  infoArray: {
32
35
  type: Array,
@@ -156,7 +156,7 @@ export default defineComponent({
156
156
  }
157
157
 
158
158
  .selected_option:hover svg {
159
- color: var(--primary-hover2) !important;
159
+ color: var(--primary-hover) !important;
160
160
  }
161
161
 
162
162
  .selected_option p {
@@ -822,7 +822,7 @@ export default defineComponent({
822
822
  font-weight: 700 !important;
823
823
  }
824
824
  .oip_select_complex_selection_loop:hover > svg.add {
825
- color: var(--primary-hover2) !important;
825
+ color: var(--) !important;
826
826
  }
827
827
  .oip_select_complex_selection_loop > svg.add {
828
828
  color: var(--primary) !important;
@@ -20,7 +20,7 @@
20
20
  </div>
21
21
  <arg-radio-buttons
22
22
  dir="column"
23
- :elements="scopeArray"
23
+ :elements="scopeArray.map((a) => a.title)"
24
24
  :return_value="true"
25
25
  v-model:Selection="selectedScope"
26
26
  />
@@ -33,13 +33,15 @@
33
33
  @onClick="selectScope"
34
34
  >{{ lang === "fr" ? "Appliquer le scope" : "Apply scope" }}</arg-btn
35
35
  >
36
- <div class="oip_row v-center gap-8 full-width">
36
+ <div
37
+ v-if="scopeArray.length > 0"
38
+ class="oip_row v-center gap-8 full-width"
39
+ >
37
40
  <div class="scope_sep" />
38
41
  <p class="scope_sep_text">or</p>
39
42
  <div class="scope_sep" />
40
43
  </div>
41
44
  <arg-btn
42
- v-if="scopeArray.length > 0"
43
45
  btn-style="primary-stroke"
44
46
  size="m"
45
47
  full-width
@@ -84,8 +86,18 @@ export default defineComponent({
84
86
  return `Vous devez s\xE9lectionner votre scope pour voir les r\xE9sultats ou donn\xE9es. Veuillez choisir une des options ci-dessous pour continuer`;
85
87
  });
86
88
  function selectScope() {
87
- emit("onSelectScope", selectedScope.value);
88
- emit("update:Scope", selectedScope.value);
89
+ emit(
90
+ "onSelectScope",
91
+ props.scopeArray[props.scopeArray.findIndex(
92
+ (a) => a.title === selectedScope.value
93
+ )]
94
+ );
95
+ emit(
96
+ "update:Scope",
97
+ props.scopeArray[props.scopeArray.findIndex(
98
+ (a) => a.title === selectedScope.value
99
+ )]
100
+ );
89
101
  }
90
102
  function createNewScope() {
91
103
  emit("onCreateScope");
@@ -25,21 +25,20 @@ export default defineComponent({
25
25
 
26
26
  /* PRIMARY */
27
27
  --primary: #2176ff;
28
- --primary-hover: #0966fb;
29
28
  --primary-dark: #0056e0;
30
- --primary-hover2: #0f44be;
29
+ --primary-hover: #0f44be;
31
30
  --primary-light: #f4f8ff;
32
31
 
33
32
  /* ACCENT */
34
33
  --accent: #2176ff;
35
34
  --accent-yellow: #ff981a;
36
- --accent-hover: #0966fb;
35
+ --accent-hover: #0f44be;
37
36
  --accent-hover-yellow: #e7860f;
38
37
 
39
38
  /* SYSTEM */
40
39
  --alert: #fb4654;
41
40
  --system-alert: #ef4444;
42
- --alert-hover: #d21616;
41
+ --system-alert-hover: #d21616;
43
42
  --warning: #fd9147;
44
43
  --success: #32d175;
45
44
  --system-success: #22c55e;
@@ -333,8 +332,8 @@ button {
333
332
 
334
333
  .oip_primary-fill_button:hover,
335
334
  .oip_primary-fill_button:focus {
336
- background: var(--primary-hover2) !important;
337
- border: 2px solid var(--primary-hover2) !important;
335
+ background: var(--primary-hover) !important;
336
+ border: 2px solid var(--primary-hover) !important;
338
337
  box-shadow: none !important;
339
338
  color: var(--pure-white) !important;
340
339
  }
@@ -502,7 +501,7 @@ button {
502
501
  .oip_primary-stroke_icon_button:hover,
503
502
  .oip_primary-stroke_icon_button:focus {
504
503
  background: rgba(33, 118, 255, 0.05) !important;
505
- color: var(--primary-hover2) !important;
504
+ color: var(--) !important;
506
505
  }
507
506
  .oip_primary-stroke_button .oip_button_spinner div,
508
507
  .oip_primary-stroke_icon_button .oip_button_spinner div {
@@ -528,7 +527,7 @@ button {
528
527
  .oip_warning-stroke_icon_button:focus {
529
528
  background: rgba(239, 68, 68, 0.2) !important;
530
529
  border: 2px solid rgba(251, 70, 84, 0.2) !important;
531
- color: var(--alert-hover) !important;
530
+ color: var(--system-alert-hover) !important;
532
531
  }
533
532
  .oip_warning-stroke_button .oip_button_spinner div,
534
533
  .oip_warning-stroke_icon_button .oip_button_spinner div {
@@ -537,15 +536,15 @@ button {
537
536
  }
538
537
  .oip_warning-stroke_button:hover .oip_button_spinner div,
539
538
  .oip_warning-stroke_icon_button:hover .oip_button_spinner div {
540
- border: 2px solid var(--alert-hover);
541
- border-color: var(--alert-hover) transparent transparent transparent;
539
+ border: 2px solid var(--system-alert-hover);
540
+ border-color: var(--system-alert-hover) transparent transparent transparent;
542
541
  }
543
542
  .oip_warning-stroke_button:hover .oip__button_prefix_icon,
544
543
  .oip_warning-stroke_button:focus .oip__button_prefix_icon,
545
544
  .oip_warning-stroke_button:hover .oip__button_suffix_icon,
546
545
  .oip_warning-stroke_button:focus .oip__button_suffix_icon {
547
- stroke: var(--alert-hover) !important;
548
- color: var(--alert-hover) !important;
546
+ stroke: var(--system-alert-hover) !important;
547
+ color: var(--system-alert-hover) !important;
549
548
  }
550
549
  .oip_warning-stroke_icon_button {
551
550
  background: transparent !important;
@@ -557,12 +556,12 @@ button {
557
556
  .oip_warning-stroke_icon_button:hover,
558
557
  .oip_warning-stroke_icon_button:hover {
559
558
  border: 2px solid rgba(251, 70, 84, 0.2) !important;
560
- color: var(--alert-hover) !important;
559
+ color: var(--system-alert-hover) !important;
561
560
  }
562
561
  .oip_warning-stroke_icon_button:hover svg,
563
562
  .oip_warning-stroke_icon_button:hover svg {
564
- stroke: var(--alert-hover) !important;
565
- color: var(--alert-hover) !important;
563
+ stroke: var(--system-alert-hover) !important;
564
+ color: var(--system-alert-hover) !important;
566
565
  }
567
566
  .oip_warning-fill_button {
568
567
  background: var(--system-alert) !important;
@@ -574,8 +573,8 @@ button {
574
573
  .oip_warning-fill_button:focus,
575
574
  .oip_warning-fill_icon_button:hover,
576
575
  .oip_warning-fill_icon_button:focus {
577
- background: var(--alert-hover) !important;
578
- border: 2px solid var(--alert-hover) !important;
576
+ background: var(--system-alert-hover) !important;
577
+ border: 2px solid var(--system-alert-hover) !important;
579
578
  box-shadow: none !important;
580
579
  }
581
580
  .oip_warning-fill_button .oip_button_spinner div,
@@ -928,7 +928,7 @@ th:last-child div.show .rcd-searchInput {
928
928
 
929
929
  .scroll_table .rcd_scrollTable thead {
930
930
  background: var(--pure-white) !important;
931
- z-index: 90;
931
+ z-index: 10;
932
932
  }
933
933
 
934
934
  .scroll_table .rcd_scrollTable {
@@ -0,0 +1,59 @@
1
+ <template>
2
+ <div
3
+ class="arg_text_btn"
4
+ :class="`${textStyle}_text_btn`"
5
+ @click="sendAction()"
6
+ >
7
+ <slot />
8
+ </div>
9
+ </template>
10
+
11
+ <script>
12
+ import {
13
+ defineComponent
14
+ } from "vue";
15
+ export default defineComponent({
16
+ name: "argTextBtn",
17
+ props: {
18
+ textStyle: {
19
+ type: String,
20
+ default: "primary",
21
+ validator: (value) => {
22
+ return ["primary", "warning"].includes(value);
23
+ }
24
+ }
25
+ },
26
+ emits: ["onClick"],
27
+ setup(props, { emit }) {
28
+ function sendAction() {
29
+ emit("onClick");
30
+ }
31
+ return { sendAction };
32
+ }
33
+ });
34
+ </script>
35
+
36
+ <style scoped>
37
+ .arg_text_btn {
38
+ font-size: 14px;
39
+ font-style: normal;
40
+ font-weight: 500;
41
+ line-height: normal;
42
+ text-decoration-line: underline;
43
+ cursor: pointer;
44
+ }
45
+
46
+ .primary_text_btn {
47
+ color: var(--primary) !important;
48
+ }
49
+ .primary_text_btn:hover {
50
+ color: var(--primary) !important;
51
+ }
52
+
53
+ .warning_text_btn {
54
+ color: var(--system-alert) !important;
55
+ }
56
+ .warning_text_btn:hover {
57
+ color: var(--system-alert-hover) !important;
58
+ }
59
+ </style>
@@ -0,0 +1,20 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ textStyle: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ validator: (value: string) => boolean;
6
+ };
7
+ }, {
8
+ sendAction: () => void;
9
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClick"[], "onClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
+ textStyle: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ validator: (value: string) => boolean;
14
+ };
15
+ }>> & {
16
+ onOnClick?: ((...args: any[]) => any) | undefined;
17
+ }, {
18
+ textStyle: string;
19
+ }, {}>;
20
+ export default _default;
@@ -8,7 +8,7 @@
8
8
  v-if="disable === false"
9
9
  :class="`prmt_tooltip_text prmt_tooltip_text-${dir}`"
10
10
  >
11
- {{ tooltipText }}
11
+ <p>{{ tooltipText }}</p>
12
12
  </div>
13
13
  </div>
14
14
  </template>
@@ -38,19 +38,20 @@ export default defineComponent({
38
38
 
39
39
  .prmt_tooltip_text {
40
40
  visibility: hidden;
41
- min-width: 120px;
41
+ width: fit-content;
42
+ max-width: 250px;
42
43
  text-align: center;
43
44
  background-color: var(--independence);
44
45
  color: var(--pure-white);
45
- border-radius: 12px;
46
+ border-radius: 4px;
46
47
  position: absolute;
47
48
  z-index: 2;
48
- padding: 6px 12px;
49
+ padding: 4px 12px;
49
50
  margin-top: 4px;
50
51
  font-weight: 400;
51
52
  font-size: 14px;
52
53
  line-height: 160%;
53
- white-space: break-spaces;
54
+ white-space: nowrap;
54
55
  }
55
56
 
56
57
  .prmt_tooltip .prmt_tooltip_text-top {
@@ -58,51 +59,16 @@ export default defineComponent({
58
59
  left: 50%;
59
60
  margin-left: -72px;
60
61
  }
61
- .prmt_tooltip .prmt_tooltip_text-top::after {
62
- content: "";
63
- position: absolute;
64
- padding: 1px;
65
- top: 98%;
66
- left: 50%;
67
- margin-left: -8px;
68
- border-width: 7px;
69
- border-bottom-left-radius: 4px;
70
- border-style: solid;
71
- border-color: var(--independence) transparent transparent transparent;
72
- }
73
62
 
74
63
  .prmt_tooltip .prmt_tooltip_text-right {
75
- top: -12px;
64
+ top: -8px;
76
65
  left: 110%;
77
- margin-left: 5px;
66
+ margin-left: 16px;
78
67
  }
79
- .prmt_tooltip .prmt_tooltip_text-right::after {
80
- content: "";
81
- position: absolute;
82
- padding: 1px;
83
- top: 60%;
84
- right: 99%; /* To the left of the tooltip */
85
- margin-top: -11px;
86
- border-width: 7px;
87
- border-style: solid;
88
- border-color: transparent var(--independence) transparent transparent;
89
- }
90
-
91
68
  .prmt_tooltip .prmt_tooltip_text-left {
92
- top: 15%;
69
+ top: -8px;
93
70
  right: 110%;
94
- margin-right: 5px;
95
- }
96
- .prmt_tooltip .prmt_tooltip_text-left::after {
97
- content: "";
98
- position: absolute;
99
- padding: 1px;
100
- top: 55%;
101
- left: 99.5%;
102
- margin-top: -10px;
103
- border-width: 7px;
104
- border-style: solid;
105
- border-color: transparent transparent transparent var(--independence);
71
+ margin-right: 16px;
106
72
  }
107
73
 
108
74
  .prmt_tooltip .prmt_tooltip_text-bottom {
@@ -116,26 +82,4 @@ export default defineComponent({
116
82
  left: 50%;
117
83
  margin-left: -130px;
118
84
  }
119
- .prmt_tooltip.last_tooltip .prmt_tooltip_text-bottom::after {
120
- content: "";
121
- position: absolute;
122
- padding: 1px;
123
- bottom: 98%;
124
- left: 90% !important;
125
- margin-left: -5px;
126
- border-width: 7px;
127
- border-style: solid;
128
- border-color: transparent transparent var(--independence) transparent;
129
- }
130
- .prmt_tooltip .prmt_tooltip_text-bottom::after {
131
- content: "";
132
- position: absolute;
133
- padding: 1px;
134
- bottom: 95%;
135
- left: 50%;
136
- margin-left: -5px;
137
- border-width: 7px;
138
- border-style: solid;
139
- border-color: transparent transparent var(--independence) transparent;
140
- }
141
85
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",