@tabworthy/components 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +69 -0
  3. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  4. package/dist/cjs/index-C15oswCE.js +2148 -0
  5. package/dist/cjs/index.cjs.js +2 -0
  6. package/dist/cjs/loader.cjs.js +13 -0
  7. package/dist/cjs/moment-CdViwxPQ.js +5681 -0
  8. package/dist/cjs/tabworthy-components.cjs.js +25 -0
  9. package/dist/cjs/tabworthy-dates-calendar_2.cjs.entry.js +884 -0
  10. package/dist/cjs/tabworthy-dates.cjs.entry.js +10906 -0
  11. package/dist/cjs/tabworthy-times-picker.cjs.entry.js +181 -0
  12. package/dist/cjs/tabworthy-times.cjs.entry.js +242 -0
  13. package/dist/cjs/utils-y5Vtky2t.js +214 -0
  14. package/dist/collection/collection-manifest.json +16 -0
  15. package/dist/collection/components/tabworthy-dates/tabworthy-dates.css +10 -0
  16. package/dist/collection/components/tabworthy-dates/tabworthy-dates.js +1197 -0
  17. package/dist/collection/components/tabworthy-dates-calendar/tabworthy-dates-calendar.css +10 -0
  18. package/dist/collection/components/tabworthy-dates-calendar/tabworthy-dates-calendar.js +986 -0
  19. package/dist/collection/components/tabworthy-modal/tabworthy-dates-modal.css +14 -0
  20. package/dist/collection/components/tabworthy-modal/tabworthy-dates-modal.js +237 -0
  21. package/dist/collection/components/tabworthy-times/tabworthy-times.js +832 -0
  22. package/dist/collection/components/tabworthy-times-picker/tabworthy-times-picker.js +356 -0
  23. package/dist/collection/index.js +1 -0
  24. package/dist/components/index.d.ts +35 -0
  25. package/dist/components/index.js +1 -0
  26. package/dist/components/moment.js +8 -0
  27. package/dist/components/tabworthy-dates-calendar.d.ts +11 -0
  28. package/dist/components/tabworthy-dates-calendar.js +1 -0
  29. package/dist/components/tabworthy-dates-calendar2.js +1 -0
  30. package/dist/components/tabworthy-dates-modal.d.ts +11 -0
  31. package/dist/components/tabworthy-dates-modal.js +1 -0
  32. package/dist/components/tabworthy-dates-modal2.js +1 -0
  33. package/dist/components/tabworthy-dates.d.ts +11 -0
  34. package/dist/components/tabworthy-dates.js +1 -0
  35. package/dist/components/tabworthy-times-picker.d.ts +11 -0
  36. package/dist/components/tabworthy-times-picker.js +1 -0
  37. package/dist/components/tabworthy-times-picker2.js +1 -0
  38. package/dist/components/tabworthy-times.d.ts +11 -0
  39. package/dist/components/tabworthy-times.js +1 -0
  40. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  41. package/dist/esm/index-BusoZVTR.js +2139 -0
  42. package/dist/esm/index.js +1 -0
  43. package/dist/esm/loader.js +11 -0
  44. package/dist/esm/moment-Mki5YqAR.js +5679 -0
  45. package/dist/esm/tabworthy-components.js +21 -0
  46. package/dist/esm/tabworthy-dates-calendar_2.entry.js +881 -0
  47. package/dist/esm/tabworthy-dates.entry.js +10904 -0
  48. package/dist/esm/tabworthy-times-picker.entry.js +179 -0
  49. package/dist/esm/tabworthy-times.entry.js +240 -0
  50. package/dist/esm/utils-BVHu5CWV.js +188 -0
  51. package/dist/index.cjs.js +1 -0
  52. package/dist/index.js +1 -0
  53. package/dist/loader/cdn.js +1 -0
  54. package/dist/loader/index.cjs.js +1 -0
  55. package/dist/loader/index.d.ts +24 -0
  56. package/dist/loader/index.es2017.js +1 -0
  57. package/dist/loader/index.js +2 -0
  58. package/dist/shared/utils/chrono-parser/chrono-parser.js +146 -0
  59. package/dist/shared/utils/chrono-parser/chrono-parser.type.js +1 -0
  60. package/dist/shared/utils/utils.js +186 -0
  61. package/dist/tabworthy-components/index.esm.js +0 -0
  62. package/dist/tabworthy-components/p-170bc6ca.entry.js +1 -0
  63. package/dist/tabworthy-components/p-3ce9a767.entry.js +1 -0
  64. package/dist/tabworthy-components/p-77bd1bd4.entry.js +1 -0
  65. package/dist/tabworthy-components/p-BVHu5CWV.js +1 -0
  66. package/dist/tabworthy-components/p-BusoZVTR.js +2 -0
  67. package/dist/tabworthy-components/p-DQuL1Twl.js +1 -0
  68. package/dist/tabworthy-components/p-Mki5YqAR.js +8 -0
  69. package/dist/tabworthy-components/p-ebbb4c46.entry.js +1 -0
  70. package/dist/tabworthy-components/tabworthy-components.esm.js +1 -0
  71. package/dist/themes/dark.css +1 -0
  72. package/dist/themes/light.css +1 -0
  73. package/dist/types/Users/damirbogdanov_1/work/tabworthy-components/.stencil/shared/utils/chrono-parser/chrono-parser.d.ts +3 -0
  74. package/dist/types/Users/damirbogdanov_1/work/tabworthy-components/.stencil/shared/utils/chrono-parser/chrono-parser.type.d.ts +40 -0
  75. package/dist/types/Users/damirbogdanov_1/work/tabworthy-components/.stencil/shared/utils/utils.d.ts +28 -0
  76. package/dist/types/components/tabworthy-dates/tabworthy-dates.d.ts +80 -0
  77. package/dist/types/components/tabworthy-dates-calendar/tabworthy-dates-calendar.d.ts +89 -0
  78. package/dist/types/components/tabworthy-modal/tabworthy-dates-modal.d.ts +29 -0
  79. package/dist/types/components/tabworthy-times/tabworthy-times.d.ts +65 -0
  80. package/dist/types/components/tabworthy-times-picker/tabworthy-times-picker.d.ts +46 -0
  81. package/dist/types/components.d.ts +879 -0
  82. package/dist/types/index.d.ts +1 -0
  83. package/dist/types/stencil-public-runtime.d.ts +1858 -0
  84. package/package.json +132 -0
