fantasy-ngzorro 1.0.1 → 1.0.3

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.
Files changed (54) hide show
  1. package/bundles/fantasy-ngzorro.umd.js +456 -165
  2. package/bundles/fantasy-ngzorro.umd.js.map +1 -1
  3. package/bundles/fantasy-ngzorro.umd.min.js +2 -2
  4. package/bundles/fantasy-ngzorro.umd.min.js.map +1 -1
  5. package/esm2015/fantasy-ngzorro.js +2 -3
  6. package/esm2015/hd-component.module.js +2 -4
  7. package/esm2015/hd-current-table/hd-current-table.component.js +2 -2
  8. package/esm2015/hd-current-table/hd-current-table.service.js +1 -21
  9. package/esm2015/hd-detail-form/hd-detail-form.component.js +1 -1
  10. package/esm2015/hd-detail-form/hd-detail-form.service.js +1 -9
  11. package/esm2015/hd-detail-lines/hd-detail-lines.component.js +2 -2
  12. package/esm2015/hd-filter/hd-filter.service.js +1 -30
  13. package/esm2015/hd-form/hd-form.service.js +2 -46
  14. package/esm2015/hd-form-lines/hd-form-lines.service.js +2 -50
  15. package/esm2015/index.js +2 -1
  16. package/esm2015/model/common-type.js +85 -0
  17. package/esm2015/public-api.js +15 -0
  18. package/esm5/fantasy-ngzorro.js +2 -3
  19. package/esm5/hd-component.module.js +2 -4
  20. package/esm5/hd-current-table/hd-current-table.component.js +2 -2
  21. package/esm5/hd-current-table/hd-current-table.service.js +1 -25
  22. package/esm5/hd-detail-form/hd-detail-form.component.js +1 -1
  23. package/esm5/hd-detail-form/hd-detail-form.service.js +1 -13
  24. package/esm5/hd-detail-lines/hd-detail-lines.component.js +2 -2
  25. package/esm5/hd-filter/hd-filter.service.js +1 -36
  26. package/esm5/hd-form/hd-form.service.js +2 -54
  27. package/esm5/hd-form-lines/hd-form-lines.service.js +2 -58
  28. package/esm5/index.js +2 -1
  29. package/esm5/model/common-type.js +101 -0
  30. package/esm5/public-api.js +15 -0
  31. package/fantasy-ngzorro.d.ts +0 -1
  32. package/fantasy-ngzorro.metadata.json +1 -1
  33. package/fesm2015/fantasy-ngzorro.js +399 -121
  34. package/fesm2015/fantasy-ngzorro.js.map +1 -1
  35. package/fesm5/fantasy-ngzorro.js +439 -161
  36. package/fesm5/fantasy-ngzorro.js.map +1 -1
  37. package/hd-current-table/hd-current-table.component.d.ts +1 -1
  38. package/hd-current-table/hd-current-table.service.d.ts +1 -10
  39. package/hd-detail-form/hd-detail-form.component.d.ts +1 -1
  40. package/hd-detail-form/hd-detail-form.service.d.ts +0 -4
  41. package/hd-detail-lines/hd-detail-lines.component.d.ts +1 -1
  42. package/hd-filter/hd-filter.service.d.ts +1 -12
  43. package/hd-form/hd-form.service.d.ts +1 -17
  44. package/hd-form-lines/hd-form-lines.service.d.ts +1 -19
  45. package/index.d.ts +1 -0
  46. package/model/common-type.d.ts +28 -0
  47. package/package.json +5 -6
  48. package/public-api.d.ts +9 -0
  49. package/esm2015/model/page.js +0 -36
  50. package/esm2015/utils.js +0 -118
  51. package/esm5/model/page.js +0 -44
  52. package/esm5/utils.js +0 -158
  53. package/model/page.d.ts +0 -9
  54. package/utils.d.ts +0 -28
