@bagelink/vue 0.0.709 → 0.0.712

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,7 +1,4 @@
1
- declare function __VLS_template(): {
2
- default?(_: {}): any;
3
- };
4
- declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOption<{
1
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
5
2
  title: string;
6
3
  message: string;
7
4
  resolve: (value: boolean) => void;
@@ -14,13 +11,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOp
14
11
  }>>> & {
15
12
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
16
13
  }, {}, {}>;
17
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
18
14
  export default _default;
19
- type __VLS_WithTemplateSlots<T, S> = T & {
20
- new (): {
21
- $slots: S;
22
- };
23
- };
24
15
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
16
  type __VLS_TypePropsToOption<T> = {
26
17
  [K in keyof T]-?: {} extends Pick<T, K> ? {
@@ -1 +1 @@
1
- {"version":3,"file":"ModalConfirm.vue.d.ts","sourceRoot":"","sources":["../../src/components/ModalConfirm.vue"],"names":[],"mappings":"AAqDA,iBAAS,cAAc;qBAgGM,GAAG;EAkB/B;AACD,QAAA,MAAM,eAAe;WAtIb,MAAM;aACJ,MAAM;aACN,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;;;;WAF1B,MAAM;aACJ,MAAM;aACN,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;;;UA2IhC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CA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4,6 +4,11 @@ declare function validateForm(): boolean;
4
4
  declare function runSubmit(): void;
5
5
  declare function deleteItem(): void;
6
6
  declare function __VLS_template(): {
7
+ submit?(_: {
8
+ submit: typeof runSubmit;
9
+ isDirty: import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<false> | import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<true>;
10
+ validateForm: typeof validateForm;
11
+ }): any;
7
12
  submit?(_: {
8
13
  submit: typeof runSubmit;
9
14
  isDirty: import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<false> | import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<true>;
@@ -1 +1 @@
1
- {"version":3,"file":"BglForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/BglForm.vue"],"names":[],"mappings":"AAAA,OAoIO,EAAY,KAAK,gBAAgB,EAAiC,MAAM,eAAe,CAAA;AAG9F,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAA;AA2CjE,iBAAS,YAAY,YAMpB;AAeD,iBAAS,SAAS,SAMjB;AAID,iBAAS,UAAU,SAgBlB;AA8BD,iBAAS,cAAc;;;;;QAqEM,GAAG;qBACF,GAAG;mBACL,GAAG;EAwB9B;AACD,QAAA,MAAM,eAAe;YAnNX,MAAM;SACT,MAAM;YACH,gBAAgB,CAAC,GAAG,CAAC;iBAChB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;eACrB,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI;eACpB,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI;aACrB,UAAU;;;;;;;;;;;;;;YANX,MAAM;SACT,MAAM;YACH,gBAAgB,CAAC,GAAG,CAAC;iBAChB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;eACrB,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI;eACpB,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI;aACrB,UAAU;;;;;;;;gBAHN,MAAM,CAAC,M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AAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
package/dist/index.cjs CHANGED
@@ -5470,7 +5470,7 @@ const ModalPlugin = {
5470
5470
  modalStack.value.splice(index2, 1);
5471
5471
  };
5472
5472
  const modalConfirm = async (options) => new Promise((resolve) => {
5473
- if (typeof options === "string") options = { title: options, message: "" };
5473
+ if (typeof options === "string") options = { title: "", message: options };
5474
5474
  modalStack.value.push({
5475
5475
  modalOptions: { ...options, resolve },
5476
5476
  modalType: "confirm",
@@ -5547,8 +5547,8 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
5547
5547
  };
5548
5548
  }
5549
5549
  });
5550
- const _hoisted_1$L = { class: "full-nav" };
5551
- const _hoisted_2$A = { class: "nav-scroll" };
5550
+ const _hoisted_1$M = { class: "full-nav" };
5551
+ const _hoisted_2$B = { class: "nav-scroll" };
5552
5552
  const _hoisted_3$o = { class: "nav-links-wrapper" };
5553
5553
  const _hoisted_4$g = { class: "tooltip" };
5554
5554
  const _hoisted_5$f = { class: "bot-buttons-wrapper" };
@@ -5583,8 +5583,8 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
5583
5583
  class: "top-arrow"
5584
5584
  })
5585
5585
  ], 32),
5586
- vue.createElementVNode("div", _hoisted_1$L, [
5587
- vue.createElementVNode("div", _hoisted_2$A, [
5586
+ vue.createElementVNode("div", _hoisted_1$M, [
5587
+ vue.createElementVNode("div", _hoisted_2$B, [
5588
5588
  vue.createElementVNode("div", _hoisted_3$o, [
5589
5589
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.links, (link) => {
5590
5590
  return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(link.to ? "router-link" : "div"), {
@@ -5642,11 +5642,11 @@ const _export_sfc = (sfc, props2) => {
5642
5642
  return target;
5643
5643
  };
5644
5644
  const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-776cab4a"]]);
5645
- const _hoisted_1$K = {
5645
+ const _hoisted_1$L = {
5646
5646
  key: 0,
5647
5647
  class: "loading"
5648
5648
  };
5649
- const _hoisted_2$z = {
5649
+ const _hoisted_2$A = {
5650
5650
  key: 1,
5651
5651
  class: "bgl_btn-flex"
5652
5652
  };
@@ -5744,7 +5744,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
5744
5744
  onClick: vue.withModifiers(_ctx.onClick, ["stop"])
5745
5745
  }, {
5746
5746
  default: vue.withCtx(() => [
5747
- _ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$K)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$z, [
5747
+ _ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$L)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$A, [
5748
5748
  _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$Q), {
5749
5749
  key: 0,
5750
5750
  icon: _ctx.icon
@@ -5765,11 +5765,11 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
5765
5765
  }
5766
5766
  });
5767
5767
  const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-895cf824"]]);
5768
- const _hoisted_1$J = {
5768
+ const _hoisted_1$K = {
5769
5769
  key: 0,
5770
5770
  class: "tool-bar"
5771
5771
  };
5772
- const _hoisted_2$y = {
5772
+ const _hoisted_2$z = {
5773
5773
  key: 1,
5774
5774
  class: "sticky bg-white z-index-999 -mt-1 -ms-1 px-025 h-30px pt-025 modal-no-title"
5775
5775
  };
@@ -5842,7 +5842,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
5842
5842
  default: vue.withCtx(() => {
5843
5843
  var _a2;
5844
5844
  return [
5845
- vue.unref(slots).toolbar || _ctx.title ? (vue.openBlock(), vue.createElementBlock("header", _hoisted_1$J, [
5845
+ vue.unref(slots).toolbar || _ctx.title ? (vue.openBlock(), vue.createElementBlock("header", _hoisted_1$K, [
5846
5846
  vue.renderSlot(_ctx.$slots, "toolbar"),
5847
5847
  vue.createVNode(vue.unref(Btn), {
5848
5848
  style: vue.normalizeStyle({ float: _ctx.side ? "left" : "right" }),
@@ -5856,7 +5856,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
5856
5856
  tag: "h3",
5857
5857
  label: _ctx.title
5858
5858
  }, null, 8, ["label"])) : vue.createCommentVNode("", true)
5859
- ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$y, [
5859
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$z, [
5860
5860
  vue.createVNode(vue.unref(Btn), {
5861
5861
  class: "color-black position-start",
5862
5862
  icon: "close",
@@ -5999,8 +5999,8 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
5999
5999
  }
6000
6000
  });
6001
6001
  const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-083a1b2d"]]);
6002
- const _hoisted_1$I = { class: "accordion-item" };
6003
- const _hoisted_2$x = ["aria-expanded", "aria-controls"];
6002
+ const _hoisted_1$J = { class: "accordion-item" };
6003
+ const _hoisted_2$y = ["aria-expanded", "aria-controls"];
6004
6004
  const _hoisted_3$m = { class: "accordion-label" };
6005
6005
  const _hoisted_4$f = ["id", "aria-hidden"];
6006
6006
  const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
@@ -6040,7 +6040,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
6040
6040
  else if (accordionState.openItem === id) accordionState.openItem = null;
6041
6041
  }
6042
6042
  return (_ctx, _cache) => {
6043
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [
6043
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$J, [
6044
6044
  vue.createElementVNode("button", {
6045
6045
  "aria-expanded": vue.unref(isOpen) ? "true" : "false",
6046
6046
  class: "accordion-head",
@@ -6055,7 +6055,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
6055
6055
  }, [
6056
6056
  vue.createVNode(vue.unref(_sfc_main$Q), { icon: "expand_more" })
6057
6057
  ], 2)
6058
- ], 8, _hoisted_2$x),
6058
+ ], 8, _hoisted_2$y),
6059
6059
  vue.createVNode(vue.Transition, { name: "expand" }, {
6060
6060
  default: vue.withCtx(() => [
6061
6061
  vue.unref(isOpen) ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -6075,12 +6075,12 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
6075
6075
  });
6076
6076
  const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-f87b579d"]]);
6077
6077
  const _sfc_main$K = {};
6078
- const _hoisted_1$H = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0 m_pb-0" };
6079
- const _hoisted_2$w = { class: "p-1" };
6078
+ const _hoisted_1$I = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0 m_pb-0" };
6079
+ const _hoisted_2$x = { class: "p-1" };
6080
6080
  const _hoisted_3$l = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
6081
6081
  function _sfc_render$2(_ctx, _cache) {
6082
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
6083
- vue.createElementVNode("div", _hoisted_2$w, [
6082
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [
6083
+ vue.createElementVNode("div", _hoisted_2$x, [
6084
6084
  vue.renderSlot(_ctx.$slots, "header")
6085
6085
  ]),
6086
6086
  vue.createElementVNode("div", _hoisted_3$l, [
@@ -6089,8 +6089,8 @@ function _sfc_render$2(_ctx, _cache) {
6089
6089
  ]);
6090
6090
  }
6091
6091
  const ListView = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$2]]);
6092
- const _hoisted_1$G = { class: "no-margin ellipsis line-height-14 pb-025" };
6093
- const _hoisted_2$v = { class: "txt12 no-margin txt-gray ellipsis" };
6092
+ const _hoisted_1$H = { class: "no-margin ellipsis line-height-14 pb-025" };
6093
+ const _hoisted_2$w = { class: "txt12 no-margin txt-gray ellipsis" };
6094
6094
  const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
6095
6095
  __name: "ListItem",
6096
6096
  props: {
@@ -6124,11 +6124,11 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
6124
6124
  icon: _ctx.icon
6125
6125
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
6126
6126
  vue.createElementVNode("div", null, [
6127
- vue.createElementVNode("p", _hoisted_1$G, [
6127
+ vue.createElementVNode("p", _hoisted_1$H, [
6128
6128
  vue.createTextVNode(vue.toDisplayString(_ctx.title) + " ", 1),
6129
6129
  vue.renderSlot(_ctx.$slots, "default")
6130
6130
  ]),
6131
- vue.createElementVNode("p", _hoisted_2$v, [
6131
+ vue.createElementVNode("p", _hoisted_2$w, [
6132
6132
  vue.createTextVNode(vue.toDisplayString(_ctx.subtitle) + " ", 1),
6133
6133
  vue.renderSlot(_ctx.$slots, "subtitle")
6134
6134
  ])
@@ -6139,8 +6139,8 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
6139
6139
  };
6140
6140
  }
6141
6141
  });
6142
- const _hoisted_1$F = { class: "page-top" };
6143
- const _hoisted_2$u = { class: "top-title m-0" };
6142
+ const _hoisted_1$G = { class: "page-top" };
6143
+ const _hoisted_2$v = { class: "top-title m-0" };
6144
6144
  const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
6145
6145
  __name: "PageTitle",
6146
6146
  props: {
@@ -6151,8 +6151,8 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
6151
6151
  },
6152
6152
  setup(__props) {
6153
6153
  return (_ctx, _cache) => {
6154
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
6155
- vue.createElementVNode("h1", _hoisted_2$u, [
6154
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$G, [
6155
+ vue.createElementVNode("h1", _hoisted_2$v, [
6156
6156
  vue.renderSlot(_ctx.$slots, "default"),
6157
6157
  vue.createTextVNode(" " + vue.toDisplayString(__props.value), 1)
6158
6158
  ])
@@ -6475,13 +6475,13 @@ function useVerticalVirtualList(options, list) {
6475
6475
  };
6476
6476
  }
6477
6477
  const _withScopeId$3 = (n2) => (vue.pushScopeId("data-v-5441d9cd"), n2 = n2(), vue.popScopeId(), n2);
6478
- const _hoisted_1$E = {
6478
+ const _hoisted_1$F = {
6479
6479
  key: 0,
6480
6480
  class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
6481
6481
  };
6482
- const _hoisted_2$t = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1));
6482
+ const _hoisted_2$u = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1));
6483
6483
  const _hoisted_3$k = [
6484
- _hoisted_2$t
6484
+ _hoisted_2$u
6485
6485
  ];
6486
6486
  const _hoisted_4$e = { class: "infinite-wrapper" };
6487
6487
  const _hoisted_5$e = { class: "row first-row" };
@@ -6629,7 +6629,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
6629
6629
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: "table-list-wrap h-100" }, vue.unref(containerProps), {
6630
6630
  class: { "loading-table": loading.value }
6631
6631
  }), [
6632
- loading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, _hoisted_3$k)) : (vue.openBlock(), vue.createElementBlock("div", vue.normalizeProps(vue.mergeProps({ key: 1 }, vue.unref(wrapperProps))), [
6632
+ loading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, _hoisted_3$k)) : (vue.openBlock(), vue.createElementBlock("div", vue.normalizeProps(vue.mergeProps({ key: 1 }, vue.unref(wrapperProps))), [
6633
6633
  vue.createElementVNode("table", _hoisted_4$e, [
6634
6634
  vue.createElementVNode("thead", _hoisted_5$e, [
6635
6635
  vue.unref(isSelectable) ? (vue.openBlock(), vue.createElementBlock("th", _hoisted_6$9, [
@@ -6713,9 +6713,9 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
6713
6713
  });
6714
6714
  const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-5441d9cd"]]);
6715
6715
  const _sfc_main$G = {};
6716
- const _hoisted_1$D = { class: "flex space-between" };
6716
+ const _hoisted_1$E = { class: "flex space-between" };
6717
6717
  function _sfc_render$1(_ctx, _cache) {
6718
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$D, [
6718
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [
6719
6719
  vue.renderSlot(_ctx.$slots, "default")
6720
6720
  ]);
6721
6721
  }
@@ -6743,11 +6743,11 @@ function _sfc_render(_ctx, _cache) {
6743
6743
  });
6744
6744
  }
6745
6745
  const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render]]);
6746
- const _hoisted_1$C = {
6746
+ const _hoisted_1$D = {
6747
6747
  key: 0,
6748
6748
  class: "data"
6749
6749
  };
6750
- const _hoisted_2$s = {
6750
+ const _hoisted_2$t = {
6751
6751
  key: 0,
6752
6752
  class: "data-row m_py-05"
6753
6753
  };
@@ -6800,7 +6800,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
6800
6800
  const computedSchema = vue.computed(() => getFallbackSchema([itemData.value], props2.showFields));
6801
6801
  return (_ctx, _cache) => {
6802
6802
  var _a2;
6803
- return __props.data ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C, [
6803
+ return __props.data ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$D, [
6804
6804
  _ctx.title ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$B), {
6805
6805
  key: 0,
6806
6806
  label: _ctx.title
@@ -6809,7 +6809,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
6809
6809
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
6810
6810
  key: field.id
6811
6811
  }, [
6812
- vue.unref(iffer)(field, itemData.value) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$s, [
6812
+ vue.unref(iffer)(field, itemData.value) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$t, [
6813
6813
  vue.createElementVNode("div", _hoisted_3$j, [
6814
6814
  vue.createElementVNode("p", _hoisted_4$d, vue.toDisplayString((field == null ? void 0 : field.label) || vue.unref(keyToLabel)(field.id)), 1)
6815
6815
  ]),
@@ -6843,7 +6843,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
6843
6843
  }
6844
6844
  });
6845
6845
  const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-4d174f13"]]);
6846
- const _hoisted_1$B = {
6846
+ const _hoisted_1$C = {
6847
6847
  key: 0,
6848
6848
  class: "card_label"
6849
6849
  };
@@ -6875,7 +6875,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
6875
6875
  }])
6876
6876
  }, {
6877
6877
  default: vue.withCtx(() => [
6878
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$B, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
6878
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$C, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
6879
6879
  vue.renderSlot(_ctx.$slots, "default")
6880
6880
  ]),
6881
6881
  _: 3
@@ -6883,7 +6883,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
6883
6883
  };
6884
6884
  }
6885
6885
  });
6886
- const _hoisted_1$A = ["src", "alt"];
6886
+ const _hoisted_1$B = ["src", "alt"];
6887
6887
  const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
6888
6888
  __name: "Avatar",
6889
6889
  props: {
@@ -6902,7 +6902,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
6902
6902
  key: 0,
6903
6903
  src: _ctx.src,
6904
6904
  alt: _ctx.name
6905
- }, null, 8, _hoisted_1$A)) : (vue.openBlock(), vue.createElementBlock("p", {
6905
+ }, null, 8, _hoisted_1$B)) : (vue.openBlock(), vue.createElementBlock("p", {
6906
6906
  key: 1,
6907
6907
  style: vue.normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
6908
6908
  }, vue.toDisplayString(_ctx.fallback || vue.unref(initials)(_ctx.name || "")), 5))
@@ -6953,8 +6953,8 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
6953
6953
  };
6954
6954
  }
6955
6955
  });
6956
- const _hoisted_1$z = ["dismissable"];
6957
- const _hoisted_2$r = { class: "m-0" };
6956
+ const _hoisted_1$A = ["dismissable"];
6957
+ const _hoisted_2$s = { class: "m-0" };
6958
6958
  const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
6959
6959
  __name: "Alert",
6960
6960
  props: {
@@ -6983,7 +6983,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
6983
6983
  size: 2,
6984
6984
  color: color2[_ctx.type]
6985
6985
  }, null, 8, ["icon", "color"])) : vue.createCommentVNode("", true),
6986
- vue.createElementVNode("p", _hoisted_2$r, vue.toDisplayString(_ctx.message), 1),
6986
+ vue.createElementVNode("p", _hoisted_2$s, vue.toDisplayString(_ctx.message), 1),
6987
6987
  vue.createVNode(Btn, {
6988
6988
  flat: "",
6989
6989
  thin: "",
@@ -6991,7 +6991,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
6991
6991
  icon: "close",
6992
6992
  onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
6993
6993
  })
6994
- ], 10, _hoisted_1$z)) : vue.createCommentVNode("", true);
6994
+ ], 10, _hoisted_1$A)) : vue.createCommentVNode("", true);
6995
6995
  };
6996
6996
  }
6997
6997
  });
@@ -7028,8 +7028,8 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
7028
7028
  }
7029
7029
  });
7030
7030
  const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-532b36ae"]]);
7031
- const _hoisted_1$y = ["src"];
7032
- const _hoisted_2$q = ["src", "autoplay", "muted", "loop", "controls"];
7031
+ const _hoisted_1$z = ["src"];
7032
+ const _hoisted_2$r = ["src", "autoplay", "muted", "loop", "controls"];
7033
7033
  const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
7034
7034
  __name: "BglVideo",
7035
7035
  props: {
@@ -7082,7 +7082,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
7082
7082
  frameborder: "0",
7083
7083
  allowfullscreen: "",
7084
7084
  title: "Video"
7085
- }, null, 12, _hoisted_1$y)) : _ctx.src ? (vue.openBlock(), vue.createElementBlock("video", {
7085
+ }, null, 12, _hoisted_1$z)) : _ctx.src ? (vue.openBlock(), vue.createElementBlock("video", {
7086
7086
  key: 1,
7087
7087
  src: _ctx.src,
7088
7088
  autoplay: _ctx.autoplay,
@@ -7091,17 +7091,17 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
7091
7091
  style: vue.normalizeStyle({ aspectRatio: aspectRatio.value }),
7092
7092
  controls: _ctx.controls,
7093
7093
  playsinline: ""
7094
- }, null, 12, _hoisted_2$q)) : vue.createCommentVNode("", true)
7094
+ }, null, 12, _hoisted_2$r)) : vue.createCommentVNode("", true)
7095
7095
  ], 2);
7096
7096
  };
7097
7097
  }
