@tekkare/auriga 0.1.37 → 0.1.38

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.37"
7
+ "version": "0.1.38"
8
8
  }
@@ -5,15 +5,16 @@
5
5
  class="cancel_action"
6
6
  @click="sendAction()"
7
7
  >
8
- <slot v-if="customize" name="custom" />
8
+ <slot v-if="customize" />
9
9
  <span v-else>{{ getActionText }}</span>
10
10
  </div>
11
11
  <arg-text-btn
12
- v-else-if="actionType === 'see-analysis'"
12
+ v-else-if="actionType === 'see-analysis' || actionType === 'clear'"
13
+ :text-style="actionType === 'clear' ? 'warning' : 'primary'"
13
14
  :disable="disable"
14
15
  @onClick="sendAction()"
15
16
  >
16
- <slot v-if="customize" name="custom" />
17
+ <slot v-if="customize" />
17
18
  <span v-else>{{ getActionText }}</span>
18
19
  </arg-text-btn>
19
20
  <arg-btn
@@ -32,7 +33,7 @@
32
33
  :round="actionType === 'save-analysis'"
33
34
  @onClick="sendAction()"
34
35
  >
35
- <slot v-if="customize" name="custom" />
36
+ <slot v-if="customize" />
36
37
  <span v-else>{{ getActionText }}</span>
37
38
  </arg-btn>
38
39
  </div>
