@dereekb/dbx-form 9.25.9 → 9.25.11
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/esm2020/calendar/lib/calendar.schedule.selection.range.component.mjs +3 -3
- package/esm2020/lib/formly/field/selection/selection.field.mjs +7 -3
- package/esm2020/lib/formly/field/value/date/datetime.field.component.mjs +9 -4
- package/esm2020/lib/formly/formly.context.mjs +6 -5
- package/esm2020/lib/formly/formly.form.component.mjs +16 -4
- package/fesm2015/dereekb-dbx-form-calendar.mjs +2 -2
- package/fesm2015/dereekb-dbx-form-calendar.mjs.map +1 -1
- package/fesm2015/dereekb-dbx-form.mjs +31 -12
- package/fesm2015/dereekb-dbx-form.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-form-calendar.mjs +2 -2
- package/fesm2020/dereekb-dbx-form-calendar.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-form.mjs +33 -12
- package/fesm2020/dereekb-dbx-form.mjs.map +1 -1
- package/lib/extension/calendar/_calendar.scss +9 -8
- package/lib/formly/field/selection/selection.field.d.ts +6 -6
- package/lib/formly/field/value/date/datetime.field.component.d.ts +11 -3
- package/lib/formly/formly.form.component.d.ts +2 -1
- package/mapbox/package.json +4 -4
- package/package.json +4 -4
|
@@ -62,17 +62,18 @@
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
.date-range-field-customized
|
|
65
|
+
.date-range-field-customized,
|
|
66
|
+
.dbx-schedule-selection-timezone {
|
|
66
67
|
display: flex;
|
|
67
68
|
align-items: center;
|
|
69
|
+
}
|
|
68
70
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
71
|
+
.date-range-field-customized .date-range-field-customized-text {
|
|
72
|
+
padding: 4px 6px;
|
|
73
|
+
margin-right: 3px;
|
|
74
|
+
font-size: 0.8em;
|
|
75
|
+
font-weight: bold;
|
|
76
|
+
border-radius: 25px;
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
|
|
@@ -16,23 +16,23 @@ export interface ValueSelectionFieldConfig<T> extends LabeledFieldConfig, Descri
|
|
|
16
16
|
*
|
|
17
17
|
* Be sure to import FormlyMatNativeSelectModule.
|
|
18
18
|
*/
|
|
19
|
-
native?: boolean;
|
|
19
|
+
readonly native?: boolean;
|
|
20
20
|
/**
|
|
21
|
-
* Whether or not to add a clear option to the input values.
|
|
21
|
+
* Whether or not to add a clear option to the input values.
|
|
22
22
|
*/
|
|
23
|
-
addClearOption?: string | boolean;
|
|
23
|
+
readonly addClearOption?: string | boolean;
|
|
24
24
|
/**
|
|
25
25
|
* Values to select from.
|
|
26
26
|
*/
|
|
27
|
-
options: ObservableOrValue<ValueSelectionOption<T>[]>;
|
|
27
|
+
readonly options: ObservableOrValue<ValueSelectionOption<T>[]>;
|
|
28
28
|
/**
|
|
29
29
|
* Allow selecting multiple values and return an array.
|
|
30
30
|
*/
|
|
31
|
-
multiple?: boolean;
|
|
31
|
+
readonly multiple?: boolean;
|
|
32
32
|
/**
|
|
33
33
|
* The select all option configuration.
|
|
34
34
|
*/
|
|
35
|
-
selectAllOption?: true | string;
|
|
35
|
+
readonly selectAllOption?: true | string;
|
|
36
36
|
}
|
|
37
37
|
export declare function valueSelectionField<T>(config: ValueSelectionFieldConfig<T>): FormlyFieldConfig;
|
|
38
38
|
export declare function addValueSelectionOptionFunction<T>(label?: string | undefined): (options: ValueSelectionOption<T>[]) => ValueSelectionOption<T>[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Maybe, ReadableTimeString, ArrayOrValue, ISO8601DateString, DecisionFunction, TimezoneString, LogicalDate, DateOrDayString } from '@dereekb/util';
|
|
1
|
+
import { Maybe, ReadableTimeString, ArrayOrValue, ISO8601DateString, DecisionFunction, TimezoneString, LogicalDate, DateOrDayString, MapFunction } from '@dereekb/util';
|
|
2
2
|
import { DateTimeMinuteConfig, DateTimezoneUtcNormalInstance } from '@dereekb/date';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
@@ -38,6 +38,14 @@ export interface DbxDateTimeFieldSyncField {
|
|
|
38
38
|
*/
|
|
39
39
|
syncType: DbxDateTimeFieldSyncType;
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Configuration for the time date field that has a reference and optional map function to map the value.
|
|
43
|
+
*/
|
|
44
|
+
export interface DbxDateTimeFieldTimeDateConfig<I = unknown> {
|
|
45
|
+
readonly path: FormControlPath;
|
|
46
|
+
readonly mapValue?: MapFunction<I, Maybe<DateOrDayString>>;
|
|
47
|
+
}
|
|
48
|
+
export declare function isDbxDateTimeFieldTimeDateConfig(input: unknown): input is DbxDateTimeFieldTimeDateConfig;
|
|
41
49
|
export interface DbxDateTimeFieldProps extends FormlyFieldProps {
|
|
42
50
|
/**
|
|
43
51
|
* Custom date label.
|
|
@@ -116,7 +124,7 @@ export interface DbxDateTimeFieldProps extends FormlyFieldProps {
|
|
|
116
124
|
*
|
|
117
125
|
* The timezone abbrviation will also use this date when using the time-only mode.
|
|
118
126
|
*/
|
|
119
|
-
timeDate?: Maybe<ObservableOrValueGetter<Maybe<FormControlPath | DateOrDayString>>>;
|
|
127
|
+
timeDate?: Maybe<ObservableOrValueGetter<Maybe<DbxDateTimeFieldTimeDateConfig | FormControlPath | DateOrDayString>>>;
|
|
120
128
|
/**
|
|
121
129
|
* Whether or not to display the timezone. True by default.
|
|
122
130
|
*/
|
|
@@ -178,7 +186,7 @@ export declare class DbxDateTimeFieldComponent extends FieldType<FieldTypeConfig
|
|
|
178
186
|
get hideDateHint(): boolean;
|
|
179
187
|
get hideDatePicker(): boolean;
|
|
180
188
|
get timezone(): Maybe<ObservableOrValueGetter<Maybe<string>>>;
|
|
181
|
-
get timeDate(): Maybe<ObservableOrValueGetter<Maybe<DateOrDayString
|
|
189
|
+
get timeDate(): Maybe<ObservableOrValueGetter<Maybe<DateOrDayString | DbxDateTimeFieldTimeDateConfig<unknown>>>>;
|
|
182
190
|
get showTimezone(): boolean;
|
|
183
191
|
get presets(): ObservableOrValueGetter<DateTimePresetConfiguration[]> | undefined;
|
|
184
192
|
readonly fullDay$: Observable<boolean>;
|
|
@@ -23,7 +23,8 @@ export declare class DbxFormlyFormComponent<T> extends AbstractSubscriptionDirec
|
|
|
23
23
|
private _reset;
|
|
24
24
|
private _forceUpdate;
|
|
25
25
|
private _disabledSub;
|
|
26
|
-
|
|
26
|
+
private _enforceDisabledSub;
|
|
27
|
+
readonly form: FormGroup<{}>;
|
|
27
28
|
model: T;
|
|
28
29
|
options: FormlyFormOptions;
|
|
29
30
|
readonly fields$: Observable<FormlyFieldConfig<import("@ngx-formly/core").FormlyFieldProps & {
|
package/mapbox/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-form/mapbox",
|
|
3
|
-
"version": "9.25.
|
|
3
|
+
"version": "9.25.11",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^14.1.0",
|
|
6
6
|
"@angular/core": "^14.1.0",
|
|
7
7
|
"@angular/forms": "^14.2.0",
|
|
8
|
-
"@dereekb/dbx-web": "9.25.
|
|
8
|
+
"@dereekb/dbx-web": "9.25.11",
|
|
9
9
|
"@ngx-formly/core": "^6.0.0",
|
|
10
10
|
"@ngx-formly/material": "^6.0.0",
|
|
11
11
|
"@ng-web-apis/geolocation": "^2.0.0",
|
|
12
12
|
"mapbox-gl": "^2.9.2",
|
|
13
|
-
"@dereekb/dbx-web/mapbox": "9.25.
|
|
14
|
-
"@dereekb/dbx-form": "9.25.
|
|
13
|
+
"@dereekb/dbx-web/mapbox": "9.25.11",
|
|
14
|
+
"@dereekb/dbx-form": "9.25.11"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"tslib": "^2.3.0"
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-form",
|
|
3
|
-
"version": "9.25.
|
|
3
|
+
"version": "9.25.11",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^14.0.0",
|
|
6
6
|
"@angular/core": "^14.0.0",
|
|
7
7
|
"lodash.clonedeep": "^4.5.0",
|
|
8
|
-
"@dereekb/dbx-core": "9.25.
|
|
8
|
+
"@dereekb/dbx-core": "9.25.11",
|
|
9
9
|
"@angular/material": "^14.2.0",
|
|
10
|
-
"@dereekb/dbx-web": "9.25.
|
|
10
|
+
"@dereekb/dbx-web": "9.25.11",
|
|
11
11
|
"@angular/forms": "^14.2.0",
|
|
12
12
|
"@ngx-formly/core": "^6.0.0",
|
|
13
13
|
"@ngx-formly/material": "^6.0.0",
|
|
14
14
|
"ngx-editor": "^15.0.0",
|
|
15
15
|
"ngx-mat-intl-tel-input": "^5.0.0",
|
|
16
|
-
"@dereekb/model": "9.25.
|
|
16
|
+
"@dereekb/model": "9.25.11"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"tslib": "^2.3.0"
|