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.
@@ -3971,9 +3971,10 @@
3971
3971
  var RSNavCardGroupComponent = /** @class */ (function () {
3972
3972
  function RSNavCardGroupComponent(router) {
3973
3973
  this.router = router;
3974
- // @Output()
3975
- // navClick = new EventEmitter<any>();
3974
+ this.navClick = new core.EventEmitter();
3976
3975
  this.navList = [];
3976
+ this.customNavClick = false; // 接收输入属性
3977
+ // 接收输入属性
3977
3978
  this.title = "";
3978
3979
  }
3979
3980
  /**
@@ -3982,8 +3983,7 @@
3982
3983
  RSNavCardGroupComponent.prototype.ngOnInit = /**
3983
3984
  * @return {?}
3984
3985
  */
3985
- function () {
3986
- };
3986
+ function () { };
3987
3987
  /**
3988
3988
  * @param {?} item
3989
3989
  * @return {?}
@@ -3993,14 +3993,15 @@
3993
3993
  * @return {?}
3994
3994
  */
3995
3995
  function (item) {
3996
- if (item.url) {
3996
+ if (!this.customNavClick) {
3997
3997
  this.router.navigate([item.url], { state: { title: item.title } });
3998
3998
  }
3999
+ this.navClick.emit(item);
3999
4000
  };
4000
4001
  RSNavCardGroupComponent.decorators = [
4001
4002
  { type: core.Component, args: [{
4002
4003
  selector: "nav-card-group",
4003
- 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",
4004
+ 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",
4004
4005
  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)}}"]
4005
4006
  }] }
4006
4007
  ];
@@ -4009,15 +4010,21 @@
4009
4010
  { type: router.Router }
4010
4011
  ]; };
4011
4012
  RSNavCardGroupComponent.propDecorators = {
4013
+ navClick: [{ type: core.Output }],
4012
4014
  navList: [{ type: core.Input }],
4015
+ customNavClick: [{ type: core.Input }],
4013
4016
  title: [{ type: core.Input }]
4014
4017
  };
4015
4018
  return RSNavCardGroupComponent;
4016
4019
  }());
4017
4020
  if (false) {
4021
+ /** @type {?} */
4022
+ RSNavCardGroupComponent.prototype.navClick;
4018
4023
  /** @type {?} */
4019
4024
  RSNavCardGroupComponent.prototype.navList;
4020
4025
  /** @type {?} */
4026
+ RSNavCardGroupComponent.prototype.customNavClick;
4027
+ /** @type {?} */
4021
4028
  RSNavCardGroupComponent.prototype.title;
4022
4029
  /** @type {?} */
4023
4030
  RSNavCardGroupComponent.prototype.router;