@stemy/ngx-dynamic-form 19.9.37 → 19.9.38
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, inject, Inject, Injectable, untracked, input, Renderer2, ElementRef, computed, signal, effect, HostBinding, Directive, Input, Optional, Pipe, Type, Component, Injector, output, ChangeDetectionStrategy, ViewEncapsulation, viewChild, makeEnvironmentProviders, NgModule } from '@angular/core';
|
|
3
3
|
import * as i2 from '@stemy/ngx-utils';
|
|
4
|
-
import { cachedFactory, ReflectUtils, ObjectUtils, convertToDateFormat, LANGUAGE_SERVICE, convertToDate, ForbiddenZone, SetUtils, ArrayUtils, API_SERVICE, StringUtils, AsyncMethodBase, EventsService, NgxUtilsModule } from '@stemy/ngx-utils';
|
|
4
|
+
import { cachedFactory, ReflectUtils, ObjectUtils, convertToDateFormat, LANGUAGE_SERVICE, convertToDate, ForbiddenZone, SetUtils, ArrayUtils, API_SERVICE, StringUtils, Enum, AsyncMethodBase, EventsService, NgxUtilsModule } from '@stemy/ngx-utils';
|
|
5
5
|
import { of, merge, Observable, firstValueFrom, BehaviorSubject, combineLatestWith, switchMap, distinctUntilChanged, first, Subject, map, filter } from 'rxjs';
|
|
6
6
|
import { debounceTime } from 'rxjs/operators';
|
|
7
7
|
import * as i1 from '@angular/forms';
|
|
@@ -1136,7 +1136,7 @@ class DynamicFormBuilderService {
|
|
|
1136
1136
|
path: target => {
|
|
1137
1137
|
const tp = target.parent;
|
|
1138
1138
|
const prefix = tp?.path || "";
|
|
1139
|
-
return [prefix, String(target.key ?? "")].filter(ObjectUtils.isStringWithValue).join("
|
|
1139
|
+
return [prefix, String(target.key ?? "")].filter(ObjectUtils.isStringWithValue).join(".");
|
|
1140
1140
|
},
|
|
1141
1141
|
testId: target => {
|
|
1142
1142
|
const tp = target.parent;
|
|
@@ -1733,7 +1733,8 @@ class DynamicFormService {
|
|
|
1733
1733
|
Object.assign(result, group);
|
|
1734
1734
|
continue;
|
|
1735
1735
|
}
|
|
1736
|
-
|
|
1736
|
+
const value = control.value;
|
|
1737
|
+
result[key] = value instanceof Enum ? value.value : value;
|
|
1737
1738
|
}
|
|
1738
1739
|
return result;
|
|
1739
1740
|
}
|