@stratusjs/angular 0.7.5 → 0.8.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/dist/angular.bundle.js +87 -1302
- package/dist/angular.bundle.min.js +1 -1
- package/package.json +1 -1
- package/src/boot.js +1 -0
- package/src/boot.js.map +1 -1
- package/src/boot.min.js +1 -1
- package/src/boot.ts +1 -0
- package/src/core/dialog.interface.js.map +1 -0
- package/src/tree/tree-node.component.html +1 -1
- package/src/tree/tree-node.component.min.html +1 -1
- package/src/tree/tree.component.css +47 -2
- package/src/tree/tree.component.css.map +1 -1
- package/src/tree/tree.component.min.css +1 -1
- package/src/tree/tree.component.scss +99 -6
- package/src/editor/quill-break-blot.plugin.js +0 -38
- package/src/editor/quill-break-blot.plugin.js.map +0 -1
- package/src/editor/quill-break-blot.plugin.min.js +0 -1
- package/src/editor/quill-html-edit.plugin.js +0 -164
- package/src/editor/quill-html-edit.plugin.js.map +0 -1
- package/src/editor/quill-html-edit.plugin.min.js +0 -1
- package/src/editor/quill-image-format.plugin.js +0 -50
- package/src/editor/quill-image-format.plugin.js.map +0 -1
- package/src/editor/quill-image-format.plugin.min.js +0 -1
- package/src/editor/quill-input-button.plugin.js +0 -98
- package/src/editor/quill-input-button.plugin.js.map +0 -1
- package/src/editor/quill-input-button.plugin.min.js +0 -1
- package/src/froala/editor/froala-editor.directive.js +0 -328
- package/src/froala/editor/froala-editor.directive.js.map +0 -1
- package/src/froala/editor/froala-editor.directive.min.js +0 -1
- package/src/froala/editor/froala-editor.module.js +0 -37
- package/src/froala/editor/froala-editor.module.js.map +0 -1
- package/src/froala/editor/froala-editor.module.min.js +0 -1
- package/src/froala/editor/index.js +0 -22
- package/src/froala/editor/index.js.map +0 -1
- package/src/froala/editor/index.min.js +0 -1
- package/src/froala/plugins/image_manager.js +0 -364
- package/src/froala/plugins/image_manager.js.map +0 -1
- package/src/froala/plugins/image_manager.min.js +0 -1
- package/src/froala/view/froala-view.directive.js +0 -49
- package/src/froala/view/froala-view.directive.js.map +0 -1
- package/src/froala/view/froala-view.directive.min.js +0 -1
- package/src/froala/view/froala-view.module.js +0 -37
- package/src/froala/view/froala-view.module.js.map +0 -1
- package/src/froala/view/froala-view.module.min.js +0 -1
- package/src/froala/view/index.js +0 -22
- package/src/froala/view/index.js.map +0 -1
- package/src/froala/view/index.min.js +0 -1
- package/src/root/root.component.js +0 -43
- package/src/root/root.component.js.map +0 -1
- package/src/root/root.component.min.js +0 -1
|
@@ -1,364 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* froala_editor v3.2.3 (https://www.froala.com/wysiwyg-editor)
|
|
3
|
-
* License https://froala.com/wysiwyg-editor/terms/
|
|
4
|
-
* Copyright 2014-2020 Froala Labs
|
|
5
|
-
*/
|
|
6
|
-
System.register(["froala-editor"], function (exports_1, context_1) {
|
|
7
|
-
"use strict";
|
|
8
|
-
var froala_editor_1;
|
|
9
|
-
var __moduleName = context_1 && context_1.id;
|
|
10
|
-
return {
|
|
11
|
-
setters: [
|
|
12
|
-
function (froala_editor_1_1) {
|
|
13
|
-
froala_editor_1 = froala_editor_1_1;
|
|
14
|
-
}
|
|
15
|
-
],
|
|
16
|
-
execute: function () {
|
|
17
|
-
/*!
|
|
18
|
-
* froala_editor v3.2.3 (https://www.froala.com/wysiwyg-editor)
|
|
19
|
-
* License https://froala.com/wysiwyg-editor/terms/
|
|
20
|
-
* Copyright 2014-2020 Froala Labs
|
|
21
|
-
*/
|
|
22
|
-
if (((froala_editor_1.default && froala_editor_1.default.hasOwnProperty('default') ? froala_editor_1.default.default : froala_editor_1.default),
|
|
23
|
-
Object.assign(froala_editor_1.default.DEFAULTS, {
|
|
24
|
-
imageManagerLoadURL: 'https://i.froala.com/load-files',
|
|
25
|
-
imageManagerLoadMethod: 'get',
|
|
26
|
-
imageManagerLoadParams: {},
|
|
27
|
-
imageManagerPreloader: null,
|
|
28
|
-
imageManagerDeleteURL: '',
|
|
29
|
-
imageManagerDeleteMethod: 'post',
|
|
30
|
-
imageManagerDeleteParams: {},
|
|
31
|
-
imageManagerPageSize: 12,
|
|
32
|
-
imageManagerScrollOffset: 20,
|
|
33
|
-
imageManagerToggleTags: !0,
|
|
34
|
-
}),
|
|
35
|
-
(froala_editor_1.default.PLUGINS.imageManagerCustom = (s) => {
|
|
36
|
-
let g, l, i, o, d, m, c, f, u, p, h, v = s.$, M = 'image_manager', e = 10, b = 11, w = 12, C = 13, L = 14, D = 15, t = 21, r = 22, n = {};
|
|
37
|
-
function y() {
|
|
38
|
-
let e = v(window).outerWidth();
|
|
39
|
-
return e < 768 ? 2 : e < 1200 ? 3 : 4;
|
|
40
|
-
}
|
|
41
|
-
function I() {
|
|
42
|
-
d.empty();
|
|
43
|
-
for (let e = 0; e < h; e++) {
|
|
44
|
-
d.append('<div class="fr-list-column"></div>');
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
function P() {
|
|
48
|
-
if (u < c.length
|
|
49
|
-
&& (d.outerHeight() <= i.outerHeight() + s.opts.imageManagerScrollOffset
|
|
50
|
-
|| i.scrollTop() + s.opts.imageManagerScrollOffset > d.outerHeight() - i.outerHeight())) {
|
|
51
|
-
f++;
|
|
52
|
-
for (let e = s.opts.imageManagerPageSize * (f - 1); e < Math.min(c.length, s.opts.imageManagerPageSize * f); e++) {
|
|
53
|
-
a(c[e]);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
function a(n) {
|
|
58
|
-
let i = new Image(), o = v(document.createElement('div'))
|
|
59
|
-
.attr('class', 'fr-image-container fr-empty fr-image-' + p++)
|
|
60
|
-
.attr('data-loading', s.language.translate('Loading') + '..')
|
|
61
|
-
.attr('data-deleting', s.language.translate('Deleting') + '..');
|
|
62
|
-
R(!1),
|
|
63
|
-
(i.onload = function () {
|
|
64
|
-
o.height(Math.floor((o.width() / i.width) * i.height));
|
|
65
|
-
let t = v(document.createElement('img'));
|
|
66
|
-
if (n.thumb) {
|
|
67
|
-
t.attr('src', n.thumb);
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
if ((O(L, n), !n.url)) {
|
|
71
|
-
return O(D, n), !1;
|
|
72
|
-
}
|
|
73
|
-
t.attr('src', n.url);
|
|
74
|
-
}
|
|
75
|
-
if ((n.url && t.attr('data-url', n.url), n.tag)) {
|
|
76
|
-
if ((l.find('.fr-modal-more.fr-not-available').removeClass('fr-not-available'), l.find('.fr-modal-tags').show(), 0 <= n.tag.indexOf(','))) {
|
|
77
|
-
for (let e = n.tag.split(','), a = 0; a < e.length; a++) {
|
|
78
|
-
(e[a] =
|
|
79
|
-
e[a].trim()), 0 === m.find('a[title="'.concat(e[a], '"]')).length && m.append('<a role="button" title="'.concat(e[a], '">').concat(e[a], '</a>'));
|
|
80
|
-
}
|
|
81
|
-
t.attr('data-tag', e.join());
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
0 === m.find('a[title="'.concat(n.tag.trim(), '"]')).length && m.append('<a role="button" title="'.concat(n.tag.trim(), '">').concat(n.tag.trim(), '</a>')), t.attr('data-tag', n.tag.trim());
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
for (let r in (n.name && t.attr('alt', n.name), n)) {
|
|
88
|
-
n.hasOwnProperty(r) && 'thumb' !== r && 'url' !== r && 'tag' !== r && t.attr('data-'.concat(r), n[r]);
|
|
89
|
-
}
|
|
90
|
-
o
|
|
91
|
-
.append(t)
|
|
92
|
-
.append(v(s.icon.create('imageManagerDelete')).addClass('fr-delete-img').attr('title', s.language.translate('Delete')))
|
|
93
|
-
.append(v(s.icon.create('imageManagerInsert')).addClass('fr-insert-img').attr('title', s.language.translate('Insert'))),
|
|
94
|
-
m.find('.fr-selected-tag').each(function (e, a) {
|
|
95
|
-
j(t, a.text) || o.hide();
|
|
96
|
-
}),
|
|
97
|
-
t.on('load', function () {
|
|
98
|
-
o.removeClass('fr-empty'),
|
|
99
|
-
o.height('auto'),
|
|
100
|
-
u++,
|
|
101
|
-
E(T(parseInt(t
|
|
102
|
-
.parent()
|
|
103
|
-
.attr('class')
|
|
104
|
-
.match(/fr-image-(\d+)/)[1], 10) + 1)),
|
|
105
|
-
R(!1),
|
|
106
|
-
u % s.opts.imageManagerPageSize === 0 && P();
|
|
107
|
-
}),
|
|
108
|
-
s.events.trigger('imageManager.imageLoaded', [t]);
|
|
109
|
-
}),
|
|
110
|
-
(i.onerror = () => {
|
|
111
|
-
u++,
|
|
112
|
-
o.remove(),
|
|
113
|
-
E(T(parseInt(o.attr('class').match(/fr-image-(\d+)/)[1], 10) + 1)),
|
|
114
|
-
O(e, n),
|
|
115
|
-
u % s.opts.imageManagerPageSize === 0 && P();
|
|
116
|
-
}),
|
|
117
|
-
(i.src = n.thumb || n.url),
|
|
118
|
-
S().append(o);
|
|
119
|
-
}
|
|
120
|
-
function S() {
|
|
121
|
-
let r, n;
|
|
122
|
-
return (d.find('.fr-list-column').each((e, a) => {
|
|
123
|
-
let t = v(a);
|
|
124
|
-
0 === e ? ((n = t.outerHeight()), (r = t)) : t.outerHeight() < n && ((n = t.outerHeight()), (r = t));
|
|
125
|
-
}),
|
|
126
|
-
r);
|
|
127
|
-
}
|
|
128
|
-
function T(e) {
|
|
129
|
-
e === undefined && (e = 0);
|
|
130
|
-
for (let a = [], t = p - 1; e <= t; t--) {
|
|
131
|
-
let r = d.find('.fr-image-'.concat(t));
|
|
132
|
-
r.length && (a.push(r), v(document.createElement('div')).attr('id', 'fr-image-hidden-container').append(r), d.find('.fr-image-'.concat(t)).remove());
|
|
133
|
-
}
|
|
134
|
-
return a;
|
|
135
|
-
}
|
|
136
|
-
function E(e) {
|
|
137
|
-
for (let a = e.length - 1; 0 <= a; a--) {
|
|
138
|
-
S().append(e[a]);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
function R(e) {
|
|
142
|
-
if ((e === undefined && (e = !0), !g.isVisible())) {
|
|
143
|
-
return !0;
|
|
144
|
-
}
|
|
145
|
-
let a = y();
|
|
146
|
-
if (a !== h) {
|
|
147
|
-
h = a;
|
|
148
|
-
let t = T();
|
|
149
|
-
I(), E(t);
|
|
150
|
-
}
|
|
151
|
-
s.modals.resize(M), e && P();
|
|
152
|
-
}
|
|
153
|
-
function U(e) {
|
|
154
|
-
for (let a, t = e[0].attributes, r = t.length, n = {}; r--;) {
|
|
155
|
-
t[r] && 'src' !== (a = t[r].name) && (n[a] = t[r].value);
|
|
156
|
-
}
|
|
157
|
-
return n;
|
|
158
|
-
}
|
|
159
|
-
function x(e) {
|
|
160
|
-
let a = v(e.currentTarget).siblings('img'), t = g.data('instance') || s, r = g.data('current-image');
|
|
161
|
-
if ((s.modals.hide(M), t.image.showProgressBar(), r)) {
|
|
162
|
-
r.data('fr-old-src', r.attr('src')), r.trigger('click');
|
|
163
|
-
}
|
|
164
|
-
else {
|
|
165
|
-
t.events.focus(!0), t.selection.restore();
|
|
166
|
-
let n = t.position.getBoundingRect(), i = n.left + n.width / 2 + v(s.doc).scrollLeft(), o = n.top + n.height + v(s.doc).scrollTop();
|
|
167
|
-
t.popups.setContainer('image.insert', s.$sc), t.popups.show('image.insert', i, o);
|
|
168
|
-
}
|
|
169
|
-
t.image.insert(a.data('url'), !1, U(a), r);
|
|
170
|
-
}
|
|
171
|
-
function H(e) {
|
|
172
|
-
let i = v(e.currentTarget).siblings('img'), a = s.language.translate('Are you sure? Image will be deleted.');
|
|
173
|
-
confirm(a) &&
|
|
174
|
-
(s.opts.imageManagerDeleteURL
|
|
175
|
-
? !1 !== s.events.trigger('imageManager.beforeDeleteImage', [i]) &&
|
|
176
|
-
(i.parent().addClass('fr-image-deleting'),
|
|
177
|
-
v(this).ajax({
|
|
178
|
-
method: s.opts.imageManagerDeleteMethod,
|
|
179
|
-
url: s.opts.imageManagerDeleteURL,
|
|
180
|
-
data: Object.assign(Object.assign({ src: i.attr('src') }, U(i)), s.opts.imageManagerDeleteParams),
|
|
181
|
-
crossDomain: s.opts.requestWithCORS,
|
|
182
|
-
withCredentials: s.opts.requestWithCredentials,
|
|
183
|
-
headers: s.opts.requestHeaders,
|
|
184
|
-
done(e, a, t) {
|
|
185
|
-
s.events.trigger('imageManager.imageDeleted', [e]);
|
|
186
|
-
let r = T(parseInt(i
|
|
187
|
-
.parent()
|
|
188
|
-
.attr('class')
|
|
189
|
-
.match(/fr-image-(\d+)/)[1], 10) + 1);
|
|
190
|
-
i.parent().remove(),
|
|
191
|
-
E(r),
|
|
192
|
-
(function n() {
|
|
193
|
-
g.find('#fr-modal-tags > a').each(function () {
|
|
194
|
-
0 === g.find('#fr-image-list [data-tag*="'.concat(v(this).text(), '"]')).length && v(this).removeClass('fr-selected-tag').hide();
|
|
195
|
-
}),
|
|
196
|
-
_();
|
|
197
|
-
})(),
|
|
198
|
-
R(!0);
|
|
199
|
-
},
|
|
200
|
-
fail(e) {
|
|
201
|
-
O(t, e.response || e.responseText);
|
|
202
|
-
},
|
|
203
|
-
}))
|
|
204
|
-
: O(r));
|
|
205
|
-
}
|
|
206
|
-
function O(e, a) {
|
|
207
|
-
10 <= e && e < 20
|
|
208
|
-
? o.hide()
|
|
209
|
-
: 20 <= e && e < 30 && v('.fr-image-deleting').removeClass('fr-image-deleting'), s.events.trigger('imageManager.error', [
|
|
210
|
-
{ code: e, message: n[e] },
|
|
211
|
-
a
|
|
212
|
-
]);
|
|
213
|
-
}
|
|
214
|
-
function q() {
|
|
215
|
-
let e = l.find('.fr-modal-head-line').outerHeight(), a = m.outerHeight();
|
|
216
|
-
l.toggleClass('fr-show-tags'), l.hasClass('fr-show-tags')
|
|
217
|
-
? (l.css('height', e + a), i.css('marginTop', e + a), m.find('a').css('opacity', 1))
|
|
218
|
-
: (l.css('height', e), i.css('marginTop', e), m.find('a').css('opacity', 0));
|
|
219
|
-
}
|
|
220
|
-
function _() {
|
|
221
|
-
let e = m.find('.fr-selected-tag');
|
|
222
|
-
0 < e.length
|
|
223
|
-
? (d.find('img').parents().show(),
|
|
224
|
-
e.each((e, r) => {
|
|
225
|
-
d.find('img').each(function (e, a) {
|
|
226
|
-
let t = v(a);
|
|
227
|
-
j(t, r.text) || t.parent().hide();
|
|
228
|
-
});
|
|
229
|
-
}))
|
|
230
|
-
: d.find('img').parents().show(),
|
|
231
|
-
E(T()),
|
|
232
|
-
P();
|
|
233
|
-
}
|
|
234
|
-
function k(e) {
|
|
235
|
-
e.preventDefault();
|
|
236
|
-
let a = v(e.currentTarget);
|
|
237
|
-
a.toggleClass('fr-selected-tag'), s.opts.imageManagerToggleTags && a.siblings('a').removeClass('fr-selected-tag'), _();
|
|
238
|
-
}
|
|
239
|
-
function j(e, a) {
|
|
240
|
-
for (let t = (e.attr('data-tag') || '').split(','), r = 0; r < t.length; r++) {
|
|
241
|
-
if (t[r] === a) {
|
|
242
|
-
return !0;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
return !1;
|
|
246
|
-
}
|
|
247
|
-
return ((n[e] = 'Image cannot be loaded from the passed link.'),
|
|
248
|
-
(n[b] = 'Error during load images request.'),
|
|
249
|
-
(n[w] = 'Missing imageManagerLoadURL option.'),
|
|
250
|
-
(n[C] = 'Parsing load response failed.'),
|
|
251
|
-
(n[L] = 'Missing image thumb.'),
|
|
252
|
-
(n[D] = 'Missing image URL.'),
|
|
253
|
-
(n[t] = 'Error during delete image request.'),
|
|
254
|
-
(n[r] = 'Missing imageManagerDeleteURL option.'),
|
|
255
|
-
{
|
|
256
|
-
require: ['image'],
|
|
257
|
-
_init: function z() {
|
|
258
|
-
if (!s.$wp && 'IMG' !== s.el.tagName) {
|
|
259
|
-
return !1;
|
|
260
|
-
}
|
|
261
|
-
},
|
|
262
|
-
show: function G() {
|
|
263
|
-
if (!g) {
|
|
264
|
-
let e, a = '<button class="fr-command fr-btn fr-modal-more fr-not-available" id="fr-modal-more-'
|
|
265
|
-
.concat(s.sid, '"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24""><path d="')
|
|
266
|
-
.concat(froala_editor_1.default.SVG.tags, '"/></svg></button><h4 data-text="true">')
|
|
267
|
-
.concat(s.language.translate('Manage Images'), '</h4></div>\n <div class="fr-modal-tags" id="fr-modal-tags">');
|
|
268
|
-
(e = s.opts.imageManagerPreloader
|
|
269
|
-
? '<img class="fr-preloader" id="fr-preloader" alt="'.concat(s.language.translate('Loading'), '.." src="').concat(s.opts.imageManagerPreloader, '" style="display: none;">')
|
|
270
|
-
: '<span class="fr-preloader" id="fr-preloader" style="display: none;">'.concat(s.language.translate('Loading'), '</span>')),
|
|
271
|
-
(e += '<div class="fr-image-list" id="fr-image-list"></div>');
|
|
272
|
-
let t = s.modals.create(M, a, e);
|
|
273
|
-
(g = t.$modal), (l = t.$head), (i = t.$body);
|
|
274
|
-
}
|
|
275
|
-
g.data('current-image', s.image.get()),
|
|
276
|
-
s.modals.show(M),
|
|
277
|
-
o ||
|
|
278
|
-
(function r() {
|
|
279
|
-
(o = g.find('#fr-preloader')),
|
|
280
|
-
(d = g.find('#fr-image-list')),
|
|
281
|
-
(m = g.find('#fr-modal-tags')),
|
|
282
|
-
(h = y()),
|
|
283
|
-
I(),
|
|
284
|
-
l.css('height', l.find('.fr-modal-head-line').outerHeight()),
|
|
285
|
-
s.events.$on(v(s.o_win), 'resize', () => {
|
|
286
|
-
R(!!c);
|
|
287
|
-
}),
|
|
288
|
-
s.events.bindClick(d, '.fr-insert-img', x),
|
|
289
|
-
s.events.bindClick(d, '.fr-delete-img', H),
|
|
290
|
-
s.helpers.isMobile() &&
|
|
291
|
-
(s.events.bindClick(d, 'div.fr-image-container', (e) => {
|
|
292
|
-
g.find('.fr-mobile-selected').removeClass('fr-mobile-selected'),
|
|
293
|
-
v(e.currentTarget).addClass('fr-mobile-selected');
|
|
294
|
-
}),
|
|
295
|
-
g.on(s._mousedown, () => {
|
|
296
|
-
g.find('.fr-mobile-selected').removeClass('fr-mobile-selected');
|
|
297
|
-
})),
|
|
298
|
-
g.on(s._mousedown + ' ' + s._mouseup, (e) => {
|
|
299
|
-
e.stopPropagation();
|
|
300
|
-
}),
|
|
301
|
-
g.on(s._mousedown, '*', () => {
|
|
302
|
-
s.events.disableBlur();
|
|
303
|
-
}),
|
|
304
|
-
i.on('scroll', P),
|
|
305
|
-
s.events.bindClick(g, 'button#fr-modal-more-'.concat(s.sid), q),
|
|
306
|
-
s.events.bindClick(m, 'a', k);
|
|
307
|
-
})(),
|
|
308
|
-
(function n() {
|
|
309
|
-
o.show(),
|
|
310
|
-
d.find('.fr-list-column').empty(),
|
|
311
|
-
s.opts.imageManagerLoadURL
|
|
312
|
-
? v(this).ajax({
|
|
313
|
-
url: s.opts.imageManagerLoadURL,
|
|
314
|
-
method: s.opts.imageManagerLoadMethod,
|
|
315
|
-
data: s.opts.imageManagerLoadParams,
|
|
316
|
-
crossDomain: s.opts.requestWithCORS,
|
|
317
|
-
withCredentials: s.opts.requestWithCredentials,
|
|
318
|
-
headers: s.opts.requestHeaders,
|
|
319
|
-
done(e, a, t) {
|
|
320
|
-
s.events.trigger('imageManager.imagesLoaded', [e]),
|
|
321
|
-
(function r(e, a) {
|
|
322
|
-
try {
|
|
323
|
-
d.find('.fr-list-column').empty(), (p = u = f = 0), (c = JSON.parse(e)), P();
|
|
324
|
-
}
|
|
325
|
-
catch (t) {
|
|
326
|
-
O(C, a);
|
|
327
|
-
}
|
|
328
|
-
})(e, t.response),
|
|
329
|
-
o.hide();
|
|
330
|
-
},
|
|
331
|
-
fail(e) {
|
|
332
|
-
O(b, e.response || e.responseText);
|
|
333
|
-
},
|
|
334
|
-
})
|
|
335
|
-
: O(w);
|
|
336
|
-
})();
|
|
337
|
-
},
|
|
338
|
-
hide: function N() {
|
|
339
|
-
s.modals.hide(M);
|
|
340
|
-
},
|
|
341
|
-
});
|
|
342
|
-
}),
|
|
343
|
-
!froala_editor_1.default.PLUGINS.image)) {
|
|
344
|
-
throw new Error('Image manager plugin requires image plugin.');
|
|
345
|
-
}
|
|
346
|
-
froala_editor_1.default.DEFAULTS.imageInsertButtons.push('imageManagerCustom'),
|
|
347
|
-
froala_editor_1.default.RegisterCommand('imageManagerCustom', {
|
|
348
|
-
title: 'Browse',
|
|
349
|
-
undo: !1,
|
|
350
|
-
focus: !1,
|
|
351
|
-
modal: !0,
|
|
352
|
-
callback() {
|
|
353
|
-
this.imageManagerCustom.show();
|
|
354
|
-
},
|
|
355
|
-
plugin: 'imageManagerCustom',
|
|
356
|
-
}),
|
|
357
|
-
froala_editor_1.default.DefineIcon('imageManagerCustom', { NAME: 'folder', SVG_KEY: 'imageManager' }),
|
|
358
|
-
froala_editor_1.default.DefineIcon('imageManagerCustomInsert', { NAME: 'plus', SVG_KEY: 'add' }),
|
|
359
|
-
froala_editor_1.default.DefineIcon('imageManagerCustomDelete', { NAME: 'trash', SVG_KEY: 'remove' });
|
|
360
|
-
}
|
|
361
|
-
};
|
|
362
|
-
});
|
|
363
|
-
|
|
364
|
-
//# sourceMappingURL=image_manager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["image_manager.ts"],"names":[],"mappings":"AAEA;;;;GAIG;;;;;;;;;;;;YAJH;;;;eAIG;YAKH,IACI,CAAC,CAAC,uBAAY,IAAI,uBAAY,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,uBAAY,CAAC,OAAO,CAAC,CAAC,CAAC,uBAAY,CAAC;gBAC3F,MAAM,CAAC,MAAM,CAAC,uBAAY,CAAC,QAAQ,EAAE;oBACjC,mBAAmB,EAAE,iCAAiC;oBACtD,sBAAsB,EAAE,KAAK;oBAC7B,sBAAsB,EAAE,EAAE;oBAC1B,qBAAqB,EAAE,IAAI;oBAC3B,qBAAqB,EAAE,EAAE;oBACzB,wBAAwB,EAAE,MAAM;oBAChC,wBAAwB,EAAE,EAAE;oBAC5B,oBAAoB,EAAE,EAAE;oBACxB,wBAAwB,EAAE,EAAE;oBAC5B,sBAAsB,EAAE,CAAC,CAAC;iBAC7B,CAAC;gBACF,CAAC,uBAAY,CAAC,OAAO,CAAC,kBAAkB,GAAG,CAAC,CAAM,EAAE,EAAE;oB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CAAC;gDACF,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;oCACd,CAAC,CAAC,EAAE,CAAA;4BACZ,CAAC;4BACD,IAAI,EAAE,SAAS,CAAC;gCACZ,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;4BACpB,CAAC;yBACJ,CACR,CAAA;gBACL,CAAC,CAAC;gBACF,CAAC,uBAAY,CAAC,OAAO,CAAC,KAAK,CAAC,EAClC;gBACE,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAA;aACjE;YACD,uBAAY,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI,CAAC,oBAAoB,CAAC;gBAC/D,uBAAY,CAAC,eAAe,CAAC,oBAAoB,EAAE;oBAC/C,KAAK,EAAE,QAAQ;oBACf,IAAI,EAAE,CAAC,CAAC;oBACR,KAAK,EAAE,CAAC,CAAC;oBACT,KAAK,EAAE,CAAC,CAAC;oBACT,QAAQ;wBACJ,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE,CAAA;oBAClC,CAAC;oBACD,MAAM,EAAE,oBAAoB;iBAC/B,CAAC;gBACF,uBAAY,CAAC,UAAU,CAAC,oBAAoB,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAC,CAAC;gBACxF,uBAAY,CAAC,UAAU,CAAC,0BAA0B,EAAE,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAC,CAAC;gBACnF,uBAAY,CAAC,UAAU,CAAC,0BAA0B,EAAE,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAC,CAAC,CAAA;QAC3F,CAAC","file":"image_manager.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["froala-editor"],function(e,a){"use strict";var t;a&&a.id;return{setters:[function(e){t=e}],execute:function(){if(t.default&&t.default.hasOwnProperty("default")?t.default.default:t.default,Object.assign(t.default.DEFAULTS,{imageManagerLoadURL:"https://i.froala.com/load-files",imageManagerLoadMethod:"get",imageManagerLoadParams:{},imageManagerPreloader:null,imageManagerDeleteURL:"",imageManagerDeleteMethod:"post",imageManagerDeleteParams:{},imageManagerPageSize:12,imageManagerScrollOffset:20,imageManagerToggleTags:!0}),t.default.PLUGINS.imageManagerCustom=e=>{let a,r,i,n,s,o,g,l,d,m,f,c=e.$,u="image_manager",h={};function p(){let e=c(window).outerWidth();return e<768?2:e<1200?3:4}function M(){s.empty();for(let e=0;e<f;e++)s.append('<div class="fr-list-column"></div>')}function v(){if(d<g.length&&(s.outerHeight()<=i.outerHeight()+e.opts.imageManagerScrollOffset||i.scrollTop()+e.opts.imageManagerScrollOffset>s.outerHeight()-i.outerHeight())){l++;for(let a=e.opts.imageManagerPageSize*(l-1);a<Math.min(g.length,e.opts.imageManagerPageSize*l);a++)b(g[a])}}function b(a){let t=new Image,i=c(document.createElement("div")).attr("class","fr-image-container fr-empty fr-image-"+m++).attr("data-loading",e.language.translate("Loading")+"..").attr("data-deleting",e.language.translate("Deleting")+"..");D(!1),t.onload=function(){i.height(Math.floor(i.width()/t.width*t.height));let n=c(document.createElement("img"));if(a.thumb)n.attr("src",a.thumb);else{if(y(14,a),!a.url)return y(15,a),!1;n.attr("src",a.url)}if(a.url&&n.attr("data-url",a.url),a.tag)if(r.find(".fr-modal-more.fr-not-available").removeClass("fr-not-available"),r.find(".fr-modal-tags").show(),0<=a.tag.indexOf(",")){for(let e=a.tag.split(","),t=0;t<e.length;t++)e[t]=e[t].trim(),0===o.find('a[title="'.concat(e[t],'"]')).length&&o.append('<a role="button" title="'.concat(e[t],'">').concat(e[t],"</a>"));n.attr("data-tag",10..join())}else 0===o.find('a[title="'.concat(a.tag.trim(),'"]')).length&&o.append('<a role="button" title="'.concat(a.tag.trim(),'">').concat(a.tag.trim(),"</a>")),n.attr("data-tag",a.tag.trim());for(let e in a.name&&n.attr("alt",a.name),a)a.hasOwnProperty(e)&&"thumb"!==e&&"url"!==e&&"tag"!==e&&n.attr("data-".concat(e),a[e]);i.append(n).append(c(e.icon.create("imageManagerDelete")).addClass("fr-delete-img").attr("title",e.language.translate("Delete"))).append(c(e.icon.create("imageManagerInsert")).addClass("fr-insert-img").attr("title",e.language.translate("Insert"))),o.find(".fr-selected-tag").each(function(e,a){U(n,a.text)||i.hide()}),n.on("load",function(){i.removeClass("fr-empty"),i.height("auto"),d++,L(C(parseInt(n.parent().attr("class").match(/fr-image-(\d+)/)[1],10)+1)),D(!1),d%e.opts.imageManagerPageSize==0&&v()}),e.events.trigger("imageManager.imageLoaded",[n])},t.onerror=()=>{d++,i.remove(),L(C(parseInt(i.attr("class").match(/fr-image-(\d+)/)[1],10)+1)),y(10,a),d%e.opts.imageManagerPageSize==0&&v()},t.src=a.thumb||a.url,w().append(i)}function w(){let e,a;return s.find(".fr-list-column").each((t,r)=>{let i=c(r);(0===t||i.outerHeight()<a)&&(a=i.outerHeight(),e=i)}),e}function C(e){void 0===e&&(e=0);for(let a=[],t=m-1;e<=t;t--){let e=s.find(".fr-image-".concat(t));e.length&&(a.push(e),c(document.createElement("div")).attr("id","fr-image-hidden-container").append(e),s.find(".fr-image-".concat(t)).remove())}return b}function L(e){for(let a=e.length-1;0<=a;a--)w().append(e[a])}function D(t){if(void 0===t&&(t=!0),!a.isVisible())return!0;let r=p();if(r!==f){f=r;let e=C();M(),L(e)}e.modals.resize(u),t&&v()}function S(e){for(let a,t=e[0].attributes,r=t.length,i={};r--;)t[r]&&"src"!==(a=t[r].name)&&(i[a]=t[r].value);return h}function I(t){let r=c(t.currentTarget).siblings("img"),i=a.data("instance")||e,n=a.data("current-image");if(e.modals.hide(u),i.image.showProgressBar(),n)n.data("fr-old-src",n.attr("src")),n.trigger("click");else{i.events.focus(!0),i.selection.restore();let a=i.position.getBoundingRect(),t=a.left+a.width/2+c(e.doc).scrollLeft(),r=a.top+a.height+c(e.doc).scrollTop();i.popups.setContainer("image.insert",e.$sc),i.popups.show("image.insert",t,r)}i.image.insert(r.data("url"),!1,S(r),n)}function P(t){let r=c(t.currentTarget).siblings("img"),i=e.language.translate("Are you sure? Image will be deleted.");confirm(i)&&(e.opts.imageManagerDeleteURL?!1!==e.events.trigger("imageManager.beforeDeleteImage",[r])&&(r.parent().addClass("fr-image-deleting"),c(this).ajax({method:e.opts.imageManagerDeleteMethod,url:e.opts.imageManagerDeleteURL,data:Object.assign(Object.assign({src:r.attr("src")},S(r)),e.opts.imageManagerDeleteParams),crossDomain:e.opts.requestWithCORS,withCredentials:e.opts.requestWithCredentials,headers:e.opts.requestHeaders,done(t,i,n){e.events.trigger("imageManager.imageDeleted",[t]);let s=C(parseInt(r.parent().attr("class").match(/fr-image-(\d+)/)[1],10)+1);r.parent().remove(),L(s),a.find("#fr-modal-tags > a").each(function(){0===a.find('#fr-image-list [data-tag*="'.concat(c(this).text(),'"]')).length&&c(this).removeClass("fr-selected-tag").hide()}),E(),D(!0)},fail(e){y(21,e.response||e.responseText)}})):y(22))}function y(a,t){10<=a&&a<20?n.hide():20<=a&&a<30&&c(".fr-image-deleting").removeClass("fr-image-deleting"),e.events.trigger("imageManager.error",[{code:a,message:h[a]},t])}function T(){let e=r.find(".fr-modal-head-line").outerHeight(),a=o.outerHeight();r.toggleClass("fr-show-tags"),r.hasClass("fr-show-tags")?(r.css("height",e+a),i.css("marginTop",e+a),o.find("a").css("opacity",1)):(r.css("height",e),i.css("marginTop",e),o.find("a").css("opacity",0))}function E(){let e=o.find(".fr-selected-tag");0<e.length?(s.find("img").parents().show(),e.each((e,a)=>{s.find("img").each(function(e,t){let r=c(t);U(r,a.text)||r.parent().hide()})})):s.find("img").parents().show(),L(C()),v()}function R(a){a.preventDefault();let t=c(a.currentTarget);t.toggleClass("fr-selected-tag"),e.opts.imageManagerToggleTags&&t.siblings("a").removeClass("fr-selected-tag"),E()}function U(e,a){for(let t=(e.attr("data-tag")||"").split(","),r=0;r<t.length;r++)if(t[r]===a)return!0;return!1}return h[10]="Image cannot be loaded from the passed link.",h[11]="Error during load images request.",h[12]="Missing imageManagerLoadURL option.",h[13]="Parsing load response failed.",h[14]="Missing image thumb.",h[15]="Missing image URL.",h[21]="Error during delete image request.",h[22]="Missing imageManagerDeleteURL option.",{require:["image"],_init:function(){if(!e.$wp&&"IMG"!==e.el.tagName)return!1},show:function(){if(!a){let n,s='<button class="fr-command fr-btn fr-modal-more fr-not-available" id="fr-modal-more-'.concat(e.sid,'"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24""><path d="').concat(t.default.SVG.tags,'"/></svg></button><h4 data-text="true">').concat(e.language.translate("Manage Images"),'</h4></div>\n <div class="fr-modal-tags" id="fr-modal-tags">');n=e.opts.imageManagerPreloader?'<img class="fr-preloader" id="fr-preloader" alt="'.concat(e.language.translate("Loading"),'.." src="').concat(e.opts.imageManagerPreloader,'" style="display: none;">'):'<span class="fr-preloader" id="fr-preloader" style="display: none;">'.concat(e.language.translate("Loading"),"</span>"),n+='<div class="fr-image-list" id="fr-image-list"></div>';let o=e.modals.create(u,s,n);a=o.$modal,r=o.$head,i=o.$body}a.data("current-image",e.image.get()),e.modals.show(u),n||(n=a.find("#fr-preloader"),s=a.find("#fr-image-list"),o=a.find("#fr-modal-tags"),f=p(),M(),r.css("height",r.find(".fr-modal-head-line").outerHeight()),e.events.$on(c(e.o_win),"resize",()=>{D(!!g)}),e.events.bindClick(s,".fr-insert-img",I),e.events.bindClick(s,".fr-delete-img",P),e.helpers.isMobile()&&(e.events.bindClick(s,"div.fr-image-container",e=>{a.find(".fr-mobile-selected").removeClass("fr-mobile-selected"),c(e.currentTarget).addClass("fr-mobile-selected")}),a.on(e._mousedown,()=>{a.find(".fr-mobile-selected").removeClass("fr-mobile-selected")})),a.on(e._mousedown+" "+e._mouseup,e=>{e.stopPropagation()}),a.on(e._mousedown,"*",()=>{e.events.disableBlur()}),i.on("scroll",v),e.events.bindClick(a,"button#fr-modal-more-".concat(e.sid),T),e.events.bindClick(o,"a",R)),function(){n.show(),s.find(".fr-list-column").empty(),e.opts.imageManagerLoadURL?c(this).ajax({url:e.opts.imageManagerLoadURL,method:e.opts.imageManagerLoadMethod,data:e.opts.imageManagerLoadParams,crossDomain:e.opts.requestWithCORS,withCredentials:e.opts.requestWithCredentials,headers:e.opts.requestHeaders,done(a,t,r){e.events.trigger("imageManager.imagesLoaded",[a]),function(e,a){try{s.find(".fr-list-column").empty(),m=d=l=0,g=JSON.parse(e),v()}catch(e){y(13,a)}}(a,r.response),n.hide()},fail(e){y(11,e.response||e.responseText)}}):y(12)}()},hide:function(){e.modals.hide(u)}}},!t.default.PLUGINS.image)throw new Error("Image manager plugin requires image plugin.");t.default.DEFAULTS.imageInsertButtons.push("imageManagerCustom"),t.default.RegisterCommand("imageManagerCustom",{title:"Browse",undo:!1,focus:!1,modal:!0,callback(){this.imageManagerCustom.show()},plugin:"imageManagerCustom"}),t.default.DefineIcon("imageManagerCustom",{NAME:"folder",SVG_KEY:"imageManager"}),t.default.DefineIcon("imageManagerCustomInsert",{NAME:"plus",SVG_KEY:"add"}),t.default.DefineIcon("imageManagerCustomDelete",{NAME:"trash",SVG_KEY:"remove"})}}});
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
System.register(["@angular/core"], function (exports_1, context_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8
|
-
};
|
|
9
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
10
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
11
|
-
};
|
|
12
|
-
var core_1, FroalaViewDirective;
|
|
13
|
-
var __moduleName = context_1 && context_1.id;
|
|
14
|
-
return {
|
|
15
|
-
setters: [
|
|
16
|
-
function (core_1_1) {
|
|
17
|
-
core_1 = core_1_1;
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
execute: function () {
|
|
21
|
-
FroalaViewDirective = class FroalaViewDirective {
|
|
22
|
-
constructor(renderer, element) {
|
|
23
|
-
this.renderer = renderer;
|
|
24
|
-
this._element = element.nativeElement;
|
|
25
|
-
}
|
|
26
|
-
set froalaView(content) {
|
|
27
|
-
this._element.innerHTML = content;
|
|
28
|
-
}
|
|
29
|
-
ngAfterViewInit() {
|
|
30
|
-
this.renderer.addClass(this._element, 'fr-view');
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
__decorate([
|
|
34
|
-
core_1.Input(),
|
|
35
|
-
__metadata("design:type", String),
|
|
36
|
-
__metadata("design:paramtypes", [String])
|
|
37
|
-
], FroalaViewDirective.prototype, "froalaView", null);
|
|
38
|
-
FroalaViewDirective = __decorate([
|
|
39
|
-
core_1.Directive({
|
|
40
|
-
selector: '[froalaView]'
|
|
41
|
-
}),
|
|
42
|
-
__metadata("design:paramtypes", [core_1.Renderer2, core_1.ElementRef])
|
|
43
|
-
], FroalaViewDirective);
|
|
44
|
-
exports_1("FroalaViewDirective", FroalaViewDirective);
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
//# sourceMappingURL=froala-view.directive.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["froala-view.directive.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;YAMa,mBAAmB,GAAhC,MAAa,mBAAmB;gBAI5B,YAAoB,QAAmB,EAAE,OAAmB;oBAAxC,aAAQ,GAAR,QAAQ,CAAW;oBACnC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAA;gBACzC,CAAC;gBAGQ,IAAI,UAAU,CAAC,OAAe;oBACnC,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAG,OAAO,CAAA;gBACrC,CAAC;gBAGD,eAAe;oBACX,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;gBACpD,CAAC;aACJ,CAAA;YARY;gBAAR,YAAK,EAAE;;;iEAEP;YAXQ,mBAAmB;gBAJ/B,gBAAS,CAAC;oBAEP,QAAQ,EAAE,cAAc;iBAC3B,CAAC;iDAKgC,gBAAS,EAAW,iBAAU;eAJnD,mBAAmB,CAiB/B;;QACD,CAAC","file":"froala-view.directive.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["@angular/core"],function(e,t){"use strict";var r,n,i=this&&this.__decorate||function(e,t,r,n){var i,a=arguments.length,c=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(c=(a<3?i(c):a>3?i(t,r,c):i(t,r))||c);return a>3&&c&&Object.defineProperty(t,r,c),c},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};t&&t.id;return{setters:[function(e){r=e}],execute:function(){n=class{constructor(e,t){this.renderer=e,this._element=t.nativeElement}set froalaView(e){this._element.innerHTML=e}ngAfterViewInit(){this.renderer.addClass(this._element,"fr-view")}},i([r.Input(),a("design:type",String),a("design:paramtypes",[String])],n.prototype,"froalaView",null),n=i([r.Directive({selector:"[froalaView]"}),a("design:paramtypes",[r.Renderer2,r.ElementRef])],n),e("FroalaViewDirective",n)}}});
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
System.register(["@angular/core", "@stratusjs/angular/froala/view/froala-view.directive"], function (exports_1, context_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8
|
-
};
|
|
9
|
-
var FroalaViewModule_1, core_1, froala_view_directive_1, FroalaViewModule;
|
|
10
|
-
var __moduleName = context_1 && context_1.id;
|
|
11
|
-
return {
|
|
12
|
-
setters: [
|
|
13
|
-
function (core_1_1) {
|
|
14
|
-
core_1 = core_1_1;
|
|
15
|
-
},
|
|
16
|
-
function (froala_view_directive_1_1) {
|
|
17
|
-
froala_view_directive_1 = froala_view_directive_1_1;
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
execute: function () {
|
|
21
|
-
FroalaViewModule = FroalaViewModule_1 = class FroalaViewModule {
|
|
22
|
-
static forRoot() {
|
|
23
|
-
return { ngModule: FroalaViewModule_1, providers: [] };
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
FroalaViewModule = FroalaViewModule_1 = __decorate([
|
|
27
|
-
core_1.NgModule({
|
|
28
|
-
declarations: [froala_view_directive_1.FroalaViewDirective],
|
|
29
|
-
exports: [froala_view_directive_1.FroalaViewDirective]
|
|
30
|
-
})
|
|
31
|
-
], FroalaViewModule);
|
|
32
|
-
exports_1("FroalaViewModule", FroalaViewModule);
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
//# sourceMappingURL=froala-view.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["froala-view.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;YAQa,gBAAgB,wBAA7B,MAAa,gBAAgB;gBAClB,MAAM,CAAC,OAAO;oBACjB,OAAO,EAAC,QAAQ,EAAE,kBAAgB,EAAE,SAAS,EAAE,EAAE,EAAC,CAAA;gBACtD,CAAC;aACJ,CAAA;YAJY,gBAAgB;gBAJ5B,eAAQ,CAAC;oBACN,YAAY,EAAE,CAAC,2CAAmB,CAAC;oBACnC,OAAO,EAAE,CAAC,2CAAmB,CAAC;iBACjC,CAAC;eACW,gBAAgB,CAI5B","file":"froala-view.module.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["@angular/core","@stratusjs/angular/froala/view/froala-view.directive"],function(e,t){"use strict";var r,o,i,a,c=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,c=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,o);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(c=(a<3?i(c):a>3?i(t,r,c):i(t,r))||c);return a>3&&c&&Object.defineProperty(t,r,c),c};t&&t.id;return{setters:[function(e){o=e},function(e){i=e}],execute:function(){a=r=class{static forRoot(){return{ngModule:r,providers:[]}}},a=r=c([o.NgModule({declarations:[i.FroalaViewDirective],exports:[i.FroalaViewDirective]})],a),e("FroalaViewModule",a)}}});
|
package/src/froala/view/index.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
System.register(["@stratusjs/angular/froala/view/froala-view.directive", "@stratusjs/angular/froala/view/froala-view.module"], function (exports_1, context_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
var __moduleName = context_1 && context_1.id;
|
|
4
|
-
return {
|
|
5
|
-
setters: [
|
|
6
|
-
function (froala_view_directive_1_1) {
|
|
7
|
-
exports_1({
|
|
8
|
-
"FroalaViewDirective": froala_view_directive_1_1["FroalaViewDirective"]
|
|
9
|
-
});
|
|
10
|
-
},
|
|
11
|
-
function (froala_view_module_1_1) {
|
|
12
|
-
exports_1({
|
|
13
|
-
"FroalaViewModule": froala_view_module_1_1["FroalaViewModule"]
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
execute: function () {
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;QAEA,CAAC","file":"index.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["@stratusjs/angular/froala/view/froala-view.directive","@stratusjs/angular/froala/view/froala-view.module"],function(e,a){"use strict";a&&a.id;return{setters:[function(a){e({FroalaViewDirective:a.FroalaViewDirective})},function(a){e({FroalaViewModule:a.FroalaViewModule})}],execute:function(){}}});
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
System.register(["reflect-metadata", "lodash", "@angular/core"], function (exports_1, context_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
var lodash_1, core_1, RootComponent;
|
|
4
|
-
var __moduleName = context_1 && context_1.id;
|
|
5
|
-
return {
|
|
6
|
-
setters: [
|
|
7
|
-
function (_1) {
|
|
8
|
-
},
|
|
9
|
-
function (lodash_1_1) {
|
|
10
|
-
lodash_1 = lodash_1_1;
|
|
11
|
-
},
|
|
12
|
-
function (core_1_1) {
|
|
13
|
-
core_1 = core_1_1;
|
|
14
|
-
}
|
|
15
|
-
],
|
|
16
|
-
execute: function () {
|
|
17
|
-
RootComponent = class RootComponent {
|
|
18
|
-
hydrate(elementRef, sanitizer, attrs) {
|
|
19
|
-
lodash_1.default.forEach(attrs, (attr) => {
|
|
20
|
-
const metaDataKeys = Reflect.getMetadataKeys(this, attr);
|
|
21
|
-
if (!lodash_1.default.includes(metaDataKeys, 'design:type')) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
const attrKebab = lodash_1.default.kebabCase(attr);
|
|
25
|
-
const variants = [
|
|
26
|
-
attrKebab,
|
|
27
|
-
'data-' + attrKebab
|
|
28
|
-
];
|
|
29
|
-
const variant = lodash_1.default.find(variants, (v) => elementRef.nativeElement.hasAttribute(v));
|
|
30
|
-
if (lodash_1.default.isEmpty(variant)) {
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
const value = sanitizer.sanitize(core_1.SecurityContext.HTML, elementRef.nativeElement.getAttribute(variant));
|
|
34
|
-
lodash_1.default.set(this, attr, value);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports_1("RootComponent", RootComponent);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
//# sourceMappingURL=root.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["root.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;YAWA,gBAAA,MAAa,aAAa;gBAOZ,OAAO,CAAC,UAAsB,EAAE,SAAoB,EAAE,KAAoB;oBAChF,gBAAC,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,IAAY,EAAE,EAAE;wBAC9B,MAAM,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;wBACxD,IAAI,CAAC,gBAAC,CAAC,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC,EAAE;4BAC1C,OAAM;yBACT;wBACD,MAAM,SAAS,GAAG,gBAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;wBACnC,MAAM,QAAQ,GAAG;4BACb,SAAS;4BACT,OAAO,GAAG,SAAS;yBACtB,CAAA;wBACD,MAAM,OAAO,GAAG,gBAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAA;wBACjF,IAAI,gBAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;4BACpB,OAAM;yBACT;wBACD,MAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,CAAC,sBAAe,CAAC,IAAI,EAAE,UAAU,CAAC,aAAa,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAA;wBACtG,gBAAC,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;oBAC5B,CAAC,CAAC,CAAA;gBACN,CAAC;aACJ,CAAA;;QACD,CAAC","file":"root.component.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["reflect-metadata","lodash","@angular/core"],function(t,e){"use strict";var n,a;e&&e.id;return{setters:[function(t){},function(t){n=t},function(t){a=t}],execute:function(){t("RootComponent",class{hydrate(t,e,i){n.default.forEach(i,i=>{const s=Reflect.getMetadataKeys(this,i);if(!n.default.includes(s,"design:type"))return;const u=n.default.kebabCase(i),r=[u,"data-"+u],c=n.default.find(r,e=>t.nativeElement.hasAttribute(e));if(n.default.isEmpty(c))return;const f=e.sanitize(a.SecurityContext.HTML,t.nativeElement.getAttribute(c));n.default.set(this,i,f)})}})}}});
|