@bagelink/vue 0.0.1043 → 0.0.1048
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/BglComponent.vue.d.ts.map +1 -1
- package/dist/components/form/BglField.vue.d.ts +2 -4
- package/dist/components/form/BglField.vue.d.ts.map +1 -1
- package/dist/components/form/BglForm.vue.d.ts +3 -1
- package/dist/components/form/BglForm.vue.d.ts.map +1 -1
- package/dist/components/form/BglMultiStepForm.vue.d.ts +2 -1
- package/dist/components/form/BglMultiStepForm.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RangeInput.vue.d.ts +46 -1
- package/dist/components/form/inputs/RangeInput.vue.d.ts.map +1 -1
- package/dist/index.cjs +103 -55
- package/dist/index.mjs +103 -55
- package/dist/style.css +10 -10
- package/dist/types/BagelForm.d.ts +1 -1
- package/dist/types/BagelForm.d.ts.map +1 -1
- package/dist/utils/BagelFormUtils.d.ts +18 -6
- package/dist/utils/BagelFormUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/form/BglField.vue +14 -16
- package/src/components/form/BglForm.vue +8 -6
- package/src/components/form/inputs/RangeInput.vue +15 -4
- package/src/types/BagelForm.ts +1 -1
- package/src/utils/BagelFormUtils.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -59,7 +59,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
|
-
const _hoisted_1$
|
|
62
|
+
const _hoisted_1$U = ["aria-expanded", "aria-controls"];
|
|
63
63
|
const _hoisted_2$B = { class: "accordion-label" };
|
|
64
64
|
const _hoisted_3$s = ["id", "aria-hidden"];
|
|
65
65
|
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
@@ -136,7 +136,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
136
136
|
}, [
|
|
137
137
|
createVNode(unref(_sfc_main$d), { icon: computedIcon.value }, null, 8, ["icon"])
|
|
138
138
|
], 2)) : createCommentVNode("", true)
|
|
139
|
-
], 8, _hoisted_1$
|
|
139
|
+
], 8, _hoisted_1$U),
|
|
140
140
|
createVNode(Transition, { name: "expand" }, {
|
|
141
141
|
default: withCtx(() => [
|
|
142
142
|
unref(isOpen) ? (openBlock(), createElementBlock("div", {
|
|
@@ -162,7 +162,7 @@ const _export_sfc = (sfc, props2) => {
|
|
|
162
162
|
return target;
|
|
163
163
|
};
|
|
164
164
|
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-1e73ca3e"]]);
|
|
165
|
-
const _hoisted_1$
|
|
165
|
+
const _hoisted_1$T = { class: "relative" };
|
|
166
166
|
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
167
167
|
__name: "AddressSearch",
|
|
168
168
|
emits: ["addressSelected"],
|
|
@@ -185,7 +185,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
185
185
|
(_a2 = suggestion.value) == null ? void 0 : _a2.show();
|
|
186
186
|
}
|
|
187
187
|
return (_ctx, _cache) => {
|
|
188
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
188
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
189
189
|
createVNode(unref(_sfc_main$W), {
|
|
190
190
|
ref_key: "suggestion",
|
|
191
191
|
ref: suggestion,
|
|
@@ -221,7 +221,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
223
|
});
|
|
224
|
-
const _hoisted_1$
|
|
224
|
+
const _hoisted_1$S = {
|
|
225
225
|
key: 1,
|
|
226
226
|
class: "bgl_btn-flex"
|
|
227
227
|
};
|
|
@@ -290,7 +290,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
290
290
|
_ctx.loading ? (openBlock(), createBlock(unref(Loading), {
|
|
291
291
|
key: 0,
|
|
292
292
|
size: "15"
|
|
293
|
-
})) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
293
|
+
})) : (openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
294
294
|
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$d), {
|
|
295
295
|
key: 0,
|
|
296
296
|
icon: _ctx.icon
|
|
@@ -313,7 +313,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
313
313
|
}
|
|
314
314
|
});
|
|
315
315
|
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-c23a3626"]]);
|
|
316
|
-
const _hoisted_1$
|
|
316
|
+
const _hoisted_1$R = ["dismissable"];
|
|
317
317
|
const _hoisted_2$A = { class: "m-0" };
|
|
318
318
|
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
319
319
|
__name: "Alert",
|
|
@@ -351,12 +351,12 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
351
351
|
icon: "close",
|
|
352
352
|
onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
|
|
353
353
|
})
|
|
354
|
-
], 10, _hoisted_1$
|
|
354
|
+
], 10, _hoisted_1$R)) : createCommentVNode("", true);
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
357
|
});
|
|
358
358
|
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-57141c32"]]);
|
|
359
|
-
const _hoisted_1$
|
|
359
|
+
const _hoisted_1$Q = ["src", "alt"];
|
|
360
360
|
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
361
361
|
__name: "Avatar",
|
|
362
362
|
props: {
|
|
@@ -375,7 +375,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
375
375
|
key: 0,
|
|
376
376
|
src: _ctx.src,
|
|
377
377
|
alt: _ctx.name
|
|
378
|
-
}, null, 8, _hoisted_1$
|
|
378
|
+
}, null, 8, _hoisted_1$Q)) : (openBlock(), createElementBlock("p", {
|
|
379
379
|
key: 1,
|
|
380
380
|
style: normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
|
|
381
381
|
}, toDisplayString((_ctx.fallback || unref(initials)(_ctx.name || "")).toUpperCase()), 5))
|
|
@@ -559,7 +559,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
559
559
|
};
|
|
560
560
|
}
|
|
561
561
|
});
|
|
562
|
-
const _hoisted_1$
|
|
562
|
+
const _hoisted_1$P = ["src"];
|
|
563
563
|
const _hoisted_2$z = ["autoplay", "muted", "loop", "controls", "playsinline"];
|
|
564
564
|
const _hoisted_3$r = ["src", "type"];
|
|
565
565
|
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
@@ -639,7 +639,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
639
639
|
allowfullscreen: "",
|
|
640
640
|
title: "Video",
|
|
641
641
|
allow: "autoplay"
|
|
642
|
-
}, null, 12, _hoisted_1$
|
|
642
|
+
}, null, 12, _hoisted_1$P)) : _ctx.src ? (openBlock(), createElementBlock("video", {
|
|
643
643
|
key: 1,
|
|
644
644
|
ref_key: "video",
|
|
645
645
|
ref: video,
|
|
@@ -660,7 +660,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
660
660
|
}
|
|
661
661
|
});
|
|
662
662
|
const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-006552f6"]]);
|
|
663
|
-
const _hoisted_1$
|
|
663
|
+
const _hoisted_1$O = {
|
|
664
664
|
key: 0,
|
|
665
665
|
class: "card_label"
|
|
666
666
|
};
|
|
@@ -693,7 +693,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
693
693
|
}])
|
|
694
694
|
}, {
|
|
695
695
|
default: withCtx(() => [
|
|
696
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
696
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$O, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
|
|
697
697
|
renderSlot(_ctx.$slots, "default")
|
|
698
698
|
]),
|
|
699
699
|
_: 3
|
|
@@ -703,7 +703,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
703
703
|
};
|
|
704
704
|
}
|
|
705
705
|
});
|
|
706
|
-
const _hoisted_1$
|
|
706
|
+
const _hoisted_1$N = ["dir"];
|
|
707
707
|
const _hoisted_2$y = {
|
|
708
708
|
key: 0,
|
|
709
709
|
class: "blocker"
|
|
@@ -916,7 +916,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
916
916
|
}, void 0, true)
|
|
917
917
|
])
|
|
918
918
|
])
|
|
919
|
-
], 14, _hoisted_1$
|
|
919
|
+
], 14, _hoisted_1$N);
|
|
920
920
|
};
|
|
921
921
|
}
|
|
922
922
|
});
|
|
@@ -6864,13 +6864,13 @@ var script = defineComponent({
|
|
|
6864
6864
|
return { bar, canvas, direction, mouse };
|
|
6865
6865
|
}
|
|
6866
6866
|
});
|
|
6867
|
-
const _hoisted_1$
|
|
6867
|
+
const _hoisted_1$M = {
|
|
6868
6868
|
key: 0,
|
|
6869
6869
|
class: "layer-hover-bar"
|
|
6870
6870
|
};
|
|
6871
6871
|
const _hoisted_2$x = ["x", "y", "width", "height"];
|
|
6872
6872
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6873
|
-
return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$
|
|
6873
|
+
return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$M, [
|
|
6874
6874
|
createElementVNode("rect", mergeProps({ class: "hover-bar" }, _ctx.barStyle, {
|
|
6875
6875
|
x: _ctx.bar.x,
|
|
6876
6876
|
y: _ctx.bar.y,
|
|
@@ -7022,7 +7022,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
7022
7022
|
};
|
|
7023
7023
|
}
|
|
7024
7024
|
});
|
|
7025
|
-
const _hoisted_1$
|
|
7025
|
+
const _hoisted_1$L = {
|
|
7026
7026
|
key: 0,
|
|
7027
7027
|
class: "data"
|
|
7028
7028
|
};
|
|
@@ -7079,7 +7079,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
7079
7079
|
const computedSchema = computed(() => getFallbackSchema([itemData.value], props2.showFields));
|
|
7080
7080
|
return (_ctx, _cache) => {
|
|
7081
7081
|
var _a2;
|
|
7082
|
-
return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7082
|
+
return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
7083
7083
|
_ctx.title ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
7084
7084
|
key: 0,
|
|
7085
7085
|
label: _ctx.title
|
|
@@ -9735,7 +9735,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
9735
9735
|
};
|
|
9736
9736
|
}
|
|
9737
9737
|
});
|
|
9738
|
-
const _hoisted_1$
|
|
9738
|
+
const _hoisted_1$K = { class: "px-1 pt-025 pb-1" };
|
|
9739
9739
|
const _hoisted_2$v = { class: "ms-1" };
|
|
9740
9740
|
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
9741
9741
|
__name: "FieldSetVue",
|
|
@@ -9745,7 +9745,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
9745
9745
|
},
|
|
9746
9746
|
setup(__props) {
|
|
9747
9747
|
return (_ctx, _cache) => {
|
|
9748
|
-
return openBlock(), createElementBlock("fieldset", _hoisted_1$
|
|
9748
|
+
return openBlock(), createElementBlock("fieldset", _hoisted_1$K, [
|
|
9749
9749
|
createElementVNode("legend", _hoisted_2$v, toDisplayString(_ctx.legend || _ctx.label), 1),
|
|
9750
9750
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
9751
9751
|
]);
|
|
@@ -9797,7 +9797,7 @@ function useTabs(group) {
|
|
|
9797
9797
|
});
|
|
9798
9798
|
return { currentTab };
|
|
9799
9799
|
}
|
|
9800
|
-
const _hoisted_1$
|
|
9800
|
+
const _hoisted_1$J = ["onClick"];
|
|
9801
9801
|
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
9802
9802
|
__name: "TabsNav",
|
|
9803
9803
|
props: {
|
|
@@ -9880,7 +9880,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
9880
9880
|
icon: tab.icon
|
|
9881
9881
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
9882
9882
|
createTextVNode(" " + toDisplayString(tabLabel(tab)), 1)
|
|
9883
|
-
], 10, _hoisted_1$
|
|
9883
|
+
], 10, _hoisted_1$J);
|
|
9884
9884
|
}), 128))
|
|
9885
9885
|
], true)
|
|
9886
9886
|
], 2);
|
|
@@ -9949,11 +9949,12 @@ function useBagelFormState() {
|
|
|
9949
9949
|
if (!state2) throw new Error("BagelFormState must be provided");
|
|
9950
9950
|
return state2;
|
|
9951
9951
|
}
|
|
9952
|
+
const _hoisted_1$I = { key: 1 };
|
|
9952
9953
|
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
9953
9954
|
__name: "BglField",
|
|
9954
9955
|
props: {
|
|
9955
9956
|
field: {},
|
|
9956
|
-
|
|
9957
|
+
fieldID: {},
|
|
9957
9958
|
modelValue: {},
|
|
9958
9959
|
parentPath: {}
|
|
9959
9960
|
},
|
|
@@ -9979,25 +9980,25 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
9979
9980
|
if (props2.field.$el === "file") return FileUpload;
|
|
9980
9981
|
if (props2.field.$el === "date") return _sfc_main$K;
|
|
9981
9982
|
if (props2.field.$el === "tabs") return TabsNav;
|
|
9982
|
-
if (props2.field.$el === "
|
|
9983
|
+
if (props2.field.$el === "bglform") return _sfc_main$R;
|
|
9983
9984
|
return props2.field.$el ?? "div";
|
|
9984
9985
|
});
|
|
9985
9986
|
const fieldData = computed({
|
|
9986
9987
|
get: () => {
|
|
9987
|
-
if (!props2.
|
|
9988
|
-
const value = formState == null ? void 0 : formState.getFieldData(props2.
|
|
9988
|
+
if (!props2.fieldID) return props2.field.defaultValue ?? (props2.field.$el === "form" ? {} : "");
|
|
9989
|
+
const value = formState == null ? void 0 : formState.getFieldData(props2.fieldID);
|
|
9989
9990
|
if (props2.field.$el === "form" && !value) return {};
|
|
9990
9991
|
return value ?? "";
|
|
9991
9992
|
},
|
|
9992
9993
|
set: (val) => {
|
|
9993
|
-
if (!props2.
|
|
9994
|
-
const currentValue = formState == null ? void 0 : formState.getFieldData(props2.
|
|
9994
|
+
if (!props2.fieldID) return;
|
|
9995
|
+
const currentValue = formState == null ? void 0 : formState.getFieldData(props2.fieldID);
|
|
9995
9996
|
if (JSON.stringify(val) === JSON.stringify(currentValue)) return;
|
|
9996
9997
|
emit2("update:modelValue", val);
|
|
9997
9998
|
if (props2.field.onUpdate) {
|
|
9998
9999
|
props2.field.onUpdate(val, currentValue);
|
|
9999
10000
|
}
|
|
10000
|
-
formState == null ? void 0 : formState.updateField(props2.
|
|
10001
|
+
formState == null ? void 0 : formState.updateField(props2.fieldID, val);
|
|
10001
10002
|
}
|
|
10002
10003
|
});
|
|
10003
10004
|
const vIf = computed(() => {
|
|
@@ -10019,6 +10020,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
10019
10020
|
);
|
|
10020
10021
|
const computedAttrs = computed(() => {
|
|
10021
10022
|
const attrs = { ...customAttrs.value, ...props2.field.attrs };
|
|
10023
|
+
delete attrs.schema;
|
|
10022
10024
|
return bindAttrs(attrs, fieldData.value, formState == null ? void 0 : formState.data.value);
|
|
10023
10025
|
});
|
|
10024
10026
|
const computedClass = computed(
|
|
@@ -10031,9 +10033,9 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
10031
10033
|
var _a2;
|
|
10032
10034
|
const _component_BglField = resolveComponent("BglField", true);
|
|
10033
10035
|
return vIf.value ? (openBlock(), createBlock(resolveDynamicComponent(is4.value), mergeProps({ key: 0 }, computedAttrs.value, {
|
|
10034
|
-
id: props2.id,
|
|
10035
10036
|
modelValue: fieldData.value,
|
|
10036
10037
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fieldData.value = $event),
|
|
10038
|
+
fieldID: props2.fieldID,
|
|
10037
10039
|
required: _ctx.field.required,
|
|
10038
10040
|
class: computedClass.value,
|
|
10039
10041
|
label: _ctx.field.label,
|
|
@@ -10045,17 +10047,19 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
10045
10047
|
schema: ((_a2 = _ctx.field.attrs) == null ? void 0 : _a2.schema) ?? void 0
|
|
10046
10048
|
}), {
|
|
10047
10049
|
default: withCtx(() => [
|
|
10048
|
-
|
|
10049
|
-
return openBlock(),
|
|
10050
|
-
|
|
10051
|
-
|
|
10052
|
-
|
|
10053
|
-
|
|
10054
|
-
|
|
10050
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.field.children, (child, ii) => {
|
|
10051
|
+
return openBlock(), createElementBlock(Fragment, { key: ii }, [
|
|
10052
|
+
typeof child !== "string" ? (openBlock(), createBlock(_component_BglField, {
|
|
10053
|
+
key: 0,
|
|
10054
|
+
fieldID: [props2.fieldID, child.id].filter(Boolean).join("."),
|
|
10055
|
+
field: child,
|
|
10056
|
+
"parent-path": props2.fieldID
|
|
10057
|
+
}, null, 8, ["fieldID", "field", "parent-path"])) : (openBlock(), createElementBlock("span", _hoisted_1$I, toDisplayString(child), 1))
|
|
10058
|
+
], 64);
|
|
10055
10059
|
}), 128))
|
|
10056
10060
|
]),
|
|
10057
|
-
_:
|
|
10058
|
-
}, 16, ["
|
|
10061
|
+
_: 1
|
|
10062
|
+
}, 16, ["modelValue", "fieldID", "required", "class", "label", "placeholder", "defaultValue", "disabled", "options", "helptext", "schema"])) : createCommentVNode("", true);
|
|
10059
10063
|
};
|
|
10060
10064
|
}
|
|
10061
10065
|
});
|
|
@@ -10063,12 +10067,13 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10063
10067
|
__name: "BglForm",
|
|
10064
10068
|
props: {
|
|
10065
10069
|
label: {},
|
|
10066
|
-
|
|
10070
|
+
fieldID: {},
|
|
10067
10071
|
schema: {},
|
|
10068
10072
|
modelValue: { default: () => ({}) },
|
|
10069
10073
|
onDelete: {},
|
|
10070
10074
|
onSubmit: {},
|
|
10071
|
-
status: {}
|
|
10075
|
+
status: {},
|
|
10076
|
+
tag: { default: "form" }
|
|
10072
10077
|
},
|
|
10073
10078
|
emits: ["update:modelValue", "submit", "dirty"],
|
|
10074
10079
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -10079,7 +10084,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10079
10084
|
const instAt = /* @__PURE__ */ new Date();
|
|
10080
10085
|
const timeSinceInst = () => Date.now() - instAt.getTime();
|
|
10081
10086
|
const existingFormState = inject(FORM_STATE_KEY);
|
|
10082
|
-
const isNested = Boolean(existingFormState && props2.
|
|
10087
|
+
const isNested = Boolean(existingFormState && props2.fieldID);
|
|
10083
10088
|
const { data: data2, isDirty } = isNested ? existingFormState : provideBagelFormState(props2.modelValue);
|
|
10084
10089
|
if (!isNested) {
|
|
10085
10090
|
watch(() => props2.modelValue, (newVal) => {
|
|
@@ -10157,13 +10162,13 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10157
10162
|
});
|
|
10158
10163
|
return (_ctx, _cache) => {
|
|
10159
10164
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
10160
|
-
_ctx.
|
|
10165
|
+
_ctx.tag === "template" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
10161
10166
|
(openBlock(true), createElementBlock(Fragment, null, renderList(computedSchema.value, (field, i2) => {
|
|
10162
10167
|
return openBlock(), createBlock(unref(_sfc_main$S), {
|
|
10163
|
-
id: [_ctx.id, field.id].filter(Boolean).join("."),
|
|
10164
10168
|
key: field.id || `${i2}p`,
|
|
10169
|
+
fieldID: field.id,
|
|
10165
10170
|
field
|
|
10166
|
-
}, null, 8, ["
|
|
10171
|
+
}, null, 8, ["fieldID", "field"]);
|
|
10167
10172
|
}), 128)),
|
|
10168
10173
|
renderSlot(_ctx.$slots, "submit", {
|
|
10169
10174
|
submit: runSubmit,
|
|
@@ -10183,10 +10188,10 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10183
10188
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
10184
10189
|
(openBlock(true), createElementBlock(Fragment, null, renderList(computedSchema.value, (field, i2) => {
|
|
10185
10190
|
return openBlock(), createBlock(unref(_sfc_main$S), {
|
|
10186
|
-
id: field.id,
|
|
10187
10191
|
key: field.id || `${i2}p`,
|
|
10192
|
+
fieldID: field.id,
|
|
10188
10193
|
field
|
|
10189
|
-
}, null, 8, ["
|
|
10194
|
+
}, null, 8, ["fieldID", "field"]);
|
|
10190
10195
|
}), 128)),
|
|
10191
10196
|
renderSlot(_ctx.$slots, "submit", {
|
|
10192
10197
|
submit: runSubmit,
|
|
@@ -20545,22 +20550,65 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
20545
20550
|
key: 1,
|
|
20546
20551
|
class: "txt-center txt-12 range-slider-position-txt absolute line-height-1 opacity-0",
|
|
20547
20552
|
style: normalizeStyle({ "--progress": `${fromPercentage.value}` })
|
|
20548
|
-
},
|
|
20553
|
+
}, [
|
|
20554
|
+
!unref(multiRange) ? renderSlot(_ctx.$slots, "progress", {
|
|
20555
|
+
key: 0,
|
|
20556
|
+
progress: displayFrom.value,
|
|
20557
|
+
min: unref(formatValue)(unref(min2)),
|
|
20558
|
+
max: unref(formatValue)(unref(max2))
|
|
20559
|
+
}, () => [
|
|
20560
|
+
createTextVNode(toDisplayString(displayFrom.value), 1)
|
|
20561
|
+
], true) : createCommentVNode("", true),
|
|
20562
|
+
unref(multiRange) ? renderSlot(_ctx.$slots, "from", {
|
|
20563
|
+
key: 1,
|
|
20564
|
+
from: displayFrom.value,
|
|
20565
|
+
to: displayTo.value,
|
|
20566
|
+
min: unref(formatValue)(unref(min2)),
|
|
20567
|
+
max: unref(formatValue)(unref(max2))
|
|
20568
|
+
}, () => [
|
|
20569
|
+
createTextVNode(toDisplayString(displayFrom.value), 1)
|
|
20570
|
+
], true) : createCommentVNode("", true)
|
|
20571
|
+
], 4)) : createCommentVNode("", true),
|
|
20549
20572
|
unref(multiRange) && validTo.value !== unref(max2) ? (openBlock(), createElementBlock("p", {
|
|
20550
20573
|
key: 2,
|
|
20551
20574
|
class: "txt-center txt-12 range-slider-position-txt opacity-0 line-height-1 absolute",
|
|
20552
20575
|
style: normalizeStyle({ "--progress": `${toPercentage.value}` })
|
|
20553
|
-
},
|
|
20576
|
+
}, [
|
|
20577
|
+
renderSlot(_ctx.$slots, "to", {
|
|
20578
|
+
to: displayTo.value,
|
|
20579
|
+
from: displayFrom.value,
|
|
20580
|
+
min: unref(formatValue)(unref(min2)),
|
|
20581
|
+
max: unref(formatValue)(unref(max2))
|
|
20582
|
+
}, () => [
|
|
20583
|
+
createTextVNode(toDisplayString(displayTo.value), 1)
|
|
20584
|
+
], true)
|
|
20585
|
+
], 4)) : createCommentVNode("", true)
|
|
20554
20586
|
], 8, _hoisted_2$i),
|
|
20555
20587
|
createElementVNode("p", _hoisted_6$8, [
|
|
20556
|
-
|
|
20557
|
-
|
|
20588
|
+
renderSlot(_ctx.$slots, "min", {
|
|
20589
|
+
max: unref(formatValue)(unref(max2)),
|
|
20590
|
+
min: unref(formatValue)(unref(min2)),
|
|
20591
|
+
from: displayFrom.value,
|
|
20592
|
+
to: displayTo.value,
|
|
20593
|
+
progress: displayFrom.value
|
|
20594
|
+
}, () => [
|
|
20595
|
+
createElementVNode("span", null, toDisplayString(unref(formatValue)(unref(min2))), 1)
|
|
20596
|
+
], true),
|
|
20597
|
+
renderSlot(_ctx.$slots, "max", {
|
|
20598
|
+
max: unref(formatValue)(unref(max2)),
|
|
20599
|
+
min: unref(formatValue)(unref(min2)),
|
|
20600
|
+
from: displayFrom.value,
|
|
20601
|
+
to: displayTo.value,
|
|
20602
|
+
progress: displayFrom.value
|
|
20603
|
+
}, () => [
|
|
20604
|
+
createElementVNode("span", null, toDisplayString(unref(formatValue)(unref(max2))), 1)
|
|
20605
|
+
], true)
|
|
20558
20606
|
])
|
|
20559
20607
|
]);
|
|
20560
20608
|
};
|
|
20561
20609
|
}
|
|
20562
20610
|
});
|
|
20563
|
-
const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-
|
|
20611
|
+
const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-c427a28c"]]);
|
|
20564
20612
|
const tableTools = [
|
|
20565
20613
|
"mergeCells",
|
|
20566
20614
|
"splitCells",
|
|
@@ -34348,7 +34396,7 @@ function findBglFieldById(id, _schema) {
|
|
|
34348
34396
|
for (const field of _schema) {
|
|
34349
34397
|
if (field.id === id) return field;
|
|
34350
34398
|
if (field.children && Number(field.children.length) > 0) {
|
|
34351
|
-
const child = findBglFieldById(id, field.children);
|
|
34399
|
+
const child = findBglFieldById(id, field.children.filter((c2) => typeof c2 !== "string"));
|
|
34352
34400
|
if (child) return child;
|
|
34353
34401
|
}
|
|
34354
34402
|
}
|
package/dist/style.css
CHANGED
|
@@ -1180,28 +1180,28 @@ pre code.hljs{
|
|
|
1180
1180
|
color: var(--bgl-light-text);
|
|
1181
1181
|
}
|
|
1182
1182
|
|
|
1183
|
-
.range-slider-position-txt[data-v-
|
|
1183
|
+
.range-slider-position-txt[data-v-c427a28c]{
|
|
1184
1184
|
margin-inline-start: calc((var(--progress) * 1%) - (var(--bgl-range-thumb-size) * var(--progress) / 100));
|
|
1185
1185
|
top: calc(var(--bgl-range-thumb-size) / 2 ) ;
|
|
1186
1186
|
transition: transform 0.1s, opacity 0.5s, top 0.5s;
|
|
1187
1187
|
transform: scale(0.5);
|
|
1188
1188
|
width: var(--bgl-range-thumb-size);
|
|
1189
1189
|
}
|
|
1190
|
-
.range-slider:hover .range-slider-position-txt[data-v-
|
|
1190
|
+
.range-slider:hover .range-slider-position-txt[data-v-c427a28c]{
|
|
1191
1191
|
opacity: 1;
|
|
1192
1192
|
transform: scale(1);
|
|
1193
1193
|
top: calc(var(--bgl-range-thumb-size) / 1) ;
|
|
1194
1194
|
}
|
|
1195
|
-
.range-slider[data-v-
|
|
1195
|
+
.range-slider[data-v-c427a28c] {
|
|
1196
1196
|
height: var(--bgl-range-track-size);
|
|
1197
1197
|
display: flex;
|
|
1198
1198
|
align-items: center;
|
|
1199
1199
|
margin-top: calc(var(--bgl-range-thumb-size) / 2 + 0.5rem) ;
|
|
1200
1200
|
}
|
|
1201
|
-
.range-slider-txt[data-v-
|
|
1201
|
+
.range-slider-txt[data-v-c427a28c]{
|
|
1202
1202
|
margin-top: calc(var(--bgl-range-thumb-size) / 2) !important;
|
|
1203
1203
|
}
|
|
1204
|
-
input[type="range"][data-v-
|
|
1204
|
+
input[type="range"][data-v-c427a28c] {
|
|
1205
1205
|
position: absolute;
|
|
1206
1206
|
width: 100%;
|
|
1207
1207
|
height: 100%;
|
|
@@ -1211,7 +1211,7 @@ input[type="range"][data-v-3616fbd2] {
|
|
|
1211
1211
|
appearance: none;
|
|
1212
1212
|
margin: 0;
|
|
1213
1213
|
}
|
|
1214
|
-
input[type="range"][data-v-
|
|
1214
|
+
input[type="range"][data-v-c427a28c]::-webkit-slider-thumb {
|
|
1215
1215
|
pointer-events: all;
|
|
1216
1216
|
appearance: none;
|
|
1217
1217
|
width: var(--bgl-range-thumb-size);
|
|
@@ -1224,18 +1224,18 @@ input[type="range"][data-v-3616fbd2]::-webkit-slider-thumb {
|
|
|
1224
1224
|
cursor: grab;
|
|
1225
1225
|
transition: var(--bgl-transition);
|
|
1226
1226
|
}
|
|
1227
|
-
input[type="range"][data-v-
|
|
1227
|
+
input[type="range"][data-v-c427a28c]::-webkit-slider-thumb:hover {
|
|
1228
1228
|
box-shadow: 0 0 0 calc(var(--bgl-range-thumb-size) / 2) var(--bgl-primary-tint);
|
|
1229
1229
|
filter: brightness(90%);
|
|
1230
1230
|
}
|
|
1231
|
-
input[type="range"][data-v-
|
|
1231
|
+
input[type="range"][data-v-c427a28c]:focus::-webkit-slider-thumb {
|
|
1232
1232
|
outline: none;
|
|
1233
1233
|
box-shadow: 0 0 0 calc(var(--bgl-range-thumb-size) / 2.2) var(--bgl-primary-tint);
|
|
1234
1234
|
}
|
|
1235
|
-
input[type="range"][data-v-
|
|
1235
|
+
input[type="range"][data-v-c427a28c]:active::-webkit-slider-thumb {
|
|
1236
1236
|
cursor: grabbing;
|
|
1237
1237
|
}
|
|
1238
|
-
.track[data-v-
|
|
1238
|
+
.track[data-v-c427a28c] {
|
|
1239
1239
|
height: var(--bgl-range-track-height);
|
|
1240
1240
|
background: var(--bgl-bg);
|
|
1241
1241
|
margin-inline-start: calc(var(--bgl-range-thumb-size) / 2);
|
|
@@ -24,7 +24,7 @@ export interface BaseBagelField<T = {
|
|
|
24
24
|
'id'?: string;
|
|
25
25
|
'label'?: string;
|
|
26
26
|
'placeholder'?: string;
|
|
27
|
-
'children'?: Field<T>[];
|
|
27
|
+
'children'?: (Field<T> | string)[];
|
|
28
28
|
'class'?: AttributeValue | AttributeFn<T>;
|
|
29
29
|
'attrs'?: Attributes<T>;
|
|
30
30
|
'required'?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BagelForm.d.ts","sourceRoot":"","sources":["../../src/types/BagelForm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE3D,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAA;AAEvG,MAA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e,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAA;AAC5G,MAAM,MAAM,SAAS,CAAC,CAAC,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,IAAI,KAAK,CAAC,CAAC,CAAC,CAAA;AAE5D,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA;AAEnE,MAAM,MAAM,gBAAgB,CAAC,CAAC,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,IAAI,CAAC,MAAM,cAAc,CAAC,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -70,7 +70,7 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
70
70
|
$el: import('vue').Raw<{
|
|
71
71
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
72
72
|
label?: string;
|
|
73
|
-
|
|
73
|
+
fieldID?: string;
|
|
74
74
|
schema: import('..').BglFormSchemaFnT<any>;
|
|
75
75
|
modelValue?: {
|
|
76
76
|
[key: string]: any;
|
|
@@ -78,6 +78,7 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
78
78
|
onDelete?: (id: string) => void;
|
|
79
79
|
onSubmit?: (data: any) => void;
|
|
80
80
|
status?: import('../components/form/BglForm.vue').FormStatus;
|
|
81
|
+
tag?: "template" | "form";
|
|
81
82
|
}> & Readonly<{
|
|
82
83
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
83
84
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -93,6 +94,7 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
93
94
|
"update:modelValue": (...args: any[]) => void;
|
|
94
95
|
dirty: (...args: any[]) => void;
|
|
95
96
|
}, import('vue').PublicProps, {
|
|
97
|
+
tag: "template" | "form";
|
|
96
98
|
modelValue: {
|
|
97
99
|
[key: string]: any;
|
|
98
100
|
};
|
|
@@ -105,7 +107,7 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
105
107
|
Defaults: {};
|
|
106
108
|
}, Readonly<{
|
|
107
109
|
label?: string;
|
|
108
|
-
|
|
110
|
+
fieldID?: string;
|
|
109
111
|
schema: import('..').BglFormSchemaFnT<any>;
|
|
110
112
|
modelValue?: {
|
|
111
113
|
[key: string]: any;
|
|
@@ -113,6 +115,7 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
113
115
|
onDelete?: (id: string) => void;
|
|
114
116
|
onSubmit?: (data: any) => void;
|
|
115
117
|
status?: import('../components/form/BglForm.vue').FormStatus;
|
|
118
|
+
tag?: "template" | "form";
|
|
116
119
|
}> & Readonly<{
|
|
117
120
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
118
121
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -124,6 +127,7 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
124
127
|
isDirty: import('vue').Ref<boolean, boolean>;
|
|
125
128
|
clearForm: () => void;
|
|
126
129
|
}, {}, {}, {}, {
|
|
130
|
+
tag: "template" | "form";
|
|
127
131
|
modelValue: {
|
|
128
132
|
[key: string]: any;
|
|
129
133
|
};
|
|
@@ -133,7 +137,7 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
133
137
|
__isSuspense?: never;
|
|
134
138
|
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
135
139
|
label?: string;
|
|
136
|
-
|
|
140
|
+
fieldID?: string;
|
|
137
141
|
schema: import('..').BglFormSchemaFnT<any>;
|
|
138
142
|
modelValue?: {
|
|
139
143
|
[key: string]: any;
|
|
@@ -141,6 +145,7 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
141
145
|
onDelete?: (id: string) => void;
|
|
142
146
|
onSubmit?: (data: any) => void;
|
|
143
147
|
status?: import('../components/form/BglForm.vue').FormStatus;
|
|
148
|
+
tag?: "template" | "form";
|
|
144
149
|
}> & Readonly<{
|
|
145
150
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
146
151
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -156,6 +161,7 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
156
161
|
"update:modelValue": (...args: any[]) => void;
|
|
157
162
|
dirty: (...args: any[]) => void;
|
|
158
163
|
}, string, {
|
|
164
|
+
tag: "template" | "form";
|
|
159
165
|
modelValue: {
|
|
160
166
|
[key: string]: any;
|
|
161
167
|
};
|
|
@@ -185,7 +191,7 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
185
191
|
$el: import('vue').Raw<{
|
|
186
192
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
187
193
|
label?: string;
|
|
188
|
-
|
|
194
|
+
fieldID?: string;
|
|
189
195
|
schema: import('..').BglFormSchemaFnT<any>;
|
|
190
196
|
modelValue?: {
|
|
191
197
|
[key: string]: any;
|
|
@@ -193,6 +199,7 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
193
199
|
onDelete?: (id: string) => void;
|
|
194
200
|
onSubmit?: (data: any) => void;
|
|
195
201
|
status?: import('../components/form/BglForm.vue').FormStatus;
|
|
202
|
+
tag?: "template" | "form";
|
|
196
203
|
}> & Readonly<{
|
|
197
204
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
198
205
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -208,6 +215,7 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
208
215
|
"update:modelValue": (...args: any[]) => void;
|
|
209
216
|
dirty: (...args: any[]) => void;
|
|
210
217
|
}, import('vue').PublicProps, {
|
|
218
|
+
tag: "template" | "form";
|
|
211
219
|
modelValue: {
|
|
212
220
|
[key: string]: any;
|
|
213
221
|
};
|
|
@@ -220,7 +228,7 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
220
228
|
Defaults: {};
|
|
221
229
|
}, Readonly<{
|
|
222
230
|
label?: string;
|
|
223
|
-
|
|
231
|
+
fieldID?: string;
|
|
224
232
|
schema: import('..').BglFormSchemaFnT<any>;
|
|
225
233
|
modelValue?: {
|
|
226
234
|
[key: string]: any;
|
|
@@ -228,6 +236,7 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
228
236
|
onDelete?: (id: string) => void;
|
|
229
237
|
onSubmit?: (data: any) => void;
|
|
230
238
|
status?: import('../components/form/BglForm.vue').FormStatus;
|
|
239
|
+
tag?: "template" | "form";
|
|
231
240
|
}> & Readonly<{
|
|
232
241
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
233
242
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -239,6 +248,7 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
239
248
|
isDirty: import('vue').Ref<boolean, boolean>;
|
|
240
249
|
clearForm: () => void;
|
|
241
250
|
}, {}, {}, {}, {
|
|
251
|
+
tag: "template" | "form";
|
|
242
252
|
modelValue: {
|
|
243
253
|
[key: string]: any;
|
|
244
254
|
};
|
|
@@ -248,7 +258,7 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
248
258
|
__isSuspense?: never;
|
|
249
259
|
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
250
260
|
label?: string;
|
|
251
|
-
|
|
261
|
+
fieldID?: string;
|
|
252
262
|
schema: import('..').BglFormSchemaFnT<any>;
|
|
253
263
|
modelValue?: {
|
|
254
264
|
[key: string]: any;
|
|
@@ -256,6 +266,7 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
256
266
|
onDelete?: (id: string) => void;
|
|
257
267
|
onSubmit?: (data: any) => void;
|
|
258
268
|
status?: import('../components/form/BglForm.vue').FormStatus;
|
|
269
|
+
tag?: "template" | "form";
|
|
259
270
|
}> & Readonly<{
|
|
260
271
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
261
272
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -271,6 +282,7 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
|
|
|
271
282
|
"update:modelValue": (...args: any[]) => void;
|
|
272
283
|
dirty: (...args: any[]) => void;
|
|
273
284
|
}, string, {
|
|
285
|
+
tag: "template" | "form";
|
|
274
286
|
modelValue: {
|
|
275
287
|
[key: string]: any;
|
|
276
288
|
};
|