@@ -80,6 +81,9 @@ export default defineComponent({
80
81
  case "scope":
81
82
  finalText = props.lang === "fr" ? "Mon scope" : "My scope";
82
83
  break;
84
+ case "clear":
85
+ finalText = props.lang === "fr" ? "Tout supprimer" : "Clear All";
86
+ break;
83
87
  case "see-analysis":
84
88
  finalText = props.lang === "fr" ? "Voir l'analyse" : "Go to analysis";
85
89
  break;
@@ -514,7 +514,7 @@ export default defineComponent({
514
514
  background: var(--pure-white);
515
515
  border: 1.5px solid var(--dividers);
516
516
  border-radius: 8px;
517
- width: calc(100% - 12px);
517
+ align-self: stretch;
518
518
  height: 40px;
519
519
  }
520
520
 
@@ -63,6 +63,7 @@
63
63
  <script>
64
64
  import argIcon from "./argIcon.vue";
65
65
  import {
66
+ onMounted,
66
67
  ref,
67
68
  computed,
68
69
  defineComponent
@@ -114,6 +115,11 @@ export default defineComponent({
114
115
  function send() {
115
116
  emit("onClick");
116
117
  }
118
+ onMounted(() => {
119
+ CSS.paintWorklet.addModule(
120
+ "https://www.unpkg.com/css-houdini-squircle/squircle.min.js"
121
+ );
122
+ });
117
123
  return { getIconColor, send };
118
124
  }
119
125
  });
@@ -132,7 +138,9 @@ export default defineComponent({
132
138
  }
133
139
 
134
140
  .full_width {
135
- width: 100%;
141
+ align-self: stretch;
142
+ display: flex;
143
+ flex: 1 1 0;
136
144
  }
137
145
  .fit_width {
138
146
  width: fit-content;
@@ -1,7 +1,9 @@
1
1
  <template>
2
2
  <div class="prmt_chart" :class="`${type}_arg_chart`">
3
- <!--<h1 class="prmt_chart_title"><slot name="title" /></h1>
4
- <div class="prmt_chart_source"><slot name="source" /></div>-->
3
+ <h1 v-if="!titleInChart" class="prmt_chart_title"><slot name="title" /></h1>
4
+ <div v-if="!titleInChart" class="prmt_chart_source">
5
+ <slot name="source" />
6
+ </div>
5
7
  <apexchart
6
8
  :type="chartType"
7
9
  :options="chartOptions"
@@ -93,6 +95,18 @@ export default defineComponent({
93
95
  tooltipOptions: {
94
96
  type: Object,
95
97
  default: void 0
98
+ },
99
+ titleInChart: {
100
+ type: Boolean,
101
+ default: false
102
+ },
103
+ chartTitle: {
104
+ type: String,
105
+ default: ""
106
+ },
107
+ chartSource: {
108
+ type: String,
109
+ default: ""
96
110
  }
97
111
  },
98
112
  setup(props) {
@@ -113,35 +127,39 @@ export default defineComponent({
113
127
  redrawOnParentResize: true,
114
128
  redrawOnWindowResize: true
115
129
  };
116
- props.options["title"] = {
117
- text: "My Chart",
118
- align: "left",
119
- margin: 0,
120
- offsetX: -10,
121
- offsetY: 0,
122
- floating: false,
123
- style: {
124
- fontSize: "18px",
125
- fontWeight: "bold",
126
- fontFamily: "Figtree, sans-serif",
127
- color: "#263238",
128
- lineHeight: "21px"
129
- }
130
- };
131
- props.options["subtitle"] = {
132
- text: "My source",
133
- align: "left",
134
- margin: 0,
135
- offsetX: -10,
136
- offsetY: 24,
137
- floating: false,
138
- style: {
139
- fontSize: "12px",
140
- fontWeight: "normal",
141
- fontFamily: "Figtree, sans-serif",
142
- color: "#2176ff"
143
- }
144
- };
130
+ if (props.titleInChart) {
131
+ props.options["title"] = {
132
+ text: props.chartTitle,
133
+ align: "left",
134
+ margin: 0,
135
+ offsetX: -10,
136
+ offsetY: 0,
137
+ floating: false,
138
+ style: {
139
+ fontSize: "18px",
140
+ fontWeight: "bold",
141
+ fontFamily: "Figtree, sans-serif",
142
+ color: "#263238",
143
+ lineHeight: "21px"
144
+ }
145
+ };
146
+ props.options["subtitle"] = {
147
+ text: props.chartSource,
148
+ align: "left",
149
+ margin: 0,
150
+ offsetX: -10,
151
+ offsetY: 24,
152
+ floating: false,
153
+ style: {
154
+ fontSize: "12px",
155
+ fontWeight: "normal",
156
+ fontFamily: "Figtree, sans-serif",
157
+ color: "#2176ff"
158
+ }
159
+ };
160
+ } else {
161
+ props.options["title"] = { align: "center" };
162
+ }
145
163
  if (props.colors) {
146
164
  props.options["colors"] = props.colors;
147
165
  }
@@ -49,6 +49,18 @@ declare const _default: import("vue").DefineComponent<{
49
49
  type: ObjectConstructor;
50
50
  default: undefined;
51
51
  };
52
+ titleInChart: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ chartTitle: {
57
+ type: StringConstructor;
58
+ default: string;
59
+ };
60
+ chartSource: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ };
52
64
  }, {
53
65
  percentage: (partialValue: any, totalValue: any) => number;
54
66
  chartKey: import("vue").Ref<number>;
@@ -105,6 +117,18 @@ declare const _default: import("vue").DefineComponent<{
105
117
  type: ObjectConstructor;
106
118
  default: undefined;
107
119
  };
120
+ titleInChart: {
121
+ type: BooleanConstructor;
122
+ default: boolean;
123
+ };
124
+ chartTitle: {
125
+ type: StringConstructor;
126
+ default: string;
127
+ };
128
+ chartSource: {
129
+ type: StringConstructor;
130
+ default: string;
131
+ };
108
132
  }>>, {
109
133
  options: Record<string, any>;
110
134
  width: string;
@@ -115,5 +139,8 @@ declare const _default: import("vue").DefineComponent<{
115
139
  french: boolean;
116
140
  hideLegend: boolean;
117
141
  tooltipOptions: Record<string, any>;
142
+ titleInChart: boolean;
143
+ chartTitle: string;
144
+ chartSource: string;
118
145
  }, {}>;
119
146
  export default _default;
@@ -21,7 +21,9 @@
21
21
  :color="iconColor"
22
22
  />
23
23
  </div>
24
- <p>{{ filterTitle }}</p>
24
+ <p :class="returnValue === false ? 'unselected' : ''">
25
+ {{ filterTitle }}
26
+ </p>
25
27
  <arg-tooltip
26
28
  v-if="infoIcon"
27
29
  :tooltip-text="tooltipText"
@@ -168,4 +170,7 @@ export default defineComponent({
168
170
  .flex {
169
171
  display: flex;
170
172
  }
173
+ .unselected {
174
+ color: var(--cool-grey) !important;
175
+ }
171
176
  </style>
@@ -17,7 +17,7 @@
17
17
  </p>
18
18
  <p class="filters_clear" @click.stop="clear()">{{ clearMsg }}</p>
19
19
  </div>
20
- <div class="oip_row v-center gap-8">
20
+ <div class="oip_row v-center gap-8 toggle_filter_card">
21
21
  <arg-icon
22
22
  name="CaretDown"
23
23
  size="20"
@@ -61,7 +61,7 @@ export default defineComponent({
61
61
  },
62
62
  emits: ["clearFilters", "saveScope"],
63
63
  setup(props, { emit }) {
64
- const filtersOpen = ref(false);
64
+ const filtersOpen = ref(true);
65
65
  function clear() {
66
66
  emit("clearFilters");
67
67
  }
@@ -80,7 +80,7 @@ export default defineComponent({
80
80
  <style scoped>
81
81
  .oip_filter_card {
82
82
  display: flex;
83
- padding: 16px 24px;
83
+ padding: 14px 24px;
84
84
  flex-direction: column;
85
85
  align-items: flex-start;
86
86
  border-radius: 8px;
@@ -100,13 +100,14 @@ export default defineComponent({
100
100
  }
101
101
 
102
102
  .filter_card_collapse {
103
- max-height: 26px;
103
+ max-height: 32px;
104
104
  overflow: hidden;
105
105
  background: rgba(245, 245, 249, 0.8);
106
106
  }
107
107
 
108
108
  .full-width {
109
- width: 100%;
109
+ align-self: stretch;
110
+ flex-basis: 100%;
110
111
  }
111
112
 
112
113
  .filter-icon {
@@ -127,13 +128,16 @@ export default defineComponent({
127
128
  .filters_amount {
128
129
  display: flex;
129
130
  padding: 2px 8px;
130
-
131
131
  flex-direction: column;
132
132
  justify-content: center;
133
133
  align-items: center;
134
134
  gap: 8px;
135
135
  border-radius: 16px;
136
136
  border: 1px solid var(--base-dividers, #ececf2);
137
+ font-size: 12px;
138
+ font-style: normal;
139
+ font-weight: 700;
140
+ line-height: normal;
137
141
  }
138
142
 
139
143
  .filters_clear,
@@ -165,4 +169,17 @@ export default defineComponent({
165
169
  align-items: flex-start;
166
170
  gap: 16px;
167
171
  }
172
+
173
+ .toggle_filter_card {
174
+ display: flex;
175
+ padding: 6px;
176
+ align-items: center;
177
+ gap: 6px;
178
+ border-radius: 4px;
179
+ background: transparent;
180
+ cursor: pointer;
181
+ }
182
+ .toggle_filter_card:hover {
183
+ background: var(--dividers) !important;
184
+ }
168
185
  </style>
@@ -1,42 +1,49 @@
1
1
  <template>
2
2
  <div class="oip_footer">
3
- <div class="oip_footer_text">
4
- <h2>Powered by</h2>
5
- <img src="https://rcd-media.com/tekkare/logos/tekkare_logo.svg" />
6
- </div>
3
+ <p>©2023 Tekkare®. All rights reserved</p>
4
+ <a href="https://openinnovationprogram.com/legal-notices" target="_blank"
5
+ >Terms of use</a
6
+ >
7
7
  </div>
8
8
  </template>
9
9
  <script>
10
10
  import {
11
11
  defineComponent
12
12
  } from "vue";
13
- import argIcon from "./argIcon.vue";
14
13
  import argStyle from "./argStyle.vue";
15
14
  export default defineComponent({
16
15
  name: "argFooter",
17
- components: { argIcon, argStyle }
16
+ components: { argStyle }
18
17
  });
19
18
  </script>
20
- <style>
19
+ <style scoped>
21
20
  .oip_footer {
21
+ display: flex;
22
+ flex-direction: row;
23
+ align-items: center;
24
+ justify-content: space-between;
22
25
  background: var(--background);
23
- padding: 24px 96px;
26
+ padding: 24px 84px;
24
27
  margin-top: 24px;
25
28
  box-shadow: 0px 4px 8px rgba(37, 99, 235, 0.04),
26
29
  0px 0px 2px rgba(37, 99, 235, 0.06), 0px 0px 1px rgba(37, 99, 235, 0.04);
27
30
  }
28
- .oip_footer_text {
29
- display: flex;
30
- flex-direction: row;
31
- justify-content: flex-end;
32
- gap: 24px;
33
- align-items: flex-end;
34
- }
35
- .oip_footer_text h2 {
31
+ p {
32
+ font-size: 14px;
36
33
  font-style: normal;
34
+ font-weight: 400;
35
+ line-height: 160%;
36
+ }
37
+
38
+ a {
37
39
  font-size: 14px;
38
- line-height: 16px;
39
- color: var(--independence);
40
- font-weight: normal;
40
+ font-style: normal;
41
+ font-weight: 500;
42
+ line-height: normal;
43
+ text-decoration-line: underline;
44
+ color: var(--primary) !important;
45
+ }
46
+ a:hover {
47
+ color: var(--primary-hover) !important;
41
48
  }
42
49
  </style>
@@ -31,7 +31,7 @@ export default defineComponent({
31
31
  <style scoped>
32
32
  .kpi_card {
33
33
  display: flex;
34
- width: calc(100% - 32px);
34
+ align-self: stretch;
35
35
  padding: 16px !important;
36
36
  align-items: center;
37
37
  justify-content: space-between;
@@ -27,12 +27,11 @@ export default defineComponent({
27
27
  }
28
28
  .arg_home_layout_body {
29
29
  min-height: calc(100vh - 77px);
30
- margin: 116px 32px 0px 32px;
30
+ margin: 116px 32px 95px 32px;
31
31
  max-width: 1200px;
32
- width: calc(100% - 64px);
33
32
  }
34
33
 
35
34
  .full_width_footer {
36
- width: calc(100% - 192px);
35
+ align-self: stretch;
37
36
  }
38
37
  </style>
@@ -60,9 +60,9 @@ export default defineComponent({
60
60
  <style>
61
61
  .arg_menu_link {
62
62
  display: flex;
63
- padding: 6px;
63
+ padding: 8px;
64
64
  align-items: center;
65
- gap: 6px;
65
+ gap: 8px;
66
66
  align-self: stretch;
67
67
  color: var(--independence);
68
68
  font-size: 14px;
@@ -78,7 +78,7 @@ export default defineComponent({
78
78
  flex-direction: column;
79
79
  align-items: flex-start;
80
80
  gap: 24px;
81
- width: calc(100% - 48px);
81
+ align-self: stretch;
82
82
  }
83
83
  .arg_scope_new,
84
84
  .arg_scope_save {
@@ -30,11 +30,19 @@ export default defineComponent({
30
30
  validator: (value) => {
31
31
  return ["en", "fr"].includes(value);
32
32
  }
33
+ },
34
+ cancelLink: {
35
+ type: String,
36
+ required: false,
37
+ default: null
33
38
  }
34
39
  },
35
- setup() {
40
+ setup(props) {
36
41
  const router = useRouter();
37
42
  function goBack() {
43
+ if (props.cancelLink !== null) {
44
+ router.push(props.cancelLink);
45
+ }
38
46
  router.back();
39
47
  }
40
48
  return {
@@ -8,6 +8,11 @@ declare const _default: import("vue").DefineComponent<{
8
8
  default: string;
9
9
  validator: (value: string) => boolean;
10
10
  };
11
+ cancelLink: {
12
+ type: StringConstructor;
13
+ required: false;
14
+ default: null;
15
+ };
11
16
  }, {
12
17
  router: import("vue-router").Router;
13
18
  goBack: () => void;
@@ -21,8 +26,14 @@ declare const _default: import("vue").DefineComponent<{
21
26
  default: string;
22
27
  validator: (value: string) => boolean;
23
28
  };
29
+ cancelLink: {
30
+ type: StringConstructor;
31
+ required: false;
32
+ default: null;
33
+ };
24
34
  }>>, {
25
35
  lang: string;
26
36
  scopeTitle: string;
37
+ cancelLink: string;
27
38
  }, {}>;
28
39
  export default _default;
@@ -29,10 +29,9 @@ export default defineComponent({
29
29
  min-height: calc(100vh - 77px);
30
30
  margin: 116px 32px 0px 32px;
31
31
  max-width: 1088px;
32
- width: calc(100% - 64px);
33
32
  }
34
33
 
35
34
  .full_width_footer {
36
- width: calc(100% - 192px);
35
+ align-self: stretch;
37
36
  }
38
37
  </style>
@@ -224,7 +224,7 @@ export default defineComponent({
224
224
  }
225
225
 
226
226
  .footer_action .footer_btn {
227
- width: calc(100% - 24px);
227
+ align-self: stretch;
228
228
  justify-content: center;
229
229
  white-space: wrap;
230
230
  text-align: center;
@@ -244,7 +244,7 @@ textarea,
244
244
  padding: 12px;
245
245
  margin: 5px 0px;
246
246
  outline: none !important;
247
- width: calc(100% - 25.5px);
247
+ align-self: stretch;
248
248
  font-family: "Figtree", sans-serif !important;
249
249
  height: 110px;
250
250
  }
@@ -79,9 +79,9 @@ export default defineComponent({
79
79
  background: var(--pure-white);
80
80
  border: 1.5px solid var(--dividers);
81
81
  border-radius: 8px;
82
- width: calc(100% - 24px);
82
+ align-self: stretch;
83
83
  margin: 5px 0px;
84
- height: 40px;
84
+ min-height: 40px;
85
85
  }
86
86
 
87
87
  .search-section {
@@ -154,7 +154,10 @@ export default defineComponent({
154
154
  font-weight: 400;
155
155
  line-height: 160%;
156
156
  color: var(--primary);
157
+ background: var(--transparent);
158
+ border-radius: 4px;
157
159
  }
160
+
158
161
  .arg_sidebar_title {
159
162
  display: flex;
160
163
  flex-direction: row;
@@ -184,6 +187,12 @@ export default defineComponent({
184
187
 
185
188
  .sidebar_toggle {
186
189
  cursor: pointer;
190
+ border-radius: 4px;
191
+ display: flex;
192
+ padding: 6px;
193
+ align-items: center;
194
+ justify-content: center;
195
+ background: transparent;
187
196
  }
188
197
 
189
198
  .link_menu_tooltip_icon {
@@ -192,4 +201,9 @@ export default defineComponent({
192
201
  .tooltip_display {
193
202
  display: flex !important;
194
203
  }
204
+
205
+ .sidebar_toggle:hover,
206
+ .arg_sidebar_home:hover {
207
+ background: var(--base-dividers, #ececf2) !important;
208
+ }
195
209
  </style>
@@ -130,6 +130,11 @@ button {
130
130
  width: 100%;
131
131
  }
132
132
 
133
+ .oip_filter_display {
134
+ display: flex;
135
+ flex-direction: column;
136
+ gap: 4px;
137
+ }
133
138
  /*** TEXT ***/
134
139
 
135
140
  .oip_kpi_big {
@@ -319,7 +324,8 @@ button {
319
324
  mask-image: paint(squircle);
320
325
  --squircle-radius: 8px;
321
326
  --squircle-smooth: 1;
322
- height: 100%;
327
+ align-self: stretch;
328
+ min-height: 100%;
323
329
  }
324
330
 
325
331
  .oip_primary-fill_shadow {
@@ -349,15 +355,18 @@ button {
349
355
  }
350
356
 
351
357
  .oip_btn_s {
352
- height: 32px;
358
+ display: flex;
359
+ min-height: 32px;
353
360
  }
354
361
 
355
362
  .oip_btn_m {
356
- height: 40px;
363
+ display: flex;
364
+ min-height: 40px;
357
365
  }
358
366
 
359
367
  .oip_full_btn {
360
- width: calc(100% - 36px) !important;
368
+ align-self: stretch !important;
369
+ flex: 1 1 0;
361
370
  }
362
371
 
363
372
  .oip_round_btn {
@@ -467,13 +476,7 @@ button {
467
476
 
468
477
  .oip_disable_button,
469
478
  .oip_disable_button:hover,
470
- .oip_disable_button:focus {
471
- background: var(--dividers) !important;
472
- border: 2px solid var(--dividers) !important;
473
- box-shadow: none !important;
474
- color: var(--wild-blue-yonder) !important;
475
- }
476
-
479
+ .oip_disable_button:focus,
477
480
  .oip_disable_icon_button,
478
481
  .oip_disable_icon_button:hover,
479
482
  .oip_disable_icon_button:focus {
@@ -481,6 +484,7 @@ button {
481
484
  border: 2px solid var(--dividers) !important;
482
485
  box-shadow: none !important;
483
486
  color: var(--wild-blue-yonder) !important;
487
+ cursor: initial !important;
484
488
  }
485
489
 
486
490
  .el-button + .el-button {
@@ -852,7 +856,6 @@ button {
852
856
  border-radius: 12px;
853
857
  background: var(--pure-white);
854
858
  box-shadow: var(--container-shadow);
855
- margin: 8px 0;
856
859
  }
857
860
 
858
861
  .oip_table_card {
@@ -10,6 +10,7 @@
10
10
 
11
11
  <script>
12
12
  import {
13
+ onMounted,
13
14
  defineComponent
14
15
  } from "vue";
15
16
  import argIcon from "./argIcon.vue";
@@ -26,6 +27,11 @@ export default defineComponent({
26
27
  function close() {
27
28
  emit("onClose");
28
29
  }
30
+ onMounted(() => {
31
+ CSS.paintWorklet.addModule(
32
+ "https://www.unpkg.com/css-houdini-squircle/squircle.min.js"
33
+ );
34
+ });
29
35
  return { close };
30
36
  }
31
37
  });
@@ -30,7 +30,7 @@ export default defineComponent({
30
30
  <style scoped>
31
31
  .prmt_tooltip {
32
32
  position: relative;
33
- display: inline-block;
33
+ display: flex;
34
34
  }
35
35
  .prmt_tooltip:hover .prmt_tooltip_text {
36
36
  visibility: visible;
@@ -61,12 +61,12 @@ export default defineComponent({
61
61
  }
62
62
 
63
63
  .prmt_tooltip .prmt_tooltip_text-right {
64
- top: -8px;
64
+ top: -9px;
65
65
  left: 110%;
66
66
  margin-left: 16px;
67
67
  }
68
68
  .prmt_tooltip .prmt_tooltip_text-left {
69
- top: -8px;
69
+ top: -9px;
70
70
  right: 110%;
71
71
  margin-right: 16px;
72
72
  }
@@ -5,7 +5,7 @@
5
5
  <div v-show="openTuto" class="arg_tuto_modal">
6
6
  <div class="arg_tuto_header">
7
7
  <arg-actions action-type="close" customize @onAction="closeTuto">
8
- <template #custom>
8
+ <template>
9
9
  <div class="oip_row v-center gap-6">
10
10
  <arg-icon name="X" size="20" />
11
11
  <p>Close</p>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.1.37",
3
+ "version": "0.1.38",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",