@@ -0,0 +1,879 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { DatesLabels } from "./components/tabworthy-dates/tabworthy-dates";
9
+ import { DatesCalendarLabels, YearChangedEventDetails } from "./components/tabworthy-dates-calendar/tabworthy-dates-calendar";
10
+ import { ChronoOptions, ChronoParsedDateString } from "../shared/utils/chrono-parser/chrono-parser.type";
11
+ import { DatesCalendarLabels as DatesCalendarLabels1, MonthChangedEventDetails, YearChangedEventDetails as YearChangedEventDetails1 } from "./components/tabworthy-dates-calendar/tabworthy-dates-calendar";
12
+ import { TimesLabels } from "./components/tabworthy-times/tabworthy-times";
13
+ import { InclusivekTimesPickerLabels, TimeValue } from "./components/tabworthy-times-picker/tabworthy-times-picker";
14
+ export { DatesLabels } from "./components/tabworthy-dates/tabworthy-dates";
15
+ export { DatesCalendarLabels, YearChangedEventDetails } from "./components/tabworthy-dates-calendar/tabworthy-dates-calendar";
16
+ export { ChronoOptions, ChronoParsedDateString } from "../shared/utils/chrono-parser/chrono-parser.type";
17
+ export { DatesCalendarLabels as DatesCalendarLabels1, MonthChangedEventDetails, YearChangedEventDetails as YearChangedEventDetails1 } from "./components/tabworthy-dates-calendar/tabworthy-dates-calendar";
18
+ export { TimesLabels } from "./components/tabworthy-times/tabworthy-times";
19
+ export { InclusivekTimesPickerLabels, TimeValue } from "./components/tabworthy-times-picker/tabworthy-times-picker";
20
+ export namespace Components {
21
+ interface TabworthyDates {
22
+ "calendarButtonContent"?: string;
23
+ "datesCalendarLabels"?: DatesCalendarLabels;
24
+ /**
25
+ * @default defaultLabels
26
+ */
27
+ "datesLabels": DatesLabels;
28
+ /**
29
+ * @default () => false
30
+ */
31
+ "disableDate": HTMLTabworthyDatesCalendarElement["disableDate"];
32
+ /**
33
+ * @default false
34
+ */
35
+ "disabled": boolean;
36
+ /**
37
+ * @default "tabworthy-dates"
38
+ */
39
+ "elementClassName"?: string;
40
+ /**
41
+ * @default 1
42
+ */
43
+ "firstDayOfWeek"?: number;
44
+ /**
45
+ * @default "YYYY-MM-DD"
46
+ */
47
+ "format": string;
48
+ /**
49
+ * @default true
50
+ */
51
+ "formatInputOnAccept"?: boolean;
52
+ /**
53
+ * @default false
54
+ */
55
+ "hasError": boolean;
56
+ "id": string;
57
+ /**
58
+ * @default false
59
+ */
60
+ "inline": boolean;
61
+ /**
62
+ * @default this.range ? "Choose a date range (any way you like)" : "Choose a date (any way you like)"
63
+ */
64
+ "label": string;
65
+ /**
66
+ * @default navigator?.language || "en-US"
67
+ */
68
+ "locale": string;
69
+ "maxDate"?: string;
70
+ "minDate"?: string;
71
+ "nextMonthButtonContent"?: string;
72
+ "nextYearButtonContent"?: string;
73
+ "parseDate": (text: string, shouldSetValue?: boolean, chronoOptions?: ChronoOptions | undefined) => Promise<ChronoParsedDateString>;
74
+ /**
75
+ * @default this.range ? `Try "June 8 to 12"` : `Try "tomorrrow" or "in ten days"`
76
+ */
77
+ "placeholder": string;
78
+ /**
79
+ * @default this.range ? ["Monday to Wednesday", "July 5 to 10"] : ["Yesterday", "Today", "Tomorrow", "In 10 days"]
80
+ */
81
+ "quickButtons": string[];
82
+ /**
83
+ * @default false
84
+ */
85
+ "range"?: boolean;
86
+ /**
87
+ * @default getISODateString(new Date())
88
+ */
89
+ "referenceDate": string;
90
+ /**
91
+ * @default true
92
+ */
93
+ "showClearButton": boolean;
94
+ /**
95
+ * @default false
96
+ */
97
+ "showKeyboardHint": boolean;
98
+ /**
99
+ * @default true
100
+ */
101
+ "showMonthStepper": boolean;
102
+ /**
103
+ * @default true
104
+ */
105
+ "showQuickButtons": boolean;
106
+ /**
107
+ * @default true
108
+ */
109
+ "showTodayButton": boolean;
110
+ /**
111
+ * @default false
112
+ */
113
+ "showYearStepper": boolean;
114
+ /**
115
+ * @default getISODateString(new Date())
116
+ */
117
+ "startDate": string;
118
+ "todayButtonContent"?: string;
119
+ /**
120
+ * @default false
121
+ */
122
+ "useStrictDateParsing": boolean;
123
+ "value"?: string | string[];
124
+ }
125
+ interface TabworthyDatesCalendar {
126
+ "clearButtonContent"?: string;
127
+ /**
128
+ * @default () => false
129
+ */
130
+ "disableDate": (date: Date) => boolean;
131
+ /**
132
+ * @default false
133
+ */
134
+ "disabled": boolean;
135
+ /**
136
+ * @default "tabworthy-dates-calendar"
137
+ */
138
+ "elementClassName": string;
139
+ /**
140
+ * @default 0
141
+ */
142
+ "firstDayOfWeek": number;
143
+ /**
144
+ * @default false
145
+ */
146
+ "inline": boolean;
147
+ /**
148
+ * @default defaultLabels
149
+ */
150
+ "labels": DatesCalendarLabels1;
151
+ /**
152
+ * @default navigator?.language || "en-US"
153
+ */
154
+ "locale"?: string;
155
+ "maxDate"?: string;
156
+ "minDate"?: string;
157
+ /**
158
+ * @default false
159
+ */
160
+ "modalIsOpen"?: boolean;
161
+ "nextMonthButtonContent"?: string;
162
+ "nextYearButtonContent"?: string;
163
+ "previousMonthButtonContent"?: string;
164
+ "previousYearButtonContent"?: string;
165
+ /**
166
+ * @default false
167
+ */
168
+ "range"?: boolean;
169
+ /**
170
+ * @default false
171
+ */
172
+ "showClearButton"?: boolean;
173
+ /**
174
+ * @default true
175
+ */
176
+ "showHiddenTitle"?: boolean;
177
+ /**
178
+ * @default false
179
+ */
180
+ "showKeyboardHint"?: boolean;
181
+ /**
182
+ * @default true
183
+ */
184
+ "showMonthStepper"?: boolean;
185
+ /**
186
+ * @default true
187
+ */
188
+ "showTodayButton"?: boolean;
189
+ /**
190
+ * @default false
191
+ */
192
+ "showYearStepper"?: boolean;
193
+ /**
194
+ * @default getISODateString(new Date())
195
+ */
196
+ "startDate"?: string;
197
+ "todayButtonContent"?: string;
198
+ "value"?: Date | Date[] | null;
199
+ }
200
+ interface TabworthyDatesModal {
201
+ /**
202
+ * Close the dialog.
203
+ */
204
+ "close": () => Promise<void>;
205
+ "getState": () => Promise<boolean>;
206
+ /**
207
+ * @default false
208
+ */
209
+ "inline"?: boolean;
210
+ "label": string;
211
+ /**
212
+ * Open the dialog.
213
+ */
214
+ "open": () => Promise<void>;
215
+ "setTriggerElement": (element: HTMLElement) => Promise<void>;
216
+ }
217
+ interface TabworthyTimes {
218
+ "calendarButtonContent"?: string;
219
+ "clearValue": () => Promise<void>;
220
+ "datesCalendarLabels"?: DatesCalendarLabels;
221
+ /**
222
+ * @default () => false
223
+ */
224
+ "disableDate": (date: Date) => boolean;
225
+ /**
226
+ * @default false
227
+ */
228
+ "disabled": boolean;
229
+ /**
230
+ * @default "tabworthy-times"
231
+ */
232
+ "elementClassName"?: string;
233
+ /**
234
+ * @default 1
235
+ */
236
+ "firstDayOfWeek"?: number;
237
+ /**
238
+ * @default "YYYY-MM-DDTHH:mm:ss"
239
+ */
240
+ "format": string;
241
+ /**
242
+ * @default false
243
+ */
244
+ "hasError": boolean;
245
+ "id": string;
246
+ /**
247
+ * @default false
248
+ */
249
+ "inline": boolean;
250
+ /**
251
+ * @default "Choose a date and time"
252
+ */
253
+ "label": string;
254
+ /**
255
+ * @default navigator?.language || "en-US"
256
+ */
257
+ "locale": string;
258
+ "maxDate"?: string;
259
+ "minDate"?: string;
260
+ /**
261
+ * @default ""
262
+ */
263
+ "placeholder": string;
264
+ /**
265
+ * @default false
266
+ */
267
+ "range"?: boolean;
268
+ /**
269
+ * @default getISODateString(new Date())
270
+ */
271
+ "referenceDate": string;
272
+ /**
273
+ * @default true
274
+ */
275
+ "showClearButton": boolean;
276
+ /**
277
+ * @default true
278
+ */
279
+ "showMonthStepper": boolean;
280
+ /**
281
+ * @default true
282
+ */
283
+ "showTodayButton": boolean;
284
+ /**
285
+ * @default false
286
+ */
287
+ "showYearStepper": boolean;
288
+ /**
289
+ * @default getISODateString(new Date())
290
+ */
291
+ "startDate": string;
292
+ /**
293
+ * @default defaultLabels
294
+ */
295
+ "timesLabels": TimesLabels;
296
+ /**
297
+ * @default true
298
+ */
299
+ "use12HourFormat": boolean;
300
+ "value"?: string | string[];
301
+ }
302
+ interface TabworthyTimesPicker {
303
+ /**
304
+ * @default false
305
+ */
306
+ "disabled": boolean;
307
+ /**
308
+ * @default "tabworthy-times-picker"
309
+ */
310
+ "elementClassName": string;
311
+ /**
312
+ * @default 12
313
+ */
314
+ "hours": number;
315
+ /**
316
+ * @default defaultLabels
317
+ */
318
+ "labels": InclusivekTimesPickerLabels;
319
+ /**
320
+ * @default true
321
+ */
322
+ "labelsSrOnly": boolean;
323
+ /**
324
+ * @default 0
325
+ */
326
+ "minutes": number;
327
+ /**
328
+ * @default false
329
+ */
330
+ "use12HourFormat": boolean;
331
+ }
332
+ }
333
+ export interface TabworthyDatesCustomEvent<T> extends CustomEvent<T> {
334
+ detail: T;
335
+ target: HTMLTabworthyDatesElement;
336
+ }
337
+ export interface TabworthyDatesCalendarCustomEvent<T> extends CustomEvent<T> {
338
+ detail: T;
339
+ target: HTMLTabworthyDatesCalendarElement;
340
+ }
341
+ export interface TabworthyDatesModalCustomEvent<T> extends CustomEvent<T> {
342
+ detail: T;
343
+ target: HTMLTabworthyDatesModalElement;
344
+ }
345
+ export interface TabworthyTimesCustomEvent<T> extends CustomEvent<T> {
346
+ detail: T;
347
+ target: HTMLTabworthyTimesElement;
348
+ }
349
+ export interface TabworthyTimesPickerCustomEvent<T> extends CustomEvent<T> {
350
+ detail: T;
351
+ target: HTMLTabworthyTimesPickerElement;
352
+ }
353
+ declare global {
354
+ interface HTMLTabworthyDatesElementEventMap {
355
+ "selectDate": string | string[] | undefined;
356
+ "changeYear": YearChangedEventDetails;
357
+ "componentReady": void;
358
+ }
359
+ interface HTMLTabworthyDatesElement extends Components.TabworthyDates, HTMLStencilElement {
360
+ addEventListener<K extends keyof HTMLTabworthyDatesElementEventMap>(type: K, listener: (this: HTMLTabworthyDatesElement, ev: TabworthyDatesCustomEvent<HTMLTabworthyDatesElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
361
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
362
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
363
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
364
+ removeEventListener<K extends keyof HTMLTabworthyDatesElementEventMap>(type: K, listener: (this: HTMLTabworthyDatesElement, ev: TabworthyDatesCustomEvent<HTMLTabworthyDatesElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
365
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
366
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
367
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
368
+ }
369
+ var HTMLTabworthyDatesElement: {
370
+ prototype: HTMLTabworthyDatesElement;
371
+ new (): HTMLTabworthyDatesElement;
372
+ };
373
+ interface HTMLTabworthyDatesCalendarElementEventMap {
374
+ "selectDate": string | string[] | undefined;
375
+ "changeMonth": MonthChangedEventDetails;
376
+ "changeYear": YearChangedEventDetails1;
377
+ }
378
+ interface HTMLTabworthyDatesCalendarElement extends Components.TabworthyDatesCalendar, HTMLStencilElement {
379
+ addEventListener<K extends keyof HTMLTabworthyDatesCalendarElementEventMap>(type: K, listener: (this: HTMLTabworthyDatesCalendarElement, ev: TabworthyDatesCalendarCustomEvent<HTMLTabworthyDatesCalendarElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
380
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
381
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
382
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
383
+ removeEventListener<K extends keyof HTMLTabworthyDatesCalendarElementEventMap>(type: K, listener: (this: HTMLTabworthyDatesCalendarElement, ev: TabworthyDatesCalendarCustomEvent<HTMLTabworthyDatesCalendarElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
384
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
385
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
386
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
387
+ }
388
+ var HTMLTabworthyDatesCalendarElement: {
389
+ prototype: HTMLTabworthyDatesCalendarElement;
390
+ new (): HTMLTabworthyDatesCalendarElement;
391
+ };
392
+ interface HTMLTabworthyDatesModalElementEventMap {
393
+ "opened": any;
394
+ "closed": any;
395
+ }
396
+ interface HTMLTabworthyDatesModalElement extends Components.TabworthyDatesModal, HTMLStencilElement {
397
+ addEventListener<K extends keyof HTMLTabworthyDatesModalElementEventMap>(type: K, listener: (this: HTMLTabworthyDatesModalElement, ev: TabworthyDatesModalCustomEvent<HTMLTabworthyDatesModalElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
398
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
399
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
400
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
401
+ removeEventListener<K extends keyof HTMLTabworthyDatesModalElementEventMap>(type: K, listener: (this: HTMLTabworthyDatesModalElement, ev: TabworthyDatesModalCustomEvent<HTMLTabworthyDatesModalElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
402
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
403
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
404
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
405
+ }
406
+ var HTMLTabworthyDatesModalElement: {
407
+ prototype: HTMLTabworthyDatesModalElement;
408
+ new (): HTMLTabworthyDatesModalElement;
409
+ };
410
+ interface HTMLTabworthyTimesElementEventMap {
411
+ "selectDateTime": string | string[] | undefined;
412
+ "changeYear": YearChangedEventDetails;
413
+ "componentReady": void;
414
+ }
415
+ interface HTMLTabworthyTimesElement extends Components.TabworthyTimes, HTMLStencilElement {
416
+ addEventListener<K extends keyof HTMLTabworthyTimesElementEventMap>(type: K, listener: (this: HTMLTabworthyTimesElement, ev: TabworthyTimesCustomEvent<HTMLTabworthyTimesElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
417
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
418
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
419
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
420
+ removeEventListener<K extends keyof HTMLTabworthyTimesElementEventMap>(type: K, listener: (this: HTMLTabworthyTimesElement, ev: TabworthyTimesCustomEvent<HTMLTabworthyTimesElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
421
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
422
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
423
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
424
+ }
425
+ var HTMLTabworthyTimesElement: {
426
+ prototype: HTMLTabworthyTimesElement;
427
+ new (): HTMLTabworthyTimesElement;
428
+ };
429
+ interface HTMLTabworthyTimesPickerElementEventMap {
430
+ "timeChanged": TimeValue;
431
+ }
432
+ interface HTMLTabworthyTimesPickerElement extends Components.TabworthyTimesPicker, HTMLStencilElement {
433
+ addEventListener<K extends keyof HTMLTabworthyTimesPickerElementEventMap>(type: K, listener: (this: HTMLTabworthyTimesPickerElement, ev: TabworthyTimesPickerCustomEvent<HTMLTabworthyTimesPickerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
434
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
435
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
436
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
437
+ removeEventListener<K extends keyof HTMLTabworthyTimesPickerElementEventMap>(type: K, listener: (this: HTMLTabworthyTimesPickerElement, ev: TabworthyTimesPickerCustomEvent<HTMLTabworthyTimesPickerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
438
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
439
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
440
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
441
+ }
442
+ var HTMLTabworthyTimesPickerElement: {
443
+ prototype: HTMLTabworthyTimesPickerElement;
444
+ new (): HTMLTabworthyTimesPickerElement;
445
+ };
446
+ interface HTMLElementTagNameMap {
447
+ "tabworthy-dates": HTMLTabworthyDatesElement;
448
+ "tabworthy-dates-calendar": HTMLTabworthyDatesCalendarElement;
449
+ "tabworthy-dates-modal": HTMLTabworthyDatesModalElement;
450
+ "tabworthy-times": HTMLTabworthyTimesElement;
451
+ "tabworthy-times-picker": HTMLTabworthyTimesPickerElement;
452
+ }
453
+ }
454
+ declare namespace LocalJSX {
455
+ type OneOf<K extends string, PropT, AttrT = PropT> = { [P in K]: PropT } & { [P in `attr:${K}` | `prop:${K}`]?: never } | { [P in `attr:${K}`]: AttrT } & { [P in K | `prop:${K}`]?: never } | { [P in `prop:${K}`]: PropT } & { [P in K | `attr:${K}`]?: never };
456
+
457
+ interface TabworthyDates {
458
+ "calendarButtonContent"?: string;
459
+ "datesCalendarLabels"?: DatesCalendarLabels;
460
+ /**
461
+ * @default defaultLabels
462
+ */
463
+ "datesLabels"?: DatesLabels;
464
+ /**
465
+ * @default () => false
466
+ */
467
+ "disableDate"?: HTMLTabworthyDatesCalendarElement["disableDate"];
468
+ /**
469
+ * @default false
470
+ */
471
+ "disabled"?: boolean;
472
+ /**
473
+ * @default "tabworthy-dates"
474
+ */
475
+ "elementClassName"?: string;
476
+ /**
477
+ * @default 1
478
+ */
479
+ "firstDayOfWeek"?: number;
480
+ /**
481
+ * @default "YYYY-MM-DD"
482
+ */
483
+ "format"?: string;
484
+ /**
485
+ * @default true
486
+ */
487
+ "formatInputOnAccept"?: boolean;
488
+ /**
489
+ * @default false
490
+ */
491
+ "hasError"?: boolean;
492
+ "id": string;
493
+ /**
494
+ * @default false
495
+ */
496
+ "inline"?: boolean;
497
+ /**
498
+ * @default this.range ? "Choose a date range (any way you like)" : "Choose a date (any way you like)"
499
+ */
500
+ "label"?: string;
501
+ /**
502
+ * @default navigator?.language || "en-US"
503
+ */
504
+ "locale"?: string;
505
+ "maxDate"?: string;
506
+ "minDate"?: string;
507
+ "nextMonthButtonContent"?: string;
508
+ "nextYearButtonContent"?: string;
509
+ "onChangeYear"?: (event: TabworthyDatesCustomEvent<YearChangedEventDetails>) => void;
510
+ "onComponentReady"?: (event: TabworthyDatesCustomEvent<void>) => void;
511
+ "onSelectDate"?: (event: TabworthyDatesCustomEvent<string | string[] | undefined>) => void;
512
+ /**
513
+ * @default this.range ? `Try "June 8 to 12"` : `Try "tomorrrow" or "in ten days"`
514
+ */
515
+ "placeholder"?: string;
516
+ /**
517
+ * @default this.range ? ["Monday to Wednesday", "July 5 to 10"] : ["Yesterday", "Today", "Tomorrow", "In 10 days"]
518
+ */
519
+ "quickButtons"?: string[];
520
+ /**
521
+ * @default false
522
+ */
523
+ "range"?: boolean;
524
+ /**
525
+ * @default getISODateString(new Date())
526
+ */
527
+ "referenceDate"?: string;
528
+ /**
529
+ * @default true
530
+ */
531
+ "showClearButton"?: boolean;
532
+ /**
533
+ * @default false
534
+ */
535
+ "showKeyboardHint"?: boolean;
536
+ /**
537
+ * @default true
538
+ */
539
+ "showMonthStepper"?: boolean;
540
+ /**
541
+ * @default true
542
+ */
543
+ "showQuickButtons"?: boolean;
544
+ /**
545
+ * @default true
546
+ */
547
+ "showTodayButton"?: boolean;
548
+ /**
549
+ * @default false
550
+ */
551
+ "showYearStepper"?: boolean;
552
+ /**
553
+ * @default getISODateString(new Date())
554
+ */
555
+ "startDate"?: string;
556
+ "todayButtonContent"?: string;
557
+ /**
558
+ * @default false
559
+ */
560
+ "useStrictDateParsing"?: boolean;
561
+ "value"?: string | string[];
562
+ }
563
+ interface TabworthyDatesCalendar {
564
+ "clearButtonContent"?: string;
565
+ /**
566
+ * @default () => false
567
+ */
568
+ "disableDate"?: (date: Date) => boolean;
569
+ /**
570
+ * @default false
571
+ */
572
+ "disabled"?: boolean;
573
+ /**
574
+ * @default "tabworthy-dates-calendar"
575
+ */
576
+ "elementClassName"?: string;
577
+ /**
578
+ * @default 0
579
+ */
580
+ "firstDayOfWeek"?: number;
581
+ /**
582
+ * @default false
583
+ */
584
+ "inline"?: boolean;
585
+ /**
586
+ * @default defaultLabels
587
+ */
588
+ "labels"?: DatesCalendarLabels1;
589
+ /**
590
+ * @default navigator?.language || "en-US"
591
+ */
592
+ "locale"?: string;
593
+ "maxDate"?: string;
594
+ "minDate"?: string;
595
+ /**
596
+ * @default false
597
+ */
598
+ "modalIsOpen"?: boolean;
599
+ "nextMonthButtonContent"?: string;
600
+ "nextYearButtonContent"?: string;
601
+ "onChangeMonth"?: (event: TabworthyDatesCalendarCustomEvent<MonthChangedEventDetails>) => void;
602
+ "onChangeYear"?: (event: TabworthyDatesCalendarCustomEvent<YearChangedEventDetails1>) => void;
603
+ "onSelectDate"?: (event: TabworthyDatesCalendarCustomEvent<string | string[] | undefined>) => void;
604
+ "previousMonthButtonContent"?: string;
605
+ "previousYearButtonContent"?: string;
606
+ /**
607
+ * @default false
608
+ */
609
+ "range"?: boolean;
610
+ /**
611
+ * @default false
612
+ */
613
+ "showClearButton"?: boolean;
614
+ /**
615
+ * @default true
616
+ */
617
+ "showHiddenTitle"?: boolean;
618
+ /**
619
+ * @default false
620
+ */
621
+ "showKeyboardHint"?: boolean;
622
+ /**
623
+ * @default true
624
+ */
625
+ "showMonthStepper"?: boolean;
626
+ /**
627
+ * @default true
628
+ */
629
+ "showTodayButton"?: boolean;
630
+ /**
631
+ * @default false
632
+ */
633
+ "showYearStepper"?: boolean;
634
+ /**
635
+ * @default getISODateString(new Date())
636
+ */
637
+ "startDate"?: string;
638
+ "todayButtonContent"?: string;
639
+ "value"?: Date | Date[] | null;
640
+ }
641
+ interface TabworthyDatesModal {
642
+ /**
643
+ * @default false
644
+ */
645
+ "inline"?: boolean;
646
+ "label": string;
647
+ "onClosed"?: (event: TabworthyDatesModalCustomEvent<any>) => void;
648
+ "onOpened"?: (event: TabworthyDatesModalCustomEvent<any>) => void;
649
+ }
650
+ interface TabworthyTimes {
651
+ "calendarButtonContent"?: string;
652
+ "datesCalendarLabels"?: DatesCalendarLabels;
653
+ /**
654
+ * @default () => false
655
+ */
656
+ "disableDate"?: (date: Date) => boolean;
657
+ /**
658
+ * @default false
659
+ */
660
+ "disabled"?: boolean;
661
+ /**
662
+ * @default "tabworthy-times"
663
+ */
664
+ "elementClassName"?: string;
665
+ /**
666
+ * @default 1
667
+ */
668
+ "firstDayOfWeek"?: number;
669
+ /**
670
+ * @default "YYYY-MM-DDTHH:mm:ss"
671
+ */
672
+ "format"?: string;
673
+ /**
674
+ * @default false
675
+ */
676
+ "hasError"?: boolean;
677
+ "id": string;
678
+ /**
679
+ * @default false
680
+ */
681
+ "inline"?: boolean;
682
+ /**
683
+ * @default "Choose a date and time"
684
+ */
685
+ "label"?: string;
686
+ /**
687
+ * @default navigator?.language || "en-US"
688
+ */
689
+ "locale"?: string;
690
+ "maxDate"?: string;
691
+ "minDate"?: string;
692
+ "onChangeYear"?: (event: TabworthyTimesCustomEvent<YearChangedEventDetails>) => void;
693
+ "onComponentReady"?: (event: TabworthyTimesCustomEvent<void>) => void;
694
+ "onSelectDateTime"?: (event: TabworthyTimesCustomEvent<string | string[] | undefined>) => void;
695
+ /**
696
+ * @default ""
697
+ */
698
+ "placeholder"?: string;
699
+ /**
700
+ * @default false
701
+ */
702
+ "range"?: boolean;
703
+ /**
704
+ * @default getISODateString(new Date())
705
+ */
706
+ "referenceDate"?: string;
707
+ /**
708
+ * @default true
709
+ */
710
+ "showClearButton"?: boolean;
711
+ /**
712
+ * @default true
713
+ */
714
+ "showMonthStepper"?: boolean;
715
+ /**
716
+ * @default true
717
+ */
718
+ "showTodayButton"?: boolean;
719
+ /**
720
+ * @default false
721
+ */
722
+ "showYearStepper"?: boolean;
723
+ /**
724
+ * @default getISODateString(new Date())
725
+ */
726
+ "startDate"?: string;
727
+ /**
728
+ * @default defaultLabels
729
+ */
730
+ "timesLabels"?: TimesLabels;
731
+ /**
732
+ * @default true
733
+ */
734
+ "use12HourFormat"?: boolean;
735
+ "value"?: string | string[];
736
+ }
737
+ interface TabworthyTimesPicker {
738
+ /**
739
+ * @default false
740
+ */
741
+ "disabled"?: boolean;
742
+ /**
743
+ * @default "tabworthy-times-picker"
744
+ */
745
+ "elementClassName"?: string;
746
+ /**
747
+ * @default 12
748
+ */
749
+ "hours"?: number;
750
+ /**
751
+ * @default defaultLabels
752
+ */
753
+ "labels"?: InclusivekTimesPickerLabels;
754
+ /**
755
+ * @default true
756
+ */
757
+ "labelsSrOnly"?: boolean;
758
+ /**
759
+ * @default 0
760
+ */
761
+ "minutes"?: number;
762
+ "onTimeChanged"?: (event: TabworthyTimesPickerCustomEvent<TimeValue>) => void;
763
+ /**
764
+ * @default false
765
+ */
766
+ "use12HourFormat"?: boolean;
767
+ }
768
+
769
+ interface TabworthyDatesAttributes {
770
+ "id": string;
771
+ "value": string | string[];
772
+ "range": boolean;
773
+ "label": string;
774
+ "placeholder": string;
775
+ "locale": string;
776
+ "disabled": boolean;
777
+ "minDate": string;
778
+ "maxDate": string;
779
+ "startDate": string;
780
+ "referenceDate": string;
781
+ "useStrictDateParsing": boolean;
782
+ "inline": boolean;
783
+ "hasError": boolean;
784
+ "nextMonthButtonContent": string;
785
+ "nextYearButtonContent": string;
786
+ "showYearStepper": boolean;
787
+ "showMonthStepper": boolean;
788
+ "showClearButton": boolean;
789
+ "showTodayButton": boolean;
790
+ "formatInputOnAccept": boolean;
791
+ "showKeyboardHint": boolean;
792
+ "elementClassName": string;
793
+ "firstDayOfWeek": number;
794
+ "format": string;
795
+ "todayButtonContent": string;
796
+ "calendarButtonContent": string;
797
+ "showQuickButtons": boolean;
798
+ }
799
+ interface TabworthyDatesCalendarAttributes {
800
+ "clearButtonContent": string;
801
+ "disabled": boolean;
802
+ "modalIsOpen": boolean;
803
+ "elementClassName": string;
804
+ "firstDayOfWeek": number;
805
+ "range": boolean;
806
+ "locale": string;
807
+ "nextMonthButtonContent": string;
808
+ "nextYearButtonContent": string;
809
+ "previousMonthButtonContent": string;
810
+ "previousYearButtonContent": string;
811
+ "minDate": string;
812
+ "maxDate": string;
813
+ "inline": boolean;
814
+ "showClearButton": boolean;
815
+ "showMonthStepper": boolean;
816
+ "showTodayButton": boolean;
817
+ "showYearStepper": boolean;
818
+ "showKeyboardHint": boolean;
819
+ "showHiddenTitle": boolean;
820
+ "startDate": string;
821
+ "todayButtonContent": string;
822
+ }
823
+ interface TabworthyDatesModalAttributes {
824
+ "label": string;
825
+ "inline": boolean;
826
+ }
827
+ interface TabworthyTimesAttributes {
828
+ "id": string;
829
+ "value": string | string[];
830
+ "range": boolean;
831
+ "label": string;
832
+ "placeholder": string;
833
+ "locale": string;
834
+ "disabled": boolean;
835
+ "minDate": string;
836
+ "maxDate": string;
837
+ "startDate": string;
838
+ "referenceDate": string;
839
+ "use12HourFormat": boolean;
840
+ "inline": boolean;
841
+ "hasError": boolean;
842
+ "showYearStepper": boolean;
843
+ "showMonthStepper": boolean;
844
+ "showClearButton": boolean;
845
+ "showTodayButton": boolean;
846
+ "calendarButtonContent": string;
847
+ "elementClassName": string;
848
+ "firstDayOfWeek": number;
849
+ "format": string;
850
+ }
851
+ interface TabworthyTimesPickerAttributes {
852
+ "hours": number;
853
+ "minutes": number;
854
+ "use12HourFormat": boolean;
855
+ "labelsSrOnly": boolean;
856
+ "disabled": boolean;
857
+ "elementClassName": string;
858
+ }
859
+
860
+ interface IntrinsicElements {
861
+ "tabworthy-dates": Omit<TabworthyDates, keyof TabworthyDatesAttributes> & { [K in keyof TabworthyDates & keyof TabworthyDatesAttributes]?: TabworthyDates[K] } & { [K in keyof TabworthyDates & keyof TabworthyDatesAttributes as `attr:${K}`]?: TabworthyDatesAttributes[K] } & { [K in keyof TabworthyDates & keyof TabworthyDatesAttributes as `prop:${K}`]?: TabworthyDates[K] } & OneOf<"id", TabworthyDates["id"], TabworthyDatesAttributes["id"]>;
862
+ "tabworthy-dates-calendar": Omit<TabworthyDatesCalendar, keyof TabworthyDatesCalendarAttributes> & { [K in keyof TabworthyDatesCalendar & keyof TabworthyDatesCalendarAttributes]?: TabworthyDatesCalendar[K] } & { [K in keyof TabworthyDatesCalendar & keyof TabworthyDatesCalendarAttributes as `attr:${K}`]?: TabworthyDatesCalendarAttributes[K] } & { [K in keyof TabworthyDatesCalendar & keyof TabworthyDatesCalendarAttributes as `prop:${K}`]?: TabworthyDatesCalendar[K] };
863
+ "tabworthy-dates-modal": Omit<TabworthyDatesModal, keyof TabworthyDatesModalAttributes> & { [K in keyof TabworthyDatesModal & keyof TabworthyDatesModalAttributes]?: TabworthyDatesModal[K] } & { [K in keyof TabworthyDatesModal & keyof TabworthyDatesModalAttributes as `attr:${K}`]?: TabworthyDatesModalAttributes[K] } & { [K in keyof TabworthyDatesModal & keyof TabworthyDatesModalAttributes as `prop:${K}`]?: TabworthyDatesModal[K] } & OneOf<"label", TabworthyDatesModal["label"], TabworthyDatesModalAttributes["label"]>;
864
+ "tabworthy-times": Omit<TabworthyTimes, keyof TabworthyTimesAttributes> & { [K in keyof TabworthyTimes & keyof TabworthyTimesAttributes]?: TabworthyTimes[K] } & { [K in keyof TabworthyTimes & keyof TabworthyTimesAttributes as `attr:${K}`]?: TabworthyTimesAttributes[K] } & { [K in keyof TabworthyTimes & keyof TabworthyTimesAttributes as `prop:${K}`]?: TabworthyTimes[K] } & OneOf<"id", TabworthyTimes["id"], TabworthyTimesAttributes["id"]>;
865
+ "tabworthy-times-picker": Omit<TabworthyTimesPicker, keyof TabworthyTimesPickerAttributes> & { [K in keyof TabworthyTimesPicker & keyof TabworthyTimesPickerAttributes]?: TabworthyTimesPicker[K] } & { [K in keyof TabworthyTimesPicker & keyof TabworthyTimesPickerAttributes as `attr:${K}`]?: TabworthyTimesPickerAttributes[K] } & { [K in keyof TabworthyTimesPicker & keyof TabworthyTimesPickerAttributes as `prop:${K}`]?: TabworthyTimesPicker[K] };
866
+ }
867
+ }
868
+ export { LocalJSX as JSX };
869
+ declare module "@stencil/core" {
870
+ export namespace JSX {
871
+ interface IntrinsicElements {
872
+ "tabworthy-dates": LocalJSX.IntrinsicElements["tabworthy-dates"] & JSXBase.HTMLAttributes<HTMLTabworthyDatesElement>;
873
+ "tabworthy-dates-calendar": LocalJSX.IntrinsicElements["tabworthy-dates-calendar"] & JSXBase.HTMLAttributes<HTMLTabworthyDatesCalendarElement>;
874
+ "tabworthy-dates-modal": LocalJSX.IntrinsicElements["tabworthy-dates-modal"] & JSXBase.HTMLAttributes<HTMLTabworthyDatesModalElement>;
875
+ "tabworthy-times": LocalJSX.IntrinsicElements["tabworthy-times"] & JSXBase.HTMLAttributes<HTMLTabworthyTimesElement>;
876
+ "tabworthy-times-picker": LocalJSX.IntrinsicElements["tabworthy-times-picker"] & JSXBase.HTMLAttributes<HTMLTabworthyTimesPickerElement>;
877
+ }
878
+ }
879
+ }