@zipify/wysiwyg 2.5.5 → 2.5.6
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/cli.js +1 -1
- package/dist/wysiwyg.css +19 -26
- package/dist/wysiwyg.mjs +294 -270
- package/lib/Wysiwyg.vue +1 -1
- 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 +1 -1
- 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
|
@@ -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;
|
|
@@ -23278,102 +23277,6 @@ const AlignmentControl = /* @__PURE__ */ function() {
|
|
|
23278
23277
|
return __component__$d.exports;
|
|
23279
23278
|
}();
|
|
23280
23279
|
var render$c = function __render__33() {
|
|
23281
|
-
var _vm = this;
|
|
23282
|
-
var _h = _vm.$createElement;
|
|
23283
|
-
var _c = _vm._self._c || _h;
|
|
23284
|
-
return _c("div", {
|
|
23285
|
-
ref: "wrapperRef",
|
|
23286
|
-
staticClass: "zw-position--relative"
|
|
23287
|
-
}, [_c("Button", {
|
|
23288
|
-
directives: [{
|
|
23289
|
-
name: "tooltip",
|
|
23290
|
-
rawName: "v-tooltip",
|
|
23291
|
-
value: "Alignment",
|
|
23292
|
-
expression: "'Alignment'"
|
|
23293
|
-
}],
|
|
23294
|
-
attrs: {
|
|
23295
|
-
"icon": "",
|
|
23296
|
-
"skin": "toolbar",
|
|
23297
|
-
"active": _vm.isOpened
|
|
23298
|
-
},
|
|
23299
|
-
on: {
|
|
23300
|
-
"click": _vm.toggler.open
|
|
23301
|
-
}
|
|
23302
|
-
}, [_c("Icon", {
|
|
23303
|
-
attrs: {
|
|
23304
|
-
"name": _vm.icon,
|
|
23305
|
-
"size": "28px",
|
|
23306
|
-
"auto-color": ""
|
|
23307
|
-
}
|
|
23308
|
-
})], 1), _c("Modal", {
|
|
23309
|
-
ref: "modalRef",
|
|
23310
|
-
staticClass: "zw-alignment-control__modal",
|
|
23311
|
-
attrs: {
|
|
23312
|
-
"toggler": _vm.toggler
|
|
23313
|
-
}
|
|
23314
|
-
}, [_c("AlignmentControl", {
|
|
23315
|
-
staticClass: "zw-alignment-control__toggle",
|
|
23316
|
-
on: {
|
|
23317
|
-
"applied": _vm.toggler.close
|
|
23318
|
-
}
|
|
23319
|
-
})], 1)], 1);
|
|
23320
|
-
};
|
|
23321
|
-
var staticRenderFns$c = [];
|
|
23322
|
-
const AlignmentDeviceControl_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23323
|
-
const __vue2_script$c = {
|
|
23324
|
-
name: "AlignmentDeviceControl",
|
|
23325
|
-
components: {
|
|
23326
|
-
Button,
|
|
23327
|
-
Icon,
|
|
23328
|
-
Modal,
|
|
23329
|
-
AlignmentControl
|
|
23330
|
-
},
|
|
23331
|
-
directives: {
|
|
23332
|
-
tooltip
|
|
23333
|
-
},
|
|
23334
|
-
setup() {
|
|
23335
|
-
const editor = inject(InjectionTokens$1.EDITOR);
|
|
23336
|
-
const currentValue = editor.commands.getAlignment();
|
|
23337
|
-
const wrapperRef = ref(null);
|
|
23338
|
-
const modalRef = ref(null);
|
|
23339
|
-
const toggler = useModalToggler({
|
|
23340
|
-
wrapperRef,
|
|
23341
|
-
modalRef
|
|
23342
|
-
});
|
|
23343
|
-
const icon = computed(() => {
|
|
23344
|
-
const name = unref(currentValue) || Alignments.LEFT;
|
|
23345
|
-
return `alignment-${name}`;
|
|
23346
|
-
});
|
|
23347
|
-
return {
|
|
23348
|
-
wrapperRef,
|
|
23349
|
-
modalRef,
|
|
23350
|
-
currentValue,
|
|
23351
|
-
icon,
|
|
23352
|
-
toggler,
|
|
23353
|
-
isOpened: toggler.isOpened
|
|
23354
|
-
};
|
|
23355
|
-
}
|
|
23356
|
-
};
|
|
23357
|
-
const __cssModules$c = {};
|
|
23358
|
-
var __component__$c = /* @__PURE__ */ normalizeComponent(
|
|
23359
|
-
__vue2_script$c,
|
|
23360
|
-
render$c,
|
|
23361
|
-
staticRenderFns$c,
|
|
23362
|
-
false,
|
|
23363
|
-
__vue2_injectStyles$c,
|
|
23364
|
-
"4aefb465",
|
|
23365
|
-
null,
|
|
23366
|
-
null
|
|
23367
|
-
);
|
|
23368
|
-
function __vue2_injectStyles$c(context) {
|
|
23369
|
-
for (let o in __cssModules$c) {
|
|
23370
|
-
this[o] = __cssModules$c[o];
|
|
23371
|
-
}
|
|
23372
|
-
}
|
|
23373
|
-
const AlignmentDeviceControl = /* @__PURE__ */ function() {
|
|
23374
|
-
return __component__$c.exports;
|
|
23375
|
-
}();
|
|
23376
|
-
var render$b = function __render__34() {
|
|
23377
23280
|
var _vm = this;
|
|
23378
23281
|
var _h = _vm.$createElement;
|
|
23379
23282
|
var _c = _vm._self._c || _h;
|
|
@@ -23456,9 +23359,9 @@ var render$b = function __render__34() {
|
|
|
23456
23359
|
}
|
|
23457
23360
|
})], 1)], 1)], 1);
|
|
23458
23361
|
};
|
|
23459
|
-
var staticRenderFns$
|
|
23362
|
+
var staticRenderFns$c = [];
|
|
23460
23363
|
const LineHeightControl_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23461
|
-
const __vue2_script$
|
|
23364
|
+
const __vue2_script$c = {
|
|
23462
23365
|
name: "LineHeightControl",
|
|
23463
23366
|
components: {
|
|
23464
23367
|
Range,
|
|
@@ -23490,26 +23393,26 @@ const __vue2_script$b = {
|
|
|
23490
23393
|
};
|
|
23491
23394
|
}
|
|
23492
23395
|
};
|
|
23493
|
-
const __cssModules$
|
|
23494
|
-
var __component__$
|
|
23495
|
-
__vue2_script$
|
|
23496
|
-
render$
|
|
23497
|
-
staticRenderFns$
|
|
23396
|
+
const __cssModules$c = {};
|
|
23397
|
+
var __component__$c = /* @__PURE__ */ normalizeComponent(
|
|
23398
|
+
__vue2_script$c,
|
|
23399
|
+
render$c,
|
|
23400
|
+
staticRenderFns$c,
|
|
23498
23401
|
false,
|
|
23499
|
-
__vue2_injectStyles$
|
|
23402
|
+
__vue2_injectStyles$c,
|
|
23500
23403
|
"2f58c40f",
|
|
23501
23404
|
null,
|
|
23502
23405
|
null
|
|
23503
23406
|
);
|
|
23504
|
-
function __vue2_injectStyles$
|
|
23505
|
-
for (let o in __cssModules$
|
|
23506
|
-
this[o] = __cssModules$
|
|
23407
|
+
function __vue2_injectStyles$c(context) {
|
|
23408
|
+
for (let o in __cssModules$c) {
|
|
23409
|
+
this[o] = __cssModules$c[o];
|
|
23507
23410
|
}
|
|
23508
23411
|
}
|
|
23509
23412
|
const LineHeightControl = /* @__PURE__ */ function() {
|
|
23510
|
-
return __component__$
|
|
23413
|
+
return __component__$c.exports;
|
|
23511
23414
|
}();
|
|
23512
|
-
var render$
|
|
23415
|
+
var render$b = function __render__34() {
|
|
23513
23416
|
var _vm = this;
|
|
23514
23417
|
var _h = _vm.$createElement;
|
|
23515
23418
|
var _c = _vm._self._c || _h;
|
|
@@ -23592,9 +23495,9 @@ var render$a = function __render__35() {
|
|
|
23592
23495
|
}])
|
|
23593
23496
|
})], 1);
|
|
23594
23497
|
};
|
|
23595
|
-
var staticRenderFns$
|
|
23498
|
+
var staticRenderFns$b = [];
|
|
23596
23499
|
const ListControl_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23597
|
-
const __vue2_script$
|
|
23500
|
+
const __vue2_script$b = {
|
|
23598
23501
|
name: "ListControl",
|
|
23599
23502
|
listTypes: ListTypes.values.map((type) => ({
|
|
23600
23503
|
id: type,
|
|
@@ -23632,26 +23535,26 @@ const __vue2_script$a = {
|
|
|
23632
23535
|
};
|
|
23633
23536
|
}
|
|
23634
23537
|
};
|
|
23635
|
-
const __cssModules$
|
|
23636
|
-
var __component__$
|
|
23637
|
-
__vue2_script$
|
|
23638
|
-
render$
|
|
23639
|
-
staticRenderFns$
|
|
23538
|
+
const __cssModules$b = {};
|
|
23539
|
+
var __component__$b = /* @__PURE__ */ normalizeComponent(
|
|
23540
|
+
__vue2_script$b,
|
|
23541
|
+
render$b,
|
|
23542
|
+
staticRenderFns$b,
|
|
23640
23543
|
false,
|
|
23641
|
-
__vue2_injectStyles$
|
|
23544
|
+
__vue2_injectStyles$b,
|
|
23642
23545
|
"2eeb2252",
|
|
23643
23546
|
null,
|
|
23644
23547
|
null
|
|
23645
23548
|
);
|
|
23646
|
-
function __vue2_injectStyles$
|
|
23647
|
-
for (let o in __cssModules$
|
|
23648
|
-
this[o] = __cssModules$
|
|
23549
|
+
function __vue2_injectStyles$b(context) {
|
|
23550
|
+
for (let o in __cssModules$b) {
|
|
23551
|
+
this[o] = __cssModules$b[o];
|
|
23649
23552
|
}
|
|
23650
23553
|
}
|
|
23651
23554
|
const ListControl = /* @__PURE__ */ function() {
|
|
23652
|
-
return __component__$
|
|
23555
|
+
return __component__$b.exports;
|
|
23653
23556
|
}();
|
|
23654
|
-
var render$
|
|
23557
|
+
var render$a = function __render__35() {
|
|
23655
23558
|
var _vm = this;
|
|
23656
23559
|
var _h = _vm.$createElement;
|
|
23657
23560
|
var _c = _vm._self._c || _h;
|
|
@@ -23677,8 +23580,8 @@ var render$9 = function __render__36() {
|
|
|
23677
23580
|
}
|
|
23678
23581
|
})], 1);
|
|
23679
23582
|
};
|
|
23680
|
-
var staticRenderFns$
|
|
23681
|
-
const __vue2_script$
|
|
23583
|
+
var staticRenderFns$a = [];
|
|
23584
|
+
const __vue2_script$a = {
|
|
23682
23585
|
name: "RemoveFormatControl",
|
|
23683
23586
|
components: {
|
|
23684
23587
|
Icon,
|
|
@@ -23693,24 +23596,24 @@ const __vue2_script$9 = {
|
|
|
23693
23596
|
return { apply: apply2 };
|
|
23694
23597
|
}
|
|
23695
23598
|
};
|
|
23696
|
-
const __cssModules$
|
|
23697
|
-
var __component__$
|
|
23698
|
-
__vue2_script$
|
|
23699
|
-
render$
|
|
23700
|
-
staticRenderFns$
|
|
23599
|
+
const __cssModules$a = {};
|
|
23600
|
+
var __component__$a = /* @__PURE__ */ normalizeComponent(
|
|
23601
|
+
__vue2_script$a,
|
|
23602
|
+
render$a,
|
|
23603
|
+
staticRenderFns$a,
|
|
23701
23604
|
false,
|
|
23702
|
-
__vue2_injectStyles$
|
|
23605
|
+
__vue2_injectStyles$a,
|
|
23703
23606
|
null,
|
|
23704
23607
|
null,
|
|
23705
23608
|
null
|
|
23706
23609
|
);
|
|
23707
|
-
function __vue2_injectStyles$
|
|
23708
|
-
for (let o in __cssModules$
|
|
23709
|
-
this[o] = __cssModules$
|
|
23610
|
+
function __vue2_injectStyles$a(context) {
|
|
23611
|
+
for (let o in __cssModules$a) {
|
|
23612
|
+
this[o] = __cssModules$a[o];
|
|
23710
23613
|
}
|
|
23711
23614
|
}
|
|
23712
23615
|
const RemoveFormatControl = /* @__PURE__ */ function() {
|
|
23713
|
-
return __component__$
|
|
23616
|
+
return __component__$a.exports;
|
|
23714
23617
|
}();
|
|
23715
23618
|
const RegExps = {
|
|
23716
23619
|
URL: /^(https:\/\/www\.|https:\/\/)?[a-z0-9]+([-.]{1}[a-z0-9]+)*\.[a-z]{2,100}(:[0-9]{1,5})?(\/.*)?$/i,
|
|
@@ -23718,7 +23621,7 @@ const RegExps = {
|
|
|
23718
23621
|
MAILTO_PROTOCOL: /^mailto:.+$/,
|
|
23719
23622
|
TEL_PROTOCOL: /^tel:.+$/
|
|
23720
23623
|
};
|
|
23721
|
-
var render$
|
|
23624
|
+
var render$9 = function __render__36() {
|
|
23722
23625
|
var _vm = this;
|
|
23723
23626
|
var _h = _vm.$createElement;
|
|
23724
23627
|
var _c = _vm._self._c || _h;
|
|
@@ -23744,9 +23647,9 @@ var render$8 = function __render__37() {
|
|
|
23744
23647
|
}
|
|
23745
23648
|
}), _vm._v(" Remove ")], 1)], 1);
|
|
23746
23649
|
};
|
|
23747
|
-
var staticRenderFns$
|
|
23650
|
+
var staticRenderFns$9 = [];
|
|
23748
23651
|
const LinkControlHeader_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23749
|
-
const __vue2_script$
|
|
23652
|
+
const __vue2_script$9 = {
|
|
23750
23653
|
name: "LinkControlHeader",
|
|
23751
23654
|
components: { Icon, Button },
|
|
23752
23655
|
setup(_, { emit }) {
|
|
@@ -23756,24 +23659,24 @@ const __vue2_script$8 = {
|
|
|
23756
23659
|
return { isLink, removeLink };
|
|
23757
23660
|
}
|
|
23758
23661
|
};
|
|
23759
|
-
const __cssModules$
|
|
23760
|
-
var __component__$
|
|
23761
|
-
__vue2_script$
|
|
23762
|
-
render$
|
|
23763
|
-
staticRenderFns$
|
|
23662
|
+
const __cssModules$9 = {};
|
|
23663
|
+
var __component__$9 = /* @__PURE__ */ normalizeComponent(
|
|
23664
|
+
__vue2_script$9,
|
|
23665
|
+
render$9,
|
|
23666
|
+
staticRenderFns$9,
|
|
23764
23667
|
false,
|
|
23765
|
-
__vue2_injectStyles$
|
|
23668
|
+
__vue2_injectStyles$9,
|
|
23766
23669
|
"0a0c67c1",
|
|
23767
23670
|
null,
|
|
23768
23671
|
null
|
|
23769
23672
|
);
|
|
23770
|
-
function __vue2_injectStyles$
|
|
23771
|
-
for (let o in __cssModules$
|
|
23772
|
-
this[o] = __cssModules$
|
|
23673
|
+
function __vue2_injectStyles$9(context) {
|
|
23674
|
+
for (let o in __cssModules$9) {
|
|
23675
|
+
this[o] = __cssModules$9[o];
|
|
23773
23676
|
}
|
|
23774
23677
|
}
|
|
23775
23678
|
const LinkControlHeader = /* @__PURE__ */ function() {
|
|
23776
|
-
return __component__$
|
|
23679
|
+
return __component__$9.exports;
|
|
23777
23680
|
}();
|
|
23778
23681
|
function useLink() {
|
|
23779
23682
|
const editor = inject(InjectionTokens$1.EDITOR);
|
|
@@ -23842,7 +23745,7 @@ function useLink() {
|
|
|
23842
23745
|
updateText
|
|
23843
23746
|
};
|
|
23844
23747
|
}
|
|
23845
|
-
var render$
|
|
23748
|
+
var render$8 = function __render__37() {
|
|
23846
23749
|
var _vm = this;
|
|
23847
23750
|
var _h = _vm.$createElement;
|
|
23848
23751
|
var _c = _vm._self._c || _h;
|
|
@@ -23875,8 +23778,8 @@ var render$7 = function __render__38() {
|
|
|
23875
23778
|
}])
|
|
23876
23779
|
})], 1);
|
|
23877
23780
|
};
|
|
23878
|
-
var staticRenderFns$
|
|
23879
|
-
const __vue2_script$
|
|
23781
|
+
var staticRenderFns$8 = [];
|
|
23782
|
+
const __vue2_script$8 = {
|
|
23880
23783
|
name: "LinkControlPageBlock",
|
|
23881
23784
|
components: { DropdownOption, Dropdown, FieldLabel },
|
|
23882
23785
|
props: {
|
|
@@ -23894,26 +23797,26 @@ const __vue2_script$7 = {
|
|
|
23894
23797
|
return { pageBlocks, applyBlock };
|
|
23895
23798
|
}
|
|
23896
23799
|
};
|
|
23897
|
-
const __cssModules$
|
|
23898
|
-
var __component__$
|
|
23899
|
-
__vue2_script$
|
|
23900
|
-
render$
|
|
23901
|
-
staticRenderFns$
|
|
23800
|
+
const __cssModules$8 = {};
|
|
23801
|
+
var __component__$8 = /* @__PURE__ */ normalizeComponent(
|
|
23802
|
+
__vue2_script$8,
|
|
23803
|
+
render$8,
|
|
23804
|
+
staticRenderFns$8,
|
|
23902
23805
|
false,
|
|
23903
|
-
__vue2_injectStyles$
|
|
23806
|
+
__vue2_injectStyles$8,
|
|
23904
23807
|
null,
|
|
23905
23808
|
null,
|
|
23906
23809
|
null
|
|
23907
23810
|
);
|
|
23908
|
-
function __vue2_injectStyles$
|
|
23909
|
-
for (let o in __cssModules$
|
|
23910
|
-
this[o] = __cssModules$
|
|
23811
|
+
function __vue2_injectStyles$8(context) {
|
|
23812
|
+
for (let o in __cssModules$8) {
|
|
23813
|
+
this[o] = __cssModules$8[o];
|
|
23911
23814
|
}
|
|
23912
23815
|
}
|
|
23913
23816
|
const LinkControlPageBlock = /* @__PURE__ */ function() {
|
|
23914
|
-
return __component__$
|
|
23817
|
+
return __component__$8.exports;
|
|
23915
23818
|
}();
|
|
23916
|
-
var render$
|
|
23819
|
+
var render$7 = function __render__38() {
|
|
23917
23820
|
var _vm = this;
|
|
23918
23821
|
var _h = _vm.$createElement;
|
|
23919
23822
|
var _c = _vm._self._c || _h;
|
|
@@ -23938,8 +23841,8 @@ var render$6 = function __render__39() {
|
|
|
23938
23841
|
}
|
|
23939
23842
|
})], 1);
|
|
23940
23843
|
};
|
|
23941
|
-
var staticRenderFns$
|
|
23942
|
-
const __vue2_script$
|
|
23844
|
+
var staticRenderFns$7 = [];
|
|
23845
|
+
const __vue2_script$7 = {
|
|
23943
23846
|
name: "LinkControlUrl",
|
|
23944
23847
|
components: { TextField, Checkbox },
|
|
23945
23848
|
props: {
|
|
@@ -23962,26 +23865,26 @@ const __vue2_script$6 = {
|
|
|
23962
23865
|
return { updateLink, updateTarget };
|
|
23963
23866
|
}
|
|
23964
23867
|
};
|
|
23965
|
-
const __cssModules$
|
|
23966
|
-
var __component__$
|
|
23967
|
-
__vue2_script$
|
|
23968
|
-
render$
|
|
23969
|
-
staticRenderFns$
|
|
23868
|
+
const __cssModules$7 = {};
|
|
23869
|
+
var __component__$7 = /* @__PURE__ */ normalizeComponent(
|
|
23870
|
+
__vue2_script$7,
|
|
23871
|
+
render$7,
|
|
23872
|
+
staticRenderFns$7,
|
|
23970
23873
|
false,
|
|
23971
|
-
__vue2_injectStyles$
|
|
23874
|
+
__vue2_injectStyles$7,
|
|
23972
23875
|
null,
|
|
23973
23876
|
null,
|
|
23974
23877
|
null
|
|
23975
23878
|
);
|
|
23976
|
-
function __vue2_injectStyles$
|
|
23977
|
-
for (let o in __cssModules$
|
|
23978
|
-
this[o] = __cssModules$
|
|
23879
|
+
function __vue2_injectStyles$7(context) {
|
|
23880
|
+
for (let o in __cssModules$7) {
|
|
23881
|
+
this[o] = __cssModules$7[o];
|
|
23979
23882
|
}
|
|
23980
23883
|
}
|
|
23981
23884
|
const LinkControlUrl = /* @__PURE__ */ function() {
|
|
23982
|
-
return __component__$
|
|
23885
|
+
return __component__$7.exports;
|
|
23983
23886
|
}();
|
|
23984
|
-
var render$
|
|
23887
|
+
var render$6 = function __render__39() {
|
|
23985
23888
|
var _vm = this;
|
|
23986
23889
|
var _h = _vm.$createElement;
|
|
23987
23890
|
var _c = _vm._self._c || _h;
|
|
@@ -24030,8 +23933,8 @@ var render$5 = function __render__40() {
|
|
|
24030
23933
|
}
|
|
24031
23934
|
})], 1);
|
|
24032
23935
|
};
|
|
24033
|
-
var staticRenderFns$
|
|
24034
|
-
const __vue2_script$
|
|
23936
|
+
var staticRenderFns$6 = [];
|
|
23937
|
+
const __vue2_script$6 = {
|
|
24035
23938
|
name: "LinkControlDestination",
|
|
24036
23939
|
destinationTypes: [
|
|
24037
23940
|
{ id: LinkDestinations.URL, title: "URL" },
|
|
@@ -24077,26 +23980,26 @@ const __vue2_script$5 = {
|
|
|
24077
23980
|
};
|
|
24078
23981
|
}
|
|
24079
23982
|
};
|
|
24080
|
-
const __cssModules$
|
|
24081
|
-
var __component__$
|
|
24082
|
-
__vue2_script$
|
|
24083
|
-
render$
|
|
24084
|
-
staticRenderFns$
|
|
23983
|
+
const __cssModules$6 = {};
|
|
23984
|
+
var __component__$6 = /* @__PURE__ */ normalizeComponent(
|
|
23985
|
+
__vue2_script$6,
|
|
23986
|
+
render$6,
|
|
23987
|
+
staticRenderFns$6,
|
|
24085
23988
|
false,
|
|
24086
|
-
__vue2_injectStyles$
|
|
23989
|
+
__vue2_injectStyles$6,
|
|
24087
23990
|
null,
|
|
24088
23991
|
null,
|
|
24089
23992
|
null
|
|
24090
23993
|
);
|
|
24091
|
-
function __vue2_injectStyles$
|
|
24092
|
-
for (let o in __cssModules$
|
|
24093
|
-
this[o] = __cssModules$
|
|
23994
|
+
function __vue2_injectStyles$6(context) {
|
|
23995
|
+
for (let o in __cssModules$6) {
|
|
23996
|
+
this[o] = __cssModules$6[o];
|
|
24094
23997
|
}
|
|
24095
23998
|
}
|
|
24096
23999
|
const LinkControlDestination = /* @__PURE__ */ function() {
|
|
24097
|
-
return __component__$
|
|
24000
|
+
return __component__$6.exports;
|
|
24098
24001
|
}();
|
|
24099
|
-
var render$
|
|
24002
|
+
var render$5 = function __render__40() {
|
|
24100
24003
|
var _vm = this;
|
|
24101
24004
|
var _h = _vm.$createElement;
|
|
24102
24005
|
var _c = _vm._self._c || _h;
|
|
@@ -24183,9 +24086,9 @@ var render$4 = function __render__41() {
|
|
|
24183
24086
|
}
|
|
24184
24087
|
}, [_vm._v(" Save ")])], 1)], 1)], 1)], 1);
|
|
24185
24088
|
};
|
|
24186
|
-
var staticRenderFns$
|
|
24089
|
+
var staticRenderFns$5 = [];
|
|
24187
24090
|
const LinkControl_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
24188
|
-
const __vue2_script$
|
|
24091
|
+
const __vue2_script$5 = {
|
|
24189
24092
|
name: "LinkControl",
|
|
24190
24093
|
components: {
|
|
24191
24094
|
LinkControlDestination,
|
|
@@ -24272,6 +24175,92 @@ const __vue2_script$4 = {
|
|
|
24272
24175
|
};
|
|
24273
24176
|
}
|
|
24274
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
|
+
};
|
|
24275
24264
|
const __cssModules$4 = {};
|
|
24276
24265
|
var __component__$4 = /* @__PURE__ */ normalizeComponent(
|
|
24277
24266
|
__vue2_script$4,
|
|
@@ -24279,7 +24268,7 @@ var __component__$4 = /* @__PURE__ */ normalizeComponent(
|
|
|
24279
24268
|
staticRenderFns$4,
|
|
24280
24269
|
false,
|
|
24281
24270
|
__vue2_injectStyles$4,
|
|
24282
|
-
|
|
24271
|
+
null,
|
|
24283
24272
|
null,
|
|
24284
24273
|
null
|
|
24285
24274
|
);
|
|
@@ -24288,7 +24277,7 @@ function __vue2_injectStyles$4(context) {
|
|
|
24288
24277
|
this[o] = __cssModules$4[o];
|
|
24289
24278
|
}
|
|
24290
24279
|
}
|
|
24291
|
-
const
|
|
24280
|
+
const ToolbarDesktop = /* @__PURE__ */ function() {
|
|
24292
24281
|
return __component__$4.exports;
|
|
24293
24282
|
}();
|
|
24294
24283
|
var render$3 = function __render__42() {
|
|
@@ -24303,43 +24292,39 @@ var render$3 = function __render__42() {
|
|
|
24303
24292
|
attrs: {
|
|
24304
24293
|
"vertical": ""
|
|
24305
24294
|
}
|
|
24306
|
-
}), _c("FontWeightControl"), _c("ToolbarDivider", {
|
|
24295
|
+
}), _c("FontWeightControl")], 1), _c("ToolbarDivider", {
|
|
24307
24296
|
attrs: {
|
|
24308
|
-
"
|
|
24297
|
+
"horizontal": ""
|
|
24309
24298
|
}
|
|
24310
|
-
}), _c("FontSizeControl"), _c("ToolbarDivider", {
|
|
24299
|
+
}), _c("ToolbarRow", [_c("FontSizeControl"), _c("ToolbarDivider", {
|
|
24311
24300
|
attrs: {
|
|
24312
24301
|
"vertical": ""
|
|
24313
24302
|
}
|
|
24314
|
-
}), _c("ToolbarGroup", [_c("FontColorControl"), _c("BackgroundColorControl")], 1),
|
|
24303
|
+
}), _c("ToolbarGroup", [_c("FontColorControl"), _c("BackgroundColorControl")], 1), _c("ToolbarDivider", {
|
|
24315
24304
|
attrs: {
|
|
24316
24305
|
"vertical": ""
|
|
24317
24306
|
}
|
|
24318
|
-
}), _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", {
|
|
24319
24308
|
attrs: {
|
|
24320
24309
|
"horizontal": ""
|
|
24321
24310
|
}
|
|
24322
|
-
}), _c("ToolbarRow", [
|
|
24323
|
-
attrs: {
|
|
24324
|
-
"vertical": ""
|
|
24325
|
-
}
|
|
24326
|
-
})] : _vm._e(), _c("AlignmentControl"), _c("ToolbarDivider", {
|
|
24311
|
+
}), _c("ToolbarRow", [_c("AlignmentControl"), _c("ToolbarDivider", {
|
|
24327
24312
|
attrs: {
|
|
24328
24313
|
"vertical": ""
|
|
24329
24314
|
}
|
|
24330
|
-
}), _c("
|
|
24315
|
+
}), _c("LineHeightControl"), _c("ToolbarDivider", {
|
|
24331
24316
|
attrs: {
|
|
24332
24317
|
"vertical": ""
|
|
24333
24318
|
}
|
|
24334
|
-
}), _c("
|
|
24319
|
+
}), _c("ListControl"), _c("ToolbarDivider", {
|
|
24335
24320
|
attrs: {
|
|
24336
24321
|
"vertical": ""
|
|
24337
24322
|
}
|
|
24338
|
-
}), _c("ToolbarGroup", [_c("LinkControl"), _c("RemoveFormatControl")], 1)],
|
|
24323
|
+
}), _c("ToolbarGroup", [_c("LinkControl"), _c("RemoveFormatControl")], 1)], 1)], 1);
|
|
24339
24324
|
};
|
|
24340
24325
|
var staticRenderFns$3 = [];
|
|
24341
24326
|
const __vue2_script$3 = {
|
|
24342
|
-
name: "
|
|
24327
|
+
name: "ToolbarMobile",
|
|
24343
24328
|
components: {
|
|
24344
24329
|
ToolbarRow,
|
|
24345
24330
|
ToolbarGroup,
|
|
@@ -24360,10 +24345,6 @@ const __vue2_script$3 = {
|
|
|
24360
24345
|
ListControl,
|
|
24361
24346
|
RemoveFormatControl,
|
|
24362
24347
|
LinkControl
|
|
24363
|
-
},
|
|
24364
|
-
setup() {
|
|
24365
|
-
const isPopupMode = inject(InjectionTokens$1.POPUP_MODE);
|
|
24366
|
-
return { isPopupMode };
|
|
24367
24348
|
}
|
|
24368
24349
|
};
|
|
24369
24350
|
const __cssModules$3 = {};
|
|
@@ -24382,18 +24363,22 @@ function __vue2_injectStyles$3(context) {
|
|
|
24382
24363
|
this[o] = __cssModules$3[o];
|
|
24383
24364
|
}
|
|
24384
24365
|
}
|
|
24385
|
-
const
|
|
24366
|
+
const ToolbarMobile = /* @__PURE__ */ function() {
|
|
24386
24367
|
return __component__$3.exports;
|
|
24387
24368
|
}();
|
|
24388
24369
|
var render$2 = function __render__43() {
|
|
24389
24370
|
var _vm = this;
|
|
24390
24371
|
var _h = _vm.$createElement;
|
|
24391
24372
|
var _c = _vm._self._c || _h;
|
|
24392
|
-
return _c("ToolbarRow", [_c("StylePresetControl"), _c("ToolbarDivider", {
|
|
24373
|
+
return _c("div", [_c("ToolbarRow", [_c("StylePresetControl"), _c("ToolbarDivider", {
|
|
24393
24374
|
attrs: {
|
|
24394
24375
|
"vertical": ""
|
|
24395
24376
|
}
|
|
24396
|
-
}), _c("
|
|
24377
|
+
}), _c("FontFamilyControl"), _c("ToolbarDivider", {
|
|
24378
|
+
attrs: {
|
|
24379
|
+
"vertical": ""
|
|
24380
|
+
}
|
|
24381
|
+
}), _c("FontWeightControl"), _c("ToolbarDivider", {
|
|
24397
24382
|
attrs: {
|
|
24398
24383
|
"vertical": ""
|
|
24399
24384
|
}
|
|
@@ -24401,18 +24386,51 @@ var render$2 = function __render__43() {
|
|
|
24401
24386
|
attrs: {
|
|
24402
24387
|
"vertical": ""
|
|
24403
24388
|
}
|
|
24404
|
-
}), _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);
|
|
24405
24410
|
};
|
|
24406
24411
|
var staticRenderFns$2 = [];
|
|
24407
24412
|
const __vue2_script$2 = {
|
|
24408
|
-
name: "
|
|
24413
|
+
name: "ToolbarPopup",
|
|
24409
24414
|
components: {
|
|
24410
24415
|
ToolbarRow,
|
|
24416
|
+
ToolbarGroup,
|
|
24411
24417
|
ToolbarDivider,
|
|
24412
24418
|
StylePresetControl,
|
|
24413
|
-
|
|
24419
|
+
CaseStyleControl,
|
|
24420
|
+
FontFamilyControl,
|
|
24421
|
+
FontWeightControl,
|
|
24414
24422
|
FontSizeControl,
|
|
24415
|
-
|
|
24423
|
+
FontColorControl,
|
|
24424
|
+
BackgroundColorControl,
|
|
24425
|
+
ItalicControl,
|
|
24426
|
+
UnderlineControl,
|
|
24427
|
+
SuperscriptControl,
|
|
24428
|
+
StrikeThroughControl,
|
|
24429
|
+
AlignmentControl,
|
|
24430
|
+
LineHeightControl,
|
|
24431
|
+
ListControl,
|
|
24432
|
+
RemoveFormatControl,
|
|
24433
|
+
LinkControl
|
|
24416
24434
|
}
|
|
24417
24435
|
};
|
|
24418
24436
|
const __cssModules$2 = {};
|
|
@@ -24431,7 +24449,7 @@ function __vue2_injectStyles$2(context) {
|
|
|
24431
24449
|
this[o] = __cssModules$2[o];
|
|
24432
24450
|
}
|
|
24433
24451
|
}
|
|
24434
|
-
const
|
|
24452
|
+
const ToolbarPopup = /* @__PURE__ */ function() {
|
|
24435
24453
|
return __component__$2.exports;
|
|
24436
24454
|
}();
|
|
24437
24455
|
var render$1 = function __render__44() {
|
|
@@ -24447,7 +24465,7 @@ var render$1 = function __render__44() {
|
|
|
24447
24465
|
ref: "toolbarRef",
|
|
24448
24466
|
staticClass: "zw-toolbar",
|
|
24449
24467
|
style: _vm.toolbarStyles
|
|
24450
|
-
}, [_c(_vm.
|
|
24468
|
+
}, [_c(_vm.layoutComponent, {
|
|
24451
24469
|
tag: "component"
|
|
24452
24470
|
})], 1) : _vm._e()])], 1);
|
|
24453
24471
|
};
|
|
@@ -24463,11 +24481,17 @@ const __vue2_script$1 = {
|
|
|
24463
24481
|
toolbar: {
|
|
24464
24482
|
type: Object,
|
|
24465
24483
|
required: true
|
|
24484
|
+
},
|
|
24485
|
+
popupMode: {
|
|
24486
|
+
type: Boolean,
|
|
24487
|
+
required: true
|
|
24466
24488
|
}
|
|
24467
24489
|
},
|
|
24468
24490
|
setup(props) {
|
|
24469
|
-
const
|
|
24470
|
-
|
|
24491
|
+
const layoutComponent = computed(() => {
|
|
24492
|
+
if (props.popupMode)
|
|
24493
|
+
return ToolbarPopup;
|
|
24494
|
+
return props.device === Devices.MOBILE ? ToolbarMobile : ToolbarDesktop;
|
|
24471
24495
|
});
|
|
24472
24496
|
const isVisible = computed(() => props.toolbar.isActiveRef.value);
|
|
24473
24497
|
const toolbarRef = ref(null);
|
|
@@ -24478,7 +24502,7 @@ const __vue2_script$1 = {
|
|
|
24478
24502
|
"--zw-toolbar-offset-y": `${props.toolbar.offsets[1]}px`
|
|
24479
24503
|
}));
|
|
24480
24504
|
return {
|
|
24481
|
-
|
|
24505
|
+
layoutComponent,
|
|
24482
24506
|
isVisible,
|
|
24483
24507
|
toolbarRef,
|
|
24484
24508
|
toolbarStyles
|
|
@@ -24492,7 +24516,7 @@ var __component__$1 = /* @__PURE__ */ normalizeComponent(
|
|
|
24492
24516
|
staticRenderFns$1,
|
|
24493
24517
|
false,
|
|
24494
24518
|
__vue2_injectStyles$1,
|
|
24495
|
-
"
|
|
24519
|
+
"3ceb232a",
|
|
24496
24520
|
null,
|
|
24497
24521
|
null
|
|
24498
24522
|
);
|
|
@@ -27916,7 +27940,8 @@ var render = function __render__45() {
|
|
|
27916
27940
|
ref: "toolbarRef",
|
|
27917
27941
|
attrs: {
|
|
27918
27942
|
"toolbar": _vm.toolbar,
|
|
27919
|
-
"device": _vm.device
|
|
27943
|
+
"device": _vm.device,
|
|
27944
|
+
"popup-mode": _vm.popupMode
|
|
27920
27945
|
}
|
|
27921
27946
|
}), _c("EditorContent", {
|
|
27922
27947
|
attrs: {
|
|
@@ -28071,7 +28096,6 @@ const __vue2_script = {
|
|
|
28071
28096
|
provide(InjectionTokens$1.LOCAL_STORAGE, new Storage(localStorage));
|
|
28072
28097
|
provide(InjectionTokens$1.FAVORITE_COLORS, favoriteColors);
|
|
28073
28098
|
provide(InjectionTokens$1.PAGE_BLOCKS, pageBlocks);
|
|
28074
|
-
provide(InjectionTokens$1.POPUP_MODE, props.popupMode);
|
|
28075
28099
|
return {
|
|
28076
28100
|
editor,
|
|
28077
28101
|
toolbarRef,
|