@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.
@@ -1 +1 @@
1
- {"version":3,"file":"BglComponent.vue.d.ts","sourceRoot":"","sources":["../../src/components/BglComponent.vue"],"names":[],"mappings":"AAgLA,OAAO,EAIN,KAAK,KAAK,EAYV,MAAM,eAAe,CAAA;yBAGL,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,eAChC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAiNxD,mBAAmB,CAAC;;;eA7MtB,KAAK,CAAC,CAAC,CAAC;aACV,MAAM;qBACE,GAAG;qBACH,MAAM;KA0MmG,CAAC,4BAA2B;oBAChI,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;yBAhCgB,GAAG;;;OAqCpB,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA3NzE,wBA2N4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"BglComponent.vue.d.ts","sourceRoot":"","sources":["../../src/components/BglComponent.vue"],"names":[],"mappings":"AAyLA,OAAO,EAIN,KAAK,KAAK,EAYV,MAAM,eAAe,CAAA;yBAGL,CAAC,SAAS,MAAM,CAAC,MAAM,EA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O,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA6ZxD,mBAAmB,CAAC;;;;;;;;;;wBArNZ,MAAM,EAAE;;cApMnB,CAAC,EAAE;iBACA,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,cAAc,CAAC,CAAC,CAAC,CAAC;qBACzC,MAAM,EAAE;wBACL,OAAO;qBACV,OAAO;4BACA,MAAM,IAAI;MAoZwF,CAAC,4BAA2B;oBAChI,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;;;UAjDuE,GAAG;UAmD9E,uXAAoC;OAGjC,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAvazE,wBAua4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -4,15 +4,13 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
4
4
  readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
5
5
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & Partial<{}> & {
6
6
  field: Field<T>;
7
- id?: string;
7
+ fieldID?: string;
8
8
  modelValue?: any;
9
9
  parentPath?: string;
10
10
  }> & import('vue').PublicProps;
11
11
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
12
12
  attrs: any;
13
- slots: {
14
- default?(_: {}): any;
15
- };
13
+ slots: {};
16
14
  emit: (evt: "update:modelValue", value: any) => void;
17
15
  }>) => import('vue').VNode & {
18
16
  __ctx?: Awaited<typeof __VLS_setup>;
@@ -1 +1 @@
1
- {"version":3,"file":"BglField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/BglField.vue"],"names":[],"mappings":"AAAA,OAyIO,EAIN,KAAK,KAAK,EAYV,MAAM,eAAe,CAAA;yBAML,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,eAChC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAuKxD,mBAAmB,CAAC;;;eAnKtB,KAAK,CAAC,CAAC,CAAC;aACV,MAAM;qBACE,GAAG;qBACH,MAAM;KAgKmG,CAAC,4BAA2B;oBAChI,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;yBAhCgB,GAAG;;;OAqCpB,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAjLzE,wBAiL4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"BglField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/BglField.vue"],"names":[],"mappings":"AAAA,OAwIO,EAIN,KAAK,KAAK,EAYV,MAAM,eAAe,CAAA;yBAML,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,eAChC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA0KxD,mBAAmB,CAAC;;;eAtKtB,KAAK,CAAC,CAAC,CAAC;kBACL,MAAM;qBACH,GAAG;qBACH,MAAM;KAmKmG,CAAC,4BAA2B;oBAChI,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;OAKD,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AApLzE,wBAoL4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -2,7 +2,7 @@ import { BglFormSchemaFnT } from '../..';
2
2
  export type FormStatus = 'idle' | 'loading' | 'success' | 'error';
3
3
  type __VLS_Props = {
4
4
  label?: string;
5
- id?: string;
5
+ fieldID?: string;
6
6
  schema: BglFormSchemaFnT<any>;
7
7
  modelValue?: {
8
8
  [key: string]: any;
@@ -10,6 +10,7 @@ type __VLS_Props = {
10
10
  onDelete?: (id: string) => void;
11
11
  onSubmit?: (data: any) => void;
12
12
  status?: FormStatus;
13
+ tag?: 'template' | 'form';
13
14
  };
14
15
  declare function validateForm(): boolean;
15
16
  declare function clearForm(): void;
@@ -52,6 +53,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
52
53
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
53
54
  onDirty?: ((...args: any[]) => any) | undefined;
54
55
  }>, {
56
+ tag: "template" | "form";
55
57
  modelValue: {
56
58
  [key: string]: any;
57
59
  };
@@ -1 +1 @@
1
- {"version":3,"file":"BglForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/BglForm.vue"],"names":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QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -8,7 +8,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
8
8
  } & {
9
9
  bagelFormProps?: Omit<{
10
10
  readonly label?: string | undefined;
11
- readonly id?: string | undefined;
11
+ readonly fieldID?: string | undefined;
12
12
  readonly schema: BglFormSchemaFnT<any>;
13
13
  readonly modelValue?: {
14
14
  [key: string]: any;
@@ -16,6 +16,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
16
16
  readonly onDelete?: ((id: string) => void) | undefined;
17
17
  readonly onSubmit?: (((data: any) => void) & ((...args: any[]) => any)) | undefined;
18
18
  readonly status?: import('./BglForm.vue').FormStatus | undefined;
19
+ readonly tag?: "template" | "form" | undefined;
19
20
  readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
20
21
  readonly onDirty?: ((...args: any[]) => any) | undefined;
21
22
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, ("schema" | `${string}modelValue` | `ref${string}` | `onVnode${string}` | "onSubmit")>;
@@ -1 +1 @@
1
- {"version":3,"file":"BglMultiStepForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/BglMultiStepForm.vue"],"names":[],"mappings":"AA6HA,OAAO,EAAa,KAAK,gBAAgB,EAAqB,MAAM,eAAe,CAAA;yBAIlE,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,eAChC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA+QxD,mBAAmB,CAAC;;;;oBA3KhB,CA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EAAE,GAAG,UAAU,CAClF,CACD;gBACO,gBAAgB,CAAC,CAAC,CAAC;MAmQ0F,CAAC,4BAA2B;oBAChI,OAAO,KAAK,EAAE,gBAAgB;;;;;;MAAsB,GAAG,IAAI;WACpE,GAAG;;yBA5CiB,GAAG;uBACL,GAAG;;;;;YACA,GAAG;;UA4CzB,4FAAqC;OAGlC,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAzRzE,wBAyR4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
package/dist/index.cjs CHANGED
@@ -61,7 +61,7 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
61
61
  };
62
62
  }
63
63
  });
64
- const _hoisted_1$T = ["aria-expanded", "aria-controls"];
64
+ const _hoisted_1$V = ["aria-expanded", "aria-controls"];
65
65
  const _hoisted_2$B = { class: "accordion-label" };
66
66
  const _hoisted_3$s = ["id", "aria-hidden"];
67
67
  const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
@@ -138,7 +138,7 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
138
138
  }, [
139
139
  vue.createVNode(vue.unref(_sfc_main$d), { icon: computedIcon.value }, null, 8, ["icon"])
140
140
  ], 2)) : vue.createCommentVNode("", true)
