@sumaris-net/ngx-components 1.14.3 → 1.15.0

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.
@@ -1733,7 +1733,7 @@ DateFormatPipe.ctorParameters = () => [
1733
1733
  { type: TranslateService }
1734
1734
  ];
1735
1735
 
1736
- const moment$6 = momentImported;
1736
+ const moment$7 = momentImported;
1737
1737
  class DateDiffDurationPipe {
1738
1738
  constructor(dateAdapter, translate) {
1739
1739
  this.dateAdapter = dateAdapter;
@@ -1749,10 +1749,10 @@ class DateDiffDurationPipe {
1749
1749
  return this.format(startDate, endDate);
1750
1750
  }
1751
1751
  format(startDate, endDate) {
1752
- const duration = moment$6.duration(endDate.diff(startDate));
1752
+ const duration = moment$7.duration(endDate.diff(startDate));
1753
1753
  if (duration.asMinutes() < 0)
1754
1754
  return '';
1755
- const timeDuration = moment$6(0)
1755
+ const timeDuration = moment$7(0)
1756
1756
  .hour(duration.hours())
1757
1757
  .minute(duration.minutes());
1758
1758
  const days = Math.floor(duration.asDays());
@@ -2196,7 +2196,7 @@ FileSizePipe.decorators = [
2196
2196
  { type: Pipe, args: [{ name: 'fileSize' },] }
2197
2197
  ];
2198
2198
 
2199
- const moment$5 = momentImported;
2199
+ const moment$6 = momentImported;
2200
2200
  const tz = momentTZImported;
2201
2201
  const DATE_UNIX_TIMESTAMP = 'X';
2202
2202
  const DATE_UNIX_MS_TIMESTAMP = 'x';
@@ -2225,18 +2225,19 @@ class DateUtils {
2225
2225
  * Same implementation as the Java class Dates.resetTime() (see any SUMARiS like Pod)
2226
2226
  * @param value
2227
2227
  * @param timezone a timezone (see https://momentjs.com/timezone/)
2228
+ * @param keepLocalTime if true, only the timezone (and offset) is updated, keeping the local time same. Consequently, it will now point to a different point in time if the offset has changed.
2228
2229
  */
2229
- static resetTime(value, timezone) {
2230
+ static resetTime(value, timezone, keepLocalTime) {
2230
2231
  if (!value)
2231
2232
  return undefined;
2232
2233
  const date = fromDateISOString(value);
2233
2234
  // No timezone
2234
2235
  if (!timezone) {
2235
- return moment$5(date).startOf('day');
2236
+ return date.clone().startOf('day');
2236
2237
  }
2237
2238
  // Use timezone
2238
- moment$5(date)
2239
- .tz(timezone, true)
2239
+ return date.clone() // clone the original date
2240
+ .tz(timezone, keepLocalTime)
2240
2241
  .startOf('day');
2241
2242
  }
2242
2243
  }
@@ -2258,32 +2259,32 @@ function fromDateISOString(value) {
2258
2259
  if (!value || isMoment(value))
2259
2260
  return value;
2260
2261
  // Parse the input value, as a ISO date time
2261
- const date = moment$5(value, DATE_ISO_PATTERN);
2262
+ const date = moment$6(value, DATE_ISO_PATTERN);
2262
2263
  if (date.isValid())
2263
2264
  return date;
2264
2265
  // Not valid: trying to convert from unix timestamp
2265
2266
  if (typeof value === 'string') {
2266
2267
  console.warn('Wrong date format - Trying to convert from local time: ' + value);
2267
2268
  if (value.length === 10) {
2268
- return moment$5(value, DATE_UNIX_TIMESTAMP);
2269
+ return moment$6(value, DATE_UNIX_TIMESTAMP);
2269
2270
  }
2270
2271
  else if (value.length === 13) {
2271
- return moment$5(value, DATE_UNIX_MS_TIMESTAMP);
2272
+ return moment$6(value, DATE_UNIX_MS_TIMESTAMP);
2272
2273
  }
2273
2274
  }
2274
2275
  console.warn('Unable to parse date: ' + value);
2275
2276
  return undefined;
2276
2277
  }
2277
2278
  function fromUnixTimestamp(timeInSec) {
2278
- return moment$5(timeInSec, DATE_UNIX_TIMESTAMP);
2279
+ return moment$6(timeInSec, DATE_UNIX_TIMESTAMP);
2279
2280
  }
2280
2281
  function fromUnixMsTimestamp(timeInMs) {
2281
- return moment$5(timeInMs, DATE_UNIX_MS_TIMESTAMP);
2282
+ return moment$6(timeInMs, DATE_UNIX_MS_TIMESTAMP);
2282
2283
  }
2283
2284
  function toDuration(value, unit) {
2284
2285
  if (!value)
2285
2286
  return undefined;
2286
- const duration = moment$5.duration(value, unit);
2287
+ const duration = moment$6.duration(value, unit);
2287
2288
  // fix 990+ ms
2288
2289
  if (duration.milliseconds() >= 990) {
2289
2290
  duration.add(1000 - duration.milliseconds(), 'ms');
@@ -2706,7 +2707,7 @@ NgInitDirective.propDecorators = {
2706
2707
  ngInit: [{ type: Output }]
2707
2708
  };
2708
2709
 
2709
- const moment$4 = momentImported;
2710
+ const moment$5 = momentImported;
2710
2711
  // @dynamic
2711
2712
  class SharedValidators {
2712
2713
  static getDoubleRegexp(maxDecimals) {
@@ -2721,14 +2722,6 @@ class SharedValidators {
2721
2722
  this._REGEXP_CACHE.DOUBLE_BY_MAX_DECIMALS[maxDecimals] = new RegExp(`^[-]?[0-9]+([.,][0-9]{1,${maxDecimals}})?$`);
2722
2723
  return this._REGEXP_CACHE.DOUBLE_BY_MAX_DECIMALS[maxDecimals];
2723
2724
  }
2724
- static validDate(control) {
2725
- const value = control.value;
2726
- const date = !value || moment$4.isMoment(value) ? value : moment$4(control.value, DATE_ISO_PATTERN);
2727
- if (date && (!date.isValid() || date.year() < 1970)) {
2728
- return { validDate: true };
2729
- }
2730
- return null;
2731
- }
2732
2725
  static latitude(control) {
2733
2726
  const value = control.value;
2734
2727
  if (isNotNil(value) && (value < -90 || value > 90)) {
@@ -2793,6 +2786,14 @@ class SharedValidators {
2793
2786
  return null;
2794
2787
  };
2795
2788
  }
2789
+ static validDate(control) {
2790
+ const value = control.value;
2791
+ const date = !value || moment$5.isMoment(value) ? value : moment$5(control.value, DATE_ISO_PATTERN);
2792
+ if (date && (!date.isValid() || date.year() < 1970)) {
2793
+ return { validDate: true };
2794
+ }
2795
+ return null;
2796
+ }
2796
2797
  static dateIsAfter(previousValue, errorParam, granularity) {
2797
2798
  return (control) => {
2798
2799
  const value = fromDateISOString(control.value);
@@ -2803,6 +2804,16 @@ class SharedValidators {
2803
2804
  return null;
2804
2805
  };
2805
2806
  }
2807
+ static dateIsBefore(maxValue, errorParam, granularity) {
2808
+ return (control) => {
2809
+ const value = fromDateISOString(control.value);
2810
+ if (isNotNil(value) && isNotNil(maxValue) && value.isSameOrAfter(maxValue, granularity)) {
2811
+ // Return the error
2812
+ return { dateIsBefore: { maxDate: errorParam } };
2813
+ }
2814
+ return null;
2815
+ };
2816
+ }
2806
2817
  static dateRangeEnd(startDateFieldName, msg) {
2807
2818
  const errorCode = msg ? 'msg' : 'dateRange';
2808
2819
  const error = msg ? { msg } : { dateRange: true };
@@ -2897,6 +2908,7 @@ SharedValidators.I18N_ERROR_KEYS = {
2897
2908
  pubkey: 'ERROR.FIELD_NOT_VALID_PUBKEY',
2898
2909
  validDate: 'ERROR.FIELD_NOT_VALID_DATE',
2899
2910
  dateIsAfter: 'ERROR.FIELD_NOT_VALID_DATE_AFTER',
2911
+ dateIsBefore: 'ERROR.FIELD_NOT_VALID_DATE_BEFORE',
2900
2912
  dateRange: 'ERROR.FIELD_NOT_VALID_DATE_RANGE',
2901
2913
  dateMinDuration: 'ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION',
2902
2914
  dateMaxDuration: 'ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION',
@@ -4737,6 +4749,7 @@ const noop$6 = () => { };
4737
4749
  const ɵ0$9 = noop$6;
4738
4750
  class MatDate {
4739
4751
  constructor(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
4752
+ this.platform = platform;
4740
4753
  this.dateAdapter = dateAdapter;
4741
4754
  this.translate = translate;
4742
4755
  this.formBuilder = formBuilder;
@@ -4746,21 +4759,25 @@ class MatDate {
4746
4759
  this._onChangeCallback = noop$6;
4747
4760
  this._onTouchedCallback = noop$6;
4748
4761
  this._subscription = new Subscription();
4749
- this.writing = true;
4750
- this.disabling = false;
4762
+ this._writing = true;
4763
+ this._disabling = false;
4764
+ this._readonly = false;
4751
4765
  this.dayMask = DAY_MASK$2;
4752
- this.disabled = false;
4753
4766
  this.floatLabel = 'auto';
4754
- this.readonly = false;
4755
4767
  this.compact = false;
4756
4768
  this.placeholderChar = DEFAULT_PLACEHOLDER_CHAR;
4757
4769
  this.autofocus = false;
4770
+ this.startDate = null;
4758
4771
  this.clearable = false;
4759
- // Workaround because ion-datetime has issue (do not returned a ISO date)
4760
- this.mobile = platform.is('mobile');
4761
- this.keyboardHideDelay = this.mobile && KEYBOARD_HIDE_DELAY_MS || 0;
4762
4772
  this.locale = (translate.currentLang || translate.defaultLang).substr(0, 2);
4763
4773
  }
4774
+ set readonly(value) {
4775
+ this._readonly = value;
4776
+ this.markForCheck();
4777
+ }
4778
+ get readonly() {
4779
+ return this._readonly;
4780
+ }
4764
4781
  set tabindex(value) {
4765
4782
  if (this._tabindex !== value) {
4766
4783
  this._tabindex = value;
@@ -4771,67 +4788,65 @@ class MatDate {
4771
4788
  return this._tabindex;
4772
4789
  }
4773
4790
  get value() {
4774
- return toDateISOString(this._value);
4791
+ return this.formControl.value;
4775
4792
  }
4776
4793
  ngOnInit() {
4794
+ this.mobile = isNil(this.mobile) ? this.platform.is('mobile') : this.mobile;
4795
+ this._keyboardHideDelay = this.mobile && KEYBOARD_HIDE_DELAY_MS || 0;
4777
4796
  this.formControl = this.formControl || this.formControlName && this.formGroupDir && this.formGroupDir.form.get(this.formControlName);
4778
4797
  if (!this.formControl)
4779
4798
  throw new Error('Missing mandatory attribute \'formControl\' or \'formControlName\' in <mat-date-field>.');
4780
4799
  this.required = toBoolean(this.required, this.formControl.validator === Validators.required);
4781
- // Redirect errors from main control, into day sub control
4782
- const $error = new BehaviorSubject(null);
4783
- this.dayControl = this.formBuilder.control(null, () => $error.getValue());
4784
- // Add custom 'validDate' validator
4785
- this.formControl.setValidators(this.required ? [Validators.required, SharedValidators.validDate] : SharedValidators.validDate);
4800
+ // Add 'validDate' validator (when existing validator are null or required, to be sure to keep it)
4801
+ if (!this.formControl.validator || this.formControl.validator === Validators.required) {
4802
+ this.formControl.setValidators(this.required ? [Validators.required, SharedValidators.validDate] : SharedValidators.validDate);
4803
+ }
4804
+ else {
4805
+ this.formControl.setValidators(this.required ? [this.formControl.validator, Validators.required, SharedValidators.validDate] :
4806
+ [this.formControl.validator, SharedValidators.validDate]);
4807
+ }
4808
+ this.dayControl = this.formBuilder.control(null, () => this.formControl.errors);
4786
4809
  // Get patterns to display date
4787
- this.updatePattern(this.translate.instant('COMMON.DATE_PATTERN'));
4788
4810
  this._subscription.add(this.translate.get('COMMON.DATE_PATTERN')
4789
4811
  .subscribe((pattern) => this.updatePattern(pattern)));
4790
4812
  this._subscription.add(this.dayControl.valueChanges
4791
4813
  .subscribe((value) => this.onFormChange(value)));
4792
- // Listen status changes outside the component (e.g. when setErrors() is calling on the formControl)
4814
+ // Listen status changes (when done outside the component - e.g. when setErrors() is calling on the formControl)
4793
4815
  this._subscription.add(this.formControl.statusChanges
4794
- .pipe(filter(() => !this.readonly && !this.writing && !this.disabling)) // Skip
4795
- .subscribe((status) => {
4796
- if (status === 'INVALID') {
4797
- $error.next(this.formControl.errors);
4798
- }
4799
- else if (status === 'VALID') {
4800
- $error.next(null);
4801
- }
4802
- this.dayControl.updateValueAndValidity({ onlySelf: true, emitEvent: false });
4816
+ .pipe(filter((_) => !this.readonly && !this._writing && !this._disabling) // Skip
4817
+ )
4818
+ .subscribe(() => {
4819
+ this.dayControl.updateValueAndValidity({ emitEvent: false });
4803
4820
  this.markForCheck();
4804
4821
  }));
4805
4822
  this.updateTabIndex();
4806
- this.writing = false;
4823
+ this._writing = false;
4807
4824
  }
4808
4825
  ngOnDestroy() {
4809
4826
  this._subscription.unsubscribe();
4810
4827
  }
4811
- writeValue(obj) {
4812
- if (this.writing)
4813
- return;
4814
- // console.debug('[mat-date] writeValue:', obj);
4815
- if (isNilOrBlank(obj)) {
4816
- this.writing = true;
4828
+ writeValue(valueStr) {
4829
+ if (this._writing)
4830
+ return; // Skip
4831
+ this._writing = true;
4832
+ // DEBUG
4833
+ // console.debug("[mat-date] writeValue() with:", valueStr);
4834
+ const value = fromDateISOString(valueStr);
4835
+ if (!value || !value.isValid()) {
4817
4836
  this.dayControl.patchValue(null, { emitEvent: false });
4818
- this._value = undefined;
4819
4837
  if (this.formControl.value) {
4820
4838
  this.formControl.patchValue(null, { emitEvent: false });
4821
4839
  this._onChangeCallback(null);
4822
4840
  }
4823
- this.writing = false;
4824
- this.markForCheck();
4825
- return;
4826
4841
  }
4827
- this._value = this.dateAdapter.parse(obj, DATE_ISO_PATTERN);
4828
- if (!this._value) { // invalid date
4829
- return;
4842
+ else {
4843
+ // Format day
4844
+ const day = value.clone().startOf('day');
4845
+ const dayStr = this.dateAdapter.format(day, this.dayPattern);
4846
+ // Update control
4847
+ this.dayControl.patchValue(dayStr, { emitEvent: false });
4830
4848
  }
4831
- this.writing = true;
4832
- // Set form value
4833
- this.dayControl.patchValue(this.dateAdapter.format(this._value.clone().startOf('day'), this.dayPattern), { emitEvent: false });
4834
- this.writing = false;
4849
+ this._writing = false;
4835
4850
  this.markForCheck();
4836
4851
  }
4837
4852
  registerOnChange(fn) {
@@ -4841,37 +4856,36 @@ class MatDate {
4841
4856
  this._onTouchedCallback = fn;
4842
4857
  }
4843
4858
  setDisabledState(isDisabled) {
4844
- if (this.disabling)
4859
+ if (this._disabling)
4845
4860
  return;
4846
- this.disabling = true;
4847
- this.disabled = isDisabled;
4861
+ this._disabling = true;
4848
4862
  if (isDisabled) {
4849
- this.dayControl.disable({ onlySelf: true, emitEvent: false });
4863
+ this.dayControl.disable({ emitEvent: false });
4850
4864
  }
4851
4865
  else {
4852
- this.dayControl.enable({ onlySelf: true, emitEvent: false });
4866
+ this.dayControl.enable({ emitEvent: false });
4853
4867
  }
4854
- this.disabling = false;
4868
+ this._disabling = false;
4855
4869
  this.markForCheck();
4856
4870
  }
4857
4871
  onDatePickerChange(event) {
4858
- if (this.writing || !(event && event.value))
4859
- return; // Skip if call by self
4860
- this.writing = true;
4861
- let date = event.value;
4862
- date = typeof date === 'string' && this.dateAdapter.parse(date, DATE_ISO_PATTERN) || date;
4863
- let day;
4864
- // avoid to have TZ offset
4865
- date = date && date.utc(true).hour(0).minute(0).seconds(0).millisecond(0);
4866
- day = date && date.clone().startOf('day');
4867
- // update day value
4868
- this.dayControl.setValue(date && this.dateAdapter.format(day, this.dayPattern), { emitEvent: false });
4869
- // Get the model value
4870
- const dateStr = date && this.dateAdapter.format(date, DATE_ISO_PATTERN).replace('+00:00', 'Z');
4871
- this.formControl.patchValue(dateStr, { emitEvent: false });
4872
- this.writing = false;
4873
- this.markForCheck();
4874
- this._onChangeCallback(dateStr);
4872
+ // Make sure event is valid
4873
+ if (!event || (event.value !== null && !isMoment(event.value))) {
4874
+ console.warn('Invalid MatDatepicker event. Skipping', event);
4875
+ return; // Skip
4876
+ }
4877
+ const date = event.value && event.value
4878
+ .locale(this.locale) // set as time as locale time
4879
+ .minute(0).seconds(0).millisecond(0) // Reset hour
4880
+ .utc(true);
4881
+ const dateStr = date && this.dateAdapter.format(date, this.dayPattern) || null;
4882
+ if (this.dayControl.value !== dateStr) {
4883
+ // DEBUG
4884
+ console.debug("[mat-date] onDatePickerChange() new value:", dateStr);
4885
+ this.dayControl.setValue(dateStr, {
4886
+ emitEvent: true // Will call onFormChange
4887
+ });
4888
+ }
4875
4889
  }
4876
4890
  openDatePickerIfMobile(event, datePicker) {
4877
4891
  return __awaiter(this, void 0, void 0, function* () {
@@ -4912,6 +4926,13 @@ class MatDate {
4912
4926
  }
4913
4927
  });
4914
4928
  }
4929
+ clear() {
4930
+ this.dayControl.patchValue(null, { emitEvent: false });
4931
+ this.formControl.setValue(null, { emitEvent: false });
4932
+ this._onChangeCallback(null);
4933
+ this.markAsTouched();
4934
+ this.markAsDirty();
4935
+ }
4915
4936
  /* -- private method -- */
4916
4937
  updatePattern(pattern) {
4917
4938
  pattern = pattern !== 'COMMON.DATE_PATTERN' ? pattern : 'L';
@@ -4921,36 +4942,29 @@ class MatDate {
4921
4942
  this.markForCheck();
4922
4943
  }
4923
4944
  }
4924
- onFormChange(dayValue) {
4925
- if (this.writing)
4926
- return; // Skip if call by self
4927
- this.writing = true;
4928
- // Make to remove placeholder chars
4929
- while (dayValue && dayValue.indexOf(this.placeholderChar) !== -1) {
4930
- dayValue = dayValue.replace(this.placeholderChar, '');
4931
- }
4932
- let date;
4933
- // Parse day string
4934
- date = dayValue && this.dateAdapter.parse(dayValue, this.dayPattern) || null;
4935
- // Reset time
4936
- date = date && date.utc(true).hour(0).minute(0).seconds(0).millisecond(0);
4937
- // update date picker
4938
- this._value = date && this.dateAdapter.parse(date.clone(), DATE_ISO_PATTERN);
4939
- // Get the model value
4940
- const dateStr = date && date.isValid() && this.dateAdapter.format(date, DATE_ISO_PATTERN).replace('+00:00', 'Z') || date;
4941
- //console.debug("[mat-date-time] Setting date: ", dateStr);
4942
- this.formControl.patchValue(dateStr, { emitEvent: false });
4943
- //this.formControl.updateValueAndValidity();
4944
- this.writing = false;
4945
- this.markForCheck();
4946
- this._onChangeCallback(dateStr);
4947
- }
4948
4945
  checkIfTouched() {
4949
4946
  if (this.dayControl.touched) {
4950
- this.markForCheck();
4951
4947
  this._onTouchedCallback();
4948
+ this.markForCheck();
4952
4949
  }
4953
4950
  }
4951
+ onFormChange(dayStr) {
4952
+ if (this._writing)
4953
+ return; // Skip if call by self
4954
+ this._writing = true;
4955
+ // Make to remove placeholder chars
4956
+ while (dayStr && dayStr.indexOf(this.placeholderChar) !== -1) {
4957
+ dayStr = dayStr.replace(this.placeholderChar, '');
4958
+ }
4959
+ // Parse day
4960
+ let date = dayStr && this.dateAdapter.parse(dayStr, this.dayPattern) || null;
4961
+ // Reset time
4962
+ date = date && date.minute(0).seconds(0).millisecond(0)
4963
+ .utc(); // Convert local date into utc (avoid TZ offset to be in the final string)
4964
+ // Set model value
4965
+ this.emitChange(date);
4966
+ this._writing = false;
4967
+ }
4954
4968
  waitKeyboardHide(waitKeyboardDelay) {
4955
4969
  return __awaiter(this, void 0, void 0, function* () {
4956
4970
  if (!this.keyboard || !this.keyboard.isVisible)
@@ -4960,11 +4974,23 @@ class MatDate {
4960
4974
  // Wait hide occur
4961
4975
  yield this.keyboard.onKeyboardHide().pipe(first()).toPromise();
4962
4976
  // Wait an additional delay if need (depending on the OS)
4963
- if (this.keyboardHideDelay > 0 && waitKeyboardDelay) {
4964
- yield sleep(this.keyboardHideDelay);
4977
+ if (this._keyboardHideDelay > 0 && waitKeyboardDelay) {
4978
+ yield sleep(this._keyboardHideDelay);
4965
4979
  }
4966
4980
  });
4967
4981
  }
4982
+ emitChange(value) {
4983
+ // Get the model value
4984
+ const dateStr = toDateISOString(value) || null;
4985
+ if (this.formControl.value !== dateStr) {
4986
+ // DEBUG
4987
+ //console.debug('[matèdate-time] Emit new value: ' + dateStr);
4988
+ // Changes comes from inside function: use the callback
4989
+ this._onChangeCallback(dateStr);
4990
+ // Check if need to update controls
4991
+ this.checkIfTouched();
4992
+ }
4993
+ }
4968
4994
  updateTabIndex() {
4969
4995
  if (isNil(this._tabindex) || this._tabindex === -1)
4970
4996
  return; // skip
@@ -4976,6 +5002,14 @@ class MatDate {
4976
5002
  this.markForCheck();
4977
5003
  });
4978
5004
  }
5005
+ markAsTouched(opts) {
5006
+ this.dayControl.markAsTouched(opts);
5007
+ this._onTouchedCallback();
5008
+ this.markForCheck();
5009
+ }
5010
+ markAsDirty(opts) {
5011
+ this.formControl.markAsDirty(opts);
5012
+ }
4979
5013
  markForCheck() {
4980
5014
  this.cd.markForCheck();
4981
5015
  }
@@ -4983,7 +5017,7 @@ class MatDate {
4983
5017
  MatDate.decorators = [
4984
5018
  { type: Component, args: [{
4985
5019
  selector: 'mat-date-field',
4986
- template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly else writable\">\n <input matInput hidden type=\"text\" readonly=\"true\" [formControl]=\"formControl\">\n <ion-text>{{formControl.value|dateFormat: {pattern: displayPattern} }}</ion-text>\n</mat-form-field>\n\n<ng-template #writable>\n <mat-form-field [floatLabel]=\"floatLabel\">\n\n <mat-label>{{placeholder}}</mat-label>\n\n <div matPrefix><ng-content select=\"[matPrefix]\"></ng-content></div>\n\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"dayControl\"\n [textMask]=\"{mask: dayMask, keepCharPositions: true, placeholderChar: placeholderChar}\"\n [placeholder]=\"'COMMON.DATE_PLACEHOLDER'|translate\"\n (blur)=\"checkIfTouched()\"\n (keyup.arrowdown)=\"openDatePicker($event, datePicker)\"\n (keyup.escape)=\"preventEvent($event)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [appAutofocus]=\"autofocus\">\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"dayControl\"\n (click)=\"openDatePickerIfMobile($event, datePicker)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n readonly>\n\n <!-- Hide the final control -->\n <input matInput type=\"text\"\n [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n (click)=\"openDatePicker($event, datePicker)\"\n [disabled]=\"formControl.disabled\">\n <div *ngIf=\"mobile; then iconDate; else iconDesktop\"></div>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"writeValue(null)\"\n [hidden]=\"formControl.disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"formControl.hasError('validDate')\" translate>ERROR.FIELD_NOT_VALID_DATE</mat-error>\n <mat-error *ngIf=\"formControl.hasError('dateIsAfter')\">{{'ERROR.FIELD_NOT_VALID_DATE_AFTER' | translate: formControl.errors.dateIsAfter }}</mat-error>\n <mat-error *ngIf=\"formControl.hasError('dateRange')\" translate>ERROR.FIELD_NOT_VALID_DATE_RANGE</mat-error>\n <mat-error *ngIf=\"!formControl.hasError('dateRange') && formControl.hasError('dateMaxDuration')\" translate>ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION</mat-error>\n <mat-error *ngIf=\"!formControl.hasError('dateRange') && formControl.hasError('dateMinDuration')\" translate>ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION</mat-error>\n <mat-error *ngIf=\"formControl.hasError('msg')\">{{formControl.errors.msg}}</mat-error>\n </mat-form-field>\n\n <mat-datepicker #datePicker\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n [startAt]=\"startDate\"></mat-datepicker>\n\n <ng-template #iconDesktop>\n <mat-icon>keyboard_arrow_down</mat-icon>\n </ng-template>\n\n <ng-template #iconDate>\n <mat-icon>date_range</mat-icon>\n </ng-template>\n\n</ng-template>\n\n",
5020
+ template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled\">\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput hidden type=\"text\"\n readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{formControl.value|dateFormat: {pattern: displayPattern} }}</ion-text>\n</mat-form-field>\n\n<!-- writable -->\n<ng-template #writable>\n <mat-form-field [floatLabel]=\"floatLabel\">\n\n <mat-label>{{placeholder}}</mat-label>\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"dayControl\"\n [textMask]=\"{mask: dayMask, keepCharPositions: true, placeholderChar: placeholderChar}\"\n [placeholder]=\"'COMMON.DATE_PLACEHOLDER'|translate\"\n (blur)=\"checkIfTouched()\"\n (keyup.arrowdown)=\"openDatePicker($event, datePicker)\"\n (keyup.escape)=\"preventEvent($event)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [appAutofocus]=\"autofocus\">\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"dayControl\"\n (click)=\"openDatePickerIfMobile($event, datePicker)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n readonly>\n\n <!-- Hide the final input -->\n <input matInput type=\"text\" [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n <button type=\"button\" mat-icon-button tabindex=\"-1\" matSuffix\n (click)=\"openDatePicker($event, datePicker)\"\n [disabled]=\"formControl.disabled\">\n <div *ngIf=\"mobile; then iconDate; else iconDesktop\"></div>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"clear()\"\n [hidden]=\"formControl.disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <!-- errors -->\n <mat-error *ngIf=\"formControl.touched && formControl.errors|mapKeys|arrayFirst; let errorKey\">\n <ng-container [ngSwitch]=\"errorKey\">\n <span *ngSwitchCase=\"'required'\" translate>ERROR.FIELD_REQUIRED</span>\n <span *ngSwitchCase=\"'validDate'\" translate>ERROR.FIELD_NOT_VALID_DATE_TIME</span>\n <span *ngSwitchCase=\"'dateIsAfter'\">{{'ERROR.FIELD_NOT_VALID_DATE_AFTER' | translate: formControl.errors.dateIsAfter }}</span>\n <span *ngSwitchCase=\"'dateIsBefore'\">{{'ERROR.FIELD_NOT_VALID_DATE_BEFORE' | translate: formControl.errors.dateIsBefore }}</span>\n <span *ngSwitchCase=\"'dateRange'\" translate>ERROR.FIELD_NOT_VALID_DATE_RANGE</span>\n <span *ngSwitchCase=\"'dateMaxDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION</span>\n <span *ngSwitchCase=\"'dateMinDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION</span>\n <span *ngSwitchCase=\"'msg'\">{{(formControl.errors.msg?.key || formControl.errors.msg) | translate: formControl.errors.msg?.params}}</span>\n </ng-container>\n </mat-error>\n <ng-content select=\"mat-error\"></ng-content>\n\n <!-- mat hint -->\n <div class=\"mat-form-field-hint-wrapper\" [class.cdk-visually-hidden]=\"formControl.invalid\">\n <div class=\"mat-form-field-hint-spacer\"></div>\n <ng-content select=\"mat-hint\"></ng-content>\n </div>\n </mat-form-field>\n\n <mat-datepicker #datePicker\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n [startAt]=\"startDate\"></mat-datepicker>\n\n\n\n</ng-template>\n\n<ng-template #iconDesktop>\n <mat-icon>keyboard_arrow_down</mat-icon>\n</ng-template>\n\n<ng-template #iconDate>\n <mat-icon>date_range</mat-icon>\n</ng-template>\n\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n",
4987
5021
  providers: [
4988
5022
  DEFAULT_VALUE_ACCESSOR$5,
4989
5023
  ],
@@ -5001,19 +5035,19 @@ MatDate.ctorParameters = () => [
5001
5035
  { type: FormGroupDirective, decorators: [{ type: Optional }] }
5002
5036
  ];
5003
5037
  MatDate.propDecorators = {
5004
- disabled: [{ type: Input }],
5005
5038
  formControl: [{ type: Input }],
5006
5039
  formControlName: [{ type: Input }],
5007
5040
  placeholder: [{ type: Input }],
5008
5041
  floatLabel: [{ type: Input }],
5009
- readonly: [{ type: Input }],
5010
5042
  required: [{ type: Input }],
5043
+ mobile: [{ type: Input }],
5011
5044
  compact: [{ type: Input }],
5012
5045
  placeholderChar: [{ type: Input }],
5013
5046
  autofocus: [{ type: Input }],
5014
- tabindex: [{ type: Input }],
5015
5047
  startDate: [{ type: Input }],
5016
5048
  clearable: [{ type: Input }],
5049
+ readonly: [{ type: Input }],
5050
+ tabindex: [{ type: Input }],
5017
5051
  datePicker: [{ type: ViewChild, args: ['datePicker',] }],
5018
5052
  matInputs: [{ type: ViewChildren, args: ['matInput',] }]
5019
5053
  };
@@ -5026,8 +5060,7 @@ const DEFAULT_VALUE_ACCESSOR$4 = {
5026
5060
  const DAY_MASK$1 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
5027
5061
  const HOUR_REGEXP = /^[012][0-9][:][012345][0-9]$/;
5028
5062
  const HOUR_MASK$1 = [/[012]/, /\d/, ':', /[012345]/, /\d/];
5029
- const noop$5 = () => {
5030
- };
5063
+ const noop$5 = () => { };
5031
5064
  const ɵ0$8 = noop$5;
5032
5065
  class MatDateTime {
5033
5066
  constructor(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
@@ -5041,8 +5074,8 @@ class MatDateTime {
5041
5074
  this._onChangeCallback = noop$5;
5042
5075
  this._onTouchedCallback = noop$5;
5043
5076
  this._subscription = new Subscription();
5044
- this.writing = true;
5045
- this.disabling = false;
5077
+ this._writing = true;
5078
+ this._disabling = false;
5046
5079
  this._readonly = false;
5047
5080
  this.dayMask = DAY_MASK$1;
5048
5081
  this.hourMask = HOUR_MASK$1;
@@ -5075,7 +5108,7 @@ class MatDateTime {
5075
5108
  }
5076
5109
  ngOnInit() {
5077
5110
  this.mobile = isNil(this.mobile) ? this.platform.is('mobile') : this.mobile;
5078
- this.keyboardHideDelay = this.mobile && KEYBOARD_HIDE_DELAY_MS || 0;
5111
+ this._keyboardHideDelay = this.mobile && KEYBOARD_HIDE_DELAY_MS || 0;
5079
5112
  this.formControl = this.formControl || this.formControlName && this.formGroupDir && this.formGroupDir.form.get(this.formControlName);
5080
5113
  if (!this.formControl)
5081
5114
  throw new Error('Missing mandatory attribute \'formControl\' or \'formControlName\' in <mat-date-time-field>.');
@@ -5102,19 +5135,19 @@ class MatDateTime {
5102
5135
  .subscribe((event) => this.onFormChange(event)));
5103
5136
  // Listen status changes (when done outside the component - e.g. when setErrors() is calling on the formControl)
5104
5137
  this._subscription.add(this.formControl.statusChanges
5105
- .pipe(filter((_) => !this.readonly && !this.writing && !this.disabling) // Skip
5138
+ .pipe(filter((_) => !this.readonly && !this._writing && !this._disabling) // Skip
5106
5139
  )
5107
5140
  .subscribe(() => this.markForCheck()));
5108
5141
  this.updateTabIndex();
5109
- this.writing = false;
5142
+ this._writing = false;
5110
5143
  }
5111
5144
  ngOnDestroy() {
5112
5145
  this._subscription.unsubscribe();
5113
5146
  }
5114
5147
  writeValue(valueStr) {
5115
- if (this.writing)
5148
+ if (this._writing)
5116
5149
  return; // Skip
5117
- this.writing = true;
5150
+ this._writing = true;
5118
5151
  // DEBUG
5119
5152
  // console.debug("[mat-date-time] writeValue() with:", valueStr);
5120
5153
  const value = fromDateISOString(valueStr);
@@ -5123,10 +5156,10 @@ class MatDateTime {
5123
5156
  this.timeFormControl.patchValue(null, { emitEvent: false });
5124
5157
  }
5125
5158
  else {
5126
- // Parse day
5159
+ // Format day
5127
5160
  const day = value.clone().startOf('day');
5128
5161
  const dayStr = this.dateAdapter.format(day, this.dayPattern);
5129
- // Parse time
5162
+ // Format time
5130
5163
  // - Format hh
5131
5164
  let hour = value.hour();
5132
5165
  hour = hour < 10 ? ('0' + hour) : hour;
@@ -5138,46 +5171,9 @@ class MatDateTime {
5138
5171
  this.dateFormControl.patchValue(dayStr, { emitEvent: false });
5139
5172
  this.timeFormControl.patchValue(timeStr, { emitEvent: false });
5140
5173
  }
5141
- this.writing = false;
5174
+ this._writing = false;
5142
5175
  this.markForCheck();
5143
5176
  }
5144
- onFormChange(event) {
5145
- if (this.writing)
5146
- return; // Skip if call by self
5147
- this.writing = true;
5148
- let dayStr = this.dateFormControl.value;
5149
- const time = this.timeFormControl.value;
5150
- // DEBUG
5151
- //console.debug(`[mat-date-time] onFormChange() from event: ${event} - controls values: `, [dayStr, time]);
5152
- const incompleteValue = isNilOrBlank(time) !== isNilOrBlank(dayStr);
5153
- if (incompleteValue || this.dateFormControl.invalid || this.timeFormControl.invalid) {
5154
- this.formControl.markAsPending({ onlySelf: true });
5155
- this.formControl.setErrors(Object.assign(Object.assign(Object.assign({ validDate: incompleteValue }, this.formControl.errors), this.dateFormControl.errors), this.timeFormControl.errors));
5156
- this.formControl.markAsDirty();
5157
- // Reset the value
5158
- //this.emitChange(null);
5159
- this.writing = false;
5160
- return;
5161
- }
5162
- // Make to remove placeholder chars
5163
- while (dayStr && dayStr.indexOf(this.placeholderChar) !== -1) {
5164
- dayStr = dayStr.replace(this.placeholderChar, '');
5165
- }
5166
- // Parse day
5167
- const day = dayStr && this.dateAdapter.parse(dayStr, this.dayPattern) || null;
5168
- // Parse time
5169
- const hourParts = (time || '').split(':');
5170
- const hour = parseInt(hourParts[0] || 0);
5171
- const minutes = parseInt(hourParts[1] || 0);
5172
- const dateTime = day && day
5173
- .locale(this.locale) // set as time as locale time
5174
- .hour(hour).minute(minutes) // Set local hour
5175
- .seconds(0).millisecond(0) // Reset seconds/millisecond
5176
- .utc(); // Convert to UTC (avoid TZ offset in final string)
5177
- // Set model value
5178
- this.emitChange(dateTime);
5179
- this.writing = false;
5180
- }
5181
5177
  registerOnChange(fn) {
5182
5178
  this._onChangeCallback = fn;
5183
5179
  }
@@ -5185,9 +5181,9 @@ class MatDateTime {
5185
5181
  this._onTouchedCallback = fn;
5186
5182
  }
5187
5183
  setDisabledState(isDisabled) {
5188
- if (this.disabling)
5184
+ if (this._disabling)
5189
5185
  return; // Skip
5190
- this.disabling = true;
5186
+ this._disabling = true;
5191
5187
  if (isDisabled) {
5192
5188
  this.dateFormControl.disable({ emitEvent: false });
5193
5189
  this.timeFormControl.disable({ emitEvent: false });
@@ -5196,7 +5192,7 @@ class MatDateTime {
5196
5192
  this.dateFormControl.enable({ emitEvent: false });
5197
5193
  this.timeFormControl.enable({ emitEvent: false });
5198
5194
  }
5199
- this.disabling = false;
5195
+ this._disabling = false;
5200
5196
  this.markForCheck();
5201
5197
  }
5202
5198
  onDatePickerChange(event) {
@@ -5302,6 +5298,43 @@ class MatDateTime {
5302
5298
  this.markForCheck();
5303
5299
  }
5304
5300
  }
5301
+ onFormChange(event) {
5302
+ if (this._writing)
5303
+ return; // Skip if call by self
5304
+ this._writing = true;
5305
+ let dayStr = this.dateFormControl.value;
5306
+ const time = this.timeFormControl.value;
5307
+ // DEBUG
5308
+ //console.debug(`[mat-date-time] onFormChange() from event: ${event} - controls values: `, [dayStr, time]);
5309
+ const incompleteValue = isNilOrBlank(time) !== isNilOrBlank(dayStr);
5310
+ if (incompleteValue || this.dateFormControl.invalid || this.timeFormControl.invalid) {
5311
+ this.formControl.markAsPending({ onlySelf: true });
5312
+ this.formControl.setErrors(Object.assign(Object.assign(Object.assign({ validDate: incompleteValue }, this.formControl.errors), this.dateFormControl.errors), this.timeFormControl.errors));
5313
+ this.formControl.markAsDirty();
5314
+ // Reset the value
5315
+ //this.emitChange(null);
5316
+ this._writing = false;
5317
+ return;
5318
+ }
5319
+ // Make to remove placeholder chars
5320
+ while (dayStr && dayStr.indexOf(this.placeholderChar) !== -1) {
5321
+ dayStr = dayStr.replace(this.placeholderChar, '');
5322
+ }
5323
+ // Parse day
5324
+ const day = dayStr && this.dateAdapter.parse(dayStr, this.dayPattern) || null;
5325
+ // Parse time
5326
+ const hourParts = (time || '').split(':');
5327
+ const hour = parseInt(hourParts[0] || 0);
5328
+ const minutes = parseInt(hourParts[1] || 0);
5329
+ const dateTime = day && day
5330
+ .locale(this.locale) // set as time as locale time
5331
+ .hour(hour).minute(minutes) // Set local hour
5332
+ .seconds(0).millisecond(0) // Reset seconds/millisecond
5333
+ .utc(); // Convert to UTC (avoid TZ offset in final string)
5334
+ // Set model value
5335
+ this.emitChange(dateTime);
5336
+ this._writing = false;
5337
+ }
5305
5338
  waitKeyboardHide(waitKeyboardDelay) {
5306
5339
  return __awaiter(this, void 0, void 0, function* () {
5307
5340
  if (!this.keyboard || !this.keyboard.isVisible)
@@ -5311,8 +5344,8 @@ class MatDateTime {
5311
5344
  // Wait hide occur
5312
5345
  yield this.keyboard.onKeyboardHide().pipe(first()).toPromise();
5313
5346
  // Wait an additional delay if need (depending on the OS)
5314
- if (this.keyboardHideDelay > 0 && waitKeyboardDelay) {
5315
- yield sleep(this.keyboardHideDelay);
5347
+ if (this._keyboardHideDelay > 0 && waitKeyboardDelay) {
5348
+ yield sleep(this._keyboardHideDelay);
5316
5349
  }
5317
5350
  });
5318
5351
  }
@@ -5339,9 +5372,9 @@ class MatDateTime {
5339
5372
  this.markForCheck();
5340
5373
  });
5341
5374
  }
5342
- markAsTouched() {
5343
- this.dateFormControl.markAsTouched();
5344
- this.timeFormControl.markAsTouched();
5375
+ markAsTouched(opts) {
5376
+ this.dateFormControl.markAsTouched(opts);
5377
+ this.timeFormControl.markAsTouched(opts);
5345
5378
  this._onTouchedCallback();
5346
5379
  this.markForCheck();
5347
5380
  }
@@ -5355,7 +5388,7 @@ class MatDateTime {
5355
5388
  MatDateTime.decorators = [
5356
5389
  { type: Component, args: [{
5357
5390
  selector: 'mat-date-time-field',
5358
- template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled\">\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput hidden type=\"text\"\n readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{formControl.value|dateFormat: {pattern: displayPattern} }}</ion-text>\n</mat-form-field>\n\n<!-- writable + time -->\n<ng-template #writable >\n <ion-grid class=\"ion-no-padding\">\n <ion-row class=\"ion-no-padding no-wrap\" nowrap>\n\n <!-- day -->\n <ion-col class=\"day ion-no-padding\">\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-invalid]=\"formControl.touched && formControl.invalid\">\n\n <mat-label>{{placeholder}}</mat-label>\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"dateFormControl\"\n [textMask]=\"{mask: dayMask, keepCharPositions: true, placeholderChar: placeholderChar}\"\n [placeholder]=\"'COMMON.DATE_PLACEHOLDER'|translate\"\n (blur)=\"checkIfTouched()\"\n (keyup.arrowdown)=\"openDatePicker($event, datePicker)\"\n (keyup.escape)=\"preventEvent($event)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [appAutofocus]=\"autofocus\">\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"dateFormControl\"\n (click)=\"openDatePickerIfMobile($event, datePicker)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n readonly>\n <input matInput type=\"text\" [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n <button type=\"button\" mat-icon-button tabindex=\"-1\" matSuffix #datePickerButton2 (click)=\"openDatePicker($event, datePicker)\" [disabled]=\"formControl.disabled\">\n <div *ngIf=\"mobile; then iconDate; else iconDesktop\"></div>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"clear()\"\n [hidden]=\"formControl.disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n </mat-form-field>\n <mat-datepicker #datePicker\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n [startAt]=\"startDate\"></mat-datepicker>\n <div class=\"mat-form-field-subscript mat-form-field-subscript-wrapper\" >\n <!-- errors -->\n <ng-container [ngSwitch]=\"formControl.touched && formControl.errors|mapKeys|arrayFirst\">\n <mat-error *ngSwitchCase=\"'required'\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngSwitchCase=\"'validDate'\" translate>ERROR.FIELD_NOT_VALID_DATE_TIME</mat-error>\n <mat-error *ngSwitchCase=\"'dateIsAfter'\">{{'ERROR.FIELD_NOT_VALID_DATE_AFTER' | translate: formControl.errors.dateIsAfter }}</mat-error>\n <mat-error *ngSwitchCase=\"'dateRange'\" translate>ERROR.FIELD_NOT_VALID_DATE_RANGE</mat-error>\n <mat-error *ngSwitchCase=\"'dateMaxDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION</mat-error>\n <mat-error *ngSwitchCase=\"'dateMinDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION</mat-error>\n <mat-error *ngSwitchCase=\"'msg'\">{{(formControl.errors.msg?.key || formControl.errors.msg) | translate: formControl.errors.msg?.params}}</mat-error>\n </ng-container>\n <ng-content select=\"mat-error\"></ng-content>\n\n <!-- mat hint -->\n <div class=\"mat-form-field-hint-wrapper\" [class.cdk-visually-hidden]=\"formControl.invalid\">\n <div class=\"mat-form-field-hint-spacer\"></div>\n <ng-content select=\"mat-hint\"></ng-content>\n </div>\n </div>\n\n </ion-col>\n\n <!-- hour -->\n <ion-col class=\"hour ion-no-padding\">\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-invalid]=\"formControl.touched && (timeFormControl.invalid || formControl.invalid)\">\n <mat-label *ngIf=\"placeholder && floatLabel != 'never'\" translate>COMMON.TIME</mat-label>\n <input matInput #matInput type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"timeFormControl\"\n autocomplete=\"off\"\n min=\"0\" max=\"23\"\n [textMask]=\"{mask: hourMask, keepCharPositions: true, placeholderChar: placeholderChar, guide: true}\"\n [placeholder]=\"'COMMON.TIME_PLACEHOLDER'|translate\"\n [required]=\"required\"\n (keyup.arrowdown)=\"openTimePicker($event)\"\n (keyup.escape)=\"preventEvent($event)\"\n (blur)=\"checkIfTouched()\"\n [tabindex]=\"tabindex !== undefined ? tabindex+1 : undefined\">\n\n <input matInput #matInput type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"timeFormControl\"\n (click)=\"openTimePickerIfMobile($event)\"\n readonly>\n\n <input matInput type=\"text\"\n [formControl]=\"timeFormControl\"\n hidden\n [ngxTimepicker]=\"timePicker\"\n [format]=\"24\">\n\n <button matSuffix type=\"button\" mat-icon-button\n tabindex=\"-1\"\n *ngIf=\"!compact && !mobile\"\n [disabled]=\"formControl.disabled\"\n (click)=\"openTimePicker($event)\" >\n <mat-icon>keyboard_arrow_down</mat-icon>\n </button>\n <button matSuffix type=\"button\" mat-icon-button\n tabindex=\"-1\"\n *ngIf=\"!compact && mobile\"\n [disabled]=\"formControl.disabled\"\n (click)=\"openTimePickerIfMobile($event)\">\n <mat-icon>access_time</mat-icon>\n </button>\n\n <ngx-material-timepicker #timePicker [@.disabled]=\"true\"\n (timeSet)=\"onTimePickerChange($event)\"\n [ESC]=\"!mobile\"\n [defaultTime]=\"'00:00'\"\n [cancelBtnTmpl]=\"timePickerCancelButton\"\n [confirmBtnTmpl]=\"timePickerOkButton\"\n [preventOverlayClick]=\"mobile\"\n [enableKeyboardInput]=\"false\"\n [disableAnimation]=\"true\">\n <!-- cancel button -->\n <ng-template #timePickerCancelButton>\n <ion-button fill=\"clear\" color=\"dark\">\n <ion-label translate>COMMON.BTN_CANCEL</ion-label>\n </ion-button>\n </ng-template>\n\n <!-- confirm button -->\n <ng-template #timePickerOkButton>\n <ion-button fill=\"solid\" color=\"tertiary\">\n <ion-label translate>COMMON.BTN_VALIDATE</ion-label>\n </ion-button>\n </ng-template>\n\n </ngx-material-timepicker>\n </mat-form-field>\n </ion-col>\n </ion-row>\n </ion-grid>\n\n\n</ng-template>\n\n<ng-template #iconDesktop>\n <mat-icon>keyboard_arrow_down</mat-icon>\n</ng-template>\n\n<ng-template #iconDate>\n <mat-icon>date_range</mat-icon>\n</ng-template>\n\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n",
5391
+ template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled\">\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput hidden type=\"text\"\n readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{formControl.value|dateFormat: {pattern: displayPattern} }}</ion-text>\n</mat-form-field>\n\n<!-- writable + time -->\n<ng-template #writable >\n <ion-grid class=\"ion-no-padding\">\n <ion-row class=\"ion-no-padding no-wrap\" nowrap>\n\n <!-- day -->\n <ion-col class=\"day ion-no-padding\">\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-invalid]=\"formControl.touched && formControl.invalid\">\n\n <mat-label>{{placeholder}}</mat-label>\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"dateFormControl\"\n [textMask]=\"{mask: dayMask, keepCharPositions: true, placeholderChar: placeholderChar}\"\n [placeholder]=\"'COMMON.DATE_PLACEHOLDER'|translate\"\n (blur)=\"checkIfTouched()\"\n (keyup.arrowdown)=\"openDatePicker($event, datePicker)\"\n (keyup.escape)=\"preventEvent($event)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [appAutofocus]=\"autofocus\">\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"dateFormControl\"\n (click)=\"openDatePickerIfMobile($event, datePicker)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n readonly>\n\n <!-- Hide the final input -->\n <input matInput type=\"text\" [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n <button type=\"button\" mat-icon-button tabindex=\"-1\" matSuffix\n (click)=\"openDatePicker($event, datePicker)\"\n [disabled]=\"formControl.disabled\">\n <div *ngIf=\"mobile; then iconDate; else iconDesktop\"></div>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"clear()\"\n [hidden]=\"formControl.disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n </mat-form-field>\n <mat-datepicker #datePicker\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n [startAt]=\"startDate\"></mat-datepicker>\n <div class=\"mat-form-field-subscript mat-form-field-subscript-wrapper\" >\n <!-- errors -->\n <ng-container [ngSwitch]=\"formControl.touched && formControl.errors|mapKeys|arrayFirst\">\n <mat-error *ngSwitchCase=\"'required'\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngSwitchCase=\"'validDate'\" translate>ERROR.FIELD_NOT_VALID_DATE_TIME</mat-error>\n <mat-error *ngSwitchCase=\"'dateIsAfter'\">{{'ERROR.FIELD_NOT_VALID_DATE_AFTER' | translate: formControl.errors.dateIsAfter }}</mat-error>\n <mat-error *ngSwitchCase=\"'dateIsBefore'\">{{'ERROR.FIELD_NOT_VALID_DATE_BEFORE' | translate: formControl.errors.dateIsBefore }}</mat-error>\n <mat-error *ngSwitchCase=\"'dateRange'\" translate>ERROR.FIELD_NOT_VALID_DATE_RANGE</mat-error>\n <mat-error *ngSwitchCase=\"'dateMaxDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION</mat-error>\n <mat-error *ngSwitchCase=\"'dateMinDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION</mat-error>\n <mat-error *ngSwitchCase=\"'msg'\">{{(formControl.errors.msg?.key || formControl.errors.msg) | translate: formControl.errors.msg?.params}}</mat-error>\n </ng-container>\n <ng-content select=\"mat-error\"></ng-content>\n\n <!-- mat hint -->\n <div class=\"mat-form-field-hint-wrapper\" [class.cdk-visually-hidden]=\"formControl.invalid\">\n <div class=\"mat-form-field-hint-spacer\"></div>\n <ng-content select=\"mat-hint\"></ng-content>\n </div>\n </div>\n\n </ion-col>\n\n <!-- hour -->\n <ion-col class=\"hour ion-no-padding\">\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-invalid]=\"formControl.touched && (timeFormControl.invalid || formControl.invalid)\">\n <mat-label *ngIf=\"placeholder && floatLabel != 'never'\" translate>COMMON.TIME</mat-label>\n <input matInput #matInput type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"timeFormControl\"\n autocomplete=\"off\"\n min=\"0\" max=\"23\"\n [textMask]=\"{mask: hourMask, keepCharPositions: true, placeholderChar: placeholderChar, guide: true}\"\n [placeholder]=\"'COMMON.TIME_PLACEHOLDER'|translate\"\n [required]=\"required\"\n (keyup.arrowdown)=\"openTimePicker($event)\"\n (keyup.escape)=\"preventEvent($event)\"\n (blur)=\"checkIfTouched()\"\n [tabindex]=\"tabindex !== undefined ? tabindex+1 : undefined\">\n\n <input matInput #matInput type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"timeFormControl\"\n (click)=\"openTimePickerIfMobile($event)\"\n readonly>\n\n <input matInput type=\"text\"\n [formControl]=\"timeFormControl\"\n hidden\n [ngxTimepicker]=\"timePicker\"\n [format]=\"24\">\n\n <button matSuffix type=\"button\" mat-icon-button\n tabindex=\"-1\"\n *ngIf=\"!compact && !mobile\"\n [disabled]=\"formControl.disabled\"\n (click)=\"openTimePicker($event)\" >\n <mat-icon>keyboard_arrow_down</mat-icon>\n </button>\n <button matSuffix type=\"button\" mat-icon-button\n tabindex=\"-1\"\n *ngIf=\"!compact && mobile\"\n [disabled]=\"formControl.disabled\"\n (click)=\"openTimePickerIfMobile($event)\">\n <mat-icon>access_time</mat-icon>\n </button>\n\n <ngx-material-timepicker #timePicker [@.disabled]=\"true\"\n (timeSet)=\"onTimePickerChange($event)\"\n [ESC]=\"!mobile\"\n [defaultTime]=\"'00:00'\"\n [cancelBtnTmpl]=\"timePickerCancelButton\"\n [confirmBtnTmpl]=\"timePickerOkButton\"\n [preventOverlayClick]=\"mobile\"\n [enableKeyboardInput]=\"false\"\n [disableAnimation]=\"true\">\n <!-- cancel button -->\n <ng-template #timePickerCancelButton>\n <ion-button fill=\"clear\" color=\"dark\">\n <ion-label translate>COMMON.BTN_CANCEL</ion-label>\n </ion-button>\n </ng-template>\n\n <!-- confirm button -->\n <ng-template #timePickerOkButton>\n <ion-button fill=\"solid\" color=\"tertiary\">\n <ion-label translate>COMMON.BTN_VALIDATE</ion-label>\n </ion-button>\n </ng-template>\n\n </ngx-material-timepicker>\n </mat-form-field>\n </ion-col>\n </ion-row>\n </ion-grid>\n\n\n</ng-template>\n\n<ng-template #iconDesktop>\n <mat-icon>keyboard_arrow_down</mat-icon>\n</ng-template>\n\n<ng-template #iconDate>\n <mat-icon>date_range</mat-icon>\n</ng-template>\n\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n",
5359
5392
  providers: [
5360
5393
  DEFAULT_VALUE_ACCESSOR$4,
5361
5394
  ],
@@ -10251,7 +10284,7 @@ SelectPeerModal.propDecorators = {
10251
10284
  onRefresh: [{ type: Input }]
10252
10285
  };
10253
10286
 
10254
- const moment$3 = momentImported;
10287
+ const moment$4 = momentImported;
10255
10288
  const SETTINGS_STORAGE_KEY = 'settings';
10256
10289
  const SETTINGS_TRANSIENT_PROPERTIES = ['mobile', 'touchUi' /*deprecated*/];
10257
10290
  // fixme: this constant points to static environment
@@ -10494,11 +10527,11 @@ class LocalSettingsService extends StartableService {
10494
10527
  if (!feature) {
10495
10528
  feature = {
10496
10529
  name: featureName.toLowerCase(),
10497
- lastSyncDate: moment$3().toISOString()
10530
+ lastSyncDate: moment$4().toISOString()
10498
10531
  };
10499
10532
  }
10500
10533
  else {
10501
- feature.lastSyncDate = moment$3().toISOString();
10534
+ feature.lastSyncDate = moment$4().toISOString();
10502
10535
  }
10503
10536
  this.saveOfflineFeature(feature);
10504
10537
  }
@@ -10659,7 +10692,7 @@ class LocalSettingsService extends StartableService {
10659
10692
  if (!page || !page.title || !page.path)
10660
10693
  throw Error('Missing required argument \'page\', \'page.path\' or \'page.title\'');
10661
10694
  // Set time
10662
- page.time = page.time || moment$3();
10695
+ page.time = page.time || moment$4();
10663
10696
  // Clean the title (remove <small> tags)
10664
10697
  if (!opts || opts.removeTitleSmallTag !== false) {
10665
10698
  const tagIndex = page.title.indexOf('</small>');
@@ -15486,7 +15519,7 @@ ConfigService.ctorParameters = () => [
15486
15519
  { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [APP_CONFIG_OPTIONS,] }] }
15487
15520
  ];
15488
15521
 
15489
- const moment$2 = momentImported;
15522
+ const moment$3 = momentImported;
15490
15523
  class PlatformService extends StartableService {
15491
15524
  constructor(platform, cdkPlatform, toastController, translate, dateAdapter, entitiesStorage, settings, networkService, accountService, configService, cache, storage, audioProvider, environment, statusBar, keyboard, splashScreen, browser, downloader) {
15492
15525
  super(platform);
@@ -15710,16 +15743,16 @@ class PlatformService extends StartableService {
15710
15743
  }
15711
15744
  // config moment lib
15712
15745
  try {
15713
- moment$2.locale(event.lang);
15746
+ moment$3.locale(event.lang);
15714
15747
  console.debug('[platform] Use locale {' + event.lang + '}');
15715
15748
  }
15716
15749
  // If error, fallback to en
15717
15750
  catch (err) {
15718
- moment$2.locale('en');
15751
+ moment$3.locale('en');
15719
15752
  console.warn('[platform] Unknown local for moment lib. Using default [en]');
15720
15753
  }
15721
15754
  // Config date adapter
15722
- this.dateAdapter.setLocale(moment$2.locale());
15755
+ this.dateAdapter.setLocale(moment$3.locale());
15723
15756
  }
15724
15757
  });
15725
15758
  this.settings.onChange.subscribe(data => {
@@ -25806,13 +25839,13 @@ LatLongTestPage.ctorParameters = () => [
25806
25839
  { type: FormBuilder }
25807
25840
  ];
25808
25841
 
25809
- const moment$1 = momentImported;
25842
+ const moment$2 = momentImported;
25810
25843
  class SwipeTestPage {
25811
25844
  constructor(formBuilder, dateFormatPipe) {
25812
25845
  this.formBuilder = formBuilder;
25813
25846
  this.dateFormatPipe = dateFormatPipe;
25814
25847
  this.$dates = new BehaviorSubject(undefined);
25815
- this._today = moment$1().startOf('day');
25848
+ this._today = moment$2().startOf('day');
25816
25849
  this.form = formBuilder.group({
25817
25850
  empty: [null, Validators.required],
25818
25851
  date: [null, Validators.compose([Validators.required, SharedValidators.validDate])],
@@ -25825,7 +25858,7 @@ class SwipeTestPage {
25825
25858
  ngOnInit() {
25826
25859
  const dates = [];
25827
25860
  for (let d = 0; d < 7; d++) {
25828
- dates[d] = moment$1(this._today).add(d - 3, 'day');
25861
+ dates[d] = moment$2(this._today).add(d - 3, 'day');
25829
25862
  }
25830
25863
  this.$dates.next(dates);
25831
25864
  this.loadData();
@@ -25866,7 +25899,7 @@ SwipeTestPage.ctorParameters = () => [
25866
25899
  { type: DateFormatPipe }
25867
25900
  ];
25868
25901
 
25869
- const moment = momentImported;
25902
+ const moment$1 = momentImported;
25870
25903
  class DateTimeTestPage {
25871
25904
  constructor(platform, formBuilder, cd) {
25872
25905
  this.platform = platform;
@@ -25898,7 +25931,7 @@ class DateTimeTestPage {
25898
25931
  // Load the form with data
25899
25932
  loadData() {
25900
25933
  return __awaiter(this, void 0, void 0, function* () {
25901
- const now = moment();
25934
+ const now = moment$1();
25902
25935
  const data = {
25903
25936
  empty: toDateISOString(now.clone().add(2, 'hours')),
25904
25937
  enable: toDateISOString(now),
@@ -26142,9 +26175,103 @@ NumpadTestPage.ctorParameters = () => [
26142
26175
  { type: FormBuilder }
26143
26176
  ];
26144
26177
 
26178
+ const moment = momentImported;
26179
+ class DateTestPage {
26180
+ constructor(platform, formBuilder, cd) {
26181
+ this.platform = platform;
26182
+ this.formBuilder = formBuilder;
26183
+ this.cd = cd;
26184
+ this.showLogPanel = true;
26185
+ this.logContent = '';
26186
+ this.memoryHide = false;
26187
+ this.memoryMobile = true;
26188
+ this.stringify = JSON.stringify;
26189
+ this.form = formBuilder.group({
26190
+ empty: [null, Validators.required],
26191
+ enable: [null, Validators.required],
26192
+ disable: [null, Validators.required],
26193
+ readonly: [null]
26194
+ }, {
26195
+ validators: SharedFormGroupValidators.dateRange('empty', 'enable')
26196
+ });
26197
+ const disableControl = this.form.get('disable');
26198
+ disableControl.disable();
26199
+ // Copy the 'enable' value, into the disable control
26200
+ this.form.get('enable').valueChanges.subscribe(value => disableControl.setValue(value));
26201
+ const mobile = platform.is('mobile');
26202
+ this.showLogPanel = this.showLogPanel || mobile;
26203
+ }
26204
+ ngOnInit() {
26205
+ setTimeout(() => this.loadData(), 250);
26206
+ }
26207
+ // Load the form with data
26208
+ loadData() {
26209
+ return __awaiter(this, void 0, void 0, function* () {
26210
+ const now = moment();
26211
+ const data = {
26212
+ empty: toDateISOString(now.clone().add(2, 'hours')),
26213
+ enable: toDateISOString(now),
26214
+ disable: now,
26215
+ readonly: now
26216
+ };
26217
+ this.form.setValue(data);
26218
+ this.log('[test-page] Data loaded: ' + JSON.stringify(data));
26219
+ this.form.get('empty').valueChanges
26220
+ .pipe(debounceTime(300))
26221
+ .subscribe(value => this.log('[test-page] Value n°1: ' + JSON.stringify(value)));
26222
+ this.form.get('enable').valueChanges
26223
+ .pipe(debounceTime(300))
26224
+ .subscribe(value => this.log('[test-page] Value n°2: ' + JSON.stringify(value)));
26225
+ });
26226
+ }
26227
+ doSubmit(event) {
26228
+ this.form.markAllAsTouched();
26229
+ this.log('[test-page] Form content: ' + JSON.stringify(this.form.value));
26230
+ this.log('[test-page] Form status: ' + this.form.status);
26231
+ if (this.form.invalid) {
26232
+ this.log('[test-page] Form errors: ' + JSON.stringify(this.form.errors));
26233
+ // DEBUG
26234
+ AppFormUtils.logFormErrors(this.form);
26235
+ }
26236
+ }
26237
+ log(message) {
26238
+ console.debug(message);
26239
+ if (this.showLogPanel) {
26240
+ this.logContent += message + '<br/>';
26241
+ this.cd.markForCheck();
26242
+ }
26243
+ }
26244
+ clearLogPanel() {
26245
+ this.logContent = '';
26246
+ this.cd.markForCheck();
26247
+ }
26248
+ startMemoryTimer() {
26249
+ this.memoryTimer = setInterval(() => {
26250
+ this.memoryHide = !this.memoryHide;
26251
+ }, 50);
26252
+ }
26253
+ stopMemoryTimer() {
26254
+ clearInterval(this.memoryTimer);
26255
+ this.memoryTimer = null;
26256
+ this.memoryHide = false;
26257
+ }
26258
+ }
26259
+ DateTestPage.decorators = [
26260
+ { type: Component, args: [{
26261
+ selector: 'app-data-test',
26262
+ template: "<ion-header>\n <ion-toolbar color=\"primary\">\n\n <ion-buttons slot=\"start\">\n <ion-back-button></ion-back-button>\n </ion-buttons>\n\n <ion-title>Date/Time field test page</ion-title>\n </ion-toolbar>\n</ion-header>\n\n<ion-content class=\"ion-padding\">\n\n <form class=\"form-container\" [formGroup]=\"form\" (ngSubmit)=\"doSubmit($event)\">\n\n <ion-grid>\n\n <!-- debugging memory leak -->\n <ion-row><ion-col><ion-text><h4>Debug memory leak</h4></ion-text></ion-col></ion-row>\n <ion-row>\n <ion-col size=\"2\">\n <ion-button *ngIf=\"!memoryTimer\" (click)=\"startMemoryTimer()\">Start timer</ion-button>\n <ion-button *ngIf=\"memoryTimer\" (click)=\"stopMemoryTimer()\">Stop timer</ion-button>\n </ion-col>\n <ion-col size=\"2\">\n <mat-form-field floatLabel=\"never\">\n <input matInput type=\"text\" hidden>\n <mat-checkbox (change)=\"memoryMobile=$event.checked\" [value]=\"memoryMobile\">\n Mobile ?\n </mat-checkbox>\n </mat-form-field>\n </ion-col>\n <ion-col>\n <mat-date-field formControlName=\"empty\"\n *ngIf=\"!memoryHide\"\n placeholder=\"Date/Time\"\n [required]=\"true\"\n [mobile]=\"memoryMobile\"\n [clearable]=\"true\">\n <ion-icon matPrefix name=\"calendar-outline\"></ion-icon>\n </mat-date-field>\n </ion-col>\n </ion-row>\n\n <!-- Mobile mode -->\n <ion-row><ion-col><ion-text><h4>Mobile mode</h4></ion-text></ion-col></ion-row>\n <ion-row>\n <ion-col>\n\n <!-- Empty value -->\n <ion-card>\n <ion-card-header>\n <ion-card-title>\n <ion-label color=\"primary\">\n Empty value\n </ion-label>\n </ion-card-title>\n <ion-card-subtitle>\n <ion-text color=\"medium\">\n <small><pre>{{stringify(form.controls.empty.value)}}</pre></small>\n </ion-text>\n </ion-card-subtitle>\n </ion-card-header>\n <ion-card-content>\n <mat-date-field formControlName=\"empty\"\n placeholder=\"Date/Time\"\n [required]=\"true\"\n [mobile]=\"true\"\n [clearable]=\"true\">\n <ion-icon matPrefix name=\"calendar-outline\"></ion-icon>\n </mat-date-field>\n </ion-card-content>\n </ion-card>\n </ion-col>\n\n <!-- Enable -->\n <ion-col>\n <ion-card>\n <ion-card-header>\n <ion-card-title>\n <ion-label color=\"primary\">\n With value\n </ion-label>\n </ion-card-title>\n <ion-card-subtitle>\n <ion-text color=\"medium\">\n <small><pre>{{stringify(form.controls.enable.value)}}</pre></small>\n </ion-text>\n </ion-card-subtitle>\n </ion-card-header>\n <ion-card-content>\n <mat-date-field formControlName=\"enable\"\n placeholder=\"Date/Time\"\n [required]=\"true\"\n [mobile]=\"true\"\n [clearable]=\"true\">\n <ion-icon matPrefix name=\"calendar-outline\"></ion-icon>\n </mat-date-field>\n </ion-card-content>\n </ion-card>\n </ion-col>\n\n <!-- Disable -->\n <ion-col>\n <ion-card>\n <ion-card-header>\n <ion-card-title>\n <ion-label color=\"primary\">\n Disable\n </ion-label>\n </ion-card-title>\n <ion-card-subtitle>\n <ion-text color=\"medium\">\n <small><pre>{{stringify(form.controls.disable.value)}}</pre></small>\n </ion-text>\n </ion-card-subtitle>\n </ion-card-header>\n <ion-card-content>\n <mat-date-field formControlName=\"disable\"\n placeholder=\"Date/Time\"\n [required]=\"true\"\n [mobile]=\"true\">\n <ion-icon matPrefix name=\"calendar-outline\"></ion-icon>\n </mat-date-field>\n\n </ion-card-content>\n </ion-card>\n </ion-col>\n </ion-row>\n <!-- debug console -->\n <ion-row>\n <!-- buttons -->\n <ion-col size=\"2\">\n <!-- submit form -->\n <ion-button (click)=\"doSubmit($event)\"\n fill=\"outline\">\n <ion-icon name=\"checkmark\" slot=\"icon-only\"></ion-icon>\n </ion-button>\n\n <!-- clear log -->\n <ion-button (click)=\"clearLogPanel()\"\n fill=\"outline\">\n <ion-icon name=\"trash\" slot=\"icon-only\"></ion-icon>\n </ion-button>\n </ion-col>\n <ion-col size=\"10\" *ngIf=\"showLogPanel\">\n <ion-text color=\"primary\">Log:<br/></ion-text>\n <div class=\"ion-padding-start\">\n <ion-text color=\"medium\">\n <small [innerHTML]=\"logContent\"></small>\n </ion-text>\n </div>\n </ion-col>\n </ion-row>\n\n <!-- Desktop mode -->\n <ion-row><ion-col><ion-text><h4>Desktop mode</h4></ion-text></ion-col></ion-row>\n <ion-row>\n <ion-col>\n\n <!-- Empty value -->\n <ion-card>\n <ion-card-header>\n <ion-card-title>\n <ion-label color=\"primary\">\n Empty value\n </ion-label>\n </ion-card-title>\n <ion-card-subtitle>\n <ion-text color=\"medium\">\n <small><pre>{{stringify(form.controls.empty.value)}}</pre></small>\n </ion-text>\n </ion-card-subtitle>\n </ion-card-header>\n <ion-card-content>\n <mat-date-field formControlName=\"empty\"\n placeholder=\"Date/Time\"\n [required]=\"true\"\n [mobile]=\"false\"\n [clearable]=\"true\">\n <ion-icon matPrefix name=\"calendar-outline\"></ion-icon>\n </mat-date-field>\n </ion-card-content>\n </ion-card>\n </ion-col>\n\n <!-- Enable -->\n <ion-col>\n <ion-card>\n <ion-card-header>\n <ion-card-title>\n <ion-label color=\"primary\">\n With value\n </ion-label>\n </ion-card-title>\n <ion-card-subtitle>\n <ion-text color=\"medium\">\n <small><pre>{{stringify(form.controls.enable.value)}}</pre></small>\n </ion-text>\n </ion-card-subtitle>\n </ion-card-header>\n <ion-card-content>\n <mat-date-field formControlName=\"enable\"\n placeholder=\"Date/Time\"\n [required]=\"true\"\n [mobile]=\"false\"\n [clearable]=\"true\">\n <ion-icon matPrefix name=\"calendar-outline\"></ion-icon>\n </mat-date-field>\n </ion-card-content>\n </ion-card>\n </ion-col>\n\n <!-- Disable -->\n <ion-col>\n <ion-card>\n <ion-card-header>\n <ion-card-title>\n <ion-label color=\"primary\">\n Disable\n </ion-label>\n </ion-card-title>\n <ion-card-subtitle>\n <ion-text color=\"medium\">\n <small><pre>{{stringify(form.controls.disable.value)}}</pre></small>\n </ion-text>\n </ion-card-subtitle>\n </ion-card-header>\n <ion-card-content>\n <mat-date-field formControlName=\"disable\"\n placeholder=\"Date/Time\"\n [required]=\"true\"\n [mobile]=\"false\">\n <ion-icon matPrefix name=\"calendar-outline\"></ion-icon>\n </mat-date-field>\n\n </ion-card-content>\n </ion-card>\n </ion-col>\n\n <!-- Readonly -->\n <ion-col>\n <ion-card>\n <ion-card-header>\n <ion-card-title>\n <ion-label color=\"primary\">\n Readonly toggle\n </ion-label>\n </ion-card-title>\n <ion-card-subtitle>\n <ion-text color=\"medium\">\n <small><pre>{{stringify(form.controls.readonly.value)}}</pre></small>\n </ion-text>\n </ion-card-subtitle>\n </ion-card-header>\n <ion-card-content>\n <mat-checkbox (change)=\"readonlyField.readonly=$event.checked\" [checked]=\"readonlyField.readonly\">\n </mat-checkbox>\n\n <mat-date-field #readonlyField formControlName=\"readonly\"\n placeholder=\"Date/Time\"\n [readonly]=\"true\"\n [mobile]=\"false\"\n [clearable]=\"true\">\n <ion-icon matPrefix name=\"calendar-outline\"></ion-icon>\n </mat-date-field>\n </ion-card-content>\n </ion-card>\n </ion-col>\n </ion-row>\n </ion-grid>\n </form>\n\n</ion-content>\n"
26263
+ },] }
26264
+ ];
26265
+ DateTestPage.ctorParameters = () => [
26266
+ { type: Platform },
26267
+ { type: FormBuilder },
26268
+ { type: ChangeDetectorRef }
26269
+ ];
26270
+
26145
26271
  const SHARED_MATERIAL_TESTING_PAGES = [
26146
26272
  { label: 'Shared Material components', divider: true },
26147
26273
  { label: 'Date/Time field', page: '/testing/shared/datetime' },
26274
+ { label: 'Date field', page: '/testing/shared/date' },
26148
26275
  { label: 'Autocomplete field', page: '/testing/shared/autocomplete' },
26149
26276
  { label: 'Lat/Long field', page: '/testing/shared/latlong' },
26150
26277
  { label: 'Numeric pad component', page: '/testing/shared/numpad' },
@@ -26169,6 +26296,11 @@ const routes$4 = [
26169
26296
  pathMatch: 'full',
26170
26297
  component: DateTimeTestPage
26171
26298
  },
26299
+ {
26300
+ path: 'date',
26301
+ pathMatch: 'full',
26302
+ component: DateTestPage
26303
+ },
26172
26304
  {
26173
26305
  path: 'latlong',
26174
26306
  pathMatch: 'full',
@@ -26209,6 +26341,7 @@ MaterialTestingModule.decorators = [
26209
26341
  ],
26210
26342
  declarations: [
26211
26343
  DateTimeTestPage,
26344
+ DateTestPage,
26212
26345
  AutocompleteTestPage,
26213
26346
  LatLongTestPage,
26214
26347
  NumpadTestPage,
@@ -26220,6 +26353,7 @@ MaterialTestingModule.decorators = [
26220
26353
  SharedMaterialModule,
26221
26354
  RouterModule,
26222
26355
  DateTimeTestPage,
26356
+ DateTestPage,
26223
26357
  AutocompleteTestPage,
26224
26358
  LatLongTestPage,
26225
26359
  NumpadTestPage,
@@ -26814,5 +26948,5 @@ CoreTestingModule.decorators = [
26814
26948
  * Generated bundle index. Do not edit.
26815
26949
  */
26816
26950
 
26817
- export { APP_ABOUT_DEVELOPERS, APP_ABOUT_PARTNERS, APP_CONFIG_OPTIONS, APP_FORM_ERROR_I18N_KEYS, APP_GRAPHQL_TYPE_POLICIES, APP_HOME_BUTTONS, APP_LOCALES, APP_LOCAL_SETTINGS, APP_LOCAL_SETTINGS_OPTIONS, APP_LOCAL_STORAGE_TYPE_POLICIES, APP_MENU_ITEMS, APP_TESTING_PAGES, AboutModal, Account, AccountPage, AccountService, AccountToStringPipe, ActionsColumnComponent, AdminModule, AdminRoutingModule, Alerts, AnimationState, AppEditor, AppEditorOptions, AppEntityEditor, AppForm, AppFormField, AppFormProvider, AppFormUtils, AppGestureConfig, AppGraphQLModule, AppHelpModal, AppInMemoryTable, AppInstallUpgradeCard, AppListForm, AppLoadingSpinner, AppMenuModule, AppNullForm, AppPropertiesForm, AppTabEditor, AppTabEditorOptions, AppTable, AppTableDataSourceOptions, AppTableUtils, AppValidatorService, AppendToInputDirective, ArrayFilterPipe, ArrayFirstPipe, ArrayIncludesPipe, ArrayLengthPipe, ArrayPluckPipe, AudioProvider, AuthForm, AuthGuardService, AuthModal, AutocompleteTestPage, AutofocusDirective, Base58, BaseEntityService, BaseGraphqlService, BaseGraphqlServiceOptions, BaseReferential, Beans, CORE_CONFIG_OPTIONS, CORE_TESTING_PAGES, CellValueChangeListener, ChipsTestPage, Color, ColorScale, ComponentDirtyGuard, ConfigService, Configuration, CoreModule, CoreTestingModule, CryptoService, DATE_ISO_PATTERN, DATE_UNIX_MS_TIMESTAMP, DATE_UNIX_TIMESTAMP, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZE_OPTIONS, DEFAULT_PLACEHOLDER_CHAR, DEFAULT_REQUIRED_COLUMNS, DateDiffDurationPipe, DateFormatPipe, DateFromNowPipe, DateTimeTestPage, DateUtils, Department, DepartmentToStringPipe, DragAndDropDirective, DurationPipe, ENTITIES_STORAGE_KEY_PREFIX, ENVIRONMENT, EmptyArrayPipe, EntitiesService, EntitiesStorage, EntitiesTableDataSource, Entity, EntityClass, EntityClasses, EntityFilter, EntityFilterUtils, EntityMetadataComponent, EntityStore, EntityUtils, Environment, ErrorCodes, EvenPipe, FileResponse, FileService, FileSizePipe, FilesUtils, FormArrayHelper, FormButtonsBarComponent, FormButtonsBarToken, FormErrorTranslatePipe, FormErrorTranslator, FormFieldValuesHolder, FormGetArrayPipe, FormGetControlPipe, FormGetPipe, Fragments, GraphqlService, HAMMER_PRESS_TIME, HAMMER_TAP_TIME, HighlightPipe, HomePage, Hotkeys, HotkeysDialogComponent, InMemoryEntitiesService, IsLoginAccountPipe, IsNilOrBlankPipe, IsNotNilOrBlankPipe, IsNotOnFieldModePipe, IsOnFieldModePipe, JobUtils, KEYBOARD_HIDE_DELAY_MS, LAT_LONG_DEFAULT_MAX_DECIMALS, LAT_LONG_PATTERNS, LatLongFormatPipe, LatLongTestPage, LatitudeFormatPipe, LocalSettingsService, LongitudeFormatPipe, MINIFY_ENTITY_FOR_LOCAL_STORAGE, MINIFY_ENTITY_FOR_POD, MapGetPipe, MapKeysPipe, MapValuesPipe, MatAutocompleteConfigHolder, MatAutocompleteField, MatBadgeIconDirective, MatBooleanField, MatChipsField, MatDate, MatDateShort, MatDateTime, MatDuration, MatLatLongField, MatNumpadComponent, MatNumpadContainerComponent, MatNumpadContent, MatPaginatorI18n, MatStepperI18n, MatSwipeField, MaterialTestingModule, MathAbsPipe, MenuComponent, MenuItems, MenuService, ModalToolbarComponent, NetworkService, NgInitDirective, NgVarDirective, NotEmptyArrayPipe, NumberFormatPipe, NumpadDirective, OddPipe, PRIORITIZED_AUTHORITIES, PUBKEY_REGEXP, Peer, Person, PersonFilter, PersonFragments, PersonService, PersonToStringPipe, PersonUtils, PersonValidatorService, PlatformService, ProgressBarService, ProgressInterceptor, PropertyGetPipe, RESERVED_END_COLUMNS, RESERVED_START_COLUMNS, Referential, ReferentialFilter, ReferentialRef, ReferentialUtils, ReferentialValidatorService, RegisterConfirmPage, SETTINGS_DISPLAY_COLUMNS, SETTINGS_FILTER, SETTINGS_PAGE_SIZE, SETTINGS_SORTED_COLUMN, SETTINGS_STORAGE_KEY, SETTINGS_TRANSIENT_PROPERTIES, SHARED_MATERIAL_TESTING_PAGES, SHARED_TESTING_PAGES, SPACE_PLACEHOLDER_CHAR, SelectPeerModal, SettingsPage, SharedAsyncValidators, SharedDirectivesModule, SharedFormArrayValidators, SharedFormGroupValidators, SharedHotkeysModule, SharedMatAutocompleteModule, SharedMatBadgeIconModule, SharedMatBooleanModule, SharedMatChipsModule, SharedMatDateTimeModule, SharedMatDurationModule, SharedMatLatLongModule, SharedMatNumpadModule, SharedMatSwipeModule, SharedMaterialModule, SharedModule, SharedPipesModule, SharedRoutingModule, SharedTestingModule, SharedTestsPage, SharedValidators, SocialModule, Software, StartableService, StatusById, StatusIds, StatusList, StrIncludesPipe, StrLengthPipe, SwipeTestPage, TableSelectColumnsComponent, TableTestPage, TableTestingModule, TextForm, TextPopover, TextPopoverTestingModule, TextPopoverTestingPage, ToStringPipe, Toasts, ToolbarComponent, ToolbarToken, TranslatablePipe, TranslateContextPipe, TranslateContextService, UploadFile, UploadFileComponent, UploadFilePopover, UploadFileTestingModule, UploadFileTestingPage, UserEvent, UserEventFilter, UserEventService, UserEventTypes, UserEventsTable, UserSettings, UsersPage, accountToString, adaptValueToControl, addValueInArray, arrayDistinct, arrayGroupBy, arraySize, asInputElement, canHaveFocus, capitalizeFirstLetter, chainPromises, changeCaseToUnderscore, clearValueInArray, copyEntity2Form, createPromiseEvent, createPromiseEventEmitter, departmentToString, departmentsToString, disableControls, emitPromiseEvent, entityToString, equals, equalsOrNil, fadeInAnimation, fadeInOutAnimation, filterFalse, filterNotNil, filterNumberInput, filterTrue, firstArrayValue, firstFalse, firstFalsePromise, firstNotNil, firstNotNilPromise, firstTrue, firstTruePromise, focusInput, focusNextInput, focusPreviousInput, formatLatitude, formatLongitude, fromDateISOString, fromScrollEndEvent, fromUnixMsTimestamp, fromUnixTimestamp, getCaretPosition, getColorContrast, getColorShade, getColorTint, getConnectionType, getControlFromPath, getFocusableInputElements, getFormErrors, getFormValueFromEntity, getProperty, getPropertyByPath, getPropertyByPathAsString, getRandomImage, hexToRgb, hexToRgbArray, isAndroid, isControlHasInput, isCordova, isDesktop, isEmptyArray, isIOS, isInputElement, isInstanceOf, isInt, isMobile, isNil, isNilOrBlank, isNilOrNaN, isNotEmptyArray, isNotNil, isNotNilOrBlank, isNotNilOrNaN, isNotNilString, isNumber, isNumberRange, isProgressEvent, isResponseEvent, isTouchUi, isWindow, joinProperties, joinPropertiesPath, logFormErrors, markAllAsTouched, markAsUntouched, markControlAsTouched, markFormGroupAsTouched, matchMedia, matchUpperCase, mergeLoadResult, mixHex, moveInputCaretToSeparator, noTrailingSlash, notNilOrDefault, nullIfUndefined, parseLatitudeOrLongitude, propertiesPathComparator, propertyComparator, propertyPathComparator, referentialToString, referentialsToString, remove, removeAll, removeDiacritics, removeDuplicatesFromArray, removeEnd, removeValueInArray, replaceAll, resetCalculatedValue, resizeArray, rgbArrayToHex, rgbToHex, round, scrollFactory, selectInputContent, selectInputRange, setCalculatedValue, setTabIndex, sleep, slideInOutAnimation, slideUpDownAnimation, sort, splitById, splitByProperty, startsWithUpperCase, suggestFromArray, suggestFromStringArray, tabindexComparator, testUserAgent, toBoolean, toDateISOString, toDuration, toFloat, toInt, toNotNil, toNumber, trimEmptyToNull, uncapitalizeFirstLetter, updateValueAndValidity, waitFor, waitForTrue, waitIdle, waitWhilePending, ɵ0$b as ɵ0, CustomReuseStrategy as ɵa, MatNumpadDomService as ɵb, isFocusableElement as ɵc, RegisterForm as ɵd, AccountValidatorService as ɵe, RegisterModal as ɵf, UserSettingsValidatorService as ɵg, LocalSettingsValidatorService as ɵh, AppIconComponent as ɵi, NumpadTestPage as ɵj, MatBadgeIconTestPage as ɵk, ToastTestingModule as ɵl, ToastTestingPage as ɵm };
26951
+ export { APP_ABOUT_DEVELOPERS, APP_ABOUT_PARTNERS, APP_CONFIG_OPTIONS, APP_FORM_ERROR_I18N_KEYS, APP_GRAPHQL_TYPE_POLICIES, APP_HOME_BUTTONS, APP_LOCALES, APP_LOCAL_SETTINGS, APP_LOCAL_SETTINGS_OPTIONS, APP_LOCAL_STORAGE_TYPE_POLICIES, APP_MENU_ITEMS, APP_TESTING_PAGES, AboutModal, Account, AccountPage, AccountService, AccountToStringPipe, ActionsColumnComponent, AdminModule, AdminRoutingModule, Alerts, AnimationState, AppEditor, AppEditorOptions, AppEntityEditor, AppForm, AppFormField, AppFormProvider, AppFormUtils, AppGestureConfig, AppGraphQLModule, AppHelpModal, AppInMemoryTable, AppInstallUpgradeCard, AppListForm, AppLoadingSpinner, AppMenuModule, AppNullForm, AppPropertiesForm, AppTabEditor, AppTabEditorOptions, AppTable, AppTableDataSourceOptions, AppTableUtils, AppValidatorService, AppendToInputDirective, ArrayFilterPipe, ArrayFirstPipe, ArrayIncludesPipe, ArrayLengthPipe, ArrayPluckPipe, AudioProvider, AuthForm, AuthGuardService, AuthModal, AutocompleteTestPage, AutofocusDirective, Base58, BaseEntityService, BaseGraphqlService, BaseGraphqlServiceOptions, BaseReferential, Beans, CORE_CONFIG_OPTIONS, CORE_TESTING_PAGES, CellValueChangeListener, ChipsTestPage, Color, ColorScale, ComponentDirtyGuard, ConfigService, Configuration, CoreModule, CoreTestingModule, CryptoService, DATE_ISO_PATTERN, DATE_UNIX_MS_TIMESTAMP, DATE_UNIX_TIMESTAMP, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZE_OPTIONS, DEFAULT_PLACEHOLDER_CHAR, DEFAULT_REQUIRED_COLUMNS, DateDiffDurationPipe, DateFormatPipe, DateFromNowPipe, DateTimeTestPage, DateUtils, Department, DepartmentToStringPipe, DragAndDropDirective, DurationPipe, ENTITIES_STORAGE_KEY_PREFIX, ENVIRONMENT, EmptyArrayPipe, EntitiesService, EntitiesStorage, EntitiesTableDataSource, Entity, EntityClass, EntityClasses, EntityFilter, EntityFilterUtils, EntityMetadataComponent, EntityStore, EntityUtils, Environment, ErrorCodes, EvenPipe, FileResponse, FileService, FileSizePipe, FilesUtils, FormArrayHelper, FormButtonsBarComponent, FormButtonsBarToken, FormErrorTranslatePipe, FormErrorTranslator, FormFieldValuesHolder, FormGetArrayPipe, FormGetControlPipe, FormGetPipe, Fragments, GraphqlService, HAMMER_PRESS_TIME, HAMMER_TAP_TIME, HighlightPipe, HomePage, Hotkeys, HotkeysDialogComponent, InMemoryEntitiesService, IsLoginAccountPipe, IsNilOrBlankPipe, IsNotNilOrBlankPipe, IsNotOnFieldModePipe, IsOnFieldModePipe, JobUtils, KEYBOARD_HIDE_DELAY_MS, LAT_LONG_DEFAULT_MAX_DECIMALS, LAT_LONG_PATTERNS, LatLongFormatPipe, LatLongTestPage, LatitudeFormatPipe, LocalSettingsService, LongitudeFormatPipe, MINIFY_ENTITY_FOR_LOCAL_STORAGE, MINIFY_ENTITY_FOR_POD, MapGetPipe, MapKeysPipe, MapValuesPipe, MatAutocompleteConfigHolder, MatAutocompleteField, MatBadgeIconDirective, MatBooleanField, MatChipsField, MatDate, MatDateShort, MatDateTime, MatDuration, MatLatLongField, MatNumpadComponent, MatNumpadContainerComponent, MatNumpadContent, MatPaginatorI18n, MatStepperI18n, MatSwipeField, MaterialTestingModule, MathAbsPipe, MenuComponent, MenuItems, MenuService, ModalToolbarComponent, NetworkService, NgInitDirective, NgVarDirective, NotEmptyArrayPipe, NumberFormatPipe, NumpadDirective, OddPipe, PRIORITIZED_AUTHORITIES, PUBKEY_REGEXP, Peer, Person, PersonFilter, PersonFragments, PersonService, PersonToStringPipe, PersonUtils, PersonValidatorService, PlatformService, ProgressBarService, ProgressInterceptor, PropertyGetPipe, RESERVED_END_COLUMNS, RESERVED_START_COLUMNS, Referential, ReferentialFilter, ReferentialRef, ReferentialUtils, ReferentialValidatorService, RegisterConfirmPage, SETTINGS_DISPLAY_COLUMNS, SETTINGS_FILTER, SETTINGS_PAGE_SIZE, SETTINGS_SORTED_COLUMN, SETTINGS_STORAGE_KEY, SETTINGS_TRANSIENT_PROPERTIES, SHARED_MATERIAL_TESTING_PAGES, SHARED_TESTING_PAGES, SPACE_PLACEHOLDER_CHAR, SelectPeerModal, SettingsPage, SharedAsyncValidators, SharedDirectivesModule, SharedFormArrayValidators, SharedFormGroupValidators, SharedHotkeysModule, SharedMatAutocompleteModule, SharedMatBadgeIconModule, SharedMatBooleanModule, SharedMatChipsModule, SharedMatDateTimeModule, SharedMatDurationModule, SharedMatLatLongModule, SharedMatNumpadModule, SharedMatSwipeModule, SharedMaterialModule, SharedModule, SharedPipesModule, SharedRoutingModule, SharedTestingModule, SharedTestsPage, SharedValidators, SocialModule, Software, StartableService, StatusById, StatusIds, StatusList, StrIncludesPipe, StrLengthPipe, SwipeTestPage, TableSelectColumnsComponent, TableTestPage, TableTestingModule, TextForm, TextPopover, TextPopoverTestingModule, TextPopoverTestingPage, ToStringPipe, Toasts, ToolbarComponent, ToolbarToken, TranslatablePipe, TranslateContextPipe, TranslateContextService, UploadFile, UploadFileComponent, UploadFilePopover, UploadFileTestingModule, UploadFileTestingPage, UserEvent, UserEventFilter, UserEventService, UserEventTypes, UserEventsTable, UserSettings, UsersPage, accountToString, adaptValueToControl, addValueInArray, arrayDistinct, arrayGroupBy, arraySize, asInputElement, canHaveFocus, capitalizeFirstLetter, chainPromises, changeCaseToUnderscore, clearValueInArray, copyEntity2Form, createPromiseEvent, createPromiseEventEmitter, departmentToString, departmentsToString, disableControls, emitPromiseEvent, entityToString, equals, equalsOrNil, fadeInAnimation, fadeInOutAnimation, filterFalse, filterNotNil, filterNumberInput, filterTrue, firstArrayValue, firstFalse, firstFalsePromise, firstNotNil, firstNotNilPromise, firstTrue, firstTruePromise, focusInput, focusNextInput, focusPreviousInput, formatLatitude, formatLongitude, fromDateISOString, fromScrollEndEvent, fromUnixMsTimestamp, fromUnixTimestamp, getCaretPosition, getColorContrast, getColorShade, getColorTint, getConnectionType, getControlFromPath, getFocusableInputElements, getFormErrors, getFormValueFromEntity, getProperty, getPropertyByPath, getPropertyByPathAsString, getRandomImage, hexToRgb, hexToRgbArray, isAndroid, isControlHasInput, isCordova, isDesktop, isEmptyArray, isIOS, isInputElement, isInstanceOf, isInt, isMobile, isNil, isNilOrBlank, isNilOrNaN, isNotEmptyArray, isNotNil, isNotNilOrBlank, isNotNilOrNaN, isNotNilString, isNumber, isNumberRange, isProgressEvent, isResponseEvent, isTouchUi, isWindow, joinProperties, joinPropertiesPath, logFormErrors, markAllAsTouched, markAsUntouched, markControlAsTouched, markFormGroupAsTouched, matchMedia, matchUpperCase, mergeLoadResult, mixHex, moveInputCaretToSeparator, noTrailingSlash, notNilOrDefault, nullIfUndefined, parseLatitudeOrLongitude, propertiesPathComparator, propertyComparator, propertyPathComparator, referentialToString, referentialsToString, remove, removeAll, removeDiacritics, removeDuplicatesFromArray, removeEnd, removeValueInArray, replaceAll, resetCalculatedValue, resizeArray, rgbArrayToHex, rgbToHex, round, scrollFactory, selectInputContent, selectInputRange, setCalculatedValue, setTabIndex, sleep, slideInOutAnimation, slideUpDownAnimation, sort, splitById, splitByProperty, startsWithUpperCase, suggestFromArray, suggestFromStringArray, tabindexComparator, testUserAgent, toBoolean, toDateISOString, toDuration, toFloat, toInt, toNotNil, toNumber, trimEmptyToNull, uncapitalizeFirstLetter, updateValueAndValidity, waitFor, waitForTrue, waitIdle, waitWhilePending, ɵ0$b as ɵ0, CustomReuseStrategy as ɵa, MatNumpadDomService as ɵb, isFocusableElement as ɵc, RegisterForm as ɵd, AccountValidatorService as ɵe, RegisterModal as ɵf, UserSettingsValidatorService as ɵg, LocalSettingsValidatorService as ɵh, AppIconComponent as ɵi, DateTestPage as ɵj, NumpadTestPage as ɵk, MatBadgeIconTestPage as ɵl, ToastTestingModule as ɵm, ToastTestingPage as ɵn };
26818
26952
  //# sourceMappingURL=sumaris-net.ngx-components.js.map