frontile 0.18.3 → 0.18.6
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/declarations/-private/reveal-within.d.ts +19 -0
- package/declarations/-private/reveal-within.d.ts.map +1 -0
- package/declarations/components/collections/calendar/year-grid.d.ts.map +1 -1
- package/declarations/components/forms/autocomplete.d.ts +49 -1
- package/declarations/components/forms/autocomplete.d.ts.map +1 -1
- package/declarations/components/forms/date-input/segment-group.d.ts +2 -1
- package/declarations/components/forms/date-input/segment-group.d.ts.map +1 -1
- package/declarations/components/forms/date-input/segments.d.ts +3 -1
- package/declarations/components/forms/date-input/segments.d.ts.map +1 -1
- package/declarations/components/forms/date-picker/date-picker.d.ts +119 -1
- package/declarations/components/forms/date-picker/date-picker.d.ts.map +1 -1
- package/declarations/components/forms/date-picker/time-columns.d.ts +87 -0
- package/declarations/components/forms/date-picker/time-columns.d.ts.map +1 -0
- package/declarations/components/forms/date-picker/types.d.ts +28 -0
- package/declarations/components/forms/date-picker/types.d.ts.map +1 -1
- package/declarations/components/forms/select/native-mirror.d.ts +3 -2
- package/declarations/components/forms/select/native-mirror.d.ts.map +1 -1
- package/declarations/components/forms/select/select.d.ts +42 -3
- package/declarations/components/forms/select/select.d.ts.map +1 -1
- package/declarations/components/forms/select/types.d.ts +36 -1
- package/declarations/components/forms/select/types.d.ts.map +1 -1
- package/declarations/components/overlays/overlay.d.ts +17 -2
- package/declarations/components/overlays/overlay.d.ts.map +1 -1
- package/declarations/test-support.d.ts.map +1 -1
- package/declarations/utils/filter.d.ts +30 -0
- package/declarations/utils/filter.d.ts.map +1 -1
- package/dist/components/collections/calendar/year-grid.js +1 -30
- package/dist/components/collections/calendar/year-grid.js.map +1 -1
- package/dist/components/forms/autocomplete.js +35 -4
- package/dist/components/forms/autocomplete.js.map +1 -1
- package/dist/components/forms/date-input/segment-group.js +1 -1
- package/dist/components/forms/date-input/segment-group.js.map +1 -1
- package/dist/components/forms/date-input/segments.js +1 -1
- package/dist/components/forms/date-input/segments.js.map +1 -1
- package/dist/components/forms/date-input.js +1 -1
- package/dist/components/forms/date-picker/date-picker.js +57 -6
- package/dist/components/forms/date-picker/date-picker.js.map +1 -1
- package/dist/components/forms/date-picker/time-columns.js +238 -0
- package/dist/components/forms/date-picker/time-columns.js.map +1 -0
- package/dist/components/forms/index.js +1 -1
- package/dist/components/forms/select/native-mirror.js.map +1 -1
- package/dist/components/forms/select/select.js +76 -4
- package/dist/components/forms/select/select.js.map +1 -1
- package/dist/components/overlays/overlay.js +55 -7
- package/dist/components/overlays/overlay.js.map +1 -1
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/reveal-within-BcqpOmSI.js +33 -0
- package/dist/reveal-within-BcqpOmSI.js.map +1 -0
- package/dist/test-support.js +3 -1
- package/dist/test-support.js.map +1 -1
- package/dist/utils/filter.js +32 -1
- package/dist/utils/filter.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scroll `target` into view inside `panel` and nowhere else.
|
|
3
|
+
*
|
|
4
|
+
* `scrollIntoView` and a plain `focus()` both scroll *every* scrollable
|
|
5
|
+
* ancestor up to the document, so either one makes the host page jump when a
|
|
6
|
+
* panel opens or when arrow keys walk past its edge. Adjusting `scrollTop`
|
|
7
|
+
* directly keeps the movement inside the panel.
|
|
8
|
+
*
|
|
9
|
+
* The measurements come from `offsetTop`, not `getBoundingClientRect()`:
|
|
10
|
+
* client rects are in transformed pixels, so under any ancestor `scale()` they
|
|
11
|
+
* would not agree with `scrollTop`. This relies on the panel being the
|
|
12
|
+
* target's `offsetParent`, so the panel has to be positioned.
|
|
13
|
+
*
|
|
14
|
+
* `center` places the target mid-panel, for the opening jump to a value that
|
|
15
|
+
* is usually a long way down the list; otherwise the target is brought just
|
|
16
|
+
* far enough into view, which is what stepping key by key wants.
|
|
17
|
+
*/
|
|
18
|
+
export declare function revealWithin(panel: HTMLElement, target: HTMLElement, center: boolean): void;
|
|
19
|
+
//# sourceMappingURL=reveal-within.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reveal-within.d.ts","sourceRoot":"","sources":["../../src/-private/reveal-within.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,WAAW,EACnB,MAAM,EAAE,OAAO,GACd,IAAI,CAcN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"year-grid.d.ts","sourceRoot":"","sources":["../../../../src/components/collections/calendar/year-grid.gts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"year-grid.d.ts","sourceRoot":"","sources":["../../../../src/components/collections/calendar/year-grid.gts"],"names":[],"mappings":"AAgKA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAM3C,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;QACjC,SAAS,EAAE,MAAM,IAAI,CAAC;QACtB,kCAAkC;QAClC,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE;YAAE,QAAQ,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAE,CAAC;KACjD,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;CACzB;AAKD,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,SAAS,CAAC,iBAAiB,CAAC;;IAGhE,SAAS,GAAI,MAAM,MAAM,KAAG,OAAO,CAAmC;IAEtE;;;;OAIG;IACH,KAAK;;;;;;OAuBF;IAuBH,aAAa,GAAI,OAAO,aAAa,KAAG,IAAI,CAgD1C;CA+DH;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { type AutocompleteSlots, type AutocompleteVariants, type SlotsToClasses
|
|
|
6
6
|
import { ControlBlurTracker } from '../../-private/control-blur';
|
|
7
7
|
import { type PopoverSignature, type ContentSignature } from '../overlays/popover';
|
|
8
8
|
import { type FormControlSharedArgs } from './form-control';
|
|
9
|
-
import { type FilterFn } from '../../utils/filter';
|
|
9
|
+
import { type FilterFn, type DisplayLimitContentArgs } from '../../utils/filter';
|
|
10
10
|
interface AutocompleteArgs<T> extends Pick<PopoverSignature['Args'], 'placement' | 'flipOptions' | 'middleware' | 'shiftOptions' | 'offsetOptions' | 'strategy' | 'didClose'>, Pick<ListboxSignature<T>['Args'], 'variant' | 'appearance' | 'color' | 'intent' | 'disabledKeys' | 'allowEmpty' | 'items' | 'onAction'>, Pick<ContentSignature['Args'], 'renderInPlace' | 'target' | 'transitionDuration' | 'backdrop' | 'disableTransitions' | 'focusTrapOptions' | 'closeOnOutsideClick' | 'closeOnEscapeKey' | 'backdropTransition' | 'transition'>, FormControlSharedArgs {
|
|
11
11
|
/**
|
|
12
12
|
* The currently selected key.
|
|
@@ -109,6 +109,22 @@ interface AutocompleteArgs<T> extends Pick<PopoverSignature['Args'], 'placement'
|
|
|
109
109
|
* @defaultValue false
|
|
110
110
|
*/
|
|
111
111
|
disableFiltering?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* The most options the dropdown renders at once.
|
|
114
|
+
*
|
|
115
|
+
* Every rendered option is DOM to build, and to rebuild on each keystroke as
|
|
116
|
+
* the matches change, so a list of hundreds of options makes typing lag.
|
|
117
|
+
* With a limit, only the first `displayLimit` options are rendered, in the
|
|
118
|
+
* order the filter ranked them, and the `displayLimitContent` block says how
|
|
119
|
+
* many more there are. The rest are reached by typing a narrower query.
|
|
120
|
+
*
|
|
121
|
+
* It caps whatever the dropdown would show: the built-in matches, `@items`
|
|
122
|
+
* under `disableFiltering`, or the results of `onSearch`. The selected
|
|
123
|
+
* option is always rendered, even past the limit.
|
|
124
|
+
*
|
|
125
|
+
* @defaultValue undefined (every option is rendered)
|
|
126
|
+
*/
|
|
127
|
+
displayLimit?: number;
|
|
112
128
|
/**
|
|
113
129
|
* Async search function. When provided, the component calls it (debounced)
|
|
114
130
|
* as the user types and renders the resolved items, showing a loading
|
|
@@ -179,6 +195,13 @@ interface AutocompleteArgs<T> extends Pick<PopoverSignature['Args'], 'placement'
|
|
|
179
195
|
* @defaultValue false
|
|
180
196
|
*/
|
|
181
197
|
hideEmptyContent?: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* If true, hides the display limit content when `@displayLimit` leaves
|
|
200
|
+
* options out.
|
|
201
|
+
*
|
|
202
|
+
* @defaultValue false
|
|
203
|
+
*/
|
|
204
|
+
hideDisplayLimitContent?: boolean;
|
|
182
205
|
/**
|
|
183
206
|
* Message shown in the dropdown of an async autocomplete (`onSearch`)
|
|
184
207
|
* while the query is blank — e.g. "Type to search for an address…".
|
|
@@ -219,6 +242,13 @@ interface AutocompleteSignature<T> {
|
|
|
219
242
|
* If `hideEmptyContent` argument is true, this content will not be shown.
|
|
220
243
|
*/
|
|
221
244
|
emptyContent: [];
|
|
245
|
+
/**
|
|
246
|
+
* The content to display below the options when `@displayLimit` leaves
|
|
247
|
+
* some of them out. Yields how many options are shown and how many match
|
|
248
|
+
* in total. If `hideDisplayLimitContent` argument is true, this content
|
|
249
|
+
* will not be shown.
|
|
250
|
+
*/
|
|
251
|
+
displayLimitContent: [DisplayLimitContentArgs];
|
|
222
252
|
/**
|
|
223
253
|
* Message shown in the dropdown of an async autocomplete while the
|
|
224
254
|
* query is blank, prompting the user to start typing. Takes priority
|
|
@@ -388,6 +418,14 @@ declare class Autocomplete<T = unknown> extends Component<AutocompleteSignature<
|
|
|
388
418
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
389
419
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
390
420
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
421
|
+
displayLimitContent: (slotProps?: ({
|
|
422
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
423
|
+
hasStartContent?: boolean | undefined;
|
|
424
|
+
hasEndContent?: boolean | undefined;
|
|
425
|
+
hasChips?: boolean | undefined;
|
|
426
|
+
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
427
|
+
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
428
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
391
429
|
} & {
|
|
392
430
|
base: (slotProps?: ({
|
|
393
431
|
size?: "sm" | "md" | "lg" | undefined;
|
|
@@ -425,6 +463,16 @@ declare class Autocomplete<T = unknown> extends Component<AutocompleteSignature<
|
|
|
425
463
|
get isClearable(): boolean | undefined;
|
|
426
464
|
get isLoading(): boolean;
|
|
427
465
|
get filteredItems(): T[] | undefined;
|
|
466
|
+
/**
|
|
467
|
+
* The options the listbox renders: `filteredItems`, capped by
|
|
468
|
+
* `@displayLimit`.
|
|
469
|
+
*/
|
|
470
|
+
get displayedItems(): T[] | undefined;
|
|
471
|
+
/**
|
|
472
|
+
* What the display limit content reports, or `undefined` when nothing is
|
|
473
|
+
* left out.
|
|
474
|
+
*/
|
|
475
|
+
get displayLimitContent(): DisplayLimitContentArgs | undefined;
|
|
428
476
|
/**
|
|
429
477
|
* True when an async autocomplete is open with a blank query and nothing
|
|
430
478
|
* to show — the moment to prompt the user to start typing.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/forms/autocomplete.gts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/forms/autocomplete.gts"],"names":[],"mappings":"AAugCA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,E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,oBAehB;IAED;;;OAGG;IACH,IACI,cAAc,oBAYjB;IAED;;;OAGG;IACH,IAAI,mBAAmB,IAAI,uBAAuB,GAAG,SAAS,CAO7D;IAED;;;OAGG;IACH,IAAI,mBAAmB,IAAI,OAAO,CAOjC;IAED,IAAI,gBAAgB,YAMnB;IAED,IAAI,gBAAgB,IAAI,OAAO,GAAG,UAAU,CAK3C;IAED;;OAEG;IACH,iBAAiB;;;;;;OAMf;CAwUH;AAMD,OAAO,EAAE,YAAY,EAAE,KAAK,qBAAqB,EAAE,CAAC;AACpD,eAAe,YAAY,CAAC"}
|
|
@@ -37,6 +37,7 @@ interface SegmentGroupSignature {
|
|
|
37
37
|
};
|
|
38
38
|
Element: HTMLDivElement;
|
|
39
39
|
}
|
|
40
|
+
declare const DEFAULT_LABELS: Record<SegmentType, string>;
|
|
40
41
|
/**
|
|
41
42
|
* Everything one rendered part needs, resolved to primitives.
|
|
42
43
|
*
|
|
@@ -127,6 +128,6 @@ declare class SegmentGroup extends Component<SegmentGroupSignature> {
|
|
|
127
128
|
handleCopy: (event: ClipboardEvent) => void;
|
|
128
129
|
handleCut: (event: ClipboardEvent) => void;
|
|
129
130
|
}
|
|
130
|
-
export { SegmentGroup, type SegmentGroupSignature };
|
|
131
|
+
export { SegmentGroup, DEFAULT_LABELS as DEFAULT_SEGMENT_LABELS, type SegmentGroupSignature };
|
|
131
132
|
export default SegmentGroup;
|
|
132
133
|
//# sourceMappingURL=segment-group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segment-group.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/date-input/segment-group.gts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"segment-group.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/date-input/segment-group.gts"],"names":[],"mappings":"AA+bA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAe3C,OAAO,KAAK,EACV,IAAI,EACJ,OAAO,EACP,WAAW,EACX,mBAAmB,EAC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|
|
81
81
|
declare function hourOnCycle(hours: number, cycle: HourCycle): number;
|
|
82
82
|
/** The 0-23 hour an hour segment and an AM/PM (0 or 1) stand for. */
|
|
83
83
|
declare function hourOfDay(hour: number, cycle: HourCycle, dayPeriod: number): number;
|
|
84
|
+
/** The unit of `date` this segment holds: what it seeds from, or is set to. */
|
|
85
|
+
declare function seedFrom(segment: Segment, date: Date): number;
|
|
84
86
|
/**
|
|
85
87
|
* Arrow and page keys. An empty segment does not step from zero -- it adopts
|
|
86
88
|
* `placeholderValue`, so ArrowUp on a blank year offers this year rather than
|
|
@@ -159,5 +161,5 @@ declare function resolveSegmentFormat(given: Intl.DateTimeFormatOptions | undefi
|
|
|
159
161
|
declare function hasDateChanged(before: Date | null, after: Date | null): boolean;
|
|
160
162
|
/** Writes a value across the segments, leaving literals untouched. */
|
|
161
163
|
declare function fromDate(parts: Part[], date: Date | null): Part[];
|
|
162
|
-
export { buildParts, withTime, applyLetter, timeOf, hourOnCycle, hourOfDay, isSegment, emptySegment, DEFAULT_FORMAT, BOUNDS, applyDigit, commitSegment, clearSegment, deleteDigit, step, toDate, fromDate, findSegment, resolveTwoDigitYear, daysInMonth, displaySegment, withValue, carryOver, hasTextualMonth, toNumericFormat, resolveSegmentFormat, hasDateChanged };
|
|
164
|
+
export { buildParts, withTime, applyLetter, timeOf, hourOnCycle, hourOfDay, seedFrom, isSegment, emptySegment, DEFAULT_FORMAT, BOUNDS, applyDigit, commitSegment, clearSegment, deleteDigit, step, toDate, fromDate, findSegment, resolveTwoDigitYear, daysInMonth, displaySegment, withValue, carryOver, hasTextualMonth, toNumericFormat, resolveSegmentFormat, hasDateChanged };
|
|
163
165
|
//# sourceMappingURL=segments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segments.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/date-input/segments.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,SAAS,EACT,IAAI,EACJ,OAAO,EACP,WAAW,E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AO3D;AAED;;;;GAIG;AACH,iBAAS,WAAW,CAClB,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,MAAM,GACV;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,CAQvC;AAED,sDAAsD;AACtD,iBAAS,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAE/C;AAED,iDAAiD;AACjD,iBAAS,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAU9C;AAED,gDAAgD;AAChD,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,GAAG,MAAM,CAK5D;AAED,qEAAqE;AACrE,iBAAS,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAG5E;
|
|
1
|
+
{"version":3,"file":"segments.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/date-input/segments.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,SAAS,EACT,IAAI,EACJ,OAAO,EACP,WAAW,EACX,WAAW,EACZ,MAAM,SAAS,CAAC;AAEjB;;;;GAIG;AACH,QAAA,MAAM,cAAc,EAAE,IAAI,CAAC,qBAI1B,CAAC;AAEF,QAAA,MAAM,MAAM,EAAE,MAAM,CAClB,WAAW,EACX;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAajE,CAAC;AAcF,iBAAS,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,IAAI,OAAO,CAE9C;AAED,iBAAS,YAAY,CACnB,IAAI,EAAE,WAAW,EACjB,SAAS,GAAE,OAAO,CAAC,OAAO,CAAM,GAC/B,OAAO,CAcT;AAED;;;GAGG;AACH,iBAAS,QAAQ,CACf,MAAM,EAAE,IAAI,CAAC,qB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E,EAAE,MAAM,CAAA;CAAE,GACvC,IAAI,CAAC,qBAAqB,GAAG,SAAS,CAMxC;AAED,uEAAuE;AACvE,iBAAS,cAAc,CAAC,MAAM,EAAE,IAAI,GAAG,IAAI,EAAE,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,OAAO,CAGxE;AAED,sEAAsE;AACtE,iBAAS,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,EAAE,CAO1D;AAED,OAAO,EACL,UAAU,EACV,QAAQ,EACR,WAAW,EACX,MAAM,EACN,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,cAAc,EACd,MAAM,EACN,UAAU,EACV,aAAa,EACb,YAAY,EACZ,WAAW,EACX,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,WAAW,EACX,mBAAmB,EACnB,WAAW,EACX,cAAc,EACd,SAAS,EACT,SAAS,EACT,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,cAAc,EACf,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import { ControlBlurTracker } from '../../../-private/control-blur';
|
|
3
3
|
import type { CalendarMode, CalendarValue } from '../../collections/calendar/types';
|
|
4
|
-
import type { Part, TimeOptions } from '../date-input/types';
|
|
4
|
+
import type { Part, SegmentType, TimeOptions } from '../date-input/types';
|
|
5
5
|
import type { DatePickerArgs, DatePickerValueBlockArg, DatePickerCalendarArgs, DatePickerFooterArg } from './types';
|
|
6
6
|
interface DatePickerSignature<M extends CalendarMode = 'single'> {
|
|
7
7
|
Args: DatePickerArgs<M>;
|
|
@@ -74,6 +74,16 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
74
74
|
/** The time segments the field adds to the date, if any. */
|
|
75
75
|
get timeOptions(): TimeOptions;
|
|
76
76
|
get hasTime(): boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Whether the popover lists the time beside the calendar. The columns edit
|
|
79
|
+
* the segments, so there have to be segments, and only one group of them:
|
|
80
|
+
* a range would need two sets of columns, and which end they edit would be
|
|
81
|
+
* one more thing to get across.
|
|
82
|
+
*/
|
|
83
|
+
get showsTimeColumns(): boolean;
|
|
84
|
+
get minuteStep(): number;
|
|
85
|
+
get timeLabel(): string;
|
|
86
|
+
columnLabel: (type: SegmentType) => string;
|
|
77
87
|
get mode(): M;
|
|
78
88
|
get clearLabel(): string;
|
|
79
89
|
get calendarButtonLabel(): string;
|
|
@@ -210,6 +220,17 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
210
220
|
* so completing a date by typing has nothing to close.
|
|
211
221
|
*/
|
|
212
222
|
handlePartsChange: (parts: Part[]) => void;
|
|
223
|
+
/**
|
|
224
|
+
* An option picked in the time columns. It is written into the segments,
|
|
225
|
+
* the one place the time lives, and reported the way typing is -- so a
|
|
226
|
+
* time picked before any day waits for one, exactly as a typed time does.
|
|
227
|
+
*
|
|
228
|
+
* The other time segments are filled in if they are empty, so that one
|
|
229
|
+
* pick is a time: minutes start on the hour (10 reads as 10:00), the hour
|
|
230
|
+
* and AM/PM at `@placeholderValue`'s, as ArrowUp on an empty segment does.
|
|
231
|
+
* A segment still being typed is committed as it reads.
|
|
232
|
+
*/
|
|
233
|
+
handleTimeSelect: (type: SegmentType, value: number, commit: boolean) => void;
|
|
213
234
|
/**
|
|
214
235
|
* The two range groups report separately, but a range is one value: each
|
|
215
236
|
* one recomposes the whole thing and reports only what moved.
|
|
@@ -283,6 +304,7 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
283
304
|
close: () => void;
|
|
284
305
|
get classes(): {
|
|
285
306
|
base: (slotProps?: ({
|
|
307
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
286
308
|
size?: "sm" | "md" | "lg" | undefined;
|
|
287
309
|
hasStartContent?: boolean | undefined;
|
|
288
310
|
hasEndContent?: boolean | undefined;
|
|
@@ -293,6 +315,7 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
293
315
|
isRange?: boolean | undefined;
|
|
294
316
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
295
317
|
innerContainer: (slotProps?: ({
|
|
318
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
296
319
|
size?: "sm" | "md" | "lg" | undefined;
|
|
297
320
|
hasStartContent?: boolean | undefined;
|
|
298
321
|
hasEndContent?: boolean | undefined;
|
|
@@ -303,6 +326,7 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
303
326
|
isRange?: boolean | undefined;
|
|
304
327
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
305
328
|
startContent: (slotProps?: ({
|
|
329
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
306
330
|
size?: "sm" | "md" | "lg" | undefined;
|
|
307
331
|
hasStartContent?: boolean | undefined;
|
|
308
332
|
hasEndContent?: boolean | undefined;
|
|
@@ -313,6 +337,7 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
313
337
|
isRange?: boolean | undefined;
|
|
314
338
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
315
339
|
endContent: (slotProps?: ({
|
|
340
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
316
341
|
size?: "sm" | "md" | "lg" | undefined;
|
|
317
342
|
hasStartContent?: boolean | undefined;
|
|
318
343
|
hasEndContent?: boolean | undefined;
|
|
@@ -323,6 +348,7 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
323
348
|
isRange?: boolean | undefined;
|
|
324
349
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
325
350
|
input: (slotProps?: ({
|
|
351
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
326
352
|
size?: "sm" | "md" | "lg" | undefined;
|
|
327
353
|
hasStartContent?: boolean | undefined;
|
|
328
354
|
hasEndContent?: boolean | undefined;
|
|
@@ -334,6 +360,7 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
334
360
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
335
361
|
} & {
|
|
336
362
|
separator: (slotProps?: ({
|
|
363
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
337
364
|
size?: "sm" | "md" | "lg" | undefined;
|
|
338
365
|
hasStartContent?: boolean | undefined;
|
|
339
366
|
hasEndContent?: boolean | undefined;
|
|
@@ -344,6 +371,84 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
344
371
|
isRange?: boolean | undefined;
|
|
345
372
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
346
373
|
calendarButton: (slotProps?: ({
|
|
374
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
375
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
376
|
+
hasStartContent?: boolean | undefined;
|
|
377
|
+
hasEndContent?: boolean | undefined;
|
|
378
|
+
hasChips?: boolean | undefined;
|
|
379
|
+
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
380
|
+
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
381
|
+
isSegmented?: boolean | undefined;
|
|
382
|
+
isRange?: boolean | undefined;
|
|
383
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
384
|
+
panels: (slotProps?: ({
|
|
385
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
386
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
387
|
+
hasStartContent?: boolean | undefined;
|
|
388
|
+
hasEndContent?: boolean | undefined;
|
|
389
|
+
hasChips?: boolean | undefined;
|
|
390
|
+
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
391
|
+
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
392
|
+
isSegmented?: boolean | undefined;
|
|
393
|
+
isRange?: boolean | undefined;
|
|
394
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
395
|
+
time: (slotProps?: ({
|
|
396
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
397
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
398
|
+
hasStartContent?: boolean | undefined;
|
|
399
|
+
hasEndContent?: boolean | undefined;
|
|
400
|
+
hasChips?: boolean | undefined;
|
|
401
|
+
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
402
|
+
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
403
|
+
isSegmented?: boolean | undefined;
|
|
404
|
+
isRange?: boolean | undefined;
|
|
405
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
406
|
+
timeColumns: (slotProps?: ({
|
|
407
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
408
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
409
|
+
hasStartContent?: boolean | undefined;
|
|
410
|
+
hasEndContent?: boolean | undefined;
|
|
411
|
+
hasChips?: boolean | undefined;
|
|
412
|
+
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
413
|
+
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
414
|
+
isSegmented?: boolean | undefined;
|
|
415
|
+
isRange?: boolean | undefined;
|
|
416
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
417
|
+
timeColumn: (slotProps?: ({
|
|
418
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
419
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
420
|
+
hasStartContent?: boolean | undefined;
|
|
421
|
+
hasEndContent?: boolean | undefined;
|
|
422
|
+
hasChips?: boolean | undefined;
|
|
423
|
+
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
424
|
+
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
425
|
+
isSegmented?: boolean | undefined;
|
|
426
|
+
isRange?: boolean | undefined;
|
|
427
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
428
|
+
timeColumnLabel: (slotProps?: ({
|
|
429
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
430
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
431
|
+
hasStartContent?: boolean | undefined;
|
|
432
|
+
hasEndContent?: boolean | undefined;
|
|
433
|
+
hasChips?: boolean | undefined;
|
|
434
|
+
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
435
|
+
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
436
|
+
isSegmented?: boolean | undefined;
|
|
437
|
+
isRange?: boolean | undefined;
|
|
438
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
439
|
+
timeList: (slotProps?: ({
|
|
440
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
441
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
442
|
+
hasStartContent?: boolean | undefined;
|
|
443
|
+
hasEndContent?: boolean | undefined;
|
|
444
|
+
hasChips?: boolean | undefined;
|
|
445
|
+
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
446
|
+
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
447
|
+
isSegmented?: boolean | undefined;
|
|
448
|
+
isRange?: boolean | undefined;
|
|
449
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
450
|
+
timeOption: (slotProps?: ({
|
|
451
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
347
452
|
size?: "sm" | "md" | "lg" | undefined;
|
|
348
453
|
hasStartContent?: boolean | undefined;
|
|
349
454
|
hasEndContent?: boolean | undefined;
|
|
@@ -354,6 +459,7 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
354
459
|
isRange?: boolean | undefined;
|
|
355
460
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
356
461
|
group: (slotProps?: ({
|
|
462
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
357
463
|
size?: "sm" | "md" | "lg" | undefined;
|
|
358
464
|
hasStartContent?: boolean | undefined;
|
|
359
465
|
hasEndContent?: boolean | undefined;
|
|
@@ -364,6 +470,7 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
364
470
|
isRange?: boolean | undefined;
|
|
365
471
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
366
472
|
segment: (slotProps?: ({
|
|
473
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
367
474
|
size?: "sm" | "md" | "lg" | undefined;
|
|
368
475
|
hasStartContent?: boolean | undefined;
|
|
369
476
|
hasEndContent?: boolean | undefined;
|
|
@@ -374,6 +481,7 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
374
481
|
isRange?: boolean | undefined;
|
|
375
482
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
376
483
|
literal: (slotProps?: ({
|
|
484
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
377
485
|
size?: "sm" | "md" | "lg" | undefined;
|
|
378
486
|
hasStartContent?: boolean | undefined;
|
|
379
487
|
hasEndContent?: boolean | undefined;
|
|
@@ -384,6 +492,7 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
384
492
|
isRange?: boolean | undefined;
|
|
385
493
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
386
494
|
base: (slotProps?: ({
|
|
495
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
387
496
|
size?: "sm" | "md" | "lg" | undefined;
|
|
388
497
|
hasStartContent?: boolean | undefined;
|
|
389
498
|
hasEndContent?: boolean | undefined;
|
|
@@ -394,6 +503,7 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
394
503
|
isRange?: boolean | undefined;
|
|
395
504
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
396
505
|
placeholder: (slotProps?: ({
|
|
506
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
397
507
|
size?: "sm" | "md" | "lg" | undefined;
|
|
398
508
|
hasStartContent?: boolean | undefined;
|
|
399
509
|
hasEndContent?: boolean | undefined;
|
|
@@ -404,6 +514,7 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
404
514
|
isRange?: boolean | undefined;
|
|
405
515
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
406
516
|
input: (slotProps?: ({
|
|
517
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
407
518
|
size?: "sm" | "md" | "lg" | undefined;
|
|
408
519
|
hasStartContent?: boolean | undefined;
|
|
409
520
|
hasEndContent?: boolean | undefined;
|
|
@@ -414,6 +525,7 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
414
525
|
isRange?: boolean | undefined;
|
|
415
526
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
416
527
|
innerContainer: (slotProps?: ({
|
|
528
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
417
529
|
size?: "sm" | "md" | "lg" | undefined;
|
|
418
530
|
hasStartContent?: boolean | undefined;
|
|
419
531
|
hasEndContent?: boolean | undefined;
|
|
@@ -424,6 +536,7 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
424
536
|
isRange?: boolean | undefined;
|
|
425
537
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
426
538
|
endContent: (slotProps?: ({
|
|
539
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
427
540
|
size?: "sm" | "md" | "lg" | undefined;
|
|
428
541
|
hasStartContent?: boolean | undefined;
|
|
429
542
|
hasEndContent?: boolean | undefined;
|
|
@@ -434,6 +547,7 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
434
547
|
isRange?: boolean | undefined;
|
|
435
548
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
436
549
|
calendar: (slotProps?: ({
|
|
550
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
437
551
|
size?: "sm" | "md" | "lg" | undefined;
|
|
438
552
|
hasStartContent?: boolean | undefined;
|
|
439
553
|
hasEndContent?: boolean | undefined;
|
|
@@ -444,6 +558,7 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
444
558
|
isRange?: boolean | undefined;
|
|
445
559
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
446
560
|
footer: (slotProps?: ({
|
|
561
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
447
562
|
size?: "sm" | "md" | "lg" | undefined;
|
|
448
563
|
hasStartContent?: boolean | undefined;
|
|
449
564
|
hasEndContent?: boolean | undefined;
|
|
@@ -454,6 +569,7 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
454
569
|
isRange?: boolean | undefined;
|
|
455
570
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
456
571
|
icon: (slotProps?: ({
|
|
572
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
457
573
|
size?: "sm" | "md" | "lg" | undefined;
|
|
458
574
|
hasStartContent?: boolean | undefined;
|
|
459
575
|
hasEndContent?: boolean | undefined;
|
|
@@ -464,6 +580,7 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
464
580
|
isRange?: boolean | undefined;
|
|
465
581
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
466
582
|
clearButton: (slotProps?: ({
|
|
583
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
467
584
|
size?: "sm" | "md" | "lg" | undefined;
|
|
468
585
|
hasStartContent?: boolean | undefined;
|
|
469
586
|
hasEndContent?: boolean | undefined;
|
|
@@ -475,6 +592,7 @@ declare class DatePicker<M extends CalendarMode = 'single'> extends Component<Da
|
|
|
475
592
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
476
593
|
} & {
|
|
477
594
|
base: (slotProps?: ({
|
|
595
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
478
596
|
size?: "sm" | "md" | "lg" | undefined;
|
|
479
597
|
hasStartContent?: boolean | undefined;
|
|
480
598
|
hasEndContent?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/date-picker/date-picker.gts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/date-picker/date-picker.gts"],"names":[],"mappings":"AA0lCA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AA8B3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAWpE,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EAEd,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,KAAK,EACV,cAAc,EAEd,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAejB,UAAU,mBAAmB,CAAC,CAAC,SAAS,YAAY,GAAG,QAAQ;IAC7D,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;IACxB,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC;QACpC,QAAQ,EAAE,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC;QACtC,MAAM,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;KAClC,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;CACzB;AAED;;;;;;;GAOG;AACH,cAAM,UAAU,CAAC,CAAC,SAAS,YAAY,GAAG,QAAQ,CAAE,SAAQ,SAAS,CACnE,mBAAmB,CAAC,CAAC,CAAC,CACvB;;IACC,UAAU,mDAA4B;IACtC,YAAY,6CAAsB;IAElC;;;;;;OAMG;IACM,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,IAAI,CAAQ;IAE9C,MAAM,UAAS;IAExB;;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,CAAC,kBAAkB,CAA4B;IAEtD,oBAAoB,GAAI,OAAO,UAAU,KAAG,IAAI,CAQ9C;IAEF;;;;;;;;;;OAUG;IACH,OAAO,CAAC,UAAU;IAIlB;;;;;;;;;;OAUG;IACH,YAAY,GAAI,QAAQ,OAAO,KAAG,IAAI,CAMpC;IAEF;;;OAGG;IACH,KAAK,QAAO,IAAI,CAGd;IAEF,IACI,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQV;IAED,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED;;;;OAIG;IACH,IAAI,uBAAuB,IAAI,MAAM,GAAG,MAAM,CAI7C;IAED;;;;OAIG;IACH,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED,IAAI,cAAc,IAAI,MAAM,CAK3B;IAED,IAAI,YAAY,IAAI,MAAM,CAKzB;IAED,IACI,gBAAgB,IAAI,sBAAsB,CAAC,CAAC,CAAC,CAiBhD;IAED,IACI,cAAc,IAAI,mBAAmB,CAAC,CAAC,CAAC,CAU3C;CAgUF;AAED,OAAO,EAAE,UAAU,EAAE,KAAK,mBAAmB,EAAE,CAAC;AAChD,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type { Part, SegmentType } from '../date-input/types';
|
|
3
|
+
import type { DatePickerClasses } from './types';
|
|
4
|
+
import type { SlotsToClasses, DatePickerSlots } from '@frontile/theme';
|
|
5
|
+
interface TimeOption {
|
|
6
|
+
value: number;
|
|
7
|
+
label: string;
|
|
8
|
+
isSelected: boolean;
|
|
9
|
+
/** The column's one tab stop. */
|
|
10
|
+
isTabbable: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface TimeColumn {
|
|
13
|
+
type: SegmentType;
|
|
14
|
+
label: string;
|
|
15
|
+
labelId: string;
|
|
16
|
+
/** The value the column shows as picked, or `null`. Re-reveals on change. */
|
|
17
|
+
selected: number | null;
|
|
18
|
+
options: TimeOption[];
|
|
19
|
+
/** Picking here finishes the time, so a click on it closes the popover. */
|
|
20
|
+
isLast: boolean;
|
|
21
|
+
}
|
|
22
|
+
interface DatePickerTimeColumnsSignature {
|
|
23
|
+
Args: {
|
|
24
|
+
/** The field's segments; the columns render its time ones. */
|
|
25
|
+
parts: Part[];
|
|
26
|
+
/** The minutes offered, as a step from :00. */
|
|
27
|
+
minuteStep: number;
|
|
28
|
+
/** What an empty column offers to start from. */
|
|
29
|
+
placeholderValue: Date;
|
|
30
|
+
/** The group's accessible name. */
|
|
31
|
+
label: string;
|
|
32
|
+
/** Each column's visible name, which is also its accessible one. */
|
|
33
|
+
columnLabel: (type: SegmentType) => string;
|
|
34
|
+
/** Prefix for the column names' ids. */
|
|
35
|
+
idPrefix: string;
|
|
36
|
+
isReadOnly?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* An option was picked. `commit` is true when the pick finishes the
|
|
39
|
+
* time -- Enter, or a click in the last column -- and the popover should
|
|
40
|
+
* close.
|
|
41
|
+
*/
|
|
42
|
+
onSelect: (type: SegmentType, value: number, commit: boolean) => void;
|
|
43
|
+
classes: DatePickerClasses;
|
|
44
|
+
userClasses?: SlotsToClasses<DatePickerSlots>;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The time part of a date picker's popover: a scrolling list per time
|
|
49
|
+
* segment -- hours, minutes, and AM/PM on a 12-hour clock -- in the order the
|
|
50
|
+
* locale writes them.
|
|
51
|
+
*
|
|
52
|
+
* Each list is a single-select `listbox` with roving focus, the same pattern
|
|
53
|
+
* as the calendar's year panel: one tab stop per column, the arrow keys move
|
|
54
|
+
* and pick together (selection follows focus, as in a native `<select>`),
|
|
55
|
+
* and typing jumps to a value. The columns edit the very segments the field
|
|
56
|
+
* renders, so there is still one value: picking here shows there at once,
|
|
57
|
+
* and what was typed there is what is picked here.
|
|
58
|
+
*/
|
|
59
|
+
declare class DatePickerTimeColumns extends Component<DatePickerTimeColumnsSignature> {
|
|
60
|
+
#private;
|
|
61
|
+
get columns(): TimeColumn[];
|
|
62
|
+
/** Reserves the columns' width; see the `time` slot. */
|
|
63
|
+
get style(): import("@ember/template").TrustedHTML;
|
|
64
|
+
/**
|
|
65
|
+
* Keeps the picked option in view: centred when the popover opens, and
|
|
66
|
+
* just far enough when it moves after that. Runs again whenever the
|
|
67
|
+
* column's pick changes, whoever changed it.
|
|
68
|
+
*/
|
|
69
|
+
reveal: import("ember-modifier").FunctionBasedModifier<{
|
|
70
|
+
Args: {
|
|
71
|
+
Positional: [number | null];
|
|
72
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
73
|
+
};
|
|
74
|
+
Element: HTMLElement;
|
|
75
|
+
}>;
|
|
76
|
+
select: (column: TimeColumn, value: number, commit: boolean) => void;
|
|
77
|
+
/**
|
|
78
|
+
* Picks the option. Enter also finishes the time, from any column; Space
|
|
79
|
+
* only picks; a pointer finishes it in the last column, so hour then minute
|
|
80
|
+
* is two clicks and done.
|
|
81
|
+
*/
|
|
82
|
+
handleClick: (column: TimeColumn, value: number) => void;
|
|
83
|
+
handleKeydown: (column: TimeColumn, event: KeyboardEvent) => void;
|
|
84
|
+
}
|
|
85
|
+
export { DatePickerTimeColumns, type DatePickerTimeColumnsSignature };
|
|
86
|
+
export default DatePickerTimeColumns;
|
|
87
|
+
//# sourceMappingURL=time-columns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-columns.d.ts","sourceR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