@tylertech/forge 3.1.3 → 3.2.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.
@@ -9,6 +9,7 @@ import { BaseComponent } from '../../core/base/base-component';
9
9
  import { BASE_DATE_PICKER_CONSTANTS } from './base-date-picker-constants';
10
10
  /**
11
11
  * @property {boolean} [allowInvalidDate=false] - Whether to allow an invalid date to be input. When true, the date picker will not clear out the value of the input if the date was invalid (i.e. could not be parsed).
12
+ * @property {DatePickerCalendarDropdownText} calendarText - Customized strings to display in the calendar dropdown UI.
12
13
  * @property {boolean} [disabled=false] - Whether the date picker is disabled or not.
13
14
  * @property {(date: Date) => boolean} disableDayCallback - The callback to use for testing whether a specific date should be disabled or not.
14
15
  * @property {Date | Date[] | null | undefined} disabledDates - The dates that are restricted from being selected.
@@ -32,6 +33,7 @@ import { BASE_DATE_PICKER_CONSTANTS } from './base-date-picker-constants';
32
33
  * @property {string} yearRange - The year range.
33
34
  *
34
35
  * @attribute {boolean} [allow-invalid-date=false] - Whether to allow an invalid date to be input. When true, the date picker will not clear out the value of the input if the date was invalid (i.e. could not be parsed).
36
+ * @attribute {DatePickerCalendarDropdownText} [calendar-text] - Customized strings to display in the calendar dropdown UI.
35
37
  * @attribute {boolean} [disabled=false] - Whether the date picker is disabled or not.
36
38
  * @attribute {string} [disabled-days-of-week] - The days of the week to disable from selection.
37
39
  * @attribute {string} [locale] - The locale to use.
@@ -111,6 +113,9 @@ export class BaseDatePickerComponent extends BaseComponent {
111
113
  case BASE_DATE_PICKER_CONSTANTS.observedAttributes.LOCALE:
112
114
  this.locale = newValue;
113
115
  break;
116
+ case BASE_DATE_PICKER_CONSTANTS.observedAttributes.CALENDAR_TEXT:
117
+ this.calendarText = JSON.parse(newValue);
118
+ break;
114
119
  }
115
120
  }
116
121
  }
@@ -180,3 +185,6 @@ __decorate([
180
185
  __decorate([
181
186
  coreProperty()
182
187
  ], BaseDatePickerComponent.prototype, "locale", void 0);
188
+ __decorate([
189
+ coreProperty()
190
+ ], BaseDatePickerComponent.prototype, "calendarText", void 0);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tylertech/forge",
3
3
  "description": "Tyler Forge™ Web Components library",
4
- "version": "3.1.3",
4
+ "version": "3.2.0",
5
5
  "author": "Tyler Technologies, Inc.",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {