@solid2-aria/components 0.0.1 → 0.1.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/README.md +6 -0
- package/dist/NOTICE.txt +33 -11
- package/dist/browser/collection-dnd.js +37 -40
- package/dist/browser/collection-dnd.js.map +1 -1
- package/dist/browser/color-field.js +12 -6
- package/dist/browser/color-field.js.map +1 -1
- package/dist/browser/drop-zone.js +6 -3
- package/dist/browser/drop-zone.js.map +1 -1
- package/dist/browser/grid-list.d.ts +2 -2
- package/dist/browser/grid-list.js +8 -7
- package/dist/browser/grid-list.js.map +1 -1
- package/dist/browser/list-box.js +31 -37
- package/dist/browser/list-box.js.map +1 -1
- package/dist/browser/menu.js +16 -19
- package/dist/browser/menu.js.map +1 -1
- package/dist/browser/modal.js +28 -31
- package/dist/browser/modal.js.map +1 -1
- package/dist/browser/number-field.js +5 -4
- package/dist/browser/number-field.js.map +1 -1
- package/dist/browser/popover.js +26 -29
- package/dist/browser/popover.js.map +1 -1
- package/dist/browser/shared-element-transition.js +19 -22
- package/dist/browser/shared-element-transition.js.map +1 -1
- package/dist/browser/sheet.d.ts +1 -1
- package/dist/browser/sheet.js +82 -7
- package/dist/browser/sheet.js.map +1 -1
- package/dist/browser/table.d.ts +2 -2
- package/dist/browser/table.js +5 -2
- package/dist/browser/table.js.map +1 -1
- package/dist/browser/tabs.d.ts +1 -1
- package/dist/browser/tabs.js +65 -26
- package/dist/browser/tabs.js.map +1 -1
- package/dist/browser/toast.js +43 -46
- package/dist/browser/toast.js.map +1 -1
- package/dist/browser/token-field.js +0 -1
- package/dist/browser/token-field.js.map +1 -1
- package/dist/browser/tooltip.js +22 -25
- package/dist/browser/tooltip.js.map +1 -1
- package/dist/browser/tree.js +21 -10
- package/dist/browser/tree.js.map +1 -1
- package/dist/server/calendar.js +3 -1
- package/dist/server/calendar.js.map +1 -1
- package/dist/server/checkbox.js +3 -1
- package/dist/server/checkbox.js.map +1 -1
- package/dist/server/collection-dnd.js +8 -36
- package/dist/server/collection-dnd.js.map +1 -1
- package/dist/server/color-field.js +7 -2
- package/dist/server/color-field.js.map +1 -1
- package/dist/server/color-thumb.js +6 -2
- package/dist/server/color-thumb.js.map +1 -1
- package/dist/server/drop-zone.js +12 -5
- package/dist/server/drop-zone.js.map +1 -1
- package/dist/server/grid-list.js +16 -32
- package/dist/server/grid-list.js.map +1 -1
- package/dist/server/hidden-date-input.js +3 -1
- package/dist/server/hidden-date-input.js.map +1 -1
- package/dist/server/list-box.js +25 -69
- package/dist/server/list-box.js.map +1 -1
- package/dist/server/menu.js +10 -31
- package/dist/server/menu.js.map +1 -1
- package/dist/server/modal.js +35 -67
- package/dist/server/modal.js.map +1 -1
- package/dist/server/popover.js +71 -98
- package/dist/server/popover.js.map +1 -1
- package/dist/server/radio-group.js +3 -1
- package/dist/server/radio-group.js.map +1 -1
- package/dist/server/shared-element-transition.js +13 -42
- package/dist/server/shared-element-transition.js.map +1 -1
- package/dist/server/sheet.js +135 -60
- package/dist/server/sheet.js.map +1 -1
- package/dist/server/slider.js +3 -1
- package/dist/server/slider.js.map +1 -1
- package/dist/server/switch.js +3 -1
- package/dist/server/switch.js.map +1 -1
- package/dist/server/table.js +8 -3
- package/dist/server/table.js.map +1 -1
- package/dist/server/tabs.js +180 -169
- package/dist/server/tabs.js.map +1 -1
- package/dist/server/toast.js +68 -101
- package/dist/server/toast.js.map +1 -1
- package/dist/server/token-field.js +2 -2
- package/dist/server/tooltip.js +34 -61
- package/dist/server/tooltip.js.map +1 -1
- package/dist/server/tree.js +156 -130
- package/dist/server/tree.js.map +1 -1
- package/dist/server/virtualizer.js +3 -1
- package/dist/server/virtualizer.js.map +1 -1
- package/package.json +12 -11
|
@@ -25,7 +25,7 @@ import { CollectionDropIndicator, createCollectionDragAndDrop, createCollectionI
|
|
|
25
25
|
import { ListStateContext } from "./list-box.js";
|
|
26
26
|
import { applyRef, createComponent, effect, getNextElement, insert, memo, mergeProps, ref, runHydrationEvents, scope, setAttribute, spread, template } from "@solidjs/web";
|
|
27
27
|
import { mergeProps as mergeProps$1 } from "@solid2-aria/core/utils/merge-props";
|
|
28
|
-
import {
|
|
28
|
+
import { createContext, createMemo, createSignal, merge, omit, untrack, useContext } from "solid-js";
|
|
29
29
|
import { requireValue } from "@solid2-aria/core/utils/require-value";
|
|
30
30
|
import { BaseCollection, HeaderNode, ItemNode, LoaderNode, SectionNode } from "@solid2-aria/core/collections/base-collection";
|
|
31
31
|
import { Collection, CollectionBuilder, createBranchComponent, createLeafComponent } from "@solid2-aria/core/collections/collection-builder";
|
|
@@ -36,6 +36,7 @@ import { createLocale } from "@solid2-aria/core/i18n/i18n-provider";
|
|
|
36
36
|
import { createVisuallyHidden } from "@solid2-aria/core/visually-hidden/visually-hidden";
|
|
37
37
|
import { ListKeyboardDelegate } from "@solid2-aria/core/selection/list-keyboard-delegate";
|
|
38
38
|
import { createCollator } from "@solid2-aria/core/i18n/create-collator";
|
|
39
|
+
import { createFocus } from "@solid2-aria/core/interactions/create-focus";
|
|
39
40
|
import { createLoadMoreSentinel } from "@solid2-aria/core/utils/create-load-more-sentinel";
|
|
40
41
|
import { createListState } from "@solid2-aria/stately/list/create-list-state";
|
|
41
42
|
import { createGridList } from "@solid2-aria/core/gridlist/create-grid-list";
|
|
@@ -276,6 +277,7 @@ const GridListItem = createLeafComponent(ItemNode, (props, forwardedRef, item) =
|
|
|
276
277
|
const hover = createHover(mergeProps$1(props, { get isDisabled() {
|
|
277
278
|
return !aria.allowsSelection && !aria.hasAction && !dnd.dragState;
|
|
278
279
|
} }));
|
|
280
|
+
const focusEvents = createFocus(props);
|
|
279
281
|
const focus = createFocusRing();
|
|
280
282
|
const within = createFocusRing({ within: true });
|
|
281
283
|
const checkbox = createGridListSelectionCheckbox({ key: item.key }, state);
|
|
@@ -348,7 +350,7 @@ const GridListItem = createLeafComponent(ItemNode, (props, forwardedRef, item) =
|
|
|
348
350
|
return _el$4;
|
|
349
351
|
})() : drop && !drop.isHidden;
|
|
350
352
|
}), createComponent(dom.div, mergeProps(() => {
|
|
351
|
-
return mergeProps$1(omit(filterDOMProps(props, { global: true }), "id", "onClick"), render, merge(() => aria.rowProps ?? {}), merge(() => focus.focusProps ?? {}), merge(() => within.focusProps ?? {}), merge(() => hover.hoverProps ?? {}), merge(() => drag?.dragProps ?? {}));
|
|
353
|
+
return mergeProps$1(omit(filterDOMProps(props, { global: true }), "id", "onClick"), render, merge(() => aria.rowProps ?? {}), merge(() => focusEvents.focusProps ?? {}), merge(() => focus.focusProps ?? {}), merge(() => within.focusProps ?? {}), merge(() => hover.hoverProps ?? {}), merge(() => drag?.dragProps ?? {}));
|
|
352
354
|
}, {
|
|
353
355
|
ref: (element) => {
|
|
354
356
|
setRef(element);
|
|
@@ -580,11 +582,10 @@ function RootDropIndicator(props = {}) {
|
|
|
580
582
|
}, _el$11);
|
|
581
583
|
runHydrationEvents();
|
|
582
584
|
const button = _el$11;
|
|
583
|
-
return
|
|
584
|
-
|
|
585
|
+
return memo(() => {
|
|
586
|
+
return memo(() => {
|
|
585
587
|
return !aria.isHidden;
|
|
586
|
-
}
|
|
587
|
-
get children() {
|
|
588
|
+
})() ? memo(() => {
|
|
588
589
|
return memo(() => {
|
|
589
590
|
return props.table === true;
|
|
590
591
|
})() ? (() => {
|
|
@@ -601,7 +602,7 @@ function RootDropIndicator(props = {}) {
|
|
|
601
602
|
insert(_el$15, button);
|
|
602
603
|
return _el$14;
|
|
603
604
|
})();
|
|
604
|
-
}
|
|
605
|
+
}) : void 0;
|
|
605
606
|
});
|
|
606
607
|
}
|
|
607
608
|
export { CollectionDropIndicator, GridList, GridListContext, GridListHeader, GridListHeaderContext, GridListHeaderInnerContext, GridListItem, GridListLoadMoreItem, GridListSection, RootDropIndicator, createCollectionDragAndDrop };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-list.js","names":["<CollectionBuilder\n createCollection={() => new BaseCollection<T>()}\n content={<Collection {...props} />}\n >\n {(collection) => (\n <GridListInner\n props={props}\n collection={collection}\n elementRef={ref}\n setElementRef={(element: HTMLDivElement) => {\n setRef(element);\n }}\n />\n )}\n </CollectionBuilder>","createCollection={() => new BaseCollection<T>()}","<Collection {...props} />","<GridListInner\n props={props}\n collection={collection}\n elementRef={ref}\n setElementRef={(element: HTMLDivElement) => {\n setRef(element);\n }}\n />","elementRef={ref}","setElementRef={(element: HTMLDivElement) => {\n setRef(element);\n }}","<dom.div\n {...mergeProps(\n filterDOMProps(props, { global: true }),\n render,\n merge(() => aria.gridProps ?? {}),\n merge(() => focus.focusProps ?? {}),\n merge(() => dnd.collectionProps ?? {})\n )}\n ref={(element: HTMLDivElement) => {\n outer.setElementRef(element);\n }}\n slot={props.slot ?? undefined}\n data-empty={values.isEmpty || undefined}\n data-focused={focus.isFocused || undefined}\n data-focus-visible={focus.isFocusVisible || undefined}\n data-drop-target={values.isDropTarget || undefined}\n data-layout={values.layout}\n data-orientation={values.orientation}\n >\n <ListStateContext value={state}>\n <DragAndDropContext value={dnd}>\n <DropIndicatorContext\n value={{\n render: (indicatorProps, ref) => (\n <CollectionDropIndicator {...indicatorProps} ref={ref} />\n ),\n }}\n >\n {dnd.dropState && <RootDropIndicator />}\n <Root\n collection={state.collection}\n scrollRef={outer.elementRef}\n persistedKeys={createDndPersistedKeys(\n state.selectionManager,\n props.dragAndDropHooks,\n dnd.dropState\n )}\n renderDropIndicator={createRenderDropIndicator(\n props.dragAndDropHooks,\n dnd.dropState\n )}\n />\n </DropIndicatorContext>\n </DragAndDropContext>\n </ListStateContext>\n {values.isEmpty && props.renderEmptyState && (\n <div role=\"row\">\n <div role=\"gridcell\">{props.renderEmptyState(values)}</div>\n </div>\n )}\n {dnd.preview}\n </dom.div>","dom.div","ref={(element: HTMLDivElement) => {\n outer.setElementRef(element);\n }}","<ListStateContext value={state}>\n <DragAndDropContext value={dnd}>\n <DropIndicatorContext\n value={{\n render: (indicatorProps, ref) => (\n <CollectionDropIndicator {...indicatorProps} ref={ref} />\n ),\n }}\n >\n {dnd.dropState && <RootDropIndicator />}\n <Root\n collection={state.collection}\n scrollRef={outer.elementRef}\n persistedKeys={createDndPersistedKeys(\n state.selectionManager,\n props.dragAndDropHooks,\n dnd.dropState\n )}\n renderDropIndicator={createRenderDropIndicator(\n props.dragAndDropHooks,\n dnd.dropState\n )}\n />\n </DropIndicatorContext>\n </DragAndDropContext>\n </ListStateContext>","value={state}","<DragAndDropContext value={dnd}>\n <DropIndicatorContext\n value={{\n render: (indicatorProps, ref) => (\n <CollectionDropIndicator {...indicatorProps} ref={ref} />\n ),\n }}\n >\n {dnd.dropState && <RootDropIndicator />}\n <Root\n collection={state.collection}\n scrollRef={outer.elementRef}\n persistedKeys={createDndPersistedKeys(\n state.selectionManager,\n props.dragAndDropHooks,\n dnd.dropState\n )}\n renderDropIndicator={createRenderDropIndicator(\n props.dragAndDropHooks,\n dnd.dropState\n )}\n />\n </DropIndicatorContext>\n </DragAndDropContext>","value={dnd}","<DropIndicatorContext\n value={{\n render: (indicatorProps, ref) => (\n <CollectionDropIndicator {...indicatorProps} ref={ref} />\n ),\n }}\n >\n {dnd.dropState && <RootDropIndicator />}\n <Root\n collection={state.collection}\n scrollRef={outer.elementRef}\n persistedKeys={createDndPersistedKeys(\n state.selectionManager,\n props.dragAndDropHooks,\n dnd.dropState\n )}\n renderDropIndicator={createRenderDropIndicator(\n props.dragAndDropHooks,\n dnd.dropState\n )}\n />\n </DropIndicatorContext>","value={{\n render: (indicatorProps, ref) => (\n <CollectionDropIndicator {...indicatorProps} ref={ref} />\n ),\n }}","<CollectionDropIndicator {...indicatorProps} ref={ref} />","ref={ref}","{dnd.dropState && <RootDropIndicator />}","<RootDropIndicator />","<Root\n collection={state.collection}\n scrollRef={outer.elementRef}\n persistedKeys={createDndPersistedKeys(\n state.selectionManager,\n props.dragAndDropHooks,\n dnd.dropState\n )}\n renderDropIndicator={createRenderDropIndicator(\n props.dragAndDropHooks,\n dnd.dropState\n )}\n />","{values.isEmpty && props.renderEmptyState && (\n <div role=\"row\">\n <div role=\"gridcell\">{props.renderEmptyState(values)}</div>\n </div>\n )}","{props.renderEmptyState(values)}","dnd.preview","{drop && !drop.isHidden && (\n <div role=\"row\" style={{ position: \"absolute\" }}>\n <div role=\"gridcell\">\n <div\n {...mergeProps(\n merge(() => hidden.visuallyHiddenProps ?? {}),\n merge(() => drop.dropIndicatorProps ?? {})\n )}\n role=\"button\"\n ref={(element: HTMLDivElement) => {\n setDropRef(element);\n }}\n />\n </div>\n </div>\n )}","role=\"button\"","ref={(element: HTMLDivElement) => {\n setDropRef(element);\n }}","<dom.div\n {...mergeProps(\n omit(filterDOMProps(props, { global: true }), \"id\", \"onClick\"),\n render,\n merge(() => aria.rowProps ?? {}),\n merge(() => focus.focusProps ?? {}),\n merge(() => within.focusProps ?? {}),\n merge(() => hover.hoverProps ?? {}),\n merge(() => drag?.dragProps ?? {})\n )}\n ref={(element: HTMLDivElement) => {\n setRef(element);\n }}\n data-selected={aria.isSelected || undefined}\n data-disabled={aria.isDisabled || undefined}\n data-hovered={hover.isHovered || undefined}\n data-focused={aria.isFocused || undefined}\n data-focus-visible={focus.isFocusVisible || undefined}\n data-focus-visible-within={within.isFocusVisible || undefined}\n data-pressed={aria.isPressed || undefined}\n data-allows-dragging={!!dnd.dragState || undefined}\n data-dragging={values.isDragging ?? undefined}\n data-drop-target={drop?.isDropTarget ?? undefined}\n data-selection-mode={\n state.selectionManager.selectionMode === \"none\"\n ? undefined\n : state.selectionManager.selectionMode\n }\n >\n <div {...aria.gridCellProps} style={{ display: \"contents\" }}>\n <CheckboxContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}\n >\n <CheckboxFieldContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}\n >\n <ButtonContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {\n get isDisabled() {\n return (\n aria.isDisabled &&\n state.selectionManager.disabledBehavior === \"all\"\n );\n },\n },\n drag: mergeProps(\n merge(() => drag?.dragButtonProps ?? {}),\n {\n style: { \"pointer-events\": \"none\" as const },\n }\n ),\n },\n }}\n >\n <TextContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get description() {\n return aria.descriptionProps;\n },\n },\n }}\n >\n <SelectionIndicatorContext\n value={{\n get isSelected() {\n return aria.isSelected;\n },\n }}\n >\n <CollectionRendererContext\n value={DefaultCollectionRenderer}\n >\n <ListStateContext value={null}>\n {render.children}\n </ListStateContext>\n </CollectionRendererContext>\n </SelectionIndicatorContext>\n </TextContext>\n </ButtonContext>\n </CheckboxFieldContext>\n </CheckboxContext>\n </div>\n </dom.div>","ref={(element: HTMLDivElement) => {\n setRef(element);\n }}","state.selectionManager.selectionMode === \"none\"\n ? undefined\n : state.selectionManager.selectionMode","style={{ display: \"contents\" }}","<CheckboxContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}\n >\n <CheckboxFieldContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}\n >\n <ButtonContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {\n get isDisabled() {\n return (\n aria.isDisabled &&\n state.selectionManager.disabledBehavior === \"all\"\n );\n },\n },\n drag: mergeProps(\n merge(() => drag?.dragButtonProps ?? {}),\n {\n style: { \"pointer-events\": \"none\" as const },\n }\n ),\n },\n }}\n >\n <TextContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get description() {\n return aria.descriptionProps;\n },\n },\n }}\n >\n <SelectionIndicatorContext\n value={{\n get isSelected() {\n return aria.isSelected;\n },\n }}\n >\n <CollectionRendererContext\n value={DefaultCollectionRenderer}\n >\n <ListStateContext value={null}>\n {render.children}\n </ListStateContext>\n </CollectionRendererContext>\n </SelectionIndicatorContext>\n </TextContext>\n </ButtonContext>\n </CheckboxFieldContext>\n </CheckboxContext>","value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}","<CheckboxFieldContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}\n >\n <ButtonContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {\n get isDisabled() {\n return (\n aria.isDisabled &&\n state.selectionManager.disabledBehavior === \"all\"\n );\n },\n },\n drag: mergeProps(\n merge(() => drag?.dragButtonProps ?? {}),\n {\n style: { \"pointer-events\": \"none\" as const },\n }\n ),\n },\n }}\n >\n <TextContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get description() {\n return aria.descriptionProps;\n },\n },\n }}\n >\n <SelectionIndicatorContext\n value={{\n get isSelected() {\n return aria.isSelected;\n },\n }}\n >\n <CollectionRendererContext\n value={DefaultCollectionRenderer}\n >\n <ListStateContext value={null}>\n {render.children}\n </ListStateContext>\n </CollectionRendererContext>\n </SelectionIndicatorContext>\n </TextContext>\n </ButtonContext>\n </CheckboxFieldContext>","value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}","<ButtonContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {\n get isDisabled() {\n return (\n aria.isDisabled &&\n state.selectionManager.disabledBehavior === \"all\"\n );\n },\n },\n drag: mergeProps(\n merge(() => drag?.dragButtonProps ?? {}),\n {\n style: { \"pointer-events\": \"none\" as const },\n }\n ),\n },\n }}\n >\n <TextContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get description() {\n return aria.descriptionProps;\n },\n },\n }}\n >\n <SelectionIndicatorContext\n value={{\n get isSelected() {\n return aria.isSelected;\n },\n }}\n >\n <CollectionRendererContext\n value={DefaultCollectionRenderer}\n >\n <ListStateContext value={null}>\n {render.children}\n </ListStateContext>\n </CollectionRendererContext>\n </SelectionIndicatorContext>\n </TextContext>\n </ButtonContext>","<TextContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get description() {\n return aria.descriptionProps;\n },\n },\n }}\n >\n <SelectionIndicatorContext\n value={{\n get isSelected() {\n return aria.isSelected;\n },\n }}\n >\n <CollectionRendererContext\n value={DefaultCollectionRenderer}\n >\n <ListStateContext value={null}>\n {render.children}\n </ListStateContext>\n </CollectionRendererContext>\n </SelectionIndicatorContext>\n </TextContext>","value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get description() {\n return aria.descriptionProps;\n },\n },\n }}","<SelectionIndicatorContext\n value={{\n get isSelected() {\n return aria.isSelected;\n },\n }}\n >\n <CollectionRendererContext\n value={DefaultCollectionRenderer}\n >\n <ListStateContext value={null}>\n {render.children}\n </ListStateContext>\n </CollectionRendererContext>\n </SelectionIndicatorContext>","value={{\n get isSelected() {\n return aria.isSelected;\n },\n }}","<CollectionRendererContext\n value={DefaultCollectionRenderer}\n >\n <ListStateContext value={null}>\n {render.children}\n </ListStateContext>\n </CollectionRendererContext>","value={DefaultCollectionRenderer}","<ListStateContext value={null}>\n {render.children}\n </ListStateContext>","value={null}","<div {...aria.gridCellProps} style={{ display: \"contents\" }}>\n <CheckboxContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}\n >\n <CheckboxFieldContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}\n >\n <ButtonContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {\n get isDisabled() {\n return (\n aria.isDisabled &&\n state.selectionManager.disabledBehavior === \"all\"\n );\n },\n },\n drag: mergeProps(\n merge(() => drag?.dragButtonProps ?? {}),\n {\n style: { \"pointer-events\": \"none\" as const },\n }\n ),\n },\n }}\n >\n <TextContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get description() {\n return aria.descriptionProps;\n },\n },\n }}\n >\n <SelectionIndicatorContext\n value={{\n get isSelected() {\n return aria.isSelected;\n },\n }}\n >\n <CollectionRendererContext\n value={DefaultCollectionRenderer}\n >\n <ListStateContext value={null}>\n {render.children}\n </ListStateContext>\n </CollectionRendererContext>\n </SelectionIndicatorContext>\n </TextContext>\n </ButtonContext>\n </CheckboxFieldContext>\n </CheckboxContext>\n </div>","ref={(element: HTMLDivElement) => {\n setSentinel(element);\n }}","{props.isLoading === true && (\n <dom.div\n {...filterDOMProps(props, { global: true })}\n render={props.render}\n class={props.class ?? \"solid2-aria-GridListLoadingIndicator\"}\n ref={ref}\n role=\"row\"\n >\n <div role=\"gridcell\">{item.rendered}</div>\n </dom.div>\n )}","<dom.div\n {...filterDOMProps(props, { global: true })}\n render={props.render}\n class={props.class ?? \"solid2-aria-GridListLoadingIndicator\"}\n ref={ref}\n role=\"row\"\n >\n <div role=\"gridcell\">{item.rendered}</div>\n </dom.div>","role=\"row\"","{item.rendered}","<div role=\"gridcell\">{item.rendered}</div>","<dom.div\n {...props}\n class={props.class ?? \"solid2-aria-GridListHeader\"}\n ref={(element: HTMLDivElement) => {\n setRef(element);\n }}\n >\n <div\n {...(inner\n ? // oxlint-disable solid/reactivity -- Keep prop filtering in the renderer's lazy evaluation.\n omit(inner, \"ref\")\n : // oxlint-enable solid/reactivity\n {})}\n style={{ display: \"contents\" }}\n >\n {props.children}\n </div>\n </dom.div>","ref={(element: HTMLDivElement) => {\n setRef(element);\n }}","{props.children}","<div\n {...(inner\n ? // oxlint-disable solid/reactivity -- Keep prop filtering in the renderer's lazy evaluation.\n omit(inner, \"ref\")\n : // oxlint-enable solid/reactivity\n {})}\n style={{ display: \"contents\" }}\n >\n {props.children}\n </div>","<dom.div\n {...mergeProps(\n omit(filterDOMProps(props, { global: true }), \"id\"),\n merge(() => aria.rowGroupProps ?? {})\n )}\n render={props.render}\n class={props.class ?? \"solid2-aria-GridListSection\"}\n ref={(element: HTMLDivElement) => {\n setRef(element);\n }}\n >\n <GridListHeaderContext value={{ role: \"row\" }}>\n <GridListHeaderInnerContext value={aria.rowHeaderProps}>\n <Branch collection={state.collection} parent={item} />\n </GridListHeaderInnerContext>\n </GridListHeaderContext>\n </dom.div>","<GridListHeaderContext value={{ role: \"row\" }}>\n <GridListHeaderInnerContext value={aria.rowHeaderProps}>\n <Branch collection={state.collection} parent={item} />\n </GridListHeaderInnerContext>\n </GridListHeaderContext>","value={{ role: \"row\" }}","<GridListHeaderInnerContext value={aria.rowHeaderProps}>\n <Branch collection={state.collection} parent={item} />\n </GridListHeaderInnerContext>","<Branch collection={state.collection} parent={item} />","parent={item}","ref={(element: HTMLDivElement) => {\n setRef(element);\n }}","<div\n {...mergeProps(\n merge(() => hidden.visuallyHiddenProps ?? {}),\n merge(() => aria.dropIndicatorProps ?? {})\n )}\n role=\"button\"\n ref={(element: HTMLDivElement) => {\n setRef(element);\n }}\n />","<Show when={!aria.isHidden}>\n {props.table === true ? (\n <tr role=\"row\" style={{ position: \"absolute\" }}>\n <td role=\"gridcell\" colspan={props.columnCount}>\n {button}\n </td>\n </tr>\n ) : (\n <div role=\"row\" style={{ position: \"absolute\" }}>\n <div role=\"gridcell\">{button}</div>\n </div>\n )}\n </Show>","{props.table === true ? (\n <tr role=\"row\" style={{ position: \"absolute\" }}>\n <td role=\"gridcell\" colspan={props.columnCount}>\n {button}\n </td>\n </tr>\n ) : (\n <div role=\"row\" style={{ position: \"absolute\" }}>\n <div role=\"gridcell\">{button}</div>\n </div>\n )}","_$createComponent","mergeProps","_$mergeProps","_$applyRef","_$memo","_$getNextElement","_$scope","ref"],"sources":["../../src/grid-list.tsx"],"sourcesContent":["/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n/*\n * Derived from Adobe React Spectrum: packages/react-aria-components/src/GridList.tsx.\n * Modified for Solid Aria: collections, selection, drag and drop, and DOM rendering use Solid 2 ownership and reactive getters; uses Solid class props.\n * Licensed under Apache-2.0. See LICENSES/Apache-2.0.txt and NOTICE.txt at the repository root.\n */\n\nimport {\n BaseCollection,\n ItemNode,\n LoaderNode,\n SectionNode,\n HeaderNode,\n} from \"@solid2-aria/core/collections/base-collection\";\nimport {\n Collection,\n CollectionBuilder,\n createLeafComponent,\n createBranchComponent,\n} from \"@solid2-aria/core/collections/collection-builder\";\nimport { createFocusRing } from \"@solid2-aria/core/focus/create-focus-ring\";\nimport { createGridList } from \"@solid2-aria/core/gridlist/create-grid-list\";\nimport type { AriaGridListProps } from \"@solid2-aria/core/gridlist/create-grid-list\";\nimport { createGridListItem } from \"@solid2-aria/core/gridlist/create-grid-list-item\";\nimport { createGridListSection } from \"@solid2-aria/core/gridlist/create-grid-list-section\";\nimport { createGridListSelectionCheckbox } from \"@solid2-aria/core/gridlist/create-grid-list-selection-checkbox\";\nimport { createCollator } from \"@solid2-aria/core/i18n/create-collator\";\nimport { createLocale } from \"@solid2-aria/core/i18n/i18n-provider\";\nimport { createHover } from \"@solid2-aria/core/interactions/create-hover\";\nimport { ListKeyboardDelegate } from \"@solid2-aria/core/selection/list-keyboard-delegate\";\nimport { createLoadMoreSentinel } from \"@solid2-aria/core/utils/create-load-more-sentinel\";\nimport type { LoadMoreSentinelProps } from \"@solid2-aria/core/utils/create-load-more-sentinel\";\nimport { filterDOMProps } from \"@solid2-aria/core/utils/filter-dom-props\";\nimport { mergeProps } from \"@solid2-aria/core/utils/merge-props\";\nimport { requireValue } from \"@solid2-aria/core/utils/require-value\";\nimport { createVisuallyHidden } from \"@solid2-aria/core/visually-hidden/visually-hidden\";\nimport { createListState } from \"@solid2-aria/stately/list/create-list-state\";\nimport type { ListState } from \"@solid2-aria/stately/list/create-list-state\";\nimport type {\n Key,\n LinkDOMProps,\n HoverEvents,\n PressEvents,\n Orientation,\n Node,\n SelectionBehavior,\n Collection as ICollection,\n} from \"@solid2-aria/types-shared\";\nimport type {\n GlobalDOMAttributes,\n HTMLAttributes,\n} from \"@solid2-aria/types-shared-web\";\nimport type { JSX } from \"@solidjs/web\";\nimport {\n merge,\n untrack,\n createSignal,\n createMemo,\n createContext,\n useContext,\n omit,\n Show,\n} from \"solid-js\";\nimport type { Accessor } from \"solid-js\";\n\nimport { ButtonContext } from \"./button\";\nimport { CheckboxContext, CheckboxFieldContext } from \"./checkbox\";\nimport {\n CollectionRendererContext,\n DefaultCollectionRenderer,\n} from \"./collection\";\nimport type {\n CollectionProps,\n ItemRenderProps,\n SectionProps,\n} from \"./collection\";\nimport {\n createCollectionItemDragAndDrop,\n createCollectionDragAndDrop,\n CollectionDropIndicator,\n} from \"./collection-dnd\";\nimport type { DragAndDropHooks } from \"./create-drag-and-drop\";\nimport {\n DragAndDropContext,\n DropIndicatorContext,\n createDndPersistedKeys,\n createRenderDropIndicator,\n} from \"./drag-and-drop\";\nimport { ListStateContext } from \"./list-box\";\nimport { SelectionIndicatorContext } from \"./selection-indicator\";\nimport { TextContext } from \"./text\";\nimport {\n dom,\n DEFAULT_SLOT,\n createContextProps,\n createRenderProps,\n} from \"./utils\";\nimport type {\n ClassOrFunction,\n ContextValue,\n RenderProps,\n StyleRenderProps,\n StyleProps,\n SlotProps,\n DOMProps,\n DOMRenderProps,\n Ref,\n} from \"./utils\";\n\nexport {\n createCollectionDragAndDrop,\n CollectionDropIndicator,\n} from \"./collection-dnd\";\n\nexport type { CollectionDragAndDrop } from \"./collection-dnd\";\n\nexport interface GridListRenderProps {\n isEmpty: boolean;\n\n isFocused: boolean;\n\n isFocusVisible: boolean;\n\n isDropTarget: boolean;\n\n layout: \"stack\" | \"grid\";\n\n orientation: Orientation;\n\n state: ListState<unknown>;\n}\n\nexport interface GridListProps<T>\n extends\n Omit<AriaGridListProps<T>, \"children\">,\n CollectionProps<T>,\n StyleRenderProps<GridListRenderProps>,\n SlotProps,\n GlobalDOMAttributes<HTMLDivElement> {\n class?: ClassOrFunction<GridListRenderProps>;\n\n disallowTypeAhead?: boolean;\n\n selectionBehavior?: SelectionBehavior;\n\n dragAndDropHooks?: DragAndDropHooks<NoInfer<T>>;\n\n renderEmptyState?: (props: GridListRenderProps) => JSX.Element;\n\n layout?: \"stack\" | \"grid\";\n\n orientation?: Orientation;\n\n UNSTABLE_focusOnEntry?: \"first\" | \"last\";\n}\n\nexport interface GridListItemRenderProps extends ItemRenderProps {\n id?: Key;\n\n isFocusVisibleWithin: boolean;\n\n state: ListState<unknown>;\n}\n\nexport interface GridListItemProps<T = object>\n extends\n RenderProps<GridListItemRenderProps>,\n LinkDOMProps,\n HoverEvents,\n PressEvents,\n Omit<GlobalDOMAttributes<HTMLDivElement>, \"onClick\"> {\n class?: ClassOrFunction<GridListItemRenderProps>;\n\n id?: Key;\n\n value?: T;\n\n textValue?: string;\n\n isDisabled?: boolean;\n\n onAction?: () => void;\n\n focusMode?: \"child\" | \"row\";\n\n allowsArrowNavigation?: boolean;\n}\n\nexport interface GridListLoadMoreItemProps\n extends\n Omit<LoadMoreSentinelProps, \"collection\" | \"direction\">,\n StyleProps,\n DOMRenderProps<\"div\", undefined>,\n GlobalDOMAttributes<HTMLDivElement> {\n class?: JSX.ClassValue;\n\n children?: JSX.Element;\n\n isLoading?: boolean;\n}\n\nexport interface GridListSectionProps<T>\n extends SectionProps<T>, DOMRenderProps<\"div\", undefined> {\n class?: JSX.ClassValue;\n}\n\nexport interface GridListHeaderProps\n extends\n DOMRenderProps<\"div\", undefined>,\n Omit<DOMProps, \"ref\">,\n GlobalDOMAttributes<HTMLElement> {\n role?: \"row\";\n}\n\nexport const GridListContext =\n // oxlint-disable-next-line typescript/no-explicit-any -- The collection owner and its descendants share one item type through this context.\n createContext<ContextValue<GridListProps<any>, HTMLDivElement>>(null);\n\nexport function GridList<T>(\n input: GridListProps<T> & { ref?: Ref<HTMLDivElement> }\n): JSX.Element {\n const [props, ref, setRef] = createContextProps(\n input,\n untrack(() => input.ref),\n GridListContext\n );\n\n return (\n <CollectionBuilder\n createCollection={() => new BaseCollection<T>()}\n content={<Collection {...props} />}\n >\n {(collection) => (\n <GridListInner\n props={props}\n collection={collection}\n elementRef={ref}\n setElementRef={(element: HTMLDivElement) => {\n setRef(element);\n }}\n />\n )}\n </CollectionBuilder>\n );\n}\n\nfunction GridListInner<T>(outer: {\n props: GridListProps<T>;\n collection: ICollection<Node<T>>;\n elementRef: Accessor<HTMLDivElement | null>;\n setElementRef: (element: HTMLDivElement) => void;\n}) {\n const { props } = untrack(() => outer);\n const renderer = useContext(CollectionRendererContext);\n\n // oxlint-disable-next-line typescript/no-explicit-any -- The public collection accepts primitive items; this state adapter only reads their keyed nodes.\n const state = createListState<any>(\n mergeProps(props, {\n children: undefined,\n get collection() {\n return outer.collection;\n },\n })\n );\n\n const locale = createLocale();\n const collator = createCollator({ sensitivity: \"base\", usage: \"search\" });\n\n const keyboardDelegate = createMemo(\n () =>\n new ListKeyboardDelegate({\n collator,\n get collection() {\n return state.collection;\n },\n get direction() {\n return locale.direction;\n },\n get disabledBehavior() {\n return state.selectionManager.disabledBehavior;\n },\n get disabledKeys() {\n return state.disabledKeys;\n },\n get layout() {\n return props.layout ?? \"stack\";\n },\n layoutDelegate: renderer.layoutDelegate,\n get orientation() {\n return props.orientation ?? \"vertical\";\n },\n ref: outer.elementRef,\n })\n );\n\n const aria = createGridList(\n mergeProps(props, {\n get isVirtualized() {\n return renderer.isVirtualized;\n },\n get keyboardDelegate() {\n return keyboardDelegate();\n },\n get keyboardNavigationBehavior() {\n return props.layout === \"grid\"\n ? \"tab\"\n : props.keyboardNavigationBehavior;\n },\n }),\n state,\n untrack(() => outer.elementRef)\n );\n\n const dnd = createCollectionDragAndDrop({\n get collection() {\n return state.collection;\n },\n get direction() {\n return locale.direction;\n },\n get dropTargetDelegate() {\n return (\n props.dragAndDropHooks?.dropTargetDelegate ??\n renderer.dropTargetDelegate\n );\n },\n get hooks() {\n return props.dragAndDropHooks;\n },\n get keyboardDelegate() {\n return keyboardDelegate();\n },\n get layout() {\n return props.layout;\n },\n get orientation() {\n return props.orientation;\n },\n get ref() {\n return outer.elementRef;\n },\n get selectionManager() {\n return state.selectionManager;\n },\n });\n\n const focus = createFocusRing();\n\n const values: GridListRenderProps = {\n get isDropTarget() {\n return dnd.dropState?.isDropTarget({ type: \"root\" }) === true;\n },\n get isEmpty() {\n return state.collection.size === 0;\n },\n get isFocusVisible() {\n return focus.isFocusVisible;\n },\n get isFocused() {\n return focus.isFocused;\n },\n get layout() {\n return props.layout ?? \"stack\";\n },\n get orientation() {\n return props.orientation ?? \"vertical\";\n },\n state,\n };\n\n const render = createRenderProps(\n mergeProps(props, {\n children: undefined,\n defaultClass: \"solid2-aria-GridList\",\n values,\n })\n );\n\n const Root = renderer.CollectionRoot;\n\n return (\n <dom.div\n {...mergeProps(\n filterDOMProps(props, { global: true }),\n render,\n merge(() => aria.gridProps ?? {}),\n merge(() => focus.focusProps ?? {}),\n merge(() => dnd.collectionProps ?? {})\n )}\n ref={(element: HTMLDivElement) => {\n outer.setElementRef(element);\n }}\n slot={props.slot ?? undefined}\n data-empty={values.isEmpty || undefined}\n data-focused={focus.isFocused || undefined}\n data-focus-visible={focus.isFocusVisible || undefined}\n data-drop-target={values.isDropTarget || undefined}\n data-layout={values.layout}\n data-orientation={values.orientation}\n >\n <ListStateContext value={state}>\n <DragAndDropContext value={dnd}>\n <DropIndicatorContext\n value={{\n render: (indicatorProps, ref) => (\n <CollectionDropIndicator {...indicatorProps} ref={ref} />\n ),\n }}\n >\n {dnd.dropState && <RootDropIndicator />}\n <Root\n collection={state.collection}\n scrollRef={outer.elementRef}\n persistedKeys={createDndPersistedKeys(\n state.selectionManager,\n props.dragAndDropHooks,\n dnd.dropState\n )}\n renderDropIndicator={createRenderDropIndicator(\n props.dragAndDropHooks,\n dnd.dropState\n )}\n />\n </DropIndicatorContext>\n </DragAndDropContext>\n </ListStateContext>\n {values.isEmpty && props.renderEmptyState && (\n <div role=\"row\">\n <div role=\"gridcell\">{props.renderEmptyState(values)}</div>\n </div>\n )}\n {dnd.preview}\n </dom.div>\n );\n}\n\nexport const GridListItem = createLeafComponent(\n ItemNode,\n <T,>(\n props: GridListItemProps<T>,\n forwardedRef: Ref<HTMLDivElement>,\n item: Node<T>\n ) => {\n const state = requireValue(\n useContext(ListStateContext),\n \"Expected useContext(ListStateContext)\"\n );\n\n const renderer = useContext(CollectionRendererContext);\n const dnd = useContext(DragAndDropContext);\n\n const [ref, setRef] = createSignal<HTMLDivElement | null>(null, {\n ownedWrite: true,\n });\n\n const aria = createGridListItem(\n {\n get allowsArrowNavigation() {\n return props.allowsArrowNavigation;\n },\n get focusMode() {\n return props.focusMode;\n },\n isVirtualized: renderer.isVirtualized,\n node: item,\n shouldSelectOnPressUp: !!dnd.dragState,\n },\n state,\n ref\n );\n\n const hover = createHover(\n mergeProps(props, {\n get isDisabled() {\n return !aria.allowsSelection && !aria.hasAction && !dnd.dragState;\n },\n })\n );\n\n const focus = createFocusRing();\n const within = createFocusRing({ within: true });\n const checkbox = createGridListSelectionCheckbox({ key: item.key }, state);\n\n const [dropRef, setDropRef] = createSignal<HTMLDivElement | null>(null, {\n ownedWrite: true,\n });\n\n const { drag, drop } = createCollectionItemDragAndDrop(\n dnd,\n item.key,\n dropRef\n );\n\n const values: GridListItemRenderProps = {\n get allowsDragging() {\n return !!dnd.dragState;\n },\n id: item.key,\n get isDisabled() {\n return aria.isDisabled;\n },\n get isDragging() {\n return dnd.dragState?.isDragging(item.key) === true;\n },\n get isDropTarget() {\n return drop?.isDropTarget === true;\n },\n get isFocusVisible() {\n return focus.isFocusVisible;\n },\n get isFocusVisibleWithin() {\n return within.isFocusVisible;\n },\n get isFocused() {\n return aria.isFocused;\n },\n get isHovered() {\n return hover.isHovered;\n },\n get isPressed() {\n return aria.isPressed;\n },\n get isSelected() {\n return aria.isSelected;\n },\n get selectionBehavior() {\n return state.selectionManager.selectionBehavior;\n },\n get selectionMode() {\n return state.selectionManager.selectionMode;\n },\n state,\n };\n\n const render = createRenderProps(\n mergeProps(props, {\n get children() {\n return item.rendered;\n },\n defaultClass: \"solid2-aria-GridListItem\",\n id: undefined,\n values,\n })\n );\n\n const hidden = createVisuallyHidden();\n\n return (\n <>\n {drop && !drop.isHidden && (\n <div role=\"row\" style={{ position: \"absolute\" }}>\n <div role=\"gridcell\">\n <div\n {...mergeProps(\n merge(() => hidden.visuallyHiddenProps ?? {}),\n merge(() => drop.dropIndicatorProps ?? {})\n )}\n role=\"button\"\n ref={(element: HTMLDivElement) => {\n setDropRef(element);\n }}\n />\n </div>\n </div>\n )}\n <dom.div\n {...mergeProps(\n omit(filterDOMProps(props, { global: true }), \"id\", \"onClick\"),\n render,\n merge(() => aria.rowProps ?? {}),\n merge(() => focus.focusProps ?? {}),\n merge(() => within.focusProps ?? {}),\n merge(() => hover.hoverProps ?? {}),\n merge(() => drag?.dragProps ?? {})\n )}\n ref={(element: HTMLDivElement) => {\n setRef(element);\n }}\n data-selected={aria.isSelected || undefined}\n data-disabled={aria.isDisabled || undefined}\n data-hovered={hover.isHovered || undefined}\n data-focused={aria.isFocused || undefined}\n data-focus-visible={focus.isFocusVisible || undefined}\n data-focus-visible-within={within.isFocusVisible || undefined}\n data-pressed={aria.isPressed || undefined}\n data-allows-dragging={!!dnd.dragState || undefined}\n data-dragging={values.isDragging ?? undefined}\n data-drop-target={drop?.isDropTarget ?? undefined}\n data-selection-mode={\n state.selectionManager.selectionMode === \"none\"\n ? undefined\n : state.selectionManager.selectionMode\n }\n >\n <div {...aria.gridCellProps} style={{ display: \"contents\" }}>\n <CheckboxContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}\n >\n <CheckboxFieldContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}\n >\n <ButtonContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {\n get isDisabled() {\n return (\n aria.isDisabled &&\n state.selectionManager.disabledBehavior === \"all\"\n );\n },\n },\n drag: mergeProps(\n merge(() => drag?.dragButtonProps ?? {}),\n {\n style: { \"pointer-events\": \"none\" as const },\n }\n ),\n },\n }}\n >\n <TextContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get description() {\n return aria.descriptionProps;\n },\n },\n }}\n >\n <SelectionIndicatorContext\n value={{\n get isSelected() {\n return aria.isSelected;\n },\n }}\n >\n <CollectionRendererContext\n value={DefaultCollectionRenderer}\n >\n <ListStateContext value={null}>\n {render.children}\n </ListStateContext>\n </CollectionRendererContext>\n </SelectionIndicatorContext>\n </TextContext>\n </ButtonContext>\n </CheckboxFieldContext>\n </CheckboxContext>\n </div>\n </dom.div>\n </>\n );\n }\n);\n\nexport const GridListLoadMoreItem = createLeafComponent(\n LoaderNode,\n (\n props: GridListLoadMoreItemProps,\n ref: Ref<HTMLDivElement>,\n item: Node<object>\n ) => {\n const state = requireValue(\n useContext(ListStateContext),\n \"Expected useContext(ListStateContext)\"\n );\n\n const [sentinel, setSentinel] = createSignal<HTMLDivElement | null>(null, {\n ownedWrite: true,\n });\n\n createLoadMoreSentinel(\n mergeProps(props, {\n get collection() {\n return state.collection;\n },\n }),\n sentinel\n );\n\n return (\n <>\n <div style={{ height: 0, position: \"relative\", width: 0 }} inert>\n <div\n ref={(element: HTMLDivElement) => {\n setSentinel(element);\n }}\n style={{ height: \"1px\", position: \"absolute\", width: \"1px\" }}\n />\n </div>\n {props.isLoading === true && (\n <dom.div\n {...filterDOMProps(props, { global: true })}\n render={props.render}\n class={props.class ?? \"solid2-aria-GridListLoadingIndicator\"}\n ref={ref}\n role=\"row\"\n >\n <div role=\"gridcell\">{item.rendered}</div>\n </dom.div>\n )}\n </>\n );\n }\n);\n\nexport const GridListHeaderContext = createContext<\n ContextValue<GridListHeaderProps, HTMLDivElement>\n>({});\n\nexport const GridListHeaderInnerContext =\n createContext<HTMLAttributes<HTMLElement> | null>(null);\n\nexport const GridListHeader = createLeafComponent(\n HeaderNode,\n (input: GridListHeaderProps, forwardedRef: Ref<HTMLDivElement>) => {\n const [props, , setRef] = createContextProps(\n input,\n forwardedRef,\n GridListHeaderContext\n );\n\n const inner = useContext(GridListHeaderInnerContext);\n\n return (\n <dom.div\n {...props}\n class={props.class ?? \"solid2-aria-GridListHeader\"}\n ref={(element: HTMLDivElement) => {\n setRef(element);\n }}\n >\n <div\n {...(inner\n ? // oxlint-disable solid/reactivity -- Keep prop filtering in the renderer's lazy evaluation.\n omit(inner, \"ref\")\n : // oxlint-enable solid/reactivity\n {})}\n style={{ display: \"contents\" }}\n >\n {props.children}\n </div>\n </dom.div>\n );\n }\n);\n\nexport const GridListSection = createBranchComponent(\n SectionNode,\n <T,>(\n props: GridListSectionProps<T>,\n forwardedRef: Ref<HTMLDivElement>,\n item: Node<T>\n ) => {\n const state = requireValue(\n useContext(ListStateContext),\n \"Expected useContext(ListStateContext)\"\n );\n\n const renderer = useContext(CollectionRendererContext);\n const Branch = renderer.CollectionBranch;\n\n const [ref, setRef] = createSignal<HTMLDivElement | null>(null, {\n ownedWrite: true,\n });\n\n const aria = createGridListSection(props, state, ref);\n\n return (\n <dom.div\n {...mergeProps(\n omit(filterDOMProps(props, { global: true }), \"id\"),\n merge(() => aria.rowGroupProps ?? {})\n )}\n render={props.render}\n class={props.class ?? \"solid2-aria-GridListSection\"}\n ref={(element: HTMLDivElement) => {\n setRef(element);\n }}\n >\n <GridListHeaderContext value={{ role: \"row\" }}>\n <GridListHeaderInnerContext value={aria.rowHeaderProps}>\n <Branch collection={state.collection} parent={item} />\n </GridListHeaderInnerContext>\n </GridListHeaderContext>\n </dom.div>\n );\n }\n);\n\nexport function RootDropIndicator(\n props: { table?: boolean; columnCount?: number } = {}\n) {\n const context = useContext(DragAndDropContext);\n\n const [ref, setRef] = createSignal<HTMLDivElement | null>(null, {\n ownedWrite: true,\n });\n\n const aria = untrack(() =>\n requireValue(\n requireValue(\n context.dragAndDropHooks,\n \"Expected context.dragAndDropHooks\"\n ).createDropIndicator,\n \"Expected context.dragAndDropHooks!.createDropIndicator\"\n )(\n { target: { type: \"root\" } },\n requireValue(context.dropState, \"Expected context.dropState\"),\n ref\n )\n );\n\n const hidden = createVisuallyHidden();\n\n const button = (\n <div\n {...mergeProps(\n merge(() => hidden.visuallyHiddenProps ?? {}),\n merge(() => aria.dropIndicatorProps ?? {})\n )}\n role=\"button\"\n ref={(element: HTMLDivElement) => {\n setRef(element);\n }}\n />\n );\n\n return (\n <Show when={!aria.isHidden}>\n {props.table === true ? (\n <tr role=\"row\" style={{ position: \"absolute\" }}>\n <td role=\"gridcell\" colspan={props.columnCount}>\n {button}\n </td>\n </tr>\n ) : (\n <div role=\"row\" style={{ position: \"absolute\" }}>\n <div role=\"gridcell\">{button}</div>\n </div>\n )}\n </Show>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgOA,MAAa,kBAEX,cAAgE,IAAI;AAEtE,SAAgB,SACd,OACa;CACb,MAAM,CAAC,OAAO,KAAK,UAAU,mBAC3B,OACA,cAAc,MAAM,GAAG,GACvB,eACF;CAEA,OACEA,gBAAAA,mBAAAA;EACEC,wBAAwB,IAAI,eAAkB;EAC9C,IAAA,UAAA;GAASC,OAAAA,gBAAAA,YAAgB,KAAQ;EAAC;EAFpCF,WAII,eACAG,gBAAAA,eAAAA;GACS;GACK;GACZC,YAAY;GACZC,gBAAgB,YAA4B;IAC1C,OAAO,OAAO;GAChB;EACD,CAAA;CAEc,CAAA;AAEvB;AAEA,SAAS,cAAiB,OAKvB;CACD,MAAM,EAAE,UAAU,cAAc,KAAK;CACrC,MAAM,WAAW,WAAW,yBAAyB;CAGrD,MAAM,QAAQ,gBACZ4D,aAAW,OAAO;EAChB,UAAU,KAAA;EACV,IAAI,aAAa;GACf,OAAO,MAAM;EACf;CACF,CAAC,CACH;CAEA,MAAM,SAAS,aAAa;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AAM,IAAA,OAAA;GAAM,OAAA,CAAC,KAAK;EAAQ;EAA1B,IAAA,WAAA;GACEC,OAAAA,WAAAA;IAAC,OAAA,MAAM,UAAU;GAUhB,CAAA,CAAC,CAAD,WATC;IAII,IAAA,SAAAM,eAAA,OAAA;IAHF,IAAA,SAAA,OAAA;IACG,OAAA,QAAA,MACC;IAFgB,aAAS,MAAM,cAAf,QAAA;KAA0B,aAAA,QAAA,WAAA,GAAA;;IADhD,OAAA;GAII,EAAA,CAAA,WAEJ;IAEK,IAAA,SAAAA,eAAA,OAAA;IADH,IAAA,SAAA,OAAA;IAAsB,OAAA,QAAA,MAAY;IADpC,OAAA;GAEK,EAAA,CAAA;EAEH;;AAEV"}
|
|
1
|
+
{"version":3,"file":"grid-list.js","names":["<CollectionBuilder\n createCollection={() => new BaseCollection<T>()}\n content={<Collection {...props} />}\n >\n {(collection) => (\n <GridListInner\n props={props}\n collection={collection}\n elementRef={ref}\n setElementRef={(element: HTMLDivElement) => {\n setRef(element);\n }}\n />\n )}\n </CollectionBuilder>","createCollection={() => new BaseCollection<T>()}","<Collection {...props} />","<GridListInner\n props={props}\n collection={collection}\n elementRef={ref}\n setElementRef={(element: HTMLDivElement) => {\n setRef(element);\n }}\n />","elementRef={ref}","setElementRef={(element: HTMLDivElement) => {\n setRef(element);\n }}","<dom.div\n {...mergeProps(\n filterDOMProps(props, { global: true }),\n render,\n merge(() => aria.gridProps ?? {}),\n merge(() => focus.focusProps ?? {}),\n merge(() => dnd.collectionProps ?? {})\n )}\n ref={(element: HTMLDivElement) => {\n outer.setElementRef(element);\n }}\n slot={props.slot ?? undefined}\n data-empty={values.isEmpty || undefined}\n data-focused={focus.isFocused || undefined}\n data-focus-visible={focus.isFocusVisible || undefined}\n data-drop-target={values.isDropTarget || undefined}\n data-layout={values.layout}\n data-orientation={values.orientation}\n >\n <ListStateContext value={state}>\n <DragAndDropContext value={dnd}>\n <DropIndicatorContext\n value={{\n render: (indicatorProps, ref) => (\n <CollectionDropIndicator {...indicatorProps} ref={ref} />\n ),\n }}\n >\n {dnd.dropState && <RootDropIndicator />}\n <Root\n collection={state.collection}\n scrollRef={outer.elementRef}\n persistedKeys={createDndPersistedKeys(\n state.selectionManager,\n props.dragAndDropHooks,\n dnd.dropState\n )}\n renderDropIndicator={createRenderDropIndicator(\n props.dragAndDropHooks,\n dnd.dropState\n )}\n />\n </DropIndicatorContext>\n </DragAndDropContext>\n </ListStateContext>\n {values.isEmpty && props.renderEmptyState && (\n <div role=\"row\">\n <div role=\"gridcell\">{props.renderEmptyState(values)}</div>\n </div>\n )}\n {dnd.preview}\n </dom.div>","dom.div","ref={(element: HTMLDivElement) => {\n outer.setElementRef(element);\n }}","<ListStateContext value={state}>\n <DragAndDropContext value={dnd}>\n <DropIndicatorContext\n value={{\n render: (indicatorProps, ref) => (\n <CollectionDropIndicator {...indicatorProps} ref={ref} />\n ),\n }}\n >\n {dnd.dropState && <RootDropIndicator />}\n <Root\n collection={state.collection}\n scrollRef={outer.elementRef}\n persistedKeys={createDndPersistedKeys(\n state.selectionManager,\n props.dragAndDropHooks,\n dnd.dropState\n )}\n renderDropIndicator={createRenderDropIndicator(\n props.dragAndDropHooks,\n dnd.dropState\n )}\n />\n </DropIndicatorContext>\n </DragAndDropContext>\n </ListStateContext>","value={state}","<DragAndDropContext value={dnd}>\n <DropIndicatorContext\n value={{\n render: (indicatorProps, ref) => (\n <CollectionDropIndicator {...indicatorProps} ref={ref} />\n ),\n }}\n >\n {dnd.dropState && <RootDropIndicator />}\n <Root\n collection={state.collection}\n scrollRef={outer.elementRef}\n persistedKeys={createDndPersistedKeys(\n state.selectionManager,\n props.dragAndDropHooks,\n dnd.dropState\n )}\n renderDropIndicator={createRenderDropIndicator(\n props.dragAndDropHooks,\n dnd.dropState\n )}\n />\n </DropIndicatorContext>\n </DragAndDropContext>","value={dnd}","<DropIndicatorContext\n value={{\n render: (indicatorProps, ref) => (\n <CollectionDropIndicator {...indicatorProps} ref={ref} />\n ),\n }}\n >\n {dnd.dropState && <RootDropIndicator />}\n <Root\n collection={state.collection}\n scrollRef={outer.elementRef}\n persistedKeys={createDndPersistedKeys(\n state.selectionManager,\n props.dragAndDropHooks,\n dnd.dropState\n )}\n renderDropIndicator={createRenderDropIndicator(\n props.dragAndDropHooks,\n dnd.dropState\n )}\n />\n </DropIndicatorContext>","value={{\n render: (indicatorProps, ref) => (\n <CollectionDropIndicator {...indicatorProps} ref={ref} />\n ),\n }}","<CollectionDropIndicator {...indicatorProps} ref={ref} />","ref={ref}","{dnd.dropState && <RootDropIndicator />}","<RootDropIndicator />","<Root\n collection={state.collection}\n scrollRef={outer.elementRef}\n persistedKeys={createDndPersistedKeys(\n state.selectionManager,\n props.dragAndDropHooks,\n dnd.dropState\n )}\n renderDropIndicator={createRenderDropIndicator(\n props.dragAndDropHooks,\n dnd.dropState\n )}\n />","{values.isEmpty && props.renderEmptyState && (\n <div role=\"row\">\n <div role=\"gridcell\">{props.renderEmptyState(values)}</div>\n </div>\n )}","{props.renderEmptyState(values)}","dnd.preview","{drop && !drop.isHidden && (\n <div role=\"row\" style={{ position: \"absolute\" }}>\n <div role=\"gridcell\">\n <div\n {...mergeProps(\n merge(() => hidden.visuallyHiddenProps ?? {}),\n merge(() => drop.dropIndicatorProps ?? {})\n )}\n role=\"button\"\n ref={(element: HTMLDivElement) => {\n setDropRef(element);\n }}\n />\n </div>\n </div>\n )}","role=\"button\"","ref={(element: HTMLDivElement) => {\n setDropRef(element);\n }}","<dom.div\n {...mergeProps(\n omit(filterDOMProps(props, { global: true }), \"id\", \"onClick\"),\n render,\n merge(() => aria.rowProps ?? {}),\n merge(() => focusEvents.focusProps ?? {}),\n merge(() => focus.focusProps ?? {}),\n merge(() => within.focusProps ?? {}),\n merge(() => hover.hoverProps ?? {}),\n merge(() => drag?.dragProps ?? {})\n )}\n ref={(element: HTMLDivElement) => {\n setRef(element);\n }}\n data-selected={aria.isSelected || undefined}\n data-disabled={aria.isDisabled || undefined}\n data-hovered={hover.isHovered || undefined}\n data-focused={aria.isFocused || undefined}\n data-focus-visible={focus.isFocusVisible || undefined}\n data-focus-visible-within={within.isFocusVisible || undefined}\n data-pressed={aria.isPressed || undefined}\n data-allows-dragging={!!dnd.dragState || undefined}\n data-dragging={values.isDragging ?? undefined}\n data-drop-target={drop?.isDropTarget ?? undefined}\n data-selection-mode={\n state.selectionManager.selectionMode === \"none\"\n ? undefined\n : state.selectionManager.selectionMode\n }\n >\n <div {...aria.gridCellProps} style={{ display: \"contents\" }}>\n <CheckboxContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}\n >\n <CheckboxFieldContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}\n >\n <ButtonContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {\n get isDisabled() {\n return (\n aria.isDisabled &&\n state.selectionManager.disabledBehavior === \"all\"\n );\n },\n },\n drag: mergeProps(\n merge(() => drag?.dragButtonProps ?? {}),\n {\n style: { \"pointer-events\": \"none\" as const },\n }\n ),\n },\n }}\n >\n <TextContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get description() {\n return aria.descriptionProps;\n },\n },\n }}\n >\n <SelectionIndicatorContext\n value={{\n get isSelected() {\n return aria.isSelected;\n },\n }}\n >\n <CollectionRendererContext\n value={DefaultCollectionRenderer}\n >\n <ListStateContext value={null}>\n {render.children}\n </ListStateContext>\n </CollectionRendererContext>\n </SelectionIndicatorContext>\n </TextContext>\n </ButtonContext>\n </CheckboxFieldContext>\n </CheckboxContext>\n </div>\n </dom.div>","ref={(element: HTMLDivElement) => {\n setRef(element);\n }}","state.selectionManager.selectionMode === \"none\"\n ? undefined\n : state.selectionManager.selectionMode","style={{ display: \"contents\" }}","<CheckboxContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}\n >\n <CheckboxFieldContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}\n >\n <ButtonContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {\n get isDisabled() {\n return (\n aria.isDisabled &&\n state.selectionManager.disabledBehavior === \"all\"\n );\n },\n },\n drag: mergeProps(\n merge(() => drag?.dragButtonProps ?? {}),\n {\n style: { \"pointer-events\": \"none\" as const },\n }\n ),\n },\n }}\n >\n <TextContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get description() {\n return aria.descriptionProps;\n },\n },\n }}\n >\n <SelectionIndicatorContext\n value={{\n get isSelected() {\n return aria.isSelected;\n },\n }}\n >\n <CollectionRendererContext\n value={DefaultCollectionRenderer}\n >\n <ListStateContext value={null}>\n {render.children}\n </ListStateContext>\n </CollectionRendererContext>\n </SelectionIndicatorContext>\n </TextContext>\n </ButtonContext>\n </CheckboxFieldContext>\n </CheckboxContext>","value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}","<CheckboxFieldContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}\n >\n <ButtonContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {\n get isDisabled() {\n return (\n aria.isDisabled &&\n state.selectionManager.disabledBehavior === \"all\"\n );\n },\n },\n drag: mergeProps(\n merge(() => drag?.dragButtonProps ?? {}),\n {\n style: { \"pointer-events\": \"none\" as const },\n }\n ),\n },\n }}\n >\n <TextContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get description() {\n return aria.descriptionProps;\n },\n },\n }}\n >\n <SelectionIndicatorContext\n value={{\n get isSelected() {\n return aria.isSelected;\n },\n }}\n >\n <CollectionRendererContext\n value={DefaultCollectionRenderer}\n >\n <ListStateContext value={null}>\n {render.children}\n </ListStateContext>\n </CollectionRendererContext>\n </SelectionIndicatorContext>\n </TextContext>\n </ButtonContext>\n </CheckboxFieldContext>","value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}","<ButtonContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {\n get isDisabled() {\n return (\n aria.isDisabled &&\n state.selectionManager.disabledBehavior === \"all\"\n );\n },\n },\n drag: mergeProps(\n merge(() => drag?.dragButtonProps ?? {}),\n {\n style: { \"pointer-events\": \"none\" as const },\n }\n ),\n },\n }}\n >\n <TextContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get description() {\n return aria.descriptionProps;\n },\n },\n }}\n >\n <SelectionIndicatorContext\n value={{\n get isSelected() {\n return aria.isSelected;\n },\n }}\n >\n <CollectionRendererContext\n value={DefaultCollectionRenderer}\n >\n <ListStateContext value={null}>\n {render.children}\n </ListStateContext>\n </CollectionRendererContext>\n </SelectionIndicatorContext>\n </TextContext>\n </ButtonContext>","<TextContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get description() {\n return aria.descriptionProps;\n },\n },\n }}\n >\n <SelectionIndicatorContext\n value={{\n get isSelected() {\n return aria.isSelected;\n },\n }}\n >\n <CollectionRendererContext\n value={DefaultCollectionRenderer}\n >\n <ListStateContext value={null}>\n {render.children}\n </ListStateContext>\n </CollectionRendererContext>\n </SelectionIndicatorContext>\n </TextContext>","value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get description() {\n return aria.descriptionProps;\n },\n },\n }}","<SelectionIndicatorContext\n value={{\n get isSelected() {\n return aria.isSelected;\n },\n }}\n >\n <CollectionRendererContext\n value={DefaultCollectionRenderer}\n >\n <ListStateContext value={null}>\n {render.children}\n </ListStateContext>\n </CollectionRendererContext>\n </SelectionIndicatorContext>","value={{\n get isSelected() {\n return aria.isSelected;\n },\n }}","<CollectionRendererContext\n value={DefaultCollectionRenderer}\n >\n <ListStateContext value={null}>\n {render.children}\n </ListStateContext>\n </CollectionRendererContext>","value={DefaultCollectionRenderer}","<ListStateContext value={null}>\n {render.children}\n </ListStateContext>","value={null}","<div {...aria.gridCellProps} style={{ display: \"contents\" }}>\n <CheckboxContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}\n >\n <CheckboxFieldContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}\n >\n <ButtonContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {\n get isDisabled() {\n return (\n aria.isDisabled &&\n state.selectionManager.disabledBehavior === \"all\"\n );\n },\n },\n drag: mergeProps(\n merge(() => drag?.dragButtonProps ?? {}),\n {\n style: { \"pointer-events\": \"none\" as const },\n }\n ),\n },\n }}\n >\n <TextContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get description() {\n return aria.descriptionProps;\n },\n },\n }}\n >\n <SelectionIndicatorContext\n value={{\n get isSelected() {\n return aria.isSelected;\n },\n }}\n >\n <CollectionRendererContext\n value={DefaultCollectionRenderer}\n >\n <ListStateContext value={null}>\n {render.children}\n </ListStateContext>\n </CollectionRendererContext>\n </SelectionIndicatorContext>\n </TextContext>\n </ButtonContext>\n </CheckboxFieldContext>\n </CheckboxContext>\n </div>","ref={(element: HTMLDivElement) => {\n setSentinel(element);\n }}","{props.isLoading === true && (\n <dom.div\n {...filterDOMProps(props, { global: true })}\n render={props.render}\n class={props.class ?? \"solid2-aria-GridListLoadingIndicator\"}\n ref={ref}\n role=\"row\"\n >\n <div role=\"gridcell\">{item.rendered}</div>\n </dom.div>\n )}","<dom.div\n {...filterDOMProps(props, { global: true })}\n render={props.render}\n class={props.class ?? \"solid2-aria-GridListLoadingIndicator\"}\n ref={ref}\n role=\"row\"\n >\n <div role=\"gridcell\">{item.rendered}</div>\n </dom.div>","role=\"row\"","{item.rendered}","<div role=\"gridcell\">{item.rendered}</div>","<dom.div\n {...props}\n class={props.class ?? \"solid2-aria-GridListHeader\"}\n ref={(element: HTMLDivElement) => {\n setRef(element);\n }}\n >\n <div\n {...(inner\n ? // oxlint-disable solid/reactivity -- Keep prop filtering in the renderer's lazy evaluation.\n omit(inner, \"ref\")\n : // oxlint-enable solid/reactivity\n {})}\n style={{ display: \"contents\" }}\n >\n {props.children}\n </div>\n </dom.div>","ref={(element: HTMLDivElement) => {\n setRef(element);\n }}","{props.children}","<div\n {...(inner\n ? // oxlint-disable solid/reactivity -- Keep prop filtering in the renderer's lazy evaluation.\n omit(inner, \"ref\")\n : // oxlint-enable solid/reactivity\n {})}\n style={{ display: \"contents\" }}\n >\n {props.children}\n </div>","<dom.div\n {...mergeProps(\n omit(filterDOMProps(props, { global: true }), \"id\"),\n merge(() => aria.rowGroupProps ?? {})\n )}\n render={props.render}\n class={props.class ?? \"solid2-aria-GridListSection\"}\n ref={(element: HTMLDivElement) => {\n setRef(element);\n }}\n >\n <GridListHeaderContext value={{ role: \"row\" }}>\n <GridListHeaderInnerContext value={aria.rowHeaderProps}>\n <Branch collection={state.collection} parent={item} />\n </GridListHeaderInnerContext>\n </GridListHeaderContext>\n </dom.div>","<GridListHeaderContext value={{ role: \"row\" }}>\n <GridListHeaderInnerContext value={aria.rowHeaderProps}>\n <Branch collection={state.collection} parent={item} />\n </GridListHeaderInnerContext>\n </GridListHeaderContext>","value={{ role: \"row\" }}","<GridListHeaderInnerContext value={aria.rowHeaderProps}>\n <Branch collection={state.collection} parent={item} />\n </GridListHeaderInnerContext>","<Branch collection={state.collection} parent={item} />","parent={item}","ref={(element: HTMLDivElement) => {\n setRef(element);\n }}","<div\n {...mergeProps(\n merge(() => hidden.visuallyHiddenProps ?? {}),\n merge(() => aria.dropIndicatorProps ?? {})\n )}\n role=\"button\"\n ref={(element: HTMLDivElement) => {\n setRef(element);\n }}\n />","<Show when={!aria.isHidden}>\n {props.table === true ? (\n <tr role=\"row\" style={{ position: \"absolute\" }}>\n <td role=\"gridcell\" colspan={props.columnCount}>\n {button}\n </td>\n </tr>\n ) : (\n <div role=\"row\" style={{ position: \"absolute\" }}>\n <div role=\"gridcell\">{button}</div>\n </div>\n )}\n </Show>","{props.table === true ? (\n <tr role=\"row\" style={{ position: \"absolute\" }}>\n <td role=\"gridcell\" colspan={props.columnCount}>\n {button}\n </td>\n </tr>\n ) : (\n <div role=\"row\" style={{ position: \"absolute\" }}>\n <div role=\"gridcell\">{button}</div>\n </div>\n )}","_$createComponent","mergeProps","_$mergeProps","_$applyRef","_$memo","_$getNextElement","_$scope","ref"],"sources":["../../src/grid-list.tsx"],"sourcesContent":["/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n/*\n * Derived from Adobe React Spectrum: packages/react-aria-components/src/GridList.tsx.\n * Modified for Solid Aria: collections, selection, drag and drop, and DOM rendering use Solid 2 ownership and reactive getters; uses Solid class props.\n * Licensed under Apache-2.0. See LICENSES/Apache-2.0.txt and NOTICE.txt at the repository root.\n */\n\nimport {\n BaseCollection,\n ItemNode,\n LoaderNode,\n SectionNode,\n HeaderNode,\n} from \"@solid2-aria/core/collections/base-collection\";\nimport {\n Collection,\n CollectionBuilder,\n createLeafComponent,\n createBranchComponent,\n} from \"@solid2-aria/core/collections/collection-builder\";\nimport { createFocusRing } from \"@solid2-aria/core/focus/create-focus-ring\";\nimport { createGridList } from \"@solid2-aria/core/gridlist/create-grid-list\";\nimport type { AriaGridListProps } from \"@solid2-aria/core/gridlist/create-grid-list\";\nimport { createGridListItem } from \"@solid2-aria/core/gridlist/create-grid-list-item\";\nimport { createGridListSection } from \"@solid2-aria/core/gridlist/create-grid-list-section\";\nimport { createGridListSelectionCheckbox } from \"@solid2-aria/core/gridlist/create-grid-list-selection-checkbox\";\nimport { createCollator } from \"@solid2-aria/core/i18n/create-collator\";\nimport { createLocale } from \"@solid2-aria/core/i18n/i18n-provider\";\nimport { createFocus } from \"@solid2-aria/core/interactions/create-focus\";\nimport { createHover } from \"@solid2-aria/core/interactions/create-hover\";\nimport { ListKeyboardDelegate } from \"@solid2-aria/core/selection/list-keyboard-delegate\";\nimport { createLoadMoreSentinel } from \"@solid2-aria/core/utils/create-load-more-sentinel\";\nimport type { LoadMoreSentinelProps } from \"@solid2-aria/core/utils/create-load-more-sentinel\";\nimport { filterDOMProps } from \"@solid2-aria/core/utils/filter-dom-props\";\nimport { mergeProps } from \"@solid2-aria/core/utils/merge-props\";\nimport { requireValue } from \"@solid2-aria/core/utils/require-value\";\nimport { createVisuallyHidden } from \"@solid2-aria/core/visually-hidden/visually-hidden\";\nimport { createListState } from \"@solid2-aria/stately/list/create-list-state\";\nimport type { ListState } from \"@solid2-aria/stately/list/create-list-state\";\nimport type {\n Key,\n LinkDOMProps,\n HoverEvents,\n PressEvents,\n FocusEvents,\n Orientation,\n Node,\n SelectionBehavior,\n Collection as ICollection,\n} from \"@solid2-aria/types-shared\";\nimport type {\n GlobalDOMAttributes,\n HTMLAttributes,\n} from \"@solid2-aria/types-shared-web\";\nimport type { JSX } from \"@solidjs/web\";\nimport {\n merge,\n untrack,\n createSignal,\n createMemo,\n createContext,\n useContext,\n omit,\n Show,\n} from \"solid-js\";\nimport type { Accessor } from \"solid-js\";\n\nimport { ButtonContext } from \"./button\";\nimport { CheckboxContext, CheckboxFieldContext } from \"./checkbox\";\nimport {\n CollectionRendererContext,\n DefaultCollectionRenderer,\n} from \"./collection\";\nimport type {\n CollectionProps,\n ItemRenderProps,\n SectionProps,\n} from \"./collection\";\nimport {\n createCollectionItemDragAndDrop,\n createCollectionDragAndDrop,\n CollectionDropIndicator,\n} from \"./collection-dnd\";\nimport type { DragAndDropHooks } from \"./create-drag-and-drop\";\nimport {\n DragAndDropContext,\n DropIndicatorContext,\n createDndPersistedKeys,\n createRenderDropIndicator,\n} from \"./drag-and-drop\";\nimport { ListStateContext } from \"./list-box\";\nimport { SelectionIndicatorContext } from \"./selection-indicator\";\nimport { TextContext } from \"./text\";\nimport {\n dom,\n DEFAULT_SLOT,\n createContextProps,\n createRenderProps,\n} from \"./utils\";\nimport type {\n ClassOrFunction,\n ContextValue,\n RenderProps,\n StyleRenderProps,\n StyleProps,\n SlotProps,\n DOMProps,\n DOMRenderProps,\n Ref,\n} from \"./utils\";\n\nexport {\n createCollectionDragAndDrop,\n CollectionDropIndicator,\n} from \"./collection-dnd\";\n\nexport type { CollectionDragAndDrop } from \"./collection-dnd\";\n\nexport interface GridListRenderProps {\n isEmpty: boolean;\n\n isFocused: boolean;\n\n isFocusVisible: boolean;\n\n isDropTarget: boolean;\n\n layout: \"stack\" | \"grid\";\n\n orientation: Orientation;\n\n state: ListState<unknown>;\n}\n\nexport interface GridListProps<T>\n extends\n Omit<AriaGridListProps<T>, \"children\">,\n CollectionProps<T>,\n StyleRenderProps<GridListRenderProps>,\n SlotProps,\n GlobalDOMAttributes<HTMLDivElement> {\n class?: ClassOrFunction<GridListRenderProps>;\n\n disallowTypeAhead?: boolean;\n\n selectionBehavior?: SelectionBehavior;\n\n dragAndDropHooks?: DragAndDropHooks<NoInfer<T>>;\n\n renderEmptyState?: (props: GridListRenderProps) => JSX.Element;\n\n layout?: \"stack\" | \"grid\";\n\n orientation?: Orientation;\n\n UNSTABLE_focusOnEntry?: \"first\" | \"last\";\n}\n\nexport interface GridListItemRenderProps extends ItemRenderProps {\n id?: Key;\n\n isFocusVisibleWithin: boolean;\n\n state: ListState<unknown>;\n}\n\nexport interface GridListItemProps<T = object>\n extends\n RenderProps<GridListItemRenderProps>,\n LinkDOMProps,\n HoverEvents,\n PressEvents,\n FocusEvents<HTMLDivElement>,\n Omit<GlobalDOMAttributes<HTMLDivElement>, \"onClick\"> {\n class?: ClassOrFunction<GridListItemRenderProps>;\n\n id?: Key;\n\n value?: T;\n\n textValue?: string;\n\n isDisabled?: boolean;\n\n onAction?: () => void;\n\n focusMode?: \"child\" | \"row\";\n\n allowsArrowNavigation?: boolean;\n}\n\nexport interface GridListLoadMoreItemProps\n extends\n Omit<LoadMoreSentinelProps, \"collection\" | \"direction\">,\n StyleProps,\n DOMRenderProps<\"div\", undefined>,\n GlobalDOMAttributes<HTMLDivElement> {\n class?: JSX.ClassValue;\n\n children?: JSX.Element;\n\n isLoading?: boolean;\n}\n\nexport interface GridListSectionProps<T>\n extends SectionProps<T>, DOMRenderProps<\"div\", undefined> {\n class?: JSX.ClassValue;\n}\n\nexport interface GridListHeaderProps\n extends\n DOMRenderProps<\"div\", undefined>,\n Omit<DOMProps, \"ref\">,\n GlobalDOMAttributes<HTMLElement> {\n role?: \"row\";\n}\n\nexport const GridListContext =\n // oxlint-disable-next-line typescript/no-explicit-any -- The collection owner and its descendants share one item type through this context.\n createContext<ContextValue<GridListProps<any>, HTMLDivElement>>(null);\n\nexport function GridList<T>(\n input: GridListProps<T> & { ref?: Ref<HTMLDivElement> }\n): JSX.Element {\n const [props, ref, setRef] = createContextProps(\n input,\n untrack(() => input.ref),\n GridListContext\n );\n\n return (\n <CollectionBuilder\n createCollection={() => new BaseCollection<T>()}\n content={<Collection {...props} />}\n >\n {(collection) => (\n <GridListInner\n props={props}\n collection={collection}\n elementRef={ref}\n setElementRef={(element: HTMLDivElement) => {\n setRef(element);\n }}\n />\n )}\n </CollectionBuilder>\n );\n}\n\nfunction GridListInner<T>(outer: {\n props: GridListProps<T>;\n collection: ICollection<Node<T>>;\n elementRef: Accessor<HTMLDivElement | null>;\n setElementRef: (element: HTMLDivElement) => void;\n}) {\n const { props } = untrack(() => outer);\n const renderer = useContext(CollectionRendererContext);\n\n // oxlint-disable-next-line typescript/no-explicit-any -- The public collection accepts primitive items; this state adapter only reads their keyed nodes.\n const state = createListState<any>(\n mergeProps(props, {\n children: undefined,\n get collection() {\n return outer.collection;\n },\n })\n );\n\n const locale = createLocale();\n const collator = createCollator({ sensitivity: \"base\", usage: \"search\" });\n\n const keyboardDelegate = createMemo(\n () =>\n new ListKeyboardDelegate({\n collator,\n get collection() {\n return state.collection;\n },\n get direction() {\n return locale.direction;\n },\n get disabledBehavior() {\n return state.selectionManager.disabledBehavior;\n },\n get disabledKeys() {\n return state.disabledKeys;\n },\n get layout() {\n return props.layout ?? \"stack\";\n },\n layoutDelegate: renderer.layoutDelegate,\n get orientation() {\n return props.orientation ?? \"vertical\";\n },\n ref: outer.elementRef,\n })\n );\n\n const aria = createGridList(\n mergeProps(props, {\n get isVirtualized() {\n return renderer.isVirtualized;\n },\n get keyboardDelegate() {\n return keyboardDelegate();\n },\n get keyboardNavigationBehavior() {\n return props.layout === \"grid\"\n ? \"tab\"\n : props.keyboardNavigationBehavior;\n },\n }),\n state,\n untrack(() => outer.elementRef)\n );\n\n const dnd = createCollectionDragAndDrop({\n get collection() {\n return state.collection;\n },\n get direction() {\n return locale.direction;\n },\n get dropTargetDelegate() {\n return (\n props.dragAndDropHooks?.dropTargetDelegate ??\n renderer.dropTargetDelegate\n );\n },\n get hooks() {\n return props.dragAndDropHooks;\n },\n get keyboardDelegate() {\n return keyboardDelegate();\n },\n get layout() {\n return props.layout;\n },\n get orientation() {\n return props.orientation;\n },\n get ref() {\n return outer.elementRef;\n },\n get selectionManager() {\n return state.selectionManager;\n },\n });\n\n const focus = createFocusRing();\n\n const values: GridListRenderProps = {\n get isDropTarget() {\n return dnd.dropState?.isDropTarget({ type: \"root\" }) === true;\n },\n get isEmpty() {\n return state.collection.size === 0;\n },\n get isFocusVisible() {\n return focus.isFocusVisible;\n },\n get isFocused() {\n return focus.isFocused;\n },\n get layout() {\n return props.layout ?? \"stack\";\n },\n get orientation() {\n return props.orientation ?? \"vertical\";\n },\n state,\n };\n\n const render = createRenderProps(\n mergeProps(props, {\n children: undefined,\n defaultClass: \"solid2-aria-GridList\",\n values,\n })\n );\n\n const Root = renderer.CollectionRoot;\n\n return (\n <dom.div\n {...mergeProps(\n filterDOMProps(props, { global: true }),\n render,\n merge(() => aria.gridProps ?? {}),\n merge(() => focus.focusProps ?? {}),\n merge(() => dnd.collectionProps ?? {})\n )}\n ref={(element: HTMLDivElement) => {\n outer.setElementRef(element);\n }}\n slot={props.slot ?? undefined}\n data-empty={values.isEmpty || undefined}\n data-focused={focus.isFocused || undefined}\n data-focus-visible={focus.isFocusVisible || undefined}\n data-drop-target={values.isDropTarget || undefined}\n data-layout={values.layout}\n data-orientation={values.orientation}\n >\n <ListStateContext value={state}>\n <DragAndDropContext value={dnd}>\n <DropIndicatorContext\n value={{\n render: (indicatorProps, ref) => (\n <CollectionDropIndicator {...indicatorProps} ref={ref} />\n ),\n }}\n >\n {dnd.dropState && <RootDropIndicator />}\n <Root\n collection={state.collection}\n scrollRef={outer.elementRef}\n persistedKeys={createDndPersistedKeys(\n state.selectionManager,\n props.dragAndDropHooks,\n dnd.dropState\n )}\n renderDropIndicator={createRenderDropIndicator(\n props.dragAndDropHooks,\n dnd.dropState\n )}\n />\n </DropIndicatorContext>\n </DragAndDropContext>\n </ListStateContext>\n {values.isEmpty && props.renderEmptyState && (\n <div role=\"row\">\n <div role=\"gridcell\">{props.renderEmptyState(values)}</div>\n </div>\n )}\n {dnd.preview}\n </dom.div>\n );\n}\n\nexport const GridListItem = createLeafComponent(\n ItemNode,\n <T,>(\n props: GridListItemProps<T>,\n forwardedRef: Ref<HTMLDivElement>,\n item: Node<T>\n ) => {\n const state = requireValue(\n useContext(ListStateContext),\n \"Expected useContext(ListStateContext)\"\n );\n\n const renderer = useContext(CollectionRendererContext);\n const dnd = useContext(DragAndDropContext);\n\n const [ref, setRef] = createSignal<HTMLDivElement | null>(null, {\n ownedWrite: true,\n });\n\n const aria = createGridListItem(\n {\n get allowsArrowNavigation() {\n return props.allowsArrowNavigation;\n },\n get focusMode() {\n return props.focusMode;\n },\n isVirtualized: renderer.isVirtualized,\n node: item,\n shouldSelectOnPressUp: !!dnd.dragState,\n },\n state,\n ref\n );\n\n const hover = createHover(\n mergeProps(props, {\n get isDisabled() {\n return !aria.allowsSelection && !aria.hasAction && !dnd.dragState;\n },\n })\n );\n\n const focusEvents = createFocus(props);\n const focus = createFocusRing();\n const within = createFocusRing({ within: true });\n const checkbox = createGridListSelectionCheckbox({ key: item.key }, state);\n\n const [dropRef, setDropRef] = createSignal<HTMLDivElement | null>(null, {\n ownedWrite: true,\n });\n\n const { drag, drop } = createCollectionItemDragAndDrop(\n dnd,\n item.key,\n dropRef\n );\n\n const values: GridListItemRenderProps = {\n get allowsDragging() {\n return !!dnd.dragState;\n },\n id: item.key,\n get isDisabled() {\n return aria.isDisabled;\n },\n get isDragging() {\n return dnd.dragState?.isDragging(item.key) === true;\n },\n get isDropTarget() {\n return drop?.isDropTarget === true;\n },\n get isFocusVisible() {\n return focus.isFocusVisible;\n },\n get isFocusVisibleWithin() {\n return within.isFocusVisible;\n },\n get isFocused() {\n return aria.isFocused;\n },\n get isHovered() {\n return hover.isHovered;\n },\n get isPressed() {\n return aria.isPressed;\n },\n get isSelected() {\n return aria.isSelected;\n },\n get selectionBehavior() {\n return state.selectionManager.selectionBehavior;\n },\n get selectionMode() {\n return state.selectionManager.selectionMode;\n },\n state,\n };\n\n const render = createRenderProps(\n mergeProps(props, {\n get children() {\n return item.rendered;\n },\n defaultClass: \"solid2-aria-GridListItem\",\n id: undefined,\n values,\n })\n );\n\n const hidden = createVisuallyHidden();\n\n return (\n <>\n {drop && !drop.isHidden && (\n <div role=\"row\" style={{ position: \"absolute\" }}>\n <div role=\"gridcell\">\n <div\n {...mergeProps(\n merge(() => hidden.visuallyHiddenProps ?? {}),\n merge(() => drop.dropIndicatorProps ?? {})\n )}\n role=\"button\"\n ref={(element: HTMLDivElement) => {\n setDropRef(element);\n }}\n />\n </div>\n </div>\n )}\n <dom.div\n {...mergeProps(\n omit(filterDOMProps(props, { global: true }), \"id\", \"onClick\"),\n render,\n merge(() => aria.rowProps ?? {}),\n merge(() => focusEvents.focusProps ?? {}),\n merge(() => focus.focusProps ?? {}),\n merge(() => within.focusProps ?? {}),\n merge(() => hover.hoverProps ?? {}),\n merge(() => drag?.dragProps ?? {})\n )}\n ref={(element: HTMLDivElement) => {\n setRef(element);\n }}\n data-selected={aria.isSelected || undefined}\n data-disabled={aria.isDisabled || undefined}\n data-hovered={hover.isHovered || undefined}\n data-focused={aria.isFocused || undefined}\n data-focus-visible={focus.isFocusVisible || undefined}\n data-focus-visible-within={within.isFocusVisible || undefined}\n data-pressed={aria.isPressed || undefined}\n data-allows-dragging={!!dnd.dragState || undefined}\n data-dragging={values.isDragging ?? undefined}\n data-drop-target={drop?.isDropTarget ?? undefined}\n data-selection-mode={\n state.selectionManager.selectionMode === \"none\"\n ? undefined\n : state.selectionManager.selectionMode\n }\n >\n <div {...aria.gridCellProps} style={{ display: \"contents\" }}>\n <CheckboxContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}\n >\n <CheckboxFieldContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get selection() {\n return checkbox.checkboxProps;\n },\n },\n }}\n >\n <ButtonContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {\n get isDisabled() {\n return (\n aria.isDisabled &&\n state.selectionManager.disabledBehavior === \"all\"\n );\n },\n },\n drag: mergeProps(\n merge(() => drag?.dragButtonProps ?? {}),\n {\n style: { \"pointer-events\": \"none\" as const },\n }\n ),\n },\n }}\n >\n <TextContext\n value={{\n slots: {\n [DEFAULT_SLOT]: {},\n get description() {\n return aria.descriptionProps;\n },\n },\n }}\n >\n <SelectionIndicatorContext\n value={{\n get isSelected() {\n return aria.isSelected;\n },\n }}\n >\n <CollectionRendererContext\n value={DefaultCollectionRenderer}\n >\n <ListStateContext value={null}>\n {render.children}\n </ListStateContext>\n </CollectionRendererContext>\n </SelectionIndicatorContext>\n </TextContext>\n </ButtonContext>\n </CheckboxFieldContext>\n </CheckboxContext>\n </div>\n </dom.div>\n </>\n );\n }\n);\n\nexport const GridListLoadMoreItem = createLeafComponent(\n LoaderNode,\n (\n props: GridListLoadMoreItemProps,\n ref: Ref<HTMLDivElement>,\n item: Node<object>\n ) => {\n const state = requireValue(\n useContext(ListStateContext),\n \"Expected useContext(ListStateContext)\"\n );\n\n const [sentinel, setSentinel] = createSignal<HTMLDivElement | null>(null, {\n ownedWrite: true,\n });\n\n createLoadMoreSentinel(\n mergeProps(props, {\n get collection() {\n return state.collection;\n },\n }),\n sentinel\n );\n\n return (\n <>\n <div style={{ height: 0, position: \"relative\", width: 0 }} inert>\n <div\n ref={(element: HTMLDivElement) => {\n setSentinel(element);\n }}\n style={{ height: \"1px\", position: \"absolute\", width: \"1px\" }}\n />\n </div>\n {props.isLoading === true && (\n <dom.div\n {...filterDOMProps(props, { global: true })}\n render={props.render}\n class={props.class ?? \"solid2-aria-GridListLoadingIndicator\"}\n ref={ref}\n role=\"row\"\n >\n <div role=\"gridcell\">{item.rendered}</div>\n </dom.div>\n )}\n </>\n );\n }\n);\n\nexport const GridListHeaderContext = createContext<\n ContextValue<GridListHeaderProps, HTMLDivElement>\n>({});\n\nexport const GridListHeaderInnerContext =\n createContext<HTMLAttributes<HTMLElement> | null>(null);\n\nexport const GridListHeader = createLeafComponent(\n HeaderNode,\n (input: GridListHeaderProps, forwardedRef: Ref<HTMLDivElement>) => {\n const [props, , setRef] = createContextProps(\n input,\n forwardedRef,\n GridListHeaderContext\n );\n\n const inner = useContext(GridListHeaderInnerContext);\n\n return (\n <dom.div\n {...props}\n class={props.class ?? \"solid2-aria-GridListHeader\"}\n ref={(element: HTMLDivElement) => {\n setRef(element);\n }}\n >\n <div\n {...(inner\n ? // oxlint-disable solid/reactivity -- Keep prop filtering in the renderer's lazy evaluation.\n omit(inner, \"ref\")\n : // oxlint-enable solid/reactivity\n {})}\n style={{ display: \"contents\" }}\n >\n {props.children}\n </div>\n </dom.div>\n );\n }\n);\n\nexport const GridListSection = createBranchComponent(\n SectionNode,\n <T,>(\n props: GridListSectionProps<T>,\n forwardedRef: Ref<HTMLDivElement>,\n item: Node<T>\n ) => {\n const state = requireValue(\n useContext(ListStateContext),\n \"Expected useContext(ListStateContext)\"\n );\n\n const renderer = useContext(CollectionRendererContext);\n const Branch = renderer.CollectionBranch;\n\n const [ref, setRef] = createSignal<HTMLDivElement | null>(null, {\n ownedWrite: true,\n });\n\n const aria = createGridListSection(props, state, ref);\n\n return (\n <dom.div\n {...mergeProps(\n omit(filterDOMProps(props, { global: true }), \"id\"),\n merge(() => aria.rowGroupProps ?? {})\n )}\n render={props.render}\n class={props.class ?? \"solid2-aria-GridListSection\"}\n ref={(element: HTMLDivElement) => {\n setRef(element);\n }}\n >\n <GridListHeaderContext value={{ role: \"row\" }}>\n <GridListHeaderInnerContext value={aria.rowHeaderProps}>\n <Branch collection={state.collection} parent={item} />\n </GridListHeaderInnerContext>\n </GridListHeaderContext>\n </dom.div>\n );\n }\n);\n\nexport function RootDropIndicator(\n props: { table?: boolean; columnCount?: number } = {}\n) {\n const context = useContext(DragAndDropContext);\n\n const [ref, setRef] = createSignal<HTMLDivElement | null>(null, {\n ownedWrite: true,\n });\n\n const aria = untrack(() =>\n requireValue(\n requireValue(\n context.dragAndDropHooks,\n \"Expected context.dragAndDropHooks\"\n ).createDropIndicator,\n \"Expected context.dragAndDropHooks!.createDropIndicator\"\n )(\n { target: { type: \"root\" } },\n requireValue(context.dropState, \"Expected context.dropState\"),\n ref\n )\n );\n\n const hidden = createVisuallyHidden();\n\n const button = (\n <div\n {...mergeProps(\n merge(() => hidden.visuallyHiddenProps ?? {}),\n merge(() => aria.dropIndicatorProps ?? {})\n )}\n role=\"button\"\n ref={(element: HTMLDivElement) => {\n setRef(element);\n }}\n />\n );\n\n return (\n <Show when={!aria.isHidden}>\n {props.table === true ? (\n <tr role=\"row\" style={{ position: \"absolute\" }}>\n <td role=\"gridcell\" colspan={props.columnCount}>\n {button}\n </td>\n </tr>\n ) : (\n <div role=\"row\" style={{ position: \"absolute\" }}>\n <div role=\"gridcell\">{button}</div>\n </div>\n )}\n </Show>\n );\n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-24,7 +24,7 @@ import { createCollectionDragAndDrop } from "./collection-dnd.js";
|
|
|
24
24
|
import { HeaderContext } from "./header.js";
|
|
25
25
|
import { applyRef, createComponent, dynamic, getNextElement, insert, memo, mergeProps, ref, scope, template } from "@solidjs/web";
|
|
26
26
|
import { mergeProps as mergeProps$1 } from "@solid2-aria/core/utils/merge-props";
|
|
27
|
-
import {
|
|
27
|
+
import { createContext, createMemo, createSignal, merge, omit, untrack, useContext } from "solid-js";
|
|
28
28
|
import { BaseCollection, ItemNode, LoaderNode, SectionNode } from "@solid2-aria/core/collections/base-collection";
|
|
29
29
|
import { Collection, CollectionBuilder, createBranchComponent, createLeafComponent } from "@solid2-aria/core/collections/collection-builder";
|
|
30
30
|
import { filterDOMProps } from "@solid2-aria/core/utils/filter-dom-props";
|
|
@@ -472,24 +472,21 @@ const ListBoxLoadMoreItemCollection = createLeafComponent(LoaderNode, (props, fo
|
|
|
472
472
|
};
|
|
473
473
|
}, _el$3);
|
|
474
474
|
return _el$2;
|
|
475
|
-
})(),
|
|
476
|
-
|
|
477
|
-
return props.isLoading;
|
|
478
|
-
},
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}
|
|
491
|
-
}));
|
|
492
|
-
}
|
|
475
|
+
})(), memo(() => {
|
|
476
|
+
return memo(() => {
|
|
477
|
+
return !!props.isLoading;
|
|
478
|
+
})() ? createComponent(dom.div, mergeProps(() => {
|
|
479
|
+
return filterDOMProps(props, { global: true });
|
|
480
|
+
}, render, {
|
|
481
|
+
role: "option",
|
|
482
|
+
tabindex: -1,
|
|
483
|
+
ref: (element) => {
|
|
484
|
+
assignRef(forwardedRef, element);
|
|
485
|
+
},
|
|
486
|
+
get children() {
|
|
487
|
+
return render.children;
|
|
488
|
+
}
|
|
489
|
+
})) : void 0;
|
|
493
490
|
})];
|
|
494
491
|
});
|
|
495
492
|
function ListBoxSectionContent(input) {
|
|
@@ -521,25 +518,22 @@ function ListBoxDropIndicator(props) {
|
|
|
521
518
|
return aria.isDropTarget;
|
|
522
519
|
} }
|
|
523
520
|
}));
|
|
524
|
-
return
|
|
525
|
-
|
|
521
|
+
return memo(() => {
|
|
522
|
+
return memo(() => {
|
|
526
523
|
return !aria.isHidden;
|
|
527
|
-
},
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
}
|
|
541
|
-
}));
|
|
542
|
-
}
|
|
524
|
+
})() ? createComponent(dom.div, mergeProps(() => {
|
|
525
|
+
return aria.dropIndicatorProps;
|
|
526
|
+
}, render, {
|
|
527
|
+
role: "option",
|
|
528
|
+
ref: [(element) => {
|
|
529
|
+
setRef(element);
|
|
530
|
+
}, (element) => {
|
|
531
|
+
assignRef(untrack(() => props.ref), element);
|
|
532
|
+
}],
|
|
533
|
+
get "data-drop-target"() {
|
|
534
|
+
return aria.isDropTarget || void 0;
|
|
535
|
+
}
|
|
536
|
+
})) : void 0;
|
|
543
537
|
});
|
|
544
538
|
}
|
|
545
539
|
export { ListBox, ListBoxContext, ListBoxItem, ListBoxLoadMoreItem, ListBoxSection, ListStateContext };
|