@stratusjs/angular 0.7.4 → 0.7.5

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 (48) hide show
  1. package/dist/angular.bundle.js +1501 -557
  2. package/dist/angular.bundle.min.js +1 -1
  3. package/package.json +2 -2
  4. package/src/editor/quill-break-blot.plugin.js +38 -0
  5. package/src/editor/quill-break-blot.plugin.js.map +1 -0
  6. package/src/editor/quill-break-blot.plugin.min.js +1 -0
  7. package/src/editor/quill-html-edit.plugin.js +164 -0
  8. package/src/editor/quill-html-edit.plugin.js.map +1 -0
  9. package/src/editor/quill-html-edit.plugin.min.js +1 -0
  10. package/src/editor/quill-image-format.plugin.js +50 -0
  11. package/src/editor/quill-image-format.plugin.js.map +1 -0
  12. package/src/editor/quill-image-format.plugin.min.js +1 -0
  13. package/src/editor/quill-input-button.plugin.js +98 -0
  14. package/src/editor/quill-input-button.plugin.js.map +1 -0
  15. package/src/editor/quill-input-button.plugin.min.js +1 -0
  16. package/src/froala/editor/froala-editor.directive.js +328 -0
  17. package/src/froala/editor/froala-editor.directive.js.map +1 -0
  18. package/src/froala/editor/froala-editor.directive.min.js +1 -0
  19. package/src/froala/editor/froala-editor.module.js +37 -0
  20. package/src/froala/editor/froala-editor.module.js.map +1 -0
  21. package/src/froala/editor/froala-editor.module.min.js +1 -0
  22. package/src/froala/editor/index.js +22 -0
  23. package/src/froala/editor/index.js.map +1 -0
  24. package/src/froala/editor/index.min.js +1 -0
  25. package/src/froala/plugins/image_manager.js +364 -0
  26. package/src/froala/plugins/image_manager.js.map +1 -0
  27. package/src/froala/plugins/image_manager.min.js +1 -0
  28. package/src/froala/plugins/inputButton.js +2 -0
  29. package/src/froala/plugins/inputButton.js.map +1 -1
  30. package/src/froala/plugins/inputButton.min.js +1 -1
  31. package/src/froala/plugins/inputButton.ts +2 -2
  32. package/src/froala/plugins/linkManager.js +2 -2
  33. package/src/froala/plugins/linkManager.js.map +1 -1
  34. package/src/froala/plugins/linkManager.min.js +1 -1
  35. package/src/froala/plugins/linkManager.ts +4 -4
  36. package/src/froala/view/froala-view.directive.js +49 -0
  37. package/src/froala/view/froala-view.directive.js.map +1 -0
  38. package/src/froala/view/froala-view.directive.min.js +1 -0
  39. package/src/froala/view/froala-view.module.js +37 -0
  40. package/src/froala/view/froala-view.module.js.map +1 -0
  41. package/src/froala/view/froala-view.module.min.js +1 -0
  42. package/src/froala/view/index.js +22 -0
  43. package/src/froala/view/index.js.map +1 -0
  44. package/src/froala/view/index.min.js +1 -0
  45. package/src/root/root.component.js +43 -0
  46. package/src/root/root.component.js.map +1 -0
  47. package/src/root/root.component.min.js +1 -0
  48. package/src/core/dialog.interface.js.map +0 -1
@@ -0,0 +1,49 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
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)}}});
@@ -0,0 +1,37 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
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)}}});
@@ -0,0 +1,22 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;QAEA,CAAC","file":"index.js"}
@@ -0,0 +1 @@
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(){}}});
@@ -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)})}})}}});
@@ -1 +0,0 @@
1
- {"version":3,"sources":["dialog.interface.ts"],"names":[],"mappings":"","file":"dialog.interface.js"}