@ebuilding/form 2.0.0
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/LICENSE +0 -0
- package/README.md +0 -0
- package/checkbox/index.d.ts +1 -0
- package/checkbox/src/checkbox.module.d.ts +9 -0
- package/checkbox/src/checkbox.type.d.ts +11 -0
- package/checkbox/src/public_api.d.ts +2 -0
- package/checkboxgroup/index.d.ts +1 -0
- package/checkboxgroup/src/checkboxgroup.module.d.ts +9 -0
- package/checkboxgroup/src/checkboxgroup.type.d.ts +19 -0
- package/checkboxgroup/src/public_api.d.ts +2 -0
- package/colors/index.d.ts +1 -0
- package/colors/src/default/index.d.ts +11 -0
- package/colors/src/index.module.d.ts +8 -0
- package/colors/src/public_api.d.ts +2 -0
- package/datetime/index.d.ts +1 -0
- package/datetime/src/datetime.module.d.ts +9 -0
- package/datetime/src/datetime.type.d.ts +18 -0
- package/datetime/src/public_api.d.ts +2 -0
- package/desc/index.d.ts +1 -0
- package/desc/src/desc.module.d.ts +9 -0
- package/desc/src/desc.type.d.ts +6 -0
- package/desc/src/public_api.d.ts +2 -0
- package/dim/index.d.ts +1 -0
- package/dim/src/default/index.d.ts +16 -0
- package/dim/src/dim.module.d.ts +9 -0
- package/dim/src/public_api.d.ts +2 -0
- package/dim-indicator/index.d.ts +1 -0
- package/dim-indicator/src/assess/index.d.ts +17 -0
- package/dim-indicator/src/default/index.d.ts +19 -0
- package/dim-indicator/src/finish/index.d.ts +16 -0
- package/dim-indicator/src/indicator.module.d.ts +8 -0
- package/dim-indicator/src/public_api.d.ts +2 -0
- package/fesm2022/ebuilding-form.mjs +3337 -0
- package/fesm2022/ebuilding-form.mjs.map +1 -0
- package/fesm2022/type.checkbox.mjs +93 -0
- package/fesm2022/type.checkbox.mjs.map +1 -0
- package/fesm2022/type.checkboxgroup.mjs +168 -0
- package/fesm2022/type.checkboxgroup.mjs.map +1 -0
- package/fesm2022/type.colors.mjs +74 -0
- package/fesm2022/type.colors.mjs.map +1 -0
- package/fesm2022/type.datetime.mjs +312 -0
- package/fesm2022/type.datetime.mjs.map +1 -0
- package/fesm2022/type.desc.mjs +67 -0
- package/fesm2022/type.desc.mjs.map +1 -0
- package/fesm2022/type.dim-indicator.mjs +187 -0
- package/fesm2022/type.dim-indicator.mjs.map +1 -0
- package/fesm2022/type.dim.mjs +101 -0
- package/fesm2022/type.dim.mjs.map +1 -0
- package/fesm2022/type.form-field.mjs +147 -0
- package/fesm2022/type.form-field.mjs.map +1 -0
- package/fesm2022/type.grid.mjs +126 -0
- package/fesm2022/type.grid.mjs.map +1 -0
- package/fesm2022/type.group.mjs +113 -0
- package/fesm2022/type.group.mjs.map +1 -0
- package/fesm2022/type.html.mjs +88 -0
- package/fesm2022/type.html.mjs.map +1 -0
- package/fesm2022/type.icon.mjs +143 -0
- package/fesm2022/type.icon.mjs.map +1 -0
- package/fesm2022/type.label.mjs +71 -0
- package/fesm2022/type.label.mjs.map +1 -0
- package/fesm2022/type.line.mjs +78 -0
- package/fesm2022/type.line.mjs.map +1 -0
- package/fesm2022/type.list.mjs +84 -0
- package/fesm2022/type.list.mjs.map +1 -0
- package/fesm2022/type.number.mjs +196 -0
- package/fesm2022/type.number.mjs.map +1 -0
- package/fesm2022/type.overtime.mjs +301 -0
- package/fesm2022/type.overtime.mjs.map +1 -0
- package/fesm2022/type.panel.mjs +117 -0
- package/fesm2022/type.panel.mjs.map +1 -0
- package/fesm2022/type.radio.mjs +71 -0
- package/fesm2022/type.radio.mjs.map +1 -0
- package/fesm2022/type.radiogroup.mjs +138 -0
- package/fesm2022/type.radiogroup.mjs.map +1 -0
- package/fesm2022/type.reform.mjs +91 -0
- package/fesm2022/type.reform.mjs.map +1 -0
- package/fesm2022/type.repeat-card.mjs +204 -0
- package/fesm2022/type.repeat-card.mjs.map +1 -0
- package/fesm2022/type.repeat.mjs +209 -0
- package/fesm2022/type.repeat.mjs.map +1 -0
- package/fesm2022/type.select.mjs +224 -0
- package/fesm2022/type.select.mjs.map +1 -0
- package/fesm2022/type.switch.mjs +73 -0
- package/fesm2022/type.switch.mjs.map +1 -0
- package/fesm2022/type.tabs.mjs +107 -0
- package/fesm2022/type.tabs.mjs.map +1 -0
- package/fesm2022/type.text.mjs +89 -0
- package/fesm2022/type.text.mjs.map +1 -0
- package/fesm2022/type.textarea.mjs +158 -0
- package/fesm2022/type.textarea.mjs.map +1 -0
- package/fesm2022/type.textcode.mjs +126 -0
- package/fesm2022/type.textcode.mjs.map +1 -0
- package/form-field/index.d.ts +1 -0
- package/form-field/src/form-field.module.d.ts +10 -0
- package/form-field/src/form-field.wrapper.d.ts +9 -0
- package/form-field/src/public_api.d.ts +2 -0
- package/grid/index.d.ts +1 -0
- package/grid/src/grid.module.d.ts +11 -0
- package/grid/src/grid.type.d.ts +11 -0
- package/grid/src/public_api.d.ts +2 -0
- package/group/index.d.ts +1 -0
- package/group/src/group.module.d.ts +11 -0
- package/group/src/group.type.d.ts +11 -0
- package/group/src/public_api.d.ts +2 -0
- package/html/index.d.ts +1 -0
- package/html/src/html.module.d.ts +10 -0
- package/html/src/html.type.d.ts +12 -0
- package/html/src/public_api.d.ts +2 -0
- package/icon/index.d.ts +1 -0
- package/icon/src/default/index.d.ts +14 -0
- package/icon/src/index.module.d.ts +14 -0
- package/icon/src/public_api.d.ts +2 -0
- package/index.d.ts +28 -0
- package/label/index.d.ts +1 -0
- package/label/src/label.module.d.ts +10 -0
- package/label/src/label.type.d.ts +9 -0
- package/label/src/public_api.d.ts +2 -0
- package/line/index.d.ts +1 -0
- package/line/src/line.module.d.ts +11 -0
- package/line/src/line.type.d.ts +11 -0
- package/line/src/public_api.d.ts +2 -0
- package/list/index.d.ts +1 -0
- package/list/src/list.module.d.ts +11 -0
- package/list/src/list.type.d.ts +9 -0
- package/list/src/public_api.d.ts +2 -0
- package/number/index.d.ts +1 -0
- package/number/src/number.module.d.ts +9 -0
- package/number/src/number.type.d.ts +19 -0
- package/number/src/number_rate.type.d.ts +9 -0
- package/number/src/public_api.d.ts +3 -0
- package/overtime/index.d.ts +1 -0
- package/overtime/src/default/index.d.ts +77 -0
- package/overtime/src/index.module.d.ts +13 -0
- package/overtime/src/public_api.d.ts +2 -0
- package/package.json +136 -0
- package/panel/index.d.ts +1 -0
- package/panel/src/panel.module.d.ts +11 -0
- package/panel/src/panel.type.d.ts +12 -0
- package/panel/src/public_api.d.ts +2 -0
- package/radio/index.d.ts +1 -0
- package/radio/src/public_api.d.ts +2 -0
- package/radio/src/radio.module.d.ts +8 -0
- package/radio/src/radio.type.d.ts +11 -0
- package/radiogroup/index.d.ts +1 -0
- package/radiogroup/src/public_api.d.ts +2 -0
- package/radiogroup/src/radiogroup.module.d.ts +8 -0
- package/radiogroup/src/radiogroup.type.d.ts +17 -0
- package/reform/index.d.ts +1 -0
- package/reform/src/public_api.d.ts +2 -0
- package/reform/src/reform.module.d.ts +11 -0
- package/reform/src/reform.type.d.ts +11 -0
- package/repeat/index.d.ts +1 -0
- package/repeat/src/default/index.d.ts +28 -0
- package/repeat/src/index.module.d.ts +17 -0
- package/repeat/src/public_api.d.ts +2 -0
- package/repeat-card/index.d.ts +1 -0
- package/repeat-card/src/default/index.d.ts +28 -0
- package/repeat-card/src/index.module.d.ts +18 -0
- package/repeat-card/src/public_api.d.ts +2 -0
- package/select/index.d.ts +1 -0
- package/select/src/public_api.d.ts +2 -0
- package/select/src/select.module.d.ts +9 -0
- package/select/src/select.type.d.ts +23 -0
- package/switch/index.d.ts +1 -0
- package/switch/src/default/index.d.ts +12 -0
- package/switch/src/index.module.d.ts +9 -0
- package/switch/src/public_api.d.ts +2 -0
- package/tabs/index.d.ts +1 -0
- package/tabs/src/default/index.d.ts +13 -0
- package/tabs/src/index.module.d.ts +7 -0
- package/tabs/src/public_api.d.ts +3 -0
- package/tabs/src/tab/index.d.ts +11 -0
- package/text/index.d.ts +1 -0
- package/text/src/public_api.d.ts +2 -0
- package/text/src/text.module.d.ts +8 -0
- package/text/src/text.type.d.ts +7 -0
- package/textarea/index.d.ts +1 -0
- package/textarea/src/public_api.d.ts +2 -0
- package/textarea/src/textarea.module.d.ts +7 -0
- package/textarea/src/textarea.type.d.ts +13 -0
- package/textcode/index.d.ts +1 -0
- package/textcode/src/public_api.d.ts +2 -0
- package/textcode/src/text.module.d.ts +7 -0
- package/textcode/src/text.type.d.ts +17 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.number.mjs","sources":["../../../../packages/form/number/src/number.type.ts","../../../../packages/form/number/src/number_rate.type.ts","../../../../packages/form/number/src/number.module.ts","../../../../packages/form/number/type.number.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, OnInit } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { FormlyModule, FieldType, FieldTypeConfig } from '@kre-form/core';\n\n@Component({\n selector: 'deon-nz-field-number',\n template: `\n <ng-container *ngIf=\"!password; else tmpPwd\">\n <ng-container *ngIf=\"props['unit']; else tmpNumber\">\n <nz-input-group [nzAddOnAfter]=\"props['unit']\">\n <nz-input-number\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzDisabled]=\"!editor\"\n [nzPrecision]=\"precision\"\n [nzStep]=\"0\" \n [nzParser]=\"parseNumber\"\n ></nz-input-number>\n </nz-input-group>\n </ng-container>\n <ng-template #tmpNumber>\n <nz-input-number\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzDisabled]=\"!editor\"\n [nzPrecision]=\"precision\"\n [nzStep]=\"precision == 0 ? 1 : 0.1\" \n [nzParser]=\"parseNumber\"\n ></nz-input-number>\n </ng-template>\n </ng-container>\n\n <ng-template #tmpPwd> *** </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n NzInputModule,\n NzInputNumberModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldNumber extends FieldType<FieldTypeConfig> implements OnInit {\n get precision() {\n if (this.props[\"precision\"] && this.props[\"precision\"] > 0) {\n return this.props[\"precision\"];\n }\n return 0;\n }\n\n get password() {\n return this.props?.[\"password\"] === true;\n }\n\n constructor() {\n super();\n }\n\n ngOnInit() { }\n\n /**\n * 防止 nz-input-number 的 formatter 报错(如 toFixed 报错)\n */\n formatNumber = (value: number | string | null | undefined): string => {\n const val = Number(value);\n return isNaN(val) ? '' : val.toFixed(this.precision);\n };\n\n /**\n * 解析输入值为数字,NaN 返回 0\n */\n parseNumber = (value: string): number => {\n const parsed = parseFloat(value);\n return isNaN(parsed) ? 0 : parsed;\n };\n}\n","import { Component, ChangeDetectionStrategy, OnInit } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzRateModule } from 'ng-zorro-antd/rate';\nimport { FormlyModule, FieldType, FieldTypeConfig } from '@kre-form/core';\nimport _ from 'lodash';\n@Component({\n selector: 'deon-nz-field-number',\n template: ` <nz-rate [formControl]=\"formControl\" [formlyAttributes]=\"field\" [nzDisabled]=\"!editor\" [nzAllowClear]=\"to?.required==true?false:true\"> </nz-rate> `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n ReactiveFormsModule,\n NzRateModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldNumberRate extends FieldType<FieldTypeConfig> implements OnInit {\n constructor() {\n super();\n }\n ngOnInit() { }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@kre-form/core';\n\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\nimport { DeonNzFieldNumber } from './number.type';\nimport { DeonNzFieldNumberRate } from './number_rate.type';\n\n@NgModule({\n imports: [\n CommonModule,\n DeonNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'number',\n component: DeonNzFieldNumber,\n wrappers: ['formly-form-field'],\n },\n { name: 'eval_number', extends: 'number' },\n { name: 'finish_number', extends: 'number' },\n {\n name: 'rate_number',\n component: DeonNzFieldNumberRate,\n wrappers: ['formly-form-field'],\n },\n ],\n }),\n ],\n})\nexport class DeonNzNumberModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i3"],"mappings":";;;;;;;;;;;;;;;;AAgDM,MAAO,iBAAkB,SAAQ,SAA0B,CAAA;AAC/D,IAAA,IAAI,SAAS,GAAA;AACX,QAAA,IAAI,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE;AAC1D,YAAA,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC;;AAEhC,QAAA,OAAO,CAAC;;AAGV,IAAA,IAAI,QAAQ,GAAA;QACV,OAAO,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,IAAI;;AAG1C,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;;AAGT,IAAA,QAAQ;AAER;;AAEG;AACH,IAAA,YAAY,GAAG,CAAC,KAAyC,KAAY;AACnE,QAAA,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC;AACzB,QAAA,OAAO,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC;AACtD,KAAC;AAED;;AAEG;AACH,IAAA,WAAW,GAAG,CAAC,KAAa,KAAY;AACtC,QAAA,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC;AAChC,QAAA,OAAO,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM;AACnC,KAAC;wGAhCU,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAjB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,E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E,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE;AAC1C,gCAAA,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,QAAQ,EAAE;AAC5C,gCAAA;AACE,oCAAA,IAAI,EAAE,aAAa;AACnB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,mBAAmB,CAAC;AAChC,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;;;AC7BD;;AAEG;;;;"}
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i1$1 from '@kre-form/core';
|
|
6
|
+
import { FieldType, FormlyModule } from '@kre-form/core';
|
|
7
|
+
import * as i2 from '@angular/forms';
|
|
8
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
9
|
+
import * as i3 from 'ng-zorro-antd/input';
|
|
10
|
+
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
11
|
+
import * as i4 from 'ng-zorro-antd/select';
|
|
12
|
+
import { NzSelectModule } from 'ng-zorro-antd/select';
|
|
13
|
+
import * as i5 from 'ng-zorro-antd/date-picker';
|
|
14
|
+
import { NzDatePickerModule } from 'ng-zorro-antd/date-picker';
|
|
15
|
+
import { DeonNzFormFieldModule } from '@ebuilding/form/form-field';
|
|
16
|
+
import _ from 'lodash';
|
|
17
|
+
|
|
18
|
+
class DeonNzFieldOverTime extends FieldType {
|
|
19
|
+
defaultOptions = {
|
|
20
|
+
props: {},
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* 总值
|
|
24
|
+
*/
|
|
25
|
+
_pageValue = null;
|
|
26
|
+
_itemValue = null;
|
|
27
|
+
_happenValue = null;
|
|
28
|
+
_beginValue = null;
|
|
29
|
+
_endValue = null;
|
|
30
|
+
_numValue = null;
|
|
31
|
+
_shiftValue = null;
|
|
32
|
+
_shiftPeriodValue = null;
|
|
33
|
+
_listChildValue = null;
|
|
34
|
+
/**
|
|
35
|
+
* 对比值
|
|
36
|
+
*/
|
|
37
|
+
happenValueOld = null;
|
|
38
|
+
beginValueOld = null;
|
|
39
|
+
endValueOld = null;
|
|
40
|
+
listChildValueOld = null;
|
|
41
|
+
get pageEditor() {
|
|
42
|
+
if (this.editor) {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
get pageValue() {
|
|
48
|
+
let result = null;
|
|
49
|
+
if (this?.model && this.model[this.key]) {
|
|
50
|
+
result = this.model[this.key];
|
|
51
|
+
}
|
|
52
|
+
return result;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* 加班项目
|
|
56
|
+
*/
|
|
57
|
+
get itemValue() {
|
|
58
|
+
if (this._itemValue) {
|
|
59
|
+
return this._itemValue;
|
|
60
|
+
}
|
|
61
|
+
if (this.pageValue && this.pageValue?.itemId) {
|
|
62
|
+
return this.pageValue.itemId;
|
|
63
|
+
}
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
set itemValue(value) {
|
|
67
|
+
this._itemValue = value;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* 加班日期
|
|
71
|
+
*/
|
|
72
|
+
get happenValue() {
|
|
73
|
+
if (this._happenValue) {
|
|
74
|
+
return this._happenValue;
|
|
75
|
+
}
|
|
76
|
+
if (this.pageValue && this.pageValue?.happenDate) {
|
|
77
|
+
return this.pageValue.happenDate;
|
|
78
|
+
}
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
set happenValue(value) {
|
|
82
|
+
this._happenValue = value;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* 加班开始时间
|
|
86
|
+
*/
|
|
87
|
+
get beginValue() {
|
|
88
|
+
if (this._beginValue) {
|
|
89
|
+
return this._beginValue;
|
|
90
|
+
}
|
|
91
|
+
if (this.pageValue && this.pageValue?.beginDate) {
|
|
92
|
+
return this.pageValue.beginDate;
|
|
93
|
+
}
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
set beginValue(value) {
|
|
97
|
+
this._beginValue = value;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* 加班结束时间
|
|
101
|
+
*/
|
|
102
|
+
get endValue() {
|
|
103
|
+
if (this._endValue) {
|
|
104
|
+
return this._endValue;
|
|
105
|
+
}
|
|
106
|
+
if (this.pageValue && this.pageValue?.endDate) {
|
|
107
|
+
return this.pageValue.endDate;
|
|
108
|
+
}
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
set endValue(value) {
|
|
112
|
+
this._endValue = value;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* 加班时长
|
|
116
|
+
*/
|
|
117
|
+
get numValue() {
|
|
118
|
+
if (this._numValue) {
|
|
119
|
+
return this._numValue;
|
|
120
|
+
}
|
|
121
|
+
if (this.pageValue && this.pageValue?.numValue) {
|
|
122
|
+
return this.pageValue.numValue;
|
|
123
|
+
}
|
|
124
|
+
return null;
|
|
125
|
+
}
|
|
126
|
+
set numValue(value) {
|
|
127
|
+
this._numValue = value;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* 班次
|
|
131
|
+
*/
|
|
132
|
+
get shiftValue() {
|
|
133
|
+
if (this._shiftValue) {
|
|
134
|
+
return this._shiftValue;
|
|
135
|
+
}
|
|
136
|
+
if (this.pageValue && this.pageValue?.shiftId) {
|
|
137
|
+
return this.pageValue.shiftId;
|
|
138
|
+
}
|
|
139
|
+
return null;
|
|
140
|
+
}
|
|
141
|
+
set shiftValue(value) {
|
|
142
|
+
this._shiftValue = value;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* 班次周期
|
|
146
|
+
*/
|
|
147
|
+
get shiftPeriodValue() {
|
|
148
|
+
if (this._shiftPeriodValue) {
|
|
149
|
+
return this._shiftPeriodValue;
|
|
150
|
+
}
|
|
151
|
+
if (this.pageValue && this.pageValue?.shiftPeriod) {
|
|
152
|
+
return this.pageValue.shiftPeriod;
|
|
153
|
+
}
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
156
|
+
set shiftPeriodValue(value) {
|
|
157
|
+
this._shiftPeriodValue = value;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* listChild
|
|
161
|
+
*/
|
|
162
|
+
get listChildValue() {
|
|
163
|
+
if (this._listChildValue) {
|
|
164
|
+
return this._listChildValue;
|
|
165
|
+
}
|
|
166
|
+
if (this.pageValue && this.pageValue?.listChild) {
|
|
167
|
+
return this.pageValue.listChild;
|
|
168
|
+
}
|
|
169
|
+
return null;
|
|
170
|
+
}
|
|
171
|
+
set listChildValue(value) {
|
|
172
|
+
this._listChildValue = value;
|
|
173
|
+
}
|
|
174
|
+
ngDoCheck() {
|
|
175
|
+
if (this.happenValueOld != this.happenValue) {
|
|
176
|
+
this.happenValueOld = this.happenValue;
|
|
177
|
+
this.dateChange("happenDate", this.happenValue);
|
|
178
|
+
}
|
|
179
|
+
else if (this.beginValueOld != this.beginValue) {
|
|
180
|
+
this.beginValueOld = this.beginValue;
|
|
181
|
+
this.dateChange("beginDate", this.beginValue);
|
|
182
|
+
}
|
|
183
|
+
else if (this.endValueOld != this.endValue) {
|
|
184
|
+
this.endValueOld = this.endValue;
|
|
185
|
+
this.dateChange("endDate", this.endValue);
|
|
186
|
+
}
|
|
187
|
+
else if (JSON.stringify(this.listChildValueOld) != JSON.stringify(this.listChildValue)) {
|
|
188
|
+
this.listChildValueOld = this.listChildValue;
|
|
189
|
+
this.dateChange("listChild", this.listChildValue);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
dateChange(key, itemValue) {
|
|
193
|
+
if (this.model && this.model) {
|
|
194
|
+
this.valueChange(key, itemValue);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
itemChange(e) {
|
|
198
|
+
if (this.model && this.model) {
|
|
199
|
+
this.valueChange("itemId", this.itemValue);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
shiftChange(e) {
|
|
203
|
+
if (this.model && this.model) {
|
|
204
|
+
this.valueChange("shiftId", this.shiftValue);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
shiftPeriodChange(e) {
|
|
208
|
+
if (this.model && this.model) {
|
|
209
|
+
this.valueChange("shiftPeriod", this.shiftPeriodValue);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
valueChange(key, itemValue) {
|
|
213
|
+
if (this.model && this.model) {
|
|
214
|
+
let value = null;
|
|
215
|
+
if (this.model[this.key] == undefined || this.model[this.key] == null) {
|
|
216
|
+
value = {};
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
value = _.cloneDeep(this.model[this.key]);
|
|
220
|
+
}
|
|
221
|
+
value[key] = itemValue;
|
|
222
|
+
if (JSON.stringify(this.model[this.key]) != JSON.stringify(value)) {
|
|
223
|
+
this.model[this.key] = value;
|
|
224
|
+
this.formControl.patchValue(this.model[this.key]);
|
|
225
|
+
this.formControl.markAsTouched();
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldOverTime, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
230
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldOverTime, isStandalone: true, selector: "deon-nz-field-overtime", usesInheritance: true, ngImport: i0, template: "<ul class=\"first-box\">\n <li>\n <label>\u52A0\u73ED\u65E5\u671F</label>\n <nz-date-picker [(ngModel)]=\"happenValue\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u52A0\u73ED\u65E5\u671F\" [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </li>\n <li>\n <label>\u5F00\u59CB\u65F6\u95F4</label>\n <nz-date-picker [(ngModel)]=\"beginValue\" nzFormat=\"yyyy-MM-dd HH:mm\" [nzShowTime]=\"{ nzFormat: 'HH:mm' }\"\n nzPlaceHolder=\"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\" [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </li>\n <li>\n <label>\u7ED3\u675F\u65F6\u95F4</label>\n <nz-date-picker [(ngModel)]=\"endValue\" nzFormat=\"yyyy-MM-dd HH:mm\" [nzShowTime]=\"{ nzFormat: 'HH:mm' }\"\n nzPlaceHolder=\"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4\" [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </li>\n <li>\n <ng-container *ngIf=\"!props['zeroSplit']\">\n <label>\u52A0\u73ED\u9879\u76EE</label>\n <nz-select [(ngModel)]=\"itemValue\" (ngModelChange)=\"itemChange($event)\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u52A0\u73ED\u9879\u76EE\"\n [nzDisabled]=\"!pageEditor\">\n <ng-container *ngIf=\"props['overtime'] && props['overtime']['itemId']\">\n <ng-container *ngFor=\"let item of props['overtime']['itemId']\">\n <nz-option [nzValue]=\"item.value\" [nzLabel]=\"item.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </ng-container>\n </li>\n <li>\n <ng-container *ngIf=\"!props['zeroSplit']\">\n <label>\u52A0\u73ED\u65F6\u957F</label>\n <input nz-input [disabled]=\"true\" [(ngModel)]=\"numValue\" />\n </ng-container>\n </li>\n</ul>\n\n<ul class=\"second-box\" *ngIf=\"props['shiftShow'] && !props['zeroSplit']\">\n <li>\n <label>\u73ED\u6B21</label>\n <nz-select [(ngModel)]=\"shiftValue\" (ngModelChange)=\"shiftChange($event)\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u73ED\u6B21\"\n [nzDisabled]=\"!pageEditor\">\n <ng-container *ngIf=\"props['overtime'] && props['overtime']['shiftId']\">\n <ng-container *ngFor=\"let item of props['overtime']['shiftId']\">\n <nz-option [nzValue]=\"item.value\" [nzLabel]=\"item.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </li>\n <li>\n <label>\u53EF\u7533\u8BF7\u65F6\u95F4\u6BB5</label>\n <nz-select [(ngModel)]=\"shiftPeriodValue\" (ngModelChange)=\"shiftPeriodChange($event)\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u53EF\u7533\u8BF7\u65F6\u95F4\u6BB5\"\n [nzDisabled]=\"!pageEditor\">\n <ng-container *ngIf=\"props['overtime'] && props['overtime']['shiftPeriod']\">\n <ng-container *ngFor=\"let item of props['overtime']['shiftPeriod']\">\n <nz-option [nzValue]=\"item.value\" [nzLabel]=\"item.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </li>\n <li></li>\n <li></li>\n <li></li>\n</ul>\n\n<div class=\"three-box\" *ngIf=\"props['zeroSplit'] === true\">\n <label class=\"title\">\u96F6\u70B9\u62C6\u5206\u8BE6\u60C5</label>\n <table>\n <thead>\n <tr>\n <th style=\"width: 60px;\">\u5E8F\u53F7</th>\n <th>\u52A0\u73ED\u65E5\u671F</th>\n <th>\u73ED\u6B21</th>\n <th>\u53EF\u7533\u8BF7\u65F6\u95F4\u6BB5</th>\n <th>\u52A0\u73ED\u9879\u76EE</th>\n <th>\u5F00\u59CB\u65F6\u95F4</th>\n <th>\u7ED3\u675F\u65F6\u95F4</th>\n <th>\u52A0\u73ED\u65F6\u957F</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngIf=\"listChildValue && listChildValue.length > 0; else trEmpty\">\n <tr *ngFor=\"let item of listChildValue; let index = index\">\n <td>{{ index + 1 }}</td>\n <td>\n <nz-date-picker [(ngModel)]=\"item.happenData\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u52A0\u73ED\u65E5\u671F\"\n [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </td>\n <td>\n <nz-select [(ngModel)]=\"item.shiftId\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u73ED\u6B21\" [nzDisabled]=\"!pageEditor\">\n <ng-container\n *ngIf=\"props['overtime'] && props['overtime']['listChild']?.length > index && props['overtime']['listChild'][index]['shiftId']\">\n <ng-container *ngFor=\"let opt of props['overtime']['listChild'][index]['shiftId']\">\n <nz-option [nzValue]=\"opt.value\" [nzLabel]=\"opt.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </td>\n <td>\n <nz-select [(ngModel)]=\"item.shiftPeriod\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u53EF\u7533\u8BF7\u65F6\u95F4\u6BB5\" [nzDisabled]=\"!pageEditor\">\n <ng-container\n *ngIf=\"props['overtime'] && props['overtime']['listChild']?.length > index && props['overtime']['listChild'][index]['shiftPeriod']\">\n <ng-container *ngFor=\"let opt of props['overtime']['listChild'][index]['shiftPeriod']\">\n <nz-option [nzValue]=\"opt.value\" [nzLabel]=\"opt.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </td>\n <td>\n <nz-select [(ngModel)]=\"item.itemId\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u52A0\u73ED\u9879\u76EE\" [nzDisabled]=\"!pageEditor\">\n <ng-container\n *ngIf=\"props['overtime'] && props['overtime']['listChild']?.length > index && props['overtime']['listChild'][index]['itemId']\">\n <ng-container *ngFor=\"let opt of props['overtime']['listChild'][index]['itemId']\">\n <nz-option [nzValue]=\"opt.value\" [nzLabel]=\"opt.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </td>\n <td>\n <nz-date-picker [(ngModel)]=\"item.beginDate\" nzFormat=\"yyyy-MM-dd HH:mm\"\n [nzShowTime]=\"{ nzFormat: 'HH:mm' }\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\"\n [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </td>\n <td>\n <nz-date-picker [(ngModel)]=\"item.endDate\" nzFormat=\"yyyy-MM-dd HH:mm\"\n [nzShowTime]=\"{ nzFormat: 'HH:mm' }\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4\"\n [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </td>\n <td>\n <input nz-input [disabled]=\"true\" [(ngModel)]=\"item.numValue\" />\n </td>\n </tr>\n </ng-container>\n\n <ng-template #trEmpty>\n <tr>\n <td colspan=\"8\" style=\"text-align: center; padding: 5px;\">\u6682\u65E0\u6570\u636E</td>\n </tr>\n </ng-template>\n </tbody>\n </table>\n</div>", styles: [":host ::ng-deep .first-box,:host ::ng-deep .second-box{display:flex;flex-direction:row;margin:0;padding:0;list-style:none}:host ::ng-deep .first-box li,:host ::ng-deep .second-box li{display:flex;flex:1;flex-direction:column}:host ::ng-deep .first-box li+li,:host ::ng-deep .second-box li+li{margin-left:15px}:host ::ng-deep .second-box{margin-top:15px}:host ::ng-deep .three-box{margin-top:15px}:host ::ng-deep .three-box .title{display:flex;margin-bottom:5px}:host ::ng-deep .three-box table{width:100%;border-top:1px solid #eaeaea;border-right:1px solid #eaeaea}:host ::ng-deep .three-box table tr th{padding:8px;font-weight:400;background:#edeff3;border-bottom:1px solid #eaeaea;border-left:1px solid #eaeaea}:host ::ng-deep .three-box table tr td{padding:6px 8px;border-bottom:1px solid #eaeaea;border-left:1px solid #eaeaea}:host ::ng-deep .three-box table nz-input-number{width:150px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i4.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i4.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "ngmodule", type: NzDatePickerModule }, { kind: "component", type: i5.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-quarter-picker,nz-year-picker,nz-range-picker", inputs: ["nzAllowClear", "nzAutoFocus", "nzDisabled", "nzBorderless", "nzInputReadOnly", "nzInline", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "ngmodule", type: FormlyModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
231
|
+
}
|
|
232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldOverTime, decorators: [{
|
|
233
|
+
type: Component,
|
|
234
|
+
args: [{ selector: 'deon-nz-field-overtime', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
235
|
+
CommonModule,
|
|
236
|
+
FormsModule,
|
|
237
|
+
ReactiveFormsModule,
|
|
238
|
+
NzInputModule,
|
|
239
|
+
NzSelectModule,
|
|
240
|
+
NzDatePickerModule,
|
|
241
|
+
FormlyModule
|
|
242
|
+
], template: "<ul class=\"first-box\">\n <li>\n <label>\u52A0\u73ED\u65E5\u671F</label>\n <nz-date-picker [(ngModel)]=\"happenValue\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u52A0\u73ED\u65E5\u671F\" [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </li>\n <li>\n <label>\u5F00\u59CB\u65F6\u95F4</label>\n <nz-date-picker [(ngModel)]=\"beginValue\" nzFormat=\"yyyy-MM-dd HH:mm\" [nzShowTime]=\"{ nzFormat: 'HH:mm' }\"\n nzPlaceHolder=\"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\" [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </li>\n <li>\n <label>\u7ED3\u675F\u65F6\u95F4</label>\n <nz-date-picker [(ngModel)]=\"endValue\" nzFormat=\"yyyy-MM-dd HH:mm\" [nzShowTime]=\"{ nzFormat: 'HH:mm' }\"\n nzPlaceHolder=\"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4\" [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </li>\n <li>\n <ng-container *ngIf=\"!props['zeroSplit']\">\n <label>\u52A0\u73ED\u9879\u76EE</label>\n <nz-select [(ngModel)]=\"itemValue\" (ngModelChange)=\"itemChange($event)\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u52A0\u73ED\u9879\u76EE\"\n [nzDisabled]=\"!pageEditor\">\n <ng-container *ngIf=\"props['overtime'] && props['overtime']['itemId']\">\n <ng-container *ngFor=\"let item of props['overtime']['itemId']\">\n <nz-option [nzValue]=\"item.value\" [nzLabel]=\"item.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </ng-container>\n </li>\n <li>\n <ng-container *ngIf=\"!props['zeroSplit']\">\n <label>\u52A0\u73ED\u65F6\u957F</label>\n <input nz-input [disabled]=\"true\" [(ngModel)]=\"numValue\" />\n </ng-container>\n </li>\n</ul>\n\n<ul class=\"second-box\" *ngIf=\"props['shiftShow'] && !props['zeroSplit']\">\n <li>\n <label>\u73ED\u6B21</label>\n <nz-select [(ngModel)]=\"shiftValue\" (ngModelChange)=\"shiftChange($event)\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u73ED\u6B21\"\n [nzDisabled]=\"!pageEditor\">\n <ng-container *ngIf=\"props['overtime'] && props['overtime']['shiftId']\">\n <ng-container *ngFor=\"let item of props['overtime']['shiftId']\">\n <nz-option [nzValue]=\"item.value\" [nzLabel]=\"item.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </li>\n <li>\n <label>\u53EF\u7533\u8BF7\u65F6\u95F4\u6BB5</label>\n <nz-select [(ngModel)]=\"shiftPeriodValue\" (ngModelChange)=\"shiftPeriodChange($event)\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u53EF\u7533\u8BF7\u65F6\u95F4\u6BB5\"\n [nzDisabled]=\"!pageEditor\">\n <ng-container *ngIf=\"props['overtime'] && props['overtime']['shiftPeriod']\">\n <ng-container *ngFor=\"let item of props['overtime']['shiftPeriod']\">\n <nz-option [nzValue]=\"item.value\" [nzLabel]=\"item.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </li>\n <li></li>\n <li></li>\n <li></li>\n</ul>\n\n<div class=\"three-box\" *ngIf=\"props['zeroSplit'] === true\">\n <label class=\"title\">\u96F6\u70B9\u62C6\u5206\u8BE6\u60C5</label>\n <table>\n <thead>\n <tr>\n <th style=\"width: 60px;\">\u5E8F\u53F7</th>\n <th>\u52A0\u73ED\u65E5\u671F</th>\n <th>\u73ED\u6B21</th>\n <th>\u53EF\u7533\u8BF7\u65F6\u95F4\u6BB5</th>\n <th>\u52A0\u73ED\u9879\u76EE</th>\n <th>\u5F00\u59CB\u65F6\u95F4</th>\n <th>\u7ED3\u675F\u65F6\u95F4</th>\n <th>\u52A0\u73ED\u65F6\u957F</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngIf=\"listChildValue && listChildValue.length > 0; else trEmpty\">\n <tr *ngFor=\"let item of listChildValue; let index = index\">\n <td>{{ index + 1 }}</td>\n <td>\n <nz-date-picker [(ngModel)]=\"item.happenData\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u52A0\u73ED\u65E5\u671F\"\n [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </td>\n <td>\n <nz-select [(ngModel)]=\"item.shiftId\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u73ED\u6B21\" [nzDisabled]=\"!pageEditor\">\n <ng-container\n *ngIf=\"props['overtime'] && props['overtime']['listChild']?.length > index && props['overtime']['listChild'][index]['shiftId']\">\n <ng-container *ngFor=\"let opt of props['overtime']['listChild'][index]['shiftId']\">\n <nz-option [nzValue]=\"opt.value\" [nzLabel]=\"opt.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </td>\n <td>\n <nz-select [(ngModel)]=\"item.shiftPeriod\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u53EF\u7533\u8BF7\u65F6\u95F4\u6BB5\" [nzDisabled]=\"!pageEditor\">\n <ng-container\n *ngIf=\"props['overtime'] && props['overtime']['listChild']?.length > index && props['overtime']['listChild'][index]['shiftPeriod']\">\n <ng-container *ngFor=\"let opt of props['overtime']['listChild'][index]['shiftPeriod']\">\n <nz-option [nzValue]=\"opt.value\" [nzLabel]=\"opt.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </td>\n <td>\n <nz-select [(ngModel)]=\"item.itemId\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u52A0\u73ED\u9879\u76EE\" [nzDisabled]=\"!pageEditor\">\n <ng-container\n *ngIf=\"props['overtime'] && props['overtime']['listChild']?.length > index && props['overtime']['listChild'][index]['itemId']\">\n <ng-container *ngFor=\"let opt of props['overtime']['listChild'][index]['itemId']\">\n <nz-option [nzValue]=\"opt.value\" [nzLabel]=\"opt.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </td>\n <td>\n <nz-date-picker [(ngModel)]=\"item.beginDate\" nzFormat=\"yyyy-MM-dd HH:mm\"\n [nzShowTime]=\"{ nzFormat: 'HH:mm' }\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\"\n [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </td>\n <td>\n <nz-date-picker [(ngModel)]=\"item.endDate\" nzFormat=\"yyyy-MM-dd HH:mm\"\n [nzShowTime]=\"{ nzFormat: 'HH:mm' }\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4\"\n [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </td>\n <td>\n <input nz-input [disabled]=\"true\" [(ngModel)]=\"item.numValue\" />\n </td>\n </tr>\n </ng-container>\n\n <ng-template #trEmpty>\n <tr>\n <td colspan=\"8\" style=\"text-align: center; padding: 5px;\">\u6682\u65E0\u6570\u636E</td>\n </tr>\n </ng-template>\n </tbody>\n </table>\n</div>", styles: [":host ::ng-deep .first-box,:host ::ng-deep .second-box{display:flex;flex-direction:row;margin:0;padding:0;list-style:none}:host ::ng-deep .first-box li,:host ::ng-deep .second-box li{display:flex;flex:1;flex-direction:column}:host ::ng-deep .first-box li+li,:host ::ng-deep .second-box li+li{margin-left:15px}:host ::ng-deep .second-box{margin-top:15px}:host ::ng-deep .three-box{margin-top:15px}:host ::ng-deep .three-box .title{display:flex;margin-bottom:5px}:host ::ng-deep .three-box table{width:100%;border-top:1px solid #eaeaea;border-right:1px solid #eaeaea}:host ::ng-deep .three-box table tr th{padding:8px;font-weight:400;background:#edeff3;border-bottom:1px solid #eaeaea;border-left:1px solid #eaeaea}:host ::ng-deep .three-box table tr td{padding:6px 8px;border-bottom:1px solid #eaeaea;border-left:1px solid #eaeaea}:host ::ng-deep .three-box table nz-input-number{width:150px}\n"] }]
|
|
243
|
+
}] });
|
|
244
|
+
|
|
245
|
+
class DeonNzOverTimeModule {
|
|
246
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzOverTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
247
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzOverTimeModule, imports: [CommonModule,
|
|
248
|
+
FormsModule,
|
|
249
|
+
ReactiveFormsModule,
|
|
250
|
+
DeonNzFormFieldModule,
|
|
251
|
+
NzInputModule,
|
|
252
|
+
NzSelectModule,
|
|
253
|
+
NzDatePickerModule, i1$1.FormlyModule] });
|
|
254
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzOverTimeModule, imports: [CommonModule,
|
|
255
|
+
FormsModule,
|
|
256
|
+
ReactiveFormsModule,
|
|
257
|
+
DeonNzFormFieldModule,
|
|
258
|
+
NzInputModule,
|
|
259
|
+
NzSelectModule,
|
|
260
|
+
NzDatePickerModule,
|
|
261
|
+
FormlyModule.forChild({
|
|
262
|
+
types: [
|
|
263
|
+
{
|
|
264
|
+
name: 'overtime',
|
|
265
|
+
component: DeonNzFieldOverTime,
|
|
266
|
+
wrappers: ['formly-form-field'],
|
|
267
|
+
},
|
|
268
|
+
],
|
|
269
|
+
})] });
|
|
270
|
+
}
|
|
271
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzOverTimeModule, decorators: [{
|
|
272
|
+
type: NgModule,
|
|
273
|
+
args: [{
|
|
274
|
+
imports: [
|
|
275
|
+
CommonModule,
|
|
276
|
+
FormsModule,
|
|
277
|
+
ReactiveFormsModule,
|
|
278
|
+
DeonNzFormFieldModule,
|
|
279
|
+
NzInputModule,
|
|
280
|
+
NzSelectModule,
|
|
281
|
+
NzDatePickerModule,
|
|
282
|
+
FormlyModule.forChild({
|
|
283
|
+
types: [
|
|
284
|
+
{
|
|
285
|
+
name: 'overtime',
|
|
286
|
+
component: DeonNzFieldOverTime,
|
|
287
|
+
wrappers: ['formly-form-field'],
|
|
288
|
+
},
|
|
289
|
+
],
|
|
290
|
+
}),
|
|
291
|
+
],
|
|
292
|
+
schemas: [NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA],
|
|
293
|
+
}]
|
|
294
|
+
}] });
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Generated bundle index. Do not edit.
|
|
298
|
+
*/
|
|
299
|
+
|
|
300
|
+
export { DeonNzFieldOverTime, DeonNzOverTimeModule };
|
|
301
|
+
//# sourceMappingURL=type.overtime.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.overtime.mjs","sources":["../../../../packages/form/overtime/src/default/index.ts","../../../../packages/form/overtime/src/default/index.html","../../../../packages/form/overtime/src/index.module.ts","../../../../packages/form/overtime/type.overtime.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, DoCheck } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { NzDatePickerModule } from 'ng-zorro-antd/date-picker';\nimport { FormlyModule, FieldType, FieldTypeConfig } from '@kre-form/core';\nimport _ from 'lodash';\n\n@Component({\n selector: 'deon-nz-field-overtime',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n NzInputModule,\n NzSelectModule,\n NzDatePickerModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldOverTime extends FieldType<FieldTypeConfig> implements DoCheck {\n\n override defaultOptions = {\n props: {\n },\n };\n\n /**\n * 总值\n */\n _pageValue: any = null;\n _itemValue: any = null;\n _happenValue: any = null;\n _beginValue: any = null;\n _endValue: any = null;\n _numValue: any = null;\n _shiftValue: any = null;\n _shiftPeriodValue: any = null;\n _listChildValue: any[] = null;\n\n /**\n * 对比值\n */\n happenValueOld: any = null;\n beginValueOld: any = null;\n endValueOld: any = null;\n listChildValueOld: any[] = null;\n\n get pageEditor() {\n if (this.editor) {\n return true;\n }\n return false;\n }\n\n get pageValue() {\n let result = null;\n if (this?.model!! && this.model[this.key]) {\n result = this.model[this.key];\n }\n return result;\n }\n\n /**\n * 加班项目\n */\n get itemValue() {\n if (this._itemValue!!) {\n return this._itemValue;\n }\n if (this.pageValue!! && this.pageValue?.itemId!!) {\n return this.pageValue.itemId;\n }\n return null;\n }\n set itemValue(value: any) {\n this._itemValue = value;\n }\n\n /**\n * 加班日期\n */\n get happenValue() {\n if (this._happenValue!!) {\n return this._happenValue;\n }\n if (this.pageValue!! && this.pageValue?.happenDate!!) {\n return this.pageValue.happenDate;\n }\n return null;\n }\n set happenValue(value: any) {\n this._happenValue = value;\n }\n\n /**\n * 加班开始时间\n */\n get beginValue() {\n if (this._beginValue!!) {\n return this._beginValue;\n }\n if (this.pageValue!! && this.pageValue?.beginDate!!) {\n return this.pageValue.beginDate;\n }\n return null;\n }\n set beginValue(value: any) {\n this._beginValue = value;\n }\n\n /**\n * 加班结束时间\n */\n get endValue() {\n if (this._endValue!!) {\n return this._endValue;\n }\n if (this.pageValue!! && this.pageValue?.endDate!!) {\n return this.pageValue.endDate;\n }\n return null;\n }\n set endValue(value: any) {\n this._endValue = value;\n }\n\n /**\n * 加班时长\n */\n get numValue() {\n if (this._numValue!!) {\n return this._numValue;\n }\n if (this.pageValue!! && this.pageValue?.numValue!!) {\n return this.pageValue.numValue;\n }\n return null;\n }\n set numValue(value: any) {\n this._numValue = value;\n }\n\n /**\n * 班次\n */\n get shiftValue() {\n if (this._shiftValue!!) {\n return this._shiftValue;\n }\n if (this.pageValue!! && this.pageValue?.shiftId!!) {\n return this.pageValue.shiftId;\n }\n return null;\n }\n set shiftValue(value: any) {\n this._shiftValue = value;\n }\n\n /**\n * 班次周期\n */\n get shiftPeriodValue() {\n if (this._shiftPeriodValue!!) {\n return this._shiftPeriodValue;\n }\n if (this.pageValue!! && this.pageValue?.shiftPeriod!!) {\n return this.pageValue.shiftPeriod;\n }\n return null;\n }\n set shiftPeriodValue(value: any) {\n this._shiftPeriodValue = value;\n }\n\n /**\n * listChild\n */\n get listChildValue() {\n if (this._listChildValue!!) {\n return this._listChildValue;\n }\n if (this.pageValue!! && this.pageValue?.listChild!!) {\n return this.pageValue.listChild;\n }\n return null;\n }\n set listChildValue(value: any) {\n this._listChildValue = value;\n }\n\n ngDoCheck(): void {\n if (this.happenValueOld != this.happenValue) {\n this.happenValueOld = this.happenValue;\n this.dateChange(\"happenDate\", this.happenValue);\n }\n else if (this.beginValueOld != this.beginValue) {\n this.beginValueOld = this.beginValue;\n this.dateChange(\"beginDate\", this.beginValue);\n }\n else if (this.endValueOld != this.endValue) {\n this.endValueOld = this.endValue;\n this.dateChange(\"endDate\", this.endValue);\n }\n else if (JSON.stringify(this.listChildValueOld) != JSON.stringify(this.listChildValue)) {\n this.listChildValueOld = this.listChildValue;\n this.dateChange(\"listChild\", this.listChildValue);\n }\n }\n\n dateChange(key: any, itemValue: any) {\n if (this.model && this.model!!) {\n this.valueChange(key, itemValue);\n }\n }\n\n itemChange(e: any) {\n if (this.model && this.model!!) {\n this.valueChange(\"itemId\", this.itemValue);\n }\n }\n\n shiftChange(e: any) {\n if (this.model && this.model!!) {\n this.valueChange(\"shiftId\", this.shiftValue);\n }\n }\n\n shiftPeriodChange(e: any) {\n if (this.model && this.model!!) {\n this.valueChange(\"shiftPeriod\", this.shiftPeriodValue);\n }\n }\n\n valueChange(key: any, itemValue: any) {\n if (this.model && this.model!!) {\n let value = null;\n if (this.model[this.key] == undefined || this.model[this.key] == null) {\n value = {};\n }\n else {\n value = _.cloneDeep(this.model[this.key]);\n }\n value[key] = itemValue;\n if (JSON.stringify(this.model[this.key]) != JSON.stringify(value)) {\n this.model[this.key] = value;\n this.formControl.patchValue(this.model[this.key]);\n this.formControl.markAsTouched();\n }\n }\n }\n\n}\n","<ul class=\"first-box\">\n <li>\n <label>加班日期</label>\n <nz-date-picker [(ngModel)]=\"happenValue\" nzPlaceHolder=\"请选择加班日期\" [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </li>\n <li>\n <label>开始时间</label>\n <nz-date-picker [(ngModel)]=\"beginValue\" nzFormat=\"yyyy-MM-dd HH:mm\" [nzShowTime]=\"{ nzFormat: 'HH:mm' }\"\n nzPlaceHolder=\"请选择开始时间\" [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </li>\n <li>\n <label>结束时间</label>\n <nz-date-picker [(ngModel)]=\"endValue\" nzFormat=\"yyyy-MM-dd HH:mm\" [nzShowTime]=\"{ nzFormat: 'HH:mm' }\"\n nzPlaceHolder=\"请选择结束时间\" [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </li>\n <li>\n <ng-container *ngIf=\"!props['zeroSplit']\">\n <label>加班项目</label>\n <nz-select [(ngModel)]=\"itemValue\" (ngModelChange)=\"itemChange($event)\" nzPlaceHolder=\"请选择加班项目\"\n [nzDisabled]=\"!pageEditor\">\n <ng-container *ngIf=\"props['overtime'] && props['overtime']['itemId']\">\n <ng-container *ngFor=\"let item of props['overtime']['itemId']\">\n <nz-option [nzValue]=\"item.value\" [nzLabel]=\"item.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </ng-container>\n </li>\n <li>\n <ng-container *ngIf=\"!props['zeroSplit']\">\n <label>加班时长</label>\n <input nz-input [disabled]=\"true\" [(ngModel)]=\"numValue\" />\n </ng-container>\n </li>\n</ul>\n\n<ul class=\"second-box\" *ngIf=\"props['shiftShow'] && !props['zeroSplit']\">\n <li>\n <label>班次</label>\n <nz-select [(ngModel)]=\"shiftValue\" (ngModelChange)=\"shiftChange($event)\" nzPlaceHolder=\"请选择班次\"\n [nzDisabled]=\"!pageEditor\">\n <ng-container *ngIf=\"props['overtime'] && props['overtime']['shiftId']\">\n <ng-container *ngFor=\"let item of props['overtime']['shiftId']\">\n <nz-option [nzValue]=\"item.value\" [nzLabel]=\"item.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </li>\n <li>\n <label>可申请时间段</label>\n <nz-select [(ngModel)]=\"shiftPeriodValue\" (ngModelChange)=\"shiftPeriodChange($event)\" nzPlaceHolder=\"请选择可申请时间段\"\n [nzDisabled]=\"!pageEditor\">\n <ng-container *ngIf=\"props['overtime'] && props['overtime']['shiftPeriod']\">\n <ng-container *ngFor=\"let item of props['overtime']['shiftPeriod']\">\n <nz-option [nzValue]=\"item.value\" [nzLabel]=\"item.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </li>\n <li></li>\n <li></li>\n <li></li>\n</ul>\n\n<div class=\"three-box\" *ngIf=\"props['zeroSplit'] === true\">\n <label class=\"title\">零点拆分详情</label>\n <table>\n <thead>\n <tr>\n <th style=\"width: 60px;\">序号</th>\n <th>加班日期</th>\n <th>班次</th>\n <th>可申请时间段</th>\n <th>加班项目</th>\n <th>开始时间</th>\n <th>结束时间</th>\n <th>加班时长</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngIf=\"listChildValue && listChildValue.length > 0; else trEmpty\">\n <tr *ngFor=\"let item of listChildValue; let index = index\">\n <td>{{ index + 1 }}</td>\n <td>\n <nz-date-picker [(ngModel)]=\"item.happenData\" nzPlaceHolder=\"请选择加班日期\"\n [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </td>\n <td>\n <nz-select [(ngModel)]=\"item.shiftId\" nzPlaceHolder=\"请选择班次\" [nzDisabled]=\"!pageEditor\">\n <ng-container\n *ngIf=\"props['overtime'] && props['overtime']['listChild']?.length > index && props['overtime']['listChild'][index]['shiftId']\">\n <ng-container *ngFor=\"let opt of props['overtime']['listChild'][index]['shiftId']\">\n <nz-option [nzValue]=\"opt.value\" [nzLabel]=\"opt.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </td>\n <td>\n <nz-select [(ngModel)]=\"item.shiftPeriod\" nzPlaceHolder=\"请选择可申请时间段\" [nzDisabled]=\"!pageEditor\">\n <ng-container\n *ngIf=\"props['overtime'] && props['overtime']['listChild']?.length > index && props['overtime']['listChild'][index]['shiftPeriod']\">\n <ng-container *ngFor=\"let opt of props['overtime']['listChild'][index]['shiftPeriod']\">\n <nz-option [nzValue]=\"opt.value\" [nzLabel]=\"opt.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </td>\n <td>\n <nz-select [(ngModel)]=\"item.itemId\" nzPlaceHolder=\"请选择加班项目\" [nzDisabled]=\"!pageEditor\">\n <ng-container\n *ngIf=\"props['overtime'] && props['overtime']['listChild']?.length > index && props['overtime']['listChild'][index]['itemId']\">\n <ng-container *ngFor=\"let opt of props['overtime']['listChild'][index]['itemId']\">\n <nz-option [nzValue]=\"opt.value\" [nzLabel]=\"opt.label\"></nz-option>\n </ng-container>\n </ng-container>\n </nz-select>\n </td>\n <td>\n <nz-date-picker [(ngModel)]=\"item.beginDate\" nzFormat=\"yyyy-MM-dd HH:mm\"\n [nzShowTime]=\"{ nzFormat: 'HH:mm' }\" nzPlaceHolder=\"请选择开始时间\"\n [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </td>\n <td>\n <nz-date-picker [(ngModel)]=\"item.endDate\" nzFormat=\"yyyy-MM-dd HH:mm\"\n [nzShowTime]=\"{ nzFormat: 'HH:mm' }\" nzPlaceHolder=\"请选择结束时间\"\n [nzDisabled]=\"!pageEditor\"></nz-date-picker>\n </td>\n <td>\n <input nz-input [disabled]=\"true\" [(ngModel)]=\"item.numValue\" />\n </td>\n </tr>\n </ng-container>\n\n <ng-template #trEmpty>\n <tr>\n <td colspan=\"8\" style=\"text-align: center; padding: 5px;\">暂无数据</td>\n </tr>\n </ng-template>\n </tbody>\n </table>\n</div>","import { NgModule, NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@kre-form/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { NzDatePickerModule } from 'ng-zorro-antd/date-picker';\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\n\nimport { DeonNzFieldOverTime } from './default';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n DeonNzFormFieldModule,\n NzInputModule,\n NzSelectModule,\n NzDatePickerModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'overtime',\n component: DeonNzFieldOverTime,\n wrappers: ['formly-form-field'],\n },\n ],\n }),\n ],\n schemas: [NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class DeonNzOverTimeModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;AAwBM,MAAO,mBAAoB,SAAQ,SAA0B,CAAA;AAExD,IAAA,cAAc,GAAG;AACxB,QAAA,KAAK,EAAE,EACN;KACF;AAED;;AAEG;IACH,UAAU,GAAQ,IAAI;IACtB,UAAU,GAAQ,IAAI;IACtB,YAAY,GAAQ,IAAI;IACxB,WAAW,GAAQ,IAAI;IACvB,SAAS,GAAQ,IAAI;IACrB,SAAS,GAAQ,IAAI;IACrB,WAAW,GAAQ,IAAI;IACvB,iBAAiB,GAAQ,IAAI;IAC7B,eAAe,GAAU,IAAI;AAE7B;;AAEG;IACH,cAAc,GAAQ,IAAI;IAC1B,aAAa,GAAQ,IAAI;IACzB,WAAW,GAAQ,IAAI;IACvB,iBAAiB,GAAU,IAAI;AAE/B,IAAA,IAAI,UAAU,GAAA;AACZ,QAAA,IAAI,IAAI,CAAC,MAAM,EAAE;AACf,YAAA,OAAO,IAAI;;AAEb,QAAA,OAAO,KAAK;;AAGd,IAAA,IAAI,SAAS,GAAA;QACX,IAAI,MAAM,GAAG,IAAI;AACjB,QAAA,IAAI,IAAI,EAAE,KAAO,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;YACzC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC;;AAE/B,QAAA,OAAO,MAAM;;AAGf;;AAEG;AACH,IAAA,IAAI,SAAS,GAAA;AACX,QAAA,IAAI,IAAI,CAAC,UAAY,EAAE;YACrB,OAAO,IAAI,CAAC,UAAU;;QAExB,IAAI,IAAI,CAAC,SAAW,IAAI,IAAI,CAAC,SAAS,EAAE,MAAQ,EAAE;AAChD,YAAA,OAAO,IAAI,CAAC,SAAS,C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AAA,OAAO,EAAE;wBACP,YAAY;wBACZ,WAAW;wBACX,mBAAmB;wBACnB,qBAAqB;wBACrB,aAAa;wBACb,cAAc;wBACd,kBAAkB;wBAClB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,mBAAmB,CAAC;AAChC,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,gBAAgB,EAAE,sBAAsB,CAAC;AACpD,iBAAA;;;AC/BD;;AAEG;;;;"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i2 from '@kre-form/core';
|
|
6
|
+
import { FieldType, FormlyModule } from '@kre-form/core';
|
|
7
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
8
|
+
import { NzGridModule } from 'ng-zorro-antd/grid';
|
|
9
|
+
import { DeonNzFormFieldModule } from '@ebuilding/form/form-field';
|
|
10
|
+
|
|
11
|
+
class DeonNzFieldPanel extends FieldType {
|
|
12
|
+
defaultOptions = {
|
|
13
|
+
props: { description: '' },
|
|
14
|
+
};
|
|
15
|
+
renderClass(e) {
|
|
16
|
+
if (e.active != undefined && e.active == true) {
|
|
17
|
+
return `field-${e.type} active`;
|
|
18
|
+
}
|
|
19
|
+
return `field-${e.type}`;
|
|
20
|
+
}
|
|
21
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldPanel, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldPanel, isStandalone: true, selector: "deon-nz-field-panel", usesInheritance: true, ngImport: i0, template: `
|
|
23
|
+
<div class="field-panel-label">
|
|
24
|
+
<ng-container *ngIf="field.props && field.props['hideLabel'] !== true">
|
|
25
|
+
{{ field.props.label }}
|
|
26
|
+
</ng-container>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="list-box field-panel-box" [id]="field.key">
|
|
29
|
+
<ng-container *ngIf="field.fieldGroup && field.fieldGroup.length > 0; else tmpPanel">
|
|
30
|
+
<ng-container *ngFor="let item of field.fieldGroup">
|
|
31
|
+
<formly-field [field]="item"></formly-field>
|
|
32
|
+
<ng-content></ng-content>
|
|
33
|
+
</ng-container>
|
|
34
|
+
</ng-container>
|
|
35
|
+
<ng-template #tmpPanel>
|
|
36
|
+
<div class="field-box ">暂无字段</div>
|
|
37
|
+
</ng-template>
|
|
38
|
+
</div>
|
|
39
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i2.FormlyField, selector: "formly-field", inputs: ["field", "hideLabel", "isTable", "dimConfig", "tableConfig", "editor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
40
|
+
}
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldPanel, decorators: [{
|
|
42
|
+
type: Component,
|
|
43
|
+
args: [{
|
|
44
|
+
selector: 'deon-nz-field-panel',
|
|
45
|
+
template: `
|
|
46
|
+
<div class="field-panel-label">
|
|
47
|
+
<ng-container *ngIf="field.props && field.props['hideLabel'] !== true">
|
|
48
|
+
{{ field.props.label }}
|
|
49
|
+
</ng-container>
|
|
50
|
+
</div>
|
|
51
|
+
<div class="list-box field-panel-box" [id]="field.key">
|
|
52
|
+
<ng-container *ngIf="field.fieldGroup && field.fieldGroup.length > 0; else tmpPanel">
|
|
53
|
+
<ng-container *ngFor="let item of field.fieldGroup">
|
|
54
|
+
<formly-field [field]="item"></formly-field>
|
|
55
|
+
<ng-content></ng-content>
|
|
56
|
+
</ng-container>
|
|
57
|
+
</ng-container>
|
|
58
|
+
<ng-template #tmpPanel>
|
|
59
|
+
<div class="field-box ">暂无字段</div>
|
|
60
|
+
</ng-template>
|
|
61
|
+
</div>
|
|
62
|
+
`,
|
|
63
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
64
|
+
imports: [
|
|
65
|
+
CommonModule,
|
|
66
|
+
FormsModule,
|
|
67
|
+
ReactiveFormsModule,
|
|
68
|
+
FormlyModule
|
|
69
|
+
]
|
|
70
|
+
}]
|
|
71
|
+
}] });
|
|
72
|
+
|
|
73
|
+
class DeonNzPanelModule {
|
|
74
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzPanelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
75
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzPanelModule, imports: [CommonModule,
|
|
76
|
+
ReactiveFormsModule,
|
|
77
|
+
NzGridModule,
|
|
78
|
+
DeonNzFormFieldModule, i2.FormlyModule] });
|
|
79
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzPanelModule, imports: [CommonModule,
|
|
80
|
+
ReactiveFormsModule,
|
|
81
|
+
NzGridModule,
|
|
82
|
+
DeonNzFormFieldModule,
|
|
83
|
+
FormlyModule.forChild({
|
|
84
|
+
types: [
|
|
85
|
+
{
|
|
86
|
+
name: 'panel',
|
|
87
|
+
component: DeonNzFieldPanel,
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
})] });
|
|
91
|
+
}
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzPanelModule, decorators: [{
|
|
93
|
+
type: NgModule,
|
|
94
|
+
args: [{
|
|
95
|
+
imports: [
|
|
96
|
+
CommonModule,
|
|
97
|
+
ReactiveFormsModule,
|
|
98
|
+
NzGridModule,
|
|
99
|
+
DeonNzFormFieldModule,
|
|
100
|
+
FormlyModule.forChild({
|
|
101
|
+
types: [
|
|
102
|
+
{
|
|
103
|
+
name: 'panel',
|
|
104
|
+
component: DeonNzFieldPanel,
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
}),
|
|
108
|
+
],
|
|
109
|
+
}]
|
|
110
|
+
}] });
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Generated bundle index. Do not edit.
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
export { DeonNzFieldPanel, DeonNzPanelModule };
|
|
117
|
+
//# sourceMappingURL=type.panel.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.panel.mjs","sources":["../../../../packages/form/panel/src/panel.type.ts","../../../../packages/form/panel/src/panel.module.ts","../../../../packages/form/panel/type.panel.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule, FieldType, FieldTypeConfig } from '@kre-form/core';\n\n@Component({\n selector: 'deon-nz-field-panel',\n template: `\n <div class=\"field-panel-label\">\n <ng-container *ngIf=\"field.props && field.props['hideLabel'] !== true\">\n {{ field.props.label }}\n </ng-container>\n </div>\n <div class=\"list-box field-panel-box\" [id]=\"field.key\">\n <ng-container *ngIf=\"field.fieldGroup && field.fieldGroup.length > 0; else tmpPanel\">\n <ng-container *ngFor=\"let item of field.fieldGroup\">\n <formly-field [field]=\"item\"></formly-field>\n <ng-content></ng-content>\n </ng-container>\n </ng-container>\n <ng-template #tmpPanel>\n <div class=\"field-box \">暂无字段</div>\n </ng-template>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldPanel extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: { description: '' },\n };\n renderClass(e: any) {\n if (e.active != undefined && e.active == true) {\n return `field-${e.type} active`;\n }\n return `field-${e.type}`;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@kre-form/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { NzGridModule } from 'ng-zorro-antd/grid';\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\n\nimport { DeonNzFieldPanel } from './panel.type';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzGridModule,\n DeonNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'panel',\n component: DeonNzFieldPanel,\n },\n ],\n }),\n ],\n})\nexport class DeonNzPanelModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;AAiCM,MAAO,gBAAiB,SAAQ,SAA0B,CAAA;AACrD,IAAA,cAAc,GAAG;AACxB,QAAA,KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE;KAC3B;AACD,IAAA,WAAW,CAAC,CAAM,EAAA;AAChB,QAAA,IAAI,CAAC,CAAC,MAAM,IAAI,SAAS,IAAI,CAAC,CAAC,MAAM,IAAI,IAAI,EAAE;AAC7C,YAAA,OAAO,CAAS,MAAA,EAAA,CAAC,CAAC,IAAI,SAAS;;AAEjC,QAAA,OAAO,CAAS,MAAA,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AAY;wBACZ,qBAAqB;wBACrB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;AAC5B,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;;;ACzBD;;AAEG;;;;"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import * as i3 from '@kre-form/core';
|
|
5
|
+
import { FieldType, FormlyModule } from '@kre-form/core';
|
|
6
|
+
import * as i1 from '@angular/forms';
|
|
7
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
8
|
+
import * as i2 from 'ng-zorro-antd/radio';
|
|
9
|
+
import { NzRadioModule } from 'ng-zorro-antd/radio';
|
|
10
|
+
|
|
11
|
+
class DeonNzFieldRadio extends FieldType {
|
|
12
|
+
defaultOptions = {
|
|
13
|
+
props: { options: [] },
|
|
14
|
+
};
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldRadio, isStandalone: true, selector: "deon-nz-field-radio", usesInheritance: true, ngImport: i0, template: ` <label nz-radio [formControl]="formControl" [formlyAttributes]="field"></label> `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzRadioModule }, { kind: "component", type: i2.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
17
|
+
}
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldRadio, decorators: [{
|
|
19
|
+
type: Component,
|
|
20
|
+
args: [{
|
|
21
|
+
selector: 'deon-nz-field-radio',
|
|
22
|
+
template: ` <label nz-radio [formControl]="formControl" [formlyAttributes]="field"></label> `,
|
|
23
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
24
|
+
imports: [
|
|
25
|
+
CommonModule,
|
|
26
|
+
FormsModule,
|
|
27
|
+
ReactiveFormsModule,
|
|
28
|
+
NzRadioModule,
|
|
29
|
+
FormlyModule
|
|
30
|
+
]
|
|
31
|
+
}]
|
|
32
|
+
}] });
|
|
33
|
+
|
|
34
|
+
class DeonNzRadioModule {
|
|
35
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
36
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRadioModule, imports: [CommonModule, i3.FormlyModule] });
|
|
37
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRadioModule, imports: [CommonModule,
|
|
38
|
+
FormlyModule.forChild({
|
|
39
|
+
types: [
|
|
40
|
+
{
|
|
41
|
+
name: 'radio',
|
|
42
|
+
component: DeonNzFieldRadio,
|
|
43
|
+
wrappers: ['formly-form-field'],
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
})] });
|
|
47
|
+
}
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRadioModule, decorators: [{
|
|
49
|
+
type: NgModule,
|
|
50
|
+
args: [{
|
|
51
|
+
imports: [
|
|
52
|
+
CommonModule,
|
|
53
|
+
FormlyModule.forChild({
|
|
54
|
+
types: [
|
|
55
|
+
{
|
|
56
|
+
name: 'radio',
|
|
57
|
+
component: DeonNzFieldRadio,
|
|
58
|
+
wrappers: ['formly-form-field'],
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
}),
|
|
62
|
+
],
|
|
63
|
+
}]
|
|
64
|
+
}] });
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Generated bundle index. Do not edit.
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
export { DeonNzFieldRadio, DeonNzRadioModule };
|
|
71
|
+
//# sourceMappingURL=type.radio.mjs.map
|