@punica/components-mcp 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1956,156 +1956,96 @@
1956
1956
  },
1957
1957
  {
1958
1958
  "kind": "javascript-module",
1959
- "path": "src/components/aspectRatio/aspectRatio.js",
1959
+ "path": "src/components/appShell/appShell.js",
1960
1960
  "declarations": [
1961
1961
  {
1962
1962
  "kind": "class",
1963
- "description": "Keeps its content at a fixed ratio of inline to block size.",
1964
- "name": "PunicaAspectRatio",
1963
+ "description": "The frame of an app's page: a header across the top, the navigation down\nthe side, the main content, a secondary panel and a footer.\n\nThe regions are a CSS grid. With `fixed` the shell is as tall as the\nviewport and each region scrolls on its own; without it the page scrolls\nand the header, the navigation and the panel stick. Narrower than\n`collapse-below`, the navigation leaves the side for a drawer opened by a\nmenu button at the start of the header, and the panel moves under the\nmain content. The width is the shell's own, not the window's, so a shell\nin a pane collapses with the pane.\n\nThe main content is in a native `<main>` landmark, unless `embedded` says\nthe shell is a part of a larger page that has its own; a \"skip to\ncontent\" button is the first thing in the tab order.",
1964
+ "name": "PunicaAppShell",
1965
1965
  "cssProperties": [
1966
1966
  {
1967
- "description": "`object-fit` of the content, `cover` by default.",
1968
- "name": "--punica-aspect-ratio-fit"
1969
- }
1970
- ],
1971
- "slots": [
1972
- {
1973
- "description": "The content, an image, video or frame; it fills the box.",
1974
- "name": ""
1975
- }
1976
- ],
1977
- "members": [
1978
- {
1979
- "kind": "field",
1980
- "name": "properties",
1981
- "type": {
1982
- "text": "object"
1983
- },
1984
- "static": true,
1985
- "default": "{ ratio: {} }"
1967
+ "description": "Block size while `fixed`, `100dvh` by default.",
1968
+ "name": "--punica-app-shell-height"
1986
1969
  },
1987
1970
  {
1988
- "kind": "field",
1989
- "name": "styles",
1990
- "static": true,
1991
- "default": "styles"
1971
+ "description": "Inline size of the navigation region.",
1972
+ "name": "--punica-app-shell-nav-width"
1992
1973
  },
1993
1974
  {
1994
- "kind": "field",
1995
- "name": "template",
1996
- "static": true,
1997
- "default": "`<slot></slot>`"
1975
+ "description": "Inline size of the panel region.",
1976
+ "name": "--punica-app-shell-aside-width"
1998
1977
  },
1999
1978
  {
2000
- "kind": "field",
2001
- "name": "#style",
2002
- "privacy": "private"
1979
+ "description": "Background of the main content.",
1980
+ "name": "--punica-app-shell-background"
2003
1981
  },
2004
1982
  {
2005
- "kind": "method",
2006
- "name": "update"
2007
- }
2008
- ],
2009
- "attributes": [
2010
- {
2011
- "type": {
2012
- "text": "string"
2013
- },
2014
- "description": "`inline/block` as two positive numbers (`16/9`), or one number; `1/1` by default and for anything else.",
2015
- "name": "ratio"
1983
+ "description": "Padding of the main content.",
1984
+ "name": "--punica-app-shell-padding"
2016
1985
  }
2017
1986
  ],
2018
- "superclass": {
2019
- "name": "PunicaElement",
2020
- "module": "/src/core/element.js"
2021
- },
2022
- "tagName": "punica-aspect-ratio",
2023
- "customElement": true
2024
- }
2025
- ],
2026
- "exports": [
2027
- {
2028
- "kind": "js",
2029
- "name": "PunicaAspectRatio",
2030
- "declaration": {
2031
- "name": "PunicaAspectRatio",
2032
- "module": "src/components/aspectRatio/aspectRatio.js"
2033
- }
2034
- }
2035
- ]
2036
- },
2037
- {
2038
- "kind": "javascript-module",
2039
- "path": "src/components/autocomplete/autocomplete.js",
2040
- "declarations": [
2041
- {
2042
- "kind": "class",
2043
- "description": "A text input that suggests values as the user types: an editable combobox\nwith list autocomplete.\n\nThe suggestions are `punica-option` children, or the `options` array for\ndata that arrives later: listen for `punica-input`, fetch, and assign\n`options`. The value is the picked option's `value`; with `free-text`, any\ntyped text is a value too.",
2044
- "name": "PunicaAutocomplete",
2045
- "cssProperties": [
2046
- {
2047
- "description": "Corner radius of the field.",
2048
- "name": "--punica-autocomplete-radius"
2049
- },
1987
+ "cssParts": [
2050
1988
  {
2051
- "description": "Minimum block size of the field.",
2052
- "name": "--punica-autocomplete-height"
1989
+ "description": "The grid.",
1990
+ "name": "base"
2053
1991
  },
2054
1992
  {
2055
- "description": "Inline padding of the field.",
2056
- "name": "--punica-autocomplete-padding"
1993
+ "description": "The skip-to-content button.",
1994
+ "name": "skip-link"
2057
1995
  },
2058
1996
  {
2059
- "description": "Border colour at rest.",
2060
- "name": "--punica-autocomplete-border-color"
1997
+ "description": "The header region.",
1998
+ "name": "header"
2061
1999
  },
2062
2000
  {
2063
- "description": "Field background.",
2064
- "name": "--punica-autocomplete-background"
2001
+ "description": "The start of the header holding the menu button, shown while collapsed; it draws the header's bottom line under the button.",
2002
+ "name": "menu-cell"
2065
2003
  },
2066
2004
  {
2067
- "description": "Smallest inline size.",
2068
- "name": "--punica-autocomplete-min-width"
2005
+ "description": "The button that opens the navigation drawer.",
2006
+ "name": "menu-button"
2069
2007
  },
2070
2008
  {
2071
- "description": "Largest block size of the list.",
2072
- "name": "--punica-autocomplete-listbox-max-height"
2073
- }
2074
- ],
2075
- "cssParts": [
2076
- {
2077
- "description": "The bordered box.",
2078
- "name": "field"
2009
+ "description": "The navigation region.",
2010
+ "name": "nav"
2079
2011
  },
2080
2012
  {
2081
- "description": "The text input, a combobox.",
2082
- "name": "input"
2013
+ "description": "The native `<main>` (a `<div>` while `embedded`).",
2014
+ "name": "main"
2083
2015
  },
2084
2016
  {
2085
- "description": "The clear button.",
2086
- "name": "clear"
2017
+ "description": "The panel region.",
2018
+ "name": "aside"
2087
2019
  },
2088
2020
  {
2089
- "description": "The floating list.",
2090
- "name": "listbox"
2021
+ "description": "The footer region.",
2022
+ "name": "footer"
2091
2023
  },
2092
2024
  {
2093
- "description": "Each row made from `options`.",
2094
- "name": "option"
2025
+ "description": "The `punica-mobile-nav` the navigation moves into.",
2026
+ "name": "drawer"
2095
2027
  }
2096
2028
  ],
2097
2029
  "slots": [
2098
2030
  {
2099
- "description": "The `punica-option` rows.",
2031
+ "description": "The main content, inside the `<main>` landmark.",
2100
2032
  "name": ""
2101
2033
  },
2102
2034
  {
2103
- "description": "Content before the input, an icon.",
2104
- "name": "start"
2035
+ "description": "Across the top: a `punica-top-nav`, a `punica-app-bar`.",
2036
+ "name": "header"
2105
2037
  },
2106
2038
  {
2107
- "description": "Content after the input.",
2108
- "name": "end"
2039
+ "description": "Down the inline-start side, in a drawer while collapsed: a `punica-side-nav`.",
2040
+ "name": "nav"
2041
+ },
2042
+ {
2043
+ "description": "A secondary panel at the inline-end side, under the main content while collapsed.",
2044
+ "name": "aside"
2045
+ },
2046
+ {
2047
+ "description": "Under the main content and the panel.",
2048
+ "name": "footer"
2109
2049
  }
2110
2050
  ],
2111
2051
  "members": [
@@ -2116,146 +2056,129 @@
2116
2056
  "text": "object"
2117
2057
  },
2118
2058
  "static": true,
2119
- "default": "{ value: { reflect: false }, placeholder: {}, label: {}, open: { type: Boolean }, freeText: { type: Boolean }, noFilter: { type: Boolean }, clearable: { type: Boolean }, readonly: { type: Boolean }, size: {}, fullWidth: { type: Boolean }, labelClear: { default: 'Clear' }, options: { type: Array, attribute: false } }"
2059
+ "default": "{ fixed: { type: Boolean }, embedded: { type: Boolean }, collapseBelow: { default: 'medium' }, navOpen: { type: Boolean }, labelMenu: { default: 'Menu' }, labelNav: { default: 'Navigation' }, labelSkip: { default: 'Skip to content' }, labelClose: { default: 'Close' } }"
2120
2060
  },
2121
2061
  {
2122
2062
  "kind": "field",
2123
2063
  "name": "styles",
2124
- "type": {
2125
- "text": "array"
2126
- },
2127
2064
  "static": true,
2128
- "default": "[overlayCss, fieldStyles, styles]"
2065
+ "default": "styles"
2129
2066
  },
2130
2067
  {
2131
2068
  "kind": "field",
2132
- "name": "shadowOptions",
2133
- "type": {
2134
- "text": "object"
2135
- },
2069
+ "name": "template",
2136
2070
  "static": true,
2137
- "default": "{ delegatesFocus: true }"
2071
+ "default": "` <div part=\"base\" class=\"base\"> <button part=\"skip-link\" class=\"skip\" type=\"button\"></button> <div part=\"header\" class=\"header\"> <div part=\"menu-cell\" class=\"menu-cell\"> <punica-mobile-nav part=\"drawer\" class=\"drawer\"> <button slot=\"trigger\" part=\"menu-button\" class=\"menu\" type=\"button\">${MENU_ICON}</button> </punica-mobile-nav> </div> <div class=\"header-content\"><slot name=\"header\"></slot></div> </div> <div part=\"nav\" class=\"nav\"><div class=\"nav-inner\"><slot name=\"nav\"></slot></div></div> <main part=\"main\" class=\"main\" tabindex=\"-1\"><slot></slot></main> <div part=\"aside\" class=\"aside\"><div class=\"aside-inner\"><slot name=\"aside\"></slot></div></div> <div part=\"footer\" class=\"footer\"><slot name=\"footer\"></slot></div> </div> `"
2138
2072
  },
2139
2073
  {
2140
2074
  "kind": "field",
2141
- "name": "template",
2142
- "static": true,
2143
- "default": "` <div part=\"field\" class=\"field\"> <slot name=\"start\"></slot> <input part=\"input\" class=\"control\" type=\"text\" role=\"combobox\" aria-autocomplete=\"list\" aria-haspopup=\"listbox\" aria-controls=\"listbox\" aria-expanded=\"false\" autocomplete=\"off\" autocapitalize=\"off\" spellcheck=\"false\"> <button part=\"clear\" class=\"icon-button\" type=\"button\" hidden>${icons.close}</button> <slot name=\"end\"></slot> </div> <div part=\"listbox\" id=\"listbox\" class=\"panel listbox\" role=\"listbox\" popover=\"manual\"><slot></slot></div> `"
2075
+ "name": "#base",
2076
+ "privacy": "private"
2144
2077
  },
2145
2078
  {
2146
2079
  "kind": "field",
2147
- "name": "#field",
2080
+ "name": "#skip",
2148
2081
  "privacy": "private"
2149
2082
  },
2150
2083
  {
2151
2084
  "kind": "field",
2152
- "name": "#input",
2085
+ "name": "#header",
2153
2086
  "privacy": "private"
2154
2087
  },
2155
2088
  {
2156
2089
  "kind": "field",
2157
- "name": "#clear",
2090
+ "name": "#navRegion",
2158
2091
  "privacy": "private"
2159
2092
  },
2160
2093
  {
2161
2094
  "kind": "field",
2162
- "name": "#listbox",
2095
+ "name": "#navInner",
2163
2096
  "privacy": "private"
2164
2097
  },
2165
2098
  {
2166
2099
  "kind": "field",
2167
- "name": "#slot",
2100
+ "name": "#menuCell",
2168
2101
  "privacy": "private"
2169
2102
  },
2170
2103
  {
2171
2104
  "kind": "field",
2172
- "name": "#surface",
2173
- "privacy": "private",
2174
- "default": "new FieldSurface(this, this.#listbox)"
2105
+ "name": "#main",
2106
+ "privacy": "private"
2175
2107
  },
2176
2108
  {
2177
2109
  "kind": "field",
2178
- "name": "#nav",
2179
- "privacy": "private",
2180
- "default": "new OptionNavigator(this.#input, () => this.#rows())"
2110
+ "name": "#aside",
2111
+ "privacy": "private"
2181
2112
  },
2182
2113
  {
2183
2114
  "kind": "field",
2184
- "name": "#generated",
2115
+ "name": "#asideInner",
2116
+ "privacy": "private"
2117
+ },
2118
+ {
2119
+ "kind": "field",
2120
+ "name": "#drawer",
2185
2121
  "privacy": "private",
2186
- "type": {
2187
- "text": "any[]"
2188
- },
2189
- "default": "[]",
2190
- "description": "Rows made from the `options` property."
2122
+ "default": "(this.$('punica-mobile-nav'))"
2191
2123
  },
2192
2124
  {
2193
2125
  "kind": "field",
2194
- "name": "#generatedFrom",
2126
+ "name": "#menu",
2127
+ "privacy": "private"
2128
+ },
2129
+ {
2130
+ "kind": "field",
2131
+ "name": "#slots",
2195
2132
  "privacy": "private",
2196
2133
  "type": {
2197
- "text": "unknown"
2134
+ "text": "object"
2198
2135
  },
2199
- "default": "null",
2200
- "description": "The array those rows were made from."
2136
+ "default": "{ header: this.$('slot[name=\"header\"]'), nav: this.$('slot[name=\"nav\"]'), aside: this.$('slot[name=\"aside\"]'), footer: this.$('slot[name=\"footer\"]') }"
2201
2137
  },
2202
2138
  {
2203
2139
  "kind": "field",
2204
- "name": "#typed",
2140
+ "name": "#collapsed",
2205
2141
  "privacy": "private",
2206
2142
  "type": {
2207
- "text": "string | null"
2143
+ "text": "boolean"
2208
2144
  },
2209
- "default": "null",
2210
- "description": "What the user typed since the last commit; null while the text is the value's own."
2145
+ "default": "false"
2211
2146
  },
2212
2147
  {
2213
2148
  "kind": "field",
2214
- "name": "#textKey",
2149
+ "name": "#resize",
2215
2150
  "privacy": "private",
2216
2151
  "type": {
2217
- "text": "string | null"
2152
+ "text": "ResizeObserver | null"
2218
2153
  },
2219
- "default": "null",
2220
- "description": "What the input's text was last written from."
2154
+ "default": "null"
2221
2155
  },
2222
2156
  {
2223
2157
  "kind": "field",
2224
- "name": "#touched",
2158
+ "name": "#frame",
2225
2159
  "privacy": "private",
2226
2160
  "type": {
2227
- "text": "boolean"
2161
+ "text": "number"
2228
2162
  },
2229
- "default": "false"
2163
+ "default": "0"
2230
2164
  },
2231
2165
  {
2232
2166
  "kind": "field",
2233
- "name": "#reason",
2167
+ "name": "#closeReason",
2234
2168
  "privacy": "private",
2235
2169
  "type": {
2236
2170
  "text": "string"
2237
2171
  },
2238
- "default": "'api'"
2239
- },
2240
- {
2241
- "kind": "method",
2242
- "name": "show",
2243
- "description": "Opens the list."
2244
- },
2245
- {
2246
- "kind": "method",
2247
- "name": "hide",
2248
- "description": "Closes the list."
2172
+ "default": "''"
2249
2173
  },
2250
2174
  {
2251
- "kind": "method",
2252
- "name": "focus",
2253
- "parameters": [
2254
- {
2255
- "name": "options"
2256
- }
2257
- ],
2258
- "description": "Moves focus to the text input."
2175
+ "kind": "field",
2176
+ "name": "collapsed",
2177
+ "readonly": true,
2178
+ "type": {
2179
+ "text": "boolean"
2180
+ },
2181
+ "description": "The shell is narrower than `collapse-below` (read-only)."
2259
2182
  },
2260
2183
  {
2261
2184
  "kind": "method",
@@ -2267,377 +2190,320 @@
2267
2190
  },
2268
2191
  {
2269
2192
  "kind": "method",
2270
- "name": "formReset"
2271
- },
2272
- {
2273
- "kind": "method",
2274
- "name": "formRestore",
2193
+ "name": "update",
2275
2194
  "parameters": [
2276
2195
  {
2277
- "name": "state"
2196
+ "name": "changed"
2278
2197
  }
2279
2198
  ]
2280
2199
  },
2281
2200
  {
2282
2201
  "kind": "method",
2283
- "name": "#rows",
2284
- "privacy": "private",
2285
- "description": "Every row: the generated ones, then the `punica-option` children.",
2286
- "return": {
2287
- "type": {
2288
- "text": "any[]"
2289
- }
2290
- }
2202
+ "name": "refresh",
2203
+ "description": "A region that scrolls on its own is a tab stop while it overflows, so a\nkeyboard can scroll it even when nothing inside takes focus. Call after\nchanging the content in a way that changes whether it overflows."
2291
2204
  },
2292
2205
  {
2293
2206
  "kind": "method",
2294
- "name": "#rowFrom",
2295
- "privacy": "private",
2296
- "parameters": [
2297
- {
2298
- "name": "event"
2299
- }
2300
- ]
2207
+ "name": "#tabScrollers",
2208
+ "privacy": "private"
2301
2209
  },
2302
2210
  {
2303
2211
  "kind": "method",
2304
- "name": "#textFor",
2212
+ "name": "#setMain",
2305
2213
  "privacy": "private",
2306
- "parameters": [
2307
- {
2308
- "name": "value"
2309
- }
2310
- ],
2311
- "description": "The text shown for a value: its option's label, else the value itself."
2312
- },
2313
- {
2314
- "kind": "method",
2315
- "name": "update"
2214
+ "description": "A `<main>`, or a `<div>` while embedded, keeping its content."
2316
2215
  },
2317
2216
  {
2318
2217
  "kind": "method",
2319
- "name": "#close",
2320
- "privacy": "private",
2321
- "parameters": [
2322
- {
2323
- "name": "reason",
2324
- "type": {
2325
- "text": "string"
2326
- }
2327
- }
2328
- ]
2218
+ "name": "#measure",
2219
+ "privacy": "private"
2329
2220
  },
2330
2221
  {
2331
2222
  "kind": "method",
2332
- "name": "#commit",
2223
+ "name": "#isNarrow",
2333
2224
  "privacy": "private",
2334
2225
  "parameters": [
2335
2226
  {
2336
- "name": "value",
2227
+ "name": "width",
2337
2228
  "type": {
2338
- "text": "string | null"
2229
+ "text": "number"
2339
2230
  }
2340
2231
  }
2341
2232
  ]
2342
2233
  },
2343
2234
  {
2344
2235
  "kind": "method",
2345
- "name": "#pick",
2236
+ "name": "#setCollapsed",
2346
2237
  "privacy": "private",
2347
2238
  "parameters": [
2348
2239
  {
2349
- "name": "option",
2240
+ "name": "narrow",
2350
2241
  "type": {
2351
- "text": "any"
2242
+ "text": "boolean"
2352
2243
  }
2353
2244
  }
2354
2245
  ]
2355
2246
  },
2356
2247
  {
2357
2248
  "kind": "method",
2358
- "name": "#commitText",
2359
- "privacy": "private",
2360
- "description": "Takes what was typed: an option with that label, free text, or nothing."
2361
- },
2362
- {
2363
- "kind": "method",
2364
- "name": "#onKeydown",
2249
+ "name": "#trackHeader",
2365
2250
  "privacy": "private",
2366
- "parameters": [
2367
- {
2368
- "name": "event",
2369
- "type": {
2370
- "text": "KeyboardEvent"
2371
- }
2372
- }
2373
- ]
2374
- },
2375
- {
2376
- "type": {
2377
- "text": "string | null"
2378
- },
2379
- "description": "The current value.",
2380
- "name": "value",
2381
- "kind": "field"
2382
- },
2383
- {
2384
- "type": {
2385
- "text": "(string | { value: string, label?: string, disabled?: boolean })[] | null"
2386
- },
2387
- "description": "Suggestions given as data; shown before the `punica-option` children.",
2388
- "name": "options",
2389
- "kind": "field"
2251
+ "description": "Sticky regions and a skipped-to main stop under the header, not behind it."
2390
2252
  }
2391
2253
  ],
2392
2254
  "events": [
2393
2255
  {
2394
- "description": "The user typed. `detail.value` is the text in the input.",
2395
- "name": "punica-input"
2396
- },
2397
- {
2398
- "description": "The user picked an option, committed free text or cleared. `detail.value` is the new value.",
2399
- "name": "punica-change"
2400
- },
2401
- {
2402
- "description": "The list opened.",
2256
+ "description": "The navigation drawer opened.",
2403
2257
  "name": "punica-open"
2404
2258
  },
2405
2259
  {
2406
- "description": "The list closed. `detail.reason` is `select`, `escape`, `outside`, `blur`, `empty` or `api`.",
2260
+ "description": "The navigation drawer closed. `detail` is `{ reason, returnValue }`; `reason` is `escape`, `backdrop`, `close-button`, `navigate`, `resize` (the shell grew past `collapse-below`) or `api`.",
2407
2261
  "name": "punica-close"
2408
2262
  }
2409
2263
  ],
2410
2264
  "attributes": [
2411
2265
  {
2412
2266
  "type": {
2413
- "text": "string"
2414
- },
2415
- "description": "Default value.",
2416
- "name": "value"
2417
- },
2418
- {
2419
- "type": {
2420
- "text": "string"
2267
+ "text": "boolean"
2421
2268
  },
2422
- "description": "Text shown while the field is empty.",
2423
- "name": "placeholder"
2269
+ "description": "The shell is as tall as `--punica-app-shell-height` and each region scrolls on its own.",
2270
+ "name": "fixed"
2424
2271
  },
2425
2272
  {
2426
2273
  "type": {
2427
- "text": "string"
2274
+ "text": "'small' | 'medium' | 'large' | 'none'"
2428
2275
  },
2429
- "description": "Accessible name.",
2430
- "name": "label"
2276
+ "description": "Width under which the navigation becomes a drawer: 600, 900 or 1200 px, `medium` (900 px) by default; `none` never collapses.",
2277
+ "name": "collapse-below"
2431
2278
  },
2432
2279
  {
2433
2280
  "type": {
2434
2281
  "text": "boolean"
2435
2282
  },
2436
- "description": "The list is showing, when it has rows to show.",
2437
- "name": "open"
2283
+ "description": "The shell is part of a page that has its own `<main>`: the content area is a plain element, not a second main landmark.",
2284
+ "name": "embedded"
2438
2285
  },
2439
2286
  {
2440
2287
  "type": {
2441
2288
  "text": "boolean"
2442
2289
  },
2443
- "description": "Text that matches no option is taken as the value.",
2444
- "name": "free-text"
2290
+ "description": "The navigation drawer is showing; only while collapsed.",
2291
+ "name": "nav-open"
2445
2292
  },
2446
2293
  {
2447
2294
  "type": {
2448
- "text": "boolean"
2295
+ "text": "string"
2449
2296
  },
2450
- "description": "The list is shown as given; for options already filtered by a server.",
2451
- "name": "no-filter"
2297
+ "description": "Accessible name of the menu button, `Menu` by default.",
2298
+ "name": "label-menu"
2452
2299
  },
2453
2300
  {
2454
2301
  "type": {
2455
- "text": "boolean"
2302
+ "text": "string"
2456
2303
  },
2457
- "description": "Shows a button that empties the value.",
2458
- "name": "clearable"
2304
+ "description": "Accessible name of the navigation drawer, `Navigation` by default.",
2305
+ "name": "label-nav"
2459
2306
  },
2460
2307
  {
2461
2308
  "type": {
2462
2309
  "text": "string"
2463
2310
  },
2464
- "description": "Name the value is submitted under.",
2465
- "name": "name"
2311
+ "description": "Text of the skip link, `Skip to content` by default.",
2312
+ "name": "label-skip"
2466
2313
  },
2467
2314
  {
2468
2315
  "type": {
2469
- "text": "boolean"
2316
+ "text": "string"
2470
2317
  },
2471
- "description": "Takes no input and submits nothing.",
2472
- "name": "disabled"
2473
- },
2318
+ "description": "Accessible name of the drawer's close button, `Close` by default.",
2319
+ "name": "label-close"
2320
+ }
2321
+ ],
2322
+ "cssStates": [
2474
2323
  {
2475
- "type": {
2476
- "text": "boolean"
2477
- },
2478
- "description": "Shows its value and takes no input.",
2479
- "name": "readonly"
2324
+ "description": "The shell is narrower than `collapse-below`.",
2325
+ "name": "collapsed"
2480
2326
  },
2481
2327
  {
2482
- "type": {
2483
- "text": "boolean"
2484
- },
2485
- "description": "A value is needed before the form submits.",
2486
- "name": "required"
2487
- },
2328
+ "description": "There is content in the `nav` slot.",
2329
+ "name": "has-nav"
2330
+ }
2331
+ ],
2332
+ "superclass": {
2333
+ "name": "PunicaElement",
2334
+ "module": "/src/core/element.js"
2335
+ },
2336
+ "tagName": "punica-app-shell",
2337
+ "customElement": true
2338
+ }
2339
+ ],
2340
+ "exports": [
2341
+ {
2342
+ "kind": "js",
2343
+ "name": "PunicaAppShell",
2344
+ "declaration": {
2345
+ "name": "PunicaAppShell",
2346
+ "module": "src/components/appShell/appShell.js"
2347
+ }
2348
+ }
2349
+ ]
2350
+ },
2351
+ {
2352
+ "kind": "javascript-module",
2353
+ "path": "src/components/aspectRatio/aspectRatio.js",
2354
+ "declarations": [
2355
+ {
2356
+ "kind": "class",
2357
+ "description": "Keeps its content at a fixed ratio of inline to block size.",
2358
+ "name": "PunicaAspectRatio",
2359
+ "cssProperties": [
2488
2360
  {
2489
- "type": {
2490
- "text": "'small' | 'medium' | 'large'"
2491
- },
2492
- "description": "Control height, `medium` by default.",
2493
- "name": "size"
2494
- },
2361
+ "description": "`object-fit` of the content, `cover` by default.",
2362
+ "name": "--punica-aspect-ratio-fit"
2363
+ }
2364
+ ],
2365
+ "slots": [
2495
2366
  {
2367
+ "description": "The content, an image, video or frame; it fills the box.",
2368
+ "name": ""
2369
+ }
2370
+ ],
2371
+ "members": [
2372
+ {
2373
+ "kind": "field",
2374
+ "name": "properties",
2496
2375
  "type": {
2497
- "text": "boolean"
2376
+ "text": "object"
2498
2377
  },
2499
- "description": "Fills its container's inline size.",
2500
- "name": "full-width"
2378
+ "static": true,
2379
+ "default": "{ ratio: {} }"
2501
2380
  },
2502
2381
  {
2503
- "type": {
2504
- "text": "string"
2505
- },
2506
- "description": "Name of the clear button, `Clear` by default.",
2507
- "name": "label-clear"
2508
- }
2509
- ],
2510
- "cssStates": [
2382
+ "kind": "field",
2383
+ "name": "styles",
2384
+ "static": true,
2385
+ "default": "styles"
2386
+ },
2511
2387
  {
2512
- "description": "The list is showing.",
2513
- "name": "open"
2388
+ "kind": "field",
2389
+ "name": "template",
2390
+ "static": true,
2391
+ "default": "`<slot></slot>`"
2514
2392
  },
2515
2393
  {
2516
- "description": "Disabled by itself or by a fieldset.",
2517
- "name": "disabled"
2394
+ "kind": "field",
2395
+ "name": "#style",
2396
+ "privacy": "private"
2518
2397
  },
2519
2398
  {
2520
- "description": "Invalid after the user touched it.",
2521
- "name": "user-invalid"
2399
+ "kind": "method",
2400
+ "name": "update"
2522
2401
  }
2523
2402
  ],
2524
- "mixins": [
2403
+ "attributes": [
2525
2404
  {
2526
- "name": "FormControl",
2527
- "module": "/src/core/form.js"
2405
+ "type": {
2406
+ "text": "string"
2407
+ },
2408
+ "description": "`inline/block` as two positive numbers (`16/9`), or one number; `1/1` by default and for anything else.",
2409
+ "name": "ratio"
2528
2410
  }
2529
2411
  ],
2530
2412
  "superclass": {
2531
2413
  "name": "PunicaElement",
2532
2414
  "module": "/src/core/element.js"
2533
2415
  },
2534
- "tagName": "punica-autocomplete",
2416
+ "tagName": "punica-aspect-ratio",
2535
2417
  "customElement": true
2536
2418
  }
2537
2419
  ],
