@1771technologies/lytenyte-pro 0.0.39 → 0.0.41
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/column-manager.js +2 -1
- package/dist/icons.js +6 -2
- package/dist/index.js +78 -35
- package/dist/lytenyte-pro.css +78 -15
- package/dist/more-dots-icon-CzAH3xHG.js +26 -0
- package/dist/pill-manager.js +2 -1
- package/dist/{row-group-icon-BOOju5Vu.js → row-group-icon-D8JA6sh9.js} +1 -24
- package/dist/sort-descending-BMtfaa2L.js +34 -0
- package/dist/types/header-cell/header-cell-default.d.ts +2 -0
- package/package.json +15 -17
package/dist/column-manager.js
CHANGED
|
@@ -10,9 +10,10 @@ import "@1771technologies/grid-core";
|
|
|
10
10
|
import { g as useEdgeScroll, h as useDraggable, c as canAgg, a as canMeasure, f as useDroppable, u as useAggregationSource, b as useMeasuresSource, d as useRowGroupsSource, e as useColumnPivotSource, P as Pill, M as MenuTrigger, i as PillManagerAggMenu, j as PillManagerMeasureMenu } from "./pill-C4Jhdf8E.js";
|
|
11
11
|
import { A as ArrowRightIcon } from "./tickmark-icon-CoogRMoO.js";
|
|
12
12
|
import { A as ArrowDownIcon } from "./arrow-down-icon-B-3ldODD.js";
|
|
13
|
-
import { D as DragIcon, M as MeasuresIcon, C as ColumnPivotIcon, R as RowGroupIcon
|
|
13
|
+
import { D as DragIcon, M as MeasuresIcon, C as ColumnPivotIcon, R as RowGroupIcon } from "./row-group-icon-D8JA6sh9.js";
|
|
14
14
|
import { createPortal } from "react-dom";
|
|
15
15
|
import { D as DragGroupIcon, S as SearchIcon } from "./search-icon-CcG1lqsn.js";
|
|
16
|
+
import { M as MoreDotsIcon } from "./more-dots-icon-CzAH3xHG.js";
|
|
16
17
|
import { C as CrossIcon } from "./cross-icon-CEMLAlFX.js";
|
|
17
18
|
import { M as MenuRoot, a as MenuPortal, b as MenuPositioner } from "./MenuRoot-9n64jNWP.js";
|
|
18
19
|
function Sizer({
|
package/dist/icons.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { A, T } from "./tickmark-icon-CoogRMoO.js";
|
|
3
3
|
import { A as A2 } from "./arrow-down-icon-B-3ldODD.js";
|
|
4
|
-
import { C, D, M,
|
|
4
|
+
import { C, D, M, R } from "./row-group-icon-D8JA6sh9.js";
|
|
5
5
|
import { C as C2 } from "./cross-icon-CEMLAlFX.js";
|
|
6
6
|
import { D as D2, S } from "./search-icon-CcG1lqsn.js";
|
|
7
7
|
import { C as C3, E, M as M2 } from "./manage-columns-icon-D4CElo5H.js";
|
|
8
|
+
import { M as M3 } from "./more-dots-icon-CzAH3xHG.js";
|
|
8
9
|
import { P } from "./plus-icon-ToqW5CC-.js";
|
|
10
|
+
import { S as S2, a } from "./sort-descending-BMtfaa2L.js";
|
|
9
11
|
function AggregationIcon(props) {
|
|
10
12
|
return /* @__PURE__ */ jsxs(
|
|
11
13
|
"svg",
|
|
@@ -502,11 +504,13 @@ export {
|
|
|
502
504
|
HideColumnIcon,
|
|
503
505
|
M2 as ManageColumnsIcon,
|
|
504
506
|
M as MeasuresIcon,
|
|
505
|
-
|
|
507
|
+
M3 as MoreDotsIcon,
|
|
506
508
|
P as PlusIcon,
|
|
507
509
|
ResetColumnsIcon,
|
|
508
510
|
R as RowGroupIcon,
|
|
509
511
|
S as SearchIcon,
|
|
512
|
+
S2 as SortAscending,
|
|
513
|
+
a as SortDescending,
|
|
510
514
|
SortIcon,
|
|
511
515
|
T as TickmarkIcon
|
|
512
516
|
};
|
package/dist/index.js
CHANGED
|
@@ -19,6 +19,8 @@ import { u as useDialogRootContext, D as DialogPortalContext, b as useOptionalDi
|
|
|
19
19
|
import { a as useControlled, b as useTransitionStatus, c as useScrollLock } from "./useScrollLock-D6h5lZYs.js";
|
|
20
20
|
import { P as PopoverRootContext, u as usePopoverRootContext, c as PopoverPortalContext, A as AnchorProvider } from "./anchor-context-B9sGQdR5.js";
|
|
21
21
|
import { makeGridPro } from "@1771technologies/grid-store-pro";
|
|
22
|
+
import { M as MoreDotsIcon } from "./more-dots-icon-CzAH3xHG.js";
|
|
23
|
+
import { S as SortAscending, a as SortDescending } from "./sort-descending-BMtfaa2L.js";
|
|
22
24
|
import { createClientDataSource } from "@1771technologies/grid-client-data-source-pro";
|
|
23
25
|
import { createTreeDataSource } from "@1771technologies/grid-tree-data-source";
|
|
24
26
|
function useGrid() {
|
|
@@ -38,23 +40,6 @@ function useHeaderDisplayGridTemplate(levelsCount, headerHeight, groupHeaderHeig
|
|
|
38
40
|
}, [floatingRowEnabled, floatingRowHeight, groupHeaderHeight, headerHeight, levelsCount]);
|
|
39
41
|
return gridTemplateRows;
|
|
40
42
|
}
|
|
41
|
-
function HeaderCellDefault({ column }) {
|
|
42
|
-
const label = column.headerName ?? column.id;
|
|
43
|
-
return /* @__PURE__ */ jsx(
|
|
44
|
-
"div",
|
|
45
|
-
{
|
|
46
|
-
style: {
|
|
47
|
-
display: "flex",
|
|
48
|
-
alignItems: "center",
|
|
49
|
-
boxSizing: "border-box",
|
|
50
|
-
width: "100%",
|
|
51
|
-
height: "100%",
|
|
52
|
-
paddingInline: 12
|
|
53
|
-
},
|
|
54
|
-
children: label
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
43
|
function HeaderCellMarker({ api }) {
|
|
59
44
|
const supportsSelectedAll = api.rowSelectionSelectAllSupported();
|
|
60
45
|
const allSelected = api.rowSelectionAllRowsSelected();
|
|
@@ -95,17 +80,18 @@ function useHeaderCellRenderer(api, column) {
|
|
|
95
80
|
const sx = api.getState();
|
|
96
81
|
const renderers = sx.columnHeaderRenderers.use();
|
|
97
82
|
const base = sx.columnBase.use();
|
|
83
|
+
const defaultRenderer = sx.internal.columnHeaderDefaultRenderer.peek();
|
|
98
84
|
const Renderer = useMemo(() => {
|
|
99
85
|
if (column.id === COLUMN_MARKER_ID) return HeaderCellMarker;
|
|
100
86
|
const fn = column.headerRenderer ?? base.headerRenderer;
|
|
101
|
-
if (!fn) return
|
|
87
|
+
if (!fn) return defaultRenderer;
|
|
102
88
|
if (typeof fn === "string") {
|
|
103
89
|
const cell = renderers[fn];
|
|
104
90
|
if (!cell) throw new Error(`Header cell renderer with name ${fn} does not exist.`);
|
|
105
91
|
return cell;
|
|
106
92
|
}
|
|
107
93
|
return fn;
|
|
108
|
-
}, [base.headerRenderer, column.headerRenderer, column.id, renderers]);
|
|
94
|
+
}, [base.headerRenderer, column.headerRenderer, column.id, defaultRenderer, renderers]);
|
|
109
95
|
return Renderer;
|
|
110
96
|
}
|
|
111
97
|
function useHeaderMove(api, column, columnIndex) {
|
|
@@ -303,27 +289,24 @@ function useHeaderCells(api) {
|
|
|
303
289
|
}
|
|
304
290
|
function useResizeDivider(api, column) {
|
|
305
291
|
const isResizable = api.columnIsResizable(column);
|
|
306
|
-
const
|
|
307
|
-
const dragStarted = useRef(false);
|
|
292
|
+
const [active, setActive] = useState(false);
|
|
308
293
|
const resizeProps = useMemo(() => {
|
|
309
294
|
if (!isResizable) return {};
|
|
310
295
|
const onPointerDown = (e) => {
|
|
311
|
-
e.
|
|
296
|
+
if (e.pointerType === "mouse" && e.button !== 0) return;
|
|
312
297
|
const startWidth = api.columnVisualWidth(column);
|
|
313
298
|
const isRtl = api.getState().rtl.peek();
|
|
314
299
|
let startX = null;
|
|
315
300
|
let anim = null;
|
|
316
301
|
let delta = 0;
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
}, 100);
|
|
302
|
+
e.preventDefault();
|
|
303
|
+
e.stopPropagation();
|
|
304
|
+
document.body.classList.add("lng1771-column-resize-active");
|
|
305
|
+
setActive(true);
|
|
322
306
|
const controller = new AbortController();
|
|
323
307
|
document.addEventListener(
|
|
324
308
|
"pointermove",
|
|
325
309
|
(ev) => {
|
|
326
|
-
if (dragStarted.current === false) return;
|
|
327
310
|
if (startX === null) {
|
|
328
311
|
startX = getClientX(ev);
|
|
329
312
|
return;
|
|
@@ -341,9 +324,9 @@ function useResizeDivider(api, column) {
|
|
|
341
324
|
window.addEventListener(
|
|
342
325
|
"pointerup",
|
|
343
326
|
() => {
|
|
344
|
-
if (timeOutRef.current) clearTimeout(timeOutRef.current);
|
|
345
327
|
if (anim) cancelAnimationFrame(anim);
|
|
346
|
-
|
|
328
|
+
setActive(false);
|
|
329
|
+
document.body.classList.remove("lng1771-column-resize-active");
|
|
347
330
|
const newWidth = startWidth + delta;
|
|
348
331
|
api.columnResize(column, newWidth);
|
|
349
332
|
api.getState().internal.columnWidthDeltas.set(null);
|
|
@@ -354,7 +337,7 @@ function useResizeDivider(api, column) {
|
|
|
354
337
|
};
|
|
355
338
|
return { onPointerDown };
|
|
356
339
|
}, [api, column, isResizable]);
|
|
357
|
-
return resizeProps;
|
|
340
|
+
return { ...resizeProps, active };
|
|
358
341
|
}
|
|
359
342
|
function HeaderDivider({
|
|
360
343
|
api,
|
|
@@ -372,7 +355,7 @@ function HeaderDivider({
|
|
|
372
355
|
const isLastStart = startCount > 0 && columnIndex === startCount - 1;
|
|
373
356
|
const isFirstEnd = endCount > 0 && startCount + centerCount === columnIndex;
|
|
374
357
|
const isLast = startCount + centerCount + endCount - 1 === columnIndex;
|
|
375
|
-
const
|
|
358
|
+
const { onPointerDown, active: resizeActive } = useResizeDivider(api, column);
|
|
376
359
|
const rtl = api.getState().rtl.use();
|
|
377
360
|
const style = useMemo(() => {
|
|
378
361
|
const isStart = column.pin === "start";
|
|
@@ -411,7 +394,8 @@ function HeaderDivider({
|
|
|
411
394
|
return /* @__PURE__ */ jsx(
|
|
412
395
|
"div",
|
|
413
396
|
{
|
|
414
|
-
|
|
397
|
+
onPointerDown,
|
|
398
|
+
"data-resize-active": resizeActive,
|
|
415
399
|
onDoubleClick: () => {
|
|
416
400
|
const autosize = api.getState().autosizeDoubleClickHeader.peek();
|
|
417
401
|
if (autosize) api.autosizeColumn(column, { includeHeader: true });
|
|
@@ -611,6 +595,7 @@ function HeaderGroupCell({
|
|
|
611
595
|
hierarchyRowIndex: rowStart - 1
|
|
612
596
|
});
|
|
613
597
|
});
|
|
598
|
+
const Renderer = api.getState().columnGroupHeaderRenderer.use() ?? HeaderGroupDefault;
|
|
614
599
|
return /* @__PURE__ */ jsx(
|
|
615
600
|
"div",
|
|
616
601
|
{
|
|
@@ -625,7 +610,7 @@ function HeaderGroupCell({
|
|
|
625
610
|
tabIndex: -1,
|
|
626
611
|
...headerMove.moveProps,
|
|
627
612
|
className: "lng1771-header__group",
|
|
628
|
-
children: /* @__PURE__ */ jsx(
|
|
613
|
+
children: /* @__PURE__ */ jsx(Renderer, { group: groupItem, api })
|
|
629
614
|
}
|
|
630
615
|
);
|
|
631
616
|
}
|
|
@@ -2797,7 +2782,7 @@ function GridFrame({
|
|
|
2797
2782
|
return /* @__PURE__ */ jsxs(
|
|
2798
2783
|
"div",
|
|
2799
2784
|
{
|
|
2800
|
-
"data-
|
|
2785
|
+
"data-cell-selection-enabled": cellSelectionEnabled ? true : void 0,
|
|
2801
2786
|
className: "lng1771-grid-frame",
|
|
2802
2787
|
style: { gridTemplateColumns: template },
|
|
2803
2788
|
children: [
|
|
@@ -3657,9 +3642,67 @@ function Bottom() {
|
|
|
3657
3642
|
/* @__PURE__ */ jsx(CellSelectionBottom, {})
|
|
3658
3643
|
] });
|
|
3659
3644
|
}
|
|
3645
|
+
function HeaderCellDefault({ column, api }) {
|
|
3646
|
+
const sx = api.getState();
|
|
3647
|
+
const isSortable = api.columnIsSortable(column);
|
|
3648
|
+
const sortModel = sx.sortModel.use();
|
|
3649
|
+
const currentSort = api.columnSortDirection(column);
|
|
3650
|
+
const currentSortIndex = api.columnSortModelIndex(column);
|
|
3651
|
+
const nextSort = api.columnSortGetNext(column);
|
|
3652
|
+
const displaySortNumber = sortModel.length > 0 && currentSortIndex > 0;
|
|
3653
|
+
const hints = column.uiHints ?? sx.columnBase.peek().uiHints ?? {};
|
|
3654
|
+
const columnMenuOpen = sx.columnMenuActiveColumn.use();
|
|
3655
|
+
const hasControls = hints.columnMenu || hints.sortButton && isSortable;
|
|
3656
|
+
return /* @__PURE__ */ jsxs(
|
|
3657
|
+
"div",
|
|
3658
|
+
{
|
|
3659
|
+
className: clsx(
|
|
3660
|
+
"lng1771-header-default",
|
|
3661
|
+
column.type === "number" && "lng1771-header-default--end-align",
|
|
3662
|
+
column.type !== "number" && "lng1771-header-default--start-align"
|
|
3663
|
+
),
|
|
3664
|
+
children: [
|
|
3665
|
+
/* @__PURE__ */ jsx("div", { children: column.headerName ?? column.id }),
|
|
3666
|
+
hasControls && /* @__PURE__ */ jsxs("div", { className: "lng1771-header-default__controls", children: [
|
|
3667
|
+
isSortable && hints.sortButton && /* @__PURE__ */ jsxs(
|
|
3668
|
+
"button",
|
|
3669
|
+
{
|
|
3670
|
+
tabIndex: -1,
|
|
3671
|
+
"data-active": currentSort != null,
|
|
3672
|
+
className: clsx("lng1771-header-default__button"),
|
|
3673
|
+
onClick: () => api.columnSortCycleToNext(column),
|
|
3674
|
+
children: [
|
|
3675
|
+
currentSort === "asc" && /* @__PURE__ */ jsx(SortAscending, { width: 16, height: 16 }),
|
|
3676
|
+
currentSort === "desc" && /* @__PURE__ */ jsx(SortDescending, { width: 16, height: 16 }),
|
|
3677
|
+
!currentSort && nextSort?.includes("asc") && /* @__PURE__ */ jsx(SortAscending, { width: 16, height: 16 }),
|
|
3678
|
+
!currentSort && nextSort?.includes("desc") && /* @__PURE__ */ jsx(SortDescending, { width: 16, height: 16 }),
|
|
3679
|
+
displaySortNumber && currentSortIndex > 0 && /* @__PURE__ */ jsx("span", { className: "lng1771-header-default__sort-count", children: currentSortIndex + 1 })
|
|
3680
|
+
]
|
|
3681
|
+
}
|
|
3682
|
+
),
|
|
3683
|
+
hints.columnMenu && /* @__PURE__ */ jsx(
|
|
3684
|
+
"button",
|
|
3685
|
+
{
|
|
3686
|
+
tabIndex: -1,
|
|
3687
|
+
className: "lng1771-header-default__button",
|
|
3688
|
+
onFocus: (ev) => {
|
|
3689
|
+
if (column !== columnMenuOpen) return;
|
|
3690
|
+
ev.currentTarget.parentElement?.parentElement?.parentElement?.focus();
|
|
3691
|
+
},
|
|
3692
|
+
"data-active": column === columnMenuOpen,
|
|
3693
|
+
onClick: (e) => api.columnMenuOpen(column, e.currentTarget),
|
|
3694
|
+
children: /* @__PURE__ */ jsx(MoreDotsIcon, { width: 16, height: 16 })
|
|
3695
|
+
}
|
|
3696
|
+
)
|
|
3697
|
+
] })
|
|
3698
|
+
]
|
|
3699
|
+
}
|
|
3700
|
+
);
|
|
3701
|
+
}
|
|
3660
3702
|
const useLyteNytePro = (p2) => {
|
|
3661
3703
|
const [grid] = useState(() => {
|
|
3662
3704
|
const s3 = makeGridPro(p2);
|
|
3705
|
+
s3.state.internal.columnHeaderDefaultRenderer.set(() => HeaderCellDefault);
|
|
3663
3706
|
const useSignalWatcher = (c, fn) => {
|
|
3664
3707
|
const signal2 = s3.state[c];
|
|
3665
3708
|
useEffect(() => {
|
package/dist/lytenyte-pro.css
CHANGED
|
@@ -23,21 +23,8 @@
|
|
|
23
23
|
.lng1771-cell,
|
|
24
24
|
.lng1771-cell__full-width {
|
|
25
25
|
&:focus {
|
|
26
|
-
outline:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
&:focus:after {
|
|
30
|
-
content: "";
|
|
31
|
-
position: absolute;
|
|
32
|
-
top: 0px;
|
|
33
|
-
inset-inline-start: 1px;
|
|
34
|
-
width: calc(100% - 2px);
|
|
35
|
-
height: 100%;
|
|
36
|
-
pointer-events: none;
|
|
37
|
-
box-sizing: border-box;
|
|
38
|
-
border: 1px solid var(--lng1771-focus-outline);
|
|
39
|
-
border-radius: 2px;
|
|
40
|
-
z-index: 10;
|
|
26
|
+
outline: 1px solid var(--lng1771-focus-outline);
|
|
27
|
+
outline-offset: -2px;
|
|
41
28
|
}
|
|
42
29
|
}
|
|
43
30
|
|
|
@@ -337,6 +324,14 @@ INPUT
|
|
|
337
324
|
&:hover div {
|
|
338
325
|
background-color: var(--lng1771-primary-50);
|
|
339
326
|
}
|
|
327
|
+
|
|
328
|
+
&[data-resize-active="true"] {
|
|
329
|
+
background-color: var(--lng1771-primary-50);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.lng1771-column-resize-active {
|
|
334
|
+
cursor: col-resize;
|
|
340
335
|
}
|
|
341
336
|
.lng1771-header__group {
|
|
342
337
|
grid-column-start: 1;
|
|
@@ -1946,3 +1941,71 @@ body.lng1771-drag-on
|
|
|
1946
1941
|
.lng1771-grid-frame__control-button-icon {
|
|
1947
1942
|
color: var(--lng1771-gray-70);
|
|
1948
1943
|
}
|
|
1944
|
+
.lng1771-header-default {
|
|
1945
|
+
display: flex;
|
|
1946
|
+
align-items: center;
|
|
1947
|
+
width: 100%;
|
|
1948
|
+
height: 100%;
|
|
1949
|
+
padding-inline: 12px;
|
|
1950
|
+
box-sizing: border-box;
|
|
1951
|
+
text-transform: capitalize;
|
|
1952
|
+
position: relative;
|
|
1953
|
+
font-weight: 400;
|
|
1954
|
+
letter-spacing: 0.25px;
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
.lng1771-header-default--end-align {
|
|
1958
|
+
justify-content: flex-end;
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
.lng1771-header-default__controls {
|
|
1962
|
+
position: absolute;
|
|
1963
|
+
display: flex;
|
|
1964
|
+
align-items: center;
|
|
1965
|
+
gap: 4px;
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
.lng1771-header-default--start-align .lng1771-header-default__controls {
|
|
1969
|
+
inset-inline-end: 12px;
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
.lng1771-header-default--end-align .lng1771-header-default__controls {
|
|
1973
|
+
inset-inline-start: 12px;
|
|
1974
|
+
flex-direction: row-reverse;
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
.lng1771-header-default__button {
|
|
1978
|
+
background-color: transparent;
|
|
1979
|
+
background-color: var(--lng1771-gray-05);
|
|
1980
|
+
border: 1px solid transparent;
|
|
1981
|
+
display: flex;
|
|
1982
|
+
align-items: center;
|
|
1983
|
+
justify-content: center;
|
|
1984
|
+
padding: 3px;
|
|
1985
|
+
border-radius: 4px;
|
|
1986
|
+
opacity: 0;
|
|
1987
|
+
transition: opacity 100ms ease-in;
|
|
1988
|
+
color: var(--lng1771-gray-70);
|
|
1989
|
+
|
|
1990
|
+
&:hover {
|
|
1991
|
+
background-color: var(--lng1771-gray-20);
|
|
1992
|
+
border-color: var(--lng1771-gray-30);
|
|
1993
|
+
cursor: pointer;
|
|
1994
|
+
}
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
.lng1771-header-default__button[data-active="true"] {
|
|
1998
|
+
opacity: 1;
|
|
1999
|
+
color: var(--lng1771-primary-50);
|
|
2000
|
+
border-color: var(--lng1771-gray-40);
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
.lng1771-header-default:hover .lng1771-header-default__button {
|
|
2004
|
+
opacity: 1;
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
.lng1771-header-default__sort-count {
|
|
2008
|
+
font-size: 10px;
|
|
2009
|
+
position: relative;
|
|
2010
|
+
top: -5px;
|
|
2011
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const MoreDotsIcon = (props) => {
|
|
3
|
+
return /* @__PURE__ */ jsx(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
width: "20",
|
|
7
|
+
height: "20",
|
|
8
|
+
viewBox: "0 0 20 20",
|
|
9
|
+
fill: "none",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
...props,
|
|
12
|
+
children: /* @__PURE__ */ jsx(
|
|
13
|
+
"path",
|
|
14
|
+
{
|
|
15
|
+
fillRule: "evenodd",
|
|
16
|
+
clipRule: "evenodd",
|
|
17
|
+
d: "M11.5 3.75C11.5 2.7835 10.7165 2 9.75 2C8.7835 2 8 2.7835 8 3.75C8 4.7165 8.7835 5.5 9.75 5.5C10.7165 5.5 11.5 4.7165 11.5 3.75ZM9.75 8C10.7165 8 11.5 8.7835 11.5 9.75C11.5 10.7165 10.7165 11.5 9.75 11.5C8.7835 11.5 8 10.7165 8 9.75C8 8.7835 8.7835 8 9.75 8ZM9.75 14C10.7165 14 11.5 14.7835 11.5 15.75C11.5 16.7165 10.7165 17.5 9.75 17.5C8.7835 17.5 8 16.7165 8 15.75C8 14.7835 8.7835 14 9.75 14Z",
|
|
18
|
+
fill: "currentcolor"
|
|
19
|
+
}
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
MoreDotsIcon as M
|
|
26
|
+
};
|
package/dist/pill-manager.js
CHANGED
|
@@ -8,10 +8,11 @@ import { useCombinedRefs } from "@1771technologies/react-utils";
|
|
|
8
8
|
import "@1771technologies/grid-provider";
|
|
9
9
|
import "@1771technologies/react-dragon";
|
|
10
10
|
import "@1771technologies/grid-core";
|
|
11
|
-
import { D as DragIcon, M as MeasuresIcon, C as ColumnPivotIcon, R as RowGroupIcon
|
|
11
|
+
import { D as DragIcon, M as MeasuresIcon, C as ColumnPivotIcon, R as RowGroupIcon } from "./row-group-icon-D8JA6sh9.js";
|
|
12
12
|
import { M as MenuRoot, a as MenuPortal, b as MenuPositioner } from "./MenuRoot-9n64jNWP.js";
|
|
13
13
|
import { M as ManageColumnsIcon, C as CollapseIcon, E as ExpandIcon } from "./manage-columns-icon-D4CElo5H.js";
|
|
14
14
|
import { createPortal } from "react-dom";
|
|
15
|
+
import { M as MoreDotsIcon } from "./more-dots-icon-CzAH3xHG.js";
|
|
15
16
|
function useColumnSource(source) {
|
|
16
17
|
const { api, state: sx } = useGrid();
|
|
17
18
|
const columns = sx.columns.use();
|
|
@@ -109,28 +109,6 @@ const MeasuresIcon = (props) => {
|
|
|
109
109
|
}
|
|
110
110
|
);
|
|
111
111
|
};
|
|
112
|
-
const MoreDotsIcon = (props) => {
|
|
113
|
-
return /* @__PURE__ */ jsx(
|
|
114
|
-
"svg",
|
|
115
|
-
{
|
|
116
|
-
width: "20",
|
|
117
|
-
height: "20",
|
|
118
|
-
viewBox: "0 0 20 20",
|
|
119
|
-
fill: "none",
|
|
120
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
121
|
-
...props,
|
|
122
|
-
children: /* @__PURE__ */ jsx(
|
|
123
|
-
"path",
|
|
124
|
-
{
|
|
125
|
-
fillRule: "evenodd",
|
|
126
|
-
clipRule: "evenodd",
|
|
127
|
-
d: "M11.5 3.75C11.5 2.7835 10.7165 2 9.75 2C8.7835 2 8 2.7835 8 3.75C8 4.7165 8.7835 5.5 9.75 5.5C10.7165 5.5 11.5 4.7165 11.5 3.75ZM9.75 8C10.7165 8 11.5 8.7835 11.5 9.75C11.5 10.7165 10.7165 11.5 9.75 11.5C8.7835 11.5 8 10.7165 8 9.75C8 8.7835 8.7835 8 9.75 8ZM9.75 14C10.7165 14 11.5 14.7835 11.5 15.75C11.5 16.7165 10.7165 17.5 9.75 17.5C8.7835 17.5 8 16.7165 8 15.75C8 14.7835 8.7835 14 9.75 14Z",
|
|
128
|
-
fill: "currentcolor"
|
|
129
|
-
}
|
|
130
|
-
)
|
|
131
|
-
}
|
|
132
|
-
);
|
|
133
|
-
};
|
|
134
112
|
const RowGroupIcon = (p) => {
|
|
135
113
|
return /* @__PURE__ */ jsxs(
|
|
136
114
|
"svg",
|
|
@@ -200,6 +178,5 @@ export {
|
|
|
200
178
|
ColumnPivotIcon as C,
|
|
201
179
|
DragIcon as D,
|
|
202
180
|
MeasuresIcon as M,
|
|
203
|
-
RowGroupIcon as R
|
|
204
|
-
MoreDotsIcon as a
|
|
181
|
+
RowGroupIcon as R
|
|
205
182
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const SortAscending = (p) => {
|
|
3
|
+
return /* @__PURE__ */ jsx(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "20",
|
|
8
|
+
height: "20",
|
|
9
|
+
fill: "currentcolor",
|
|
10
|
+
stroke: "2",
|
|
11
|
+
viewBox: "0 0 256 256",
|
|
12
|
+
...p,
|
|
13
|
+
children: /* @__PURE__ */ jsx("path", { d: "M202.83,146.83l-72,72a4,4,0,0,1-5.66,0l-72-72a4,4,0,0,1,5.66-5.66L124,206.34V40a4,4,0,0,1,8,0V206.34l65.17-65.17a4,4,0,0,1,5.66,5.66Z" })
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
};
|
|
17
|
+
const SortDescending = (p) => {
|
|
18
|
+
return /* @__PURE__ */ jsx(
|
|
19
|
+
"svg",
|
|
20
|
+
{
|
|
21
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
22
|
+
width: "20",
|
|
23
|
+
height: "20",
|
|
24
|
+
fill: "currentcolor",
|
|
25
|
+
viewBox: "0 0 256 256",
|
|
26
|
+
...p,
|
|
27
|
+
children: /* @__PURE__ */ jsx("path", { d: "M202.83,114.83a4,4,0,0,1-5.66,0L132,49.66V216a4,4,0,0,1-8,0V49.66L58.83,114.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0l72,72A4,4,0,0,1,202.83,114.83Z" })
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
SortAscending as S,
|
|
33
|
+
SortDescending as a
|
|
34
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1771technologies/lytenyte-pro",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.41",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -70,22 +70,20 @@
|
|
|
70
70
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@1771technologies/grid-client-data-source-pro": "0.0.
|
|
74
|
-
"@1771technologies/grid-core": "0.0.
|
|
75
|
-
"@1771technologies/grid-design": "0.0.
|
|
76
|
-
"@1771technologies/grid-provider": "0.0.
|
|
77
|
-
"@1771technologies/grid-store-pro": "0.0.
|
|
78
|
-
"@1771technologies/grid-tree-data-source": "0.0.
|
|
79
|
-
"@1771technologies/grid-types": "0.0.
|
|
80
|
-
"@1771technologies/js-utils": "0.0.
|
|
81
|
-
"@1771technologies/lytenyte-core": "0.0.
|
|
82
|
-
"@1771technologies/
|
|
83
|
-
"@1771technologies/react-
|
|
84
|
-
"@1771technologies/react-
|
|
85
|
-
"@1771technologies/react-
|
|
86
|
-
"@1771technologies/react-
|
|
87
|
-
"@1771technologies/react-split-pane": "0.0.39",
|
|
88
|
-
"@1771technologies/react-utils": "0.0.39",
|
|
73
|
+
"@1771technologies/grid-client-data-source-pro": "0.0.41",
|
|
74
|
+
"@1771technologies/grid-core": "0.0.41",
|
|
75
|
+
"@1771technologies/grid-design": "0.0.41",
|
|
76
|
+
"@1771technologies/grid-provider": "0.0.41",
|
|
77
|
+
"@1771technologies/grid-store-pro": "0.0.41",
|
|
78
|
+
"@1771technologies/grid-tree-data-source": "0.0.41",
|
|
79
|
+
"@1771technologies/grid-types": "0.0.41",
|
|
80
|
+
"@1771technologies/js-utils": "0.0.41",
|
|
81
|
+
"@1771technologies/lytenyte-core": "0.0.41",
|
|
82
|
+
"@1771technologies/react-cascada": "0.0.41",
|
|
83
|
+
"@1771technologies/react-dragon": "0.0.41",
|
|
84
|
+
"@1771technologies/react-sizer": "0.0.41",
|
|
85
|
+
"@1771technologies/react-split-pane": "0.0.41",
|
|
86
|
+
"@1771technologies/react-utils": "0.0.41",
|
|
89
87
|
"@base-ui-components/react": "1.0.0-alpha.7"
|
|
90
88
|
},
|
|
91
89
|
"devDependencies": {
|