@dereekb/dbx-form 13.11.12 → 13.11.14

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.
@@ -6331,7 +6331,12 @@ function dateTimeFieldMapper(fieldDef) {
6331
6331
  const defaultProps = inject(DEFAULT_PROPS);
6332
6332
  const defaultValidationMessages = inject(DEFAULT_VALIDATION_MESSAGES);
6333
6333
  return computed(() => {
6334
- return buildValueFieldInputs(fieldDef, ctx, defaultProps?.(), defaultValidationMessages?.());
6334
+ const inputs = buildValueFieldInputs(fieldDef, ctx, defaultProps?.());
6335
+ const dvm = defaultValidationMessages?.();
6336
+ if (dvm !== undefined) {
6337
+ inputs['defaultValidationMessages'] = dvm;
6338
+ }
6339
+ return inputs;
6335
6340
  });
6336
6341
  }
6337
6342
 
@@ -6528,7 +6533,12 @@ function dateRangeFieldMapper(fieldDef) {
6528
6533
  const defaultProps = inject(DEFAULT_PROPS);
6529
6534
  const defaultValidationMessages = inject(DEFAULT_VALIDATION_MESSAGES);
6530
6535
  return computed(() => {
6531
- return buildValueFieldInputs(fieldDef, ctx, defaultProps?.(), defaultValidationMessages?.());
6536
+ const inputs = buildValueFieldInputs(fieldDef, ctx, defaultProps?.());
6537
+ const dvm = defaultValidationMessages?.();
6538
+ if (dvm !== undefined) {
6539
+ inputs['defaultValidationMessages'] = dvm;
6540
+ }
6541
+ return inputs;
6532
6542
  });
6533
6543
  }
6534
6544
 
@@ -7117,7 +7127,12 @@ function fixedDateRangeFieldMapper(fieldDef) {
7117
7127
  const defaultProps = inject(DEFAULT_PROPS);
7118
7128
  const defaultValidationMessages = inject(DEFAULT_VALIDATION_MESSAGES);
7119
7129
  return computed(() => {
7120
- return buildValueFieldInputs(fieldDef, ctx, defaultProps?.(), defaultValidationMessages?.());
7130
+ const inputs = buildValueFieldInputs(fieldDef, ctx, defaultProps?.());
7131
+ const dvm = defaultValidationMessages?.();
7132
+ if (dvm !== undefined) {
7133
+ inputs['defaultValidationMessages'] = dvm;
7134
+ }
7135
+ return inputs;
7121
7136
  });
7122
7137
  }
7123
7138
 
@@ -7674,7 +7689,12 @@ function timeDurationFieldMapper(fieldDef) {
7674
7689
  const defaultProps = inject(DEFAULT_PROPS);
7675
7690
  const defaultValidationMessages = inject(DEFAULT_VALIDATION_MESSAGES);
7676
7691
  return computed(() => {
7677
- return buildValueFieldInputs(fieldDef, ctx, defaultProps?.(), defaultValidationMessages?.());
7692
+ const inputs = buildValueFieldInputs(fieldDef, ctx, defaultProps?.());
7693
+ const dvm = defaultValidationMessages?.();
7694
+ if (dvm !== undefined) {
7695
+ inputs['defaultValidationMessages'] = dvm;
7696
+ }
7697
+ return inputs;
7678
7698
  });
7679
7699
  }
7680
7700
 
@@ -8055,7 +8075,12 @@ function phoneFieldMapper(fieldDef) {
8055
8075
  const defaultProps = inject(DEFAULT_PROPS);
8056
8076
  const defaultValidationMessages = inject(DEFAULT_VALIDATION_MESSAGES);
8057
8077
  return computed(() => {
8058
- return buildValueFieldInputs(fieldDef, ctx, defaultProps?.(), defaultValidationMessages?.());
8078
+ const inputs = buildValueFieldInputs(fieldDef, ctx, defaultProps?.());
8079
+ const dvm = defaultValidationMessages?.();
8080
+ if (dvm !== undefined) {
8081
+ inputs['defaultValidationMessages'] = dvm;
8082
+ }
8083
+ return inputs;
8059
8084
  });
8060
8085
  }
8061
8086
 
@@ -10689,7 +10714,7 @@ function dbxForgeStyleWrapper(config) {
10689
10714
  * Forge wrapper component that renders child fields with a loading
10690
10715
  * indicator shown during async validation.
10691
10716
  *
10692
- * Implements {@link FieldWrapperContract} and monitors the field tree's
10717
+ * Implements {@link FieldWrapper} and monitors the field tree's
10693
10718
  * pending signal to detect when async validators are running.
10694
10719
  */
10695
10720
  class DbxForgeWorkingWrapperComponent {
@@ -10968,7 +10993,7 @@ const DBX_FORGE_FIELD_WRAPPER_TYPES = [
10968
10993
  },
10969
10994
  {
10970
10995
  wrapperName: DBX_FORGE_SECTION_WRAPPER_TYPE_NAME,
10971
- loadComponent: () => import('./dereekb-dbx-form-section.wrapper.component-Dy5kBYDD.mjs').then((m) => m.DbxForgeSectionWrapperComponent)
10996
+ loadComponent: () => import('./dereekb-dbx-form-section.wrapper.component-BoR5-a8A.mjs').then((m) => m.DbxForgeSectionWrapperComponent)
10972
10997
  },
10973
10998
  {
10974
10999
  wrapperName: DBX_FORGE_STYLE_WRAPPER_TYPE_NAME,
@@ -10976,7 +11001,7 @@ const DBX_FORGE_FIELD_WRAPPER_TYPES = [
10976
11001
  },
10977
11002
  {
10978
11003
  wrapperName: DBX_FORGE_INFO_WRAPPER_TYPE_NAME,
10979
- loadComponent: () => import('./dereekb-dbx-form-info.wrapper.component-DR63j8z2.mjs').then((m) => m.DbxForgeInfoWrapperComponent)
11004
+ loadComponent: () => import('./dereekb-dbx-form-info.wrapper.component-DxmZz3Dw.mjs').then((m) => m.DbxForgeInfoWrapperComponent)
10980
11005
  },
10981
11006
  {
10982
11007
  wrapperName: DBX_FORGE_WORKING_WRAPPER_TYPE_NAME,
@@ -11022,16 +11047,6 @@ function provideDbxForgeFormFieldDeclarations(...additionalFieldTypes) {
11022
11047
  return provideDynamicForm(...withMaterialFields(), ...DBX_FORGE_FIELD_TYPES, ...DBX_FORGE_FIELD_WRAPPER_TYPES, ...additionalFieldTypes);
11023
11048
  }
11024
11049
 
11025
- /**
11026
- * Module augmentation that registers all custom dbx-form forge field types
11027
- * with ng-forge's DynamicFormFieldRegistry.
11028
- *
11029
- * This enables TypeScript to recognize custom field types in FormConfig.fields
11030
- * without requiring `as unknown` casts.
11031
- *
11032
- * @see https://www.ng-forge.com/dynamic-forms/custom/building-an-adapter
11033
- */
11034
-
11035
11050
  /**
11036
11051
  * Creates a forge field array for a simple search form with a single text input.
11037
11052
  *