2538
2420
  "exports": [
2539
2421
  {
2540
2422
  "kind": "js",
2541
- "name": "PunicaAutocomplete",
2423
+ "name": "PunicaAspectRatio",
2542
2424
  "declaration": {
2543
- "name": "PunicaAutocomplete",
2544
- "module": "src/components/autocomplete/autocomplete.js"
2425
+ "name": "PunicaAspectRatio",
2426
+ "module": "src/components/aspectRatio/aspectRatio.js"
2545
2427
  }
2546
2428
  }
2547
2429
  ]
2548
2430
  },
2549
2431
  {
2550
2432
  "kind": "javascript-module",
2551
- "path": "src/components/appShell/appShell.js",
2433
+ "path": "src/components/autocomplete/autocomplete.js",
2552
2434
  "declarations": [
2553
2435
  {
2554
2436
  "kind": "class",
2555
- "description": "The frame of an app's page: a header across the top, the navigation down\nthe side, the main content, a secondary panel and a footer.\n\nThe regions are a CSS grid. With `fixed` the shell is as tall as the\nviewport and each region scrolls on its own; without it the page scrolls\nand the header, the navigation and the panel stick. Narrower than\n`collapse-below`, the navigation leaves the side for a drawer opened by a\nmenu button at the start of the header, and the panel moves under the\nmain content. The width is the shell's own, not the window's, so a shell\nin a pane collapses with the pane.\n\nThe main content is in a native `<main>` landmark, unless `embedded` says\nthe shell is a part of a larger page that has its own; a \"skip to\ncontent\" button is the first thing in the tab order.",
2556
- "name": "PunicaAppShell",
2437
+ "description": "A text input that suggests values as the user types: an editable combobox\nwith list autocomplete.\n\nThe suggestions are `punica-option` children, or the `options` array for\ndata that arrives later: listen for `punica-input`, fetch, and assign\n`options`. The value is the picked option's `value`; with `free-text`, any\ntyped text is a value too.",
2438
+ "name": "PunicaAutocomplete",
2557
2439
  "cssProperties": [
2558
2440
  {
2559
- "description": "Block size while `fixed`, `100dvh` by default.",
2560
- "name": "--punica-app-shell-height"
2561
- },
2562
- {
2563
- "description": "Inline size of the navigation region.",
2564
- "name": "--punica-app-shell-nav-width"
2441
+ "description": "Corner radius of the field.",
2442
+ "name": "--punica-autocomplete-radius"
2565
2443
  },
2566
2444
  {
2567
- "description": "Inline size of the panel region.",
2568
- "name": "--punica-app-shell-aside-width"
2445
+ "description": "Minimum block size of the field.",
2446
+ "name": "--punica-autocomplete-height"
2569
2447
  },
2570
2448
  {
2571
- "description": "Background of the main content.",
2572
- "name": "--punica-app-shell-background"
2449
+ "description": "Inline padding of the field.",
2450
+ "name": "--punica-autocomplete-padding"
2573
2451
  },
2574
2452
  {
2575
- "description": "Padding of the main content.",
2576
- "name": "--punica-app-shell-padding"
2577
- }
2578
- ],
2579
- "cssParts": [
2580
- {
2581
- "description": "The grid.",
2582
- "name": "base"
2453
+ "description": "Border colour at rest.",
2454
+ "name": "--punica-autocomplete-border-color"
2583
2455
  },
2584
2456
  {
2585
- "description": "The skip-to-content button.",
2586
- "name": "skip-link"
2457
+ "description": "Field background.",
2458
+ "name": "--punica-autocomplete-background"
2587
2459
  },
2588
2460
  {
2589
- "description": "The header region.",
2590
- "name": "header"
2461
+ "description": "Smallest inline size.",
2462
+ "name": "--punica-autocomplete-min-width"
2591
2463
  },
2592
2464
  {
2593
- "description": "The start of the header holding the menu button, shown while collapsed; it draws the header's bottom line under the button.",
2594
- "name": "menu-cell"
2595
- },
2465
+ "description": "Largest block size of the list.",
2466
+ "name": "--punica-autocomplete-listbox-max-height"
2467
+ }
2468
+ ],
2469
+ "cssParts": [
2596
2470
  {
2597
- "description": "The button that opens the navigation drawer.",
2598
- "name": "menu-button"
2471
+ "description": "The bordered box.",
2472
+ "name": "field"
2599
2473
  },
2600
2474
  {
2601
- "description": "The navigation region.",
2602
- "name": "nav"
2475
+ "description": "The text input, a combobox.",
2476
+ "name": "input"
2603
2477
  },
2604
2478
  {
2605
- "description": "The native `<main>` (a `<div>` while `embedded`).",
2606
- "name": "main"
2479
+ "description": "The clear button.",
2480
+ "name": "clear"
2607
2481
  },
2608
2482
  {
2609
- "description": "The panel region.",
2610
- "name": "aside"
2483
+ "description": "The floating list.",
2484
+ "name": "listbox"
2611
2485
  },
2612
2486
  {
2613
- "description": "The footer region.",
2614
- "name": "footer"
2487
+ "description": "Each row made from `options`.",
2488
+ "name": "option"
2615
2489
  },
2616
2490
  {
2617
- "description": "The `punica-mobile-nav` the navigation moves into.",
2618
- "name": "drawer"
2491
+ "description": "With `show-value`, the label beside a row's value.",
2492
+ "name": "option-label"
2619
2493
  }
2620
2494
  ],
2621
2495
  "slots": [
2622
2496
  {
2623
- "description": "The main content, inside the `<main>` landmark.",
2497
+ "description": "The `punica-option` rows.",
2624
2498
  "name": ""
2625
2499
  },
2626
2500
  {
2627
- "description": "Across the top: a `punica-top-nav`, a `punica-app-bar`.",
2628
- "name": "header"
2629
- },
2630
- {
2631
- "description": "Down the inline-start side, in a drawer while collapsed: a `punica-side-nav`.",
2632
- "name": "nav"
2633
- },
2634
- {
2635
- "description": "A secondary panel at the inline-end side, under the main content while collapsed.",
2636
- "name": "aside"
2501
+ "description": "Content before the input, an icon.",
2502
+ "name": "start"
2637
2503
  },
2638
2504
  {
2639
- "description": "Under the main content and the panel.",
2640
- "name": "footer"
2505
+ "description": "Content after the input.",
2506
+ "name": "end"
2641
2507
  }
2642
2508
  ],
2643
2509
  "members": [
@@ -2648,129 +2514,187 @@
2648
2514
  "text": "object"
2649
2515
  },
2650
2516
  "static": true,
2651
- "default": "{ fixed: { type: Boolean }, embedded: { type: Boolean }, collapseBelow: { default: 'medium' }, navOpen: { type: Boolean }, labelMenu: { default: 'Menu' }, labelNav: { default: 'Navigation' }, labelSkip: { default: 'Skip to content' }, labelClose: { default: 'Close' } }"
2517
+ "default": "{ value: { reflect: false }, placeholder: {}, label: {}, open: { type: Boolean }, freeText: { type: Boolean }, noFilter: { type: Boolean }, clearable: { type: Boolean }, readonly: { type: Boolean }, size: {}, fullWidth: { type: Boolean }, labelClear: { default: 'Clear' }, showValue: { type: Boolean }, options: { type: Array, attribute: false } }"
2652
2518
  },
2653
2519
  {
2654
2520
  "kind": "field",
2655
2521
  "name": "styles",
2522
+ "type": {
2523
+ "text": "array"
2524
+ },
2656
2525
  "static": true,
2657
- "default": "styles"
2526
+ "default": "[overlayCss, fieldStyles, styles]"
2658
2527
  },
2659
2528
  {
2660
2529
  "kind": "field",
2661
- "name": "template",
2530
+ "name": "shadowOptions",
2531
+ "type": {
2532
+ "text": "object"
2533
+ },
2662
2534
  "static": true,
2663
- "default": "` <div part=\"base\" class=\"base\"> <button part=\"skip-link\" class=\"skip\" type=\"button\"></button> <div part=\"header\" class=\"header\"> <div part=\"menu-cell\" class=\"menu-cell\"> <punica-mobile-nav part=\"drawer\" class=\"drawer\"> <button slot=\"trigger\" part=\"menu-button\" class=\"menu\" type=\"button\">${MENU_ICON}</button> </punica-mobile-nav> </div> <div class=\"header-content\"><slot name=\"header\"></slot></div> </div> <div part=\"nav\" class=\"nav\"><div class=\"nav-inner\"><slot name=\"nav\"></slot></div></div> <main part=\"main\" class=\"main\" tabindex=\"-1\"><slot></slot></main> <div part=\"aside\" class=\"aside\"><div class=\"aside-inner\"><slot name=\"aside\"></slot></div></div> <div part=\"footer\" class=\"footer\"><slot name=\"footer\"></slot></div> </div> `"
2664
- },
2665
- {
2666
- "kind": "field",
2667
- "name": "#base",
2668
- "privacy": "private"
2535
+ "default": "{ delegatesFocus: true }"
2669
2536
  },
2670
2537
  {
2671
2538
  "kind": "field",
2672
- "name": "#skip",
2673
- "privacy": "private"
2539
+ "name": "template",
2540
+ "static": true,
2541
+ "default": "` <div part=\"field\" class=\"field\"> <slot name=\"start\"></slot> <input part=\"input\" class=\"control\" type=\"text\" role=\"combobox\" aria-autocomplete=\"list\" aria-haspopup=\"listbox\" aria-controls=\"listbox\" aria-expanded=\"false\" autocomplete=\"off\" autocapitalize=\"off\" spellcheck=\"false\"> <button part=\"clear\" class=\"icon-button\" type=\"button\" hidden>${icons.close}</button> <slot name=\"end\"></slot> </div> <div part=\"listbox\" id=\"listbox\" class=\"panel listbox\" role=\"listbox\" popover=\"manual\"><slot></slot></div> `"
2674
2542
  },
2675
2543
  {
2676
2544
  "kind": "field",
2677
- "name": "#header",
2545
+ "name": "#field",
2678
2546
  "privacy": "private"
2679
2547
  },
2680
2548
  {
2681
2549
  "kind": "field",
2682
- "name": "#navRegion",
2550
+ "name": "#input",
2683
2551
  "privacy": "private"
2684
2552
  },
2685
2553
  {
2686
2554
  "kind": "field",
2687
- "name": "#navInner",
2555
+ "name": "#clear",
2688
2556
  "privacy": "private"
2689
2557
  },
2690
2558
  {
2691
2559
  "kind": "field",
2692
- "name": "#menuCell",
2560
+ "name": "#listbox",
2693
2561
  "privacy": "private"
2694
2562
  },
2695
2563
  {
2696
2564
  "kind": "field",
2697
- "name": "#main",
2565
+ "name": "#slot",
2698
2566
  "privacy": "private"
2699
2567
  },
2700
2568
  {
2701
2569
  "kind": "field",
2702
- "name": "#aside",
2703
- "privacy": "private"
2570
+ "name": "#surface",
2571
+ "privacy": "private",
2572
+ "default": "new FieldSurface(this, this.#listbox)"
2704
2573
  },
2705
2574
  {
2706
2575
  "kind": "field",
2707
- "name": "#asideInner",
2708
- "privacy": "private"
2576
+ "name": "#nav",
2577
+ "privacy": "private",
2578
+ "default": "new OptionNavigator(this.#input, () => this.#rows())"
2709
2579
  },
2710
2580
  {
2711
2581
  "kind": "field",
2712
- "name": "#drawer",
2582
+ "name": "#generated",
2713
2583
  "privacy": "private",
2714
- "default": "(this.$('punica-mobile-nav'))"
2584
+ "type": {
2585
+ "text": "any[]"
2586
+ },
2587
+ "default": "[]",
2588
+ "description": "Rows made from the `options` property."
2715
2589
  },
2716
2590
  {
2717
2591
  "kind": "field",
2718
- "name": "#menu",
2719
- "privacy": "private"
2592
+ "name": "#generatedFrom",
2593
+ "privacy": "private",
2594
+ "type": {
2595
+ "text": "unknown"
2596
+ },
2597
+ "default": "null",
2598
+ "description": "The array those rows were made from."
2720
2599
  },
2721
2600
  {
2722
2601
  "kind": "field",
2723
- "name": "#slots",
2602
+ "name": "#generatedShow",
2724
2603
  "privacy": "private",
2725
2604
  "type": {
2726
- "text": "object"
2605
+ "text": "boolean"
2727
2606
  },
2728
- "default": "{ header: this.$('slot[name=\"header\"]'), nav: this.$('slot[name=\"nav\"]'), aside: this.$('slot[name=\"aside\"]'), footer: this.$('slot[name=\"footer\"]') }"
2607
+ "default": "false",
2608
+ "description": "The `showValue` those rows were made for."
2729
2609
  },
2730
2610
  {
2731
2611
  "kind": "field",
2732
- "name": "#collapsed",
2612
+ "name": "#typed",
2733
2613
  "privacy": "private",
2734
2614
  "type": {
2735
- "text": "boolean"
2615
+ "text": "string | null"
2736
2616
  },
2737
- "default": "false"
2617
+ "default": "null",
2618
+ "description": "What the user typed since the last commit; null while the text is the value's own."
2738
2619
  },
2739
2620
  {
2740
2621
  "kind": "field",
2741
- "name": "#resize",
2622
+ "name": "#textKey",
2742
2623
  "privacy": "private",
2743
2624
  "type": {
2744
- "text": "ResizeObserver | null"
2625
+ "text": "string | null"
2745
2626
  },
2746
- "default": "null"
2627
+ "default": "null",
2628
+ "description": "What the input's text was last written from."
2747
2629
  },
2748
2630
  {
2749
2631
  "kind": "field",
2750
- "name": "#frame",
2632
+ "name": "#touched",
2751
2633
  "privacy": "private",
2752
2634
  "type": {
2753
- "text": "number"
2635
+ "text": "boolean"
2754
2636
  },
2755
- "default": "0"
2637
+ "default": "false"
2756
2638
  },
2757
2639
  {
2758
2640
  "kind": "field",
2759
- "name": "#closeReason",
2641
+ "name": "#reason",
2760
2642
  "privacy": "private",
2761
2643
  "type": {
2762
2644
  "text": "string"
2763
2645
  },
2764
- "default": "''"
2646
+ "default": "'api'"
2765
2647
  },
2766
2648
  {
2767
- "kind": "field",
2768
- "name": "collapsed",
2769
- "readonly": true,
2770
- "type": {
2771
- "text": "boolean"
2772
- },
2773
- "description": "The shell is narrower than `collapse-below` (read-only)."
2649
+ "kind": "method",
2650
+ "name": "show",
2651
+ "description": "Opens the list."
2652
+ },
2653
+ {
2654
+ "kind": "method",
2655
+ "name": "hide",
2656
+ "description": "Closes the list."
2657
+ },
2658
+ {
2659
+ "kind": "method",
2660
+ "name": "focus",
2661
+ "parameters": [
2662
+ {
2663
+ "name": "options"
2664
+ }
2665
+ ],
2666
+ "description": "Moves focus to the text input."
2667
+ },
2668
+ {
2669
+ "kind": "method",
2670
+ "name": "select",
2671
+ "description": "Selects all the text in the field, as punica-input and a native input do."
2672
+ },
2673
+ {
2674
+ "kind": "method",
2675
+ "name": "setSelectionRange",
2676
+ "parameters": [
2677
+ {
2678
+ "name": "start",
2679
+ "type": {
2680
+ "text": "number"
2681
+ }
2682
+ },
2683
+ {
2684
+ "name": "end",
2685
+ "type": {
2686
+ "text": "number"
2687
+ }
2688
+ },
2689
+ {
2690
+ "name": "direction",
2691
+ "optional": true,
2692
+ "type": {
2693
+ "text": "'forward' | 'backward' | 'none'"
2694
+ }
2695
+ }
2696
+ ],
2697
+ "description": "Selects a range of the text in the field, as punica-input and a native input do: a page that writes a value with a\npart to fill in (`$item.<field>`) selects that part for the person to type over."
2774
2698
  },
2775
2699
  {
2776
2700
  "kind": "method",
@@ -2782,160 +2706,288 @@
2782
2706
  },
2783
2707
  {
2784
2708
  "kind": "method",
2785
- "name": "update",
2709
+ "name": "formReset"
2710
+ },
2711
+ {
2712
+ "kind": "method",
2713
+ "name": "formRestore",
2786
2714
  "parameters": [
2787
2715
  {
2788
- "name": "changed"
2716
+ "name": "state"
2789
2717
  }
2790
2718
  ]
2791
2719
  },
2792
2720
  {
2793
2721
  "kind": "method",
2794
- "name": "refresh",
2795
- "description": "A region that scrolls on its own is a tab stop while it overflows, so a\nkeyboard can scroll it even when nothing inside takes focus. Call after\nchanging the content in a way that changes whether it overflows."
2722
+ "name": "#rows",
2723
+ "privacy": "private",
2724
+ "description": "Every row: the generated ones, then the `punica-option` children.",
2725
+ "return": {
2726
+ "type": {
2727
+ "text": "any[]"
2728
+ }
2729
+ }
2796
2730
  },
2797
2731
  {
2798
2732
  "kind": "method",
2799
- "name": "#tabScrollers",
2800
- "privacy": "private"
2733
+ "name": "#rowFrom",
2734
+ "privacy": "private",
2735
+ "parameters": [
2736
+ {
2737
+ "name": "event"
2738
+ }
2739
+ ]
2801
2740
  },
2802
2741
  {
2803
2742
  "kind": "method",
2804
- "name": "#setMain",
2743
+ "name": "#textFor",
2805
2744
  "privacy": "private",
2806
- "description": "A `<main>`, or a `<div>` while embedded, keeping its content."
2745
+ "parameters": [
2746
+ {
2747
+ "name": "value"
2748
+ }
2749
+ ],
2750
+ "description": "The text shown for a value: its option's label, else the value itself (always the value with `show-value`)."
2807
2751
  },
2808
2752
  {
2809
2753
  "kind": "method",
2810
- "name": "#measure",
2811
- "privacy": "private"
2754
+ "name": "update"
2812
2755
  },
2813
2756
  {
2814
2757
  "kind": "method",
2815
- "name": "#isNarrow",
2758
+ "name": "#close",
2816
2759
  "privacy": "private",
2817
2760
  "parameters": [
2818
2761
  {
2819
- "name": "width",
2762
+ "name": "reason",
2820
2763
  "type": {
2821
- "text": "number"
2764
+ "text": "string"
2822
2765
  }
2823
2766
  }
2824
2767
  ]
2825
2768
  },
2826
2769
  {
2827
2770
  "kind": "method",
2828
- "name": "#setCollapsed",
2771
+ "name": "#commit",
2829
2772
  "privacy": "private",
2830
2773
  "parameters": [
2831
2774
  {
2832
- "name": "narrow",
2775
+ "name": "value",
2833
2776
  "type": {
2834
- "text": "boolean"
2777
+ "text": "string | null"
2835
2778
  }
2836
2779
  }
2837
2780
  ]
2838
2781
  },
2839
2782
  {
2840
2783
  "kind": "method",
2841
- "name": "#trackHeader",
2784
+ "name": "#pick",
2842
2785
  "privacy": "private",
2843
- "description": "Sticky regions and a skipped-to main stop under the header, not behind it."
2786
+ "parameters": [
2787
+ {
2788
+ "name": "option",
2789
+ "type": {
2790
+ "text": "any"
2791
+ }
2792
+ }
2793
+ ]
2794
+ },
2795
+ {
2796
+ "kind": "method",
2797
+ "name": "#commitText",
2798
+ "privacy": "private",
2799
+ "description": "Takes what was typed: an option with that label, free text, or nothing."
2800
+ },
2801
+ {
2802
+ "kind": "method",
2803
+ "name": "#onKeydown",
2804
+ "privacy": "private",
2805
+ "parameters": [
2806
+ {
2807
+ "name": "event",
2808
+ "type": {
2809
+ "text": "KeyboardEvent"
2810
+ }
2811
+ }
2812
+ ]
2813
+ },
2814
+ {
2815
+ "type": {
2816
+ "text": "string | null"
2817
+ },
2818
+ "description": "The current value.",
2819
+ "name": "value",
2820
+ "kind": "field"
2821
+ },
2822
+ {
2823
+ "type": {
2824
+ "text": "(string | { value: string, label?: string, disabled?: boolean })[] | null"
2825
+ },
2826
+ "description": "Suggestions given as data; shown before the `punica-option` children.",
2827
+ "name": "options",
2828
+ "kind": "field"
2844
2829
  }
2845
2830
  ],
