raise-common-lib 0.0.159 → 0.0.161
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 +111 -83
- package/bundles/raise-common-lib.umd.js.map +1 -1
- package/bundles/raise-common-lib.umd.min.js +1 -1
- package/bundles/raise-common-lib.umd.min.js.map +1 -1
- package/{esm5/lib/layout → esm2015/lib/actions}/toolbar/constants.js +2 -2
- package/esm2015/lib/actions/toolbar/index.component.js +114 -0
- package/esm2015/lib/actions/toolbar-item/index.component.js +92 -0
- package/esm2015/lib/layout/rs-aside/index.component.js +11 -5
- package/esm2015/lib/raise-common-lib.module.js +3 -3
- package/esm2015/public-api.js +3 -3
- package/esm2015/raise-common-lib.js +1 -1
- package/{esm2015/lib/layout → esm5/lib/actions}/toolbar/constants.js +2 -2
- package/esm5/lib/actions/toolbar/index.component.js +121 -0
- package/esm5/lib/actions/toolbar-item/index.component.js +104 -0
- package/esm5/lib/layout/rs-aside/index.component.js +10 -5
- package/esm5/lib/raise-common-lib.module.js +3 -3
- package/esm5/public-api.js +3 -3
- package/esm5/raise-common-lib.js +1 -1
- package/fesm2015/raise-common-lib.js +101 -72
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +111 -83
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/{form → actions}/toolbar-item/index.component.d.ts +1 -0
- package/lib/layout/rs-aside/index.component.d.ts +3 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -2
- package/raise-common-lib.metadata.json +1 -1
- package/src/assets/img/toolbar-action-addFolder.svg +17 -0
- package/src/assets/img/toolbar-action-calculator.svg +11 -0
- package/src/assets/img/toolbar-action-collapse.svg +7 -0
- package/src/assets/img/toolbar-action-combine.svg +4 -0
- package/src/assets/img/toolbar-action-edit.svg +4 -0
- package/src/assets/img/toolbar-action-expand.svg +7 -0
- package/src/assets/img/toolbar-action-folderMove.svg +8 -0
- package/src/assets/img/toolbar-action-lock.svg +6 -0
- package/src/assets/img/toolbar-action-preview.svg +7 -0
- package/src/assets/img/toolbar-action-publish.svg +5 -0
- package/src/assets/img/toolbar-action-reminders.svg +10 -0
- package/src/assets/img/toolbar-action-rename.svg +7 -0
- package/src/assets/img/toolbar-action-saveSequence.svg +5 -0
- package/src/assets/img/toolbar-action-send-file.svg +5 -0
- package/src/assets/img/toolbar-action-settle.svg +7 -0
- package/src/assets/img/toolbar-action-share.svg +5 -0
- package/src/assets/img/toolbar-action-submitForApproval.svg +4 -0
- package/src/assets/img/toolbar-action-sync.svg +4 -0
- package/src/assets/img/toolbar-action-template.svg +6 -0
- package/src/assets/img/toolbar-action-workflow.svg +9 -0
- package/src/assets/style/reset/dropdown.scss +67 -0
- package/esm2015/lib/form/toolbar-item/index.component.js +0 -68
- package/esm2015/lib/layout/toolbar/index.component.js +0 -114
- package/esm5/lib/form/toolbar-item/index.component.js +0 -80
- package/esm5/lib/layout/toolbar/index.component.js +0 -121
- /package/lib/{layout → actions}/toolbar/constants.d.ts +0 -0
- /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/
|
|
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
|
|
@@ -21458,8 +21560,9 @@
|
|
|
21458
21560
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
21459
21561
|
*/
|
|
21460
21562
|
var RSAsideComponent = /** @class */ (function () {
|
|
21461
|
-
function RSAsideComponent(router) {
|
|
21563
|
+
function RSAsideComponent(router, cf) {
|
|
21462
21564
|
this.router = router;
|
|
21565
|
+
this.cf = cf;
|
|
21463
21566
|
this.toggleMenu = new core.EventEmitter();
|
|
21464
21567
|
this.navClick = new core.EventEmitter();
|
|
21465
21568
|
this.isCollapsed = false; // 接收输入属性
|
|
@@ -21553,13 +21656,14 @@
|
|
|
21553
21656
|
RSAsideComponent.decorators = [
|
|
21554
21657
|
{ type: core.Component, args: [{
|
|
21555
21658
|
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
|
|
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}}"]
|
|
21659
|
+
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",
|
|
21660
|
+
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
21661
|
}] }
|
|
21559
21662
|
];
|
|
21560
21663
|
/** @nocollapse */
|
|
21561
21664
|
RSAsideComponent.ctorParameters = function () { return [
|
|
21562
|
-
{ type: router.Router }
|
|
21665
|
+
{ type: router.Router },
|
|
21666
|
+
{ type: CommonFunctionService }
|
|
21563
21667
|
]; };
|
|
21564
21668
|
RSAsideComponent.propDecorators = {
|
|
21565
21669
|
toggleMenu: [{ type: core.Output }],
|
|
@@ -21588,6 +21692,8 @@
|
|
|
21588
21692
|
RSAsideComponent.prototype.currentNav;
|
|
21589
21693
|
/** @type {?} */
|
|
21590
21694
|
RSAsideComponent.prototype.router;
|
|
21695
|
+
/** @type {?} */
|
|
21696
|
+
RSAsideComponent.prototype.cf;
|
|
21591
21697
|
}
|
|
21592
21698
|
|
|
21593
21699
|
/**
|
|
@@ -22758,84 +22864,6 @@
|
|
|
22758
22864
|
DrawerFormComponent.prototype.ref;
|
|
22759
22865
|
}
|
|
22760
22866
|
|
|
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
22867
|
/**
|
|
22840
22868
|
* @fileoverview added by tsickle
|
|
22841
22869
|
* Generated from: lib/dialog/common-dialog/index.component.ts
|