raise-common-lib 0.0.23 → 0.0.25

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 (29) hide show
  1. package/bundles/raise-common-lib.umd.js +51 -18
  2. package/bundles/raise-common-lib.umd.js.map +1 -1
  3. package/bundles/raise-common-lib.umd.min.js +2 -2
  4. package/bundles/raise-common-lib.umd.min.js.map +1 -1
  5. package/esm2015/lib/form/checkbox-group/index.component.js +1 -1
  6. package/esm2015/lib/form/radio-group/index.component.js +1 -1
  7. package/esm2015/lib/form/switch-input/index.component.js +1 -1
  8. package/esm2015/lib/layout/multi-tab/index.component.js +5 -2
  9. package/esm2015/lib/layout/rs-aside/index.component.js +3 -2
  10. package/esm2015/lib/layout/rs-header/index.component.js +3 -3
  11. package/esm2015/lib/service/keep-alive.service.js +38 -12
  12. package/esm5/lib/form/checkbox-group/index.component.js +1 -1
  13. package/esm5/lib/form/radio-group/index.component.js +1 -1
  14. package/esm5/lib/form/switch-input/index.component.js +1 -1
  15. package/esm5/lib/layout/multi-tab/index.component.js +5 -2
  16. package/esm5/lib/layout/rs-aside/index.component.js +3 -2
  17. package/esm5/lib/layout/rs-header/index.component.js +3 -3
  18. package/esm5/lib/service/keep-alive.service.js +41 -12
  19. package/fesm2015/raise-common-lib.js +48 -18
  20. package/fesm2015/raise-common-lib.js.map +1 -1
  21. package/fesm5/raise-common-lib.js +51 -18
  22. package/fesm5/raise-common-lib.js.map +1 -1
  23. package/lib/service/keep-alive.service.d.ts +1 -0
  24. package/package.json +1 -1
  25. package/raise-common-lib.metadata.json +1 -1
  26. package/src/assets/style/reset/checkbox.scss +33 -0
  27. package/src/assets/style/reset/radio.scss +37 -0
  28. package/src/assets/style/reset/switch.scss +32 -0
  29. package/src/assets/style/style.scss +4 -0
@@ -1734,7 +1734,7 @@
1734
1734
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1735
1735
  */
1736
1736
  /** @type {?} */
1737
- var storedRoutes = {};
1737
+ var storedRoutes = new Map();
1738
1738
  /** @type {?} */
1739
1739
  var toBeDeleteUrl;
1740
1740
  /** @type {?} */
@@ -1763,12 +1763,21 @@
1763
1763
  * @return {?}
1764
1764
  */
1765
1765
  function (route) {
1766
+ /** @type {?} */
1767
+ var config = route.routeConfig;
1768
+ // console.log("shouldDetach", toBeDeleteUrl, this.getRoutePath(route));
1766
1769
  if (toBeDeleteUrl === this.getRoutePath(route)) {
1767
1770
  // 对于新开的又即将关闭的tab,不缓存
1768
- toBeDeleteUrl = "";
1771
+ if (route.children.length === 0) {
1772
+ toBeDeleteUrl = "";
1773
+ }
1769
1774
  return false;
1770
1775
  }
1771
- return !excludeRoutes.includes(route.routeConfig.path);
1776
+ if (config && excludeRoutes.includes(this.getRoutePath(route))) {
1777
+ return false;
1778
+ }
1779
+ //Don't store lazy loaded routes
1780
+ return config && !config.loadChildren;
1772
1781
  };
1773
1782
  /**
1774
1783
  * @param {?} route
@@ -1783,7 +1792,9 @@
1783
1792
  function (route, handle) {
1784
1793
  // console.log("store", this.getRoutePath(route));
1785
1794
  // console.log("store", storedRoutes);
1786
- storedRoutes[this.getRoutePath(route)] = handle;
1795
+ /** @type {?} */
1796
+ var key = this.getRoutePath(route);
1797
+ storedRoutes.set(key, handle);
1787
1798
  };
1788
1799
  /**
1789
1800
  * @param {?} route
@@ -1794,7 +1805,9 @@
1794
1805
  * @return {?}
1795
1806
  */
1796
1807
  function (route) {
1797
- return !!storedRoutes[this.getRoutePath(route)];
1808
+ /** @type {?} */
1809
+ var key = this.getRoutePath(route);
1810
+ return !!route.routeConfig && storedRoutes.has(key);
1798
1811
  };
