raise-common-lib 0.0.120 → 0.0.122

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 (30) hide show
  1. package/bundles/raise-common-lib.umd.js +143 -6
  2. package/bundles/raise-common-lib.umd.js.map +1 -1
  3. package/bundles/raise-common-lib.umd.min.js +2 -2
  4. package/bundles/raise-common-lib.umd.min.js.map +1 -1
  5. package/esm2015/lib/form/toolbar-item/index.component.js +18 -4
  6. package/esm2015/lib/layout/grid-box/index.component.js +1 -1
  7. package/esm2015/lib/layout/page-list/index.component.js +1 -1
  8. package/esm2015/lib/layout/toolbar/constants.js +22 -0
  9. package/esm2015/lib/layout/toolbar/index.component.js +110 -0
  10. package/esm2015/lib/raise-common-lib.module.js +6 -3
  11. package/esm2015/public-api.js +2 -1
  12. package/esm2015/raise-common-lib.js +2 -2
  13. package/esm5/lib/form/toolbar-item/index.component.js +24 -4
  14. package/esm5/lib/layout/grid-box/index.component.js +1 -1
  15. package/esm5/lib/layout/page-list/index.component.js +1 -1
  16. package/esm5/lib/layout/toolbar/constants.js +22 -0
  17. package/esm5/lib/layout/toolbar/index.component.js +118 -0
  18. package/esm5/lib/raise-common-lib.module.js +6 -3
  19. package/esm5/public-api.js +2 -1
  20. package/esm5/raise-common-lib.js +2 -2
  21. package/fesm2015/raise-common-lib.js +130 -7
  22. package/fesm2015/raise-common-lib.js.map +1 -1
  23. package/fesm5/raise-common-lib.js +143 -7
  24. package/fesm5/raise-common-lib.js.map +1 -1
  25. package/lib/form/toolbar-item/index.component.d.ts +4 -0
  26. package/lib/layout/toolbar/constants.d.ts +7 -0
  27. package/lib/layout/toolbar/index.component.d.ts +16 -0
  28. package/package.json +1 -1
  29. package/public-api.d.ts +1 -0
  30. package/raise-common-lib.metadata.json +1 -1
