raise-common-lib 0.0.20 → 0.0.22

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.
Files changed (31) hide show
  1. package/bundles/raise-common-lib.umd.js +114 -62
  2. package/bundles/raise-common-lib.umd.js.map +1 -1
  3. package/bundles/raise-common-lib.umd.min.js +1 -1
  4. package/bundles/raise-common-lib.umd.min.js.map +1 -1
  5. package/esm2015/lib/layout/main-container/index.component.js +18 -4
  6. package/esm2015/lib/layout/multi-tab/index.component.js +16 -4
  7. package/esm2015/lib/layout/page-tab/index.component.js +2 -2
  8. package/esm2015/lib/layout/rs-aside/index.component.js +13 -4
  9. package/esm2015/lib/layout/rs-header/index.component.js +7 -6
  10. package/esm2015/lib/service/dialog.service.js +4 -4
  11. package/esm2015/lib/service/keep-alive.service.js +26 -5
  12. package/esm5/lib/layout/main-container/index.component.js +21 -4
  13. package/esm5/lib/layout/multi-tab/index.component.js +16 -7
  14. package/esm5/lib/layout/page-tab/index.component.js +2 -2
  15. package/esm5/lib/layout/rs-aside/index.component.js +13 -4
  16. package/esm5/lib/layout/rs-header/index.component.js +7 -6
  17. package/esm5/lib/service/dialog.service.js +4 -4
  18. package/esm5/lib/service/keep-alive.service.js +27 -9
  19. package/fesm2015/raise-common-lib.js +105 -51
  20. package/fesm2015/raise-common-lib.js.map +1 -1
  21. package/fesm5/raise-common-lib.js +114 -62
  22. package/fesm5/raise-common-lib.js.map +1 -1
  23. package/lib/layout/main-container/index.component.d.ts +2 -0
  24. package/lib/layout/multi-tab/index.component.d.ts +3 -2
  25. package/lib/layout/rs-aside/index.component.d.ts +2 -1
  26. package/lib/layout/rs-header/index.component.d.ts +1 -1
  27. package/package.json +1 -1
  28. package/raise-common-lib.metadata.json +1 -1
  29. package/src/assets/style/reset/grid.scss +5 -1
  30. package/src/assets/style/reset/mat-dialog.scss +6 -2
  31. package/src/assets/img/split-button-arrow copy.svg +0 -3
@@ -1126,7 +1126,7 @@ class RsPageTabComponent {
1126
1126
  RsPageTabComponent.decorators = [
1127
1127
  { type: Component, args: [{
1128
1128
  selector: "rs-page-tab",
1129
- 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\toverflowMode=\"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",
1129
+ 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",
1130
1130
  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}"]
1131
1131
  }] }
1132
1132
  ];
@@ -1348,6 +1348,10 @@ class KeepAliveService {
1348
1348
  * @return {?}
1349
1349
  */
1350
1350
  retrieve(route) {
1351
+ if (!route.routeConfig)
1352
+ return null;
1353
+ if (route.routeConfig.loadChildren)
1354
+ return null;
1351
1355
  return storedRoutes[this.getRoutePath(route)];
1352
1356
  }
1353
1357
  /**
@@ -1356,8 +1360,11 @@ class KeepAliveService {
1356
1360
  * @return {?}
1357
1361
  */
1358
1362
  shouldReuseRoute(future, curr) {
1359
- // console.log("shouldReuseRoute");
1360
- return this.getRoutePath(future) === this.getRoutePath(curr); // 复用相同的路由
1363
+ console.log("shouldReuseRoute");
1364
+ // return this.getRoutePath(future) === this.getRoutePath(curr); // 复用相同的路由
1365
+ return (future.routeConfig === curr.routeConfig &&
1366
+ JSON.stringify(future.params) === JSON.stringify(curr.params) &&
1367
+ JSON.stringify(future.queryParams) === JSON.stringify(curr.queryParams));
1361
1368
  }
1362
1369
  /**
1363
1370
  * @param {?} route
@@ -1365,10 +1372,15 @@ class KeepAliveService {
1365
1372
  */
1366
1373
  getRoutePath(route) {
1367
1374
  if (route.routeConfig) {
1368
- // const pathParams = JSON.stringify(route.params);
1369
1375
  /** @type {?} */
1370
1376
  const queryParams = new URLSearchParams(route.queryParams).toString();
1371
- return route._routerState.url + (queryParams ? "?" + queryParams : "");
1377
+ /** @type {?} */
1378
+ const url = route._urlSegment.segments.map((/**
1379
+ * @param {?} v
1380
+ * @return {?}
1381
+ */
1382
+ (v) => v.path)).join("/");
1383
+ return "/" + url + (queryParams ? "?" + queryParams : "");
1372
1384
  }
1373
1385
  return "";
1374
1386
  }
@@ -1377,10 +1389,17 @@ class KeepAliveService {
1377
1389
  * @return {?}
1378
1390
  */
1379
1391
  clearCache(path) {
1392
+ // console.log("clearCache", storedRoutes, path);
1380
1393
  toBeDeleteUrl = path;
1381
1394
  delete storedRoutes[path]; // 清除指定路径的缓存
1382
1395
  }
1383
- }
1396
+ }
1397
+ KeepAliveService.decorators = [
1398
+ { type: Injectable, args: [{
1399
+ providedIn: "root",
1400
+ },] }
1401
+ ];
1402
+ /** @nocollapse */ KeepAliveService.ngInjectableDef = ɵɵdefineInjectable({ factory: function KeepAliveService_Factory() { return new KeepAliveService(); }, token: KeepAliveService, providedIn: "root" });
1384
1403
 
