Skip to content

Releases

v2.3.1 — Gridory

Choose a tag to compare

@VictorDiazJauregui VictorDiazJauregui released this 19 Nov 22:31
47e533c

Patch release of Gridory: the lists of CountrySelect and PhoneInput scroll with the mouse wheel and with a
finger inside a modal. No props, types or exports change, and outside a modal everything works as in 2.3.0.

English · Español

English

Upgrade

npm install gridory@2.3.1

No code changes needed.

Fixed

  • Wheel and touch scrolling inside a modal. Inside a modal that locks the page scroll (Radix Dialog,
    AlertDialog and Sheet, shadcn's included, or react-remove-scroll), the country list of CountrySelect and the
    dial code list of PhoneInput did not move with the mouse wheel or a finger; the keyboard and the scrollbar did.
    The lock cancels any wheel or touch move that starts outside the dialog, and the panel renders in a portal under
    <body>. Now the panel keeps those gestures and the list scrolls; the page and the dialog behind it stay still,
    also at the end of the list. It covers the phone field of LoginForm and SignUpForm too.

Good to know

  • The wheel and touch moves that start over an open panel no longer reach document: a wheel or touchmove
    listener there, or a React onWheel/onTouchMove on an ancestor, does not receive them.
  • Outside a modal nothing changes: at the end of the list the wheel goes on to scroll the page, as before.

See the Country select
and Phone input guides.

Español

Actualizar

npm install gridory@2.3.1

No hace falta cambiar código.

Corregido

  • Rueda y dedo dentro de un modal. Dentro de un modal que bloquea el desplazamiento de la página (Dialog,
    AlertDialog y Sheet de Radix, incluidos los de shadcn, o react-remove-scroll), la lista de países de
    CountrySelect y la de prefijos de PhoneInput no se movían con la rueda del mouse ni con el dedo; el teclado y la
    barra sí. El bloqueo cancela la rueda y los arrastres táctiles que nacen fuera de la ventana, y el panel se
    renderiza en un portal bajo <body>. Ahora el panel se queda con esos gestos y la lista se desplaza; la página y la
    ventana de atrás quedan quietas, también al llegar al final de la lista. Cubre también el teléfono de LoginForm y
    SignUpForm.

Para tener en cuenta

  • La rueda y los arrastres táctiles que nacen sobre un panel abierto ya no llegan a document: un listener de
    wheel o touchmove ahí, o un onWheel/onTouchMove de React en un ancestro, no los recibe.
  • Fuera de un modal no cambia nada: al llegar al final de la lista, la rueda sigue desplazando la página, como antes.

Ver las guías de Selector de país
y Teléfono.

v2.3.0 — Gridory

Choose a tag to compare

@VictorDiazJauregui VictorDiazJauregui released this 19 Nov 15:51
04cafdf

Minor release of Gridory: CountrySelect and PhoneInput cover what a form needs to replace its own country and
phone pickers, and the country catalog gets its own entry. Everything new is opt-in: without the new props both
controls render and emit exactly what they did in 2.2.0.

English · Español

English

Upgrade

npm install gridory@2.3.0

New

  • Country catalog: gridory/countries. CountryFlag, getCountryName(code, locale?), getDialCode(code),
    findCountryByDialCode(dialCode), listCountries(locale?) and isCountryCode, to show countries in a table, a
    card or a filter without loading the selects (about 2.5 KB gzip, no Radix, no icons). The 14 dial codes shared by
    several countries always give their most populous one, from a fixed table: +1 is the United States.
  • id and name. On the number of PhoneInput and on the combobox of CountrySelect: an outside
    <label htmlFor> works, and a form can move the focus to its first error by id or by name.
  • disabled. On both controls: native disabled on their buttons and inputs, an open list closes, the box
    carries data-disabled, and the look comes from --gdy-country-select-disabled-* and
    --gdy-phone-input-disabled-* (opacity 0.5 and the muted background by default).
  • "Not applicable" in CountrySelect. notApplicableOption adds it as the first option, single selection only.
    It is an answer, apart from null and from every country: required takes it. Its value is
    COUNTRY_NOT_APPLICABLE ("not-applicable") or your own notApplicableValue ("" works; a country code throws
    InvalidNotApplicableValueError, and mind that "NA" is Namibia). Its text, "No aplica" by default, is
    texts.notApplicable, and it is used in the list, the field and the search.
  • Number rule in PhoneInput. numberCharacters="digits" keeps digits only ("phone", the 2.2.0 rule, stays the
    default); maxNumberLength limits the length after that rule; splitPastedDialCode turns a pasted
    +51 987 654 321 into Peru in the prefix and 987654321 in the number, in a single onValueChange.
<CountrySelect id="country" name="country" required notApplicableOption disabled={isSaving} />
<PhoneInput id="whatsapp" name="whatsapp" numberCharacters="digits" maxNumberLength={9} splitPastedDialCode />

Good to know

  • The character rule and the maximum apply to what is typed or pasted; the initial value is shown as given. The rule
    filters the whole value on each change, as in 2.2.0: editing an old 987654321 / 912345678 in digits mode joins
    both numbers.
  • A paste is split only when it starts with +, the dial code is known and it replaces the whole number. Area codes
    are not read: a pasted +1 809… picks the United States unless a +1 country was already chosen.
  • Types: CountrySelectProps is now generic, CountrySelectProps<TNotApplicable = CountryNotApplicable>, and its
    union has a third member, NotApplicableCountrySelectProps. Rendering <CountrySelect … /> compiles as before,
    wrappers typed with CountrySelectProps included. Only code that reads props.value from a CountrySelectProps
    object sees the wider type. CountrySelectTexts.notApplicable is optional, so a full texts object written for
    2.2.0 still compiles.
  • In the selects nothing changes without the new props: same ids, no name, same list, same paste.

See the Country select,
Phone input and
Countries guides.

Español

Actualizar

npm install gridory@2.3.0

Novedades

  • Catálogo de países: gridory/countries. CountryFlag, getCountryName(code, locale?), getDialCode(code),
    findCountryByDialCode(dialCode), listCountries(locale?) e isCountryCode, para mostrar países en una tabla, una
    ficha o un filtro sin cargar los selectores (unos 2,5 KB gzip, sin Radix ni íconos). Los 14 prefijos que comparten
    varios países devuelven siempre el más poblado, de una tabla fija: +1 es EE. UU.
  • id y name. En el número de PhoneInput y en el combobox de CountrySelect: funciona un <label htmlFor>
    externo, y un formulario puede llevar el foco a su primer error por id o por nombre.
  • disabled. En los dos controles: disabled nativo en sus botones e inputs, la lista abierta se cierra, la caja
    lleva data-disabled y el aspecto sale de --gdy-country-select-disabled-* y --gdy-phone-input-disabled-*
    (opacidad 0,5 y el fondo apagado por defecto).
  • "No aplica" en CountrySelect. notApplicableOption la suma como primera opción, solo en selección simple. Es
    una respuesta, distinta de null y de cualquier país: required la acepta. Su valor es COUNTRY_NOT_APPLICABLE
    ("not-applicable") o tu propio notApplicableValue (sirve ""; un código de país lanza
    InvalidNotApplicableValueError, y ojo que "NA" es Namibia). Su texto, "No aplica" por defecto, es
    texts.notApplicable, y se usa en la lista, en el campo y en la búsqueda.
  • Regla del número en PhoneInput. numberCharacters="digits" guarda solo dígitos ("phone", la regla de la
    2.2.0, sigue por defecto); maxNumberLength limita el largo después de esa regla; splitPastedDialCode convierte un
    +51 987 654 321 pegado en Perú en el prefijo y 987654321 en el número, en un solo onValueChange.
<CountrySelect id="country" name="country" required notApplicableOption disabled={isSaving} />
<PhoneInput id="whatsapp" name="whatsapp" numberCharacters="digits" maxNumberLength={9} splitPastedDialCode />

Para tener en cuenta

  • La regla de caracteres y el máximo se aplican a lo que se escribe o se pega; el valor inicial se muestra tal cual.
    La regla filtra el valor entero en cada cambio, como en la 2.2.0: editar un 987654321 / 912345678 viejo en modo
    dígitos junta los dos números.
  • Un pegado se separa solo si empieza con +, el prefijo es conocido y reemplaza todo el número. No se leen códigos
    de área: un +1 809… pegado elige EE. UU. salvo que ya hubiera un país +1 elegido.
  • Tipos: CountrySelectProps ahora es genérico, CountrySelectProps<TNotApplicable = CountryNotApplicable>, y su
    unión tiene un tercer miembro, NotApplicableCountrySelectProps. Renderizar <CountrySelect … /> compila igual
    que antes, también desde envoltorios tipados con CountrySelectProps. Solo el código que lee props.value de un
    objeto CountrySelectProps ve el tipo más amplio. CountrySelectTexts.notApplicable es opcional, así un objeto de
    textos completo escrito para la 2.2.0 sigue compilando.
  • En los selectores nada cambia sin las props nuevas: mismos ids, sin name, la misma lista y el mismo pegado.

Ver las guías del Selector de país,
del Teléfono con prefijo y de
Países.

v2.2.0 — Gridory

Choose a tag to compare

@VictorDiazJauregui VictorDiazJauregui released this 09 Nov 16:26
59954d8

Minor release of Gridory: rows and cards can let the user select their text to copy it without opening them.
Everything new is opt-in: without the new prop the table and the card grid behave exactly as in 2.1.0.

English · Español

English

Upgrade

npm install gridory@2.2.0

New

  • Table and cards: select text without opening the row. Until now, dragging over the text of a row or a card to
    copy it (an email, a company, an amount) ended in a click that opened it, and the selection was lost.
    ignoreTextSelectionClick on DataTable and CardGrid makes that click be ignored: the text stays selected and
    onRowClick is not called, nor getRowHref followed. A plain click opens the row as always.
<DataTable columns={columns} data={quotes} onRowClick={openQuote} ignoreTextSelectionClick />

Good to know

  • Only text selected inside that row or card counts: a selection elsewhere on the page never blocks a click.
  • Opening the link in a new tab (Ctrl/Cmd + click, middle click), Enter and Ctrl/Cmd + Enter do not change.
  • Limits: the first click of a double click on a word still opens the row, and a click right on the text just
    selected first clears it; the next click opens the row.
  • If your app already checks the selection inside its own onRowClick, turn the prop on and remove that check: it
    now also covers rows that only use getRowHref.
  • ignoreRowClick on a column is still there and still turns that column off for every gesture.

See Row click and row links
in the table guide and Card click and card links
in the card grid guide.

A later major version may turn this behavior on by default.

Español

Actualizar

npm install gridory@2.2.0

Novedades

  • Tabla y tarjetas: seleccionar texto sin abrir la fila. Hasta ahora, arrastrar sobre el texto de una fila o de
    una tarjeta para copiarlo (un email, una empresa, un monto) terminaba en un clic que la abría, y la selección se
    perdía. ignoreTextSelectionClick en DataTable y CardGrid hace que ese clic se ignore: el texto queda
    seleccionado, no se llama a onRowClick ni se sigue getRowHref. Un clic simple abre la fila como siempre.
<DataTable columns={columns} data={quotes} onRowClick={openQuote} ignoreTextSelectionClick />

Para tener en cuenta

  • Solo cuenta el texto seleccionado dentro de esa fila o tarjeta: una selección en otra parte de la página nunca
    bloquea un clic.
  • Abrir el enlace en otra pestaña (Ctrl/Cmd + clic, rueda), Enter y Ctrl/Cmd + Enter no cambian.
  • Límites: el primer clic de un doble clic sobre una palabra todavía abre la fila, y un clic justo sobre el texto
    recién seleccionado primero lo deselecciona; el clic siguiente abre la fila.
  • Si tu app ya revisa la selección dentro de su propio onRowClick, activá la prop y borrá esa revisión: ahora
    también cubre las filas que solo usan getRowHref.
  • ignoreRowClick en una columna sigue existiendo y sigue apagando esa columna para todos los gestos.

Ver Clic en fila y filas como enlace
en la guía de la tabla y Clic en la tarjeta y tarjetas como enlace
en la guía de tarjetas.

Una próxima versión mayor podría traer este comportamiento activado por defecto.

v2.1.0 — Gridory

Choose a tag to compare

@VictorDiazJauregui VictorDiazJauregui released this 09 Nov 02:19
4d2190c

Minor release of Gridory: the kanban can fill the height of its container and size its columns. Everything new
is opt-in: without the new props the kanban renders the same markup, classes and styles as in 2.0.0, with 320px
columns, and nothing else changes.

English · Español

English

Upgrade

npm install gridory@2.1.0

New

  • Kanban: full height. fillHeight makes the board fill its parent's height, like the table's fillHeight:
    each column body stretches to the bottom and scrolls on its own, the page does not grow and the board keeps
    scrolling sideways when the columns do not fit. The parent must have a bounded height. While it is on,
    columnBodyMaxHeight and the minimum height of boardMinHeightClassName stop applying. Class .gdy-kanban-fill
    on the root.
  • Kanban: column width. columnWidth (px) sets the width of every open column, through the new
    --gdy-kanban-column-width token (default 320px). The prop writes the token on the root, so it wins over the
    same token on an ancestor; the token set on one column wins over the prop, which gives a single wider column
    without touching internal classes.
  • Kanban: automatic width. fillWidth shares the board's width equally among the open columns, never below
    columnWidth (or 320px): no empty strip on a wide screen, and a sideways scroll when the columns do not fit.
    Class .gdy-kanban-fill-width on the root.

Good to know

  • Collapsed columns keep their strip in every mode and take no part in the share; the columns shown while
    loading take the same width and height as the real ones.
  • On a phone one 320px column fits and the board scrolls sideways, as before. A columnWidth wider than the screen
    is not narrowed.
  • These props replace the usual patch on internal classes (flex on .gdy-kanban-column and
    max-height: none !important on .gdy-kanban-column-body), which a later version could break.
  • A JavaScript bundle that does not use the new props grows by about 0.1 KB gzipped, and the CSS by less than 0.1 KB.

See Column size in the kanban
guide; every guide is linked from the README.

Español

Actualizar

npm install gridory@2.1.0

Novedades

  • Kanban: alto completo. fillHeight hace que el tablero ocupe la altura de su padre, como el fillHeight de la
    tabla: el cuerpo de cada columna se estira hasta abajo y hace scroll propio, la página no crece y el tablero sigue
    haciendo scroll horizontal cuando las columnas no entran. El padre tiene que tener una altura acotada. Mientras
    está activa, columnBodyMaxHeight y la altura mínima de boardMinHeightClassName dejan de aplicar. Clase
    .gdy-kanban-fill en la raíz.
  • Kanban: ancho de las columnas. columnWidth (px) fija el ancho de cada columna abierta, con el token nuevo
    --gdy-kanban-column-width (por defecto 320px). La prop escribe el token en la raíz, así que gana al mismo token
    en un ancestro; el token puesto en una columna gana a la prop, lo que permite una sola columna más ancha sin tocar
    clases internas.
  • Kanban: ancho automático. fillWidth reparte el ancho del tablero en partes iguales entre las columnas
    abiertas, sin bajar de columnWidth (o 320px): sin franja vacía en una pantalla ancha y con scroll horizontal
    cuando las columnas no entran. Clase .gdy-kanban-fill-width en la raíz.

Para tener en cuenta

  • Las columnas colapsadas siguen siendo una franja en todos los modos y no entran en el reparto; las columnas que se
    muestran mientras loading toman el mismo ancho y alto que las reales.
  • En un celular entra una columna de 320px y el tablero hace scroll horizontal, como antes. Un columnWidth más
    ancho que la pantalla no se achica.
  • Estas props reemplazan el parche habitual sobre clases internas (flex en .gdy-kanban-column y
    max-height: none !important en .gdy-kanban-column-body), que una versión siguiente podía romper.
  • Un paquete de JavaScript que no usa las props nuevas crece unos 0,1 KB comprimidos, y el CSS menos de 0,1 KB.

Ver Tamaño de las columnas
en la guía del kanban; todas las guías están enlazadas desde el README.

v2.0.0 — Gridory

Choose a tag to compare

@VictorDiazJauregui VictorDiazJauregui released this 07 Nov 19:13
d62b066

Major release of Gridory. Only the changes listed under Breaking changes can require a change in your code;
each one has its section, with code before and after, in the
migration guide.

English · Español

English

Upgrade

npm install gridory@2.0.0

Breaking changes

  • Tailwind preset: the default export now carries the gdy prefix. The default export of
    gridory/tailwind-preset is now the same as createGridoryPreset(): bg-gdy-primary,
    text-gdy-muted-foreground, rounded-gdy-lg, and so on. The unprefixed preset of 1.x (bg-primary, rounded-lg
    mapped to Gridory tokens), deprecated since 1.1.0, is gone, and Tailwind does not warn about the classes it stops
    generating. The guide has the replacement table and a search command. createGridoryPreset({ prefix }) and
    InvalidPresetPrefixError do not change.
  • Table: columns keep a minimum width on narrow screens. Without responsiveColumns, a column with width
    keeps it and a column without width keeps its minWidth or 120px; the rows scroll sideways inside the table
    instead of squeezing. minWidth therefore also counts before any resize. The table element carries the sum as
    --gdy-table-min-width. Tables with responsiveColumns do not change.
  • Table: the actions column (⋯) is always 56px wide (96px with rowActions.columnLabel), pinned or not, on
    screen and printed without printMode. The other columns get the space it took in 1.x. To get the 1.x layout
    back: .gdy-table-grid { min-width: 0; } and .gdy-table-head-cell[data-column-id="_actions"] { width: auto; }.
  • Own calendar, without react-day-picker or date-fns. The date filter calendar looks and works with the
    keyboard as before, and month and day names come in any language (the browser writes them). calendarLocale
    takes a language tag ("en-US") or { code, options: { weekStartsOn } }, so a date-fns locale still works.
    react-day-picker, date-fns and @date-fns/tz are no longer installed with Gridory. The names a screen reader
    hears on the calendar buttons come from six new labels keys, in Spanish by default (1.x said them in English):
    calendarNavigation, calendarPreviousMonth, calendarNextMonth, calendarChooseMonth, calendarChooseYear,
    calendarToday. An app that types a full DataTableLabels, KanbanBoardLabels, DataViewLabels or
    CardGridLabels must add them. The calendar downloads 6.8 KB instead of 25.8.
  • Selects are the browser's <select>. The archived view, group, header selectors, page size, inline edit and
    the select field of SignUpForm keep the same closed box (size, colors, icon, placeholder), now
    <span class="gdy-select"><select class="gdy-select-trigger">; the open list is the system one and follows the
    dark theme. Removed: the SelectTheme keys contentBackground, optionText, optionHoverBackground,
    optionActiveBackground, contentClassName and itemClassName; the classes of the open list
    (gdy-select-content, -viewport, -item*, -scroll-*, -value) and their --gdy-select-content-* and
    --gdy-select-item-* tokens; .gdy-select-trigger[data-state="open"] no longer matches. Tests pick options with
    user.selectOptions.

Fixed

  • The table renders on a server. renderToString and next build no longer fail with
    window is not defined: a page with DataTable, KanbanBoard or CardGrid can be prerendered without
    next/dynamic and ssr: false.

Good to know

  • The row checkbox and the header help no longer download apart. Both come with the table from the first
    render, with the same look, keyboard and tooltip position; a test can read the tooltip with getByRole right
    after the click (findByRole keeps working). The checkbox markup does not change; the tooltip is no longer
    wrapped in [data-radix-popper-content-wrapper] (see the guide).
  • The first day of the week comes from the browser; Firefox cannot tell it, and there a tag starts on Monday
    ({ code: "en-US", options: { weekStartsOn: 0 } } sets it everywhere). A selected day's accessible name no longer
    ends in ", selected": aria-selected says it.
  • Bundle size of an app with the table and the kanban: JavaScript 142.1 KB gzip (147.7 in 1.5.0), calendar 6.8 KB
    (25.8), no separate checkbox or tooltip download (5.2 KB for apps that use them), CSS 18.3 KB (18.4).

See the migration guide; every
guide is linked from the README.

Español

Actualizar

npm install gridory@2.0.0

Cambios que rompen compatibilidad

  • Preset de Tailwind: el export por defecto ahora lleva el prefijo gdy. El export por defecto de
    gridory/tailwind-preset ahora es lo mismo que createGridoryPreset(): bg-gdy-primary,
    text-gdy-muted-foreground, rounded-gdy-lg, etc. El preset sin prefijo de la 1.x (bg-primary y rounded-lg
    apuntando a los tokens de Gridory), obsoleto desde la 1.1.0, ya no existe, y Tailwind no avisa de las clases que
    deja de generar. La guía trae la tabla de reemplazos y un comando para encontrarlas.
    createGridoryPreset({ prefix }) e InvalidPresetPrefixError no cambian.
  • Tabla: las columnas conservan un ancho mínimo en pantallas angostas. Sin responsiveColumns, una columna con
    width lo conserva y una sin width conserva su minWidth o 120 px; las filas se desplazan en horizontal dentro
    de la tabla en lugar de achicarse. Por eso minWidth también cuenta antes de redimensionar. El elemento table
    lleva la suma en --gdy-table-min-width. Las tablas con responsiveColumns no cambian.
  • Tabla: la columna de acciones (⋯) mide siempre 56 px (96 px con rowActions.columnLabel), fijada o no, en
    pantalla y al imprimir sin printMode. Las demás columnas reciben el espacio que se llevaba en la 1.x. Para volver
    a la disposición de la 1.x: .gdy-table-grid { min-width: 0; } y
    .gdy-table-head-cell[data-column-id="_actions"] { width: auto; }.
  • Calendario propio, sin react-day-picker ni date-fns. El calendario del filtro de fecha se ve y se usa con el
    teclado como antes, y los nombres de meses y días salen en cualquier idioma (los escribe el navegador).
    calendarLocale recibe una etiqueta de idioma ("en-US") o { code, options: { weekStartsOn } }, así que un
    locale de date-fns sigue sirviendo. react-day-picker, date-fns y @date-fns/tz ya no se instalan con Gridory.
    Los nombres que escucha un lector de pantalla en los botones del calendario salen de seis claves nuevas de
    labels, en español por defecto (la 1.x los decía en inglés): calendarNavigation, calendarPreviousMonth,
    calendarNextMonth, calendarChooseMonth, calendarChooseYear, calendarToday. Una app que tipa un
    DataTableLabels, KanbanBoardLabels, DataViewLabels o CardGridLabels completo tiene que agregarlas. El
    calendario descarga 6,8 KB en lugar de 25,8.
  • Los selectores son el <select> del navegador. La vista de archivadas, el agrupado, los selectores del
    encabezado, el tamaño de página, la edición en línea y el campo select de SignUpForm conservan la misma caja
    cerrada (tamaño, colores, ícono y placeholder), ahora <span class="gdy-select"><select class="gdy-select-trigger">;
    la lista abierta es la del sistema y sigue el tema oscuro. Se quitan las claves de SelectTheme
    contentBackground, optionText, optionHoverBackground, optionActiveBackground, contentClassName e
    itemClassName; las clases de la lista abierta (gdy-select-content, -viewport, -item*, -scroll-*,
    -value) y sus tokens --gdy-select-content-* y --gdy-select-item-*; .gdy-select-trigger[data-state="open"]
    ya no coincide con nada. Los tests eligen opciones con user.selectOptions.

Corregido

  • La tabla se dibuja en el servidor. renderToString y next build ya no fallan con window is not defined:
    una página con DataTable, KanbanBoard o CardGrid se puede prerenderizar sin next/dynamic ni ssr: false.

Para tener en cuenta

  • La casilla de las filas y la ayuda del encabezado ya no se descargan aparte. Las dos vienen con la tabla desde
    el primer render, con el mismo aspecto, el mismo teclado y la misma posición del tooltip; un test puede leer el
    tooltip con getByRole justo después del clic (findByRole sigue sirviendo). El marcado de la casilla no cambia;
    el tooltip ya no va dentro de [data-radix-popper-content-wrapper] (ver la guía).
  • El primer día de la semana lo da el navegador; Firefox no lo sabe, y ahí una etiqueta empieza en lunes
    ({ code: "en-US", options: { weekStartsOn: 0 } } lo fija en todos). El nombre accesible del día elegido ya no
    termina en ", selected": lo dice aria-selected.
  • Peso de una app con la tabla y el kanban: JavaScript 142,1 KB gzip (147,7 en la 1.5.0), calendario 6,8 KB (25,8),
    sin descarga aparte de la casilla ni del tooltip (5,2 KB para las apps que los usan), CSS 18,3 KB (18,4).

Ver la guía de migración; todas
las guías están enlazadas desde el README.

v1.5.0 — Gridory

Choose a tag to compare

@VictorDiazJauregui VictorDiazJauregui released this 06 Nov 04:40
67bed21

Minor release of Gridory: a card view, per-module stylesheets, a kanban whose search, filters and sort the
app can own, and three pieces that download only when they are used. Everything new is opt-in: without the new
component, props or stylesheets, the table and the kanban look and behave as in 1.4.2; only the moment some
pieces download changes (see Good to know).

English · Español

English

Upgrade

npm install gridory@1.5.0

New

  • Card view. CardGrid (from gridory/card-grid and gridory) shows the rows as a responsive grid of cards,
    with the search, filters, sort and pagination of the table. Its props: columns, data, normalizeRow,
    getRowId, features (search, sorting, filtering, pagination, rowActions, createButton),
    renderCard(row), onRowClick, getRowHref, pageSizeOptions, defaultPageSize (25), pageIndex,
    pageSize, onPaginationChange, onVisibleRowsChange, labels, className and classNames (root,
    toolbar, filterRow, list, card, pagination, empty), plus the controlled search, sorting and
    columnFilters and the toolbar props of DataTable and KanbanBoard, without viewSwitch. The default card is
    the kanban card, without dragging. Types: CardGridProps, CardGridLabels, CardGridClassNames,
    CardGridFeatures, CardClickEvent. Classes .gdy-card-grid, -list, -card (with data-clickable),
    -loading, -skeleton; tokens --gdy-card-grid-min, -gap, -padding, -focus-ring. A switch built with
    toggleGroups can alternate DataTable, CardGrid and KanbanBoard (see the guide).
  • Kanban: controlled search, filters and sort. KanbanBoard takes search / onSearchChange, sorting /
    onSortChange and columnFilters / onFiltersChange, with the same types and rules as DataTable.
    gridory/kanban also exports ColumnFiltersState and ColumnSortingState.
  • Per-module stylesheets. Besides gridory/styles.css, which still holds every module, gridory/base.css and
    one sheet per module: ai.css, auth.css, card-grid.css, country-select.css, table.css, kanban.css,
    segmented-control.css, phone-input.css, sidebar.css and markdown-editor.css. Import base.css first and
    then the sheets of the modules you render, in this order; all of them together are exactly styles.css. An app
    with the table and the kanban goes from 18.4 to 8.9 KB of gzipped CSS.
  • New labels and their default: dateLoadError "No se pudo cargar el calendario. Si sigue sin aparecer,
    recarga la página.", dateLoadRetry "Reintentar".

Good to know

  • Three pieces download when they are used, not with the page. The calendar of the date filter downloads
    when a date menu opens; until it arrives, the "Fechas" section shows boxes of the same size, with aria-busy
    and data-loading. The tooltip of headerTooltip and the checkbox of rowSelection download right after the
    first render of a table that uses them; the checkbox already toggles, and a press on the "?" opens the tooltip
    on arrival. Nothing moves meanwhile. An app with the table and the kanban ships about 26.5 KB less of gzipped
    JavaScript (174.2 → 147.7 KB).
  • If the calendar cannot be downloaded (for example, the app was redeployed and the old file is gone), the date
    menu says so, with a "Reintentar" button and a hint to reload the page: some browsers keep a failed download
    until the page reloads. The library never reloads the page itself.
  • Tests that open a date menu must wait for the date inputs: await screen.findByRole("button", { name: "Seleccionar fecha" }) instead of getByRole.
  • An app that types a full DataTableLabels, KanbanBoardLabels or DataViewLabels (not Partial) must add
    the two new keys.
  • With per-module sheets: CardGrid also needs table.css and kanban.css, and the auth forms with a tel field
    need phone-input.css. Do not import styles.css together with them.
  • A rule of your app on .gdy-kanban-card also reaches the cards of CardGrid; use .gdy-card-grid-card to style
    only the grid.

See the card view guide and
Per-module stylesheets;
every guide is linked from the README.

Español

Actualizar

npm install gridory@1.5.0

Novedades

  • Vista de tarjetas. CardGrid (desde gridory/card-grid y gridory) muestra las filas como una cuadrícula de
    tarjetas que se adapta al ancho, con la búsqueda, los filtros, el orden y la paginación de la tabla. Sus props:
    columns, data, normalizeRow, getRowId, features (search, sorting, filtering, pagination,
    rowActions, createButton), renderCard(row), onRowClick, getRowHref, pageSizeOptions,
    defaultPageSize (25), pageIndex, pageSize, onPaginationChange, onVisibleRowsChange, labels,
    className y classNames (root, toolbar, filterRow, list, card, pagination, empty), más
    search, sorting y columnFilters controlados y las props de la barra de DataTable y KanbanBoard, sin
    viewSwitch. La tarjeta por defecto es la del kanban, sin arrastre. Tipos: CardGridProps, CardGridLabels,
    CardGridClassNames, CardGridFeatures, CardClickEvent. Clases .gdy-card-grid, -list, -card (con
    data-clickable), -loading, -skeleton; tokens --gdy-card-grid-min, -gap, -padding, -focus-ring. Un
    selector creado con toggleGroups puede alternar DataTable, CardGrid y KanbanBoard (ver la guía).
  • Kanban: búsqueda, filtros y orden controlados. KanbanBoard acepta search / onSearchChange,
    sorting / onSortChange y columnFilters / onFiltersChange, con los mismos tipos y reglas que
    DataTable. gridory/kanban también exporta ColumnFiltersState y ColumnSortingState.
  • Hojas de estilo por módulo. Además de gridory/styles.css, que sigue incluyendo todos los módulos,
    gridory/base.css y una hoja por módulo: ai.css, auth.css, card-grid.css, country-select.css,
    table.css, kanban.css, segmented-control.css, phone-input.css, sidebar.css y markdown-editor.css.
    Importa primero base.css y después las de los módulos que usas, en este orden; todas juntas son exactamente
    styles.css. Una app con la tabla y el kanban pasa de 18,4 a 8,9 KB de CSS gzip.
  • labels nuevos y su valor por defecto: dateLoadError "No se pudo cargar el calendario. Si sigue sin
    aparecer, recarga la página.", dateLoadRetry "Reintentar".

Para tener en cuenta

  • Tres piezas se descargan cuando se usan, no con la página. El calendario del filtro de fecha se descarga al
    abrir un menú de fecha; mientras llega, la sección "Fechas" muestra cajas del mismo tamaño, con aria-busy y
    data-loading. El tooltip de headerTooltip y la casilla de rowSelection se descargan justo después del
    primer render de una tabla que los usa; la casilla ya funciona, y pulsar el "?" abre el tooltip en cuanto
    llega. Nada se mueve mientras tanto. Una app con la tabla y el kanban carga unos 26,5 KB menos de JavaScript gzip
    (174,2 → 147,7 KB).
  • Si el calendario no se puede descargar (por ejemplo, la app se volvió a publicar y el archivo viejo ya no está),
    el menú de fecha lo avisa, con un botón "Reintentar" y la sugerencia de recargar la página: algunos navegadores
    recuerdan una descarga fallida hasta que se recarga. La librería nunca recarga la página por su cuenta.
  • Los tests que abren un menú de fecha tienen que esperar los inputs de fecha: await screen.findByRole( "button", { name: "Seleccionar fecha" }) en lugar de getByRole.
  • Una app que tipa un DataTableLabels, KanbanBoardLabels o DataViewLabels completo (no Partial) tiene que
    agregar las dos claves nuevas.
  • Con hojas por módulo: CardGrid necesita también table.css y kanban.css, y los formularios de acceso con un
    campo tel, phone-input.css. No importes styles.css junto con ellas.
  • Una regla de tu app sobre .gdy-kanban-card también alcanza a las tarjetas de CardGrid; para dar estilo
    solo a la vista de tarjetas, usa .gdy-card-grid-card.

Ver la guía de la vista de tarjetas
y Hojas por módulo;
todas las guías están enlazadas desde el README.

v1.4.2 — Gridory

Choose a tag to compare

@VictorDiazJauregui VictorDiazJauregui released this 04 Nov 16:33
140d072

Patch release of Gridory that reads typed dates without date-fns' parse, so apps that use the date filter
ship less JavaScript. No new props, types or exports: upgrading needs no code change.

English · Español

English

Upgrade

npm install gridory@1.4.2

Good to know

  • The date filter no longer uses date-fns' parse. DataTable and KanbanBoard read the date typed with the
    dateInputFormat mask as before: the same text gives the same date, or none. An app with the table and the board
    ships about 4 KB less of gzipped JavaScript.

See the table guide; every guide is
linked from the README.

Español

Actualizar

npm install gridory@1.4.2

Para tener en cuenta

  • El filtro de fecha ya no usa el parse de date-fns. DataTable y KanbanBoard leen la fecha escrita con la
    máscara de dateInputFormat igual que antes: el mismo texto da la misma fecha, o ninguna. Una app con la tabla y
    el tablero lleva unos 4 KB menos de JavaScript gzip.

Ver la guía de la tabla; todas
las guías están enlazadas desde el README.

v1.4.1 — Gridory

Choose a tag to compare

@VictorDiazJauregui VictorDiazJauregui released this 03 Nov 19:10
7726685

Patch release of Gridory that raises the minimum versions of two Markdown editor dependencies with known
advisories and keeps a widened column in sight. No new props, types or exports: upgrading needs no code change.

English · Español

English

Upgrade

npm install gridory@1.4.1

Security

Fixes

  • Widening a column no longer hides it. With responsiveColumns and resizableColumns, the column you just
    resized stays in sight and its handle keeps the keyboard focus: the next lowest priority hides instead, and
    onColumnVisibilityChange reports that one. This was the known issue listed in the 1.4.0 notes.

Good to know

  • KanbanBoard shows new data in the same render, without a previous pass over the old cards.
  • The types write the components' return type as React.JSX.Element instead of JSX.Element from
    react/jsx-runtime. Both need @types/react 18.2.7 or later, as before.

See the table guide; every guide is
linked from the README.

Español

Actualizar

npm install gridory@1.4.1

Seguridad

Arreglos

  • Agrandar una columna ya no la oculta. Con responsiveColumns y resizableColumns, la columna que acabas de
    cambiar queda a la vista y su manija conserva el foco del teclado: se oculta la siguiente de menor priority, y
    onColumnVisibilityChange informa esa. Era el problema conocido que avisaban las notas de la 1.4.0.

Para tener en cuenta

  • KanbanBoard muestra un data nuevo en el mismo render, sin una pasada previa con las tarjetas anteriores.
  • Los tipos escriben el tipo de retorno de los componentes como React.JSX.Element en lugar de JSX.Element de
    react/jsx-runtime. Los dos necesitan @types/react 18.2.7 o posterior, como antes.

Ver la guía de la tabla; todas
las guías están enlazadas desde el README.

v1.4.0 — Gridory

Choose a tag to compare

@VictorDiazJauregui VictorDiazJauregui released this 02 Nov 21:41
b5408f4

Minor release of Gridory, focused on the table: row selection, expandable rows, columns that hide by
priority, pinned and resizable columns, and help or custom content in the header. Everything is opt-in and
off by default: without the new props the table and the kanban look and behave as in 1.3.0, except for the
change listed under Visible changes.

English · Español

English

Upgrade

npm install gridory@1.4.0

Table

  • Row selection. rowSelection (RowSelectionConfig: selectedIds, defaultSelectedIds, onChange,
    selectAllScope: "page" | "filtered" (SelectAllScope), isRowSelectable) adds the _select column.
    Rows carry data-selected and aria-selected; checkboxes are .gdy-table-select with
    .gdy-table-select-indicator and data-state.
  • Expandable rows. renderExpandedRow, expandedRowIds, defaultExpandedRowIds, onExpandedChange
    and canExpandRow add the _expand column (.gdy-table-expand-toggle, .gdy-table-expand-chevron) and a
    full-width detail (.gdy-table-expanded-row, -cell, -panel with data-state, -content, -body); the
    open row carries data-expanded. The detail is not a row for paging, totals or selection.
  • Column visibility. columnVisibility, responsiveColumns with the column fields hideable and
    priority (data-hidden-by="priority"), and onColumnVisibilityChange (ColumnVisibilityDetails).
  • Pinned columns. pin: "left" | "right" (ColumnPin) on a column with width, and rowActions.pinned.
    Cells carry data-pinned and data-pinned-edge; the container data-has-pinned, data-scrolled-start,
    data-scrolled-end and data-pinning-suspended.
  • Resizable columns. resizableColumns, columnWidths, defaultColumnWidths and onColumnWidthsChange
    (on release), with resizable, minWidth (64) and maxWidth per column. The handle is
    .gdy-table-resize-handle (mouse and keyboard, not on touch screens); data-resized and data-resizing.
  • Header help and content. headerTooltip, headerTooltipPlacement (HeaderTooltipPlacement) and
    headerContent on a column: .gdy-table-head-help, .gdy-table-head-tooltip, data-help-placement.
  • Printing. With printMode, a column printValue prints its text (.gdy-table-print-value) and the
    selection prints "Sí" / "No".
  • No toolbar. features.toolbar: false.
  • MissingRowIdError (selection or expandable rows without getRowId) and PinnedColumnWidthError (pin
    without width). ColumnPin and HeaderTooltipPlacement are exported from gridory, gridory/table and
    gridory/kanban.
  • New labels and their default: selectRow "Seleccionar fila",
    selectPageRows "Seleccionar las filas de la página", selectFilteredRows "Seleccionar todas las filas filtradas", printSelected "Sí",
    printNotSelected "No", printSelectionHeader "Seleccionada", columnHelp "Ayuda sobre {column}",
    expandRow "Mostrar detalle", resizeColumn "Cambiar el ancho de {column}", resizeColumnValue
    "{width} px".
  • New tokens (--gdy-table-): row-selected-bg, select-border, select-bg, select-checked-bg,
    select-check-fg, select-focus-ring, head-help-fg, tooltip-bg, tooltip-fg, tooltip-z,
    expanded-bg, expanded-padding, expand-focus-ring, expand-duration, pinned-bg, pinned-shadow,
    pinned-z, pinned-corner-z, open-menu-z, resize-handle-color.
  • Variables the table writes, to read only: --gdy-table-pin-offset, --gdy-table-visible-width,
    --gdy-table-grid-width, --gdy-table-column-width, --gdy-table-column-print-width.

Fixes

  • Printing with printMode. Full-width rows (group, empty and loading) no longer count the actions
    column, which does not print and left an empty strip at the right of a grouped table.

Visible changes

  • A grouped table printed with printMode and row actions: the columns now fill the page width.

Good to know

  • An app that types a full DataTableLabels (not Partial) must add the ten new keys.
  • A background or opacity on a row (tr) does not reach its pinned cells: use --gdy-table-pinned-bg or
    style the cells.
  • The new column fields are table only: the kanban accepts them in ColumnDefinition and ignores them.
  • With responsiveColumns, widening a column can hide the lowest priority one on release, even that same
    column.

Workarounds you can remove

Workaround Replaced by
Your own checkbox column and selected-ids state rowSelection
Removing columns from columns with a media query responsiveColumns and priority
position: sticky on a column with nth-child pin
A title or a portal for help in the header headerTooltip or headerContent
An extra row or a modal for a row detail renderExpandedRow
Your own resize handles or a hand-made colgroup resizableColumns

See the table guide; every guide is
linked from the README.

Español

Actualizar

npm install gridory@1.4.0

Tabla

  • Selección de filas. rowSelection (RowSelectionConfig: selectedIds, defaultSelectedIds,
    onChange, selectAllScope: "page" | "filtered" (SelectAllScope), isRowSelectable) agrega la columna
    _select. Las filas llevan data-selected y aria-selected; las casillas son .gdy-table-select con
    .gdy-table-select-indicator y data-state.
  • Filas expandibles. renderExpandedRow, expandedRowIds, defaultExpandedRowIds, onExpandedChange
    y canExpandRow agregan la columna _expand (.gdy-table-expand-toggle, .gdy-table-expand-chevron) y
    un detalle de ancho completo (.gdy-table-expanded-row, -cell, -panel con data-state, -content,
    -body); la fila abierta lleva data-expanded. El detalle no cuenta como fila para la paginación, los
    totales ni la selección.
  • Visibilidad de columnas. columnVisibility, responsiveColumns con los campos de columna hideable
    y priority (data-hidden-by="priority"), y onColumnVisibilityChange (ColumnVisibilityDetails).
  • Columnas fijas. pin: "left" | "right" (ColumnPin) en una columna con width, y
    rowActions.pinned. Las celdas llevan data-pinned y data-pinned-edge; el contenedor
    data-has-pinned, data-scrolled-start, data-scrolled-end y data-pinning-suspended.
  • Columnas redimensionables. resizableColumns, columnWidths, defaultColumnWidths y
    onColumnWidthsChange (al soltar), con resizable, minWidth (64) y maxWidth por columna. La manija es
    .gdy-table-resize-handle (mouse y teclado, no en pantallas táctiles); data-resized y data-resizing.
  • Ayuda y contenido en el encabezado. headerTooltip, headerTooltipPlacement
    (HeaderTooltipPlacement) y headerContent en una columna: .gdy-table-head-help,
    .gdy-table-head-tooltip, data-help-placement.
  • Impresión. Con printMode, el printValue de una columna imprime su texto (.gdy-table-print-value)
    y la selección imprime "Sí" / "No".
  • Sin barra. features.toolbar: false.
  • MissingRowIdError (selección o filas expandibles sin getRowId) y PinnedColumnWidthError (pin sin
    width). ColumnPin y HeaderTooltipPlacement se exportan desde gridory, gridory/table y
    gridory/kanban.
  • labels nuevos y su texto por defecto: selectRow "Seleccionar fila",
    selectPageRows "Seleccionar las filas de la página", selectFilteredRows "Seleccionar todas las filas filtradas", printSelected "Sí",
    printNotSelected "No", printSelectionHeader "Seleccionada", columnHelp "Ayuda sobre {columna}",
    expandRow "Mostrar detalle", resizeColumn "Cambiar el ancho de {columna}", resizeColumnValue
    "{ancho} px".
  • Tokens nuevos (--gdy-table-): row-selected-bg, select-border, select-bg, select-checked-bg,
    select-check-fg, select-focus-ring, head-help-fg, tooltip-bg, tooltip-fg, tooltip-z,
    expanded-bg, expanded-padding, expand-focus-ring, expand-duration, pinned-bg, pinned-shadow,
    pinned-z, pinned-corner-z, open-menu-z, resize-handle-color.
  • Variables que escribe la tabla, solo para leer: --gdy-table-pin-offset, --gdy-table-visible-width,
    --gdy-table-grid-width, --gdy-table-column-width, --gdy-table-column-print-width.

Arreglos

  • Impresión con printMode. Las filas de ancho completo (grupo, sin resultados y carga) ya no cuentan
    la columna de acciones, que no se imprime y dejaba una franja vacía a la derecha de una tabla agrupada.

Cambios visibles

  • Una tabla agrupada impresa con printMode y acciones por fila: las columnas ahora ocupan todo el ancho
    de la página.

Para tener en cuenta

  • Una app que tipa un DataTableLabels completo (no Partial) tiene que sumar las diez claves nuevas.
  • Un fondo o una opacity en una fila (tr) no llegan a sus celdas fijas: usa --gdy-table-pinned-bg o
    aplica el estilo a las celdas.
  • Los campos de columna nuevos son solo de la tabla: el kanban los acepta en ColumnDefinition y los ignora.
  • Con responsiveColumns, agrandar una columna puede ocultar al soltar la de menor prioridad, incluso esa
    misma columna.

Parches que puedes quitar

Parche Lo reemplaza
Una columna de casillas propia y el estado de los ids seleccionados rowSelection
Quitar columnas de columns con un media query responsiveColumns y priority
position: sticky en una columna con nth-child pin
Un title o un portal para la ayuda del encabezado headerTooltip o headerContent
Una fila extra o un modal para el detalle de una fila renderExpandedRow
Manijas propias o un colgroup hecho a mano resizableColumns

Ver la [guía de la tabla](https://github.com/VictorDiazJauregui/gridory/blob...

Read more

v1.3.0 — Gridory

Choose a tag to compare

@VictorDiazJauregui VictorDiazJauregui released this 28 Oct 14:45
92b6631

Minor release of Gridory, focused on the kanban: per-column styling, header and footer content, drop
rules, reverting a rejected move, a "Move to" menu for phones, keyboard and screen readers, and
collapsible columns. Row and card menus gain per-row texts and submenus. Everything is opt-in: without the
new props the table and the kanban look and behave as in 1.2.0, except for the changes listed under
Visible changes.

English · Español

English

Upgrade

npm install gridory@1.3.0

Kanban

  • Per-column styling. Every column carries data-column-value; getColumnClassName and
    getColumnAttributes (KanbanColumnAttributes) add a class or data-* / aria-* attributes to one.
  • Rejecting a move. onCardMove can return false or a promise; the card waits with data-pending
    and goes back if it resolves to false or rejects. onCardMoveError receives the error.
  • Visible cards. onVisibleCardsChange({ cards, byColumn }) (KanbanVisibleCardsState).
  • Column header and footer. renderColumnHeaderExtra (KanbanColumnHeaderContext) and
    renderColumnFooter (KanbanColumnFooterContext) render your own content, in
    .gdy-kanban-column-extra and .gdy-kanban-column-footer.
  • Drop rules. canDrop (KanbanDropContext) marks the columns a card cannot go to with
    data-drop-disabled when a drag starts, and validates the drop again.
  • Move without dragging. moveMenu ("auto" | "always" | "never", KanbanMoveMenuMode) adds "Mover
    a…" first in the card menu; "auto" follows moveMenuMediaQuery ("(pointer: coarse)"). It uses
    canDrop and onCardMove, shows the optional getDropDisabledReason and announces in
    .gdy-kanban-live.
  • Collapsible columns. collapsibleColumns, collapsedColumns, defaultCollapsedColumns and
    onCollapsedColumnsChange; the button is .gdy-kanban-column-toggle and the column gets
    data-collapsed.
  • New labels: moveTo, cardMovedTo, cardMoveReverted, collapseColumn and expandColumn.
  • New tokens: --gdy-kanban-card-pending-opacity, --gdy-kanban-drop-disabled-outline,
    --gdy-kanban-drop-disabled-bg and --gdy-kanban-column-collapsed-width.

Table and kanban

  • Per-row texts. A RowAction's label and icon can be a function of the row.
  • Submenus. RowActionSubmenu (items instead of onClick) in customActions and menuActions.
    New classes: .gdy-menu-sub-trigger, .gdy-menu-sub-content, .gdy-menu-sub-chevron and
    .gdy-menu-item-description.

Fixes

  • Narrow screens. The toolbar wraps instead of widening the page, which also broke menus and the
    calendar on phones; filter panels stay inside the screen (data-align="end").

Visible changes

  • Every kanban column carries data-column-value. The pixels do not change.
  • On touch screens every card menu starts with "Mover a…", and a card without menu shows ⋯ with that
    action alone. moveMenu="never" keeps the 1.2.0 card.
  • Where the controls do not fit (a phone, or a narrow window or container on any screen), the toolbar
    wraps to more rows and a filter panel opens to the left.

Good to know

  • Typed widenings that matter only to code reading these fields: RowAction label / icon can be
    functions, customActions is RowActionEntry[] and onCardMove may return boolean or a promise.
  • Memoize data and normalizeRow if the parent re-renders while a move is pending: new data wins over
    the revert.

Workarounds you can remove

Workaround Replaced by
Styling a column with nth-child data-column-value or getColumnClassName
Forcing new data or remounting with key to undo a rejected move onCardMove returning false or a promise
Reading the DOM or repeating the filters to know the visible cards onVisibleCardsChange
A portal into a column header found by its title renderColumnHeaderExtra
Two actions with opposite hidden for a toggle label as a function of the row
Rejecting a move only after the drop canDrop

See the kanban guide; every
guide is linked from the README.

Español

Actualizar

npm install gridory@1.3.0

Kanban

  • Estilo por columna. Cada columna lleva data-column-value; getColumnClassName y
    getColumnAttributes (KanbanColumnAttributes) le suman una clase o atributos data-* / aria-*.
  • Rechazar un movimiento. onCardMove puede devolver false o una promesa; la tarjeta espera con
    data-pending y vuelve si se resuelve en false o se rechaza. onCardMoveError recibe el error.
  • Tarjetas visibles. onVisibleCardsChange({ cards, byColumn }) (KanbanVisibleCardsState).
  • Cabecera y pie de columna. renderColumnHeaderExtra (KanbanColumnHeaderContext) y
    renderColumnFooter (KanbanColumnFooterContext) pintan contenido propio, en
    .gdy-kanban-column-extra y .gdy-kanban-column-footer.
  • Reglas al soltar. canDrop (KanbanDropContext) marca con data-drop-disabled las columnas a las
    que la tarjeta no puede ir al empezar el arrastre, y vuelve a validar al soltar.
  • Mover sin arrastrar. moveMenu ("auto" | "always" | "never", KanbanMoveMenuMode) agrega "Mover
    a…" primero en el menú de la tarjeta; "auto" sigue a moveMenuMediaQuery ("(pointer: coarse)").
    Usa canDrop y onCardMove, muestra el opcional getDropDisabledReason y anuncia en
    .gdy-kanban-live.
  • Columnas colapsables. collapsibleColumns, collapsedColumns, defaultCollapsedColumns y
    onCollapsedColumnsChange; el botón es .gdy-kanban-column-toggle y la columna lleva
    data-collapsed.
  • labels nuevos: moveTo, cardMovedTo, cardMoveReverted, collapseColumn y expandColumn.
  • Tokens nuevos: --gdy-kanban-card-pending-opacity, --gdy-kanban-drop-disabled-outline,
    --gdy-kanban-drop-disabled-bg y --gdy-kanban-column-collapsed-width.

Tabla y kanban

  • Textos por fila. El label y el icon de una RowAction pueden ser una función de la fila.
  • Submenús. RowActionSubmenu (items en lugar de onClick) en customActions y menuActions.
    Clases nuevas: .gdy-menu-sub-trigger, .gdy-menu-sub-content, .gdy-menu-sub-chevron y
    .gdy-menu-item-description.

Arreglos

  • Pantallas angostas. La toolbar pasa a más filas en lugar de ensanchar la página, lo que además
    rompía los menús y el calendario en los celulares; los paneles de filtro quedan dentro de la pantalla
    (data-align="end").

Cambios visibles

  • Cada columna del kanban lleva data-column-value. Los píxeles no cambian.
  • En pantallas táctiles el menú de cada tarjeta empieza con "Mover a…", y una tarjeta sin menú muestra ⋯
    con esa sola acción. moveMenu="never" conserva la tarjeta de la 1.2.0.
  • Donde los controles no entran (un celular, o una ventana o un contenedor angosto en cualquier
    pantalla), la toolbar pasa a más filas y un panel de filtro se abre hacia la izquierda.

Para tener en cuenta

  • Tipos ampliados que solo afectan al código que lee estos campos: el label / icon de RowAction
    pueden ser funciones, customActions es RowActionEntry[] y onCardMove puede devolver boolean o
    una promesa.
  • Memoriza data y normalizeRow si el padre se vuelve a renderizar con un movimiento pendiente: un dato
    nuevo gana sobre la reversión.

Parches que puedes quitar

Parche Lo reemplaza
Pintar una columna con nth-child data-column-value o getColumnClassName
Forzar un data nuevo o remontar con key para deshacer un movimiento rechazado onCardMove que devuelve false o una promesa
Leer el DOM o repetir los filtros para saber qué tarjetas se ven onVisibleCardsChange
Un portal en la cabecera de columna buscada por su título renderColumnHeaderExtra
Dos acciones con hidden opuestos para alternar label como función de la fila
Rechazar un movimiento recién después de soltar canDrop

Ver la guía del kanban; todas
las guías están enlazadas desde el README.