@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
@@ -1,69 +1,90 @@
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 { Injectable } from '@angular/core';
11
- import { HttpClient } from '@angular/common/http';
12
- import { Observable } from 'rxjs';
13
- import { Stratus } from '@stratusjs/runtime/stratus';
14
- import _ from 'lodash';
15
- let BackendService = class BackendService {
16
- constructor(http) {
17
- this.http = http;
18
- this.title = 'backend';
19
- this.uid = _.uniqueId('sa_backend_service_');
20
- Stratus.Instances[this.uid] = this;
21
- this.cache = {};
22
- }
23
- get(url) {
24
- if (!_.isString(url)) {
25
- console.error('url is not a string:', url);
26
- return;
1
+ System.register(["@angular/core", "@angular/common/http", "rxjs", "@stratusjs/runtime/stratus", "lodash"], function (exports_1, context_1) {
2
+ "use strict";
3
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
4
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
7
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
8
+ };
9
+ var __metadata = (this && this.__metadata) || function (k, v) {
10
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
11
+ };
12
+ var core_1, http_1, rxjs_1, stratus_1, lodash_1, BackendService;
13
+ var __moduleName = context_1 && context_1.id;
14
+ return {
15
+ setters: [
16
+ function (core_1_1) {
17
+ core_1 = core_1_1;
18
+ },
19
+ function (http_1_1) {
20
+ http_1 = http_1_1;
21
+ },
22
+ function (rxjs_1_1) {
23
+ rxjs_1 = rxjs_1_1;
24
+ },
25
+ function (stratus_1_1) {
26
+ stratus_1 = stratus_1_1;
27
+ },
28
+ function (lodash_1_1) {
29
+ lodash_1 = lodash_1_1;
30
+ }
31
+ ],
32
+ execute: function () {
33
+ BackendService = class BackendService {
34
+ constructor(http) {
35
+ this.http = http;
36
+ this.title = 'backend';
37
+ this.uid = lodash_1.default.uniqueId('sa_backend_service_');
38
+ stratus_1.Stratus.Instances[this.uid] = this;
39
+ this.cache = {};
40
+ }
41
+ get(url) {
42
+ if (!lodash_1.default.isString(url)) {
43
+ console.error('url is not a string:', url);
44
+ return;
45
+ }
46
+ if (url in this.cache) {
47
+ return this.cache[url].observable;
48
+ }
49
+ const now = new Date();
50
+ const query = this.cache[url] = {
51
+ fetched: now.valueOf(),
52
+ observable: new rxjs_1.Observable((subscriber) => this.getData(url, subscriber))
53
+ };
54
+ return query.observable;
55
+ }
56
+ getData(url, subscriber) {
57
+ if (!lodash_1.default.isString(url)) {
58
+ console.error('url is not a string:', url);
59
+ return;
60
+ }
61
+ if (!(url in this.cache)) {
62
+ return;
63
+ }
64
+ const query = this.cache[url];
65
+ if ('data' in query) {
66
+ subscriber.next(query.data);
67
+ subscriber.complete();
68
+ return;
69
+ }
70
+ this.http
71
+ .get(url, { observe: 'response' })
72
+ .subscribe((response) => {
73
+ query.data = response;
74
+ subscriber.next(response);
75
+ subscriber.complete();
76
+ });
77
+ }
78
+ };
79
+ BackendService = __decorate([
80
+ core_1.Injectable({
81
+ providedIn: 'root'
82
+ }),
83
+ __metadata("design:paramtypes", [http_1.HttpClient])
84
+ ], BackendService);
85
+ exports_1("BackendService", BackendService);
27
86
  }
28
- if (url in this.cache) {
29
- return this.cache[url].observable;
30
- }
31
- const now = new Date();
32
- const query = this.cache[url] = {
33
- fetched: now.valueOf(),
34
- observable: new Observable((subscriber) => this.getData(url, subscriber))
35
- };
36
- return query.observable;
37
- }
38
- getData(url, subscriber) {
39
- if (!_.isString(url)) {
40
- console.error('url is not a string:', url);
41
- return;
42
- }
43
- if (!(url in this.cache)) {
44
- return;
45
- }
46
- const query = this.cache[url];
47
- if ('data' in query) {
48
- subscriber.next(query.data);
49
- subscriber.complete();
50
- return;
51
- }
52
- this.http
53
- .get(url, { observe: 'response' })
54
- .subscribe((response) => {
55
- query.data = response;
56
- subscriber.next(response);
57
- subscriber.complete();
58
- });
59
- }
60
- };
61
- BackendService = __decorate([
62
- Injectable({
63
- providedIn: 'root'
64
- }),
65
- __metadata("design:paramtypes", [HttpClient])
66
- ], BackendService);
67
- export { BackendService };
87
+ };
88
+ });
68
89
 
