@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.
Files changed (184) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +0 -0
  3. package/checkbox/index.d.ts +1 -0
  4. package/checkbox/src/checkbox.module.d.ts +9 -0
  5. package/checkbox/src/checkbox.type.d.ts +11 -0
  6. package/checkbox/src/public_api.d.ts +2 -0
  7. package/checkboxgroup/index.d.ts +1 -0
  8. package/checkboxgroup/src/checkboxgroup.module.d.ts +9 -0
  9. package/checkboxgroup/src/checkboxgroup.type.d.ts +19 -0
  10. package/checkboxgroup/src/public_api.d.ts +2 -0
  11. package/colors/index.d.ts +1 -0
  12. package/colors/src/default/index.d.ts +11 -0
  13. package/colors/src/index.module.d.ts +8 -0
  14. package/colors/src/public_api.d.ts +2 -0
  15. package/datetime/index.d.ts +1 -0
  16. package/datetime/src/datetime.module.d.ts +9 -0
  17. package/datetime/src/datetime.type.d.ts +18 -0
  18. package/datetime/src/public_api.d.ts +2 -0
  19. package/desc/index.d.ts +1 -0
  20. package/desc/src/desc.module.d.ts +9 -0
  21. package/desc/src/desc.type.d.ts +6 -0
  22. package/desc/src/public_api.d.ts +2 -0
  23. package/dim/index.d.ts +1 -0
  24. package/dim/src/default/index.d.ts +16 -0
  25. package/dim/src/dim.module.d.ts +9 -0
  26. package/dim/src/public_api.d.ts +2 -0
  27. package/dim-indicator/index.d.ts +1 -0
  28. package/dim-indicator/src/assess/index.d.ts +17 -0
  29. package/dim-indicator/src/default/index.d.ts +19 -0
  30. package/dim-indicator/src/finish/index.d.ts +16 -0
  31. package/dim-indicator/src/indicator.module.d.ts +8 -0
  32. package/dim-indicator/src/public_api.d.ts +2 -0
  33. package/fesm2022/ebuilding-form.mjs +3337 -0
  34. package/fesm2022/ebuilding-form.mjs.map +1 -0
  35. package/fesm2022/type.checkbox.mjs +93 -0
  36. package/fesm2022/type.checkbox.mjs.map +1 -0
  37. package/fesm2022/type.checkboxgroup.mjs +168 -0
  38. package/fesm2022/type.checkboxgroup.mjs.map +1 -0
  39. package/fesm2022/type.colors.mjs +74 -0
  40. package/fesm2022/type.colors.mjs.map +1 -0
  41. package/fesm2022/type.datetime.mjs +312 -0
  42. package/fesm2022/type.datetime.mjs.map +1 -0
  43. package/fesm2022/type.desc.mjs +67 -0
  44. package/fesm2022/type.desc.mjs.map +1 -0
  45. package/fesm2022/type.dim-indicator.mjs +187 -0
  46. package/fesm2022/type.dim-indicator.mjs.map +1 -0
  47. package/fesm2022/type.dim.mjs +101 -0
  48. package/fesm2022/type.dim.mjs.map +1 -0
  49. package/fesm2022/type.form-field.mjs +147 -0
  50. package/fesm2022/type.form-field.mjs.map +1 -0
  51. package/fesm2022/type.grid.mjs +126 -0
  52. package/fesm2022/type.grid.mjs.map +1 -0
  53. package/fesm2022/type.group.mjs +113 -0
  54. package/fesm2022/type.group.mjs.map +1 -0
  55. package/fesm2022/type.html.mjs +88 -0
  56. package/fesm2022/type.html.mjs.map +1 -0
  57. package/fesm2022/type.icon.mjs +143 -0
  58. package/fesm2022/type.icon.mjs.map +1 -0
  59. package/fesm2022/type.label.mjs +71 -0
  60. package/fesm2022/type.label.mjs.map +1 -0
  61. package/fesm2022/type.line.mjs +78 -0
  62. package/fesm2022/type.line.mjs.map +1 -0
  63. package/fesm2022/type.list.mjs +84 -0
  64. package/fesm2022/type.list.mjs.map +1 -0
  65. package/fesm2022/type.number.mjs +196 -0
  66. package/fesm2022/type.number.mjs.map +1 -0
  67. package/fesm2022/type.overtime.mjs +301 -0
  68. package/fesm2022/type.overtime.mjs.map +1 -0
  69. package/fesm2022/type.panel.mjs +117 -0
  70. package/fesm2022/type.panel.mjs.map +1 -0
  71. package/fesm2022/type.radio.mjs +71 -0
  72. package/fesm2022/type.radio.mjs.map +1 -0
  73. package/fesm2022/type.radiogroup.mjs +138 -0
  74. package/fesm2022/type.radiogroup.mjs.map +1 -0
  75. package/fesm2022/type.reform.mjs +91 -0
  76. package/fesm2022/type.reform.mjs.map +1 -0
  77. package/fesm2022/type.repeat-card.mjs +204 -0
  78. package/fesm2022/type.repeat-card.mjs.map +1 -0
  79. package/fesm2022/type.repeat.mjs +209 -0
  80. package/fesm2022/type.repeat.mjs.map +1 -0
  81. package/fesm2022/type.select.mjs +224 -0
  82. package/fesm2022/type.select.mjs.map +1 -0
  83. package/fesm2022/type.switch.mjs +73 -0
  84. package/fesm2022/type.switch.mjs.map +1 -0
  85. package/fesm2022/type.tabs.mjs +107 -0
  86. package/fesm2022/type.tabs.mjs.map +1 -0
  87. package/fesm2022/type.text.mjs +89 -0
  88. package/fesm2022/type.text.mjs.map +1 -0
  89. package/fesm2022/type.textarea.mjs +158 -0
  90. package/fesm2022/type.textarea.mjs.map +1 -0
  91. package/fesm2022/type.textcode.mjs +126 -0
  92. package/fesm2022/type.textcode.mjs.map +1 -0
  93. package/form-field/index.d.ts +1 -0
  94. package/form-field/src/form-field.module.d.ts +10 -0
  95. package/form-field/src/form-field.wrapper.d.ts +9 -0
  96. package/form-field/src/public_api.d.ts +2 -0
  97. package/grid/index.d.ts +1 -0
  98. package/grid/src/grid.module.d.ts +11 -0
  99. package/grid/src/grid.type.d.ts +11 -0
  100. package/grid/src/public_api.d.ts +2 -0
  101. package/group/index.d.ts +1 -0
  102. package/group/src/group.module.d.ts +11 -0
  103. package/group/src/group.type.d.ts +11 -0
  104. package/group/src/public_api.d.ts +2 -0
  105. package/html/index.d.ts +1 -0
  106. package/html/src/html.module.d.ts +10 -0
  107. package/html/src/html.type.d.ts +12 -0
  108. package/html/src/public_api.d.ts +2 -0
  109. package/icon/index.d.ts +1 -0
  110. package/icon/src/default/index.d.ts +14 -0
  111. package/icon/src/index.module.d.ts +14 -0
  112. package/icon/src/public_api.d.ts +2 -0
  113. package/index.d.ts +28 -0
  114. package/label/index.d.ts +1 -0
  115. package/label/src/label.module.d.ts +10 -0
  116. package/label/src/label.type.d.ts +9 -0
  117. package/label/src/public_api.d.ts +2 -0
  118. package/line/index.d.ts +1 -0
  119. package/line/src/line.module.d.ts +11 -0
  120. package/line/src/line.type.d.ts +11 -0
  121. package/line/src/public_api.d.ts +2 -0
  122. package/list/index.d.ts +1 -0
  123. package/list/src/list.module.d.ts +11 -0
  124. package/list/src/list.type.d.ts +9 -0
  125. package/list/src/public_api.d.ts +2 -0
  126. package/number/index.d.ts +1 -0
  127. package/number/src/number.module.d.ts +9 -0
  128. package/number/src/number.type.d.ts +19 -0
  129. package/number/src/number_rate.type.d.ts +9 -0
  130. package/number/src/public_api.d.ts +3 -0
  131. package/overtime/index.d.ts +1 -0
  132. package/overtime/src/default/index.d.ts +77 -0
  133. package/overtime/src/index.module.d.ts +13 -0
  134. package/overtime/src/public_api.d.ts +2 -0
  135. package/package.json +136 -0
  136. package/panel/index.d.ts +1 -0
  137. package/panel/src/panel.module.d.ts +11 -0
  138. package/panel/src/panel.type.d.ts +12 -0
  139. package/panel/src/public_api.d.ts +2 -0
  140. package/radio/index.d.ts +1 -0
  141. package/radio/src/public_api.d.ts +2 -0
  142. package/radio/src/radio.module.d.ts +8 -0
  143. package/radio/src/radio.type.d.ts +11 -0
  144. package/radiogroup/index.d.ts +1 -0
  145. package/radiogroup/src/public_api.d.ts +2 -0
  146. package/radiogroup/src/radiogroup.module.d.ts +8 -0
  147. package/radiogroup/src/radiogroup.type.d.ts +17 -0
  148. package/reform/index.d.ts +1 -0
  149. package/reform/src/public_api.d.ts +2 -0
  150. package/reform/src/reform.module.d.ts +11 -0
  151. package/reform/src/reform.type.d.ts +11 -0
  152. package/repeat/index.d.ts +1 -0
  153. package/repeat/src/default/index.d.ts +28 -0
  154. package/repeat/src/index.module.d.ts +17 -0
  155. package/repeat/src/public_api.d.ts +2 -0
  156. package/repeat-card/index.d.ts +1 -0
  157. package/repeat-card/src/default/index.d.ts +28 -0
  158. package/repeat-card/src/index.module.d.ts +18 -0
  159. package/repeat-card/src/public_api.d.ts +2 -0
  160. package/select/index.d.ts +1 -0
  161. package/select/src/public_api.d.ts +2 -0
  162. package/select/src/select.module.d.ts +9 -0
  163. package/select/src/select.type.d.ts +23 -0
  164. package/switch/index.d.ts +1 -0
  165. package/switch/src/default/index.d.ts +12 -0
  166. package/switch/src/index.module.d.ts +9 -0
  167. package/switch/src/public_api.d.ts +2 -0
  168. package/tabs/index.d.ts +1 -0
  169. package/tabs/src/default/index.d.ts +13 -0
  170. package/tabs/src/index.module.d.ts +7 -0
  171. package/tabs/src/public_api.d.ts +3 -0
  172. package/tabs/src/tab/index.d.ts +11 -0
  173. package/text/index.d.ts +1 -0
  174. package/text/src/public_api.d.ts +2 -0
  175. package/text/src/text.module.d.ts +8 -0
  176. package/text/src/text.type.d.ts +7 -0
  177. package/textarea/index.d.ts +1 -0
  178. package/textarea/src/public_api.d.ts +2 -0
  179. package/textarea/src/textarea.module.d.ts +7 -0
  180. package/textarea/src/textarea.type.d.ts +13 -0
  181. package/textcode/index.d.ts +1 -0
  182. package/textcode/src/public_api.d.ts +2 -0
  183. package/textcode/src/text.module.d.ts +7 -0
  184. package/textcode/src/text.type.d.ts +17 -0