@@ -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('fantasy-ngzorro/model/common-type')) :
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', 'fantasy-ngzorro/model/common-type'], 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.commonType));
5
+ }(this, (function (exports, core, common, ngZorroAntd, forms, core$1, lodash, dragDrop, table, commonType) { 'use strict';
6
6
 
7
7
  /*! *****************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -466,13 +466,13 @@
466
466
 
467
467
  /**
468
468
  * @fileoverview added by tsickle
469
- * Generated from: model/page.ts
469
+ * Generated from: model/common-type.ts
470
470
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
471
471
  */
472
472
  /**
473
473
  * @template T
474
474
  */
475
- var /**
475
+ var /**
476
476
  * @template T
477
477
  */
478
478
  Page = /** @class */ (function () {
@@ -503,6 +503,60 @@
503
503
  /** @type {?} */
504
504
  Page.prototype.content;
505
505
  }
506
+ var HdOption = /** @class */ (function () {
507
+ function HdOption() {
508
+ }
509
+ return HdOption;
510
+ }());
511
+ if (false) {
512
+ /** @type {?} */
513
+ HdOption.prototype.label;
514
+ /** @type {?} */
515
+ HdOption.prototype.value;
516
+ }
517
+ var SelectOption = /** @class */ (function () {
518
+ function SelectOption() {
519
+ this.showLabelAndValue = false;
520
+ this.hdDropdownMatchSelectWidth = false;
521
+ this.hdServerSearch = false;
522
+ this.hdShowItemCode = false; // 是否用[value]label显示选项列表
523
+ }
524
+ return SelectOption;
525
+ }());
526
+ if (false) {
527
+ /** @type {?} */
528
+ SelectOption.prototype.label;
529
+ /** @type {?} */
530
+ SelectOption.prototype.value;
531
+ /** @type {?} */
532
+ SelectOption.prototype.selectList;
533
+ /** @type {?} */
534
+ SelectOption.prototype.selectListName;
535
+ /** @type {?} */
536
+ SelectOption.prototype.showLabelAndValue;
537
+ /** @type {?} */
538
+ SelectOption.prototype.hdDropdownMatchSelectWidth;
539
+ /** @type {?} */
540
+ SelectOption.prototype.hdServerSearch;
541
+ /** @type {?} */
542
+ SelectOption.prototype.hdShowItemCode;
543
+ }
544
+ var InputNumber = /** @class */ (function () {
545
+ function InputNumber() {
546
+ this.min = 0;
547
+ this.max = 99999999;
548
+ this.step = 1;
549
+ }
550
+ return InputNumber;
551
+ }());
552
+ if (false) {
553
+ /** @type {?} */
554
+ InputNumber.prototype.min;
555
+ /** @type {?} */
556
+ InputNumber.prototype.max;
557
+ /** @type {?} */
558
+ InputNumber.prototype.step;
559
+ }
506
560
 
507
561
  /**
508
562
  * @fileoverview added by tsickle
@@ -2577,162 +2631,6 @@
2577
2631
  return HdTipModule;
2578
2632
  }());
2579
2633
 
2580
- /**
2581
- * @fileoverview added by tsickle
2582
- * Generated from: utils.ts
2583
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2584
- */
2585
- var Utils = /** @class */ (function () {
2586
- function Utils() {
2587
- }
2588
- /**
2589
- * 填充select控件选项
2590
- * @param formList 入参数组 Array<any>
2591
- * @param name 需要填充options的属性名称
2592
- * @param options 选项列表
2593
- */
2594
- /**
2595
- * 填充select控件选项
2596
- * @param {?} formList 入参数组 Array<any>
2597
- * @param {?} name 需要填充options的属性名称
2598
- * @param {?} options 选项列表
2599
- * @return {?}
2600
- */
2601
- Utils.fillSelectOption = /**
2602
- * 填充select控件选项
2603
- * @param {?} formList 入参数组 Array<any>
2604
- * @param {?} name 需要填充options的属性名称
2605
- * @param {?} options 选项列表
2606
- * @return {?}
2607
- */
2608
- function (formList, name, options) {
2609
- /** @type {?} */
2610
- var returnData = formList;
2611
- if (!returnData || !returnData.length) {
2612
- return returnData;
2613
- }
2614
- /** @type {?} */
2615
- var length = formList.length;
2616
- for (var i = 0; i < length; i++) {
2617
- if (returnData[i].name === name) {
2618
- returnData[i].selectOption.selectList = options;
2619
- }
2620
- }
2621
- return returnData;
2622
- };
2623
- /**
2624
- * 填充FormItem数组:针对入参list的每一个FormItem,判断obj中是否有对应的name字段,如果有,则填充value。
2625
- * @param list 入参数组 Array<FormItem>
2626
- * @param obj 需要填充到list的属性
2627
- */
2628
- /**
2629
- * 填充FormItem数组:针对入参list的每一个FormItem,判断obj中是否有对应的name字段,如果有,则填充value。
2630
- * @param {?} list 入参数组 Array<FormItem>
2631
- * @param {?} obj 需要填充到list的属性
2632
- * @return {?}
2633
- */
2634
- Utils.fillArrayFormItem = /**
2635
- * 填充FormItem数组:针对入参list的每一个FormItem,判断obj中是否有对应的name字段,如果有,则填充value。
2636
- * @param {?} list 入参数组 Array<FormItem>
2637
- * @param {?} obj 需要填充到list的属性
2638
- * @return {?}
2639
- */
2640
- function (list, obj) {
2641
- /** @type {?} */
2642
- var returnData = [];
2643
- if (!list || !list.length) {
2644
- return returnData;
2645
- }
2646
- /** @type {?} */
2647
- var length = list.length;
2648
- for (var i = 0; i < length; i++) {
2649
- if (obj[list[i].name]) {
2650
- list[i].value = obj[list[i].name];
2651
- }
2652
- }
2653
- return list;
2654
- };
2655
- /**
2656
- * 数组转换成选择器的选项数组
2657
- * @param list 入参数组 字符串数组或对象数组
2658
- * @param option 转换选项
2659
- * 注:list为字符串数组,option不需要传,按照标准的label、value转换
2660
- */
2661
- /**
2662
- * 数组转换成选择器的选项数组
2663
- * @param {?} list 入参数组 字符串数组或对象数组
2664
- * @param {?=} option 转换选项
2665
- * 注:list为字符串数组,option不需要传,按照标准的label、value转换
2666
- * @return {?}
2667
- */
2668
- Utils.arrayToSelectOptionList = /**
2669
- * 数组转换成选择器的选项数组
2670
- * @param {?} list 入参数组 字符串数组或对象数组
2671
- * @param {?=} option 转换选项
2672
- * 注:list为字符串数组,option不需要传,按照标准的label、value转换
2673
- * @return {?}
2674
- */
2675
- function (list, option) {
2676
- /** @type {?} */
2677
- var returnData = [];
2678
- if (!list || !list.length) {
2679
- return returnData;
2680
- }
2681
- if (option) {
2682
- if (option.labelTip && option.valueTip) {
2683
- list.forEach((/**
2684
- * @param {?} item
2685
- * @return {?}
2686
- */
2687
- function (item) {
2688
- /** @type {?} */
2689
- var returnItem = {};
2690
- returnItem.label = item[option.label];
2691
- returnItem.value = item[option.value];
2692
- if (option.valueTip) {
2693
- returnItem[option.valueTip] = item[option.value];
2694
- }
2695
- if (option.labelTip) {
2696
- returnItem[option.labelTip] = item[option.label];
2697
- }
2698
- returnData.push(returnItem);
2699
- }));
2700
- }
2701
- else {
2702
- list.forEach((/**
2703
- * @param {?} item
2704
- * @return {?}
2705
- */
2706
- function (item) {
2707
- /** @type {?} */
2708
- var returnItem = {};
2709
- returnItem.label = item[option.label];
2710
- returnItem.value = item[option.value];
2711
- returnData.push(returnItem);
2712
- }));
2713
- }
2714
- }
2715
- else {
2716
- list.forEach((/**
2717
- * @param {?} item
2718
- * @return {?}
2719
- */
2720
- function (item) {
2721
- /** @type {?} */
2722
- var returnItem = {};
2723
- returnItem.label = item;
2724
- returnItem.value = item;
2725
- returnData.push(returnItem);
2726
- }));
2727
- }
2728
- return returnData;
2729
- };
2730
- Utils.decorators = [
2731
- { type: core.NgModule }
2732
- ];
2733
- return Utils;
2734
- }());
2735
-
2736
2634
  /**
2737
2635
  * @fileoverview added by tsickle
2738
2636
  * Generated from: hd-component.module.ts
@@ -2755,8 +2653,7 @@
2755
2653
  HdSpaceModule,
2756
2654
  HdStatusModule,
2757
2655
  HdCurrentTableModule,
2758
- HdTipModule,
2759
- Utils
2656
+ HdTipModule
2760
2657
  ]
2761
2658
  },] }
2762
2659
  ];
@@ -2781,7 +2678,402 @@
2781
2678
  return FantasyNgzorroModule;
2782
2679
  }());
2783
2680
 
2681
+ /**
2682
+ * @fileoverview added by tsickle
2683
+ * Generated from: hd-current-table/hd-current-table.service.ts
2684
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2685
+ */
2686
+ // 表格行
2687
+ var
2688
+ // 表格行
2689
+ TableColumn = /** @class */ (function () {
2690
+ function TableColumn() {
2691
+ // 字段名称
2692
+ this.value = null; // 值 不传默认为null
2693
+ }
2694
+ return TableColumn;
2695
+ }());
2696
+ if (false) {
2697
+ /** @type {?} */
2698
+ TableColumn.prototype.label;
2699
+ /** @type {?} */
2700
+ TableColumn.prototype.name;
2701
+ /** @type {?} */
2702
+ TableColumn.prototype.value;
2703
+ /** @type {?} */
2704
+ TableColumn.prototype.selectList;
2705
+ /** @type {?} */
2706
+ TableColumn.prototype.show;
2707
+ }
2708
+ //
2709
+ var
2710
+ //
2711
+ TableTotalOption = /** @class */ (function () {
2712
+ function TableTotalOption() {
2713
+ }
2714
+ return TableTotalOption;
2715
+ }());
2716
+ if (false) {
2717
+ /** @type {?} */
2718
+ TableTotalOption.prototype.columnNumber;
2719
+ /** @type {?} */
2720
+ TableTotalOption.prototype.insertIndex;
2721
+ /** @type {?} */
2722
+ TableTotalOption.prototype.insertName;
2723
+ }
2724
+
2725
+ /**
2726
+ * @fileoverview added by tsickle
2727
+ * Generated from: hd-detail-form/hd-detail-form.service.ts
2728
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2729
+ */
2730
+ var HdDetailFormService = /** @class */ (function () {
2731
+ function HdDetailFormService() {
2732
+ }
2733
+ HdDetailFormService.decorators = [
2734
+ { type: core.Injectable, args: [{
2735
+ providedIn: 'root'
2736
+ },] }
2737
+ ];
2738
+ /** @nocollapse */
2739
+ HdDetailFormService.ctorParameters = function () { return []; };
2740
+ /** @nocollapse */ HdDetailFormService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function HdDetailFormService_Factory() { return new HdDetailFormService(); }, token: HdDetailFormService, providedIn: "root" });
2741
+ return HdDetailFormService;
2742
+ }());
2743
+
2744
+ /**
2745
+ * @fileoverview added by tsickle
2746
+ * Generated from: hd-detail-lines/hd-detail-lines.service.ts
2747
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2748
+ */
2749
+ var TotalOption = /** @class */ (function () {
2750
+ function TotalOption() {
2751
+ }
2752
+ return TotalOption;
2753
+ }());
2754
+ if (false) {
2755
+ /** @type {?} */
2756
+ TotalOption.prototype.insertIndex;
2757
+ /** @type {?} */
2758
+ TotalOption.prototype.insertValue;
2759
+ /** @type {?} */
2760
+ TotalOption.prototype.align;
2761
+ /** @type {?} */
2762
+ TotalOption.prototype.showDecimal;
2763
+ }
2764
+
2765
+ /**
2766
+ * @fileoverview added by tsickle
2767
+ * Generated from: hd-filter/hd-filter.service.ts
2768
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2769
+ */
2770
+ // 控件列表
2771
+ var
2772
+ // 控件列表
2773
+ Filter = /** @class */ (function () {
2774
+ function Filter() {
2775
+ // 输入框提示文案
2776
+ this.value = null; // 值 不传默认为null
2777
+ }
2778
+ return Filter;
2779
+ }());
2780
+ if (false) {
2781
+ /** @type {?} */
2782
+ Filter.prototype.type;
2783
+ /** @type {?} */
2784
+ Filter.prototype.label;
2785
+ /** @type {?} */
2786
+ Filter.prototype.name;
2787
+ /** @type {?} */
2788
+ Filter.prototype.placeholder;
2789
+ /** @type {?} */
2790
+ Filter.prototype.value;
2791
+ /** @type {?} */
2792
+ Filter.prototype.show;
2793
+ /** @type {?} */
2794
+ Filter.prototype.selectOption;
2795
+ /** @type {?} */
2796
+ Filter.prototype.onSearchEvent;
2797
+ /** @type {?} */
2798
+ Filter.prototype.onChangeEvent;
2799
+ /** @type {?} */
2800
+ Filter.prototype.hdDisabledDate;
2801
+ }
2802
+ /** @enum {number} */
2803
+ var FilterListType = {
2804
+ Input: 0,
2805
+ Select: 1,
2806
+ Date: 2,
2807
+ DateRange: 3,
2808
+ MultipleSelect: 4 // 多选
2809
+ ,
2810
+ };
2811
+ FilterListType[FilterListType.Input] = 'Input';
2812
+ FilterListType[FilterListType.Select] = 'Select';
2813
+ FilterListType[FilterListType.Date] = 'Date';
2814
+ FilterListType[FilterListType.DateRange] = 'DateRange';
2815
+ FilterListType[FilterListType.MultipleSelect] = 'MultipleSelect';
2816
+ var HdFilterService = /** @class */ (function () {
2817
+ function HdFilterService() {
2818
+ }
2819
+ HdFilterService.decorators = [
2820
+ { type: core.Injectable, args: [{
2821
+ providedIn: 'root'
2822
+ },] }
2823
+ ];
2824
+ /** @nocollapse */
2825
+ HdFilterService.ctorParameters = function () { return []; };
2826
+ /** @nocollapse */ HdFilterService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function HdFilterService_Factory() { return new HdFilterService(); }, token: HdFilterService, providedIn: "root" });
2827
+ return HdFilterService;
2828
+ }());
2829
+
2830
+ /**
2831
+ * @fileoverview added by tsickle
2832
+ * Generated from: hd-form/hd-form.service.ts
2833
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2834
+ */
2835
+ // 控件列表
2836
+ var
2837
+ // 控件列表
2838
+ FormItem = /** @class */ (function () {
2839
+ function FormItem() {
2840
+ // 字段名称
2841
+ this.require = false; // 是否必填
2842
+ // 输入框提示文案
2843
+ this.width = 1; // 占据的列数。默认1
2844
+ // 占据的列数。默认1
2845
+ this.hide = false; // 是否为隐藏字段,仅用于填充表单的字段,不显示在页面上
2846
+ // 是否为隐藏字段,仅用于填充表单的字段,不显示在页面上
2847
+ this.totalWidth = 0;
2848
+ this.isRowFirst = 0; // 是否是一行的第一个元素
2849
+ // 当前行的所有列的items
2850
+ this.value = null; // 值 不传默认为null
2851
+ // 控件为Select时,选项列表
2852
+ this.inputNumber = new commonType.InputNumber(); // number组件的min、max、step
2853
+ }
2854
+ return FormItem;
2855
+ }());
2856
+ if (false) {
2857
+ /** @type {?} */
2858
+ FormItem.prototype.type;
2859
+ /** @type {?} */
2860
+ FormItem.prototype.label;
2861
+ /** @type {?} */
2862
+ FormItem.prototype.name;
2863
+ /** @type {?} */
2864
+ FormItem.prototype.require;
2865
+ /** @type {?} */
2866
+ FormItem.prototype.placeholder;
2867
+ /** @type {?} */
2868
+ FormItem.prototype.width;
2869
+ /** @type {?} */
2870
+ FormItem.prototype.hide;
2871
+ /** @type {?} */
2872
+ FormItem.prototype.totalWidth;
2873
+ /** @type {?} */
2874
+ FormItem.prototype.isRowFirst;
2875
+ /** @type {?} */
2876
+ FormItem.prototype.columnItems;
2877
+ /** @type {?} */
2878
+ FormItem.prototype.value;
2879
+ /** @type {?} */
2880
+ FormItem.prototype.disabled;
2881
+ /** @type {?} */
2882
+ FormItem.prototype.color;
2883
+ /** @type {?} */
2884
+ FormItem.prototype.maxLength;
2885
+ /** @type {?} */
2886
+ FormItem.prototype.selectOption;
2887
+ /** @type {?} */
2888
+ FormItem.prototype.inputNumber;
2889
+ /** @type {?} */
2890
+ FormItem.prototype.onChangeEvent;
2891
+ /** @type {?} */
2892
+ FormItem.prototype.onSearchEvent;
2893
+ /** @type {?} */
2894
+ FormItem.prototype.defaultLabel;
2895
+ /** @type {?} */
2896
+ FormItem.prototype.hdDisabledDate;
2897
+ }
2898
+ /** @enum {number} */
2899
+ var FormListType = {
2900
+ Input: 0,
2901
+ Select: 1,
2902
+ Date: 2,
2903
+ DateRange: 3,
2904
+ TextArea: 4,
2905
+ InputNumber: 5,
2906
+ MultipleSelect: 6,
2907
+ ViewDom: 7,
2908
+ Switch: 8 // 开关
2909
+ ,
2910
+ };
2911
+ FormListType[FormListType.Input] = 'Input';
2912
+ FormListType[FormListType.Select] = 'Select';
2913
+ FormListType[FormListType.Date] = 'Date';
2914
+ FormListType[FormListType.DateRange] = 'DateRange';
2915
+ FormListType[FormListType.TextArea] = 'TextArea';
2916
+ FormListType[FormListType.InputNumber] = 'InputNumber';
2917
+ FormListType[FormListType.MultipleSelect] = 'MultipleSelect';
2918
+ FormListType[FormListType.ViewDom] = 'ViewDom';
2919
+ FormListType[FormListType.Switch] = 'Switch';
2920
+ var HdFormService = /** @class */ (function () {
2921
+ function HdFormService() {
2922
+ }
2923
+ HdFormService.decorators = [
2924
+ { type: core.Injectable, args: [{
2925
+ providedIn: 'root'
2926
+ },] }
2927
+ ];
2928
+ /** @nocollapse */
2929
+ HdFormService.ctorParameters = function () { return []; };
2930
+ /** @nocollapse */ HdFormService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function HdFormService_Factory() { return new HdFormService(); }, token: HdFormService, providedIn: "root" });
2931
+ return HdFormService;
2932
+ }());
2933
+
2934
+ /**
2935
+ * @fileoverview added by tsickle
2936
+ * Generated from: hd-form-lines/hd-form-lines.service.ts
2937
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2938
+ */
2939
+ // 控件列表
2940
+ var
2941
+ // 控件列表
2942
+ FormLine = /** @class */ (function () {
2943
+ function FormLine() {
2944
+ // 输入框的提示文件
2945
+ this.require = false; // 是否必填
2946
+ // 是否必填
2947
+ this.hide = false; // 是否为隐藏字段,仅用于填充表单的字段,不显示在页面上
2948
+ // 列对齐方式
2949
+ this.value = null; // 值 不传默认为null
2950
+ // 需要保留小数的列的位数
2951
+ this.inputNumber = new commonType.InputNumber(); // number组件的min、max、step
2952
+ }
2953
+ return FormLine;
2954
+ }());
2955
+ if (false) {
2956
+ /** @type {?} */
2957
+ FormLine.prototype.type;
2958
+ /** @type {?} */
2959
+ FormLine.prototype.label;
2960
+ /** @type {?} */
2961
+ FormLine.prototype.name;
2962
+ /** @type {?} */
2963
+ FormLine.prototype.placeholder;
2964
+ /** @type {?} */
2965
+ FormLine.prototype.require;
2966
+ /** @type {?} */
2967
+ FormLine.prototype.hide;
2968
+ /** @type {?} */
2969
+ FormLine.prototype.align;
2970
+ /** @type {?} */
2971
+ FormLine.prototype.value;
2972
+ /** @type {?} */
2973
+ FormLine.prototype.isSelect;
2974
+ /** @type {?} */
2975
+ FormLine.prototype.selectOption;
2976
+ /** @type {?} */
2977
+ FormLine.prototype.explainOptionRight;
2978
+ /** @type {?} */
2979
+ FormLine.prototype.explainOption;
2980
+ /** @type {?} */
2981
+ FormLine.prototype.colorOption;
2982
+ /** @type {?} */
2983
+ FormLine.prototype.maxLength;
2984
+ /** @type {?} */
2985
+ FormLine.prototype.preserveNumber;
2986
+ /** @type {?} */
2987
+ FormLine.prototype.inputNumber;
2988
+ /** @type {?} */
2989
+ FormLine.prototype.onChangeEvent;
2990
+ /** @type {?} */
2991
+ FormLine.prototype.onSearchEvent;
2992
+ /** @type {?} */
2993
+ FormLine.prototype.defaultLabel;
2994
+ /** @type {?} */
2995
+ FormLine.prototype.hdDisabledDate;
2996
+ }
2997
+ var ColorOption = /** @class */ (function () {
2998
+ function ColorOption() {
2999
+ }
3000
+ return ColorOption;
3001
+ }());
3002
+ if (false) {
3003
+ /** @type {?} */
3004
+ ColorOption.prototype.name;
3005
+ /** @type {?} */
3006
+ ColorOption.prototype.color;
3007
+ }
3008
+ var ExplainOption = /** @class */ (function () {
3009
+ function ExplainOption() {
3010
+ }
3011
+ return ExplainOption;
3012
+ }());
3013
+ if (false) {
3014
+ /** @type {?} */
3015
+ ExplainOption.prototype.show;
3016
+ /** @type {?} */
3017
+ ExplainOption.prototype.name;
3018
+ /** @type {?} */
3019
+ ExplainOption.prototype.color;
3020
+ }
3021
+ /** @enum {number} */
3022
+ var FormLineType = {
3023
+ Input: 0,
3024
+ Select: 1,
3025
+ Date: 2,
3026
+ DateRange: 3,
3027
+ TextArea: 4,
3028
+ InputNumber: 5,
3029
+ MultipleSelect: 6,
3030
+ ViewDom: 7 // 单纯的显示控件
3031
+ ,
3032
+ };
3033
+ FormLineType[FormLineType.Input] = 'Input';
3034
+ FormLineType[FormLineType.Select] = 'Select';
3035
+ FormLineType[FormLineType.Date] = 'Date';
3036
+ FormLineType[FormLineType.DateRange] = 'DateRange';
3037
+ FormLineType[FormLineType.TextArea] = 'TextArea';
3038
+ FormLineType[FormLineType.InputNumber] = 'InputNumber';
3039
+ FormLineType[FormLineType.MultipleSelect] = 'MultipleSelect';
3040
+ FormLineType[FormLineType.ViewDom] = 'ViewDom';
3041
+ var HdFormLinesService = /** @class */ (function () {
3042
+ function HdFormLinesService() {
3043
+ }
3044
+ HdFormLinesService.decorators = [
3045
+ { type: core.Injectable, args: [{
3046
+ providedIn: 'root'
3047
+ },] }
3048
+ ];
3049
+ /** @nocollapse */
3050
+ HdFormLinesService.ctorParameters = function () { return []; };
3051
+ /** @nocollapse */ HdFormLinesService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function HdFormLinesService_Factory() { return new HdFormLinesService(); }, token: HdFormLinesService, providedIn: "root" });
3052
+ return HdFormLinesService;
3053
+ }());
3054
+
3055
+ exports.ButtonType = ButtonType;
3056
+ exports.ColorOption = ColorOption;
3057
+ exports.ExplainOption = ExplainOption;
2784
3058
  exports.FantasyNgzorroModule = FantasyNgzorroModule;
