@stratusjs/angular 0.5.14 → 0.6.1

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 (44) hide show
  1. package/dist/angular.bundle.js +4092 -3160
  2. package/dist/angular.bundle.min.js +1 -1
  3. package/package.json +1 -1
  4. package/src/app.module.js +77 -94
  5. package/src/app.module.js.map +1 -1
  6. package/src/app.module.min.js +1 -1
  7. package/src/app.module.ts +95 -89
  8. package/src/editor/quill-break-blot.plugin.js +38 -0
  9. package/src/editor/quill-break-blot.plugin.js.map +1 -0
  10. package/src/editor/quill-break-blot.plugin.min.js +1 -0
  11. package/src/editor/quill-html-edit.plugin.js +164 -0
  12. package/src/editor/quill-html-edit.plugin.js.map +1 -0
  13. package/src/editor/quill-html-edit.plugin.min.js +1 -0
  14. package/src/editor/quill-image-format.plugin.js +50 -0
  15. package/src/editor/quill-image-format.plugin.js.map +1 -0
  16. package/src/editor/quill-image-format.plugin.min.js +1 -0
  17. package/src/editor/quill-input-button.plugin.js +98 -0
  18. package/src/editor/quill-input-button.plugin.js.map +1 -0
  19. package/src/editor/quill-input-button.plugin.min.js +1 -0
  20. package/src/froala/editor/froala-editor.directive.js +328 -0
  21. package/src/froala/editor/froala-editor.directive.js.map +1 -0
  22. package/src/froala/editor/froala-editor.directive.min.js +1 -0
  23. package/src/froala/editor/froala-editor.module.js +37 -0
  24. package/src/froala/editor/froala-editor.module.js.map +1 -0
  25. package/src/froala/editor/froala-editor.module.min.js +1 -0
  26. package/src/froala/editor/index.js +22 -0
  27. package/src/froala/editor/index.js.map +1 -0
  28. package/src/froala/editor/index.min.js +1 -0
  29. package/src/froala/plugins/image_manager.js +364 -0
  30. package/src/froala/plugins/image_manager.js.map +1 -0
  31. package/src/froala/plugins/image_manager.min.js +1 -0
  32. package/src/froala/view/froala-view.directive.js +49 -0
  33. package/src/froala/view/froala-view.directive.js.map +1 -0
  34. package/src/froala/view/froala-view.directive.min.js +1 -0
  35. package/src/froala/view/froala-view.module.js +37 -0
  36. package/src/froala/view/froala-view.module.js.map +1 -0
  37. package/src/froala/view/froala-view.module.min.js +1 -0
  38. package/src/froala/view/index.js +22 -0
  39. package/src/froala/view/index.js.map +1 -0
  40. package/src/froala/view/index.min.js +1 -0
  41. package/src/root/root.component.js +43 -0
  42. package/src/root/root.component.js.map +1 -0
  43. package/src/root/root.component.min.js +1 -0
  44. package/src/core/dialog.interface.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stratusjs/angular",
3
- "version": "0.5.14",
3
+ "version": "0.6.1",
4
4
  "description": "This is the angular package for StratusJS.",
5
5
  "scripts": {},
