raise-common-lib 0.0.160 → 0.0.162

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.
Files changed (57) hide show
  1. package/bundles/raise-common-lib.umd.js +117 -85
  2. package/bundles/raise-common-lib.umd.js.map +1 -1
  3. package/bundles/raise-common-lib.umd.min.js +1 -1
  4. package/bundles/raise-common-lib.umd.min.js.map +1 -1
  5. package/{esm5/lib/layout → esm2015/lib/actions}/toolbar/constants.js +2 -2
  6. package/esm2015/lib/actions/toolbar/index.component.js +114 -0
  7. package/esm2015/lib/actions/toolbar-item/index.component.js +92 -0
  8. package/esm2015/lib/layout/rs-aside/index.component.js +11 -5
  9. package/esm2015/lib/layout/rs-header/index.component.js +7 -3
  10. package/esm2015/lib/raise-common-lib.module.js +3 -3
  11. package/esm2015/public-api.js +3 -3
  12. package/esm2015/raise-common-lib.js +1 -1
  13. package/{esm2015/lib/layout → esm5/lib/actions}/toolbar/constants.js +2 -2
  14. package/esm5/lib/actions/toolbar/index.component.js +121 -0
  15. package/esm5/lib/actions/toolbar-item/index.component.js +104 -0
  16. package/esm5/lib/layout/rs-aside/index.component.js +10 -5
  17. package/esm5/lib/layout/rs-header/index.component.js +7 -3
  18. package/esm5/lib/raise-common-lib.module.js +3 -3
  19. package/esm5/public-api.js +3 -3
  20. package/esm5/raise-common-lib.js +1 -1
  21. package/fesm2015/raise-common-lib.js +107 -74
  22. package/fesm2015/raise-common-lib.js.map +1 -1
  23. package/fesm5/raise-common-lib.js +117 -85
  24. package/fesm5/raise-common-lib.js.map +1 -1
  25. package/lib/{form → actions}/toolbar-item/index.component.d.ts +1 -0
  26. package/lib/layout/rs-aside/index.component.d.ts +3 -1
  27. package/lib/layout/rs-header/index.component.d.ts +1 -0
  28. package/package.json +1 -1
  29. package/public-api.d.ts +2 -2
  30. package/raise-common-lib.metadata.json +1 -1
  31. package/src/assets/img/toolbar-action-addFolder.svg +17 -0
  32. package/src/assets/img/toolbar-action-calculator.svg +11 -0
  33. package/src/assets/img/toolbar-action-collapse.svg +7 -0
  34. package/src/assets/img/toolbar-action-combine.svg +4 -0
  35. package/src/assets/img/toolbar-action-edit.svg +4 -0
  36. package/src/assets/img/toolbar-action-expand.svg +7 -0
  37. package/src/assets/img/toolbar-action-folderMove.svg +8 -0
  38. package/src/assets/img/toolbar-action-lock.svg +6 -0
  39. package/src/assets/img/toolbar-action-preview.svg +7 -0
  40. package/src/assets/img/toolbar-action-publish.svg +5 -0
  41. package/src/assets/img/toolbar-action-reminders.svg +10 -0
  42. package/src/assets/img/toolbar-action-rename.svg +7 -0
  43. package/src/assets/img/toolbar-action-saveSequence.svg +5 -0
  44. package/src/assets/img/toolbar-action-send-file.svg +5 -0
  45. package/src/assets/img/toolbar-action-settle.svg +7 -0
  46. package/src/assets/img/toolbar-action-share.svg +5 -0
  47. package/src/assets/img/toolbar-action-submitForApproval.svg +4 -0
  48. package/src/assets/img/toolbar-action-sync.svg +4 -0
  49. package/src/assets/img/toolbar-action-template.svg +6 -0
  50. package/src/assets/img/toolbar-action-workflow.svg +9 -0
  51. package/src/assets/style/reset/dropdown.scss +88 -0
  52. package/esm2015/lib/form/toolbar-item/index.component.js +0 -68
  53. package/esm2015/lib/layout/toolbar/index.component.js +0 -114
  54. package/esm5/lib/form/toolbar-item/index.component.js +0 -80
  55. package/esm5/lib/layout/toolbar/index.component.js +0 -121
  56. /package/lib/{layout → actions}/toolbar/constants.d.ts +0 -0
  57. /package/lib/{layout → actions}/toolbar/index.component.d.ts +0 -0
@@ -4333,7 +4333,7 @@
4333
4333
 
4334
4334
  /**
4335
4335
  * @fileoverview added by tsickle
4336
- * Generated from: lib/layout/toolbar/index.component.ts
4336
+ * Generated from: lib/actions/toolbar/index.component.ts
4337
4337
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4338
4338
  */
