@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,68 +1,51 @@
|
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
], TestDirective.prototype, "onMouseEnter", null);
|
|
51
|
-
__decorate([
|
|
52
|
-
core_1.HostListener('mouseleave'),
|
|
53
|
-
__metadata("design:type", Function),
|
|
54
|
-
__metadata("design:paramtypes", []),
|
|
55
|
-
__metadata("design:returntype", void 0)
|
|
56
|
-
], TestDirective.prototype, "onMouseLeave", null);
|
|
57
|
-
TestDirective = __decorate([
|
|
58
|
-
core_1.Directive({
|
|
59
|
-
selector: `[sa-${moduleName}]`
|
|
60
|
-
}),
|
|
61
|
-
__metadata("design:paramtypes", [core_1.ElementRef])
|
|
62
|
-
], TestDirective);
|
|
63
|
-
exports_1("TestDirective", TestDirective);
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
});
|
|
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 { Directive, ElementRef, HostListener } from '@angular/core';
|
|
11
|
+
import { Stratus } from '@stratusjs/runtime/stratus';
|
|
12
|
+
import _ from 'lodash';
|
|
13
|
+
const moduleName = 'test';
|
|
14
|
+
let TestDirective = class TestDirective {
|
|
15
|
+
constructor(el) {
|
|
16
|
+
this.el = el;
|
|
17
|
+
this.uid = _.uniqueId(`sa_${moduleName}_directive_`);
|
|
18
|
+
Stratus.Instances[this.uid] = this;
|
|
19
|
+
console.warn(this.uid, 'has been load to', this.el);
|
|
20
|
+
}
|
|
21
|
+
onMouseEnter() {
|
|
22
|
+
this.highlight('yellow');
|
|
23
|
+
}
|
|
24
|
+
onMouseLeave() {
|
|
25
|
+
this.highlight(null);
|
|
26
|
+
}
|
|
27
|
+
highlight(color) {
|
|
28
|
+
this.el.nativeElement.style.backgroundColor = color;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
__decorate([
|
|
32
|
+
HostListener('mouseenter'),
|
|
33
|
+
__metadata("design:type", Function),
|
|
34
|
+
__metadata("design:paramtypes", []),
|
|
35
|
+
__metadata("design:returntype", void 0)
|
|
36
|
+
], TestDirective.prototype, "onMouseEnter", null);
|
|
37
|
+
__decorate([
|
|
38
|
+
HostListener('mouseleave'),
|
|
39
|
+
__metadata("design:type", Function),
|
|
40
|
+
__metadata("design:paramtypes", []),
|
|
41
|
+
__metadata("design:returntype", void 0)
|
|
42
|
+
], TestDirective.prototype, "onMouseLeave", null);
|
|
43
|
+
TestDirective = __decorate([
|
|
44
|
+
Directive({
|
|
45
|
+
selector: `[sa-${moduleName}]`
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:paramtypes", [ElementRef])
|
|
48
|
+
], TestDirective);
|
|
49
|
+
export { TestDirective };
|
|
67
50
|
|
|
68
51
|
//# sourceMappingURL=test.directive.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["test.directive.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["test.directive.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EACH,SAAS,EACT,UAAU,EACV,YAAY,EACf,MAAM,eAAe,CAAA;AAKtB,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAClD,OAAO,CAAC,MAAM,QAAQ,CAAA;AAKtB,MAAM,UAAU,GAAG,MAAM,CAAA;AAMzB,IAAa,aAAa,GAA1B,MAAa,aAAa;IAKtB,YAAoB,EAAc;QAAd,OAAE,GAAF,EAAE,CAAY;QAK9B,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,UAAU,aAAa,CAAC,CAAA;QACpD,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;QAElC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,CAAC,CAAA;IAkBvD,CAAC;IAE2B,YAAY;QACpC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAA;IAC5B,CAAC;IAE2B,YAAY;QACpC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;IACxB,CAAC;IAEO,SAAS,CAAC,KAAa;QAC3B,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,eAAe,GAAG,KAAK,CAAA;IACvD,CAAC;CACJ,CAAA;AAX+B;IAA3B,YAAY,CAAC,YAAY,CAAC;;;;iDAE1B;AAE2B;IAA3B,YAAY,CAAC,YAAY,CAAC;;;;iDAE1B;AAvCQ,aAAa;IAJzB,SAAS,CAAC;QACP,QAAQ,EAAE,OAAO,UAAU,GAAG;KACjC,CAAC;qCAO0B,UAAU;GALzB,aAAa,CA4CzB;SA5CY,aAAa","file":"test.directive.js"}
|
|
@@ -1,237 +1,208 @@
|
|
|
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 } from '@angular/core';
|
|
14
|
+
import { FormBuilder } from '@angular/forms';
|
|
15
|
+
import { moveItemInArray } from '@angular/cdk/drag-drop';
|
|
16
|
+
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
|
17
|
+
import { debounceTime, finalize, switchMap, tap } 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 = 'tree-dialog';
|
|
24
|
+
const parentModuleName = 'tree';
|
|
25
|
+
const min = !cookie('env') ? '.min' : '';
|
|
26
|
+
const localDir = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '').replace(/\/dist\/$/, '/src/')}`;
|
|
27
|
+
let TreeDialogComponent = class TreeDialogComponent extends ResponsiveComponent {
|
|
28
|
+
constructor(dialogRef, data, fb, ref) {
|
|
29
|
+
super();
|
|
30
|
+
this.dialogRef = dialogRef;
|
|
31
|
+
this.data = data;
|
|
32
|
+
this.fb = fb;
|
|
33
|
+
this.ref = ref;
|
|
34
|
+
this.title = moduleName + '_component';
|
|
35
|
+
this.isInitialized = false;
|
|
36
|
+
this.isDestroyed = false;
|
|
37
|
+
this.isStyled = false;
|
|
38
|
+
this._ = _;
|
|
39
|
+
this.Stratus = Stratus;
|
|
40
|
+
this.apiBase = '/Api/Content';
|
|
41
|
+
this.isSingleContentLoading = false;
|
|
42
|
+
this.limit = 20;
|
|
43
|
+
this.isContentLoading = false;
|
|
44
|
+
this.isContentLoaded = false;
|
|
45
|
+
this.basicContentQueryAttributes = 'options[isContent]=null&options[isCollection]=null&options[showRoutable]=true&options[showRouting]=true';
|
|
46
|
+
}
|
|
47
|
+
ngOnInit() {
|
|
48
|
+
this.uid = _.uniqueId(`sa_${_.snakeCase(moduleName)}_component_`);
|
|
49
|
+
Stratus.Instances[this.uid] = this;
|
|
50
|
+
Stratus.Internals.CssLoader(`${localDir}/${parentModuleName}/${moduleName}.component${min}.css`)
|
|
51
|
+
.then(() => {
|
|
52
|
+
this.isStyled = true;
|
|
53
|
+
})
|
|
54
|
+
.catch((err) => {
|
|
55
|
+
console.warn('Issue detected in CSS Loader for Component:', this);
|
|
56
|
+
console.error(err);
|
|
57
|
+
this.isStyled = true;
|
|
58
|
+
});
|
|
59
|
+
this.tree = this.data.tree;
|
|
60
|
+
this.treeNode = this.data.treeNode;
|
|
61
|
+
this.backend = this.data.backend;
|
|
62
|
+
this.iconRegistry = this.data.iconRegistry;
|
|
63
|
+
this.dialogContentForm = this.fb.group({
|
|
64
|
+
contentSelectorInput: this.data.content || null
|
|
65
|
+
});
|
|
66
|
+
this.dialogContentForm
|
|
67
|
+
.get('contentSelectorInput')
|
|
68
|
+
.valueChanges
|
|
69
|
+
.pipe(debounceTime(300), tap(() => this.isContentLoading = true), switchMap((value) => {
|
|
70
|
+
if (_.isString(value)) {
|
|
71
|
+
this.lastContentSelectorQuery = this.getQueryUrl(value);
|
|
45
72
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
this.isContentLoading = false;
|
|
70
|
-
this.isContentLoaded = false;
|
|
71
|
-
this.basicContentQueryAttributes = 'options[isContent]=null&options[isCollection]=null&options[showRoutable]=true&options[showRouting]=true';
|
|
72
|
-
}
|
|
73
|
-
ngOnInit() {
|
|
74
|
-
this.uid = lodash_1.default.uniqueId(`sa_${lodash_1.default.snakeCase(moduleName)}_component_`);
|
|
75
|
-
stratus_1.Stratus.Instances[this.uid] = this;
|
|
76
|
-
stratus_1.Stratus.Internals.CssLoader(`${localDir}/${parentModuleName}/${moduleName}.component${min}.css`)
|
|
77
|
-
.then(() => {
|
|
78
|
-
this.isStyled = true;
|
|
79
|
-
})
|
|
80
|
-
.catch((err) => {
|
|
81
|
-
console.warn('Issue detected in CSS Loader for Component:', this);
|
|
82
|
-
console.error(err);
|
|
83
|
-
this.isStyled = true;
|
|
84
|
-
});
|
|
85
|
-
this.tree = this.data.tree;
|
|
86
|
-
this.treeNode = this.data.treeNode;
|
|
87
|
-
this.backend = this.data.backend;
|
|
88
|
-
this.iconRegistry = this.data.iconRegistry;
|
|
89
|
-
this.dialogContentForm = this.fb.group({
|
|
90
|
-
contentSelectorInput: this.data.content || null
|
|
91
|
-
});
|
|
92
|
-
this.dialogContentForm
|
|
93
|
-
.get('contentSelectorInput')
|
|
94
|
-
.valueChanges
|
|
95
|
-
.pipe(operators_1.debounceTime(300), operators_1.tap(() => this.isContentLoading = true), operators_1.switchMap((value) => {
|
|
96
|
-
if (lodash_1.default.isString(value)) {
|
|
97
|
-
this.lastContentSelectorQuery = this.getQueryUrl(value);
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
this.data.content = value;
|
|
101
|
-
this.data.url = null;
|
|
102
|
-
}
|
|
103
|
-
return this.backend.get(this.lastContentSelectorQuery || this.getQueryUrl())
|
|
104
|
-
.pipe(operators_1.finalize(() => {
|
|
105
|
-
this.isContentLoading = false;
|
|
106
|
-
this.isContentLoaded = true;
|
|
107
|
-
}));
|
|
108
|
-
}))
|
|
109
|
-
.subscribe((response) => this.handleContent(response));
|
|
110
|
-
this.backend
|
|
111
|
-
.get(this.getQueryUrl())
|
|
112
|
-
.pipe(operators_1.finalize(() => this.isContentLoading = false))
|
|
113
|
-
.subscribe((response) => this.handleContent(response));
|
|
114
|
-
if (this.data.content && this.data.content.id) {
|
|
115
|
-
this.isSingleContentLoading = true;
|
|
116
|
-
this.backend
|
|
117
|
-
.get(this.getQueryUrl(null, this.data.content.id))
|
|
118
|
-
.pipe(operators_1.finalize(() => this.isSingleContentLoading = false))
|
|
119
|
-
.subscribe((response) => {
|
|
120
|
-
if (!response.ok || response.status !== 200 || lodash_1.default.isEmpty(response.body)) {
|
|
121
|
-
return null;
|
|
122
|
-
}
|
|
123
|
-
const payload = lodash_1.default.get(response.body, 'payload') || response.body;
|
|
124
|
-
if (lodash_1.default.isEmpty(payload) || Array.isArray(payload) || !lodash_1.default.isObject(payload)) {
|
|
125
|
-
return null;
|
|
126
|
-
}
|
|
127
|
-
this.contentEntity = payload;
|
|
128
|
-
this.isSingleContentLoading = false;
|
|
129
|
-
this.dialogContentForm
|
|
130
|
-
.get('contentSelectorInput')
|
|
131
|
-
.patchValue(this.contentEntity);
|
|
132
|
-
this.refresh();
|
|
133
|
-
return this.contentEntity;
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
this.isInitialized = true;
|
|
137
|
-
}
|
|
138
|
-
ngOnDestroy() {
|
|
139
|
-
this.isDestroyed = true;
|
|
140
|
-
}
|
|
141
|
-
refresh() {
|
|
142
|
-
if (this.isDestroyed) {
|
|
143
|
-
return new Promise(resolve => resolve());
|
|
144
|
-
}
|
|
145
|
-
return super.refresh();
|
|
146
|
-
}
|
|
147
|
-
onCancelClick() {
|
|
148
|
-
this.dialogRef.close();
|
|
149
|
-
}
|
|
150
|
-
onBrowserTargetChange($event) {
|
|
151
|
-
this.data.browserTarget = this.browserTarget ? '_blank' : null;
|
|
152
|
-
}
|
|
153
|
-
displayContentText(content) {
|
|
154
|
-
if (!content) {
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
157
|
-
const routing = lodash_1.default.get(content, 'routing[0].url');
|
|
158
|
-
const routingText = !lodash_1.default.isUndefined(routing) ? ` (/${routing})` : ' (No route!)';
|
|
159
|
-
const contentId = lodash_1.default.get(content, 'id');
|
|
160
|
-
const contentIdText = !lodash_1.default.isUndefined(contentId) ? `Content: ${contentId}` : null;
|
|
161
|
-
return (lodash_1.default.get(content, 'version.title') || contentIdText) + routingText;
|
|
162
|
-
}
|
|
163
|
-
handleContent(response) {
|
|
164
|
-
if (!response.ok || response.status !== 200 || lodash_1.default.isEmpty(response.body)) {
|
|
165
|
-
this.filteredContent = [];
|
|
166
|
-
return this.filteredContent;
|
|
167
|
-
}
|
|
168
|
-
const payload = lodash_1.default.get(response.body, 'payload') || response.body;
|
|
169
|
-
if (lodash_1.default.isEmpty(payload) || !Array.isArray(payload)) {
|
|
170
|
-
this.filteredContent = [];
|
|
171
|
-
return this.filteredContent;
|
|
172
|
-
}
|
|
173
|
-
this.filteredContent = payload;
|
|
174
|
-
return this.filteredContent;
|
|
175
|
-
}
|
|
176
|
-
destroy() {
|
|
177
|
-
this.treeNode.destroy()
|
|
178
|
-
.afterClosed()
|
|
179
|
-
.subscribe((dialogResult) => {
|
|
180
|
-
if (!dialogResult) {
|
|
181
|
-
return;
|
|
182
|
-
}
|
|
183
|
-
this.onCancelClick();
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
toggleStatus() {
|
|
187
|
-
this.treeNode.toggleStatus();
|
|
188
|
-
}
|
|
189
|
-
addChild() {
|
|
190
|
-
this.treeNode.addChild();
|
|
191
|
-
}
|
|
192
|
-
isSelected(content) {
|
|
193
|
-
if (!this.data.content) {
|
|
194
|
-
return false;
|
|
195
|
-
}
|
|
196
|
-
return this.data.content.id === content.id;
|
|
197
|
-
}
|
|
198
|
-
getSvg(url, options) {
|
|
199
|
-
return this.tree.getSvg(url, options);
|
|
200
|
-
}
|
|
201
|
-
getQueryUrl(query, id) {
|
|
202
|
-
query = (!lodash_1.default.isString(query) || lodash_1.default.isEmpty(query)) ? '' : `"${query}"`;
|
|
203
|
-
id = !lodash_1.default.isString(id) && !lodash_1.default.isNumber(id) ? '' : `/${id}`;
|
|
204
|
-
return `${this.apiBase}${id}?limit=${this.limit}&${this.basicContentQueryAttributes}&q=${query}`;
|
|
73
|
+
else {
|
|
74
|
+
this.data.content = value;
|
|
75
|
+
this.data.url = null;
|
|
76
|
+
}
|
|
77
|
+
return this.backend.get(this.lastContentSelectorQuery || this.getQueryUrl())
|
|
78
|
+
.pipe(finalize(() => {
|
|
79
|
+
this.isContentLoading = false;
|
|
80
|
+
this.isContentLoaded = true;
|
|
81
|
+
}));
|
|
82
|
+
}))
|
|
83
|
+
.subscribe((response) => this.handleContent(response));
|
|
84
|
+
this.backend
|
|
85
|
+
.get(this.getQueryUrl())
|
|
86
|
+
.pipe(finalize(() => this.isContentLoading = false))
|
|
87
|
+
.subscribe((response) => this.handleContent(response));
|
|
88
|
+
if (this.data.content && this.data.content.id) {
|
|
89
|
+
this.isSingleContentLoading = true;
|
|
90
|
+
this.backend
|
|
91
|
+
.get(this.getQueryUrl(null, this.data.content.id))
|
|
92
|
+
.pipe(finalize(() => this.isSingleContentLoading = false))
|
|
93
|
+
.subscribe((response) => {
|
|
94
|
+
if (!response.ok || response.status !== 200 || _.isEmpty(response.body)) {
|
|
95
|
+
return null;
|
|
205
96
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
}
|
|
210
|
-
if (!selected || !selected.id) {
|
|
211
|
-
return list;
|
|
212
|
-
}
|
|
213
|
-
const orderedList = lodash_1.default.clone(list);
|
|
214
|
-
const index = list.findIndex((v) => v.id === selected.id);
|
|
215
|
-
if (index === -1) {
|
|
216
|
-
orderedList.unshift(selected);
|
|
217
|
-
return orderedList;
|
|
218
|
-
}
|
|
219
|
-
drag_drop_1.moveItemInArray(orderedList, index, 0);
|
|
220
|
-
return orderedList;
|
|
97
|
+
const payload = _.get(response.body, 'payload') || response.body;
|
|
98
|
+
if (_.isEmpty(payload) || Array.isArray(payload) || !_.isObject(payload)) {
|
|
99
|
+
return null;
|
|
221
100
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
101
|
+
this.contentEntity = payload;
|
|
102
|
+
this.isSingleContentLoading = false;
|
|
103
|
+
this.dialogContentForm
|
|
104
|
+
.get('contentSelectorInput')
|
|
105
|
+
.patchValue(this.contentEntity);
|
|
106
|
+
this.refresh();
|
|
107
|
+
return this.contentEntity;
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
this.isInitialized = true;
|
|
111
|
+
}
|
|
112
|
+
ngOnDestroy() {
|
|
113
|
+
this.isDestroyed = true;
|
|
114
|
+
}
|
|
115
|
+
refresh() {
|
|
116
|
+
if (this.isDestroyed) {
|
|
117
|
+
return new Promise(resolve => resolve());
|
|
118
|
+
}
|
|
119
|
+
return super.refresh();
|
|
120
|
+
}
|
|
121
|
+
onCancelClick() {
|
|
122
|
+
this.dialogRef.close();
|
|
123
|
+
}
|
|
124
|
+
onBrowserTargetChange($event) {
|
|
125
|
+
this.data.browserTarget = this.browserTarget ? '_blank' : null;
|
|
126
|
+
}
|
|
127
|
+
displayContentText(content) {
|
|
128
|
+
if (!content) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
const routing = _.get(content, 'routing[0].url');
|
|
132
|
+
const routingText = !_.isUndefined(routing) ? ` (/${routing})` : ' (No route!)';
|
|
133
|
+
const contentId = _.get(content, 'id');
|
|
134
|
+
const contentIdText = !_.isUndefined(contentId) ? `Content: ${contentId}` : null;
|
|
135
|
+
return (_.get(content, 'version.title') || contentIdText) + routingText;
|
|
136
|
+
}
|
|
137
|
+
handleContent(response) {
|
|
138
|
+
if (!response.ok || response.status !== 200 || _.isEmpty(response.body)) {
|
|
139
|
+
this.filteredContent = [];
|
|
140
|
+
return this.filteredContent;
|
|
141
|
+
}
|
|
142
|
+
const payload = _.get(response.body, 'payload') || response.body;
|
|
143
|
+
if (_.isEmpty(payload) || !Array.isArray(payload)) {
|
|
144
|
+
this.filteredContent = [];
|
|
145
|
+
return this.filteredContent;
|
|
146
|
+
}
|
|
147
|
+
this.filteredContent = payload;
|
|
148
|
+
return this.filteredContent;
|
|
149
|
+
}
|
|
150
|
+
destroy() {
|
|
151
|
+
this.treeNode.destroy()
|
|
152
|
+
.afterClosed()
|
|
153
|
+
.subscribe((dialogResult) => {
|
|
154
|
+
if (!dialogResult) {
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
this.onCancelClick();
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
toggleStatus() {
|
|
161
|
+
this.treeNode.toggleStatus();
|
|
162
|
+
}
|
|
163
|
+
addChild() {
|
|
164
|
+
this.treeNode.addChild();
|
|
165
|
+
}
|
|
166
|
+
isSelected(content) {
|
|
167
|
+
if (!this.data.content) {
|
|
168
|
+
return false;
|
|
169
|
+
}
|
|
170
|
+
return this.data.content.id === content.id;
|
|
171
|
+
}
|
|
172
|
+
getSvg(url, options) {
|
|
173
|
+
return this.tree.getSvg(url, options);
|
|
174
|
+
}
|
|
175
|
+
getQueryUrl(query, id) {
|
|
176
|
+
query = (!_.isString(query) || _.isEmpty(query)) ? '' : `"${query}"`;
|
|
177
|
+
id = !_.isString(id) && !_.isNumber(id) ? '' : `/${id}`;
|
|
178
|
+
return `${this.apiBase}${id}?limit=${this.limit}&${this.basicContentQueryAttributes}&q=${query}`;
|
|
179
|
+
}
|
|
180
|
+
selectedOnTop(list, selected) {
|
|
181
|
+
if (!list || !list.length) {
|
|
182
|
+
return list;
|
|
183
|
+
}
|
|
184
|
+
if (!selected || !selected.id) {
|
|
185
|
+
return list;
|
|
186
|
+
}
|
|
187
|
+
const orderedList = _.clone(list);
|
|
188
|
+
const index = list.findIndex((v) => v.id === selected.id);
|
|
189
|
+
if (index === -1) {
|
|
190
|
+
orderedList.unshift(selected);
|
|
191
|
+
return orderedList;
|
|
233
192
|
}
|
|
234
|
-
|
|
235
|
-
|
|
193
|
+
moveItemInArray(orderedList, index, 0);
|
|
194
|
+
return orderedList;
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
TreeDialogComponent = __decorate([
|
|
198
|
+
Component({
|
|
199
|
+
selector: `sa-${moduleName}`,
|
|
200
|
+
templateUrl: `${localDir}/${parentModuleName}/${moduleName}.component${min}.html`,
|
|
201
|
+
}),
|
|
202
|
+
__param(1, Inject(MAT_DIALOG_DATA)),
|
|
203
|
+
__metadata("design:paramtypes", [MatDialogRef, Object, FormBuilder,
|
|
204
|
+
ChangeDetectorRef])
|
|
205
|
+
], TreeDialogComponent);
|
|
206
|
+
export { TreeDialogComponent };
|
|
236
207
|
|
|
237
208
|
//# sourceMappingURL=tree-dialog.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["tree-dialog.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["tree-dialog.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EACH,iBAAiB,EACjB,SAAS,EACT,MAAM,EAGT,MAAM,eAAe,CAAA;AACtB,OAAO,EACH,WAAW,EAEd,MAAM,gBAAgB,CAAA;AAGvB,OAAO,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAA;AAGtD,OAAO,EACH,eAAe,EACf,YAAY,EACf,MAAM,0BAA0B,CAAA;AAUjC,OAAO,EACH,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,GAAG,EACN,MAAM,gBAAgB,CAAA;AAGvB,OAAO,CAAC,MAAM,QAAQ,CAAA;AACtB,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,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