forty-cdk 0.24.1 → 0.25.1
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/accordion/README.md +7 -0
- package/aspect-ratio/README.md +6 -0
- package/avatar/README.md +6 -0
- package/breadcrumbs/README.md +7 -0
- package/breakpoints/README.md +6 -0
- package/button/README.md +8 -1
- package/calendar/README.md +10 -1
- package/carousel/README.md +7 -0
- package/checkbox/README.md +7 -0
- package/combobox/README.md +8 -1
- package/context-menu/README.md +7 -0
- package/date-field/README.md +9 -2
- package/date-picker/README.md +7 -0
- package/dialog/README.md +7 -0
- package/disclosure/README.md +7 -0
- package/drag-drop/README.md +6 -0
- package/drawer/README.md +7 -0
- package/dropdown-menu/README.md +7 -0
- package/fesm2022/forty-cdk-core.mjs.map +1 -1
- package/fesm2022/forty-cdk-drag-drop.mjs +23 -5
- package/fesm2022/forty-cdk-drag-drop.mjs.map +1 -1
- package/fesm2022/forty-cdk-table-virtualization.mjs +60 -5
- package/fesm2022/forty-cdk-table-virtualization.mjs.map +1 -1
- package/fesm2022/forty-cdk-table.mjs +196 -29
- package/fesm2022/forty-cdk-table.mjs.map +1 -1
- package/field/README.md +7 -1
- package/fieldset/README.md +7 -1
- package/file-upload/README.md +7 -1
- package/hover-card/README.md +6 -0
- package/input/README.md +7 -1
- package/internationalized-date/README.md +7 -1
- package/listbox/README.md +7 -0
- package/menu/README.md +7 -0
- package/menubar/README.md +7 -0
- package/meter/README.md +7 -0
- package/navigation-menu/README.md +7 -0
- package/number-input/README.md +7 -0
- package/otp-input/README.md +6 -0
- package/package.json +1 -1
- package/pagination/README.md +7 -0
- package/pane-resizer/README.md +7 -0
- package/popover/README.md +7 -0
- package/progress/README.md +7 -0
- package/radio-group/README.md +7 -0
- package/scroll-area/README.md +6 -0
- package/search/README.md +6 -0
- package/select/README.md +7 -0
- package/separator/README.md +6 -0
- package/shared/README.md +6 -0
- package/slider/README.md +7 -0
- package/stepper/README.md +7 -0
- package/switch/README.md +7 -0
- package/table/README.md +99 -17
- package/table-virtualization/README.md +38 -10
- package/tabs/README.md +7 -0
- package/time-field/README.md +9 -2
- package/time-picker/README.md +7 -0
- package/toast/README.md +7 -0
- package/toggle/README.md +7 -0
- package/toolbar/README.md +7 -0
- package/tooltip/README.md +7 -0
- package/tree/README.md +8 -1
- package/types/forty-cdk-core.d.ts +11 -0
- package/types/forty-cdk-drag-drop.d.ts +35 -4
- package/types/forty-cdk-table-virtualization.d.ts +18 -3
- package/types/forty-cdk-table.d.ts +131 -43
- package/virtual-reorder/README.md +7 -0
- package/virtualization/README.md +6 -0
- package/visually-hidden/README.md +6 -0
package/accordion/README.md
CHANGED
package/aspect-ratio/README.md
CHANGED
package/avatar/README.md
CHANGED
package/breadcrumbs/README.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Breadcrumbs
|
|
3
|
+
group: primitives
|
|
4
|
+
archetype: [composable-ui]
|
|
5
|
+
apgUrl: https://www.w3.org/WAI/ARIA/apg/patterns/breadcrumb/
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
# Breadcrumbs
|
|
2
9
|
|
|
3
10
|
A labelled navigation landmark for a breadcrumb trail: links with aria-current='page' on the current page and decorative separators hidden from assistive technology.
|
package/breakpoints/README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Breakpoints
|
|
3
|
+
group: utilities
|
|
4
|
+
archetype: [headless-utility]
|
|
5
|
+
---
|
|
6
|
+
|
|
1
7
|
# Breakpoints
|
|
2
8
|
|
|
3
9
|
A signal-first, zoneless, SSR-safe viewport breakpoint observer (injectBreakpoints). Configure the breakpoint map once via provideForBreakpointsDefaults — or use the Tailwind scale by default — then read up / down / between / only / active or any arbitrary media query, each as a live Signal<boolean>.
|
package/button/README.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Button
|
|
3
|
+
group: primitives
|
|
4
|
+
archetype: [composable-ui]
|
|
5
|
+
apgUrl: https://www.w3.org/WAI/ARIA/apg/patterns/button/
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
# ForButton
|
|
2
9
|
|
|
3
|
-
Turns any element — a native
|
|
10
|
+
Turns any element — a native `<button>` or a custom host like `<div>` / `<span>` — into an accessible button with keyboard activation. Disabled stays focusable (aria-disabled, never the native attribute) and pressed / hovered / focus-visible are reflected as data-\* hooks.
|
|
4
11
|
|
|
5
12
|
A single `[forButton]` directive does all of this. On a native `<button>` host the platform owns Enter/Space activation and `type` handling; on any non-button host the directive adds `role="button"`, `tabindex="0"`, and keyboard activation so the contract matches.
|
|
6
13
|
|
package/calendar/README.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Calendar
|
|
3
|
+
group: primitives
|
|
4
|
+
archetype: [composable-ui, form-control]
|
|
5
|
+
apgUrl: https://www.w3.org/WAI/ARIA/apg/patterns/grid/
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
# Calendar
|
|
2
9
|
|
|
3
10
|
A single-date calendar grid implementing the APG Grid pattern over a pluggable date adapter: roving-tabindex day navigation, month / year paging, and min / max / per-date availability.
|
|
@@ -26,6 +33,8 @@ bootstrapApplication(App, {
|
|
|
26
33
|
|
|
27
34
|
`@internationalized/date` is a widely-used immutable date primitive; it works in every browser today with no polyfill, and its reference-equality-on-mutation makes it signal-friendly.
|
|
28
35
|
|
|
36
|
+
→ **[Date adapters](../../../docs/date-adapters.md)** — picking one, the optional peer dependency, and writing your own.
|
|
37
|
+
|
|
29
38
|
**Calendar system (Gregorian).** The adapter seam abstracts the date _library_ and locale-aware _formatting_, not the calendar _system_'s month structure. Both `@internationalized/date` adapters build Gregorian dates, so the grid stays Gregorian regardless of the runtime locale, and the grid, the month picker and the date field all assume a Gregorian-structured year — exactly twelve months, `month` **1-12**, the year ending at month 12. Adapters over calendars with a different month structure (e.g. a 13-month year) are not supported. The optional `compareDate` hook overrides day-only _ordering_ only — it does not make the grid non-Gregorian.
|
|
30
39
|
|
|
31
40
|
## Anatomy
|
|
@@ -401,7 +410,7 @@ Auto-disabled when the entire previous / next page would be outside `[min, max]`
|
|
|
401
410
|
| `[forCalendarYearCell]` | `data-highlighted` | present \| absent |
|
|
402
411
|
| `[forCalendarYearCell]` | `data-disabled` | present \| absent |
|
|
403
412
|
|
|
404
|
-
##
|
|
413
|
+
## Scoped defaults
|
|
405
414
|
|
|
406
415
|
```ts
|
|
407
416
|
import { provideForCalendarDefaults } from 'forty-cdk/calendar';
|
package/carousel/README.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Carousel
|
|
3
|
+
group: primitives
|
|
4
|
+
archetype: [composable-ui]
|
|
5
|
+
apgUrl: https://www.w3.org/WAI/ARIA/apg/patterns/carousel/
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
# ForCarousel
|
|
2
9
|
|
|
3
10
|
A slideshow of content panels with previous / next controls, an indicator group, optional looping and multi-slide views, and an accessible autoplay mode with a pause control.
|
package/checkbox/README.md
CHANGED
package/combobox/README.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Combobox
|
|
3
|
+
group: primitives
|
|
4
|
+
archetype: [overlay, form-control]
|
|
5
|
+
apgUrl: https://www.w3.org/WAI/ARIA/apg/patterns/combobox/
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
# Combobox
|
|
2
9
|
|
|
3
10
|
An editable input paired with a filterable listbox popup, supporting single or multi selection with chips.
|
|
@@ -259,7 +266,7 @@ An action:
|
|
|
259
266
|
|
|
260
267
|
Use `[forComboboxAction]` for a pinned side-effect. For an entry that _does_
|
|
261
268
|
select (an "Add new" row that adds an item and commits it to `value`), use a
|
|
262
|
-
plain `[forComboboxOption]` — see
|
|
269
|
+
plain `[forComboboxOption]` — see the static options under [Examples](#examples).
|
|
263
270
|
|
|
264
271
|
### Focus & keyboard (model A)
|
|
265
272
|
|
package/context-menu/README.md
CHANGED
package/date-field/README.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Date Field
|
|
3
|
+
group: primitives
|
|
4
|
+
archetype: [form-control]
|
|
5
|
+
apgUrl: https://www.w3.org/WAI/ARIA/apg/patterns/spinbutton/
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
# DateField
|
|
2
9
|
|
|
3
10
|
A segmented date (and optional time) input over a pluggable date adapter — each part a spinbutton with keyboard stepping, locale-driven segment order and min / max clamping.
|
|
@@ -171,7 +178,7 @@ Set `granularity` to `'hour'`, `'minute'`, or `'second'` (`granularity > 'day'`)
|
|
|
171
178
|
|
|
172
179
|
On the AM/PM segment, `a` / `p` set the period and ArrowUp / ArrowDown toggle it; the period is derived from the entered hour, so clearing it is a no-op (clear or step the hour instead). The value stays `null` until every visible segment — date **and** time — is filled.
|
|
173
180
|
|
|
174
|
-
##
|
|
181
|
+
## Scoped defaults
|
|
175
182
|
|
|
176
183
|
```ts
|
|
177
184
|
import { provideForDateFieldDefaults } from 'forty-cdk/date-field';
|
|
@@ -256,7 +263,7 @@ The two endpoints are typed independently, so order is not guaranteed by constru
|
|
|
256
263
|
|
|
257
264
|
Each endpoint is its own tab stop, so `Tab` moves start group → end group → next control; arrows move between segments **within** an endpoint. Every other key behaves as in the [Keyboard](#keyboard) table below. Roving tabindex is per endpoint, and `aria-invalid="true"` is reflected on the root when the form marks it invalid **or** when two complete endpoints are out of order; everything else matches the [Accessibility](#accessibility) notes below.
|
|
258
265
|
|
|
259
|
-
### Range
|
|
266
|
+
### Range scoped defaults
|
|
260
267
|
|
|
261
268
|
`provideForDateRangeFieldDefaults` mirrors `provideForDateFieldDefaults` and adds `startLabel` / `endLabel` for the two endpoint group `aria-label`s (`'Start date'` / `'End date'` by default). Both wrapper patterns work via `FOR_DATE_RANGE_FIELD_HOST_DIRECTIVE_INPUTS` / `FOR_DATE_RANGE_FIELD_HOST_DIRECTIVE_OUTPUTS` — see [Wrapping form primitives](../../../docs/wrapping-form-primitives.md).
|
|
262
269
|
|
package/date-picker/README.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Date Picker
|
|
3
|
+
group: primitives
|
|
4
|
+
archetype: [overlay, form-control]
|
|
5
|
+
apgUrl: https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/examples/datepicker-dialog/
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
# DatePicker
|
|
2
9
|
|
|
3
10
|
A trigger that opens a floating calendar to pick a date, composing ForCalendar inside a dismissible popover with min / max bounds and per-date availability.
|
package/dialog/README.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Dialog
|
|
3
|
+
group: primitives
|
|
4
|
+
archetype: [overlay]
|
|
5
|
+
apgUrl: https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
# Dialog
|
|
2
9
|
|
|
3
10
|
A modal window overlaid on the page, with a focus trap, scroll lock and Escape / dismiss handling. Also openable imperatively through ForDialogManager.
|
package/disclosure/README.md
CHANGED
package/drag-drop/README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Drag & Drop
|
|
3
|
+
group: utilities
|
|
4
|
+
archetype: [headless-utility]
|
|
5
|
+
---
|
|
6
|
+
|
|
1
7
|
# Drag & Drop
|
|
2
8
|
|
|
3
9
|
Headless, accessible drag-and-drop for sortable lists and cross-list transfers, driven by both keyboard and pointer. Ships drag handles, custom preview / placeholder templates, live-sort, FLIP reorder animations, auto-scroll, and boundary / axis-lock constraints.
|
package/drawer/README.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Drawer
|
|
3
|
+
group: primitives
|
|
4
|
+
archetype: [overlay]
|
|
5
|
+
apgUrl: https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
# Drawer
|
|
2
9
|
|
|
3
10
|
A side or bottom sheet built on the modal dialog pattern, adding pointer-driven swipe-to-dismiss and snap points.
|
package/dropdown-menu/README.md
CHANGED