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.
- package/bundles/raise-common-lib.umd.js +51 -18
- package/bundles/raise-common-lib.umd.js.map +1 -1
- package/bundles/raise-common-lib.umd.min.js +2 -2
- package/bundles/raise-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/form/checkbox-group/index.component.js +1 -1
- package/esm2015/lib/form/radio-group/index.component.js +1 -1
- package/esm2015/lib/form/switch-input/index.component.js +1 -1
- package/esm2015/lib/layout/multi-tab/index.component.js +5 -2
- package/esm2015/lib/layout/rs-aside/index.component.js +3 -2
- package/esm2015/lib/layout/rs-header/index.component.js +3 -3
- package/esm2015/lib/service/keep-alive.service.js +38 -12
- package/esm5/lib/form/checkbox-group/index.component.js +1 -1
- package/esm5/lib/form/radio-group/index.component.js +1 -1
- package/esm5/lib/form/switch-input/index.component.js +1 -1
- package/esm5/lib/layout/multi-tab/index.component.js +5 -2
- package/esm5/lib/layout/rs-aside/index.component.js +3 -2
- package/esm5/lib/layout/rs-header/index.component.js +3 -3
- package/esm5/lib/service/keep-alive.service.js +41 -12
- package/fesm2015/raise-common-lib.js +48 -18
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +51 -18
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/service/keep-alive.service.d.ts +1 -0
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
- package/src/assets/style/reset/checkbox.scss +33 -0
- package/src/assets/style/reset/radio.scss +37 -0
- package/src/assets/style/reset/switch.scss +32 -0
- package/src/assets/style/style.scss +4 -0
|
@@ -1536,7 +1536,7 @@ var CommonFunctionService = /** @class */ (function () {
|
|
|
1536
1536
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1537
1537
|
*/
|
|
1538
1538
|
/** @type {?} */
|
|
1539
|
-
var storedRoutes =
|
|
1539
|
+
var storedRoutes = new Map();
|
|
1540
1540
|
/** @type {?} */
|
|
1541
1541
|
var toBeDeleteUrl;
|
|
1542
1542
|
/** @type {?} */
|
|
@@ -1565,12 +1565,21 @@ var KeepAliveService = /** @class */ (function () {
|
|
|
1565
1565
|
* @return {?}
|
|
1566
1566
|
*/
|
|
1567
1567
|
function (route) {
|
|
1568
|
+
/** @type {?} */
|
|
1569
|
+
var config = route.routeConfig;
|
|
1570
|
+
// console.log("shouldDetach", toBeDeleteUrl, this.getRoutePath(route));
|
|
1568
1571
|
if (toBeDeleteUrl === this.getRoutePath(route)) {
|
|
1569
1572
|
// 对于新开的又即将关闭的tab,不缓存
|
|
1570
|
-
|
|
1573
|
+
if (route.children.length === 0) {
|
|
1574
|
+
toBeDeleteUrl = "";
|
|
1575
|
+
}
|
|
1571
1576
|
return false;
|
|
1572
1577
|
}
|
|
1573
|
-
|
|
1578
|
+
if (config && excludeRoutes.includes(this.getRoutePath(route))) {
|
|
1579
|
+
return false;
|
|
1580
|
+
}
|
|
1581
|
+
//Don't store lazy loaded routes
|
|
1582
|
+
return config && !config.loadChildren;
|
|
1574
1583
|
};
|
|
1575
1584
|
/**
|
|
1576
1585
|
* @param {?} route
|
|
@@ -1585,7 +1594,9 @@ var KeepAliveService = /** @class */ (function () {
|
|
|
1585
1594
|
function (route, handle) {
|
|
1586
1595
|
// console.log("store", this.getRoutePath(route));
|
|
1587
1596
|
// console.log("store", storedRoutes);
|
|
1588
|
-
|
|
1597
|
+
/** @type {?} */
|
|
1598
|
+
var key = this.getRoutePath(route);
|
|
1599
|
+
storedRoutes.set(key, handle);
|
|
1589
1600
|
};
|
|
1590
1601
|
/**
|
|
1591
1602
|
* @param {?} route
|
|
@@ -1596,7 +1607,9 @@ var KeepAliveService = /** @class */ (function () {
|
|
|
1596
1607
|
* @return {?}
|
|
1597
1608
|
*/
|
|
1598
1609
|
function (route) {
|
|
1599
|
-
|
|
1610
|
+
/** @type {?} */
|
|
1611
|
+
var key = this.getRoutePath(route);
|
|
1612
|
+
return !!route.routeConfig && storedRoutes.has(key);
|
|
1600
1613
|
};
|
|
1601
1614
|
/**
|
|
1602
1615
|
* @param {?} route
|
|
@@ -1607,11 +1620,15 @@ var KeepAliveService = /** @class */ (function () {
|
|
|
1607
1620
|
* @return {?}
|
|
1608
1621
|
*/
|
|
1609
1622
|
function (route) {
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1623
|
+
/** @type {?} */
|
|
1624
|
+
var config = route.routeConfig;
|
|
1625
|
+
/** @type {?} */
|
|
1626
|
+
var key = this.getRoutePath(route);
|
|
1627
|
+
//We don't store lazy loaded routes, so don't even bother trying to retrieve them
|
|
1628
|
+
if (!config || config.loadChildren) {
|
|
1629
|
+
return false;
|
|
1630
|
+
}
|
|
1631
|
+
return storedRoutes.get(key) || null;
|
|
1615
1632
|
};
|
|
1616
1633
|
/**
|
|
1617
1634
|
* @param {?} future
|
|
@@ -1624,6 +1641,8 @@ var KeepAliveService = /** @class */ (function () {
|
|
|
1624
1641
|
* @return {?}
|
|
1625
1642
|
*/
|
|
1626
1643
|
function (future, curr) {
|
|
1644
|
+
// console.log("shouldReuseRoute", future, curr);
|
|
1645
|
+
// return future.routeConfig === curr.routeConfig;
|
|
1627
1646
|
if (future.routeConfig === curr.routeConfig) {
|
|
1628
1647
|
if (future.children.length === 0 && curr.children.length === 0) {
|
|
1629
1648
|
// 无子路由时, 通过params和queryParams判断是否复用路由
|
|
@@ -1645,6 +1664,7 @@ var KeepAliveService = /** @class */ (function () {
|
|
|
1645
1664
|
*/
|
|
1646
1665
|
function (route) {
|
|
1647
1666
|
if (route.routeConfig) {
|
|
1667
|
+
// const pathParams = JSON.stringify(route.params);
|
|
1648
1668
|
/** @type {?} */
|
|
1649
1669
|
var queryParams = new URLSearchParams(route.queryParams).toString();
|
|
1650
1670
|
/** @type {?} */
|
|
@@ -1668,7 +1688,16 @@ var KeepAliveService = /** @class */ (function () {
|
|
|
1668
1688
|
function (path) {
|
|
1669
1689
|
// console.log("clearCache", storedRoutes, path);
|
|
1670
1690
|
toBeDeleteUrl = path;
|
|
1671
|
-
delete
|
|
1691
|
+
storedRoutes.delete(path);
|
|
1692
|
+
};
|
|
1693
|
+
/**
|
|
1694
|
+
* @return {?}
|
|
1695
|
+
*/
|
|
1696
|
+
KeepAliveService.prototype.clearAllCache = /**
|
|
1697
|
+
* @return {?}
|
|
1698
|
+
*/
|
|
1699
|
+
function () {
|
|
1700
|
+
storedRoutes.clear();
|
|
1672
1701
|
};
|
|
1673
1702
|
KeepAliveService.decorators = [
|
|
1674
1703
|
{ type: Injectable, args: [{
|
|
@@ -1742,8 +1771,11 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
1742
1771
|
var state = navigation.extras.state;
|
|
1743
1772
|
// 获取传递的 state
|
|
1744
1773
|
/** @type {?} */
|
|
1774
|
+
var skipLocationChange = navigation.extras.skipLocationChange;
|
|
1775
|
+
// 获取是否跳过 location change
|
|
1776
|
+
/** @type {?} */
|
|
1745
1777
|
var currentRoute = _this.router.routerState.root.firstChild;
|
|
1746
|
-
if (currentRoute) {
|
|
1778
|
+
if (currentRoute && !skipLocationChange) {
|
|
1747
1779
|
_this.setTab(_this.router.url, currentRoute.snapshot.routeConfig.path, state && state.title);
|
|
1748
1780
|
}
|
|
1749
1781
|
}
|
|
@@ -2103,8 +2135,8 @@ var RSHeaderComponent = /** @class */ (function () {
|
|
|
2103
2135
|
RSHeaderComponent.decorators = [
|
|
2104
2136
|
{ type: Component, args: [{
|
|
2105
2137
|
selector: "rs-header",
|
|
2106
|
-
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
|
|
2107
|
-
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}"]
|
|
2138
|
+
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",
|
|
2139
|
+
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}"]
|
|
2108
2140
|
}] }
|
|
2109
2141
|
];
|
|
2110
2142
|
RSHeaderComponent.propDecorators = {
|
|
@@ -2246,6 +2278,7 @@ var RSAsideComponent = /** @class */ (function () {
|
|
|
2246
2278
|
*/
|
|
2247
2279
|
function () {
|
|
2248
2280
|
var _this = this;
|
|
2281
|
+
this.currentNav = this.router.url;
|
|
2249
2282
|
// 监听路由变化
|
|
2250
2283
|
this.router.events
|
|
2251
2284
|
.pipe(filter((/**
|
|
@@ -2281,7 +2314,7 @@ var RSAsideComponent = /** @class */ (function () {
|
|
|
2281
2314
|
{ type: Component, args: [{
|
|
2282
2315
|
selector: "rs-aside",
|
|
2283
2316
|
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",
|
|
2284
|
-
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}}"]
|
|
2317
|
+
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}}"]
|
|
2285
2318
|
}] }
|
|
2286
2319
|
];
|
|
2287
2320
|
/** @nocollapse */
|
|
@@ -2469,7 +2502,7 @@ var RadioGroupComponent = /** @class */ (function () {
|
|
|
2469
2502
|
{ type: Component, args: [{
|
|
2470
2503
|
selector: "rs-radio-group",
|
|
2471
2504
|
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",
|
|
2472
|
-
styles: [".radio-group{display:flex;padding-left:4px}.radio-group.horizontal{flex-direction:row;gap:35px}.radio-group.vertical{flex-direction:column;gap:14px}
|
|
2505
|
+
styles: [".radio-group{display:flex;padding-left:4px}.radio-group.horizontal{flex-direction:row;gap:35px}.radio-group.vertical{flex-direction:column;gap:14px}"]
|
|
2473
2506
|
}] }
|
|
2474
2507
|
];
|
|
2475
2508
|
RadioGroupComponent.propDecorators = {
|
|
@@ -2559,7 +2592,7 @@ var CheckboxGroupComponent = /** @class */ (function () {
|
|
|
2559
2592
|
{ type: Component, args: [{
|
|
2560
2593
|
selector: "rs-checkbox-group",
|
|
2561
2594
|
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",
|
|
2562
|
-
styles: [".checkbox-group{display:flex;padding-left:4px}.checkbox-group.horizontal{flex-direction:row;gap:35px}.checkbox-group.vertical{flex-direction:column;gap:14px}
|
|
2595
|
+
styles: [".checkbox-group{display:flex;padding-left:4px}.checkbox-group.horizontal{flex-direction:row;gap:35px}.checkbox-group.vertical{flex-direction:column;gap:14px}"]
|
|
2563
2596
|
}] }
|
|
2564
2597
|
];
|
|
2565
2598
|
/** @nocollapse */
|
|
@@ -2649,7 +2682,7 @@ var SwitchInputComponent = /** @class */ (function () {
|
|
|
2649
2682
|
{ type: Component, args: [{
|
|
2650
2683
|
selector: "rs-switch-input",
|
|
2651
2684
|
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",
|
|
2652
|
-
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}
|
|
2685
|
+
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}"]
|
|
2653
2686
|
}] }
|
|
2654
2687
|
];
|
|
2655
2688
|
SwitchInputComponent.propDecorators = {
|