raise-common-lib 0.0.120 → 0.0.121
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 +138 -5
- package/bundles/raise-common-lib.umd.js.map +1 -1
- package/bundles/raise-common-lib.umd.min.js +2 -2
- package/bundles/raise-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/form/toolbar-item/index.component.js +13 -3
- package/esm2015/lib/layout/grid-box/index.component.js +1 -1
- package/esm2015/lib/layout/page-list/index.component.js +1 -1
- package/esm2015/lib/layout/toolbar/constants.js +20 -0
- package/esm2015/lib/layout/toolbar/index.component.js +110 -0
- package/esm2015/lib/raise-common-lib.module.js +6 -3
- package/esm2015/public-api.js +2 -1
- package/esm2015/raise-common-lib.js +2 -2
- package/esm5/lib/form/toolbar-item/index.component.js +19 -3
- package/esm5/lib/layout/grid-box/index.component.js +1 -1
- package/esm5/lib/layout/page-list/index.component.js +1 -1
- package/esm5/lib/layout/toolbar/constants.js +20 -0
- package/esm5/lib/layout/toolbar/index.component.js +118 -0
- package/esm5/lib/raise-common-lib.module.js +6 -3
- package/esm5/public-api.js +2 -1
- package/esm5/raise-common-lib.js +2 -2
- package/fesm2015/raise-common-lib.js +125 -6
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +138 -6
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/form/toolbar-item/index.component.d.ts +3 -0
- package/lib/layout/toolbar/constants.d.ts +6 -0
- package/lib/layout/toolbar/index.component.d.ts +16 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- 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 >\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 >\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
|
|
@@ -22107,10 +22221,23 @@ var ToolbarItemComponent = /** @class */ (function () {
|
|
|
22107
22221
|
enumerable: true,
|
|
22108
22222
|
configurable: true
|
|
22109
22223
|
});
|
|
22224
|
+
// 暴露方法供父组件调用
|
|
22225
|
+
// 暴露方法供父组件调用
|
|
22226
|
+
/**
|
|
22227
|
+
* @return {?}
|
|
22228
|
+
*/
|
|
22229
|
+
ToolbarItemComponent.prototype.getWidth =
|
|
22230
|
+
// 暴露方法供父组件调用
|
|
22231
|
+
/**
|
|
22232
|
+
* @return {?}
|
|
22233
|
+
*/
|
|
22234
|
+
function () {
|
|
22235
|
+
return this.buttonElement.nativeElement.offsetWidth;
|
|
22236
|
+
};
|
|
22110
22237
|
ToolbarItemComponent.decorators = [
|
|
22111
22238
|
{ type: Component, args: [{
|
|
22112
22239
|
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",
|
|
22240
|
+
template: "<button class=\"toolbar-action-item e-btn text\" #buttonElement [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
22241
|
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}"]
|
|
22115
22242
|
}] }
|
|
22116
22243
|
];
|
|
@@ -22118,6 +22245,7 @@ var ToolbarItemComponent = /** @class */ (function () {
|
|
|
22118
22245
|
image: [{ type: Input, args: ["image",] }],
|
|
22119
22246
|
text: [{ type: Input, args: ["text",] }],
|
|
22120
22247
|
disabled: [{ type: Input, args: ["disabled",] }],
|
|
22248
|
+
buttonElement: [{ type: ViewChild, args: ["buttonElement", { static: false },] }],
|
|
22121
22249
|
hostDisabled: [{ type: HostBinding, args: ["class.disabled",] }]
|
|
22122
22250
|
};
|
|
22123
22251
|
return ToolbarItemComponent;
|
|
@@ -22130,6 +22258,8 @@ if (false) {
|
|
|
22130
22258
|
/** @type {?} */
|
|
22131
22259
|
ToolbarItemComponent.prototype.disabled;
|
|
22132
22260
|
/** @type {?} */
|
|
22261
|
+
ToolbarItemComponent.prototype.buttonElement;
|
|
22262
|
+
/** @type {?} */
|
|
22133
22263
|
ToolbarItemComponent.prototype.ImageType;
|
|
22134
22264
|
}
|
|
22135
22265
|
|
|
@@ -22544,7 +22674,8 @@ var RaiseCommonLibModule = /** @class */ (function () {
|
|
|
22544
22674
|
DrawerFormComponent,
|
|
22545
22675
|
ToolbarItemComponent,
|
|
22546
22676
|
RsCommentaryComponent,
|
|
22547
|
-
RSNavCardGroupComponent
|
|
22677
|
+
RSNavCardGroupComponent,
|
|
22678
|
+
RSToolbarComponent
|
|
22548
22679
|
],
|
|
22549
22680
|
imports: [
|
|
22550
22681
|
CommonModule,
|
|
@@ -22694,7 +22825,8 @@ var RaiseCommonLibModule = /** @class */ (function () {
|
|
|
22694
22825
|
DrawerFormComponent,
|
|
22695
22826
|
ToolbarItemComponent,
|
|
22696
22827
|
RsCommentaryComponent,
|
|
22697
|
-
RSNavCardGroupComponent
|
|
22828
|
+
RSNavCardGroupComponent,
|
|
22829
|
+
RSToolbarComponent
|
|
22698
22830
|
],
|
|
22699
22831
|
entryComponents: [
|
|
22700
22832
|
NewActionNotificationComponent,
|
|
@@ -22719,5 +22851,5 @@ var RaiseCommonLibModule = /** @class */ (function () {
|
|
|
22719
22851
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
22720
22852
|
*/
|
|
22721
22853
|
|
|
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 };
|
|
22854
|
+
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
22855
|
//# sourceMappingURL=raise-common-lib.js.map
|