@aurodesignsystem-dev/auro-formkit 0.0.0-pr1628.12 → 0.0.0-pr1628.14
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/components/checkbox/demo/customize.min.js +1 -1
- package/components/checkbox/demo/getting-started.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/api.md +39 -38
- package/components/combobox/demo/css-only.md +2 -2
- package/components/combobox/demo/customize.md +50 -2
- package/components/combobox/demo/customize.min.js +14 -17
- package/components/combobox/demo/design.md +2 -0
- package/components/combobox/demo/getting-started.md +9 -7
- package/components/combobox/demo/getting-started.min.js +14 -17
- package/components/combobox/demo/index.md +4 -0
- package/components/combobox/demo/index.min.js +14 -17
- package/components/combobox/dist/auro-combobox.d.ts +10 -1
- package/components/combobox/dist/index.js +14 -17
- package/components/combobox/dist/registered.js +14 -17
- package/components/counter/demo/api.md +28 -28
- package/components/counter/demo/css-only.md +1 -1
- package/components/counter/demo/customize.md +2 -2
- package/components/counter/demo/customize.min.js +12 -11
- package/components/counter/demo/getting-started.md +2 -2
- package/components/counter/demo/getting-started.min.js +12 -11
- package/components/counter/demo/index.min.js +12 -11
- package/components/counter/demo/voiceover.md +2 -2
- package/components/counter/demo/why-counter.md +1 -1
- package/components/counter/dist/auro-counter-group.d.ts +7 -6
- package/components/counter/dist/auro-counter.d.ts +3 -3
- package/components/counter/dist/index.js +12 -11
- package/components/counter/dist/registered.js +12 -11
- package/components/datepicker/demo/accessibility.md +3 -3
- package/components/datepicker/demo/api.md +7 -8
- package/components/datepicker/demo/css-only.md +1 -1
- package/components/datepicker/demo/customize.md +2 -2
- package/components/datepicker/demo/customize.min.js +26 -38
- package/components/datepicker/demo/getting-started.md +6 -3
- package/components/datepicker/demo/getting-started.min.js +26 -38
- package/components/datepicker/demo/index.min.js +26 -38
- package/components/datepicker/demo/voiceover.md +2 -2
- package/components/datepicker/dist/auro-calendar-cell.d.ts +3 -2
- package/components/datepicker/dist/auro-calendar-month.d.ts +2 -1
- package/components/datepicker/dist/auro-calendar.d.ts +8 -7
- package/components/datepicker/dist/auro-datepicker.d.ts +6 -9
- package/components/datepicker/dist/index.js +26 -38
- package/components/datepicker/dist/registered.js +26 -38
- package/components/datepicker/dist/utilities.d.ts +1 -1
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts +1 -1
- package/components/dropdown/demo/customize.min.js +1 -1
- package/components/dropdown/demo/getting-started.min.js +3 -15
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/customize.min.js +60 -86
- package/components/form/demo/getting-started.min.js +60 -86
- package/components/form/demo/index.min.js +60 -86
- package/components/form/demo/registerDemoDeps.min.js +60 -86
- package/components/input/demo/api.md +12 -12
- package/components/input/demo/css-only.md +4 -4
- package/components/input/demo/customize.md +4 -4
- package/components/input/demo/customize.min.js +2 -14
- package/components/input/demo/getting-started.min.js +2 -14
- package/components/input/demo/index.min.js +2 -14
- package/components/input/demo/voiceover.md +1 -1
- package/components/input/demo/why-input.md +2 -2
- package/components/input/dist/base-input.d.ts +0 -12
- package/components/input/dist/index.js +2 -14
- package/components/input/dist/registered.js +2 -14
- package/components/radio/demo/customize.min.js +1 -1
- package/components/radio/demo/getting-started.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/api.md +46 -46
- package/components/select/demo/customize.md +48 -0
- package/components/select/demo/customize.min.js +4 -4
- package/components/select/demo/design.md +6 -0
- package/components/select/demo/getting-started.min.js +4 -4
- package/components/select/demo/index.md +2 -0
- package/components/select/demo/index.min.js +4 -4
- package/components/select/demo/keyboard-behavior.md +1 -1
- package/components/select/demo/voiceover.md +5 -5
- package/components/select/dist/auro-select.d.ts +2 -2
- package/components/select/dist/index.js +4 -4
- package/components/select/dist/registered.js +4 -4
- package/custom-elements.json +233 -2462
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -1203,7 +1203,7 @@
|
|
|
1203
1203
|
"declarations": [
|
|
1204
1204
|
{
|
|
1205
1205
|
"kind": "class",
|
|
1206
|
-
"description": "A text field with a list of options that narrows as people type, so they can choose an option or enter their own value, such as a destination airport.\n\n**Key capabilities**\n- **Suggestion or filter**: Set `behavior=\"filter\"` to require choosing an option from the menu; the default, `suggestion`, also accepts typed text.\n- **Filtering as people type**: Typing always hides options whose text doesn't include the typed text, unless `noFilter` is set.\n- **Validation**: Set `required` to require a value, and `setCustomValidity` to change the error message.\n- **Fullscreen on small screens**: Set `fullscreenBreakpoint` to choose the largest screen size at which the list opens as a fullscreen dialog.\n- **Layouts**: Set `layout` to `classic`, `emphasized`, or `snowflake` to change the overall look.\n\n**Example**\n\n```html\n<auro-combobox>\n <span slot=\"bib.fullscreen.headline\">Choose a destination</span>\n <span slot=\"label\">Destination</span>\n <span slot=\"ariaLabel.input.clear\">Clear destination</span>\n <auro-menu>\n <auro-menuoption value=\"SEA\">Seattle</auro-menuoption>\n <auro-menuoption value=\"LAX\">Los Angeles</auro-menuoption>\n </auro-menu>\n</auro-combobox>\n```",
|
|
1206
|
+
"description": "A text field with a list of options that narrows as people type, so they can choose an option or enter their own value, such as a destination airport.\n\n**Key capabilities**\n- **Suggestion or filter**: Set `behavior=\"filter\"` to require choosing an option from the menu; the default, `suggestion`, also accepts typed text.\n- **Filtering as people type**: Typing always hides options whose text doesn't include the typed text, unless `noFilter` is set.\n- **Validation**: Set `required` to require a value, and `setCustomValidity` to change the error message.\n- **Fullscreen on small screens**: Set `fullscreenBreakpoint` to choose the largest screen size at which the list opens as a fullscreen dialog.\n- **Layouts**: Set `layout` to `classic`, `emphasized`, or `snowflake` to change the overall look.\n\n**Example**\n\n```html\n<auro-combobox>\n <span slot=\"bib.fullscreen.headline\">Choose a destination</span>\n <span slot=\"label\">Destination</span>\n <span slot=\"ariaLabel.input.clear\">Clear destination</span>\n <span slot=\"ariaLabel.bib.close\">Close destination list</span>\n <auro-menu>\n <auro-menuoption value=\"SEA\">Seattle</auro-menuoption>\n <auro-menuoption value=\"LAX\">Los Angeles</auro-menuoption>\n </auro-menu>\n</auro-combobox>\n```",
|
|
1207
1207
|
"name": "AuroCombobox",
|
|
1208
1208
|
"cssParts": [
|
|
1209
1209
|
{
|
|
@@ -1957,6 +1957,7 @@
|
|
|
1957
1957
|
{
|
|
1958
1958
|
"kind": "method",
|
|
1959
1959
|
"name": "setClearBtnFocus",
|
|
1960
|
+
"description": "Moves focus to the clear button in the trigger input, after two animation frames.\nFocuses the input first, because the clear button can't take focus while focus is on the page body,\nsuch as after a click selection closes the bib.",
|
|
1960
1961
|
"privacy": "private"
|
|
1961
1962
|
},
|
|
1962
1963
|
{
|
|
@@ -2009,6 +2010,7 @@
|
|
|
2009
2010
|
{
|
|
2010
2011
|
"kind": "method",
|
|
2011
2012
|
"name": "setInputFocus",
|
|
2013
|
+
"description": "Moves focus to the input people type in: the native `<input>` in the fullscreen bib while that bib is open,\nor the trigger input otherwise.\nIn the fullscreen bib, it first copies the trigger's text into the bib's input, then puts the cursor at the end of the text.",
|
|
2012
2014
|
"privacy": "private"
|
|
2013
2015
|
},
|
|
2014
2016
|
{
|
|
@@ -2033,6 +2035,7 @@
|
|
|
2033
2035
|
{
|
|
2034
2036
|
"kind": "method",
|
|
2035
2037
|
"name": "setTriggerInputFocus",
|
|
2038
|
+
"description": "Moves focus to the native `<input>` in the trigger after two animation frames, so focus lands\nafter the input finishes rendering. Does nothing when the trigger has no native `<input>` yet.",
|
|
2036
2039
|
"privacy": "private"
|
|
2037
2040
|
},
|
|
2038
2041
|
{
|
|
@@ -2310,7 +2313,7 @@
|
|
|
2310
2313
|
"type": {
|
|
2311
2314
|
"text": "string"
|
|
2312
2315
|
},
|
|
2313
|
-
"description": "Sets or gets the combobox's value: the chosen option's `value`, or the text in the input when no option is chosen.\nA value that matches
|
|
2316
|
+
"description": "Sets or gets the combobox's value: the chosen option's `value`, or the text in the input when no option is chosen.\nA value that matches only `disabled` or `static` options is rejected, which clears `value` and `optionSelected` to `undefined`.\nA value that matches a `hidden` option, such as one filtered out by typing, still selects it.",
|
|
2314
2317
|
"attribute": "value",
|
|
2315
2318
|
"category": "behavior"
|
|
2316
2319
|
},
|
|
@@ -2670,7 +2673,7 @@
|
|
|
2670
2673
|
"type": {
|
|
2671
2674
|
"text": "string"
|
|
2672
2675
|
},
|
|
2673
|
-
"description": "Sets or gets the combobox's value: the chosen option's `value`, or the text in the input when no option is chosen.\nA value that matches
|
|
2676
|
+
"description": "Sets or gets the combobox's value: the chosen option's `value`, or the text in the input when no option is chosen.\nA value that matches only `disabled` or `static` options is rejected, which clears `value` and `optionSelected` to `undefined`.\nA value that matches a `hidden` option, such as one filtered out by typing, still selects it.",
|
|
2674
2677
|
"fieldName": "value",
|
|
2675
2678
|
"category": "behavior"
|
|
2676
2679
|
},
|
|
@@ -2916,7 +2919,7 @@
|
|
|
2916
2919
|
{
|
|
2917
2920
|
"kind": "method",
|
|
2918
2921
|
"name": "configureCounters",
|
|
2919
|
-
"description": "
|
|
2922
|
+
"description": "Sets up every `auro-counter` and `[auro-counter]` element in the group.\nFor each counter, this method copies the group's `appearance` and `onDark` values,\ncalls `updateValue()` on `input`, and calls `updateValidity()` on `auroFormElement-validated`.\nIt then calls `updateValue()` and `updateValidity()` once to sync the group's total and validity.",
|
|
2920
2923
|
"privacy": "private"
|
|
2921
2924
|
},
|
|
2922
2925
|
{
|
|
@@ -3015,7 +3018,7 @@
|
|
|
3015
3018
|
"parameters": [
|
|
3016
3019
|
{
|
|
3017
3020
|
"name": "event",
|
|
3018
|
-
"description": "`slotchange` event.",
|
|
3021
|
+
"description": "The `slotchange` event.",
|
|
3019
3022
|
"type": {
|
|
3020
3023
|
"text": "Event"
|
|
3021
3024
|
}
|
|
@@ -3402,7 +3405,7 @@
|
|
|
3402
3405
|
"type": {
|
|
3403
3406
|
"text": "'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'"
|
|
3404
3407
|
},
|
|
3405
|
-
"description": "Sets the shape of the dropdown.
|
|
3408
|
+
"description": "Sets the shape of the dropdown's trigger. Use `classic` with the `classic` layout and `snowflake` with the `snowflake` layout; when not set, it matches the layout. Applies only when `isDropdown` is set.",
|
|
3406
3409
|
"default": "'classic'",
|
|
3407
3410
|
"attribute": "shape",
|
|
3408
3411
|
"reflects": true,
|
|
@@ -3440,7 +3443,7 @@
|
|
|
3440
3443
|
"type": {
|
|
3441
3444
|
"text": "'xs' | 'sm' | 'md' | 'lg' | 'xl'"
|
|
3442
3445
|
},
|
|
3443
|
-
"description": "Sets the
|
|
3446
|
+
"description": "Sets the height of the dropdown's trigger, from `xs`, the shortest, to `xl`, the tallest. The `classic` and `snowflake` shapes have a fixed height, so `size` doesn't change them. Applies only when `isDropdown` is set.",
|
|
3444
3447
|
"default": "'xl'",
|
|
3445
3448
|
"attribute": "size",
|
|
3446
3449
|
"reflects": true,
|
|
@@ -3726,7 +3729,7 @@
|
|
|
3726
3729
|
"type": {
|
|
3727
3730
|
"text": "'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'"
|
|
3728
3731
|
},
|
|
3729
|
-
"description": "Sets the shape of the dropdown.
|
|
3732
|
+
"description": "Sets the shape of the dropdown's trigger. Use `classic` with the `classic` layout and `snowflake` with the `snowflake` layout; when not set, it matches the layout. Applies only when `isDropdown` is set.",
|
|
3730
3733
|
"default": "'classic'",
|
|
3731
3734
|
"fieldName": "shape",
|
|
3732
3735
|
"relevantWhen": "isDropdown",
|
|
@@ -3748,7 +3751,7 @@
|
|
|
3748
3751
|
"type": {
|
|
3749
3752
|
"text": "'xs' | 'sm' | 'md' | 'lg' | 'xl'"
|
|
3750
3753
|
},
|
|
3751
|
-
"description": "Sets the
|
|
3754
|
+
"description": "Sets the height of the dropdown's trigger, from `xs`, the shortest, to `xl`, the tallest. The `classic` and `snowflake` shapes have a fixed height, so `size` doesn't change them. Applies only when `isDropdown` is set.",
|
|
3752
3755
|
"default": "'xl'",
|
|
3753
3756
|
"fieldName": "size",
|
|
3754
3757
|
"relevantWhen": "isDropdown",
|
|
@@ -3891,7 +3894,7 @@
|
|
|
3891
3894
|
}
|
|
3892
3895
|
}
|
|
3893
3896
|
],
|
|
3894
|
-
"description": "Decreases the value by 1, or by the given amount. Does nothing when the counter is disabled
|
|
3897
|
+
"description": "Decreases the value by 1, or by the given amount. Does nothing while the minus button is off: when the counter is disabled, its value is at or below `min`, or its group's total is at or below the group's `min`. It doesn't stop a larger step at `min`.",
|
|
3895
3898
|
"return": {
|
|
3896
3899
|
"type": {
|
|
3897
3900
|
"text": "void"
|
|
@@ -3987,7 +3990,7 @@
|
|
|
3987
3990
|
}
|
|
3988
3991
|
}
|
|
3989
3992
|
],
|
|
3990
|
-
"description": "Increases the value by 1, or by the given amount. Does nothing when the counter is disabled
|
|
3993
|
+
"description": "Increases the value by 1, or by the given amount. Does nothing while the plus button is off: when the counter is disabled, its value is at or above `max`, or its group's total has reached the group's `max`. It doesn't cap a larger step at `max`.",
|
|
3991
3994
|
"return": {
|
|
3992
3995
|
"type": {
|
|
3993
3996
|
"text": "void"
|
|
@@ -4137,7 +4140,7 @@
|
|
|
4137
4140
|
{
|
|
4138
4141
|
"name": "force",
|
|
4139
4142
|
"default": "false",
|
|
4140
|
-
"description": "If true,
|
|
4143
|
+
"description": "If true, checks `min` and `max` even while the counter has focus. If false, skips those checks while the counter has focus.",
|
|
4141
4144
|
"optional": true,
|
|
4142
4145
|
"type": {
|
|
4143
4146
|
"text": "boolean"
|
|
@@ -4181,2448 +4184,280 @@
|
|
|
4181
4184
|
}
|
|
4182
4185
|
}
|
|
4183
4186
|
],
|
|
4184
|
-
"attribute": "value",
|
|
4185
|
-
"category": "behavior"
|
|
4186
|
-
},
|
|
4187
|
-
{
|
|
4188
|
-
"kind": "field",
|
|
4189
|
-
"name": "onDark",
|
|
4190
|
-
"privacy": "public",
|
|
4191
|
-
"type": {
|
|
4192
|
-
"text": "boolean"
|
|
4193
|
-
},
|
|
4194
|
-
"description": "Deprecated: Use `appearance=\"inverse\"` instead.\nShows the counter in colors for dark backgrounds.",
|
|
4195
|
-
"deprecated": "Use `appearance=\"inverse\"` instead.",
|
|
4196
|
-
"attribute": "ondark",
|
|
4197
|
-
"reflects": true,
|
|
4198
|
-
"category": "ui"
|
|
4199
|
-
}
|
|
4200
|
-
],
|
|
4201
|
-
"events": [
|
|
4202
|
-
{
|
|
4203
|
-
"name": "input",
|
|
4204
|
-
"type": {
|
|
4205
|
-
"text": "CustomEvent"
|
|
4206
|
-
},
|
|
4207
|
-
"description": "Fires whenever `value` changes, including when the counter sets its starting value, with the new number in `event.detail.value`. It doesn't currently bubble, so listen on the counter itself."
|
|
4208
|
-
}
|
|
4209
|
-
],
|
|
4210
|
-
"attributes": [
|
|
4211
|
-
{
|
|
4212
|
-
"name": "appearance",
|
|
4213
|
-
"type": {
|
|
4214
|
-
"text": "'default' | 'inverse'"
|
|
4215
|
-
},
|
|
4216
|
-
"description": "Sets the colors to match the background behind the counter. Use `inverse` on dark backgrounds and `default` on light ones.",
|
|
4217
|
-
"default": "'default'",
|
|
4218
|
-
"fieldName": "appearance",
|
|
4219
|
-
"category": "ui"
|
|
4220
|
-
},
|
|
4221
|
-
{
|
|
4222
|
-
"name": "disabled",
|
|
4223
|
-
"type": {
|
|
4224
|
-
"text": "boolean"
|
|
4225
|
-
},
|
|
4226
|
-
"description": "Turns the counter off. A disabled counter is shown in a muted style, its buttons can't be clicked, and it's removed from the keyboard tab order.",
|
|
4227
|
-
"fieldName": "disabled",
|
|
4228
|
-
"category": "ui"
|
|
4229
|
-
},
|
|
4230
|
-
{
|
|
4231
|
-
"name": "error",
|
|
4232
|
-
"type": {
|
|
4233
|
-
"text": "string"
|
|
4234
|
-
},
|
|
4235
|
-
"description": "Sets a custom error message, such as \"Select at least one adult\", and marks the counter invalid. The message replaces the help text. Set the `error` attribute before the counter first renders, or call `validate()` after changing it: setting only the property, or changing the attribute later, doesn't currently update `validity`.",
|
|
4236
|
-
"fieldName": "error",
|
|
4237
|
-
"category": "behavior"
|
|
4238
|
-
},
|
|
4239
|
-
{
|
|
4240
|
-
"name": "max",
|
|
4241
|
-
"type": {
|
|
4242
|
-
"text": "number"
|
|
4243
|
-
},
|
|
4244
|
-
"description": "Sets the highest value the counter allows. The plus button turns off at this value.",
|
|
4245
|
-
"default": "9",
|
|
4246
|
-
"fieldName": "max",
|
|
4247
|
-
"minimum": 0,
|
|
4248
|
-
"maximum": 9,
|
|
4249
|
-
"category": "behavior"
|
|
4250
|
-
},
|
|
4251
|
-
{
|
|
4252
|
-
"name": "min",
|
|
4253
|
-
"type": {
|
|
4254
|
-
"text": "number"
|
|
4255
|
-
},
|
|
4256
|
-
"description": "Sets the lowest value the counter allows. The counter starts at this value, and the minus button turns off at it.",
|
|
4257
|
-
"default": "0",
|
|
4258
|
-
"fieldName": "min",
|
|
4259
|
-
"minimum": 0,
|
|
4260
|
-
"maximum": 9,
|
|
4261
|
-
"category": "behavior"
|
|
4262
|
-
},
|
|
4263
|
-
{
|
|
4264
|
-
"name": "name",
|
|
4265
|
-
"type": {
|
|
4266
|
-
"text": "string"
|
|
4267
|
-
},
|
|
4268
|
-
"description": "Sets the key for this counter's entry in the group's `value` object, such as `adults`. Applies only inside `auro-counter-group`, which uses `counter-0`, `counter-1`, and so on for counters without a name.",
|
|
4269
|
-
"fieldName": "name",
|
|
4270
|
-
"category": "behavior"
|
|
4271
|
-
},
|
|
4272
|
-
{
|
|
4273
|
-
"name": "value",
|
|
4274
|
-
"type": {
|
|
4275
|
-
"text": "number"
|
|
4276
|
-
},
|
|
4277
|
-
"description": "Sets the counter's value. A value outside `min` and `max` (0–9 by default) isn't moved back into range; it marks the counter invalid instead. A value that's `undefined`, `null`, or not a number clears the value to `undefined`.",
|
|
4278
|
-
"return": {
|
|
4279
|
-
"type": {
|
|
4280
|
-
"text": "number|undefined"
|
|
4281
|
-
}
|
|
4282
|
-
},
|
|
4283
|
-
"parameters": [
|
|
4284
|
-
{
|
|
4285
|
-
"description": "The new value: a number, a string that converts to a number, `undefined`, or `null`.",
|
|
4286
|
-
"name": "val",
|
|
4287
|
-
"type": {
|
|
4288
|
-
"text": "number|string|undefined|null"
|
|
4289
|
-
}
|
|
4290
|
-
}
|
|
4291
|
-
],
|
|
4292
|
-
"fieldName": "value",
|
|
4293
|
-
"category": "behavior"
|
|
4294
|
-
},
|
|
4295
|
-
{
|
|
4296
|
-
"name": "ondark",
|
|
4297
|
-
"type": {
|
|
4298
|
-
"text": "boolean"
|
|
4299
|
-
},
|
|
4300
|
-
"description": "Deprecated: Use `appearance=\"inverse\"` instead.\nShows the counter in colors for dark backgrounds.",
|
|
4301
|
-
"deprecated": "Use `appearance=\"inverse\"` instead.",
|
|
4302
|
-
"fieldName": "onDark",
|
|
4303
|
-
"category": "ui"
|
|
4304
|
-
}
|
|
4305
|
-
],
|
|
4306
|
-
"superclass": {
|
|
4307
|
-
"name": "LitElement",
|
|
4308
|
-
"package": "lit"
|
|
4309
|
-
},
|
|
4310
|
-
"tagName": "auro-counter",
|
|
4311
|
-
"customElement": true,
|
|
4312
|
-
"summary": "A counter with minus and plus buttons, range limits, keyboard support, and error messages."
|
|
4313
|
-
}
|
|
4314
|
-
],
|
|
4315
|
-
"exports": [
|
|
4316
|
-
{
|
|
4317
|
-
"kind": "js",
|
|
4318
|
-
"name": "AuroCounter",
|
|
4319
|
-
"declaration": {
|
|
4320
|
-
"name": "AuroCounter",
|
|
4321
|
-
"module": "components/counter/src/auro-counter.js"
|
|
4322
|
-
}
|
|
4323
|
-
}
|
|
4324
|
-
]
|
|
4325
|
-
},
|
|
4326
|
-
{
|
|
4327
|
-
"kind": "javascript-module",
|
|
4328
|
-
"path": "components/counter/src/buttonVersion.js",
|
|
4329
|
-
"declarations": [],
|
|
4330
|
-
"exports": [
|
|
4331
|
-
{
|
|
4332
|
-
"kind": "js",
|
|
4333
|
-
"name": "default",
|
|
4334
|
-
"declaration": {
|
|
4335
|
-
"name": "12.3.2",
|
|
4336
|
-
"module": "components/counter/src/buttonVersion.js"
|
|
4337
|
-
}
|
|
4338
|
-
}
|
|
4339
|
-
]
|
|
4340
|
-
},
|
|
4341
|
-
{
|
|
4342
|
-
"kind": "javascript-module",
|
|
4343
|
-
"path": "components/counter/src/counterGroupKeyboardStrategy.js",
|
|
4344
|
-
"declarations": [
|
|
4345
|
-
{
|
|
4346
|
-
"kind": "variable",
|
|
4347
|
-
"name": "counterGroupKeyboardStrategy",
|
|
4348
|
-
"type": {
|
|
4349
|
-
"text": "object"
|
|
4350
|
-
},
|
|
4351
|
-
"default": "{ Escape(component, evt) { if (!component.dropdown || !component.dropdown.isPopoverVisible) { return; } // Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups. // Because stopPropagation prevents the document-level floatingUI keydown handler from // seeing this event, we must also close the dropdown explicitly. evt.stopPropagation(); component.dropdown.hide(); }, Tab(component, evt, ctx) { // Forward Tab already exits past the bib content and the focusout handler // closes the bib. Fullscreen relies on the dialog's native focus trapping. if (!ctx.isExpanded || ctx.isModal || !evt.shiftKey) { return; } // The trigger precedes the bib content in the flattened tab order, so a // native Shift+Tab off the first counter lands back on the trigger and // leaves the bib open. Only intercept when focus is on the first focusable // in the bib; otherwise let the browser move to the previous counter. // `composedPath()` reports the real event origin through every shadow // boundary, unlike `document.activeElement`, which retargets to the first // slotted counter and cannot tell the counters apart. const focusables = getFocusableElements(component.dropdown.bibContent); if (!focusables.length) { return; } const path = evt.composedPath(); const activeIndex = focusables.findIndex((el) => path.includes(el)); if (activeIndex !== 0) { return; } const previousTabStop = getPreviousTabStop(component); // Always suppress the native Shift+Tab. Otherwise it fires against the bib // as it is torn down and lands focus on the trigger (which precedes the // first counter), re-opening the exact loop this handler prevents. When // nothing precedes the group, focus falls to the body instead of the // trigger, which reads as exiting the group backward. evt.preventDefault(); component.hideBib(); if (!previousTabStop) { return; } doubleRaf(() => previousTabStop.focus()); }, }",
|
|
4352
|
-
"description": "Holds the counter group's keyboard handlers, `Escape` and `Tab`, which it uses only when `isDropdown` is set. Escape closes the open dropdown without closing a dialog or drawer around it, and Shift+Tab on the first counter of a dropdown that isn't fullscreen closes it and moves focus to whatever comes before the group."
|
|
4353
|
-
}
|
|
4354
|
-
],
|
|
4355
|
-
"exports": [
|
|
4356
|
-
{
|
|
4357
|
-
"kind": "js",
|
|
4358
|
-
"name": "counterGroupKeyboardStrategy",
|
|
4359
|
-
"declaration": {
|
|
4360
|
-
"name": "counterGroupKeyboardStrategy",
|
|
4361
|
-
"module": "components/counter/src/counterGroupKeyboardStrategy.js"
|
|
4362
|
-
}
|
|
4363
|
-
}
|
|
4364
|
-
]
|
|
4365
|
-
},
|
|
4366
|
-
{
|
|
4367
|
-
"kind": "javascript-module",
|
|
4368
|
-
"path": "components/counter/src/iconVersion.js",
|
|
4369
|
-
"declarations": [],
|
|
4370
|
-
"exports": [
|
|
4371
|
-
{
|
|
4372
|
-
"kind": "js",
|
|
4373
|
-
"name": "default",
|
|
4374
|
-
"declaration": {
|
|
4375
|
-
"name": "9.1.2",
|
|
4376
|
-
"module": "components/counter/src/iconVersion.js"
|
|
4377
|
-
}
|
|
4378
|
-
}
|
|
4379
|
-
]
|
|
4380
|
-
},
|
|
4381
|
-
{
|
|
4382
|
-
"kind": "javascript-module",
|
|
4383
|
-
"path": "components/counter/src/index.js",
|
|
4384
|
-
"declarations": [],
|
|
4385
|
-
"exports": [
|
|
4386
|
-
{
|
|
4387
|
-
"kind": "js",
|
|
4388
|
-
"name": "AuroCounter",
|
|
4389
|
-
"declaration": {
|
|
4390
|
-
"name": "AuroCounter",
|
|
4391
|
-
"module": "components/counter/src/index.js"
|
|
4392
|
-
}
|
|
4393
|
-
},
|
|
4394
|
-
{
|
|
4395
|
-
"kind": "js",
|
|
4396
|
-
"name": "AuroCounterGroup",
|
|
4397
|
-
"declaration": {
|
|
4398
|
-
"name": "AuroCounterGroup",
|
|
4399
|
-
"module": "components/counter/src/index.js"
|
|
4400
|
-
}
|
|
4401
|
-
}
|
|
4402
|
-
]
|
|
4403
|
-
},
|
|
4404
|
-
{
|
|
4405
|
-
"kind": "javascript-module",
|
|
4406
|
-
"path": "components/counter/src/keyboardStrategy.js",
|
|
4407
|
-
"declarations": [
|
|
4408
|
-
{
|
|
4409
|
-
"kind": "variable",
|
|
4410
|
-
"name": "keyboardStrategy",
|
|
4411
|
-
"type": {
|
|
4412
|
-
"text": "object"
|
|
4413
|
-
},
|
|
4414
|
-
"default": "{ ArrowUp(component, _evt) { if (component.disabled) { return; } _evt.preventDefault(); component.increment(); }, ArrowDown(component, _evt) { if (component.disabled) { return; } _evt.preventDefault(); component.decrement(); } }",
|
|
4415
|
-
"description": "Holds the counter's keyboard handlers: `ArrowUp` raises the value by 1, and `ArrowDown` lowers it by 1. Neither key does anything while the counter is disabled."
|
|
4416
|
-
}
|
|
4417
|
-
],
|
|
4418
|
-
"exports": [
|
|
4419
|
-
{
|
|
4420
|
-
"kind": "js",
|
|
4421
|
-
"name": "keyboardStrategy",
|
|
4422
|
-
"declaration": {
|
|
4423
|
-
"name": "keyboardStrategy",
|
|
4424
|
-
"module": "components/counter/src/keyboardStrategy.js"
|
|
4425
|
-
}
|
|
4426
|
-
}
|
|
4427
|
-
]
|
|
4428
|
-
},
|
|
4429
|
-
{
|
|
4430
|
-
"kind": "javascript-module",
|
|
4431
|
-
"path": "components/counter/src/registered.js",
|
|
4432
|
-
"declarations": [],
|
|
4433
|
-
"exports": []
|
|
4434
|
-
},
|
|
4435
|
-
{
|
|
4436
|
-
"kind": "javascript-module",
|
|
4437
|
-
"path": "components/datepicker/src/auro-calendar-cell.js",
|
|
4438
|
-
"declarations": [
|
|
4439
|
-
{
|
|
4440
|
-
"kind": "class",
|
|
4441
|
-
"description": "One day in the datepicker's calendar: a button people select to choose that date.",
|
|
4442
|
-
"name": "AuroCalendarCell",
|
|
4443
|
-
"cssParts": [
|
|
4444
|
-
{
|
|
4445
|
-
"description": "The container under the day number that holds the date's `date_YYYY_MM_DD` slot content, shown only when that slot has content.",
|
|
4446
|
-
"name": "dateSlot"
|
|
4447
|
-
}
|
|
4448
|
-
],
|
|
4449
|
-
"members": [
|
|
4450
|
-
{
|
|
4451
|
-
"kind": "method",
|
|
4452
|
-
"name": "_initFromAncestors",
|
|
4453
|
-
"description": "Wires the cell to its ancestor calendar-month and calendar (and, via\nthe calendar, to the datepicker). Extracted from firstUpdated() so the\nretry loop can re-attempt without recursively invoking a Lit lifecycle\nmethod (which is outside the framework's contract).",
|
|
4454
|
-
"privacy": "private",
|
|
4455
|
-
"return": {
|
|
4456
|
-
"type": {
|
|
4457
|
-
"text": "void"
|
|
4458
|
-
}
|
|
4459
|
-
}
|
|
4460
|
-
},
|
|
4461
|
-
{
|
|
4462
|
-
"kind": "method",
|
|
4463
|
-
"name": "applyCommittedRangeClasses",
|
|
4464
|
-
"description": "Re-applies the classes that show a chosen range (`inRange`, `rangeDepartDate`,\nand `rangeReturnDate`) from the cell's `day`, `dateFrom`, and `dateTo`.\nThe calendar calls it after month navigation, because classes removed by\n`clearRangePreviewClasses()` aren't restored by the next render.",
|
|
4465
|
-
"return": {
|
|
4466
|
-
"type": {
|
|
4467
|
-
"text": "void"
|
|
4468
|
-
}
|
|
4469
|
-
}
|
|
4470
|
-
},
|
|
4471
|
-
{
|
|
4472
|
-
"kind": "method",
|
|
4473
|
-
"name": "clearActive",
|
|
4474
|
-
"description": "Marks the cell as no longer active, removes its focus ring, and hides its popover, without re-rendering.",
|
|
4475
|
-
"return": {
|
|
4476
|
-
"type": {
|
|
4477
|
-
"text": "void"
|
|
4478
|
-
}
|
|
4479
|
-
}
|
|
4480
|
-
},
|
|
4481
|
-
{
|
|
4482
|
-
"kind": "method",
|
|
4483
|
-
"name": "clearRangePreviewClasses",
|
|
4484
|
-
"description": "Removes the range preview classes from the cell's button, without re-rendering the cell.\nThe calendar calls it when someone moves to another month, and, until a range has both dates, when the pointer leaves a month's dates or keyboard focus leaves the calendar grid.",
|
|
4485
|
-
"return": {
|
|
4486
|
-
"type": {
|
|
4487
|
-
"text": "void"
|
|
4488
|
-
}
|
|
4489
|
-
}
|
|
4490
|
-
},
|
|
4491
|
-
{
|
|
4492
|
-
"kind": "method",
|
|
4493
|
-
"name": "configurePopover",
|
|
4494
|
-
"description": "Configures the popover instance with the calendar month boundary.\nCalled from firstUpdated and updated because the popover element is only\nrendered after hasPopoverContent becomes true (set by handleSlotContent).",
|
|
4495
|
-
"privacy": "private",
|
|
4496
|
-
"return": {
|
|
4497
|
-
"type": {
|
|
4498
|
-
"text": "void"
|
|
4499
|
-
}
|
|
4500
|
-
}
|
|
4501
|
-
},
|
|
4502
|
-
{
|
|
4503
|
-
"kind": "method",
|
|
4504
|
-
"name": "dateChanged",
|
|
4505
|
-
"parameters": [
|
|
4506
|
-
{
|
|
4507
|
-
"name": "dateFrom",
|
|
4508
|
-
"description": "The start date, as a Unix timestamp in seconds.",
|
|
4509
|
-
"type": {
|
|
4510
|
-
"text": "Number"
|
|
4511
|
-
}
|
|
4512
|
-
},
|
|
4513
|
-
{
|
|
4514
|
-
"name": "dateTo",
|
|
4515
|
-
"description": "The end date, as a Unix timestamp in seconds.",
|
|
4516
|
-
"type": {
|
|
4517
|
-
"text": "Number"
|
|
4518
|
-
}
|
|
4519
|
-
},
|
|
4520
|
-
{
|
|
4521
|
-
"name": "day",
|
|
4522
|
-
"description": "The day this cell shows: an object with `date`, a Unix timestamp in seconds, and `title`, the day of the month.",
|
|
4523
|
-
"type": {
|
|
4524
|
-
"text": "Object"
|
|
4525
|
-
}
|
|
4526
|
-
}
|
|
4527
|
-
],
|
|
4528
|
-
"description": "Sets `selected` when the cell's date matches the start or end date of the selection.",
|
|
4529
|
-
"privacy": "private",
|
|
4530
|
-
"return": {
|
|
4531
|
-
"type": {
|
|
4532
|
-
"text": "void"
|
|
4533
|
-
}
|
|
4534
|
-
}
|
|
4535
|
-
},
|
|
4536
|
-
{
|
|
4537
|
-
"kind": "field",
|
|
4538
|
-
"name": "dateFrom",
|
|
4539
|
-
"privacy": "public",
|
|
4540
|
-
"type": {
|
|
4541
|
-
"text": "null"
|
|
4542
|
-
},
|
|
4543
|
-
"description": "Sets the chosen date, or the start date of a range, as a Unix timestamp in seconds.",
|
|
4544
|
-
"default": "null",
|
|
4545
|
-
"attribute": "datefrom"
|
|
4546
|
-
},
|
|
4547
|
-
{
|
|
4548
|
-
"kind": "field",
|
|
4549
|
-
"name": "dateStr",
|
|
4550
|
-
"privacy": "public",
|
|
4551
|
-
"type": {
|
|
4552
|
-
"text": "null"
|
|
4553
|
-
},
|
|
4554
|
-
"description": "Sets the cell's date in `YYYY_MM_DD` format, which names its `date_` and `popover_` slots. The cell sets it from `day`.",
|
|
4555
|
-
"default": "null",
|
|
4556
|
-
"attribute": "datestr"
|
|
4557
|
-
},
|
|
4558
|
-
{
|
|
4559
|
-
"kind": "field",
|
|
4560
|
-
"name": "dateTo",
|
|
4561
|
-
"privacy": "public",
|
|
4562
|
-
"type": {
|
|
4563
|
-
"text": "null"
|
|
4564
|
-
},
|
|
4565
|
-
"description": "Sets the end date of the chosen range, as a Unix timestamp in seconds.",
|
|
4566
|
-
"default": "null",
|
|
4567
|
-
"attribute": "dateto"
|
|
4568
|
-
},
|
|
4569
|
-
{
|
|
4570
|
-
"kind": "field",
|
|
4571
|
-
"name": "day",
|
|
4572
|
-
"privacy": "public",
|
|
4573
|
-
"type": {
|
|
4574
|
-
"text": "null"
|
|
4575
|
-
},
|
|
4576
|
-
"description": "Sets the day this cell shows: an object with the date as a Unix timestamp in seconds (`date`) and the day of the month (`title`).",
|
|
4577
|
-
"default": "null",
|
|
4578
|
-
"attribute": "day"
|
|
4579
|
-
},
|
|
4580
|
-
{
|
|
4581
|
-
"kind": "field",
|
|
4582
|
-
"name": "disabled",
|
|
4583
|
-
"privacy": "public",
|
|
4584
|
-
"type": {
|
|
4585
|
-
"text": "boolean"
|
|
4586
|
-
},
|
|
4587
|
-
"description": "Stops clicks and Enter or Space from selecting the cell's date. The cell doesn't currently set it itself: dates outside `min` and `max` turn off their button instead.",
|
|
4588
|
-
"default": "false",
|
|
4589
|
-
"attribute": "disabled",
|
|
4590
|
-
"reflects": true
|
|
4591
|
-
},
|
|
4592
|
-
{
|
|
4593
|
-
"kind": "method",
|
|
4594
|
-
"name": "focusButton",
|
|
4595
|
-
"description": "Moves keyboard focus to the cell's button.\nUses `focusVisible: true` so the focus ring shows even when\nthe calendar was opened with a mouse click.",
|
|
4596
|
-
"return": {
|
|
4597
|
-
"type": {
|
|
4598
|
-
"text": "void"
|
|
4599
|
-
}
|
|
4600
|
-
}
|
|
4601
|
-
},
|
|
4602
|
-
{
|
|
4603
|
-
"kind": "method",
|
|
4604
|
-
"name": "getAriaLabel",
|
|
4605
|
-
"description": "Generates the cell's localized `aria-label` with `Intl.DateTimeFormat`.\nAdds the date slot and popover content, the range position, and the blackout label.",
|
|
4606
|
-
"privacy": "private",
|
|
4607
|
-
"return": {
|
|
4608
|
-
"type": {
|
|
4609
|
-
"text": "String"
|
|
4610
|
-
}
|
|
4611
|
-
}
|
|
4612
|
-
},
|
|
4613
|
-
{
|
|
4614
|
-
"kind": "method",
|
|
4615
|
-
"name": "getCellId",
|
|
4616
|
-
"description": "Generates a unique cell ID in the format `cell-YYYY-MM-DD`.",
|
|
4617
|
-
"privacy": "private",
|
|
4618
|
-
"return": {
|
|
4619
|
-
"type": {
|
|
4620
|
-
"text": "String"
|
|
4621
|
-
}
|
|
4622
|
-
}
|
|
4623
|
-
},
|
|
4624
|
-
{
|
|
4625
|
-
"kind": "method",
|
|
4626
|
-
"name": "getRangePosition",
|
|
4627
|
-
"description": "Determines the range position of this cell relative to the current selection.",
|
|
4628
|
-
"privacy": "private",
|
|
4629
|
-
"return": {
|
|
4630
|
-
"type": {
|
|
4631
|
-
"text": "String|null"
|
|
4632
|
-
}
|
|
4633
|
-
}
|
|
4634
|
-
},
|
|
4635
|
-
{
|
|
4636
|
-
"kind": "method",
|
|
4637
|
-
"name": "getTitle",
|
|
4638
|
-
"parameters": [
|
|
4639
|
-
{
|
|
4640
|
-
"name": "date",
|
|
4641
|
-
"description": "The date, as a Unix timestamp in seconds.",
|
|
4642
|
-
"type": {
|
|
4643
|
-
"text": "Number"
|
|
4644
|
-
}
|
|
4645
|
-
}
|
|
4646
|
-
],
|
|
4647
|
-
"description": "Formats a date as a full date in the cell's `locale`, such as \"Monday, April 21, 2025\" for `en-US`.",
|
|
4648
|
-
"privacy": "private",
|
|
4649
|
-
"return": {
|
|
4650
|
-
"type": {
|
|
4651
|
-
"text": "String"
|
|
4652
|
-
}
|
|
4653
|
-
}
|
|
4654
|
-
},
|
|
4655
|
-
{
|
|
4656
|
-
"kind": "method",
|
|
4657
|
-
"name": "handleFocus",
|
|
4658
|
-
"description": "Called when the cell's button gets focus. Fires `calendar-cell-focused` so the calendar can\nannounce the date to screen readers and update the range preview without re-rendering the cell.",
|
|
4659
|
-
"privacy": "private",
|
|
4660
|
-
"return": {
|
|
4661
|
-
"type": {
|
|
4662
|
-
"text": "void"
|
|
4663
|
-
}
|
|
4664
|
-
}
|
|
4665
|
-
},
|
|
4666
|
-
{
|
|
4667
|
-
"kind": "method",
|
|
4668
|
-
"name": "handleHover",
|
|
4669
|
-
"description": "Called when the pointer moves over the cell's button. Fires `date-is-hovered` with the cell's date.\nDoesn't set any reactive properties, because the calendar updates the range preview\ndirectly to avoid re-rendering every cell.",
|
|
4670
|
-
"privacy": "private",
|
|
4671
|
-
"return": {
|
|
4672
|
-
"type": {
|
|
4673
|
-
"text": "void"
|
|
4674
|
-
}
|
|
4675
|
-
}
|
|
4676
|
-
},
|
|
4677
|
-
{
|
|
4678
|
-
"kind": "method",
|
|
4679
|
-
"name": "handleSlotContent",
|
|
4680
|
-
"description": "Removes the cell's copied slot content, then copies in the `date_YYYY_MM_DD` and `popover_YYYY_MM_DD` content for the cell's date from `auro-datepicker`.",
|
|
4681
|
-
"privacy": "private",
|
|
4682
|
-
"return": {
|
|
4683
|
-
"type": {
|
|
4684
|
-
"text": "void"
|
|
4685
|
-
}
|
|
4686
|
-
}
|
|
4687
|
-
},
|
|
4688
|
-
{
|
|
4689
|
-
"kind": "method",
|
|
4690
|
-
"name": "handleTap",
|
|
4691
|
-
"description": "Called when someone clicks the cell's button, or presses Enter or Space while it's the active cell.\nSelects the cell's date unless the cell is turned off or the date is a blackout date, and fires\n`calendar-cell-activate` so the calendar makes the cell the active cell.",
|
|
4692
|
-
"privacy": "private",
|
|
4693
|
-
"return": {
|
|
4694
|
-
"type": {
|
|
4695
|
-
"text": "void"
|
|
4696
|
-
}
|
|
4697
|
-
}
|
|
4698
|
-
},
|
|
4699
|
-
{
|
|
4700
|
-
"kind": "field",
|
|
4701
|
-
"name": "hasPopoverContent",
|
|
4702
|
-
"privacy": "public",
|
|
4703
|
-
"type": {
|
|
4704
|
-
"text": "boolean"
|
|
4705
|
-
},
|
|
4706
|
-
"description": "Shows the cell inside a popover. The cell sets it when the datepicker has content for the cell's `popover_YYYY_MM_DD` slot.",
|
|
4707
|
-
"default": "false",
|
|
4708
|
-
"attribute": "haspopovercontent"
|
|
4709
|
-
},
|
|
4710
|
-
{
|
|
4711
|
-
"kind": "method",
|
|
4712
|
-
"name": "isBlackout",
|
|
4713
|
-
"description": "Checks whether the cell's date is a blackout date, from the datepicker's `blackoutDates` or the deprecated `disabledDays`, and within `min` and `max`.\nBlackout cells are focusable but not selectable.",
|
|
4714
|
-
"privacy": "private",
|
|
4715
|
-
"return": {
|
|
4716
|
-
"type": {
|
|
4717
|
-
"text": "Boolean"
|
|
4718
|
-
}
|
|
4719
|
-
}
|
|
4720
|
-
},
|
|
4721
|
-
{
|
|
4722
|
-
"kind": "field",
|
|
4723
|
-
"name": "isCurrentDate",
|
|
4724
|
-
"privacy": "public",
|
|
4725
|
-
"type": {
|
|
4726
|
-
"text": "boolean"
|
|
4727
|
-
},
|
|
4728
|
-
"description": "Marks the cell as today's date, which tells screen readers it's the current date (`aria-current=\"date\"`). It doesn't currently change how the cell looks.",
|
|
4729
|
-
"default": "false",
|
|
4730
|
-
"attribute": "iscurrentdate"
|
|
4731
|
-
},
|
|
4732
|
-
{
|
|
4733
|
-
"kind": "method",
|
|
4734
|
-
"name": "isDepartDate",
|
|
4735
|
-
"parameters": [
|
|
4736
|
-
{
|
|
4737
|
-
"name": "day",
|
|
4738
|
-
"description": "The day this cell shows: an object with `date`, a Unix timestamp in seconds, and `title`, the day of the month.",
|
|
4739
|
-
"type": {
|
|
4740
|
-
"text": "Object"
|
|
4741
|
-
}
|
|
4742
|
-
},
|
|
4743
|
-
{
|
|
4744
|
-
"name": "dateFrom",
|
|
4745
|
-
"description": "The start date, as a Unix timestamp in seconds.",
|
|
4746
|
-
"type": {
|
|
4747
|
-
"text": "Number"
|
|
4748
|
-
}
|
|
4749
|
-
}
|
|
4750
|
-
],
|
|
4751
|
-
"description": "Checks whether the cell's date is the selected start date.",
|
|
4752
|
-
"privacy": "private",
|
|
4753
|
-
"return": {
|
|
4754
|
-
"type": {
|
|
4755
|
-
"text": "Boolean"
|
|
4756
|
-
}
|
|
4757
|
-
}
|
|
4758
|
-
},
|
|
4759
|
-
{
|
|
4760
|
-
"kind": "method",
|
|
4761
|
-
"name": "isEnabled",
|
|
4762
|
-
"parameters": [
|
|
4763
|
-
{
|
|
4764
|
-
"name": "day",
|
|
4765
|
-
"description": "The day this cell shows: an object with `date`, a Unix timestamp in seconds, and `title`, the day of the month.",
|
|
4766
|
-
"type": {
|
|
4767
|
-
"text": "Object"
|
|
4768
|
-
}
|
|
4769
|
-
},
|
|
4770
|
-
{
|
|
4771
|
-
"name": "min",
|
|
4772
|
-
"description": "The earliest date people can choose, as a Unix timestamp in seconds.",
|
|
4773
|
-
"type": {
|
|
4774
|
-
"text": "Number"
|
|
4775
|
-
}
|
|
4776
|
-
},
|
|
4777
|
-
{
|
|
4778
|
-
"name": "max",
|
|
4779
|
-
"description": "The latest date people can choose, as a Unix timestamp in seconds.",
|
|
4780
|
-
"type": {
|
|
4781
|
-
"text": "Number"
|
|
4782
|
-
}
|
|
4783
|
-
},
|
|
4784
|
-
{
|
|
4785
|
-
"name": "disabledDays",
|
|
4786
|
-
"description": "The deprecated array of dates people can't select, as Unix timestamps in seconds.",
|
|
4787
|
-
"type": {
|
|
4788
|
-
"text": "Array"
|
|
4789
|
-
}
|
|
4790
|
-
}
|
|
4791
|
-
],
|
|
4792
|
-
"description": "Checks whether the cell's date is turned off because it's outside `min` and `max` or in the\ndeprecated `disabledDays`, and sets the host's `disabled` attribute to match. Despite its name,\nit returns true for a turned-off date. Blackout dates are handled separately by `isBlackout()`.",
|
|
4793
|
-
"privacy": "private",
|
|
4794
|
-
"return": {
|
|
4795
|
-
"type": {
|
|
4796
|
-
"text": "Boolean"
|
|
4797
|
-
}
|
|
4798
|
-
}
|
|
4799
|
-
},
|
|
4800
|
-
{
|
|
4801
|
-
"kind": "method",
|
|
4802
|
-
"name": "isInRange",
|
|
4803
|
-
"parameters": [
|
|
4804
|
-
{
|
|
4805
|
-
"name": "day",
|
|
4806
|
-
"description": "The day this cell shows: an object with `date`, a Unix timestamp in seconds, and `title`, the day of the month.",
|
|
4807
|
-
"type": {
|
|
4808
|
-
"text": "Object"
|
|
4809
|
-
}
|
|
4810
|
-
},
|
|
4811
|
-
{
|
|
4812
|
-
"name": "dateFrom",
|
|
4813
|
-
"description": "The start date, as a Unix timestamp in seconds.",
|
|
4814
|
-
"type": {
|
|
4815
|
-
"text": "Number"
|
|
4816
|
-
}
|
|
4817
|
-
},
|
|
4818
|
-
{
|
|
4819
|
-
"name": "dateTo",
|
|
4820
|
-
"description": "The end date, as a Unix timestamp in seconds.",
|
|
4821
|
-
"type": {
|
|
4822
|
-
"text": "Number"
|
|
4823
|
-
}
|
|
4824
|
-
}
|
|
4825
|
-
],
|
|
4826
|
-
"description": "Checks whether the cell's date is between dateFrom and dateTo.",
|
|
4827
|
-
"privacy": "private",
|
|
4828
|
-
"return": {
|
|
4829
|
-
"type": {
|
|
4830
|
-
"text": "Boolean"
|
|
4831
|
-
}
|
|
4832
|
-
}
|
|
4833
|
-
},
|
|
4834
|
-
{
|
|
4835
|
-
"kind": "method",
|
|
4836
|
-
"name": "isLastHoveredDate",
|
|
4837
|
-
"parameters": [
|
|
4838
|
-
{
|
|
4839
|
-
"name": "day",
|
|
4840
|
-
"description": "The day this cell shows: an object with `date`, a Unix timestamp in seconds, and `title`, the day of the month.",
|
|
4841
|
-
"type": {
|
|
4842
|
-
"text": "Object"
|
|
4843
|
-
}
|
|
4844
|
-
},
|
|
4845
|
-
{
|
|
4846
|
-
"name": "dateFrom",
|
|
4847
|
-
"description": "The start date, as a Unix timestamp in seconds.",
|
|
4848
|
-
"type": {
|
|
4849
|
-
"text": "Number"
|
|
4850
|
-
}
|
|
4851
|
-
},
|
|
4852
|
-
{
|
|
4853
|
-
"name": "dateTo",
|
|
4854
|
-
"description": "The end date, as a Unix timestamp in seconds.",
|
|
4855
|
-
"type": {
|
|
4856
|
-
"text": "Number"
|
|
4857
|
-
}
|
|
4858
|
-
},
|
|
4859
|
-
{
|
|
4860
|
-
"name": "hoveredDate",
|
|
4861
|
-
"description": "The hovered date, as a Unix timestamp in seconds.",
|
|
4862
|
-
"type": {
|
|
4863
|
-
"text": "Number"
|
|
4864
|
-
}
|
|
4865
|
-
}
|
|
4866
|
-
],
|
|
4867
|
-
"description": "Checks whether the cell's date is the hovered date while someone chooses the end date of a range.",
|
|
4868
|
-
"privacy": "private",
|
|
4869
|
-
"return": {
|
|
4870
|
-
"type": {
|
|
4871
|
-
"text": "Boolean"
|
|
4872
|
-
}
|
|
4873
|
-
}
|
|
4874
|
-
},
|
|
4875
|
-
{
|
|
4876
|
-
"kind": "method",
|
|
4877
|
-
"name": "isOutOfRange",
|
|
4878
|
-
"parameters": [
|
|
4879
|
-
{
|
|
4880
|
-
"name": "day",
|
|
4881
|
-
"description": "The day this cell shows: an object with `date`, a Unix timestamp in seconds, and `title`, the day of the month.",
|
|
4882
|
-
"type": {
|
|
4883
|
-
"text": "Object"
|
|
4884
|
-
}
|
|
4885
|
-
},
|
|
4886
|
-
{
|
|
4887
|
-
"name": "min",
|
|
4888
|
-
"description": "The earliest date people can choose, as a Unix timestamp in seconds.",
|
|
4889
|
-
"type": {
|
|
4890
|
-
"text": "Number"
|
|
4891
|
-
}
|
|
4892
|
-
},
|
|
4893
|
-
{
|
|
4894
|
-
"name": "max",
|
|
4895
|
-
"description": "The latest date people can choose, as a Unix timestamp in seconds.",
|
|
4896
|
-
"type": {
|
|
4897
|
-
"text": "Number"
|
|
4898
|
-
}
|
|
4899
|
-
}
|
|
4900
|
-
],
|
|
4901
|
-
"description": "Checks whether the cell's date is earlier than `min` or later than `max`.\nOut-of-range cells aren't focusable and are hidden from screen readers.",
|
|
4902
|
-
"privacy": "private",
|
|
4903
|
-
"return": {
|
|
4904
|
-
"type": {
|
|
4905
|
-
"text": "Boolean"
|
|
4906
|
-
}
|
|
4907
|
-
}
|
|
4908
|
-
},
|
|
4909
|
-
{
|
|
4910
|
-
"kind": "method",
|
|
4911
|
-
"name": "isReferenceDate",
|
|
4912
|
-
"parameters": [
|
|
4913
|
-
{
|
|
4914
|
-
"name": "dateStr",
|
|
4915
|
-
"description": "The date, in `YYYY_MM_DD` format.",
|
|
4916
|
-
"type": {
|
|
4917
|
-
"text": "string"
|
|
4918
|
-
}
|
|
4919
|
-
}
|
|
4920
|
-
],
|
|
4921
|
-
"description": "Checks whether a date is one of the datepicker's `referenceDates`.",
|
|
4922
|
-
"return": {
|
|
4923
|
-
"type": {
|
|
4924
|
-
"text": "boolean"
|
|
4925
|
-
}
|
|
4926
|
-
}
|
|
4927
|
-
},
|
|
4928
|
-
{
|
|
4929
|
-
"kind": "method",
|
|
4930
|
-
"name": "isReturnDate",
|
|
4931
|
-
"parameters": [
|
|
4932
|
-
{
|
|
4933
|
-
"name": "day",
|
|
4934
|
-
"description": "The day this cell shows: an object with `date`, a Unix timestamp in seconds, and `title`, the day of the month.",
|
|
4935
|
-
"type": {
|
|
4936
|
-
"text": "Object"
|
|
4937
|
-
}
|
|
4938
|
-
},
|
|
4939
|
-
{
|
|
4940
|
-
"name": "dateFrom",
|
|
4941
|
-
"description": "The start date, as a Unix timestamp in seconds.",
|
|
4942
|
-
"type": {
|
|
4943
|
-
"text": "Number"
|
|
4944
|
-
}
|
|
4945
|
-
},
|
|
4946
|
-
{
|
|
4947
|
-
"name": "dateTo",
|
|
4948
|
-
"description": "The end date, as a Unix timestamp in seconds.",
|
|
4949
|
-
"type": {
|
|
4950
|
-
"text": "Number"
|
|
4951
|
-
}
|
|
4952
|
-
}
|
|
4953
|
-
],
|
|
4954
|
-
"description": "Checks whether the cell's date is the selected end date.",
|
|
4955
|
-
"privacy": "private",
|
|
4956
|
-
"return": {
|
|
4957
|
-
"type": {
|
|
4958
|
-
"text": "Boolean"
|
|
4959
|
-
}
|
|
4960
|
-
}
|
|
4961
|
-
},
|
|
4962
|
-
{
|
|
4963
|
-
"kind": "field",
|
|
4964
|
-
"name": "locale",
|
|
4965
|
-
"privacy": "public",
|
|
4966
|
-
"type": {
|
|
4967
|
-
"text": "string"
|
|
4968
|
-
},
|
|
4969
|
-
"description": "Sets the language and region used to format the cell's date for screen readers, such as `en-US` (a BCP 47 language tag). Uses `en-US` when not set.",
|
|
4970
|
-
"attribute": "locale"
|
|
4971
|
-
},
|
|
4972
|
-
{
|
|
4973
|
-
"kind": "field",
|
|
4974
|
-
"name": "max",
|
|
4975
|
-
"privacy": "public",
|
|
4976
|
-
"type": {
|
|
4977
|
-
"text": "null"
|
|
4978
|
-
},
|
|
4979
|
-
"description": "Sets the latest date people can choose, as a Unix timestamp in seconds. When the cell's date is later, its button is turned off.",
|
|
4980
|
-
"default": "null",
|
|
4981
|
-
"attribute": "max"
|
|
4982
|
-
},
|
|
4983
|
-
{
|
|
4984
|
-
"kind": "field",
|
|
4985
|
-
"name": "min",
|
|
4986
|
-
"privacy": "public",
|
|
4987
|
-
"type": {
|
|
4988
|
-
"text": "null"
|
|
4989
|
-
},
|
|
4990
|
-
"description": "Sets the earliest date people can choose, as a Unix timestamp in seconds. When the cell's date is earlier, its button is turned off.",
|
|
4991
|
-
"default": "null",
|
|
4992
|
-
"attribute": "min"
|
|
4993
|
-
},
|
|
4994
|
-
{
|
|
4995
|
-
"kind": "field",
|
|
4996
|
-
"name": "month",
|
|
4997
|
-
"privacy": "public",
|
|
4998
|
-
"type": {
|
|
4999
|
-
"text": "null"
|
|
5000
|
-
},
|
|
5001
|
-
"description": "Sets the month this cell belongs to. The cell doesn't currently use it.",
|
|
5002
|
-
"default": "null",
|
|
5003
|
-
"attribute": "month"
|
|
5004
|
-
},
|
|
5005
|
-
{
|
|
5006
|
-
"kind": "field",
|
|
5007
|
-
"name": "renderForDateSlot",
|
|
5008
|
-
"privacy": "public",
|
|
5009
|
-
"type": {
|
|
5010
|
-
"text": "boolean"
|
|
5011
|
-
},
|
|
5012
|
-
"description": "Moves the day number up to leave room below it for date slot content. The cell sets it when the datepicker has content for the cell's `date_YYYY_MM_DD` slot.",
|
|
5013
|
-
"default": "false",
|
|
5014
|
-
"attribute": "renderfordateslot"
|
|
5015
|
-
},
|
|
5016
|
-
{
|
|
5017
|
-
"kind": "field",
|
|
5018
|
-
"name": "selected",
|
|
5019
|
-
"privacy": "public",
|
|
5020
|
-
"type": {
|
|
5021
|
-
"text": "boolean"
|
|
5022
|
-
},
|
|
5023
|
-
"description": "Shows the cell in the selected style. The cell sets it itself when its date matches `dateFrom` or `dateTo`.",
|
|
5024
|
-
"default": "false",
|
|
5025
|
-
"attribute": "selected"
|
|
5026
|
-
},
|
|
5027
|
-
{
|
|
5028
|
-
"kind": "method",
|
|
5029
|
-
"name": "setActive",
|
|
5030
|
-
"description": "Marks the cell as the active cell and shows its popover, if it has one, without re-rendering.\nDoes nothing for a date outside `min` and `max`. Keyboard focus stays on the calendar grid,\nand a live region announces the active date to screen readers.",
|
|
5031
|
-
"return": {
|
|
5032
|
-
"type": {
|
|
5033
|
-
"text": "void"
|
|
5034
|
-
}
|
|
5035
|
-
}
|
|
5036
|
-
},
|
|
5037
|
-
{
|
|
5038
|
-
"kind": "method",
|
|
5039
|
-
"name": "setDateSlotName",
|
|
5040
|
-
"description": "Sets `dateStr` to the cell's date in `YYYY_MM_DD` format, which names its date slots, or to null when the cell has no date.",
|
|
5041
|
-
"privacy": "private",
|
|
5042
|
-
"return": {
|
|
5043
|
-
"type": {
|
|
5044
|
-
"text": "void"
|
|
5045
|
-
}
|
|
5046
|
-
}
|
|
5047
|
-
},
|
|
5048
|
-
{
|
|
5049
|
-
"kind": "method",
|
|
5050
|
-
"name": "updateHostAria",
|
|
5051
|
-
"description": "Sets ARIA attributes on the cell so screen reader users browsing the month grid hear its date,\nwhether it's selected, and whether it's a blackout date. Removes them for a date outside `min` and `max`.",
|
|
5052
|
-
"privacy": "private",
|
|
5053
|
-
"return": {
|
|
5054
|
-
"type": {
|
|
5055
|
-
"text": "void"
|
|
5056
|
-
}
|
|
5057
|
-
}
|
|
5058
|
-
},
|
|
5059
|
-
{
|
|
5060
|
-
"kind": "method",
|
|
5061
|
-
"name": "updateRangePreviewClasses",
|
|
5062
|
-
"parameters": [
|
|
5063
|
-
{
|
|
5064
|
-
"name": "hoveredDate",
|
|
5065
|
-
"description": "The Unix timestamp of the date that's hovered or active.",
|
|
5066
|
-
"type": {
|
|
5067
|
-
"text": "Number"
|
|
5068
|
-
}
|
|
5069
|
-
},
|
|
5070
|
-
{
|
|
5071
|
-
"name": "dateFrom",
|
|
5072
|
-
"description": "The Unix timestamp of the chosen start date.",
|
|
5073
|
-
"type": {
|
|
5074
|
-
"text": "Number"
|
|
5075
|
-
}
|
|
5076
|
-
}
|
|
5077
|
-
],
|
|
5078
|
-
"description": "Updates the classes that preview a range on the cell's button, without re-rendering the cell.\nThe calendar calls it when the hovered or focused date changes while someone is choosing the end date of a range.",
|
|
5079
|
-
"return": {
|
|
5080
|
-
"type": {
|
|
5081
|
-
"text": "void"
|
|
5082
|
-
}
|
|
5083
|
-
}
|
|
5084
|
-
},
|
|
5085
|
-
{
|
|
5086
|
-
"kind": "field",
|
|
5087
|
-
"name": "disabledDays",
|
|
5088
|
-
"privacy": "public",
|
|
5089
|
-
"type": {
|
|
5090
|
-
"text": "number[]"
|
|
5091
|
-
},
|
|
5092
|
-
"description": "Deprecated: Use `blackoutDates` on `auro-datepicker` instead.\nSets dates people can't select, as Unix timestamps in seconds.",
|
|
5093
|
-
"deprecated": "Use `blackoutDates` on `auro-datepicker` instead.",
|
|
5094
|
-
"default": "[]",
|
|
5095
|
-
"attribute": "disableddays"
|
|
5096
|
-
}
|
|
5097
|
-
],
|
|
5098
|
-
"events": [
|
|
5099
|
-
{
|
|
5100
|
-
"name": "calendar-cell-activate",
|
|
5101
|
-
"type": {
|
|
5102
|
-
"text": "CustomEvent"
|
|
5103
|
-
},
|
|
5104
|
-
"description": "Notifies that someone activated this cell with a click, a tap, or Enter or Space."
|
|
5105
|
-
},
|
|
5106
|
-
{
|
|
5107
|
-
"name": "calendar-cell-focused",
|
|
5108
|
-
"type": {
|
|
5109
|
-
"text": "CustomEvent"
|
|
5110
|
-
},
|
|
5111
|
-
"description": "Notifies that this cell's button has received focus."
|
|
5112
|
-
},
|
|
5113
|
-
{
|
|
5114
|
-
"name": "date-is-hovered",
|
|
5115
|
-
"type": {
|
|
5116
|
-
"text": "CustomEvent"
|
|
5117
|
-
},
|
|
5118
|
-
"description": "Notifies that the pointer moved over this cell's date."
|
|
5119
|
-
}
|
|
5120
|
-
],
|
|
5121
|
-
"attributes": [
|
|
5122
|
-
{
|
|
5123
|
-
"name": "datefrom",
|
|
5124
|
-
"type": {
|
|
5125
|
-
"text": "null"
|
|
5126
|
-
},
|
|
5127
|
-
"description": "Sets the chosen date, or the start date of a range, as a Unix timestamp in seconds.",
|
|
5128
|
-
"default": "null",
|
|
5129
|
-
"fieldName": "dateFrom"
|
|
5130
|
-
},
|
|
5131
|
-
{
|
|
5132
|
-
"name": "datestr",
|
|
5133
|
-
"type": {
|
|
5134
|
-
"text": "null"
|
|
5135
|
-
},
|
|
5136
|
-
"description": "Sets the cell's date in `YYYY_MM_DD` format, which names its `date_` and `popover_` slots. The cell sets it from `day`.",
|
|
5137
|
-
"default": "null",
|
|
5138
|
-
"fieldName": "dateStr"
|
|
5139
|
-
},
|
|
5140
|
-
{
|
|
5141
|
-
"name": "dateto",
|
|
5142
|
-
"type": {
|
|
5143
|
-
"text": "null"
|
|
5144
|
-
},
|
|
5145
|
-
"description": "Sets the end date of the chosen range, as a Unix timestamp in seconds.",
|
|
5146
|
-
"default": "null",
|
|
5147
|
-
"fieldName": "dateTo"
|
|
5148
|
-
},
|
|
5149
|
-
{
|
|
5150
|
-
"name": "day",
|
|
5151
|
-
"type": {
|
|
5152
|
-
"text": "null"
|
|
5153
|
-
},
|
|
5154
|
-
"description": "Sets the day this cell shows: an object with the date as a Unix timestamp in seconds (`date`) and the day of the month (`title`).",
|
|
5155
|
-
"default": "null",
|
|
5156
|
-
"fieldName": "day"
|
|
5157
|
-
},
|
|
5158
|
-
{
|
|
5159
|
-
"name": "disabled",
|
|
5160
|
-
"type": {
|
|
5161
|
-
"text": "boolean"
|
|
5162
|
-
},
|
|
5163
|
-
"description": "Stops clicks and Enter or Space from selecting the cell's date. The cell doesn't currently set it itself: dates outside `min` and `max` turn off their button instead.",
|
|
5164
|
-
"default": "false",
|
|
5165
|
-
"fieldName": "disabled"
|
|
5166
|
-
},
|
|
5167
|
-
{
|
|
5168
|
-
"name": "haspopovercontent",
|
|
5169
|
-
"type": {
|
|
5170
|
-
"text": "boolean"
|
|
5171
|
-
},
|
|
5172
|
-
"description": "Shows the cell inside a popover. The cell sets it when the datepicker has content for the cell's `popover_YYYY_MM_DD` slot.",
|
|
5173
|
-
"default": "false",
|
|
5174
|
-
"fieldName": "hasPopoverContent"
|
|
5175
|
-
},
|
|
5176
|
-
{
|
|
5177
|
-
"name": "iscurrentdate",
|
|
5178
|
-
"type": {
|
|
5179
|
-
"text": "boolean"
|
|
5180
|
-
},
|
|
5181
|
-
"description": "Marks the cell as today's date, which tells screen readers it's the current date (`aria-current=\"date\"`). It doesn't currently change how the cell looks.",
|
|
5182
|
-
"default": "false",
|
|
5183
|
-
"fieldName": "isCurrentDate"
|
|
5184
|
-
},
|
|
5185
|
-
{
|
|
5186
|
-
"name": "locale",
|
|
5187
|
-
"type": {
|
|
5188
|
-
"text": "string"
|
|
5189
|
-
},
|
|
5190
|
-
"description": "Sets the language and region used to format the cell's date for screen readers, such as `en-US` (a BCP 47 language tag). Uses `en-US` when not set.",
|
|
5191
|
-
"fieldName": "locale"
|
|
5192
|
-
},
|
|
5193
|
-
{
|
|
5194
|
-
"name": "max",
|
|
5195
|
-
"type": {
|
|
5196
|
-
"text": "null"
|
|
5197
|
-
},
|
|
5198
|
-
"description": "Sets the latest date people can choose, as a Unix timestamp in seconds. When the cell's date is later, its button is turned off.",
|
|
5199
|
-
"default": "null",
|
|
5200
|
-
"fieldName": "max"
|
|
5201
|
-
},
|
|
5202
|
-
{
|
|
5203
|
-
"name": "min",
|
|
5204
|
-
"type": {
|
|
5205
|
-
"text": "null"
|
|
5206
|
-
},
|
|
5207
|
-
"description": "Sets the earliest date people can choose, as a Unix timestamp in seconds. When the cell's date is earlier, its button is turned off.",
|
|
5208
|
-
"default": "null",
|
|
5209
|
-
"fieldName": "min"
|
|
5210
|
-
},
|
|
5211
|
-
{
|
|
5212
|
-
"name": "month",
|
|
5213
|
-
"type": {
|
|
5214
|
-
"text": "null"
|
|
5215
|
-
},
|
|
5216
|
-
"description": "Sets the month this cell belongs to. The cell doesn't currently use it.",
|
|
5217
|
-
"default": "null",
|
|
5218
|
-
"fieldName": "month"
|
|
5219
|
-
},
|
|
5220
|
-
{
|
|
5221
|
-
"name": "renderfordateslot",
|
|
5222
|
-
"type": {
|
|
5223
|
-
"text": "boolean"
|
|
5224
|
-
},
|
|
5225
|
-
"description": "Moves the day number up to leave room below it for date slot content. The cell sets it when the datepicker has content for the cell's `date_YYYY_MM_DD` slot.",
|
|
5226
|
-
"default": "false",
|
|
5227
|
-
"fieldName": "renderForDateSlot"
|
|
5228
|
-
},
|
|
5229
|
-
{
|
|
5230
|
-
"name": "selected",
|
|
5231
|
-
"type": {
|
|
5232
|
-
"text": "boolean"
|
|
5233
|
-
},
|
|
5234
|
-
"description": "Shows the cell in the selected style. The cell sets it itself when its date matches `dateFrom` or `dateTo`.",
|
|
5235
|
-
"default": "false",
|
|
5236
|
-
"fieldName": "selected"
|
|
5237
|
-
},
|
|
5238
|
-
{
|
|
5239
|
-
"name": "disableddays",
|
|
5240
|
-
"type": {
|
|
5241
|
-
"text": "number[]"
|
|
5242
|
-
},
|
|
5243
|
-
"description": "Deprecated: Use `blackoutDates` on `auro-datepicker` instead.\nSets dates people can't select, as Unix timestamps in seconds.",
|
|
5244
|
-
"deprecated": "Use `blackoutDates` on `auro-datepicker` instead.",
|
|
5245
|
-
"default": "[]",
|
|
5246
|
-
"fieldName": "disabledDays"
|
|
5247
|
-
}
|
|
5248
|
-
],
|
|
5249
|
-
"superclass": {
|
|
5250
|
-
"name": "LitElement",
|
|
5251
|
-
"package": "lit"
|
|
5252
|
-
},
|
|
5253
|
-
"tagName": "auro-formkit-calendar-cell",
|
|
5254
|
-
"customElement": true
|
|
5255
|
-
},
|
|
5256
|
-
{
|
|
5257
|
-
"kind": "variable",
|
|
5258
|
-
"name": "blackout"
|
|
5259
|
-
}
|
|
5260
|
-
],
|
|
5261
|
-
"exports": [
|
|
5262
|
-
{
|
|
5263
|
-
"kind": "custom-element-definition",
|
|
5264
|
-
"name": "auro-formkit-calendar-cell",
|
|
5265
|
-
"declaration": {
|
|
5266
|
-
"name": "AuroCalendarCell",
|
|
5267
|
-
"module": "components/datepicker/src/auro-calendar-cell.js"
|
|
5268
|
-
}
|
|
5269
|
-
},
|
|
5270
|
-
{
|
|
5271
|
-
"kind": "js",
|
|
5272
|
-
"name": "AuroCalendarCell",
|
|
5273
|
-
"declaration": {
|
|
5274
|
-
"name": "AuroCalendarCell",
|
|
5275
|
-
"module": "components/datepicker/src/auro-calendar-cell.js"
|
|
5276
|
-
}
|
|
5277
|
-
}
|
|
5278
|
-
]
|
|
5279
|
-
},
|
|
5280
|
-
{
|
|
5281
|
-
"kind": "javascript-module",
|
|
5282
|
-
"path": "components/datepicker/src/auro-calendar-month.js",
|
|
5283
|
-
"declarations": [
|
|
5284
|
-
{
|
|
5285
|
-
"kind": "class",
|
|
5286
|
-
"description": "One month of the datepicker's calendar: a localized heading and a grid of day cells people can select.",
|
|
5287
|
-
"name": "AuroCalendarMonth",
|
|
5288
|
-
"members": [
|
|
5289
|
-
{
|
|
5290
|
-
"kind": "method",
|
|
5291
|
-
"name": "computeCurrentMonthName",
|
|
5292
|
-
"parameters": [
|
|
5293
|
-
{
|
|
5294
|
-
"name": "month",
|
|
5295
|
-
"description": "The month number (1-12).",
|
|
5296
|
-
"type": {
|
|
5297
|
-
"text": "Number"
|
|
5298
|
-
}
|
|
5299
|
-
}
|
|
5300
|
-
],
|
|
5301
|
-
"description": "Gets the month name shown in the heading, from `monthNames` or else from `localeCode`.",
|
|
5302
|
-
"privacy": "private",
|
|
5303
|
-
"return": {
|
|
5304
|
-
"type": {
|
|
5305
|
-
"text": "String"
|
|
5306
|
-
}
|
|
5307
|
-
}
|
|
5308
|
-
},
|
|
5309
|
-
{
|
|
5310
|
-
"kind": "method",
|
|
5311
|
-
"name": "getFocusableCells",
|
|
5312
|
-
"description": "Gets the cells in this month that keyboard users can reach: enabled and blackout dates, but not dates before the earliest or after the latest date people can choose.",
|
|
5313
|
-
"return": {
|
|
5314
|
-
"type": {
|
|
5315
|
-
"text": "Array"
|
|
5316
|
-
}
|
|
5317
|
-
}
|
|
5318
|
-
},
|
|
5319
|
-
{
|
|
5320
|
-
"kind": "method",
|
|
5321
|
-
"name": "getHeadingId",
|
|
5322
|
-
"description": "Gets the unique ID of this month's heading element.",
|
|
5323
|
-
"privacy": "private",
|
|
5324
|
-
"return": {
|
|
5325
|
-
"type": {
|
|
5326
|
-
"text": "String"
|
|
5327
|
-
}
|
|
5328
|
-
}
|
|
5329
|
-
},
|
|
5330
|
-
{
|
|
5331
|
-
"kind": "method",
|
|
5332
|
-
"name": "handleDateHovered",
|
|
5333
|
-
"parameters": [
|
|
5334
|
-
{
|
|
5335
|
-
"name": "event",
|
|
5336
|
-
"description": "The date-is-hovered event from a cell.",
|
|
5337
|
-
"type": {
|
|
5338
|
-
"text": "CustomEvent"
|
|
5339
|
-
}
|
|
5340
|
-
}
|
|
5341
|
-
],
|
|
5342
|
-
"description": "Called when a cell fires `date-is-hovered`. Fires `hovered-date-changed` with the date\ninstead of setting the base class's reactive `hoveredDate`, so the calendar can update\nthe range preview without re-rendering.",
|
|
5343
|
-
"privacy": "private",
|
|
5344
|
-
"return": {
|
|
5345
|
-
"type": {
|
|
5346
|
-
"text": "void"
|
|
5347
|
-
}
|
|
5348
|
-
}
|
|
5349
|
-
},
|
|
5350
|
-
{
|
|
5351
|
-
"kind": "method",
|
|
5352
|
-
"name": "handleTbodyMouseLeave",
|
|
5353
|
-
"description": "Called when the pointer leaves the month's date grid. Fires a bubbling\n`calendar-month-mouseleave` event so the calendar can clear the range preview.",
|
|
5354
|
-
"privacy": "private",
|
|
5355
|
-
"return": {
|
|
5356
|
-
"type": {
|
|
5357
|
-
"text": "void"
|
|
5358
|
-
}
|
|
5359
|
-
}
|
|
5360
|
-
},
|
|
5361
|
-
{
|
|
5362
|
-
"kind": "field",
|
|
5363
|
-
"name": "localeCode",
|
|
5364
|
-
"privacy": "public",
|
|
5365
|
-
"type": {
|
|
5366
|
-
"text": "string"
|
|
5367
|
-
},
|
|
5368
|
-
"description": "Sets the language and region for the month and weekday names, such as `en-US` (a BCP 47 language tag). It's named `localeCode` because the base class already uses `locale`.",
|
|
5369
|
-
"attribute": "localecode"
|
|
5370
|
-
},
|
|
5371
|
-
{
|
|
5372
|
-
"kind": "field",
|
|
5373
|
-
"name": "monthFirst",
|
|
5374
|
-
"privacy": "public",
|
|
5375
|
-
"type": {
|
|
5376
|
-
"text": "boolean"
|
|
5377
|
-
},
|
|
5378
|
-
"description": "Shows the month name before the year in the month's heading.",
|
|
5379
|
-
"attribute": "monthfirst",
|
|
5380
|
-
"reflects": true
|
|
5381
|
-
},
|
|
5382
|
-
{
|
|
5383
|
-
"kind": "field",
|
|
5384
|
-
"name": "monthNames",
|
|
5385
|
-
"privacy": "public",
|
|
5386
|
-
"type": {
|
|
5387
|
-
"text": "string[]"
|
|
5388
|
-
},
|
|
5389
|
-
"description": "Sets the 12 month names shown in the heading, from January to December, such as translated names. When not set, the names come from `localeCode`.",
|
|
5390
|
-
"attribute": "monthnames"
|
|
5391
|
-
},
|
|
5392
|
-
{
|
|
5393
|
-
"kind": "method",
|
|
5394
|
-
"name": "renderDayOfWeek",
|
|
5395
|
-
"parameters": [
|
|
5396
|
-
{
|
|
5397
|
-
"name": "dayOfWeek",
|
|
5398
|
-
"description": "The narrow day name, such as \"S\".",
|
|
5399
|
-
"type": {
|
|
5400
|
-
"text": "String"
|
|
5401
|
-
}
|
|
5402
|
-
},
|
|
5403
|
-
{
|
|
5404
|
-
"name": "index",
|
|
5405
|
-
"description": "The column's index in `dayNamesOfTheWeek`, from 0 for Sunday.",
|
|
5406
|
-
"type": {
|
|
5407
|
-
"text": "Number"
|
|
5408
|
-
}
|
|
5409
|
-
}
|
|
5410
|
-
],
|
|
5411
|
-
"description": "Renders a day-of-week column header that shows the narrow day name, such as \"S\" for Sunday in `en-US`, and gives screen readers the full name with `aria-label`.",
|
|
5412
|
-
"privacy": "private",
|
|
5413
|
-
"return": {
|
|
5414
|
-
"type": {
|
|
5415
|
-
"text": "Object"
|
|
5416
|
-
}
|
|
5417
|
-
}
|
|
5418
|
-
}
|
|
5419
|
-
],
|
|
5420
|
-
"events": [
|
|
5421
|
-
{
|
|
5422
|
-
"name": "calendar-month-mouseleave",
|
|
5423
|
-
"type": {
|
|
5424
|
-
"text": "CustomEvent"
|
|
5425
|
-
},
|
|
5426
|
-
"description": "Notifies that the pointer left the month's date grid, so the calendar can clear the range preview."
|
|
5427
|
-
},
|
|
5428
|
-
{
|
|
5429
|
-
"name": "hovered-date-changed",
|
|
5430
|
-
"type": {
|
|
5431
|
-
"text": "CustomEvent"
|
|
5432
|
-
},
|
|
5433
|
-
"description": "Notifies that the date currently hovered within the month grid has changed."
|
|
5434
|
-
}
|
|
5435
|
-
],
|
|
5436
|
-
"attributes": [
|
|
5437
|
-
{
|
|
5438
|
-
"name": "localecode",
|
|
5439
|
-
"type": {
|
|
5440
|
-
"text": "string"
|
|
5441
|
-
},
|
|
5442
|
-
"description": "Sets the language and region for the month and weekday names, such as `en-US` (a BCP 47 language tag). It's named `localeCode` because the base class already uses `locale`.",
|
|
5443
|
-
"fieldName": "localeCode"
|
|
5444
|
-
},
|
|
5445
|
-
{
|
|
5446
|
-
"name": "monthfirst",
|
|
5447
|
-
"type": {
|
|
5448
|
-
"text": "boolean"
|
|
5449
|
-
},
|
|
5450
|
-
"description": "Shows the month name before the year in the month's heading.",
|
|
5451
|
-
"fieldName": "monthFirst"
|
|
5452
|
-
},
|
|
5453
|
-
{
|
|
5454
|
-
"name": "monthnames",
|
|
5455
|
-
"type": {
|
|
5456
|
-
"text": "string[]"
|
|
5457
|
-
},
|
|
5458
|
-
"description": "Sets the 12 month names shown in the heading, from January to December, such as translated names. When not set, the names come from `localeCode`.",
|
|
5459
|
-
"fieldName": "monthNames"
|
|
5460
|
-
}
|
|
5461
|
-
],
|
|
5462
|
-
"superclass": {
|
|
5463
|
-
"name": "RangeDatepickerCalendar",
|
|
5464
|
-
"module": "/components/datepicker/src/vendor/wc-range-datepicker/range-datepicker-calendar.js"
|
|
5465
|
-
},
|
|
5466
|
-
"tagName": "auro-formkit-calendar-month",
|
|
5467
|
-
"customElement": true
|
|
5468
|
-
}
|
|
5469
|
-
],
|
|
5470
|
-
"exports": [
|
|
5471
|
-
{
|
|
5472
|
-
"kind": "custom-element-definition",
|
|
5473
|
-
"name": "auro-formkit-calendar-month",
|
|
5474
|
-
"declaration": {
|
|
5475
|
-
"name": "AuroCalendarMonth",
|
|
5476
|
-
"module": "components/datepicker/src/auro-calendar-month.js"
|
|
5477
|
-
}
|
|
5478
|
-
},
|
|
5479
|
-
{
|
|
5480
|
-
"kind": "js",
|
|
5481
|
-
"name": "AuroCalendarMonth",
|
|
5482
|
-
"declaration": {
|
|
5483
|
-
"name": "AuroCalendarMonth",
|
|
5484
|
-
"module": "components/datepicker/src/auro-calendar-month.js"
|
|
5485
|
-
}
|
|
5486
|
-
}
|
|
5487
|
-
]
|
|
5488
|
-
},
|
|
5489
|
-
{
|
|
5490
|
-
"kind": "javascript-module",
|
|
5491
|
-
"path": "components/datepicker/src/auro-calendar.js",
|
|
5492
|
-
"declarations": [
|
|
5493
|
-
{
|
|
5494
|
-
"kind": "class",
|
|
5495
|
-
"description": "The calendar inside the datepicker's dropdown, which shows one or more months and handles date selection, range previews, and keyboard navigation.",
|
|
5496
|
-
"name": "AuroCalendar",
|
|
5497
|
-
"members": [
|
|
5498
|
-
{
|
|
5499
|
-
"kind": "field",
|
|
5500
|
-
"name": "_activeCell",
|
|
5501
|
-
"type": {
|
|
5502
|
-
"text": "null"
|
|
5503
|
-
},
|
|
5504
|
-
"description": "Cached reference to the active cell host. Set by setActiveCell and\nrefreshed by scrollToActiveCell when its cache check misses (stale\nor missing). Lets scrollToActiveCell skip a full cell scan on each\narrow key.",
|
|
5505
|
-
"privacy": "private",
|
|
5506
|
-
"default": "null"
|
|
5507
|
-
},
|
|
5508
|
-
{
|
|
5509
|
-
"kind": "method",
|
|
5510
|
-
"name": "_afterMonthRender",
|
|
5511
|
-
"parameters": [
|
|
5512
|
-
{
|
|
5513
|
-
"name": "callback",
|
|
5514
|
-
"description": "Runs once after the month re-render and\nthe cells' button caches have refreshed.",
|
|
5515
|
-
"type": {
|
|
5516
|
-
"text": "() => void"
|
|
5517
|
-
}
|
|
5518
|
-
}
|
|
5519
|
-
],
|
|
5520
|
-
"description": "Schedules `callback` two animation frames out, giving the child\n`auro-formkit-calendar-month` and `auro-formkit-calendar-cell` elements\na full render-and-paint cycle to settle before the callback reads or\nmutates DOM.\n\nWhy two frames, not one:\n1. Lit batches property updates and renders in a microtask, so frame N\n schedules the render but the new DOM may not be painted yet.\n2. Cells re-cache `_cachedButton` inside their own `updateComplete.then`,\n which also lands a tick later. Reading buttons from frame N+1\n (after both renders + cache refresh have flushed) reliably hits the\n new month's cells.\n\nUsed by every code path that calls `handleNextMonth`/`handlePrevMonth`\nand then needs to inspect the freshly-rendered cells (cross-month\nkeyboard nav, boundary events, `updateActiveCellForVisibleMonth`).\nDo NOT collapse to a single rAF: it intermittently lands before\n`_cachedButton` is refreshed, which silently breaks focus restoration\nand `setActiveCell` lookups.",
|
|
5521
|
-
"privacy": "private",
|
|
5522
|
-
"return": {
|
|
5523
|
-
"type": {
|
|
5524
|
-
"text": "void"
|
|
5525
|
-
}
|
|
5526
|
-
}
|
|
5527
|
-
},
|
|
5528
|
-
{
|
|
5529
|
-
"kind": "field",
|
|
5530
|
-
"name": "_calendarInstanceId",
|
|
5531
|
-
"description": "Unique instance ID for the live region element.",
|
|
5532
|
-
"privacy": "private"
|
|
5533
|
-
},
|
|
5534
|
-
{
|
|
5535
|
-
"kind": "method",
|
|
5536
|
-
"name": "_deliverAnnouncement",
|
|
5537
|
-
"parameters": [
|
|
5538
|
-
{
|
|
5539
|
-
"name": "dateStr",
|
|
5540
|
-
"description": "The localized date string to announce.",
|
|
5541
|
-
"type": {
|
|
5542
|
-
"text": "String"
|
|
5543
|
-
}
|
|
5544
|
-
},
|
|
5545
|
-
{
|
|
5546
|
-
"name": "attempts",
|
|
5547
|
-
"description": "The number of earlier retry attempts.",
|
|
5548
|
-
"type": {
|
|
5549
|
-
"text": "Number"
|
|
5550
|
-
}
|
|
5551
|
-
}
|
|
5552
|
-
],
|
|
5553
|
-
"description": "Writes `dateStr` to the live region. If the dropdown's dialog hasn't\nmounted yet (so getOrCreateLiveRegion can't attach), retries on the\nnext animation frame up to MAX_LIVE_REGION_RETRIES instead of silently\ndropping the announcement. The retry uses the same `_announceRafId`\nthe double-rAF below uses, so a newer announceSelection call (or\ndisconnectedCallback) cancels any in-flight retry.",
|
|
5554
|
-
"privacy": "private",
|
|
5555
|
-
"return": {
|
|
5556
|
-
"type": {
|
|
5557
|
-
"text": "void"
|
|
5558
|
-
}
|
|
5559
|
-
}
|
|
5560
|
-
},
|
|
5561
|
-
{
|
|
5562
|
-
"kind": "method",
|
|
5563
|
-
"name": "_getBlackoutSet",
|
|
5564
|
-
"description": "Gets a memoized Set of blackout timestamps (seconds) drawn from both\nthe legacy `disabledDays` array and the datepicker's ISO `blackoutDates`.\n\nThe cache invalidates on **reference identity**: only when the\nconsumer reassigns the array (`el.blackoutDates = [...]`), matching\nLit's own reactivity semantics for array properties. In-place mutations\non the existing array (`push`, `splice`, index assignment) don't\ninvalidate the cache, and the new entries are silently ignored.\nConsumers must reassign to update; see the JSDoc on\n`auro-datepicker.blackoutDates` for the recommended pattern.\n\nA shallow-equality tier was considered but rejected: it would run\nO(N) work on every cell render (this method is called per-cell via\n`isBlackout()`) and still wouldn't catch same-length value swaps,\noffering a false sense of safety.",
|
|
5565
|
-
"privacy": "private",
|
|
5566
|
-
"return": {
|
|
5567
|
-
"type": {
|
|
5568
|
-
"text": "Set<Number>"
|
|
5569
|
-
}
|
|
5570
|
-
}
|
|
5571
|
-
},
|
|
5572
|
-
{
|
|
5573
|
-
"kind": "field",
|
|
5574
|
-
"name": "_gridHasFocus",
|
|
5575
|
-
"type": {
|
|
5576
|
-
"text": "boolean"
|
|
5577
|
-
},
|
|
5578
|
-
"description": "Whether the #calendarGrid wrapper currently has focus.\nDetermines whether the visualFocus ring should be shown.",
|
|
5579
|
-
"privacy": "private",
|
|
5580
|
-
"default": "false"
|
|
5581
|
-
},
|
|
5582
|
-
{
|
|
5583
|
-
"kind": "method",
|
|
5584
|
-
"name": "_warnDisabledDaysDeprecated",
|
|
5585
|
-
"description": "One-time `console.debug` directing consumers from the legacy\n`disabledDays` Unix-timestamp API to the ISO `blackoutDates` API. Fires\nthe first time `_getBlackoutSet` rebuilds from a non-empty\n`disabledDays`; subsequent calls (on this or any other AuroCalendar\ninstance on the page) are silent.",
|
|
5586
|
-
"privacy": "private",
|
|
5587
|
-
"return": {
|
|
5588
|
-
"type": {
|
|
5589
|
-
"text": "void"
|
|
5590
|
-
}
|
|
5591
|
-
}
|
|
5592
|
-
},
|
|
5593
|
-
{
|
|
5594
|
-
"kind": "field",
|
|
5595
|
-
"name": "_warnedDisabledDaysDeprecation",
|
|
5596
|
-
"type": {
|
|
5597
|
-
"text": "boolean"
|
|
5598
|
-
},
|
|
5599
|
-
"static": true,
|
|
5600
|
-
"default": "false",
|
|
5601
|
-
"description": "Per-class flag that gates the `disabledDays` deprecation warning so it\nfires exactly once per page no matter how many calendars or rebuild\ncycles encounter the legacy array.",
|
|
5602
|
-
"privacy": "private"
|
|
5603
|
-
},
|
|
5604
|
-
{
|
|
5605
|
-
"kind": "field",
|
|
5606
|
-
"name": "activeCellDate",
|
|
5607
|
-
"type": {
|
|
5608
|
-
"text": "null"
|
|
5609
|
-
},
|
|
5610
|
-
"description": "The date of the currently active cell (Unix timestamp).\nOnly one cell across the entire calendar is active at a time; keyboard focus stays on the grid.",
|
|
5611
|
-
"privacy": "private",
|
|
5612
|
-
"default": "null"
|
|
5613
|
-
},
|
|
5614
|
-
{
|
|
5615
|
-
"kind": "method",
|
|
5616
|
-
"name": "announceFocusDebounced",
|
|
5617
|
-
"parameters": [
|
|
5618
|
-
{
|
|
5619
|
-
"name": "dateStr",
|
|
5620
|
-
"description": "The localized date string to announce.",
|
|
5621
|
-
"type": {
|
|
5622
|
-
"text": "String"
|
|
5623
|
-
}
|
|
5624
|
-
}
|
|
5625
|
-
],
|
|
5626
|
-
"description": "Announces a date to screen readers after a 150 ms pause, so only the\nlast cell reached with the arrow keys is announced.\nUses the assertive live region, because VoiceOver waits for the page to\nbe idle before it reads a polite one, which never happens during\narrow-key navigation, so polite announcements were dropped.\n\nThis is a documented deviation from WCAG 2.1 SC 4.1.3, which\nprefers `polite` for status messages. See the \"Documented\ndeviation\" section in `components/datepicker/docs/pages/accessibility.md`.",
|
|
5627
|
-
"privacy": "private",
|
|
5628
|
-
"return": {
|
|
5629
|
-
"type": {
|
|
5630
|
-
"text": "void"
|
|
5631
|
-
}
|
|
5632
|
-
}
|
|
5633
|
-
},
|
|
5634
|
-
{
|
|
5635
|
-
"kind": "method",
|
|
5636
|
-
"name": "announceMonthChange",
|
|
5637
|
-
"description": "Announces the current month and year via the live region after navigation.",
|
|
5638
|
-
"privacy": "private",
|
|
5639
|
-
"return": {
|
|
5640
|
-
"type": {
|
|
5641
|
-
"text": "void"
|
|
5642
|
-
}
|
|
5643
|
-
}
|
|
5644
|
-
},
|
|
5645
|
-
{
|
|
5646
|
-
"kind": "method",
|
|
5647
|
-
"name": "announceSelection",
|
|
5648
|
-
"parameters": [
|
|
5649
|
-
{
|
|
5650
|
-
"name": "dateStr",
|
|
5651
|
-
"description": "The localized date string to announce.",
|
|
5652
|
-
"type": {
|
|
5653
|
-
"text": "String"
|
|
5654
|
-
}
|
|
5655
|
-
}
|
|
5656
|
-
],
|
|
5657
|
-
"description": "Announces a date selection or focus change via the live region.\nUses requestAnimationFrame to ensure the clear and set happen in\nseparate rendering frames, because Chrome may coalesce synchronous or\nmicrotask-deferred mutations into a single accessibility tree update.",
|
|
5658
|
-
"privacy": "private",
|
|
5659
|
-
"return": {
|
|
5660
|
-
"type": {
|
|
5661
|
-
"text": "void"
|
|
5662
|
-
}
|
|
5663
|
-
}
|
|
5664
|
-
},
|
|
5665
|
-
{
|
|
5666
|
-
"kind": "field",
|
|
5667
|
-
"name": "bibtemplateTag",
|
|
5668
|
-
"privacy": "private"
|
|
5669
|
-
},
|
|
5670
|
-
{
|
|
5671
|
-
"kind": "method",
|
|
5672
|
-
"name": "buildFocusAnnouncement",
|
|
5673
|
-
"parameters": [
|
|
5674
|
-
{
|
|
5675
|
-
"name": "date",
|
|
5676
|
-
"description": "The Unix timestamp, in seconds, of the focused cell.",
|
|
5677
|
-
"type": {
|
|
5678
|
-
"text": "Number"
|
|
5679
|
-
}
|
|
5680
|
-
}
|
|
5681
|
-
],
|
|
5682
|
-
"description": "Builds a full screen reader announcement string for a focused cell date.\nIncludes the localized date, any date slot and popover content, the range\nposition, and the blackout status.",
|
|
5683
|
-
"privacy": "private",
|
|
5684
|
-
"return": {
|
|
5685
|
-
"type": {
|
|
5686
|
-
"text": "String"
|
|
5687
|
-
}
|
|
5688
|
-
}
|
|
5689
|
-
},
|
|
5690
|
-
{
|
|
5691
|
-
"kind": "field",
|
|
5692
|
-
"name": "buttonTag",
|
|
5693
|
-
"privacy": "private"
|
|
5694
|
-
},
|
|
5695
|
-
{
|
|
5696
|
-
"kind": "field",
|
|
5697
|
-
"name": "calendarEndMonth",
|
|
5698
|
-
"privacy": "public",
|
|
5699
|
-
"type": {
|
|
5700
|
-
"text": "string"
|
|
5701
|
-
},
|
|
5702
|
-
"description": "Doesn't currently do anything. The calendar reads its last month from the `calendarEndDate` attribute, which the datepicker sets.",
|
|
5703
|
-
"attribute": "calendarendmonth",
|
|
5704
|
-
"reflects": true
|
|
5705
|
-
},
|
|
5706
|
-
{
|
|
5707
|
-
"kind": "field",
|
|
5708
|
-
"name": "calendarRangeMonths",
|
|
5709
|
-
"type": {
|
|
5710
|
-
"text": "null"
|
|
5711
|
-
},
|
|
5712
|
-
"privacy": "private",
|
|
5713
|
-
"default": "null"
|
|
5714
|
-
},
|
|
5715
|
-
{
|
|
5716
|
-
"kind": "field",
|
|
5717
|
-
"name": "calendarStartMonth",
|
|
5718
|
-
"privacy": "public",
|
|
5719
|
-
"type": {
|
|
5720
|
-
"text": "string"
|
|
5721
|
-
},
|
|
5722
|
-
"description": "Doesn't currently do anything. The calendar reads its first month from the `calendarStartDate` attribute, which the datepicker sets.",
|
|
5723
|
-
"attribute": "calendarstartmonth",
|
|
5724
|
-
"reflects": true
|
|
5725
|
-
},
|
|
5726
|
-
{
|
|
5727
|
-
"kind": "field",
|
|
5728
|
-
"name": "centralDate",
|
|
5729
|
-
"privacy": "public",
|
|
5730
|
-
"type": {
|
|
5731
|
-
"text": "string"
|
|
5732
|
-
},
|
|
5733
|
-
"description": "Sets the date whose month the calendar shows, as an ISO date string such as `2025-04-01`. The fullscreen calendar instead starts at `calendarStartDate`, `minDate`, or the current month.",
|
|
5734
|
-
"default": "undefined",
|
|
5735
|
-
"attribute": "centraldate",
|
|
5736
|
-
"reflects": true
|
|
5737
|
-
},
|
|
5738
|
-
{
|
|
5739
|
-
"kind": "field",
|
|
5740
|
-
"name": "centralDateObject",
|
|
5741
|
-
"description": "Gets `centralDate` as a `Date` object, or `undefined` when it isn't a valid date.",
|
|
5742
|
-
"return": {
|
|
5743
|
-
"type": {
|
|
5744
|
-
"text": "Date|undefined"
|
|
5745
|
-
}
|
|
5746
|
-
},
|
|
5747
|
-
"readonly": true
|
|
5748
|
-
},
|
|
5749
|
-
{
|
|
5750
|
-
"kind": "method",
|
|
5751
|
-
"name": "clearRangePreview",
|
|
5752
|
-
"parameters": [
|
|
5753
|
-
{
|
|
5754
|
-
"name": "options",
|
|
5755
|
-
"description": "The optional settings.",
|
|
5756
|
-
"optional": true,
|
|
5757
|
-
"type": {
|
|
5758
|
-
"text": "@param {boolean} [options.force=false] - If true, clears classes even\n * when both dateFrom and dateTo are set. Month nav handlers use it to\n * strip the imperative-only `lastHoveredDate` before the re-render.\n * The other two classes (`inRange`, `rangeDepartDate`) are classMap-\n * managed and get stripped as a side effect here; because classMap\n * remembers what it last emitted and doesn't diff against the actual\n * DOM, the following month re-render doesn't re-add them on its own.\n * Nav handlers must schedule `refreshCommittedRangeClasses` (via\n * `scheduleCommittedRangeClassRefresh`) to resync them. If false, clears\n * the classes only while the range doesn't have both dates.\n * "
|
|
5759
|
-
}
|
|
5760
|
-
}
|
|
5761
|
-
],
|
|
5762
|
-
"description": "Clears range preview classes from all cells.",
|
|
5763
|
-
"privacy": "private",
|
|
5764
|
-
"return": {
|
|
5765
|
-
"type": {
|
|
5766
|
-
"text": "void"
|
|
5767
|
-
}
|
|
5768
|
-
}
|
|
5769
|
-
},
|
|
5770
|
-
{
|
|
5771
|
-
"kind": "method",
|
|
5772
|
-
"name": "computeActiveDate",
|
|
5773
|
-
"parameters": [
|
|
5774
|
-
{
|
|
5775
|
-
"name": "options",
|
|
5776
|
-
"default": "{}",
|
|
5777
|
-
"description": "The optional settings.",
|
|
5778
|
-
"optional": true,
|
|
5779
|
-
"type": {
|
|
5780
|
-
"text": "@param {boolean} [options.skipDateFrom=false] - If true, skips the selected date\n * (step 1), so after month navigation the active cell lands in the newly visible month\n * instead of jumping back to the selected date's month. If false, starts with the selected date when it's in range.\n * "
|
|
5781
|
-
}
|
|
5782
|
-
}
|
|
5783
|
-
],
|
|
5784
|
-
"description": "Computes the initial active date from data properties alone, without the DOM.\nPriority:\n 1. The selected date (`dateFrom`), if it's within range.\n 2. When `centralDate` is in a different month than today, the first enabled date in that month, or else its first in-range date.\n 3. Today's date, if it's enabled (in range and not a blackout date).\n 4. The first enabled date in the visible months, or else their first in-range date.\n 5. The first enabled date after today, scanning day by day for up to a year.\n 6. The first enabled date before today, scanning day by day for up to a year.\n 7. The first enabled date in a finite [min, max] range.\n 7b. The first enabled date scanning forward from a finite min (unbounded max).\n 7c. The first enabled date scanning backward from a finite max (unbounded min).\n 8. An in-range date, even if it's a blackout date, so focus can land somewhere: min when it's finite, or else today.\n 9. Undefined: no valid target.",
|
|
5785
|
-
"privacy": "private",
|
|
5786
|
-
"return": {
|
|
5787
|
-
"type": {
|
|
5788
|
-
"text": "Number|undefined"
|
|
5789
|
-
}
|
|
5790
|
-
}
|
|
5791
|
-
},
|
|
5792
|
-
{
|
|
5793
|
-
"kind": "field",
|
|
5794
|
-
"name": "dateFrom",
|
|
5795
|
-
"privacy": "public",
|
|
5796
|
-
"type": {
|
|
5797
|
-
"text": "string"
|
|
5798
|
-
},
|
|
5799
|
-
"description": "Sets the chosen date, or the start date of a range, as a Unix timestamp in seconds.",
|
|
5800
|
-
"attribute": "datefrom"
|
|
5801
|
-
},
|
|
5802
|
-
{
|
|
5803
|
-
"kind": "field",
|
|
5804
|
-
"name": "dateTo",
|
|
5805
|
-
"privacy": "public",
|
|
5806
|
-
"type": {
|
|
5807
|
-
"text": "string"
|
|
5808
|
-
},
|
|
5809
|
-
"description": "Sets the end date of a range, as a Unix timestamp in seconds.",
|
|
5810
|
-
"attribute": "dateto"
|
|
5811
|
-
},
|
|
5812
|
-
{
|
|
5813
|
-
"kind": "field",
|
|
5814
|
-
"name": "dropdown",
|
|
5815
|
-
"privacy": "private",
|
|
5816
|
-
"type": {
|
|
5817
|
-
"text": "HTMLElement"
|
|
5818
|
-
},
|
|
5819
|
-
"description": "Dropdown element that contains the calendar.",
|
|
5820
|
-
"default": "undefined",
|
|
5821
|
-
"attribute": "dropdown"
|
|
5822
|
-
},
|
|
5823
|
-
{
|
|
5824
|
-
"kind": "field",
|
|
5825
|
-
"name": "firstMonthRenderable",
|
|
5826
|
-
"privacy": "private",
|
|
5827
|
-
"default": "undefined"
|
|
5828
|
-
},
|
|
5829
|
-
{
|
|
5830
|
-
"kind": "method",
|
|
5831
|
-
"name": "focusActiveCell",
|
|
5832
|
-
"description": "Moves keyboard focus to the calendar grid and marks the active cell again. Screen reader users hear the active date through a live region, not through focus.",
|
|
5833
|
-
"return": {
|
|
5834
|
-
"type": {
|
|
5835
|
-
"text": "void"
|
|
5836
|
-
}
|
|
5837
|
-
}
|
|
5838
|
-
},
|
|
5839
|
-
{
|
|
5840
|
-
"kind": "method",
|
|
5841
|
-
"name": "focusCloseButton",
|
|
5842
|
-
"description": "Moves keyboard focus to the close button of the fullscreen calendar.",
|
|
5843
|
-
"return": {
|
|
5844
|
-
"type": {
|
|
5845
|
-
"text": "void"
|
|
5846
|
-
}
|
|
5847
|
-
}
|
|
5848
|
-
},
|
|
5849
|
-
{
|
|
5850
|
-
"kind": "method",
|
|
5851
|
-
"name": "formatAnnouncementDate",
|
|
5852
|
-
"parameters": [
|
|
5853
|
-
{
|
|
5854
|
-
"name": "timestamp",
|
|
5855
|
-
"description": "The Unix timestamp, in seconds.",
|
|
5856
|
-
"type": {
|
|
5857
|
-
"text": "String|Number"
|
|
5858
|
-
}
|
|
5859
|
-
}
|
|
5860
|
-
],
|
|
5861
|
-
"description": "Formats a Unix timestamp (seconds) as a localized date string for screen reader announcements.",
|
|
5862
|
-
"privacy": "private",
|
|
5863
|
-
"return": {
|
|
5864
|
-
"type": {
|
|
5865
|
-
"text": "String"
|
|
5866
|
-
}
|
|
5867
|
-
}
|
|
5868
|
-
},
|
|
5869
|
-
{
|
|
5870
|
-
"kind": "method",
|
|
5871
|
-
"name": "getAllFocusableCells",
|
|
5872
|
-
"description": "Gets all focusable cells across all rendered months.",
|
|
5873
|
-
"privacy": "private",
|
|
5874
|
-
"return": {
|
|
5875
|
-
"type": {
|
|
5876
|
-
"text": "Array"
|
|
5877
|
-
}
|
|
5878
|
-
}
|
|
5879
|
-
},
|
|
5880
|
-
{
|
|
5881
|
-
"kind": "method",
|
|
5882
|
-
"name": "getMonthComponents",
|
|
5883
|
-
"description": "Gets all rendered month components.",
|
|
5884
|
-
"privacy": "private",
|
|
5885
|
-
"return": {
|
|
5886
|
-
"type": {
|
|
5887
|
-
"text": "Array"
|
|
5888
|
-
}
|
|
5889
|
-
}
|
|
5890
|
-
},
|
|
5891
|
-
{
|
|
5892
|
-
"kind": "method",
|
|
5893
|
-
"name": "getOrCreateLiveRegion",
|
|
5894
|
-
"description": "Gets, and creates if needed, an aria-live region inside the dropdown's\n<dialog> element. This placement is critical for two reasons:\n\n1. Inside the dialog's accessible scope: dialog.showModal() makes\n everything outside the top-layer dialog inert, and desktop modal\n mode uses _setPageInert() on document.body siblings. A live region\n on document.body would be invisible to screen readers in both cases.\n\n2. Not nested in shadow DOM: Chrome inconsistently observes aria-live\n mutations inside shadow DOM across machines and versions. The dialog\n element is only one shadow root deep (the dropdown bib's shadow DOM),\n which Chrome handles reliably. The calendar's own shadow DOM (nested\n inside the bib via slotting) is two+ levels deep and unreliable.",
|
|
5895
|
-
"privacy": "private",
|
|
5896
|
-
"return": {
|
|
5897
|
-
"type": {
|
|
5898
|
-
"text": "HTMLElement"
|
|
5899
|
-
}
|
|
5900
|
-
}
|
|
5901
|
-
},
|
|
5902
|
-
{
|
|
5903
|
-
"kind": "method",
|
|
5904
|
-
"name": "getRangePositionLabel",
|
|
5905
|
-
"parameters": [
|
|
5906
|
-
{
|
|
5907
|
-
"name": "date",
|
|
5908
|
-
"description": "The Unix timestamp, in seconds.",
|
|
5909
|
-
"type": {
|
|
5910
|
-
"text": "Number"
|
|
5911
|
-
}
|
|
5912
|
-
}
|
|
5913
|
-
],
|
|
5914
|
-
"description": "Determines the range position label for a given date.",
|
|
5915
|
-
"privacy": "private",
|
|
5916
|
-
"return": {
|
|
5917
|
-
"type": {
|
|
5918
|
-
"text": "String|null"
|
|
5919
|
-
}
|
|
5920
|
-
}
|
|
5921
|
-
},
|
|
5922
|
-
{
|
|
5923
|
-
"kind": "method",
|
|
5924
|
-
"name": "handleCellActivate",
|
|
5925
|
-
"parameters": [
|
|
5926
|
-
{
|
|
5927
|
-
"name": "event",
|
|
5928
|
-
"description": "The activation event with target date.",
|
|
5929
|
-
"type": {
|
|
5930
|
-
"text": "CustomEvent"
|
|
5931
|
-
}
|
|
5932
|
-
}
|
|
5933
|
-
],
|
|
5934
|
-
"description": "Called when a cell fires `calendar-cell-activate` after someone selects it. Makes that cell\nthe active cell without moving focus to the grid.",
|
|
5935
|
-
"privacy": "private",
|
|
5936
|
-
"return": {
|
|
5937
|
-
"type": {
|
|
5938
|
-
"text": "void"
|
|
5939
|
-
}
|
|
5940
|
-
}
|
|
5941
|
-
},
|
|
5942
|
-
{
|
|
5943
|
-
"kind": "method",
|
|
5944
|
-
"name": "handleCellFocused",
|
|
5945
|
-
"parameters": [
|
|
5946
|
-
{
|
|
5947
|
-
"name": "event",
|
|
5948
|
-
"description": "The calendar-cell-focused event.",
|
|
5949
|
-
"type": {
|
|
5950
|
-
"text": "CustomEvent"
|
|
5951
|
-
}
|
|
5952
|
-
}
|
|
5953
|
-
],
|
|
5954
|
-
"description": "Called when a cell's button gets focus, and after the arrow keys move the active cell.\nAnnounces the date to screen readers through the live region and updates the range preview.",
|
|
5955
|
-
"privacy": "private",
|
|
5956
|
-
"return": {
|
|
5957
|
-
"type": {
|
|
5958
|
-
"text": "void"
|
|
5959
|
-
}
|
|
5960
|
-
}
|
|
5961
|
-
},
|
|
5962
|
-
{
|
|
5963
|
-
"kind": "method",
|
|
5964
|
-
"name": "handleGridFocusIn",
|
|
5965
|
-
"parameters": [
|
|
5966
|
-
{
|
|
5967
|
-
"name": "event",
|
|
5968
|
-
"description": "The focusin event.",
|
|
5969
|
-
"optional": true,
|
|
5970
|
-
"type": {
|
|
5971
|
-
"text": "FocusEvent"
|
|
5972
|
-
}
|
|
5973
|
-
}
|
|
5974
|
-
],
|
|
5975
|
-
"description": "Called when focus moves into the calendar grid. Shows the focus ring on the active cell\nwhen the grid itself gets focus, not a cell inside it.",
|
|
5976
|
-
"privacy": "private",
|
|
5977
|
-
"return": {
|
|
5978
|
-
"type": {
|
|
5979
|
-
"text": "void"
|
|
5980
|
-
}
|
|
5981
|
-
}
|
|
5982
|
-
},
|
|
5983
|
-
{
|
|
5984
|
-
"kind": "method",
|
|
5985
|
-
"name": "handleGridFocusOut",
|
|
5986
|
-
"description": "Called when the calendar grid or an element in it loses focus. Removes the focus ring from\nevery cell, and clears the range preview while the range doesn't have both dates.",
|
|
5987
|
-
"privacy": "private",
|
|
5988
|
-
"return": {
|
|
5989
|
-
"type": {
|
|
5990
|
-
"text": "void"
|
|
5991
|
-
}
|
|
5992
|
-
}
|
|
5993
|
-
},
|
|
5994
|
-
{
|
|
5995
|
-
"kind": "method",
|
|
5996
|
-
"name": "handleGridKeyDown",
|
|
5997
|
-
"parameters": [
|
|
5998
|
-
{
|
|
5999
|
-
"name": "event",
|
|
6000
|
-
"description": "The keyboard event.",
|
|
6001
|
-
"type": {
|
|
6002
|
-
"text": "KeyboardEvent"
|
|
6003
|
-
}
|
|
6004
|
-
}
|
|
6005
|
-
],
|
|
6006
|
-
"description": "Called when a key is pressed while the calendar grid has focus. The arrow keys move the\nactive cell, into another month when needed, and Enter or Space selects the active date\nunless it's a blackout date. Focus stays on the grid, and the live region announces the new active cell.",
|
|
6007
|
-
"privacy": "private",
|
|
6008
|
-
"return": {
|
|
6009
|
-
"type": {
|
|
6010
|
-
"text": "void"
|
|
6011
|
-
}
|
|
6012
|
-
}
|
|
6013
|
-
},
|
|
6014
|
-
{
|
|
6015
|
-
"kind": "method",
|
|
6016
|
-
"name": "handleMonthBoundary",
|
|
6017
|
-
"parameters": [
|
|
6018
|
-
{
|
|
6019
|
-
"name": "event",
|
|
6020
|
-
"description": "The boundary event with direction and source date info.",
|
|
6021
|
-
"type": {
|
|
6022
|
-
"text": "CustomEvent"
|
|
6023
|
-
}
|
|
6024
|
-
}
|
|
6025
|
-
],
|
|
6026
|
-
"description": "Called when the calendar receives a `calendar-month-boundary` event. Moves the active cell\nacross a month boundary for the arrow key in `event.detail.key`. Nothing in the datepicker\ncurrently fires this event.",
|
|
6027
|
-
"privacy": "private",
|
|
6028
|
-
"return": {
|
|
6029
|
-
"type": {
|
|
6030
|
-
"text": "void"
|
|
6031
|
-
}
|
|
6032
|
-
}
|
|
6033
|
-
},
|
|
6034
|
-
{
|
|
6035
|
-
"kind": "method",
|
|
6036
|
-
"name": "handleNextMonth",
|
|
6037
|
-
"parameters": [
|
|
6038
|
-
{
|
|
6039
|
-
"name": "options",
|
|
6040
|
-
"description": "The optional settings.",
|
|
6041
|
-
"optional": true,
|
|
6042
|
-
"type": {
|
|
6043
|
-
"text": "@param {boolean} [options.skipActiveUpdate=false] - If true, keeps the active cell where it is,\n * for arrow key handlers that move the active cell themselves. If false, moves the active cell\n * to the first enabled date in the new month.\n * "
|
|
6044
|
-
}
|
|
6045
|
-
}
|
|
6046
|
-
],
|
|
6047
|
-
"description": "Updates the month and year when the user navigates to the next calendar month.",
|
|
6048
|
-
"privacy": "private",
|
|
6049
|
-
"return": {
|
|
6050
|
-
"type": {
|
|
6051
|
-
"text": "void"
|
|
6052
|
-
}
|
|
6053
|
-
}
|
|
6054
|
-
},
|
|
6055
|
-
{
|
|
6056
|
-
"kind": "method",
|
|
6057
|
-
"name": "handlePrevMonth",
|
|
6058
|
-
"parameters": [
|
|
6059
|
-
{
|
|
6060
|
-
"name": "options",
|
|
6061
|
-
"description": "The optional settings.",
|
|
6062
|
-
"optional": true,
|
|
6063
|
-
"type": {
|
|
6064
|
-
"text": "@param {boolean} [options.skipActiveUpdate=false] - If true, keeps the active cell where it is,\n * for arrow key handlers that move the active cell themselves. If false, moves the active cell\n * to the first enabled date in the new month.\n * "
|
|
6065
|
-
}
|
|
6066
|
-
}
|
|
6067
|
-
],
|
|
6068
|
-
"description": "Updates the month and year when the user navigates to the previous calendar month.",
|
|
6069
|
-
"privacy": "private",
|
|
6070
|
-
"return": {
|
|
6071
|
-
"type": {
|
|
6072
|
-
"text": "void"
|
|
6073
|
-
}
|
|
6074
|
-
}
|
|
6075
|
-
},
|
|
6076
|
-
{
|
|
6077
|
-
"kind": "method",
|
|
6078
|
-
"name": "hoveredDateChanged",
|
|
6079
|
-
"parameters": [
|
|
6080
|
-
{
|
|
6081
|
-
"name": "event",
|
|
6082
|
-
"description": "The hovered-date-changed event from a month.",
|
|
6083
|
-
"type": {
|
|
6084
|
-
"text": "CustomEvent"
|
|
6085
|
-
}
|
|
6086
|
-
}
|
|
6087
|
-
],
|
|
6088
|
-
"description": "Called when a month fires `hovered-date-changed`. Updates the range preview directly\ninstead of setting the base class's reactive `hoveredDate`, so the cells don't re-render.",
|
|
6089
|
-
"privacy": "private",
|
|
6090
|
-
"return": {
|
|
6091
|
-
"type": {
|
|
6092
|
-
"text": "void"
|
|
6093
|
-
}
|
|
6094
|
-
}
|
|
6095
|
-
},
|
|
6096
|
-
{
|
|
6097
|
-
"kind": "method",
|
|
6098
|
-
"name": "isDateBlackout",
|
|
6099
|
-
"parameters": [
|
|
6100
|
-
{
|
|
6101
|
-
"name": "dateTs",
|
|
6102
|
-
"description": "The Unix timestamp, in seconds.",
|
|
6103
|
-
"type": {
|
|
6104
|
-
"text": "Number"
|
|
6105
|
-
}
|
|
6106
|
-
}
|
|
6107
|
-
],
|
|
6108
|
-
"description": "Checks whether a given date is a blackout date. Delegates to the\nmemoized `_getBlackoutSet` so the YYYY-MM-DD parsing and the\nlegacy/ISO merge rules live in exactly one place (see `blackoutUtils.js`).",
|
|
6109
|
-
"privacy": "private",
|
|
6110
|
-
"return": {
|
|
6111
|
-
"type": {
|
|
6112
|
-
"text": "Boolean"
|
|
6113
|
-
}
|
|
6114
|
-
}
|
|
6115
|
-
},
|
|
6116
|
-
{
|
|
6117
|
-
"kind": "method",
|
|
6118
|
-
"name": "isDateInRange",
|
|
6119
|
-
"parameters": [
|
|
6120
|
-
{
|
|
6121
|
-
"name": "targetTs",
|
|
6122
|
-
"description": "The Unix timestamp, in seconds.",
|
|
6123
|
-
"type": {
|
|
6124
|
-
"text": "Number"
|
|
6125
|
-
}
|
|
6126
|
-
}
|
|
6127
|
-
],
|
|
6128
|
-
"description": "Checks if a target date (unix seconds) is within the configured [min, max] range.\nReturns false if the date falls outside the range, preventing navigation\nto months where all dates are disabled.",
|
|
6129
|
-
"privacy": "private",
|
|
6130
|
-
"return": {
|
|
6131
|
-
"type": {
|
|
6132
|
-
"text": "Boolean"
|
|
6133
|
-
}
|
|
6134
|
-
}
|
|
6135
|
-
},
|
|
6136
|
-
{
|
|
6137
|
-
"kind": "field",
|
|
6138
|
-
"name": "isFullscreen",
|
|
6139
|
-
"privacy": "public",
|
|
6140
|
-
"type": {
|
|
6141
|
-
"text": "boolean"
|
|
6142
|
-
},
|
|
6143
|
-
"description": "Shows the calendar in its fullscreen layout. The calendar sets it from the dropdown each time it renders its months.",
|
|
6144
|
-
"default": "false",
|
|
6145
|
-
"attribute": "isfullscreen",
|
|
6146
|
-
"reflects": true
|
|
6147
|
-
},
|
|
6148
|
-
{
|
|
6149
|
-
"kind": "field",
|
|
6150
|
-
"name": "largeFullscreenHeadline",
|
|
6151
|
-
"privacy": "public",
|
|
6152
|
-
"type": {
|
|
6153
|
-
"text": "boolean"
|
|
6154
|
-
},
|
|
6155
|
-
"description": "Shows the fullscreen calendar's headline in a larger heading style.",
|
|
6156
|
-
"default": "false",
|
|
6157
|
-
"attribute": "largefullscreenheadline",
|
|
6158
|
-
"reflects": true
|
|
6159
|
-
},
|
|
6160
|
-
{
|
|
6161
|
-
"kind": "field",
|
|
6162
|
-
"name": "localeCode",
|
|
6163
|
-
"privacy": "public",
|
|
6164
|
-
"type": {
|
|
6165
|
-
"text": "string"
|
|
6166
|
-
},
|
|
6167
|
-
"description": "Sets the language and region for the calendar's month and weekday names and its screen reader announcements, such as `en-US` (a BCP 47 language tag). It's named `localeCode` because the base class already uses `locale`.",
|
|
6168
|
-
"attribute": "localecode"
|
|
6169
|
-
},
|
|
6170
|
-
{
|
|
6171
|
-
"kind": "field",
|
|
6172
|
-
"name": "maxDate",
|
|
6173
|
-
"privacy": "public",
|
|
6174
|
-
"type": {
|
|
6175
|
-
"text": "string"
|
|
6176
|
-
},
|
|
6177
|
-
"description": "Sets the latest date people can choose, as an ISO date string such as `2025-12-31`. Later dates are turned off.",
|
|
6178
|
-
"attribute": "maxdate",
|
|
6179
|
-
"reflects": true
|
|
6180
|
-
},
|
|
6181
|
-
{
|
|
6182
|
-
"kind": "field",
|
|
6183
|
-
"name": "maxDateObject",
|
|
6184
|
-
"description": "Gets `maxDate` as a `Date` object, or `undefined` when it isn't a valid date.",
|
|
6185
|
-
"return": {
|
|
6186
|
-
"type": {
|
|
6187
|
-
"text": "Date|undefined"
|
|
6188
|
-
}
|
|
6189
|
-
},
|
|
6190
|
-
"readonly": true
|
|
6191
|
-
},
|
|
6192
|
-
{
|
|
6193
|
-
"kind": "field",
|
|
6194
|
-
"name": "minDate",
|
|
6195
|
-
"privacy": "public",
|
|
6196
|
-
"type": {
|
|
6197
|
-
"text": "string"
|
|
6198
|
-
},
|
|
6199
|
-
"description": "Sets the earliest date people can choose, as an ISO date string such as `2025-01-01`. Earlier dates are turned off.",
|
|
6200
|
-
"attribute": "mindate",
|
|
6201
|
-
"reflects": true
|
|
6202
|
-
},
|
|
6203
|
-
{
|
|
6204
|
-
"kind": "field",
|
|
6205
|
-
"name": "minDateObject",
|
|
6206
|
-
"description": "Gets `minDate` as a `Date` object, or `undefined` when it isn't a valid date.",
|
|
6207
|
-
"return": {
|
|
6208
|
-
"type": {
|
|
6209
|
-
"text": "Date|undefined"
|
|
6210
|
-
}
|
|
6211
|
-
},
|
|
6212
|
-
"readonly": true
|
|
6213
|
-
},
|
|
6214
|
-
{
|
|
6215
|
-
"kind": "field",
|
|
6216
|
-
"name": "mobileBreakpoint",
|
|
6217
|
-
"privacy": "private",
|
|
6218
|
-
"type": {
|
|
6219
|
-
"text": "number"
|
|
6220
|
-
},
|
|
6221
|
-
"description": "Sets the window width, in pixels, below which `scrollMonthIntoView()` scrolls to a month. The datepicker doesn't currently set it.",
|
|
6222
|
-
"attribute": "mobilebreakpoint"
|
|
6223
|
-
},
|
|
6224
|
-
{
|
|
6225
|
-
"kind": "field",
|
|
6226
|
-
"name": "monthFirst",
|
|
6227
|
-
"privacy": "private",
|
|
6228
|
-
"type": {
|
|
6229
|
-
"text": "boolean"
|
|
6230
|
-
},
|
|
6231
|
-
"description": "Shows the month before the year in the calendar header.\nPassed to AuroCalendarMonth via utilitiesCalendarRender.",
|
|
6232
|
-
"attribute": "monthfirst"
|
|
6233
|
-
},
|
|
6234
|
-
{
|
|
6235
|
-
"kind": "field",
|
|
6236
|
-
"name": "monthNames",
|
|
6237
|
-
"privacy": "public",
|
|
6238
|
-
"type": {
|
|
6239
|
-
"text": "string[]"
|
|
6240
|
-
},
|
|
6241
|
-
"description": "Sets the 12 month names shown in the calendar, from January to December, such as translated names. When not set, the names come from `localeCode`.",
|
|
6242
|
-
"attribute": "monthnames"
|
|
6243
|
-
},
|
|
6244
|
-
{
|
|
6245
|
-
"kind": "field",
|
|
6246
|
-
"name": "numCalendars",
|
|
6247
|
-
"privacy": "private",
|
|
6248
|
-
"type": {
|
|
6249
|
-
"text": "number"
|
|
6250
|
-
},
|
|
6251
|
-
"description": "Number of calendars to render.",
|
|
6252
|
-
"default": "undefined",
|
|
6253
|
-
"attribute": "numcalendars"
|
|
6254
|
-
},
|
|
6255
|
-
{
|
|
6256
|
-
"kind": "method",
|
|
6257
|
-
"name": "pickNearestCell",
|
|
6258
|
-
"parameters": [
|
|
6259
|
-
{
|
|
6260
|
-
"name": "cells",
|
|
6261
|
-
"description": "The focusable cells from getAllFocusableCells.",
|
|
6262
|
-
"type": {
|
|
6263
|
-
"text": "Array"
|
|
6264
|
-
}
|
|
6265
|
-
},
|
|
6266
|
-
{
|
|
6267
|
-
"name": "targetTs",
|
|
6268
|
-
"description": "The Unix timestamp, in seconds, of the date to move to.",
|
|
6269
|
-
"type": {
|
|
6270
|
-
"text": "Number"
|
|
6271
|
-
}
|
|
6272
|
-
},
|
|
6273
|
-
{
|
|
6274
|
-
"name": "direction",
|
|
6275
|
-
"description": "The direction someone is moving: `next` or `prev`.",
|
|
6276
|
-
"type": {
|
|
6277
|
-
"text": "'next'|'prev'"
|
|
6278
|
-
}
|
|
6279
|
-
}
|
|
6280
|
-
],
|
|
6281
|
-
"description": "Picks the focusable cell whose date is closest to targetTs. Used as a\nfallback after a month-boundary nav when the exact target date isn't\nfocusable, typically because the month re-render lagged or the date\nwas filtered out by isOutOfRange. When two cells are equidistant, the\nnavigation direction breaks the tie so the user moves the way they\npressed (forward → later cell, backward → earlier cell).",
|
|
6282
|
-
"privacy": "private",
|
|
6283
|
-
"return": {
|
|
6284
|
-
"type": {
|
|
6285
|
-
"text": "Object|null"
|
|
6286
|
-
}
|
|
6287
|
-
}
|
|
6288
|
-
},
|
|
6289
|
-
{
|
|
6290
|
-
"kind": "method",
|
|
6291
|
-
"name": "refreshCommittedRangeClasses",
|
|
6292
|
-
"description": "Re-applies the committed-range classes across every focusable cell\nafter a month navigation. classMap in the cell tracks its own\nprevious state: once `clearRangePreview({ force: true })` strips\n`inRange`/`rangeDepartDate` imperatively before the re-render,\nclassMap's next diff sees the same class-value it emitted before and\nproduces no delta, leaving the DOM without the classes even though a\nfull range is committed. Re-applying imperatively resyncs the two\nmonths' cells with `dateFrom`/`dateTo`.\n\nIterates `getAllFocusableCells()`: out-of-range cells (blocked by\n`min`/`max`) can never carry range classes anyway, so skipping them\nis correct and cheaper than a whole-grid walk.\n\nThe cell's `applyCommittedRangeClasses` reuses the same\n`isInRange`/`isDepartDate`/`isReturnDate` helpers `renderCellButton`\nuses, so this method doesn't parse `dateFrom` or `dateTo`; the helpers already\nnormalize their inputs (midnight-truncation, string→int) internally.",
|
|
6293
|
-
"privacy": "private",
|
|
6294
|
-
"return": {
|
|
6295
|
-
"type": {
|
|
6296
|
-
"text": "void"
|
|
6297
|
-
}
|
|
6298
|
-
}
|
|
6299
|
-
},
|
|
6300
|
-
{
|
|
6301
|
-
"kind": "method",
|
|
6302
|
-
"name": "renderAllCalendars",
|
|
6303
|
-
"description": "Renders the calendar's `auro-formkit-calendar-month` elements, one for each month shown.\nRenders nothing until `visible` is set.",
|
|
6304
|
-
"privacy": "private",
|
|
6305
|
-
"return": {
|
|
6306
|
-
"type": {
|
|
6307
|
-
"text": "Object|undefined"
|
|
6308
|
-
}
|
|
6309
|
-
}
|
|
6310
|
-
},
|
|
6311
|
-
{
|
|
6312
|
-
"kind": "method",
|
|
6313
|
-
"name": "scheduleCommittedRangeClassRefresh",
|
|
6314
|
-
"description": "Schedules `refreshCommittedRangeClasses` to run after the month\nre-render has flushed and the cells' button caches have refreshed.\nBoth `handlePrevMonth` and `handleNextMonth` need this exact call\nshape; keeping it in one place prevents them from drifting apart.\n\nBails synchronously when a full committed range isn't set; otherwise\nevery prev/next click in single-date mode (or before the user picks\nboth dates in range mode) pays for an unused double-rAF hop.",
|
|
6315
|
-
"privacy": "private",
|
|
6316
|
-
"return": {
|
|
6317
|
-
"type": {
|
|
6318
|
-
"text": "void"
|
|
6319
|
-
}
|
|
6320
|
-
}
|
|
6321
|
-
},
|
|
6322
|
-
{
|
|
6323
|
-
"kind": "method",
|
|
6324
|
-
"name": "scrollMonthIntoView",
|
|
6325
|
-
"parameters": [
|
|
6326
|
-
{
|
|
6327
|
-
"name": "date",
|
|
6328
|
-
"description": "The date to scroll into view, such as `2025-04-21`.",
|
|
6329
|
-
"type": {
|
|
6330
|
-
"text": "String"
|
|
6331
|
-
}
|
|
6332
|
-
}
|
|
6333
|
-
],
|
|
6334
|
-
"description": "Scrolls the fullscreen calendar to the month of a date. Doesn't currently scroll inside `auro-datepicker`, which doesn't pass the screen width the calendar checks.",
|
|
6335
|
-
"return": {
|
|
6336
|
-
"type": {
|
|
6337
|
-
"text": "void"
|
|
6338
|
-
}
|
|
6339
|
-
}
|
|
6340
|
-
},
|
|
6341
|
-
{
|
|
6342
|
-
"kind": "method",
|
|
6343
|
-
"name": "scrollToActiveCell",
|
|
6344
|
-
"description": "Scrolls the calendar so the active cell is visible.\n\nWalks the flat tree (rendered, slot-aware) outward from the active\ncell's button and calls `scrollBy` on every vertically-scrollable\nancestor by whatever delta still separates the cell from that\nancestor's viewport. Native `scrollIntoView` isn't used because the\ncell sits inside multiple nested scroll containers (the dropdown bib's\n`<dialog>`, the bibtemplate's `#bodyContainer`) and the algorithm only\nscrolls one of them on its own, leaving the cell short of the\nviewport in mobile fullscreen.\n\nUses `behavior: 'auto'` (the spec's universally-supported non-animated\nvalue) so each `scrollBy` resolves synchronously and the next\niteration's `getBoundingClientRect` reads post-scroll positions\naccurately. This also satisfies `prefers-reduced-motion` users: the\nscroll containers don't set CSS `scroll-behavior: smooth`, so `auto`\nis effectively instant.\n\nThe active cell is looked up from the cache populated by\n`setActiveCell`. On a cache miss (stale or absent) the cache is\nrefreshed from a single full scan so subsequent calls stay on the\nfast path.",
|
|
6345
|
-
"privacy": "private",
|
|
6346
|
-
"return": {
|
|
6347
|
-
"type": {
|
|
6348
|
-
"text": "void"
|
|
6349
|
-
}
|
|
6350
|
-
}
|
|
6351
|
-
},
|
|
6352
|
-
{
|
|
6353
|
-
"kind": "method",
|
|
6354
|
-
"name": "setActiveCell",
|
|
6355
|
-
"parameters": [
|
|
6356
|
-
{
|
|
6357
|
-
"name": "date",
|
|
6358
|
-
"description": "The Unix timestamp, in seconds, of the date to make active.",
|
|
6359
|
-
"type": {
|
|
6360
|
-
"text": "Number"
|
|
6361
|
-
}
|
|
6362
|
-
}
|
|
6363
|
-
],
|
|
6364
|
-
"description": "Sets the active cell, the date that keyboard users act on, without re-rendering. Keyboard focus stays on the calendar grid, and the active cell shows a focus ring only while the grid has focus.",
|
|
6365
|
-
"return": {
|
|
6366
|
-
"type": {
|
|
6367
|
-
"text": "void"
|
|
6368
|
-
}
|
|
6369
|
-
}
|
|
6370
|
-
},
|
|
6371
|
-
{
|
|
6372
|
-
"kind": "field",
|
|
6373
|
-
"name": "slots",
|
|
6374
|
-
"type": {
|
|
6375
|
-
"text": "Record<string, Node[]>"
|
|
6376
|
-
},
|
|
6377
|
-
"description": "Captured light-DOM slot nodes, keyed by slot name, forwarded into the bib.",
|
|
6378
|
-
"privacy": "private",
|
|
6379
|
-
"default": "{}"
|
|
6380
|
-
},
|
|
6381
|
-
{
|
|
6382
|
-
"kind": "method",
|
|
6383
|
-
"name": "updateActiveCellForVisibleMonth",
|
|
6384
|
-
"description": "Updates the active cell after month navigation (prev/next buttons).\nAlways moves the active cell to the first enabled date in the newly\nvisible months so that tabbing back to the grid lands on an enabled cell.",
|
|
6385
|
-
"privacy": "private",
|
|
6386
|
-
"return": {
|
|
6387
|
-
"type": {
|
|
6388
|
-
"text": "void"
|
|
6389
|
-
}
|
|
6390
|
-
}
|
|
6391
|
-
},
|
|
6392
|
-
{
|
|
6393
|
-
"kind": "method",
|
|
6394
|
-
"name": "updateRangePreview",
|
|
6395
|
-
"parameters": [
|
|
6396
|
-
{
|
|
6397
|
-
"name": "hoveredDate",
|
|
6398
|
-
"description": "The Unix timestamp of the hovered or focused date.",
|
|
6399
|
-
"type": {
|
|
6400
|
-
"text": "Number"
|
|
6401
|
-
}
|
|
6402
|
-
}
|
|
6403
|
-
],
|
|
6404
|
-
"description": "Updates the range preview classes imperatively across all cells.\nOnly active when in range mode with dateFrom set and dateTo not yet set.",
|
|
6405
|
-
"privacy": "private",
|
|
6406
|
-
"return": {
|
|
6407
|
-
"type": {
|
|
6408
|
-
"text": "void"
|
|
6409
|
-
}
|
|
6410
|
-
}
|
|
6411
|
-
},
|
|
6412
|
-
{
|
|
6413
|
-
"kind": "field",
|
|
6414
|
-
"name": "util",
|
|
6415
|
-
"privacy": "private",
|
|
6416
|
-
"default": "new AuroDatepickerUtilities()"
|
|
6417
|
-
},
|
|
6418
|
-
{
|
|
6419
|
-
"kind": "field",
|
|
6420
|
-
"name": "utilCal",
|
|
6421
|
-
"privacy": "private",
|
|
6422
|
-
"default": "new CalendarUtilities()"
|
|
6423
|
-
},
|
|
6424
|
-
{
|
|
6425
|
-
"kind": "field",
|
|
6426
|
-
"name": "utilCalRender",
|
|
6427
|
-
"privacy": "private",
|
|
6428
|
-
"default": "new UtilitiesCalendarRender()"
|
|
6429
|
-
},
|
|
6430
|
-
{
|
|
6431
|
-
"kind": "field",
|
|
6432
|
-
"name": "visible",
|
|
6433
|
-
"privacy": "public",
|
|
6434
|
-
"type": {
|
|
6435
|
-
"text": "boolean"
|
|
6436
|
-
},
|
|
6437
|
-
"description": "Renders the calendar's months. The datepicker sets it while the dropdown is open.",
|
|
6438
|
-
"default": "false",
|
|
6439
|
-
"attribute": "visible"
|
|
6440
|
-
},
|
|
6441
|
-
{
|
|
6442
|
-
"kind": "field",
|
|
6443
|
-
"name": "_disabledDays",
|
|
6444
|
-
"type": {
|
|
6445
|
-
"text": "number[]"
|
|
6446
|
-
},
|
|
6447
|
-
"description": "Deprecated: Use `blackoutDates` on `auro-datepicker` instead.\nHolds the dates set with the deprecated `disabledDays`, as Unix timestamps in seconds. The calendar still honors them, and the first non-empty value logs a one-time console message.",
|
|
6448
|
-
"deprecated": "Use `blackoutDates` on `auro-datepicker` instead.",
|
|
6449
|
-
"privacy": "private",
|
|
6450
|
-
"default": "[]"
|
|
6451
|
-
},
|
|
6452
|
-
{
|
|
6453
|
-
"kind": "field",
|
|
6454
|
-
"name": "disabledDays",
|
|
6455
|
-
"description": "Deprecated: Use `blackoutDates` on `auro-datepicker` instead.\nGets the dates people can't select, as Unix timestamps in seconds. Setting a non-empty array logs a one-time console message.",
|
|
6456
|
-
"deprecated": "Use `blackoutDates` on `auro-datepicker` instead.",
|
|
6457
|
-
"return": {
|
|
6458
|
-
"type": {
|
|
6459
|
-
"text": "Array"
|
|
6460
|
-
}
|
|
6461
|
-
},
|
|
6462
|
-
"parameters": [
|
|
6463
|
-
{
|
|
6464
|
-
"description": "The `disabledDays` array to set.",
|
|
6465
|
-
"name": "value",
|
|
6466
|
-
"type": {
|
|
6467
|
-
"text": "Array"
|
|
6468
|
-
}
|
|
6469
|
-
}
|
|
6470
|
-
]
|
|
6471
|
-
}
|
|
6472
|
-
],
|
|
6473
|
-
"events": [
|
|
6474
|
-
{
|
|
6475
|
-
"description": "Notifies that the month shown has changed. Doesn't bubble; `event.detail.date` is the new `centralDate`.",
|
|
6476
|
-
"name": "auroCalendar-centralDateChanged"
|
|
4187
|
+
"attribute": "value",
|
|
4188
|
+
"category": "behavior"
|
|
6477
4189
|
},
|
|
6478
4190
|
{
|
|
6479
|
-
"
|
|
4191
|
+
"kind": "field",
|
|
4192
|
+
"name": "onDark",
|
|
4193
|
+
"privacy": "public",
|
|
6480
4194
|
"type": {
|
|
6481
|
-
"text": "
|
|
4195
|
+
"text": "boolean"
|
|
6482
4196
|
},
|
|
6483
|
-
"description": "
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
"
|
|
6487
|
-
"
|
|
6488
|
-
}
|
|
4197
|
+
"description": "Deprecated: Use `appearance=\"inverse\"` instead.\nShows the counter in colors for dark backgrounds.",
|
|
4198
|
+
"deprecated": "Use `appearance=\"inverse\"` instead.",
|
|
4199
|
+
"attribute": "ondark",
|
|
4200
|
+
"reflects": true,
|
|
4201
|
+
"category": "ui"
|
|
4202
|
+
}
|
|
4203
|
+
],
|
|
4204
|
+
"events": [
|
|
6489
4205
|
{
|
|
6490
|
-
"name": "
|
|
4206
|
+
"name": "input",
|
|
6491
4207
|
"type": {
|
|
6492
4208
|
"text": "CustomEvent"
|
|
6493
4209
|
},
|
|
6494
|
-
"description": "
|
|
4210
|
+
"description": "Fires whenever `value` changes, including when the counter sets its starting value, with the new number in `event.detail.value`. It doesn't currently bubble, so listen on the counter itself."
|
|
6495
4211
|
}
|
|
6496
4212
|
],
|
|
6497
4213
|
"attributes": [
|
|
6498
4214
|
{
|
|
6499
|
-
"name": "
|
|
6500
|
-
"type": {
|
|
6501
|
-
"text": "string"
|
|
6502
|
-
},
|
|
6503
|
-
"description": "Doesn't currently do anything. The calendar reads its last month from the `calendarEndDate` attribute, which the datepicker sets.",
|
|
6504
|
-
"fieldName": "calendarEndMonth"
|
|
6505
|
-
},
|
|
6506
|
-
{
|
|
6507
|
-
"name": "calendarstartmonth",
|
|
6508
|
-
"type": {
|
|
6509
|
-
"text": "string"
|
|
6510
|
-
},
|
|
6511
|
-
"description": "Doesn't currently do anything. The calendar reads its first month from the `calendarStartDate` attribute, which the datepicker sets.",
|
|
6512
|
-
"fieldName": "calendarStartMonth"
|
|
6513
|
-
},
|
|
6514
|
-
{
|
|
6515
|
-
"name": "centraldate",
|
|
4215
|
+
"name": "appearance",
|
|
6516
4216
|
"type": {
|
|
6517
|
-
"text": "
|
|
4217
|
+
"text": "'default' | 'inverse'"
|
|
6518
4218
|
},
|
|
6519
|
-
"description": "Sets the
|
|
6520
|
-
"default": "
|
|
6521
|
-
"fieldName": "
|
|
4219
|
+
"description": "Sets the colors to match the background behind the counter. Use `inverse` on dark backgrounds and `default` on light ones.",
|
|
4220
|
+
"default": "'default'",
|
|
4221
|
+
"fieldName": "appearance",
|
|
4222
|
+
"category": "ui"
|
|
6522
4223
|
},
|
|
6523
4224
|
{
|
|
6524
|
-
"name": "
|
|
4225
|
+
"name": "disabled",
|
|
6525
4226
|
"type": {
|
|
6526
|
-
"text": "
|
|
4227
|
+
"text": "boolean"
|
|
6527
4228
|
},
|
|
6528
|
-
"description": "
|
|
6529
|
-
"fieldName": "
|
|
4229
|
+
"description": "Turns the counter off. A disabled counter is shown in a muted style, its buttons can't be clicked, and it's removed from the keyboard tab order.",
|
|
4230
|
+
"fieldName": "disabled",
|
|
4231
|
+
"category": "ui"
|
|
6530
4232
|
},
|
|
6531
4233
|
{
|
|
6532
|
-
"name": "
|
|
4234
|
+
"name": "error",
|
|
6533
4235
|
"type": {
|
|
6534
4236
|
"text": "string"
|
|
6535
4237
|
},
|
|
6536
|
-
"description": "Sets the
|
|
6537
|
-
"fieldName": "
|
|
6538
|
-
|
|
6539
|
-
{
|
|
6540
|
-
"name": "isfullscreen",
|
|
6541
|
-
"type": {
|
|
6542
|
-
"text": "boolean"
|
|
6543
|
-
},
|
|
6544
|
-
"description": "Shows the calendar in its fullscreen layout. The calendar sets it from the dropdown each time it renders its months.",
|
|
6545
|
-
"default": "false",
|
|
6546
|
-
"fieldName": "isFullscreen"
|
|
4238
|
+
"description": "Sets a custom error message, such as \"Select at least one adult\", and marks the counter invalid. The message replaces the help text. Set the `error` attribute before the counter first renders, or call `validate()` after changing it: setting only the property, or changing the attribute later, doesn't currently update `validity`.",
|
|
4239
|
+
"fieldName": "error",
|
|
4240
|
+
"category": "behavior"
|
|
6547
4241
|
},
|
|
6548
4242
|
{
|
|
6549
|
-
"name": "
|
|
4243
|
+
"name": "max",
|
|
6550
4244
|
"type": {
|
|
6551
|
-
"text": "
|
|
4245
|
+
"text": "number"
|
|
6552
4246
|
},
|
|
6553
|
-
"description": "
|
|
6554
|
-
"default": "
|
|
6555
|
-
"fieldName": "
|
|
4247
|
+
"description": "Sets the highest value the counter allows. The plus button turns off at this value.",
|
|
4248
|
+
"default": "9",
|
|
4249
|
+
"fieldName": "max",
|
|
4250
|
+
"minimum": 0,
|
|
4251
|
+
"maximum": 9,
|
|
4252
|
+
"category": "behavior"
|
|
6556
4253
|
},
|
|
6557
4254
|
{
|
|
6558
|
-
"name": "
|
|
4255
|
+
"name": "min",
|
|
6559
4256
|
"type": {
|
|
6560
|
-
"text": "
|
|
4257
|
+
"text": "number"
|
|
6561
4258
|
},
|
|
6562
|
-
"description": "Sets the
|
|
6563
|
-
"
|
|
4259
|
+
"description": "Sets the lowest value the counter allows. The counter starts at this value, and the minus button turns off at it.",
|
|
4260
|
+
"default": "0",
|
|
4261
|
+
"fieldName": "min",
|
|
4262
|
+
"minimum": 0,
|
|
4263
|
+
"maximum": 9,
|
|
4264
|
+
"category": "behavior"
|
|
6564
4265
|
},
|
|
6565
4266
|
{
|
|
6566
|
-
"name": "
|
|
4267
|
+
"name": "name",
|
|
6567
4268
|
"type": {
|
|
6568
4269
|
"text": "string"
|
|
6569
4270
|
},
|
|
6570
|
-
"description": "Sets the
|
|
6571
|
-
"fieldName": "
|
|
4271
|
+
"description": "Sets the key for this counter's entry in the group's `value` object, such as `adults`. Applies only inside `auro-counter-group`, which uses `counter-0`, `counter-1`, and so on for counters without a name.",
|
|
4272
|
+
"fieldName": "name",
|
|
4273
|
+
"category": "behavior"
|
|
6572
4274
|
},
|
|
6573
4275
|
{
|
|
6574
|
-
"name": "
|
|
4276
|
+
"name": "value",
|
|
6575
4277
|
"type": {
|
|
6576
|
-
"text": "
|
|
4278
|
+
"text": "number"
|
|
6577
4279
|
},
|
|
6578
|
-
"description": "Sets the
|
|
6579
|
-
"
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
"type": {
|
|
6584
|
-
"text": "string[]"
|
|
4280
|
+
"description": "Sets the counter's value. A value outside `min` and `max` (0–9 by default) isn't moved back into range; it marks the counter invalid instead. A value that's `undefined`, `null`, or not a number clears the value to `undefined`.",
|
|
4281
|
+
"return": {
|
|
4282
|
+
"type": {
|
|
4283
|
+
"text": "number|undefined"
|
|
4284
|
+
}
|
|
6585
4285
|
},
|
|
6586
|
-
"
|
|
6587
|
-
|
|
4286
|
+
"parameters": [
|
|
4287
|
+
{
|
|
4288
|
+
"description": "The new value: a number, a string that converts to a number, `undefined`, or `null`.",
|
|
4289
|
+
"name": "val",
|
|
4290
|
+
"type": {
|
|
4291
|
+
"text": "number|string|undefined|null"
|
|
4292
|
+
}
|
|
4293
|
+
}
|
|
4294
|
+
],
|
|
4295
|
+
"fieldName": "value",
|
|
4296
|
+
"category": "behavior"
|
|
6588
4297
|
},
|
|
6589
4298
|
{
|
|
6590
|
-
"name": "
|
|
4299
|
+
"name": "ondark",
|
|
6591
4300
|
"type": {
|
|
6592
4301
|
"text": "boolean"
|
|
6593
4302
|
},
|
|
6594
|
-
"description": "
|
|
6595
|
-
"
|
|
6596
|
-
"fieldName": "
|
|
4303
|
+
"description": "Deprecated: Use `appearance=\"inverse\"` instead.\nShows the counter in colors for dark backgrounds.",
|
|
4304
|
+
"deprecated": "Use `appearance=\"inverse\"` instead.",
|
|
4305
|
+
"fieldName": "onDark",
|
|
4306
|
+
"category": "ui"
|
|
6597
4307
|
}
|
|
6598
4308
|
],
|
|
6599
4309
|
"superclass": {
|
|
6600
|
-
"name": "
|
|
6601
|
-
"
|
|
4310
|
+
"name": "LitElement",
|
|
4311
|
+
"package": "lit"
|
|
6602
4312
|
},
|
|
6603
|
-
"tagName": "auro-
|
|
6604
|
-
"customElement": true
|
|
4313
|
+
"tagName": "auro-counter",
|
|
4314
|
+
"customElement": true,
|
|
4315
|
+
"summary": "A counter with minus and plus buttons, range limits, keyboard support, and error messages."
|
|
4316
|
+
}
|
|
4317
|
+
],
|
|
4318
|
+
"exports": [
|
|
4319
|
+
{
|
|
4320
|
+
"kind": "js",
|
|
4321
|
+
"name": "AuroCounter",
|
|
4322
|
+
"declaration": {
|
|
4323
|
+
"name": "AuroCounter",
|
|
4324
|
+
"module": "components/counter/src/auro-counter.js"
|
|
4325
|
+
}
|
|
4326
|
+
}
|
|
4327
|
+
]
|
|
4328
|
+
},
|
|
4329
|
+
{
|
|
4330
|
+
"kind": "javascript-module",
|
|
4331
|
+
"path": "components/counter/src/buttonVersion.js",
|
|
4332
|
+
"declarations": [],
|
|
4333
|
+
"exports": [
|
|
4334
|
+
{
|
|
4335
|
+
"kind": "js",
|
|
4336
|
+
"name": "default",
|
|
4337
|
+
"declaration": {
|
|
4338
|
+
"name": "12.3.2",
|
|
4339
|
+
"module": "components/counter/src/buttonVersion.js"
|
|
4340
|
+
}
|
|
4341
|
+
}
|
|
4342
|
+
]
|
|
4343
|
+
},
|
|
4344
|
+
{
|
|
4345
|
+
"kind": "javascript-module",
|
|
4346
|
+
"path": "components/counter/src/counterGroupKeyboardStrategy.js",
|
|
4347
|
+
"declarations": [
|
|
4348
|
+
{
|
|
4349
|
+
"kind": "variable",
|
|
4350
|
+
"name": "counterGroupKeyboardStrategy",
|
|
4351
|
+
"type": {
|
|
4352
|
+
"text": "object"
|
|
4353
|
+
},
|
|
4354
|
+
"default": "{ Escape(component, evt) { if (!component.dropdown || !component.dropdown.isPopoverVisible) { return; } // Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups. // Because stopPropagation prevents the document-level floatingUI keydown handler from // seeing this event, we must also close the dropdown explicitly. evt.stopPropagation(); component.dropdown.hide(); }, Tab(component, evt, ctx) { // Forward Tab already exits past the bib content and the focusout handler // closes the bib. Fullscreen relies on the dialog's native focus trapping. if (!ctx.isExpanded || ctx.isModal || !evt.shiftKey) { return; } // The trigger precedes the bib content in the flattened tab order, so a // native Shift+Tab off the first counter lands back on the trigger and // leaves the bib open. Only intercept when focus is on the first focusable // in the bib; otherwise let the browser move to the previous counter. // `composedPath()` reports the real event origin through every shadow // boundary, unlike `document.activeElement`, which retargets to the first // slotted counter and cannot tell the counters apart. const focusables = getFocusableElements(component.dropdown.bibContent); if (!focusables.length) { return; } const path = evt.composedPath(); const activeIndex = focusables.findIndex((el) => path.includes(el)); if (activeIndex !== 0) { return; } const previousTabStop = getPreviousTabStop(component); // Always suppress the native Shift+Tab. Otherwise it fires against the bib // as it is torn down and lands focus on the trigger (which precedes the // first counter), re-opening the exact loop this handler prevents. When // nothing precedes the group, focus falls to the body instead of the // trigger, which reads as exiting the group backward. evt.preventDefault(); component.hideBib(); if (!previousTabStop) { return; } doubleRaf(() => previousTabStop.focus()); }, }",
|
|
4355
|
+
"description": "Holds the counter group's keyboard handlers, `Escape` and `Tab`, which it uses only when `isDropdown` is set. Escape closes the open dropdown without closing a dialog or drawer around it, and Shift+Tab on the first counter of a dropdown that isn't fullscreen closes it and moves focus to whatever comes before the group."
|
|
6605
4356
|
}
|
|
6606
4357
|
],
|
|
6607
4358
|
"exports": [
|
|
6608
4359
|
{
|
|
6609
|
-
"kind": "
|
|
6610
|
-
"name": "
|
|
4360
|
+
"kind": "js",
|
|
4361
|
+
"name": "counterGroupKeyboardStrategy",
|
|
4362
|
+
"declaration": {
|
|
4363
|
+
"name": "counterGroupKeyboardStrategy",
|
|
4364
|
+
"module": "components/counter/src/counterGroupKeyboardStrategy.js"
|
|
4365
|
+
}
|
|
4366
|
+
}
|
|
4367
|
+
]
|
|
4368
|
+
},
|
|
4369
|
+
{
|
|
4370
|
+
"kind": "javascript-module",
|
|
4371
|
+
"path": "components/counter/src/iconVersion.js",
|
|
4372
|
+
"declarations": [],
|
|
4373
|
+
"exports": [
|
|
4374
|
+
{
|
|
4375
|
+
"kind": "js",
|
|
4376
|
+
"name": "default",
|
|
4377
|
+
"declaration": {
|
|
4378
|
+
"name": "9.1.2",
|
|
4379
|
+
"module": "components/counter/src/iconVersion.js"
|
|
4380
|
+
}
|
|
4381
|
+
}
|
|
4382
|
+
]
|
|
4383
|
+
},
|
|
4384
|
+
{
|
|
4385
|
+
"kind": "javascript-module",
|
|
4386
|
+
"path": "components/counter/src/index.js",
|
|
4387
|
+
"declarations": [],
|
|
4388
|
+
"exports": [
|
|
4389
|
+
{
|
|
4390
|
+
"kind": "js",
|
|
4391
|
+
"name": "AuroCounter",
|
|
6611
4392
|
"declaration": {
|
|
6612
|
-
"name": "
|
|
6613
|
-
"module": "components/
|
|
4393
|
+
"name": "AuroCounter",
|
|
4394
|
+
"module": "components/counter/src/index.js"
|
|
6614
4395
|
}
|
|
6615
4396
|
},
|
|
6616
4397
|
{
|
|
6617
4398
|
"kind": "js",
|
|
6618
|
-
"name": "
|
|
4399
|
+
"name": "AuroCounterGroup",
|
|
4400
|
+
"declaration": {
|
|
4401
|
+
"name": "AuroCounterGroup",
|
|
4402
|
+
"module": "components/counter/src/index.js"
|
|
4403
|
+
}
|
|
4404
|
+
}
|
|
4405
|
+
]
|
|
4406
|
+
},
|
|
4407
|
+
{
|
|
4408
|
+
"kind": "javascript-module",
|
|
4409
|
+
"path": "components/counter/src/keyboardStrategy.js",
|
|
4410
|
+
"declarations": [
|
|
4411
|
+
{
|
|
4412
|
+
"kind": "variable",
|
|
4413
|
+
"name": "keyboardStrategy",
|
|
4414
|
+
"type": {
|
|
4415
|
+
"text": "object"
|
|
4416
|
+
},
|
|
4417
|
+
"default": "{ ArrowUp(component, _evt) { if (component.disabled) { return; } _evt.preventDefault(); component.increment(); }, ArrowDown(component, _evt) { if (component.disabled) { return; } _evt.preventDefault(); component.decrement(); } }",
|
|
4418
|
+
"description": "Holds the counter's keyboard handlers: `ArrowUp` raises the value by 1, and `ArrowDown` lowers it by 1. Neither key does anything while the counter is disabled."
|
|
4419
|
+
}
|
|
4420
|
+
],
|
|
4421
|
+
"exports": [
|
|
4422
|
+
{
|
|
4423
|
+
"kind": "js",
|
|
4424
|
+
"name": "keyboardStrategy",
|
|
6619
4425
|
"declaration": {
|
|
6620
|
-
"name": "
|
|
6621
|
-
"module": "components/
|
|
4426
|
+
"name": "keyboardStrategy",
|
|
4427
|
+
"module": "components/counter/src/keyboardStrategy.js"
|
|
6622
4428
|
}
|
|
6623
4429
|
}
|
|
6624
4430
|
]
|
|
6625
4431
|
},
|
|
4432
|
+
{
|
|
4433
|
+
"kind": "javascript-module",
|
|
4434
|
+
"path": "components/counter/src/registered.js",
|
|
4435
|
+
"declarations": [],
|
|
4436
|
+
"exports": []
|
|
4437
|
+
},
|
|
4438
|
+
{
|
|
4439
|
+
"kind": "javascript-module",
|
|
4440
|
+
"path": "components/datepicker/src/auro-calendar-cell.js",
|
|
4441
|
+
"declarations": [
|
|
4442
|
+
{
|
|
4443
|
+
"kind": "variable",
|
|
4444
|
+
"name": "blackout"
|
|
4445
|
+
}
|
|
4446
|
+
],
|
|
4447
|
+
"exports": []
|
|
4448
|
+
},
|
|
4449
|
+
{
|
|
4450
|
+
"kind": "javascript-module",
|
|
4451
|
+
"path": "components/datepicker/src/auro-calendar-month.js",
|
|
4452
|
+
"declarations": [],
|
|
4453
|
+
"exports": []
|
|
4454
|
+
},
|
|
4455
|
+
{
|
|
4456
|
+
"kind": "javascript-module",
|
|
4457
|
+
"path": "components/datepicker/src/auro-calendar.js",
|
|
4458
|
+
"declarations": [],
|
|
4459
|
+
"exports": []
|
|
4460
|
+
},
|
|
6626
4461
|
{
|
|
6627
4462
|
"kind": "javascript-module",
|
|
6628
4463
|
"path": "components/datepicker/src/auro-datepicker.js",
|
|
@@ -6979,7 +4814,7 @@
|
|
|
6979
4814
|
{
|
|
6980
4815
|
"kind": "method",
|
|
6981
4816
|
"name": "clear",
|
|
6982
|
-
"description": "Clears the chosen dates
|
|
4817
|
+
"description": "Clears the chosen dates. Unlike `reset()`, the datepicker still counts as used, so the next validation can report a missing date.",
|
|
6983
4818
|
"return": {
|
|
6984
4819
|
"type": {
|
|
6985
4820
|
"text": "void"
|
|
@@ -7283,12 +5118,13 @@
|
|
|
7283
5118
|
"parameters": [
|
|
7284
5119
|
{
|
|
7285
5120
|
"name": "length",
|
|
7286
|
-
"description": "The number of characters in the returned
|
|
5121
|
+
"description": "The maximum number of characters in the returned string. The string is often shorter.",
|
|
7287
5122
|
"type": {
|
|
7288
5123
|
"text": "Number"
|
|
7289
5124
|
}
|
|
7290
5125
|
}
|
|
7291
5126
|
],
|
|
5127
|
+
"description": "Creates a random string of lowercase letters and digits, used as each date input's `id`.",
|
|
7292
5128
|
"privacy": "private",
|
|
7293
5129
|
"return": {
|
|
7294
5130
|
"type": {
|
|
@@ -8049,7 +5885,6 @@
|
|
|
8049
5885
|
"default": "false",
|
|
8050
5886
|
"attribute": "required",
|
|
8051
5887
|
"reflects": true,
|
|
8052
|
-
"relevantWhen": "!noValidate",
|
|
8053
5888
|
"category": "behavior"
|
|
8054
5889
|
},
|
|
8055
5890
|
{
|
|
@@ -8062,11 +5897,6 @@
|
|
|
8062
5897
|
}
|
|
8063
5898
|
}
|
|
8064
5899
|
},
|
|
8065
|
-
{
|
|
8066
|
-
"kind": "method",
|
|
8067
|
-
"name": "resetInputs",
|
|
8068
|
-
"description": "Clears the chosen dates. Unlike `reset()`, the datepicker still counts as used, so the next validation can report a missing date."
|
|
8069
|
-
},
|
|
8070
5900
|
{
|
|
8071
5901
|
"kind": "method",
|
|
8072
5902
|
"name": "resetLayoutClasses",
|
|
@@ -8110,7 +5940,6 @@
|
|
|
8110
5940
|
},
|
|
8111
5941
|
"description": "Sets one error message for every kind of validation error except a blackout date, in place of the built-in messages and the other `setCustomValidity` messages. For a blackout date, use `setCustomValidityCustomError`.",
|
|
8112
5942
|
"attribute": "setcustomvalidity",
|
|
8113
|
-
"relevantWhen": "!noValidate",
|
|
8114
5943
|
"category": "behavior"
|
|
8115
5944
|
},
|
|
8116
5945
|
{
|
|
@@ -8122,7 +5951,6 @@
|
|
|
8122
5951
|
},
|
|
8123
5952
|
"description": "Sets the error message shown when `validity` is `customError`, in place of the `error` text. It also replaces the \"Selected date is unavailable\" message shown when someone types a blackout date.",
|
|
8124
5953
|
"attribute": "setcustomvaliditycustomerror",
|
|
8125
|
-
"relevantWhen": "!noValidate",
|
|
8126
5954
|
"category": "behavior"
|
|
8127
5955
|
},
|
|
8128
5956
|
{
|
|
@@ -8134,7 +5962,6 @@
|
|
|
8134
5962
|
},
|
|
8135
5963
|
"description": "Sets the error message shown when the date is later than `maxDate` (`rangeOverflow`).",
|
|
8136
5964
|
"attribute": "setcustomvalidityrangeoverflow",
|
|
8137
|
-
"relevantWhen": "!noValidate",
|
|
8138
5965
|
"category": "behavior"
|
|
8139
5966
|
},
|
|
8140
5967
|
{
|
|
@@ -8146,7 +5973,6 @@
|
|
|
8146
5973
|
},
|
|
8147
5974
|
"description": "Sets the error message shown when the date is earlier than `minDate` (`rangeUnderflow`).",
|
|
8148
5975
|
"attribute": "setcustomvalidityrangeunderflow",
|
|
8149
|
-
"relevantWhen": "!noValidate",
|
|
8150
5976
|
"category": "behavior"
|
|
8151
5977
|
},
|
|
8152
5978
|
{
|
|
@@ -8158,7 +5984,6 @@
|
|
|
8158
5984
|
},
|
|
8159
5985
|
"description": "Sets the error message shown when `required` is set and no date is chosen (`valueMissing`).",
|
|
8160
5986
|
"attribute": "setcustomvalidityvaluemissing",
|
|
8161
|
-
"relevantWhen": "!noValidate",
|
|
8162
5987
|
"category": "behavior"
|
|
8163
5988
|
},
|
|
8164
5989
|
{
|
|
@@ -8798,7 +6623,6 @@
|
|
|
8798
6623
|
"description": "Makes a date required. When it's empty, validation fails with `valueMissing`, and in a range, both dates are required. When not set, each input's label shows \"(optional)\".",
|
|
8799
6624
|
"default": "false",
|
|
8800
6625
|
"fieldName": "required",
|
|
8801
|
-
"relevantWhen": "!noValidate",
|
|
8802
6626
|
"category": "behavior"
|
|
8803
6627
|
},
|
|
8804
6628
|
{
|
|
@@ -8808,7 +6632,6 @@
|
|
|
8808
6632
|
},
|
|
8809
6633
|
"description": "Sets one error message for every kind of validation error except a blackout date, in place of the built-in messages and the other `setCustomValidity` messages. For a blackout date, use `setCustomValidityCustomError`.",
|
|
8810
6634
|
"fieldName": "setCustomValidity",
|
|
8811
|
-
"relevantWhen": "!noValidate",
|
|
8812
6635
|
"category": "behavior"
|
|
8813
6636
|
},
|
|
8814
6637
|
{
|
|
@@ -8818,7 +6641,6 @@
|
|
|
8818
6641
|
},
|
|
8819
6642
|
"description": "Sets the error message shown when `validity` is `customError`, in place of the `error` text. It also replaces the \"Selected date is unavailable\" message shown when someone types a blackout date.",
|
|
8820
6643
|
"fieldName": "setCustomValidityCustomError",
|
|
8821
|
-
"relevantWhen": "!noValidate",
|
|
8822
6644
|
"category": "behavior"
|
|
8823
6645
|
},
|
|
8824
6646
|
{
|
|
@@ -8828,7 +6650,6 @@
|
|
|
8828
6650
|
},
|
|
8829
6651
|
"description": "Sets the error message shown when the date is later than `maxDate` (`rangeOverflow`).",
|
|
8830
6652
|
"fieldName": "setCustomValidityRangeOverflow",
|
|
8831
|
-
"relevantWhen": "!noValidate",
|
|
8832
6653
|
"category": "behavior"
|
|
8833
6654
|
},
|
|
8834
6655
|
{
|
|
@@ -8838,7 +6659,6 @@
|
|
|
8838
6659
|
},
|
|
8839
6660
|
"description": "Sets the error message shown when the date is earlier than `minDate` (`rangeUnderflow`).",
|
|
8840
6661
|
"fieldName": "setCustomValidityRangeUnderflow",
|
|
8841
|
-
"relevantWhen": "!noValidate",
|
|
8842
6662
|
"category": "behavior"
|
|
8843
6663
|
},
|
|
8844
6664
|
{
|
|
@@ -8848,7 +6668,6 @@
|
|
|
8848
6668
|
},
|
|
8849
6669
|
"description": "Sets the error message shown when `required` is set and no date is chosen (`valueMissing`).",
|
|
8850
6670
|
"fieldName": "setCustomValidityValueMissing",
|
|
8851
|
-
"relevantWhen": "!noValidate",
|
|
8852
6671
|
"category": "behavior"
|
|
8853
6672
|
},
|
|
8854
6673
|
{
|
|
@@ -9450,7 +7269,7 @@
|
|
|
9450
7269
|
"privacy": "private",
|
|
9451
7270
|
"return": {
|
|
9452
7271
|
"type": {
|
|
9453
|
-
"text": "Number"
|
|
7272
|
+
"text": "Number|undefined"
|
|
9454
7273
|
}
|
|
9455
7274
|
}
|
|
9456
7275
|
},
|
|
@@ -12496,7 +10315,6 @@
|
|
|
12496
10315
|
},
|
|
12497
10316
|
"description": "Does not currently change any message. To set the error message for an invalid email address,\nuse `setCustomValidityForType`.",
|
|
12498
10317
|
"attribute": "customvaliditytypeemail",
|
|
12499
|
-
"relevantWhen": "!noValidate",
|
|
12500
10318
|
"category": "behavior",
|
|
12501
10319
|
"inheritedFrom": {
|
|
12502
10320
|
"name": "BaseInput",
|
|
@@ -13549,7 +11367,6 @@
|
|
|
13549
11367
|
"default": "false",
|
|
13550
11368
|
"attribute": "required",
|
|
13551
11369
|
"reflects": true,
|
|
13552
|
-
"relevantWhen": "!noValidate",
|
|
13553
11370
|
"category": "behavior",
|
|
13554
11371
|
"inheritedFrom": {
|
|
13555
11372
|
"name": "BaseInput",
|
|
@@ -13631,7 +11448,6 @@
|
|
|
13631
11448
|
},
|
|
13632
11449
|
"description": "Sets one error message for every kind of validation error. When set, it replaces the messages from\n`error` and every other `setCustomValidity*` property.",
|
|
13633
11450
|
"attribute": "setcustomvalidity",
|
|
13634
|
-
"relevantWhen": "!noValidate",
|
|
13635
11451
|
"category": "behavior",
|
|
13636
11452
|
"inheritedFrom": {
|
|
13637
11453
|
"name": "BaseInput",
|
|
@@ -13647,7 +11463,6 @@
|
|
|
13647
11463
|
},
|
|
13648
11464
|
"description": "Sets the error message for `validity=\"badInput\"`. Does not currently change any message,\nbecause the input never reports `badInput`.",
|
|
13649
11465
|
"attribute": "setcustomvaliditybadinput",
|
|
13650
|
-
"relevantWhen": "!noValidate",
|
|
13651
11466
|
"category": "behavior",
|
|
13652
11467
|
"inheritedFrom": {
|
|
13653
11468
|
"name": "BaseInput",
|
|
@@ -13663,7 +11478,6 @@
|
|
|
13663
11478
|
},
|
|
13664
11479
|
"description": "Sets the error message shown while the `error` attribute is set, in place of the `error` value.",
|
|
13665
11480
|
"attribute": "setcustomvaliditycustomerror",
|
|
13666
|
-
"relevantWhen": "!noValidate",
|
|
13667
11481
|
"category": "behavior",
|
|
13668
11482
|
"inheritedFrom": {
|
|
13669
11483
|
"name": "BaseInput",
|
|
@@ -13680,7 +11494,6 @@
|
|
|
13680
11494
|
"description": "Sets the error message shown when the value doesn't fit its `type`, such as a badly formed email address,\nan incomplete card number, or an incomplete date. When not set, `email`, `credit-card`, and most `date` inputs use a built-in message.",
|
|
13681
11495
|
"default": "undefined",
|
|
13682
11496
|
"attribute": "setcustomvalidityfortype",
|
|
13683
|
-
"relevantWhen": "!noValidate",
|
|
13684
11497
|
"category": "behavior",
|
|
13685
11498
|
"inheritedFrom": {
|
|
13686
11499
|
"name": "BaseInput",
|
|
@@ -13696,7 +11509,6 @@
|
|
|
13696
11509
|
},
|
|
13697
11510
|
"description": "Sets the error message shown when the value doesn't match `pattern`, or when a date isn't a real calendar date.\nFor `pattern`, it does not currently work when set only as a property, so set the attribute instead.",
|
|
13698
11511
|
"attribute": "setcustomvaliditypatternmismatch",
|
|
13699
|
-
"relevantWhen": "!noValidate",
|
|
13700
11512
|
"category": "behavior",
|
|
13701
11513
|
"inheritedFrom": {
|
|
13702
11514
|
"name": "BaseInput",
|
|
@@ -13712,7 +11524,6 @@
|
|
|
13712
11524
|
},
|
|
13713
11525
|
"description": "Sets the error message shown when the value is above `max`.",
|
|
13714
11526
|
"attribute": "setcustomvalidityrangeoverflow",
|
|
13715
|
-
"relevantWhen": "!noValidate",
|
|
13716
11527
|
"category": "behavior",
|
|
13717
11528
|
"inheritedFrom": {
|
|
13718
11529
|
"name": "BaseInput",
|
|
@@ -13728,7 +11539,6 @@
|
|
|
13728
11539
|
},
|
|
13729
11540
|
"description": "Sets the error message shown when the value is below `min`.",
|
|
13730
11541
|
"attribute": "setcustomvalidityrangeunderflow",
|
|
13731
|
-
"relevantWhen": "!noValidate",
|
|
13732
11542
|
"category": "behavior",
|
|
13733
11543
|
"inheritedFrom": {
|
|
13734
11544
|
"name": "BaseInput",
|
|
@@ -13744,7 +11554,6 @@
|
|
|
13744
11554
|
},
|
|
13745
11555
|
"description": "Sets the error message shown when the value is longer than `maxlength`.\nDoes not currently work when set only as a property, so set the attribute instead.",
|
|
13746
11556
|
"attribute": "setcustomvaliditytoolong",
|
|
13747
|
-
"relevantWhen": "!noValidate",
|
|
13748
11557
|
"category": "behavior",
|
|
13749
11558
|
"inheritedFrom": {
|
|
13750
11559
|
"name": "BaseInput",
|
|
@@ -13760,7 +11569,6 @@
|
|
|
13760
11569
|
},
|
|
13761
11570
|
"description": "Sets the error message shown when the value is shorter than `minlength`.\nDoes not currently work when set only as a property, so set the attribute instead.",
|
|
13762
11571
|
"attribute": "setcustomvaliditytooshort",
|
|
13763
|
-
"relevantWhen": "!noValidate",
|
|
13764
11572
|
"category": "behavior",
|
|
13765
11573
|
"inheritedFrom": {
|
|
13766
11574
|
"name": "BaseInput",
|
|
@@ -13776,7 +11584,6 @@
|
|
|
13776
11584
|
},
|
|
13777
11585
|
"description": "Sets the error message shown when a `required` input is left empty.",
|
|
13778
11586
|
"attribute": "setcustomvalidityvaluemissing",
|
|
13779
|
-
"relevantWhen": "!noValidate",
|
|
13780
11587
|
"category": "behavior",
|
|
13781
11588
|
"inheritedFrom": {
|
|
13782
11589
|
"name": "BaseInput",
|
|
@@ -14240,7 +12047,6 @@
|
|
|
14240
12047
|
},
|
|
14241
12048
|
"description": "Does not currently change any message. To set the error message for an invalid email address,\nuse `setCustomValidityForType`.",
|
|
14242
12049
|
"fieldName": "customValidityTypeEmail",
|
|
14243
|
-
"relevantWhen": "!noValidate",
|
|
14244
12050
|
"category": "behavior",
|
|
14245
12051
|
"inheritedFrom": {
|
|
14246
12052
|
"name": "BaseInput",
|
|
@@ -14539,7 +12345,6 @@
|
|
|
14539
12345
|
"description": "Makes the input invalid when it's left empty, and removes the \" (optional)\" text after the label.\nUse `setCustomValidityValueMissing` to set the error message.",
|
|
14540
12346
|
"default": "false",
|
|
14541
12347
|
"fieldName": "required",
|
|
14542
|
-
"relevantWhen": "!noValidate",
|
|
14543
12348
|
"category": "behavior",
|
|
14544
12349
|
"inheritedFrom": {
|
|
14545
12350
|
"name": "BaseInput",
|
|
@@ -14553,7 +12358,6 @@
|
|
|
14553
12358
|
},
|
|
14554
12359
|
"description": "Sets one error message for every kind of validation error. When set, it replaces the messages from\n`error` and every other `setCustomValidity*` property.",
|
|
14555
12360
|
"fieldName": "setCustomValidity",
|
|
14556
|
-
"relevantWhen": "!noValidate",
|
|
14557
12361
|
"category": "behavior",
|
|
14558
12362
|
"inheritedFrom": {
|
|
14559
12363
|
"name": "BaseInput",
|
|
@@ -14567,7 +12371,6 @@
|
|
|
14567
12371
|
},
|
|
14568
12372
|
"description": "Sets the error message for `validity=\"badInput\"`. Does not currently change any message,\nbecause the input never reports `badInput`.",
|
|
14569
12373
|
"fieldName": "setCustomValidityBadInput",
|
|
14570
|
-
"relevantWhen": "!noValidate",
|
|
14571
12374
|
"category": "behavior",
|
|
14572
12375
|
"inheritedFrom": {
|
|
14573
12376
|
"name": "BaseInput",
|
|
@@ -14581,7 +12384,6 @@
|
|
|
14581
12384
|
},
|
|
14582
12385
|
"description": "Sets the error message shown while the `error` attribute is set, in place of the `error` value.",
|
|
14583
12386
|
"fieldName": "setCustomValidityCustomError",
|
|
14584
|
-
"relevantWhen": "!noValidate",
|
|
14585
12387
|
"category": "behavior",
|
|
14586
12388
|
"inheritedFrom": {
|
|
14587
12389
|
"name": "BaseInput",
|
|
@@ -14596,7 +12398,6 @@
|
|
|
14596
12398
|
"description": "Sets the error message shown when the value doesn't fit its `type`, such as a badly formed email address,\nan incomplete card number, or an incomplete date. When not set, `email`, `credit-card`, and most `date` inputs use a built-in message.",
|
|
14597
12399
|
"default": "undefined",
|
|
14598
12400
|
"fieldName": "setCustomValidityForType",
|
|
14599
|
-
"relevantWhen": "!noValidate",
|
|
14600
12401
|
"category": "behavior",
|
|
14601
12402
|
"inheritedFrom": {
|
|
14602
12403
|
"name": "BaseInput",
|
|
@@ -14610,7 +12411,6 @@
|
|
|
14610
12411
|
},
|
|
14611
12412
|
"description": "Sets the error message shown when the value doesn't match `pattern`, or when a date isn't a real calendar date.\nFor `pattern`, it does not currently work when set only as a property, so set the attribute instead.",
|
|
14612
12413
|
"fieldName": "setCustomValidityPatternMismatch",
|
|
14613
|
-
"relevantWhen": "!noValidate",
|
|
14614
12414
|
"category": "behavior",
|
|
14615
12415
|
"inheritedFrom": {
|
|
14616
12416
|
"name": "BaseInput",
|
|
@@ -14624,7 +12424,6 @@
|
|
|
14624
12424
|
},
|
|
14625
12425
|
"description": "Sets the error message shown when the value is above `max`.",
|
|
14626
12426
|
"fieldName": "setCustomValidityRangeOverflow",
|
|
14627
|
-
"relevantWhen": "!noValidate",
|
|
14628
12427
|
"category": "behavior",
|
|
14629
12428
|
"inheritedFrom": {
|
|
14630
12429
|
"name": "BaseInput",
|
|
@@ -14638,7 +12437,6 @@
|
|
|
14638
12437
|
},
|
|
14639
12438
|
"description": "Sets the error message shown when the value is below `min`.",
|
|
14640
12439
|
"fieldName": "setCustomValidityRangeUnderflow",
|
|
14641
|
-
"relevantWhen": "!noValidate",
|
|
14642
12440
|
"category": "behavior",
|
|
14643
12441
|
"inheritedFrom": {
|
|
14644
12442
|
"name": "BaseInput",
|
|
@@ -14652,7 +12450,6 @@
|
|
|
14652
12450
|
},
|
|
14653
12451
|
"description": "Sets the error message shown when the value is longer than `maxlength`.\nDoes not currently work when set only as a property, so set the attribute instead.",
|
|
14654
12452
|
"fieldName": "setCustomValidityTooLong",
|
|
14655
|
-
"relevantWhen": "!noValidate",
|
|
14656
12453
|
"category": "behavior",
|
|
14657
12454
|
"inheritedFrom": {
|
|
14658
12455
|
"name": "BaseInput",
|
|
@@ -14666,7 +12463,6 @@
|
|
|
14666
12463
|
},
|
|
14667
12464
|
"description": "Sets the error message shown when the value is shorter than `minlength`.\nDoes not currently work when set only as a property, so set the attribute instead.",
|
|
14668
12465
|
"fieldName": "setCustomValidityTooShort",
|
|
14669
|
-
"relevantWhen": "!noValidate",
|
|
14670
12466
|
"category": "behavior",
|
|
14671
12467
|
"inheritedFrom": {
|
|
14672
12468
|
"name": "BaseInput",
|
|
@@ -14680,7 +12476,6 @@
|
|
|
14680
12476
|
},
|
|
14681
12477
|
"description": "Sets the error message shown when a `required` input is left empty.",
|
|
14682
12478
|
"fieldName": "setCustomValidityValueMissing",
|
|
14683
|
-
"relevantWhen": "!noValidate",
|
|
14684
12479
|
"category": "behavior",
|
|
14685
12480
|
"inheritedFrom": {
|
|
14686
12481
|
"name": "BaseInput",
|
|
@@ -15058,7 +12853,6 @@
|
|
|
15058
12853
|
},
|
|
15059
12854
|
"description": "Does not currently change any message. To set the error message for an invalid email address,\nuse `setCustomValidityForType`.",
|
|
15060
12855
|
"attribute": "customvaliditytypeemail",
|
|
15061
|
-
"relevantWhen": "!noValidate",
|
|
15062
12856
|
"category": "behavior"
|
|
15063
12857
|
},
|
|
15064
12858
|
{
|
|
@@ -15610,7 +13404,6 @@
|
|
|
15610
13404
|
"default": "false",
|
|
15611
13405
|
"attribute": "required",
|
|
15612
13406
|
"reflects": true,
|
|
15613
|
-
"relevantWhen": "!noValidate",
|
|
15614
13407
|
"category": "behavior"
|
|
15615
13408
|
},
|
|
15616
13409
|
{
|
|
@@ -15680,7 +13473,6 @@
|
|
|
15680
13473
|
},
|
|
15681
13474
|
"description": "Sets one error message for every kind of validation error. When set, it replaces the messages from\n`error` and every other `setCustomValidity*` property.",
|
|
15682
13475
|
"attribute": "setcustomvalidity",
|
|
15683
|
-
"relevantWhen": "!noValidate",
|
|
15684
13476
|
"category": "behavior"
|
|
15685
13477
|
},
|
|
15686
13478
|
{
|
|
@@ -15692,7 +13484,6 @@
|
|
|
15692
13484
|
},
|
|
15693
13485
|
"description": "Sets the error message for `validity=\"badInput\"`. Does not currently change any message,\nbecause the input never reports `badInput`.",
|
|
15694
13486
|
"attribute": "setcustomvaliditybadinput",
|
|
15695
|
-
"relevantWhen": "!noValidate",
|
|
15696
13487
|
"category": "behavior"
|
|
15697
13488
|
},
|
|
15698
13489
|
{
|
|
@@ -15704,7 +13495,6 @@
|
|
|
15704
13495
|
},
|
|
15705
13496
|
"description": "Sets the error message shown while the `error` attribute is set, in place of the `error` value.",
|
|
15706
13497
|
"attribute": "setcustomvaliditycustomerror",
|
|
15707
|
-
"relevantWhen": "!noValidate",
|
|
15708
13498
|
"category": "behavior"
|
|
15709
13499
|
},
|
|
15710
13500
|
{
|
|
@@ -15717,7 +13507,6 @@
|
|
|
15717
13507
|
"description": "Sets the error message shown when the value doesn't fit its `type`, such as a badly formed email address,\nan incomplete card number, or an incomplete date. When not set, `email`, `credit-card`, and most `date` inputs use a built-in message.",
|
|
15718
13508
|
"default": "undefined",
|
|
15719
13509
|
"attribute": "setcustomvalidityfortype",
|
|
15720
|
-
"relevantWhen": "!noValidate",
|
|
15721
13510
|
"category": "behavior"
|
|
15722
13511
|
},
|
|
15723
13512
|
{
|
|
@@ -15729,7 +13518,6 @@
|
|
|
15729
13518
|
},
|
|
15730
13519
|
"description": "Sets the error message shown when the value doesn't match `pattern`, or when a date isn't a real calendar date.\nFor `pattern`, it does not currently work when set only as a property, so set the attribute instead.",
|
|
15731
13520
|
"attribute": "setcustomvaliditypatternmismatch",
|
|
15732
|
-
"relevantWhen": "!noValidate",
|
|
15733
13521
|
"category": "behavior"
|
|
15734
13522
|
},
|
|
15735
13523
|
{
|
|
@@ -15741,7 +13529,6 @@
|
|
|
15741
13529
|
},
|
|
15742
13530
|
"description": "Sets the error message shown when the value is above `max`.",
|
|
15743
13531
|
"attribute": "setcustomvalidityrangeoverflow",
|
|
15744
|
-
"relevantWhen": "!noValidate",
|
|
15745
13532
|
"category": "behavior"
|
|
15746
13533
|
},
|
|
15747
13534
|
{
|
|
@@ -15753,7 +13540,6 @@
|
|
|
15753
13540
|
},
|
|
15754
13541
|
"description": "Sets the error message shown when the value is below `min`.",
|
|
15755
13542
|
"attribute": "setcustomvalidityrangeunderflow",
|
|
15756
|
-
"relevantWhen": "!noValidate",
|
|
15757
13543
|
"category": "behavior"
|
|
15758
13544
|
},
|
|
15759
13545
|
{
|
|
@@ -15765,7 +13551,6 @@
|
|
|
15765
13551
|
},
|
|
15766
13552
|
"description": "Sets the error message shown when the value is longer than `maxlength`.\nDoes not currently work when set only as a property, so set the attribute instead.",
|
|
15767
13553
|
"attribute": "setcustomvaliditytoolong",
|
|
15768
|
-
"relevantWhen": "!noValidate",
|
|
15769
13554
|
"category": "behavior"
|
|
15770
13555
|
},
|
|
15771
13556
|
{
|
|
@@ -15777,7 +13562,6 @@
|
|
|
15777
13562
|
},
|
|
15778
13563
|
"description": "Sets the error message shown when the value is shorter than `minlength`.\nDoes not currently work when set only as a property, so set the attribute instead.",
|
|
15779
13564
|
"attribute": "setcustomvaliditytooshort",
|
|
15780
|
-
"relevantWhen": "!noValidate",
|
|
15781
13565
|
"category": "behavior"
|
|
15782
13566
|
},
|
|
15783
13567
|
{
|
|
@@ -15789,7 +13573,6 @@
|
|
|
15789
13573
|
},
|
|
15790
13574
|
"description": "Sets the error message shown when a `required` input is left empty.",
|
|
15791
13575
|
"attribute": "setcustomvalidityvaluemissing",
|
|
15792
|
-
"relevantWhen": "!noValidate",
|
|
15793
13576
|
"category": "behavior"
|
|
15794
13577
|
},
|
|
15795
13578
|
{
|
|
@@ -16135,7 +13918,6 @@
|
|
|
16135
13918
|
},
|
|
16136
13919
|
"description": "Does not currently change any message. To set the error message for an invalid email address,\nuse `setCustomValidityForType`.",
|
|
16137
13920
|
"fieldName": "customValidityTypeEmail",
|
|
16138
|
-
"relevantWhen": "!noValidate",
|
|
16139
13921
|
"category": "behavior"
|
|
16140
13922
|
},
|
|
16141
13923
|
{
|
|
@@ -16346,7 +14128,6 @@
|
|
|
16346
14128
|
"description": "Makes the input invalid when it's left empty, and removes the \" (optional)\" text after the label.\nUse `setCustomValidityValueMissing` to set the error message.",
|
|
16347
14129
|
"default": "false",
|
|
16348
14130
|
"fieldName": "required",
|
|
16349
|
-
"relevantWhen": "!noValidate",
|
|
16350
14131
|
"category": "behavior"
|
|
16351
14132
|
},
|
|
16352
14133
|
{
|
|
@@ -16356,7 +14137,6 @@
|
|
|
16356
14137
|
},
|
|
16357
14138
|
"description": "Sets one error message for every kind of validation error. When set, it replaces the messages from\n`error` and every other `setCustomValidity*` property.",
|
|
16358
14139
|
"fieldName": "setCustomValidity",
|
|
16359
|
-
"relevantWhen": "!noValidate",
|
|
16360
14140
|
"category": "behavior"
|
|
16361
14141
|
},
|
|
16362
14142
|
{
|
|
@@ -16366,7 +14146,6 @@
|
|
|
16366
14146
|
},
|
|
16367
14147
|
"description": "Sets the error message for `validity=\"badInput\"`. Does not currently change any message,\nbecause the input never reports `badInput`.",
|
|
16368
14148
|
"fieldName": "setCustomValidityBadInput",
|
|
16369
|
-
"relevantWhen": "!noValidate",
|
|
16370
14149
|
"category": "behavior"
|
|
16371
14150
|
},
|
|
16372
14151
|
{
|
|
@@ -16376,7 +14155,6 @@
|
|
|
16376
14155
|
},
|
|
16377
14156
|
"description": "Sets the error message shown while the `error` attribute is set, in place of the `error` value.",
|
|
16378
14157
|
"fieldName": "setCustomValidityCustomError",
|
|
16379
|
-
"relevantWhen": "!noValidate",
|
|
16380
14158
|
"category": "behavior"
|
|
16381
14159
|
},
|
|
16382
14160
|
{
|
|
@@ -16387,7 +14165,6 @@
|
|
|
16387
14165
|
"description": "Sets the error message shown when the value doesn't fit its `type`, such as a badly formed email address,\nan incomplete card number, or an incomplete date. When not set, `email`, `credit-card`, and most `date` inputs use a built-in message.",
|
|
16388
14166
|
"default": "undefined",
|
|
16389
14167
|
"fieldName": "setCustomValidityForType",
|
|
16390
|
-
"relevantWhen": "!noValidate",
|
|
16391
14168
|
"category": "behavior"
|
|
16392
14169
|
},
|
|
16393
14170
|
{
|
|
@@ -16397,7 +14174,6 @@
|
|
|
16397
14174
|
},
|
|
16398
14175
|
"description": "Sets the error message shown when the value doesn't match `pattern`, or when a date isn't a real calendar date.\nFor `pattern`, it does not currently work when set only as a property, so set the attribute instead.",
|
|
16399
14176
|
"fieldName": "setCustomValidityPatternMismatch",
|
|
16400
|
-
"relevantWhen": "!noValidate",
|
|
16401
14177
|
"category": "behavior"
|
|
16402
14178
|
},
|
|
16403
14179
|
{
|
|
@@ -16407,7 +14183,6 @@
|
|
|
16407
14183
|
},
|
|
16408
14184
|
"description": "Sets the error message shown when the value is above `max`.",
|
|
16409
14185
|
"fieldName": "setCustomValidityRangeOverflow",
|
|
16410
|
-
"relevantWhen": "!noValidate",
|
|
16411
14186
|
"category": "behavior"
|
|
16412
14187
|
},
|
|
16413
14188
|
{
|
|
@@ -16417,7 +14192,6 @@
|
|
|
16417
14192
|
},
|
|
16418
14193
|
"description": "Sets the error message shown when the value is below `min`.",
|
|
16419
14194
|
"fieldName": "setCustomValidityRangeUnderflow",
|
|
16420
|
-
"relevantWhen": "!noValidate",
|
|
16421
14195
|
"category": "behavior"
|
|
16422
14196
|
},
|
|
16423
14197
|
{
|
|
@@ -16427,7 +14201,6 @@
|
|
|
16427
14201
|
},
|
|
16428
14202
|
"description": "Sets the error message shown when the value is longer than `maxlength`.\nDoes not currently work when set only as a property, so set the attribute instead.",
|
|
16429
14203
|
"fieldName": "setCustomValidityTooLong",
|
|
16430
|
-
"relevantWhen": "!noValidate",
|
|
16431
14204
|
"category": "behavior"
|
|
16432
14205
|
},
|
|
16433
14206
|
{
|
|
@@ -16437,7 +14210,6 @@
|
|
|
16437
14210
|
},
|
|
16438
14211
|
"description": "Sets the error message shown when the value is shorter than `minlength`.\nDoes not currently work when set only as a property, so set the attribute instead.",
|
|
16439
14212
|
"fieldName": "setCustomValidityTooShort",
|
|
16440
|
-
"relevantWhen": "!noValidate",
|
|
16441
14213
|
"category": "behavior"
|
|
16442
14214
|
},
|
|
16443
14215
|
{
|
|
@@ -16447,7 +14219,6 @@
|
|
|
16447
14219
|
},
|
|
16448
14220
|
"description": "Sets the error message shown when a `required` input is left empty.",
|
|
16449
14221
|
"fieldName": "setCustomValidityValueMissing",
|
|
16450
|
-
"relevantWhen": "!noValidate",
|
|
16451
14222
|
"category": "behavior"
|
|
16452
14223
|
},
|
|
16453
14224
|
{
|
|
@@ -20813,7 +18584,7 @@
|
|
|
20813
18584
|
}
|
|
20814
18585
|
}
|
|
20815
18586
|
],
|
|
20816
|
-
"description": "Selects the menu option whose value matches, as setting `value` does.\nA value that matches no option, or matches
|
|
18587
|
+
"description": "Selects the menu option whose value matches, as setting `value` does.\nA value that matches no option, or matches only `disabled` or `static` options, clears `value` and `optionSelected`; `hidden` options can still be selected."
|
|
20817
18588
|
},
|
|
20818
18589
|
{
|
|
20819
18590
|
"kind": "field",
|
|
@@ -21018,7 +18789,7 @@
|
|
|
21018
18789
|
"type": {
|
|
21019
18790
|
"text": "string"
|
|
21020
18791
|
},
|
|
21021
|
-
"description": "Sets the selected option by its value, such as `price`. In `multiSelect` mode, it's a JSON array string, such as `[\"stops\",\"price\"]`.\nA value that matches no option, or matches
|
|
18792
|
+
"description": "Sets the selected option by its value, such as `price`. In `multiSelect` mode, it's a JSON array string, such as `[\"stops\",\"price\"]`.\nA value that matches no option, or matches only `disabled` or `static` options, clears both `value` and `optionSelected`; `hidden` options can still be selected by value.",
|
|
21022
18793
|
"attribute": "value",
|
|
21023
18794
|
"reflects": true,
|
|
21024
18795
|
"category": "behavior"
|
|
@@ -21351,7 +19122,7 @@
|
|
|
21351
19122
|
"type": {
|
|
21352
19123
|
"text": "string"
|
|
21353
19124
|
},
|
|
21354
|
-
"description": "Sets the selected option by its value, such as `price`. In `multiSelect` mode, it's a JSON array string, such as `[\"stops\",\"price\"]`.\nA value that matches no option, or matches
|
|
19125
|
+
"description": "Sets the selected option by its value, such as `price`. In `multiSelect` mode, it's a JSON array string, such as `[\"stops\",\"price\"]`.\nA value that matches no option, or matches only `disabled` or `static` options, clears both `value` and `optionSelected`; `hidden` options can still be selected by value.",
|
|
21355
19126
|
"fieldName": "value",
|
|
21356
19127
|
"category": "behavior"
|
|
21357
19128
|
},
|
|
@@ -21510,5 +19281,5 @@
|
|
|
21510
19281
|
]
|
|
21511
19282
|
}
|
|
21512
19283
|
],
|
|
21513
|
-
"package": "@aurodesignsystem-dev/auro-formkit@0.0.0-pr1628.
|
|
19284
|
+
"package": "@aurodesignsystem-dev/auro-formkit@0.0.0-pr1628.14"
|
|
21514
19285
|
}
|