@1771technologies/lytenyte-pro 0.0.76 → 0.0.78

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.
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import { IsoResizeObserver, getPreciseElementDimensions, clsx } from "@1771technologies/js-utils";
3
- import { u as useDragStore, a as useDrag, C as Checkbox, I as Input, D as DragProvider } from "./drag-store-BF4ad65L.js";
3
+ import { u as useDragStore, a as useDrag, C as Checkbox, I as Input, D as DragProvider } from "./drag-store-Bspj4Kh0.js";
4
4
  import "@1771technologies/react-sizer";
5
5
  import { useCombinedRefs, useEvent } from "@1771technologies/react-utils";
6
6
  import "@1771technologies/grid-provider";
@@ -8,7 +8,7 @@ import { useRef, useState, useEffect, useCallback, useMemo, createContext, useCo
8
8
  import "@1771technologies/react-dragon";
9
9
  import "@1771technologies/grid-core";
10
10
  import { c as useGrid, G as GridProvider } from "./useScrollLock-D4UY33Sb.js";
11
- 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-B_ah-_Qz.js";
11
+ 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-4WuPer3R.js";
12
12
  import { A as ArrowRightIcon } from "./tickmark-icon-CoogRMoO.js";
13
13
  import { A as ArrowDownIcon } from "./arrow-down-icon-B-3ldODD.js";
14
14
  import { D as DragIcon, M as MeasuresIcon, C as ColumnPivotIcon, R as RowGroupIcon } from "./row-group-icon-DFUMye0v.js";
@@ -888,6 +888,7 @@ function CellImpl({
888
888
  "data-lng1771-rowid": rowNode.id,
889
889
  "data-lng1771-rowindex": rowIndex,
890
890
  "data-lng1771-colindex": rowIndex,
891
+ "data-lng1771-type": column.type ?? "text",
891
892
  className: clsx(
892
893
  "lng1771-cell",
893
894
  rowIndex % 2 === 1 && "lng1771-cell--alternate",
@@ -1,8 +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
3
  import { c as useGrid, G as GridProvider } from "./useScrollLock-D4UY33Sb.js";
4
- import { S as Select } from "./select-IdBbnP3a.js";
5
- import { I as Input, C as Checkbox } from "./drag-store-BF4ad65L.js";
4
+ import { S as Select } from "./select-BvFdh0pg.js";
5
+ import { I as Input, C as Checkbox } from "./drag-store-Bspj4Kh0.js";
6
6
  import "@1771technologies/react-sizer";
7
7
  import "@1771technologies/react-utils";
8
8
  import "@1771technologies/grid-provider";
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { C as Checkbox, d as COLUMN_MARKER_ID, H as HEADER_CELL_POSITION, g as getTransform, e as COLUMN_EMPTY_PREFIX, f as HEADER_GROUP_CELL_POSITION, h as CollapseButton, F as FLOATING_CELL_POSITION, i as FULL_ENCODING, j as CellFullWidth, E as END_ENCODING, k as Cell, I as Input, G as GRID_CELL_POSITION, l as GridButton } from "./drag-store-BF4ad65L.js";
2
- import { t, n, v, w, B, J, L, K, M, q, p, r, s, P, x, o, z, m, y, R, A } from "./drag-store-BF4ad65L.js";
1
+ import { C as Checkbox, d as COLUMN_MARKER_ID, H as HEADER_CELL_POSITION, g as getTransform, e as COLUMN_EMPTY_PREFIX, f as HEADER_GROUP_CELL_POSITION, h as CollapseButton, F as FLOATING_CELL_POSITION, i as FULL_ENCODING, j as CellFullWidth, E as END_ENCODING, k as Cell, I as Input, G as GRID_CELL_POSITION, l as GridButton } from "./drag-store-Bspj4Kh0.js";
2
+ import { t, n, v, w, B, J, L, K, M, q, p, r, s, P, x, o, z, m, y, R, A } from "./drag-store-Bspj4Kh0.js";
3
3
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
4
4
  import { Sizer } from "@1771technologies/react-sizer";
5
5
  import { useEvent, useIsoEffect } from "@1771technologies/react-utils";
@@ -43,7 +43,8 @@ function useHeaderDisplayGridTemplate(levelsCount, headerHeight, groupHeaderHeig
43
43
  return gridTemplateRows;
44
44
  }
45
45
  function HeaderCellMarker({ api }) {
46
- const supportsSelectedAll = api.rowSelectionSelectAllSupported();
46
+ const mode = api.getState().rowSelectionMode.use() === "multiple";
47
+ const supportsSelectedAll = api.rowSelectionSelectAllSupported() && mode;
47
48
  const allSelected = api.rowSelectionAllRowsSelected();
48
49
  const selected = api.getState().rowSelectionSelectedIds.use();
49
50
  const someSelected = useMemo(() => {
@@ -1373,9 +1374,12 @@ function RowHoverDriver() {
1373
1374
  const hoveredRow = s3.state.internal.hoveredRow.use();
1374
1375
  if (hoveredRow == null) return;
1375
1376
  return /* @__PURE__ */ jsx("style", { children: `
1376
- #${gridId} > div > div > [aria-rowindex="${hoveredRow + 1}"] {
1377
+ #${gridId} > div > div > :not(.lng1771-cell--selected)[aria-rowindex="${hoveredRow + 1}"] {
1377
1378
  background-color: var(--lng1771-gray-10);
1378
1379
  }
1380
+ #${gridId} > div > div > .lng1771-cell--selected[aria-rowindex="${hoveredRow + 1}"] {
1381
+ background-color: var(--lng1771-primary-30);
1382
+ }
1379
1383
  ` });
1380
1384
  }
1381
1385
  function Viewport({
@@ -481,6 +481,10 @@ INPUT
481
481
  background-color: var(--lng1771-gray-00);
482
482
  }
483
483
 
484
+ [data-lng1771-type="number"] {
485
+ text-align: end;
486
+ }
487
+
484
488
  .lng1771-cell--alternate {
485
489
  background-color: var(--lng1771-gray-02);
486
490
  }
@@ -1750,7 +1754,8 @@ body.lng1771-drag-on .lng1771-pill-manager__pill-outer[data-pill-active="false"]
1750
1754
  --lng1771-pill-group-stroke: rgba(26, 255, 172, 0.35);
1751
1755
  --lng1771-pill-icon-color: var(--lng1771-gray-50);
1752
1756
  }
1753
- :root {
1757
+ :root,
1758
+ .light {
1754
1759
  --lng1771-primary-05: rgba(18, 108, 255, 0.05);
1755
1760
  --lng1771-primary-10: rgba(18, 108, 255, 0.1);
1756
1761
  --lng1771-primary-30: rgba(18, 108, 255, 0.3);
@@ -1784,7 +1789,9 @@ body.lng1771-drag-on .lng1771-pill-manager__pill-outer[data-pill-active="false"]
1784
1789
  --lng1771-pill-group-fill: #e6f8f2;
1785
1790
  --lng1771-pill-group-stroke: #a8d4c4;
1786
1791
  --lng1771-pill-icon-color: var(--lng1771-gray-50);
1792
+ }
1787
1793
 
1794
+ :root {
1788
1795
  --lng1771-typeface: "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
1789
1796
  "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
1790
1797
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { useRef, useState, useEffect, useCallback, useMemo, forwardRef } from "react";
3
- import { u as useDragStore, b as useStore } from "./drag-store-BF4ad65L.js";
3
+ import { u as useDragStore, b as useStore } from "./drag-store-Bspj4Kh0.js";
4
4
  import { arrayOverlap, clsx } from "@1771technologies/js-utils";
5
5
  import { m as mergeProps, E as contains, P as PropTypes } from "./proptypes-BjYr2nFr.js";
6
6
  import { u as useButton } from "./useButton-DWXzFgcr.js";
@@ -3,8 +3,8 @@ import { c as useGrid, G as GridProvider } from "./useScrollLock-D4UY33Sb.js";
3
3
  import { useMemo, createContext, useState, useContext, forwardRef, useEffect, useCallback } from "react";
4
4
  import { clsx } from "@1771technologies/js-utils";
5
5
  import { useDroppable as useDroppable$1 } from "@1771technologies/react-dragon";
6
- import { c as canAgg, a as canMeasure, u as useAggregationSource, b as useMeasuresSource, d as useRowGroupsSource, e as useColumnPivotSource, f as useDroppable, g as useEdgeScroll, P as Pill, M as MenuTrigger, h as useDraggable, i as PillManagerAggMenu, j as PillManagerMeasureMenu } from "./pill-B_ah-_Qz.js";
7
- import { u as useDragStore, a as useDrag, D as DragProvider } from "./drag-store-BF4ad65L.js";
6
+ import { c as canAgg, a as canMeasure, u as useAggregationSource, b as useMeasuresSource, d as useRowGroupsSource, e as useColumnPivotSource, f as useDroppable, g as useEdgeScroll, P as Pill, M as MenuTrigger, h as useDraggable, i as PillManagerAggMenu, j as PillManagerMeasureMenu } from "./pill-4WuPer3R.js";
7
+ import { u as useDragStore, a as useDrag, D as DragProvider } from "./drag-store-Bspj4Kh0.js";
8
8
  import "@1771technologies/react-sizer";
9
9
  import { useCombinedRefs } from "@1771technologies/react-utils";
10
10
  import "@1771technologies/grid-provider";
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { clsx } from "@1771technologies/js-utils";
3
3
  import { A as ArrowDownIcon } from "./arrow-down-icon-B-3ldODD.js";
4
- import { c as CheckMark } from "./drag-store-BF4ad65L.js";
4
+ import { c as CheckMark } from "./drag-store-Bspj4Kh0.js";
5
5
  import "@1771technologies/react-sizer";
6
6
  import "@1771technologies/react-utils";
7
7
  import "@1771technologies/grid-provider";
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { useMemo, useState, useEffect, createContext, useContext, forwardRef } from "react";
3
3
  import { c as useGrid, G as GridProvider } from "./useScrollLock-D4UY33Sb.js";
4
4
  import { clsx } from "@1771technologies/js-utils";
5
- import { S as Select } from "./select-IdBbnP3a.js";
5
+ import { S as Select } from "./select-BvFdh0pg.js";
6
6
  import { P as PlusIcon } from "./plus-icon-ToqW5CC-.js";
7
7
  import { C as CrossIcon } from "./cross-icon-CEMLAlFX.js";
8
8
  import { S as Separator } from "./separator-BnPPeAk8.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1771technologies/lytenyte-pro",
3
- "version": "0.0.76",
3
+ "version": "0.0.78",
4
4
  "license": "COMMERCIAL",
5
5
  "type": "module",
6
6
  "files": [
@@ -79,21 +79,21 @@
79
79
  "react-dom": "^18.0.0 || ^19.0.0"
80
80
  },
81
81
  "dependencies": {
82
- "@1771technologies/grid-client-data-source-pro": "0.0.76",
83
- "@1771technologies/grid-server-data-source": "0.0.76",
84
- "@1771technologies/grid-core": "0.0.76",
85
- "@1771technologies/grid-design": "0.0.76",
86
- "@1771technologies/grid-provider": "0.0.76",
87
- "@1771technologies/grid-store-pro": "0.0.76",
88
- "@1771technologies/grid-tree-data-source": "0.0.76",
89
- "@1771technologies/grid-types": "0.0.76",
90
- "@1771technologies/js-utils": "0.0.76",
91
- "@1771technologies/lytenyte-core": "0.0.76",
92
- "@1771technologies/react-cascada": "0.0.76",
93
- "@1771technologies/react-dragon": "0.0.76",
94
- "@1771technologies/react-sizer": "0.0.76",
95
- "@1771technologies/react-split-pane": "0.0.76",
96
- "@1771technologies/react-utils": "0.0.76",
82
+ "@1771technologies/grid-client-data-source-pro": "0.0.78",
83
+ "@1771technologies/grid-server-data-source": "0.0.78",
84
+ "@1771technologies/grid-core": "0.0.78",
85
+ "@1771technologies/grid-design": "0.0.78",
86
+ "@1771technologies/grid-provider": "0.0.78",
87
+ "@1771technologies/grid-store-pro": "0.0.78",
88
+ "@1771technologies/grid-tree-data-source": "0.0.78",
89
+ "@1771technologies/grid-types": "0.0.78",
90
+ "@1771technologies/js-utils": "0.0.78",
91
+ "@1771technologies/lytenyte-core": "0.0.78",
92
+ "@1771technologies/react-cascada": "0.0.78",
93
+ "@1771technologies/react-dragon": "0.0.78",
94
+ "@1771technologies/react-sizer": "0.0.78",
95
+ "@1771technologies/react-split-pane": "0.0.78",
96
+ "@1771technologies/react-utils": "0.0.78",
97
97
  "@base-ui-components/react": "1.0.0-alpha.7"
98
98
  },
99
99
  "devDependencies": {