@bagelink/vue 0.0.211 → 0.0.214

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
@@ -1,4 +1,4 @@
1
- import { inject, ref, defineComponent, h, openBlock, createElementBlock, Fragment as Fragment$1, createElementVNode, createTextVNode, toDisplayString, watch, onMounted, withKeys, withModifiers, normalizeStyle, resolveComponent, normalizeClass, renderSlot, renderList, createBlock, withCtx, useCssVars, useSlots, computed, resolveDynamicComponent, unref, createCommentVNode, onUnmounted, createVNode, mergeProps, withDirectives, vModelText, isRef, reactive, Transition, pushScopeId, popScopeId, markRaw, vModelCheckbox, Teleport, vModelDynamic, TransitionGroup, toRef, nextTick, createSlots, normalizeProps, guardReactiveProps, render as render$e, onBeforeUpdate, vShow, getCurrentScope, onScopeDispose, vModelRadio, provide } from "vue";
1
+ import { inject, ref, defineComponent, h, openBlock, createElementBlock, Fragment as Fragment$1, createElementVNode, createTextVNode, toDisplayString, watch, onMounted, withKeys, withModifiers, normalizeStyle, resolveComponent, normalizeClass, renderSlot, renderList, createBlock, withCtx, pushScopeId, popScopeId, useCssVars, useSlots, computed, resolveDynamicComponent, unref, createCommentVNode, onUnmounted, createVNode, mergeProps, withDirectives, vModelText, isRef, reactive, Transition, markRaw, vModelCheckbox, Teleport, vModelDynamic, TransitionGroup, toRef, nextTick, createSlots, normalizeProps, guardReactiveProps, render as render$e, onBeforeUpdate, vShow, getCurrentScope, onScopeDispose, vModelRadio, provide } from "vue";
2
2
  function bind$2(fn2, thisArg) {
3
3
  return function wrap2() {
4
4
  return fn2.apply(thisArg, arguments);
@@ -14588,13 +14588,14 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
14588
14588
  };
14589
14589
  }
14590
14590
  });
14591
- const _hoisted_1$10 = /* @__PURE__ */ createElementVNode("div", { class: "icon-font top-arrow" }, "chevron_right", -1);
14591
+ const _withScopeId$3 = (n) => (pushScopeId("data-v-fddb4764"), n = n(), popScopeId(), n);
14592
+ const _hoisted_1$10 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "icon-font top-arrow" }, " chevron_right ", -1));
14592
14593
  const _hoisted_2$T = [
14593
14594
  _hoisted_1$10
14594
14595
  ];
14595
14596
  const _hoisted_3$K = { class: "full-nav" };
14596
14597
  const _hoisted_4$t = { class: "nav-scroll" };
14597
- const _hoisted_5$o = { class: "nav-links-wrapper" };
14598
+ const _hoisted_5$n = { class: "nav-links-wrapper" };
14598
14599
  const _hoisted_6$i = { class: "icon-font" };
14599
14600
  const _hoisted_7$d = { class: "tooltip" };
14600
14601
  const _hoisted_8$7 = { class: "bot-buttons-wrapper" };
@@ -14614,7 +14615,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
14614
14615
  return openBlock(), createElementBlock("div", {
14615
14616
  class: normalizeClass({ open: isOpen.value, closed: !isOpen.value })
14616
14617
  }, [
14617
- renderSlot(_ctx.$slots, "top"),
14618
+ renderSlot(_ctx.$slots, "top", {}, void 0, true),
14618
14619
  createElementVNode("div", {
14619
14620
  class: "nav-expend",
14620
14621
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value),
@@ -14625,7 +14626,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
14625
14626
  }, _hoisted_2$T, 32),
14626
14627
  createElementVNode("div", _hoisted_3$K, [
14627
14628
  createElementVNode("div", _hoisted_4$t, [
14628
- createElementVNode("div", _hoisted_5$o, [
14629
+ createElementVNode("div", _hoisted_5$n, [
14629
14630
  (openBlock(true), createElementBlock(Fragment$1, null, renderList((_a2 = _ctx.links) == null ? void 0 : _a2.call(_ctx), (link) => {
14630
14631
  return openBlock(), createBlock(_component_RouterLink, {
14631
14632
  class: "nav-button",
@@ -14642,13 +14643,21 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
14642
14643
  ])
14643
14644
  ]),
14644
14645
  createElementVNode("div", _hoisted_8$7, [
14645
- renderSlot(_ctx.$slots, "floor")
14646
+ renderSlot(_ctx.$slots, "floor", {}, void 0, true)
14646
14647
  ])
14647
14648
  ])
14648
14649
  ], 2);
14649
14650
  };
14650
14651
  }
14651
14652
  });
14653
+ const _export_sfc = (sfc, props2) => {
14654
+ const target = sfc.__vccOpts || sfc;
14655
+ for (const [key, val] of props2) {
14656
+ target[key] = val;
14657
+ }
14658
+ return target;
14659
+ };
14660
+ const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-fddb4764"]]);
14652
14661
  const _hoisted_1$$ = {
14653
14662
  key: 0,
14654
14663
  class: "loading"
@@ -14757,13 +14766,6 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
14757
14766
  };
14758
14767
  }
14759
14768
  });
