@infinite-table/infinite-react 5.0.0-canary.4 → 5.0.0-canary.6
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.dev.js +28 -16
- package/index.dev.mjs +28 -16
- package/index.js +28 -16
- package/index.mjs +28 -16
- package/package.json +2 -2
package/index.dev.js
CHANGED
|
@@ -8289,24 +8289,25 @@ function getColumnRenderingParams(options) {
|
|
|
8289
8289
|
});
|
|
8290
8290
|
const { getState } = context;
|
|
8291
8291
|
const { editingCell } = getState();
|
|
8292
|
-
const formattedResult = getFormattedValueContextForCell(
|
|
8293
|
-
// column: groupByColumnReference || column,
|
|
8294
|
-
column
|
|
8295
|
-
}));
|
|
8292
|
+
const formattedResult = getFormattedValueContextForCell(options);
|
|
8296
8293
|
const { formattedValueContext } = formattedResult;
|
|
8297
8294
|
const inEdit = context.api.isEditorVisibleForCell({
|
|
8298
8295
|
columnId: column.id,
|
|
8299
8296
|
rowIndex: rowInfo.indexInAll
|
|
8300
8297
|
});
|
|
8301
|
-
const stylingParam =
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8298
|
+
const stylingParam = Object.assign(
|
|
8299
|
+
{
|
|
8300
|
+
rowIndexInHorizontalLayoutPage: options.rowIndexInHorizontalLayoutPage,
|
|
8301
|
+
horizontalLayoutPageIndex: options.horizontalLayoutPageIndex,
|
|
8302
|
+
column: options.column,
|
|
8303
|
+
inEdit,
|
|
8304
|
+
rowHasSelectedCells: false
|
|
8305
|
+
},
|
|
8306
|
+
formattedValueContext,
|
|
8307
|
+
{
|
|
8308
|
+
editError: editingCell && editingCell.primaryKey === rowInfo.id && editingCell.columnId === column.id && !editingCell.active && editingCell.accepted instanceof Error ? editingCell.accepted : void 0
|
|
8309
|
+
}
|
|
8310
|
+
);
|
|
8310
8311
|
Object.defineProperty(stylingParam, "rowHasSelectedCells", {
|
|
8311
8312
|
get() {
|
|
8312
8313
|
return rowInfo.hasSelectedCells(visibleColumnsIds);
|
|
@@ -8326,11 +8327,22 @@ function getColumnRenderingParams(options) {
|
|
|
8326
8327
|
renderGroupValue: column.renderGroupValue || (groupByColumnReference == null ? void 0 : groupByColumnReference.renderGroupValue),
|
|
8327
8328
|
renderLeafValue: column.renderLeafValue || (groupByColumnReference == null ? void 0 : groupByColumnReference.renderLeafValue)
|
|
8328
8329
|
},
|
|
8329
|
-
renderParams: getColumnRenderParam(
|
|
8330
|
+
renderParams: getColumnRenderParam({
|
|
8331
|
+
// prefer this over spreading the options object
|
|
8332
|
+
// for better performance
|
|
8333
|
+
rowIndexInHorizontalLayoutPage: options.rowIndexInHorizontalLayoutPage,
|
|
8334
|
+
horizontalLayoutPageIndex: options.horizontalLayoutPageIndex,
|
|
8335
|
+
column: options.column,
|
|
8336
|
+
rowInfo: options.rowInfo,
|
|
8337
|
+
visibleColumnsIds: options.visibleColumnsIds,
|
|
8338
|
+
columnsMap: options.columnsMap,
|
|
8339
|
+
fieldsToColumn: options.fieldsToColumn,
|
|
8340
|
+
context: options.context,
|
|
8341
|
+
// override the following:
|
|
8330
8342
|
align: align2,
|
|
8331
8343
|
verticalAlign,
|
|
8332
8344
|
formattedValueContext
|
|
8333
|
-
})
|
|
8345
|
+
}),
|
|
8334
8346
|
groupByColumnReference
|
|
8335
8347
|
};
|
|
8336
8348
|
}
|
|
@@ -19855,7 +19867,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
19855
19867
|
}
|
|
19856
19868
|
let valid2 = isValidLicense(licenseKey, {
|
|
19857
19869
|
publishedAt: 1624970570587,
|
|
19858
|
-
version: "5.0.0-canary.
|
|
19870
|
+
version: "5.0.0-canary.6"
|
|
19859
19871
|
});
|
|
19860
19872
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
19861
19873
|
return true;
|
package/index.dev.mjs
CHANGED
|
@@ -8246,24 +8246,25 @@ function getColumnRenderingParams(options) {
|
|
|
8246
8246
|
});
|
|
8247
8247
|
const { getState } = context;
|
|
8248
8248
|
const { editingCell } = getState();
|
|
8249
|
-
const formattedResult = getFormattedValueContextForCell(
|
|
8250
|
-
// column: groupByColumnReference || column,
|
|
8251
|
-
column
|
|
8252
|
-
}));
|
|
8249
|
+
const formattedResult = getFormattedValueContextForCell(options);
|
|
8253
8250
|
const { formattedValueContext } = formattedResult;
|
|
8254
8251
|
const inEdit = context.api.isEditorVisibleForCell({
|
|
8255
8252
|
columnId: column.id,
|
|
8256
8253
|
rowIndex: rowInfo.indexInAll
|
|
8257
8254
|
});
|
|
8258
|
-
const stylingParam =
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8255
|
+
const stylingParam = Object.assign(
|
|
8256
|
+
{
|
|
8257
|
+
rowIndexInHorizontalLayoutPage: options.rowIndexInHorizontalLayoutPage,
|
|
8258
|
+
horizontalLayoutPageIndex: options.horizontalLayoutPageIndex,
|
|
8259
|
+
column: options.column,
|
|
8260
|
+
inEdit,
|
|
8261
|
+
rowHasSelectedCells: false
|
|
8262
|
+
},
|
|
8263
|
+
formattedValueContext,
|
|
8264
|
+
{
|
|
8265
|
+
editError: editingCell && editingCell.primaryKey === rowInfo.id && editingCell.columnId === column.id && !editingCell.active && editingCell.accepted instanceof Error ? editingCell.accepted : void 0
|
|
8266
|
+
}
|
|
8267
|
+
);
|
|
8267
8268
|
Object.defineProperty(stylingParam, "rowHasSelectedCells", {
|
|
8268
8269
|
get() {
|
|
8269
8270
|
return rowInfo.hasSelectedCells(visibleColumnsIds);
|
|
@@ -8283,11 +8284,22 @@ function getColumnRenderingParams(options) {
|
|
|
8283
8284
|
renderGroupValue: column.renderGroupValue || (groupByColumnReference == null ? void 0 : groupByColumnReference.renderGroupValue),
|
|
8284
8285
|
renderLeafValue: column.renderLeafValue || (groupByColumnReference == null ? void 0 : groupByColumnReference.renderLeafValue)
|
|
8285
8286
|
},
|
|
8286
|
-
renderParams: getColumnRenderParam(
|
|
8287
|
+
renderParams: getColumnRenderParam({
|
|
8288
|
+
// prefer this over spreading the options object
|
|
8289
|
+
// for better performance
|
|
8290
|
+
rowIndexInHorizontalLayoutPage: options.rowIndexInHorizontalLayoutPage,
|
|
8291
|
+
horizontalLayoutPageIndex: options.horizontalLayoutPageIndex,
|
|
8292
|
+
column: options.column,
|
|
8293
|
+
rowInfo: options.rowInfo,
|
|
8294
|
+
visibleColumnsIds: options.visibleColumnsIds,
|
|
8295
|
+
columnsMap: options.columnsMap,
|
|
8296
|
+
fieldsToColumn: options.fieldsToColumn,
|
|
8297
|
+
context: options.context,
|
|
8298
|
+
// override the following:
|
|
8287
8299
|
align: align2,
|
|
8288
8300
|
verticalAlign,
|
|
8289
8301
|
formattedValueContext
|
|
8290
|
-
})
|
|
8302
|
+
}),
|
|
8291
8303
|
groupByColumnReference
|
|
8292
8304
|
};
|
|
8293
8305
|
}
|
|
@@ -19821,7 +19833,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
19821
19833
|
}
|
|
19822
19834
|
let valid2 = isValidLicense(licenseKey, {
|
|
19823
19835
|
publishedAt: 1624970570587,
|
|
19824
|
-
version: "5.0.0-canary.
|
|
19836
|
+
version: "5.0.0-canary.6"
|
|
19825
19837
|
});
|
|
19826
19838
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
19827
19839
|
return true;
|
package/index.js
CHANGED
|
@@ -8289,24 +8289,25 @@ function getColumnRenderingParams(options) {
|
|
|
8289
8289
|
});
|
|
8290
8290
|
const { getState } = context;
|
|
8291
8291
|
const { editingCell } = getState();
|
|
8292
|
-
const formattedResult = getFormattedValueContextForCell(
|
|
8293
|
-
// column: groupByColumnReference || column,
|
|
8294
|
-
column
|
|
8295
|
-
}));
|
|
8292
|
+
const formattedResult = getFormattedValueContextForCell(options);
|
|
8296
8293
|
const { formattedValueContext } = formattedResult;
|
|
8297
8294
|
const inEdit = context.api.isEditorVisibleForCell({
|
|
8298
8295
|
columnId: column.id,
|
|
8299
8296
|
rowIndex: rowInfo.indexInAll
|
|
8300
8297
|
});
|
|
8301
|
-
const stylingParam =
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8298
|
+
const stylingParam = Object.assign(
|
|
8299
|
+
{
|
|
8300
|
+
rowIndexInHorizontalLayoutPage: options.rowIndexInHorizontalLayoutPage,
|
|
8301
|
+
horizontalLayoutPageIndex: options.horizontalLayoutPageIndex,
|
|
8302
|
+
column: options.column,
|
|
8303
|
+
inEdit,
|
|
8304
|
+
rowHasSelectedCells: false
|
|
8305
|
+
},
|
|
8306
|
+
formattedValueContext,
|
|
8307
|
+
{
|
|
8308
|
+
editError: editingCell && editingCell.primaryKey === rowInfo.id && editingCell.columnId === column.id && !editingCell.active && editingCell.accepted instanceof Error ? editingCell.accepted : void 0
|
|
8309
|
+
}
|
|
8310
|
+
);
|
|
8310
8311
|
Object.defineProperty(stylingParam, "rowHasSelectedCells", {
|
|
8311
8312
|
get() {
|
|
8312
8313
|
return rowInfo.hasSelectedCells(visibleColumnsIds);
|
|
@@ -8326,11 +8327,22 @@ function getColumnRenderingParams(options) {
|
|
|
8326
8327
|
renderGroupValue: column.renderGroupValue || (groupByColumnReference == null ? void 0 : groupByColumnReference.renderGroupValue),
|
|
8327
8328
|
renderLeafValue: column.renderLeafValue || (groupByColumnReference == null ? void 0 : groupByColumnReference.renderLeafValue)
|
|
8328
8329
|
},
|
|
8329
|
-
renderParams: getColumnRenderParam(
|
|
8330
|
+
renderParams: getColumnRenderParam({
|
|
8331
|
+
// prefer this over spreading the options object
|
|
8332
|
+
// for better performance
|
|
8333
|
+
rowIndexInHorizontalLayoutPage: options.rowIndexInHorizontalLayoutPage,
|
|
8334
|
+
horizontalLayoutPageIndex: options.horizontalLayoutPageIndex,
|
|
8335
|
+
column: options.column,
|
|
8336
|
+
rowInfo: options.rowInfo,
|
|
8337
|
+
visibleColumnsIds: options.visibleColumnsIds,
|
|
8338
|
+
columnsMap: options.columnsMap,
|
|
8339
|
+
fieldsToColumn: options.fieldsToColumn,
|
|
8340
|
+
context: options.context,
|
|
8341
|
+
// override the following:
|
|
8330
8342
|
align: align2,
|
|
8331
8343
|
verticalAlign,
|
|
8332
8344
|
formattedValueContext
|
|
8333
|
-
})
|
|
8345
|
+
}),
|
|
8334
8346
|
groupByColumnReference
|
|
8335
8347
|
};
|
|
8336
8348
|
}
|
|
@@ -19855,7 +19867,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
19855
19867
|
}
|
|
19856
19868
|
let valid2 = isValidLicense(licenseKey, {
|
|
19857
19869
|
publishedAt: 1624970570587,
|
|
19858
|
-
version: "5.0.0-canary.
|
|
19870
|
+
version: "5.0.0-canary.6"
|
|
19859
19871
|
});
|
|
19860
19872
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
19861
19873
|
return true;
|
package/index.mjs
CHANGED
|
@@ -8246,24 +8246,25 @@ function getColumnRenderingParams(options) {
|
|
|
8246
8246
|
});
|
|
8247
8247
|
const { getState } = context;
|
|
8248
8248
|
const { editingCell } = getState();
|
|
8249
|
-
const formattedResult = getFormattedValueContextForCell(
|
|
8250
|
-
// column: groupByColumnReference || column,
|
|
8251
|
-
column
|
|
8252
|
-
}));
|
|
8249
|
+
const formattedResult = getFormattedValueContextForCell(options);
|
|
8253
8250
|
const { formattedValueContext } = formattedResult;
|
|
8254
8251
|
const inEdit = context.api.isEditorVisibleForCell({
|
|
8255
8252
|
columnId: column.id,
|
|
8256
8253
|
rowIndex: rowInfo.indexInAll
|
|
8257
8254
|
});
|
|
8258
|
-
const stylingParam =
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8255
|
+
const stylingParam = Object.assign(
|
|
8256
|
+
{
|
|
8257
|
+
rowIndexInHorizontalLayoutPage: options.rowIndexInHorizontalLayoutPage,
|
|
8258
|
+
horizontalLayoutPageIndex: options.horizontalLayoutPageIndex,
|
|
8259
|
+
column: options.column,
|
|
8260
|
+
inEdit,
|
|
8261
|
+
rowHasSelectedCells: false
|
|
8262
|
+
},
|
|
8263
|
+
formattedValueContext,
|
|
8264
|
+
{
|
|
8265
|
+
editError: editingCell && editingCell.primaryKey === rowInfo.id && editingCell.columnId === column.id && !editingCell.active && editingCell.accepted instanceof Error ? editingCell.accepted : void 0
|
|
8266
|
+
}
|
|
8267
|
+
);
|
|
8267
8268
|
Object.defineProperty(stylingParam, "rowHasSelectedCells", {
|
|
8268
8269
|
get() {
|
|
8269
8270
|
return rowInfo.hasSelectedCells(visibleColumnsIds);
|
|
@@ -8283,11 +8284,22 @@ function getColumnRenderingParams(options) {
|
|
|
8283
8284
|
renderGroupValue: column.renderGroupValue || (groupByColumnReference == null ? void 0 : groupByColumnReference.renderGroupValue),
|
|
8284
8285
|
renderLeafValue: column.renderLeafValue || (groupByColumnReference == null ? void 0 : groupByColumnReference.renderLeafValue)
|
|
8285
8286
|
},
|
|
8286
|
-
renderParams: getColumnRenderParam(
|
|
8287
|
+
renderParams: getColumnRenderParam({
|
|
8288
|
+
// prefer this over spreading the options object
|
|
8289
|
+
// for better performance
|
|
8290
|
+
rowIndexInHorizontalLayoutPage: options.rowIndexInHorizontalLayoutPage,
|
|
8291
|
+
horizontalLayoutPageIndex: options.horizontalLayoutPageIndex,
|
|
8292
|
+
column: options.column,
|
|
8293
|
+
rowInfo: options.rowInfo,
|
|
8294
|
+
visibleColumnsIds: options.visibleColumnsIds,
|
|
8295
|
+
columnsMap: options.columnsMap,
|
|
8296
|
+
fieldsToColumn: options.fieldsToColumn,
|
|
8297
|
+
context: options.context,
|
|
8298
|
+
// override the following:
|
|
8287
8299
|
align: align2,
|
|
8288
8300
|
verticalAlign,
|
|
8289
8301
|
formattedValueContext
|
|
8290
|
-
})
|
|
8302
|
+
}),
|
|
8291
8303
|
groupByColumnReference
|
|
8292
8304
|
};
|
|
8293
8305
|
}
|
|
@@ -19821,7 +19833,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
19821
19833
|
}
|
|
19822
19834
|
let valid2 = isValidLicense(licenseKey, {
|
|
19823
19835
|
publishedAt: 1624970570587,
|
|
19824
|
-
version: "5.0.0-canary.
|
|
19836
|
+
version: "5.0.0-canary.6"
|
|
19825
19837
|
});
|
|
19826
19838
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
19827
19839
|
return true;
|
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"bugs": {
|
|
26
26
|
"url": "https://github.com/infinite-table/infinite-react/issues"
|
|
27
27
|
},
|
|
28
|
-
"version": "5.0.0-canary.
|
|
28
|
+
"version": "5.0.0-canary.6",
|
|
29
29
|
"main": "index.js",
|
|
30
30
|
"module": "index.mjs",
|
|
31
31
|
"typings": "index.d.ts",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
},
|
|
35
35
|
"license": "Commercial & Open Source",
|
|
36
36
|
"//": "will be updated at build time",
|
|
37
|
-
"publishedAt":
|
|
37
|
+
"publishedAt": 1727301903777
|
|
38
38
|
}
|