raise-common-lib 0.0.64 → 0.0.65
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/bundles/raise-common-lib.umd.js +22 -8
- package/bundles/raise-common-lib.umd.js.map +1 -1
- package/bundles/raise-common-lib.umd.min.js +1 -1
- package/bundles/raise-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/layout/rs-aside/index.component.js +20 -8
- package/esm2015/lib/layout/rs-header/index.component.js +2 -2
- package/esm5/lib/layout/rs-aside/index.component.js +22 -8
- package/esm5/lib/layout/rs-header/index.component.js +2 -2
- package/fesm2015/raise-common-lib.js +20 -8
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +22 -8
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/layout/rs-aside/index.component.d.ts +2 -0
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
|
@@ -19487,7 +19487,7 @@ var RSHeaderComponent = /** @class */ (function () {
|
|
|
19487
19487
|
RSHeaderComponent.decorators = [
|
|
19488
19488
|
{ type: Component, args: [{
|
|
19489
19489
|
selector: "rs-header",
|
|
19490
|
-
template: "<div class=\"rs-header\">\r\n <div class=\"logo-wrap\">\r\n <div class=\"toggle-menu-wrap\">\r\n <img\r\n class=\"toggle-menu\"\r\n src=\"../../../assets/img/toggle-menu-icon.svg\"\r\n (click)=\"onToggleMenu()\"\r\n />\r\n </div>\r\n <img\r\n class=\"logo\"\r\n src=\"../../../assets/img/raise_logo_main.svg\"\r\n alt=\"logo\"\r\n />\r\n </div>\r\n <div class=\"content-header-wrap\">\r\n <div class=\"bread-crumbs-wrap\">\r\n <ng-content select=\"[breadCrumbs]\"></ng-content>\r\n </div>\r\n <div class=\"rs-toolbar-wrap\">\r\n <div class=\"quick-icon-group\">\r\n <ng-content select=\"[toolbar]\"></ng-content>\r\n </div>\r\n <div class=\"line\"></div>\r\n <div class=\"langulage-wrap\">\r\n <button\r\n class=\"e-btn text\"\r\n ejs-dropdownbutton\r\n [items]=\"langOptions\"\r\n (select)=\"selectLanguage($event)\"\r\n >\r\n {{ currentLang.text }}\r\n </button>\r\n </div>\r\n <div class=\"line\"></div>\r\n <div class=\"last-login-wrap\">\r\n {{ translation?.LAST_LOGIN || \"Last Login\" }}:\r\n {{ lastLoginTime | date : \"dd MMM yy h:mm a\" }}\r\n </div
|
|
19490
|
+
template: "<div class=\"rs-header\">\r\n <div class=\"logo-wrap\">\r\n <div class=\"toggle-menu-wrap\">\r\n <img\r\n class=\"toggle-menu\"\r\n src=\"../../../assets/img/toggle-menu-icon.svg\"\r\n (click)=\"onToggleMenu()\"\r\n />\r\n </div>\r\n <img\r\n class=\"logo\"\r\n src=\"../../../assets/img/raise_logo_main.svg\"\r\n alt=\"logo\"\r\n />\r\n </div>\r\n <div class=\"content-header-wrap\">\r\n <div class=\"bread-crumbs-wrap\">\r\n <ng-content select=\"[breadCrumbs]\"></ng-content>\r\n </div>\r\n <div class=\"rs-toolbar-wrap\">\r\n <div class=\"quick-icon-group\">\r\n <ng-content select=\"[toolbar]\"></ng-content>\r\n </div>\r\n <div class=\"line\"></div>\r\n <div class=\"langulage-wrap\">\r\n <button\r\n class=\"e-btn text\"\r\n ejs-dropdownbutton\r\n [items]=\"langOptions\"\r\n (select)=\"selectLanguage($event)\"\r\n >\r\n {{ currentLang.text }}\r\n </button>\r\n </div>\r\n <!-- <div class=\"line\"></div>\r\n <div class=\"last-login-wrap\">\r\n {{ translation?.LAST_LOGIN || \"Last Login\" }}:\r\n {{ lastLoginTime | date : \"dd MMM yy h:mm a\" }}\r\n </div> -->\r\n <div class=\"line\"></div>\r\n <div class=\"user-info-wrap\">\r\n <ng-content select=\"[userInfo]\"></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
19491
19491
|
styles: [".rs-header{height:50px;background-color:var(--rs-container-bg);display:flex;justify-content:space-between}.rs-header .logo-wrap{width:240px;display:flex;padding:12px 0 0 20px}.rs-header .logo-wrap .toggle-menu-wrap{cursor:pointer;margin-right:8px;margin-top:2px;width:24px;height:24px}.rs-header .logo-wrap .toggle-menu-wrap:hover{background:#1364b30d;border-radius:6px}.rs-header .logo-wrap .logo{width:77px;height:32px}.rs-header .content-header-wrap{display:flex;justify-content:space-between;align-items:center;flex:1}.rs-header .bread-crumbs-wrap{padding-left:16px}.rs-header .rs-toolbar-wrap,.rs-header .rs-toolbar-wrap .quick-icon-group{display:flex;align-items:center}.rs-header .rs-toolbar-wrap .quick-icon-group ::ng-deep .header-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center;margin-right:24px;cursor:pointer}.rs-header .rs-toolbar-wrap .quick-icon-group ::ng-deep .header-icon svg{width:16px;height:16px;color:#6c7c90;stroke:#6c7c90}.rs-header .rs-toolbar-wrap .quick-icon-group ::ng-deep .header-icon:hover{border-radius:4px;background:rgba(31,123,255,.04)}.rs-header .rs-toolbar-wrap .quick-icon-group ::ng-deep .header-icon:hover svg{color:#1f7bff;stroke:#1f7bff}.rs-header .rs-toolbar-wrap .line{width:1px;height:24px;background-color:var(--rs-border-color)}.rs-header .rs-toolbar-wrap .langulage-wrap{padding:0 16px}.rs-header .rs-toolbar-wrap .last-login-wrap{padding:0 16px;color:var(--rs-labels-color);font-size:11px;font-weight:400;line-height:1}.rs-header .rs-toolbar-wrap .user-info-wrap{padding:0 20px 0 16px}"]
|
|
19492
19492
|
}] }
|
|
19493
19493
|
];
|
|
@@ -19664,8 +19664,11 @@ var RSAsideComponent = /** @class */ (function () {
|
|
|
19664
19664
|
function RSAsideComponent(router) {
|
|
19665
19665
|
this.router = router;
|
|
19666
19666
|
this.toggleMenu = new EventEmitter();
|
|
19667
|
+
this.navClick = new EventEmitter();
|
|
19667
19668
|
this.isCollapsed = false; // 接收输入属性
|
|
19668
19669
|
// 接收输入属性
|
|
19670
|
+
this.customNavClick = false; // 接收输入属性
|
|
19671
|
+
// 接收输入属性
|
|
19669
19672
|
this.navList = [];
|
|
19670
19673
|
this.relationStart = [];
|
|
19671
19674
|
this.currentNav = "";
|
|
@@ -19696,7 +19699,9 @@ var RSAsideComponent = /** @class */ (function () {
|
|
|
19696
19699
|
* @param {?} item
|
|
19697
19700
|
* @return {?}
|
|
19698
19701
|
*/
|
|
19699
|
-
function (item) {
|
|
19702
|
+
function (item) {
|
|
19703
|
+
return _this.router.url.startsWith(item.url);
|
|
19704
|
+
}));
|
|
19700
19705
|
if (idx !== -1) {
|
|
19701
19706
|
_this.currentNav = _this.relationStart[idx].target;
|
|
19702
19707
|
}
|
|
@@ -19714,13 +19719,16 @@ var RSAsideComponent = /** @class */ (function () {
|
|
|
19714
19719
|
* @return {?}
|
|
19715
19720
|
*/
|
|
19716
19721
|
function (item) {
|
|
19717
|
-
this.
|
|
19718
|
-
|
|
19719
|
-
|
|
19720
|
-
|
|
19721
|
-
|
|
19722
|
-
this.
|
|
19722
|
+
if (!this.customNavClick) {
|
|
19723
|
+
this.currentNav = item.url;
|
|
19724
|
+
this.router.navigate([item.url], { state: { title: item.label } });
|
|
19725
|
+
/** @type {?} */
|
|
19726
|
+
var screenWidth = window.innerWidth;
|
|
19727
|
+
if (screenWidth <= 992 && this.isCollapsed) {
|
|
19728
|
+
this.toggleMenu.emit(false);
|
|
19729
|
+
}
|
|
19723
19730
|
}
|
|
19731
|
+
this.navClick.emit(item);
|
|
19724
19732
|
};
|
|
19725
19733
|
RSAsideComponent.decorators = [
|
|
19726
19734
|
{ type: Component, args: [{
|
|
@@ -19735,7 +19743,9 @@ var RSAsideComponent = /** @class */ (function () {
|
|
|
19735
19743
|
]; };
|
|
19736
19744
|
RSAsideComponent.propDecorators = {
|
|
19737
19745
|
toggleMenu: [{ type: Output }],
|
|
19746
|
+
navClick: [{ type: Output }],
|
|
19738
19747
|
isCollapsed: [{ type: Input }],
|
|
19748
|
+
customNavClick: [{ type: Input }],
|
|
19739
19749
|
navList: [{ type: Input }],
|
|
19740
19750
|
relationStart: [{ type: Input }]
|
|
19741
19751
|
};
|
|
@@ -19745,8 +19755,12 @@ if (false) {
|
|
|
19745
19755
|
/** @type {?} */
|
|
19746
19756
|
RSAsideComponent.prototype.toggleMenu;
|
|
19747
19757
|
/** @type {?} */
|
|
19758
|
+
RSAsideComponent.prototype.navClick;
|
|
19759
|
+
/** @type {?} */
|
|
19748
19760
|
RSAsideComponent.prototype.isCollapsed;
|
|
19749
19761
|
/** @type {?} */
|
|
19762
|
+
RSAsideComponent.prototype.customNavClick;
|
|
19763
|
+
/** @type {?} */
|
|
19750
19764
|
RSAsideComponent.prototype.navList;
|
|
19751
19765
|
/** @type {?} */
|
|
19752
19766
|
RSAsideComponent.prototype.relationStart;
|