fantasy-ngzorro 1.0.2 → 1.0.4
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 +401 -6
- package/bundles/fantasy-ngzorro.umd.js.map +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js +2 -2
- package/bundles/fantasy-ngzorro.umd.min.js.map +1 -1
- package/esm2015/fantasy-ngzorro.js +2 -2
- package/esm2015/hd-detail-form/hd-detail-form.service.js +19 -0
- package/esm2015/hd-filter/hd-filter.component.js +2 -2
- package/esm2015/hd-filter/hd-filter.service.js +1 -1
- package/esm2015/hd-form/hd-form.component.js +2 -2
- package/esm2015/hd-form/hd-form.service.js +1 -1
- package/esm2015/hd-form-lines/hd-form-lines.component.js +2 -2
- package/esm2015/hd-form-lines/hd-form-lines.service.js +1 -1
- package/esm2015/index.js +2 -1
- package/esm2015/public-api.js +15 -0
- package/esm5/fantasy-ngzorro.js +2 -2
- package/esm5/hd-detail-form/hd-detail-form.service.js +22 -0
- package/esm5/hd-filter/hd-filter.component.js +2 -2
- package/esm5/hd-filter/hd-filter.service.js +1 -1
- package/esm5/hd-form/hd-form.component.js +2 -2
- package/esm5/hd-form/hd-form.service.js +1 -1
- package/esm5/hd-form-lines/hd-form-lines.component.js +2 -2
- package/esm5/hd-form-lines/hd-form-lines.service.js +1 -1
- package/esm5/index.js +2 -1
- package/esm5/public-api.js +15 -0
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +351 -5
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +386 -6
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-detail-form/hd-detail-form.service.d.ts +3 -0
- package/hd-filter/hd-filter.service.d.ts +1 -1
- package/hd-form/hd-form.service.d.ts +1 -1
- package/hd-form-lines/hd-form-lines.service.d.ts +1 -1
- package/index.d.ts +1 -0
- package/package.json +5 -6
- package/public-api.d.ts +9 -0
|
@@ -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 () {
|
|
@@ -1199,7 +1199,7 @@
|
|
|
1199
1199
|
HdFilterComponent.decorators = [
|
|
1200
1200
|
{ type: core.Component, args: [{
|
|
1201
1201
|
selector: 'hd-filter',
|
|
1202
|
-
template: "<form nz-form [formGroup]=\"validateFilterForm\" class=\"ant-advanced-search-form hd-filter-container\">\n <!-- \u6574\u4F53\u7ED3\u6784 -->\n <div nz-row [nzGutter]=\"24\">\n <!-- \u5BF9\u7EC4\u4EF6\u5217\u8868\u5FAA\u73AF\u5904\u7406 -->\n <ng-container *ngFor=\"let filter of filterList\">\n <div nz-col [nzSpan]=\"6\" [hidden]=\"!filter.show\">\n <nz-form-item nzFlex>\n <nz-form-label class=\"hd-filter-label\">{{filter.label}}</nz-form-label>\n <nz-form-control class=\"hd-filter-control\">\n <ng-container [ngSwitch]=\"filter.type\">\n <!-- \u8FD9\u91CC\u6570\u5B57\u5BF9\u5E94\u679A\u4E3E\u7C7B\u578B\uFF0C\u53EF\u5728hd-filter.service.ts\u6587\u4EF6\u4E2D\u67E5\u770B\u5BF9\u5E94\u5173\u7CFB -->\n <ng-container *ngSwitchCase=\"
|
|
1202
|
+
template: "<form nz-form [formGroup]=\"validateFilterForm\" class=\"ant-advanced-search-form hd-filter-container\">\n <!-- \u6574\u4F53\u7ED3\u6784 -->\n <div nz-row [nzGutter]=\"24\">\n <!-- \u5BF9\u7EC4\u4EF6\u5217\u8868\u5FAA\u73AF\u5904\u7406 -->\n <ng-container *ngFor=\"let filter of filterList\">\n <div nz-col [nzSpan]=\"6\" [hidden]=\"!filter.show\">\n <nz-form-item nzFlex>\n <nz-form-label class=\"hd-filter-label\">{{filter.label}}</nz-form-label>\n <nz-form-control class=\"hd-filter-control\">\n <ng-container [ngSwitch]=\"filter.type\">\n <!-- \u8FD9\u91CC\u6570\u5B57\u5BF9\u5E94\u679A\u4E3E\u7C7B\u578B\uFF0C\u53EF\u5728hd-filter.service.ts\u6587\u4EF6\u4E2D\u67E5\u770B\u5BF9\u5E94\u5173\u7CFB -->\n <ng-container *ngSwitchCase=\"0\">\n <nz-input-group [nzSuffix]=\"inputCleanTemplate\">\n <input nz-input [placeholder]=\"filter.placeholder ? filter.placeholder : '\u8BF7\u8F93\u5165' + filter.label\" [formControlName]=\"filter.name\" (ngModelChange)=\"triggerEvent(filter.onChangeEvent || null, $event)\"/>\n </nz-input-group>\n <ng-template #inputCleanTemplate><i nz-icon nz-tooltip class=\"ant-input-clear-icon\" nzTheme=\"fill\"\n nzType=\"close-circle\" *ngIf=\"validateFilterForm.get(filter.name).value\"\n (click)=\"inputClean(filter)\"></i></ng-template>\n </ng-container>\n <ng-container *ngSwitchCase=\"1\">\n <nz-select nzShowSearch [nzServerSearch]=\"filter.selectOption.hdServerSearch || false\" [nzDropdownMatchSelectWidth]=\"filter.selectOption.hdDropdownMatchSelectWidth ? filter.selectOption.hdDropdownMatchSelectWidth : false\" nzAllowClear (nzOnSearch)=\"triggerEvent(filter.onSearchEvent || null, $event, filter.selectOption)\" [nzPlaceHolder]=\"filter.placeholder ? filter.placeholder : '\u8BF7\u9009\u62E9' + filter.label\" [formControlName]=\"filter.name\"\n (ngModelChange)=\"triggerEvent(filter.onChangeEvent || null, $event)\" nzAllowClear>\n <nz-option *ngFor=\"let selectItem of filter.selectOption.selectList\" [nzValue]=\"selectItem[filter.selectOption.value]\"\n [nzLabel]=\"filter.selectOption.showLabelAndValue ? '['+ selectItem[filter.selectOption.value] +']' +\n selectItem[filter.selectOption.label] : selectItem[filter.selectOption.label]\"></nz-option>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase=\"2\">\n <nz-date-picker [nzPlaceHolder]=\"filter.placeholder ? filter.placeholder : '\u8BF7\u9009\u62E9' + filter.label\"\n [formControlName]=\"filter.name\" [nzDisabledDate]=\"filter.hdDisabledDate\"\n (ngModelChange)=\"triggerEvent(filter.onChangeEvent || null, $event)\">\n </nz-date-picker>\n </ng-container>\n <ng-container *ngSwitchCase=\"3\">\n <nz-range-picker [nzPlaceHolder]=\"['\u5F00\u59CB\u65E5\u671F','\u7ED3\u675F\u65E5\u671F']\"\n [formControlName]=\"filter.name\">\n (ngModelChange)=\"triggerEvent(filter.onChangeEvent || null, $event)\"\n </nz-range-picker>\n </ng-container>\n <!-- \u591A\u9879\u9009\u62E9\u5668 -->\n <ng-container *ngSwitchCase=\"4\">\n <nz-select [nzDropdownMatchSelectWidth]=\"filter.selectOption.hdDropdownMatchSelectWidth ? filter.selectOption.hdDropdownMatchSelectWidth : false\"\n nzMode=\"multiple\" nzShowSearch nzAllowClear [nzPlaceHolder]=\"filter.placeholder ? filter.placeholder : '\u8BF7\u9009\u62E9' + filter.label\"\n [formControlName]=\"filter.name\" [nzServerSearch]=\"filter.selectOption.hdServerSearch || false\"\n (ngModelChange)=\"triggerEvent(filter.onChangeEvent || null, $event)\"\n (nzOnSearch)=\"triggerEvent(filter.onSearchEvent || null, $event)\">\n <nz-option *ngFor=\"let selectItem of filter.selectOption.selectList\" [nzValue]=\"selectItem[filter.selectOption.value]\"\n [nzLabel]=\"filter.selectOption.showLabelAndValue ? '['+ selectItem[filter.selectOption.value] +']' +\n selectItem[filter.selectOption.label] : selectItem[filter.selectOption.label]\"></nz-option>\n </nz-select>\n </ng-container>\n </ng-container>\n </nz-form-control>\n </nz-form-item>\n </div>\n </ng-container>\n\n <div class=\"hd-filter-btn\" nz-col [nzSpan]=\"6\"\n [nzOffset]=\"computeOffset()\">\n <a *ngIf=\"filterList.length > 7\" class=\"hd-filter-more\" (click)=\"showMore()\">\n {{isShowMore ? '\u5C55\u5F00' : '\u6536\u8D77'}}\n <i nz-icon [nzType]=\"isShowMore ? 'down' : 'up'\"></i>\n </a>\n <hd-button type=\"primary\" (click)=\"submitForm()\">\u67E5\u8BE2</hd-button>\n <hd-button type=\"reset\" (click)=\"resetForm()\">\u91CD\u7F6E</hd-button>\n </div>\n </div>\n</form>\n",
|
|
1203
1203
|
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-filter-container{padding:20px 23px;background:#fff;box-shadow:0 0 12px 0 rgba(93,114,103,.08);border-radius:4px;margin-bottom:8px!important;font-size:12px}.hd-filter-container .ant-row{margin-right:0!important;margin-left:0!important}.hd-filter-container .ant-col-6{padding-left:0!important;padding-right:0!important}.hd-filter-container .hd-filter-label{width:108px;word-break:break-all}.hd-filter-container .hd-filter-control{width:calc(100% - 108px)}.hd-filter-container ::ng-deep .ant-calendar-picker{width:100%}.hd-filter-container .hd-filter-more{color:#12a34f}.hd-filter-container .hd-filter-btn{height:40px;display:inline-flex;align-items:center;justify-content:flex-end}.hd-filter-container hd-button{margin-left:12px}.hd-filter-container ::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}.hd-filter-container ::ng-deep .ant-select-selection--single{height:28px!important}.hd-filter-container ::ng-deep .ant-input{height:28px!important}.hd-filter-container ::ng-deep .ant-calendar-range-picker-input{text-align:left!important}.hd-filter-container .ant-input-number{width:100%}"]
|
|
1204
1204
|
}] }
|
|
1205
1205
|
];
|
|
@@ -1475,7 +1475,7 @@
|
|
|
1475
1475
|
HdFormComponent.decorators = [
|
|
1476
1476
|
{ type: core.Component, args: [{
|
|
1477
1477
|
selector: 'hd-form',
|
|
1478
|
-
template: "<form nz-form [formGroup]=\"validateHdForm\" class=\"ant-advanced-search-form hd-formItem-container\">\n <!-- \u6574\u4F53\u7ED3\u6784 -->\n <div nz-row [nzGutter]=\"24\">\n <!-- \u5BF9\u7EC4\u4EF6\u5217\u8868\u5FAA\u73AF\u5904\u7406 -->\n <ng-container *ngFor=\"let formItem of formList;index as i\">\n <div nz-row *ngIf=\"formItem.isRowFirst && formItem.isRowFirst === 1\">\n <div nz-col *ngIf=\"!formItem.hide\" [nzSpan]=\"formItem.width? formItem.width * 6 : 6\">\n <nz-form-item nzFlex>\n <nz-form-label class=\"hd-formItem-label\" [nzNoColon]=\"true\" [nzRequired]=\"formItem.require\">\n {{formItem.label}}\n </nz-form-label>\n <nz-form-control class=\"hd-formItem-control\" [nzErrorTip]=\"formItem.label + '\u4E0D\u80FD\u4E3A\u7A7A'\">\n <ng-container [ngSwitch]=\"formItem.type\">\n <ng-container *ngSwitchCase=\"'Input'\">\n <nz-input-group [nzSuffix]=\"inputCleanTemplate\">\n <input *ngIf=\"formItem.disabled === true;else inputTemplate\" nz-input [ngStyle]=\"{'color': formItem?.color ? formItem.color : null}\" [disabled]=\"true\" [attr.disabled]=\"true\" [maxlength]=\"formItem.maxLength || null\" [placeholder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u8F93\u5165' + formItem.label\" [formControlName]=\"formItem.name\"/>\n <ng-template #inputTemplate>\n <input nz-input [ngStyle]=\"{'color': formItem?.color ? formItem.color : null}\" [maxlength]=\"formItem.maxLength || null\" [placeholder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u8F93\u5165' + formItem.label\" [formControlName]=\"formItem.name\"/>\n </ng-template>\n </nz-input-group>\n <ng-template #inputCleanTemplate><i nz-icon nz-tooltip class=\"ant-input-clear-icon\" nzTheme=\"fill\"\n nzType=\"close-circle\" *ngIf=\"validateHdForm.get(formItem.name).value && !formItem.disabled\"\n (click)=\"inputClean(formItem)\"></i></ng-template>\n </ng-container>\n <ng-container *ngSwitchCase=\"'Select'\">\n <nz-select nzShowSearch [nzServerSearch]=\"formItem.selectOption.hdServerSearch || false\" [nzDropdownMatchSelectWidth]=\"formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false\" nzAllowClear [nzDisabled]=\"formItem.disabled\" [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\"\n (nzOnSearch)=\"triggerEvent(formItem.onSearchEvent || null, $event)\">\n <nz-option *ngFor=\"let selectItem of formItem.selectOption.selectList\" [nzValue]=\"selectItem[formItem.selectOption.value]\"\n [nzLabel]=\"formItem.selectOption.showLabelAndValue ? '['+ selectItem[formItem.selectOption.value] +']' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]\"></nz-option>\n <nz-option *ngIf=\"formItem.defaultLabel\" [nzLabel]=\"formItem.defaultLabel\"\n [nzValue]=\"formItem.value\" nzHide></nz-option>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase=\"'Date'\">\n <nz-date-picker [nzDisabled]=\"formItem.disabled\" [nzDisabledDate]=\"formItem.hdDisabledDate\" [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\">\n </nz-date-picker>\n </ng-container>\n <ng-container *ngSwitchCase=\"'DateRange'\">\n <nz-range-picker [nzDisabled]=\"formItem.disabled\" [nzPlaceHolder]=\"['\u5F00\u59CB\u65E5\u671F','\u7ED3\u675F\u65E5\u671F']\"\n [formControlName]=\"formItem.name\">\n </nz-range-picker>\n </ng-container>\n <ng-container *ngSwitchCase=\"'TextArea'\">\n <textarea [ngStyle]=\"{'color': formItem?.color ? formItem.color : null}\" [placeholder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u8F93\u5165' + formItem.label\" [disabled]=\"formItem.disabled\" rows=\"1\" nz-input [maxlength]=\"formItem.maxLength || null\" [formControlName]=\"formItem.name\"></textarea>\n </ng-container>\n <ng-container *ngSwitchCase=\"'InputNumber'\">\n <nz-input-number [ngStyle]=\"{'color': formItem?.color ? formItem.color : null}\" [nzDisabled]=\"formItem.disabled\" [formControlName]=\"formItem.name\" [nzMin]=\"formItem?.inputNumber?.min || 0\"\n [nzMax]=\"formItem?.inputNumber?.max || 99999999\" [nzStep]=\"formItem?.inputNumber?.step || 1\"\n [nzPlaceHolder]=\"'\u8BF7\u8F93\u5165' + formItem.label\"></nz-input-number>\n </ng-container>\n <!-- \u591A\u9879\u9009\u62E9\u5668 -->\n <ng-container *ngSwitchCase=\"'MultipleSelect'\">\n <nz-select [nzDisabled]=\"formItem.disabled\" [nzServerSearch]=\"formItem.selectOption.hdServerSearch || false\" [nzDropdownMatchSelectWidth]=\"formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false\" nzMode=\"multiple\" nzShowSearch nzAllowClear [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\"\n (nzOnSearch)=\"triggerEvent(formItem.onSearchEvent || null, $event)\">\n <nz-option *ngFor=\"let selectItem of formItem.selectOption.selectList\" [nzValue]=\"selectItem[formItem.selectOption.value]\"\n [nzLabel]=\"formItem.selectOption.showLabelAndValue ? '['+ selectItem[formItem.selectOption.value] +']' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]\"></nz-option>\n <ng-container *ngIf=\"formItem.defaultLabel\">\n <nz-option *ngFor=\"let option of formItem.defaultLabel;index as i\" [nzLabel]=\"option\"\n [nzValue]=\"formItem.value[i]\" nzHide></nz-option>\n </ng-container>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase=\"'ViewDom'\">\n <span>{{formItem.value}}</span>\n </ng-container>\n <ng-container *ngSwitchCase=\"'Switch'\">\n <nz-switch [nzDisabled]=\"formItem.disabled\" [formControlName]=\"formItem.name\"></nz-switch>\n </ng-container>\n </ng-container>\n </nz-form-control>\n </nz-form-item>\n </div>\n <!-- \u5FAA\u73AF\u6700\u591A\u56DB\u6B21 -->\n <ng-container *ngFor=\"let columnItem of formItem.columnItems;index as columnItemIndex\">\n <div nz-col *ngIf=\"!columnItem.hide\" [nzSpan]=\"columnItem.width? columnItem.width * 6 : 6\">\n <nz-form-item nzFlex>\n <nz-form-label class=\"hd-formItem-label\" [nzNoColon]=\"true\" [nzRequired]=\"columnItem.require\">\n {{columnItem.label}}\n </nz-form-label>\n <nz-form-control class=\"hd-formItem-control\" [nzErrorTip]=\"columnItem.label + '\u4E0D\u80FD\u4E3A\u7A7A'\">\n <ng-container [ngSwitch]=\"columnItem.type\">\n <ng-container *ngSwitchCase=\"'Input'\">\n <nz-input-group [nzSuffix]=\"inputCleanTemplate\">\n <input *ngIf=\"columnItem.disabled === true;else inputTemplate\" nz-input [ngStyle]=\"{'color': columnItem?.color ? columnItem.color : null}\" [disabled]=\"true\" [attr.disabled]=\"true\" [maxlength]=\"columnItem.maxLength || null\" [placeholder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u8F93\u5165' + columnItem.label\" [formControlName]=\"columnItem.name\"/>\n <ng-template #inputTemplate>\n <input nz-input [ngStyle]=\"{'color': columnItem?.color ? formItem.color : null}\" [maxlength]=\"columnItem.maxLength || null\" [placeholder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u8F93\u5165' + columnItem.label\" [formControlName]=\"columnItem.name\"/>\n </ng-template>\n </nz-input-group>\n <ng-template #inputCleanTemplate><i nz-icon nz-tooltip class=\"ant-input-clear-icon\" nzTheme=\"fill\"\n nzType=\"close-circle\" *ngIf=\"validateHdForm.get(columnItem.name).value && !columnItem.disabled\"\n (click)=\"inputClean(columnItem)\"></i></ng-template>\n </ng-container>\n <ng-container *ngSwitchCase=\"'Select'\">\n <nz-select [nzDisabled]=\"columnItem.disabled\" [nzServerSearch]=\"columnItem.selectOption.hdServerSearch || false\" [nzDropdownMatchSelectWidth]=\"columnItem.selectOption.hdDropdownMatchSelectWidth ? columnItem.selectOption.hdDropdownMatchSelectWidth : false\" nzShowSearch nzAllowClear [nzPlaceHolder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u9009\u62E9' + columnItem.label\"\n [formControlName]=\"columnItem.name\"\n (nzOnSearch)=\"triggerEvent(columnItem.onSearchEvent || null, $event)\">\n <nz-option *ngFor=\"let selectItem of columnItem.selectOption.selectList\"\n [nzValue]=\"selectItem[columnItem.selectOption.value]\" [nzLabel]=\"columnItem.selectOption.showLabelAndValue ? '['+ selectItem[columnItem.selectOption.value] +']' +\n selectItem[columnItem.selectOption.label] : selectItem[columnItem.selectOption.label]\"></nz-option>\n <nz-option *ngIf=\"columnItem.defaultLabel\" [nzLabel]=\"columnItem.defaultLabel\"\n [nzValue]=\"columnItem.value\" nzHide></nz-option>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase=\"'Date'\">\n <nz-date-picker [nzDisabled]=\"columnItem.disabled\" [nzDisabledDate]=\"formItem.hdDisabledDate\" [nzPlaceHolder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u9009\u62E9' + columnItem.label\"\n [formControlName]=\"columnItem.name\">\n </nz-date-picker>\n </ng-container>\n <ng-container *ngSwitchCase=\"'DateRange'\">\n <nz-range-picker [nzDisabled]=\"columnItem.disabled\" [nzPlaceHolder]=\"['\u5F00\u59CB\u65E5\u671F','\u7ED3\u675F\u65E5\u671F']\"\n [formControlName]=\"columnItem.name\">\n </nz-range-picker>\n </ng-container>\n <ng-container *ngSwitchCase=\"'TextArea'\">\n <textarea [ngStyle]=\"{'color': columnItem?.color ? columnItem.color : null}\" [disabled]=\"columnItem.disabled\" rows=\"1\" nz-input [maxlength]=\"columnItem.maxLength || null\" [formControlName]=\"columnItem.name\"></textarea>\n </ng-container>\n <ng-container *ngSwitchCase=\"'InputNumber'\">\n <nz-input-number [ngStyle]=\"{'color': columnItem?.color ? columnItem.color : null}\" [nzDisabled]=\"columnItem.disabled\" [formControlName]=\"columnItem.name\" [nzMin]=\"columnItem?.inputNumber?.min || 0\"\n [nzMax]=\"columnItem?.inputNumber?.max || 99999999\" [nzStep]=\"columnItem?.inputNumber?.step || 1\"\n [nzPlaceHolder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u8F93\u5165' + columnItem.label\"></nz-input-number>\n </ng-container>\n <!-- \u591A\u9879\u9009\u62E9\u5668 -->\n <ng-container *ngSwitchCase=\"'MultipleSelect'\">\n <nz-select [nzDisabled]=\"columnItem.disabled\" [nzServerSearch]=\"columnItem.selectOption.hdServerSearch || false\" [nzDropdownMatchSelectWidth]=\"columnItem.selectOption.hdDropdownMatchSelectWidth ? columnItem.selectOption.hdDropdownMatchSelectWidth : false\" nzMode=\"multiple\" nzShowSearch nzAllowClear [nzPlaceHolder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u9009\u62E9' + columnItem.label\"\n [formControlName]=\"columnItem.name\"\n (nzOnSearch)=\"triggerEvent(columnItem.onSearchEvent || null, $event)\">\n <nz-option *ngFor=\"let selectItem of columnItem.selectOption.selectList\"\n [nzValue]=\"selectItem[columnItem.selectOption.value]\" [nzLabel]=\"columnItem.selectOption.showLabelAndValue ? '['+ selectItem[columnItem.selectOption.value] +']' +\n selectItem[columnItem.selectOption.label] : selectItem[columnItem.selectOption.label]\"></nz-option>\n <ng-container *ngIf=\"columnItem.defaultLabel\">\n <nz-option *ngFor=\"let option of columnItem.defaultLabel;index as i\" [nzLabel]=\"option\"\n [nzValue]=\"columnItem.value[i]\" nzHide></nz-option>\n </ng-container>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase=\"'ViewDom'\">\n <span>{{columnItem.value}}</span>\n </ng-container>\n <ng-container *ngSwitchCase=\"'Switch'\">\n <nz-switch [nzDisabled]=\"columnItem.disabled\" [formControlName]=\"columnItem.name\"></nz-switch>\n </ng-container>\n </ng-container>\n </nz-form-control>\n </nz-form-item>\n </div>\n </ng-container>\n </div>\n </ng-container>\n </div>\n</form>\n",
|
|
1478
|
+
template: "<form nz-form [formGroup]=\"validateHdForm\" class=\"ant-advanced-search-form hd-formItem-container\">\n <!-- \u6574\u4F53\u7ED3\u6784 -->\n <div nz-row [nzGutter]=\"24\">\n <!-- \u5BF9\u7EC4\u4EF6\u5217\u8868\u5FAA\u73AF\u5904\u7406 -->\n <ng-container *ngFor=\"let formItem of formList;index as i\">\n <div nz-row *ngIf=\"formItem.isRowFirst && formItem.isRowFirst === 1\">\n <div nz-col *ngIf=\"!formItem.hide\" [nzSpan]=\"formItem.width? formItem.width * 6 : 6\">\n <nz-form-item nzFlex>\n <nz-form-label class=\"hd-formItem-label\" [nzNoColon]=\"true\" [nzRequired]=\"formItem.require\">\n {{formItem.label}}\n </nz-form-label>\n <nz-form-control class=\"hd-formItem-control\" [nzErrorTip]=\"formItem.label + '\u4E0D\u80FD\u4E3A\u7A7A'\">\n <ng-container [ngSwitch]=\"formItem.type\">\n <ng-container *ngSwitchCase=\"0\">\n <nz-input-group [nzSuffix]=\"inputCleanTemplate\">\n <input *ngIf=\"formItem.disabled === true;else inputTemplate\" nz-input [ngStyle]=\"{'color': formItem?.color ? formItem.color : null}\" [disabled]=\"true\" [attr.disabled]=\"true\" [maxlength]=\"formItem.maxLength || null\" [placeholder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u8F93\u5165' + formItem.label\" [formControlName]=\"formItem.name\"/>\n <ng-template #inputTemplate>\n <input nz-input [ngStyle]=\"{'color': formItem?.color ? formItem.color : null}\" [maxlength]=\"formItem.maxLength || null\" [placeholder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u8F93\u5165' + formItem.label\" [formControlName]=\"formItem.name\"/>\n </ng-template>\n </nz-input-group>\n <ng-template #inputCleanTemplate><i nz-icon nz-tooltip class=\"ant-input-clear-icon\" nzTheme=\"fill\"\n nzType=\"close-circle\" *ngIf=\"validateHdForm.get(formItem.name).value && !formItem.disabled\"\n (click)=\"inputClean(formItem)\"></i></ng-template>\n </ng-container>\n <ng-container *ngSwitchCase=\"1\">\n <nz-select nzShowSearch [nzServerSearch]=\"formItem.selectOption.hdServerSearch || false\" [nzDropdownMatchSelectWidth]=\"formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false\" nzAllowClear [nzDisabled]=\"formItem.disabled\" [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\"\n (nzOnSearch)=\"triggerEvent(formItem.onSearchEvent || null, $event)\">\n <nz-option *ngFor=\"let selectItem of formItem.selectOption.selectList\" [nzValue]=\"selectItem[formItem.selectOption.value]\"\n [nzLabel]=\"formItem.selectOption.showLabelAndValue ? '['+ selectItem[formItem.selectOption.value] +']' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]\"></nz-option>\n <nz-option *ngIf=\"formItem.defaultLabel\" [nzLabel]=\"formItem.defaultLabel\"\n [nzValue]=\"formItem.value\" nzHide></nz-option>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase=\"2\">\n <nz-date-picker [nzDisabled]=\"formItem.disabled\" [nzDisabledDate]=\"formItem.hdDisabledDate\" [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\">\n </nz-date-picker>\n </ng-container>\n <ng-container *ngSwitchCase=\"3\">\n <nz-range-picker [nzDisabled]=\"formItem.disabled\" [nzPlaceHolder]=\"['\u5F00\u59CB\u65E5\u671F','\u7ED3\u675F\u65E5\u671F']\"\n [formControlName]=\"formItem.name\">\n </nz-range-picker>\n </ng-container>\n <ng-container *ngSwitchCase=\"4\">\n <textarea [ngStyle]=\"{'color': formItem?.color ? formItem.color : null}\" [placeholder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u8F93\u5165' + formItem.label\" [disabled]=\"formItem.disabled\" rows=\"1\" nz-input [maxlength]=\"formItem.maxLength || null\" [formControlName]=\"formItem.name\"></textarea>\n </ng-container>\n <ng-container *ngSwitchCase=\"5\">\n <nz-input-number [ngStyle]=\"{'color': formItem?.color ? formItem.color : null}\" [nzDisabled]=\"formItem.disabled\" [formControlName]=\"formItem.name\" [nzMin]=\"formItem?.inputNumber?.min || 0\"\n [nzMax]=\"formItem?.inputNumber?.max || 99999999\" [nzStep]=\"formItem?.inputNumber?.step || 1\"\n [nzPlaceHolder]=\"'\u8BF7\u8F93\u5165' + formItem.label\"></nz-input-number>\n </ng-container>\n <!-- \u591A\u9879\u9009\u62E9\u5668 -->\n <ng-container *ngSwitchCase=\"6\">\n <nz-select [nzDisabled]=\"formItem.disabled\" [nzServerSearch]=\"formItem.selectOption.hdServerSearch || false\" [nzDropdownMatchSelectWidth]=\"formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false\" nzMode=\"multiple\" nzShowSearch nzAllowClear [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\"\n (nzOnSearch)=\"triggerEvent(formItem.onSearchEvent || null, $event)\">\n <nz-option *ngFor=\"let selectItem of formItem.selectOption.selectList\" [nzValue]=\"selectItem[formItem.selectOption.value]\"\n [nzLabel]=\"formItem.selectOption.showLabelAndValue ? '['+ selectItem[formItem.selectOption.value] +']' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]\"></nz-option>\n <ng-container *ngIf=\"formItem.defaultLabel\">\n <nz-option *ngFor=\"let option of formItem.defaultLabel;index as i\" [nzLabel]=\"option\"\n [nzValue]=\"formItem.value[i]\" nzHide></nz-option>\n </ng-container>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase=\"7\">\n <span>{{formItem.value}}</span>\n </ng-container>\n <ng-container *ngSwitchCase=\"8\">\n <nz-switch [nzDisabled]=\"formItem.disabled\" [formControlName]=\"formItem.name\"></nz-switch>\n </ng-container>\n </ng-container>\n </nz-form-control>\n </nz-form-item>\n </div>\n <!-- \u5FAA\u73AF\u6700\u591A\u56DB\u6B21 -->\n <ng-container *ngFor=\"let columnItem of formItem.columnItems;index as columnItemIndex\">\n <div nz-col *ngIf=\"!columnItem.hide\" [nzSpan]=\"columnItem.width? columnItem.width * 6 : 6\">\n <nz-form-item nzFlex>\n <nz-form-label class=\"hd-formItem-label\" [nzNoColon]=\"true\" [nzRequired]=\"columnItem.require\">\n {{columnItem.label}}\n </nz-form-label>\n <nz-form-control class=\"hd-formItem-control\" [nzErrorTip]=\"columnItem.label + '\u4E0D\u80FD\u4E3A\u7A7A'\">\n <ng-container [ngSwitch]=\"columnItem.type\">\n <ng-container *ngSwitchCase=\"0\">\n <nz-input-group [nzSuffix]=\"inputCleanTemplate\">\n <input *ngIf=\"columnItem.disabled === true;else inputTemplate\" nz-input [ngStyle]=\"{'color': columnItem?.color ? columnItem.color : null}\" [disabled]=\"true\" [attr.disabled]=\"true\" [maxlength]=\"columnItem.maxLength || null\" [placeholder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u8F93\u5165' + columnItem.label\" [formControlName]=\"columnItem.name\"/>\n <ng-template #inputTemplate>\n <input nz-input [ngStyle]=\"{'color': columnItem?.color ? formItem.color : null}\" [maxlength]=\"columnItem.maxLength || null\" [placeholder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u8F93\u5165' + columnItem.label\" [formControlName]=\"columnItem.name\"/>\n </ng-template>\n </nz-input-group>\n <ng-template #inputCleanTemplate><i nz-icon nz-tooltip class=\"ant-input-clear-icon\" nzTheme=\"fill\"\n nzType=\"close-circle\" *ngIf=\"validateHdForm.get(columnItem.name).value && !columnItem.disabled\"\n (click)=\"inputClean(columnItem)\"></i></ng-template>\n </ng-container>\n <ng-container *ngSwitchCase=\"1\">\n <nz-select [nzDisabled]=\"columnItem.disabled\" [nzServerSearch]=\"columnItem.selectOption.hdServerSearch || false\" [nzDropdownMatchSelectWidth]=\"columnItem.selectOption.hdDropdownMatchSelectWidth ? columnItem.selectOption.hdDropdownMatchSelectWidth : false\" nzShowSearch nzAllowClear [nzPlaceHolder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u9009\u62E9' + columnItem.label\"\n [formControlName]=\"columnItem.name\"\n (nzOnSearch)=\"triggerEvent(columnItem.onSearchEvent || null, $event)\">\n <nz-option *ngFor=\"let selectItem of columnItem.selectOption.selectList\"\n [nzValue]=\"selectItem[columnItem.selectOption.value]\" [nzLabel]=\"columnItem.selectOption.showLabelAndValue ? '['+ selectItem[columnItem.selectOption.value] +']' +\n selectItem[columnItem.selectOption.label] : selectItem[columnItem.selectOption.label]\"></nz-option>\n <nz-option *ngIf=\"columnItem.defaultLabel\" [nzLabel]=\"columnItem.defaultLabel\"\n [nzValue]=\"columnItem.value\" nzHide></nz-option>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase=\"2\">\n <nz-date-picker [nzDisabled]=\"columnItem.disabled\" [nzDisabledDate]=\"formItem.hdDisabledDate\" [nzPlaceHolder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u9009\u62E9' + columnItem.label\"\n [formControlName]=\"columnItem.name\">\n </nz-date-picker>\n </ng-container>\n <ng-container *ngSwitchCase=\"3\">\n <nz-range-picker [nzDisabled]=\"columnItem.disabled\" [nzPlaceHolder]=\"['\u5F00\u59CB\u65E5\u671F','\u7ED3\u675F\u65E5\u671F']\"\n [formControlName]=\"columnItem.name\">\n </nz-range-picker>\n </ng-container>\n <ng-container *ngSwitchCase=\"4\">\n <textarea [ngStyle]=\"{'color': columnItem?.color ? columnItem.color : null}\" [disabled]=\"columnItem.disabled\" rows=\"1\" nz-input [maxlength]=\"columnItem.maxLength || null\" [formControlName]=\"columnItem.name\"></textarea>\n </ng-container>\n <ng-container *ngSwitchCase=\"5\">\n <nz-input-number [ngStyle]=\"{'color': columnItem?.color ? columnItem.color : null}\" [nzDisabled]=\"columnItem.disabled\" [formControlName]=\"columnItem.name\" [nzMin]=\"columnItem?.inputNumber?.min || 0\"\n [nzMax]=\"columnItem?.inputNumber?.max || 99999999\" [nzStep]=\"columnItem?.inputNumber?.step || 1\"\n [nzPlaceHolder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u8F93\u5165' + columnItem.label\"></nz-input-number>\n </ng-container>\n <!-- \u591A\u9879\u9009\u62E9\u5668 -->\n <ng-container *ngSwitchCase=\"6\">\n <nz-select [nzDisabled]=\"columnItem.disabled\" [nzServerSearch]=\"columnItem.selectOption.hdServerSearch || false\" [nzDropdownMatchSelectWidth]=\"columnItem.selectOption.hdDropdownMatchSelectWidth ? columnItem.selectOption.hdDropdownMatchSelectWidth : false\" nzMode=\"multiple\" nzShowSearch nzAllowClear [nzPlaceHolder]=\"columnItem.placeholder ? columnItem.placeholder : '\u8BF7\u9009\u62E9' + columnItem.label\"\n [formControlName]=\"columnItem.name\"\n (nzOnSearch)=\"triggerEvent(columnItem.onSearchEvent || null, $event)\">\n <nz-option *ngFor=\"let selectItem of columnItem.selectOption.selectList\"\n [nzValue]=\"selectItem[columnItem.selectOption.value]\" [nzLabel]=\"columnItem.selectOption.showLabelAndValue ? '['+ selectItem[columnItem.selectOption.value] +']' +\n selectItem[columnItem.selectOption.label] : selectItem[columnItem.selectOption.label]\"></nz-option>\n <ng-container *ngIf=\"columnItem.defaultLabel\">\n <nz-option *ngFor=\"let option of columnItem.defaultLabel;index as i\" [nzLabel]=\"option\"\n [nzValue]=\"columnItem.value[i]\" nzHide></nz-option>\n </ng-container>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase=\"7\">\n <span>{{columnItem.value}}</span>\n </ng-container>\n <ng-container *ngSwitchCase=\"8\">\n <nz-switch [nzDisabled]=\"columnItem.disabled\" [formControlName]=\"columnItem.name\"></nz-switch>\n </ng-container>\n </ng-container>\n </nz-form-control>\n </nz-form-item>\n </div>\n </ng-container>\n </div>\n </ng-container>\n </div>\n</form>\n",
|
|
1479
1479
|
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-formItem-container .hd-formItem-label{width:108px;word-break:break-all;text-align:right}.hd-formItem-container .hd-formItem-control{width:calc(100% - 108px)}.hd-formItem-container .ant-input-number{width:100%}"]
|
|
1480
1480
|
}] }
|
|
1481
1481
|
];
|
|
@@ -1981,7 +1981,7 @@
|
|
|
1981
1981
|
HdFormLinesComponent.decorators = [
|
|
1982
1982
|
{ type: core.Component, args: [{
|
|
1983
1983
|
selector: 'hd-form-lines',
|
|
1984
|
-
template: "<form *ngIf=\"showForm\" nz-form [formGroup]=\"validateHdFormLines\" class=\"ant-advanced-search-form hd-formLines-container\">\n <nz-table nzTemplateMode [nzFrontPagination]=\"false\" [nzLoading]=\"tableLoading\" [nzScroll]=\"scroll\">\n <thead>\n <tr>\n <th nzWidth=\"58px\" nzLeft=\"0px\">\u5E8F\u53F7</th>\n <ng-container *ngFor=\"let item of formLines\">\n <th *ngIf=\"!item.hide\" [nzAlign]=\"item.align ? item.align : 'left'\">\n <span *ngIf=\"item.require\" style=\"color: red;\">*</span>{{item.label}}\n </th>\n </ng-container>\n <th style=\"width: 80px\" nzRight=\"0\">\u64CD\u4F5C</th>\n </tr>\n </thead>\n <tbody>\n <ng-container\n *ngFor=\"let line of linesFormArray.controls.slice((paginationPageIndex - 1) * paginationPageSize, (paginationPageIndex - 1) * paginationPageSize + paginationPageSize);index as dataIndex\"\n formArrayName=\"lines\">\n <tr [formGroup]=\"line\">\n <td nzWidth=\"58px\" nzLeft=\"0px\">\n {{line.get('lineIndex').value}}\n </td>\n <ng-container *ngFor=\"let formItem of formLines\">\n <td *ngIf=\"!formItem.hide\" [nzAlign]=\"formItem.align ? formItem.align : 'left'\">\n <nz-form-item>\n <nz-form-control [nzErrorTip]=\"formItem.label + '\u4E0D\u80FD\u4E3A\u7A7A'\">\n <ng-container [ngSwitch]=\"formItem.type\">\n <ng-container *ngSwitchCase=\"'Input'\">\n <nz-input-group [nzSuffix]=\"inputCleanTemplate\">\n <input style=\"min-width: 100px\" nz-input [id]=\"'input-' + dataIndex\" (click)=\"formItem.isSelect ? selectValue('#input-' + dataIndex) : null\" [ngStyle]=\"{'color': formItem?.colorOption?.name ? line.get(formItem.colorOption.name ).value : null}\" [maxlength]=\"formItem.maxLength || null\" [placeholder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u8F93\u5165' + formItem.label\" [formControlName]=\"formItem.name\"/>\n </nz-input-group>\n <ng-template #inputCleanTemplate>\n <i nz-icon nz-tooltip class=\"ant-input-clear-icon\" nzTheme=\"fill\" nzType=\"close-circle\"\n *ngIf=\"line.get(formItem.name).value\" (click)=\"inputClean(formItem ,line)\"></i></ng-template>\n </ng-container>\n <ng-container *ngSwitchCase=\"'Select'\">\n <nz-select nzShowSearch [nzServerSearch]=\"formItem.selectOption.hdServerSearch || false\" [nzDropdownMatchSelectWidth]=\"formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false\" nzAllowClear [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\"\n (nzOnSearch)=\"triggerEvent(formItem.onSearchEvent || null, $event, line)\" style=\"min-width: 250px;\">\n <nz-option *ngFor=\"let selectItem of (formItem.selectOption.selectList || line.get(formItem.selectOption.selectListName).value)\" [nzValue]=\"selectItem[formItem.selectOption.value]\"\n [nzLabel]=\"formItem.selectOption.showLabelAndValue ? '['+ selectItem[formItem.selectOption.value] +']' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]\"></nz-option>\n <nz-option *ngIf=\"formItem.selectOption.label && line.get(formItem.name) && line.get(formItem.selectOption.label)?.value && line.get(formItem.selectOption.value)?.value\"\n [nzLabel]=\"(formItem.selectOption.value === 'code' || formItem.selectOption.value === 'productCode' || formItem.selectOption.hdShowItemCode) ? ('['+ line.get(formItem.selectOption.value).value + ']' + line.get(formItem.selectOption.label).value) : line.get(formItem.selectOption.label).value\"\n [nzValue]=\"line.get(formItem.selectOption.value).value\" nzHide></nz-option>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase=\"'Date'\">\n <nz-date-picker [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\" [nzDisabledDate]=\"formItem.hdDisabledDate\">\n </nz-date-picker>\n </ng-container>\n <ng-container *ngSwitchCase=\"'DateRange'\">\n <nz-range-picker [nzPlaceHolder]=\"['\u5F00\u59CB\u65E5\u671F','\u7ED3\u675F\u65E5\u671F']\"\n [formControlName]=\"formItem.name\">\n </nz-range-picker>\n </ng-container>\n <ng-container *ngSwitchCase=\"'TextArea'\">\n <textarea [ngStyle]=\"{'color': formItem?.colorOption?.name ? line.get(formItem.colorOption.name ).value : null}\" [placeholder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u8F93\u5165' + formItem.label\" [maxlength]=\"formItem.maxLength || null\" rows=\"4\" nz-input [maxlength]=\"formItem.maxLength || null\" [formControlName]=\"formItem.name\"></textarea>\n </ng-container>\n <ng-container *ngSwitchCase=\"'InputNumber'\">\n <div style=\"display: flex;align-items: center;\">\n <nz-input-number [ngStyle]=\"{'width': '100px', 'color': formItem?.colorOption?.name ? line.get(formItem.colorOption.name ).value : null}\" [maxlength]=\"formItem.maxLength || null\" [formControlName]=\"formItem.name\" [nzMin]=\"formItem?.inputNumber?.min || 0\"\n [nzMax]=\"formItem?.inputNumber?.max || 99999999\" [nzStep]=\"formItem?.inputNumber?.step || 1\"\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u8F93\u5165' + formItem.label\"\n [nzId]=\"'inputNumber-' + dataIndex\"\n (click)=\"formItem.isSelect ? selectValue('#inputNumber-' + dataIndex) : null\"></nz-input-number>\n <div *ngIf=\"formItem?.explainOptionRight?.show\" [style.color]=\"formItem?.explainOptionRight?.color ? formItem.explainOptionRight.color : null\"> {{line.get(formItem.explainOptionRight.name).value}}</div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'MultipleSelect'\">\n <nz-select nzMode=\"multiple\" [nzServerSearch]=\"formItem.selectOption.hdServerSearch || false\" [nzDropdownMatchSelectWidth]=\"formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false\" nzShowSearch nzAllowClear [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\" style=\"min-width: 250px;\"\n (nzOnSearch)=\"triggerEvent(formItem.onSearchEvent || null, $event, line)\">\n <nz-option *ngFor=\"let selectItem of formItem.selectOption.selectList\" [nzValue]=\"selectItem[formItem.selectOption.value]\"\n [nzLabel]=\"formItem.selectOption.showLabelAndValue ? '['+ selectItem[formItem.selectOption.value] +']' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]\"></nz-option>\n <ng-container *ngIf=\"formItem.selectOption.label && line.get(formItem.name) && line.get(formItem.selectOption.label)?.value && line.get(formItem.selectOption.value)?.value\">\n <nz-option *ngFor=\"let option of line.get(formItem.selectOption.value).value;index as i\" [nzLabel]=\"line.get(formItem.selectOption.label).value[i]\"\n [nzValue]=\"option\" nzHide></nz-option>\n </ng-container>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase=\"'ViewDom'\">\n {{formItem.preserveNumber ? LodashRound(line.get(formItem.name).value,formItem.preserveNumber).toFixed(formItem.preserveNumber) : line.get(formItem.name).value}}\n </ng-container>\n </ng-container>\n </nz-form-control>\n </nz-form-item>\n <div *ngIf=\"formItem?.explainOption?.show\" [style.color]=\"formItem?.explainOption?.color ? formItem.explainOption.color : null\">{{line.get(formItem.explainOption.name).value}}</div>\n </td>\n </ng-container>\n <td style=\"width: 80px\" nzRight=\"0\">\n <span class=\"common-btn-group\">\n <a *ngIf=\"operateButtons.includes('add')\" (click)=\"addFormLine(line.get('lineIndex').value)\">\u6DFB\u52A0</a>\n <a class=\"common-danger-btn\" *ngIf=\"operateButtons.includes('delete') && !showDeleteConfirm\" (click)=\"deleteFormLine(line.get('lineIndex').value)\">\u5220\u9664</a>\n <a class=\"common-danger-btn\" *ngIf=\"operateButtons.includes('delete') && showDeleteConfirm\" nz-popconfirm nzPopconfirmTitle=\"\u786E\u8BA4\u8981\u5220\u9664\u8BE5\u884C\u5417?\"\n nzPopconfirmPlacement=\"bottom\" (nzOnConfirm)=\"deleteFormLine(line.get('lineIndex').value)\">\u5220\u9664</a>\n </span>\n </td>\n </tr>\n </ng-container>\n <!-- \u5408\u8BA1\u533A\u57DF -->\n <tr *ngIf=\"showTotal\" class=\"hd-table-total\">\n <td>\u5408\u8BA1</td>\n <ng-container *ngFor=\"let totalOption of totalOptionList\">\n <td [nzAlign]=\"totalOption.align ? totalOption.align : 'left'\">{{ (totalOption.value || totalOption.value === 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal ) ? totalOption.value : LodashRound(totalOption.value,2).toFixed(2)) : '' }} </td>\n </ng-container>\n </tr>\n </tbody>\n </nz-table>\n <ng-container *ngIf=\"linesFormArray.controls.length > 10\">\n <hd-space background=\"transparent\" type=\"row\" size=\"16\"></hd-space>\n <nz-pagination [nzSize]=\"'small'\" style=\"text-align: right;\" [nzPageIndex]=\"paginationPageIndex\"\n [nzPageSize]=\"paginationPageSize\" [nzTotal]=\"linesFormArray.controls.length\" nzShowSizeChanger\n (nzPageIndexChange)=\"pageIndexChange($event)\" (nzPageSizeChange)=\"pageSizeChange($event)\"></nz-pagination>\n </ng-container>\n</form>\n",
|
|
1984
|
+
template: "<form *ngIf=\"showForm\" nz-form [formGroup]=\"validateHdFormLines\" class=\"ant-advanced-search-form hd-formLines-container\">\n <nz-table nzTemplateMode [nzFrontPagination]=\"false\" [nzLoading]=\"tableLoading\" [nzScroll]=\"scroll\">\n <thead>\n <tr>\n <th nzWidth=\"58px\" nzLeft=\"0px\">\u5E8F\u53F7</th>\n <ng-container *ngFor=\"let item of formLines\">\n <th *ngIf=\"!item.hide\" [nzAlign]=\"item.align ? item.align : 'left'\">\n <span *ngIf=\"item.require\" style=\"color: red;\">*</span>{{item.label}}\n </th>\n </ng-container>\n <th style=\"width: 80px\" nzRight=\"0\">\u64CD\u4F5C</th>\n </tr>\n </thead>\n <tbody>\n <ng-container\n *ngFor=\"let line of linesFormArray.controls.slice((paginationPageIndex - 1) * paginationPageSize, (paginationPageIndex - 1) * paginationPageSize + paginationPageSize);index as dataIndex\"\n formArrayName=\"lines\">\n <tr [formGroup]=\"line\">\n <td nzWidth=\"58px\" nzLeft=\"0px\">\n {{line.get('lineIndex').value}}\n </td>\n <ng-container *ngFor=\"let formItem of formLines\">\n <td *ngIf=\"!formItem.hide\" [nzAlign]=\"formItem.align ? formItem.align : 'left'\">\n <nz-form-item>\n <nz-form-control [nzErrorTip]=\"formItem.label + '\u4E0D\u80FD\u4E3A\u7A7A'\">\n <ng-container [ngSwitch]=\"formItem.type\">\n <ng-container *ngSwitchCase=\"0\">\n <nz-input-group [nzSuffix]=\"inputCleanTemplate\">\n <input style=\"min-width: 100px\" nz-input [id]=\"'input-' + dataIndex\" (click)=\"formItem.isSelect ? selectValue('#input-' + dataIndex) : null\" [ngStyle]=\"{'color': formItem?.colorOption?.name ? line.get(formItem.colorOption.name ).value : null}\" [maxlength]=\"formItem.maxLength || null\" [placeholder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u8F93\u5165' + formItem.label\" [formControlName]=\"formItem.name\"/>\n </nz-input-group>\n <ng-template #inputCleanTemplate>\n <i nz-icon nz-tooltip class=\"ant-input-clear-icon\" nzTheme=\"fill\" nzType=\"close-circle\"\n *ngIf=\"line.get(formItem.name).value\" (click)=\"inputClean(formItem ,line)\"></i></ng-template>\n </ng-container>\n <ng-container *ngSwitchCase=\"1\">\n <nz-select nzShowSearch [nzServerSearch]=\"formItem.selectOption.hdServerSearch || false\" [nzDropdownMatchSelectWidth]=\"formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false\" nzAllowClear [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\"\n (nzOnSearch)=\"triggerEvent(formItem.onSearchEvent || null, $event, line)\" style=\"min-width: 250px;\">\n <nz-option *ngFor=\"let selectItem of (formItem.selectOption.selectList || line.get(formItem.selectOption.selectListName).value)\" [nzValue]=\"selectItem[formItem.selectOption.value]\"\n [nzLabel]=\"formItem.selectOption.showLabelAndValue ? '['+ selectItem[formItem.selectOption.value] +']' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]\"></nz-option>\n <nz-option *ngIf=\"formItem.selectOption.label && line.get(formItem.name) && line.get(formItem.selectOption.label)?.value && line.get(formItem.selectOption.value)?.value\"\n [nzLabel]=\"(formItem.selectOption.value === 'code' || formItem.selectOption.value === 'productCode' || formItem.selectOption.hdShowItemCode) ? ('['+ line.get(formItem.selectOption.value).value + ']' + line.get(formItem.selectOption.label).value) : line.get(formItem.selectOption.label).value\"\n [nzValue]=\"line.get(formItem.selectOption.value).value\" nzHide></nz-option>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase=\"2\">\n <nz-date-picker [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\" [nzDisabledDate]=\"formItem.hdDisabledDate\">\n </nz-date-picker>\n </ng-container>\n <ng-container *ngSwitchCase=\"3\">\n <nz-range-picker [nzPlaceHolder]=\"['\u5F00\u59CB\u65E5\u671F','\u7ED3\u675F\u65E5\u671F']\"\n [formControlName]=\"formItem.name\">\n </nz-range-picker>\n </ng-container>\n <ng-container *ngSwitchCase=\"4\">\n <textarea [ngStyle]=\"{'color': formItem?.colorOption?.name ? line.get(formItem.colorOption.name ).value : null}\" [placeholder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u8F93\u5165' + formItem.label\" [maxlength]=\"formItem.maxLength || null\" rows=\"4\" nz-input [maxlength]=\"formItem.maxLength || null\" [formControlName]=\"formItem.name\"></textarea>\n </ng-container>\n <ng-container *ngSwitchCase=\"5\">\n <div style=\"display: flex;align-items: center;\">\n <nz-input-number [ngStyle]=\"{'width': '100px', 'color': formItem?.colorOption?.name ? line.get(formItem.colorOption.name ).value : null}\" [maxlength]=\"formItem.maxLength || null\" [formControlName]=\"formItem.name\" [nzMin]=\"formItem?.inputNumber?.min || 0\"\n [nzMax]=\"formItem?.inputNumber?.max || 99999999\" [nzStep]=\"formItem?.inputNumber?.step || 1\"\n [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u8F93\u5165' + formItem.label\"\n [nzId]=\"'inputNumber-' + dataIndex\"\n (click)=\"formItem.isSelect ? selectValue('#inputNumber-' + dataIndex) : null\"></nz-input-number>\n <div *ngIf=\"formItem?.explainOptionRight?.show\" [style.color]=\"formItem?.explainOptionRight?.color ? formItem.explainOptionRight.color : null\"> {{line.get(formItem.explainOptionRight.name).value}}</div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"6\">\n <nz-select nzMode=\"multiple\" [nzServerSearch]=\"formItem.selectOption.hdServerSearch || false\" [nzDropdownMatchSelectWidth]=\"formItem.selectOption.hdDropdownMatchSelectWidth ? formItem.selectOption.hdDropdownMatchSelectWidth : false\" nzShowSearch nzAllowClear [nzPlaceHolder]=\"formItem.placeholder ? formItem.placeholder : '\u8BF7\u9009\u62E9' + formItem.label\"\n [formControlName]=\"formItem.name\" style=\"min-width: 250px;\"\n (nzOnSearch)=\"triggerEvent(formItem.onSearchEvent || null, $event, line)\">\n <nz-option *ngFor=\"let selectItem of formItem.selectOption.selectList\" [nzValue]=\"selectItem[formItem.selectOption.value]\"\n [nzLabel]=\"formItem.selectOption.showLabelAndValue ? '['+ selectItem[formItem.selectOption.value] +']' +\n selectItem[formItem.selectOption.label] : selectItem[formItem.selectOption.label]\"></nz-option>\n <ng-container *ngIf=\"formItem.selectOption.label && line.get(formItem.name) && line.get(formItem.selectOption.label)?.value && line.get(formItem.selectOption.value)?.value\">\n <nz-option *ngFor=\"let option of line.get(formItem.selectOption.value).value;index as i\" [nzLabel]=\"line.get(formItem.selectOption.label).value[i]\"\n [nzValue]=\"option\" nzHide></nz-option>\n </ng-container>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase=\"7\">\n {{formItem.preserveNumber ? LodashRound(line.get(formItem.name).value,formItem.preserveNumber).toFixed(formItem.preserveNumber) : line.get(formItem.name).value}}\n </ng-container>\n </ng-container>\n </nz-form-control>\n </nz-form-item>\n <div *ngIf=\"formItem?.explainOption?.show\" [style.color]=\"formItem?.explainOption?.color ? formItem.explainOption.color : null\">{{line.get(formItem.explainOption.name).value}}</div>\n </td>\n </ng-container>\n <td style=\"width: 80px\" nzRight=\"0\">\n <span class=\"common-btn-group\">\n <a *ngIf=\"operateButtons.includes('add')\" (click)=\"addFormLine(line.get('lineIndex').value)\">\u6DFB\u52A0</a>\n <a class=\"common-danger-btn\" *ngIf=\"operateButtons.includes('delete') && !showDeleteConfirm\" (click)=\"deleteFormLine(line.get('lineIndex').value)\">\u5220\u9664</a>\n <a class=\"common-danger-btn\" *ngIf=\"operateButtons.includes('delete') && showDeleteConfirm\" nz-popconfirm nzPopconfirmTitle=\"\u786E\u8BA4\u8981\u5220\u9664\u8BE5\u884C\u5417?\"\n nzPopconfirmPlacement=\"bottom\" (nzOnConfirm)=\"deleteFormLine(line.get('lineIndex').value)\">\u5220\u9664</a>\n </span>\n </td>\n </tr>\n </ng-container>\n <!-- \u5408\u8BA1\u533A\u57DF -->\n <tr *ngIf=\"showTotal\" class=\"hd-table-total\">\n <td>\u5408\u8BA1</td>\n <ng-container *ngFor=\"let totalOption of totalOptionList\">\n <td [nzAlign]=\"totalOption.align ? totalOption.align : 'left'\">{{ (totalOption.value || totalOption.value === 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal ) ? totalOption.value : LodashRound(totalOption.value,2).toFixed(2)) : '' }} </td>\n </ng-container>\n </tr>\n </tbody>\n </nz-table>\n <ng-container *ngIf=\"linesFormArray.controls.length > 10\">\n <hd-space background=\"transparent\" type=\"row\" size=\"16\"></hd-space>\n <nz-pagination [nzSize]=\"'small'\" style=\"text-align: right;\" [nzPageIndex]=\"paginationPageIndex\"\n [nzPageSize]=\"paginationPageSize\" [nzTotal]=\"linesFormArray.controls.length\" nzShowSizeChanger\n (nzPageIndexChange)=\"pageIndexChange($event)\" (nzPageSizeChange)=\"pageSizeChange($event)\"></nz-pagination>\n </ng-container>\n</form>\n",
|
|
1985
1985
|
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-formLines-container ::ng-deep td{padding:1.5px 8px!important}.hd-formLines-container .ant-table-tbody>tr>td,.hd-formLines-container ::ng-deep .ant-table-thead>tr>th{padding:16px 8px}.hd-formLines-container ::ng-deep .hd-table-total>td{border:0!important}.hd-formLines-container .ant-input-number{width:100%}"]
|
|
1986
1986
|
}] }
|
|
1987
1987
|
];
|
|
@@ -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;
|