@1771technologies/lytenyte-pro 0.0.41 → 0.0.43
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/dist/CompositeList-CGRaS6LQ.js +149 -0
- package/dist/DirectionContext-DIPP5cAe.js +15 -0
- package/dist/InternalBackdrop-C4RACVzs.js +324 -0
- package/dist/{anchor-context-B9sGQdR5.js → PopoverPortalContext-BdsDjihw.js} +4 -13
- package/dist/anchor-context-Cqr_oiJt.js +11 -0
- package/dist/column-manager.js +5 -3
- package/dist/{MenuRoot-9n64jNWP.js → column-menu-driver-cG-EZgLa.js} +49 -282
- package/dist/dialog.js +3 -3
- package/dist/{use-grid-DKvzGZWc.js → drag-store-CO3z13Ju.js} +34 -44
- package/dist/filter-manager.js +3 -2
- package/dist/index.js +125 -122
- package/dist/lytenyte-pro.css +62 -4
- package/dist/menu-CkfZmNR3.js +1879 -0
- package/dist/menu.js +2 -1637
- package/dist/{pill-C4Jhdf8E.js → pill-gga9iHqS.js} +44 -49
- package/dist/pill-manager.js +73 -10
- package/dist/popover.js +30 -5
- package/dist/{InternalBackdrop-Dm9czgoC.js → proptypes-BjYr2nFr.js} +25 -299
- package/dist/{select-C6xOZZLq.js → select-qluHi8ET.js} +7 -7
- package/dist/sort-manager.js +2 -2
- package/dist/types/menu/menu-impl.d.ts +1 -1
- package/dist/types/menu/menu.d.ts +1 -1
- package/dist/types/menu-frame/menu-frame-driver.d.ts +1 -0
- package/dist/types/pill-manager/pill-manager-impl.d.ts +1 -0
- package/dist/types/pill-manager/pill-manager-pill.d.ts +1 -0
- package/dist/{useAnchorPositioning-Cm44rb7y.js → useAnchorPositioning-52zK7jlD.js} +2 -13
- package/dist/{useButton-Cy7tjZ__.js → useButton-DWXzFgcr.js} +2 -1
- package/dist/{useScrollLock-D6h5lZYs.js → useScrollLock-D4UY33Sb.js} +15 -105
- package/package.json +15 -15
- package/dist/arrow-svg-evmXDI_J.js +0 -29
- package/dist/useBaseUiId-J66PFGv_.js +0 -48
- package/dist/useCompositeListItem-I14CpQPi.js +0 -51
- /package/dist/types/{popover → anchor-context}/anchor-context.d.ts +0 -0
|
@@ -1,20 +1,11 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { u as useControlled, a as useTransitionStatus, b as useScrollLock, c as useGrid } from "./useScrollLock-D4UY33Sb.js";
|
|
1
3
|
import * as React from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { useState, useEffect } from "react";
|
|
5
|
+
import { A as AnchorProvider } from "./anchor-context-Cqr_oiJt.js";
|
|
6
|
+
import { F as FloatingPortal, P as PropTypes, H as HTMLElementType, r as refType, j as useEventCallback, n as useOpenChangeComplete, p as useFloatingRootContext, q as useHover, t as safePolygon, v as useClick, w as useDismiss, x as useRole, y as useListNavigation, z as useTypeahead, A as useInteractions, B as FloatingTree } from "./proptypes-BjYr2nFr.js";
|
|
7
|
+
import { u as useDirection } from "./DirectionContext-DIPP5cAe.js";
|
|
6
8
|
import * as ReactDOM from "react-dom";
|
|
7
|
-
const MenuPositionerContext = /* @__PURE__ */ React.createContext(void 0);
|
|
8
|
-
if (process.env.NODE_ENV !== "production") {
|
|
9
|
-
MenuPositionerContext.displayName = "MenuPositionerContext";
|
|
10
|
-
}
|
|
11
|
-
function useMenuPositionerContext() {
|
|
12
|
-
const context = React.useContext(MenuPositionerContext);
|
|
13
|
-
if (context === void 0) {
|
|
14
|
-
throw new Error("Base UI: MenuPositionerContext is missing. MenuPositioner parts must be placed within <Menu.Positioner>.");
|
|
15
|
-
}
|
|
16
|
-
return context;
|
|
17
|
-
}
|
|
18
9
|
const MenuRootContext = /* @__PURE__ */ React.createContext(void 0);
|
|
19
10
|
if (process.env.NODE_ENV !== "production") {
|
|
20
11
|
MenuRootContext.displayName = "MenuRootContext";
|
|
@@ -74,271 +65,6 @@ process.env.NODE_ENV !== "production" ? MenuPortal.propTypes = {
|
|
|
74
65
|
*/
|
|
75
66
|
keepMounted: PropTypes.bool
|
|
76
67
|
} : void 0;
|
|
77
|
-
function useMenuPositioner(params) {
|
|
78
|
-
const {
|
|
79
|
-
nodeId,
|
|
80
|
-
parentNodeId
|
|
81
|
-
} = params;
|
|
82
|
-
const {
|
|
83
|
-
open,
|
|
84
|
-
setOpen,
|
|
85
|
-
mounted,
|
|
86
|
-
setHoverEnabled
|
|
87
|
-
} = useMenuRootContext();
|
|
88
|
-
const positioning = useAnchorPositioning(params);
|
|
89
|
-
const {
|
|
90
|
-
events: menuEvents
|
|
91
|
-
} = useFloatingTree();
|
|
92
|
-
const positionerProps = React.useMemo(() => {
|
|
93
|
-
const hiddenStyles = {};
|
|
94
|
-
if (!open) {
|
|
95
|
-
hiddenStyles.pointerEvents = "none";
|
|
96
|
-
}
|
|
97
|
-
return {
|
|
98
|
-
role: "presentation",
|
|
99
|
-
hidden: !mounted,
|
|
100
|
-
style: {
|
|
101
|
-
...positioning.positionerStyles,
|
|
102
|
-
...hiddenStyles
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
}, [open, mounted, positioning.positionerStyles]);
|
|
106
|
-
React.useEffect(() => {
|
|
107
|
-
function onMenuOpenChange(event) {
|
|
108
|
-
if (event.open) {
|
|
109
|
-
if (event.parentNodeId === nodeId) {
|
|
110
|
-
setHoverEnabled(false);
|
|
111
|
-
}
|
|
112
|
-
if (event.nodeId !== nodeId && event.parentNodeId === parentNodeId) {
|
|
113
|
-
setOpen(false, void 0);
|
|
114
|
-
}
|
|
115
|
-
} else if (event.parentNodeId === nodeId) {
|
|
116
|
-
setHoverEnabled(true);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
menuEvents.on("openchange", onMenuOpenChange);
|
|
120
|
-
return () => {
|
|
121
|
-
menuEvents.off("openchange", onMenuOpenChange);
|
|
122
|
-
};
|
|
123
|
-
}, [menuEvents, nodeId, parentNodeId, setOpen, setHoverEnabled]);
|
|
124
|
-
React.useEffect(() => {
|
|
125
|
-
menuEvents.emit("openchange", {
|
|
126
|
-
open,
|
|
127
|
-
nodeId,
|
|
128
|
-
parentNodeId
|
|
129
|
-
});
|
|
130
|
-
}, [menuEvents, open, nodeId, parentNodeId]);
|
|
131
|
-
return React.useMemo(() => ({
|
|
132
|
-
...positioning,
|
|
133
|
-
positionerProps
|
|
134
|
-
}), [positioning, positionerProps]);
|
|
135
|
-
}
|
|
136
|
-
const MenuPositioner = /* @__PURE__ */ React.forwardRef(function MenuPositioner2(props, forwardedRef) {
|
|
137
|
-
const {
|
|
138
|
-
anchor,
|
|
139
|
-
positionMethod = "absolute",
|
|
140
|
-
className,
|
|
141
|
-
render,
|
|
142
|
-
side,
|
|
143
|
-
align,
|
|
144
|
-
sideOffset = 0,
|
|
145
|
-
alignOffset = 0,
|
|
146
|
-
collisionBoundary = "clipping-ancestors",
|
|
147
|
-
collisionPadding = 5,
|
|
148
|
-
arrowPadding = 5,
|
|
149
|
-
sticky = false,
|
|
150
|
-
trackAnchor = true,
|
|
151
|
-
...otherProps
|
|
152
|
-
} = props;
|
|
153
|
-
const {
|
|
154
|
-
open,
|
|
155
|
-
floatingRootContext,
|
|
156
|
-
setPositionerElement,
|
|
157
|
-
itemDomElements,
|
|
158
|
-
itemLabels,
|
|
159
|
-
mounted,
|
|
160
|
-
nested,
|
|
161
|
-
modal,
|
|
162
|
-
openReason
|
|
163
|
-
} = useMenuRootContext();
|
|
164
|
-
const keepMounted = useMenuPortalContext();
|
|
165
|
-
const nodeId = useFloatingNodeId();
|
|
166
|
-
const parentNodeId = useFloatingParentNodeId();
|
|
167
|
-
let computedSide = side;
|
|
168
|
-
let computedAlign = align;
|
|
169
|
-
if (!side) {
|
|
170
|
-
computedSide = nested ? "inline-end" : "bottom";
|
|
171
|
-
}
|
|
172
|
-
if (!align) {
|
|
173
|
-
computedAlign = nested ? "start" : "center";
|
|
174
|
-
}
|
|
175
|
-
const positioner = useMenuPositioner({
|
|
176
|
-
anchor,
|
|
177
|
-
floatingRootContext,
|
|
178
|
-
positionMethod,
|
|
179
|
-
open,
|
|
180
|
-
mounted,
|
|
181
|
-
side: computedSide,
|
|
182
|
-
sideOffset,
|
|
183
|
-
align: computedAlign,
|
|
184
|
-
alignOffset,
|
|
185
|
-
arrowPadding,
|
|
186
|
-
collisionBoundary,
|
|
187
|
-
collisionPadding,
|
|
188
|
-
sticky,
|
|
189
|
-
nodeId,
|
|
190
|
-
parentNodeId,
|
|
191
|
-
keepMounted,
|
|
192
|
-
trackAnchor
|
|
193
|
-
});
|
|
194
|
-
const state = React.useMemo(() => ({
|
|
195
|
-
open,
|
|
196
|
-
side: positioner.side,
|
|
197
|
-
align: positioner.align,
|
|
198
|
-
anchorHidden: positioner.anchorHidden,
|
|
199
|
-
nested
|
|
200
|
-
}), [open, positioner.side, positioner.align, positioner.anchorHidden, nested]);
|
|
201
|
-
const contextValue = React.useMemo(() => ({
|
|
202
|
-
side: positioner.side,
|
|
203
|
-
align: positioner.align,
|
|
204
|
-
arrowRef: positioner.arrowRef,
|
|
205
|
-
arrowUncentered: positioner.arrowUncentered,
|
|
206
|
-
arrowStyles: positioner.arrowStyles,
|
|
207
|
-
floatingContext: positioner.context
|
|
208
|
-
}), [positioner.side, positioner.align, positioner.arrowRef, positioner.arrowUncentered, positioner.arrowStyles, positioner.context]);
|
|
209
|
-
const mergedRef = useForkRef(forwardedRef, setPositionerElement);
|
|
210
|
-
const {
|
|
211
|
-
renderElement
|
|
212
|
-
} = useComponentRenderer({
|
|
213
|
-
render: render ?? "div",
|
|
214
|
-
className,
|
|
215
|
-
state,
|
|
216
|
-
customStyleHookMapping: popupStateMapping,
|
|
217
|
-
ref: mergedRef,
|
|
218
|
-
extraProps: {
|
|
219
|
-
...positioner.positionerProps,
|
|
220
|
-
...otherProps
|
|
221
|
-
}
|
|
222
|
-
});
|
|
223
|
-
return /* @__PURE__ */ jsxs(MenuPositionerContext.Provider, {
|
|
224
|
-
value: contextValue,
|
|
225
|
-
children: [mounted && modal && openReason !== "hover" && parentNodeId === null && /* @__PURE__ */ jsx(InternalBackdrop, {
|
|
226
|
-
inert: !open
|
|
227
|
-
}), /* @__PURE__ */ jsx(FloatingNode, {
|
|
228
|
-
id: nodeId,
|
|
229
|
-
children: /* @__PURE__ */ jsx(CompositeList, {
|
|
230
|
-
elementsRef: itemDomElements,
|
|
231
|
-
labelsRef: itemLabels,
|
|
232
|
-
children: renderElement()
|
|
233
|
-
})
|
|
234
|
-
})]
|
|
235
|
-
});
|
|
236
|
-
});
|
|
237
|
-
process.env.NODE_ENV !== "production" ? MenuPositioner.propTypes = {
|
|
238
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
239
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
240
|
-
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
241
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
242
|
-
/**
|
|
243
|
-
* How to align the popup relative to the specified side.
|
|
244
|
-
* @default 'center'
|
|
245
|
-
*/
|
|
246
|
-
align: PropTypes.oneOf(["center", "end", "start"]),
|
|
247
|
-
/**
|
|
248
|
-
* Additional offset along the alignment axis in pixels.
|
|
249
|
-
* Also accepts a function that returns the offset to read the dimensions of the anchor
|
|
250
|
-
* and positioner elements, along with its side and alignment.
|
|
251
|
-
*
|
|
252
|
-
* - `data.anchor`: the dimensions of the anchor element with properties `width` and `height`.
|
|
253
|
-
* - `data.positioner`: the dimensions of the positioner element with properties `width` and `height`.
|
|
254
|
-
* - `data.side`: which side of the anchor element the positioner is aligned against.
|
|
255
|
-
* - `data.align`: how the positioner is aligned relative to the specified side.
|
|
256
|
-
* @default 0
|
|
257
|
-
*/
|
|
258
|
-
alignOffset: PropTypes.oneOfType([PropTypes.func, PropTypes.number]),
|
|
259
|
-
/**
|
|
260
|
-
* An element to position the popup against.
|
|
261
|
-
* By default, the popup will be positioned against the trigger.
|
|
262
|
-
*/
|
|
263
|
-
anchor: PropTypes.oneOfType([HTMLElementType, refType, PropTypes.object, PropTypes.func]),
|
|
264
|
-
/**
|
|
265
|
-
* Minimum distance to maintain between the arrow and the edges of the popup.
|
|
266
|
-
*
|
|
267
|
-
* Use it to prevent the arrow element from hanging out of the rounded corners of a popup.
|
|
268
|
-
* @default 5
|
|
269
|
-
*/
|
|
270
|
-
arrowPadding: PropTypes.number,
|
|
271
|
-
/**
|
|
272
|
-
* @ignore
|
|
273
|
-
*/
|
|
274
|
-
children: PropTypes.node,
|
|
275
|
-
/**
|
|
276
|
-
* CSS class applied to the element, or a function that
|
|
277
|
-
* returns a class based on the component’s state.
|
|
278
|
-
*/
|
|
279
|
-
className: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
|
|
280
|
-
/**
|
|
281
|
-
* An element or a rectangle that delimits the area that the popup is confined to.
|
|
282
|
-
* @default 'clipping-ancestors'
|
|
283
|
-
*/
|
|
284
|
-
collisionBoundary: PropTypes.oneOfType([HTMLElementType, PropTypes.arrayOf(HTMLElementType), PropTypes.string, PropTypes.shape({
|
|
285
|
-
height: PropTypes.number,
|
|
286
|
-
width: PropTypes.number,
|
|
287
|
-
x: PropTypes.number,
|
|
288
|
-
y: PropTypes.number
|
|
289
|
-
})]),
|
|
290
|
-
/**
|
|
291
|
-
* Additional space to maintain from the edge of the collision boundary.
|
|
292
|
-
* @default 5
|
|
293
|
-
*/
|
|
294
|
-
collisionPadding: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
295
|
-
bottom: PropTypes.number,
|
|
296
|
-
left: PropTypes.number,
|
|
297
|
-
right: PropTypes.number,
|
|
298
|
-
top: PropTypes.number
|
|
299
|
-
})]),
|
|
300
|
-
/**
|
|
301
|
-
* Determines which CSS `position` property to use.
|
|
302
|
-
* @default 'absolute'
|
|
303
|
-
*/
|
|
304
|
-
positionMethod: PropTypes.oneOf(["absolute", "fixed"]),
|
|
305
|
-
/**
|
|
306
|
-
* Allows you to replace the component’s HTML element
|
|
307
|
-
* with a different tag, or compose it with another component.
|
|
308
|
-
*
|
|
309
|
-
* Accepts a `ReactElement` or a function that returns the element to render.
|
|
310
|
-
*/
|
|
311
|
-
render: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
|
|
312
|
-
/**
|
|
313
|
-
* Which side of the anchor element to align the popup against.
|
|
314
|
-
* May automatically change to avoid collisions.
|
|
315
|
-
* @default 'bottom'
|
|
316
|
-
*/
|
|
317
|
-
side: PropTypes.oneOf(["bottom", "inline-end", "inline-start", "left", "right", "top"]),
|
|
318
|
-
/**
|
|
319
|
-
* Distance between the anchor and the popup in pixels.
|
|
320
|
-
* Also accepts a function that returns the distance to read the dimensions of the anchor
|
|
321
|
-
* and positioner elements, along with its side and alignment.
|
|
322
|
-
*
|
|
323
|
-
* - `data.anchor`: the dimensions of the anchor element with properties `width` and `height`.
|
|
324
|
-
* - `data.positioner`: the dimensions of the positioner element with properties `width` and `height`.
|
|
325
|
-
* - `data.side`: which side of the anchor element the positioner is aligned against.
|
|
326
|
-
* - `data.align`: how the positioner is aligned relative to the specified side.
|
|
327
|
-
* @default 0
|
|
328
|
-
*/
|
|
329
|
-
sideOffset: PropTypes.oneOfType([PropTypes.func, PropTypes.number]),
|
|
330
|
-
/**
|
|
331
|
-
* Whether to maintain the popup in the viewport after
|
|
332
|
-
* the anchor element was scrolled out of view.
|
|
333
|
-
* @default false
|
|
334
|
-
*/
|
|
335
|
-
sticky: PropTypes.bool,
|
|
336
|
-
/**
|
|
337
|
-
* Whether the popup tracks any layout shift of its positioning anchor.
|
|
338
|
-
* @default true
|
|
339
|
-
*/
|
|
340
|
-
trackAnchor: PropTypes.bool
|
|
341
|
-
} : void 0;
|
|
342
68
|
const TYPEAHEAD_RESET_MS = 500;
|
|
343
69
|
const PATIENT_CLICK_THRESHOLD = 500;
|
|
344
70
|
function translateOpenChangeReason(nativeReason) {
|
|
@@ -713,12 +439,53 @@ process.env.NODE_ENV !== "production" ? MenuRoot.propTypes = {
|
|
|
713
439
|
*/
|
|
714
440
|
orientation: PropTypes.oneOf(["horizontal", "vertical"])
|
|
715
441
|
} : void 0;
|
|
442
|
+
const emptyBB = {
|
|
443
|
+
getBoundingClientRect: () => ({
|
|
444
|
+
x: 0,
|
|
445
|
+
y: 0,
|
|
446
|
+
width: 0,
|
|
447
|
+
height: 0,
|
|
448
|
+
top: 0,
|
|
449
|
+
bottom: 0,
|
|
450
|
+
left: 0,
|
|
451
|
+
right: 0,
|
|
452
|
+
toJSON: () => ""
|
|
453
|
+
})
|
|
454
|
+
};
|
|
455
|
+
function ColumnMenuDriver() {
|
|
456
|
+
const grid = useGrid();
|
|
457
|
+
const menuColumn = grid.state.internal.columnMenuColumn.use();
|
|
458
|
+
const target = grid.state.internal.columnMenuTarget.use();
|
|
459
|
+
const MenuRenderer = grid.state.columnMenuRenderer.use();
|
|
460
|
+
const [open, setOpen] = useState(false);
|
|
461
|
+
useEffect(() => {
|
|
462
|
+
if (menuColumn == null || target == null) {
|
|
463
|
+
setOpen(false);
|
|
464
|
+
return;
|
|
465
|
+
}
|
|
466
|
+
setOpen(true);
|
|
467
|
+
}, [menuColumn, target]);
|
|
468
|
+
return /* @__PURE__ */ jsx(
|
|
469
|
+
MenuRoot,
|
|
470
|
+
{
|
|
471
|
+
open,
|
|
472
|
+
onOpenChange: (c) => {
|
|
473
|
+
setOpen(c);
|
|
474
|
+
},
|
|
475
|
+
onOpenChangeComplete: (c) => {
|
|
476
|
+
if (!c) grid.api.columnMenuClose();
|
|
477
|
+
},
|
|
478
|
+
children: /* @__PURE__ */ jsx(MenuPortal, { children: /* @__PURE__ */ jsx(AnchorProvider, { anchor: target, children: MenuRenderer && menuColumn && /* @__PURE__ */ jsx(MenuRenderer, { api: grid.api, column: menuColumn }) }) })
|
|
479
|
+
}
|
|
480
|
+
);
|
|
481
|
+
}
|
|
716
482
|
export {
|
|
483
|
+
ColumnMenuDriver as C,
|
|
717
484
|
MenuRoot as M,
|
|
718
485
|
PATIENT_CLICK_THRESHOLD as P,
|
|
719
486
|
MenuPortal as a,
|
|
720
|
-
|
|
721
|
-
|
|
487
|
+
useMenuPortalContext as b,
|
|
488
|
+
emptyBB as e,
|
|
722
489
|
translateOpenChangeReason as t,
|
|
723
490
|
useMenuRootContext as u
|
|
724
491
|
};
|
package/dist/dialog.js
CHANGED
|
@@ -2,10 +2,10 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { useMemo, forwardRef } from "react";
|
|
4
4
|
import { clsx } from "@1771technologies/js-utils";
|
|
5
|
-
import {
|
|
5
|
+
import { P as PropTypes, j as useEventCallback, m as mergeProps, d as useEnhancedEffect, n as useOpenChangeComplete, D as FloatingFocusManager, r as refType } from "./proptypes-BjYr2nFr.js";
|
|
6
6
|
import { u as useDialogRootContext, a as useDialogPortalContext } from "./DialogPortalContext-C2WZTqJ3.js";
|
|
7
|
-
import { t as transitionStatusMapping, u as useBaseUiId } from "./
|
|
8
|
-
import { u as useButton } from "./useButton-
|
|
7
|
+
import { p as popupStateMapping, t as transitionStatusMapping, u as useForkRef, a as useComponentRenderer, b as useBaseUiId, I as InternalBackdrop } from "./InternalBackdrop-C4RACVzs.js";
|
|
8
|
+
import { u as useButton } from "./useButton-DWXzFgcr.js";
|
|
9
9
|
const customStyleHookMapping$1 = {
|
|
10
10
|
...popupStateMapping,
|
|
11
11
|
...transitionStatusMapping
|
|
@@ -4,13 +4,10 @@ import { clsx, sizeFromCoord, getClientY, getClientX, getRelativeXPosition } fro
|
|
|
4
4
|
import { refCompat, useEvent } from "@1771technologies/react-utils";
|
|
5
5
|
import { getHoveredRowIndex } from "@1771technologies/grid-core";
|
|
6
6
|
import { useDraggable } from "@1771technologies/react-dragon";
|
|
7
|
-
import { context } from "@1771technologies/grid-provider";
|
|
8
7
|
const ROW_LEAF_KIND = 1;
|
|
9
8
|
const ROW_GROUP_KIND = 2;
|
|
10
|
-
const ROW_TOTAL_KIND = 3;
|
|
11
9
|
const COLUMN_GROUP_ID_DELIMITER = "-->";
|
|
12
10
|
const ROW_DEFAULT_PATH_SEPARATOR = "-->";
|
|
13
|
-
const ROW_TOTAL_ID = "__lng__totals__row";
|
|
14
11
|
const COLUMN_EMPTY_PREFIX = "lytenyte-empty:";
|
|
15
12
|
const COLUMN_MARKER_ID = "lytenyte-marker-column";
|
|
16
13
|
const GROUP_COLUMN_PREFIX = "lytenyte-group-column:";
|
|
@@ -21,6 +18,7 @@ const COLUMN_GROUP_HEADER_HEIGHT = 28;
|
|
|
21
18
|
const COLUMN_HEADER_HEIGHT = 32;
|
|
22
19
|
const COLUMN_SCAN_DISTANCE = 20;
|
|
23
20
|
const PAGINATE_PAGE_SIZE = 50;
|
|
21
|
+
const ROW_BLANK_GROUP_KEY = "lytenyte-blank";
|
|
24
22
|
const ROW_HEIGHT = 32;
|
|
25
23
|
const ROW_DETAIL_HEIGHT = 300;
|
|
26
24
|
const ROW_UPDATE_STACK_SIZE = 20;
|
|
@@ -537,6 +535,7 @@ function SelectionCheckbox({ api, row }) {
|
|
|
537
535
|
tabIndex: -1,
|
|
538
536
|
isChecked: isChecked || isIndeterminate,
|
|
539
537
|
isDeterminate: isIndeterminate,
|
|
538
|
+
isDisabled: !isSelectable,
|
|
540
539
|
onClick: (event) => {
|
|
541
540
|
handleRowSelection(api, row, event.shiftKey, true, true);
|
|
542
541
|
}
|
|
@@ -862,55 +861,46 @@ function DragProvider({ children }) {
|
|
|
862
861
|
}
|
|
863
862
|
const useDragStore = () => useContext(DragContext);
|
|
864
863
|
const useDrag = useStore;
|
|
865
|
-
function useGrid() {
|
|
866
|
-
return useContext(context);
|
|
867
|
-
}
|
|
868
|
-
function GridProvider(p) {
|
|
869
|
-
return /* @__PURE__ */ jsx(context.Provider, { value: p.value, children: p.children });
|
|
870
|
-
}
|
|
871
864
|
export {
|
|
872
|
-
|
|
873
|
-
|
|
865
|
+
ROW_UPDATE_STACK_SIZE as A,
|
|
866
|
+
DEFAULT_MAX_WIDTH as B,
|
|
874
867
|
Checkbox as C,
|
|
875
868
|
DragProvider as D,
|
|
876
869
|
END_ENCODING as E,
|
|
877
870
|
FLOATING_CELL_POSITION as F,
|
|
878
|
-
|
|
871
|
+
GRID_CELL_POSITION as G,
|
|
879
872
|
HEADER_CELL_POSITION as H,
|
|
880
873
|
Input as I,
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
DEFAULT_WIDTH as N,
|
|
886
|
-
DEFAULT_SORT_CYCLE as O,
|
|
874
|
+
DEFAULT_MIN_WIDTH as J,
|
|
875
|
+
DEFAULT_WIDTH as K,
|
|
876
|
+
DEFAULT_SORT_CYCLE as L,
|
|
877
|
+
FULL_WIDTH_POSITION as M,
|
|
887
878
|
PAGINATE_PAGE_SIZE as P,
|
|
888
|
-
FULL_WIDTH_POSITION as Q,
|
|
889
879
|
ROW_LEAF_KIND as R,
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
880
|
+
useDrag as a,
|
|
881
|
+
useStore as b,
|
|
882
|
+
CheckMark as c,
|
|
883
|
+
COLUMN_MARKER_ID as d,
|
|
884
|
+
COLUMN_EMPTY_PREFIX as e,
|
|
885
|
+
HEADER_GROUP_CELL_POSITION as f,
|
|
896
886
|
getTransform as g,
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
887
|
+
CollapseButton as h,
|
|
888
|
+
FULL_ENCODING as i,
|
|
889
|
+
CellFullWidth as j,
|
|
890
|
+
Cell as k,
|
|
891
|
+
GridButton as l,
|
|
892
|
+
ROW_GROUP_KIND as m,
|
|
893
|
+
COLUMN_GROUP_ID_DELIMITER as n,
|
|
894
|
+
ROW_DEFAULT_PATH_SEPARATOR as o,
|
|
895
|
+
GROUP_COLUMN_PREFIX as p,
|
|
896
|
+
GROUP_COLUMN_MULTI_PREFIX as q,
|
|
897
|
+
GROUP_COLUMN_SINGLE_ID as r,
|
|
898
|
+
GROUP_COLUMN_TREE_DATA as s,
|
|
899
|
+
COLUMN_GROUP_HEADER_HEIGHT as t,
|
|
900
|
+
useDragStore as u,
|
|
901
|
+
COLUMN_HEADER_HEIGHT as v,
|
|
902
|
+
COLUMN_SCAN_DISTANCE as w,
|
|
903
|
+
ROW_BLANK_GROUP_KEY as x,
|
|
904
|
+
ROW_HEIGHT as y,
|
|
905
|
+
ROW_DETAIL_HEIGHT as z
|
|
916
906
|
};
|
package/dist/filter-manager.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect, useCallback, createContext, useContext, useMemo, forwardRef } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { S as Select } from "./select-
|
|
3
|
+
import { c as useGrid, G as GridProvider } from "./useScrollLock-D4UY33Sb.js";
|
|
4
|
+
import { S as Select } from "./select-qluHi8ET.js";
|
|
5
|
+
import { I as Input, C as Checkbox } from "./drag-store-CO3z13Ju.js";
|
|
5
6
|
import "@1771technologies/react-sizer";
|
|
6
7
|
import "@1771technologies/react-utils";
|
|
7
8
|
import "@1771technologies/grid-provider";
|