@bagelink/vue 0.0.1045 → 0.0.1054

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/index.mjs CHANGED
@@ -59,7 +59,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
59
59
  };
60
60
  }
61
61
  });
62
- const _hoisted_1$T = ["aria-expanded", "aria-controls"];
62
+ const _hoisted_1$V = ["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$T),
139
+ ], 8, _hoisted_1$V),
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$S = { class: "relative" };
165
+ const _hoisted_1$U = { 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$S, [
188
+ return openBlock(), createElementBlock("div", _hoisted_1$U, [
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$R = {
224
+ const _hoisted_1$T = {
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$R, [
293
+ })) : (openBlock(), createElementBlock("div", _hoisted_1$T, [
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$Q = ["dismissable"];
316
+ const _hoisted_1$S = ["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$Q)) : createCommentVNode("", true);
354
+ ], 10, _hoisted_1$S)) : 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$P = ["src", "alt"];
359
+ const _hoisted_1$R = ["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$P)) : (openBlock(), createElementBlock("p", {
378
+ }, null, 8, _hoisted_1$R)) : (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))
@@ -414,6 +414,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
414
414
  }
415
415
  });
416
416
  const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-2f3caf93"]]);
417
+ const _hoisted_1$Q = { key: 1 };
417
418
  const _sfc_main$10 = /* @__PURE__ */ defineComponent({
418
419
  __name: "BglComponent",
419
420
  props: {
@@ -503,6 +504,12 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
503
504
  updateField(props2.id, val);
504
505
  }
505
506
  });
507
+ const computedFieldData = computed(
508
+ () => {
509
+ var _a2, _b;
510
+ return ((_b = (_a2 = props2.field).transform) == null ? void 0 : _b.call(_a2, fieldData.value, props2.modelValue)) ?? fieldData.value;
511
+ }
512
+ );
506
513
  const vIf = computed(() => {
507
514
  if (props2.field["v-if"] === void 0 && props2.field.vIf === void 0) return true;
508
515
  if (typeof props2.field["v-if"] === "boolean" || typeof props2.field.vIf === "boolean") return props2.field["v-if"];
@@ -543,14 +550,16 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
543
550
  }), {
544
551
  default: withCtx(() => [
545
552
  _ctx.field.$el === "form" ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
546
- createTextVNode(toDisplayString(fieldData.value) + " ", 1),
553
+ createTextVNode(toDisplayString(computedFieldData.value) + " ", 1),
547
554
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.field.children, (child, ii) => {
548
- return openBlock(), createBlock(_component_BglComponent, {
549
- id: [props2.id, child.id].filter(Boolean).join("."),
550
- key: child.id || ii,
551
- field: child,
552
- "parent-path": props2.id
553
- }, null, 8, ["id", "field", "parent-path"]);
555
+ return openBlock(), createElementBlock(Fragment, { key: ii }, [
556
+ typeof child !== "string" ? (openBlock(), createBlock(_component_BglComponent, {
557
+ key: 0,
558
+ id: [props2.id, child.id].filter(Boolean).join("."),
559
+ field: child,
560
+ "parent-path": props2.id
561
+ }, null, 8, ["id", "field", "parent-path"])) : (openBlock(), createElementBlock("span", _hoisted_1$Q, toDisplayString(child), 1))
562
+ ], 64);
554
563
  }), 128))
555
564
  ], 64))
556
565
  ]),
@@ -559,7 +568,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
559
568
  };
560
569
  }
561
570
  });
562
- const _hoisted_1$O = ["src"];
571
+ const _hoisted_1$P = ["src"];
563
572
  const _hoisted_2$z = ["autoplay", "muted", "loop", "controls", "playsinline"];
564
573
  const _hoisted_3$r = ["src", "type"];
565
574
  const _sfc_main$$ = /* @__PURE__ */ defineComponent({
@@ -639,7 +648,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
639
648
  allowfullscreen: "",
640
649
  title: "Video",
641
650
  allow: "autoplay"
642
- }, null, 12, _hoisted_1$O)) : _ctx.src ? (openBlock(), createElementBlock("video", {
651
+ }, null, 12, _hoisted_1$P)) : _ctx.src ? (openBlock(), createElementBlock("video", {
643
652
  key: 1,
644
653
  ref_key: "video",
645
654
  ref: video,
@@ -660,7 +669,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
660
669
  }
661
670
  });