14760
- const _export_sfc = (sfc, props2) => {
14761
- const target = sfc.__vccOpts || sfc;
14762
- for (const [key, val] of props2) {
14763
- target[key] = val;
14764
- }
14765
- return target;
14766
- };
14767
14769
  const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-0ca0d3de"]]);
14768
14770
  const _hoisted_1$_ = { class: "tool-bar" };
14769
14771
  const _hoisted_2$R = { class: "modal-title" };
@@ -14937,7 +14939,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
14937
14939
  };
14938
14940
  }
14939
14941
  });
14940
- const ModalBglForm = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-93c9eab1"]]);
14942
+ const ModalBglForm = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-bd719890"]]);
14941
14943
  const _hoisted_1$Y = { class: "dropdown-title" };
14942
14944
  const _hoisted_2$P = { class: "dropdown-body" };
14943
14945
  const _hoisted_3$I = ["onClick"];
@@ -14990,7 +14992,7 @@ const _hoisted_3$H = {
14990
14992
  class: "bagel-input search-wrap"
14991
14993
  };
14992
14994
  const _hoisted_4$s = ["placeholder"];
14993
- const _hoisted_5$n = { class: "list-content grid auto-flow-rows align-items-start" };
14995
+ const _hoisted_5$m = { class: "list-content grid auto-flow-rows align-items-start" };
14994
14996
  const _sfc_main$R = /* @__PURE__ */ defineComponent({
14995
14997
  __name: "ListView",
14996
14998
  props: {
@@ -15028,7 +15030,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
15028
15030
  onClick: _cache[2] || (_cache[2] = ($event) => emit2("add"))
15029
15031
  })) : createCommentVNode("", true)
15030
15032
  ]),
15031
- createElementVNode("div", _hoisted_5$n, [
15033
+ createElementVNode("div", _hoisted_5$m, [
15032
15034
  renderSlot(_ctx.$slots, "default")
15033
15035
  ])
15034
15036
  ]);
@@ -15131,7 +15133,7 @@ const _hoisted_1$U = { class: "comments-wrap" };
15131
15133
  const _hoisted_2$L = { class: "comment-list" };
15132
15134
  const _hoisted_3$F = { class: "comment-top" };
15133
15135
  const _hoisted_4$r = { class: "comment-owner" };
15134
- const _hoisted_5$m = { class: "comment-time" };
15136
+ const _hoisted_5$l = { class: "comment-time" };
15135
15137
  const _hoisted_6$h = { class: "comment-actions" };
15136
15138
  const _hoisted_7$c = ["innerHTML"];
15137
15139
  const _hoisted_8$6 = { class: "new-comment" };
