fantasy-ngzorro 1.0.1 → 1.0.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.
Files changed (48) hide show
  1. package/bundles/fantasy-ngzorro.umd.js +58 -162
  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 +1 -2
  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-lines/hd-detail-lines.component.js +2 -2
  11. package/esm2015/hd-filter/hd-filter.service.js +1 -30
  12. package/esm2015/hd-form/hd-form.service.js +2 -46
  13. package/esm2015/hd-form-lines/hd-form-lines.service.js +2 -50
  14. package/esm2015/model/common-type.js +85 -0
  15. package/esm5/fantasy-ngzorro.js +1 -2
  16. package/esm5/hd-component.module.js +2 -4
  17. package/esm5/hd-current-table/hd-current-table.component.js +2 -2
  18. package/esm5/hd-current-table/hd-current-table.service.js +1 -25
  19. package/esm5/hd-detail-form/hd-detail-form.component.js +1 -1
  20. package/esm5/hd-detail-lines/hd-detail-lines.component.js +2 -2
  21. package/esm5/hd-filter/hd-filter.service.js +1 -36
  22. package/esm5/hd-form/hd-form.service.js +2 -54
  23. package/esm5/hd-form-lines/hd-form-lines.service.js +2 -58
  24. package/esm5/model/common-type.js +101 -0
  25. package/fantasy-ngzorro.d.ts +0 -1
  26. package/fantasy-ngzorro.metadata.json +1 -1
  27. package/fesm2015/fantasy-ngzorro.js +53 -121
  28. package/fesm2015/fantasy-ngzorro.js.map +1 -1
  29. package/fesm5/fantasy-ngzorro.js +58 -160
  30. package/fesm5/fantasy-ngzorro.js.map +1 -1
  31. package/hd-current-table/hd-current-table.component.d.ts +1 -1
  32. package/hd-current-table/hd-current-table.service.d.ts +1 -10
  33. package/hd-detail-form/hd-detail-form.component.d.ts +1 -1
  34. package/hd-detail-lines/hd-detail-lines.component.d.ts +1 -1
  35. package/hd-filter/hd-filter.service.d.ts +1 -12
  36. package/hd-form/hd-form.service.d.ts +1 -17
  37. package/hd-form-lines/hd-form-lines.service.d.ts +1 -19
  38. package/model/common-type.d.ts +28 -0
  39. package/package.json +1 -1
  40. package/esm2015/hd-detail-form/hd-detail-form.service.js +0 -27
  41. package/esm2015/model/page.js +0 -36
  42. package/esm2015/utils.js +0 -118
  43. package/esm5/hd-detail-form/hd-detail-form.service.js +0 -34
  44. package/esm5/model/page.js +0 -44
  45. package/esm5/utils.js +0 -158
  46. package/hd-detail-form/hd-detail-form.service.d.ts +0 -7
  47. package/model/page.d.ts +0 -9
  48. package/utils.d.ts +0 -28
@@ -1,6 +1,6 @@
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) :
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
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
5
  }(this, (function (exports, core, common, ngZorroAntd, forms, core$1, lodash, dragDrop, table) { 'use strict';
6
6
 
@@ -466,7 +466,7 @@
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
  /**
@@ -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
  ];
@@ -2807,7 +2704,6 @@
2807
2704
  exports.ɵw = HdCurrentTableComponent;
2808
2705
  exports.ɵx = HdTipModule;
2809
2706
  exports.ɵy = HdTipComponent;
2810
- exports.ɵz = Utils;
2811
2707
 
2812
2708
  Object.defineProperty(exports, '__esModule', { value: true });
2813
2709