@infinite-table/infinite-react 2.0.0 → 2.0.1
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/index.d.ts +4 -4
- package/index.dev.js +10 -4
- package/index.dev.mjs +10 -4
- package/index.js +5 -5
- package/index.mjs +5 -5
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -2560,8 +2560,8 @@ declare type InfiniteTableRowInfoDataDiscriminatorWithColumnAndApis<T> = {
|
|
|
2560
2560
|
api: InfiniteTableApi<T>;
|
|
2561
2561
|
dataSourceApi: DataSourceApi<T>;
|
|
2562
2562
|
} & InfiniteTableRowInfoDataDiscriminatorWithColumn<T>;
|
|
2563
|
-
declare type
|
|
2564
|
-
declare type
|
|
2563
|
+
declare type InfiniteTablePropEditable<T> = InfiniteTableColumnEditableFn<T> | undefined;
|
|
2564
|
+
declare type InfiniteTablePropSortable<T> = InfiniteTableColumnSortable<T> | undefined;
|
|
2565
2565
|
declare type InfiniteTablePropOnEditAcceptedParams<T> = InfiniteTableRowInfoDataDiscriminatorWithColumnAndApis<T> & {
|
|
2566
2566
|
initialValue: any;
|
|
2567
2567
|
};
|
|
@@ -2593,11 +2593,11 @@ interface InfiniteTableProps<T> {
|
|
|
2593
2593
|
* This overrides both the global `columnDefaultSortable` prop and the column's own `defaultSortable` prop.
|
|
2594
2594
|
* When used, it's the ultimate source of truth for whether (and which) columns are sortable.
|
|
2595
2595
|
*/
|
|
2596
|
-
sortable?:
|
|
2596
|
+
sortable?: InfiniteTablePropSortable<T>;
|
|
2597
2597
|
/**
|
|
2598
2598
|
* This overrides both the global `columnDefaultEditable` prop and the column's own `defaultEditable` prop.
|
|
2599
2599
|
*/
|
|
2600
|
-
editable?:
|
|
2600
|
+
editable?: InfiniteTablePropEditable<T>;
|
|
2601
2601
|
pivotTotalColumnPosition?: InfiniteTablePropPivotTotalColumnPosition;
|
|
2602
2602
|
pivotGrandTotalColumnPosition?: InfiniteTablePropPivotGrandTotalColumnPosition;
|
|
2603
2603
|
groupColumn?: InfiniteTablePropGroupColumn<T>;
|
package/index.dev.js
CHANGED
|
@@ -9070,11 +9070,14 @@ var columnZIndexAtIndex5 = stripVar(InternalVars.columnZIndexAtIndex);
|
|
|
9070
9070
|
var spacer = /* @__PURE__ */ React42.createElement("div", { className: flex["1"] });
|
|
9071
9071
|
var InfiniteHeaderCellDataAttributes = keyMirror({
|
|
9072
9072
|
"data-name": ``,
|
|
9073
|
+
"data-field": ``,
|
|
9073
9074
|
"data-header-align": "",
|
|
9074
|
-
"data-column-id": ""
|
|
9075
|
+
"data-column-id": "",
|
|
9076
|
+
"data-sort": "",
|
|
9077
|
+
"data-sort-index": ""
|
|
9075
9078
|
});
|
|
9076
9079
|
function InfiniteTableHeaderCell(props) {
|
|
9077
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
9080
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
9078
9081
|
const column = props.column;
|
|
9079
9082
|
const {
|
|
9080
9083
|
api,
|
|
@@ -9353,9 +9356,12 @@ function InfiniteTableHeaderCell(props) {
|
|
|
9353
9356
|
const zIndex2 = `var(${columnZIndexAtIndex5}-${column.computedVisibleIndex})`;
|
|
9354
9357
|
style2.zIndex = zIndex2;
|
|
9355
9358
|
const dataAttrs = {
|
|
9359
|
+
"data-field": `${column.field || ""}`,
|
|
9356
9360
|
"data-column-id": column.id,
|
|
9357
9361
|
"data-header-align": align2,
|
|
9358
|
-
"data-name": "HeaderCell"
|
|
9362
|
+
"data-name": "HeaderCell",
|
|
9363
|
+
"data-sort": column.computedSortedAsc ? "asc" : column.computedSortedDesc ? "desc" : "none",
|
|
9364
|
+
"data-sort-index": `${(_p = column.computedSortIndex) != null ? _p : -1}`
|
|
9359
9365
|
};
|
|
9360
9366
|
return /* @__PURE__ */ React42.createElement(ContextProvider, { value: renderParam }, /* @__PURE__ */ React42.createElement(
|
|
9361
9367
|
InfiniteTableCell,
|
|
@@ -16750,7 +16756,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
16750
16756
|
const valid = (0, import_react49.useMemo)(() => {
|
|
16751
16757
|
let valid2 = isValidLicense(licenseKey, {
|
|
16752
16758
|
publishedAt: 1624970570587,
|
|
16753
|
-
version: "2.0.
|
|
16759
|
+
version: "2.0.1"
|
|
16754
16760
|
});
|
|
16755
16761
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
16756
16762
|
return true;
|
package/index.dev.mjs
CHANGED
|
@@ -9056,11 +9056,14 @@ var columnZIndexAtIndex5 = stripVar(InternalVars.columnZIndexAtIndex);
|
|
|
9056
9056
|
var spacer = /* @__PURE__ */ React42.createElement("div", { className: flex["1"] });
|
|
9057
9057
|
var InfiniteHeaderCellDataAttributes = keyMirror({
|
|
9058
9058
|
"data-name": ``,
|
|
9059
|
+
"data-field": ``,
|
|
9059
9060
|
"data-header-align": "",
|
|
9060
|
-
"data-column-id": ""
|
|
9061
|
+
"data-column-id": "",
|
|
9062
|
+
"data-sort": "",
|
|
9063
|
+
"data-sort-index": ""
|
|
9061
9064
|
});
|
|
9062
9065
|
function InfiniteTableHeaderCell(props) {
|
|
9063
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
9066
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
9064
9067
|
const column = props.column;
|
|
9065
9068
|
const {
|
|
9066
9069
|
api,
|
|
@@ -9339,9 +9342,12 @@ function InfiniteTableHeaderCell(props) {
|
|
|
9339
9342
|
const zIndex2 = `var(${columnZIndexAtIndex5}-${column.computedVisibleIndex})`;
|
|
9340
9343
|
style2.zIndex = zIndex2;
|
|
9341
9344
|
const dataAttrs = {
|
|
9345
|
+
"data-field": `${column.field || ""}`,
|
|
9342
9346
|
"data-column-id": column.id,
|
|
9343
9347
|
"data-header-align": align2,
|
|
9344
|
-
"data-name": "HeaderCell"
|
|
9348
|
+
"data-name": "HeaderCell",
|
|
9349
|
+
"data-sort": column.computedSortedAsc ? "asc" : column.computedSortedDesc ? "desc" : "none",
|
|
9350
|
+
"data-sort-index": `${(_p = column.computedSortIndex) != null ? _p : -1}`
|
|
9345
9351
|
};
|
|
9346
9352
|
return /* @__PURE__ */ React42.createElement(ContextProvider, { value: renderParam }, /* @__PURE__ */ React42.createElement(
|
|
9347
9353
|
InfiniteTableCell,
|
|
@@ -16740,7 +16746,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
16740
16746
|
const valid = useMemo11(() => {
|
|
16741
16747
|
let valid2 = isValidLicense(licenseKey, {
|
|
16742
16748
|
publishedAt: 1624970570587,
|
|
16743
|
-
version: "2.0.
|
|
16749
|
+
version: "2.0.1"
|
|
16744
16750
|
});
|
|
16745
16751
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
16746
16752
|
return true;
|