fantasy-ngzorro 1.0.5 → 1.0.7

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.
@@ -964,7 +964,7 @@
964
964
  HdDetailTipComponent.decorators = [
965
965
  { type: core.Component, args: [{
966
966
  selector: 'hd-detail-tip',
967
- template: "<nz-content class=\"hd-detail-tip-container\">\n <div class=\"hd-detail-tip-state\" [ngStyle]=\"{'background': statusColor || '#9FA4A2'}\">{{stateText}}</div>\n <div class=\"hd-detail-tip-billNumber\">{{billNumber}}</div>\n &nbsp;&nbsp;/&nbsp;&nbsp;\n <div class=\"hd-detail-tip-name\">{{tip}}</div>\n</nz-content>\n",
967
+ template: "<nz-content class=\"hd-detail-tip-container\">\n <div class=\"hd-detail-tip-state\" [ngStyle]=\"{'background': statusColor || '#9FA4A2'}\" *ngIf=\"stateText\">{{stateText}}</div>\n <div class=\"hd-detail-tip-billNumber\">{{billNumber}}</div>\n &nbsp;&nbsp;/&nbsp;&nbsp;\n <div class=\"hd-detail-tip-name\">{{tip}}</div>\n</nz-content>\n",
968
968
  styles: ["::ng-deep .common-btn-group>a{font-size:12px;font-weight:400;color:#12a34f!important;white-space:nowrap}::ng-deep .common-btn-group .common-danger-btn:hover{color:#f05b24!important}::ng-deep .common-btn-group>a:hover{color:#20bd62!important}::ng-deep .common-btn-group>a:not(:last-child)::after{content:'';margin:0 2px}::ng-deep .common-billNumber>a{color:#3b77e3}button{box-shadow:unset;text-shadow:unset}::ng-deep .ant-form-item-label>label{color:#4b504e}::ng-deep .ant-input-number-input{height:28px}::ng-deep .ant-input-number{height:28px}textarea.ant-input{height:auto;min-height:28px}::ng-deep .ant-select-selection--multiple{min-height:28px}::ng-deep .ant-select-selection__rendered>ul>li{height:22px!important;margin-top:3px!important;line-height:22px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:28px!important}::ng-deep .ant-input{height:28px}::ng-deep .ant-select-selection__rendered{line-height:28px!important}::ng-deep .ant-calendar-range-picker-input{text-align:left!important}::ng-deep .ant-calendar-picker{width:100%}::ng-deep .ant-row{margin-right:0!important;margin-left:0!important}::ng-deep .ant-col-6{padding-left:12px;padding-right:12px}::ng-deep .ant-col-12{padding-left:12px;padding-right:12px}::ng-deep .ant-col-18{padding-left:12px;padding-right:12px}::ng-deep .ant-col-24{padding-left:12px;padding-right:12px}::ng-deep .ant-alert-info{background-color:#f5f8f6;border:1px solid #cfe3d4}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:12px;font-family:PingFangSC-Medium,PingFang SC;color:#2a3634;padding:8px!important;box-sizing:border-box}:host ::ng-deep td{font-weight:400;font-style:normal;font-size:12px;color:#2a3634;text-align:left;white-space:nowrap;padding:8px!important;box-sizing:border-box}.hd-detail-tip-container{display:flex;align-items:center}.hd-detail-tip-container .hd-detail-tip-state{padding:2px 6px;border-radius:2px;font-size:12px;font-weight:500;color:#fff;margin-right:8px}.hd-detail-tip-container .hd-detail-tip-billNumber{font-size:16px;font-weight:500;color:#2a3634}.hd-detail-tip-container .hd-detail-tip-name{font-size:14px;font-weight:500;color:#5d7267}"]
969
969
  }] }
970
970
  ];
@@ -2631,6 +2631,98 @@
2631
2631
  return HdTipModule;
2632
2632
  }());
2633
2633
 