2846
2831
  "events": [
2847
2832
  {
2848
- "description": "The navigation drawer opened.",
2833
+ "description": "The user typed. `detail.value` is the text in the input.",
2834
+ "name": "punica-input"
2835
+ },
2836
+ {
2837
+ "description": "The user picked an option, committed free text or cleared. `detail.value` is the new value.",
2838
+ "name": "punica-change"
2839
+ },
2840
+ {
2841
+ "description": "The list opened.",
2849
2842
  "name": "punica-open"
2850
2843
  },
2851
2844
  {
2852
- "description": "The navigation drawer closed. `detail` is `{ reason, returnValue }`; `reason` is `escape`, `backdrop`, `close-button`, `navigate`, `resize` (the shell grew past `collapse-below`) or `api`.",
2845
+ "description": "The list closed. `detail.reason` is `select`, `escape`, `outside`, `blur`, `empty` or `api`.",
2853
2846
  "name": "punica-close"
2854
2847
  }
2855
2848
  ],
2856
2849
  "attributes": [
2850
+ {
2851
+ "type": {
2852
+ "text": "string"
2853
+ },
2854
+ "description": "Default value.",
2855
+ "name": "value"
2856
+ },
2857
+ {
2858
+ "type": {
2859
+ "text": "string"
2860
+ },
2861
+ "description": "Text shown while the field is empty.",
2862
+ "name": "placeholder"
2863
+ },
2864
+ {
2865
+ "type": {
2866
+ "text": "string"
2867
+ },
2868
+ "description": "Accessible name.",
2869
+ "name": "label"
2870
+ },
2857
2871
  {
2858
2872
  "type": {
2859
2873
  "text": "boolean"
2860
2874
  },
2861
- "description": "The shell is as tall as `--punica-app-shell-height` and each region scrolls on its own.",
2862
- "name": "fixed"
2875
+ "description": "The list is showing, when it has rows to show.",
2876
+ "name": "open"
2863
2877
  },
2864
2878
  {
2865
2879
  "type": {
2866
- "text": "'small' | 'medium' | 'large' | 'none'"
2880
+ "text": "boolean"
2867
2881
  },
2868
- "description": "Width under which the navigation becomes a drawer: 600, 900 or 1200 px, `medium` (900 px) by default; `none` never collapses.",
2869
- "name": "collapse-below"
2882
+ "description": "Text that matches no option is taken as the value.",
2883
+ "name": "free-text"
2870
2884
  },
2871
2885
  {
2872
2886
  "type": {
2873
2887
  "text": "boolean"
2874
2888
  },
2875
- "description": "The shell is part of a page that has its own `<main>`: the content area is a plain element, not a second main landmark.",
2876
- "name": "embedded"
2889
+ "description": "The list is shown as given; for options already filtered by a server.",
2890
+ "name": "no-filter"
2877
2891
  },
2878
2892
  {
2879
2893
  "type": {
2880
2894
  "text": "boolean"
2881
2895
  },
2882
- "description": "The navigation drawer is showing; only while collapsed.",
2883
- "name": "nav-open"
2896
+ "description": "The field shows a picked option's value instead of its label, as a native input with a `<datalist>` does: typing finds an option by its value or its label, and a row from `options` shows the value with the label beside it (an account's number and name).",
2897
+ "name": "show-value"
2884
2898
  },
2885
2899
  {
2886
2900
  "type": {
2887
- "text": "string"
2901
+ "text": "boolean"
2888
2902
  },
2889
- "description": "Accessible name of the menu button, `Menu` by default.",
2890
- "name": "label-menu"
2903
+ "description": "Shows a button that empties the value.",
2904
+ "name": "clearable"
2891
2905
  },
2892
2906
  {
2893
2907
  "type": {
2894
2908
  "text": "string"
2895
2909
  },
2896
- "description": "Accessible name of the navigation drawer, `Navigation` by default.",
2897
- "name": "label-nav"
2910
+ "description": "Name the value is submitted under.",
2911
+ "name": "name"
2898
2912
  },
2899
2913
  {
2900
2914
  "type": {
2901
- "text": "string"
2915
+ "text": "boolean"
2902
2916
  },
2903
- "description": "Text of the skip link, `Skip to content` by default.",
2904
- "name": "label-skip"
2917
+ "description": "Takes no input and submits nothing.",
2918
+ "name": "disabled"
2919
+ },
2920
+ {
2921
+ "type": {
2922
+ "text": "boolean"
2923
+ },
2924
+ "description": "Shows its value and takes no input.",
2925
+ "name": "readonly"
2926
+ },
2927
+ {
2928
+ "type": {
2929
+ "text": "boolean"
2930
+ },
2931
+ "description": "A value is needed before the form submits.",
2932
+ "name": "required"
2933
+ },
2934
+ {
2935
+ "type": {
2936
+ "text": "'small' | 'medium' | 'large'"
2937
+ },
2938
+ "description": "Control height, `medium` by default.",
2939
+ "name": "size"
2940
+ },
2941
+ {
2942
+ "type": {
2943
+ "text": "boolean"
2944
+ },
2945
+ "description": "Fills its container's inline size.",
2946
+ "name": "full-width"
2905
2947
  },
2906
2948
  {
2907
2949
  "type": {
2908
2950
  "text": "string"
2909
2951
  },
2910
- "description": "Accessible name of the drawer's close button, `Close` by default.",
2911
- "name": "label-close"
2952
+ "description": "Name of the clear button, `Clear` by default.",
2953
+ "name": "label-clear"
2912
2954
  }
2913
2955
  ],