4339
4339
  var RSToolbarComponent = /** @class */ (function () {
@@ -4448,6 +4448,108 @@
4448
4448
  RSToolbarComponent.prototype.ref;
4449
4449
  }
4450
4450
 
4451
+ /**
4452
+ * @fileoverview added by tsickle
4453
+ * Generated from: lib/actions/toolbar-item/index.component.ts
4454
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4455
+ */
4456
+ var ToolbarItemComponent = /** @class */ (function () {
4457
+ function ToolbarItemComponent() {
4458
+ this.children = [];
4459
+ this.hideArrow = false;
4460
+ this.disabledOptions = {};
4461
+ this.ImageType = [
4462
+ "Add",
4463
+ "Delete",
4464
+ "Import",
4465
+ "Export",
4466
+ "Upload",
4467
+ "Download",
4468
+ "Duplicate",
4469
+ "Refresh",
4470
+ "AddFolder",
4471
+ "Collapse",
4472
+ "Combine",
4473
+ "Edit",
4474
+ "Lock",
4475
+ "Expand",
4476
+ "MoveTo",
4477
+ "Publish",
4478
+ "Preview",
4479
+ "ReCalculate",
4480
+ "Sync",
4481
+ "Share",
4482
+ "Rename",
4483
+ "SaveSequence",
4484
+ "SubmitForApproval",
4485
+ "SendToControlPanel",
4486
+ "SetReminders",
4487
+ "Settle",
4488
+ "Template",
4489
+ "Workflow",
4490
+ ];
4491
+ }
4492
+ Object.defineProperty(ToolbarItemComponent.prototype, "hostDisabled", {
4493
+ get: /**
4494
+ * @return {?}
4495
+ */
4496
+ function () {
4497
+ return !!this.disabled;
4498
+ },
4499
+ enumerable: true,
4500
+ configurable: true
4501
+ });
4502
+ // 暴露方法供父组件调用
4503
+ // 暴露方法供父组件调用
4504
+ /**
4505
+ * @return {?}
4506
+ */
4507
+ ToolbarItemComponent.prototype.getWidth =
4508
+ // 暴露方法供父组件调用
4509
+ /**
4510
+ * @return {?}
4511
+ */
4512
+ function () {
4513
+ return this.buttonElement.nativeElement.offsetWidth;
4514
+ };
4515
+ ToolbarItemComponent.decorators = [
4516
+ { type: core.Component, args: [{
4517
+ selector: "rs-toolbar-item",
4518
+ template: "<button\r\n *ngIf=\"!children.length\"\r\n class=\"toolbar-action-item e-btn text\"\r\n #buttonElement\r\n [disabled]=\"!!disabled\"\r\n>\r\n <span class=\"toolbar-action-image\" [attr.data-type]=\"image\">\r\n <img *ngIf=\"!ImageType.includes(image)\" [src]=\"image\" />\r\n </span>\r\n <span>{{ text }}</span>\r\n</button>\r\n\r\n<button\r\n *ngIf=\"children.length\"\r\n class=\"toolbar-action-item e-btn text\"\r\n #buttonElement\r\n mat-menu-item\r\n [matMenuTriggerFor]=\"menu\"\r\n [disabled]=\"!!disabled\"\r\n>\r\n <span class=\"toolbar-action-image\" [attr.data-type]=\"image\">\r\n <img *ngIf=\"!ImageType.includes(image)\" [src]=\"image\" />\r\n </span>\r\n <span>{{ text }}</span>\r\n <span class=\"toolbar-action-arrow\" *ngIf=\"!hideArrow\">\r\n <img src=\"assets/img/down-arrow.svg\" />\r\n </span>\r\n</button>\r\n<mat-menu #menu=\"matMenu\">\r\n <ng-container *ngFor=\"let button of children\">\r\n <button\r\n class=\"toolbar-action-item e-btn text\"\r\n [disabled]=\"(button.key && disabledOptions[button.key]) || false\"\r\n (click)=\"button.action()\"\r\n >\r\n <span class=\"toolbar-action-image\" [attr.data-type]=\"button.image\">\r\n <img *ngIf=\"!ImageType.includes(button.image)\" [src]=\"button.image\" />\r\n </span>\r\n <span>{{ button.text }}</span>\r\n </button>\r\n </ng-container>\r\n</mat-menu>\r\n",
4519
+ styles: ["rs-toolbar-item.disabled{pointer-events:none}.toolbar-action-item{min-width:auto;padding:4px 8px}.toolbar-action-item .toolbar-action-image{height:16px;display:flex;flex-flow:row nowrap;justify-content:center;align-items:center}.toolbar-action-item .toolbar-action-image::before{display:block;width:16px}.toolbar-action-item .toolbar-action-image[data-type=Add]::before{content:url(/assets/img/toolbar-action-add.svg)}.toolbar-action-item .toolbar-action-image[data-type=Delete]::before{content:url(/assets/img/toolbar-action-delete.svg)}.toolbar-action-item .toolbar-action-image[data-type=Import]::before{content:url(/assets/img/toolbar-action-import.svg)}.toolbar-action-item .toolbar-action-image[data-type=Upload]::before{content:url(/assets/img/toolbar-action-upload.svg)}.toolbar-action-item .toolbar-action-image[data-type=Download]::before{content:url(/assets/img/toolbar-action-download.svg)}.toolbar-action-item .toolbar-action-image[data-type=Export]::before{content:url(/assets/img/toolbar-action-export.svg)}.toolbar-action-item .toolbar-action-image[data-type=Duplicate]::before{content:url(/assets/img/toolbar-action-duplicate.svg)}.toolbar-action-item .toolbar-action-image[data-type=Refresh]::before{content:url(/assets/img/toolbar-action-refresh.svg)}.toolbar-action-item .toolbar-action-image[data-type=AddFolder]::before{content:url(/assets/img/toolbar-action-addFolder.svg)}.toolbar-action-item .toolbar-action-image[data-type=Collapse]::before{content:url(/assets/img/toolbar-action-collapse.svg)}.toolbar-action-item .toolbar-action-image[data-type=Combine]::before{content:url(/assets/img/toolbar-action-combine.svg)}.toolbar-action-item .toolbar-action-image[data-type=Edit]::before{content:url(/assets/img/toolbar-action-edit.svg)}.toolbar-action-item .toolbar-action-image[data-type=Lock]::before{content:url(/assets/img/toolbar-action-lock.svg)}.toolbar-action-item .toolbar-action-image[data-type=Expand]::before{content:url(/assets/img/toolbar-action-expand.svg)}.toolbar-action-item .toolbar-action-image[data-type=MoveTo]::before{content:url(/assets/img/toolbar-action-folderMove.svg)}.toolbar-action-item .toolbar-action-image[data-type=Publish]::before{content:url(/assets/img/toolbar-action-publish.svg)}.toolbar-action-item .toolbar-action-image[data-type=Preview]::before{content:url(/assets/img/toolbar-action-preview.svg)}.toolbar-action-item .toolbar-action-image[data-type=ReCalculate]::before{content:url(/assets/img/toolbar-action-calculator.svg)}.toolbar-action-item .toolbar-action-image[data-type=Sync]::before{content:url(/assets/img/toolbar-action-sync.svg)}.toolbar-action-item .toolbar-action-image[data-type=Share]::before{content:url(/assets/img/toolbar-action-share.svg)}.toolbar-action-item .toolbar-action-image[data-type=Rename]::before{content:url(/assets/img/toolbar-action-rename.svg)}.toolbar-action-item .toolbar-action-image[data-type=SaveSequence]::before{content:url(/assets/img/toolbar-action-saveSequence.svg)}.toolbar-action-item .toolbar-action-image[data-type=SubmitForApproval]::before{content:url(/assets/img/toolbar-action-submitForApproval.svg)}.toolbar-action-item .toolbar-action-image[data-type=SendToControlPanel]::before{content:url(/assets/img/toolbar-action-send-file.svg)}.toolbar-action-item .toolbar-action-image[data-type=SetReminders]::before{content:url(/assets/img/toolbar-action-reminders.svg)}.toolbar-action-item .toolbar-action-image[data-type=Settle]::before{content:url(/assets/img/toolbar-action-settle.svg)}.toolbar-action-item .toolbar-action-image[data-type=Template]::before{content:url(/assets/img/toolbar-action-template.svg)}.toolbar-action-item .toolbar-action-image[data-type=Workflow]::before{content:url(/assets/img/toolbar-action-workflow.svg)}.toolbar-action-item .toolbar-action-image img{height:16px;display:block}.toolbar-action-item.e-btn{width:100%;justify-content:flex-start}.toolbar-action-item.mat-menu-item::after{display:none}"]
4520
+ }] }
4521
+ ];
4522
+ ToolbarItemComponent.propDecorators = {
4523
+ image: [{ type: core.Input, args: ["image",] }],
4524
+ text: [{ type: core.Input, args: ["text",] }],
4525
+ disabled: [{ type: core.Input, args: ["disabled",] }],
4526
+ children: [{ type: core.Input, args: ["children",] }],
4527
+ hideArrow: [{ type: core.Input, args: ["hideArrow",] }],
4528
+ disabledOptions: [{ type: core.Input }],
4529
+ buttonElement: [{ type: core.ViewChild, args: ["buttonElement", { static: false },] }],
4530
+ hostDisabled: [{ type: core.HostBinding, args: ["class.disabled",] }]
4531
+ };
4532
+ return ToolbarItemComponent;
4533
+ }());
4534
+ if (false) {
4535
+ /** @type {?} */
4536
+ ToolbarItemComponent.prototype.image;
4537
+ /** @type {?} */
4538
+ ToolbarItemComponent.prototype.text;
4539
+ /** @type {?} */
4540
+ ToolbarItemComponent.prototype.disabled;
4541
+ /** @type {?} */
4542
+ ToolbarItemComponent.prototype.children;
4543
+ /** @type {?} */
4544
+ ToolbarItemComponent.prototype.hideArrow;
4545
+ /** @type {?} */
4546
+ ToolbarItemComponent.prototype.disabledOptions;
4547
+ /** @type {?} */
4548
+ ToolbarItemComponent.prototype.buttonElement;
4549
+ /** @type {?} */
4550
+ ToolbarItemComponent.prototype.ImageType;
4551
+ }
4552
+
4451
4553
  /**
4452
4554
  * @fileoverview added by tsickle
4453
4555
  * Generated from: assets/language/ja.ts
@@ -21139,6 +21241,7 @@
21139
21241
  this.isCollapsed = false; // 接收输入属性
21140
21242
  // 接收输入属性
21141
21243
  this.lastLoginTime = new Date();
21244
+ this.appName = "";
21142
21245
  this.toggleMenu = new core.EventEmitter();
21143
21246
  this.changeLanguage = new core.EventEmitter();
21144
21247
  this._langOptions = [];
@@ -21210,8 +21313,8 @@
21210
21313
  RSHeaderComponent.decorators = [
21211
21314
  { type: core.Component, args: [{
21212
21315
  selector: "rs-header",
21213
- 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-header-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 && 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",
21214
- 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}@media (max-width:1200px){.rs-header .logo-wrap{width:auto}}.rs-header .content-header-wrap{display:flex;justify-content:space-between;align-items:center;flex:1;max-width:1886px;margin:0 auto}.rs-header .bread-crumbs-wrap{padding-left:16px}.rs-header .rs-header-toolbar-wrap,.rs-header .rs-header-toolbar-wrap .quick-icon-group{display:flex;align-items:center}.rs-header .rs-header-toolbar-wrap .quick-icon-group ::ng-deep .header-icon{width:32px;height:32px;display:flex;justify-content:center;align-items:center;margin-right:8px;cursor:pointer}.rs-header .rs-header-toolbar-wrap .quick-icon-group ::ng-deep .header-icon:last-child{margin-right:16px}.rs-header .rs-header-toolbar-wrap .quick-icon-group ::ng-deep .header-icon svg{width:24px;height:24px;color:#6c7c90;stroke:#6c7c90}.rs-header .rs-header-toolbar-wrap .quick-icon-group ::ng-deep .header-icon:hover{border-radius:4px;background:rgba(31,123,255,.04)}.rs-header .rs-header-toolbar-wrap .quick-icon-group ::ng-deep .header-icon:hover svg{color:#1f7bff;stroke:#1f7bff}.rs-header .rs-header-toolbar-wrap .line{width:1px;height:24px;background-color:var(--rs-border-color)}.rs-header .rs-header-toolbar-wrap .langulage-wrap{padding:0 16px}.rs-header .rs-header-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-header-toolbar-wrap .user-info-wrap{padding:0 20px 0 16px}"]
21316
+ 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 *ngIf=\"appName\" class=\"header-app-name\">{{ appName }}</div>\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-header-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 && 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",
21317
+ 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 .logo-wrap .header-app-name{font-size:24px;color:#15477f;margin-left:6px;margin-top:-8px}@media (max-width:1200px){.rs-header .logo-wrap{width:auto}}.rs-header .content-header-wrap{display:flex;justify-content:space-between;align-items:center;flex:1;max-width:1886px;margin:0 auto}.rs-header .bread-crumbs-wrap{padding-left:16px}.rs-header .rs-header-toolbar-wrap,.rs-header .rs-header-toolbar-wrap .quick-icon-group{display:flex;align-items:center}.rs-header .rs-header-toolbar-wrap .quick-icon-group ::ng-deep .header-icon{width:32px;height:32px;display:flex;justify-content:center;align-items:center;margin-right:8px;cursor:pointer}.rs-header .rs-header-toolbar-wrap .quick-icon-group ::ng-deep .header-icon:last-child{margin-right:16px}.rs-header .rs-header-toolbar-wrap .quick-icon-group ::ng-deep .header-icon svg{width:24px;height:24px;color:#6c7c90;stroke:#6c7c90}.rs-header .rs-header-toolbar-wrap .quick-icon-group ::ng-deep .header-icon:hover{border-radius:4px;background:rgba(31,123,255,.04)}.rs-header .rs-header-toolbar-wrap .quick-icon-group ::ng-deep .header-icon:hover svg{color:#1f7bff;stroke:#1f7bff}.rs-header .rs-header-toolbar-wrap .line{width:1px;height:24px;background-color:var(--rs-border-color)}.rs-header .rs-header-toolbar-wrap .langulage-wrap{padding:0 16px}.rs-header .rs-header-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-header-toolbar-wrap .user-info-wrap{padding:0 20px 0 16px}"]
21215
21318
  }] }
21216
21319
  ];
21217
21320
  /** @nocollapse */
@@ -21221,6 +21324,7 @@
21221
21324
  RSHeaderComponent.propDecorators = {
21222
21325
  isCollapsed: [{ type: core.Input }],
21223
21326
  lastLoginTime: [{ type: core.Input }],
21327
+ appName: [{ type: core.Input }],
21224
21328
  langOptions: [{ type: core.Input }],
21225
21329
  toggleMenu: [{ type: core.Output }],
21226
21330
  changeLanguage: [{ type: core.Output }]
@@ -21233,6 +21337,8 @@
21233
21337
  /** @type {?} */
21234
21338
  RSHeaderComponent.prototype.lastLoginTime;
21235
21339
  /** @type {?} */
21340
+ RSHeaderComponent.prototype.appName;
21341
+ /** @type {?} */
21236
21342
  RSHeaderComponent.prototype.toggleMenu;
21237
21343
  /** @type {?} */
21238
21344
  RSHeaderComponent.prototype.changeLanguage;
@@ -21458,8 +21564,9 @@
21458
21564
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
21459
21565
  */
21460
21566
  var RSAsideComponent = /** @class */ (function () {
21461
- function RSAsideComponent(router) {
21567
+ function RSAsideComponent(router, cf) {
21462
21568
  this.router = router;
21569
+ this.cf = cf;
21463
21570
  this.toggleMenu = new core.EventEmitter();
21464
21571
  this.navClick = new core.EventEmitter();
21465
21572
  this.isCollapsed = false; // 接收输入属性
@@ -21553,13 +21660,14 @@
21553
21660
  RSAsideComponent.decorators = [
21554
21661
  { type: core.Component, args: [{
21555
21662
  selector: "rs-aside",
21556
- template: "<div class=\"rs-aside\" [ngClass]=\"{ isCollapsed: isCollapsed }\">\r\n <div class=\"nav-list\">\r\n <div\r\n class=\"nav-group\"\r\n [ngClass]=\"group.class\"\r\n *ngFor=\"let group of navList\"\r\n >\r\n <div\r\n class=\"nav-item\"\r\n [ngClass]=\"{ isCurrent: currentNav === nav.url }\"\r\n *ngFor=\"let nav of group.navItems\"\r\n (click)=\"onNavClick(nav)\"\r\n >\r\n <div class=\"nav-item-inner\" *ngIf=\"nav.menuType === 'MENU'\">\r\n <ejs-tooltip\r\n [showTipPointer]=\"false\"\r\n *ngIf=\"isCollapsed; else originIcon\"\r\n >\r\n <ng-template #content>\r\n <div class=\"tooltip-content\">\r\n {{ nav.label }}\r\n </div>\r\n </ng-template>\r\n <mat-icon class=\"menu-icon\" [svgIcon]=\"nav.iconCode\"></mat-icon>\r\n </ejs-tooltip>\r\n <ng-template #originIcon>\r\n <mat-icon class=\"menu-icon\" [svgIcon]=\"nav.iconCode\"></mat-icon>\r\n </ng-template>\r\n <!-- <mat-icon class=\"menu-icon\" [svgIcon]=\"nav.iconCode\"></mat-icon> -->\r\n\r\n <span class=\"nav-text\" [ngClass]=\"{ isCollapsed: isCollapsed }\">{{\r\n nav.label\r\n }}</span>\r\n </div>\r\n <div class=\"dividing-line\" *ngIf=\"nav.menuType === 'LABEL'\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"bottom-iconbox\" [ngClass]=\"{ isCollapsed: isCollapsed }\">\r\n <ng-content select=\"[bottomIconBox]\"></ng-content>\r\n </div>\r\n</div>\r\n",
21557
- styles: [".rs-aside{display:flex;flex-direction:column;height:100%;width:240px;will-change:width;transition:width .3s;padding-right:20px}.rs-aside.isCollapsed{width:64px;padding-right:0}.rs-aside.isCollapsed .nav-list .nav-item .nav-item-inner{margin-right:12px}.rs-aside.isCollapsed .nav-list .nav-item .dividing-line{margin:8px 20px 8px 10px}.rs-aside .nav-list{padding-top:12px;flex:1;overflow:auto;height:0}.rs-aside .nav-list .nav-item{cursor:pointer;padding-left:11px}.rs-aside .nav-list .nav-item .nav-item-inner{height:32px;display:flex;align-items:center;padding:8px 8px 8px 12px}.rs-aside .nav-list .nav-item .nav-item-inner ::ng-deep .menu-icon{width:33px;height:16px;display:flex;align-items:center}.rs-aside .nav-list .nav-item .nav-item-inner ::ng-deep .menu-icon svg{width:16px;height:16px}.rs-aside .nav-list .nav-item .dividing-line{margin:8px 0 8px 10px;height:1px;background-color:rgba(219,225,231,.5)}.rs-aside .nav-list .nav-item:hover .nav-item-inner{border-radius:6px;background:rgba(31,123,255,.04)}.rs-aside .nav-list .nav-item .nav-text{color:#5f6f81;font-family:Arial;font-size:12px;font-weight:400;line-height:16px;transition:.3s;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;position:relative;top:1px}@media (min-width:993px){.rs-aside .nav-list .nav-item .nav-text.isCollapsed{opacity:0;width:0}}.rs-aside .nav-list .nav-item.isCurrent{position:relative}.rs-aside .nav-list .nav-item.isCurrent .nav-text{color:#44566c;font-weight:700}.rs-aside .nav-list .nav-item.isCurrent::before{content:\"\";position:absolute;left:4px;top:8px;width:3px;height:16px;background-color:#1364b3;border-radius:2px}.rs-aside .bottom-iconbox{padding:12px 20px;height:48px;display:flex;gap:12px}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center;border:1px solid #eaedf0;border-radius:24px;cursor:pointer}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon svg{width:16px;height:16px;color:#6c7c90;stroke:#6c7c90}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon.disabled{cursor:default;opacity:.5}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon:not(.disabled):hover{background-color:#fff}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon:not(.disabled):hover svg{color:#1f7bff;stroke:#1f7bff}@media (min-width:993px){.rs-aside .bottom-iconbox.isCollapsed{flex-direction:column;height:auto}}@media (max-width:992px){.rs-aside{width:0;position:absolute;height:calc(100% - 50px);z-index:10;background-color:var(--rs-container-bg);padding-right:0}.rs-aside .bottom-iconbox{display:none}.rs-aside.isCollapsed{width:240px;padding-right:16px}.rs-aside.isCollapsed .bottom-iconbox{display:flex}}"]
21663
+ template: "<div class=\"rs-aside\" [ngClass]=\"{ isCollapsed: isCollapsed }\">\r\n <div class=\"nav-list\">\r\n <div\r\n class=\"nav-group\"\r\n [ngClass]=\"group.class\"\r\n *ngFor=\"let group of navList\"\r\n >\r\n <div\r\n class=\"nav-item\"\r\n [ngClass]=\"{ isCurrent: currentNav === nav.url }\"\r\n *ngFor=\"let nav of group.navItems\"\r\n (click)=\"onNavClick(nav)\"\r\n >\r\n <div class=\"nav-item-inner\" *ngIf=\"nav.menuType === 'MENU'\">\r\n <ejs-tooltip\r\n [showTipPointer]=\"false\"\r\n *ngIf=\"isCollapsed; else originIcon\"\r\n >\r\n <ng-template #content>\r\n <div class=\"tooltip-content\">\r\n {{ nav.label }}\r\n </div>\r\n </ng-template>\r\n <mat-icon class=\"menu-icon\" [svgIcon]=\"nav.iconCode\"></mat-icon>\r\n </ejs-tooltip>\r\n <ng-template #originIcon>\r\n <mat-icon class=\"menu-icon\" [svgIcon]=\"nav.iconCode\"></mat-icon>\r\n </ng-template>\r\n <!-- <mat-icon class=\"menu-icon\" [svgIcon]=\"nav.iconCode\"></mat-icon> -->\r\n <ejs-tooltip\r\n [showTipPointer]=\"false\"\r\n *ngIf=\"nav.displayLabel !== nav.label; else originText\"\r\n >\r\n <ng-template #content>\r\n <div class=\"tooltip-content\">\r\n {{ nav.label }}\r\n </div>\r\n </ng-template>\r\n <span class=\"nav-text\" [ngClass]=\"{ isCollapsed: isCollapsed }\">{{\r\n nav.displayLabel\r\n }}</span>\r\n </ejs-tooltip>\r\n <ng-template #originText>\r\n <span class=\"nav-text\" [ngClass]=\"{ isCollapsed: isCollapsed }\">{{\r\n nav.label\r\n }}</span>\r\n </ng-template>\r\n </div>\r\n <div class=\"dividing-line\" *ngIf=\"nav.menuType === 'LABEL'\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"bottom-iconbox\" [ngClass]=\"{ isCollapsed: isCollapsed }\">\r\n <ng-content select=\"[bottomIconBox]\"></ng-content>\r\n </div>\r\n</div>\r\n",
21664
+ styles: [".rs-aside{display:flex;flex-direction:column;height:100%;width:240px;will-change:width;transition:width .3s;padding-right:20px}.rs-aside.isCollapsed{width:64px;padding-right:0}.rs-aside.isCollapsed .nav-list .nav-item .nav-item-inner{margin-right:12px}.rs-aside.isCollapsed .nav-list .nav-item .dividing-line{margin:8px 20px 8px 10px}.rs-aside .nav-list{padding-top:12px;flex:1;overflow:auto;height:0}.rs-aside .nav-list .nav-item{cursor:pointer;padding-left:11px}.rs-aside .nav-list .nav-item .nav-item-inner{height:32px;display:flex;align-items:center;padding:8px 8px 8px 12px}.rs-aside .nav-list .nav-item .nav-item-inner ::ng-deep .menu-icon{width:33px;height:16px;display:flex;align-items:center}.rs-aside .nav-list .nav-item .nav-item-inner ::ng-deep .menu-icon svg{width:16px;height:16px}.rs-aside .nav-list .nav-item .dividing-line{margin:8px 0 8px 10px;height:1px;background-color:rgba(219,225,231,.5)}.rs-aside .nav-list .nav-item:hover .nav-item-inner{border-radius:6px;background:rgba(31,123,255,.04)}.rs-aside .nav-list .nav-item .nav-text{color:#5f6f81;font-family:Arial;font-size:12px;font-weight:400;line-height:16px;transition:.3s;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;position:relative;top:1px;flex:1}@media (min-width:993px){.rs-aside .nav-list .nav-item .nav-text.isCollapsed{opacity:0;width:0}}.rs-aside .nav-list .nav-item.isCurrent{position:relative}.rs-aside .nav-list .nav-item.isCurrent .nav-text{color:#44566c;font-weight:700}.rs-aside .nav-list .nav-item.isCurrent::before{content:\"\";position:absolute;left:4px;top:8px;width:3px;height:16px;background-color:#1364b3;border-radius:2px}.rs-aside .bottom-iconbox{padding:12px 20px;height:48px;display:flex;gap:12px}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center;border:1px solid #eaedf0;border-radius:24px;cursor:pointer}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon svg{width:16px;height:16px;color:#6c7c90;stroke:#6c7c90}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon.disabled{cursor:default;opacity:.5}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon:not(.disabled):hover{background-color:#fff}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon:not(.disabled):hover svg{color:#1f7bff;stroke:#1f7bff}@media (min-width:993px){.rs-aside .bottom-iconbox.isCollapsed{flex-direction:column;height:auto}}@media (max-width:992px){.rs-aside{width:0;position:absolute;height:calc(100% - 50px);z-index:10;background-color:var(--rs-container-bg);padding-right:0}.rs-aside .bottom-iconbox{display:none}.rs-aside.isCollapsed{width:240px;padding-right:16px}.rs-aside.isCollapsed .bottom-iconbox{display:flex}}"]
21558
21665
  }] }
21559
21666
  ];
21560
21667
  /** @nocollapse */
21561
21668
  RSAsideComponent.ctorParameters = function () { return [
21562
- { type: router.Router }
21669
+ { type: router.Router },
21670
+ { type: CommonFunctionService }
21563
21671
  ]; };
21564
21672
  RSAsideComponent.propDecorators = {
21565
21673
  toggleMenu: [{ type: core.Output }],
@@ -21588,6 +21696,8 @@
21588
21696
  RSAsideComponent.prototype.currentNav;
21589
21697
  /** @type {?} */
21590
21698
  RSAsideComponent.prototype.router;
21699
+ /** @type {?} */
21700
+ RSAsideComponent.prototype.cf;
21591
21701
  }
21592
21702
 
21593
21703
  /**
@@ -22758,84 +22868,6 @@
22758
22868
  DrawerFormComponent.prototype.ref;
22759
22869
  }
22760
22870
 
22761
- /**
22762
- * @fileoverview added by tsickle
22763
- * Generated from: lib/form/toolbar-item/index.component.ts
22764
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
22765
- */
22766
- var ToolbarItemComponent = /** @class */ (function () {
22767
- function ToolbarItemComponent() {
22768
- this.children = [];
22769
- this.disabledOptions = {};
22770
- this.ImageType = [
22771
- "Add",
22772
- "Delete",
22773
- "Import",
22774
- "Export",
22775
- "Upload",
22776
- "Download",
22777
- "Duplicate",
22778
- "Refresh",
22779
- ];
22780
- }
22781
- Object.defineProperty(ToolbarItemComponent.prototype, "hostDisabled", {
22782
- get: /**
22783
- * @return {?}
22784
- */
22785
- function () {
22786
- return !!this.disabled;
22787
- },
22788
- enumerable: true,
22789
- configurable: true
22790
- });
22791
- // 暴露方法供父组件调用
22792
- // 暴露方法供父组件调用
22793
- /**
22794
- * @return {?}
22795
- */
22796
- ToolbarItemComponent.prototype.getWidth =
22797
- // 暴露方法供父组件调用
22798
- /**
22799
- * @return {?}
22800
- */
22801
- function () {
22802
- return this.buttonElement.nativeElement.offsetWidth;
22803
- };
22804
- ToolbarItemComponent.decorators = [
22805
- { type: core.Component, args: [{
22806
- selector: "rs-toolbar-item",
22807
- template: "<button\r\n *ngIf=\"!children.length\"\r\n class=\"toolbar-action-item e-btn text\"\r\n #buttonElement\r\n [disabled]=\"!!disabled\"\r\n>\r\n <span class=\"toolbar-action-image\" [attr.data-type]=\"image\">\r\n <img *ngIf=\"!ImageType.includes(image)\" [src]=\"image\" />\r\n </span>\r\n <span>{{ text }}</span>\r\n</button>\r\n\r\n<button\r\n *ngIf=\"children.length\"\r\n class=\"toolbar-action-item e-btn text\"\r\n #buttonElement\r\n mat-menu-item\r\n [matMenuTriggerFor]=\"menu\"\r\n [disabled]=\"!!disabled\"\r\n>\r\n <span class=\"toolbar-action-image\" [attr.data-type]=\"image\">\r\n <img *ngIf=\"!ImageType.includes(image)\" [src]=\"image\" />\r\n </span>\r\n <span>{{ text }}</span>\r\n</button>\r\n<mat-menu #menu=\"matMenu\">\r\n <ng-container *ngFor=\"let button of children\">\r\n <button\r\n class=\"toolbar-action-item e-btn text\"\r\n [disabled]=\"(button.key && disabledOptions[button.key]) || false\"\r\n (click)=\"button.action()\"\r\n >\r\n <span class=\"toolbar-action-image\" [attr.data-type]=\"button.image\">\r\n <img *ngIf=\"!ImageType.includes(button.image)\" [src]=\"button.image\" />\r\n </span>\r\n <span>{{ button.text }}</span>\r\n </button>\r\n </ng-container>\r\n</mat-menu>\r\n",
22808
- styles: ["rs-toolbar-item.disabled{pointer-events:none}.toolbar-action-item{min-width:auto;padding:4px 8px}.toolbar-action-item .toolbar-action-image{height:16px;display:flex;flex-flow:row nowrap;justify-content:center;align-items:center}.toolbar-action-item .toolbar-action-image::before{display:block;width:16px;height:16px;line-height:16px}.toolbar-action-item .toolbar-action-image[data-type=Add]::before{content:url(/assets/img/toolbar-action-add.svg)}.toolbar-action-item .toolbar-action-image[data-type=Delete]::before{content:url(/assets/img/toolbar-action-delete.svg)}.toolbar-action-item .toolbar-action-image[data-type=Import]::before{content:url(/assets/img/toolbar-action-import.svg)}.toolbar-action-item .toolbar-action-image[data-type=Upload]::before{content:url(/assets/img/toolbar-action-upload.svg)}.toolbar-action-item .toolbar-action-image[data-type=Download]::before{content:url(/assets/img/toolbar-action-download.svg)}.toolbar-action-item .toolbar-action-image[data-type=Export]::before{content:url(/assets/img/toolbar-action-export.svg)}.toolbar-action-item .toolbar-action-image[data-type=Duplicate]::before{content:url(/assets/img/toolbar-action-duplicate.svg)}.toolbar-action-item .toolbar-action-image[data-type=Refresh]::before{content:url(/assets/img/toolbar-action-refresh.svg)}.toolbar-action-item .toolbar-action-image img{height:16px;display:block}.toolbar-action-item.e-btn{width:100%;justify-content:flex-start}.toolbar-action-item.mat-menu-item::after{display:none}"]
22809
- }] }
22810
- ];
22811
- ToolbarItemComponent.propDecorators = {
22812
- image: [{ type: core.Input, args: ["image",] }],
22813
- text: [{ type: core.Input, args: ["text",] }],
22814
- disabled: [{ type: core.Input, args: ["disabled",] }],
22815
- children: [{ type: core.Input, args: ["children",] }],
22816
- disabledOptions: [{ type: core.Input }],
22817
- buttonElement: [{ type: core.ViewChild, args: ["buttonElement", { static: false },] }],
22818
- hostDisabled: [{ type: core.HostBinding, args: ["class.disabled",] }]
22819
- };
22820
- return ToolbarItemComponent;
22821
- }());
22822
- if (false) {
22823
- /** @type {?} */
22824
- ToolbarItemComponent.prototype.image;
22825
- /** @type {?} */
22826
- ToolbarItemComponent.prototype.text;
22827
- /** @type {?} */
22828
- ToolbarItemComponent.prototype.disabled;
22829
- /** @type {?} */
22830
- ToolbarItemComponent.prototype.children;
22831
- /** @type {?} */
22832
- ToolbarItemComponent.prototype.disabledOptions;
22833
- /** @type {?} */
22834
- ToolbarItemComponent.prototype.buttonElement;
22835
- /** @type {?} */
22836
- ToolbarItemComponent.prototype.ImageType;
22837
- }
22838
-
22839
22871
  /**
22840
22872
  * @fileoverview added by tsickle
22841
22873
  * Generated from: lib/dialog/common-dialog/index.component.ts