raise-common-lib 0.0.102 → 0.0.104
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 +13 -6
- 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/nav-card-group/index.component.js +15 -8
- package/esm5/lib/layout/nav-card-group/index.component.js +15 -8
- package/fesm2015/raise-common-lib.js +13 -6
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +13 -6
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/layout/nav-card-group/index.component.d.ts +3 -1
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
|
@@ -3779,9 +3779,10 @@ if (false) {
|
|
|
3779
3779
|
var RSNavCardGroupComponent = /** @class */ (function () {
|
|
3780
3780
|
function RSNavCardGroupComponent(router) {
|
|
3781
3781
|
this.router = router;
|
|
3782
|
-
|
|
3783
|
-
// navClick = new EventEmitter<any>();
|
|
3782
|
+
this.navClick = new EventEmitter();
|
|
3784
3783
|
this.navList = [];
|
|
3784
|
+
this.customNavClick = false; // 接收输入属性
|
|
3785
|
+
// 接收输入属性
|
|
3785
3786
|
this.title = "";
|
|
3786
3787
|
}
|
|
3787
3788
|
/**
|
|
@@ -3790,8 +3791,7 @@ var RSNavCardGroupComponent = /** @class */ (function () {
|
|
|
3790
3791
|
RSNavCardGroupComponent.prototype.ngOnInit = /**
|
|
3791
3792
|
* @return {?}
|
|
3792
3793
|
*/
|
|
3793
|
-
function () {
|
|
3794
|
-
};
|
|
3794
|
+
function () { };
|
|
3795
3795
|
/**
|
|
3796
3796
|
* @param {?} item
|
|
3797
3797
|
* @return {?}
|
|
@@ -3801,14 +3801,15 @@ var RSNavCardGroupComponent = /** @class */ (function () {
|
|
|
3801
3801
|
* @return {?}
|
|
3802
3802
|
*/
|
|
3803
3803
|
function (item) {
|
|
3804
|
-
if (
|
|
3804
|
+
if (!this.customNavClick) {
|
|
3805
3805
|
this.router.navigate([item.url], { state: { title: item.title } });
|
|
3806
3806
|
}
|
|
3807
|
+
this.navClick.emit(item);
|
|
3807
3808
|
};
|
|
3808
3809
|
RSNavCardGroupComponent.decorators = [
|
|
3809
3810
|
{ type: Component, args: [{
|
|
3810
3811
|
selector: "nav-card-group",
|
|
3811
|
-
template: "<div class=\"rs-setting\">\r\n <h1 class=\"rs-page-title\">{{ title }}</h1>\r\n <div class=\"setting-content\">\r\n <div\r\n class=\"setting-group-card\"\r\n *ngFor=\"let group of navList\"\r\n [ngClass]=\"{ pointer: !group.subList || !group.subList.length }\"\r\n (click)=\"onNavClick(group)\"\r\n >\r\n <header class=\"setting-card-header\">\r\n <div class=\"setting-card-logo\">\r\n <img [src]=\"group.img\" alt=\"\" />\r\n </div>\r\n <h4 class=\"setting-card-title\">{{ group.title }}</h4>\r\n <div\r\n class=\"setting-card-sub-title\"\r\n *ngIf=\"!group.subList || !group.subList.length\"\r\n >\r\n {{ group.subTitle }}\r\n </div>\r\n </header>\r\n <div\r\n class=\"setting-card-desc\"\r\n *ngIf=\"!group.subList || !group.subList.length\"\r\n >\r\n {{ group.desc }}\r\n </div>\r\n <div\r\n class=\"setting-item\"\r\n *ngFor=\"let item of group.subList\"\r\n (click)=\"onNavClick(item)\"\r\n >\r\n {{ item.title }}\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
3812
|
+
template: "<div class=\"rs-setting\">\r\n <h1 class=\"rs-page-title\">{{ title }}</h1>\r\n <div class=\"setting-content\">\r\n <div\r\n class=\"setting-group-card\"\r\n *ngFor=\"let group of navList\"\r\n [ngClass]=\"{ pointer: !group.subList || !group.subList.length }\"\r\n (click)=\"!group.subList || !group.subList.length && onNavClick(group)\"\r\n >\r\n <header class=\"setting-card-header\">\r\n <div class=\"setting-card-logo\">\r\n <img [src]=\"group.img\" alt=\"\" />\r\n </div>\r\n <h4 class=\"setting-card-title\">{{ group.title }}</h4>\r\n <div\r\n class=\"setting-card-sub-title\"\r\n *ngIf=\"!group.subList || !group.subList.length\"\r\n >\r\n {{ group.subTitle }}\r\n </div>\r\n </header>\r\n <div\r\n class=\"setting-card-desc\"\r\n *ngIf=\"!group.subList || !group.subList.length\"\r\n >\r\n {{ group.desc }}\r\n </div>\r\n <div\r\n class=\"setting-item\"\r\n *ngFor=\"let item of group.subList\"\r\n (click)=\"onNavClick(item)\"\r\n >\r\n {{ item.title }}\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
3812
3813
|
styles: [".rs-setting{height:100%;display:flex;flex-direction:column;position:relative;margin:0 auto;max-width:1885px}.rs-setting .rs-page-title{font-family:var(--rs-font-family);font-size:var(--rs-page-title-font-size);font-weight:700;text-align:left;color:var(--rs-page-title-color);display:flex;align-items:center;padding:16px 8px 12px 20px}.rs-setting .setting-content{flex:1;height:0;overflow:auto;display:flex;flex-flow:row wrap;gap:20px;margin:auto;max-width:1886px;padding:4px 20px 40px}.rs-setting .setting-content .setting-group-card{width:100%;min-width:320px;padding:0 12px 16px;border-radius:10px;border:1px solid #eaedf0;background-color:#fff;display:flex;flex-flow:column nowrap}.rs-setting .setting-content .setting-group-card.pointer{cursor:pointer}.rs-setting .setting-content .setting-group-card .setting-card-header{padding:12px 8px;display:flex;flex-flow:column nowrap}.rs-setting .setting-content .setting-group-card .setting-card-header .setting-card-logo{display:flex;flex-flow:column nowrap;gap:4px}.rs-setting .setting-content .setting-group-card .setting-card-header .setting-card-logo img{width:24px;height:24px}.rs-setting .setting-content .setting-group-card .setting-card-header .setting-card-logo::after{content:\" \";width:24px;height:3px;background-color:#ff9618;border-radius:2px}.rs-setting .setting-content .setting-group-card .setting-card-header .setting-card-title{padding:0;margin:12px 0 0;color:#1f3f5c;font-family:Arial;font-size:15px;font-style:normal;font-weight:700;line-height:18px}.rs-setting .setting-content .setting-group-card .setting-card-header .setting-card-sub-title{color:#6c7c90;font-family:Arial;font-size:12px;font-style:normal;font-weight:400;line-height:14px;margin-top:6px}.rs-setting .setting-content .setting-group-card .setting-card-desc{padding:6px 8px;color:#44566c;font-family:Arial;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.rs-setting .setting-content .setting-group-card .setting-item{padding:6px 8px;border-radius:4px;cursor:pointer;color:#44566c;font-family:Arial;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.rs-setting .setting-content .setting-group-card .setting-item:hover{background-color:#1364b30d}@media screen and (min-width:741px){.rs-setting .setting-content .setting-group-card{width:calc((100% - 20px)/ 2)}}@media screen and (min-width:1297px){.rs-setting .setting-content .setting-group-card{width:calc((100% - 20px * 2)/ 3)}}@media screen and (min-width:1632px){.rs-setting .setting-content .setting-group-card{width:calc((100% - 20px * 3)/ 4)}}@media screen and (min-width:1972px){.rs-setting .setting-content .setting-group-card{width:calc((100% - 20px * 4)/ 5)}}"]
|
|
3813
3814
|
}] }
|
|
3814
3815
|
];
|
|
@@ -3817,15 +3818,21 @@ var RSNavCardGroupComponent = /** @class */ (function () {
|
|
|
3817
3818
|
{ type: Router }
|
|
3818
3819
|
]; };
|
|
3819
3820
|
RSNavCardGroupComponent.propDecorators = {
|
|
3821
|
+
navClick: [{ type: Output }],
|
|
3820
3822
|
navList: [{ type: Input }],
|
|
3823
|
+
customNavClick: [{ type: Input }],
|
|
3821
3824
|
title: [{ type: Input }]
|
|
3822
3825
|
};
|
|
3823
3826
|
return RSNavCardGroupComponent;
|
|
3824
3827
|
}());
|
|
3825
3828
|
if (false) {
|
|
3829
|
+
/** @type {?} */
|
|
3830
|
+
RSNavCardGroupComponent.prototype.navClick;
|
|
3826
3831
|
/** @type {?} */
|
|
3827
3832
|
RSNavCardGroupComponent.prototype.navList;
|
|
3828
3833
|
/** @type {?} */
|
|
3834
|
+
RSNavCardGroupComponent.prototype.customNavClick;
|
|
3835
|
+
/** @type {?} */
|
|
3829
3836
|
RSNavCardGroupComponent.prototype.title;
|
|
3830
3837
|
/** @type {?} */
|
|
3831
3838
|
RSNavCardGroupComponent.prototype.router;
|