1385
1404
  /**
1386
1405
  * @fileoverview added by tsickle
@@ -1393,12 +1412,14 @@ class MultiTabComponent {
1393
1412
  * @param {?} cf
1394
1413
  * @param {?} activatedRoute
1395
1414
  * @param {?} keepAlive
1415
+ * @param {?} ref
1396
1416
  */
1397
- constructor(router, cf, activatedRoute, keepAlive) {
1417
+ constructor(router, cf, activatedRoute, keepAlive, ref) {
1398
1418
  this.router = router;
1399
1419
  this.cf = cf;
1400
1420
  this.activatedRoute = activatedRoute;
1401
1421
  this.keepAlive = keepAlive;
1422
+ this.ref = ref;
1402
1423
  this.singleReuseUrls = []; //只能单个缓存的url
1403
1424
  //只能单个缓存的url
1404
1425
  this.TAB_WIDTH = 164;
@@ -1539,6 +1560,7 @@ class MultiTabComponent {
1539
1560
  }
1540
1561
  this.setEllipsisTitle();
1541
1562
  sessionStorage.setItem("TabCache", JSON.stringify(this.tabList));
1563
+ this.ref.markForCheck();
1542
1564
  }
1543
1565
  /**
1544
1566
  * @param {?} tab
@@ -1548,6 +1570,7 @@ class MultiTabComponent {
1548
1570
  changeTab(tab, idx) {
1549
1571
  this.router.navigateByUrl(tab.url);
1550
1572
  this.selectedTab = idx;
1573
+ this.ref.markForCheck();
1551
1574
  }
1552
1575
  /**
1553
1576
  * @param {?} url
@@ -1566,6 +1589,7 @@ class MultiTabComponent {
1566
1589
  this.selectedTab = this.tabList.length - 1;
1567
1590
  this.setEllipsisTitle();
1568
1591
  sessionStorage.setItem("TabCache", JSON.stringify(this.tabList));
1592
+ this.ref.markForCheck();
1569
1593
  }
1570
1594
  /**
1571
1595
  * @param {?} url
@@ -1599,6 +1623,7 @@ class MultiTabComponent {
1599
1623
  }
1600
1624
  else {
1601
1625
  this.selectedTab = isExistIdx;
1626
+ this.ref.markForCheck();
1602
1627
  }
1603
1628
  }
1604
1629
  /**
@@ -1635,7 +1660,8 @@ MultiTabComponent.ctorParameters = () => [
1635
1660
  { type: Router },
1636
1661
  { type: CommonFunctionService },
1637
1662
  { type: ActivatedRoute },
1638
- { type: KeepAliveService }
1663
+ { type: KeepAliveService },
1664
+ { type: ChangeDetectorRef }
1639
1665
  ];
1640
1666
  MultiTabComponent.propDecorators = {
1641
1667
  singleReuseUrls: [{ type: Input }],
@@ -1672,41 +1698,11 @@ if (false) {
1672
1698
  MultiTabComponent.prototype.activatedRoute;
1673
1699
  /** @type {?} */
1674
1700
  MultiTabComponent.prototype.keepAlive;
1675
- }
1676
-
1677
- /**
1678
- * @fileoverview added by tsickle
1679
- * Generated from: lib/layout/main-container/index.component.ts
1680
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1681
- */
1682
- class MainContainerComponent {
1683
- constructor() {
1684
- this.isCollapsed = false; // 接收输入属性
1685
- // 接收输入属性
1686
- this.singleReuseUrls = []; //只能单个缓存的url
1687
- }
1688
- //只能单个缓存的url
1689
1701
  /**
1690
- * @return {?}
1702
+ * @type {?}
1703
+ * @private
1691
1704
  */
1692
- ngOnInit() { }
1693
- }
1694
- MainContainerComponent.decorators = [
1695
- { type: Component, args: [{
1696
- selector: "rs-main-container",
1697
- template: "<div class=\"app-main-container\">\r\n <ng-content select=\"[headerSlot]\"></ng-content>\r\n <div class=\"main-page\">\r\n <div class=\"left-aside\" [ngClass]=\"{ isCollapsed: isCollapsed }\">\r\n <ng-content select=\"[leftAsideSlot]\"></ng-content>\r\n </div>\r\n <div class=\"right-aside\">\r\n <rs-multi-tab [singleReuseUrls]=\"singleReuseUrls\"></rs-multi-tab>\r\n <div class=\"router-content\">\r\n <ng-content select=\"[routerSlot]\"></ng-content>\r\n </div>\r\n <rs-footer></rs-footer>\r\n </div>\r\n </div>\r\n</div>\r\n",
1698
- styles: [".app-main-container{display:flex;flex-direction:column;height:100vh}.app-main-container .main-page{flex:1;height:0;display:flex;background-color:var(--rs-container-bg)}.app-main-container .left-aside{width:240px;height:100%;padding-right:16px;will-change:width;transition:width .3s}.app-main-container .left-aside.isCollapsed{width:64px;padding-right:0}.app-main-container .right-aside{width:0;flex:1;display:flex;flex-direction:column;padding-right:12px}.app-main-container .right-aside .router-content{flex:1;overflow:auto}"]
1699
- }] }
1700
- ];
1701
- MainContainerComponent.propDecorators = {
1702
- isCollapsed: [{ type: Input }],
1703
- singleReuseUrls: [{ type: Input }]
1704
- };
1705
- if (false) {
1706
- /** @type {?} */
1707
- MainContainerComponent.prototype.isCollapsed;
1708
- /** @type {?} */
1709
- MainContainerComponent.prototype.singleReuseUrls;
1705
+ MultiTabComponent.prototype.ref;
1710
1706
  }
