@tekkare/auriga 0.1.0 → 0.1.4
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 +318 -321
- package/dist/runtime/components/argAdvancedSearchBar.vue.d.ts +89 -3
- package/dist/runtime/components/argBtn.vue +48 -39
- package/dist/runtime/components/argBtn.vue.d.ts +72 -3
- package/dist/runtime/components/argComplexSelect.vue +255 -256
- package/dist/runtime/components/argComplexSelect.vue.d.ts +175 -3
- package/dist/runtime/components/argDataLoader.vue +8 -3
- package/dist/runtime/components/argDataLoader.vue.d.ts +1 -3
- package/dist/runtime/components/argDropdownSelect.vue +145 -138
- package/dist/runtime/components/argDropdownSelect.vue.d.ts +139 -3
- package/dist/runtime/components/argFileBtn.vue +58 -56
- package/dist/runtime/components/argFileBtn.vue.d.ts +60 -3
- package/dist/runtime/components/argHeaderTabs.vue +91 -103
- package/dist/runtime/components/argHeaderTabs.vue.d.ts +29 -3
- package/dist/runtime/components/argIcon.vue +2136 -3117
- package/dist/runtime/components/argIcon.vue.d.ts +1110 -2
- package/dist/runtime/components/argMultipleChoice.vue +84 -78
- package/dist/runtime/components/argMultipleChoice.vue.d.ts +49 -3
- package/dist/runtime/components/argNoData.vue +28 -25
- package/dist/runtime/components/argNoData.vue.d.ts +26 -3
- package/dist/runtime/components/argSearchInput.vue +39 -37
- package/dist/runtime/components/argSearchInput.vue.d.ts +32 -3
- package/dist/runtime/components/argSimpleLabel.vue +13 -11
- package/dist/runtime/components/argSimpleLabel.vue.d.ts +13 -3
- package/dist/runtime/components/argStyle.vue +11 -3
- package/dist/runtime/components/argStyle.vue.d.ts +1 -3
- package/dist/runtime/components/argTable.vue +384 -395
- package/dist/runtime/components/argTable.vue.d.ts +337 -3
- package/dist/runtime/components/argTags.vue +20 -10
- package/dist/runtime/components/argTags.vue.d.ts +26 -3
- package/dist/runtime/components/argTekkareLoader.vue +5 -2
- package/dist/runtime/components/argTekkareLoader.vue.d.ts +1 -3
- package/dist/runtime/components/argTooltip.vue +11 -11
- package/dist/runtime/components/argTooltip.vue.d.ts +39 -3
- package/package.json +5 -2
|
@@ -16,67 +16,69 @@
|
|
|
16
16
|
</button>
|
|
17
17
|
</template>
|
|
18
18
|
<script>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<script setup lang="ts">
|
|
19
|
+
import {
|
|
20
|
+
computed,
|
|
21
|
+
defineComponent
|
|
22
|
+
} from "vue";
|
|
24
23
|
import argIcon from "./argIcon.vue";
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
24
|
+
export default defineComponent({
|
|
25
|
+
name: "argFileBtn",
|
|
26
|
+
components: { argIcon },
|
|
27
|
+
props: {
|
|
28
|
+
fileType: {
|
|
29
|
+
type: String,
|
|
30
|
+
required: false
|
|
31
|
+
},
|
|
32
|
+
fileName: {
|
|
33
|
+
type: String,
|
|
34
|
+
required: true
|
|
35
|
+
},
|
|
36
|
+
fileSize: {
|
|
37
|
+
type: String,
|
|
38
|
+
required: false
|
|
39
|
+
},
|
|
40
|
+
download: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: false,
|
|
43
|
+
required: false
|
|
44
|
+
},
|
|
45
|
+
preview: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: false,
|
|
48
|
+
required: false
|
|
49
|
+
}
|
|
48
50
|
},
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
51
|
+
emits: ["onPreview", "onDownload"],
|
|
52
|
+
setup(props, { emit }) {
|
|
53
|
+
const fileIcon = computed(() => {
|
|
54
|
+
let iconName = { icon: "File", color: "#3E3F5E" };
|
|
55
|
+
if (props.fileType) {
|
|
56
|
+
const ft = props.fileType.toUpperCase();
|
|
57
|
+
if (ft === "PDF") {
|
|
58
|
+
iconName = { icon: "FilePdf", color: "#D93221" };
|
|
59
|
+
} else if (ft === "CSV") {
|
|
60
|
+
iconName = { icon: "FileCsv", color: "#387A47" };
|
|
61
|
+
} else if (ft === "XLS" || ft === "XLSX") {
|
|
62
|
+
iconName = { icon: "FileXls", color: "#387A47" };
|
|
63
|
+
} else if (ft === "PNG") {
|
|
64
|
+
iconName = { icon: "FilePng", color: "#3E3F5E" };
|
|
65
|
+
} else if (ft === "JPG" || ft === "JPEG") {
|
|
66
|
+
iconName = { icon: "FileJpg", color: "#3E3F5E" };
|
|
67
|
+
} else if (ft === "MP4" || ft === "AVI" || ft === "MOV") {
|
|
68
|
+
iconName = { icon: "FileVideo", color: "#3E3F5E" };
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return iconName;
|
|
72
|
+
});
|
|
73
|
+
function onPreview() {
|
|
74
|
+
emit("onPreview");
|
|
75
|
+
}
|
|
76
|
+
function onDownload() {
|
|
77
|
+
emit("onDownload");
|
|
69
78
|
}
|
|
79
|
+
return { fileIcon, onPreview, onDownload };
|
|
70
80
|
}
|
|
71
|
-
return iconName;
|
|
72
81
|
});
|
|
73
|
-
|
|
74
|
-
function onPreview() {
|
|
75
|
-
emit("onPreview");
|
|
76
|
-
}
|
|
77
|
-
function onDownload() {
|
|
78
|
-
emit("onDownload");
|
|
79
|
-
}
|
|
80
82
|
</script>
|
|
81
83
|
<style scoped>
|
|
82
84
|
.prmt_file_button {
|
|
@@ -1,4 +1,61 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
fileType: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
};
|
|
6
|
+
fileName: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
fileSize: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
required: false;
|
|
13
|
+
};
|
|
14
|
+
download: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
required: false;
|
|
18
|
+
};
|
|
19
|
+
preview: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
required: false;
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
fileIcon: import("vue").ComputedRef<{
|
|
26
|
+
icon: string;
|
|
27
|
+
color: string;
|
|
28
|
+
}>;
|
|
29
|
+
onPreview: () => void;
|
|
30
|
+
onDownload: () => void;
|
|
31
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onPreview" | "onDownload")[], "onPreview" | "onDownload", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
+
fileType: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
required: false;
|
|
35
|
+
};
|
|
36
|
+
fileName: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
fileSize: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
required: false;
|
|
43
|
+
};
|
|
44
|
+
download: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
required: false;
|
|
48
|
+
};
|
|
49
|
+
preview: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
required: false;
|
|
53
|
+
};
|
|
54
|
+
}>> & {
|
|
55
|
+
onOnPreview?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
onOnDownload?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
download: boolean;
|
|
59
|
+
preview: boolean;
|
|
60
|
+
}, {}>;
|
|
4
61
|
export default _default;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<div class="header_one_tab_active-selector" id="header_nav_bar"></div>
|
|
6
6
|
<span
|
|
7
7
|
class="header_one_tab_container"
|
|
8
|
-
v-for="(tab, index) in
|
|
8
|
+
v-for="(tab, index) in tabs"
|
|
9
9
|
:key="index"
|
|
10
10
|
:id="`headerTab${index + 1}`"
|
|
11
11
|
>
|
|
@@ -24,118 +24,106 @@
|
|
|
24
24
|
</div>
|
|
25
25
|
</template>
|
|
26
26
|
<script>
|
|
27
|
-
export default {
|
|
28
|
-
name: "argHeaderTabs"
|
|
29
|
-
};
|
|
30
|
-
</script>
|
|
31
|
-
|
|
32
|
-
<script setup lang="ts">
|
|
33
27
|
import {
|
|
34
28
|
onMounted,
|
|
35
29
|
ref,
|
|
36
30
|
computed,
|
|
37
|
-
defineProps,
|
|
38
|
-
defineEmits,
|
|
39
31
|
watch,
|
|
40
|
-
defineComponent
|
|
32
|
+
defineComponent
|
|
41
33
|
} from "vue";
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
const emit = defineEmits(["updateMenu", "update:Value"]);
|
|
55
|
-
|
|
56
|
-
var true_index_menu = ref(props.index_menu);
|
|
57
|
-
var scrollValue = ref(0);
|
|
58
|
-
var oldWidth = ref();
|
|
59
|
-
|
|
60
|
-
watch(
|
|
61
|
-
() => props.index_menu,
|
|
62
|
-
(new_index_menu: number | string) => {
|
|
63
|
-
true_index_menu.value = new_index_menu;
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
|
|
67
|
-
function removeNullProps(object) {
|
|
68
|
-
return _.reject(object, (value) => value === null);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
var tabsWidth = computed(() => {
|
|
72
|
-
const table = [];
|
|
73
|
-
for (let i = 0; i < props.tabs.length; i++) {
|
|
74
|
-
let domTab = document?.getElementById(`headerTab${i + 1}`);
|
|
75
|
-
if (domTab !== null) {
|
|
76
|
-
table.push(domTab.offsetWidth);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return table;
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
var getTranslationWidth = computed(() => {
|
|
83
|
-
let translateWidth = 0;
|
|
84
|
-
if (true_index_menu.value === 1) {
|
|
85
|
-
return 0;
|
|
86
|
-
} else {
|
|
87
|
-
let i = 0;
|
|
88
|
-
while (i + 1 < true_index_menu.value) {
|
|
89
|
-
translateWidth += tabsWidth.value[i];
|
|
90
|
-
i += 1;
|
|
34
|
+
export default defineComponent({
|
|
35
|
+
name: "argHeaderTabs",
|
|
36
|
+
props: {
|
|
37
|
+
tabs: {
|
|
38
|
+
type: Array,
|
|
39
|
+
required: true
|
|
40
|
+
},
|
|
41
|
+
index_menu: {
|
|
42
|
+
type: [String, Number],
|
|
43
|
+
default: 1
|
|
91
44
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
})
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
oldWidth.value = window?.innerWidth;
|
|
124
|
-
setTimeout(() => {
|
|
125
|
-
changeMenu(props.index_menu);
|
|
126
|
-
});
|
|
127
|
-
window.onresize = () => {
|
|
128
|
-
const content = document?.querySelector(".header_tabs_overlay");
|
|
129
|
-
if (content !== null) {
|
|
130
|
-
if (window.innerWidth > oldWidth.value) {
|
|
131
|
-
if (content.scrollLeft === 0) {
|
|
132
|
-
scrollValue.value = 0;
|
|
45
|
+
},
|
|
46
|
+
emits: ["updateMenu", "update:Menu"],
|
|
47
|
+
setup(props, { emit }) {
|
|
48
|
+
const true_index_menu = ref(props.index_menu);
|
|
49
|
+
const scrollValue = ref(0);
|
|
50
|
+
const oldWidth = ref();
|
|
51
|
+
watch(
|
|
52
|
+
() => props.index_menu,
|
|
53
|
+
(new_index_menu) => {
|
|
54
|
+
true_index_menu.value = new_index_menu;
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
const tabsWidth = computed(() => {
|
|
58
|
+
const table = [];
|
|
59
|
+
for (let i = 0; i < props.tabs.length; i++) {
|
|
60
|
+
let domTab = document?.getElementById(`headerTab${i + 1}`);
|
|
61
|
+
if (domTab !== null) {
|
|
62
|
+
table.push(domTab.offsetWidth);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return table;
|
|
66
|
+
});
|
|
67
|
+
const getTranslationWidth = computed(() => {
|
|
68
|
+
let translateWidth = 0;
|
|
69
|
+
if (true_index_menu.value === 1) {
|
|
70
|
+
return 0;
|
|
71
|
+
} else {
|
|
72
|
+
let i = 0;
|
|
73
|
+
while (i + 1 < true_index_menu.value) {
|
|
74
|
+
translateWidth += tabsWidth.value[i];
|
|
75
|
+
i += 1;
|
|
133
76
|
}
|
|
77
|
+
return translateWidth;
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
function changeMenu(value) {
|
|
81
|
+
if (typeof true_index_menu.value === "string") {
|
|
82
|
+
emit("updateMenu", value.toString());
|
|
83
|
+
emit("update:Menu", value.toString());
|
|
84
|
+
} else {
|
|
85
|
+
emit("updateMenu", value);
|
|
86
|
+
emit("update:Menu", value);
|
|
134
87
|
}
|
|
135
|
-
|
|
88
|
+
true_index_menu.value = value;
|
|
89
|
+
setBarWidth();
|
|
136
90
|
}
|
|
137
|
-
setBarWidth()
|
|
138
|
-
|
|
91
|
+
function setBarWidth() {
|
|
92
|
+
const selector = document?.getElementById("header_nav_bar");
|
|
93
|
+
const element = document?.getElementById(
|
|
94
|
+
`headerTab${true_index_menu.value}`
|
|
95
|
+
);
|
|
96
|
+
if (element !== null && selector !== null) {
|
|
97
|
+
const width = element.offsetWidth;
|
|
98
|
+
selector.style.width = `${width}px`;
|
|
99
|
+
selector.style.transform = `translateX(${getTranslationWidth.value + scrollValue.value + 24 * (true_index_menu.value - 1)}px)`;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
onMounted(() => {
|
|
103
|
+
oldWidth.value = window?.innerWidth;
|
|
104
|
+
setTimeout(() => {
|
|
105
|
+
changeMenu(props.index_menu);
|
|
106
|
+
});
|
|
107
|
+
window.onresize = () => {
|
|
108
|
+
const content = document?.querySelector(".header_tabs_overlay");
|
|
109
|
+
if (content !== null) {
|
|
110
|
+
if (window.innerWidth > oldWidth.value) {
|
|
111
|
+
if (content.scrollLeft === 0) {
|
|
112
|
+
scrollValue.value = 0;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
oldWidth.value = window.innerWidth;
|
|
116
|
+
}
|
|
117
|
+
setBarWidth();
|
|
118
|
+
};
|
|
119
|
+
});
|
|
120
|
+
return {
|
|
121
|
+
true_index_menu,
|
|
122
|
+
scrollValue,
|
|
123
|
+
oldWidth,
|
|
124
|
+
changeMenu
|
|
125
|
+
};
|
|
126
|
+
}
|
|
139
127
|
});
|
|
140
128
|
</script>
|
|
141
129
|
|
|
@@ -1,4 +1,30 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
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
|
+
}, 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<{
|
|
16
|
+
tabs: {
|
|
17
|
+
type: ArrayConstructor;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
index_menu: {
|
|
21
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
}>> & {
|
|
25
|
+
onUpdateMenu?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
"onUpdate:Menu"?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
index_menu: string | number;
|
|
29
|
+
}, {}>;
|
|
4
30
|
export default _default;
|