@stratusjs/angular 0.11.3 → 0.12.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.
Files changed (130) hide show
  1. package/dist/angular.bundle.js +5441 -6590
  2. package/dist/angular.bundle.min.js +1 -1
  3. package/package.json +1 -1
  4. package/src/app.module.js +3 -3
  5. package/src/app.module.js.map +1 -1
  6. package/src/app.module.min.js +1 -1
  7. package/src/backend.service.js +4 -1
  8. package/src/backend.service.js.map +1 -1
  9. package/src/backend.service.min.js +1 -1
  10. package/src/base/base.component.js +16 -2
  11. package/src/base/base.component.js.map +1 -1
  12. package/src/base/base.component.min.js +1 -1
  13. package/src/base/base.component.ts +0 -1
  14. package/src/confirm-dialog/confirm-dialog.component.js +2 -0
  15. package/src/confirm-dialog/confirm-dialog.component.js.map +1 -1
  16. package/src/confirm-dialog/confirm-dialog.component.min.js +1 -1
  17. package/src/core/responsive.component.js +5 -5
  18. package/src/core/responsive.component.js.map +1 -1
  19. package/src/core/responsive.component.min.js +1 -1
  20. package/src/editor/citation-dialog.component.js +23 -7
  21. package/src/editor/citation-dialog.component.js.map +1 -1
  22. package/src/editor/citation-dialog.component.min.js +1 -1
  23. package/src/editor/citation-dialog.component.ts +0 -1
  24. package/src/editor/code-mirror-bridge.js +4 -0
  25. package/src/editor/code-mirror-bridge.js.map +1 -1
  26. package/src/editor/code-mirror-bridge.min.js +1 -1
  27. package/src/editor/code-view-dialog.component.js +18 -10
  28. package/src/editor/code-view-dialog.component.js.map +1 -1
  29. package/src/editor/code-view-dialog.component.min.js +1 -1
  30. package/src/editor/code-view-dialog.component.ts +0 -1
  31. package/src/editor/editor.component.js +548 -525
  32. package/src/editor/editor.component.js.map +1 -1
  33. package/src/editor/editor.component.min.js +1 -1
  34. package/src/editor/editor.component.ts +0 -1
  35. package/src/editor/link-dialog.component.js +39 -20
  36. package/src/editor/link-dialog.component.js.map +1 -1
  37. package/src/editor/link-dialog.component.min.js +1 -1
  38. package/src/editor/link-dialog.component.ts +0 -1
  39. package/src/editor/media-dialog.component.js +25 -11
  40. package/src/editor/media-dialog.component.js.map +1 -1
  41. package/src/editor/media-dialog.component.min.js +1 -1
  42. package/src/editor/media-dialog.component.ts +0 -1
  43. package/src/editor/quill-break-blot.plugin.js +38 -0
  44. package/src/editor/quill-break-blot.plugin.js.map +1 -0
  45. package/src/editor/quill-break-blot.plugin.min.js +1 -0
  46. package/src/editor/quill-html-edit.plugin.js +164 -0
  47. package/src/editor/quill-html-edit.plugin.js.map +1 -0
  48. package/src/editor/quill-html-edit.plugin.min.js +1 -0
  49. package/src/editor/quill-image-format.plugin.js +50 -0
  50. package/src/editor/quill-image-format.plugin.js.map +1 -0
  51. package/src/editor/quill-image-format.plugin.min.js +1 -0
  52. package/src/editor/quill-input-button.plugin.js +98 -0
  53. package/src/editor/quill-input-button.plugin.js.map +1 -0
  54. package/src/editor/quill-input-button.plugin.min.js +1 -0
  55. package/src/froala/editor/froala-editor.directive.js +328 -0
  56. package/src/froala/editor/froala-editor.directive.js.map +1 -0
  57. package/src/froala/editor/froala-editor.directive.min.js +1 -0
  58. package/src/froala/editor/froala-editor.module.js +37 -0
  59. package/src/froala/editor/froala-editor.module.js.map +1 -0
  60. package/src/froala/editor/froala-editor.module.min.js +1 -0
  61. package/src/froala/editor/index.js +22 -0
  62. package/src/froala/editor/index.js.map +1 -0
  63. package/src/froala/editor/index.min.js +1 -0
  64. package/src/froala/plugins/citationManager.min.js +1 -1
  65. package/src/froala/plugins/image_manager.js +364 -0
  66. package/src/froala/plugins/image_manager.js.map +1 -0
  67. package/src/froala/plugins/image_manager.min.js +1 -0
  68. package/src/froala/plugins/inputButton.js +11 -7
  69. package/src/froala/plugins/inputButton.js.map +1 -1
  70. package/src/froala/plugins/inputButton.min.js +1 -1
  71. package/src/froala/plugins/linkManager.ts +1 -1
  72. package/src/froala/plugins/mediaManager.min.js +1 -1
  73. package/src/froala/plugins/menuButton.min.js +1 -1
  74. package/src/froala/view/froala-view.directive.js +49 -0
  75. package/src/froala/view/froala-view.directive.js.map +1 -0
  76. package/src/froala/view/froala-view.directive.min.js +1 -0
  77. package/src/{angular.modules.js → froala/view/froala-view.module.js} +14 -12
  78. package/src/froala/view/froala-view.module.js.map +1 -0
  79. package/src/froala/view/froala-view.module.min.js +1 -0
  80. package/src/froala/view/index.js +22 -0
  81. package/src/froala/view/index.js.map +1 -0
  82. package/src/froala/view/index.min.js +1 -0
  83. package/src/media-selector/media-selector.component.js +76 -46
  84. package/src/media-selector/media-selector.component.js.map +1 -1
  85. package/src/media-selector/media-selector.component.min.js +1 -1
  86. package/src/media-selector/media-selector.component.ts +0 -1
  87. package/src/quill-plugins/quill-image-format.plugin.js +2 -5
  88. package/src/quill-plugins/quill-image-format.plugin.js.map +1 -1
  89. package/src/quill-plugins/quill-image-format.plugin.min.js +1 -1
  90. package/src/quill-plugins/quill-input-button.plugin.js +6 -5
  91. package/src/quill-plugins/quill-input-button.plugin.js.map +1 -1
  92. package/src/quill-plugins/quill-input-button.plugin.min.js +1 -1
  93. package/src/root/root.component.js +43 -0
  94. package/src/root/root.component.js.map +1 -0
  95. package/src/root/root.component.min.js +1 -0
  96. package/src/selector/selector.component.js +34 -12
  97. package/src/selector/selector.component.js.map +1 -1
  98. package/src/selector/selector.component.min.js +1 -1
  99. package/src/selector/selector.component.ts +0 -1
  100. package/src/test/test.directive.js +2 -0
  101. package/src/test/test.directive.js.map +1 -1
  102. package/src/test/test.directive.min.js +1 -1
  103. package/src/timezone-selector/timezone-selector.component.js +31 -9
  104. package/src/timezone-selector/timezone-selector.component.js.map +1 -1
  105. package/src/timezone-selector/timezone-selector.component.min.js +1 -1
  106. package/src/timezone-selector/timezone-selector.component.ts +0 -1
  107. package/src/tree/tree-dialog.component.js +31 -18
  108. package/src/tree/tree-dialog.component.js.map +1 -1
  109. package/src/tree/tree-dialog.component.min.js +1 -1
  110. package/src/tree/tree-dialog.component.ts +0 -1
  111. package/src/tree/tree-node.component.js +13 -7
  112. package/src/tree/tree-node.component.js.map +1 -1
  113. package/src/tree/tree-node.component.min.js +1 -1
  114. package/src/tree/tree-node.component.ts +0 -1
  115. package/src/tree/tree.component.js +50 -22
  116. package/src/tree/tree.component.js.map +1 -1
  117. package/src/tree/tree.component.min.js +1 -1
  118. package/src/tree/tree.component.ts +0 -1
  119. package/src/angular.modules.js.map +0 -1
  120. package/src/angular.modules.min.js +0 -1
  121. package/src/core/dialog.interface.js.map +0 -1
  122. package/src/json/json.component.css +0 -2
  123. package/src/json/json.component.css.map +0 -1
  124. package/src/json/json.component.js +0 -257
  125. package/src/json/json.component.js.map +0 -1
  126. package/src/json/json.component.min.css +0 -0
  127. package/src/json/json.component.min.js +0 -1
  128. package/src/material.js +0 -196
  129. package/src/material.js.map +0 -1
  130. package/src/material.min.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stratusjs/angular",
