@dereekb/dbx-form 9.25.7 → 9.25.9
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.days.component.mjs +1 -1
- package/esm2020/lib/form/form.angular.util.mjs +13 -0
- package/esm2020/lib/form/index.mjs +2 -1
- package/esm2020/lib/formly/field/value/date/datetime.field.component.mjs +56 -14
- package/esm2020/lib/formly/field/value/date/datetime.field.mjs +10 -6
- package/fesm2015/dereekb-dbx-form-calendar.mjs.map +1 -1
- package/fesm2015/dereekb-dbx-form.mjs +79 -23
- package/fesm2015/dereekb-dbx-form.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-form-calendar.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-form.mjs +76 -19
- package/fesm2020/dereekb-dbx-form.mjs.map +1 -1
- package/lib/form/form.angular.util.d.ts +15 -0
- package/lib/form/index.d.ts +1 -0
- package/lib/formly/field/value/date/datetime.field.component.d.ts +11 -1
- package/lib/formly/field/value/date/datetime.field.d.ts +4 -4
- package/mapbox/package.json +4 -4
- package/package.json +4 -4
|
@@ -26,7 +26,7 @@ import * as i1$1 from '@angular/material/button';
|
|
|
26
26
|
import { MatButtonModule } from '@angular/material/button';
|
|
27
27
|
import * as i3$2 from '@angular/flex-layout/flex';
|
|
28
28
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
29
|
-
import { objectIsEmpty, mergeObjectsFunction, filterFromPOJOFunction, mergeObjects, filterFromPOJO, asArray, objectHasNoKeys, addPlusPrefixToNumber, convertMaybeToArray, isSelectedDecisionFunctionFactory, readKeysFrom, hasDifferentValues, makeValuesGroupMap, separateValues, filterUniqueValues, searchStringFilterFunction, caseInsensitiveFilterByIndexOfDecisionFactory, sortByStringFunction, mergeIntoArray, lastValue, arrayToMap, setContainsAllValues, addToSetCopy, setsAreEquivalent, filterMaybeValues, mergeArrays, cachedGetter, makeGetter, asDecisionFunction, getValueFromGetter, asGetter, MS_IN_MINUTE, isMonthDaySlashDate, HAS_WEBSITE_DOMAIN_NAME_REGEX, KeyValueTypleValueFilter, valuesFromPOJO, allObjectsAreEqual, isNumberDivisibleBy, nearestDivisibleValues, isE164PhoneNumber as isE164PhoneNumber$1, isValidPhoneExtensionNumber, e164PhoneNumberExtensionPair, mapMaybeFunction, transformNumberFunction, concatArrays, e164PhoneNumberFromE164PhoneNumberExtensionPair, transformStringFunction, US_STATE_CODE_STRING_REGEX, ZIP_CODE_STRING_REGEX, LAT_LNG_PATTERN, BooleanStringKeyArrayUtilityInstance, capitalizeFirstLetter } from '@dereekb/util';
|
|
29
|
+
import { objectIsEmpty, mergeObjectsFunction, filterFromPOJOFunction, mergeObjects, filterFromPOJO, asArray, objectHasNoKeys, addPlusPrefixToNumber, convertMaybeToArray, isSelectedDecisionFunctionFactory, readKeysFrom, hasDifferentValues, makeValuesGroupMap, separateValues, filterUniqueValues, searchStringFilterFunction, caseInsensitiveFilterByIndexOfDecisionFactory, sortByStringFunction, mergeIntoArray, lastValue, arrayToMap, setContainsAllValues, addToSetCopy, setsAreEquivalent, filterMaybeValues, mergeArrays, cachedGetter, makeGetter, asDecisionFunction, getValueFromGetter, asGetter, isISO8601DayStringStart, MS_IN_MINUTE, isMonthDaySlashDate, HAS_WEBSITE_DOMAIN_NAME_REGEX, KeyValueTypleValueFilter, valuesFromPOJO, allObjectsAreEqual, isNumberDivisibleBy, nearestDivisibleValues, isE164PhoneNumber as isE164PhoneNumber$1, isValidPhoneExtensionNumber, e164PhoneNumberExtensionPair, mapMaybeFunction, transformNumberFunction, concatArrays, e164PhoneNumberFromE164PhoneNumberExtensionPair, transformStringFunction, US_STATE_CODE_STRING_REGEX, ZIP_CODE_STRING_REGEX, LAT_LNG_PATTERN, BooleanStringKeyArrayUtilityInstance, capitalizeFirstLetter } from '@dereekb/util';
|
|
30
30
|
import * as i2$2 from '@angular/material/slide-toggle';
|
|
31
31
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
32
32
|
import * as i2$3 from '@angular/flex-layout/extended';
|
|
@@ -44,7 +44,7 @@ import * as i6 from '@angular/material/chips';
|
|
|
44
44
|
import { MatChipsModule } from '@angular/material/chips';
|
|
45
45
|
import { MatListModule } from '@angular/material/list';
|
|
46
46
|
import { ENTER, COMMA } from '@angular/cdk/keycodes';
|
|
47
|
-
import { skipUntilTimeElapsedAfterLastEmission, toJsDate, parseISO8601DayStringToDate, formatToISO8601DateString, formatToISO8601DayString, isSameDateHoursAndMinutes, safeToJsDate, guessCurrentTimezone, dateTimezoneUtcNormal, toLocalReadableTimeString, getTimezoneAbbreviation,
|
|
47
|
+
import { skipUntilTimeElapsedAfterLastEmission, toJsDate, parseISO8601DayStringToDate, formatToISO8601DateString, formatToISO8601DayString, isSameDateHoursAndMinutes, safeToJsDate, guessCurrentTimezone, dateTimezoneUtcNormal, toJsDayDate, isSameDateDay, toLocalReadableTimeString, getTimezoneAbbreviation, utcDayForDate, readableTimeStringToDate, findMinDate, dateFromLogicalDate, findMaxDate, dateTimeMinuteDecisionFunction, DateTimeMinuteInstance, isSameDate, limitDateTimeInstance, isSameDateDayRange, dateRange, clampDateRangeToDateRange, isDateInDateRange, isSameDateRange, allTimezoneInfos, timezoneInfoForSystem, searchTimezoneInfos } from '@dereekb/date';
|
|
48
48
|
import { FieldType as FieldType$2, FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';
|
|
49
49
|
import * as i3$3 from '@angular/material/select';
|
|
50
50
|
import { MatSelectModule } from '@angular/material/select';
|
|
@@ -515,6 +515,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
515
515
|
}]
|
|
516
516
|
}] });
|
|
517
517
|
|
|
518
|
+
/**
|
|
519
|
+
* Streams a value from the input control at the given path. If no path is specified, streams the value from the control.
|
|
520
|
+
*
|
|
521
|
+
* @param fromControl
|
|
522
|
+
* @param path
|
|
523
|
+
* @returns
|
|
524
|
+
*/
|
|
525
|
+
function streamValueFromControl(fromControl, path) {
|
|
526
|
+
const control = path ? fromControl.get(path) : fromControl;
|
|
527
|
+
return control === null || control === void 0 ? void 0 : control.valueChanges.pipe(startWith(control.value));
|
|
528
|
+
}
|
|
529
|
+
|
|
518
530
|
class DbxFormModule {
|
|
519
531
|
}
|
|
520
532
|
DbxFormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -3756,6 +3768,7 @@ class DbxDateTimeFieldComponent extends FieldType$1 {
|
|
|
3756
3768
|
this._config = new BehaviorSubject(undefined);
|
|
3757
3769
|
this._syncConfigObs = new BehaviorSubject(undefined);
|
|
3758
3770
|
this._defaultTimezone = new BehaviorSubject(undefined);
|
|
3771
|
+
this._timeDate = new BehaviorSubject(undefined);
|
|
3759
3772
|
this._presets = new BehaviorSubject(of([]));
|
|
3760
3773
|
this._fullDayControlObs = new BehaviorSubject(undefined);
|
|
3761
3774
|
this.fullDayControl$ = this._fullDayControlObs.pipe(filterMaybe());
|
|
@@ -3767,6 +3780,23 @@ class DbxDateTimeFieldComponent extends FieldType$1 {
|
|
|
3767
3780
|
return defaultTimezone !== null && defaultTimezone !== void 0 ? defaultTimezone : guessCurrentTimezone();
|
|
3768
3781
|
}), distinctUntilChanged(), shareReplay(1));
|
|
3769
3782
|
this.timezoneInstance$ = this.timezone$.pipe(map((timezone) => (timezone ? dateTimezoneUtcNormal({ timezone }) : undefined)), shareReplay(1));
|
|
3783
|
+
this.timeDate$ = this._timeDate.pipe(switchMapMaybeDefault(), switchMap((x) => {
|
|
3784
|
+
var _a, _b;
|
|
3785
|
+
let obs;
|
|
3786
|
+
if (x) {
|
|
3787
|
+
// if the string is not a date string, then treat it as a path
|
|
3788
|
+
if (typeof x === 'string' && !isISO8601DayStringStart(x)) {
|
|
3789
|
+
obs = (_b = (_a = streamValueFromControl(this.form, x)) === null || _a === void 0 ? void 0 : _a.pipe(map((x) => (x ? toJsDayDate(x) : undefined)))) !== null && _b !== void 0 ? _b : of(undefined);
|
|
3790
|
+
}
|
|
3791
|
+
else {
|
|
3792
|
+
obs = of(toJsDayDate(x));
|
|
3793
|
+
}
|
|
3794
|
+
}
|
|
3795
|
+
else {
|
|
3796
|
+
obs = of(undefined);
|
|
3797
|
+
}
|
|
3798
|
+
return obs;
|
|
3799
|
+
}), distinctUntilChanged(isSameDateDay), shareReplay(1));
|
|
3770
3800
|
this.valueInSystemTimezone$ = this.formControl$.pipe(map((control) => control.valueChanges.pipe(startWith(control.value), shareReplay(1))), combineLatestWith(this.timezoneInstance$), switchMap(([x, timezoneInstance]) => {
|
|
3771
3801
|
return x.pipe(map(dbxDateTimeInputValueParseFactory(this.valueMode, timezoneInstance)));
|
|
3772
3802
|
}), throttleTime(20, undefined, { leading: false, trailing: true }), // throttle incoming values and timezone changes
|
|
@@ -3786,7 +3816,7 @@ class DbxDateTimeFieldComponent extends FieldType$1 {
|
|
|
3786
3816
|
this.showTimeInput$ = this.fullDay$.pipe(map((x) => !x && this.timeMode !== DbxDateTimeFieldTimeMode.NONE));
|
|
3787
3817
|
this.showAddTime$ = this.showTimeInput$.pipe(map((x) => !x && this.timeMode === DbxDateTimeFieldTimeMode.OPTIONAL), shareReplay(1));
|
|
3788
3818
|
this.date$ = this.dateInputCtrl.valueChanges.pipe(startWith(this.dateInputCtrl.value), filterMaybe(), shareReplay(1));
|
|
3789
|
-
this.timezoneAbbreviation$ = combineLatest([this.date$, this.timezone$]).pipe(map(([date, timezone]) => getTimezoneAbbreviation(timezone, date)), distinctUntilChanged(), shareReplay(1));
|
|
3819
|
+
this.timezoneAbbreviation$ = combineLatest([this.date$, this.timezone$, this.timeDate$]).pipe(map(([date, timezone, timeDate]) => getTimezoneAbbreviation(timezone, timeDate !== null && timeDate !== void 0 ? timeDate : date)), distinctUntilChanged(), shareReplay(1));
|
|
3790
3820
|
this.dateValue$ = merge(this.date$, this.valueInSystemTimezone$.pipe(skipFirstMaybe())).pipe(map((x) => (x ? startOfDay(x) : null)), distinctUntilChanged(isSameDateDay), shareReplay(1));
|
|
3791
3821
|
this.timeInput$ = this._updateTime.pipe(debounceTime(5), map(() => this.timeInputCtrl.value || ''), distinctUntilChanged());
|
|
3792
3822
|
this.syncConfigObs$ = this._syncConfigObs.pipe(switchMapMaybeDefault(), shareReplay(1));
|
|
@@ -3813,11 +3843,11 @@ class DbxDateTimeFieldComponent extends FieldType$1 {
|
|
|
3813
3843
|
// TODO: Get min/max using the DateTimePickerConfiguration too
|
|
3814
3844
|
this.dateInputMin$ = this.syncConfigBeforeValue$;
|
|
3815
3845
|
this.dateInputMax$ = this.syncConfigAfterValue$;
|
|
3816
|
-
this.rawDateTime$ = combineLatest([this.dateValue$, this.timeInput$.pipe(startWith(null)), this.fullDay$]).pipe(map(([date, timeString, fullDay]) => {
|
|
3846
|
+
this.rawDateTime$ = combineLatest([this.dateValue$, this.timeInput$.pipe(startWith(null)), this.fullDay$, this.timeDate$]).pipe(map(([date, timeString, fullDay, timeDate]) => {
|
|
3817
3847
|
var _a;
|
|
3818
3848
|
let result;
|
|
3819
|
-
if (!date
|
|
3820
|
-
date = new Date();
|
|
3849
|
+
if (!date || this.timeOnly) {
|
|
3850
|
+
date = timeDate !== null && timeDate !== void 0 ? timeDate : new Date(); // use the time date, or default to the current day
|
|
3821
3851
|
}
|
|
3822
3852
|
if (date) {
|
|
3823
3853
|
if (fullDay) {
|
|
@@ -3835,7 +3865,7 @@ class DbxDateTimeFieldComponent extends FieldType$1 {
|
|
|
3835
3865
|
useSystemTimezone: true
|
|
3836
3866
|
})) !== null && _a !== void 0 ? _a : date;
|
|
3837
3867
|
}
|
|
3838
|
-
else {
|
|
3868
|
+
else if (!this.timeOnly) {
|
|
3839
3869
|
result = date;
|
|
3840
3870
|
}
|
|
3841
3871
|
}
|
|
@@ -3866,7 +3896,7 @@ class DbxDateTimeFieldComponent extends FieldType$1 {
|
|
|
3866
3896
|
this.timeOutput$ = combineLatest([this.rawDateTime$, this._offset, this.config$]).pipe(throttleTime(TIME_OUTPUT_THROTTLE_TIME$1, undefined, { leading: false, trailing: true }), distinctUntilChanged((current, next) => current[0] === next[0] && next[1] === 0), tap(([, stepsOffset]) => (stepsOffset ? this._offset.next(0) : 0)), map(([date, stepsOffset, config]) => {
|
|
3867
3897
|
if (date != null) {
|
|
3868
3898
|
const instance = new DateTimeMinuteInstance(Object.assign(Object.assign({ date }, config), { roundDownToMinute: true }));
|
|
3869
|
-
date = instance.
|
|
3899
|
+
date = instance.clamp(date);
|
|
3870
3900
|
const minutes = stepsOffset * 5;
|
|
3871
3901
|
date = addMinutes(date, minutes);
|
|
3872
3902
|
}
|
|
@@ -3930,6 +3960,9 @@ class DbxDateTimeFieldComponent extends FieldType$1 {
|
|
|
3930
3960
|
get timezone() {
|
|
3931
3961
|
return this.field.props.timezone;
|
|
3932
3962
|
}
|
|
3963
|
+
get timeDate() {
|
|
3964
|
+
return this.field.props.timeDate;
|
|
3965
|
+
}
|
|
3933
3966
|
get showTimezone() {
|
|
3934
3967
|
var _a;
|
|
3935
3968
|
return (_a = this.field.props.showTimezone) !== null && _a !== void 0 ? _a : true;
|
|
@@ -3952,17 +3985,35 @@ class DbxDateTimeFieldComponent extends FieldType$1 {
|
|
|
3952
3985
|
this.formControl.markAsDirty();
|
|
3953
3986
|
this.formControl.markAsTouched();
|
|
3954
3987
|
});
|
|
3988
|
+
let hasSetMidnightFromInput = false;
|
|
3989
|
+
/*
|
|
3955
3990
|
this._valueSub.subscription = this.timeString$.subscribe((x) => {
|
|
3956
|
-
|
|
3957
|
-
|
|
3991
|
+
this.setTime(x);
|
|
3992
|
+
});
|
|
3993
|
+
*/
|
|
3994
|
+
this._valueSub.subscription = this.valueInSystemTimezone$
|
|
3995
|
+
.pipe(map((x) => (x ? isSameDate(x, startOfDay(x)) : false)), distinctUntilChanged(), switchMap((isInputValueAtMidnight) => {
|
|
3996
|
+
hasSetMidnightFromInput = false;
|
|
3997
|
+
return this.timeString$.pipe(
|
|
3998
|
+
// skip(1),
|
|
3999
|
+
map((timeString) => [timeString, isInputValueAtMidnight]));
|
|
4000
|
+
}))
|
|
4001
|
+
.subscribe(([x, isInputValueAtMidnight]) => {
|
|
4002
|
+
// Skip events where the timeInput value is cleared, unless the input value is at midnight and we've already processed it being at midnight
|
|
4003
|
+
if (!this.timeInputCtrl.value && x === '12:00AM' && (!isInputValueAtMidnight || (isInputValueAtMidnight && hasSetMidnightFromInput))) {
|
|
3958
4004
|
return;
|
|
3959
4005
|
}
|
|
4006
|
+
// update the has set flag
|
|
4007
|
+
if (x === '12:00AM' && isInputValueAtMidnight) {
|
|
4008
|
+
hasSetMidnightFromInput = true;
|
|
4009
|
+
}
|
|
3960
4010
|
this.setTime(x);
|
|
3961
4011
|
});
|
|
3962
4012
|
// Set default timezone if provided.
|
|
3963
4013
|
if (this.timezone && !this.dateTimeField.fullDayInUTC) {
|
|
3964
4014
|
this._defaultTimezone.next(asObservableFromGetter(this.timezone));
|
|
3965
4015
|
}
|
|
4016
|
+
this._timeDate.next(asObservableFromGetter(this.timeDate));
|
|
3966
4017
|
// Watch for disabled changes so we can propogate them properly.
|
|
3967
4018
|
this.formControl.registerOnDisabledChange((disabled) => {
|
|
3968
4019
|
if (disabled) {
|
|
@@ -4012,6 +4063,7 @@ class DbxDateTimeFieldComponent extends FieldType$1 {
|
|
|
4012
4063
|
this._valueSub.destroy();
|
|
4013
4064
|
this._config.complete();
|
|
4014
4065
|
this._defaultTimezone.complete();
|
|
4066
|
+
this._timeDate.complete();
|
|
4015
4067
|
this._presets.complete();
|
|
4016
4068
|
this._fullDayControlObs.complete();
|
|
4017
4069
|
this._offset.complete();
|
|
@@ -4049,9 +4101,11 @@ class DbxDateTimeFieldComponent extends FieldType$1 {
|
|
|
4049
4101
|
this.setTime(timeString);
|
|
4050
4102
|
}
|
|
4051
4103
|
setTime(time) {
|
|
4052
|
-
this.timeInputCtrl.
|
|
4053
|
-
|
|
4054
|
-
|
|
4104
|
+
if (this.timeInputCtrl.value !== time) {
|
|
4105
|
+
this.timeInputCtrl.setValue(time);
|
|
4106
|
+
this._offset.next(0);
|
|
4107
|
+
this._updateTime.next();
|
|
4108
|
+
}
|
|
4055
4109
|
}
|
|
4056
4110
|
keydownOnDateInput(event) {
|
|
4057
4111
|
var _a;
|
|
@@ -4712,7 +4766,7 @@ function timeOnlyField(config = {}) {
|
|
|
4712
4766
|
return dateTimeField(Object.assign(Object.assign({}, config), { timeMode: DbxDateTimeFieldTimeMode.REQUIRED, timeOnly: true }));
|
|
4713
4767
|
}
|
|
4714
4768
|
function dateTimeField(config = {}) {
|
|
4715
|
-
const { key = 'date', dateLabel, timeLabel, allDayLabel, atTimeLabel, timezone, showTimezone, timeMode = DbxDateTimeFieldTimeMode.REQUIRED, valueMode, fullDayInUTC, fullDayFieldName, pickerConfig, getConfigObs, getSyncFieldsObs, hideDatePicker, hideDateHint, timeOnly = false, presets, materialFormField } = config;
|
|
4769
|
+
const { key = 'date', dateLabel, timeLabel, allDayLabel, atTimeLabel, timeDate, timezone, showTimezone, timeMode = DbxDateTimeFieldTimeMode.REQUIRED, valueMode, fullDayInUTC, fullDayFieldName, pickerConfig, getConfigObs, getSyncFieldsObs, hideDatePicker, hideDateHint, timeOnly = false, presets, materialFormField } = config;
|
|
4716
4770
|
const fieldConfig = formlyField(Object.assign({ key, type: 'datetime' }, propsAndConfigForFieldConfig(config, Object.assign(Object.assign({}, materialFormField), { appearance: 'standard', dateLabel,
|
|
4717
4771
|
timeLabel,
|
|
4718
4772
|
allDayLabel,
|
|
@@ -4720,6 +4774,7 @@ function dateTimeField(config = {}) {
|
|
|
4720
4774
|
valueMode,
|
|
4721
4775
|
timeOnly,
|
|
4722
4776
|
presets, timeMode: timeOnly ? DbxDateTimeFieldTimeMode.REQUIRED : timeMode, timezone,
|
|
4777
|
+
timeDate,
|
|
4723
4778
|
showTimezone,
|
|
4724
4779
|
fullDayFieldName,
|
|
4725
4780
|
fullDayInUTC,
|
|
@@ -4734,16 +4789,16 @@ function dateTimeField(config = {}) {
|
|
|
4734
4789
|
}
|
|
4735
4790
|
function dateRangeField(config = {}) {
|
|
4736
4791
|
var _a, _b, _c;
|
|
4737
|
-
const { required: inputRequired, start, end, timezone, showTimezone, presets } = config;
|
|
4792
|
+
const { required: inputRequired, start, end, timeDate, timezone, showTimezone, presets } = config;
|
|
4738
4793
|
const required = (_a = inputRequired !== null && inputRequired !== void 0 ? inputRequired : start === null || start === void 0 ? void 0 : start.required) !== null && _a !== void 0 ? _a : false;
|
|
4739
4794
|
const startFieldKey = (_b = start === null || start === void 0 ? void 0 : start.key) !== null && _b !== void 0 ? _b : 'start';
|
|
4740
4795
|
const endFieldKey = (_c = end === null || end === void 0 ? void 0 : end.key) !== null && _c !== void 0 ? _c : 'end';
|
|
4741
|
-
const startField = dateTimeField(Object.assign(Object.assign({ dateLabel: 'Start', timeMode: DbxDateTimeFieldTimeMode.NONE, getSyncFieldsObs: () => of([{ syncWith: endFieldKey, syncType: 'after' }]), presets, allDayLabel: ''
|
|
4742
|
-
|
|
4743
|
-
required, key: startFieldKey }));
|
|
4744
|
-
const endField = dateTimeField(Object.assign(Object.assign({ dateLabel: 'End', timeMode: DbxDateTimeFieldTimeMode.NONE, getSyncFieldsObs: () => of([{ syncWith: startFieldKey, syncType: 'before' }]), presets, allDayLabel: ''
|
|
4745
|
-
|
|
4746
|
-
required, key: endFieldKey }));
|
|
4796
|
+
const startField = dateTimeField(Object.assign(Object.assign({ dateLabel: 'Start', timeMode: DbxDateTimeFieldTimeMode.NONE, getSyncFieldsObs: () => of([{ syncWith: endFieldKey, syncType: 'after' }]), presets, allDayLabel: '', timeDate,
|
|
4797
|
+
timezone,
|
|
4798
|
+
showTimezone }, start), { required, key: startFieldKey }));
|
|
4799
|
+
const endField = dateTimeField(Object.assign(Object.assign({ dateLabel: 'End', timeMode: DbxDateTimeFieldTimeMode.NONE, getSyncFieldsObs: () => of([{ syncWith: startFieldKey, syncType: 'before' }]), presets, allDayLabel: '', timeDate,
|
|
4800
|
+
timezone,
|
|
4801
|
+
showTimezone }, end), { required, key: endFieldKey }));
|
|
4747
4802
|
return {
|
|
4748
4803
|
key: undefined,
|
|
4749
4804
|
fieldGroup: [flexLayoutWrapper([startField, endField], { size: 1, relative: true })]
|
|
@@ -4751,7 +4806,7 @@ function dateRangeField(config = {}) {
|
|
|
4751
4806
|
}
|
|
4752
4807
|
function dateTimeRangeField(inputConfig = {}) {
|
|
4753
4808
|
var _a, _b;
|
|
4754
|
-
const { required = false, start: inputStart, end: inputEnd, timezone, showTimezone, presets } = inputConfig;
|
|
4809
|
+
const { required = false, start: inputStart, end: inputEnd, timezone, timeDate, showTimezone, presets } = inputConfig;
|
|
4755
4810
|
function dateTimeRangeFieldConfig(config) {
|
|
4756
4811
|
return Object.assign(Object.assign({}, config), { required, timeMode: DbxDateTimeFieldTimeMode.REQUIRED, getSyncFieldsObs: undefined, timeOnly: true, hideDateHint: true });
|
|
4757
4812
|
}
|
|
@@ -4761,6 +4816,7 @@ function dateTimeRangeField(inputConfig = {}) {
|
|
|
4761
4816
|
const end = Object.assign(Object.assign({ label: 'End Time' }, dateTimeRangeFieldConfig(inputEnd)), { key: endKey });
|
|
4762
4817
|
const config = {
|
|
4763
4818
|
timezone,
|
|
4819
|
+
timeDate,
|
|
4764
4820
|
showTimezone,
|
|
4765
4821
|
presets,
|
|
4766
4822
|
start,
|
|
@@ -6125,5 +6181,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
6125
6181
|
* Generated bundle index. Do not edit.
|
|
6126
6182
|
*/
|
|
6127
6183
|
|
|
6128
|
-
export { APP_ACTION_FORM_DISABLED_KEY, AUTO_TOUCH_WRAPPER_KEY, AbstractAsyncFormlyFormDirective, AbstractConfigAsyncFormlyFormDirective, AbstractDbxPickableItemFieldDirective, AbstractDbxSearchableFieldDisplayDirective, AbstractDbxSearchableValueFieldDirective, AbstractFormExpandableSectionWrapperDirective, AbstractFormlyFormDirective, AbstractSyncFormlyFormDirective, AutoTouchFieldWrapperComponent, ChecklistItemFieldDataSetBuilder, DBX_DATE_TIME_FIELD_MENU_PRESETS_TOKEN, DBX_SEARCHABLE_FIELD_COMPONENT_DATA_TOKEN, DEFAULT_DATE_TIME_FIELD_MENU_PRESETS_PRESETS, DEFAULT_FORM_DISABLED_KEY, DEFAULT_HAS_VALUE_FN, DEFAULT_LAT_LNG_TEXT_FIELD_PATTERN_MESSAGE, DEFAULT_LAT_LNG_TEXT_FIELD_PLACEHOLDER, DEFAULT_PREFERRED_COUNTRIES, DISPLAY_FOR_TIMEZONE_STRING_VALUE, DbxActionFormDirective, DbxActionFormSafetyDirective, DbxChecklistItemContentComponent, DbxChecklistItemFieldComponent, DbxDateTimeFieldComponent, DbxDateTimeFieldMenuPresetsService, DbxDateTimeFieldTimeMode, DbxDateTimeValueMode, DbxDefaultChecklistItemFieldDisplayComponent, DbxDefaultSearchableFieldDisplayComponent, DbxForm, DbxFormActionModule, DbxFormActionTransitionModule, DbxFormComponentFieldComponent, DbxFormExpandWrapperComponent, DbxFormExtensionModule, DbxFormFlexWrapperComponent, DbxFormFormlyArrayFieldModule, DbxFormFormlyBooleanFieldModule, DbxFormFormlyChecklistItemFieldModule, DbxFormFormlyComponentFieldModule, DbxFormFormlyDateFieldModule, DbxFormFormlyDbxListFieldModule, DbxFormFormlyFieldModule, DbxFormFormlyFormModule, DbxFormFormlyNumberFieldModule, DbxFormFormlyPhoneFieldModule, DbxFormFormlyPickableFieldModule, DbxFormFormlySearchableFieldModule, DbxFormFormlySelectionModule, DbxFormFormlySourceSelectModule, DbxFormFormlyTextEditorFieldModule, DbxFormFormlyTextFieldModule, DbxFormFormlyValueModule, DbxFormFormlyWrapperModule, DbxFormInfoWrapperComponent, DbxFormIoModule, DbxFormLayoutModule, DbxFormLoadingSourceDirective, DbxFormModule, DbxFormRepeatArrayTypeComponent, DbxFormSearchFormComponent, DbxFormSectionWrapperComponent, DbxFormSourceDirective, DbxFormSourceSelectFieldComponent, DbxFormSpacerComponent, DbxFormState, DbxFormSubsectionWrapperComponent, DbxFormToggleWrapperComponent, DbxFormValueChangesDirective, DbxFormWorkingWrapperComponent, DbxFormlyContext, DbxFormlyFieldsContextDirective, DbxFormlyFormComponent, DbxFormlyModule, DbxItemListFieldComponent, DbxMutableForm, DbxPhoneFieldComponent, DbxPickableChipListFieldComponent, DbxPickableListFieldComponent, DbxPickableListFieldItemListComponent, DbxPickableListFieldItemListViewComponent, DbxPickableListFieldItemListViewItemComponent, DbxSearchableChipFieldComponent, DbxSearchableFieldAutocompleteItemComponent, DbxSearchableTextFieldComponent, DbxTextEditorFieldComponent, EXPANDABLE_WRAPPER_KEY, FIELD_VALUES_ARE_EQUAL_VALIDATION_KEY, FIELD_VALUE_IS_AVAILABLE_ERROR_VALIDATION_KEY, FIELD_VALUE_IS_AVAILABLE_VALIDATION_KEY, FLEX_WRAPPER_KEY, INFO_WRAPPER_KEY, INVALID_PHONE_NUMBER_EXTENSION_MESSAGE, INVALID_PHONE_NUMBER_MESSAGE, IS_DIVISIBLE_BY_VALIDATION_KEY, LABEL_STRING_MAX_LENGTH, MAX_LENGTH_VALIDATION_MESSAGE, MAX_VALIDATION_MESSAGE, MIN_LENGTH_VALIDATION_MESSAGE, MIN_VALIDATION_MESSAGE, PHONE_LABEL_MAX_LENGTH, REQUIRED_VALIDATION_MESSAGE, SEARCH_STRING_MAX_LENGTH, SECTION_WRAPPER_KEY, STYLE_WRAPPER_KEY, SUBSECTION_WRAPPER_KEY, TAKE_NEXT_UPCOMING_TIME_CONFIG_OBS, TOGGLE_WRAPPER_KEY, WORKING_WRAPPER_KEY, addValueSelectionOptionFunction, addWrapperToFormlyFieldConfig, addressField, addressFormlyFields, addressLineField, addressListField, autoTouchWrapper, checkIsFieldFlexLayoutGroupFieldConfig, checkboxField, checklistItemField, chipTextField, cityField, componentField, countryField, dateRangeField, dateTimeField, dateTimePreset, dateTimeRangeField, dbxDateRangeIsSameDateRangeFieldValue, dbxDateTimeInputValueParseFactory, dbxDateTimeIsSameDateTimeFieldValue, dbxDateTimeOutputValueFactory, dbxFormSearchFormFields, dbxFormSourceObservable, dbxFormSourceObservableFromStream, dbxListField, defaultValidationMessages, disableFormlyFieldAutofillAttributes, dollarAmountField, emailField, expandWrapper, fieldValueIsAvailableValidator, fieldValuesAreEqualValidator, filterPartialPotentialFieldConfigValuesFromObject, filterPickableItemFieldValuesByLabel, filterPickableItemFieldValuesByLabelFilterFunction, fixedDateRangeField, flexLayoutWrapper, formlyField, hiddenField, infoWrapper, isDivisibleBy, isDomain, isE164PhoneNumber, isE164PhoneNumberWithValidExtension, isInRange, isPhoneExtension, isTruthy, latLngTextField, makeMetaFilterSearchableFieldValueDisplayFn, maxLengthValidationMessage, maxValidationMessage, mergePropsValueObjects, minLengthValidationMessage, minValidationMessage, nameField, numberField, numberFieldTransformParser, numberSliderField, partialPotentialFieldConfigKeys, partialPotentialFieldConfigKeysFilter, phoneAndLabelSectionField, phoneField, phoneListField, pickableItemChipField, pickableItemListField, pickableValueFieldValuesConfigForStaticLabeledValues, propsAndConfigForFieldConfig, propsForFieldConfig, propsValueForFieldConfig, provideDbxForm, provideDbxMutableForm, provideFormlyContext, repeatArrayField, searchableChipField, searchableStringChipField, searchableTextField, sectionWrapper, sortPickableItemsByLabel, sortPickableItemsByLabelStringFunction, sourceSelectField, stateField, styleWrapper, subsectionWrapper, syncConfigValueObs, textAreaField, textEditorField, textField, textFieldTransformParser, textIsAvailableField, textPasswordField, textPasswordWithVerifyFieldGroup, textVerifyPasswordField, timeOnlyField, timezoneStringField, timezoneStringSearchFunction, toggleField, toggleWrapper, usernamePasswordLoginFields, validatorsForFieldConfig, valueSelectionField, workingWrapper, wrappedPhoneAndLabelField, zipCodeField };
|
|
6184
|
+
export { APP_ACTION_FORM_DISABLED_KEY, AUTO_TOUCH_WRAPPER_KEY, AbstractAsyncFormlyFormDirective, AbstractConfigAsyncFormlyFormDirective, AbstractDbxPickableItemFieldDirective, AbstractDbxSearchableFieldDisplayDirective, AbstractDbxSearchableValueFieldDirective, AbstractFormExpandableSectionWrapperDirective, AbstractFormlyFormDirective, AbstractSyncFormlyFormDirective, AutoTouchFieldWrapperComponent, ChecklistItemFieldDataSetBuilder, DBX_DATE_TIME_FIELD_MENU_PRESETS_TOKEN, DBX_SEARCHABLE_FIELD_COMPONENT_DATA_TOKEN, DEFAULT_DATE_TIME_FIELD_MENU_PRESETS_PRESETS, DEFAULT_FORM_DISABLED_KEY, DEFAULT_HAS_VALUE_FN, DEFAULT_LAT_LNG_TEXT_FIELD_PATTERN_MESSAGE, DEFAULT_LAT_LNG_TEXT_FIELD_PLACEHOLDER, DEFAULT_PREFERRED_COUNTRIES, DISPLAY_FOR_TIMEZONE_STRING_VALUE, DbxActionFormDirective, DbxActionFormSafetyDirective, DbxChecklistItemContentComponent, DbxChecklistItemFieldComponent, DbxDateTimeFieldComponent, DbxDateTimeFieldMenuPresetsService, DbxDateTimeFieldTimeMode, DbxDateTimeValueMode, DbxDefaultChecklistItemFieldDisplayComponent, DbxDefaultSearchableFieldDisplayComponent, DbxForm, DbxFormActionModule, DbxFormActionTransitionModule, DbxFormComponentFieldComponent, DbxFormExpandWrapperComponent, DbxFormExtensionModule, DbxFormFlexWrapperComponent, DbxFormFormlyArrayFieldModule, DbxFormFormlyBooleanFieldModule, DbxFormFormlyChecklistItemFieldModule, DbxFormFormlyComponentFieldModule, DbxFormFormlyDateFieldModule, DbxFormFormlyDbxListFieldModule, DbxFormFormlyFieldModule, DbxFormFormlyFormModule, DbxFormFormlyNumberFieldModule, DbxFormFormlyPhoneFieldModule, DbxFormFormlyPickableFieldModule, DbxFormFormlySearchableFieldModule, DbxFormFormlySelectionModule, DbxFormFormlySourceSelectModule, DbxFormFormlyTextEditorFieldModule, DbxFormFormlyTextFieldModule, DbxFormFormlyValueModule, DbxFormFormlyWrapperModule, DbxFormInfoWrapperComponent, DbxFormIoModule, DbxFormLayoutModule, DbxFormLoadingSourceDirective, DbxFormModule, DbxFormRepeatArrayTypeComponent, DbxFormSearchFormComponent, DbxFormSectionWrapperComponent, DbxFormSourceDirective, DbxFormSourceSelectFieldComponent, DbxFormSpacerComponent, DbxFormState, DbxFormSubsectionWrapperComponent, DbxFormToggleWrapperComponent, DbxFormValueChangesDirective, DbxFormWorkingWrapperComponent, DbxFormlyContext, DbxFormlyFieldsContextDirective, DbxFormlyFormComponent, DbxFormlyModule, DbxItemListFieldComponent, DbxMutableForm, DbxPhoneFieldComponent, DbxPickableChipListFieldComponent, DbxPickableListFieldComponent, DbxPickableListFieldItemListComponent, DbxPickableListFieldItemListViewComponent, DbxPickableListFieldItemListViewItemComponent, DbxSearchableChipFieldComponent, DbxSearchableFieldAutocompleteItemComponent, DbxSearchableTextFieldComponent, DbxTextEditorFieldComponent, EXPANDABLE_WRAPPER_KEY, FIELD_VALUES_ARE_EQUAL_VALIDATION_KEY, FIELD_VALUE_IS_AVAILABLE_ERROR_VALIDATION_KEY, FIELD_VALUE_IS_AVAILABLE_VALIDATION_KEY, FLEX_WRAPPER_KEY, INFO_WRAPPER_KEY, INVALID_PHONE_NUMBER_EXTENSION_MESSAGE, INVALID_PHONE_NUMBER_MESSAGE, IS_DIVISIBLE_BY_VALIDATION_KEY, LABEL_STRING_MAX_LENGTH, MAX_LENGTH_VALIDATION_MESSAGE, MAX_VALIDATION_MESSAGE, MIN_LENGTH_VALIDATION_MESSAGE, MIN_VALIDATION_MESSAGE, PHONE_LABEL_MAX_LENGTH, REQUIRED_VALIDATION_MESSAGE, SEARCH_STRING_MAX_LENGTH, SECTION_WRAPPER_KEY, STYLE_WRAPPER_KEY, SUBSECTION_WRAPPER_KEY, TAKE_NEXT_UPCOMING_TIME_CONFIG_OBS, TOGGLE_WRAPPER_KEY, WORKING_WRAPPER_KEY, addValueSelectionOptionFunction, addWrapperToFormlyFieldConfig, addressField, addressFormlyFields, addressLineField, addressListField, autoTouchWrapper, checkIsFieldFlexLayoutGroupFieldConfig, checkboxField, checklistItemField, chipTextField, cityField, componentField, countryField, dateRangeField, dateTimeField, dateTimePreset, dateTimeRangeField, dbxDateRangeIsSameDateRangeFieldValue, dbxDateTimeInputValueParseFactory, dbxDateTimeIsSameDateTimeFieldValue, dbxDateTimeOutputValueFactory, dbxFormSearchFormFields, dbxFormSourceObservable, dbxFormSourceObservableFromStream, dbxListField, defaultValidationMessages, disableFormlyFieldAutofillAttributes, dollarAmountField, emailField, expandWrapper, fieldValueIsAvailableValidator, fieldValuesAreEqualValidator, filterPartialPotentialFieldConfigValuesFromObject, filterPickableItemFieldValuesByLabel, filterPickableItemFieldValuesByLabelFilterFunction, fixedDateRangeField, flexLayoutWrapper, formlyField, hiddenField, infoWrapper, isDivisibleBy, isDomain, isE164PhoneNumber, isE164PhoneNumberWithValidExtension, isInRange, isPhoneExtension, isTruthy, latLngTextField, makeMetaFilterSearchableFieldValueDisplayFn, maxLengthValidationMessage, maxValidationMessage, mergePropsValueObjects, minLengthValidationMessage, minValidationMessage, nameField, numberField, numberFieldTransformParser, numberSliderField, partialPotentialFieldConfigKeys, partialPotentialFieldConfigKeysFilter, phoneAndLabelSectionField, phoneField, phoneListField, pickableItemChipField, pickableItemListField, pickableValueFieldValuesConfigForStaticLabeledValues, propsAndConfigForFieldConfig, propsForFieldConfig, propsValueForFieldConfig, provideDbxForm, provideDbxMutableForm, provideFormlyContext, repeatArrayField, searchableChipField, searchableStringChipField, searchableTextField, sectionWrapper, sortPickableItemsByLabel, sortPickableItemsByLabelStringFunction, sourceSelectField, stateField, streamValueFromControl, styleWrapper, subsectionWrapper, syncConfigValueObs, textAreaField, textEditorField, textField, textFieldTransformParser, textIsAvailableField, textPasswordField, textPasswordWithVerifyFieldGroup, textVerifyPasswordField, timeOnlyField, timezoneStringField, timezoneStringSearchFunction, toggleField, toggleWrapper, usernamePasswordLoginFields, validatorsForFieldConfig, valueSelectionField, workingWrapper, wrappedPhoneAndLabelField, zipCodeField };
|
|
6129
6185
|
//# sourceMappingURL=dereekb-dbx-form.mjs.map
|