@dereekb/dbx-form 10.1.17 → 10.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/esm2022/lib/form/form.mjs +9 -1
- package/esm2022/lib/formly/field/value/date/datetime.field.component.mjs +21 -22
- package/esm2022/lib/formly/formly.form.component.mjs +12 -13
- package/fesm2022/dereekb-dbx-form.mjs +39 -33
- package/fesm2022/dereekb-dbx-form.mjs.map +1 -1
- package/lib/form/form.d.ts +2 -1
- package/lib/formly/field/value/date/_date.scss +1 -0
- package/lib/formly/field/value/date/datetime.field.component.d.ts +2 -0
- package/mapbox/package.json +1 -1
- package/package.json +1 -1
package/lib/form/form.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Provider, Type } from '@angular/core';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { LockSet } from '@dereekb/rxjs';
|
|
4
4
|
import { BooleanStringKeyArray, Maybe } from '@dereekb/util';
|
|
5
|
-
import { FormControlStatus } from '@angular/forms';
|
|
5
|
+
import { AbstractControl, FormControlStatus } from '@angular/forms';
|
|
6
6
|
/**
|
|
7
7
|
* Current state of a DbxForm
|
|
8
8
|
*/
|
|
@@ -89,3 +89,4 @@ export declare abstract class DbxMutableForm<T = unknown> extends DbxForm<T> {
|
|
|
89
89
|
}
|
|
90
90
|
export declare function provideDbxForm<S extends DbxForm>(sourceType: Type<S>): Provider[];
|
|
91
91
|
export declare function provideDbxMutableForm<S extends DbxMutableForm>(sourceType: Type<S>): Provider[];
|
|
92
|
+
export declare function toggleDisableFormControl(form: AbstractControl<any>, isDisabled: boolean, config?: Parameters<AbstractControl['disable']>[0]): void;
|
|
@@ -56,6 +56,7 @@ $dbx-datetime-row-width: 40px + ($dbx-datetime-button-spacing * 2); // times 2 f
|
|
|
56
56
|
display: flex;
|
|
57
57
|
justify-content: center;
|
|
58
58
|
align-items: center;
|
|
59
|
+
min-width: 220px;
|
|
59
60
|
|
|
60
61
|
.mat-mdc-form-field-subscript-wrapper {
|
|
61
62
|
// hide the subscript wrapper since it is not used here
|
|
@@ -156,6 +156,7 @@ export declare class DbxDateTimeFieldComponent extends FieldType<FieldTypeConfig
|
|
|
156
156
|
private _sub;
|
|
157
157
|
private _valueSub;
|
|
158
158
|
private _config;
|
|
159
|
+
readonly latestConfig$: Observable<Maybe<DbxDateTimePickerConfiguration>>;
|
|
159
160
|
private _syncConfigObs;
|
|
160
161
|
private _defaultTimezone;
|
|
161
162
|
private _timeDate;
|
|
@@ -168,6 +169,7 @@ export declare class DbxDateTimeFieldComponent extends FieldType<FieldTypeConfig
|
|
|
168
169
|
readonly formControl$: Observable<AbstractControl<Maybe<Date>, Maybe<Date>>>;
|
|
169
170
|
private _cleared;
|
|
170
171
|
private _updateTime;
|
|
172
|
+
private _configUpdateTimeSync;
|
|
171
173
|
readonly timezone$: Observable<Maybe<TimezoneString>>;
|
|
172
174
|
readonly timezoneInstance$: Observable<Maybe<DateTimezoneUtcNormalInstance>>;
|
|
173
175
|
readonly timeDate$: Observable<Maybe<Date>>;
|
package/mapbox/package.json
CHANGED