@bagelink/vue 0.0.413 → 0.0.419
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/Accordion.vue.d.ts +1 -1
- package/dist/components/AccordionItem.vue.d.ts +2 -2
- package/dist/components/Alert.vue.d.ts +2 -2
- package/dist/components/Avatar.vue.d.ts +2 -2
- package/dist/components/Avatar.vue.d.ts.map +1 -1
- package/dist/components/Badge.vue.d.ts +3 -2
- package/dist/components/BglVideo.vue.d.ts +1 -1
- package/dist/components/Btn.vue.d.ts +4 -3
- package/dist/components/Card.vue.d.ts +2 -2
- package/dist/components/Carousel.vue.d.ts +3 -3
- package/dist/components/DataPreview.vue.d.ts +10 -9
- package/dist/components/ListItem.vue.d.ts +2 -2
- package/dist/components/ListView.vue.d.ts +1 -1
- package/dist/components/ListView.vue.d.ts.map +1 -1
- package/dist/components/MaterialIcon.vue.d.ts +4 -3
- package/dist/components/Modal.vue.d.ts +5 -5
- package/dist/components/ModalConfirm.vue.d.ts +3 -3
- package/dist/components/ModalConfirm.vue.d.ts.map +1 -1
- package/dist/components/ModalForm.vue.d.ts +27 -26
- package/dist/components/NavBar.vue.d.ts +4 -3
- package/dist/components/NavBar.vue.d.ts.map +1 -1
- package/dist/components/PageTitle.vue.d.ts +2 -2
- package/dist/components/RouterWrapper.vue.d.ts +1 -1
- package/dist/components/TableSchema.vue.d.ts +383 -6
- package/dist/components/TableSchema.vue.d.ts.map +1 -1
- package/dist/components/Title.vue.d.ts +2 -2
- package/dist/components/TopBar.vue.d.ts +1 -1
- package/dist/components/dashboard/Lineart.vue.d.ts +4 -3
- package/dist/components/form/BglField.vue.d.ts +5 -4
- package/dist/components/form/BglForm.vue.d.ts +6 -5
- package/dist/components/form/BglForm.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/CheckInput.vue.d.ts +14 -14
- package/dist/components/form/inputs/Checkbox.vue.d.ts +4 -4
- package/dist/components/form/inputs/ColorPicker.vue.d.ts +3 -3
- package/dist/components/form/inputs/DateInput.vue.d.ts +5 -5
- package/dist/components/form/inputs/DatePicker.vue.d.ts +10 -3
- package/dist/components/form/inputs/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/FileUpload.vue.d.ts +16 -15
- package/dist/components/form/inputs/JSONInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/RadioPillsInput.vue.d.ts +24 -4
- package/dist/components/form/inputs/RadioPillsInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText.vue.d.ts +3 -3
- package/dist/components/form/inputs/SelectInput.vue.d.ts +4 -3
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TableField.vue.d.ts +3 -3
- package/dist/components/form/inputs/TextInput.vue.d.ts +5 -4
- package/dist/components/form/inputs/ToggleInput.vue.d.ts +12 -12
- package/dist/components/layout/BottomMenu.vue.d.ts +4 -3
- package/dist/components/layout/Layout.vue.d.ts +2 -2
- package/dist/components/layout/SidebarMenu.vue.d.ts +5 -4
- package/dist/components/layout/TabbedLayout.vue.d.ts +5 -4
- package/dist/components/layout/Tabs.vue.d.ts +4 -3
- package/dist/components/layout/TabsBody.vue.d.ts +2 -2
- package/dist/components/layout/TabsNav.vue.d.ts +4 -3
- package/dist/components/layout/tabsManager.d.ts +1 -1
- package/dist/index.cjs +6527 -4442
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +6527 -4442
- package/dist/plugins/bagel.d.ts +2 -1
- package/dist/plugins/modal.d.ts +3 -3
- package/dist/style.css +267 -265
- package/dist/types/BagelForm.d.ts +1 -0
- package/dist/types/BtnOptions.d.ts +2 -1
- package/dist/types/NavLink.d.ts +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/BagelFormUtils.d.ts +2 -1
- package/dist/utils/clickOutside.d.ts +2 -1
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Avatar.vue +2 -1
- package/src/components/ListView.vue +24 -28
- package/src/components/NavBar.vue +235 -226
- package/src/components/TableSchema.vue +34 -4
- package/src/components/form/BglForm.vue +13 -3
- package/src/components/form/inputs/CheckInput.vue +1 -0
- package/src/components/form/inputs/DatePicker.vue +13 -2
- package/src/components/form/inputs/RadioPillsInput.vue +15 -8
- package/src/components/form/inputs/SelectInput.vue +13 -11
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SelectInput, TextInput } from '..';
|
|
2
|
+
|
|
2
3
|
export type AttributeValue = string | number | boolean | null | undefined | Record<string, any>;
|
|
3
4
|
export type AttributeFn<T = Record<string, any>> = (field: any, row: T) => AttributeValue;
|
|
4
5
|
export interface Attributes<T = any> {
|
package/dist/types/NavLink.d.ts
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { MaterialIcons } from './materialIcons';
|
|
1
2
|
export type { ModalFormComponentProps, ModalApi, ModalComponentProps, ModalFormOptions, ModalOptions, } from '../plugins/modal';
|
|
2
|
-
import type { MaterialIcons } from './materialIcons';
|
|
3
3
|
export type { MaterialIcons };
|
|
4
4
|
export type { Tables, TableToTypeMapping } from '../../../sdk/src/index.ts';
|
|
5
5
|
export type { StorageFile } from './file';
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Attributes } from '../types';
|
|
2
|
+
|
|
2
3
|
export declare const debounce: (fn: () => void, delay?: number) => void;
|
|
3
4
|
export declare const keyToLabel: (key?: string) => string | undefined;
|
|
4
|
-
export declare const copyText: (text: string, cb?: (
|
|
5
|
+
export declare const copyText: (text: string, cb?: (msg: string) => void) => Promise<void>;
|
|
5
6
|
export declare const initials: (...strArr: string[]) => string;
|
|
6
7
|
export declare function useEscape(event: KeyboardEvent, closeModel: () => void): void;
|
|
7
8
|
export declare function classify(fieldVal?: any, row?: any, ...classes: any[]): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","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AC;AAEzC,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="avatar" :style="{ width: `${size}px`, height: `${size}px` }">
|
|
2
|
+
<div class="avatar flex" :style="{ width: `${size}px`, height: `${size}px` }">
|
|
3
3
|
<img v-if="src" :src="src" :alt="name">
|
|
4
4
|
<p v-else :style="{ 'line-height': `${size}px`, 'font-size': `calc(1.5rem * ${size} / 50)` }">
|
|
5
5
|
{{ fallback || initials(name || '') }}
|
|
@@ -26,6 +26,7 @@ withDefaults(defineProps<{
|
|
|
26
26
|
overflow: hidden;
|
|
27
27
|
text-align: center;
|
|
28
28
|
padding: 0;
|
|
29
|
+
flex-shrink: 0;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
.avatar p {
|
|
@@ -9,52 +9,48 @@
|
|
|
9
9
|
</div>
|
|
10
10
|
</template>
|
|
11
11
|
|
|
12
|
-
<script lang="ts" setup>
|
|
13
|
-
import Card from './Card.vue';
|
|
14
|
-
|
|
15
|
-
</script>
|
|
12
|
+
<script lang="ts" setup></script>
|
|
16
13
|
|
|
17
14
|
<style>
|
|
18
15
|
.list-wrap {
|
|
19
|
-
|
|
16
|
+
grid-template-rows: auto 1fr;
|
|
20
17
|
}
|
|
21
18
|
|
|
22
19
|
.list-item {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
20
|
+
padding: 0.5rem 1rem;
|
|
21
|
+
min-height: -webkit-fit-content;
|
|
22
|
+
min-height: -moz-fit-content;
|
|
23
|
+
min-height: fit-content;
|
|
24
|
+
margin: 0.25rem 0;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
transition: var(--bgl-transition);
|
|
27
|
+
color: var(--bgl-black);
|
|
28
|
+
text-decoration: none;
|
|
29
|
+
position: relative;
|
|
33
30
|
}
|
|
34
31
|
|
|
35
32
|
.list-item::after {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
content: '';
|
|
34
|
+
position: absolute;
|
|
35
|
+
left: 0;
|
|
36
|
+
right: 0;
|
|
37
|
+
bottom: -0.15rem;
|
|
38
|
+
border-bottom: 1px solid var(--border-color);
|
|
42
39
|
}
|
|
43
40
|
|
|
44
41
|
.list-item:hover,
|
|
45
42
|
.list-item.router-link-active {
|
|
46
|
-
|
|
43
|
+
background-color: var(--bgl-blue-light);
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
.list-item:active {
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
-webkit-filter: var(--bgl-hover-filter);
|
|
48
|
+
filter: var(--bgl-hover-filter);
|
|
52
49
|
}
|
|
53
50
|
|
|
54
51
|
@media screen and (max-width: 910px) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
52
|
+
.list-item {
|
|
53
|
+
padding: 0.5rem;
|
|
54
|
+
}
|
|
59
55
|
}
|
|
60
56
|
</style>
|