@stratusjs/angular 0.5.0 → 0.5.2
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.js +30609 -2673
- package/dist/angular.bundle.min.js +1 -1
- package/package.json +5 -4
- package/src/angular.modules.js +18 -33
- package/src/angular.modules.js.map +1 -1
- package/src/app.module.js +181 -227
- package/src/app.module.js.map +1 -1
- package/src/app.module.min.js +1 -1
- package/src/app.module.ts +17 -17
- package/src/backend.service.js +66 -87
- package/src/backend.service.js.map +1 -1
- package/src/base/base.component.js +101 -124
- package/src/base/base.component.js.map +1 -1
- package/src/boot.js +42 -55
- package/src/boot.js.map +1 -1
- package/src/confirm-dialog/confirm-dialog.component.js +41 -60
- package/src/confirm-dialog/confirm-dialog.component.js.map +1 -1
- package/src/core/base.interface.js +1 -9
- package/src/core/base.interface.js.map +1 -1
- package/src/core/dialog.interface.js.map +1 -0
- package/src/core/refresh.interface.js +1 -9
- package/src/core/refresh.interface.js.map +1 -1
- package/src/core/responsive.component.js +40 -58
- package/src/core/responsive.component.js.map +1 -1
- package/src/core/responsive.interface.js +1 -9
- package/src/core/responsive.interface.js.map +1 -1
- package/src/core/root.component.js +24 -43
- package/src/core/root.component.js.map +1 -1
- package/src/core/trigger.interface.js +1 -9
- package/src/core/trigger.interface.js.map +1 -1
- package/src/data/contact-meta.interface.js +1 -9
- package/src/data/contact-meta.interface.js.map +1 -1
- package/src/data/content.interface.js +1 -9
- package/src/data/content.interface.js.map +1 -1
- package/src/data/convoy.interface.js +1 -9
- package/src/data/convoy.interface.js.map +1 -1
- package/src/editor/citation-dialog.component.js +174 -207
- package/src/editor/citation-dialog.component.js.map +1 -1
- package/src/editor/code-mirror-bridge.js +63 -0
- package/src/editor/code-mirror-bridge.js.map +1 -0
- package/src/editor/code-mirror-bridge.min.js +1 -0
- package/src/editor/code-mirror-bridge.ts +85 -0
- package/src/editor/code-view-dialog.component.js +87 -116
- package/src/editor/code-view-dialog.component.js.map +1 -1
- package/src/editor/editor.component.js +903 -925
- package/src/editor/editor.component.js.map +1 -1
- package/src/editor/editor.component.min.js +1 -1
- package/src/editor/editor.component.ts +60 -21
- package/src/editor/link-dialog.component.js +356 -395
- package/src/editor/link-dialog.component.js.map +1 -1
- package/src/editor/media-dialog.component.js +270 -303
- package/src/editor/media-dialog.component.js.map +1 -1
- package/src/froala/plugins/citationManager.js +170 -191
- package/src/froala/plugins/citationManager.js.map +1 -1
- package/src/froala/plugins/inputButton.js +122 -138
- package/src/froala/plugins/inputButton.js.map +1 -1
- package/src/froala/plugins/linkManager.js +89 -104
- package/src/froala/plugins/linkManager.js.map +1 -1
- package/src/froala/plugins/mediaManager.js +72 -87
- package/src/froala/plugins/mediaManager.js.map +1 -1
- package/src/froala/plugins/menuButton.js +71 -86
- package/src/froala/plugins/menuButton.js.map +1 -1
- package/src/main.js +13 -33
- package/src/main.js.map +1 -1
- package/src/material.js +99 -194
- package/src/material.js.map +1 -1
- package/src/media-selector/media-selector.component.js +406 -441
- package/src/media-selector/media-selector.component.js.map +1 -1
- package/src/polyfills.js +3 -16
- package/src/polyfills.js.map +1 -1
- package/src/quill-plugins/quill-break-blot.plugin.js +19 -35
- package/src/quill-plugins/quill-break-blot.plugin.js.map +1 -1
- package/src/quill-plugins/quill-html-edit.plugin.js +140 -153
- package/src/quill-plugins/quill-html-edit.plugin.js.map +1 -1
- package/src/quill-plugins/quill-image-format.plugin.js +33 -47
- package/src/quill-plugins/quill-image-format.plugin.js.map +1 -1
- package/src/quill-plugins/quill-input-button.plugin.js +77 -95
- package/src/quill-plugins/quill-input-button.plugin.js.map +1 -1
- package/src/selector/selector.component.js +241 -276
- package/src/selector/selector.component.js.map +1 -1
- package/src/test/test.directive.js +49 -66
- package/src/test/test.directive.js.map +1 -1
- package/src/tree/tree-dialog.component.js +202 -231
- package/src/tree/tree-dialog.component.js.map +1 -1
- package/src/tree/tree-node.component.js +253 -279
- package/src/tree/tree-node.component.js.map +1 -1
- package/src/tree/tree-node.component.min.js +1 -1
- package/src/tree/tree-node.component.ts +10 -18
- package/src/tree/tree.component.js +531 -568
- package/src/tree/tree.component.js.map +1 -1
- package/src/tree/tree.component.min.js +1 -1
- package/src/tree/tree.component.ts +7 -10
|
@@ -1,119 +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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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 { ChangeDetectorRef, Component, Inject, NgZone, ViewChild } from '@angular/core';
|
|
14
|
+
import { FormBuilder, FormControl } from '@angular/forms';
|
|
15
|
+
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
|
16
|
+
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
|
|
17
|
+
import { take } from 'rxjs/operators';
|
|
18
|
+
import _ from 'lodash';
|
|
19
|
+
import { Stratus } from '@stratusjs/runtime/stratus';
|
|
20
|
+
import { cookie } from '@stratusjs/core/environment';
|
|
21
|
+
import { ResponsiveComponent } from '../core/responsive.component';
|
|
22
|
+
const systemDir = '@stratusjs/angular';
|
|
23
|
+
const moduleName = 'code-view-dialog';
|
|
24
|
+
const parentModuleName = 'editor';
|
|
25
|
+
const min = !cookie('env') ? '.min' : '';
|
|
26
|
+
const localDir = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
27
|
+
let CodeViewDialogComponent = class CodeViewDialogComponent extends ResponsiveComponent {
|
|
28
|
+
constructor(dialogRef, data, ref, fb, ngZone) {
|
|
29
|
+
super();
|
|
30
|
+
this.dialogRef = dialogRef;
|
|
31
|
+
this.data = data;
|
|
32
|
+
this.ref = ref;
|
|
33
|
+
this.fb = fb;
|
|
34
|
+
this.ngZone = ngZone;
|
|
35
|
+
this.title = moduleName + '_component';
|
|
36
|
+
this._ = _;
|
|
37
|
+
this.Stratus = Stratus;
|
|
38
|
+
this.form = this.fb.group({
|
|
39
|
+
dataString: new FormControl(),
|
|
40
|
+
});
|
|
41
|
+
this.monacoOptions = {
|
|
42
|
+
theme: 'vs-dark',
|
|
43
|
+
language: 'html'
|
|
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;
|
|
45
57
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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
|
-
});
|
|
58
|
+
if (value === null) {
|
|
59
|
+
value = '';
|
|
60
|
+
}
|
|
61
|
+
this.model.set(this.property, value);
|
|
62
|
+
});
|
|
63
|
+
this.refresh();
|
|
64
|
+
}
|
|
65
|
+
onCancelClick() {
|
|
66
|
+
this.dialogRef.close();
|
|
67
|
+
this.refresh();
|
|
68
|
+
}
|
|
69
|
+
triggerResize() {
|
|
70
|
+
this.ngZone.onStable.pipe(take(1))
|
|
71
|
+
.subscribe(() => this.autosize.resizeToFitContent(true));
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
__decorate([
|
|
75
|
+
ViewChild('autosize'),
|
|
76
|
+
__metadata("design:type", CdkTextareaAutosize)
|
|
77
|
+
], CodeViewDialogComponent.prototype, "autosize", void 0);
|
|
78
|
+
CodeViewDialogComponent = __decorate([
|
|
79
|
+
Component({
|
|
80
|
+
selector: `sa-${moduleName}`,
|
|
81
|
+
templateUrl: `${localDir}/${parentModuleName}/${moduleName}.component${min}.html`,
|
|
82
|
+
}),
|
|
83
|
+
__param(1, Inject(MAT_DIALOG_DATA)),
|
|
84
|
+
__metadata("design:paramtypes", [MatDialogRef, Object, ChangeDetectorRef,
|
|
85
|
+
FormBuilder,
|
|
86
|
+
NgZone])
|
|
87
|
+
], CodeViewDialogComponent);
|
|
88
|
+
export { CodeViewDialogComponent };
|
|
118
89
|
|
|
119
90
|
//# 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":";;;;;;;;;;;;AACA,OAAO,EAEH,iBAAiB,EACjB,SAAS,EACT,MAAM,EACN,MAAM,EAEN,SAAS,EACZ,MAAM,eAAe,CAAA;AACtB,OAAO,EACH,WAAW,EAAE,WAAW,EAE3B,MAAM,gBAAgB,CAAA;AAGvB,OAAO,EACH,eAAe,EACf,YAAY,EACf,MAAM,0BAA0B,CAAA;AAGjC,OAAO,EACH,mBAAmB,EACtB,MAAM,yBAAyB,CAAA;AAGhC,OAAO,EACH,IAAI,EACP,MAAM,gBAAgB,CAAA;AAGvB,OAAO,CAAC,MAAM,QAAQ,CAAA;AACtB,OAAO,EACH,OAAO,EACV,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAC,MAAM,EAAC,MAAM,6BAA6B,CAAA;AAQlD,OAAO,EACH,mBAAmB,EACtB,MAAM,8BAA8B,CAAA;AAGrC,MAAM,SAAS,GAAG,oBAAoB,CAAA;AACtC,MAAM,UAAU,GAAG,kBAAkB,CAAA;AACrC,MAAM,gBAAgB,GAAG,QAAQ,CAAA;AAGjC,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,C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