141
- ], 8, _hoisted_1$T),
141
+ ], 8, _hoisted_1$V),
142
142
  vue.createVNode(vue.Transition, { name: "expand" }, {
143
143
  default: vue.withCtx(() => [
144
144
  vue.unref(isOpen) ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -164,7 +164,7 @@ const _export_sfc = (sfc, props2) => {
164
164
  return target;
165
165
  };
166
166
  const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-1e73ca3e"]]);
167
- const _hoisted_1$S = { class: "relative" };
167
+ const _hoisted_1$U = { class: "relative" };
168
168
  const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
169
169
  __name: "AddressSearch",
170
170
  emits: ["addressSelected"],
@@ -187,7 +187,7 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
187
187
  (_a2 = suggestion.value) == null ? void 0 : _a2.show();
188
188
  }
189
189
  return (_ctx, _cache) => {
190
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$S, [
190
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$U, [
191
191
  vue.createVNode(vue.unref(_sfc_main$W), {
192
192
  ref_key: "suggestion",
193
193
  ref: suggestion,
@@ -223,7 +223,7 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
223
223
  };
224
224
  }
225
225
  });
226
- const _hoisted_1$R = {
226
+ const _hoisted_1$T = {
227
227
  key: 1,
228
228
  class: "bgl_btn-flex"
229
229
  };
@@ -292,7 +292,7 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
292
292
  _ctx.loading ? (vue.openBlock(), vue.createBlock(vue.unref(Loading), {
293
293
  key: 0,
294
294
  size: "15"
295
- })) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$R, [
295
+ })) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$T, [
296
296
  _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$d), {
297
297
  key: 0,
298
298
  icon: _ctx.icon
@@ -315,7 +315,7 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
315
315
  }
316
316
  });
317
317
  const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-c23a3626"]]);
318
- const _hoisted_1$Q = ["dismissable"];
318
+ const _hoisted_1$S = ["dismissable"];
319
319
  const _hoisted_2$A = { class: "m-0" };
320
320
  const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
321
321
  __name: "Alert",
@@ -353,12 +353,12 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
353
353
  icon: "close",
354
354
  onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
355
355
  })