1711
1707
 
1712
1708
  /**
@@ -1717,8 +1713,9 @@ if (false) {
1717
1713
  class RSHeaderComponent {
1718
1714
  constructor() {
1719
1715
  this.toggleMenu = new EventEmitter();
1716
+ this.isCollapsed = false; // 接收输入属性
1717
+ // 接收输入属性
1720
1718
  this.lastLoginTime = new Date();
1721
- this.isCollapsed = false;
1722
1719
  this.langOptions = [
1723
1720
  {
1724
1721
  value: 1,
@@ -1745,8 +1742,7 @@ class RSHeaderComponent {
1745
1742
  * @return {?}
1746
1743
  */
1747
1744
  onToggleMenu() {
1748
- this.isCollapsed = !this.isCollapsed;
1749
- this.toggleMenu.emit(this.isCollapsed);
1745
+ this.toggleMenu.emit(!this.isCollapsed);
1750
1746
  }
1751
1747
  /**
1752
1748
  * @param {?} event
@@ -1769,23 +1765,72 @@ RSHeaderComponent.decorators = [
1769
1765
  ];
1770
1766
  RSHeaderComponent.propDecorators = {
1771
1767
  toggleMenu: [{ type: Output }],
1768
+ isCollapsed: [{ type: Input }],
1772
1769
  lastLoginTime: [{ type: Input }]
1773
1770
  };
1774
1771
  if (false) {
1775
1772
  /** @type {?} */
1776
1773
  RSHeaderComponent.prototype.toggleMenu;
1777
1774
  /** @type {?} */
1775
+ RSHeaderComponent.prototype.isCollapsed;
1776
+ /** @type {?} */
1778
1777
  RSHeaderComponent.prototype.lastLoginTime;
1779
1778
  /** @type {?} */
1780
1779
  RSHeaderComponent.prototype.translation;
1781
1780
  /** @type {?} */
1782
- RSHeaderComponent.prototype.isCollapsed;
1783
- /** @type {?} */
1784
1781
  RSHeaderComponent.prototype.langOptions;
