@stratusjs/angular 0.5.2 → 0.5.4

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.
Files changed (121) hide show
  1. package/dist/angular.bundle.js +73612 -72175
  2. package/dist/angular.bundle.min.js +1 -1
  3. package/package.json +1 -1
  4. package/src/angular.modules.js +33 -18
  5. package/src/angular.modules.js.map +1 -1
  6. package/src/app.module.js +254 -181
  7. package/src/app.module.js.map +1 -1
  8. package/src/backend.service.js +87 -66
  9. package/src/backend.service.js.map +1 -1
  10. package/src/base/base.component.js +124 -101
  11. package/src/base/base.component.js.map +1 -1
  12. package/src/boot.js +55 -42
  13. package/src/boot.js.map +1 -1
  14. package/src/confirm-dialog/confirm-dialog.component.js +60 -41
  15. package/src/confirm-dialog/confirm-dialog.component.js.map +1 -1
  16. package/src/core/base.interface.js +9 -1
  17. package/src/core/base.interface.js.map +1 -1
  18. package/src/core/refresh.interface.js +9 -1
  19. package/src/core/refresh.interface.js.map +1 -1
  20. package/src/core/responsive.component.js +58 -40
  21. package/src/core/responsive.component.js.map +1 -1
  22. package/src/core/responsive.interface.js +9 -1
  23. package/src/core/responsive.interface.js.map +1 -1
  24. package/src/core/root.component.js +43 -24
  25. package/src/core/root.component.js.map +1 -1
  26. package/src/core/trigger.interface.js +9 -1
  27. package/src/core/trigger.interface.js.map +1 -1
  28. package/src/data/contact-meta.interface.js +9 -1
  29. package/src/data/contact-meta.interface.js.map +1 -1
  30. package/src/data/content.interface.js +9 -1
  31. package/src/data/content.interface.js.map +1 -1
  32. package/src/data/convoy.interface.js +9 -1
  33. package/src/data/convoy.interface.js.map +1 -1
  34. package/src/editor/citation-dialog.component.js +207 -174
  35. package/src/editor/citation-dialog.component.js.map +1 -1
  36. package/src/editor/code-mirror-bridge.js +74 -60
  37. package/src/editor/code-mirror-bridge.js.map +1 -1
  38. package/src/editor/code-mirror-bridge.min.js +1 -1
  39. package/src/editor/code-view-dialog.component.js +116 -87
  40. package/src/editor/code-view-dialog.component.js.map +1 -1
  41. package/src/editor/editor.component.js +961 -903
  42. package/src/editor/editor.component.js.map +1 -1
  43. package/src/editor/link-dialog.component.js +395 -356
  44. package/src/editor/link-dialog.component.js.map +1 -1
  45. package/src/editor/media-dialog.component.js +303 -270
  46. package/src/editor/media-dialog.component.js.map +1 -1
  47. package/src/editor/quill-break-blot.plugin.js +38 -0
  48. package/src/editor/quill-break-blot.plugin.js.map +1 -0
  49. package/src/editor/quill-break-blot.plugin.min.js +1 -0
  50. package/src/editor/quill-html-edit.plugin.js +164 -0
  51. package/src/editor/quill-html-edit.plugin.js.map +1 -0
  52. package/src/editor/quill-html-edit.plugin.min.js +1 -0
  53. package/src/editor/quill-image-format.plugin.js +50 -0
  54. package/src/editor/quill-image-format.plugin.js.map +1 -0
  55. package/src/editor/quill-image-format.plugin.min.js +1 -0
  56. package/src/editor/quill-input-button.plugin.js +98 -0
  57. package/src/editor/quill-input-button.plugin.js.map +1 -0
  58. package/src/editor/quill-input-button.plugin.min.js +1 -0
  59. package/src/froala/editor/froala-editor.directive.js +328 -0
  60. package/src/froala/editor/froala-editor.directive.js.map +1 -0
  61. package/src/froala/editor/froala-editor.directive.min.js +1 -0
  62. package/src/froala/editor/froala-editor.module.js +37 -0
  63. package/src/froala/editor/froala-editor.module.js.map +1 -0
  64. package/src/froala/editor/froala-editor.module.min.js +1 -0
  65. package/src/froala/editor/index.js +22 -0
  66. package/src/froala/editor/index.js.map +1 -0
  67. package/src/froala/editor/index.min.js +1 -0
  68. package/src/froala/plugins/citationManager.js +191 -170
  69. package/src/froala/plugins/citationManager.js.map +1 -1
  70. package/src/froala/plugins/image_manager.js +364 -0
  71. package/src/froala/plugins/image_manager.js.map +1 -0
  72. package/src/froala/plugins/image_manager.min.js +1 -0
  73. package/src/froala/plugins/inputButton.js +138 -122
  74. package/src/froala/plugins/inputButton.js.map +1 -1
  75. package/src/froala/plugins/linkManager.js +104 -89
  76. package/src/froala/plugins/linkManager.js.map +1 -1
  77. package/src/froala/plugins/mediaManager.js +87 -72
  78. package/src/froala/plugins/mediaManager.js.map +1 -1
  79. package/src/froala/plugins/menuButton.js +86 -71
  80. package/src/froala/plugins/menuButton.js.map +1 -1
  81. package/src/froala/view/froala-view.directive.js +49 -0
  82. package/src/froala/view/froala-view.directive.js.map +1 -0
  83. package/src/froala/view/froala-view.directive.min.js +1 -0
  84. package/src/froala/view/froala-view.module.js +37 -0
  85. package/src/froala/view/froala-view.module.js.map +1 -0
  86. package/src/froala/view/froala-view.module.min.js +1 -0
  87. package/src/froala/view/index.js +22 -0
  88. package/src/froala/view/index.js.map +1 -0
  89. package/src/froala/view/index.min.js +1 -0
  90. package/src/main.js +33 -13
  91. package/src/main.js.map +1 -1
  92. package/src/material.js +194 -99
  93. package/src/material.js.map +1 -1
  94. package/src/media-selector/media-selector.component.js +441 -406
  95. package/src/media-selector/media-selector.component.js.map +1 -1
  96. package/src/polyfills.js +16 -3
  97. package/src/polyfills.js.map +1 -1
  98. package/src/quill-plugins/quill-break-blot.plugin.js +35 -19
  99. package/src/quill-plugins/quill-break-blot.plugin.js.map +1 -1
  100. package/src/quill-plugins/quill-html-edit.plugin.js +153 -140
  101. package/src/quill-plugins/quill-html-edit.plugin.js.map +1 -1
  102. package/src/quill-plugins/quill-image-format.plugin.js +47 -33
  103. package/src/quill-plugins/quill-image-format.plugin.js.map +1 -1
  104. package/src/quill-plugins/quill-input-button.plugin.js +95 -77
  105. package/src/quill-plugins/quill-input-button.plugin.js.map +1 -1
  106. package/src/root/root.component.js +43 -0
  107. package/src/root/root.component.js.map +1 -0
  108. package/src/root/root.component.min.js +1 -0
  109. package/src/selector/selector.component.js +284 -241
  110. package/src/selector/selector.component.js.map +1 -1
  111. package/src/selector/selector.component.min.js +1 -1
  112. package/src/selector/selector.component.ts +9 -4
  113. package/src/test/test.directive.js +66 -49
  114. package/src/test/test.directive.js.map +1 -1
  115. package/src/tree/tree-dialog.component.js +231 -202
  116. package/src/tree/tree-dialog.component.js.map +1 -1
  117. package/src/tree/tree-node.component.js +282 -253
  118. package/src/tree/tree-node.component.js.map +1 -1
  119. package/src/tree/tree.component.js +561 -531
  120. package/src/tree/tree.component.js.map +1 -1
  121. package/src/core/dialog.interface.js.map +0 -1
