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
|
@@ -1579,6 +1579,7 @@ var DrawerService = /** @class */ (function () {
|
|
|
1579
1579
|
function DrawerService(router) {
|
|
1580
1580
|
this.router = router;
|
|
1581
1581
|
this.resultPromiseResolveMap = new Map();
|
|
1582
|
+
this.ListenChangeCbs = new Set();
|
|
1582
1583
|
}
|
|
1583
1584
|
Object.defineProperty(DrawerService.prototype, "cacheKey", {
|
|
1584
1585
|
get: /**
|
|
@@ -1675,7 +1676,9 @@ var DrawerService = /** @class */ (function () {
|
|
|
1675
1676
|
if (data === void 0) { data = {}; }
|
|
1676
1677
|
/** @type {?} */
|
|
1677
1678
|
var drawer = this.uniqueDrawerComponent;
|
|
1678
|
-
if (!
|
|
1679
|
+
if (!this.checkChange("show", { component: component, config: config, data: data }) ||
|
|
1680
|
+
!drawer ||
|
|
1681
|
+
drawer.$isOpened.getValue()) {
|
|
1679
1682
|
return {
|
|
1680
1683
|
instance: null,
|
|
1681
1684
|
result: null,
|
|
@@ -1712,7 +1715,7 @@ var DrawerService = /** @class */ (function () {
|
|
|
1712
1715
|
var drawer = this.uniqueDrawerComponent;
|
|
1713
1716
|
/** @type {?} */
|
|
1714
1717
|
var resolve = this.resultPromiseResolveMap.get(this.cacheKey);
|
|
1715
|
-
if (resolve) {
|
|
1718
|
+
if (resolve && this.checkChange("hide")) {
|
|
1716
1719
|
resolve({ type: "hide" });
|
|
1717
1720
|
drawer && drawer.back();
|
|
1718
1721
|
}
|
|
@@ -1730,7 +1733,7 @@ var DrawerService = /** @class */ (function () {
|
|
|
1730
1733
|
var drawer = this.uniqueDrawerComponent;
|
|
1731
1734
|
/** @type {?} */
|
|
1732
1735
|
var resolve = this.resultPromiseResolveMap.get(this.cacheKey);
|
|
1733
|
-
if (resolve) {
|
|
1736
|
+
if (resolve && this.checkChange("complete", { data: data })) {
|
|
1734
1737
|
resolve({ type: "complete", data: data });
|
|
1735
1738
|
drawer && drawer.back();
|
|
1736
1739
|
}
|
|
@@ -1748,6 +1751,52 @@ var DrawerService = /** @class */ (function () {
|
|
|
1748
1751
|
var drawer = this.uniqueDrawerComponent;
|
|
1749
1752
|
drawer && drawer.deleteCache(cacheKey);
|
|
1750
1753
|
};
|
|
1754
|
+
/**
|
|
1755
|
+
* @param {?} callback
|
|
1756
|
+
* @return {?}
|
|
1757
|
+
*/
|
|
1758
|
+
DrawerService.prototype.onChange = /**
|
|
1759
|
+
* @param {?} callback
|
|
1760
|
+
* @return {?}
|
|
1761
|
+
*/
|
|
1762
|
+
function (callback) {
|
|
1763
|
+
var _this = this;
|
|
1764
|
+
this.ListenChangeCbs.add(callback);
|
|
1765
|
+
return (/**
|
|
1766
|
+
* @return {?}
|
|
1767
|
+
*/
|
|
1768
|
+
function () {
|
|
1769
|
+
_this.ListenChangeCbs.delete(callback);
|
|
1770
|
+
});
|
|
1771
|
+
};
|
|
1772
|
+
/**
|
|
1773
|
+
* @private
|
|
1774
|
+
* @param {?} type
|
|
1775
|
+
* @param {?=} detail
|
|
1776
|
+
* @return {?}
|
|
1777
|
+
*/
|
|
1778
|
+
DrawerService.prototype.checkChange = /**
|
|
1779
|
+
* @private
|
|
1780
|
+
* @param {?} type
|
|
1781
|
+
* @param {?=} detail
|
|
1782
|
+
* @return {?}
|
|
1783
|
+
*/
|
|
1784
|
+
function (type, detail) {
|
|
1785
|
+
if (detail === void 0) { detail = {}; }
|
|
1786
|
+
/** @type {?} */
|
|
1787
|
+
var cancel = false;
|
|
1788
|
+
/** @type {?} */
|
|
1789
|
+
var event = { type: type, cancel: (/**
|
|
1790
|
+
* @return {?}
|
|
1791
|
+
*/
|
|
1792
|
+
function () { return (cancel = true); }), detail: detail };
|
|
1793
|
+
this.ListenChangeCbs.forEach((/**
|
|
1794
|
+
* @param {?} cb
|
|
1795
|
+
* @return {?}
|
|
1796
|
+
*/
|
|
1797
|
+
function (cb) { return cb(event); }));
|
|
1798
|
+
return !cancel;
|
|
1799
|
+
};
|
|
1751
1800
|
DrawerService.decorators = [
|
|
1752
1801
|
{ type: Injectable, args: [{
|
|
1753
1802
|
providedIn: "root",
|
|
@@ -1781,6 +1830,11 @@ if (false) {
|
|
|
1781
1830
|
* @private
|
|
1782
1831
|
*/
|
|
1783
1832
|
DrawerService.prototype.routerSubscription;
|
|
1833
|
+
/**
|
|
1834
|
+
* @type {?}
|
|
1835
|
+
* @private
|
|
1836
|
+
*/
|
|
1837
|
+
DrawerService.prototype.ListenChangeCbs;
|
|
1784
1838
|
/**
|
|
1785
1839
|
* @type {?}
|
|
1786
1840
|
* @private
|
|
@@ -1802,6 +1856,8 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
1802
1856
|
this.drawer = drawer;
|
|
1803
1857
|
this.routeReuseStrategy = routeReuseStrategy;
|
|
1804
1858
|
this.singleReuseUrls = []; //只能单个缓存的url
|
|
1859
|
+
//只能单个缓存的url
|
|
1860
|
+
this.noGenerateTabUrls = []; //不生成tab的url
|
|
1805
1861
|
this.TAB_WIDTH = 164;
|
|
1806
1862
|
this.GAP_NORMAL = 54;
|
|
1807
1863
|
this.GAP_SMALL = 30;
|
|
@@ -1870,6 +1926,9 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
1870
1926
|
if (_this.tabList.length === 0 && !state) {
|
|
1871
1927
|
return; // 初始化第一个url不加入multi-tab
|
|
1872
1928
|
}
|
|
1929
|
+
if (_this.noGenerateTabUrls.includes(_this.router.url)) {
|
|
1930
|
+
return; // 排除不生成tab的url
|
|
1931
|
+
}
|
|
1873
1932
|
_this.setTab(_this.router.url, currentRoute.snapshot.routeConfig.path, state && state.title);
|
|
1874
1933
|
}
|
|
1875
1934
|
}
|
|
@@ -2042,7 +2101,7 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
2042
2101
|
this.tabList.push({
|
|
2043
2102
|
url: url,
|
|
2044
2103
|
title: title || "default",
|
|
2045
|
-
displayTitle:
|
|
2104
|
+
displayTitle: title,
|
|
2046
2105
|
});
|
|
2047
2106
|
this.selectedTab = this.tabList.length - 1;
|
|
2048
2107
|
this.setEllipsisTitle();
|
|
@@ -2126,8 +2185,8 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
2126
2185
|
MultiTabComponent.decorators = [
|
|
2127
2186
|
{ type: Component, args: [{
|
|
2128
2187
|
selector: "rs-multi-tab",
|
|
2129
|
-
template: "<div class=\"rs-multi-tab\"
|
|
2130
|
-
styles: [".rs-multi-tab{
|
|
2188
|
+
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",
|
|
2189
|
+
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}}"]
|
|
2131
2190
|
}] }
|
|
2132
2191
|
];
|
|
2133
2192
|
/** @nocollapse */
|
|
@@ -2141,6 +2200,7 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
2141
2200
|
]; };
|
|
2142
2201
|
MultiTabComponent.propDecorators = {
|
|
2143
2202
|
singleReuseUrls: [{ type: Input }],
|
|
2203
|
+
noGenerateTabUrls: [{ type: Input }],
|
|
2144
2204
|
onResize: [{ type: HostListener, args: ["window:resize", ["$event"],] }]
|
|
2145
2205
|
};
|
|
2146
2206
|
return MultiTabComponent;
|
|
@@ -2150,6 +2210,8 @@ if (false) {
|
|
|
2150
2210
|
MultiTabComponent.prototype.keepAlive;
|
|
2151
2211
|
/** @type {?} */
|
|
2152
2212
|
MultiTabComponent.prototype.singleReuseUrls;
|
|
2213
|
+
/** @type {?} */
|
|
2214
|
+
MultiTabComponent.prototype.noGenerateTabUrls;
|
|
2153
2215
|
/**
|
|
2154
2216
|
* @type {?}
|
|
2155
2217
|
* @private
|
|
@@ -2210,6 +2272,7 @@ var DrawerComponent = /** @class */ (function () {
|
|
|
2210
2272
|
this.config = DefaultDrawerConfig;
|
|
2211
2273
|
this.useTransition = "yes";
|
|
2212
2274
|
this.$isOpened = new BehaviorSubject(false);
|
|
2275
|
+
this.showToolbarContainer = true;
|
|
2213
2276
|
this.componentRefMap = new Map();
|
|
2214
2277
|
}
|
|
2215
2278
|
/**
|
|
@@ -2302,6 +2365,7 @@ var DrawerComponent = /** @class */ (function () {
|
|
|
2302
2365
|
/** @type {?} */
|
|
2303
2366
|
var toolbarContainerEl = this.toolbar.nativeElement;
|
|
2304
2367
|
toolbarContainerEl.innerHTML = "";
|
|
2368
|
+
this.showToolbarContainer = !!toolbarEl;
|
|
2305
2369
|
if (toolbarEl) {
|
|
2306
2370
|
toolbarContainerEl.append(toolbarEl);
|
|
2307
2371
|
}
|
|
@@ -2339,6 +2403,15 @@ var DrawerComponent = /** @class */ (function () {
|
|
|
2339
2403
|
this.useTransition = "yes";
|
|
2340
2404
|
return componentRef.instance;
|
|
2341
2405
|
};
|
|
2406
|
+
/**
|
|
2407
|
+
* @return {?}
|
|
2408
|
+
*/
|
|
2409
|
+
DrawerComponent.prototype.hide = /**
|
|
2410
|
+
* @return {?}
|
|
2411
|
+
*/
|
|
2412
|
+
function () {
|
|
2413
|
+
this.service.hide();
|
|
2414
|
+
};
|
|
2342
2415
|
/**
|
|
2343
2416
|
* @return {?}
|
|
2344
2417
|
*/
|
|
@@ -2396,8 +2469,8 @@ var DrawerComponent = /** @class */ (function () {
|
|
|
2396
2469
|
DrawerComponent.decorators = [
|
|
2397
2470
|
{ type: Component, args: [{
|
|
2398
2471
|
selector: "rs-drawer",
|
|
2399
|
-
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)=\"
|
|
2400
|
-
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}"]
|
|
2472
|
+
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",
|
|
2473
|
+
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}"]
|
|
2401
2474
|
}] }
|
|
2402
2475
|
];
|
|
2403
2476
|
/** @nocollapse */
|
|
@@ -2431,6 +2504,8 @@ if (false) {
|
|
|
2431
2504
|
DrawerComponent.prototype.useTransition;
|
|
2432
2505
|
/** @type {?} */
|
|
2433
2506
|
DrawerComponent.prototype.$isOpened;
|
|
2507
|
+
/** @type {?} */
|
|
2508
|
+
DrawerComponent.prototype.showToolbarContainer;
|
|
2434
2509
|
/**
|
|
2435
2510
|
* @type {?}
|
|
2436
2511
|
* @private
|
|
@@ -20358,7 +20433,7 @@ var DrawerFormComponent = /** @class */ (function () {
|
|
|
20358
20433
|
* @return {?}
|
|
20359
20434
|
*/
|
|
20360
20435
|
function (field) {
|
|
20361
|
-
if (field.fieldFormType
|
|
20436
|
+
if (["Dropdown", "AutoComplete"].includes(field.fieldFormType)) {
|
|
20362
20437
|
return __assign({}, this.optionFields, { groupBy: field.groupKey || null });
|
|
20363
20438
|
}
|
|
20364
20439
|
return this.optionFields;
|