1799
1812
  /**
1800
1813
  * @param {?} route
@@ -1805,11 +1818,15 @@
1805
1818
  * @return {?}
1806
1819
  */
1807
1820
  function (route) {
1808
- if (!route.routeConfig)
1809
- return null;
1810
- if (route.routeConfig.loadChildren)
1811
- return null;
1812
- return storedRoutes[this.getRoutePath(route)];
1821
+ /** @type {?} */
1822
+ var config = route.routeConfig;
1823
+ /** @type {?} */
1824
+ var key = this.getRoutePath(route);
1825
+ //We don't store lazy loaded routes, so don't even bother trying to retrieve them
1826
+ if (!config || config.loadChildren) {
1827
+ return false;
1828
+ }
1829
+ return storedRoutes.get(key) || null;
1813
1830
  };
1814
1831
  /**
1815
1832
  * @param {?} future
@@ -1822,6 +1839,8 @@
1822
1839
  * @return {?}
1823
1840
  */
1824
1841
  function (future, curr) {
1842
+ // console.log("shouldReuseRoute", future, curr);
1843
+ // return future.routeConfig === curr.routeConfig;
1825
1844
  if (future.routeConfig === curr.routeConfig) {
1826
1845
  if (future.children.length === 0 && curr.children.length === 0) {
1827
1846
  // 无子路由时, 通过params和queryParams判断是否复用路由
@@ -1843,6 +1862,7 @@
1843
1862
  */
1844
1863
  function (route) {
1845
1864
  if (route.routeConfig) {
1865
+ // const pathParams = JSON.stringify(route.params);
1846
1866
  /** @type {?} */
1847
1867
  var queryParams = new URLSearchParams(route.queryParams).toString();
1848
1868
  /** @type {?} */
@@ -1866,7 +1886,16 @@
1866
1886
  function (path) {
1867
1887
  // console.log("clearCache", storedRoutes, path);
1868
1888
  toBeDeleteUrl = path;
1869
- delete storedRoutes[path]; // 清除指定路径的缓存
1889
+ storedRoutes.delete(path);
1890
+ };
1891
+ /**
1892
+ * @return {?}
1893
+ */
1894
+ KeepAliveService.prototype.clearAllCache = /**
1895
+ * @return {?}
1896
+ */
1897
+ function () {
1898
+ storedRoutes.clear();
1870
1899
  };
1871
1900
  KeepAliveService.decorators = [
1872
1901
  { type: core.Injectable, args: [{
@@ -1940,8 +1969,11 @@
1940
1969
  var state = navigation.extras.state;
1941
1970
  // 获取传递的 state
1942
1971
  /** @type {?} */
1972
+ var skipLocationChange = navigation.extras.skipLocationChange;
1973
+ // 获取是否跳过 location change
1974
+ /** @type {?} */
1943
1975
  var currentRoute = _this.router.routerState.root.firstChild;
1944
- if (currentRoute) {
1976
+ if (currentRoute && !skipLocationChange) {
1945
1977
  _this.setTab(_this.router.url, currentRoute.snapshot.routeConfig.path, state && state.title);
1946
1978
  }
1947
1979
  }
@@ -2301,8 +2333,8 @@
2301
2333
  RSHeaderComponent.decorators = [
2302
2334
  { type: core.Component, args: [{
2303
2335
  selector: "rs-header",
2304
- template: "<div class=\"rs-header\">\r\n <div class=\"logo-wrap\">\r\n <div class=\"toggle-menu-wrap\">\r\n <img\r\n class=\"toggle-menu\"\r\n src=\"../../../assets/img/toggle-menu-icon.svg\"\r\n (click)=\"onToggleMenu()\"\r\n />\r\n </div>\r\n <img\r\n class=\"logo\"\r\n src=\"../../../assets/img/raise_logo_main.svg\"\r\n alt=\"logo\"\r\n />\r\n </div>\r\n <div class=\"bread-crumbs-wrap\">\r\n <ng-content select=\"[breadCrumbs]\"></ng-content>\r\n </div>\r\n <div class=\"rs-toolbar-wrap\">\r\n <div class=\"quick-icon-group\">\r\n <ng-content select=\"[toolbar]\"></ng-content>\r\n </div>\r\n <div class=\"line\"></div>\r\n <div class=\"langulage-wrap\">\r\n <button\r\n class=\"e-btn text\"\r\n ejs-dropdownbutton\r\n [items]=\"langOptions\"\r\n (select)=\"selectLanguage($event)\"\r\n >\r\n {{currentLang.text}}\r\n </button>\r\n </div>\r\n <div class=\"line\"></div>\r\n <div class=\"last-login-wrap\">\r\n {{ translation?.LAST_LOGIN || \"Last Login\" }}:\r\n {{ lastLoginTime | date : \"dd MMM yy h:mm a\" }}\r\n </div>\r\n <div class=\"line\"></div>\r\n <div class=\"user-info-wrap\">\r\n <ng-content select=\"[userInfo]\"></ng-content>\r\n </div>\r\n </div>\r\n</div>\r\n",
2305
- styles: [".rs-header{height:50px;background-color:var(--rs-container-bg);display:flex;justify-content:space-between}.rs-header .logo-wrap{width:240px;display:flex;padding:12px 0 0 20px}.rs-header .logo-wrap .toggle-menu-wrap{cursor:pointer;margin-right:8px}.rs-header .logo-wrap .logo{width:77px;height:32px}.rs-header .rs-toolbar-wrap,.rs-header .rs-toolbar-wrap .quick-icon-group{display:flex;align-items:center}.rs-header .rs-toolbar-wrap .quick-icon-group ::ng-deep .header-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center;margin-right:24px;cursor:pointer}.rs-header .rs-toolbar-wrap .quick-icon-group ::ng-deep .header-icon svg{width:16px;height:16px;color:#6c7c90;stroke:#6c7c90}.rs-header .rs-toolbar-wrap .quick-icon-group ::ng-deep .header-icon:hover{border-radius:4px;background:rgba(31,123,255,.04)}.rs-header .rs-toolbar-wrap .quick-icon-group ::ng-deep .header-icon:hover svg{color:#1f7bff;stroke:#1f7bff}.rs-header .rs-toolbar-wrap .line{width:1px;height:24px;background-color:var(--rs-border-color)}.rs-header .rs-toolbar-wrap .langulage-wrap{padding:0 16px}.rs-header .rs-toolbar-wrap .last-login-wrap{padding:0 16px;color:var(--rs-labels-color);font-size:11px;font-weight:400;line-height:1}.rs-header .rs-toolbar-wrap .user-info-wrap{padding:0 20px 0 16px}"]
2336
+ template: "<div class=\"rs-header\">\r\n <div class=\"logo-wrap\">\r\n <div class=\"toggle-menu-wrap\">\r\n <img\r\n class=\"toggle-menu\"\r\n src=\"../../../assets/img/toggle-menu-icon.svg\"\r\n (click)=\"onToggleMenu()\"\r\n />\r\n </div>\r\n <img\r\n class=\"logo\"\r\n src=\"../../../assets/img/raise_logo_main.svg\"\r\n alt=\"logo\"\r\n />\r\n </div>\r\n <div class=\"content-header-wrap\">\r\n <div class=\"bread-crumbs-wrap\">\r\n <ng-content select=\"[breadCrumbs]\"></ng-content>\r\n </div>\r\n <div class=\"rs-toolbar-wrap\">\r\n <div class=\"quick-icon-group\">\r\n <ng-content select=\"[toolbar]\"></ng-content>\r\n </div>\r\n <div class=\"line\"></div>\r\n <div class=\"langulage-wrap\">\r\n <button\r\n class=\"e-btn text\"\r\n ejs-dropdownbutton\r\n [items]=\"langOptions\"\r\n (select)=\"selectLanguage($event)\"\r\n >\r\n {{ currentLang.text }}\r\n </button>\r\n </div>\r\n <div class=\"line\"></div>\r\n <div class=\"last-login-wrap\">\r\n {{ translation?.LAST_LOGIN || \"Last Login\" }}:\r\n {{ lastLoginTime | date : \"dd MMM yy h:mm a\" }}\r\n </div>\r\n <div class=\"line\"></div>\r\n <div class=\"user-info-wrap\">\r\n <ng-content select=\"[userInfo]\"></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n",
2337
+ styles: [".rs-header{height:50px;background-color:var(--rs-container-bg);display:flex;justify-content:space-between}.rs-header .logo-wrap{width:240px;display:flex;padding:12px 0 0 20px}.rs-header .logo-wrap .toggle-menu-wrap{cursor:pointer;margin-right:8px}.rs-header .logo-wrap .logo{width:77px;height:32px}.rs-header .content-header-wrap{display:flex;justify-content:space-between;align-items:center;flex:1}.rs-header .bread-crumbs-wrap{padding-left:16px}.rs-header .rs-toolbar-wrap,.rs-header .rs-toolbar-wrap .quick-icon-group{display:flex;align-items:center}.rs-header .rs-toolbar-wrap .quick-icon-group ::ng-deep .header-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center;margin-right:24px;cursor:pointer}.rs-header .rs-toolbar-wrap .quick-icon-group ::ng-deep .header-icon svg{width:16px;height:16px;color:#6c7c90;stroke:#6c7c90}.rs-header .rs-toolbar-wrap .quick-icon-group ::ng-deep .header-icon:hover{border-radius:4px;background:rgba(31,123,255,.04)}.rs-header .rs-toolbar-wrap .quick-icon-group ::ng-deep .header-icon:hover svg{color:#1f7bff;stroke:#1f7bff}.rs-header .rs-toolbar-wrap .line{width:1px;height:24px;background-color:var(--rs-border-color)}.rs-header .rs-toolbar-wrap .langulage-wrap{padding:0 16px}.rs-header .rs-toolbar-wrap .last-login-wrap{padding:0 16px;color:var(--rs-labels-color);font-size:11px;font-weight:400;line-height:1}.rs-header .rs-toolbar-wrap .user-info-wrap{padding:0 20px 0 16px}"]
2306
2338
  }] }
2307
2339
  ];
2308
2340
  RSHeaderComponent.propDecorators = {
@@ -2444,6 +2476,7 @@
2444
2476
  */
2445
2477
  function () {
2446
2478
  var _this = this;
2479
+ this.currentNav = this.router.url;
2447
2480
  // 监听路由变化
2448
2481
  this.router.events
2449
2482
  .pipe(operators.filter((/**
@@ -2479,7 +2512,7 @@
2479
2512
  { type: core.Component, args: [{
2480
2513
  selector: "rs-aside",
2481
2514
  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.url }\"\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.iconCode\"></mat-icon>\r\n <span class=\"nav-text\" [ngClass]=\"{ isCollapsed: isCollapsed }\">{{\r\n nav.label\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",
2482
- 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}}"]
2515
+ 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;display:flex;align-items:center}.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}}"]
2483
2516
  }] }
2484
2517
  ];
2485
2518
  /** @nocollapse */
@@ -2667,7 +2700,7 @@
2667
2700
  { type: core.Component, args: [{
2668
2701
  selector: "rs-radio-group",
2669
2702
  template: "<div class=\"radio-group\" [ngClass]=\"[orientation, error ? 'error' : '']\">\r\n <div class=\"radio-item\" *ngFor=\"let option of dataSource\">\r\n <ejs-radiobutton\r\n [label]=\"option[fields.text]\"\r\n [(ngModel)]=\"value\"\r\n [value]=\"option[fields.value]\"\r\n [disabled]=\"option[fields.disabled] || disabled\"\r\n (change)=\"onChange($event)\"\r\n ></ejs-radiobutton>\r\n </div>\r\n</div>\r\n",
2670
- styles: [".radio-group{display:flex;padding-left:4px}.radio-group.horizontal{flex-direction:row;gap:35px}.radio-group.vertical{flex-direction:column;gap:14px}.radio-group .radio-item .e-radio:disabled+label::before{border-color:rgba(209,209,209,.5);background-color:rgba(234,237,240,.35)}.radio-group .radio-item .e-radio:checked+label::before{background-color:var(--rs-active-color);border-color:var(--rs-active-color);box-shadow:none}.radio-group .radio-item .e-radio:checked+label::after{content:\"\"!important;display:block;width:11px;height:8px;background-image:url(/assets/img/checked-vector.svg);background-size:cover;background-position:center;background-color:transparent;transform:scale(1);left:2px;top:3px;border:0;border-radius:0}.radio-group .radio-item .e-label{color:var(--rs-label-color);font-family:var(--rs-font-family);font-size:var(--rs-font-size);font-weight:400;line-height:14px}"]
2703
+ styles: [".radio-group{display:flex;padding-left:4px}.radio-group.horizontal{flex-direction:row;gap:35px}.radio-group.vertical{flex-direction:column;gap:14px}"]
2671
2704
  }] }
2672
2705
  ];
2673
2706
  RadioGroupComponent.propDecorators = {
@@ -2757,7 +2790,7 @@
2757
2790
  { type: core.Component, args: [{
2758
2791
  selector: "rs-checkbox-group",
2759
2792
  template: "<div class=\"checkbox-group\" [ngClass]=\"[orientation, error ? 'error' : '']\">\r\n <div class=\"checkbox-item\" *ngFor=\"let option of dataSource\">\r\n <ejs-checkbox\r\n [name]=\"name\"\r\n [label]=\"option[fields.text]\"\r\n [value]=\"option[fields.value]\"\r\n [disabled]=\"option[fields.disabled] || disabled\"\r\n [checked]=\"value.includes(option[fields.value])\"\r\n (change)=\"onChange($event, option)\"\r\n ></ejs-checkbox>\r\n </div>\r\n</div>\r\n",
2760
- styles: [".checkbox-group{display:flex;padding-left:4px}.checkbox-group.horizontal{flex-direction:row;gap:35px}.checkbox-group.vertical{flex-direction:column;gap:14px}.checkbox-group .checkbox-item .e-label{color:var(--rs-label-color);font-family:var(--rs-font-family);font-size:var(--rs-font-size);font-weight:400;line-height:14px}.checkbox-group .checkbox-item .e-checkbox-wrapper.e-checkbox-disabled .e-icons{border-color:rgba(209,209,209,.5);background-color:rgba(234,237,240,.35)}.checkbox-group .checkbox-item .e-icons{box-shadow:none!important}.checkbox-group .checkbox-item .e-icons.e-check{background-color:var(--rs-active-color);border-color:var(--rs-active-color)}.checkbox-group .checkbox-item .e-icons.e-check::before{content:\"\"!important;display:block;width:11px;height:8px;background-image:url(/assets/img/checked-vector.svg);background-size:cover;background-position:center;background-color:transparent;margin:2px auto}"]
2793
+ styles: [".checkbox-group{display:flex;padding-left:4px}.checkbox-group.horizontal{flex-direction:row;gap:35px}.checkbox-group.vertical{flex-direction:column;gap:14px}"]
2761
2794
  }] }
2762
2795
  ];
2763
2796
  /** @nocollapse */
@@ -2847,7 +2880,7 @@
2847
2880
  { type: core.Component, args: [{
2848
2881
  selector: "rs-switch-input",
2849
2882
  template: "<div class=\"rs-switch\" [ngClass]=\"[orientation, error ? 'error' : '', disabled ? 'disabled' : '']\">\r\n <label class=\"switch-label\" (click)=\"onClick()\"> {{ text }} </label>\r\n <ejs-switch\r\n [(ngModel)]=\"value\"\r\n [disabled]=\"disabled\"\r\n (change)=\"onChange($event)\"\r\n ></ejs-switch>\r\n</div>\r\n",
2850
- styles: [".rs-switch{display:flex;align-items:center;gap:8px}.rs-switch.behind{flex-direction:row-reverse;justify-content:flex-end}.rs-switch .switch-label{color:var(--rs-label-color);font-family:var(--rs-font-family);font-size:var(--rs-font-size);cursor:pointer}.rs-switch.disabled .switch-label{cursor:default;pointer-events:none}.rs-switch .e-switch-wrapper{width:28px}.rs-switch .e-switch-wrapper .e-switch-inner{border:1px solid #adb5bd}.rs-switch .e-switch-wrapper .e-switch-inner.e-switch-active{background-color:var(--rs-active-color);border-color:var(--rs-active-color)}.rs-switch .e-switch-wrapper .e-switch-handle{background-color:#fff;border:1px solid #adb5bd;left:2px}.rs-switch .e-switch-wrapper .e-switch-handle.e-switch-active{background-color:#fff;border-color:var(--rs-active-color);left:100%}.rs-switch .e-switch-wrapper.e-switch-disabled .e-switch-handle{background-color:#e9ecef;opacity:.5}.rs-switch .e-switch-wrapper.e-switch-disabled .e-switch-handle.e-switch-active{border-color:rgba(0,129,255,.5)}.rs-switch .e-switch-wrapper .e-switch-on{background-color:var(--rs-active-color);color:#fff}"]
2883
+ styles: [".rs-switch{display:flex;align-items:center;gap:8px}.rs-switch.behind{flex-direction:row-reverse;justify-content:flex-end}.rs-switch .switch-label{color:var(--rs-label-color);font-family:var(--rs-font-family);font-size:var(--rs-font-size);cursor:pointer}.rs-switch.disabled .switch-label{cursor:default;pointer-events:none}"]
2851
2884
  }] }
2852
2885
  ];
2853
2886
  SwitchInputComponent.propDecorators = {