@bagelink/vue 0.0.449 → 0.0.455
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/Flag.vue.d.ts +9 -5
- package/dist/components/Flag.vue.d.ts.map +1 -1
- package/dist/components/MapEmbed.vue.d.ts +20 -0
- package/dist/components/MapEmbed.vue.d.ts.map +1 -0
- package/dist/components/TableSchema.vue.d.ts +20 -8
- package/dist/components/TableSchema.vue.d.ts.map +1 -1
- package/dist/components/form/BglField.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TelInput.vue.d.ts +203 -127
- package/dist/components/form/inputs/TelInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TextInput.vue.d.ts +7 -2
- package/dist/components/form/inputs/TextInput.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 +10131 -465
- package/dist/index.mjs +10131 -465
- package/dist/plugins/modal.d.ts.map +1 -1
- package/dist/style.css +801 -1122
- package/dist/types/BagelForm.d.ts +1 -0
- package/dist/types/BagelForm.d.ts.map +1 -1
- package/package.json +4 -2
- package/src/components/Flag.vue +45 -1341
- package/src/components/MapEmbed.vue +67 -0
- package/src/components/form/BglField.vue +1 -0
- package/src/components/form/inputs/RichText.vue +2 -2
- package/src/components/form/inputs/SelectInput.vue +7 -8
- package/src/components/form/inputs/TelInput.vue +164 -108
- package/src/components/form/inputs/TextInput.vue +8 -9
- package/src/components/index.ts +1 -0
- package/src/plugins/modal.ts +13 -12
- package/src/styles/appearance.css +54 -19
- package/src/styles/layout.css +5 -0
- package/src/styles/mobilLayout.css +6 -0
- package/src/styles/text.css +32 -3
- package/src/types/BagelForm.ts +1 -0
package/src/plugins/modal.ts
CHANGED
|
@@ -21,7 +21,7 @@ export interface ModalFormOptions {
|
|
|
21
21
|
visible?: boolean;
|
|
22
22
|
width?: string;
|
|
23
23
|
dismissable?: boolean;
|
|
24
|
-
schema: BglFormSchemaT<any> | (() => BglFormSchemaT) | BglFormSchemaT
|
|
24
|
+
schema: BglFormSchemaT<any> | (() => BglFormSchemaT) | BglFormSchemaT;
|
|
25
25
|
onSubmit?: (formData: any) => any;
|
|
26
26
|
onDelete?: (id: string) => Promise<void>;
|
|
27
27
|
onError?: ((err: any) => void);
|
|
@@ -33,22 +33,24 @@ export type ModalConfirmOptions = {
|
|
|
33
33
|
title?: string;
|
|
34
34
|
message?: string;
|
|
35
35
|
resolve: (val: boolean) => void;
|
|
36
|
-
}
|
|
36
|
+
};
|
|
37
37
|
|
|
38
|
-
type ModalType = 'modal' | 'modalForm' | 'confirm'
|
|
38
|
+
type ModalType = 'modal' | 'modalForm' | 'confirm';
|
|
39
39
|
|
|
40
|
-
type ConfirmModalUserOptions = string | { title: string
|
|
40
|
+
type ConfirmModalUserOptions = string | { title: string; message: string };
|
|
41
41
|
|
|
42
42
|
export interface ModalComponentProps {
|
|
43
|
-
componentSlots: Record<string, any
|
|
44
|
-
modalType: ModalType
|
|
45
|
-
modalOptions: ModalOptions | ModalFormOptions | ModalConfirmOptions
|
|
43
|
+
componentSlots: Record<string, any>;
|
|
44
|
+
modalType: ModalType;
|
|
45
|
+
modalOptions: ModalOptions | ModalFormOptions | ModalConfirmOptions;
|
|
46
46
|
}
|
|
47
|
+
|
|
47
48
|
export interface ModalFormComponentProps {
|
|
48
|
-
componentSlots: Record<string, any
|
|
49
|
-
modalType: 'modalForm'
|
|
50
|
-
modalOptions: ModalFormOptions
|
|
49
|
+
componentSlots: Record<string, any>;
|
|
50
|
+
modalType: 'modalForm';
|
|
51
|
+
modalOptions: ModalFormOptions;
|
|
51
52
|
}
|
|
53
|
+
|
|
52
54
|
export interface ModalApi {
|
|
53
55
|
showModal: (options: ModalOptions, slots?: Record<string, any>) => void;
|
|
54
56
|
showModalForm: (options: ModalFormOptions, slots?: Record<string, any>) => ModalFormComponentProps | undefined;
|
|
@@ -100,13 +102,12 @@ export const ModalPlugin: Plugin = {
|
|
|
100
102
|
showModalForm: (options: ModalFormOptions, slots?: Record<string, any>) => showModal('modalForm', options, slots) as ModalFormComponentProps,
|
|
101
103
|
confirm: (userOptions: ConfirmModalUserOptions) => modalConfirm(userOptions),
|
|
102
104
|
hideModal: (index = modalStack.length - 1) => hideModal(index),
|
|
103
|
-
// modalOptions,
|
|
104
105
|
});
|
|
105
106
|
|
|
106
107
|
const ModalComponent = defineComponent({
|
|
107
108
|
data: () => ({ modalStack }),
|
|
108
109
|
render() {
|
|
109
|
-
return modalStack.map((modal, index) => {
|
|
110
|
+
return this.modalStack.map((modal, index) => {
|
|
110
111
|
const props = { ...modal.modalOptions, visible: true, 'onUpdate:visible': () => hideModal(index) };
|
|
111
112
|
if (modal.modalType === 'modalForm') return h(ModalForm, props as ModalFormOptions, modal.componentSlots);
|
|
112
113
|
if (modal.modalType === 'confirm') return h(ModalConfirm, props as any, {});
|
|
@@ -42,43 +42,53 @@
|
|
|
42
42
|
opacity: 1;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.z-index-0
|
|
45
|
+
.z-index-0,
|
|
46
|
+
.z-0 {
|
|
46
47
|
z-index: 0;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
|
-
.z-index-1
|
|
50
|
+
.z-index-1,
|
|
51
|
+
.z-1 {
|
|
50
52
|
z-index: 1;
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
.z-index-2
|
|
55
|
+
.z-index-2,
|
|
56
|
+
.z-2 {
|
|
54
57
|
z-index: 2;
|
|
55
58
|
}
|
|
56
59
|
|
|
57
|
-
.z-index-3
|
|
60
|
+
.z-index-3,
|
|
61
|
+
.z-3 {
|
|
58
62
|
z-index: 3;
|
|
59
63
|
}
|
|
60
64
|
|
|
61
|
-
.z-index-4
|
|
65
|
+
.z-index-4,
|
|
66
|
+
.z-4 {
|
|
62
67
|
z-index: 4;
|
|
63
68
|
}
|
|
64
69
|
|
|
65
|
-
.z-index-5
|
|
70
|
+
.z-index-5,
|
|
71
|
+
.z-5 {
|
|
66
72
|
z-index: 5;
|
|
67
73
|
}
|
|
68
74
|
|
|
69
|
-
.z-index-9
|
|
75
|
+
.z-index-9,
|
|
76
|
+
.z-9 {
|
|
70
77
|
z-index: 9;
|
|
71
78
|
}
|
|
72
79
|
|
|
73
|
-
.z-index-99
|
|
80
|
+
.z-index-99,
|
|
81
|
+
.z-99 {
|
|
74
82
|
z-index: 99;
|
|
75
83
|
}
|
|
76
84
|
|
|
77
|
-
.z-index-999
|
|
85
|
+
.z-index-999,
|
|
86
|
+
.z-999 {
|
|
78
87
|
z-index: 999;
|
|
79
88
|
}
|
|
80
89
|
|
|
81
|
-
.z-index-9999
|
|
90
|
+
.z-index-9999,
|
|
91
|
+
.z-9999 {
|
|
82
92
|
z-index: 9999;
|
|
83
93
|
}
|
|
84
94
|
|
|
@@ -170,6 +180,14 @@
|
|
|
170
180
|
color: var(--bgl-gray) !important;
|
|
171
181
|
}
|
|
172
182
|
|
|
183
|
+
.color-label {
|
|
184
|
+
color: var(--label-color) !important;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.bg-label {
|
|
188
|
+
background: var(--label-color) !important;
|
|
189
|
+
}
|
|
190
|
+
|
|
173
191
|
.bg-gray-light {
|
|
174
192
|
background: var(--bgl-gray-light) !important;
|
|
175
193
|
}
|
|
@@ -456,39 +474,48 @@
|
|
|
456
474
|
opacity: 1;
|
|
457
475
|
}
|
|
458
476
|
|
|
459
|
-
.m_z-index-0
|
|
477
|
+
.m_z-index-0,
|
|
478
|
+
.m_z-0 {
|
|
460
479
|
z-index: 0;
|
|
461
480
|
}
|
|
462
481
|
|
|
463
|
-
.m_z-index-1
|
|
482
|
+
.m_z-index-1,
|
|
483
|
+
.m_z-1 {
|
|
464
484
|
z-index: 1;
|
|
465
485
|
}
|
|
466
486
|
|
|
467
|
-
.m_z-index-2
|
|
487
|
+
.m_z-index-2,
|
|
488
|
+
.m_z-2 {
|
|
468
489
|
z-index: 2;
|
|
469
490
|
}
|
|
470
491
|
|
|
471
|
-
.m_z-index-3
|
|
492
|
+
.m_z-index-3,
|
|
493
|
+
.m_z-3 {
|
|
472
494
|
z-index: 3;
|
|
473
495
|
}
|
|
474
496
|
|
|
475
|
-
.m_z-index-4
|
|
497
|
+
.m_z-index-4,
|
|
498
|
+
.m_z-4 {
|
|
476
499
|
z-index: 4;
|
|
477
500
|
}
|
|
478
501
|
|
|
479
|
-
.m_z-index-5
|
|
502
|
+
.m_z-index-5,
|
|
503
|
+
.m_z-5 {
|
|
480
504
|
z-index: 5;
|
|
481
505
|
}
|
|
482
506
|
|
|
483
|
-
.m_z-index-9
|
|
507
|
+
.m_z-index-9,
|
|
508
|
+
.m_z-9 {
|
|
484
509
|
z-index: 9;
|
|
485
510
|
}
|
|
486
511
|
|
|
487
|
-
.m_z-index-99
|
|
512
|
+
.m_z-index-99,
|
|
513
|
+
.m_z-99 {
|
|
488
514
|
z-index: 99;
|
|
489
515
|
}
|
|
490
516
|
|
|
491
|
-
.m_z-index-999
|
|
517
|
+
.m_z-index-999,
|
|
518
|
+
.m_z-999 {
|
|
492
519
|
z-index: 999;
|
|
493
520
|
}
|
|
494
521
|
|
|
@@ -581,6 +608,14 @@
|
|
|
581
608
|
color: var(--bgl-gray) !important;
|
|
582
609
|
}
|
|
583
610
|
|
|
611
|
+
.m_color-label {
|
|
612
|
+
color: var(--label-color) !important;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.m_bg-label {
|
|
616
|
+
background: var(--label-color) !important;
|
|
617
|
+
}
|
|
618
|
+
|
|
584
619
|
.m_bg-gray-light {
|
|
585
620
|
background: var(--bgl-gray-light) !important;
|
|
586
621
|
}
|
package/src/styles/layout.css
CHANGED
package/src/styles/text.css
CHANGED
|
@@ -176,6 +176,16 @@
|
|
|
176
176
|
font-weight: 400;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
+
.semi,
|
|
180
|
+
.semibold,
|
|
181
|
+
.txt-semi,
|
|
182
|
+
.txt-semibold,
|
|
183
|
+
.font-regular,
|
|
184
|
+
.font-semi,
|
|
185
|
+
.font-semibold {
|
|
186
|
+
font-weight: 600;
|
|
187
|
+
}
|
|
188
|
+
|
|
179
189
|
.line-height-1 {
|
|
180
190
|
line-height: 1;
|
|
181
191
|
}
|
|
@@ -233,6 +243,11 @@
|
|
|
233
243
|
text-decoration: none;
|
|
234
244
|
}
|
|
235
245
|
|
|
246
|
+
.underline,
|
|
247
|
+
.decoration-underline {
|
|
248
|
+
text-decoration: underline !important;
|
|
249
|
+
}
|
|
250
|
+
|
|
236
251
|
.word-break {
|
|
237
252
|
word-break: break-word;
|
|
238
253
|
}
|
|
@@ -249,9 +264,6 @@
|
|
|
249
264
|
text-transform: capitalize;
|
|
250
265
|
}
|
|
251
266
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
267
|
.bgl_icon-font {
|
|
256
268
|
font-family: "Material Symbols Outlined", serif !important;
|
|
257
269
|
}
|
|
@@ -468,6 +480,17 @@
|
|
|
468
480
|
font-weight: 400;
|
|
469
481
|
}
|
|
470
482
|
|
|
483
|
+
.m_semi,
|
|
484
|
+
.m_semibold,
|
|
485
|
+
.m_txt-semi,
|
|
486
|
+
.m_txt-semibold,
|
|
487
|
+
.m_font-regular,
|
|
488
|
+
.m_font-semi,
|
|
489
|
+
.m_font-semibold {
|
|
490
|
+
font-weight: 600;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
|
|
471
494
|
.m_line-height-1 {
|
|
472
495
|
line-height: 1;
|
|
473
496
|
}
|
|
@@ -525,6 +548,12 @@
|
|
|
525
548
|
text-decoration: none;
|
|
526
549
|
}
|
|
527
550
|
|
|
551
|
+
.m_underline,
|
|
552
|
+
.m_decoration-underline {
|
|
553
|
+
text-decoration: underline !important;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
|
|
528
557
|
.m_bgl_icon-font {
|
|
529
558
|
font-family: "Material Symbols Outlined", serif;
|
|
530
559
|
}
|
package/src/types/BagelForm.ts
CHANGED
|
@@ -17,6 +17,7 @@ export type BaseBagelField<T = Record<string, any>> = {
|
|
|
17
17
|
class?: AttributeValue | AttributeFn<T>,
|
|
18
18
|
attrs?: Attributes<T>;
|
|
19
19
|
required?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
20
21
|
helptext?: string;
|
|
21
22
|
options?: string | ({ label?: string; value: string | number } | string | number | Record<string, any>)[] | ((val: any, rowData?: Record<string, any>) => void);
|
|
22
23
|
defaultValue?: any;
|