raise-common-lib 0.0.27 → 0.0.29
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 +54 -8
- 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/esm2015/lib/layout/grid-box/index.component.js +21 -7
- package/esm2015/lib/layout/multi-tab/index.component.js +12 -2
- package/esm2015/lib/layout/page-list/index.component.js +20 -7
- package/esm5/lib/layout/grid-box/index.component.js +24 -7
- package/esm5/lib/layout/multi-tab/index.component.js +16 -2
- package/esm5/lib/layout/page-list/index.component.js +23 -7
- package/fesm2015/raise-common-lib.js +45 -9
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +55 -9
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/layout/grid-box/index.component.d.ts +5 -2
- package/lib/layout/multi-tab/index.component.d.ts +1 -0
- package/lib/layout/page-list/index.component.d.ts +5 -2
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
- package/src/assets/style/reset/grid.scss +4 -2
|
@@ -1427,6 +1427,7 @@
|
|
|
1427
1427
|
function RsPageListComponent() {
|
|
1428
1428
|
this.customPageTitle = false;
|
|
1429
1429
|
this.isInner = false;
|
|
1430
|
+
this.hasWholeToolbarSlot = false;
|
|
1430
1431
|
}
|
|
1431
1432
|
/**
|
|
1432
1433
|
* @return {?}
|
|
@@ -1443,6 +1444,16 @@
|
|
|
1443
1444
|
_this.onSeach();
|
|
1444
1445
|
}), 300);
|
|
1445
1446
|
};
|
|
1447
|
+
/**
|
|
1448
|
+
* @return {?}
|
|
1449
|
+
*/
|
|
1450
|
+
RsPageListComponent.prototype.ngAfterContentInit = /**
|
|
1451
|
+
* @return {?}
|
|
1452
|
+
*/
|
|
1453
|
+
function () {
|
|
1454
|
+
// 检测是否传入了 wholeToolbarSlot
|
|
1455
|
+
this.hasWholeToolbarSlot = !!this.wholeToolbarSlot;
|
|
1456
|
+
};
|
|
1446
1457
|
/**
|
|
1447
1458
|
* @return {?}
|
|
1448
1459
|
*/
|
|
@@ -1463,13 +1474,14 @@
|
|
|
1463
1474
|
};
|
|
1464
1475
|
RsPageListComponent.decorators = [
|
|
1465
1476
|
{ type: core.Component, args: [{
|
|
1466
|
-
selector:
|
|
1467
|
-
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-content-wrap\">\r\n <div class=\"rs-toolbar-wrap\">\r\n <div class=\"rs-left-col\">\r\n <ng-content select=\"[leftToolbarBtnSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-right-col\">\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",
|
|
1468
|
-
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-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;margin-bottom:4px}.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;gap:12px}.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:28px}.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}"]
|
|
1477
|
+
selector: "rs-page-list",
|
|
1478
|
+
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-content-wrap\">\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",
|
|
1479
|
+
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-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;margin-bottom:4px}.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;gap:12px}.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:28px}.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}"]
|
|
1469
1480
|
}] }
|
|
1470
1481
|
];
|
|
1471
1482
|
RsPageListComponent.propDecorators = {
|
|
1472
1483
|
gridContent: [{ type: core.ContentChild, args: [CommonGridComponent, { static: true },] }],
|
|
1484
|
+
wholeToolbarSlot: [{ type: core.ContentChild, args: ["wholeToolbarSlot", { static: true },] }],
|
|
1473
1485
|
pageTitle: [{ type: core.Input }],
|
|
1474
1486
|
customPageTitle: [{ type: core.Input }],
|
|
1475
1487
|
isInner: [{ type: core.Input }]
|
|
@@ -1480,6 +1492,8 @@
|
|
|
1480
1492
|
/** @type {?} */
|
|
1481
1493
|
RsPageListComponent.prototype.gridContent;
|
|
1482
1494
|
/** @type {?} */
|
|
1495
|
+
RsPageListComponent.prototype.wholeToolbarSlot;
|
|
1496
|
+
/** @type {?} */
|
|
1483
1497
|
RsPageListComponent.prototype.pageTitle;
|
|
1484
1498
|
/** @type {?} */
|
|
1485
1499
|
RsPageListComponent.prototype.customPageTitle;
|
|
@@ -1491,6 +1505,8 @@
|
|
|
1491
1505
|
*/
|
|
1492
1506
|
RsPageListComponent.prototype.debouncedInput;
|
|
1493
1507
|
/** @type {?} */
|
|
1508
|
+
RsPageListComponent.prototype.hasWholeToolbarSlot;
|
|
1509
|
+
/** @type {?} */
|
|
1494
1510
|
RsPageListComponent.prototype.searchValue;
|
|
1495
1511
|
}
|
|
1496
1512
|
|
|
@@ -1567,6 +1583,7 @@
|
|
|
1567
1583
|
function GridBoxComponent() {
|
|
1568
1584
|
this.customPageTitle = false;
|
|
1569
1585
|
this.isInner = false;
|
|
1586
|
+
this.hasWholeToolbarSlot = false;
|
|
1570
1587
|
}
|
|
1571
1588
|
/**
|
|
1572
1589
|
* @return {?}
|
|
@@ -1583,6 +1600,16 @@
|
|
|
1583
1600
|
_this.onSeach();
|
|
1584
1601
|
}), 300);
|
|
1585
1602
|
};
|
|
1603
|
+
/**
|
|
1604
|
+
* @return {?}
|
|
1605
|
+
*/
|
|
1606
|
+
GridBoxComponent.prototype.ngAfterContentInit = /**
|
|
1607
|
+
* @return {?}
|
|
1608
|
+
*/
|
|
1609
|
+
function () {
|
|
1610
|
+
// 检测是否传入了 wholeToolbarSlot
|
|
1611
|
+
this.hasWholeToolbarSlot = !!this.wholeToolbarSlot;
|
|
1612
|
+
};
|
|
1586
1613
|
/**
|
|
1587
1614
|
* @return {?}
|
|
1588
1615
|
*/
|
|
@@ -1603,13 +1630,14 @@
|
|
|
1603
1630
|
};
|
|
1604
1631
|
GridBoxComponent.decorators = [
|
|
1605
1632
|
{ type: core.Component, args: [{
|
|
1606
|
-
selector:
|
|
1607
|
-
template: "<div class=\"rs-grid-box\" [ngClass]=\"{ 'is-not-inner': !isInner }\">\r\n <div class=\"rs-toolbar-wrap\">\r\n <div class=\"rs-left-col\">\r\n <ng-content select=\"[leftToolbarBtnSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-right-col\">\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",
|
|
1608
|
-
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;margin-bottom:4px}.rs-grid-box .rs-toolbar-wrap .rs-left-col,.rs-grid-box .rs-toolbar-wrap .rs-right-col{display:flex;gap:12px}.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:28px}.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}"]
|
|
1633
|
+
selector: "rs-grid-box",
|
|
1634
|
+
template: "<div class=\"rs-grid-box\" [ngClass]=\"{ 'is-not-inner': !isInner }\">\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",
|
|
1635
|
+
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;margin-bottom:4px}.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;gap:12px}.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:28px}.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}"]
|
|
1609
1636
|
}] }
|
|
1610
1637
|
];
|
|
1611
1638
|
GridBoxComponent.propDecorators = {
|
|
1612
|
-
gridContent: [{ type: core.ContentChild, args: [
|
|
1639
|
+
gridContent: [{ type: core.ContentChild, args: [CommonGridComponent, { static: true },] }],
|
|
1640
|
+
wholeToolbarSlot: [{ type: core.ContentChild, args: ["wholeToolbarSlot", { static: true },] }],
|
|
1613
1641
|
pageTitle: [{ type: core.Input }],
|
|
1614
1642
|
customPageTitle: [{ type: core.Input }],
|
|
1615
1643
|
isInner: [{ type: core.Input }]
|
|
@@ -1620,6 +1648,8 @@
|
|
|
1620
1648
|
/** @type {?} */
|
|
1621
1649
|
GridBoxComponent.prototype.gridContent;
|
|
1622
1650
|
/** @type {?} */
|
|
1651
|
+
GridBoxComponent.prototype.wholeToolbarSlot;
|
|
1652
|
+
/** @type {?} */
|
|
1623
1653
|
GridBoxComponent.prototype.pageTitle;
|
|
1624
1654
|
/** @type {?} */
|
|
1625
1655
|
GridBoxComponent.prototype.customPageTitle;
|
|
@@ -1631,6 +1661,8 @@
|
|
|
1631
1661
|
*/
|
|
1632
1662
|
GridBoxComponent.prototype.debouncedInput;
|
|
1633
1663
|
/** @type {?} */
|
|
1664
|
+
GridBoxComponent.prototype.hasWholeToolbarSlot;
|
|
1665
|
+
/** @type {?} */
|
|
1634
1666
|
GridBoxComponent.prototype.searchValue;
|
|
1635
1667
|
}
|
|
1636
1668
|
|
|
@@ -2215,7 +2247,21 @@
|
|
|
2215
2247
|
}
|
|
2216
2248
|
}
|
|
2217
2249
|
}));
|
|
2218
|
-
|
|
2250
|
+
};
|
|
2251
|
+
/**
|
|
2252
|
+
* @return {?}
|
|
2253
|
+
*/
|
|
2254
|
+
MultiTabComponent.prototype.ngAfterViewInit = /**
|
|
2255
|
+
* @return {?}
|
|
2256
|
+
*/
|
|
2257
|
+
function () {
|
|
2258
|
+
var _this = this;
|
|
2259
|
+
setTimeout((/**
|
|
2260
|
+
* @return {?}
|
|
2261
|
+
*/
|
|
2262
|
+
function () {
|
|
2263
|
+
_this.setEllipsisTitle();
|
|
2264
|
+
}), 50);
|
|
2219
2265
|
};
|
|
2220
2266
|
/**
|
|
2221
2267
|
* @param {?=} title
|