@tekkare/auriga 0.1.3 → 0.1.5
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/argAdvancedSearchBar.vue +2 -1
- package/dist/runtime/components/argChart.vue +663 -0
- package/dist/runtime/components/argChart.vue.d.ts +110 -0
- package/dist/runtime/components/argCheckbox.vue +153 -0
- package/dist/runtime/components/argCheckbox.vue.d.ts +58 -0
- package/dist/runtime/components/argComplexSelect.vue +118 -23
- package/dist/runtime/components/argComplexSelect.vue.d.ts +57 -2
- package/dist/runtime/components/argDropdownSelect.vue +27 -28
- package/dist/runtime/components/argDropdownSelect.vue.d.ts +20 -3
- package/dist/runtime/components/argFlag.vue +277 -0
- package/dist/runtime/components/argFlag.vue.d.ts +258 -0
- package/dist/runtime/components/argFooter.vue +41 -0
- package/dist/runtime/components/argFooter.vue.d.ts +2 -0
- package/dist/runtime/components/argHeader.vue +96 -0
- package/dist/runtime/components/argHeader.vue.d.ts +44 -0
- package/dist/runtime/components/argHeaderTabs.vue +10 -12
- package/dist/runtime/components/argHeaderTabs.vue.d.ts +2 -3
- package/dist/runtime/components/argInfoBar.vue +0 -0
- package/dist/runtime/components/argLineBreak.vue +21 -0
- package/dist/runtime/components/argLineBreak.vue.d.ts +2 -0
- package/dist/runtime/components/argMainLayout.vue +56 -0
- package/dist/runtime/components/argMainLayout.vue.d.ts +2 -0
- package/dist/runtime/components/argMenuItem.vue +73 -0
- package/dist/runtime/components/argMenuItem.vue.d.ts +36 -0
- package/dist/runtime/components/argMenuLink.vue +39 -0
- package/dist/runtime/components/argMenuLink.vue.d.ts +32 -0
- package/dist/runtime/components/argMultipleChoice.vue +2 -2
- package/dist/runtime/components/argMultipleChoice.vue.d.ts +2 -2
- package/dist/runtime/components/argNavBar.vue +319 -0
- package/dist/runtime/components/argNavBar.vue.d.ts +35 -0
- package/dist/runtime/components/argNote.vue +87 -0
- package/dist/runtime/components/argNote.vue.d.ts +42 -0
- package/dist/runtime/components/argSearchInput.vue +2 -1
- package/dist/runtime/components/argSearchInput.vue.d.ts +2 -0
- package/dist/runtime/components/argSidebar.vue +114 -0
- package/dist/runtime/components/argSidebar.vue.d.ts +33 -0
- package/dist/runtime/components/argSimpleLabel.vue +57 -14
- package/dist/runtime/components/argSimpleLabel.vue.d.ts +18 -0
- package/dist/runtime/components/argStyle.vue +14 -1
- package/dist/runtime/components/argSubMenu.vue +67 -0
- package/dist/runtime/components/argSubMenu.vue.d.ts +30 -0
- package/dist/runtime/components/argSwitch.vue +153 -0
- package/dist/runtime/components/argSwitch.vue.d.ts +37 -0
- package/dist/runtime/components/argTable.vue.d.ts +3 -3
- package/dist/runtime/components/argTooltip.vue +1 -1
- package/package.json +6 -3
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
to: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
icon: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
validator: (this: any, value: string | undefined) => boolean;
|
|
9
|
+
};
|
|
10
|
+
countryIso: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
validator: (this: any, value: string | undefined) => boolean;
|
|
13
|
+
};
|
|
14
|
+
label: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
to: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
icon: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
validator: (this: any, value: string | undefined) => boolean;
|
|
26
|
+
};
|
|
27
|
+
countryIso: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
validator: (this: any, value: string | undefined) => boolean;
|
|
30
|
+
};
|
|
31
|
+
label: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
}>>, {}, {}>;
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<nuxt-link :to="to" class="arg_menu_link">
|
|
3
|
+
<arg-icon :name="icon" color="var(--primary)" size="20"/>
|
|
4
|
+
{{label}}
|
|
5
|
+
</nuxt-link>
|
|
6
|
+
</template>
|
|
7
|
+
<script>
|
|
8
|
+
import {
|
|
9
|
+
defineComponent
|
|
10
|
+
} from "vue";
|
|
11
|
+
import argIcon from "./argIcon.vue";
|
|
12
|
+
import argStyle from "./argStyle.vue";
|
|
13
|
+
export default defineComponent({
|
|
14
|
+
name: "argMenuLink",
|
|
15
|
+
components: { argIcon, argStyle },
|
|
16
|
+
props: {
|
|
17
|
+
icon: { type: String, required: true },
|
|
18
|
+
label: { type: String, required: true },
|
|
19
|
+
to: { type: String, required: true, default: "/" }
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
</script>
|
|
23
|
+
<style>
|
|
24
|
+
.arg_menu_link{
|
|
25
|
+
display: flex;
|
|
26
|
+
height: 32px;
|
|
27
|
+
padding: 6px;
|
|
28
|
+
align-items: center;
|
|
29
|
+
gap: 6px;
|
|
30
|
+
align-self: stretch;
|
|
31
|
+
color: var(--primary);
|
|
32
|
+
font-size: 14px;
|
|
33
|
+
font-style: normal;
|
|
34
|
+
font-weight: 400;
|
|
35
|
+
line-height: 160%;
|
|
36
|
+
text-transform: capitalize;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
</style>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
icon: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
label: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
to: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
required: true;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
icon: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
label: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
to: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
required: true;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
}>>, {
|
|
30
|
+
to: string;
|
|
31
|
+
}, {}>;
|
|
32
|
+
export default _default;
|
|
@@ -44,7 +44,7 @@ export default defineComponent({
|
|
|
44
44
|
default: false
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
-
emits: ["changeElement", "update:
|
|
47
|
+
emits: ["changeElement", "update:Selection"],
|
|
48
48
|
setup(props, { emit }) {
|
|
49
49
|
const intArray = [];
|
|
50
50
|
const stringArray = [];
|
|
@@ -92,7 +92,7 @@ export default defineComponent({
|
|
|
92
92
|
props.return_value ? selectedString.value : selectedInts.value
|
|
93
93
|
);
|
|
94
94
|
emit(
|
|
95
|
-
"update:
|
|
95
|
+
"update:Selection",
|
|
96
96
|
props.return_value ? selectedString.value : selectedInts.value
|
|
97
97
|
);
|
|
98
98
|
}
|
|
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
22
|
isSelected: (index: number, option: string) => boolean;
|
|
23
23
|
selectedInts: import("vue").Ref<number[]>;
|
|
24
24
|
selectedString: import("vue").Ref<string[]>;
|
|
25
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("changeElement" | "update:
|
|
25
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("changeElement" | "update:Selection")[], "changeElement" | "update:Selection", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
26
|
element_table: {
|
|
27
27
|
type: ArrayConstructor;
|
|
28
28
|
required: true;
|
|
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
41
|
};
|
|
42
42
|
}>> & {
|
|
43
43
|
onChangeElement?: ((...args: any[]) => any) | undefined;
|
|
44
|
-
"onUpdate:
|
|
44
|
+
"onUpdate:Selection"?: ((...args: any[]) => any) | undefined;
|
|
45
45
|
}, {
|
|
46
46
|
return_value: boolean;
|
|
47
47
|
default_select: unknown[];
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
id="tabs_container"
|
|
4
|
+
class="rcd_tabs"
|
|
5
|
+
:class="isOverflow ? 'tabs_overflow' : ''"
|
|
6
|
+
>
|
|
7
|
+
<div
|
|
8
|
+
v-show="isOverflow"
|
|
9
|
+
class="rcd_scroll_icon scroll_left"
|
|
10
|
+
@click="scroll_left"
|
|
11
|
+
>
|
|
12
|
+
<arg-icon name="CaretLeft" size="12" color="var(--lavender_grey)" />
|
|
13
|
+
</div>
|
|
14
|
+
<div id="scroll_tabs" class="rcd_tabs_overlay">
|
|
15
|
+
<div class="rcd_one_tab_active-selector" id="tabs-selector"></div>
|
|
16
|
+
<span
|
|
17
|
+
class="rcd_one_tab_container"
|
|
18
|
+
v-for="(tab, index) in tabs"
|
|
19
|
+
:key="index"
|
|
20
|
+
:id="`rcd_tab_${index + 1}`"
|
|
21
|
+
>
|
|
22
|
+
<button
|
|
23
|
+
class="rcd_one_tab"
|
|
24
|
+
:class="{
|
|
25
|
+
active: true_index_menu.toString() === (index + 1).toString(),
|
|
26
|
+
}"
|
|
27
|
+
@click="changeMenu(index + 1)"
|
|
28
|
+
>
|
|
29
|
+
<p>{{ tab }}</p>
|
|
30
|
+
</button>
|
|
31
|
+
</span>
|
|
32
|
+
</div>
|
|
33
|
+
<div
|
|
34
|
+
v-show="isOverflow"
|
|
35
|
+
class="rcd_scroll_icon scroll_right"
|
|
36
|
+
@click="scroll_right"
|
|
37
|
+
>
|
|
38
|
+
<arg-icon name="CaretRight" size="12" color="var(--lavender_grey)" />
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
<script>
|
|
44
|
+
import {
|
|
45
|
+
onMounted,
|
|
46
|
+
ref,
|
|
47
|
+
computed,
|
|
48
|
+
watch,
|
|
49
|
+
defineComponent
|
|
50
|
+
} from "vue";
|
|
51
|
+
import argIcon from "./argIcon.vue";
|
|
52
|
+
export default defineComponent({
|
|
53
|
+
name: "argNavBar",
|
|
54
|
+
components: { argIcon },
|
|
55
|
+
props: {
|
|
56
|
+
tabs: {
|
|
57
|
+
type: Array,
|
|
58
|
+
required: true
|
|
59
|
+
},
|
|
60
|
+
index_menu: {
|
|
61
|
+
type: [String, Number],
|
|
62
|
+
default: 1
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
emits: ["updateMenu", "update:Menu"],
|
|
66
|
+
setup(props, { emit }) {
|
|
67
|
+
const true_index_menu = ref(props.index_menu);
|
|
68
|
+
const scrollValue = ref(0);
|
|
69
|
+
const oldWidth = ref();
|
|
70
|
+
const isOverflow = ref(false);
|
|
71
|
+
watch(
|
|
72
|
+
() => props.index_menu,
|
|
73
|
+
(new_index_menu) => {
|
|
74
|
+
true_index_menu.value = new_index_menu;
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
const tabsWidth = computed(() => {
|
|
78
|
+
const table = [];
|
|
79
|
+
for (let i = 0; i < props.tabs.length; i++) {
|
|
80
|
+
const domTab = document?.getElementById(`rcd_tab_${i + 1}`);
|
|
81
|
+
if (domTab !== null) {
|
|
82
|
+
table.push(domTab.offsetWidth);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return table;
|
|
86
|
+
});
|
|
87
|
+
const getTranslationWidth = computed(() => {
|
|
88
|
+
let translateWidth = 0;
|
|
89
|
+
if (true_index_menu.value === 1) {
|
|
90
|
+
return 0;
|
|
91
|
+
} else {
|
|
92
|
+
let i = 0;
|
|
93
|
+
while (i + 1 < true_index_menu.value) {
|
|
94
|
+
translateWidth += tabsWidth.value[i];
|
|
95
|
+
i += 1;
|
|
96
|
+
}
|
|
97
|
+
return translateWidth;
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
function checkOverflow() {
|
|
101
|
+
const container = document.getElementById("tabs_container");
|
|
102
|
+
const content = document.getElementById("scroll_tabs");
|
|
103
|
+
if (content.scrollWidth > container.clientWidth - 48) {
|
|
104
|
+
isOverflow.value = true;
|
|
105
|
+
} else
|
|
106
|
+
isOverflow.value = false;
|
|
107
|
+
}
|
|
108
|
+
function changeMenu(value) {
|
|
109
|
+
if (typeof true_index_menu.value === "string") {
|
|
110
|
+
emit("updateMenu", value.toString());
|
|
111
|
+
emit("update:Menu", value.toString());
|
|
112
|
+
} else {
|
|
113
|
+
emit("updateMenu", value);
|
|
114
|
+
emit("update:Menu", value);
|
|
115
|
+
}
|
|
116
|
+
true_index_menu.value = value;
|
|
117
|
+
setBarWidth(true_index_menu.value);
|
|
118
|
+
}
|
|
119
|
+
function scroll_left() {
|
|
120
|
+
const content = document.getElementById("scroll_tabs");
|
|
121
|
+
if (content !== null) {
|
|
122
|
+
if (content.scrollLeft - 20 <= 0) {
|
|
123
|
+
scrollValue.value += content.scrollLeft;
|
|
124
|
+
content.scrollLeft -= content.scrollLeft;
|
|
125
|
+
} else {
|
|
126
|
+
scrollValue.value += 20;
|
|
127
|
+
content.scrollLeft -= 20;
|
|
128
|
+
}
|
|
129
|
+
setBarWidth(true_index_menu.value);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
function scroll_right() {
|
|
133
|
+
const content = document.getElementById("scroll_tabs");
|
|
134
|
+
if (content !== null) {
|
|
135
|
+
const maxWidth = content.scrollWidth - content.clientWidth;
|
|
136
|
+
if (content.scrollLeft + 20 >= maxWidth) {
|
|
137
|
+
const widthLeft = maxWidth - content.scrollLeft;
|
|
138
|
+
content.scrollLeft += widthLeft;
|
|
139
|
+
scrollValue.value -= widthLeft;
|
|
140
|
+
} else {
|
|
141
|
+
content.scrollLeft += 20;
|
|
142
|
+
scrollValue.value -= 20;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
function setBarWidth(index) {
|
|
147
|
+
const selector = document.getElementById("tabs-selector");
|
|
148
|
+
const width = document.getElementById(`rcd_tab_${index}`)?.offsetWidth;
|
|
149
|
+
if (selector !== null) {
|
|
150
|
+
const index_number = Number(true_index_menu.value);
|
|
151
|
+
const gapWidth = (index_number - 1) * 32;
|
|
152
|
+
selector.style.width = `${width}px`;
|
|
153
|
+
selector.style.transform = `translateX(${getTranslationWidth.value + gapWidth}px)`;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
onMounted(() => {
|
|
157
|
+
window.onresize = () => {
|
|
158
|
+
checkOverflow();
|
|
159
|
+
const content = document.getElementById("scroll_tabs");
|
|
160
|
+
if (window?.innerWidth > oldWidth.value) {
|
|
161
|
+
if (content?.scrollLeft === 0) {
|
|
162
|
+
scrollValue.value = 0;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
oldWidth.value = window?.innerWidth;
|
|
166
|
+
};
|
|
167
|
+
true_index_menu.value = props.index_menu;
|
|
168
|
+
setTimeout(() => {
|
|
169
|
+
const content = document.getElementById("scroll_tabs");
|
|
170
|
+
if (content !== null) {
|
|
171
|
+
if (getTranslationWidth.value > content.offsetWidth) {
|
|
172
|
+
content.scrollLeft += getTranslationWidth.value;
|
|
173
|
+
}
|
|
174
|
+
setBarWidth(props.index_menu);
|
|
175
|
+
checkOverflow();
|
|
176
|
+
}
|
|
177
|
+
}, 100);
|
|
178
|
+
});
|
|
179
|
+
return {
|
|
180
|
+
true_index_menu,
|
|
181
|
+
scrollValue,
|
|
182
|
+
oldWidth,
|
|
183
|
+
changeMenu,
|
|
184
|
+
setBarWidth,
|
|
185
|
+
isOverflow,
|
|
186
|
+
checkOverflow,
|
|
187
|
+
scroll_left,
|
|
188
|
+
scroll_right
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
</script>
|
|
193
|
+
|
|
194
|
+
<!-- Custom navbar -->
|
|
195
|
+
<style scoped>
|
|
196
|
+
.rcd_scroll_icon {
|
|
197
|
+
display: flex;
|
|
198
|
+
flex-direction: row;
|
|
199
|
+
align-items: center;
|
|
200
|
+
padding: 4px 12px;
|
|
201
|
+
height: calc(100% - 8px);
|
|
202
|
+
position: absolute;
|
|
203
|
+
top: 0;
|
|
204
|
+
cursor: pointer;
|
|
205
|
+
z-index: 2;
|
|
206
|
+
}
|
|
207
|
+
.scroll_left {
|
|
208
|
+
left: 0;
|
|
209
|
+
border-right: 1px solid var(--demi-fond);
|
|
210
|
+
box-shadow: 4px 0px 10px rgba(62, 63, 94, 0.04);
|
|
211
|
+
}
|
|
212
|
+
.scroll_right {
|
|
213
|
+
right: 0;
|
|
214
|
+
border-left: 1px solid var(--demi-fond);
|
|
215
|
+
box-shadow: -4px 0px 10px rgba(62, 63, 94, 0.04);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.tabs_overflow {
|
|
219
|
+
padding: 0px 40px !important;
|
|
220
|
+
}
|
|
221
|
+
.rcd_tabs {
|
|
222
|
+
padding: 0px 24px;
|
|
223
|
+
white-space: nowrap;
|
|
224
|
+
position: relative;
|
|
225
|
+
background-color: var(--pure-white);
|
|
226
|
+
width: auto;
|
|
227
|
+
border-radius: 8px;
|
|
228
|
+
margin-bottom: 30px;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.rcd_tabs_overlay {
|
|
232
|
+
scrollbar-width: none;
|
|
233
|
+
display: flex;
|
|
234
|
+
flex-direction: row;
|
|
235
|
+
align-items: center;
|
|
236
|
+
gap: 32px;
|
|
237
|
+
position: relative;
|
|
238
|
+
overflow-x: scroll;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.rcd_tabs_overlay::-webkit-scrollbar {
|
|
242
|
+
display: none !important;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.rcd_one_tab_container {
|
|
246
|
+
display: inline-block;
|
|
247
|
+
padding: 16px 0px;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.rcd_one_tab {
|
|
251
|
+
display: flex;
|
|
252
|
+
flex-direction: row;
|
|
253
|
+
align-items: center;
|
|
254
|
+
gap: 4px;
|
|
255
|
+
border: none;
|
|
256
|
+
background-color: transparent;
|
|
257
|
+
color: var(--wild-blue-yonder);
|
|
258
|
+
list-style: none;
|
|
259
|
+
font-style: normal;
|
|
260
|
+
font-size: 12px;
|
|
261
|
+
font-weight: 700;
|
|
262
|
+
text-align: center;
|
|
263
|
+
padding: 0px !important;
|
|
264
|
+
white-space: pre-line;
|
|
265
|
+
overflow-wrap: break-word;
|
|
266
|
+
vertical-align: middle;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.rcd_one_tab:hover {
|
|
270
|
+
color: var(--independence);
|
|
271
|
+
cursor: pointer;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.rcd_one_tab.active {
|
|
275
|
+
color: var(--independence);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.rcd_one_tab_active-selector {
|
|
279
|
+
position: absolute;
|
|
280
|
+
bottom: 0;
|
|
281
|
+
left: 0;
|
|
282
|
+
height: 3px;
|
|
283
|
+
z-index: 0;
|
|
284
|
+
transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
285
|
+
list-style: none;
|
|
286
|
+
background: var(--accent);
|
|
287
|
+
overflow-x: hidden;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.rcd_tabs_separator {
|
|
291
|
+
display: initial;
|
|
292
|
+
height: 20px;
|
|
293
|
+
border-left: 1px solid var(--wild-blue-yonder);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.rcd_tabs_left-caret {
|
|
297
|
+
color: var(--wild-blue-yonder) !important;
|
|
298
|
+
align-items: center;
|
|
299
|
+
padding: 4px 12px;
|
|
300
|
+
position: absolute;
|
|
301
|
+
width: 36px;
|
|
302
|
+
height: 20px;
|
|
303
|
+
left: 0px;
|
|
304
|
+
top: 18.5px;
|
|
305
|
+
cursor: pointer;
|
|
306
|
+
}
|
|
307
|
+
.rcd_tabs_right-caret {
|
|
308
|
+
color: var(--wild-blue-yonder) !important;
|
|
309
|
+
align-items: center;
|
|
310
|
+
padding: 4px 12px;
|
|
311
|
+
|
|
312
|
+
position: absolute;
|
|
313
|
+
width: 36px;
|
|
314
|
+
height: 20px;
|
|
315
|
+
right: 0px;
|
|
316
|
+
top: 18.5px;
|
|
317
|
+
cursor: pointer;
|
|
318
|
+
}
|
|
319
|
+
</style>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
tabs: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
index_menu: {
|
|
7
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
true_index_menu: import("vue").Ref<string | number>;
|
|
12
|
+
scrollValue: import("vue").Ref<number>;
|
|
13
|
+
oldWidth: import("vue").Ref<any>;
|
|
14
|
+
changeMenu: (value: number | string) => void;
|
|
15
|
+
setBarWidth: (index: number | string) => void;
|
|
16
|
+
isOverflow: import("vue").Ref<boolean>;
|
|
17
|
+
checkOverflow: () => void;
|
|
18
|
+
scroll_left: () => void;
|
|
19
|
+
scroll_right: () => void;
|
|
20
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateMenu" | "update:Menu")[], "updateMenu" | "update:Menu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
tabs: {
|
|
22
|
+
type: ArrayConstructor;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
index_menu: {
|
|
26
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
}>> & {
|
|
30
|
+
onUpdateMenu?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
"onUpdate:Menu"?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
index_menu: string | number;
|
|
34
|
+
}, {}>;
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="`prmt_note_box ${noteColor}_box`">
|
|
3
|
+
<arg-icon :name="noteIcon" :color="getColorFromProp" />
|
|
4
|
+
<p>
|
|
5
|
+
<span :class="`${noteColor}_text`">{{ noteTitle }}:</span> {{ noteText }}
|
|
6
|
+
</p>
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
import argIcon from "./argIcon.vue";
|
|
12
|
+
import {
|
|
13
|
+
computed,
|
|
14
|
+
defineComponent
|
|
15
|
+
} from "vue";
|
|
16
|
+
export default defineComponent({
|
|
17
|
+
name: "argNote",
|
|
18
|
+
components: { argIcon },
|
|
19
|
+
props: {
|
|
20
|
+
noteTitle: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: "Note"
|
|
23
|
+
},
|
|
24
|
+
noteIcon: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "Info"
|
|
27
|
+
},
|
|
28
|
+
noteColor: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "blue"
|
|
31
|
+
},
|
|
32
|
+
noteText: {
|
|
33
|
+
type: String,
|
|
34
|
+
required: true
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
setup(props) {
|
|
38
|
+
const getColorFromProp = computed(() => {
|
|
39
|
+
if (props.noteColor === "blue") {
|
|
40
|
+
return "var(--primary)";
|
|
41
|
+
} else
|
|
42
|
+
return "var(--warning)";
|
|
43
|
+
});
|
|
44
|
+
return {
|
|
45
|
+
getColorFromProp
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<style scoped>
|
|
52
|
+
.prmt_note_box {
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: row;
|
|
55
|
+
align-items: center;
|
|
56
|
+
padding: 8px 16px;
|
|
57
|
+
gap: 16px;
|
|
58
|
+
border-radius: 12px;
|
|
59
|
+
}
|
|
60
|
+
.prmt_note_box svg {
|
|
61
|
+
flex-shrink: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.prmt_note_box p {
|
|
65
|
+
font-weight: 400;
|
|
66
|
+
font-size: 14px;
|
|
67
|
+
line-height: 16px;
|
|
68
|
+
}
|
|
69
|
+
.prmt_note_box p span {
|
|
70
|
+
font-weight: 700;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.blue_box {
|
|
74
|
+
background: rgba(33, 118, 255, 0.1);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.blue_text {
|
|
78
|
+
color: var(--primary);
|
|
79
|
+
}
|
|
80
|
+
.orange_text {
|
|
81
|
+
color: var(--warning);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.orange_box {
|
|
85
|
+
background: rgba(255, 152, 26, 0.1);
|
|
86
|
+
}
|
|
87
|
+
</style>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
noteTitle: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
noteIcon: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
noteColor: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
noteText: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
}, {
|
|
19
|
+
getColorFromProp: import("vue").ComputedRef<"var(--primary)" | "var(--warning)">;
|
|
20
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
noteTitle: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
noteIcon: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
noteColor: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
noteText: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
}>>, {
|
|
38
|
+
noteTitle: string;
|
|
39
|
+
noteIcon: string;
|
|
40
|
+
noteColor: string;
|
|
41
|
+
}, {}>;
|
|
42
|
+
export default _default;
|
|
@@ -6,6 +6,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6
6
|
value: {
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
default: string;
|
|
9
|
+
required: true;
|
|
9
10
|
};
|
|
10
11
|
}, {
|
|
11
12
|
searchValue: import("vue").Ref<string>;
|
|
@@ -20,6 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
21
|
value: {
|
|
21
22
|
type: StringConstructor;
|
|
22
23
|
default: string;
|
|
24
|
+
required: true;
|
|
23
25
|
};
|
|
24
26
|
}>> & {
|
|
25
27
|
"onUpdate:Value"?: ((...args: any[]) => any) | undefined;
|