mechanica 1.0.19 → 1.0.21
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 +432 -277
- 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 +67 -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
|
}
|
|
@@ -1371,9 +1371,19 @@ const processBlock = (contentBlock, schema) => {
|
|
|
1371
1371
|
passDefaultValue(contentBlock.data, schema.props);
|
|
1372
1372
|
if (schema.slots) {
|
|
1373
1373
|
if (Object.keys(schema.slots).join() === "default") {
|
|
1374
|
-
contentBlock.children
|
|
1374
|
+
if (contentBlock.children && !Array.isArray(contentBlock.children)) {
|
|
1375
|
+
contentBlock.children = contentBlock.children["default"] ?? [];
|
|
1376
|
+
} else {
|
|
1377
|
+
contentBlock.children = contentBlock.children ?? [];
|
|
1378
|
+
}
|
|
1375
1379
|
} else {
|
|
1376
|
-
contentBlock.children
|
|
1380
|
+
if (contentBlock.children && Array.isArray(contentBlock.children)) {
|
|
1381
|
+
const arr = contentBlock.children;
|
|
1382
|
+
contentBlock.children = Object.fromEntries(Object.keys(schema.slots).map((key) => [key, []]));
|
|
1383
|
+
contentBlock.children["default"] = arr;
|
|
1384
|
+
} else {
|
|
1385
|
+
contentBlock.children = contentBlock.children ?? Object.fromEntries(Object.keys(schema.slots).map((key) => [key, []]));
|
|
1386
|
+
}
|
|
1377
1387
|
}
|
|
1378
1388
|
onUpdateBlockChildren(contentBlock);
|
|
1379
1389
|
}
|
|
@@ -1636,8 +1646,8 @@ const deleteFromArray = (arr, item) => {
|
|
|
1636
1646
|
const uid$1 = () => {
|
|
1637
1647
|
return Math.trunc(Math.random() * 1e5).toString(16);
|
|
1638
1648
|
};
|
|
1639
|
-
const _hoisted_1$
|
|
1640
|
-
const _sfc_main$
|
|
1649
|
+
const _hoisted_1$B = ["onClick"];
|
|
1650
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
1641
1651
|
__name: "VTabs",
|
|
1642
1652
|
props: {
|
|
1643
1653
|
items: {},
|
|
@@ -1691,7 +1701,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
1691
1701
|
key: item.id,
|
|
1692
1702
|
class: normalizeClass(["v-tabs__tab", { active: unref(model) === item.id }]),
|
|
1693
1703
|
onClick: ($event) => model.value = item.id
|
|
1694
|
-
}, toDisplayString(item.title), 11, _hoisted_1$
|
|
1704
|
+
}, toDisplayString(item.title), 11, _hoisted_1$B);
|
|
1695
1705
|
}), 128))
|
|
1696
1706
|
]),
|
|
1697
1707
|
_: 1
|
|
@@ -1704,7 +1714,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
1704
1714
|
};
|
|
1705
1715
|
}
|
|
1706
1716
|
});
|
|
1707
|
-
const _sfc_main$
|
|
1717
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
1708
1718
|
__name: "VTabsPages",
|
|
1709
1719
|
props: {
|
|
1710
1720
|
page: {},
|
|
@@ -1762,8 +1772,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
1762
1772
|
};
|
|
1763
1773
|
}
|
|
1764
1774
|
});
|
|
1765
|
-
const _sfc_main$
|
|
1766
|
-
const _hoisted_1$
|
|
1775
|
+
const _sfc_main$J = {};
|
|
1776
|
+
const _hoisted_1$A = {
|
|
1767
1777
|
width: "20",
|
|
1768
1778
|
height: "20",
|
|
1769
1779
|
viewBox: "0 0 20 20",
|
|
@@ -1771,7 +1781,7 @@ const _hoisted_1$z = {
|
|
|
1771
1781
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1772
1782
|
};
|
|
1773
1783
|
function _sfc_render$g(_ctx, _cache) {
|
|
1774
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1784
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$A, _cache[0] || (_cache[0] = [
|
|
1775
1785
|
createElementVNode("path", {
|
|
1776
1786
|
"fill-rule": "evenodd",
|
|
1777
1787
|
"clip-rule": "evenodd",
|
|
@@ -1780,8 +1790,8 @@ function _sfc_render$g(_ctx, _cache) {
|
|
|
1780
1790
|
}, null, -1)
|
|
1781
1791
|
]));
|
|
1782
1792
|
}
|
|
1783
|
-
const CollapseArrowIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1784
|
-
const _sfc_main$
|
|
1793
|
+
const CollapseArrowIcon = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$g]]);
|
|
1794
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
1785
1795
|
__name: "VCollapse",
|
|
1786
1796
|
props: {
|
|
1787
1797
|
open: { type: Boolean },
|
|
@@ -1869,7 +1879,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
1869
1879
|
}
|
|
1870
1880
|
});
|
|
1871
1881
|
const margin = 8;
|
|
1872
|
-
const _sfc_main$
|
|
1882
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
1873
1883
|
...{
|
|
1874
1884
|
inheritAttrs: false
|
|
1875
1885
|
},
|
|
@@ -2037,8 +2047,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
2037
2047
|
};
|
|
2038
2048
|
}
|
|
2039
2049
|
});
|
|
2040
|
-
const _sfc_main$
|
|
2041
|
-
const _hoisted_1$
|
|
2050
|
+
const _sfc_main$G = {};
|
|
2051
|
+
const _hoisted_1$z = {
|
|
2042
2052
|
width: "16",
|
|
2043
2053
|
height: "16",
|
|
2044
2054
|
viewBox: "0 0 16 16",
|
|
@@ -2046,24 +2056,24 @@ const _hoisted_1$y = {
|
|
|
2046
2056
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2047
2057
|
};
|
|
2048
2058
|
function _sfc_render$f(_ctx, _cache) {
|
|
2049
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2059
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$z, _cache[0] || (_cache[0] = [
|
|
2050
2060
|
createElementVNode("path", {
|
|
2051
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",
|
|
2052
2062
|
fill: "currentColor"
|
|
2053
2063
|
}, null, -1)
|
|
2054
2064
|
]));
|
|
2055
2065
|
}
|
|
2056
|
-
const ArrowDownIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2057
|
-
const _sfc_main$
|
|
2058
|
-
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" };
|
|
2059
2069
|
function _sfc_render$e(_ctx, _cache) {
|
|
2060
|
-
return openBlock(), createElementBlock("button", _hoisted_1$
|
|
2070
|
+
return openBlock(), createElementBlock("button", _hoisted_1$y, [
|
|
2061
2071
|
renderSlot(_ctx.$slots, "default")
|
|
2062
2072
|
]);
|
|
2063
2073
|
}
|
|
2064
|
-
const VIconButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2065
|
-
const _sfc_main$
|
|
2066
|
-
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 = {
|
|
2067
2077
|
width: "16",
|
|
2068
2078
|
height: "16",
|
|
2069
2079
|
viewBox: "0 0 16 16",
|
|
@@ -2071,31 +2081,31 @@ const _hoisted_1$w = {
|
|
|
2071
2081
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2072
2082
|
};
|
|
2073
2083
|
function _sfc_render$d(_ctx, _cache) {
|
|
2074
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2084
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$x, _cache[0] || (_cache[0] = [
|
|
2075
2085
|
createElementVNode("path", {
|
|
2076
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",
|
|
2077
2087
|
fill: "currentColor"
|
|
2078
2088
|
}, null, -1)
|
|
2079
2089
|
]));
|
|
2080
2090
|
}
|
|
2081
|
-
const CloseMinIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2082
|
-
const _hoisted_1$
|
|
2083
|
-
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 = {
|
|
2084
2094
|
key: 1,
|
|
2085
2095
|
class: "v-select__placeholder"
|
|
2086
2096
|
};
|
|
2087
|
-
const _hoisted_3$
|
|
2088
|
-
const _hoisted_4$
|
|
2089
|
-
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 = {
|
|
2090
2100
|
key: 0,
|
|
2091
2101
|
class: "v-select__divider"
|
|
2092
2102
|
};
|
|
2093
|
-
const _hoisted_6$
|
|
2103
|
+
const _hoisted_6$2 = {
|
|
2094
2104
|
key: 1,
|
|
2095
2105
|
class: "group-title"
|
|
2096
2106
|
};
|
|
2097
|
-
const _hoisted_7$
|
|
2098
|
-
const _sfc_main$
|
|
2107
|
+
const _hoisted_7$2 = ["onClick"];
|
|
2108
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
2099
2109
|
__name: "VSelect",
|
|
2100
2110
|
props: /* @__PURE__ */ mergeModels({
|
|
2101
2111
|
items: {},
|
|
@@ -2131,7 +2141,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
2131
2141
|
opened.value = false;
|
|
2132
2142
|
};
|
|
2133
2143
|
return (_ctx, _cache) => {
|
|
2134
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2144
|
+
return openBlock(), createBlock(_sfc_main$O, {
|
|
2135
2145
|
outline: "",
|
|
2136
2146
|
class: "v-select",
|
|
2137
2147
|
label: props.label,
|
|
@@ -2140,7 +2150,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
2140
2150
|
required: props.required
|
|
2141
2151
|
}, {
|
|
2142
2152
|
default: withCtx(() => [
|
|
2143
|
-
createVNode(_sfc_main$
|
|
2153
|
+
createVNode(_sfc_main$H, {
|
|
2144
2154
|
open: opened.value,
|
|
2145
2155
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => opened.value = $event),
|
|
2146
2156
|
placement: "bottom",
|
|
@@ -2151,10 +2161,10 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
2151
2161
|
createElementVNode("button", mergeProps({
|
|
2152
2162
|
class: ["v-select__activator", { opened: opened.value }]
|
|
2153
2163
|
}, activatorProps), [
|
|
2154
|
-
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)),
|
|
2155
2165
|
createVNode(ArrowDownIcon)
|
|
2156
2166
|
], 16),
|
|
2157
|
-
createElementVNode("div", _hoisted_3$
|
|
2167
|
+
createElementVNode("div", _hoisted_3$7, [
|
|
2158
2168
|
renderSlot(_ctx.$slots, "default"),
|
|
2159
2169
|
_ctx.nullable && model.value ? (openBlock(), createBlock(VIconButton, {
|
|
2160
2170
|
key: 0,
|
|
@@ -2170,10 +2180,10 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
2170
2180
|
])
|
|
2171
2181
|
]),
|
|
2172
2182
|
default: withCtx(() => [
|
|
2173
|
-
createElementVNode("div", _hoisted_4$
|
|
2183
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
2174
2184
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item) => {
|
|
2175
2185
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
2176
|
-
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", {
|
|
2177
2187
|
key: 2,
|
|
2178
2188
|
class: normalizeClass({ active: item.id === model.value }),
|
|
2179
2189
|
onClick: ($event) => onItemClick(item)
|
|
@@ -2181,7 +2191,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
2181
2191
|
renderSlot(_ctx.$slots, "item", { item }, () => [
|
|
2182
2192
|
createTextVNode(toDisplayString(item.title), 1)
|
|
2183
2193
|
])
|
|
2184
|
-
], 10, _hoisted_7$
|
|
2194
|
+
], 10, _hoisted_7$2))
|
|
2185
2195
|
], 64);
|
|
2186
2196
|
}), 256))
|
|
2187
2197
|
])
|
|
@@ -2194,8 +2204,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
2194
2204
|
};
|
|
2195
2205
|
}
|
|
2196
2206
|
});
|
|
2197
|
-
const _hoisted_1$
|
|
2198
|
-
const _sfc_main$
|
|
2207
|
+
const _hoisted_1$v = { class: "json-editor__array" };
|
|
2208
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
2199
2209
|
__name: "JsonEditorArray",
|
|
2200
2210
|
props: {
|
|
2201
2211
|
label: {},
|
|
@@ -2228,13 +2238,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
2228
2238
|
return `${props.label} (${length.value})`;
|
|
2229
2239
|
});
|
|
2230
2240
|
return (_ctx, _cache) => {
|
|
2231
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2232
|
-
createVNode(_sfc_main$
|
|
2241
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
2242
|
+
createVNode(_sfc_main$I, {
|
|
2233
2243
|
label: label.value,
|
|
2234
2244
|
open: props.expanded
|
|
2235
2245
|
}, {
|
|
2236
2246
|
default: withCtx(() => [
|
|
2237
|
-
createVNode(_sfc_main$
|
|
2247
|
+
createVNode(_sfc_main$N, {
|
|
2238
2248
|
label: "Количество элементов",
|
|
2239
2249
|
modelValue: length.value,
|
|
2240
2250
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => length.value = $event),
|
|
@@ -2258,8 +2268,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
2258
2268
|
};
|
|
2259
2269
|
}
|
|
2260
2270
|
});
|
|
2261
|
-
const _sfc_main$
|
|
2262
|
-
const _hoisted_1$
|
|
2271
|
+
const _sfc_main$B = {};
|
|
2272
|
+
const _hoisted_1$u = {
|
|
2263
2273
|
width: "46",
|
|
2264
2274
|
height: "28",
|
|
2265
2275
|
viewBox: "0 0 46 28",
|
|
@@ -2267,13 +2277,13 @@ const _hoisted_1$t = {
|
|
|
2267
2277
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2268
2278
|
};
|
|
2269
2279
|
function _sfc_render$c(_ctx, _cache) {
|
|
2270
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2280
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$u, _cache[0] || (_cache[0] = [
|
|
2271
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)
|
|
2272
2282
|
]));
|
|
2273
2283
|
}
|
|
2274
|
-
const EmptyFileIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2275
|
-
const _sfc_main$
|
|
2276
|
-
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 = {
|
|
2277
2287
|
width: "24",
|
|
2278
2288
|
height: "24",
|
|
2279
2289
|
viewBox: "0 0 24 24",
|
|
@@ -2281,15 +2291,15 @@ const _hoisted_1$s = {
|
|
|
2281
2291
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2282
2292
|
};
|
|
2283
2293
|
function _sfc_render$b(_ctx, _cache) {
|
|
2284
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2294
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$t, _cache[0] || (_cache[0] = [
|
|
2285
2295
|
createElementVNode("path", {
|
|
2286
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",
|
|
2287
2297
|
fill: "currentColor"
|
|
2288
2298
|
}, null, -1)
|
|
2289
2299
|
]));
|
|
2290
2300
|
}
|
|
2291
|
-
const MoreIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2292
|
-
const _sfc_main$
|
|
2301
|
+
const MoreIcon = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$b]]);
|
|
2302
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
2293
2303
|
__name: "VButton",
|
|
2294
2304
|
props: {
|
|
2295
2305
|
component: {},
|
|
@@ -2342,7 +2352,7 @@ const useContextMenu = (creator) => {
|
|
|
2342
2352
|
open
|
|
2343
2353
|
};
|
|
2344
2354
|
};
|
|
2345
|
-
const _sfc_main$
|
|
2355
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
2346
2356
|
...{
|
|
2347
2357
|
inheritAttrs: false
|
|
2348
2358
|
},
|
|
@@ -2434,7 +2444,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
2434
2444
|
const _component_VContextMenu = resolveComponent("VContextMenu", true);
|
|
2435
2445
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
2436
2446
|
renderSlot(_ctx.$slots, "activator", { props: activatorProps }),
|
|
2437
|
-
createVNode(_sfc_main$
|
|
2447
|
+
createVNode(_sfc_main$H, mergeProps({
|
|
2438
2448
|
open: open.value,
|
|
2439
2449
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
2440
2450
|
element: activatorElement.value,
|
|
@@ -2446,7 +2456,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
2446
2456
|
}, _ctx.$attrs), {
|
|
2447
2457
|
default: withCtx(() => [
|
|
2448
2458
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item) => {
|
|
2449
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2459
|
+
return openBlock(), createBlock(_sfc_main$z, mergeProps({ ref_for: true }, item.props, {
|
|
2450
2460
|
class: "v-context-menu__item",
|
|
2451
2461
|
onMouseenter: ($event) => onItemHover($event, item),
|
|
2452
2462
|
onClick: ($event) => onItemClick(item)
|
|
@@ -2501,7 +2511,7 @@ const createDialogSystem = () => {
|
|
|
2501
2511
|
};
|
|
2502
2512
|
};
|
|
2503
2513
|
const useDialog = () => inject("dialogStore");
|
|
2504
|
-
const _sfc_main$
|
|
2514
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
2505
2515
|
__name: "VDialogProvider",
|
|
2506
2516
|
setup(__props) {
|
|
2507
2517
|
const dialogStore = inject("dialogStore");
|
|
@@ -2558,15 +2568,15 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
2558
2568
|
};
|
|
2559
2569
|
}
|
|
2560
2570
|
});
|
|
2561
|
-
const _hoisted_1$
|
|
2571
|
+
const _hoisted_1$s = {
|
|
2562
2572
|
key: 0,
|
|
2563
2573
|
class: "v-dialog__header heading"
|
|
2564
2574
|
};
|
|
2565
|
-
const _hoisted_2$
|
|
2575
|
+
const _hoisted_2$a = {
|
|
2566
2576
|
key: 1,
|
|
2567
2577
|
class: "v-dialog__actions"
|
|
2568
2578
|
};
|
|
2569
|
-
const _sfc_main$
|
|
2579
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
2570
2580
|
__name: "VDialog",
|
|
2571
2581
|
props: {
|
|
2572
2582
|
"content:class": {},
|
|
@@ -2582,7 +2592,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2582
2592
|
role: "dialog"
|
|
2583
2593
|
}, {
|
|
2584
2594
|
default: withCtx(() => [
|
|
2585
|
-
unref(slots).header ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2595
|
+
unref(slots).header ? (openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
2586
2596
|
renderSlot(_ctx.$slots, "header"),
|
|
2587
2597
|
createVNode(VIconButton, {
|
|
2588
2598
|
role: "button",
|
|
@@ -2600,7 +2610,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2600
2610
|
}, [
|
|
2601
2611
|
renderSlot(_ctx.$slots, "default")
|
|
2602
2612
|
], 2),
|
|
2603
|
-
unref(slots).actions ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
2613
|
+
unref(slots).actions ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
2604
2614
|
renderSlot(_ctx.$slots, "actions")
|
|
2605
2615
|
])) : createCommentVNode("", true)
|
|
2606
2616
|
]),
|
|
@@ -2609,13 +2619,13 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2609
2619
|
};
|
|
2610
2620
|
}
|
|
2611
2621
|
});
|
|
2612
|
-
const _hoisted_1$
|
|
2622
|
+
const _hoisted_1$r = {
|
|
2613
2623
|
key: 0,
|
|
2614
2624
|
class: "project-images__grid"
|
|
2615
2625
|
};
|
|
2616
|
-
const _hoisted_2$
|
|
2617
|
-
const _hoisted_3$
|
|
2618
|
-
const _sfc_main$
|
|
2626
|
+
const _hoisted_2$9 = ["onClick"];
|
|
2627
|
+
const _hoisted_3$6 = ["src"];
|
|
2628
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
2619
2629
|
__name: "ProjectImagesDialog",
|
|
2620
2630
|
props: {
|
|
2621
2631
|
fileRequest: { type: Function },
|
|
@@ -2630,20 +2640,20 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
2630
2640
|
dialog.back();
|
|
2631
2641
|
};
|
|
2632
2642
|
return (_ctx, _cache) => {
|
|
2633
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2643
|
+
return openBlock(), createBlock(_sfc_main$w, { style: { "width": "900px" } }, {
|
|
2634
2644
|
header: withCtx(() => _cache[0] || (_cache[0] = [
|
|
2635
2645
|
createTextVNode("Изображения проекта")
|
|
2636
2646
|
])),
|
|
2637
2647
|
default: withCtx(() => [
|
|
2638
|
-
unref(data) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2648
|
+
unref(data) ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
2639
2649
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(data), (item) => {
|
|
2640
2650
|
return openBlock(), createElementBlock("button", {
|
|
2641
2651
|
onClick: ($event) => openImage(item)
|
|
2642
2652
|
}, [
|
|
2643
2653
|
createElementVNode("img", {
|
|
2644
2654
|
src: item.previewSrc ?? item.src
|
|
2645
|
-
}, null, 8, _hoisted_3$
|
|
2646
|
-
], 8, _hoisted_2$
|
|
2655
|
+
}, null, 8, _hoisted_3$6)
|
|
2656
|
+
], 8, _hoisted_2$9);
|
|
2647
2657
|
}), 256))
|
|
2648
2658
|
])) : createCommentVNode("", true)
|
|
2649
2659
|
]),
|
|
@@ -2652,14 +2662,14 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
2652
2662
|
};
|
|
2653
2663
|
}
|
|
2654
2664
|
});
|
|
2655
|
-
const _hoisted_1$
|
|
2665
|
+
const _hoisted_1$q = {
|
|
2656
2666
|
key: 0,
|
|
2657
2667
|
class: "v-image-uploader__drag-label"
|
|
2658
2668
|
};
|
|
2659
|
-
const _hoisted_2$
|
|
2660
|
-
const _hoisted_3$
|
|
2661
|
-
const _hoisted_4$
|
|
2662
|
-
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({
|
|
2663
2673
|
__name: "VImageUploader",
|
|
2664
2674
|
props: {
|
|
2665
2675
|
accept: {},
|
|
@@ -2725,10 +2735,10 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2725
2735
|
emit("update:modelValue", image);
|
|
2726
2736
|
};
|
|
2727
2737
|
if (fileRequest) {
|
|
2728
|
-
contextMenuItems.push({ title: "Выбрать из файлов проекта", onClick: () => dialog.open(_sfc_main$
|
|
2738
|
+
contextMenuItems.push({ title: "Выбрать из файлов проекта", onClick: () => dialog.open(_sfc_main$v, { fileRequest, onOpenImage }) });
|
|
2729
2739
|
}
|
|
2730
2740
|
return (_ctx, _cache) => {
|
|
2731
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2741
|
+
return openBlock(), createBlock(_sfc_main$O, {
|
|
2732
2742
|
class: normalizeClass(["v-image-uploader", { drag: drag.value }]),
|
|
2733
2743
|
error: _ctx.error,
|
|
2734
2744
|
label: _ctx.label,
|
|
@@ -2740,7 +2750,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2740
2750
|
onDragleave: onDragLeave
|
|
2741
2751
|
}, {
|
|
2742
2752
|
default: withCtx(() => [
|
|
2743
|
-
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 }, [
|
|
2744
2754
|
createVNode(EmptyFileIcon),
|
|
2745
2755
|
createElementVNode("div", null, [
|
|
2746
2756
|
createElementVNode("a", {
|
|
@@ -2748,7 +2758,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2748
2758
|
}, "Загрузите изображение"),
|
|
2749
2759
|
_cache[1] || (_cache[1] = createElementVNode("br", null, null, -1)),
|
|
2750
2760
|
_cache[2] || (_cache[2] = createTextVNode("или перетащите сюда ")),
|
|
2751
|
-
contextMenuItems.length > 0 ? (openBlock(), createBlock(_sfc_main$
|
|
2761
|
+
contextMenuItems.length > 0 ? (openBlock(), createBlock(_sfc_main$y, {
|
|
2752
2762
|
key: 0,
|
|
2753
2763
|
items: contextMenuItems,
|
|
2754
2764
|
placement: "bottom-end"
|
|
@@ -2765,11 +2775,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2765
2775
|
})) : createCommentVNode("", true)
|
|
2766
2776
|
])
|
|
2767
2777
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
2768
|
-
createElementVNode("div", _hoisted_2$
|
|
2778
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
2769
2779
|
createElementVNode("img", {
|
|
2770
2780
|
src: props.modelValue.previewSrc ?? props.modelValue.src,
|
|
2771
2781
|
alt: "Preview Image"
|
|
2772
|
-
}, null, 8, _hoisted_3$
|
|
2782
|
+
}, null, 8, _hoisted_3$5),
|
|
2773
2783
|
createVNode(VIconButton, {
|
|
2774
2784
|
class: "v-image-uploader__delete-button",
|
|
2775
2785
|
onClick: removeImage
|
|
@@ -2780,7 +2790,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2780
2790
|
_: 1
|
|
2781
2791
|
})
|
|
2782
2792
|
]),
|
|
2783
|
-
createElementVNode("div", _hoisted_4$
|
|
2793
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
2784
2794
|
createElementVNode("div", null, toDisplayString(props.modelValue.name), 1)
|
|
2785
2795
|
])
|
|
2786
2796
|
], 64))
|
|
@@ -2790,8 +2800,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2790
2800
|
};
|
|
2791
2801
|
}
|
|
2792
2802
|
});
|
|
2793
|
-
const _sfc_main$
|
|
2794
|
-
const _hoisted_1$
|
|
2803
|
+
const _sfc_main$t = {};
|
|
2804
|
+
const _hoisted_1$p = {
|
|
2795
2805
|
width: "18",
|
|
2796
2806
|
height: "18",
|
|
2797
2807
|
viewBox: "0 0 18 18",
|
|
@@ -2799,24 +2809,24 @@ const _hoisted_1$o = {
|
|
|
2799
2809
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2800
2810
|
};
|
|
2801
2811
|
function _sfc_render$a(_ctx, _cache) {
|
|
2802
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2812
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$p, _cache[0] || (_cache[0] = [
|
|
2803
2813
|
createElementVNode("path", {
|
|
2804
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",
|
|
2805
2815
|
fill: "currentColor"
|
|
2806
2816
|
}, null, -1)
|
|
2807
2817
|
]));
|
|
2808
2818
|
}
|
|
2809
|
-
const CheckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2810
|
-
const _hoisted_1$
|
|
2819
|
+
const CheckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]]);
|
|
2820
|
+
const _hoisted_1$o = {
|
|
2811
2821
|
key: 0,
|
|
2812
2822
|
class: "mech-v-checkbox__label left"
|
|
2813
2823
|
};
|
|
2814
|
-
const _hoisted_2$
|
|
2815
|
-
const _hoisted_3$
|
|
2824
|
+
const _hoisted_2$7 = ["name"];
|
|
2825
|
+
const _hoisted_3$4 = {
|
|
2816
2826
|
key: 1,
|
|
2817
2827
|
class: "mech-v-checkbox__label"
|
|
2818
2828
|
};
|
|
2819
|
-
const _sfc_main$
|
|
2829
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
2820
2830
|
__name: "VCheckbox",
|
|
2821
2831
|
props: /* @__PURE__ */ mergeModels({
|
|
2822
2832
|
label: {},
|
|
@@ -2848,7 +2858,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
2848
2858
|
onClick,
|
|
2849
2859
|
onKeydown: onClick
|
|
2850
2860
|
}, [
|
|
2851
|
-
labelPosition.value === "left" ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2861
|
+
labelPosition.value === "left" ? (openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
2852
2862
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
2853
2863
|
createTextVNode(toDisplayString(props.label), 1)
|
|
2854
2864
|
])
|
|
@@ -2862,10 +2872,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
2862
2872
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
2863
2873
|
type: "checkbox",
|
|
2864
2874
|
name: props.name
|
|
2865
|
-
}, null, 8, _hoisted_2$
|
|
2875
|
+
}, null, 8, _hoisted_2$7), [
|
|
2866
2876
|
[vModelCheckbox, model.value]
|
|
2867
2877
|
]),
|
|
2868
|
-
labelPosition.value === "right" ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2878
|
+
labelPosition.value === "right" ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
2869
2879
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
2870
2880
|
createTextVNode(toDisplayString(props.label), 1)
|
|
2871
2881
|
])
|
|
@@ -2885,8 +2895,8 @@ const capitalize = (text) => {
|
|
|
2885
2895
|
const spaceCamelCase = (str) => {
|
|
2886
2896
|
return capitalize(str.replace(/([A-Z])/g, " $1").trimStart());
|
|
2887
2897
|
};
|
|
2888
|
-
const _sfc_main$
|
|
2889
|
-
const _hoisted_1$
|
|
2898
|
+
const _sfc_main$r = {};
|
|
2899
|
+
const _hoisted_1$n = {
|
|
2890
2900
|
width: "24",
|
|
2891
2901
|
height: "24",
|
|
2892
2902
|
viewBox: "0 0 24 24",
|
|
@@ -2894,7 +2904,7 @@ const _hoisted_1$m = {
|
|
|
2894
2904
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2895
2905
|
};
|
|
2896
2906
|
function _sfc_render$9(_ctx, _cache) {
|
|
2897
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2907
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$n, _cache[0] || (_cache[0] = [
|
|
2898
2908
|
createElementVNode("path", {
|
|
2899
2909
|
"fill-rule": "evenodd",
|
|
2900
2910
|
"clip-rule": "evenodd",
|
|
@@ -2903,9 +2913,9 @@ function _sfc_render$9(_ctx, _cache) {
|
|
|
2903
2913
|
}, null, -1)
|
|
2904
2914
|
]));
|
|
2905
2915
|
}
|
|
2906
|
-
const EditIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2907
|
-
const _hoisted_1$
|
|
2908
|
-
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({
|
|
2909
2919
|
__name: "VLinkEditor",
|
|
2910
2920
|
props: /* @__PURE__ */ mergeModels({
|
|
2911
2921
|
nullable: { type: Boolean }
|
|
@@ -2960,7 +2970,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
2960
2970
|
return arr;
|
|
2961
2971
|
});
|
|
2962
2972
|
return (_ctx, _cache) => {
|
|
2963
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2973
|
+
return openBlock(), createBlock(_sfc_main$D, {
|
|
2964
2974
|
class: "v-link-editor",
|
|
2965
2975
|
modelValue: linkType.value,
|
|
2966
2976
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => linkType.value = $event),
|
|
@@ -2968,7 +2978,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
2968
2978
|
nullable: props.nullable
|
|
2969
2979
|
}, {
|
|
2970
2980
|
default: withCtx(() => [
|
|
2971
|
-
model.value && model.value.id ? (openBlock(), createBlock(_sfc_main$
|
|
2981
|
+
model.value && model.value.id ? (openBlock(), createBlock(_sfc_main$H, {
|
|
2972
2982
|
key: 0,
|
|
2973
2983
|
offset: 4,
|
|
2974
2984
|
placement: "bottom-end"
|
|
@@ -2984,27 +2994,27 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
2984
2994
|
default: withCtx(() => {
|
|
2985
2995
|
var _a;
|
|
2986
2996
|
return [
|
|
2987
|
-
createElementVNode("div", _hoisted_1$
|
|
2988
|
-
model.value.id === "_external" ? (openBlock(), createBlock(_sfc_main$
|
|
2997
|
+
createElementVNode("div", _hoisted_1$m, [
|
|
2998
|
+
model.value.id === "_external" ? (openBlock(), createBlock(_sfc_main$N, {
|
|
2989
2999
|
key: 0,
|
|
2990
3000
|
modelValue: model.value.url,
|
|
2991
3001
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value.url = $event),
|
|
2992
3002
|
label: "URL ссылки",
|
|
2993
3003
|
autofocus: ""
|
|
2994
3004
|
}, null, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
2995
|
-
model.value.id !== "_external" ? (openBlock(), createBlock(_sfc_main$
|
|
3005
|
+
model.value.id !== "_external" ? (openBlock(), createBlock(_sfc_main$N, {
|
|
2996
3006
|
key: 1,
|
|
2997
3007
|
modelValue: model.value.query,
|
|
2998
3008
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => model.value.query = $event),
|
|
2999
3009
|
label: "Якорь",
|
|
3000
3010
|
prefix: (_a = model.value) == null ? void 0 : _a.url
|
|
3001
3011
|
}, null, 8, ["modelValue", "prefix"])) : createCommentVNode("", true),
|
|
3002
|
-
createVNode(_sfc_main$
|
|
3012
|
+
createVNode(_sfc_main$N, {
|
|
3003
3013
|
modelValue: model.value.title,
|
|
3004
3014
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => model.value.title = $event),
|
|
3005
3015
|
label: "Заголовок"
|
|
3006
3016
|
}, null, 8, ["modelValue"]),
|
|
3007
|
-
createVNode(_sfc_main$
|
|
3017
|
+
createVNode(_sfc_main$s, {
|
|
3008
3018
|
modelValue: model.value.openNewTab,
|
|
3009
3019
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => model.value.openNewTab = $event),
|
|
3010
3020
|
label: "Открывать в новой вкладке"
|
|
@@ -4301,11 +4311,11 @@ const codeParser = (text) => {
|
|
|
4301
4311
|
}
|
|
4302
4312
|
return arr;
|
|
4303
4313
|
};
|
|
4304
|
-
const _hoisted_1$
|
|
4314
|
+
const _hoisted_1$l = {
|
|
4305
4315
|
class: "code-editor",
|
|
4306
4316
|
contenteditable: false
|
|
4307
4317
|
};
|
|
4308
|
-
const _sfc_main$
|
|
4318
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
4309
4319
|
__name: "RichTextEditorCode",
|
|
4310
4320
|
props: {
|
|
4311
4321
|
modelValue: {}
|
|
@@ -4333,7 +4343,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
4333
4343
|
}
|
|
4334
4344
|
};
|
|
4335
4345
|
return (_ctx, _cache) => {
|
|
4336
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4346
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
4337
4347
|
createVNode(unref(_sfc_main$1$1), {
|
|
4338
4348
|
modelValue: model.value,
|
|
4339
4349
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
@@ -4348,15 +4358,15 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
4348
4358
|
};
|
|
4349
4359
|
}
|
|
4350
4360
|
});
|
|
4351
|
-
const _hoisted_1$
|
|
4352
|
-
const _hoisted_2$
|
|
4353
|
-
const _hoisted_3$
|
|
4354
|
-
const _hoisted_4$
|
|
4355
|
-
const _hoisted_5$
|
|
4356
|
-
const _hoisted_6 = { class: "title" };
|
|
4357
|
-
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" };
|
|
4358
4368
|
const _hoisted_8 = { class: "path" };
|
|
4359
|
-
const _sfc_main$
|
|
4369
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
4360
4370
|
__name: "RichTextEditorLinkPopover",
|
|
4361
4371
|
props: {
|
|
4362
4372
|
state: {}
|
|
@@ -4406,11 +4416,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
4406
4416
|
};
|
|
4407
4417
|
return (_ctx, _cache) => {
|
|
4408
4418
|
return props.state.url ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
4409
|
-
createElementVNode("div", _hoisted_1$
|
|
4410
|
-
createElementVNode("div", _hoisted_2$
|
|
4411
|
-
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)
|
|
4412
4422
|
]),
|
|
4413
|
-
createVNode(_sfc_main$
|
|
4423
|
+
createVNode(_sfc_main$z, {
|
|
4414
4424
|
style: { "margin-top": "8px", "margin-bottom": "4px" },
|
|
4415
4425
|
onClick: deleteLink
|
|
4416
4426
|
}, {
|
|
@@ -4421,21 +4431,21 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
4421
4431
|
__: [2]
|
|
4422
4432
|
})
|
|
4423
4433
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
4424
|
-
createVNode(_sfc_main$
|
|
4434
|
+
createVNode(_sfc_main$N, {
|
|
4425
4435
|
modelValue: searchValue.value,
|
|
4426
4436
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchValue.value = $event),
|
|
4427
4437
|
autofocus: "",
|
|
4428
4438
|
placeholder: "Введите URL или название страницы"
|
|
4429
4439
|
}, null, 8, ["modelValue"]),
|
|
4430
|
-
createElementVNode("div", _hoisted_4$
|
|
4440
|
+
createElementVNode("div", _hoisted_4$2, [
|
|
4431
4441
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item) => {
|
|
4432
4442
|
return openBlock(), createElementBlock("button", {
|
|
4433
4443
|
class: "rich-text-editor-link-popover__item",
|
|
4434
4444
|
onClick: ($event) => onButtonClick(item)
|
|
4435
4445
|
}, [
|
|
4436
|
-
createElementVNode("div", _hoisted_6, toDisplayString(item.name), 1),
|
|
4437
|
-
createElementVNode("div", _hoisted_7, toDisplayString(item.path), 1)
|
|
4438
|
-
], 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);
|
|
4439
4449
|
}), 256)),
|
|
4440
4450
|
searchValue.value.length > 0 ? (openBlock(), createElementBlock("button", {
|
|
4441
4451
|
key: 0,
|
|
@@ -4445,7 +4455,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
4445
4455
|
_cache[3] || (_cache[3] = createElementVNode("div", { class: "title" }, "Создать внешнюю ссылку", -1)),
|
|
4446
4456
|
createElementVNode("div", _hoisted_8, toDisplayString(searchValue.value), 1)
|
|
4447
4457
|
])) : createCommentVNode("", true),
|
|
4448
|
-
searchValue.value.startsWith("http") ? (openBlock(), createBlock(_sfc_main$
|
|
4458
|
+
searchValue.value.startsWith("http") ? (openBlock(), createBlock(_sfc_main$s, {
|
|
4449
4459
|
key: 1,
|
|
4450
4460
|
modelValue: openInNewPage.value,
|
|
4451
4461
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => openInNewPage.value = $event),
|
|
@@ -4457,8 +4467,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
4457
4467
|
};
|
|
4458
4468
|
}
|
|
4459
4469
|
});
|
|
4460
|
-
const _sfc_main$
|
|
4461
|
-
const _hoisted_1$
|
|
4470
|
+
const _sfc_main$n = {};
|
|
4471
|
+
const _hoisted_1$j = {
|
|
4462
4472
|
width: "16",
|
|
4463
4473
|
height: "16",
|
|
4464
4474
|
viewBox: "0 0 16 16",
|
|
@@ -4466,16 +4476,16 @@ const _hoisted_1$i = {
|
|
|
4466
4476
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4467
4477
|
};
|
|
4468
4478
|
function _sfc_render$8(_ctx, _cache) {
|
|
4469
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
4479
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$j, _cache[0] || (_cache[0] = [
|
|
4470
4480
|
createElementVNode("path", {
|
|
4471
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",
|
|
4472
4482
|
fill: "currentColor"
|
|
4473
4483
|
}, null, -1)
|
|
4474
4484
|
]));
|
|
4475
4485
|
}
|
|
4476
|
-
const TextBoldIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4477
|
-
const _sfc_main$
|
|
4478
|
-
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 = {
|
|
4479
4489
|
width: "16",
|
|
4480
4490
|
height: "16",
|
|
4481
4491
|
viewBox: "0 0 16 16",
|
|
@@ -4483,16 +4493,16 @@ const _hoisted_1$h = {
|
|
|
4483
4493
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4484
4494
|
};
|
|
4485
4495
|
function _sfc_render$7(_ctx, _cache) {
|
|
4486
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
4496
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$i, _cache[0] || (_cache[0] = [
|
|
4487
4497
|
createElementVNode("path", {
|
|
4488
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",
|
|
4489
4499
|
fill: "currentColor"
|
|
4490
4500
|
}, null, -1)
|
|
4491
4501
|
]));
|
|
4492
4502
|
}
|
|
4493
|
-
const TextItalicIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4494
|
-
const _sfc_main$
|
|
4495
|
-
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 = {
|
|
4496
4506
|
width: "16",
|
|
4497
4507
|
height: "16",
|
|
4498
4508
|
viewBox: "0 0 16 16",
|
|
@@ -4500,16 +4510,16 @@ const _hoisted_1$g = {
|
|
|
4500
4510
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4501
4511
|
};
|
|
4502
4512
|
function _sfc_render$6(_ctx, _cache) {
|
|
4503
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
4513
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$h, _cache[0] || (_cache[0] = [
|
|
4504
4514
|
createElementVNode("path", {
|
|
4505
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",
|
|
4506
4516
|
fill: "currentColor"
|
|
4507
4517
|
}, null, -1)
|
|
4508
4518
|
]));
|
|
4509
4519
|
}
|
|
4510
|
-
const TextUnderlineIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4511
|
-
const _sfc_main$
|
|
4512
|
-
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 = {
|
|
4513
4523
|
width: "16",
|
|
4514
4524
|
height: "16",
|
|
4515
4525
|
viewBox: "0 0 16 16",
|
|
@@ -4517,16 +4527,16 @@ const _hoisted_1$f = {
|
|
|
4517
4527
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4518
4528
|
};
|
|
4519
4529
|
function _sfc_render$5(_ctx, _cache) {
|
|
4520
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
4530
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$g, _cache[0] || (_cache[0] = [
|
|
4521
4531
|
createElementVNode("path", {
|
|
4522
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",
|
|
4523
4533
|
fill: "currentColor"
|
|
4524
4534
|
}, null, -1)
|
|
4525
4535
|
]));
|
|
4526
4536
|
}
|
|
4527
|
-
const TextStrikethroughIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4528
|
-
const _sfc_main$
|
|
4529
|
-
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 = {
|
|
4530
4540
|
width: "16",
|
|
4531
4541
|
height: "16",
|
|
4532
4542
|
viewBox: "0 0 16 16",
|
|
@@ -4534,16 +4544,16 @@ const _hoisted_1$e = {
|
|
|
4534
4544
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4535
4545
|
};
|
|
4536
4546
|
function _sfc_render$4(_ctx, _cache) {
|
|
4537
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
4547
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$f, _cache[0] || (_cache[0] = [
|
|
4538
4548
|
createElementVNode("path", {
|
|
4539
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",
|
|
4540
4550
|
fill: "currentColor"
|
|
4541
4551
|
}, null, -1)
|
|
4542
4552
|
]));
|
|
4543
4553
|
}
|
|
4544
|
-
const ImageSolidIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4545
|
-
const _sfc_main$
|
|
4546
|
-
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 = {
|
|
4547
4557
|
width: "16",
|
|
4548
4558
|
height: "16",
|
|
4549
4559
|
viewBox: "0 0 16 16",
|
|
@@ -4551,16 +4561,16 @@ const _hoisted_1$d = {
|
|
|
4551
4561
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4552
4562
|
};
|
|
4553
4563
|
function _sfc_render$3(_ctx, _cache) {
|
|
4554
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
4564
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$e, _cache[0] || (_cache[0] = [
|
|
4555
4565
|
createElementVNode("path", {
|
|
4556
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",
|
|
4557
4567
|
fill: "currentColor"
|
|
4558
4568
|
}, null, -1)
|
|
4559
4569
|
]));
|
|
4560
4570
|
}
|
|
4561
|
-
const CodeIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4562
|
-
const _sfc_main$
|
|
4563
|
-
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 = {
|
|
4564
4574
|
width: "24",
|
|
4565
4575
|
height: "24",
|
|
4566
4576
|
viewBox: "0 0 24 24",
|
|
@@ -4568,20 +4578,20 @@ const _hoisted_1$c = {
|
|
|
4568
4578
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4569
4579
|
};
|
|
4570
4580
|
function _sfc_render$2(_ctx, _cache) {
|
|
4571
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
4581
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$d, _cache[0] || (_cache[0] = [
|
|
4572
4582
|
createElementVNode("path", {
|
|
4573
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",
|
|
4574
4584
|
fill: "currentColor"
|
|
4575
4585
|
}, null, -1)
|
|
4576
4586
|
]));
|
|
4577
4587
|
}
|
|
4578
|
-
const LinkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4579
|
-
const _hoisted_1$
|
|
4580
|
-
const _hoisted_2$
|
|
4581
|
-
const _hoisted_3$
|
|
4582
|
-
const _hoisted_4 = { class: "rich-text-editor__actions-group" };
|
|
4583
|
-
const _hoisted_5 = { class: "rich-text-editor__actions-group" };
|
|
4584
|
-
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({
|
|
4585
4595
|
__name: "RichTextEditorDialog",
|
|
4586
4596
|
props: /* @__PURE__ */ mergeModels({
|
|
4587
4597
|
label: {}
|
|
@@ -4754,31 +4764,31 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
4754
4764
|
(_a = textEditorRef.value) == null ? void 0 : _a.insertBlock({ type: "image", editable: false, text: "" });
|
|
4755
4765
|
};
|
|
4756
4766
|
return (_ctx, _cache) => {
|
|
4757
|
-
return openBlock(), createBlock(_sfc_main$
|
|
4767
|
+
return openBlock(), createBlock(_sfc_main$w, { class: "rich-text-editor__dialog" }, {
|
|
4758
4768
|
header: withCtx(() => [
|
|
4759
4769
|
createTextVNode(toDisplayString(props.label ?? "Редактирование текста"), 1)
|
|
4760
4770
|
]),
|
|
4761
4771
|
default: withCtx(() => {
|
|
4762
4772
|
var _a;
|
|
4763
4773
|
return [
|
|
4764
|
-
createElementVNode("div", _hoisted_1$
|
|
4765
|
-
createVNode(_sfc_main$
|
|
4774
|
+
createElementVNode("div", _hoisted_1$c, [
|
|
4775
|
+
createVNode(_sfc_main$D, {
|
|
4766
4776
|
modelValue: blockType.value,
|
|
4767
4777
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => blockType.value = $event),
|
|
4768
4778
|
items: blockTypes,
|
|
4769
4779
|
style: { "width": "200px" }
|
|
4770
4780
|
}, null, 8, ["modelValue"]),
|
|
4771
|
-
createElementVNode("div", _hoisted_2$
|
|
4781
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
4772
4782
|
(openBlock(true), createElementBlock(Fragment, null, renderList(styles.value, (item) => {
|
|
4773
4783
|
return openBlock(), createElementBlock("button", {
|
|
4774
4784
|
class: normalizeClass({ active: item.active }),
|
|
4775
4785
|
onClick: item.onClick
|
|
4776
4786
|
}, [
|
|
4777
4787
|
(openBlock(), createBlock(resolveDynamicComponent(item.icon)))
|
|
4778
|
-
], 10, _hoisted_3$
|
|
4788
|
+
], 10, _hoisted_3$2);
|
|
4779
4789
|
}), 256))
|
|
4780
4790
|
]),
|
|
4781
|
-
createElementVNode("div", _hoisted_4, [
|
|
4791
|
+
createElementVNode("div", _hoisted_4$1, [
|
|
4782
4792
|
createElementVNode("button", {
|
|
4783
4793
|
class: normalizeClass({ active: (_a = textEditorRef.value) == null ? void 0 : _a.currentStyles.has("link") }),
|
|
4784
4794
|
onClick: insertLink
|
|
@@ -4786,7 +4796,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
4786
4796
|
createVNode(LinkIcon)
|
|
4787
4797
|
], 2)
|
|
4788
4798
|
]),
|
|
4789
|
-
createElementVNode("div", _hoisted_5, [
|
|
4799
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
4790
4800
|
createElementVNode("button", {
|
|
4791
4801
|
title: "Вставить изображение",
|
|
4792
4802
|
onClick: insertImage
|
|
@@ -4813,7 +4823,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
4813
4823
|
"html-parser": htmlParser
|
|
4814
4824
|
}, {
|
|
4815
4825
|
code: withCtx(({ props: props2, block }) => [
|
|
4816
|
-
createVNode(_sfc_main$
|
|
4826
|
+
createVNode(_sfc_main$p, mergeProps({
|
|
4817
4827
|
modelValue: block.text,
|
|
4818
4828
|
"onUpdate:modelValue": ($event) => block.text = $event
|
|
4819
4829
|
}, props2, {
|
|
@@ -4830,7 +4840,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
4830
4840
|
image: withCtx(({ props: props2, block }) => {
|
|
4831
4841
|
var _a2;
|
|
4832
4842
|
return [
|
|
4833
|
-
createVNode(_sfc_main$
|
|
4843
|
+
createVNode(_sfc_main$u, mergeProps({
|
|
4834
4844
|
modelValue: block.image,
|
|
4835
4845
|
"onUpdate:modelValue": ($event) => block.image = $event
|
|
4836
4846
|
}, props2, {
|
|
@@ -4848,7 +4858,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
4848
4858
|
])),
|
|
4849
4859
|
_: 1
|
|
4850
4860
|
}, 8, ["modelValue", "renderer", "decorator"]),
|
|
4851
|
-
createVNode(_sfc_main$
|
|
4861
|
+
createVNode(_sfc_main$H, {
|
|
4852
4862
|
class: "rich-text-editor-link-popover scroll",
|
|
4853
4863
|
open: linkPopoverState.value != null,
|
|
4854
4864
|
placement: "bottom-start",
|
|
@@ -4857,7 +4867,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
4857
4867
|
"onUpdate:open": onUpdateLinkPopoverOpen
|
|
4858
4868
|
}, {
|
|
4859
4869
|
default: withCtx(() => [
|
|
4860
|
-
linkPopoverState.value !== null ? (openBlock(), createBlock(_sfc_main$
|
|
4870
|
+
linkPopoverState.value !== null ? (openBlock(), createBlock(_sfc_main$o, {
|
|
4861
4871
|
key: 0,
|
|
4862
4872
|
state: linkPopoverState.value,
|
|
4863
4873
|
onApply: onLinkApply
|
|
@@ -4877,8 +4887,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
4877
4887
|
};
|
|
4878
4888
|
}
|
|
4879
4889
|
});
|
|
4880
|
-
const _hoisted_1$
|
|
4881
|
-
const _sfc_main$
|
|
4890
|
+
const _hoisted_1$b = { class: "v-form-control__outline" };
|
|
4891
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
4882
4892
|
__name: "VRichTextEditor",
|
|
4883
4893
|
props: /* @__PURE__ */ mergeModels({
|
|
4884
4894
|
label: {}
|
|
@@ -4892,26 +4902,26 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
4892
4902
|
const model = useModel(__props, "modelValue");
|
|
4893
4903
|
const dialog = useDialog();
|
|
4894
4904
|
const openTextEditor = () => {
|
|
4895
|
-
dialog.open(_sfc_main$
|
|
4905
|
+
dialog.open(_sfc_main$g, {
|
|
4896
4906
|
label: props.label,
|
|
4897
4907
|
modelValue: model.value,
|
|
4898
4908
|
["onUpdate:modelValue"]: (val) => model.value = val
|
|
4899
4909
|
});
|
|
4900
4910
|
};
|
|
4901
4911
|
return (_ctx, _cache) => {
|
|
4902
|
-
return openBlock(), createBlock(_sfc_main$
|
|
4912
|
+
return openBlock(), createBlock(_sfc_main$O, {
|
|
4903
4913
|
label: props.label,
|
|
4904
4914
|
class: "rich-text-editor"
|
|
4905
4915
|
}, {
|
|
4906
4916
|
default: withCtx(() => [
|
|
4907
|
-
createElementVNode("div", _hoisted_1$
|
|
4917
|
+
createElementVNode("div", _hoisted_1$b, [
|
|
4908
4918
|
createVNode(unref(_sfc_main$1$1), {
|
|
4909
4919
|
modelValue: model.value,
|
|
4910
4920
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
4911
4921
|
class: "rich-text-editor__editor"
|
|
4912
4922
|
}, null, 8, ["modelValue"])
|
|
4913
4923
|
]),
|
|
4914
|
-
createVNode(_sfc_main$
|
|
4924
|
+
createVNode(_sfc_main$z, { onClick: openTextEditor }, {
|
|
4915
4925
|
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
4916
4926
|
createTextVNode("Редактировать")
|
|
4917
4927
|
])),
|
|
@@ -4924,8 +4934,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
4924
4934
|
};
|
|
4925
4935
|
}
|
|
4926
4936
|
});
|
|
4927
|
-
const _sfc_main$
|
|
4928
|
-
const _hoisted_1$
|
|
4937
|
+
const _sfc_main$e = {};
|
|
4938
|
+
const _hoisted_1$a = {
|
|
4929
4939
|
width: "20",
|
|
4930
4940
|
height: "20",
|
|
4931
4941
|
viewBox: "0 0 20 20",
|
|
@@ -4933,20 +4943,20 @@ const _hoisted_1$9 = {
|
|
|
4933
4943
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4934
4944
|
};
|
|
4935
4945
|
function _sfc_render$1(_ctx, _cache) {
|
|
4936
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
4946
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$a, _cache[0] || (_cache[0] = [
|
|
4937
4947
|
createElementVNode("path", {
|
|
4938
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",
|
|
4939
4949
|
fill: "currentColor"
|
|
4940
4950
|
}, null, -1)
|
|
4941
4951
|
]));
|
|
4942
4952
|
}
|
|
4943
|
-
const FileIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4944
|
-
const _hoisted_1$
|
|
4953
|
+
const FileIcon = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$1]]);
|
|
4954
|
+
const _hoisted_1$9 = {
|
|
4945
4955
|
key: 0,
|
|
4946
4956
|
class: "v-image-uploader__drag-label"
|
|
4947
4957
|
};
|
|
4948
|
-
const _hoisted_2$
|
|
4949
|
-
const _sfc_main$
|
|
4958
|
+
const _hoisted_2$4 = { class: "v-file-uploader__file-name" };
|
|
4959
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
4950
4960
|
__name: "VFileUploader",
|
|
4951
4961
|
props: {
|
|
4952
4962
|
accept: {},
|
|
@@ -5008,7 +5018,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
5008
5018
|
};
|
|
5009
5019
|
useDialog();
|
|
5010
5020
|
return (_ctx, _cache) => {
|
|
5011
|
-
return openBlock(), createBlock(_sfc_main$
|
|
5021
|
+
return openBlock(), createBlock(_sfc_main$O, {
|
|
5012
5022
|
class: normalizeClass(["v-image-uploader v-file-uploader", { drag: drag.value }]),
|
|
5013
5023
|
error: _ctx.error,
|
|
5014
5024
|
label: _ctx.label,
|
|
@@ -5020,7 +5030,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
5020
5030
|
onDragleave: onDragLeave
|
|
5021
5031
|
}, {
|
|
5022
5032
|
default: withCtx(() => [
|
|
5023
|
-
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 }, [
|
|
5024
5034
|
createVNode(EmptyFileIcon),
|
|
5025
5035
|
createElementVNode("div", null, [
|
|
5026
5036
|
createElementVNode("a", {
|
|
@@ -5030,7 +5040,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
5030
5040
|
_cache[2] || (_cache[2] = createTextVNode("или перетащите сюда "))
|
|
5031
5041
|
])
|
|
5032
5042
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
5033
|
-
createElementVNode("div", _hoisted_2$
|
|
5043
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
5034
5044
|
createVNode(FileIcon),
|
|
5035
5045
|
createTextVNode(" " + toDisplayString(props.modelValue.name), 1)
|
|
5036
5046
|
]),
|
|
@@ -5050,8 +5060,139 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
5050
5060
|
};
|
|
5051
5061
|
}
|
|
5052
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
|
+
});
|
|
5053
5194
|
const _hoisted_1$7 = {
|
|
5054
|
-
key:
|
|
5195
|
+
key: 5,
|
|
5055
5196
|
class: "json-editor__object"
|
|
5056
5197
|
};
|
|
5057
5198
|
const getItems = (schema) => {
|
|
@@ -5063,6 +5204,14 @@ const getItems = (schema) => {
|
|
|
5063
5204
|
};
|
|
5064
5205
|
});
|
|
5065
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
|
+
};
|
|
5066
5215
|
const join = (baseKey, key) => {
|
|
5067
5216
|
if (key) {
|
|
5068
5217
|
return `${baseKey}.${key}`;
|
|
@@ -5096,30 +5245,36 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
5096
5245
|
watch(vModel, () => emit("edit"));
|
|
5097
5246
|
return (_ctx, _cache) => {
|
|
5098
5247
|
const _component_JsonEditor = resolveComponent("JsonEditor", true);
|
|
5099
|
-
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, {
|
|
5100
5249
|
key: 0,
|
|
5101
5250
|
modelValue: vModel.value,
|
|
5102
5251
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vModel.value = $event),
|
|
5103
5252
|
label: props.schema.name ?? props.name,
|
|
5104
5253
|
schema: props.schema
|
|
5105
|
-
}, 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, {
|
|
5106
5255
|
key: 1,
|
|
5107
5256
|
modelValue: vModel.value,
|
|
5108
5257
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vModel.value = $event),
|
|
5109
5258
|
accept: props.schema.accept,
|
|
5110
5259
|
label: props.schema.name ?? props.name,
|
|
5111
5260
|
schema: props.schema
|
|
5112
|
-
}, 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, {
|
|
5113
5262
|
key: 2,
|
|
5114
5263
|
modelValue: vModel.value,
|
|
5115
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),
|
|
5116
5271
|
label: props.schema.name ?? props.name,
|
|
5117
5272
|
schema: props.schema,
|
|
5118
5273
|
nullable: props.schema.nullable || props.nullable
|
|
5119
|
-
}, null, 8, ["modelValue", "label", "schema", "nullable"])) : props.schema.type === "array" && props.schema.format === "richText" ? (openBlock(), createBlock(_sfc_main$
|
|
5120
|
-
key:
|
|
5274
|
+
}, null, 8, ["modelValue", "label", "schema", "nullable"])) : props.schema.type === "array" && props.schema.format === "richText" ? (openBlock(), createBlock(_sfc_main$f, {
|
|
5275
|
+
key: 4,
|
|
5121
5276
|
modelValue: vModel.value,
|
|
5122
|
-
"onUpdate:modelValue": _cache[
|
|
5277
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vModel.value = $event),
|
|
5123
5278
|
label: props.schema.name ?? props.name,
|
|
5124
5279
|
schema: props.schema
|
|
5125
5280
|
}, null, 8, ["modelValue", "label", "schema"])) : props.schema.type === "object" ? (openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
@@ -5135,7 +5290,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
5135
5290
|
nullable: !((_a = props.schema.required) == null ? void 0 : _a.includes(key)),
|
|
5136
5291
|
onEdit: ($event) => emit("edit", join(key, $event))
|
|
5137
5292
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "schema", "expanded", "name", "nullable", "onEdit"]);
|
|
5138
|
-
}), 128)) : (openBlock(), createBlock(_sfc_main$
|
|
5293
|
+
}), 128)) : (openBlock(), createBlock(_sfc_main$I, {
|
|
5139
5294
|
key: 1,
|
|
5140
5295
|
label: props.schema.name ?? props.name,
|
|
5141
5296
|
open: props.expanded
|
|
@@ -5157,30 +5312,30 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
5157
5312
|
]),
|
|
5158
5313
|
_: 1
|
|
5159
5314
|
}, 8, ["label", "open"]))
|
|
5160
|
-
])) : props.schema.type === "array" ? (openBlock(), createBlock(_sfc_main$
|
|
5161
|
-
key:
|
|
5315
|
+
])) : props.schema.type === "array" ? (openBlock(), createBlock(_sfc_main$C, {
|
|
5316
|
+
key: 6,
|
|
5162
5317
|
modelValue: vModel.value,
|
|
5163
|
-
"onUpdate:modelValue": _cache[
|
|
5318
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vModel.value = $event),
|
|
5164
5319
|
schema: props.schema,
|
|
5165
5320
|
label: props.schema.name ?? props.name,
|
|
5166
5321
|
expanded: props.expanded,
|
|
5167
|
-
onEdit: _cache[
|
|
5168
|
-
}, null, 8, ["modelValue", "schema", "label", "expanded"])) : props.schema.type === "string" && props.schema.enum ? (openBlock(), createBlock(_sfc_main$
|
|
5169
|
-
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,
|
|
5170
5325
|
nullable: props.schema.nullable || props.nullable,
|
|
5171
5326
|
items: getItems(props.schema),
|
|
5172
5327
|
modelValue: vModel.value,
|
|
5173
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => vModel.value = $event),
|
|
5174
|
-
label: props.schema.name ?? props.name
|
|
5175
|
-
}, null, 8, ["nullable", "items", "modelValue", "label"])) : props.schema.type === "boolean" ? (openBlock(), createBlock(_sfc_main$r, {
|
|
5176
|
-
key: 7,
|
|
5177
|
-
modelValue: vModel.value,
|
|
5178
5328
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => vModel.value = $event),
|
|
5179
5329
|
label: props.schema.name ?? props.name
|
|
5180
|
-
}, null, 8, ["modelValue", "label"])) : (openBlock(), createBlock(_sfc_main$
|
|
5330
|
+
}, null, 8, ["nullable", "items", "modelValue", "label"])) : props.schema.type === "boolean" ? (openBlock(), createBlock(_sfc_main$s, {
|
|
5181
5331
|
key: 8,
|
|
5182
5332
|
modelValue: vModel.value,
|
|
5183
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),
|
|
5184
5339
|
label: props.schema.name ?? props.name,
|
|
5185
5340
|
multiline: props.schema.multiline,
|
|
5186
5341
|
placeholder: props.schema.placeholder
|
|
@@ -5259,14 +5414,14 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
5259
5414
|
}, ["stop"]))
|
|
5260
5415
|
}, [
|
|
5261
5416
|
renderSlot(_ctx.$slots, "default"),
|
|
5262
|
-
createVNode(_sfc_main$
|
|
5417
|
+
createVNode(_sfc_main$L, {
|
|
5263
5418
|
modelValue: currentTab.value,
|
|
5264
5419
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => currentTab.value = $event),
|
|
5265
5420
|
items: tabs.value
|
|
5266
5421
|
}, null, 8, ["modelValue", "items"]),
|
|
5267
|
-
createVNode(_sfc_main$
|
|
5422
|
+
createVNode(_sfc_main$K, { page: currentTab.value }, {
|
|
5268
5423
|
blocks: withCtx(() => [
|
|
5269
|
-
createVNode(_sfc_main$
|
|
5424
|
+
createVNode(_sfc_main$M, { blocks: _ctx.blocksList }, null, 8, ["blocks"])
|
|
5270
5425
|
]),
|
|
5271
5426
|
blockEdit: withCtx(() => [
|
|
5272
5427
|
currentBlock.value && currentContentBlock.value ? (openBlock(), createBlock(_sfc_main$b, {
|
|
@@ -5276,7 +5431,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
5276
5431
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => currentContentBlock.value.data = $event),
|
|
5277
5432
|
flat: ""
|
|
5278
5433
|
}, null, 8, ["schema", "modelValue"])) : currentDataEntry.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
5279
|
-
props.dataEntryScopes ? (openBlock(), createBlock(_sfc_main$
|
|
5434
|
+
props.dataEntryScopes ? (openBlock(), createBlock(_sfc_main$D, {
|
|
5280
5435
|
key: 0,
|
|
5281
5436
|
modelValue: props.dataEntryScopes[currentDataEntry.value.id],
|
|
5282
5437
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => props.dataEntryScopes[currentDataEntry.value.id] = $event),
|
|
@@ -5544,7 +5699,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
5544
5699
|
onBlockdrop: ($event) => onPlaceBlockDrop($event, item.index)
|
|
5545
5700
|
}, null, 44, _hoisted_2$2);
|
|
5546
5701
|
}), 256)),
|
|
5547
|
-
createVNode(_sfc_main$
|
|
5702
|
+
createVNode(_sfc_main$y, normalizeProps(guardReactiveProps(unref(contextMenu).props)), null, 16)
|
|
5548
5703
|
], 512);
|
|
5549
5704
|
};
|
|
5550
5705
|
}
|
|
@@ -5787,12 +5942,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
5787
5942
|
dialog.close();
|
|
5788
5943
|
});
|
|
5789
5944
|
return (_ctx, _cache) => {
|
|
5790
|
-
return openBlock(), createBlock(_sfc_main$
|
|
5945
|
+
return openBlock(), createBlock(_sfc_main$w, { style: { "width": "500px" } }, {
|
|
5791
5946
|
header: withCtx(() => [
|
|
5792
5947
|
createTextVNode(toDisplayString(props.item ? "Редактировать" : "Создать") + " страницу", 1)
|
|
5793
5948
|
]),
|
|
5794
5949
|
actions: withCtx(() => [
|
|
5795
|
-
createVNode(_sfc_main$
|
|
5950
|
+
createVNode(_sfc_main$z, {
|
|
5796
5951
|
disabled: unref(pending),
|
|
5797
5952
|
large: "",
|
|
5798
5953
|
onClick: unref(apply)
|
|
@@ -5808,15 +5963,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
5808
5963
|
default: withCtx(() => {
|
|
5809
5964
|
var _a;
|
|
5810
5965
|
return [
|
|
5811
|
-
createVNode(_sfc_main$
|
|
5966
|
+
createVNode(_sfc_main$N, mergeProps(unref(register)("name"), {
|
|
5812
5967
|
label: "Название страницы",
|
|
5813
5968
|
autofocus: ""
|
|
5814
5969
|
}), null, 16),
|
|
5815
|
-
createVNode(_sfc_main$
|
|
5970
|
+
createVNode(_sfc_main$N, mergeProps(unref(register)("path"), {
|
|
5816
5971
|
prefix: (_a = currentFoler.value) == null ? void 0 : _a.path,
|
|
5817
5972
|
label: "URL адрес"
|
|
5818
5973
|
}), null, 16, ["prefix"]),
|
|
5819
|
-
folders.value.length > 0 ? (openBlock(), createBlock(_sfc_main$
|
|
5974
|
+
folders.value.length > 0 ? (openBlock(), createBlock(_sfc_main$D, mergeProps({
|
|
5820
5975
|
key: 0,
|
|
5821
5976
|
nullable: ""
|
|
5822
5977
|
}, unref(register)("folderId"), {
|
|
@@ -5918,7 +6073,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
5918
6073
|
class: "v-table__check",
|
|
5919
6074
|
onClick: withModifiers(checkboxClick, ["prevent", "stop"])
|
|
5920
6075
|
}, [
|
|
5921
|
-
createVNode(_sfc_main$
|
|
6076
|
+
createVNode(_sfc_main$s, {
|
|
5922
6077
|
modelValue: modelValue.value.has(item),
|
|
5923
6078
|
"onUpdate:modelValue": ($event) => modelValue.value.has(item) ? modelValue.value.delete(item) : modelValue.value.add(item)
|
|
5924
6079
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -5955,7 +6110,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
5955
6110
|
path: { title: "Путь" }
|
|
5956
6111
|
};
|
|
5957
6112
|
return (_ctx, _cache) => {
|
|
5958
|
-
return openBlock(), createBlock(_sfc_main$
|
|
6113
|
+
return openBlock(), createBlock(_sfc_main$w, { class: "standart" }, {
|
|
5959
6114
|
header: withCtx(() => _cache[0] || (_cache[0] = [
|
|
5960
6115
|
createTextVNode(" Страницы проекта ")
|
|
5961
6116
|
])),
|
|
@@ -6010,12 +6165,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
6010
6165
|
dialog.close();
|
|
6011
6166
|
});
|
|
6012
6167
|
return (_ctx, _cache) => {
|
|
6013
|
-
return openBlock(), createBlock(_sfc_main$
|
|
6168
|
+
return openBlock(), createBlock(_sfc_main$w, { class: "standart" }, {
|
|
6014
6169
|
header: withCtx(() => _cache[1] || (_cache[1] = [
|
|
6015
6170
|
createTextVNode("Настройки страницы")
|
|
6016
6171
|
])),
|
|
6017
6172
|
actions: withCtx(() => [
|
|
6018
|
-
createVNode(_sfc_main$
|
|
6173
|
+
createVNode(_sfc_main$z, {
|
|
6019
6174
|
large: "",
|
|
6020
6175
|
onClick: unref(apply)
|
|
6021
6176
|
}, {
|
|
@@ -6027,19 +6182,19 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
6027
6182
|
}, 8, ["onClick"])
|
|
6028
6183
|
]),
|
|
6029
6184
|
default: withCtx(() => [
|
|
6030
|
-
createVNode(_sfc_main$
|
|
6185
|
+
createVNode(_sfc_main$L, {
|
|
6031
6186
|
modelValue: currentTab.value,
|
|
6032
6187
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => currentTab.value = $event),
|
|
6033
6188
|
items: tabs.value,
|
|
6034
6189
|
style: { "margin-bottom": "12px" }
|
|
6035
6190
|
}, null, 8, ["modelValue", "items"]),
|
|
6036
|
-
createVNode(_sfc_main$
|
|
6191
|
+
createVNode(_sfc_main$K, { page: currentTab.value }, createSlots({
|
|
6037
6192
|
_main: withCtx(() => [
|
|
6038
6193
|
createVNode(_sfc_main$7, null, {
|
|
6039
6194
|
default: withCtx(() => [
|
|
6040
6195
|
createElementVNode("div", _hoisted_1$3, [
|
|
6041
|
-
createVNode(_sfc_main$
|
|
6042
|
-
createVNode(_sfc_main$
|
|
6196
|
+
createVNode(_sfc_main$N, mergeProps(unref(register)("name"), { label: "Название страницы" }), null, 16),
|
|
6197
|
+
createVNode(_sfc_main$N, mergeProps(unref(register)("path"), { label: "Путь к странице" }), null, 16)
|
|
6043
6198
|
])
|
|
6044
6199
|
]),
|
|
6045
6200
|
_: 1
|
|
@@ -6192,7 +6347,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
6192
6347
|
return arr;
|
|
6193
6348
|
});
|
|
6194
6349
|
return (_ctx, _cache) => {
|
|
6195
|
-
return openBlock(), createBlock(_sfc_main$
|
|
6350
|
+
return openBlock(), createBlock(_sfc_main$y, {
|
|
6196
6351
|
placement: "bottom",
|
|
6197
6352
|
fitAnchor: "",
|
|
6198
6353
|
offset: 4,
|
|
@@ -6335,16 +6490,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6335
6490
|
]),
|
|
6336
6491
|
_: 1
|
|
6337
6492
|
}),
|
|
6338
|
-
controlsOpened.value ? (openBlock(), createBlock(_sfc_main$
|
|
6493
|
+
controlsOpened.value ? (openBlock(), createBlock(_sfc_main$S, {
|
|
6339
6494
|
key: 0,
|
|
6340
6495
|
element: unref(control).hoverBlockElement.value
|
|
6341
6496
|
}, null, 8, ["element"])) : createCommentVNode("", true),
|
|
6342
|
-
controlsOpened.value ? (openBlock(), createBlock(_sfc_main$
|
|
6497
|
+
controlsOpened.value ? (openBlock(), createBlock(_sfc_main$S, {
|
|
6343
6498
|
key: 1,
|
|
6344
6499
|
element: unref(control).activeBlockElement.value,
|
|
6345
6500
|
resizable: ""
|
|
6346
6501
|
}, null, 8, ["element"])) : createCommentVNode("", true),
|
|
6347
|
-
unref(control).insertedPlace.value ? (openBlock(), createBlock(_sfc_main$
|
|
6502
|
+
unref(control).insertedPlace.value ? (openBlock(), createBlock(_sfc_main$R, {
|
|
6348
6503
|
key: 2,
|
|
6349
6504
|
top: unref(control).insertedPlace.value.top
|
|
6350
6505
|
}, null, 8, ["top"])) : createCommentVNode("", true),
|
|
@@ -6399,7 +6554,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6399
6554
|
]),
|
|
6400
6555
|
_: 1
|
|
6401
6556
|
}),
|
|
6402
|
-
createVNode(_sfc_main$
|
|
6557
|
+
createVNode(_sfc_main$x)
|
|
6403
6558
|
], 64);
|
|
6404
6559
|
};
|
|
6405
6560
|
}
|