@warp-ds/elements 2.9.0-next.4 → 2.9.0-next.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +3554 -3442
- package/dist/docs/affix/accessibility.md +7 -0
- package/dist/docs/affix/affix.md +174 -10
- package/dist/docs/affix/api.md +28 -10
- package/dist/docs/affix/examples.md +92 -0
- package/dist/docs/affix/usage.md +47 -0
- package/dist/docs/alert/alert.md +12 -12
- package/dist/docs/alert/api.md +12 -12
- package/dist/docs/attention/api.md +46 -46
- package/dist/docs/attention/attention.md +46 -46
- package/dist/docs/badge/accessibility.md +44 -0
- package/dist/docs/badge/api.md +12 -8
- package/dist/docs/badge/badge.md +191 -10
- package/dist/docs/badge/examples.md +82 -0
- package/dist/docs/badge/usage.md +53 -0
- package/dist/docs/button/api.md +46 -42
- package/dist/docs/button/button.md +46 -42
- package/dist/docs/card/api.md +11 -11
- package/dist/docs/card/card.md +11 -11
- package/dist/docs/combobox/api.md +62 -62
- package/dist/docs/combobox/combobox.md +62 -62
- package/dist/docs/datepicker/api.md +74 -66
- package/dist/docs/datepicker/datepicker.md +74 -66
- package/dist/docs/expandable/api.md +26 -26
- package/dist/docs/expandable/expandable.md +26 -26
- package/dist/docs/link/api.md +28 -28
- package/dist/docs/link/link.md +28 -28
- package/dist/docs/page-indicator/api.md +6 -6
- package/dist/docs/page-indicator/page-indicator.md +6 -6
- package/dist/docs/pagination/api.md +3 -3
- package/dist/docs/pagination/pagination.md +3 -3
- package/dist/docs/pill/api.md +19 -15
- package/dist/docs/pill/pill.md +19 -15
- package/dist/docs/select/api.md +44 -44
- package/dist/docs/select/select.md +44 -44
- package/dist/docs/slider/api.md +80 -78
- package/dist/docs/slider/slider.md +80 -78
- package/dist/docs/slider-thumb/api.md +28 -76
- package/dist/docs/slider-thumb/slider-thumb.md +28 -76
- package/dist/docs/switch/api.md +16 -16
- package/dist/docs/switch/switch.md +16 -16
- package/dist/docs/tab/api.md +26 -40
- package/dist/docs/tab/tab.md +26 -40
- package/dist/docs/tab-panel/api.md +1 -17
- package/dist/docs/tab-panel/tab-panel.md +1 -17
- package/dist/docs/tabs/api.md +3 -3
- package/dist/docs/tabs/tabs.md +3 -3
- package/dist/docs/textarea/api.md +42 -40
- package/dist/docs/textarea/textarea.md +42 -40
- package/dist/docs/textfield/accessibility.md +15 -0
- package/dist/docs/textfield/api.md +86 -83
- package/dist/docs/textfield/examples.md +147 -0
- package/dist/docs/textfield/textfield.md +279 -86
- package/dist/docs/textfield/usage.md +30 -0
- package/dist/index.d.ts +343 -319
- package/dist/packages/affix/affix.d.ts +23 -14
- package/dist/packages/affix/affix.js +24 -11
- package/dist/packages/affix/affix.js.map +4 -4
- package/dist/packages/affix/affix.stories.d.ts +3 -0
- package/dist/packages/affix/affix.stories.js +16 -0
- package/dist/packages/affix/affix.test.js +7 -0
- package/dist/packages/affix/locales/da/messages.d.mts +1 -0
- package/dist/packages/affix/locales/da/messages.mjs +1 -0
- package/dist/packages/affix/locales/en/messages.d.mts +1 -0
- package/dist/packages/affix/locales/en/messages.mjs +1 -0
- package/dist/packages/affix/locales/fi/messages.d.mts +1 -0
- package/dist/packages/affix/locales/fi/messages.mjs +1 -0
- package/dist/packages/affix/locales/nb/messages.d.mts +1 -0
- package/dist/packages/affix/locales/nb/messages.mjs +1 -0
- package/dist/packages/affix/locales/sv/messages.d.mts +1 -0
- package/dist/packages/affix/locales/sv/messages.mjs +1 -0
- package/dist/packages/badge/badge.d.ts +7 -5
- package/dist/packages/badge/badge.js.map +2 -2
- package/dist/packages/badge/badge.react.stories.d.ts +1 -1
- package/dist/packages/box/box.react.stories.d.ts +1 -1
- package/dist/packages/breadcrumbs/breadcrumbs.react.stories.d.ts +1 -1
- package/dist/packages/button/button.react.stories.d.ts +1 -1
- package/dist/packages/card/card.react.stories.d.ts +1 -1
- package/dist/packages/combobox/combobox.react.stories.d.ts +1 -1
- package/dist/packages/datepicker/datepicker.js +1 -1
- package/dist/packages/datepicker/datepicker.js.map +2 -2
- package/dist/packages/datepicker/datepicker.react.stories.d.ts +9 -1
- package/dist/packages/datepicker/react.d.ts +4 -0
- package/dist/packages/datepicker/react.js +4 -0
- package/dist/packages/expandable/expandable.react.stories.d.ts +1 -1
- package/dist/packages/link/link.react.stories.d.ts +1 -1
- package/dist/packages/page-indicator/page-indicator.react.stories.d.ts +1 -1
- package/dist/packages/pagination/pagination.react.stories.d.ts +1 -1
- package/dist/packages/pill/pill.react.stories.d.ts +1 -1
- package/dist/packages/select/select.react.stories.d.ts +1 -1
- package/dist/packages/textarea/textarea.react.stories.d.ts +1 -1
- package/dist/packages/textfield/textfield.d.ts +57 -60
- package/dist/packages/textfield/textfield.js +5 -5
- package/dist/packages/textfield/textfield.js.map +2 -2
- package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
- package/dist/packages/textfield/textfield.stories.d.ts +3 -0
- package/dist/packages/textfield/textfield.stories.js +45 -0
- package/dist/web-types.json +452 -147
- package/package.json +2 -2
|
@@ -4,129 +4,129 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Default | Summary |
|
|
6
6
|
|-|-|-|-|
|
|
7
|
-
|
|
|
8
|
-
|
|
|
9
|
-
|
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
| matchTextSegments | `boolean` | `false` |
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
7
|
+
| autocomplete | `string \| undefined` | `'off'` | Autocomplete attribute for the input field |
|
|
8
|
+
| disableStaticFiltering | `boolean` | `false` | Disable client-side static filtering |
|
|
9
|
+
| disabled | `boolean` | `false` | Whether the element is disabled |
|
|
10
|
+
| helpText | `string \| undefined` | `''` | The content to display as the help text |
|
|
11
|
+
| invalid | `boolean` | `false` | Renders the input field in an invalid state |
|
|
12
|
+
| label | `string \| undefined` | `''` | Label above input |
|
|
13
|
+
| matchTextSegments | `boolean` | `false` | Whether the matching text segments in the options should be highlighted |
|
|
14
|
+
| name | `string \| undefined` | `''` | Name attribute for form submission |
|
|
15
|
+
| openOnFocus | `boolean` | `false` | Whether the popover opens when focus is on the text field |
|
|
16
|
+
| optional | `boolean` | `false` | Whether to show optional text |
|
|
17
|
+
| options | `ComboboxOption[]` | `[]` | The available options to select from |
|
|
18
|
+
| placeholder | `string \| undefined` | `''` | Input placeholder |
|
|
19
|
+
| required | `boolean` | `false` | Whether the element is required |
|
|
20
|
+
| selectOnBlur | `boolean` | `true` | Select active option on blur |
|
|
21
|
+
| value | `string` | `''` | The input value |
|
|
22
22
|
|
|
23
23
|
### Property Details
|
|
24
24
|
|
|
25
|
-
####
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
- Type: `ComboboxOption[]`
|
|
30
|
-
- Default: `[]`
|
|
31
|
-
|
|
32
|
-
#### label
|
|
25
|
+
#### autocomplete
|
|
33
26
|
|
|
27
|
+
Autocomplete attribute for the input field
|
|
34
28
|
|
|
29
|
+
- Type: `string \| undefined`
|
|
30
|
+
- Default: `'off'`
|
|
35
31
|
|
|
36
|
-
|
|
37
|
-
- Default: `''`
|
|
32
|
+
#### disableStaticFiltering
|
|
38
33
|
|
|
39
|
-
|
|
34
|
+
Disable client-side static filtering
|
|
40
35
|
|
|
36
|
+
- Type: `boolean`
|
|
37
|
+
- Default: `false`
|
|
41
38
|
|
|
39
|
+
#### disabled
|
|
42
40
|
|
|
43
|
-
|
|
44
|
-
- Default: `''`
|
|
41
|
+
Whether the element is disabled
|
|
45
42
|
|
|
46
|
-
|
|
43
|
+
- Type: `boolean`
|
|
44
|
+
- Default: `false`
|
|
47
45
|
|
|
46
|
+
#### helpText
|
|
48
47
|
|
|
48
|
+
The content to display as the help text
|
|
49
49
|
|
|
50
|
-
- Type: `string`
|
|
50
|
+
- Type: `string \| undefined`
|
|
51
51
|
- Default: `''`
|
|
52
52
|
|
|
53
|
-
####
|
|
54
|
-
|
|
53
|
+
#### invalid
|
|
55
54
|
|
|
55
|
+
Renders the input field in an invalid state
|
|
56
56
|
|
|
57
57
|
- Type: `boolean`
|
|
58
58
|
- Default: `false`
|
|
59
59
|
|
|
60
|
-
####
|
|
61
|
-
|
|
60
|
+
#### label
|
|
62
61
|
|
|
62
|
+
Label above input
|
|
63
63
|
|
|
64
|
-
- Type: `
|
|
65
|
-
- Default: `
|
|
64
|
+
- Type: `string \| undefined`
|
|
65
|
+
- Default: `''`
|
|
66
66
|
|
|
67
67
|
#### matchTextSegments
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
Whether the matching text segments in the options should be highlighted
|
|
70
70
|
|
|
71
71
|
- Type: `boolean`
|
|
72
72
|
- Default: `false`
|
|
73
73
|
|
|
74
|
-
####
|
|
74
|
+
#### name
|
|
75
75
|
|
|
76
|
+
Name attribute for form submission
|
|
76
77
|
|
|
78
|
+
- Type: `string \| undefined`
|
|
79
|
+
- Default: `''`
|
|
80
|
+
|
|
81
|
+
#### openOnFocus
|
|
82
|
+
|
|
83
|
+
Whether the popover opens when focus is on the text field
|
|
77
84
|
|
|
78
85
|
- Type: `boolean`
|
|
79
86
|
- Default: `false`
|
|
80
87
|
|
|
81
|
-
####
|
|
82
|
-
|
|
88
|
+
#### optional
|
|
83
89
|
|
|
90
|
+
Whether to show optional text
|
|
84
91
|
|
|
85
92
|
- Type: `boolean`
|
|
86
93
|
- Default: `false`
|
|
87
94
|
|
|
88
|
-
####
|
|
89
|
-
|
|
90
|
-
|
|
95
|
+
#### options
|
|
91
96
|
|
|
92
|
-
|
|
93
|
-
- Default: `''`
|
|
97
|
+
The available options to select from
|
|
94
98
|
|
|
95
|
-
|
|
99
|
+
- Type: `ComboboxOption[]`
|
|
100
|
+
- Default: `[]`
|
|
96
101
|
|
|
102
|
+
#### placeholder
|
|
97
103
|
|
|
104
|
+
Input placeholder
|
|
98
105
|
|
|
99
|
-
- Type: `
|
|
100
|
-
- Default: `
|
|
106
|
+
- Type: `string \| undefined`
|
|
107
|
+
- Default: `''`
|
|
101
108
|
|
|
102
109
|
#### required
|
|
103
110
|
|
|
104
|
-
|
|
111
|
+
Whether the element is required
|
|
105
112
|
|
|
106
113
|
- Type: `boolean`
|
|
107
114
|
- Default: `false`
|
|
108
115
|
|
|
109
|
-
####
|
|
110
|
-
|
|
116
|
+
#### selectOnBlur
|
|
111
117
|
|
|
118
|
+
Select active option on blur
|
|
112
119
|
|
|
113
120
|
- Type: `boolean`
|
|
114
|
-
- Default: `
|
|
115
|
-
|
|
116
|
-
#### name
|
|
121
|
+
- Default: `true`
|
|
117
122
|
|
|
123
|
+
#### value
|
|
118
124
|
|
|
125
|
+
The input value
|
|
119
126
|
|
|
120
|
-
- Type: `string
|
|
127
|
+
- Type: `string`
|
|
121
128
|
- Default: `''`
|
|
122
129
|
|
|
123
|
-
#### autocomplete
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
- Type: `string | undefined`
|
|
128
|
-
- Default: `'off'`
|
|
129
|
-
|
|
130
130
|
### Types
|
|
131
131
|
|
|
132
132
|
No types documented.
|
|
@@ -18,129 +18,129 @@ A combobox element for text input with selectable options.
|
|
|
18
18
|
|
|
19
19
|
| Name | Type | Default | Summary |
|
|
20
20
|
|-|-|-|-|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
|
|
|
24
|
-
|
|
|
25
|
-
|
|
|
26
|
-
|
|
|
27
|
-
| matchTextSegments | `boolean` | `false` |
|
|
28
|
-
|
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
32
|
-
|
|
|
33
|
-
|
|
|
34
|
-
|
|
|
35
|
-
|
|
|
21
|
+
| autocomplete | `string \| undefined` | `'off'` | Autocomplete attribute for the input field |
|
|
22
|
+
| disableStaticFiltering | `boolean` | `false` | Disable client-side static filtering |
|
|
23
|
+
| disabled | `boolean` | `false` | Whether the element is disabled |
|
|
24
|
+
| helpText | `string \| undefined` | `''` | The content to display as the help text |
|
|
25
|
+
| invalid | `boolean` | `false` | Renders the input field in an invalid state |
|
|
26
|
+
| label | `string \| undefined` | `''` | Label above input |
|
|
27
|
+
| matchTextSegments | `boolean` | `false` | Whether the matching text segments in the options should be highlighted |
|
|
28
|
+
| name | `string \| undefined` | `''` | Name attribute for form submission |
|
|
29
|
+
| openOnFocus | `boolean` | `false` | Whether the popover opens when focus is on the text field |
|
|
30
|
+
| optional | `boolean` | `false` | Whether to show optional text |
|
|
31
|
+
| options | `ComboboxOption[]` | `[]` | The available options to select from |
|
|
32
|
+
| placeholder | `string \| undefined` | `''` | Input placeholder |
|
|
33
|
+
| required | `boolean` | `false` | Whether the element is required |
|
|
34
|
+
| selectOnBlur | `boolean` | `true` | Select active option on blur |
|
|
35
|
+
| value | `string` | `''` | The input value |
|
|
36
36
|
|
|
37
37
|
### Property Details
|
|
38
38
|
|
|
39
|
-
####
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
- Type: `ComboboxOption[]`
|
|
44
|
-
- Default: `[]`
|
|
45
|
-
|
|
46
|
-
#### label
|
|
39
|
+
#### autocomplete
|
|
47
40
|
|
|
41
|
+
Autocomplete attribute for the input field
|
|
48
42
|
|
|
43
|
+
- Type: `string \| undefined`
|
|
44
|
+
- Default: `'off'`
|
|
49
45
|
|
|
50
|
-
|
|
51
|
-
- Default: `''`
|
|
46
|
+
#### disableStaticFiltering
|
|
52
47
|
|
|
53
|
-
|
|
48
|
+
Disable client-side static filtering
|
|
54
49
|
|
|
50
|
+
- Type: `boolean`
|
|
51
|
+
- Default: `false`
|
|
55
52
|
|
|
53
|
+
#### disabled
|
|
56
54
|
|
|
57
|
-
|
|
58
|
-
- Default: `''`
|
|
55
|
+
Whether the element is disabled
|
|
59
56
|
|
|
60
|
-
|
|
57
|
+
- Type: `boolean`
|
|
58
|
+
- Default: `false`
|
|
61
59
|
|
|
60
|
+
#### helpText
|
|
62
61
|
|
|
62
|
+
The content to display as the help text
|
|
63
63
|
|
|
64
|
-
- Type: `string`
|
|
64
|
+
- Type: `string \| undefined`
|
|
65
65
|
- Default: `''`
|
|
66
66
|
|
|
67
|
-
####
|
|
68
|
-
|
|
67
|
+
#### invalid
|
|
69
68
|
|
|
69
|
+
Renders the input field in an invalid state
|
|
70
70
|
|
|
71
71
|
- Type: `boolean`
|
|
72
72
|
- Default: `false`
|
|
73
73
|
|
|
74
|
-
####
|
|
75
|
-
|
|
74
|
+
#### label
|
|
76
75
|
|
|
76
|
+
Label above input
|
|
77
77
|
|
|
78
|
-
- Type: `
|
|
79
|
-
- Default: `
|
|
78
|
+
- Type: `string \| undefined`
|
|
79
|
+
- Default: `''`
|
|
80
80
|
|
|
81
81
|
#### matchTextSegments
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
Whether the matching text segments in the options should be highlighted
|
|
84
84
|
|
|
85
85
|
- Type: `boolean`
|
|
86
86
|
- Default: `false`
|
|
87
87
|
|
|
88
|
-
####
|
|
88
|
+
#### name
|
|
89
89
|
|
|
90
|
+
Name attribute for form submission
|
|
90
91
|
|
|
92
|
+
- Type: `string \| undefined`
|
|
93
|
+
- Default: `''`
|
|
94
|
+
|
|
95
|
+
#### openOnFocus
|
|
96
|
+
|
|
97
|
+
Whether the popover opens when focus is on the text field
|
|
91
98
|
|
|
92
99
|
- Type: `boolean`
|
|
93
100
|
- Default: `false`
|
|
94
101
|
|
|
95
|
-
####
|
|
96
|
-
|
|
102
|
+
#### optional
|
|
97
103
|
|
|
104
|
+
Whether to show optional text
|
|
98
105
|
|
|
99
106
|
- Type: `boolean`
|
|
100
107
|
- Default: `false`
|
|
101
108
|
|
|
102
|
-
####
|
|
103
|
-
|
|
104
|
-
|
|
109
|
+
#### options
|
|
105
110
|
|
|
106
|
-
|
|
107
|
-
- Default: `''`
|
|
111
|
+
The available options to select from
|
|
108
112
|
|
|
109
|
-
|
|
113
|
+
- Type: `ComboboxOption[]`
|
|
114
|
+
- Default: `[]`
|
|
110
115
|
|
|
116
|
+
#### placeholder
|
|
111
117
|
|
|
118
|
+
Input placeholder
|
|
112
119
|
|
|
113
|
-
- Type: `
|
|
114
|
-
- Default: `
|
|
120
|
+
- Type: `string \| undefined`
|
|
121
|
+
- Default: `''`
|
|
115
122
|
|
|
116
123
|
#### required
|
|
117
124
|
|
|
118
|
-
|
|
125
|
+
Whether the element is required
|
|
119
126
|
|
|
120
127
|
- Type: `boolean`
|
|
121
128
|
- Default: `false`
|
|
122
129
|
|
|
123
|
-
####
|
|
124
|
-
|
|
130
|
+
#### selectOnBlur
|
|
125
131
|
|
|
132
|
+
Select active option on blur
|
|
126
133
|
|
|
127
134
|
- Type: `boolean`
|
|
128
|
-
- Default: `
|
|
129
|
-
|
|
130
|
-
#### name
|
|
135
|
+
- Default: `true`
|
|
131
136
|
|
|
137
|
+
#### value
|
|
132
138
|
|
|
139
|
+
The input value
|
|
133
140
|
|
|
134
|
-
- Type: `string
|
|
141
|
+
- Type: `string`
|
|
135
142
|
- Default: `''`
|
|
136
143
|
|
|
137
|
-
#### autocomplete
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
- Type: `string | undefined`
|
|
142
|
-
- Default: `'off'`
|
|
143
|
-
|
|
144
144
|
### Types
|
|
145
145
|
|
|
146
146
|
No types documented.
|
|
@@ -4,99 +4,105 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Default | Summary |
|
|
6
6
|
|-|-|-|-|
|
|
7
|
-
|
|
|
7
|
+
| calendar | `HTMLDivElement` | `-` | - |
|
|
8
|
+
| dayFormat | `string` | `'PPPP'` | Decides the format of the day in the calendar as read to screen readers. |
|
|
9
|
+
| headerFormat | `string` | `'MMMM yyyy'` | Decides the format of the date as shown in the calendar header. |
|
|
10
|
+
| input | `HTMLInputElement` | `-` | - |
|
|
11
|
+
| isCalendarOpen | `boolean` | `false` | - |
|
|
12
|
+
| isDayDisabled | `(day: Date) => boolean` | `-` | Lets you control if a date in the calendar should be disabled. |
|
|
8
13
|
| label | `string` | `-` | - |
|
|
9
|
-
| lang | `string` | `-` |
|
|
14
|
+
| lang | `string` | `-` | Takes precedence over the `<html>` lang attribute. |
|
|
15
|
+
| month | `unknown` | `-` | - |
|
|
10
16
|
| name | `string` | `-` | - |
|
|
11
|
-
| value | `string` | `-` | - |
|
|
12
|
-
| headerFormat | `string` | `'MMMM yyyy'` | - |
|
|
13
|
-
| weekdayFormat | `string` | `'EEEEEE'` | - |
|
|
14
|
-
| isDayDisabled | `(day: Date) => boolean` | `-` | - |
|
|
15
|
-
| dayFormat | `string` | `'PPPP'` | - |
|
|
16
|
-
| isCalendarOpen | `boolean` | `false` | - |
|
|
17
17
|
| navigationDate | `Date` | `-` | - |
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
18
|
+
| previousMonthButton | `HTMLButtonElement` | `-` | This is the first focusable element, needed for the modal focus trap. |
|
|
19
|
+
| selectedCell | `HTMLTableCellElement` | `-` | - |
|
|
20
|
+
| selectedDate | `Date \| null` | `-` | - |
|
|
21
|
+
| shadowRootOptions | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
|
|
22
|
+
| todayCell | `HTMLTableCellElement` | `-` | - |
|
|
23
23
|
| toggleButton | `HTMLButtonElement` | `-` | - |
|
|
24
|
+
| value | `string` | `-` | - |
|
|
25
|
+
| weekdayFormat | `string` | `'EEEEEE'` | Decides the format of the weekday as shown above the grid of dates in the calendar. |
|
|
26
|
+
| weeks | `unknown` | `-` | - |
|
|
24
27
|
| wrapper | `HTMLDivElement` | `-` | - |
|
|
25
|
-
| previousMonthButton | `HTMLButtonElement` | `-` | - |
|
|
26
|
-
| todayCell | `HTMLTableCellElement` | `-` | - |
|
|
27
|
-
| selectedCell | `HTMLTableCellElement` | `-` | - |
|
|
28
28
|
|
|
29
29
|
### Property Details
|
|
30
30
|
|
|
31
|
-
####
|
|
31
|
+
#### calendar
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
- Type: `
|
|
36
|
-
- Default:
|
|
35
|
+
- Type: `HTMLDivElement`
|
|
36
|
+
- Default: `-`
|
|
37
37
|
|
|
38
|
-
####
|
|
38
|
+
#### dayFormat
|
|
39
39
|
|
|
40
|
+
Decides the format of the day in the calendar as read to screen readers.
|
|
40
41
|
|
|
42
|
+
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
41
43
|
|
|
42
44
|
- Type: `string`
|
|
43
|
-
- Default:
|
|
45
|
+
- Default: `'PPPP'`
|
|
44
46
|
|
|
45
|
-
####
|
|
47
|
+
#### headerFormat
|
|
46
48
|
|
|
49
|
+
Decides the format of the date as shown in the calendar header.
|
|
47
50
|
|
|
51
|
+
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
48
52
|
|
|
49
53
|
- Type: `string`
|
|
50
|
-
- Default:
|
|
54
|
+
- Default: `'MMMM yyyy'`
|
|
51
55
|
|
|
52
|
-
####
|
|
56
|
+
#### input
|
|
53
57
|
|
|
54
58
|
|
|
55
59
|
|
|
56
|
-
- Type: `
|
|
60
|
+
- Type: `HTMLInputElement`
|
|
57
61
|
- Default: `-`
|
|
58
62
|
|
|
59
|
-
####
|
|
63
|
+
#### isCalendarOpen
|
|
60
64
|
|
|
61
65
|
|
|
62
66
|
|
|
63
|
-
- Type: `
|
|
64
|
-
- Default:
|
|
67
|
+
- Type: `boolean`
|
|
68
|
+
- Default: `false`
|
|
65
69
|
|
|
66
|
-
####
|
|
70
|
+
#### isDayDisabled
|
|
67
71
|
|
|
72
|
+
Lets you control if a date in the calendar should be disabled.
|
|
68
73
|
|
|
74
|
+
This needs to be set on the element instance in JavaScript, not as an HTML attribute.
|
|
69
75
|
|
|
70
|
-
- Type: `
|
|
71
|
-
- Default:
|
|
76
|
+
- Type: `(day: Date) => boolean`
|
|
77
|
+
- Default: `-`
|
|
72
78
|
|
|
73
|
-
####
|
|
79
|
+
#### label
|
|
74
80
|
|
|
75
81
|
|
|
76
82
|
|
|
77
83
|
- Type: `string`
|
|
78
|
-
- Default:
|
|
79
|
-
|
|
80
|
-
#### isDayDisabled
|
|
84
|
+
- Default: `-`
|
|
81
85
|
|
|
86
|
+
#### lang
|
|
82
87
|
|
|
88
|
+
Takes precedence over the `<html>` lang attribute.
|
|
83
89
|
|
|
84
|
-
- Type: `
|
|
90
|
+
- Type: `string`
|
|
85
91
|
- Default: `-`
|
|
86
92
|
|
|
87
|
-
####
|
|
93
|
+
#### month
|
|
88
94
|
|
|
89
95
|
|
|
90
96
|
|
|
91
|
-
- Type: `
|
|
92
|
-
- Default:
|
|
97
|
+
- Type: `unknown`
|
|
98
|
+
- Default: `-`
|
|
93
99
|
|
|
94
|
-
####
|
|
100
|
+
#### name
|
|
95
101
|
|
|
96
102
|
|
|
97
103
|
|
|
98
|
-
- Type: `
|
|
99
|
-
- Default:
|
|
104
|
+
- Type: `string`
|
|
105
|
+
- Default: `-`
|
|
100
106
|
|
|
101
107
|
#### navigationDate
|
|
102
108
|
|
|
@@ -105,39 +111,43 @@
|
|
|
105
111
|
- Type: `Date`
|
|
106
112
|
- Default: `-`
|
|
107
113
|
|
|
108
|
-
####
|
|
114
|
+
#### previousMonthButton
|
|
109
115
|
|
|
116
|
+
This is the first focusable element, needed for the modal focus trap.
|
|
110
117
|
|
|
118
|
+
Don't cache this and other `@query` fields from inside the calendar modal.
|
|
119
|
+
They work the first time, but once the calendar is closed and reopened
|
|
120
|
+
the query will point to an element that doesn't exist anymore.
|
|
111
121
|
|
|
112
|
-
- Type: `
|
|
122
|
+
- Type: `HTMLButtonElement`
|
|
113
123
|
- Default: `-`
|
|
114
124
|
|
|
115
|
-
####
|
|
125
|
+
#### selectedCell
|
|
116
126
|
|
|
117
127
|
|
|
118
128
|
|
|
119
|
-
- Type: `
|
|
129
|
+
- Type: `HTMLTableCellElement`
|
|
120
130
|
- Default: `-`
|
|
121
131
|
|
|
122
|
-
####
|
|
132
|
+
#### selectedDate
|
|
123
133
|
|
|
124
134
|
|
|
125
135
|
|
|
126
|
-
- Type: `
|
|
136
|
+
- Type: `Date \| null`
|
|
127
137
|
- Default: `-`
|
|
128
138
|
|
|
129
|
-
####
|
|
139
|
+
#### shadowRootOptions
|
|
130
140
|
|
|
131
141
|
|
|
132
142
|
|
|
133
|
-
- Type: `
|
|
134
|
-
- Default:
|
|
143
|
+
- Type: `object`
|
|
144
|
+
- Default: `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }`
|
|
135
145
|
|
|
136
|
-
####
|
|
146
|
+
#### todayCell
|
|
137
147
|
|
|
138
148
|
|
|
139
149
|
|
|
140
|
-
- Type: `
|
|
150
|
+
- Type: `HTMLTableCellElement`
|
|
141
151
|
- Default: `-`
|
|
142
152
|
|
|
143
153
|
#### toggleButton
|
|
@@ -147,36 +157,34 @@
|
|
|
147
157
|
- Type: `HTMLButtonElement`
|
|
148
158
|
- Default: `-`
|
|
149
159
|
|
|
150
|
-
####
|
|
160
|
+
#### value
|
|
151
161
|
|
|
152
162
|
|
|
153
163
|
|
|
154
|
-
- Type: `
|
|
164
|
+
- Type: `string`
|
|
155
165
|
- Default: `-`
|
|
156
166
|
|
|
157
|
-
####
|
|
167
|
+
#### weekdayFormat
|
|
158
168
|
|
|
159
|
-
|
|
169
|
+
Decides the format of the weekday as shown above the grid of dates in the calendar.
|
|
160
170
|
|
|
161
|
-
|
|
162
|
-
They work the first time, but once the calendar is closed and reopened
|
|
163
|
-
the query will point to an element that doesn't exist anymore.
|
|
171
|
+
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
164
172
|
|
|
165
|
-
- Type: `
|
|
166
|
-
- Default:
|
|
173
|
+
- Type: `string`
|
|
174
|
+
- Default: `'EEEEEE'`
|
|
167
175
|
|
|
168
|
-
####
|
|
176
|
+
#### weeks
|
|
169
177
|
|
|
170
178
|
|
|
171
179
|
|
|
172
|
-
- Type: `
|
|
180
|
+
- Type: `unknown`
|
|
173
181
|
- Default: `-`
|
|
174
182
|
|
|
175
|
-
####
|
|
183
|
+
#### wrapper
|
|
176
184
|
|
|
177
185
|
|
|
178
186
|
|
|
179
|
-
- Type: `
|
|
187
|
+
- Type: `HTMLDivElement`
|
|
180
188
|
- Default: `-`
|
|
181
189
|
|
|
182
190
|
### Types
|