7098
7098
  });
7099
7099
  const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-862e1f20"]]);
7100
- const _hoisted_1$x = {
7100
+ const _hoisted_1$y = {
7101
7101
  key: 0,
7102
7102
  class: "blocker"
7103
7103
  };
7104
- const _hoisted_2$p = { class: "Handlers" };
7104
+ const _hoisted_2$q = { class: "Handlers" };
7105
7105
  const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
7106
7106
  __name: "Carousel",
7107
7107
  props: {
@@ -7250,10 +7250,10 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
7250
7250
  onScrollend: scrollEnd,
7251
7251
  onMousedown: startDragging
7252
7252
  }, [
7253
- vue.unref(isDragging) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$x)) : vue.createCommentVNode("", true),
7253
+ vue.unref(isDragging) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$y)) : vue.createCommentVNode("", true),
7254
7254
  vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
7255
7255
  ], 34),
7256
- vue.createElementVNode("div", _hoisted_2$p, [
7256
+ vue.createElementVNode("div", _hoisted_2$q, [
7257
7257
  vue.createElementVNode("span", { onClick: prev }, [
7258
7258
  vue.renderSlot(_ctx.$slots, "prev", {
7259
7259
  prev,
@@ -7272,6 +7272,8 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
7272
7272
  }
7273
7273
  });
7274
7274
  const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-1f9c6644"]]);
7275
+ const _hoisted_1$x = { class: "m-0" };
7276
+ const _hoisted_2$p = { class: "px-1 py-1 pretty m-0" };
7275
7277
  const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
7276
7278
  __name: "ModalConfirm",
7277
7279
  props: {
@@ -7291,26 +7293,27 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
7291
7293
  return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$N), {
7292
7294
  width: "380px",
7293
7295
  dismissable: false,
7294
- title: _ctx.title
7296
+ class: "color-black txt-center"
7295
7297
  }, {
7296
7298
  footer: vue.withCtx(() => [
7297
7299
  vue.createVNode(vue.unref(Btn), {
7298
- color: "primary",
7299
- value: "Confirm",
7300
- onClick: _cache[0] || (_cache[0] = ($event) => select2(true))
7300
+ flat: "",
7301
+ thin: "",
7302
+ value: "Cancel",
7303
+ onClick: _cache[0] || (_cache[0] = ($event) => select2(false))
7301
7304
  }),
7302
7305
  vue.createVNode(vue.unref(Btn), {
7303
- color: "red",
7304
- value: "Cancel",
7305
- onClick: _cache[1] || (_cache[1] = ($event) => select2(false))
7306
+ color: "green",
7307
+ value: "Confirm",
7308
+ onClick: _cache[1] || (_cache[1] = ($event) => select2(true))
7306
7309
  })
7307
7310
  ]),
7308
7311
  default: vue.withCtx(() => [
7309
- vue.createTextVNode(vue.toDisplayString(_ctx.message) + " ", 1),
7310
- vue.renderSlot(_ctx.$slots, "default")
7312
+ vue.createElementVNode("h3", _hoisted_1$x, vue.toDisplayString(_ctx.title), 1),
7313
+ vue.createElementVNode("p", _hoisted_2$p, vue.toDisplayString(_ctx.message), 1)
7311
7314
  ]),
7312
- _: 3
7313
- }, 8, ["title"]);
7315
+ _: 1
7316
+ });
7314
7317
  };
7315
7318
  }
