@stratusjs/angular 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/angular.bundle.min.js +1 -1
  2. package/package.json +1 -1
  3. package/src/angular.modules.js +33 -18
  4. package/src/angular.modules.js.map +1 -1
  5. package/src/app.module.js +254 -181
  6. package/src/app.module.js.map +1 -1
  7. package/src/backend.service.js +87 -66
  8. package/src/backend.service.js.map +1 -1
  9. package/src/base/base.component.js +124 -101
  10. package/src/base/base.component.js.map +1 -1
  11. package/src/boot.js +55 -42
  12. package/src/boot.js.map +1 -1
  13. package/src/confirm-dialog/confirm-dialog.component.js +60 -41
  14. package/src/confirm-dialog/confirm-dialog.component.js.map +1 -1
  15. package/src/core/base.interface.js +9 -1
  16. package/src/core/base.interface.js.map +1 -1
  17. package/src/core/refresh.interface.js +9 -1
  18. package/src/core/refresh.interface.js.map +1 -1
  19. package/src/core/responsive.component.js +58 -40
  20. package/src/core/responsive.component.js.map +1 -1
  21. package/src/core/responsive.interface.js +9 -1
  22. package/src/core/responsive.interface.js.map +1 -1
  23. package/src/core/root.component.js +43 -24
  24. package/src/core/root.component.js.map +1 -1
  25. package/src/core/trigger.interface.js +9 -1
  26. package/src/core/trigger.interface.js.map +1 -1
  27. package/src/data/contact-meta.interface.js +9 -1
  28. package/src/data/contact-meta.interface.js.map +1 -1
  29. package/src/data/content.interface.js +9 -1
  30. package/src/data/content.interface.js.map +1 -1
  31. package/src/data/convoy.interface.js +9 -1
  32. package/src/data/convoy.interface.js.map +1 -1
  33. package/src/editor/citation-dialog.component.js +207 -174
  34. package/src/editor/citation-dialog.component.js.map +1 -1
  35. package/src/editor/code-mirror-bridge.js +74 -60
  36. package/src/editor/code-mirror-bridge.js.map +1 -1
  37. package/src/editor/code-mirror-bridge.min.js +1 -1
  38. package/src/editor/code-view-dialog.component.js +116 -87
  39. package/src/editor/code-view-dialog.component.js.map +1 -1
  40. package/src/editor/editor.component.js +961 -903
  41. package/src/editor/editor.component.js.map +1 -1
  42. package/src/editor/link-dialog.component.js +395 -356
  43. package/src/editor/link-dialog.component.js.map +1 -1
  44. package/src/editor/media-dialog.component.js +303 -270
  45. package/src/editor/media-dialog.component.js.map +1 -1
  46. package/src/froala/plugins/citationManager.js +191 -170
  47. package/src/froala/plugins/citationManager.js.map +1 -1
  48. package/src/froala/plugins/inputButton.js +138 -122
  49. package/src/froala/plugins/inputButton.js.map +1 -1
  50. package/src/froala/plugins/linkManager.js +104 -89
  51. package/src/froala/plugins/linkManager.js.map +1 -1
  52. package/src/froala/plugins/mediaManager.js +87 -72
  53. package/src/froala/plugins/mediaManager.js.map +1 -1
  54. package/src/froala/plugins/menuButton.js +86 -71
  55. package/src/froala/plugins/menuButton.js.map +1 -1
  56. package/src/main.js +33 -13
  57. package/src/main.js.map +1 -1
  58. package/src/material.js +194 -99
  59. package/src/material.js.map +1 -1
  60. package/src/media-selector/media-selector.component.js +441 -406
  61. package/src/media-selector/media-selector.component.js.map +1 -1
  62. package/src/polyfills.js +16 -3
  63. package/src/polyfills.js.map +1 -1
  64. package/src/quill-plugins/quill-break-blot.plugin.js +35 -19
  65. package/src/quill-plugins/quill-break-blot.plugin.js.map +1 -1
  66. package/src/quill-plugins/quill-html-edit.plugin.js +153 -140
  67. package/src/quill-plugins/quill-html-edit.plugin.js.map +1 -1
  68. package/src/quill-plugins/quill-image-format.plugin.js +47 -33
  69. package/src/quill-plugins/quill-image-format.plugin.js.map +1 -1
  70. package/src/quill-plugins/quill-input-button.plugin.js +95 -77
  71. package/src/quill-plugins/quill-input-button.plugin.js.map +1 -1
  72. package/src/selector/selector.component.js +276 -241
  73. package/src/selector/selector.component.js.map +1 -1
  74. package/src/test/test.directive.js +66 -49
  75. package/src/test/test.directive.js.map +1 -1
  76. package/src/tree/tree-dialog.component.js +231 -202
  77. package/src/tree/tree-dialog.component.js.map +1 -1
  78. package/src/tree/tree-node.component.js +282 -253
  79. package/src/tree/tree-node.component.js.map +1 -1
  80. package/src/tree/tree.component.js +561 -531
  81. package/src/tree/tree.component.js.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stratusjs/angular",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "This is the angular package for StratusJS.",
