mechanica 1.0.20 → 1.0.22
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/editor.js +422 -276
- package/dist/editor.js.map +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/{schemaAliases-stftBqNS.js → schemaAliases-BChQHL5h.js} +2 -1
- package/dist/{schemaAliases-stftBqNS.js.map → schemaAliases-BChQHL5h.js.map} +1 -1
- package/dist/style.css +73 -0
- package/package.json +1 -1
package/dist/editor.js
CHANGED
|
@@ -2,9 +2,9 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { defineComponent, ref, watch, createElementBlock, openBlock, normalizeStyle, createElementVNode, reactive, computed, shallowRef, onMounted, onBeforeUnmount, triggerRef, inject, normalizeClass, createCommentVNode, renderSlot, createVNode, createTextVNode, toDisplayString, Transition, withCtx, getCurrentScope, onScopeDispose, toRef as toRef$1, readonly, customRef, toValue as toValue$1, getCurrentInstance, nextTick, unref, createBlock, createSlots, withDirectives, vModelText, vModelDynamic, Fragment, renderList, h, TransitionGroup, useSlots, Teleport, mergeProps, withModifiers, mergeModels, useModel, createStaticVNode, resolveDynamicComponent, resolveComponent, vShow, shallowReactive, vModelCheckbox, isProxy, toRaw, normalizeProps, guardReactiveProps, provide, createApp } from "vue";
|
|
5
|
-
import { p as passDefaultValue, d as defaultImageSrc, g as getDefaultValue, r as registerAliases, a as registerAlias, u as unfoldSchema } from "./schemaAliases-
|
|
5
|
+
import { p as passDefaultValue, d as defaultImageSrc, g as getDefaultValue, r as registerAliases, a as registerAlias, u as unfoldSchema } from "./schemaAliases-BChQHL5h.js";
|
|
6
6
|
import { blocksList as blocksList$1, addUpdateListener } from "virtual:builder-blocks";
|
|
7
|
-
const _sfc_main$
|
|
7
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "HoverFrame",
|
|
9
9
|
props: {
|
|
10
10
|
element: {},
|
|
@@ -46,7 +46,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
|
-
const _sfc_main$
|
|
49
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
50
50
|
__name: "InsertedPlace",
|
|
51
51
|
props: {
|
|
52
52
|
top: {}
|
|
@@ -67,8 +67,8 @@ const _export_sfc = (sfc, props) => {
|
|
|
67
67
|
}
|
|
68
68
|
return target;
|
|
69
69
|
};
|
|
70
|
-
const _sfc_main$
|
|
71
|
-
const _hoisted_1$
|
|
70
|
+
const _sfc_main$Q = {};
|
|
71
|
+
const _hoisted_1$G = {
|
|
72
72
|
width: "16",
|
|
73
73
|
height: "16",
|
|
74
74
|
viewBox: "0 0 16 16",
|
|
@@ -76,16 +76,16 @@ const _hoisted_1$F = {
|
|
|
76
76
|
xmlns: "http://www.w3.org/2000/svg"
|
|
77
77
|
};
|
|
78
78
|
function _sfc_render$i(_ctx, _cache) {
|
|
79
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
79
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$G, _cache[0] || (_cache[0] = [
|
|
80
80
|
createElementVNode("path", {
|
|
81
81
|
d: "M10.707 14.364C10.8945 14.1764 10.9998 13.9221 10.9998 13.657C10.9998 13.3918 10.8945 13.1375 10.707 12.95L5.75705 7.99995L10.707 3.04995C10.8892 2.86135 10.99 2.60875 10.9877 2.34655C10.9854 2.08435 10.8803 1.83354 10.6949 1.64813C10.5095 1.46272 10.2586 1.35756 9.99645 1.35528C9.73425 1.353 9.48165 1.45379 9.29305 1.63595L3.63605 7.29295C3.44858 7.48048 3.34326 7.73479 3.34326 7.99995C3.34326 8.26512 3.44858 8.51942 3.63605 8.70695L9.29305 14.364C9.48058 14.5514 9.73488 14.6567 10 14.6567C10.2652 14.6567 10.5195 14.5514 10.707 14.364Z",
|
|
82
82
|
fill: "currentColor"
|
|
83
83
|
}, null, -1)
|
|
84
84
|
]));
|
|
85
85
|
}
|
|
86
|
-
const ChevronLeftIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
87
|
-
const _sfc_main$
|
|
88
|
-
const _hoisted_1$
|
|
86
|
+
const ChevronLeftIcon = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$i]]);
|
|
87
|
+
const _sfc_main$P = {};
|
|
88
|
+
const _hoisted_1$F = {
|
|
89
89
|
width: "16",
|
|
90
90
|
height: "16",
|
|
91
91
|
viewBox: "0 0 16 16",
|
|
@@ -93,14 +93,14 @@ const _hoisted_1$E = {
|
|
|
93
93
|
xmlns: "http://www.w3.org/2000/svg"
|
|
94
94
|
};
|
|
95
95
|
function _sfc_render$h(_ctx, _cache) {
|
|
96
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
96
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$F, _cache[0] || (_cache[0] = [
|
|
97
97
|
createElementVNode("path", {
|
|
98
98
|
d: "M5.29295 1.63605C5.10548 1.82358 5.00017 2.07788 5.00017 2.34305C5.00017 2.60821 5.10548 2.86252 5.29295 3.05005L10.243 8.00005L5.29295 12.95C5.11079 13.1387 5.01 13.3913 5.01228 13.6534C5.01456 13.9156 5.11972 14.1665 5.30513 14.3519C5.49054 14.5373 5.74135 14.6424 6.00355 14.6447C6.26575 14.647 6.51835 14.5462 6.70695 14.364L12.364 8.70705C12.5514 8.51952 12.6567 8.26521 12.6567 8.00005C12.6567 7.73488 12.5514 7.48058 12.364 7.29305L6.70695 1.63605C6.51942 1.44858 6.26512 1.34326 5.99995 1.34326C5.73479 1.34326 5.48048 1.44858 5.29295 1.63605Z",
|
|
99
99
|
fill: "currentColor"
|
|
100
100
|
}, null, -1)
|
|
101
101
|
]));
|
|
102
102
|
}
|
|
103
|
-
const ChevronRightIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
103
|
+
const ChevronRightIcon = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_render$h]]);
|
|
104
104
|
const findParent$1 = (el, callback) => {
|
|
105
105
|
if (callback(el)) return el;
|
|
106
106
|
if (!el.parentElement) return null;
|
|
@@ -645,27 +645,27 @@ class BlockDropEvent extends Event {
|
|
|
645
645
|
this.content = content;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
const _hoisted_1$
|
|
648
|
+
const _hoisted_1$E = {
|
|
649
649
|
key: 0,
|
|
650
650
|
class: "v-form-control__label"
|
|
651
651
|
};
|
|
652
|
-
const _hoisted_2$
|
|
652
|
+
const _hoisted_2$e = {
|
|
653
653
|
key: 0,
|
|
654
654
|
class: "v-form-control__required-marker"
|
|
655
655
|
};
|
|
656
|
-
const _hoisted_3$
|
|
656
|
+
const _hoisted_3$a = {
|
|
657
657
|
key: 1,
|
|
658
658
|
class: "v-form-control__outline"
|
|
659
659
|
};
|
|
660
|
-
const _hoisted_4$
|
|
660
|
+
const _hoisted_4$7 = {
|
|
661
661
|
key: 3,
|
|
662
662
|
class: "v-form-control__actions"
|
|
663
663
|
};
|
|
664
|
-
const _hoisted_5$
|
|
664
|
+
const _hoisted_5$5 = {
|
|
665
665
|
key: 0,
|
|
666
666
|
class: "v-form-control__error"
|
|
667
667
|
};
|
|
668
|
-
const _sfc_main$
|
|
668
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
669
669
|
__name: "VFormControl",
|
|
670
670
|
props: {
|
|
671
671
|
error: {},
|
|
@@ -690,19 +690,19 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
690
690
|
return openBlock(), createElementBlock("div", {
|
|
691
691
|
class: normalizeClass(["v-form-control", { error: !!props.error, disabled: props.disabled }])
|
|
692
692
|
}, [
|
|
693
|
-
!!props.label ? (openBlock(), createElementBlock("label", _hoisted_1$
|
|
693
|
+
!!props.label ? (openBlock(), createElementBlock("label", _hoisted_1$E, [
|
|
694
694
|
createTextVNode(toDisplayString(props.label), 1),
|
|
695
|
-
props.required ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
695
|
+
props.required ? (openBlock(), createElementBlock("span", _hoisted_2$e, "*")) : createCommentVNode("", true)
|
|
696
696
|
])) : createCommentVNode("", true),
|
|
697
|
-
props.outline ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
697
|
+
props.outline ? (openBlock(), createElementBlock("div", _hoisted_3$a, [
|
|
698
698
|
renderSlot(_ctx.$slots, "default")
|
|
699
699
|
])) : renderSlot(_ctx.$slots, "default", { key: 2 }),
|
|
700
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
700
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
|
|
701
701
|
renderSlot(_ctx.$slots, "actions")
|
|
702
702
|
])) : createCommentVNode("", true),
|
|
703
703
|
createVNode(Transition, null, {
|
|
704
704
|
default: withCtx(() => [
|
|
705
|
-
!!props.error ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
705
|
+
!!props.error ? (openBlock(), createElementBlock("div", _hoisted_5$5, toDisplayString(error.value), 1)) : createCommentVNode("", true)
|
|
706
706
|
]),
|
|
707
707
|
_: 1
|
|
708
708
|
})
|
|
@@ -1145,17 +1145,17 @@ function useVModel(props, key, emit, options = {}) {
|
|
|
1145
1145
|
});
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|
|
1148
|
-
const _hoisted_1$
|
|
1148
|
+
const _hoisted_1$D = {
|
|
1149
1149
|
key: 0,
|
|
1150
1150
|
class: "mech-v-input__start-adornment"
|
|
1151
1151
|
};
|
|
1152
|
-
const _hoisted_2$
|
|
1153
|
-
const _hoisted_3$
|
|
1154
|
-
const _hoisted_4$
|
|
1152
|
+
const _hoisted_2$d = ["placeholder", "rows", "name"];
|
|
1153
|
+
const _hoisted_3$9 = ["placeholder", "type", "name"];
|
|
1154
|
+
const _hoisted_4$6 = {
|
|
1155
1155
|
key: 3,
|
|
1156
1156
|
class: "mech-v-input__max-length"
|
|
1157
1157
|
};
|
|
1158
|
-
const _sfc_main$
|
|
1158
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
1159
1159
|
__name: "VInput",
|
|
1160
1160
|
props: {
|
|
1161
1161
|
modelValue: {},
|
|
@@ -1226,7 +1226,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
1226
1226
|
useTextareaAutosize({ element: inputRef, input: model });
|
|
1227
1227
|
}
|
|
1228
1228
|
return (_ctx, _cache) => {
|
|
1229
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1229
|
+
return openBlock(), createBlock(_sfc_main$O, {
|
|
1230
1230
|
class: normalizeClass(["mech-v-input", { large: _ctx.large, multiline: _ctx.multiline }]),
|
|
1231
1231
|
error: error.value,
|
|
1232
1232
|
label: _ctx.label,
|
|
@@ -1236,7 +1236,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
1236
1236
|
}, createSlots({
|
|
1237
1237
|
default: withCtx(() => [
|
|
1238
1238
|
renderSlot(_ctx.$slots, "start-adornment"),
|
|
1239
|
-
props.prefix ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1239
|
+
props.prefix ? (openBlock(), createElementBlock("div", _hoisted_1$D, toDisplayString(props.prefix), 1)) : createCommentVNode("", true),
|
|
1240
1240
|
props.multiline ? withDirectives((openBlock(), createElementBlock("textarea", {
|
|
1241
1241
|
key: 1,
|
|
1242
1242
|
ref_key: "inputRef",
|
|
@@ -1246,7 +1246,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
1246
1246
|
rows: props.rows,
|
|
1247
1247
|
class: "scroll",
|
|
1248
1248
|
name: props.name
|
|
1249
|
-
}, null, 8, _hoisted_2$
|
|
1249
|
+
}, null, 8, _hoisted_2$d)), [
|
|
1250
1250
|
[vModelText, model.value]
|
|
1251
1251
|
]) : withDirectives((openBlock(), createElementBlock("input", {
|
|
1252
1252
|
key: 2,
|
|
@@ -1256,10 +1256,10 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
1256
1256
|
placeholder: props.placeholder,
|
|
1257
1257
|
type: inputType.value,
|
|
1258
1258
|
name: props.name
|
|
1259
|
-
}, null, 8, _hoisted_3$
|
|
1259
|
+
}, null, 8, _hoisted_3$9)), [
|
|
1260
1260
|
[vModelDynamic, model.value]
|
|
1261
1261
|
]),
|
|
1262
|
-
props.maxLength ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
1262
|
+
props.maxLength ? (openBlock(), createElementBlock("div", _hoisted_4$6, toDisplayString(model.value.length) + " / " + toDisplayString(props.maxLength), 1)) : createCommentVNode("", true),
|
|
1263
1263
|
renderSlot(_ctx.$slots, "end-adornment")
|
|
1264
1264
|
]),
|
|
1265
1265
|
_: 2
|
|
@@ -1275,16 +1275,16 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
1275
1275
|
};
|
|
1276
1276
|
}
|
|
1277
1277
|
});
|
|
1278
|
-
const _hoisted_1$
|
|
1279
|
-
const _hoisted_2$
|
|
1280
|
-
const _hoisted_3$
|
|
1281
|
-
const _hoisted_4$
|
|
1282
|
-
const _hoisted_5$
|
|
1283
|
-
const _hoisted_6$
|
|
1278
|
+
const _hoisted_1$C = { class: "blocks-list" };
|
|
1279
|
+
const _hoisted_2$c = { class: "page-editor-blocks__group" };
|
|
1280
|
+
const _hoisted_3$8 = { class: "title" };
|
|
1281
|
+
const _hoisted_4$5 = { class: "blocks-list__blocks" };
|
|
1282
|
+
const _hoisted_5$4 = ["onMousedown"];
|
|
1283
|
+
const _hoisted_6$3 = {
|
|
1284
1284
|
key: 0,
|
|
1285
1285
|
class: "page-editor__nothing-found"
|
|
1286
1286
|
};
|
|
1287
|
-
const _sfc_main$
|
|
1287
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
1288
1288
|
__name: "BlocksList",
|
|
1289
1289
|
props: {
|
|
1290
1290
|
blocks: {}
|
|
@@ -1333,28 +1333,28 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
1333
1333
|
});
|
|
1334
1334
|
};
|
|
1335
1335
|
return (_ctx, _cache) => {
|
|
1336
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1337
|
-
createVNode(_sfc_main$
|
|
1336
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
1337
|
+
createVNode(_sfc_main$N, {
|
|
1338
1338
|
modelValue: searchValue.value,
|
|
1339
1339
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchValue.value = $event),
|
|
1340
1340
|
placeholder: "Поиск...",
|
|
1341
1341
|
class: "page-editor-blocks__search"
|
|
1342
1342
|
}, null, 8, ["modelValue"]),
|
|
1343
1343
|
(openBlock(true), createElementBlock(Fragment, null, renderList(groupBlocks.value, (group) => {
|
|
1344
|
-
return openBlock(), createElementBlock("div", _hoisted_2$
|
|
1345
|
-
createElementVNode("div", _hoisted_3$
|
|
1346
|
-
createElementVNode("div", _hoisted_4$
|
|
1344
|
+
return openBlock(), createElementBlock("div", _hoisted_2$c, [
|
|
1345
|
+
createElementVNode("div", _hoisted_3$8, toDisplayString(groupNames[group.name] ?? group.name), 1),
|
|
1346
|
+
createElementVNode("div", _hoisted_4$5, [
|
|
1347
1347
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group.blocks, (item) => {
|
|
1348
1348
|
return openBlock(), createElementBlock("button", {
|
|
1349
1349
|
class: "blocks-list__block editor-component",
|
|
1350
1350
|
key: item.id,
|
|
1351
1351
|
onMousedown: ($event) => onItemMouseDown($event, item)
|
|
1352
|
-
}, toDisplayString(item.name), 41, _hoisted_5$
|
|
1352
|
+
}, toDisplayString(item.name), 41, _hoisted_5$4);
|
|
1353
1353
|
}), 128))
|
|
1354
1354
|
])
|
|
1355
1355
|
]);
|
|
1356
1356
|
}), 256)),
|
|
1357
|
-
unref(filteredBlocks).length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
1357
|
+
unref(filteredBlocks).length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6$3, "Блоки не найдены")) : createCommentVNode("", true)
|
|
1358
1358
|
]);
|
|
1359
1359
|
};
|
|
1360
1360
|
}
|
|
@@ -1646,8 +1646,8 @@ const deleteFromArray = (arr, item) => {
|
|
|
1646
1646
|
const uid$1 = () => {
|
|
1647
1647
|
return Math.trunc(Math.random() * 1e5).toString(16);
|
|
1648
1648
|
};
|
|
1649
|
-
const _hoisted_1$
|
|
1650
|
-
const _sfc_main$
|
|
1649
|
+
const _hoisted_1$B = ["onClick"];
|
|
1650
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
1651
1651
|
__name: "VTabs",
|
|
1652
1652
|
props: {
|
|
1653
1653
|
items: {},
|
|
@@ -1701,7 +1701,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
1701
1701
|
key: item.id,
|
|
1702
1702
|
class: normalizeClass(["v-tabs__tab", { active: unref(model) === item.id }]),
|
|
1703
1703
|
onClick: ($event) => model.value = item.id
|
|
1704
|
-
}, toDisplayString(item.title), 11, _hoisted_1$
|
|
1704
|
+
}, toDisplayString(item.title), 11, _hoisted_1$B);
|
|
1705
1705
|
}), 128))
|
|
1706
1706
|
]),
|
|
1707
1707
|
_: 1
|
|
@@ -1714,7 +1714,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
1714
1714
|
};
|
|
1715
1715
|
}
|
|
1716
1716
|
});
|
|
1717
|
-
const _sfc_main$
|
|
1717
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
1718
1718
|
__name: "VTabsPages",
|
|
1719
1719
|
props: {
|
|
1720
1720
|
page: {},
|
|
@@ -1761,7 +1761,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
1761
1761
|
default: withCtx(() => [
|
|
1762
1762
|
(openBlock(), createElementBlock("div", {
|
|
1763
1763
|
key: props.page,
|
|
1764
|
-
class: normalizeClass(["v-tabs-pages__page", props["page:class"]])
|
|
1764
|
+
class: normalizeClass(["v-tabs-pages__page scroll", props["page:class"]])
|
|
1765
1765
|
}, [
|
|
1766
1766
|
renderSlot(_ctx.$slots, props.page)
|
|
1767
1767
|
], 2))
|
|
@@ -1772,8 +1772,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
1772
1772
|
};
|
|
1773
1773
|
}
|
|
1774
1774
|
});
|
|
1775
|
-
const _sfc_main$
|
|
1776
|
-
const _hoisted_1$
|
|
1775
|
+
const _sfc_main$J = {};
|
|
1776
|
+
const _hoisted_1$A = {
|
|
1777
1777
|
width: "20",
|
|
1778
1778
|
height: "20",
|
|
1779
1779
|
viewBox: "0 0 20 20",
|
|
@@ -1781,7 +1781,7 @@ const _hoisted_1$z = {
|
|
|
1781
1781
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1782
1782
|
};
|
|
1783
1783
|
function _sfc_render$g(_ctx, _cache) {
|
|
1784
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1784
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$A, _cache[0] || (_cache[0] = [
|
|
1785
1785
|
createElementVNode("path", {
|
|
1786
1786
|
"fill-rule": "evenodd",
|
|
1787
1787
|
"clip-rule": "evenodd",
|
|
@@ -1790,8 +1790,8 @@ function _sfc_render$g(_ctx, _cache) {
|
|
|
1790
1790
|
}, null, -1)
|
|
1791
1791
|
]));
|
|
1792
1792
|
}
|
|
1793
|
-
const CollapseArrowIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1794
|
-
const _sfc_main$
|
|
1793
|
+
const CollapseArrowIcon = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$g]]);
|
|
1794
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
1795
1795
|
__name: "VCollapse",
|
|
1796
1796
|
props: {
|
|
1797
1797
|
open: { type: Boolean },
|
|
@@ -1879,7 +1879,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
1879
1879
|
}
|
|
1880
1880
|
});
|
|
1881
1881
|
const margin = 8;
|
|
1882
|
-
const _sfc_main$
|
|
1882
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
1883
1883
|
...{
|
|
1884
1884
|
inheritAttrs: false
|
|
1885
1885
|
},
|
|
@@ -2047,8 +2047,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
2047
2047
|
};
|
|
2048
2048
|
}
|
|
2049
2049
|
});
|
|
2050
|
-
const _sfc_main$
|
|
2051
|
-
const _hoisted_1$
|
|
2050
|
+
const _sfc_main$G = {};
|
|
2051
|
+
const _hoisted_1$z = {
|
|
2052
2052
|
width: "16",
|
|
2053
2053
|
height: "16",
|
|
2054
2054
|
viewBox: "0 0 16 16",
|
|
@@ -2056,24 +2056,24 @@ const _hoisted_1$y = {
|
|
|
2056
2056
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2057
2057
|
};
|
|
2058
2058
|
function _sfc_render$f(_ctx, _cache) {
|
|
2059
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2059
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$z, _cache[0] || (_cache[0] = [
|
|
2060
2060
|
createElementVNode("path", {
|
|
2061
2061
|
d: "M14.364 5.293C14.1764 5.10553 13.9221 5.00021 13.657 5.00021C13.3918 5.00021 13.1375 5.10553 12.95 5.293L7.99995 10.243L3.04995 5.293C2.86135 5.11084 2.60875 5.01005 2.34655 5.01232C2.08435 5.0146 1.83354 5.11977 1.64813 5.30518C1.46272 5.49059 1.35756 5.7414 1.35528 6.0036C1.353 6.26579 1.45379 6.5184 1.63595 6.707L7.29295 12.364C7.48048 12.5515 7.73479 12.6568 7.99995 12.6568C8.26512 12.6568 8.51942 12.5515 8.70695 12.364L14.364 6.707C14.5514 6.51947 14.6567 6.26516 14.6567 6C14.6567 5.73483 14.5514 5.48053 14.364 5.293Z",
|
|
2062
2062
|
fill: "currentColor"
|
|
2063
2063
|
}, null, -1)
|
|
2064
2064
|
]));
|
|
2065
2065
|
}
|
|
2066
|
-
const ArrowDownIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2067
|
-
const _sfc_main$
|
|
2068
|
-
const _hoisted_1$
|
|
2066
|
+
const ArrowDownIcon = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$f]]);
|
|
2067
|
+
const _sfc_main$F = {};
|
|
2068
|
+
const _hoisted_1$y = { class: "v-icon-button" };
|
|
2069
2069
|
function _sfc_render$e(_ctx, _cache) {
|
|
2070
|
-
return openBlock(), createElementBlock("button", _hoisted_1$
|
|
2070
|
+
return openBlock(), createElementBlock("button", _hoisted_1$y, [
|
|
2071
2071
|
renderSlot(_ctx.$slots, "default")
|
|
2072
2072
|
]);
|
|
2073
2073
|
}
|
|
2074
|
-
const VIconButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2075
|
-
const _sfc_main$
|
|
2076
|
-
const _hoisted_1$
|
|
2074
|
+
const VIconButton = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$e]]);
|
|
2075
|
+
const _sfc_main$E = {};
|
|
2076
|
+
const _hoisted_1$x = {
|
|
2077
2077
|
width: "16",
|
|
2078
2078
|
height: "16",
|
|
2079
2079
|
viewBox: "0 0 16 16",
|
|
@@ -2081,31 +2081,31 @@ const _hoisted_1$w = {
|
|
|
2081
2081
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2082
2082
|
};
|
|
2083
2083
|
function _sfc_render$d(_ctx, _cache) {
|
|
2084
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2084
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$x, _cache[0] || (_cache[0] = [
|
|
2085
2085
|
createElementVNode("path", {
|
|
2086
2086
|
d: "M9.31382 7.9L12.8488 4.364C12.9443 4.27176 13.0205 4.16141 13.0729 4.03941C13.1253 3.9174 13.1529 3.78618 13.1541 3.6534C13.1552 3.52062 13.1299 3.38894 13.0796 3.26605C13.0294 3.14315 12.9551 3.0315 12.8612 2.93761C12.7673 2.84371 12.6557 2.76946 12.5328 2.71918C12.4099 2.6689 12.2782 2.6436 12.1454 2.64475C12.0126 2.64591 11.8814 2.67349 11.7594 2.7259C11.6374 2.77831 11.5271 2.85449 11.4348 2.95L7.89882 6.485L4.36382 2.95C4.27157 2.85449 4.16123 2.77831 4.03922 2.7259C3.91722 2.67349 3.786 2.64591 3.65322 2.64475C3.52044 2.6436 3.38876 2.6689 3.26587 2.71918C3.14297 2.76946 3.03132 2.84371 2.93742 2.93761C2.84353 3.0315 2.76928 3.14315 2.719 3.26605C2.66872 3.38894 2.64342 3.52062 2.64457 3.6534C2.64572 3.78618 2.67331 3.9174 2.72572 4.03941C2.77813 4.16141 2.85431 4.27176 2.94982 4.364L6.48482 7.899L2.94982 11.435C2.85431 11.5273 2.77813 11.6376 2.72572 11.7596C2.67331 11.8816 2.64572 12.0128 2.64457 12.1456C2.64342 12.2784 2.66872 12.4101 2.719 12.533C2.76928 12.6559 2.84353 12.7675 2.93742 12.8614C3.03132 12.9553 3.14297 13.0295 3.26587 13.0798C3.38876 13.1301 3.52044 13.1554 3.65322 13.1543C3.786 13.1531 3.91722 13.1255 4.03922 13.0731C4.16123 13.0207 4.27157 12.9445 4.36382 12.849L7.89882 9.314L11.4348 12.849C11.5271 12.9445 11.6374 13.0207 11.7594 13.0731C11.8814 13.1255 12.0126 13.1531 12.1454 13.1543C12.2782 13.1554 12.4099 13.1301 12.5328 13.0798C12.6557 13.0295 12.7673 12.9553 12.8612 12.8614C12.9551 12.7675 13.0294 12.6559 13.0796 12.533C13.1299 12.4101 13.1552 12.2784 13.1541 12.1456C13.1529 12.0128 13.1253 11.8816 13.0729 11.7596C13.0205 11.6376 12.9443 11.5273 12.8488 11.435L9.31382 7.9Z",
|
|
2087
2087
|
fill: "currentColor"
|
|
2088
2088
|
}, null, -1)
|
|
2089
2089
|
]));
|
|
2090
2090
|
}
|
|
2091
|
-
const CloseMinIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2092
|
-
const _hoisted_1$
|
|
2093
|
-
const _hoisted_2$
|
|
2091
|
+
const CloseMinIcon = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$d]]);
|
|
2092
|
+
const _hoisted_1$w = { key: 0 };
|
|
2093
|
+
const _hoisted_2$b = {
|
|
2094
2094
|
key: 1,
|
|
2095
2095
|
class: "v-select__placeholder"
|
|
2096
2096
|
};
|
|
2097
|
-
const _hoisted_3$
|
|
2098
|
-
const _hoisted_4$
|
|
2099
|
-
const _hoisted_5$
|
|
2097
|
+
const _hoisted_3$7 = { class: "v-select__actions" };
|
|
2098
|
+
const _hoisted_4$4 = { class: "v-select__menu" };
|
|
2099
|
+
const _hoisted_5$3 = {
|
|
2100
2100
|
key: 0,
|
|
2101
2101
|
class: "v-select__divider"
|
|
2102
2102
|
};
|
|
2103
|
-
const _hoisted_6$
|
|
2103
|
+
const _hoisted_6$2 = {
|
|
2104
2104
|
key: 1,
|
|
2105
2105
|
class: "group-title"
|
|
2106
2106
|
};
|
|
2107
|
-
const _hoisted_7$
|
|
2108
|
-
const _sfc_main$
|
|
2107
|
+
const _hoisted_7$2 = ["onClick"];
|
|
2108
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
2109
2109
|
__name: "VSelect",
|
|
2110
2110
|
props: /* @__PURE__ */ mergeModels({
|
|
2111
2111
|
items: {},
|
|
@@ -2141,7 +2141,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
2141
2141
|
opened.value = false;
|
|
2142
2142
|
};
|
|
2143
2143
|
return (_ctx, _cache) => {
|
|
2144
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2144
|
+
return openBlock(), createBlock(_sfc_main$O, {
|
|
2145
2145
|
outline: "",
|
|
2146
2146
|
class: "v-select",
|
|
2147
2147
|
label: props.label,
|
|
@@ -2150,7 +2150,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
2150
2150
|
required: props.required
|
|
2151
2151
|
}, {
|
|
2152
2152
|
default: withCtx(() => [
|
|
2153
|
-
createVNode(_sfc_main$
|
|
2153
|
+
createVNode(_sfc_main$H, {
|
|
2154
2154
|
open: opened.value,
|
|
2155
2155
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => opened.value = $event),
|
|
2156
2156
|
placement: "bottom",
|
|
@@ -2161,10 +2161,10 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
2161
2161
|
createElementVNode("button", mergeProps({
|
|
2162
2162
|
class: ["v-select__activator", { opened: opened.value }]
|
|
2163
2163
|
}, activatorProps), [
|
|
2164
|
-
currentItem.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2164
|
+
currentItem.value ? (openBlock(), createElementBlock("div", _hoisted_1$w, toDisplayString(currentItem.value.title), 1)) : (openBlock(), createElementBlock("div", _hoisted_2$b, toDisplayString(props.placeholder ?? "Выберите значение"), 1)),
|
|
2165
2165
|
createVNode(ArrowDownIcon)
|
|
2166
2166
|
], 16),
|
|
2167
|
-
createElementVNode("div", _hoisted_3$
|
|
2167
|
+
createElementVNode("div", _hoisted_3$7, [
|
|
2168
2168
|
renderSlot(_ctx.$slots, "default"),
|
|
2169
2169
|
_ctx.nullable && model.value ? (openBlock(), createBlock(VIconButton, {
|
|
2170
2170
|
key: 0,
|
|
@@ -2180,10 +2180,10 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
2180
2180
|
])
|
|
2181
2181
|
]),
|
|
2182
2182
|
default: withCtx(() => [
|
|
2183
|
-
createElementVNode("div", _hoisted_4$
|
|
2183
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
2184
2184
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item) => {
|
|
2185
2185
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
2186
|
-
item === "" ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
2186
|
+
item === "" ? (openBlock(), createElementBlock("div", _hoisted_5$3)) : typeof item === "string" ? (openBlock(), createElementBlock("div", _hoisted_6$2, toDisplayString(item), 1)) : (openBlock(), createElementBlock("button", {
|
|
2187
2187
|
key: 2,
|
|
2188
2188
|
class: normalizeClass({ active: item.id === model.value }),
|
|
2189
2189
|
onClick: ($event) => onItemClick(item)
|
|
@@ -2191,7 +2191,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
2191
2191
|
renderSlot(_ctx.$slots, "item", { item }, () => [
|
|
2192
2192
|
createTextVNode(toDisplayString(item.title), 1)
|
|
2193
2193
|
])
|
|
2194
|
-
], 10, _hoisted_7$
|
|
2194
|
+
], 10, _hoisted_7$2))
|
|
2195
2195
|
], 64);
|
|
2196
2196
|
}), 256))
|
|
2197
2197
|
])
|
|
@@ -2204,8 +2204,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
2204
2204
|
};
|
|
2205
2205
|
}
|
|
2206
2206
|
});
|
|
2207
|
-
const _hoisted_1$
|
|
2208
|
-
const _sfc_main$
|
|
2207
|
+
const _hoisted_1$v = { class: "json-editor__array" };
|
|
2208
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
2209
2209
|
__name: "JsonEditorArray",
|
|
2210
2210
|
props: {
|
|
2211
2211
|
label: {},
|
|
@@ -2238,13 +2238,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
2238
2238
|
return `${props.label} (${length.value})`;
|
|
2239
2239
|
});
|
|
2240
2240
|
return (_ctx, _cache) => {
|
|
2241
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2242
|
-
createVNode(_sfc_main$
|
|
2241
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
2242
|
+
createVNode(_sfc_main$I, {
|
|
2243
2243
|
label: label.value,
|
|
2244
2244
|
open: props.expanded
|
|
2245
2245
|
}, {
|
|
2246
2246
|
default: withCtx(() => [
|
|
2247
|
-
createVNode(_sfc_main$
|
|
2247
|
+
createVNode(_sfc_main$N, {
|
|
2248
2248
|
label: "Количество элементов",
|
|
2249
2249
|
modelValue: length.value,
|
|
2250
2250
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => length.value = $event),
|
|
@@ -2268,8 +2268,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
2268
2268
|
};
|
|
2269
2269
|
}
|
|
2270
2270
|
});
|
|
2271
|
-
const _sfc_main$
|
|
2272
|
-
const _hoisted_1$
|
|
2271
|
+
const _sfc_main$B = {};
|
|
2272
|
+
const _hoisted_1$u = {
|
|
2273
2273
|
width: "46",
|
|
2274
2274
|
height: "28",
|
|
2275
2275
|
viewBox: "0 0 46 28",
|
|
@@ -2277,13 +2277,13 @@ const _hoisted_1$t = {
|
|
|
2277
2277
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2278
2278
|
};
|
|
2279
2279
|
function _sfc_render$c(_ctx, _cache) {
|
|
2280
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2280
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$u, _cache[0] || (_cache[0] = [
|
|
2281
2281
|
createStaticVNode('<mask id="mask0_1044_6" style="mask-type:luminance;" maskUnits="userSpaceOnUse" x="0" y="0" width="46" height="28"><path d="M45.5 0H0.5V28H45.5V0Z" fill="white"></path></mask><g mask="url(#mask0_1044_6)"><path d="M23.5 27.8537C35.9264 27.8537 46 25.6664 46 22.9683C46 20.2702 35.9264 18.083 23.5 18.083C11.0736 18.083 1 20.2702 1 22.9683C1 25.6664 11.0736 27.8537 23.5 27.8537Z" fill="#D7D7D7"></path><path d="M39.6719 9.5459L32.538 1.51859C32.1955 0.971432 31.6956 0.640625 31.169 0.640625H15.831C15.3044 0.640625 14.8045 0.971432 14.462 1.51789L7.32812 9.5466V15.9946H39.6719V9.5459Z" stroke="#A0A0A0" stroke-width="0.703125"></path><path d="M30.2591 11.7594C30.2591 10.6393 30.958 9.71457 31.825 9.71387H39.6719V22.3718C39.6719 23.8534 38.7437 25.0678 37.5977 25.0678H9.40234C8.25625 25.0678 7.32812 23.8527 7.32812 22.3718V9.71387H15.175C16.042 9.71387 16.7409 10.6372 16.7409 11.7573V11.7727C16.7409 12.8928 17.4475 13.7973 18.3138 13.7973H28.6862C29.5525 13.7973 30.2591 12.8845 30.2591 11.7643V11.7594Z" fill="#FAFAFA" stroke="#A0A0A0" stroke-width="0.703125"></path></g>', 2)
|
|
2282
2282
|
]));
|
|
2283
2283
|
}
|
|
2284
|
-
const EmptyFileIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2285
|
-
const _sfc_main$
|
|
2286
|
-
const _hoisted_1$
|
|
2284
|
+
const EmptyFileIcon = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$c]]);
|
|
2285
|
+
const _sfc_main$A = {};
|
|
2286
|
+
const _hoisted_1$t = {
|
|
2287
2287
|
width: "24",
|
|
2288
2288
|
height: "24",
|
|
2289
2289
|
viewBox: "0 0 24 24",
|
|
@@ -2291,15 +2291,15 @@ const _hoisted_1$s = {
|
|
|
2291
2291
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2292
2292
|
};
|
|
2293
2293
|
function _sfc_render$b(_ctx, _cache) {
|
|
2294
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2294
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$t, _cache[0] || (_cache[0] = [
|
|
2295
2295
|
createElementVNode("path", {
|
|
2296
2296
|
d: "M14 18C14 18.5304 13.7893 19.0391 13.4142 19.4142C13.0391 19.7893 12.5304 20 12 20C11.4696 20 10.9609 19.7893 10.5858 19.4142C10.2107 19.0391 10 18.5304 10 18C10 17.4696 10.2107 16.9609 10.5858 16.5858C10.9609 16.2107 11.4696 16 12 16C12.5304 16 13.0391 16.2107 13.4142 16.5858C13.7893 16.9609 14 17.4696 14 18ZM14 12C14 12.5304 13.7893 13.0391 13.4142 13.4142C13.0391 13.7893 12.5304 14 12 14C11.4696 14 10.9609 13.7893 10.5858 13.4142C10.2107 13.0391 10 12.5304 10 12C10 11.4696 10.2107 10.9609 10.5858 10.5858C10.9609 10.2107 11.4696 10 12 10C12.5304 10 13.0391 10.2107 13.4142 10.5858C13.7893 10.9609 14 11.4696 14 12ZM12 8C12.5304 8 13.0391 7.78929 13.4142 7.41421C13.7893 7.03914 14 6.53043 14 6C14 5.46957 13.7893 4.96086 13.4142 4.58579C13.0391 4.21071 12.5304 4 12 4C11.4696 4 10.9609 4.21071 10.5858 4.58579C10.2107 4.96086 10 5.46957 10 6C10 6.53043 10.2107 7.03914 10.5858 7.41421C10.9609 7.78929 11.4696 8 12 8Z",
|
|
2297
2297
|
fill: "currentColor"
|
|
2298
2298
|
}, null, -1)
|
|
2299
2299
|
]));
|
|
2300
2300
|
}
|
|
2301
|
-
const MoreIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2302
|
-
const _sfc_main$
|
|
2301
|
+
const MoreIcon = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$b]]);
|
|
2302
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
2303
2303
|
__name: "VButton",
|
|
2304
2304
|
props: {
|
|
2305
2305
|
component: {},
|
|
@@ -2352,7 +2352,7 @@ const useContextMenu = (creator) => {
|
|
|
2352
2352
|
open
|
|
2353
2353
|
};
|
|
2354
2354
|
};
|
|
2355
|
-
const _sfc_main$
|
|
2355
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
2356
2356
|
...{
|
|
2357
2357
|
inheritAttrs: false
|
|
2358
2358
|
},
|
|
@@ -2444,7 +2444,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
2444
2444
|
const _component_VContextMenu = resolveComponent("VContextMenu", true);
|
|
2445
2445
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
2446
2446
|
renderSlot(_ctx.$slots, "activator", { props: activatorProps }),
|
|
2447
|
-
createVNode(_sfc_main$
|
|
2447
|
+
createVNode(_sfc_main$H, mergeProps({
|
|
2448
2448
|
open: open.value,
|
|
2449
2449
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
2450
2450
|
element: activatorElement.value,
|
|
@@ -2456,7 +2456,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
2456
2456
|
}, _ctx.$attrs), {
|
|
2457
2457
|
default: withCtx(() => [
|
|
2458
2458
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item) => {
|
|
2459
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2459
|
+
return openBlock(), createBlock(_sfc_main$z, mergeProps({ ref_for: true }, item.props, {
|
|
2460
2460
|
class: "v-context-menu__item",
|
|
2461
2461
|
onMouseenter: ($event) => onItemHover($event, item),
|
|
2462
2462
|
onClick: ($event) => onItemClick(item)
|
|
@@ -2511,7 +2511,7 @@ const createDialogSystem = () => {
|
|
|
2511
2511
|
};
|
|
2512
2512
|
};
|
|
2513
2513
|
const useDialog = () => inject("dialogStore");
|
|
2514
|
-
const _sfc_main$
|
|
2514
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
2515
2515
|
__name: "VDialogProvider",
|
|
2516
2516
|
setup(__props) {
|
|
2517
2517
|
const dialogStore = inject("dialogStore");
|
|
@@ -2568,15 +2568,15 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
2568
2568
|
};
|
|
2569
2569
|
}
|
|
2570
2570
|
});
|
|
2571
|
-
const _hoisted_1$
|
|
2571
|
+
const _hoisted_1$s = {
|
|
2572
2572
|
key: 0,
|
|
2573
2573
|
class: "v-dialog__header heading"
|
|
2574
2574
|
};
|
|
2575
|
-
const _hoisted_2$
|
|
2575
|
+
const _hoisted_2$a = {
|
|
2576
2576
|
key: 1,
|
|
2577
2577
|
class: "v-dialog__actions"
|
|
2578
2578
|
};
|
|
2579
|
-
const _sfc_main$
|
|
2579
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
2580
2580
|
__name: "VDialog",
|
|
2581
2581
|
props: {
|
|
2582
2582
|
"content:class": {},
|
|
@@ -2592,7 +2592,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2592
2592
|
role: "dialog"
|
|
2593
2593
|
}, {
|
|
2594
2594
|
default: withCtx(() => [
|
|
2595
|
-
unref(slots).header ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2595
|
+
unref(slots).header ? (openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
2596
2596
|
renderSlot(_ctx.$slots, "header"),
|
|
2597
2597
|
createVNode(VIconButton, {
|
|
2598
2598
|
role: "button",
|
|
@@ -2610,7 +2610,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2610
2610
|
}, [
|
|
2611
2611
|
renderSlot(_ctx.$slots, "default")
|
|
2612
2612
|
], 2),
|
|
2613
|
-
unref(slots).actions ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
2613
|
+
unref(slots).actions ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
2614
2614
|
renderSlot(_ctx.$slots, "actions")
|
|
2615
2615
|
])) : createCommentVNode("", true)
|
|
2616
2616
|
]),
|
|
@@ -2619,13 +2619,13 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2619
2619
|
};
|
|
2620
2620
|
}
|
|
2621
2621
|
});
|
|
2622
|
-
const _hoisted_1$
|
|
2622
|
+
const _hoisted_1$r = {
|
|
2623
2623
|
key: 0,
|
|
2624
2624
|
class: "project-images__grid"
|
|
2625
2625
|
};
|
|
2626
|
-
const _hoisted_2$
|
|
2627
|
-
const _hoisted_3$
|
|
2628
|
-
const _sfc_main$
|
|
2626
|
+
const _hoisted_2$9 = ["onClick"];
|
|
2627
|
+
const _hoisted_3$6 = ["src"];
|
|
2628
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
2629
2629
|
__name: "ProjectImagesDialog",
|
|
2630
2630
|
props: {
|
|
2631
2631
|
fileRequest: { type: Function },
|
|
@@ -2640,20 +2640,20 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
2640
2640
|
dialog.back();
|
|
2641
2641
|
};
|
|
2642
2642
|
return (_ctx, _cache) => {
|
|
2643
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2643
|
+
return openBlock(), createBlock(_sfc_main$w, { style: { "width": "900px" } }, {
|
|
2644
2644
|
header: withCtx(() => _cache[0] || (_cache[0] = [
|
|
2645
2645
|
createTextVNode("Изображения проекта")
|
|
2646
2646
|
])),
|
|
2647
2647
|
default: withCtx(() => [
|
|
2648
|
-
unref(data) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2648
|
+
unref(data) ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
2649
2649
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(data), (item) => {
|
|
2650
2650
|
return openBlock(), createElementBlock("button", {
|
|
2651
2651
|
onClick: ($event) => openImage(item)
|
|
2652
2652
|
}, [
|
|
2653
2653
|
createElementVNode("img", {
|
|
2654
2654
|
src: item.previewSrc ?? item.src
|
|
2655
|
-
}, null, 8, _hoisted_3$
|
|
2656
|
-
], 8, _hoisted_2$
|
|
2655
|
+
}, null, 8, _hoisted_3$6)
|
|
2656
|
+
], 8, _hoisted_2$9);
|
|
2657
2657
|
}), 256))
|
|
2658
2658
|
])) : createCommentVNode("", true)
|
|
2659
2659
|
]),
|
|
@@ -2662,14 +2662,14 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
2662
2662
|
};
|
|
2663
2663
|
}
|
|
2664
2664
|
});
|
|
2665
|
-
const _hoisted_1$
|
|
2665
|
+
const _hoisted_1$q = {
|
|
2666
2666
|
key: 0,
|
|
2667
2667
|
class: "v-image-uploader__drag-label"
|
|
2668
2668
|
};
|
|
2669
|
-
const _hoisted_2$
|
|
2670
|
-
const _hoisted_3$
|
|
2671
|
-
const _hoisted_4$
|
|
2672
|
-
const _sfc_main$
|
|
2669
|
+
const _hoisted_2$8 = { class: "v-image-uploader__image-preview" };
|
|
2670
|
+
const _hoisted_3$5 = ["src"];
|
|
2671
|
+
const _hoisted_4$3 = { class: "v-image-uploader__image-info" };
|
|
2672
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
2673
2673
|
__name: "VImageUploader",
|
|
2674
2674
|
props: {
|
|
2675
2675
|
accept: {},
|
|
@@ -2735,10 +2735,10 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2735
2735
|
emit("update:modelValue", image);
|
|
2736
2736
|
};
|
|
2737
2737
|
if (fileRequest) {
|
|
2738
|
-
contextMenuItems.push({ title: "Выбрать из файлов проекта", onClick: () => dialog.open(_sfc_main$
|
|
2738
|
+
contextMenuItems.push({ title: "Выбрать из файлов проекта", onClick: () => dialog.open(_sfc_main$v, { fileRequest, onOpenImage }) });
|
|
2739
2739
|
}
|
|
2740
2740
|
return (_ctx, _cache) => {
|
|
2741
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2741
|
+
return openBlock(), createBlock(_sfc_main$O, {
|
|
2742
2742
|
class: normalizeClass(["v-image-uploader", { drag: drag.value }]),
|
|
2743
2743
|
error: _ctx.error,
|
|
2744
2744
|
label: _ctx.label,
|
|
@@ -2750,7 +2750,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2750
2750
|
onDragleave: onDragLeave
|
|
2751
2751
|
}, {
|
|
2752
2752
|
default: withCtx(() => [
|
|
2753
|
-
drag.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2753
|
+
drag.value ? (openBlock(), createElementBlock("div", _hoisted_1$q, "Отпустите файл здесь")) : !props.modelValue || props.modelValue.src === unref(defaultImageSrc) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2754
2754
|
createVNode(EmptyFileIcon),
|
|
2755
2755
|
createElementVNode("div", null, [
|
|
2756
2756
|
createElementVNode("a", {
|
|
@@ -2758,7 +2758,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2758
2758
|
}, "Загрузите изображение"),
|
|
2759
2759
|
_cache[1] || (_cache[1] = createElementVNode("br", null, null, -1)),
|
|
2760
2760
|
_cache[2] || (_cache[2] = createTextVNode("или перетащите сюда ")),
|
|
2761
|
-
contextMenuItems.length > 0 ? (openBlock(), createBlock(_sfc_main$
|
|
2761
|
+
contextMenuItems.length > 0 ? (openBlock(), createBlock(_sfc_main$y, {
|
|
2762
2762
|
key: 0,
|
|
2763
2763
|
items: contextMenuItems,
|
|
2764
2764
|
placement: "bottom-end"
|
|
@@ -2775,11 +2775,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2775
2775
|
})) : createCommentVNode("", true)
|
|
2776
2776
|
])
|
|
2777
2777
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
2778
|
-
createElementVNode("div", _hoisted_2$
|
|
2778
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
2779
2779
|
createElementVNode("img", {
|
|
2780
2780
|
src: props.modelValue.previewSrc ?? props.modelValue.src,
|
|
2781
2781
|
alt: "Preview Image"
|
|
2782
|
-
}, null, 8, _hoisted_3$
|
|
2782
|
+
}, null, 8, _hoisted_3$5),
|
|
2783
2783
|
createVNode(VIconButton, {
|
|
2784
2784
|
class: "v-image-uploader__delete-button",
|
|
2785
2785
|
onClick: removeImage
|
|
@@ -2790,7 +2790,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2790
2790
|
_: 1
|
|
2791
2791
|
})
|
|
2792
2792
|
]),
|
|
2793
|
-
createElementVNode("div", _hoisted_4$
|
|
2793
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
2794
2794
|
createElementVNode("div", null, toDisplayString(props.modelValue.name), 1)
|
|
2795
2795
|
])
|
|
2796
2796
|
], 64))
|
|
@@ -2800,8 +2800,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2800
2800
|
};
|
|
2801
2801
|
}
|
|
2802
2802
|
});
|
|
2803
|
-
const _sfc_main$
|
|
2804
|
-
const _hoisted_1$
|
|
2803
|
+
const _sfc_main$t = {};
|
|
2804
|
+
const _hoisted_1$p = {
|
|
2805
2805
|
width: "18",
|
|
2806
2806
|
height: "18",
|
|
2807
2807
|
viewBox: "0 0 18 18",
|
|
@@ -2809,24 +2809,24 @@ const _hoisted_1$o = {
|
|
|
2809
2809
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2810
2810
|
};
|
|
2811
2811
|
function _sfc_render$a(_ctx, _cache) {
|
|
2812
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2812
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$p, _cache[0] || (_cache[0] = [
|
|
2813
2813
|
createElementVNode("path", {
|
|
2814
2814
|
d: "M14.0326 5.40749C13.9629 5.33719 13.8799 5.28139 13.7885 5.24332C13.6971 5.20524 13.5991 5.18564 13.5001 5.18564C13.4011 5.18564 13.303 5.20524 13.2117 5.24332C13.1203 5.28139 13.0373 5.33719 12.9676 5.40749L7.38008 11.0025L5.03258 8.64749C4.96019 8.57756 4.87474 8.52257 4.7811 8.48567C4.68745 8.44877 4.58746 8.43067 4.48683 8.43241C4.38619 8.43415 4.28688 8.4557 4.19457 8.49582C4.10227 8.53594 4.01876 8.59385 3.94883 8.66624C3.87891 8.73863 3.82392 8.82408 3.78702 8.91773C3.75011 9.01137 3.73202 9.11136 3.73376 9.212C3.7355 9.31263 3.75704 9.41194 3.79716 9.50425C3.83728 9.59656 3.89519 9.68006 3.96758 9.74999L6.84758 12.63C6.91731 12.7003 7.00026 12.7561 7.09165 12.7942C7.18305 12.8322 7.28108 12.8518 7.38008 12.8518C7.47909 12.8518 7.57712 12.8322 7.66852 12.7942C7.75991 12.7561 7.84286 12.7003 7.91258 12.63L14.0326 6.50999C14.1087 6.43976 14.1695 6.35452 14.211 6.25964C14.2526 6.16477 14.274 6.06231 14.274 5.95874C14.274 5.85516 14.2526 5.75271 14.211 5.65783C14.1695 5.56296 14.1087 5.47772 14.0326 5.40749Z",
|
|
2815
2815
|
fill: "currentColor"
|
|
2816
2816
|
}, null, -1)
|
|
2817
2817
|
]));
|
|
2818
2818
|
}
|
|
2819
|
-
const CheckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2820
|
-
const _hoisted_1$
|
|
2819
|
+
const CheckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]]);
|
|
2820
|
+
const _hoisted_1$o = {
|
|
2821
2821
|
key: 0,
|
|
2822
2822
|
class: "mech-v-checkbox__label left"
|
|
2823
2823
|
};
|
|
2824
|
-
const _hoisted_2$
|
|
2825
|
-
const _hoisted_3$
|
|
2824
|
+
const _hoisted_2$7 = ["name"];
|
|
2825
|
+
const _hoisted_3$4 = {
|
|
2826
2826
|
key: 1,
|
|
2827
2827
|
class: "mech-v-checkbox__label"
|
|
2828
2828
|
};
|
|
2829
|
-
const _sfc_main$
|
|
2829
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
2830
2830
|
__name: "VCheckbox",
|
|
2831
2831
|
props: /* @__PURE__ */ mergeModels({
|
|
2832
2832
|
label: {},
|
|
@@ -2858,7 +2858,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
2858
2858
|
onClick,
|
|
2859
2859
|
onKeydown: onClick
|
|
2860
2860
|
}, [
|
|
2861
|
-
labelPosition.value === "left" ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2861
|
+
labelPosition.value === "left" ? (openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
2862
2862
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
2863
2863
|
createTextVNode(toDisplayString(props.label), 1)
|
|
2864
2864
|
])
|
|
@@ -2872,10 +2872,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
2872
2872
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
2873
2873
|
type: "checkbox",
|
|
2874
2874
|
name: props.name
|
|
2875
|
-
}, null, 8, _hoisted_2$
|
|
2875
|
+
}, null, 8, _hoisted_2$7), [
|
|
2876
2876
|
[vModelCheckbox, model.value]
|
|
2877
2877
|
]),
|
|
2878
|
-
labelPosition.value === "right" ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2878
|
+
labelPosition.value === "right" ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
2879
2879
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
2880
2880
|
createTextVNode(toDisplayString(props.label), 1)
|
|
2881
2881
|
])
|
|
@@ -2895,8 +2895,8 @@ const capitalize = (text) => {
|
|
|
2895
2895
|
const spaceCamelCase = (str) => {
|
|
2896
2896
|
return capitalize(str.replace(/([A-Z])/g, " $1").trimStart());
|
|
2897
2897
|
};
|
|
2898
|
-
const _sfc_main$
|
|
2899
|
-
const _hoisted_1$
|
|
2898
|
+
const _sfc_main$r = {};
|
|
2899
|
+
const _hoisted_1$n = {
|
|
2900
2900
|
width: "24",
|
|
2901
2901
|
height: "24",
|
|
2902
2902
|
viewBox: "0 0 24 24",
|
|
@@ -2904,7 +2904,7 @@ const _hoisted_1$m = {
|
|
|
2904
2904
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2905
2905
|
};
|
|
2906
2906
|
function _sfc_render$9(_ctx, _cache) {
|
|
2907
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2907
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$n, _cache[0] || (_cache[0] = [
|
|
2908
2908
|
createElementVNode("path", {
|
|
2909
2909
|
"fill-rule": "evenodd",
|
|
2910
2910
|
"clip-rule": "evenodd",
|
|
@@ -2913,9 +2913,9 @@ function _sfc_render$9(_ctx, _cache) {
|
|
|
2913
2913
|
}, null, -1)
|
|
2914
2914
|
]));
|
|
2915
2915
|
}
|
|
2916
|
-
const EditIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2917
|
-
const _hoisted_1$
|
|
2918
|
-
const _sfc_main$
|
|
2916
|
+
const EditIcon = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$9]]);
|
|
2917
|
+
const _hoisted_1$m = { class: "v-link-editor__custom" };
|
|
2918
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
2919
2919
|
__name: "VLinkEditor",
|
|
2920
2920
|
props: /* @__PURE__ */ mergeModels({
|
|
2921
2921
|
nullable: { type: Boolean }
|
|
@@ -2970,7 +2970,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
2970
2970
|
return arr;
|
|
2971
2971
|
});
|
|
2972
2972
|
return (_ctx, _cache) => {
|
|
2973
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2973
|
+
return openBlock(), createBlock(_sfc_main$D, {
|
|
2974
2974
|
class: "v-link-editor",
|
|
2975
2975
|
modelValue: linkType.value,
|
|
2976
2976
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => linkType.value = $event),
|
|
@@ -2978,7 +2978,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
2978
2978
|
nullable: props.nullable
|
|
2979
2979
|
}, {
|
|
2980
2980
|
default: withCtx(() => [
|
|
2981
|
-
model.value && model.value.id ? (openBlock(), createBlock(_sfc_main$
|
|
2981
|
+
model.value && model.value.id ? (openBlock(), createBlock(_sfc_main$H, {
|
|
2982
2982
|
key: 0,
|
|
2983
2983
|
offset: 4,
|
|
2984
2984
|
placement: "bottom-end"
|
|
@@ -2994,27 +2994,27 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
2994
2994
|
default: withCtx(() => {
|
|
2995
2995
|
var _a;
|
|
2996
2996
|
return [
|
|
2997
|
-
createElementVNode("div", _hoisted_1$
|
|
2998
|
-
model.value.id === "_external" ? (openBlock(), createBlock(_sfc_main$
|
|
2997
|
+
createElementVNode("div", _hoisted_1$m, [
|
|
2998
|
+
model.value.id === "_external" ? (openBlock(), createBlock(_sfc_main$N, {
|
|
2999
2999
|
key: 0,
|
|
3000
3000
|
modelValue: model.value.url,
|
|
3001
3001
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value.url = $event),
|
|
3002
3002
|
label: "URL ссылки",
|
|
3003
3003
|
autofocus: ""
|
|
3004
3004
|
}, null, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
3005
|
-
model.value.id !== "_external" ? (openBlock(), createBlock(_sfc_main$
|
|
3005
|
+
model.value.id !== "_external" ? (openBlock(), createBlock(_sfc_main$N, {
|
|
3006
3006
|
key: 1,
|
|
3007
3007
|
modelValue: model.value.query,
|
|
3008
3008
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => model.value.query = $event),
|
|
3009
3009
|
label: "Якорь",
|
|
3010
3010
|
prefix: (_a = model.value) == null ? void 0 : _a.url
|
|
3011
3011
|
}, null, 8, ["modelValue", "prefix"])) : createCommentVNode("", true),
|
|
3012
|
-
createVNode(_sfc_main$
|
|
3012
|
+
createVNode(_sfc_main$N, {
|
|
3013
3013
|
modelValue: model.value.title,
|
|
3014
3014
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => model.value.title = $event),
|
|
3015
3015
|
label: "Заголовок"
|
|
3016
3016
|
}, null, 8, ["modelValue"]),
|
|
3017
|
-
createVNode(_sfc_main$
|
|
3017
|
+
createVNode(_sfc_main$s, {
|
|
3018
3018
|
modelValue: model.value.openNewTab,
|
|
3019
3019
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => model.value.openNewTab = $event),
|
|
3020
3020
|
label: "Открывать в новой вкладке"
|
|
@@ -4311,11 +4311,11 @@ const codeParser = (text) => {
|
|
|
4311
4311
|
}
|
|
4312
4312
|
return arr;
|
|
4313
4313
|
};
|
|
4314
|
-
const _hoisted_1$
|
|
4314
|
+
const _hoisted_1$l = {
|
|
4315
4315
|
class: "code-editor",
|
|
4316
4316
|
contenteditable: false
|
|
4317
4317
|
};
|
|
4318
|
-
const _sfc_main$
|
|
4318
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
4319
4319
|
__name: "RichTextEditorCode",
|
|
4320
4320
|
props: {
|
|
4321
4321
|
modelValue: {}
|
|
@@ -4343,7 +4343,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
4343
4343
|
}
|
|
4344
4344
|
};
|
|
4345
4345
|
return (_ctx, _cache) => {
|
|
4346
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4346
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
4347
4347
|
createVNode(unref(_sfc_main$1$1), {
|
|
4348
4348
|
modelValue: model.value,
|
|
4349
4349
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
@@ -4358,15 +4358,15 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
4358
4358
|
};
|
|
4359
4359
|
}
|
|
4360
4360
|
});
|
|
4361
|
-
const _hoisted_1$
|
|
4362
|
-
const _hoisted_2$
|
|
4363
|
-
const _hoisted_3$
|
|
4364
|
-
const _hoisted_4$
|
|
4365
|
-
const _hoisted_5$
|
|
4366
|
-
const _hoisted_6 = { class: "title" };
|
|
4367
|
-
const _hoisted_7 = { class: "path" };
|
|
4361
|
+
const _hoisted_1$k = { class: "rich-text-editor-link-popover__current-item" };
|
|
4362
|
+
const _hoisted_2$6 = { class: "title" };
|
|
4363
|
+
const _hoisted_3$3 = { class: "path" };
|
|
4364
|
+
const _hoisted_4$2 = { class: "rich-text-editor-link-popover__items" };
|
|
4365
|
+
const _hoisted_5$2 = ["onClick"];
|
|
4366
|
+
const _hoisted_6$1 = { class: "title" };
|
|
4367
|
+
const _hoisted_7$1 = { class: "path" };
|
|
4368
4368
|
const _hoisted_8 = { class: "path" };
|
|
4369
|
-
const _sfc_main$
|
|
4369
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
4370
4370
|
__name: "RichTextEditorLinkPopover",
|
|
4371
4371
|
props: {
|
|
4372
4372
|
state: {}
|
|
@@ -4416,11 +4416,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
4416
4416
|
};
|
|
4417
4417
|
return (_ctx, _cache) => {
|
|
4418
4418
|
return props.state.url ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
4419
|
-
createElementVNode("div", _hoisted_1$
|
|
4420
|
-
createElementVNode("div", _hoisted_2$
|
|
4421
|
-
createElementVNode("div", _hoisted_3$
|
|
4419
|
+
createElementVNode("div", _hoisted_1$k, [
|
|
4420
|
+
createElementVNode("div", _hoisted_2$6, toDisplayString(props.state.pageName ?? "Внешняя ссылка"), 1),
|
|
4421
|
+
createElementVNode("div", _hoisted_3$3, toDisplayString(props.state.url), 1)
|
|
4422
4422
|
]),
|
|
4423
|
-
createVNode(_sfc_main$
|
|
4423
|
+
createVNode(_sfc_main$z, {
|
|
4424
4424
|
style: { "margin-top": "8px", "margin-bottom": "4px" },
|
|
4425
4425
|
onClick: deleteLink
|
|
4426
4426
|
}, {
|
|
@@ -4431,21 +4431,21 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
4431
4431
|
__: [2]
|
|
4432
4432
|
})
|
|
4433
4433
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
4434
|
-
createVNode(_sfc_main$
|
|
4434
|
+
createVNode(_sfc_main$N, {
|
|
4435
4435
|
modelValue: searchValue.value,
|
|
4436
4436
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchValue.value = $event),
|
|
4437
4437
|
autofocus: "",
|
|
4438
4438
|
placeholder: "Введите URL или название страницы"
|
|
4439
4439
|
}, null, 8, ["modelValue"]),
|
|
4440
|
-
createElementVNode("div", _hoisted_4$
|
|
4440
|
+
createElementVNode("div", _hoisted_4$2, [
|
|
4441
4441
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item) => {
|
|
4442
4442
|
return openBlock(), createElementBlock("button", {
|
|
4443
4443
|
class: "rich-text-editor-link-popover__item",
|
|
4444
4444
|
onClick: ($event) => onButtonClick(item)
|
|
4445
4445
|
}, [
|
|
4446
|
-
createElementVNode("div", _hoisted_6, toDisplayString(item.name), 1),
|
|
4447
|
-
createElementVNode("div", _hoisted_7, toDisplayString(item.path), 1)
|
|
4448
|
-
], 8, _hoisted_5$
|
|
4446
|
+
createElementVNode("div", _hoisted_6$1, toDisplayString(item.name), 1),
|
|
4447
|
+
createElementVNode("div", _hoisted_7$1, toDisplayString(item.path), 1)
|
|
4448
|
+
], 8, _hoisted_5$2);
|
|
4449
4449
|
}), 256)),
|
|
4450
4450
|
searchValue.value.length > 0 ? (openBlock(), createElementBlock("button", {
|
|
4451
4451
|
key: 0,
|
|
@@ -4455,7 +4455,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
4455
4455
|
_cache[3] || (_cache[3] = createElementVNode("div", { class: "title" }, "Создать внешнюю ссылку", -1)),
|
|
4456
4456
|
createElementVNode("div", _hoisted_8, toDisplayString(searchValue.value), 1)
|
|
4457
4457
|
])) : createCommentVNode("", true),
|
|
4458
|
-
searchValue.value.startsWith("http") ? (openBlock(), createBlock(_sfc_main$
|
|
4458
|
+
searchValue.value.startsWith("http") ? (openBlock(), createBlock(_sfc_main$s, {
|
|
4459
4459
|
key: 1,
|
|
4460
4460
|
modelValue: openInNewPage.value,
|
|
4461
4461
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => openInNewPage.value = $event),
|
|
@@ -4467,8 +4467,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
4467
4467
|
};
|
|
4468
4468
|
}
|
|
4469
4469
|
});
|
|
4470
|
-
const _sfc_main$
|
|
4471
|
-
const _hoisted_1$
|
|
4470
|
+
const _sfc_main$n = {};
|
|
4471
|
+
const _hoisted_1$j = {
|
|
4472
4472
|
width: "16",
|
|
4473
4473
|
height: "16",
|
|
4474
4474
|
viewBox: "0 0 16 16",
|
|
@@ -4476,16 +4476,16 @@ const _hoisted_1$i = {
|
|
|
4476
4476
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4477
4477
|
};
|
|
4478
4478
|
function _sfc_render$8(_ctx, _cache) {
|
|
4479
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
4479
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$j, _cache[0] || (_cache[0] = [
|
|
4480
4480
|
createElementVNode("path", {
|
|
4481
4481
|
d: "M4 2H8.5C9.14255 2.0002 9.77266 2.17723 10.3213 2.51171C10.8699 2.84618 11.3159 3.32519 11.6105 3.89627C11.905 4.46734 12.0367 5.10846 11.9911 5.7494C11.9455 6.39033 11.7244 7.00636 11.352 7.53C11.9979 7.93183 12.4953 8.53322 12.7688 9.24307C13.0423 9.95292 13.077 10.7326 12.8676 11.4639C12.6583 12.1952 12.2163 12.8384 11.6086 13.2961C11.001 13.7537 10.2607 14.0008 9.5 14H4C3.73478 14 3.48043 13.8946 3.29289 13.7071C3.10536 13.5196 3 13.2652 3 13V3C3 2.73478 3.10536 2.48043 3.29289 2.29289C3.48043 2.10536 3.73478 2 4 2ZM5 9V12H9.5C9.89782 12 10.2794 11.842 10.5607 11.5607C10.842 11.2794 11 10.8978 11 10.5C11 10.1022 10.842 9.72064 10.5607 9.43934C10.2794 9.15804 9.89782 9 9.5 9H5ZM8.5 7C8.89782 7 9.27936 6.84196 9.56066 6.56066C9.84196 6.27936 10 5.89782 10 5.5C10 5.10218 9.84196 4.72064 9.56066 4.43934C9.27936 4.15804 8.89782 4 8.5 4H5V7H8.5Z",
|
|
4482
4482
|
fill: "currentColor"
|
|
4483
4483
|
}, null, -1)
|
|
4484
4484
|
]));
|
|
4485
4485
|
}
|
|
4486
|
-
const TextBoldIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4487
|
-
const _sfc_main$
|
|
4488
|
-
const _hoisted_1$
|
|
4486
|
+
const TextBoldIcon = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$8]]);
|
|
4487
|
+
const _sfc_main$m = {};
|
|
4488
|
+
const _hoisted_1$i = {
|
|
4489
4489
|
width: "16",
|
|
4490
4490
|
height: "16",
|
|
4491
4491
|
viewBox: "0 0 16 16",
|
|
@@ -4493,16 +4493,16 @@ const _hoisted_1$h = {
|
|
|
4493
4493
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4494
4494
|
};
|
|
4495
4495
|
function _sfc_render$7(_ctx, _cache) {
|
|
4496
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
4496
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$i, _cache[0] || (_cache[0] = [
|
|
4497
4497
|
createElementVNode("path", {
|
|
4498
4498
|
d: "M6 2.75C6 2.55109 6.07902 2.36032 6.21967 2.21967C6.36032 2.07902 6.55109 2 6.75 2H13.25C13.4489 2 13.6397 2.07902 13.7803 2.21967C13.921 2.36032 14 2.55109 14 2.75C14 2.94891 13.921 3.13968 13.7803 3.28033C13.6397 3.42098 13.4489 3.5 13.25 3.5H10.745L6.887 12.5H9.25C9.44891 12.5 9.63968 12.579 9.78033 12.7197C9.92098 12.8603 10 13.0511 10 13.25C10 13.4489 9.92098 13.6397 9.78033 13.7803C9.63968 13.921 9.44891 14 9.25 14H2.75C2.55109 14 2.36032 13.921 2.21967 13.7803C2.07902 13.6397 2 13.4489 2 13.25C2 13.0511 2.07902 12.8603 2.21967 12.7197C2.36032 12.579 2.55109 12.5 2.75 12.5H5.255L9.113 3.5H6.75C6.55109 3.5 6.36032 3.42098 6.21967 3.28033C6.07902 3.13968 6 2.94891 6 2.75Z",
|
|
4499
4499
|
fill: "currentColor"
|
|
4500
4500
|
}, null, -1)
|
|
4501
4501
|
]));
|
|
4502
4502
|
}
|
|
4503
|
-
const TextItalicIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4504
|
-
const _sfc_main$
|
|
4505
|
-
const _hoisted_1$
|
|
4503
|
+
const TextItalicIcon = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$7]]);
|
|
4504
|
+
const _sfc_main$l = {};
|
|
4505
|
+
const _hoisted_1$h = {
|
|
4506
4506
|
width: "16",
|
|
4507
4507
|
height: "16",
|
|
4508
4508
|
viewBox: "0 0 16 16",
|
|
@@ -4510,16 +4510,16 @@ const _hoisted_1$g = {
|
|
|
4510
4510
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4511
4511
|
};
|
|
4512
4512
|
function _sfc_render$6(_ctx, _cache) {
|
|
4513
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
4513
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$h, _cache[0] || (_cache[0] = [
|
|
4514
4514
|
createElementVNode("path", {
|
|
4515
4515
|
d: "M8 11.0625C9.16032 11.0625 10.2731 10.6016 11.0936 9.78109C11.9141 8.96062 12.375 7.84782 12.375 6.6875V2.3125C12.375 2.08044 12.2828 1.85788 12.1187 1.69378C11.9546 1.52969 11.7321 1.4375 11.5 1.4375C11.2679 1.4375 11.0454 1.52969 10.8813 1.69378C10.7172 1.85788 10.625 2.08044 10.625 2.3125V6.6875C10.625 7.38369 10.3484 8.05137 9.85616 8.54366C9.36387 9.03594 8.69619 9.3125 8 9.3125C7.30381 9.3125 6.63613 9.03594 6.14384 8.54366C5.65156 8.05137 5.375 7.38369 5.375 6.6875V2.3125C5.375 2.08044 5.28281 1.85788 5.11872 1.69378C4.95462 1.52969 4.73206 1.4375 4.5 1.4375C4.26794 1.4375 4.04538 1.52969 3.88128 1.69378C3.71719 1.85788 3.625 2.08044 3.625 2.3125V6.6875C3.625 7.84782 4.08594 8.96062 4.90641 9.78109C5.72688 10.6016 6.83968 11.0625 8 11.0625ZM12.375 12.8125H3.625C3.39294 12.8125 3.17038 12.9047 3.00628 13.0688C2.84219 13.2329 2.75 13.4554 2.75 13.6875C2.75 13.9196 2.84219 14.1421 3.00628 14.3062C3.17038 14.4703 3.39294 14.5625 3.625 14.5625H12.375C12.6071 14.5625 12.8296 14.4703 12.9937 14.3062C13.1578 14.1421 13.25 13.9196 13.25 13.6875C13.25 13.4554 13.1578 13.2329 12.9937 13.0688C12.8296 12.9047 12.6071 12.8125 12.375 12.8125Z",
|
|
4516
4516
|
fill: "currentColor"
|
|
4517
4517
|
}, null, -1)
|
|
4518
4518
|
]));
|
|
4519
4519
|
}
|
|
4520
|
-
const TextUnderlineIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4521
|
-
const _sfc_main$
|
|
4522
|
-
const _hoisted_1$
|
|
4520
|
+
const TextUnderlineIcon = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$6]]);
|
|
4521
|
+
const _sfc_main$k = {};
|
|
4522
|
+
const _hoisted_1$g = {
|
|
4523
4523
|
width: "16",
|
|
4524
4524
|
height: "16",
|
|
4525
4525
|
viewBox: "0 0 16 16",
|
|
@@ -4527,16 +4527,16 @@ const _hoisted_1$f = {
|
|
|
4527
4527
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4528
4528
|
};
|
|
4529
4529
|
function _sfc_render$5(_ctx, _cache) {
|
|
4530
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
4530
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$g, _cache[0] || (_cache[0] = [
|
|
4531
4531
|
createElementVNode("path", {
|
|
4532
4532
|
d: "M11.055 8.5C11.579 9.036 11.87 9.757 11.866 10.507C11.8673 10.9659 11.7676 11.4195 11.574 11.8357C11.3805 12.2518 11.0978 12.6203 10.746 12.915C9.948 13.597 8.748 14 7.096 14C5.39 14 3.992 13.393 3.194 12.623C3.06263 12.4823 2.99028 12.2966 2.99188 12.1041C2.99349 11.9117 3.06893 11.7272 3.20264 11.5887C3.33634 11.4503 3.5181 11.3684 3.7104 11.3601C3.90269 11.3518 4.09084 11.4176 4.236 11.544C4.716 12.007 5.723 12.5 7.096 12.5C8.518 12.5 9.328 12.154 9.772 11.774C10.207 11.402 10.366 10.935 10.366 10.507C10.366 10.035 10.158 9.65 9.719 9.31C9.271 8.964 8.603 8.687 7.768 8.5H1.75C1.55109 8.5 1.36032 8.42098 1.21967 8.28033C1.07902 8.13968 1 7.94891 1 7.75C1 7.55109 1.07902 7.36032 1.21967 7.21967C1.36032 7.07902 1.55109 7 1.75 7H14.25C14.4489 7 14.6397 7.07902 14.7803 7.21967C14.921 7.36032 15 7.55109 15 7.75C15 7.94891 14.921 8.13968 14.7803 8.28033C14.6397 8.42098 14.4489 8.5 14.25 8.5H11.055ZM7.581 3.25C5.545 3.25 4.803 4.332 4.803 5.036C4.803 5.09067 4.805 5.143 4.809 5.193C4.82412 5.39138 4.75981 5.58764 4.63022 5.73861C4.50063 5.88958 4.31638 5.98288 4.118 5.998C3.91962 6.01312 3.72336 5.94881 3.57239 5.81922C3.42142 5.68963 3.32812 5.50538 3.313 5.307C3.3066 5.21681 3.30327 5.12642 3.303 5.036C3.303 3.204 5.053 1.75 7.581 1.75C8.999 1.75 10.302 2.33 11.095 2.843C11.1777 2.89645 11.2491 2.96567 11.3051 3.04671C11.3611 3.12775 11.4006 3.21902 11.4213 3.31532C11.442 3.41161 11.4435 3.51104 11.4258 3.60793C11.4081 3.70482 11.3714 3.79727 11.318 3.88C11.2646 3.96273 11.1953 4.03413 11.1143 4.09011C11.0333 4.14609 10.942 4.18556 10.8457 4.20627C10.7494 4.22698 10.65 4.22852 10.5531 4.2108C10.4562 4.19308 10.3637 4.15645 10.281 4.103C9.641 3.689 8.619 3.25 7.581 3.25Z",
|
|
4533
4533
|
fill: "currentColor"
|
|
4534
4534
|
}, null, -1)
|
|
4535
4535
|
]));
|
|
4536
4536
|
}
|
|
4537
|
-
const TextStrikethroughIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4538
|
-
const _sfc_main$
|
|
4539
|
-
const _hoisted_1$
|
|
4537
|
+
const TextStrikethroughIcon = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$5]]);
|
|
4538
|
+
const _sfc_main$j = {};
|
|
4539
|
+
const _hoisted_1$f = {
|
|
4540
4540
|
width: "16",
|
|
4541
4541
|
height: "16",
|
|
4542
4542
|
viewBox: "0 0 16 16",
|
|
@@ -4544,16 +4544,16 @@ const _hoisted_1$e = {
|
|
|
4544
4544
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4545
4545
|
};
|
|
4546
4546
|
function _sfc_render$4(_ctx, _cache) {
|
|
4547
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
4547
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$f, _cache[0] || (_cache[0] = [
|
|
4548
4548
|
createElementVNode("path", {
|
|
4549
4549
|
d: "M14.8574 13.3334V2.66669C14.8574 1.8286 14.1716 1.14288 13.3335 1.14288H2.66688C1.82878 1.14288 1.14307 1.8286 1.14307 2.66669V13.3334C1.14307 14.1715 1.82878 14.8572 2.66688 14.8572H13.3335C14.1716 14.8572 14.8574 14.1715 14.8574 13.3334ZM5.33354 9.14288L7.2383 11.4362L9.90497 8.00003L13.3335 12.5715H2.66688L5.33354 9.14288Z",
|
|
4550
4550
|
fill: "currentColor"
|
|
4551
4551
|
}, null, -1)
|
|
4552
4552
|
]));
|
|
4553
4553
|
}
|
|
4554
|
-
const ImageSolidIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4555
|
-
const _sfc_main$
|
|
4556
|
-
const _hoisted_1$
|
|
4554
|
+
const ImageSolidIcon = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$4]]);
|
|
4555
|
+
const _sfc_main$i = {};
|
|
4556
|
+
const _hoisted_1$e = {
|
|
4557
4557
|
width: "16",
|
|
4558
4558
|
height: "16",
|
|
4559
4559
|
viewBox: "0 0 16 16",
|
|
@@ -4561,16 +4561,16 @@ const _hoisted_1$d = {
|
|
|
4561
4561
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4562
4562
|
};
|
|
4563
4563
|
function _sfc_render$3(_ctx, _cache) {
|
|
4564
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
4564
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$e, _cache[0] || (_cache[0] = [
|
|
4565
4565
|
createElementVNode("path", {
|
|
4566
4566
|
d: "M10.189 2.04806C10.605 2.19806 10.8186 2.65181 10.6674 3.06281L6.83704 13.4788C6.68504 13.8898 6.22664 14.1013 5.81144 13.9521C5.39544 13.8021 5.18184 13.3483 5.33304 12.9373L9.16344 2.52131C9.31544 2.11031 9.77384 1.89881 10.189 2.04806ZM1.93144 8.19206L4.76024 10.9926C5.07224 11.3016 5.07224 11.8026 4.76024 12.1116C4.68811 12.1847 4.60063 12.243 4.50329 12.2829C4.40596 12.3228 4.30087 12.3434 4.19464 12.3434C4.08841 12.3434 3.98332 12.3228 3.88599 12.2829C3.78865 12.243 3.70117 12.1847 3.62904 12.1116L0.234639 8.75231C0.084409 8.59988 0.000976562 8.39997 0.000976562 8.19244C0.000976562 7.9849 0.084409 7.78499 0.234639 7.63256L3.62904 4.27256C3.70117 4.19944 3.78865 4.1411 3.88599 4.1012C3.98332 4.0613 4.08841 4.0407 4.19464 4.0407C4.30087 4.0407 4.40596 4.0613 4.50329 4.1012C4.60063 4.1411 4.68811 4.19944 4.76024 4.27256C4.9107 4.42503 4.99427 4.6251 4.99427 4.83281C4.99427 5.04052 4.9107 5.24059 4.76024 5.39306L1.93144 8.19206ZM14.069 8.19206L11.2402 5.39306C11.09 5.24063 11.0066 5.04072 11.0066 4.83319C11.0066 4.62565 11.09 4.42574 11.2402 4.27331C11.3124 4.20019 11.3998 4.14185 11.4972 4.10195C11.5945 4.06205 11.6996 4.04145 11.8058 4.04145C11.9121 4.04145 12.0172 4.06205 12.1145 4.10195C12.2118 4.14185 12.2993 4.20019 12.3714 4.27331L15.7658 7.63256C16.0778 7.94156 16.0778 8.44256 15.7658 8.75231L12.3714 12.1108C12.2993 12.1839 12.2118 12.2423 12.1145 12.2822C12.0172 12.3221 11.9121 12.3427 11.8058 12.3427C11.6996 12.3427 11.5945 12.3221 11.4972 12.2822C11.3998 12.2423 11.3124 12.1839 11.2402 12.1108C11.0902 11.9584 11.0069 11.7587 11.0069 11.5513C11.0069 11.344 11.0902 11.1442 11.2402 10.9918L14.069 8.19206Z",
|
|
4567
4567
|
fill: "currentColor"
|
|
4568
4568
|
}, null, -1)
|
|
4569
4569
|
]));
|
|
4570
4570
|
}
|
|
4571
|
-
const CodeIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4572
|
-
const _sfc_main$
|
|
4573
|
-
const _hoisted_1$
|
|
4571
|
+
const CodeIcon = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$3]]);
|
|
4572
|
+
const _sfc_main$h = {};
|
|
4573
|
+
const _hoisted_1$d = {
|
|
4574
4574
|
width: "24",
|
|
4575
4575
|
height: "24",
|
|
4576
4576
|
viewBox: "0 0 24 24",
|
|
@@ -4578,20 +4578,20 @@ const _hoisted_1$c = {
|
|
|
4578
4578
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4579
4579
|
};
|
|
4580
4580
|
function _sfc_render$2(_ctx, _cache) {
|
|
4581
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
4581
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$d, _cache[0] || (_cache[0] = [
|
|
4582
4582
|
createElementVNode("path", {
|
|
4583
4583
|
d: "M11 17H7C5.61667 17 4.43767 16.5123 3.463 15.537C2.48833 14.5617 2.00067 13.3827 2 12C1.99933 10.6173 2.487 9.43833 3.463 8.463C4.439 7.48767 5.618 7 7 7H11V9H7C6.16667 9 5.45833 9.29167 4.875 9.875C4.29167 10.4583 4 11.1667 4 12C4 12.8333 4.29167 13.5417 4.875 14.125C5.45833 14.7083 6.16667 15 7 15H11V17ZM8 13V11H16V13H8ZM13 17V15H17C17.8333 15 18.5417 14.7083 19.125 14.125C19.7083 13.5417 20 12.8333 20 12C20 11.1667 19.7083 10.4583 19.125 9.875C18.5417 9.29167 17.8333 9 17 9H13V7H17C18.3833 7 19.5627 7.48767 20.538 8.463C21.5133 9.43833 22.0007 10.6173 22 12C21.9993 13.3827 21.5117 14.562 20.537 15.538C19.5623 16.514 18.3833 17.0013 17 17H13Z",
|
|
4584
4584
|
fill: "currentColor"
|
|
4585
4585
|
}, null, -1)
|
|
4586
4586
|
]));
|
|
4587
4587
|
}
|
|
4588
|
-
const LinkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4589
|
-
const _hoisted_1$
|
|
4590
|
-
const _hoisted_2$
|
|
4591
|
-
const _hoisted_3$
|
|
4592
|
-
const _hoisted_4 = { class: "rich-text-editor__actions-group" };
|
|
4593
|
-
const _hoisted_5 = { class: "rich-text-editor__actions-group" };
|
|
4594
|
-
const _sfc_main$
|
|
4588
|
+
const LinkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$2]]);
|
|
4589
|
+
const _hoisted_1$c = { class: "rich-text-editor__controls" };
|
|
4590
|
+
const _hoisted_2$5 = { class: "rich-text-editor__actions-group" };
|
|
4591
|
+
const _hoisted_3$2 = ["onClick"];
|
|
4592
|
+
const _hoisted_4$1 = { class: "rich-text-editor__actions-group" };
|
|
4593
|
+
const _hoisted_5$1 = { class: "rich-text-editor__actions-group" };
|
|
4594
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
4595
4595
|
__name: "RichTextEditorDialog",
|
|
4596
4596
|
props: /* @__PURE__ */ mergeModels({
|
|
4597
4597
|
label: {}
|
|
@@ -4764,31 +4764,31 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
4764
4764
|
(_a = textEditorRef.value) == null ? void 0 : _a.insertBlock({ type: "image", editable: false, text: "" });
|
|
4765
4765
|
};
|
|
4766
4766
|
return (_ctx, _cache) => {
|
|
4767
|
-
return openBlock(), createBlock(_sfc_main$
|
|
4767
|
+
return openBlock(), createBlock(_sfc_main$w, { class: "rich-text-editor__dialog" }, {
|
|
4768
4768
|
header: withCtx(() => [
|
|
4769
4769
|
createTextVNode(toDisplayString(props.label ?? "Редактирование текста"), 1)
|
|
4770
4770
|
]),
|
|
4771
4771
|
default: withCtx(() => {
|
|
4772
4772
|
var _a;
|
|
4773
4773
|
return [
|
|
4774
|
-
createElementVNode("div", _hoisted_1$
|
|
4775
|
-
createVNode(_sfc_main$
|
|
4774
|
+
createElementVNode("div", _hoisted_1$c, [
|
|
4775
|
+
createVNode(_sfc_main$D, {
|
|
4776
4776
|
modelValue: blockType.value,
|
|
4777
4777
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => blockType.value = $event),
|
|
4778
4778
|
items: blockTypes,
|
|
4779
4779
|
style: { "width": "200px" }
|
|
4780
4780
|
}, null, 8, ["modelValue"]),
|
|
4781
|
-
createElementVNode("div", _hoisted_2$
|
|
4781
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
4782
4782
|
(openBlock(true), createElementBlock(Fragment, null, renderList(styles.value, (item) => {
|
|
4783
4783
|
return openBlock(), createElementBlock("button", {
|
|
4784
4784
|
class: normalizeClass({ active: item.active }),
|
|
4785
4785
|
onClick: item.onClick
|
|
4786
4786
|
}, [
|
|
4787
4787
|
(openBlock(), createBlock(resolveDynamicComponent(item.icon)))
|
|
4788
|
-
], 10, _hoisted_3$
|
|
4788
|
+
], 10, _hoisted_3$2);
|
|
4789
4789
|
}), 256))
|
|
4790
4790
|
]),
|
|
4791
|
-
createElementVNode("div", _hoisted_4, [
|
|
4791
|
+
createElementVNode("div", _hoisted_4$1, [
|
|
4792
4792
|
createElementVNode("button", {
|
|
4793
4793
|
class: normalizeClass({ active: (_a = textEditorRef.value) == null ? void 0 : _a.currentStyles.has("link") }),
|
|
4794
4794
|
onClick: insertLink
|
|
@@ -4796,7 +4796,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
4796
4796
|
createVNode(LinkIcon)
|
|
4797
4797
|
], 2)
|
|
4798
4798
|
]),
|
|
4799
|
-
createElementVNode("div", _hoisted_5, [
|
|
4799
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
4800
4800
|
createElementVNode("button", {
|
|
4801
4801
|
title: "Вставить изображение",
|
|
4802
4802
|
onClick: insertImage
|
|
@@ -4823,7 +4823,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
4823
4823
|
"html-parser": htmlParser
|
|
4824
4824
|
}, {
|
|
4825
4825
|
code: withCtx(({ props: props2, block }) => [
|
|
4826
|
-
createVNode(_sfc_main$
|
|
4826
|
+
createVNode(_sfc_main$p, mergeProps({
|
|
4827
4827
|
modelValue: block.text,
|
|
4828
4828
|
"onUpdate:modelValue": ($event) => block.text = $event
|
|
4829
4829
|
}, props2, {
|
|
@@ -4840,7 +4840,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
4840
4840
|
image: withCtx(({ props: props2, block }) => {
|
|
4841
4841
|
var _a2;
|
|
4842
4842
|
return [
|
|
4843
|
-
createVNode(_sfc_main$
|
|
4843
|
+
createVNode(_sfc_main$u, mergeProps({
|
|
4844
4844
|
modelValue: block.image,
|
|
4845
4845
|
"onUpdate:modelValue": ($event) => block.image = $event
|
|
4846
4846
|
}, props2, {
|
|
@@ -4858,7 +4858,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
4858
4858
|
])),
|
|
4859
4859
|
_: 1
|
|
4860
4860
|
}, 8, ["modelValue", "renderer", "decorator"]),
|
|
4861
|
-
createVNode(_sfc_main$
|
|
4861
|
+
createVNode(_sfc_main$H, {
|
|
4862
4862
|
class: "rich-text-editor-link-popover scroll",
|
|
4863
4863
|
open: linkPopoverState.value != null,
|
|
4864
4864
|
placement: "bottom-start",
|
|
@@ -4867,7 +4867,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
4867
4867
|
"onUpdate:open": onUpdateLinkPopoverOpen
|
|
4868
4868
|
}, {
|
|
4869
4869
|
default: withCtx(() => [
|
|
4870
|
-
linkPopoverState.value !== null ? (openBlock(), createBlock(_sfc_main$
|
|
4870
|
+
linkPopoverState.value !== null ? (openBlock(), createBlock(_sfc_main$o, {
|
|
4871
4871
|
key: 0,
|
|
4872
4872
|
state: linkPopoverState.value,
|
|
4873
4873
|
onApply: onLinkApply
|
|
@@ -4887,8 +4887,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
4887
4887
|
};
|
|
4888
4888
|
}
|
|
4889
4889
|
});
|
|
4890
|
-
const _hoisted_1$
|
|
4891
|
-
const _sfc_main$
|
|
4890
|
+
const _hoisted_1$b = { class: "v-form-control__outline" };
|
|
4891
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
4892
4892
|
__name: "VRichTextEditor",
|
|
4893
4893
|
props: /* @__PURE__ */ mergeModels({
|
|
4894
4894
|
label: {}
|
|
@@ -4902,26 +4902,26 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
4902
4902
|
const model = useModel(__props, "modelValue");
|
|
4903
4903
|
const dialog = useDialog();
|
|
4904
4904
|
const openTextEditor = () => {
|
|
4905
|
-
dialog.open(_sfc_main$
|
|
4905
|
+
dialog.open(_sfc_main$g, {
|
|
4906
4906
|
label: props.label,
|
|
4907
4907
|
modelValue: model.value,
|
|
4908
4908
|
["onUpdate:modelValue"]: (val) => model.value = val
|
|
4909
4909
|
});
|
|
4910
4910
|
};
|
|
4911
4911
|
return (_ctx, _cache) => {
|
|
4912
|
-
return openBlock(), createBlock(_sfc_main$
|
|
4912
|
+
return openBlock(), createBlock(_sfc_main$O, {
|
|
4913
4913
|
label: props.label,
|
|
4914
4914
|
class: "rich-text-editor"
|
|
4915
4915
|
}, {
|
|
4916
4916
|
default: withCtx(() => [
|
|
4917
|
-
createElementVNode("div", _hoisted_1$
|
|
4917
|
+
createElementVNode("div", _hoisted_1$b, [
|
|
4918
4918
|
createVNode(unref(_sfc_main$1$1), {
|
|
4919
4919
|
modelValue: model.value,
|
|
4920
4920
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
4921
4921
|
class: "rich-text-editor__editor"
|
|
4922
4922
|
}, null, 8, ["modelValue"])
|
|
4923
4923
|
]),
|
|
4924
|
-
createVNode(_sfc_main$
|
|
4924
|
+
createVNode(_sfc_main$z, { onClick: openTextEditor }, {
|
|
4925
4925
|
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
4926
4926
|
createTextVNode("Редактировать")
|
|
4927
4927
|
])),
|
|
@@ -4934,8 +4934,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
4934
4934
|
};
|
|
4935
4935
|
}
|
|
4936
4936
|
});
|
|
4937
|
-
const _sfc_main$
|
|
4938
|
-
const _hoisted_1$
|
|
4937
|
+
const _sfc_main$e = {};
|
|
4938
|
+
const _hoisted_1$a = {
|
|
4939
4939
|
width: "20",
|
|
4940
4940
|
height: "20",
|
|
4941
4941
|
viewBox: "0 0 20 20",
|
|
@@ -4943,20 +4943,20 @@ const _hoisted_1$9 = {
|
|
|
4943
4943
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4944
4944
|
};
|
|
4945
4945
|
function _sfc_render$1(_ctx, _cache) {
|
|
4946
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
4946
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$a, _cache[0] || (_cache[0] = [
|
|
4947
4947
|
createElementVNode("path", {
|
|
4948
4948
|
d: "M6.25 1.25C5.58696 1.25 4.95107 1.51339 4.48223 1.98223C4.01339 2.45107 3.75 3.08696 3.75 3.75V16.25C3.75 16.913 4.01339 17.5489 4.48223 18.0178C4.95107 18.4866 5.58696 18.75 6.25 18.75H13.75C14.413 18.75 15.0489 18.4866 15.5178 18.0178C15.9866 17.5489 16.25 16.913 16.25 16.25V6.7675C16.2496 6.27039 16.0517 5.79379 15.7 5.4425L12.0588 1.79875C11.8846 1.62467 11.6778 1.4866 11.4502 1.39245C11.2227 1.29829 10.9788 1.24989 10.7325 1.25H6.25ZM5 3.75C5 3.41848 5.1317 3.10054 5.36612 2.86612C5.60054 2.6317 5.91848 2.5 6.25 2.5H10V5.625C10 6.12228 10.1975 6.59919 10.5492 6.95083C10.9008 7.30246 11.3777 7.5 11.875 7.5H15V16.25C15 16.5815 14.8683 16.8995 14.6339 17.1339C14.3995 17.3683 14.0815 17.5 13.75 17.5H6.25C5.91848 17.5 5.60054 17.3683 5.36612 17.1339C5.1317 16.8995 5 16.5815 5 16.25V3.75ZM14.7413 6.25H11.875C11.7092 6.25 11.5503 6.18415 11.4331 6.06694C11.3158 5.94973 11.25 5.79076 11.25 5.625V2.75875L14.7413 6.25Z",
|
|
4949
4949
|
fill: "currentColor"
|
|
4950
4950
|
}, null, -1)
|
|
4951
4951
|
]));
|
|
4952
4952
|
}
|
|
4953
|
-
const FileIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4954
|
-
const _hoisted_1$
|
|
4953
|
+
const FileIcon = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$1]]);
|
|
4954
|
+
const _hoisted_1$9 = {
|
|
4955
4955
|
key: 0,
|
|
4956
4956
|
class: "v-image-uploader__drag-label"
|
|
4957
4957
|
};
|
|
4958
|
-
const _hoisted_2$
|
|
4959
|
-
const _sfc_main$
|
|
4958
|
+
const _hoisted_2$4 = { class: "v-file-uploader__file-name" };
|
|
4959
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
4960
4960
|
__name: "VFileUploader",
|
|
4961
4961
|
props: {
|
|
4962
4962
|
accept: {},
|
|
@@ -5018,7 +5018,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
5018
5018
|
};
|
|
5019
5019
|
useDialog();
|
|
5020
5020
|
return (_ctx, _cache) => {
|
|
5021
|
-
return openBlock(), createBlock(_sfc_main$
|
|
5021
|
+
return openBlock(), createBlock(_sfc_main$O, {
|
|
5022
5022
|
class: normalizeClass(["v-image-uploader v-file-uploader", { drag: drag.value }]),
|
|
5023
5023
|
error: _ctx.error,
|
|
5024
5024
|
label: _ctx.label,
|
|
@@ -5030,7 +5030,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
5030
5030
|
onDragleave: onDragLeave
|
|
5031
5031
|
}, {
|
|
5032
5032
|
default: withCtx(() => [
|
|
5033
|
-
drag.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
5033
|
+
drag.value ? (openBlock(), createElementBlock("div", _hoisted_1$9, "Отпустите файл здесь")) : !props.modelValue || props.modelValue.src === "" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
5034
5034
|
createVNode(EmptyFileIcon),
|
|
5035
5035
|
createElementVNode("div", null, [
|
|
5036
5036
|
createElementVNode("a", {
|
|
@@ -5040,7 +5040,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
5040
5040
|
_cache[2] || (_cache[2] = createTextVNode("или перетащите сюда "))
|
|
5041
5041
|
])
|
|
5042
5042
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
5043
|
-
createElementVNode("div", _hoisted_2$
|
|
5043
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
5044
5044
|
createVNode(FileIcon),
|
|
5045
5045
|
createTextVNode(" " + toDisplayString(props.modelValue.name), 1)
|
|
5046
5046
|
]),
|
|
@@ -5060,8 +5060,139 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
5060
5060
|
};
|
|
5061
5061
|
}
|
|
5062
5062
|
});
|
|
5063
|
+
const _hoisted_1$8 = { key: 0 };
|
|
5064
|
+
const _hoisted_2$3 = {
|
|
5065
|
+
key: 1,
|
|
5066
|
+
class: "v-multiselect__placeholder"
|
|
5067
|
+
};
|
|
5068
|
+
const _hoisted_3$1 = { class: "v-multiselect__actions" };
|
|
5069
|
+
const _hoisted_4 = { class: "v-multiselect__menu" };
|
|
5070
|
+
const _hoisted_5 = {
|
|
5071
|
+
key: 0,
|
|
5072
|
+
class: "v-multiselect__divider"
|
|
5073
|
+
};
|
|
5074
|
+
const _hoisted_6 = {
|
|
5075
|
+
key: 1,
|
|
5076
|
+
class: "group-title"
|
|
5077
|
+
};
|
|
5078
|
+
const _hoisted_7 = {
|
|
5079
|
+
key: 2,
|
|
5080
|
+
class: "v-multiselect__item"
|
|
5081
|
+
};
|
|
5082
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
5083
|
+
__name: "VMultiSelect",
|
|
5084
|
+
props: /* @__PURE__ */ mergeModels({
|
|
5085
|
+
items: {},
|
|
5086
|
+
placeholder: {},
|
|
5087
|
+
nullable: { type: Boolean },
|
|
5088
|
+
visualValue: {},
|
|
5089
|
+
error: {},
|
|
5090
|
+
label: {},
|
|
5091
|
+
required: { type: Boolean },
|
|
5092
|
+
disabled: { type: Boolean }
|
|
5093
|
+
}, {
|
|
5094
|
+
"modelValue": { default: [] },
|
|
5095
|
+
"modelModifiers": {}
|
|
5096
|
+
}),
|
|
5097
|
+
emits: ["update:modelValue"],
|
|
5098
|
+
setup(__props) {
|
|
5099
|
+
const props = __props;
|
|
5100
|
+
const model = useModel(__props, "modelValue");
|
|
5101
|
+
if (!Array.isArray(model.value)) {
|
|
5102
|
+
model.value = [];
|
|
5103
|
+
}
|
|
5104
|
+
const opened = ref(false);
|
|
5105
|
+
const items = computed(() => props.items);
|
|
5106
|
+
const selectedItems = computed(() => {
|
|
5107
|
+
return props.items.filter(
|
|
5108
|
+
(item) => typeof item !== "string" && model.value.includes(item.id)
|
|
5109
|
+
);
|
|
5110
|
+
});
|
|
5111
|
+
const displayValue = computed(() => {
|
|
5112
|
+
if (props.visualValue) return props.visualValue;
|
|
5113
|
+
return selectedItems.value.map((i) => i.title).join(", ");
|
|
5114
|
+
});
|
|
5115
|
+
const isSelected = (item) => {
|
|
5116
|
+
return model.value.includes(item.id);
|
|
5117
|
+
};
|
|
5118
|
+
const toggleItem = (item) => {
|
|
5119
|
+
if (isSelected(item)) {
|
|
5120
|
+
model.value = model.value.filter((id) => id !== item.id);
|
|
5121
|
+
} else {
|
|
5122
|
+
model.value = [...model.value, item.id];
|
|
5123
|
+
}
|
|
5124
|
+
};
|
|
5125
|
+
const resetValue = () => {
|
|
5126
|
+
model.value = [];
|
|
5127
|
+
};
|
|
5128
|
+
return (_ctx, _cache) => {
|
|
5129
|
+
return openBlock(), createBlock(_sfc_main$O, {
|
|
5130
|
+
outline: "",
|
|
5131
|
+
class: "v-multiselect",
|
|
5132
|
+
label: props.label,
|
|
5133
|
+
error: props.error,
|
|
5134
|
+
disabled: props.disabled,
|
|
5135
|
+
required: props.required
|
|
5136
|
+
}, {
|
|
5137
|
+
default: withCtx(() => [
|
|
5138
|
+
createVNode(_sfc_main$H, {
|
|
5139
|
+
open: opened.value,
|
|
5140
|
+
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => opened.value = $event),
|
|
5141
|
+
placement: "bottom",
|
|
5142
|
+
"fit-anchor": "",
|
|
5143
|
+
offset: 8
|
|
5144
|
+
}, {
|
|
5145
|
+
activator: withCtx(({ props: activatorProps }) => [
|
|
5146
|
+
createElementVNode("button", mergeProps({
|
|
5147
|
+
class: ["v-multiselect__activator", { opened: opened.value }]
|
|
5148
|
+
}, activatorProps), [
|
|
5149
|
+
selectedItems.value.length ? (openBlock(), createElementBlock("div", _hoisted_1$8, toDisplayString(displayValue.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_2$3, toDisplayString(props.placeholder ?? "Выберите значения"), 1)),
|
|
5150
|
+
createVNode(ArrowDownIcon)
|
|
5151
|
+
], 16),
|
|
5152
|
+
createElementVNode("div", _hoisted_3$1, [
|
|
5153
|
+
renderSlot(_ctx.$slots, "default"),
|
|
5154
|
+
_ctx.nullable && model.value.length ? (openBlock(), createBlock(VIconButton, {
|
|
5155
|
+
key: 0,
|
|
5156
|
+
title: "Очистить",
|
|
5157
|
+
class: "v-multiselect__delete-button",
|
|
5158
|
+
onClick: resetValue
|
|
5159
|
+
}, {
|
|
5160
|
+
default: withCtx(() => [
|
|
5161
|
+
createVNode(CloseMinIcon)
|
|
5162
|
+
]),
|
|
5163
|
+
_: 1
|
|
5164
|
+
})) : createCommentVNode("", true)
|
|
5165
|
+
])
|
|
5166
|
+
]),
|
|
5167
|
+
default: withCtx(() => [
|
|
5168
|
+
createElementVNode("div", _hoisted_4, [
|
|
5169
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item) => {
|
|
5170
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
5171
|
+
item === "" ? (openBlock(), createElementBlock("div", _hoisted_5)) : typeof item === "string" ? (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(item), 1)) : (openBlock(), createElementBlock("label", _hoisted_7, [
|
|
5172
|
+
createVNode(_sfc_main$s, {
|
|
5173
|
+
"model-value": isSelected(item),
|
|
5174
|
+
"onUpdate:modelValue": () => toggleItem(item)
|
|
5175
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
5176
|
+
createElementVNode("span", null, [
|
|
5177
|
+
renderSlot(_ctx.$slots, "item", { item }, () => [
|
|
5178
|
+
createTextVNode(toDisplayString(item.title), 1)
|
|
5179
|
+
])
|
|
5180
|
+
])
|
|
5181
|
+
]))
|
|
5182
|
+
], 64);
|
|
5183
|
+
}), 256))
|
|
5184
|
+
])
|
|
5185
|
+
]),
|
|
5186
|
+
_: 3
|
|
5187
|
+
}, 8, ["open"])
|
|
5188
|
+
]),
|
|
5189
|
+
_: 3
|
|
5190
|
+
}, 8, ["label", "error", "disabled", "required"]);
|
|
5191
|
+
};
|
|
5192
|
+
}
|
|
5193
|
+
});
|
|
5063
5194
|
const _hoisted_1$7 = {
|
|
5064
|
-
key:
|
|
5195
|
+
key: 5,
|
|
5065
5196
|
class: "json-editor__object"
|
|
5066
5197
|
};
|
|
5067
5198
|
const getItems = (schema) => {
|
|
@@ -5073,6 +5204,14 @@ const getItems = (schema) => {
|
|
|
5073
5204
|
};
|
|
5074
5205
|
});
|
|
5075
5206
|
};
|
|
5207
|
+
const getItemsMultiselect = (schema) => {
|
|
5208
|
+
const enumValues = schema.enum ?? schema.items.enum ?? [];
|
|
5209
|
+
const enumAlias = schema.enumAlias ?? schema.items.enumAlias ?? [];
|
|
5210
|
+
return enumValues.map((item, index) => ({
|
|
5211
|
+
id: item,
|
|
5212
|
+
title: (enumAlias == null ? void 0 : enumAlias[index]) ?? spaceCamelCase(item)
|
|
5213
|
+
}));
|
|
5214
|
+
};
|
|
5076
5215
|
const join = (baseKey, key) => {
|
|
5077
5216
|
if (key) {
|
|
5078
5217
|
return `${baseKey}.${key}`;
|
|
@@ -5106,30 +5245,36 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
5106
5245
|
watch(vModel, () => emit("edit"));
|
|
5107
5246
|
return (_ctx, _cache) => {
|
|
5108
5247
|
const _component_JsonEditor = resolveComponent("JsonEditor", true);
|
|
5109
|
-
return props.schema.type === "object" && props.schema.format === "image" ? (openBlock(), createBlock(_sfc_main$
|
|
5248
|
+
return props.schema.type === "object" && props.schema.format === "image" ? (openBlock(), createBlock(_sfc_main$u, {
|
|
5110
5249
|
key: 0,
|
|
5111
5250
|
modelValue: vModel.value,
|
|
5112
5251
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vModel.value = $event),
|
|
5113
5252
|
label: props.schema.name ?? props.name,
|
|
5114
5253
|
schema: props.schema
|
|
5115
|
-
}, null, 8, ["modelValue", "label", "schema"])) : props.schema.type === "object" && props.schema.format === "file" ? (openBlock(), createBlock(_sfc_main$
|
|
5254
|
+
}, null, 8, ["modelValue", "label", "schema"])) : props.schema.type === "object" && props.schema.format === "file" ? (openBlock(), createBlock(_sfc_main$d, {
|
|
5116
5255
|
key: 1,
|
|
5117
5256
|
modelValue: vModel.value,
|
|
5118
5257
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vModel.value = $event),
|
|
5119
5258
|
accept: props.schema.accept,
|
|
5120
5259
|
label: props.schema.name ?? props.name,
|
|
5121
5260
|
schema: props.schema
|
|
5122
|
-
}, null, 8, ["modelValue", "accept", "label", "schema"])) : props.schema.type === "
|
|
5261
|
+
}, null, 8, ["modelValue", "accept", "label", "schema"])) : props.schema.type === "array" && props.schema.format === "multiselect" ? (openBlock(), createBlock(_sfc_main$c, {
|
|
5123
5262
|
key: 2,
|
|
5124
5263
|
modelValue: vModel.value,
|
|
5125
5264
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vModel.value = $event),
|
|
5265
|
+
items: getItemsMultiselect(props.schema),
|
|
5266
|
+
label: props.schema.name ?? props.name
|
|
5267
|
+
}, null, 8, ["modelValue", "items", "label"])) : props.schema.type === "object" && props.schema.format === "smartLink" ? (openBlock(), createBlock(_sfc_main$q, {
|
|
5268
|
+
key: 3,
|
|
5269
|
+
modelValue: vModel.value,
|
|
5270
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vModel.value = $event),
|
|
5126
5271
|
label: props.schema.name ?? props.name,
|
|
5127
5272
|
schema: props.schema,
|
|
5128
5273
|
nullable: props.schema.nullable || props.nullable
|
|
5129
|
-
}, null, 8, ["modelValue", "label", "schema", "nullable"])) : props.schema.type === "array" && props.schema.format === "richText" ? (openBlock(), createBlock(_sfc_main$
|
|
5130
|
-
key:
|
|
5274
|
+
}, null, 8, ["modelValue", "label", "schema", "nullable"])) : props.schema.type === "array" && props.schema.format === "richText" ? (openBlock(), createBlock(_sfc_main$f, {
|
|
5275
|
+
key: 4,
|
|
5131
5276
|
modelValue: vModel.value,
|
|
5132
|
-
"onUpdate:modelValue": _cache[
|
|
5277
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vModel.value = $event),
|
|
5133
5278
|
label: props.schema.name ?? props.name,
|
|
5134
5279
|
schema: props.schema
|
|
5135
5280
|
}, null, 8, ["modelValue", "label", "schema"])) : props.schema.type === "object" ? (openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
@@ -5145,7 +5290,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
5145
5290
|
nullable: !((_a = props.schema.required) == null ? void 0 : _a.includes(key)),
|
|
5146
5291
|
onEdit: ($event) => emit("edit", join(key, $event))
|
|
5147
5292
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "schema", "expanded", "name", "nullable", "onEdit"]);
|
|
5148
|
-
}), 128)) : (openBlock(), createBlock(_sfc_main$
|
|
5293
|
+
}), 128)) : (openBlock(), createBlock(_sfc_main$I, {
|
|
5149
5294
|
key: 1,
|
|
5150
5295
|
label: props.schema.name ?? props.name,
|
|
5151
5296
|
open: props.expanded
|
|
@@ -5167,30 +5312,30 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
5167
5312
|
]),
|
|
5168
5313
|
_: 1
|
|
5169
5314
|
}, 8, ["label", "open"]))
|
|
5170
|
-
])) : props.schema.type === "array" ? (openBlock(), createBlock(_sfc_main$
|
|
5171
|
-
key:
|
|
5315
|
+
])) : props.schema.type === "array" ? (openBlock(), createBlock(_sfc_main$C, {
|
|
5316
|
+
key: 6,
|
|
5172
5317
|
modelValue: vModel.value,
|
|
5173
|
-
"onUpdate:modelValue": _cache[
|
|
5318
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vModel.value = $event),
|
|
5174
5319
|
schema: props.schema,
|
|
5175
5320
|
label: props.schema.name ?? props.name,
|
|
5176
5321
|
expanded: props.expanded,
|
|
5177
|
-
onEdit: _cache[
|
|
5178
|
-
}, null, 8, ["modelValue", "schema", "label", "expanded"])) : props.schema.type === "string" && props.schema.enum ? (openBlock(), createBlock(_sfc_main$
|
|
5179
|
-
key:
|
|
5322
|
+
onEdit: _cache[6] || (_cache[6] = ($event) => emit("edit", $event))
|
|
5323
|
+
}, null, 8, ["modelValue", "schema", "label", "expanded"])) : props.schema.type === "string" && props.schema.enum ? (openBlock(), createBlock(_sfc_main$D, {
|
|
5324
|
+
key: 7,
|
|
5180
5325
|
nullable: props.schema.nullable || props.nullable,
|
|
5181
5326
|
items: getItems(props.schema),
|
|
5182
5327
|
modelValue: vModel.value,
|
|
5183
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => vModel.value = $event),
|
|
5184
|
-
label: props.schema.name ?? props.name
|
|
5185
|
-
}, null, 8, ["nullable", "items", "modelValue", "label"])) : props.schema.type === "boolean" ? (openBlock(), createBlock(_sfc_main$r, {
|
|
5186
|
-
key: 7,
|
|
5187
|
-
modelValue: vModel.value,
|
|
5188
5328
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => vModel.value = $event),
|
|
5189
5329
|
label: props.schema.name ?? props.name
|
|
5190
|
-
}, null, 8, ["modelValue", "label"])) : (openBlock(), createBlock(_sfc_main$
|
|
5330
|
+
}, null, 8, ["nullable", "items", "modelValue", "label"])) : props.schema.type === "boolean" ? (openBlock(), createBlock(_sfc_main$s, {
|
|
5191
5331
|
key: 8,
|
|
5192
5332
|
modelValue: vModel.value,
|
|
5193
5333
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => vModel.value = $event),
|
|
5334
|
+
label: props.schema.name ?? props.name
|
|
5335
|
+
}, null, 8, ["modelValue", "label"])) : (openBlock(), createBlock(_sfc_main$N, {
|
|
5336
|
+
key: 9,
|
|
5337
|
+
modelValue: vModel.value,
|
|
5338
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => vModel.value = $event),
|
|
5194
5339
|
label: props.schema.name ?? props.name,
|
|
5195
5340
|
multiline: props.schema.multiline,
|
|
5196
5341
|
placeholder: props.schema.placeholder
|
|
@@ -5269,14 +5414,14 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
5269
5414
|
}, ["stop"]))
|
|
5270
5415
|
}, [
|
|
5271
5416
|
renderSlot(_ctx.$slots, "default"),
|
|
5272
|
-
createVNode(_sfc_main$
|
|
5417
|
+
createVNode(_sfc_main$L, {
|
|
5273
5418
|
modelValue: currentTab.value,
|
|
5274
5419
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => currentTab.value = $event),
|
|
5275
5420
|
items: tabs.value
|
|
5276
5421
|
}, null, 8, ["modelValue", "items"]),
|
|
5277
|
-
createVNode(_sfc_main$
|
|
5422
|
+
createVNode(_sfc_main$K, { page: currentTab.value }, {
|
|
5278
5423
|
blocks: withCtx(() => [
|
|
5279
|
-
createVNode(_sfc_main$
|
|
5424
|
+
createVNode(_sfc_main$M, { blocks: _ctx.blocksList }, null, 8, ["blocks"])
|
|
5280
5425
|
]),
|
|
5281
5426
|
blockEdit: withCtx(() => [
|
|
5282
5427
|
currentBlock.value && currentContentBlock.value ? (openBlock(), createBlock(_sfc_main$b, {
|
|
@@ -5286,7 +5431,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
5286
5431
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => currentContentBlock.value.data = $event),
|
|
5287
5432
|
flat: ""
|
|
5288
5433
|
}, null, 8, ["schema", "modelValue"])) : currentDataEntry.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
5289
|
-
props.dataEntryScopes ? (openBlock(), createBlock(_sfc_main$
|
|
5434
|
+
props.dataEntryScopes ? (openBlock(), createBlock(_sfc_main$D, {
|
|
5290
5435
|
key: 0,
|
|
5291
5436
|
modelValue: props.dataEntryScopes[currentDataEntry.value.id],
|
|
5292
5437
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => props.dataEntryScopes[currentDataEntry.value.id] = $event),
|
|
@@ -5554,7 +5699,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
5554
5699
|
onBlockdrop: ($event) => onPlaceBlockDrop($event, item.index)
|
|
5555
5700
|
}, null, 44, _hoisted_2$2);
|
|
5556
5701
|
}), 256)),
|
|
5557
|
-
createVNode(_sfc_main$
|
|
5702
|
+
createVNode(_sfc_main$y, normalizeProps(guardReactiveProps(unref(contextMenu).props)), null, 16)
|
|
5558
5703
|
], 512);
|
|
5559
5704
|
};
|
|
5560
5705
|
}
|
|
@@ -5578,6 +5723,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
5578
5723
|
renderSlot(_ctx.$slots, "default"),
|
|
5579
5724
|
_cache[3] || (_cache[3] = createElementVNode("div", { class: "title" }, "Блоки", -1)),
|
|
5580
5725
|
createVNode(_sfc_main$9, {
|
|
5726
|
+
class: "scroll",
|
|
5581
5727
|
"hover-block-id": props.control.hoverBlockId.value,
|
|
5582
5728
|
"onUpdate:hoverBlockId": _cache[0] || (_cache[0] = ($event) => props.control.hoverBlockId.value = $event),
|
|
5583
5729
|
"active-block-id": props.control.activeBlockId.value,
|
|
@@ -5797,12 +5943,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
5797
5943
|
dialog.close();
|
|
5798
5944
|
});
|
|
5799
5945
|
return (_ctx, _cache) => {
|
|
5800
|
-
return openBlock(), createBlock(_sfc_main$
|
|
5946
|
+
return openBlock(), createBlock(_sfc_main$w, { style: { "width": "500px" } }, {
|
|
5801
5947
|
header: withCtx(() => [
|
|
5802
5948
|
createTextVNode(toDisplayString(props.item ? "Редактировать" : "Создать") + " страницу", 1)
|
|
5803
5949
|
]),
|
|
5804
5950
|
actions: withCtx(() => [
|
|
5805
|
-
createVNode(_sfc_main$
|
|
5951
|
+
createVNode(_sfc_main$z, {
|
|
5806
5952
|
disabled: unref(pending),
|
|
5807
5953
|
large: "",
|
|
5808
5954
|
onClick: unref(apply)
|
|
@@ -5818,15 +5964,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
5818
5964
|
default: withCtx(() => {
|
|
5819
5965
|
var _a;
|
|
5820
5966
|
return [
|
|
5821
|
-
createVNode(_sfc_main$
|
|
5967
|
+
createVNode(_sfc_main$N, mergeProps(unref(register)("name"), {
|
|
5822
5968
|
label: "Название страницы",
|
|
5823
5969
|
autofocus: ""
|
|
5824
5970
|
}), null, 16),
|
|
5825
|
-
createVNode(_sfc_main$
|
|
5971
|
+
createVNode(_sfc_main$N, mergeProps(unref(register)("path"), {
|
|
5826
5972
|
prefix: (_a = currentFoler.value) == null ? void 0 : _a.path,
|
|
5827
5973
|
label: "URL адрес"
|
|
5828
5974
|
}), null, 16, ["prefix"]),
|
|
5829
|
-
folders.value.length > 0 ? (openBlock(), createBlock(_sfc_main$
|
|
5975
|
+
folders.value.length > 0 ? (openBlock(), createBlock(_sfc_main$D, mergeProps({
|
|
5830
5976
|
key: 0,
|
|
5831
5977
|
nullable: ""
|
|
5832
5978
|
}, unref(register)("folderId"), {
|
|
@@ -5928,7 +6074,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
5928
6074
|
class: "v-table__check",
|
|
5929
6075
|
onClick: withModifiers(checkboxClick, ["prevent", "stop"])
|
|
5930
6076
|
}, [
|
|
5931
|
-
createVNode(_sfc_main$
|
|
6077
|
+
createVNode(_sfc_main$s, {
|
|
5932
6078
|
modelValue: modelValue.value.has(item),
|
|
5933
6079
|
"onUpdate:modelValue": ($event) => modelValue.value.has(item) ? modelValue.value.delete(item) : modelValue.value.add(item)
|
|
5934
6080
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -5965,7 +6111,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
5965
6111
|
path: { title: "Путь" }
|
|
5966
6112
|
};
|
|
5967
6113
|
return (_ctx, _cache) => {
|
|
5968
|
-
return openBlock(), createBlock(_sfc_main$
|
|
6114
|
+
return openBlock(), createBlock(_sfc_main$w, { class: "standart" }, {
|
|
5969
6115
|
header: withCtx(() => _cache[0] || (_cache[0] = [
|
|
5970
6116
|
createTextVNode(" Страницы проекта ")
|
|
5971
6117
|
])),
|
|
@@ -6020,12 +6166,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
6020
6166
|
dialog.close();
|
|
6021
6167
|
});
|
|
6022
6168
|
return (_ctx, _cache) => {
|
|
6023
|
-
return openBlock(), createBlock(_sfc_main$
|
|
6169
|
+
return openBlock(), createBlock(_sfc_main$w, { class: "standart" }, {
|
|
6024
6170
|
header: withCtx(() => _cache[1] || (_cache[1] = [
|
|
6025
6171
|
createTextVNode("Настройки страницы")
|
|
6026
6172
|
])),
|
|
6027
6173
|
actions: withCtx(() => [
|
|
6028
|
-
createVNode(_sfc_main$
|
|
6174
|
+
createVNode(_sfc_main$z, {
|
|
6029
6175
|
large: "",
|
|
6030
6176
|
onClick: unref(apply)
|
|
6031
6177
|
}, {
|
|
@@ -6037,19 +6183,19 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
6037
6183
|
}, 8, ["onClick"])
|
|
6038
6184
|
]),
|
|
6039
6185
|
default: withCtx(() => [
|
|
6040
|
-
createVNode(_sfc_main$
|
|
6186
|
+
createVNode(_sfc_main$L, {
|
|
6041
6187
|
modelValue: currentTab.value,
|
|
6042
6188
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => currentTab.value = $event),
|
|
6043
6189
|
items: tabs.value,
|
|
6044
6190
|
style: { "margin-bottom": "12px" }
|
|
6045
6191
|
}, null, 8, ["modelValue", "items"]),
|
|
6046
|
-
createVNode(_sfc_main$
|
|
6192
|
+
createVNode(_sfc_main$K, { page: currentTab.value }, createSlots({
|
|
6047
6193
|
_main: withCtx(() => [
|
|
6048
6194
|
createVNode(_sfc_main$7, null, {
|
|
6049
6195
|
default: withCtx(() => [
|
|
6050
6196
|
createElementVNode("div", _hoisted_1$3, [
|
|
6051
|
-
createVNode(_sfc_main$
|
|
6052
|
-
createVNode(_sfc_main$
|
|
6197
|
+
createVNode(_sfc_main$N, mergeProps(unref(register)("name"), { label: "Название страницы" }), null, 16),
|
|
6198
|
+
createVNode(_sfc_main$N, mergeProps(unref(register)("path"), { label: "Путь к странице" }), null, 16)
|
|
6053
6199
|
])
|
|
6054
6200
|
]),
|
|
6055
6201
|
_: 1
|
|
@@ -6202,7 +6348,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
6202
6348
|
return arr;
|
|
6203
6349
|
});
|
|
6204
6350
|
return (_ctx, _cache) => {
|
|
6205
|
-
return openBlock(), createBlock(_sfc_main$
|
|
6351
|
+
return openBlock(), createBlock(_sfc_main$y, {
|
|
6206
6352
|
placement: "bottom",
|
|
6207
6353
|
fitAnchor: "",
|
|
6208
6354
|
offset: 4,
|
|
@@ -6345,16 +6491,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6345
6491
|
]),
|
|
6346
6492
|
_: 1
|
|
6347
6493
|
}),
|
|
6348
|
-
controlsOpened.value ? (openBlock(), createBlock(_sfc_main$
|
|
6494
|
+
controlsOpened.value ? (openBlock(), createBlock(_sfc_main$S, {
|
|
6349
6495
|
key: 0,
|
|
6350
6496
|
element: unref(control).hoverBlockElement.value
|
|
6351
6497
|
}, null, 8, ["element"])) : createCommentVNode("", true),
|
|
6352
|
-
controlsOpened.value ? (openBlock(), createBlock(_sfc_main$
|
|
6498
|
+
controlsOpened.value ? (openBlock(), createBlock(_sfc_main$S, {
|
|
6353
6499
|
key: 1,
|
|
6354
6500
|
element: unref(control).activeBlockElement.value,
|
|
6355
6501
|
resizable: ""
|
|
6356
6502
|
}, null, 8, ["element"])) : createCommentVNode("", true),
|
|
6357
|
-
unref(control).insertedPlace.value ? (openBlock(), createBlock(_sfc_main$
|
|
6503
|
+
unref(control).insertedPlace.value ? (openBlock(), createBlock(_sfc_main$R, {
|
|
6358
6504
|
key: 2,
|
|
6359
6505
|
top: unref(control).insertedPlace.value.top
|
|
6360
6506
|
}, null, 8, ["top"])) : createCommentVNode("", true),
|
|
@@ -6409,7 +6555,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6409
6555
|
]),
|
|
6410
6556
|
_: 1
|
|
6411
6557
|
}),
|
|
6412
|
-
createVNode(_sfc_main$
|
|
6558
|
+
createVNode(_sfc_main$x)
|
|
6413
6559
|
], 64);
|
|
6414
6560
|
};
|
|
6415
6561
|
}
|