@ebuilding/form 2.1.15 → 2.2.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/checkbox/src/app.config.d.ts +2 -0
- package/checkbox/src/checkbox.module.d.ts +1 -1
- package/checkbox/src/checkbox.type.d.ts +1 -1
- package/checkbox/src/public_api.d.ts +1 -0
- package/checkboxgroup/src/app.config.d.ts +2 -0
- package/checkboxgroup/src/checkboxgroup.module.d.ts +1 -1
- package/checkboxgroup/src/checkboxgroup.type.d.ts +1 -1
- package/checkboxgroup/src/public_api.d.ts +1 -0
- package/colors/src/app.config.d.ts +2 -0
- package/colors/src/default/index.d.ts +1 -1
- package/colors/src/index.module.d.ts +3 -2
- package/colors/src/public_api.d.ts +1 -0
- package/datetime/src/app.config.d.ts +2 -0
- package/datetime/src/datetime.module.d.ts +1 -1
- package/datetime/src/datetime.type.d.ts +1 -1
- package/datetime/src/public_api.d.ts +1 -0
- package/desc/src/app.config.d.ts +2 -0
- package/desc/src/desc.module.d.ts +1 -1
- package/desc/src/desc.type.d.ts +1 -1
- package/desc/src/public_api.d.ts +1 -0
- package/dim/src/app.config.d.ts +2 -0
- package/dim/src/default/index.d.ts +1 -1
- package/dim/src/dim.module.d.ts +1 -1
- package/dim/src/public_api.d.ts +1 -0
- package/dim-indicator/src/app.config.d.ts +2 -0
- package/dim-indicator/src/assess/index.d.ts +1 -1
- package/dim-indicator/src/default/index.d.ts +1 -1
- package/dim-indicator/src/finish/index.d.ts +1 -1
- package/dim-indicator/src/indicator.module.d.ts +1 -1
- package/dim-indicator/src/public_api.d.ts +1 -0
- package/fesm2022/ebuilding-form.mjs +472 -604
- package/fesm2022/ebuilding-form.mjs.map +1 -1
- package/fesm2022/type.checkbox.mjs +22 -30
- package/fesm2022/type.checkbox.mjs.map +1 -1
- package/fesm2022/type.checkboxgroup.mjs +18 -22
- package/fesm2022/type.checkboxgroup.mjs.map +1 -1
- package/fesm2022/type.colors.mjs +23 -23
- package/fesm2022/type.colors.mjs.map +1 -1
- package/fesm2022/type.datetime.mjs +18 -22
- package/fesm2022/type.datetime.mjs.map +1 -1
- package/fesm2022/type.desc.mjs +16 -19
- package/fesm2022/type.desc.mjs.map +1 -1
- package/fesm2022/type.dim-indicator.mjs +27 -38
- package/fesm2022/type.dim-indicator.mjs.map +1 -1
- package/fesm2022/type.dim.mjs +17 -20
- package/fesm2022/type.dim.mjs.map +1 -1
- package/fesm2022/type.form-field.mjs +17 -20
- package/fesm2022/type.form-field.mjs.map +1 -1
- package/fesm2022/type.grid.mjs +17 -20
- package/fesm2022/type.grid.mjs.map +1 -1
- package/fesm2022/type.group.mjs +21 -28
- package/fesm2022/type.group.mjs.map +1 -1
- package/fesm2022/type.html.mjs +17 -21
- package/fesm2022/type.html.mjs.map +1 -1
- package/fesm2022/type.icon.mjs +17 -21
- package/fesm2022/type.icon.mjs.map +1 -1
- package/fesm2022/type.label.mjs +16 -19
- package/fesm2022/type.label.mjs.map +1 -1
- package/fesm2022/type.line.mjs +16 -19
- package/fesm2022/type.line.mjs.map +1 -1
- package/fesm2022/type.list.mjs +16 -19
- package/fesm2022/type.list.mjs.map +1 -1
- package/fesm2022/type.number.mjs +26 -37
- package/fesm2022/type.number.mjs.map +1 -1
- package/fesm2022/type.overtime.mjs +17 -21
- package/fesm2022/type.overtime.mjs.map +1 -1
- package/fesm2022/type.panel.mjs +17 -20
- package/fesm2022/type.panel.mjs.map +1 -1
- package/fesm2022/type.radio.mjs +18 -22
- package/fesm2022/type.radio.mjs.map +1 -1
- package/fesm2022/type.radiogroup.mjs +17 -21
- package/fesm2022/type.radiogroup.mjs.map +1 -1
- package/fesm2022/type.reform.mjs +17 -20
- package/fesm2022/type.reform.mjs.map +1 -1
- package/fesm2022/type.repeat-card.mjs +17 -20
- package/fesm2022/type.repeat-card.mjs.map +1 -1
- package/fesm2022/type.repeat.mjs +21 -28
- package/fesm2022/type.repeat.mjs.map +1 -1
- package/fesm2022/type.select.mjs +21 -28
- package/fesm2022/type.select.mjs.map +1 -1
- package/fesm2022/type.switch.mjs +18 -22
- package/fesm2022/type.switch.mjs.map +1 -1
- package/fesm2022/type.tabs.mjs +42 -49
- package/fesm2022/type.tabs.mjs.map +1 -1
- package/fesm2022/type.text.mjs +29 -35
- package/fesm2022/type.text.mjs.map +1 -1
- package/fesm2022/type.textarea.mjs +18 -22
- package/fesm2022/type.textarea.mjs.map +1 -1
- package/fesm2022/type.textcode.mjs +18 -22
- package/fesm2022/type.textcode.mjs.map +1 -1
- package/form-field/src/form-field.config.d.ts +2 -0
- package/form-field/src/form-field.module.d.ts +1 -1
- package/form-field/src/form-field.wrapper.d.ts +1 -1
- package/form-field/src/public_api.d.ts +1 -0
- package/grid/src/app.config.d.ts +2 -0
- package/grid/src/grid.module.d.ts +1 -1
- package/grid/src/grid.type.d.ts +1 -1
- package/grid/src/public_api.d.ts +1 -0
- package/group/src/app.config.d.ts +2 -0
- package/group/src/group.module.d.ts +1 -1
- package/group/src/group.type.d.ts +1 -1
- package/group/src/public_api.d.ts +1 -0
- package/html/src/app.config.d.ts +2 -0
- package/html/src/html.module.d.ts +1 -1
- package/html/src/html.type.d.ts +1 -1
- package/html/src/public_api.d.ts +1 -0
- package/icon/src/app.config.d.ts +2 -0
- package/icon/src/default/index.d.ts +1 -1
- package/icon/src/index.module.d.ts +1 -1
- package/icon/src/public_api.d.ts +1 -0
- package/index.d.ts +28 -28
- package/label/src/app.config.d.ts +2 -0
- package/label/src/label.module.d.ts +1 -1
- package/label/src/label.type.d.ts +1 -1
- package/label/src/public_api.d.ts +1 -0
- package/line/src/app.config.d.ts +2 -0
- package/line/src/line.module.d.ts +1 -1
- package/line/src/line.type.d.ts +1 -1
- package/line/src/public_api.d.ts +1 -0
- package/list/src/app.config.d.ts +2 -0
- package/list/src/list.module.d.ts +1 -1
- package/list/src/list.type.d.ts +1 -1
- package/list/src/public_api.d.ts +1 -0
- package/number/src/app.config.d.ts +2 -0
- package/number/src/number.module.d.ts +1 -1
- package/number/src/number.type.d.ts +1 -1
- package/number/src/number_rate.type.d.ts +1 -1
- package/number/src/public_api.d.ts +1 -0
- package/overtime/src/app.config.d.ts +2 -0
- package/overtime/src/default/index.d.ts +1 -1
- package/overtime/src/index.module.d.ts +1 -1
- package/overtime/src/public_api.d.ts +1 -0
- package/package.json +30 -30
- package/panel/src/app.config.d.ts +2 -0
- package/panel/src/panel.module.d.ts +1 -1
- package/panel/src/panel.type.d.ts +1 -1
- package/panel/src/public_api.d.ts +1 -0
- package/radio/src/app.config.d.ts +2 -0
- package/radio/src/public_api.d.ts +1 -0
- package/radio/src/radio.module.d.ts +1 -1
- package/radio/src/radio.type.d.ts +1 -1
- package/radiogroup/src/app.config.d.ts +2 -0
- package/radiogroup/src/public_api.d.ts +1 -0
- package/radiogroup/src/radiogroup.module.d.ts +1 -1
- package/radiogroup/src/radiogroup.type.d.ts +1 -1
- package/reform/src/app.config.d.ts +2 -0
- package/reform/src/public_api.d.ts +1 -0
- package/reform/src/reform.module.d.ts +1 -1
- package/reform/src/reform.type.d.ts +1 -1
- package/repeat/src/app.config.d.ts +2 -0
- package/repeat/src/default/index.d.ts +1 -1
- package/repeat/src/index.module.d.ts +1 -1
- package/repeat/src/public_api.d.ts +1 -0
- package/repeat-card/src/app.config.d.ts +2 -0
- package/repeat-card/src/default/index.d.ts +1 -1
- package/repeat-card/src/index.module.d.ts +1 -1
- package/repeat-card/src/public_api.d.ts +1 -0
- package/select/src/app.config.d.ts +2 -0
- package/select/src/public_api.d.ts +1 -0
- package/select/src/select.module.d.ts +1 -1
- package/select/src/select.type.d.ts +1 -1
- package/switch/src/app.config.d.ts +2 -0
- package/switch/src/default/index.d.ts +1 -1
- package/switch/src/index.module.d.ts +1 -1
- package/switch/src/public_api.d.ts +1 -0
- package/tabs/src/app.config.d.ts +2 -0
- package/tabs/src/default/index.d.ts +1 -1
- package/tabs/src/index.module.d.ts +1 -1
- package/tabs/src/public_api.d.ts +1 -0
- package/tabs/src/tab/index.d.ts +1 -1
- package/text/src/public_api.d.ts +1 -0
- package/text/src/text.config.d.ts +2 -0
- package/text/src/text.module.d.ts +3 -2
- package/text/src/text.type.d.ts +1 -1
- package/text/src/text_ind.type.d.ts +1 -1
- package/textarea/src/app.config.d.ts +2 -0
- package/textarea/src/public_api.d.ts +1 -0
- package/textarea/src/textarea.module.d.ts +1 -1
- package/textarea/src/textarea.type.d.ts +1 -1
- package/textcode/src/app.config.d.ts +2 -0
- package/textcode/src/public_api.d.ts +1 -0
- package/textcode/src/text.module.d.ts +1 -1
- package/textcode/src/text.type.d.ts +1 -1
|
@@ -2,8 +2,8 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { Component, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i4 from '@
|
|
6
|
-
import { FieldWrapper, FormlyModule } from '@
|
|
5
|
+
import * as i4 from '@ebuilding-form/core';
|
|
6
|
+
import { FieldWrapper, FormlyModule } from '@ebuilding-form/core';
|
|
7
7
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
8
8
|
import * as i3 from 'ng-zorro-antd/form';
|
|
9
9
|
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
@@ -61,7 +61,7 @@ class DeonWrapperFormField extends FieldWrapper {
|
|
|
61
61
|
</nz-form-control>
|
|
62
62
|
</nz-form-item>
|
|
63
63
|
</ng-container>
|
|
64
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i3.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i3.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i3.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i4
|
|
64
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i3.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i3.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i3.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i4.LegacyFormlyValidationMessage, selector: "formly-validation-message" }] });
|
|
65
65
|
}
|
|
66
66
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonWrapperFormField, decorators: [{
|
|
67
67
|
type: Component,
|
|
@@ -103,6 +103,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
103
103
|
}]
|
|
104
104
|
}] });
|
|
105
105
|
|
|
106
|
+
function withFormlyFormField() {
|
|
107
|
+
return {
|
|
108
|
+
wrappers: [
|
|
109
|
+
{
|
|
110
|
+
name: 'formly-form-field',
|
|
111
|
+
component: DeonWrapperFormField,
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
106
117
|
class DeonNzFormFieldModule {
|
|
107
118
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
108
119
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFormFieldModule, imports: [CommonModule,
|
|
@@ -111,14 +122,7 @@ class DeonNzFormFieldModule {
|
|
|
111
122
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFormFieldModule, imports: [CommonModule,
|
|
112
123
|
ReactiveFormsModule,
|
|
113
124
|
NzFormModule,
|
|
114
|
-
FormlyModule.forChild(
|
|
115
|
-
wrappers: [
|
|
116
|
-
{
|
|
117
|
-
name: 'formly-form-field',
|
|
118
|
-
component: DeonWrapperFormField,
|
|
119
|
-
},
|
|
120
|
-
],
|
|
121
|
-
})] });
|
|
125
|
+
FormlyModule.forChild(withFormlyFormField())] });
|
|
122
126
|
}
|
|
123
127
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFormFieldModule, decorators: [{
|
|
124
128
|
type: NgModule,
|
|
@@ -127,14 +131,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
127
131
|
CommonModule,
|
|
128
132
|
ReactiveFormsModule,
|
|
129
133
|
NzFormModule,
|
|
130
|
-
FormlyModule.forChild(
|
|
131
|
-
wrappers: [
|
|
132
|
-
{
|
|
133
|
-
name: 'formly-form-field',
|
|
134
|
-
component: DeonWrapperFormField,
|
|
135
|
-
},
|
|
136
|
-
],
|
|
137
|
-
}),
|
|
134
|
+
FormlyModule.forChild(withFormlyFormField())
|
|
138
135
|
],
|
|
139
136
|
}]
|
|
140
137
|
}] });
|
|
@@ -143,5 +140,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
143
140
|
* Generated bundle index. Do not edit.
|
|
144
141
|
*/
|
|
145
142
|
|
|
146
|
-
export { DeonNzFormFieldModule, DeonWrapperFormField };
|
|
143
|
+
export { DeonNzFormFieldModule, DeonWrapperFormField, withFormlyFormField };
|
|
147
144
|
//# sourceMappingURL=type.form-field.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.form-field.mjs","sources":["../../../../packages/form/form-field/src/form-field.wrapper.ts","../../../../packages/form/form-field/src/form-field.module.ts","../../../../packages/form/form-field/type.form-field.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { FormlyModule, FieldWrapper } from '@
|
|
1
|
+
{"version":3,"file":"type.form-field.mjs","sources":["../../../../packages/form/form-field/src/form-field.wrapper.ts","../../../../packages/form/form-field/src/form-field.config.ts","../../../../packages/form/form-field/src/form-field.module.ts","../../../../packages/form/form-field/type.form-field.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { FormlyModule, FieldWrapper } from '@ebuilding-form/core';\n\n@Component({\n selector: 'deon-wrapper-nz-form-field',\n template: `\n <ng-container *ngIf=\"fieldShow == true\">\n <nz-form-item\n *ngIf=\"field.show != false\"\n [ngClass]=\"{\n 'layout-default':\n field.props?.['layout'] == undefined ||\n field.props?.['layout'] == null ||\n field.props?.['layout'] == 'default',\n 'layout-upDown': field.props?.['layout'] == 'upDown'\n }\"\n >\n <ng-container *ngIf=\"labelShow == true\"> \n <nz-form-label [nzRequired]=\"props.required && props['hideRequiredMarker'] !== true\" [nzFor]=\"id\">\n {{ props.label }}\n </nz-form-label>\n </ng-container>\n \n <nz-form-control [nzValidateStatus]=\"errorState\" [nzErrorTip]=\"errorTpl\">\n <ng-container #fieldComponent></ng-container>\n <ng-template #errorTpl let-control>\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </ng-template>\n </nz-form-control>\n </nz-form-item>\n </ng-container>\n `,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzFormModule,\n FormlyModule\n ]\n})\nexport class DeonWrapperFormField extends FieldWrapper {\n get errorState() {\n return this.showError ? 'error' : '';\n }\n\n get fieldShow() {\n let result: boolean = true;\n if (this.props[\"show\"] == false) {\n result = false;\n }\n return result;\n }\n\n get labelShow() {\n let result: boolean = true;\n if (\n this.props[\"hideLabel\"] == true ||\n this.props.label == undefined ||\n this.props.label == null ||\n this.props.label == '' ||\n this.field.type == 'label' ||\n this.field.type == 'desc' ||\n this.field.type == 'line' ||\n this.field.type == 'repeat'\n ) {\n result = false;\n }\n return result;\n }\n}\n","import { ConfigOption } from '@ebuilding-form/core';\nimport { DeonWrapperFormField } from './form-field.wrapper';\n\nexport function withFormlyFormField(): ConfigOption {\n return {\n wrappers: [\n {\n name: 'formly-form-field',\n component: DeonWrapperFormField,\n },\n ],\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ebuilding-form/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { DeonWrapperFormField } from './form-field.wrapper';\nimport { withFormlyFormField } from './form-field.config';\n\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzFormModule,\n FormlyModule.forChild(withFormlyFormField())\n ],\n})\nexport class DeonNzFormFieldModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AA0CM,MAAO,oBAAqB,SAAQ,YAAY,CAAA;AACpD,IAAA,IAAI,UAAU,GAAA;QACZ,OAAO,IAAI,CAAC,SAAS,GAAG,OAAO,GAAG,EAAE;;AAGtC,IAAA,IAAI,SAAS,GAAA;QACX,IAAI,MAAM,GAAY,IAAI;QAC1B,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,EAAE;YAC/B,MAAM,GAAG,KAAK;;AAEhB,QAAA,OAAO,MAAM;;AAGf,IAAA,IAAI,SAAS,GAAA;QACX,IAAI,MAAM,GAAY,IAAI;AAC1B,QAAA,IACE,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,IAAI;AAC/B,YAAA,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,SAAS;AAC7B,YAAA,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI;AACxB,YAAA,IAAI,CAAC,KAAK,C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A,EAAA,CAAA;kBARjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,YAAY;AACZ,wBAAA,YAAY,CAAC,QAAQ,CAAC,mBAAmB,EAAE;AAC5C,qBAAA;AACF,iBAAA;;;AChBD;;AAEG;;;;"}
|
package/fesm2022/type.grid.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i3 from '@
|
|
6
|
-
import { FieldType, FormlyModule } from '@
|
|
5
|
+
import * as i3 from '@ebuilding-form/core';
|
|
6
|
+
import { FieldType, FormlyModule } from '@ebuilding-form/core';
|
|
7
7
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
8
8
|
import * as i2 from 'ng-zorro-antd/grid';
|
|
9
9
|
import { NzGridModule } from 'ng-zorro-antd/grid';
|
|
@@ -37,7 +37,7 @@ class DeonNzFieldGrid extends FieldType {
|
|
|
37
37
|
</div>
|
|
38
38
|
</ng-container>
|
|
39
39
|
</div>
|
|
40
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: NzGridModule }, { kind: "directive", type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i3.
|
|
40
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: NzGridModule }, { kind: "directive", type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i3.LegacyFormlyField, selector: "formly-field" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
41
41
|
}
|
|
42
42
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldGrid, decorators: [{
|
|
43
43
|
type: Component,
|
|
@@ -79,6 +79,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
79
79
|
}]
|
|
80
80
|
}] });
|
|
81
81
|
|
|
82
|
+
function withFormlyFieldGrid() {
|
|
83
|
+
return {
|
|
84
|
+
types: [
|
|
85
|
+
{
|
|
86
|
+
name: 'grid',
|
|
87
|
+
component: DeonNzFieldGrid,
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
82
93
|
class DeonNzGridModule {
|
|
83
94
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
84
95
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzGridModule, imports: [CommonModule,
|
|
@@ -89,14 +100,7 @@ class DeonNzGridModule {
|
|
|
89
100
|
ReactiveFormsModule,
|
|
90
101
|
NzGridModule,
|
|
91
102
|
DeonNzFormFieldModule,
|
|
92
|
-
FormlyModule.forChild(
|
|
93
|
-
types: [
|
|
94
|
-
{
|
|
95
|
-
name: 'grid',
|
|
96
|
-
component: DeonNzFieldGrid,
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
})] });
|
|
103
|
+
FormlyModule.forChild(withFormlyFieldGrid())] });
|
|
100
104
|
}
|
|
101
105
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzGridModule, decorators: [{
|
|
102
106
|
type: NgModule,
|
|
@@ -106,14 +110,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
106
110
|
ReactiveFormsModule,
|
|
107
111
|
NzGridModule,
|
|
108
112
|
DeonNzFormFieldModule,
|
|
109
|
-
FormlyModule.forChild(
|
|
110
|
-
types: [
|
|
111
|
-
{
|
|
112
|
-
name: 'grid',
|
|
113
|
-
component: DeonNzFieldGrid,
|
|
114
|
-
},
|
|
115
|
-
],
|
|
116
|
-
}),
|
|
113
|
+
FormlyModule.forChild(withFormlyFieldGrid()),
|
|
117
114
|
],
|
|
118
115
|
}]
|
|
119
116
|
}] });
|
|
@@ -122,5 +119,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
122
119
|
* Generated bundle index. Do not edit.
|
|
123
120
|
*/
|
|
124
121
|
|
|
125
|
-
export { DeonNzFieldGrid, DeonNzGridModule };
|
|
122
|
+
export { DeonNzFieldGrid, DeonNzGridModule, withFormlyFieldGrid };
|
|
126
123
|
//# sourceMappingURL=type.grid.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.grid.mjs","sources":["../../../../packages/form/grid/src/grid.type.ts","../../../../packages/form/grid/src/grid.module.ts","../../../../packages/form/grid/type.grid.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\nimport { NzGridModule } from 'ng-zorro-antd/grid';\nimport { FormlyModule, FieldType } from '@
|
|
1
|
+
{"version":3,"file":"type.grid.mjs","sources":["../../../../packages/form/grid/src/grid.type.ts","../../../../packages/form/grid/src/app.config.ts","../../../../packages/form/grid/src/grid.module.ts","../../../../packages/form/grid/type.grid.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\nimport { NzGridModule } from 'ng-zorro-antd/grid';\nimport { FormlyModule, FieldType } from '@ebuilding-form/core';\n\n@Component({\n selector: 'deon-nz-field-grid',\n template: `\n <ng-container *ngIf=\"props!! && props.label!!\">\n <div class=\"grid-label\" [ngClass]=\"{ required: props?.required }\">\n {{ props.label }}\n </div>\n </ng-container>\n <div nz-row>\n <ng-container *ngFor=\"let grid of field.fieldGroup\">\n <div nz-col [nzSpan]=\"grid.props.cols\">\n <ng-container *ngIf=\"grid.props?.label!!\">\n <div class=\"list-label\" [ngClass]=\"{ required: grid.props?.required }\">\n {{ grid.props?.label }}\n </div>\n </ng-container>\n <div class=\"list-box\" [ngClass]=\"grid.props['className']\">\n <div class=\"list-content\" *ngFor=\"let item of grid?.fieldGroup\">\n <formly-field [field]=\"item\"></formly-field>\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n `,\n host: {\n '[class]': \"props && props['className'] ? props['className']:''\",\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n NzGridModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldGrid extends FieldType {\n override defaultOptions = {\n props: { description: '' },\n };\n}\n","import { ConfigOption } from '@ebuilding-form/core';\nimport { DeonNzFieldGrid } from './grid.type';\n\nexport function withFormlyFieldGrid(): ConfigOption {\n return {\n types: [\n {\n name: 'grid',\n component: DeonNzFieldGrid,\n }\n ],\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ebuilding-form/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzGridModule } from 'ng-zorro-antd/grid';\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\nimport { withFormlyFieldGrid } from './app.config';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzGridModule,\n DeonNzFormFieldModule,\n FormlyModule.forChild(withFormlyFieldGrid()),\n ],\n})\nexport class DeonNzGridModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AA0CM,MAAO,eAAgB,SAAQ,SAAS,CAAA;AACnC,IAAA,cAAc,GAAG;AACxB,QAAA,KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE;KAC3B;wGAHU,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAf,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,eAAe,EAlChB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,qDAAA,EAAA,EAAA,EAAA,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AA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAPzB,YAAY;YACZ,mBAAmB;YACnB,YAAY;YACZ,qBAAqB;AACrB,YAAA,YAAY,CAAC,QAAQ,CAAC,mBAAmB,EAAE,CAAC,CAAA,EAAA,CAAA;;4FAGnC,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAT5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,YAAY;wBACZ,qBAAqB;AACrB,wBAAA,YAAY,CAAC,QAAQ,CAAC,mBAAmB,EAAE,CAAC;AAC7C,qBAAA;AACF,iBAAA;;;AChBD;;AAEG;;;;"}
|
package/fesm2022/type.group.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i2 from '@
|
|
6
|
-
import { FieldType, FormlyModule } from '@
|
|
5
|
+
import * as i2 from '@ebuilding-form/core';
|
|
6
|
+
import { FieldType, FormlyModule } from '@ebuilding-form/core';
|
|
7
7
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
8
8
|
import { NzGridModule } from 'ng-zorro-antd/grid';
|
|
9
9
|
import { DeonNzFormFieldModule } from '@ebuilding/form/form-field';
|
|
@@ -26,7 +26,7 @@ class DeonNzFieldGroup extends FieldType {
|
|
|
26
26
|
]"
|
|
27
27
|
></formly-field>
|
|
28
28
|
<ng-content></ng-content>
|
|
29
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i2.
|
|
29
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i2.LegacyFormlyField, selector: "formly-field" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
30
30
|
}
|
|
31
31
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzFieldGroup, decorators: [{
|
|
32
32
|
type: Component,
|
|
@@ -58,6 +58,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
58
58
|
}]
|
|
59
59
|
}] });
|
|
60
60
|
|
|
61
|
+
function withFormlyFieldGroup() {
|
|
62
|
+
return {
|
|
63
|
+
types: [
|
|
64
|
+
{
|
|
65
|
+
name: 'group',
|
|
66
|
+
component: DeonNzFieldGroup,
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'delon-group',
|
|
70
|
+
component: DeonNzFieldGroup,
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
61
76
|
class DeonNzGroupModule {
|
|
62
77
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
63
78
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzGroupModule, imports: [CommonModule,
|
|
@@ -68,18 +83,7 @@ class DeonNzGroupModule {
|
|
|
68
83
|
ReactiveFormsModule,
|
|
69
84
|
NzGridModule,
|
|
70
85
|
DeonNzFormFieldModule,
|
|
71
|
-
FormlyModule.forChild(
|
|
72
|
-
types: [
|
|
73
|
-
{
|
|
74
|
-
name: 'group',
|
|
75
|
-
component: DeonNzFieldGroup,
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
name: 'delon-group',
|
|
79
|
-
component: DeonNzFieldGroup,
|
|
80
|
-
},
|
|
81
|
-
],
|
|
82
|
-
})] });
|
|
86
|
+
FormlyModule.forChild(withFormlyFieldGroup())] });
|
|
83
87
|
}
|
|
84
88
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzGroupModule, decorators: [{
|
|
85
89
|
type: NgModule,
|
|
@@ -89,18 +93,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
89
93
|
ReactiveFormsModule,
|
|
90
94
|
NzGridModule,
|
|
91
95
|
DeonNzFormFieldModule,
|
|
92
|
-
FormlyModule.forChild(
|
|
93
|
-
types: [
|
|
94
|
-
{
|
|
95
|
-
name: 'group',
|
|
96
|
-
component: DeonNzFieldGroup,
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
name: 'delon-group',
|
|
100
|
-
component: DeonNzFieldGroup,
|
|
101
|
-
},
|
|
102
|
-
],
|
|
103
|
-
}),
|
|
96
|
+
FormlyModule.forChild(withFormlyFieldGroup()),
|
|
104
97
|
],
|
|
105
98
|
}]
|
|
106
99
|
}] });
|
|
@@ -109,5 +102,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
109
102
|
* Generated bundle index. Do not edit.
|
|
110
103
|
*/
|
|
111
104
|
|
|
112
|
-
export { DeonNzFieldGroup, DeonNzGroupModule };
|
|
105
|
+
export { DeonNzFieldGroup, DeonNzGroupModule, withFormlyFieldGroup };
|
|
113
106
|
//# sourceMappingURL=type.group.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.group.mjs","sources":["../../../../packages/form/group/src/group.type.ts","../../../../packages/form/group/src/group.module.ts","../../../../packages/form/group/type.group.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule, FieldType, FieldTypeConfig } from '@
|
|
1
|
+
{"version":3,"file":"type.group.mjs","sources":["../../../../packages/form/group/src/group.type.ts","../../../../packages/form/group/src/app.config.ts","../../../../packages/form/group/src/group.module.ts","../../../../packages/form/group/type.group.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule, FieldType, FieldTypeConfig } from '@ebuilding-form/core';\n\n@Component({\n selector: 'deon-nz-field-group',\n template: ` \n <formly-field\n *ngFor=\"let f of field.fieldGroup\"\n [field]=\"f\"\n [ngClass]=\"[\n 'gutter-row',\n 'ant-col',\n f.props.cols\n ? 'ant-col-' + f.props.cols\n : 'ant-col-24'\n ]\"\n></formly-field>\n<ng-content></ng-content>\n `,\n host: {\n '[class]': \"props && props?.className?'gutter-row ant-row '+props.className:'gutter-row ant-row'\",\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n FormsModule, ReactiveFormsModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldGroup extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: { description: '' },\n };\n}\n","import { ConfigOption } from '@ebuilding-form/core';\nimport { DeonNzFieldGroup } from './group.type';\n\nexport function withFormlyFieldGroup(): ConfigOption {\n return {\n types: [\n {\n name: 'group',\n component: DeonNzFieldGroup,\n },\n {\n name: 'delon-group',\n component: DeonNzFieldGroup,\n }\n ],\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ebuilding-form/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzGridModule } from 'ng-zorro-antd/grid';\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\nimport { withFormlyFieldGroup } from './app.config';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzGridModule,\n DeonNzFormFieldModule,\n FormlyModule.forChild(withFormlyFieldGroup()),\n ],\n})\nexport class DeonNzGroupModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;AAgCM,MAAO,gBAAiB,SAAQ,SAA0B,CAAA;AACrD,IAAA,cAAc,GAAG;AACxB,QAAA,KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE;KAC3B;wGAHU,gBAAgB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,EAxBjB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,sFAAA,EAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;AAaT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAMC,YAAY,EACZ,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,E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eAAA,CAAA,QAAA,EAAA,CAAA;AAAjB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAP1B,YAAY;YACZ,mBAAmB;YACnB,YAAY;YACZ,qBAAqB,EAAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA;AAIZ,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAP1B,YAAY;YACZ,mBAAmB;YACnB,YAAY;YACZ,qBAAqB;AACrB,YAAA,YAAY,CAAC,QAAQ,CAAC,oBAAoB,EAAE,CAAC,CAAA,EAAA,CAAA;;4FAGpC,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAT7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,YAAY;wBACZ,qBAAqB;AACrB,wBAAA,YAAY,CAAC,QAAQ,CAAC,oBAAoB,EAAE,CAAC;AAC9C,qBAAA;AACF,iBAAA;;;AChBD;;AAEG;;;;"}
|
package/fesm2022/type.html.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
|
-
import * as i1$1 from '@
|
|
5
|
-
import { FieldType, FormlyModule } from '@
|
|
4
|
+
import * as i1$1 from '@ebuilding-form/core';
|
|
5
|
+
import { FieldType, FormlyModule } from '@ebuilding-form/core';
|
|
6
6
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
7
7
|
import { DeonNzFormFieldModule } from '@ebuilding/form/form-field';
|
|
8
8
|
import * as i1 from '@ebuilding/base/shared.pipe';
|
|
@@ -42,6 +42,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
42
42
|
}]
|
|
43
43
|
}] });
|
|
44
44
|
|
|
45
|
+
function withFormlyFieldHtml() {
|
|
46
|
+
return {
|
|
47
|
+
types: [
|
|
48
|
+
{
|
|
49
|
+
name: 'html',
|
|
50
|
+
component: DeonNzFieldHtml,
|
|
51
|
+
wrappers: ['formly-form-field'],
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
45
57
|
class DeonNzHtmlModule {
|
|
46
58
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzHtmlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
47
59
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzHtmlModule, imports: [CommonModule,
|
|
@@ -50,15 +62,7 @@ class DeonNzHtmlModule {
|
|
|
50
62
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzHtmlModule, imports: [CommonModule,
|
|
51
63
|
ReactiveFormsModule,
|
|
52
64
|
DeonNzFormFieldModule,
|
|
53
|
-
FormlyModule.forChild(
|
|
54
|
-
types: [
|
|
55
|
-
{
|
|
56
|
-
name: 'html',
|
|
57
|
-
component: DeonNzFieldHtml,
|
|
58
|
-
wrappers: ['formly-form-field'],
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
})] });
|
|
65
|
+
FormlyModule.forChild(withFormlyFieldHtml())] });
|
|
62
66
|
}
|
|
63
67
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzHtmlModule, decorators: [{
|
|
64
68
|
type: NgModule,
|
|
@@ -67,15 +71,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
67
71
|
CommonModule,
|
|
68
72
|
ReactiveFormsModule,
|
|
69
73
|
DeonNzFormFieldModule,
|
|
70
|
-
FormlyModule.forChild(
|
|
71
|
-
types: [
|
|
72
|
-
{
|
|
73
|
-
name: 'html',
|
|
74
|
-
component: DeonNzFieldHtml,
|
|
75
|
-
wrappers: ['formly-form-field'],
|
|
76
|
-
},
|
|
77
|
-
],
|
|
78
|
-
}),
|
|
74
|
+
FormlyModule.forChild(withFormlyFieldHtml()),
|
|
79
75
|
],
|
|
80
76
|
}]
|
|
81
77
|
}] });
|
|
@@ -84,5 +80,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
84
80
|
* Generated bundle index. Do not edit.
|
|
85
81
|
*/
|
|
86
82
|
|
|
87
|
-
export { DeonNzFieldHtml, DeonNzHtmlModule };
|
|
83
|
+
export { DeonNzFieldHtml, DeonNzHtmlModule, withFormlyFieldHtml };
|
|
88
84
|
//# sourceMappingURL=type.html.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.html.mjs","sources":["../../../../packages/form/html/src/html.type.ts","../../../../packages/form/html/src/html.module.ts","../../../../packages/form/html/type.html.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { FieldType } from '@
|
|
1
|
+
{"version":3,"file":"type.html.mjs","sources":["../../../../packages/form/html/src/html.type.ts","../../../../packages/form/html/src/app.config.ts","../../../../packages/form/html/src/html.module.ts","../../../../packages/form/html/type.html.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { FieldType } from '@ebuilding-form/core';\nimport { GramPipeModule } from \"@ebuilding/base/shared.pipe\";\n\n@Component({\n selector: 'deon-nz-field-html',\n template: `\n <div [innerHtml]=\"text | safeHtml\" style=\"padding:8px 11px\"></div>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n FormsModule, ReactiveFormsModule,\n GramPipeModule\n ]\n})\nexport class DeonNzFieldHtml extends FieldType {\n override defaultOptions = {\n props: { description: '' },\n };\n\n override get text() {\n if (this.model!! && this.model.hasOwnProperty(this.field.key)) {\n let str: any = this.field.key;\n let value: any = this.model[str];\n if (value == undefined || value == null) {\n value = '';\n }\n return value;\n }\n return '';\n }\n}\n","import { ConfigOption } from '@ebuilding-form/core';\nimport { DeonNzFieldHtml } from './html.type';\n\nexport function withFormlyFieldHtml(): ConfigOption {\n return {\n types: [\n {\n name: 'html',\n component: DeonNzFieldHtml,\n wrappers: ['formly-form-field'],\n }\n ],\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ebuilding-form/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\nimport { withFormlyFieldHtml } from './app.config';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n DeonNzFormFieldModule,\n FormlyModule.forChild(withFormlyFieldHtml()),\n ],\n})\nexport class DeonNzHtmlModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;AAiBM,MAAO,eAAgB,SAAQ,SAAS,CAAA;AACnC,IAAA,cAAc,GAAG;AACxB,QAAA,KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE;KAC3B;AAED,IAAA,IAAa,IAAI,GAAA;AACf,QAAA,IAAI,IAAI,CAAC,KAAO,IAAI,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAA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
@@ -2,8 +2,8 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i1$1 from '@
|
|
6
|
-
import { FieldType, FormlyModule } from '@
|
|
5
|
+
import * as i1$1 from '@ebuilding-form/core';
|
|
6
|
+
import { FieldType, FormlyModule } from '@ebuilding-form/core';
|
|
7
7
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
8
8
|
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
9
9
|
import { NzButtonModule } from 'ng-zorro-antd/button';
|
|
@@ -85,6 +85,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
85
85
|
], template: "<div nz-dropdown [nzDropdownMenu]=\"menu\" class=\"icon-box\" [nzOverlayClassName]=\"'icon-component'\" [nzTrigger]=\"'click'\">\n <span class=\"icon-span\" *ngIf=\"curValue != null && curValue!!; else empty\" [ngClass]=\"curValue\"> </span>\n <span class=\"icon-down\"><i nz-icon nzType=\"down\"></i></span>\n</div>\n<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ul nz-menu>\n <li nz-menu-item *ngFor=\"let item of listIcon\" (click)=\"itemClick(item)\">\n <div [ngClass]=\"item\"></div>\n </li>\n </ul>\n</nz-dropdown-menu>\n<ng-template #empty>\n <span class=\"icon-span\"> </span>\n</ng-template>\n", styles: [":host ::ng-deep .icon-box{display:flex;align-items:center;width:60px;height:30px;padding:5px 11px;font-size:12px;line-height:30px;border:1px solid #eaeaea;border-radius:2px;cursor:pointer;background-color:#fff}:host ::ng-deep .icon-span{display:inline-block;font-size:16px;flex:1}:host ::ng-deep .icon-down{margin-left:6px}:host ::ng-deep .color-control{height:32px;border:1px solid #eaeaea;width:60px;background-color:#fff;padding:8px 13px}:host ::ng-deep .color-control div{width:100%;height:15px}\n"] }]
|
|
86
86
|
}] });
|
|
87
87
|
|
|
88
|
+
function withFormlyFieldIcon() {
|
|
89
|
+
return {
|
|
90
|
+
types: [
|
|
91
|
+
{
|
|
92
|
+
name: 'icon',
|
|
93
|
+
component: DeonNzFieldIcon,
|
|
94
|
+
wrappers: ['formly-form-field'],
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
88
100
|
class DeonNzIconModule {
|
|
89
101
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
90
102
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DeonNzIconModule, imports: [CommonModule,
|
|
@@ -101,15 +113,7 @@ class DeonNzIconModule {
|
|
|
101
113
|
NzInputModule,
|
|
102
114
|
NzButtonModule,
|
|
103
115
|
NzDropDownModule,
|
|
104
|
-
FormlyModule.forChild(
|
|
105
|
-
types: [
|
|
106
|
-
{
|
|
107
|
-
name: 'icon',
|
|
108
|
-
component: DeonNzFieldIcon,
|
|
109
|
-
wrappers: ['formly-form-field'],
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
})] });
|
|
116
|
+
FormlyModule.forChild(withFormlyFieldIcon())] });
|
|
113
117
|
}
|
|
114
118
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonNzIconModule, decorators: [{
|
|
115
119
|
type: NgModule,
|
|
@@ -122,15 +126,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
122
126
|
NzInputModule,
|
|
123
127
|
NzButtonModule,
|
|
124
128
|
NzDropDownModule,
|
|
125
|
-
FormlyModule.forChild(
|
|
126
|
-
types: [
|
|
127
|
-
{
|
|
128
|
-
name: 'icon',
|
|
129
|
-
component: DeonNzFieldIcon,
|
|
130
|
-
wrappers: ['formly-form-field'],
|
|
131
|
-
},
|
|
132
|
-
],
|
|
133
|
-
}),
|
|
129
|
+
FormlyModule.forChild(withFormlyFieldIcon()),
|
|
134
130
|
],
|
|
135
131
|
}]
|
|
136
132
|
}] });
|
|
@@ -139,5 +135,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
139
135
|
* Generated bundle index. Do not edit.
|
|
140
136
|
*/
|
|
141
137
|
|
|
142
|
-
export { DeonNzFieldIcon, DeonNzIconModule };
|
|
138
|
+
export { DeonNzFieldIcon, DeonNzIconModule, withFormlyFieldIcon };
|
|
143
139
|
//# sourceMappingURL=type.icon.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.icon.mjs","sources":["../../../../packages/form/icon/src/default/index.ts","../../../../packages/form/icon/src/default/index.html","../../../../packages/form/icon/src/index.module.ts","../../../../packages/form/icon/type.icon.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzDropDownModule } from 'ng-zorro-antd/dropdown';\nimport { FormlyModule, FieldType, FieldTypeConfig } from '@
|
|
1
|
+
{"version":3,"file":"type.icon.mjs","sources":["../../../../packages/form/icon/src/default/index.ts","../../../../packages/form/icon/src/default/index.html","../../../../packages/form/icon/src/app.config.ts","../../../../packages/form/icon/src/index.module.ts","../../../../packages/form/icon/type.icon.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzDropDownModule } from 'ng-zorro-antd/dropdown';\nimport { FormlyModule, FieldType, FieldTypeConfig } from '@ebuilding-form/core';\n\nimport _ from 'lodash';\n@Component({\n selector: 'deon-nz-field-icon',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n FormsModule, ReactiveFormsModule,\n NzIconModule,\n NzDropDownModule,\n FormlyModule\n ]\n})\nexport class DeonNzFieldIcon extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {},\n };\n override get text() {\n if (this.model!! && this.model.hasOwnProperty(this.field.key)) {\n\n let str: any = this.field.key;\n return this.model[str];\n\n }\n return '';\n }\n\n listIcon: any[] = [\n 'icon-a001',\n 'icon-a020',\n 'icon-a078',\n 'icon-a079',\n 'icon-a07a',\n 'icon-a07b', // 第一行\n 'icon-a07c',\n 'icon-a07d',\n 'icon-a07e',\n 'icon-a07f',\n 'icon-a080',\n 'icon-a082', // 第二行\n 'icon-a083',\n 'icon-a084',\n 'icon-a085',\n 'icon-a086',\n 'icon-a088',\n 'icon-a089', // 第三行\n 'icon-a0db',\n 'icon-a0dc',\n 'icon-a0e4',\n 'icon-a0f1',\n 'icon-a0f2',\n 'icon-a107',\n ];\n\n get curValue() {\n let result = null;\n if (this.model && this.model!! && this.model[this.key]) {\n result = this.model[this.key];\n }\n return result;\n }\n\n get clickHide() {\n if (this.field.editor == false) {\n return false;\n }\n return true;\n }\n\n itemClick(item: any) {\n if (this.model && this.model!!) {\n this.model[this.key] = item;\n this.formControl.patchValue(this.model[this.key]);\n this.formControl.markAsTouched();\n }\n }\n}\n","<div nz-dropdown [nzDropdownMenu]=\"menu\" class=\"icon-box\" [nzOverlayClassName]=\"'icon-component'\" [nzTrigger]=\"'click'\">\n <span class=\"icon-span\" *ngIf=\"curValue != null && curValue!!; else empty\" [ngClass]=\"curValue\"> </span>\n <span class=\"icon-down\"><i nz-icon nzType=\"down\"></i></span>\n</div>\n<nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <ul nz-menu>\n <li nz-menu-item *ngFor=\"let item of listIcon\" (click)=\"itemClick(item)\">\n <div [ngClass]=\"item\"></div>\n </li>\n </ul>\n</nz-dropdown-menu>\n<ng-template #empty>\n <span class=\"icon-span\"> </span>\n</ng-template>\n","import { ConfigOption } from '@ebuilding-form/core';\nimport { DeonNzFieldIcon } from './default/index';\n\nexport function withFormlyFieldIcon(): ConfigOption {\n return {\n types: [\n {\n name: 'icon',\n component: DeonNzFieldIcon,\n wrappers: ['formly-form-field'],\n }\n ],\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ebuilding-form/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzDropDownModule } from 'ng-zorro-antd/dropdown';\nimport { DeonNzFormFieldModule } from '@ebuilding/form/form-field';\nimport { withFormlyFieldIcon } from './app.config';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n DeonNzFormFieldModule,\n NzIconModule,\n NzInputModule,\n NzButtonModule,\n NzDropDownModule,\n FormlyModule.forChild(withFormlyFieldIcon()),\n ],\n})\nexport class DeonNzIconModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;AAsBM,MAAO,eAAgB,SAAQ,SAA0B,CAAA;AACpD,IAAA,cAAc,GAAG;AACxB,QAAA,KAAK,EAAE,EAAE;KACV;AACD,IAAA,IAAa,IAAI,GAAA;AACf,QAAA,IAAI,IAAI,CAAC,KAAO,IAAI,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;AAE7D,YAAA,IAAI,GAAG,GAAQ,IAAI,CAAC,KAAK,CAAC,GAAG;AAC7B,YAAA,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC;;AAGxB,QAAA,OAAO,EAAE;;AA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