356
- ], 10, _hoisted_1$Q)) : vue.createCommentVNode("", true);
356
+ ], 10, _hoisted_1$S)) : vue.createCommentVNode("", true);
357
357
  };
358
358
  }
359
359
  });
360
360
  const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-57141c32"]]);
361
- const _hoisted_1$P = ["src", "alt"];
361
+ const _hoisted_1$R = ["src", "alt"];
362
362
  const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
363
363
  __name: "Avatar",
364
364
  props: {
@@ -377,7 +377,7 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
377
377
  key: 0,
378
378
  src: _ctx.src,
379
379
  alt: _ctx.name
380
- }, null, 8, _hoisted_1$P)) : (vue.openBlock(), vue.createElementBlock("p", {
380
+ }, null, 8, _hoisted_1$R)) : (vue.openBlock(), vue.createElementBlock("p", {
381
381
  key: 1,
382
382
  style: vue.normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
383
383
  }, vue.toDisplayString((_ctx.fallback || vue.unref(initials)(_ctx.name || "")).toUpperCase()), 5))
@@ -416,6 +416,7 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
416
416
  }
417
417
  });
418
418
  const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-2f3caf93"]]);
419
+ const _hoisted_1$Q = { key: 1 };
419
420
  const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
420
421
  __name: "BglComponent",
421
422
  props: {
@@ -505,6 +506,12 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
505
506
  updateField(props2.id, val);
506
507
  }
507
508
  });
509
+ const computedFieldData = vue.computed(
510
+ () => {
511
+ var _a2, _b;
512
+ return ((_b = (_a2 = props2.field).transform) == null ? void 0 : _b.call(_a2, fieldData.value, props2.modelValue)) ?? fieldData.value;
513
+ }
514
+ );
508
515
  const vIf = vue.computed(() => {
509
516
  if (props2.field["v-if"] === void 0 && props2.field.vIf === void 0) return true;
510
517
  if (typeof props2.field["v-if"] === "boolean" || typeof props2.field.vIf === "boolean") return props2.field["v-if"];
@@ -545,14 +552,16 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
545
552
  }), {
546
553
  default: vue.withCtx(() => [
547
554
  _ctx.field.$el === "form" ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
548
- vue.createTextVNode(vue.toDisplayString(fieldData.value) + " ", 1),
555
+ vue.createTextVNode(vue.toDisplayString(computedFieldData.value) + " ", 1),
549
556
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.field.children, (child, ii) => {
550
- return vue.openBlock(), vue.createBlock(_component_BglComponent, {
551
- id: [props2.id, child.id].filter(Boolean).join("."),
552
- key: child.id || ii,
553
- field: child,
554
- "parent-path": props2.id
555
- }, null, 8, ["id", "field", "parent-path"]);
557
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: ii }, [
558
+ typeof child !== "string" ? (vue.openBlock(), vue.createBlock(_component_BglComponent, {
559
+ key: 0,
560
+ id: [props2.id, child.id].filter(Boolean).join("."),
561
+ field: child,
562
+ "parent-path": props2.id
563
+ }, null, 8, ["id", "field", "parent-path"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$Q, vue.toDisplayString(child), 1))
564
+ ], 64);
556
565
  }), 128))
557
566
  ], 64))
558
567
  ]),
@@ -561,7 +570,7 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
561
570
  };
562
571
  }
563
572
  });
564
- const _hoisted_1$O = ["src"];
573
+ const _hoisted_1$P = ["src"];
565
574
  const _hoisted_2$z = ["autoplay", "muted", "loop", "controls", "playsinline"];
566
575
  const _hoisted_3$r = ["src", "type"];
567
576
  const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
@@ -641,7 +650,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
641
650
  allowfullscreen: "",
642
651
  title: "Video",
643
652
  allow: "autoplay"
