@vokril/ui-solid 0.32.0 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/README.md +65 -0
- package/dist/{StatusBarNotificationBell-CgsYrrpj.js → StatusBarNotificationBell-DKDoWK71.js} +1557 -1545
- package/dist/StatusBarNotificationBell-wO16mjon.cjs +50 -0
- package/dist/_internal/contract/browser/workspace.d.cts +15 -0
- package/dist/_internal/contract/browser/workspace.d.ts +15 -0
- package/dist/_internal/contract/menuDensity.d.cts +8 -0
- package/dist/_internal/contract/menuDensity.d.ts +8 -0
- package/dist/_internal/platform/settings/settingsTypes.d.cts +2 -2
- package/dist/_internal/platform/settings/settingsTypes.d.ts +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/{server/useSettingsSubscription-DLEk4k4j.js → menuDensity-6x_EqCGb.js} +7 -5
- package/dist/{server/useSettingsSubscription-DKjCwmRd.cjs → menuDensity-Cf74__OQ.cjs} +1 -1
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +2 -2
- package/dist/notifications/notificationOverlaySnapshot.d.cts +35 -6
- package/dist/notifications/notificationOverlaySnapshot.d.ts +35 -6
- package/dist/overlay/Modal.d.cts +7 -6
- package/dist/overlay/Modal.d.ts +7 -6
- package/dist/overlay/modalViewport.d.cts +2 -1
- package/dist/overlay/modalViewport.d.ts +2 -1
- package/dist/rowSource-D8gyHbEE.cjs +1 -0
- package/dist/{rowSource-BRGZHclZ.js → rowSource-_4IuosKj.js} +5 -0
- package/dist/server/{StatusBarNotificationBell-Cxs_bVKX.cjs → StatusBarNotificationBell-DEp4eEUv.cjs} +19 -19
- package/dist/server/{StatusBarNotificationBell-CJJFE4rf.js → StatusBarNotificationBell-kOm2ZNkl.js} +1519 -1507
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +3 -3
- package/dist/{useSettingsSubscription-DLEk4k4j.js → server/menuDensity-6x_EqCGb.js} +7 -5
- package/dist/{useSettingsSubscription-DKjCwmRd.cjs → server/menuDensity-Cf74__OQ.cjs} +1 -1
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +2 -2
- package/dist/server/{rowSource-CoeHYNsV.js → rowSource-BSa7rgYJ.js} +188 -183
- package/dist/server/rowSource-Yw-xtlih.cjs +1 -0
- package/dist/server/settings/index.cjs +1 -1
- package/dist/server/settings/index.js +26 -25
- package/dist/server/tree/index.cjs +1 -1
- package/dist/server/tree/index.js +1 -1
- package/dist/settings/index.cjs +1 -1
- package/dist/settings/index.js +26 -25
- package/dist/solid/_internal/contract/menuDensity.js +1 -0
- package/dist/solid/_internal/platform/settings/settingsTypes.js +1 -0
- package/dist/solid/notifications/NotificationHost.jsx +3 -16
- package/dist/solid/notifications/notificationOverlaySnapshot.js +26 -0
- package/dist/solid/tree/TreeRow.jsx +3 -1
- package/dist/style.css +1 -1
- package/dist/tree/TreeRow.d.cts +5 -4
- package/dist/tree/TreeRow.d.ts +5 -4
- package/dist/tree/descriptor.d.cts +13 -3
- package/dist/tree/descriptor.d.ts +13 -3
- package/dist/tree/index.cjs +1 -1
- package/dist/tree/index.js +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/dist/StatusBarNotificationBell-CNs_obmZ.cjs +0 -50
- package/dist/rowSource-C3zlzAtR.cjs +0 -1
- package/dist/server/rowSource-C1F4l0xZ.cjs +0 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* dropped).
|
|
2
|
+
* Builders of the snapshot sent to the native overlay — pure, but for the appearance, which is read
|
|
3
|
+
* from the root it is given. The snapshot carries only DATA: the callbacks for actions, progress
|
|
4
|
+
* cancellation and navigation stay in the renderer, and the overlay asks for them back with a
|
|
5
|
+
* sequence number and the card revision (`itemRevision` — when the callbacks change the card's
|
|
6
|
+
* revision goes up, and an action coming from an old snapshot is dropped).
|
|
7
7
|
*/
|
|
8
8
|
import type { NotificationOverlayBounds, NotificationOverlayItem, NotificationOverlayState } from '../_internal/contract/browser/workspace.js';
|
|
9
|
+
import { type MenuDensity } from '../_internal/contract/menuDensity.js';
|
|
9
10
|
import type { NotificationSettings, ToastPosition } from '../_internal/platform/settings/settingsTypes.js';
|
|
10
11
|
import { type NotificationItem } from './nativeEngine.js';
|
|
11
12
|
/** A measured rectangle — a measurement with zero or negative area does not reach the overlay. */
|
|
@@ -25,13 +26,41 @@ export declare function overlayItemOf(item: NotificationItem, context: {
|
|
|
25
26
|
readonly settings: NotificationSettings;
|
|
26
27
|
readonly bounds: NotificationOverlayBounds | undefined;
|
|
27
28
|
}): NotificationOverlayItem;
|
|
28
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* The host root's attributes the appearance is read again on: its class (the theme), its inline style, its
|
|
31
|
+
* menu density, and the theme and palette attributes a stylesheet may set the root's font by.
|
|
32
|
+
*/
|
|
33
|
+
export declare const OVERLAY_APPEARANCE_ATTRIBUTES: readonly string[];
|
|
34
|
+
/**
|
|
35
|
+
* The host window's run-time appearance — the overlay draws the cards with it. It carries what the host
|
|
36
|
+
* writes on its root while it runs: the root's inline custom properties (a palette, the user's fonts, a
|
|
37
|
+
* scrollbar style) and its menu density, with the root's font and its light or dark theme. Its custom
|
|
38
|
+
* properties are not the root's computed ones: the overlay page loads the same token sheets as the host
|
|
39
|
+
* (the kit's `theme.css` and the host's own) and derives every other token from them, so the values that
|
|
40
|
+
* belong to a window — the title bar a `Modal` keeps clear (`--modal-maximize-inset`, `0px` in a page
|
|
41
|
+
* without one), a zoom factor — stay the overlay page's own. The computed ones carried the host window's
|
|
42
|
+
* values and overrode them. The theme's root markers (`data-app-theme`, `data-design`) are not carried
|
|
43
|
+
* either: the kit's sheets key the root's `color-scheme` on them, a value of the overlay's own window.
|
|
44
|
+
*/
|
|
29
45
|
export interface OverlayAppearance {
|
|
46
|
+
/** The custom properties written inline on the host's root (`root.style`), by name. */
|
|
30
47
|
readonly cssVariables: Record<string, string>;
|
|
31
48
|
readonly fontFamily: string;
|
|
49
|
+
/** The root's computed font size: the overlay's rem base. */
|
|
32
50
|
readonly fontSize: string;
|
|
33
51
|
readonly theme: 'light' | 'dark';
|
|
52
|
+
/** The root's `data-menu-density`; absent when the root names no density of `MenuDensity`. */
|
|
53
|
+
readonly menuDensity?: MenuDensity;
|
|
34
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* The appearance of the window whose root is `root` — `computed` is the root's computed style, read in its
|
|
57
|
+
* own window. As the reference's auxiliary window, the overlay takes values the host wrote on its root and
|
|
58
|
+
* loads the stylesheets itself, never computed values: the reference clones the main window's stylesheets
|
|
59
|
+
* and copies every attribute of its root
|
|
60
|
+
* (`workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.ts:452-547`, `:561`); the overlay
|
|
61
|
+
* takes a part of them — the inline custom properties and the menu density.
|
|
62
|
+
*/
|
|
63
|
+
export declare function overlayAppearanceOf(root: HTMLElement, computed: CSSStyleDeclaration): OverlayAppearance;
|
|
35
64
|
/** One snapshot of the overlay — stamped with its generation and sequence. */
|
|
36
65
|
export declare function overlayStateOf(input: {
|
|
37
66
|
readonly visible: boolean;
|
package/dist/overlay/Modal.d.cts
CHANGED
|
@@ -24,12 +24,13 @@ export interface ModalProps {
|
|
|
24
24
|
allowMaximize?: boolean;
|
|
25
25
|
/**
|
|
26
26
|
* This modal's own title bar height (any CSS length) — an override. The height has one home, set
|
|
27
|
-
* ONCE per window: the host
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
27
|
+
* ONCE per window: the host sets `--modal-maximize-inset` on each window's root in a stylesheet rule
|
|
28
|
+
* (`:root { … }`; `2.875rem` when it sets none, `'0px'` for a page without a title bar) — not inline:
|
|
29
|
+
* a root's inline custom properties are the appearance another window takes over (the native
|
|
30
|
+
* notification overlay's snapshot). Every modal reads it — the maximized layout (right under the
|
|
31
|
+
* title bar), the normal layout's top gap and height, and the drag bound (`modalTitlebarHeight`) —,
|
|
32
|
+
* as the reference reads one title bar offset (`workbench/browser/parts/editor/modalEditorPart.ts:493-509`,
|
|
33
|
+
* `:671`, `:702`, `:707`). This prop sets it on this modal's overlay only.
|
|
33
34
|
*/
|
|
34
35
|
maximizeInset?: string | undefined;
|
|
35
36
|
/**
|
package/dist/overlay/Modal.d.ts
CHANGED
|
@@ -24,12 +24,13 @@ export interface ModalProps {
|
|
|
24
24
|
allowMaximize?: boolean;
|
|
25
25
|
/**
|
|
26
26
|
* This modal's own title bar height (any CSS length) — an override. The height has one home, set
|
|
27
|
-
* ONCE per window: the host
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
27
|
+
* ONCE per window: the host sets `--modal-maximize-inset` on each window's root in a stylesheet rule
|
|
28
|
+
* (`:root { … }`; `2.875rem` when it sets none, `'0px'` for a page without a title bar) — not inline:
|
|
29
|
+
* a root's inline custom properties are the appearance another window takes over (the native
|
|
30
|
+
* notification overlay's snapshot). Every modal reads it — the maximized layout (right under the
|
|
31
|
+
* title bar), the normal layout's top gap and height, and the drag bound (`modalTitlebarHeight`) —,
|
|
32
|
+
* as the reference reads one title bar offset (`workbench/browser/parts/editor/modalEditorPart.ts:493-509`,
|
|
33
|
+
* `:671`, `:702`, `:707`). This prop sets it on this modal's overlay only.
|
|
33
34
|
*/
|
|
34
35
|
maximizeInset?: string | undefined;
|
|
35
36
|
/**
|
|
@@ -3,7 +3,8 @@ export declare const MODAL_TITLEBAR_PROBE_ATTRIBUTE = "data-modal-titlebar-probe
|
|
|
3
3
|
/**
|
|
4
4
|
* The height of the window's title bar, px — the one value a modal keeps clear above it: `--modal-maximize-inset` as
|
|
5
5
|
* it resolves in `doc`, `2.875rem` when the host sets none. A host that draws a title bar sets that property ONCE on
|
|
6
|
-
* each window's root (`:root`
|
|
6
|
+
* each window's root, in a stylesheet rule (`:root { … }`) — not inline: a root's inline custom properties are the
|
|
7
|
+
* appearance another window takes over (the native notification overlay's snapshot). It inherits into the portalled
|
|
7
8
|
* modal layer, so `Modal`'s maximized and normal layouts, its drag bound and every caller of this function follow the
|
|
8
9
|
* same value — as the reference's modal editor reads one title bar offset for its drag bound, size, maximized padding
|
|
9
10
|
* and position (`workbench/browser/parts/editor/modalEditorPart.ts:493-509`, `:579`, `:593-595`, `:644-645`,
|
|
@@ -3,7 +3,8 @@ export declare const MODAL_TITLEBAR_PROBE_ATTRIBUTE = "data-modal-titlebar-probe
|
|
|
3
3
|
/**
|
|
4
4
|
* The height of the window's title bar, px — the one value a modal keeps clear above it: `--modal-maximize-inset` as
|
|
5
5
|
* it resolves in `doc`, `2.875rem` when the host sets none. A host that draws a title bar sets that property ONCE on
|
|
6
|
-
* each window's root (`:root`
|
|
6
|
+
* each window's root, in a stylesheet rule (`:root { … }`) — not inline: a root's inline custom properties are the
|
|
7
|
+
* appearance another window takes over (the native notification overlay's snapshot). It inherits into the portalled
|
|
7
8
|
* modal layer, so `Modal`'s maximized and normal layouts, its drag bound and every caller of this function follow the
|
|
8
9
|
* same value — as the reference's modal editor reads one title bar offset for its drag bound, size, maximized padding
|
|
9
10
|
* and position (`workbench/browser/parts/editor/modalEditorPart.ts:493-509`, `:579`, `:593-595`, `:644-645`,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("solid-js/web"),y=require("solid-js"),Z=require("@vokril/icons"),Ce=require("./OverlayScrollArea-Cr0VAApT.cjs"),xe=require("./i18n-D3s-a2a0.cjs"),be=require("./errorHandler-DoDAPpv2.cjs"),J=require("./keys-GMxY2wcl.cjs"),Ie=require("./useListCommands-Dnm4ktP1.cjs"),Te=require("./builtins-DM7FDxEt.cjs"),j=require("./createVirtualWindow-C8_UuF7B.cjs"),Ae=require("./DesktopContextMenuContext-DMGNVjaR.cjs"),ee=require("./bugIndicatingError-D2X5Hfgg.cjs"),te={canExpand:!0,canMultiSelect:!0,canTypeAhead:!0,canRename:!1,canDestroy:!1,expandAll:!1};function ne(e,t){return`${e}-row-${t}`}function ye(e){const{treeId:t,label:r,multiSelectable:n,focusMode:o,cursorKey:c}=e;return{role:e.flat===!0?"listbox":"tree",tabIndex:o==="active-descendant"||c===null?0:-1,"aria-label":r,"aria-multiselectable":n?!0:void 0,"aria-activedescendant":o==="active-descendant"&&c!==null?ne(t,c):void 0}}function we(e){const{treeId:t,rows:r,index:n}=e,o=r.at(n),c=e.flat===!0,{posInSet:i,setSize:d}=r.siblingPosition(n);return{role:c?"option":"treeitem",id:ne(t,o.key),"aria-level":c?void 0:o.depth+1,"aria-setsize":d,"aria-posinset":i,"aria-expanded":!c&&o.expandable?o.expanded:void 0,"aria-busy":o.busy===!0?!0:void 0}}function me(e){return{...e.structure,tabIndex:e.focusMode==="roving-tabindex"&&e.isCursor?0:-1,"aria-selected":e.isSelected}}const Re=/[\^$.*+?(){}|[\]\\]/;function Me(e){const t=e.trim();if(t.length===0)return null;if(Re.test(t))try{const n=new RegExp(t,"gi");return o=>_e(o,n)}catch(n){be.bestEffortFailed("fall through to substring",n)}const r=t.toLowerCase();return n=>Ee(n,r,t.length)}function _e(e,t){t.lastIndex=0;const r=[];let n=0,o;for(;(o=t.exec(e))!==null;)o.index>n&&r.push({text:e.slice(n,o.index),match:!1}),r.push({text:o[0],match:!0}),n=o.index+o[0].length,o[0].length===0&&(t.lastIndex+=1);return n<e.length&&r.push({text:e.slice(n),match:!1}),r.length>0?r:[{text:e,match:!1}]}function Ee(e,t,r){if(r===0)return[{text:e,match:!1}];const n=e.toLowerCase(),o=[];let c=0;for(;c<=e.length;){const i=n.indexOf(t,c);if(i===-1){c<e.length&&o.push({text:e.slice(c),match:!1});break}i>c&&o.push({text:e.slice(c,i),match:!1}),o.push({text:e.slice(i,i+r),match:!0}),c=i+r}return o.length>0?o:[{text:e,match:!1}]}const De="vk_treeStickyHost_6aT7a",$e="vk_treeViewport_Ku3yB",Ke="vk_treeContainer_iMrOQ",pe="vk_treeSlice_homAf",Oe="vk_treeRow_Hh9r0",Ge="vk_treeRowCursor_QlUrp",He="vk_treeRowSelected_UdZj-",Pe="vk_treeIndentGuides_W4J04",Ne="vk_treeIndentGuideActive_9m4l3",Le="vk_treeRowChevron_6WMjE",Fe="vk_treeRowChevronSpacer_Jbp-q",qe="vk_treeRowChevronIcon_KP24Y",Be="vk_treeRowChevronIconOpen_fRKNn",Ue="vk_treeRowContent_RR7pP",We="vk_treeRowActions_LYQUv",Qe="vk_treeEmpty_s8RQ-",Ve="vk_treeRowChevronBusy_lZT8a",Ye="vk_treeSpeedSearchBadge_9GHNi",ze="vk_treeSpeedSearchIcon_48Ae2",Xe="vk_treeSpeedSearchText_F4SZ8",Ze="vk_treeMatchHighlight_NY75y",A={treeStickyHost:De,treeViewport:$e,treeContainer:Ke,treeSlice:pe,treeRow:Oe,treeRowCursor:Ge,treeRowSelected:He,treeIndentGuides:Pe,treeIndentGuideActive:Ne,treeRowChevron:Le,treeRowChevronSpacer:Fe,treeRowChevronIcon:qe,treeRowChevronIconOpen:Be,treeRowContent:Ue,treeRowActions:We,treeEmpty:Qe,treeRowChevronBusy:Ve,treeSpeedSearchBadge:Ye,treeSpeedSearchIcon:ze,treeSpeedSearchText:Xe,treeMatchHighlight:Ze};var je=a.template("<span aria-hidden=true tabindex=-1>"),z=a.template("<span aria-hidden=true>"),Je=a.template("<span tabindex=-1>"),et=a.template("<div><span>"),tt=a.template("<mark>");function nt(e){return e.ctrlKey||e.metaKey?"toggle":e.shiftKey?"range":"replace"}function re(e){const t=y.createMemo(()=>e.row),r=y.createMemo(()=>!!e.isSelected),n=y.createMemo(()=>e.index);let o;y.createEffect(()=>{if(e.sticky===!0||!e.isCursor||!e.treeHasFocus())return;const i=o;!i||i.contains(i.ownerDocument.activeElement)||queueMicrotask(()=>i.focus({preventScroll:!0}))});const c=()=>a.createComponent(y.Show,{get when(){return t().expandable},get fallback(){return(()=>{var i=z();return a.effect(()=>a.className(i,A.treeRowChevronSpacer)),i})()},get children(){var i=je();return i.$$dblclick=d=>d.stopPropagation(),i.$$keydown=d=>{(J.isKey(d,"Enter")||d.key===" ")&&(d.stopPropagation(),e.onToggle(t()))},i.$$click=d=>{d.stopPropagation(),e.onToggle(t())},a.insert(i,a.createComponent(y.Show,{get when(){return t().busy},get fallback(){return a.createComponent(Z.VpChevronRight,{get class(){return`${A.treeRowChevronIcon} ${t().expanded?A.treeRowChevronIconOpen:""}`}})},get children(){return a.createComponent(Z.VpLoader2,{"data-motion-exempt":"true",get class(){return`${A.treeRowChevronIcon} ${A.treeRowChevronBusy}`}})}})),a.effect(()=>a.className(i,A.treeRowChevron)),i}});return(()=>{var i=et(),d=i.firstChild,m=o;return typeof m=="function"?a.use(m,i):o=i,a.spread(i,a.mergeProps({get tabIndex(){return e.sticky===!0?-1:0}},()=>e.sticky===!0?{tabIndex:-1}:e.aria,{get onKeyDown(){var l;return(l=e.dom)==null?void 0:l.onKeyDown},get class(){var l;return[A.treeRow,e.isCursor?A.treeRowCursor:"",r()?A.treeRowSelected:"",((l=e.dom)==null?void 0:l.class)??""].filter(Boolean).join(" ")},get style(){return{height:`${e.rowHeight}px`,"--tree-depth":String(t().depth)}}},()=>e.sticky===!0?{"data-tree-sticky-key":t().key}:{"data-tree-row-key":t().key},()=>{var l;return((l=e.dom)==null?void 0:l.title)!==void 0?{title:e.dom.title}:{}},()=>{var l;return e.sticky!==!0&&((l=e.dom)!=null&&l.ariaLabel)?{"aria-label":e.dom.ariaLabel}:{}},()=>{var l;return((l=e.dom)==null?void 0:l.draggable)!==void 0?{draggable:e.dom.draggable}:{}},()=>{var l;return(l=e.dom)!=null&&l.onDragStart?{onDragStart:e.dom.onDragStart}:{}},()=>{var l;return(l=e.dom)!=null&&l.onDragOver?{onDragOver:e.dom.onDragOver}:{}},()=>{var l;return(l=e.dom)!=null&&l.onDragLeave?{onDragLeave:e.dom.onDragLeave}:{}},()=>{var l;return(l=e.dom)!=null&&l.onDrop?{onDrop:e.dom.onDrop}:{}},()=>{var l;return(l=e.dom)!=null&&l.onDragEnd?{onDragEnd:e.dom.onDragEnd}:{}},()=>{var l;return(l=e.dom)!=null&&l.onMouseEnter?{onMouseEnter:e.dom.onMouseEnter}:{}},()=>{var l;return(l=e.dom)!=null&&l.onMouseLeave?{onMouseLeave:e.dom.onMouseLeave}:{}},{onMouseDown:l=>{if(l.button===2){r()?e.onFocusRow(n()):e.onSelect(n(),"replace");return}l.button===0&&e.onSelect(n(),nt(l))},onClick:l=>e.onActivateClick(t(),"single-click",l),onDblClick:l=>e.onActivateClick(t(),"double-click",l),onContextMenu:l=>{l.preventDefault(),l.stopPropagation(),e.onOpenMenu(t(),l)}}),!1,!0),a.insert(i,a.createComponent(y.Show,{get when(){return a.memo(()=>e.indentGuide!=="none")()&&t().depth>0},get children(){var l=z();return a.effect(()=>a.className(l,A.treeIndentGuides)),l}}),d),a.insert(i,a.createComponent(y.Show,{get when(){return a.memo(()=>e.indentGuide==="active"&&e.activeGuideDepth>=0)()&&t().depth>e.activeGuideDepth},get children(){var l=z();return a.effect(s=>{var w=A.treeIndentGuideActive,k=`${e.activeGuideDepth}`;return w!==s.e&&a.className(l,s.e=w),k!==s.t&&a.setStyleProperty(l,"--tree-active-col",s.t=k),s},{e:void 0,t:void 0}),l}}),d),a.insert(i,a.createComponent(y.Show,{get when(){return e.showChevronGutter},get children(){return c()}}),d),a.insert(d,()=>e.content),a.insert(i,a.createComponent(y.Show,{get when(){return e.actions},get children(){var l=Je();return l.$$dblclick=s=>s.stopPropagation(),l.$$keydown=s=>s.stopPropagation(),l.$$click=s=>s.stopPropagation(),a.insert(l,()=>e.actions),a.effect(()=>a.className(l,A.treeRowActions)),l}}),null),a.effect(()=>a.className(d,A.treeRowContent)),i})()}function rt(e){const t=()=>e.query?typeof e.query=="function"?e.query():e.query:"",r=y.createMemo(()=>{const n=t().trim();if(n.length===0)return null;const o=Me(n);return o?o(e.text):null});return a.createComponent(y.Show,{get when(){return r()},get fallback(){return a.memo(()=>e.text)},get children(){return a.createComponent(y.For,{get each(){return r()},children:n=>a.createComponent(y.Show,{get when(){return n.match},get fallback(){return a.memo(()=>n.text)},get children(){var o=tt();return a.insert(o,()=>n.text),a.effect(()=>a.className(o,e.class??A.treeMatchHighlight)),o}})})}})}a.delegateEvents(["click","keydown","dblclick"]);const ot="vk_treeStickyWidget_Q-8QQ",ct="vk_treeStickyRow_7gWG2",ie={treeStickyWidget:ot,treeStickyRow:ct};var at=a.template("<div role=list>"),lt=a.template("<div role=listitem>");function it(e){return(()=>{var t=at();return a.insert(t,a.createComponent(y.Index,{get each(){return e.rows},children:(r,n)=>(()=>{var o=lt();return a.insert(o,a.createComponent(re,{sticky:!0,get row(){return r().row},get index(){return r().index},get rowHeight(){return e.descriptor.rowHeight},get isCursor(){return e.isCursor(r().index)},get isSelected(){return e.isSelected(r().row)},treeHasFocus:()=>!1,get showChevronGutter(){return e.showChevronGutter},get indentGuide(){return e.indentGuide},get activeGuideDepth(){return e.activeGuideDepth},get dom(){var c,i;return(i=(c=e.descriptor).rowProps)==null?void 0:i.call(c,r().row)},get content(){return e.descriptor.renderContent(r().row)},get actions(){var c,i;return(i=(c=e.descriptor).renderActions)==null?void 0:i.call(c,r().row)},get onSelect(){return e.onSelect},get onFocusRow(){return e.onFocusRow},get onToggle(){return e.onToggle},onActivateClick:()=>e.onReveal(r().index),get onOpenMenu(){return e.onOpenMenu}})),a.effect(c=>{var i=ie.treeStickyRow,d=`${r().top}px`,m=`${e.rows.length-n}`;return i!==c.e&&a.className(o,c.e=i),d!==c.t&&a.setStyleProperty(o,"top",c.t=d),m!==c.a&&a.setStyleProperty(o,"z-index",c.a=m),c},{e:void 0,t:void 0,a:void 0}),o})()})),a.effect(r=>{var n=ie.treeStickyWidget,o=e.label,c=`${e.height}px`;return n!==r.e&&a.className(t,r.e=n),o!==r.t&&a.setAttribute(t,"aria-label",r.t=o),c!==r.a&&a.setStyleProperty(t,"height",r.a=c),r},{e:void 0,t:void 0,a:void 0}),t})()}var ut=a.template("<div role=status aria-live=polite aria-atomic=true><span>"),st=a.template("<div><div>"),dt=a.template("<p>"),ht=a.template("<div>");const ue="roving-tabindex";function ft(e){const t=y.createMemo(()=>e.surface),r=()=>t().descriptor,n=()=>t().controller;let o;const c=y.createMemo(()=>({...te,...r().capabilities})),i=()=>c().canExpand&&(r().chevronGutter??!0),d=y.createMemo(()=>{if((r().indentGuide??"none")!=="active")return-1;const S=t().cursorRow();return S?S.depth-1:-1}),m=y.createMemo(()=>{const{start:S,end:h}=t().scroller.range();return Array.from({length:h-S},(I,T)=>S+T)}),l=y.createSelector(()=>n().cursorIndex());Ie.useListCommands({container:()=>o,supportsMultiselect:()=>c().canMultiSelect,verbs:{selectAll:()=>n().selectAll()}});const s=Te.useKeybindingsOptional()===null,w=S=>(S.key==="a"||S.key==="A")&&(S.ctrlKey||S.metaKey)&&!S.altKey&&!S.shiftKey,k=y.createMemo(()=>ye({treeId:r().id,label:r().ariaLabel,multiSelectable:c().canMultiSelect,focusMode:ue,cursorKey:n().cursorKey(),flat:!c().canExpand})),R=S=>{const h=S;return h!=null&&h.tagName?h.tagName==="INPUT"||h.tagName==="TEXTAREA"||h.isContentEditable===!0:!1},x=()=>o!==void 0&&o.contains(o.ownerDocument.activeElement),p=(S,h)=>{n().selectIndex(S,h)},D=(S,h,I)=>{var T,b;(b=(T=r()).onActivate)==null||b.call(T,S,h,I)},H=(S,h)=>{t().openMenu(S,{x:h.clientX,y:h.clientY},h)},P=S=>{o==null||o.focus({preventScroll:!0}),t().scroller.scrollToIndex(S,"auto",t().stickyInsetFor(S))};return(()=>{var S=ht();return a.insert(S,a.createComponent(y.Show,{get when(){return n().typeAheadQuery().length>0},get children(){var h=ut(),I=h.firstChild;return a.insert(h,a.createComponent(Z.VpSearch,{get class(){return A.treeSpeedSearchIcon}}),I),a.insert(I,()=>n().typeAheadQuery()),a.effect(T=>{var b=A.treeSpeedSearchBadge,_=A.treeSpeedSearchText;return b!==T.e&&a.className(h,T.e=b),_!==T.t&&a.className(I,T.t=_),T},{e:void 0,t:void 0}),h}}),null),a.insert(S,a.createComponent(Ce.OverlayScrollArea,{viewportRef:h=>{var I;t().scroller.containerRef(h),(I=e.viewportRef)==null||I.call(e,h)},get viewportClass(){return`${A.treeViewport} ${e.viewportClass??""}`.trim()},get children(){return[(()=>{var h=st(),I=h.firstChild,T=o;return typeof T=="function"?a.use(T,h):o=h,a.spread(h,a.mergeProps(k,{get class(){return A.treeContainer},get style(){return{height:`${t().scroller.totalHeight()}px`}},onKeyDown:b=>{if(!R(b.target)){if(s&&w(b)&&c().canMultiSelect){b.preventDefault(),n().selectAll();return}n().handleKeyDown(b)}},onFocus:b=>{b.target===b.currentTarget&&n().cursorIndex()<0&&n().focusIndex(0)}}),!1,!0),a.insert(I,a.createComponent(y.Index,{get each(){return m()},children:b=>{const _=y.createMemo(()=>t().source().at(b())),N=()=>l(b()),Q=()=>n().selectedKeys().has(_().key),oe=y.createMemo(()=>we({treeId:r().id,rows:t().source(),index:b(),flat:!c().canExpand}));return a.createComponent(re,{get row(){return _()},get index(){return b()},get aria(){return me({structure:oe(),focusMode:ue,isCursor:N(),isSelected:Q()})},get rowHeight(){return r().rowHeight},get isCursor(){return N()},get isSelected(){return Q()},treeHasFocus:x,get showChevronGutter(){return i()},get indentGuide(){return r().indentGuide??"none"},get activeGuideDepth(){return d()},get dom(){var K,O;return(O=(K=r()).rowProps)==null?void 0:O.call(K,_())},get content(){return r().renderContent(_())},get actions(){var K,O;return(O=(K=r()).renderActions)==null?void 0:O.call(K,_())},onSelect:p,onFocusRow:K=>n().focusIndex(K),onToggle:K=>{var O,V;return(V=(O=r()).onToggle)==null?void 0:V.call(O,K)},onActivateClick:D,onOpenMenu:H})}})),a.effect(b=>{var _=A.treeSlice,N=`translate3d(0, ${t().scroller.offsetY()}px, 0)`;return _!==b.e&&a.className(I,b.e=_),N!==b.t&&a.setStyleProperty(I,"transform",b.t=N),b},{e:void 0,t:void 0}),h})(),a.createComponent(y.Show,{get when(){return a.memo(()=>t().source().length===0)()&&r().emptyLabel},get children(){var h=dt();return a.insert(h,()=>r().emptyLabel),a.effect(()=>a.className(h,A.treeEmpty)),h}})]}}),null),a.insert(S,a.createComponent(y.Show,{get when(){return t().stickyState().rows.length>0},get children(){return a.createComponent(it,{get rows(){return t().stickyState().rows},get height(){return t().stickyState().height},get label(){return xe.t("Sticky parent rows")},get descriptor(){return r()},get showChevronGutter(){return i()},get indentGuide(){return r().indentGuide??"none"},get activeGuideDepth(){return d()},isCursor:h=>n().cursorIndex()===h,isSelected:h=>n().selectedKeys().has(h.key),onSelect:p,onFocusRow:h=>n().focusIndex(h),onToggle:h=>{var I,T;return(T=(I=r()).onToggle)==null?void 0:T.call(I,h)},onReveal:P,onOpenMenu:H})}}),null),a.effect(h=>{var I=A.treeStickyHost,T=`${r().indentBaseRem??0}rem`;return I!==h.e&&a.className(S,h.e=I),T!==h.t&&a.setStyleProperty(S,"--tree-indent-base",h.t=T),h},{e:void 0,t:void 0}),S})()}const se=10,U=(e,t)=>Math.max(0,Math.min(e,t-1));function gt(e){return e.key.length===1&&e.key!==" "&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function yt(e,t){const{index:r,rowCount:n,capabilities:o}=t;if(n===0)return null;const c=r<0?-1:r;switch(J.namedKeyOf(e)){case"ArrowDown":return e.shiftKey&&o.canMultiSelect?{type:"extend",to:U(c+1,n)}:{type:"move",to:U(c+1,n)};case"ArrowUp":return c<0?{type:"move",to:n-1}:e.shiftKey&&o.canMultiSelect?{type:"extend",to:U(c-1,n)}:{type:"move",to:U(c-1,n)};case"Home":return{type:"move",to:0};case"End":return{type:"move",to:n-1};case"PageDown":return{type:"move",to:U(Math.max(c,0)+se,n)};case"PageUp":return{type:"move",to:U(Math.max(c,0)-se,n)};case"ArrowRight":return o.canExpand?{type:"expandOrDescend"}:{type:"flatNavigate",direction:"in"};case"ArrowLeft":return e.ctrlKey||e.metaKey?null:o.canExpand?{type:"collapseOrAscend"}:{type:"flatNavigate",direction:"out"};case"Enter":return{type:"activate"};case"ContextMenu":return{type:"openMenu"};case"F10":return e.shiftKey?{type:"openMenu"}:null}return e.key===" "?o.canExpand?{type:"toggle"}:null:o.canTypeAhead&>(e)?{type:"typeAhead",char:e.key}:null}function wt(e,t,r,n=!1){const o=r.toLowerCase();if(o.length===0)return-1;const c=e.length;if(c===0)return-1;const i=n?0:1;for(let d=i;d<=c;d++){const m=(t+d+c)%c;if(e.at(m).label.toLowerCase().startsWith(o))return m}for(let d=i;d<=c;d++){const m=(t+d+c)%c;if(e.at(m).label.toLowerCase().includes(o))return m}return-1}function ve(e,t,r){const n=[...r].filter(l=>e.indexOfKey(l)>=0),o=mt(e,t,n),c=vt(e,o),i=l=>l.selectable!==!1&&(c===void 0||l.kind===c),d=new Set(n);let m=o<0?-1:e.parentIndex(o);for(;;){const l=St(e,m,i);if(m<0)return l;const s=l.length===d.size&&l.every(k=>d.has(k));if(l.length>0&&!s)return l;const w=e.at(m);if(l.length>0&&i(w))return[w.key,...l];m=e.parentIndex(m)}}function mt(e,t,r){const n=t>=0&&t<e.length?e.at(t).key:void 0;if(n!==void 0&&!r.includes(n))return t;const o=r[0];return o===void 0?-1:e.indexOfKey(o)}function vt(e,t){if(t>=0){const n=e.at(t);if(n.selectable!==!1)return n.kind}const r=Math.max(t,0);for(let n=0;n<e.length;n++){const o=e.at((r+n)%e.length);if(o.selectable!==!1)return o.kind}}function St(e,t,r){const n=t<0?0:t+1,o=t<0?e.length-1:e.subtreeEnd(t),c=[];for(let i=n;i<=o;i++){const d=e.at(i);r(d)&&c.push(d.key)}return c}const de=1e3;function X(e,t){const r=[];for(let n=e.parentIndex(t);n!==-1;n=e.parentIndex(n))r.push(e.at(n).key);return{key:e.at(t).key,ancestors:r,index:t}}function he(e,t){if(t===null||e.length===0)return-1;if(t.index<e.length&&e.at(t.index).key===t.key)return t.index;const r=e.indexOfKey(t.key);if(r>=0)return r;for(const n of t.ancestors){const o=e.indexOfKey(n);if(o>=0)return o}return Math.min(t.index,e.length-1)}function Se(e){const t=()=>({...te,...e.capabilities,expandAll:!1}),[r,n]=y.createSignal(null),[o,c]=y.createSignal(new Set),[i,d]=y.createSignal(null),m=y.createMemo(()=>he(e.rows(),r())),l=()=>he(e.rows(),i()),s=y.createMemo(()=>{const u=m();return u<0?null:e.rows().at(u).key});y.createEffect(()=>{const u=r(),f=m();if(u===null||f<0)return;const g=e.rows(),v=g.at(f).key;if(v===u.key){f!==u.index&&n(X(g,f));return}u.ancestors.includes(v)&&n(X(g,f))});const[w,k]=y.createSignal("");let R=0,x;const p=()=>{x!==void 0&&(clearTimeout(x),x=void 0),w().length>0&&k("")},D=()=>{x!==void 0&&(clearTimeout(x),x=void 0),x=setTimeout(()=>{k(""),x=void 0},de)};y.onCleanup(()=>{x!==void 0&&(clearTimeout(x),x=void 0)});const H=u=>{const f=e.rows();return u>=0&&u<f.length?f.at(u):void 0},P=(u,f)=>{var v;const g=X(e.rows(),u);n(g),f&&d(g),(v=e.onScrollToIndex)==null||v.call(e,u)},S=u=>{const f=e.rows();u<0||u>=f.length||u===m()||P(u,!0)},h=u=>{var g;const f=e.rows().indexOfKey(u);f<0||(f===m()?(g=e.onScrollToIndex)==null||g.call(e,f):S(f))},I=(u,f)=>{var L;const g=e.rows(),v=(L=H(u))==null?void 0:L.kind,[C,M]=u<=f?[u,f]:[f,u],E=new Set;for(let F=Math.max(C,0);F<=Math.min(M,g.length-1);F++){const q=g.at(F);q.selectable!==!1&&(v!==void 0&&q.kind!==v||E.add(q.key))}return E},T=(u,f)=>{p();const g=H(u);if(g){if(g.selectable===!1&&f!=="range"){S(u);return}if(f==="toggle"&&t().canMultiSelect){const v=new Set(o());v.has(g.key)?v.delete(g.key):v.add(g.key),c(v),P(u,!0);return}if(f==="range"&&t().canMultiSelect){const v=l();c(I(v>=0?v:u,u)),P(u,!1);return}c(new Set([g.key])),P(u,!0)}},b=(u,f)=>{const g=e.rows().indexOfKey(u);g>=0&&T(g,f)},_=()=>{p(),o().size>0&&c(new Set)},N=(u,f)=>{const g=e.rows(),v=H(u);if(!v)return;const C=v.depth+1,M=g.subtreeEnd(u);for(let E=u+1;E<=M;E=g.subtreeEnd(E)+1){const L=g.at(E);L.depth===C&&f(L,E)}};return{cursorIndex:m,cursorKey:s,selectedKeys:o,typeAheadQuery:w,get capabilities(){return t()},focusIndex:S,focusKey:h,selectIndex:T,selectKey:b,clearSelection:_,selectChildren:u=>{const f=new Set;let g,v=!1,C=-1;N(u,(M,E)=>{if(M.selectable!==!1){if(!v)g=M.kind,C=E,v=!0;else if(g!==void 0&&M.kind!==g)return;f.add(M.key)}}),f.size!==0&&(c(f),C>=0&&P(C,!0))},selectAll:()=>{t().canMultiSelect&&c(new Set(ve(e.rows(),m(),o())))},childKindsHomogeneous:u=>{let f,g=!1,v=0,C=0;return N(u,M=>{M.selectable!==!1&&(v++,g?(f===void 0||M.kind===f)&&C++:(f=M.kind,g=!0,C++))}),{homogeneous:v>0&&v===C,total:v,selectable:C}},handleKeyDown:u=>{var M,E,L,F,q,ce,ae;if(J.isKey(u,"Escape")&&w().length>0){u.preventDefault(),u.stopPropagation(),p();return}const f=e.rows(),g=m(),v=yt(u,{index:g,rowCount:f.length,capabilities:t()});if(!v)return;const C=H(g);switch(v.type){case"move":u.preventDefault(),S(v.to);return;case"extend":{u.preventDefault();const $=l();c(I($>=0?$:g,v.to)),P(v.to,!1);return}case"expandOrDescend":if(!C)return;if(u.preventDefault(),C.expandable&&!C.expanded){(M=e.onToggle)==null||M.call(e,C);return}S(g+1);return;case"collapseOrAscend":{if(!C)return;if(u.preventDefault(),C.expandable&&C.expanded){(E=e.onToggle)==null||E.call(e,C);return}const $=f.parentIndex(g);$>=0&&S($);return}case"toggle":if(!(C!=null&&C.expandable))return;u.preventDefault(),(L=e.onToggle)==null||L.call(e,C);return;case"flatNavigate":u.preventDefault(),(F=e.onFlatNavigate)==null||F.call(e,v.direction,C);return;case"activate":if(!C)return;u.preventDefault(),(q=e.onActivate)==null||q.call(e,C);return;case"openMenu":{if(!C)return;u.preventDefault();const $=u.target,G=$==null?void 0:$.getBoundingClientRect();(ce=e.onOpenMenu)==null||ce.call(e,C,{x:Math.round((G==null?void 0:G.left)??0),y:Math.round((G==null?void 0:G.bottom)??0)});return}case"typeAhead":{const $=((ae=e.now)==null?void 0:ae.call(e))??Date.now(),G=$-R>de,B=G?"":w(),Y=B.length===1&&B.toLowerCase()===v.char.toLowerCase()?B:`${B}${v.char}`,le=wt(f,g,Y,Y.length>1&&!G);if(R=$,le<0){k(B),B.length>0?D():p();return}k(Y),D(),u.preventDefault(),S(le);return}}},openMenuAt:(u,f)=>{var v;const g=H(u);g&&((v=e.onOpenMenu)==null||v.call(e,g,f))}}}const kt=.4,Ct={rows:[],height:0};function ke(e){return Math.max(Math.floor(e),1)}function xt(e,t,r){let n=t,o=e.parentIndex(n);for(;o!==-1;){if(o===r)return n;n=o,o=e.parentIndex(n)}return r===-1?n:-1}function bt(e,t,r,n){let o=e;for(let i=0;i<e.length;i++)if(e[i].top+n>r||i>=t){o=e.slice(0,i);break}const c=o[o.length-1];return c?{rows:o,height:c.top+n}:{rows:[],height:0}}function It(e){const{rows:t,scrollTop:r,rowHeight:n,viewportHeight:o}=e;if(t.length===0||n<=0)return Ct;const c=ke(e.maxCount),i=[];let d=0,m=-1;for(;;){const l=Math.floor((r+d)/n);if(l<0||l>=t.length)break;const s=xt(t,l,m);if(s===-1)break;const w=t.subtreeEnd(s);if(w===s||s===l&&r===s*n-d)break;const k=(w+1)*n-r,R=d,x=R+n>k&&R<=k?k-n:R;if(i.push({index:s,row:t.at(s),top:x}),d=x+n,m=s,i.length>=c)break}return bt(i,c,o*kt,n)}function Tt(e,t,r,n){if(t<0||t>=e.length)return 0;const o=ke(n);let c=0,i=e.parentIndex(t);for(;i!==-1&&(c++,c!==o);)i=e.parentIndex(i);return c*r}function fe(e,t,r){if(t<=0||e.length===0||r<=0)return null;const n=Math.min(e.length-1,Math.floor(t/r));return{key:e.at(n).key,offset:t-n*r,contentTop:t}}function At(e,t,r,n){if(t===null||Math.abs(r-t.contentTop)>=j.SCROLL_TOLERANCE_PX)return null;const o=e.indexOfKey(t.key);if(o<0)return null;const c=o*n+t.offset;return Math.abs(c-t.contentTop)>=j.SCROLL_TOLERANCE_PX?c:null}const Rt=8,ge=7,Mt={rows:[],height:0};function _t(e){const t=y.useContext(Ae.DesktopContextMenuContext),r=y.createMemo(()=>e.rows()),n=j.createVirtualWindow({count:()=>r().length,itemHeight:e.rowHeight,overscan:e.overscan??Rt}),o=y.createMemo(()=>e.stickyScroll!==!0?Mt:It({rows:r(),scrollTop:n.scrollTop(),rowHeight:e.rowHeight,viewportHeight:n.viewportHeight(),maxCount:e.stickyScrollMaxCount??ge})),c=s=>e.stickyScroll===!0?Tt(r(),s,e.rowHeight,e.stickyScrollMaxCount??ge):0,i=Se({rows:r,...e.capabilities?{capabilities:e.capabilities}:{},onToggle:s=>{var w;return(w=e.onToggle)==null?void 0:w.call(e,s)},onActivate:s=>{var w;return(w=e.onActivate)==null?void 0:w.call(e,s,"keyboard")},onOpenMenu:(s,w)=>l(s,w),onCollapseAll:()=>{var s;return(s=e.onCollapseAll)==null?void 0:s.call(e)},onFlatNavigate:(s,w)=>{var k;return(k=e.onFlatNavigate)==null?void 0:k.call(e,s,w)},onRename:s=>{var w;return(w=e.onRename)==null?void 0:w.call(e,s)},onDestroy:s=>{var w;return(w=e.onDestroy)==null?void 0:w.call(e,s)},onScrollToIndex:s=>n.scrollToIndex(s,"auto",c(s))}),d=()=>{const s=i.cursorIndex();return s<0?void 0:r().at(s)};let m=null;y.createEffect(()=>{const s=n.scrollTop();m=fe(y.untrack(r),s,e.rowHeight)}),y.createEffect(y.on(r,s=>{const w=At(s,m,n.readScrollTop(),e.rowHeight);w!==null&&n.scrollToContentTop(w),m=fe(s,n.readScrollTop(),e.rowHeight)},{defer:!0}));function l(s,w,k){if(e.openMenu){e.openMenu(s,w,k);return}if(!e.buildMenu)return;const R=e.buildMenu(s,i.selectedKeys());if(R.length!==0){if(!t)throw new ee.BugIndicatingError("createTreeSurface: descriptor builds a context menu but no DesktopContextMenuProvider is mounted");t.open(w.x,w.y,R,k)}}return{descriptor:e,controller:i,scroller:n,source:r,cursorRow:d,stickyState:o,stickyInsetFor:c,openMenu:l}}const Et=.85;function W(e,t){if(!Number.isInteger(t)||t<0||t>=e.length)throw new ee.BugIndicatingError(`tree row source: index ${t} is outside 0..${e.length-1}`)}function Dt(e){const t=e.length,r=new Int32Array(t),n=new Int32Array(t),o=new Int32Array(t),c=new Int32Array(t),i=[],d=[],m=[],l=[];let s=-1,w=-1;for(let k=0;k<t;k++){const R=e[k].depth;for(;d.length>0&&e[d[d.length-1]].depth>=R;)n[d.pop()]=k-1,m.pop(),l.pop();const x=d.length-1;r[k]=x<0?-1:d[x];const p=x<0?s:m[x];let D=x<0?w:l[x];p!==R&&(D=i.length,i.push(0),x<0?(s=R,w=D):(m[x]=R,l[x]=D)),i[D]=i[D]+1,c[k]=D,o[k]=i[D],d.push(k),m.push(-1),l.push(-1)}for(const k of d)n[k]=t-1;return{parent:r,subtreeEnd:n,posInSet:o,group:c,groupSizes:i}}function $t(e){const t=new Map;for(let r=0;r<e.length;r++){const n=e[r].key,o=t.get(n);if(o!==void 0)throw new ee.BugIndicatingError(`tree row source: key "${n}" occurs at rows ${o} and ${r}`);t.set(n,r)}return t}function Kt(e){const t=e.slice(),r=Dt(t),n=$t(t),o={length:t.length,at:c=>(W(o,c),t[c]),parentIndex:c=>(W(o,c),r.parent[c]),subtreeEnd:c=>(W(o,c),r.subtreeEnd[c]),siblingPosition:c=>(W(o,c),{posInSet:r.posInSet[c],setSize:r.groupSizes[r.group[c]]}),indexOfKey:c=>n.get(c)??-1};return o}exports.DEFAULT_TREE_CAPABILITIES=te;exports.TREE_INDENT_STEP_REM=Et;exports.TreeHighlight=rt;exports.TreeRow=re;exports.TreeSurface=ft;exports.assertRowIndex=W;exports.buildTreeContainerAria=ye;exports.buildTreeRowAria=me;exports.buildTreeRowStructureAria=we;exports.createTreeController=Se;exports.createTreeSurface=_t;exports.selectAllInScope=ve;exports.treeRowDomId=ne;exports.treeRowsFrom=Kt;
|
|
@@ -200,6 +200,11 @@ function Re(e) {
|
|
|
200
200
|
return ((a = e.dom) == null ? void 0 : a.title) !== void 0 ? {
|
|
201
201
|
title: e.dom.title
|
|
202
202
|
} : {};
|
|
203
|
+
}, () => {
|
|
204
|
+
var a;
|
|
205
|
+
return e.sticky !== !0 && ((a = e.dom) != null && a.ariaLabel) ? {
|
|
206
|
+
"aria-label": e.dom.ariaLabel
|
|
207
|
+
} : {};
|
|
203
208
|
}, () => {
|
|
204
209
|
var a;
|
|
205
210
|
return ((a = e.dom) == null ? void 0 : a.draggable) !== void 0 ? {
|