2914
2956
  "cssStates": [
2915
2957
  {
2916
- "description": "The shell is narrower than `collapse-below`.",
2917
- "name": "collapsed"
2958
+ "description": "The list is showing.",
2959
+ "name": "open"
2918
2960
  },
2919
2961
  {
2920
- "description": "There is content in the `nav` slot.",
2921
- "name": "has-nav"
2962
+ "description": "Disabled by itself or by a fieldset.",
2963
+ "name": "disabled"
2964
+ },
2965
+ {
2966
+ "description": "Invalid after the user touched it.",
2967
+ "name": "user-invalid"
2968
+ }
2969
+ ],
2970
+ "mixins": [
2971
+ {
2972
+ "name": "FormControl",
2973
+ "module": "/src/core/form.js"
2922
2974
  }
2923
2975
  ],
2924
2976
  "superclass": {
2925
2977
  "name": "PunicaElement",
2926
2978
  "module": "/src/core/element.js"
2927
2979
  },
2928
- "tagName": "punica-app-shell",
2980
+ "tagName": "punica-autocomplete",
2929
2981
  "customElement": true
2930
2982
  }
2931
2983
  ],
2932
2984
  "exports": [
2933
2985
  {
2934
2986
  "kind": "js",
2935
- "name": "PunicaAppShell",
2987
+ "name": "PunicaAutocomplete",
2936
2988
  "declaration": {
2937
- "name": "PunicaAppShell",
2938
- "module": "src/components/appShell/appShell.js"
2989
+ "name": "PunicaAutocomplete",
2990
+ "module": "src/components/autocomplete/autocomplete.js"
2939
2991
  }
2940
2992
  }
2941
2993
  ]
@@ -4984,7 +5036,7 @@
4984
5036
  "text": "object"
4985
5037
  },
4986
5038
  "static": true,
4987
- "default": "{ variant: {}, color: {}, size: {}, type: { default: 'button' }, loading: { type: Boolean }, pill: { type: Boolean }, fullWidth: { type: Boolean }, value: {}, label: {}, // ARIA a wrapper (a popover, a menu) writes on the host is passed to // the native button, which is what assistive technology reads. ariaExpanded: { attribute: 'aria-expanded', reflect: false }, ariaHasPopup: { attribute: 'aria-haspopup', reflect: false }, ariaControls: { attribute: 'aria-controls', reflect: false }, ariaPressed: { attribute: 'aria-pressed', reflect: false }, ariaDescription: { attribute: 'aria-description', reflect: false } }"
5039
+ "default": "{ variant: {}, color: {}, size: {}, type: { default: 'button' }, loading: { type: Boolean }, pill: { type: Boolean }, fullWidth: { type: Boolean }, value: {}, label: {}, // ARIA a wrapper (a popover, a menu) writes on the host is passed to // the native button, which is what assistive technology reads. ariaExpanded: { attribute: 'aria-expanded', reflect: false }, ariaHasPopup: { attribute: 'aria-haspopup', reflect: false }, ariaControls: { attribute: 'aria-controls', reflect: false }, ariaPressed: { attribute: 'aria-pressed', reflect: false }, ariaDescription: { attribute: 'aria-description', reflect: false }, // A name written on the host the usual way names the native button too; `label` wins when both are there. ariaLabel: { attribute: 'aria-label', reflect: false } }"
4988
5040
  },
4989
5041
  {
4990
5042
  "kind": "field",
@@ -5016,6 +5068,23 @@
5016
5068
  "kind": "method",
5017
5069
  "name": "update"
5018
5070
  },
5071
+ {
5072
+ "kind": "method",
5073
+ "name": "connected"
5074
+ },
5075
+ {
5076
+ "kind": "method",
5077
+ "name": "#onEnter",
5078
+ "privacy": "private",
5079
+ "parameters": [
5080
+ {
5081
+ "name": "event",
5082
+ "type": {
5083
+ "text": "KeyboardEvent"
5084
+ }
5085
+ }
5086
+ ]
5087
+ },
5019
5088
  {
5020
5089
  "kind": "method",
5021
5090
  "name": "focus",
@@ -5063,7 +5132,7 @@
5063
5132
  "type": {
5064
5133
  "text": "'button' | 'submit' | 'reset'"
5065
5134
  },
5066
- "description": "What a click does to the owning form, `button` by default.",
5135
+ "description": "What a click does to the owning form, `button` by default. The first submit button of a form is its default button: Enter in a native field of one line clicks it.",
5067
5136
  "name": "type"
5068
5137
  },
5069
5138
  {
@@ -5119,10 +5188,16 @@
5119
5188
  "type": {
5120
5189
  "text": "string"
5121
5190
  },
5122
- "description": "Accessible name, for a button with no text.",
5191
+ "description": "Accessible name, for a button with no text. An `aria-label` on the element names it too; `label` wins.",
5123
5192
  "name": "label"
5124
5193
  }
5125
5194
  ],
5195
+ "cssStates": [
5196
+ {
5197
+ "description": "The native button has focus the browser would show a ring for (the keyboard's). The element itself does not match `:focus-visible`; a page that draws the button with its own class puts its ring on the element with `punica-button.x:state(focus-visible)`.",
5198
+ "name": "focus-visible"
5199
+ }
5200
+ ],
5126
5201
  "mixins": [
5127
5202
  {
5128
5203
  "name": "FormControl",
@@ -6070,6 +6145,130 @@
6070
6145
  "text": "number | null"
6071
6146
  }
6072
6147
  }
6148
+ },
6149
+ {
6150
+ "kind": "function",
6151
+ "name": "parseIsoMonth",
6152
+ "parameters": [
6153
+ {
6154
+ "name": "text",
6155
+ "type": {
6156
+ "text": "string | null | undefined"
6157
+ }
6158
+ }
6159
+ ],
6160
+ "description": "Parses `yyyy-mm`.",
6161
+ "return": {
6162
+ "type": {
6163
+ "text": "CalendarMonth | null"
6164
+ }
6165
+ }
6166
+ },
6167
+ {
6168
+ "kind": "function",
6169
+ "name": "toIsoMonth",
6170
+ "parameters": [
6171
+ {
6172
+ "name": "month",
6173
+ "type": {
6174
+ "text": "CalendarMonth | null"
6175
+ }
6176
+ }
6177
+ ],
6178
+ "return": {
6179
+ "type": {
6180
+ "text": "string | null"
6181
+ }
6182
+ }
6183
+ },
6184
+ {
6185
+ "kind": "function",
6186
+ "name": "compareMonths",
6187
+ "parameters": [
6188
+ {
6189
+ "name": "a",
6190
+ "type": {
6191
+ "text": "CalendarMonth"
6192
+ }
6193
+ },
6194
+ {
6195
+ "name": "b",
6196
+ "type": {
6197
+ "text": "CalendarMonth"
6198
+ }
6199
+ }
6200
+ ],
6201
+ "return": {
6202
+ "type": {
6203
+ "text": "number"
6204
+ }
6205
+ }
6206
+ },
6207
+ {
6208
+ "kind": "function",
6209
+ "name": "shiftMonth",
6210
+ "parameters": [
6211
+ {
6212
+ "name": "month",
6213
+ "type": {
6214
+ "text": "CalendarMonth"
6215
+ }
6216
+ },
6217
+ {
6218
+ "name": "months",
6219
+ "type": {
6220
+ "text": "number"
6221
+ }
6222
+ }
6223
+ ],
6224
+ "return": {
6225
+ "type": {
6226
+ "text": "CalendarMonth"
6227
+ }
6228
+ }
6229
+ },
6230
+ {
6231
+ "kind": "function",
6232
+ "name": "formatFieldMonth",
6233
+ "parameters": [
6234
+ {
6235
+ "name": "language",
6236
+ "type": {
6237
+ "text": "string"
6238
+ }
6239
+ },
6240
+ {
6241
+ "name": "month",
6242
+ "type": {
6243
+ "text": "CalendarMonth | null"
6244
+ }
6245
+ }
6246
+ ],
6247
+ "description": "The text a month field shows: all-numeric, in the language's own order\n(`03/2026`, `03.2026`, `2026/03`)."
6248
+ },
6249
+ {
6250
+ "kind": "function",
6251
+ "name": "parseFieldMonth",
6252
+ "parameters": [
6253
+ {
6254
+ "name": "text",
6255
+ "type": {
6256
+ "text": "string"
6257
+ }
6258
+ },
6259
+ {
6260
+ "name": "language",
6261
+ "type": {
6262
+ "text": "string"
6263
+ }
6264
+ }
6265
+ ],
6266
+ "description": "Parses what a person typed: `yyyy-mm`, or a month and a year in the\nlanguage's own order with any separators. A number of three or four digits\nis the year wherever it stands; a two-digit year is this century.",
6267
+ "return": {
6268
+ "type": {
6269
+ "text": "CalendarMonth | null"
6270
+ }
6271
+ }
6073
6272
  }
6074
6273
  ],
6075
6274
  "exports": [
@@ -6232,6 +6431,54 @@
6232
6431
  "name": "parseFieldTime",
6233
6432
  "module": "src/components/calendar/dates.js"
6234
6433
  }
