@tekkare/auriga 0.1.10 → 0.1.12

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.
Files changed (43) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/allFlags.vue +245 -0
  3. package/dist/runtime/components/allFlags.vue.d.ts +8 -0
  4. package/dist/runtime/components/argActions.vue +11 -6
  5. package/dist/runtime/components/argActions.vue.d.ts +12 -3
  6. package/dist/runtime/components/argChart.vue +109 -167
  7. package/dist/runtime/components/argChart.vue.d.ts +1 -1
  8. package/dist/runtime/components/argChartTableCard.vue +12 -2
  9. package/dist/runtime/components/argChartTableCard.vue.d.ts +22 -1
  10. package/dist/runtime/components/argComplexSelect.vue +1 -1
  11. package/dist/runtime/components/argDate.vue +77 -0
  12. package/dist/runtime/components/argDate.vue.d.ts +34 -0
  13. package/dist/runtime/components/argErrors.vue +168 -0
  14. package/dist/runtime/components/argErrors.vue.d.ts +56 -0
  15. package/dist/runtime/components/argFilterCard.vue +1 -0
  16. package/dist/runtime/components/argFlag.vue +447 -217
  17. package/dist/runtime/components/argFlag.vue.d.ts +4 -4
  18. package/dist/runtime/components/argHybridChart.vue +277 -0
  19. package/dist/runtime/components/argHybridChart.vue.d.ts +48 -0
  20. package/dist/runtime/components/argMainLayout.vue +1 -0
  21. package/dist/runtime/components/argMenuLink.vue +43 -15
  22. package/dist/runtime/components/argMenuLink.vue.d.ts +15 -4
  23. package/dist/runtime/components/argNumberInput.vue +223 -0
  24. package/dist/runtime/components/argNumberInput.vue.d.ts +57 -0
  25. package/dist/runtime/components/argSearchInput.vue +1 -2
  26. package/dist/runtime/components/argSearchInput.vue.d.ts +0 -2
  27. package/dist/runtime/components/argSimpleChart.vue +123 -0
  28. package/dist/runtime/components/argSimpleChart.vue.d.ts +32 -0
  29. package/dist/runtime/components/argSimpleInput.vue +99 -0
  30. package/dist/runtime/components/argSimpleInput.vue.d.ts +48 -0
  31. package/dist/runtime/components/argSmallAreaChart.vue +138 -0
  32. package/dist/runtime/components/argSmallAreaChart.vue.d.ts +122 -0
  33. package/dist/runtime/components/argSourceContainer.vue +34 -0
  34. package/dist/runtime/components/argSourceContainer.vue.d.ts +2 -0
  35. package/dist/runtime/components/argStyle.vue +8 -0
  36. package/dist/runtime/components/argTable.vue +45 -8
  37. package/dist/runtime/components/argTable.vue.d.ts +14 -2
  38. package/dist/runtime/components/argTags.vue +6 -4
  39. package/dist/runtime/components/argTrendIndicator.vue +82 -0
  40. package/dist/runtime/components/argTrendIndicator.vue.d.ts +23 -0
  41. package/dist/runtime/components/argTutoModal.vue +186 -0
  42. package/dist/runtime/components/argTutoModal.vue.d.ts +41 -0
  43. package/package.json +2 -1
@@ -6,7 +6,7 @@
6
6
  :value="searchKey"
7
7
  :placeHolderValue="getPlaceHolder"
8
8
  class="table_input"
9
- @submitSearch="searchSubmit = true"
9
+ @submitSearch="sendSearch"
10
10
  />
11
11
  <div :class="fullTableScroll ? 'full scroll_table' : 'full'">
12
12
  <div
@@ -107,7 +107,13 @@
107
107
  :name="columnTypeNonProps[valIndex]"
108
108
  v-bind:value="value"
109
109
  ></slot>
110
- <p v-else>{{ value }}</p>
110
+ <p v-else>
111
+ {{
112
+ typeof value === "number"
113
+ ? Intl.NumberFormat("us-US").format(value)
114
+ : value
115
+ }}
116
+ </p>
111
117
  </td>
112
118
  </tr>
113
119
  <tr
@@ -117,7 +123,10 @@
117
123
  :class="greyBG(contIndex) ? 'grey_bg' : 'white_bg'"
118
124
  >
119
125
  <td class="more_section" :colspan="heads.length.toString()">
