fantasy-ngzorro 1.0.2 → 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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
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
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));
5
- }(this, (function (exports, core, common, ngZorroAntd, forms, core$1, lodash, dragDrop, table) { 'use strict';
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.
@@ -472,7 +472,7 @@
472
472
  /**
473
473
  * @template T
474
474
  */
475
- var /**
475
+ var /**
476
476
  * @template T
477
477
  */
478
478
  Page = /** @class */ (function () {
@@ -2678,7 +2678,402 @@
2678
2678
  return FantasyNgzorroModule;
2679
2679
  }());
2680
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;
2681
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;
2682
3077
  exports.ɵa = HdComponentModule;
2683
3078
  exports.ɵb = HdButtonModule;
2684
3079
  exports.ɵc = HdButtonComponent;