@bagelink/vue 0.0.740 → 0.0.744
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/components/ModalConfirm.vue.d.ts +4 -4
- package/dist/components/ModalConfirm.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/CheckInput.vue.d.ts +4 -3
- package/dist/components/form/inputs/CheckInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TelInput.vue.d.ts +0 -1
- package/dist/components/form/inputs/TelInput.vue.d.ts.map +1 -1
- package/dist/index.cjs +64 -59
- package/dist/index.mjs +64 -59
- package/dist/plugins/modal.d.ts +9 -13
- package/dist/plugins/modal.d.ts.map +1 -1
- package/dist/style.css +112 -19
- package/package.json +2 -2
- package/src/components/Avatar.vue +1 -1
- package/src/components/ModalConfirm.vue +4 -7
- package/src/components/form/inputs/CheckInput.vue +3 -1
- package/src/components/form/inputs/TelInput.vue +2 -2
- package/src/plugins/modal.ts +44 -61
- package/src/styles/appearance.css +14 -0
- package/src/styles/inputs.css +9 -0
- package/src/styles/text.css +82 -0
- package/src/styles/theme.css +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5181,7 +5181,7 @@ const _hoisted_1$P = {
|
|
|
5181
5181
|
key: 0,
|
|
5182
5182
|
class: "navigation flex space-between px-3 w-100 absolute"
|
|
5183
5183
|
};
|
|
5184
|
-
const _hoisted_2$
|
|
5184
|
+
const _hoisted_2$B = { class: "bgl-lightbox-item" };
|
|
5185
5185
|
const _hoisted_3$q = ["src"];
|
|
5186
5186
|
const _hoisted_4$i = ["src", "title"];
|
|
5187
5187
|
const _hoisted_5$g = {
|
|
@@ -5286,7 +5286,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
5286
5286
|
icon: "close",
|
|
5287
5287
|
onClick: close2
|
|
5288
5288
|
}),
|
|
5289
|
-
createElementVNode("div", _hoisted_2$
|
|
5289
|
+
createElementVNode("div", _hoisted_2$B, [
|
|
5290
5290
|
((_a2 = unref(currentItem)) == null ? void 0 : _a2.type) === "image" ? (openBlock(), createElementBlock("img", {
|
|
5291
5291
|
key: 0,
|
|
5292
5292
|
src: (_b = unref(currentItem)) == null ? void 0 : _b.src,
|
|
@@ -5762,29 +5762,32 @@ const ModalPlugin = {
|
|
|
5762
5762
|
const hideModal = (index2) => {
|
|
5763
5763
|
modalStack.value.splice(index2, 1);
|
|
5764
5764
|
};
|
|
5765
|
-
const
|
|
5766
|
-
(resolve) => {
|
|
5767
|
-
|
|
5765
|
+
const confirmModal = (options) => {
|
|
5766
|
+
return new Promise((resolve) => {
|
|
5767
|
+
const confirmOptions = typeof options === "string" ? { title: "", message: options } : options;
|
|
5768
5768
|
modalStack.value.push({
|
|
5769
|
-
modalOptions: { ...
|
|
5770
|
-
modalType: "
|
|
5769
|
+
modalOptions: { ...confirmOptions, resolve },
|
|
5770
|
+
modalType: "confirmModal",
|
|
5771
5771
|
componentSlots: {}
|
|
5772
5772
|
});
|
|
5773
|
-
}
|
|
5774
|
-
|
|
5773
|
+
});
|
|
5774
|
+
};
|
|
5775
5775
|
const showModal = (modalType, options, slots = {}) => {
|
|
5776
|
-
|
|
5776
|
+
const modalComponent = {
|
|
5777
5777
|
modalOptions: options,
|
|
5778
5778
|
modalType,
|
|
5779
5779
|
componentSlots: slots
|
|
5780
|
-
}
|
|
5781
|
-
|
|
5782
|
-
|
|
5780
|
+
};
|
|
5781
|
+
modalStack.value.push(modalComponent);
|
|
5782
|
+
if (modalType === "modalForm") {
|
|
5783
|
+
return modalComponent;
|
|
5784
|
+
}
|
|
5785
|
+
return modalComponent;
|
|
5783
5786
|
};
|
|
5784
5787
|
app.provide(ModalSymbol, {
|
|
5785
5788
|
showModal: (options, slots) => showModal("modal", options, slots),
|
|
5786
5789
|
showModalForm: (options, slots) => showModal("modalForm", options, slots),
|
|
5787
|
-
confirmModal:
|
|
5790
|
+
confirmModal: (options) => confirmModal(options),
|
|
5788
5791
|
hideModal: (index2 = modalStack.value.length - 1) => {
|
|
5789
5792
|
hideModal(index2);
|
|
5790
5793
|
}
|
|
@@ -5800,13 +5803,14 @@ const ModalPlugin = {
|
|
|
5800
5803
|
hideModal(index2);
|
|
5801
5804
|
}
|
|
5802
5805
|
};
|
|
5803
|
-
|
|
5804
|
-
|
|
5806
|
+
switch (modal.modalType) {
|
|
5807
|
+
case "modalForm":
|
|
5808
|
+
return h$2(ModalForm, props2, modal.componentSlots);
|
|
5809
|
+
case "confirmModal":
|
|
5810
|
+
return h$2(_sfc_main$x, props2, {});
|
|
5811
|
+
default:
|
|
5812
|
+
return h$2(_sfc_main$P, props2, modal.componentSlots);
|
|
5805
5813
|
}
|
|
5806
|
-
if (modal.modalType === "confirm") {
|
|
5807
|
-
return h$2(_sfc_main$x, props2, {});
|
|
5808
|
-
}
|
|
5809
|
-
return h$2(_sfc_main$P, props2, modal.componentSlots);
|
|
5810
5814
|
});
|
|
5811
5815
|
}
|
|
5812
5816
|
});
|
|
@@ -5851,7 +5855,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
5851
5855
|
}
|
|
5852
5856
|
});
|
|
5853
5857
|
const _hoisted_1$O = { class: "full-nav" };
|
|
5854
|
-
const _hoisted_2$
|
|
5858
|
+
const _hoisted_2$A = { class: "nav-scroll" };
|
|
5855
5859
|
const _hoisted_3$p = { class: "nav-links-wrapper" };
|
|
5856
5860
|
const _hoisted_4$h = { class: "tooltip" };
|
|
5857
5861
|
const _hoisted_5$f = { class: "bot-buttons-wrapper" };
|
|
@@ -5887,7 +5891,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
5887
5891
|
})
|
|
5888
5892
|
], 32),
|
|
5889
5893
|
createElementVNode("div", _hoisted_1$O, [
|
|
5890
|
-
createElementVNode("div", _hoisted_2$
|
|
5894
|
+
createElementVNode("div", _hoisted_2$A, [
|
|
5891
5895
|
createElementVNode("div", _hoisted_3$p, [
|
|
5892
5896
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.links, (link) => {
|
|
5893
5897
|
return openBlock(), createBlock(resolveDynamicComponent(link.to ? "router-link" : "div"), {
|
|
@@ -5942,7 +5946,7 @@ const _hoisted_1$N = {
|
|
|
5942
5946
|
key: 0,
|
|
5943
5947
|
class: "loading"
|
|
5944
5948
|
};
|
|
5945
|
-
const _hoisted_2$
|
|
5949
|
+
const _hoisted_2$z = {
|
|
5946
5950
|
key: 1,
|
|
5947
5951
|
class: "bgl_btn-flex"
|
|
5948
5952
|
};
|
|
@@ -6040,7 +6044,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
6040
6044
|
onClick: withModifiers(_ctx.onClick, ["stop"])
|
|
6041
6045
|
}, {
|
|
6042
6046
|
default: withCtx(() => [
|
|
6043
|
-
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$N)) : (openBlock(), createElementBlock("div", _hoisted_2$
|
|
6047
|
+
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$N)) : (openBlock(), createElementBlock("div", _hoisted_2$z, [
|
|
6044
6048
|
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$S), {
|
|
6045
6049
|
key: 0,
|
|
6046
6050
|
icon: _ctx.icon
|
|
@@ -6065,7 +6069,7 @@ const _hoisted_1$M = {
|
|
|
6065
6069
|
key: 0,
|
|
6066
6070
|
class: "tool-bar"
|
|
6067
6071
|
};
|
|
6068
|
-
const _hoisted_2$
|
|
6072
|
+
const _hoisted_2$y = {
|
|
6069
6073
|
key: 1,
|
|
6070
6074
|
class: "sticky bg-popup z-index-999 -mt-1 -ms-1 px-025 h-30px pt-025 modal-no-title"
|
|
6071
6075
|
};
|
|
@@ -6152,7 +6156,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
6152
6156
|
tag: "h3",
|
|
6153
6157
|
label: _ctx.title
|
|
6154
6158
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
6155
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_2$
|
|
6159
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_2$y, [
|
|
6156
6160
|
createVNode(unref(Btn), {
|
|
6157
6161
|
class: "position-start",
|
|
6158
6162
|
icon: "close",
|
|
@@ -6296,7 +6300,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
6296
6300
|
});
|
|
6297
6301
|
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-083a1b2d"]]);
|
|
6298
6302
|
const _hoisted_1$L = { class: "accordion-item" };
|
|
6299
|
-
const _hoisted_2$
|
|
6303
|
+
const _hoisted_2$x = ["aria-expanded", "aria-controls"];
|
|
6300
6304
|
const _hoisted_3$n = { class: "accordion-label" };
|
|
6301
6305
|
const _hoisted_4$g = ["id", "aria-hidden"];
|
|
6302
6306
|
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
@@ -6351,7 +6355,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
6351
6355
|
}, [
|
|
6352
6356
|
createVNode(unref(_sfc_main$S), { icon: "expand_more" })
|
|
6353
6357
|
], 2)
|
|
6354
|
-
], 8, _hoisted_2$
|
|
6358
|
+
], 8, _hoisted_2$x),
|
|
6355
6359
|
createVNode(Transition, { name: "expand" }, {
|
|
6356
6360
|
default: withCtx(() => [
|
|
6357
6361
|
unref(isOpen) ? (openBlock(), createElementBlock("div", {
|
|
@@ -6372,11 +6376,11 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
6372
6376
|
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-f87b579d"]]);
|
|
6373
6377
|
const _sfc_main$M = {};
|
|
6374
6378
|
const _hoisted_1$K = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0 m_pb-0" };
|
|
6375
|
-
const _hoisted_2$
|
|
6379
|
+
const _hoisted_2$w = { class: "p-1" };
|
|
6376
6380
|
const _hoisted_3$m = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
|
|
6377
6381
|
function _sfc_render$2(_ctx, _cache) {
|
|
6378
6382
|
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
6379
|
-
createElementVNode("div", _hoisted_2$
|
|
6383
|
+
createElementVNode("div", _hoisted_2$w, [
|
|
6380
6384
|
renderSlot(_ctx.$slots, "header")
|
|
6381
6385
|
]),
|
|
6382
6386
|
createElementVNode("div", _hoisted_3$m, [
|
|
@@ -6386,7 +6390,7 @@ function _sfc_render$2(_ctx, _cache) {
|
|
|
6386
6390
|
}
|
|
6387
6391
|
const ListView = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$2]]);
|
|
6388
6392
|
const _hoisted_1$J = { class: "no-margin ellipsis line-height-14 pb-025" };
|
|
6389
|
-
const _hoisted_2$
|
|
6393
|
+
const _hoisted_2$v = { class: "txt12 no-margin txt-gray ellipsis" };
|
|
6390
6394
|
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
6391
6395
|
__name: "ListItem",
|
|
6392
6396
|
props: {
|
|
@@ -6425,7 +6429,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
6425
6429
|
createTextVNode(toDisplayString(_ctx.title) + " ", 1),
|
|
6426
6430
|
renderSlot(_ctx.$slots, "default")
|
|
6427
6431
|
]),
|
|
6428
|
-
createElementVNode("p", _hoisted_2$
|
|
6432
|
+
createElementVNode("p", _hoisted_2$v, [
|
|
6429
6433
|
createTextVNode(toDisplayString(_ctx.subtitle) + " ", 1),
|
|
6430
6434
|
renderSlot(_ctx.$slots, "subtitle")
|
|
6431
6435
|
])
|
|
@@ -6437,7 +6441,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
6437
6441
|
}
|
|
6438
6442
|
});
|
|
6439
6443
|
const _hoisted_1$I = { class: "page-top" };
|
|
6440
|
-
const _hoisted_2$
|
|
6444
|
+
const _hoisted_2$u = { class: "top-title m-0" };
|
|
6441
6445
|
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
6442
6446
|
__name: "PageTitle",
|
|
6443
6447
|
props: {
|
|
@@ -6449,7 +6453,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
6449
6453
|
setup(__props) {
|
|
6450
6454
|
return (_ctx, _cache) => {
|
|
6451
6455
|
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
6452
|
-
createElementVNode("h1", _hoisted_2$
|
|
6456
|
+
createElementVNode("h1", _hoisted_2$u, [
|
|
6453
6457
|
renderSlot(_ctx.$slots, "default"),
|
|
6454
6458
|
createTextVNode(" " + toDisplayString(__props.value), 1)
|
|
6455
6459
|
])
|
|
@@ -6776,9 +6780,9 @@ const _hoisted_1$H = {
|
|
|
6776
6780
|
key: 0,
|
|
6777
6781
|
class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
|
|
6778
6782
|
};
|
|
6779
|
-
const _hoisted_2$
|
|
6783
|
+
const _hoisted_2$t = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1));
|
|
6780
6784
|
const _hoisted_3$l = [
|
|
6781
|
-
_hoisted_2$
|
|
6785
|
+
_hoisted_2$t
|
|
6782
6786
|
];
|
|
6783
6787
|
const _hoisted_4$f = { class: "infinite-wrapper" };
|
|
6784
6788
|
const _hoisted_5$e = { class: "row first-row" };
|
|
@@ -7044,7 +7048,7 @@ const _hoisted_1$F = {
|
|
|
7044
7048
|
key: 0,
|
|
7045
7049
|
class: "data"
|
|
7046
7050
|
};
|
|
7047
|
-
const _hoisted_2$
|
|
7051
|
+
const _hoisted_2$s = {
|
|
7048
7052
|
key: 0,
|
|
7049
7053
|
class: "data-row m_py-05"
|
|
7050
7054
|
};
|
|
@@ -7106,7 +7110,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
7106
7110
|
return openBlock(), createElementBlock(Fragment$1, {
|
|
7107
7111
|
key: field.id
|
|
7108
7112
|
}, [
|
|
7109
|
-
unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
7113
|
+
unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$s, [
|
|
7110
7114
|
createElementVNode("div", _hoisted_3$k, [
|
|
7111
7115
|
createElementVNode("p", _hoisted_4$e, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1)
|
|
7112
7116
|
]),
|
|
@@ -7202,12 +7206,12 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
7202
7206
|
}, null, 8, _hoisted_1$D)) : (openBlock(), createElementBlock("p", {
|
|
7203
7207
|
key: 1,
|
|
7204
7208
|
style: normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
|
|
7205
|
-
}, toDisplayString(_ctx.fallback || unref(initials)(_ctx.name || "")), 5))
|
|
7209
|
+
}, toDisplayString((_ctx.fallback || unref(initials)(_ctx.name || "")).toUpperCase()), 5))
|
|
7206
7210
|
], 4);
|
|
7207
7211
|
};
|
|
7208
7212
|
}
|
|
7209
7213
|
});
|
|
7210
|
-
const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-
|
|
7214
|
+
const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-46ad8c25"]]);
|
|
7211
7215
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
7212
7216
|
__name: "Title",
|
|
7213
7217
|
props: {
|
|
@@ -7251,7 +7255,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
7251
7255
|
}
|
|
7252
7256
|
});
|
|
7253
7257
|
const _hoisted_1$C = ["dismissable"];
|
|
7254
|
-
const _hoisted_2$
|
|
7258
|
+
const _hoisted_2$r = { class: "m-0" };
|
|
7255
7259
|
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
7256
7260
|
__name: "Alert",
|
|
7257
7261
|
props: {
|
|
@@ -7280,7 +7284,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
7280
7284
|
size: 2,
|
|
7281
7285
|
color: color2[_ctx.type]
|
|
7282
7286
|
}, null, 8, ["icon", "color"])) : createCommentVNode("", true),
|
|
7283
|
-
createElementVNode("p", _hoisted_2$
|
|
7287
|
+
createElementVNode("p", _hoisted_2$r, toDisplayString(_ctx.message), 1),
|
|
7284
7288
|
createVNode(Btn, {
|
|
7285
7289
|
flat: "",
|
|
7286
7290
|
thin: "",
|
|
@@ -7326,7 +7330,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
7326
7330
|
});
|
|
7327
7331
|
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-40a0b03a"]]);
|
|
7328
7332
|
const _hoisted_1$B = ["src"];
|
|
7329
|
-
const _hoisted_2$
|
|
7333
|
+
const _hoisted_2$q = ["src", "autoplay", "muted", "loop", "controls"];
|
|
7330
7334
|
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
7331
7335
|
__name: "BglVideo",
|
|
7332
7336
|
props: {
|
|
@@ -7391,7 +7395,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
7391
7395
|
style: normalizeStyle({ aspectRatio: aspectRatio.value }),
|
|
7392
7396
|
controls: _ctx.controls,
|
|
7393
7397
|
playsinline: ""
|
|
7394
|
-
}, null, 12, _hoisted_2$
|
|
7398
|
+
}, null, 12, _hoisted_2$q)) : createCommentVNode("", true)
|
|
7395
7399
|
], 2);
|
|
7396
7400
|
};
|
|
7397
7401
|
}
|
|
@@ -7401,7 +7405,7 @@ const _hoisted_1$A = {
|
|
|
7401
7405
|
key: 0,
|
|
7402
7406
|
class: "blocker"
|
|
7403
7407
|
};
|
|
7404
|
-
const _hoisted_2$
|
|
7408
|
+
const _hoisted_2$p = { class: "Handlers" };
|
|
7405
7409
|
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
7406
7410
|
__name: "Carousel",
|
|
7407
7411
|
props: {
|
|
@@ -7553,7 +7557,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
7553
7557
|
unref(isDragging) ? (openBlock(), createElementBlock("div", _hoisted_1$A)) : createCommentVNode("", true),
|
|
7554
7558
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
7555
7559
|
], 34),
|
|
7556
|
-
createElementVNode("div", _hoisted_2$
|
|
7560
|
+
createElementVNode("div", _hoisted_2$p, [
|
|
7557
7561
|
createElementVNode("span", { onClick: prev }, [
|
|
7558
7562
|
renderSlot(_ctx.$slots, "prev", {
|
|
7559
7563
|
prev,
|
|
@@ -7572,8 +7576,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
7572
7576
|
}
|
|
7573
7577
|
});
|
|
7574
7578
|
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-1f9c6644"]]);
|
|
7575
|
-
const _hoisted_1$z = { class: "
|
|
7576
|
-
const _hoisted_2$p = { class: "px-1 py-1 pretty m-0" };
|
|
7579
|
+
const _hoisted_1$z = { class: "pb-05 pretty" };
|
|
7577
7580
|
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
7578
7581
|
__name: "ModalConfirm",
|
|
7579
7582
|
props: {
|
|
@@ -7591,6 +7594,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
7591
7594
|
}
|
|
7592
7595
|
return (_ctx, _cache) => {
|
|
7593
7596
|
return openBlock(), createBlock(unref(_sfc_main$P), {
|
|
7597
|
+
title: _ctx.title,
|
|
7594
7598
|
width: "380px",
|
|
7595
7599
|
dismissable: false,
|
|
7596
7600
|
class: "txt-center"
|
|
@@ -7609,11 +7613,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
7609
7613
|
})
|
|
7610
7614
|
]),
|
|
7611
7615
|
default: withCtx(() => [
|
|
7612
|
-
createElementVNode("
|
|
7613
|
-
createElementVNode("p", _hoisted_2$p, toDisplayString(_ctx.message), 1)
|
|
7616
|
+
createElementVNode("p", _hoisted_1$z, toDisplayString(_ctx.message), 1)
|
|
7614
7617
|
]),
|
|
7615
7618
|
_: 1
|
|
7616
|
-
});
|
|
7619
|
+
}, 8, ["title"]);
|
|
7617
7620
|
};
|
|
7618
7621
|
}
|
|
7619
7622
|
});
|
|
@@ -8134,7 +8137,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
8134
8137
|
}
|
|
8135
8138
|
});
|
|
8136
8139
|
const _hoisted_1$v = ["title"];
|
|
8137
|
-
const _hoisted_2$o = ["id", "required"];
|
|
8140
|
+
const _hoisted_2$o = ["id", "value", "required"];
|
|
8138
8141
|
const _hoisted_3$j = ["for"];
|
|
8139
8142
|
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
8140
8143
|
__name: "CheckInput",
|
|
@@ -8144,9 +8147,10 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
8144
8147
|
title: {},
|
|
8145
8148
|
small: { type: Boolean },
|
|
8146
8149
|
required: { type: Boolean },
|
|
8147
|
-
defaultValue: { type: Boolean, default: false }
|
|
8150
|
+
defaultValue: { type: Boolean, default: false },
|
|
8151
|
+
value: {}
|
|
8148
8152
|
}, {
|
|
8149
|
-
"modelValue": { type: Boolean, ...{ default: void 0 } },
|
|
8153
|
+
"modelValue": { type: [Boolean, Array], ...{ default: void 0 } },
|
|
8150
8154
|
"modelModifiers": {}
|
|
8151
8155
|
}),
|
|
8152
8156
|
emits: ["update:modelValue"],
|
|
@@ -8165,6 +8169,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
8165
8169
|
withDirectives(createElementVNode("input", {
|
|
8166
8170
|
id: inputId.value,
|
|
8167
8171
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checked.value = $event),
|
|
8172
|
+
value: _ctx.value,
|
|
8168
8173
|
required: _ctx.required,
|
|
8169
8174
|
type: "checkbox",
|
|
8170
8175
|
class: "me-05"
|
|
@@ -8180,7 +8185,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
8180
8185
|
};
|
|
8181
8186
|
}
|
|
8182
8187
|
});
|
|
8183
|
-
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-
|
|
8188
|
+
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-1b4d18c6"]]);
|
|
8184
8189
|
function toDate(argument) {
|
|
8185
8190
|
const argStr = Object.prototype.toString.call(argument);
|
|
8186
8191
|
if (argument instanceof Date || typeof argument === "object" && argStr === "[object Date]") {
|
|
@@ -46579,8 +46584,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
46579
46584
|
"name": "",
|
|
46580
46585
|
"readonly": false,
|
|
46581
46586
|
"tabindex": 0,
|
|
46582
|
-
"style": ""
|
|
46583
|
-
|
|
46587
|
+
"style": ""
|
|
46588
|
+
// 'placeholder': 'Enter a phone number',
|
|
46584
46589
|
};
|
|
46585
46590
|
const computedDropDownOptions = computed(() => ({
|
|
46586
46591
|
...defaultDropdownOptions,
|
|
@@ -46832,7 +46837,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
46832
46837
|
id: _ctx.id,
|
|
46833
46838
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => phone.value = $event),
|
|
46834
46839
|
required: _ctx.required,
|
|
46835
|
-
placeholder:
|
|
46840
|
+
placeholder: props2.placeholder || "Enter a phone number",
|
|
46836
46841
|
disabled: _ctx.disabled,
|
|
46837
46842
|
type: "tel",
|
|
46838
46843
|
autocomplete: _ctx.autocomplete,
|
|
@@ -46861,7 +46866,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
46861
46866
|
};
|
|
46862
46867
|
}
|
|
46863
46868
|
});
|
|
46864
|
-
const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
46869
|
+
const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-17a4fdd5"]]);
|
|
46865
46870
|
/*!
|
|
46866
46871
|
* Signature Pad v5.0.3 | https://github.com/szimek/signature_pad
|
|
46867
46872
|
* (c) 2024 Szymon Nowak | Released under the MIT license
|
package/dist/plugins/modal.d.ts
CHANGED
|
@@ -9,25 +9,22 @@ export interface ModalOptions {
|
|
|
9
9
|
class?: string;
|
|
10
10
|
visible?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export interface ModalFormOptions {
|
|
13
|
-
'side'?: boolean;
|
|
14
|
-
'title'?: string;
|
|
15
|
-
'visible'?: boolean;
|
|
16
|
-
'width'?: string;
|
|
17
|
-
'dismissable'?: boolean;
|
|
12
|
+
export interface ModalFormOptions extends ModalOptions {
|
|
18
13
|
'schema': BglFormSchemaT<any> | (() => BglFormSchemaT) | BglFormSchemaT;
|
|
19
14
|
'onSubmit'?: (formData: any) => any;
|
|
20
15
|
'onDelete'?: (id: string) => Promise<void>;
|
|
21
|
-
'onError'?: (
|
|
16
|
+
'onError'?: (err: any) => void;
|
|
22
17
|
'modelValue'?: Record<string, any>;
|
|
23
18
|
'onUpdate:modelValue'?: (val: any) => void;
|
|
24
19
|
}
|
|
25
20
|
export interface ModalConfirmOptions {
|
|
26
|
-
title
|
|
27
|
-
message
|
|
28
|
-
resolve: (val: boolean) => void;
|
|
21
|
+
'title': string;
|
|
22
|
+
'message': string;
|
|
23
|
+
'resolve': (val: boolean) => void;
|
|
24
|
+
'onUpdate:visible': () => void;
|
|
25
|
+
'visible': boolean;
|
|
29
26
|
}
|
|
30
|
-
type ModalType = 'modal' | 'modalForm' | '
|
|
27
|
+
type ModalType = 'modal' | 'modalForm' | 'confirmModal';
|
|
31
28
|
type ConfirmModalUserOptions = string | {
|
|
32
29
|
title: string;
|
|
33
30
|
message: string;
|
|
@@ -37,8 +34,7 @@ export interface ModalComponentProps {
|
|
|
37
34
|
modalType: ModalType;
|
|
38
35
|
modalOptions: ModalOptions | ModalFormOptions | ModalConfirmOptions;
|
|
39
36
|
}
|
|
40
|
-
export interface ModalFormComponentProps {
|
|
41
|
-
componentSlots: Record<string, any>;
|
|
37
|
+
export interface ModalFormComponentProps extends ModalComponentProps {
|
|
42
38
|
modalType: 'modalForm';
|
|
43
39
|
modalOptions: ModalFormOptions;
|
|
44
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/plugins/modal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/plugins/modal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAI/D,MAAM,WAAW,YAAY;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,UAAU,EAAE,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACrD,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,cAAc,CAAC,GAAG,cAAc,CAAA;IACvE,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,GAAG,CAAA;IACnC,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC1C,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAA;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAClC,qBAAqB,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAA;CAC1C;AAED,MAAM,WAAW,mBAAmB;IACnC,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAA;IACjC,kBAAkB,EAAE,MAAM,IAAI,CAAA;IAC9B,SAAS,EAAE,OAAO,CAAA;CAClB;AAED,KAAK,SAAS,GAAG,OAAO,GAAG,WAAW,GAAG,cAAc,CAAA;AACvD,KAAK,uBAAuB,GAAG,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA;AAE1E,MAAM,WAAW,mBAAmB;IACnC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACnC,SAAS,EAAE,SAAS,CAAA;IACpB,YAAY,EAAE,YAAY,GAAG,gBAAgB,GAAG,mBAAmB,CAAA;CACnE;AAED,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB;IACnE,SAAS,EAAE,WAAW,CAAA;IACtB,YAAY,EAAE,gBAAgB,CAAA;CAC9B;AAED,MAAM,WAAW,QAAQ;IACxB,SAAS,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,mBAAmB,GAAG,SAAS,CAAA;IAClG,aAAa,EAAE,CAAC,OAAO,EAAE,gBAAgB,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,uBAAuB,GAAG,SAAS,CAAA;IAC9G,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,YAAY,EAAE,CAAC,OAAO,EAAE,uBAAuB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;CACpE;AAED,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,QAAQ,CAAmB,CAAA;AAElE,wBAAgB,QAAQ,IAAI,QAAQ,CAInC;AAED,eAAO,MAAM,WAAW,EAAE,MAsEzB,CAAA"}
|