@dereekb/dbx-form 13.10.8 → 13.11.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-form",
3
- "version": "13.10.8",
3
+ "version": "13.11.0",
4
4
  "sideEffects": [
5
5
  "*.scss",
6
6
  "*.css"
@@ -14,15 +14,15 @@
14
14
  "@angular/material-date-fns-adapter": "21.2.9",
15
15
  "@angular/platform-browser": "21.2.11",
16
16
  "@bobbyquantum/ngx-editor": "21.0.0",
17
- "@dereekb/date": "13.10.8",
18
- "@dereekb/dbx-core": "13.10.8",
19
- "@dereekb/dbx-web": "13.10.8",
20
- "@dereekb/model": "13.10.8",
21
- "@dereekb/rxjs": "13.10.8",
22
- "@dereekb/util": "13.10.8",
23
- "@dereekb/vitest": "13.10.8",
24
- "@ng-forge/dynamic-forms": "0.9.0-next.3",
25
- "@ng-forge/dynamic-forms-material": "0.9.0-next.3",
17
+ "@dereekb/date": "13.11.0",
18
+ "@dereekb/dbx-core": "13.11.0",
19
+ "@dereekb/dbx-web": "13.11.0",
20
+ "@dereekb/model": "13.11.0",
21
+ "@dereekb/rxjs": "13.11.0",
22
+ "@dereekb/util": "13.11.0",
23
+ "@dereekb/vitest": "13.11.0",
24
+ "@ng-forge/dynamic-forms": "0.9.0-next.6",
25
+ "@ng-forge/dynamic-forms-material": "0.9.0-next.6",
26
26
  "@ng-web-apis/geolocation": "^5.2.0",
27
27
  "@ngbracket/ngx-layout": "^21.0.0",
28
28
  "@ngrx/component-store": "^21.1.0",
@@ -113,6 +113,8 @@ declare abstract class DbxForm<T = unknown> {
113
113
  * value to feed user-supplied isValid/isModified functions even while the form is invalid.
114
114
  * Defaults to {@link getValue}; implementations that gate {@link getValue} on validity
115
115
  * should override this to bypass that gate.
116
+ *
117
+ * @returns An observable of the form's current value, even when validity gates would suppress {@link getValue}.
116
118
  */
117
119
  currentValue(): Observable<T>;
118
120
  /**
@@ -598,6 +600,8 @@ declare class DbxForgeFormContext<T = unknown> implements DbxMutableForm<T>, OnD
598
600
  * Emits the current form value regardless of {@link requireValid}. Used by infrastructure
599
601
  * that needs the underlying value while the form is invalid (e.g. {@link DbxActionFormDirective}
600
602
  * feeding the value into user-supplied isModified functions to drive the action's disabled state).
603
+ *
604
+ * @returns An observable of the latest non-null form value, regardless of validity.
601
605
  */
602
606
  currentValue(): Observable<T>;
603
607
  getDisabled(): Observable<BooleanStringKeyArray>;
@@ -941,7 +945,7 @@ declare function dbxFormSourceObservableFromStream<T>(streamObs: Observable<DbxF
941
945
  /**
942
946
  * Modes that define when to copy data from the source to the form.
943
947
  *
944
- * - `'reset'`: Only copy data when the form is reset.
948
+ * - `'reset'`: Only copy data when the form is reset or is untouched.
945
949
  * - `'always'`: Always copy data when the data observable emits a value. Has a throttle of 20ms to prevent too many emissions. If emissions occur in a manner that appears to be a loop (more than 30 emissions in 1 second), then an error is thrown and warning printed to the console.
946
950
  * - `'every'`: Equal to always, but has no throttle or error message warning.
947
951
  */
@@ -6967,11 +6971,21 @@ interface DbxForgeFlexLayoutConfig extends Omit<DbxForgeFlexWrapper, 'type'> {
6967
6971
  */
6968
6972
  readonly size?: DbxFlexSize;
6969
6973
  }
6974
+ /**
6975
+ * Preferred overload: configure the flex layout with a single {@link DbxForgeFlexLayoutConfig} object.
6976
+ *
6977
+ * @param config - Layout configuration carrying `fields` and breakpoint/sizing defaults.
6978
+ * @returns A {@link ContainerField} with the flex wrapper applied and per-child sizing classes.
6979
+ */
6970
6980
  declare function dbxForgeFlexLayout(config: DbxForgeFlexLayoutConfig): ContainerField;
6971
6981
  /**
6972
6982
  * @deprecated Pass a {@link DbxForgeFlexLayoutConfig} object instead — the array form
6973
6983
  * diverges from how every other forge field factory is configured. Move array entries
6974
6984
  * into the `fields` property of the config object.
6985
+ *
6986
+ * @param fields - Child fields (or {@link DbxForgeFlexLayoutFieldConfig} entries with per-field size overrides).
6987
+ * @param config - Optional layout config (without `fields`) carrying breakpoint/sizing defaults.
6988
+ * @returns A {@link ContainerField} with the flex wrapper applied and per-child sizing classes.
6975
6989
  */
6976
6990
  declare function dbxForgeFlexLayout(fields: readonly (FieldDef<unknown> | DbxForgeFlexLayoutFieldConfig)[], config?: Omit<DbxForgeFlexLayoutConfig, 'fields'>): ContainerField;
6977
6991
 
@@ -7030,8 +7044,8 @@ declare function configureDbxForgeFormFieldWrapper<C extends DbxForgeFieldFuncti
7030
7044
  * config entirely when no values remain — keeps the wrapper bare in the common case
7031
7045
  * (e.g. a checkbox/toggle with no label override).
7032
7046
  *
7033
- * @param props - wrapper props applied to the inserted wrapper config
7034
- * @returns a configurator that mutates the builder instance to add the wrapper
7047
+ * @param inputProps - Wrapper props applied to the inserted wrapper config; undefined entries are stripped and the `props` block is omitted entirely when no values remain.
7048
+ * @returns A configurator that mutates the builder instance to add the form-field wrapper with the resolved props.
7035
7049
  */
7036
7050
  declare function configureDbxForgeFormFieldWrapperWith(inputProps?: Maybe<DbxForgeFormFieldWrapperProps>): <C extends DbxForgeFieldFunctionDef<any>>(instance: DbxForgeFieldFunctionFieldDefBuilderFunctionInstance<C>) => void;
7037
7051