fantasy-ngzorro 1.0.29 → 1.0.31
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/fantasy-ngzorro.umd.js +117 -8
- package/bundles/fantasy-ngzorro.umd.js.map +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js +2 -2
- package/bundles/fantasy-ngzorro.umd.min.js.map +1 -1
- package/esm2015/fantasy-ngzorro.js +4 -2
- package/esm2015/hd-component.module.js +4 -2
- package/esm2015/hd-detail-lines/hd-detail-lines.component.js +7 -3
- package/esm2015/hd-log/hd-log.component.js +30 -0
- package/esm2015/hd-log/hd-log.module.js +24 -0
- package/esm2015/hd-log/hd-log.service.js +48 -0
- package/esm2015/hd-status/hd-status.service.js +2 -2
- package/esm2015/index.js +2 -2
- package/esm2015/public-api.js +2 -1
- package/esm5/fantasy-ngzorro.js +4 -2
- package/esm5/hd-component.module.js +4 -2
- package/esm5/hd-detail-lines/hd-detail-lines.component.js +7 -3
- package/esm5/hd-log/hd-log.component.js +36 -0
- package/esm5/hd-log/hd-log.module.js +28 -0
- package/esm5/hd-log/hd-log.service.js +51 -0
- package/esm5/hd-status/hd-status.service.js +2 -2
- package/esm5/index.js +2 -2
- package/esm5/public-api.js +2 -1
- package/fantasy-ngzorro.d.ts +2 -0
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +104 -7
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +114 -7
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-detail-lines/hd-detail-lines.component.d.ts +1 -0
- package/hd-log/hd-log.component.d.ts +6 -0
- package/hd-log/hd-log.module.d.ts +2 -0
- package/hd-log/hd-log.service.d.ts +6 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('ng-zorro-antd'), require('@angular/forms'), require('ng-zorro-antd/core'), require('lodash'), require('@angular/cdk/drag-drop'), require('ng-zorro-antd/table')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('fantasy-ngzorro', ['exports', '@angular/core', '@angular/common', 'ng-zorro-antd', '@angular/forms', 'ng-zorro-antd/core', 'lodash', '@angular/cdk/drag-drop', 'ng-zorro-antd/table'], factory) :
|
|
4
|
-
(global = global || self, factory(global['fantasy-ngzorro'] = {}, global.ng.core, global.ng.common, global.ngZorroAntd, global.ng.forms, global.core$1, global.lodash, global.ng.cdk['drag-drop'], global.table));
|
|
5
|
-
}(this, (function (exports, core, common, ngZorroAntd, forms, core$1, lodash, dragDrop, table) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('ng-zorro-antd'), require('@angular/forms'), require('ng-zorro-antd/core'), require('lodash'), require('@angular/cdk/drag-drop'), require('ng-zorro-antd/table'), require('ng-zorro-antd/modal')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('fantasy-ngzorro', ['exports', '@angular/core', '@angular/common', 'ng-zorro-antd', '@angular/forms', 'ng-zorro-antd/core', 'lodash', '@angular/cdk/drag-drop', 'ng-zorro-antd/table', 'ng-zorro-antd/modal'], factory) :
|
|
4
|
+
(global = global || self, factory(global['fantasy-ngzorro'] = {}, global.ng.core, global.ng.common, global.ngZorroAntd, global.ng.forms, global.core$1, global.lodash, global.ng.cdk['drag-drop'], global.table, global.modal));
|
|
5
|
+
}(this, (function (exports, core, common, ngZorroAntd, forms, core$1, lodash, dragDrop, table, modal) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -593,6 +593,7 @@
|
|
|
593
593
|
this.showTotal = false;
|
|
594
594
|
this.totalOption = [];
|
|
595
595
|
this.columnsNumber = 0;
|
|
596
|
+
this.hdFrontPagination = false;
|
|
596
597
|
this.totalOptionList = [];
|
|
597
598
|
this.tableData = new Page();
|
|
598
599
|
this.tableLoading = false;
|
|
@@ -796,7 +797,7 @@
|
|
|
796
797
|
HdDetailLinesComponent.decorators = [
|
|
797
798
|
{ type: core.Component, args: [{
|
|
798
799
|
selector: 'hd-detail-lines',
|
|
799
|
-
template: "<ng-container>\n <nz-table #hdTable [nzScroll]=\"scroll\" class=\"hd-table-container\" nzShowSizeChanger
|
|
800
|
+
template: "<ng-container>\n <nz-table #hdTable [nzScroll]=\"scroll\" class=\"hd-table-container\" nzShowSizeChanger\n [nzFrontPagination]=\"hdFrontPagination\" nzSize=\"middle\" [nzData]=\"lines\" [nzLoading]=\"tableLoading\"\n (nzCurrentPageDataChange)=\"showSelected ? currentPageDataChange($event) : null\">\n <thead>\n <tr>\n <th *ngIf=\"showSelected\" nzWidth=\"40px\" nzLeft=\"0px\" nzShowCheckbox [(nzChecked)]=\"isAllDisplayDataChecked\"\n [nzIndeterminate]=\"isIndeterminate\" (nzCheckedChange)=\"checkAll($event)\"></th>\n <ng-container *ngTemplateOutlet=\"detailLineHead\"></ng-container>\n </tr>\n </thead>\n <tbody *ngIf=\"!allowDrop;else allowDropTemplate\">\n <tr *ngFor=\"let data of hdTable.data;index as i\">\n <td *ngIf=\"showSelected\" nzWidth=\"40px\" nzLeft=\"0px\" nzShowCheckbox\n [(nzChecked)]=\"mapOfCheckedId[data[selectField]]\" (nzCheckedChange)=\"refreshStatus($event, data)\"></td>\n <ng-container *ngTemplateOutlet=\"detailLineBody;context:{$implicit: data, index: i}\"></ng-container>\n </tr>\n <!-- \u5408\u8BA1\u533A\u57DF -->\n <tr *ngIf=\"showTotal\" class=\"hd-table-total\">\n <td *ngIf=\"showSelected\"></td>\n <td>\u5408\u8BA1</td>\n <ng-container *ngFor=\"let totalOption of totalOptionList\">\n <td [nzAlign]=\"totalOption.align ? totalOption.align : 'left'\">{{ (totalOption.value || totalOption.value ===\n 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal ) ? totalOption.value :\n LodashRound(totalOption.value,2).toFixed(2)) : '' }} </td>\n </ng-container>\n </tr>\n </tbody>\n <ng-template #allowDropTemplate>\n <tbody cdkDropList (cdkDropListDropped)=\"drop($event)\">\n <tr *ngFor=\"let data of hdTable.data;index as i\" cdkDrag>\n <td *ngIf=\"showSelected\" nzWidth=\"40px\" nzLeft=\"0px\" nzShowCheckbox\n [(nzChecked)]=\"mapOfCheckedId[data[selectField]]\" (nzCheckedChange)=\"refreshStatus($event, data)\"></td>\n <ng-container *ngTemplateOutlet=\"detailLineBody;context:{$implicit: data, index: i}\"></ng-container>\n </tr>\n <!-- \u5408\u8BA1\u533A\u57DF -->\n <tr *ngIf=\"showTotal\" class=\"hd-table-total\">\n <td *ngIf=\"showSelected\"></td>\n <td>\u5408\u8BA1</td>\n <ng-container *ngFor=\"let totalOption of totalOptionList\">\n <td [nzAlign]=\"totalOption.align ? totalOption.align : 'left'\">{{ (totalOption.value || totalOption.value\n === 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal ) ? totalOption.value :\n LodashRound(totalOption.value,2).toFixed(2)) : '' }} </td>\n </ng-container>\n </tr>\n </tbody>\n </ng-template>\n </nz-table>\n</ng-container>",
|
|
800
801
|
styles: ["::ng-deep .common-btn-group>a{font-size:12px;font-weight:400;color:#12a34f!important;white-space:nowrap}::ng-deep .common-btn-group .common-danger-btn:hover{color:#f05b24!important}::ng-deep .common-btn-group>a:hover{color:#20bd62!important}::ng-deep .common-btn-group>a:not(:last-child)::after{content:'';margin:0 2px}::ng-deep .common-billNumber>a{color:#3b77e3}button{box-shadow:unset;text-shadow:unset}::ng-deep .ant-form-item-label>label{color:#4b504e}::ng-deep .ant-input-number-input{height:28px}::ng-deep .ant-input-number{height:28px}textarea.ant-input{height:auto;min-height:28px}::ng-deep .ant-select-selection--multiple{min-height:28px}::ng-deep .ant-select-selection__rendered>ul>li{height:22px!important;margin-top:3px!important;line-height:22px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:28px!important}::ng-deep .ant-input{height:28px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:28px!important}::ng-deep .ant-calendar-range-picker-input{text-align:left!important}::ng-deep .ant-calendar-picker{width:100%!important}::ng-deep .ant-row{margin-right:0!important;margin-left:0!important}::ng-deep .ant-col-6{padding-left:12px;padding-right:12px}::ng-deep .ant-col-12{padding-left:12px;padding-right:12px}::ng-deep .ant-col-18{padding-left:12px;padding-right:12px}::ng-deep .ant-col-24{padding-left:12px;padding-right:12px}::ng-deep .ant-alert-info{background-color:#f5f8f6;border:1px solid #cfe3d4}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:12px;font-family:PingFangSC-Medium,PingFang SC;color:#2a3634;padding:8px!important;box-sizing:border-box}:host ::ng-deep td{font-weight:400;font-style:normal;font-size:12px;color:#2a3634;text-align:left;white-space:nowrap;padding:8px!important;box-sizing:border-box}::ng-deep .ant-pagination-options{display:inline-flex;align-items:center}::ng-deep .ant-time-picker{width:100%}.hd-table-container ::ng-deep .ant-pagination-options-quick-jumper input{border-radius:2px;border:1px solid #d9d9d9}.hd-table-container ::ng-deep .ant-pagination-options .ant-select-selection{border-radius:2px}.hd-table-container ::ng-deep .ant-table-thead>tr>th{border-bottom:1px solid #ecf1ed}.hd-table-container ::ng-deep .ant-table-tbody>tr>td{border-bottom:1px solid #ecf1ed}.hd-table-container ::ng-deep .hd-table-total>td{border:0!important}"]
|
|
801
802
|
}] }
|
|
802
803
|
];
|
|
@@ -814,7 +815,8 @@
|
|
|
814
815
|
detailLineBody: [{ type: core.ContentChild, args: ["detailLineBody", { static: false },] }],
|
|
815
816
|
showTotal: [{ type: core.Input }],
|
|
816
817
|
totalOption: [{ type: core.Input }],
|
|
817
|
-
columnsNumber: [{ type: core.Input }]
|
|
818
|
+
columnsNumber: [{ type: core.Input }],
|
|
819
|
+
hdFrontPagination: [{ type: core.Input }]
|
|
818
820
|
};
|
|
819
821
|
__decorate([
|
|
820
822
|
core$1.InputBoolean(),
|
|
@@ -856,6 +858,8 @@
|
|
|
856
858
|
/** @type {?} */
|
|
857
859
|
HdDetailLinesComponent.prototype.columnsNumber;
|
|
858
860
|
/** @type {?} */
|
|
861
|
+
HdDetailLinesComponent.prototype.hdFrontPagination;
|
|
862
|
+
/** @type {?} */
|
|
859
863
|
HdDetailLinesComponent.prototype.totalOptionList;
|
|
860
864
|
/** @type {?} */
|
|
861
865
|
HdDetailLinesComponent.prototype.tableData;
|
|
@@ -912,7 +916,7 @@
|
|
|
912
916
|
// 黄色
|
|
913
917
|
'#FAB13B': ['partshipped', 'committed', 'partValid'],
|
|
914
918
|
// 灰色
|
|
915
|
-
'#9FA4A2': ['initial', 'uncommitted'
|
|
919
|
+
'#9FA4A2': ['initial', 'uncommitted'],
|
|
916
920
|
// 红色
|
|
917
921
|
'#F5222D': ['delete', 'deleted', 'aborted'],
|
|
918
922
|
// 蓝色
|
|
@@ -2796,6 +2800,62 @@
|
|
|
2796
2800
|
return HdPopconfirmModule;
|
|
2797
2801
|
}());
|
|
2798
2802
|
|
|
2803
|
+
/**
|
|
2804
|
+
* @fileoverview added by tsickle
|
|
2805
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2806
|
+
*/
|
|
2807
|
+
var HdLogComponent = /** @class */ (function () {
|
|
2808
|
+
function HdLogComponent() {
|
|
2809
|
+
}
|
|
2810
|
+
/**
|
|
2811
|
+
* @return {?}
|
|
2812
|
+
*/
|
|
2813
|
+
HdLogComponent.prototype.ngOnInit = /**
|
|
2814
|
+
* @return {?}
|
|
2815
|
+
*/
|
|
2816
|
+
function () {
|
|
2817
|
+
};
|
|
2818
|
+
HdLogComponent.decorators = [
|
|
2819
|
+
{ type: core.Component, args: [{
|
|
2820
|
+
selector: 'hd-log',
|
|
2821
|
+
template: "<hd-detail-lines [scroll]=\"{x: '1px'}\" [lines]=\"logs\" hdFrontPagination=\"true\">\n <ng-template #detailLineHead>\n <th>\u65F6\u95F4</th>\n <th>\u64CD\u4F5C\u4EBA</th>\n <th>\u4E8B\u4EF6</th>\n <th>\u63CF\u8FF0</th>\n </ng-template>\n <ng-template #detailLineBody let-data let-index=\"index\">\n <td>{{data.createInfo.operateTime}}</td>\n <td>{{data.createInfo.operatorName}}</td>\n <td>{{data.event}}</td>\n <td>{{data.describe}}</td>\n </ng-template>\n</hd-detail-lines>",
|
|
2822
|
+
styles: [""]
|
|
2823
|
+
}] }
|
|
2824
|
+
];
|
|
2825
|
+
/** @nocollapse */
|
|
2826
|
+
HdLogComponent.ctorParameters = function () { return []; };
|
|
2827
|
+
HdLogComponent.propDecorators = {
|
|
2828
|
+
logs: [{ type: core.Input }]
|
|
2829
|
+
};
|
|
2830
|
+
return HdLogComponent;
|
|
2831
|
+
}());
|
|
2832
|
+
if (false) {
|
|
2833
|
+
/** @type {?} */
|
|
2834
|
+
HdLogComponent.prototype.logs;
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2837
|
+
/**
|
|
2838
|
+
* @fileoverview added by tsickle
|
|
2839
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2840
|
+
*/
|
|
2841
|
+
var HdLogModule = /** @class */ (function () {
|
|
2842
|
+
function HdLogModule() {
|
|
2843
|
+
}
|
|
2844
|
+
HdLogModule.decorators = [
|
|
2845
|
+
{ type: core.NgModule, args: [{
|
|
2846
|
+
imports: [
|
|
2847
|
+
common.CommonModule,
|
|
2848
|
+
ngZorroAntd.NgZorroAntdModule,
|
|
2849
|
+
HdDetailLinesModule
|
|
2850
|
+
],
|
|
2851
|
+
entryComponents: [HdLogComponent],
|
|
2852
|
+
declarations: [HdLogComponent],
|
|
2853
|
+
exports: [HdLogComponent]
|
|
2854
|
+
},] }
|
|
2855
|
+
];
|
|
2856
|
+
return HdLogModule;
|
|
2857
|
+
}());
|
|
2858
|
+
|
|
2799
2859
|
/**
|
|
2800
2860
|
* @fileoverview added by tsickle
|
|
2801
2861
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -2818,7 +2878,8 @@
|
|
|
2818
2878
|
HdStatusModule,
|
|
2819
2879
|
HdCurrentTableModule,
|
|
2820
2880
|
HdTipModule,
|
|
2821
|
-
HdPopconfirmModule
|
|
2881
|
+
HdPopconfirmModule,
|
|
2882
|
+
HdLogModule
|
|
2822
2883
|
]
|
|
2823
2884
|
},] }
|
|
2824
2885
|
];
|
|
@@ -3236,6 +3297,51 @@
|
|
|
3236
3297
|
return HdFormLinesService;
|
|
3237
3298
|
}());
|
|
3238
3299
|
|
|
3300
|
+
/**
|
|
3301
|
+
* @fileoverview added by tsickle
|
|
3302
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3303
|
+
*/
|
|
3304
|
+
var HdLogService = /** @class */ (function () {
|
|
3305
|
+
function HdLogService(modalService) {
|
|
3306
|
+
this.modalService = modalService;
|
|
3307
|
+
}
|
|
3308
|
+
/**
|
|
3309
|
+
* @param {?} logs
|
|
3310
|
+
* @return {?}
|
|
3311
|
+
*/
|
|
3312
|
+
HdLogService.prototype.showLogs = /**
|
|
3313
|
+
* @param {?} logs
|
|
3314
|
+
* @return {?}
|
|
3315
|
+
*/
|
|
3316
|
+
function (logs) {
|
|
3317
|
+
this.modalService.create({
|
|
3318
|
+
nzTitle: '操作日志',
|
|
3319
|
+
nzContent: HdLogComponent,
|
|
3320
|
+
nzComponentParams: { logs: logs },
|
|
3321
|
+
nzFooter: null,
|
|
3322
|
+
nzWidth: 800
|
|
3323
|
+
});
|
|
3324
|
+
};
|
|
3325
|
+
HdLogService.decorators = [
|
|
3326
|
+
{ type: core.Injectable, args: [{
|
|
3327
|
+
providedIn: 'root'
|
|
3328
|
+
},] }
|
|
3329
|
+
];
|
|
3330
|
+
/** @nocollapse */
|
|
3331
|
+
HdLogService.ctorParameters = function () { return [
|
|
3332
|
+
{ type: ngZorroAntd.NzModalService }
|
|
3333
|
+
]; };
|
|
3334
|
+
/** @nocollapse */ HdLogService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function HdLogService_Factory() { return new HdLogService(core.ɵɵinject(modal.NzModalService)); }, token: HdLogService, providedIn: "root" });
|
|
3335
|
+
return HdLogService;
|
|
3336
|
+
}());
|
|
3337
|
+
if (false) {
|
|
3338
|
+
/**
|
|
3339
|
+
* @type {?}
|
|
3340
|
+
* @private
|
|
3341
|
+
*/
|
|
3342
|
+
HdLogService.prototype.modalService;
|
|
3343
|
+
}
|
|
3344
|
+
|
|
3239
3345
|
/**
|
|
3240
3346
|
* @fileoverview added by tsickle
|
|
3241
3347
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -3380,6 +3486,7 @@
|
|
|
3380
3486
|
exports.HdFilterService = HdFilterService;
|
|
3381
3487
|
exports.HdFormLinesService = HdFormLinesService;
|
|
3382
3488
|
exports.HdFormService = HdFormService;
|
|
3489
|
+
exports.HdLogService = HdLogService;
|
|
3383
3490
|
exports.HdOption = HdOption;
|
|
3384
3491
|
exports.InputNumber = InputNumber;
|
|
3385
3492
|
exports.Page = Page;
|
|
@@ -3390,6 +3497,8 @@
|
|
|
3390
3497
|
exports.Utils = Utils;
|
|
3391
3498
|
exports.ɵa = HdComponentModule;
|
|
3392
3499
|
exports.ɵb = HdButtonModule;
|
|
3500
|
+
exports.ɵba = HdLogModule;
|
|
3501
|
+
exports.ɵbb = HdLogComponent;
|
|
3393
3502
|
exports.ɵc = HdButtonComponent;
|
|
3394
3503
|
exports.ɵd = HdButtonGroupModule;
|
|
3395
3504
|
exports.ɵe = HdButtonGroupComponent;
|