6434
+ },
6435
+ {
6436
+ "kind": "js",
6437
+ "name": "parseIsoMonth",
6438
+ "declaration": {
6439
+ "name": "parseIsoMonth",
6440
+ "module": "src/components/calendar/dates.js"
6441
+ }
6442
+ },
6443
+ {
6444
+ "kind": "js",
6445
+ "name": "toIsoMonth",
6446
+ "declaration": {
6447
+ "name": "toIsoMonth",
6448
+ "module": "src/components/calendar/dates.js"
6449
+ }
6450
+ },
6451
+ {
6452
+ "kind": "js",
6453
+ "name": "compareMonths",
6454
+ "declaration": {
6455
+ "name": "compareMonths",
6456
+ "module": "src/components/calendar/dates.js"
6457
+ }
6458
+ },
6459
+ {
6460
+ "kind": "js",
6461
+ "name": "shiftMonth",
6462
+ "declaration": {
6463
+ "name": "shiftMonth",
6464
+ "module": "src/components/calendar/dates.js"
6465
+ }
6466
+ },
6467
+ {
6468
+ "kind": "js",
6469
+ "name": "formatFieldMonth",
6470
+ "declaration": {
6471
+ "name": "formatFieldMonth",
6472
+ "module": "src/components/calendar/dates.js"
6473
+ }
6474
+ },
6475
+ {
6476
+ "kind": "js",
6477
+ "name": "parseFieldMonth",
6478
+ "declaration": {
6479
+ "name": "parseFieldMonth",
6480
+ "module": "src/components/calendar/dates.js"
6481
+ }
6235
6482
  }
6236
6483
  ]
6237
6484
  },
@@ -9226,7 +9473,7 @@
9226
9473
  "text": "object"
9227
9474
  },
9228
9475
  "static": true,
9229
- "default": "{ checked: { type: Boolean }, indeterminate: { type: Boolean }, value: { default: 'on' }, label: {}, color: {} }"
9476
+ "default": "{ // A name written on the element the usual way names the control too; `label` wins. ariaLabel: { attribute: 'aria-label', reflect: false }, checked: { type: Boolean }, indeterminate: { type: Boolean }, value: { default: 'on' }, label: {}, /** Read after the name by assistive technology; a punica-field around the control sets it. */ description: {}, color: {} }"
9230
9477
  },
9231
9478
  {
9232
9479
  "kind": "field",
@@ -9263,6 +9510,16 @@
9263
9510
  },
9264
9511
  "default": "{ checked: false, indeterminate: false }"
9265
9512
  },
9513
+ {
9514
+ "kind": "field",
9515
+ "name": "#touched",
9516
+ "privacy": "private",
9517
+ "type": {
9518
+ "text": "boolean"
9519
+ },
9520
+ "default": "false",
9521
+ "description": "Toggled by the user, or reported invalid."
9522
+ },
9266
9523
  {
9267
9524
  "kind": "method",
9268
9525
  "name": "update"
@@ -9344,7 +9601,7 @@
9344
9601
  "type": {
9345
9602
  "text": "string"
9346
9603
  },
9347
- "description": "Accessible name, for a checkbox with no text.",
9604
+ "description": "Accessible name, for a checkbox with no text. An `aria-label` on the element names it too; `label` wins.",
9348
9605
  "name": "label"
9349
9606
  },
9350
9607
  {
@@ -9361,6 +9618,13 @@
9361
9618
  "description": "Has to be ticked before the form submits.",
9362
9619
  "name": "required"
9363
9620
  },
