@zuccadev-labs/zuix-zout 0.0.0-stage → 0.2.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.
- package/CHANGELOG.md +80 -0
- package/LICENSE +21 -0
- package/README.md +123 -2
- package/dist/esm/cx.d.ts +2 -0
- package/dist/esm/cx.js +5 -0
- package/dist/esm/cx.js.map +1 -0
- package/dist/esm/dom/index.d.ts +53 -0
- package/dist/esm/dom/index.js +747 -0
- package/dist/esm/dom/index.js.map +1 -0
- package/dist/esm/index.d.ts +8 -0
- package/dist/esm/index.js +10 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/layouts/Page.d.ts +73 -0
- package/dist/esm/layouts/Page.js +34 -0
- package/dist/esm/layouts/Page.js.map +1 -0
- package/dist/esm/layouts/Rail.d.ts +23 -0
- package/dist/esm/layouts/Rail.js +11 -0
- package/dist/esm/layouts/Rail.js.map +1 -0
- package/dist/esm/layouts/ResizeHandle.d.ts +23 -0
- package/dist/esm/layouts/ResizeHandle.js +44 -0
- package/dist/esm/layouts/ResizeHandle.js.map +1 -0
- package/dist/esm/layouts/Shell.d.ts +67 -0
- package/dist/esm/layouts/Shell.js +98 -0
- package/dist/esm/layouts/Shell.js.map +1 -0
- package/dist/esm/layouts/SidePanel.d.ts +36 -0
- package/dist/esm/layouts/SidePanel.js +27 -0
- package/dist/esm/layouts/SidePanel.js.map +1 -0
- package/dist/esm/layouts/SplitPane.d.ts +27 -0
- package/dist/esm/layouts/SplitPane.js +75 -0
- package/dist/esm/layouts/SplitPane.js.map +1 -0
- package/dist/esm/layouts/TabStrip.d.ts +24 -0
- package/dist/esm/layouts/TabStrip.js +60 -0
- package/dist/esm/layouts/TabStrip.js.map +1 -0
- package/dist/esm/layouts/TitleBar.d.ts +24 -0
- package/dist/esm/layouts/TitleBar.js +11 -0
- package/dist/esm/layouts/TitleBar.js.map +1 -0
- package/dist/esm/logic.d.ts +60 -0
- package/dist/esm/logic.js +104 -0
- package/dist/esm/logic.js.map +1 -0
- package/dist/zout.css +975 -0
- package/dist/zout.dom.js +2 -0
- package/html.json +152 -0
- package/manifest.json +838 -0
- package/package.json +93 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Cambios de @zuccadev-labs/zuix-zout
|
|
2
|
+
|
|
3
|
+
Formato: [Keep a Changelog](https://keepachangelog.com/es-ES/1.1.0/). Versionado: semver, con la misma
|
|
4
|
+
versión en toda la suite ([Versionado](https://github.com/zuccadev-labs/zuix/blob/main/docs/package/01-versionado.md)).
|
|
5
|
+
|
|
6
|
+
## [Sin publicar]
|
|
7
|
+
|
|
8
|
+
## [0.2.0] - 2026-11-18
|
|
9
|
+
|
|
10
|
+
Qué hay que tocar en una aplicación está en la [guía de actualización](https://github.com/zuccadev-labs/zuix/blob/main/docs/users/08-actualizar-de-0-1-a-0-2.md).
|
|
11
|
+
|
|
12
|
+
### Cambios incompatibles
|
|
13
|
+
|
|
14
|
+
- Node 22.12 o posterior (antes, 20). Node 20 terminó su soporte el 2026-04-30.
|
|
15
|
+
- `TitleBar` es un `<header>` (región `banner`) en lugar de un `<div>`. Las clases no cambian; `as="div"`
|
|
16
|
+
recupera el elemento anterior.
|
|
17
|
+
- El tirador de los paneles del `Shell` usa `data-side="end"` (sidebar) y `"start"` (inspector) en lugar de
|
|
18
|
+
`right` y `left`. Afecta a quien escribió el marcado a mano o tiene selectores sobre ese atributo.
|
|
19
|
+
- `.z-shell` es un contenedor de consultas (`container: z-shell / inline-size`). Antes de medirse (HTML de
|
|
20
|
+
servidor, o antes de `init()`), un panel `auto` que no cabe no se muestra: una ventana estrecha ya no
|
|
21
|
+
enseña un instante los paneles acoplados.
|
|
22
|
+
- El botón de cierre de una pestaña mide 24 × 24 px (antes 18): el mínimo de WCAG 2.5.8.
|
|
23
|
+
- El eyebrow de `PageHeader` usa `--z-accent-text` y el contador del rail `--z-danger-solid`, para llegar a
|
|
24
|
+
4.5:1. Cambia su tono.
|
|
25
|
+
|
|
26
|
+
### Añadido
|
|
27
|
+
|
|
28
|
+
- `Shell`: `skipLinkLabel` (enlace para saltar al contenido, WCAG 2.4.1), `mainAs` (`main`, `div` o
|
|
29
|
+
`section`, para shells anidados o varios en una página) y `resizeLabel` en cada panel.
|
|
30
|
+
- `ResizeHandle`: lados lógicos `start` y `end`, que siguen la dirección de escritura, y `controls`
|
|
31
|
+
(`aria-controls`). En HTML: `data-side="start|end"`.
|
|
32
|
+
- `SplitPane`: Inicio y Fin llevan el divisor a su mínimo y a su máximo; doble clic reparte a partes iguales
|
|
33
|
+
los dos paneles; cada divisor lleva `aria-controls`.
|
|
34
|
+
- `TabStrip`: `controls` en cada pestaña (`aria-controls` del panel).
|
|
35
|
+
- `TitleBar`: prop `as` (`header` o `div`). `PageHeader` y `PageSection`: `headingLevel`.
|
|
36
|
+
- `@zuccadev-labs/zuix-zout/dom`: `dispose(root)` suelta los observadores de un bloque de marcado;
|
|
37
|
+
`hydrate()` completa un `.z-resize` escrito solo con su clase (rol, orientación, límites).
|
|
38
|
+
- Colores forzados (contraste alto de Windows): foco, elemento activo del rail, pestaña seleccionada,
|
|
39
|
+
divisores y cajones se distinguen con contornos y colores del sistema.
|
|
40
|
+
|
|
41
|
+
### Corregido
|
|
42
|
+
|
|
43
|
+
- RTL: los cajones, el tirador, el arrastre y las flechas de `SplitPane`, y las flechas de `TabStrip`,
|
|
44
|
+
siguen la dirección de escritura; la hoja usa propiedades lógicas.
|
|
45
|
+
- `Shell` (React): Escape no cierra el cajón si lo gestiona un `<dialog>` o un popover abierto por encima.
|
|
46
|
+
- `ResizeHandle` y `SplitPane` (React): solo arrastra el botón principal; el arrastre termina si se pierde
|
|
47
|
+
la captura del puntero.
|
|
48
|
+
- `@zuccadev-labs/zuix-zout/dom`: un selector inválido en `data-z-shell` o `data-z-resize` ya no lanza una
|
|
49
|
+
excepción; un shell retirado del documento deja de observarse; los iconos se crean con el DOM (compatible
|
|
50
|
+
con Trusted Types); `data-z-shell="#id"` manda sobre el shell que contiene al botón.
|
|
51
|
+
- El foco de los controles de layout sigue visible con colores forzados.
|
|
52
|
+
|
|
53
|
+
## [0.1.0] - 2026-11-14
|
|
54
|
+
|
|
55
|
+
Primera versión publicada.
|
|
56
|
+
|
|
57
|
+
### Añadido
|
|
58
|
+
|
|
59
|
+
- 10 layouts: `Shell`, `Rail`, `SidePanel`, `Sidebar`, `SplitPane`, `TabStrip`, `TitleBar`, `ResizeHandle`,
|
|
60
|
+
`Page` (con `PageHeader`, `PageSection`, `Container`, `Stack`, `Inline`) y `Grid`. La lista con props, tokens
|
|
61
|
+
y clases está en `manifest.json`.
|
|
62
|
+
- Contrato HTML de cada layout en `html.json` y estilos en `@zuccadev-labs/zuix-zout/styles.css` (capa `zout`; requiere
|
|
63
|
+
antes los tokens y `@zuccadev-labs/zuix-zui/styles.css`).
|
|
64
|
+
- `@zuccadev-labs/zuix-zout/dom`: `Shell` responsive, `ResizeHandle`, `SplitPane`, `TabStrip` y secciones de `Sidebar` sin
|
|
65
|
+
framework.
|
|
66
|
+
- `@zuccadev-labs/zuix-zout`: binding de React 19. React es un peer opcional.
|
|
67
|
+
- `@zuccadev-labs/zuix-zicon` es `peerDependency`: la aplicación lo instala junto a este paquete y hay una sola copia
|
|
68
|
+
del registro de iconos.
|
|
69
|
+
- `dist/zout.css` y `dist/zout.dom.js`: listos para enlazar sin bundler.
|
|
70
|
+
- Salida de publicación: ESM compilado módulo a módulo con declaraciones en `dist/esm/`, y `"use client"`
|
|
71
|
+
en los módulos con estado o eventos.
|
|
72
|
+
- `README.md` en el paquete publicado.
|
|
73
|
+
|
|
74
|
+
### Táctil
|
|
75
|
+
|
|
76
|
+
- Con puntero principal grueso (`@media (pointer: coarse)`), la zona de agarre de `ResizeHandle` y de los divisores
|
|
77
|
+
de `SplitPane` crece hasta `--z-touch-target` (40 px) sin cambiar la línea dibujada, y las pestañas de
|
|
78
|
+
`TabStrip` y su botón de alta llegan a ese alto. Los botones de `TitleBar`, `Rail` y `Sidebar` crecen con los
|
|
79
|
+
tokens de control.
|
|
80
|
+
- Todas las reglas `:hover` van dentro de `@media (hover: hover)`: sin hover pegajoso en pantallas táctiles.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 David Euclides Zuccarini Barrueta (devzucca / zuccadev)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,124 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @zuccadev-labs/zuix-zout
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Layouts and dynamic windows for the zuix suite. It solves the structure of the screen (shell, panels, work
|
|
4
|
+
tabs, grids) and draws no content. Measures and material come from the tokens.
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
pnpm add @zuccadev-labs/zuix-zout @zuccadev-labs/zuix-zui @zuccadev-labs/zuix-tokens @zuccadev-labs/zuix-zicon
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
`@zuccadev-labs/zuix-zicon` is a required peer. `react` and `react-dom` 19 are optional peers: only the
|
|
13
|
+
binding needs them (`pnpm add react react-dom`). The suite packages are installed and upgraded together, at
|
|
14
|
+
the same version. Requires Node 22.12 or later.
|
|
15
|
+
|
|
16
|
+
To install everything with a single dependency: [`@zuccadev-labs/zuix`](https://www.npmjs.com/package/@zuccadev-labs/zuix).
|
|
17
|
+
|
|
18
|
+
## Pieces
|
|
19
|
+
|
|
20
|
+
| Piece | What it does |
|
|
21
|
+
|---|---|
|
|
22
|
+
| `Shell` | The overall structure: title bar, rail, sidebar, main area, inspector |
|
|
23
|
+
| `Rail`, `RailItem` | Narrow bar for primary navigation |
|
|
24
|
+
| `Sidebar`, `SidebarSection` | Secondary navigation as an accordion |
|
|
25
|
+
| `SidePanel` | Panel with a title, a scrolling body and a footer |
|
|
26
|
+
| `SplitPane`, `Pane` | Split panes with draggable dividers |
|
|
27
|
+
| `TabStrip` | Work tabs with close and add |
|
|
28
|
+
| `TitleBar` | Header for frameless windows. It is a `<header>` |
|
|
29
|
+
| `ResizeHandle` | Resize handle |
|
|
30
|
+
| `Page`, `PageHeader`, `PageSection`, `Container` | Page with a header and sections |
|
|
31
|
+
| `Grid`, `Stack`, `Inline` | Intrinsic grid, stack and row |
|
|
32
|
+
|
|
33
|
+
## With React
|
|
34
|
+
|
|
35
|
+
```tsx
|
|
36
|
+
import "@zuccadev-labs/zuix-tokens/tokens.css";
|
|
37
|
+
import "@zuccadev-labs/zuix-zui/styles.css";
|
|
38
|
+
import "@zuccadev-labs/zuix-zout/styles.css";
|
|
39
|
+
import "@zuccadev-labs/zuix-zicon/all"; // registers the icons
|
|
40
|
+
import { useState } from "react";
|
|
41
|
+
import { Shell, Sidebar, SidebarSection, Page, PageHeader, Grid } from "@zuccadev-labs/zuix-zout";
|
|
42
|
+
|
|
43
|
+
export function App() {
|
|
44
|
+
const [open, setOpen] = useState(true);
|
|
45
|
+
return (
|
|
46
|
+
<div style={{ height: "100vh" }}>
|
|
47
|
+
<Shell
|
|
48
|
+
sidebar={{ label: "Navigation", open, content: <Sidebar><SidebarSection title="Projects">…</SidebarSection></Sidebar> }}
|
|
49
|
+
onCloseOverlay={() => setOpen(false)}
|
|
50
|
+
>
|
|
51
|
+
<Page header={<PageHeader title="Overview" />}>
|
|
52
|
+
<Grid min={200}>…</Grid>
|
|
53
|
+
</Page>
|
|
54
|
+
</Shell>
|
|
55
|
+
</div>
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
The `Shell` needs a container with a defined height. `skipLinkLabel` adds a "skip to content" link, and
|
|
61
|
+
`mainAs` lets a nested shell avoid a second `<main>`.
|
|
62
|
+
|
|
63
|
+
## Without React
|
|
64
|
+
|
|
65
|
+
The markup of every layout is in `@zuccadev-labs/zuix-zout/html.json`. The behavior (shell drawers, dividers,
|
|
66
|
+
work tabs) comes from `@zuccadev-labs/zuix-zout/dom`:
|
|
67
|
+
|
|
68
|
+
```js
|
|
69
|
+
import "@zuccadev-labs/zuix-tokens/tokens.css";
|
|
70
|
+
import "@zuccadev-labs/zuix-zui/styles.css";
|
|
71
|
+
import "@zuccadev-labs/zuix-zout/styles.css";
|
|
72
|
+
import { init } from "@zuccadev-labs/zuix-zout/dom";
|
|
73
|
+
|
|
74
|
+
init();
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Without a bundler, link `dist/zout.css` and `dist/zout.dom.js`, both included in the package.
|
|
78
|
+
|
|
79
|
+
## Responsive behavior
|
|
80
|
+
|
|
81
|
+
The `Shell` measures its own width, not the screen:
|
|
82
|
+
|
|
83
|
+
| Shell width | Sidebar | Inspector |
|
|
84
|
+
|---|---|---|
|
|
85
|
+
| 1180 px or more | Docked | Docked |
|
|
86
|
+
| 880 to 1179 px | Docked | Drawer |
|
|
87
|
+
| Less than 880 px | Drawer | Drawer |
|
|
88
|
+
|
|
89
|
+
## Keyboard, pointer and direction
|
|
90
|
+
|
|
91
|
+
- `SplitPane` dividers and `ResizeHandle` move with the arrow keys; Home and End take them to their minimum
|
|
92
|
+
and maximum. Double-click resets a handle or splits two panes evenly.
|
|
93
|
+
- `TabStrip` switches tabs with the arrow keys, Home and End, and closes the active tab with Delete.
|
|
94
|
+
- With `dir="rtl"`, drawers, handles and arrow keys follow the writing direction. Handle sides are named
|
|
95
|
+
`start` and `end`.
|
|
96
|
+
- With a coarse pointer, the grab area of handles and dividers grows to 40 px.
|
|
97
|
+
|
|
98
|
+
## Entry points
|
|
99
|
+
|
|
100
|
+
| Entry | Contents |
|
|
101
|
+
|---|---|
|
|
102
|
+
| `@zuccadev-labs/zuix-zout` | React layouts and their types |
|
|
103
|
+
| `@zuccadev-labs/zuix-zout/dom` | Framework-free behavior: `init`, `hydrate`, `dispose`, `setPanelOpen`, `setSplitSizes`, `addWorkTab`… |
|
|
104
|
+
| `@zuccadev-labs/zuix-zout/styles.css` | Styles |
|
|
105
|
+
| `@zuccadev-labs/zuix-zout/manifest.json`, `@zuccadev-labs/zuix-zout/html.json` | Props, classes and markup, for tools and agents |
|
|
106
|
+
| `@zuccadev-labs/zuix-zout/dist/zout.css`, `@zuccadev-labs/zuix-zout/dist/zout.dom.js` | Bundles to link without a bundler |
|
|
107
|
+
|
|
108
|
+
## Documentation
|
|
109
|
+
|
|
110
|
+
The guides are written in Spanish.
|
|
111
|
+
|
|
112
|
+
- [Layouts guide](https://github.com/zuccadev-labs/zuix/blob/main/docs/users/04-zout.md)
|
|
113
|
+
- [Using zuix with other frameworks, or with none](https://github.com/zuccadev-labs/zuix/blob/main/docs/users/06-frameworks.md)
|
|
114
|
+
- [Upgrading from 0.1 to 0.2](https://github.com/zuccadev-labs/zuix/blob/main/docs/users/08-actualizar-de-0-1-a-0-2.md)
|
|
115
|
+
- [Changelog](https://github.com/zuccadev-labs/zuix/blob/main/zout/CHANGELOG.md)
|
|
116
|
+
|
|
117
|
+
## Español
|
|
118
|
+
|
|
119
|
+
Layouts y ventanas dinámicas de la suite zuix. La guía está en español en
|
|
120
|
+
[`docs/users/04-zout.md`](https://github.com/zuccadev-labs/zuix/blob/main/docs/users/04-zout.md).
|
|
121
|
+
|
|
122
|
+
## License
|
|
123
|
+
|
|
124
|
+
[MIT](https://github.com/zuccadev-labs/zuix/blob/main/LICENSE).
|
package/dist/esm/cx.d.ts
ADDED
package/dist/esm/cx.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cx.js","sourceRoot":"","sources":["../../src/cx.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,MAAM,UAAU,EAAE,CAAC,GAAG,KAA+C;IACnE,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzC,CAAC","sourcesContent":["/** Une nombres de clase; descarta valores vacíos. */\nexport function cx(...parts: Array<string | false | null | undefined>): string {\n return parts.filter(Boolean).join(\" \");\n}\n"]}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type PanelMode } from "../logic.js";
|
|
2
|
+
export type { PanelMode } from "../logic.js";
|
|
3
|
+
export type ShellSide = "sidebar" | "inspector";
|
|
4
|
+
export type ShellModes = Record<ShellSide, PanelMode>;
|
|
5
|
+
/** Modo que corresponde a cada panel según el ancho medido, esté abierto o no. `null` si el shell no está activo. */
|
|
6
|
+
export declare function getShellModes(shell: HTMLElement): ShellModes | null;
|
|
7
|
+
/** Abre o cierra un panel del shell. Abrir uno cierra el otro si está en cajón: nunca hay dos cajones a la vez. */
|
|
8
|
+
export declare function setPanelOpen(shell: HTMLElement, side: ShellSide, open: boolean): void;
|
|
9
|
+
export declare function togglePanel(shell: HTMLElement, side: ShellSide): void;
|
|
10
|
+
/** Cierra el cajón abierto (lo que hacen Escape y el velo). Devuelve si había alguno. */
|
|
11
|
+
export declare function closeDrawers(shell: HTMLElement): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Lleva el panel de un tirador a `size` px (acotado a su mínimo y máximo). En un panel del shell escribe
|
|
14
|
+
* `--z-shell-panel-width`, como el binding de React; en otro elemento, su ancho o alto (o la variable de `data-var`).
|
|
15
|
+
*/
|
|
16
|
+
export declare function resizeTo(handle: HTMLElement, size: number): void;
|
|
17
|
+
/** Reparto actual, una fracción por panel (el `flex-grow` de cada uno). */
|
|
18
|
+
export declare function getSplitSizes(split: HTMLElement): number[];
|
|
19
|
+
/** Fija el reparto sin emitir `z:resize`. */
|
|
20
|
+
export declare function setSplitSizes(split: HTMLElement, sizes: number[]): void;
|
|
21
|
+
export interface WorkTabInit {
|
|
22
|
+
id: string;
|
|
23
|
+
title: string;
|
|
24
|
+
/** Nombre de un icono de zicon, a la izquierda del título. */
|
|
25
|
+
icon?: string;
|
|
26
|
+
closable?: boolean;
|
|
27
|
+
closeLabel?: string;
|
|
28
|
+
/** Id del panel que muestra la pestaña (`aria-controls`). */
|
|
29
|
+
controls?: string;
|
|
30
|
+
/** Selecciona la pestaña al añadirla. Por defecto, true. */
|
|
31
|
+
select?: boolean;
|
|
32
|
+
}
|
|
33
|
+
/** Activa una pestaña de trabajo por su `data-tab-id`. Emite `z:select`; devuelve false si no existe o se canceló. */
|
|
34
|
+
export declare function selectWorkTab(strip: HTMLElement, id: string): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Cierra una pestaña: emite `z:close` y, si no se cancela, retira la pestaña, oculta su panel (`aria-controls`) y
|
|
37
|
+
* activa la vecina cuando era la activa.
|
|
38
|
+
*/
|
|
39
|
+
export declare function closeWorkTab(strip: HTMLElement, id: string): boolean;
|
|
40
|
+
/** Añade una pestaña con el marcado del contrato. Devuelve su botón, o null si el id ya existe. */
|
|
41
|
+
export declare function addWorkTab(strip: HTMLElement, { id, title, icon, closable, closeLabel, controls, select }: WorkTabInit): HTMLElement | null;
|
|
42
|
+
/** Abre o pliega una sección de sidebar (`.z-sidebar__section`). */
|
|
43
|
+
export declare function setSectionOpen(section: HTMLElement, open: boolean): void;
|
|
44
|
+
/** Prepara el marcado bajo `[data-z-dom]`: mide los shells, completa divisores y pestañas. Repetible. */
|
|
45
|
+
export declare function hydrate(root?: ParentNode): void;
|
|
46
|
+
/**
|
|
47
|
+
* Suelta lo que este módulo guarda de los layouts de `root` (observadores de tamaño y estado de shells): se llama
|
|
48
|
+
* antes de retirar del documento un bloque de marcado en una aplicación que monta y desmonta vistas. Los
|
|
49
|
+
* manejadores de eventos son del documento y no dependen de ningún elemento: no hay nada más que soltar.
|
|
50
|
+
*/
|
|
51
|
+
export declare function dispose(root?: ParentNode): void;
|
|
52
|
+
/** Conecta el comportamiento. Idempotente; llamar una vez al cargar. */
|
|
53
|
+
export declare function init(): void;
|