imatrix-ui 2.8.97-dw-tmp1 → 2.8.97-dw-tmp3
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/lib/super-ui.common.1.js +368 -0
- package/lib/{super-ui.common.yarn.tinymce~8a52df3b.js → super-ui.common.2.js} +2 -2
- package/lib/super-ui.css +1 -0
- package/lib/super-ui.umd.1.js +368 -0
- package/lib/{super-ui.umd.yarn.tinymce~8a52df3b.js → super-ui.umd.2.js} +2 -2
- package/lib/super-ui.umd.min.1.js +2 -0
- package/lib/super-ui.umd.min.2.js +2 -0
- package/lib/super-ui.umd.min.js +15 -1
- package/package.json +8 -9
- package/src/plugins.js +1 -1
- package/lib/css/super-ui.common~46f24e9d.f712732a.css +0 -1
- package/lib/css/super-ui.common~60a56baa.e6f54088.css +0 -1
- package/lib/css/super-ui.common~691e02b5.3387eefb.css +0 -1
- package/lib/css/super-ui.common~e2e93592.e9ec19a9.css +0 -1
- package/lib/css/super-ui.umd.min~46f24e9d.f712732a.css +0 -1
- package/lib/css/super-ui.umd.min~60a56baa.e6f54088.css +0 -1
- package/lib/css/super-ui.umd.min~691e02b5.3387eefb.css +0 -1
- package/lib/css/super-ui.umd.min~e2e93592.e9ec19a9.css +0 -1
- package/lib/css/super-ui.umd~46f24e9d.f712732a.css +0 -1
- package/lib/css/super-ui.umd~60a56baa.e6f54088.css +0 -1
- package/lib/css/super-ui.umd~691e02b5.3387eefb.css +0 -1
- package/lib/css/super-ui.umd~e2e93592.e9ec19a9.css +0 -1
- package/lib/css/vendors~super-ui.common~253ae210.b57e4bfb.css +0 -1
- package/lib/css/vendors~super-ui.umd.min~253ae210.b57e4bfb.css +0 -1
- package/lib/css/vendors~super-ui.umd~253ae210.b57e4bfb.css +0 -1
- package/lib/css/yarn.tinymce~97d7b732.ea366551.css +0 -1
- package/lib/super-ui.common.super-ui.common~46f24e9d.js +0 -12446
- package/lib/super-ui.common.super-ui.common~60a56baa.js +0 -2774
- package/lib/super-ui.common.super-ui.common~691e02b5.js +0 -3062
- package/lib/super-ui.common.super-ui.common~970f9218.js +0 -3729
- package/lib/super-ui.common.super-ui.common~bd3594d6.js +0 -5264
- package/lib/super-ui.common.super-ui.common~e2e93592.js +0 -6945
- package/lib/super-ui.common.vendors~super-ui.common~253ae210.js +0 -3504
- package/lib/super-ui.common.yarn.async-validator~7864cd12.js +0 -1225
- package/lib/super-ui.common.yarn.core-js~2b13b260.js +0 -7542
- package/lib/super-ui.common.yarn.gcommon~c5c7b9b4.js +0 -11
- package/lib/super-ui.common.yarn.gcommon~cd278a5f.js +0 -4846
- package/lib/super-ui.common.yarn.resize-observer-polyfill~7370204d.js +0 -942
- package/lib/super-ui.common.yarn.sortablejs~f811d8fd.js +0 -3714
- package/lib/super-ui.common.yarn.tinymce~253ae210.js +0 -568
- package/lib/super-ui.common.yarn.tinymce~29bc5d46.js +0 -2125
- package/lib/super-ui.common.yarn.tinymce~35f50c21.js +0 -34090
- package/lib/super-ui.common.yarn.tinymce~97d7b732.js +0 -31
- package/lib/super-ui.common.yarn.tinymce~b5d80f29.js +0 -7936
- package/lib/super-ui.common.yarn.tinymce~c1068939.js +0 -13346
- package/lib/super-ui.common.yarn.vue-i18n~02576867.js +0 -2179
- package/lib/super-ui.common.yarn.vue-virtual-scroll-list~bd67cfcd.js +0 -1069
- package/lib/super-ui.common.yarn.zxing~3446ce64.js +0 -11996
- package/lib/super-ui.common.yarn.zxing~61a1471b.js +0 -11202
- package/lib/super-ui.common.yarn.zxing~b49f3034.js +0 -3576
- package/lib/super-ui.common.yarn.zxing~fd3cc9f3.js +0 -2916
- package/lib/super-ui.umd.min.super-ui.umd.min~46f24e9d.js +0 -2
- package/lib/super-ui.umd.min.super-ui.umd.min~60a56baa.js +0 -2
- package/lib/super-ui.umd.min.super-ui.umd.min~691e02b5.js +0 -2
- package/lib/super-ui.umd.min.super-ui.umd.min~970f9218.js +0 -2
- package/lib/super-ui.umd.min.super-ui.umd.min~bd3594d6.js +0 -2
- package/lib/super-ui.umd.min.super-ui.umd.min~e2e93592.js +0 -2
- package/lib/super-ui.umd.min.vendors~super-ui.umd.min~253ae210.js +0 -24
- package/lib/super-ui.umd.min.yarn.async-validator~7864cd12.js +0 -2
- package/lib/super-ui.umd.min.yarn.core-js~2b13b260.js +0 -2
- package/lib/super-ui.umd.min.yarn.gcommon~c5c7b9b4.js +0 -2
- package/lib/super-ui.umd.min.yarn.gcommon~cd278a5f.js +0 -26
- package/lib/super-ui.umd.min.yarn.resize-observer-polyfill~7370204d.js +0 -2
- package/lib/super-ui.umd.min.yarn.sortablejs~f811d8fd.js +0 -8
- package/lib/super-ui.umd.min.yarn.tinymce~253ae210.js +0 -2
- package/lib/super-ui.umd.min.yarn.tinymce~29bc5d46.js +0 -2
- package/lib/super-ui.umd.min.yarn.tinymce~35f50c21.js +0 -2
- package/lib/super-ui.umd.min.yarn.tinymce~8a52df3b.js +0 -2
- package/lib/super-ui.umd.min.yarn.tinymce~97d7b732.js +0 -2
- package/lib/super-ui.umd.min.yarn.tinymce~b5d80f29.js +0 -2
- package/lib/super-ui.umd.min.yarn.tinymce~c1068939.js +0 -2
- package/lib/super-ui.umd.min.yarn.vue-i18n~02576867.js +0 -7
- package/lib/super-ui.umd.min.yarn.vue-virtual-scroll-list~bd67cfcd.js +0 -8
- package/lib/super-ui.umd.min.yarn.zxing~3446ce64.js +0 -2
- package/lib/super-ui.umd.min.yarn.zxing~61a1471b.js +0 -2
- package/lib/super-ui.umd.min.yarn.zxing~b49f3034.js +0 -2
- package/lib/super-ui.umd.min.yarn.zxing~fd3cc9f3.js +0 -2
- package/lib/super-ui.umd.super-ui.umd~46f24e9d.js +0 -12446
- package/lib/super-ui.umd.super-ui.umd~60a56baa.js +0 -2774
- package/lib/super-ui.umd.super-ui.umd~691e02b5.js +0 -3062
- package/lib/super-ui.umd.super-ui.umd~970f9218.js +0 -3739
- package/lib/super-ui.umd.super-ui.umd~bd3594d6.js +0 -5264
- package/lib/super-ui.umd.super-ui.umd~e2e93592.js +0 -6945
- package/lib/super-ui.umd.vendors~super-ui.umd~253ae210.js +0 -3504
- package/lib/super-ui.umd.yarn.async-validator~7864cd12.js +0 -1225
- package/lib/super-ui.umd.yarn.core-js~2b13b260.js +0 -7542
- package/lib/super-ui.umd.yarn.gcommon~c5c7b9b4.js +0 -11
- package/lib/super-ui.umd.yarn.gcommon~cd278a5f.js +0 -4846
- package/lib/super-ui.umd.yarn.resize-observer-polyfill~7370204d.js +0 -942
- package/lib/super-ui.umd.yarn.sortablejs~f811d8fd.js +0 -3714
- package/lib/super-ui.umd.yarn.tinymce~253ae210.js +0 -568
- package/lib/super-ui.umd.yarn.tinymce~29bc5d46.js +0 -2125
- package/lib/super-ui.umd.yarn.tinymce~35f50c21.js +0 -34090
- package/lib/super-ui.umd.yarn.tinymce~97d7b732.js +0 -31
- package/lib/super-ui.umd.yarn.tinymce~b5d80f29.js +0 -7936
- package/lib/super-ui.umd.yarn.tinymce~c1068939.js +0 -13346
- package/lib/super-ui.umd.yarn.vue-i18n~02576867.js +0 -2179
- package/lib/super-ui.umd.yarn.vue-virtual-scroll-list~bd67cfcd.js +0 -1069
- package/lib/super-ui.umd.yarn.zxing~3446ce64.js +0 -11996
- package/lib/super-ui.umd.yarn.zxing~61a1471b.js +0 -11202
- package/lib/super-ui.umd.yarn.zxing~b49f3034.js +0 -3576
- package/lib/super-ui.umd.yarn.zxing~fd3cc9f3.js +0 -2916
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
((typeof self !== 'undefined' ? self : this)["webpackJsonpsuper_ui"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpsuper_ui"] || []).push([[1],{
|
|
2
|
+
|
|
3
|
+
/***/ "c4a9":
|
|
4
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getTinymce; });
|
|
8
|
+
/**
|
|
9
|
+
* Copyright (c) 2018-present, Ephox, Inc.
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the Apache 2 license found in the
|
|
12
|
+
* LICENSE file in the root directory of this source tree.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
var getGlobal = function () { return (typeof window !== 'undefined' ? window : global); };
|
|
16
|
+
var getTinymce = function () {
|
|
17
|
+
var global = getGlobal();
|
|
18
|
+
return global && global.tinymce ? global.tinymce : null;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
|
|
23
|
+
|
|
24
|
+
/***/ }),
|
|
25
|
+
|
|
26
|
+
/***/ "ca72":
|
|
27
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
28
|
+
|
|
29
|
+
"use strict";
|
|
30
|
+
__webpack_require__.r(__webpack_exports__);
|
|
31
|
+
|
|
32
|
+
// CONCATENATED MODULE: ./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/Utils.js
|
|
33
|
+
/**
|
|
34
|
+
* Copyright (c) 2018-present, Ephox, Inc.
|
|
35
|
+
*
|
|
36
|
+
* This source code is licensed under the Apache 2 license found in the
|
|
37
|
+
* LICENSE file in the root directory of this source tree.
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
var validEvents = [
|
|
41
|
+
'onActivate',
|
|
42
|
+
'onAddUndo',
|
|
43
|
+
'onBeforeAddUndo',
|
|
44
|
+
'onBeforeExecCommand',
|
|
45
|
+
'onBeforeGetContent',
|
|
46
|
+
'onBeforeRenderUI',
|
|
47
|
+
'onBeforeSetContent',
|
|
48
|
+
'onBeforePaste',
|
|
49
|
+
'onBlur',
|
|
50
|
+
'onChange',
|
|
51
|
+
'onClearUndos',
|
|
52
|
+
'onClick',
|
|
53
|
+
'onContextMenu',
|
|
54
|
+
'onCopy',
|
|
55
|
+
'onCut',
|
|
56
|
+
'onDblclick',
|
|
57
|
+
'onDeactivate',
|
|
58
|
+
'onDirty',
|
|
59
|
+
'onDrag',
|
|
60
|
+
'onDragDrop',
|
|
61
|
+
'onDragEnd',
|
|
62
|
+
'onDragGesture',
|
|
63
|
+
'onDragOver',
|
|
64
|
+
'onDrop',
|
|
65
|
+
'onExecCommand',
|
|
66
|
+
'onFocus',
|
|
67
|
+
'onFocusIn',
|
|
68
|
+
'onFocusOut',
|
|
69
|
+
'onGetContent',
|
|
70
|
+
'onHide',
|
|
71
|
+
'onInit',
|
|
72
|
+
'onKeyDown',
|
|
73
|
+
'onKeyPress',
|
|
74
|
+
'onKeyUp',
|
|
75
|
+
'onLoadContent',
|
|
76
|
+
'onMouseDown',
|
|
77
|
+
'onMouseEnter',
|
|
78
|
+
'onMouseLeave',
|
|
79
|
+
'onMouseMove',
|
|
80
|
+
'onMouseOut',
|
|
81
|
+
'onMouseOver',
|
|
82
|
+
'onMouseUp',
|
|
83
|
+
'onNodeChange',
|
|
84
|
+
'onObjectResizeStart',
|
|
85
|
+
'onObjectResized',
|
|
86
|
+
'onObjectSelected',
|
|
87
|
+
'onPaste',
|
|
88
|
+
'onPostProcess',
|
|
89
|
+
'onPostRender',
|
|
90
|
+
'onPreProcess',
|
|
91
|
+
'onProgressState',
|
|
92
|
+
'onRedo',
|
|
93
|
+
'onRemove',
|
|
94
|
+
'onReset',
|
|
95
|
+
'onSaveContent',
|
|
96
|
+
'onSelectionChange',
|
|
97
|
+
'onSetAttrib',
|
|
98
|
+
'onSetContent',
|
|
99
|
+
'onShow',
|
|
100
|
+
'onSubmit',
|
|
101
|
+
'onUndo',
|
|
102
|
+
'onVisualAid'
|
|
103
|
+
];
|
|
104
|
+
var isValidKey = function (key) { return validEvents.map(function (event) { return event.toLowerCase(); }).indexOf(key.toLowerCase()) !== -1; };
|
|
105
|
+
var bindHandlers = function (initEvent, listeners, editor) {
|
|
106
|
+
Object.keys(listeners)
|
|
107
|
+
.filter(isValidKey)
|
|
108
|
+
.forEach(function (key) {
|
|
109
|
+
var handler = listeners[key];
|
|
110
|
+
if (typeof handler === 'function') {
|
|
111
|
+
if (key === 'onInit') {
|
|
112
|
+
handler(initEvent, editor);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
editor.on(key.substring(2), function (e) { return handler(e, editor); });
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
};
|
|
120
|
+
var bindModelHandlers = function (ctx, editor) {
|
|
121
|
+
var modelEvents = ctx.$props.modelEvents ? ctx.$props.modelEvents : null;
|
|
122
|
+
var normalizedEvents = Array.isArray(modelEvents) ? modelEvents.join(' ') : modelEvents;
|
|
123
|
+
editor.on(normalizedEvents ? normalizedEvents : 'change input undo redo', function () {
|
|
124
|
+
ctx.$emit('input', editor.getContent({ format: ctx.$props.outputFormat }));
|
|
125
|
+
});
|
|
126
|
+
};
|
|
127
|
+
var initEditor = function (initEvent, ctx, editor) {
|
|
128
|
+
var value = ctx.$props.value ? ctx.$props.value : '';
|
|
129
|
+
var initialValue = ctx.$props.initialValue ? ctx.$props.initialValue : '';
|
|
130
|
+
editor.setContent(value || (ctx.initialized ? ctx.cache : initialValue));
|
|
131
|
+
// Always bind the value listener in case users use :value instead of v-model
|
|
132
|
+
ctx.$watch('value', function (val, prevVal) {
|
|
133
|
+
if (editor && typeof val === 'string' && val !== prevVal && val !== editor.getContent({ format: ctx.$props.outputFormat })) {
|
|
134
|
+
editor.setContent(val);
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
// checks if the v-model shorthand is used (which sets an v-on:input listener) and then binds either
|
|
138
|
+
// specified the events or defaults to "change keyup" event and emits the editor content on that event
|
|
139
|
+
if (ctx.$listeners.input) {
|
|
140
|
+
bindModelHandlers(ctx, editor);
|
|
141
|
+
}
|
|
142
|
+
bindHandlers(initEvent, ctx.$listeners, editor);
|
|
143
|
+
ctx.initialized = true;
|
|
144
|
+
};
|
|
145
|
+
var unique = 0;
|
|
146
|
+
var uuid = function (prefix) {
|
|
147
|
+
var time = Date.now();
|
|
148
|
+
var random = Math.floor(Math.random() * 1000000000);
|
|
149
|
+
unique++;
|
|
150
|
+
return prefix + '_' + random + unique + String(time);
|
|
151
|
+
};
|
|
152
|
+
var isTextarea = function (element) {
|
|
153
|
+
return element !== null && element.tagName.toLowerCase() === 'textarea';
|
|
154
|
+
};
|
|
155
|
+
var normalizePluginArray = function (plugins) {
|
|
156
|
+
if (typeof plugins === 'undefined' || plugins === '') {
|
|
157
|
+
return [];
|
|
158
|
+
}
|
|
159
|
+
return Array.isArray(plugins) ? plugins : plugins.split(' ');
|
|
160
|
+
};
|
|
161
|
+
var mergePlugins = function (initPlugins, inputPlugins) {
|
|
162
|
+
return normalizePluginArray(initPlugins).concat(normalizePluginArray(inputPlugins));
|
|
163
|
+
};
|
|
164
|
+
var isNullOrUndefined = function (value) { return value === null || value === undefined; };
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
// CONCATENATED MODULE: ./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/ScriptLoader.js
|
|
168
|
+
/**
|
|
169
|
+
* Copyright (c) 2018-present, Ephox, Inc.
|
|
170
|
+
*
|
|
171
|
+
* This source code is licensed under the Apache 2 license found in the
|
|
172
|
+
* LICENSE file in the root directory of this source tree.
|
|
173
|
+
*
|
|
174
|
+
*/
|
|
175
|
+
|
|
176
|
+
var createState = function () {
|
|
177
|
+
return {
|
|
178
|
+
listeners: [],
|
|
179
|
+
scriptId: uuid('tiny-script'),
|
|
180
|
+
scriptLoaded: false
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
var CreateScriptLoader = function () {
|
|
184
|
+
var state = createState();
|
|
185
|
+
var injectScriptTag = function (scriptId, doc, url, callback) {
|
|
186
|
+
var scriptTag = doc.createElement('script');
|
|
187
|
+
scriptTag.referrerPolicy = 'origin';
|
|
188
|
+
scriptTag.type = 'application/javascript';
|
|
189
|
+
scriptTag.id = scriptId;
|
|
190
|
+
scriptTag.src = url;
|
|
191
|
+
var handler = function () {
|
|
192
|
+
scriptTag.removeEventListener('load', handler);
|
|
193
|
+
callback();
|
|
194
|
+
};
|
|
195
|
+
scriptTag.addEventListener('load', handler);
|
|
196
|
+
if (doc.head) {
|
|
197
|
+
doc.head.appendChild(scriptTag);
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
var load = function (doc, url, callback) {
|
|
201
|
+
if (state.scriptLoaded) {
|
|
202
|
+
callback();
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
state.listeners.push(callback);
|
|
206
|
+
if (!doc.getElementById(state.scriptId)) {
|
|
207
|
+
injectScriptTag(state.scriptId, doc, url, function () {
|
|
208
|
+
state.listeners.forEach(function (fn) { return fn(); });
|
|
209
|
+
state.scriptLoaded = true;
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
// Only to be used by tests.
|
|
215
|
+
var reinitialize = function () {
|
|
216
|
+
state = createState();
|
|
217
|
+
};
|
|
218
|
+
return {
|
|
219
|
+
load: load,
|
|
220
|
+
reinitialize: reinitialize
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
var ScriptLoader = CreateScriptLoader();
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
// EXTERNAL MODULE: ./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/TinyMCE.js
|
|
227
|
+
var TinyMCE = __webpack_require__("c4a9");
|
|
228
|
+
|
|
229
|
+
// CONCATENATED MODULE: ./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/components/EditorPropTypes.js
|
|
230
|
+
/**
|
|
231
|
+
* Copyright (c) 2018-present, Ephox, Inc.
|
|
232
|
+
*
|
|
233
|
+
* This source code is licensed under the Apache 2 license found in the
|
|
234
|
+
* LICENSE file in the root directory of this source tree.
|
|
235
|
+
*
|
|
236
|
+
*/
|
|
237
|
+
var editorProps = {
|
|
238
|
+
apiKey: String,
|
|
239
|
+
cloudChannel: String,
|
|
240
|
+
id: String,
|
|
241
|
+
init: Object,
|
|
242
|
+
initialValue: String,
|
|
243
|
+
inline: Boolean,
|
|
244
|
+
modelEvents: [String, Array],
|
|
245
|
+
plugins: [String, Array],
|
|
246
|
+
tagName: String,
|
|
247
|
+
toolbar: [String, Array],
|
|
248
|
+
value: String,
|
|
249
|
+
disabled: Boolean,
|
|
250
|
+
tinymceScriptSrc: String,
|
|
251
|
+
outputFormat: {
|
|
252
|
+
type: String,
|
|
253
|
+
validator: function (prop) { return prop === 'html' || prop === 'text'; }
|
|
254
|
+
},
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
// CONCATENATED MODULE: ./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/components/Editor.js
|
|
258
|
+
/**
|
|
259
|
+
* Copyright (c) 2018-present, Ephox, Inc.
|
|
260
|
+
*
|
|
261
|
+
* This source code is licensed under the Apache 2 license found in the
|
|
262
|
+
* LICENSE file in the root directory of this source tree.
|
|
263
|
+
*
|
|
264
|
+
*/
|
|
265
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
266
|
+
__assign = Object.assign || function(t) {
|
|
267
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
268
|
+
s = arguments[i];
|
|
269
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
270
|
+
t[p] = s[p];
|
|
271
|
+
}
|
|
272
|
+
return t;
|
|
273
|
+
};
|
|
274
|
+
return __assign.apply(this, arguments);
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
var renderInline = function (h, id, tagName) {
|
|
281
|
+
return h(tagName ? tagName : 'div', {
|
|
282
|
+
attrs: { id: id }
|
|
283
|
+
});
|
|
284
|
+
};
|
|
285
|
+
var renderIframe = function (h, id) {
|
|
286
|
+
return h('textarea', {
|
|
287
|
+
attrs: { id: id },
|
|
288
|
+
style: { visibility: 'hidden' }
|
|
289
|
+
});
|
|
290
|
+
};
|
|
291
|
+
var initialise = function (ctx) { return function () {
|
|
292
|
+
var finalInit = __assign(__assign({}, ctx.$props.init), { readonly: ctx.$props.disabled, selector: "#" + ctx.elementId, plugins: mergePlugins(ctx.$props.init && ctx.$props.init.plugins, ctx.$props.plugins), toolbar: ctx.$props.toolbar || (ctx.$props.init && ctx.$props.init.toolbar), inline: ctx.inlineEditor, setup: function (editor) {
|
|
293
|
+
ctx.editor = editor;
|
|
294
|
+
editor.on('init', function (e) { return initEditor(e, ctx, editor); });
|
|
295
|
+
if (ctx.$props.init && typeof ctx.$props.init.setup === 'function') {
|
|
296
|
+
ctx.$props.init.setup(editor);
|
|
297
|
+
}
|
|
298
|
+
} });
|
|
299
|
+
if (isTextarea(ctx.element)) {
|
|
300
|
+
ctx.element.style.visibility = '';
|
|
301
|
+
ctx.element.style.display = '';
|
|
302
|
+
}
|
|
303
|
+
Object(TinyMCE["a" /* getTinymce */])().init(finalInit);
|
|
304
|
+
}; };
|
|
305
|
+
var Editor = {
|
|
306
|
+
props: editorProps,
|
|
307
|
+
created: function () {
|
|
308
|
+
this.elementId = this.$props.id || uuid('tiny-vue');
|
|
309
|
+
this.inlineEditor = (this.$props.init && this.$props.init.inline) || this.$props.inline;
|
|
310
|
+
this.initialized = false;
|
|
311
|
+
},
|
|
312
|
+
watch: {
|
|
313
|
+
disabled: function () {
|
|
314
|
+
this.editor.setMode(this.disabled ? 'readonly' : 'design');
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
mounted: function () {
|
|
318
|
+
this.element = this.$el;
|
|
319
|
+
if (Object(TinyMCE["a" /* getTinymce */])() !== null) {
|
|
320
|
+
initialise(this)();
|
|
321
|
+
}
|
|
322
|
+
else if (this.element && this.element.ownerDocument) {
|
|
323
|
+
var channel = this.$props.cloudChannel ? this.$props.cloudChannel : '5';
|
|
324
|
+
var apiKey = this.$props.apiKey ? this.$props.apiKey : 'no-api-key';
|
|
325
|
+
var scriptSrc = isNullOrUndefined(this.$props.tinymceScriptSrc) ?
|
|
326
|
+
"https://cdn.tiny.cloud/1/" + apiKey + "/tinymce/" + channel + "/tinymce.min.js" :
|
|
327
|
+
this.$props.tinymceScriptSrc;
|
|
328
|
+
ScriptLoader.load(this.element.ownerDocument, scriptSrc, initialise(this));
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
beforeDestroy: function () {
|
|
332
|
+
if (Object(TinyMCE["a" /* getTinymce */])() !== null) {
|
|
333
|
+
Object(TinyMCE["a" /* getTinymce */])().remove(this.editor);
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
deactivated: function () {
|
|
337
|
+
var _a;
|
|
338
|
+
if (!this.inlineEditor) {
|
|
339
|
+
this.cache = this.editor.getContent();
|
|
340
|
+
(_a = Object(TinyMCE["a" /* getTinymce */])()) === null || _a === void 0 ? void 0 : _a.remove(this.editor);
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
activated: function () {
|
|
344
|
+
if (!this.inlineEditor && this.initialized) {
|
|
345
|
+
initialise(this)();
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
render: function (h) {
|
|
349
|
+
return this.inlineEditor ? renderInline(h, this.elementId, this.$props.tagName) : renderIframe(h, this.elementId);
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
// CONCATENATED MODULE: ./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/index.js
|
|
354
|
+
/**
|
|
355
|
+
* Copyright (c) 2018-present, Ephox, Inc.
|
|
356
|
+
*
|
|
357
|
+
* This source code is licensed under the Apache 2 license found in the
|
|
358
|
+
* LICENSE file in the root directory of this source tree.
|
|
359
|
+
*
|
|
360
|
+
*/
|
|
361
|
+
|
|
362
|
+
/* harmony default export */ var ts = __webpack_exports__["default"] = (Editor);
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
/***/ })
|
|
366
|
+
|
|
367
|
+
}]);
|
|
368
|
+
//# sourceMappingURL=super-ui.umd.1.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
((typeof self !== 'undefined' ? self : this)["webpackJsonpsuper_ui"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpsuper_ui"] || []).push([[
|
|
1
|
+
((typeof self !== 'undefined' ? self : this)["webpackJsonpsuper_ui"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpsuper_ui"] || []).push([[2],{
|
|
2
2
|
|
|
3
3
|
/***/ "e562":
|
|
4
4
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -30085,4 +30085,4 @@
|
|
|
30085
30085
|
/***/ })
|
|
30086
30086
|
|
|
30087
30087
|
}]);
|
|
30088
|
-
//# sourceMappingURL=super-ui.umd.
|
|
30088
|
+
//# sourceMappingURL=super-ui.umd.2.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(("undefined"!==typeof self?self:this)["webpackJsonpsuper_ui"]=("undefined"!==typeof self?self:this)["webpackJsonpsuper_ui"]||[]).push([[1],{c4a9:function(n,t,e){"use strict";(function(n){e.d(t,"a",(function(){return i}));var o=function(){return"undefined"!==typeof window?window:n},i=function(){var n=o();return n&&n.tinymce?n.tinymce:null}}).call(this,e("c8ba"))},ca72:function(n,t,e){"use strict";e.r(t);var o=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],i=function(n){return-1!==o.map((function(n){return n.toLowerCase()})).indexOf(n.toLowerCase())},r=function(n,t,e){Object.keys(t).filter(i).forEach((function(o){var i=t[o];"function"===typeof i&&("onInit"===o?i(n,e):e.on(o.substring(2),(function(n){return i(n,e)})))}))},s=function(n,t){var e=n.$props.modelEvents?n.$props.modelEvents:null,o=Array.isArray(e)?e.join(" "):e;t.on(o||"change input undo redo",(function(){n.$emit("input",t.getContent({format:n.$props.outputFormat}))}))},a=function(n,t,e){var o=t.$props.value?t.$props.value:"",i=t.$props.initialValue?t.$props.initialValue:"";e.setContent(o||(t.initialized?t.cache:i)),t.$watch("value",(function(n,o){e&&"string"===typeof n&&n!==o&&n!==e.getContent({format:t.$props.outputFormat})&&e.setContent(n)})),t.$listeners.input&&s(t,e),r(n,t.$listeners,e),t.initialized=!0},u=0,c=function(n){var t=Date.now(),e=Math.floor(1e9*Math.random());return u++,n+"_"+e+u+String(t)},p=function(n){return null!==n&&"textarea"===n.tagName.toLowerCase()},l=function(n){return"undefined"===typeof n||""===n?[]:Array.isArray(n)?n:n.split(" ")},d=function(n,t){return l(n).concat(l(t))},f=function(n){return null===n||void 0===n},h=function(){return{listeners:[],scriptId:c("tiny-script"),scriptLoaded:!1}},y=function(){var n=h(),t=function(n,t,e,o){var i=t.createElement("script");i.referrerPolicy="origin",i.type="application/javascript",i.id=n,i.src=e;var r=function(){i.removeEventListener("load",r),o()};i.addEventListener("load",r),t.head&&t.head.appendChild(i)},e=function(e,o,i){n.scriptLoaded?i():(n.listeners.push(i),e.getElementById(n.scriptId)||t(n.scriptId,e,o,(function(){n.listeners.forEach((function(n){return n()})),n.scriptLoaded=!0})))},o=function(){n=h()};return{load:e,reinitialize:o}},m=y(),v=e("c4a9"),g={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],value:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(n){return"html"===n||"text"===n}}},$=function(){return $=Object.assign||function(n){for(var t,e=1,o=arguments.length;e<o;e++)for(var i in t=arguments[e],t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n},$.apply(this,arguments)},b=function(n,t,e){return n(e||"div",{attrs:{id:t}})},C=function(n,t){return n("textarea",{attrs:{id:t},style:{visibility:"hidden"}})},S=function(n){return function(){var t=$($({},n.$props.init),{readonly:n.$props.disabled,selector:"#"+n.elementId,plugins:d(n.$props.init&&n.$props.init.plugins,n.$props.plugins),toolbar:n.$props.toolbar||n.$props.init&&n.$props.init.toolbar,inline:n.inlineEditor,setup:function(t){n.editor=t,t.on("init",(function(e){return a(e,n,t)})),n.$props.init&&"function"===typeof n.$props.init.setup&&n.$props.init.setup(t)}});p(n.element)&&(n.element.style.visibility="",n.element.style.display=""),Object(v["a"])().init(t)}},w={props:g,created:function(){this.elementId=this.$props.id||c("tiny-vue"),this.inlineEditor=this.$props.init&&this.$props.init.inline||this.$props.inline,this.initialized=!1},watch:{disabled:function(){this.editor.setMode(this.disabled?"readonly":"design")}},mounted:function(){if(this.element=this.$el,null!==Object(v["a"])())S(this)();else if(this.element&&this.element.ownerDocument){var n=this.$props.cloudChannel?this.$props.cloudChannel:"5",t=this.$props.apiKey?this.$props.apiKey:"no-api-key",e=f(this.$props.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/"+t+"/tinymce/"+n+"/tinymce.min.js":this.$props.tinymceScriptSrc;m.load(this.element.ownerDocument,e,S(this))}},beforeDestroy:function(){null!==Object(v["a"])()&&Object(v["a"])().remove(this.editor)},deactivated:function(){var n;this.inlineEditor||(this.cache=this.editor.getContent(),null===(n=Object(v["a"])())||void 0===n||n.remove(this.editor))},activated:function(){!this.inlineEditor&&this.initialized&&S(this)()},render:function(n){return this.inlineEditor?b(n,this.elementId,this.$props.tagName):C(n,this.elementId)}};t["default"]=w}}]);
|
|
2
|
+
//# sourceMappingURL=super-ui.umd.min.1.js.map
|