5
5
  "scripts": {},
6
6
  "repository": {
@@ -1,20 +1,35 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { NgModule } from '@angular/core';
8
- import { EditorComponent } from './editor/editor.component';
9
- let AngularModules = class AngularModules {
10
- };
11
- AngularModules = __decorate([
12
- NgModule({
13
- exports: [
14
- EditorComponent,
15
- ]
16
- })
17
- ], AngularModules);
18
- export { AngularModules };
1
+ System.register(["@angular/core", "./editor/editor.component"], function (exports_1, context_1) {
2
+ "use strict";
3
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
4
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
7
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
8
+ };
9
+ var core_1, editor_component_1, AngularModules;
10
+ var __moduleName = context_1 && context_1.id;
11
+ return {
12
+ setters: [
13
+ function (core_1_1) {
14
+ core_1 = core_1_1;
15
+ },
16
+ function (editor_component_1_1) {
17
+ editor_component_1 = editor_component_1_1;
18
+ }
19
+ ],
20
+ execute: function () {
21
+ AngularModules = class AngularModules {
22
+ };
23
+ AngularModules = __decorate([
24
+ core_1.NgModule({
25
+ exports: [
26
+ editor_component_1.EditorComponent,
27
+ ]
28
+ })
29
+ ], AngularModules);
30
+ exports_1("AngularModules", AngularModules);
31
+ }
32
+ };
33
+ });
19
34
 
20
35
  //# sourceMappingURL=angular.modules.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["angular.modules.ts"],"names":[],"mappings":";;;;;;AAGA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;AAGtC,OAAO,EACH,eAAe,EAClB,MAAM,2BAA2B,CAAA;AAclC,IAAa,cAAc,GAA3B,MAAa,cAAc;CAC1B,CAAA;AADY,cAAc;IAN1B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,eAAe;SAElB;KACJ,CAAC;GACW,cAAc,CAC1B;SADY,cAAc","file":"angular.modules.js"}
