@bagelink/vue 0.0.1048 → 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":"AAAA,OAgLO,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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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$U = ["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$U),
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$T = { 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$T, [
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$S = {
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$S, [
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$R = ["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$R)) : 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$Q = ["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$Q)) : (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
  ]),
@@ -10011,7 +10020,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
10011
10020
  if (typeof props2.field.vIf === "function") return props2.field.vIf(fieldData.value, formState == null ? void 0 : formState.data.value);
10012
10021
  return true;
10013
10022
  });
10014
- vue.computed(
10023
+ const computedFieldData = vue.computed(
10015
10024
  () => {
10016
10025
  var _a2, _b;
10017
10026
  return ((_b = (_a2 = props2.field).transform) == null ? void 0 : _b.call(_a2, fieldData.value, formState == null ? void 0 : formState.data.value)) ?? fieldData.value;
@@ -10049,6 +10058,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
10049
10058
  schema: ((_a2 = _ctx.field.attrs) == null ? void 0 : _a2.schema) ?? void 0
10050
10059
  }), {
10051
10060
  default: vue.withCtx(() => [
10061
+ vue.createTextVNode(vue.toDisplayString(computedFieldData.value) + " ", 1),
10052
10062
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.field.children, (child, ii) => {
10053
10063
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: ii }, [
10054
10064
  typeof child !== "string" ? (vue.openBlock(), vue.createBlock(_component_BglField, {
@@ -20483,8 +20493,8 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
20483
20493
  const toPercentage = vue.computed(() => (validTo.value - min2) / (max2 - min2) * 100);
20484
20494
  vue.watch(() => props2.modelValue, (newVal) => {
20485
20495
  if (Array.isArray(newVal) && multiRange) {
20486
- from.value = newVal[0];
20487
- to2.value = newVal[1];
20496
+ from.value = newVal[0] ?? min2;
20497
+ to2.value = newVal[1] ?? max2;
20488
20498
  } else if (!Array.isArray(newVal)) {
20489
20499
  from.value = newVal ?? min2;
20490
20500
  to2.value = max2;
@@ -20522,7 +20532,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
20522
20532
  class: "from",
20523
20533
  type: "range",
20524
20534
  min: vue.unref(min2),
20525
- max: vue.unref(multiRange) ? validTo.value : vue.unref(max2),
20535
+ max: vue.unref(max2),
20526
20536
  step: vue.unref(step),
20527
20537
  required: _ctx.required,
20528
20538
  disabled: vue.unref(disabled),
@@ -20534,7 +20544,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
20534
20544
  value: validTo.value,
20535
20545
  class: "to",
20536
20546
  type: "range",
20537
- min: validFrom.value,
20547
+ min: vue.unref(min2),
20538
20548
  max: vue.unref(max2),
20539
20549
  step: vue.unref(step),
20540
20550
  required: _ctx.required,
@@ -20610,7 +20620,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
20610
20620
  };
20611
20621
  }
20612
20622
  });
20613
- 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"]]);
20614
20624
  const tableTools = [
20615
20625
  "mergeCells",
20616
20626
  "splitCells",
@@ -32793,7 +32803,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
32793
32803
  emits: /* @__PURE__ */ vue.mergeModels(["update:selectedItems", "orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
32794
32804
  setup(__props, { emit: __emit }) {
32795
32805
  vue.useCssVars((_ctx) => ({
32796
- "19ae1fec": vue.unref(computedItemHeight)
32806
+ "f80ef6d8": vue.unref(computedItemHeight)
32797
32807
  }));
32798
32808
  const emit2 = __emit;
32799
32809
  const NON_DIGIT_REGEX = /[^\d.-]/g;
@@ -33020,7 +33030,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
33020
33030
  };
33021
33031
  }
33022
33032
  });
33023
- 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"]]);
33024
33034
  const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
33025
33035
  __name: "Title",
33026
33036
  props: {
@@ -34371,7 +34381,7 @@ function uploadField(id, label, options) {
34371
34381
  function bglForm(idOrField, ...schema) {
34372
34382
  if (typeof idOrField === "string") {
34373
34383
  return {
34374
- $el: vue.markRaw(_sfc_main$R),
34384
+ $el: "bagelform",
34375
34385
  id: idOrField,
34376
34386
  attrs: {
34377
34387
  schema: [idOrField, ...schema]
@@ -34379,7 +34389,7 @@ function bglForm(idOrField, ...schema) {
34379
34389
  };
34380
34390
  }
34381
34391
  return {
34382
- $el: vue.markRaw(_sfc_main$R),
34392
+ $el: "bagelform",
34383
34393
  attrs: {
34384
34394
  schema: [idOrField, ...schema]
34385
34395
  }
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$U = ["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$U),
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$T = { 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$T, [
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$S = {
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$S, [
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$R = ["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$R)) : 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$Q = ["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$Q)) : (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
  ]),
@@ -10009,7 +10018,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
10009
10018
  if (typeof props2.field.vIf === "function") return props2.field.vIf(fieldData.value, formState == null ? void 0 : formState.data.value);
10010
10019
  return true;
10011
10020
  });
10012
- computed(
10021
+ const computedFieldData = computed(
10013
10022
  () => {
10014
10023
  var _a2, _b;
10015
10024
  return ((_b = (_a2 = props2.field).transform) == null ? void 0 : _b.call(_a2, fieldData.value, formState == null ? void 0 : formState.data.value)) ?? fieldData.value;
@@ -10047,6 +10056,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
10047
10056
  schema: ((_a2 = _ctx.field.attrs) == null ? void 0 : _a2.schema) ?? void 0
10048
10057
  }), {
10049
10058
  default: withCtx(() => [
10059
+ createTextVNode(toDisplayString(computedFieldData.value) + " ", 1),
10050
10060
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.field.children, (child, ii) => {
10051
10061
  return openBlock(), createElementBlock(Fragment, { key: ii }, [
10052
10062
  typeof child !== "string" ? (openBlock(), createBlock(_component_BglField, {
@@ -20481,8 +20491,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
20481
20491
  const toPercentage = computed(() => (validTo.value - min2) / (max2 - min2) * 100);
20482
20492
  watch(() => props2.modelValue, (newVal) => {
20483
20493
  if (Array.isArray(newVal) && multiRange) {
20484
- from.value = newVal[0];
20485
- to2.value = newVal[1];
20494
+ from.value = newVal[0] ?? min2;
20495
+ to2.value = newVal[1] ?? max2;
20486
20496
  } else if (!Array.isArray(newVal)) {
20487
20497
  from.value = newVal ?? min2;
20488
20498
  to2.value = max2;
@@ -20520,7 +20530,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
20520
20530
  class: "from",
20521
20531
  type: "range",
20522
20532
  min: unref(min2),
20523
- max: unref(multiRange) ? validTo.value : unref(max2),
20533
+ max: unref(max2),
20524
20534
  step: unref(step),
20525
20535
  required: _ctx.required,
20526
20536
  disabled: unref(disabled),
@@ -20532,7 +20542,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
20532
20542
  value: validTo.value,
20533
20543
  class: "to",
20534
20544
  type: "range",
20535
- min: validFrom.value,
20545
+ min: unref(min2),
20536
20546
  max: unref(max2),
20537
20547
  step: unref(step),
20538
20548
  required: _ctx.required,
@@ -20608,7 +20618,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
20608
20618
  };
20609
20619
  }
20610
20620
  });
20611
- 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"]]);
20612
20622
  const tableTools = [
20613
20623
  "mergeCells",
20614
20624
  "splitCells",
@@ -32791,7 +32801,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
32791
32801
  emits: /* @__PURE__ */ mergeModels(["update:selectedItems", "orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
32792
32802
  setup(__props, { emit: __emit }) {
32793
32803
  useCssVars((_ctx) => ({
32794
- "19ae1fec": unref(computedItemHeight)
32804
+ "f80ef6d8": unref(computedItemHeight)
32795
32805
  }));
32796
32806
  const emit2 = __emit;
32797
32807
  const NON_DIGIT_REGEX = /[^\d.-]/g;
@@ -33018,7 +33028,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
33018
33028
  };
33019
33029
  }
33020
33030
  });
33021
- 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"]]);
33022
33032
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
33023
33033
  __name: "Title",
33024
33034
  props: {
@@ -34369,7 +34379,7 @@ function uploadField(id, label, options) {
34369
34379
  function bglForm(idOrField, ...schema) {
34370
34380
  if (typeof idOrField === "string") {
34371
34381
  return {
34372
- $el: markRaw(_sfc_main$R),
34382
+ $el: "bagelform",
34373
34383
  id: idOrField,
34374
34384
  attrs: {
34375
34385
  schema: [idOrField, ...schema]
@@ -34377,7 +34387,7 @@ function bglForm(idOrField, ...schema) {
34377
34387
  };
34378
34388
  }
34379
34389
  return {
34380
- $el: markRaw(_sfc_main$R),
34390
+ $el: "bagelform",
34381
34391
  attrs: {
34382
34392
  schema: [idOrField, ...schema]
34383
34393
  }
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-c427a28c]{
1183
+ .range-slider-position-txt[data-v-36a4519c]{
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-c427a28c]{
1190
+ .range-slider:hover .range-slider-position-txt[data-v-36a4519c]{
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-c427a28c] {
1195
+ .range-slider[data-v-36a4519c] {
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-c427a28c]{
1201
+ .range-slider-txt[data-v-36a4519c]{
1202
1202
  margin-top: calc(var(--bgl-range-thumb-size) / 2) !important;
1203
1203
  }
1204
- input[type="range"][data-v-c427a28c] {
1204
+ input[type="range"][data-v-36a4519c] {
1205
1205
  position: absolute;
1206
1206
  width: 100%;
1207
1207
  height: 100%;
@@ -1211,7 +1211,7 @@ input[type="range"][data-v-c427a28c] {
1211
1211
  appearance: none;
1212
1212
  margin: 0;
1213
1213
  }
1214
- input[type="range"][data-v-c427a28c]::-webkit-slider-thumb {
1214
+ input[type="range"][data-v-36a4519c]::-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-c427a28c]::-webkit-slider-thumb {
1224
1224
  cursor: grab;
1225
1225
  transition: var(--bgl-transition);
1226
1226
  }
1227
- input[type="range"][data-v-c427a28c]::-webkit-slider-thumb:hover {
1227
+ input[type="range"][data-v-36a4519c]::-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-c427a28c]:focus::-webkit-slider-thumb {
1231
+ input[type="range"][data-v-36a4519c]: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-c427a28c]:active::-webkit-slider-thumb {
1235
+ input[type="range"][data-v-36a4519c]:active::-webkit-slider-thumb {
1236
1236
  cursor: grabbing;
1237
1237
  }
1238
- .track[data-v-c427a28c] {
1238
+ .track[data-v-36a4519c] {
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);
@@ -3488,22 +3488,22 @@ body:has(.bg-dark.is-active) {
3488
3488
  background: transparent;
3489
3489
  }
3490
3490
 
3491
- .table-list-wrap[data-v-248ceeff] {
3491
+ .table-list-wrap[data-v-4c462da5] {
3492
3492
  min-height: 150px;
3493
3493
  }
3494
- .selected[data-v-248ceeff] {
3494
+ .selected[data-v-4c462da5] {
3495
3495
  background: var(--bgl-primary-tint);
3496
3496
  }
3497
- tbody tr.selected[data-v-248ceeff]:hover {
3497
+ tbody tr.selected[data-v-4c462da5]:hover {
3498
3498
  background: var(--bgl-primary-light);
3499
3499
  }
3500
- .loading-table[data-v-248ceeff] {
3500
+ .loading-table[data-v-4c462da5] {
3501
3501
  position: relative;
3502
3502
  }
3503
- .inset[data-v-248ceeff] {
3503
+ .inset[data-v-4c462da5] {
3504
3504
  inset: 0;
3505
3505
  }
3506
- .loading-table-animation[data-v-248ceeff] {
3506
+ .loading-table-animation[data-v-4c462da5] {
3507
3507
  --size: 60px;
3508
3508
  top: 30vh;
3509
3509
  inset-inline-start: calc(50% - var(--size));
@@ -3511,9 +3511,9 @@ tbody tr.selected[data-v-248ceeff]:hover {
3511
3511
  border-top: 4px solid var(--bgl-primary);
3512
3512
  width: var(--size);
3513
3513
  height: var(--size);
3514
- animation: loading-table-248ceeff 1s linear infinite;
3514
+ animation: loading-table-4c462da5 1s linear infinite;
3515
3515
  }
3516
- @keyframes loading-table-248ceeff {
3516
+ @keyframes loading-table-4c462da5 {
3517
3517
  0% {
3518
3518
  transform: translate(-50%, -50%) rotate(0deg);
3519
3519
  }
@@ -3521,51 +3521,51 @@ tbody tr.selected[data-v-248ceeff]:hover {
3521
3521
  transform: translate(-50%, -50%) rotate(360deg);
3522
3522
  }
3523
3523
  }
3524
- .list-arrows[data-v-248ceeff] {
3524
+ .list-arrows[data-v-4c462da5] {
3525
3525
  opacity: 0;
3526
3526
  }
3527
- .list-arrows .bgl_icon-font[data-v-248ceeff] {
3527
+ .list-arrows .bgl_icon-font[data-v-4c462da5] {
3528
3528
  transition: all ease-in-out 0.2s;
3529
3529
  }
3530
- .list-arrows.sorted[data-v-248ceeff] {
3530
+ .list-arrows.sorted[data-v-4c462da5] {
3531
3531
  opacity: 1;
3532
3532
  }
3533
- .col img[data-v-248ceeff] {
3533
+ .col img[data-v-4c462da5] {
3534
3534
  height: 35px;
3535
3535
  margin-top: -14px;
3536
3536
  margin-bottom: -14px;
3537
3537
  border-radius: 5px;
3538
3538
  }
3539
- .list-arrows.sorted .desc[data-v-248ceeff] {
3539
+ .list-arrows.sorted .desc[data-v-4c462da5] {
3540
3540
  transform: rotate(180deg);
3541
3541
  display: inline-block;
3542
3542
  }
3543
- table[data-v-248ceeff] {
3543
+ table[data-v-4c462da5] {
3544
3544
  border-spacing: 0 15px;
3545
3545
  border-collapse: collapse;
3546
3546
  width: 100%;
3547
3547
  }
3548
- th[data-v-248ceeff] {
3548
+ th[data-v-4c462da5] {
3549
3549
  font-size: 0.8rem;
3550
3550
  color: var(--bgl-black-tint);
3551
3551
  position: sticky;
3552
3552
  top: 0;
3553
3553
  z-index: 2;
3554
3554
  background: var(--bgl-box-bg);
3555
- height: var(--19ae1fec);
3555
+ height: var(--f80ef6d8);
3556
3556
  vertical-align: bottom;
3557
3557
  font-weight: 400;
3558
3558
  text-align: start;
3559
3559
  }
3560
- .embedded-field[data-v-248ceeff] {
3560
+ .embedded-field[data-v-4c462da5] {
3561
3561
  margin-bottom: -0.2rem;
3562
3562
  margin-top: -0.2rem;
3563
3563
  }
3564
- .row[data-v-248ceeff] {
3564
+ .row[data-v-4c462da5] {
3565
3565
  border-bottom: 1px solid var(--border-color);
3566
3566
  cursor: pointer;
3567
3567
  }
3568
- .row.first-row[data-v-248ceeff] {
3568
+ .row.first-row[data-v-4c462da5] {
3569
3569
  font-size: 0.8rem;
3570
3570
  color: var(--bgl-black-tint);
3571
3571
  position: sticky;
@@ -3574,7 +3574,7 @@ th[data-v-248ceeff] {
3574
3574
  background: var(--bgl-box-bg);
3575
3575
  vertical-align: bottom;
3576
3576
  }
3577
- .row.first-row[data-v-248ceeff]::after {
3577
+ .row.first-row[data-v-4c462da5]::after {
3578
3578
  content: '';
3579
3579
  border-bottom: 1px solid var(--border-color);
3580
3580
  position: absolute;
@@ -3582,30 +3582,30 @@ th[data-v-248ceeff] {
3582
3582
  right: 0;
3583
3583
  bottom: -1px;
3584
3584
  }
3585
- .first-row .col[data-v-248ceeff] {
3585
+ .first-row .col[data-v-4c462da5] {
3586
3586
  cursor: pointer;
3587
3587
  background: var(--bgl-box-bg);
3588
3588
  }
3589
- .col[data-v-248ceeff] {
3589
+ .col[data-v-4c462da5] {
3590
3590
  white-space: nowrap;
3591
3591
  padding: 0.75rem 1rem;
3592
3592
  transition: var(--bgl-transition);
3593
3593
  line-height: 1;
3594
3594
  align-items: center;
3595
3595
  }
3596
- .col[data-v-248ceeff]:has(.bagel-input) {
3596
+ .col[data-v-4c462da5]:has(.bagel-input) {
3597
3597
  padding: 0rem 0.25rem;
3598
3598
  }
3599
- .col > div[data-v-248ceeff] {
3599
+ .col > div[data-v-4c462da5] {
3600
3600
  display: flex;
3601
3601
  gap: 0.5rem;
3602
3602
  }
3603
- .max-col-width[data-v-248ceeff] {
3603
+ .max-col-width[data-v-4c462da5] {
3604
3604
  max-width: 30vw;
3605
3605
  overflow: hidden;
3606
3606
  text-overflow: ellipsis;
3607
3607
  }
3608
- .col.check .bgl_icon-font[data-v-248ceeff] {
3608
+ .col.check .bgl_icon-font[data-v-4c462da5] {
3609
3609
  border-radius: 100%;
3610
3610
  background: var(--bgl-blue-20);
3611
3611
  color: var(--bgl-primary);
@@ -3616,35 +3616,35 @@ th[data-v-248ceeff] {
3616
3616
  justify-content: center;
3617
3617
  margin-top: -2px;
3618
3618
  }
3619
- .rows[data-v-248ceeff] {
3619
+ .rows[data-v-4c462da5] {
3620
3620
  font-size: 0.88em;
3621
3621
  }
3622
- .table-list[data-v-248ceeff] {
3622
+ .table-list[data-v-4c462da5] {
3623
3623
  height: 100%;
3624
3624
  position: relative;
3625
3625
  padding-left: 0 !important;
3626
3626
  padding-right: 0 !important;
3627
3627
  overflow: auto;
3628
3628
  }
3629
- .BagelTable .table-list[data-v-248ceeff] {
3629
+ .BagelTable .table-list[data-v-4c462da5] {
3630
3630
  overflow: unset;
3631
3631
  }
3632
- .row-item[data-v-248ceeff] {
3633
- height: var(--19ae1fec);
3632
+ .row-item[data-v-4c462da5] {
3633
+ height: var(--f80ef6d8);
3634
3634
  transition: all 200ms ease;
3635
3635
  }
3636
- .row-item[data-v-248ceeff]:hover {
3636
+ .row-item[data-v-4c462da5]:hover {
3637
3637
  background: var(--bgl-gray-light);
3638
3638
  }
3639
- .row-item input[type='checkbox'][data-v-248ceeff] {
3639
+ .row-item input[type='checkbox'][data-v-4c462da5] {
3640
3640
  margin-top: 0.45rem !important;
3641
3641
  accent-color: var(--bgl-accent-color);
3642
3642
  }
3643
- .infinite-wrapper[data-v-248ceeff] {
3643
+ .infinite-wrapper[data-v-4c462da5] {
3644
3644
  overflow-y: auto;
3645
3645
  width: 100%;
3646
3646
  }
3647
- input[type='checkbox'][data-v-248ceeff] {
3647
+ input[type='checkbox'][data-v-4c462da5] {
3648
3648
  margin-top: 0.3rem !important;
3649
3649
  accent-color: var(--bgl-accent-color);
3650
3650
  transform: scale(1.2);
@@ -3656,7 +3656,7 @@ input[type='checkbox'][data-v-248ceeff] {
3656
3656
  height: 0.85rem;
3657
3657
  width: 0.85rem;
3658
3658
  }
3659
- input[type='checkbox'][data-v-248ceeff]::before {
3659
+ input[type='checkbox'][data-v-4c462da5]::before {
3660
3660
  content: '';
3661
3661
  height: 0.85rem;
3662
3662
  width: 0.85rem;
@@ -3669,18 +3669,18 @@ input[type='checkbox'][data-v-248ceeff]::before {
3669
3669
  transform: scale(1);
3670
3670
  position: absolute;
3671
3671
  }
3672
- input[type='checkbox'][data-v-248ceeff]:hover::before {
3672
+ input[type='checkbox'][data-v-4c462da5]:hover::before {
3673
3673
  opacity: 0.2;
3674
3674
  transform: scale(2);
3675
3675
  }
3676
- [lang='he'] [dir='ltr'][data-v-248ceeff] {
3676
+ [lang='he'] [dir='ltr'][data-v-4c462da5] {
3677
3677
  text-align: right;
3678
3678
  }
3679
- th input[type='checkbox'][data-v-248ceeff] {
3679
+ th input[type='checkbox'][data-v-4c462da5] {
3680
3680
  transform: translateY(0.2rem) scale(1.2);
3681
3681
  accent-color: var(--bgl-accent-color);
3682
3682
  }
3683
- th[data-v-248ceeff]::after {
3683
+ th[data-v-4c462da5]::after {
3684
3684
  content: '';
3685
3685
  border-bottom: 1px solid var(--border-color);
3686
3686
  position: absolute;
@@ -3688,24 +3688,24 @@ th[data-v-248ceeff]::after {
3688
3688
  right: 0;
3689
3689
  bottom: -1px;
3690
3690
  }
3691
- tr[data-v-248ceeff] {
3691
+ tr[data-v-4c462da5] {
3692
3692
  border-bottom: 1px solid var(--border-color);
3693
3693
  cursor: pointer;
3694
3694
  align-items: center;
3695
3695
  }
3696
- td[data-v-248ceeff],
3697
- th[data-v-248ceeff] {
3696
+ td[data-v-4c462da5],
3697
+ th[data-v-4c462da5] {
3698
3698
  white-space: nowrap;
3699
3699
  padding: 0.75rem 0.65rem;
3700
3700
  transition: var(--bgl-transition);
3701
3701
  line-height: 1;
3702
3702
  }
3703
- tbody tr[data-v-248ceeff] {
3703
+ tbody tr[data-v-4c462da5] {
3704
3704
  font-size: 0.88em;
3705
- height: var(--19ae1fec);
3705
+ height: var(--f80ef6d8);
3706
3706
  transition: all 200ms ease;
3707
3707
  }
3708
- tbody tr[data-v-248ceeff]:hover {
3708
+ tbody tr[data-v-4c462da5]:hover {
3709
3709
  background: var(--bgl-gray-light);
3710
3710
  }
3711
3711
 
@@ -67,120 +67,7 @@ export declare function uploadField(id: string, label?: string, options?: Upload
67
67
  };
68
68
  };
69
69
  export declare function bglForm(idOrField?: string | Field, ...schema: Field[]): {
70
- $el: import('vue').Raw<{
71
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
72
- label?: string;
73
- fieldID?: string;
74
- schema: import('..').BglFormSchemaFnT<any>;
75
- modelValue?: {
76
- [key: string]: any;
77
- };
78
- onDelete?: (id: string) => void;
79
- onSubmit?: (data: any) => void;
80
- status?: import('../components/form/BglForm.vue').FormStatus;
81
- tag?: "template" | "form";
82
- }> & Readonly<{
83
- onSubmit?: ((...args: any[]) => any) | undefined;
84
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
85
- onDirty?: ((...args: any[]) => any) | undefined;
86
- }>, {
87
- submit: () => void;
88
- validateForm: () => boolean;
89
- deleteItem: () => void;
90
- isDirty: import('vue').Ref<boolean, boolean>;
91
- clearForm: () => void;
92
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
93
- submit: (...args: any[]) => void;
94
- "update:modelValue": (...args: any[]) => void;
95
- dirty: (...args: any[]) => void;
96
- }, import('vue').PublicProps, {
97
- tag: "template" | "form";
98
- modelValue: {
99
- [key: string]: any;
100
- };
101
- }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
102
- P: {};
103
- B: {};
104
- D: {};
105
- C: {};
106
- M: {};
107
- Defaults: {};
108
- }, Readonly<{
109
- label?: string;
110
- fieldID?: string;
111
- schema: import('..').BglFormSchemaFnT<any>;
112
- modelValue?: {
113
- [key: string]: any;
114
- };
115
- onDelete?: (id: string) => void;
116
- onSubmit?: (data: any) => void;
117
- status?: import('../components/form/BglForm.vue').FormStatus;
118
- tag?: "template" | "form";
119
- }> & Readonly<{
120
- onSubmit?: ((...args: any[]) => any) | undefined;
121
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
122
- onDirty?: ((...args: any[]) => any) | undefined;
123
- }>, {
124
- submit: () => void;
125
- validateForm: () => boolean;
126
- deleteItem: () => void;
127
- isDirty: import('vue').Ref<boolean, boolean>;
128
- clearForm: () => void;
129
- }, {}, {}, {}, {
130
- tag: "template" | "form";
131
- modelValue: {
132
- [key: string]: any;
133
- };
134
- }>;
135
- __isFragment?: never;
136
- __isTeleport?: never;
137
- __isSuspense?: never;
138
- } & import('vue').ComponentOptionsBase<Readonly<{
139
- label?: string;
140
- fieldID?: string;
141
- schema: import('..').BglFormSchemaFnT<any>;
142
- modelValue?: {
143
- [key: string]: any;
144
- };
145
- onDelete?: (id: string) => void;
146
- onSubmit?: (data: any) => void;
147
- status?: import('../components/form/BglForm.vue').FormStatus;
148
- tag?: "template" | "form";
149
- }> & Readonly<{
150
- onSubmit?: ((...args: any[]) => any) | undefined;
151
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
152
- onDirty?: ((...args: any[]) => any) | undefined;
153
- }>, {
154
- submit: () => void;
155
- validateForm: () => boolean;
156
- deleteItem: () => void;
157
- isDirty: import('vue').Ref<boolean, boolean>;
158
- clearForm: () => void;
159
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
160
- submit: (...args: any[]) => void;
161
- "update:modelValue": (...args: any[]) => void;
162
- dirty: (...args: any[]) => void;
163
- }, string, {
164
- tag: "template" | "form";
165
- modelValue: {
166
- [key: string]: any;
167
- };
168
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
169
- $slots: {
170
- submit?(_: {
171
- submit: () => void;
172
- isDirty: boolean;
173
- validateForm: () => boolean;
174
- }): any;
175
- submit?(_: {
176
- submit: () => void;
177
- isDirty: boolean;
178
- validateForm: () => boolean;
179
- }): any;
180
- success?(_: {}): any;
181
- error?(_: {}): any;
182
- };
183
- })>;
70
+ $el: string;
184
71
  id: string;
185
72
  attrs: {
186
73
  schema: (string | import('..').BaseBagelField<{
@@ -188,120 +75,7 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
188
75
  }>)[];
189
76
  };
190
77
  } | {
191
- $el: import('vue').Raw<{
192
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
193
- label?: string;
194
- fieldID?: string;
195
- schema: import('..').BglFormSchemaFnT<any>;
196
- modelValue?: {
197
- [key: string]: any;
198
- };
199
- onDelete?: (id: string) => void;
200
- onSubmit?: (data: any) => void;
201
- status?: import('../components/form/BglForm.vue').FormStatus;
202
- tag?: "template" | "form";
203
- }> & Readonly<{
204
- onSubmit?: ((...args: any[]) => any) | undefined;
205
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
206
- onDirty?: ((...args: any[]) => any) | undefined;
207
- }>, {
208
- submit: () => void;
209
- validateForm: () => boolean;
210
- deleteItem: () => void;
211
- isDirty: import('vue').Ref<boolean, boolean>;
212
- clearForm: () => void;
213
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
214
- submit: (...args: any[]) => void;
215
- "update:modelValue": (...args: any[]) => void;
216
- dirty: (...args: any[]) => void;
217
- }, import('vue').PublicProps, {
218
- tag: "template" | "form";
219
- modelValue: {
220
- [key: string]: any;
221
- };
222
- }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
223
- P: {};
224
- B: {};
225
- D: {};
226
- C: {};
227
- M: {};
228
- Defaults: {};
229
- }, Readonly<{
230
- label?: string;
231
- fieldID?: string;
232
- schema: import('..').BglFormSchemaFnT<any>;
233
- modelValue?: {
234
- [key: string]: any;
235
- };
236
- onDelete?: (id: string) => void;
237
- onSubmit?: (data: any) => void;
238
- status?: import('../components/form/BglForm.vue').FormStatus;
239
- tag?: "template" | "form";
240
- }> & Readonly<{
241
- onSubmit?: ((...args: any[]) => any) | undefined;
242
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
243
- onDirty?: ((...args: any[]) => any) | undefined;
244
- }>, {
245
- submit: () => void;
246
- validateForm: () => boolean;
247
- deleteItem: () => void;
248
- isDirty: import('vue').Ref<boolean, boolean>;
249
- clearForm: () => void;
250
- }, {}, {}, {}, {
251
- tag: "template" | "form";
252
- modelValue: {
253
- [key: string]: any;
254
- };
255
- }>;
256
- __isFragment?: never;
257
- __isTeleport?: never;
258
- __isSuspense?: never;
259
- } & import('vue').ComponentOptionsBase<Readonly<{
260
- label?: string;
261
- fieldID?: string;
262
- schema: import('..').BglFormSchemaFnT<any>;
263
- modelValue?: {
264
- [key: string]: any;
265
- };
266
- onDelete?: (id: string) => void;
267
- onSubmit?: (data: any) => void;
268
- status?: import('../components/form/BglForm.vue').FormStatus;
269
- tag?: "template" | "form";
270
- }> & Readonly<{
271
- onSubmit?: ((...args: any[]) => any) | undefined;
272
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
273
- onDirty?: ((...args: any[]) => any) | undefined;
274
- }>, {
275
- submit: () => void;
276
- validateForm: () => boolean;
277
- deleteItem: () => void;
278
- isDirty: import('vue').Ref<boolean, boolean>;
279
- clearForm: () => void;
280
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
281
- submit: (...args: any[]) => void;
282
- "update:modelValue": (...args: any[]) => void;
283
- dirty: (...args: any[]) => void;
284
- }, string, {
285
- tag: "template" | "form";
286
- modelValue: {
287
- [key: string]: any;
288
- };
289
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
290
- $slots: {
291
- submit?(_: {
292
- submit: () => void;
293
- isDirty: boolean;
294
- validateForm: () => boolean;
295
- }): any;
296
- submit?(_: {
297
- submit: () => void;
298
- isDirty: boolean;
299
- validateForm: () => boolean;
300
- }): any;
301
- success?(_: {}): any;
302
- error?(_: {}): any;
303
- };
304
- })>;
78
+ $el: string;
305
79
  attrs: {
306
80
  schema: (import('..').BaseBagelField<{
307
81
  [key: string]: any;
@@ -1 +1 @@
1
- {"version":3,"file":"BagelFormUtils.d.ts","sourceRoot":"","sources":["../../src/utils/BagelFormUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,KAAK,KAAK,EAAE,KAAK,MA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5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -117,6 +117,10 @@ const fieldData = $computed({
117
117
  }
118
118
  })
119
119
 
120
+ const computedFieldData = $computed(
121
+ () => props.field.transform?.(fieldData, props.modelValue as T) ?? fieldData
122
+ )
123
+
120
124
  const vIf = $computed(() => {
121
125
  if (props.field['v-if'] === undefined && props.field.vIf === undefined) return true
122
126
  if (typeof props.field['v-if'] === 'boolean' || typeof props.field.vIf === 'boolean') return props.field['v-if']
@@ -161,14 +165,19 @@ const computedClass = $computed(
161
165
  <slot />
162
166
  </template>
163
167
  <template v-else>
164
- {{ fieldData }}
165
- <BglComponent
168
+ {{ computedFieldData }}
169
+ <template
166
170
  v-for="(child, ii) in field.children"
167
- :id="[props.id, child.id].filter(Boolean).join('.')"
168
- :key="child.id || ii"
169
- :field="child"
170
- :parent-path="props.id"
171
- />
171
+ :key="ii"
172
+ >
173
+ <BglComponent
174
+ v-if="(typeof child !== 'string')"
175
+ :id="[props.id, child.id].filter(Boolean).join('.')"
176
+ :field="child"
177
+ :parent-path="props.id"
178
+ />
179
+ <span v-else>{{ child }}</span>
180
+ </template>
172
181
  </template>
173
182
  </component>
174
183
  </template>
@@ -113,7 +113,6 @@ function transform(rowData: any) {
113
113
 
114
114
  for (const field of schemaFields) {
115
115
  const fieldData = rowData[`${field.id}`]
116
-
117
116
  const newFieldVal = field.transform?.(fieldData, rowData)
118
117
 
119
118
  Object.assign(obj, {
@@ -120,6 +120,7 @@ const computedClass = $computed(
120
120
  :helptext="field.helptext"
121
121
  :schema="field.attrs?.schema ?? undefined"
122
122
  >
123
+ {{ computedFieldData }}
123
124
  <template v-for="(child, ii) in field.children" :key="ii">
124
125
  <BglField
125
126
  v-if="(typeof child !== 'string')"
@@ -41,8 +41,8 @@ const toPercentage = $computed(() => ((validTo - min) / (max - min)) * 100)
41
41
 
42
42
  watch(() => props.modelValue, (newVal) => {
43
43
  if (Array.isArray(newVal) && multiRange) {
44
- from = newVal[0]
45
- to = newVal[1]
44
+ from = newVal[0] ?? min
45
+ to = newVal[1] ?? max
46
46
  } else if (!Array.isArray(newVal)) {
47
47
  from = newVal ?? min
48
48
  to = max
@@ -84,7 +84,7 @@ const displayTo = $computed(() => formatValue(validTo))
84
84
  class="from"
85
85
  type="range"
86
86
  :min="min"
87
- :max="multiRange ? validTo : max"
87
+ :max="max"
88
88
  :step="step"
89
89
  :required="required"
90
90
  :disabled="disabled"
@@ -96,7 +96,7 @@ const displayTo = $computed(() => formatValue(validTo))
96
96
  :value="validTo"
97
97
  class="to"
98
98
  type="range"
99
- :min="validFrom"
99
+ :min="min"
100
100
  :max="max"
101
101
  :step="step"
102
102
  :required="required"
@@ -1,4 +1,4 @@
1
- import { BagelForm, type BglFormSchemaT, type Field, type Option, TelInput } from '@bagelink/vue'
1
+ import { type BglFormSchemaT, type Field, type Option, TelInput } from '@bagelink/vue'
2
2
  import { markRaw } from 'vue'
3
3
 
4
4
  interface InputOptions {
@@ -192,7 +192,7 @@ export function uploadField(id: string, label?: string, options?: UploadOptions)
192
192
  export function bglForm(idOrField?: string | Field, ...schema: Field[]) {
193
193
  if (typeof idOrField === 'string') {
194
194
  return {
195
- $el: markRaw(BagelForm),
195
+ $el: 'bagelform',
196
196
  id: idOrField,
197
197
  attrs: {
198
198
  schema: [idOrField, ...schema],
@@ -200,7 +200,7 @@ export function bglForm(idOrField?: string | Field, ...schema: Field[]) {
200
200
  }
201
201
  }
202
202
  return {
203
- $el: markRaw(BagelForm),
203
+ $el: 'bagelform',
204
204
  attrs: {
205
205
  schema: [idOrField, ...schema]
206
206
  },