@skyux/datetime 6.0.0-beta.6 → 6.0.0-beta.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/index.d.ts CHANGED
@@ -4,8 +4,11 @@ export * from './lib/modules/date-pipe/fuzzy-date.pipe';
4
4
  export * from './lib/modules/date-range-picker/types/date-range-calculation';
5
5
  export * from './lib/modules/date-range-picker/types/date-range-calculator';
6
6
  export * from './lib/modules/date-range-picker/types/date-range-calculator-config';
7
+ export * from './lib/modules/date-range-picker/types/date-range-calculator-date-range-function';
7
8
  export * from './lib/modules/date-range-picker/types/date-range-calculator-id';
8
9
  export * from './lib/modules/date-range-picker/types/date-range-calculator-type';
10
+ export * from './lib/modules/date-range-picker/types/date-range-calculator-validate-function';
11
+ export * from './lib/modules/date-range-picker/types/date-range';
9
12
  export * from './lib/modules/date-range-picker/date-range-picker.module';
10
13
  export * from './lib/modules/date-range-picker/date-range.service';
11
14
  export * from './lib/modules/datepicker/datepicker-config.service';
@@ -1,5 +1,2 @@
1
1
  import { SkyDateRange } from './date-range';
2
- /**
3
- * @internal
4
- */
5
2
  export declare type SkyDateRangeCalculatorGetValueFunction = (startDateInput?: Date, endDateInput?: Date) => SkyDateRange;
@@ -1,6 +1,3 @@
1
1
  import { ValidationErrors } from '@angular/forms';
2
2
  import { SkyDateRange } from './date-range';
3
- /**
4
- * @internal
5
- */
6
3
  export declare type SkyDateRangeCalculatorValidateFunction = (value?: SkyDateRange) => ValidationErrors;
@@ -1,6 +1,3 @@
1
- /**
2
- * @internal
3
- */
4
1
  export interface SkyDateRange {
5
2
  /**
6
3
  * Specifies the last date in the date range.
@@ -110,7 +110,18 @@ export declare class SkyDatepickerInputDirective implements OnInit, OnDestroy, A
110
110
  private applyDateFormat;
111
111
  private onValueChange;
112
112
  private setInputElementValue;
113
+ /**
114
+ * Gets the date value from a value - if possible.
115
+ * Will not convert unconvertable dates or numbers outside of the current month's number of days.
116
+ * Returns `undefined` if the value can not be converted.
117
+ */
113
118
  private getDateValue;
119
+ /**
120
+ * Converts a string to a date object if the string is a valid date string.
121
+ * It will also convert numeric input to a date if that number is within the current month's number of days.
122
+ * If the string can not be converted, `undefined` be returned.
123
+ */
124
+ private getShortcutOrDateValue;
114
125
  /**
115
126
  * Validates the input value to ensure it is formatted correctly.
116
127
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/datetime",
3
- "version": "6.0.0-beta.6",
3
+ "version": "6.0.0-beta.9",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -44,13 +44,13 @@
44
44
  "@angular/core": "^13.3.2",
45
45
  "@angular/forms": "^13.3.2",
46
46
  "@angular/platform-browser": "^13.3.2",
47
- "@skyux-sdk/testing": "6.0.0-beta.6",
48
- "@skyux/core": "6.0.0-beta.6",
49
- "@skyux/forms": "6.0.0-beta.6",
50
- "@skyux/i18n": "6.0.0-beta.6",
51
- "@skyux/indicators": "6.0.0-beta.6",
52
- "@skyux/popovers": "6.0.0-beta.6",
53
- "@skyux/theme": "6.0.0-beta.6"
47
+ "@skyux-sdk/testing": "6.0.0-beta.9",
48
+ "@skyux/core": "6.0.0-beta.9",
49
+ "@skyux/forms": "6.0.0-beta.9",
50
+ "@skyux/i18n": "6.0.0-beta.9",
51
+ "@skyux/indicators": "6.0.0-beta.9",
52
+ "@skyux/popovers": "6.0.0-beta.9",
53
+ "@skyux/theme": "6.0.0-beta.9"
54
54
  },
55
55
  "dependencies": {
56
56
  "moment": "2.29.2",