644
- }, null, 12, _hoisted_1$O)) : _ctx.src ? (vue.openBlock(), vue.createElementBlock("video", {
653
+ }, null, 12, _hoisted_1$P)) : _ctx.src ? (vue.openBlock(), vue.createElementBlock("video", {
645
654
  key: 1,
646
655
  ref_key: "video",
647
656
  ref: video,
@@ -662,7 +671,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
662
671
  }
663
672
  });
664
673
  const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-006552f6"]]);
665
- const _hoisted_1$N = {
674
+ const _hoisted_1$O = {
666
675
  key: 0,
667
676
  class: "card_label"
668
677
  };
@@ -695,7 +704,7 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
695
704
  }])
696
705
  }, {
697
706
  default: vue.withCtx(() => [
698
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$N, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
707
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$O, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
699
708
  vue.renderSlot(_ctx.$slots, "default")
700
709
  ]),
701
710
  _: 3
@@ -705,7 +714,7 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
705
714
  };
706
715
  }
707
716
  });
708
- const _hoisted_1$M = ["dir"];
717
+ const _hoisted_1$N = ["dir"];
709
718
  const _hoisted_2$y = {
710
719
  key: 0,
711
720
  class: "blocker"
@@ -918,7 +927,7 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
918
927
  }, void 0, true)
919
928
  ])
920
929
  ])
921
- ], 14, _hoisted_1$M);
930
+ ], 14, _hoisted_1$N);
922
931
  };
923
932
  }
924
933
  });
@@ -6866,13 +6875,13 @@ var script = vue.defineComponent({
6866
6875
  return { bar, canvas, direction, mouse };
6867
6876
  }
6868
6877
  });
6869
- const _hoisted_1$L = {
6878
+ const _hoisted_1$M = {
6870
6879
  key: 0,
6871
6880
  class: "layer-hover-bar"
6872
6881
  };
6873
6882
  const _hoisted_2$x = ["x", "y", "width", "height"];
6874
6883
  function render(_ctx, _cache, $props, $setup, $data, $options) {
6875
- return _ctx.mouse.hover ? (vue.openBlock(), vue.createElementBlock("g", _hoisted_1$L, [
6884
+ return _ctx.mouse.hover ? (vue.openBlock(), vue.createElementBlock("g", _hoisted_1$M, [
6876
6885
  vue.createElementVNode("rect", vue.mergeProps({ class: "hover-bar" }, _ctx.barStyle, {
6877
6886
  x: _ctx.bar.x,
6878
6887
  y: _ctx.bar.y,
@@ -7024,7 +7033,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
7024
7033
  };
7025
7034
  }
7026
7035
  });
7027
- const _hoisted_1$K = {
7036
+ const _hoisted_1$L = {
7028
7037
  key: 0,
7029
7038
  class: "data"
7030
7039
  };
@@ -7081,7 +7090,7 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
7081
7090
  const computedSchema = vue.computed(() => getFallbackSchema([itemData.value], props2.showFields));
7082
7091
  return (_ctx, _cache) => {
7083
7092
  var _a2;
7084
- return __props.data ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$K, [
7093
+ return __props.data ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$L, [
7085
7094
  _ctx.title ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$4), {
7086
7095
  key: 0,
7087
7096
  label: _ctx.title
@@ -9737,7 +9746,7 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
9737
9746
  };
9738
9747
  }
9739
9748
  });
9740
- const _hoisted_1$J = { class: "px-1 pt-025 pb-1" };
9749
+ const _hoisted_1$K = { class: "px-1 pt-025 pb-1" };
9741
9750
  const _hoisted_2$v = { class: "ms-1" };
9742
9751
  const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
9743
9752
  __name: "FieldSetVue",
@@ -9747,7 +9756,7 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
9747
9756
  },
9748
9757
  setup(__props) {
9749
9758
  return (_ctx, _cache) => {
9750
- return vue.openBlock(), vue.createElementBlock("fieldset", _hoisted_1$J, [
9759
+ return vue.openBlock(), vue.createElementBlock("fieldset", _hoisted_1$K, [
9751
9760
  vue.createElementVNode("legend", _hoisted_2$v, vue.toDisplayString(_ctx.legend || _ctx.label), 1),
9752
9761
  vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
9753
9762
  ]);
@@ -9799,7 +9808,7 @@ function useTabs(group) {
9799
9808
  });
9800
9809
  return { currentTab };
9801
9810
  }
9802
- const _hoisted_1$I = ["onClick"];
9811
+ const _hoisted_1$J = ["onClick"];
9803
9812
  const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
9804
9813
  __name: "TabsNav",
9805
9814
  props: {
@@ -9882,7 +9891,7 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
9882
9891
  icon: tab.icon
9883
9892
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
9884
9893
  vue.createTextVNode(" " + vue.toDisplayString(tabLabel(tab)), 1)
9885
- ], 10, _hoisted_1$I);
9894
+ ], 10, _hoisted_1$J);
9886
9895
  }), 128))
9887
9896
  ], true)