662
671
  const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-006552f6"]]);
663
- const _hoisted_1$N = {
672
+ const _hoisted_1$O = {
664
673
  key: 0,
665
674
  class: "card_label"
666
675
  };
@@ -693,7 +702,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
693
702
  }])
694
703
  }, {
695
704
  default: withCtx(() => [
696
- _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$N, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
705
+ _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$O, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
697
706
  renderSlot(_ctx.$slots, "default")
698
707
  ]),
699
708
  _: 3
@@ -703,7 +712,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
703
712
  };
704
713
  }
705
714
  });
706
- const _hoisted_1$M = ["dir"];
715
+ const _hoisted_1$N = ["dir"];
707
716
  const _hoisted_2$y = {
708
717
  key: 0,
709
718
  class: "blocker"
@@ -916,7 +925,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
916
925
  }, void 0, true)
917
926
  ])
918
927
  ])
919
- ], 14, _hoisted_1$M);
928
+ ], 14, _hoisted_1$N);
920
929
  };
921
930
  }
922
931
  });
@@ -6864,13 +6873,13 @@ var script = defineComponent({
6864
6873
  return { bar, canvas, direction, mouse };
6865
6874
  }
6866
6875
  });
6867
- const _hoisted_1$L = {
6876
+ const _hoisted_1$M = {
6868
6877
  key: 0,
6869
6878
  class: "layer-hover-bar"
6870
6879
  };
6871
6880
  const _hoisted_2$x = ["x", "y", "width", "height"];
6872
6881
  function render(_ctx, _cache, $props, $setup, $data, $options) {
6873
- return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$L, [
6882
+ return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$M, [
6874
6883
  createElementVNode("rect", mergeProps({ class: "hover-bar" }, _ctx.barStyle, {
6875
6884
  x: _ctx.bar.x,
6876
6885
  y: _ctx.bar.y,
@@ -7022,7 +7031,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
7022
7031
  };
7023
7032
  }
7024
7033
  });
7025
- const _hoisted_1$K = {
7034
+ const _hoisted_1$L = {
7026
7035
  key: 0,
7027
7036
  class: "data"
7028
7037
  };
@@ -7079,7 +7088,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
7079
7088
  const computedSchema = computed(() => getFallbackSchema([itemData.value], props2.showFields));
7080
7089
  return (_ctx, _cache) => {
7081
7090
  var _a2;
7082
- return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$K, [
7091
+ return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$L, [
7083
7092
  _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$4), {
7084
7093
  key: 0,
7085
7094
  label: _ctx.title
@@ -9735,7 +9744,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
9735
9744
  };
9736
9745
  }
9737
9746
  });
9738
- const _hoisted_1$J = { class: "px-1 pt-025 pb-1" };
9747
+ const _hoisted_1$K = { class: "px-1 pt-025 pb-1" };
9739
9748
  const _hoisted_2$v = { class: "ms-1" };
9740
9749
  const _sfc_main$V = /* @__PURE__ */ defineComponent({
9741
9750
  __name: "FieldSetVue",
@@ -9745,7 +9754,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
9745
9754
  },
9746
9755
  setup(__props) {
9747
9756
  return (_ctx, _cache) => {
9748
- return openBlock(), createElementBlock("fieldset", _hoisted_1$J, [
9757
+ return openBlock(), createElementBlock("fieldset", _hoisted_1$K, [
9749
9758
  createElementVNode("legend", _hoisted_2$v, toDisplayString(_ctx.legend || _ctx.label), 1),
9750
9759
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
9751
9760
  ]);
@@ -9797,7 +9806,7 @@ function useTabs(group) {
9797
9806
  });
9798
9807
  return { currentTab };
9799
9808
  }
9800
- const _hoisted_1$I = ["onClick"];
9809
+ const _hoisted_1$J = ["onClick"];
9801
9810
  const _sfc_main$T = /* @__PURE__ */ defineComponent({
9802
9811
  __name: "TabsNav",
9803
9812
  props: {
@@ -9880,7 +9889,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
9880
9889
  icon: tab.icon
9881
9890
  }, null, 8, ["icon"])) : createCommentVNode("", true),
9882
9891
  createTextVNode(" " + toDisplayString(tabLabel(tab)), 1)
9883
- ], 10, _hoisted_1$I);
9892
+ ], 10, _hoisted_1$J);
9884
9893
  }), 128))
