@zipify/wysiwyg 2.5.4 → 2.5.6-0
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/.release-it.json +11 -0
- package/dist/cli.js +1 -1
- package/dist/wysiwyg.css +19 -26
- package/dist/wysiwyg.mjs +323 -304
- package/lib/Wysiwyg.vue +1 -1
- package/lib/components/base/colorPicker/ColorPicker.vue +15 -28
- package/lib/components/base/colorPicker/composables/__tests__/usePickerApi.test.js +2 -2
- package/lib/components/base/colorPicker/composables/usePickerApi.js +9 -5
- package/lib/components/base/colorPicker/composables/usePickerHotkeys.js +2 -0
- package/lib/components/toolbar/Toolbar.vue +13 -6
- package/lib/components/toolbar/__tests__/Toolbar.test.js +13 -7
- package/lib/components/toolbar/{ToolbarDivider.vue → base/ToolbarDivider.vue} +0 -0
- package/lib/components/toolbar/{ToolbarGroup.vue → base/ToolbarGroup.vue} +0 -0
- package/lib/components/toolbar/{ToolbarRow.vue → base/ToolbarRow.vue} +0 -0
- package/lib/components/toolbar/{__tests__ → base/__tests__}/ToolbarDivider.test.js +0 -0
- package/lib/components/toolbar/base/index.js +3 -0
- package/lib/components/toolbar/controls/index.js +0 -1
- package/lib/components/toolbar/layouts/ToolbarDesktop.vue +95 -0
- package/lib/components/toolbar/{ToolbarFull.vue → layouts/ToolbarMobile.vue} +19 -44
- package/lib/components/toolbar/layouts/ToolbarPopup.vue +95 -0
- package/lib/components/toolbar/layouts/index.js +3 -0
- package/lib/injectionTokens.js +1 -2
- package/package.json +2 -4
- package/lib/components/toolbar/ToolbarDevice.vue +0 -35
- package/lib/components/toolbar/controls/AlignmentDeviceControl.vue +0 -78
- package/lib/components/toolbar/controls/__tests__/AlignmentDeviceControl.test.js +0 -77
package/dist/wysiwyg.mjs
CHANGED
|
@@ -27,7 +27,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
27
27
|
return method;
|
|
28
28
|
};
|
|
29
29
|
var _domParser, _parser, _NodeFilter, NodeFilter_get, _Node, Node_get, _removeComments, removeComments_fn, _normalizeRootTags, normalizeRootTags_fn, _createNodeIterator, createNodeIterator_fn, _iterateNodes, iterateNodes_fn, _runIterator, runIterator_fn, _removeEmptyNodes, removeEmptyNodes_fn, _normalizeListItems, normalizeListItems_fn, _isBlockNode, isBlockNode_fn, _isRootNode, isRootNode_fn, _assignElementProperties, assignElementProperties_fn, _removeStyleProperties, removeStyleProperties_fn, _normalizeBreakLines, normalizeBreakLines_fn, _normalizeBlockTextDecoration, normalizeBlockTextDecoration_fn, _moveTextDecorationToChildren, moveTextDecorationToChildren_fn, _parseTextDecoration, parseTextDecoration_fn, _normalizeBlockBackgroundColor, normalizeBlockBackgroundColor_fn, _moveBackgroundColorToChildren, moveBackgroundColorToChildren_fn, _wrapTextNode, wrapTextNode_fn, _iterateNodes2, iterateNodes_fn2, _iterateChildNodes, iterateChildNodes_fn, _bubbleMarks, bubbleMarks_fn, _canBubbleMark, canBubbleMark_fn, _includesMark, includesMark_fn, _includesMarkType, includesMarkType_fn, _removeMark, removeMark_fn, _addMark, addMark_fn, _findMarkIndexByType, findMarkIndexByType_fn, _buildHtml, buildHtml_fn, _buildJson, buildJson_fn, _textBlock, textBlock_fn, _normalizeTextBlockArgs, normalizeTextBlockArgs_fn, _buildDecorations, buildDecorations_fn, _getWeights, getWeights_fn;
|
|
30
|
-
import { computed, ref, watch, inject, onUnmounted, nextTick, provide, onMounted, toRef,
|
|
30
|
+
import { computed, ref, watch, inject, onUnmounted, nextTick, provide, onMounted, toRef, reactive, unref } from "vue";
|
|
31
31
|
import { ColorModel, ZipifyColorPicker } from "@zipify/colorpicker";
|
|
32
32
|
function OrderedMap(content) {
|
|
33
33
|
this.content = content;
|
|
@@ -14058,26 +14058,16 @@ const LinkDestinations = Object.freeze({
|
|
|
14058
14058
|
URL: "url",
|
|
14059
14059
|
BLOCK: "block"
|
|
14060
14060
|
});
|
|
14061
|
-
const InjectionTokens$1 = Object.freeze({
|
|
14062
|
-
FONTS: Symbol("fonts"),
|
|
14063
|
-
FONT_SIZES: Symbol("fontSizes"),
|
|
14064
|
-
EDITOR: Symbol("editor"),
|
|
14065
|
-
LOCAL_STORAGE: Symbol("localStorage"),
|
|
14066
|
-
FAVORITE_COLORS: Symbol("favoriteColors"),
|
|
14067
|
-
PAGE_BLOCKS: Symbol("pageBlocks"),
|
|
14068
|
-
POPUP_MODE: Symbol("popupMode")
|
|
14069
|
-
});
|
|
14070
14061
|
var render$I = function __render__() {
|
|
14071
14062
|
var _vm = this;
|
|
14072
14063
|
var _h = _vm.$createElement;
|
|
14073
14064
|
var _c = _vm._self._c || _h;
|
|
14074
14065
|
return _c("div", {
|
|
14075
|
-
staticClass: "zw-
|
|
14076
|
-
|
|
14077
|
-
});
|
|
14066
|
+
staticClass: "zw-toolbar__group"
|
|
14067
|
+
}, [_vm._t("default")], 2);
|
|
14078
14068
|
};
|
|
14079
14069
|
var staticRenderFns$I = [];
|
|
14080
|
-
const
|
|
14070
|
+
const ToolbarGroup_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
14081
14071
|
function normalizeComponent(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
14082
14072
|
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
14083
14073
|
if (render2) {
|
|
@@ -14133,26 +14123,7 @@ function normalizeComponent(scriptExports, render2, staticRenderFns2, functional
|
|
|
14133
14123
|
};
|
|
14134
14124
|
}
|
|
14135
14125
|
const __vue2_script$I = {
|
|
14136
|
-
name: "
|
|
14137
|
-
props: {
|
|
14138
|
-
vertical: {
|
|
14139
|
-
type: Boolean,
|
|
14140
|
-
required: false,
|
|
14141
|
-
default: false
|
|
14142
|
-
},
|
|
14143
|
-
horizontal: {
|
|
14144
|
-
type: Boolean,
|
|
14145
|
-
required: false,
|
|
14146
|
-
default: false
|
|
14147
|
-
}
|
|
14148
|
-
},
|
|
14149
|
-
setup(props) {
|
|
14150
|
-
const classes = computed(() => ({
|
|
14151
|
-
"zw-toolbar__divider--vertical": props.vertical,
|
|
14152
|
-
"zw-toolbar__divider--horizontal": props.horizontal
|
|
14153
|
-
}));
|
|
14154
|
-
return { classes };
|
|
14155
|
-
}
|
|
14126
|
+
name: "ToolbarGroup"
|
|
14156
14127
|
};
|
|
14157
14128
|
const __cssModules$I = {};
|
|
14158
14129
|
var __component__$I = /* @__PURE__ */ normalizeComponent(
|
|
@@ -14161,7 +14132,7 @@ var __component__$I = /* @__PURE__ */ normalizeComponent(
|
|
|
14161
14132
|
staticRenderFns$I,
|
|
14162
14133
|
false,
|
|
14163
14134
|
__vue2_injectStyles$I,
|
|
14164
|
-
"
|
|
14135
|
+
"31a43dae",
|
|
14165
14136
|
null,
|
|
14166
14137
|
null
|
|
14167
14138
|
);
|
|
@@ -14170,7 +14141,7 @@ function __vue2_injectStyles$I(context) {
|
|
|
14170
14141
|
this[o] = __cssModules$I[o];
|
|
14171
14142
|
}
|
|
14172
14143
|
}
|
|
14173
|
-
const
|
|
14144
|
+
const ToolbarGroup = /* @__PURE__ */ function() {
|
|
14174
14145
|
return __component__$I.exports;
|
|
14175
14146
|
}();
|
|
14176
14147
|
var render$H = function __render__2() {
|
|
@@ -14178,13 +14149,33 @@ var render$H = function __render__2() {
|
|
|
14178
14149
|
var _h = _vm.$createElement;
|
|
14179
14150
|
var _c = _vm._self._c || _h;
|
|
14180
14151
|
return _c("div", {
|
|
14181
|
-
staticClass: "zw-
|
|
14182
|
-
|
|
14152
|
+
staticClass: "zw-toolbar__divider",
|
|
14153
|
+
"class": _vm.classes
|
|
14154
|
+
});
|
|
14183
14155
|
};
|
|
14184
14156
|
var staticRenderFns$H = [];
|
|
14185
|
-
const
|
|
14157
|
+
const ToolbarDivider_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
14186
14158
|
const __vue2_script$H = {
|
|
14187
|
-
name: "
|
|
14159
|
+
name: "ToolbarDivider",
|
|
14160
|
+
props: {
|
|
14161
|
+
vertical: {
|
|
14162
|
+
type: Boolean,
|
|
14163
|
+
required: false,
|
|
14164
|
+
default: false
|
|
14165
|
+
},
|
|
14166
|
+
horizontal: {
|
|
14167
|
+
type: Boolean,
|
|
14168
|
+
required: false,
|
|
14169
|
+
default: false
|
|
14170
|
+
}
|
|
14171
|
+
},
|
|
14172
|
+
setup(props) {
|
|
14173
|
+
const classes = computed(() => ({
|
|
14174
|
+
"zw-toolbar__divider--vertical": props.vertical,
|
|
14175
|
+
"zw-toolbar__divider--horizontal": props.horizontal
|
|
14176
|
+
}));
|
|
14177
|
+
return { classes };
|
|
14178
|
+
}
|
|
14188
14179
|
};
|
|
14189
14180
|
const __cssModules$H = {};
|
|
14190
14181
|
var __component__$H = /* @__PURE__ */ normalizeComponent(
|
|
@@ -14193,7 +14184,7 @@ var __component__$H = /* @__PURE__ */ normalizeComponent(
|
|
|
14193
14184
|
staticRenderFns$H,
|
|
14194
14185
|
false,
|
|
14195
14186
|
__vue2_injectStyles$H,
|
|
14196
|
-
"
|
|
14187
|
+
"3c490aa3",
|
|
14197
14188
|
null,
|
|
14198
14189
|
null
|
|
14199
14190
|
);
|
|
@@ -14202,7 +14193,7 @@ function __vue2_injectStyles$H(context) {
|
|
|
14202
14193
|
this[o] = __cssModules$H[o];
|
|
14203
14194
|
}
|
|
14204
14195
|
}
|
|
14205
|
-
const
|
|
14196
|
+
const ToolbarDivider = /* @__PURE__ */ function() {
|
|
14206
14197
|
return __component__$H.exports;
|
|
14207
14198
|
}();
|
|
14208
14199
|
var render$G = function __render__3() {
|
|
@@ -14210,13 +14201,13 @@ var render$G = function __render__3() {
|
|
|
14210
14201
|
var _h = _vm.$createElement;
|
|
14211
14202
|
var _c = _vm._self._c || _h;
|
|
14212
14203
|
return _c("div", {
|
|
14213
|
-
staticClass: "zw-
|
|
14204
|
+
staticClass: "zw-toolbar__row"
|
|
14214
14205
|
}, [_vm._t("default")], 2);
|
|
14215
14206
|
};
|
|
14216
14207
|
var staticRenderFns$G = [];
|
|
14217
|
-
const
|
|
14208
|
+
const ToolbarRow_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
14218
14209
|
const __vue2_script$G = {
|
|
14219
|
-
name: "
|
|
14210
|
+
name: "ToolbarRow"
|
|
14220
14211
|
};
|
|
14221
14212
|
const __cssModules$G = {};
|
|
14222
14213
|
var __component__$G = /* @__PURE__ */ normalizeComponent(
|
|
@@ -14225,7 +14216,7 @@ var __component__$G = /* @__PURE__ */ normalizeComponent(
|
|
|
14225
14216
|
staticRenderFns$G,
|
|
14226
14217
|
false,
|
|
14227
14218
|
__vue2_injectStyles$G,
|
|
14228
|
-
"
|
|
14219
|
+
"050f71dd",
|
|
14229
14220
|
null,
|
|
14230
14221
|
null
|
|
14231
14222
|
);
|
|
@@ -14234,9 +14225,17 @@ function __vue2_injectStyles$G(context) {
|
|
|
14234
14225
|
this[o] = __cssModules$G[o];
|
|
14235
14226
|
}
|
|
14236
14227
|
}
|
|
14237
|
-
const
|
|
14228
|
+
const ToolbarRow = /* @__PURE__ */ function() {
|
|
14238
14229
|
return __component__$G.exports;
|
|
14239
14230
|
}();
|
|
14231
|
+
const InjectionTokens$1 = Object.freeze({
|
|
14232
|
+
FONTS: Symbol("fonts"),
|
|
14233
|
+
FONT_SIZES: Symbol("fontSizes"),
|
|
14234
|
+
EDITOR: Symbol("editor"),
|
|
14235
|
+
LOCAL_STORAGE: Symbol("localStorage"),
|
|
14236
|
+
FAVORITE_COLORS: Symbol("favoriteColors"),
|
|
14237
|
+
PAGE_BLOCKS: Symbol("pageBlocks")
|
|
14238
|
+
});
|
|
14240
14239
|
var render$F = function __render__4() {
|
|
14241
14240
|
var _vm = this;
|
|
14242
14241
|
var _h = _vm.$createElement;
|
|
@@ -22057,27 +22056,33 @@ function usePickerApi({ pickerRef, colorRef, onChange, onClosed, onBeforeOpened
|
|
|
22057
22056
|
function toggle() {
|
|
22058
22057
|
isOpened.value ? close2() : open();
|
|
22059
22058
|
}
|
|
22059
|
+
function triggerChange(color) {
|
|
22060
|
+
if (isOpened.value)
|
|
22061
|
+
onChange(color);
|
|
22062
|
+
}
|
|
22060
22063
|
function cancel() {
|
|
22061
22064
|
var _a;
|
|
22062
22065
|
const color = initialColor != null ? initialColor : colorRef.value;
|
|
22063
|
-
|
|
22066
|
+
triggerChange(color);
|
|
22064
22067
|
(_a = pickerRef.value) == null ? void 0 : _a.close(color);
|
|
22065
22068
|
}
|
|
22066
22069
|
const editingColor = computed({
|
|
22067
22070
|
get: () => colorRef.value,
|
|
22068
|
-
set: (color) => colorRef.value !== color &&
|
|
22071
|
+
set: (color) => colorRef.value !== color && triggerChange(color)
|
|
22069
22072
|
});
|
|
22070
|
-
return {
|
|
22073
|
+
return reactive({
|
|
22071
22074
|
isOpened,
|
|
22072
22075
|
editingColor,
|
|
22073
22076
|
open,
|
|
22074
22077
|
close: close2,
|
|
22075
22078
|
toggle,
|
|
22076
22079
|
cancel
|
|
22077
|
-
};
|
|
22080
|
+
});
|
|
22078
22081
|
}
|
|
22079
22082
|
function usePickerHotkeys({ isOpenedRef, onCancel, onApply }) {
|
|
22080
22083
|
function useHotkey(event, handler) {
|
|
22084
|
+
if (event.target.closest("input"))
|
|
22085
|
+
return;
|
|
22081
22086
|
event.stopImmediatePropagation();
|
|
22082
22087
|
event.preventDefault();
|
|
22083
22088
|
handler();
|
|
@@ -22107,17 +22112,17 @@ var render$p = function __render__20() {
|
|
|
22107
22112
|
name: "out-click",
|
|
22108
22113
|
rawName: "v-out-click",
|
|
22109
22114
|
value: {
|
|
22110
|
-
onOutClick: _vm.close,
|
|
22111
|
-
isDisabled: !_vm.isOpened
|
|
22115
|
+
onOutClick: _vm.api.close,
|
|
22116
|
+
isDisabled: !_vm.api.isOpened
|
|
22112
22117
|
},
|
|
22113
|
-
expression: "{ onOutClick: close, isDisabled: !isOpened }"
|
|
22118
|
+
expression: "{ onOutClick: api.close, isDisabled: !api.isOpened }"
|
|
22114
22119
|
}],
|
|
22115
22120
|
ref: "pickerRef",
|
|
22116
22121
|
attrs: {
|
|
22117
22122
|
"placement": "bottom-end",
|
|
22118
22123
|
"placement-strategy": "fixed",
|
|
22119
22124
|
"favorite-colors": _vm.favoriteColors,
|
|
22120
|
-
"window": _vm.
|
|
22125
|
+
"window": _vm.contextWindow
|
|
22121
22126
|
},
|
|
22122
22127
|
on: {
|
|
22123
22128
|
"changeFavoriteColors": _vm.updateFavoriteColors
|
|
@@ -22126,20 +22131,20 @@ var render$p = function __render__20() {
|
|
|
22126
22131
|
key: "activator",
|
|
22127
22132
|
fn: function fn2() {
|
|
22128
22133
|
return [_vm._t("activator", null, {
|
|
22129
|
-
"isOpened": _vm.isOpened,
|
|
22130
|
-
"open": _vm.open,
|
|
22131
|
-
"close": _vm.close,
|
|
22132
|
-
"toggle": _vm.toggle
|
|
22134
|
+
"isOpened": _vm.api.isOpened,
|
|
22135
|
+
"open": _vm.api.open,
|
|
22136
|
+
"close": _vm.api.close,
|
|
22137
|
+
"toggle": _vm.api.toggle
|
|
22133
22138
|
})];
|
|
22134
22139
|
},
|
|
22135
22140
|
proxy: true
|
|
22136
22141
|
}], null, true),
|
|
22137
22142
|
model: {
|
|
22138
|
-
value: _vm.editingColor,
|
|
22143
|
+
value: _vm.api.editingColor,
|
|
22139
22144
|
callback: function callback($$v) {
|
|
22140
|
-
_vm.editingColor
|
|
22145
|
+
_vm.$set(_vm.api, "editingColor", $$v);
|
|
22141
22146
|
},
|
|
22142
|
-
expression: "editingColor"
|
|
22147
|
+
expression: "api.editingColor"
|
|
22143
22148
|
}
|
|
22144
22149
|
});
|
|
22145
22150
|
};
|
|
@@ -22164,8 +22169,6 @@ const __vue2_script$p = {
|
|
|
22164
22169
|
const pickerRef = ref(null);
|
|
22165
22170
|
const api = usePickerApi({
|
|
22166
22171
|
onChange: (color) => {
|
|
22167
|
-
if (!unref(api.isOpened))
|
|
22168
|
-
return false;
|
|
22169
22172
|
emit("change", color);
|
|
22170
22173
|
editor.chain().focus().restoreSelection().run();
|
|
22171
22174
|
},
|
|
@@ -22174,28 +22177,19 @@ const __vue2_script$p = {
|
|
|
22174
22177
|
colorRef: toRef(props, "value"),
|
|
22175
22178
|
pickerRef
|
|
22176
22179
|
});
|
|
22180
|
+
const isOpenedRef = toRef(api, "isOpened");
|
|
22177
22181
|
usePickerHotkeys({
|
|
22178
|
-
isOpenedRef
|
|
22179
|
-
onCancel:
|
|
22180
|
-
onApply:
|
|
22182
|
+
isOpenedRef,
|
|
22183
|
+
onCancel: api.cancel,
|
|
22184
|
+
onApply: api.close
|
|
22181
22185
|
});
|
|
22182
|
-
|
|
22183
|
-
hostRef: pickerRef,
|
|
22184
|
-
isActiveRef: api.isOpened
|
|
22185
|
-
});
|
|
22186
|
-
function updateFavoriteColors(colors) {
|
|
22187
|
-
favoriteColors.triggerUpdate(colors);
|
|
22188
|
-
}
|
|
22186
|
+
const updateFavoriteColors = (colors) => favoriteColors.triggerUpdate(colors);
|
|
22189
22187
|
return {
|
|
22190
22188
|
pickerRef,
|
|
22191
|
-
|
|
22192
|
-
editingColor: api.editingColor,
|
|
22193
|
-
open: api.open,
|
|
22194
|
-
close: api.close,
|
|
22195
|
-
toggle: api.toggle,
|
|
22189
|
+
api,
|
|
22196
22190
|
favoriteColors: favoriteColors.listRef,
|
|
22197
22191
|
updateFavoriteColors,
|
|
22198
|
-
|
|
22192
|
+
contextWindow: ContextWindow.window
|
|
22199
22193
|
};
|
|
22200
22194
|
}
|
|
22201
22195
|
};
|
|
@@ -23283,102 +23277,6 @@ const AlignmentControl = /* @__PURE__ */ function() {
|
|
|
23283
23277
|
return __component__$d.exports;
|
|
23284
23278
|
}();
|
|
23285
23279
|
var render$c = function __render__33() {
|
|
23286
|
-
var _vm = this;
|
|
23287
|
-
var _h = _vm.$createElement;
|
|
23288
|
-
var _c = _vm._self._c || _h;
|
|
23289
|
-
return _c("div", {
|
|
23290
|
-
ref: "wrapperRef",
|
|
23291
|
-
staticClass: "zw-position--relative"
|
|
23292
|
-
}, [_c("Button", {
|
|
23293
|
-
directives: [{
|
|
23294
|
-
name: "tooltip",
|
|
23295
|
-
rawName: "v-tooltip",
|
|
23296
|
-
value: "Alignment",
|
|
23297
|
-
expression: "'Alignment'"
|
|
23298
|
-
}],
|
|
23299
|
-
attrs: {
|
|
23300
|
-
"icon": "",
|
|
23301
|
-
"skin": "toolbar",
|
|
23302
|
-
"active": _vm.isOpened
|
|
23303
|
-
},
|
|
23304
|
-
on: {
|
|
23305
|
-
"click": _vm.toggler.open
|
|
23306
|
-
}
|
|
23307
|
-
}, [_c("Icon", {
|
|
23308
|
-
attrs: {
|
|
23309
|
-
"name": _vm.icon,
|
|
23310
|
-
"size": "28px",
|
|
23311
|
-
"auto-color": ""
|
|
23312
|
-
}
|
|
23313
|
-
})], 1), _c("Modal", {
|
|
23314
|
-
ref: "modalRef",
|
|
23315
|
-
staticClass: "zw-alignment-control__modal",
|
|
23316
|
-
attrs: {
|
|
23317
|
-
"toggler": _vm.toggler
|
|
23318
|
-
}
|
|
23319
|
-
}, [_c("AlignmentControl", {
|
|
23320
|
-
staticClass: "zw-alignment-control__toggle",
|
|
23321
|
-
on: {
|
|
23322
|
-
"applied": _vm.toggler.close
|
|
23323
|
-
}
|
|
23324
|
-
})], 1)], 1);
|
|
23325
|
-
};
|
|
23326
|
-
var staticRenderFns$c = [];
|
|
23327
|
-
const AlignmentDeviceControl_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23328
|
-
const __vue2_script$c = {
|
|
23329
|
-
name: "AlignmentDeviceControl",
|
|
23330
|
-
components: {
|
|
23331
|
-
Button,
|
|
23332
|
-
Icon,
|
|
23333
|
-
Modal,
|
|
23334
|
-
AlignmentControl
|
|
23335
|
-
},
|
|
23336
|
-
directives: {
|
|
23337
|
-
tooltip
|
|
23338
|
-
},
|
|
23339
|
-
setup() {
|
|
23340
|
-
const editor = inject(InjectionTokens$1.EDITOR);
|
|
23341
|
-
const currentValue = editor.commands.getAlignment();
|
|
23342
|
-
const wrapperRef = ref(null);
|
|
23343
|
-
const modalRef = ref(null);
|
|
23344
|
-
const toggler = useModalToggler({
|
|
23345
|
-
wrapperRef,
|
|
23346
|
-
modalRef
|
|
23347
|
-
});
|
|
23348
|
-
const icon = computed(() => {
|
|
23349
|
-
const name = unref(currentValue) || Alignments.LEFT;
|
|
23350
|
-
return `alignment-${name}`;
|
|
23351
|
-
});
|
|
23352
|
-
return {
|
|
23353
|
-
wrapperRef,
|
|
23354
|
-
modalRef,
|
|
23355
|
-
currentValue,
|
|
23356
|
-
icon,
|
|
23357
|
-
toggler,
|
|
23358
|
-
isOpened: toggler.isOpened
|
|
23359
|
-
};
|
|
23360
|
-
}
|
|
23361
|
-
};
|
|
23362
|
-
const __cssModules$c = {};
|
|
23363
|
-
var __component__$c = /* @__PURE__ */ normalizeComponent(
|
|
23364
|
-
__vue2_script$c,
|
|
23365
|
-
render$c,
|
|
23366
|
-
staticRenderFns$c,
|
|
23367
|
-
false,
|
|
23368
|
-
__vue2_injectStyles$c,
|
|
23369
|
-
"4aefb465",
|
|
23370
|
-
null,
|
|
23371
|
-
null
|
|
23372
|
-
);
|
|
23373
|
-
function __vue2_injectStyles$c(context) {
|
|
23374
|
-
for (let o in __cssModules$c) {
|
|
23375
|
-
this[o] = __cssModules$c[o];
|
|
23376
|
-
}
|
|
23377
|
-
}
|
|
23378
|
-
const AlignmentDeviceControl = /* @__PURE__ */ function() {
|
|
23379
|
-
return __component__$c.exports;
|
|
23380
|
-
}();
|
|
23381
|
-
var render$b = function __render__34() {
|
|
23382
23280
|
var _vm = this;
|
|
23383
23281
|
var _h = _vm.$createElement;
|
|
23384
23282
|
var _c = _vm._self._c || _h;
|
|
@@ -23461,9 +23359,9 @@ var render$b = function __render__34() {
|
|
|
23461
23359
|
}
|
|
23462
23360
|
})], 1)], 1)], 1);
|
|
23463
23361
|
};
|
|
23464
|
-
var staticRenderFns$
|
|
23362
|
+
var staticRenderFns$c = [];
|
|
23465
23363
|
const LineHeightControl_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23466
|
-
const __vue2_script$
|
|
23364
|
+
const __vue2_script$c = {
|
|
23467
23365
|
name: "LineHeightControl",
|
|
23468
23366
|
components: {
|
|
23469
23367
|
Range,
|
|
@@ -23495,26 +23393,26 @@ const __vue2_script$b = {
|
|
|
23495
23393
|
};
|
|
23496
23394
|
}
|
|
23497
23395
|
};
|
|
23498
|
-
const __cssModules$
|
|
23499
|
-
var __component__$
|
|
23500
|
-
__vue2_script$
|
|
23501
|
-
render$
|
|
23502
|
-
staticRenderFns$
|
|
23396
|
+
const __cssModules$c = {};
|
|
23397
|
+
var __component__$c = /* @__PURE__ */ normalizeComponent(
|
|
23398
|
+
__vue2_script$c,
|
|
23399
|
+
render$c,
|
|
23400
|
+
staticRenderFns$c,
|
|
23503
23401
|
false,
|
|
23504
|
-
__vue2_injectStyles$
|
|
23402
|
+
__vue2_injectStyles$c,
|
|
23505
23403
|
"2f58c40f",
|
|
23506
23404
|
null,
|
|
23507
23405
|
null
|
|
23508
23406
|
);
|
|
23509
|
-
function __vue2_injectStyles$
|
|
23510
|
-
for (let o in __cssModules$
|
|
23511
|
-
this[o] = __cssModules$
|
|
23407
|
+
function __vue2_injectStyles$c(context) {
|
|
23408
|
+
for (let o in __cssModules$c) {
|
|
23409
|
+
this[o] = __cssModules$c[o];
|
|
23512
23410
|
}
|
|
23513
23411
|
}
|
|
23514
23412
|
const LineHeightControl = /* @__PURE__ */ function() {
|
|
23515
|
-
return __component__$
|
|
23413
|
+
return __component__$c.exports;
|
|
23516
23414
|
}();
|
|
23517
|
-
var render$
|
|
23415
|
+
var render$b = function __render__34() {
|
|
23518
23416
|
var _vm = this;
|
|
23519
23417
|
var _h = _vm.$createElement;
|
|
23520
23418
|
var _c = _vm._self._c || _h;
|
|
@@ -23597,9 +23495,9 @@ var render$a = function __render__35() {
|
|
|
23597
23495
|
}])
|
|
23598
23496
|
})], 1);
|
|
23599
23497
|
};
|
|
23600
|
-
var staticRenderFns$
|
|
23498
|
+
var staticRenderFns$b = [];
|
|
23601
23499
|
const ListControl_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23602
|
-
const __vue2_script$
|
|
23500
|
+
const __vue2_script$b = {
|
|
23603
23501
|
name: "ListControl",
|
|
23604
23502
|
listTypes: ListTypes.values.map((type) => ({
|
|
23605
23503
|
id: type,
|
|
@@ -23637,26 +23535,26 @@ const __vue2_script$a = {
|
|
|
23637
23535
|
};
|
|
23638
23536
|
}
|
|
23639
23537
|
};
|
|
23640
|
-
const __cssModules$
|
|
23641
|
-
var __component__$
|
|
23642
|
-
__vue2_script$
|
|
23643
|
-
render$
|
|
23644
|
-
staticRenderFns$
|
|
23538
|
+
const __cssModules$b = {};
|
|
23539
|
+
var __component__$b = /* @__PURE__ */ normalizeComponent(
|
|
23540
|
+
__vue2_script$b,
|
|
23541
|
+
render$b,
|
|
23542
|
+
staticRenderFns$b,
|
|
23645
23543
|
false,
|
|
23646
|
-
__vue2_injectStyles$
|
|
23544
|
+
__vue2_injectStyles$b,
|
|
23647
23545
|
"2eeb2252",
|
|
23648
23546
|
null,
|
|
23649
23547
|
null
|
|
23650
23548
|
);
|
|
23651
|
-
function __vue2_injectStyles$
|
|
23652
|
-
for (let o in __cssModules$
|
|
23653
|
-
this[o] = __cssModules$
|
|
23549
|
+
function __vue2_injectStyles$b(context) {
|
|
23550
|
+
for (let o in __cssModules$b) {
|
|
23551
|
+
this[o] = __cssModules$b[o];
|
|
23654
23552
|
}
|
|
23655
23553
|
}
|
|
23656
23554
|
const ListControl = /* @__PURE__ */ function() {
|
|
23657
|
-
return __component__$
|
|
23555
|
+
return __component__$b.exports;
|
|
23658
23556
|
}();
|
|
23659
|
-
var render$
|
|
23557
|
+
var render$a = function __render__35() {
|
|
23660
23558
|
var _vm = this;
|
|
23661
23559
|
var _h = _vm.$createElement;
|
|
23662
23560
|
var _c = _vm._self._c || _h;
|
|
@@ -23682,8 +23580,8 @@ var render$9 = function __render__36() {
|
|
|
23682
23580
|
}
|
|
23683
23581
|
})], 1);
|
|
23684
23582
|
};
|
|
23685
|
-
var staticRenderFns$
|
|
23686
|
-
const __vue2_script$
|
|
23583
|
+
var staticRenderFns$a = [];
|
|
23584
|
+
const __vue2_script$a = {
|
|
23687
23585
|
name: "RemoveFormatControl",
|
|
23688
23586
|
components: {
|
|
23689
23587
|
Icon,
|
|
@@ -23698,24 +23596,24 @@ const __vue2_script$9 = {
|
|
|
23698
23596
|
return { apply: apply2 };
|
|
23699
23597
|
}
|
|
23700
23598
|
};
|
|
23701
|
-
const __cssModules$
|
|
23702
|
-
var __component__$
|
|
23703
|
-
__vue2_script$
|
|
23704
|
-
render$
|
|
23705
|
-
staticRenderFns$
|
|
23599
|
+
const __cssModules$a = {};
|
|
23600
|
+
var __component__$a = /* @__PURE__ */ normalizeComponent(
|
|
23601
|
+
__vue2_script$a,
|
|
23602
|
+
render$a,
|
|
23603
|
+
staticRenderFns$a,
|
|
23706
23604
|
false,
|
|
23707
|
-
__vue2_injectStyles$
|
|
23605
|
+
__vue2_injectStyles$a,
|
|
23708
23606
|
null,
|
|
23709
23607
|
null,
|
|
23710
23608
|
null
|
|
23711
23609
|
);
|
|
23712
|
-
function __vue2_injectStyles$
|
|
23713
|
-
for (let o in __cssModules$
|
|
23714
|
-
this[o] = __cssModules$
|
|
23610
|
+
function __vue2_injectStyles$a(context) {
|
|
23611
|
+
for (let o in __cssModules$a) {
|
|
23612
|
+
this[o] = __cssModules$a[o];
|
|
23715
23613
|
}
|
|
23716
23614
|
}
|
|
23717
23615
|
const RemoveFormatControl = /* @__PURE__ */ function() {
|
|
23718
|
-
return __component__$
|
|
23616
|
+
return __component__$a.exports;
|
|
23719
23617
|
}();
|
|
23720
23618
|
const RegExps = {
|
|
23721
23619
|
URL: /^(https:\/\/www\.|https:\/\/)?[a-z0-9]+([-.]{1}[a-z0-9]+)*\.[a-z]{2,100}(:[0-9]{1,5})?(\/.*)?$/i,
|
|
@@ -23723,7 +23621,7 @@ const RegExps = {
|
|
|
23723
23621
|
MAILTO_PROTOCOL: /^mailto:.+$/,
|
|
23724
23622
|
TEL_PROTOCOL: /^tel:.+$/
|
|
23725
23623
|
};
|
|
23726
|
-
var render$
|
|
23624
|
+
var render$9 = function __render__36() {
|
|
23727
23625
|
var _vm = this;
|
|
23728
23626
|
var _h = _vm.$createElement;
|
|
23729
23627
|
var _c = _vm._self._c || _h;
|
|
@@ -23749,9 +23647,9 @@ var render$8 = function __render__37() {
|
|
|
23749
23647
|
}
|
|
23750
23648
|
}), _vm._v(" Remove ")], 1)], 1);
|
|
23751
23649
|
};
|
|
23752
|
-
var staticRenderFns$
|
|
23650
|
+
var staticRenderFns$9 = [];
|
|
23753
23651
|
const LinkControlHeader_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23754
|
-
const __vue2_script$
|
|
23652
|
+
const __vue2_script$9 = {
|
|
23755
23653
|
name: "LinkControlHeader",
|
|
23756
23654
|
components: { Icon, Button },
|
|
23757
23655
|
setup(_, { emit }) {
|
|
@@ -23761,24 +23659,24 @@ const __vue2_script$8 = {
|
|
|
23761
23659
|
return { isLink, removeLink };
|
|
23762
23660
|
}
|
|
23763
23661
|
};
|
|
23764
|
-
const __cssModules$
|
|
23765
|
-
var __component__$
|
|
23766
|
-
__vue2_script$
|
|
23767
|
-
render$
|
|
23768
|
-
staticRenderFns$
|
|
23662
|
+
const __cssModules$9 = {};
|
|
23663
|
+
var __component__$9 = /* @__PURE__ */ normalizeComponent(
|
|
23664
|
+
__vue2_script$9,
|
|
23665
|
+
render$9,
|
|
23666
|
+
staticRenderFns$9,
|
|
23769
23667
|
false,
|
|
23770
|
-
__vue2_injectStyles$
|
|
23668
|
+
__vue2_injectStyles$9,
|
|
23771
23669
|
"0a0c67c1",
|
|
23772
23670
|
null,
|
|
23773
23671
|
null
|
|
23774
23672
|
);
|
|
23775
|
-
function __vue2_injectStyles$
|
|
23776
|
-
for (let o in __cssModules$
|
|
23777
|
-
this[o] = __cssModules$
|
|
23673
|
+
function __vue2_injectStyles$9(context) {
|
|
23674
|
+
for (let o in __cssModules$9) {
|
|
23675
|
+
this[o] = __cssModules$9[o];
|
|
23778
23676
|
}
|
|
23779
23677
|
}
|
|
23780
23678
|
const LinkControlHeader = /* @__PURE__ */ function() {
|
|
23781
|
-
return __component__$
|
|
23679
|
+
return __component__$9.exports;
|
|
23782
23680
|
}();
|
|
23783
23681
|
function useLink() {
|
|
23784
23682
|
const editor = inject(InjectionTokens$1.EDITOR);
|
|
@@ -23847,7 +23745,7 @@ function useLink() {
|
|
|
23847
23745
|
updateText
|
|
23848
23746
|
};
|
|
23849
23747
|
}
|
|
23850
|
-
var render$
|
|
23748
|
+
var render$8 = function __render__37() {
|
|
23851
23749
|
var _vm = this;
|
|
23852
23750
|
var _h = _vm.$createElement;
|
|
23853
23751
|
var _c = _vm._self._c || _h;
|
|
@@ -23880,8 +23778,8 @@ var render$7 = function __render__38() {
|
|
|
23880
23778
|
}])
|
|
23881
23779
|
})], 1);
|
|
23882
23780
|
};
|
|
23883
|
-
var staticRenderFns$
|
|
23884
|
-
const __vue2_script$
|
|
23781
|
+
var staticRenderFns$8 = [];
|
|
23782
|
+
const __vue2_script$8 = {
|
|
23885
23783
|
name: "LinkControlPageBlock",
|
|
23886
23784
|
components: { DropdownOption, Dropdown, FieldLabel },
|
|
23887
23785
|
props: {
|
|
@@ -23899,26 +23797,26 @@ const __vue2_script$7 = {
|
|
|
23899
23797
|
return { pageBlocks, applyBlock };
|
|
23900
23798
|
}
|
|
23901
23799
|
};
|
|
23902
|
-
const __cssModules$
|
|
23903
|
-
var __component__$
|
|
23904
|
-
__vue2_script$
|
|
23905
|
-
render$
|
|
23906
|
-
staticRenderFns$
|
|
23800
|
+
const __cssModules$8 = {};
|
|
23801
|
+
var __component__$8 = /* @__PURE__ */ normalizeComponent(
|
|
23802
|
+
__vue2_script$8,
|
|
23803
|
+
render$8,
|
|
23804
|
+
staticRenderFns$8,
|
|
23907
23805
|
false,
|
|
23908
|
-
__vue2_injectStyles$
|
|
23806
|
+
__vue2_injectStyles$8,
|
|
23909
23807
|
null,
|
|
23910
23808
|
null,
|
|
23911
23809
|
null
|
|
23912
23810
|
);
|
|
23913
|
-
function __vue2_injectStyles$
|
|
23914
|
-
for (let o in __cssModules$
|
|
23915
|
-
this[o] = __cssModules$
|
|
23811
|
+
function __vue2_injectStyles$8(context) {
|
|
23812
|
+
for (let o in __cssModules$8) {
|
|
23813
|
+
this[o] = __cssModules$8[o];
|
|
23916
23814
|
}
|
|
23917
23815
|
}
|
|
23918
23816
|
const LinkControlPageBlock = /* @__PURE__ */ function() {
|
|
23919
|
-
return __component__$
|
|
23817
|
+
return __component__$8.exports;
|
|
23920
23818
|
}();
|
|
23921
|
-
var render$
|
|
23819
|
+
var render$7 = function __render__38() {
|
|
23922
23820
|
var _vm = this;
|
|
23923
23821
|
var _h = _vm.$createElement;
|
|
23924
23822
|
var _c = _vm._self._c || _h;
|
|
@@ -23943,8 +23841,8 @@ var render$6 = function __render__39() {
|
|
|
23943
23841
|
}
|
|
23944
23842
|
})], 1);
|
|
23945
23843
|
};
|
|
23946
|
-
var staticRenderFns$
|
|
23947
|
-
const __vue2_script$
|
|
23844
|
+
var staticRenderFns$7 = [];
|
|
23845
|
+
const __vue2_script$7 = {
|
|
23948
23846
|
name: "LinkControlUrl",
|
|
23949
23847
|
components: { TextField, Checkbox },
|
|
23950
23848
|
props: {
|
|
@@ -23967,26 +23865,26 @@ const __vue2_script$6 = {
|
|
|
23967
23865
|
return { updateLink, updateTarget };
|
|
23968
23866
|
}
|
|
23969
23867
|
};
|
|
23970
|
-
const __cssModules$
|
|
23971
|
-
var __component__$
|
|
23972
|
-
__vue2_script$
|
|
23973
|
-
render$
|
|
23974
|
-
staticRenderFns$
|
|
23868
|
+
const __cssModules$7 = {};
|
|
23869
|
+
var __component__$7 = /* @__PURE__ */ normalizeComponent(
|
|
23870
|
+
__vue2_script$7,
|
|
23871
|
+
render$7,
|
|
23872
|
+
staticRenderFns$7,
|
|
23975
23873
|
false,
|
|
23976
|
-
__vue2_injectStyles$
|
|
23874
|
+
__vue2_injectStyles$7,
|
|
23977
23875
|
null,
|
|
23978
23876
|
null,
|
|
23979
23877
|
null
|
|
23980
23878
|
);
|
|
23981
|
-
function __vue2_injectStyles$
|
|
23982
|
-
for (let o in __cssModules$
|
|
23983
|
-
this[o] = __cssModules$
|
|
23879
|
+
function __vue2_injectStyles$7(context) {
|
|
23880
|
+
for (let o in __cssModules$7) {
|
|
23881
|
+
this[o] = __cssModules$7[o];
|
|
23984
23882
|
}
|
|
23985
23883
|
}
|
|
23986
23884
|
const LinkControlUrl = /* @__PURE__ */ function() {
|
|
23987
|
-
return __component__$
|
|
23885
|
+
return __component__$7.exports;
|
|
23988
23886
|
}();
|
|
23989
|
-
var render$
|
|
23887
|
+
var render$6 = function __render__39() {
|
|
23990
23888
|
var _vm = this;
|
|
23991
23889
|
var _h = _vm.$createElement;
|
|
23992
23890
|
var _c = _vm._self._c || _h;
|
|
@@ -24035,8 +23933,8 @@ var render$5 = function __render__40() {
|
|
|
24035
23933
|
}
|
|
24036
23934
|
})], 1);
|
|
24037
23935
|
};
|
|
24038
|
-
var staticRenderFns$
|
|
24039
|
-
const __vue2_script$
|
|
23936
|
+
var staticRenderFns$6 = [];
|
|
23937
|
+
const __vue2_script$6 = {
|
|
24040
23938
|
name: "LinkControlDestination",
|
|
24041
23939
|
destinationTypes: [
|
|
24042
23940
|
{ id: LinkDestinations.URL, title: "URL" },
|
|
@@ -24082,26 +23980,26 @@ const __vue2_script$5 = {
|
|
|
24082
23980
|
};
|
|
24083
23981
|
}
|
|
24084
23982
|
};
|
|
24085
|
-
const __cssModules$
|
|
24086
|
-
var __component__$
|
|
24087
|
-
__vue2_script$
|
|
24088
|
-
render$
|
|
24089
|
-
staticRenderFns$
|
|
23983
|
+
const __cssModules$6 = {};
|
|
23984
|
+
var __component__$6 = /* @__PURE__ */ normalizeComponent(
|
|
23985
|
+
__vue2_script$6,
|
|
23986
|
+
render$6,
|
|
23987
|
+
staticRenderFns$6,
|
|
24090
23988
|
false,
|
|
24091
|
-
__vue2_injectStyles$
|
|
23989
|
+
__vue2_injectStyles$6,
|
|
24092
23990
|
null,
|
|
24093
23991
|
null,
|
|
24094
23992
|
null
|
|
24095
23993
|
);
|
|
24096
|
-
function __vue2_injectStyles$
|
|
24097
|
-
for (let o in __cssModules$
|
|
24098
|
-
this[o] = __cssModules$
|
|
23994
|
+
function __vue2_injectStyles$6(context) {
|
|
23995
|
+
for (let o in __cssModules$6) {
|
|
23996
|
+
this[o] = __cssModules$6[o];
|
|
24099
23997
|
}
|
|
24100
23998
|
}
|
|
24101
23999
|
const LinkControlDestination = /* @__PURE__ */ function() {
|
|
24102
|
-
return __component__$
|
|
24000
|
+
return __component__$6.exports;
|
|
24103
24001
|
}();
|
|
24104
|
-
var render$
|
|
24002
|
+
var render$5 = function __render__40() {
|
|
24105
24003
|
var _vm = this;
|
|
24106
24004
|
var _h = _vm.$createElement;
|
|
24107
24005
|
var _c = _vm._self._c || _h;
|
|
@@ -24188,9 +24086,9 @@ var render$4 = function __render__41() {
|
|
|
24188
24086
|
}
|
|
24189
24087
|
}, [_vm._v(" Save ")])], 1)], 1)], 1)], 1);
|
|
24190
24088
|
};
|
|
24191
|
-
var staticRenderFns$
|
|
24089
|
+
var staticRenderFns$5 = [];
|
|
24192
24090
|
const LinkControl_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
24193
|
-
const __vue2_script$
|
|
24091
|
+
const __vue2_script$5 = {
|
|
24194
24092
|
name: "LinkControl",
|
|
24195
24093
|
components: {
|
|
24196
24094
|
LinkControlDestination,
|
|
@@ -24277,6 +24175,92 @@ const __vue2_script$4 = {
|
|
|
24277
24175
|
};
|
|
24278
24176
|
}
|
|
24279
24177
|
};
|
|
24178
|
+
const __cssModules$5 = {};
|
|
24179
|
+
var __component__$5 = /* @__PURE__ */ normalizeComponent(
|
|
24180
|
+
__vue2_script$5,
|
|
24181
|
+
render$5,
|
|
24182
|
+
staticRenderFns$5,
|
|
24183
|
+
false,
|
|
24184
|
+
__vue2_injectStyles$5,
|
|
24185
|
+
"eea2f92a",
|
|
24186
|
+
null,
|
|
24187
|
+
null
|
|
24188
|
+
);
|
|
24189
|
+
function __vue2_injectStyles$5(context) {
|
|
24190
|
+
for (let o in __cssModules$5) {
|
|
24191
|
+
this[o] = __cssModules$5[o];
|
|
24192
|
+
}
|
|
24193
|
+
}
|
|
24194
|
+
const LinkControl = /* @__PURE__ */ function() {
|
|
24195
|
+
return __component__$5.exports;
|
|
24196
|
+
}();
|
|
24197
|
+
var render$4 = function __render__41() {
|
|
24198
|
+
var _vm = this;
|
|
24199
|
+
var _h = _vm.$createElement;
|
|
24200
|
+
var _c = _vm._self._c || _h;
|
|
24201
|
+
return _c("div", [_c("ToolbarRow", [_c("StylePresetControl"), _c("ToolbarDivider", {
|
|
24202
|
+
attrs: {
|
|
24203
|
+
"vertical": ""
|
|
24204
|
+
}
|
|
24205
|
+
}), _c("FontFamilyControl"), _c("ToolbarDivider", {
|
|
24206
|
+
attrs: {
|
|
24207
|
+
"vertical": ""
|
|
24208
|
+
}
|
|
24209
|
+
}), _c("FontWeightControl"), _c("ToolbarDivider", {
|
|
24210
|
+
attrs: {
|
|
24211
|
+
"vertical": ""
|
|
24212
|
+
}
|
|
24213
|
+
}), _c("FontSizeControl"), _c("ToolbarDivider", {
|
|
24214
|
+
attrs: {
|
|
24215
|
+
"vertical": ""
|
|
24216
|
+
}
|
|
24217
|
+
}), _c("ToolbarGroup", [_c("FontColorControl"), _c("BackgroundColorControl")], 1)], 1), _c("ToolbarDivider", {
|
|
24218
|
+
attrs: {
|
|
24219
|
+
"horizontal": ""
|
|
24220
|
+
}
|
|
24221
|
+
}), _c("ToolbarRow", [_c("ToolbarGroup", [_c("ItalicControl"), _c("UnderlineControl"), _c("StrikeThroughControl"), _c("SuperscriptControl"), _c("CaseStyleControl")], 1), _c("ToolbarDivider", {
|
|
24222
|
+
attrs: {
|
|
24223
|
+
"vertical": ""
|
|
24224
|
+
}
|
|
24225
|
+
}), _c("AlignmentControl"), _c("ToolbarDivider", {
|
|
24226
|
+
attrs: {
|
|
24227
|
+
"vertical": ""
|
|
24228
|
+
}
|
|
24229
|
+
}), _c("LineHeightControl"), _c("ToolbarDivider", {
|
|
24230
|
+
attrs: {
|
|
24231
|
+
"vertical": ""
|
|
24232
|
+
}
|
|
24233
|
+
}), _c("ListControl"), _c("ToolbarDivider", {
|
|
24234
|
+
attrs: {
|
|
24235
|
+
"vertical": ""
|
|
24236
|
+
}
|
|
24237
|
+
}), _c("ToolbarGroup", [_c("LinkControl"), _c("RemoveFormatControl")], 1)], 1)], 1);
|
|
24238
|
+
};
|
|
24239
|
+
var staticRenderFns$4 = [];
|
|
24240
|
+
const __vue2_script$4 = {
|
|
24241
|
+
name: "ToolbarDesktop",
|
|
24242
|
+
components: {
|
|
24243
|
+
ToolbarRow,
|
|
24244
|
+
ToolbarGroup,
|
|
24245
|
+
ToolbarDivider,
|
|
24246
|
+
StylePresetControl,
|
|
24247
|
+
CaseStyleControl,
|
|
24248
|
+
FontFamilyControl,
|
|
24249
|
+
FontWeightControl,
|
|
24250
|
+
FontSizeControl,
|
|
24251
|
+
FontColorControl,
|
|
24252
|
+
BackgroundColorControl,
|
|
24253
|
+
ItalicControl,
|
|
24254
|
+
UnderlineControl,
|
|
24255
|
+
SuperscriptControl,
|
|
24256
|
+
StrikeThroughControl,
|
|
24257
|
+
AlignmentControl,
|
|
24258
|
+
LineHeightControl,
|
|
24259
|
+
ListControl,
|
|
24260
|
+
RemoveFormatControl,
|
|
24261
|
+
LinkControl
|
|
24262
|
+
}
|
|
24263
|
+
};
|
|
24280
24264
|
const __cssModules$4 = {};
|
|
24281
24265
|
var __component__$4 = /* @__PURE__ */ normalizeComponent(
|
|
24282
24266
|
__vue2_script$4,
|
|
@@ -24284,7 +24268,7 @@ var __component__$4 = /* @__PURE__ */ normalizeComponent(
|
|
|
24284
24268
|
staticRenderFns$4,
|
|
24285
24269
|
false,
|
|
24286
24270
|
__vue2_injectStyles$4,
|
|
24287
|
-
|
|
24271
|
+
null,
|
|
24288
24272
|
null,
|
|
24289
24273
|
null
|
|
24290
24274
|
);
|
|
@@ -24293,7 +24277,7 @@ function __vue2_injectStyles$4(context) {
|
|
|
24293
24277
|
this[o] = __cssModules$4[o];
|
|
24294
24278
|
}
|
|
24295
24279
|
}
|
|
24296
|
-
const
|
|
24280
|
+
const ToolbarDesktop = /* @__PURE__ */ function() {
|
|
24297
24281
|
return __component__$4.exports;
|
|
24298
24282
|
}();
|
|
24299
24283
|
var render$3 = function __render__42() {
|
|
@@ -24308,43 +24292,39 @@ var render$3 = function __render__42() {
|
|
|
24308
24292
|
attrs: {
|
|
24309
24293
|
"vertical": ""
|
|
24310
24294
|
}
|
|
24311
|
-
}), _c("FontWeightControl"), _c("ToolbarDivider", {
|
|
24295
|
+
}), _c("FontWeightControl")], 1), _c("ToolbarDivider", {
|
|
24312
24296
|
attrs: {
|
|
24313
|
-
"
|
|
24297
|
+
"horizontal": ""
|
|
24314
24298
|
}
|
|
24315
|
-
}), _c("FontSizeControl"), _c("ToolbarDivider", {
|
|
24299
|
+
}), _c("ToolbarRow", [_c("FontSizeControl"), _c("ToolbarDivider", {
|
|
24316
24300
|
attrs: {
|
|
24317
24301
|
"vertical": ""
|
|
24318
24302
|
}
|
|
24319
|
-
}), _c("ToolbarGroup", [_c("FontColorControl"), _c("BackgroundColorControl")], 1),
|
|
24303
|
+
}), _c("ToolbarGroup", [_c("FontColorControl"), _c("BackgroundColorControl")], 1), _c("ToolbarDivider", {
|
|
24320
24304
|
attrs: {
|
|
24321
24305
|
"vertical": ""
|
|
24322
24306
|
}
|
|
24323
|
-
}), _c("ToolbarGroup", [_c("ItalicControl"), _c("UnderlineControl"), _c("StrikeThroughControl"), _c("SuperscriptControl"), _c("CaseStyleControl")], 1)]
|
|
24307
|
+
}), _c("ToolbarGroup", [_c("ItalicControl"), _c("UnderlineControl"), _c("StrikeThroughControl"), _c("SuperscriptControl"), _c("CaseStyleControl")], 1)], 1), _c("ToolbarDivider", {
|
|
24324
24308
|
attrs: {
|
|
24325
24309
|
"horizontal": ""
|
|
24326
24310
|
}
|
|
24327
|
-
}), _c("ToolbarRow", [
|
|
24311
|
+
}), _c("ToolbarRow", [_c("AlignmentControl"), _c("ToolbarDivider", {
|
|
24328
24312
|
attrs: {
|
|
24329
24313
|
"vertical": ""
|
|
24330
24314
|
}
|
|
24331
|
-
})
|
|
24315
|
+
}), _c("LineHeightControl"), _c("ToolbarDivider", {
|
|
24332
24316
|
attrs: {
|
|
24333
24317
|
"vertical": ""
|
|
24334
24318
|
}
|
|
24335
|
-
}), _c("
|
|
24319
|
+
}), _c("ListControl"), _c("ToolbarDivider", {
|
|
24336
24320
|
attrs: {
|
|
24337
24321
|
"vertical": ""
|
|
24338
24322
|
}
|
|
24339
|
-
}), _c("ToolbarGroup", [_c("
|
|
24340
|
-
attrs: {
|
|
24341
|
-
"vertical": ""
|
|
24342
|
-
}
|
|
24343
|
-
}), _c("ToolbarGroup", [_c("LinkControl"), _c("RemoveFormatControl")], 1)], 2)], 1);
|
|
24323
|
+
}), _c("ToolbarGroup", [_c("LinkControl"), _c("RemoveFormatControl")], 1)], 1)], 1);
|
|
24344
24324
|
};
|
|
24345
24325
|
var staticRenderFns$3 = [];
|
|
24346
24326
|
const __vue2_script$3 = {
|
|
24347
|
-
name: "
|
|
24327
|
+
name: "ToolbarMobile",
|
|
24348
24328
|
components: {
|
|
24349
24329
|
ToolbarRow,
|
|
24350
24330
|
ToolbarGroup,
|
|
@@ -24365,10 +24345,6 @@ const __vue2_script$3 = {
|
|
|
24365
24345
|
ListControl,
|
|
24366
24346
|
RemoveFormatControl,
|
|
24367
24347
|
LinkControl
|
|
24368
|
-
},
|
|
24369
|
-
setup() {
|
|
24370
|
-
const isPopupMode = inject(InjectionTokens$1.POPUP_MODE);
|
|
24371
|
-
return { isPopupMode };
|
|
24372
24348
|
}
|
|
24373
24349
|
};
|
|
24374
24350
|
const __cssModules$3 = {};
|
|
@@ -24387,18 +24363,22 @@ function __vue2_injectStyles$3(context) {
|
|
|
24387
24363
|
this[o] = __cssModules$3[o];
|
|
24388
24364
|
}
|
|
24389
24365
|
}
|
|
24390
|
-
const
|
|
24366
|
+
const ToolbarMobile = /* @__PURE__ */ function() {
|
|
24391
24367
|
return __component__$3.exports;
|
|
24392
24368
|
}();
|
|
24393
24369
|
var render$2 = function __render__43() {
|
|
24394
24370
|
var _vm = this;
|
|
24395
24371
|
var _h = _vm.$createElement;
|
|
24396
24372
|
var _c = _vm._self._c || _h;
|
|
24397
|
-
return _c("ToolbarRow", [_c("StylePresetControl"), _c("ToolbarDivider", {
|
|
24373
|
+
return _c("div", [_c("ToolbarRow", [_c("StylePresetControl"), _c("ToolbarDivider", {
|
|
24398
24374
|
attrs: {
|
|
24399
24375
|
"vertical": ""
|
|
24400
24376
|
}
|
|
24401
|
-
}), _c("
|
|
24377
|
+
}), _c("FontFamilyControl"), _c("ToolbarDivider", {
|
|
24378
|
+
attrs: {
|
|
24379
|
+
"vertical": ""
|
|
24380
|
+
}
|
|
24381
|
+
}), _c("FontWeightControl"), _c("ToolbarDivider", {
|
|
24402
24382
|
attrs: {
|
|
24403
24383
|
"vertical": ""
|
|
24404
24384
|
}
|
|
@@ -24406,18 +24386,51 @@ var render$2 = function __render__43() {
|
|
|
24406
24386
|
attrs: {
|
|
24407
24387
|
"vertical": ""
|
|
24408
24388
|
}
|
|
24409
|
-
}), _c("
|
|
24389
|
+
}), _c("ToolbarGroup", [_c("FontColorControl"), _c("BackgroundColorControl")], 1), _c("ToolbarDivider", {
|
|
24390
|
+
attrs: {
|
|
24391
|
+
"vertical": ""
|
|
24392
|
+
}
|
|
24393
|
+
}), _c("ToolbarGroup", [_c("ItalicControl"), _c("UnderlineControl"), _c("StrikeThroughControl"), _c("SuperscriptControl"), _c("CaseStyleControl")], 1)], 1), _c("ToolbarDivider", {
|
|
24394
|
+
attrs: {
|
|
24395
|
+
"horizontal": ""
|
|
24396
|
+
}
|
|
24397
|
+
}), _c("ToolbarRow", [_c("AlignmentControl"), _c("ToolbarDivider", {
|
|
24398
|
+
attrs: {
|
|
24399
|
+
"vertical": ""
|
|
24400
|
+
}
|
|
24401
|
+
}), _c("LineHeightControl"), _c("ToolbarDivider", {
|
|
24402
|
+
attrs: {
|
|
24403
|
+
"vertical": ""
|
|
24404
|
+
}
|
|
24405
|
+
}), _c("ListControl"), _c("ToolbarDivider", {
|
|
24406
|
+
attrs: {
|
|
24407
|
+
"vertical": ""
|
|
24408
|
+
}
|
|
24409
|
+
}), _c("ToolbarGroup", [_c("LinkControl"), _c("RemoveFormatControl")], 1)], 1)], 1);
|
|
24410
24410
|
};
|
|
24411
24411
|
var staticRenderFns$2 = [];
|
|
24412
24412
|
const __vue2_script$2 = {
|
|
24413
|
-
name: "
|
|
24413
|
+
name: "ToolbarPopup",
|
|
24414
24414
|
components: {
|
|
24415
24415
|
ToolbarRow,
|
|
24416
|
+
ToolbarGroup,
|
|
24416
24417
|
ToolbarDivider,
|
|
24417
24418
|
StylePresetControl,
|
|
24418
|
-
|
|
24419
|
+
CaseStyleControl,
|
|
24420
|
+
FontFamilyControl,
|
|
24421
|
+
FontWeightControl,
|
|
24419
24422
|
FontSizeControl,
|
|
24420
|
-
|
|
24423
|
+
FontColorControl,
|
|
24424
|
+
BackgroundColorControl,
|
|
24425
|
+
ItalicControl,
|
|
24426
|
+
UnderlineControl,
|
|
24427
|
+
SuperscriptControl,
|
|
24428
|
+
StrikeThroughControl,
|
|
24429
|
+
AlignmentControl,
|
|
24430
|
+
LineHeightControl,
|
|
24431
|
+
ListControl,
|
|
24432
|
+
RemoveFormatControl,
|
|
24433
|
+
LinkControl
|
|
24421
24434
|
}
|
|
24422
24435
|
};
|
|
24423
24436
|
const __cssModules$2 = {};
|
|
@@ -24436,7 +24449,7 @@ function __vue2_injectStyles$2(context) {
|
|
|
24436
24449
|
this[o] = __cssModules$2[o];
|
|
24437
24450
|
}
|
|
24438
24451
|
}
|
|
24439
|
-
const
|
|
24452
|
+
const ToolbarPopup = /* @__PURE__ */ function() {
|
|
24440
24453
|
return __component__$2.exports;
|
|
24441
24454
|
}();
|
|
24442
24455
|
var render$1 = function __render__44() {
|
|
@@ -24452,7 +24465,7 @@ var render$1 = function __render__44() {
|
|
|
24452
24465
|
ref: "toolbarRef",
|
|
24453
24466
|
staticClass: "zw-toolbar",
|
|
24454
24467
|
style: _vm.toolbarStyles
|
|
24455
|
-
}, [_c(_vm.
|
|
24468
|
+
}, [_c(_vm.layoutComponent, {
|
|
24456
24469
|
tag: "component"
|
|
24457
24470
|
})], 1) : _vm._e()])], 1);
|
|
24458
24471
|
};
|
|
@@ -24468,11 +24481,17 @@ const __vue2_script$1 = {
|
|
|
24468
24481
|
toolbar: {
|
|
24469
24482
|
type: Object,
|
|
24470
24483
|
required: true
|
|
24484
|
+
},
|
|
24485
|
+
popupMode: {
|
|
24486
|
+
type: Boolean,
|
|
24487
|
+
required: true
|
|
24471
24488
|
}
|
|
24472
24489
|
},
|
|
24473
24490
|
setup(props) {
|
|
24474
|
-
const
|
|
24475
|
-
|
|
24491
|
+
const layoutComponent = computed(() => {
|
|
24492
|
+
if (props.popupMode)
|
|
24493
|
+
return ToolbarPopup;
|
|
24494
|
+
return props.device === Devices.MOBILE ? ToolbarMobile : ToolbarDesktop;
|
|
24476
24495
|
});
|
|
24477
24496
|
const isVisible = computed(() => props.toolbar.isActiveRef.value);
|
|
24478
24497
|
const toolbarRef = ref(null);
|
|
@@ -24483,7 +24502,7 @@ const __vue2_script$1 = {
|
|
|
24483
24502
|
"--zw-toolbar-offset-y": `${props.toolbar.offsets[1]}px`
|
|
24484
24503
|
}));
|
|
24485
24504
|
return {
|
|
24486
|
-
|
|
24505
|
+
layoutComponent,
|
|
24487
24506
|
isVisible,
|
|
24488
24507
|
toolbarRef,
|
|
24489
24508
|
toolbarStyles
|
|
@@ -24497,7 +24516,7 @@ var __component__$1 = /* @__PURE__ */ normalizeComponent(
|
|
|
24497
24516
|
staticRenderFns$1,
|
|
24498
24517
|
false,
|
|
24499
24518
|
__vue2_injectStyles$1,
|
|
24500
|
-
"
|
|
24519
|
+
"3ceb232a",
|
|
24501
24520
|
null,
|
|
24502
24521
|
null
|
|
24503
24522
|
);
|
|
@@ -27921,7 +27940,8 @@ var render = function __render__45() {
|
|
|
27921
27940
|
ref: "toolbarRef",
|
|
27922
27941
|
attrs: {
|
|
27923
27942
|
"toolbar": _vm.toolbar,
|
|
27924
|
-
"device": _vm.device
|
|
27943
|
+
"device": _vm.device,
|
|
27944
|
+
"popup-mode": _vm.popupMode
|
|
27925
27945
|
}
|
|
27926
27946
|
}), _c("EditorContent", {
|
|
27927
27947
|
attrs: {
|
|
@@ -28076,7 +28096,6 @@ const __vue2_script = {
|
|
|
28076
28096
|
provide(InjectionTokens$1.LOCAL_STORAGE, new Storage(localStorage));
|
|
28077
28097
|
provide(InjectionTokens$1.FAVORITE_COLORS, favoriteColors);
|
|
28078
28098
|
provide(InjectionTokens$1.PAGE_BLOCKS, pageBlocks);
|
|
28079
|
-
provide(InjectionTokens$1.POPUP_MODE, props.popupMode);
|
|
28080
28099
|
return {
|
|
28081
28100
|
editor,
|
|
28082
28101
|
toolbarRef,
|