@@ -1,80 +1,98 @@
1
- import { Stratus } from '@stratusjs/runtime/stratus';
2
- import _ from 'lodash';
3
- import Quill from 'quill';
4
- export class QuillInputButtonPlugin {
5
- constructor(quill, options) {
6
- this.debug = false;
7
- this.buttonHTML = '<i class="fas fa-carrot"></i>';
8
- this.buttonTitle = 'Input Button';
9
- this.name = 'inputButton';
10
- this.eventName = 'input-button';
11
- this.uid = _.uniqueId(`quill_input_button_`);
12
- Stratus.Instances[this.uid] = this;
13
- this.debug = options && options.debug;
14
- if (!options || typeof options !== 'object') {
15
- options = {};
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
- this.buttonHTML = options.buttonHTML || this.buttonHTML;
18
- this.buttonTitle = options.buttonTitle || this.buttonTitle;
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":"AACA,OAAO,EACH,OAAO,EACV,MAAM,4BAA4B,CAAA;AAMnC,OAAO,CAAC,MAAM,QAAQ,CAAA;AAGtB,OAAO,KAAK,MAAM,OAAO,CAAA;A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CAAC;gBAED,OAAO,CAAC,IAAY,EAAE,IAAS,EAAE,MAAwB;oBAErD,IAAI,IAAI,CAAC,KAAK,EAAE;wBACZ,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,CAAC,IAAI,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;qBACjE;gBACL,CAAC;aACJ,CAAA;;QAID,CAAC","file":"quill-input-button.plugin.js"}
@@ -0,0 +1,43 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
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)})}})}}});