@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
|
@@ -1,90 +1,119 @@
|
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
ngOnInit() {
|
|
47
|
-
this.uid = _.uniqueId(`sa_${_.snakeCase(moduleName)}_component_`);
|
|
48
|
-
Stratus.Instances[this.uid] = this;
|
|
49
|
-
Stratus.Internals.CssLoader(`${localDir}/${parentModuleName}/${moduleName}.component${min}.css`);
|
|
50
|
-
this.model = this.data.model;
|
|
51
|
-
this.property = this.data.property;
|
|
52
|
-
const dataControl = this.form.get('dataString');
|
|
53
|
-
dataControl.patchValue(this.model.get(this.property));
|
|
54
|
-
dataControl.valueChanges.forEach((value) => {
|
|
55
|
-
if (!this.model.completed) {
|
|
56
|
-
return;
|
|
1
|
+
System.register(["@angular/core", "@angular/forms", "@angular/material/dialog", "@angular/cdk/text-field", "rxjs/operators", "lodash", "@stratusjs/runtime/stratus", "@stratusjs/core/environment", "../core/responsive.component"], function (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, forms_1, dialog_1, text_field_1, operators_1, lodash_1, stratus_1, environment_1, responsive_component_1, systemDir, moduleName, parentModuleName, min, localDir, CodeViewDialogComponent;
|
|
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 (forms_1_1) {
|
|
23
|
+
forms_1 = forms_1_1;
|
|
24
|
+
},
|
|
25
|
+
function (dialog_1_1) {
|
|
26
|
+
dialog_1 = dialog_1_1;
|
|
27
|
+
},
|
|
28
|
+
function (text_field_1_1) {
|
|
29
|
+
text_field_1 = text_field_1_1;
|
|
30
|
+
},
|
|
31
|
+
function (operators_1_1) {
|
|
32
|
+
operators_1 = operators_1_1;
|
|
33
|
+
},
|
|
34
|
+
function (lodash_1_1) {
|
|
35
|
+
lodash_1 = lodash_1_1;
|
|
36
|
+
},
|
|
37
|
+
function (stratus_1_1) {
|
|
38
|
+
stratus_1 = stratus_1_1;
|
|
39
|
+
},
|
|
40
|
+
function (environment_1_1) {
|
|
41
|
+
environment_1 = environment_1_1;
|
|
42
|
+
},
|
|
43
|
+
function (responsive_component_1_1) {
|
|
44
|
+
responsive_component_1 = responsive_component_1_1;
|
|
57
45
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
46
|
+
],
|
|
47
|
+
execute: function () {
|
|
48
|
+
systemDir = '@stratusjs/angular';
|
|
49
|
+
moduleName = 'code-view-dialog';
|
|
50
|
+
parentModuleName = 'editor';
|
|
51
|
+
min = !environment_1.cookie('env') ? '.min' : '';
|
|
52
|
+
localDir = `${stratus_1.Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
53
|
+
CodeViewDialogComponent = class CodeViewDialogComponent extends responsive_component_1.ResponsiveComponent {
|
|
54
|
+
constructor(dialogRef, data, ref, fb, ngZone) {
|
|
55
|
+
super();
|
|
56
|
+
this.dialogRef = dialogRef;
|
|
57
|
+
this.data = data;
|
|
58
|
+
this.ref = ref;
|
|
59
|
+
this.fb = fb;
|
|
60
|
+
this.ngZone = ngZone;
|
|
61
|
+
this.title = moduleName + '_component';
|
|
62
|
+
this._ = lodash_1.default;
|
|
63
|
+
this.Stratus = stratus_1.Stratus;
|
|
64
|
+
this.form = this.fb.group({
|
|
65
|
+
dataString: new forms_1.FormControl(),
|
|
66
|
+
});
|
|
67
|
+
this.monacoOptions = {
|
|
68
|
+
theme: 'vs-dark',
|
|
69
|
+
language: 'html'
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
ngOnInit() {
|
|
73
|
+
this.uid = lodash_1.default.uniqueId(`sa_${lodash_1.default.snakeCase(moduleName)}_component_`);
|
|
74
|
+
stratus_1.Stratus.Instances[this.uid] = this;
|
|
75
|
+
stratus_1.Stratus.Internals.CssLoader(`${localDir}/${parentModuleName}/${moduleName}.component${min}.css`);
|
|
76
|
+
this.model = this.data.model;
|
|
77
|
+
this.property = this.data.property;
|
|
78
|
+
const dataControl = this.form.get('dataString');
|
|
79
|
+
dataControl.patchValue(this.model.get(this.property));
|
|
80
|
+
dataControl.valueChanges.forEach((value) => {
|
|
81
|
+
if (!this.model.completed) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
if (value === null) {
|
|
85
|
+
value = '';
|
|
86
|
+
}
|
|
87
|
+
this.model.set(this.property, value);
|
|
88
|
+
});
|
|
89
|
+
this.refresh();
|
|
90
|
+
}
|
|
91
|
+
onCancelClick() {
|
|
92
|
+
this.dialogRef.close();
|
|
93
|
+
this.refresh();
|
|
94
|
+
}
|
|
95
|
+
triggerResize() {
|
|
96
|
+
this.ngZone.onStable.pipe(operators_1.take(1))
|
|
97
|
+
.subscribe(() => this.autosize.resizeToFitContent(true));
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
__decorate([
|
|
101
|
+
core_1.ViewChild('autosize'),
|
|
102
|
+
__metadata("design:type", text_field_1.CdkTextareaAutosize)
|
|
103
|
+
], CodeViewDialogComponent.prototype, "autosize", void 0);
|
|
104
|
+
CodeViewDialogComponent = __decorate([
|
|
105
|
+
core_1.Component({
|
|
106
|
+
selector: `sa-${moduleName}`,
|
|
107
|
+
templateUrl: `${localDir}/${parentModuleName}/${moduleName}.component${min}.html`,
|
|
108
|
+
}),
|
|
109
|
+
__param(1, core_1.Inject(dialog_1.MAT_DIALOG_DATA)),
|
|
110
|
+
__metadata("design:paramtypes", [dialog_1.MatDialogRef, Object, core_1.ChangeDetectorRef,
|
|
111
|
+
forms_1.FormBuilder,
|
|
112
|
+
core_1.NgZone])
|
|
113
|
+
], CodeViewDialogComponent);
|
|
114
|
+
exports_1("CodeViewDialogComponent", CodeViewDialogComponent);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
});
|
|
89
118
|
|
|
90
119
|
//# sourceMappingURL=code-view-dialog.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["code-view-dialog.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["code-view-dialog.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAiDM,SAAS,GAAG,oBAAoB,CAAA;YAChC,UAAU,GAAG,kBAAkB,CAAA;YAC/B,gBAAgB,GAAG,QAAQ,CAAA;YAG3B,GAAG,GAAG,CAAC,oBAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAA;YAClC,QAAQ,GAAG,GAAG,iBAAO,CAAC,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,SAAS,IAAI,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,CAAA;YAUzH,uBAAuB,GAApC,MAAa,uBAAwB,SAAQ,0CAAmB;gBA6B5D,YACW,SAAgD,EACvB,IAAwB,EAC9C,GAAsB,EACxB,EAAe,EACf,MAAc;oBAGtB,KAAK,EAAE,CAAA;oBAPA,cAAS,GAAT,SAAS,CAAuC;oBACvB,SAAI,GAAJ,IAAI,CAAoB;oBAC9C,QAAG,GAAH,GAAG,CAAmB;oBACxB,OAAE,GAAF,EAAE,CAAa;oBACf,WAAM,GAAN,MAAM,CAAQ;oBA/B1B,UAAK,GAAG,UAAU,GAAG,YAAY,CAAA;oBAIjC,MAAC,GAAG,gBAAC,CAAA;oBACL,YAAO,GAAG,iBAAO,CAAA;oBAGjB,SAAI,GAAc,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;wBAC5B,UAAU,EAAE,IAAI,mBAAW,EAAE;qBAChC,CAAC,CAAA;oBAOF,kBAAa,GAAG;wBACZ,KA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