9888
9897
  ], 2);
@@ -9951,11 +9960,12 @@ function useBagelFormState() {
9951
9960
  if (!state2) throw new Error("BagelFormState must be provided");
9952
9961
  return state2;
9953
9962
  }
9963
+ const _hoisted_1$I = { key: 1 };
9954
9964
  const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
9955
9965
  __name: "BglField",
9956
9966
  props: {
9957
9967
  field: {},
9958
- id: {},
9968
+ fieldID: {},
9959
9969
  modelValue: {},
9960
9970
  parentPath: {}
9961
9971
  },
@@ -9981,25 +9991,25 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
9981
9991
  if (props2.field.$el === "file") return FileUpload;
9982
9992
  if (props2.field.$el === "date") return _sfc_main$K;
9983
9993
  if (props2.field.$el === "tabs") return TabsNav;
9984
- if (props2.field.$el === "form") return _sfc_main$R;
9994
+ if (props2.field.$el === "bglform") return _sfc_main$R;
9985
9995
  return props2.field.$el ?? "div";
9986
9996
  });
9987
9997
  const fieldData = vue.computed({
9988
9998
  get: () => {
9989
- if (!props2.id) return props2.field.defaultValue ?? (props2.field.$el === "form" ? {} : "");
9990
- const value = formState == null ? void 0 : formState.getFieldData(props2.id);
9999
+ if (!props2.fieldID) return props2.field.defaultValue ?? (props2.field.$el === "form" ? {} : "");
10000
+ const value = formState == null ? void 0 : formState.getFieldData(props2.fieldID);
9991
10001
  if (props2.field.$el === "form" && !value) return {};
9992
10002
  return value ?? "";
9993
10003
  },
9994
10004
  set: (val) => {
9995
- if (!props2.id) return;
9996
- const currentValue = formState == null ? void 0 : formState.getFieldData(props2.id);
10005
+ if (!props2.fieldID) return;
10006
+ const currentValue = formState == null ? void 0 : formState.getFieldData(props2.fieldID);
9997
10007
  if (JSON.stringify(val) === JSON.stringify(currentValue)) return;
9998
10008
  emit2("update:modelValue", val);
9999
10009
  if (props2.field.onUpdate) {
10000
10010
  props2.field.onUpdate(val, currentValue);
10001
10011
  }
10002
- formState == null ? void 0 : formState.updateField(props2.id, val);
10012
+ formState == null ? void 0 : formState.updateField(props2.fieldID, val);
10003
10013
  }
10004
10014
  });
10005
10015
  const vIf = vue.computed(() => {
@@ -10010,7 +10020,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
10010
10020
  if (typeof props2.field.vIf === "function") return props2.field.vIf(fieldData.value, formState == null ? void 0 : formState.data.value);
10011
10021
  return true;
10012
10022
  });
