fantasy-ngzorro 1.0.5 → 1.0.6
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.
- package/bundles/fantasy-ngzorro.umd.js +131 -1
- package/bundles/fantasy-ngzorro.umd.js.map +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js.map +1 -1
- package/esm2015/fantasy-ngzorro.js +2 -2
- package/esm2015/hd-detail-tip/hd-detail-tip.component.js +2 -2
- package/esm2015/index.js +2 -2
- package/esm2015/public-api.js +2 -1
- package/esm2015/utils.js +130 -0
- package/esm5/fantasy-ngzorro.js +2 -2
- package/esm5/hd-detail-tip/hd-detail-tip.component.js +2 -2
- package/esm5/index.js +2 -2
- package/esm5/public-api.js +2 -1
- package/esm5/utils.js +130 -0
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +131 -2
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +131 -2
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/utils.d.ts +28 -0
|
@@ -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 / \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 / \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
|
];
|
|
@@ -3052,6 +3052,135 @@
|
|
|
3052
3052
|
return HdFormLinesService;
|
|
3053
3053
|
}());
|
|
3054
3054
|
|
|
3055
|
+
/**
|
|
3056
|
+
* @fileoverview added by tsickle
|
|
3057
|
+
* Generated from: utils.ts
|
|
3058
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3059
|
+
*/
|
|
3060
|
+
// 工具类
|
|
3061
|
+
var ɵ0 = /**
|
|
3062
|
+
* @param {?} formList
|
|
3063
|
+
* @param {?} name
|
|
3064
|
+
* @param {?} options
|
|
3065
|
+
* @return {?}
|
|
3066
|
+
*/
|
|
3067
|
+
function (formList, name, options) {
|
|
3068
|
+
/** @type {?} */
|
|
3069
|
+
var returnData = formList;
|
|
3070
|
+
if (!returnData || !returnData.length) {
|
|
3071
|
+
return returnData;
|
|
3072
|
+
}
|
|
3073
|
+
/** @type {?} */
|
|
3074
|
+
var length = formList.length;
|
|
3075
|
+
for (var i = 0; i < length; i++) {
|
|
3076
|
+
if (returnData[i].name === name) {
|
|
3077
|
+
returnData[i].selectOption.selectList = options;
|
|
3078
|
+
}
|
|
3079
|
+
}
|
|
3080
|
+
return returnData;
|
|
3081
|
+
}, ɵ1 = /**
|
|
3082
|
+
* @param {?} list
|
|
3083
|
+
* @param {?} obj
|
|
3084
|
+
* @return {?}
|
|
3085
|
+
*/
|
|
3086
|
+
function (list, obj) {
|
|
3087
|
+
/** @type {?} */
|
|
3088
|
+
var returnData = [];
|
|
3089
|
+
if (!list || !list.length) {
|
|
3090
|
+
return returnData;
|
|
3091
|
+
}
|
|
3092
|
+
/** @type {?} */
|
|
3093
|
+
var length = list.length;
|
|
3094
|
+
for (var i = 0; i < length; i++) {
|
|
3095
|
+
if (obj[list[i].name]) {
|
|
3096
|
+
list[i].value = obj[list[i].name];
|
|
3097
|
+
}
|
|
3098
|
+
}
|
|
3099
|
+
return list;
|
|
3100
|
+
}, ɵ2 = /**
|
|
3101
|
+
* @param {?} list
|
|
3102
|
+
* @param {?=} option
|
|
3103
|
+
* @return {?}
|
|
3104
|
+
*/
|
|
3105
|
+
function (list, option) {
|
|
3106
|
+
/** @type {?} */
|
|
3107
|
+
var returnData = [];
|
|
3108
|
+
if (!list || !list.length) {
|
|
3109
|
+
return returnData;
|
|
3110
|
+
}
|
|
3111
|
+
if (option) {
|
|
3112
|
+
if (option.labelTip && option.valueTip) {
|
|
3113
|
+
list.forEach((/**
|
|
3114
|
+
* @param {?} item
|
|
3115
|
+
* @return {?}
|
|
3116
|
+
*/
|
|
3117
|
+
function (item) {
|
|
3118
|
+
/** @type {?} */
|
|
3119
|
+
var returnItem = {};
|
|
3120
|
+
returnItem.label = item[option.label];
|
|
3121
|
+
returnItem.value = item[option.value];
|
|
3122
|
+
if (option.valueTip) {
|
|
3123
|
+
returnItem[option.valueTip] = item[option.value];
|
|
3124
|
+
}
|
|
3125
|
+
if (option.labelTip) {
|
|
3126
|
+
returnItem[option.labelTip] = item[option.label];
|
|
3127
|
+
}
|
|
3128
|
+
returnData.push(returnItem);
|
|
3129
|
+
}));
|
|
3130
|
+
}
|
|
3131
|
+
else {
|
|
3132
|
+
list.forEach((/**
|
|
3133
|
+
* @param {?} item
|
|
3134
|
+
* @return {?}
|
|
3135
|
+
*/
|
|
3136
|
+
function (item) {
|
|
3137
|
+
/** @type {?} */
|
|
3138
|
+
var returnItem = {};
|
|
3139
|
+
returnItem.label = item[option.label];
|
|
3140
|
+
returnItem.value = item[option.value];
|
|
3141
|
+
returnData.push(returnItem);
|
|
3142
|
+
}));
|
|
3143
|
+
}
|
|
3144
|
+
}
|
|
3145
|
+
else {
|
|
3146
|
+
list.forEach((/**
|
|
3147
|
+
* @param {?} item
|
|
3148
|
+
* @return {?}
|
|
3149
|
+
*/
|
|
3150
|
+
function (item) {
|
|
3151
|
+
/** @type {?} */
|
|
3152
|
+
var returnItem = {};
|
|
3153
|
+
returnItem.label = item;
|
|
3154
|
+
returnItem.value = item;
|
|
3155
|
+
returnData.push(returnItem);
|
|
3156
|
+
}));
|
|
3157
|
+
}
|
|
3158
|
+
return returnData;
|
|
3159
|
+
};
|
|
3160
|
+
/** @type {?} */
|
|
3161
|
+
var Utils = {
|
|
3162
|
+
/**
|
|
3163
|
+
* 填充select控件选项
|
|
3164
|
+
* @param formList 入参数组 Array<any>
|
|
3165
|
+
* @param name 需要填充options的属性名称
|
|
3166
|
+
* @param options 选项列表
|
|
3167
|
+
*/
|
|
3168
|
+
fillSelectOption: (ɵ0),
|
|
3169
|
+
/**
|
|
3170
|
+
* 填充FormItem数组:针对入参list的每一个FormItem,判断obj中是否有对应的name字段,如果有,则填充value。
|
|
3171
|
+
* @param list 入参数组 Array<FormItem>
|
|
3172
|
+
* @param obj 需要填充到list的属性
|
|
3173
|
+
*/
|
|
3174
|
+
fillArrayFormItem: (ɵ1),
|
|
3175
|
+
/**
|
|
3176
|
+
* 数组转换成选择器的选项数组
|
|
3177
|
+
* @param list 入参数组 字符串数组或对象数组
|
|
3178
|
+
* @param option 转换选项
|
|
3179
|
+
* 注:list为字符串数组,option不需要传,按照标准的label、value转换
|
|
3180
|
+
*/
|
|
3181
|
+
arrayToSelectOptionList: (ɵ2)
|
|
3182
|
+
};
|
|
3183
|
+
|
|
3055
3184
|
exports.ButtonType = ButtonType;
|
|
3056
3185
|
exports.ColorOption = ColorOption;
|
|
3057
3186
|
exports.ExplainOption = ExplainOption;
|
|
@@ -3074,6 +3203,7 @@
|
|
|
3074
3203
|
exports.TableColumn = TableColumn;
|
|
3075
3204
|
exports.TableTotalOption = TableTotalOption;
|
|
3076
3205
|
exports.TotalOption = TotalOption;
|
|
3206
|
+
exports.Utils = Utils;
|
|
3077
3207
|
exports.ɵa = HdComponentModule;
|
|
3078
3208
|
exports.ɵb = HdButtonModule;
|
|
3079
3209
|
exports.ɵc = HdButtonComponent;
|