@@ -0,0 +1,209 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, NgModule } from '@angular/core';
3
+ import * as i2 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i8 from '@kre-form/core';
6
+ import { FieldArrayType, FormlyModule } from '@kre-form/core';
7
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
8
+ import { NzEmptyModule } from 'ng-zorro-antd/empty';
9
+ import * as i6 from '@angular/cdk/drag-drop';
10
+ import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
11
+ import * as i7 from 'ng-zorro-antd/icon';
12
+ import { NzIconModule } from 'ng-zorro-antd/icon';
13
+ import * as i3 from 'ng-zorro-antd/tooltip';
14
+ import { NzToolTipModule } from 'ng-zorro-antd/tooltip';
15
+ import { NzTableModule } from 'ng-zorro-antd/table';
16
+ import * as i4 from 'ng-zorro-antd/button';
17
+ import { NzButtonModule } from 'ng-zorro-antd/button';
18
+ import { NzModalModule } from 'ng-zorro-antd/modal';
19
+ import { DeonNzFormFieldModule } from '@ebuilding/form/form-field';
20
+ import * as i9 from '@ebuilding/base/components/empty';
21
+ import { GramDeonEmptyModule } from '@ebuilding/base/components/empty';
22
+ import _ from 'lodash';
23
+ import * as i1 from '@ebuilding/base/shared.srv/global.event';
24
+ import * as i5 from 'ng-zorro-antd/core/transition-patch';
25
+
26
+ class DeonNzFieldRepeat extends FieldArrayType {
27
+ globalSrv;
28
+ /**
29
+ * 合并列
30
+ */
31
+ get colSpan() {
32
+ let res = 0;
33
+ if (this.field.fieldArray["fieldGroup"]) {
34
+ res = this.field.fieldArray["fieldGroup"].length + 2;
35
+ }
36
+ return res;
37
+ }
38
+ get dragDisabled() {
39
+ let result = true;
40
+ if (this.editor != false && _.get(this.props, 'drag') == true) {
41
+ result = false;
42
+ }
43
+ return result;
44
+ }
45
+ get clasName() {
46
+ if (this.props && this.props["className"]) {
47
+ return this.props["className"];
48
+ }
49
+ return null;
50
+ }
51
+ get operationShow() {
52
+ if (this.props && this.props["operationShow"] != undefined && this.props["operationShow"] != null) {
53
+ return this.props["operationShow"];
54
+ }
55
+ return false;
56
+ }
57
+ drop(event) {
58
+ moveItemInArray(this.field.fieldGroup, event.previousIndex, event.currentIndex);
59
+ moveItemInArray(this.model, event.previousIndex, event.currentIndex);
60
+ }
61
+ constructor(globalSrv) {
62
+ super();
63
+ this.globalSrv = globalSrv;
64
+ }
65
+ ngOnInit() { }
66
+ ngOnDestroy() { }
67
+ ngAfterViewInit() { }
68
+ ngOnChanges(change) {
69
+ // this.resize();
70
+ }
71
+ fieldEditor(f, i, m) {
72
+ if (f && f?.props && f?.props?.builtin && f?.props?.builtin == true) {
73
+ return true;
74
+ }
75
+ if (f && f.key == 'code' && m && m[i]['id']) {
76
+ return false;
77
+ }
78
+ if (this.editor == false) {
79
+ return false;
80
+ }
81
+ else {
82
+ if (m && m[i] && m[i]?.builtin && m[i]?.builtin == true) {
83
+ return false;
84
+ }
85
+ return true;
86
+ }
87
+ }
88
+ addData() {
89
+ this.add();
90
+ this.globalSrv.notifyDataChanged('deon-field-repeat', {
91
+ field: this.field,
92
+ data: null,
93
+ type: 'add',
94
+ });
95
+ }
96
+ rowDelete(e) {
97
+ this.remove(e);
98
+ this.globalSrv.notifyDataChanged('deon-field-repeat', {
99
+ field: this.field,
100
+ data: e,
101
+ type: 'delete',
102
+ });
103
+ }
104
+ rowOperation(button, e) {
105
+ this.globalSrv.notifyDataChanged('deon-field-repeat', {
106
+ field: this.field,
107
+ data: e,
108
+ type: button?.type,
109
+ });
110
+ }
111
+ checkDelete(index) {
112
+ if (this.props["hideDelete"] && Array.isArray(this.props["hideDelete"])) {
113
+ if (this.props["hideDelete"].some((item) => {
114
+ return item == index;
115
+ })) {
116
+ return false;
117
+ }
118
+ }
119
+ return true;
120
+ }
121
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldRepeat, deps: [{ token: i1.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
122
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldRepeat, isStandalone: true, selector: "deon-nz-field-repeat", usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"repeat-label\" *ngIf=\"props && props['hideLabel']!=false && props?.label\">{{props?.label}}</div>\n<div class=\"repeat-table\" [ngClass]=\"clasName\">\n <table>\n <thead>\n <tr>\n <th style=\"width: 50px\">\u5E8F\u53F7</th>\n <ng-container *ngFor=\"let headerField of field?.fieldArray['fieldGroup']\">\n <ng-container *ngIf=\"headerField?.type=='deon-group' && headerField?.hide!=true;else tmpField\">\n <ng-container *ngFor=\"let item of headerField.fieldGroup\">\n <th *ngIf=\"item?.hide!=true\">\n <ng-container *ngIf=\"item && item?.props!==undefined && item?.props!==null\">\n <span style=\"color: red\" *ngIf=\"item?.props?.required\" class=\"required\"></span>\n {{item.props.label }}\n </ng-container>\n </th>\n </ng-container>\n </ng-container>\n <ng-template #tmpField>\n <th *ngIf=\"headerField?.hide!=true &&(headerField?.type!=='line' && headerField?.type!=='htmlcontent')\">\n <ng-container *ngIf=\"headerField && headerField?.props!==undefined && headerField?.props!==null\">\n <span style=\"color: red\" *ngIf=\"headerField?.props?.required\" class=\"required\"></span>\n {{ headerField.props.label }}\n </ng-container>\n </th>\n </ng-template>\n </ng-container>\n <th style=\"width: 60px\" *ngIf=\"isRemove || operationShow\">\n <span class=\"\">\u64CD\u4F5C</span>\n </th>\n </tr>\n </thead>\n <tbody cdkDropList (cdkDropListDropped)=\"drop($event)\">\n <ng-container\n *ngIf=\"field?.fieldGroup!==undefined && field?.fieldGroup!==null && (field?.fieldGroup?.length ?? 0) > 0;else cardEmpty\">\n <tr *ngFor=\"let fields of field.fieldGroup; let i = index\" cdkDrag [cdkDragDisabled]=\"dragDisabled\">\n <td>\n <span class=\"serial\">{{ i + 1 }}</span>\n </td>\n <ng-container *ngFor=\"let f of fields.fieldGroup\">\n <ng-container *ngIf=\"f?.type=='deon-group' && f?.hide!=true;else tmpTd\">\n <ng-container *ngFor=\"let item of f.fieldGroup\">\n <td *ngIf=\"item?.hide!=true\">\n <formly-field [field]=\"item\" [hideLabel]=\"true\"></formly-field>\n <ng-content></ng-content>\n </td>\n </ng-container>\n </ng-container>\n <ng-template #tmpTd>\n <td\n *ngIf=\"f && f?.type!==undefined && f?.type!==null && f?.hide!=true &&(f?.type!=='line' && f?.type!=='htmlcontent')\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\" [editor]=\"fieldEditor(f,i,model)\"></formly-field>\n <ng-content></ng-content>\n </td>\n </ng-template>\n </ng-container>\n <td style=\"text-align: center\" *ngIf=\"isRemove || operationShow\">\n <ng-container *ngIf=\"props && props['operation'] && props['operation'].length>0\">\n <ng-container *ngFor=\"let o of props['operation']\">\n <a nz-tooltip [nzTooltipTitle]=\"o.label\" (click)=\"rowOperation(o,i)\"><i nz-icon\n [nzType]=\"o.icon\"></i></a>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"isRemove && (model==null || model[i]?.builtin!=true)\">\n <a nz-tooltip nzTooltipTitle=\"\u5220\u9664\" *ngIf=\"checkDelete(i)\" (click)=\"rowDelete(i)\"><i nz-icon\n nzType=\"delete\"></i></a>\n </ng-container>\n </td>\n </tr>\n <tr *ngIf=\"(isAdd==true || props['add']==true) || props['viewRange']==true\" class=\"trBtnAdd\">\n <td [attr.colspan]=\"colSpan\">\n <ng-container *ngIf=\"isAdd==true && (props['add']==undefined || props['add']==null || props['add']==true)\">\n <a nz-button nzType=\"link\" (click)=\"addData()\">+\u6DFB\u52A0</a>\n </ng-container>\n </td>\n </tr>\n </ng-container>\n <ng-template #cardEmpty>\n <tr>\n <td [attr.colspan]=\"colSpan\" style=\"text-align: center\">\n <gram-empty></gram-empty>\n </td>\n </tr>\n <tr *ngIf=\"isAdd && (props['add']==undefined || props['add']==null || props['add']==true)\" class=\"trBtnAdd\">\n <td [attr.colspan]=\"colSpan\">\n <a nz-button nzType=\"link\" (click)=\"addData()\">+\u6DFB\u52A0</a>\n </td>\n </tr>\n </ng-template>\n </tbody>\n </table>\n</div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i3.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i4.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i5.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i6.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i6.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i7.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i8.FormlyField, selector: "formly-field", inputs: ["field", "hideLabel", "isTable", "dimConfig", "tableConfig", "editor"] }, { kind: "ngmodule", type: GramDeonEmptyModule }, { kind: "component", type: i9.BaseEmptyComponent, selector: "gram-empty", inputs: ["desc", "state"], outputs: ["emptyClick"] }] });
123
+ }
124
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldRepeat, decorators: [{
125
+ type: Component,
126
+ args: [{ selector: 'deon-nz-field-repeat', imports: [
127
+ CommonModule,
128
+ FormsModule,
129
+ ReactiveFormsModule,
130
+ NzToolTipModule,
131
+ NzButtonModule,
132
+ DragDropModule,
133
+ NzIconModule,
134
+ FormlyModule,
135
+ GramDeonEmptyModule
136
+ ], template: "<div class=\"repeat-label\" *ngIf=\"props && props['hideLabel']!=false && props?.label\">{{props?.label}}</div>\n<div class=\"repeat-table\" [ngClass]=\"clasName\">\n <table>\n <thead>\n <tr>\n <th style=\"width: 50px\">\u5E8F\u53F7</th>\n <ng-container *ngFor=\"let headerField of field?.fieldArray['fieldGroup']\">\n <ng-container *ngIf=\"headerField?.type=='deon-group' && headerField?.hide!=true;else tmpField\">\n <ng-container *ngFor=\"let item of headerField.fieldGroup\">\n <th *ngIf=\"item?.hide!=true\">\n <ng-container *ngIf=\"item && item?.props!==undefined && item?.props!==null\">\n <span style=\"color: red\" *ngIf=\"item?.props?.required\" class=\"required\"></span>\n {{item.props.label }}\n </ng-container>\n </th>\n </ng-container>\n </ng-container>\n <ng-template #tmpField>\n <th *ngIf=\"headerField?.hide!=true &&(headerField?.type!=='line' && headerField?.type!=='htmlcontent')\">\n <ng-container *ngIf=\"headerField && headerField?.props!==undefined && headerField?.props!==null\">\n <span style=\"color: red\" *ngIf=\"headerField?.props?.required\" class=\"required\"></span>\n {{ headerField.props.label }}\n </ng-container>\n </th>\n </ng-template>\n </ng-container>\n <th style=\"width: 60px\" *ngIf=\"isRemove || operationShow\">\n <span class=\"\">\u64CD\u4F5C</span>\n </th>\n </tr>\n </thead>\n <tbody cdkDropList (cdkDropListDropped)=\"drop($event)\">\n <ng-container\n *ngIf=\"field?.fieldGroup!==undefined && field?.fieldGroup!==null && (field?.fieldGroup?.length ?? 0) > 0;else cardEmpty\">\n <tr *ngFor=\"let fields of field.fieldGroup; let i = index\" cdkDrag [cdkDragDisabled]=\"dragDisabled\">\n <td>\n <span class=\"serial\">{{ i + 1 }}</span>\n </td>\n <ng-container *ngFor=\"let f of fields.fieldGroup\">\n <ng-container *ngIf=\"f?.type=='deon-group' && f?.hide!=true;else tmpTd\">\n <ng-container *ngFor=\"let item of f.fieldGroup\">\n <td *ngIf=\"item?.hide!=true\">\n <formly-field [field]=\"item\" [hideLabel]=\"true\"></formly-field>\n <ng-content></ng-content>\n </td>\n </ng-container>\n </ng-container>\n <ng-template #tmpTd>\n <td\n *ngIf=\"f && f?.type!==undefined && f?.type!==null && f?.hide!=true &&(f?.type!=='line' && f?.type!=='htmlcontent')\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\" [editor]=\"fieldEditor(f,i,model)\"></formly-field>\n <ng-content></ng-content>\n </td>\n </ng-template>\n </ng-container>\n <td style=\"text-align: center\" *ngIf=\"isRemove || operationShow\">\n <ng-container *ngIf=\"props && props['operation'] && props['operation'].length>0\">\n <ng-container *ngFor=\"let o of props['operation']\">\n <a nz-tooltip [nzTooltipTitle]=\"o.label\" (click)=\"rowOperation(o,i)\"><i nz-icon\n [nzType]=\"o.icon\"></i></a>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"isRemove && (model==null || model[i]?.builtin!=true)\">\n <a nz-tooltip nzTooltipTitle=\"\u5220\u9664\" *ngIf=\"checkDelete(i)\" (click)=\"rowDelete(i)\"><i nz-icon\n nzType=\"delete\"></i></a>\n </ng-container>\n </td>\n </tr>\n <tr *ngIf=\"(isAdd==true || props['add']==true) || props['viewRange']==true\" class=\"trBtnAdd\">\n <td [attr.colspan]=\"colSpan\">\n <ng-container *ngIf=\"isAdd==true && (props['add']==undefined || props['add']==null || props['add']==true)\">\n <a nz-button nzType=\"link\" (click)=\"addData()\">+\u6DFB\u52A0</a>\n </ng-container>\n </td>\n </tr>\n </ng-container>\n <ng-template #cardEmpty>\n <tr>\n <td [attr.colspan]=\"colSpan\" style=\"text-align: center\">\n <gram-empty></gram-empty>\n </td>\n </tr>\n <tr *ngIf=\"isAdd && (props['add']==undefined || props['add']==null || props['add']==true)\" class=\"trBtnAdd\">\n <td [attr.colspan]=\"colSpan\">\n <a nz-button nzType=\"link\" (click)=\"addData()\">+\u6DFB\u52A0</a>\n </td>\n </tr>\n </ng-template>\n </tbody>\n </table>\n</div>" }]
137
+ }], ctorParameters: () => [{ type: i1.GramGlobalService }] });
138
+
139
+ class DeonNzRepeatModule {
140
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRepeatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
141
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRepeatModule, imports: [CommonModule,
142
+ ReactiveFormsModule,
143
+ NzEmptyModule,
144
+ NzTableModule,
145
+ NzButtonModule,
146
+ NzIconModule,
147
+ NzModalModule,
148
+ NzToolTipModule,
149
+ DeonNzFormFieldModule,
150
+ DragDropModule, i8.FormlyModule] });
151
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRepeatModule, imports: [CommonModule,
152
+ ReactiveFormsModule,
153
+ NzEmptyModule,
154
+ NzTableModule,
155
+ NzButtonModule,
156
+ NzIconModule,
157
+ NzModalModule,
158
+ NzToolTipModule,
159
+ DeonNzFormFieldModule,
160
+ DragDropModule,
161
+ FormlyModule.forChild({
162
+ types: [
163
+ {
164
+ name: 'repeat',
165
+ component: DeonNzFieldRepeat,
166
+ },
167
+ {
168
+ name: 'children',
169
+ component: DeonNzFieldRepeat,
170
+ },
171
+ ],
172
+ })] });
173
+ }
174
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzRepeatModule, decorators: [{
175
+ type: NgModule,
176
+ args: [{
177
+ imports: [
178
+ CommonModule,
179
+ ReactiveFormsModule,
180
+ NzEmptyModule,
181
+ NzTableModule,
182
+ NzButtonModule,
183
+ NzIconModule,
184
+ NzModalModule,
185
+ NzToolTipModule,
186
+ DeonNzFormFieldModule,
187
+ DragDropModule,
188
+ FormlyModule.forChild({
189
+ types: [
190
+ {
191
+ name: 'repeat',
192
+ component: DeonNzFieldRepeat,
193
+ },
194
+ {
195
+ name: 'children',
196
+ component: DeonNzFieldRepeat,
197
+ },
198
+ ],
199
+ }),
200
+ ],
201
+ }]
202
+ }] });
203
+
204
+ /**
205
+ * Generated bundle index. Do not edit.
206
+ */
207
+
208
+ export { DeonNzFieldRepeat, DeonNzRepeatModule };
209
+ //# sourceMappingURL=type.repeat.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.repeat.mjs","sources":["../../../../packages/form/repeat/src/default/index.ts","../../../../packages/form/repeat/src/default/index.html","../../../../packages/form/repeat/src/index.module.ts","../../../../packages/form/repeat/type.repeat.ts"],"sourcesContent":["import { Component, AfterViewInit, OnInit, OnDestroy, OnChanges } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop';\nimport { NzToolTipModule } from 'ng-zorro-antd/tooltip';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { DragDropModule } from '@angular/cdk/drag-drop';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\nimport { FormlyModule, FieldArrayType, FieldTypeConfig } from '@kre-form/core';\nimport { GramDeonEmptyModule } from \"@ebuilding/base/components/empty\"\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\n\nimport _ from 'lodash';\n@Component({\n selector: 'deon-nz-field-repeat',\n templateUrl: './index.html',\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n NzToolTipModule,\n NzButtonModule,\n DragDropModule,\n NzIconModule,\n FormlyModule,\n GramDeonEmptyModule\n ]\n})\nexport class DeonNzFieldRepeat extends FieldArrayType<FieldTypeConfig> implements OnInit, OnDestroy, AfterViewInit, OnChanges {\n /**\n * 合并列\n */\n get colSpan() {\n let res = 0;\n if (this.field.fieldArray[\"fieldGroup\"]) {\n res = this.field.fieldArray[\"fieldGroup\"].length + 2;\n }\n return res;\n }\n\n get dragDisabled() {\n let result: boolean = true;\n if (this.editor != false && _.get(this.props, 'drag') == true) {\n result = false;\n }\n return result;\n }\n\n get clasName() {\n if (this.props && this.props[\"className\"]) {\n return this.props[\"className\"];\n }\n return null;\n }\n\n get operationShow() {\n if (this.props && this.props[\"operationShow\"] != undefined && this.props[\"operationShow\"] != null) {\n return this.props[\"operationShow\"];\n }\n return false;\n }\n\n drop(event: CdkDragDrop<string[]>) {\n moveItemInArray(this.field.fieldGroup, event.previousIndex, event.currentIndex);\n moveItemInArray(this.model, event.previousIndex, event.currentIndex);\n }\n constructor(public globalSrv: GramGlobalService) {\n super();\n }\n\n ngOnInit() { }\n ngOnDestroy() { }\n ngAfterViewInit() { }\n ngOnChanges(change: any) {\n // this.resize();\n }\n\n fieldEditor(f: any, i: number, m: any) {\n if (f && f?.props && f?.props?.builtin && f?.props?.builtin == true) {\n return true;\n }\n if (f && f.key == 'code' && m && m[i]['id']) {\n return false;\n }\n if (this.editor == false) {\n return false;\n } else {\n if (m && m[i] && m[i]?.builtin && m[i]?.builtin == true) {\n return false;\n }\n return true;\n }\n }\n\n addData() {\n this.add();\n this.globalSrv.notifyDataChanged('deon-field-repeat', {\n field: this.field,\n data: null,\n type: 'add',\n });\n }\n\n rowDelete(e: any) {\n this.remove(e);\n this.globalSrv.notifyDataChanged('deon-field-repeat', {\n field: this.field,\n data: e,\n type: 'delete',\n });\n }\n\n rowOperation(button: any, e: any) {\n this.globalSrv.notifyDataChanged('deon-field-repeat', {\n field: this.field,\n data: e,\n type: button?.type,\n });\n }\n\n checkDelete(index: number) {\n if (this.props[\"hideDelete\"] && Array.isArray(this.props[\"hideDelete\"])) {\n if (\n this.props[\"hideDelete\"].some((item: any) => {\n return item == index;\n })\n ) {\n return false;\n }\n }\n return true;\n }\n\n}\n","<div class=\"repeat-label\" *ngIf=\"props && props['hideLabel']!=false && props?.label\">{{props?.label}}</div>\n<div class=\"repeat-table\" [ngClass]=\"clasName\">\n <table>\n <thead>\n <tr>\n <th style=\"width: 50px\">序号</th>\n <ng-container *ngFor=\"let headerField of field?.fieldArray['fieldGroup']\">\n <ng-container *ngIf=\"headerField?.type=='deon-group' && headerField?.hide!=true;else tmpField\">\n <ng-container *ngFor=\"let item of headerField.fieldGroup\">\n <th *ngIf=\"item?.hide!=true\">\n <ng-container *ngIf=\"item && item?.props!==undefined && item?.props!==null\">\n <span style=\"color: red\" *ngIf=\"item?.props?.required\" class=\"required\"></span>\n {{item.props.label }}\n </ng-container>\n </th>\n </ng-container>\n </ng-container>\n <ng-template #tmpField>\n <th *ngIf=\"headerField?.hide!=true &&(headerField?.type!=='line' && headerField?.type!=='htmlcontent')\">\n <ng-container *ngIf=\"headerField && headerField?.props!==undefined && headerField?.props!==null\">\n <span style=\"color: red\" *ngIf=\"headerField?.props?.required\" class=\"required\"></span>\n {{ headerField.props.label }}\n </ng-container>\n </th>\n </ng-template>\n </ng-container>\n <th style=\"width: 60px\" *ngIf=\"isRemove || operationShow\">\n <span class=\"\">操作</span>\n </th>\n </tr>\n </thead>\n <tbody cdkDropList (cdkDropListDropped)=\"drop($event)\">\n <ng-container\n *ngIf=\"field?.fieldGroup!==undefined && field?.fieldGroup!==null && (field?.fieldGroup?.length ?? 0) > 0;else cardEmpty\">\n <tr *ngFor=\"let fields of field.fieldGroup; let i = index\" cdkDrag [cdkDragDisabled]=\"dragDisabled\">\n <td>\n <span class=\"serial\">{{ i + 1 }}</span>\n </td>\n <ng-container *ngFor=\"let f of fields.fieldGroup\">\n <ng-container *ngIf=\"f?.type=='deon-group' && f?.hide!=true;else tmpTd\">\n <ng-container *ngFor=\"let item of f.fieldGroup\">\n <td *ngIf=\"item?.hide!=true\">\n <formly-field [field]=\"item\" [hideLabel]=\"true\"></formly-field>\n <ng-content></ng-content>\n </td>\n </ng-container>\n </ng-container>\n <ng-template #tmpTd>\n <td\n *ngIf=\"f && f?.type!==undefined && f?.type!==null && f?.hide!=true &&(f?.type!=='line' && f?.type!=='htmlcontent')\">\n <formly-field [field]=\"f\" [hideLabel]=\"true\" [editor]=\"fieldEditor(f,i,model)\"></formly-field>\n <ng-content></ng-content>\n </td>\n </ng-template>\n </ng-container>\n <td style=\"text-align: center\" *ngIf=\"isRemove || operationShow\">\n <ng-container *ngIf=\"props && props['operation'] && props['operation'].length>0\">\n <ng-container *ngFor=\"let o of props['operation']\">\n <a nz-tooltip [nzTooltipTitle]=\"o.label\" (click)=\"rowOperation(o,i)\"><i nz-icon\n [nzType]=\"o.icon\"></i></a>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"isRemove && (model==null || model[i]?.builtin!=true)\">\n <a nz-tooltip nzTooltipTitle=\"删除\" *ngIf=\"checkDelete(i)\" (click)=\"rowDelete(i)\"><i nz-icon\n nzType=\"delete\"></i></a>\n </ng-container>\n </td>\n </tr>\n <tr *ngIf=\"(isAdd==true || props['add']==true) || props['viewRange']==true\" class=\"trBtnAdd\">\n <td [attr.colspan]=\"colSpan\">\n <ng-container *ngIf=\"isAdd==true && (props['add']==undefined || props['add']==null || props['add']==true)\">\n <a nz-button nzType=\"link\" (click)=\"addData()\">+添加</a>\n </ng-container>\n </td>\n </tr>\n </ng-container>\n <ng-template #cardEmpty>\n <tr>\n <td [attr.colspan]=\"colSpan\" style=\"text-align: center\">\n <gram-empty></gram-empty>\n </td>\n </tr>\n <tr *ngIf=\"isAdd && (props['add']==undefined || props['add']==null || props['add']==true)\" class=\"trBtnAdd\">\n <td [attr.colspan]=\"colSpan\">\n <a nz-button nzType=\"link\" (click)=\"addData()\">+添加</a>\n </td>\n </tr>\n </ng-template>\n </tbody>\n </table>\n</div>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@kre-form/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzEmptyModule } from 'ng-zorro-antd/empty';\nimport { DragDropModule } from '@angular/cdk/drag-drop';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzToolTipModule } from 'ng-zorro-antd/tooltip';\n\nimport { NzTableModule } from 'ng-zorro-antd/table';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzModalModule } from 'ng-zorro-antd/modal';\n\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\n\nimport { DeonNzFieldRepeat } from './default/index';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzEmptyModule,\n NzTableModule,\n NzButtonModule,\n NzIconModule,\n NzModalModule,\n NzToolTipModule,\n DeonNzFormFieldModule,\n DragDropModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'repeat',\n component: DeonNzFieldRepeat,\n },\n {\n name: 'children',\n component: DeonNzFieldRepeat,\n },\n ],\n }),\n ],\n})\nexport class DeonNzRepeatModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA8BM,MAAO,iBAAkB,SAAQ,cAA+B,CAAA;AAsCjD,IAAA,SAAA;AArCnB;;AAEG;AACH,IAAA,IAAI,OAAO,GAAA;QACT,IAAI,GAAG,GAAG,CAAC;QACX,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE;AACvC,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QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;AAC7B,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,iBAAiB;AAC7B,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;;;AC1CD;;AAEG;;;;"}
@@ -0,0 +1,224 @@
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 i4 from '@kre-form/core';
6
+ import { FieldType, FormlyModule } from '@kre-form/core';
7
+ import { DeonNzFormFieldModule } from '@ebuilding/form/form-field';
8
+ import * as i2 from '@angular/forms';
9
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
10
+ import * as i3 from 'ng-zorro-antd/select';
11
+ import { NzSelectModule } from 'ng-zorro-antd/select';
12
+
13
+ class DeonNzFieldSelect extends FieldType {
14
+ defaultOptions = {
15
+ props: { options: null },
16
+ };
17
+ _defaultValue = '';
18
+ _defaultValues = [];
19
+ selectType = 'default';
20
+ listOfSelectedValue;
21
+ getOptions() {
22
+ if (this.props['options'] instanceof Array) {
23
+ return this.props['options'];
24
+ }
25
+ else {
26
+ return [];
27
+ }
28
+ }
29
+ get password() {
30
+ if (this.props && this.props["password"] == true) {
31
+ return true;
32
+ }
33
+ return false;
34
+ }
35
+ get getModelValue() {
36
+ if (this.props.selectType === 'multiple') {
37
+ return this.defaultValues;
38
+ }
39
+ else {
40
+ return this.defaultValue;
41
+ }
42
+ }
43
+ set getModelValue(value) { }
44
+ get defaultValue() {
45
+ if (this.model && this.model[this.key]) {
46
+ this._defaultValue = this.model[this.key];
47
+ }
48
+ else {
49
+ return null;
50
+ }
51
+ return this._defaultValue;
52
+ }
53
+ get defaultValues() {
54
+ if (this.model && this.model[this.key] && Array.isArray(this.model[this.key])) {
55
+ this._defaultValues.length = 0;
56
+ this.model[this.key].forEach((item) => {
57
+ this._defaultValues.push(item?.value);
58
+ });
59
+ }
60
+ else {
61
+ return null;
62
+ }
63
+ return this._defaultValues;
64
+ }
65
+ get getModelText() {
66
+ let result = '';
67
+ if (this.model && this.model[this.key]) {
68
+ if (this.props.selectType === 'multiple') {
69
+ if (Array.isArray(this.model[this.key])) {
70
+ this.model[this.key].forEach((item, index) => {
71
+ if (index > 0) {
72
+ result = `${result},${item?.label}`;
73
+ }
74
+ else {
75
+ result = item?.label;
76
+ }
77
+ });
78
+ }
79
+ }
80
+ else {
81
+ result = this.model[this.key];
82
+ }
83
+ }
84
+ return result;
85
+ }
86
+ selectedChange(e) {
87
+ if (this.props.selectType && this.props.selectType == 'multiple') {
88
+ let values = [];
89
+ if (e && Array.isArray(e)) {
90
+ e.forEach((item) => {
91
+ if (this.props.options && Array.isArray(this.props.options)) {
92
+ this.props.options.forEach((options) => {
93
+ if (options.value == item) {
94
+ values.push(options);
95
+ }
96
+ });
97
+ }
98
+ });
99
+ }
100
+ this.formControl.patchValue(values);
101
+ this.formControl.markAsTouched();
102
+ }
103
+ else {
104
+ let value = null;
105
+ if (this.props.options && Array.isArray(this.props.options)) {
106
+ this.props.options.forEach((options) => {
107
+ if (options.value == e) {
108
+ // value = {};
109
+ // value['value'] = options?.value;
110
+ // value['label'] = options?.label;
111
+ value = options.value;
112
+ }
113
+ });
114
+ }
115
+ this.formControl.patchValue(value);
116
+ this.formControl.markAsTouched();
117
+ }
118
+ }
119
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });
120
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldSelect, isStandalone: true, selector: "deon-nz-field-select", usesInheritance: true, ngImport: i0, template: `
121
+ <nz-select
122
+ [nzDisabled]="editor == false"
123
+ [class.ng-dirty]="showError"
124
+ [nzPlaceHolder]="props.placeholder ? props.placeholder : '---请选择---'"
125
+ [formlyAttributes]="field"
126
+ nzAllowClear
127
+ nzShowSearch
128
+ [nzMode]="props.selectType === 'multiple' ? 'multiple' : 'default'"
129
+ (ngModelChange)="selectedChange($event)"
130
+ [(ngModel)]="getModelValue"
131
+ >
132
+ <ng-container *ngFor="let item of getOptions()">
133
+ <nz-option-group *ngIf="item.group" [nzLabel]="item.label">
134
+ <nz-option *ngFor="let child of item.group" [nzValue]="child.value" [nzDisabled]="child.disabled" [nzLabel]="child.label">
135
+ </nz-option>
136
+ </nz-option-group>
137
+ <nz-option *ngIf="!item.group" [nzValue]="item.value" [nzDisabled]="item.disabled" [nzLabel]="item.label"></nz-option>
138
+ </ng-container>
139
+ </nz-select>
140
+ `, 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: "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: NzSelectModule }, { kind: "component", type: i3.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i3.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: "component", type: i3.NzOptionGroupComponent, selector: "nz-option-group", inputs: ["nzLabel"], exportAs: ["nzOptionGroup"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
141
+ }
142
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldSelect, decorators: [{
143
+ type: Component,
144
+ args: [{
145
+ selector: 'deon-nz-field-select',
146
+ template: `
147
+ <nz-select
148
+ [nzDisabled]="editor == false"
149
+ [class.ng-dirty]="showError"
150
+ [nzPlaceHolder]="props.placeholder ? props.placeholder : '---请选择---'"
151
+ [formlyAttributes]="field"
152
+ nzAllowClear
153
+ nzShowSearch
154
+ [nzMode]="props.selectType === 'multiple' ? 'multiple' : 'default'"
155
+ (ngModelChange)="selectedChange($event)"
156
+ [(ngModel)]="getModelValue"
157
+ >
158
+ <ng-container *ngFor="let item of getOptions()">
159
+ <nz-option-group *ngIf="item.group" [nzLabel]="item.label">
160
+ <nz-option *ngFor="let child of item.group" [nzValue]="child.value" [nzDisabled]="child.disabled" [nzLabel]="child.label">
161
+ </nz-option>
162
+ </nz-option-group>
163
+ <nz-option *ngIf="!item.group" [nzValue]="item.value" [nzDisabled]="item.disabled" [nzLabel]="item.label"></nz-option>
164
+ </ng-container>
165
+ </nz-select>
166
+ `,
167
+ changeDetection: ChangeDetectionStrategy.OnPush,
168
+ imports: [
169
+ CommonModule,
170
+ FormsModule,
171
+ ReactiveFormsModule,
172
+ NzSelectModule,
173
+ FormlyModule
174
+ ]
175
+ }]
176
+ }] });
177
+
178
+ class DeonNzSelectModule {
179
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
180
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzSelectModule, imports: [CommonModule,
181
+ DeonNzFormFieldModule, i4.FormlyModule] });
182
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzSelectModule, imports: [CommonModule,
183
+ DeonNzFormFieldModule,
184
+ FormlyModule.forChild({
185
+ types: [
186
+ {
187
+ name: 'select',
188
+ component: DeonNzFieldSelect,
189
+ wrappers: ['formly-form-field'],
190
+ },
191
+ { name: 'enum', extends: 'select' },
192
+ { name: 'eval_select', extends: 'select' },
193
+ { name: 'lookup_select', extends: 'select' },
194
+ ],
195
+ })] });
196
+ }
197
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzSelectModule, decorators: [{
198
+ type: NgModule,
199
+ args: [{
200
+ imports: [
201
+ CommonModule,
202
+ DeonNzFormFieldModule,
203
+ FormlyModule.forChild({
204
+ types: [
205
+ {
206
+ name: 'select',
207
+ component: DeonNzFieldSelect,
208
+ wrappers: ['formly-form-field'],
209
+ },
210
+ { name: 'enum', extends: 'select' },
211
+ { name: 'eval_select', extends: 'select' },
212
+ { name: 'lookup_select', extends: 'select' },
213
+ ],
214
+ }),
215
+ ],
216
+ }]
217
+ }] });
218
+
219
+ /**
220
+ * Generated bundle index. Do not edit.
221
+ */
222
+
223
+ export { DeonNzFieldSelect, DeonNzSelectModule };
224
+ //# sourceMappingURL=type.select.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.select.mjs","sources":["../../../../packages/form/select/src/select.type.ts","../../../../packages/form/select/src/select.module.ts","../../../../packages/form/select/type.select.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { FormlyModule, FieldType, FieldTypeConfig } from '@kre-form/core';\n\n@Component({\n selector: 'deon-nz-field-select',\n template: ` \n <nz-select\n [nzDisabled]=\"editor == false\"\n [class.ng-dirty]=\"showError\"\n [nzPlaceHolder]=\"props.placeholder ? props.placeholder : '---请选择---'\"\n [formlyAttributes]=\"field\"\n nzAllowClear\n nzShowSearch\n [nzMode]=\"props.selectType === 'multiple' ? 'multiple' : 'default'\"\n (ngModelChange)=\"selectedChange($event)\"\n [(ngModel)]=\"getModelValue\"\n > \n <ng-container *ngFor=\"let item of getOptions()\">\n <nz-option-group *ngIf=\"item.group\" [nzLabel]=\"item.label\">\n <nz-option *ngFor=\"let child of item.group\" [nzValue]=\"child.value\" [nzDisabled]=\"child.disabled\" [nzLabel]=\"child.label\">\n </nz-option>\n </nz-option-group>\n <nz-option *ngIf=\"!item.group\" [nzValue]=\"item.value\" [nzDisabled]=\"item.disabled\" [nzLabel]=\"item.label\"></nz-option>\n </ng-container> \n </nz-select> \n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n NzSelectModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldSelect extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: { options: null },\n };\n _defaultValue: string = '';\n _defaultValues: string[] = [];\n selectType = 'default';\n listOfSelectedValue: any;\n\n getOptions() {\n if (this.props['options'] instanceof Array) {\n return this.props['options'];\n } else {\n return [];\n }\n }\n\n get password() {\n if (this.props && this.props[\"password\"] == true) {\n return true;\n }\n return false;\n }\n\n get getModelValue() {\n if (this.props.selectType === 'multiple') {\n return this.defaultValues;\n } else {\n return this.defaultValue;\n }\n }\n\n set getModelValue(value: any) { }\n\n get defaultValue() {\n if (this.model!! && this.model[this.key]!!) {\n this._defaultValue = this.model[this.key];\n } else {\n return null;\n }\n return this._defaultValue;\n }\n get defaultValues() {\n if (this.model!! && this.model[this.key]!! && Array.isArray(this.model[this.key])) {\n this._defaultValues.length = 0;\n this.model[this.key].forEach((item: any) => {\n this._defaultValues.push(item?.value);\n });\n } else {\n return null;\n }\n return this._defaultValues;\n }\n\n get getModelText() {\n let result: any = '';\n if (this.model!! && this.model[this.key]!!) {\n if (this.props.selectType === 'multiple') {\n if (Array.isArray(this.model[this.key])) {\n this.model[this.key].forEach((item: any, index: number) => {\n if (index > 0) {\n result = `${result},${item?.label}`;\n } else {\n result = item?.label;\n }\n });\n }\n } else {\n result = this.model[this.key];\n }\n }\n return result;\n }\n\n selectedChange(e: any) {\n if (this.props.selectType && this.props.selectType == 'multiple') {\n let values: any[] = [];\n if (e && Array.isArray(e)) {\n e.forEach((item: any) => {\n if (this.props.options && Array.isArray(this.props.options)) {\n this.props.options.forEach((options: any) => {\n if (options.value == item) {\n values.push(options);\n }\n });\n }\n });\n }\n this.formControl.patchValue(values);\n this.formControl.markAsTouched();\n } else {\n let value: any = null;\n if (this.props.options && Array.isArray(this.props.options)) {\n this.props.options.forEach((options: any) => {\n if (options.value == e) {\n // value = {};\n // value['value'] = options?.value;\n // value['label'] = options?.label;\n value = options.value;\n }\n });\n }\n\n this.formControl.patchValue(value);\n this.formControl.markAsTouched();\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@kre-form/core';\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\n\nimport { DeonNzFieldSelect } from './select.type';\n\n@NgModule({\n imports: [\n CommonModule,\n DeonNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'select',\n component: DeonNzFieldSelect,\n wrappers: ['formly-form-field'],\n },\n { name: 'enum', extends: 'select' },\n { name: 'eval_select', extends: 'select' },\n { name: 'lookup_select', extends: 'select' },\n ],\n }),\n ],\n})\nexport class DeonNzSelectModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAsCM,MAAO,iBAAkB,SAAQ,SAA0B,CAAA;AACtD,IAAA,cAAc,GAAG;AACxB,QAAA,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KACzB;IACD,aAAa,GAAW,EAAE;IAC1B,cAAc,GAAa,EAAE;IAC7B,UAAU,GAAG,SAAS;AACtB,IAAA,mBAAmB;IAEnB,UAAU,GAAA;QACR,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,YAAY,KAAK,EAAE;AAC1C,YAAA,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;;aACvB;AACL,YAAA,OAAO,EAAE;;;AAIb,IAAA,IAAI,QAAQ,GAAA;AACV,QAAA,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,IAAI,EAAE;AAChD,YAAA,OAAO,IAAI;;AAEb,QAAA,OAAO,KAAK;;AAGd,IAAA,IAAI,aAAa,GAAA;QACf,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,KAAK,UAAU,EAAE;YACxC,OAAO,IAAI,CAAC,aAAa;;aACpB;YACL,OAAO,IAAI,CAAC,YAAY;;;AAI5B,IAAA,IAAI,aAAa,CAAC,KAAU,EAAA;AAE5B,IAAA,IAAI,YAAY,GAAA;AACd,QAAA,IAAI,IAAI,CAAC,KAAO,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAG,EAAE;YAC1C,IAAI,CAAC,aAAa,GAAG,IA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AQ,EAAE;AAC1C,oBAAA,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,QAAQ,EAAE;AAC7C,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA;;4FAGO,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAlB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,qBAAqB;wBACrB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,mBAAmB,CAAC;AAChC,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACnC,gCAAA,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE;AAC1C,gCAAA,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,QAAQ,EAAE;AAC7C,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;;;ACxBD;;AAEG;;;;"}
@@ -0,0 +1,73 @@
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 { DeonNzFormFieldModule } from '@ebuilding/form/form-field';
7
+ import * as i1 from '@angular/forms';
8
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
9
+ import * as i2 from 'ng-zorro-antd/switch';
10
+ import { NzSwitchModule } from 'ng-zorro-antd/switch';
11
+
12
+ class DeonNzFieldSwitch extends FieldType {
13
+ defaultOptions = {
14
+ props: {
15
+ type: '',
16
+ },
17
+ };
18
+ switchValue = false;
19
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldSwitch, deps: null, target: i0.ɵɵFactoryTarget.Component });
20
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldSwitch, isStandalone: true, selector: "deon-nz-field-switch", usesInheritance: true, ngImport: i0, template: "<nz-switch [formControl]=\"formControl\" [formlyAttributes]=\"field\" [nzDisabled]=\"!editor\"></nz-switch>", styles: [""], 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: NzSwitchModule }, { kind: "component", type: i2.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
21
+ }
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldSwitch, decorators: [{
23
+ type: Component,
24
+ args: [{ selector: 'deon-nz-field-switch', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
25
+ CommonModule,
26
+ FormsModule,
27
+ ReactiveFormsModule,
28
+ NzSwitchModule,
29
+ FormlyModule
30
+ ], template: "<nz-switch [formControl]=\"formControl\" [formlyAttributes]=\"field\" [nzDisabled]=\"!editor\"></nz-switch>" }]
31
+ }] });
32
+
33
+ class DeonNzSwitchModule {
34
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
35
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzSwitchModule, imports: [CommonModule,
36
+ DeonNzFormFieldModule, i3.FormlyModule] });
37
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzSwitchModule, imports: [CommonModule,
38
+ DeonNzFormFieldModule,
39
+ FormlyModule.forChild({
40
+ types: [
41
+ {
42
+ name: 'switch',
43
+ component: DeonNzFieldSwitch,
44
+ wrappers: ['formly-form-field'],
45
+ },
46
+ ],
47
+ })] });
48
+ }
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzSwitchModule, decorators: [{
50
+ type: NgModule,
51
+ args: [{
52
+ imports: [
53
+ CommonModule,
54
+ DeonNzFormFieldModule,
55
+ FormlyModule.forChild({
56
+ types: [
57
+ {
58
+ name: 'switch',
59
+ component: DeonNzFieldSwitch,
60
+ wrappers: ['formly-form-field'],
61
+ },
62
+ ],
63
+ }),
64
+ ],
65
+ }]
66
+ }] });
67
+
68
+ /**
69
+ * Generated bundle index. Do not edit.
70
+ */
71
+
72
+ export { DeonNzFieldSwitch, DeonNzSwitchModule };
73
+ //# sourceMappingURL=type.switch.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.switch.mjs","sources":["../../../../packages/form/switch/src/default/index.ts","../../../../packages/form/switch/src/default/index.html","../../../../packages/form/switch/src/index.module.ts","../../../../packages/form/switch/type.switch.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { FormlyModule, FieldType, FieldTypeConfig } from '@kre-form/core';\nimport _ from 'lodash';\n\n@Component({\n selector: 'deon-nz-field-switch',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n NzSwitchModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldSwitch extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n type: '',\n },\n };\n switchValue = false;\n}\n","<nz-switch [formControl]=\"formControl\" [formlyAttributes]=\"field\" [nzDisabled]=\"!editor\"></nz-switch>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@kre-form/core';\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\nimport { DeonNzFieldSwitch } from './default/index';\n\n@NgModule({\n imports: [\n CommonModule,\n DeonNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'switch',\n component: DeonNzFieldSwitch,\n wrappers: ['formly-form-field'],\n },\n ],\n }),\n ],\n})\nexport class DeonNzSwitchModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AAoBM,MAAO,iBAAkB,SAAQ,SAA0B,CAAA;AACtD,IAAA,cAAc,GAAG;AACxB,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAE,EAAE;AACT,SAAA;KACF;IACD,WAAW,GAAG,KAAK;wGANR,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECpB9B,6GAAqG,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDajG,YAAY,EAAA,E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