@alaarab/ogrid-react-fluent 2.1.11 → 2.1.13
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/esm/index.css +9 -7
- package/dist/esm/index.js +5 -3
- package/package.json +2 -2
package/dist/esm/index.css
CHANGED
|
@@ -426,15 +426,15 @@
|
|
|
426
426
|
.ogrid-fluent__DataGridTable-module__tableWidthAnchor {
|
|
427
427
|
position: relative;
|
|
428
428
|
width: max-content;
|
|
429
|
-
min-width:
|
|
430
|
-
overflow: clip;
|
|
429
|
+
min-width: var(--data-table-min-width, max-content);
|
|
431
430
|
background: var(--ogrid-bg, #fff);
|
|
431
|
+
overflow-x: clip;
|
|
432
432
|
}
|
|
433
433
|
.ogrid-fluent__DataGridTable-module__tableWrapper {
|
|
434
434
|
position: relative;
|
|
435
435
|
flex: 1;
|
|
436
436
|
min-height: 0;
|
|
437
|
-
overflow-x:
|
|
437
|
+
overflow-x: hidden;
|
|
438
438
|
overflow-y: auto;
|
|
439
439
|
width: 100%;
|
|
440
440
|
min-width: 0;
|
|
@@ -443,8 +443,8 @@
|
|
|
443
443
|
background: var(--ogrid-bg, #fff);
|
|
444
444
|
will-change: scroll-position;
|
|
445
445
|
}
|
|
446
|
-
.ogrid-fluent__DataGridTable-module__tableWrapper[data-
|
|
447
|
-
overflow-x:
|
|
446
|
+
.ogrid-fluent__DataGridTable-module__tableWrapper[data-overflow-x=true] {
|
|
447
|
+
overflow-x: auto;
|
|
448
448
|
}
|
|
449
449
|
.ogrid-fluent__DataGridTable-module__tableWrapper[data-empty=true] {
|
|
450
450
|
overflow-x: hidden;
|
|
@@ -453,8 +453,9 @@
|
|
|
453
453
|
min-height: 200px;
|
|
454
454
|
}
|
|
455
455
|
.ogrid-fluent__DataGridTable-module__dataTable {
|
|
456
|
-
width: var(--data-table-width,
|
|
457
|
-
|
|
456
|
+
width: var(--data-table-width, fit-content);
|
|
457
|
+
max-width: 100%;
|
|
458
|
+
min-width: var(--data-table-min-width, max-content);
|
|
458
459
|
border-collapse: separate;
|
|
459
460
|
border-spacing: 0;
|
|
460
461
|
box-sizing: border-box;
|
|
@@ -957,6 +958,7 @@
|
|
|
957
958
|
}
|
|
958
959
|
.ogrid-fluent__DataGridTable-module__tableWidthAnchor {
|
|
959
960
|
background-color: var(--colorNeutralBackground1, var(--ogrid-bg, #ffffff));
|
|
961
|
+
overflow-x: clip;
|
|
960
962
|
}
|
|
961
963
|
.ogrid-fluent__DataGridTable-module__tableWrapper {
|
|
962
964
|
border: none;
|
package/dist/esm/index.js
CHANGED
|
@@ -625,7 +625,7 @@ function DataGridTableInner(props) {
|
|
|
625
625
|
rowHeight,
|
|
626
626
|
rowNumberOffset,
|
|
627
627
|
headerRows,
|
|
628
|
-
allowOverflowX
|
|
628
|
+
allowOverflowX,
|
|
629
629
|
fitToContent,
|
|
630
630
|
editCallbacks,
|
|
631
631
|
interactionHandlers,
|
|
@@ -765,7 +765,7 @@ function DataGridTableInner(props) {
|
|
|
765
765
|
"data-empty": showEmptyInGrid ? "true" : void 0,
|
|
766
766
|
"data-loading": isLoading && items.length === 0 ? "true" : void 0,
|
|
767
767
|
"data-column-count": totalColCount,
|
|
768
|
-
"data-
|
|
768
|
+
"data-overflow-x": allowOverflowX ? "true" : "false",
|
|
769
769
|
"data-container-width": containerWidth,
|
|
770
770
|
"data-min-table-width": Math.round(minTableWidth),
|
|
771
771
|
"data-has-selection": rowSelection !== "none" ? "true" : void 0,
|
|
@@ -773,7 +773,9 @@ function DataGridTableInner(props) {
|
|
|
773
773
|
onKeyDown: handleGridKeyDown,
|
|
774
774
|
style: {
|
|
775
775
|
["--data-table-column-count"]: totalColCount,
|
|
776
|
-
["--data-table-width"]: showEmptyInGrid ? "100%" : fitToContent ? "fit-content" : "100%",
|
|
776
|
+
["--data-table-width"]: showEmptyInGrid ? "100%" : allowOverflowX ? "fit-content" : fitToContent ? "fit-content" : "100%",
|
|
777
|
+
["--data-table-min-width"]: showEmptyInGrid ? "100%" : allowOverflowX ? "max-content" : fitToContent ? "max-content" : "100%",
|
|
778
|
+
["--data-table-total-min-width"]: `${minTableWidth}px`,
|
|
777
779
|
...rowHeight ? { ["--ogrid-row-height"]: `${rowHeight}px` } : {}
|
|
778
780
|
},
|
|
779
781
|
children: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alaarab/ogrid-react-fluent",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.13",
|
|
4
4
|
"description": "OGrid React Fluent implementation – DataGrid-powered data table with sorting, filtering, pagination, column chooser, and CSV export.",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"node": ">=18"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@alaarab/ogrid-react": "2.1.
|
|
44
|
+
"@alaarab/ogrid-react": "2.1.13"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@fluentui/react-components": "^9.0.0",
|