3059
+ exports.Filter = Filter;
3060
+ exports.FilterListType = FilterListType;
3061
+ exports.FormItem = FormItem;
3062
+ exports.FormLine = FormLine;
3063
+ exports.FormLineType = FormLineType;
3064
+ exports.FormListType = FormListType;
3065
+ exports.HdButtonService = HdButtonService;
3066
+ exports.HdDetailFormService = HdDetailFormService;
3067
+ exports.HdFilterService = HdFilterService;
3068
+ exports.HdFormLinesService = HdFormLinesService;
3069
+ exports.HdFormService = HdFormService;
3070
+ exports.HdOption = HdOption;
3071
+ exports.InputNumber = InputNumber;
3072
+ exports.Page = Page;
3073
+ exports.SelectOption = SelectOption;
3074
+ exports.TableColumn = TableColumn;
3075
+ exports.TableTotalOption = TableTotalOption;
3076
+ exports.TotalOption = TotalOption;
2785
3077
  exports.ɵa = HdComponentModule;
2786
3078
  exports.ɵb = HdButtonModule;
2787
3079
  exports.ɵc = HdButtonComponent;
@@ -2807,7 +3099,6 @@
2807
3099
  exports.ɵw = HdCurrentTableComponent;
2808
3100
  exports.ɵx = HdTipModule;
2809
3101
  exports.ɵy = HdTipComponent;
2810
- exports.ɵz = Utils;
2811
3102
 
2812
3103
  Object.defineProperty(exports, '__esModule', { value: true });
2813
3104