raise-common-lib 0.0.27 → 0.0.28

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.
@@ -1232,6 +1232,7 @@ var RsPageListComponent = /** @class */ (function () {
1232
1232
  function RsPageListComponent() {
1233
1233
  this.customPageTitle = false;
1234
1234
  this.isInner = false;
1235
+ this.hasWholeToolbarSlot = false;
1235
1236
  }
1236
1237
  /**
1237
1238
  * @return {?}
@@ -1248,6 +1249,16 @@ var RsPageListComponent = /** @class */ (function () {
1248
1249
  _this.onSeach();
1249
1250
  }), 300);
1250
1251
  };
1252
+ /**
1253
+ * @return {?}
1254
+ */
1255
+ RsPageListComponent.prototype.ngAfterContentInit = /**
1256
+ * @return {?}
1257
+ */
1258
+ function () {
1259
+ // 检测是否传入了 wholeToolbarSlot
1260
+ this.hasWholeToolbarSlot = !!this.wholeToolbarSlot;
1261
+ };
1251
1262
  /**
1252
1263
  * @return {?}
1253
1264
  */
@@ -1269,12 +1280,13 @@ var RsPageListComponent = /** @class */ (function () {
1269
1280
  RsPageListComponent.decorators = [
1270
1281
  { type: Component, args: [{
1271
1282
  selector: 'rs-page-list',
1272
- template: "<div class=\"rs-page-list-wrap\" [ngClass]=\"{ 'is-not-inner': !isInner }\">\r\n <ng-container *ngIf=\"customPageTitle; else defaultTitle\">\r\n <ng-content select=\"[titleSlot]\"></ng-content>\r\n </ng-container>\r\n <ng-template #defaultTitle>\r\n <div class=\"rs-page-title\" *ngIf=\"pageTitle\">{{ pageTitle }}</div>\r\n </ng-template>\r\n <div class=\"rs-content-wrap\">\r\n <div class=\"rs-toolbar-wrap\">\r\n <div class=\"rs-left-col\">\r\n <ng-content select=\"[leftToolbarBtnSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-right-col\">\r\n <ng-content select=\"[rightToolbarBtnSlot]\"></ng-content>\r\n <div class=\"rs-search-input\">\r\n <ejs-textbox\r\n type=\"text\"\r\n class=\"e-input\"\r\n [(ngModel)]=\"searchValue\"\r\n (input)=\"onInput()\"\r\n placeholder=\"Search all fields\"\r\n [showClearButton]=\"true\"\r\n autocomplete=\"off\"\r\n ></ejs-textbox>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"rs-grid-wrap\">\r\n <ng-content select=\"[gridSlot]\"></ng-content>\r\n </div>\r\n </div>\r\n</div>\r\n",
1283
+ template: "<div class=\"rs-page-list-wrap\" [ngClass]=\"{ 'is-not-inner': !isInner }\">\r\n <ng-container *ngIf=\"customPageTitle; else defaultTitle\">\r\n <ng-content select=\"[titleSlot]\"></ng-content>\r\n </ng-container>\r\n <ng-template #defaultTitle>\r\n <div class=\"rs-page-title\" *ngIf=\"pageTitle\">{{ pageTitle }}</div>\r\n </ng-template>\r\n <div class=\"rs-content-wrap\">\r\n <div class=\"rs-toolbar-wrap\">\r\n <ng-content select=\"[wholeToolbarSlot]\"></ng-content>\r\n <div class=\"rs-left-col\" *ngIf=\"!hasWholeToolbarSlot\">\r\n <ng-content select=\"[leftToolbarBtnSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-right-col\" *ngIf=\"!hasWholeToolbarSlot\">\r\n <ng-content select=\"[rightToolbarBtnSlot]\"></ng-content>\r\n <div class=\"rs-search-input\">\r\n <ejs-textbox\r\n type=\"text\"\r\n class=\"e-input\"\r\n [(ngModel)]=\"searchValue\"\r\n (input)=\"onInput()\"\r\n placeholder=\"Search all fields\"\r\n [showClearButton]=\"true\"\r\n autocomplete=\"off\"\r\n ></ejs-textbox>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"rs-grid-wrap\">\r\n <ng-content select=\"[gridSlot]\"></ng-content>\r\n </div>\r\n </div>\r\n</div>\r\n",
1273
1284
  styles: [".rs-page-list-wrap{height:100%;display:flex;flex-direction:column;position:relative;margin:0 auto;max-width:1885px}.rs-page-list-wrap .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-page-list-wrap .rs-content-wrap{display:flex;flex-direction:column;flex:1;height:0}.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-left-col,.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-right-col{display:flex;gap:12px}.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-left-col ::ng-deep .e-btn,.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-right-col ::ng-deep .e-btn{height:28px}.rs-page-list-wrap .rs-content-wrap .rs-grid-wrap{flex:1;height:0}.rs-page-list-wrap.is-not-inner .rs-content-wrap{border-radius:15px;padding:12px 20px;background:#fff;border:1px solid var(--rs-border-color);box-shadow:0 0 4px 0 rgba(0,0,0,.1)}.rs-page-list-wrap .rs-search-input{width:240px}.rs-page-list-wrap .rs-search-input ::ng-deep .e-input-group{border-radius:14px!important}.rs-page-list-wrap .rs-search-input ::ng-deep .e-input-group.e-input-focus,.rs-page-list-wrap .rs-search-input ::ng-deep .e-input-group:hover{box-shadow:0 0 3px 0 rgba(31,123,255,.4)!important;border-color:var(--rs-input-hover-border-color)!important}.rs-page-list-wrap .rs-search-input ::ng-deep .e-input-group.e-input-focus input.e-input,.rs-page-list-wrap .rs-search-input ::ng-deep .e-input-group:hover input.e-input{box-shadow:none!important}.rs-page-list-wrap .rs-search-input ::ng-deep .e-input-group input.e-input{width:calc(100% - 50px);height:26px}.rs-page-list-wrap .rs-search-input ::ng-deep .e-input-group input.e-input:hover{box-shadow:none!important}.rs-page-list-wrap .rs-search-input ::ng-deep .e-input-group::before{content:\"\"!important;margin:6px 0 0 8px;display:block;width:16px;height:16px;background-image:url(/assets/img/search.svg);background-size:cover;background-position:center}"]
1274
1285
  }] }
1275
1286
  ];
1276
1287
  RsPageListComponent.propDecorators = {
1277
1288
  gridContent: [{ type: ContentChild, args: [CommonGridComponent, { static: true },] }],
1289
+ wholeToolbarSlot: [{ type: ContentChild, args: ['wholeToolbarSlot', { static: true },] }],
1278
1290
  pageTitle: [{ type: Input }],
1279
1291
  customPageTitle: [{ type: Input }],
1280
1292
  isInner: [{ type: Input }]
@@ -1285,6 +1297,8 @@ if (false) {
1285
1297
  /** @type {?} */
1286
1298
  RsPageListComponent.prototype.gridContent;
1287
1299
  /** @type {?} */
1300
+ RsPageListComponent.prototype.wholeToolbarSlot;
1301
+ /** @type {?} */
1288
1302
  RsPageListComponent.prototype.pageTitle;
1289
1303
  /** @type {?} */
1290
1304
  RsPageListComponent.prototype.customPageTitle;
@@ -1296,6 +1310,8 @@ if (false) {
1296
1310
  */
1297
1311
  RsPageListComponent.prototype.debouncedInput;
1298
1312
  /** @type {?} */
1313
+ RsPageListComponent.prototype.hasWholeToolbarSlot;
1314
+ /** @type {?} */
1299
1315
  RsPageListComponent.prototype.searchValue;
1300
1316
  }
1301
1317
 
@@ -2020,6 +2036,14 @@ var MultiTabComponent = /** @class */ (function () {
2020
2036
  }
2021
2037
  }
2022
2038
  }));
2039
+ };
2040
+ /**
2041
+ * @return {?}
2042
+ */
2043
+ MultiTabComponent.prototype.ngAfterViewInit = /**
2044
+ * @return {?}
2045
+ */
2046
+ function () {
2023
2047
  this.setEllipsisTitle();
2024
2048
  };
2025
2049
  /**