10013
- vue.computed(
10023
+ const computedFieldData = vue.computed(
10014
10024
  () => {
10015
10025
  var _a2, _b;
10016
10026
  return ((_b = (_a2 = props2.field).transform) == null ? void 0 : _b.call(_a2, fieldData.value, formState == null ? void 0 : formState.data.value)) ?? fieldData.value;
@@ -10021,6 +10031,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
10021
10031
  );
10022
10032
  const computedAttrs = vue.computed(() => {
10023
10033
  const attrs = { ...customAttrs.value, ...props2.field.attrs };
10034
+ delete attrs.schema;
10024
10035
  return bindAttrs(attrs, fieldData.value, formState == null ? void 0 : formState.data.value);
10025
10036
  });
10026
10037
  const computedClass = vue.computed(
@@ -10033,9 +10044,9 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
10033
10044
  var _a2;
10034
10045
  const _component_BglField = vue.resolveComponent("BglField", true);
10035
10046
  return vIf.value ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(is4.value), vue.mergeProps({ key: 0 }, computedAttrs.value, {
10036
- id: props2.id,
10037
10047
  modelValue: fieldData.value,
10038
10048
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fieldData.value = $event),
10049
+ fieldID: props2.fieldID,
10039
10050
  required: _ctx.field.required,
10040
10051
  class: computedClass.value,
10041
10052
  label: _ctx.field.label,
@@ -10047,17 +10058,20 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
10047
10058
  schema: ((_a2 = _ctx.field.attrs) == null ? void 0 : _a2.schema) ?? void 0
10048
10059
  }), {
10049
10060
  default: vue.withCtx(() => [
10050
- _ctx.field.$el === "form" ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(_ctx.field.children, (child, ii) => {
10051
- return vue.openBlock(), vue.createBlock(_component_BglField, {
10052
- id: [props2.id, child.id].filter(Boolean).join("."),
10053
- key: child.id || ii,
10054
- field: child,
10055
- "parent-path": props2.id
10056
- }, null, 8, ["id", "field", "parent-path"]);
10061
+ vue.createTextVNode(vue.toDisplayString(computedFieldData.value) + " ", 1),
10062
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.field.children, (child, ii) => {
10063
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: ii }, [
10064
+ typeof child !== "string" ? (vue.openBlock(), vue.createBlock(_component_BglField, {
10065
+ key: 0,
10066
+ fieldID: [props2.fieldID, child.id].filter(Boolean).join("."),
10067
+ field: child,
10068
+ "parent-path": props2.fieldID
10069
+ }, null, 8, ["fieldID", "field", "parent-path"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$I, vue.toDisplayString(child), 1))
10070
+ ], 64);
10057
10071
  }), 128))
10058
10072
  ]),
10059
- _: 3
10060
- }, 16, ["id", "modelValue", "required", "class", "label", "placeholder", "defaultValue", "disabled", "options", "helptext", "schema"])) : vue.createCommentVNode("", true);
10073
+ _: 1
10074
+ }, 16, ["modelValue", "fieldID", "required", "class", "label", "placeholder", "defaultValue", "disabled", "options", "helptext", "schema"])) : vue.createCommentVNode("", true);
10061
10075
  };
10062
10076
  }
10063
10077
  });
@@ -10065,12 +10079,13 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
10065
10079
  __name: "BglForm",
10066
10080
  props: {
10067
10081
  label: {},
10068
- id: {},
10082
+ fieldID: {},
10069
10083
  schema: {},
10070
10084
  modelValue: { default: () => ({}) },
10071
10085
  onDelete: {},
10072
10086
  onSubmit: {},
10073
- status: {}
10087
+ status: {},
10088
+ tag: { default: "form" }
10074
10089
  },
10075
10090
  emits: ["update:modelValue", "submit", "dirty"],
10076
10091
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -10081,7 +10096,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
10081
10096
  const instAt = /* @__PURE__ */ new Date();
10082
10097
  const timeSinceInst = () => Date.now() - instAt.getTime();
10083
10098
  const existingFormState = vue.inject(FORM_STATE_KEY);
10084
- const isNested = Boolean(existingFormState && props2.id);
10099
+ const isNested = Boolean(existingFormState && props2.fieldID);
10085
10100
  const { data: data2, isDirty } = isNested ? existingFormState : provideBagelFormState(props2.modelValue);
10086
10101
  if (!isNested) {
10087
10102
  vue.watch(() => props2.modelValue, (newVal) => {
@@ -10159,13 +10174,13 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
10159
10174
  });
10160
10175
  return (_ctx, _cache) => {
10161
10176
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
10162
- _ctx.id ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
10177
+ _ctx.tag === "template" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
10163
10178
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(computedSchema.value, (field, i2) => {
10164
10179
  return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$S), {
10165
- id: [_ctx.id, field.id].filter(Boolean).join("."),
10166
10180
  key: field.id || `${i2}p`,
10181
+ fieldID: field.id,
10167
10182
  field
10168
- }, null, 8, ["id", "field"]);
10183
+ }, null, 8, ["fieldID", "field"]);
10169
10184
  }), 128)),
10170
10185
  vue.renderSlot(_ctx.$slots, "submit", {
10171
10186
  submit: runSubmit,
@@ -10185,10 +10200,10 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
10185
10200
  }, null, 8, ["label"])) : vue.createCommentVNode("", true),
