@tekkare/auriga 0.2.77 → 0.2.79
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/argHomeAllBlocks.vue +5 -5
- package/dist/runtime/components/argHomeAllBlocks.vue.d.ts +1 -1
- package/dist/runtime/components/argHomeSelectedBlock.vue +21 -15
- package/dist/runtime/components/argHomeSelectedBlock.vue.d.ts +9 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
v-if="
|
|
47
47
|
filterBlocks.length > 0 &&
|
|
48
48
|
blockCategories !== null &&
|
|
49
|
-
blockCategories.
|
|
49
|
+
blockCategories.length > 0
|
|
50
50
|
"
|
|
51
51
|
class="oip_list v-start gap-16"
|
|
52
52
|
>
|
|
53
53
|
<div
|
|
54
|
-
v-for="category in blockCategories
|
|
54
|
+
v-for="category in blockCategories"
|
|
55
55
|
:key="category"
|
|
56
56
|
class="oip_list v-start gap-8 category_container"
|
|
57
57
|
>
|
|
@@ -268,12 +268,12 @@ export default defineComponent({
|
|
|
268
268
|
}
|
|
269
269
|
const blockCategories = computed(() => {
|
|
270
270
|
const categories = ref(null);
|
|
271
|
-
if (props.appBlocks.length > 0) {
|
|
271
|
+
if (props.appBlocks.length > 0 && props.appBlocks.filter((f) => f.category !== void 0)?.length > 0) {
|
|
272
272
|
categories.value = [
|
|
273
273
|
...new Set(props.appBlocks.map((a) => a.category))
|
|
274
274
|
];
|
|
275
275
|
}
|
|
276
|
-
return categories;
|
|
276
|
+
return categories.value;
|
|
277
277
|
});
|
|
278
278
|
onBeforeMount(async () => {
|
|
279
279
|
setLang();
|
|
@@ -340,5 +340,5 @@ export default defineComponent({
|
|
|
340
340
|
</script>
|
|
341
341
|
|
|
342
342
|
<style scoped>
|
|
343
|
-
.arg_home_all_blocks{align-items:flex-start;align-self:stretch;display:flex;flex-direction:column;gap:24px}.block_card{align-self:stretch;cursor:pointer;flex:0 0 calc(50% - 59px);margin:0!important;padding:24px!important}.block_card:not(.block_selected):hover .block_title{color:var(--primary)!important}.block_descr{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:14px;font-style:normal;font-weight:400;line-height:160%;overflow:hidden}.block_content{align-items:flex-start;display:flex;flex-direction:column;gap:12px}.block_title{align-items:flex-end;display:flex;flex-direction:row;font-size:16px;font-style:normal;font-weight:700;gap:8px;line-height:normal}.block_selected{background:var(--primary)!important;border:1px solid var(--primary)!important;box-shadow:var(--large-shadow)!important;color:var(--white)!important}.full_stretch{align-self:stretch}.population p{color:var(--medium);font-size:12px;font-weight:400;line-height:14px}.block_selected>.block_content>.card_head>.population p,.block_selected>.block_content>.card_head>.population svg{color:var(--white)!important}.home_subtitle{color:var(--dark);font-size:14px;font-style:normal;font-weight:400;line-height:160%}.category_container{border-top:1.5px solid var(--light);padding:24px 0;position:relative}.category_label{align-items:center;background:var(--lightest);border-radius:4px;display:flex;gap:8px;left:24px;padding:4px 12px;position:absolute;top:-14px}p.category_label{color:var(--medium);font-size:14px;font-weight:500;text-transform:uppercase}
|
|
343
|
+
.arg_home_all_blocks{align-items:flex-start;align-self:stretch;display:flex;flex-direction:column;gap:24px}.block_card{align-self:stretch;cursor:pointer;flex:0 0 calc(50% - 59px);margin:0!important;padding:24px!important}.block_card:not(.block_selected):hover .block_title{color:var(--primary)!important}.block_descr{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:14px;font-style:normal;font-weight:400;line-height:160%;overflow:hidden}.block_content{align-items:flex-start;display:flex;flex-direction:column;gap:12px}.block_title{align-items:flex-end;display:flex;flex-direction:row;font-size:16px;font-style:normal;font-weight:700;gap:8px;line-height:normal}.block_selected{background:var(--primary)!important;border:1px solid var(--primary)!important;box-shadow:var(--large-shadow)!important;color:var(--white)!important}.full_stretch{align-self:stretch}.population p{color:var(--medium);font-size:12px;font-weight:400;line-height:14px}.block_selected>.block_content>.card_head>.population p,.block_selected>.block_content>.card_head>.population svg{color:var(--white)!important}.home_subtitle{color:var(--dark);font-size:14px;font-style:normal;font-weight:400;line-height:160%}.category_container{border-top:1.5px solid var(--light);padding:24px 0;position:relative}.category_label{align-items:center;background:var(--lightest);border-radius:4px;display:flex;gap:8px;left:24px;padding:4px 12px;position:absolute;top:-14px}.category_label>p,p.category_label{color:var(--medium);font-size:14px;font-weight:500;text-transform:uppercase}
|
|
344
344
|
</style>
|
|
@@ -61,7 +61,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
61
|
filterBlocks: any;
|
|
62
62
|
getGlobalTitle: import("vue").ComputedRef<any>;
|
|
63
63
|
langData: import("vue").Ref<any>;
|
|
64
|
-
blockCategories: import("vue").ComputedRef<
|
|
64
|
+
blockCategories: import("vue").ComputedRef<any>;
|
|
65
65
|
filterCategoryBlocks: any;
|
|
66
66
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSelectBlock" | "update:Block")[], "onSelectBlock" | "update:Block", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
67
67
|
title: {
|
|
@@ -49,22 +49,24 @@
|
|
|
49
49
|
</div>
|
|
50
50
|
<p class="theme_descr">{{ selected.description }}</p>
|
|
51
51
|
</div>
|
|
52
|
-
<div class="selected_block_links">
|
|
52
|
+
<div class="selected_block_links" :class="lineBreak ? '' : 'gap-4'">
|
|
53
53
|
<div v-for="(item, index) in selected.links" :key="index">
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
54
|
+
<span v-if="item.subLinks">
|
|
55
|
+
<arg-sub-menu sidebar-open :label="item.linkName">
|
|
56
|
+
<arg-menu-item
|
|
57
|
+
v-for="(subLink, subIndex) in item.subLinks"
|
|
58
|
+
:key="subIndex"
|
|
59
|
+
sidebar-open
|
|
60
|
+
:label="subLink.name"
|
|
61
|
+
:to="subLink.to"
|
|
62
|
+
:icon="subLink.icon"
|
|
63
|
+
/>
|
|
64
|
+
</arg-sub-menu>
|
|
65
|
+
<arg-line-break
|
|
66
|
+
v-if="lineBreak && index !== selected.links.length - 1"
|
|
67
|
+
class="my-4"
|
|
66
68
|
/>
|
|
67
|
-
</
|
|
69
|
+
</span>
|
|
68
70
|
<arg-menu-item
|
|
69
71
|
v-else
|
|
70
72
|
sidebar-open
|
|
@@ -103,6 +105,10 @@ export default defineComponent({
|
|
|
103
105
|
validator: (value) => {
|
|
104
106
|
return ["en", "fr", "es", "jp", "kr"].includes(value);
|
|
105
107
|
}
|
|
108
|
+
},
|
|
109
|
+
lineBreak: {
|
|
110
|
+
type: Boolean,
|
|
111
|
+
default: false
|
|
106
112
|
}
|
|
107
113
|
},
|
|
108
114
|
setup(props) {
|
|
@@ -131,5 +137,5 @@ export default defineComponent({
|
|
|
131
137
|
</script>
|
|
132
138
|
|
|
133
139
|
<style scoped>
|
|
134
|
-
.selected_block_card{flex:1;height:-moz-fit-content;height:fit-content;margin:0!important;padding:24px;position:fixed;position:sticky;top:12vh}.selected_block_display{display:flex;flex-direction:column;gap:24px}.theme_select_message{display:flex;flex-direction:column;gap:12px}.theme_title_display{display:flex;flex-direction:column;gap:8px}.icon_square{align-items:center;background:var(--light);border-radius:8px;display:flex;justify-content:center;padding:8px;width:-moz-fit-content;width:fit-content}.theme_title{font-size:20px;font-style:normal;font-weight:900;line-height:normal}.theme_descr{font-size:14px;font-style:normal;font-weight:400;line-height:160%}.selected_block_links{display:flex;flex-direction:column
|
|
140
|
+
.selected_block_card{flex:1;height:-moz-fit-content;height:fit-content;margin:0!important;padding:24px;position:fixed;position:sticky;top:12vh}.selected_block_display{display:flex;flex-direction:column;gap:24px}.theme_select_message{display:flex;flex-direction:column;gap:12px}.theme_title_display{display:flex;flex-direction:column;gap:8px}.icon_square{align-items:center;background:var(--light);border-radius:8px;display:flex;justify-content:center;padding:8px;width:-moz-fit-content;width:fit-content}.theme_title{font-size:20px;font-style:normal;font-weight:900;line-height:normal}.theme_descr{font-size:14px;font-style:normal;font-weight:400;line-height:160%}.selected_block_links{display:flex;flex-direction:column}.selected_block_links.gap-4{gap:4px}.population p{color:var(--medium);font-size:12px;font-weight:400;line-height:14px}.my-4{margin:4px 0}
|
|
135
141
|
</style>
|
|
@@ -8,6 +8,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
default: string;
|
|
9
9
|
validator: (value: string) => boolean;
|
|
10
10
|
};
|
|
11
|
+
lineBreak: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
11
15
|
}, {
|
|
12
16
|
langData: import("vue").Ref<any>;
|
|
13
17
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -20,8 +24,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
24
|
default: string;
|
|
21
25
|
validator: (value: string) => boolean;
|
|
22
26
|
};
|
|
27
|
+
lineBreak: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
23
31
|
}>>, {
|
|
24
32
|
lang: string;
|
|
25
33
|
selected: Record<string, any>;
|
|
34
|
+
lineBreak: boolean;
|
|
26
35
|
}, {}>;
|
|
27
36
|
export default _default;
|