@skyux/datetime 12.1.0 → 12.3.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.
@@ -14,7 +14,7 @@ export interface SkyDatepickerCalendarChange {
14
14
  startDate: Date;
15
15
  /**
16
16
  * The observable that allows the consumer to push custom dates back to the calendar
17
- * when the `SkyCalendarDateRangeChangeEvent` event fires. This is useful
17
+ * when the `SkyDatepickerCalendarChange` event fires. This is useful
18
18
  * for displaying key dates or disabled dates each time the calendar changes. If disabled dates
19
19
  * are provided, SKY UX will prevent the user from selecting the date from the calendar.
20
20
  * However, consumers will still need to add a custom validator to prevent users from entering
@@ -15,6 +15,7 @@ export declare class SkyTimepickerInputDirective implements OnInit, OnDestroy, C
15
15
  */
16
16
  get skyTimepickerInput(): SkyTimepickerComponent | undefined;
17
17
  set skyTimepickerInput(value: SkyTimepickerComponent | undefined);
18
+ get hostTimepickerInput(): SkyTimepickerComponent | undefined;
18
19
  /**
19
20
  * The 12-hour `hh` or 24-hour `HH` time format for the input.
20
21
  * @default "hh"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/datetime",
3
- "version": "12.1.0",
3
+ "version": "12.3.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -21,14 +21,14 @@
21
21
  "@angular/core": "^19.2.1",
22
22
  "@angular/forms": "^19.2.1",
23
23
  "@angular/platform-browser": "^19.2.1",
24
- "@skyux-sdk/testing": "12.1.0",
25
- "@skyux/core": "12.1.0",
26
- "@skyux/forms": "12.1.0",
27
- "@skyux/i18n": "12.1.0",
28
- "@skyux/icon": "12.1.0",
29
- "@skyux/indicators": "12.1.0",
30
- "@skyux/popovers": "12.1.0",
31
- "@skyux/theme": "12.1.0",
24
+ "@skyux-sdk/testing": "12.3.0",
25
+ "@skyux/core": "12.3.0",
26
+ "@skyux/forms": "12.3.0",
27
+ "@skyux/i18n": "12.3.0",
28
+ "@skyux/icon": "12.3.0",
29
+ "@skyux/indicators": "12.3.0",
30
+ "@skyux/popovers": "12.3.0",
31
+ "@skyux/theme": "12.3.0",
32
32
  "moment": "^2.30.1"
33
33
  },
34
34
  "dependencies": {
@@ -0,0 +1,6 @@
1
+ import { SkyHarnessFilters } from '@skyux/core/testing';
2
+ /**
3
+ * A set of criteria that can be used to filter a list of `SkyTimepickerHarness` instances.
4
+ */
5
+ export interface SkyTimepickerFilters extends SkyHarnessFilters {
6
+ }
@@ -0,0 +1,42 @@
1
+ import { HarnessPredicate } from '@angular/cdk/testing';
2
+ import { SkyComponentHarness } from '@skyux/core/testing';
3
+ import { SkyTimepickerFilters } from './timepicker-harness-filters';
4
+ import { SkyTimepickerInputHarness } from './timepicker-input-harness';
5
+ import { SkyTimepickerSelectorHarness } from './timepicker-selector-harness';
6
+ /**
7
+ * Harness for interacting with timepicker components in tests.
8
+ */
9
+ export declare class SkyTimepickerHarness extends SkyComponentHarness {
10
+ #private;
11
+ /**
12
+ * @internal
13
+ */
14
+ static hostSelector: string;
15
+ /**
16
+ * Gets a `HarnessPredicate` that can be used to search for a
17
+ * `SkyTimepickerHarness` that meets certain criteria.
18
+ *
19
+ * These filters only work for standalone timepickers. For timepickers
20
+ * wrapped inside `sky-input-box`, place filters on the input box instead and
21
+ * query the timepicker using a `SkyInputBoxHarness`.
22
+ * For the input box implementation, see the code example.
23
+ */
24
+ static with(filters: SkyTimepickerFilters): HarnessPredicate<SkyTimepickerHarness>;
25
+ /**
26
+ * Clicks the selector button.
27
+ */
28
+ clickSelectorButton(): Promise<void>;
29
+ /**
30
+ * Gets the `SkyTimepickerSelectorHarness` for the selector controlled by
31
+ * the timepicker. Throws an error if the selector is not open.
32
+ */
33
+ getTimepickerSelector(): Promise<SkyTimepickerSelectorHarness>;
34
+ /**
35
+ * Gets the timepicker input harness.
36
+ */
37
+ getControl(): Promise<SkyTimepickerInputHarness>;
38
+ /**
39
+ * Whether the timepicker calendar picker is open.
40
+ */
41
+ isTimepickerOpen(): Promise<boolean>;
42
+ }
@@ -0,0 +1,18 @@
1
+ import { SkyInputHarness } from '@skyux/core/testing';
2
+ /**
3
+ * Harness to interact with the timepicker input harness.
4
+ */
5
+ export declare class SkyTimepickerInputHarness extends SkyInputHarness {
6
+ /**
7
+ * @internal
8
+ */
9
+ static hostSelector: string;
10
+ /**
11
+ * Blurs the input.
12
+ */
13
+ blur(): Promise<void>;
14
+ /**
15
+ * Sets the value of the input.
16
+ */
17
+ setValue(value: string): Promise<void>;
18
+ }
@@ -0,0 +1,24 @@
1
+ import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
2
+ /**
3
+ * Harness for interacting with timepicker selector column in tests.
4
+ * @internal
5
+ */
6
+ export declare class SkyTimepickerSelectorColumnHarness extends ComponentHarness {
7
+ #private;
8
+ /**
9
+ * @internal
10
+ */
11
+ static hostSelector: string;
12
+ /**
13
+ * @internal
14
+ */
15
+ static with(filters: BaseHarnessFilters): HarnessPredicate<SkyTimepickerSelectorColumnHarness>;
16
+ /**
17
+ * Clicks the specified button.
18
+ */
19
+ clickButton(value: string): Promise<void>;
20
+ /**
21
+ * Gets the selected value.
22
+ */
23
+ getSelectedValue(): Promise<string | undefined>;
24
+ }
@@ -0,0 +1,7 @@
1
+ import { BaseHarnessFilters } from '@angular/cdk/testing';
2
+ /**
3
+ * A set of criteria that can be used to filter a list of `SkyTimepickerSelectorHarness` instances.
4
+ * @internal
5
+ */
6
+ export interface SkyTimepickerSelectorHarnessFilters extends BaseHarnessFilters {
7
+ }
@@ -0,0 +1,36 @@
1
+ import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
2
+ import { SkyTimepickerSelectorHarnessFilters } from './timepicker-selector-harness-filters';
3
+ /**
4
+ * Harness for interacting with a timepicker selector in tests.
5
+ */
6
+ export declare class SkyTimepickerSelectorHarness extends ComponentHarness {
7
+ #private;
8
+ /**
9
+ * @internal
10
+ */
11
+ static hostSelector: string;
12
+ /**
13
+ * @internal
14
+ */
15
+ static with(filters: SkyTimepickerSelectorHarnessFilters): HarnessPredicate<SkyTimepickerSelectorHarness>;
16
+ /**
17
+ * Clicks the specified hour button, or throws an error if it does not exist.
18
+ */
19
+ clickHour(value: string): Promise<void>;
20
+ /**
21
+ * Clicks the specified meridie button, or throws an error if it does not exist.
22
+ */
23
+ clickMeridie(value: string): Promise<void>;
24
+ /**
25
+ * Clicks the specified minute button, or throws an error if it does not exist.
26
+ */
27
+ clickMinute(value: string): Promise<void>;
28
+ /**
29
+ * Gets the current calendar mode.
30
+ */
31
+ getSelectorMode(): Promise<string>;
32
+ /**
33
+ * Gets the time value of the currently selected items.
34
+ */
35
+ getSelectedValue(): Promise<string | undefined>;
36
+ }
@@ -8,3 +8,7 @@ export { SkyDatepickerHarness } from './modules/datepicker/datepicker-harness';
8
8
  export { SkyDatepickerFilters } from './modules/datepicker/datepicker-harness.filters';
9
9
  export { SkyDatepickerInputHarness } from './modules/datepicker/datepicker-input-harness';
10
10
  export { SkyFuzzyDatepickerInputHarness } from './modules/datepicker/fuzzy-datepicker-input-harness';
11
+ export { SkyTimepickerHarness } from './modules/timepicker/timepicker-harness';
12
+ export { SkyTimepickerFilters } from './modules/timepicker/timepicker-harness-filters';
13
+ export { SkyTimepickerInputHarness } from './modules/timepicker/timepicker-input-harness';
14
+ export { SkyTimepickerSelectorHarness } from './modules/timepicker/timepicker-selector-harness';