@fusion.dev/helix-headless 0.0.0-dev → 0.0.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/custom-elements.json +4513 -4483
- package/dist/accordion/item/accordion-item.d.ts +13 -15
- package/dist/accordion/item/accordion-item.js +15 -17
- package/dist/announcement/root/announcement-root.d.ts +7 -25
- package/dist/announcement/root/announcement-root.js +7 -20
- package/dist/app-header/root/app-header-root.d.ts +10 -17
- package/dist/app-header/root/app-header-root.js +9 -18
- package/dist/avatar/group/avatar-group.d.ts +10 -19
- package/dist/avatar/group/avatar-group.js +12 -17
- package/dist/avatar/root/avatar-root.d.ts +8 -8
- package/dist/avatar/root/avatar-root.js +19 -20
- package/dist/badge/root/badge-root.d.ts +6 -6
- package/dist/badge/root/badge-root.js +13 -13
- package/dist/bar-chart/root/bar-chart-root.d.ts +21 -29
- package/dist/bar-chart/root/bar-chart-root.js +42 -57
- package/dist/breadcrumbs/breadcrumb/breadcrumb.d.ts +12 -18
- package/dist/breadcrumbs/breadcrumb/breadcrumb.js +13 -16
- package/dist/breadcrumbs/root/breadcrumbs-root.d.ts +9 -28
- package/dist/breadcrumbs/root/breadcrumbs-root.js +9 -28
- package/dist/button/root/button-root.d.ts +84 -94
- package/dist/button/root/button-root.js +82 -92
- package/dist/callout/root/callout-root.d.ts +4 -5
- package/dist/carousel/root/carousel-root.d.ts +59 -71
- package/dist/carousel/root/carousel-root.js +73 -101
- package/dist/chat/composer/chat-composer.d.ts +29 -33
- package/dist/chat/composer/chat-composer.js +40 -44
- package/dist/chat/message/chat-message.d.ts +25 -25
- package/dist/chat/message/chat-message.js +26 -26
- package/dist/chat/root/chat-root.d.ts +28 -41
- package/dist/chat/root/chat-root.js +27 -40
- package/dist/checkbox/root/checkbox-root.d.ts +10 -12
- package/dist/checkbox/root/checkbox-root.js +29 -35
- package/dist/checkbox-group/root/checkbox-group-root.d.ts +32 -45
- package/dist/checkbox-group/root/checkbox-group-root.js +53 -79
- package/dist/code-block/root/code-block-root.d.ts +3 -4
- package/dist/code-block/root/code-block-root.js +8 -12
- package/dist/color-input/root/color-input-root.d.ts +36 -37
- package/dist/color-input/root/color-input-root.js +29 -34
- package/dist/color-picker/color.d.ts +7 -8
- package/dist/color-picker/color.js +7 -8
- package/dist/color-picker/root/color-picker-root.d.ts +55 -57
- package/dist/color-picker/root/color-picker-root.js +60 -64
- package/dist/combobox/root/combobox-root.d.ts +53 -58
- package/dist/combobox/root/combobox-root.js +85 -94
- package/dist/command/root/command-root.d.ts +8 -8
- package/dist/command/root/command-root.js +29 -33
- package/dist/copy-button/root/copy-button-root.d.ts +21 -24
- package/dist/copy-button/root/copy-button-root.js +25 -35
- package/dist/data-table/root/data-table-root.d.ts +77 -76
- package/dist/data-table/root/data-table-root.js +95 -84
- package/dist/data-table/root/order.d.ts +2 -2
- package/dist/data-table/root/order.js +1 -3
- package/dist/date-input/root/date-input-root.d.ts +88 -93
- package/dist/date-input/root/date-input-root.js +147 -158
- package/dist/date-picker/root/date-picker-root.d.ts +75 -83
- package/dist/date-picker/root/date-picker-root.js +120 -143
- package/dist/dialog/root/dialog-root.d.ts +41 -24
- package/dist/dialog/root/dialog-root.js +47 -24
- package/dist/divider/root/divider-root.d.ts +5 -6
- package/dist/divider/root/divider-root.js +4 -5
- package/dist/donut-chart/root/donut-chart-root.d.ts +22 -25
- package/dist/donut-chart/root/donut-chart-root.js +37 -51
- package/dist/drawer/root/drawer-root.d.ts +24 -29
- package/dist/drawer/root/drawer-root.js +15 -22
- package/dist/drilldown/item/drilldown-item.d.ts +14 -14
- package/dist/drilldown/item/drilldown-item.js +24 -26
- package/dist/drilldown/root/drilldown-root.d.ts +8 -10
- package/dist/drilldown/root/drilldown-root.js +6 -7
- package/dist/element-events.generated.js +1 -1
- package/dist/file-input/root/file-input-root.d.ts +20 -24
- package/dist/file-input/root/file-input-root.js +42 -57
- package/dist/format-date/root/format-date-root.js +1 -1
- package/dist/heatmap/root/buckets.d.ts +8 -8
- package/dist/heatmap/root/buckets.js +8 -8
- package/dist/heatmap/root/heatmap-root.d.ts +57 -63
- package/dist/heatmap/root/heatmap-root.js +72 -83
- package/dist/icon/root/icon-root.d.ts +4 -4
- package/dist/icon/root/icon-root.js +9 -9
- package/dist/icon-button/root/icon-button-root.d.ts +4 -6
- package/dist/icon-button/root/icon-button-root.js +4 -6
- package/dist/image/root/image-root.d.ts +49 -59
- package/dist/image/root/image-root.js +55 -65
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/input/root/input-root.d.ts +61 -85
- package/dist/input/root/input-root.js +79 -106
- package/dist/kbd/root/kbd-root.d.ts +8 -7
- package/dist/kbd/root/kbd-root.js +71 -11
- package/dist/legend/root/legend-root.d.ts +1 -1
- package/dist/legend/root/legend-root.js +4 -5
- package/dist/line-chart/root/line-chart-root.d.ts +26 -30
- package/dist/line-chart/root/line-chart-root.js +10 -10
- package/dist/list/item/list-item.d.ts +14 -18
- package/dist/list/item/list-item.js +18 -22
- package/dist/list/root/list-root.d.ts +4 -4
- package/dist/list/root/list-root.js +3 -3
- package/dist/listbox/root/listbox-root.d.ts +31 -58
- package/dist/listbox/root/listbox-root.js +66 -109
- package/dist/megamenu/root/megamenu-root.d.ts +34 -35
- package/dist/megamenu/root/megamenu-root.js +53 -58
- package/dist/menu/item/menu-item.d.ts +39 -53
- package/dist/menu/item/menu-item.js +50 -64
- package/dist/menu/root/menu-root.d.ts +30 -40
- package/dist/menu/root/menu-root.js +49 -82
- package/dist/meter/root/meter-root.d.ts +49 -53
- package/dist/meter/root/meter-root.js +22 -27
- package/dist/navigation/root/navigation-root.js +11 -19
- package/dist/notifications/notification/notification.d.ts +16 -22
- package/dist/notifications/notification/notification.js +21 -27
- package/dist/notifications/root/notifications-root.d.ts +31 -39
- package/dist/notifications/root/notifications-root.js +41 -52
- package/dist/number-input/root/number-input-root.d.ts +31 -33
- package/dist/number-input/root/number-input-root.js +37 -39
- package/dist/option/root/option-root.d.ts +73 -74
- package/dist/option/root/option-root.js +62 -64
- package/dist/outline/root/outline-root.d.ts +38 -44
- package/dist/outline/root/outline-root.js +66 -82
- package/dist/pagination/root/pagination-root.d.ts +87 -92
- package/dist/pagination/root/pagination-root.js +116 -123
- package/dist/pagination/size/pagination-size.d.ts +31 -50
- package/dist/pagination/size/pagination-size.js +35 -55
- package/dist/pagination/summary/pagination-summary.d.ts +12 -12
- package/dist/pagination/summary/pagination-summary.js +18 -18
- package/dist/pin-input/root/pin-input-root.d.ts +53 -70
- package/dist/pin-input/root/pin-input-root.js +74 -94
- package/dist/popover/root/popover-root.d.ts +15 -20
- package/dist/popover/root/popover-root.js +19 -36
- package/dist/progress/root/progress-root.d.ts +12 -14
- package/dist/progress/root/progress-root.js +22 -25
- package/dist/qr-code/root/qr-code-root.d.ts +11 -11
- package/dist/qr-code/root/qr-code-root.js +12 -14
- package/dist/radio/group/radio-group.js +19 -26
- package/dist/radio/root/radio-root.d.ts +12 -13
- package/dist/radio/root/radio-root.js +12 -13
- package/dist/rating/root/rating-root.d.ts +25 -30
- package/dist/rating/root/rating-root.js +43 -50
- package/dist/scroll-area/root/scroll-area-root.d.ts +11 -14
- package/dist/scroll-area/root/scroll-area-root.js +39 -33
- package/dist/select/root/select-root.d.ts +7 -12
- package/dist/select/root/select-root.js +40 -55
- package/dist/slider/root/slider-root.d.ts +53 -60
- package/dist/slider/root/slider-root.js +74 -85
- package/dist/sparkline/root/sparkline-root.d.ts +43 -47
- package/dist/sparkline/root/sparkline-root.js +23 -32
- package/dist/speed-dial/item/speed-dial-item.d.ts +6 -6
- package/dist/speed-dial/item/speed-dial-item.js +9 -9
- package/dist/speed-dial/root/speed-dial-root.d.ts +21 -25
- package/dist/speed-dial/root/speed-dial-root.js +32 -40
- package/dist/splitter/root/splitter-root.d.ts +98 -111
- package/dist/splitter/root/splitter-root.js +96 -123
- package/dist/stat/root/stat-root.d.ts +2 -7
- package/dist/stat/root/stat-root.js +0 -5
- package/dist/steps/step/step.d.ts +19 -24
- package/dist/steps/step/step.js +27 -32
- package/dist/switch/root/switch-root.js +2 -2
- package/dist/table/column/table-column.d.ts +54 -60
- package/dist/table/column/table-column.js +95 -68
- package/dist/table/root/table-root.d.ts +5 -6
- package/dist/table/root/table-root.js +7 -10
- package/dist/tabs/panel/tab-panel.d.ts +21 -25
- package/dist/tabs/panel/tab-panel.js +25 -29
- package/dist/tabs/root/tabs-root.d.ts +25 -34
- package/dist/tabs/root/tabs-root.js +22 -28
- package/dist/tabs/tab/tab.d.ts +12 -12
- package/dist/tabs/tab/tab.js +19 -20
- package/dist/textarea/root/textarea-root.d.ts +36 -36
- package/dist/textarea/root/textarea-root.js +43 -47
- package/dist/time-input/root/time-input-root.d.ts +58 -68
- package/dist/time-input/root/time-input-root.js +62 -77
- package/dist/time-picker/root/time-picker-root.d.ts +73 -79
- package/dist/time-picker/root/time-picker-root.js +72 -84
- package/dist/timeline/item/timeline-item.d.ts +8 -11
- package/dist/timeline/item/timeline-item.js +8 -11
- package/dist/timeline/root/timeline-root.d.ts +5 -7
- package/dist/timeline/root/timeline-root.js +5 -7
- package/dist/toast/item/toast-item.d.ts +9 -27
- package/dist/toast/item/toast-item.js +19 -41
- package/dist/toast/root/toast-root.d.ts +10 -14
- package/dist/toast/root/toast-root.js +4 -5
- package/dist/toggle/group/toggle-group.d.ts +6 -15
- package/dist/toggle/group/toggle-group.js +21 -36
- package/dist/toggle/root/toggle-root.d.ts +26 -27
- package/dist/toggle/root/toggle-root.js +30 -31
- package/dist/toolbar/root/toolbar-root.d.ts +7 -10
- package/dist/toolbar/root/toolbar-root.js +10 -14
- package/dist/tooltip/root/tooltip-root.d.ts +52 -59
- package/dist/tooltip/root/tooltip-root.js +98 -93
- package/dist/tour/root/tour-root.d.ts +19 -23
- package/dist/tour/root/tour-root.js +31 -41
- package/dist/tour/stop/tour-stop.d.ts +14 -15
- package/dist/tour/stop/tour-stop.js +31 -34
- package/dist/tree/item/tree-item.d.ts +30 -35
- package/dist/tree/item/tree-item.js +43 -55
- package/dist/tree/root/tree-root.d.ts +7 -10
- package/dist/tree/root/tree-root.js +33 -42
- package/dist/trend/root/trend-root.d.ts +3 -5
- package/dist/trend/root/trend-root.js +5 -9
- package/dist/video/root/video-root.d.ts +100 -124
- package/dist/video/root/video-root.js +142 -176
- package/dist/video-playlist/item/video-playlist-item.d.ts +16 -16
- package/dist/video-playlist/item/video-playlist-item.js +24 -24
- package/dist/video-playlist/menu/video-playlist-menu.d.ts +5 -8
- package/dist/video-playlist/menu/video-playlist-menu.js +20 -29
- package/dist/video-playlist/root/video-playlist-root.d.ts +16 -11
- package/dist/video-playlist/root/video-playlist-root.js +21 -25
- package/dist/virtual-list/root/virtual-list-root.d.ts +8 -12
- package/dist/virtual-list/root/virtual-list-root.js +11 -16
- package/jsx.d.ts +9797 -12561
- package/package.json +6 -6
- package/vue.d.ts +2684 -3228
|
@@ -31,8 +31,7 @@ declare const HelixHeadlessDatePicker_base: (new (...args: any[]) => import("@fu
|
|
|
31
31
|
* Left unset, month and day names come from the runtime's own locale, and a
|
|
32
32
|
* server and a browser need not agree on what that is.
|
|
33
33
|
*
|
|
34
|
-
* `helix-before-change
|
|
35
|
-
* form control. A control whose value changes dispatches `helix-before-change` here:
|
|
34
|
+
* A control whose value changes dispatches `helix-before-change`:
|
|
36
35
|
* `Input`, `Select`, `Listbox`, `Radio.Group` and `Toggle.Group` all do, and a
|
|
37
36
|
* calendar submitting a date is the same kind of thing. `helix-select` stays
|
|
38
37
|
* what it is elsewhere, which is a row or an item being chosen in something
|
|
@@ -78,19 +77,9 @@ declare const HelixHeadlessDatePicker_base: (new (...args: any[]) => import("@fu
|
|
|
78
77
|
*/
|
|
79
78
|
export declare class HelixHeadlessDatePicker extends HelixHeadlessDatePicker_base {
|
|
80
79
|
/**
|
|
81
|
-
*
|
|
82
|
-
*/
|
|
83
|
-
mode?: 'range' | 'multiple';
|
|
84
|
-
/**
|
|
85
|
-
* How many months to show, side by side.
|
|
86
|
-
*/
|
|
87
|
-
months: number;
|
|
88
|
-
/**
|
|
89
|
-
* Locale for month and day names.
|
|
90
|
-
*
|
|
91
|
-
* Absent uses the runtime's own.
|
|
80
|
+
* Month to open on, where nothing declared one.
|
|
92
81
|
*/
|
|
93
|
-
|
|
82
|
+
defaultMonth: string;
|
|
94
83
|
/**
|
|
95
84
|
* Dates that cannot be chosen, comma separated, as `YYYY-MM-DD`.
|
|
96
85
|
*/
|
|
@@ -99,73 +88,78 @@ export declare class HelixHeadlessDatePicker extends HelixHeadlessDatePicker_bas
|
|
|
99
88
|
* Days of the week that cannot be chosen, comma separated, `0` to `6`.
|
|
100
89
|
*/
|
|
101
90
|
disableDays: string;
|
|
91
|
+
/**
|
|
92
|
+
* First column of the week, `0` for Sunday through `6` for Saturday.
|
|
93
|
+
*/
|
|
94
|
+
firstDayOfWeek: number;
|
|
102
95
|
/**
|
|
103
96
|
* Whether the current selection fails validation.
|
|
104
97
|
*/
|
|
105
98
|
invalid: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Accessible name for the grid.
|
|
101
|
+
*/
|
|
102
|
+
label: string;
|
|
106
103
|
/**
|
|
107
104
|
* The month on show, as `YYYY-MM`. Follows `value`, then the current month.
|
|
108
105
|
*
|
|
109
106
|
* Separate from `value` on purpose, so paging selects nothing and a consumer
|
|
110
|
-
* can drive the view.
|
|
111
|
-
*
|
|
112
|
-
* never told. Reading gives the month on show; writing declares it theirs,
|
|
113
|
-
* and `default-month` seeds one the calendar owns.
|
|
114
|
-
*
|
|
115
|
-
*
|
|
107
|
+
* can drive the view. Reading gives the month on show; writing sets it, and
|
|
108
|
+
* `default-month` seeds one the calendar keeps until somebody does.
|
|
116
109
|
*/
|
|
117
110
|
get month(): string;
|
|
118
111
|
set month(next: string);
|
|
119
112
|
/**
|
|
120
|
-
*
|
|
113
|
+
* Locale for month and day names.
|
|
121
114
|
*
|
|
122
|
-
*
|
|
123
|
-
* `locale`, and it carried two hardcoded English names with no way to change
|
|
124
|
-
* them: a calendar rendering its own month names in Japanese still announced
|
|
125
|
-
* its controls in English. `attribute:` spelled out, since Lit lowercases a
|
|
126
|
-
* camelCase name rather than dash-casing it.
|
|
115
|
+
* Absent uses the runtime's own.
|
|
127
116
|
*/
|
|
128
|
-
|
|
117
|
+
locale: string;
|
|
129
118
|
/**
|
|
130
|
-
*
|
|
119
|
+
* Latest selectable date, as `YYYY-MM-DD`.
|
|
131
120
|
*/
|
|
132
|
-
|
|
121
|
+
max: string;
|
|
133
122
|
/**
|
|
134
|
-
*
|
|
123
|
+
* Earliest selectable date, as `YYYY-MM-DD`.
|
|
135
124
|
*/
|
|
136
|
-
|
|
125
|
+
min: string;
|
|
137
126
|
/** The month on show, whoever set it, and `undefined` until somebody has. */
|
|
138
127
|
private monthState;
|
|
139
128
|
/**
|
|
140
|
-
*
|
|
129
|
+
* How many dates can be held at once.
|
|
141
130
|
*/
|
|
142
|
-
|
|
131
|
+
mode?: 'range' | 'multiple';
|
|
143
132
|
/**
|
|
144
|
-
* How
|
|
145
|
-
*
|
|
146
|
-
* `<input type="date" step>`'s own unit, counted from `min` where there is
|
|
147
|
-
* one and from 1 January 1970 where there is not, which is the platform's own
|
|
148
|
-
* base. A booking calendar that only takes Mondays is `step="7"` with a `min`
|
|
149
|
-
* on a Monday, and there was no way to say that: `disable-dates` takes a list
|
|
150
|
-
* and a year of Mondays is not a list anybody writes.
|
|
151
|
-
*
|
|
152
|
-
* One is every date and needs no rule, which is why anything below one is
|
|
153
|
-
* treated as one rather than as an error: a step of zero would block every
|
|
154
|
-
* date including the one already chosen.
|
|
133
|
+
* How many months to show, side by side.
|
|
155
134
|
*/
|
|
156
|
-
|
|
135
|
+
months: number;
|
|
157
136
|
/**
|
|
158
|
-
*
|
|
137
|
+
* Accessible name for the control that pages forward.
|
|
159
138
|
*/
|
|
160
|
-
|
|
139
|
+
nextLabel: string;
|
|
161
140
|
/**
|
|
162
|
-
* Accessible name for the
|
|
141
|
+
* Accessible name for the control that pages back.
|
|
142
|
+
*
|
|
143
|
+
* A property because a calendar rendering its own month names from `locale`
|
|
144
|
+
* would otherwise still announce its controls in English. `attribute:`
|
|
145
|
+
* spelled out, since Lit lowercases a camelCase name rather than dash-casing
|
|
146
|
+
* it.
|
|
163
147
|
*/
|
|
164
|
-
|
|
148
|
+
previousLabel: string;
|
|
165
149
|
/**
|
|
166
|
-
*
|
|
150
|
+
* Whether the control refuses changes while still submitting its value.
|
|
151
|
+
*
|
|
152
|
+
* **Enforced by refusing every request in one place**, which is the seam this
|
|
153
|
+
* component already has: `requestValue` is what every path here comes through,
|
|
154
|
+
* and gating it once is what stops the next call site from being written
|
|
155
|
+
* without the check.
|
|
156
|
+
*
|
|
157
|
+
* Not `disabled`, which is the confusion worth naming: a disabled control
|
|
158
|
+
* submits nothing and leaves the tab order, and a read-only one submits its
|
|
159
|
+
* value and stays reachable, which is what a form showing a value somebody
|
|
160
|
+
* else set needs.
|
|
167
161
|
*/
|
|
168
|
-
|
|
162
|
+
readOnly: boolean;
|
|
169
163
|
/**
|
|
170
164
|
* The date the grid's tab stop is on.
|
|
171
165
|
*
|
|
@@ -184,7 +178,7 @@ export declare class HelixHeadlessDatePicker extends HelixHeadlessDatePicker_bas
|
|
|
184
178
|
*
|
|
185
179
|
* Split out from `shown` so `month` can report what is on display without the
|
|
186
180
|
* two calling each other: `month` reading `shown` and `shown` reading `month`
|
|
187
|
-
* is a stack overflow
|
|
181
|
+
* is a stack overflow.
|
|
188
182
|
*/
|
|
189
183
|
private get derivedMonth();
|
|
190
184
|
/**
|
|
@@ -206,11 +200,10 @@ export declare class HelixHeadlessDatePicker extends HelixHeadlessDatePicker_bas
|
|
|
206
200
|
/**
|
|
207
201
|
* Whether a date is barred, by bound, by weekday, or by name.
|
|
208
202
|
*
|
|
209
|
-
* `barred`, not `disabled`:
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
* the library.
|
|
203
|
+
* `barred`, not `disabled`: `HelixFormElement.disabled` is a boolean about the
|
|
204
|
+
* whole control, and a method and a flag cannot share a name. "Disabled" on a
|
|
205
|
+
* control means one thing everywhere else in the library, so the method is the
|
|
206
|
+
* one that moves.
|
|
214
207
|
*/
|
|
215
208
|
private barred;
|
|
216
209
|
/**
|
|
@@ -218,8 +211,8 @@ export declare class HelixHeadlessDatePicker extends HelixHeadlessDatePicker_bas
|
|
|
218
211
|
*
|
|
219
212
|
* `helix-navigate` and not `helix-change`: paging chooses nothing, and a
|
|
220
213
|
* consumer driving the view has to hear that it moved without being told the
|
|
221
|
-
* answer did.
|
|
222
|
-
*
|
|
214
|
+
* answer did. Refusing the event is how they take the decision, and nothing
|
|
215
|
+
* moves.
|
|
223
216
|
*/
|
|
224
217
|
private show;
|
|
225
218
|
private moveTo;
|
|
@@ -235,25 +228,25 @@ export declare class HelixHeadlessDatePicker extends HelixHeadlessDatePicker_bas
|
|
|
235
228
|
connectedCallback(): void;
|
|
236
229
|
disconnectedCallback(): void;
|
|
237
230
|
/**
|
|
238
|
-
* Whether the
|
|
239
|
-
*
|
|
240
|
-
* **Enforced by refusing every request in one place**, which is the seam this
|
|
241
|
-
* component already has: `requestValue` is what every path here comes through,
|
|
242
|
-
* and gating it once is what stops the next call site from being written
|
|
243
|
-
* without the check.
|
|
244
|
-
*
|
|
245
|
-
* Not `disabled`, which is the confusion worth naming: a disabled control
|
|
246
|
-
* submits nothing and leaves the tab order, and a read-only one submits its
|
|
247
|
-
* value and stays reachable, which is what a form showing a value somebody
|
|
248
|
-
* else set needs.
|
|
231
|
+
* Whether the form refuses to submit while nothing is chosen.
|
|
249
232
|
*/
|
|
250
|
-
|
|
233
|
+
required: boolean;
|
|
251
234
|
/** Refuses every change while read-only. See `readOnly`. */
|
|
252
235
|
requestValue(next: string): boolean;
|
|
253
236
|
/**
|
|
254
|
-
*
|
|
237
|
+
* How far apart the selectable dates are, in days.
|
|
238
|
+
*
|
|
239
|
+
* `<input type="date" step>`'s own unit, counted from `min` where there is
|
|
240
|
+
* one and from 1 January 1970 where there is not, which is the platform's own
|
|
241
|
+
* base. A booking calendar that only takes Mondays is `step="7"` with a `min`
|
|
242
|
+
* on a Monday, which `disable-dates` cannot express: it takes a list, and a
|
|
243
|
+
* year of Mondays is not a list anybody writes.
|
|
244
|
+
*
|
|
245
|
+
* One is every date and needs no rule, which is why anything below one is
|
|
246
|
+
* treated as one rather than as an error: a step of zero would block every
|
|
247
|
+
* date including the one already chosen.
|
|
255
248
|
*/
|
|
256
|
-
|
|
249
|
+
step: number;
|
|
257
250
|
/**
|
|
258
251
|
* Reports "required and empty", or clears it.
|
|
259
252
|
*
|
|
@@ -296,21 +289,20 @@ export declare class HelixHeadlessDatePicker extends HelixHeadlessDatePicker_bas
|
|
|
296
289
|
/**
|
|
297
290
|
* How many months are shown, clamped once.
|
|
298
291
|
*
|
|
299
|
-
*
|
|
300
|
-
* identified
|
|
301
|
-
* and
|
|
302
|
-
* true for `NaN`.
|
|
292
|
+
* One getter for both readers. Clamping at the call site while the last month
|
|
293
|
+
* is identified from the raw `months` renders nothing for a zero, a negative
|
|
294
|
+
* or a non-numeric value, and takes the forward control with it, since
|
|
295
|
+
* `index === this.months - 1` is never true for `NaN`.
|
|
303
296
|
*/
|
|
304
297
|
private get monthCount();
|
|
305
298
|
/**
|
|
306
299
|
* The three date formatters, built once per locale rather than per render.
|
|
307
300
|
*
|
|
308
|
-
* `Intl.DateTimeFormat`
|
|
309
|
-
* but `locale`,
|
|
310
|
-
* constructions for every month on show, on every
|
|
311
|
-
* calendar
|
|
312
|
-
*
|
|
313
|
-
* a crisis and is pure waste.
|
|
301
|
+
* `Intl.DateTimeFormat` costs about a quarter of a millisecond to construct
|
|
302
|
+
* and these depend on nothing but `locale`, so building them inside the
|
|
303
|
+
* per-month render is three constructions for every month on show, on every
|
|
304
|
+
* update: a two-month calendar rebuilds six each time an arrow key moves the
|
|
305
|
+
* anchor.
|
|
314
306
|
*
|
|
315
307
|
* Keyed on the locale so a change to it is picked up, which a plain lazy
|
|
316
308
|
* field would not do.
|