@tabworthy/components 0.9.0 → 0.9.2
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/loader.cjs.js +1 -1
- package/dist/cjs/tabworthy-components.cjs.js +1 -1
- package/dist/cjs/tabworthy-dates.cjs.entry.js +7 -6
- package/dist/cjs/tabworthy-times-picker.cjs.entry.js +6 -6
- package/dist/cjs/tabworthy-times.cjs.entry.js +3 -4
- package/dist/collection/components/tabworthy-dates/tabworthy-dates.js +7 -6
- package/dist/collection/components/tabworthy-times/tabworthy-times.js +27 -4
- package/dist/collection/components/tabworthy-times-picker/tabworthy-times-picker.js +9 -9
- package/dist/components/{p-B9YA6avR.js → p-PW8Ht1Es.js} +1 -1
- package/dist/components/tabworthy-dates.js +1 -1
- package/dist/components/tabworthy-times-picker.js +1 -1
- package/dist/components/tabworthy-times.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tabworthy-components.js +1 -1
- package/dist/esm/tabworthy-dates.entry.js +7 -6
- package/dist/esm/tabworthy-times-picker.entry.js +6 -6
- package/dist/esm/tabworthy-times.entry.js +3 -4
- package/dist/tabworthy-components/{p-c0f957f5.entry.js → p-0e77d058.entry.js} +1 -1
- package/dist/tabworthy-components/{p-4eec41e5.entry.js → p-81ad5b1f.entry.js} +1 -1
- package/dist/tabworthy-components/{p-90de04dd.entry.js → p-a595158c.entry.js} +1 -1
- package/dist/tabworthy-components/tabworthy-components.esm.js +1 -1
- package/dist/types/components/tabworthy-dates/tabworthy-dates.d.ts +1 -0
- package/dist/types/components/tabworthy-times/tabworthy-times.d.ts +3 -1
- package/dist/types/components/tabworthy-times-picker/tabworthy-times-picker.d.ts +3 -3
- package/dist/types/components.d.ts +8 -4
- package/package.json +1 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -6,7 +6,7 @@ var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
|
|
6
6
|
const defineCustomElements = async (win, options) => {
|
|
7
7
|
if (typeof window === 'undefined') return undefined;
|
|
8
8
|
await appGlobals.globalScripts();
|
|
9
|
-
return index.bootstrapLazy([["tabworthy-times-picker.cjs",[[2,"tabworthy-times-picker",{"hours":[1026],"minutes":[1026],"useTwelveHourFormat":[4,"use-twelve-hour-format"],"labels":[16],"labelsSrOnly":[4,"labels-sr-only"],"disabled":[4],"elementClassName":[1,"element-class-name"],"internalHours":[32],"internalMinutes":[32],"period":[32]},null,{"hours":[{"watchHours":0}],"minutes":[{"watchMinutes":0}]}]]],["tabworthy-dates-calendar_2.cjs",[[262,"tabworthy-dates-calendar",{"clearButtonContent":[1,"clear-button-content"],"disabled":[4],"modalIsOpen":[4,"modal-is-open"],"disableDate":[16],"elementClassName":[1,"element-class-name"],"firstDayOfWeek":[2,"first-day-of-week"],"range":[4],"labels":[16],"locale":[1],"nextMonthButtonContent":[1,"next-month-button-content"],"nextYearButtonContent":[1,"next-year-button-content"],"previousMonthButtonContent":[1,"previous-month-button-content"],"previousYearButtonContent":[1,"previous-year-button-content"],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"inline":[4],"showClearButton":[4,"show-clear-button"],"showMonthStepper":[4,"show-month-stepper"],"showTodayButton":[4,"show-today-button"],"showYearStepper":[4,"show-year-stepper"],"showKeyboardHint":[4,"show-keyboard-hint"],"showHiddenTitle":[4,"show-hidden-title"],"startDate":[1,"start-date"],"todayButtonContent":[1,"today-button-content"],"value":[1040],"currentDate":[32],"hoveredDate":[32],"weekdays":[32]},null,{"modalIsOpen":[{"watchModalIsOpen":0}],"firstDayOfWeek":[{"watchFirstDayOfWeek":0}],"locale":[{"watchLocale":0}],"range":[{"watchRange":0}],"startDate":[{"watchStartDate":0}],"value":[{"watchValue":0}]}],[257,"tabworthy-dates-modal",{"label":[1],"inline":[4],"placement":[1],"offset":[16],"appendTo":[1,"append-to"],"closing":[32],"showing":[32],"positioned":[32],"open":[64],"close":[64],"getState":[64],"setTriggerElement":[64],"updatePosition":[64]},[[10,"click","handleClick"]],{"showing":[{"watchShowing":0}]}]]],["tabworthy-times.cjs",[[2,"tabworthy-times",{"id":[513],"value":[1025],"range":[4],"label":[1],"placeholder":[1],"locale":[1],"disabled":[4],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"startDate":[1,"start-date"],"referenceDate":[1,"reference-date"],"useTwelveHourFormat":[4,"use-twelve-hour-format"],"timesLabels":[16],"datesCalendarLabels":[16],"inline":[4],"hasError":[1028,"has-error"],"showYearStepper":[4,"show-year-stepper"],"showMonthStepper":[4,"show-month-stepper"],"showClearButton":[4,"show-clear-button"],"showTodayButton":[4,"show-today-button"],"calendarButtonContent":[1,"calendar-button-content"],"disableDate":[16],"elementClassName":[1,"element-class-name"],"firstDayOfWeek":[2,"first-day-of-week"],"format":[1],"inputShouldFormat":[8,"input-should-format"],"disableFreeformInput":[4,"disable-freeform-input"],"inputClass":[1,"input-class"],"appendTo":[1,"append-to"],"internalValue":[32],"selectedDate":[32],"selectedHours":[32],"selectedMinutes":[32],"errorState":[32],"disabledState":[32],"clearValue":[64]},null,{"value":[{"watchValue":0}],"disabled":[{"watchDisabled":0}],"hasError":[{"watchHasError":0}]}]]],["tabworthy-dates.cjs",[[2,"tabworthy-dates",{"id":[513],"value":[1025],"range":[4],"label":[1],"placeholder":[1],"locale":[1],"disabled":[4],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"startDate":[1,"start-date"],"referenceDate":[1,"reference-date"],"useStrictDateParsing":[4,"use-strict-date-parsing"],"datesLabels":[16],"datesCalendarLabels":[16],"inline":[4],"hasError":[1028,"has-error"],"nextMonthButtonContent":[1,"next-month-button-content"],"nextYearButtonContent":[1,"next-year-button-content"],"showYearStepper":[4,"show-year-stepper"],"showMonthStepper":[4,"show-month-stepper"],"showClearButton":[4,"show-clear-button"],"showTodayButton":[4,"show-today-button"],"inputShouldFormat":[8,"input-should-format"],"showKeyboardHint":[4,"show-keyboard-hint"],"disableDate":[16],"elementClassName":[1,"element-class-name"],"firstDayOfWeek":[2,"first-day-of-week"],"format":[1],"quickButtons":[16],"todayButtonContent":[1,"today-button-content"],"calendarButtonContent":[1,"calendar-button-content"],"showQuickButtons":[4,"show-quick-buttons"],"disableFreeformInput":[4,"disable-freeform-input"],"inputClass":[1,"input-class"],"appendTo":[1,"append-to"],"internalValue":[32],"errorState":[32],"disabledState":[32],"parseDate":[64]},null,{"disabled":[{"watchDisabled":0}],"value":[{"watchValue":0}]}]]]], options);
|
|
9
|
+
return index.bootstrapLazy([["tabworthy-times-picker.cjs",[[2,"tabworthy-times-picker",{"hours":[1026],"minutes":[1026],"useTwelveHourFormat":[4,"use-twelve-hour-format"],"labels":[16],"labelsSrOnly":[4,"labels-sr-only"],"disabled":[4],"elementClassName":[1,"element-class-name"],"internalHours":[32],"internalMinutes":[32],"period":[32]},null,{"hours":[{"watchHours":0}],"minutes":[{"watchMinutes":0}]}]]],["tabworthy-dates-calendar_2.cjs",[[262,"tabworthy-dates-calendar",{"clearButtonContent":[1,"clear-button-content"],"disabled":[4],"modalIsOpen":[4,"modal-is-open"],"disableDate":[16],"elementClassName":[1,"element-class-name"],"firstDayOfWeek":[2,"first-day-of-week"],"range":[4],"labels":[16],"locale":[1],"nextMonthButtonContent":[1,"next-month-button-content"],"nextYearButtonContent":[1,"next-year-button-content"],"previousMonthButtonContent":[1,"previous-month-button-content"],"previousYearButtonContent":[1,"previous-year-button-content"],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"inline":[4],"showClearButton":[4,"show-clear-button"],"showMonthStepper":[4,"show-month-stepper"],"showTodayButton":[4,"show-today-button"],"showYearStepper":[4,"show-year-stepper"],"showKeyboardHint":[4,"show-keyboard-hint"],"showHiddenTitle":[4,"show-hidden-title"],"startDate":[1,"start-date"],"todayButtonContent":[1,"today-button-content"],"value":[1040],"currentDate":[32],"hoveredDate":[32],"weekdays":[32]},null,{"modalIsOpen":[{"watchModalIsOpen":0}],"firstDayOfWeek":[{"watchFirstDayOfWeek":0}],"locale":[{"watchLocale":0}],"range":[{"watchRange":0}],"startDate":[{"watchStartDate":0}],"value":[{"watchValue":0}]}],[257,"tabworthy-dates-modal",{"label":[1],"inline":[4],"placement":[1],"offset":[16],"appendTo":[1,"append-to"],"closing":[32],"showing":[32],"positioned":[32],"open":[64],"close":[64],"getState":[64],"setTriggerElement":[64],"updatePosition":[64]},[[10,"click","handleClick"]],{"showing":[{"watchShowing":0}]}]]],["tabworthy-times.cjs",[[2,"tabworthy-times",{"id":[513],"value":[1025],"range":[4],"label":[1],"placeholder":[1],"locale":[1],"disabled":[4],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"startDate":[1,"start-date"],"referenceDate":[1,"reference-date"],"useTwelveHourFormat":[4,"use-twelve-hour-format"],"timesLabels":[16],"datesCalendarLabels":[16],"timesPickerLabels":[16],"inline":[4],"hasError":[1028,"has-error"],"showYearStepper":[4,"show-year-stepper"],"showMonthStepper":[4,"show-month-stepper"],"showClearButton":[4,"show-clear-button"],"showTodayButton":[4,"show-today-button"],"calendarButtonContent":[1,"calendar-button-content"],"disableDate":[16],"elementClassName":[1,"element-class-name"],"firstDayOfWeek":[2,"first-day-of-week"],"format":[1],"inputShouldFormat":[8,"input-should-format"],"disableFreeformInput":[4,"disable-freeform-input"],"inputClass":[1,"input-class"],"appendTo":[1,"append-to"],"internalValue":[32],"selectedDate":[32],"selectedHours":[32],"selectedMinutes":[32],"errorState":[32],"disabledState":[32],"clearValue":[64]},null,{"value":[{"watchValue":0}],"disabled":[{"watchDisabled":0}],"hasError":[{"watchHasError":0}]}]]],["tabworthy-dates.cjs",[[2,"tabworthy-dates",{"id":[513],"value":[1025],"range":[4],"label":[1],"placeholder":[1],"locale":[1],"disabled":[4],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"startDate":[1,"start-date"],"referenceDate":[1,"reference-date"],"useStrictDateParsing":[4,"use-strict-date-parsing"],"datesLabels":[16],"datesCalendarLabels":[16],"inline":[4],"hasError":[1028,"has-error"],"nextMonthButtonContent":[1,"next-month-button-content"],"nextYearButtonContent":[1,"next-year-button-content"],"showYearStepper":[4,"show-year-stepper"],"showMonthStepper":[4,"show-month-stepper"],"showClearButton":[4,"show-clear-button"],"showTodayButton":[4,"show-today-button"],"inputShouldFormat":[8,"input-should-format"],"showKeyboardHint":[4,"show-keyboard-hint"],"disableDate":[16],"elementClassName":[1,"element-class-name"],"firstDayOfWeek":[2,"first-day-of-week"],"format":[1],"quickButtons":[16],"todayButtonContent":[1,"today-button-content"],"calendarButtonContent":[1,"calendar-button-content"],"showQuickButtons":[4,"show-quick-buttons"],"disableFreeformInput":[4,"disable-freeform-input"],"inputClass":[1,"input-class"],"appendTo":[1,"append-to"],"internalValue":[32],"errorState":[32],"disabledState":[32],"parseDate":[64]},null,{"disabled":[{"watchDisabled":0}],"value":[{"watchValue":0}]}]]]], options);
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
exports.setNonce = index.setNonce;
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["tabworthy-times-picker.cjs",[[2,"tabworthy-times-picker",{"hours":[1026],"minutes":[1026],"useTwelveHourFormat":[4,"use-twelve-hour-format"],"labels":[16],"labelsSrOnly":[4,"labels-sr-only"],"disabled":[4],"elementClassName":[1,"element-class-name"],"internalHours":[32],"internalMinutes":[32],"period":[32]},null,{"hours":[{"watchHours":0}],"minutes":[{"watchMinutes":0}]}]]],["tabworthy-dates-calendar_2.cjs",[[262,"tabworthy-dates-calendar",{"clearButtonContent":[1,"clear-button-content"],"disabled":[4],"modalIsOpen":[4,"modal-is-open"],"disableDate":[16],"elementClassName":[1,"element-class-name"],"firstDayOfWeek":[2,"first-day-of-week"],"range":[4],"labels":[16],"locale":[1],"nextMonthButtonContent":[1,"next-month-button-content"],"nextYearButtonContent":[1,"next-year-button-content"],"previousMonthButtonContent":[1,"previous-month-button-content"],"previousYearButtonContent":[1,"previous-year-button-content"],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"inline":[4],"showClearButton":[4,"show-clear-button"],"showMonthStepper":[4,"show-month-stepper"],"showTodayButton":[4,"show-today-button"],"showYearStepper":[4,"show-year-stepper"],"showKeyboardHint":[4,"show-keyboard-hint"],"showHiddenTitle":[4,"show-hidden-title"],"startDate":[1,"start-date"],"todayButtonContent":[1,"today-button-content"],"value":[1040],"currentDate":[32],"hoveredDate":[32],"weekdays":[32]},null,{"modalIsOpen":[{"watchModalIsOpen":0}],"firstDayOfWeek":[{"watchFirstDayOfWeek":0}],"locale":[{"watchLocale":0}],"range":[{"watchRange":0}],"startDate":[{"watchStartDate":0}],"value":[{"watchValue":0}]}],[257,"tabworthy-dates-modal",{"label":[1],"inline":[4],"placement":[1],"offset":[16],"appendTo":[1,"append-to"],"closing":[32],"showing":[32],"positioned":[32],"open":[64],"close":[64],"getState":[64],"setTriggerElement":[64],"updatePosition":[64]},[[10,"click","handleClick"]],{"showing":[{"watchShowing":0}]}]]],["tabworthy-times.cjs",[[2,"tabworthy-times",{"id":[513],"value":[1025],"range":[4],"label":[1],"placeholder":[1],"locale":[1],"disabled":[4],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"startDate":[1,"start-date"],"referenceDate":[1,"reference-date"],"useTwelveHourFormat":[4,"use-twelve-hour-format"],"timesLabels":[16],"datesCalendarLabels":[16],"inline":[4],"hasError":[1028,"has-error"],"showYearStepper":[4,"show-year-stepper"],"showMonthStepper":[4,"show-month-stepper"],"showClearButton":[4,"show-clear-button"],"showTodayButton":[4,"show-today-button"],"calendarButtonContent":[1,"calendar-button-content"],"disableDate":[16],"elementClassName":[1,"element-class-name"],"firstDayOfWeek":[2,"first-day-of-week"],"format":[1],"inputShouldFormat":[8,"input-should-format"],"disableFreeformInput":[4,"disable-freeform-input"],"inputClass":[1,"input-class"],"appendTo":[1,"append-to"],"internalValue":[32],"selectedDate":[32],"selectedHours":[32],"selectedMinutes":[32],"errorState":[32],"disabledState":[32],"clearValue":[64]},null,{"value":[{"watchValue":0}],"disabled":[{"watchDisabled":0}],"hasError":[{"watchHasError":0}]}]]],["tabworthy-dates.cjs",[[2,"tabworthy-dates",{"id":[513],"value":[1025],"range":[4],"label":[1],"placeholder":[1],"locale":[1],"disabled":[4],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"startDate":[1,"start-date"],"referenceDate":[1,"reference-date"],"useStrictDateParsing":[4,"use-strict-date-parsing"],"datesLabels":[16],"datesCalendarLabels":[16],"inline":[4],"hasError":[1028,"has-error"],"nextMonthButtonContent":[1,"next-month-button-content"],"nextYearButtonContent":[1,"next-year-button-content"],"showYearStepper":[4,"show-year-stepper"],"showMonthStepper":[4,"show-month-stepper"],"showClearButton":[4,"show-clear-button"],"showTodayButton":[4,"show-today-button"],"inputShouldFormat":[8,"input-should-format"],"showKeyboardHint":[4,"show-keyboard-hint"],"disableDate":[16],"elementClassName":[1,"element-class-name"],"firstDayOfWeek":[2,"first-day-of-week"],"format":[1],"quickButtons":[16],"todayButtonContent":[1,"today-button-content"],"calendarButtonContent":[1,"calendar-button-content"],"showQuickButtons":[4,"show-quick-buttons"],"disableFreeformInput":[4,"disable-freeform-input"],"inputClass":[1,"input-class"],"appendTo":[1,"append-to"],"internalValue":[32],"errorState":[32],"disabledState":[32],"parseDate":[64]},null,{"disabled":[{"watchDisabled":0}],"value":[{"watchValue":0}]}]]]], options);
|
|
22
|
+
return index.bootstrapLazy([["tabworthy-times-picker.cjs",[[2,"tabworthy-times-picker",{"hours":[1026],"minutes":[1026],"useTwelveHourFormat":[4,"use-twelve-hour-format"],"labels":[16],"labelsSrOnly":[4,"labels-sr-only"],"disabled":[4],"elementClassName":[1,"element-class-name"],"internalHours":[32],"internalMinutes":[32],"period":[32]},null,{"hours":[{"watchHours":0}],"minutes":[{"watchMinutes":0}]}]]],["tabworthy-dates-calendar_2.cjs",[[262,"tabworthy-dates-calendar",{"clearButtonContent":[1,"clear-button-content"],"disabled":[4],"modalIsOpen":[4,"modal-is-open"],"disableDate":[16],"elementClassName":[1,"element-class-name"],"firstDayOfWeek":[2,"first-day-of-week"],"range":[4],"labels":[16],"locale":[1],"nextMonthButtonContent":[1,"next-month-button-content"],"nextYearButtonContent":[1,"next-year-button-content"],"previousMonthButtonContent":[1,"previous-month-button-content"],"previousYearButtonContent":[1,"previous-year-button-content"],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"inline":[4],"showClearButton":[4,"show-clear-button"],"showMonthStepper":[4,"show-month-stepper"],"showTodayButton":[4,"show-today-button"],"showYearStepper":[4,"show-year-stepper"],"showKeyboardHint":[4,"show-keyboard-hint"],"showHiddenTitle":[4,"show-hidden-title"],"startDate":[1,"start-date"],"todayButtonContent":[1,"today-button-content"],"value":[1040],"currentDate":[32],"hoveredDate":[32],"weekdays":[32]},null,{"modalIsOpen":[{"watchModalIsOpen":0}],"firstDayOfWeek":[{"watchFirstDayOfWeek":0}],"locale":[{"watchLocale":0}],"range":[{"watchRange":0}],"startDate":[{"watchStartDate":0}],"value":[{"watchValue":0}]}],[257,"tabworthy-dates-modal",{"label":[1],"inline":[4],"placement":[1],"offset":[16],"appendTo":[1,"append-to"],"closing":[32],"showing":[32],"positioned":[32],"open":[64],"close":[64],"getState":[64],"setTriggerElement":[64],"updatePosition":[64]},[[10,"click","handleClick"]],{"showing":[{"watchShowing":0}]}]]],["tabworthy-times.cjs",[[2,"tabworthy-times",{"id":[513],"value":[1025],"range":[4],"label":[1],"placeholder":[1],"locale":[1],"disabled":[4],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"startDate":[1,"start-date"],"referenceDate":[1,"reference-date"],"useTwelveHourFormat":[4,"use-twelve-hour-format"],"timesLabels":[16],"datesCalendarLabels":[16],"timesPickerLabels":[16],"inline":[4],"hasError":[1028,"has-error"],"showYearStepper":[4,"show-year-stepper"],"showMonthStepper":[4,"show-month-stepper"],"showClearButton":[4,"show-clear-button"],"showTodayButton":[4,"show-today-button"],"calendarButtonContent":[1,"calendar-button-content"],"disableDate":[16],"elementClassName":[1,"element-class-name"],"firstDayOfWeek":[2,"first-day-of-week"],"format":[1],"inputShouldFormat":[8,"input-should-format"],"disableFreeformInput":[4,"disable-freeform-input"],"inputClass":[1,"input-class"],"appendTo":[1,"append-to"],"internalValue":[32],"selectedDate":[32],"selectedHours":[32],"selectedMinutes":[32],"errorState":[32],"disabledState":[32],"clearValue":[64]},null,{"value":[{"watchValue":0}],"disabled":[{"watchDisabled":0}],"hasError":[{"watchHasError":0}]}]]],["tabworthy-dates.cjs",[[2,"tabworthy-dates",{"id":[513],"value":[1025],"range":[4],"label":[1],"placeholder":[1],"locale":[1],"disabled":[4],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"startDate":[1,"start-date"],"referenceDate":[1,"reference-date"],"useStrictDateParsing":[4,"use-strict-date-parsing"],"datesLabels":[16],"datesCalendarLabels":[16],"inline":[4],"hasError":[1028,"has-error"],"nextMonthButtonContent":[1,"next-month-button-content"],"nextYearButtonContent":[1,"next-year-button-content"],"showYearStepper":[4,"show-year-stepper"],"showMonthStepper":[4,"show-month-stepper"],"showClearButton":[4,"show-clear-button"],"showTodayButton":[4,"show-today-button"],"inputShouldFormat":[8,"input-should-format"],"showKeyboardHint":[4,"show-keyboard-hint"],"disableDate":[16],"elementClassName":[1,"element-class-name"],"firstDayOfWeek":[2,"first-day-of-week"],"format":[1],"quickButtons":[16],"todayButtonContent":[1,"today-button-content"],"calendarButtonContent":[1,"calendar-button-content"],"showQuickButtons":[4,"show-quick-buttons"],"disableFreeformInput":[4,"disable-freeform-input"],"inputClass":[1,"input-class"],"appendTo":[1,"append-to"],"internalValue":[32],"errorState":[32],"disabledState":[32],"parseDate":[64]},null,{"disabled":[{"watchDisabled":0}],"value":[{"watchValue":0}]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -10482,7 +10482,8 @@ const defaultLabels = {
|
|
|
10482
10482
|
rangeOutOfBoundsError: `Please enter a valid range of dates`,
|
|
10483
10483
|
disabledDateError: `Please choose an available date`,
|
|
10484
10484
|
to: "to",
|
|
10485
|
-
startDate: "Start date"
|
|
10485
|
+
startDate: "Start date",
|
|
10486
|
+
quickSelection: "Quick selection"
|
|
10486
10487
|
};
|
|
10487
10488
|
const TabworthyDates = class {
|
|
10488
10489
|
constructor(hostRef) {
|
|
@@ -10911,10 +10912,10 @@ const TabworthyDates = class {
|
|
|
10911
10912
|
}
|
|
10912
10913
|
render() {
|
|
10913
10914
|
var _a;
|
|
10914
|
-
return (index$1.h(index$1.Host, { key: '
|
|
10915
|
+
return (index$1.h(index$1.Host, { key: 'b85c1909fe1480911c45c35a2df8c01e5f7a09d3' }, index$1.h("label", { key: '3b41928ed705bdeeee9cb0d6e13d58a767d00b26', htmlFor: this.id ? `${this.id}-input` : undefined, class: this.getClassName("label") }, this.label), index$1.h("br", { key: '3c8b0017ab9604956ac4e1c452fdc1a6a4e4a786' }), index$1.h("div", { key: '5a389a5f7be57c19d11d4a565a61130d5fd3b5ff', class: this.getClassName("input-container"), ref: (r) => (this.inputContainerRef = r) }, index$1.h("input", { key: '7c1b10e5811f0797c67673f2d8c13fb2ea6b10d0', disabled: this.disabledState || this.disableFreeformInput, id: this.id ? `${this.id}-input` : undefined, type: "text", placeholder: this.placeholder, class: {
|
|
10915
10916
|
[this.getClassName("input")]: true,
|
|
10916
10917
|
[this.inputClass]: !!this.inputClass
|
|
10917
|
-
}, ref: (r) => (this.inputRef = r), onChange: this.handleChange, onFocus: () => this.formatInput(false), onBlur: () => this.formatInput(true, false), "aria-describedby": this.errorState ? `${this.id}-error` : undefined, "aria-invalid": this.errorState }), !this.inline && (index$1.h("button", { key: '
|
|
10918
|
+
}, ref: (r) => (this.inputRef = r), onChange: this.handleChange, onFocus: () => this.formatInput(false), onBlur: () => this.formatInput(true, false), "aria-describedby": this.errorState ? `${this.id}-error` : undefined, "aria-invalid": this.errorState }), !this.inline && (index$1.h("button", { key: '892a308b551d55b8e027f2dde48cc0cc22e00018', type: "button", onClick: this.handleCalendarButtonClick, class: this.getClassName("calendar-button"), disabled: this.disabledState }, this.calendarButtonContent ? (index$1.h("span", { innerHTML: this.calendarButtonContent })) : (this.datesLabels.openCalendar)))), index$1.h("tabworthy-dates-modal", { key: 'e2e90d92503ca129ed2017c2321590bdee12ce20', label: this.datesLabels.calendar, ref: (el) => (this.modalRef = el), onOpened: () => {
|
|
10918
10919
|
if (!this.pickerRef)
|
|
10919
10920
|
return;
|
|
10920
10921
|
this.pickerRef.modalIsOpen = true;
|
|
@@ -10922,11 +10923,11 @@ const TabworthyDates = class {
|
|
|
10922
10923
|
if (!this.pickerRef)
|
|
10923
10924
|
return;
|
|
10924
10925
|
this.pickerRef.modalIsOpen = false;
|
|
10925
|
-
}, inline: this.inline, appendTo: this.appendTo }, index$1.h("tabworthy-dates-calendar", { key: '
|
|
10926
|
+
}, inline: this.inline, appendTo: this.appendTo }, index$1.h("tabworthy-dates-calendar", { key: '0b8aa3324fedbd8f63c856fe5e5662cdc011db1f', range: this.range, locale: this.locale, onSelectDate: (event) => this.handlePickerSelection(event.detail), onChangeMonth: (event) => this.handleChangedMonths(event.detail), onChangeYear: (event) => this.handleYearChange(event.detail), labels: this.datesCalendarLabels ? this.datesCalendarLabels : undefined, ref: (el) => (this.pickerRef = el), startDate: this.startDate, firstDayOfWeek: this.firstDayOfWeek, showHiddenTitle: true, disabled: this.disabledState, showMonthStepper: this.showMonthStepper, showYearStepper: this.showYearStepper, showClearButton: this.showClearButton, showKeyboardHint: this.showKeyboardHint, showTodayButton: this.showTodayButton, disableDate: this.disableDate, minDate: this.minDate, maxDate: this.maxDate, inline: this.inline })), this.showQuickButtons &&
|
|
10926
10927
|
((_a = this.quickButtons) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
|
|
10927
|
-
this.chronoSupportedLocale && (index$1.h("div", { key: '
|
|
10928
|
+
this.chronoSupportedLocale && (index$1.h("div", { key: '26e0dc9ae8e91b308b9f159e5428ae3e0ac9a8c8', class: this.getClassName("quick-group"), role: "group", "aria-label": this.datesLabels.quickSelection }, this.quickButtons.map((buttonText) => {
|
|
10928
10929
|
return (index$1.h("button", { class: this.getClassName("quick-button"), onClick: this.handleQuickButtonClick, disabled: this.disabledState, type: "button" }, buttonText));
|
|
10929
|
-
}))), this.errorState && (index$1.h("div", { key: '
|
|
10930
|
+
}))), this.errorState && (index$1.h("div", { key: '434fecd9962fe0360536c6f0d96cb52e77034399', class: this.getClassName("input-error"), id: this.id ? `${this.id}-error` : undefined, role: "status" }, this.errorMessage))));
|
|
10930
10931
|
}
|
|
10931
10932
|
get el() { return index$1.getElement(this); }
|
|
10932
10933
|
static get watchers() { return {
|
|
@@ -13,7 +13,7 @@ const defaultLabels = {
|
|
|
13
13
|
incrementMinutes: "Increment minutes",
|
|
14
14
|
decrementMinutes: "Decrement minutes"
|
|
15
15
|
};
|
|
16
|
-
const
|
|
16
|
+
const TabworthyTimesPicker = class {
|
|
17
17
|
constructor(hostRef) {
|
|
18
18
|
index.registerInstance(this, hostRef);
|
|
19
19
|
this.timeChanged = index.createEvent(this, "timeChanged", 7);
|
|
@@ -155,16 +155,16 @@ const InclusiveTimesPicker = class {
|
|
|
155
155
|
const displayHours = this.getDisplayHours();
|
|
156
156
|
const maxHours = this.useTwelveHourFormat ? 12 : 23;
|
|
157
157
|
const minHours = this.useTwelveHourFormat ? 1 : 0;
|
|
158
|
-
return (index.h(index.Host, { key: '
|
|
158
|
+
return (index.h(index.Host, { key: '5c9fbbe95d08e086bf78761da0375526f5042d15', class: this.elementClassName, "aria-label": this.labels.timePicker }, index.h("div", { key: 'f914ccebcf2025226762b1446944be41b555b5ea', class: `${this.elementClassName}__container` }, index.h("div", { key: 'a17ed2def130bbe92a17dd733f1b516d68ae98f3', class: `${this.elementClassName}__field` }, index.h("label", { key: '513ca90795cca3c209df22def8fae8dd377d74ef', htmlFor: `${this.elementClassName}-hours`, class: {
|
|
159
159
|
[`${this.elementClassName}__label`]: true,
|
|
160
160
|
[`${this.elementClassName}__label--sr-only`]: this.labelsSrOnly
|
|
161
|
-
} }, this.labels.hours), index.h("div", { key: '
|
|
161
|
+
} }, this.labels.hours), index.h("div", { key: '3f7448b3161d594e3d601700e1a703a3f2857ffe', class: `${this.elementClassName}__control` }, index.h("button", { key: '19f8cf8fdfc931e0baa10b98864589990d628b7f', type: "button", class: `${this.elementClassName}__button ${this.elementClassName}__button--increment`, onClick: this.handleHourIncrement, disabled: this.disabled, "aria-label": this.labels.incrementHours }, index.h("svg", { key: 'fb12854d35131adad4250bf24e25936ad583f74f', fill: "none", height: "16", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "16" }, index.h("polyline", { key: '8176d2b9d15e81ef7c700064cadd2b83b8572593', points: "18 15 12 9 6 15" }))), index.h("input", { key: '66986ad937685f83bf1bc999c4aabf5f2ed9d3d9', id: `${this.elementClassName}-hours`, type: "number", class: `${this.elementClassName}__input`, value: this.padZero(displayHours), min: minHours, max: maxHours, onInput: this.handleHourChange, disabled: this.disabled, "aria-label": this.labels.hours }), index.h("button", { key: 'd225e66235e04132bf461bb6e73377a823db1b9f', type: "button", class: `${this.elementClassName}__button ${this.elementClassName}__button--decrement`, onClick: this.handleHourDecrement, disabled: this.disabled, "aria-label": this.labels.decrementHours }, index.h("svg", { key: '387c4d7ddb7097da7032345db6c09db5e0ea0d0b', fill: "none", height: "16", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "16" }, index.h("polyline", { key: '4c307b1ecb096d3c4d42ed7c79b0c8cde004842a', points: "6 9 12 15 18 9" }))))), index.h("div", { key: '9c8101ae559b74d985286688e3147aacc80ab448', class: `${this.elementClassName}__separator` }, ":"), index.h("div", { key: '8a49a068478e1fda98634e1d74bb399b5ae1a5f4', class: `${this.elementClassName}__field` }, index.h("label", { key: '3c585236e76192d10f013aff1a765f9b31e9bce6', htmlFor: `${this.elementClassName}-minutes`, class: {
|
|
162
162
|
[`${this.elementClassName}__label`]: true,
|
|
163
163
|
[`${this.elementClassName}__label--sr-only`]: this.labelsSrOnly
|
|
164
|
-
} }, this.labels.minutes), index.h("div", { key: '
|
|
164
|
+
} }, this.labels.minutes), index.h("div", { key: '8d567d355ae2f34c51c057c81ea0921a8de6f012', class: `${this.elementClassName}__control` }, index.h("button", { key: 'a061d7d4b66b787d4478d54bc36525e5d9bf7e61', type: "button", class: `${this.elementClassName}__button ${this.elementClassName}__button--increment`, onClick: this.handleMinuteIncrement, disabled: this.disabled, "aria-label": this.labels.incrementMinutes }, index.h("svg", { key: '148244241427e2bca0f6fc7147f9ca5a329c4480', fill: "none", height: "16", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "16" }, index.h("polyline", { key: 'd10fa3e7a7815b8806d583041aeae70b4de0e267', points: "18 15 12 9 6 15" }))), index.h("input", { key: 'db14c0a90805afede369a9e0878191537e9eef9f', id: `${this.elementClassName}-minutes`, type: "number", class: `${this.elementClassName}__input`, value: this.padZero(this.internalMinutes), min: 0, max: 59, onInput: this.handleMinuteChange, disabled: this.disabled, "aria-label": this.labels.minutes }), index.h("button", { key: '1820f55ac22cd78494a40fa7b5f2e1c1ea191a18', type: "button", class: `${this.elementClassName}__button ${this.elementClassName}__button--decrement`, onClick: this.handleMinuteDecrement, disabled: this.disabled, "aria-label": this.labels.decrementMinutes }, index.h("svg", { key: '9135d7673f58babaf44b0c33ad1755b3097aea01', fill: "none", height: "16", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "16" }, index.h("polyline", { key: 'f36192868f379fc2abe3b2deade678eeab725ee1', points: "6 9 12 15 18 9" }))))), this.useTwelveHourFormat && (index.h("div", { key: '6bf685eaed72c157b8c01c40e8b84bace096d417', class: `${this.elementClassName}__period` }, index.h("button", { key: '107a2a21de03626e15b35cd850f5ee8a2eb09f8e', type: "button", class: {
|
|
165
165
|
[`${this.elementClassName}__period-button`]: true,
|
|
166
166
|
[`${this.elementClassName}__period-button--active`]: this.period === "AM"
|
|
167
|
-
}, onClick: () => this.handlePeriodChange("AM"), disabled: this.disabled, "aria-label": this.labels.am, "aria-pressed": this.period === "AM" }, this.labels.am), index.h("button", { key: '
|
|
167
|
+
}, onClick: () => this.handlePeriodChange("AM"), disabled: this.disabled, "aria-label": this.labels.am, "aria-pressed": this.period === "AM" }, this.labels.am), index.h("button", { key: '62ad24e781b8da40699e4f91acbc20eeef1c2f65', type: "button", class: {
|
|
168
168
|
[`${this.elementClassName}__period-button`]: true,
|
|
169
169
|
[`${this.elementClassName}__period-button--active`]: this.period === "PM"
|
|
170
170
|
}, onClick: () => this.handlePeriodChange("PM"), disabled: this.disabled, "aria-label": this.labels.pm, "aria-pressed": this.period === "PM" }, this.labels.pm))))));
|
|
@@ -180,4 +180,4 @@ const InclusiveTimesPicker = class {
|
|
|
180
180
|
}; }
|
|
181
181
|
};
|
|
182
182
|
|
|
183
|
-
exports.tabworthy_times_picker =
|
|
183
|
+
exports.tabworthy_times_picker = TabworthyTimesPicker;
|
|
@@ -41,7 +41,6 @@ const InclusiveTimes = class {
|
|
|
41
41
|
this.useTwelveHourFormat = true;
|
|
42
42
|
// Labels used for internal translations
|
|
43
43
|
this.timesLabels = defaultLabels;
|
|
44
|
-
// Prevent hiding the calendar
|
|
45
44
|
this.inline = false;
|
|
46
45
|
// Current error state of the input field
|
|
47
46
|
this.hasError = false;
|
|
@@ -238,10 +237,10 @@ const InclusiveTimes = class {
|
|
|
238
237
|
}
|
|
239
238
|
render() {
|
|
240
239
|
var _a;
|
|
241
|
-
return (index.h(index.Host, { key: '
|
|
240
|
+
return (index.h(index.Host, { key: '50d45c4b42629ab4db986c798de53bffcfb94018', class: this.elementClassName, "has-error": this.errorState, disabled: this.disabledState }, index.h("label", { key: '9b97b3a86a29629b5acef900cd46c12401a0ed15', htmlFor: `${this.id}-input`, class: this.getClassName("label") }, this.label), index.h("div", { key: '84e4b339f17a14b036e08c3ed55c28ebf8ff1eef', class: this.getClassName("input-container"), ref: (r) => (this.inputContainerRef = r) }, index.h("input", { key: 'f189b9624b1e7a9d80a71dbdbcadc606d4e8c431', id: `${this.id}-input`, ref: (r) => (this.inputRef = r), type: "text", class: {
|
|
242
241
|
[this.getClassName("input")]: true,
|
|
243
242
|
[this.inputClass]: !!this.inputClass
|
|
244
|
-
}, placeholder: this.placeholder, disabled: this.disabledState || this.disableFreeformInput, value: (_a = this.internalValue) === null || _a === void 0 ? void 0 : _a.toString(), onBlur: this.handleInputBlur, onChange: this.handleInputChange, "aria-describedby": this.errorState ? `${this.id}-error` : undefined, "aria-invalid": this.errorState }), !this.inline && (index.h("button", { key: '
|
|
243
|
+
}, placeholder: this.placeholder, disabled: this.disabledState || this.disableFreeformInput, value: (_a = this.internalValue) === null || _a === void 0 ? void 0 : _a.toString(), onBlur: this.handleInputBlur, onChange: this.handleInputChange, "aria-describedby": this.errorState ? `${this.id}-error` : undefined, "aria-invalid": this.errorState }), !this.inline && (index.h("button", { key: 'dc54c9ff8d4fab01d6175584320de0a0b8282cb2', type: "button", onClick: this.handleCalendarButtonClick, class: this.getClassName("calendar-button"), disabled: this.disabledState }, this.calendarButtonContent ? (index.h("span", { innerHTML: this.calendarButtonContent })) : (this.timesLabels.openCalendar)))), index.h("tabworthy-dates-modal", { key: '1102460f03ffbd9dd3878376fc37fe19aaa50f54', label: this.timesLabels.calendar, ref: (el) => (this.modalRef = el), onOpened: () => {
|
|
245
244
|
if (this.pickerRef) {
|
|
246
245
|
this.pickerRef.modalIsOpen = true;
|
|
247
246
|
}
|
|
@@ -249,7 +248,7 @@ const InclusiveTimes = class {
|
|
|
249
248
|
if (this.pickerRef) {
|
|
250
249
|
this.pickerRef.modalIsOpen = false;
|
|
251
250
|
}
|
|
252
|
-
}, inline: this.inline, appendTo: this.appendTo }, index.h("div", { key: '
|
|
251
|
+
}, inline: this.inline, appendTo: this.appendTo }, index.h("div", { key: 'fbce75861b31c85a58055eb4dc1c3f9ad0d0be73', class: this.getClassName("picker-container") }, index.h("tabworthy-dates-calendar", { key: '265ab52d552985fddd4c6944fb2405baadae1450', range: this.range, locale: this.locale, onSelectDate: (event) => this.handlePickerSelection(event.detail), onChangeMonth: (event) => this.handleChangedMonths(event.detail), onChangeYear: (event) => this.handleYearChange(event.detail), labels: this.datesCalendarLabels, ref: (el) => (this.pickerRef = el), startDate: this.startDate, firstDayOfWeek: this.firstDayOfWeek, showHiddenTitle: true, disabled: this.disabledState, showMonthStepper: this.showMonthStepper, showYearStepper: this.showYearStepper, showClearButton: this.showClearButton, showTodayButton: this.showTodayButton, disableDate: this.disableDate, minDate: this.minDate, maxDate: this.maxDate, inline: this.inline, value: this.value ? this.toDate(this.value) : undefined }, index.h("div", { key: 'f7377b3ff5a818849afcab7297a6f3d732dd4b82', slot: "after-calendar", class: this.getClassName("time-section") }, index.h("hr", { key: 'd71bc64c57fc8073e4af045347f9be69e20bac9f', class: this.getClassName("divider") }), index.h("tabworthy-times-picker", { key: '2ee95db049c3a81b26fa38b9bb4288f0850dc25f', hours: this.selectedHours, minutes: this.selectedMinutes, useTwelveHourFormat: this.useTwelveHourFormat, disabled: this.disabledState, onTimeChanged: this.handleTimeChange, labels: this.timesPickerLabels }))))), this.errorState && (index.h("div", { key: '0b0f79267ba191582d5e23be27970b16db80aab7', class: this.getClassName("input-error"), id: this.id ? `${this.id}-error` : undefined, role: "status" }, this.errorMessage))));
|
|
253
252
|
}
|
|
254
253
|
get el() { return index.getElement(this); }
|
|
255
254
|
static get watchers() { return {
|
|
@@ -13,7 +13,8 @@ const defaultLabels = {
|
|
|
13
13
|
rangeOutOfBoundsError: `Please enter a valid range of dates`,
|
|
14
14
|
disabledDateError: `Please choose an available date`,
|
|
15
15
|
to: "to",
|
|
16
|
-
startDate: "Start date"
|
|
16
|
+
startDate: "Start date",
|
|
17
|
+
quickSelection: "Quick selection"
|
|
17
18
|
};
|
|
18
19
|
export class TabworthyDates {
|
|
19
20
|
constructor() {
|
|
@@ -438,10 +439,10 @@ export class TabworthyDates {
|
|
|
438
439
|
}
|
|
439
440
|
render() {
|
|
440
441
|
var _a;
|
|
441
|
-
return (h(Host, { key: '
|
|
442
|
+
return (h(Host, { key: 'b85c1909fe1480911c45c35a2df8c01e5f7a09d3' }, h("label", { key: '3b41928ed705bdeeee9cb0d6e13d58a767d00b26', htmlFor: this.id ? `${this.id}-input` : undefined, class: this.getClassName("label") }, this.label), h("br", { key: '3c8b0017ab9604956ac4e1c452fdc1a6a4e4a786' }), h("div", { key: '5a389a5f7be57c19d11d4a565a61130d5fd3b5ff', class: this.getClassName("input-container"), ref: (r) => (this.inputContainerRef = r) }, h("input", { key: '7c1b10e5811f0797c67673f2d8c13fb2ea6b10d0', disabled: this.disabledState || this.disableFreeformInput, id: this.id ? `${this.id}-input` : undefined, type: "text", placeholder: this.placeholder, class: {
|
|
442
443
|
[this.getClassName("input")]: true,
|
|
443
444
|
[this.inputClass]: !!this.inputClass
|
|
444
|
-
}, ref: (r) => (this.inputRef = r), onChange: this.handleChange, onFocus: () => this.formatInput(false), onBlur: () => this.formatInput(true, false), "aria-describedby": this.errorState ? `${this.id}-error` : undefined, "aria-invalid": this.errorState }), !this.inline && (h("button", { key: '
|
|
445
|
+
}, ref: (r) => (this.inputRef = r), onChange: this.handleChange, onFocus: () => this.formatInput(false), onBlur: () => this.formatInput(true, false), "aria-describedby": this.errorState ? `${this.id}-error` : undefined, "aria-invalid": this.errorState }), !this.inline && (h("button", { key: '892a308b551d55b8e027f2dde48cc0cc22e00018', type: "button", onClick: this.handleCalendarButtonClick, class: this.getClassName("calendar-button"), disabled: this.disabledState }, this.calendarButtonContent ? (h("span", { innerHTML: this.calendarButtonContent })) : (this.datesLabels.openCalendar)))), h("tabworthy-dates-modal", { key: 'e2e90d92503ca129ed2017c2321590bdee12ce20', label: this.datesLabels.calendar, ref: (el) => (this.modalRef = el), onOpened: () => {
|
|
445
446
|
if (!this.pickerRef)
|
|
446
447
|
return;
|
|
447
448
|
this.pickerRef.modalIsOpen = true;
|
|
@@ -449,11 +450,11 @@ export class TabworthyDates {
|
|
|
449
450
|
if (!this.pickerRef)
|
|
450
451
|
return;
|
|
451
452
|
this.pickerRef.modalIsOpen = false;
|
|
452
|
-
}, inline: this.inline, appendTo: this.appendTo }, h("tabworthy-dates-calendar", { key: '
|
|
453
|
+
}, inline: this.inline, appendTo: this.appendTo }, h("tabworthy-dates-calendar", { key: '0b8aa3324fedbd8f63c856fe5e5662cdc011db1f', range: this.range, locale: this.locale, onSelectDate: (event) => this.handlePickerSelection(event.detail), onChangeMonth: (event) => this.handleChangedMonths(event.detail), onChangeYear: (event) => this.handleYearChange(event.detail), labels: this.datesCalendarLabels ? this.datesCalendarLabels : undefined, ref: (el) => (this.pickerRef = el), startDate: this.startDate, firstDayOfWeek: this.firstDayOfWeek, showHiddenTitle: true, disabled: this.disabledState, showMonthStepper: this.showMonthStepper, showYearStepper: this.showYearStepper, showClearButton: this.showClearButton, showKeyboardHint: this.showKeyboardHint, showTodayButton: this.showTodayButton, disableDate: this.disableDate, minDate: this.minDate, maxDate: this.maxDate, inline: this.inline })), this.showQuickButtons &&
|
|
453
454
|
((_a = this.quickButtons) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
|
|
454
|
-
this.chronoSupportedLocale && (h("div", { key: '
|
|
455
|
+
this.chronoSupportedLocale && (h("div", { key: '26e0dc9ae8e91b308b9f159e5428ae3e0ac9a8c8', class: this.getClassName("quick-group"), role: "group", "aria-label": this.datesLabels.quickSelection }, this.quickButtons.map((buttonText) => {
|
|
455
456
|
return (h("button", { class: this.getClassName("quick-button"), onClick: this.handleQuickButtonClick, disabled: this.disabledState, type: "button" }, buttonText));
|
|
456
|
-
}))), this.errorState && (h("div", { key: '
|
|
457
|
+
}))), this.errorState && (h("div", { key: '434fecd9962fe0360536c6f0d96cb52e77034399', class: this.getClassName("input-error"), id: this.id ? `${this.id}-error` : undefined, role: "status" }, this.errorMessage))));
|
|
457
458
|
}
|
|
458
459
|
static get is() { return "tabworthy-dates"; }
|
|
459
460
|
static get encapsulation() { return "scoped"; }
|
|
@@ -34,7 +34,6 @@ export class InclusiveTimes {
|
|
|
34
34
|
this.useTwelveHourFormat = true;
|
|
35
35
|
// Labels used for internal translations
|
|
36
36
|
this.timesLabels = defaultLabels;
|
|
37
|
-
// Prevent hiding the calendar
|
|
38
37
|
this.inline = false;
|
|
39
38
|
// Current error state of the input field
|
|
40
39
|
this.hasError = false;
|
|
@@ -231,10 +230,10 @@ export class InclusiveTimes {
|
|
|
231
230
|
}
|
|
232
231
|
render() {
|
|
233
232
|
var _a;
|
|
234
|
-
return (h(Host, { key: '
|
|
233
|
+
return (h(Host, { key: '50d45c4b42629ab4db986c798de53bffcfb94018', class: this.elementClassName, "has-error": this.errorState, disabled: this.disabledState }, h("label", { key: '9b97b3a86a29629b5acef900cd46c12401a0ed15', htmlFor: `${this.id}-input`, class: this.getClassName("label") }, this.label), h("div", { key: '84e4b339f17a14b036e08c3ed55c28ebf8ff1eef', class: this.getClassName("input-container"), ref: (r) => (this.inputContainerRef = r) }, h("input", { key: 'f189b9624b1e7a9d80a71dbdbcadc606d4e8c431', id: `${this.id}-input`, ref: (r) => (this.inputRef = r), type: "text", class: {
|
|
235
234
|
[this.getClassName("input")]: true,
|
|
236
235
|
[this.inputClass]: !!this.inputClass
|
|
237
|
-
}, placeholder: this.placeholder, disabled: this.disabledState || this.disableFreeformInput, value: (_a = this.internalValue) === null || _a === void 0 ? void 0 : _a.toString(), onBlur: this.handleInputBlur, onChange: this.handleInputChange, "aria-describedby": this.errorState ? `${this.id}-error` : undefined, "aria-invalid": this.errorState }), !this.inline && (h("button", { key: '
|
|
236
|
+
}, placeholder: this.placeholder, disabled: this.disabledState || this.disableFreeformInput, value: (_a = this.internalValue) === null || _a === void 0 ? void 0 : _a.toString(), onBlur: this.handleInputBlur, onChange: this.handleInputChange, "aria-describedby": this.errorState ? `${this.id}-error` : undefined, "aria-invalid": this.errorState }), !this.inline && (h("button", { key: 'dc54c9ff8d4fab01d6175584320de0a0b8282cb2', type: "button", onClick: this.handleCalendarButtonClick, class: this.getClassName("calendar-button"), disabled: this.disabledState }, this.calendarButtonContent ? (h("span", { innerHTML: this.calendarButtonContent })) : (this.timesLabels.openCalendar)))), h("tabworthy-dates-modal", { key: '1102460f03ffbd9dd3878376fc37fe19aaa50f54', label: this.timesLabels.calendar, ref: (el) => (this.modalRef = el), onOpened: () => {
|
|
238
237
|
if (this.pickerRef) {
|
|
239
238
|
this.pickerRef.modalIsOpen = true;
|
|
240
239
|
}
|
|
@@ -242,7 +241,7 @@ export class InclusiveTimes {
|
|
|
242
241
|
if (this.pickerRef) {
|
|
243
242
|
this.pickerRef.modalIsOpen = false;
|
|
244
243
|
}
|
|
245
|
-
}, inline: this.inline, appendTo: this.appendTo }, h("div", { key: '
|
|
244
|
+
}, inline: this.inline, appendTo: this.appendTo }, h("div", { key: 'fbce75861b31c85a58055eb4dc1c3f9ad0d0be73', class: this.getClassName("picker-container") }, h("tabworthy-dates-calendar", { key: '265ab52d552985fddd4c6944fb2405baadae1450', range: this.range, locale: this.locale, onSelectDate: (event) => this.handlePickerSelection(event.detail), onChangeMonth: (event) => this.handleChangedMonths(event.detail), onChangeYear: (event) => this.handleYearChange(event.detail), labels: this.datesCalendarLabels, ref: (el) => (this.pickerRef = el), startDate: this.startDate, firstDayOfWeek: this.firstDayOfWeek, showHiddenTitle: true, disabled: this.disabledState, showMonthStepper: this.showMonthStepper, showYearStepper: this.showYearStepper, showClearButton: this.showClearButton, showTodayButton: this.showTodayButton, disableDate: this.disableDate, minDate: this.minDate, maxDate: this.maxDate, inline: this.inline, value: this.value ? this.toDate(this.value) : undefined }, h("div", { key: 'f7377b3ff5a818849afcab7297a6f3d732dd4b82', slot: "after-calendar", class: this.getClassName("time-section") }, h("hr", { key: 'd71bc64c57fc8073e4af045347f9be69e20bac9f', class: this.getClassName("divider") }), h("tabworthy-times-picker", { key: '2ee95db049c3a81b26fa38b9bb4288f0850dc25f', hours: this.selectedHours, minutes: this.selectedMinutes, useTwelveHourFormat: this.useTwelveHourFormat, disabled: this.disabledState, onTimeChanged: this.handleTimeChange, labels: this.timesPickerLabels }))))), this.errorState && (h("div", { key: '0b0f79267ba191582d5e23be27970b16db80aab7', class: this.getClassName("input-error"), id: this.id ? `${this.id}-error` : undefined, role: "status" }, this.errorMessage))));
|
|
246
245
|
}
|
|
247
246
|
static get is() { return "tabworthy-times"; }
|
|
248
247
|
static get encapsulation() { return "scoped"; }
|
|
@@ -532,6 +531,30 @@ export class InclusiveTimes {
|
|
|
532
531
|
"getter": false,
|
|
533
532
|
"setter": false
|
|
534
533
|
},
|
|
534
|
+
"timesPickerLabels": {
|
|
535
|
+
"type": "unknown",
|
|
536
|
+
"mutable": false,
|
|
537
|
+
"complexType": {
|
|
538
|
+
"original": "TimesPickerLabels",
|
|
539
|
+
"resolved": "TimesPickerLabels",
|
|
540
|
+
"references": {
|
|
541
|
+
"TimesPickerLabels": {
|
|
542
|
+
"location": "import",
|
|
543
|
+
"path": "../tabworthy-times-picker/tabworthy-times-picker",
|
|
544
|
+
"id": "src/components/tabworthy-times-picker/tabworthy-times-picker.tsx::TimesPickerLabels",
|
|
545
|
+
"referenceLocation": "TimesPickerLabels"
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
"required": false,
|
|
550
|
+
"optional": true,
|
|
551
|
+
"docs": {
|
|
552
|
+
"tags": [],
|
|
553
|
+
"text": ""
|
|
554
|
+
},
|
|
555
|
+
"getter": false,
|
|
556
|
+
"setter": false
|
|
557
|
+
},
|
|
535
558
|
"inline": {
|
|
536
559
|
"type": "boolean",
|
|
537
560
|
"mutable": false,
|
|
@@ -10,7 +10,7 @@ const defaultLabels = {
|
|
|
10
10
|
incrementMinutes: "Increment minutes",
|
|
11
11
|
decrementMinutes: "Decrement minutes"
|
|
12
12
|
};
|
|
13
|
-
export class
|
|
13
|
+
export class TabworthyTimesPicker {
|
|
14
14
|
constructor() {
|
|
15
15
|
// Current time value (24-hour format)
|
|
16
16
|
this.hours = 12;
|
|
@@ -150,16 +150,16 @@ export class InclusiveTimesPicker {
|
|
|
150
150
|
const displayHours = this.getDisplayHours();
|
|
151
151
|
const maxHours = this.useTwelveHourFormat ? 12 : 23;
|
|
152
152
|
const minHours = this.useTwelveHourFormat ? 1 : 0;
|
|
153
|
-
return (h(Host, { key: '
|
|
153
|
+
return (h(Host, { key: '5c9fbbe95d08e086bf78761da0375526f5042d15', class: this.elementClassName, "aria-label": this.labels.timePicker }, h("div", { key: 'f914ccebcf2025226762b1446944be41b555b5ea', class: `${this.elementClassName}__container` }, h("div", { key: 'a17ed2def130bbe92a17dd733f1b516d68ae98f3', class: `${this.elementClassName}__field` }, h("label", { key: '513ca90795cca3c209df22def8fae8dd377d74ef', htmlFor: `${this.elementClassName}-hours`, class: {
|
|
154
154
|
[`${this.elementClassName}__label`]: true,
|
|
155
155
|
[`${this.elementClassName}__label--sr-only`]: this.labelsSrOnly
|
|
156
|
-
} }, this.labels.hours), h("div", { key: '
|
|
156
|
+
} }, this.labels.hours), h("div", { key: '3f7448b3161d594e3d601700e1a703a3f2857ffe', class: `${this.elementClassName}__control` }, h("button", { key: '19f8cf8fdfc931e0baa10b98864589990d628b7f', type: "button", class: `${this.elementClassName}__button ${this.elementClassName}__button--increment`, onClick: this.handleHourIncrement, disabled: this.disabled, "aria-label": this.labels.incrementHours }, h("svg", { key: 'fb12854d35131adad4250bf24e25936ad583f74f', fill: "none", height: "16", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "16" }, h("polyline", { key: '8176d2b9d15e81ef7c700064cadd2b83b8572593', points: "18 15 12 9 6 15" }))), h("input", { key: '66986ad937685f83bf1bc999c4aabf5f2ed9d3d9', id: `${this.elementClassName}-hours`, type: "number", class: `${this.elementClassName}__input`, value: this.padZero(displayHours), min: minHours, max: maxHours, onInput: this.handleHourChange, disabled: this.disabled, "aria-label": this.labels.hours }), h("button", { key: 'd225e66235e04132bf461bb6e73377a823db1b9f', type: "button", class: `${this.elementClassName}__button ${this.elementClassName}__button--decrement`, onClick: this.handleHourDecrement, disabled: this.disabled, "aria-label": this.labels.decrementHours }, h("svg", { key: '387c4d7ddb7097da7032345db6c09db5e0ea0d0b', fill: "none", height: "16", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "16" }, h("polyline", { key: '4c307b1ecb096d3c4d42ed7c79b0c8cde004842a', points: "6 9 12 15 18 9" }))))), h("div", { key: '9c8101ae559b74d985286688e3147aacc80ab448', class: `${this.elementClassName}__separator` }, ":"), h("div", { key: '8a49a068478e1fda98634e1d74bb399b5ae1a5f4', class: `${this.elementClassName}__field` }, h("label", { key: '3c585236e76192d10f013aff1a765f9b31e9bce6', htmlFor: `${this.elementClassName}-minutes`, class: {
|
|
157
157
|
[`${this.elementClassName}__label`]: true,
|
|
158
158
|
[`${this.elementClassName}__label--sr-only`]: this.labelsSrOnly
|
|
159
|
-
} }, this.labels.minutes), h("div", { key: '
|
|
159
|
+
} }, this.labels.minutes), h("div", { key: '8d567d355ae2f34c51c057c81ea0921a8de6f012', class: `${this.elementClassName}__control` }, h("button", { key: 'a061d7d4b66b787d4478d54bc36525e5d9bf7e61', type: "button", class: `${this.elementClassName}__button ${this.elementClassName}__button--increment`, onClick: this.handleMinuteIncrement, disabled: this.disabled, "aria-label": this.labels.incrementMinutes }, h("svg", { key: '148244241427e2bca0f6fc7147f9ca5a329c4480', fill: "none", height: "16", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "16" }, h("polyline", { key: 'd10fa3e7a7815b8806d583041aeae70b4de0e267', points: "18 15 12 9 6 15" }))), h("input", { key: 'db14c0a90805afede369a9e0878191537e9eef9f', id: `${this.elementClassName}-minutes`, type: "number", class: `${this.elementClassName}__input`, value: this.padZero(this.internalMinutes), min: 0, max: 59, onInput: this.handleMinuteChange, disabled: this.disabled, "aria-label": this.labels.minutes }), h("button", { key: '1820f55ac22cd78494a40fa7b5f2e1c1ea191a18', type: "button", class: `${this.elementClassName}__button ${this.elementClassName}__button--decrement`, onClick: this.handleMinuteDecrement, disabled: this.disabled, "aria-label": this.labels.decrementMinutes }, h("svg", { key: '9135d7673f58babaf44b0c33ad1755b3097aea01', fill: "none", height: "16", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "16" }, h("polyline", { key: 'f36192868f379fc2abe3b2deade678eeab725ee1', points: "6 9 12 15 18 9" }))))), this.useTwelveHourFormat && (h("div", { key: '6bf685eaed72c157b8c01c40e8b84bace096d417', class: `${this.elementClassName}__period` }, h("button", { key: '107a2a21de03626e15b35cd850f5ee8a2eb09f8e', type: "button", class: {
|
|
160
160
|
[`${this.elementClassName}__period-button`]: true,
|
|
161
161
|
[`${this.elementClassName}__period-button--active`]: this.period === "AM"
|
|
162
|
-
}, onClick: () => this.handlePeriodChange("AM"), disabled: this.disabled, "aria-label": this.labels.am, "aria-pressed": this.period === "AM" }, this.labels.am), h("button", { key: '
|
|
162
|
+
}, onClick: () => this.handlePeriodChange("AM"), disabled: this.disabled, "aria-label": this.labels.am, "aria-pressed": this.period === "AM" }, this.labels.am), h("button", { key: '62ad24e781b8da40699e4f91acbc20eeef1c2f65', type: "button", class: {
|
|
163
163
|
[`${this.elementClassName}__period-button`]: true,
|
|
164
164
|
[`${this.elementClassName}__period-button--active`]: this.period === "PM"
|
|
165
165
|
}, onClick: () => this.handlePeriodChange("PM"), disabled: this.disabled, "aria-label": this.labels.pm, "aria-pressed": this.period === "PM" }, this.labels.pm))))));
|
|
@@ -232,13 +232,13 @@ export class InclusiveTimesPicker {
|
|
|
232
232
|
"type": "unknown",
|
|
233
233
|
"mutable": false,
|
|
234
234
|
"complexType": {
|
|
235
|
-
"original": "
|
|
236
|
-
"resolved": "
|
|
235
|
+
"original": "TimesPickerLabels",
|
|
236
|
+
"resolved": "TimesPickerLabels",
|
|
237
237
|
"references": {
|
|
238
|
-
"
|
|
238
|
+
"TimesPickerLabels": {
|
|
239
239
|
"location": "local",
|
|
240
240
|
"path": "/Users/damirbogdanov_1/work/tabworthy-components/src/components/tabworthy-times-picker/tabworthy-times-picker.tsx",
|
|
241
|
-
"id": "src/components/tabworthy-times-picker/tabworthy-times-picker.tsx::
|
|
241
|
+
"id": "src/components/tabworthy-times-picker/tabworthy-times-picker.tsx::TimesPickerLabels"
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,c as s,h as i,d as h,t as a}from"./p-BiJ0HZVY.js";const n={hours:"Hours",minutes:"Minutes",am:"AM",pm:"PM",timePicker:"Time picker",incrementHours:"Increment hours",decrementHours:"Decrement hours",incrementMinutes:"Increment minutes",decrementMinutes:"Decrement minutes"},
|
|
1
|
+
import{p as t,H as e,c as s,h as i,d as h,t as a}from"./p-BiJ0HZVY.js";const n={hours:"Hours",minutes:"Minutes",am:"AM",pm:"PM",timePicker:"Time picker",incrementHours:"Increment hours",decrementHours:"Decrement hours",incrementMinutes:"Increment minutes",decrementMinutes:"Decrement minutes"},o=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.timeChanged=s(this,"timeChanged",7),this.hours=12,this.minutes=0,this.useTwelveHourFormat=!1,this.labels=n,this.labelsSrOnly=!0,this.disabled=!1,this.elementClassName="tabworthy-times-picker",this.internalHours=this.hours,this.internalMinutes=this.minutes,this.period=this.hours>=12?"PM":"AM",this.handleHourChange=t=>{const e=parseInt(t.target.value,10);this.internalHours=this.useTwelveHourFormat?"AM"===this.period?12===e?0:e:12===e?12:e+12:e,this.emitTimeChange()},this.handleMinuteChange=t=>{this.internalMinutes=parseInt(t.target.value,10),this.emitTimeChange()},this.handlePeriodChange=t=>{if(this.period===t||!this.useTwelveHourFormat)return;this.period=t;const e=this.getDisplayHours();this.internalHours="AM"===t?12===e?0:e:12===e?12:e+12,this.emitTimeChange()},this.handleHourIncrement=()=>{if(this.useTwelveHourFormat){const t=this.getDisplayHours(),e=12===t?1:t+1;this.internalHours="AM"===this.period?12===e?0:e:12===e?12:e+12}else this.internalHours=(this.internalHours+1)%24;this.emitTimeChange()},this.handleHourDecrement=()=>{if(this.useTwelveHourFormat){const t=this.getDisplayHours(),e=1===t?12:t-1;this.internalHours="AM"===this.period?12===e?0:e:12===e?12:e+12}else this.internalHours=0===this.internalHours?23:this.internalHours-1;this.emitTimeChange()},this.handleMinuteIncrement=()=>{this.internalMinutes=(this.internalMinutes+1)%60,this.emitTimeChange()},this.handleMinuteDecrement=()=>{this.internalMinutes=0===this.internalMinutes?59:this.internalMinutes-1,this.emitTimeChange()}}watchHours(t){this.internalHours=t,this.period=t>=12?"PM":"AM"}watchMinutes(t){this.internalMinutes=t}componentWillLoad(){this.internalHours=this.hours,this.internalMinutes=this.minutes,this.period=this.hours>=12?"PM":"AM"}getDisplayHours(){return this.useTwelveHourFormat?0===this.internalHours?12:this.internalHours>12?this.internalHours-12:this.internalHours:this.internalHours}get24HourValue(){if(!this.useTwelveHourFormat)return this.internalHours;const t=this.getDisplayHours();return"AM"===this.period?12===t?0:t:12===t?12:t+12}emitTimeChange(){this.timeChanged.emit({hours:this.get24HourValue(),minutes:this.internalMinutes,period:this.useTwelveHourFormat?this.period:void 0})}padZero(t){return t.toString().padStart(2,"0")}render(){const t=this.getDisplayHours(),e=this.useTwelveHourFormat?12:23,s=this.useTwelveHourFormat?1:0;return i(h,{key:"5c9fbbe95d08e086bf78761da0375526f5042d15",class:this.elementClassName,"aria-label":this.labels.timePicker},i("div",{key:"f914ccebcf2025226762b1446944be41b555b5ea",class:`${this.elementClassName}__container`},i("div",{key:"a17ed2def130bbe92a17dd733f1b516d68ae98f3",class:`${this.elementClassName}__field`},i("label",{key:"513ca90795cca3c209df22def8fae8dd377d74ef",htmlFor:`${this.elementClassName}-hours`,class:{[`${this.elementClassName}__label`]:!0,[`${this.elementClassName}__label--sr-only`]:this.labelsSrOnly}},this.labels.hours),i("div",{key:"3f7448b3161d594e3d601700e1a703a3f2857ffe",class:`${this.elementClassName}__control`},i("button",{key:"19f8cf8fdfc931e0baa10b98864589990d628b7f",type:"button",class:`${this.elementClassName}__button ${this.elementClassName}__button--increment`,onClick:this.handleHourIncrement,disabled:this.disabled,"aria-label":this.labels.incrementHours},i("svg",{key:"fb12854d35131adad4250bf24e25936ad583f74f",fill:"none",height:"16","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24",width:"16"},i("polyline",{key:"8176d2b9d15e81ef7c700064cadd2b83b8572593",points:"18 15 12 9 6 15"}))),i("input",{key:"66986ad937685f83bf1bc999c4aabf5f2ed9d3d9",id:`${this.elementClassName}-hours`,type:"number",class:`${this.elementClassName}__input`,value:this.padZero(t),min:s,max:e,onInput:this.handleHourChange,disabled:this.disabled,"aria-label":this.labels.hours}),i("button",{key:"d225e66235e04132bf461bb6e73377a823db1b9f",type:"button",class:`${this.elementClassName}__button ${this.elementClassName}__button--decrement`,onClick:this.handleHourDecrement,disabled:this.disabled,"aria-label":this.labels.decrementHours},i("svg",{key:"387c4d7ddb7097da7032345db6c09db5e0ea0d0b",fill:"none",height:"16","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24",width:"16"},i("polyline",{key:"4c307b1ecb096d3c4d42ed7c79b0c8cde004842a",points:"6 9 12 15 18 9"}))))),i("div",{key:"9c8101ae559b74d985286688e3147aacc80ab448",class:`${this.elementClassName}__separator`},":"),i("div",{key:"8a49a068478e1fda98634e1d74bb399b5ae1a5f4",class:`${this.elementClassName}__field`},i("label",{key:"3c585236e76192d10f013aff1a765f9b31e9bce6",htmlFor:`${this.elementClassName}-minutes`,class:{[`${this.elementClassName}__label`]:!0,[`${this.elementClassName}__label--sr-only`]:this.labelsSrOnly}},this.labels.minutes),i("div",{key:"8d567d355ae2f34c51c057c81ea0921a8de6f012",class:`${this.elementClassName}__control`},i("button",{key:"a061d7d4b66b787d4478d54bc36525e5d9bf7e61",type:"button",class:`${this.elementClassName}__button ${this.elementClassName}__button--increment`,onClick:this.handleMinuteIncrement,disabled:this.disabled,"aria-label":this.labels.incrementMinutes},i("svg",{key:"148244241427e2bca0f6fc7147f9ca5a329c4480",fill:"none",height:"16","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24",width:"16"},i("polyline",{key:"d10fa3e7a7815b8806d583041aeae70b4de0e267",points:"18 15 12 9 6 15"}))),i("input",{key:"db14c0a90805afede369a9e0878191537e9eef9f",id:`${this.elementClassName}-minutes`,type:"number",class:`${this.elementClassName}__input`,value:this.padZero(this.internalMinutes),min:0,max:59,onInput:this.handleMinuteChange,disabled:this.disabled,"aria-label":this.labels.minutes}),i("button",{key:"1820f55ac22cd78494a40fa7b5f2e1c1ea191a18",type:"button",class:`${this.elementClassName}__button ${this.elementClassName}__button--decrement`,onClick:this.handleMinuteDecrement,disabled:this.disabled,"aria-label":this.labels.decrementMinutes},i("svg",{key:"9135d7673f58babaf44b0c33ad1755b3097aea01",fill:"none",height:"16","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24",width:"16"},i("polyline",{key:"f36192868f379fc2abe3b2deade678eeab725ee1",points:"6 9 12 15 18 9"}))))),this.useTwelveHourFormat&&i("div",{key:"6bf685eaed72c157b8c01c40e8b84bace096d417",class:`${this.elementClassName}__period`},i("button",{key:"107a2a21de03626e15b35cd850f5ee8a2eb09f8e",type:"button",class:{[`${this.elementClassName}__period-button`]:!0,[`${this.elementClassName}__period-button--active`]:"AM"===this.period},onClick:()=>this.handlePeriodChange("AM"),disabled:this.disabled,"aria-label":this.labels.am,"aria-pressed":"AM"===this.period},this.labels.am),i("button",{key:"62ad24e781b8da40699e4f91acbc20eeef1c2f65",type:"button",class:{[`${this.elementClassName}__period-button`]:!0,[`${this.elementClassName}__period-button--active`]:"PM"===this.period},onClick:()=>this.handlePeriodChange("PM"),disabled:this.disabled,"aria-label":this.labels.pm,"aria-pressed":"PM"===this.period},this.labels.pm))))}get el(){return this}static get watchers(){return{hours:[{watchHours:0}],minutes:[{watchMinutes:0}]}}},[2,"tabworthy-times-picker",{hours:[1026],minutes:[1026],useTwelveHourFormat:[4,"use-twelve-hour-format"],labels:[16],labelsSrOnly:[4,"labels-sr-only"],disabled:[4],elementClassName:[1,"element-class-name"],internalHours:[32],internalMinutes:[32],period:[32]},void 0,{hours:[{watchHours:0}],minutes:[{watchMinutes:0}]}]);function r(){"undefined"!=typeof customElements&&["tabworthy-times-picker"].forEach((t=>{"tabworthy-times-picker"===t&&(customElements.get(a(t))||customElements.define(a(t),o))}))}export{o as T,r as d}
|