raise-common-lib 0.0.79 → 0.0.81
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 +108 -24
- 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/layout/drawer/index.component.js +36 -10
- package/esm2015/lib/layout/grid-box/index.component.js +5 -8
- package/esm2015/lib/layout/page-list/index.component.js +23 -3
- package/esm2015/lib/layout/page-tab/index.component.js +37 -4
- package/esm5/lib/layout/drawer/index.component.js +36 -10
- package/esm5/lib/layout/grid-box/index.component.js +5 -8
- package/esm5/lib/layout/page-list/index.component.js +23 -3
- package/esm5/lib/layout/page-tab/index.component.js +48 -4
- package/fesm2015/raise-common-lib.js +94 -21
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +105 -21
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/layout/drawer/index.component.d.ts +6 -1
- package/lib/layout/grid-box/index.component.d.ts +1 -2
- package/lib/layout/page-list/index.component.d.ts +3 -0
- package/lib/layout/page-tab/index.component.d.ts +6 -2
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
|
@@ -3,6 +3,7 @@ import { EventEmitter, Component, ChangeDetectorRef, ViewChild, Input, Output, H
|
|
|
3
3
|
import { GridComponent, GridModule, PagerModule, GridAllModule, PageService, SortService, FilterService, ExcelExportService, EditService, ResizeService, ToolbarService, ColumnChooserService, AggregateService, ColumnMenuService, DetailRowService, SelectionService, GroupService } from '@syncfusion/ej2-angular-grids';
|
|
4
4
|
import { times, debounce } from 'lodash';
|
|
5
5
|
import { TreeGridComponent } from '@syncfusion/ej2-angular-treegrid';
|
|
6
|
+
import { CarouselAllModule, ToolbarModule, TabModule } from '@syncfusion/ej2-angular-navigations';
|
|
6
7
|
import { NavigationEnd, Router, ActivatedRoute, RouteReuseStrategy } from '@angular/router';
|
|
7
8
|
import { filter } from 'rxjs/operators';
|
|
8
9
|
import { Subject, BehaviorSubject } from 'rxjs';
|
|
@@ -24,7 +25,6 @@ import { DropDownListModule, DropDownTreeModule, MultiSelectAllModule, AutoCompl
|
|
|
24
25
|
import { PivotViewAllModule, PivotFieldListAllModule } from '@syncfusion/ej2-angular-pivotview';
|
|
25
26
|
import { ChartAllModule, AccumulationChartAllModule, RangeNavigatorAllModule, AccumulationChartModule, PieSeriesService, AccumulationLegendService, AccumulationTooltipService, AccumulationAnnotationService, AccumulationDataLabelService } from '@syncfusion/ej2-angular-charts';
|
|
26
27
|
import { DashboardLayoutModule } from '@syncfusion/ej2-angular-layouts';
|
|
27
|
-
import { CarouselAllModule, ToolbarModule, TabModule } from '@syncfusion/ej2-angular-navigations';
|
|
28
28
|
import { PdfViewerModule, LinkAnnotationService, BookmarkViewService, MagnificationService, ThumbnailViewService, ToolbarService as ToolbarService$1, NavigationService, TextSearchService, TextSelectionService, PrintService } from '@syncfusion/ej2-angular-pdfviewer';
|
|
29
29
|
import { DropDownButtonModule, SplitButtonModule } from '@syncfusion/ej2-angular-splitbuttons';
|
|
30
30
|
import { RichTextEditorAllModule, HtmlEditorService, ToolbarService as ToolbarService$2 } from '@syncfusion/ej2-angular-richtexteditor';
|
|
@@ -1345,6 +1345,7 @@ if (false) {
|
|
|
1345
1345
|
var RsPageListComponent = /** @class */ (function () {
|
|
1346
1346
|
function RsPageListComponent() {
|
|
1347
1347
|
this.customPageTitle = false;
|
|
1348
|
+
this.hideSearch = false;
|
|
1348
1349
|
this.isInner = false;
|
|
1349
1350
|
this.hasWholeToolbarSlot = false;
|
|
1350
1351
|
}
|
|
@@ -1380,7 +1381,15 @@ var RsPageListComponent = /** @class */ (function () {
|
|
|
1380
1381
|
* @return {?}
|
|
1381
1382
|
*/
|
|
1382
1383
|
function () {
|
|
1383
|
-
this.gridContent
|
|
1384
|
+
if (this.gridContent) {
|
|
1385
|
+
this.gridContent.grid.search(this.searchValue);
|
|
1386
|
+
}
|
|
1387
|
+
else if (this.orignGrid) {
|
|
1388
|
+
this.orignGrid.search(this.searchValue);
|
|
1389
|
+
}
|
|
1390
|
+
else if (this.treeGrid) {
|
|
1391
|
+
this.treeGrid.search(this.searchValue);
|
|
1392
|
+
}
|
|
1384
1393
|
};
|
|
1385
1394
|
/**
|
|
1386
1395
|
* @return {?}
|
|
@@ -1394,15 +1403,18 @@ var RsPageListComponent = /** @class */ (function () {
|
|
|
1394
1403
|
RsPageListComponent.decorators = [
|
|
1395
1404
|
{ type: Component, args: [{
|
|
1396
1405
|
selector: "rs-page-list",
|
|
1397
|
-
template: "<div class=\"rs-page-list-wrap\" [ngClass]=\"{ 'is-not-inner': !isInner }\">\r\n <ng-container *ngIf=\"customPageTitle; else defaultTitle\">\r\n <ng-content select=\"[titleSlot]\"></ng-content>\r\n </ng-container>\r\n <ng-template #defaultTitle>\r\n <div class=\"rs-page-title\" *ngIf=\"pageTitle\">{{ pageTitle }}</div>\r\n </ng-template>\r\n <div class=\"rs-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\">\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",
|
|
1406
|
+
template: "<div class=\"rs-page-list-wrap\" [ngClass]=\"{ 'is-not-inner': !isInner }\">\r\n <ng-container *ngIf=\"customPageTitle; else defaultTitle\">\r\n <ng-content select=\"[titleSlot]\"></ng-content>\r\n </ng-container>\r\n <ng-template #defaultTitle>\r\n <div class=\"rs-page-title\" *ngIf=\"pageTitle\">{{ pageTitle }}</div>\r\n </ng-template>\r\n <div class=\"rs-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",
|
|
1398
1407
|
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;gap:4px}.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}.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}"]
|
|
1399
1408
|
}] }
|
|
1400
1409
|
];
|
|
1401
1410
|
RsPageListComponent.propDecorators = {
|
|
1402
1411
|
gridContent: [{ type: ContentChild, args: [CommonGridComponent, { static: true },] }],
|
|
1412
|
+
orignGrid: [{ type: ContentChild, args: [GridComponent, { static: true },] }],
|
|
1413
|
+
treeGrid: [{ type: ContentChild, args: [TreeGridComponent, { static: true },] }],
|
|
1403
1414
|
wholeToolbarSlot: [{ type: ContentChild, args: ["wholeToolbarSlot", { static: true },] }],
|
|
1404
1415
|
pageTitle: [{ type: Input }],
|
|
1405
1416
|
customPageTitle: [{ type: Input }],
|
|
1417
|
+
hideSearch: [{ type: Input }],
|
|
1406
1418
|
isInner: [{ type: Input }]
|
|
1407
1419
|
};
|
|
1408
1420
|
return RsPageListComponent;
|
|
@@ -1411,12 +1423,18 @@ if (false) {
|
|
|
1411
1423
|
/** @type {?} */
|
|
1412
1424
|
RsPageListComponent.prototype.gridContent;
|
|
1413
1425
|
/** @type {?} */
|
|
1426
|
+
RsPageListComponent.prototype.orignGrid;
|
|
1427
|
+
/** @type {?} */
|
|
1428
|
+
RsPageListComponent.prototype.treeGrid;
|
|
1429
|
+
/** @type {?} */
|
|
1414
1430
|
RsPageListComponent.prototype.wholeToolbarSlot;
|
|
1415
1431
|
/** @type {?} */
|
|
1416
1432
|
RsPageListComponent.prototype.pageTitle;
|
|
1417
1433
|
/** @type {?} */
|
|
1418
1434
|
RsPageListComponent.prototype.customPageTitle;
|
|
1419
1435
|
/** @type {?} */
|
|
1436
|
+
RsPageListComponent.prototype.hideSearch;
|
|
1437
|
+
/** @type {?} */
|
|
1420
1438
|
RsPageListComponent.prototype.isInner;
|
|
1421
1439
|
/**
|
|
1422
1440
|
* @type {?}
|
|
@@ -1451,6 +1469,29 @@ var RsPageTabComponent = /** @class */ (function () {
|
|
|
1451
1469
|
* @return {?}
|
|
1452
1470
|
*/
|
|
1453
1471
|
function () { };
|
|
1472
|
+
/**
|
|
1473
|
+
* @return {?}
|
|
1474
|
+
*/
|
|
1475
|
+
RsPageTabComponent.prototype.ngAfterViewInit = /**
|
|
1476
|
+
* @return {?}
|
|
1477
|
+
*/
|
|
1478
|
+
function () {
|
|
1479
|
+
var _this = this;
|
|
1480
|
+
if (this.currentTab !== undefined) {
|
|
1481
|
+
/** @type {?} */
|
|
1482
|
+
var idx_1 = this.tabList.findIndex((/**
|
|
1483
|
+
* @param {?} ele
|
|
1484
|
+
* @return {?}
|
|
1485
|
+
*/
|
|
1486
|
+
function (ele) { return ele.value === _this.currentTab; }));
|
|
1487
|
+
setTimeout((/**
|
|
1488
|
+
* @return {?}
|
|
1489
|
+
*/
|
|
1490
|
+
function () {
|
|
1491
|
+
_this.tabObj.select(idx_1);
|
|
1492
|
+
}), 30);
|
|
1493
|
+
}
|
|
1494
|
+
};
|
|
1454
1495
|
/**
|
|
1455
1496
|
* @param {?} e
|
|
1456
1497
|
* @return {?}
|
|
@@ -1460,16 +1501,34 @@ var RsPageTabComponent = /** @class */ (function () {
|
|
|
1460
1501
|
* @return {?}
|
|
1461
1502
|
*/
|
|
1462
1503
|
function (e) {
|
|
1463
|
-
|
|
1504
|
+
if (e.isInteracted) {
|
|
1505
|
+
this.tabChange.emit(this.tabList[e.selectedIndex]);
|
|
1506
|
+
}
|
|
1507
|
+
};
|
|
1508
|
+
// 切换tab,传入下标
|
|
1509
|
+
// 切换tab,传入下标
|
|
1510
|
+
/**
|
|
1511
|
+
* @param {?} idx
|
|
1512
|
+
* @return {?}
|
|
1513
|
+
*/
|
|
1514
|
+
RsPageTabComponent.prototype.changeTab =
|
|
1515
|
+
// 切换tab,传入下标
|
|
1516
|
+
/**
|
|
1517
|
+
* @param {?} idx
|
|
1518
|
+
* @return {?}
|
|
1519
|
+
*/
|
|
1520
|
+
function (idx) {
|
|
1521
|
+
this.tabObj.select(idx);
|
|
1464
1522
|
};
|
|
1465
1523
|
RsPageTabComponent.decorators = [
|
|
1466
1524
|
{ type: Component, args: [{
|
|
1467
1525
|
selector: "rs-page-tab",
|
|
1468
|
-
template: "<div class=\"rs-page-list-wrap\">\r\n <ng-container *ngIf=\"customPageTitle; else defaultTitle\">\r\n <ng-content select=\"[titleSlot]\"></ng-content>\r\n </ng-container>\r\n <ng-template #defaultTitle>\r\n <div class=\"rs-page-title\" *ngIf=\"pageTitle\">{{ pageTitle }}</div>\r\n </ng-template>\r\n <ejs-tab\r\n class=\"rs-tab\"\r\n (selected)=\"onTabClick($event)\"\r\n [animation]=\"animation\"\r\n\t overflowMode=\"Popup\"\r\n heightAdjustMode=\"None\"\r\n >\r\n <e-tabitems>\r\n <e-tabitem *ngFor=\"let item of tabList\">\r\n <ng-template #headerText>\r\n <div>{{ item.title }}</div>\r\n </ng-template>\r\n </e-tabitem>\r\n </e-tabitems>\r\n </ejs-tab>\r\n <div class=\"rs-grid-wrap\">\r\n <ng-content select=\"[tabContentSlot]\"></ng-content>\r\n </div>\r\n</div>\r\n",
|
|
1526
|
+
template: "<div class=\"rs-page-list-wrap\">\r\n <ng-container *ngIf=\"customPageTitle; else defaultTitle\">\r\n <ng-content select=\"[titleSlot]\"></ng-content>\r\n </ng-container>\r\n <ng-template #defaultTitle>\r\n <div class=\"rs-page-title\" *ngIf=\"pageTitle\">{{ pageTitle }}</div>\r\n </ng-template>\r\n <ejs-tab\r\n class=\"rs-tab\"\r\n #tabObj\r\n (selected)=\"onTabClick($event)\"\r\n [animation]=\"animation\"\r\n\t overflowMode=\"Popup\"\r\n heightAdjustMode=\"None\"\r\n >\r\n <e-tabitems>\r\n <e-tabitem *ngFor=\"let item of tabList\">\r\n <ng-template #headerText>\r\n <div>{{ item.title }}</div>\r\n </ng-template>\r\n </e-tabitem>\r\n </e-tabitems>\r\n </ejs-tab>\r\n <div class=\"rs-grid-wrap\">\r\n <ng-content select=\"[tabContentSlot]\"></ng-content>\r\n </div>\r\n</div>\r\n",
|
|
1469
1527
|
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-tab{padding:0 20px}.rs-page-list-wrap .rs-tab .e-tab-header::before{display:none}.rs-page-list-wrap .rs-tab .e-toolbar-items{gap:32px;min-height:36px}.rs-page-list-wrap .rs-tab .e-toolbar-items .e-toolbar-item{border:0}.rs-page-list-wrap .rs-tab .e-toolbar-items .e-toolbar-item .e-tab-wrap{padding:0;border:0;position:relative;height:36px}.rs-page-list-wrap .rs-tab .e-toolbar-items .e-toolbar-item .e-tab-wrap::before{content:\" \";position:absolute;left:0;bottom:0;width:100%;height:2px;background-color:transparent}.rs-page-list-wrap .rs-tab .e-toolbar-items .e-toolbar-item .e-tab-text{color:#5f6f81;font-family:Arial;font-size:13px;font-style:normal;font-weight:400;line-height:16px}.rs-page-list-wrap .rs-tab .e-toolbar-items .e-toolbar-item.e-active .e-tab-wrap::before{background-color:#1f7bff}.rs-page-list-wrap .rs-tab .e-toolbar-items .e-toolbar-item.e-active .e-tab-text{color:#44566c}.rs-page-list-wrap .rs-tab .e-hor-nav{width:24px;height:24px;min-height:24px;top:3px;border-radius:4px;background-color:transparent!important;border:1px solid #eaedf0!important}.rs-page-list-wrap .rs-tab .e-hor-nav .e-icons{box-shadow:none;background-color:transparent!important;border-color:transparent!important;background-image:url(../../assets/img/icon-more.svg);background-size:14px 3px;background-repeat:no-repeat;background-position:4px 14px}.rs-page-list-wrap .rs-tab .e-hor-nav .e-icons::before{display:none}.rs-page-list-wrap .rs-tab .e-hor-nav .e-icons:hover{background-color:#eff5fb!important;border-color:#b1d0fc!important;background-image:url(../../assets/img/icon-more-active.svg)}.rs-page-list-wrap .rs-tab .e-toolbar-pop{min-width:160px;border-radius:10px;background:#fff;box-shadow:0 0 8px 0 rgba(0,0,0,.25);padding:8px}.rs-page-list-wrap .rs-tab .e-toolbar-pop .e-toolbar-item .e-tab-wrap{padding:0 8px}.rs-page-list-wrap .rs-tab .e-toolbar-pop .e-toolbar-item .e-tab-wrap .e-tab-text{color:#44566c;font-family:Arial;font-size:13px;font-weight:400;line-height:16px}.rs-page-list-wrap .rs-tab .e-toolbar-pop .e-toolbar-item .e-tab-wrap:hover{border-radius:6px;background:rgba(31,123,255,.05)}.rs-page-list-wrap .rs-grid-wrap{flex:1;height:0}"]
|
|
1470
1528
|
}] }
|
|
1471
1529
|
];
|
|
1472
1530
|
RsPageTabComponent.propDecorators = {
|
|
1531
|
+
tabObj: [{ type: ViewChild, args: ["tabObj", { static: false },] }],
|
|
1473
1532
|
pageTitle: [{ type: Input }],
|
|
1474
1533
|
customPageTitle: [{ type: Input }],
|
|
1475
1534
|
tabList: [{ type: Input }],
|
|
@@ -1479,6 +1538,8 @@ var RsPageTabComponent = /** @class */ (function () {
|
|
|
1479
1538
|
return RsPageTabComponent;
|
|
1480
1539
|
}());
|
|
1481
1540
|
if (false) {
|
|
1541
|
+
/** @type {?} */
|
|
1542
|
+
RsPageTabComponent.prototype.tabObj;
|
|
1482
1543
|
/** @type {?} */
|
|
1483
1544
|
RsPageTabComponent.prototype.pageTitle;
|
|
1484
1545
|
/** @type {?} */
|
|
@@ -1500,7 +1561,7 @@ if (false) {
|
|
|
1500
1561
|
*/
|
|
1501
1562
|
var GridBoxComponent = /** @class */ (function () {
|
|
1502
1563
|
function GridBoxComponent() {
|
|
1503
|
-
this.
|
|
1564
|
+
this.hideSearch = false;
|
|
1504
1565
|
this.isInner = false;
|
|
1505
1566
|
this.hasWholeToolbarSlot = false;
|
|
1506
1567
|
}
|
|
@@ -1558,7 +1619,7 @@ var GridBoxComponent = /** @class */ (function () {
|
|
|
1558
1619
|
GridBoxComponent.decorators = [
|
|
1559
1620
|
{ type: Component, args: [{
|
|
1560
1621
|
selector: "rs-grid-box",
|
|
1561
|
-
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\">\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",
|
|
1622
|
+
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",
|
|
1562
1623
|
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;gap:4px}.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}.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}"]
|
|
1563
1624
|
}] }
|
|
1564
1625
|
];
|
|
@@ -1567,8 +1628,7 @@ var GridBoxComponent = /** @class */ (function () {
|
|
|
1567
1628
|
orignGrid: [{ type: ContentChild, args: [GridComponent, { static: true },] }],
|
|
1568
1629
|
treeGrid: [{ type: ContentChild, args: [TreeGridComponent, { static: true },] }],
|
|
1569
1630
|
wholeToolbarSlot: [{ type: ContentChild, args: ["wholeToolbarSlot", { static: true },] }],
|
|
1570
|
-
|
|
1571
|
-
customPageTitle: [{ type: Input }],
|
|
1631
|
+
hideSearch: [{ type: Input }],
|
|
1572
1632
|
isInner: [{ type: Input }]
|
|
1573
1633
|
};
|
|
1574
1634
|
return GridBoxComponent;
|
|
@@ -1583,9 +1643,7 @@ if (false) {
|
|
|
1583
1643
|
/** @type {?} */
|
|
1584
1644
|
GridBoxComponent.prototype.wholeToolbarSlot;
|
|
1585
1645
|
/** @type {?} */
|
|
1586
|
-
GridBoxComponent.prototype.
|
|
1587
|
-
/** @type {?} */
|
|
1588
|
-
GridBoxComponent.prototype.customPageTitle;
|
|
1646
|
+
GridBoxComponent.prototype.hideSearch;
|
|
1589
1647
|
/** @type {?} */
|
|
1590
1648
|
GridBoxComponent.prototype.isInner;
|
|
1591
1649
|
/**
|
|
@@ -2609,11 +2667,22 @@ var DrawerComponent = /** @class */ (function () {
|
|
|
2609
2667
|
* @return {?}
|
|
2610
2668
|
*/
|
|
2611
2669
|
function (cache) {
|
|
2612
|
-
this.setSlotElement(cache.toolbarEl, this.
|
|
2613
|
-
this.setSlotElement(cache.headerEl, this.
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2670
|
+
this.setSlotElement(cache.toolbarEl, this.toolbarSlot.nativeElement);
|
|
2671
|
+
this.setSlotElement(cache.headerEl, this.headerSlot.nativeElement);
|
|
2672
|
+
this.setSlotElement(cache.topEl, this.topSlot.nativeElement);
|
|
2673
|
+
if (!cache.topEl) {
|
|
2674
|
+
/** @type {?} */
|
|
2675
|
+
var drawerTop = cache.config.top ? cache.config.top + "px" : "";
|
|
2676
|
+
this.element.nativeElement.style.setProperty("--drawer-top", drawerTop);
|
|
2677
|
+
}
|
|
2678
|
+
if (cache.config.mode === "inner") {
|
|
2679
|
+
this.content.nativeElement.insertBefore(this.header.nativeElement, this.content.nativeElement.firstChild);
|
|
2680
|
+
this.content.nativeElement.append(this.toolbarSlot.nativeElement);
|
|
2681
|
+
}
|
|
2682
|
+
else {
|
|
2683
|
+
this.drawer.nativeElement.insertBefore(this.header.nativeElement, this.drawer.nativeElement.firstChild);
|
|
2684
|
+
this.header.nativeElement.append(this.toolbarSlot.nativeElement);
|
|
2685
|
+
}
|
|
2617
2686
|
};
|
|
2618
2687
|
/**
|
|
2619
2688
|
* @template T
|
|
@@ -2639,11 +2708,14 @@ var DrawerComponent = /** @class */ (function () {
|
|
|
2639
2708
|
/** @type {?} */
|
|
2640
2709
|
var headerEl = this.getSlotElement(componentRef, "[drawer-header]");
|
|
2641
2710
|
/** @type {?} */
|
|
2711
|
+
var topEl = this.getSlotElement(componentRef, "[drawer-top]");
|
|
2712
|
+
/** @type {?} */
|
|
2642
2713
|
var cache = {
|
|
2643
2714
|
config: showConfig,
|
|
2644
2715
|
ref: componentRef,
|
|
2645
2716
|
toolbarEl: toolbarEl,
|
|
2646
2717
|
headerEl: headerEl,
|
|
2718
|
+
topEl: topEl,
|
|
2647
2719
|
};
|
|
2648
2720
|
this.setComponentData(componentRef, data);
|
|
2649
2721
|
this.componentRefMap.set(this.service.cacheKey, cache);
|
|
@@ -2719,8 +2791,8 @@ var DrawerComponent = /** @class */ (function () {
|
|
|
2719
2791
|
DrawerComponent.decorators = [
|
|
2720
2792
|
{ type: Component, args: [{
|
|
2721
2793
|
selector: "rs-drawer",
|
|
2722
|
-
template: "<div #element id=\"rs-drawer-container\" class=\"rs-drawer-container\">\r\n <div class=\"rs-drawer-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div\r\n class=\"rs-drawer\"\r\n [attr.data-mode]=\"config.mode\"\r\n [attr.data-opened]=\"($isOpened | async) ? 'yes' : 'no'\"\r\n [attr.data-transition]=\"useTransition\"\r\n >\r\n <div class=\"drawer-header\">\r\n <button class=\"drawer-return-button\" (click)=\"hide()\">\r\n <span class=\"drawer-sub-title\" *ngIf=\"config.subTitle\">\r\n {{ config.subTitle }}\r\n </span>\r\n </button>\r\n <div class=\"drawer-title\">{{ config.title }}</div>\r\n <div class=\"drawer-header-slot\" #
|
|
2723
|
-
styles: [":host{display:block;height:100%}#rs-drawer-container{height:100%}.rs-drawer-container{height:100%;background-color:transparent;overflow:hidden;position:relative}.rs-drawer-container .rs-drawer-content{width:100%;height:100%;overflow:auto;margin-right:0!important}.rs-drawer-container .rs-drawer-content::-webkit-scrollbar{width:5px;height:5px;background:#fff;position:static;z-index:999;border-radius:10px}.rs-drawer-container .rs-drawer-content::-webkit-scrollbar-thumb{background:#eaedf0}.rs-drawer-container .rs-drawer{width:100%;height:100%;border-left:none;background-color:transparent;overflow:visible;pointer-events:none;opacity:0;display:flex;flex-flow:column nowrap;position:absolute;z-index:2;top:0;left:100%}.rs-drawer-container .rs-drawer[data-opened=yes]{left:0;opacity:1}.rs-drawer-container .rs-drawer[data-transition=yes]{transition:opacity .5s ease-in-out,left .5s ease-in-out}.rs-drawer-container .rs-drawer .drawer-header{flex:none;display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:center;box-sizing:content-box;pointer-events:auto}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button{flex:none;display:flex;flex-flow:row nowrap;align-items:center;padding:0;border:none;background-color:transparent;cursor:pointer}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button::before{content:url(../../assets/img/drawer-back.svg);width:24px;height:24px;margin-right:8px;transition:transform 125ms ease-in-out}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button:hover::before{transform:translateX(-2px)}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button .drawer-sub-title{margin-right:12px;font-family:Arial;font-style:normal;font-weight:400}.rs-drawer-container .rs-drawer .drawer-header .drawer-title{flex:none;min-height:14px;padding:0 12px;border-left:1px solid #bdc4ca;font-family:Arial;font-style:normal;font-weight:400}.rs-drawer-container .rs-drawer .drawer-header .drawer-title:empty{padding:0}.rs-drawer-container .rs-drawer .drawer-content{flex:auto;overflow:hidden;pointer-events:auto}.rs-drawer-container .rs-drawer .drawer-content .drawer-content-container{
|
|
2794
|
+
template: "<div #element id=\"rs-drawer-container\" class=\"rs-drawer-container\">\r\n <div class=\"rs-drawer-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div\r\n #drawer\r\n class=\"rs-drawer\"\r\n [attr.data-mode]=\"config.mode\"\r\n [attr.data-opened]=\"($isOpened | async) ? 'yes' : 'no'\"\r\n [attr.data-transition]=\"useTransition\"\r\n >\r\n <div class=\"drawer-header\" #header>\r\n <button class=\"drawer-return-button\" (click)=\"hide()\">\r\n <span class=\"drawer-sub-title\" *ngIf=\"config.subTitle\">\r\n {{ config.subTitle }}\r\n </span>\r\n </button>\r\n <div class=\"drawer-title\">{{ config.title }}</div>\r\n <div class=\"drawer-header-slot\" #headerSlot></div>\r\n </div>\r\n <div class=\"drawer-top-slot\" #topSlot></div>\r\n <div class=\"drawer-content\" #content>\r\n <div class=\"drawer-content-container\">\r\n <ng-template #dynamicComponentContainer></ng-template>\r\n </div>\r\n </div>\r\n <div class=\"drawer-toolbar-slot\" #toolbarSlot></div>\r\n </div>\r\n</div>\r\n",
|
|
2795
|
+
styles: [":host{display:block;height:100%}#rs-drawer-container{height:100%}.rs-drawer-container{height:100%;background-color:transparent;overflow:hidden;position:relative}.rs-drawer-container .rs-drawer-content{width:100%;height:100%;overflow:auto;margin-right:0!important}.rs-drawer-container .rs-drawer-content::-webkit-scrollbar{width:5px;height:5px;background:#fff;position:static;z-index:999;border-radius:10px}.rs-drawer-container .rs-drawer-content::-webkit-scrollbar-thumb{background:#eaedf0}.rs-drawer-container .rs-drawer{width:100%;height:100%;border-left:none;background-color:transparent;overflow:visible;pointer-events:none;opacity:0;display:flex;flex-flow:column nowrap;position:absolute;z-index:2;top:0;left:100%}.rs-drawer-container .rs-drawer[data-opened=yes]{left:0;opacity:1}.rs-drawer-container .rs-drawer[data-transition=yes]{transition:opacity .5s ease-in-out,left .5s ease-in-out}.rs-drawer-container .rs-drawer .drawer-header{flex:none;display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:center;box-sizing:content-box;pointer-events:auto}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button{flex:none;display:flex;flex-flow:row nowrap;align-items:center;padding:0;border:none;background-color:transparent;cursor:pointer}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button::before{content:url(../../assets/img/drawer-back.svg);width:24px;height:24px;margin-right:8px;transition:transform 125ms ease-in-out}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button:hover::before{transform:translateX(-2px)}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button .drawer-sub-title{margin-right:12px;font-family:Arial;font-style:normal;font-weight:400}.rs-drawer-container .rs-drawer .drawer-header .drawer-title{flex:none;min-height:14px;padding:0 12px;border-left:1px solid #bdc4ca;font-family:Arial;font-style:normal;font-weight:400}.rs-drawer-container .rs-drawer .drawer-header .drawer-title:empty{padding:0}.rs-drawer-container .rs-drawer .drawer-content{flex:auto;padding:0 20px;border:1px solid #ebedf0;border-radius:15px;background-color:#fff;overflow:hidden;pointer-events:auto;display:flex;flex-flow:column nowrap}.rs-drawer-container .rs-drawer .drawer-content .drawer-content-container{flex:auto;overflow:hidden auto}.rs-drawer-container .rs-drawer .drawer-toolbar-slot{flex:none;height:32px;margin-left:auto;display:flex;flex-flow:row nowrap;justify-content:flex-end;align-items:center;pointer-events:auto}.rs-drawer-container .rs-drawer .drawer-toolbar-slot:empty{display:none}.rs-drawer-container .rs-drawer .drawer-top-slot{flex:none;pointer-events:auto}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-header{height:46px;padding:0 0 0 8px;background-color:#f7fafb}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-header .drawer-sub-title,.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-header .drawer-title{color:#1f3f5c;font-size:15px;font-weight:700;line-height:18px}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-content{margin-top:var(--drawer-top,0);padding-bottom:20px}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-content .drawer-content-container{margin-right:-20px;padding-right:20px}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-top-slot:empty{margin-top:var(--drawer-top,16px);box-shadow:0 min(0,var(--drawer-top,-16px)) #f8fafb}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header{height:24px;padding:6px 0;border-bottom:1px solid #eaedf0}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header .drawer-sub-title,.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header .drawer-title{color:#44566c;font-size:12px;line-height:14px}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header .drawer-title{font-weight:700}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-content .drawer-content-container{margin-right:-20px;padding-right:20px}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-toolbar-slot{width:100%;padding:16px 0;box-sizing:content-box;border-top:1px solid #eaedf0}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar]{display:flex;flex-flow:row nowrap;justify-content:flex-end;align-items:center;gap:12px}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button{display:flex;flex-flow:row nowrap;justify-content:center;align-items:center;gap:6px;min-width:80px;height:32px;padding:0 12px;border:1px solid #adb5bd;border-radius:4px;background-color:#fff;cursor:pointer;color:#44566c;font-size:13px;font-family:Arial;font-style:normal;font-weight:400;line-height:16px}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button:hover{border-color:#6c7c90}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button:disabled{opacity:1!important;border-color:#6c7c9066;color:#44566c66;cursor:unset}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button.primary{border:none;background-color:#1364b3;color:#fff}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button.primary:hover{background-color:#176bca}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button.primary:disabled{background-color:#1364b366}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button img{width:16px;height:16px}::ng-deep .rs-drawer-container .rs-drawer[data-mode=outer] .drawer-toolbar-slot [drawer-toolbar] button{height:26px;font-size:12px;line-height:14px}::ng-deep .rs-drawer-container .rs-drawer[data-mode=inner] .drawer-toolbar-slot [drawer-toolbar] button img{display:none}"]
|
|
2724
2796
|
}] }
|
|
2725
2797
|
];
|
|
2726
2798
|
/** @nocollapse */
|
|
@@ -2730,8 +2802,12 @@ var DrawerComponent = /** @class */ (function () {
|
|
|
2730
2802
|
]; };
|
|
2731
2803
|
DrawerComponent.propDecorators = {
|
|
2732
2804
|
element: [{ type: ViewChild, args: ["element", { static: false },] }],
|
|
2733
|
-
|
|
2805
|
+
drawer: [{ type: ViewChild, args: ["drawer", { static: false },] }],
|
|
2734
2806
|
header: [{ type: ViewChild, args: ["header", { static: false },] }],
|
|
2807
|
+
content: [{ type: ViewChild, args: ["content", { static: false },] }],
|
|
2808
|
+
toolbarSlot: [{ type: ViewChild, args: ["toolbarSlot", { static: false },] }],
|
|
2809
|
+
headerSlot: [{ type: ViewChild, args: ["headerSlot", { static: false },] }],
|
|
2810
|
+
topSlot: [{ type: ViewChild, args: ["topSlot", { static: false },] }],
|
|
2735
2811
|
container: [{ type: ViewChild, args: ["dynamicComponentContainer", {
|
|
2736
2812
|
read: ViewContainerRef,
|
|
2737
2813
|
static: false,
|
|
@@ -2743,9 +2819,17 @@ if (false) {
|
|
|
2743
2819
|
/** @type {?} */
|
|
2744
2820
|
DrawerComponent.prototype.element;
|
|
2745
2821
|
/** @type {?} */
|
|
2746
|
-
DrawerComponent.prototype.
|
|
2822
|
+
DrawerComponent.prototype.drawer;
|
|
2747
2823
|
/** @type {?} */
|
|
2748
2824
|
DrawerComponent.prototype.header;
|
|
2825
|
+
/** @type {?} */
|
|
2826
|
+
DrawerComponent.prototype.content;
|
|
2827
|
+
/** @type {?} */
|
|
2828
|
+
DrawerComponent.prototype.toolbarSlot;
|
|
2829
|
+
/** @type {?} */
|
|
2830
|
+
DrawerComponent.prototype.headerSlot;
|
|
2831
|
+
/** @type {?} */
|
|
2832
|
+
DrawerComponent.prototype.topSlot;
|
|
2749
2833
|
/**
|
|
2750
2834
|
* @type {?}
|
|
2751
2835
|
* @private
|