@skyux/datetime 9.0.0-alpha.1 → 9.0.0-alpha.10
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/documentation.json +9399 -4505
- package/esm2022/index.mjs +14 -23
- package/esm2022/lib/modules/date-pipe/date-pipe.module.mjs +4 -4
- package/esm2022/lib/modules/date-pipe/date.pipe.mjs +15 -14
- package/esm2022/lib/modules/date-pipe/date.service.mjs +76 -0
- package/esm2022/lib/modules/date-pipe/fuzzy-date.pipe.mjs +3 -3
- package/esm2022/lib/modules/date-range-picker/date-range-picker-end-date-resource-key.pipe.mjs +3 -3
- package/esm2022/lib/modules/date-range-picker/date-range-picker-start-date-resource-key.pipe.mjs +3 -3
- package/esm2022/lib/modules/date-range-picker/date-range-picker.component.mjs +6 -6
- package/esm2022/lib/modules/date-range-picker/date-range-picker.module.mjs +5 -9
- package/esm2022/lib/modules/date-range-picker/date-range.service.mjs +3 -3
- package/esm2022/lib/modules/datepicker/datepicker-adapter.service.mjs +3 -3
- package/esm2022/lib/modules/datepicker/datepicker-calendar-inner.component.mjs +4 -4
- package/esm2022/lib/modules/datepicker/datepicker-calendar.component.mjs +3 -3
- package/esm2022/lib/modules/datepicker/datepicker-config.service.mjs +3 -3
- package/esm2022/lib/modules/datepicker/datepicker-input-fuzzy.directive.mjs +6 -18
- package/esm2022/lib/modules/datepicker/datepicker-input.directive.mjs +6 -17
- package/esm2022/lib/modules/datepicker/datepicker.component.mjs +20 -8
- package/esm2022/lib/modules/datepicker/datepicker.module.mjs +6 -13
- package/esm2022/lib/modules/datepicker/datepicker.service.mjs +3 -3
- package/esm2022/lib/modules/datepicker/daypicker-button.component.mjs +3 -3
- package/esm2022/lib/modules/datepicker/daypicker-cell.component.mjs +3 -3
- package/esm2022/lib/modules/datepicker/daypicker.component.mjs +5 -5
- package/esm2022/lib/modules/datepicker/fuzzy-date.service.mjs +3 -3
- package/esm2022/lib/modules/datepicker/monthpicker.component.mjs +5 -5
- package/esm2022/lib/modules/datepicker/yearpicker.component.mjs +5 -5
- package/esm2022/lib/modules/shared/sky-datetime-resources.module.mjs +8 -8
- package/esm2022/lib/modules/timepicker/timepicker.component.mjs +9 -6
- package/esm2022/lib/modules/timepicker/timepicker.directive.mjs +6 -17
- package/esm2022/lib/modules/timepicker/timepicker.module.mjs +6 -13
- package/esm2022/testing/public-api.mjs +3 -3
- package/fesm2022/skyux-datetime.mjs +164 -169
- package/fesm2022/skyux-datetime.mjs.map +1 -1
- package/index.d.ts +23 -22
- package/lib/modules/date-pipe/date.pipe.d.ts +1 -2
- package/lib/modules/date-pipe/date.service.d.ts +13 -0
- package/lib/modules/date-range-picker/date-range-picker.module.d.ts +4 -5
- package/lib/modules/datepicker/datepicker-input-fuzzy.directive.d.ts +3 -3
- package/lib/modules/datepicker/datepicker-input.directive.d.ts +3 -3
- package/lib/modules/datepicker/datepicker.component.d.ts +5 -1
- package/lib/modules/datepicker/datepicker.module.d.ts +7 -8
- package/lib/modules/timepicker/timepicker.directive.d.ts +1 -2
- package/lib/modules/timepicker/timepicker.module.d.ts +5 -6
- package/package.json +13 -13
- package/testing/public-api.d.ts +2 -2
- package/esm2022/lib/modules/date-pipe/date-format-utility.mjs +0 -45
- package/lib/modules/date-pipe/date-format-utility.d.ts +0 -4
package/index.d.ts
CHANGED
@@ -1,25 +1,26 @@
|
|
1
|
-
export
|
2
|
-
export
|
3
|
-
export
|
4
|
-
export
|
5
|
-
export
|
6
|
-
export
|
7
|
-
export
|
8
|
-
export
|
9
|
-
export
|
10
|
-
export
|
11
|
-
export
|
12
|
-
export
|
13
|
-
export
|
14
|
-
export
|
15
|
-
export
|
16
|
-
export
|
17
|
-
export
|
18
|
-
export
|
19
|
-
export
|
20
|
-
export
|
21
|
-
export
|
22
|
-
export
|
1
|
+
export { SkyDatePipe } from './lib/modules/date-pipe/date.pipe';
|
2
|
+
export { SkyDatePipeModule } from './lib/modules/date-pipe/date-pipe.module';
|
3
|
+
export { SkyFuzzyDatePipe } from './lib/modules/date-pipe/fuzzy-date.pipe';
|
4
|
+
export { SkyDateService } from './lib/modules/date-pipe/date.service';
|
5
|
+
export { SkyDateRangeCalculation } from './lib/modules/date-range-picker/types/date-range-calculation';
|
6
|
+
export { SkyDateRangeCalculator } from './lib/modules/date-range-picker/types/date-range-calculator';
|
7
|
+
export { SkyDateRangeCalculatorConfig } from './lib/modules/date-range-picker/types/date-range-calculator-config';
|
8
|
+
export { SkyDateRangeCalculatorGetValueFunction } from './lib/modules/date-range-picker/types/date-range-calculator-date-range-function';
|
9
|
+
export { SkyDateRangeCalculatorId } from './lib/modules/date-range-picker/types/date-range-calculator-id';
|
10
|
+
export { SkyDateRangeCalculatorType } from './lib/modules/date-range-picker/types/date-range-calculator-type';
|
11
|
+
export { SkyDateRangeCalculatorValidateFunction } from './lib/modules/date-range-picker/types/date-range-calculator-validate-function';
|
12
|
+
export { SkyDateRange } from './lib/modules/date-range-picker/types/date-range';
|
13
|
+
export { SkyDateRangePickerModule } from './lib/modules/date-range-picker/date-range-picker.module';
|
14
|
+
export { SkyDateRangeService } from './lib/modules/date-range-picker/date-range.service';
|
15
|
+
export { SkyDatepickerConfigService } from './lib/modules/datepicker/datepicker-config.service';
|
16
|
+
export { SkyDatepickerModule } from './lib/modules/datepicker/datepicker.module';
|
17
|
+
export { SkyFuzzyDate } from './lib/modules/datepicker/fuzzy-date';
|
18
|
+
export { SkyFuzzyDateService } from './lib/modules/datepicker/fuzzy-date.service';
|
19
|
+
export { SkyDatepickerCalendarChange } from './lib/modules/datepicker/datepicker-calendar-change';
|
20
|
+
export { SkyDatepickerCustomDate } from './lib/modules/datepicker/datepicker-custom-date';
|
21
|
+
export { SkyTimepickerTimeFormatType } from './lib/modules/timepicker/timepicker-time-format-type';
|
22
|
+
export { SkyTimepickerTimeOutput } from './lib/modules/timepicker/timepicker-time-output';
|
23
|
+
export { SkyTimepickerModule } from './lib/modules/timepicker/timepicker.module';
|
23
24
|
export { SkyDatepickerCalendarComponent as λ1 } from './lib/modules/datepicker/datepicker-calendar.component';
|
24
25
|
export { SkyDatepickerComponent as λ2 } from './lib/modules/datepicker/datepicker.component';
|
25
26
|
export { SkyDatepickerInputDirective as λ3 } from './lib/modules/datepicker/datepicker-input.directive';
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { OnDestroy, PipeTransform } from '@angular/core';
|
2
|
-
import { SkyAppLocaleProvider } from '@skyux/i18n';
|
3
2
|
import * as i0 from "@angular/core";
|
4
3
|
/**
|
5
4
|
* Formats date values according to locale rules.
|
@@ -12,7 +11,7 @@ import * as i0 from "@angular/core";
|
|
12
11
|
*/
|
13
12
|
export declare class SkyDatePipe implements OnDestroy, PipeTransform {
|
14
13
|
#private;
|
15
|
-
constructor(
|
14
|
+
constructor();
|
16
15
|
ngOnDestroy(): void;
|
17
16
|
/**
|
18
17
|
* Transforms a date value using locale and format rules.
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
/**
|
4
|
+
* @internal
|
5
|
+
*/
|
6
|
+
export declare class SkyDateService implements OnDestroy {
|
7
|
+
#private;
|
8
|
+
constructor();
|
9
|
+
ngOnDestroy(): void;
|
10
|
+
format(value: any, locale?: string, format?: string): string | undefined;
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyDateService, never>;
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SkyDateService>;
|
13
|
+
}
|
@@ -4,12 +4,11 @@ import * as i2 from "./date-range-picker-end-date-resource-key.pipe";
|
|
4
4
|
import * as i3 from "./date-range-picker-start-date-resource-key.pipe";
|
5
5
|
import * as i4 from "@angular/common";
|
6
6
|
import * as i5 from "@angular/forms";
|
7
|
-
import * as i6 from "
|
8
|
-
import * as i7 from "../
|
9
|
-
import * as i8 from "
|
10
|
-
import * as i9 from "@skyux/forms";
|
7
|
+
import * as i6 from "../datepicker/datepicker.module";
|
8
|
+
import * as i7 from "../shared/sky-datetime-resources.module";
|
9
|
+
import * as i8 from "@skyux/forms";
|
11
10
|
export declare class SkyDateRangePickerModule {
|
12
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyDateRangePickerModule, never>;
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyDateRangePickerModule, [typeof i1.SkyDateRangePickerComponent, typeof i2.SkyDateRangePickerEndDateResourceKeyPipe, typeof i3.SkyDateRangePickerStartDateResourceKeyPipe], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyDateRangePickerModule, [typeof i1.SkyDateRangePickerComponent, typeof i2.SkyDateRangePickerEndDateResourceKeyPipe, typeof i3.SkyDateRangePickerStartDateResourceKeyPipe], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.SkyDatepickerModule, typeof i7.SkyDatetimeResourcesModule, typeof i8.SkyInputBoxModule], [typeof i1.SkyDateRangePickerComponent]>;
|
14
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<SkyDateRangePickerModule>;
|
15
14
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
2
2
|
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
3
|
-
import { SkyAppLocaleProvider
|
3
|
+
import { SkyAppLocaleProvider } from '@skyux/i18n';
|
4
4
|
import { SkyDatepickerConfigService } from './datepicker-config.service';
|
5
5
|
import { SkyDatepickerComponent } from './datepicker.component';
|
6
6
|
import { SkyFuzzyDate } from './fuzzy-date';
|
@@ -64,7 +64,7 @@ export declare class SkyFuzzyDatepickerInputDirective implements OnInit, OnDestr
|
|
64
64
|
*/
|
65
65
|
set yearRequired(value: boolean | undefined);
|
66
66
|
get yearRequired(): boolean | undefined;
|
67
|
-
constructor(changeDetector: ChangeDetectorRef, configService: SkyDatepickerConfigService, elementRef: ElementRef, fuzzyDateService: SkyFuzzyDateService, localeProvider: SkyAppLocaleProvider, renderer: Renderer2,
|
67
|
+
constructor(changeDetector: ChangeDetectorRef, configService: SkyDatepickerConfigService, elementRef: ElementRef, fuzzyDateService: SkyFuzzyDateService, localeProvider: SkyAppLocaleProvider, renderer: Renderer2, datepickerComponent?: SkyDatepickerComponent);
|
68
68
|
ngOnInit(): void;
|
69
69
|
ngAfterContentInit(): void;
|
70
70
|
ngAfterViewInit(): void;
|
@@ -83,6 +83,6 @@ export declare class SkyFuzzyDatepickerInputDirective implements OnInit, OnDestr
|
|
83
83
|
* This is useful if you need to update the ngModel value before the input element loses focus.
|
84
84
|
*/
|
85
85
|
detectInputValueChange(): void;
|
86
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyFuzzyDatepickerInputDirective, [null, null, null, null, null, null,
|
86
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyFuzzyDatepickerInputDirective, [null, null, null, null, null, null, { optional: true; }]>;
|
87
87
|
static ɵdir: i0.ɵɵDirectiveDeclaration<SkyFuzzyDatepickerInputDirective, "[skyFuzzyDatepickerInput]", never, { "dateFormat": { "alias": "dateFormat"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "futureDisabled": { "alias": "futureDisabled"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "skyDatepickerNoValidate": { "alias": "skyDatepickerNoValidate"; "required": false; }; "startingDay": { "alias": "startingDay"; "required": false; }; "yearRequired": { "alias": "yearRequired"; "required": false; }; }, {}, never, never, false, never>;
|
88
88
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
2
2
|
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
3
|
-
import { SkyAppLocaleProvider
|
3
|
+
import { SkyAppLocaleProvider } from '@skyux/i18n';
|
4
4
|
import { SkyDatepickerAdapterService } from './datepicker-adapter.service';
|
5
5
|
import { SkyDatepickerConfigService } from './datepicker-config.service';
|
6
6
|
import { SkyDatepickerComponent } from './datepicker.component';
|
@@ -63,7 +63,7 @@ export declare class SkyDatepickerInputDirective implements OnInit, OnDestroy, A
|
|
63
63
|
*/
|
64
64
|
set strict(value: boolean | undefined);
|
65
65
|
get strict(): boolean;
|
66
|
-
constructor(adapter: SkyDatepickerAdapterService, changeDetector: ChangeDetectorRef, configService: SkyDatepickerConfigService, elementRef: ElementRef, localeProvider: SkyAppLocaleProvider, renderer: Renderer2,
|
66
|
+
constructor(adapter: SkyDatepickerAdapterService, changeDetector: ChangeDetectorRef, configService: SkyDatepickerConfigService, elementRef: ElementRef, localeProvider: SkyAppLocaleProvider, renderer: Renderer2, datepickerComponent?: SkyDatepickerComponent);
|
67
67
|
ngOnInit(): void;
|
68
68
|
ngAfterContentInit(): void;
|
69
69
|
ngAfterViewInit(): void;
|
@@ -82,6 +82,6 @@ export declare class SkyDatepickerInputDirective implements OnInit, OnDestroy, A
|
|
82
82
|
* This is useful if you need to update the ngModel value before the input element loses focus.
|
83
83
|
*/
|
84
84
|
detectInputValueChange(): void;
|
85
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyDatepickerInputDirective, [null, null, null, null, null, null,
|
85
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyDatepickerInputDirective, [null, null, null, null, null, null, { optional: true; }]>;
|
86
86
|
static ɵdir: i0.ɵɵDirectiveDeclaration<SkyDatepickerInputDirective, "[skyDatepickerInput]", never, { "dateFormat": { "alias": "dateFormat"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "skyDatepickerInput": { "alias": "skyDatepickerInput"; "required": false; }; "skyDatepickerNoValidate": { "alias": "skyDatepickerNoValidate"; "required": false; }; "startingDay": { "alias": "startingDay"; "required": false; }; "strict": { "alias": "strict"; "required": false; }; }, {}, never, never, false, never>;
|
87
87
|
}
|
@@ -28,6 +28,10 @@ export declare class SkyDatepickerComponent implements OnDestroy, OnInit {
|
|
28
28
|
* to modify individual dates on the calendar.
|
29
29
|
*/
|
30
30
|
calendarDateRangeChange: EventEmitter<SkyDatepickerCalendarChange>;
|
31
|
+
/**
|
32
|
+
* @internal
|
33
|
+
*/
|
34
|
+
openChange: EventEmitter<boolean>;
|
31
35
|
calendarId: string;
|
32
36
|
customDates: SkyDatepickerCustomDate[] | undefined;
|
33
37
|
dateChange: EventEmitter<Date>;
|
@@ -53,5 +57,5 @@ export declare class SkyDatepickerComponent implements OnDestroy, OnInit {
|
|
53
57
|
onTriggerButtonClick(): void;
|
54
58
|
onCalendarDateRangeChange(event?: SkyDatepickerCalendarChange): void;
|
55
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyDatepickerComponent, [null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyDatepickerComponent, "sky-datepicker", never, { "pickerClass": { "alias": "pickerClass"; "required": false; }; }, { "calendarDateRangeChange": "calendarDateRangeChange"; }, never, ["*"], false, never>;
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyDatepickerComponent, "sky-datepicker", never, { "pickerClass": { "alias": "pickerClass"; "required": false; }; }, { "calendarDateRangeChange": "calendarDateRangeChange"; "openChange": "openChange"; }, never, ["*"], false, never>;
|
57
61
|
}
|
@@ -10,15 +10,14 @@ import * as i8 from "./datepicker-input-fuzzy.directive";
|
|
10
10
|
import * as i9 from "./daypicker-cell.component";
|
11
11
|
import * as i10 from "./daypicker-button.component";
|
12
12
|
import * as i11 from "@angular/common";
|
13
|
-
import * as i12 from "@
|
14
|
-
import * as i13 from "@
|
15
|
-
import * as i14 from "
|
16
|
-
import * as i15 from "
|
17
|
-
import * as i16 from "@skyux/
|
18
|
-
import * as i17 from "@skyux/
|
19
|
-
import * as i18 from "@skyux/popovers";
|
13
|
+
import * as i12 from "@angular/forms";
|
14
|
+
import * as i13 from "@skyux/indicators";
|
15
|
+
import * as i14 from "../shared/sky-datetime-resources.module";
|
16
|
+
import * as i15 from "@skyux/core";
|
17
|
+
import * as i16 from "@skyux/theme";
|
18
|
+
import * as i17 from "@skyux/popovers";
|
20
19
|
export declare class SkyDatepickerModule {
|
21
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyDatepickerModule, never>;
|
22
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyDatepickerModule, [typeof i1.SkyDatepickerCalendarComponent, typeof i2.SkyDatepickerCalendarInnerComponent, typeof i3.SkyDayPickerComponent, typeof i4.SkyMonthPickerComponent, typeof i5.SkyYearPickerComponent, typeof i6.SkyDatepickerComponent, typeof i7.SkyDatepickerInputDirective, typeof i8.SkyFuzzyDatepickerInputDirective, typeof i9.SkyDayPickerCellComponent, typeof i10.SkyDayPickerButtonComponent], [typeof i11.CommonModule, typeof i12.
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyDatepickerModule, [typeof i1.SkyDatepickerCalendarComponent, typeof i2.SkyDatepickerCalendarInnerComponent, typeof i3.SkyDayPickerComponent, typeof i4.SkyMonthPickerComponent, typeof i5.SkyYearPickerComponent, typeof i6.SkyDatepickerComponent, typeof i7.SkyDatepickerInputDirective, typeof i8.SkyFuzzyDatepickerInputDirective, typeof i9.SkyDayPickerCellComponent, typeof i10.SkyDayPickerButtonComponent], [typeof i11.CommonModule, typeof i12.FormsModule, typeof i13.SkyIconModule, typeof i14.SkyDatetimeResourcesModule, typeof i15.SkyAffixModule, typeof i16.SkyThemeModule, typeof i17.SkyPopoverModule, typeof i13.SkyWaitModule], [typeof i1.SkyDatepickerCalendarComponent, typeof i6.SkyDatepickerComponent, typeof i7.SkyDatepickerInputDirective, typeof i8.SkyFuzzyDatepickerInputDirective]>;
|
23
22
|
static ɵinj: i0.ɵɵInjectorDeclaration<SkyDatepickerModule>;
|
24
23
|
}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { AfterContentInit, ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
2
2
|
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
3
|
-
import { SkyLibResourcesService } from '@skyux/i18n';
|
4
3
|
import { Subscription } from 'rxjs';
|
5
4
|
import { SkyTimepickerTimeFormatType } from './timepicker-time-format-type';
|
6
5
|
import { SkyTimepickerComponent } from './timepicker.component';
|
@@ -34,7 +33,7 @@ export declare class SkyTimepickerInputDirective implements OnInit, OnDestroy, C
|
|
34
33
|
*/
|
35
34
|
get disabled(): boolean;
|
36
35
|
set disabled(value: boolean | undefined);
|
37
|
-
constructor(renderer: Renderer2, elRef: ElementRef,
|
36
|
+
constructor(renderer: Renderer2, elRef: ElementRef, changeDetector: ChangeDetectorRef);
|
38
37
|
ngOnInit(): void;
|
39
38
|
ngAfterContentInit(): void;
|
40
39
|
ngOnDestroy(): void;
|
@@ -2,13 +2,12 @@ import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./timepicker.directive";
|
3
3
|
import * as i2 from "./timepicker.component";
|
4
4
|
import * as i3 from "@angular/common";
|
5
|
-
import * as i4 from "@skyux/
|
6
|
-
import * as i5 from "
|
7
|
-
import * as i6 from "
|
8
|
-
import * as i7 from "@skyux/
|
9
|
-
import * as i8 from "@skyux/theme";
|
5
|
+
import * as i4 from "@skyux/indicators";
|
6
|
+
import * as i5 from "../shared/sky-datetime-resources.module";
|
7
|
+
import * as i6 from "@skyux/core";
|
8
|
+
import * as i7 from "@skyux/theme";
|
10
9
|
export declare class SkyTimepickerModule {
|
11
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTimepickerModule, never>;
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyTimepickerModule, [typeof i1.SkyTimepickerInputDirective, typeof i2.SkyTimepickerComponent], [typeof i3.CommonModule, typeof i4.
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyTimepickerModule, [typeof i1.SkyTimepickerInputDirective, typeof i2.SkyTimepickerComponent], [typeof i3.CommonModule, typeof i4.SkyIconModule, typeof i5.SkyDatetimeResourcesModule, typeof i6.SkyAffixModule, typeof i7.SkyThemeModule], [typeof i1.SkyTimepickerInputDirective, typeof i2.SkyTimepickerComponent]>;
|
13
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<SkyTimepickerModule>;
|
14
13
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@skyux/datetime",
|
3
|
-
"version": "9.0.0-alpha.
|
3
|
+
"version": "9.0.0-alpha.10",
|
4
4
|
"author": "Blackbaud, Inc.",
|
5
5
|
"keywords": [
|
6
6
|
"blackbaud",
|
@@ -36,21 +36,21 @@
|
|
36
36
|
}
|
37
37
|
},
|
38
38
|
"peerDependencies": {
|
39
|
-
"@angular/common": "^16.1
|
40
|
-
"@angular/core": "^16.1
|
41
|
-
"@angular/forms": "^16.1
|
42
|
-
"@angular/platform-browser": "^16.1
|
43
|
-
"@skyux-sdk/testing": "9.0.0-alpha.
|
44
|
-
"@skyux/core": "9.0.0-alpha.
|
45
|
-
"@skyux/forms": "9.0.0-alpha.
|
46
|
-
"@skyux/i18n": "9.0.0-alpha.
|
47
|
-
"@skyux/indicators": "9.0.0-alpha.
|
48
|
-
"@skyux/popovers": "9.0.0-alpha.
|
49
|
-
"@skyux/theme": "9.0.0-alpha.
|
39
|
+
"@angular/common": "^16.2.1",
|
40
|
+
"@angular/core": "^16.2.1",
|
41
|
+
"@angular/forms": "^16.2.1",
|
42
|
+
"@angular/platform-browser": "^16.2.1",
|
43
|
+
"@skyux-sdk/testing": "9.0.0-alpha.10",
|
44
|
+
"@skyux/core": "9.0.0-alpha.10",
|
45
|
+
"@skyux/forms": "9.0.0-alpha.10",
|
46
|
+
"@skyux/i18n": "9.0.0-alpha.10",
|
47
|
+
"@skyux/indicators": "9.0.0-alpha.10",
|
48
|
+
"@skyux/popovers": "9.0.0-alpha.10",
|
49
|
+
"@skyux/theme": "9.0.0-alpha.10",
|
50
50
|
"moment": "^2.29.4"
|
51
51
|
},
|
52
52
|
"dependencies": {
|
53
|
-
"tslib": "^2.
|
53
|
+
"tslib": "^2.6.2"
|
54
54
|
},
|
55
55
|
"module": "fesm2022/skyux-datetime.mjs",
|
56
56
|
"typings": "index.d.ts",
|
package/testing/public-api.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export
|
2
|
-
export
|
1
|
+
export { SkyDatepickerFixture } from './datepicker-fixture';
|
2
|
+
export { SkyTimepickerFixture } from './timepicker-fixture';
|
@@ -1,45 +0,0 @@
|
|
1
|
-
// This class is mostly ported from the Angular 4.x DatePipe in order to maintain the old
|
2
|
-
// behavior of using the `Intl` API for formatting dates rather than having to register every
|
3
|
-
// supported locale.
|
4
|
-
// https://github.com/angular/angular/blob/4.4.x/packages/common/src/pipes/date_pipe.ts
|
5
|
-
import { SkyIntlDateFormatter } from '@skyux/i18n';
|
6
|
-
import moment from 'moment';
|
7
|
-
export class SkyDateFormatUtility {
|
8
|
-
/* spell-checker:disable */
|
9
|
-
static { this._ALIASES = {
|
10
|
-
medium: 'yMMMdjms',
|
11
|
-
short: 'yMdjm',
|
12
|
-
fullDate: 'yMMMMEEEEd',
|
13
|
-
longDate: 'yMMMMd',
|
14
|
-
mediumDate: 'yMMMd',
|
15
|
-
shortDate: 'yMd',
|
16
|
-
mediumTime: 'jms',
|
17
|
-
shortTime: 'jm',
|
18
|
-
}; }
|
19
|
-
/* spell-checker:enable */
|
20
|
-
static format(locale, value, pattern) {
|
21
|
-
let date;
|
22
|
-
if (isBlank(value) || value !== value) {
|
23
|
-
return undefined;
|
24
|
-
}
|
25
|
-
// Moment will interpret any non-date object as today's date. That would
|
26
|
-
// introduce a breaking change, so we check for it here. This could probably be removed
|
27
|
-
// in a future major version.
|
28
|
-
if (value instanceof Object && !(value instanceof Date)) {
|
29
|
-
throw new Error('Invalid value: ' + value);
|
30
|
-
}
|
31
|
-
// Use moment to avoid inconsistencies between browsers interpreting the value differently.
|
32
|
-
const momentDate = moment(value);
|
33
|
-
if (momentDate.isValid()) {
|
34
|
-
date = momentDate.toDate();
|
35
|
-
}
|
36
|
-
else {
|
37
|
-
throw new Error('Invalid value: ' + value);
|
38
|
-
}
|
39
|
-
return SkyIntlDateFormatter.format(date, locale, SkyDateFormatUtility._ALIASES[pattern] || pattern);
|
40
|
-
}
|
41
|
-
}
|
42
|
-
function isBlank(obj) {
|
43
|
-
return !obj;
|
44
|
-
}
|
45
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1mb3JtYXQtdXRpbGl0eS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9kYXRldGltZS9zcmMvbGliL21vZHVsZXMvZGF0ZS1waXBlL2RhdGUtZm9ybWF0LXV0aWxpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEseUZBQXlGO0FBQ3pGLDZGQUE2RjtBQUM3RixvQkFBb0I7QUFDcEIsdUZBQXVGO0FBQ3ZGLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUVuRCxPQUFPLE1BQU0sTUFBTSxRQUFRLENBQUM7QUFFNUIsTUFBTSxPQUFPLG9CQUFvQjtJQUMvQiwyQkFBMkI7YUFDWixhQUFRLEdBQThCO1FBQ25ELE1BQU0sRUFBRSxVQUFVO1FBQ2xCLEtBQUssRUFBRSxPQUFPO1FBQ2QsUUFBUSxFQUFFLFlBQVk7UUFDdEIsUUFBUSxFQUFFLFFBQVE7UUFDbEIsVUFBVSxFQUFFLE9BQU87UUFDbkIsU0FB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