9621
+ {
9622
+ "type": {
9623
+ "text": "string"
9624
+ },
9625
+ "description": "Read by assistive technology after the control's name; a `punica-field` around it sets it to its help and its error.",
9626
+ "name": "description"
9627
+ },
9364
9628
  {
9365
9629
  "type": {
9366
9630
  "text": "'primary' | 'secondary' | 'error' | 'warning' | 'info' | 'success' | 'neutral'"
@@ -9855,9 +10119,9 @@
9855
10119
  },
9856
10120
  {
9857
10121
  "type": {
9858
- "text": "'filled' | 'outlined'"
10122
+ "text": "'filled' | 'soft' | 'outlined'"
9859
10123
  },
9860
- "description": "Visual weight, `filled` by default.",
10124
+ "description": "Visual weight, `filled` by default; `soft` is a tint of the colour under its shade.",
9861
10125
  "name": "variant"
9862
10126
  },
9863
10127
  {
@@ -15646,6 +15910,24 @@
15646
15910
  "name": "#heading",
15647
15911
  "privacy": "private"
15648
15912
  },
15913
+ {
15914
+ "kind": "method",
15915
+ "name": "connected"
15916
+ },
15917
+ {
15918
+ "kind": "method",
15919
+ "name": "#fill",
15920
+ "privacy": "private",
15921
+ "parameters": [
15922
+ {
15923
+ "name": "name"
15924
+ },
15925
+ {
15926
+ "name": "slot"
15927
+ }
15928
+ ],
15929
+ "description": "Hides a part whose slot holds nothing but white space."
15930
+ },
15649
15931
  {
15650
15932
  "kind": "method",
15651
15933
  "name": "update"
@@ -15699,7 +15981,7 @@
15699
15981
  "declarations": [
15700
15982
  {
15701
15983
  "kind": "class",
15702
- "description": "A label, a help text and an error message around one form control.\n\nThe control goes in the default slot. A click on the label focuses it,\nand `label` becomes the control's accessible name unless the control\nalready has one. Once the control has been reported invalid (its\n`invalid` event fired: a submit, `reportValidity()` or `checkValidity()`)\nor the user left it while invalid, the field shows the control's\n`validationMessage` and keeps it up to date until the control is valid\nagain. `error` shows a message of your own at any time.",
15984
+ "description": "A label, a help text and an error message around one form control.\n\nThe control goes in the default slot. A click on the label focuses it,\nand `label` becomes the control's accessible name unless the control\nalready has one. Once the control has been reported invalid (its\n`invalid` event fired: a submit, `reportValidity()` or `checkValidity()`)\nor the user left it while invalid, the field shows the control's\n`validationMessage` and keeps it up to date until the control is valid\nagain. `error` shows a message of your own at any time. The help and the\nmessage shown are the control's description (its `description`, or\n`aria-description` on a native control), and an invalid control says so\n(`aria-invalid`) once touched.",
15703
15985
  "name": "PunicaField",
15704
15986
  "cssProperties": [
15705
15987
  {
@@ -15721,6 +16003,10 @@
15721
16003
  {
15722
16004
  "description": "Error text colour.",
15723
16005
  "name": "--punica-field-error-color"
16006
+ },
16007
+ {
16008
+ "description": "Line height of the label, the help and the error, 1.43 by default.",
16009
+ "name": "--punica-field-line-height"
15724
16010
  }
15725
16011
  ],
15726
16012
  "cssParts": [
@@ -15763,7 +16049,7 @@
15763
16049
  "text": "object"
15764
16050
  },
15765
16051
  "static": true,
15766
- "default": "{ label: {}, help: {}, error: {}, required: { type: Boolean } }"
16052
+ "default": "{ label: {}, help: {}, error: {}, required: { type: Boolean }, report: { default: 'browser' } }"
15767
16053
  },
15768
16054
  {
15769
16055
  "kind": "field",
@@ -15797,6 +16083,16 @@
15797
16083
  "default": "null",
15798
16084
  "description": "The control whose name this field wrote, so it can keep it current."
15799
16085
  },
16086
+ {
16087
+ "kind": "field",
16088
+ "name": "#described",
16089
+ "privacy": "private",
16090
+ "type": {
16091
+ "text": "null"
16092
+ },
16093
+ "default": "null",
16094
+ "description": "The control whose description this field wrote, so it can keep it current."
16095
+ },
15800
16096
  {
15801
16097
  "kind": "method",
15802
16098
  "name": "connected"
@@ -15833,6 +16129,20 @@
15833
16129
  "privacy": "private",
15834
16130
  "description": "Shows `error`, or the control's own message once it was touched."
15835
16131
  },
16132
+ {
16133
+ "kind": "method",
16134
+ "name": "#describe",
16135
+ "privacy": "private",
16136
+ "parameters": [
16137
+ {
16138
+ "name": "control"
16139
+ },
16140
+ {
16141
+ "name": "message"
16142
+ }
16143
+ ],
16144
+ "description": "Gives the control the field's help and error as its description, read\nafter its name, unless it has one of its own."
16145
+ },
15836
16146
  {
15837
16147
  "kind": "method",
15838
16148
  "name": "#later",
@@ -15868,6 +16178,13 @@
15868
16178
  },
15869
16179
  "description": "Shows the required mark; also shown when the control is `required`.",
15870
16180
  "name": "required"
16181
+ },
16182
+ {
16183
+ "type": {
16184
+ "text": "'browser' | 'inline'"
16185
+ },
16186
+ "description": "How a submit reports the control invalid: `browser` (default) leaves the browser's own bubble beside the field's message; `inline` shows the field's message alone and focuses the first invalid control of the submit, as the browser would.",
16187
+ "name": "report"
15871
16188
  }
15872
16189
  ],
15873
16190
  "cssStates": [
@@ -17808,7 +18125,7 @@
17808
18125
  "text": "object"
17809
18126
  },
17810
18127
  "static": true,
17811
- "default": "{ type: { default: 'text' }, value: { reflect: false, default: '' }, label: {}, placeholder: {}, readonly: { type: Boolean }, pattern: {}, minlength: { type: Number }, maxlength: { type: Number }, min: {}, max: {}, step: {}, autocomplete: {}, inputmode: {}, clearable: { type: Boolean }, labelClear: { default: 'Clear' }, size: {}, fullWidth: { type: Boolean } }"
18128
+ "default": "{ // A name written on the element the usual way names the control too; `label` wins. ariaLabel: { attribute: 'aria-label', reflect: false }, type: { default: 'text' }, value: { reflect: false, default: '' }, label: {}, /** Read after the name by assistive technology; a punica-field around the control sets it. */ description: {}, placeholder: {}, readonly: { type: Boolean }, pattern: {}, minlength: { type: Number }, maxlength: { type: Number }, min: {}, max: {}, step: {}, autocomplete: {}, inputmode: {}, clearable: { type: Boolean }, labelClear: { default: 'Clear' }, size: {}, fullWidth: { type: Boolean } }"
17812
18129
  },
17813
18130
  {
17814
18131
  "kind": "field",
@@ -17960,7 +18277,7 @@
17960
18277
  "type": {
17961
18278
  "text": "string"
17962
18279
  },
17963
- "description": "Accessible name, when no `<label>` points at the field.",
18280
+ "description": "Accessible name, when no `<label>` points at the field. An `aria-label` on the element names it too; `label` wins.",
17964
18281
  "name": "label"
17965
18282
  },
17966
18283
  {
@@ -17991,6 +18308,13 @@
17991
18308
  "description": "A value is needed before the form submits.",
17992
18309
  "name": "required"
17993
18310
  },
18311
+ {
18312
+ "type": {
18313
+ "text": "string"
18314
+ },
18315
+ "description": "Read by assistive technology after the control's name; a `punica-field` around it sets it to its help and its error.",
18316
+ "name": "description"
18317
+ },
17994
18318
  {
17995
18319
  "type": {
17996
18320
  "text": "string"
@@ -19199,6 +19523,12 @@
19199
19523
  "name": "label"
19200
19524
  }
19201
19525
  ],
19526
+ "cssStates": [
19527
+ {
19528
+ "description": "The native anchor has focus the browser would show a ring for (the keyboard's). The element itself does not match `:focus-visible`; a page that draws the link with its own class (a card, a row) puts its ring on the element with `punica-link.x:state(focus-visible)`.",
19529
+ "name": "focus-visible"
19530
+ }
19531
+ ],
19202
19532
  "superclass": {
19203
19533
  "name": "PunicaElement",
19204
19534
  "module": "/src/core/element.js"
@@ -22370,337 +22700,860 @@
22370
22700
  "members": [
22371
22701
  {
22372
22702
  "kind": "field",
22373
- "name": "properties",
22703
+ "name": "properties",
22704
+ "type": {
22705
+ "text": "object"
22706
+ },
22707
+ "static": true,
22708
+ "default": "{ label: { default: 'Navigation' }, side: { default: 'inline-start' }, noCloseButton: { type: Boolean }, keepOpen: { type: Boolean }, labelClose: { default: 'Close' } }",
22709
+ "inheritedFrom": {
22710
+ "name": "ModalSurface",
22711
+ "module": "src/components/dialog/modalSurface.js"
22712
+ }
22713
+ },
22714
+ {
22715
+ "kind": "field",
22716
+ "name": "styles",
22717
+ "static": true,
22718
+ "default": "styles"
22719
+ },
22720
+ {
22721
+ "kind": "field",
22722
+ "name": "template",
22723
+ "static": true,
22724
+ "default": "` <slot name=\"trigger\"></slot> <dialog part=\"dialog\"> <div part=\"header\"> <div class=\"title\"><slot name=\"header\"></slot></div> <button part=\"close-button\" class=\"close\" type=\"button\">${icons.close}</button> </div> <div part=\"body\"><slot></slot></div> </dialog> `"
22725
+ },
22726
+ {
22727
+ "kind": "field",
22728
+ "name": "#close",
22729
+ "privacy": "private"
22730
+ },
22731
+ {
22732
+ "kind": "field",
22733
+ "name": "#triggerSlot",
22734
+ "privacy": "private"
22735
+ },
22736
+ {
22737
+ "kind": "field",
22738
+ "name": "#headerSlot",
22739
+ "privacy": "private"
22740
+ },
22741
+ {
22742
+ "kind": "field",
22743
+ "name": "#trigger",
22744
+ "privacy": "private",
22745
+ "readonly": true
22746
+ },
22747
+ {
22748
+ "kind": "method",
22749
+ "name": "update",
22750
+ "parameters": [
22751
+ {
22752
+ "name": "changed"
22753
+ }
22754
+ ],
22755
+ "inheritedFrom": {
22756
+ "name": "ModalSurface",
22757
+ "module": "src/components/dialog/modalSurface.js"
22758
+ }
22759
+ },
22760
+ {
22761
+ "kind": "method",
22762
+ "name": "surfaceClosed",
22763
+ "description": "Runs right after the dialog closed, before `punica-close`.",
22764
+ "inheritedFrom": {
22765
+ "name": "ModalSurface",
22766
+ "module": "src/components/dialog/modalSurface.js"
22767
+ }
22768
+ },
22769
+ {
22770
+ "kind": "field",
22771
+ "name": "returnValue",
22772
+ "description": "The value given to `hide()` or `requestClose()` when it last closed (read-only).",
22773
+ "readonly": true,
22774
+ "type": {
22775
+ "text": "string"
22776
+ },
22777
+ "inheritedFrom": {
22778
+ "name": "ModalSurface",
22779
+ "module": "src/components/dialog/modalSurface.js"
22780
+ }
22781
+ },
22782
+ {
22783
+ "kind": "field",
22784
+ "name": "#shown",
22785
+ "privacy": "private",
22786
+ "type": {
22787
+ "text": "boolean"
22788
+ },
22789
+ "default": "false",
22790
+ "inheritedFrom": {
22791
+ "name": "ModalSurface",
22792
+ "module": "src/components/dialog/modalSurface.js"
22793
+ }
22794
+ },
22795
+ {
22796
+ "kind": "field",
22797
+ "name": "#reason",
22798
+ "privacy": "private",
22799
+ "type": {
22800
+ "text": "string"
22801
+ },
22802
+ "default": "'api'",
22803
+ "inheritedFrom": {
22804
+ "name": "ModalSurface",
22805
+ "module": "src/components/dialog/modalSurface.js"
22806
+ }
22807
+ },
22808
+ {
22809
+ "kind": "field",
22810
+ "name": "#returnValue",
22811
+ "privacy": "private",
22812
+ "type": {
22813
+ "text": "string"
22814
+ },
22815
+ "default": "''",
22816
+ "inheritedFrom": {
22817
+ "name": "ModalSurface",
22818
+ "module": "src/components/dialog/modalSurface.js"
22819
+ }
22820
+ },
22821
+ {
22822
+ "kind": "field",
22823
+ "name": "#downOnBackdrop",
22824
+ "privacy": "private",
22825
+ "type": {
22826
+ "text": "boolean"
22827
+ },
22828
+ "default": "false",
22829
+ "inheritedFrom": {
22830
+ "name": "ModalSurface",
22831
+ "module": "src/components/dialog/modalSurface.js"
22832
+ }
22833
+ },
22834
+ {
22835
+ "kind": "field",
22836
+ "name": "#returnFocus",
22837
+ "privacy": "private",
22838
+ "type": {
22839
+ "text": "Element | null"
22840
+ },
22841
+ "default": "null",
22842
+ "inheritedFrom": {
22843
+ "name": "ModalSurface",
22844
+ "module": "src/components/dialog/modalSurface.js"
22845
+ }
22846
+ },
22847
+ {
22848
+ "kind": "field",
22849
+ "name": "dialogElement",
22850
+ "description": "The native dialog.",
22851
+ "return": {
22852
+ "type": {
22853
+ "text": "HTMLDialogElement"
22854
+ }
22855
+ },
22856
+ "readonly": true,
22857
+ "inheritedFrom": {
22858
+ "name": "ModalSurface",
22859
+ "module": "src/components/dialog/modalSurface.js"
22860
+ }
22861
+ },
22862
+ {
22863
+ "kind": "field",
22864
+ "name": "labelSources",
22865
+ "description": "Elements that name the dialog when `label` is not set.",
22866
+ "return": {
22867
+ "type": {
22868
+ "text": "Element[]"
22869
+ }
22870
+ },
22871
+ "readonly": true,
22872
+ "inheritedFrom": {
22873
+ "name": "ModalSurface",
22874
+ "module": "src/components/dialog/modalSurface.js"
22875
+ }
22876
+ },
22877
+ {
22878
+ "kind": "method",
22879
+ "name": "isBackdropHit",
22880
+ "parameters": [
22881
+ {
22882
+ "name": "event",
22883
+ "type": {
22884
+ "text": "MouseEvent"
22885
+ }
22886
+ }
22887
+ ],
22888
+ "description": "Whether a pointer event on the dialog element landed on its backdrop.",
22889
+ "inheritedFrom": {
22890
+ "name": "ModalSurface",
22891
+ "module": "src/components/dialog/modalSurface.js"
22892
+ }
22893
+ },
22894
+ {
22895
+ "kind": "method",
22896
+ "name": "show",
22897
+ "description": "Opens the dialog.",
22898
+ "inheritedFrom": {
22899
+ "name": "ModalSurface",
22900
+ "module": "src/components/dialog/modalSurface.js"
22901
+ }
22902
+ },
22903
+ {
22904
+ "kind": "method",
22905
+ "name": "hide",
22906
+ "parameters": [
22907
+ {
22908
+ "name": "returnValue",
22909
+ "description": "reported in `punica-close`",
22910
+ "optional": true,
22911
+ "type": {
22912
+ "text": "string"
22913
+ }
22914
+ }
22915
+ ],
22916
+ "description": "Closes the dialog without asking.",
22917
+ "inheritedFrom": {
22918
+ "name": "ModalSurface",
22919
+ "module": "src/components/dialog/modalSurface.js"
22920
+ }
22921
+ },
22922
+ {
22923
+ "kind": "method",
22924
+ "name": "requestClose",
22925
+ "parameters": [
22926
+ {
22927
+ "name": "reason",
22928
+ "default": "'api'",
22929
+ "description": "`api` by default",
22930
+ "optional": true,
22931
+ "type": {
22932
+ "text": "string"
22933
+ }
22934
+ },
22935
+ {
22936
+ "name": "returnValue",
22937
+ "description": "reported in `punica-close`",
22938
+ "optional": true,
22939
+ "type": {
22940
+ "text": "string"
22941
+ }
22942
+ }
22943
+ ],
22944
+ "description": "Closes the dialog the way a user does: fires the cancelable\n`punica-request-close` first.",
22945
+ "return": {
22946
+ "type": {
22947
+ "text": "boolean"
22948
+ }
22949
+ },
22950
+ "inheritedFrom": {
22951
+ "name": "ModalSurface",
22952
+ "module": "src/components/dialog/modalSurface.js"
22953
+ }
22954
+ },
22955
+ {
22956
+ "kind": "method",
22957
+ "name": "closeWith",
22958
+ "parameters": [
22959
+ {
22960
+ "name": "reason",
22961
+ "type": {
22962
+ "text": "string"
22963
+ }
22964
+ },
22965
+ {
22966
+ "name": "returnValue",
22967
+ "optional": true,
22968
+ "type": {
22969
+ "text": "string"
22970
+ }
22971
+ }
22972
+ ],
22973
+ "description": "Closes with a reason, without asking. For the component's own use.",
22974
+ "inheritedFrom": {
22975
+ "name": "ModalSurface",
22976
+ "module": "src/components/dialog/modalSurface.js"
22977
+ }
22978
+ },
22979
+ {
22980
+ "kind": "method",
22981
+ "name": "connected",
22982
+ "inheritedFrom": {
22983
+ "name": "ModalSurface",
22984
+ "module": "src/components/dialog/modalSurface.js"
22985
+ }
22986
+ },
22987
+ {
22988
+ "kind": "method",
22989
+ "name": "disconnected",
22990
+ "inheritedFrom": {
22991
+ "name": "ModalSurface",
22992
+ "module": "src/components/dialog/modalSurface.js"
22993
+ }
22994
+ },
22995
+ {
22996
+ "kind": "method",
22997
+ "name": "#name",
22998
+ "privacy": "private",
22999
+ "inheritedFrom": {
23000
+ "name": "ModalSurface",
23001
+ "module": "src/components/dialog/modalSurface.js"
23002
+ }
23003
+ },
23004
+ {
23005
+ "kind": "method",
23006
+ "name": "#sync",
23007
+ "privacy": "private",
23008
+ "inheritedFrom": {
23009
+ "name": "ModalSurface",
23010
+ "module": "src/components/dialog/modalSurface.js"
23011
+ }
23012
+ },
23013
+ {
23014
+ "kind": "method",
23015
+ "name": "surfaceOpened",
23016
+ "description": "Runs right after the dialog opened, before `punica-open`.",
23017
+ "inheritedFrom": {
23018
+ "name": "ModalSurface",
23019
+ "module": "src/components/dialog/modalSurface.js"
23020
+ }
23021
+ }
23022
+ ],
23023
+ "events": [
23024
+ {
23025
+ "description": "The drawer opened.",
23026
+ "name": "punica-open"
23027
+ },
23028
+ {
23029
+ "description": "The user asked to close it. `detail` is `{ reason }`. Cancelable: preventing it keeps the drawer open.",
23030
+ "name": "punica-request-close"
23031
+ },
23032
+ {
23033
+ "description": "The drawer closed. `detail` is `{ reason, returnValue }`; `reason` is `escape`, `backdrop`, `close-button`, `navigate` (a link inside was activated) or `api`.",
23034
+ "name": "punica-close"
23035
+ }
23036
+ ],
23037
+ "attributes": [
23038
+ {
23039
+ "type": {
23040
+ "text": "string"
23041
+ },
23042
+ "description": "Accessible name of the drawer, `Navigation` by default.",
23043
+ "name": "label"
23044
+ },
23045
+ {
23046
+ "type": {
23047
+ "text": "boolean"
23048
+ },
23049
+ "description": "The drawer is showing.",
23050
+ "name": "open"
23051
+ },
23052
+ {
23053
+ "type": {
23054
+ "text": "'inline-start' | 'inline-end'"
23055
+ },
23056
+ "description": "Edge it slides from, `inline-start` by default.",
23057
+ "name": "side"
23058
+ },
23059
+ {
23060
+ "type": {
23061
+ "text": "boolean"
23062
+ },
23063
+ "description": "A click on the backdrop does not close it.",
23064
+ "name": "no-light-dismiss"
23065
+ },
23066
+ {
23067
+ "type": {
23068
+ "text": "boolean"
23069
+ },
23070
+ "description": "Hides the close button.",
23071
+ "name": "no-close-button"
23072
+ },
23073
+ {
23074
+ "type": {
23075
+ "text": "boolean"
23076
+ },
23077
+ "description": "Activating a link inside does not close it.",
23078
+ "name": "keep-open"
23079
+ },
23080
+ {
23081
+ "type": {
23082
+ "text": "string"
23083
+ },
23084
+ "description": "Accessible name of the close button, `Close` by default.",
23085
+ "name": "label-close"
23086
+ }
23087
+ ],
23088
+ "mixins": [
23089
+ {
23090
+ "name": "ModalSurface",
23091
+ "module": "/src/components/dialog/modalSurface.js"
23092
+ }
23093
+ ],
23094
+ "superclass": {
23095
+ "name": "PunicaElement",
23096
+ "module": "/src/core/element.js"
23097
+ },
23098
+ "tagName": "punica-mobile-nav",
23099
+ "customElement": true
23100
+ }
23101
+ ],
23102
+ "exports": [
23103
+ {
23104
+ "kind": "js",
23105
+ "name": "PunicaMobileNav",
23106
+ "declaration": {
23107
+ "name": "PunicaMobileNav",
23108
+ "module": "src/components/mobileNav/mobileNav.js"
23109
+ }
23110
+ }
23111
+ ]
23112
+ },
23113
+ {
23114
+ "kind": "javascript-module",
23115
+ "path": "src/components/monthPicker/monthPicker.js",
23116
+ "declarations": [
23117
+ {
23118
+ "kind": "class",
23119
+ "description": "A month field: a text input that takes a typed month and year in the\nlanguage's own order, and a button that opens the twelve months of a year.\nWhat `<input type=\"month\">` is, in every browser.\n\nThe value is an ISO `yyyy-mm` month; no time zone is involved.",
23120
+ "name": "PunicaMonthPicker",
23121
+ "cssProperties": [
23122
+ {
23123
+ "description": "Corner radius of the field.",
23124
+ "name": "--punica-month-picker-radius"
23125
+ },
23126
+ {
23127
+ "description": "Minimum block size of the field.",
23128
+ "name": "--punica-month-picker-height"
23129
+ },
23130
+ {
23131
+ "description": "Inline padding of the field.",
23132
+ "name": "--punica-month-picker-padding"
23133
+ },
23134
+ {
23135
+ "description": "Border colour at rest.",
23136
+ "name": "--punica-month-picker-border-color"
23137
+ },
23138
+ {
23139
+ "description": "Field background.",
23140
+ "name": "--punica-month-picker-background"
23141
+ },
23142
+ {
23143
+ "description": "Smallest inline size.",
23144
+ "name": "--punica-month-picker-min-width"
23145
+ },
23146
+ {
23147
+ "description": "Padding around the months.",
23148
+ "name": "--punica-month-picker-panel-padding"
23149
+ },
23150
+ {
23151
+ "description": "Inline size of a month cell.",
23152
+ "name": "--punica-month-picker-month-width"
23153
+ },
23154
+ {
23155
+ "description": "Colour of the selected month and of the current month's ring.",
23156
+ "name": "--punica-month-picker-accent"
23157
+ }
23158
+ ],
23159
+ "cssParts": [
23160
+ {
23161
+ "description": "The bordered box.",
23162
+ "name": "field"
23163
+ },
23164
+ {
23165
+ "description": "The text input.",
23166
+ "name": "input"
23167
+ },
23168
+ {
23169
+ "description": "The months button.",
23170
+ "name": "toggle"
23171
+ },
23172
+ {
23173
+ "description": "The floating panel.",
23174
+ "name": "panel"
23175
+ },
23176
+ {
23177
+ "description": "The row holding the year and its buttons.",
23178
+ "name": "header"
23179
+ },
23180
+ {
23181
+ "description": "The year on show.",
23182
+ "name": "title"
23183
+ },
23184
+ {
23185
+ "description": "Each year button.",
23186
+ "name": "nav"
23187
+ },
23188
+ {
23189
+ "description": "The table of months.",
23190
+ "name": "grid"
23191
+ },
23192
+ {
23193
+ "description": "A month cell. Also carries `current`, `selected` and `disabled` where they apply.",
23194
+ "name": "month"
23195
+ }
23196
+ ],
23197
+ "slots": [
23198
+ {
23199
+ "description": "Content before the input, an icon.",
23200
+ "name": "start"
23201
+ }
23202
+ ],
23203
+ "members": [
23204
+ {
23205
+ "kind": "field",
23206
+ "name": "properties",
23207
+ "type": {
23208
+ "text": "object"
23209
+ },
23210
+ "static": true,
23211
+ "default": "{ value: { reflect: false }, min: {}, max: {}, locale: {}, placeholder: {}, label: {}, open: { type: Boolean }, readonly: { type: Boolean }, size: {}, fullWidth: { type: Boolean }, labelToggle: { default: 'Choose month' }, labelPreviousYear: { default: 'Previous year' }, labelNextYear: { default: 'Next year' }, disabledMonths: { type: Object, attribute: false } }"
23212
+ },
23213
+ {
23214
+ "kind": "field",
23215
+ "name": "styles",
22374
23216
  "type": {
22375
- "text": "object"
23217
+ "text": "array"
22376
23218
  },
22377
23219
  "static": true,
22378
- "default": "{ label: { default: 'Navigation' }, side: { default: 'inline-start' }, noCloseButton: { type: Boolean }, keepOpen: { type: Boolean }, labelClose: { default: 'Close' } }",
22379
- "inheritedFrom": {
22380
- "name": "ModalSurface",
22381
- "module": "src/components/dialog/modalSurface.js"
22382
- }
23220
+ "default": "[overlayCss, fieldStyles, styles]"
22383
23221
  },
22384
23222
  {
22385
23223
  "kind": "field",
22386
- "name": "styles",
23224
+ "name": "shadowOptions",
23225
+ "type": {
23226
+ "text": "object"
23227
+ },
22387
23228
  "static": true,
22388
- "default": "styles"
23229
+ "default": "{ delegatesFocus: true }"
22389
23230
  },
22390
23231
  {
22391
23232
  "kind": "field",
22392
23233
  "name": "template",
22393
23234
  "static": true,
22394
- "default": "` <slot name=\"trigger\"></slot> <dialog part=\"dialog\"> <div part=\"header\"> <div class=\"title\"><slot name=\"header\"></slot></div> <button part=\"close-button\" class=\"close\" type=\"button\">${icons.close}</button> </div> <div part=\"body\"><slot></slot></div> </dialog> `"
23235
+ "default": "` <div part=\"field\" class=\"field\"> <slot name=\"start\"></slot> <input part=\"input\" class=\"control\" type=\"text\" inputmode=\"numeric\" autocomplete=\"off\" spellcheck=\"false\"> <button part=\"toggle\" class=\"icon-button\" type=\"button\" aria-haspopup=\"dialog\" aria-controls=\"panel\" aria-expanded=\"false\">${icons.calendar}</button> </div> <div part=\"panel\" id=\"panel\" class=\"panel\" role=\"dialog\" popover=\"manual\"> <div part=\"header\" class=\"header\"> <button part=\"nav\" class=\"nav\" type=\"button\" data-years=\"-1\">${icons.chevronStart}</button> <div part=\"title\" class=\"title\" id=\"title\" aria-live=\"polite\"></div> <button part=\"nav\" class=\"nav\" type=\"button\" data-years=\"1\">${icons.chevronEnd}</button> </div> <table part=\"grid\" role=\"grid\" aria-labelledby=\"title\"><tbody></tbody></table> </div> `"
22395
23236
  },
22396
23237
  {
22397
23238
  "kind": "field",
22398
- "name": "#close",
23239
+ "name": "#field",
22399
23240
  "privacy": "private"
22400
23241
  },
22401
23242
  {
22402
23243
  "kind": "field",
22403
- "name": "#triggerSlot",
23244
+ "name": "#input",
22404
23245
  "privacy": "private"
22405
23246
  },
22406
23247
  {
22407
23248
  "kind": "field",
22408
- "name": "#headerSlot",
23249
+ "name": "#toggle",
22409
23250
  "privacy": "private"
22410
23251
  },
22411
23252
  {
22412
23253
  "kind": "field",
22413
- "name": "#trigger",
22414
- "privacy": "private",
22415
- "readonly": true
23254
+ "name": "#panel",
23255
+ "privacy": "private"
22416
23256
  },
22417
23257
  {
22418
- "kind": "method",
22419
- "name": "update",
22420
- "parameters": [
22421
- {
22422
- "name": "changed"
22423
- }
22424
- ],
22425
- "inheritedFrom": {
22426
- "name": "ModalSurface",
22427
- "module": "src/components/dialog/modalSurface.js"
22428
- }
23258
+ "kind": "field",
23259
+ "name": "#title",
23260
+ "privacy": "private"
22429
23261
  },
22430
23262
  {
22431
- "kind": "method",
22432
- "name": "surfaceClosed",
22433
- "description": "Runs right after the dialog closed, before `punica-close`.",
22434
- "inheritedFrom": {
22435
- "name": "ModalSurface",
22436
- "module": "src/components/dialog/modalSurface.js"
22437
- }
23263
+ "kind": "field",
23264
+ "name": "#body",
23265
+ "privacy": "private"
22438
23266
  },
22439
23267
  {
22440
23268
  "kind": "field",
22441
- "name": "returnValue",
22442
- "description": "The value given to `hide()` or `requestClose()` when it last closed (read-only).",
22443
- "readonly": true,
23269
+ "name": "#navs",
23270
+ "privacy": "private",
22444
23271
  "type": {
22445
- "text": "string"
23272
+ "text": "HTMLButtonElement[]"
22446
23273
  },
22447
- "inheritedFrom": {
22448
- "name": "ModalSurface",
22449
- "module": "src/components/dialog/modalSurface.js"
22450
- }
23274
+ "default": "[...this.shadowRoot.querySelectorAll('.nav')]"
22451
23275
  },
22452
23276
  {
22453
23277
  "kind": "field",
22454
- "name": "#shown",
23278
+ "name": "#cells",
22455
23279
  "privacy": "private",
22456
23280
  "type": {
22457
- "text": "boolean"
23281
+ "text": "HTMLTableCellElement[]"
22458
23282
  },
22459
- "default": "false",
22460
- "inheritedFrom": {
22461
- "name": "ModalSurface",
22462
- "module": "src/components/dialog/modalSurface.js"
22463
- }
23283
+ "default": "[]"
22464
23284
  },
22465
23285
  {
22466
23286
  "kind": "field",
22467
- "name": "#reason",
23287
+ "name": "#surface",
23288
+ "privacy": "private",
23289
+ "default": "new FieldSurface(this, this.#panel)"
23290
+ },
23291
+ {
23292
+ "kind": "field",
23293
+ "name": "#cursor",
22468
23294
  "privacy": "private",
22469
23295
  "type": {
22470
- "text": "string"
23296
+ "text": "CalendarMonth | null"
22471
23297
  },
22472
- "default": "'api'",
22473
- "inheritedFrom": {
22474
- "name": "ModalSurface",
22475
- "module": "src/components/dialog/modalSurface.js"
22476
- }
23298
+ "default": "null",
23299
+ "description": "The month the keyboard is on; its year is the one on show."
22477
23300
  },
22478
23301
  {
22479
23302
  "kind": "field",
22480
- "name": "#returnValue",
23303
+ "name": "#textKey",
22481
23304
  "privacy": "private",
22482
23305
  "type": {
22483
- "text": "string"
23306
+ "text": "string | null"
22484
23307
  },
22485
- "default": "''",
22486
- "inheritedFrom": {
22487
- "name": "ModalSurface",
22488
- "module": "src/components/dialog/modalSurface.js"
22489
- }
23308
+ "default": "null",
23309
+ "description": "What the input's text was last written from."
22490
23310
  },
22491
23311
  {
22492
23312
  "kind": "field",
22493
- "name": "#downOnBackdrop",
23313
+ "name": "#bad",
22494
23314
  "privacy": "private",
22495
23315
  "type": {
22496
23316
  "text": "boolean"
22497
23317
  },
22498
23318
  "default": "false",
22499
- "inheritedFrom": {
22500
- "name": "ModalSurface",
22501
- "module": "src/components/dialog/modalSurface.js"
22502
- }
23319
+ "description": "The typed text is not a month."
22503
23320
  },
22504
23321
  {
22505
23322
  "kind": "field",
22506
- "name": "#returnFocus",
23323
+ "name": "#touched",
22507
23324
  "privacy": "private",
22508
23325
  "type": {
22509
- "text": "Element | null"
23326
+ "text": "boolean"
22510
23327
  },
22511
- "default": "null",
22512
- "inheritedFrom": {
22513
- "name": "ModalSurface",
22514
- "module": "src/components/dialog/modalSurface.js"
22515
- }
23328
+ "default": "false"
22516
23329
  },
22517
23330
  {
22518
23331
  "kind": "field",
22519
- "name": "dialogElement",
22520
- "description": "The native dialog.",
22521
- "return": {
22522
- "type": {
22523
- "text": "HTMLDialogElement"
22524
- }
23332
+ "name": "#tabbing",
23333
+ "privacy": "private",
23334
+ "type": {
23335
+ "text": "boolean"
22525
23336
  },
22526
- "readonly": true,
22527
- "inheritedFrom": {
22528
- "name": "ModalSurface",
22529
- "module": "src/components/dialog/modalSurface.js"
22530
- }
23337
+ "default": "false"
22531
23338
  },
22532
23339
  {
22533
23340
  "kind": "field",
22534
- "name": "labelSources",
22535
- "description": "Elements that name the dialog when `label` is not set.",
22536
- "return": {
22537
- "type": {
22538
- "text": "Element[]"
22539
- }
23341
+ "name": "#reason",
23342
+ "privacy": "private",
23343
+ "type": {
23344
+ "text": "string"
22540
23345
  },
22541
- "readonly": true,
22542
- "inheritedFrom": {
22543
- "name": "ModalSurface",
22544
- "module": "src/components/dialog/modalSurface.js"
22545
- }
23346
+ "default": "'api'"
22546
23347
  },
22547
23348
  {
22548
23349
  "kind": "method",
22549
- "name": "isBackdropHit",
23350
+ "name": "show",
23351
+ "description": "Opens the months."
23352
+ },
23353
+ {
23354
+ "kind": "method",
23355
+ "name": "hide",
23356
+ "description": "Closes the months."
23357
+ },
23358
+ {
23359
+ "kind": "method",
23360
+ "name": "focus",
22550
23361
  "parameters": [
22551
23362
  {
22552
- "name": "event",
22553
- "type": {
22554
- "text": "MouseEvent"
22555
- }
23363
+ "name": "options"
22556
23364
  }
22557
23365
  ],
22558
- "description": "Whether a pointer event on the dialog element landed on its backdrop.",
22559
- "inheritedFrom": {
22560
- "name": "ModalSurface",
22561
- "module": "src/components/dialog/modalSurface.js"
22562
- }
23366
+ "description": "Moves focus to the text input."
22563
23367
  },
22564
23368
  {
22565
23369
  "kind": "method",
22566
- "name": "show",
22567
- "description": "Opens the dialog.",
22568
- "inheritedFrom": {
22569
- "name": "ModalSurface",
22570
- "module": "src/components/dialog/modalSurface.js"
22571
- }
23370
+ "name": "connected"
22572
23371
  },
22573
23372
  {
22574
23373
  "kind": "method",
22575
- "name": "hide",
23374
+ "name": "disconnected"
23375
+ },
23376
+ {
23377
+ "kind": "method",
23378
+ "name": "formReset"
23379
+ },
23380
+ {
23381
+ "kind": "method",
23382
+ "name": "formRestore",
22576
23383
  "parameters": [
22577
23384
  {
22578
- "name": "returnValue",
22579
- "description": "reported in `punica-close`",
22580
- "optional": true,
23385
+ "name": "state"
23386
+ }
23387
+ ]
23388
+ },
23389
+ {
23390
+ "kind": "method",
23391
+ "name": "update"
23392
+ },
23393
+ {
23394
+ "kind": "method",
23395
+ "name": "#drawMonths",
23396
+ "privacy": "private",
23397
+ "parameters": [
23398
+ {
23399
+ "name": "language",
22581
23400
  "type": {
22582
23401
  "text": "string"
22583
23402
  }
22584
23403
  }
22585
- ],
22586
- "description": "Closes the dialog without asking.",
22587
- "inheritedFrom": {
22588
- "name": "ModalSurface",
22589
- "module": "src/components/dialog/modalSurface.js"
22590
- }
23404
+ ]
22591
23405
  },
22592
23406
  {
22593
23407
  "kind": "method",
22594
- "name": "requestClose",
23408
+ "name": "#focusCursor",
23409
+ "privacy": "private"
23410
+ },
23411
+ {
23412
+ "kind": "method",
23413
+ "name": "#clamp",
23414
+ "privacy": "private",
22595
23415
  "parameters": [
22596
23416
  {
22597
- "name": "reason",
22598
- "default": "'api'",
22599
- "description": "`api` by default",
22600
- "optional": true,
23417
+ "name": "month",
22601
23418
  "type": {
22602
- "text": "string"
23419
+ "text": "CalendarMonth"
22603
23420
  }
22604
- },
23421
+ }
23422
+ ]
23423
+ },
23424
+ {
23425
+ "kind": "method",
23426
+ "name": "#unavailable",
23427
+ "privacy": "private",
23428
+ "parameters": [
22605
23429
  {
22606
- "name": "returnValue",
22607
- "description": "reported in `punica-close`",
22608
- "optional": true,
23430
+ "name": "month",
22609
23431
  "type": {
22610
- "text": "string"
23432
+ "text": "CalendarMonth"
22611
23433
  }
22612
23434
  }
22613
- ],
22614
- "description": "Closes the dialog the way a user does: fires the cancelable\n`punica-request-close` first.",
22615
- "return": {
22616
- "type": {
22617
- "text": "boolean"
23435
+ ]
23436
+ },
23437
+ {
23438
+ "kind": "method",
23439
+ "name": "#monthFrom",
23440
+ "privacy": "private",
23441
+ "parameters": [
23442
+ {
23443
+ "name": "event",
23444
+ "type": {
23445
+ "text": "Event"
23446
+ }
22618
23447
  }
22619
- },
22620
- "inheritedFrom": {
22621
- "name": "ModalSurface",
22622
- "module": "src/components/dialog/modalSurface.js"
22623
- }
23448
+ ]
22624
23449
  },
22625
23450
  {
22626
23451
  "kind": "method",
22627
- "name": "closeWith",
23452
+ "name": "#moveTo",
23453
+ "privacy": "private",
22628
23454
  "parameters": [
22629
23455
  {
22630
- "name": "reason",
23456
+ "name": "month",
22631
23457
  "type": {
22632
- "text": "string"
23458
+ "text": "CalendarMonth"
22633
23459
  }
22634
23460
  },
22635
23461
  {
22636
- "name": "returnValue",
22637
- "optional": true,
23462
+ "name": "focus",
23463
+ "default": "true",
23464
+ "description": "put focus on it (keyboard), or leave it where it is (year buttons)",
22638
23465
  "type": {
22639
- "text": "string"
23466
+ "text": "boolean"
22640
23467
  }
22641
23468
  }
22642
- ],
22643
- "description": "Closes with a reason, without asking. For the component's own use.",
22644
- "inheritedFrom": {
22645
- "name": "ModalSurface",
22646
- "module": "src/components/dialog/modalSurface.js"
22647
- }
23469
+ ]
22648
23470
  },
22649
23471
  {
22650
23472
  "kind": "method",
22651
- "name": "connected",
22652
- "inheritedFrom": {
22653
- "name": "ModalSurface",
22654
- "module": "src/components/dialog/modalSurface.js"
22655
- }
23473
+ "name": "#pick",
23474
+ "privacy": "private",
23475
+ "parameters": [
23476
+ {
23477
+ "name": "month",
23478
+ "type": {
23479
+ "text": "CalendarMonth"
23480
+ }
23481
+ }
23482
+ ]
22656
23483
  },
22657
23484
  {
22658
23485
  "kind": "method",
22659
- "name": "disconnected",
22660
- "inheritedFrom": {
22661
- "name": "ModalSurface",
22662
- "module": "src/components/dialog/modalSurface.js"
22663
- }
23486
+ "name": "#onGridKeydown",
23487
+ "privacy": "private",
23488
+ "parameters": [
23489
+ {
23490
+ "name": "event",
23491
+ "type": {
23492
+ "text": "KeyboardEvent"
23493
+ }
23494
+ }
23495
+ ]
22664
23496
  },
22665
23497
  {
22666
23498
  "kind": "method",
22667
- "name": "#name",
23499
+ "name": "#close",
22668
23500
  "privacy": "private",
22669
- "inheritedFrom": {
22670
- "name": "ModalSurface",
22671
- "module": "src/components/dialog/modalSurface.js"
22672
- }
23501
+ "parameters": [
23502
+ {
23503
+ "name": "reason",
23504
+ "type": {
23505
+ "text": "string"
23506
+ }
23507
+ }
23508
+ ]
22673
23509
  },
22674
23510
  {
22675
23511
  "kind": "method",
22676
- "name": "#sync",
23512
+ "name": "#commit",
22677
23513
  "privacy": "private",
22678
- "inheritedFrom": {
22679
- "name": "ModalSurface",
22680
- "module": "src/components/dialog/modalSurface.js"
22681
- }
23514
+ "parameters": [
23515
+ {
23516
+ "name": "iso",
23517
+ "type": {
23518
+ "text": "string | null"
23519
+ }
23520
+ }
23521
+ ]
22682
23522
  },
22683
23523
  {
22684
23524
  "kind": "method",
22685
- "name": "surfaceOpened",
22686
- "description": "Runs right after the dialog opened, before `punica-open`.",
22687
- "inheritedFrom": {
22688
- "name": "ModalSurface",
22689
- "module": "src/components/dialog/modalSurface.js"
22690
- }
23525
+ "name": "#commitText",
23526
+ "privacy": "private",
23527
+ "description": "Takes what was typed."
23528
+ },
23529
+ {
23530
+ "type": {
23531
+ "text": "string | null"
23532
+ },
23533
+ "description": "The current month, `yyyy-mm`, or null.",
23534
+ "name": "value",
23535
+ "kind": "field"
23536
+ },
23537
+ {
23538
+ "type": {
23539
+ "text": "((month: string) => boolean) | null"
23540
+ },
23541
+ "description": "Answers true for a `yyyy-mm` month the panel must not offer.",
23542
+ "name": "disabledMonths",
23543
+ "kind": "field"
22691
23544
  }
22692
23545
  ],
22693
23546
  "events": [
22694
23547
  {
22695
- "description": "The drawer opened.",
22696
- "name": "punica-open"
23548
+ "description": "The user typed or picked a month. `detail.value` is the `yyyy-mm` month or null.",
23549
+ "name": "punica-change"
22697
23550
  },
22698
23551
  {
22699
- "description": "The user asked to close it. `detail` is `{ reason }`. Cancelable: preventing it keeps the drawer open.",
22700
- "name": "punica-request-close"
23552
+ "description": "The months opened.",
23553
+ "name": "punica-open"
22701
23554
  },
22702
23555
  {
22703
- "description": "The drawer closed. `detail` is `{ reason, returnValue }`; `reason` is `escape`, `backdrop`, `close-button`, `navigate` (a link inside was activated) or `api`.",
23556
+ "description": "The months closed. `detail.reason` is `select`, `escape`, `outside`, `blur` or `api`.",
22704
23557
  "name": "punica-close"
22705
23558
  }
22706
23559
  ],
@@ -22709,73 +23562,150 @@
22709
23562
  "type": {
22710
23563
  "text": "string"
22711
23564
  },
22712
- "description": "Accessible name of the drawer, `Navigation` by default.",
23565
+ "description": "Default value, `yyyy-mm`.",
23566
+ "name": "value"
23567
+ },
23568
+ {
23569
+ "type": {
23570
+ "text": "string"
23571
+ },
23572
+ "description": "Earliest month allowed, `yyyy-mm`.",
23573
+ "name": "min"
23574
+ },
23575
+ {
23576
+ "type": {
23577
+ "text": "string"
23578
+ },
23579
+ "description": "Latest month allowed, `yyyy-mm`.",
23580
+ "name": "max"
23581
+ },
23582
+ {
23583
+ "type": {
23584
+ "text": "string"
23585
+ },
23586
+ "description": "BCP 47 tag for the display format and the month names; the nearest `lang`, else the browser's, by default.",
23587
+ "name": "locale"
23588
+ },
23589
+ {
23590
+ "type": {
23591
+ "text": "string"
23592
+ },
23593
+ "description": "Text shown while the field is empty.",
23594
+ "name": "placeholder"
23595
+ },
23596
+ {
23597
+ "type": {
23598
+ "text": "string"
23599
+ },
23600
+ "description": "Accessible name.",
22713
23601
  "name": "label"
22714
23602
  },
22715
23603
  {
22716
23604
  "type": {
22717
23605
  "text": "boolean"
22718
23606
  },
22719
- "description": "The drawer is showing.",
23607
+ "description": "The months are showing.",
22720
23608
  "name": "open"
22721
23609
  },
22722
23610
  {
22723
23611
  "type": {
22724
- "text": "'inline-start' | 'inline-end'"
23612
+ "text": "string"
22725
23613
  },
22726
- "description": "Edge it slides from, `inline-start` by default.",
22727
- "name": "side"
23614
+ "description": "Name the value is submitted under.",
23615
+ "name": "name"
22728
23616
  },
22729
23617
  {
22730
23618
  "type": {
22731
23619
  "text": "boolean"
22732
23620
  },
22733
- "description": "A click on the backdrop does not close it.",
22734
- "name": "no-light-dismiss"
23621
+ "description": "Takes no input and submits nothing.",
23622
+ "name": "disabled"
22735
23623
  },
22736
23624
  {
22737
23625
  "type": {
22738
23626
  "text": "boolean"
22739
23627
  },
22740
- "description": "Hides the close button.",
22741
- "name": "no-close-button"
23628
+ "description": "Shows its value and takes no input.",
23629
+ "name": "readonly"
22742
23630
  },
22743
23631
  {
22744
23632
  "type": {
22745
23633
  "text": "boolean"
22746
23634
  },
22747
- "description": "Activating a link inside does not close it.",
22748
- "name": "keep-open"
23635
+ "description": "A month is needed before the form submits.",
23636
+ "name": "required"
23637
+ },
23638
+ {
23639
+ "type": {
23640
+ "text": "'small' | 'medium' | 'large'"
23641
+ },
23642
+ "description": "Control height, `medium` by default.",
23643
+ "name": "size"
23644
+ },
23645
+ {
23646
+ "type": {
23647
+ "text": "boolean"
23648
+ },
23649
+ "description": "Fills its container's inline size.",
23650
+ "name": "full-width"
22749
23651
  },
22750
23652
  {
22751
23653
  "type": {
22752
23654
  "text": "string"
22753
23655
  },
22754
- "description": "Accessible name of the close button, `Close` by default.",
22755
- "name": "label-close"
23656
+ "description": "Name of the months button and of the panel, `Choose month` by default.",
23657
+ "name": "label-toggle"
23658
+ },
23659
+ {
23660
+ "type": {
23661
+ "text": "string"
23662
+ },
23663
+ "description": "Name of the previous-year button, `Previous year` by default.",
23664
+ "name": "label-previous-year"
23665
+ },
23666
+ {
23667
+ "type": {
23668
+ "text": "string"
23669
+ },
23670
+ "description": "Name of the next-year button, `Next year` by default.",
23671
+ "name": "label-next-year"
23672
+ }
23673
+ ],
23674
+ "cssStates": [
23675
+ {
23676
+ "description": "The months are showing.",
23677
+ "name": "open"
23678
+ },
23679
+ {
23680
+ "description": "Disabled by itself or by a fieldset.",
23681
+ "name": "disabled"
23682
+ },
23683
+ {
23684
+ "description": "Invalid after the user touched it.",
23685
+ "name": "user-invalid"
22756
23686
  }
22757
23687
  ],