7316
7319
  });
@@ -7445,8 +7448,27 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
7445
7448
  });
7446
7449
  return (_ctx, _cache) => {
7447
7450
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
7448
- !vue.unref(slots).success || _ctx.status !== "success" ? (vue.openBlock(), vue.createElementBlock("form", {
7449
- key: 0,
7451
+ _ctx.id ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
7452
+ _ctx.label ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$B), {
7453
+ key: 0,
7454
+ tag: "h4",
7455
+ label: _ctx.label
7456
+ }, null, 8, ["label"])) : vue.createCommentVNode("", true),
7457
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(computedSchema.value, (field, i2) => {
7458
+ return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$r), {
7459
+ key: field.id || `${i2}p`,
7460
+ modelValue: vue.unref(data2),
7461
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(data2) ? data2.value = $event : data2 = $event),
7462
+ field
7463
+ }, null, 8, ["modelValue", "field"]);
7464
+ }), 128)),
7465
+ vue.renderSlot(_ctx.$slots, "submit", {
7466
+ submit: runSubmit,
7467
+ isDirty: vue.unref(isDirty),
7468
+ validateForm
7469
+ })
7470
+ ], 64)) : !vue.unref(slots).success || _ctx.status !== "success" ? (vue.openBlock(), vue.createElementBlock("form", {
7471
+ key: 1,
7450
7472
  ref_key: "form",
7451
7473
  ref: form,
7452
7474
  onSubmit: vue.withModifiers(runSubmit, ["prevent"])
@@ -7460,7 +7482,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
7460
7482
  return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$r), {
7461
7483
  key: field.id || `${i2}p`,
7462
7484
  modelValue: vue.unref(data2),
7463
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(data2) ? data2.value = $event : data2 = $event),
7485
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(data2) ? data2.value = $event : data2 = $event),
7464
7486
  field
7465
7487
  }, null, 8, ["modelValue", "field"]);
