@bagelink/vue 0.0.260 → 0.0.262
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/Modal.vue.d.ts.map +1 -1
- package/dist/components/ModalForm.vue.d.ts +6 -0
- package/dist/components/ModalForm.vue.d.ts.map +1 -1
- package/dist/components/TableSchema.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts +2 -0
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TextArea.vue.d.ts +2 -0
- package/dist/components/form/inputs/TextArea.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
- package/dist/index.cjs +59 -34
- package/dist/index.mjs +59 -34
- package/dist/plugins/modal.d.ts +1 -0
- package/dist/plugins/modal.d.ts.map +1 -1
- package/dist/style.css +42 -42
- package/package.json +1 -1
- package/src/components/Modal.vue +29 -6
- package/src/components/ModalForm.vue +43 -12
- package/src/components/TableSchema.vue +11 -3
- package/src/components/form/inputs/SelectInput.vue +12 -3
- package/src/components/form/inputs/TextArea.vue +2 -0
- package/src/components/form/inputs/TextInput.vue +55 -15
- package/src/plugins/modal.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -14619,7 +14619,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
14619
14619
|
});
|
|
14620
14620
|
const _hoisted_1$F = { class: "full-nav" };
|
|
14621
14621
|
const _hoisted_2$z = { class: "nav-scroll" };
|
|
14622
|
-
const _hoisted_3$
|
|
14622
|
+
const _hoisted_3$q = { class: "nav-links-wrapper" };
|
|
14623
14623
|
const _hoisted_4$j = { class: "tooltip" };
|
|
14624
14624
|
const _hoisted_5$g = { class: "bot-buttons-wrapper" };
|
|
14625
14625
|
const _hoisted_6$b = { class: "tooltip" };
|
|
@@ -14654,7 +14654,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
14654
14654
|
], 32),
|
|
14655
14655
|
createElementVNode("div", _hoisted_1$F, [
|
|
14656
14656
|
createElementVNode("div", _hoisted_2$z, [
|
|
14657
|
-
createElementVNode("div", _hoisted_3$
|
|
14657
|
+
createElementVNode("div", _hoisted_3$q, [
|
|
14658
14658
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.links, (link) => {
|
|
14659
14659
|
return openBlock(), createBlock(resolveDynamicComponent(link.to ? "router-link" : "div"), {
|
|
14660
14660
|
class: "nav-button",
|
|
@@ -14909,13 +14909,15 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
14909
14909
|
schema: { type: Function },
|
|
14910
14910
|
onSubmit: { type: Function },
|
|
14911
14911
|
onDelete: { type: Function },
|
|
14912
|
-
"onUpdate:isModalVisible": { type: Function }
|
|
14912
|
+
"onUpdate:isModalVisible": { type: Function },
|
|
14913
|
+
onError: { type: Function }
|
|
14913
14914
|
}, {
|
|
14914
14915
|
"modelValue": { default: {} },
|
|
14915
14916
|
"modelModifiers": {}
|
|
14916
14917
|
}),
|
|
14917
14918
|
emits: ["update:modelValue"],
|
|
14918
14919
|
setup(__props) {
|
|
14920
|
+
const bagel = useBagel();
|
|
14919
14921
|
const props2 = __props;
|
|
14920
14922
|
const modal = ref();
|
|
14921
14923
|
const computedFormSchema = computed(() => {
|
|
@@ -14930,14 +14932,17 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
14930
14932
|
return (_a2 = modal.value) == null ? void 0 : _a2.closeModal();
|
|
14931
14933
|
};
|
|
14932
14934
|
const runSubmit = async () => {
|
|
14933
|
-
var _a2, _b, _c;
|
|
14935
|
+
var _a2, _b, _c, _d;
|
|
14934
14936
|
if (((_b = (_a2 = form.value) == null ? void 0 : _a2.validateForm) == null ? void 0 : _b.call(_a2)) === false)
|
|
14935
14937
|
return;
|
|
14936
14938
|
try {
|
|
14937
14939
|
await ((_c = props2.onSubmit) == null ? void 0 : _c.call(props2, formData.value));
|
|
14938
14940
|
closeModal();
|
|
14939
14941
|
} catch (err) {
|
|
14940
|
-
|
|
14942
|
+
if (props2.onError)
|
|
14943
|
+
props2.onError(err);
|
|
14944
|
+
else
|
|
14945
|
+
(_d = bagel == null ? void 0 : bagel.onError) == null ? void 0 : _d.call(bagel, err);
|
|
14941
14946
|
}
|
|
14942
14947
|
};
|
|
14943
14948
|
const runDelete = () => {
|
|
@@ -14996,7 +15001,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
14996
15001
|
};
|
|
14997
15002
|
}
|
|
14998
15003
|
});
|
|
14999
|
-
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-
|
|
15004
|
+
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-82698669"]]);
|
|
15000
15005
|
const _hoisted_1$C = { class: "accordion-item" };
|
|
15001
15006
|
const _hoisted_2$w = {
|
|
15002
15007
|
key: 0,
|
|
@@ -15041,7 +15046,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
15041
15046
|
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-172f43f1"]]);
|
|
15042
15047
|
const _hoisted_1$B = { class: "card list-view grid thin" };
|
|
15043
15048
|
const _hoisted_2$v = { class: "list-header flex gap-3 align-items-top" };
|
|
15044
|
-
const _hoisted_3$
|
|
15049
|
+
const _hoisted_3$p = {
|
|
15045
15050
|
key: 0,
|
|
15046
15051
|
class: "bagel-input search-wrap"
|
|
15047
15052
|
};
|
|
@@ -15065,7 +15070,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
15065
15070
|
return (_ctx, _cache) => {
|
|
15066
15071
|
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
15067
15072
|
createElementVNode("div", _hoisted_2$v, [
|
|
15068
|
-
_ctx.enableSearch ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
15073
|
+
_ctx.enableSearch ? (openBlock(), createElementBlock("div", _hoisted_3$p, [
|
|
15069
15074
|
withDirectives(createElementVNode("input", {
|
|
15070
15075
|
placeholder: _ctx.searchPlaceholder,
|
|
15071
15076
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchTerm.value = $event),
|
|
@@ -15134,7 +15139,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
15134
15139
|
});
|
|
15135
15140
|
const _hoisted_1$z = { class: "card tabs-top" };
|
|
15136
15141
|
const _hoisted_2$t = { class: "tabs grid auto-flow-columns fit-content" };
|
|
15137
|
-
const _hoisted_3$
|
|
15142
|
+
const _hoisted_3$o = ["onClick"];
|
|
15138
15143
|
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
15139
15144
|
__name: "TabbedLayout",
|
|
15140
15145
|
props: {
|
|
@@ -15181,7 +15186,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
15181
15186
|
}, "tab"]),
|
|
15182
15187
|
key: tab,
|
|
15183
15188
|
onClick: ($event) => changeTab(tab)
|
|
15184
|
-
}, toDisplayString(tab), 11, _hoisted_3$
|
|
15189
|
+
}, toDisplayString(tab), 11, _hoisted_3$o);
|
|
15185
15190
|
}), 128))
|
|
15186
15191
|
])
|
|
15187
15192
|
]),
|
|
@@ -15200,7 +15205,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
15200
15205
|
const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-09fce741"]]);
|
|
15201
15206
|
const _hoisted_1$y = { class: "comments-wrap" };
|
|
15202
15207
|
const _hoisted_2$s = { class: "comment-list" };
|
|
15203
|
-
const _hoisted_3$
|
|
15208
|
+
const _hoisted_3$n = { class: "comment-top" };
|
|
15204
15209
|
const _hoisted_4$h = { class: "comment-owner" };
|
|
15205
15210
|
const _hoisted_5$e = { class: "comment-time" };
|
|
15206
15211
|
const _hoisted_6$a = { class: "comment-actions" };
|
|
@@ -15260,7 +15265,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
15260
15265
|
}, "comment"]),
|
|
15261
15266
|
key: comment.id
|
|
15262
15267
|
}, [
|
|
15263
|
-
createElementVNode("div", _hoisted_3$
|
|
15268
|
+
createElementVNode("div", _hoisted_3$n, [
|
|
15264
15269
|
createElementVNode("div", _hoisted_4$h, toDisplayString(comment.sender.first_name) + " " + toDisplayString(comment.sender.last_name), 1),
|
|
15265
15270
|
createElementVNode("div", _hoisted_5$e, toDisplayString(comment.updated_at.split("T")[0]), 1),
|
|
15266
15271
|
createElementVNode("div", _hoisted_6$a, [
|
|
@@ -15342,7 +15347,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
15342
15347
|
});
|
|
15343
15348
|
const _hoisted_1$w = { class: "table-list-wrap h-100" };
|
|
15344
15349
|
const _hoisted_2$q = { class: "infinite-wrapper" };
|
|
15345
|
-
const _hoisted_3$
|
|
15350
|
+
const _hoisted_3$m = { class: "row first-row" };
|
|
15346
15351
|
const _hoisted_4$g = ["onClick"];
|
|
15347
15352
|
const _hoisted_5$d = { class: "flex" };
|
|
15348
15353
|
const _hoisted_6$9 = ["onClick"];
|
|
@@ -15383,7 +15388,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
15383
15388
|
return (_ctx, _cache) => {
|
|
15384
15389
|
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
15385
15390
|
createElementVNode("table", _hoisted_2$q, [
|
|
15386
|
-
createElementVNode("thead", _hoisted_3$
|
|
15391
|
+
createElementVNode("thead", _hoisted_3$m, [
|
|
15387
15392
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(computedSchema.value, (field) => {
|
|
15388
15393
|
return openBlock(), createElementBlock("th", {
|
|
15389
15394
|
class: "col",
|
|
@@ -15439,7 +15444,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
15439
15444
|
};
|
|
15440
15445
|
}
|
|
15441
15446
|
});
|
|
15442
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-
|
|
15447
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-2137a7a8"]]);
|
|
15443
15448
|
const _sfc_main$p = {};
|
|
15444
15449
|
const _hoisted_1$v = { class: "flex space-between" };
|
|
15445
15450
|
function _sfc_render$1(_ctx, _cache) {
|
|
@@ -15479,7 +15484,7 @@ const _hoisted_2$p = {
|
|
|
15479
15484
|
key: 0,
|
|
15480
15485
|
class: "data-row"
|
|
15481
15486
|
};
|
|
15482
|
-
const _hoisted_3$
|
|
15487
|
+
const _hoisted_3$l = { class: "key" };
|
|
15483
15488
|
const _hoisted_4$f = { key: 1 };
|
|
15484
15489
|
const _hoisted_5$c = { class: "key" };
|
|
15485
15490
|
const _hoisted_6$8 = { class: "vlue" };
|
|
@@ -15507,7 +15512,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
15507
15512
|
key: field.id
|
|
15508
15513
|
}, [
|
|
15509
15514
|
unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$p, [
|
|
15510
|
-
createElementVNode("div", _hoisted_3$
|
|
15515
|
+
createElementVNode("div", _hoisted_3$l, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1),
|
|
15511
15516
|
createVNode(unref(_sfc_main$h), {
|
|
15512
15517
|
field,
|
|
15513
15518
|
modelValue: itemData.value,
|
|
@@ -15613,7 +15618,7 @@ const _hoisted_2$o = {
|
|
|
15613
15618
|
key: 0,
|
|
15614
15619
|
class: "group-wrap"
|
|
15615
15620
|
};
|
|
15616
|
-
const _hoisted_3$
|
|
15621
|
+
const _hoisted_3$k = { class: "group-title" };
|
|
15617
15622
|
const _hoisted_4$e = {
|
|
15618
15623
|
key: 1,
|
|
15619
15624
|
class: "bar-wrap"
|
|
@@ -15681,7 +15686,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
15681
15686
|
key: i2
|
|
15682
15687
|
}, [
|
|
15683
15688
|
item.group ? (openBlock(), createElementBlock("div", _hoisted_2$o, [
|
|
15684
|
-
createElementVNode("p", _hoisted_3$
|
|
15689
|
+
createElementVNode("p", _hoisted_3$k, toDisplayString(item.group), 1),
|
|
15685
15690
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList((item == null ? void 0 : item.data) || [], (nested, i22) => {
|
|
15686
15691
|
return openBlock(), createElementBlock("div", {
|
|
15687
15692
|
key: i22,
|
|
@@ -15919,7 +15924,7 @@ const _hoisted_2$n = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ create
|
|
|
15919
15924
|
}, [
|
|
15920
15925
|
/* @__PURE__ */ createElementVNode("path", { d: "M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z" })
|
|
15921
15926
|
], -1));
|
|
15922
|
-
const _hoisted_3$
|
|
15927
|
+
const _hoisted_3$j = [
|
|
15923
15928
|
_hoisted_2$n
|
|
15924
15929
|
];
|
|
15925
15930
|
const _hoisted_4$d = ["id"];
|
|
@@ -15945,7 +15950,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
15945
15950
|
createElementVNode("div", {
|
|
15946
15951
|
class: normalizeClass(["check-square", { checked: checked.value }]),
|
|
15947
15952
|
onClick: _cache[0] || (_cache[0] = ($event) => checked.value = !checked.value)
|
|
15948
|
-
}, _hoisted_3$
|
|
15953
|
+
}, _hoisted_3$j, 2),
|
|
15949
15954
|
createElementVNode("label", null, [
|
|
15950
15955
|
withDirectives(createElementVNode("input", {
|
|
15951
15956
|
id: _ctx.id,
|
|
@@ -24622,7 +24627,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
24622
24627
|
});
|
|
24623
24628
|
const _hoisted_1$p = ["title"];
|
|
24624
24629
|
const _hoisted_2$l = { key: 0 };
|
|
24625
|
-
const _hoisted_3$
|
|
24630
|
+
const _hoisted_3$i = ["value", "placeholder"];
|
|
24626
24631
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
24627
24632
|
__name: "JSONInput",
|
|
24628
24633
|
props: {
|
|
@@ -24654,7 +24659,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
24654
24659
|
onInput: handleInput,
|
|
24655
24660
|
class: normalizeClass({ "no-edit": !_ctx.editMode }),
|
|
24656
24661
|
placeholder: _ctx.placeholder
|
|
24657
|
-
}, null, 42, _hoisted_3$
|
|
24662
|
+
}, null, 42, _hoisted_3$i)
|
|
24658
24663
|
], 10, _hoisted_1$p);
|
|
24659
24664
|
};
|
|
24660
24665
|
}
|
|
@@ -25652,7 +25657,7 @@ const _hoisted_1$o = {
|
|
|
25652
25657
|
class: "multiselect__tags"
|
|
25653
25658
|
};
|
|
25654
25659
|
const _hoisted_2$k = { class: "multiselect__tags-wrap" };
|
|
25655
|
-
const _hoisted_3$
|
|
25660
|
+
const _hoisted_3$h = { class: "multiselect__spinner" };
|
|
25656
25661
|
const _hoisted_4$c = { key: 0 };
|
|
25657
25662
|
const _hoisted_5$a = { class: "multiselect__option" };
|
|
25658
25663
|
const _hoisted_6$6 = { class: "multiselect__option" };
|
|
@@ -25747,7 +25752,7 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25747
25752
|
renderSlot(_ctx.$slots, "loading", {}, () => [
|
|
25748
25753
|
withDirectives(createVNode(
|
|
25749
25754
|
"div",
|
|
25750
|
-
_hoisted_3$
|
|
25755
|
+
_hoisted_3$h,
|
|
25751
25756
|
null,
|
|
25752
25757
|
512
|
|
25753
25758
|
/* NEED_PATCH */
|
|
@@ -25967,6 +25972,7 @@ script$e.render = render$e;
|
|
|
25967
25972
|
const Multiselect = script$e;
|
|
25968
25973
|
const _hoisted_1$n = { class: "pb-1" };
|
|
25969
25974
|
const _hoisted_2$j = ["for"];
|
|
25975
|
+
const _hoisted_3$g = ["name", "required"];
|
|
25970
25976
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
25971
25977
|
__name: "SelectInput",
|
|
25972
25978
|
props: {
|
|
@@ -25976,7 +25982,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
25976
25982
|
modelValue: {},
|
|
25977
25983
|
placeholder: {},
|
|
25978
25984
|
defaultValue: {},
|
|
25979
|
-
options: {}
|
|
25985
|
+
options: {},
|
|
25986
|
+
extraProps: {}
|
|
25980
25987
|
},
|
|
25981
25988
|
emits: ["update:modelValue"],
|
|
25982
25989
|
setup(__props, { emit: __emit }) {
|
|
@@ -26015,7 +26022,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
26015
26022
|
for: _ctx.id
|
|
26016
26023
|
}, [
|
|
26017
26024
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
26018
|
-
createVNode(unref(Multiselect), {
|
|
26025
|
+
createVNode(unref(Multiselect), mergeProps({
|
|
26019
26026
|
ref_key: "multiselect",
|
|
26020
26027
|
ref: multiselect,
|
|
26021
26028
|
id: _ctx.id,
|
|
@@ -26026,7 +26033,15 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
26026
26033
|
placeholder: _ctx.placeholder,
|
|
26027
26034
|
modelValue: seletValue.value,
|
|
26028
26035
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => seletValue.value = $event)
|
|
26029
|
-
}, null,
|
|
26036
|
+
}, _ctx.extraProps), null, 16, ["id", "options", "required", "placeholder", "modelValue"]),
|
|
26037
|
+
withDirectives(createElementVNode("input", mergeProps({
|
|
26038
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => seletValue.value = $event),
|
|
26039
|
+
type: "hidden",
|
|
26040
|
+
name: _ctx.id,
|
|
26041
|
+
required: _ctx.required
|
|
26042
|
+
}, _ctx.extraProps), null, 16, _hoisted_3$g), [
|
|
26043
|
+
[vModelText, seletValue.value]
|
|
26044
|
+
])
|
|
26030
26045
|
], 8, _hoisted_2$j)
|
|
26031
26046
|
]);
|
|
26032
26047
|
};
|
|
@@ -28828,7 +28843,16 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
28828
28843
|
);
|
|
28829
28844
|
return (_ctx, _cache) => {
|
|
28830
28845
|
return openBlock(), createElementBlock("div", {
|
|
28831
|
-
class: normalizeClass(["bagel-input text-input", {
|
|
28846
|
+
class: normalizeClass(["bagel-input text-input", {
|
|
28847
|
+
dense: _ctx.dense,
|
|
28848
|
+
small: _ctx.small,
|
|
28849
|
+
shrink: _ctx.shrink,
|
|
28850
|
+
toggleEdit: _ctx.toggleEdit,
|
|
28851
|
+
editMode: unref(editMode),
|
|
28852
|
+
code: _ctx.code,
|
|
28853
|
+
textInputIconWrap: _ctx.icon,
|
|
28854
|
+
txtInputIconStart: _ctx.iconStart
|
|
28855
|
+
}]),
|
|
28832
28856
|
title: _ctx.title
|
|
28833
28857
|
}, [
|
|
28834
28858
|
createElementVNode("label", { for: _ctx.id }, [
|
|
@@ -28888,14 +28912,14 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
28888
28912
|
};
|
|
28889
28913
|
}
|
|
28890
28914
|
});
|
|
28891
|
-
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-
|
|
28915
|
+
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-e116816b"]]);
|
|
28892
28916
|
const _hoisted_1$j = ["title"];
|
|
28893
28917
|
const _hoisted_2$f = { key: 0 };
|
|
28894
28918
|
const _hoisted_3$c = {
|
|
28895
28919
|
key: 1,
|
|
28896
28920
|
class: "character-limit"
|
|
28897
28921
|
};
|
|
28898
|
-
const _hoisted_4$9 = ["value"];
|
|
28922
|
+
const _hoisted_4$9 = ["value", "required"];
|
|
28899
28923
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
28900
28924
|
__name: "TextArea",
|
|
28901
28925
|
props: {
|
|
@@ -28906,7 +28930,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
28906
28930
|
editMode: { type: Boolean, default: true },
|
|
28907
28931
|
small: { type: Boolean },
|
|
28908
28932
|
nativeInputAttrs: {},
|
|
28909
|
-
showCharacterLimit: { type: Boolean }
|
|
28933
|
+
showCharacterLimit: { type: Boolean },
|
|
28934
|
+
required: { type: Boolean }
|
|
28910
28935
|
},
|
|
28911
28936
|
emits: ["update:modelValue"],
|
|
28912
28937
|
setup(__props, { emit: __emit }) {
|
|
@@ -28929,12 +28954,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
28929
28954
|
value: _ctx.modelValue,
|
|
28930
28955
|
onInput: handleInput,
|
|
28931
28956
|
class: { "no-edit": !_ctx.editMode }
|
|
28932
|
-
}, _ctx.nativeInputAttrs), null, 16, _hoisted_4$9)
|
|
28957
|
+
}, _ctx.nativeInputAttrs, { required: _ctx.required }), null, 16, _hoisted_4$9)
|
|
28933
28958
|
], 10, _hoisted_1$j);
|
|
28934
28959
|
};
|
|
28935
28960
|
}
|
|
28936
28961
|
});
|
|
28937
|
-
const TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
28962
|
+
const TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-64dc9f53"]]);
|
|
28938
28963
|
const _hoisted_1$i = { class: "primary-checkbox" };
|
|
28939
28964
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
28940
28965
|
__name: "Checkbox",
|
package/dist/plugins/modal.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ interface ModalFormOptions {
|
|
|
16
16
|
modelValue?: Record<string, any>;
|
|
17
17
|
onSubmit?: (formData: any) => Promise<any>;
|
|
18
18
|
onDelete?: (id: string) => Promise<void>;
|
|
19
|
+
onError?: ((err: any) => void);
|
|
19
20
|
}
|
|
20
21
|
interface ModalApi {
|
|
21
22
|
showModal: (options: ModalOptions, slots?: Record<string, any>) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/plugins/modal.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACf,MAAM,KAAK,CAAC;AACb,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhE,UAAU,YAAY;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,UAAU,gBAAgB;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,cAAc,CAAC,CAAC;IACrD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC3C,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/plugins/modal.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACf,MAAM,KAAK,CAAC;AACb,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhE,UAAU,YAAY;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,UAAU,gBAAgB;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,cAAc,CAAC,CAAC;IACrD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC3C,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzC,OAAO,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC,CAAC;CAC/B;AAED,UAAU,QAAQ;IACjB,SAAS,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IACxE,aAAa,EAAE,CAAC,OAAO,EAAE,gBAAgB,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAChF,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,QAAQ,CAAmB,CAAC;AAEnE,eAAO,MAAM,QAAQ,QAAO,QAI3B,CAAC;AAQF,eAAO,MAAM,WAAW,EAAE,MAuCzB,CAAC"}
|
package/dist/style.css
CHANGED
|
@@ -546,11 +546,11 @@
|
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
548
|
|
|
549
|
-
.modal-title[data-v-
|
|
549
|
+
.modal-title[data-v-82698669] {
|
|
550
550
|
margin-top: 0.5rem;
|
|
551
551
|
}
|
|
552
552
|
@media screen and (max-width: 910px) {
|
|
553
|
-
.modal-title[data-v-
|
|
553
|
+
.modal-title[data-v-82698669] {
|
|
554
554
|
margin-top: 1rem;
|
|
555
555
|
}
|
|
556
556
|
}
|
|
@@ -741,37 +741,37 @@
|
|
|
741
741
|
border-radius: var(--btn-border-radius);
|
|
742
742
|
}
|
|
743
743
|
|
|
744
|
-
.list-arrows[data-v-
|
|
744
|
+
.list-arrows[data-v-2137a7a8] {
|
|
745
745
|
opacity: 0;
|
|
746
746
|
}
|
|
747
|
-
.list-arrows .bgl_icon-font[data-v-
|
|
747
|
+
.list-arrows .bgl_icon-font[data-v-2137a7a8] {
|
|
748
748
|
transition: all ease-in-out 0.2s;
|
|
749
749
|
}
|
|
750
|
-
.list-arrows.sorted[data-v-
|
|
750
|
+
.list-arrows.sorted[data-v-2137a7a8] {
|
|
751
751
|
opacity: 1;
|
|
752
752
|
}
|
|
753
|
-
.col img[data-v-
|
|
753
|
+
.col img[data-v-2137a7a8] {
|
|
754
754
|
height: 35px;
|
|
755
755
|
margin-top: -14px;
|
|
756
756
|
margin-bottom: -14px;
|
|
757
757
|
border-radius: 5px;
|
|
758
758
|
}
|
|
759
|
-
.list-arrows.sorted .desc[data-v-
|
|
759
|
+
.list-arrows.sorted .desc[data-v-2137a7a8] {
|
|
760
760
|
transform: rotate(180deg);
|
|
761
761
|
}
|
|
762
|
-
table[data-v-
|
|
762
|
+
table[data-v-2137a7a8] {
|
|
763
763
|
border-collapse: separate;
|
|
764
764
|
border-spacing: 0 15px;
|
|
765
765
|
border-collapse: collapse;
|
|
766
766
|
}
|
|
767
|
-
th[data-v-
|
|
767
|
+
th[data-v-2137a7a8] {
|
|
768
768
|
font-weight: 400;
|
|
769
769
|
}
|
|
770
|
-
.row[data-v-
|
|
770
|
+
.row[data-v-2137a7a8] {
|
|
771
771
|
border-bottom: 1px solid var(--border-color);
|
|
772
772
|
cursor: pointer;
|
|
773
773
|
}
|
|
774
|
-
.row.first-row[data-v-
|
|
774
|
+
.row.first-row[data-v-2137a7a8] {
|
|
775
775
|
font-size: 0.8rem;
|
|
776
776
|
color: var(--bgl-black-tint);
|
|
777
777
|
position: sticky;
|
|
@@ -781,7 +781,7 @@ th[data-v-555ad739] {
|
|
|
781
781
|
height: 50px;
|
|
782
782
|
vertical-align: bottom;
|
|
783
783
|
}
|
|
784
|
-
.row.first-row[data-v-
|
|
784
|
+
.row.first-row[data-v-2137a7a8]::after {
|
|
785
785
|
content: "";
|
|
786
786
|
border-bottom: 1px solid var(--border-color);
|
|
787
787
|
position: absolute;
|
|
@@ -789,11 +789,11 @@ th[data-v-555ad739] {
|
|
|
789
789
|
right: 0;
|
|
790
790
|
bottom: -1px;
|
|
791
791
|
}
|
|
792
|
-
.first-row .col[data-v-
|
|
792
|
+
.first-row .col[data-v-2137a7a8] {
|
|
793
793
|
cursor: pointer;
|
|
794
794
|
background: var(--bgl-white);
|
|
795
795
|
}
|
|
796
|
-
.col[data-v-
|
|
796
|
+
.col[data-v-2137a7a8] {
|
|
797
797
|
white-space: nowrap;
|
|
798
798
|
padding: 14px;
|
|
799
799
|
transition: var(--bgl-transition);
|
|
@@ -802,16 +802,16 @@ th[data-v-555ad739] {
|
|
|
802
802
|
padding-right: 1rem;
|
|
803
803
|
align-items: center;
|
|
804
804
|
}
|
|
805
|
-
.col>div[data-v-
|
|
805
|
+
.col>div[data-v-2137a7a8] {
|
|
806
806
|
display: flex;
|
|
807
807
|
gap: 0.5rem;
|
|
808
808
|
}
|
|
809
|
-
.max-col-width[data-v-
|
|
809
|
+
.max-col-width[data-v-2137a7a8] {
|
|
810
810
|
max-width: 30vw;
|
|
811
811
|
overflow: hidden;
|
|
812
812
|
text-overflow: ellipsis;
|
|
813
813
|
}
|
|
814
|
-
.col.check .bgl_icon-font[data-v-
|
|
814
|
+
.col.check .bgl_icon-font[data-v-2137a7a8] {
|
|
815
815
|
border-radius: 100%;
|
|
816
816
|
background: var(--bgl-blue-20);
|
|
817
817
|
color: var(--bgl-primary);
|
|
@@ -822,27 +822,27 @@ th[data-v-555ad739] {
|
|
|
822
822
|
justify-content: center;
|
|
823
823
|
margin-top: -2px;
|
|
824
824
|
}
|
|
825
|
-
.rows[data-v-
|
|
825
|
+
.rows[data-v-2137a7a8] {
|
|
826
826
|
font-size: 0.8125em;
|
|
827
827
|
}
|
|
828
|
-
.table-list[data-v-
|
|
828
|
+
.table-list[data-v-2137a7a8] {
|
|
829
829
|
height: 100%;
|
|
830
830
|
position: relative;
|
|
831
831
|
padding-left: 0 !important;
|
|
832
832
|
padding-right: 0 !important;
|
|
833
833
|
overflow: auto;
|
|
834
834
|
}
|
|
835
|
-
.BagelTable .table-list[data-v-
|
|
835
|
+
.BagelTable .table-list[data-v-2137a7a8] {
|
|
836
836
|
overflow: unset;
|
|
837
837
|
}
|
|
838
|
-
.row-item[data-v-
|
|
838
|
+
.row-item[data-v-2137a7a8] {
|
|
839
839
|
height: 50px;
|
|
840
840
|
transition: all 200ms ease;
|
|
841
841
|
}
|
|
842
|
-
.row-item[data-v-
|
|
842
|
+
.row-item[data-v-2137a7a8]:hover {
|
|
843
843
|
background: var(--bgl-gray-light);
|
|
844
844
|
}
|
|
845
|
-
.infinite-wrapper[data-v-
|
|
845
|
+
.infinite-wrapper[data-v-2137a7a8] {
|
|
846
846
|
overflow-y: auto;
|
|
847
847
|
width: 100%;
|
|
848
848
|
}
|
|
@@ -1230,7 +1230,7 @@ fieldset[disabled] .multiselect {
|
|
|
1230
1230
|
padding-inline-start: 0rem;
|
|
1231
1231
|
}
|
|
1232
1232
|
.multiselect--active .multiselect__input {
|
|
1233
|
-
|
|
1233
|
+
margin-top: -0.6rem;
|
|
1234
1234
|
}
|
|
1235
1235
|
.multiselect__input::placeholder {
|
|
1236
1236
|
color: var(--input-color);
|
|
@@ -1676,77 +1676,77 @@ to {
|
|
|
1676
1676
|
/* width: auto; */
|
|
1677
1677
|
}
|
|
1678
1678
|
|
|
1679
|
-
.bagel-input textarea[data-v-
|
|
1679
|
+
.bagel-input textarea[data-v-e116816b] {
|
|
1680
1680
|
min-height: unset;
|
|
1681
1681
|
}
|
|
1682
|
-
.bagel-input.text-input textarea[data-v-
|
|
1682
|
+
.bagel-input.text-input textarea[data-v-e116816b] {
|
|
1683
1683
|
resize: none;
|
|
1684
1684
|
}
|
|
1685
|
-
.code textarea[data-v-
|
|
1685
|
+
.code textarea[data-v-e116816b] {
|
|
1686
1686
|
font-family: 'Inconsolata', monospace;
|
|
1687
1687
|
background: var(--bgl-black) !important;
|
|
1688
1688
|
color: var(--bgl-white) !important;
|
|
1689
1689
|
}
|
|
1690
|
-
.bagel-input.toggleEdit[data-v-
|
|
1690
|
+
.bagel-input.toggleEdit[data-v-e116816b]:hover {
|
|
1691
1691
|
background-color: var(--input-bg);
|
|
1692
1692
|
}
|
|
1693
|
-
.bagel-input.small[data-v-
|
|
1693
|
+
.bagel-input.small[data-v-e116816b] {
|
|
1694
1694
|
margin-bottom: 0;
|
|
1695
1695
|
height: 30px;
|
|
1696
1696
|
}
|
|
1697
|
-
.bagel-input.dense label[data-v-
|
|
1697
|
+
.bagel-input.dense label[data-v-e116816b] {
|
|
1698
1698
|
display: flex;
|
|
1699
1699
|
align-items: center;
|
|
1700
1700
|
gap: 0.5rem;
|
|
1701
1701
|
}
|
|
1702
|
-
.toggleEditBtn[data-v-
|
|
1702
|
+
.toggleEditBtn[data-v-e116816b] {
|
|
1703
1703
|
position: absolute;
|
|
1704
1704
|
right: -24px;
|
|
1705
1705
|
top: 4;
|
|
1706
1706
|
opacity: 0;
|
|
1707
1707
|
}
|
|
1708
|
-
.textInputIconWrap[data-v-
|
|
1708
|
+
.textInputIconWrap[data-v-e116816b] {
|
|
1709
1709
|
position: relative;
|
|
1710
1710
|
}
|
|
1711
|
-
.textInputIconWrap .bgl_icon-font[data-v-
|
|
1711
|
+
.textInputIconWrap .bgl_icon-font[data-v-e116816b] {
|
|
1712
1712
|
position: absolute;
|
|
1713
1713
|
inset-inline-end: 0.7rem;
|
|
1714
1714
|
bottom: 50%;
|
|
1715
1715
|
line-height: 0;
|
|
1716
1716
|
color: var(--bgl-gray);
|
|
1717
1717
|
}
|
|
1718
|
-
.txtInputIconStart .iconStart[data-v-
|
|
1718
|
+
.txtInputIconStart .iconStart[data-v-e116816b] {
|
|
1719
1719
|
position: absolute;
|
|
1720
1720
|
inset-inline-start: 0.7rem;
|
|
1721
1721
|
top: 50%;
|
|
1722
1722
|
line-height: 0;
|
|
1723
1723
|
color: var(--bgl-gray);
|
|
1724
1724
|
}
|
|
1725
|
-
.txtInputIconStart textarea[data-v-
|
|
1725
|
+
.txtInputIconStart textarea[data-v-e116816b] {
|
|
1726
1726
|
padding-inline-start: 2rem;
|
|
1727
1727
|
}
|
|
1728
|
-
.bagel-input:hover .toggleEditBtn[data-v-
|
|
1729
|
-
.bagel-input.editMode .toggleEditBtn[data-v-
|
|
1728
|
+
.bagel-input:hover .toggleEditBtn[data-v-e116816b],
|
|
1729
|
+
.bagel-input.editMode .toggleEditBtn[data-v-e116816b] {
|
|
1730
1730
|
opacity: 1;
|
|
1731
1731
|
}
|
|
1732
|
-
.bagel-input.small textarea[data-v-
|
|
1732
|
+
.bagel-input.small textarea[data-v-e116816b] {
|
|
1733
1733
|
height: 30px;
|
|
1734
1734
|
}
|
|
1735
1735
|
|
|
1736
|
-
.bagel-input[data-v-
|
|
1736
|
+
.bagel-input[data-v-64dc9f53] {
|
|
1737
1737
|
height: 100%;
|
|
1738
1738
|
margin: 0;
|
|
1739
1739
|
}
|
|
1740
|
-
.bagel-input label[data-v-
|
|
1740
|
+
.bagel-input label[data-v-64dc9f53] {
|
|
1741
1741
|
margin-bottom: 0;
|
|
1742
1742
|
}
|
|
1743
|
-
.bagel-input textarea[data-v-
|
|
1743
|
+
.bagel-input textarea[data-v-64dc9f53] {
|
|
1744
1744
|
height: 100%;
|
|
1745
1745
|
resize: none;
|
|
1746
1746
|
background: var(--input-bg);
|
|
1747
1747
|
margin-bottom: 0.5rem;
|
|
1748
1748
|
}
|
|
1749
|
-
.character-limit[data-v-
|
|
1749
|
+
.character-limit[data-v-64dc9f53] {
|
|
1750
1750
|
font-size: 0.6rem;
|
|
1751
1751
|
color: var(--input-color);
|
|
1752
1752
|
position: absolute;
|
package/package.json
CHANGED
package/src/components/Modal.vue
CHANGED
|
@@ -1,15 +1,38 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
<div
|
|
3
|
+
class="bg-dark"
|
|
4
|
+
:class="{ 'is-side': side, 'is-active': isActive, 'bg-lignt': false }"
|
|
5
|
+
@click="() => (dismissable ? closeModal() : '')"
|
|
6
|
+
@keydown.esc="closeModal"
|
|
7
|
+
>
|
|
8
|
+
<Card
|
|
9
|
+
class="modal"
|
|
10
|
+
@click.stop
|
|
11
|
+
>
|
|
5
12
|
<header class="tool-bar">
|
|
6
13
|
<slot name="toolbar" />
|
|
7
|
-
<Btn
|
|
8
|
-
|
|
14
|
+
<Btn
|
|
15
|
+
:style="{ float: side ? 'left' : 'right' }"
|
|
16
|
+
flat
|
|
17
|
+
icon="close"
|
|
18
|
+
@click="closeModal"
|
|
19
|
+
/>
|
|
20
|
+
<Title
|
|
21
|
+
class="modal-title"
|
|
22
|
+
tag="h3"
|
|
23
|
+
v-if="title"
|
|
24
|
+
:label="title"
|
|
25
|
+
/>
|
|
9
26
|
</header>
|
|
10
27
|
<slot />
|
|
11
28
|
<footer class="modal-footer mt-3">
|
|
12
|
-
<Btn
|
|
29
|
+
<Btn
|
|
30
|
+
v-for="(action, i) in actions"
|
|
31
|
+
:key="i"
|
|
32
|
+
@click="closeModal"
|
|
33
|
+
color="gray"
|
|
34
|
+
v-bind="action"
|
|
35
|
+
/>
|
|
13
36
|
<slot name="footer" />
|
|
14
37
|
</footer>
|
|
15
38
|
</Card>
|