22758
23688
  "mixins": [
22759
23689
  {
22760
- "name": "ModalSurface",
22761
- "module": "/src/components/dialog/modalSurface.js"
23690
+ "name": "FormControl",
23691
+ "module": "/src/core/form.js"
22762
23692
  }
22763
23693
  ],
22764
23694
  "superclass": {
22765
23695
  "name": "PunicaElement",
22766
23696
  "module": "/src/core/element.js"
22767
23697
  },
22768
- "tagName": "punica-mobile-nav",
23698
+ "tagName": "punica-month-picker",
22769
23699
  "customElement": true
22770
23700
  }
22771
23701
  ],
22772
23702
  "exports": [
22773
23703
  {
22774
23704
  "kind": "js",
22775
- "name": "PunicaMobileNav",
23705
+ "name": "PunicaMonthPicker",
22776
23706
  "declaration": {
22777
- "name": "PunicaMobileNav",
22778
- "module": "src/components/mobileNav/mobileNav.js"
23707
+ "name": "PunicaMonthPicker",
23708
+ "module": "src/components/monthPicker/monthPicker.js"
22779
23709
  }
22780
23710
  }
22781
23711
  ]
@@ -26079,6 +27009,10 @@
26079
27009
  "description": "Font size of the heading.",
26080
27010
  "name": "--punica-section-heading-size"