3
- "version": "0.11.3",
3
+ "version": "0.12.0",
4
4
  "description": "This is the angular package for StratusJS.",
5
5
  "scripts": {},
6
6
  "repository": {
package/src/app.module.js CHANGED
@@ -47,10 +47,10 @@ System.register(["lodash", "@stratusjs/runtime/stratus", "@angular/core", "./ang
47
47
  }
48
48
  });
49
49
  AppModule = class AppModule {
50
+ initialTimeout = 1000;
51
+ instances = {};
52
+ modules = appModuleComponents;
50
53
  constructor() {
51
- this.initialTimeout = 1000;
52
- this.instances = {};
53
- this.modules = appModuleComponents;
54
54
  stratus_1.Stratus.Instances[lodash_1.uniqueId('sa_app_module_')] = this;
55
55
  }
56
56
  ngDoBootstrap(appRef) {
@@ -1 +1 @@
1
- {"version":3,"sources":["app.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAuDM,eAAe,GAAU,EAAE,CAAA;YAE3B,mBAAmB,GAAG,EAAE,CAAA;YAGxB,eAAe,GAAqB;gBACtC,+BAAc;gBACd,uBAAU;gBACV,6BAAa;aAChB,CAAA;YACD,eAAe,CAAC,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;qBACtC;iBACJ,CAAC;;eACW,SAAS,CAyErB;;QACD,CAAC","file":"app.module.js"}
@@ -1 +1 @@
1
- System.register(["lodash","@stratusjs/runtime/stratus","@angular/core","./angular.module","../../map/src/map.module","../../stripe/src/stripe.module"],function(t,e){"use strict";var i,o,n,s,a,r,u,c,l,f=this&&this.__decorate||function(t,e,i,o){var n,s=arguments.length,a=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(a=(s<3?n(a):s>3?n(e,i,a):n(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};e&&e.id;return{setters:[function(t){i=t},function(t){o=t},function(t){n=t},function(t){s=t},function(t){a=t},function(t){r=t}],execute:function(){u=[],c={},[s.AngularPackage,a.MapPackage,r.StripePackage].forEach(t=>{u.push(t.stratusModule),t.hasOwnProperty("stratusComponents")&&i.extend(c,t.stratusComponents)}),l=class{constructor(){this.initialTimeout=1e3,this.instances={},this.modules=c,o.Stratus.Instances[i.uniqueId("sa_app_module_")]=this}ngDoBootstrap(t){this.detectBoot(t)}exponentialTimeout(t){if(i.isNumber(t)&&t<this.initialTimeout)return t;const e=this.initialTimeout;return this.initialTimeout=1.01*this.initialTimeout,e}detectBoot(t){i.forEach(this.modules,(e,o)=>{const n=document.getElementsByTagName(o);n&&n.length&&i.forEach(n,i=>{i.hasAttribute("ng-version")||t.bootstrap(e,i)})}),setTimeout(()=>{this.detectBoot(t)},this.exponentialTimeout(4e3))}},l=f([n.NgModule({imports:u,providers:[{provide:Window,useValue:window}]}),p("design:paramtypes",[])],l),t("AppModule",l)}}});
1
+ System.register(["lodash","@stratusjs/runtime/stratus","@angular/core","./angular.module","../../map/src/map.module","../../stripe/src/stripe.module"],function(t,e){"use strict";var o,i,n,s,a,r,u,c,l,f=this&&this.__decorate||function(t,e,o,i){var n,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,i);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(a=(s<3?n(a):s>3?n(e,o,a):n(e,o))||a);return s>3&&a&&Object.defineProperty(e,o,a),a},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};e&&e.id;return{setters:[function(t){o=t},function(t){i=t},function(t){n=t},function(t){s=t},function(t){a=t},function(t){r=t}],execute:function(){u=[],c={},[s.AngularPackage,a.MapPackage,r.StripePackage].forEach(t=>{u.push(t.stratusModule),t.hasOwnProperty("stratusComponents")&&o.extend(c,t.stratusComponents)}),l=class{initialTimeout=1e3;instances={};modules=c;constructor(){i.Stratus.Instances[o.uniqueId("sa_app_module_")]=this}ngDoBootstrap(t){this.detectBoot(t)}exponentialTimeout(t){if(o.isNumber(t)&&t<this.initialTimeout)return t;const e=this.initialTimeout;return this.initialTimeout=1.01*this.initialTimeout,e}detectBoot(t){o.forEach(this.modules,(e,i)=>{const n=document.getElementsByTagName(i);n&&n.length&&o.forEach(n,o=>{o.hasAttribute("ng-version")||t.bootstrap(e,o)})}),setTimeout(()=>{this.detectBoot(t)},this.exponentialTimeout(4e3))}},l=f([n.NgModule({imports:u,providers:[{provide:Window,useValue:window}]}),p("design:paramtypes",[])],l),t("AppModule",l)}}});
@@ -31,9 +31,12 @@ System.register(["@angular/core", "@angular/common/http", "rxjs", "@stratusjs/ru
31
31
  ],
32
32
  execute: function () {
33
33
  BackendService = class BackendService {
34
+ http;
35
+ title = 'backend';
36
+ uid;
37
+ cache;
34
38
  constructor(http) {
35
39
  this.http = http;
36
- this.title = 'backend';
37
40
  this.uid = lodash_1.default.uniqueId('sa_backend_service_');
38
41
  stratus_1.Stratus.Instances[this.uid]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OAAO,EAAE,UAAU,EAAE,CAAC;yBACjC,SAAS,CAAC,CAAC,QAA2B,EAAE,EAAE;wBACvC,KAAK,CAAC,IAAI,GAAG,QAAQ,CAAA;wBACrB,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;wBACzB,UAAU,CAAC,QAAQ,EAAE,CAAA;oBACzB,CAAC,CAAC,CAAA;gBACV,CAAC;aACJ,CAAA;YA7DY,cAAc;gBAH1B,iBAAU,CAAC;oBACR,UAAU,EAAE,MAAM;iBACrB,CAAC;iDAU4B,iBAAU;eAT3B,cAAc,CA6D1B;;QACD,CAAC","file":"backend.service.js"}
@@ -1 +1 @@
1
- System.register(["@angular/core","@angular/common/http","rxjs","@stratusjs/runtime/stratus","lodash"],function(t,e){"use strict";var n,r,i,s,a,c,o=this&&this.__decorate||function(t,e,n,r){var i,s=arguments.length,a=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(a=(s<3?i(a):s>3?i(e,n,a):i(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};e&&e.id;return{setters:[function(t){n=t},function(t){r=t},function(t){i=t},function(t){s=t},function(t){a=t}],execute:function(){c=class{constructor(t){this.http=t,this.title="backend",this.uid=a.default.uniqueId("sa_backend_service_"),s.Stratus.Instances[this.uid]=this,this.cache={}}get(t){if(!a.default.isString(t))return void console.error("url is not a string:",t);if(t in this.cache)return this.cache[t].observable;const e=new Date;return(this.cache[t]={fetched:e.valueOf(),observable:new i.Observable(e=>this.getData(t,e))}).observable}getData(t,e){if(!a.default.isString(t))return void console.error("url is not a string:",t);if(!(t in this.cache))return;const n=this.cache[t];if("data"in n)return e.next(n.data),void e.complete();this.http.get(t,{observe:"response"}).subscribe(t=>{n.data=t,e.next(t),e.complete()})}},c=o([n.Injectable({providedIn:"root"}),u("design:paramtypes",[r.HttpClient])],c),t("BackendService",c)}}});
1
+ System.register(["@angular/core","@angular/common/http","rxjs","@stratusjs/runtime/stratus","lodash"],function(t,e){"use strict";var n,r,i,c,a,s,o=this&&this.__decorate||function(t,e,n,r){var i,c=arguments.length,a=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(c<3?i(a):c>3?i(e,n,a):i(e,n))||a);return c>3&&a&&Object.defineProperty(e,n,a),a},u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};e&&e.id;return{setters:[function(t){n=t},function(t){r=t},function(t){i=t},function(t){c=t},function(t){a=t}],execute:function(){s=class{http;title="backend";uid;cache;constructor(t){this.http=t,this.uid=a.default.uniqueId("sa_backend_service_"),c.Stratus.Instances[this.uid]=this,this.cache={}}get(t){if(!a.default.isString(t))return void console.error("url is not a string:",t);if(t in this.cache)return this.cache[t].observable;const e=new Date;return(this.cache[t]={fetched:e.valueOf(),observable:new i.Observable(e=>this.getData(t,e))}).observable}getData(t,e){if(!a.default.isString(t))return void console.error("url is not a string:",t);if(!(t in this.cache))return;const n=this.cache[t];if("data"in n)return e.next(n.data),void e.complete();this.http.get(t,{observe:"response"}).subscribe(t=>{n.data=t,e.next(t),e.complete()})}},s=o([n.Injectable({providedIn:"root"}),u("design:paramtypes",[r.HttpClient])],s),t("BackendService",s)}}});
@@ -38,14 +38,28 @@ System.register(["@angular/core", "@angular/platform-browser", "@stratusjs/runti
38
38
  min = !environment_1.cookie('env') ? '.min' : '';
39
39
  localDir = `${stratus_1.Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
40
40
  BaseComponent = class BaseComponent extends root_component_1.RootComponent {
41
+ sanitizer;
42
+ ref;
43
+ elementRef;
44
+ title = moduleName + '_component';
45
+ target;
46
+ targetSuffix;
47
+ id;
48
+ manifest;
49
+ decouple;
50
+ direct;
51
+ api;
52
+ urlRoot;
53
+ type;
54
+ property;
55
+ endpoint;
41
56
  constructor(sanitizer, ref, elementRef) {
42
57
  super();
43
58
  this.sanitizer = sanitizer;
44
59
  this.ref = ref;
45
60
  this.elementRef = elementRef;
46
- this.title = moduleName + '_component';
47
61
  stratus_1.Stratus.Instances[lodash_1.default.uniqueId('sa_base_component_')] = this;
48
- this.hydrate(this.elementRef, this.sanitizer, ["title", "uid", "target", "targetSuffix", "id", "manifest", "decouple", "direct", "api", "urlRoot", "type", "property", "endpoint", "sanitizer", "ref", "elementRef", "ngOnInit", "ngOnChanges", "hydrate", "disableRefresh", "stagger", "reloading", "refresh", "ngOnDestroy"]);
62
+ this.hydrate(this.elementRef, this.sanitizer, ["title", "target", "targetSuffix", "id", "manifest", "decouple", "direct", "api", "urlRoot", "type", "property", "endpoint", "sanitizer", "ref", "elementRef", "ngOnInit", "ngOnChanges", "hydrate", "uid", "disableRefresh", "stagger", "reloading", "refresh", "ngOnDestroy"]);
49
63
  }
50
64
  ngOnInit() {
51
65
  console.info('selector.ngOnInit');
@@ -1 +1 @@
1
- {"version":3,"sources":["base.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAuCM,SAAS,GAAG,oBAAoB,CAAA;YAChC,UAAU,GAAG,MAAM,CAAA;YAGnB,GAAG,GAAG,CAAC,oBAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAA;YAClC,QAAQ,GAAG,GAAG,iBAAO,CAAC,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,SAAS,IAAI,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,O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EAAE;;uDAAa;YACrB;gBAAC,YAAK,EAAE;;2DAAiB;YACzB;gBAAC,YAAK,EAAE;;2DAAiB;YAlBhB,aAAa;gBATzB,gBAAS,CAAC;oBACP,QAAQ,EAAE,kBAAkB;oBAE5B,WAAW,EAAE,GAAG,QAAQ,IAAI,UAAU,IAAI,UAAU,aAAa,GAAG,OAAO;iBAI9E,CAAC;iDAuByB,+BAAY;oBAChB,wBAAiB;oBACZ,iBAAU;eAvBzB,aAAa,CAsDzB;;QACD,CAAC","file":"base.component.js"}
@@ -1 +1 @@
1
- System.register(["@angular/core","@angular/platform-browser","@stratusjs/runtime/stratus","lodash","@stratusjs/core/environment","../core/root.component"],function(t,e){"use strict";var n,o,i,r,s,p,a,u,c,d,f=this&&this.__decorate||function(t,e,n,o){var i,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var p=t.length-1;p>=0;p--)(i=t[p])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};e&&e.id;return{setters:[function(t){n=t},function(t){o=t},function(t){i=t},function(t){r=t},function(t){s=t},function(t){p=t}],execute:function(){"@stratusjs/angular",a="base",u=s.cookie("env")?"":".min",c=`${i.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,d=class extends p.RootComponent{constructor(t,e,n){super(),this.sanitizer=t,this.ref=e,this.elementRef=n,this.title=a+"_component",i.Stratus.Instances[r.default.uniqueId("sa_base_component_")]=this,this.hydrate(this.elementRef,this.sanitizer,["title","uid","target","targetSuffix","id","manifest","decouple","direct","api","urlRoot","type","property","endpoint","sanitizer","ref","elementRef","ngOnInit","ngOnChanges","hydrate","disableRefresh","stagger","reloading","refresh","ngOnDestroy"])}ngOnInit(){console.info("selector.ngOnInit")}ngOnChanges(){s.cookie("env")&&console.log("inputs:",{target:this.target,targetSuffix:this.targetSuffix,id:this.id,manifest:this.manifest,decouple:this.decouple,direct:this.direct,api:this.api,urlRoot:this.urlRoot})}},f([n.Input(),l("design:type",String)],d.prototype,"target",void 0),f([n.Input(),l("design:type",String)],d.prototype,"targetSuffix",void 0),f([n.Input(),l("design:type",Number)],d.prototype,"id",void 0),f([n.Input(),l("design:type",Boolean)],d.prototype,"manifest",void 0),f([n.Input(),l("design:type",Boolean)],d.prototype,"decouple",void 0),f([n.Input(),l("design:type",Boolean)],d.prototype,"direct",void 0),f([n.Input(),l("design:type",Object)],d.prototype,"api",void 0),f([n.Input(),l("design:type",String)],d.prototype,"urlRoot",void 0),f([n.Input(),l("design:type",String)],d.prototype,"type",void 0),f([n.Input(),l("design:type",String)],d.prototype,"property",void 0),f([n.Input(),l("design:type",String)],d.prototype,"endpoint",void 0),d=f([n.Component({selector:"sa-internal-base",templateUrl:`${c}/${a}/${a}.component${u}.html`}),l("design:paramtypes",[o.DomSanitizer,n.ChangeDetectorRef,n.ElementRef])],d),t("BaseComponent",d)}}});
1
+ System.register(["@angular/core","@angular/platform-browser","@stratusjs/runtime/stratus","lodash","@stratusjs/core/environment","../core/root.component"],function(t,e){"use strict";var n,o,i,r,s,p,a,u,c,d,f=this&&this.__decorate||function(t,e,n,o){var i,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var p=t.length-1;p>=0;p--)(i=t[p])&&(s=(r<3?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};e&&e.id;return{setters:[function(t){n=t},function(t){o=t},function(t){i=t},function(t){r=t},function(t){s=t},function(t){p=t}],execute:function(){"@stratusjs/angular",a="base",u=s.cookie("env")?"":".min",c=`${i.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,d=class extends p.RootComponent{sanitizer;ref;elementRef;title=a+"_component";target;targetSuffix;id;manifest;decouple;direct;api;urlRoot;type;property;endpoint;constructor(t,e,n){super(),this.sanitizer=t,this.ref=e,this.elementRef=n,i.Stratus.Instances[r.default.uniqueId("sa_base_component_")]=this,this.hydrate(this.elementRef,this.sanitizer,["title","target","targetSuffix","id","manifest","decouple","direct","api","urlRoot","type","property","endpoint","sanitizer","ref","elementRef","ngOnInit","ngOnChanges","hydrate","uid","disableRefresh","stagger","reloading","refresh","ngOnDestroy"])}ngOnInit(){console.info("selector.ngOnInit")}ngOnChanges(){s.cookie("env")&&console.log("inputs:",{target:this.target,targetSuffix:this.targetSuffix,id:this.id,manifest:this.manifest,decouple:this.decouple,direct:this.direct,api:this.api,urlRoot:this.urlRoot})}},f([n.Input(),l("design:type",String)],d.prototype,"target",void 0),f([n.Input(),l("design:type",String)],d.prototype,"targetSuffix",void 0),f([n.Input(),l("design:type",Number)],d.prototype,"id",void 0),f([n.Input(),l("design:type",Boolean)],d.prototype,"manifest",void 0),f([n.Input(),l("design:type",Boolean)],d.prototype,"decouple",void 0),f([n.Input(),l("design:type",Boolean)],d.prototype,"direct",void 0),f([n.Input(),l("design:type",Object)],d.prototype,"api",void 0),f([n.Input(),l("design:type",String)],d.prototype,"urlRoot",void 0),f([n.Input(),l("design:type",String)],d.prototype,"type",void 0),f([n.Input(),l("design:type",String)],d.prototype,"property",void 0),f([n.Input(),l("design:type",String)],d.prototype,"endpoint",void 0),d=f([n.Component({selector:"sa-internal-base",templateUrl:`${c}/${a}/${a}.component${u}.html`}),l("design:paramtypes",[o.DomSanitizer,n.ChangeDetectorRef,n.ElementRef])],d),t("BaseComponent",d)}}});
@@ -60,7 +60,6 @@ export class BaseComponent extends RootComponent implements OnInit, OnChanges {
60
60
 
61
61
  // Basic Component Settings
62
62
  title = moduleName + '_component'
63
- uid: string
64
63
 
65
64
  // Registry Attributes
66
65
  @Input() target: string
@@ -35,6 +35,8 @@ System.register(["@angular/core", "@angular/material/dialog", "@stratusjs/core/e
35
35
  min = !environment_1.cookie('env') ? '.min' : '';
36
36
  localDir = `${stratus_1.Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
37
37
  ConfirmDialogComponent = class ConfirmDialogComponent {
38
+ dialogRef;
39
+ data;
38
40
  constructor(dialogRef, data) {
39
41
  this.dialogRef = dialogRef;
40
42
  this.data = data;
@@ -1 +1 @@
1
- {"version":3,"sources":["confirm-dialog.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAYM,SAAS,GAAG,oBAAoB,CAAA;YAChC,UAAU,GAAG,gBAAgB,CAAA;YAG7B,GAAG,GAAG,CAAC,oBAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAA;YAClC,QAAQ,GAAG,GAAG,iBAAO,CAAC,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,SAAS,IAAI,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,CAAA;YAezH,sBAAsB,GAA5B,MAAM,sBAAsB;gBAC/B,YACW,SAA+C,EACtB,IAAuB;oBADhD,cAAS,GAAT,SAAS,CAAsC;oBACtB,SAAI,GAAJ,IAAI,CAAmB;gBACxD,CAAC;gBAEJ,SAAS;oBACL,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;gBAC9B,CAAC;gBAED,SAAS;oBACL,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,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AAQ,IAAI,UAAU,IAAI,UAAU,aAAa,GAAG,OAAO;iBAE9E,CAAC;gBAIO,WAAA,aAAM,CAAC,wBAAe,CAAC,CAAA;iDADN,qBAAY;eAFzB,sBAAsB,CAalC;;QACD,CAAC","file":"confirm-dialog.component.js"}
@@ -1 +1 @@
1
- System.register(["@angular/core","@angular/material/dialog","@stratusjs/core/environment","@stratusjs/runtime/stratus"],function(t,e){"use strict";var n,o,r,a,i,s,c,f,l=this&&this.__decorate||function(t,e,n,o){var r,a=arguments.length,i=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(i=(a<3?r(i):a>3?r(e,n,i):r(e,n))||i);return a>3&&i&&Object.defineProperty(e,n,i),i},u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},m=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};e&&e.id;return{setters:[function(t){n=t},function(t){o=t},function(t){r=t},function(t){a=t}],execute:function(){"@stratusjs/angular",i="confirm-dialog",s=r.cookie("env")?"":".min",c=`${a.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,f=class{constructor(t,e){this.dialogRef=t,this.data=e}onConfirm(){this.dialogRef.close(!0)}onDismiss(){this.dialogRef.close(!1)}},f=l([n.Component({selector:`sa-internal-${i}`,templateUrl:`${c}/${i}/${i}.component${s}.html`}),m(1,n.Inject(o.MAT_DIALOG_DATA)),u("design:paramtypes",[o.MatDialogRef,Object])],f),t("ConfirmDialogComponent",f)}}});
1
+ System.register(["@angular/core","@angular/material/dialog","@stratusjs/core/environment","@stratusjs/runtime/stratus"],function(t,e){"use strict";var n,o,a,r,i,s,c,f,l=this&&this.__decorate||function(t,e,n,o){var a,r=arguments.length,i=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(i=(r<3?a(i):r>3?a(e,n,i):a(e,n))||i);return r>3&&i&&Object.defineProperty(e,n,i),i},u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},m=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}};e&&e.id;return{setters:[function(t){n=t},function(t){o=t},function(t){a=t},function(t){r=t}],execute:function(){"@stratusjs/angular",i="confirm-dialog",s=a.cookie("env")?"":".min",c=`${r.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,f=class{dialogRef;data;constructor(t,e){this.dialogRef=t,this.data=e}onConfirm(){this.dialogRef.close(!0)}onDismiss(){this.dialogRef.close(!1)}},f=l([n.Component({selector:`sa-internal-${i}`,templateUrl:`${c}/${i}/${i}.component${s}.html`}),m(1,n.Inject(o.MAT_DIALOG_DATA)),u("design:paramtypes",[o.MatDialogRef,Object])],f),t("ConfirmDialogComponent",f)}}});
@@ -16,11 +16,11 @@ System.register(["@stratusjs/core/environment", "lodash", "@stratusjs/runtime/st
16
16
  ],
17
17
  execute: function () {
18
18
  ResponsiveComponent = class ResponsiveComponent {
19
- constructor() {
20
- this.disableRefresh = false;
21
- this.stagger = true;
22
- this.reloading = false;
23
- }
19
+ uid;
20
+ ref;
21
+ disableRefresh = false;
22
+ stagger = true;
23
+ reloading = false;
24
24
  refresh(timeout = 100) {
25
25
  return new Promise((resolve, reject) => {
26
26
  if (this.disableRefresh) {
@@ -1 +1 @@
1
- {"version":3,"sources":["responsive.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;YAwBA,sBAAA,MAAa,mBAAmB;gBAAhC;oBAOc,mBAAc,GAAG,KAAK,CAAA;oBACtB,YA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AAC,EAAE;wBACtB,OAAM;qBACT;oBACD,OAAO,iBAAO,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;gBACtC,CAAC;aACJ,CAAA;;QACD,CAAC","file":"responsive.component.js"}
@@ -1 +1 @@
1
- System.register(["@stratusjs/core/environment","lodash","@stratusjs/runtime/stratus"],function(e,t){"use strict";var s,i,r;t&&t.id;return{setters:[function(e){s=e},function(e){i=e},function(e){r=e}],execute:function(){e("ResponsiveComponent",class{constructor(){this.disableRefresh=!1,this.stagger=!0,this.reloading=!1}refresh(e=100){return new Promise((t,i)=>{if(this.disableRefresh)t();else{if(!this.ref)return console.error("ChangeDetectorRef not set:",this.uid),void i();if(this.reloading&&this.stagger)return s.cookie("env")&&console.warn("[flow control] waiting to refresh component:",this.uid),void setTimeout(()=>{this.refresh(2*e).then(()=>t())},e);this.reloading=!0,this.ref.detectChanges(),this.reloading=!1,t()}})}ngOnDestroy(){i.default.isEmpty(this.uid)&&delete r.Stratus.Instances[this.uid]}})}}});
1
+ System.register(["@stratusjs/core/environment","lodash","@stratusjs/runtime/stratus"],function(e,t){"use strict";var s,i,r;t&&t.id;return{setters:[function(e){s=e},function(e){i=e},function(e){r=e}],execute:function(){e("ResponsiveComponent",class{uid;ref;disableRefresh=!1;stagger=!0;reloading=!1;refresh(e=100){return new Promise((t,i)=>{if(this.disableRefresh)t();else{if(!this.ref)return console.error("ChangeDetectorRef not set:",this.uid),void i();if(this.reloading&&this.stagger)return s.cookie("env")&&console.warn("[flow control] waiting to refresh component:",this.uid),void setTimeout(()=>{this.refresh(2*e).then(()=>t())},e);this.reloading=!0,this.ref.detectChanges(),this.reloading=!1,t()}})}ngOnDestroy(){i.default.isEmpty(this.uid)&&delete r.Stratus.Instances[this.uid]}})}}});
@@ -57,6 +57,29 @@ System.register(["@angular/core", "@angular/forms", "@angular/material/dialog",
57
57
  min = !environment_1.cookie('env') ? '.min' : '';
58
58
  localDir = `${stratus_1.Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
59
59
  CitationDialogComponent = class CitationDialogComponent extends responsive_component_1.ResponsiveComponent {
60
+ dialogRef;
61
+ data;
62
+ fb;
63
+ snackBar;
64
+ iconRegistry;
65
+ sanitizer;
66
+ ref;
67
+ title = moduleName + '_component';
68
+ Stratus = stratus_1.Stratus;
69
+ dialogCitationForm;
70
+ popupTitle = 'Create New Citation';
71
+ warningMessage;
72
+ isPopupLoading = true;
73
+ formDisabled = false;
74
+ model;
75
+ property;
76
+ editor;
77
+ eventManager;
78
+ baseEditor;
79
+ highlightedText;
80
+ newCitation = true;
81
+ existingCitationElement;
82
+ svgIcons = {};
60
83
  constructor(dialogRef, data, fb, snackBar, iconRegistry, sanitizer, ref) {
61
84
  super();
62
85
  this.dialogRef = dialogRef;
@@ -66,13 +89,6 @@ System.register(["@angular/core", "@angular/forms", "@angular/material/dialog",
66
89
  this.iconRegistry = iconRegistry;
67
90
  this.sanitizer = sanitizer;
68
91
  this.ref = ref;
69
- this.title = moduleName + '_component';
70
- this.Stratus = stratus_1.Stratus;
71
- this.popupTitle = 'Create New Citation';
72
- this.isPopupLoading = true;
73
- this.formDisabled = false;
74
- this.newCitation = true;
75
- this.svgIcons = {};
76
92
  }
77
93
  ngOnInit() {
78
94
  this.uid = lodash_1.uniqueId(`sa_${lodash_1.snakeCase(moduleName)}_component_`);
@@ -1 +1 @@
1
- {"version":3,"sources":["citation-dialog.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAqDM,SAAS,GAAG,oBAAoB,CAAA;YAChC,UAAU,GAAG,iBAAiB,CAAA;YAC9B,gBAAgB,GAAG,QAAQ,CAAA;YAG3B,GAAG,GAAG,CAAC,oBAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAA;YAClC,QAAQ,GAAG,GAAG,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AC,GAAG;gCACL,OAAO,CAAC,KAAK,CAAC,UAAU,GAAG,MAAM,GAAG,EAAE,CAAC,CAAA;4BAC3C,CAAC;4BACD,QAAQ;gCAEJ,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;4BACxB,CAAC;yBACJ,CAAC,CAAA;oBACV,CAAC,CAAC,CAAA;gBACN,CAAC;gBAMD,UAAU,CAAC,GAAW,EAAE,OAAqB;oBACzC,IAAI,GAAG,IAAI,IAAI,CAAC,QAAQ,EAAE;wBACtB,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;qBAC5B;oBACD,IAAI,CAAC,OAAO,EAAE;wBACV,OAAO,GAAG,EAAE,CAAA;qBACf;oBACD,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,iBAAQ,CAAC,cAAc,CAAC,CAAA;oBACzD,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,8BAA8B,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAA;oBAC9F,OAAO,GAAG,CAAA;gBACd,CAAC;aACJ,CAAA;YAnNY,uBAAuB;gBALnC,gBAAS,CAAC;oBACP,QAAQ,EAAE,eAAe,UAAU,EAAE;oBACrC,WAAW,EAAE,GAAG,QAAQ,IAAI,gBAAgB,IAAI,UAAU,aAAa,GAAG,OAAO;iBAEpF,CAAC;gBAyCO,WAAA,aAAM,CAAC,wBAAe,CAAC,CAAA;iDADN,qBAAY,UAElB,mBAAW;oBACL,uBAAW;oBACP,sBAAe;oBAClB,+BAAY;oBAChB,wBAAiB;eA7C3B,uBAAuB,CAmNnC;;QAUD,CAAC","file":"citation-dialog.component.js"}
@@ -1 +1 @@
1
- System.register(["@angular/core","@angular/forms","@angular/material/dialog","@angular/material/snack-bar","rxjs","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","../core/responsive.component","@angular/material/icon","@angular/platform-browser"],function(t,i){"use strict";var e,n,o,a,s,r,c,l,u,h,g,d,f,m,p,C,v=this&&this.__decorate||function(t,i,e,n){var o,a=arguments.length,s=a<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,e):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,n);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(s=(a<3?o(s):a>3?o(i,e,s):o(i,e))||s);return a>3&&s&&Object.defineProperty(i,e,s),s},b=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)},I=this&&this.__param||function(t,i){return function(e,n){i(e,n,t)}};i&&i.id;return{setters:[function(t){e=t},function(t){n=t},function(t){o=t},function(t){a=t},function(t){s=t},function(t){r=t},function(t){c=t},function(t){l=t},function(t){u=t},function(t){h=t},function(t){g=t}],execute:function(){"@stratusjs/angular",d="citation-dialog",f="editor",m=l.cookie("env")?"":".min",p=`${c.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,C=class extends u.ResponsiveComponent{constructor(t,i,e,n,o,a,s){super(),this.dialogRef=t,this.data=i,this.fb=e,this.snackBar=n,this.iconRegistry=o,this.sanitizer=a,this.ref=s,this.title=d+"_component",this.Stratus=c.Stratus,this.popupTitle="Create New Citation",this.isPopupLoading=!0,this.formDisabled=!1,this.newCitation=!0,this.svgIcons={}}ngOnInit(){this.uid=r.uniqueId(`sa_${r.snakeCase(d)}_component_`),c.Stratus.Instances[this.uid]=this,c.Stratus.Internals.CssLoader(`${p}${f}/${d}.component${m}.css`),this.model=this.data.model,this.property=this.data.property,this.editor=this.data.editor,this.eventManager=this.data.eventManager,this.baseEditor=this.data.eventManager.editor,this.dialogCitationForm=this.fb.group({citationContentInput:new n.FormControl("",[n.Validators.required]),citationTitleInput:new n.FormControl("")}),this.highlightedText=this.baseEditor.selection.text();const t=this.baseEditor.citationManager.getSelectedCitation()||this.baseEditor.citationManager.getLastKnownCitation();if(this.baseEditor.citationManager.hideToolbar(),t){this.newCitation=!1,this.existingCitationElement=t;const i=t.cloneNode(!0);Array.from(i.getElementsByClassName("fr-marker")).forEach(t=>{t.remove()});const e=r.head(i.getElementsByTagName("stratus-citation-content"));e&&this.dialogCitationForm.get("citationContentInput").setValue(e.innerHTML);const n=r.head(i.getElementsByTagName("stratus-citation-title"));n&&this.dialogCitationForm.get("citationTitleInput").setValue(n.innerHTML)}this.newCitation&&!r.isEmpty(this.highlightedText)&&(this.popupTitle="Convert Text into Citation",this.dialogCitationForm.get("citationTitleInput").setValue(this.highlightedText)),this.newCitation||(this.popupTitle="Update Citation"),this.isPopupLoading=!1,this.refresh()}cancel(){this.dialogRef.close(),this.refresh()}confirm(){if(r.isUndefined(this.dialogCitationForm.get("citationContentInput")))return;const t=this.dialogCitationForm.get("citationContentInput").value;if(r.isUndefined(t)||!r.isString(t))return;const i=this.dialogCitationForm.get("citationTitleInput").value,e=this.createCitationHTML(t,i);if(!e)return console.warn(`${d}: unable to build citation for: ${t}`),void this.snackBar.open(`Unable to build citation for: ${t}.`,"dismiss",{duration:5e3,horizontalPosition:"right",verticalPosition:"bottom"});this.eventManager?(!this.newCitation&&this.existingCitationElement?this.existingCitationElement.outerHTML=e:this.eventManager.trigger("insert",e,this.editor),this.dialogRef.close()):console.warn(`${d}: event manager is not set.`)}createCitationHTML(t,i){return t?`<stratus-citation><stratus-citation-content>${t}</stratus-citation-content>${i=r.isEmpty(i)?"<stratus-citation-notitle/>":`<stratus-citation-title>${i}</stratus-citation-title>`}</stratus-citation-content>`:(console.warn(`${d}: unable to create citation for empty content`),null)}getSvg(t,i){const e=this.addSvgIcon(t,i);return new s.Observable(i=>{this.iconRegistry.getNamedSvgIcon(e).subscribe({error(i){console.error(`getSvg(${t}): ${i}`)},complete(){i.next(e)}})})}addSvgIcon(t,i){if(t in this.svgIcons)return this.svgIcons[t];i||(i={});const e=this.svgIcons[t]=r.uniqueId("selector_svg");return this.iconRegistry.addSvgIcon(e,this.sanitizer.bypassSecurityTrustResourceUrl(t),i),e}},C=v([e.Component({selector:`sa-internal-${d}`,templateUrl:`${p}/${f}/${d}.component${m}.html`}),I(1,e.Inject(o.MAT_DIALOG_DATA)),b("design:paramtypes",[o.MatDialogRef,Object,n.FormBuilder,a.MatSnackBar,h.MatIconRegistry,g.DomSanitizer,e.ChangeDetectorRef])],C),t("CitationDialogComponent",C)}}});
1
+ System.register(["@angular/core","@angular/forms","@angular/material/dialog","@angular/material/snack-bar","rxjs","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","../core/responsive.component","@angular/material/icon","@angular/platform-browser"],function(t,i){"use strict";var e,n,o,a,s,r,c,l,u,g,h,d,f,m,p,C,v=this&&this.__decorate||function(t,i,e,n){var o,a=arguments.length,s=a<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,e):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,n);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(s=(a<3?o(s):a>3?o(i,e,s):o(i,e))||s);return a>3&&s&&Object.defineProperty(i,e,s),s},b=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)},y=this&&this.__param||function(t,i){return function(e,n){i(e,n,t)}};i&&i.id;return{setters:[function(t){e=t},function(t){n=t},function(t){o=t},function(t){a=t},function(t){s=t},function(t){r=t},function(t){c=t},function(t){l=t},function(t){u=t},function(t){g=t},function(t){h=t}],execute:function(){"@stratusjs/angular",d="citation-dialog",f="editor",m=l.cookie("env")?"":".min",p=`${c.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,C=class extends u.ResponsiveComponent{dialogRef;data;fb;snackBar;iconRegistry;sanitizer;ref;title=d+"_component";Stratus=c.Stratus;dialogCitationForm;popupTitle="Create New Citation";warningMessage;isPopupLoading=!0;formDisabled=!1;model;property;editor;eventManager;baseEditor;highlightedText;newCitation=!0;existingCitationElement;svgIcons={};constructor(t,i,e,n,o,a,s){super(),this.dialogRef=t,this.data=i,this.fb=e,this.snackBar=n,this.iconRegistry=o,this.sanitizer=a,this.ref=s}ngOnInit(){this.uid=r.uniqueId(`sa_${r.snakeCase(d)}_component_`),c.Stratus.Instances[this.uid]=this,c.Stratus.Internals.CssLoader(`${p}${f}/${d}.component${m}.css`),this.model=this.data.model,this.property=this.data.property,this.editor=this.data.editor,this.eventManager=this.data.eventManager,this.baseEditor=this.data.eventManager.editor,this.dialogCitationForm=this.fb.group({citationContentInput:new n.FormControl("",[n.Validators.required]),citationTitleInput:new n.FormControl("")}),this.highlightedText=this.baseEditor.selection.text();const t=this.baseEditor.citationManager.getSelectedCitation()||this.baseEditor.citationManager.getLastKnownCitation();if(this.baseEditor.citationManager.hideToolbar(),t){this.newCitation=!1,this.existingCitationElement=t;const i=t.cloneNode(!0);Array.from(i.getElementsByClassName("fr-marker")).forEach(t=>{t.remove()});const e=r.head(i.getElementsByTagName("stratus-citation-content"));e&&this.dialogCitationForm.get("citationContentInput").setValue(e.innerHTML);const n=r.head(i.getElementsByTagName("stratus-citation-title"));n&&this.dialogCitationForm.get("citationTitleInput").setValue(n.innerHTML)}this.newCitation&&!r.isEmpty(this.highlightedText)&&(this.popupTitle="Convert Text into Citation",this.dialogCitationForm.get("citationTitleInput").setValue(this.highlightedText)),this.newCitation||(this.popupTitle="Update Citation"),this.isPopupLoading=!1,this.refresh()}cancel(){this.dialogRef.close(),this.refresh()}confirm(){if(r.isUndefined(this.dialogCitationForm.get("citationContentInput")))return;const t=this.dialogCitationForm.get("citationContentInput").value;if(r.isUndefined(t)||!r.isString(t))return;const i=this.dialogCitationForm.get("citationTitleInput").value,e=this.createCitationHTML(t,i);if(!e)return console.warn(`${d}: unable to build citation for: ${t}`),void this.snackBar.open(`Unable to build citation for: ${t}.`,"dismiss",{duration:5e3,horizontalPosition:"right",verticalPosition:"bottom"});this.eventManager?(!this.newCitation&&this.existingCitationElement?this.existingCitationElement.outerHTML=e:this.eventManager.trigger("insert",e,this.editor),this.dialogRef.close()):console.warn(`${d}: event manager is not set.`)}createCitationHTML(t,i){return t?`<stratus-citation><stratus-citation-content>${t}</stratus-citation-content>${i=r.isEmpty(i)?"<stratus-citation-notitle/>":`<stratus-citation-title>${i}</stratus-citation-title>`}</stratus-citation-content>`:(console.warn(`${d}: unable to create citation for empty content`),null)}getSvg(t,i){const e=this.addSvgIcon(t,i);return new s.Observable(i=>{this.iconRegistry.getNamedSvgIcon(e).subscribe({error(i){console.error(`getSvg(${t}): ${i}`)},complete(){i.next(e)}})})}addSvgIcon(t,i){if(t in this.svgIcons)return this.svgIcons[t];i||(i={});const e=this.svgIcons[t]=r.uniqueId("selector_svg");return this.iconRegistry.addSvgIcon(e,this.sanitizer.bypassSecurityTrustResourceUrl(t),i),e}},C=v([e.Component({selector:`sa-internal-${d}`,templateUrl:`${p}/${f}/${d}.component${m}.html`}),y(1,e.Inject(o.MAT_DIALOG_DATA)),b("design:paramtypes",[o.MatDialogRef,Object,n.FormBuilder,a.MatSnackBar,g.MatIconRegistry,h.DomSanitizer,e.ChangeDetectorRef])],C),t("CitationDialogComponent",C)}}});
@@ -71,7 +71,6 @@ export class CitationDialogComponent extends ResponsiveComponent implements OnIn
71
71
 
72
72
  // Basic Component Settings
73
73
  title = moduleName + '_component'
74
- uid: string
75
74
 
76
75
  // Dependencies
77
76
  Stratus = Stratus
@@ -16,6 +16,10 @@ System.register(["@stratusjs/runtime/stratus", "lodash", "codemirror"], function
16
16
  ],
17
17
  execute: function () {
18
18
  CodeMirrorBridge = class CodeMirrorBridge {
19
+ uid;
20
+ editorView;
21
+ extensions;
22
+ dom;
19
23
  constructor(opts) {
20
24
  this.uid = lodash_1.uniqueId(`code_mirror_bridge_`);
21
25
  stratus_1.Stratus.Instances[this.uid] = this;
@@ -1 +1 @@
1
- {"version":3,"sources":["code-mirror-bridge.ts"],"names":[],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G,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,GAAG,CAAC,EAAE,CAAA;oBAC/C,CAAC,CAAA;oBACD,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;wBACrB,SAAS,EAAE;4BACP,MAAM,EAAE,WAAW,CAAC,KAAK,CAAC;4BAC1B,IAAI,EAAE,WAAW,CAAC,GAAG,CAAC;yBACzB;qBACJ,CAAC,CAAA;gBACN,CAAC;gBACD,UAAU;oBACN,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAA;gBAC7B,CAAC;aACJ,CAAA;;QACD,CAAC","file":"code-mirror-bridge.js"}
@@ -1 +1 @@
1
- System.register(["@stratusjs/runtime/stratus","lodash","codemirror"],function(e,t){"use strict";var i,r,o;t&&t.id;return{setters:[function(e){i=e},function(e){r=e},function(e){o=e}],execute:function(){e("CodeMirrorBridge",class{constructor(e){this.uid=r.uniqueId("code_mirror_bridge_"),i.Stratus.Instances[this.uid]=this,e&&"object"==typeof e&&(this.extensions=e.extensions)}fromTextArea(e,t){return this.dom=e,this.editorView=new o.EditorView({doc:e.value,extensions:this.extensions||[]}),e.parentNode.insertBefore(this.editorView.dom,e),e.style.display="none",e.form&&e.form.addEventListener("submit",()=>{e.value=this.editorView.state.doc.toString()}),this}focus(){return this.editorView.focus()}refresh(){console.warn("CodeMirror Bridge has not implemented a refresh function.")}clearHistory(){console.warn("CodeMirror Bridge has not implemented a clearHistory function.")}on(e,t){this.editorView.contentDOM.addEventListener(e,t)}setSize(e,t){this.editorView.dom.style.width=e||"",this.editorView.dom.style.height=t||""}getValue(){return this.editorView.state.doc.toString()}setValue(e){this.editorView.dispatch({changes:{from:0,to:this.editorView.state.doc.length,insert:e}})}setSelection(e,t){const i=e=>this.editorView.state.doc.line(e.line+1).from+e.ch;this.editorView.dispatch({selection:{anchor:i(e),head:i(t)}})}toTextArea(){this.editorView.destroy()}})}}});
1
+ System.register(["@stratusjs/runtime/stratus","lodash","codemirror"],function(e,t){"use strict";var i,o,r;t&&t.id;return{setters:[function(e){i=e},function(e){o=e},function(e){r=e}],execute:function(){e("CodeMirrorBridge",class{uid;editorView;extensions;dom;constructor(e){this.uid=o.uniqueId("code_mirror_bridge_"),i.Stratus.Instances[this.uid]=this,e&&"object"==typeof e&&(this.extensions=e.extensions)}fromTextArea(e,t){return this.dom=e,this.editorView=new r.EditorView({doc:e.value,extensions:this.extensions||[]}),e.parentNode.insertBefore(this.editorView.dom,e),e.style.display="none",e.form&&e.form.addEventListener("submit",()=>{e.value=this.editorView.state.doc.toString()}),this}focus(){return this.editorView.focus()}refresh(){console.warn("CodeMirror Bridge has not implemented a refresh function.")}clearHistory(){console.warn("CodeMirror Bridge has not implemented a clearHistory function.")}on(e,t){this.editorView.contentDOM.addEventListener(e,t)}setSize(e,t){this.editorView.dom.style.width=e||"",this.editorView.dom.style.height=t||""}getValue(){return this.editorView.state.doc.toString()}setValue(e){this.editorView.dispatch({changes:{from:0,to:this.editorView.state.doc.length,insert:e}})}setSelection(e,t){const i=e=>this.editorView.state.doc.line(e.line+1).from+e.ch;this.editorView.dispatch({selection:{anchor:i(e),head:i(t)}})}toTextArea(){this.editorView.destroy()}})}}});
@@ -51,6 +51,24 @@ System.register(["@angular/core", "@angular/forms", "@angular/material/dialog",
51
51
  min = !environment_1.cookie('env') ? '.min' : '';
52
52
  localDir = `${stratus_1.Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
53
53
  CodeViewDialogComponent = class CodeViewDialogComponent extends responsive_component_1.ResponsiveComponent {
54
+ dialogRef;
55
+ data;
56
+ ref;
57
+ fb;
58
+ ngZone;
59
+ title = moduleName + '_component';
60
+ _ = lodash_1.default;
61
+ Stratus = stratus_1.Stratus;
62
+ form = this.fb.group({
63
+ dataString: new forms_1.FormControl(),
64
+ });
65
+ model;
66
+ property;
67
+ monacoOptions = {
68
+ theme: 'vs-dark',
69
+ language: 'html'
70
+ };
71
+ autosize;
54
72
  constructor(dialogRef, data, ref, fb, ngZone) {
55
73
  super();
56
74
  this.dialogRef = dialogRef;
@@ -58,16 +76,6 @@ System.register(["@angular/core", "@angular/forms", "@angular/material/dialog",
58
76
  this.ref = ref;
59
77
  this.fb = fb;
60
78
  this.ngZone = ngZone;
61
- this.title = moduleName + '_component';
62
- this._ = lodash_1.default;
63
- this.Stratus = stratus_1.Stratus;
64
- this.form = this.fb.group({
65
- dataString: new forms_1.FormControl(),
66
- });
67
- this.monacoOptions = {
68
- theme: 'vs-dark',
69
- language: 'html'
70
- };
71
79
  }
72
80
  ngOnInit() {
73
81
  this.uid = lodash_1.default.uniqueId(`sa_${lodash_1.default.snakeCase(moduleName)}_component_`);
@@ -1 +1 @@
1
- {"version":3,"sources":["code-view-dialog.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAiDM,SAAS,GAAG,oBAAoB,CAAA;YAChC,UAAU,GAAG,kBAAkB,CAAA;YAC/B,gBAAgB,GAAG,QAAQ,CAAA;YAG3B,GAAG,GAAG,CAAC,oBAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAA;YAClC,QAAQ,GAAG,GAAG,iBAAO,CAAC,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,SAAS,IAAI,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,CAAA;YAUzH,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,0CAAmB;gBA6B5D,YACW,SAAgD,EACvB,IAAwB,EAC9C,GAAsB,EACxB,EAAe,EACf,MAAc;oBAGtB,KAAK,EAAE,CAAA;oBAPA,cAAS,GAAT,SAAS,CAAuC;oBACvB,SAAI,GAAJ,IAAI,CAAoB;oBAC9C,QAAG,GAAH,GAAG,CAAmB;o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,QAAQ,IAAI,gBAAgB,IAAI,UAAU,aAAa,GAAG,OAAO;iBAEpF,CAAC;gBA+BO,WAAA,aAAM,CAAC,wBAAe,CAAC,CAAA;iDADN,qBAAY,UAEf,wBAAiB;oBACpB,mBAAW;oBACP,aAAM;eAjCjB,uBAAuB,CAqGnC;;QAQD,CAAC","file":"code-view-dialog.component.js"}
@@ -1 +1 @@
1
- System.register(["@angular/core","@angular/forms","@angular/material/dialog","@angular/cdk/text-field","rxjs/operators","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","../core/responsive.component"],function(t,e){"use strict";var o,n,s,i,r,a,c,u,l,f,h,d,p,g,m=this&&this.__decorate||function(t,e,o,n){var s,i=arguments.length,r=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r},y=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},C=this&&this.__param||function(t,e){return function(o,n){e(o,n,t)}};e&&e.id;return{setters:[function(t){o=t},function(t){n=t},function(t){s=t},function(t){i=t},function(t){r=t},function(t){a=t},function(t){c=t},function(t){u=t},function(t){l=t}],execute:function(){"@stratusjs/angular",f="code-view-dialog",h="editor",d=u.cookie("env")?"":".min",p=`${c.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,g=class extends l.ResponsiveComponent{constructor(t,e,o,s,i){super(),this.dialogRef=t,this.data=e,this.ref=o,this.fb=s,this.ngZone=i,this.title=f+"_component",this._=a.default,this.Stratus=c.Stratus,this.form=this.fb.group({dataString:new n.FormControl}),this.monacoOptions={theme:"vs-dark",language:"html"}}ngOnInit(){this.uid=a.default.uniqueId(`sa_${a.default.snakeCase(f)}_component_`),c.Stratus.Instances[this.uid]=this,c.Stratus.Internals.CssLoader(`${p}/${h}/${f}.component${d}.css`),this.model=this.data.model,this.property=this.data.property;const t=this.form.get("dataString");t.patchValue(this.model.get(this.property)),t.valueChanges.forEach(t=>{this.model.completed&&(null===t&&(t=""),this.model.set(this.property,t))}),this.refresh()}onCancelClick(){this.dialogRef.close(),this.refresh()}triggerResize(){this.ngZone.onStable.pipe(r.take(1)).subscribe(()=>this.autosize.resizeToFitContent(!0))}},m([o.ViewChild("autosize"),y("design:type",i.CdkTextareaAutosize)],g.prototype,"autosize",void 0),g=m([o.Component({selector:`sa-internal-${f}`,templateUrl:`${p}/${h}/${f}.component${d}.html`}),C(1,o.Inject(s.MAT_DIALOG_DATA)),y("design:paramtypes",[s.MatDialogRef,Object,o.ChangeDetectorRef,n.FormBuilder,o.NgZone])],g),t("CodeViewDialogComponent",g)}}});
1
+ System.register(["@angular/core","@angular/forms","@angular/material/dialog","@angular/cdk/text-field","rxjs/operators","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","../core/responsive.component"],function(t,e){"use strict";var o,n,s,a,i,r,c,u,l,f,d,p,h,g,m=this&&this.__decorate||function(t,e,o,n){var s,a=arguments.length,i=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,o,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},y=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},C=this&&this.__param||function(t,e){return function(o,n){e(o,n,t)}};e&&e.id;return{setters:[function(t){o=t},function(t){n=t},function(t){s=t},function(t){a=t},function(t){i=t},function(t){r=t},function(t){c=t},function(t){u=t},function(t){l=t}],execute:function(){"@stratusjs/angular",f="code-view-dialog",d="editor",p=u.cookie("env")?"":".min",h=`${c.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,g=class extends l.ResponsiveComponent{dialogRef;data;ref;fb;ngZone;title=f+"_component";_=r.default;Stratus=c.Stratus;form=this.fb.group({dataString:new n.FormControl});model;property;monacoOptions={theme:"vs-dark",language:"html"};autosize;constructor(t,e,o,n,s){super(),this.dialogRef=t,this.data=e,this.ref=o,this.fb=n,this.ngZone=s}ngOnInit(){this.uid=r.default.uniqueId(`sa_${r.default.snakeCase(f)}_component_`),c.Stratus.Instances[this.uid]=this,c.Stratus.Internals.CssLoader(`${h}/${d}/${f}.component${p}.css`),this.model=this.data.model,this.property=this.data.property;const t=this.form.get("dataString");t.patchValue(this.model.get(this.property)),t.valueChanges.forEach(t=>{this.model.completed&&(null===t&&(t=""),this.model.set(this.property,t))}),this.refresh()}onCancelClick(){this.dialogRef.close(),this.refresh()}triggerResize(){this.ngZone.onStable.pipe(i.take(1)).subscribe(()=>this.autosize.resizeToFitContent(!0))}},m([o.ViewChild("autosize"),y("design:type",a.CdkTextareaAutosize)],g.prototype,"autosize",void 0),g=m([o.Component({selector:`sa-internal-${f}`,templateUrl:`${h}/${d}/${f}.component${p}.html`}),C(1,o.Inject(s.MAT_DIALOG_DATA)),y("design:paramtypes",[s.MatDialogRef,Object,o.ChangeDetectorRef,n.FormBuilder,o.NgZone])],g),t("CodeViewDialogComponent",g)}}});
@@ -67,7 +67,6 @@ export class CodeViewDialogComponent extends ResponsiveComponent implements OnIn
67
67
 
68
68
  // Basic Component Settings
69
69
  title = moduleName + '_component'
70
- uid: string
71
70
 
72
71
  // Dependencies
73
72
  _ = _