@bagelink/vue 0.0.749 → 0.0.753
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/Btn.vue.d.ts +2 -2
- package/dist/components/Btn.vue.d.ts.map +1 -1
- package/dist/components/DataPreview.vue.d.ts.map +1 -1
- package/dist/components/DropDown.vue.d.ts +5 -5
- package/dist/components/DropDown.vue.d.ts.map +1 -1
- package/dist/components/MapEmbed.vue.d.ts.map +1 -1
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/NavBar.vue.d.ts.map +1 -1
- package/dist/components/Title.vue.d.ts +1 -1
- package/dist/components/dashboard/Lineart.vue.d.ts.map +1 -1
- package/dist/components/form/index.d.ts +1 -1
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/JSONInput.vue.d.ts +1 -1
- package/dist/components/form/inputs/JSONInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts +4 -4
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SignaturePad.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TelInput.vue.d.ts +6 -6
- package/dist/components/form/inputs/TelInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/index.d.ts +11 -11
- package/dist/components/form/inputs/index.d.ts.map +1 -1
- package/dist/components/layout/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/components/layout/TabbedLayout.vue.d.ts +1 -1
- package/dist/components/layout/TabbedLayout.vue.d.ts.map +1 -1
- package/dist/components/layout/Tabs.vue.d.ts.map +1 -1
- package/dist/components/layout/index.d.ts +3 -3
- package/dist/components/layout/index.d.ts.map +1 -1
- package/dist/components/lightbox/index.d.ts.map +1 -1
- package/dist/composables/index.d.ts.map +1 -1
- package/dist/index.cjs +47931 -47903
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +47932 -47904
- package/dist/plugins/bagel.d.ts +1 -1
- package/dist/plugins/bagel.d.ts.map +1 -1
- package/dist/plugins/modal.d.ts +1 -1
- package/dist/plugins/modal.d.ts.map +1 -1
- package/dist/style.css +1092 -1102
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Btn.vue +3 -3
- package/src/components/DataPreview.vue +1 -1
- package/src/components/Dropdown.vue +4 -4
- package/src/components/MapEmbed.vue +18 -18
- package/src/components/Modal.vue +6 -6
- package/src/components/NavBar.vue +1 -1
- package/src/components/TableSchema.vue +1 -1
- package/src/components/dashboard/Lineart.vue +1 -1
- package/src/components/form/index.ts +1 -1
- package/src/components/form/inputs/DateInput.vue +1 -1
- package/src/components/form/inputs/FileUpload.vue +1 -1
- package/src/components/form/inputs/RichText.vue +10 -15
- package/src/components/form/inputs/RichText2/index.vue +1 -1
- package/src/components/form/inputs/SelectInput.vue +2 -2
- package/src/components/form/inputs/SignaturePad.vue +2 -2
- package/src/components/form/inputs/TableField.vue +2 -2
- package/src/components/form/inputs/TelInput.vue +5 -5
- package/src/components/form/inputs/TextInput.vue +15 -13
- package/src/components/form/inputs/index.ts +11 -11
- package/src/components/formkit/FileUploader.vue +2 -2
- package/src/components/layout/SidebarMenu.vue +50 -77
- package/src/components/layout/TabbedLayout.vue +1 -1
- package/src/components/layout/Tabs.vue +2 -1
- package/src/components/layout/index.ts +3 -3
- package/src/components/lightbox/index.ts +2 -2
- package/src/composables/index.ts +1 -1
- package/src/index.ts +6 -6
- package/src/plugins/bagel.ts +2 -2
- package/src/plugins/modal.ts +2 -2
- package/src/styles/bagel.css +6 -0
- package/src/styles/buttons.css +4 -0
- package/src/styles/theme.css +6 -1
- package/src/types/index.ts +5 -6
- package/src/utils/index.ts +2 -2
- package/vite.config.ts +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { useSlots } from 'vue'
|
|
3
2
|
import { Btn, Card, Icon } from '@bagelink/vue'
|
|
3
|
+
import { useSlots } from 'vue'
|
|
4
4
|
import type { NavLink } from '@bagelink/vue'
|
|
5
5
|
|
|
6
6
|
const props = defineProps<{
|
|
@@ -22,43 +22,45 @@ function toggleMenu() {
|
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
24
|
<template>
|
|
25
|
-
<
|
|
26
|
-
class="flex column gap-05 pt-1 bgl_sidebar"
|
|
27
|
-
:class="{ wideNav: isOpen }"
|
|
28
|
-
>
|
|
29
|
-
<div class="w-100 px-075">
|
|
30
|
-
<Btn
|
|
31
|
-
thin
|
|
32
|
-
color="light"
|
|
33
|
-
class="toggleNav mb-05"
|
|
34
|
-
icon="keyboard_arrow_right"
|
|
35
|
-
@click="toggleMenu"
|
|
36
|
-
/>
|
|
37
|
-
</div>
|
|
38
|
-
<slot v-if="!isOpen || !slots['brand-open']" name="brand" />
|
|
39
|
-
<slot v-if="isOpen" name="brand-open" />
|
|
40
|
-
<slot v-if="!navLinks" />
|
|
25
|
+
<div class="vh-100 relative p-05 bgl_sidebar" :class="{ wideNav: isOpen }">
|
|
41
26
|
<Btn
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
class="
|
|
27
|
+
thin
|
|
28
|
+
color="white"
|
|
29
|
+
class="mb-05 absolute toggleNav
|
|
30
|
+
z-2 border"
|
|
31
|
+
icon="keyboard_arrow_right"
|
|
32
|
+
@click="toggleMenu"
|
|
33
|
+
/>
|
|
34
|
+
<Card
|
|
35
|
+
class="py-1 px-05 h-100 flex column gap-05 round relative bg-primary font-light overflow-y "
|
|
51
36
|
>
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
37
|
+
<slot v-if="!isOpen || !slots['brand-open']" name="brand" />
|
|
38
|
+
<slot v-if="isOpen" name="brand-open" />
|
|
39
|
+
<slot v-if="!navLinks" />
|
|
40
|
+
<Btn
|
|
41
|
+
v-for="(nav, i) in navLinks"
|
|
42
|
+
:key="i"
|
|
43
|
+
v-tooltip.right="{
|
|
44
|
+
content: nav.label,
|
|
45
|
+
disabled: open,
|
|
46
|
+
class: ['nav-tooltip'],
|
|
47
|
+
}"
|
|
48
|
+
:to="nav.to"
|
|
49
|
+
class="nav-button px-075 me-auto w-100"
|
|
50
|
+
>
|
|
51
|
+
<template #default>
|
|
52
|
+
<Icon :icon="nav.icon" :size="1.4" />
|
|
53
|
+
<transition name="showP">
|
|
54
|
+
<p v-if="open">
|
|
55
|
+
{{ nav.label }}
|
|
56
|
+
</p>
|
|
57
|
+
</transition>
|
|
58
|
+
</template>
|
|
59
|
+
</Btn>
|
|
60
|
+
<div style="flex-grow: 1" />
|
|
61
|
+
<slot name="footer" />
|
|
62
|
+
</Card>
|
|
63
|
+
</div>
|
|
62
64
|
</template>
|
|
63
65
|
|
|
64
66
|
<style>
|
|
@@ -70,32 +72,24 @@ function toggleMenu() {
|
|
|
70
72
|
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
|
|
71
73
|
}
|
|
72
74
|
|
|
73
|
-
.wideNav .nav-button .bgl_btn-flex {
|
|
74
|
-
justify-content: flex-start !important;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
75
|
.nav-button.router-link-active {
|
|
78
76
|
background: var(--bgl-popup-bg) !important;
|
|
79
77
|
color: var(--bgl-primary);
|
|
80
78
|
}
|
|
79
|
+
.nav-button .bgl_btn-flex{
|
|
80
|
+
justify-content: flex-start !important;
|
|
81
|
+
}
|
|
81
82
|
</style>
|
|
82
83
|
|
|
83
84
|
<style scoped>
|
|
84
85
|
.bgl_sidebar {
|
|
85
|
-
background-color: var(--bgl-primary);
|
|
86
|
-
color: var(--bgl-white);
|
|
87
|
-
overflow: hidden;
|
|
88
|
-
border-radius: var(--card-border-radius);
|
|
89
|
-
margin: 0.5rem;
|
|
90
|
-
width: calc(100% - 1rem);
|
|
91
|
-
padding: 0.5rem;
|
|
92
|
-
overflow-y: auto;
|
|
93
86
|
}
|
|
94
87
|
.toggleNav {
|
|
95
88
|
height: 22px !important;
|
|
96
89
|
width: 22px !important;
|
|
97
|
-
opacity: 0.4;
|
|
98
90
|
transition: var(--bgl-transition);
|
|
91
|
+
top: 2rem;
|
|
92
|
+
inset-inline-end: -3px;
|
|
99
93
|
}
|
|
100
94
|
.toggleNav:hover {
|
|
101
95
|
opacity: 1;
|
|
@@ -105,11 +99,6 @@ function toggleMenu() {
|
|
|
105
99
|
transform: rotate(180deg);
|
|
106
100
|
}
|
|
107
101
|
|
|
108
|
-
.wideNav .nav-button {
|
|
109
|
-
padding-inline-start: 1rem !important;
|
|
110
|
-
width: 100%;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
102
|
[dir='rtl'] .toggleNav {
|
|
114
103
|
transform: rotate(180deg);
|
|
115
104
|
}
|
|
@@ -118,30 +107,14 @@ function toggleMenu() {
|
|
|
118
107
|
transform: rotate(0deg);
|
|
119
108
|
}
|
|
120
109
|
|
|
121
|
-
.
|
|
122
|
-
|
|
110
|
+
.showP-enter-active,
|
|
111
|
+
.showP-leave-active {
|
|
112
|
+
transition: all 0.5s ease;
|
|
123
113
|
}
|
|
124
114
|
|
|
125
|
-
.
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
@keyframes fade {
|
|
132
|
-
0% {
|
|
133
|
-
opacity: 0;
|
|
134
|
-
transform: translateX(-20px);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
30% {
|
|
138
|
-
opacity: 0;
|
|
139
|
-
transform: translateX(-20px);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
100% {
|
|
143
|
-
opacity: 1;
|
|
144
|
-
transform: translateX(0);
|
|
145
|
-
}
|
|
115
|
+
.showP-enter-from,
|
|
116
|
+
.showP-leave-to {
|
|
117
|
+
opacity: 0;
|
|
118
|
+
transform: translateX(-20px);
|
|
146
119
|
}
|
|
147
120
|
</style>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { type Tab, TabsNav } from '@bagelink/vue'
|
|
3
|
-
import {
|
|
3
|
+
import { defineComponent, defineProps, h, useSlots } from 'vue'
|
|
4
|
+
import type { VNode } from 'vue'
|
|
4
5
|
|
|
5
6
|
import { useTabs } from './tabsManager'
|
|
6
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
export { default as BottomMenu } from './BottomMenu.vue'
|
|
1
2
|
export { default as Layout } from './Layout.vue'
|
|
2
3
|
export { default as SidebarMenu } from './SidebarMenu.vue'
|
|
3
|
-
export { default as
|
|
4
|
+
export { default as TabbedLayout } from './TabbedLayout.vue'
|
|
4
5
|
export { default as Tabs } from './Tabs.vue'
|
|
5
|
-
export { default as TabsNav } from './TabsNav.vue'
|
|
6
6
|
export { default as TabsBody } from './TabsBody.vue'
|
|
7
|
-
export { default as
|
|
7
|
+
export { default as TabsNav } from './TabsNav.vue'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { App, Directive, DirectiveBinding } from 'vue'
|
|
2
|
-
import { createApp } from 'vue'
|
|
3
1
|
import { IMAGE_FORMATS_REGEXP, VIDEO_FORMATS_REGEXP } from '@bagelink/vue'
|
|
2
|
+
import { createApp } from 'vue'
|
|
3
|
+
import type { App, Directive, DirectiveBinding } from 'vue'
|
|
4
4
|
import Lightbox from './Lightbox.vue'
|
|
5
5
|
import type { LightboxItem } from './lightbox.types'
|
|
6
6
|
|
package/src/composables/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type BglFormSchemaFnT, type BglFormSchemaT, type IfAny, getFallbackSchema } from '@bagelink/vue'
|
|
2
2
|
|
|
3
|
-
import type { Ref, UnwrapRef } from 'vue'
|
|
4
3
|
import { ref, watch } from 'vue'
|
|
4
|
+
import type { Ref, UnwrapRef } from 'vue'
|
|
5
5
|
|
|
6
6
|
interface useBglSchemaParamsT<T> {
|
|
7
7
|
schema?: BglFormSchemaFnT<T>
|
package/src/index.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
export * from './components'
|
|
2
|
+
export * from './composables'
|
|
1
3
|
export {
|
|
2
|
-
BagelVue,
|
|
3
|
-
type BagelOptions,
|
|
4
4
|
bagelInjectionKey,
|
|
5
|
+
type BagelOptions,
|
|
6
|
+
BagelVue,
|
|
7
|
+
i18nTInjectionKey,
|
|
5
8
|
useBagel,
|
|
6
9
|
useI18nT,
|
|
7
|
-
i18nTInjectionKey,
|
|
8
10
|
} from './plugins/bagel'
|
|
9
11
|
export { ModalPlugin, useModal } from './plugins/modal'
|
|
10
|
-
export * from './utils'
|
|
11
12
|
export * from './types'
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './components'
|
|
13
|
+
export * from './utils'
|
|
14
14
|
export * from './utils/allCountries'
|
|
15
15
|
export * from './utils/constants'
|
|
16
16
|
import './styles/bagel.css'
|
package/src/plugins/bagel.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { Bagel } from '@bagelink/sdk'
|
|
1
2
|
import FloatingVue from 'floating-vue'
|
|
2
3
|
import { inject } from 'vue'
|
|
3
4
|
import type { InjectionKey, Plugin } from 'vue'
|
|
4
|
-
import { Bagel } from '@bagelink/sdk'
|
|
5
5
|
import Lightbox from '../components/lightbox'
|
|
6
|
-
import clickOutside from '../utils/clickOutside'
|
|
7
6
|
import { useLang } from '../utils'
|
|
7
|
+
import clickOutside from '../utils/clickOutside'
|
|
8
8
|
|
|
9
9
|
export const bagelInjectionKey = Symbol('bagel') as InjectionKey<Bagel>
|
|
10
10
|
export const i18nTInjectionKey = Symbol('bagel') as InjectionKey<(key: string) => string>
|
package/src/plugins/modal.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Modal, ModalConfirm, ModalForm } from '@bagelink/vue'
|
|
1
2
|
import { defineComponent, h, inject } from 'vue'
|
|
2
|
-
import type { InjectionKey, Plugin } from 'vue'
|
|
3
3
|
import type { BglFormSchemaT, BtnOptions } from '@bagelink/vue'
|
|
4
|
-
import {
|
|
4
|
+
import type { InjectionKey, Plugin } from 'vue'
|
|
5
5
|
|
|
6
6
|
// Interface Definitions
|
|
7
7
|
export interface ModalOptions {
|
package/src/styles/bagel.css
CHANGED
package/src/styles/buttons.css
CHANGED
package/src/styles/theme.css
CHANGED
|
@@ -78,6 +78,11 @@
|
|
|
78
78
|
--whatsapp-blue: #71bce6;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
|
|
82
|
+
.testMe * {
|
|
83
|
+
outline: 1px dotted red;
|
|
84
|
+
}
|
|
85
|
+
|
|
81
86
|
.Vue-Toastification__toast {
|
|
82
87
|
border-radius: var(--card-border-radius);
|
|
83
88
|
box-shadow: none;
|
|
@@ -88,7 +93,7 @@
|
|
|
88
93
|
}
|
|
89
94
|
|
|
90
95
|
.Vue-Toastification__close-button {
|
|
91
|
-
height:
|
|
96
|
+
height: 1.5rem;
|
|
92
97
|
line-height: 1rem;
|
|
93
98
|
}
|
|
94
99
|
|
package/src/types/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type {
|
|
2
|
-
ModalComponentProps as ModalFormComponentProps,
|
|
3
2
|
ModalApi,
|
|
3
|
+
ModalComponentProps as ModalFormComponentProps,
|
|
4
4
|
ModalComponentProps,
|
|
5
5
|
ModalFormOptions,
|
|
6
6
|
ModalOptions,
|
|
@@ -9,12 +9,12 @@ export type {
|
|
|
9
9
|
import type { MaterialIcons } from './materialIcons'
|
|
10
10
|
|
|
11
11
|
export type { MaterialIcons }
|
|
12
|
-
export
|
|
12
|
+
export * from './BagelForm'
|
|
13
|
+
export * from './BtnOptions'
|
|
13
14
|
export type { StorageFile } from './file'
|
|
14
|
-
export type { NavLink } from './NavLink'
|
|
15
15
|
|
|
16
|
-
export
|
|
17
|
-
export
|
|
16
|
+
export type { NavLink } from './NavLink'
|
|
17
|
+
export type { Tables, TableToTypeMapping } from '@bagelink/sdk'
|
|
18
18
|
|
|
19
19
|
export type Tab = {
|
|
20
20
|
label: string
|
|
@@ -39,5 +39,4 @@ export type Option =
|
|
|
39
39
|
| Record<string, any>
|
|
40
40
|
| { label: string, value: string | number }
|
|
41
41
|
|
|
42
|
-
|
|
43
42
|
export type IfAny<T, Y, N> = 0 extends (1 & T) ? Y : N
|
package/src/utils/index.ts
CHANGED
|
@@ -63,12 +63,12 @@ export function denullify(itemData?: Record<string, any>, fieldID?: string) {
|
|
|
63
63
|
|
|
64
64
|
export const isDate = (dateToTest: any) => !Number.isNaN(Date.parse(dateToTest))
|
|
65
65
|
|
|
66
|
-
export { formatString } from './strings'
|
|
67
|
-
|
|
68
66
|
export * as bagelFormUtils from './BagelFormUtils'
|
|
69
67
|
|
|
70
68
|
export { useLang } from './lang'
|
|
71
69
|
|
|
70
|
+
export { formatString } from './strings'
|
|
71
|
+
|
|
72
72
|
export function getFallbackSchema<T>(data?: any[], showFields?: string[]): BglFormSchemaT<T> {
|
|
73
73
|
const keys = Array.from(new Set((data ?? []).map(Object.keys).flat()))
|
|
74
74
|
|
package/vite.config.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { resolve } from 'node:path'
|
|
2
|
-
import {
|
|
3
|
-
import { defineConfig } from 'vite'
|
|
2
|
+
import { fileURLToPath, URL } from 'node:url'
|
|
4
3
|
import vue from '@vitejs/plugin-vue'
|
|
5
|
-
import dts from 'vite-plugin-dts'
|
|
6
4
|
import ReactivityTransform from '@vue-macros/reactivity-transform/vite'
|
|
5
|
+
import { defineConfig } from 'vite'
|
|
6
|
+
import dts from 'vite-plugin-dts'
|
|
7
7
|
|
|
8
8
|
const indexDir = resolve(__dirname, 'src')
|
|
9
9
|
|