@bagelink/vue 0.0.1117 → 0.0.1119
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/ModalForm.vue.d.ts +0 -125
- package/dist/components/ModalForm.vue.d.ts.map +1 -1
- package/dist/components/form/BagelForm.vue.d.ts +44 -0
- package/dist/components/form/BagelForm.vue.d.ts.map +1 -0
- package/dist/components/form/index.d.ts +1 -1
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/inputs/NumberInput.vue.d.ts +1 -1
- package/dist/components/form/inputs/NumberInput.vue.d.ts.map +1 -1
- package/dist/index.cjs +171 -160
- package/dist/index.mjs +171 -160
- package/dist/style.css +8 -8
- package/package.json +1 -1
- package/src/components/ModalForm.vue +6 -11
- package/src/components/form/BagelForm.vue +150 -0
- package/src/components/form/index.ts +1 -1
- package/src/components/form/inputs/NumberInput.vue +3 -3
|
@@ -112,131 +112,6 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
112
112
|
footer?(_: {}): any;
|
|
113
113
|
};
|
|
114
114
|
}) | null;
|
|
115
|
-
form: ({
|
|
116
|
-
$: import('vue').ComponentInternalInstance;
|
|
117
|
-
$data: {};
|
|
118
|
-
$props: {
|
|
119
|
-
readonly label?: string | undefined;
|
|
120
|
-
readonly fieldID?: string | undefined;
|
|
121
|
-
readonly schema: BglFormSchemaFnT<any>;
|
|
122
|
-
readonly modelValue?: {
|
|
123
|
-
[key: string]: any;
|
|
124
|
-
} | undefined;
|
|
125
|
-
readonly onDelete?: ((id: string) => void) | undefined;
|
|
126
|
-
readonly onSubmit?: (((data: any) => void) & ((...args: any[]) => any)) | undefined;
|
|
127
|
-
readonly status?: import('./form/BglForm.vue').FormStatus | undefined;
|
|
128
|
-
readonly tag?: "template" | "form" | undefined;
|
|
129
|
-
readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
130
|
-
readonly onDirty?: ((...args: any[]) => any) | undefined;
|
|
131
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
132
|
-
$attrs: {
|
|
133
|
-
[x: string]: unknown;
|
|
134
|
-
};
|
|
135
|
-
$refs: {
|
|
136
|
-
[x: string]: unknown;
|
|
137
|
-
} & {
|
|
138
|
-
form: HTMLFormElement;
|
|
139
|
-
};
|
|
140
|
-
$slots: Readonly<{
|
|
141
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
142
|
-
}>;
|
|
143
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
144
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
145
|
-
$host: Element | null;
|
|
146
|
-
$emit: ((event: "submit", ...args: any[]) => void) & ((event: "update:modelValue", ...args: any[]) => void) & ((event: "dirty", ...args: any[]) => void);
|
|
147
|
-
$el: any;
|
|
148
|
-
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
149
|
-
label?: string;
|
|
150
|
-
fieldID?: string;
|
|
151
|
-
schema: BglFormSchemaFnT<any>;
|
|
152
|
-
modelValue?: {
|
|
153
|
-
[key: string]: any;
|
|
154
|
-
};
|
|
155
|
-
onDelete?: (id: string) => void;
|
|
156
|
-
onSubmit?: (data: any) => void;
|
|
157
|
-
status?: import('./form/BglForm.vue').FormStatus;
|
|
158
|
-
tag?: "template" | "form";
|
|
159
|
-
}> & Readonly<{
|
|
160
|
-
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
161
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
162
|
-
onDirty?: ((...args: any[]) => any) | undefined;
|
|
163
|
-
}>, {
|
|
164
|
-
submit: () => void;
|
|
165
|
-
validateForm: () => boolean;
|
|
166
|
-
deleteItem: () => void;
|
|
167
|
-
isDirty: import('vue').Ref<boolean, boolean>;
|
|
168
|
-
clearForm: () => void;
|
|
169
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
170
|
-
submit: (...args: any[]) => void;
|
|
171
|
-
"update:modelValue": (...args: any[]) => void;
|
|
172
|
-
dirty: (...args: any[]) => void;
|
|
173
|
-
}, string, {
|
|
174
|
-
tag: "template" | "form";
|
|
175
|
-
modelValue: {
|
|
176
|
-
[key: string]: any;
|
|
177
|
-
};
|
|
178
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
179
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
180
|
-
created?: (() => void) | (() => void)[];
|
|
181
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
182
|
-
mounted?: (() => void) | (() => void)[];
|
|
183
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
184
|
-
updated?: (() => void) | (() => void)[];
|
|
185
|
-
activated?: (() => void) | (() => void)[];
|
|
186
|
-
deactivated?: (() => void) | (() => void)[];
|
|
187
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
188
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
189
|
-
destroyed?: (() => void) | (() => void)[];
|
|
190
|
-
unmounted?: (() => void) | (() => void)[];
|
|
191
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
192
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
193
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
194
|
-
};
|
|
195
|
-
$forceUpdate: () => void;
|
|
196
|
-
$nextTick: typeof import('vue').nextTick;
|
|
197
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
198
|
-
} & Readonly<{
|
|
199
|
-
tag: "template" | "form";
|
|
200
|
-
modelValue: {
|
|
201
|
-
[key: string]: any;
|
|
202
|
-
};
|
|
203
|
-
}> & Omit<Readonly<{
|
|
204
|
-
label?: string;
|
|
205
|
-
fieldID?: string;
|
|
206
|
-
schema: BglFormSchemaFnT<any>;
|
|
207
|
-
modelValue?: {
|
|
208
|
-
[key: string]: any;
|
|
209
|
-
};
|
|
210
|
-
onDelete?: (id: string) => void;
|
|
211
|
-
onSubmit?: (data: any) => void;
|
|
212
|
-
status?: import('./form/BglForm.vue').FormStatus;
|
|
213
|
-
tag?: "template" | "form";
|
|
214
|
-
}> & Readonly<{
|
|
215
|
-
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
216
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
217
|
-
onDirty?: ((...args: any[]) => any) | undefined;
|
|
218
|
-
}>, "submit" | "isDirty" | "validateForm" | "deleteItem" | "clearForm" | ("tag" | "modelValue")> & import('vue').ShallowUnwrapRef<{
|
|
219
|
-
submit: () => void;
|
|
220
|
-
validateForm: () => boolean;
|
|
221
|
-
deleteItem: () => void;
|
|
222
|
-
isDirty: import('vue').Ref<boolean, boolean>;
|
|
223
|
-
clearForm: () => void;
|
|
224
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
225
|
-
$slots: {
|
|
226
|
-
submit?(_: {
|
|
227
|
-
submit: () => void;
|
|
228
|
-
isDirty: boolean;
|
|
229
|
-
validateForm: () => boolean;
|
|
230
|
-
}): any;
|
|
231
|
-
submit?(_: {
|
|
232
|
-
submit: () => void;
|
|
233
|
-
isDirty: boolean;
|
|
234
|
-
validateForm: () => boolean;
|
|
235
|
-
}): any;
|
|
236
|
-
success?(_: {}): any;
|
|
237
|
-
error?(_: {}): any;
|
|
238
|
-
};
|
|
239
|
-
}) | null;
|
|
240
115
|
}, HTMLDivElement>;
|
|
241
116
|
export default _default;
|
|
242
117
|
//# sourceMappingURL=ModalForm.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/ModalForm.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModalForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/ModalForm.vue"],"names":[],"mappings":"AAqHA,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AAG5E,KAAK,WAAW,GAAG;IAClB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,UAAU,EAAE,CAAA;IACtB,MAAM,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAA;IAE7B,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAE3C,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAE/B,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAA;IAE5B,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAA;CACnC,CAAC;AAyCF,iBAAS,aAAa,CAAC,MAAM,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,QAEpD;AASD,KAAK,iBAAiB,GAAG;IACzB,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CACrC,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAuMkpc,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;AArBxxc,wBAaG"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { BglFormSchemaFnT } from '../..';
|
|
2
|
+
interface Props {
|
|
3
|
+
modelValue: Record<string, any>;
|
|
4
|
+
schema?: BglFormSchemaFnT;
|
|
5
|
+
}
|
|
6
|
+
declare function handleSubmit(): void;
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
submit?(_: {
|
|
12
|
+
submit: typeof handleSubmit;
|
|
13
|
+
isDirty: import('@vue-macros/reactivity-transform/macros.js').ComputedVariable<false> | import('@vue-macros/reactivity-transform/macros.js').ComputedVariable<true>;
|
|
14
|
+
}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {
|
|
17
|
+
form: HTMLFormElement;
|
|
18
|
+
};
|
|
19
|
+
rootEl: HTMLFormElement;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
23
|
+
form: import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<HTMLFormElement> | undefined;
|
|
24
|
+
isDirty: import('@vue-macros/reactivity-transform/macros.js').ComputedVariable<false> | import('@vue-macros/reactivity-transform/macros.js').ComputedVariable<true>;
|
|
25
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
26
|
+
submit: (value: Record<string, any>) => any;
|
|
27
|
+
"update:modelValue": (value: Record<string, any>) => any;
|
|
28
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
29
|
+
onSubmit?: ((value: Record<string, any>) => any) | undefined;
|
|
30
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
31
|
+
}>, {
|
|
32
|
+
schema: BglFormSchemaFnT;
|
|
33
|
+
modelValue: Record<string, any>;
|
|
34
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
35
|
+
form: HTMLFormElement;
|
|
36
|
+
}, HTMLFormElement>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
|
+
new (): {
|
|
41
|
+
$slots: S;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=BagelForm.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BagelForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/BagelForm.vue"],"names":[],"mappings":"AAAA,OAwJO,KAAK,EAAkB,gBAAgB,EAAS,MAAM,eAAe,CAAA;AAK5E,UAAU,KAAK;IACd,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC/B,MAAM,CAAC,EAAE,gBAAgB,CAAA;CACzB;AAyED,iBAAS,YAAY,SAGpB;AA2DD,iBAAS,cAAc;WA+CT,OAAO,IAA6B;;yBAZrB,GAAG;;;;YACJ,GAAG;;;;;;EAgB9B;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;YA7MX,gBAAgB;gBADb,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;;mBAyN9B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
export { default as BagelForm2 } from './BagelForm.vue';
|
|
1
2
|
export { default as BglField } from './BglField.vue';
|
|
2
3
|
export { default as BglForm } from './BglForm.vue';
|
|
3
4
|
export { default as BagelForm } from './BglForm.vue';
|
|
4
|
-
export { default as BglMultiStepForm } from './BglMultiStepForm.vue';
|
|
5
5
|
export { default as FieldArray } from './FieldArray.vue';
|
|
6
6
|
export * from './inputs';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,cAAc,UAAU,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/NumberInput.vue"],"names":[],"mappings":"AA4LA,OAAO,EAAQ,KAAK,aAAa,EAAO,MAAM,eAAe,CAAA;AAG7D,KAAK,YAAY,GAAG,SAAS,GAAG,UAAU,GAAG,YAAY,CAAA;AAEzD,UAAU,gBAAgB;IACzB,UAAU,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"NumberInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/NumberInput.vue"],"names":[],"mappings":"AA4LA,OAAO,EAAQ,KAAK,aAAa,EAAO,MAAM,eAAe,CAAA;AAG7D,KAAK,YAAY,GAAG,SAAS,GAAG,UAAU,GAAG,YAAY,CAAA;AAEzD,UAAU,gBAAgB;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,aAAa,CAAA;IACzB,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB;;;;;;AAmTD,wBAQG"}
|