@cratis/components 4.38.0 → 4.38.2

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.
@@ -68,7 +68,7 @@
68
68
  {
69
69
  "name": "@cratis/components",
70
70
  "role": "core",
71
- "version": "4.38.0",
71
+ "version": "4.38.2",
72
72
  "releaseMajorRange": ">=4 <5",
73
73
  "independentRelease": false,
74
74
  "private": false,
@@ -92,7 +92,7 @@
92
92
  {
93
93
  "name": "@cratis/eslint-plugin-components",
94
94
  "role": "eslint",
95
- "version": "4.38.0",
95
+ "version": "4.38.2",
96
96
  "releaseMajorRange": ">=4 <5",
97
97
  "independentRelease": false,
98
98
  "private": false,
@@ -105,7 +105,7 @@
105
105
  {
106
106
  "name": "@cratis/components.migrator",
107
107
  "role": "migrator",
108
- "version": "4.38.0",
108
+ "version": "4.38.2",
109
109
  "releaseMajorRange": ">=4 <5",
110
110
  "independentRelease": false,
111
111
  "private": false,
@@ -116,13 +116,13 @@
116
116
  {
117
117
  "name": "@cratis/components.conformance",
118
118
  "role": "conformance",
119
- "version": "4.38.0",
119
+ "version": "4.38.2",
120
120
  "releaseMajorRange": ">=4 <5",
121
121
  "independentRelease": false,
122
122
  "private": false,
123
123
  "packageAccess": "public",
124
124
  "peerDependencies": {
125
- "@cratis/components": "4.38.0",
125
+ "@cratis/components": "4.38.2",
126
126
  "react": "^19.0.0",
127
127
  "react-dom": "^19.0.0"
128
128
  },
@@ -132,13 +132,13 @@
132
132
  {
133
133
  "name": "@cratis/components.mui",
134
134
  "role": "renderer-adapter",
135
- "version": "4.38.0",
135
+ "version": "4.38.2",
136
136
  "releaseMajorRange": ">=4 <5",
137
137
  "independentRelease": false,
138
138
  "private": false,
139
139
  "packageAccess": "public",
140
140
  "peerDependencies": {
141
- "@cratis/components": "4.38.0",
141
+ "@cratis/components": "4.38.2",
142
142
  "@emotion/react": ">=11.5 <12",
143
143
  "@emotion/styled": ">=11.11 <12",
144
144
  "@mui/material": ">=9 <10",
@@ -188,13 +188,13 @@
188
188
  {
189
189
  "name": "@cratis/components.primereact",
190
190
  "role": "renderer-adapter",
191
- "version": "4.38.0",
191
+ "version": "4.38.2",
192
192
  "releaseMajorRange": ">=4 <5",
193
193
  "independentRelease": false,
194
194
  "private": false,
195
195
  "packageAccess": "public",
196
196
  "peerDependencies": {
197
- "@cratis/components": "4.38.0",
197
+ "@cratis/components": "4.38.2",
198
198
  "@primereact/core": ">=11 <12",
199
199
  "@primereact/ui": ">=11 <12",
200
200
  "@primeuix/themes": ">=3 <4",
@@ -256,13 +256,13 @@
256
256
  {
257
257
  "name": "@cratis/components.primereact10",
258
258
  "role": "renderer-adapter",
259
- "version": "4.38.0",
259
+ "version": "4.38.2",
260
260
  "releaseMajorRange": ">=4 <5",
261
261
  "independentRelease": false,
262
262
  "private": false,
263
263
  "packageAccess": "public",
264
264
  "peerDependencies": {
265
- "@cratis/components": "4.38.0",
265
+ "@cratis/components": "4.38.2",
266
266
  "primereact": ">=10.9.9 <11",
267
267
  "react": "^19.0.0",
268
268
  "react-dom": "^19.0.0"
@@ -16,9 +16,9 @@ function CheckboxListFilter({ options, selected, multi = false, onToggle, search
16
16
  const generatedName = useId();
17
17
  const groupName = name ?? generatedName;
18
18
  const autoDetect = searchable === undefined;
19
- const overflows = useOptionListOverflow(containerRef, mirrorRef, autoDetect);
20
- const showSearch = searchable === true || (autoDetect && overflows);
21
19
  const hasOptions = options.length > 0;
20
+ const overflows = useOptionListOverflow(containerRef, mirrorRef, autoDetect && hasOptions);
21
+ const showSearch = searchable === true || (autoDetect && overflows);
22
22
  useEffect(() => {
23
23
  if (!autoFocusSearch) {
24
24
  didAutoFocusSearch.current = false;
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxListFilter.js","sources":["../../../Filter/CheckboxListFilter.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { useEffect, useId, useMemo, useRef, useState } from 'react';\nimport type { FilterOption } from './types';\nimport { useOptionListOverflow } from './useOptionListOverflow';\nimport { useCratisComponentsConfig } from '../configuration/CratisComponentsContext';\n\n/**\n * Props for {@link CheckboxListFilter}.\n */\nexport interface CheckboxListFilterProps {\n /** Everything that can be picked. */\n options: FilterOption[];\n /** Keys of the currently selected options. */\n selected: Set<string>;\n /** Allow selecting more than one option (checkbox behaviour). Defaults to false (radio behaviour). */\n multi?: boolean;\n /** Called with the toggled option's key whenever a row is picked. */\n onToggle: (optionKey: string) => void;\n /**\n * Whether to show a search box for narrowing the list by label.\n *\n * - `true` always shows it.\n * - `false` never shows it, no matter how long the list gets.\n * - `undefined` (the default) shows it only when there are more options than fit inside the\n * list's box - the search box grows out of the list needing one, rather than the caller\n * having to predict that ahead of time.\n */\n searchable?: boolean;\n /** Placeholder text for the search input. Defaults to 'Search…'. */\n searchPlaceholder?: string;\n /** Accessible name for the search input. Falls back to `messages.filter.searchAriaLabel`, its placeholder, then 'Search'. */\n searchAriaLabel?: string;\n /** Focus the search when visible. FilterPanel enables this only for expanded groups. Defaults to false. */\n autoFocusSearch?: boolean;\n /** Shown in place of the list when there are no options at all. */\n emptyMessage?: string;\n /** Shown in place of the list when a search matches nothing. */\n noMatchesMessage?: string;\n /**\n * The `name` attribute grouping single-select (`multi={false}`) options into one radio group.\n * Generated automatically when omitted; only needs to be supplied to coordinate with markup\n * outside this component.\n */\n name?: string;\n}\n\nfunction renderOptionCount(count: number | undefined): string | number {\n return typeof count === 'number' ? count : '';\n}\n\n/**\n * A bounded, scrollable list of checkboxes or radio buttons for picking from a set of options.\n *\n * The list is capped at a fixed height so it cannot swallow whatever it sits in. When picking\n * from it would otherwise mean scrolling past more rows than fit in that box, a search input\n * appears, pinned to the top of the list so it stays reachable while the rows beneath it scroll.\n * A short list that already fits gets no search box at all - one is only ever shown because the\n * list needs it, not because the caller guessed it might.\n *\n * Used by {@link FilterPanel} to render its string/option filter groups, and equally usable\n * standalone wherever an application needs a checkbox/radio picker with the same behaviour.\n *\n * ```tsx\n * <CheckboxListFilter\n * options={repositories}\n * selected={selectedRepositoryKeys}\n * multi\n * onToggle={(key) => toggleRepository(key)}\n * />\n * ```\n *\n * @param props - {@link CheckboxListFilterProps}.\n */\nexport function CheckboxListFilter({\n options,\n selected,\n multi = false,\n onToggle,\n searchable,\n searchPlaceholder = 'Search…',\n searchAriaLabel,\n autoFocusSearch = false,\n emptyMessage = 'Nothing to choose from.',\n noMatchesMessage = 'No matches.',\n name,\n}: CheckboxListFilterProps) {\n const { messages } = useCratisComponentsConfig();\n const [search, setSearch] = useState('');\n const containerRef = useRef<HTMLDivElement>(null);\n const mirrorRef = useRef<HTMLUListElement>(null);\n const searchInputRef = useRef<HTMLInputElement>(null);\n const didAutoFocusSearch = useRef(false);\n const generatedName = useId();\n const groupName = name ?? generatedName;\n\n const autoDetect = searchable === undefined;\n const overflows = useOptionListOverflow(containerRef, mirrorRef, autoDetect);\n const showSearch = searchable === true || (autoDetect && overflows);\n const hasOptions = options.length > 0;\n\n useEffect(() => {\n if (!autoFocusSearch) {\n didAutoFocusSearch.current = false;\n } else if (showSearch && !didAutoFocusSearch.current && searchInputRef.current) {\n searchInputRef.current.focus();\n didAutoFocusSearch.current = true;\n }\n }, [autoFocusSearch, showSearch, hasOptions]);\n\n const normalized = search.trim().toLowerCase();\n const visibleOptions = useMemo(\n () =>\n showSearch && normalized.length > 0\n ? options.filter((option) => option.label.toLowerCase().includes(normalized))\n : options,\n [options, showSearch, normalized],\n );\n\n if (!hasOptions) {\n return <p className='pv-option-list-empty'>{emptyMessage}</p>;\n }\n\n return (\n <div className='pv-option-list' ref={containerRef}>\n {showSearch && (\n <div className='pv-filter-group-search pv-option-list-search'>\n <input\n ref={searchInputRef}\n type='search'\n placeholder={searchPlaceholder}\n aria-label={(searchAriaLabel ?? messages?.filter?.searchAriaLabel ?? searchPlaceholder) || 'Search'}\n value={search}\n onChange={(event) => setSearch(event.target.value)}\n />\n </div>\n )}\n <ul className='pv-option-list-options'>\n {visibleOptions.map((option) => {\n const checked = selected.has(option.key);\n return (\n <li key={option.key} data-selected={checked || undefined}>\n <label data-selected={checked || undefined}>\n <input\n type={multi ? 'checkbox' : 'radio'}\n data-selected={checked || undefined}\n name={groupName}\n checked={checked}\n onChange={() => onToggle(option.key)}\n />\n <span>{option.label}</span>\n <span className='pv-option-count'>\n {renderOptionCount(option.count)}\n </span>\n </label>\n </li>\n );\n })}\n {visibleOptions.length === 0 && (\n <li className='pv-option-list-empty'>\n <span>{noMatchesMessage}</span>\n </li>\n )}\n </ul>\n {autoDetect && (\n // An off-screen clone of every option, in the same markup as the real rows above,\n // so its height matches theirs exactly. Measuring this rather than the real list\n // means a search that filters the visible rows down never shrinks the measured\n // height and un-decides that the list needed a search box in the first place - see\n // useOptionListOverflow. Absolutely positioned (see FilterPanel.css), so its place\n // in the DOM does not affect layout.\n <ul className='pv-option-list-mirror' ref={mirrorRef} aria-hidden='true'>\n {options.map((option) => (\n <li key={option.key}>\n <label>\n <input type={multi ? 'checkbox' : 'radio'} disabled tabIndex={-1} />\n {/*\n The mirror exists purely to measure height, so its rows must occupy\n the same space a real row with this label would - but as plain text\n nodes, that same content is indistinguishable from the real (possibly\n filtered-out) row to text-content queries like Testing Library's\n `getByText`, defeating the point of filtering. CSS generated content\n renders identically for layout purposes without ever becoming a DOM\n text node, so it can't be found that way.\n */}\n <span className='pv-option-mirror-label' data-label={option.label} />\n <span className='pv-option-count pv-option-mirror-label' data-label={renderOptionCount(option.count)} />\n </label>\n </li>\n ))}\n </ul>\n )}\n </div>\n );\n}\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;AAgDA,SAAS,iBAAiB,CAAC,KAAyB,EAAA;AAChD,IAAA,OAAO,OAAO,KAAK,KAAK,QAAQ,GAAG,KAAK,GAAG,EAAE;AACjD;AAyBM,SAAU,kBAAkB,CAAC,EAC/B,OAAO,EACP,QAAQ,EACR,KAAK,GAAG,KAAK,EACb,QAAQ,EACR,UAAU,EACV,iBAAiB,GAAG,S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AAA,YAAA,EAAa,iBAAiB,CAAC,MAAM,CAAC,KAAK,CAAC,EAAA,CAAI,IACpG,EAAA,EAdH,MAAM,CAAC,GAAG,CAed,CACR,CAAC,EAAA,CACD,CACR,CAAA,EAAA,CACC;AAEd;;"}
1
+ {"version":3,"file":"CheckboxListFilter.js","sources":["../../../Filter/CheckboxListFilter.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { useEffect, useId, useMemo, useRef, useState } from 'react';\nimport type { FilterOption } from './types';\nimport { useOptionListOverflow } from './useOptionListOverflow';\nimport { useCratisComponentsConfig } from '../configuration/CratisComponentsContext';\n\n/**\n * Props for {@link CheckboxListFilter}.\n */\nexport interface CheckboxListFilterProps {\n /** Everything that can be picked. */\n options: FilterOption[];\n /** Keys of the currently selected options. */\n selected: Set<string>;\n /** Allow selecting more than one option (checkbox behaviour). Defaults to false (radio behaviour). */\n multi?: boolean;\n /** Called with the toggled option's key whenever a row is picked. */\n onToggle: (optionKey: string) => void;\n /**\n * Whether to show a search box for narrowing the list by label.\n *\n * - `true` always shows it.\n * - `false` never shows it, no matter how long the list gets.\n * - `undefined` (the default) shows it only when there are more options than fit inside the\n * list's box - the search box grows out of the list needing one, rather than the caller\n * having to predict that ahead of time.\n */\n searchable?: boolean;\n /** Placeholder text for the search input. Defaults to 'Search…'. */\n searchPlaceholder?: string;\n /** Accessible name for the search input. Falls back to `messages.filter.searchAriaLabel`, its placeholder, then 'Search'. */\n searchAriaLabel?: string;\n /** Focus the search when visible. FilterPanel enables this only for expanded groups. Defaults to false. */\n autoFocusSearch?: boolean;\n /** Shown in place of the list when there are no options at all. */\n emptyMessage?: string;\n /** Shown in place of the list when a search matches nothing. */\n noMatchesMessage?: string;\n /**\n * The `name` attribute grouping single-select (`multi={false}`) options into one radio group.\n * Generated automatically when omitted; only needs to be supplied to coordinate with markup\n * outside this component.\n */\n name?: string;\n}\n\nfunction renderOptionCount(count: number | undefined): string | number {\n return typeof count === 'number' ? count : '';\n}\n\n/**\n * A bounded, scrollable list of checkboxes or radio buttons for picking from a set of options.\n *\n * The list is capped at a fixed height so it cannot swallow whatever it sits in. When picking\n * from it would otherwise mean scrolling past more rows than fit in that box, a search input\n * appears, pinned to the top of the list so it stays reachable while the rows beneath it scroll.\n * A short list that already fits gets no search box at all - one is only ever shown because the\n * list needs it, not because the caller guessed it might.\n *\n * Used by {@link FilterPanel} to render its string/option filter groups, and equally usable\n * standalone wherever an application needs a checkbox/radio picker with the same behaviour.\n *\n * ```tsx\n * <CheckboxListFilter\n * options={repositories}\n * selected={selectedRepositoryKeys}\n * multi\n * onToggle={(key) => toggleRepository(key)}\n * />\n * ```\n *\n * @param props - {@link CheckboxListFilterProps}.\n */\nexport function CheckboxListFilter({\n options,\n selected,\n multi = false,\n onToggle,\n searchable,\n searchPlaceholder = 'Search…',\n searchAriaLabel,\n autoFocusSearch = false,\n emptyMessage = 'Nothing to choose from.',\n noMatchesMessage = 'No matches.',\n name,\n}: CheckboxListFilterProps) {\n const { messages } = useCratisComponentsConfig();\n const [search, setSearch] = useState('');\n const containerRef = useRef<HTMLDivElement>(null);\n const mirrorRef = useRef<HTMLUListElement>(null);\n const searchInputRef = useRef<HTMLInputElement>(null);\n const didAutoFocusSearch = useRef(false);\n const generatedName = useId();\n const groupName = name ?? generatedName;\n\n const autoDetect = searchable === undefined;\n const hasOptions = options.length > 0;\n const overflows = useOptionListOverflow(containerRef, mirrorRef, autoDetect && hasOptions);\n const showSearch = searchable === true || (autoDetect && overflows);\n\n useEffect(() => {\n if (!autoFocusSearch) {\n didAutoFocusSearch.current = false;\n } else if (showSearch && !didAutoFocusSearch.current && searchInputRef.current) {\n searchInputRef.current.focus();\n didAutoFocusSearch.current = true;\n }\n }, [autoFocusSearch, showSearch, hasOptions]);\n\n const normalized = search.trim().toLowerCase();\n const visibleOptions = useMemo(\n () =>\n showSearch && normalized.length > 0\n ? options.filter((option) => option.label.toLowerCase().includes(normalized))\n : options,\n [options, showSearch, normalized],\n );\n\n if (!hasOptions) {\n return <p className='pv-option-list-empty'>{emptyMessage}</p>;\n }\n\n return (\n <div className='pv-option-list' ref={containerRef}>\n {showSearch && (\n <div className='pv-filter-group-search pv-option-list-search'>\n <input\n ref={searchInputRef}\n type='search'\n placeholder={searchPlaceholder}\n aria-label={(searchAriaLabel ?? messages?.filter?.searchAriaLabel ?? searchPlaceholder) || 'Search'}\n value={search}\n onChange={(event) => setSearch(event.target.value)}\n />\n </div>\n )}\n <ul className='pv-option-list-options'>\n {visibleOptions.map((option) => {\n const checked = selected.has(option.key);\n return (\n <li key={option.key} data-selected={checked || undefined}>\n <label data-selected={checked || undefined}>\n <input\n type={multi ? 'checkbox' : 'radio'}\n data-selected={checked || undefined}\n name={groupName}\n checked={checked}\n onChange={() => onToggle(option.key)}\n />\n <span>{option.label}</span>\n <span className='pv-option-count'>\n {renderOptionCount(option.count)}\n </span>\n </label>\n </li>\n );\n })}\n {visibleOptions.length === 0 && (\n <li className='pv-option-list-empty'>\n <span>{noMatchesMessage}</span>\n </li>\n )}\n </ul>\n {autoDetect && (\n // An off-screen clone of every option, in the same markup as the real rows above,\n // so its height matches theirs exactly. Measuring this rather than the real list\n // means a search that filters the visible rows down never shrinks the measured\n // height and un-decides that the list needed a search box in the first place - see\n // useOptionListOverflow. Absolutely positioned (see FilterPanel.css), so its place\n // in the DOM does not affect layout.\n <ul className='pv-option-list-mirror' ref={mirrorRef} aria-hidden='true'>\n {options.map((option) => (\n <li key={option.key}>\n <label>\n <input type={multi ? 'checkbox' : 'radio'} disabled tabIndex={-1} />\n {/*\n The mirror exists purely to measure height, so its rows must occupy\n the same space a real row with this label would - but as plain text\n nodes, that same content is indistinguishable from the real (possibly\n filtered-out) row to text-content queries like Testing Library's\n `getByText`, defeating the point of filtering. CSS generated content\n renders identically for layout purposes without ever becoming a DOM\n text node, so it can't be found that way.\n */}\n <span className='pv-option-mirror-label' data-label={option.label} />\n <span className='pv-option-count pv-option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A,QAAA,EACIC,IAAA,CAAA,OAAA,EAAA,EAAA,QAAA,EAAA,CACID,GAAA,CAAA,OAAA,EAAA,EAAO,IAAI,EAAE,KAAK,GAAG,UAAU,GAAG,OAAO,EAAE,QAAQ,EAAA,IAAA,EAAC,QAAQ,EAAE,EAAE,EAAA,CAAI,EAUpEA,GAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAC,wBAAwB,EAAA,YAAA,EAAa,MAAM,CAAC,KAAK,EAAA,CAAI,EACrEA,GAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAC,wCAAwC,EAAA,YAAA,EAAa,iBAAiB,CAAC,MAAM,CAAC,KAAK,CAAC,EAAA,CAAI,IACpG,EAAA,EAdH,MAAM,CAAC,GAAG,CAed,CACR,CAAC,EAAA,CACD,CACR,CAAA,EAAA,CACC;AAEd;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/components",
3
- "version": "4.38.0",
3
+ "version": "4.38.2",
4
4
  "description": "React components for CQRS and event-sourced apps — command dialogs, typed forms, and query-backed data tables for Cratis Arc",
5
5
  "keywords": [
6
6
  "react",
@@ -314,7 +314,7 @@
314
314
  },
315
315
  "devDependencies": {
316
316
  "@cratis/arc.vite": "22.122.1",
317
- "pixi.js": "^8.20.1",
317
+ "pixi.js": "8.22.0",
318
318
  "react": "19.3.0",
319
319
  "react-dom": "19.3.0"
320
320
  },