@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.
- package/dist/angular.bundle.min.js +1 -1
- package/package.json +1 -1
- package/src/angular.modules.js +33 -18
- package/src/angular.modules.js.map +1 -1
- package/src/app.module.js +254 -181
- package/src/app.module.js.map +1 -1
- package/src/backend.service.js +87 -66
- package/src/backend.service.js.map +1 -1
- package/src/base/base.component.js +124 -101
- package/src/base/base.component.js.map +1 -1
- package/src/boot.js +55 -42
- package/src/boot.js.map +1 -1
- package/src/confirm-dialog/confirm-dialog.component.js +60 -41
- package/src/confirm-dialog/confirm-dialog.component.js.map +1 -1
- package/src/core/base.interface.js +9 -1
- package/src/core/base.interface.js.map +1 -1
- package/src/core/refresh.interface.js +9 -1
- package/src/core/refresh.interface.js.map +1 -1
- package/src/core/responsive.component.js +58 -40
- package/src/core/responsive.component.js.map +1 -1
- package/src/core/responsive.interface.js +9 -1
- package/src/core/responsive.interface.js.map +1 -1
- package/src/core/root.component.js +43 -24
- package/src/core/root.component.js.map +1 -1
- package/src/core/trigger.interface.js +9 -1
- package/src/core/trigger.interface.js.map +1 -1
- package/src/data/contact-meta.interface.js +9 -1
- package/src/data/contact-meta.interface.js.map +1 -1
- package/src/data/content.interface.js +9 -1
- package/src/data/content.interface.js.map +1 -1
- package/src/data/convoy.interface.js +9 -1
- package/src/data/convoy.interface.js.map +1 -1
- package/src/editor/citation-dialog.component.js +207 -174
- package/src/editor/citation-dialog.component.js.map +1 -1
- package/src/editor/code-mirror-bridge.js +74 -60
- package/src/editor/code-mirror-bridge.js.map +1 -1
- package/src/editor/code-mirror-bridge.min.js +1 -1
- package/src/editor/code-view-dialog.component.js +116 -87
- package/src/editor/code-view-dialog.component.js.map +1 -1
- package/src/editor/editor.component.js +961 -903
- package/src/editor/editor.component.js.map +1 -1
- package/src/editor/link-dialog.component.js +395 -356
- package/src/editor/link-dialog.component.js.map +1 -1
- package/src/editor/media-dialog.component.js +303 -270
- package/src/editor/media-dialog.component.js.map +1 -1
- package/src/froala/plugins/citationManager.js +191 -170
- package/src/froala/plugins/citationManager.js.map +1 -1
- package/src/froala/plugins/inputButton.js +138 -122
- package/src/froala/plugins/inputButton.js.map +1 -1
- package/src/froala/plugins/linkManager.js +104 -89
- package/src/froala/plugins/linkManager.js.map +1 -1
- package/src/froala/plugins/mediaManager.js +87 -72
- package/src/froala/plugins/mediaManager.js.map +1 -1
- package/src/froala/plugins/menuButton.js +86 -71
- package/src/froala/plugins/menuButton.js.map +1 -1
- package/src/main.js +33 -13
- package/src/main.js.map +1 -1
- package/src/material.js +194 -99
- package/src/material.js.map +1 -1
- package/src/media-selector/media-selector.component.js +441 -406
- package/src/media-selector/media-selector.component.js.map +1 -1
- package/src/polyfills.js +16 -3
- package/src/polyfills.js.map +1 -1
- package/src/quill-plugins/quill-break-blot.plugin.js +35 -19
- package/src/quill-plugins/quill-break-blot.plugin.js.map +1 -1
- package/src/quill-plugins/quill-html-edit.plugin.js +153 -140
- package/src/quill-plugins/quill-html-edit.plugin.js.map +1 -1
- package/src/quill-plugins/quill-image-format.plugin.js +47 -33
- package/src/quill-plugins/quill-image-format.plugin.js.map +1 -1
- package/src/quill-plugins/quill-input-button.plugin.js +95 -77
- package/src/quill-plugins/quill-input-button.plugin.js.map +1 -1
- package/src/selector/selector.component.js +276 -241
- package/src/selector/selector.component.js.map +1 -1
- package/src/test/test.directive.js +66 -49
- package/src/test/test.directive.js.map +1 -1
- package/src/tree/tree-dialog.component.js +231 -202
- package/src/tree/tree-dialog.component.js.map +1 -1
- package/src/tree/tree-node.component.js +282 -253
- package/src/tree/tree-node.component.js.map +1 -1
- package/src/tree/tree.component.js +561 -531
- package/src/tree/tree.component.js.map +1 -1
package/src/backend.service.js
CHANGED
|
@@ -1,69 +1,90 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
29
|
-
|
|
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":"
|
|
1
|
+
{"version":3,"sources":["backend.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAsBa,cAA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ACT;oBACD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;oBAE7B,IAAI,MAAM,IAAI,KAAK,EAAE;wBACjB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;wBAC3B,UAAU,CAAC,QAAQ,EAAE,CAAA;wBACrB,OAAM;qBACT;oBAED,IAAI,CAAC,IAAI;yBACJ,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;yBACjC,SAAS,CAAC,CAAC,QAA2B,EAAE,EAAE;wBACvC,KAAK,CAAC,IAAI,GAAG,QAAQ,CAAA;wBACrB,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;wBACzB,UAAU,CAAC,QAAQ,EAAE,CAAA;oBACzB,CAAC,CAAC,CAAA;gBACV,CAAC;aACJ,CAAA;YA7DY,cAAc;gBAH1B,iBAAU,CAAC;oBACR,UAAU,EAAE,MAAM;iBACrB,CAAC;iDAU4B,iBAAU;eAT3B,cAAc,CA6D1B;;QACD,CAAC","file":"backend.service.js"}
|
|
@@ -1,104 +1,127 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
38
|
-
|
|
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":"
|
|
1
|
+
{"version":3,"sources":["base.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAuCM,SAAS,GAAG,oBAAoB,CAAA;YAChC,UAAU,GAAG,MAAM,CAAA;YAGnB,GAAG,GAAG,CAAC,oBAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAA;YAClC,QAAQ,GAAG,GAAG,iBAAO,CAAC,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,SAAS,IAAI,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,CAAA;YAczH,aAAa,GAA1B,MAAa,aAAc,SAAQ,8BAAa;gBAqB5C,YACY,SAAuB,EACrB,GAAsB,EACxB,UAAsB;oBAG9B,KAAK,EAAE,CAAA;oBALC,cAAS,GAAT,SAA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;2DAAiB;YAnBhB,aAAa;gBATzB,gBAAS,CAAC;oBACP,QAAQ,EAAE,SAAS;oBAEnB,WAAW,EAAE,GAAG,QAAQ,IAAI,UAAU,IAAI,UAAU,aAAa,GAAG,OAAO;iBAI9E,CAAC;iDAwByB,+BAAY;oBAChB,wBAAiB;oBACZ,iBAAU;eAxBzB,aAAa,CAuDzB;;QACD,CAAC","file":"base.component.js"}
|
package/src/boot.js
CHANGED
|
@@ -1,50 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
|
34
|
-
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
if (!detected) {
|
|
40
|
-
setTimeout(() => {
|
|
41
|
-
angularBoot();
|
|
42
|
-
}, exponentialTimeout());
|
|
43
|
-
return;
|
|
45
|
+
boot = true;
|
|
46
|
+
require('@stratusjs/angular/main');
|
|
44
47
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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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AK,CAAA;YAgDhB,iBAAW,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,CAAA;QACvC,CAAC","file":"boot.js"}
|
|
@@ -1,43 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|