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.
@@ -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('@angular/forms'), require('ng-zorro-antd'), require('ng-zorro-antd/core'), require('lodash'), require('@angular/cdk/drag-drop'), require('ng-zorro-antd/table'), require('ng-zorro-antd/modal'), require('ng-zorro-antd/dropdown'), require('ng-zorro-antd/popconfirm'), require('ng-zorro-antd/resizable'), require('ng-zorro-antd/tooltip'), require('ng-zorro-antd/tree'), require('fantasy-ngzorro/model/colWidth'), require('localforage'), require('rxjs'), require('rxjs/operators')) :
3
- typeof define === 'function' && define.amd ? define('fantasy-ngzorro', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'ng-zorro-antd', 'ng-zorro-antd/core', 'lodash', '@angular/cdk/drag-drop', 'ng-zorro-antd/table', 'ng-zorro-antd/modal', 'ng-zorro-antd/dropdown', 'ng-zorro-antd/popconfirm', 'ng-zorro-antd/resizable', 'ng-zorro-antd/tooltip', 'ng-zorro-antd/tree', 'fantasy-ngzorro/model/colWidth', 'localforage', 'rxjs', 'rxjs/operators'], factory) :
4
- (global = global || self, factory(global['fantasy-ngzorro'] = {}, global.ng.core, global.ng.common, global.ng.forms, global.ngZorroAntd, global.core$1, global.lodash, global.ng.cdk['drag-drop'], global.table, global.modal, global.dropdown, global.popconfirm, global.resizable, global.tooltip, global.tree, global.colWidth, global.localforage, global.rxjs, global.rxjs.operators));
5
- }(this, (function (exports, core, common, forms, ngZorroAntd, core$1, lodash, dragDrop, table, modal, dropdown, popconfirm, resizable, tooltip, tree, colWidth, localforage, rxjs, operators) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ng-zorro-antd'), require('ng-zorro-antd/core'), require('lodash'), require('@angular/cdk/drag-drop'), require('ng-zorro-antd/table'), require('ng-zorro-antd/modal'), require('ng-zorro-antd/dropdown'), require('ng-zorro-antd/popconfirm'), require('ng-zorro-antd/resizable'), require('ng-zorro-antd/tooltip'), require('ng-zorro-antd/tree'), require('localforage'), require('rxjs'), require('rxjs/operators')) :
3
+ typeof define === 'function' && define.amd ? define('fantasy-ngzorro', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'ng-zorro-antd', 'ng-zorro-antd/core', 'lodash', '@angular/cdk/drag-drop', 'ng-zorro-antd/table', 'ng-zorro-antd/modal', 'ng-zorro-antd/dropdown', 'ng-zorro-antd/popconfirm', 'ng-zorro-antd/resizable', 'ng-zorro-antd/tooltip', 'ng-zorro-antd/tree', 'localforage', 'rxjs', 'rxjs/operators'], factory) :
4
+ (global = global || self, factory(global['fantasy-ngzorro'] = {}, global.ng.core, global.ng.common, global.ng.forms, global.ngZorroAntd, global.core$1, global.lodash, global.ng.cdk['drag-drop'], global.table, global.modal, global.dropdown, global.popconfirm, global.resizable, global.tooltip, global.tree, global.localforage, global.rxjs, global.rxjs.operators));
5
+ }(this, (function (exports, core, common, forms, ngZorroAntd, core$1, lodash, dragDrop, table, modal, dropdown, popconfirm, resizable, tooltip, tree, localforage, rxjs, operators) { 'use strict';
6
6
 
7
7
  /*! *****************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -3263,6 +3263,37 @@
3263
3263
  return CommonSessionService;
3264
3264
  }());
3265
3265
 
3266
+ /**
3267
+ * @fileoverview added by tsickle
3268
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3269
+ */
3270
+ /** @type {?} */
3271
+ var ColWidth = {
3272
+ billNumberColWidth: 150,
3273
+ // 单据单号列宽度
3274
+ nameColWidth: 150,
3275
+ // 基本资料名称列宽度
3276
+ codeColWidth: 100,
3277
+ // 基本资料代码列宽度
3278
+ codeNameColWidth: 200,
3279
+ // 用于门店、货主、供应商以“[code]name“格式展示时固定宽度
3280
+ enumColWidth: 100,
3281
+ // 枚举列宽度
3282
+ dateColWidth: 100,
3283
+ // 单个日期
3284
+ dateTimeColWidth: 150,
3285
+ // 单个日期带时间
3286
+ dateRangeWidth: 200,
3287
+ // 日期范围
3288
+ operateColWidth: 150,
3289
+ // 操作列宽度
3290
+ numberColWidth: 100,
3291
+ // 数字列
3292
+ remarkColwidth: 250,
3293
+ // 备注列
3294
+ fixColWidth: 150,
3295
+ };
3296
+
3266
3297
  /**
3267
3298
  * @fileoverview added by tsickle
3268
3299
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -3984,9 +4015,9 @@
3984
4015
  */
3985
4016
  function () {
3986
4017
  /** @type {?} */
3987
- var colWidth$1 = 0;
4018
+ var colWidth = 0;
3988
4019
  if (this.showSelected) {
3989
- colWidth$1 += 40;
4020
+ colWidth += 40;
3990
4021
  }
3991
4022
  this.tableCols.forEach((/**
3992
4023
  * @param {?} item
@@ -3994,11 +4025,11 @@
3994
4025
  */
3995
4026
  function (item) {
3996
4027
  if (!item.width) {
3997
- item.width = colWidth.ColWidth.fixColWidth;
4028
+ item.width = ColWidth.fixColWidth;
3998
4029
  }
3999
4030
  if (item.isShow) {
4000
- item.fixedWidth = colWidth$1;
4001
- colWidth$1 += item.width;
4031
+ item.fixedWidth = colWidth;
4032
+ colWidth += item.width;
4002
4033
  }
4003
4034
  }));
4004
4035
  this.scroll = {
@@ -4594,121 +4625,6 @@
4594
4625
  return HdFilterService;
4595
4626
  }());
4596
4627
 
4597
- /**
4598
- * @fileoverview added by tsickle
4599
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4600
- */
4601
- // 控件列表
4602
- var
4603
- // 控件列表
4604
- FormItem = /** @class */ (function () {
4605
- function FormItem() {
4606
- // 字段名称
4607
- this.require = false; // 是否必填
4608
- // 输入框提示文案
4609
- this.width = 1; // 占据的列数。默认1
4610
- // 占据的列数。默认1
4611
- this.hide = false; // 是否为隐藏字段,仅用于填充表单的字段,不显示在页面上
4612
- // 是否为隐藏字段,仅用于填充表单的字段,不显示在页面上
4613
- this.totalWidth = 0;
4614
- this.isRowFirst = 0; // 是否是一行的第一个元素
4615
- // 当前行的所有列的items
4616
- this.value = null; // 值 不传默认为null
4617
- // 控件为Select时,选项列表
4618
- this.inputNumber = new InputNumber(); // number组件的min、max、step
4619
- // textArea的行数
4620
- this.showTime = false; // 日期选择器是否包含时间
4621
- }
4622
- return FormItem;
4623
- }());
4624
- if (false) {
4625
- /** @type {?} */
4626
- FormItem.prototype.type;
4627
- /** @type {?} */
4628
- FormItem.prototype.label;
4629
- /** @type {?} */
4630
- FormItem.prototype.name;
4631
- /** @type {?} */
4632
- FormItem.prototype.require;
4633
- /** @type {?} */
4634
- FormItem.prototype.placeholder;
4635
- /** @type {?} */
4636
- FormItem.prototype.width;
4637
- /** @type {?} */
4638
- FormItem.prototype.hide;
4639
- /** @type {?} */
4640
- FormItem.prototype.totalWidth;
4641
- /** @type {?} */
4642
- FormItem.prototype.isRowFirst;
4643
- /** @type {?} */
4644
- FormItem.prototype.columnItems;
4645
- /** @type {?} */
4646
- FormItem.prototype.value;
4647
- /** @type {?} */
4648
- FormItem.prototype.disabled;
4649
- /** @type {?} */
4650
- FormItem.prototype.color;
4651
- /** @type {?} */
4652
- FormItem.prototype.maxLength;
4653
- /** @type {?} */
4654
- FormItem.prototype.selectOption;
4655
- /** @type {?} */
4656
- FormItem.prototype.inputNumber;
4657
- /** @type {?} */
4658
- FormItem.prototype.onChangeEvent;
4659
- /** @type {?} */
4660
- FormItem.prototype.onSearchEvent;
4661
- /** @type {?} */
4662
- FormItem.prototype.defaultLabel;
4663
- /** @type {?} */
4664
- FormItem.prototype.hdDisabledDate;
4665
- /** @type {?} */
4666
- FormItem.prototype.explain;
4667
- /** @type {?} */
4668
- FormItem.prototype.textAreaRows;
4669
- /** @type {?} */
4670
- FormItem.prototype.showTime;
4671
- /** @type {?} */
4672
- FormItem.prototype.labelColor;
4673
- }
4674
- /** @enum {number} */
4675
- var FormListType = {
4676
- Input: 0,
4677
- Select: 1,
4678
- Date: 2,
4679
- DateRange: 3,
4680
- TextArea: 4,
4681
- InputNumber: 5,
4682
- MultipleSelect: 6,
4683
- ViewDom: 7,
4684
- Switch: 8,
4685
- Time: 9 // 时间选择器
4686
- ,
4687
- };
4688
- FormListType[FormListType.Input] = 'Input';
4689
- FormListType[FormListType.Select] = 'Select';
4690
- FormListType[FormListType.Date] = 'Date';
4691
- FormListType[FormListType.DateRange] = 'DateRange';
4692
- FormListType[FormListType.TextArea] = 'TextArea';
4693
- FormListType[FormListType.InputNumber] = 'InputNumber';
4694
- FormListType[FormListType.MultipleSelect] = 'MultipleSelect';
4695
- FormListType[FormListType.ViewDom] = 'ViewDom';
4696
- FormListType[FormListType.Switch] = 'Switch';
4697
- FormListType[FormListType.Time] = 'Time';
4698
- var HdFormService = /** @class */ (function () {
4699
- function HdFormService() {
4700
- }
4701
- HdFormService.decorators = [
4702
- { type: core.Injectable, args: [{
4703
- providedIn: 'root'
4704
- },] }
4705
- ];
4706
- /** @nocollapse */
4707
- HdFormService.ctorParameters = function () { return []; };
4708
- /** @nocollapse */ HdFormService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function HdFormService_Factory() { return new HdFormService(); }, token: HdFormService, providedIn: "root" });
4709
- return HdFormService;
4710
- }());
4711
-
4712
4628
  /**
4713
4629
  * @fileoverview added by tsickle
4714
4630
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -4844,6 +4760,121 @@
4844
4760
  return HdFormLinesService;
4845
4761
  }());
4846
4762
 
4763
+ /**
4764
+ * @fileoverview added by tsickle
4765
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4766
+ */
4767
+ // 控件列表
4768
+ var
4769
+ // 控件列表
4770
+ FormItem = /** @class */ (function () {
4771
+ function FormItem() {
4772
+ // 字段名称
4773
+ this.require = false; // 是否必填
4774
+ // 输入框提示文案
4775
+ this.width = 1; // 占据的列数。默认1
4776
+ // 占据的列数。默认1
4777
+ this.hide = false; // 是否为隐藏字段,仅用于填充表单的字段,不显示在页面上
4778
+ // 是否为隐藏字段,仅用于填充表单的字段,不显示在页面上
4779
+ this.totalWidth = 0;
4780
+ this.isRowFirst = 0; // 是否是一行的第一个元素
4781
+ // 当前行的所有列的items
4782
+ this.value = null; // 值 不传默认为null
4783
+ // 控件为Select时,选项列表
4784
+ this.inputNumber = new InputNumber(); // number组件的min、max、step
4785
+ // textArea的行数
4786
+ this.showTime = false; // 日期选择器是否包含时间
4787
+ }
4788
+ return FormItem;
4789
+ }());
4790
+ if (false) {
4791
+ /** @type {?} */
4792
+ FormItem.prototype.type;
4793
+ /** @type {?} */
4794
+ FormItem.prototype.label;
4795
+ /** @type {?} */
4796
+ FormItem.prototype.name;
4797
+ /** @type {?} */
4798
+ FormItem.prototype.require;
4799
+ /** @type {?} */
4800
+ FormItem.prototype.placeholder;
4801
+ /** @type {?} */
4802
+ FormItem.prototype.width;
4803
+ /** @type {?} */
4804
+ FormItem.prototype.hide;
4805
+ /** @type {?} */
4806
+ FormItem.prototype.totalWidth;
4807
+ /** @type {?} */
4808
+ FormItem.prototype.isRowFirst;
4809
+ /** @type {?} */
4810
+ FormItem.prototype.columnItems;
4811
+ /** @type {?} */
4812
+ FormItem.prototype.value;
4813
+ /** @type {?} */
4814
+ FormItem.prototype.disabled;
4815
+ /** @type {?} */
4816
+ FormItem.prototype.color;
4817
+ /** @type {?} */
4818
+ FormItem.prototype.maxLength;
4819
+ /** @type {?} */
4820
+ FormItem.prototype.selectOption;
4821
+ /** @type {?} */
4822
+ FormItem.prototype.inputNumber;
4823
+ /** @type {?} */
4824
+ FormItem.prototype.onChangeEvent;
4825
+ /** @type {?} */
4826
+ FormItem.prototype.onSearchEvent;
4827
+ /** @type {?} */
4828
+ FormItem.prototype.defaultLabel;
4829
+ /** @type {?} */
4830
+ FormItem.prototype.hdDisabledDate;
4831
+ /** @type {?} */
4832
+ FormItem.prototype.explain;
4833
+ /** @type {?} */
4834
+ FormItem.prototype.textAreaRows;
4835
+ /** @type {?} */
4836
+ FormItem.prototype.showTime;
4837
+ /** @type {?} */
4838
+ FormItem.prototype.labelColor;
4839
+ }
4840
+ /** @enum {number} */
4841
+ var FormListType = {
4842
+ Input: 0,
4843
+ Select: 1,
4844
+ Date: 2,
4845
+ DateRange: 3,
4846
+ TextArea: 4,
4847
+ InputNumber: 5,
4848
+ MultipleSelect: 6,
4849
+ ViewDom: 7,
4850
+ Switch: 8,
4851
+ Time: 9 // 时间选择器
4852
+ ,
4853
+ };
4854
+ FormListType[FormListType.Input] = 'Input';
4855
+ FormListType[FormListType.Select] = 'Select';
4856
+ FormListType[FormListType.Date] = 'Date';
4857
+ FormListType[FormListType.DateRange] = 'DateRange';
4858
+ FormListType[FormListType.TextArea] = 'TextArea';
4859
+ FormListType[FormListType.InputNumber] = 'InputNumber';
4860
+ FormListType[FormListType.MultipleSelect] = 'MultipleSelect';
4861
+ FormListType[FormListType.ViewDom] = 'ViewDom';
4862
+ FormListType[FormListType.Switch] = 'Switch';
4863
+ FormListType[FormListType.Time] = 'Time';
4864
+ var HdFormService = /** @class */ (function () {
4865
+ function HdFormService() {
4866
+ }
4867
+ HdFormService.decorators = [
4868
+ { type: core.Injectable, args: [{
4869
+ providedIn: 'root'
4870
+ },] }
4871
+ ];
4872
+ /** @nocollapse */
4873
+ HdFormService.ctorParameters = function () { return []; };
4874
+ /** @nocollapse */ HdFormService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function HdFormService_Factory() { return new HdFormService(); }, token: HdFormService, providedIn: "root" });
4875
+ return HdFormService;
4876
+ }());
4877
+
4847
4878
  /**
4848
4879
  * @fileoverview added by tsickle
4849
4880
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -4974,6 +5005,7 @@
4974
5005
 
4975
5006
  exports.ButtonSize = ButtonSize;
4976
5007
  exports.ButtonType = ButtonType;
5008
+ exports.ColWidth = ColWidth;
4977
5009
  exports.ColorOption = ColorOption;
4978
5010
  exports.ExplainOption = ExplainOption;
4979
5011
  exports.FantasyNgzorroModule = FantasyNgzorroModule;