@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.
- package/custom-elements.json +135 -33
- package/dist/lib.js +1 -1
- package/dist/lib.js.map +4 -4
- package/dist/vscode.html-custom-data.json +11 -1
- package/esm/calendar/calendar-adapter.d.ts +6 -6
- package/esm/calendar/calendar-adapter.js +45 -11
- package/esm/calendar/calendar-constants.d.ts +20 -0
- package/esm/calendar/calendar-constants.js +22 -0
- package/esm/calendar/calendar-core.d.ts +3 -3
- package/esm/calendar/calendar-core.js +5 -17
- package/esm/calendar/calendar-dom-utils.js +10 -4
- package/esm/calendar/calendar-dropdown/calendar-dropdown-constants.d.ts +2 -0
- package/esm/calendar/calendar.d.ts +9 -0
- package/esm/calendar/calendar.js +9 -0
- package/esm/chips/chip/chip-core.js +0 -1
- package/esm/date-picker/base/base-date-picker-adapter.d.ts +3 -0
- package/esm/date-picker/base/base-date-picker-adapter.js +56 -0
- package/esm/date-picker/base/base-date-picker-constants.d.ts +11 -0
- package/esm/date-picker/base/base-date-picker-constants.js +2 -1
- package/esm/date-picker/base/base-date-picker-core.d.ts +4 -1
- package/esm/date-picker/base/base-date-picker-core.js +12 -1
- package/esm/date-picker/base/base-date-picker.d.ts +5 -1
- package/esm/date-picker/base/base-date-picker.js +8 -0
- package/package.json +1 -1
|
@@ -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);
|