7466
7488
  }), 128)),
@@ -7470,8 +7492,8 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
7470
7492
  validateForm
7471
7493
  })
7472
7494
  ], 544)) : vue.createCommentVNode("", true),
7473
- _ctx.status === "success" ? vue.renderSlot(_ctx.$slots, "success", { key: 1 }) : vue.createCommentVNode("", true),
7474
- _ctx.status === "error" ? vue.renderSlot(_ctx.$slots, "error", { key: 2 }) : vue.createCommentVNode("", true)
7495
+ _ctx.status === "success" ? vue.renderSlot(_ctx.$slots, "success", { key: 2 }) : vue.createCommentVNode("", true),
7496
+ _ctx.status === "error" ? vue.renderSlot(_ctx.$slots, "error", { key: 3 }) : vue.createCommentVNode("", true)
7475
7497
  ], 64);
7476
7498
  };
7477
7499
  }
package/dist/index.mjs CHANGED
@@ -5468,7 +5468,7 @@ const ModalPlugin = {
5468
5468
  modalStack.value.splice(index2, 1);
5469
5469
  };
5470
5470
  const modalConfirm = async (options) => new Promise((resolve) => {
5471
- if (typeof options === "string") options = { title: options, message: "" };
5471
+ if (typeof options === "string") options = { title: "", message: options };
5472
5472
  modalStack.value.push({
5473
5473
  modalOptions: { ...options, resolve },
5474
5474
  modalType: "confirm",
@@ -5545,8 +5545,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
5545
5545
  };
5546
5546
  }
5547
5547
  });