6
6
  "repository": {
package/src/app.module.js CHANGED
@@ -1,4 +1,4 @@
1
- System.register(["@angular/common/http", "@angular/core", "@angular/forms", "@angular/material/core", "@angular/platform-browser", "@angular/platform-browser/animations", "./material", "@angular/flex-layout", "./base/base.component", "./confirm-dialog/confirm-dialog.component", "./editor/editor.component", "../../map/src/map.component", "./media-selector/media-selector.component", "./selector/selector.component", "../../stripe/src/payment-method.component", "../../stripe/src/payment-method-item.component", "../../stripe/src/payment-method-list.component", "../../stripe/src/payment-method-selector.component", "../../stripe/src/setup-intent.component", "./tree/tree.component", "./tree/tree-dialog.component", "./tree/tree-node.component", "lodash", "@stratusjs/runtime/stratus", "@angular/google-maps", "angular-froala-wysiwyg", "./editor/citation-dialog.component", "./editor/code-view-dialog.component", "./editor/media-dialog.component", "./editor/link-dialog.component"], function (exports_1, context_1) {
1
+ System.register(["lodash", "@stratusjs/runtime/stratus", "@angular/common/http", "@angular/core", "@angular/forms", "@angular/material/core", "@angular/platform-browser", "@angular/platform-browser/animations", "./material", "@angular/flex-layout", "./base/base.component", "./confirm-dialog/confirm-dialog.component", "./editor/editor.component", "./media-selector/media-selector.component", "./selector/selector.component", "./tree/tree.component", "./tree/tree-dialog.component", "./tree/tree-node.component", "../../map/src/map.module", "../../stripe/src/stripe.module", "angular-froala-wysiwyg", "./editor/citation-dialog.component", "./editor/code-view-dialog.component", "./editor/media-dialog.component", "./editor/link-dialog.component"], function (exports_1, context_1) {
2
2
  "use strict";
3
3
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
4
4
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -9,10 +9,16 @@ System.register(["@angular/common/http", "@angular/core", "@angular/forms", "@an
9
9
  var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
11
11
  };
12
- var http_1, core_1, forms_1, core_2, platform_browser_1, animations_1, material_1, flex_layout_1, base_component_1, confirm_dialog_component_1, editor_component_1, map_component_1, media_selector_component_1, selector_component_1, payment_method_component_1, payment_method_item_component_1, payment_method_list_component_1, payment_method_selector_component_1, setup_intent_component_1, tree_component_1, tree_dialog_component_1, tree_node_component_1, lodash_1, stratus_1, google_maps_1, angular_froala_wysiwyg_1, citation_dialog_component_1, code_view_dialog_component_1, media_dialog_component_1, link_dialog_component_1, AppModule;
12
+ var lodash_1, stratus_1, http_1, core_1, forms_1, core_2, platform_browser_1, animations_1, material_1, flex_layout_1, base_component_1, confirm_dialog_component_1, editor_component_1, media_selector_component_1, selector_component_1, tree_component_1, tree_dialog_component_1, tree_node_component_1, map_module_1, stripe_module_1, angular_froala_wysiwyg_1, citation_dialog_component_1, code_view_dialog_component_1, media_dialog_component_1, link_dialog_component_1, ngModuleImports, ngDeclarations, ngEntryComponents, appModuleComponents, stratusPackages, AppModule;
13
13
  var __moduleName = context_1 && context_1.id;
14
14
  return {
15
15
  setters: [
16
+ function (lodash_1_1) {
17
+ lodash_1 = lodash_1_1;
18
+ },
19
+ function (stratus_1_1) {
20
+ stratus_1 = stratus_1_1;
21
+ },
16
22
  function (http_1_1) {
17
23
  http_1 = http_1_1;
18
24
  },
@@ -46,30 +52,12 @@ System.register(["@angular/common/http", "@angular/core", "@angular/forms", "@an
46
52
  function (editor_component_1_1) {
47
53
  editor_component_1 = editor_component_1_1;
48
54
  },
49
- function (map_component_1_1) {
50
- map_component_1 = map_component_1_1;
51
- },
52
55
  function (media_selector_component_1_1) {
53
56
  media_selector_component_1 = media_selector_component_1_1;
54
57
  },
55
58
  function (selector_component_1_1) {
56
59
  selector_component_1 = selector_component_1_1;
57
60
  },
58
- function (payment_method_component_1_1) {
59
- payment_method_component_1 = payment_method_component_1_1;
60
- },
61
- function (payment_method_item_component_1_1) {
62
- payment_method_item_component_1 = payment_method_item_component_1_1;
63
- },
64
- function (payment_method_list_component_1_1) {
65
- payment_method_list_component_1 = payment_method_list_component_1_1;
66
- },
67
- function (payment_method_selector_component_1_1) {
68
- payment_method_selector_component_1 = payment_method_selector_component_1_1;
69
- },
70
- function (setup_intent_component_1_1) {
71
- setup_intent_component_1 = setup_intent_component_1_1;
72
- },
73
61
  function (tree_component_1_1) {
74
62
  tree_component_1 = tree_component_1_1;
75
63
  },
@@ -79,14 +67,11 @@ System.register(["@angular/common/http", "@angular/core", "@angular/forms", "@an
79
67
  function (tree_node_component_1_1) {
80
68
  tree_node_component_1 = tree_node_component_1_1;
81
69
  },
82
- function (lodash_1_1) {
83
- lodash_1 = lodash_1_1;
70
+ function (map_module_1_1) {
71
+ map_module_1 = map_module_1_1;
84
72
  },
85
- function (stratus_1_1) {
86
- stratus_1 = stratus_1_1;
87
- },
88
- function (google_maps_1_1) {
89
- google_maps_1 = google_maps_1_1;
73
+ function (stripe_module_1_1) {
74
+ stripe_module_1 = stripe_module_1_1;
90
75
  },
91
76
  function (angular_froala_wysiwyg_1_1) {
92
77
  angular_froala_wysiwyg_1 = angular_froala_wysiwyg_1_1;
@@ -105,27 +90,75 @@ System.register(["@angular/common/http", "@angular/core", "@angular/forms", "@an
105
90
  }
106
91
  ],
107
92
  execute: function () {
93
+ ngModuleImports = [
94
+ platform_browser_1.BrowserModule,
95
+ animations_1.BrowserAnimationsModule,
96
+ flex_layout_1.FlexLayoutModule,
97
+ forms_1.FormsModule,
98
+ angular_froala_wysiwyg_1.FroalaEditorModule.forRoot(),
99
+ angular_froala_wysiwyg_1.FroalaViewModule.forRoot(),
100
+ http_1.HttpClientModule,
101
+ material_1.MaterialModules,
102
+ core_2.MatNativeDateModule,
103
+ forms_1.ReactiveFormsModule,
104
+ ];
105
+ ngDeclarations = [
106
+ base_component_1.BaseComponent,
107
+ citation_dialog_component_1.CitationDialogComponent,
108
+ code_view_dialog_component_1.CodeViewDialogComponent,
109
+ confirm_dialog_component_1.ConfirmDialogComponent,
110
+ editor_component_1.EditorComponent,
111
+ link_dialog_component_1.LinkDialogComponent,
112
+ media_dialog_component_1.MediaDialogComponent,
113
+ media_selector_component_1.MediaSelectorComponent,
114
+ selector_component_1.SelectorComponent,
115
+ tree_component_1.TreeComponent,
116
+ tree_dialog_component_1.TreeDialogComponent,
117
+ tree_node_component_1.TreeNodeComponent,
118
+ ];
119
+ ngEntryComponents = [
120
+ base_component_1.BaseComponent,
121
+ citation_dialog_component_1.CitationDialogComponent,
122
+ code_view_dialog_component_1.CodeViewDialogComponent,
123
+ confirm_dialog_component_1.ConfirmDialogComponent,
124
+ editor_component_1.EditorComponent,
125
+ link_dialog_component_1.LinkDialogComponent,
126
+ media_dialog_component_1.MediaDialogComponent,
127
+ media_selector_component_1.MediaSelectorComponent,
128
+ selector_component_1.SelectorComponent,
129
+ tree_component_1.TreeComponent,
130
+ tree_dialog_component_1.TreeDialogComponent,
131
+ tree_node_component_1.TreeNodeComponent,
132
+ ];
133
+ appModuleComponents = {
134
+ 'sa-base': base_component_1.BaseComponent,
135
+ 'sa-editor': editor_component_1.EditorComponent,
136
+ 'sa-media-selector': media_selector_component_1.MediaSelectorComponent,
137
+ 'sa-selector': selector_component_1.SelectorComponent,
138
+ 'sa-tree': tree_component_1.TreeComponent
139
+ };
140
+ stratusPackages = [
141
+ map_module_1.MapPackage,
142
+ stripe_module_1.StripePackage
143
+ ];
144
+ stratusPackages.forEach((stratusPackage) => {
145
+ ngModuleImports.push(stratusPackage.stratusModule);
146
+ if (stratusPackage.hasOwnProperty('stratusComponents')) {
147
+ lodash_1.extend(appModuleComponents, stratusPackage.stratusComponents);
148
+ }
149
+ });
108
150
  AppModule = class AppModule {
109
151
  constructor() {
110
152
  this.initialTimeout = 1000;
111
153
  this.instances = {};
112
- this.modules = {
113
- 'sa-base': base_component_1.BaseComponent,
114
- 'sa-editor': editor_component_1.EditorComponent,
115
- 'sa-map': map_component_1.MapComponent,
116
- 'sa-media-selector': media_selector_component_1.MediaSelectorComponent,
117
- 'sa-selector': selector_component_1.SelectorComponent,
118
- 'sa-stripe-payment-method-list': payment_method_list_component_1.StripePaymentMethodListComponent,
119
- 'sa-stripe-payment-method-selector': payment_method_selector_component_1.StripePaymentMethodSelectorComponent,
120
- 'sa-tree': tree_component_1.TreeComponent
121
- };
122
- stratus_1.Stratus.Instances[lodash_1.default.uniqueId('sa_app_module_')] = this;
154
+ this.modules = appModuleComponents;
155
+ stratus_1.Stratus.Instances[lodash_1.uniqueId('sa_app_module_')] = this;
123
156
  }
124
157
  ngDoBootstrap(appRef) {
125
158
  this.detectBoot(appRef);
126
159
  }
127
160
  exponentialTimeout(limit) {
128
- if (lodash_1.default.isNumber(limit) && limit < this.initialTimeout) {
161
+ if (lodash_1.isNumber(limit) && limit < this.initialTimeout) {
129
162
  return limit;
130
163
  }
131
164
  const currentTimeout = this.initialTimeout;
@@ -133,12 +166,12 @@ System.register(["@angular/common/http", "@angular/core", "@angular/forms", "@an
133
166
  return currentTimeout;
134
167
  }
135
168
  detectBoot(appRef) {
136
- lodash_1.default.forEach(this.modules, (module, selector) => {
169
+ lodash_1.forEach(this.modules, (module, selector) => {
137
170
  const elements = document.getElementsByTagName(selector);
138
171
  if (!elements || !elements.length) {
139
172
  return;
140
173
  }
141
- lodash_1.default.forEach(elements, (node) => {
174
+ lodash_1.forEach(elements, (node) => {
142
175
  if (node.hasAttribute('ng-version')) {
143
176
  return;
144
177
  }
@@ -152,59 +185,9 @@ System.register(["@angular/common/http", "@angular/core", "@angular/forms", "@an
152
185
  };
153
186
  AppModule = __decorate([
154
187
  core_1.NgModule({
155
- imports: [
156
- platform_browser_1.BrowserModule,
157
- animations_1.BrowserAnimationsModule,
158
- flex_layout_1.FlexLayoutModule,
159
- forms_1.FormsModule,
160
- angular_froala_wysiwyg_1.FroalaEditorModule.forRoot(),
161
- angular_froala_wysiwyg_1.FroalaViewModule.forRoot(),
162
- google_maps_1.GoogleMapsModule,
163
- http_1.HttpClientModule,
164
- material_1.MaterialModules,
165
- core_2.MatNativeDateModule,
166
- forms_1.ReactiveFormsModule,
167
- ],
168
- entryComponents: [
169
- base_component_1.BaseComponent,
170
- citation_dialog_component_1.CitationDialogComponent,
171
- code_view_dialog_component_1.CodeViewDialogComponent,
172
- confirm_dialog_component_1.ConfirmDialogComponent,
173
- editor_component_1.EditorComponent,
174
- link_dialog_component_1.LinkDialogComponent,
175
- map_component_1.MapComponent,
176
- media_dialog_component_1.MediaDialogComponent,
177
- media_selector_component_1.MediaSelectorComponent,
178
- selector_component_1.SelectorComponent,
179
- payment_method_component_1.StripePaymentMethodComponent,
180
- payment_method_item_component_1.StripePaymentMethodItemComponent,
181
- payment_method_list_component_1.StripePaymentMethodListComponent,
182
- payment_method_selector_component_1.StripePaymentMethodSelectorComponent,
183
- setup_intent_component_1.StripeSetupIntentComponent,
184
- tree_component_1.TreeComponent,
185
- tree_dialog_component_1.TreeDialogComponent,
186
- tree_node_component_1.TreeNodeComponent,
187
- ],
188
- declarations: [
189
- base_component_1.BaseComponent,
190
- citation_dialog_component_1.CitationDialogComponent,
191
- code_view_dialog_component_1.CodeViewDialogComponent,
192
- confirm_dialog_component_1.ConfirmDialogComponent,
193
- editor_component_1.EditorComponent,
194
- link_dialog_component_1.LinkDialogComponent,
195
- map_component_1.MapComponent,
196
- media_dialog_component_1.MediaDialogComponent,
197
- media_selector_component_1.MediaSelectorComponent,
198
- selector_component_1.SelectorComponent,
199
- payment_method_component_1.StripePaymentMethodComponent,
200
- payment_method_item_component_1.StripePaymentMethodItemComponent,
201
- payment_method_list_component_1.StripePaymentMethodListComponent,
202
- payment_method_selector_component_1.StripePaymentMethodSelectorComponent,
203
- setup_intent_component_1.StripeSetupIntentComponent,
204
- tree_component_1.TreeComponent,
205
- tree_dialog_component_1.TreeDialogComponent,
206
- tree_node_component_1.TreeNodeComponent,
207
- ],
188
+ imports: ngModuleImports,
189
+ entryComponents: ngEntryComponents,
190
+ declarations: ngDeclarations,
208
191
  providers: [
209
192
  { provide: Window, useValue: window }
210
193
  ]
@@ -1 +1 @@
1
- {"version":3,"sources":["app.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAqKa,SAAS,GAAf,MAAM,SAAS;gBAgBlB;oBAdA,mBAAc,GAAG,IAAI,CAAA;oBACrB,cAAS,GAAG,EAAE,CAAA;oBAEd,YAAO,GAAG;wBACN,SAAS,EAAE,8BAAa;wBACxB,WAAW,EAAE,kCAAe;wBAC5B,QAAQ,EAAE,4BAAY;wBACtB,mBAAmB,EAAE,iDAAsB;wBAC3C,aAAa,EAAE,sCAAiB;wBAChC,+BAA+B,EAAE,gEAAgC;wBACjE,mCAAmC,EAAE,wEAAoC;wBACzE,SAAS,EAAE,8BAAa;qBAC3B,CAAA;oBAGG,iBAAO,CAAC,SAAS,CAAC,gBAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,GAAG,IAAI,CAAA;gBAE1D,CAAC;gBAED,aAAa,CAAC,MAAsB;oBAChC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAA;gBAC3B,CAAC;gBAGD,kBAAkB,CAAC,KAAc;oBAC7B,IAAI,gBAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,IAAI,CAAC,cAAc,EAAE;wBAClD,OAA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AC,cAAc,CAAA;oBAE1C,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,GAAG,IAAI,CAAA;oBAEhD,OAAO,cAAc,CAAA;gBACzB,CAAC;gBAED,UAAU,CAAC,MAAsB;oBAC7B,gBAAO,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE;wBAIvC,MAAM,QAAQ,GAAG,QAAQ,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAA;wBACxD,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;4BAC/B,OAAM;yBACT;wBACD,gBAAO,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;4BACvB,IAAI,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE;gCACjC,OAAM;6BACT;4BAID,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;wBAClC,CAAC,CAAC,CAAA;oBACN,CAAC,CAAC,CAAA;oBAuBF,UAAU,CAAC,GAAG,EAAE;wBACZ,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAA;oBAC3B,CAAC,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAA;gBACrC,CAAC;aACJ,CAAA;YAzEY,SAAS;gBAZrB,eAAQ,CAAC;oBAEN,OAAO,EAAE,eAAe;oBAExB,eAAe,EAAE,iBAAiB;oBAElC,YAAY,EAAE,cAAc;oBAE5B,SAAS,EAAE;wBACP,EAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAC;qBACtC;iBACJ,CAAC;;eACW,SAAS,CAyErB;;QACD,CAAC","file":"app.module.js"}
@@ -1 +1 @@
1
- System.register(["@angular/common/http","@angular/core","@angular/forms","@angular/material/core","@angular/platform-browser","@angular/platform-browser/animations","./material","@angular/flex-layout","./base/base.component","./confirm-dialog/confirm-dialog.component","./editor/editor.component","../../map/src/map.component","./media-selector/media-selector.component","./selector/selector.component","../../stripe/src/payment-method.component","../../stripe/src/payment-method-item.component","../../stripe/src/payment-method-list.component","../../stripe/src/payment-method-selector.component","../../stripe/src/setup-intent.component","./tree/tree.component","./tree/tree-dialog.component","./tree/tree-node.component","lodash","@stratusjs/runtime/stratus","@angular/google-maps","angular-froala-wysiwyg","./editor/citation-dialog.component","./editor/code-view-dialog.component","./editor/media-dialog.component","./editor/link-dialog.component"],function(e,t){"use strict";var o,n,i,a,r,m,p,c,s,l,u,d,f,C,g,h,M,y,S,T,D,w,b,P,B,v,R,E,_,I,L,N=this&&this.__decorate||function(e,t,o,n){var i,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,n);else for(var m=e.length-1;m>=0;m--)(i=e[m])&&(r=(a<3?i(r):a>3?i(t,o,r):i(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r},j=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){o=e},function(e){n=e},function(e){i=e},function(e){a=e},function(e){r=e},function(e){m=e},function(e){p=e},function(e){c=e},function(e){s=e},function(e){l=e},function(e){u=e},function(e){d=e},function(e){f=e},function(e){C=e},function(e){g=e},function(e){h=e},function(e){M=e},function(e){y=e},function(e){S=e},function(e){T=e},function(e){D=e},function(e){w=e},function(e){b=e},function(e){P=e},function(e){B=e},function(e){v=e},function(e){R=e},function(e){E=e},function(e){_=e},function(e){I=e}],execute:function(){L=class{constructor(){this.initialTimeout=1e3,this.instances={},this.modules={"sa-base":s.BaseComponent,"sa-editor":u.EditorComponent,"sa-map":d.MapComponent,"sa-media-selector":f.MediaSelectorComponent,"sa-selector":C.SelectorComponent,"sa-stripe-payment-method-list":M.StripePaymentMethodListComponent,"sa-stripe-payment-method-selector":y.StripePaymentMethodSelectorComponent,"sa-tree":T.TreeComponent},P.Stratus.Instances[b.default.uniqueId("sa_app_module_")]=this}ngDoBootstrap(e){this.detectBoot(e)}exponentialTimeout(e){if(b.default.isNumber(e)&&e<this.initialTimeout)return e;const t=this.initialTimeout;return this.initialTimeout=1.01*this.initialTimeout,t}detectBoot(e){b.default.forEach(this.modules,(t,o)=>{const n=document.getElementsByTagName(o);n&&n.length&&b.default.forEach(n,o=>{o.hasAttribute("ng-version")||e.bootstrap(t,o)})}),setTimeout(()=>{this.detectBoot(e)},this.exponentialTimeout(4e3))}},L=N([n.NgModule({imports:[r.BrowserModule,m.BrowserAnimationsModule,c.FlexLayoutModule,i.FormsModule,v.FroalaEditorModule.forRoot(),v.FroalaViewModule.forRoot(),B.GoogleMapsModule,o.HttpClientModule,p.MaterialModules,a.MatNativeDateModule,i.ReactiveFormsModule],entryComponents:[s.BaseComponent,R.CitationDialogComponent,E.CodeViewDialogComponent,l.ConfirmDialogComponent,u.EditorComponent,I.LinkDialogComponent,d.MapComponent,_.MediaDialogComponent,f.MediaSelectorComponent,C.SelectorComponent,g.StripePaymentMethodComponent,h.StripePaymentMethodItemComponent,M.StripePaymentMethodListComponent,y.StripePaymentMethodSelectorComponent,S.StripeSetupIntentComponent,T.TreeComponent,D.TreeDialogComponent,w.TreeNodeComponent],declarations:[s.BaseComponent,R.CitationDialogComponent,E.CodeViewDialogComponent,l.ConfirmDialogComponent,u.EditorComponent,I.LinkDialogComponent,d.MapComponent,_.MediaDialogComponent,f.MediaSelectorComponent,C.SelectorComponent,g.StripePaymentMethodComponent,h.StripePaymentMethodItemComponent,M.StripePaymentMethodListComponent,y.StripePaymentMethodSelectorComponent,S.StripeSetupIntentComponent,T.TreeComponent,D.TreeDialogComponent,w.TreeNodeComponent],providers:[{provide:Window,useValue:window}]}),j("design:paramtypes",[])],L),e("AppModule",L)}}});
1
+ System.register(["lodash","@stratusjs/runtime/stratus","@angular/common/http","@angular/core","@angular/forms","@angular/material/core","@angular/platform-browser","@angular/platform-browser/animations","./material","@angular/flex-layout","./base/base.component","./confirm-dialog/confirm-dialog.component","./editor/editor.component","./media-selector/media-selector.component","./selector/selector.component","./tree/tree.component","./tree/tree-dialog.component","./tree/tree-node.component","../../map/src/map.module","../../stripe/src/stripe.module","angular-froala-wysiwyg","./editor/citation-dialog.component","./editor/code-view-dialog.component","./editor/media-dialog.component","./editor/link-dialog.component"],function(o,e){"use strict";var t,n,i,a,r,s,c,l,u,m,p,d,f,g,C,h,M,T,w,y,D,b,B,v,R,S,E,_,x,N,j=this&&this.__decorate||function(o,e,t,n){var i,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,t):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,e,t,n);else for(var s=o.length-1;s>=0;s--)(i=o[s])&&(r=(a<3?i(r):a>3?i(e,t,r):i(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r},k=this&&this.__metadata||function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};e&&e.id;return{setters:[function(o){t=o},function(o){n=o},function(o){i=o},function(o){a=o},function(o){r=o},function(o){s=o},function(o){c=o},function(o){l=o},function(o){u=o},function(o){m=o},function(o){p=o},function(o){d=o},function(o){f=o},function(o){g=o},function(o){C=o},function(o){h=o},function(o){M=o},function(o){T=o},function(o){w=o},function(o){y=o},function(o){D=o},function(o){b=o},function(o){B=o},function(o){v=o},function(o){R=o}],execute:function(){S=[c.BrowserModule,l.BrowserAnimationsModule,m.FlexLayoutModule,r.FormsModule,D.FroalaEditorModule.forRoot(),D.FroalaViewModule.forRoot(),i.HttpClientModule,u.MaterialModules,s.MatNativeDateModule,r.ReactiveFormsModule],E=[p.BaseComponent,b.CitationDialogComponent,B.CodeViewDialogComponent,d.ConfirmDialogComponent,f.EditorComponent,R.LinkDialogComponent,v.MediaDialogComponent,g.MediaSelectorComponent,C.SelectorComponent,h.TreeComponent,M.TreeDialogComponent,T.TreeNodeComponent],_=[p.BaseComponent,b.CitationDialogComponent,B.CodeViewDialogComponent,d.ConfirmDialogComponent,f.EditorComponent,R.LinkDialogComponent,v.MediaDialogComponent,g.MediaSelectorComponent,C.SelectorComponent,h.TreeComponent,M.TreeDialogComponent,T.TreeNodeComponent],x={"sa-base":p.BaseComponent,"sa-editor":f.EditorComponent,"sa-media-selector":g.MediaSelectorComponent,"sa-selector":C.SelectorComponent,"sa-tree":h.TreeComponent},[w.MapPackage,y.StripePackage].forEach(o=>{S.push(o.stratusModule),o.hasOwnProperty("stratusComponents")&&t.extend(x,o.stratusComponents)}),N=class{constructor(){this.initialTimeout=1e3,this.instances={},this.modules=x,n.Stratus.Instances[t.uniqueId("sa_app_module_")]=this}ngDoBootstrap(o){this.detectBoot(o)}exponentialTimeout(o){if(t.isNumber(o)&&o<this.initialTimeout)return o;const e=this.initialTimeout;return this.initialTimeout=1.01*this.initialTimeout,e}detectBoot(o){t.forEach(this.modules,(e,n)=>{const i=document.getElementsByTagName(n);i&&i.length&&t.forEach(i,t=>{t.hasAttribute("ng-version")||o.bootstrap(e,t)})}),setTimeout(()=>{this.detectBoot(o)},this.exponentialTimeout(4e3))}},N=j([a.NgModule({imports:S,entryComponents:_,declarations:E,providers:[{provide:Window,useValue:window}]}),k("design:paramtypes",[])],N),o("AppModule",N)}}});
package/src/app.module.ts CHANGED
@@ -3,6 +3,9 @@
3
3
  // - add an import to define where it is located, e.g. import { BaseComponent } from './base/base.component'
4
4
  // - add to declarations and entryComponents
5
5
 
6
+ import {forEach, extend, isNumber, uniqueId} from 'lodash'
7
+ import {Stratus} from '@stratusjs/runtime/stratus'
8
+
6
9
  // Angular Core
7
10
  import {HttpClientModule} from '@angular/common/http'
8
11
  import {
@@ -37,24 +40,16 @@ import {BaseComponent} from './base/base.component'
37
40
  // Stratus Custom Directives/Components
38
41
  import {ConfirmDialogComponent} from './confirm-dialog/confirm-dialog.component'
39
42
  import {EditorComponent} from './editor/editor.component'
40
- import {MapComponent} from '../../map/src/map.component'
41
43
  import {MediaSelectorComponent} from './media-selector/media-selector.component'
42
44
  import {SelectorComponent} from './selector/selector.component'
43
- import {StripePaymentMethodComponent} from '../../stripe/src/payment-method.component'
44
- import {StripePaymentMethodItemComponent} from '../../stripe/src/payment-method-item.component'
45
- import {StripePaymentMethodListComponent} from '../../stripe/src/payment-method-list.component'
46
- import {StripePaymentMethodSelectorComponent} from '../../stripe/src/payment-method-selector.component'
47
- import {StripeSetupIntentComponent} from '../../stripe/src/setup-intent.component'
48
45
  import {TreeComponent} from './tree/tree.component'
49
46
  import {TreeDialogComponent} from './tree/tree-dialog.component'
50
47
  import {TreeNodeComponent} from './tree/tree-node.component'
51
48
 
52
- // External Dependencies
53
- import _ from 'lodash'
54
- import {Stratus} from '@stratusjs/runtime/stratus'
55
-
56
- // Google Modules (required by @stratusjs/map)
57
- import {GoogleMapsModule} from '@angular/google-maps'
49
+ // Custom Angular StratusPackages
50
+ // import {FormPackage} from '../../form/src/form.module'
51
+ import {MapPackage} from '../../map/src/map.module'
52
+ import {StripePackage} from '../../stripe/src/stripe.module'
58
53
 
59
54
  // Froala Modules (Required by Editor)
60
55
  import {
@@ -74,6 +69,11 @@ import {
74
69
  LinkDialogComponent
75
70
  } from './editor/link-dialog.component'
76
71
 
72
+ export type StratusPackage = {
73
+ stratusModule: any
74
+ stratusComponents?: {[key:string]: any}
75
+ }
76
+
77
77
  // Dynamic Loader Prototype
78
78
  // import {
79
79
  // AngularModules
@@ -86,7 +86,7 @@ import {
86
86
  // 'sa-tree': TreeComponent
87
87
  // };
88
88
  //
89
- // const bootstrap = _.keys(roster)
89
+ // const bootstrap = keys(roster)
90
90
  // .map(component => {
91
91
  // const elements = document.getElementsByTagName(component);
92
92
  // if (!elements || !elements.length) {
@@ -95,69 +95,85 @@ import {
95
95
  // return component;
96
96
  // })
97
97
  // .filter((item) => !!item)
98
- // .map((element) => _.get(roster, element) || null)
98
+ // .map((element) => get(roster, element) || null)
99
99
  // .filter((item) => !!item);
100
100
 
101
+ // These are for external libraries (or Angular)
102
+ const ngModuleImports: any[] = [
103
+ // AngularModules,
104
+ BrowserModule,
105
+ BrowserAnimationsModule,
106
+ // CodeEditorModule.forRoot(),
107
+ FlexLayoutModule,
108
+ FormsModule,
109
+ FroalaEditorModule.forRoot(),
110
+ FroalaViewModule.forRoot(),
111
+ HttpClientModule,
112
+ MaterialModules,
113
+ MatNativeDateModule,
114
+ ReactiveFormsModule,
115
+ // SelectorComponent.forRoot()
116
+ ]
117
+
118
+ // These determine what exists as a component within Angular system.
119
+ const ngDeclarations: any[] = [
120
+ BaseComponent,
121
+ CitationDialogComponent,
122
+ CodeViewDialogComponent,
123
+ ConfirmDialogComponent,
124
+ EditorComponent,
125
+ LinkDialogComponent,
126
+ MediaDialogComponent,
127
+ MediaSelectorComponent,
128
+ SelectorComponent,
129
+ TreeComponent,
130
+ TreeDialogComponent,
131
+ TreeNodeComponent,
132
+ ]
133
+
134
+ // This determines what is accessible via DOM as a component. These must be listed in `ngDeclarations`.
135
+ const ngEntryComponents: any[] = [
136
+ BaseComponent, // FIXME shouldn't be needed as doesn't load on DOM
137
+ CitationDialogComponent,
138
+ CodeViewDialogComponent,
139
+ ConfirmDialogComponent,
140
+ EditorComponent,
141
+ LinkDialogComponent,
142
+ MediaDialogComponent,
143
+ MediaSelectorComponent,
144
+ SelectorComponent,
145
+ TreeComponent,
146
+ TreeDialogComponent,
147
+ TreeNodeComponent,
148
+ ]
149
+
150
+ const appModuleComponents = {
151
+ 'sa-base': BaseComponent,
152
+ 'sa-editor': EditorComponent,
153
+ 'sa-media-selector': MediaSelectorComponent,
154
+ 'sa-selector': SelectorComponent,
155
+ 'sa-tree': TreeComponent
156
+ }
157
+
158
+ // This determines what custom Stratus Packages we want loaded in and will handle it's own declarations
159
+ const stratusPackages: StratusPackage[] = [
160
+ MapPackage, // @stratusjs/map
161
+ StripePackage // @stratusjs/stripe
162
+ ]
163
+ stratusPackages.forEach((stratusPackage) => {
164
+ ngModuleImports.push(stratusPackage.stratusModule)
165
+ if (stratusPackage.hasOwnProperty('stratusComponents')) {
166
+ extend(appModuleComponents, stratusPackage.stratusComponents)
167
+ }
168
+ })
169
+
101
170
  @NgModule({
102
171
  // These are for external libraries (or Angular)
103
- imports: [
104
- // AngularModules,
105
- BrowserModule,
106
- BrowserAnimationsModule,
107
- // CodeEditorModule.forRoot(),
108
- FlexLayoutModule,
109
- FormsModule,
110
- FroalaEditorModule.forRoot(),
111
- FroalaViewModule.forRoot(),
112
- GoogleMapsModule, // Required by @stratusjs/map
113
- HttpClientModule,
114
- MaterialModules,
115
- MatNativeDateModule,
116
- ReactiveFormsModule,
117
- // SelectorComponent.forRoot()
118
- ],
119
- // This determines what is accessible as a component. These must be listed in `declarations`.
120
- entryComponents: [
121
- BaseComponent,
122
- CitationDialogComponent,
123
- CodeViewDialogComponent,
124
- ConfirmDialogComponent,
125
- EditorComponent,
126
- LinkDialogComponent,
127
- MapComponent,
128
- MediaDialogComponent,
129
- MediaSelectorComponent,
130
- SelectorComponent,
131
- StripePaymentMethodComponent,
132
- StripePaymentMethodItemComponent,
133
- StripePaymentMethodListComponent,
134
- StripePaymentMethodSelectorComponent,
135
- StripeSetupIntentComponent,
136
- TreeComponent,
137
- TreeDialogComponent,
138
- TreeNodeComponent,
139
- ],
140
- // These determine what exists as a component. These must be listed in `entryComponents`.
141
- declarations: [
142
- BaseComponent,
143
- CitationDialogComponent,
144
- CodeViewDialogComponent,
145
- ConfirmDialogComponent,
146
- EditorComponent,
147
- LinkDialogComponent,
148
- MapComponent,
149
- MediaDialogComponent,
150
- MediaSelectorComponent,
151
- SelectorComponent,
152
- StripePaymentMethodComponent,
153
- StripePaymentMethodItemComponent,
154
- StripePaymentMethodListComponent,
155
- StripePaymentMethodSelectorComponent,
156
- StripeSetupIntentComponent,
157
- TreeComponent,
158
- TreeDialogComponent,
159
- TreeNodeComponent,
160
- ],
172
+ imports: ngModuleImports,
173
+ // This determines what is accessible via DOM as a component. These must be listed in `declarations`.
174
+ entryComponents: ngEntryComponents,
175
+ // These determine what exists as a component within Angular system.
176
+ declarations: ngDeclarations,
161
177
  // bootstrap,
162
178
  providers: [
163
179
  {provide: Window, useValue: window}
@@ -168,20 +184,10 @@ export class AppModule {
168
184
  initialTimeout = 1000
169
185
  instances = {}
170
186
  // These modules will be hydrated directly in the HTML, and *cannot* load in a component template/dialog
171
- modules = {
172
- 'sa-base': BaseComponent,
173
- 'sa-editor': EditorComponent,
174
- 'sa-map': MapComponent,
175
- 'sa-media-selector': MediaSelectorComponent,
176
- 'sa-selector': SelectorComponent,
177
- 'sa-stripe-payment-method-list': StripePaymentMethodListComponent,
178
- 'sa-stripe-payment-method-selector': StripePaymentMethodSelectorComponent,
179
- 'sa-tree': TreeComponent
180
- }
187
+ modules = appModuleComponents
181
188
 
182
189
  constructor() {
183
- Stratus.Instances[_.uniqueId('sa_app_module_')] = this
184
- // TODO: Fill out the Arrays above dynamically... :D
190
+ Stratus.Instances[uniqueId('sa_app_module_')] = this
185
191
  }
186
192
 
187
193
  ngDoBootstrap(appRef: ApplicationRef) {
@@ -190,7 +196,7 @@ export class AppModule {
190
196
 
191
197
  // Fade out detection cycles
192
198
  exponentialTimeout(limit?: number) {
193
- if (_.isNumber(limit) && limit < this.initialTimeout) {
199
+ if (isNumber(limit) && limit < this.initialTimeout) {
194
200
  return limit
195
201
  }
196
202
  // store current
@@ -202,7 +208,7 @@ export class AppModule {
202
208
  }
203
209
 
204
210
  detectBoot(appRef: ApplicationRef) {
205
- _.forEach(this.modules, (module, selector) => {
211
+ forEach(this.modules, (module, selector) => {
206
212
  // if (!(module instanceof ComponentFactory)) {
207
213
  // return;
208
214
  // }
@@ -210,7 +216,7 @@ export class AppModule {
210
216
  if (!elements || !elements.length) {
211
217
  return
212
218
  }
213
- _.forEach(elements, (node) => {
219
+ forEach(elements, (node) => {
214
220
  if (node.hasAttribute('ng-version')) {
215
221
  return
216
222
  }
@@ -222,7 +228,7 @@ export class AppModule {
222
228
  })
223
229
  // FIXME this logic is broken
224
230
  /*
225
- _.forEach(this.directives, (directive, selector) => {
231
+ forEach(this.directives, (directive, selector) => {
226
232
  // if (!(module instanceof ComponentFactory)) {
227
233
  // return;
228
234
  // }
@@ -231,7 +237,7 @@ export class AppModule {
231
237
  if (!elements || !elements.length) {
232
238
  return
233
239
  }
234
- _.forEach(elements, (node) => {
240
+ forEach(elements, (node) => {
235
241
  if (node.hasAttribute('ng-version')) {
236
242
  return
237
243
  }
@@ -0,0 +1,38 @@
1
+ System.register(["quill", "@stratusjs/core/environment"], function (exports_1, context_1) {
2
+ "use strict";
3
+ var quill_1, environment_1, Break, Embed, QuillBreak;
4
+ var __moduleName = context_1 && context_1.id;
5
+ return {
6
+ setters: [
7
+ function (quill_1_1) {
8
+ quill_1 = quill_1_1;
9
+ },
10
+ function (environment_1_1) {
11
+ environment_1 = environment_1_1;
12
+ }
13
+ ],
14
+ execute: function () {
15
+ Break = quill_1.default.import('blots/break');
16
+ Embed = quill_1.default.import('blots/embed');
17
+ QuillBreak = class QuillBreak extends Break {
18
+ length() {
19
+ return 1;
20
+ }
21
+ value() {
22
+ return '\n';
23
+ }
24
+ insertInto(parent, ref) {
25
+ if (environment_1.cookie('env')) {
26
+ console.log('insertInto:', parent, ref);
27
+ }
28
+ Embed.prototype.insertInto.call(this, parent, ref);
29
+ }
30
+ };
31
+ exports_1("QuillBreak", QuillBreak);
32
+ QuillBreak.blotName = 'break';
33
+ QuillBreak.tagName = 'BR';
34
+ }
35
+ };
36
+ });
37
+
38
+ //# sourceMappingURL=quill-break-blot.plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["quill-break-blot.plugin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;YAKM,KAAK,GAAG,eAAK,CAAC,MAAM,CAAC,aAAa,CAAC,CAAA;YACnC,KAAK,GAAG,eAAK,CAAC,MAAM,CAAC,aAAa,CAAC,CAAA;YAWzC,aAAA,MAAa,UAAW,SAAQ,KAAK;gBACjC,MAAM;oBACF,OAAO,CAAC,CAAA;gBACZ,CAAC;gBACD,KAAK;oBACD,OAAO,IAAI,CAAA;gBACf,CAAC;gBAED,UAAU,CAAC,MAAW,EAAE,GAAQ;oBAC5B,IAAI,oBAAM,CAAC,KAAK,CAAC,EAAE;wBACf,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,MAAM,EAAE,GAAG,CAAC,CAAA;qBAC1C;oBACD,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,CAAA;gBACtD,CAAC;aACJ,CAAA;;YAED,UAAU,CAAC,QAAQ,GAAG,OAAO,CAAA;YAC7B,UAAU,CAAC,OAAO,GAAG,IAAI,CAAA;QACzB,CAAC","file":"quill-break-blot.plugin.js"}
@@ -0,0 +1 @@
1
+ System.register(["quill","@stratusjs/core/environment"],function(t,e){"use strict";var n,r,o,s,i;e&&e.id;return{setters:[function(t){n=t},function(t){r=t}],execute:function(){o=n.default.import("blots/break"),s=n.default.import("blots/embed"),t("QuillBreak",i=class extends o{length(){return 1}value(){return"\n"}insertInto(t,e){r.cookie("env")&&console.log("insertInto:",t,e),s.prototype.insertInto.call(this,t,e)}}),i.blotName="break",i.tagName="BR"}}});