@tekkare/auriga 0.1.10 → 0.1.11

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 (30) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/argActions.vue +11 -6
  3. package/dist/runtime/components/argActions.vue.d.ts +12 -3
  4. package/dist/runtime/components/argChart.vue +109 -167
  5. package/dist/runtime/components/argChart.vue.d.ts +1 -1
  6. package/dist/runtime/components/argDate.vue +77 -0
  7. package/dist/runtime/components/argDate.vue.d.ts +34 -0
  8. package/dist/runtime/components/argErrors.vue +167 -0
  9. package/dist/runtime/components/argErrors.vue.d.ts +54 -0
  10. package/dist/runtime/components/argFilterCard.vue +1 -0
  11. package/dist/runtime/components/argHybridChart.vue +277 -0
  12. package/dist/runtime/components/argHybridChart.vue.d.ts +48 -0
  13. package/dist/runtime/components/argMainLayout.vue +1 -0
  14. package/dist/runtime/components/argMenuLink.vue +43 -15
  15. package/dist/runtime/components/argMenuLink.vue.d.ts +15 -4
  16. package/dist/runtime/components/argNumberInput.vue +223 -0
  17. package/dist/runtime/components/argNumberInput.vue.d.ts +57 -0
  18. package/dist/runtime/components/argSimpleChart.vue +123 -0
  19. package/dist/runtime/components/argSimpleChart.vue.d.ts +32 -0
  20. package/dist/runtime/components/argSimpleInput.vue +94 -0
  21. package/dist/runtime/components/argSimpleInput.vue.d.ts +40 -0
  22. package/dist/runtime/components/argSmallAreaChart.vue +138 -0
  23. package/dist/runtime/components/argSmallAreaChart.vue.d.ts +122 -0
  24. package/dist/runtime/components/argStyle.vue +8 -0
  25. package/dist/runtime/components/argTags.vue +6 -4
  26. package/dist/runtime/components/argTrendIndicator.vue +82 -0
  27. package/dist/runtime/components/argTrendIndicator.vue.d.ts +23 -0
  28. package/dist/runtime/components/argTutoModal.vue +185 -0
  29. package/dist/runtime/components/argTutoModal.vue.d.ts +41 -0
  30. package/package.json +1 -1