1785
1782
  /** @type {?} */
1786
1783
  RSHeaderComponent.prototype.currentLang;
1787
1784
  }
1788
1785
 
1786
+ /**
1787
+ * @fileoverview added by tsickle
1788
+ * Generated from: lib/layout/main-container/index.component.ts
1789
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1790
+ */
1791
+ class MainContainerComponent {
1792
+ constructor() {
1793
+ this.isCollapsed = false; // 接收输入属性
1794
+ // 接收输入属性
1795
+ this.singleReuseUrls = []; //只能单个缓存的url
1796
+ }
1797
+ //只能单个缓存的url
1798
+ /**
1799
+ * @return {?}
1800
+ */
1801
+ ngOnInit() { }
1802
+ /**
1803
+ * @return {?}
1804
+ */
1805
+ onRightAsideClick() {
1806
+ /** @type {?} */
1807
+ const screenWidth = window.innerWidth;
1808
+ if (screenWidth <= 992 && this.isCollapsed) {
1809
+ this.headerRef.onToggleMenu();
1810
+ }
1811
+ }
1812
+ }
1813
+ MainContainerComponent.decorators = [
1814
+ { type: Component, args: [{
1815
+ selector: "rs-main-container",
1816
+ template: "<div class=\"app-main-container\">\r\n <ng-content select=\"[headerSlot]\"></ng-content>\r\n <div class=\"main-page\">\r\n <div class=\"left-aside\">\r\n <ng-content select=\"[leftAsideSlot]\"></ng-content>\r\n </div>\r\n <div class=\"right-aside\" [ngClass]=\"{ isCollapsed: isCollapsed }\" (click)=\"onRightAsideClick()\">\r\n <ng-content select=\"[multiTabSlot]\"></ng-content>\r\n <!-- <rs-multi-tab [singleReuseUrls]=\"singleReuseUrls\"></rs-multi-tab> -->\r\n <div class=\"router-content\">\r\n <ng-content select=\"[routerSlot]\"></ng-content>\r\n </div>\r\n <rs-footer></rs-footer>\r\n </div>\r\n </div>\r\n</div>\r\n",
1817
+ styles: [".app-main-container{display:flex;flex-direction:column;height:100vh}.app-main-container .main-page{flex:1;height:0;display:flex;background-color:var(--rs-container-bg)}.app-main-container .left-aside{height:100%}.app-main-container .right-aside{width:0;flex:1;display:flex;flex-direction:column;padding-right:12px}.app-main-container .right-aside .router-content{flex:1;overflow:auto}@media (max-width:992px){.app-main-container .right-aside.isCollapsed{position:relative}.app-main-container .right-aside.isCollapsed::after{content:\" \";position:absolute;inset:0;background-color:rgba(0,0,0,.2)}}"]
1818
+ }] }
1819
+ ];
1820
+ MainContainerComponent.propDecorators = {
1821
+ headerRef: [{ type: ContentChild, args: [RSHeaderComponent, { static: true },] }],
1822
+ isCollapsed: [{ type: Input }],
1823
+ singleReuseUrls: [{ type: Input }]
1824
+ };
1825
+ if (false) {
1826
+ /** @type {?} */
1827
+ MainContainerComponent.prototype.headerRef;
1828
+ /** @type {?} */
1829
+ MainContainerComponent.prototype.isCollapsed;
1830
+ /** @type {?} */
1831
+ MainContainerComponent.prototype.singleReuseUrls;
1832
+ }
1833
+
1789
1834
  /**
1790
1835
  * @fileoverview added by tsickle
1791
1836
  * Generated from: lib/layout/rs-footer/index.component.ts
@@ -1824,6 +1869,7 @@ class RSAsideComponent {
1824
1869
  */
