@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.
@@ -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.2</PackageJsonVersion>
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcweed/dynamic-form-lib",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "dynamic-form-lib",
3
- "version": "0.0.2",
2
+ "name": "@bcweed/dynamic-form-lib",
3
+ "version": "0.0.4",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^20.3.18",
6
6
  "@angular/cdk": "^20.2.14",
@@ -151,7 +151,7 @@
151
151
  tooltipPosition="right"
152
152
  pTooltip="{{field.toolTip}}"
153
153
  (onBlur)="onBlur()"
154
- (onClick)="onClick($event)"></p-checkbox>
154
+ (onChange)="onCheckboxChange($event)"></p-checkbox>
155
155
  </div>
156
156
 
157
157
  <!-- Radio Buttons -->
@@ -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
- this.field.onClick((event.target as HTMLInputElement).value, this.form);
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 {