@bagelink/vue 0.0.358 → 0.0.363
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/RouterWrapper.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText.vue.d.ts.map +1 -1
- package/dist/index.cjs +32 -26
- package/dist/index.mjs +33 -27
- package/dist/style.css +2 -0
- package/package.json +1 -1
- package/src/components/RouterWrapper.vue +4 -6
- package/src/components/form/inputs/RichText.vue +13 -3
- package/src/styles/theme.css +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RouterWrapper.vue.d.ts","sourceRoot":"","sources":["../../src/components/RouterWrapper.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"RouterWrapper.vue.d.ts","sourceRoot":"","sources":["../../src/components/RouterWrapper.vue"],"names":[],"mappings":";AA2EA,wBAKG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichText.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/RichText.vue"],"names":[],"mappings":"AAcA;;
|
|
1
|
+
{"version":3,"file":"RichText.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/RichText.vue"],"names":[],"mappings":"AAcA;;gBAgQyD,MAAM;;;;gBAAN,MAAM;;;;AAL/D,wBAOG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -5024,7 +5024,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
5024
5024
|
};
|
|
5025
5025
|
}
|
|
5026
5026
|
});
|
|
5027
|
-
const _hoisted_1$
|
|
5027
|
+
const _hoisted_1$D = { class: "full-nav" };
|
|
5028
5028
|
const _hoisted_2$v = { class: "nav-scroll" };
|
|
5029
5029
|
const _hoisted_3$m = { class: "nav-links-wrapper" };
|
|
5030
5030
|
const _hoisted_4$e = { class: "tooltip" };
|
|
@@ -5059,7 +5059,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
5059
5059
|
class: "top-arrow"
|
|
5060
5060
|
})
|
|
5061
5061
|
], 32),
|
|
5062
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
5062
|
+
vue.createElementVNode("div", _hoisted_1$D, [
|
|
5063
5063
|
vue.createElementVNode("div", _hoisted_2$v, [
|
|
5064
5064
|
vue.createElementVNode("div", _hoisted_3$m, [
|
|
5065
5065
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.links, (link) => {
|
|
@@ -5118,7 +5118,7 @@ const _export_sfc = (sfc, props2) => {
|
|
|
5118
5118
|
return target;
|
|
5119
5119
|
};
|
|
5120
5120
|
const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-727b754a"]]);
|
|
5121
|
-
const _hoisted_1$
|
|
5121
|
+
const _hoisted_1$C = {
|
|
5122
5122
|
key: 0,
|
|
5123
5123
|
class: "loading"
|
|
5124
5124
|
};
|
|
@@ -5213,7 +5213,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
5213
5213
|
})
|
|
5214
5214
|
}, {
|
|
5215
5215
|
default: vue.withCtx(() => [
|
|
5216
|
-
_ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5216
|
+
_ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$u, [
|
|
5217
5217
|
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$H), {
|
|
5218
5218
|
key: 0,
|
|
5219
5219
|
icon: _ctx.icon
|
|
@@ -5234,7 +5234,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
5234
5234
|
}
|
|
5235
5235
|
});
|
|
5236
5236
|
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-d09a83c5"]]);
|
|
5237
|
-
const _hoisted_1$
|
|
5237
|
+
const _hoisted_1$B = { class: "tool-bar" };
|
|
5238
5238
|
const _hoisted_2$t = { class: "modal-footer mt-3" };
|
|
5239
5239
|
const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
5240
5240
|
__name: "Modal",
|
|
@@ -5283,7 +5283,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
5283
5283
|
}, ["stop"]))
|
|
5284
5284
|
}, {
|
|
5285
5285
|
default: vue.withCtx(() => [
|
|
5286
|
-
vue.createElementVNode("header", _hoisted_1$
|
|
5286
|
+
vue.createElementVNode("header", _hoisted_1$B, [
|
|
5287
5287
|
vue.renderSlot(_ctx.$slots, "toolbar"),
|
|
5288
5288
|
vue.createVNode(vue.unref(Btn), {
|
|
5289
5289
|
style: vue.normalizeStyle({ float: _ctx.side ? "left" : "right" }),
|
|
@@ -5425,7 +5425,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
5425
5425
|
}
|
|
5426
5426
|
});
|
|
5427
5427
|
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-7e6899c7"]]);
|
|
5428
|
-
const _hoisted_1$
|
|
5428
|
+
const _hoisted_1$A = { class: "accordion-item" };
|
|
5429
5429
|
const _hoisted_2$s = ["aria-expanded", "aria-controls"];
|
|
5430
5430
|
const _hoisted_3$l = { class: "accordion-label" };
|
|
5431
5431
|
const _hoisted_4$d = ["id", "aria-hidden"];
|
|
@@ -5453,7 +5453,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
5453
5453
|
accordionState.openItem = null;
|
|
5454
5454
|
}
|
|
5455
5455
|
return (_ctx, _cache) => {
|
|
5456
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5456
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [
|
|
5457
5457
|
vue.createElementVNode("button", {
|
|
5458
5458
|
onClick: _cache[0] || (_cache[0] = ($event) => toggle()),
|
|
5459
5459
|
"aria-expanded": vue.unref(open) ? "true" : "false",
|
|
@@ -5485,14 +5485,14 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
5485
5485
|
}
|
|
5486
5486
|
});
|
|
5487
5487
|
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-bf74738b"]]);
|
|
5488
|
-
const _hoisted_1$
|
|
5488
|
+
const _hoisted_1$z = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 p-0" };
|
|
5489
5489
|
const _hoisted_2$r = { class: "p-1" };
|
|
5490
5490
|
const _hoisted_3$k = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
|
|
5491
5491
|
const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
5492
5492
|
__name: "ListView",
|
|
5493
5493
|
setup(__props) {
|
|
5494
5494
|
return (_ctx, _cache) => {
|
|
5495
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5495
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$z, [
|
|
5496
5496
|
vue.createElementVNode("div", _hoisted_2$r, [
|
|
5497
5497
|
vue.renderSlot(_ctx.$slots, "header")
|
|
5498
5498
|
]),
|
|
@@ -5503,7 +5503,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
5503
5503
|
};
|
|
5504
5504
|
}
|
|
5505
5505
|
});
|
|
5506
|
-
const _hoisted_1$
|
|
5506
|
+
const _hoisted_1$y = { class: "txt16 no-margin ellipsis" };
|
|
5507
5507
|
const _hoisted_2$q = { class: "txt14 no-margin txt-gray ellipsis" };
|
|
5508
5508
|
const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
5509
5509
|
__name: "ListItem",
|
|
@@ -5529,7 +5529,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
5529
5529
|
size: 40
|
|
5530
5530
|
}, null, 8, ["name", "src"])) : vue.createCommentVNode("", true),
|
|
5531
5531
|
vue.createElementVNode("div", null, [
|
|
5532
|
-
vue.createElementVNode("p", _hoisted_1$
|
|
5532
|
+
vue.createElementVNode("p", _hoisted_1$y, [
|
|
5533
5533
|
vue.createTextVNode(vue.toDisplayString(_ctx.title) + " ", 1),
|
|
5534
5534
|
vue.renderSlot(_ctx.$slots, "default")
|
|
5535
5535
|
]),
|
|
@@ -5544,7 +5544,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
5544
5544
|
};
|
|
5545
5545
|
}
|
|
5546
5546
|
});
|
|
5547
|
-
const _hoisted_1$
|
|
5547
|
+
const _hoisted_1$x = { class: "page-top" };
|
|
5548
5548
|
const _hoisted_2$p = { class: "top-title" };
|
|
5549
5549
|
const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
5550
5550
|
__name: "PageTitle",
|
|
@@ -5556,7 +5556,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
5556
5556
|
},
|
|
5557
5557
|
setup(__props) {
|
|
5558
5558
|
return (_ctx, _cache) => {
|
|
5559
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5559
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$x, [
|
|
5560
5560
|
vue.createElementVNode("h1", _hoisted_2$p, [
|
|
5561
5561
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
5562
5562
|
vue.createTextVNode(" " + vue.toDisplayString(__props.value), 1)
|
|
@@ -5565,7 +5565,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
5565
5565
|
};
|
|
5566
5566
|
}
|
|
5567
5567
|
});
|
|
5568
|
-
const _hoisted_1$
|
|
5568
|
+
const _hoisted_1$w = { class: "table-list-wrap h-100" };
|
|
5569
5569
|
const _hoisted_2$o = { class: "infinite-wrapper" };
|
|
5570
5570
|
const _hoisted_3$j = { class: "row first-row" };
|
|
5571
5571
|
const _hoisted_4$c = ["onClick"];
|
|
@@ -5606,7 +5606,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
5606
5606
|
emit2("orderBy", `${fieldname} ${sortDirection.value}`.trim());
|
|
5607
5607
|
};
|
|
5608
5608
|
return (_ctx, _cache) => {
|
|
5609
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5609
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$w, [
|
|
5610
5610
|
vue.createElementVNode("table", _hoisted_2$o, [
|
|
5611
5611
|
vue.createElementVNode("thead", _hoisted_3$j, [
|
|
5612
5612
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(computedSchema.value, (field) => {
|
|
@@ -5666,15 +5666,14 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
5666
5666
|
});
|
|
5667
5667
|
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-f3641508"]]);
|
|
5668
5668
|
const _sfc_main$x = {};
|
|
5669
|
-
const _hoisted_1$
|
|
5669
|
+
const _hoisted_1$v = { class: "flex space-between" };
|
|
5670
5670
|
function _sfc_render$1(_ctx, _cache) {
|
|
5671
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5671
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, [
|
|
5672
5672
|
vue.renderSlot(_ctx.$slots, "default")
|
|
5673
5673
|
]);
|
|
5674
5674
|
}
|
|
5675
5675
|
const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$1]]);
|
|
5676
5676
|
const _sfc_main$w = {};
|
|
5677
|
-
const _hoisted_1$v = { class: "m_overflow-hidden-x" };
|
|
5678
5677
|
function _sfc_render(_ctx, _cache) {
|
|
5679
5678
|
const _component_router_view = vue.resolveComponent("router-view");
|
|
5680
5679
|
return vue.openBlock(), vue.createBlock(_component_router_view, null, {
|
|
@@ -5686,11 +5685,9 @@ function _sfc_render(_ctx, _cache) {
|
|
|
5686
5685
|
appear: ""
|
|
5687
5686
|
}, {
|
|
5688
5687
|
default: vue.withCtx(() => [
|
|
5689
|
-
vue.
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
}))
|
|
5693
|
-
])
|
|
5688
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(Component), {
|
|
5689
|
+
key: route == null ? void 0 : route.params.itemID
|
|
5690
|
+
}))
|
|
5694
5691
|
]),
|
|
5695
5692
|
_: 2
|
|
5696
5693
|
}, 1024)
|
|
@@ -39216,13 +39213,22 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
39216
39213
|
}
|
|
39217
39214
|
];
|
|
39218
39215
|
const emit2 = __emit;
|
|
39219
|
-
|
|
39216
|
+
function initEditor() {
|
|
39220
39217
|
editor.value = new Editor({
|
|
39221
39218
|
extensions: [StarterKit],
|
|
39222
39219
|
content: props2.modelValue,
|
|
39223
39220
|
onUpdate: ({ editor: editor2 }) => emit2("update:modelValue", editor2.getHTML())
|
|
39224
39221
|
});
|
|
39225
|
-
}
|
|
39222
|
+
}
|
|
39223
|
+
vue.watch(
|
|
39224
|
+
() => props2.modelValue,
|
|
39225
|
+
(value) => {
|
|
39226
|
+
var _a2;
|
|
39227
|
+
return (_a2 = editor.value) == null ? void 0 : _a2.commands.setContent(value);
|
|
39228
|
+
},
|
|
39229
|
+
{ immediate: true }
|
|
39230
|
+
);
|
|
39231
|
+
vue.onMounted(initEditor);
|
|
39226
39232
|
vue.onBeforeUnmount(() => {
|
|
39227
39233
|
var _a2;
|
|
39228
39234
|
return (_a2 = editor.value) == null ? void 0 : _a2.destroy();
|
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ var __publicField2 = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
import { pushScopeId, popScopeId, defineComponent, nextTick, openBlock, createBlock, createElementBlock, normalizeClass, renderSlot, normalizeProps, guardReactiveProps, withScopeId, resolveComponent, normalizeStyle, withKeys, createElementVNode, Fragment as Fragment$1, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h as h$2, toDisplayString, inject, unref, renderList, resolveDynamicComponent, useCssVars, useSlots, computed, withModifiers, createTextVNode, watch, onMounted, onUnmounted, mergeModels, useModel, createSlots, Transition, reactive, provide, withDirectives, vModelCheckbox, toRef, isRef, Teleport, render as render$f, onBeforeUpdate, vShow, getCurrentScope, onScopeDispose, TransitionGroup, vModelDynamic, vModelText, vModelRadio, onBeforeUnmount,
|
|
7
|
+
import { pushScopeId, popScopeId, defineComponent, nextTick, openBlock, createBlock, createElementBlock, normalizeClass, renderSlot, normalizeProps, guardReactiveProps, withScopeId, resolveComponent, normalizeStyle, withKeys, createElementVNode, Fragment as Fragment$1, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h as h$2, toDisplayString, inject, unref, renderList, resolveDynamicComponent, useCssVars, useSlots, computed, withModifiers, createTextVNode, watch, onMounted, onUnmounted, mergeModels, useModel, createSlots, Transition, reactive, provide, withDirectives, vModelCheckbox, toRef, isRef, Teleport, render as render$f, onBeforeUpdate, vShow, getCurrentScope, onScopeDispose, TransitionGroup, vModelDynamic, vModelText, vModelRadio, onBeforeUnmount, getCurrentInstance, watchEffect, markRaw, customRef, resolveDirective } from "vue";
|
|
8
8
|
const sides = ["top", "right", "bottom", "left"];
|
|
9
9
|
const alignments = ["start", "end"];
|
|
10
10
|
const placements$1 = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
|
@@ -5022,7 +5022,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
5022
5022
|
};
|
|
5023
5023
|
}
|
|
5024
5024
|
});
|
|
5025
|
-
const _hoisted_1$
|
|
5025
|
+
const _hoisted_1$D = { class: "full-nav" };
|
|
5026
5026
|
const _hoisted_2$v = { class: "nav-scroll" };
|
|
5027
5027
|
const _hoisted_3$m = { class: "nav-links-wrapper" };
|
|
5028
5028
|
const _hoisted_4$e = { class: "tooltip" };
|
|
@@ -5057,7 +5057,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
5057
5057
|
class: "top-arrow"
|
|
5058
5058
|
})
|
|
5059
5059
|
], 32),
|
|
5060
|
-
createElementVNode("div", _hoisted_1$
|
|
5060
|
+
createElementVNode("div", _hoisted_1$D, [
|
|
5061
5061
|
createElementVNode("div", _hoisted_2$v, [
|
|
5062
5062
|
createElementVNode("div", _hoisted_3$m, [
|
|
5063
5063
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.links, (link) => {
|
|
@@ -5116,7 +5116,7 @@ const _export_sfc = (sfc, props2) => {
|
|
|
5116
5116
|
return target;
|
|
5117
5117
|
};
|
|
5118
5118
|
const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-727b754a"]]);
|
|
5119
|
-
const _hoisted_1$
|
|
5119
|
+
const _hoisted_1$C = {
|
|
5120
5120
|
key: 0,
|
|
5121
5121
|
class: "loading"
|
|
5122
5122
|
};
|
|
@@ -5211,7 +5211,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
5211
5211
|
})
|
|
5212
5212
|
}, {
|
|
5213
5213
|
default: withCtx(() => [
|
|
5214
|
-
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
5214
|
+
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$C)) : (openBlock(), createElementBlock("div", _hoisted_2$u, [
|
|
5215
5215
|
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$H), {
|
|
5216
5216
|
key: 0,
|
|
5217
5217
|
icon: _ctx.icon
|
|
@@ -5232,7 +5232,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
5232
5232
|
}
|
|
5233
5233
|
});
|
|
5234
5234
|
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-d09a83c5"]]);
|
|
5235
|
-
const _hoisted_1$
|
|
5235
|
+
const _hoisted_1$B = { class: "tool-bar" };
|
|
5236
5236
|
const _hoisted_2$t = { class: "modal-footer mt-3" };
|
|
5237
5237
|
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
5238
5238
|
__name: "Modal",
|
|
@@ -5281,7 +5281,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
5281
5281
|
}, ["stop"]))
|
|
5282
5282
|
}, {
|
|
5283
5283
|
default: withCtx(() => [
|
|
5284
|
-
createElementVNode("header", _hoisted_1$
|
|
5284
|
+
createElementVNode("header", _hoisted_1$B, [
|
|
5285
5285
|
renderSlot(_ctx.$slots, "toolbar"),
|
|
5286
5286
|
createVNode(unref(Btn), {
|
|
5287
5287
|
style: normalizeStyle({ float: _ctx.side ? "left" : "right" }),
|
|
@@ -5423,7 +5423,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
5423
5423
|
}
|
|
5424
5424
|
});
|
|
5425
5425
|
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-7e6899c7"]]);
|
|
5426
|
-
const _hoisted_1$
|
|
5426
|
+
const _hoisted_1$A = { class: "accordion-item" };
|
|
5427
5427
|
const _hoisted_2$s = ["aria-expanded", "aria-controls"];
|
|
5428
5428
|
const _hoisted_3$l = { class: "accordion-label" };
|
|
5429
5429
|
const _hoisted_4$d = ["id", "aria-hidden"];
|
|
@@ -5451,7 +5451,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
5451
5451
|
accordionState.openItem = null;
|
|
5452
5452
|
}
|
|
5453
5453
|
return (_ctx, _cache) => {
|
|
5454
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5454
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
5455
5455
|
createElementVNode("button", {
|
|
5456
5456
|
onClick: _cache[0] || (_cache[0] = ($event) => toggle()),
|
|
5457
5457
|
"aria-expanded": unref(open) ? "true" : "false",
|
|
@@ -5483,14 +5483,14 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
5483
5483
|
}
|
|
5484
5484
|
});
|
|
5485
5485
|
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-bf74738b"]]);
|
|
5486
|
-
const _hoisted_1$
|
|
5486
|
+
const _hoisted_1$z = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 p-0" };
|
|
5487
5487
|
const _hoisted_2$r = { class: "p-1" };
|
|
5488
5488
|
const _hoisted_3$k = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
|
|
5489
5489
|
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
5490
5490
|
__name: "ListView",
|
|
5491
5491
|
setup(__props) {
|
|
5492
5492
|
return (_ctx, _cache) => {
|
|
5493
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5493
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
5494
5494
|
createElementVNode("div", _hoisted_2$r, [
|
|
5495
5495
|
renderSlot(_ctx.$slots, "header")
|
|
5496
5496
|
]),
|
|
@@ -5501,7 +5501,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
5501
5501
|
};
|
|
5502
5502
|
}
|
|
5503
5503
|
});
|
|
5504
|
-
const _hoisted_1$
|
|
5504
|
+
const _hoisted_1$y = { class: "txt16 no-margin ellipsis" };
|
|
5505
5505
|
const _hoisted_2$q = { class: "txt14 no-margin txt-gray ellipsis" };
|
|
5506
5506
|
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
5507
5507
|
__name: "ListItem",
|
|
@@ -5527,7 +5527,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
5527
5527
|
size: 40
|
|
5528
5528
|
}, null, 8, ["name", "src"])) : createCommentVNode("", true),
|
|
5529
5529
|
createElementVNode("div", null, [
|
|
5530
|
-
createElementVNode("p", _hoisted_1$
|
|
5530
|
+
createElementVNode("p", _hoisted_1$y, [
|
|
5531
5531
|
createTextVNode(toDisplayString(_ctx.title) + " ", 1),
|
|
5532
5532
|
renderSlot(_ctx.$slots, "default")
|
|
5533
5533
|
]),
|
|
@@ -5542,7 +5542,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
5542
5542
|
};
|
|
5543
5543
|
}
|
|
5544
5544
|
});
|
|
5545
|
-
const _hoisted_1$
|
|
5545
|
+
const _hoisted_1$x = { class: "page-top" };
|
|
5546
5546
|
const _hoisted_2$p = { class: "top-title" };
|
|
5547
5547
|
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
5548
5548
|
__name: "PageTitle",
|
|
@@ -5554,7 +5554,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
5554
5554
|
},
|
|
5555
5555
|
setup(__props) {
|
|
5556
5556
|
return (_ctx, _cache) => {
|
|
5557
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5557
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
5558
5558
|
createElementVNode("h1", _hoisted_2$p, [
|
|
5559
5559
|
renderSlot(_ctx.$slots, "default"),
|
|
5560
5560
|
createTextVNode(" " + toDisplayString(__props.value), 1)
|
|
@@ -5563,7 +5563,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
5563
5563
|
};
|
|
5564
5564
|
}
|
|
5565
5565
|
});
|
|
5566
|
-
const _hoisted_1$
|
|
5566
|
+
const _hoisted_1$w = { class: "table-list-wrap h-100" };
|
|
5567
5567
|
const _hoisted_2$o = { class: "infinite-wrapper" };
|
|
5568
5568
|
const _hoisted_3$j = { class: "row first-row" };
|
|
5569
5569
|
const _hoisted_4$c = ["onClick"];
|
|
@@ -5604,7 +5604,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
5604
5604
|
emit2("orderBy", `${fieldname} ${sortDirection.value}`.trim());
|
|
5605
5605
|
};
|
|
5606
5606
|
return (_ctx, _cache) => {
|
|
5607
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5607
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
5608
5608
|
createElementVNode("table", _hoisted_2$o, [
|
|
5609
5609
|
createElementVNode("thead", _hoisted_3$j, [
|
|
5610
5610
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(computedSchema.value, (field) => {
|
|
@@ -5664,15 +5664,14 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
5664
5664
|
});
|
|
5665
5665
|
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-f3641508"]]);
|
|
5666
5666
|
const _sfc_main$x = {};
|
|
5667
|
-
const _hoisted_1$
|
|
5667
|
+
const _hoisted_1$v = { class: "flex space-between" };
|
|
5668
5668
|
function _sfc_render$1(_ctx, _cache) {
|
|
5669
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5669
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
5670
5670
|
renderSlot(_ctx.$slots, "default")
|
|
5671
5671
|
]);
|
|
5672
5672
|
}
|
|
5673
5673
|
const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$1]]);
|
|
5674
5674
|
const _sfc_main$w = {};
|
|
5675
|
-
const _hoisted_1$v = { class: "m_overflow-hidden-x" };
|
|
5676
5675
|
function _sfc_render(_ctx, _cache) {
|
|
5677
5676
|
const _component_router_view = resolveComponent("router-view");
|
|
5678
5677
|
return openBlock(), createBlock(_component_router_view, null, {
|
|
@@ -5684,11 +5683,9 @@ function _sfc_render(_ctx, _cache) {
|
|
|
5684
5683
|
appear: ""
|
|
5685
5684
|
}, {
|
|
5686
5685
|
default: withCtx(() => [
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
}))
|
|
5691
|
-
])
|
|
5686
|
+
(openBlock(), createBlock(resolveDynamicComponent(Component), {
|
|
5687
|
+
key: route == null ? void 0 : route.params.itemID
|
|
5688
|
+
}))
|
|
5692
5689
|
]),
|
|
5693
5690
|
_: 2
|
|
5694
5691
|
}, 1024)
|
|
@@ -39214,13 +39211,22 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
39214
39211
|
}
|
|
39215
39212
|
];
|
|
39216
39213
|
const emit2 = __emit;
|
|
39217
|
-
|
|
39214
|
+
function initEditor() {
|
|
39218
39215
|
editor.value = new Editor({
|
|
39219
39216
|
extensions: [StarterKit],
|
|
39220
39217
|
content: props2.modelValue,
|
|
39221
39218
|
onUpdate: ({ editor: editor2 }) => emit2("update:modelValue", editor2.getHTML())
|
|
39222
39219
|
});
|
|
39223
|
-
}
|
|
39220
|
+
}
|
|
39221
|
+
watch(
|
|
39222
|
+
() => props2.modelValue,
|
|
39223
|
+
(value) => {
|
|
39224
|
+
var _a2;
|
|
39225
|
+
return (_a2 = editor.value) == null ? void 0 : _a2.commands.setContent(value);
|
|
39226
|
+
},
|
|
39227
|
+
{ immediate: true }
|
|
39228
|
+
);
|
|
39229
|
+
onMounted(initEditor);
|
|
39224
39230
|
onBeforeUnmount(() => {
|
|
39225
39231
|
var _a2;
|
|
39226
39232
|
return (_a2 = editor.value) == null ? void 0 : _a2.destroy();
|
package/dist/style.css
CHANGED
package/package.json
CHANGED
|
@@ -6,12 +6,10 @@
|
|
|
6
6
|
mode="out-in"
|
|
7
7
|
appear
|
|
8
8
|
>
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
/>
|
|
14
|
-
</div>
|
|
9
|
+
<component
|
|
10
|
+
:is="Component"
|
|
11
|
+
:key="route?.params.itemID"
|
|
12
|
+
/>
|
|
15
13
|
</transition>
|
|
16
14
|
</router-view>
|
|
17
15
|
</template>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
<script setup lang="ts">
|
|
17
17
|
import { Btn } from '@bagelink/vue';
|
|
18
|
-
import { onMounted, onBeforeUnmount } from 'vue';
|
|
18
|
+
import { onMounted, onBeforeUnmount, watch } from 'vue';
|
|
19
19
|
import StarterKit from '@tiptap/starter-kit';
|
|
20
20
|
import { Editor, EditorContent } from '@tiptap/vue-3';
|
|
21
21
|
import type { MaterialIcons } from '@bagelink/vue';
|
|
@@ -156,13 +156,21 @@ const config: {
|
|
|
156
156
|
|
|
157
157
|
const emit = defineEmits(['update:modelValue']);
|
|
158
158
|
|
|
159
|
-
|
|
159
|
+
function initEditor() {
|
|
160
160
|
editor = new Editor({
|
|
161
161
|
extensions: [StarterKit],
|
|
162
162
|
content: props.modelValue,
|
|
163
163
|
onUpdate: ({ editor }) => emit('update:modelValue', editor.getHTML()),
|
|
164
164
|
});
|
|
165
|
-
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
watch(
|
|
168
|
+
() => props.modelValue,
|
|
169
|
+
(value) => editor?.commands.setContent(value),
|
|
170
|
+
{ immediate: true }
|
|
171
|
+
);
|
|
172
|
+
|
|
173
|
+
onMounted(initEditor);
|
|
166
174
|
|
|
167
175
|
onBeforeUnmount(() => editor?.destroy());
|
|
168
176
|
</script>
|
|
@@ -226,5 +234,7 @@ onBeforeUnmount(() => editor?.destroy());
|
|
|
226
234
|
.tiptap {
|
|
227
235
|
min-height: 500px;
|
|
228
236
|
background: var(--input-bg);
|
|
237
|
+
overflow: auto;
|
|
238
|
+
max-height: 600px;
|
|
229
239
|
}
|
|
230
240
|
</style>
|