120
- <slot name="showMore" v-bind:value="contIndex" />
126
+ <slot
127
+ name="showMore"
128
+ v-bind:value="[contIndex, finalTable[contIndex][0]]"
129
+ />
121
130
  </td>
122
131
  </tr>
123
132
  </template>
@@ -128,7 +137,11 @@
128
137
  </div>
129
138
  <div v-else-if="loadingData" class="empty_table">
130
139
  <arg-tekkare-loader v-if="loaderType === 'tekkare'" />
131
- <arg-data-loader v-else />
140
+ <arg-data-loader
141
+ v-else
142
+ :text="loaderValues[0]"
143
+ :sub-text="loaderValues[1]"
144
+ />
132
145
  </div>
133
146
  <div
134
147
  v-if="
@@ -198,6 +211,9 @@ import argIcon from "./argIcon.vue";
198
211
  import argNoData from "./argNoData.vue";
199
212
  import argDataLoader from "./argDataLoader.vue";
200
213
  import argTekkareLoader from "./argTekkareLoader.vue";
214
+ import argSearchInput from "./argSearchInput.vue";
215
+ import argTooltip from "./argTooltip.vue";
216
+ import argBtn from "./argBtn.vue";
201
217
  import {
202
218
  ref,
203
219
  computed,
@@ -206,7 +222,15 @@ import {
206
222
  } from "vue";
207
223
  export default defineComponent({
208
224
  name: "argTable",
209
- components: { argIcon, argNoData, argDataLoader, argTekkareLoader },
225
+ components: {
226
+ argIcon,
227
+ argNoData,
228
+ argDataLoader,
229
+ argTekkareLoader,
230
+ argSearchInput,
231
+ argTooltip,
232
+ argBtn
233
+ },
210
234
  props: {
211
235
  heads: {
212
236
  type: Array,
@@ -219,7 +243,7 @@ export default defineComponent({
219
243
  default: () => [{ values: Array }]
220
244
  },
221
245
  // data values
222
- pageSize: { type: Number, default: 3 },
246
+ pageSize: { type: Number, default: 10 },
223
247
  // number of rows to be displayed in table
224
248
  sort: { type: Boolean, default: true },
225
249
  // allow for table sorting
@@ -261,6 +285,10 @@ export default defineComponent({
261
285
  "Change or empty your search."
262
286
  ]
263
287
  },
288
+ loaderValues: {
289
+ type: Array,
290
+ default: () => ["Doing data science", "Thanks for waiting"]
291
+ },
264
292
  loadingData: {
265
293
  type: Boolean,
266
294
  default: false
@@ -278,7 +306,8 @@ export default defineComponent({
278
306
  default: "300"
279
307
  }
280
308
  },
281
- setup(props) {
309
+ emits: ["changeInputValue"],
310
+ setup(props, { emit }) {
282
311
  const dataValues = ref();
283
312
  const sortCol = ref();
284
313
  const sortDir = ref();
@@ -310,6 +339,9 @@ export default defineComponent({
310
339
  );
311
340
  watch(searchKey, (newSearchKey) => {
312
341
  setPage(1);
342
+ if (!props.searchFullWord || props.searchFullWord && newSearchKey.length === 0) {
343
+ emit("changeInputValue", newSearchKey);
344
+ }
313
345
  if (newSearchKey.length === 0) {
314
346
  searchSubmit.value = false;
315
347
  }
@@ -407,6 +439,10 @@ export default defineComponent({
407
439
  }
408
440
  searchIndex.value = index;
409
441
  }
442
+ function sendSearch() {
443
+ searchSubmit.value = true;
444
+ emit("changeInputValue", searchKey.value);
445
+ }
410
446
  function viewSearchInput(index) {
411
447
  if (searchIndex.value === index && showSearch) {
412
448
  return true;
@@ -618,7 +654,8 @@ export default defineComponent({
618
654
  resultCount,
619
655
  totalPages,
620
656
  getPlaceHolder,
621
- getHeight
657
+ getHeight,
658
+ sendSearch
622
659
  };
623
660
  }
624
661
  });
@@ -132,6 +132,10 @@ declare const _default: import("vue").DefineComponent<{
132
132
  type: ArrayConstructor;
133
133
  default: () => string[];
134
134
  };
135
+ loaderValues: {
136
+ type: ArrayConstructor;
137
+ default: () => string[];
138
+ };
135
139
  loadingData: {
136
140
  type: BooleanConstructor;
137
141
  default: boolean;
@@ -186,7 +190,8 @@ declare const _default: import("vue").DefineComponent<{
186
190
  totalPages: import("vue").ComputedRef<number>;
187
191
  getPlaceHolder: import("vue").ComputedRef<string>;
188
192
  getHeight: import("vue").ComputedRef<string>;
189
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
193
+ sendSearch: () => void;
194
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "changeInputValue"[], "changeInputValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
190
195
  heads: {
191
196
  type: {
192
197
  (arrayLength: number): string[];
@@ -320,6 +325,10 @@ declare const _default: import("vue").DefineComponent<{
320
325
  type: ArrayConstructor;
321
326
  default: () => string[];
322
327
  };
328
+ loaderValues: {
329
+ type: ArrayConstructor;
330
+ default: () => string[];
331
+ };
323
332
  loadingData: {
324
333
  type: BooleanConstructor;
325
334
  default: boolean;
@@ -336,7 +345,9 @@ declare const _default: import("vue").DefineComponent<{
336
345
  type: (StringConstructor | NumberConstructor)[];
337
346
  default: string;
338
347
  };
339
- }>>, {
348
+ }>> & {
349
+ onChangeInputValue?: ((...args: any[]) => any) | undefined;
350
+ }, {
340
351
  sort: boolean;
341
352
  search: boolean;
342
353
  contents: Object[];
@@ -349,6 +360,7 @@ declare const _default: import("vue").DefineComponent<{
349
360
  toggleDisplay: boolean;
350
361
  pagesPosition: string;
351
362
  noDataValues: unknown[];
363
+ loaderValues: unknown[];
352
364
  loadingData: boolean;
353
365
  loaderType: string;
354
366
  fullTableScroll: boolean;
@@ -1,8 +1,10 @@
1
1
  <template>
2
- <client-only><arg-style /></client-only>
3
- <div :class="`oip_tag is_${setStyle} have_close_${haveClose}`">
4
- <slot></slot>
5
- <arg-icon v-if="haveClose" name="X" size="14" @click="close()"></arg-icon>
2
+ <div>
3
+ <client-only><arg-style /></client-only>
4
+ <div :class="`oip_tag is_${setStyle} have_close_${haveClose}`">
5
+ <slot></slot>
6
+ <arg-icon v-if="haveClose" name="X" size="14" @click="close()"></arg-icon>
7
+ </div>
6
8
  </div>
7
9
  </template>
8
10
 
@@ -0,0 +1,82 @@
1
+ <template>
2
+ <div>
3
+ <div
4
+ v-if="isUp === false"
5
+ class="stats_trend_down"
6
+ :class="isGreenAndRed === false ? 'stats_none_green_down' : ''"
7
+ >
8
+ <arg-icon
9
+ name="ArrowDownRight"
10
+ size="16px"
11
+ :color="isGreenAndRed === false ? 'var(--purple)' : 'var(--alert)'"
12
+ />
13
+ </div>
14
+
15
+ <div
16
+ v-else-if="isUp === true"
17
+ class="stats_trend_up"
18
+ :class="isGreenAndRed === false ? 'stats_none_green_up' : ''"
19
+ >
20
+ <arg-icon
21
+ name="ArrowUpRight"
22
+ size="16px"
23
+ :color="isGreenAndRed === false ? 'var(--primary)' : 'var(--success)'"
24
+ />
25
+ </div>
26
+ </div>
27
+ </template>
28
+
29
+ <script>
30
+ import {
31
+ defineComponent
32
+ } from "vue";
33
+ import argIcon from "./argIcon.vue";
34
+ export default defineComponent({
35
+ name: "argTrendIndicator",
36
+ components: { argIcon },
37
+ props: {
38
+ isUp: { type: Boolean, default: true },
39
+ isGreenAndRed: { type: Boolean, default: false }
40
+ }
41
+ });
42
+ </script>
43
+
44
+ <style>
45
+ .stats_trend_down {
46
+ display: flex;
47
+ align-items: center;
48
+ justify-content: center;
49
+ border-radius: 100%;
50
+ width: 24px;
51
+ height: 24px;
52
+ background: rgba(251, 70, 84, 0.1);
53
+ margin-right: 5px;
54
+ }
55
+
56
+ .stats_trend_up {
57
+ display: flex;
58
+ align-items: center;
59
+ justify-content: center;
60
+ border-radius: 100%;
61
+ width: 24px;
62
+ height: 24px;
63
+ background: rgba(50, 209, 117, 0.1);
64
+ margin-right: 5px;
65
+ }
66
+
67
+ .stats_none_green_down {
68
+ background: rgba(161, 125, 239, 0.1);
69
+ }
70
+
71
+ .stats_none_green_up {
72
+ background: rgba(40, 70, 237, 0.1);
73
+ }
74
+
75
+ .trend_up_color {
76
+ color: var(--success);
77
+ }
78
+
79
+ .trend_down_color {
80
+ color: var(--alert);
81
+ }
82
+ </style>
@@ -0,0 +1,23 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ isUp: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ isGreenAndRed: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11
+ isUp: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ isGreenAndRed: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ }>>, {
20
+ isUp: boolean;
21
+ isGreenAndRed: boolean;
22
+ }, {}>;
23
+ export default _default;
@@ -0,0 +1,186 @@
1
+ <template>
2
+ <div
3
+ :class="['arg_tuto_modal_container', openTuto ? 'arg_tuto_modal_open' : '']"
4
+ >
5
+ <div v-show="openTuto" class="arg_tuto_modal">
6
+ <div class="arg_tuto_header">
7
+ <arg-actions action-type="close" customize @onClose="closeTuto">
8
+ <template #custom>
9
+ <div class="oip_row v-center gap-6">
10
+ <arg-icon name="X" size="20" />
11
+ <p>Close</p>
12
+ </div>
13
+ </template>
14
+ </arg-actions>
15
+
16
+ <h1>{{ title }}</h1>
17
+ <div class="oip_row v-center gap-8 pagination">
18
+ <arg-icon
19
+ name="CaretLeft"
20
+ size="20"
21
+ :color="currentPage - 1 > 0 ? '' : 'var(--cool-grey)'"
22
+ @click="prevPage()"
23
+ />
24
+ <p>{{ `${currentPage} / ${pageAmount}` }}</p>
25
+ <arg-icon name="CaretRight" size="20" @click="nextPage()" />
26
+ </div>
27
+ </div>
28
+ <div class="arg_tuto_body">
29
+ <div
30
+ v-for="index in pageAmount"
31
+ :key="index"
32
+ :class="index !== currentPage ? 'hide' : 'full'"
33
+ >
34
+ <slot :name="`page${index}`" />
35
+ </div>
36
+ </div>
37
+ <div class="arg_tuto_footer">
38
+ <div class="oip_row v-center gap-8 pagination">
39
+ <arg-icon
40
+ name="CaretLeft"
41
+ size="20"
42
+ :color="currentPage - 1 > 0 ? '' : 'var(--cool-grey)'"
43
+ @click="prevPage()"
44
+ />
45
+ <p>{{ `${currentPage} / ${pageAmount}` }}</p>
46
+ <arg-icon name="CaretRight" size="20" @click="nextPage()" />
47
+ </div>
48
+ </div>
49
+ </div>
50
+ </div>
51
+ </template>
52
+
53
+ <script>
54
+ import {
55
+ ref,
56
+ defineComponent
57
+ } from "vue";
58
+ import argIcon from "./argIcon.vue";
59
+ import argActions from "./argActions.vue";
60
+ export default defineComponent({
61
+ name: "argTutoModal",
62
+ components: { argIcon, argActions },
63
+ props: {
64
+ pageAmount: {
65
+ type: Number,
66
+ required: true
67
+ },
68
+ openTuto: {
69
+ type: Boolean,
70
+ default: false
71
+ },
72
+ title: {
73
+ type: String,
74
+ required: true,
75
+ default: "My Scope"
76
+ }
77
+ },
78
+ emits: ["onNextPage", "onClose"],
79
+ setup(props, { emit }) {
80
+ const currentPage = ref(1);
81
+ function closeTuto() {
82
+ emit("onClose");
83
+ }
84
+ function prevPage() {
85
+ if (currentPage.value > 1) {
86
+ currentPage.value -= 1;
87
+ }
88
+ }
89
+ function nextPage() {
90
+ if (currentPage.value < props.pageAmount) {
91
+ currentPage.value += 1;
92
+ }
93
+ }
94
+ return {
95
+ closeTuto,
96
+ currentPage,
97
+ prevPage,
98
+ nextPage
99
+ };
100
+ }
101
+ });
102
+ </script>
103
+
104
+ <style scoped>
105
+ .arg_tuto_modal_container {
106
+ background-color: transparent;
107
+ transition: all ease 0.5s;
108
+ position: fixed;
109
+ left: 0;
110
+ bottom: 0;
111
+ height: 0px;
112
+ width: 0px;
113
+ padding: 53px 82px;
114
+ z-index: -5;
115
+ }
116
+
117
+ .arg_tuto_modal_open {
118
+ z-index: 2000;
119
+ background-color: rgba(0, 0, 0, 0.4);
120
+ width: 100%;
121
+ height: calc(100% - 106px);
122
+ }
123
+
124
+ .arg_tuto_modal {
125
+ display: flex;
126
+ width: calc(100% - 164px);
127
+ height: 100%;
128
+ flex-direction: column;
129
+ align-items: flex-start;
130
+ flex-shrink: 0;
131
+ border-radius: var(--m, 16px);
132
+ background: var(--base-white, #fff);
133
+ }
134
+
135
+ .arg_tuto_header {
136
+ display: flex;
137
+ padding: var(--m, 16px);
138
+ justify-content: space-between;
139
+ align-items: center;
140
+ align-self: stretch;
141
+ border-bottom: 1px solid var(--base-dividers, #ececf2);
142
+ background: var(--base-background, #f5f5f9);
143
+ backdrop-filter: blur(12px);
144
+ border-top-left-radius: var(--m, 16px);
145
+ border-top-right-radius: var(--m, 16px);
146
+ }
147
+
148
+ .arg_tuto_header > h1 {
149
+ font-size: 14px;
150
+ font-style: normal;
151
+ font-weight: 700;
152
+ line-height: 160%;
153
+ }
154
+
155
+ .pagination > svg {
156
+ cursor: pointer;
157
+ }
158
+
159
+ .arg_tuto_body {
160
+ display: flex;
161
+ padding: 24px;
162
+ flex-direction: column;
163
+ align-items: center;
164
+ gap: 24px;
165
+ flex: 1 0 0;
166
+ align-self: stretch;
167
+ }
168
+
169
+ .arg_tuto_footer {
170
+ display: flex;
171
+ flex-direction: row;
172
+ justify-content: center;
173
+ align-items: center;
174
+ gap: var(--s, 8px);
175
+ flex-shrink: 0;
176
+ align-self: stretch;
177
+ height: 64px;
178
+ }
179
+ .hide {
180
+ display: none;
181
+ }
182
+ .full {
183
+ width: 60%;
184
+ height: 100%;
185
+ }
186
+ </style>
@@ -0,0 +1,41 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ pageAmount: {
3
+ type: NumberConstructor;
4
+ required: true;
5
+ };
6
+ openTuto: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ title: {
11
+ type: StringConstructor;
12
+ required: true;
13
+ default: string;
14
+ };
15
+ }, {
16
+ closeTuto: () => void;
17
+ currentPage: import("vue").Ref<number>;
18
+ prevPage: () => void;
19
+ nextPage: () => void;
20
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClose" | "onNextPage")[], "onClose" | "onNextPage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
21
+ pageAmount: {
22
+ type: NumberConstructor;
23
+ required: true;
24
+ };
25
+ openTuto: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ title: {
30
+ type: StringConstructor;
31
+ required: true;
32
+ default: string;
33
+ };
34
+ }>> & {
35
+ onOnClose?: ((...args: any[]) => any) | undefined;
36
+ onOnNextPage?: ((...args: any[]) => any) | undefined;
37
+ }, {
38
+ title: string;
39
+ openTuto: boolean;
40
+ }, {}>;
41
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -32,6 +32,7 @@
32
32
  "dependencies": {
33
33
  "@esbuild/darwin-x64": "^0.19.8",
34
34
  "@nuxt/kit": "^3.7.3",
35
+ "@pinia/nuxt": "^0.5.1",
35
36
  "apexcharts": "^3.43.0",
36
37
  "vue-apexcharts": "^1.6.2",
37
38
  "vue3-apexcharts": "^1.4.4"