26081
27011
  },
27012
+ {
27013
+ "description": "Space between the heading and the description.",
27014
+ "name": "--punica-section-heading-gap"
27015
+ },
26082
27016
  {
26083
27017
  "description": "Colour of the divider.",
26084
27018
  "name": "--punica-section-divider-color"
@@ -26344,6 +27278,10 @@
26344
27278
  "description": "Background of the indicator.",
26345
27279
  "name": "--punica-segmented-control-indicator-color"
26346
27280
  },
27281
+ {
27282
+ "description": "`wrap` lets the segments go onto more lines when the bar is narrower than they are; `nowrap` by default.",
27283
+ "name": "--punica-segmented-control-wrap"
27284
+ },
26347
27285
  {
26348
27286
  "description": "Space between the radios.",
26349
27287
  "name": "--punica-radio-group-gap",
@@ -26906,7 +27844,7 @@
26906
27844
  }
26907
27845
  }
26908
27846
  ],
26909
- "description": "The accessible name of a field: its `label`, else the text of the\n`<label>` elements pointing at it.",
27847
+ "description": "The accessible name of a field: its `label`, else its own `aria-label`, else\nthe text of the `<label>` elements pointing at it.",
26910
27848
  "return": {
26911
27849
  "type": {
26912
27850
  "text": "string | null"
@@ -27402,7 +28340,7 @@
27402
28340
  "text": "object"
27403
28341
  },
27404
28342
  "static": true,
27405
- "default": "{ defaultValue: { attribute: 'value', reflect: false }, value: { type: Object, attribute: false }, multiple: { type: Boolean }, placeholder: {}, clearable: { type: Boolean }, label: {}, open: { type: Boolean }, size: {}, fullWidth: { type: Boolean }, labelClear: { default: 'Clear' } }"
28343
+ "default": "{ // A name written on the element the usual way names the control too; `label` wins. ariaLabel: { attribute: 'aria-label', reflect: false }, defaultValue: { attribute: 'value', reflect: false }, value: { type: Object, attribute: false }, multiple: { type: Boolean }, placeholder: {}, clearable: { type: Boolean }, label: {}, /** Read after the name by assistive technology; a punica-field around the control sets it. */ description: {}, open: { type: Boolean }, size: {}, fullWidth: { type: Boolean }, labelClear: { default: 'Clear' } }"
27406
28344
  },
27407
28345
  {
27408
28346
  "kind": "field",
@@ -27426,7 +28364,7 @@
27426
28364
  "kind": "field",
27427
28365
  "name": "template",
27428
28366
  "static": true,
27429
- "default": "` <div part=\"field\" class=\"field\"> <slot name=\"start\"></slot> <button part=\"trigger\" class=\"control\" type=\"button\" role=\"combobox\" aria-haspopup=\"listbox\" aria-controls=\"listbox\" aria-expanded=\"false\"> <span part=\"value\" class=\"value\"></span> <span part=\"caret\" class=\"caret\">${icons.chevronDown}</span> </button> <button part=\"clear\" class=\"icon-button clear\" type=\"button\" hidden>${icons.close}</button> </div> <div part=\"listbox\" id=\"listbox\" class=\"panel listbox\" role=\"listbox\" popover=\"manual\"><slot></slot></div> `"
28367
+ "default": "` <div part=\"field\" class=\"field\"> <slot name=\"start\"></slot> <button part=\"trigger\" class=\"control\" type=\"button\" role=\"combobox\" aria-haspopup=\"listbox\" aria-controls=\"listbox\" aria-expanded=\"false\"> <span class=\"value-box\"><span part=\"value\" class=\"value\"></span><span class=\"sizer\" aria-hidden=\"true\"></span></span> <span part=\"caret\" class=\"caret\">${icons.chevronDown}</span> </button> <button part=\"clear\" class=\"icon-button clear\" type=\"button\" hidden>${icons.close}</button> </div> <div part=\"listbox\" id=\"listbox\" class=\"panel listbox\" role=\"listbox\" popover=\"manual\"><slot></slot></div> `"
27430
28368
  },
27431
28369
  {
27432
28370
  "kind": "field",
@@ -27443,6 +28381,21 @@
27443
28381
  "name": "#valueEl",
27444
28382
  "privacy": "private"
27445
28383
  },
28384
+ {
28385
+ "kind": "field",
28386
+ "name": "#sizer",
28387
+ "privacy": "private"
28388
+ },
28389
+ {
28390
+ "kind": "field",
28391
+ "name": "#sized",
28392
+ "privacy": "private",
28393
+ "type": {
28394
+ "text": "string"
28395
+ },
28396
+ "default": "''",
28397
+ "description": "The texts the sizer holds, serialised."
28398
+ },
27446
28399
  {
27447
28400
  "kind": "field",
27448
28401
  "name": "#clear",
@@ -27737,7 +28690,7 @@
27737
28690
  "type": {
27738
28691
  "text": "string"
27739
28692
  },
27740
- "description": "Text shown while nothing is picked.",
28693
+ "description": "Text shown while nothing is picked. Without one, a single select with no default takes its first enabled option, as a native select does.",
27741
28694
  "name": "placeholder"
27742
28695
  },
27743
28696
  {
@@ -27751,7 +28704,7 @@
27751
28704
  "type": {
27752
28705
  "text": "string"
27753
28706
  },
27754
- "description": "Accessible name.",
28707
+ "description": "Accessible name. An `aria-label` on the element names it too; `label` wins.",
27755
28708
  "name": "label"
27756
28709
  },
27757
28710
  {
@@ -27782,6 +28735,13 @@
27782
28735
  "description": "A value is needed before the form submits.",
27783
28736
  "name": "required"
27784
28737
  },
28738
+ {
28739
+ "type": {
28740
+ "text": "string"
28741
+ },
28742
+ "description": "Read by assistive technology after the control's name; a `punica-field` around it sets it to its help and its error.",
28743
+ "name": "description"
28744
+ },
27785
28745
  {
27786
28746
  "type": {
27787
28747
  "text": "'small' | 'medium' | 'large'"
@@ -27890,6 +28850,10 @@
27890
28850
  "description": "The wrapper around the `media` slot.",
27891
28851
  "name": "media"
27892
28852
  },
28853
+ {
28854
+ "description": "The column of the title, the description and the default slot, beside or under the media.",
28855
+ "name": "body"
28856
+ },
27893
28857
  {
27894
28858
  "description": "The wrapper around the `title` slot.",
27895
28859
  "name": "title"
@@ -27941,7 +28905,7 @@
27941
28905
  "kind": "field",
27942
28906
  "name": "template",
27943
28907
  "static": true,
27944
- "default": "` <div part=\"base\" class=\"base\"> <div part=\"media\" class=\"media\" hidden><slot name=\"media\"></slot></div> <div class=\"body\"> <div part=\"title\" class=\"title\"><slot name=\"title\"></slot></div> <div part=\"description\" class=\"description\"><slot name=\"description\"></slot></div> <slot></slot> </div> <span part=\"indicator\" class=\"indicator\" aria-hidden=\"true\">${icons.check}</span> </div> `"
28908
+ "default": "` <div part=\"base\" class=\"base\"> <div part=\"media\" class=\"media\" hidden><slot name=\"media\"></slot></div> <div part=\"body\" class=\"body\"> <div part=\"title\" class=\"title\"><slot name=\"title\"></slot></div> <div part=\"description\" class=\"description\"><slot name=\"description\"></slot></div> <slot></slot> </div> <span part=\"indicator\" class=\"indicator\" aria-hidden=\"true\">${icons.check}</span> </div> `"
27945
28909
  },
27946
28910
  {
27947
28911
  "kind": "field",
@@ -32833,7 +33797,7 @@
32833
33797
  "text": "object"
32834
33798
  },
32835
33799
  "static": true,
32836
- "default": "{ value: { reflect: false, default: '' }, label: {}, placeholder: {}, rows: { type: Number, default: 3 }, resize: { default: 'none' }, readonly: { type: Boolean }, minlength: { type: Number }, maxlength: { type: Number }, autocomplete: {}, inputmode: {}, fullWidth: { type: Boolean } }"
33800
+ "default": "{ // A name written on the element the usual way names the control too; `label` wins. ariaLabel: { attribute: 'aria-label', reflect: false }, value: { reflect: false, default: '' }, label: {}, /** Read after the name by assistive technology; a punica-field around the control sets it. */ description: {}, placeholder: {}, rows: { type: Number, default: 3 }, resize: { default: 'none' }, readonly: { type: Boolean }, minlength: { type: Number }, maxlength: { type: Number }, autocomplete: {}, inputmode: {}, fullWidth: { type: Boolean } }"
32837
33801
  },
32838
33802
  {
32839
33803
  "kind": "field",
@@ -32991,7 +33955,7 @@
32991
33955
  "type": {
32992
33956
  "text": "string"
32993
33957
  },
32994
- "description": "Accessible name, when no `<label>` points at the field.",
33958
+ "description": "Accessible name, when no `<label>` points at the field. An `aria-label` on the element names it too; `label` wins.",
32995
33959
  "name": "label"
32996
33960
  },
32997
33961
  {
@@ -33036,6 +34000,13 @@
33036
34000
  "description": "A value is needed before the form submits.",
33037
34001
  "name": "required"
33038
34002
  },
34003
+ {
34004
+ "type": {
34005
+ "text": "string"
34006
+ },
34007
+ "description": "Read by assistive technology after the control's name; a `punica-field` around it sets it to its help and its error.",
34008
+ "name": "description"
34009
+ },
33039
34010
  {
33040
34011
  "type": {
33041
34012
  "text": "number"
@@ -34600,7 +35571,7 @@
34600
35571
  "declarations": [
34601
35572
  {
34602
35573
  "kind": "class",
34603
- "description": "The region toasts appear in, at a corner or edge of the viewport.\n\nIt is a `popover=\"manual\"` element, so it sits in the top layer above the\npage, and a polite live region, so a toast added to it is announced. Its\nchildren are `punica-toast` elements; `toast()` adds one to the page's\ntoaster.",
35574
+ "description": "The region toasts appear in, at a corner or edge of the viewport.\n\nIt is a `popover=\"manual\"` element, so it sits in the top layer above the\npage, and a polite live region, so a toast added to it is announced. While\na modal dialog, drawer or sheet is open, the toaster moves into the topmost\none and back when it closes: everything outside a modal is inert and under\nit, so a toast there could not be read above it nor clicked. Its\nchildren are `punica-toast` elements; `toast()` adds one to the page's\ntoaster.",
34604
35575
  "name": "PunicaToaster",
34605
35576
  "cssProperties": [
34606
35577
  {
@@ -34659,6 +35630,16 @@
34659
35630
  "name": "#slot",
34660
35631
  "privacy": "private"
34661
35632
  },
35633
+ {
35634
+ "kind": "field",
35635
+ "name": "#home",
35636
+ "privacy": "private",
35637
+ "type": {
35638
+ "text": "{ parent: Node, next: Node | null } | null"
35639
+ },
35640
+ "default": "null",
35641
+ "description": "Where the toaster stood before it followed a modal surface."
35642
+ },
34662
35643
  {
34663
35644
  "kind": "method",
34664
35645
  "name": "add",
@@ -34690,6 +35671,16 @@
34690
35671
  "kind": "method",
34691
35672
  "name": "connected"
34692
35673
  },
35674
+ {
35675
+ "kind": "method",
35676
+ "name": "disconnected"
35677
+ },
35678
+ {
35679
+ "kind": "method",
35680
+ "name": "#follow",
35681
+ "privacy": "private",
35682
+ "description": "Into the topmost modal surface while one is open; home again when none is."
35683
+ },
34693
35684
  {
34694
35685
  "kind": "method",
34695
35686
  "name": "update"