@@ -0,0 +1,138 @@
1
+ <template>
2
+ <div>
3
+ <apexchart
4
+ :options="chartOptions"
5
+ :series="series"
6
+ :height="height"
7
+ :width="width"
8
+ :key="chartKey"
9
+ ></apexchart>
10
+ </div>
11
+ </template>
12
+ <script>
13
+ import {
14
+ onMounted,
15
+ ref,
16
+ watch,
17
+ defineComponent,
18
+ defineAsyncComponent
19
+ } from "vue";
20
+ const ApexCharts = defineAsyncComponent(() => import("vue3-apexcharts"));
21
+ export default defineComponent({
22
+ name: "argChart",
23
+ components: { apexchart: ApexCharts },
24
+ props: {
25
+ series: {
26
+ type: Array,
27
+ required: true
28
+ },
29
+ height: {
30
+ type: String,
31
+ default: "75"
32
+ },
33
+ width: {
34
+ type: String,
35
+ default: "200"
36
+ },
37
+ color: {
38
+ type: Array,
39
+ default: ["#22C55E"]
40
+ },
41
+ minValue: {
42
+ type: Number,
43
+ default: null
44
+ }
45
+ },
46
+ setup(props) {
47
+ const chartKey = ref(1);
48
+ const chartOptions = ref({
49
+ colors: props.color,
50
+ chart: {
51
+ type: "area",
52
+ toolbar: {
53
+ show: false
54
+ },
55
+ animations: { enabled: false }
56
+ },
57
+ dataLabels: {
58
+ enabled: false
59
+ },
60
+ stroke: {
61
+ curve: "smooth"
62
+ },
63
+ grid: {
64
+ show: false,
65
+ xaxis: {
66
+ lines: {
67
+ show: false
68
+ }
69
+ },
70
+ yaxis: {
71
+ lines: {
72
+ show: false
73
+ }
74
+ }
75
+ },
76
+ fill: {
77
+ colors: props.color,
78
+ type: "gradient",
79
+ gradient: {
80
+ shadeIntensity: 1,
81
+ opacityFrom: 0.5,
82
+ opacityTo: 0.5,
83
+ stops: [0, 100]
84
+ }
85
+ },
86
+ stroke: {
87
+ width: 1
88
+ },
89
+ xaxis: {
90
+ floating: true,
91
+ axisTicks: {
92
+ show: false
93
+ },
94
+ axisBorder: {
95
+ show: false
96
+ },
97
+ labels: {
98
+ show: false
99
+ }
100
+ },
101
+ yaxis: {
102
+ min: 0,
103
+ floating: true,
104
+ axisTicks: {
105
+ show: false
106
+ },
107
+ axisBorder: {
108
+ show: false
109
+ },
110
+ labels: {
111
+ show: false
112
+ }
113
+ },
114
+ plotOptions: {
115
+ area: {
116
+ fillTo: "origin"
117
+ }
118
+ }
119
+ });
120
+ watch(
121
+ () => props.series,
122
+ (new_series) => {
123
+ chartKey.value += 1;
124
+ }
125
+ );
126
+ onMounted(() => {
127
+ if (props.minValue !== null) {
128
+ chartOptions.value.yaxis.min = props.minValue;
129
+ } else
130
+ chartOptions.value.yaxis.min = Math.min(...props.series[0].data) - 30;
131
+ });
132
+ return {
133
+ chartOptions,
134
+ chartKey
135
+ };
136
+ }
137
+ });
138
+ </script>
@@ -0,0 +1,122 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ series: {
3
+ type: ArrayConstructor;
4
+ required: true;
5
+ };
6
+ height: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ width: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ color: {
15
+ type: ArrayConstructor;
16
+ default: string[];
17
+ };
18
+ minValue: {
19
+ type: NumberConstructor;
20
+ default: null;
21
+ };
22
+ }, {
23
+ chartOptions: import("vue").Ref<{
24
+ colors: unknown[];
25
+ chart: {
26
+ type: string;
27
+ toolbar: {
28
+ show: boolean;
29
+ };
30
+ animations: {
31
+ enabled: boolean;
32
+ };
33
+ };
34
+ dataLabels: {
35
+ enabled: boolean;
36
+ };
37
+ stroke: {
38
+ width: number;
39
+ };
40
+ grid: {
41
+ show: boolean;
42
+ xaxis: {
43
+ lines: {
44
+ show: boolean;
45
+ };
46
+ };
47
+ yaxis: {
48
+ lines: {
49
+ show: boolean;
50
+ };
51
+ };
52
+ };
53
+ fill: {
54
+ colors: unknown[];
55
+ type: string;
56
+ gradient: {
57
+ shadeIntensity: number;
58
+ opacityFrom: number;
59
+ opacityTo: number;
60
+ stops: number[];
61
+ };
62
+ };
63
+ xaxis: {
64
+ floating: boolean;
65
+ axisTicks: {
66
+ show: boolean;
67
+ };
68
+ axisBorder: {
69
+ show: boolean;
70
+ };
71
+ labels: {
72
+ show: boolean;
73
+ };
74
+ };
75
+ yaxis: {
76
+ min: number;
77
+ floating: boolean;
78
+ axisTicks: {
79
+ show: boolean;
80
+ };
81
+ axisBorder: {
82
+ show: boolean;
83
+ };
84
+ labels: {
85
+ show: boolean;
86
+ };
87
+ };
88
+ plotOptions: {
89
+ area: {
90
+ fillTo: string;
91
+ };
92
+ };
93
+ }>;
94
+ chartKey: import("vue").Ref<number>;
95
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
96
+ series: {
97
+ type: ArrayConstructor;
98
+ required: true;
99
+ };
100
+ height: {
101
+ type: StringConstructor;
102
+ default: string;
103
+ };
104
+ width: {
105
+ type: StringConstructor;
106
+ default: string;
107
+ };
108
+ color: {
109
+ type: ArrayConstructor;
110
+ default: string[];
111
+ };
112
+ minValue: {
113
+ type: NumberConstructor;
114
+ default: null;
115
+ };
116
+ }>>, {
117
+ width: string;
118
+ height: string;
119
+ color: unknown[];
120
+ minValue: number;
121
+ }, {}>;
122
+ export default _default;
@@ -1023,4 +1023,12 @@ button {
1023
1023
  .arg_sub_menu .auriga_menu_item {
1024
1024
  padding-left: 24px !important;
1025
1025
  }
1026
+
1027
+ .arg_tuto_content {
1028
+ display: flex;
1029
+ flex-direction: column;
1030
+ align-items: flex-start;
1031
+ gap: 24px;
1032
+ height: 100%;
1033
+ }
1026
1034
  </style>
@@ -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,185 @@
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
+ width: 100%;
110
+ height: 100%;
111
+ left: 0;
112
+ top: 0;
113
+ bottom: 0;
114
+ padding: 53px 82px;
115
+ z-index: 0;
116
+ }
117
+
118
+ .arg_tuto_modal_open {
119
+ z-index: 2000;
120
+ background-color: rgba(0, 0, 0, 0.4);
121
+ }
122
+
123
+ .arg_tuto_modal {
124
+ display: flex;
125
+ width: calc(100% - 164px);
126
+ height: calc(100% - 106px);
127
+ flex-direction: column;
128
+ align-items: flex-start;
129
+ flex-shrink: 0;
130
+ border-radius: var(--m, 16px);
131
+ background: var(--base-white, #fff);
132
+ }
133
+
134
+ .arg_tuto_header {
135
+ display: flex;
136
+ padding: var(--m, 16px);
137
+ justify-content: space-between;
138
+ align-items: center;
139
+ align-self: stretch;
140
+ border-bottom: 1px solid var(--base-dividers, #ececf2);
141
+ background: var(--base-background, #f5f5f9);
142
+ backdrop-filter: blur(12px);
143
+ border-top-left-radius: var(--m, 16px);
144
+ border-top-right-radius: var(--m, 16px);
145
+ }
146
+
147
+ .arg_tuto_header > h1 {
148
+ font-size: 14px;
149
+ font-style: normal;
150
+ font-weight: 700;
151
+ line-height: 160%;
152
+ }
153
+
154
+ .pagination > svg {
155
+ cursor: pointer;
156
+ }
157
+
158
+ .arg_tuto_body {
159
+ display: flex;
160
+ padding: 24px;
161
+ flex-direction: column;
162
+ align-items: center;
163
+ gap: 24px;
164
+ flex: 1 0 0;
165
+ align-self: stretch;
166
+ }
167
+
168
+ .arg_tuto_footer {
169
+ display: flex;
170
+ flex-direction: row;
171
+ justify-content: center;
172
+ align-items: center;
173
+ gap: var(--s, 8px);
174
+ flex-shrink: 0;
175
+ align-self: stretch;
176
+ height: 64px;
177
+ }
178
+ .hide {
179
+ display: none;
180
+ }
181
+ .full {
182
+ width: 60%;
183
+ height: 100%;
184
+ }
185
+ </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.11",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",