@bcweed/dynamic-form-lib 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AngularDynamicFormLibrary.esproj +1 -0
- package/obj/Debug/package.g.props +1 -1
- package/package.json +1 -1
- package/projects/dynamic-form-lib/package.json +2 -2
- package/projects/dynamic-form-lib/src/lib/dynamic-form-field/dynamic-form-field.component.html +1 -1
- package/projects/dynamic-form-lib/src/lib/dynamic-form-field/dynamic-form-field.component.ts +18 -4
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
<ShouldRunBuildScript>false</ShouldRunBuildScript>
|
|
7
7
|
<!-- Folder where production build objects will be placed -->
|
|
8
8
|
<BuildOutputFolder>$(MSBuildProjectDirectory)\dist\AngularDynamicFormLibrary\browser\</BuildOutputFolder>
|
|
9
|
+
<AzureFunctionsProject>false</AzureFunctionsProject>
|
|
9
10
|
</PropertyGroup>
|
|
10
11
|
<ItemGroup>
|
|
11
12
|
<Folder Include="dist\" />
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<Project>
|
|
3
3
|
<PropertyGroup>
|
|
4
4
|
<PackageJsonName Condition="$(PackageJsonName) == ''">@bcweed/dynamic-form-lib</PackageJsonName>
|
|
5
|
-
<PackageJsonVersion Condition="$(PackageJsonVersion) == ''">0.0.
|
|
5
|
+
<PackageJsonVersion Condition="$(PackageJsonVersion) == ''">0.0.4</PackageJsonVersion>
|
|
6
6
|
<PackageJsonPrivate Condition="$(PackageJsonPrivate) == ''">false</PackageJsonPrivate>
|
|
7
7
|
<PackageJsonPublishconfigAccess Condition="$(PackageJsonPublishconfigAccess) == ''">public</PackageJsonPublishconfigAccess>
|
|
8
8
|
<PackageJsonDescription Condition="$(PackageJsonDescription) == ''">This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.19.</PackageJsonDescription>
|
package/package.json
CHANGED
package/projects/dynamic-form-lib/src/lib/dynamic-form-field/dynamic-form-field.component.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { InputTextModule } from 'primeng/inputtext';
|
|
|
6
6
|
import { TextareaModule } from 'primeng/textarea';
|
|
7
7
|
//import { InputTextarea } from 'primeng/inputtextarea';
|
|
8
8
|
import { InputNumberModule } from 'primeng/inputnumber';
|
|
9
|
-
import { CheckboxModule } from 'primeng/checkbox';
|
|
9
|
+
import { CheckboxChangeEvent, CheckboxModule } from 'primeng/checkbox';
|
|
10
10
|
import { RadioButtonModule, RadioButtonClickEvent, RadioButton } from 'primeng/radiobutton';
|
|
11
11
|
import { SelectModule } from 'primeng/select';
|
|
12
12
|
//import { DropdownModule } from 'primeng/dropdown';
|
|
@@ -175,10 +175,24 @@ export class DynamicFormFieldComponent implements OnInit {
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
onClick(event: Event): void {
|
|
178
|
-
|
|
178
|
+
|
|
179
179
|
if (typeof this.field.onClick === 'function') {
|
|
180
|
-
|
|
181
|
-
|
|
180
|
+
|
|
181
|
+
this.field.onClick((event.target as HTMLInputElement).value, this.form);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
onChange(event: Event): void {
|
|
185
|
+
|
|
186
|
+
if (typeof this.field.onChange === 'function') {
|
|
187
|
+
|
|
188
|
+
this.field.onChange((event.target as HTMLInputElement).value, this.form);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
onCheckboxChange(event: CheckboxChangeEvent): void {
|
|
192
|
+
|
|
193
|
+
if (typeof this.field.onChange === 'function') {
|
|
194
|
+
|
|
195
|
+
this.field.onChange((event.checked ? true : false), this.form);
|
|
182
196
|
}
|
|
183
197
|
}
|
|
184
198
|
labelWidthStyle(): string {
|