sync 0428
This commit is contained in:
parent
c9540517b0
commit
b03f36b99a
5783
package-lock.json
generated
5783
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
|
@ -184,7 +184,7 @@
|
||||||
"@ucap/ng-store-organization": "file:pack/ucap-ng-store-organization-0.0.4.tgz",
|
"@ucap/ng-store-organization": "file:pack/ucap-ng-store-organization-0.0.4.tgz",
|
||||||
"@ucap/ng-ui": "file:pack/ucap-ng-ui-0.0.4.tgz",
|
"@ucap/ng-ui": "file:pack/ucap-ng-ui-0.0.4.tgz",
|
||||||
"@ucap/ng-ui-authentication": "file:pack/ucap-ng-ui-authentication-0.0.16.tgz",
|
"@ucap/ng-ui-authentication": "file:pack/ucap-ng-ui-authentication-0.0.16.tgz",
|
||||||
"@ucap/ng-ui-group": "file:pack/ucap-ng-ui-group-0.0.3.tgz",
|
"@ucap/ng-ui-group": "file:pack/ucap-ng-ui-group-0.0.4.tgz",
|
||||||
"@ucap/ng-ui-organization": "file:pack/ucap-ng-ui-organization-0.0.2.tgz",
|
"@ucap/ng-ui-organization": "file:pack/ucap-ng-ui-organization-0.0.2.tgz",
|
||||||
"@ucap/ng-ui-skin-default": "file:pack/ucap-ng-ui-skin-default-0.0.1.tgz",
|
"@ucap/ng-ui-skin-default": "file:pack/ucap-ng-ui-skin-default-0.0.1.tgz",
|
||||||
"@ucap/ng-web-socket": "file:pack/ucap-ng-web-socket-0.0.2.tgz",
|
"@ucap/ng-web-socket": "file:pack/ucap-ng-web-socket-0.0.2.tgz",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-api-common",
|
"name": "@ucap/ng-api-common",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-api-external",
|
"name": "@ucap/ng-api-external",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-api-message",
|
"name": "@ucap/ng-api-message",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-api-prompt",
|
"name": "@ucap/ng-api-prompt",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-api-public",
|
"name": "@ucap/ng-api-public",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-core",
|
"name": "@ucap/ng-core",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-i18n",
|
"name": "@ucap/ng-i18n",
|
||||||
"version": "0.0.6",
|
"version": "0.0.6",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.6",
|
"@angular/common": "^9.0.6",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-logger",
|
"name": "@ucap/ng-logger",
|
||||||
"version": "0.0.2",
|
"version": "0.0.2",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.1.0",
|
"@angular/common": "^9.1.0",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-native-browser",
|
"name": "@ucap/ng-native-browser",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-native",
|
"name": "@ucap/ng-native",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-pi",
|
"name": "@ucap/ng-pi",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-protocol-authentication",
|
"name": "@ucap/ng-protocol-authentication",
|
||||||
"version": "0.0.3",
|
"version": "0.0.3",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-protocol-buddy",
|
"name": "@ucap/ng-protocol-buddy",
|
||||||
"version": "0.0.3",
|
"version": "0.0.3",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-protocol-event",
|
"name": "@ucap/ng-protocol-event",
|
||||||
"version": "0.0.3",
|
"version": "0.0.3",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-protocol-file",
|
"name": "@ucap/ng-protocol-file",
|
||||||
"version": "0.0.3",
|
"version": "0.0.3",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-protocol-group",
|
"name": "@ucap/ng-protocol-group",
|
||||||
"version": "0.0.3",
|
"version": "0.0.3",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-protocol-info",
|
"name": "@ucap/ng-protocol-info",
|
||||||
"version": "0.0.3",
|
"version": "0.0.3",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-protocol-inner",
|
"name": "@ucap/ng-protocol-inner",
|
||||||
"version": "0.0.3",
|
"version": "0.0.3",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-protocol-option",
|
"name": "@ucap/ng-protocol-option",
|
||||||
"version": "0.0.3",
|
"version": "0.0.3",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-protocol-ping",
|
"name": "@ucap/ng-protocol-ping",
|
||||||
"version": "0.0.3",
|
"version": "0.0.3",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-protocol-query",
|
"name": "@ucap/ng-protocol-query",
|
||||||
"version": "0.0.3",
|
"version": "0.0.3",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-protocol-room",
|
"name": "@ucap/ng-protocol-room",
|
||||||
"version": "0.0.3",
|
"version": "0.0.3",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-protocol-service",
|
"name": "@ucap/ng-protocol-service",
|
||||||
"version": "0.0.3",
|
"version": "0.0.3",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-protocol-status",
|
"name": "@ucap/ng-protocol-status",
|
||||||
"version": "0.0.3",
|
"version": "0.0.3",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-protocol-sync",
|
"name": "@ucap/ng-protocol-sync",
|
||||||
"version": "0.0.3",
|
"version": "0.0.3",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-protocol-umg",
|
"name": "@ucap/ng-protocol-umg",
|
||||||
"version": "0.0.3",
|
"version": "0.0.3",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-protocol",
|
"name": "@ucap/ng-protocol",
|
||||||
"version": "0.0.3",
|
"version": "0.0.3",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-store-authentication",
|
"name": "@ucap/ng-store-authentication",
|
||||||
"version": "0.0.10",
|
"version": "0.0.10",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-store-chat",
|
"name": "@ucap/ng-store-chat",
|
||||||
"version": "0.0.5",
|
"version": "0.0.5",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-store-group",
|
"name": "@ucap/ng-store-group",
|
||||||
"version": "0.0.6",
|
"version": "0.0.6",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-store-organization",
|
"name": "@ucap/ng-store-organization",
|
||||||
"version": "0.0.4",
|
"version": "0.0.4",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.0",
|
"@angular/common": "^9.0.0",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-ui-authentication",
|
"name": "@ucap/ng-ui-authentication",
|
||||||
"version": "0.0.16",
|
"version": "0.0.16",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/cdk": "^9.0.0",
|
"@angular/cdk": "^9.0.0",
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"name": "@ucap/ng-ui-group",
|
"name": "@ucap/ng-ui-group",
|
||||||
"version": "0.0.3",
|
"version": "0.0.4",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/cdk": "^9.0.0",
|
"@angular/cdk": "^9.0.0",
|
||||||
|
|
|
@ -1,10 +1,5 @@
|
||||||
<div>
|
<div>
|
||||||
<cdk-virtual-scroll-viewport
|
<cdk-virtual-scroll-viewport #cvsvList perfectScrollbar fxFlexFill>
|
||||||
#cvsvList
|
|
||||||
perfectScrollbar
|
|
||||||
fxFlexFill
|
|
||||||
virtualScrollStrategy="virtualScrollStrategy"
|
|
||||||
>
|
|
||||||
<ng-container
|
<ng-container
|
||||||
*cdkVirtualFor="let node of dataSource.expandedData$"
|
*cdkVirtualFor="let node of dataSource.expandedData$"
|
||||||
></ng-container>
|
></ng-container>
|
||||||
|
|
|
@ -7,13 +7,12 @@ import {
|
||||||
EventEmitter,
|
EventEmitter,
|
||||||
ViewChild,
|
ViewChild,
|
||||||
ContentChild,
|
ContentChild,
|
||||||
TemplateRef
|
TemplateRef,
|
||||||
|
ChangeDetectionStrategy,
|
||||||
|
ChangeDetectorRef
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
|
|
||||||
import {
|
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
||||||
VirtualScrollStrategy,
|
|
||||||
CdkVirtualScrollViewport
|
|
||||||
} from '@angular/cdk/scrolling';
|
|
||||||
import { FlatTreeControl } from '@angular/cdk/tree';
|
import { FlatTreeControl } from '@angular/cdk/tree';
|
||||||
|
|
||||||
import { MatTreeFlattener, MatTree } from '@angular/material/tree';
|
import { MatTreeFlattener, MatTree } from '@angular/material/tree';
|
||||||
|
@ -47,16 +46,17 @@ export interface FlatNode {
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ucap-group-expansion-list',
|
selector: 'ucap-group-expansion-list',
|
||||||
templateUrl: './expansion-list.component.html',
|
templateUrl: './expansion-list.component.html',
|
||||||
styleUrls: ['./expansion-list.component.scss']
|
styleUrls: ['./expansion-list.component.scss'],
|
||||||
|
changeDetection: ChangeDetectionStrategy.OnPush
|
||||||
})
|
})
|
||||||
export class ExpansionListComponent implements OnInit, OnDestroy {
|
export class ExpansionListComponent implements OnInit, OnDestroy {
|
||||||
@Input()
|
@Input()
|
||||||
virtualScrollStrategy: VirtualScrollStrategy;
|
displayOrder: NodeType[] = [];
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
set profile(userInfo: UserInfo) {
|
set profile(userInfo: UserInfo) {
|
||||||
if (!userInfo) {
|
if (!userInfo) {
|
||||||
this.profileNodes = [];
|
this.nodeMap.set(NodeType.Profile, []);
|
||||||
} else {
|
} else {
|
||||||
const node: GroupNode = {
|
const node: GroupNode = {
|
||||||
nodeType: NodeType.Profile,
|
nodeType: NodeType.Profile,
|
||||||
|
@ -64,7 +64,7 @@ export class ExpansionListComponent implements OnInit, OnDestroy {
|
||||||
children: []
|
children: []
|
||||||
};
|
};
|
||||||
|
|
||||||
this.profileNodes = [node];
|
this.nodeMap.set(NodeType.Profile, [node]);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.refreshNodes();
|
this.refreshNodes();
|
||||||
|
@ -73,7 +73,7 @@ export class ExpansionListComponent implements OnInit, OnDestroy {
|
||||||
@Input()
|
@Input()
|
||||||
set favorites(userInfos: UserInfo[]) {
|
set favorites(userInfos: UserInfo[]) {
|
||||||
if (!userInfos || 0 === userInfos.length) {
|
if (!userInfos || 0 === userInfos.length) {
|
||||||
this.favoriteNodes = [];
|
this.nodeMap.set(NodeType.Favorite, []);
|
||||||
} else {
|
} else {
|
||||||
const node: GroupNode = {
|
const node: GroupNode = {
|
||||||
nodeType: NodeType.Favorite,
|
nodeType: NodeType.Favorite,
|
||||||
|
@ -93,7 +93,7 @@ export class ExpansionListComponent implements OnInit, OnDestroy {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
this.favoriteNodes = [node];
|
this.nodeMap.set(NodeType.Favorite, [node]);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.refreshNodes();
|
this.refreshNodes();
|
||||||
|
@ -102,8 +102,12 @@ export class ExpansionListComponent implements OnInit, OnDestroy {
|
||||||
@Input()
|
@Input()
|
||||||
set groupBuddies(list: { group: GroupDetailData; buddyList: UserInfo[] }[]) {
|
set groupBuddies(list: { group: GroupDetailData; buddyList: UserInfo[] }[]) {
|
||||||
if (!list || 0 === list.length) {
|
if (!list || 0 === list.length) {
|
||||||
this.buddyNodes = [];
|
this.nodeMap.set(NodeType.Default, []);
|
||||||
|
this.nodeMap.set(NodeType.Buddy, []);
|
||||||
} else {
|
} else {
|
||||||
|
this.nodeMap.set(NodeType.Default, []);
|
||||||
|
this.nodeMap.set(NodeType.Buddy, []);
|
||||||
|
|
||||||
for (const item of list) {
|
for (const item of list) {
|
||||||
let nodeType = NodeType.Buddy;
|
let nodeType = NodeType.Buddy;
|
||||||
if (0 === item.group.seq) {
|
if (0 === item.group.seq) {
|
||||||
|
@ -136,7 +140,11 @@ export class ExpansionListComponent implements OnInit, OnDestroy {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
this.buddyNodes.push(node);
|
if (NodeType.Buddy === nodeType) {
|
||||||
|
this.nodeMap.get(NodeType.Buddy).push(node);
|
||||||
|
} else {
|
||||||
|
this.nodeMap.get(NodeType.Default).push(node);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -179,18 +187,15 @@ export class ExpansionListComponent implements OnInit, OnDestroy {
|
||||||
@ContentChild('[ucapGroupExpansionList="buddyHeader"]', { read: TemplateRef })
|
@ContentChild('[ucapGroupExpansionList="buddyHeader"]', { read: TemplateRef })
|
||||||
buddyHeaderTemplate: TemplateRef<any>;
|
buddyHeaderTemplate: TemplateRef<any>;
|
||||||
|
|
||||||
rootNodeList: GroupNode[] = [];
|
|
||||||
treeControl: FlatTreeControl<FlatNode>;
|
treeControl: FlatTreeControl<FlatNode>;
|
||||||
treeFlattener: MatTreeFlattener<GroupNode, FlatNode>;
|
treeFlattener: MatTreeFlattener<GroupNode, FlatNode>;
|
||||||
dataSource: VirtualScrollTreeFlatDataSource<GroupNode, FlatNode>;
|
dataSource: VirtualScrollTreeFlatDataSource<GroupNode, FlatNode>;
|
||||||
|
|
||||||
NodeType = NodeType;
|
NodeType = NodeType;
|
||||||
|
|
||||||
private profileNodes: GroupNode[] = [];
|
private nodeMap: Map<NodeType, GroupNode[]>;
|
||||||
private favoriteNodes: GroupNode[] = [];
|
|
||||||
private buddyNodes: GroupNode[] = [];
|
|
||||||
|
|
||||||
constructor() {
|
constructor(private changeDetectorRef: ChangeDetectorRef) {
|
||||||
this.treeControl = new FlatTreeControl<FlatNode>(
|
this.treeControl = new FlatTreeControl<FlatNode>(
|
||||||
(node) => node.level,
|
(node) => node.level,
|
||||||
(node) => node.expandable
|
(node) => node.expandable
|
||||||
|
@ -276,11 +281,15 @@ export class ExpansionListComponent implements OnInit, OnDestroy {
|
||||||
NodeType.Profile !== node.node.nodeType && 0 === node.level;
|
NodeType.Profile !== node.node.nodeType && 0 === node.level;
|
||||||
|
|
||||||
private refreshNodes() {
|
private refreshNodes() {
|
||||||
this.rootNodeList = [
|
const rootNode: GroupNode[] = [];
|
||||||
...this.profileNodes,
|
|
||||||
...this.favoriteNodes,
|
for (const nodeType of this.displayOrder) {
|
||||||
...this.buddyNodes
|
const subNode = this.nodeMap.get(nodeType);
|
||||||
];
|
if (!!subNode && 0 < subNode.length) {
|
||||||
this.dataSource.data = this.rootNodeList;
|
rootNode.push(...subNode);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.dataSource.data = rootNode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-ui-organization",
|
"name": "@ucap/ng-ui-organization",
|
||||||
"version": "0.0.2",
|
"version": "0.0.2",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/cdk": "^9.0.0",
|
"@angular/cdk": "^9.0.0",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-ui-skin-default",
|
"name": "@ucap/ng-ui-skin-default",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {}
|
"peerDependencies": {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-ui",
|
"name": "@ucap/ng-ui",
|
||||||
"version": "0.0.4",
|
"version": "0.0.4",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/cdk": "^9.0.0",
|
"@angular/cdk": "^9.0.0",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-web-socket",
|
"name": "@ucap/ng-web-socket",
|
||||||
"version": "0.0.2",
|
"version": "0.0.2",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "@ucap/ng-web-storage",
|
"name": "@ucap/ng-web-storage",
|
||||||
"version": "0.0.3",
|
"version": "0.0.3",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://10.81.13.221:8081/nexus/repository/npm-ucap/"
|
"registry": "https://nexus.loafle.net/repository/npm-ucap/"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.0.2",
|
"@angular/common": "^9.0.2",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user