1
+ {"version":3,"sources":["angular.modules.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;YAsBa,cAAc,GAA3B,MAAa,cAAc;aAC1B,CAAA;YADY,cAAc;gBAN1B,eAAQ,CAAC;oBACN,OAAO,EAAE;wBACL,kCAAe;qBAElB;iBACJ,CAAC;eACW,cAAc,CAC1B;;QACD,CAAC","file":"angular.modules.js"}
package/src/app.module.js CHANGED
@@ -1,186 +1,259 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { cookie } from '@stratusjs/core/environment';
11
- import { HttpClientModule } from '@angular/common/http';
12
- import { NgModule } from '@angular/core';
13
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
14
- import { MatNativeDateModule } from '@angular/material/core';
15
- import { BrowserModule } from '@angular/platform-browser';
16
- import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
17
- import { MaterialModules } from './material';
18
- import { FlexLayoutModule } from '@angular/flex-layout';
19
- import { BaseComponent } from './base/base.component';
20
- import { ConfirmDialogComponent } from './confirm-dialog/confirm-dialog.component';
21
- import { EditorComponent } from './editor/editor.component';
22
- import { MapComponent } from '../../map/src/map.component';
23
- import { MediaSelectorComponent } from './media-selector/media-selector.component';
24
- import { SelectorComponent } from './selector/selector.component';
25
- import { StripePaymentMethodComponent } from '../../stripe/src/payment-method.component';
26
- import { StripePaymentMethodItemComponent } from '../../stripe/src/payment-method-item.component';
27
- import { StripePaymentMethodListComponent } from '../../stripe/src/payment-method-list.component';
28
- import { StripePaymentMethodSelectorComponent } from '../../stripe/src/payment-method-selector.component';
29
- import { StripeSetupIntentComponent } from '../../stripe/src/setup-intent.component';
30
- import { TreeComponent } from './tree/tree.component';
31
- import { TreeDialogComponent } from './tree/tree-dialog.component';
32
- import { TreeNodeComponent } from './tree/tree-node.component';
33
- import _ from 'lodash';
34
- import { Stratus } from '@stratusjs/runtime/stratus';
35
- import { GoogleMapsModule } from '@angular/google-maps';
36
- import { CitationDialogComponent } from './editor/citation-dialog.component';
37
- import { CodeViewDialogComponent } from './editor/code-view-dialog.component';
38
- import { MediaDialogComponent } from './editor/media-dialog.component';
39
- import { LinkDialogComponent } from './editor/link-dialog.component';
40
- import { FroalaEditorModule, FroalaViewModule } from 'angular-froala-wysiwyg';
41
- const quillConfig = {
42
- modules: {
43
- syntax: true,
44
- toolbar: [
45
- ['bold', 'italic', 'underline', 'strike'],
46
- [{ script: 'sub' }, { script: 'super' }],
47
- [{ header: [1, 2, 3, 4, 5, 6, false] }],
48
- [{ list: 'ordered' }, { list: 'bullet' }],
49
- ['blockquote', 'code-block'],
50
- [{
51
- align: []
52
- }],
53
- [{ indent: '-1' }, { indent: '+1' }],
54
- ['clean'],
55
- [
56
- 'link',
57
- 'video'
58
- ],
1
+ System.register(["@stratusjs/core/environment", "@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", "./editor/citation-dialog.component", "./editor/code-view-dialog.component", "./editor/media-dialog.component", "./editor/link-dialog.component", "angular-froala-wysiwyg"], function (exports_1, context_1) {
2
+ "use strict";
3
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
4
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
7
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
8
+ };
9
+ var __metadata = (this && this.__metadata) || function (k, v) {
10
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
11
+ };
12
+ var environment_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, 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, citation_dialog_component_1, code_view_dialog_component_1, media_dialog_component_1, link_dialog_component_1, angular_froala_wysiwyg_1, quillConfig, AppModule;
13
+ var __moduleName = context_1 && context_1.id;
14
+ return {
15
+ setters: [
16
+ function (environment_1_1) {
17
+ environment_1 = environment_1_1;
18
+ },
19
+ function (http_1_1) {
20
+ http_1 = http_1_1;
21
+ },
22
+ function (core_1_1) {
23
+ core_1 = core_1_1;
24
+ },
25
+ function (forms_1_1) {
26
+ forms_1 = forms_1_1;
27
+ },
28
+ function (core_2_1) {
29
+ core_2 = core_2_1;
30
+ },
31
+ function (platform_browser_1_1) {
32
+ platform_browser_1 = platform_browser_1_1;
33
+ },
34
+ function (animations_1_1) {
35
+ animations_1 = animations_1_1;
36
+ },
37
+ function (material_1_1) {
38
+ material_1 = material_1_1;
39
+ },
40
+ function (flex_layout_1_1) {
41
+ flex_layout_1 = flex_layout_1_1;
42
+ },
43
+ function (base_component_1_1) {
44
+ base_component_1 = base_component_1_1;
45
+ },
46
+ function (confirm_dialog_component_1_1) {
47
+ confirm_dialog_component_1 = confirm_dialog_component_1_1;
48
+ },
49
+ function (editor_component_1_1) {
50
+ editor_component_1 = editor_component_1_1;
51
+ },
52
+ function (map_component_1_1) {
53
+ map_component_1 = map_component_1_1;
54
+ },
55
+ function (media_selector_component_1_1) {
56
+ media_selector_component_1 = media_selector_component_1_1;
57
+ },
58
+ function (selector_component_1_1) {
59
+ selector_component_1 = selector_component_1_1;
60
+ },
61
+ function (payment_method_component_1_1) {
62
+ payment_method_component_1 = payment_method_component_1_1;
63
+ },
64
+ function (payment_method_item_component_1_1) {
65
+ payment_method_item_component_1 = payment_method_item_component_1_1;
66
+ },
67
+ function (payment_method_list_component_1_1) {
68
+ payment_method_list_component_1 = payment_method_list_component_1_1;
69
+ },
70
+ function (payment_method_selector_component_1_1) {
71
+ payment_method_selector_component_1 = payment_method_selector_component_1_1;
72
+ },
73
+ function (setup_intent_component_1_1) {
74
+ setup_intent_component_1 = setup_intent_component_1_1;
75
+ },
76
+ function (tree_component_1_1) {
77
+ tree_component_1 = tree_component_1_1;
78
+ },
79
+ function (tree_dialog_component_1_1) {
80
+ tree_dialog_component_1 = tree_dialog_component_1_1;
81
+ },
82
+ function (tree_node_component_1_1) {
83
+ tree_node_component_1 = tree_node_component_1_1;
84
+ },
85
+ function (lodash_1_1) {
86
+ lodash_1 = lodash_1_1;
87
+ },
88
+ function (stratus_1_1) {
89
+ stratus_1 = stratus_1_1;
90
+ },
91
+ function (google_maps_1_1) {
92
+ google_maps_1 = google_maps_1_1;
93
+ },
94
+ function (citation_dialog_component_1_1) {
95
+ citation_dialog_component_1 = citation_dialog_component_1_1;
96
+ },
97
+ function (code_view_dialog_component_1_1) {
98
+ code_view_dialog_component_1 = code_view_dialog_component_1_1;
99
+ },
100
+ function (media_dialog_component_1_1) {
101
+ media_dialog_component_1 = media_dialog_component_1_1;
102
+ },
103
+ function (link_dialog_component_1_1) {
104
+ link_dialog_component_1 = link_dialog_component_1_1;
105
+ },
106
+ function (angular_froala_wysiwyg_1_1) {
107
+ angular_froala_wysiwyg_1 = angular_froala_wysiwyg_1_1;
108
+ }
59
109
  ],
60
- mediaLibrary: {
61
- debug: true,
62
- buttonHTML: '<i class="fas fa-photo-video"></i>',
63
- buttonTitle: 'Media Library',
64
- name: 'mediaLibrary',
65
- eventName: 'media-library'
66
- },
67
- codeView: {
68
- debug: true,
69
- buttonHTML: '<i class="fas fa-file-code"></i>',
70
- buttonTitle: 'Code View',
71
- name: 'codeView',
72
- eventName: 'code-view'
73
- }
74
- }
75
- };
76
- if (cookie('env')) {
77
- }
78
- let AppModule = class AppModule {
79
- constructor() {
80
- this.initialTimeout = 1000;
81
- this.instances = {};
82
- this.modules = {
83
- 'sa-base': BaseComponent,
84
- 'sa-editor': EditorComponent,
85
- 'sa-map': MapComponent,
86
- 'sa-media-selector': MediaSelectorComponent,
87
- 'sa-selector': SelectorComponent,
88
- 'sa-stripe-payment-method-list': StripePaymentMethodListComponent,
89
- 'sa-stripe-payment-method-selector': StripePaymentMethodSelectorComponent,
90
- 'sa-tree': TreeComponent
91
- };
92
- Stratus.Instances[_.uniqueId('sa_app_module_')] = this;
93
- }
94
- ngDoBootstrap(appRef) {
95
- this.detectBoot(appRef);
96
- }
97
- exponentialTimeout(limit) {
98
- if (_.isNumber(limit) && limit < this.initialTimeout) {
99
- return limit;
100
- }
101
- const currentTimeout = this.initialTimeout;
102
- this.initialTimeout = this.initialTimeout * 1.01;
103
- return currentTimeout;
104
- }
105
- detectBoot(appRef) {
106
- _.forEach(this.modules, (module, selector) => {
107
- const elements = document.getElementsByTagName(selector);
108
- if (!elements || !elements.length) {
109
- return;
110
+ execute: function () {
111
+ quillConfig = {
112
+ modules: {
113
+ syntax: true,
114
+ toolbar: [
115
+ ['bold', 'italic', 'underline', 'strike'],
116
+ [{ script: 'sub' }, { script: 'super' }],
117
+ [{ header: [1, 2, 3, 4, 5, 6, false] }],
118
+ [{ list: 'ordered' }, { list: 'bullet' }],
119
+ ['blockquote', 'code-block'],
120
+ [{
121
+ align: []
122
+ }],
123
+ [{ indent: '-1' }, { indent: '+1' }],
124
+ ['clean'],
125
+ [
126
+ 'link',
127
+ 'video'
128
+ ],
129
+ ],
130
+ mediaLibrary: {
131
+ debug: true,
132
+ buttonHTML: '<i class="fas fa-photo-video"></i>',
133
+ buttonTitle: 'Media Library',
134
+ name: 'mediaLibrary',
135
+ eventName: 'media-library'
136
+ },
137
+ codeView: {
138
+ debug: true,
139
+ buttonHTML: '<i class="fas fa-file-code"></i>',
140
+ buttonTitle: 'Code View',
141
+ name: 'codeView',
142
+ eventName: 'code-view'
143
+ }
144
+ }
145
+ };
146
+ if (environment_1.cookie('env')) {
110
147
  }
111
- _.forEach(elements, (node) => {
112
- if (node.hasAttribute('ng-version')) {
113
- return;
148
+ AppModule = class AppModule {
149
+ constructor() {
150
+ this.initialTimeout = 1000;
151
+ this.instances = {};
152
+ this.modules = {
153
+ 'sa-base': base_component_1.BaseComponent,
154
+ 'sa-editor': editor_component_1.EditorComponent,
155
+ 'sa-map': map_component_1.MapComponent,
156
+ 'sa-media-selector': media_selector_component_1.MediaSelectorComponent,
157
+ 'sa-selector': selector_component_1.SelectorComponent,
158
+ 'sa-stripe-payment-method-list': payment_method_list_component_1.StripePaymentMethodListComponent,
159
+ 'sa-stripe-payment-method-selector': payment_method_selector_component_1.StripePaymentMethodSelectorComponent,
160
+ 'sa-tree': tree_component_1.TreeComponent
161
+ };
162
+ stratus_1.Stratus.Instances[lodash_1.default.uniqueId('sa_app_module_')] = this;
114
163
  }
115
- appRef.bootstrap(module, node);
116
- });
117
- });
118
- setTimeout(() => {
119
- this.detectBoot(appRef);
120
- }, this.exponentialTimeout(4000));
121
- }
122
- };
123
- AppModule = __decorate([
124
- NgModule({
125
- imports: [
126
- BrowserModule,
127
- BrowserAnimationsModule,
128
- FlexLayoutModule,
129
- FormsModule,
130
- FroalaEditorModule.forRoot(),
131
- FroalaViewModule.forRoot(),
132
- GoogleMapsModule,
133
- HttpClientModule,
134
- MaterialModules,
135
- MatNativeDateModule,
136
- ReactiveFormsModule,
137
- ],
138
- entryComponents: [
139
- BaseComponent,
140
- CitationDialogComponent,
141
- CodeViewDialogComponent,
142
- ConfirmDialogComponent,
143
- EditorComponent,
144
- LinkDialogComponent,
145
- MapComponent,
146
- MediaDialogComponent,
147
- MediaSelectorComponent,
148
- SelectorComponent,
149
- StripePaymentMethodComponent,
150
- StripePaymentMethodItemComponent,
151
- StripePaymentMethodListComponent,
152
- StripePaymentMethodSelectorComponent,
153
- StripeSetupIntentComponent,
154
- TreeComponent,
155
- TreeDialogComponent,
156
- TreeNodeComponent,
157
- ],
158
- declarations: [
159
- BaseComponent,
160
- CitationDialogComponent,
161
- CodeViewDialogComponent,
162
- ConfirmDialogComponent,
163
- EditorComponent,
164
- LinkDialogComponent,
165
- MapComponent,
166
- MediaDialogComponent,
167
- MediaSelectorComponent,
168
- SelectorComponent,
169
- StripePaymentMethodComponent,
170
- StripePaymentMethodItemComponent,
171
- StripePaymentMethodListComponent,
172
- StripePaymentMethodSelectorComponent,
173
- StripeSetupIntentComponent,
174
- TreeComponent,
175
- TreeDialogComponent,
176
- TreeNodeComponent,
177
- ],
178
- providers: [
179
- { provide: Window, useValue: window }
180
- ]
181
- }),
182
- __metadata("design:paramtypes", [])
183
- ], AppModule);
184
- export { AppModule };
164
+ ngDoBootstrap(appRef) {
165
+ this.detectBoot(appRef);
166
+ }
167
+ exponentialTimeout(limit) {
168
+ if (lodash_1.default.isNumber(limit) && limit < this.initialTimeout) {
169
+ return limit;
170
+ }
171
+ const currentTimeout = this.initialTimeout;
172
+ this.initialTimeout = this.initialTimeout * 1.01;
173
+ return currentTimeout;
174
+ }
175
+ detectBoot(appRef) {
176
+ lodash_1.default.forEach(this.modules, (module, selector) => {
177
+ const elements = document.getElementsByTagName(selector);
178
+ if (!elements || !elements.length) {
179
+ return;
180
+ }
181
+ lodash_1.default.forEach(elements, (node) => {
182
+ if (node.hasAttribute('ng-version')) {
183
+ return;
184
+ }
185
+ appRef.bootstrap(module, node);
186
+ });
187
+ });
188
+ setTimeout(() => {
189
+ this.detectBoot(appRef);
190
+ }, this.exponentialTimeout(4000));
191
+ }
192
+ };
193
+ AppModule = __decorate([
194
+ core_1.NgModule({
195
+ imports: [
196
+ platform_browser_1.BrowserModule,
197
+ animations_1.BrowserAnimationsModule,
198
+ flex_layout_1.FlexLayoutModule,
199
+ forms_1.FormsModule,
200
+ angular_froala_wysiwyg_1.FroalaEditorModule.forRoot(),
201
+ angular_froala_wysiwyg_1.FroalaViewModule.forRoot(),
202
+ google_maps_1.GoogleMapsModule,
203
+ http_1.HttpClientModule,
204
+ material_1.MaterialModules,
205
+ core_2.MatNativeDateModule,
206
+ forms_1.ReactiveFormsModule,
207
+ ],
208
+ entryComponents: [
209
+ base_component_1.BaseComponent,
210
+ citation_dialog_component_1.CitationDialogComponent,
211
+ code_view_dialog_component_1.CodeViewDialogComponent,
212
+ confirm_dialog_component_1.ConfirmDialogComponent,
213
+ editor_component_1.EditorComponent,
214
+ link_dialog_component_1.LinkDialogComponent,
215
+ map_component_1.MapComponent,
216
+ media_dialog_component_1.MediaDialogComponent,
217
+ media_selector_component_1.MediaSelectorComponent,
218
+ selector_component_1.SelectorComponent,
219
+ payment_method_component_1.StripePaymentMethodComponent,
220
+ payment_method_item_component_1.StripePaymentMethodItemComponent,
221
+ payment_method_list_component_1.StripePaymentMethodListComponent,
222
+ payment_method_selector_component_1.StripePaymentMethodSelectorComponent,
223
+ setup_intent_component_1.StripeSetupIntentComponent,
224
+ tree_component_1.TreeComponent,
225
+ tree_dialog_component_1.TreeDialogComponent,
226
+ tree_node_component_1.TreeNodeComponent,
227
+ ],
228
+ declarations: [
229
+ base_component_1.BaseComponent,
230
+ citation_dialog_component_1.CitationDialogComponent,
231
+ code_view_dialog_component_1.CodeViewDialogComponent,
232
+ confirm_dialog_component_1.ConfirmDialogComponent,
233
+ editor_component_1.EditorComponent,
234
+ link_dialog_component_1.LinkDialogComponent,
235
+ map_component_1.MapComponent,
236
+ media_dialog_component_1.MediaDialogComponent,
237
+ media_selector_component_1.MediaSelectorComponent,
238
+ selector_component_1.SelectorComponent,
239
+ payment_method_component_1.StripePaymentMethodComponent,
240
+ payment_method_item_component_1.StripePaymentMethodItemComponent,
241
+ payment_method_list_component_1.StripePaymentMethodListComponent,
242
+ payment_method_selector_component_1.StripePaymentMethodSelectorComponent,
243
+ setup_intent_component_1.StripeSetupIntentComponent,
244
+ tree_component_1.TreeComponent,
245
+ tree_dialog_component_1.TreeDialogComponent,
246
+ tree_node_component_1.TreeNodeComponent,
247
+ ],
248
+ providers: [
249
+ { provide: Window, useValue: window }
250
+ ]
251
+ }),
252
+ __metadata("design:paramtypes", [])
253
+ ], AppModule);
254
+ exports_1("AppModule", AppModule);
255
+ }
256
+ };
257
+ });
185
258
 
186
259
  //# sourceMappingURL=app.module.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["app.module.ts"],"names":[],"mappings":";;;;;;;;;AAMA,OAAO,EAAC,MAAM,EAAC,MAAM,6BAA6B,CAAA;AAGlD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAEH,QAAQ,EACX,MAAM,eAAe,CAAA;AACtB,OAAO,EACH,WAAW,EACX,mBAAmB,EACtB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAC,mBAAmB,EAAC,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAC,aAAa,EAAC,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAC,uBAAuB,EAAC,MAAM,sCAAsC,CAAA;AAW5E,OAAO,EAAC,eAAe,EAAC,MAAM,YAAY,CAAA;AAG1C,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAA;AAGrD,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAA;AAGnD,OAAO,EAAC,sBAAsB,EAAC,MAAM,2CAA2C,CAAA;AAChF,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAA;AACzD,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAA;AACxD,OAAO,EAAC,sBAAsB,EAAC,MAAM,2CAA2C,CAAA;AAChF,OAAO,EAAC,iBAAiB,EAAC,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAC,4BAA4B,EAAC,MAAM,2CAA2C,CAAA;AACtF,OAAO,EAAC,gCAAgC,EAAC,MAAM,gDAAgD,CAAA;AAC/F,OAAO,EAAC,gCAAgC,EAAC,MAAM,gDAAgD,CAAA;AAC/F,OAAO,EAAC,oCAAoC,EAAC,MAAM,oDAAoD,CAAA;AACvG,OAAO,EAAC,0BAA0B,EAAC,MAAM,yCAAyC,CAA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