@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.
- package/dist/module.json +1 -1
- package/dist/runtime/components/argActions.vue +11 -6
- package/dist/runtime/components/argActions.vue.d.ts +12 -3
- package/dist/runtime/components/argChart.vue +109 -167
- package/dist/runtime/components/argChart.vue.d.ts +1 -1
- package/dist/runtime/components/argDate.vue +77 -0
- package/dist/runtime/components/argDate.vue.d.ts +34 -0
- package/dist/runtime/components/argErrors.vue +167 -0
- package/dist/runtime/components/argErrors.vue.d.ts +54 -0
- package/dist/runtime/components/argFilterCard.vue +1 -0
- package/dist/runtime/components/argHybridChart.vue +277 -0
- package/dist/runtime/components/argHybridChart.vue.d.ts +48 -0
- package/dist/runtime/components/argMainLayout.vue +1 -0
- package/dist/runtime/components/argMenuLink.vue +43 -15
- package/dist/runtime/components/argMenuLink.vue.d.ts +15 -4
- package/dist/runtime/components/argNumberInput.vue +223 -0
- package/dist/runtime/components/argNumberInput.vue.d.ts +57 -0
- package/dist/runtime/components/argSimpleChart.vue +123 -0
- package/dist/runtime/components/argSimpleChart.vue.d.ts +32 -0
- package/dist/runtime/components/argSimpleInput.vue +94 -0
- package/dist/runtime/components/argSimpleInput.vue.d.ts +40 -0
- package/dist/runtime/components/argSmallAreaChart.vue +138 -0
- package/dist/runtime/components/argSmallAreaChart.vue.d.ts +122 -0
- package/dist/runtime/components/argStyle.vue +8 -0
- package/dist/runtime/components/argTags.vue +6 -4
- package/dist/runtime/components/argTrendIndicator.vue +82 -0
- package/dist/runtime/components/argTrendIndicator.vue.d.ts +23 -0
- package/dist/runtime/components/argTutoModal.vue +185 -0
- package/dist/runtime/components/argTutoModal.vue.d.ts +41 -0
- package/package.json +1 -1
|
@@ -1,30 +1,58 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
<div>
|
|
3
|
+
<nuxt-link v-if="!isAction" :to="to" class="arg_menu_link">
|
|
4
|
+
<arg-tooltip
|
|
5
|
+
:tooltip-text="label"
|
|
6
|
+
:disable="sidebarOpen"
|
|
7
|
+
dir="right"
|
|
8
|
+
:class="[
|
|
9
|
+
'tooltip_display',
|
|
10
|
+
sidebarOpen ? '' : 'link_menu_tooltip_icon',
|
|
11
|
+
]"
|
|
12
|
+
>
|
|
13
|
+
<arg-icon :name="icon" color="var(--cool-grey)" size="20" />
|
|
14
|
+
</arg-tooltip>
|
|
15
|
+
<span v-show="sidebarOpen">{{ label }}</span>
|
|
16
|
+
</nuxt-link>
|
|
17
|
+
<div v-else class="arg_menu_link" @click="sendAction()">
|
|
18
|
+
<arg-tooltip
|
|
19
|
+
:tooltip-text="label"
|
|
20
|
+
:disable="sidebarOpen"
|
|
21
|
+
dir="right"
|
|
22
|
+
:class="[
|
|
23
|
+
'tooltip_display',
|
|
24
|
+
sidebarOpen ? '' : 'link_menu_tooltip_icon',
|
|
25
|
+
]"
|
|
26
|
+
>
|
|
27
|
+
<arg-icon :name="icon" color="var(--cool-grey)" size="20" />
|
|
28
|
+
</arg-tooltip>
|
|
29
|
+
<span v-show="sidebarOpen">{{ label }}</span>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
13
32
|
</template>
|
|
14
33
|
<script>
|
|
15
34
|
import {
|
|
16
35
|
defineComponent
|
|
17
36
|
} from "vue";
|
|
18
37
|
import argIcon from "./argIcon.vue";
|
|
19
|
-
import argStyle from "./argStyle.vue";
|
|
20
38
|
export default defineComponent({
|
|
21
39
|
name: "argMenuLink",
|
|
22
|
-
components: { argIcon
|
|
40
|
+
components: { argIcon },
|
|
23
41
|
props: {
|
|
24
42
|
icon: { type: String, required: true },
|
|
25
43
|
label: { type: String, required: true },
|
|
26
|
-
to: { type: String,
|
|
27
|
-
sidebarOpen: { type: Boolean, default: true }
|
|
44
|
+
to: { type: String, default: "/" },
|
|
45
|
+
sidebarOpen: { type: Boolean, default: true },
|
|
46
|
+
isAction: { type: Boolean, default: false }
|
|
47
|
+
},
|
|
48
|
+
emits: ["onClick"],
|
|
49
|
+
setup(props, { emit }) {
|
|
50
|
+
function sendAction() {
|
|
51
|
+
emit("onClick");
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
sendAction
|
|
55
|
+
};
|
|
28
56
|
}
|
|
29
57
|
});
|
|
30
58
|
</script>
|
|
@@ -9,14 +9,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
};
|
|
10
10
|
to: {
|
|
11
11
|
type: StringConstructor;
|
|
12
|
-
required: true;
|
|
13
12
|
default: string;
|
|
14
13
|
};
|
|
15
14
|
sidebarOpen: {
|
|
16
15
|
type: BooleanConstructor;
|
|
17
16
|
default: boolean;
|
|
18
17
|
};
|
|
19
|
-
|
|
18
|
+
isAction: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
sendAction: () => void;
|
|
24
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClick"[], "onClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
25
|
icon: {
|
|
21
26
|
type: StringConstructor;
|
|
22
27
|
required: true;
|
|
@@ -27,15 +32,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
32
|
};
|
|
28
33
|
to: {
|
|
29
34
|
type: StringConstructor;
|
|
30
|
-
required: true;
|
|
31
35
|
default: string;
|
|
32
36
|
};
|
|
33
37
|
sidebarOpen: {
|
|
34
38
|
type: BooleanConstructor;
|
|
35
39
|
default: boolean;
|
|
36
40
|
};
|
|
37
|
-
|
|
41
|
+
isAction: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
}>> & {
|
|
46
|
+
onOnClick?: ((...args: any[]) => any) | undefined;
|
|
47
|
+
}, {
|
|
38
48
|
sidebarOpen: boolean;
|
|
39
49
|
to: string;
|
|
50
|
+
isAction: boolean;
|
|
40
51
|
}, {}>;
|
|
41
52
|
export default _default;
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="['input_number_section', typing ? 'open' : '']" @click.stop>
|
|
3
|
+
<p class="oip_filter_label">{{ inputLabel }}</p>
|
|
4
|
+
<div class="input_number_box">
|
|
5
|
+
<div
|
|
6
|
+
class="input_number_action action_left"
|
|
7
|
+
@click="changeValueClick(-stepValue)"
|
|
8
|
+
>
|
|
9
|
+
<arg-icon name="Minus" color="var(--cool-grey)" size="16" />
|
|
10
|
+
</div>
|
|
11
|
+
<input
|
|
12
|
+
type="number"
|
|
13
|
+
:max="maxValue === -1 ? 0 : maxValue"
|
|
14
|
+
:value="returnValue"
|
|
15
|
+
class="number_input_style"
|
|
16
|
+
@input="changeInput"
|
|
17
|
+
/>
|
|
18
|
+
<div
|
|
19
|
+
class="input_number_action action_right"
|
|
20
|
+
@click="changeValueClick(stepValue)"
|
|
21
|
+
>
|
|
22
|
+
<arg-icon name="Plus" color="var(--cool-grey)" size="16" />
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<script>
|
|
29
|
+
import { toInteger } from "lodash";
|
|
30
|
+
import argIcon from "./argIcon.vue";
|
|
31
|
+
import {
|
|
32
|
+
onMounted,
|
|
33
|
+
ref,
|
|
34
|
+
watch,
|
|
35
|
+
defineComponent
|
|
36
|
+
} from "vue";
|
|
37
|
+
export default defineComponent({
|
|
38
|
+
name: "argNumberInput",
|
|
39
|
+
components: { argIcon },
|
|
40
|
+
props: {
|
|
41
|
+
inputLabel: {
|
|
42
|
+
type: String,
|
|
43
|
+
required: true
|
|
44
|
+
},
|
|
45
|
+
defaultValue: {
|
|
46
|
+
type: Number,
|
|
47
|
+
default: 1
|
|
48
|
+
},
|
|
49
|
+
maxValue: {
|
|
50
|
+
type: Number,
|
|
51
|
+
default: -1
|
|
52
|
+
},
|
|
53
|
+
hasNegativeValue: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: false
|
|
56
|
+
},
|
|
57
|
+
stepValue: {
|
|
58
|
+
type: Number,
|
|
59
|
+
default: 1
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
emits: ["update:Number", "changeValue"],
|
|
63
|
+
setup(props, { emit }) {
|
|
64
|
+
const returnValue = ref(1);
|
|
65
|
+
const typing = ref(false);
|
|
66
|
+
onMounted(() => {
|
|
67
|
+
returnValue.value = props.defaultValue;
|
|
68
|
+
emit("update:Number", returnValue.value);
|
|
69
|
+
emit("changeValue", returnValue.value);
|
|
70
|
+
});
|
|
71
|
+
watch(
|
|
72
|
+
() => props.defaultValue,
|
|
73
|
+
(new_default_value) => {
|
|
74
|
+
returnValue.value = new_default_value;
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
function changeInput(event) {
|
|
78
|
+
if (event.target !== null) {
|
|
79
|
+
if (props.maxValue !== -1 && event.target.value > props.maxValue) {
|
|
80
|
+
event.target.value = props.maxValue;
|
|
81
|
+
} else if (props.hasNegativeValue === false && event.target.value < 0) {
|
|
82
|
+
event.target.value = 0;
|
|
83
|
+
}
|
|
84
|
+
returnValue.value = toInteger(event.target.value);
|
|
85
|
+
emit("update:Number", returnValue.value);
|
|
86
|
+
emit("changeValue", returnValue.value);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function changeValueClick(value) {
|
|
90
|
+
if (props.maxValue !== -1 && returnValue.value + value > props.maxValue) {
|
|
91
|
+
returnValue.value = props.maxValue;
|
|
92
|
+
} else if (props.hasNegativeValue === false && returnValue.value + value < 0) {
|
|
93
|
+
returnValue.value = 0;
|
|
94
|
+
} else
|
|
95
|
+
returnValue.value += value;
|
|
96
|
+
emit("update:Number", returnValue.value);
|
|
97
|
+
emit("changeValue", returnValue.value);
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
returnValue,
|
|
101
|
+
typing,
|
|
102
|
+
changeInput,
|
|
103
|
+
changeValueClick
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
</script>
|
|
108
|
+
|
|
109
|
+
<style scoped>
|
|
110
|
+
.input_number_box .input_number_action.action_left:hover,
|
|
111
|
+
.input_number_box .input_number_action.action_right:hover {
|
|
112
|
+
border: 1.5px solid rgba(33, 118, 255, 0.2) !important;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.input_number_box .input_number_action.action_left:hover svg,
|
|
116
|
+
.input_number_box .input_number_action.action_right:hover svg {
|
|
117
|
+
color: var(--primary) !important;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.input_number_box:focus-within {
|
|
121
|
+
border: 1.5px solid var(--primary) !important;
|
|
122
|
+
box-shadow: 0px 0px 0px 4px rgba(33, 118, 255, 0.1) !important;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.input_number_box:focus-within .input_number_action.action_left {
|
|
126
|
+
top: 0px !important;
|
|
127
|
+
left: 0px !important;
|
|
128
|
+
}
|
|
129
|
+
.input_number_box:focus-within .input_number_action.action_right {
|
|
130
|
+
top: 0px !important;
|
|
131
|
+
right: 0px !important;
|
|
132
|
+
}
|
|
133
|
+
.input_number_box:focus-within {
|
|
134
|
+
z-index: 9999 !important;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.input_number_box:focus-within .input_number_action.action_left,
|
|
138
|
+
.input_number_box:focus-within
|
|
139
|
+
.input_number_box
|
|
140
|
+
.input_number_action.action_left:hover {
|
|
141
|
+
border-top: 1.5px transparent !important;
|
|
142
|
+
border-left: 1.5px transparent !important;
|
|
143
|
+
border-bottom: 1.5px transparent !important;
|
|
144
|
+
}
|
|
145
|
+
.input_number_box:focus-within .input_number_action.action_right,
|
|
146
|
+
.input_number_box:focus-within
|
|
147
|
+
.input_number_box
|
|
148
|
+
.input_number_action.action_right:hover {
|
|
149
|
+
border-top: 1.5px transparent !important;
|
|
150
|
+
border-right: 1.5px transparent !important;
|
|
151
|
+
border-bottom: 1.5px transparent !important;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.input_number_section {
|
|
155
|
+
display: flex;
|
|
156
|
+
flex-direction: column;
|
|
157
|
+
align-items: flex-start;
|
|
158
|
+
padding: 0px;
|
|
159
|
+
gap: 4px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.input_number_box {
|
|
163
|
+
display: flex;
|
|
164
|
+
flex-direction: row;
|
|
165
|
+
align-items: center;
|
|
166
|
+
padding: 12px 48px;
|
|
167
|
+
gap: 8px;
|
|
168
|
+
background: var(--pure-white);
|
|
169
|
+
border: 1.5px solid var(--dividers);
|
|
170
|
+
border-radius: 8px;
|
|
171
|
+
position: relative;
|
|
172
|
+
z-index: 1;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.input_number_action {
|
|
176
|
+
position: absolute;
|
|
177
|
+
display: flex;
|
|
178
|
+
flex-direction: row;
|
|
179
|
+
justify-content: center;
|
|
180
|
+
align-items: center;
|
|
181
|
+
padding: 12px;
|
|
182
|
+
gap: 8px;
|
|
183
|
+
background: var(--pure-white);
|
|
184
|
+
border: 1.5px solid var(--dividers);
|
|
185
|
+
border-radius: 8px;
|
|
186
|
+
z-index: 2;
|
|
187
|
+
cursor: pointer;
|
|
188
|
+
}
|
|
189
|
+
.action_right {
|
|
190
|
+
top: -1px;
|
|
191
|
+
right: -1px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.action_left {
|
|
195
|
+
top: -1px;
|
|
196
|
+
left: -1px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.number_input_style {
|
|
200
|
+
border: none;
|
|
201
|
+
text-align: center;
|
|
202
|
+
max-width: 127.5px;
|
|
203
|
+
height: 16px;
|
|
204
|
+
padding: 0px !important;
|
|
205
|
+
font-weight: 500;
|
|
206
|
+
font-size: 14px;
|
|
207
|
+
line-height: 16px;
|
|
208
|
+
color: var(--independence);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.number_input_style:focus-visible {
|
|
212
|
+
border: none;
|
|
213
|
+
outline: none;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
input[type="number"]::-webkit-inner-spin-button {
|
|
217
|
+
-webkit-appearance: none;
|
|
218
|
+
}
|
|
219
|
+
input[type="number"] {
|
|
220
|
+
-moz-appearance: textfield;
|
|
221
|
+
appearance: textfield;
|
|
222
|
+
}
|
|
223
|
+
</style>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
inputLabel: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
defaultValue: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
maxValue: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
hasNegativeValue: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
stepValue: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
returnValue: import("vue").Ref<number>;
|
|
24
|
+
typing: import("vue").Ref<boolean>;
|
|
25
|
+
changeInput: (event: any) => void;
|
|
26
|
+
changeValueClick: (value: number) => void;
|
|
27
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("changeValue" | "update:Number")[], "changeValue" | "update:Number", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
inputLabel: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
defaultValue: {
|
|
33
|
+
type: NumberConstructor;
|
|
34
|
+
default: number;
|
|
35
|
+
};
|
|
36
|
+
maxValue: {
|
|
37
|
+
type: NumberConstructor;
|
|
38
|
+
default: number;
|
|
39
|
+
};
|
|
40
|
+
hasNegativeValue: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
stepValue: {
|
|
45
|
+
type: NumberConstructor;
|
|
46
|
+
default: number;
|
|
47
|
+
};
|
|
48
|
+
}>> & {
|
|
49
|
+
onChangeValue?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
"onUpdate:Number"?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
}, {
|
|
52
|
+
maxValue: number;
|
|
53
|
+
defaultValue: number;
|
|
54
|
+
hasNegativeValue: boolean;
|
|
55
|
+
stepValue: number;
|
|
56
|
+
}, {}>;
|
|
57
|
+
export default _default;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<h1 class="prmt_simple_chart_title"><slot name="title" /></h1>
|
|
4
|
+
<div class="prmt_simple_chart__bar_group">
|
|
5
|
+
<div
|
|
6
|
+
class="prmt_simple_chart__bar"
|
|
7
|
+
v-for="(val, index) in series"
|
|
8
|
+
:key="index"
|
|
9
|
+
:style="{
|
|
10
|
+
width: (100 * val) / seriesTotal + '%',
|
|
11
|
+
background: colors[index],
|
|
12
|
+
}"
|
|
13
|
+
></div>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="prmt_simple_chart__categories_group">
|
|
16
|
+
<div
|
|
17
|
+
class="prmt_simple_chart__category oip_row space-between v-center"
|
|
18
|
+
v-for="(category, index) in categories"
|
|
19
|
+
:key="index"
|
|
20
|
+
>
|
|
21
|
+
<div class="oip_row gap-4 v-center">
|
|
22
|
+
<div
|
|
23
|
+
class="prmt_simple_chart__category_color"
|
|
24
|
+
:style="{ background: colors[index] }"
|
|
25
|
+
></div>
|
|
26
|
+
<h2 class="prmt_simple_chart__category_name">{{ category }}</h2>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="oip_row gap-4 v-center">
|
|
29
|
+
<h2 class="prmt_simple_chart__category_value">
|
|
30
|
+
{{
|
|
31
|
+
new Intl.NumberFormat("fr-FR")
|
|
32
|
+
.format(series[index])
|
|
33
|
+
.replace(",", ".")
|
|
34
|
+
}}
|
|
35
|
+
</h2>
|
|
36
|
+
<h3 class="prmt_simple_chart__category_percentage">
|
|
37
|
+
({{ ((100 * series[index]) / seriesTotal).toFixed(1) }}%)
|
|
38
|
+
</h3>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
|
44
|
+
<script>
|
|
45
|
+
import {
|
|
46
|
+
computed,
|
|
47
|
+
defineComponent
|
|
48
|
+
} from "vue";
|
|
49
|
+
export default defineComponent({
|
|
50
|
+
name: "argSimpleChart",
|
|
51
|
+
props: {
|
|
52
|
+
series: {
|
|
53
|
+
type: Array,
|
|
54
|
+
required: true
|
|
55
|
+
},
|
|
56
|
+
categories: {
|
|
57
|
+
type: Array,
|
|
58
|
+
required: true
|
|
59
|
+
},
|
|
60
|
+
colors: {
|
|
61
|
+
type: Array,
|
|
62
|
+
default: () => ["#a17def", "#fda929", "#3ad9d8", "#f55a8d"]
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
setup(props) {
|
|
66
|
+
const seriesTotal = computed(() => {
|
|
67
|
+
return props.series.reduce((a, b) => a + b, 0);
|
|
68
|
+
});
|
|
69
|
+
return {
|
|
70
|
+
seriesTotal
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
</script>
|
|
75
|
+
<style scoped>
|
|
76
|
+
.prmt_simple_chart_title {
|
|
77
|
+
font-style: normal;
|
|
78
|
+
font-weight: 400;
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
line-height: 14px;
|
|
81
|
+
color: var(--cool-grey);
|
|
82
|
+
margin-bottom: 4px;
|
|
83
|
+
}
|
|
84
|
+
.prmt_simple_chart__bar_group {
|
|
85
|
+
display: flex;
|
|
86
|
+
gap: 4px;
|
|
87
|
+
}
|
|
88
|
+
.prmt_simple_chart__bar {
|
|
89
|
+
height: 10px;
|
|
90
|
+
border-radius: 20px;
|
|
91
|
+
}
|
|
92
|
+
.prmt_simple_chart__categories_group {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
gap: 13px;
|
|
96
|
+
margin-top: 13px;
|
|
97
|
+
}
|
|
98
|
+
.prmt_simple_chart__category_name {
|
|
99
|
+
font-style: normal;
|
|
100
|
+
font-weight: 400;
|
|
101
|
+
font-size: 12px;
|
|
102
|
+
line-height: 14px;
|
|
103
|
+
color: var(--independence);
|
|
104
|
+
}
|
|
105
|
+
.prmt_simple_chart__category_value {
|
|
106
|
+
font-style: normal;
|
|
107
|
+
font-weight: 500;
|
|
108
|
+
font-size: 14px;
|
|
109
|
+
text-align: right;
|
|
110
|
+
color: var(--independence);
|
|
111
|
+
}
|
|
112
|
+
.prmt_simple_chart__category_percentage {
|
|
113
|
+
font-style: normal;
|
|
114
|
+
font-weight: 400;
|
|
115
|
+
font-size: 12px;
|
|
116
|
+
color: var(--independence);
|
|
117
|
+
}
|
|
118
|
+
.prmt_simple_chart__category_color {
|
|
119
|
+
width: 6px;
|
|
120
|
+
height: 6px;
|
|
121
|
+
border-radius: 50%;
|
|
122
|
+
}
|
|
123
|
+
</style>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
series: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
categories: {
|
|
7
|
+
type: ArrayConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
colors: {
|
|
11
|
+
type: ArrayConstructor;
|
|
12
|
+
default: () => string[];
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
seriesTotal: import("vue").ComputedRef<unknown>;
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
series: {
|
|
18
|
+
type: ArrayConstructor;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
categories: {
|
|
22
|
+
type: ArrayConstructor;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
colors: {
|
|
26
|
+
type: ArrayConstructor;
|
|
27
|
+
default: () => string[];
|
|
28
|
+
};
|
|
29
|
+
}>>, {
|
|
30
|
+
colors: unknown[];
|
|
31
|
+
}, {}>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<input
|
|
4
|
+
class="oip_simple_input"
|
|
5
|
+
:placeholder="placeholderValue"
|
|
6
|
+
:type="inputType"
|
|
7
|
+
:value="inputValue"
|
|
8
|
+
@input="changeInput"
|
|
9
|
+
@keydown.enter="submitInput"
|
|
10
|
+
/>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script>
|
|
15
|
+
import {
|
|
16
|
+
onMounted,
|
|
17
|
+
ref,
|
|
18
|
+
watch,
|
|
19
|
+
defineComponent
|
|
20
|
+
} from "vue";
|
|
21
|
+
export default defineComponent({
|
|
22
|
+
name: "argSimpleInput",
|
|
23
|
+
props: {
|
|
24
|
+
placeholderValue: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "Enter a value"
|
|
27
|
+
},
|
|
28
|
+
inputType: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "text"
|
|
31
|
+
},
|
|
32
|
+
defaultValue: {
|
|
33
|
+
type: [String, Number],
|
|
34
|
+
default: ""
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
emits: ["update:Value", "changeValue", "submitInput"],
|
|
38
|
+
setup(props, { emit }) {
|
|
39
|
+
const inputValue = ref("");
|
|
40
|
+
onMounted(() => {
|
|
41
|
+
inputValue.value = props.defaultValue;
|
|
42
|
+
});
|
|
43
|
+
watch(
|
|
44
|
+
() => props.defaultValue,
|
|
45
|
+
(new_default_value) => {
|
|
46
|
+
inputValue.value = new_default_value;
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
function changeInput(event) {
|
|
50
|
+
inputValue.value = event.target.value;
|
|
51
|
+
emit("update:Value", inputValue.value);
|
|
52
|
+
emit("changeValue", inputValue.value);
|
|
53
|
+
}
|
|
54
|
+
function submitInput() {
|
|
55
|
+
emit("submitInput");
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
inputValue,
|
|
59
|
+
changeInput,
|
|
60
|
+
submitInput
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
</script>
|
|
65
|
+
|
|
66
|
+
<style scoped>
|
|
67
|
+
.oip_simple_input {
|
|
68
|
+
border-radius: 8px;
|
|
69
|
+
border: 1.5px solid var(--dividers);
|
|
70
|
+
padding: 12px;
|
|
71
|
+
margin: 5px 0px;
|
|
72
|
+
}
|
|
73
|
+
.oip_simple_input::placeholder {
|
|
74
|
+
color: var(--wild-blue-yonder);
|
|
75
|
+
}
|
|
76
|
+
.oip_simple_input,
|
|
77
|
+
.oip_simple_input:focus-visible {
|
|
78
|
+
outline: none !important;
|
|
79
|
+
}
|
|
80
|
+
.oip_simple_input input:hover {
|
|
81
|
+
border: 1.5px solid rgba(33, 118, 255, 0.2) !important;
|
|
82
|
+
}
|
|
83
|
+
.oip_simple_input input:focus-within {
|
|
84
|
+
border: 1.5px solid var(--primary) !important;
|
|
85
|
+
box-shadow: 0 0 0 4px rgba(33, 118, 255, 0.1) !important;
|
|
86
|
+
}
|
|
87
|
+
input[type="number"]::-webkit-inner-spin-button {
|
|
88
|
+
-webkit-appearance: none;
|
|
89
|
+
}
|
|
90
|
+
input[type="number"] {
|
|
91
|
+
-moz-appearance: textfield;
|
|
92
|
+
appearance: textfield;
|
|
93
|
+
}
|
|
94
|
+
</style>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
placeholderValue: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
inputType: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
defaultValue: {
|
|
11
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
inputValue: import("vue").Ref<string | number>;
|
|
16
|
+
changeInput: (event: any) => void;
|
|
17
|
+
submitInput: () => void;
|
|
18
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:Value" | "changeValue" | "submitInput")[], "update:Value" | "changeValue" | "submitInput", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
placeholderValue: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
inputType: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
defaultValue: {
|
|
28
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
}>> & {
|
|
32
|
+
"onUpdate:Value"?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
onChangeValue?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
onSubmitInput?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
defaultValue: string | number;
|
|
37
|
+
placeholderValue: string;
|
|
38
|
+
inputType: string;
|
|
39
|
+
}, {}>;
|
|
40
|
+
export default _default;
|