atr-components 0.2.220 → 0.2.221
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/core/services/menu.service.d.ts +3 -2
- package/esm2020/atr-components.module.mjs +1 -1
- package/esm2020/core/services/menu.service.mjs +11 -7
- package/esm2020/lib/shared/atr-shared.module.mjs +3 -1
- package/esm2020/lib/shared/quill-editor/quill-editor.component.mjs +3 -3
- package/fesm2015/atr-components.mjs +14 -7
- package/fesm2015/atr-components.mjs.map +1 -1
- package/fesm2020/atr-components.mjs +14 -7
- package/fesm2020/atr-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -112,6 +112,7 @@ import { VgCoreModule, VgControlsModule, VgOverlayPlayModule, VgBufferingModule
|
|
|
112
112
|
import * as i10$1 from 'ng2-dragula';
|
|
113
113
|
import { DragulaModule } from 'ng2-dragula';
|
|
114
114
|
import Quill from 'quill';
|
|
115
|
+
import ResizeModule from '@ssumo/quill-resize-module';
|
|
115
116
|
import * as i3$3 from 'ngx-quill';
|
|
116
117
|
import { QuillModule } from 'ngx-quill';
|
|
117
118
|
import zh from '@angular/common/locales/zh';
|
|
@@ -932,14 +933,18 @@ class MenuService {
|
|
|
932
933
|
this.httpService = httpService;
|
|
933
934
|
this.data = [];
|
|
934
935
|
this.isLoadMenu = 'unload';
|
|
935
|
-
|
|
936
|
-
|
|
936
|
+
if (!MenuService.menuChange) {
|
|
937
|
+
MenuService.menuChange = new EventEmitter();
|
|
938
|
+
}
|
|
939
|
+
if (!MenuService.urlChange) {
|
|
940
|
+
MenuService.urlChange = new EventEmitter();
|
|
941
|
+
}
|
|
937
942
|
}
|
|
938
943
|
gotoUrl(routeParam) {
|
|
939
|
-
|
|
944
|
+
MenuService.urlChange.emit(routeParam);
|
|
940
945
|
}
|
|
941
946
|
getUrlChange() {
|
|
942
|
-
return
|
|
947
|
+
return MenuService.urlChange;
|
|
943
948
|
}
|
|
944
949
|
getCurMenu(url) {
|
|
945
950
|
return new Observable(observe => {
|
|
@@ -996,7 +1001,7 @@ class MenuService {
|
|
|
996
1001
|
this.data = [];
|
|
997
1002
|
}
|
|
998
1003
|
observe.next(this.data);
|
|
999
|
-
|
|
1004
|
+
MenuService.menuChange.emit(this.data);
|
|
1000
1005
|
observe.unsubscribe();
|
|
1001
1006
|
}, (error) => {
|
|
1002
1007
|
observe.error(error);
|
|
@@ -1005,7 +1010,7 @@ class MenuService {
|
|
|
1005
1010
|
}
|
|
1006
1011
|
else if (this.isLoadMenu == 'loading') {
|
|
1007
1012
|
// console.log("MenuChange999");
|
|
1008
|
-
|
|
1013
|
+
MenuService.menuChange.subscribe((menus) => {
|
|
1009
1014
|
// console.log("MenuChange");
|
|
1010
1015
|
observe.next(menus);
|
|
1011
1016
|
observe.unsubscribe();
|
|
@@ -3608,7 +3613,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
3608
3613
|
}]
|
|
3609
3614
|
}], ctorParameters: function () { return [{ type: i1$6.NzDrawerService }, { type: HttpService }]; } });
|
|
3610
3615
|
|
|
3611
|
-
|
|
3616
|
+
Quill.register("modules/resize", ResizeModule);
|
|
3612
3617
|
const icons = Quill.import('ui/icons');
|
|
3613
3618
|
icons.undo = `<svg viewbox="0 0 18 18">
|
|
3614
3619
|
<polygon class="ql-fill ql-stroke" points="6 10 4 12 2 10 6 10"></polygon>
|
|
@@ -4760,6 +4765,7 @@ AtrSharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version
|
|
|
4760
4765
|
modules: {
|
|
4761
4766
|
syntax: false,
|
|
4762
4767
|
// imageResize: {},
|
|
4768
|
+
resize: {},
|
|
4763
4769
|
toolbar: {
|
|
4764
4770
|
container: [
|
|
4765
4771
|
['undo', 'redo'],
|
|
@@ -4817,6 +4823,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
4817
4823
|
modules: {
|
|
4818
4824
|
syntax: false,
|
|
4819
4825
|
// imageResize: {},
|
|
4826
|
+
resize: {},
|
|
4820
4827
|
toolbar: {
|
|
4821
4828
|
container: [
|
|
4822
4829
|
['undo', 'redo'],
|