@bagelink/vue 0.0.339 → 0.0.346
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/components/Card.vue.d.ts +2 -2
- package/dist/components/Modal.vue.d.ts +1 -0
- package/dist/components/RouterWrapper.vue.d.ts.map +1 -1
- package/dist/components/form/BglForm.vue.d.ts +7 -1
- package/dist/components/form/BglForm.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DateInput.vue.d.ts +1 -0
- package/dist/components/form/inputs/RichText.vue.d.ts +20 -0
- package/dist/components/form/inputs/RichText.vue.d.ts.map +1 -0
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/index.d.ts +1 -1
- package/dist/components/form/inputs/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/layout/BottomMenu.vue.d.ts +24 -0
- package/dist/components/layout/BottomMenu.vue.d.ts.map +1 -0
- package/dist/components/layout/TabsNav.vue.d.ts.map +1 -1
- package/dist/components/layout/index.d.ts +1 -0
- package/dist/components/layout/index.d.ts.map +1 -1
- package/dist/index.cjs +32865 -24539
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +32866 -24540
- package/dist/style.css +166 -225
- package/dist/types/materialIcons.d.ts +1 -1
- package/dist/types/materialIcons.d.ts.map +1 -1
- package/package.json +4 -8
- package/src/components/RouterWrapper.vue +6 -4
- package/src/components/form/inputs/RichText.vue +219 -0
- package/src/components/form/inputs/SelectInput.vue +123 -122
- package/src/components/form/inputs/index.ts +1 -1
- package/src/components/index.ts +0 -2
- package/src/components/layout/BottomMenu.vue +64 -0
- package/src/components/layout/SidebarMenu.vue +2 -1
- package/src/components/layout/Tabs.vue +4 -4
- package/src/components/layout/TabsNav.vue +36 -14
- package/src/components/layout/index.ts +1 -0
- package/src/styles/layout.css +11 -0
- package/src/styles/mobilLayout.css +10 -0
- package/src/styles/theme.css +0 -1
- package/src/styles/transitions.css +4 -0
- package/src/types/materialIcons.ts +2068 -6
- package/src/components/Comments.vue +0 -268
- package/src/components/RTXEditor.vue +0 -151
- package/src/components/form/inputs/RichTextEditor.vue +0 -56
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
<div class="grid auto-flow-columns fit-content">
|
|
3
|
+
<button :class="{ active: isActive(tab) }" @click="selectTab(tab)" class="bgl_tab" v-for="(tab, i) in tabs" :key="i">
|
|
4
|
+
<Icon v-if="typeof tab !== 'string' && tab.icon" :icon="tab.icon" />
|
|
5
|
+
{{ tabLabel(tab) }}
|
|
6
|
+
</button>
|
|
7
|
+
</div>
|
|
8
8
|
</template>
|
|
9
9
|
|
|
10
10
|
<script setup lang="ts">
|
|
@@ -22,27 +22,49 @@ const props = defineProps<{
|
|
|
22
22
|
const { currentTab } = useTabs(props.group);
|
|
23
23
|
currentTab.value = props.modelValue || typeof props.tabs[0] === 'string' ? props.tabs[0] : props.tabs[0].id;
|
|
24
24
|
const selectTab = (tab: Tab) => {
|
|
25
|
-
|
|
25
|
+
currentTab.value = typeof tab === 'string' ? tab : tab.id;
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
const isActive = (tab: Tab) => {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
if (typeof tab === 'string') return currentTab.value === tab;
|
|
30
|
+
return currentTab.value === tab.id;
|
|
31
31
|
};
|
|
32
32
|
const tabLabel = (tab: Tab) => {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
if (typeof tab === 'string') return tab;
|
|
34
|
+
return tab.label;
|
|
35
35
|
};
|
|
36
36
|
</script>
|
|
37
37
|
|
|
38
38
|
<style scoped>
|
|
39
|
-
.
|
|
39
|
+
.bgl_tab {
|
|
40
40
|
border: none;
|
|
41
|
-
border-bottom:
|
|
41
|
+
border-bottom: 2px solid var(--border-color);
|
|
42
42
|
background: transparent;
|
|
43
|
+
font-size: var(--input-font-size);
|
|
44
|
+
font-family: inherit;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
transition: var(--bgl-transition);
|
|
47
|
+
padding-inline-start: calc(var(--btn-padding) / 2);
|
|
48
|
+
padding-inline-end: calc(var(--btn-padding) / 2);
|
|
49
|
+
padding-bottom: calc(var(--btn-padding) / 4);
|
|
50
|
+
|
|
43
51
|
}
|
|
44
52
|
|
|
45
|
-
.
|
|
53
|
+
.bgl_tab.currentTab {
|
|
46
54
|
border-bottom: 2px solid var(--primary-color);
|
|
47
55
|
}
|
|
56
|
+
|
|
57
|
+
.bgl_tab.active {
|
|
58
|
+
color: var(--bgl-primary);
|
|
59
|
+
border-bottom: 2px solid var(--bgl-primary);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.bgl_tab:hover {
|
|
63
|
+
color: var(--bgl-primary);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.bgl_tab:active {
|
|
67
|
+
-webkit-filter: brightness(70%);
|
|
68
|
+
filter: brightness(70%);
|
|
69
|
+
}
|
|
48
70
|
</style>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as Layout } from './Layout.vue';
|
|
2
2
|
export { default as SidebarMenu } from './SidebarMenu.vue';
|
|
3
|
+
export { default as BottomMenu } from './BottomMenu.vue';
|
|
3
4
|
export { default as Tabs } from './Tabs.vue';
|
|
4
5
|
export { default as TabsNav } from './TabsNav.vue';
|
|
5
6
|
export { default as TabsBody } from './TabsBody.vue';
|
package/src/styles/layout.css
CHANGED
|
@@ -165,6 +165,7 @@
|
|
|
165
165
|
margin-inline-end: auto;
|
|
166
166
|
width: 98%;
|
|
167
167
|
}
|
|
168
|
+
|
|
168
169
|
.w10 {
|
|
169
170
|
max-width: 10px;
|
|
170
171
|
}
|
|
@@ -355,6 +356,16 @@
|
|
|
355
356
|
height: -webkit-fill-available;
|
|
356
357
|
}
|
|
357
358
|
|
|
359
|
+
.w-auto,
|
|
360
|
+
.w-a {
|
|
361
|
+
width: auto !important;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.h-auto,
|
|
365
|
+
.h-a {
|
|
366
|
+
height: auto !important;
|
|
367
|
+
}
|
|
368
|
+
|
|
358
369
|
.gap-0 {
|
|
359
370
|
gap: 0;
|
|
360
371
|
}
|
package/src/styles/theme.css
CHANGED