5548
- const _hoisted_1$L = { class: "full-nav" };
5549
- const _hoisted_2$A = { class: "nav-scroll" };
5548
+ const _hoisted_1$M = { class: "full-nav" };
5549
+ const _hoisted_2$B = { class: "nav-scroll" };
5550
5550
  const _hoisted_3$o = { class: "nav-links-wrapper" };
5551
5551
  const _hoisted_4$g = { class: "tooltip" };
5552
5552
  const _hoisted_5$f = { class: "bot-buttons-wrapper" };
@@ -5581,8 +5581,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
5581
5581
  class: "top-arrow"
5582
5582
  })
5583
5583
  ], 32),
5584
- createElementVNode("div", _hoisted_1$L, [
5585
- createElementVNode("div", _hoisted_2$A, [
5584
+ createElementVNode("div", _hoisted_1$M, [
5585
+ createElementVNode("div", _hoisted_2$B, [
5586
5586
  createElementVNode("div", _hoisted_3$o, [
5587
5587
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.links, (link) => {
5588
5588
  return openBlock(), createBlock(resolveDynamicComponent(link.to ? "router-link" : "div"), {
@@ -5640,11 +5640,11 @@ const _export_sfc = (sfc, props2) => {
5640
5640
  return target;
5641
5641
  };
5642
5642
  const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-776cab4a"]]);
5643
- const _hoisted_1$K = {
5643
+ const _hoisted_1$L = {
5644
5644
  key: 0,
5645
5645
  class: "loading"
5646
5646
  };
5647
- const _hoisted_2$z = {
5647
+ const _hoisted_2$A = {
5648
5648
  key: 1,
5649
5649
  class: "bgl_btn-flex"
5650
5650
  };
@@ -5742,7 +5742,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
5742
5742
  onClick: withModifiers(_ctx.onClick, ["stop"])
5743
5743
  }, {
5744
5744
  default: withCtx(() => [
5745
- _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$K)) : (openBlock(), createElementBlock("div", _hoisted_2$z, [
5745
+ _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$L)) : (openBlock(), createElementBlock("div", _hoisted_2$A, [
5746
5746
  _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$Q), {
5747
5747
  key: 0,
5748
5748
  icon: _ctx.icon
@@ -5763,11 +5763,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
5763
5763
  }
5764
5764
  });
5765
5765
  const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-895cf824"]]);
5766
- const _hoisted_1$J = {
5766
+ const _hoisted_1$K = {
5767
5767
  key: 0,
5768
5768
  class: "tool-bar"
5769
5769
  };
5770
- const _hoisted_2$y = {
5770
+ const _hoisted_2$z = {
5771
5771
  key: 1,
5772
5772
  class: "sticky bg-white z-index-999 -mt-1 -ms-1 px-025 h-30px pt-025 modal-no-title"
5773
5773
  };
@@ -5840,7 +5840,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
5840
5840
  default: withCtx(() => {
5841
5841
  var _a2;
5842
5842
  return [
5843
- unref(slots).toolbar || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_1$J, [
5843
+ unref(slots).toolbar || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_1$K, [
5844
5844
  renderSlot(_ctx.$slots, "toolbar"),
5845
5845
  createVNode(unref(Btn), {
5846
5846
  style: normalizeStyle({ float: _ctx.side ? "left" : "right" }),
@@ -5854,7 +5854,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
5854
5854
  tag: "h3",
5855
5855
  label: _ctx.title
5856
5856
  }, null, 8, ["label"])) : createCommentVNode("", true)
5857
- ])) : (openBlock(), createElementBlock("div", _hoisted_2$y, [
5857
+ ])) : (openBlock(), createElementBlock("div", _hoisted_2$z, [
5858
5858
  createVNode(unref(Btn), {
5859
5859
  class: "color-black position-start",
5860
5860
  icon: "close",
@@ -5997,8 +5997,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
5997
5997
  }
5998
5998
  });
5999
5999
  const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-083a1b2d"]]);
6000
- const _hoisted_1$I = { class: "accordion-item" };
6001
- const _hoisted_2$x = ["aria-expanded", "aria-controls"];
6000
+ const _hoisted_1$J = { class: "accordion-item" };
6001
+ const _hoisted_2$y = ["aria-expanded", "aria-controls"];
6002
6002
  const _hoisted_3$m = { class: "accordion-label" };
6003
6003
  const _hoisted_4$f = ["id", "aria-hidden"];
6004
6004
  const _sfc_main$L = /* @__PURE__ */ defineComponent({
@@ -6038,7 +6038,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
6038
6038
  else if (accordionState.openItem === id) accordionState.openItem = null;
6039
6039
  }
6040
6040
  return (_ctx, _cache) => {
6041
- return openBlock(), createElementBlock("div", _hoisted_1$I, [
6041
+ return openBlock(), createElementBlock("div", _hoisted_1$J, [
6042
6042
  createElementVNode("button", {
6043
6043
  "aria-expanded": unref(isOpen) ? "true" : "false",
6044
6044
  class: "accordion-head",
@@ -6053,7 +6053,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
6053
6053
  }, [
6054
6054
  createVNode(unref(_sfc_main$Q), { icon: "expand_more" })
6055
6055
  ], 2)
6056
- ], 8, _hoisted_2$x),
6056
+ ], 8, _hoisted_2$y),
6057
6057
  createVNode(Transition, { name: "expand" }, {
6058
6058
  default: withCtx(() => [
6059
6059
  unref(isOpen) ? (openBlock(), createElementBlock("div", {
@@ -6073,12 +6073,12 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
6073
6073
  });
6074
6074
  const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-f87b579d"]]);
6075
6075
  const _sfc_main$K = {};
6076
- const _hoisted_1$H = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0 m_pb-0" };
6077
- const _hoisted_2$w = { class: "p-1" };
6076
+ const _hoisted_1$I = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0 m_pb-0" };
6077
+ const _hoisted_2$x = { class: "p-1" };
6078
6078
  const _hoisted_3$l = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
6079
6079
  function _sfc_render$2(_ctx, _cache) {
6080
- return openBlock(), createElementBlock("div", _hoisted_1$H, [
6081
- createElementVNode("div", _hoisted_2$w, [
6080
+ return openBlock(), createElementBlock("div", _hoisted_1$I, [
6081
+ createElementVNode("div", _hoisted_2$x, [
6082
6082
  renderSlot(_ctx.$slots, "header")
6083
6083
  ]),
6084
6084
  createElementVNode("div", _hoisted_3$l, [
@@ -6087,8 +6087,8 @@ function _sfc_render$2(_ctx, _cache) {
6087
6087
  ]);
6088
6088
  }
6089
6089
  const ListView = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$2]]);
6090
- const _hoisted_1$G = { class: "no-margin ellipsis line-height-14 pb-025" };
6091
- const _hoisted_2$v = { class: "txt12 no-margin txt-gray ellipsis" };
6090
+ const _hoisted_1$H = { class: "no-margin ellipsis line-height-14 pb-025" };
6091
+ const _hoisted_2$w = { class: "txt12 no-margin txt-gray ellipsis" };
6092
6092
  const _sfc_main$J = /* @__PURE__ */ defineComponent({
6093
6093
  __name: "ListItem",
6094
6094
  props: {
@@ -6122,11 +6122,11 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
6122
6122
  icon: _ctx.icon
6123
6123
  }, null, 8, ["icon"])) : createCommentVNode("", true),
6124
6124
  createElementVNode("div", null, [
6125
- createElementVNode("p", _hoisted_1$G, [
6125
+ createElementVNode("p", _hoisted_1$H, [
6126
6126
  createTextVNode(toDisplayString(_ctx.title) + " ", 1),
6127
6127
  renderSlot(_ctx.$slots, "default")
6128
6128
  ]),
6129
- createElementVNode("p", _hoisted_2$v, [
6129
+ createElementVNode("p", _hoisted_2$w, [
6130
6130
  createTextVNode(toDisplayString(_ctx.subtitle) + " ", 1),
6131
6131
  renderSlot(_ctx.$slots, "subtitle")
6132
6132
  ])
@@ -6137,8 +6137,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
6137
6137
  };
6138
6138
  }
6139
6139
  });
6140
- const _hoisted_1$F = { class: "page-top" };
6141
- const _hoisted_2$u = { class: "top-title m-0" };
6140
+ const _hoisted_1$G = { class: "page-top" };
6141
+ const _hoisted_2$v = { class: "top-title m-0" };
6142
6142
  const _sfc_main$I = /* @__PURE__ */ defineComponent({
6143
6143
  __name: "PageTitle",
6144
6144
  props: {
@@ -6149,8 +6149,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
6149
6149
  },
6150
6150
  setup(__props) {
6151
6151
  return (_ctx, _cache) => {
6152
- return openBlock(), createElementBlock("div", _hoisted_1$F, [
6153
- createElementVNode("h1", _hoisted_2$u, [
6152
+ return openBlock(), createElementBlock("div", _hoisted_1$G, [
6153
+ createElementVNode("h1", _hoisted_2$v, [
6154
6154
  renderSlot(_ctx.$slots, "default"),
6155
6155
  createTextVNode(" " + toDisplayString(__props.value), 1)
6156
6156
  ])
@@ -6473,13 +6473,13 @@ function useVerticalVirtualList(options, list) {
6473
6473
  };
6474
6474
  }
6475
6475
  const _withScopeId$3 = (n2) => (pushScopeId("data-v-5441d9cd"), n2 = n2(), popScopeId(), n2);
6476
- const _hoisted_1$E = {
6476
+ const _hoisted_1$F = {
6477
6477
  key: 0,
6478
6478
  class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
6479
6479
  };
6480
- const _hoisted_2$t = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1));
6480
+ const _hoisted_2$u = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1));
6481
6481
  const _hoisted_3$k = [
6482
- _hoisted_2$t
6482
+ _hoisted_2$u
6483
6483
  ];
6484
6484
  const _hoisted_4$e = { class: "infinite-wrapper" };
6485
6485
  const _hoisted_5$e = { class: "row first-row" };
@@ -6627,7 +6627,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
6627
6627
  return openBlock(), createElementBlock("div", mergeProps({ class: "table-list-wrap h-100" }, unref(containerProps), {
6628
6628
  class: { "loading-table": loading.value }
6629
6629
  }), [
6630
- loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$E, _hoisted_3$k)) : (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 1 }, unref(wrapperProps))), [
6630
+ loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, _hoisted_3$k)) : (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 1 }, unref(wrapperProps))), [
6631
6631
  createElementVNode("table", _hoisted_4$e, [
6632
6632
  createElementVNode("thead", _hoisted_5$e, [
6633
6633
  unref(isSelectable) ? (openBlock(), createElementBlock("th", _hoisted_6$9, [
@@ -6711,9 +6711,9 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
6711
6711
  });
6712
6712
  const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-5441d9cd"]]);
6713
6713
  const _sfc_main$G = {};
6714
- const _hoisted_1$D = { class: "flex space-between" };
6714
+ const _hoisted_1$E = { class: "flex space-between" };
6715
6715
  function _sfc_render$1(_ctx, _cache) {
6716
- return openBlock(), createElementBlock("div", _hoisted_1$D, [
6716
+ return openBlock(), createElementBlock("div", _hoisted_1$E, [
6717
6717
  renderSlot(_ctx.$slots, "default")
6718
6718
  ]);
6719
6719
  }
@@ -6741,11 +6741,11 @@ function _sfc_render(_ctx, _cache) {
6741
6741
  });
6742
6742
  }
6743
6743
  const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render]]);
6744
- const _hoisted_1$C = {
6744
+ const _hoisted_1$D = {
6745
6745
  key: 0,
6746
6746
  class: "data"
6747
6747
  };
6748
- const _hoisted_2$s = {
6748
+ const _hoisted_2$t = {
6749
6749
  key: 0,
6750
6750
  class: "data-row m_py-05"
6751
6751
  };
@@ -6798,7 +6798,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
6798
6798
  const computedSchema = computed(() => getFallbackSchema([itemData.value], props2.showFields));
6799
6799
  return (_ctx, _cache) => {
6800
6800
  var _a2;
6801
- return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
6801
+ return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
6802
6802
  _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$B), {
6803
6803
  key: 0,
6804
6804
  label: _ctx.title
@@ -6807,7 +6807,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
6807
6807
  return openBlock(), createElementBlock(Fragment$1, {
6808
6808
  key: field.id
6809
6809
  }, [
6810
- unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$s, [
6810
+ unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$t, [
6811
6811
  createElementVNode("div", _hoisted_3$j, [
6812
6812
  createElementVNode("p", _hoisted_4$d, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1)
6813
6813
  ]),
@@ -6841,7 +6841,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
6841
6841
  }
6842
6842
  });
6843
6843
  const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-4d174f13"]]);
6844
- const _hoisted_1$B = {
6844
+ const _hoisted_1$C = {
6845
6845
  key: 0,
6846
6846
  class: "card_label"
6847
6847
  };
@@ -6873,7 +6873,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
6873
6873
  }])
6874
6874
  }, {
6875
6875
  default: withCtx(() => [
6876
- _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$B, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
6876
+ _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$C, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
6877
6877
  renderSlot(_ctx.$slots, "default")
6878
6878
  ]),
6879
6879
  _: 3
@@ -6881,7 +6881,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
6881
6881
  };
6882
6882
  }
6883
6883
  });
6884
- const _hoisted_1$A = ["src", "alt"];
6884
+ const _hoisted_1$B = ["src", "alt"];
6885
6885
  const _sfc_main$C = /* @__PURE__ */ defineComponent({
6886
6886
  __name: "Avatar",
6887
6887
  props: {
@@ -6900,7 +6900,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
6900
6900
  key: 0,
6901
6901
  src: _ctx.src,
6902
6902
  alt: _ctx.name
6903
- }, null, 8, _hoisted_1$A)) : (openBlock(), createElementBlock("p", {
6903
+ }, null, 8, _hoisted_1$B)) : (openBlock(), createElementBlock("p", {
6904
6904
  key: 1,
6905
6905
  style: normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
6906
6906
  }, toDisplayString(_ctx.fallback || unref(initials)(_ctx.name || "")), 5))
@@ -6951,8 +6951,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
6951
6951
  };
6952
6952
  }
6953
6953
  });
6954
- const _hoisted_1$z = ["dismissable"];
6955
- const _hoisted_2$r = { class: "m-0" };
6954
+ const _hoisted_1$A = ["dismissable"];
6955
+ const _hoisted_2$s = { class: "m-0" };
6956
6956
  const _sfc_main$z = /* @__PURE__ */ defineComponent({
6957
6957
  __name: "Alert",
6958
6958
  props: {
@@ -6981,7 +6981,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
6981
6981
  size: 2,
6982
6982
  color: color2[_ctx.type]
6983
6983
  }, null, 8, ["icon", "color"])) : createCommentVNode("", true),
6984
- createElementVNode("p", _hoisted_2$r, toDisplayString(_ctx.message), 1),
6984
+ createElementVNode("p", _hoisted_2$s, toDisplayString(_ctx.message), 1),
6985
6985
  createVNode(Btn, {
6986
6986
  flat: "",
6987
6987
  thin: "",
@@ -6989,7 +6989,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
6989
6989
  icon: "close",
6990
6990
  onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
6991
6991
  })
6992
- ], 10, _hoisted_1$z)) : createCommentVNode("", true);
6992
+ ], 10, _hoisted_1$A)) : createCommentVNode("", true);
6993
6993
  };
6994
6994
  }
6995
6995
  });
@@ -7026,8 +7026,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
7026
7026
  }
7027
7027
  });
7028
7028
  const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-532b36ae"]]);
7029
- const _hoisted_1$y = ["src"];
7030
- const _hoisted_2$q = ["src", "autoplay", "muted", "loop", "controls"];
7029
+ const _hoisted_1$z = ["src"];
7030
+ const _hoisted_2$r = ["src", "autoplay", "muted", "loop", "controls"];
7031
7031
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
7032
7032
  __name: "BglVideo",
7033
7033
  props: {
@@ -7080,7 +7080,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
7080
7080
  frameborder: "0",
7081
7081
  allowfullscreen: "",
7082
7082
  title: "Video"
7083
- }, null, 12, _hoisted_1$y)) : _ctx.src ? (openBlock(), createElementBlock("video", {
7083
+ }, null, 12, _hoisted_1$z)) : _ctx.src ? (openBlock(), createElementBlock("video", {
7084
7084
  key: 1,
7085
7085
  src: _ctx.src,
7086
7086
  autoplay: _ctx.autoplay,
@@ -7089,17 +7089,17 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
7089
7089
  style: normalizeStyle({ aspectRatio: aspectRatio.value }),
7090
7090
  controls: _ctx.controls,
7091
7091
  playsinline: ""
7092
- }, null, 12, _hoisted_2$q)) : createCommentVNode("", true)
7092
+ }, null, 12, _hoisted_2$r)) : createCommentVNode("", true)
7093
7093
  ], 2);
7094
7094
  };
7095
7095
  }
7096
7096
  });
7097
7097
  const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-862e1f20"]]);
7098
- const _hoisted_1$x = {
7098
+ const _hoisted_1$y = {
7099
7099
  key: 0,
7100
7100
  class: "blocker"
7101
7101
  };
7102
- const _hoisted_2$p = { class: "Handlers" };
7102
+ const _hoisted_2$q = { class: "Handlers" };
7103
7103
  const _sfc_main$w = /* @__PURE__ */ defineComponent({
7104
7104
  __name: "Carousel",
7105
7105
  props: {
@@ -7248,10 +7248,10 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
7248
7248
  onScrollend: scrollEnd,
7249
7249
  onMousedown: startDragging
7250
7250
  }, [
7251
- unref(isDragging) ? (openBlock(), createElementBlock("div", _hoisted_1$x)) : createCommentVNode("", true),
7251
+ unref(isDragging) ? (openBlock(), createElementBlock("div", _hoisted_1$y)) : createCommentVNode("", true),
7252
7252
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
7253
7253
  ], 34),
7254
- createElementVNode("div", _hoisted_2$p, [
7254
+ createElementVNode("div", _hoisted_2$q, [
7255
7255
  createElementVNode("span", { onClick: prev }, [
7256
7256
  renderSlot(_ctx.$slots, "prev", {
7257
7257
  prev,
@@ -7270,6 +7270,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
7270
7270
  }
7271
7271
  });
7272
7272
  const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-1f9c6644"]]);
7273
+ const _hoisted_1$x = { class: "m-0" };
7274
+ const _hoisted_2$p = { class: "px-1 py-1 pretty m-0" };
7273
7275
  const _sfc_main$v = /* @__PURE__ */ defineComponent({
7274
7276
  __name: "ModalConfirm",
7275
7277
  props: {
@@ -7289,26 +7291,27 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
7289
7291
  return openBlock(), createBlock(unref(_sfc_main$N), {
7290
7292
  width: "380px",
7291
7293
  dismissable: false,
7292
- title: _ctx.title
7294
+ class: "color-black txt-center"
7293
7295
  }, {
7294
7296
  footer: withCtx(() => [
7295
7297
  createVNode(unref(Btn), {
7296
- color: "primary",
7297
- value: "Confirm",
7298
- onClick: _cache[0] || (_cache[0] = ($event) => select2(true))
7298
+ flat: "",
7299
+ thin: "",
7300
+ value: "Cancel",
7301
+ onClick: _cache[0] || (_cache[0] = ($event) => select2(false))
7299
7302
  }),
7300
7303
  createVNode(unref(Btn), {
7301
- color: "red",
7302
- value: "Cancel",
7303
- onClick: _cache[1] || (_cache[1] = ($event) => select2(false))
7304
+ color: "green",
7305
+ value: "Confirm",
7306
+ onClick: _cache[1] || (_cache[1] = ($event) => select2(true))
7304
7307
  })
7305
7308
  ]),
7306
7309
  default: withCtx(() => [
7307
- createTextVNode(toDisplayString(_ctx.message) + " ", 1),
7308
- renderSlot(_ctx.$slots, "default")
7310
+ createElementVNode("h3", _hoisted_1$x, toDisplayString(_ctx.title), 1),
7311
+ createElementVNode("p", _hoisted_2$p, toDisplayString(_ctx.message), 1)
7309
7312
  ]),
7310
- _: 3
7311
- }, 8, ["title"]);
7313
+ _: 1
7314
+ });
7312
7315
  };
7313
7316
  }
7314
7317
  });
@@ -7443,8 +7446,27 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
7443
7446
  });
7444
7447
  return (_ctx, _cache) => {
7445
7448
  return openBlock(), createElementBlock(Fragment$1, null, [
7446
- !unref(slots).success || _ctx.status !== "success" ? (openBlock(), createElementBlock("form", {
7447
- key: 0,
7449
+ _ctx.id ? (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
7450
+ _ctx.label ? (openBlock(), createBlock(unref(_sfc_main$B), {
7451
+ key: 0,
7452
+ tag: "h4",
7453
+ label: _ctx.label
7454
+ }, null, 8, ["label"])) : createCommentVNode("", true),
7455
+ (openBlock(true), createElementBlock(Fragment$1, null, renderList(computedSchema.value, (field, i2) => {
7456
+ return openBlock(), createBlock(unref(_sfc_main$r), {
7457
+ key: field.id || `${i2}p`,
7458
+ modelValue: unref(data2),
7459
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(data2) ? data2.value = $event : data2 = $event),
7460
+ field
7461
+ }, null, 8, ["modelValue", "field"]);
7462
+ }), 128)),
7463
+ renderSlot(_ctx.$slots, "submit", {
7464
+ submit: runSubmit,
7465
+ isDirty: unref(isDirty),
7466
+ validateForm
7467
+ })
7468
+ ], 64)) : !unref(slots).success || _ctx.status !== "success" ? (openBlock(), createElementBlock("form", {
7469
+ key: 1,
7448
7470
  ref_key: "form",
7449
7471
  ref: form,
7450
7472
  onSubmit: withModifiers(runSubmit, ["prevent"])
@@ -7458,7 +7480,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
7458
7480
  return openBlock(), createBlock(unref(_sfc_main$r), {
7459
7481
  key: field.id || `${i2}p`,
7460
7482
  modelValue: unref(data2),
7461
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(data2) ? data2.value = $event : data2 = $event),
7483
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(data2) ? data2.value = $event : data2 = $event),
7462
7484
  field
7463
7485
  }, null, 8, ["modelValue", "field"]);
7464
7486
  }), 128)),
@@ -7468,8 +7490,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
7468
7490
  validateForm
7469
7491
  })
7470
7492
  ], 544)) : createCommentVNode("", true),
7471
- _ctx.status === "success" ? renderSlot(_ctx.$slots, "success", { key: 1 }) : createCommentVNode("", true),
7472
- _ctx.status === "error" ? renderSlot(_ctx.$slots, "error", { key: 2 }) : createCommentVNode("", true)
7493
+ _ctx.status === "success" ? renderSlot(_ctx.$slots, "success", { key: 2 }) : createCommentVNode("", true),
7494
+ _ctx.status === "error" ? renderSlot(_ctx.$slots, "error", { key: 3 }) : createCommentVNode("", true)
7473
7495
  ], 64);
7474
7496
  };
7475
7497
  }
@@ -202,6 +202,11 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
202
202
  modelValue: Record<string, any>;
203
203
  }, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