@@ -2432,7 +2432,7 @@ var RsPageListComponent = /** @class */ (function () {
2432
2432
  { type: Component, args: [{
2433
2433
  selector: "rs-page-list",
2434
2434
  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 <h1 class=\"rs-page-title\" *ngIf=\"pageTitle\">{{ pageTitle }}</h1>\r\n </ng-template>\r\n <div class=\"rs-sub-section\">\r\n <ng-content select=\"[subSectionSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-content-wrap\">\r\n <div class=\"rs-content-tab\">\r\n <ng-content select=\"[contentTabSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-toolbar-wrap\">\r\n <div class=\"rs-whole-bar\" *ngIf=\"hasWholeToolbarSlot\">\r\n <ng-content select=\"[wholeToolbarSlot]\"></ng-content>\r\n </div>\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\" *ngIf=\"!hideSearch\">\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",
2435
- 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-sub-section{width:100%}.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;padding-bottom:4px;border-bottom:1px solid #eaedf0}.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-whole-bar{width:100%}.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;align-items:center}.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:24px;min-width:auto!important}.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-right-col{gap:12px}.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}"]
2435
+ 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-sub-section{width:100%}.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;padding-bottom:4px;border-bottom:1px solid #eaedf0}.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-whole-bar{width:100%}.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;align-items:center}.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:24px;min-width:auto!important}.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-right-col{gap:12px}.rs-page-list-wrap .rs-content-wrap .rs-left-col{flex:1;width:0}.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}"]
2436
2436
  }] }
2437
2437
  ];
2438
2438
  RsPageListComponent.propDecorators = {
@@ -2651,7 +2651,7 @@ var GridBoxComponent = /** @class */ (function () {
2651
2651
  { type: Component, args: [{
2652
2652
  selector: "rs-grid-box",
2653
2653
  template: "<div class=\"rs-grid-box\" [ngClass]=\"{ 'is-not-inner': !isInner }\">\r\n <div class=\"rs-content-tab\">\r\n <ng-content select=\"[contentTabSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-toolbar-wrap\">\r\n <div class=\"rs-whole-bar\" *ngIf=\"hasWholeToolbarSlot\">\r\n <ng-content select=\"[wholeToolbarSlot]\"></ng-content>\r\n </div>\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\" *ngIf=\"!hideSearch\">\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",
2654
- styles: [":host{height:100%}.rs-grid-box{display:flex;flex-direction:column;height:100%}.rs-grid-box.is-not-inner{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-grid-box .rs-toolbar-wrap{display:flex;justify-content:space-between;align-items:center;padding-bottom:4px;border-bottom:1px solid #eaedf0}.rs-grid-box .rs-toolbar-wrap .rs-whole-bar{width:100%}.rs-grid-box .rs-toolbar-wrap .rs-left-col,.rs-grid-box .rs-toolbar-wrap .rs-right-col{display:flex;align-items:center}.rs-grid-box .rs-toolbar-wrap .rs-left-col ::ng-deep .e-btn,.rs-grid-box .rs-toolbar-wrap .rs-right-col ::ng-deep .e-btn{height:24px;min-width:auto!important}.rs-grid-box .rs-toolbar-wrap .rs-right-col{gap:12px}.rs-grid-box .rs-grid-wrap{flex:1;height:0}.rs-grid-box .rs-search-input{width:240px}.rs-grid-box .rs-search-input ::ng-deep .e-input-group{border-radius:14px!important}.rs-grid-box .rs-search-input ::ng-deep .e-input-group.e-input-focus,.rs-grid-box .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-grid-box .rs-search-input ::ng-deep .e-input-group.e-input-focus input.e-input,.rs-grid-box .rs-search-input ::ng-deep .e-input-group:hover input.e-input{box-shadow:none!important}.rs-grid-box .rs-search-input ::ng-deep .e-input-group input.e-input{width:calc(100% - 50px);height:26px}.rs-grid-box .rs-search-input ::ng-deep .e-input-group input.e-input:hover{box-shadow:none!important}.rs-grid-box .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}"]
2654
+ styles: [":host{height:100%}.rs-grid-box{display:flex;flex-direction:column;height:100%}.rs-grid-box.is-not-inner{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-grid-box .rs-toolbar-wrap{display:flex;justify-content:space-between;align-items:center;padding-bottom:4px;border-bottom:1px solid #eaedf0}.rs-grid-box .rs-toolbar-wrap .rs-whole-bar{width:100%}.rs-grid-box .rs-toolbar-wrap .rs-left-col,.rs-grid-box .rs-toolbar-wrap .rs-right-col{display:flex;align-items:center}.rs-grid-box .rs-toolbar-wrap .rs-left-col ::ng-deep .e-btn,.rs-grid-box .rs-toolbar-wrap .rs-right-col ::ng-deep .e-btn{height:24px;min-width:auto!important}.rs-grid-box .rs-toolbar-wrap .rs-left-col{flex:1;width:0}.rs-grid-box .rs-toolbar-wrap .rs-right-col{gap:12px}.rs-grid-box .rs-grid-wrap{flex:1;height:0}.rs-grid-box .rs-search-input{width:240px}.rs-grid-box .rs-search-input ::ng-deep .e-input-group{border-radius:14px!important}.rs-grid-box .rs-search-input ::ng-deep .e-input-group.e-input-focus,.rs-grid-box .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-grid-box .rs-search-input ::ng-deep .e-input-group.e-input-focus input.e-input,.rs-grid-box .rs-search-input ::ng-deep .e-input-group:hover input.e-input{box-shadow:none!important}.rs-grid-box .rs-search-input ::ng-deep .e-input-group input.e-input{width:calc(100% - 50px);height:26px}.rs-grid-box .rs-search-input ::ng-deep .e-input-group input.e-input:hover{box-shadow:none!important}.rs-grid-box .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}"]
2655
2655
  }] }
2656
2656
  ];
2657
2657
  GridBoxComponent.propDecorators = {
@@ -3845,6 +3845,120 @@ if (false) {
3845
3845
  RSNavCardGroupComponent.prototype.router;
3846
3846
  }
3847
3847
 
3848
+ /**
3849
+ * @fileoverview added by tsickle
3850
+ * Generated from: lib/layout/toolbar/index.component.ts
3851
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3852
+ */
3853
+ var RSToolbarComponent = /** @class */ (function () {
3854
+ function RSToolbarComponent(router, ref) {
3855
+ this.router = router;
3856
+ this.ref = ref;
3857
+ this.buttons = [];
3858
+ this.visibleButtons = [];
3859
+ this.hiddenButtons = [];
3860
+ }
3861
+ /**
3862
+ * @return {?}
3863
+ */
3864
+ RSToolbarComponent.prototype.ngAfterViewInit = /**
3865
+ * @return {?}
3866
+ */
3867
+ function () {
3868
+ this.updateButtonVisibility();
3869
+ };
3870
+ /**
3871
+ * @private
3872
+ * @return {?}
3873
+ */
3874
+ RSToolbarComponent.prototype.updateButtonVisibility = /**
3875
+ * @private
3876
+ * @return {?}
3877
+ */
3878
+ function () {
3879
+ if (!this.toolbarContainer || !this.buttonElements)
3880
+ return;
3881
+ /** @type {?} */
3882
+ var buttonRefs = this.buttonElements.toArray();
3883
+ /** @type {?} */
3884
+ var containerWidth = this.toolbarContainer.nativeElement.offsetWidth - 50;
3885
+ // console.log("containerWidth", containerWidth);
3886
+ /** @type {?} */
3887
+ var totalWidth = 0;
3888
+ /** @type {?} */
3889
+ var menuButtonWidth = 60;
3890
+ this.visibleButtons = [];
3891
+ this.hiddenButtons = [];
3892
+ for (var i = 0; i < buttonRefs.length; i++) {
3893
+ /** @type {?} */
3894
+ var buttonWidth = buttonRefs[i].nativeElement.getBoundingClientRect().width;
3895
+ // console.log("buttonWidth", buttonWidth);
3896
+ if (totalWidth +
3897
+ buttonWidth +
3898
+ (i < buttonRefs.length - 1 ? menuButtonWidth : 0) <=
3899
+ containerWidth) {
3900
+ this.visibleButtons.push(this.buttons[i]);
3901
+ buttonRefs[i].nativeElement.classList.remove("temp-hidden");
3902
+ totalWidth += buttonWidth;
3903
+ }
3904
+ else {
3905
+ buttonRefs[i].nativeElement.classList.add("temp-hidden");
3906
+ this.hiddenButtons.push(this.buttons[i]);
3907
+ }
3908
+ }
3909
+ // console.log("visibleButtons", this.visibleButtons);
3910
+ // console.log("hiddenButtons", this.hiddenButtons);
3911
+ this.ref.detectChanges();
3912
+ };
3913
+ /**
3914
+ * @return {?}
3915
+ */
3916
+ RSToolbarComponent.prototype.onWindowResize = /**
3917
+ * @return {?}
3918
+ */
3919
+ function () {
3920
+ this.updateButtonVisibility();
3921
+ };
3922
+ RSToolbarComponent.decorators = [
3923
+ { type: Component, args: [{
3924
+ selector: "rs-toolbar",
3925
+ template: "<div #toolbarContainer class=\"rs-toolbar-container\">\r\n <!-- \u53EF\u89C1\u6309\u94AE -->\r\n <ng-container *ngFor=\"let button of buttons\">\r\n <div class=\"temp-hidden\" #toolbarItem>\r\n <rs-toolbar-item\r\n [image]=\"button.image\"\r\n [text]=\"button.text\"\r\n (click)=\"button.action()\"\r\n [children]=\"button.children || []\"\r\n >\r\n </rs-toolbar-item>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- \u4E0B\u62C9\u83DC\u5355\uFF08\u5982\u679C\u6709\u9690\u85CF\u6309\u94AE\uFF09 -->\r\n <button\r\n *ngIf=\"hiddenButtons.length > 0\"\r\n mat-button\r\n [matMenuTriggerFor]=\"menu\"\r\n #menuTrigger=\"matMenuTrigger\"\r\n class=\"action-toggle\"\r\n >\r\n <mat-icon svgIcon=\"more\"></mat-icon>\r\n </button>\r\n\r\n <mat-menu #menu=\"matMenu\">\r\n <ng-container *ngFor=\"let button of hiddenButtons\">\r\n <rs-toolbar-item\r\n [image]=\"button.image\"\r\n [text]=\"button.text\"\r\n (click)=\"button.action()\"\r\n [children]=\"button.children || []\"\r\n >\r\n </rs-toolbar-item>\r\n </ng-container>\r\n </mat-menu>\r\n</div>\r\n",
3926
+ styles: [":host{display:block;width:100%}.rs-toolbar-container{width:100%;display:flex;align-items:center}.rs-toolbar-container .temp-hidden{visibility:hidden;position:absolute}.rs-toolbar-container .action-toggle{width:24px;height:24px;min-width:24px;max-width:24px;padding:0;border-radius:4px;display:flex;flex-flow:row nowrap;justify-content:center;align-items:center;background:0 0}.rs-toolbar-container .action-toggle:hover{background:rgba(214,227,245,.2)}.rs-toolbar-container .action-toggle .mat-button-wrapper{max-height:24px;height:24px}.rs-toolbar-container .action-toggle ::ng-deep .mat-icon{width:16px;height:16px;display:flex;flex-flow:row nowrap;justify-content:center;align-items:center}"]
3927
+ }] }
3928
+ ];
3929
+ /** @nocollapse */
3930
+ RSToolbarComponent.ctorParameters = function () { return [
3931
+ { type: Router },
3932
+ { type: ChangeDetectorRef }
3933
+ ]; };
3934
+ RSToolbarComponent.propDecorators = {
3935
+ buttons: [{ type: Input }],
3936
+ toolbarContainer: [{ type: ViewChild, args: ["toolbarContainer", { static: false },] }],
3937
+ buttonElements: [{ type: ViewChildren, args: ["toolbarItem",] }],
3938
+ onWindowResize: [{ type: HostListener, args: ["window:resize",] }]
3939
+ };
3940
+ return RSToolbarComponent;
3941
+ }());
3942
+ if (false) {
3943
+ /** @type {?} */
3944
+ RSToolbarComponent.prototype.buttons;
3945
+ /** @type {?} */
3946
+ RSToolbarComponent.prototype.toolbarContainer;
3947
+ /** @type {?} */
3948
+ RSToolbarComponent.prototype.buttonElements;
3949
+ /** @type {?} */
3950
+ RSToolbarComponent.prototype.visibleButtons;
3951
+ /** @type {?} */
3952
+ RSToolbarComponent.prototype.hiddenButtons;
3953
+ /** @type {?} */
3954
+ RSToolbarComponent.prototype.router;
3955
+ /**
3956
+ * @type {?}
3957
+ * @private
3958
+ */
3959
+ RSToolbarComponent.prototype.ref;
3960
+ }
3961
+
3848
3962
  /**
3849
3963
  * @fileoverview added by tsickle
3850
3964
  * Generated from: assets/language/ja.ts
@@ -22086,6 +22200,7 @@ if (false) {
22086
22200
  */
22087
22201
  var ToolbarItemComponent = /** @class */ (function () {
22088
22202
  function ToolbarItemComponent() {
22203
+ this.children = [];
22089
22204
  this.ImageType = [
22090
22205
  "Add",
22091
22206
  "Delete",
@@ -22107,17 +22222,32 @@ var ToolbarItemComponent = /** @class */ (function () {
22107
22222
  enumerable: true,
22108
22223
  configurable: true
22109
22224
  });
22225
+ // 暴露方法供父组件调用
22226
+ // 暴露方法供父组件调用
22227
+ /**
22228
+ * @return {?}
22229
+ */
22230
+ ToolbarItemComponent.prototype.getWidth =
22231
+ // 暴露方法供父组件调用
22232
+ /**
22233
+ * @return {?}
22234
+ */
22235
+ function () {
22236
+ return this.buttonElement.nativeElement.offsetWidth;
22237
+ };
22110
22238
  ToolbarItemComponent.decorators = [
22111
22239
  { type: Component, args: [{
22112
22240
  selector: "rs-toolbar-item",
22113
- template: "<button class=\"toolbar-action-item e-btn text\" [disabled]=\"!!disabled\">\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",
22114
- 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}"]
22241
+ 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.disabled\"\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",
22242
+ 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}"]
22115
22243
  }] }
22116
22244
  ];
22117
22245
  ToolbarItemComponent.propDecorators = {
22118
22246
  image: [{ type: Input, args: ["image",] }],
22119
22247
  text: [{ type: Input, args: ["text",] }],
22120
22248
  disabled: [{ type: Input, args: ["disabled",] }],
22249
+ children: [{ type: Input, args: ["children",] }],
22250
+ buttonElement: [{ type: ViewChild, args: ["buttonElement", { static: false },] }],
22121
22251
  hostDisabled: [{ type: HostBinding, args: ["class.disabled",] }]
22122
22252
  };
22123
22253
  return ToolbarItemComponent;
@@ -22130,6 +22260,10 @@ if (false) {
22130
22260
  /** @type {?} */
22131
22261
  ToolbarItemComponent.prototype.disabled;
22132
22262
  /** @type {?} */
22263
+ ToolbarItemComponent.prototype.children;
22264
+ /** @type {?} */
22265
+ ToolbarItemComponent.prototype.buttonElement;
22266
+ /** @type {?} */
22133
22267
  ToolbarItemComponent.prototype.ImageType;
22134
22268
  }
22135
22269
 
@@ -22544,7 +22678,8 @@ var RaiseCommonLibModule = /** @class */ (function () {
22544
22678
  DrawerFormComponent,
22545
22679
  ToolbarItemComponent,
22546
22680
  RsCommentaryComponent,
22547
- RSNavCardGroupComponent
22681
+ RSNavCardGroupComponent,
22682
+ RSToolbarComponent
22548
22683
  ],
22549
22684
  imports: [
22550
22685
  CommonModule,
@@ -22694,7 +22829,8 @@ var RaiseCommonLibModule = /** @class */ (function () {
22694
22829
  DrawerFormComponent,
22695
22830
  ToolbarItemComponent,
22696
22831
  RsCommentaryComponent,
22697
- RSNavCardGroupComponent
22832
+ RSNavCardGroupComponent,
22833
+ RSToolbarComponent
22698
22834
  ],
22699
22835
  entryComponents: [
22700
22836
  NewActionNotificationComponent,
@@ -22719,5 +22855,5 @@ var RaiseCommonLibModule = /** @class */ (function () {
22719
22855
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
22720
22856
  */
22721
22857
 
22722
- export { CheckboxGroupComponent, CommonFunctionService, CommonGridComponent, DefaultDrawerConfig, DialogService, DrawerComponent, DrawerFormComponent, DrawerService, EmailPattern, EncryptedInputComponent, FloatBoxComponent, GridActionComponent, GridActionItemComponent, GridBoxComponent, IconLoaderService, KeepAliveService, MainContainerComponent, MessageType, MultiTabComponent, RSAsideComponent, RSFooterComponent, RSHeaderComponent, RSNavCardGroupComponent, RadioGroupComponent, RaiseCommonLibModule, RsCommentaryComponent, RsPageListComponent, RsPageTabComponent, SwitchInputComponent, TagInputComponent, ToolbarItemComponent, TranslationService, filterShowSection, Debounce as ɵa, NewActionNotificationComponent as ɵb, CommonDialogComponent as ɵc, CommonDeleteComponent as ɵd };
22858
+ export { CheckboxGroupComponent, CommonFunctionService, CommonGridComponent, DefaultDrawerConfig, DialogService, DrawerComponent, DrawerFormComponent, DrawerService, EmailPattern, EncryptedInputComponent, FloatBoxComponent, GridActionComponent, GridActionItemComponent, GridBoxComponent, IconLoaderService, KeepAliveService, MainContainerComponent, MessageType, MultiTabComponent, RSAsideComponent, RSFooterComponent, RSHeaderComponent, RSNavCardGroupComponent, RSToolbarComponent, RadioGroupComponent, RaiseCommonLibModule, RsCommentaryComponent, RsPageListComponent, RsPageTabComponent, SwitchInputComponent, TagInputComponent, ToolbarItemComponent, TranslationService, filterShowSection, Debounce as ɵa, NewActionNotificationComponent as ɵb, CommonDialogComponent as ɵc, CommonDeleteComponent as ɵd };
22723
22859
  //# sourceMappingURL=raise-common-lib.js.map