@ngx-smz/core 21.1.17 → 21.1.19
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/package.json
CHANGED
package/types/ngx-smz-core.d.ts
CHANGED
|
@@ -1337,6 +1337,8 @@ interface SmzForm<T> {
|
|
|
1337
1337
|
context?: SmzFormContext<T>;
|
|
1338
1338
|
isDebug?: boolean;
|
|
1339
1339
|
formId?: string;
|
|
1340
|
+
/** If set, root `<form>` of `smz-form-group` gets `data-testid` with this value. */
|
|
1341
|
+
formTestId?: string;
|
|
1340
1342
|
behaviors?: SmzFormsBehaviorsConfig;
|
|
1341
1343
|
functions?: SmzFormsBehaviorsFunctions<T>;
|
|
1342
1344
|
groups: SmzFormGroup[];
|
|
@@ -7090,6 +7092,11 @@ declare class SmzFormBuilder<TResponse> {
|
|
|
7090
7092
|
constructor(dialogBuilderRef?: SmzDialogBuilder<TResponse>, state?: SmzForm<TResponse>);
|
|
7091
7093
|
/** Turns on form debug logging in the form group component. */
|
|
7092
7094
|
debugMode(): SmzFormBuilder<TResponse>;
|
|
7095
|
+
/**
|
|
7096
|
+
* Sets {@link SmzForm.formTestId}: exposed on the root {@code <form>} as {@code data-testid}.
|
|
7097
|
+
* Pass a blank string to clear a previously set id.
|
|
7098
|
+
*/
|
|
7099
|
+
withFormTestId(testId: string): SmzFormBuilder<TResponse>;
|
|
7093
7100
|
/**
|
|
7094
7101
|
* Appends a new form group and returns a builder to add controls, layout, and validators.
|
|
7095
7102
|
* @param name Optional group title; when set, the group can show a heading.
|