@bagelink/vue 0.0.738 → 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/PasswordInput.vue.d.ts +6 -6
- 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/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs +399 -217
- package/dist/index.mjs +399 -217
- package/dist/style.css +1137 -417
- 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 +1 -1
- package/src/components/form/inputs/PasswordInput.vue +9 -10
- 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/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/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 +2 -2
- 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/theme.css +68 -41
- package/src/utils/index.ts +16 -0
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/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
|
+
}
|