@stratusjs/angular 0.5.2 → 0.5.3
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.min.js +1 -1
- package/package.json +1 -1
- package/src/angular.modules.js +33 -18
- package/src/angular.modules.js.map +1 -1
- package/src/app.module.js +254 -181
- package/src/app.module.js.map +1 -1
- package/src/backend.service.js +87 -66
- package/src/backend.service.js.map +1 -1
- package/src/base/base.component.js +124 -101
- package/src/base/base.component.js.map +1 -1
- package/src/boot.js +55 -42
- package/src/boot.js.map +1 -1
- package/src/confirm-dialog/confirm-dialog.component.js +60 -41
- package/src/confirm-dialog/confirm-dialog.component.js.map +1 -1
- package/src/core/base.interface.js +9 -1
- package/src/core/base.interface.js.map +1 -1
- package/src/core/refresh.interface.js +9 -1
- package/src/core/refresh.interface.js.map +1 -1
- package/src/core/responsive.component.js +58 -40
- package/src/core/responsive.component.js.map +1 -1
- package/src/core/responsive.interface.js +9 -1
- package/src/core/responsive.interface.js.map +1 -1
- package/src/core/root.component.js +43 -24
- package/src/core/root.component.js.map +1 -1
- package/src/core/trigger.interface.js +9 -1
- package/src/core/trigger.interface.js.map +1 -1
- package/src/data/contact-meta.interface.js +9 -1
- package/src/data/contact-meta.interface.js.map +1 -1
- package/src/data/content.interface.js +9 -1
- package/src/data/content.interface.js.map +1 -1
- package/src/data/convoy.interface.js +9 -1
- package/src/data/convoy.interface.js.map +1 -1
- package/src/editor/citation-dialog.component.js +207 -174
- package/src/editor/citation-dialog.component.js.map +1 -1
- package/src/editor/code-mirror-bridge.js +74 -60
- package/src/editor/code-mirror-bridge.js.map +1 -1
- package/src/editor/code-mirror-bridge.min.js +1 -1
- package/src/editor/code-view-dialog.component.js +116 -87
- package/src/editor/code-view-dialog.component.js.map +1 -1
- package/src/editor/editor.component.js +961 -903
- package/src/editor/editor.component.js.map +1 -1
- package/src/editor/link-dialog.component.js +395 -356
- package/src/editor/link-dialog.component.js.map +1 -1
- package/src/editor/media-dialog.component.js +303 -270
- package/src/editor/media-dialog.component.js.map +1 -1
- package/src/froala/plugins/citationManager.js +191 -170
- package/src/froala/plugins/citationManager.js.map +1 -1
- package/src/froala/plugins/inputButton.js +138 -122
- package/src/froala/plugins/inputButton.js.map +1 -1
- package/src/froala/plugins/linkManager.js +104 -89
- package/src/froala/plugins/linkManager.js.map +1 -1
- package/src/froala/plugins/mediaManager.js +87 -72
- package/src/froala/plugins/mediaManager.js.map +1 -1
- package/src/froala/plugins/menuButton.js +86 -71
- package/src/froala/plugins/menuButton.js.map +1 -1
- package/src/main.js +33 -13
- package/src/main.js.map +1 -1
- package/src/material.js +194 -99
- package/src/material.js.map +1 -1
- package/src/media-selector/media-selector.component.js +441 -406
- package/src/media-selector/media-selector.component.js.map +1 -1
- package/src/polyfills.js +16 -3
- package/src/polyfills.js.map +1 -1
- package/src/quill-plugins/quill-break-blot.plugin.js +35 -19
- package/src/quill-plugins/quill-break-blot.plugin.js.map +1 -1
- package/src/quill-plugins/quill-html-edit.plugin.js +153 -140
- package/src/quill-plugins/quill-html-edit.plugin.js.map +1 -1
- package/src/quill-plugins/quill-image-format.plugin.js +47 -33
- package/src/quill-plugins/quill-image-format.plugin.js.map +1 -1
- package/src/quill-plugins/quill-input-button.plugin.js +95 -77
- package/src/quill-plugins/quill-input-button.plugin.js.map +1 -1
- package/src/selector/selector.component.js +276 -241
- package/src/selector/selector.component.js.map +1 -1
- package/src/test/test.directive.js +66 -49
- package/src/test/test.directive.js.map +1 -1
- package/src/tree/tree-dialog.component.js +231 -202
- package/src/tree/tree-dialog.component.js.map +1 -1
- package/src/tree/tree-node.component.js +282 -253
- package/src/tree/tree-node.component.js.map +1 -1
- package/src/tree/tree.component.js +561 -531
- package/src/tree/tree.component.js.map +1 -1
|
@@ -1,80 +1,98 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
System.register(["@stratusjs/runtime/stratus", "lodash", "quill"], function (exports_1, context_1) {
|
|
2
|
+
"use strict";
|
|
3
|
+
var stratus_1, lodash_1, quill_1, QuillInputButtonPlugin;
|
|
4
|
+
var __moduleName = context_1 && context_1.id;
|
|
5
|
+
return {
|
|
6
|
+
setters: [
|
|
7
|
+
function (stratus_1_1) {
|
|
8
|
+
stratus_1 = stratus_1_1;
|
|
9
|
+
},
|
|
10
|
+
function (lodash_1_1) {
|
|
11
|
+
lodash_1 = lodash_1_1;
|
|
12
|
+
},
|
|
13
|
+
function (quill_1_1) {
|
|
14
|
+
quill_1 = quill_1_1;
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
execute: function () {
|
|
18
|
+
QuillInputButtonPlugin = class QuillInputButtonPlugin {
|
|
19
|
+
constructor(quill, options) {
|
|
20
|
+
this.debug = false;
|
|
21
|
+
this.buttonHTML = '<i class="fas fa-carrot"></i>';
|
|
22
|
+
this.buttonTitle = 'Input Button';
|
|
23
|
+
this.name = 'inputButton';
|
|
24
|
+
this.eventName = 'input-button';
|
|
25
|
+
this.uid = lodash_1.default.uniqueId(`quill_input_button_`);
|
|
26
|
+
stratus_1.Stratus.Instances[this.uid] = this;
|
|
27
|
+
this.debug = options && options.debug;
|
|
28
|
+
if (!options || typeof options !== 'object') {
|
|
29
|
+
options = {};
|
|
30
|
+
}
|
|
31
|
+
this.buttonHTML = options.buttonHTML || this.buttonHTML;
|
|
32
|
+
this.buttonTitle = options.buttonTitle || this.buttonTitle;
|
|
33
|
+
this.name = options.name || this.name;
|
|
34
|
+
this.eventName = options.eventName || this.eventName;
|
|
35
|
+
this.createToolbarModule(quill);
|
|
36
|
+
}
|
|
37
|
+
createToolbarModule(quill) {
|
|
38
|
+
const toolbarModule = quill.getModule('toolbar');
|
|
39
|
+
if (!toolbarModule) {
|
|
40
|
+
throw new Error(`quill.${this.name} requires the "toolbar" module`);
|
|
41
|
+
}
|
|
42
|
+
this.registerDivModule();
|
|
43
|
+
const toolbarEl = toolbarModule.container;
|
|
44
|
+
const buttonContainer = document.createElement('span');
|
|
45
|
+
buttonContainer.setAttribute('class', 'ql-formats');
|
|
46
|
+
const button = document.createElement('button');
|
|
47
|
+
button.innerHTML = this.buttonHTML;
|
|
48
|
+
button.title = this.buttonTitle;
|
|
49
|
+
button.onclick = (e) => {
|
|
50
|
+
e.preventDefault();
|
|
51
|
+
this.onClick(quill);
|
|
52
|
+
};
|
|
53
|
+
buttonContainer.appendChild(button);
|
|
54
|
+
toolbarEl.appendChild(buttonContainer);
|
|
55
|
+
}
|
|
56
|
+
registerDivModule() {
|
|
57
|
+
const Block = quill_1.default.import('blots/block');
|
|
58
|
+
class Div extends Block {
|
|
59
|
+
}
|
|
60
|
+
Div.tagName = 'div';
|
|
61
|
+
Div.blotName = 'div';
|
|
62
|
+
Div.allowedChildren = Block.allowedChildren;
|
|
63
|
+
Div.allowedChildren.push(Block);
|
|
64
|
+
quill_1.default.register(Div);
|
|
65
|
+
}
|
|
66
|
+
findUID(el) {
|
|
67
|
+
if ('uid' in el.dataset) {
|
|
68
|
+
return el.dataset.uid;
|
|
69
|
+
}
|
|
70
|
+
return this.findUID(el.parentElement);
|
|
71
|
+
}
|
|
72
|
+
getInstance(uid) {
|
|
73
|
+
if (!(uid in stratus_1.Stratus.Instances)) {
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
return stratus_1.Stratus.Instances[uid];
|
|
77
|
+
}
|
|
78
|
+
onClick(quill) {
|
|
79
|
+
const container = quill.container;
|
|
80
|
+
const uid = this.findUID(container);
|
|
81
|
+
const instance = this.getInstance(uid);
|
|
82
|
+
if (!instance) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
instance.trigger(this.eventName, null, this);
|
|
86
|
+
}
|
|
87
|
+
trigger(name, data, callee) {
|
|
88
|
+
if (this.debug) {
|
|
89
|
+
console.log(`quill.${this.name}.trigger:`, name, data, callee);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
exports_1("QuillInputButtonPlugin", QuillInputButtonPlugin);
|
|
16
94
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
this.name = options.name || this.name;
|
|
20
|
-
this.eventName = options.eventName || this.eventName;
|
|
21
|
-
this.createToolbarModule(quill);
|
|
22
|
-
}
|
|
23
|
-
createToolbarModule(quill) {
|
|
24
|
-
const toolbarModule = quill.getModule('toolbar');
|
|
25
|
-
if (!toolbarModule) {
|
|
26
|
-
throw new Error(`quill.${this.name} requires the "toolbar" module`);
|
|
27
|
-
}
|
|
28
|
-
this.registerDivModule();
|
|
29
|
-
const toolbarEl = toolbarModule.container;
|
|
30
|
-
const buttonContainer = document.createElement('span');
|
|
31
|
-
buttonContainer.setAttribute('class', 'ql-formats');
|
|
32
|
-
const button = document.createElement('button');
|
|
33
|
-
button.innerHTML = this.buttonHTML;
|
|
34
|
-
button.title = this.buttonTitle;
|
|
35
|
-
button.onclick = (e) => {
|
|
36
|
-
e.preventDefault();
|
|
37
|
-
this.onClick(quill);
|
|
38
|
-
};
|
|
39
|
-
buttonContainer.appendChild(button);
|
|
40
|
-
toolbarEl.appendChild(buttonContainer);
|
|
41
|
-
}
|
|
42
|
-
registerDivModule() {
|
|
43
|
-
const Block = Quill.import('blots/block');
|
|
44
|
-
class Div extends Block {
|
|
45
|
-
}
|
|
46
|
-
Div.tagName = 'div';
|
|
47
|
-
Div.blotName = 'div';
|
|
48
|
-
Div.allowedChildren = Block.allowedChildren;
|
|
49
|
-
Div.allowedChildren.push(Block);
|
|
50
|
-
Quill.register(Div);
|
|
51
|
-
}
|
|
52
|
-
findUID(el) {
|
|
53
|
-
if ('uid' in el.dataset) {
|
|
54
|
-
return el.dataset.uid;
|
|
55
|
-
}
|
|
56
|
-
return this.findUID(el.parentElement);
|
|
57
|
-
}
|
|
58
|
-
getInstance(uid) {
|
|
59
|
-
if (!(uid in Stratus.Instances)) {
|
|
60
|
-
return undefined;
|
|
61
|
-
}
|
|
62
|
-
return Stratus.Instances[uid];
|
|
63
|
-
}
|
|
64
|
-
onClick(quill) {
|
|
65
|
-
const container = quill.container;
|
|
66
|
-
const uid = this.findUID(container);
|
|
67
|
-
const instance = this.getInstance(uid);
|
|
68
|
-
if (!instance) {
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
instance.trigger(this.eventName, null, this);
|
|
72
|
-
}
|
|
73
|
-
trigger(name, data, callee) {
|
|
74
|
-
if (this.debug) {
|
|
75
|
-
console.log(`quill.${this.name}.trigger:`, name, data, callee);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
95
|
+
};
|
|
96
|
+
});
|
|
79
97
|
|
|
80
98
|
//# sourceMappingURL=quill-input-button.plugin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["quill-input-button.plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["quill-input-button.plugin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;YAeA,yBAAA,MAAa,sBAAsB;gBAY/B,YAAY,KAAU,EAAE,OAAY;oBAPpC,UAAK,GAAG,KAAK,CAAA;oBACb,eAAU,GAAG,+BAA+B,CAAA;oBAC5C,gBAAW,GAAG,cAAc,CAAA;oBAC5B,SAAI,GAAG,aAAa,CAAA;oBACpB,cAAS,GAAG,cAAc,CAAA;oBAKtB,IAAI,CAAC,GAAG,GAAG,gBAAC,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAA;oBAC5C,iBAAO,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;oBAElC,IAAI,CAAC,KAAK,GAAG,OAAO,IAAI,OAAO,CAAC,KAAK,CAAA;oBAGrC,IAAI,CAAC,OAAO,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;wBACzC,OAAO,GAAG,EA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