2634
+ /**
2635
+ * @fileoverview added by tsickle
2636
+ * Generated from: hd-popconfirm/hd-popconfirm.component.ts
2637
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2638
+ */
2639
+ var HdPopconfirmComponent = /** @class */ (function () {
2640
+ function HdPopconfirmComponent() {
2641
+ this.confirmOption = new core.EventEmitter();
2642
+ this.cancelOption = new core.EventEmitter();
2643
+ }
2644
+ /**
2645
+ * @return {?}
2646
+ */
2647
+ HdPopconfirmComponent.prototype.ngOnInit = /**
2648
+ * @return {?}
2649
+ */
2650
+ function () {
2651
+ };
2652
+ /**
2653
+ * @param {?} e
2654
+ * @return {?}
2655
+ */
2656
+ HdPopconfirmComponent.prototype.cancel = /**
2657
+ * @param {?} e
2658
+ * @return {?}
2659
+ */
2660
+ function (e) {
2661
+ this.cancelOption.emit();
2662
+ };
2663
+ /**
2664
+ * @param {?} e
2665
+ * @return {?}
2666
+ */
2667
+ HdPopconfirmComponent.prototype.confirm = /**
2668
+ * @param {?} e
2669
+ * @return {?}
2670
+ */
2671
+ function (e) {
2672
+ this.confirmOption.emit();
2673
+ };
2674
+ HdPopconfirmComponent.decorators = [
2675
+ { type: core.Component, args: [{
2676
+ selector: 'app-hd-popconfirm',
2677
+ template: "<div class=\"popconfirm-content\">\n <div class=\"popconfirm-arrow\"></div>\n\n <div class=\"popconfirm-inner\">\n <div class=\"message-content\">\n <svg class=\"icon-warn\" viewBox=\"64 64 896 896\" fill=\"currentColor\" width=\"1em\" height=\"1em\" data-icon=\"exclamation-circle\" aria-hidden=\"true\"><path d=\"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z\"></path></svg>\n <p style=\"text-indent: 18px\">{{message}}</p>\n </div>\n\n <!-- \u6309\u94AE\u63D0\u793A -->\n <div class=\"btn-content\">\n <button type=\"button\" (click)=\"cancel($event)\" nz-button nzType=\"default\">\u53D6\u6D88</button>\n <button type=\"button\" (click)=\"confirm($event)\" nz-button nzType=\"primary\">\u786E\u8BA4</button>\n </div>\n </div>\n</div>\n",
2678
+ styles: [".popconfirm-content{position:relative}.popconfirm-arrow{position:absolute;top:15px;left:-4px;display:block;width:8.5px;height:8.5px;background:0 0;border-style:solid;border-width:4.24264069px;transform:rotate(45deg);right:6px;box-shadow:-3px 3px 7px rgba(0,0,0,.07);border-color:transparent transparent #fff #fff}.popconfirm-inner{min-width:158px;background-color:#fff;padding:12px 16px;box-sizing:border-box;line-height:1.5;box-shadow:0 2px 8px rgba(0,0,0,.15);border-radius:4px;text-align:left}.message-content{position:relative}.icon-warn{color:#faad14;position:absolute;top:4px;font-size:14px}.btn-content{width:100%;text-align:right}:host ::ng-deep .btn-content>button{padding:0 7px!important;margin-left:8px!important;font-size:14px!important}"]
2679
+ }] }
2680
+ ];
2681
+ /** @nocollapse */
2682
+ HdPopconfirmComponent.ctorParameters = function () { return []; };
2683
+ HdPopconfirmComponent.propDecorators = {
2684
+ message: [{ type: core.Input }],
2685
+ confirmOption: [{ type: core.Output }],
2686
+ cancelOption: [{ type: core.Output }]
2687
+ };
2688
+ return HdPopconfirmComponent;
2689
+ }());
2690
+ if (false) {
2691
+ /** @type {?} */
2692
+ HdPopconfirmComponent.prototype.message;
2693
+ /** @type {?} */
2694
+ HdPopconfirmComponent.prototype.confirmOption;
2695
+ /** @type {?} */
2696
+ HdPopconfirmComponent.prototype.cancelOption;
2697
+ }
2698
+
2699
+ /**
2700
+ * @fileoverview added by tsickle
2701
+ * Generated from: hd-popconfirm/hd-popconfirm.module.ts
2702
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2703
+ */
2704
+ var HdPopconfirmModule = /** @class */ (function () {
2705
+ function HdPopconfirmModule() {
2706
+ }
2707
+ HdPopconfirmModule.decorators = [
2708
+ { type: core.NgModule, args: [{
2709
+ declarations: [
2710
+ HdPopconfirmComponent
2711
+ ],
2712
+ imports: [
2713
+ forms.FormsModule,
2714
+ forms.ReactiveFormsModule,
2715
+ common.CommonModule,
2716
+ ngZorroAntd.NgZorroAntdModule,
2717
+ ],
2718
+ exports: [HdPopconfirmComponent],
2719
+ providers: [],
2720
+ bootstrap: [HdPopconfirmComponent]
2721
+ },] }
2722
+ ];
2723
+ return HdPopconfirmModule;
2724
+ }());
2725
+
2634
2726
  /**
2635
2727
  * @fileoverview added by tsickle
2636
2728
  * Generated from: hd-component.module.ts
@@ -2653,7 +2745,8 @@
2653
2745
  HdSpaceModule,
2654
2746
  HdStatusModule,
2655
2747
  HdCurrentTableModule,
2656
- HdTipModule
2748
+ HdTipModule,
2749
+ HdPopconfirmModule
2657
2750
  ]
2658
2751
  },] }
2659
2752
  ];
@@ -3052,6 +3145,135 @@
3052
3145
  return HdFormLinesService;
3053
3146
  }());
3054
3147
 
3148
+ /**
3149
+ * @fileoverview added by tsickle
3150
+ * Generated from: utils.ts
3151
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3152
+ */
3153
+ // 工具类
3154
+ var ɵ0 = /**
3155
+ * @param {?} formList
3156
+ * @param {?} name
3157
+ * @param {?} options
3158
+ * @return {?}
3159
+ */
3160
+ function (formList, name, options) {
3161
+ /** @type {?} */
3162
+ var returnData = formList;
3163
+ if (!returnData || !returnData.length) {
3164
+ return returnData;
3165
+ }
3166
+ /** @type {?} */
3167
+ var length = formList.length;
3168
+ for (var i = 0; i < length; i++) {
3169
+ if (returnData[i].name === name) {
3170
+ returnData[i].selectOption.selectList = options;
3171
+ }
3172
+ }
3173
+ return returnData;
3174
+ }, ɵ1 = /**
3175
+ * @param {?} list
3176
+ * @param {?} obj
3177
+ * @return {?}
3178
+ */
3179
+ function (list, obj) {
3180
+ /** @type {?} */
3181
+ var returnData = [];
3182
+ if (!list || !list.length) {
3183
+ return returnData;
3184
+ }
3185
+ /** @type {?} */
3186
+ var length = list.length;
3187
+ for (var i = 0; i < length; i++) {
3188
+ if (obj[list[i].name]) {
3189
+ list[i].value = obj[list[i].name];
3190
+ }
3191
+ }
3192
+ return list;
3193
+ }, ɵ2 = /**
3194
+ * @param {?} list
3195
+ * @param {?=} option
3196
+ * @return {?}
3197
+ */
3198
+ function (list, option) {
3199
+ /** @type {?} */
3200
+ var returnData = [];
3201
+ if (!list || !list.length) {
3202
+ return returnData;
3203
+ }
3204
+ if (option) {
3205
+ if (option.labelTip && option.valueTip) {
3206
+ list.forEach((/**
3207
+ * @param {?} item
3208
+ * @return {?}
3209
+ */
3210
+ function (item) {
3211
+ /** @type {?} */
3212
+ var returnItem = {};
3213
+ returnItem.label = item[option.label];
3214
+ returnItem.value = item[option.value];
3215
+ if (option.valueTip) {
3216
+ returnItem[option.valueTip] = item[option.value];
3217
+ }
3218
+ if (option.labelTip) {
3219
+ returnItem[option.labelTip] = item[option.label];
3220
+ }
3221
+ returnData.push(returnItem);
3222
+ }));
3223
+ }
3224
+ else {
3225
+ list.forEach((/**
3226
+ * @param {?} item
3227
+ * @return {?}
3228
+ */
3229
+ function (item) {
3230
+ /** @type {?} */
3231
+ var returnItem = {};
3232
+ returnItem.label = item[option.label];
3233
+ returnItem.value = item[option.value];
3234
+ returnData.push(returnItem);
3235
+ }));
3236
+ }
3237
+ }
3238
+ else {
3239
+ list.forEach((/**
3240
+ * @param {?} item
3241
+ * @return {?}
3242
+ */
3243
+ function (item) {
3244
+ /** @type {?} */
3245
+ var returnItem = {};
3246
+ returnItem.label = item;
3247
+ returnItem.value = item;
3248
+ returnData.push(returnItem);
3249
+ }));
3250
+ }
3251
+ return returnData;
3252
+ };
3253
+ /** @type {?} */
3254
+ var Utils = {
3255
+ /**
3256
+ * 填充select控件选项
3257
+ * @param formList 入参数组 Array<any>
3258
+ * @param name 需要填充options的属性名称
3259
+ * @param options 选项列表
3260
+ */
3261
+ fillSelectOption: (ɵ0),
3262
+ /**
3263
+ * 填充FormItem数组:针对入参list的每一个FormItem,判断obj中是否有对应的name字段,如果有,则填充value。
3264
+ * @param list 入参数组 Array<FormItem>
3265
+ * @param obj 需要填充到list的属性
3266
+ */
3267
+ fillArrayFormItem: (ɵ1),
3268
+ /**
3269
+ * 数组转换成选择器的选项数组
3270
+ * @param list 入参数组 字符串数组或对象数组
3271
+ * @param option 转换选项
3272
+ * 注:list为字符串数组,option不需要传,按照标准的label、value转换
3273
+ */
3274
+ arrayToSelectOptionList: (ɵ2)
3275
+ };
3276
+
3055
3277
  exports.ButtonType = ButtonType;
