@skyux/datetime 8.0.0-alpha.0 → 8.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 +1212 -1153
- package/esm2020/index.mjs +3 -2
- package/esm2020/lib/modules/date-pipe/date-pipe.module.mjs +4 -4
- package/esm2020/lib/modules/date-pipe/date.pipe.mjs +3 -3
- package/esm2020/lib/modules/date-pipe/fuzzy-date.pipe.mjs +3 -3
- package/esm2020/lib/modules/date-range-picker/date-range-picker-end-date-resource-key.pipe.mjs +3 -3
- package/esm2020/lib/modules/date-range-picker/date-range-picker-start-date-resource-key.pipe.mjs +3 -3
- package/esm2020/lib/modules/date-range-picker/date-range-picker.component.mjs +71 -71
- package/esm2020/lib/modules/date-range-picker/date-range-picker.module.mjs +4 -4
- package/esm2020/lib/modules/date-range-picker/date-range.service.mjs +3 -3
- package/esm2020/lib/modules/datepicker/datepicker-adapter.service.mjs +3 -3
- package/esm2020/lib/modules/datepicker/datepicker-calendar-inner.component.mjs +4 -4
- package/esm2020/lib/modules/datepicker/datepicker-calendar.component.mjs +11 -11
- package/esm2020/lib/modules/datepicker/datepicker-config.service.mjs +3 -3
- package/esm2020/lib/modules/datepicker/datepicker-input-fuzzy.directive.mjs +61 -61
- package/esm2020/lib/modules/datepicker/datepicker-input.directive.mjs +63 -63
- package/esm2020/lib/modules/datepicker/datepicker.component.mjs +62 -48
- package/esm2020/lib/modules/datepicker/datepicker.module.mjs +4 -4
- package/esm2020/lib/modules/datepicker/datepicker.service.mjs +3 -3
- package/esm2020/lib/modules/datepicker/daypicker-button.component.mjs +3 -3
- package/esm2020/lib/modules/datepicker/daypicker-cell.component.mjs +3 -3
- package/esm2020/lib/modules/datepicker/daypicker.component.mjs +10 -10
- package/esm2020/lib/modules/datepicker/fuzzy-date.service.mjs +3 -3
- package/esm2020/lib/modules/datepicker/monthpicker.component.mjs +3 -3
- package/esm2020/lib/modules/datepicker/yearpicker.component.mjs +3 -3
- package/esm2020/lib/modules/shared/sky-datetime-resources.module.mjs +4 -4
- package/esm2020/lib/modules/timepicker/timepicker-time-format-type.mjs +2 -0
- package/esm2020/lib/modules/timepicker/timepicker-time-output.mjs +2 -0
- package/esm2020/lib/modules/timepicker/timepicker.component.mjs +63 -49
- package/esm2020/lib/modules/timepicker/timepicker.directive.mjs +29 -29
- package/esm2020/lib/modules/timepicker/timepicker.module.mjs +4 -4
- package/fesm2015/skyux-datetime.mjs +422 -394
- package/fesm2015/skyux-datetime.mjs.map +1 -1
- package/fesm2020/skyux-datetime.mjs +423 -395
- package/fesm2020/skyux-datetime.mjs.map +1 -1
- package/index.d.ts +2 -1
- package/lib/modules/date-range-picker/types/date-range-calculator-date-range-function.d.ts +1 -1
- package/lib/modules/date-range-picker/types/date-range-calculator-validate-function.d.ts +1 -1
- package/lib/modules/datepicker/datepicker-calendar-inner.component.d.ts +2 -2
- package/lib/modules/datepicker/datepicker.component.d.ts +3 -3
- package/lib/modules/timepicker/timepicker-time-format-type.d.ts +1 -0
- package/lib/modules/timepicker/timepicker.component.d.ts +7 -6
- package/lib/modules/timepicker/timepicker.directive.d.ts +3 -2
- package/package.json +13 -13
- package/esm2020/lib/modules/timepicker/timepicker.interface.mjs +0 -2
- /package/lib/modules/timepicker/{timepicker.interface.d.ts → timepicker-time-output.d.ts} +0 -0
package/index.d.ts
CHANGED
@@ -17,7 +17,8 @@ export * from './lib/modules/datepicker/fuzzy-date';
|
|
17
17
|
export * from './lib/modules/datepicker/fuzzy-date.service';
|
18
18
|
export * from './lib/modules/datepicker/datepicker-calendar-change';
|
19
19
|
export * from './lib/modules/datepicker/datepicker-custom-date';
|
20
|
-
export * from './lib/modules/timepicker/timepicker
|
20
|
+
export * from './lib/modules/timepicker/timepicker-time-format-type';
|
21
|
+
export * from './lib/modules/timepicker/timepicker-time-output';
|
21
22
|
export * from './lib/modules/timepicker/timepicker.module';
|
22
23
|
export { SkyDatepickerCalendarComponent as λ1 } from './lib/modules/datepicker/datepicker-calendar.component';
|
23
24
|
export { SkyDatepickerComponent as λ2 } from './lib/modules/datepicker/datepicker.component';
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { SkyDateRange } from './date-range';
|
2
|
-
export
|
2
|
+
export type SkyDateRangeCalculatorGetValueFunction = (startDateInput?: Date | null, endDateInput?: Date | null) => SkyDateRange;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { ValidationErrors } from '@angular/forms';
|
2
2
|
import { SkyDateRange } from './date-range';
|
3
|
-
export
|
3
|
+
export type SkyDateRangeCalculatorValidateFunction = (value?: SkyDateRange) => ValidationErrors | null;
|
@@ -3,8 +3,8 @@ import { SkyDateFormatter } from './date-formatter';
|
|
3
3
|
import { SkyDatepickerCustomDate } from './datepicker-custom-date';
|
4
4
|
import { SkyDatepickerDate } from './datepicker-date';
|
5
5
|
import * as i0 from "@angular/core";
|
6
|
-
|
7
|
-
|
6
|
+
type DateComparator = (date1: Date, date2: Date) => number | undefined;
|
7
|
+
type KeyboardEventHandler = (key: string, event: KeyboardEvent) => void;
|
8
8
|
/**
|
9
9
|
* @internal
|
10
10
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
2
|
-
import { SkyAffixService, SkyCoreAdapterService, SkyOverlayService } from '@skyux/core';
|
2
|
+
import { SkyAffixService, SkyCoreAdapterService, SkyOverlayService, SkyStackingContext } from '@skyux/core';
|
3
3
|
import { SkyInputBoxHostService } from '@skyux/forms';
|
4
4
|
import { SkyThemeService } from '@skyux/theme';
|
5
5
|
import { SkyDatepickerCalendarChange } from './datepicker-calendar-change';
|
@@ -45,13 +45,13 @@ export declare class SkyDatepickerComponent implements OnDestroy, OnInit {
|
|
45
45
|
triggerButtonRef: ElementRef | undefined;
|
46
46
|
inputTemplateRef: TemplateRef<unknown> | undefined;
|
47
47
|
triggerButtonTemplateRef: TemplateRef<unknown> | undefined;
|
48
|
-
constructor(affixService: SkyAffixService, changeDetector: ChangeDetectorRef, coreAdapter: SkyCoreAdapterService, overlayService: SkyOverlayService, inputBoxHostService?: SkyInputBoxHostService | undefined, themeSvc?: SkyThemeService);
|
48
|
+
constructor(affixService: SkyAffixService, changeDetector: ChangeDetectorRef, coreAdapter: SkyCoreAdapterService, overlayService: SkyOverlayService, inputBoxHostService?: SkyInputBoxHostService | undefined, themeSvc?: SkyThemeService, stackingContext?: SkyStackingContext);
|
49
49
|
ngOnInit(): void;
|
50
50
|
ngOnDestroy(): void;
|
51
51
|
onCalendarModeChange(): void;
|
52
52
|
onSelectedDateChange(value: Date): void;
|
53
53
|
onTriggerButtonClick(): void;
|
54
54
|
onCalendarDateRangeChange(event?: SkyDatepickerCalendarChange): void;
|
55
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyDatepickerComponent, [null, null, null, null, { optional: true; }, { optional: true; }]>;
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyDatepickerComponent, [null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
56
56
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkyDatepickerComponent, "sky-datepicker", never, { "pickerClass": "pickerClass"; }, { "calendarDateRangeChange": "calendarDateRangeChange"; }, never, ["*"], false, never>;
|
57
57
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export type SkyTimepickerTimeFormatType = 'hh' | 'HH';
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
2
|
-
import { SkyAffixService, SkyCoreAdapterService, SkyOverlayService } from '@skyux/core';
|
2
|
+
import { SkyAffixService, SkyCoreAdapterService, SkyOverlayService, SkyStackingContext } from '@skyux/core';
|
3
3
|
import { SkyInputBoxHostService } from '@skyux/forms';
|
4
4
|
import { SkyThemeService } from '@skyux/theme';
|
5
|
-
import {
|
5
|
+
import { SkyTimepickerTimeFormatType } from './timepicker-time-format-type';
|
6
|
+
import { SkyTimepickerTimeOutput } from './timepicker-time-output';
|
6
7
|
import * as i0 from "@angular/core";
|
7
8
|
/**
|
8
9
|
* Creates a SKY UX-themed replacement for the HTML `input` element with `type="time"`.
|
@@ -36,7 +37,7 @@ export declare class SkyTimepickerComponent implements OnInit, OnDestroy {
|
|
36
37
|
minutes: Array<number>;
|
37
38
|
minuteMultiplier: number | undefined;
|
38
39
|
returnFormat: string | undefined;
|
39
|
-
timeFormat:
|
40
|
+
timeFormat: SkyTimepickerTimeFormatType;
|
40
41
|
timepickerId: string;
|
41
42
|
triggerButtonId: string;
|
42
43
|
set timepickerRef(value: ElementRef | undefined);
|
@@ -45,13 +46,13 @@ export declare class SkyTimepickerComponent implements OnInit, OnDestroy {
|
|
45
46
|
triggerButtonRef: ElementRef | undefined;
|
46
47
|
inputTemplateRef: TemplateRef<unknown> | undefined;
|
47
48
|
triggerButtonTemplateRef: TemplateRef<unknown> | undefined;
|
48
|
-
constructor(affixService: SkyAffixService, changeDetector: ChangeDetectorRef, coreAdapter: SkyCoreAdapterService, overlayService: SkyOverlayService, inputBoxHostService?: SkyInputBoxHostService | undefined, themeSvc?: SkyThemeService);
|
49
|
+
constructor(affixService: SkyAffixService, changeDetector: ChangeDetectorRef, coreAdapter: SkyCoreAdapterService, overlayService: SkyOverlayService, inputBoxHostService?: SkyInputBoxHostService | undefined, themeSvc?: SkyThemeService, stackingContext?: SkyStackingContext);
|
49
50
|
ngOnInit(): void;
|
50
51
|
ngOnDestroy(): void;
|
51
|
-
setFormat(format:
|
52
|
+
setFormat(format: SkyTimepickerTimeFormatType): void;
|
52
53
|
onCloseButtonClick(): void;
|
53
54
|
setTime(event: any): void;
|
54
55
|
onTriggerButtonClick(): void;
|
55
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTimepickerComponent, [null, null, null, null, { optional: true; }, { optional: true; }]>;
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTimepickerComponent, [null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
56
57
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkyTimepickerComponent, "sky-timepicker", never, {}, { "selectedTimeChanged": "selectedTimeChanged"; }, never, ["*"], false, never>;
|
57
58
|
}
|
@@ -2,6 +2,7 @@ import { AfterContentInit, ChangeDetectorRef, ElementRef, OnChanges, OnDestroy,
|
|
2
2
|
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
3
3
|
import { SkyLibResourcesService } from '@skyux/i18n';
|
4
4
|
import { Subscription } from 'rxjs';
|
5
|
+
import { SkyTimepickerTimeFormatType } from './timepicker-time-format-type';
|
5
6
|
import { SkyTimepickerComponent } from './timepicker.component';
|
6
7
|
import * as i0 from "@angular/core";
|
7
8
|
export declare class SkyTimepickerInputDirective implements OnInit, OnDestroy, ControlValueAccessor, Validator, OnChanges, AfterContentInit {
|
@@ -19,8 +20,8 @@ export declare class SkyTimepickerInputDirective implements OnInit, OnDestroy, C
|
|
19
20
|
* The 12-hour `hh` or 24-hour `HH` time format for the input.
|
20
21
|
* @default "hh"
|
21
22
|
*/
|
22
|
-
set timeFormat(value:
|
23
|
-
get timeFormat():
|
23
|
+
set timeFormat(value: SkyTimepickerTimeFormatType | undefined);
|
24
|
+
get timeFormat(): SkyTimepickerTimeFormatType;
|
24
25
|
/**
|
25
26
|
* The custom time format. For examples,
|
26
27
|
* see the [moment.js](https://momentjs.com/docs/#/displaying/format/) docs.
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@skyux/datetime",
|
3
|
-
"version": "8.0.0-alpha.
|
3
|
+
"version": "8.0.0-alpha.10",
|
4
4
|
"author": "Blackbaud, Inc.",
|
5
5
|
"keywords": [
|
6
6
|
"blackbaud",
|
@@ -40,21 +40,21 @@
|
|
40
40
|
}
|
41
41
|
},
|
42
42
|
"peerDependencies": {
|
43
|
-
"@angular/common": "^15.1
|
44
|
-
"@angular/core": "^15.1
|
45
|
-
"@angular/forms": "^15.1
|
46
|
-
"@angular/platform-browser": "^15.1
|
47
|
-
"@skyux-sdk/testing": "8.0.0-alpha.
|
48
|
-
"@skyux/core": "8.0.0-alpha.
|
49
|
-
"@skyux/forms": "8.0.0-alpha.
|
50
|
-
"@skyux/i18n": "8.0.0-alpha.
|
51
|
-
"@skyux/indicators": "8.0.0-alpha.
|
52
|
-
"@skyux/popovers": "8.0.0-alpha.
|
53
|
-
"@skyux/theme": "8.0.0-alpha.
|
43
|
+
"@angular/common": "^15.2.1",
|
44
|
+
"@angular/core": "^15.2.1",
|
45
|
+
"@angular/forms": "^15.2.1",
|
46
|
+
"@angular/platform-browser": "^15.2.1",
|
47
|
+
"@skyux-sdk/testing": "8.0.0-alpha.10",
|
48
|
+
"@skyux/core": "8.0.0-alpha.10",
|
49
|
+
"@skyux/forms": "8.0.0-alpha.10",
|
50
|
+
"@skyux/i18n": "8.0.0-alpha.10",
|
51
|
+
"@skyux/indicators": "8.0.0-alpha.10",
|
52
|
+
"@skyux/popovers": "8.0.0-alpha.10",
|
53
|
+
"@skyux/theme": "8.0.0-alpha.10",
|
54
54
|
"moment": "^2.29.4"
|
55
55
|
},
|
56
56
|
"dependencies": {
|
57
|
-
"tslib": "^2.
|
57
|
+
"tslib": "^2.5.0"
|
58
58
|
},
|
59
59
|
"module": "fesm2015/skyux-datetime.mjs",
|
60
60
|
"es2020": "fesm2020/skyux-datetime.mjs",
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXBpY2tlci5pbnRlcmZhY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvZGF0ZXRpbWUvc3JjL2xpYi9tb2R1bGVzL3RpbWVwaWNrZXIvdGltZXBpY2tlci5pbnRlcmZhY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgU2t5VGltZXBpY2tlclRpbWVPdXRwdXQge1xuICAvKipcbiAgICogVGhlIGhvdXIuXG4gICAqL1xuICBob3VyOiBudW1iZXI7XG5cbiAgLyoqXG4gICAqIFRoZSBtaW51dGUuXG4gICAqL1xuICBtaW51dGU6IG51bWJlcjtcblxuICAvKipcbiAgICogVGhlIG1lcmlkaWFuIChgQU1gIG9yIGBQTWApLlxuICAgKi9cbiAgbWVyaWRpZTogc3RyaW5nO1xuXG4gIC8qKlxuICAgKiBUaGUgdGltZSB6b25lLlxuICAgKi9cbiAgdGltZXpvbmU6IG51bWJlcjtcblxuICAvKipcbiAgICogVGhlIGRhdGUgaW4gW2lzbzg2MDEgZm9ybWF0XShodHRwczovL3d3dy5pc28ub3JnL2lzby04NjAxLWRhdGUtYW5kLXRpbWUtZm9ybWF0Lmh0bWwpLlxuICAgKi9cbiAgaXNvODYwMTogRGF0ZTtcblxuICAvKipcbiAgICogVGhlIGRhdGUgaW4gdGhlIGN1cnJlbnQgbG9jYWwgdGltZSBmb3JtYXQuXG4gICAqL1xuICBsb2NhbDogc3RyaW5nO1xuXG4gIC8qKlxuICAgKiBUaGUgdGltZSBmb3JtYXQgc3RyaW5nLlxuICAgKi9cbiAgY3VzdG9tRm9ybWF0OiBzdHJpbmc7XG59XG4iXX0=
|
File without changes
|