@skyux/datetime 11.28.0 → 11.29.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.
@@ -8,7 +8,6 @@ import * as i0 from "@angular/core";
8
8
  export declare class SkyDateRangeService {
9
9
  #private;
10
10
  get calculators(): SkyDateRangeCalculator[];
11
- constructor();
12
11
  /**
13
12
  * Creates a custom date range calculator.
14
13
  * @param config The calculator config.
@@ -1,4 +1,6 @@
1
1
  import { ValidationErrors } from '@angular/forms';
2
+ import { SkyLibResourcesService } from '@skyux/i18n';
3
+ import { Observable } from 'rxjs';
2
4
  import { SkyDateRange } from './date-range';
3
5
  import { SkyDateRangeCalculation } from './date-range-calculation';
4
6
  import { SkyDateRangeCalculatorConfig } from './date-range-calculator-config';
@@ -16,11 +18,12 @@ export declare class SkyDateRangeCalculator {
16
18
  /**
17
19
  * The text to display in the calculator select menu.
18
20
  */
19
- shortDescription: string;
21
+ get shortDescription$(): Observable<string>;
20
22
  /**
21
- * @internal
23
+ * The text to display in the calculator select menu.
24
+ * @deprecated Subscribe to the `shortDescription$` observable instead.
22
25
  */
23
- readonly _shortDescriptionResourceKey: string | undefined;
26
+ shortDescription: string;
24
27
  /**
25
28
  * The type of calculations available for the date range.
26
29
  */
@@ -29,9 +32,7 @@ export declare class SkyDateRangeCalculator {
29
32
  /**
30
33
  * The calculator ID that specifies calculator objects that represent date ranges.
31
34
  */
32
- calculatorId: SkyDateRangeCalculatorId, config: SkyDateRangeCalculatorConfig & {
33
- _shortDescriptionResourceKey?: string;
34
- });
35
+ calculatorId: SkyDateRangeCalculatorId, config: SkyDateRangeCalculatorConfig, resourcesSvc: SkyLibResourcesService, _shortDescriptionResourceKey?: string);
35
36
  /**
36
37
  * Gets the current value of the calculator.
37
38
  * @param startDateInput The start date.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/datetime",
3
- "version": "11.28.0",
3
+ "version": "11.29.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -41,14 +41,14 @@
41
41
  "@angular/core": "^18.2.13",
42
42
  "@angular/forms": "^18.2.13",
43
43
  "@angular/platform-browser": "^18.2.13",
44
- "@skyux-sdk/testing": "11.28.0",
45
- "@skyux/core": "11.28.0",
46
- "@skyux/forms": "11.28.0",
47
- "@skyux/i18n": "11.28.0",
48
- "@skyux/icon": "11.28.0",
49
- "@skyux/indicators": "11.28.0",
50
- "@skyux/popovers": "11.28.0",
51
- "@skyux/theme": "11.28.0",
44
+ "@skyux-sdk/testing": "11.29.0",
45
+ "@skyux/core": "11.29.0",
46
+ "@skyux/forms": "11.29.0",
47
+ "@skyux/i18n": "11.29.0",
48
+ "@skyux/icon": "11.29.0",
49
+ "@skyux/indicators": "11.29.0",
50
+ "@skyux/popovers": "11.29.0",
51
+ "@skyux/theme": "11.29.0",
52
52
  "moment": "^2.30.1"
53
53
  },
54
54
  "dependencies": {