fantasy-ngzorro 1.1.0 → 1.1.2
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 +156 -124
- 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 +2 -2
- package/esm2015/hd-table/hd-table.component.js +2 -2
- package/esm2015/index.js +2 -2
- package/esm2015/public-api.js +5 -5
- package/esm5/fantasy-ngzorro.js +2 -2
- package/esm5/hd-table/hd-table.component.js +2 -2
- package/esm5/index.js +2 -2
- package/esm5/public-api.js +5 -5
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +142 -112
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +147 -117
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +3 -3
package/fesm5/fantasy-ngzorro.js
CHANGED
|
@@ -13,7 +13,6 @@ import { NzPopconfirmModule } from 'ng-zorro-antd/popconfirm';
|
|
|
13
13
|
import { NzResizableModule } from 'ng-zorro-antd/resizable';
|
|
14
14
|
import { NzToolTipModule } from 'ng-zorro-antd/tooltip';
|
|
15
15
|
import { NzTreeModule } from 'ng-zorro-antd/tree';
|
|
16
|
-
import { ColWidth } from 'fantasy-ngzorro/model/colWidth';
|
|
17
16
|
import { getItem, setItem } from 'localforage';
|
|
18
17
|
import { of } from 'rxjs';
|
|
19
18
|
import { delay } from 'rxjs/operators';
|
|
@@ -3058,6 +3057,37 @@ var CommonSessionService = /** @class */ (function () {
|
|
|
3058
3057
|
return CommonSessionService;
|
|
3059
3058
|
}());
|
|
3060
3059
|
|
|
3060
|
+
/**
|
|
3061
|
+
* @fileoverview added by tsickle
|
|
3062
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3063
|
+
*/
|
|
3064
|
+
/** @type {?} */
|
|
3065
|
+
var ColWidth = {
|
|
3066
|
+
billNumberColWidth: 150,
|
|
3067
|
+
// 单据单号列宽度
|
|
3068
|
+
nameColWidth: 150,
|
|
3069
|
+
// 基本资料名称列宽度
|
|
3070
|
+
codeColWidth: 100,
|
|
3071
|
+
// 基本资料代码列宽度
|
|
3072
|
+
codeNameColWidth: 200,
|
|
3073
|
+
// 用于门店、货主、供应商以“[code]name“格式展示时固定宽度
|
|
3074
|
+
enumColWidth: 100,
|
|
3075
|
+
// 枚举列宽度
|
|
3076
|
+
dateColWidth: 100,
|
|
3077
|
+
// 单个日期
|
|
3078
|
+
dateTimeColWidth: 150,
|
|
3079
|
+
// 单个日期带时间
|
|
3080
|
+
dateRangeWidth: 200,
|
|
3081
|
+
// 日期范围
|
|
3082
|
+
operateColWidth: 150,
|
|
3083
|
+
// 操作列宽度
|
|
3084
|
+
numberColWidth: 100,
|
|
3085
|
+
// 数字列
|
|
3086
|
+
remarkColwidth: 250,
|
|
3087
|
+
// 备注列
|
|
3088
|
+
fixColWidth: 150,
|
|
3089
|
+
};
|
|
3090
|
+
|
|
3061
3091
|
/**
|
|
3062
3092
|
* @fileoverview added by tsickle
|
|
3063
3093
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -4389,121 +4419,6 @@ var HdFilterService = /** @class */ (function () {
|
|
|
4389
4419
|
return HdFilterService;
|
|
4390
4420
|
}());
|
|
4391
4421
|
|
|
4392
|
-
/**
|
|
4393
|
-
* @fileoverview added by tsickle
|
|
4394
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4395
|
-
*/
|
|
4396
|
-
// 控件列表
|
|
4397
|
-
var
|
|
4398
|
-
// 控件列表
|
|
4399
|
-
FormItem = /** @class */ (function () {
|
|
4400
|
-
function FormItem() {
|
|
4401
|
-
// 字段名称
|
|
4402
|
-
this.require = false; // 是否必填
|
|
4403
|
-
// 输入框提示文案
|
|
4404
|
-
this.width = 1; // 占据的列数。默认1
|
|
4405
|
-
// 占据的列数。默认1
|
|
4406
|
-
this.hide = false; // 是否为隐藏字段,仅用于填充表单的字段,不显示在页面上
|
|
4407
|
-
// 是否为隐藏字段,仅用于填充表单的字段,不显示在页面上
|
|
4408
|
-
this.totalWidth = 0;
|
|
4409
|
-
this.isRowFirst = 0; // 是否是一行的第一个元素
|
|
4410
|
-
// 当前行的所有列的items
|
|
4411
|
-
this.value = null; // 值 不传默认为null
|
|
4412
|
-
// 控件为Select时,选项列表
|
|
4413
|
-
this.inputNumber = new InputNumber(); // number组件的min、max、step
|
|
4414
|
-
// textArea的行数
|
|
4415
|
-
this.showTime = false; // 日期选择器是否包含时间
|
|
4416
|
-
}
|
|
4417
|
-
return FormItem;
|
|
4418
|
-
}());
|
|
4419
|
-
if (false) {
|
|
4420
|
-
/** @type {?} */
|
|
4421
|
-
FormItem.prototype.type;
|
|
4422
|
-
/** @type {?} */
|
|
4423
|
-
FormItem.prototype.label;
|
|
4424
|
-
/** @type {?} */
|
|
4425
|
-
FormItem.prototype.name;
|
|
4426
|
-
/** @type {?} */
|
|
4427
|
-
FormItem.prototype.require;
|
|
4428
|
-
/** @type {?} */
|
|
4429
|
-
FormItem.prototype.placeholder;
|
|
4430
|
-
/** @type {?} */
|
|
4431
|
-
FormItem.prototype.width;
|
|
4432
|
-
/** @type {?} */
|
|
4433
|
-
FormItem.prototype.hide;
|
|
4434
|
-
/** @type {?} */
|
|
4435
|
-
FormItem.prototype.totalWidth;
|
|
4436
|
-
/** @type {?} */
|
|
4437
|
-
FormItem.prototype.isRowFirst;
|
|
4438
|
-
/** @type {?} */
|
|
4439
|
-
FormItem.prototype.columnItems;
|
|
4440
|
-
/** @type {?} */
|
|
4441
|
-
FormItem.prototype.value;
|
|
4442
|
-
/** @type {?} */
|
|
4443
|
-
FormItem.prototype.disabled;
|
|
4444
|
-
/** @type {?} */
|
|
4445
|
-
FormItem.prototype.color;
|
|
4446
|
-
/** @type {?} */
|
|
4447
|
-
FormItem.prototype.maxLength;
|
|
4448
|
-
/** @type {?} */
|
|
4449
|
-
FormItem.prototype.selectOption;
|
|
4450
|
-
/** @type {?} */
|
|
4451
|
-
FormItem.prototype.inputNumber;
|
|
4452
|
-
/** @type {?} */
|
|
4453
|
-
FormItem.prototype.onChangeEvent;
|
|
4454
|
-
/** @type {?} */
|
|
4455
|
-
FormItem.prototype.onSearchEvent;
|
|
4456
|
-
/** @type {?} */
|
|
4457
|
-
FormItem.prototype.defaultLabel;
|
|
4458
|
-
/** @type {?} */
|
|
4459
|
-
FormItem.prototype.hdDisabledDate;
|
|
4460
|
-
/** @type {?} */
|
|
4461
|
-
FormItem.prototype.explain;
|
|
4462
|
-
/** @type {?} */
|
|
4463
|
-
FormItem.prototype.textAreaRows;
|
|
4464
|
-
/** @type {?} */
|
|
4465
|
-
FormItem.prototype.showTime;
|
|
4466
|
-
/** @type {?} */
|
|
4467
|
-
FormItem.prototype.labelColor;
|
|
4468
|
-
}
|
|
4469
|
-
/** @enum {number} */
|
|
4470
|
-
var FormListType = {
|
|
4471
|
-
Input: 0,
|
|
4472
|
-
Select: 1,
|
|
4473
|
-
Date: 2,
|
|
4474
|
-
DateRange: 3,
|
|
4475
|
-
TextArea: 4,
|
|
4476
|
-
InputNumber: 5,
|
|
4477
|
-
MultipleSelect: 6,
|
|
4478
|
-
ViewDom: 7,
|
|
4479
|
-
Switch: 8,
|
|
4480
|
-
Time: 9 // 时间选择器
|
|
4481
|
-
,
|
|
4482
|
-
};
|
|
4483
|
-
FormListType[FormListType.Input] = 'Input';
|
|
4484
|
-
FormListType[FormListType.Select] = 'Select';
|
|
4485
|
-
FormListType[FormListType.Date] = 'Date';
|
|
4486
|
-
FormListType[FormListType.DateRange] = 'DateRange';
|
|
4487
|
-
FormListType[FormListType.TextArea] = 'TextArea';
|
|
4488
|
-
FormListType[FormListType.InputNumber] = 'InputNumber';
|
|
4489
|
-
FormListType[FormListType.MultipleSelect] = 'MultipleSelect';
|
|
4490
|
-
FormListType[FormListType.ViewDom] = 'ViewDom';
|
|
4491
|
-
FormListType[FormListType.Switch] = 'Switch';
|
|
4492
|
-
FormListType[FormListType.Time] = 'Time';
|
|
4493
|
-
var HdFormService = /** @class */ (function () {
|
|
4494
|
-
function HdFormService() {
|
|
4495
|
-
}
|
|
4496
|
-
HdFormService.decorators = [
|
|
4497
|
-
{ type: Injectable, args: [{
|
|
4498
|
-
providedIn: 'root'
|
|
4499
|
-
},] }
|
|
4500
|
-
];
|
|
4501
|
-
/** @nocollapse */
|
|
4502
|
-
HdFormService.ctorParameters = function () { return []; };
|
|
4503
|
-
/** @nocollapse */ HdFormService.ngInjectableDef = ɵɵdefineInjectable({ factory: function HdFormService_Factory() { return new HdFormService(); }, token: HdFormService, providedIn: "root" });
|
|
4504
|
-
return HdFormService;
|
|
4505
|
-
}());
|
|
4506
|
-
|
|
4507
4422
|
/**
|
|
4508
4423
|
* @fileoverview added by tsickle
|
|
4509
4424
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -4639,6 +4554,121 @@ var HdFormLinesService = /** @class */ (function () {
|
|
|
4639
4554
|
return HdFormLinesService;
|
|
4640
4555
|
}());
|
|
4641
4556
|
|
|
4557
|
+
/**
|
|
4558
|
+
* @fileoverview added by tsickle
|
|
4559
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4560
|
+
*/
|
|
4561
|
+
// 控件列表
|
|
4562
|
+
var
|
|
4563
|
+
// 控件列表
|
|
4564
|
+
FormItem = /** @class */ (function () {
|
|
4565
|
+
function FormItem() {
|
|
4566
|
+
// 字段名称
|
|
4567
|
+
this.require = false; // 是否必填
|
|
4568
|
+
// 输入框提示文案
|
|
4569
|
+
this.width = 1; // 占据的列数。默认1
|
|
4570
|
+
// 占据的列数。默认1
|
|
4571
|
+
this.hide = false; // 是否为隐藏字段,仅用于填充表单的字段,不显示在页面上
|
|
4572
|
+
// 是否为隐藏字段,仅用于填充表单的字段,不显示在页面上
|
|
4573
|
+
this.totalWidth = 0;
|
|
4574
|
+
this.isRowFirst = 0; // 是否是一行的第一个元素
|
|
4575
|
+
// 当前行的所有列的items
|
|
4576
|
+
this.value = null; // 值 不传默认为null
|
|
4577
|
+
// 控件为Select时,选项列表
|
|
4578
|
+
this.inputNumber = new InputNumber(); // number组件的min、max、step
|
|
4579
|
+
// textArea的行数
|
|
4580
|
+
this.showTime = false; // 日期选择器是否包含时间
|
|
4581
|
+
}
|
|
4582
|
+
return FormItem;
|
|
4583
|
+
}());
|
|
4584
|
+
if (false) {
|
|
4585
|
+
/** @type {?} */
|
|
4586
|
+
FormItem.prototype.type;
|
|
4587
|
+
/** @type {?} */
|
|
4588
|
+
FormItem.prototype.label;
|
|
4589
|
+
/** @type {?} */
|
|
4590
|
+
FormItem.prototype.name;
|
|
4591
|
+
/** @type {?} */
|
|
4592
|
+
FormItem.prototype.require;
|
|
4593
|
+
/** @type {?} */
|
|
4594
|
+
FormItem.prototype.placeholder;
|
|
4595
|
+
/** @type {?} */
|
|
4596
|
+
FormItem.prototype.width;
|
|
4597
|
+
/** @type {?} */
|
|
4598
|
+
FormItem.prototype.hide;
|
|
4599
|
+
/** @type {?} */
|
|
4600
|
+
FormItem.prototype.totalWidth;
|
|
4601
|
+
/** @type {?} */
|
|
4602
|
+
FormItem.prototype.isRowFirst;
|
|
4603
|
+
/** @type {?} */
|
|
4604
|
+
FormItem.prototype.columnItems;
|
|
4605
|
+
/** @type {?} */
|
|
4606
|
+
FormItem.prototype.value;
|
|
4607
|
+
/** @type {?} */
|
|
4608
|
+
FormItem.prototype.disabled;
|
|
4609
|
+
/** @type {?} */
|
|
4610
|
+
FormItem.prototype.color;
|
|
4611
|
+
/** @type {?} */
|
|
4612
|
+
FormItem.prototype.maxLength;
|
|
4613
|
+
/** @type {?} */
|
|
4614
|
+
FormItem.prototype.selectOption;
|
|
4615
|
+
/** @type {?} */
|
|
4616
|
+
FormItem.prototype.inputNumber;
|
|
4617
|
+
/** @type {?} */
|
|
4618
|
+
FormItem.prototype.onChangeEvent;
|
|
4619
|
+
/** @type {?} */
|
|
4620
|
+
FormItem.prototype.onSearchEvent;
|
|
4621
|
+
/** @type {?} */
|
|
4622
|
+
FormItem.prototype.defaultLabel;
|
|
4623
|
+
/** @type {?} */
|
|
4624
|
+
FormItem.prototype.hdDisabledDate;
|
|
4625
|
+
/** @type {?} */
|
|
4626
|
+
FormItem.prototype.explain;
|
|
4627
|
+
/** @type {?} */
|
|
4628
|
+
FormItem.prototype.textAreaRows;
|
|
4629
|
+
/** @type {?} */
|
|
4630
|
+
FormItem.prototype.showTime;
|
|
4631
|
+
/** @type {?} */
|
|
4632
|
+
FormItem.prototype.labelColor;
|
|
4633
|
+
}
|
|
4634
|
+
/** @enum {number} */
|
|
4635
|
+
var FormListType = {
|
|
4636
|
+
Input: 0,
|
|
4637
|
+
Select: 1,
|
|
4638
|
+
Date: 2,
|
|
4639
|
+
DateRange: 3,
|
|
4640
|
+
TextArea: 4,
|
|
4641
|
+
InputNumber: 5,
|
|
4642
|
+
MultipleSelect: 6,
|
|
4643
|
+
ViewDom: 7,
|
|
4644
|
+
Switch: 8,
|
|
4645
|
+
Time: 9 // 时间选择器
|
|
4646
|
+
,
|
|
4647
|
+
};
|
|
4648
|
+
FormListType[FormListType.Input] = 'Input';
|
|
4649
|
+
FormListType[FormListType.Select] = 'Select';
|
|
4650
|
+
FormListType[FormListType.Date] = 'Date';
|
|
4651
|
+
FormListType[FormListType.DateRange] = 'DateRange';
|
|
4652
|
+
FormListType[FormListType.TextArea] = 'TextArea';
|
|
4653
|
+
FormListType[FormListType.InputNumber] = 'InputNumber';
|
|
4654
|
+
FormListType[FormListType.MultipleSelect] = 'MultipleSelect';
|
|
4655
|
+
FormListType[FormListType.ViewDom] = 'ViewDom';
|
|
4656
|
+
FormListType[FormListType.Switch] = 'Switch';
|
|
4657
|
+
FormListType[FormListType.Time] = 'Time';
|
|
4658
|
+
var HdFormService = /** @class */ (function () {
|
|
4659
|
+
function HdFormService() {
|
|
4660
|
+
}
|
|
4661
|
+
HdFormService.decorators = [
|
|
4662
|
+
{ type: Injectable, args: [{
|
|
4663
|
+
providedIn: 'root'
|
|
4664
|
+
},] }
|
|
4665
|
+
];
|
|
4666
|
+
/** @nocollapse */
|
|
4667
|
+
HdFormService.ctorParameters = function () { return []; };
|
|
4668
|
+
/** @nocollapse */ HdFormService.ngInjectableDef = ɵɵdefineInjectable({ factory: function HdFormService_Factory() { return new HdFormService(); }, token: HdFormService, providedIn: "root" });
|
|
4669
|
+
return HdFormService;
|
|
4670
|
+
}());
|
|
4671
|
+
|
|
4642
4672
|
/**
|
|
4643
4673
|
* @fileoverview added by tsickle
|
|
4644
4674
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -4782,5 +4812,5 @@ var Utils = {
|
|
|
4782
4812
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4783
4813
|
*/
|
|
4784
4814
|
|
|
4785
|
-
export { ButtonSize, ButtonType, ColorOption, ExplainOption, FantasyNgzorroModule, Filter, FilterListType, FormItem, FormLine, FormLineType, FormListType, HdButtonService, HdCurrentTableComponent, HdDetailFormService, HdFilterService, HdFormLinesService, HdFormService, HdLogComponent, HdLogService, HdOption, InputNumber, Page, SelectOption, TableColumn$1 as TableColumn, TableTotalOption$1 as TableTotalOption, TotalOption, Utils, HdComponentModule as ɵa, HdButtonModule as ɵb, HdTipComponent as ɵba, HdPopconfirmModule as ɵbb, HdPopconfirmComponent as ɵbc, HdLogModule as ɵbd, HdButtonComponent as ɵc, HdButtonGroupModule as ɵd, HdButtonGroupComponent as ɵe, HdDetailFormModule as ɵf, HdDetailFormComponent as ɵg, HdDetailLinesModule as ɵh, HdDetailLinesComponent as ɵi, HdDetailTipModule as ɵj, HdDetailTipComponent as ɵk, HdFilterModule as ɵl, HdFilterComponent as ɵm, HdFormModule as ɵn, HdFormComponent as ɵo, HdFormLinesModule as ɵp, HdSpaceModule as ɵq, HdSpaceComponent as ɵr, HdFormLinesComponent as ɵs, HdStatusModule as ɵt, HdStatusComponent as ɵu, HdCurrentTableModule as ɵv, HdTableModule as ɵw, HdTableComponent as ɵx, CommonSessionService as ɵy, HdTipModule as ɵz };
|
|
4815
|
+
export { ButtonSize, ButtonType, ColWidth, ColorOption, ExplainOption, FantasyNgzorroModule, Filter, FilterListType, FormItem, FormLine, FormLineType, FormListType, HdButtonService, HdCurrentTableComponent, HdDetailFormService, HdFilterService, HdFormLinesService, HdFormService, HdLogComponent, HdLogService, HdOption, InputNumber, Page, SelectOption, TableColumn$1 as TableColumn, TableTotalOption$1 as TableTotalOption, TotalOption, Utils, HdComponentModule as ɵa, HdButtonModule as ɵb, HdTipComponent as ɵba, HdPopconfirmModule as ɵbb, HdPopconfirmComponent as ɵbc, HdLogModule as ɵbd, HdButtonComponent as ɵc, HdButtonGroupModule as ɵd, HdButtonGroupComponent as ɵe, HdDetailFormModule as ɵf, HdDetailFormComponent as ɵg, HdDetailLinesModule as ɵh, HdDetailLinesComponent as ɵi, HdDetailTipModule as ɵj, HdDetailTipComponent as ɵk, HdFilterModule as ɵl, HdFilterComponent as ɵm, HdFormModule as ɵn, HdFormComponent as ɵo, HdFormLinesModule as ɵp, HdSpaceModule as ɵq, HdSpaceComponent as ɵr, HdFormLinesComponent as ɵs, HdStatusModule as ɵt, HdStatusComponent as ɵu, HdCurrentTableModule as ɵv, HdTableModule as ɵw, HdTableComponent as ɵx, CommonSessionService as ɵy, HdTipModule as ɵz };
|
|
4786
4816
|
//# sourceMappingURL=fantasy-ngzorro.js.map
|