@dereekb/dbx-form 9.25.6 → 9.25.8

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,4 +1,4 @@
1
- import { Maybe, ReadableTimeString, ArrayOrValue, ISO8601DateString, DecisionFunction, TimezoneString, LogicalDate } from '@dereekb/util';
1
+ import { Maybe, ReadableTimeString, ArrayOrValue, ISO8601DateString, DecisionFunction, TimezoneString, LogicalDate, DateOrDayString } 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';
@@ -110,6 +110,12 @@ export interface DbxDateTimeFieldProps extends FormlyFieldProps {
110
110
  * Ignored if fullDayInUTC is true.
111
111
  */
112
112
  timezone?: Maybe<ObservableOrValueGetter<Maybe<TimezoneString>>>;
113
+ /**
114
+ * (Optional) The date to apply the time to.
115
+ *
116
+ * The timezone abbrviation will also use this date when using the time-only mode.
117
+ */
118
+ timeDate?: Maybe<ObservableOrValueGetter<Maybe<DateOrDayString>>>;
113
119
  /**
114
120
  * Whether or not to display the timezone. True by default.
115
121
  */
@@ -137,6 +143,7 @@ export declare class DbxDateTimeFieldComponent extends FieldType<FieldTypeConfig
137
143
  private _config;
138
144
  private _syncConfigObs;
139
145
  private _defaultTimezone;
146
+ private _timeDate;
140
147
  private _presets;
141
148
  private _fullDayInputCtrl?;
142
149
  private _fullDayControlObs;
@@ -147,6 +154,7 @@ export declare class DbxDateTimeFieldComponent extends FieldType<FieldTypeConfig
147
154
  private _updateTime;
148
155
  readonly timezone$: Observable<Maybe<TimezoneString>>;
149
156
  readonly timezoneInstance$: Observable<Maybe<DateTimezoneUtcNormalInstance>>;
157
+ readonly timeDate$: Observable<Maybe<Date>>;
150
158
  readonly valueInSystemTimezone$: Observable<Maybe<Date>>;
151
159
  /**
152
160
  * Used to trigger/display visual updates (specifically on timeDistance, etc.).
@@ -169,6 +177,7 @@ export declare class DbxDateTimeFieldComponent extends FieldType<FieldTypeConfig
169
177
  get hideDateHint(): boolean;
170
178
  get hideDatePicker(): boolean;
171
179
  get timezone(): Maybe<ObservableOrValueGetter<Maybe<string>>>;
180
+ get timeDate(): Maybe<ObservableOrValueGetter<Maybe<DateOrDayString>>>;
172
181
  get showTimezone(): boolean;
173
182
  get presets(): ObservableOrValueGetter<DateTimePresetConfiguration[]> | undefined;
174
183
  readonly fullDay$: Observable<boolean>;
@@ -12,15 +12,15 @@ export declare const TAKE_NEXT_UPCOMING_TIME_CONFIG_OBS: () => Observable<DbxDat
12
12
  */
13
13
  export declare function timeOnlyField(config?: Partial<TimeFieldConfig>): FormlyFieldConfig;
14
14
  export declare function dateTimeField(config?: Partial<DateTimeFieldConfig>): import("../../wrapper/wrapper").WrapperFormlyFieldConfig<import("../../wrapper/style.wrapper.component").DbxFormStyleWrapperConfig, FormlyFieldConfig<DbxDateTimeFieldProps>>;
15
- export declare type DateDateRangeFieldDateConfig = Omit<DateTimeFieldConfig, 'dateLabel' | 'timeOnly' | 'timeMode' | 'getSyncFieldsObs' | 'timezone' | 'showTimezone'>;
16
- export interface DateDateRangeFieldConfig extends Pick<DateTimeFieldConfig, 'timezone' | 'showTimezone' | 'presets'> {
15
+ export declare type DateDateRangeFieldDateConfig = Omit<DateTimeFieldConfig, 'dateLabel' | 'timeOnly' | 'timeMode' | 'getSyncFieldsObs'>;
16
+ export interface DateDateRangeFieldConfig extends Pick<DateTimeFieldConfig, 'timeDate' | 'timezone' | 'showTimezone' | 'presets'> {
17
17
  required?: boolean;
18
18
  start?: Partial<DateDateRangeFieldDateConfig>;
19
19
  end?: Partial<DateDateRangeFieldDateConfig>;
20
20
  }
21
21
  export declare function dateRangeField(config?: DateDateRangeFieldConfig): FormlyFieldConfig;
22
- export declare type DateTimeRangeFieldTimeConfig = Omit<DateDateRangeFieldDateConfig, 'allDayLabel' | 'fullDayFieldName' | 'fullDayInUTC' | 'timezone' | 'showTimezone'>;
23
- export interface DateDateTimeRangeFieldConfig extends Pick<DateTimeFieldConfig, 'timezone' | 'showTimezone' | 'presets'> {
22
+ export declare type DateTimeRangeFieldTimeConfig = Omit<DateDateRangeFieldDateConfig, 'allDayLabel' | 'fullDayFieldName' | 'fullDayInUTC'>;
23
+ export interface DateDateTimeRangeFieldConfig extends Pick<DateTimeFieldConfig, 'timeDate' | 'timezone' | 'showTimezone' | 'presets'> {
24
24
  required?: boolean;
25
25
  start?: Partial<DateTimeRangeFieldTimeConfig>;
26
26
  end?: Partial<DateTimeRangeFieldTimeConfig>;
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-form/mapbox",
3
- "version": "9.25.6",
3
+ "version": "9.25.8",
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.6",
8
+ "@dereekb/dbx-web": "9.25.8",
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.6",
14
- "@dereekb/dbx-form": "9.25.6"
13
+ "@dereekb/dbx-web/mapbox": "9.25.8",
14
+ "@dereekb/dbx-form": "9.25.8"
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.6",
3
+ "version": "9.25.8",
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.6",
8
+ "@dereekb/dbx-core": "9.25.8",
9
9
  "@angular/material": "^14.2.0",
10
- "@dereekb/dbx-web": "9.25.6",
10
+ "@dereekb/dbx-web": "9.25.8",
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.6"
16
+ "@dereekb/model": "9.25.8"
17
17
  },
18
18
  "dependencies": {
19
19
  "tslib": "^2.3.0"