3056
3278
  exports.ColorOption = ColorOption;
3057
3279
  exports.ExplainOption = ExplainOption;
@@ -3063,6 +3285,7 @@
3063
3285
  exports.FormLineType = FormLineType;
3064
3286
  exports.FormListType = FormListType;
3065
3287
  exports.HdButtonService = HdButtonService;
3288
+ exports.HdCurrentTableComponent = HdCurrentTableComponent;
3066
3289
  exports.HdDetailFormService = HdDetailFormService;
3067
3290
  exports.HdFilterService = HdFilterService;
3068
3291
  exports.HdFormLinesService = HdFormLinesService;
@@ -3074,6 +3297,7 @@
3074
3297
  exports.TableColumn = TableColumn;
3075
3298
  exports.TableTotalOption = TableTotalOption;
3076
3299
  exports.TotalOption = TotalOption;
3300
+ exports.Utils = Utils;
3077
3301
  exports.ɵa = HdComponentModule;
3078
3302
  exports.ɵb = HdButtonModule;
3079
3303
  exports.ɵc = HdButtonComponent;
@@ -3096,9 +3320,10 @@
3096
3320
  exports.ɵt = HdStatusModule;
3097
3321
  exports.ɵu = HdStatusComponent;
3098
3322
  exports.ɵv = HdCurrentTableModule;
3099
- exports.ɵw = HdCurrentTableComponent;
3100
- exports.ɵx = HdTipModule;
3101
- exports.ɵy = HdTipComponent;
3323
+ exports.ɵw = HdTipModule;
3324
+ exports.ɵx = HdTipComponent;
3325
+ exports.ɵy = HdPopconfirmModule;
3326
+ exports.ɵz = HdPopconfirmComponent;
3102
3327
 
3103
3328
  Object.defineProperty(exports, '__esModule', { value: true });
3104
3329