1825
1870
  constructor(router) {
1826
1871
  this.router = router;
1872
+ this.toggleMenu = new EventEmitter();
1827
1873
  this.isCollapsed = false; // 接收输入属性
1828
1874
  // 接收输入属性
1829
1875
  this.navList = [];
@@ -1840,13 +1886,18 @@ class RSAsideComponent {
1840
1886
  onNavClick(item) {
1841
1887
  this.currentNav = item.title;
1842
1888
  this.router.navigate([item.url], { state: { title: item.title } });
1889
+ /** @type {?} */
1890
+ const screenWidth = window.innerWidth;
1891
+ if (screenWidth <= 992 && this.isCollapsed) {
1892
+ this.toggleMenu.emit(false);
1893
+ }
1843
1894
  }
1844
1895
  }
1845
1896
  RSAsideComponent.decorators = [
1846
1897
  { type: Component, args: [{
1847
1898
  selector: "rs-aside",
1848
- template: "<div class=\"rs-aside\">\r\n <div class=\"nav-list\">\r\n <div\r\n class=\"nav-item\"\r\n [ngClass]=\"{ isCurrent: currentNav === nav.title }\"\r\n *ngFor=\"let nav of navList\"\r\n (click)=\"onNavClick(nav)\"\r\n >\r\n <div class=\"nav-item-inner\">\r\n <mat-icon class=\"menu-icon\" [svgIcon]=\"nav.icon\"></mat-icon>\r\n <span class=\"nav-text\" [ngClass]=\"{ isCollapsed: isCollapsed }\">{{\r\n nav.title\r\n }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"bottom-iconbox\" [ngClass]=\"{ isCollapsed: isCollapsed }\">\r\n <ng-content select=\"[bottomIconBox]\"></ng-content>\r\n </div>\r\n</div>\r\n",
1849
- styles: [".rs-aside{display:flex;flex-direction:column;height:100%}.rs-aside .nav-list{padding-top:12px;flex:1;overflow:auto;height:0}.rs-aside .nav-list .nav-item{height:32px;cursor:pointer;padding-left:11px}.rs-aside .nav-list .nav-item .nav-item-inner{display:flex;align-items:center;padding:8px 8px 8px 12px}.rs-aside .nav-list .nav-item .nav-item-inner ::ng-deep .menu-icon{width:33px;height:16px}.rs-aside .nav-list .nav-item .nav-item-inner ::ng-deep .menu-icon svg{width:16px;height:16px;color:#6c7c90;stroke:#6c7c90}.rs-aside .nav-list .nav-item:hover .nav-item-inner{border-radius:6px;background:rgba(31,123,255,.04)}.rs-aside .nav-list .nav-item:hover .nav-item-inner ::ng-deep .menu-icon svg{color:#44566c;stroke:#44566c}.rs-aside .nav-list .nav-item .nav-text{color:#5f6f81;font-family:Arial;font-size:12px;font-weight:400;line-height:16px;transition:.3s;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;position:relative;top:1px}.rs-aside .nav-list .nav-item .nav-text.isCollapsed{opacity:0;width:0}.rs-aside .nav-list .nav-item.isCurrent{position:relative}.rs-aside .nav-list .nav-item.isCurrent .nav-text{color:#44566c;font-weight:700}.rs-aside .nav-list .nav-item.isCurrent::before{content:\"\";position:absolute;left:4px;top:8px;width:3px;height:16px;background-color:#1364b3;border-radius:2px}.rs-aside .bottom-iconbox{padding:12px 20px;height:48px;display:flex;gap:12px}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center;border:1px solid #eaedf0;border-radius:24px;cursor:pointer}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon svg{width:16px;height:16px;color:#6c7c90;stroke:#6c7c90}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon.disabled{cursor:default;opacity:.5}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon:not(.disabled):hover{background-color:#fff}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon:not(.disabled):hover svg{color:#1f7bff;stroke:#1f7bff}.rs-aside .bottom-iconbox.isCollapsed{flex-direction:column;height:auto}"]
1899
+ template: "<div class=\"rs-aside\" [ngClass]=\"{ isCollapsed: isCollapsed }\">\r\n <div class=\"nav-list\">\r\n <div\r\n class=\"nav-item\"\r\n [ngClass]=\"{ isCurrent: currentNav === nav.title }\"\r\n *ngFor=\"let nav of navList\"\r\n (click)=\"onNavClick(nav)\"\r\n >\r\n <div class=\"nav-item-inner\">\r\n <mat-icon class=\"menu-icon\" [svgIcon]=\"nav.icon\"></mat-icon>\r\n <span class=\"nav-text\" [ngClass]=\"{ isCollapsed: isCollapsed }\">{{\r\n nav.title\r\n }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"bottom-iconbox\" [ngClass]=\"{ isCollapsed: isCollapsed }\">\r\n <ng-content select=\"[bottomIconBox]\"></ng-content>\r\n </div>\r\n</div>\r\n",
1900
+ styles: [".rs-aside{display:flex;flex-direction:column;height:100%;width:240px;will-change:width;transition:width .3s;padding-right:16px}.rs-aside.isCollapsed{width:64px;padding-right:0}.rs-aside .nav-list{padding-top:12px;flex:1;overflow:auto;height:0}.rs-aside .nav-list .nav-item{height:32px;cursor:pointer;padding-left:11px}.rs-aside .nav-list .nav-item .nav-item-inner{display:flex;align-items:center;padding:8px 8px 8px 12px}.rs-aside .nav-list .nav-item .nav-item-inner ::ng-deep .menu-icon{width:33px;height:16px}.rs-aside .nav-list .nav-item .nav-item-inner ::ng-deep .menu-icon svg{width:16px;height:16px;color:#6c7c90;stroke:#6c7c90}.rs-aside .nav-list .nav-item:hover .nav-item-inner{border-radius:6px;background:rgba(31,123,255,.04)}.rs-aside .nav-list .nav-item:hover .nav-item-inner ::ng-deep .menu-icon svg{color:#44566c;stroke:#44566c}.rs-aside .nav-list .nav-item .nav-text{color:#5f6f81;font-family:Arial;font-size:12px;font-weight:400;line-height:16px;transition:.3s;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;position:relative;top:1px}@media (min-width:992px){.rs-aside .nav-list .nav-item .nav-text.isCollapsed{opacity:0;width:0}}.rs-aside .nav-list .nav-item.isCurrent{position:relative}.rs-aside .nav-list .nav-item.isCurrent .nav-text{color:#44566c;font-weight:700}.rs-aside .nav-list .nav-item.isCurrent::before{content:\"\";position:absolute;left:4px;top:8px;width:3px;height:16px;background-color:#1364b3;border-radius:2px}.rs-aside .bottom-iconbox{padding:12px 20px;height:48px;display:flex;gap:12px}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center;border:1px solid #eaedf0;border-radius:24px;cursor:pointer}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon svg{width:16px;height:16px;color:#6c7c90;stroke:#6c7c90}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon.disabled{cursor:default;opacity:.5}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon:not(.disabled):hover{background-color:#fff}.rs-aside .bottom-iconbox ::ng-deep .menu-bottom-icon:not(.disabled):hover svg{color:#1f7bff;stroke:#1f7bff}@media (min-width:992px){.rs-aside .bottom-iconbox.isCollapsed{flex-direction:column;height:auto}}@media (max-width:992px){.rs-aside{width:0;overflow:hidden;position:absolute;height:calc(100% - 50px);z-index:10;background-color:var(--rs-container-bg);padding-right:0}.rs-aside.isCollapsed{width:240px;padding-right:16px}}"]
1850
1901
  }] }
1851
1902
  ];
1852
1903
  /** @nocollapse */
@@ -1854,10 +1905,13 @@ RSAsideComponent.ctorParameters = () => [
1854
1905
  { type: Router }
1855
1906
  ];
1856
1907
  RSAsideComponent.propDecorators = {
1908
+ toggleMenu: [{ type: Output }],
1857
1909
  isCollapsed: [{ type: Input }],
1858
1910
  navList: [{ type: Input }]
1859
1911
  };
1860
1912
  if (false) {
1913
+ /** @type {?} */
1914
+ RSAsideComponent.prototype.toggleMenu;
1861
1915
  /** @type {?} */
1862
1916
  RSAsideComponent.prototype.isCollapsed;
1863
1917
  /** @type {?} */
@@ -2500,7 +2554,7 @@ class DialogService {
2500
2554
  deleteElement() {
2501
2555
  return this.dialog.open(CommonDeleteComponent, {
2502
2556
  data: {},
2503
- panelClass: "basic-small-common-dialog",
2557
+ panelClass: "rs-dialog-wrap",
2504
2558
  });
2505
2559
  }
2506
2560
  // 自定义文案通用弹窗的提示框
@@ -2511,7 +2565,7 @@ class DialogService {
2511
2565
  showCommonDilaog(data) {
2512
2566
  return this.dialog.open(CommonDeleteComponent, {
2513
2567
  data,
2514
- panelClass: "basic-small-common-dialog",
2568
+ panelClass: "rs-dialog-wrap",
2515
2569
  });
2516
2570
  }
2517
2571
  // 有改动未保存 的提示框
@@ -2538,7 +2592,7 @@ class DialogService {
2538
2592
  // data.size = "medium";
2539
2593
  return this.dialog.open(CommonDeleteComponent, {
2540
2594
  data,
2541
- panelClass: "basic-small-common-dialog",
2595
+ panelClass: "rs-dialog-wrap",
2542
2596
  });
2543
2597
  }
2544
2598
  // 保存成功提示