204
204
  $slots: {
205
+ submit?(_: {
206
+ submit: () => void;
207
+ isDirty: import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<false> | import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<true>;
208
+ validateForm: () => boolean;
209
+ }): any;
205
210
  submit?(_: {
206
211
  submit: () => void;
207
212
  isDirty: import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<false> | import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<true>;
@@ -374,6 +379,11 @@ export declare function bglForm(idOrField?: string | Field, ...schema: Field[]):
374
379
  modelValue: Record<string, any>;
375
380
  }, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
376
381
  $slots: {
382
+ submit?(_: {
383
+ submit: () => void;
384
+ isDirty: import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<false> | import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<true>;
385
+ validateForm: () => boolean;
386
+ }): any;
377
387
  submit?(_: {
378
388
  submit: () => void;
379
389
  isDirty: import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<false> | import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<true>;
@@ -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,MAAM,EAAY,MAAM,eAAe,CAAA;AAGjG,UAAU,YAAY;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,KAAK,WAAW,GAAG,YAAY,CAAA;AAE/B,UAAU,gBAAiB,SAAQ,YAAY;IAC9C,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,CAAA;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,UAAU,gBAAiB,SAAQ,YAAY;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,UAAU,eAAgB,SAAQ,YAAY;IAC7C,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MA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EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,WAAW,GACnB,KAAK,CAaP;AAED,wBAAgB,QAAQ,CACvB,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,eAAe,GACvB,KAAK,CAoBP;AAED,wBAAgB,MAAM,CAAC,GAAG,QAAQ,EAAE,KAAK,EAAE;;;;EAM1C;AAED,wBAAgB,OAAO,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,EAAE,GAAG,MAAM,EAAE,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBrE;AAED,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,KAAK,CAOzF;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,KAAK,GAAG,SAAS,CASvF"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.709",
4
+ "version": "0.0.712",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -16,12 +16,16 @@ function select(val: boolean) {
16
16
  </script>
17
17
 
18
18
  <template>
19
- <Modal width="380px" :dismissable="false" :title="title">
20
- {{ message }}
21
- <slot />
19
+ <Modal width="380px" :dismissable="false" class="color-black txt-center">
20
+ <h3 class="m-0">
21
+ {{ title }}
22
+ </h3>
23
+ <p class="px-1 py-1 pretty m-0">
24
+ {{ message }}
25
+ </p>
22
26
  <template #footer>
23
- <Btn color="primary" value="Confirm" @click="select(true)" />
24
- <Btn color="red" value="Cancel" @click="select(false)" />
27
+ <Btn flat thin value="Cancel" @click="select(false)" />
28
+ <Btn color="green" value="Confirm" @click="select(true)" />
25
29
  </template>
26
30
  </Modal>
27
31
  </template>
@@ -105,8 +105,18 @@ defineExpose({
105
105
  </script>
106
106
 
107
107
  <template>
108
+ <template v-if="id">
109
+ <Title v-if="label" tag="h4" :label="label" />
110
+ <BglField
111
+ v-for="(field, i) in computedSchema"
112
+ :key="field.id || `${i}p`"
113
+ v-model="data"
114
+ :field="field"
115
+ />
116
+ <slot name="submit" :submit="runSubmit" :isDirty :validateForm />
117
+ </template>
108
118
  <form
109
- v-if="!slots.success || status !== 'success'"
119
+ v-else-if="!slots.success || status !== 'success'"
110
120
  ref="form"
111
121
  @submit.prevent="runSubmit"
112
122
  >
@@ -73,7 +73,7 @@ export const ModalPlugin: Plugin = {
73
73
  }
74
74
 
75
75
  const modalConfirm = async (options: ConfirmModalUserOptions) => new Promise<boolean>((resolve) => {
76
- if (typeof options === 'string') options = { title: options, message: '' }
76
+ if (typeof options === 'string') options = { title: '', message: options }
77
77
  modalStack.push({
78
78
  modalOptions: { ...options, resolve },
79
79
  modalType: 'confirm',