10186
10201
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(computedSchema.value, (field, i2) => {
10187
10202
  return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$S), {
10188
- id: field.id,
10189
10203
  key: field.id || `${i2}p`,
10204
+ fieldID: field.id,
10190
10205
  field
10191
- }, null, 8, ["id", "field"]);
10206
+ }, null, 8, ["fieldID", "field"]);
10192
10207
  }), 128)),
10193
10208
  vue.renderSlot(_ctx.$slots, "submit", {
10194
10209
  submit: runSubmit,
@@ -20478,8 +20493,8 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
20478
20493
  const toPercentage = vue.computed(() => (validTo.value - min2) / (max2 - min2) * 100);
20479
20494
  vue.watch(() => props2.modelValue, (newVal) => {
20480
20495
  if (Array.isArray(newVal) && multiRange) {
20481
- from.value = newVal[0];
20482
- to2.value = newVal[1];
20496
+ from.value = newVal[0] ?? min2;
20497
+ to2.value = newVal[1] ?? max2;
20483
20498
  } else if (!Array.isArray(newVal)) {
20484
20499
  from.value = newVal ?? min2;
20485
20500
  to2.value = max2;
@@ -20517,7 +20532,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
20517
20532
  class: "from",
20518
20533
  type: "range",
20519
20534
  min: vue.unref(min2),
20520
- max: vue.unref(multiRange) ? validTo.value : vue.unref(max2),
20535
+ max: vue.unref(max2),
20521
20536
  step: vue.unref(step),
20522
20537
  required: _ctx.required,
20523
20538
  disabled: vue.unref(disabled),
@@ -20529,7 +20544,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
20529
20544
  value: validTo.value,
20530
20545
  class: "to",
20531
20546
  type: "range",
20532
- min: validFrom.value,
20547
+ min: vue.unref(min2),
20533
20548
  max: vue.unref(max2),
20534
20549
  step: vue.unref(step),
20535
20550
  required: _ctx.required,
@@ -20605,7 +20620,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
20605
20620
  };
20606
20621
  }
20607
20622
  });
20608
- const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-c427a28c"]]);
20623
+ const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-36a4519c"]]);
20609
20624
  const tableTools = [
20610
20625
  "mergeCells",
20611
20626
  "splitCells",
@@ -32788,7 +32803,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
32788
32803
  emits: /* @__PURE__ */ vue.mergeModels(["update:selectedItems", "orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
32789
32804
  setup(__props, { emit: __emit }) {
32790
32805
  vue.useCssVars((_ctx) => ({
32791
- "19ae1fec": vue.unref(computedItemHeight)
32806
+ "f80ef6d8": vue.unref(computedItemHeight)
32792
32807
  }));
32793
32808
  const emit2 = __emit;
32794
32809
  const NON_DIGIT_REGEX = /[^\d.-]/g;
@@ -33015,7 +33030,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
33015
33030
  };
33016
33031
  }
33017
33032
  });
33018
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-248ceeff"]]);
33033
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-4c462da5"]]);
33019
33034
  const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
33020
33035
  __name: "Title",
33021
33036
  props: {
@@ -34366,7 +34381,7 @@ function uploadField(id, label, options) {
34366
34381
  function bglForm(idOrField, ...schema) {
34367
34382
  if (typeof idOrField === "string") {
34368
34383
  return {
34369
- $el: vue.markRaw(_sfc_main$R),
34384
+ $el: "bagelform",
34370
34385
  id: idOrField,
34371
34386
  attrs: {
34372
34387
  schema: [idOrField, ...schema]
@@ -34374,7 +34389,7 @@ function bglForm(idOrField, ...schema) {
34374
34389
  };
34375
34390
  }
34376
34391
  return {
34377
- $el: vue.markRaw(_sfc_main$R),
34392
+ $el: "bagelform",
34378
34393
  attrs: {
34379
34394
  schema: [idOrField, ...schema]
34380
34395
  }
@@ -34393,7 +34408,7 @@ function findBglFieldById(id, _schema) {
34393
34408
  for (const field of _schema) {
34394
34409
  if (field.id === id) return field;
34395
34410
  if (field.children && Number(field.children.length) > 0) {
34396
- const child = findBglFieldById(id, field.children);
34411
+ const child = findBglFieldById(id, field.children.filter((c2) => typeof c2 !== "string"));
34397
34412
  if (child) return child;
34398
34413
  }
34399
34414
  }