9885
9894
  ], true)
9886
9895
  ], 2);
@@ -9949,11 +9958,12 @@ function useBagelFormState() {
9949
9958
  if (!state2) throw new Error("BagelFormState must be provided");
9950
9959
  return state2;
9951
9960
  }
9961
+ const _hoisted_1$I = { key: 1 };
9952
9962
  const _sfc_main$S = /* @__PURE__ */ defineComponent({
9953
9963
  __name: "BglField",
9954
9964
  props: {
9955
9965
  field: {},
9956
- id: {},
9966
+ fieldID: {},
9957
9967
  modelValue: {},
9958
9968
  parentPath: {}
9959
9969
  },
@@ -9979,25 +9989,25 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
9979
9989
  if (props2.field.$el === "file") return FileUpload;
9980
9990
  if (props2.field.$el === "date") return _sfc_main$K;
9981
9991
  if (props2.field.$el === "tabs") return TabsNav;
9982
- if (props2.field.$el === "form") return _sfc_main$R;
9992
+ if (props2.field.$el === "bglform") return _sfc_main$R;
9983
9993
  return props2.field.$el ?? "div";
9984
9994
  });
9985
9995
  const fieldData = computed({
9986
9996
  get: () => {
9987
- if (!props2.id) return props2.field.defaultValue ?? (props2.field.$el === "form" ? {} : "");
9988
- const value = formState == null ? void 0 : formState.getFieldData(props2.id);
9997
+ if (!props2.fieldID) return props2.field.defaultValue ?? (props2.field.$el === "form" ? {} : "");
9998
+ const value = formState == null ? void 0 : formState.getFieldData(props2.fieldID);
9989
9999
  if (props2.field.$el === "form" && !value) return {};
9990
10000
  return value ?? "";
9991
10001
  },
9992
10002
  set: (val) => {
9993
- if (!props2.id) return;
9994
- const currentValue = formState == null ? void 0 : formState.getFieldData(props2.id);
10003
+ if (!props2.fieldID) return;
10004
+ const currentValue = formState == null ? void 0 : formState.getFieldData(props2.fieldID);
9995
10005
  if (JSON.stringify(val) === JSON.stringify(currentValue)) return;
9996
10006
  emit2("update:modelValue", val);
9997
10007
  if (props2.field.onUpdate) {
9998
10008
  props2.field.onUpdate(val, currentValue);
9999
10009
  }
10000
- formState == null ? void 0 : formState.updateField(props2.id, val);
10010
+ formState == null ? void 0 : formState.updateField(props2.fieldID, val);
10001
10011
  }
10002
10012
  });
10003
10013
  const vIf = computed(() => {
@@ -10008,7 +10018,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
10008
10018
  if (typeof props2.field.vIf === "function") return props2.field.vIf(fieldData.value, formState == null ? void 0 : formState.data.value);
10009
10019
  return true;
10010
10020
  });
