@bagelink/vue 0.0.736 → 0.0.740
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/AddressSaerch.vue.d.ts +7 -0
- package/dist/components/AddressSaerch.vue.d.ts.map +1 -0
- package/dist/components/AddressSearch.vue.d.ts +7 -0
- package/dist/components/AddressSearch.vue.d.ts.map +1 -0
- package/dist/components/Btn.vue.d.ts.map +1 -1
- package/dist/components/MapEmbed.vue.d.ts +55 -1
- package/dist/components/MapEmbed.vue.d.ts.map +1 -1
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/ModalConfirm.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/PasswordInput.vue.d.ts +18 -43
- package/dist/components/form/inputs/PasswordInput.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.map +1 -1
- package/dist/components/form/inputs/index.d.ts +1 -0
- package/dist/components/form/inputs/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/lightbox/Lightbox.vue.d.ts.map +1 -1
- package/dist/index.cjs +563 -338
- package/dist/index.mjs +563 -338
- package/dist/style.css +1157 -424
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +4 -3
- package/src/components/AddressSearch.vue +41 -0
- package/src/components/Badge.vue +1 -1
- package/src/components/Btn.vue +9 -7
- package/src/components/Card.vue +2 -2
- package/src/components/ListItem.vue +1 -1
- package/src/components/MapEmbed.vue +143 -104
- package/src/components/Modal.vue +5 -2
- package/src/components/ModalConfirm.vue +1 -1
- package/src/components/NavBar.vue +9 -9
- package/src/components/TableSchema.vue +3 -3
- package/src/components/form/inputs/Checkbox.vue +1 -1
- package/src/components/form/inputs/DatePicker.vue +5 -5
- package/src/components/form/inputs/FileUpload.vue +3 -3
- package/src/components/form/inputs/PasswordInput.vue +25 -0
- package/src/components/form/inputs/RadioGroup.vue +1 -1
- package/src/components/form/inputs/RadioPillsInput.vue +2 -2
- package/src/components/form/inputs/RichText.vue +3 -3
- package/src/components/form/inputs/RichText2/index.vue +8 -2
- package/src/components/form/inputs/SelectInput.vue +11 -4
- package/src/components/form/inputs/TableField.vue +3 -3
- package/src/components/form/inputs/TextInput.vue +3 -3
- package/src/components/form/inputs/ToggleInput.vue +1 -1
- package/src/components/form/inputs/index.ts +1 -0
- package/src/components/formkit/FileUploader.vue +1 -1
- package/src/components/formkit/MiscFields.vue +1 -1
- package/src/components/formkit/Toggle.vue +4 -4
- package/src/components/index.ts +1 -0
- package/src/components/layout/BottomMenu.vue +2 -2
- package/src/components/layout/SidebarMenu.vue +1 -1
- package/src/components/layout/TabsNav.vue +1 -1
- package/src/components/leaflet/leaflet.css +661 -0
- package/src/components/lightbox/Lightbox.vue +24 -18
- package/src/styles/appearance.css +16 -0
- package/src/styles/bagel.css +2 -1
- package/src/styles/inputs.css +3 -3
- package/src/styles/loginCard.css +1 -1
- package/src/styles/modal.css +2 -2
- package/src/styles/scrollbar.css +1 -1
- package/src/styles/text.css +8 -0
- package/src/styles/theme.css +68 -41
- package/src/utils/index.ts +16 -0
|
@@ -13,7 +13,7 @@ function open(item: LightboxItem, groupItems: LightboxItem[] = []) {
|
|
|
13
13
|
currentItem = item
|
|
14
14
|
if (!groupItems.length) return
|
|
15
15
|
group = groupItems
|
|
16
|
-
currentIndex = groupItems.
|
|
16
|
+
currentIndex = groupItems.findIndex(({ src }) => item.src === src)
|
|
17
17
|
document.addEventListener('keydown', handleKeydown)
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -75,17 +75,30 @@ defineExpose({ open, close })
|
|
|
75
75
|
@keydown.right="next"
|
|
76
76
|
@click="close"
|
|
77
77
|
>
|
|
78
|
-
<div class="
|
|
78
|
+
<div v-if="group && group.length > 1" class="navigation flex space-between px-3 w-100 absolute">
|
|
79
|
+
<Btn
|
|
80
|
+
class="navigation-btn oval"
|
|
81
|
+
icon="arrow_back"
|
|
82
|
+
@click="prev"
|
|
83
|
+
/>
|
|
84
|
+
<Btn
|
|
85
|
+
class="navigation-btn oval"
|
|
86
|
+
icon="arrow_forward"
|
|
87
|
+
@click="next"
|
|
88
|
+
/>
|
|
89
|
+
</div>
|
|
90
|
+
<div class="bgl-lightbox relative txt-center" @click.stop>
|
|
79
91
|
<Btn flat class="fixed top-1 end-1 color-white" icon="close" @click="close" />
|
|
80
92
|
<div class="bgl-lightbox-item">
|
|
81
93
|
<template v-if="currentItem?.type === 'image'">
|
|
82
|
-
<img :src="currentItem?.src" alt="Preview">
|
|
94
|
+
<img :src="currentItem?.src" alt="Preview" class="vw90 lightbox-image">
|
|
83
95
|
</template>
|
|
84
96
|
<template v-else-if="currentItem?.type === 'video'">
|
|
85
97
|
<BglVideo
|
|
86
98
|
:src="currentItem?.src"
|
|
87
99
|
autoplay
|
|
88
100
|
controls
|
|
101
|
+
class="vw90"
|
|
89
102
|
/>
|
|
90
103
|
</template>
|
|
91
104
|
<template v-else-if="currentItem?.type === 'pdf'">
|
|
@@ -95,6 +108,7 @@ defineExpose({ open, close })
|
|
|
95
108
|
width="100%"
|
|
96
109
|
height="1080"
|
|
97
110
|
:title="currentItem?.name"
|
|
111
|
+
class="vw90"
|
|
98
112
|
>
|
|
99
113
|
</template>
|
|
100
114
|
<template v-else>
|
|
@@ -105,22 +119,10 @@ defineExpose({ open, close })
|
|
|
105
119
|
</div>
|
|
106
120
|
</template>
|
|
107
121
|
</div>
|
|
108
|
-
<div v-if="group && group.length > 1" class="navigation flex space-between w-100 absolute">
|
|
109
|
-
<Btn
|
|
110
|
-
class="navigation-btn oval user-select-none"
|
|
111
|
-
icon="arrow_back"
|
|
112
|
-
@click="prev"
|
|
113
|
-
/>
|
|
114
|
-
<Btn
|
|
115
|
-
class="navigation-btn oval user-select-none"
|
|
116
|
-
icon="arrow_forward"
|
|
117
|
-
@click="next"
|
|
118
|
-
/>
|
|
119
|
-
</div>
|
|
120
122
|
<div
|
|
121
123
|
v-if="group && group.length > 1"
|
|
122
124
|
class="flex justify-content-center mt-2 overflow
|
|
123
|
-
|
|
125
|
+
p-1 fixed bottom start end gap-1 m_justify-content-start"
|
|
124
126
|
>
|
|
125
127
|
<template
|
|
126
128
|
v-for="(item, index) in group"
|
|
@@ -129,7 +131,7 @@ defineExpose({ open, close })
|
|
|
129
131
|
<img
|
|
130
132
|
v-if="item.type === 'image'"
|
|
131
133
|
class="thumbnail object-fit-cover hover
|
|
132
|
-
opacity-5 round flex bg-
|
|
134
|
+
opacity-5 round flex bg-popup justify-content-center align-items-center flex-shrink-0"
|
|
133
135
|
:src="item.src"
|
|
134
136
|
alt=""
|
|
135
137
|
:class="{ active: currentIndex === index }"
|
|
@@ -138,7 +140,7 @@ defineExpose({ open, close })
|
|
|
138
140
|
<Icon
|
|
139
141
|
v-else
|
|
140
142
|
class="thumbnail object-fit-cover hover
|
|
141
|
-
opacity-5 round flex bg-
|
|
143
|
+
opacity-5 round flex bg-popup justify-content-center align-items-center flex-shrink-0"
|
|
142
144
|
icon="description"
|
|
143
145
|
:class="{ active: currentIndex === index }"
|
|
144
146
|
@click="selectItem(index)"
|
|
@@ -151,6 +153,10 @@ defineExpose({ open, close })
|
|
|
151
153
|
</template>
|
|
152
154
|
|
|
153
155
|
<style scoped>
|
|
156
|
+
.lightbox-image{
|
|
157
|
+
object-fit: contain;
|
|
158
|
+
}
|
|
159
|
+
|
|
154
160
|
.bgl-lightbox-overlay {
|
|
155
161
|
background: rgba(0, 0, 0, 0.8);
|
|
156
162
|
}
|
|
@@ -108,6 +108,14 @@
|
|
|
108
108
|
color: var(--bgl-white) !important;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
+
.bg-popup {
|
|
112
|
+
background: var(--bgl-popup-bg) !important;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.color-popup {
|
|
116
|
+
color: var(--bgl-popup-bg) !important;
|
|
117
|
+
}
|
|
118
|
+
|
|
111
119
|
.bg-primary {
|
|
112
120
|
background: var(--bgl-primary) !important;
|
|
113
121
|
}
|
|
@@ -657,6 +665,14 @@
|
|
|
657
665
|
color: var(--bgl-white) !important;
|
|
658
666
|
}
|
|
659
667
|
|
|
668
|
+
.m_bg-popup {
|
|
669
|
+
background: var(--bgl-popup-bg) !important;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.m_color-popup {
|
|
673
|
+
color: var(--bgl-popup-bg) !important;
|
|
674
|
+
}
|
|
675
|
+
|
|
660
676
|
.m_bg-primary {
|
|
661
677
|
background: var(--bgl-primary) !important;
|
|
662
678
|
}
|
package/src/styles/bagel.css
CHANGED
|
@@ -37,11 +37,12 @@ body {
|
|
|
37
37
|
min-height: 100%;
|
|
38
38
|
background-color: var(--bgl-bg);
|
|
39
39
|
font-family: var(--bgl-font);
|
|
40
|
-
font-size:
|
|
40
|
+
font-size: var(--bgl-font-size);
|
|
41
41
|
font-weight: 400;
|
|
42
42
|
line-height: 1.65;
|
|
43
43
|
width: auto;
|
|
44
44
|
height: auto;
|
|
45
|
+
color: var(--bgl-text-color);
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
a {
|
package/src/styles/inputs.css
CHANGED
|
@@ -19,7 +19,7 @@ select {
|
|
|
19
19
|
text-align: start;
|
|
20
20
|
margin-bottom: 0.5rem;
|
|
21
21
|
width: 100%;
|
|
22
|
-
color: var(--bgl-
|
|
22
|
+
color: var(--bgl-text-color);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.bagel-input::-webkit-input-placeholder .bagel-input label {
|
|
@@ -252,7 +252,7 @@ select {
|
|
|
252
252
|
.bagel-input.light-input textarea,
|
|
253
253
|
.bagel-input.light-input select,
|
|
254
254
|
.custom-select.light-input .input {
|
|
255
|
-
background: var(--bgl-
|
|
255
|
+
background: var(--bgl-popup-bg) !important;
|
|
256
256
|
box-shadow: 0 1px 5px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1) !important;
|
|
257
257
|
outline: 1px solid var(--border-color) !important;
|
|
258
258
|
}
|
|
@@ -261,7 +261,7 @@ select {
|
|
|
261
261
|
.bagel-input.light-input input:focus-visible,
|
|
262
262
|
.bagel-input.light-input select:focus-visible,
|
|
263
263
|
.bagel-input.light-input textarea:focus-visible {
|
|
264
|
-
box-shadow: inset 0 0 2px var(--bgl-
|
|
264
|
+
box-shadow: inset 0 0 2px var(--bgl-popup-text) !important;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
.bagel-input input[type="number"]-webkit-inner-spin-button,
|
package/src/styles/loginCard.css
CHANGED
package/src/styles/modal.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
right: 0;
|
|
5
5
|
left: 0;
|
|
6
6
|
bottom: 0;
|
|
7
|
-
background-color:
|
|
7
|
+
background-color: var(--bgl-dark-bg);
|
|
8
8
|
z-index: 999;
|
|
9
9
|
pointer-events: none;
|
|
10
10
|
opacity: 0;
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
padding-top: 0rem;
|
|
67
67
|
top: 0rem;
|
|
68
68
|
z-index: 3;
|
|
69
|
-
background: var(--bgl-
|
|
69
|
+
background: var(--bgl-popup-bg);
|
|
70
70
|
border-radius: var(--card-border-radius);
|
|
71
71
|
}
|
|
72
72
|
|
package/src/styles/scrollbar.css
CHANGED
package/src/styles/text.css
CHANGED
|
@@ -263,6 +263,10 @@
|
|
|
263
263
|
line-height: 2;
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
+
.line-height-normal {
|
|
267
|
+
line-height: normal;
|
|
268
|
+
}
|
|
269
|
+
|
|
266
270
|
.ellipsis {
|
|
267
271
|
overflow: hidden;
|
|
268
272
|
display: block;
|
|
@@ -640,6 +644,10 @@
|
|
|
640
644
|
line-height: 2;
|
|
641
645
|
}
|
|
642
646
|
|
|
647
|
+
.m_line-height-normal {
|
|
648
|
+
line-height: normal;
|
|
649
|
+
}
|
|
650
|
+
|
|
643
651
|
.m_ellipsis {
|
|
644
652
|
overflow: hidden;
|
|
645
653
|
display: block;
|
package/src/styles/theme.css
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* @import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined&display=swap"); */
|
|
4
|
-
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");
|
|
5
|
-
@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@100;200;300;400;500;600;700;800;900&display=swap");
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');
|
|
2
|
+
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100;200;300;400;500;600;700;800;900&display=swap');
|
|
6
3
|
|
|
4
|
+
/* TEHEME */
|
|
7
5
|
:root {
|
|
8
6
|
--bgl-primary: #2e5bff;
|
|
9
7
|
--bgl-primary-tint: #2e5bff80;
|
|
10
8
|
--bgl-primary-light: #eef6ff;
|
|
11
|
-
--bgl-accent-color:var(--bgl-primary);
|
|
12
|
-
--bgl-blue-20: rgba(46, 91, 255, 20%);
|
|
13
|
-
--bgl-blue-dark: #191c30;
|
|
14
|
-
--bgl-blue-light: #eef6ff;
|
|
15
9
|
--bgl-black: #282929;
|
|
16
10
|
--bgl-black-tint: #28292980;
|
|
17
11
|
--bgl-white: #fff;
|
|
@@ -20,35 +14,68 @@
|
|
|
20
14
|
--bgl-gray-80: #e8ecef;
|
|
21
15
|
--bgl-gray-20: rgba(183, 183, 183, 0.2);
|
|
22
16
|
--bgl-gray-40: rgba(183, 183, 183, 0.4);
|
|
23
|
-
--bgl-
|
|
24
|
-
--bgl-red: #ed6c6f;
|
|
25
|
-
--bgl-red-tint: #fbe2e2;
|
|
26
|
-
--bgl-yellow: #ffbb00;
|
|
27
|
-
--bgl-yellow-light: #fff6d5;
|
|
28
|
-
--bgl-green: #75c98f;
|
|
29
|
-
--border-color: #00000020;
|
|
17
|
+
--bgl-accent-color: var(--bgl-primary);
|
|
30
18
|
--bgl-bg: #f4f6fa;
|
|
31
19
|
--bgl-shadow: #4c577d26;
|
|
32
|
-
--
|
|
33
|
-
--whatsapp-green: #e0fcd6;
|
|
34
|
-
--whatsapp-blue: #71bce6;
|
|
35
|
-
--input-border-radius: 7px;
|
|
36
|
-
--card-border-radius: 12px;
|
|
20
|
+
--border-color: #00000020;
|
|
37
21
|
--placeholder-color: #00000040;
|
|
38
22
|
--label-color: #00000080;
|
|
39
|
-
--label-font-size: 12px;
|
|
40
23
|
--input-bg: #f5f8fa;
|
|
41
24
|
--input-color: #000000;
|
|
25
|
+
--bgl-box-bg: var(--bgl-white);
|
|
26
|
+
--bgl-popup-bg: var(--bgl-white);
|
|
27
|
+
--bgl-popup-text: var(--bgl-black);
|
|
28
|
+
--bgl-text-color: var(--bgl-black);
|
|
29
|
+
--bgl-light-text: var(--bgl-white);
|
|
30
|
+
--bgl-richtext-color: var(--bgl-white);
|
|
31
|
+
--bgl-code-bg: var(--bgl-black);
|
|
32
|
+
--bgl-code-color: var(--bgl-white);
|
|
33
|
+
--bgl-dark-bg: rgba(0, 0, 0, 0.7);
|
|
34
|
+
--bgl-selection-bg: var(--bgl-blue-dark);
|
|
35
|
+
--bgl-selection-color: var(--bgl-white);
|
|
36
|
+
--bgl-scrollbar-thumb: var(var(--bgl-gray));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* TYPE */
|
|
40
|
+
:root {
|
|
41
|
+
--bgl-font: 'Lexend', 'Ploni', sans-serif;
|
|
42
|
+
--input-font-size: 16px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* DIMENSIONS */
|
|
46
|
+
:root {
|
|
47
|
+
--bgl-font-size: 16px;
|
|
42
48
|
--input-height: 40px;
|
|
43
|
-
--
|
|
49
|
+
--label-font-size: 12px;
|
|
50
|
+
--input-border-radius: 7px;
|
|
51
|
+
--card-border-radius: 12px;
|
|
44
52
|
--btn-border-radius: 10px;
|
|
45
53
|
--btn-padding: 30px;
|
|
46
54
|
--btn-height: 40px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* MISC */
|
|
58
|
+
:root {
|
|
47
59
|
--bgl-transition: all 200ms ease;
|
|
48
60
|
--bgl-transition-400: all 400ms ease;
|
|
49
61
|
--bgl-hover-filter: brightness(90%);
|
|
50
62
|
--bgl-active-filter: brightness(70%);
|
|
51
|
-
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* OTHER COLORS */
|
|
66
|
+
:root {
|
|
67
|
+
--bgl-blue-20: rgba(46, 91, 255, 20%);
|
|
68
|
+
--bgl-blue-dark: #191c30;
|
|
69
|
+
--bgl-blue-light: #eef6ff;
|
|
70
|
+
--bgl-pink: #f1416c;
|
|
71
|
+
--bgl-red: #ed6c6f;
|
|
72
|
+
--bgl-red-tint: #fbe2e2;
|
|
73
|
+
--bgl-yellow: #ffbb00;
|
|
74
|
+
--bgl-yellow-light: #fff6d5;
|
|
75
|
+
--bgl-green: #75c98f;
|
|
76
|
+
--whatsapp-gray: #89959f;
|
|
77
|
+
--whatsapp-green: #e0fcd6;
|
|
78
|
+
--whatsapp-blue: #71bce6;
|
|
52
79
|
}
|
|
53
80
|
|
|
54
81
|
.Vue-Toastification__toast {
|
|
@@ -66,20 +93,18 @@
|
|
|
66
93
|
}
|
|
67
94
|
|
|
68
95
|
::-moz-selection {
|
|
69
|
-
color: var(--bgl-
|
|
70
|
-
background: var(--bgl-
|
|
96
|
+
color: var(--bgl-selection-color);
|
|
97
|
+
background: var(--bgl-selection-bg);
|
|
71
98
|
}
|
|
72
99
|
|
|
73
100
|
::selection {
|
|
74
|
-
color: var(--bgl-
|
|
75
|
-
background: var(--bgl-
|
|
101
|
+
color: var(--bgl-selection-color);
|
|
102
|
+
background: var(--bgl-selection-bg);
|
|
76
103
|
}
|
|
77
104
|
|
|
78
|
-
|
|
79
|
-
|
|
80
105
|
.popup {
|
|
81
106
|
border-radius: 15px;
|
|
82
|
-
background: var(--bgl-
|
|
107
|
+
background: var(--bgl-popup-bg);
|
|
83
108
|
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 10%);
|
|
84
109
|
padding: 2rem;
|
|
85
110
|
min-width: 300px;
|
|
@@ -163,9 +188,10 @@
|
|
|
163
188
|
-moz-column-gap: 1rem;
|
|
164
189
|
column-gap: 1rem;
|
|
165
190
|
grid-template-rows: 1fr;
|
|
166
|
-
grid-template-areas:
|
|
191
|
+
grid-template-areas: 'list-view detail-view';
|
|
167
192
|
transition: grid-template-columns 0.4s cubic-bezier(0.79, 0.01, 0.34, 0.99);
|
|
168
|
-
transition:
|
|
193
|
+
transition:
|
|
194
|
+
grid-template-columns 0.4s cubic-bezier(0.79, 0.01, 0.34, 0.99),
|
|
169
195
|
-ms-grid-columns 0.4s cubic-bezier(0.79, 0.01, 0.34, 0.99);
|
|
170
196
|
transition: all 0.5s cubic-bezier(0.79, 0.01, 0.34, 0.99);
|
|
171
197
|
}
|
|
@@ -209,9 +235,10 @@
|
|
|
209
235
|
.table-list-wrap {
|
|
210
236
|
overflow: auto;
|
|
211
237
|
}
|
|
212
|
-
|
|
213
|
-
[dir=
|
|
214
|
-
|
|
238
|
+
|
|
239
|
+
[dir='rtl'] .data-row .bgl_icon-font,
|
|
240
|
+
[dir='rtl'] .embedded-field .bgl_icon-font {
|
|
241
|
+
transform: rotateY(180deg) !important;
|
|
215
242
|
}
|
|
216
243
|
|
|
217
244
|
.copy-url {
|
|
@@ -229,13 +256,13 @@
|
|
|
229
256
|
margin: 0;
|
|
230
257
|
font-size: 12px;
|
|
231
258
|
opacity: 0.8;
|
|
232
|
-
color: var(--bgl-
|
|
259
|
+
color: var(--bgl-text-color);
|
|
233
260
|
word-break: break-all;
|
|
234
261
|
}
|
|
235
262
|
|
|
236
263
|
.list-view {
|
|
237
264
|
grid-area: list-view;
|
|
238
|
-
grid-template-areas:
|
|
265
|
+
grid-template-areas: 'list-header''list-content';
|
|
239
266
|
grid-template-columns: 1fr;
|
|
240
267
|
overflow-y: auto;
|
|
241
268
|
grid-template-rows: -webkit-max-content 1fr;
|
|
@@ -271,7 +298,7 @@
|
|
|
271
298
|
|
|
272
299
|
.detail-view-inner {
|
|
273
300
|
border-radius: var(--card-border-radius);
|
|
274
|
-
background: var(--bgl-
|
|
301
|
+
background: var(--bgl-box-bg);
|
|
275
302
|
}
|
|
276
303
|
|
|
277
304
|
.detail-view-inner-wrap {
|
|
@@ -282,7 +309,7 @@
|
|
|
282
309
|
}
|
|
283
310
|
|
|
284
311
|
.detail-view-inner-wrap.bgl_card {
|
|
285
|
-
background: var(--bgl-
|
|
312
|
+
background: var(--bgl-box-bg);
|
|
286
313
|
}
|
|
287
314
|
|
|
288
315
|
.bgl_card {
|
|
@@ -304,7 +331,7 @@
|
|
|
304
331
|
|
|
305
332
|
.popup {
|
|
306
333
|
border-radius: 15px;
|
|
307
|
-
background: var(--bgl-
|
|
334
|
+
background: var(--bgl-popup-bg);
|
|
308
335
|
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 10%);
|
|
309
336
|
padding: 2rem;
|
|
310
337
|
min-width: 0;
|
package/src/utils/index.ts
CHANGED
|
@@ -83,3 +83,19 @@ export function getFallbackSchema<T>(data?: any[], showFields?: string[]): BglFo
|
|
|
83
83
|
? schema.filter(f => showFields.includes(f.id as string) || !f.id)
|
|
84
84
|
: schema
|
|
85
85
|
}
|
|
86
|
+
|
|
87
|
+
export const sleep = (ms: number = 100) => new Promise(resolve => setTimeout(resolve, ms))
|
|
88
|
+
|
|
89
|
+
export function appendScript(src: string): Promise<void> {
|
|
90
|
+
return new Promise((resolve, reject) => {
|
|
91
|
+
if (document.querySelector(`script[src="${src}"]`)) {
|
|
92
|
+
resolve()
|
|
93
|
+
return
|
|
94
|
+
}
|
|
95
|
+
const script = document.createElement('script')
|
|
96
|
+
script.src = src
|
|
97
|
+
script.onload = () => { resolve() }
|
|
98
|
+
script.onerror = reject
|
|
99
|
+
document.head.appendChild(script)
|
|
100
|
+
})
|
|
101
|
+
}
|