raise-common-lib 0.0.37 → 0.0.39
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 +84 -9
- 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/form/drawer-form/drawer-form.component.js +2 -2
- package/esm2015/lib/layout/drawer/index.component.js +13 -3
- package/esm2015/lib/layout/multi-tab/index.component.js +12 -4
- package/esm2015/lib/service/drawer.service.js +46 -4
- package/esm5/lib/form/drawer-form/drawer-form.component.js +2 -2
- package/esm5/lib/layout/drawer/index.component.js +16 -3
- package/esm5/lib/layout/multi-tab/index.component.js +12 -4
- package/esm5/lib/service/drawer.service.js +58 -4
- package/fesm2015/raise-common-lib.js +69 -9
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +84 -9
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/layout/drawer/index.component.d.ts +2 -0
- package/lib/layout/multi-tab/index.component.d.ts +1 -0
- package/lib/service/drawer.service.d.ts +9 -0
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
|
@@ -1340,6 +1340,7 @@ class DrawerService {
|
|
|
1340
1340
|
constructor(router) {
|
|
1341
1341
|
this.router = router;
|
|
1342
1342
|
this.resultPromiseResolveMap = new Map();
|
|
1343
|
+
this.ListenChangeCbs = new Set();
|
|
1343
1344
|
}
|
|
1344
1345
|
/**
|
|
1345
1346
|
* @return {?}
|
|
@@ -1408,7 +1409,9 @@ class DrawerService {
|
|
|
1408
1409
|
show(component, config, data = {}) {
|
|
1409
1410
|
/** @type {?} */
|
|
1410
1411
|
const drawer = this.uniqueDrawerComponent;
|
|
1411
|
-
if (!
|
|
1412
|
+
if (!this.checkChange("show", { component, config, data }) ||
|
|
1413
|
+
!drawer ||
|
|
1414
|
+
drawer.$isOpened.getValue()) {
|
|
1412
1415
|
return {
|
|
1413
1416
|
instance: null,
|
|
1414
1417
|
result: null,
|
|
@@ -1442,7 +1445,7 @@ class DrawerService {
|
|
|
1442
1445
|
const drawer = this.uniqueDrawerComponent;
|
|
1443
1446
|
/** @type {?} */
|
|
1444
1447
|
const resolve = this.resultPromiseResolveMap.get(this.cacheKey);
|
|
1445
|
-
if (resolve) {
|
|
1448
|
+
if (resolve && this.checkChange("hide")) {
|
|
1446
1449
|
resolve({ type: "hide" });
|
|
1447
1450
|
drawer && drawer.back();
|
|
1448
1451
|
}
|
|
@@ -1456,7 +1459,7 @@ class DrawerService {
|
|
|
1456
1459
|
const drawer = this.uniqueDrawerComponent;
|
|
1457
1460
|
/** @type {?} */
|
|
1458
1461
|
const resolve = this.resultPromiseResolveMap.get(this.cacheKey);
|
|
1459
|
-
if (resolve) {
|
|
1462
|
+
if (resolve && this.checkChange("complete", { data })) {
|
|
1460
1463
|
resolve({ type: "complete", data });
|
|
1461
1464
|
drawer && drawer.back();
|
|
1462
1465
|
}
|
|
@@ -1470,6 +1473,40 @@ class DrawerService {
|
|
|
1470
1473
|
const drawer = this.uniqueDrawerComponent;
|
|
1471
1474
|
drawer && drawer.deleteCache(cacheKey);
|
|
1472
1475
|
}
|
|
1476
|
+
/**
|
|
1477
|
+
* @param {?} callback
|
|
1478
|
+
* @return {?}
|
|
1479
|
+
*/
|
|
1480
|
+
onChange(callback) {
|
|
1481
|
+
this.ListenChangeCbs.add(callback);
|
|
1482
|
+
return (/**
|
|
1483
|
+
* @return {?}
|
|
1484
|
+
*/
|
|
1485
|
+
() => {
|
|
1486
|
+
this.ListenChangeCbs.delete(callback);
|
|
1487
|
+
});
|
|
1488
|
+
}
|
|
1489
|
+
/**
|
|
1490
|
+
* @private
|
|
1491
|
+
* @param {?} type
|
|
1492
|
+
* @param {?=} detail
|
|
1493
|
+
* @return {?}
|
|
1494
|
+
*/
|
|
1495
|
+
checkChange(type, detail = {}) {
|
|
1496
|
+
/** @type {?} */
|
|
1497
|
+
let cancel = false;
|
|
1498
|
+
/** @type {?} */
|
|
1499
|
+
const event = { type, cancel: (/**
|
|
1500
|
+
* @return {?}
|
|
1501
|
+
*/
|
|
1502
|
+
() => (cancel = true)), detail };
|
|
1503
|
+
this.ListenChangeCbs.forEach((/**
|
|
1504
|
+
* @param {?} cb
|
|
1505
|
+
* @return {?}
|
|
1506
|
+
*/
|
|
1507
|
+
(cb) => cb(event)));
|
|
1508
|
+
return !cancel;
|
|
1509
|
+
}
|
|
1473
1510
|
}
|
|
1474
1511
|
DrawerService.decorators = [
|
|
1475
1512
|
{ type: Injectable, args: [{
|
|
@@ -1502,6 +1539,11 @@ if (false) {
|
|
|
1502
1539
|
* @private
|
|
1503
1540
|
*/
|
|
1504
1541
|
DrawerService.prototype.routerSubscription;
|
|
1542
|
+
/**
|
|
1543
|
+
* @type {?}
|
|
1544
|
+
* @private
|
|
1545
|
+
*/
|
|
1546
|
+
DrawerService.prototype.ListenChangeCbs;
|
|
1505
1547
|
/**
|
|
1506
1548
|
* @type {?}
|
|
1507
1549
|
* @private
|
|
@@ -1531,6 +1573,8 @@ class MultiTabComponent {
|
|
|
1531
1573
|
this.drawer = drawer;
|
|
1532
1574
|
this.routeReuseStrategy = routeReuseStrategy;
|
|
1533
1575
|
this.singleReuseUrls = []; //只能单个缓存的url
|
|
1576
|
+
//只能单个缓存的url
|
|
1577
|
+
this.noGenerateTabUrls = []; //不生成tab的url
|
|
1534
1578
|
this.TAB_WIDTH = 164;
|
|
1535
1579
|
this.GAP_NORMAL = 54;
|
|
1536
1580
|
this.GAP_SMALL = 30;
|
|
@@ -1589,6 +1633,9 @@ class MultiTabComponent {
|
|
|
1589
1633
|
if (this.tabList.length === 0 && !state) {
|
|
1590
1634
|
return; // 初始化第一个url不加入multi-tab
|
|
1591
1635
|
}
|
|
1636
|
+
if (this.noGenerateTabUrls.includes(this.router.url)) {
|
|
1637
|
+
return; // 排除不生成tab的url
|
|
1638
|
+
}
|
|
1592
1639
|
this.setTab(this.router.url, currentRoute.snapshot.routeConfig.path, state && state.title);
|
|
1593
1640
|
}
|
|
1594
1641
|
}
|
|
@@ -1728,7 +1775,7 @@ class MultiTabComponent {
|
|
|
1728
1775
|
this.tabList.push({
|
|
1729
1776
|
url: url,
|
|
1730
1777
|
title: title || "default",
|
|
1731
|
-
displayTitle:
|
|
1778
|
+
displayTitle: title,
|
|
1732
1779
|
});
|
|
1733
1780
|
this.selectedTab = this.tabList.length - 1;
|
|
1734
1781
|
this.setEllipsisTitle();
|
|
@@ -1798,8 +1845,8 @@ class MultiTabComponent {
|
|
|
1798
1845
|
MultiTabComponent.decorators = [
|
|
1799
1846
|
{ type: Component, args: [{
|
|
1800
1847
|
selector: "rs-multi-tab",
|
|
1801
|
-
template: "<div class=\"rs-multi-tab\"
|
|
1802
|
-
styles: [".rs-multi-tab{
|
|
1848
|
+
template: "<div class=\"rs-multi-tab\" [ngClass]=\"{ 'border': tabList.length > 0 }\">\r\n <ul>\r\n <ng-container *ngFor=\"let tab of tabList; let i = index\">\r\n <li\r\n [ngClass]=\"selectedTab === i ? 'isSelect' : 'notSelect'\"\r\n (click)=\"changeTab(tab, i)\"\r\n >\r\n <ejs-tooltip\r\n id=\"notSelectTooltip\"\r\n [showTipPointer]=\"false\"\r\n [openDelay]=\"500\"\r\n *ngIf=\"tab.displayTitle !== tab.title; else originText\"\r\n style=\"height: 27px\"\r\n >\r\n <ng-template #content>\r\n <div class=\"tooltip-content\">\r\n {{ tab.title }}\r\n </div>\r\n </ng-template>\r\n <span class=\"tabTitle\">{{ tab.displayTitle }}</span>\r\n </ejs-tooltip>\r\n <ng-template #originText>\r\n <span class=\"tabTitle\">\r\n {{ tab.displayTitle }}\r\n </span>\r\n </ng-template>\r\n <span class=\"img-block\" *ngIf=\"selectedTab !== i\"></span>\r\n <img\r\n *ngIf=\"tabList.length !== 1\"\r\n src=\"../../../assets/img/close-url.svg\"\r\n (click)=\"closeTab(tab, i)\"\r\n />\r\n </li>\r\n </ng-container>\r\n </ul>\r\n <div class=\"refresh-tab\" (click)=\"refreshTab()\" *ngIf=\"tabList.length > 0\">\r\n <img\r\n id=\"loadingIcon\"\r\n alt\r\n class=\"refresh-btn\"\r\n src=\"../../../assets/img/desktop-refresh-btn.svg\"\r\n />\r\n <span>Refresh Current Tab</span>\r\n </div>\r\n</div>\r\n",
|
|
1849
|
+
styles: [".rs-multi-tab{width:100%;display:flex;justify-content:space-between}.rs-multi-tab.border{border-bottom:1px solid #e5eaef}.rs-multi-tab ul{display:flex;margin:0 8px;padding:0;overflow:hidden;height:100%}.rs-multi-tab ul li{max-width:164px;padding:0 12px;display:flex;align-items:center;flex:auto;border:1px solid #e5eaef;border-bottom:none;color:#5f6f81;font-family:Arial;font-size:11px;font-style:normal;font-weight:400;line-height:28px;height:28px;background:#f8fafb;vertical-align:top;position:relative;cursor:default}.rs-multi-tab ul li .tabTitle{display:inline-block;white-space:nowrap;font-size:11px;font-family:Arial;font-style:normal;font-weight:400;line-height:16px;transition:width .3s}.rs-multi-tab ul li img{border-radius:4px;padding:4px;margin-left:6px;margin-top:1px;vertical-align:top;cursor:pointer}.rs-multi-tab ul li img:hover{background:#dce8f6}.rs-multi-tab ul li:not(:last-child){border-right:none}.rs-multi-tab ul li:first-of-type{border-top-left-radius:8px}.rs-multi-tab ul li:last-child{border-top-right-radius:8px}.rs-multi-tab ul .isSelect{color:#1f3f5c;background:#fff}.rs-multi-tab ul .notSelect img{display:none}.rs-multi-tab ul .notSelect .img-block{display:inline-block;width:22px}.rs-multi-tab ul .notSelect:hover{color:#1f3f5c;background-color:rgba(31,123,255,.04)}.rs-multi-tab ul .notSelect:hover .img-block{display:none}.rs-multi-tab ul .notSelect:hover img{display:inline-block}.rs-multi-tab .refresh-tab{cursor:pointer;text-align:right;color:#6c7c90;font-family:Arial;font-size:11px;font-style:normal;font-weight:400;line-height:28px;padding-right:12px}.rs-multi-tab .refresh-tab img{vertical-align:middle;margin-right:4px}.refresh-tab-loading{-webkit-animation:1s linear infinite spin;animation:1s linear infinite spin}@-webkit-keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.tooltip-content{padding:4px;color:#f8fafb;font-family:Arial;font-size:11px;font-style:normal;font-weight:400;line-height:14px}@media (max-width:1400px){.refresh-tab{padding-right:0!important}.refresh-tab span{display:none!important}}@media (max-width:1100px){.rs-multi-tab ul li img{position:absolute;right:3px;background-color:#fff}.notSelect:hover img{position:absolute;right:3px;background-color:#eff5fb}.img-block{display:none!important}}@media (max-width:600px){.rs-multi-tab ul li{padding:0 8px}.rs-multi-tab ul .notSelect .img-block{width:0!important}}"]
|
|
1803
1850
|
}] }
|
|
1804
1851
|
];
|
|
1805
1852
|
/** @nocollapse */
|
|
@@ -1813,6 +1860,7 @@ MultiTabComponent.ctorParameters = () => [
|
|
|
1813
1860
|
];
|
|
1814
1861
|
MultiTabComponent.propDecorators = {
|
|
1815
1862
|
singleReuseUrls: [{ type: Input }],
|
|
1863
|
+
noGenerateTabUrls: [{ type: Input }],
|
|
1816
1864
|
onResize: [{ type: HostListener, args: ["window:resize", ["$event"],] }]
|
|
1817
1865
|
};
|
|
1818
1866
|
if (false) {
|
|
@@ -1820,6 +1868,8 @@ if (false) {
|
|
|
1820
1868
|
MultiTabComponent.prototype.keepAlive;
|
|
1821
1869
|
/** @type {?} */
|
|
1822
1870
|
MultiTabComponent.prototype.singleReuseUrls;
|
|
1871
|
+
/** @type {?} */
|
|
1872
|
+
MultiTabComponent.prototype.noGenerateTabUrls;
|
|
1823
1873
|
/**
|
|
1824
1874
|
* @type {?}
|
|
1825
1875
|
* @private
|
|
@@ -1884,6 +1934,7 @@ class DrawerComponent {
|
|
|
1884
1934
|
this.config = DefaultDrawerConfig;
|
|
1885
1935
|
this.useTransition = "yes";
|
|
1886
1936
|
this.$isOpened = new BehaviorSubject(false);
|
|
1937
|
+
this.showToolbarContainer = true;
|
|
1887
1938
|
this.componentRefMap = new Map();
|
|
1888
1939
|
}
|
|
1889
1940
|
/**
|
|
@@ -1948,6 +1999,7 @@ class DrawerComponent {
|
|
|
1948
1999
|
/** @type {?} */
|
|
1949
2000
|
const toolbarContainerEl = this.toolbar.nativeElement;
|
|
1950
2001
|
toolbarContainerEl.innerHTML = "";
|
|
2002
|
+
this.showToolbarContainer = !!toolbarEl;
|
|
1951
2003
|
if (toolbarEl) {
|
|
1952
2004
|
toolbarContainerEl.append(toolbarEl);
|
|
1953
2005
|
}
|
|
@@ -1978,6 +2030,12 @@ class DrawerComponent {
|
|
|
1978
2030
|
this.useTransition = "yes";
|
|
1979
2031
|
return componentRef.instance;
|
|
1980
2032
|
}
|
|
2033
|
+
/**
|
|
2034
|
+
* @return {?}
|
|
2035
|
+
*/
|
|
2036
|
+
hide() {
|
|
2037
|
+
this.service.hide();
|
|
2038
|
+
}
|
|
1981
2039
|
/**
|
|
1982
2040
|
* @return {?}
|
|
1983
2041
|
*/
|
|
@@ -2026,8 +2084,8 @@ class DrawerComponent {
|
|
|
2026
2084
|
DrawerComponent.decorators = [
|
|
2027
2085
|
{ type: Component, args: [{
|
|
2028
2086
|
selector: "rs-drawer",
|
|
2029
|
-
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)=\"
|
|
2030
|
-
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;top:0;left:100%}.rs-drawer-container .rs-drawer[data-opened=yes]{left:0;opacity:1;pointer-events:auto}.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}.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;padding-left:12px;border-left:1px solid #bdc4ca;font-family:Arial;font-style:normal;font-weight:400}.rs-drawer-container .rs-drawer .drawer-content{flex:auto;overflow:hidden}.rs-drawer-container .rs-drawer .drawer-content .drawer-content-container{height:100%;overflow:hidden auto}.rs-drawer-container .rs-drawer .drawer-footer{flex:none;height:32px;padding:16px 0;box-sizing:content-box;border-top:1px solid #eaedf0;display:flex;flex-flow:row nowrap;justify-content:flex-end;align-items:center}.rs-drawer-container .rs-drawer .drawer-footer .drawer-toolbar{height:32px;display:flex;flex-flow:row nowrap;justify-content:flex-end;align-items:center}.rs-drawer-container .rs-drawer[data-mode=inner],.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-content{padding:0 20px;border:1px solid #ebedf0;border-radius:15px;background-color:#fff}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-header{height:46px;padding:0 24px 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{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=outer] .drawer-footer{height:0;padding:0;border:none}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-footer .drawer-toolbar{position:absolute;top:7px;right:0;z-index:1}.rs-drawer-container .rs-drawer[data-mode=inner]{height:calc(100% - 16px);margin-top:16px;box-shadow:0 -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{padding:0 20px 0 8px}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-content .drawer-content-container{margin-right:-20px;padding-right:20px}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar [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 [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 [drawer-toolbar] button:hover{border-color:#6c7c90}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar [drawer-toolbar] button:disabled{opacity:1!important;border-color:#6c7c9066;color:#44566c66;cursor:unset}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar [drawer-toolbar] button.primary{border:none;background-color:#1364b3;color:#fff}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar [drawer-toolbar] button.primary:hover{background-color:#176bca}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar [drawer-toolbar] button.primary:disabled{background-color:#1364b366}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar [drawer-toolbar] button img{width:16px;height:16px}::ng-deep .rs-drawer-container .rs-drawer[data-mode=outer] .drawer-toolbar [drawer-toolbar] button{height:26px;font-size:12px;line-height:14px}::ng-deep .rs-drawer-container .rs-drawer[data-mode=inner] .drawer-toolbar [drawer-toolbar] button img{display:none}"]
|
|
2087
|
+
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>\r\n <div class=\"drawer-content\">\r\n <div class=\"drawer-content-container\">\r\n <ng-template #dynamicComponentContainer></ng-template>\r\n </div>\r\n </div>\r\n <div\r\n class=\"drawer-footer\"\r\n [attr.data-show-footer]=\"showToolbarContainer ? 'yes' : 'no'\"\r\n >\r\n <div class=\"drawer-toolbar\" #toolbar></div>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
2088
|
+
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;top:0;left:100%}.rs-drawer-container .rs-drawer[data-opened=yes]{left:0;opacity:1;pointer-events:auto}.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}.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;padding-left:12px;border-left:1px solid #bdc4ca;font-family:Arial;font-style:normal;font-weight:400}.rs-drawer-container .rs-drawer .drawer-content{flex:auto;overflow:hidden}.rs-drawer-container .rs-drawer .drawer-content .drawer-content-container{height:100%;overflow:hidden auto}.rs-drawer-container .rs-drawer .drawer-footer{flex:none;height:32px;padding:16px 0;box-sizing:content-box;border-top:1px solid #eaedf0;display:flex;flex-flow:row nowrap;justify-content:flex-end;align-items:center}.rs-drawer-container .rs-drawer .drawer-footer[data-show-footer=no]{display:none}.rs-drawer-container .rs-drawer .drawer-footer .drawer-toolbar{height:32px;display:flex;flex-flow:row nowrap;justify-content:flex-end;align-items:center}.rs-drawer-container .rs-drawer[data-mode=inner],.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-content{padding:0 20px;border:1px solid #ebedf0;border-radius:15px;background-color:#fff}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-header{height:46px;padding:0 24px 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{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=outer] .drawer-footer{height:0;padding:0;border:none}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-footer .drawer-toolbar{position:absolute;top:7px;right:0;z-index:1}.rs-drawer-container .rs-drawer[data-mode=inner]{height:calc(100% - 16px);margin-top:16px;box-shadow:0 -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{padding:0 20px 0 8px}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-content .drawer-content-container{margin-right:-20px;padding-right:20px}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar [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 [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 [drawer-toolbar] button:hover{border-color:#6c7c90}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar [drawer-toolbar] button:disabled{opacity:1!important;border-color:#6c7c9066;color:#44566c66;cursor:unset}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar [drawer-toolbar] button.primary{border:none;background-color:#1364b3;color:#fff}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar [drawer-toolbar] button.primary:hover{background-color:#176bca}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar [drawer-toolbar] button.primary:disabled{background-color:#1364b366}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar [drawer-toolbar] button img{width:16px;height:16px}::ng-deep .rs-drawer-container .rs-drawer[data-mode=outer] .drawer-toolbar [drawer-toolbar] button{height:26px;font-size:12px;line-height:14px}::ng-deep .rs-drawer-container .rs-drawer[data-mode=inner] .drawer-toolbar [drawer-toolbar] button img{display:none}"]
|
|
2031
2089
|
}] }
|
|
2032
2090
|
];
|
|
2033
2091
|
/** @nocollapse */
|
|
@@ -2059,6 +2117,8 @@ if (false) {
|
|
|
2059
2117
|
DrawerComponent.prototype.useTransition;
|
|
2060
2118
|
/** @type {?} */
|
|
2061
2119
|
DrawerComponent.prototype.$isOpened;
|
|
2120
|
+
/** @type {?} */
|
|
2121
|
+
DrawerComponent.prototype.showToolbarContainer;
|
|
2062
2122
|
/**
|
|
2063
2123
|
* @type {?}
|
|
2064
2124
|
* @private
|
|
@@ -19784,7 +19844,7 @@ class DrawerFormComponent {
|
|
|
19784
19844
|
* @return {?}
|
|
19785
19845
|
*/
|
|
19786
19846
|
getOptionFields(field) {
|
|
19787
|
-
if (field.fieldFormType
|
|
19847
|
+
if (["Dropdown", "AutoComplete"].includes(field.fieldFormType)) {
|
|
19788
19848
|
return Object.assign({}, this.optionFields, { groupBy: field.groupKey || null });
|
|
19789
19849
|
}
|
|
19790
19850
|
return this.optionFields;
|