10011
- computed(
10021
+ const computedFieldData = computed(
10012
10022
  () => {
10013
10023
  var _a2, _b;
10014
10024
  return ((_b = (_a2 = props2.field).transform) == null ? void 0 : _b.call(_a2, fieldData.value, formState == null ? void 0 : formState.data.value)) ?? fieldData.value;
@@ -10019,6 +10029,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
10019
10029
  );
10020
10030
  const computedAttrs = computed(() => {
10021
10031
  const attrs = { ...customAttrs.value, ...props2.field.attrs };
10032
+ delete attrs.schema;
10022
10033
  return bindAttrs(attrs, fieldData.value, formState == null ? void 0 : formState.data.value);
10023
10034
  });
10024
10035
  const computedClass = computed(
@@ -10031,9 +10042,9 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
10031
10042
  var _a2;
10032
10043
  const _component_BglField = resolveComponent("BglField", true);
10033
10044
  return vIf.value ? (openBlock(), createBlock(resolveDynamicComponent(is4.value), mergeProps({ key: 0 }, computedAttrs.value, {
10034
- id: props2.id,
10035
10045
  modelValue: fieldData.value,
10036
10046
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fieldData.value = $event),
10047
+ fieldID: props2.fieldID,
10037
10048
  required: _ctx.field.required,
10038
10049
  class: computedClass.value,
10039
10050
  label: _ctx.field.label,
@@ -10045,17 +10056,20 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
10045
10056
  schema: ((_a2 = _ctx.field.attrs) == null ? void 0 : _a2.schema) ?? void 0
10046
10057
  }), {
10047
10058
  default: withCtx(() => [
10048
- _ctx.field.$el === "form" ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.field.children, (child, ii) => {
10049
- return openBlock(), createBlock(_component_BglField, {
10050
- id: [props2.id, child.id].filter(Boolean).join("."),
10051
- key: child.id || ii,
10052
- field: child,
10053
- "parent-path": props2.id
10054
- }, null, 8, ["id", "field", "parent-path"]);
10059
+ createTextVNode(toDisplayString(computedFieldData.value) + " ", 1),
10060
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.field.children, (child, ii) => {
10061
+ return openBlock(), createElementBlock(Fragment, { key: ii }, [
10062
+ typeof child !== "string" ? (openBlock(), createBlock(_component_BglField, {
10063
+ key: 0,
10064
+ fieldID: [props2.fieldID, child.id].filter(Boolean).join("."),
10065
+ field: child,
10066
+ "parent-path": props2.fieldID
10067
+ }, null, 8, ["fieldID", "field", "parent-path"])) : (openBlock(), createElementBlock("span", _hoisted_1$I, toDisplayString(child), 1))
10068
+ ], 64);
10055
10069
  }), 128))
10056
10070
  ]),
10057
- _: 3
10058
- }, 16, ["id", "modelValue", "required", "class", "label", "placeholder", "defaultValue", "disabled", "options", "helptext", "schema"])) : createCommentVNode("", true);
10071
+ _: 1
10072
+ }, 16, ["modelValue", "fieldID", "required", "class", "label", "placeholder", "defaultValue", "disabled", "options", "helptext", "schema"])) : createCommentVNode("", true);
10059
10073
  };
10060
10074
  }
10061
10075
  });
@@ -10063,12 +10077,13 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
10063
10077
  __name: "BglForm",
10064
10078
  props: {
10065
10079
  label: {},
10066
- id: {},
10080
+ fieldID: {},
10067
10081
  schema: {},
10068
10082
  modelValue: { default: () => ({}) },
10069
10083
  onDelete: {},
10070
10084
  onSubmit: {},
10071
- status: {}
10085
+ status: {},
10086
+ tag: { default: "form" }
10072
10087
  },
10073
10088
  emits: ["update:modelValue", "submit", "dirty"],
10074
10089
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -10079,7 +10094,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
10079
10094
  const instAt = /* @__PURE__ */ new Date();
10080
10095
  const timeSinceInst = () => Date.now() - instAt.getTime();
10081
10096
  const existingFormState = inject(FORM_STATE_KEY);
10082
- const isNested = Boolean(existingFormState && props2.id);
10097
+ const isNested = Boolean(existingFormState && props2.fieldID);
10083
10098
  const { data: data2, isDirty } = isNested ? existingFormState : provideBagelFormState(props2.modelValue);
10084
10099
  if (!isNested) {
10085
10100
  watch(() => props2.modelValue, (newVal) => {
@@ -10157,13 +10172,13 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
10157
10172
  });
10158
10173
  return (_ctx, _cache) => {
10159
10174
  return openBlock(), createElementBlock(Fragment, null, [
10160
- _ctx.id ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
10175
+ _ctx.tag === "template" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
10161
10176
  (openBlock(true), createElementBlock(Fragment, null, renderList(computedSchema.value, (field, i2) => {
10162
10177
  return openBlock(), createBlock(unref(_sfc_main$S), {
10163
- id: [_ctx.id, field.id].filter(Boolean).join("."),
10164
10178
  key: field.id || `${i2}p`,
10179
+ fieldID: field.id,
10165
10180
  field
10166
- }, null, 8, ["id", "field"]);
10181
+ }, null, 8, ["fieldID", "field"]);
10167
10182
  }), 128)),
10168
10183
  renderSlot(_ctx.$slots, "submit", {
10169
10184
  submit: runSubmit,
@@ -10183,10 +10198,10 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
10183
10198
  }, null, 8, ["label"])) : createCommentVNode("", true),
10184
10199
  (openBlock(true), createElementBlock(Fragment, null, renderList(computedSchema.value, (field, i2) => {
10185
10200
  return openBlock(), createBlock(unref(_sfc_main$S), {
10186
- id: field.id,
10187
10201
  key: field.id || `${i2}p`,
10202
+ fieldID: field.id,
10188
10203
  field
10189
- }, null, 8, ["id", "field"]);
10204
+ }, null, 8, ["fieldID", "field"]);
10190
10205
  }), 128)),
