raise-common-lib 0.0.33 → 0.0.35
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 +10 -31
- 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/layout/multi-tab/index.component.js +2 -2
- package/esm2015/lib/service/keep-alive.service.js +9 -20
- package/esm5/lib/layout/multi-tab/index.component.js +2 -2
- package/esm5/lib/service/keep-alive.service.js +11 -31
- package/fesm2015/raise-common-lib.js +7 -20
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +10 -31
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/service/keep-alive.service.d.ts +0 -2
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
|
@@ -2125,7 +2125,7 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
2125
2125
|
};
|
|
2126
2126
|
MultiTabComponent.decorators = [
|
|
2127
2127
|
{ type: Component, args: [{
|
|
2128
|
-
selector: "
|
|
2128
|
+
selector: "rs-multi-tab",
|
|
2129
2129
|
template: "<div class=\"rs-multi-tab\" *ngIf=\"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()\">\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",
|
|
2130
2130
|
styles: [".rs-multi-tab{border-bottom:1px solid #e5eaef;height:28px;width:100%;display:flex;justify-content:space-between}.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:100%;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
2131
|
}] }
|
|
@@ -21056,19 +21056,14 @@ var toBeDeleteUrl;
|
|
|
21056
21056
|
/** @type {?} */
|
|
21057
21057
|
var excludeRoutes = [];
|
|
21058
21058
|
// 不需要缓存的url
|
|
21059
|
-
var
|
|
21060
|
-
// 不需要缓存的url
|
|
21061
|
-
KeepAliveService = /** @class */ (function () {
|
|
21059
|
+
var KeepAliveService = /** @class */ (function () {
|
|
21062
21060
|
function KeepAliveService() {
|
|
21063
21061
|
}
|
|
21064
|
-
// 用于存储 BaseComponent 的实例
|
|
21065
21062
|
/**
|
|
21066
21063
|
* @param {?} routes
|
|
21067
21064
|
* @return {?}
|
|
21068
21065
|
*/
|
|
21069
|
-
KeepAliveService.prototype.setExcludeRoutes =
|
|
21070
|
-
// 用于存储 BaseComponent 的实例
|
|
21071
|
-
/**
|
|
21066
|
+
KeepAliveService.prototype.setExcludeRoutes = /**
|
|
21072
21067
|
* @param {?} routes
|
|
21073
21068
|
* @return {?}
|
|
21074
21069
|
*/
|
|
@@ -21216,32 +21211,16 @@ KeepAliveService = /** @class */ (function () {
|
|
|
21216
21211
|
* @return {?}
|
|
21217
21212
|
*/
|
|
21218
21213
|
function () {
|
|
21219
|
-
sessionStorage.removeItem("TabCache");
|
|
21220
|
-
if (this.baseComponent) {
|
|
21221
|
-
this.baseComponent.ngOnDestroy();
|
|
21222
|
-
}
|
|
21223
21214
|
storedRoutes.clear();
|
|
21224
21215
|
};
|
|
21225
|
-
|
|
21226
|
-
|
|
21227
|
-
|
|
21228
|
-
|
|
21229
|
-
|
|
21230
|
-
|
|
21231
|
-
* @return {?}
|
|
21232
|
-
*/
|
|
21233
|
-
function (component) {
|
|
21234
|
-
this.baseComponent = component;
|
|
21235
|
-
};
|
|
21216
|
+
KeepAliveService.decorators = [
|
|
21217
|
+
{ type: Injectable, args: [{
|
|
21218
|
+
providedIn: "root",
|
|
21219
|
+
},] }
|
|
21220
|
+
];
|
|
21221
|
+
/** @nocollapse */ KeepAliveService.ngInjectableDef = ɵɵdefineInjectable({ factory: function KeepAliveService_Factory() { return new KeepAliveService(); }, token: KeepAliveService, providedIn: "root" });
|
|
21236
21222
|
return KeepAliveService;
|
|
21237
|
-
}());
|
|
21238
|
-
if (false) {
|
|
21239
|
-
/**
|
|
21240
|
-
* @type {?}
|
|
21241
|
-
* @private
|
|
21242
|
-
*/
|
|
21243
|
-
KeepAliveService.prototype.baseComponent;
|
|
21244
|
-
}
|
|
21223
|
+
}());
|
|
21245
21224
|
|
|
21246
21225
|
/**
|
|
21247
21226
|
* @fileoverview added by tsickle
|