@bagelink/vue 0.0.742 → 0.0.747
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 +8 -3
- package/dist/components/Accordion.vue.d.ts.map +1 -1
- package/dist/components/AccordionItem.vue.d.ts +13 -17
- package/dist/components/AccordionItem.vue.d.ts.map +1 -1
- package/dist/components/AddressSearch.vue.d.ts +2 -2
- package/dist/components/AddressSearch.vue.d.ts.map +1 -1
- package/dist/components/Alert.vue.d.ts +2 -23
- package/dist/components/Alert.vue.d.ts.map +1 -1
- package/dist/components/Avatar.vue.d.ts +4 -25
- package/dist/components/Avatar.vue.d.ts.map +1 -1
- package/dist/components/Badge.vue.d.ts +1 -10
- package/dist/components/Badge.vue.d.ts.map +1 -1
- package/dist/components/BglVideo.vue.d.ts +1 -10
- package/dist/components/BglVideo.vue.d.ts.map +1 -1
- package/dist/components/Btn.vue.d.ts +11 -43
- package/dist/components/Btn.vue.d.ts.map +1 -1
- package/dist/components/Card.vue.d.ts +10 -14
- package/dist/components/Card.vue.d.ts.map +1 -1
- package/dist/components/Carousel.vue.d.ts +22 -15
- package/dist/components/Carousel.vue.d.ts.map +1 -1
- package/dist/components/DataPreview.vue.d.ts +11 -15
- package/dist/components/DataPreview.vue.d.ts.map +1 -1
- package/dist/components/DropDown.vue.d.ts +713 -14
- package/dist/components/DropDown.vue.d.ts.map +1 -1
- package/dist/components/Flag.vue.d.ts +1 -10
- package/dist/components/Flag.vue.d.ts.map +1 -1
- package/dist/components/ListItem.vue.d.ts +11 -15
- package/dist/components/ListItem.vue.d.ts.map +1 -1
- package/dist/components/ListView.vue.d.ts +9 -4
- package/dist/components/ListView.vue.d.ts.map +1 -1
- package/dist/components/MapEmbed.vue.d.ts +4 -33
- package/dist/components/MapEmbed.vue.d.ts.map +1 -1
- package/dist/components/MaterialIcon.vue.d.ts +3 -12
- package/dist/components/MaterialIcon.vue.d.ts.map +1 -1
- package/dist/components/Modal.vue.d.ts +15 -19
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/ModalConfirm.vue.d.ts +5 -14
- package/dist/components/ModalConfirm.vue.d.ts.map +1 -1
- package/dist/components/ModalForm.vue.d.ts +4 -15
- package/dist/components/ModalForm.vue.d.ts.map +1 -1
- package/dist/components/NavBar.vue.d.ts +14 -38
- package/dist/components/NavBar.vue.d.ts.map +1 -1
- package/dist/components/PageTitle.vue.d.ts +11 -6
- package/dist/components/PageTitle.vue.d.ts.map +1 -1
- package/dist/components/RouterWrapper.vue.d.ts +1 -1
- package/dist/components/RouterWrapper.vue.d.ts.map +1 -1
- package/dist/components/TableSchema.vue.d.ts +18 -15
- package/dist/components/TableSchema.vue.d.ts.map +1 -1
- package/dist/components/Title.vue.d.ts +11 -6
- package/dist/components/Title.vue.d.ts.map +1 -1
- package/dist/components/TopBar.vue.d.ts +8 -3
- package/dist/components/TopBar.vue.d.ts.map +1 -1
- package/dist/components/dashboard/Lineart.vue.d.ts +3 -12
- package/dist/components/dashboard/Lineart.vue.d.ts.map +1 -1
- package/dist/components/form/BglField.vue.d.ts +8 -8
- package/dist/components/form/BglField.vue.d.ts.map +1 -1
- package/dist/components/form/BglForm.vue.d.ts +27 -41
- package/dist/components/form/BglForm.vue.d.ts.map +1 -1
- package/dist/components/form/BglMultiStepForm.vue.d.ts +27 -45
- package/dist/components/form/BglMultiStepForm.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/CheckInput.vue.d.ts +15 -30
- package/dist/components/form/inputs/CheckInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/Checkbox.vue.d.ts +11 -15
- package/dist/components/form/inputs/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/ColorPicker.vue.d.ts +6 -27
- package/dist/components/form/inputs/ColorPicker.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DateInput.vue.d.ts +6 -31
- package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DatePicker.vue.d.ts +5 -14
- package/dist/components/form/inputs/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/FileUpload.vue.d.ts +74 -78
- package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/JSONInput.vue.d.ts +6 -33
- package/dist/components/form/inputs/JSONInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/PasswordInput.vue.d.ts +5 -14
- package/dist/components/form/inputs/PasswordInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RadioGroup.vue.d.ts +12 -12
- package/dist/components/form/inputs/RadioGroup.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RadioPillsInput.vue.d.ts +6 -31
- package/dist/components/form/inputs/RadioPillsInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText.vue.d.ts +5 -14
- package/dist/components/form/inputs/RichText.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts +5 -14
- package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/index.vue.d.ts +5 -14
- package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts +228 -16
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SignaturePad.vue.d.ts +5 -26
- package/dist/components/form/inputs/SignaturePad.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TableField.vue.d.ts +6 -29
- package/dist/components/form/inputs/TableField.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TelInput.vue.d.ts +6 -59
- package/dist/components/form/inputs/TelInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TextInput.vue.d.ts +6 -31
- package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/ToggleInput.vue.d.ts +12 -28
- package/dist/components/form/inputs/ToggleInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/index.d.ts +0 -1
- 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/layout/BottomMenu.vue.d.ts +10 -14
- package/dist/components/layout/BottomMenu.vue.d.ts.map +1 -1
- package/dist/components/layout/Layout.vue.d.ts +9 -35
- package/dist/components/layout/Layout.vue.d.ts.map +1 -1
- package/dist/components/layout/SidebarMenu.vue.d.ts +15 -19
- package/dist/components/layout/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/components/layout/TabbedLayout.vue.d.ts +15 -19
- package/dist/components/layout/TabbedLayout.vue.d.ts.map +1 -1
- package/dist/components/layout/Tabs.vue.d.ts +12 -16
- package/dist/components/layout/Tabs.vue.d.ts.map +1 -1
- package/dist/components/layout/TabsBody.vue.d.ts +10 -14
- package/dist/components/layout/TabsBody.vue.d.ts.map +1 -1
- package/dist/components/layout/TabsNav.vue.d.ts +5 -14
- package/dist/components/layout/TabsNav.vue.d.ts.map +1 -1
- package/dist/components/layout/tabsManager.d.ts +1 -1
- package/dist/components/lightbox/Lightbox.vue.d.ts +1 -2
- package/dist/components/lightbox/Lightbox.vue.d.ts.map +1 -1
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.d.ts.map +1 -1
- package/dist/index.cjs +320 -271
- package/dist/index.mjs +320 -271
- package/dist/style.css +69 -41
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/BagelFormUtils.d.ts +88 -216
- package/dist/utils/BagelFormUtils.d.ts.map +1 -1
- package/dist/utils/lang.d.ts +3 -3
- package/package.json +1 -1
- package/src/components/AddressSearch.vue +3 -2
- package/src/components/Dropdown.vue +72 -0
- package/src/components/ListItem.vue +9 -1
- package/src/components/ModalConfirm.vue +1 -1
- package/src/components/form/inputs/CheckInput.vue +3 -1
- package/src/components/form/inputs/PasswordInput.vue +7 -1
- package/src/components/form/inputs/SelectInput.vue +82 -83
- package/src/components/form/inputs/TelInput.vue +51 -50
- package/src/components/form/inputs/index.ts +0 -2
- package/src/components/index.ts +1 -0
- package/src/components/lightbox/Lightbox.vue +1 -1
- package/src/composables/index.ts +9 -3
- package/src/styles/inputs.css +4 -2
- package/src/styles/layout.css +4 -0
- package/src/styles/mobilLayout.css +4 -0
- package/src/styles/modal.css +2 -2
- package/src/styles/text.css +8 -0
- package/src/types/index.ts +3 -0
|
@@ -45,110 +45,62 @@ export declare function frmRow(...children: Field[]): {
|
|
|
45
45
|
};
|
|
46
46
|
export declare function bglForm(idOrField?: string | Field, ...schema: Field[]): {
|
|
47
47
|
$el: import('vue').Raw<{
|
|
48
|
-
new (...args: any[]): import('vue').
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
type: import('vue').PropType<(data: any) => void>;
|
|
58
|
-
};
|
|
59
|
-
id: {
|
|
60
|
-
type: import('vue').PropType<string>;
|
|
61
|
-
};
|
|
62
|
-
modelValue: {
|
|
63
|
-
type: import('vue').PropType<Record<string, any>>;
|
|
64
|
-
default: () => {};
|
|
65
|
-
};
|
|
66
|
-
onDelete: {
|
|
67
|
-
type: import('vue').PropType<(id: string) => void>;
|
|
68
|
-
};
|
|
69
|
-
status: {
|
|
70
|
-
type: import('vue').PropType<import('../components/form/BglForm.vue').FormStatus>;
|
|
71
|
-
};
|
|
72
|
-
}>> & {
|
|
48
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
49
|
+
label?: string;
|
|
50
|
+
id?: string;
|
|
51
|
+
schema: import('..').BglFormSchemaFnT<any>;
|
|
52
|
+
modelValue?: Record<string, any>;
|
|
53
|
+
onDelete?: (id: string) => void;
|
|
54
|
+
onSubmit?: (data: any) => void;
|
|
55
|
+
status?: import('../components/form/BglForm.vue').FormStatus;
|
|
56
|
+
}> & Readonly<{
|
|
73
57
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
74
58
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
75
59
|
onDirty?: ((...args: any[]) => any) | undefined;
|
|
76
|
-
}
|
|
60
|
+
}>, {
|
|
77
61
|
submit: () => void;
|
|
78
62
|
validateForm: () => boolean;
|
|
79
63
|
deleteItem: () => void;
|
|
80
64
|
isDirty: import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<false> | import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<true>;
|
|
81
65
|
clearForm: () => {};
|
|
82
|
-
},
|
|
66
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
83
67
|
submit: (...args: any[]) => void;
|
|
84
68
|
"update:modelValue": (...args: any[]) => void;
|
|
85
69
|
dirty: (...args: any[]) => void;
|
|
86
|
-
}, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
type: import('vue').PropType<(data: any) => void>;
|
|
96
|
-
};
|
|
97
|
-
id: {
|
|
98
|
-
type: import('vue').PropType<string>;
|
|
99
|
-
};
|
|
100
|
-
modelValue: {
|
|
101
|
-
type: import('vue').PropType<Record<string, any>>;
|
|
102
|
-
default: () => {};
|
|
103
|
-
};
|
|
104
|
-
onDelete: {
|
|
105
|
-
type: import('vue').PropType<(id: string) => void>;
|
|
106
|
-
};
|
|
107
|
-
status: {
|
|
108
|
-
type: import('vue').PropType<import('../components/form/BglForm.vue').FormStatus>;
|
|
109
|
-
};
|
|
110
|
-
}>> & {
|
|
70
|
+
}, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{
|
|
71
|
+
label?: string;
|
|
72
|
+
id?: string;
|
|
73
|
+
schema: import('..').BglFormSchemaFnT<any>;
|
|
74
|
+
modelValue?: Record<string, any>;
|
|
75
|
+
onDelete?: (id: string) => void;
|
|
76
|
+
onSubmit?: (data: any) => void;
|
|
77
|
+
status?: import('../components/form/BglForm.vue').FormStatus;
|
|
78
|
+
}> & Readonly<{
|
|
111
79
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
112
80
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
113
81
|
onDirty?: ((...args: any[]) => any) | undefined;
|
|
114
|
-
}
|
|
82
|
+
}>, {
|
|
115
83
|
modelValue: Record<string, any>;
|
|
116
|
-
},
|
|
84
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
117
85
|
P: {};
|
|
118
86
|
B: {};
|
|
119
87
|
D: {};
|
|
120
88
|
C: {};
|
|
121
89
|
M: {};
|
|
122
90
|
Defaults: {};
|
|
123
|
-
}, Readonly<
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
type: import('vue').PropType<(data: any) => void>;
|
|
133
|
-
};
|
|
134
|
-
id: {
|
|
135
|
-
type: import('vue').PropType<string>;
|
|
136
|
-
};
|
|
137
|
-
modelValue: {
|
|
138
|
-
type: import('vue').PropType<Record<string, any>>;
|
|
139
|
-
default: () => {};
|
|
140
|
-
};
|
|
141
|
-
onDelete: {
|
|
142
|
-
type: import('vue').PropType<(id: string) => void>;
|
|
143
|
-
};
|
|
144
|
-
status: {
|
|
145
|
-
type: import('vue').PropType<import('../components/form/BglForm.vue').FormStatus>;
|
|
146
|
-
};
|
|
147
|
-
}>> & {
|
|
91
|
+
}, Readonly<{
|
|
92
|
+
label?: string;
|
|
93
|
+
id?: string;
|
|
94
|
+
schema: import('..').BglFormSchemaFnT<any>;
|
|
95
|
+
modelValue?: Record<string, any>;
|
|
96
|
+
onDelete?: (id: string) => void;
|
|
97
|
+
onSubmit?: (data: any) => void;
|
|
98
|
+
status?: import('../components/form/BglForm.vue').FormStatus;
|
|
99
|
+
}> & Readonly<{
|
|
148
100
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
149
101
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
150
102
|
onDirty?: ((...args: any[]) => any) | undefined;
|
|
151
|
-
}
|
|
103
|
+
}>, {
|
|
152
104
|
submit: () => void;
|
|
153
105
|
validateForm: () => boolean;
|
|
154
106
|
deleteItem: () => void;
|
|
@@ -160,47 +112,31 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
160
112
|
__isFragment?: never;
|
|
161
113
|
__isTeleport?: never;
|
|
162
114
|
__isSuspense?: never;
|
|
163
|
-
} & import('vue').ComponentOptionsBase<Readonly<
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
type: import('vue').PropType<(data: any) => void>;
|
|
173
|
-
};
|
|
174
|
-
id: {
|
|
175
|
-
type: import('vue').PropType<string>;
|
|
176
|
-
};
|
|
177
|
-
modelValue: {
|
|
178
|
-
type: import('vue').PropType<Record<string, any>>;
|
|
179
|
-
default: () => {};
|
|
180
|
-
};
|
|
181
|
-
onDelete: {
|
|
182
|
-
type: import('vue').PropType<(id: string) => void>;
|
|
183
|
-
};
|
|
184
|
-
status: {
|
|
185
|
-
type: import('vue').PropType<import('../components/form/BglForm.vue').FormStatus>;
|
|
186
|
-
};
|
|
187
|
-
}>> & {
|
|
115
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
116
|
+
label?: string;
|
|
117
|
+
id?: string;
|
|
118
|
+
schema: import('..').BglFormSchemaFnT<any>;
|
|
119
|
+
modelValue?: Record<string, any>;
|
|
120
|
+
onDelete?: (id: string) => void;
|
|
121
|
+
onSubmit?: (data: any) => void;
|
|
122
|
+
status?: import('../components/form/BglForm.vue').FormStatus;
|
|
123
|
+
}> & Readonly<{
|
|
188
124
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
189
125
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
190
126
|
onDirty?: ((...args: any[]) => any) | undefined;
|
|
191
|
-
}
|
|
127
|
+
}>, {
|
|
192
128
|
submit: () => void;
|
|
193
129
|
validateForm: () => boolean;
|
|
194
130
|
deleteItem: () => void;
|
|
195
131
|
isDirty: import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<false> | import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<true>;
|
|
196
132
|
clearForm: () => {};
|
|
197
|
-
},
|
|
133
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
198
134
|
submit: (...args: any[]) => void;
|
|
199
135
|
"update:modelValue": (...args: any[]) => void;
|
|
200
136
|
dirty: (...args: any[]) => void;
|
|
201
137
|
}, string, {
|
|
202
138
|
modelValue: Record<string, any>;
|
|
203
|
-
}, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
139
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
204
140
|
$slots: {
|
|
205
141
|
submit?(_: {
|
|
206
142
|
submit: () => void;
|
|
@@ -222,110 +158,62 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
222
158
|
};
|
|
223
159
|
} | {
|
|
224
160
|
$el: import('vue').Raw<{
|
|
225
|
-
new (...args: any[]): import('vue').
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
type: import('vue').PropType<(data: any) => void>;
|
|
235
|
-
};
|
|
236
|
-
id: {
|
|
237
|
-
type: import('vue').PropType<string>;
|
|
238
|
-
};
|
|
239
|
-
modelValue: {
|
|
240
|
-
type: import('vue').PropType<Record<string, any>>;
|
|
241
|
-
default: () => {};
|
|
242
|
-
};
|
|
243
|
-
onDelete: {
|
|
244
|
-
type: import('vue').PropType<(id: string) => void>;
|
|
245
|
-
};
|
|
246
|
-
status: {
|
|
247
|
-
type: import('vue').PropType<import('../components/form/BglForm.vue').FormStatus>;
|
|
248
|
-
};
|
|
249
|
-
}>> & {
|
|
161
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
162
|
+
label?: string;
|
|
163
|
+
id?: string;
|
|
164
|
+
schema: import('..').BglFormSchemaFnT<any>;
|
|
165
|
+
modelValue?: Record<string, any>;
|
|
166
|
+
onDelete?: (id: string) => void;
|
|
167
|
+
onSubmit?: (data: any) => void;
|
|
168
|
+
status?: import('../components/form/BglForm.vue').FormStatus;
|
|
169
|
+
}> & Readonly<{
|
|
250
170
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
251
171
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
252
172
|
onDirty?: ((...args: any[]) => any) | undefined;
|
|
253
|
-
}
|
|
173
|
+
}>, {
|
|
254
174
|
submit: () => void;
|
|
255
175
|
validateForm: () => boolean;
|
|
256
176
|
deleteItem: () => void;
|
|
257
177
|
isDirty: import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<false> | import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<true>;
|
|
258
178
|
clearForm: () => {};
|
|
259
|
-
},
|
|
179
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
260
180
|
submit: (...args: any[]) => void;
|
|
261
181
|
"update:modelValue": (...args: any[]) => void;
|
|
262
182
|
dirty: (...args: any[]) => void;
|
|
263
|
-
}, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
type: import('vue').PropType<(data: any) => void>;
|
|
273
|
-
};
|
|
274
|
-
id: {
|
|
275
|
-
type: import('vue').PropType<string>;
|
|
276
|
-
};
|
|
277
|
-
modelValue: {
|
|
278
|
-
type: import('vue').PropType<Record<string, any>>;
|
|
279
|
-
default: () => {};
|
|
280
|
-
};
|
|
281
|
-
onDelete: {
|
|
282
|
-
type: import('vue').PropType<(id: string) => void>;
|
|
283
|
-
};
|
|
284
|
-
status: {
|
|
285
|
-
type: import('vue').PropType<import('../components/form/BglForm.vue').FormStatus>;
|
|
286
|
-
};
|
|
287
|
-
}>> & {
|
|
183
|
+
}, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{
|
|
184
|
+
label?: string;
|
|
185
|
+
id?: string;
|
|
186
|
+
schema: import('..').BglFormSchemaFnT<any>;
|
|
187
|
+
modelValue?: Record<string, any>;
|
|
188
|
+
onDelete?: (id: string) => void;
|
|
189
|
+
onSubmit?: (data: any) => void;
|
|
190
|
+
status?: import('../components/form/BglForm.vue').FormStatus;
|
|
191
|
+
}> & Readonly<{
|
|
288
192
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
289
193
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
290
194
|
onDirty?: ((...args: any[]) => any) | undefined;
|
|
291
|
-
}
|
|
195
|
+
}>, {
|
|
292
196
|
modelValue: Record<string, any>;
|
|
293
|
-
},
|
|
197
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
294
198
|
P: {};
|
|
295
199
|
B: {};
|
|
296
200
|
D: {};
|
|
297
201
|
C: {};
|
|
298
202
|
M: {};
|
|
299
203
|
Defaults: {};
|
|
300
|
-
}, Readonly<
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
type: import('vue').PropType<(data: any) => void>;
|
|
310
|
-
};
|
|
311
|
-
id: {
|
|
312
|
-
type: import('vue').PropType<string>;
|
|
313
|
-
};
|
|
314
|
-
modelValue: {
|
|
315
|
-
type: import('vue').PropType<Record<string, any>>;
|
|
316
|
-
default: () => {};
|
|
317
|
-
};
|
|
318
|
-
onDelete: {
|
|
319
|
-
type: import('vue').PropType<(id: string) => void>;
|
|
320
|
-
};
|
|
321
|
-
status: {
|
|
322
|
-
type: import('vue').PropType<import('../components/form/BglForm.vue').FormStatus>;
|
|
323
|
-
};
|
|
324
|
-
}>> & {
|
|
204
|
+
}, Readonly<{
|
|
205
|
+
label?: string;
|
|
206
|
+
id?: string;
|
|
207
|
+
schema: import('..').BglFormSchemaFnT<any>;
|
|
208
|
+
modelValue?: Record<string, any>;
|
|
209
|
+
onDelete?: (id: string) => void;
|
|
210
|
+
onSubmit?: (data: any) => void;
|
|
211
|
+
status?: import('../components/form/BglForm.vue').FormStatus;
|
|
212
|
+
}> & Readonly<{
|
|
325
213
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
326
214
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
327
215
|
onDirty?: ((...args: any[]) => any) | undefined;
|
|
328
|
-
}
|
|
216
|
+
}>, {
|
|
329
217
|
submit: () => void;
|
|
330
218
|
validateForm: () => boolean;
|
|
331
219
|
deleteItem: () => void;
|
|
@@ -337,47 +225,31 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
337
225
|
__isFragment?: never;
|
|
338
226
|
__isTeleport?: never;
|
|
339
227
|
__isSuspense?: never;
|
|
340
|
-
} & import('vue').ComponentOptionsBase<Readonly<
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
type: import('vue').PropType<(data: any) => void>;
|
|
350
|
-
};
|
|
351
|
-
id: {
|
|
352
|
-
type: import('vue').PropType<string>;
|
|
353
|
-
};
|
|
354
|
-
modelValue: {
|
|
355
|
-
type: import('vue').PropType<Record<string, any>>;
|
|
356
|
-
default: () => {};
|
|
357
|
-
};
|
|
358
|
-
onDelete: {
|
|
359
|
-
type: import('vue').PropType<(id: string) => void>;
|
|
360
|
-
};
|
|
361
|
-
status: {
|
|
362
|
-
type: import('vue').PropType<import('../components/form/BglForm.vue').FormStatus>;
|
|
363
|
-
};
|
|
364
|
-
}>> & {
|
|
228
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
229
|
+
label?: string;
|
|
230
|
+
id?: string;
|
|
231
|
+
schema: import('..').BglFormSchemaFnT<any>;
|
|
232
|
+
modelValue?: Record<string, any>;
|
|
233
|
+
onDelete?: (id: string) => void;
|
|
234
|
+
onSubmit?: (data: any) => void;
|
|
235
|
+
status?: import('../components/form/BglForm.vue').FormStatus;
|
|
236
|
+
}> & Readonly<{
|
|
365
237
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
366
238
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
367
239
|
onDirty?: ((...args: any[]) => any) | undefined;
|
|
368
|
-
}
|
|
240
|
+
}>, {
|
|
369
241
|
submit: () => void;
|
|
370
242
|
validateForm: () => boolean;
|
|
371
243
|
deleteItem: () => void;
|
|
372
244
|
isDirty: import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<false> | import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<true>;
|
|
373
245
|
clearForm: () => {};
|
|
374
|
-
},
|
|
246
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
375
247
|
submit: (...args: any[]) => void;
|
|
376
248
|
"update:modelValue": (...args: any[]) => void;
|
|
377
249
|
dirty: (...args: any[]) => void;
|
|
378
250
|
}, string, {
|
|
379
251
|
modelValue: Record<string, any>;
|
|
380
|
-
}, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
252
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
381
253
|
$slots: {
|
|
382
254
|
submit?(_: {
|
|
383
255
|
submit: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BagelFormUtils.d.ts","sourceRoot":"","sources":["../../src/utils/BagelFormUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,KAAK,KAAK,EAAE,KAAK,MAAM,EAAY,MAAM,eAAe,CAAA;AAGjG,UAAU,YAAY;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,KAAK,WAAW,GAAG,YAAY,CAAA;AAE/B,UAAU,gBAAiB,SAAQ,YAAY;IAC9C,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,CAAA;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,UAAU,gBAAiB,SAAQ,YAAY;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,UAAU,eAAgB,SAAQ,YAAY;IAC7C,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;CACb;AAED,KAAK,eAAe,GAAG,YAAY,CA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EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,KAAK,CAOzF;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,KAAK,GAAG,SAAS,CASvF"}
|
package/dist/utils/lang.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare function $tdb<T extends Record<string, string>>(langEl?: T): string;
|
|
2
2
|
export declare function useLang(): {
|
|
3
|
-
lang: import('vue').WritableComputedRef<string>;
|
|
3
|
+
lang: import('vue').WritableComputedRef<string, string>;
|
|
4
4
|
$tdb: typeof $tdb;
|
|
5
|
-
availableLangs: import('vue').WritableComputedRef<string[]>;
|
|
6
|
-
defaultLang: import('vue').WritableComputedRef<string>;
|
|
5
|
+
availableLangs: import('vue').WritableComputedRef<string[], string[]>;
|
|
6
|
+
defaultLang: import('vue').WritableComputedRef<string, string>;
|
|
7
7
|
};
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=lang.d.ts.map
|
package/package.json
CHANGED
|
@@ -22,7 +22,6 @@ async function searchAddresses() {
|
|
|
22
22
|
const geocodeUrl = `https://nominatim.openstreetmap.org/search?format=json&q=${encodeURI(addressURL)}`
|
|
23
23
|
const res = await fetch(geocodeUrl)
|
|
24
24
|
searchResults = await res.json() || []
|
|
25
|
-
console.log(suggestion)
|
|
26
25
|
suggestion?.show()
|
|
27
26
|
}
|
|
28
27
|
</script>
|
|
@@ -30,7 +29,9 @@ async function searchAddresses() {
|
|
|
30
29
|
<template>
|
|
31
30
|
<div class="relative">
|
|
32
31
|
<Dropdown ref="suggestion" :noAutoFocus="true" placement="bottom-start">
|
|
33
|
-
<
|
|
32
|
+
<template #trigger>
|
|
33
|
+
<TextInput v-model="addressInput" placeholder="Enter address" @debounce="searchAddresses" />
|
|
34
|
+
</template>
|
|
34
35
|
<template #popper>
|
|
35
36
|
<ListView class="-mt-2 hm-300px">
|
|
36
37
|
<ListItem v-for="(result, index) in searchResults" :key="index" icon="location_on" :title="result.display_name" @click="emitAddress(result)" />
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { Btn, type MaterialIcons } from '@bagelink/vue'
|
|
3
|
+
import { Dropdown as DDown } from 'floating-vue'
|
|
4
|
+
|
|
5
|
+
export declare type Side = 'top' | 'right' | 'bottom' | 'left' | 'auto'
|
|
6
|
+
export declare type Alignment = 'start' | 'end'
|
|
7
|
+
export declare type AlignedPlacement = `${Side}-${Alignment}`
|
|
8
|
+
|
|
9
|
+
defineProps<{
|
|
10
|
+
value?: string
|
|
11
|
+
thin?: boolean
|
|
12
|
+
flat?: boolean
|
|
13
|
+
disabled?: boolean
|
|
14
|
+
icon?: MaterialIcons
|
|
15
|
+
triggerClass?: string
|
|
16
|
+
// 'icon.end'?: MaterialIcons
|
|
17
|
+
border?: boolean
|
|
18
|
+
outline?: boolean
|
|
19
|
+
round?: boolean
|
|
20
|
+
placement?: 'auto' | AlignedPlacement
|
|
21
|
+
noAutoFocus?: boolean
|
|
22
|
+
// theme
|
|
23
|
+
// referenceNode
|
|
24
|
+
// shown
|
|
25
|
+
// showGroup
|
|
26
|
+
// ariaId
|
|
27
|
+
// disabled
|
|
28
|
+
// positioningDisabled
|
|
29
|
+
// placement
|
|
30
|
+
// delay
|
|
31
|
+
// distance
|
|
32
|
+
// skidding
|
|
33
|
+
// triggers
|
|
34
|
+
// showTriggers
|
|
35
|
+
// hideTriggers
|
|
36
|
+
// popperTriggers
|
|
37
|
+
// popperShowTriggers
|
|
38
|
+
// popperHideTriggers
|
|
39
|
+
// container
|
|
40
|
+
// boundary
|
|
41
|
+
// strategy
|
|
42
|
+
// autoHide
|
|
43
|
+
// handleResize
|
|
44
|
+
// instantMove
|
|
45
|
+
// eagerMount
|
|
46
|
+
// popperClass
|
|
47
|
+
// computeTransformOrigin
|
|
48
|
+
// autoMinSize
|
|
49
|
+
// autoSize
|
|
50
|
+
// autoMaxSize
|
|
51
|
+
// autoBoundaryMaxSize
|
|
52
|
+
// preventOverflow
|
|
53
|
+
// overflowPadding
|
|
54
|
+
|
|
55
|
+
}>()
|
|
56
|
+
const emit = defineEmits(['show', 'hide'])
|
|
57
|
+
const ddownRef = $ref<typeof DDown>()
|
|
58
|
+
const show = () => ddownRef?.show()
|
|
59
|
+
const hide = () => ddownRef?.hide()
|
|
60
|
+
defineExpose({ show, hide })
|
|
61
|
+
</script>
|
|
62
|
+
|
|
63
|
+
<template>
|
|
64
|
+
<DDown ref="ddownRef" :disabled="disabled" :noAutoFocus="noAutoFocus" :placement="placement" @hide="emit('hide')" @show="emit('show')">
|
|
65
|
+
<slot name="trigger">
|
|
66
|
+
<Btn :class="triggerClass" :icon="icon" :value="value" :thin="thin" :flat="thin" />
|
|
67
|
+
</slot>
|
|
68
|
+
<template #popper>
|
|
69
|
+
<slot />
|
|
70
|
+
</template>
|
|
71
|
+
</DDown>
|
|
72
|
+
</template>
|
|
@@ -17,7 +17,7 @@ defineProps<{
|
|
|
17
17
|
<component
|
|
18
18
|
:is="to ? 'RouterLink' : 'div'"
|
|
19
19
|
:to="to"
|
|
20
|
-
class="flex gap-
|
|
20
|
+
class="flex gap-05 list-item"
|
|
21
21
|
:class="{ 'notClickable': !(to || onClick), 'no-border-list': flat }"
|
|
22
22
|
@click="onClick"
|
|
23
23
|
>
|
|
@@ -59,6 +59,14 @@ defineProps<{
|
|
|
59
59
|
bottom: 0;
|
|
60
60
|
border-bottom: 1px solid var(--border-color);
|
|
61
61
|
}
|
|
62
|
+
.list-item:last-child::after {
|
|
63
|
+
content: '';
|
|
64
|
+
position: absolute;
|
|
65
|
+
left: 0;
|
|
66
|
+
right: 0;
|
|
67
|
+
bottom: 0;
|
|
68
|
+
border-bottom: none;
|
|
69
|
+
}
|
|
62
70
|
|
|
63
71
|
.list-item:hover,
|
|
64
72
|
.list-item.router-link-active {
|
|
@@ -21,7 +21,7 @@ function select(val: boolean) {
|
|
|
21
21
|
{{ message }}
|
|
22
22
|
</p>
|
|
23
23
|
<template #footer>
|
|
24
|
-
<Btn flat thin value="Cancel" @click="select(false)" />
|
|
24
|
+
<Btn flat thin class="color-black" value="Cancel" @click="select(false)" />
|
|
25
25
|
<Btn color="green" value="Confirm" @click="select(true)" />
|
|
26
26
|
</template>
|
|
27
27
|
</Modal>
|
|
@@ -8,11 +8,12 @@ const props = withDefaults(defineProps<{
|
|
|
8
8
|
small?: boolean
|
|
9
9
|
required?: boolean
|
|
10
10
|
defaultValue?: boolean
|
|
11
|
+
value?: any
|
|
11
12
|
}>(), { defaultValue: false })
|
|
12
13
|
|
|
13
14
|
const inputId = $computed(() => props.id || Math.random().toString(36).substring(7))
|
|
14
15
|
|
|
15
|
-
const checked = defineModel<boolean | undefined>('modelValue', { default: undefined })
|
|
16
|
+
const checked = defineModel<boolean | undefined | any[]>('modelValue', { default: undefined })
|
|
16
17
|
|
|
17
18
|
onMounted(() => {
|
|
18
19
|
if (checked.value === undefined) checked.value = props.defaultValue
|
|
@@ -28,6 +29,7 @@ onMounted(() => {
|
|
|
28
29
|
<input
|
|
29
30
|
:id="inputId"
|
|
30
31
|
v-model="checked"
|
|
32
|
+
:value
|
|
31
33
|
:required
|
|
32
34
|
type="checkbox"
|
|
33
35
|
class="me-05"
|
|
@@ -20,6 +20,12 @@ const inputType = $computed(() => showPwd.value ? 'text' : 'password')
|
|
|
20
20
|
<template>
|
|
21
21
|
<div class="relative">
|
|
22
22
|
<TextInput v-model="password" class="mb-0" :type="inputType" v-bind="txtInputProps" />
|
|
23
|
-
<Btn flat thin class="
|
|
23
|
+
<Btn flat thin class="mx-05 m-password position-bottom-end" :icon="toggleShowPwdIcon" @click="showPwd = !showPwd" />
|
|
24
24
|
</div>
|
|
25
25
|
</template>
|
|
26
|
+
|
|
27
|
+
<style>
|
|
28
|
+
.m-password{
|
|
29
|
+
margin-block: calc(var(--input-height) / 2 - 15px);
|
|
30
|
+
}
|
|
31
|
+
</style>
|