10191
10206
  renderSlot(_ctx.$slots, "submit", {
10192
10207
  submit: runSubmit,
@@ -20476,8 +20491,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
20476
20491
  const toPercentage = computed(() => (validTo.value - min2) / (max2 - min2) * 100);
20477
20492
  watch(() => props2.modelValue, (newVal) => {
20478
20493
  if (Array.isArray(newVal) && multiRange) {
20479
- from.value = newVal[0];
20480
- to2.value = newVal[1];
20494
+ from.value = newVal[0] ?? min2;
20495
+ to2.value = newVal[1] ?? max2;
20481
20496
  } else if (!Array.isArray(newVal)) {
20482
20497
  from.value = newVal ?? min2;
20483
20498
  to2.value = max2;
@@ -20515,7 +20530,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
20515
20530
  class: "from",
20516
20531
  type: "range",
20517
20532
  min: unref(min2),
20518
- max: unref(multiRange) ? validTo.value : unref(max2),
20533
+ max: unref(max2),
20519
20534
  step: unref(step),
20520
20535
  required: _ctx.required,
20521
20536
  disabled: unref(disabled),
@@ -20527,7 +20542,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
20527
20542
  value: validTo.value,
20528
20543
  class: "to",
20529
20544
  type: "range",
20530
- min: validFrom.value,
20545
+ min: unref(min2),
20531
20546
  max: unref(max2),
20532
20547
  step: unref(step),
20533
20548
  required: _ctx.required,
@@ -20603,7 +20618,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
20603
20618
  };
20604
20619
  }
20605
20620
  });
20606
- const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-c427a28c"]]);
20621
+ const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-36a4519c"]]);
20607
20622
  const tableTools = [
20608
20623
  "mergeCells",
20609
20624
  "splitCells",
@@ -32786,7 +32801,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
32786
32801
  emits: /* @__PURE__ */ mergeModels(["update:selectedItems", "orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
32787
32802
  setup(__props, { emit: __emit }) {
32788
32803
  useCssVars((_ctx) => ({
32789
- "19ae1fec": unref(computedItemHeight)
32804
+ "f80ef6d8": unref(computedItemHeight)
32790
32805
  }));
32791
32806
  const emit2 = __emit;
32792
32807
  const NON_DIGIT_REGEX = /[^\d.-]/g;
@@ -33013,7 +33028,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
33013
33028
  };
33014
33029
  }
33015
33030
  });
33016
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-248ceeff"]]);
33031
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-4c462da5"]]);
33017
33032
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
33018
33033
  __name: "Title",
33019
33034
  props: {
@@ -34364,7 +34379,7 @@ function uploadField(id, label, options) {
34364
34379
  function bglForm(idOrField, ...schema) {
34365
34380
  if (typeof idOrField === "string") {
34366
34381
  return {
34367
- $el: markRaw(_sfc_main$R),
34382
+ $el: "bagelform",
34368
34383
  id: idOrField,
34369
34384
  attrs: {
34370
34385
  schema: [idOrField, ...schema]
@@ -34372,7 +34387,7 @@ function bglForm(idOrField, ...schema) {
34372
34387
  };
34373
34388
  }
34374
34389
  return {
34375
- $el: markRaw(_sfc_main$R),
34390
+ $el: "bagelform",
34376
34391
  attrs: {
34377
34392
  schema: [idOrField, ...schema]
34378
34393
  }
@@ -34391,7 +34406,7 @@ function findBglFieldById(id, _schema) {
34391
34406
  for (const field of _schema) {
34392
34407
  if (field.id === id) return field;
34393
34408
  if (field.children && Number(field.children.length) > 0) {
34394
- const child = findBglFieldById(id, field.children);
34409
+ const child = findBglFieldById(id, field.children.filter((c2) => typeof c2 !== "string"));
34395
34410
  if (child) return child;
34396
34411
  }
34397
34412
  }