@delon/abc 12.2.1 → 12.4.0
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/abc.umd.js +3 -3
- package/bundles/autoFocus.umd.js +4 -4
- package/bundles/avatarList.umd.js +4 -4
- package/bundles/count-down.umd.js +4 -4
- package/bundles/datePicker.umd.js +5 -5
- package/bundles/downFile.umd.js +4 -4
- package/bundles/edit.umd.js +4 -4
- package/bundles/ellipsis.umd.js +4 -4
- package/bundles/errorCollect.umd.js +4 -4
- package/bundles/exception.umd.js +12 -9
- package/bundles/exception.umd.js.map +1 -1
- package/bundles/footerToolbar.umd.js +4 -4
- package/bundles/fullContent.umd.js +6 -8
- package/bundles/fullContent.umd.js.map +1 -1
- package/bundles/globalFooter.umd.js +4 -4
- package/bundles/grid.umd.js +3 -3
- package/bundles/image.umd.js +3 -3
- package/bundles/let.umd.js +4 -4
- package/bundles/loading.umd.js +6 -8
- package/bundles/loading.umd.js.map +1 -1
- package/bundles/lodop.umd.js +5 -7
- package/bundles/lodop.umd.js.map +1 -1
- package/bundles/media.umd.js +5 -7
- package/bundles/media.umd.js.map +1 -1
- package/bundles/noticeIcon.umd.js +4 -4
- package/bundles/onboarding.umd.js +6 -8
- package/bundles/onboarding.umd.js.map +1 -1
- package/bundles/pageHeader.umd.js +4 -4
- package/bundles/pdf.umd.js +4 -4
- package/bundles/qr.umd.js +3 -3
- package/bundles/quickMenu.umd.js +4 -4
- package/bundles/result.umd.js +4 -4
- package/bundles/reuseTab.umd.js +15 -26
- package/bundles/reuseTab.umd.js.map +1 -1
- package/bundles/table.umd.js +251 -147
- package/bundles/table.umd.js.map +1 -1
- package/bundles/tagSelect.umd.js +4 -4
- package/bundles/view.umd.js +4 -4
- package/bundles/xlsx.umd.js +30 -37
- package/bundles/xlsx.umd.js.map +1 -1
- package/bundles/zip.umd.js +5 -7
- package/bundles/zip.umd.js.map +1 -1
- package/esm2015/exception/exception.component.js +7 -4
- package/esm2015/exception/exception.module.js +3 -2
- package/esm2015/lodop/lodop.service.js +1 -1
- package/esm2015/reuse-tab/reuse-tab-context-menu.component.js +2 -2
- package/esm2015/reuse-tab/reuse-tab-context.service.js +4 -13
- package/esm2015/reuse-tab/reuse-tab.component.js +7 -7
- package/esm2015/st/index.js +2 -0
- package/esm2015/st/st-column-source.js +28 -7
- package/esm2015/st/st-data-source.js +4 -4
- package/esm2015/st/st-export.js +9 -3
- package/esm2015/st/st-filter.component.js +149 -0
- package/esm2015/st/st-td.component.js +232 -0
- package/esm2015/st/st.component.js +28 -118
- package/esm2015/st/st.config.js +1 -2
- package/esm2015/st/st.interfaces.js +1 -1
- package/esm2015/st/st.module.js +9 -3
- package/esm2015/st/st.types.js +1 -1
- package/esm2015/st/table.js +3 -1
- package/esm2015/xlsx/xlsx.service.js +23 -29
- package/esm2015/xlsx/xlsx.types.js +1 -1
- package/esm2015/zip/zip.service.js +1 -1
- package/exception/exception.component.d.ts +3 -2
- package/exception/exception.metadata.json +1 -1
- package/fesm2015/exception.js +8 -4
- package/fesm2015/exception.js.map +1 -1
- package/fesm2015/lodop.js.map +1 -1
- package/fesm2015/reuseTab.js +10 -19
- package/fesm2015/reuseTab.js.map +1 -1
- package/fesm2015/table.js +447 -132
- package/fesm2015/table.js.map +1 -1
- package/fesm2015/xlsx.js +22 -28
- package/fesm2015/xlsx.js.map +1 -1
- package/fesm2015/zip.js.map +1 -1
- package/package.json +4 -4
- package/reuse-tab/reuse-tab.component.d.ts +1 -1
- package/reuse-tab/reuseTab.metadata.json +1 -1
- package/st/index.d.ts +1 -0
- package/st/st-filter.component.d.ts +18 -0
- package/st/st-td.component.d.ts +27 -0
- package/st/st.component.d.ts +8 -23
- package/st/st.interfaces.d.ts +57 -3
- package/st/st.types.d.ts +6 -0
- package/st/style/index.less +28 -12
- package/st/table.d.ts +2 -0
- package/st/table.metadata.json +1 -1
- package/sv/style/index.less +1 -0
- package/theme-default.less +3 -0
- package/xlsx/xlsx.metadata.json +1 -1
- package/xlsx/xlsx.types.d.ts +3 -0
package/bundles/reuseTab.umd.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license ng-alain(cipchk@qq.com) v12.
|
|
2
|
+
* @license ng-alain(cipchk@qq.com) v12.4.0
|
|
3
3
|
* (c) 2020 cipchk https://ng-alain.com/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
7
7
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@delon/theme'), require('rxjs'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/cdk/platform'), require('@angular/common'), require('@angular/router'), require('rxjs/operators'), require('@delon/util/decorator'), require('@delon/util/browser'), require('ng-zorro-antd/icon'), require('ng-zorro-antd/menu'), require('ng-zorro-antd/tabs')) :
|
|
8
8
|
typeof define === 'function' && define.amd ? define('@delon/abc/reuse-tab', ['exports', '@angular/core', '@delon/theme', 'rxjs', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/cdk/platform', '@angular/common', '@angular/router', 'rxjs/operators', '@delon/util/decorator', '@delon/util/browser', 'ng-zorro-antd/icon', 'ng-zorro-antd/menu', 'ng-zorro-antd/tabs'], factory) :
|
|
9
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.delon = global.delon || {}, global.delon.abc = global.delon.abc || {}, global.delon.abc[
|
|
10
|
-
}(this, (function (exports, i0, i1, rxjs, overlay, portal, platform, common, router, operators, decorator, browser, icon, menu, tabs) { 'use strict';
|
|
9
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.delon = global.delon || {}, global.delon.abc = global.delon.abc || {}, global.delon.abc["reuse-tab"] = {}), global.ng.core, global.delon.theme, global.rxjs, global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.cdk.platform, global.ng.common, global.ng.router, global.rxjs.operators, global.decorator, global.browser, global["ng-zorro-antd/icon"], global["ng-zorro-antd/menu"], global["ng-zorro-antd/tabs"]));
|
|
10
|
+
})(this, (function (exports, i0, i1, rxjs, overlay, portal, platform, common, router, operators, decorator, browser, icon, menu, tabs) { 'use strict';
|
|
11
11
|
|
|
12
12
|
function _interopNamespace(e) {
|
|
13
13
|
if (e && e.__esModule) return e;
|
|
@@ -18,14 +18,12 @@
|
|
|
18
18
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
19
19
|
Object.defineProperty(n, k, d.get ? d : {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () {
|
|
22
|
-
return e[k];
|
|
23
|
-
}
|
|
21
|
+
get: function () { return e[k]; }
|
|
24
22
|
});
|
|
25
23
|
}
|
|
26
24
|
});
|
|
27
25
|
}
|
|
28
|
-
n[
|
|
26
|
+
n["default"] = e;
|
|
29
27
|
return Object.freeze(n);
|
|
30
28
|
}
|
|
31
29
|
|
|
@@ -92,7 +90,7 @@
|
|
|
92
90
|
ReuseTabContextMenuComponent.decorators = [
|
|
93
91
|
{ type: i0.Component, args: [{
|
|
94
92
|
selector: 'reuse-tab-context-menu',
|
|
95
|
-
template: "<ul nz-menu>\n <li
|
|
93
|
+
template: "<ul nz-menu>\n <li\n *ngIf=\"item.active\"\n nz-menu-item\n (click)=\"click($event, 'refresh')\"\n data-type=\"refresh\"\n [innerHTML]=\"i18n.refresh\"\n ></li>\n <li\n nz-menu-item\n (click)=\"click($event, 'close')\"\n data-type=\"close\"\n [nzDisabled]=\"!item.closable\"\n [innerHTML]=\"i18n.close\"\n ></li>\n <li nz-menu-item (click)=\"click($event, 'closeOther')\" data-type=\"closeOther\" [innerHTML]=\"i18n.closeOther\"></li>\n <li\n nz-menu-item\n (click)=\"click($event, 'closeRight')\"\n data-type=\"closeRight\"\n [nzDisabled]=\"item.last\"\n [innerHTML]=\"i18n.closeRight\"\n ></li>\n <ng-container *ngIf=\"customContextMenu!.length > 0\">\n <li nz-menu-divider></li>\n <li\n *ngFor=\"let i of customContextMenu\"\n nz-menu-item\n [attr.data-type]=\"i.id\"\n [nzDisabled]=\"isDisabled(i)\"\n (click)=\"click($event, 'custom', i)\"\n [innerHTML]=\"i.title\"\n ></li>\n </ng-container>\n</ul>\n",
|
|
96
94
|
host: {
|
|
97
95
|
'(document:click)': 'closeMenu($event)',
|
|
98
96
|
'(document:contextmenu)': 'closeMenu($event)'
|
|
@@ -130,21 +128,12 @@
|
|
|
130
128
|
var _this = this;
|
|
131
129
|
this.remove();
|
|
132
130
|
var event = context.event, item = context.item, customContextMenu = context.customContextMenu;
|
|
133
|
-
var
|
|
134
|
-
getBoundingClientRect: function () { return ({
|
|
135
|
-
bottom: event.clientY,
|
|
136
|
-
height: 0,
|
|
137
|
-
left: event.clientX,
|
|
138
|
-
right: event.clientX,
|
|
139
|
-
top: event.clientY,
|
|
140
|
-
width: 0
|
|
141
|
-
}); }
|
|
142
|
-
});
|
|
131
|
+
var x = event.x, y = event.y;
|
|
143
132
|
var positions = [
|
|
144
133
|
new overlay.ConnectionPositionPair({ originX: 'start', originY: 'bottom' }, { overlayX: 'start', overlayY: 'top' }),
|
|
145
134
|
new overlay.ConnectionPositionPair({ originX: 'start', originY: 'top' }, { overlayX: 'start', overlayY: 'bottom' })
|
|
146
135
|
];
|
|
147
|
-
var positionStrategy = this.overlay.position().flexibleConnectedTo(
|
|
136
|
+
var positionStrategy = this.overlay.position().flexibleConnectedTo({ x: x, y: y }).withPositions(positions);
|
|
148
137
|
this.ref = this.overlay.create({
|
|
149
138
|
positionStrategy: positionStrategy,
|
|
150
139
|
panelClass: 'reuse-tab__cm',
|
|
@@ -1186,7 +1175,7 @@
|
|
|
1186
1175
|
this.i18nSrv = i18nSrv;
|
|
1187
1176
|
this.doc = doc;
|
|
1188
1177
|
this.platform = platform;
|
|
1189
|
-
this.
|
|
1178
|
+
this.destroy$ = new rxjs.Subject();
|
|
1190
1179
|
this.updatePos$ = new rxjs.Subject();
|
|
1191
1180
|
this.list = [];
|
|
1192
1181
|
this.pos = 0;
|
|
@@ -1258,7 +1247,7 @@
|
|
|
1258
1247
|
this.router.navigateByUrl(ls[toPos].url);
|
|
1259
1248
|
}
|
|
1260
1249
|
if (addCurrent) {
|
|
1261
|
-
ls.
|
|
1250
|
+
ls.splice(this.pos + 1, 0, this.genCurItem());
|
|
1262
1251
|
}
|
|
1263
1252
|
ls.forEach(function (item, index) { return (item.index = index); });
|
|
1264
1253
|
if (ls.length === 1) {
|
|
@@ -1346,7 +1335,7 @@
|
|
|
1346
1335
|
if (!this.platform.isBrowser) {
|
|
1347
1336
|
return;
|
|
1348
1337
|
}
|
|
1349
|
-
this.updatePos$.pipe(operators.takeUntil(this.
|
|
1338
|
+
this.updatePos$.pipe(operators.takeUntil(this.destroy$), operators.debounceTime(50)).subscribe(function () {
|
|
1350
1339
|
var url = _this.srv.getUrl(_this.route.snapshot);
|
|
1351
1340
|
var ls = _this.list.filter(function (w) { return w.url === url || !_this.srv.isExclude(w.url); });
|
|
1352
1341
|
if (ls.length === 0) {
|
|
@@ -1364,7 +1353,7 @@
|
|
|
1364
1353
|
_this.list = ls;
|
|
1365
1354
|
_this.cdr.detectChanges();
|
|
1366
1355
|
});
|
|
1367
|
-
this.srv.change.pipe(operators.takeUntil(this.
|
|
1356
|
+
this.srv.change.pipe(operators.takeUntil(this.destroy$)).subscribe(function (res) {
|
|
1368
1357
|
var _a;
|
|
1369
1358
|
switch (res === null || res === void 0 ? void 0 : res.active) {
|
|
1370
1359
|
case 'title':
|
|
@@ -1380,7 +1369,7 @@
|
|
|
1380
1369
|
_this.genList(res);
|
|
1381
1370
|
});
|
|
1382
1371
|
this.i18nSrv.change
|
|
1383
|
-
.pipe(operators.filter(function () { return _this.srv.inited; }), operators.takeUntil(this.
|
|
1372
|
+
.pipe(operators.filter(function () { return _this.srv.inited; }), operators.takeUntil(this.destroy$), operators.debounceTime(100))
|
|
1384
1373
|
.subscribe(function () { return _this.genList({ active: 'title' }); });
|
|
1385
1374
|
this.srv.init();
|
|
1386
1375
|
};
|
|
@@ -1404,7 +1393,7 @@
|
|
|
1404
1393
|
this.cdr.detectChanges();
|
|
1405
1394
|
};
|
|
1406
1395
|
ReuseTabComponent.prototype.ngOnDestroy = function () {
|
|
1407
|
-
var unsubscribe$ = this.
|
|
1396
|
+
var unsubscribe$ = this.destroy$;
|
|
1408
1397
|
unsubscribe$.next();
|
|
1409
1398
|
unsubscribe$.complete();
|
|
1410
1399
|
};
|
|
@@ -1529,5 +1518,5 @@
|
|
|
1529
1518
|
|
|
1530
1519
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1531
1520
|
|
|
1532
|
-
}))
|
|
1521
|
+
}));
|
|
1533
1522
|
//# sourceMappingURL=reuseTab.umd.js.map
|