q2-tecton-elements 1.18.0 → 1.19.1
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/dist/cjs/click-elsewhere.cjs.entry.js +1 -1
- package/dist/cjs/{icons-e2bc9ee9.js → icons-afbdf88a.js} +1 -1
- package/dist/cjs/{index-eccd5617.js → index-3518c78c.js} +1 -1
- package/dist/cjs/{index-0128397d.js → index-734296a7.js} +476 -271
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/q2-avatar.cjs.entry.js +9 -6
- package/dist/cjs/q2-badge_2.cjs.entry.js +46 -7
- package/dist/cjs/q2-btn_2.cjs.entry.js +30 -5
- package/dist/cjs/q2-calendar.cjs.entry.js +102 -63
- package/dist/cjs/q2-card.cjs.entry.js +17 -6
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +7 -3
- package/dist/cjs/q2-carousel.cjs.entry.js +196 -285
- package/dist/cjs/q2-chart-donut.cjs.entry.js +583 -504
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +9 -7
- package/dist/cjs/q2-checkbox.cjs.entry.js +17 -4
- package/dist/cjs/q2-dropdown-item.cjs.entry.js +9 -3
- package/dist/cjs/q2-dropdown.cjs.entry.js +16 -5
- package/dist/cjs/q2-editable-field.cjs.entry.js +16 -6
- package/dist/cjs/q2-icon.cjs.entry.js +6 -4
- package/dist/cjs/q2-loading-element.cjs.entry.js +6 -2
- package/dist/cjs/q2-loc.cjs.entry.js +5 -3
- package/dist/cjs/q2-message.cjs.entry.js +4 -3
- package/dist/cjs/q2-month-picker.cjs.entry.js +9 -7
- package/dist/cjs/q2-optgroup.cjs.entry.js +6 -5
- package/dist/cjs/q2-option-list_2.cjs.entry.js +21 -7
- package/dist/cjs/q2-option.cjs.entry.js +12 -2
- package/dist/cjs/q2-pagination.cjs.entry.js +11 -3
- package/dist/cjs/q2-pill.cjs.entry.js +25 -7
- package/dist/cjs/q2-radio-group.cjs.entry.js +13 -6
- package/dist/cjs/q2-radio.cjs.entry.js +13 -8
- package/dist/cjs/q2-section.cjs.entry.js +44 -11
- package/dist/cjs/q2-select.cjs.entry.js +26 -17
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +8 -3
- package/dist/cjs/q2-stepper-vertical.cjs.entry.js +5 -4
- package/dist/cjs/q2-stepper.cjs.entry.js +9 -7
- package/dist/cjs/q2-tab-container.cjs.entry.js +14 -9
- package/dist/cjs/q2-tab-pane.cjs.entry.js +10 -2
- package/dist/cjs/q2-tag.cjs.entry.js +20 -7
- package/dist/cjs/q2-tecton-elements.cjs.js +3 -3
- package/dist/cjs/q2-textarea.cjs.entry.js +20 -4
- package/dist/cjs/q2-tooltip.cjs.entry.js +9 -3
- package/dist/cjs/{shapes-c1a60d46.js → shapes-aad2b98f.js} +1 -1
- package/dist/cjs/tecton-tab-pane.cjs.entry.js +17 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/click-elsewhere/index.js +18 -17
- package/dist/collection/components/q2-avatar/index.js +100 -92
- package/dist/collection/components/q2-avatar/styles.css +1 -1
- package/dist/collection/components/q2-badge/index.js +119 -111
- package/dist/collection/components/q2-badge/styles.css +1 -1
- package/dist/collection/components/q2-btn/index.js +349 -322
- package/dist/collection/components/q2-btn/styles.css +7 -7
- package/dist/collection/components/q2-calendar/index.js +578 -552
- package/dist/collection/components/q2-calendar/q2-month-picker.css +1 -1
- package/dist/collection/components/q2-calendar/q2-month-picker.js +112 -116
- package/dist/collection/components/q2-calendar/styles.css +1 -1
- package/dist/collection/components/q2-card/index.js +262 -244
- package/dist/collection/components/q2-card/styles.css +9 -2
- package/dist/collection/components/q2-carousel/index.js +249 -253
- package/dist/collection/components/q2-carousel/styles.css +1 -1
- package/dist/collection/components/q2-carousel-pane/index.js +108 -96
- package/dist/collection/components/q2-carousel-pane/styles.css +5 -4
- package/dist/collection/components/q2-chart-donut/index.js +350 -334
- package/dist/collection/components/q2-chart-donut/styles.css +3 -3
- package/dist/collection/components/q2-checkbox/index.js +296 -287
- package/dist/collection/components/q2-checkbox/styles.css +2 -2
- package/dist/collection/components/q2-checkbox-group/index.js +156 -152
- package/dist/collection/components/q2-checkbox-group/styles.css +1 -1
- package/dist/collection/components/q2-dropdown/index.js +255 -240
- package/dist/collection/components/q2-dropdown/styles.css +1 -1
- package/dist/collection/components/q2-dropdown-item/index.js +134 -123
- package/dist/collection/components/q2-dropdown-item/styles.css +12 -10
- package/dist/collection/components/q2-editable-field/index.js +300 -293
- package/dist/collection/components/q2-editable-field/styles.css +1 -1
- package/dist/collection/components/q2-icon/icons.js +358 -2158
- package/dist/collection/components/q2-icon/index.js +59 -49
- package/dist/collection/components/q2-icon/styles.css +1 -1
- package/dist/collection/components/q2-input/index.js +729 -705
- package/dist/collection/components/q2-input/styles.css +2 -2
- package/dist/collection/components/q2-loading/index.js +143 -132
- package/dist/collection/components/q2-loading/skeleton/q2-loading-element/index.js +85 -74
- package/dist/collection/components/q2-loading/skeleton/shapes.js +23 -36
- package/dist/collection/components/q2-loading/styles.css +1 -1
- package/dist/collection/components/q2-loc/index.js +49 -39
- package/dist/collection/components/q2-loc/styles.css +1 -1
- package/dist/collection/components/q2-message/index.js +101 -92
- package/dist/collection/components/q2-message/styles.css +1 -1
- package/dist/collection/components/q2-optgroup/index.js +64 -56
- package/dist/collection/components/q2-optgroup/styles.css +1 -1
- package/dist/collection/components/q2-option/index.js +244 -229
- package/dist/collection/components/q2-option/styles.css +5 -1
- package/dist/collection/components/q2-option-list/index.js +291 -270
- package/dist/collection/components/q2-option-list/styles.css +1 -1
- package/dist/collection/components/q2-pagination/index.js +183 -179
- package/dist/collection/components/q2-pagination/styles.css +1 -1
- package/dist/collection/components/q2-pill/index.js +260 -208
- package/dist/collection/components/q2-pill/styles.css +1 -1
- package/dist/collection/components/q2-popover/index.js +169 -151
- package/dist/collection/components/q2-popover/styles.css +2 -2
- package/dist/collection/components/q2-radio/index.js +233 -224
- package/dist/collection/components/q2-radio/styles.css +3 -3
- package/dist/collection/components/q2-radio-group/index.js +252 -244
- package/dist/collection/components/q2-radio-group/styles.css +1 -1
- package/dist/collection/components/q2-section/index.js +169 -131
- package/dist/collection/components/q2-section/styles.css +8 -6
- package/dist/collection/components/q2-select/index.js +393 -381
- package/dist/collection/components/q2-select/styles.css +1 -1
- package/dist/collection/components/q2-stepper/index.js +124 -126
- package/dist/collection/components/q2-stepper/styles.css +2 -1
- package/dist/collection/components/q2-stepper-pane/index.js +165 -149
- package/dist/collection/components/q2-stepper-pane/styles.css +1 -1
- package/dist/collection/components/q2-stepper-vertical/index.js +86 -85
- package/dist/collection/components/q2-stepper-vertical/styles.css +1 -1
- package/dist/collection/components/q2-tab-container/index.js +189 -184
- package/dist/collection/components/q2-tab-container/styles.css +1 -1
- package/dist/collection/components/q2-tab-pane/index.js +185 -166
- package/dist/collection/components/q2-tab-pane/styles.css +1 -1
- package/dist/collection/components/q2-tag/index.js +168 -116
- package/dist/collection/components/q2-tag/styles.css +1 -1
- package/dist/collection/components/q2-textarea/index.js +344 -327
- package/dist/collection/components/q2-textarea/styles.css +2 -2
- package/dist/collection/components/q2-tooltip/index.js +147 -133
- package/dist/collection/components/q2-tooltip/styles.css +1 -1
- package/dist/collection/components/tecton-tab-pane/index.js +287 -266
- package/dist/collection/components/tecton-tab-pane/styles.css +1 -1
- package/dist/collection/utils/index.js +2 -6
- package/dist/esm/click-elsewhere.entry.js +1 -1
- package/dist/esm/{icons-ed54e307.js → icons-78da5dd2.js} +1 -1
- package/dist/esm/{index-eac6b89e.js → index-9c591682.js} +1 -1
- package/dist/esm/{index-6d5ed7cc.js → index-bb1c8c7f.js} +476 -271
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/q2-avatar.entry.js +9 -6
- package/dist/esm/q2-badge_2.entry.js +46 -7
- package/dist/esm/q2-btn_2.entry.js +30 -5
- package/dist/esm/q2-calendar.entry.js +102 -63
- package/dist/esm/q2-card.entry.js +17 -6
- package/dist/esm/q2-carousel-pane.entry.js +7 -3
- package/dist/esm/q2-carousel.entry.js +196 -285
- package/dist/esm/q2-chart-donut.entry.js +583 -504
- package/dist/esm/q2-checkbox-group.entry.js +9 -7
- package/dist/esm/q2-checkbox.entry.js +17 -4
- package/dist/esm/q2-dropdown-item.entry.js +9 -3
- package/dist/esm/q2-dropdown.entry.js +16 -5
- package/dist/esm/q2-editable-field.entry.js +16 -6
- package/dist/esm/q2-icon.entry.js +6 -4
- package/dist/esm/q2-loading-element.entry.js +6 -2
- package/dist/esm/q2-loc.entry.js +5 -3
- package/dist/esm/q2-message.entry.js +4 -3
- package/dist/esm/q2-month-picker.entry.js +9 -7
- package/dist/esm/q2-optgroup.entry.js +6 -5
- package/dist/esm/q2-option-list_2.entry.js +21 -7
- package/dist/esm/q2-option.entry.js +12 -2
- package/dist/esm/q2-pagination.entry.js +11 -3
- package/dist/esm/q2-pill.entry.js +25 -7
- package/dist/esm/q2-radio-group.entry.js +13 -6
- package/dist/esm/q2-radio.entry.js +13 -8
- package/dist/esm/q2-section.entry.js +44 -11
- package/dist/esm/q2-select.entry.js +26 -17
- package/dist/esm/q2-stepper-pane.entry.js +8 -3
- package/dist/esm/q2-stepper-vertical.entry.js +5 -4
- package/dist/esm/q2-stepper.entry.js +9 -7
- package/dist/esm/q2-tab-container.entry.js +14 -9
- package/dist/esm/q2-tab-pane.entry.js +10 -2
- package/dist/esm/q2-tag.entry.js +20 -7
- package/dist/esm/q2-tecton-elements.js +3 -3
- package/dist/esm/q2-textarea.entry.js +20 -4
- package/dist/esm/q2-tooltip.entry.js +9 -3
- package/dist/esm/{shapes-c32e3ba2.js → shapes-62b8a431.js} +1 -1
- package/dist/esm/tecton-tab-pane.entry.js +17 -2
- package/dist/loader/package.json +1 -0
- package/dist/q2-tecton-elements/p-0ba564b1.entry.js +1 -0
- package/dist/q2-tecton-elements/p-0fad9c5a.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-73154834.js → p-13a639cf.js} +1 -1
- package/dist/q2-tecton-elements/p-16c11d74.entry.js +1 -0
- package/dist/q2-tecton-elements/p-17e0cbf1.entry.js +1 -0
- package/dist/q2-tecton-elements/p-2c9b1308.entry.js +1 -0
- package/dist/q2-tecton-elements/p-2e832e42.entry.js +1 -0
- package/dist/q2-tecton-elements/p-315fdb74.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-c608e3c9.entry.js → p-444415b5.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-4d700630.entry.js +1 -0
- package/dist/q2-tecton-elements/p-54e792bd.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-80014da0.js → p-5e374fbd.js} +1 -1
- package/dist/q2-tecton-elements/p-5f064e1e.entry.js +39 -0
- package/dist/q2-tecton-elements/p-692f2d09.entry.js +1 -0
- package/dist/q2-tecton-elements/p-6e6b5b80.entry.js +1 -0
- package/dist/q2-tecton-elements/p-74136b15.entry.js +1 -0
- package/dist/q2-tecton-elements/p-7e8f43d1.entry.js +1 -0
- package/dist/q2-tecton-elements/p-8e380edf.entry.js +1 -0
- package/dist/q2-tecton-elements/p-926a3e80.js +2 -0
- package/dist/q2-tecton-elements/{p-93c00587.js → p-92e1faf8.js} +1 -1
- package/dist/q2-tecton-elements/p-9772b15f.entry.js +1 -0
- package/dist/q2-tecton-elements/p-97aa8423.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-17cffd7d.entry.js → p-a987402e.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-aaf42539.entry.js +1 -0
- package/dist/q2-tecton-elements/p-ac674c20.entry.js +1 -0
- package/dist/q2-tecton-elements/p-b8b00394.entry.js +1 -0
- package/dist/q2-tecton-elements/p-c444a60b.entry.js +1 -0
- package/dist/q2-tecton-elements/p-c6c489fe.entry.js +1 -0
- package/dist/q2-tecton-elements/p-ce015552.entry.js +1 -0
- package/dist/q2-tecton-elements/p-d464fccc.entry.js +1 -0
- package/dist/q2-tecton-elements/p-de164483.entry.js +1 -0
- package/dist/q2-tecton-elements/p-df91e954.entry.js +1 -0
- package/dist/q2-tecton-elements/p-e6d26f39.entry.js +1 -0
- package/dist/q2-tecton-elements/p-e8e113c2.entry.js +1 -0
- package/dist/q2-tecton-elements/p-f1d06917.entry.js +1 -0
- package/dist/q2-tecton-elements/p-f219fe9d.entry.js +1 -0
- package/dist/q2-tecton-elements/p-f800fd1e.entry.js +1 -0
- package/dist/q2-tecton-elements/p-fb37e67e.entry.js +1 -0
- package/dist/q2-tecton-elements/p-fc134a5d.entry.js +1 -0
- package/dist/q2-tecton-elements/p-fe88e979.entry.js +1 -0
- package/dist/q2-tecton-elements/p-ffb48ccc.entry.js +1 -0
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/test/helpers.js +6 -0
- package/dist/types/components/q2-pill/index.d.ts +3 -0
- package/dist/types/components/q2-section/index.d.ts +3 -0
- package/dist/types/components/q2-tag/index.d.ts +3 -0
- package/dist/types/components.d.ts +154 -38
- package/dist/types/stencil-public-runtime.d.ts +20 -4
- package/dist/types/workspace/workspace/{Tecton_tecton-production_master → tecton-production_release_1.19.x}/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +2 -0
- package/package.json +6 -6
- package/dist/q2-tecton-elements/p-02c1b7fd.entry.js +0 -1
- package/dist/q2-tecton-elements/p-04c743f2.entry.js +0 -1
- package/dist/q2-tecton-elements/p-07dc509c.entry.js +0 -1
- package/dist/q2-tecton-elements/p-12caa479.entry.js +0 -1
- package/dist/q2-tecton-elements/p-160dd1c2.entry.js +0 -1
- package/dist/q2-tecton-elements/p-1a3de749.entry.js +0 -1
- package/dist/q2-tecton-elements/p-2061c3fd.entry.js +0 -1
- package/dist/q2-tecton-elements/p-2a217895.entry.js +0 -1
- package/dist/q2-tecton-elements/p-2b94ae62.entry.js +0 -1
- package/dist/q2-tecton-elements/p-2e54f9a0.entry.js +0 -1
- package/dist/q2-tecton-elements/p-375569ff.entry.js +0 -1
- package/dist/q2-tecton-elements/p-3766cc6c.entry.js +0 -1
- package/dist/q2-tecton-elements/p-3eda2714.entry.js +0 -1
- package/dist/q2-tecton-elements/p-421af42d.entry.js +0 -1
- package/dist/q2-tecton-elements/p-4c53713d.entry.js +0 -1
- package/dist/q2-tecton-elements/p-4fd405f5.entry.js +0 -1
- package/dist/q2-tecton-elements/p-509c8924.entry.js +0 -1
- package/dist/q2-tecton-elements/p-55dc3dc1.entry.js +0 -1
- package/dist/q2-tecton-elements/p-5fffb28a.entry.js +0 -1
- package/dist/q2-tecton-elements/p-612e9974.entry.js +0 -1
- package/dist/q2-tecton-elements/p-64ca8c59.entry.js +0 -1
- package/dist/q2-tecton-elements/p-796c2bb5.entry.js +0 -1
- package/dist/q2-tecton-elements/p-86887866.entry.js +0 -1
- package/dist/q2-tecton-elements/p-9204c34d.entry.js +0 -1
- package/dist/q2-tecton-elements/p-9725d55f.entry.js +0 -1
- package/dist/q2-tecton-elements/p-a0fa416d.entry.js +0 -39
- package/dist/q2-tecton-elements/p-bd83e8e2.entry.js +0 -1
- package/dist/q2-tecton-elements/p-be0f2539.entry.js +0 -1
- package/dist/q2-tecton-elements/p-c05b0b55.entry.js +0 -1
- package/dist/q2-tecton-elements/p-c5691700.js +0 -1
- package/dist/q2-tecton-elements/p-d826d7ad.entry.js +0 -1
- package/dist/q2-tecton-elements/p-d9e9340c.entry.js +0 -1
- package/dist/q2-tecton-elements/p-e5757895.entry.js +0 -1
- package/dist/q2-tecton-elements/p-e68c9ef0.entry.js +0 -1
- package/dist/q2-tecton-elements/p-eb33bda4.entry.js +0 -1
- package/dist/q2-tecton-elements/p-f319549d.entry.js +0 -1
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h, } from '@stencil/core';
|
|
2
2
|
import { addDays, isSameDay, format, isValid as isValidDate } from 'date-fns';
|
|
3
3
|
import { stringToDate, setupMonthYear, getMonths, getDays, getDaysOfWeek, stringArrayToDate, convertMomentFormat, validateInput, handleMissingZeros, formatDateISO, formatDateLong, formatDateShort, removeTimezoneOffset, reorderDateString, } from './helpers';
|
|
4
4
|
import { buildDates, getValidDaysOfWeek } from './validation';
|
|
5
5
|
import { handleAriaLabel, loc, setPopProperties, overrideFocus, isEventFromElement } from 'src/utils';
|
|
6
6
|
export class Q2Calendar {
|
|
7
7
|
constructor() {
|
|
8
|
-
this.assume = 'current';
|
|
9
|
-
this.dropdownOpen = false;
|
|
10
|
-
this.keyboardSelection = false;
|
|
11
|
-
this.typedValue = '';
|
|
12
8
|
this.formatModifier = 'M/D/YYYY'; // To allow missing leading zero, 4/3/2021 => converts into 04/03/2021
|
|
13
9
|
this.defaultFormatString = 'mm/dd/yyyy';
|
|
14
10
|
this.defaultHintMessage = loc('tecton.element.calendar.hint.format') + ': ' + this.defaultFormatString;
|
|
15
|
-
this.hintMessage = this.defaultHintMessage;
|
|
16
|
-
this.hintMessageType = 'info';
|
|
17
11
|
this.scheduledAfterRender = [];
|
|
18
12
|
this.dayAbbrStrings = getDays();
|
|
19
13
|
this.dayStrings = getDaysOfWeek();
|
|
@@ -188,7 +182,15 @@ export class Q2Calendar {
|
|
|
188
182
|
const dateCell = event.target.closest('td:not([aria-hidden])');
|
|
189
183
|
if (!dateCell)
|
|
190
184
|
return;
|
|
191
|
-
|
|
185
|
+
const clickedDate = removeTimezoneOffset(new Date(dateCell.dataset.date));
|
|
186
|
+
this.selectDate(clickedDate);
|
|
187
|
+
if (this.isTypeable) {
|
|
188
|
+
this.setHints({
|
|
189
|
+
isValid: true,
|
|
190
|
+
message: `${loc('tecton.element.calendar.hint.selection')}: ${formatDateLong(clickedDate)}`,
|
|
191
|
+
messageType: 'success',
|
|
192
|
+
});
|
|
193
|
+
}
|
|
192
194
|
this.closeCalendar();
|
|
193
195
|
};
|
|
194
196
|
this.onDateKeydown = (event) => {
|
|
@@ -256,6 +258,37 @@ export class Q2Calendar {
|
|
|
256
258
|
break;
|
|
257
259
|
}
|
|
258
260
|
};
|
|
261
|
+
this.value = undefined;
|
|
262
|
+
this.label = undefined;
|
|
263
|
+
this.hideLabel = undefined;
|
|
264
|
+
this.ariaLabel = undefined;
|
|
265
|
+
this.optional = undefined;
|
|
266
|
+
this.disabled = undefined;
|
|
267
|
+
this.readonly = undefined;
|
|
268
|
+
this.invalid = undefined;
|
|
269
|
+
this.typeable = undefined;
|
|
270
|
+
this.placeholder = undefined;
|
|
271
|
+
this.buttonLabel = undefined;
|
|
272
|
+
this.disabledMsg = undefined;
|
|
273
|
+
this.calendarLabel = undefined;
|
|
274
|
+
this.disclaimer = undefined;
|
|
275
|
+
this.displayFormat = undefined;
|
|
276
|
+
this.startDate = undefined;
|
|
277
|
+
this.endDate = undefined;
|
|
278
|
+
this.cutoffTime = undefined;
|
|
279
|
+
this.daysOfWeekChecksum = undefined;
|
|
280
|
+
this.popDirection = undefined;
|
|
281
|
+
this.assume = 'current';
|
|
282
|
+
this.errors = undefined;
|
|
283
|
+
this.invalidDates = undefined;
|
|
284
|
+
this.validDates = undefined;
|
|
285
|
+
this.onsuccess = undefined;
|
|
286
|
+
this.dropdownOpen = false;
|
|
287
|
+
this.keyboardSelection = false;
|
|
288
|
+
this.typedValue = '';
|
|
289
|
+
this.dateList = undefined;
|
|
290
|
+
this.hintMessage = this.defaultHintMessage;
|
|
291
|
+
this.hintMessageType = 'info';
|
|
259
292
|
}
|
|
260
293
|
resizeIframe() {
|
|
261
294
|
return window.TectonElements && window.TectonElements.resizeIframe && window.TectonElements.resizeIframe();
|
|
@@ -394,6 +427,10 @@ export class Q2Calendar {
|
|
|
394
427
|
? formatDateShort(newValue.toDate())
|
|
395
428
|
: newValue;
|
|
396
429
|
this.typedValue = newValueAsString;
|
|
430
|
+
// reset hint when value is cleared
|
|
431
|
+
if (!newValueAsString && !this.invalid) {
|
|
432
|
+
this.setHints({ isValid: true, message: this.defaultHintMessage, messageType: 'info' });
|
|
433
|
+
}
|
|
397
434
|
}
|
|
398
435
|
else {
|
|
399
436
|
const dateValue = isMoment ? newValue.toDate() : stringToDate(newValue);
|
|
@@ -506,11 +543,7 @@ export class Q2Calendar {
|
|
|
506
543
|
(_a = this.calendarBody.querySelector(`td[data-day="${date.getDate()}"]`)) === null || _a === void 0 ? void 0 : _a.focus();
|
|
507
544
|
}
|
|
508
545
|
render() {
|
|
509
|
-
return (h("click-elsewhere", { class: `calendar-container${this.dropdownOpen ? ' dropdown-open' : ''}`, onChange: this.onClickElsewhere },
|
|
510
|
-
this.calendarField(),
|
|
511
|
-
h("div", { ref: el => (this.dropdownContainer = el), "aria-modal": "true", role: "dialog", "aria-label": loc('tecton.element.calendar.dialogLabel'), class: `q2-element-dropdown ${this.privatePopDirection === 'up' ? 'dropup' : ''}` },
|
|
512
|
-
this.isTypeable && this.hintField(),
|
|
513
|
-
this.calendarPopUp())));
|
|
546
|
+
return (h("click-elsewhere", { class: `calendar-container${this.dropdownOpen ? ' dropdown-open' : ''}`, onChange: this.onClickElsewhere }, this.calendarField(), h("div", { ref: el => (this.dropdownContainer = el), "aria-modal": "true", role: "dialog", "aria-label": loc('tecton.element.calendar.dialogLabel'), class: `q2-element-dropdown ${this.privatePopDirection === 'up' ? 'dropup' : ''}` }, this.isTypeable && this.hintField(), this.calendarPopUp())));
|
|
514
547
|
}
|
|
515
548
|
hintField() {
|
|
516
549
|
return (h("q2-message", { type: this.hintMessageType, class: "calendar-hint" }, this.hintMessage));
|
|
@@ -540,578 +573,571 @@ export class Q2Calendar {
|
|
|
540
573
|
}
|
|
541
574
|
calendarPopUp() {
|
|
542
575
|
const { monthIndex, selectedYear } = this.selectedMonthYear;
|
|
543
|
-
return (h("div", { class: "calendar-field-popup", onKeyUp: this.onPopupKeyup },
|
|
544
|
-
this.calendarLabel && h("p", { class: "calendar-label" }, loc(this.calendarLabel)),
|
|
545
|
-
h("div", { class: "cal-month-heading" },
|
|
546
|
-
h("q2-btn", { label: loc('tecton.element.calendar.previousMonth'), "hide-label": true, ref: elm => (this.btnPrevMonth = elm), class: "cal-nav-btn prev-month", "test-id": "previousMonthButton", onClick: () => this.goToMonthYear(monthIndex - 1, selectedYear) },
|
|
547
|
-
h("q2-icon", { type: "chevron-left" })),
|
|
548
|
-
h("span", { class: "cal-month-text" }, this.monthStrings[monthIndex]),
|
|
549
|
-
h("q2-btn", { label: loc('tecton.element.calendar.nextMonth'), "hide-label": true, class: "cal-nav-btn next-month", ref: elm => (this.btnNextMonth = elm), "test-id": "nextMonthButton", onClick: () => this.goToMonthYear(monthIndex + 1, selectedYear) },
|
|
550
|
-
h("q2-icon", { type: "chevron-right" })),
|
|
551
|
-
h("q2-btn", { label: loc('tecton.element.calendar.previousYear'), "hide-label": true, class: "cal-nav-btn prev-year", ref: elm => (this.btnPrevYear = elm), "test-id": "previousYearButton", onClick: () => this.goToMonthYear(monthIndex, selectedYear - 1) },
|
|
552
|
-
h("q2-icon", { type: "chevron-left" })),
|
|
553
|
-
h("span", { class: "cal-year-text" }, this.selectedMonthYear.selectedYear),
|
|
554
|
-
h("q2-btn", { label: loc('tecton.element.calendar.nextYear'), "hide-label": true, class: "cal-nav-btn next-year", ref: elm => (this.btnNextYear = elm), "test-id": "nextYearButton", onClick: () => this.goToMonthYear(monthIndex, selectedYear + 1) },
|
|
555
|
-
h("q2-icon", { type: "chevron-right" }))),
|
|
556
|
-
h("div", { class: "sr", "aria-live": "polite", id: "table-label" }, `${this.monthStrings[monthIndex]} ${selectedYear}`),
|
|
557
|
-
this.calendarDays(),
|
|
558
|
-
this.disclaimer && h("div", { class: "calendar-disclaimer" }, loc(this.disclaimer)),
|
|
559
|
-
h("q2-btn", { class: "sr refocus-popup", onFocus: this.onRefocus })));
|
|
576
|
+
return (h("div", { class: "calendar-field-popup", onKeyUp: this.onPopupKeyup }, this.calendarLabel && h("p", { class: "calendar-label" }, loc(this.calendarLabel)), h("div", { class: "cal-month-heading" }, h("q2-btn", { label: loc('tecton.element.calendar.previousMonth'), "hide-label": true, ref: elm => (this.btnPrevMonth = elm), class: "cal-nav-btn prev-month", "test-id": "previousMonthButton", onClick: () => this.goToMonthYear(monthIndex - 1, selectedYear) }, h("q2-icon", { type: "chevron-left" })), h("span", { class: "cal-month-text" }, this.monthStrings[monthIndex]), h("q2-btn", { label: loc('tecton.element.calendar.nextMonth'), "hide-label": true, class: "cal-nav-btn next-month", ref: elm => (this.btnNextMonth = elm), "test-id": "nextMonthButton", onClick: () => this.goToMonthYear(monthIndex + 1, selectedYear) }, h("q2-icon", { type: "chevron-right" })), h("q2-btn", { label: loc('tecton.element.calendar.previousYear'), "hide-label": true, class: "cal-nav-btn prev-year", ref: elm => (this.btnPrevYear = elm), "test-id": "previousYearButton", onClick: () => this.goToMonthYear(monthIndex, selectedYear - 1) }, h("q2-icon", { type: "chevron-left" })), h("span", { class: "cal-year-text" }, this.selectedMonthYear.selectedYear), h("q2-btn", { label: loc('tecton.element.calendar.nextYear'), "hide-label": true, class: "cal-nav-btn next-year", ref: elm => (this.btnNextYear = elm), "test-id": "nextYearButton", onClick: () => this.goToMonthYear(monthIndex, selectedYear + 1) }, h("q2-icon", { type: "chevron-right" }))), h("div", { class: "sr", "aria-live": "polite", id: "table-label" }, `${this.monthStrings[monthIndex]} ${selectedYear}`), this.calendarDays(), this.disclaimer && h("div", { class: "calendar-disclaimer" }, loc(this.disclaimer)), h("q2-btn", { class: "sr refocus-popup", onFocus: this.onRefocus })));
|
|
560
577
|
}
|
|
561
578
|
calendarDays() {
|
|
562
579
|
const monthName = this.monthStrings[this.selectedMonthYear.monthIndex];
|
|
563
|
-
return (h("table", { role: "grid", "aria-labelledby": "table-label" },
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
ariaLabel += ` (${loc('tecton.element.calendar.selected')})`;
|
|
571
|
-
return (h("td", { class: day.classList, "aria-hidden": day.isEmpty ? 'true' : undefined, tabindex: day.isSelected ? 0 : -1, role: day.isSelected ? 'gridcell' : undefined, "aria-selected": day.isSelected ? 'true' : undefined, "aria-disabled": day.isValid ? undefined : 'true', "data-day": day.integer || undefined, "data-date": day.date ? formatDateISO(day.date) : undefined },
|
|
572
|
-
(day === null || day === void 0 ? void 0 : day.isToday) && (h("div", { class: "today-decorator" }, loc('tecton.element.calendar.today'))),
|
|
573
|
-
h("div", { "aria-label": ariaLabel }, (_a = day === null || day === void 0 ? void 0 : day.integer) !== null && _a !== void 0 ? _a : '')));
|
|
574
|
-
})))))));
|
|
580
|
+
return (h("table", { role: "grid", "aria-labelledby": "table-label" }, h("thead", null, h("tr", null, [...Array(7).keys()].map(index => (h("th", { scope: "col", abbr: this.dayStrings[index] }, this.dayAbbrStrings[index]))))), h("tbody", { onClick: this.onDateSelection, onKeyDown: this.onDateKeydown, ref: elm => (this.calendarBody = elm) }, this.currentWeeks.map(week => (h("tr", null, week.map(day => {
|
|
581
|
+
var _a;
|
|
582
|
+
let ariaLabel = `${monthName} ${day.integer}`;
|
|
583
|
+
if (day.isSelected)
|
|
584
|
+
ariaLabel += ` (${loc('tecton.element.calendar.selected')})`;
|
|
585
|
+
return (h("td", { class: day.classList, "aria-hidden": day.isEmpty ? 'true' : undefined, tabindex: day.isSelected ? 0 : -1, role: day.isSelected ? 'gridcell' : undefined, "aria-selected": day.isSelected ? 'true' : undefined, "aria-disabled": day.isValid ? undefined : 'true', "data-day": day.integer || undefined, "data-date": day.date ? formatDateISO(day.date) : undefined }, (day === null || day === void 0 ? void 0 : day.isToday) && (h("div", { class: "today-decorator" }, loc('tecton.element.calendar.today'))), h("div", { "aria-label": ariaLabel }, (_a = day === null || day === void 0 ? void 0 : day.integer) !== null && _a !== void 0 ? _a : '')));
|
|
586
|
+
})))))));
|
|
575
587
|
}
|
|
576
588
|
static get is() { return "q2-calendar"; }
|
|
577
589
|
static get encapsulation() { return "shadow"; }
|
|
578
|
-
static get originalStyleUrls() {
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
"
|
|
592
|
-
|
|
593
|
-
|
|
590
|
+
static get originalStyleUrls() {
|
|
591
|
+
return {
|
|
592
|
+
"$": ["styles.scss"]
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
static get styleUrls() {
|
|
596
|
+
return {
|
|
597
|
+
"$": ["styles.css"]
|
|
598
|
+
};
|
|
599
|
+
}
|
|
600
|
+
static get properties() {
|
|
601
|
+
return {
|
|
602
|
+
"value": {
|
|
603
|
+
"type": "string",
|
|
604
|
+
"mutable": true,
|
|
605
|
+
"complexType": {
|
|
606
|
+
"original": "string | { toDate(): Date }",
|
|
607
|
+
"resolved": "string | { toDate(): Date; }",
|
|
608
|
+
"references": {
|
|
609
|
+
"Date": {
|
|
610
|
+
"location": "global"
|
|
611
|
+
}
|
|
594
612
|
}
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
"reflect": true
|
|
605
|
-
},
|
|
606
|
-
"label": {
|
|
607
|
-
"type": "string",
|
|
608
|
-
"mutable": false,
|
|
609
|
-
"complexType": {
|
|
610
|
-
"original": "string",
|
|
611
|
-
"resolved": "string",
|
|
612
|
-
"references": {}
|
|
613
|
-
},
|
|
614
|
-
"required": false,
|
|
615
|
-
"optional": false,
|
|
616
|
-
"docs": {
|
|
617
|
-
"tags": [],
|
|
618
|
-
"text": ""
|
|
619
|
-
},
|
|
620
|
-
"attribute": "label",
|
|
621
|
-
"reflect": true
|
|
622
|
-
},
|
|
623
|
-
"hideLabel": {
|
|
624
|
-
"type": "boolean",
|
|
625
|
-
"mutable": false,
|
|
626
|
-
"complexType": {
|
|
627
|
-
"original": "boolean",
|
|
628
|
-
"resolved": "boolean",
|
|
629
|
-
"references": {}
|
|
630
|
-
},
|
|
631
|
-
"required": false,
|
|
632
|
-
"optional": false,
|
|
633
|
-
"docs": {
|
|
634
|
-
"tags": [],
|
|
635
|
-
"text": ""
|
|
636
|
-
},
|
|
637
|
-
"attribute": "hide-label",
|
|
638
|
-
"reflect": true
|
|
639
|
-
},
|
|
640
|
-
"ariaLabel": {
|
|
641
|
-
"type": "string",
|
|
642
|
-
"mutable": false,
|
|
643
|
-
"complexType": {
|
|
644
|
-
"original": "string",
|
|
645
|
-
"resolved": "string",
|
|
646
|
-
"references": {}
|
|
647
|
-
},
|
|
648
|
-
"required": false,
|
|
649
|
-
"optional": false,
|
|
650
|
-
"docs": {
|
|
651
|
-
"tags": [],
|
|
652
|
-
"text": ""
|
|
653
|
-
},
|
|
654
|
-
"attribute": "aria-label",
|
|
655
|
-
"reflect": true
|
|
656
|
-
},
|
|
657
|
-
"optional": {
|
|
658
|
-
"type": "boolean",
|
|
659
|
-
"mutable": false,
|
|
660
|
-
"complexType": {
|
|
661
|
-
"original": "boolean",
|
|
662
|
-
"resolved": "boolean",
|
|
663
|
-
"references": {}
|
|
664
|
-
},
|
|
665
|
-
"required": false,
|
|
666
|
-
"optional": false,
|
|
667
|
-
"docs": {
|
|
668
|
-
"tags": [],
|
|
669
|
-
"text": ""
|
|
670
|
-
},
|
|
671
|
-
"attribute": "optional",
|
|
672
|
-
"reflect": true
|
|
673
|
-
},
|
|
674
|
-
"disabled": {
|
|
675
|
-
"type": "boolean",
|
|
676
|
-
"mutable": false,
|
|
677
|
-
"complexType": {
|
|
678
|
-
"original": "boolean",
|
|
679
|
-
"resolved": "boolean",
|
|
680
|
-
"references": {}
|
|
681
|
-
},
|
|
682
|
-
"required": false,
|
|
683
|
-
"optional": false,
|
|
684
|
-
"docs": {
|
|
685
|
-
"tags": [],
|
|
686
|
-
"text": ""
|
|
613
|
+
},
|
|
614
|
+
"required": false,
|
|
615
|
+
"optional": false,
|
|
616
|
+
"docs": {
|
|
617
|
+
"tags": [],
|
|
618
|
+
"text": ""
|
|
619
|
+
},
|
|
620
|
+
"attribute": "value",
|
|
621
|
+
"reflect": true
|
|
687
622
|
},
|
|
688
|
-
"
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
"
|
|
697
|
-
"
|
|
623
|
+
"label": {
|
|
624
|
+
"type": "string",
|
|
625
|
+
"mutable": false,
|
|
626
|
+
"complexType": {
|
|
627
|
+
"original": "string",
|
|
628
|
+
"resolved": "string",
|
|
629
|
+
"references": {}
|
|
630
|
+
},
|
|
631
|
+
"required": false,
|
|
632
|
+
"optional": false,
|
|
633
|
+
"docs": {
|
|
634
|
+
"tags": [],
|
|
635
|
+
"text": ""
|
|
636
|
+
},
|
|
637
|
+
"attribute": "label",
|
|
638
|
+
"reflect": true
|
|
698
639
|
},
|
|
699
|
-
"
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
"
|
|
703
|
-
|
|
640
|
+
"hideLabel": {
|
|
641
|
+
"type": "boolean",
|
|
642
|
+
"mutable": false,
|
|
643
|
+
"complexType": {
|
|
644
|
+
"original": "boolean",
|
|
645
|
+
"resolved": "boolean",
|
|
646
|
+
"references": {}
|
|
647
|
+
},
|
|
648
|
+
"required": false,
|
|
649
|
+
"optional": false,
|
|
650
|
+
"docs": {
|
|
651
|
+
"tags": [],
|
|
652
|
+
"text": ""
|
|
653
|
+
},
|
|
654
|
+
"attribute": "hide-label",
|
|
655
|
+
"reflect": true
|
|
704
656
|
},
|
|
705
|
-
"
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
"
|
|
714
|
-
"
|
|
657
|
+
"ariaLabel": {
|
|
658
|
+
"type": "string",
|
|
659
|
+
"mutable": false,
|
|
660
|
+
"complexType": {
|
|
661
|
+
"original": "string",
|
|
662
|
+
"resolved": "string",
|
|
663
|
+
"references": {}
|
|
664
|
+
},
|
|
665
|
+
"required": false,
|
|
666
|
+
"optional": false,
|
|
667
|
+
"docs": {
|
|
668
|
+
"tags": [],
|
|
669
|
+
"text": ""
|
|
670
|
+
},
|
|
671
|
+
"attribute": "aria-label",
|
|
672
|
+
"reflect": true
|
|
715
673
|
},
|
|
716
|
-
"
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
"
|
|
720
|
-
|
|
674
|
+
"optional": {
|
|
675
|
+
"type": "boolean",
|
|
676
|
+
"mutable": false,
|
|
677
|
+
"complexType": {
|
|
678
|
+
"original": "boolean",
|
|
679
|
+
"resolved": "boolean",
|
|
680
|
+
"references": {}
|
|
681
|
+
},
|
|
682
|
+
"required": false,
|
|
683
|
+
"optional": false,
|
|
684
|
+
"docs": {
|
|
685
|
+
"tags": [],
|
|
686
|
+
"text": ""
|
|
687
|
+
},
|
|
688
|
+
"attribute": "optional",
|
|
689
|
+
"reflect": true
|
|
721
690
|
},
|
|
722
|
-
"
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
"
|
|
731
|
-
"
|
|
691
|
+
"disabled": {
|
|
692
|
+
"type": "boolean",
|
|
693
|
+
"mutable": false,
|
|
694
|
+
"complexType": {
|
|
695
|
+
"original": "boolean",
|
|
696
|
+
"resolved": "boolean",
|
|
697
|
+
"references": {}
|
|
698
|
+
},
|
|
699
|
+
"required": false,
|
|
700
|
+
"optional": false,
|
|
701
|
+
"docs": {
|
|
702
|
+
"tags": [],
|
|
703
|
+
"text": ""
|
|
704
|
+
},
|
|
705
|
+
"attribute": "disabled",
|
|
706
|
+
"reflect": true
|
|
732
707
|
},
|
|
733
|
-
"
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
"
|
|
737
|
-
|
|
708
|
+
"readonly": {
|
|
709
|
+
"type": "boolean",
|
|
710
|
+
"mutable": false,
|
|
711
|
+
"complexType": {
|
|
712
|
+
"original": "boolean",
|
|
713
|
+
"resolved": "boolean",
|
|
714
|
+
"references": {}
|
|
715
|
+
},
|
|
716
|
+
"required": false,
|
|
717
|
+
"optional": false,
|
|
718
|
+
"docs": {
|
|
719
|
+
"tags": [],
|
|
720
|
+
"text": ""
|
|
721
|
+
},
|
|
722
|
+
"attribute": "readonly",
|
|
723
|
+
"reflect": true
|
|
738
724
|
},
|
|
739
|
-
"
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
"
|
|
748
|
-
"
|
|
725
|
+
"invalid": {
|
|
726
|
+
"type": "boolean",
|
|
727
|
+
"mutable": true,
|
|
728
|
+
"complexType": {
|
|
729
|
+
"original": "boolean",
|
|
730
|
+
"resolved": "boolean",
|
|
731
|
+
"references": {}
|
|
732
|
+
},
|
|
733
|
+
"required": false,
|
|
734
|
+
"optional": false,
|
|
735
|
+
"docs": {
|
|
736
|
+
"tags": [],
|
|
737
|
+
"text": ""
|
|
738
|
+
},
|
|
739
|
+
"attribute": "invalid",
|
|
740
|
+
"reflect": true
|
|
749
741
|
},
|
|
750
|
-
"
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
"
|
|
754
|
-
|
|
742
|
+
"typeable": {
|
|
743
|
+
"type": "boolean",
|
|
744
|
+
"mutable": false,
|
|
745
|
+
"complexType": {
|
|
746
|
+
"original": "boolean",
|
|
747
|
+
"resolved": "boolean",
|
|
748
|
+
"references": {}
|
|
749
|
+
},
|
|
750
|
+
"required": false,
|
|
751
|
+
"optional": false,
|
|
752
|
+
"docs": {
|
|
753
|
+
"tags": [],
|
|
754
|
+
"text": ""
|
|
755
|
+
},
|
|
756
|
+
"attribute": "typeable",
|
|
757
|
+
"reflect": true
|
|
755
758
|
},
|
|
756
|
-
"
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
"
|
|
765
|
-
"
|
|
759
|
+
"placeholder": {
|
|
760
|
+
"type": "string",
|
|
761
|
+
"mutable": false,
|
|
762
|
+
"complexType": {
|
|
763
|
+
"original": "string",
|
|
764
|
+
"resolved": "string",
|
|
765
|
+
"references": {}
|
|
766
|
+
},
|
|
767
|
+
"required": false,
|
|
768
|
+
"optional": false,
|
|
769
|
+
"docs": {
|
|
770
|
+
"tags": [],
|
|
771
|
+
"text": ""
|
|
772
|
+
},
|
|
773
|
+
"attribute": "placeholder",
|
|
774
|
+
"reflect": true
|
|
766
775
|
},
|
|
767
|
-
"
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
"
|
|
771
|
-
|
|
776
|
+
"buttonLabel": {
|
|
777
|
+
"type": "string",
|
|
778
|
+
"mutable": false,
|
|
779
|
+
"complexType": {
|
|
780
|
+
"original": "string",
|
|
781
|
+
"resolved": "string",
|
|
782
|
+
"references": {}
|
|
783
|
+
},
|
|
784
|
+
"required": false,
|
|
785
|
+
"optional": false,
|
|
786
|
+
"docs": {
|
|
787
|
+
"tags": [],
|
|
788
|
+
"text": ""
|
|
789
|
+
},
|
|
790
|
+
"attribute": "button-label",
|
|
791
|
+
"reflect": true
|
|
772
792
|
},
|
|
773
|
-
"
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
"
|
|
782
|
-
"
|
|
793
|
+
"disabledMsg": {
|
|
794
|
+
"type": "string",
|
|
795
|
+
"mutable": false,
|
|
796
|
+
"complexType": {
|
|
797
|
+
"original": "string",
|
|
798
|
+
"resolved": "string",
|
|
799
|
+
"references": {}
|
|
800
|
+
},
|
|
801
|
+
"required": false,
|
|
802
|
+
"optional": false,
|
|
803
|
+
"docs": {
|
|
804
|
+
"tags": [],
|
|
805
|
+
"text": ""
|
|
806
|
+
},
|
|
807
|
+
"attribute": "disabled-msg",
|
|
808
|
+
"reflect": true
|
|
783
809
|
},
|
|
784
|
-
"
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
"
|
|
788
|
-
|
|
810
|
+
"calendarLabel": {
|
|
811
|
+
"type": "string",
|
|
812
|
+
"mutable": false,
|
|
813
|
+
"complexType": {
|
|
814
|
+
"original": "string",
|
|
815
|
+
"resolved": "string",
|
|
816
|
+
"references": {}
|
|
817
|
+
},
|
|
818
|
+
"required": false,
|
|
819
|
+
"optional": false,
|
|
820
|
+
"docs": {
|
|
821
|
+
"tags": [],
|
|
822
|
+
"text": ""
|
|
823
|
+
},
|
|
824
|
+
"attribute": "calendar-label",
|
|
825
|
+
"reflect": true
|
|
789
826
|
},
|
|
790
|
-
"
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
"
|
|
799
|
-
"
|
|
827
|
+
"disclaimer": {
|
|
828
|
+
"type": "string",
|
|
829
|
+
"mutable": false,
|
|
830
|
+
"complexType": {
|
|
831
|
+
"original": "string",
|
|
832
|
+
"resolved": "string",
|
|
833
|
+
"references": {}
|
|
834
|
+
},
|
|
835
|
+
"required": false,
|
|
836
|
+
"optional": false,
|
|
837
|
+
"docs": {
|
|
838
|
+
"tags": [],
|
|
839
|
+
"text": ""
|
|
840
|
+
},
|
|
841
|
+
"attribute": "disclaimer",
|
|
842
|
+
"reflect": true
|
|
800
843
|
},
|
|
801
|
-
"
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
"
|
|
805
|
-
|
|
844
|
+
"displayFormat": {
|
|
845
|
+
"type": "string",
|
|
846
|
+
"mutable": false,
|
|
847
|
+
"complexType": {
|
|
848
|
+
"original": "string",
|
|
849
|
+
"resolved": "string",
|
|
850
|
+
"references": {}
|
|
851
|
+
},
|
|
852
|
+
"required": false,
|
|
853
|
+
"optional": false,
|
|
854
|
+
"docs": {
|
|
855
|
+
"tags": [],
|
|
856
|
+
"text": ""
|
|
857
|
+
},
|
|
858
|
+
"attribute": "display-format",
|
|
859
|
+
"reflect": true
|
|
806
860
|
},
|
|
807
|
-
"
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
"
|
|
816
|
-
"
|
|
861
|
+
"startDate": {
|
|
862
|
+
"type": "string",
|
|
863
|
+
"mutable": false,
|
|
864
|
+
"complexType": {
|
|
865
|
+
"original": "string",
|
|
866
|
+
"resolved": "string",
|
|
867
|
+
"references": {}
|
|
868
|
+
},
|
|
869
|
+
"required": false,
|
|
870
|
+
"optional": false,
|
|
871
|
+
"docs": {
|
|
872
|
+
"tags": [],
|
|
873
|
+
"text": ""
|
|
874
|
+
},
|
|
875
|
+
"attribute": "start-date",
|
|
876
|
+
"reflect": true
|
|
817
877
|
},
|
|
818
|
-
"
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
"
|
|
822
|
-
|
|
878
|
+
"endDate": {
|
|
879
|
+
"type": "string",
|
|
880
|
+
"mutable": false,
|
|
881
|
+
"complexType": {
|
|
882
|
+
"original": "string",
|
|
883
|
+
"resolved": "string",
|
|
884
|
+
"references": {}
|
|
885
|
+
},
|
|
886
|
+
"required": false,
|
|
887
|
+
"optional": false,
|
|
888
|
+
"docs": {
|
|
889
|
+
"tags": [],
|
|
890
|
+
"text": ""
|
|
891
|
+
},
|
|
892
|
+
"attribute": "end-date",
|
|
893
|
+
"reflect": true
|
|
823
894
|
},
|
|
824
|
-
"
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
"
|
|
833
|
-
"
|
|
895
|
+
"cutoffTime": {
|
|
896
|
+
"type": "string",
|
|
897
|
+
"mutable": false,
|
|
898
|
+
"complexType": {
|
|
899
|
+
"original": "string",
|
|
900
|
+
"resolved": "string",
|
|
901
|
+
"references": {}
|
|
902
|
+
},
|
|
903
|
+
"required": false,
|
|
904
|
+
"optional": false,
|
|
905
|
+
"docs": {
|
|
906
|
+
"tags": [],
|
|
907
|
+
"text": ""
|
|
908
|
+
},
|
|
909
|
+
"attribute": "cutoff-time",
|
|
910
|
+
"reflect": true
|
|
834
911
|
},
|
|
835
|
-
"
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
"
|
|
839
|
-
|
|
912
|
+
"daysOfWeekChecksum": {
|
|
913
|
+
"type": "number",
|
|
914
|
+
"mutable": false,
|
|
915
|
+
"complexType": {
|
|
916
|
+
"original": "number",
|
|
917
|
+
"resolved": "number",
|
|
918
|
+
"references": {}
|
|
919
|
+
},
|
|
920
|
+
"required": false,
|
|
921
|
+
"optional": false,
|
|
922
|
+
"docs": {
|
|
923
|
+
"tags": [],
|
|
924
|
+
"text": ""
|
|
925
|
+
},
|
|
926
|
+
"attribute": "days-of-week-checksum",
|
|
927
|
+
"reflect": true
|
|
840
928
|
},
|
|
841
|
-
"
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
"
|
|
850
|
-
"
|
|
929
|
+
"popDirection": {
|
|
930
|
+
"type": "string",
|
|
931
|
+
"mutable": false,
|
|
932
|
+
"complexType": {
|
|
933
|
+
"original": "'up' | 'down'",
|
|
934
|
+
"resolved": "\"down\" | \"up\"",
|
|
935
|
+
"references": {}
|
|
936
|
+
},
|
|
937
|
+
"required": false,
|
|
938
|
+
"optional": false,
|
|
939
|
+
"docs": {
|
|
940
|
+
"tags": [],
|
|
941
|
+
"text": ""
|
|
942
|
+
},
|
|
943
|
+
"attribute": "pop-direction",
|
|
944
|
+
"reflect": true
|
|
851
945
|
},
|
|
852
|
-
"
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
"
|
|
856
|
-
|
|
946
|
+
"assume": {
|
|
947
|
+
"type": "string",
|
|
948
|
+
"mutable": false,
|
|
949
|
+
"complexType": {
|
|
950
|
+
"original": "'current' | 'future' | 'past'",
|
|
951
|
+
"resolved": "\"current\" | \"future\" | \"past\"",
|
|
952
|
+
"references": {}
|
|
953
|
+
},
|
|
954
|
+
"required": false,
|
|
955
|
+
"optional": false,
|
|
956
|
+
"docs": {
|
|
957
|
+
"tags": [],
|
|
958
|
+
"text": ""
|
|
959
|
+
},
|
|
960
|
+
"attribute": "assume",
|
|
961
|
+
"reflect": true,
|
|
962
|
+
"defaultValue": "'current'"
|
|
857
963
|
},
|
|
858
|
-
"
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
"
|
|
867
|
-
"
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
"tags": [],
|
|
873
|
-
"text": ""
|
|
874
|
-
},
|
|
875
|
-
"attribute": "end-date",
|
|
876
|
-
"reflect": true
|
|
877
|
-
},
|
|
878
|
-
"cutoffTime": {
|
|
879
|
-
"type": "string",
|
|
880
|
-
"mutable": false,
|
|
881
|
-
"complexType": {
|
|
882
|
-
"original": "string",
|
|
883
|
-
"resolved": "string",
|
|
884
|
-
"references": {}
|
|
885
|
-
},
|
|
886
|
-
"required": false,
|
|
887
|
-
"optional": false,
|
|
888
|
-
"docs": {
|
|
889
|
-
"tags": [],
|
|
890
|
-
"text": ""
|
|
891
|
-
},
|
|
892
|
-
"attribute": "cutoff-time",
|
|
893
|
-
"reflect": true
|
|
894
|
-
},
|
|
895
|
-
"daysOfWeekChecksum": {
|
|
896
|
-
"type": "number",
|
|
897
|
-
"mutable": false,
|
|
898
|
-
"complexType": {
|
|
899
|
-
"original": "number",
|
|
900
|
-
"resolved": "number",
|
|
901
|
-
"references": {}
|
|
902
|
-
},
|
|
903
|
-
"required": false,
|
|
904
|
-
"optional": false,
|
|
905
|
-
"docs": {
|
|
906
|
-
"tags": [],
|
|
907
|
-
"text": ""
|
|
908
|
-
},
|
|
909
|
-
"attribute": "days-of-week-checksum",
|
|
910
|
-
"reflect": true
|
|
911
|
-
},
|
|
912
|
-
"popDirection": {
|
|
913
|
-
"type": "string",
|
|
914
|
-
"mutable": false,
|
|
915
|
-
"complexType": {
|
|
916
|
-
"original": "'up' | 'down'",
|
|
917
|
-
"resolved": "\"down\" | \"up\"",
|
|
918
|
-
"references": {}
|
|
919
|
-
},
|
|
920
|
-
"required": false,
|
|
921
|
-
"optional": false,
|
|
922
|
-
"docs": {
|
|
923
|
-
"tags": [],
|
|
924
|
-
"text": ""
|
|
925
|
-
},
|
|
926
|
-
"attribute": "pop-direction",
|
|
927
|
-
"reflect": true
|
|
928
|
-
},
|
|
929
|
-
"assume": {
|
|
930
|
-
"type": "string",
|
|
931
|
-
"mutable": false,
|
|
932
|
-
"complexType": {
|
|
933
|
-
"original": "'current' | 'future' | 'past'",
|
|
934
|
-
"resolved": "\"current\" | \"future\" | \"past\"",
|
|
935
|
-
"references": {}
|
|
936
|
-
},
|
|
937
|
-
"required": false,
|
|
938
|
-
"optional": false,
|
|
939
|
-
"docs": {
|
|
940
|
-
"tags": [],
|
|
941
|
-
"text": ""
|
|
942
|
-
},
|
|
943
|
-
"attribute": "assume",
|
|
944
|
-
"reflect": true,
|
|
945
|
-
"defaultValue": "'current'"
|
|
946
|
-
},
|
|
947
|
-
"errors": {
|
|
948
|
-
"type": "unknown",
|
|
949
|
-
"mutable": true,
|
|
950
|
-
"complexType": {
|
|
951
|
-
"original": "string[]",
|
|
952
|
-
"resolved": "string[]",
|
|
953
|
-
"references": {}
|
|
964
|
+
"errors": {
|
|
965
|
+
"type": "unknown",
|
|
966
|
+
"mutable": true,
|
|
967
|
+
"complexType": {
|
|
968
|
+
"original": "string[]",
|
|
969
|
+
"resolved": "string[]",
|
|
970
|
+
"references": {}
|
|
971
|
+
},
|
|
972
|
+
"required": false,
|
|
973
|
+
"optional": false,
|
|
974
|
+
"docs": {
|
|
975
|
+
"tags": [],
|
|
976
|
+
"text": ""
|
|
977
|
+
}
|
|
954
978
|
},
|
|
955
|
-
"
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
"
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
979
|
+
"invalidDates": {
|
|
980
|
+
"type": "unknown",
|
|
981
|
+
"mutable": false,
|
|
982
|
+
"complexType": {
|
|
983
|
+
"original": "string[]",
|
|
984
|
+
"resolved": "string[]",
|
|
985
|
+
"references": {}
|
|
986
|
+
},
|
|
987
|
+
"required": false,
|
|
988
|
+
"optional": false,
|
|
989
|
+
"docs": {
|
|
990
|
+
"tags": [],
|
|
991
|
+
"text": ""
|
|
992
|
+
}
|
|
969
993
|
},
|
|
970
|
-
"
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
"
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
994
|
+
"validDates": {
|
|
995
|
+
"type": "unknown",
|
|
996
|
+
"mutable": false,
|
|
997
|
+
"complexType": {
|
|
998
|
+
"original": "string[]",
|
|
999
|
+
"resolved": "string[]",
|
|
1000
|
+
"references": {}
|
|
1001
|
+
},
|
|
1002
|
+
"required": false,
|
|
1003
|
+
"optional": false,
|
|
1004
|
+
"docs": {
|
|
1005
|
+
"tags": [],
|
|
1006
|
+
"text": ""
|
|
1007
|
+
}
|
|
984
1008
|
},
|
|
985
|
-
"
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
"
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
"complexType": {
|
|
996
|
-
"original": "(e: CustomEvent) => void",
|
|
997
|
-
"resolved": "(e: CustomEvent<any>) => void",
|
|
998
|
-
"references": {
|
|
999
|
-
"CustomEvent": {
|
|
1000
|
-
"location": "global"
|
|
1009
|
+
"onsuccess": {
|
|
1010
|
+
"type": "unknown",
|
|
1011
|
+
"mutable": false,
|
|
1012
|
+
"complexType": {
|
|
1013
|
+
"original": "(e: CustomEvent) => void",
|
|
1014
|
+
"resolved": "(e: CustomEvent<any>) => void",
|
|
1015
|
+
"references": {
|
|
1016
|
+
"CustomEvent": {
|
|
1017
|
+
"location": "global"
|
|
1018
|
+
}
|
|
1001
1019
|
}
|
|
1020
|
+
},
|
|
1021
|
+
"required": false,
|
|
1022
|
+
"optional": false,
|
|
1023
|
+
"docs": {
|
|
1024
|
+
"tags": [],
|
|
1025
|
+
"text": ""
|
|
1002
1026
|
}
|
|
1003
|
-
},
|
|
1004
|
-
"required": false,
|
|
1005
|
-
"optional": false,
|
|
1006
|
-
"docs": {
|
|
1007
|
-
"tags": [],
|
|
1008
|
-
"text": ""
|
|
1009
1027
|
}
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
static get states() {
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
"
|
|
1028
|
-
"
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
"
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
"
|
|
1043
|
-
"
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
"
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
"
|
|
1058
|
-
"
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
"
|
|
1064
|
-
|
|
1065
|
-
|
|
1028
|
+
};
|
|
1029
|
+
}
|
|
1030
|
+
static get states() {
|
|
1031
|
+
return {
|
|
1032
|
+
"dropdownOpen": {},
|
|
1033
|
+
"keyboardSelection": {},
|
|
1034
|
+
"typedValue": {},
|
|
1035
|
+
"dateList": {},
|
|
1036
|
+
"hintMessage": {},
|
|
1037
|
+
"hintMessageType": {}
|
|
1038
|
+
};
|
|
1039
|
+
}
|
|
1040
|
+
static get events() {
|
|
1041
|
+
return [{
|
|
1042
|
+
"method": "change",
|
|
1043
|
+
"name": "change",
|
|
1044
|
+
"bubbles": true,
|
|
1045
|
+
"cancelable": true,
|
|
1046
|
+
"composed": true,
|
|
1047
|
+
"docs": {
|
|
1048
|
+
"tags": [],
|
|
1049
|
+
"text": ""
|
|
1050
|
+
},
|
|
1051
|
+
"complexType": {
|
|
1052
|
+
"original": "any",
|
|
1053
|
+
"resolved": "any",
|
|
1054
|
+
"references": {}
|
|
1055
|
+
}
|
|
1056
|
+
}, {
|
|
1057
|
+
"method": "error",
|
|
1058
|
+
"name": "error",
|
|
1059
|
+
"bubbles": true,
|
|
1060
|
+
"cancelable": true,
|
|
1061
|
+
"composed": true,
|
|
1062
|
+
"docs": {
|
|
1063
|
+
"tags": [],
|
|
1064
|
+
"text": ""
|
|
1065
|
+
},
|
|
1066
|
+
"complexType": {
|
|
1067
|
+
"original": "any",
|
|
1068
|
+
"resolved": "any",
|
|
1069
|
+
"references": {}
|
|
1070
|
+
}
|
|
1071
|
+
}, {
|
|
1072
|
+
"method": "success",
|
|
1073
|
+
"name": "success",
|
|
1074
|
+
"bubbles": true,
|
|
1075
|
+
"cancelable": true,
|
|
1076
|
+
"composed": true,
|
|
1077
|
+
"docs": {
|
|
1078
|
+
"tags": [],
|
|
1079
|
+
"text": ""
|
|
1080
|
+
},
|
|
1081
|
+
"complexType": {
|
|
1082
|
+
"original": "any",
|
|
1083
|
+
"resolved": "any",
|
|
1084
|
+
"references": {}
|
|
1085
|
+
}
|
|
1086
|
+
}];
|
|
1087
|
+
}
|
|
1066
1088
|
static get elementRef() { return "hostElement"; }
|
|
1067
|
-
static get watchers() {
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1089
|
+
static get watchers() {
|
|
1090
|
+
return [{
|
|
1091
|
+
"propName": "ariaLabel",
|
|
1092
|
+
"methodName": "ariaLabelObserver"
|
|
1093
|
+
}, {
|
|
1094
|
+
"propName": "value",
|
|
1095
|
+
"methodName": "valueObserver"
|
|
1096
|
+
}, {
|
|
1097
|
+
"propName": "daysOfWeekChecksum",
|
|
1098
|
+
"methodName": "daysOfWeekChecksumObserver"
|
|
1099
|
+
}, {
|
|
1100
|
+
"propName": "validDates",
|
|
1101
|
+
"methodName": "validDatesObserver"
|
|
1102
|
+
}, {
|
|
1103
|
+
"propName": "invalidDates",
|
|
1104
|
+
"methodName": "invalidDatesObserver"
|
|
1105
|
+
}, {
|
|
1106
|
+
"propName": "startDate",
|
|
1107
|
+
"methodName": "startDateObserver"
|
|
1108
|
+
}, {
|
|
1109
|
+
"propName": "endDate",
|
|
1110
|
+
"methodName": "endDateObserver"
|
|
1111
|
+
}, {
|
|
1112
|
+
"propName": "cutoffTime",
|
|
1113
|
+
"methodName": "cutoffTimeObserver"
|
|
1114
|
+
}];
|
|
1115
|
+
}
|
|
1116
|
+
static get listeners() {
|
|
1117
|
+
return [{
|
|
1118
|
+
"name": "change",
|
|
1119
|
+
"method": "defaultChangeHandler",
|
|
1120
|
+
"target": undefined,
|
|
1121
|
+
"capture": false,
|
|
1122
|
+
"passive": false
|
|
1123
|
+
}, {
|
|
1124
|
+
"name": "error",
|
|
1125
|
+
"method": "defaultErrorHandler",
|
|
1126
|
+
"target": undefined,
|
|
1127
|
+
"capture": false,
|
|
1128
|
+
"passive": false
|
|
1129
|
+
}, {
|
|
1130
|
+
"name": "success",
|
|
1131
|
+
"method": "defaultSuccessHandler",
|
|
1132
|
+
"target": undefined,
|
|
1133
|
+
"capture": false,
|
|
1134
|
+
"passive": false
|
|
1135
|
+
}, {
|
|
1136
|
+
"name": "focus",
|
|
1137
|
+
"method": "delegateFocus",
|
|
1138
|
+
"target": undefined,
|
|
1139
|
+
"capture": false,
|
|
1140
|
+
"passive": false
|
|
1141
|
+
}];
|
|
1142
|
+
}
|
|
1117
1143
|
}
|