@@ -15191,7 +15193,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
15191
15193
  }, [
15192
15194
  createElementVNode("div", _hoisted_3$F, [
15193
15195
  createElementVNode("div", _hoisted_4$r, toDisplayString(comment.sender.first_name) + " " + toDisplayString(comment.sender.last_name), 1),
15194
- createElementVNode("div", _hoisted_5$m, toDisplayString(comment.updated_at.split("T")[0]), 1),
15196
+ createElementVNode("div", _hoisted_5$l, toDisplayString(comment.updated_at.split("T")[0]), 1),
15195
15197
  createElementVNode("div", _hoisted_6$h, [
15196
15198
  createVNode(unref(_sfc_main$X), {
15197
15199
  size: 1,
@@ -15444,7 +15446,7 @@ const _hoisted_1$R = { class: "table-list-wrap h-100" };
15444
15446
  const _hoisted_2$I = { class: "infinite-wrapper" };
15445
15447
  const _hoisted_3$E = { class: "row first-row" };
15446
15448
  const _hoisted_4$q = ["onClick"];
15447
- const _hoisted_5$l = { class: "flex" };
15449
+ const _hoisted_5$k = { class: "flex" };
15448
15450
  const _hoisted_6$g = ["onClick"];
15449
15451
  const _hoisted_7$b = { key: 1 };
15450
15452
  const _sfc_main$K = /* @__PURE__ */ defineComponent({
@@ -15502,7 +15504,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
15502
15504
  key: field.id,
15503
15505
  onClick: ($event) => sort2(field.id)
15504
15506
  }, [
15505
- createElementVNode("div", _hoisted_5$l, [
15507
+ createElementVNode("div", _hoisted_5$k, [
15506
15508
  createTextVNode(toDisplayString((field == null ? void 0 : field.label) || (field == null ? void 0 : field.id)) + " ", 1),
15507
15509
  createElementVNode("div", {
15508
15510
  class: normalizeClass(["list-arrows", { sorted: unref(sortField) === field.id }])
@@ -15643,7 +15645,7 @@ const _hoisted_1$O = {
15643
15645
  const _hoisted_2$H = { class: "person-card-icon-wrap" };
15644
15646
  const _hoisted_3$D = { class: "person-card-icon" };
15645
15647
  const _hoisted_4$p = { class: "person-card-name txt20" };
15646
- const _hoisted_5$k = { class: "person-card-details-wrap" };
15648
+ const _hoisted_5$j = { class: "person-card-details-wrap" };
15647
15649
  const _hoisted_6$f = {
15648
15650
  key: 0,
15649
15651
  class: "person-card-details"
@@ -15709,7 +15711,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
15709
15711
  createElementVNode("p", _hoisted_3$D, toDisplayString(unref(initials)(_ctx.person.first_name, _ctx.person.last_name)), 1),
15710
15712
  createElementVNode("p", _hoisted_4$p, toDisplayString(_ctx.person.first_name) + " " + toDisplayString(_ctx.person.last_name), 1)
15711
15713
  ]),
15712
- createElementVNode("div", _hoisted_5$k, [
15714
+ createElementVNode("div", _hoisted_5$j, [
15713
15715
  ((_a2 = _ctx.person.phone) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_6$f, [
15714
15716
  createVNode(unref(_sfc_main$X), { icon: "phone" }),
15715
15717
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.person.phone, (phone) => {
@@ -15749,7 +15751,7 @@ const _hoisted_3$C = {
15749
15751
  class: "data-row"
15750
15752
  };
15751
15753
  const _hoisted_4$o = { class: "key" };
15752
- const _hoisted_5$j = { key: 1 };
15754
+ const _hoisted_5$i = { key: 1 };
15753
15755
  const _hoisted_6$e = { class: "key" };
15754
15756
  const _hoisted_7$9 = { class: "vlue" };
15755
15757
  const _sfc_main$F = /* @__PURE__ */ defineComponent({
@@ -15801,7 +15803,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
15801
15803
  ])) : createCommentVNode("", true)
15802
15804
  ], 64);
15803
15805
  }), 128)),
15804
- !((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_5$j, [
15806
+ !((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_5$i, [
15805
15807
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(Object.entries(itemData.value).filter(
15806
15808
  ([key]) => !keysToIgnore.includes(key)
15807
15809
  ), ([key, value]) => {
@@ -15831,7 +15833,7 @@ const _hoisted_4$n = {
15831
15833
  key: 1,
15832
15834
  class: "bar-wrap"
15833
15835
  };
15834
- const _hoisted_5$i = { class: "bar-txt" };
15836
+ const _hoisted_5$h = { class: "bar-txt" };
15835
15837
  const _hoisted_6$d = { class: "factor" };
15836
15838
  const _hoisted_7$8 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "red-bar" }, null, -1));
15837
15839
  const _hoisted_8$4 = { class: "bar-lines" };
@@ -15923,7 +15925,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
15923
15925
  class: "bar compare",
15924
15926
  style: normalizeStyle({ height: loaded.value ? `${percent(item.compareValue)}%` : "0" })
15925
15927
  }, null, 4)) : createCommentVNode("", true),
15926
- createElementVNode("p", _hoisted_5$i, toDisplayString(item.title), 1)
15928
+ createElementVNode("p", _hoisted_5$h, toDisplayString(item.title), 1)
15927
15929
  ]))
15928
15930
  ]);
15929
15931
  }), 128)),
@@ -17245,7 +17247,7 @@ const _hoisted_3$A = {
17245
17247
  class: "bglform-contact-confirm"
17246
17248
  };
17247
17249
  const _hoisted_4$m = { class: "txt14" };
17248
- const _hoisted_5$h = ["onUpdate:modelValue", "placeholder"];
17250
+ const _hoisted_5$g = ["onUpdate:modelValue", "placeholder"];
17249
17251
  const _hoisted_6$c = ["onUpdate:modelValue", "placeholder"];
17250
17252
  const _hoisted_7$7 = ["onUpdate:modelValue", "placeholder"];
17251
17253
  const _sfc_main$C = /* @__PURE__ */ defineComponent({
@@ -17346,7 +17348,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
17346
17348
  "onUpdate:modelValue": ($event) => contact.label = $event,
17347
17349
  type: "text",
17348
17350
  placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
17349
- }, null, 8, _hoisted_5$h), [
17351
+ }, null, 8, _hoisted_5$g), [
17350
17352
  [vModelText, contact.label]
17351
17353
  ]),
17352
17354
  ((_c = _ctx.context) == null ? void 0 : _c.id) === "email" ? withDirectives((openBlock(), createElementBlock("input", {
@@ -17401,7 +17403,7 @@ const _hoisted_3$z = {
17401
17403
  class: "bglform-contact-confirm"
17402
17404
  };
17403
17405
  const _hoisted_4$l = { class: "txt14" };
17404
- const _hoisted_5$g = ["onUpdate:modelValue", "placeholder"];
17406
+ const _hoisted_5$f = ["onUpdate:modelValue", "placeholder"];
17405
17407
  const _hoisted_6$b = { class: "bglform-contact-address" };
17406
17408
  const _hoisted_7$6 = ["onUpdate:modelValue", "placeholder"];
17407
17409
  const _hoisted_8$3 = { class: "bglform-contact-address-flex" };
@@ -17513,7 +17515,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
17513
17515
  "onUpdate:modelValue": ($event) => address.label = $event,
17514
17516
  type: "text",
17515
17517
  placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
17516
- }, null, 8, _hoisted_5$g), [
17518
+ }, null, 8, _hoisted_5$f), [
17517
17519
  [vModelText, address.label]
17518
17520
  ]),
17519
17521
  createElementVNode("div", _hoisted_6$b, [
@@ -17585,7 +17587,7 @@ const _hoisted_3$y = {
17585
17587
  class: "bglform-contact-confirm"
17586
17588
  };
17587
17589
  const _hoisted_4$k = { class: "txt14" };
17588
- const _hoisted_5$f = ["onUpdate:modelValue", "placeholder"];
17590
+ const _hoisted_5$e = ["onUpdate:modelValue", "placeholder"];
17589
17591
  const _hoisted_6$a = { class: "bglform-contact-address" };
17590
17592
  const _hoisted_7$5 = ["onUpdate:modelValue", "placeholder"];
17591
17593
  const _hoisted_8$2 = { class: "bglform-contact-address-flex" };
@@ -17696,7 +17698,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
17696
17698
  "onUpdate:modelValue": ($event) => bank_account.label = $event,
17697
17699
  type: "text",
17698
17700
  placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
17699
- }, null, 8, _hoisted_5$f), [
17701
+ }, null, 8, _hoisted_5$e), [
17700
17702
  [vModelText, bank_account.label]
17701
17703
  ]),
17702
17704
  createElementVNode("div", _hoisted_6$a, [
@@ -17842,7 +17844,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
17842
17844
  }
17843
17845
  });
17844
17846
  const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-a096417d"]]);
17845
- const _withScopeId$1 = (n) => (pushScopeId("data-v-d0543d4b"), n = n(), popScopeId(), n);
17847
+ const _withScopeId$1 = (n) => (pushScopeId("data-v-dee6bdf5"), n = n(), popScopeId(), n);
17846
17848
  const _hoisted_1$G = ["title"];
17847
17849
  const _hoisted_2$B = { class: "switch" };
17848
17850
  const _hoisted_3$x = ["id"];
@@ -17889,7 +17891,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
17889
17891
  };
17890
17892
  }
17891
17893
  });