69
90
  //# sourceMappingURL=backend.service.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["backend.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAC,UAAU,EAAe,MAAM,sBAAsB,CAAA;AAC7D,OAAO,EAAC,UAAU,EAAa,MAAM,MAAM,CAAA;AAG3C,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAClD,OAAO,CAAC,MAAM,QAAQ,CAAA;AAgBtB,IAAa,cAAc,GAA3B,MAAa,cAAc;IASvB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;QANpC,UAAK,GAAG,SAAS,CAAA;QAQb,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAA;QAC5C,OAAO,CAAC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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 { ChangeDetectorRef, Component, ElementRef, Input } from '@angular/core';
11
- import { DomSanitizer } from '@angular/platform-browser';
12
- import { Stratus } from '@stratusjs/runtime/stratus';
13
- import _ from 'lodash';
14
- import { cookie } from '@stratusjs/core/environment';
15
- import { RootComponent } from '../core/root.component';
16
- const systemDir = '@stratusjs/angular';
17
- const moduleName = 'base';
18
- const min = !cookie('env') ? '.min' : '';
19
- const localDir = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
20
- let BaseComponent = class BaseComponent extends RootComponent {
21
- constructor(sanitizer, ref, elementRef) {
22
- super();
23
- this.sanitizer = sanitizer;
24
- this.ref = ref;
25
- this.elementRef = elementRef;
26
- this.title = moduleName + '_component';
27
- Stratus.Instances[_.uniqueId('sa_base_component_')] = this;
28
- 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"]);
29
- }
30
- ngOnInit() {
31
- console.info('selector.ngOnInit');
32
- }
33
- ngOnChanges() {
34
- if (!cookie('env')) {
35
- return;
1
+ System.register(["@angular/core", "@angular/platform-browser", "@stratusjs/runtime/stratus", "lodash", "@stratusjs/core/environment", "../core/root.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 __metadata = (this && this.__metadata) || function (k, v) {
10
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
11
+ };
12
+ var core_1, platform_browser_1, stratus_1, lodash_1, environment_1, root_component_1, systemDir, moduleName, min, localDir, BaseComponent;
13
+ var __moduleName = context_1 && context_1.id;
14
+ return {
15
+ setters: [
16
+ function (core_1_1) {
17
+ core_1 = core_1_1;
18
+ },
19
+ function (platform_browser_1_1) {
20
+ platform_browser_1 = platform_browser_1_1;
21
+ },
22
+ function (stratus_1_1) {
23
+ stratus_1 = stratus_1_1;
24
+ },
25
+ function (lodash_1_1) {
26
+ lodash_1 = lodash_1_1;
27
+ },
28
+ function (environment_1_1) {
29
+ environment_1 = environment_1_1;
30
+ },
31
+ function (root_component_1_1) {
32
+ root_component_1 = root_component_1_1;
33
+ }
34
+ ],
35
+ execute: function () {
36
+ systemDir = '@stratusjs/angular';
37
+ moduleName = 'base';
38
+ min = !environment_1.cookie('env') ? '.min' : '';
39
+ localDir = `${stratus_1.Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
40
+ BaseComponent = class BaseComponent extends root_component_1.RootComponent {
41
+ constructor(sanitizer, ref, elementRef) {
42
+ super();
43
+ this.sanitizer = sanitizer;
44
+ this.ref = ref;
45
+ this.elementRef = elementRef;
46
+ this.title = moduleName + '_component';
47
+ 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"]);
49
+ }
50
+ ngOnInit() {
51
+ console.info('selector.ngOnInit');
52
+ }
53
+ ngOnChanges() {
54
+ if (!environment_1.cookie('env')) {
55
+ return;
56
+ }
57
+ console.log('inputs:', {
58
+ target: this.target,
59
+ targetSuffix: this.targetSuffix,
60
+ id: this.id,
61
+ manifest: this.manifest,
62
+ decouple: this.decouple,
63
+ direct: this.direct,
64
+ api: this.api,
65
+ urlRoot: this.urlRoot,
66
+ });
67
+ }
68
+ };
69
+ __decorate([
70
+ core_1.Input(),
71
+ __metadata("design:type", String)
72
+ ], BaseComponent.prototype, "target", void 0);
73
+ __decorate([
74
+ core_1.Input(),
75
+ __metadata("design:type", String)
76
+ ], BaseComponent.prototype, "targetSuffix", void 0);
77
+ __decorate([
78
+ core_1.Input(),
79
+ __metadata("design:type", Number)
80
+ ], BaseComponent.prototype, "id", void 0);
81
+ __decorate([
82
+ core_1.Input(),
83
+ __metadata("design:type", Boolean)
84
+ ], BaseComponent.prototype, "manifest", void 0);
85
+ __decorate([
86
+ core_1.Input(),
87
+ __metadata("design:type", Boolean)
88
+ ], BaseComponent.prototype, "decouple", void 0);
89
+ __decorate([
90
+ core_1.Input(),
91
+ __metadata("design:type", Boolean)
92
+ ], BaseComponent.prototype, "direct", void 0);
93
+ __decorate([
94
+ core_1.Input(),
95
+ __metadata("design:type", Object)
96
+ ], BaseComponent.prototype, "api", void 0);
97
+ __decorate([
98
+ core_1.Input(),
99
+ __metadata("design:type", String)
100
+ ], BaseComponent.prototype, "urlRoot", void 0);
101
+ __decorate([
102
+ core_1.Input(),
103
+ __metadata("design:type", String)
104
+ ], BaseComponent.prototype, "type", void 0);
105
+ __decorate([
106
+ core_1.Input(),
107
+ __metadata("design:type", String)
108
+ ], BaseComponent.prototype, "property", void 0);
109
+ __decorate([
110
+ core_1.Input(),
111
+ __metadata("design:type", String)
112
+ ], BaseComponent.prototype, "endpoint", void 0);
113
+ BaseComponent = __decorate([
114
+ core_1.Component({
115
+ selector: 'sa-base',
116
+ templateUrl: `${localDir}/${moduleName}/${moduleName}.component${min}.html`,
117
+ }),
118
+ __metadata("design:paramtypes", [platform_browser_1.DomSanitizer,
119
+ core_1.ChangeDetectorRef,
120
+ core_1.ElementRef])
121
+ ], BaseComponent);
122
+ exports_1("BaseComponent", BaseComponent);
36
123
  }
37
- console.log('inputs:', {
38
- target: this.target,
39
- targetSuffix: this.targetSuffix,
40
- id: this.id,
41
- manifest: this.manifest,
42
- decouple: this.decouple,
43
- direct: this.direct,
44
- api: this.api,
45
- urlRoot: this.urlRoot,
46
- });
47
- }
48
- };
49
- __decorate([
50
- Input(),
51
- __metadata("design:type", String)
52
- ], BaseComponent.prototype, "target", void 0);
53
- __decorate([
54
- Input(),
55
- __metadata("design:type", String)
56
- ], BaseComponent.prototype, "targetSuffix", void 0);
57
- __decorate([
58
- Input(),
59
- __metadata("design:type", Number)
60
- ], BaseComponent.prototype, "id", void 0);
61
- __decorate([
62
- Input(),
63
- __metadata("design:type", Boolean)
64
- ], BaseComponent.prototype, "manifest", void 0);
65
- __decorate([
66
- Input(),
67
- __metadata("design:type", Boolean)
68
- ], BaseComponent.prototype, "decouple", void 0);
69
- __decorate([
70
- Input(),
71
- __metadata("design:type", Boolean)
72
- ], BaseComponent.prototype, "direct", void 0);
73
- __decorate([
74
- Input(),
75
- __metadata("design:type", Object)
76
- ], BaseComponent.prototype, "api", void 0);
77
- __decorate([
78
- Input(),
79
- __metadata("design:type", String)
80
- ], BaseComponent.prototype, "urlRoot", void 0);
81
- __decorate([
82
- Input(),
83
- __metadata("design:type", String)
84
- ], BaseComponent.prototype, "type", void 0);
85
- __decorate([
86
- Input(),
87
- __metadata("design:type", String)
88
- ], BaseComponent.prototype, "property", void 0);
89
- __decorate([
90
- Input(),
91
- __metadata("design:type", String)
92
- ], BaseComponent.prototype, "endpoint", void 0);
93
- BaseComponent = __decorate([
94
- Component({
95
- selector: 'sa-base',
96
- templateUrl: `${localDir}/${moduleName}/${moduleName}.component${min}.html`,
97
- }),
98
- __metadata("design:paramtypes", [DomSanitizer,
99
- ChangeDetectorRef,
100
- ElementRef])
101
- ], BaseComponent);
102
- export { BaseComponent };
124
+ };
125
+ });
103
126
 
104
127
  //# sourceMappingURL=base.component.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["base.component.ts"],"names":[],"mappings":";;;;;;;;;AAWA,OAAO,EAEH,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,KAAK,EAGR,MAAM,eAAe,CAAA;AACtB,OAAO,EACH,YAAY,EACf,MAAM,2BAA2B,CAAA;AAMlC,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAClD,OAAO,CAAC,MAAM,QAAQ,CAAA;AACtB,OAAO,EAAC,MAAM,EAAC,MAAM,6BAA6B,CAAA;AAGlD,OAAO,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAA;AAMpD,MAAM,SAAS,GAAG,oBAAoB,CAAA;AACtC,MAAM,UAAU,GAAG,MAAM,CAAA;AAGzB,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAA;AACxC,MAAM,QAAQ,GAAG,GAAG,OAAO,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;A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- import { DOMComplete } from '@stratusjs/core/dom';
2
- let initialTimeout = 1000;
3
- const limitTimeout = 5000;
4
- function exponentialTimeout() {
5
- if (initialTimeout > limitTimeout) {
6
- return limitTimeout;
7
- }
8
- const currentTimeout = initialTimeout;
9
- initialTimeout = initialTimeout * 1.2;
10
- return currentTimeout;
11
- }
12
- let boot = false;
13
- function angularBoot() {
14
- if (boot) {
15
- console.log('stopped angular boot attempt after successful boot.');
16
- return;
1
+ System.register(["@stratusjs/core/dom"], function (exports_1, context_1) {
2
+ "use strict";
3
+ var dom_1, initialTimeout, limitTimeout, boot;
4
+ var __moduleName = context_1 && context_1.id;
5
+ function exponentialTimeout() {
6
+ if (initialTimeout > limitTimeout) {
7
+ return limitTimeout;
8
+ }
9
+ const currentTimeout = initialTimeout;
10
+ initialTimeout = initialTimeout * 1.2;
11
+ return currentTimeout;
17
12
  }
18
- const sa = [
19
- 'sa-boot',
20
- 'sa-editor',
21
- 'sa-map',
22
- 'sa-media-selector',
23
- 'sa-selector',
24
- 'sa-stripe-payment-method-list',
25
- 'sa-stripe-payment-method-selector',
26
- 'sa-tree'
27
- ];
28
- let detected = false;
29
- sa.forEach(component => {
30
- if (detected) {
13
+ function angularBoot() {
14
+ if (boot) {
15
+ console.log('stopped angular boot attempt after successful boot.');
31
16
  return;
32
17
  }
33
- const elements = document.getElementsByTagName(component);
34
- if (!elements || !elements.length) {
18
+ const sa = [
19
+ 'sa-boot',
20
+ 'sa-editor',
21
+ 'sa-map',
22
+ 'sa-media-selector',
23
+ 'sa-selector',
24
+ 'sa-stripe-payment-method-list',
25
+ 'sa-stripe-payment-method-selector',
26
+ 'sa-tree'
27
+ ];
28
+ let detected = false;
29
+ sa.forEach(component => {
30
+ if (detected) {
31
+ return;
32
+ }
33
+ const elements = document.getElementsByTagName(component);
34
+ if (!elements || !elements.length) {
35
+ return;
36
+ }
37
+ detected = true;
38
+ });
39
+ if (!detected) {
40
+ setTimeout(() => {
41
+ angularBoot();
42
+ }, exponentialTimeout());
35
43
  return;
36
44
  }
37
- detected = true;
38
- });
39
- if (!detected) {
40
- setTimeout(() => {
41
- angularBoot();
42
- }, exponentialTimeout());
43
- return;
45
+ boot = true;
46
+ require('@stratusjs/angular/main');
44
47
  }
45
- boot = true;
46
- require('@stratusjs/angular/main');
47
- }
48
- DOMComplete().then(() => angularBoot());
48
+ return {
49
+ setters: [
50
+ function (dom_1_1) {
51
+ dom_1 = dom_1_1;
52
+ }
53
+ ],
54
+ execute: function () {
55
+ initialTimeout = 1000;
56
+ limitTimeout = 5000;
57
+ boot = false;
58
+ dom_1.DOMComplete().then(() => angularBoot());
59
+ }
60
+ };
61
+ });
49
62
 
50
63
  //# sourceMappingURL=boot.js.map
package/src/boot.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["boot.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,WAAW,EAAC,MAAM,qBAAqB,CAAA;AAG/C,IAAI,cAAc,GAAG,IAAI,CAAA;AACzB,MAAM,YAAY,GAAG,IAAI,CAAA;AACzB,SAAS,kBAAkB;IACvB,IAAI,cAAc,GAAG,YAAY,EAAE;QAC/B,OAAO,YAAY,CAAA;KACtB;IACD,MAAM,cAAc,GAAG,cAAc,CAAA;IACrC,cAAc,GAAG,cAAc,GAAG,GAAG,CAAA;IACrC,OAAO,cAAc,CAAA;AACzB,CAAC;AAID,IAAI,IAAI,GAAG,KAAK,CAAA;AAChB,SAAS,WAAW;IAEhB,IAAI,IAAI,EAAE;QACN,OAAO,CAAC,GAAG,CAAC,qDAAqD,CAAC,CAAA;QAClE,OAAM;KACT;IAID,MAAM,EAAE,GAAG;QAEP,SAAS;QACT,WAAW;QACX,QAAQ;QACR,mBAAmB;QACnB,aAAa;QACb,+BAA+B;QAC/B,mCAAmC;QACnC,SAAS;KAEZ,CAAA;IAED,IAAI,QAAQ,GAAG,KAAK,CAAA;IACpB,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE;QACnB,IAAI,QAAQ,EAAE;YACV,O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C,QAAQ,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;gBAC/B,OAAM;aACT;YACD,QAAQ,GAAG,IAAI,CAAA;QACnB,CAAC,CAAC,CAAA;QACF,IAAI,CAAC,QAAQ,EAAE;YACX,UAAU,CAAC,GAAG,EAAE;gBAEZ,WAAW,EAAE,CAAA;YACjB,CAAC,EAAE,kBAAkB,EAAE,CAAC,CAAA;YACxB,OAAM;SACT;QAED,IAAI,GAAG,IAAI,CAAA;QAEX,OAAO,CAAC,yBAAyB,CAAC,CAAA;IACtC,CAAC;;;;;;;;YA1DG,cAAc,GAAG,IAAI,CAAA;YACnB,YAAY,GAAG,IAAI,CAAA;YAYrB,IAAI,GAAG,KAAK,CAAA;YAgDhB,iBAAW,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,CAAA;QACvC,CAAC","file":"boot.js"}
@@ -1,43 +1,62 @@
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
- var __param = (this && this.__param) || function (paramIndex, decorator) {
11
- return function (target, key) { decorator(target, key, paramIndex); }
12
- };
13
- import { Component, Inject } from '@angular/core';
14
- import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
15
- import { cookie } from '@stratusjs/core/environment';
16
- import { Stratus } from '@stratusjs/runtime/stratus';
17
- const systemDir = '@stratusjs/angular';
18
- const moduleName = 'confirm-dialog';
19
- const min = !cookie('env') ? '.min' : '';
20
- const localDir = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
21
- let ConfirmDialogComponent = class ConfirmDialogComponent {
22
- constructor(dialogRef, data) {
23
- this.dialogRef = dialogRef;
24
- this.data = data;
25
- }
26
- onConfirm() {
27
- this.dialogRef.close(true);
28
- }
29
- onDismiss() {
30
- this.dialogRef.close(false);
31
- }
32
- };
33
- ConfirmDialogComponent = __decorate([
34
- Component({
35
- selector: `sa-${moduleName}`,
36
- templateUrl: `${localDir}/${moduleName}/${moduleName}.component${min}.html`,
37
- }),
38
- __param(1, Inject(MAT_DIALOG_DATA)),
39
- __metadata("design:paramtypes", [MatDialogRef, Object])
40
- ], ConfirmDialogComponent);
41
- export { ConfirmDialogComponent };
1
+ System.register(["@angular/core", "@angular/material/dialog", "@stratusjs/core/environment", "@stratusjs/runtime/stratus"], 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 __param = (this && this.__param) || function (paramIndex, decorator) {
13
+ return function (target, key) { decorator(target, key, paramIndex); }
14
+ };
15
+ var core_1, dialog_1, environment_1, stratus_1, systemDir, moduleName, min, localDir, ConfirmDialogComponent;
16
+ var __moduleName = context_1 && context_1.id;
17
+ return {
18
+ setters: [
19
+ function (core_1_1) {
20
+ core_1 = core_1_1;
21
+ },
22
+ function (dialog_1_1) {
23
+ dialog_1 = dialog_1_1;
24
+ },
25
+ function (environment_1_1) {
26
+ environment_1 = environment_1_1;
27
+ },
28
+ function (stratus_1_1) {
29
+ stratus_1 = stratus_1_1;
30
+ }
31
+ ],
32
+ execute: function () {
33
+ systemDir = '@stratusjs/angular';
34
+ moduleName = 'confirm-dialog';
35
+ min = !environment_1.cookie('env') ? '.min' : '';
36
+ localDir = `${stratus_1.Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
37
+ ConfirmDialogComponent = class ConfirmDialogComponent {
38
+ constructor(dialogRef, data) {
39
+ this.dialogRef = dialogRef;
40
+ this.data = data;
41
+ }
42
+ onConfirm() {
43
+ this.dialogRef.close(true);
44
+ }
45
+ onDismiss() {
46
+ this.dialogRef.close(false);
47
+ }
48
+ };
49
+ ConfirmDialogComponent = __decorate([
50
+ core_1.Component({
51
+ selector: `sa-${moduleName}`,
52
+ templateUrl: `${localDir}/${moduleName}/${moduleName}.component${min}.html`,
53
+ }),
54
+ __param(1, core_1.Inject(dialog_1.MAT_DIALOG_DATA)),
55
+ __metadata("design:paramtypes", [dialog_1.MatDialogRef, Object])
56
+ ], ConfirmDialogComponent);
57
+ exports_1("ConfirmDialogComponent", ConfirmDialogComponent);
58
+ }
59
+ };
60
+ });
42
61
 
43
62
  //# sourceMappingURL=confirm-dialog.component.js.map