eidos-ui 4.2.0 → 4.4.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/dist/{chunk-AMVA62UC.js → chunk-5IOT3QKC.js} +2 -2
- package/dist/{chunk-YEBWP7FD.cjs → chunk-CDHNAASM.cjs} +11 -11
- package/dist/{chunk-YEBWP7FD.cjs.map → chunk-CDHNAASM.cjs.map} +1 -1
- package/dist/{chunk-2LSQGDRH.js → chunk-EWCVMY7Q.js} +2 -2
- package/dist/{chunk-TUNG4IDW.cjs → chunk-HSXLSB5X.cjs} +3 -3
- package/dist/{chunk-TUNG4IDW.cjs.map → chunk-HSXLSB5X.cjs.map} +1 -1
- package/dist/{chunk-STVAB7FD.cjs → chunk-L5EZWBUT.cjs} +12 -12
- package/dist/{chunk-STVAB7FD.cjs.map → chunk-L5EZWBUT.cjs.map} +1 -1
- package/dist/{chunk-A7K53LDB.js → chunk-RYAWIDL3.js} +160 -65
- package/dist/chunk-RYAWIDL3.js.map +1 -0
- package/dist/{chunk-F2FGZFWF.js → chunk-YRE433X4.js} +2 -2
- package/dist/{chunk-J2GJGXGH.cjs → chunk-Z5B7OTPL.cjs} +162 -67
- package/dist/{chunk-J2GJGXGH.cjs.map → chunk-Z5B7OTPL.cjs.map} +1 -1
- package/dist/data-grid/index.cjs +4 -4
- package/dist/data-grid/index.js +3 -3
- package/dist/date-picker/index.cjs +2 -2
- package/dist/date-picker/index.d.cts +35 -2
- package/dist/date-picker/index.d.ts +35 -2
- package/dist/date-picker/index.js +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.css +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/table/index.cjs +4 -4
- package/dist/table/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-A7K53LDB.js.map +0 -1
- /package/dist/{chunk-AMVA62UC.js.map → chunk-5IOT3QKC.js.map} +0 -0
- /package/dist/{chunk-2LSQGDRH.js.map → chunk-EWCVMY7Q.js.map} +0 -0
- /package/dist/{chunk-F2FGZFWF.js.map → chunk-YRE433X4.js.map} +0 -0
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkHSXLSB5Xcjs = require('./chunk-HSXLSB5X.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkE7BFBU6Kcjs = require('./chunk-E7BFBU6K.cjs');
|
|
@@ -91,7 +91,7 @@ function SortableTableRow({
|
|
|
91
91
|
className,
|
|
92
92
|
children
|
|
93
93
|
}) {
|
|
94
|
-
const { attributes, listeners, setNodeRef, transform, transition, isDragging } =
|
|
94
|
+
const { attributes, listeners, setNodeRef, transform, transition, isDragging } = _chunkHSXLSB5Xcjs.useSortable.call(void 0, {
|
|
95
95
|
id,
|
|
96
96
|
disabled
|
|
97
97
|
});
|
|
@@ -101,7 +101,7 @@ function SortableTableRow({
|
|
|
101
101
|
ref: setNodeRef,
|
|
102
102
|
className: [className, isDragging ? "eidos-datagrid-row--dragging" : ""].filter(Boolean).join(" "),
|
|
103
103
|
style: {
|
|
104
|
-
transform:
|
|
104
|
+
transform: _chunkHSXLSB5Xcjs.CSS.Transform.toString(transform),
|
|
105
105
|
transition: _nullishCoalesce(transition, () => ( void 0)),
|
|
106
106
|
opacity: isDragging ? 0.4 : 1
|
|
107
107
|
},
|
|
@@ -817,9 +817,9 @@ function DataGridInner({
|
|
|
817
817
|
},
|
|
818
818
|
[onPageChange]
|
|
819
819
|
);
|
|
820
|
-
const sensors =
|
|
821
|
-
|
|
822
|
-
|
|
820
|
+
const sensors = _chunkHSXLSB5Xcjs.useSensors.call(void 0,
|
|
821
|
+
_chunkHSXLSB5Xcjs.useSensor.call(void 0, _chunkHSXLSB5Xcjs.PointerSensor, { activationConstraint: { distance: 5 } }),
|
|
822
|
+
_chunkHSXLSB5Xcjs.useSensor.call(void 0, _chunkHSXLSB5Xcjs.KeyboardSensor)
|
|
823
823
|
);
|
|
824
824
|
const handleRowDragEnd = _react.useCallback.call(void 0,
|
|
825
825
|
(event) => {
|
|
@@ -833,7 +833,7 @@ function DataGridInner({
|
|
|
833
833
|
(row, i) => String(_nullishCoalesce(cellOf(row, rowKeyField), () => ( i))) === String(over.id)
|
|
834
834
|
);
|
|
835
835
|
if (oldIndex === -1 || newIndex === -1) return;
|
|
836
|
-
const newData =
|
|
836
|
+
const newData = _chunkHSXLSB5Xcjs.arrayMove.call(void 0, localDataRef.current, oldIndex, newIndex);
|
|
837
837
|
setLocalData(newData);
|
|
838
838
|
_optionalChain([onChange, 'optionalCall', _23 => _23(newData)]);
|
|
839
839
|
_optionalChain([onRowReorder, 'optionalCall', _24 => _24(newData)]);
|
|
@@ -1263,7 +1263,7 @@ function DataGridInner({
|
|
|
1263
1263
|
}
|
|
1264
1264
|
),
|
|
1265
1265
|
showFilters && filterDropdownColumns.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1266
|
-
|
|
1266
|
+
_chunkHSXLSB5Xcjs.TableFiltersDropdown,
|
|
1267
1267
|
{
|
|
1268
1268
|
columns: filterDropdownColumns,
|
|
1269
1269
|
filters: dropdownFilters,
|
|
@@ -1389,10 +1389,10 @@ function DataGridInner({
|
|
|
1389
1389
|
}
|
|
1390
1390
|
)
|
|
1391
1391
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1392
|
-
|
|
1392
|
+
_chunkHSXLSB5Xcjs.DndContext,
|
|
1393
1393
|
{
|
|
1394
1394
|
sensors,
|
|
1395
|
-
collisionDetection:
|
|
1395
|
+
collisionDetection: _chunkHSXLSB5Xcjs.closestCenter,
|
|
1396
1396
|
onDragEnd: handleRowDragEnd,
|
|
1397
1397
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "eidos-data-grid-scroll", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "table", { className: ["eidos-data-grid", densityClass].filter(Boolean).join(" "), children: [
|
|
1398
1398
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { ref: theadRef, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { children: [
|
|
@@ -1499,7 +1499,7 @@ function DataGridInner({
|
|
|
1499
1499
|
}
|
|
1500
1500
|
)
|
|
1501
1501
|
] }) }),
|
|
1502
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1502
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tbody", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHSXLSB5Xcjs.SortableContext, { items: rowIds, strategy: _chunkHSXLSB5Xcjs.verticalListSortingStrategy, children: displayData.length > 0 ? displayData.map((row, displayIndex) => {
|
|
1503
1503
|
const localIndex = localData.indexOf(row);
|
|
1504
1504
|
const rowKeyValue = String(_nullishCoalesce(cellOf(row, rowKeyField), () => ( displayIndex)));
|
|
1505
1505
|
const isRowSelected = selectable && selectedSet.has(rowKeyValue);
|
|
@@ -1725,4 +1725,4 @@ var DataGrid = Object.assign(DataGridInner, { displayName: "DataGrid" });
|
|
|
1725
1725
|
|
|
1726
1726
|
|
|
1727
1727
|
exports.DataGrid = DataGrid;
|
|
1728
|
-
//# sourceMappingURL=chunk-
|
|
1728
|
+
//# sourceMappingURL=chunk-L5EZWBUT.cjs.map
|