17892
- const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-d0543d4b"]]);
17894
+ const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-dee6bdf5"]]);
17893
17895
  const _hoisted_1$F = { class: "files-wrapper flex" };
17894
17896
  const _hoisted_2$A = {
17895
17897
  key: 0,
@@ -17897,7 +17899,7 @@ const _hoisted_2$A = {
17897
17899
  };
17898
17900
  const _hoisted_3$w = { class: "uploading-wrap" };
17899
17901
  const _hoisted_4$i = { class: "load-file-bar" };
17900
- const _hoisted_5$e = ["src", "alt"];
17902
+ const _hoisted_5$d = ["src", "alt"];
17901
17903
  const _hoisted_6$9 = { class: "flex" };
17902
17904
  const _hoisted_7$4 = {
17903
17905
  key: 0,
@@ -18081,7 +18083,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
18081
18083
  src: item.dataUrl,
18082
18084
  alt: item.name,
18083
18085
  style: { "margin-inline-end": "10px" }
18084
- }, null, 8, _hoisted_5$e)) : createCommentVNode("", true),
18086
+ }, null, 8, _hoisted_5$d)) : createCommentVNode("", true),
18085
18087
  createElementVNode("p", null, toDisplayString(item.name), 1),
18086
18088
  createElementVNode("div", _hoisted_6$9, [
18087
18089
  createElementVNode("div", {
@@ -18126,7 +18128,7 @@ const _hoisted_1$E = {
18126
18128
  const _hoisted_2$z = { class: "person-card-icon-wrap" };
18127
18129
  const _hoisted_3$v = { class: "person-card-icon" };
18128
18130
  const _hoisted_4$h = { class: "person-card-name txt20" };
18129
- const _hoisted_5$d = { class: "person-card-details-wrap" };
18131
+ const _hoisted_5$c = { class: "person-card-details-wrap" };
18130
18132
  const _hoisted_6$8 = {
18131
18133
  key: 0,
18132
18134
  class: "person-card-details"
@@ -18194,7 +18196,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
18194
18196
  createElementVNode("p", _hoisted_3$v, toDisplayString(unref(initials)(person.value.first_name, person.value.last_name)), 1),
18195
18197
  createElementVNode("p", _hoisted_4$h, toDisplayString(person.value.first_name) + " " + toDisplayString(person.value.last_name), 1)
18196
18198
  ]),
18197
- createElementVNode("div", _hoisted_5$d, [
18199
+ createElementVNode("div", _hoisted_5$c, [
18198
18200
  ((_a2 = person.value.phone) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
18199
18201
  createVNode(unref(_sfc_main$X), { icon: "phone" }),
18200
18202
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(person.value.phone, (phone) => {
@@ -18381,7 +18383,7 @@ const _hoisted_1$C = { class: "bagel-input" };
18381
18383
  const _hoisted_2$y = ["for"];
18382
18384
  const _hoisted_3$u = ["checked"];
18383
18385
  const _hoisted_4$g = ["name", "type", "value"];
18384
- const _hoisted_5$c = ["name", "type", "value"];
18386
+ const _hoisted_5$b = ["name", "type", "value"];
18385
18387
  const _hoisted_6$7 = ["name", "type", "value"];
18386
18388
  const _sfc_main$s = /* @__PURE__ */ defineComponent({
18387
18389
  __name: "PlainInputField",
@@ -18447,7 +18449,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
18447
18449
  value: _ctx.modelValue,
18448
18450
  class: "ctl",
18449
18451
  onInput: handleInput
18450
- }, null, 40, _hoisted_5$c)) : _ctx.type === "textarea" ? (openBlock(), createElementBlock("textarea", {
18452
+ }, null, 40, _hoisted_5$b)) : _ctx.type === "textarea" ? (openBlock(), createElementBlock("textarea", {
18451
18453
  key: 3,
18452
18454
  ref_key: "el",
18453
18455
  ref: el2,
@@ -18477,22 +18479,23 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
18477
18479
  setup(__props, { emit: __emit }) {
18478
18480
  const { showModal } = useModal();
18479
18481
  const props2 = __props;
18482
+ let data2 = ref({});
18483
+ watch(() => props2.modelValue, (val) => {
18484
+ data2.value = val;
18485
+ }, { immediate: true, deep: true });
18486
+ const updateModelValue = (val, fieldID) => {
18487
+ if (!fieldID)
18488
+ return;
18489
+ data2.value[fieldID] = val;
18490
+ emits("update:modelValue", data2.value);
18491
+ };
18480
18492
  const emits = __emit;
18481
- const handleEmit = (val) => emits("update:modelValue", val);
18482
- let data2 = ref({
18483
- ...props2.modelValue
18484
- });
18485
18493
  const runSubmit = () => {
18486
18494
  emits("submit", data2.value);
18487
18495
  clearForm();
18488
18496
  };
18489
18497
  const clearForm = () => data2.value = {};
18490
18498
  const i18nT = (val) => val;
18491
- watch(
18492
- () => data2.value,
18493
- () => handleEmit,
18494
- { immediate: true }
18495
- );
18496
18499
  const runDelete = () => {
18497
18500
  showModal(
18498
18501
  {
@@ -18523,7 +18526,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
18523
18526
  key: field.id || `${i3}p`,
18524
18527
  field,
18525
18528
  modelValue: unref(data2),
18526
- "onUpdate:modelValue": ($event) => field.id ? unref(data2)[field.id] = $event : ""
18529
+ "onUpdate:modelValue": ($event) => updateModelValue($event, (field == null ? void 0 : field.id) || "")
18527
18530
  }, null, 8, ["field", "modelValue", "onUpdate:modelValue"]);
18528
18531
  }), 128)),
18529
18532
  ((_a2 = _ctx.modelValue) == null ? void 0 : _a2.id) && _ctx.onDelete ? (openBlock(), createBlock(unref(Btn), {
@@ -18585,17 +18588,25 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
18585
18588
  };
18586
18589
  }
18587
18590
  });
18588
- const _withScopeId = (n) => (pushScopeId("data-v-0dacba34"), n = n(), popScopeId(), n);
18591
+ const _withScopeId = (n) => (pushScopeId("data-v-4594626f"), n = n(), popScopeId(), n);
18589
18592
  const _hoisted_1$A = ["title"];
18590
- const _hoisted_2$x = ["for"];
18591
- const _hoisted_3$t = { class: "switch" };
18592
- const _hoisted_4$f = ["id"];
18593
- const _hoisted_5$b = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
18593
+ const _hoisted_2$x = ["id"];
18594
+ const _hoisted_3$t = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
18595
+ xmlns: "http://www.w3.org/2000/svg",
18596
+ height: "24",
18597
+ viewBox: "0 -960 960 960",
18598
+ width: "24"
18599
+ }, [
18600
+ /* @__PURE__ */ createElementVNode("path", { d: "M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z" })
18601
+ ], -1));
18602
+ const _hoisted_4$f = ["for"];
18594
18603
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
18595
18604
  __name: "CheckInput",
18596
18605
  props: {
18597
- field: {},
18598
- modelValue: {},
18606
+ label: {},
18607
+ id: { default: Math.random().toString(36).substring(7) },
18608
+ title: {},
18609
+ modelValue: { type: Boolean },
18599
18610
  editMode: { type: Boolean, default: true },
18600
18611
  small: { type: Boolean }
18601
18612
  },
@@ -18603,8 +18614,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
18603
18614
  setup(__props, { emit: __emit }) {
18604
18615
  const emits = __emit;
18605
18616
  const props2 = __props;
18606
- const inputVal = ref(false);
18607
- watch(inputVal, (newVal) => {
18617
+ let inputVal = ref(false);
18618
+ watch(inputVal.value, (newVal) => {
18608
18619
  if (newVal === void 0)
18609
18620
  return;
18610
18621
  emits("update:modelValue", newVal);
@@ -18614,33 +18625,29 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
18614
18625
  (newVal) => {
18615
18626
  if (inputVal.value !== newVal)
18616
18627
  inputVal.value = newVal;
18617
- }
18628
+ },
18629
+ { immediate: true }
18618
18630
  );
18619
- onMounted(() => inputVal.value = !!props2.modelValue);
18620
18631
  return (_ctx, _cache) => {
18621
18632
  return openBlock(), createElementBlock("div", {
18622
- class: normalizeClass(["bagel-input checkbox", { small: _ctx.small, "no-edit": !_ctx.editMode }]),
18623
- title: _ctx.field.description
18633
+ class: normalizeClass(["bagel-input bgl-checkbox", { small: _ctx.small, "no-edit": !_ctx.editMode }]),
18634
+ title: _ctx.title
18624
18635
  }, [
18625
- createElementVNode("label", {
18626
- for: _ctx.field.id
18627
- }, toDisplayString(_ctx.field.label), 9, _hoisted_2$x),
18628
- createElementVNode("label", _hoisted_3$t, [
18629
- withDirectives(createElementVNode("input", {
18630
- id: _ctx.field.id,
18631
- type: "checkbox",
18632
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputVal.value = $event),
18633
- class: normalizeClass({ "no-edit": !_ctx.editMode })
18634
- }, null, 10, _hoisted_4$f), [
18635
- [vModelCheckbox, inputVal.value]
18636
- ]),
18637
- _hoisted_5$b
18638
- ])
18636
+ withDirectives(createElementVNode("input", {
18637
+ id: _ctx.id,
18638
+ type: "checkbox",
18639
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
18640
+ class: normalizeClass({ "no-edit": !_ctx.editMode })
18641
+ }, null, 10, _hoisted_2$x), [
18642
+ [vModelCheckbox, unref(inputVal)]
18643
+ ]),
18644
+ _hoisted_3$t,
18645
+ createElementVNode("label", { for: _ctx.id }, toDisplayString(_ctx.label), 9, _hoisted_4$f)
18639
18646
  ], 10, _hoisted_1$A);
18640
18647
  };
18641
18648
  }
18642
18649
  });
18643
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-0dacba34"]]);
18650
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-4594626f"]]);
18644
18651
  const _hoisted_1$z = ["title"];
18645
18652
  const _hoisted_2$w = { key: 0 };
18646
18653
  const _hoisted_3$s = { class: "flex gap-3" };
@@ -32193,7 +32200,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
32193
32200
  files.value.push(file);
32194
32201
  } else
32195
32202
  files.value.splice(0, 1, file);
32196
- console.log(files.value);
32197
32203
  fileQueue.value.splice(i3, 1);
32198
32204
  });
32199
32205
  };
@@ -32216,7 +32222,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
32216
32222
  else
32217
32223
  isDragOver.value = false;
32218
32224
  };
32219
- const dragenter = (e3) => {
32225
+ const dragover = (e3) => {
32220
32226
  preventDefault(e3);
32221
32227
  if (e3.dataTransfer)
32222
32228
  isDragOver.value = true;
@@ -32235,7 +32241,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
32235
32241
  createElementVNode("label", null, toDisplayString(_ctx.label), 1),
32236
32242
  createElementVNode("div", {
32237
32243
  onClick: browse,
32238
- onDragover: dragenter,
32244
+ onDragover: dragover,
32239
32245
  onDrop: drop3,
32240
32246
  onDragleave: dragleave,
32241
32247
  class: normalizeClass(["fileUploadWrap", { fileDropZone: !files.value.length, dragover: unref(isDragOver) }])
@@ -32264,7 +32270,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
32264
32270
  };
32265
32271
  }
32266
32272
  });
32267
- const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-352399c0"]]);
32273
+ const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-c44f8c0d"]]);
32268
32274
  function _isPlaceholder(a3) {
32269
32275
  return a3 != null && typeof a3 === "object" && a3["@@functional/placeholder"] === true;
32270
32276
  }
@@ -38799,7 +38805,7 @@ export {
38799
38805
  ModalForm,
38800
38806
  ModalPlugin,
38801
38807
  MsgTemplate,
38802
- _sfc_main$W as NavBar,
38808
+ NavBar,
38803
38809
  _sfc_main$N as PageTitle,
38804
38810
  Password,
38805
38811
  PasswordInput,