@slotted/angular 0.1.0-beta.25 → 0.1.0-beta.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/app-shell.json +1 -1
- package/docs/app-shell.md +1 -1
- package/docs/dialog.json +1 -1
- package/docs/dialog.props.md +1 -1
- package/docs/drawer.json +1 -1
- package/docs/drawer.md +1 -1
- package/package.json +3 -3
package/docs/app-shell.json
CHANGED
|
@@ -442,7 +442,7 @@
|
|
|
442
442
|
"type": "'close' | 'none'",
|
|
443
443
|
"defaultValue": "close",
|
|
444
444
|
"appliesTo": "slAppShell, provideAppShellDefaults",
|
|
445
|
-
"description": "The platform's way back — a phone's gesture, a browser's button — closes the layer instead of leaving the page, while it is modal: @slotted/core/dismissable-layer holds one
|
|
445
|
+
"description": "The platform's way back — a phone's gesture, a browser's button — closes the layer instead of leaving the page, while it is modal: @slotted/core/dismissable-layer holds one close watcher per modal layer where the browser has CloseWatcher, and one history entry elsewhere, and answers the way back with the reason back"
|
|
446
446
|
},
|
|
447
447
|
{
|
|
448
448
|
"name": "closeOnNavigate",
|
package/docs/app-shell.md
CHANGED
|
@@ -152,7 +152,7 @@ export class AppShellBasic {}
|
|
|
152
152
|
| `modal` | `boolean` | true | slAppShell, provideAppShellDefaults | Whether an overlaid region contains focus and makes every other region inert. Only the overlaid modes read it, and it applies to whichever layer is open |
|
|
153
153
|
| `escape` | `'close' \| 'none'` | close | slAppShell, provideAppShellDefaults | Whether Escape closes an overlaid region. Registered in the capture phase by @slotted/core/dismissable-layer, so a handler inside the panel runs after the layer has already asked |
|
|
154
154
|
| `outsidePress` | `'close' \| 'none'` | close | slAppShell, provideAppShellDefaults | Whether a press outside an overlaid panel closes it |
|
|
155
|
-
| `back` | `'close' \| 'none'` | close | slAppShell, provideAppShellDefaults | The platform's way back — a phone's gesture, a browser's button — closes the layer instead of leaving the page, while it is modal: @slotted/core/dismissable-layer holds one
|
|
155
|
+
| `back` | `'close' \| 'none'` | close | slAppShell, provideAppShellDefaults | The platform's way back — a phone's gesture, a browser's button — closes the layer instead of leaving the page, while it is modal: @slotted/core/dismissable-layer holds one close watcher per modal layer where the browser has CloseWatcher, and one history entry elsewhere, and answers the way back with the reason back |
|
|
156
156
|
| `closeOnNavigate` | `boolean` | true | slAppShell, provideAppShellDefaults | Whether a click on an a[href] inside the overlaid navigation closes it, with the reason select — a router’s preventDefault included, an aria-disabled link excluded. Without it a phone costs two taps per destination |
|
|
157
157
|
| `messages` | `Partial<AppShellMessages>` | — | slAppShell | Words laid over the language in force, key by key — aside, close, closeAside, nav, open, openAside, progress, resizeAside, skipToAside, skipToMain, skipToNav: the two regions’ accessible names, the two controls’ labels in each state, the wait’s name, the pane edge’s name, and the three skip links. An aria-label written on the element itself still wins |
|
|
158
158
|
| `loading` | `boolean` | true | slAppShellProgress | Whether the next page is on its way. The bar appears once it has lasted delay (200 ms), stays at least minDuration (400 ms), and main carries aria-busy for exactly that long; an aria-busy written on main wins. value, min, max, buffer, valueText, label, tone, size (sm by default), delay and minDuration reach the bar, (withdraw) reports the moment it goes, and provideProgressIndicatorDefaults() wins over the shell’s timing |
|
package/docs/dialog.json
CHANGED
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
"type": "'close' | 'none'",
|
|
352
352
|
"defaultValue": "close",
|
|
353
353
|
"appliesTo": "sl-dialog, provideDialogDefaults",
|
|
354
|
-
"description": "Whether the browser’s way back, a back button or a phone’s back gesture, closes a modal dialog instead of leaving the page. Each open modal dialog adds one history entry
|
|
354
|
+
"description": "Whether the browser’s way back, a back button or a phone’s back gesture, closes a modal dialog instead of leaving the page. Each open modal dialog holds one close watcher where the browser has CloseWatcher, and adds one history entry elsewhere; the close request carries the reason back. A dialog opened without a press shares the way back with the layer opened before it."
|
|
355
355
|
},
|
|
356
356
|
{
|
|
357
357
|
"name": "surface",
|
package/docs/dialog.props.md
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
| `value` | `string` | — | slDialogClose, slAlertDialogCancel, slAlertDialogAction | The result this button closes the dialog with, read from request.result in (openChangeRequest) and from (closed). slAlertDialogCancel defaults to "cancel" and slAlertDialogAction to "confirm". |
|
|
23
23
|
| `modal` | `boolean` | true | sl-dialog, provideDialogDefaults | Whether the page behind is inert, its scroll locked and focus kept inside the panel. false does none of this, paints no scrim, lets the pointer reach the page and writes no aria-modal. |
|
|
24
24
|
| `outsidePress` | `'close' \| 'none'` | close | sl-dialog, provideDialogDefaults | Whether a press outside the panel asks the dialog to close. sl-alert-dialog fixes it at none. |
|
|
25
|
-
| `back` | `'close' \| 'none'` | close | sl-dialog, provideDialogDefaults | Whether the browser’s way back, a back button or a phone’s back gesture, closes a modal dialog instead of leaving the page. Each open modal dialog adds one history entry
|
|
25
|
+
| `back` | `'close' \| 'none'` | close | sl-dialog, provideDialogDefaults | Whether the browser’s way back, a back button or a phone’s back gesture, closes a modal dialog instead of leaving the page. Each open modal dialog holds one close watcher where the browser has CloseWatcher, and adds one history entry elsewhere; the close request carries the reason back. A dialog opened without a press shares the way back with the layer opened before it. |
|
|
26
26
|
| `surface` | `'panel' \| 'plain'` | panel | sl-dialog, provideDialogDefaults | Whether sl-dialog paints the panel. plain removes the background, border, radius, shadow, rows and padding, and keeps the portal, the scrim, focus handling and the dismissal policy, for a panel of your own such as a slCard or an image viewer. A plain panel does not keep its footer on screen for a long body. |
|
|
27
27
|
| `fullScreen` | `'never' \| 'narrow' \| 'always'` | narrow | sl-dialog, provideDialogDefaults | When the panel fills the whole layer, without margins or radius. narrow does so while the layer is narrower than 480 pixels, measured with a container query on the layer. |
|
|
28
28
|
| `fullscreenToggle` | `boolean` | false | sl-dialog | Adds a button to slDialogHeader that expands the panel to the whole layer and restores it, for content the reader wants more room for. |
|
package/docs/drawer.json
CHANGED
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
"type": "'close' | 'none'",
|
|
293
293
|
"defaultValue": "close",
|
|
294
294
|
"appliesTo": "<sl-drawer>, provideDrawerDefaults",
|
|
295
|
-
"description": "Whether the browser’s back button or a phone’s back gesture closes a modal drawer instead of leaving the page. The drawer holds one
|
|
295
|
+
"description": "Whether the browser’s back button or a phone’s back gesture closes a modal drawer instead of leaving the page. The drawer holds one close watcher while it is open where the browser has CloseWatcher, and one history entry elsewhere; a drawer opened without a press shares the way back with the layer opened before it. It has no effect under mode=\"inline\"."
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
298
|
"name": "drag",
|
package/docs/drawer.md
CHANGED
|
@@ -139,7 +139,7 @@ export class DrawerBasic {
|
|
|
139
139
|
| `modal` | `boolean` | true | <sl-drawer>, provideDrawerDefaults | Whether the page behind is inert, its scroll is locked and focus is contained in the panel, and whether the panel carries aria-modal. The scrim is painted either way. Always false under mode="inline". |
|
|
140
140
|
| `escape` | `'close' \| 'none'` | close | <sl-drawer>, provideDrawerDefaults | Whether Escape asks to close the drawer. Escape reaches only the topmost layer, and a layer that refuses it does not pass it to the one below. |
|
|
141
141
|
| `outsidePress` | `'close' \| 'none'` | close | <sl-drawer>, provideDrawerDefaults | Whether a press outside the layer, the scrim included, asks to close the drawer. It has no effect under mode="inline". |
|
|
142
|
-
| `back` | `'close' \| 'none'` | close | <sl-drawer>, provideDrawerDefaults | Whether the browser’s back button or a phone’s back gesture closes a modal drawer instead of leaving the page. The drawer holds one
|
|
142
|
+
| `back` | `'close' \| 'none'` | close | <sl-drawer>, provideDrawerDefaults | Whether the browser’s back button or a phone’s back gesture closes a modal drawer instead of leaving the page. The drawer holds one close watcher while it is open where the browser has CloseWatcher, and one history entry elsewhere; a drawer opened without a press shares the way back with the layer opened before it. It has no effect under mode="inline". |
|
|
143
143
|
| `drag` | `'panel' \| 'resizer'` | panel | <sl-drawer>, provideDrawerDefaults | What a touch moves a bottom sheet by: panel, anywhere on the panel, the sheet and its content scrolling as one; or resizer, the separator only, the body scrolling on its own at the highest stop. A mouse drags the separator, and the sheet settles on the nearest stop. |
|
|
144
144
|
| `scrimFrom` | `number` | 0 | <sl-drawer> | While the measure is below this fraction, the scrim is not painted, a press reaches the page, and the root carries data-undimmed. Use it with [modal]="false" and outsidePress="none". |
|
|
145
145
|
| `loading` | `boolean` | false | <sl-drawer> | Marks the body as busy with aria-busy and gives it a minimum height, so the panel does not jump when the content arrives. The header, the ✕, Escape and the separator stay available. |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slotted/angular",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.26",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"@angular/common": ">=22.1.0 <23",
|
|
17
17
|
"@angular/core": ">=22.1.0 <23",
|
|
18
18
|
"@angular/forms": ">=22.1.0 <23",
|
|
19
|
-
"@slotted/core": "0.1.0-beta.
|
|
20
|
-
"@slotted/theme": "0.1.0-beta.
|
|
19
|
+
"@slotted/core": "0.1.0-beta.26",
|
|
20
|
+
"@slotted/theme": "0.1.0-beta.26"
|
|
21
21
|
},
|
|
22
22
|
"module": "fesm2022/slotted-angular.mjs",
|
|
23
23
|
"typings": "types/slotted-angular.d.ts",
|