@infinite-table/infinite-react 9.1.3 → 9.1.4
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 +5 -4
- package/index.dev.mjs +5 -4
- package/index.js +6 -6
- package/index.mjs +6 -6
- package/package.json +2 -2
package/index.dev.js
CHANGED
|
@@ -27893,7 +27893,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
27893
27893
|
}
|
|
27894
27894
|
let valid2 = isValidLicense(licenseKey, {
|
|
27895
27895
|
publishedAt: 1624970570587,
|
|
27896
|
-
version: "9.1.
|
|
27896
|
+
version: "9.1.4"
|
|
27897
27897
|
});
|
|
27898
27898
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
27899
27899
|
return true;
|
|
@@ -30162,7 +30162,8 @@ Menu[propToIdentifyMenu] = true;
|
|
|
30162
30162
|
// src/components/InfiniteTable/utils/defaultGetColumnMenuItems.tsx
|
|
30163
30163
|
var React63 = __toESM(require("react"));
|
|
30164
30164
|
function defaultGetColumnMenuItems(_items, params) {
|
|
30165
|
-
const { columnApi, column, getComputed, api, dataSourceApi } = params;
|
|
30165
|
+
const { columnApi, column, getComputed, api, dataSourceApi, getState } = params;
|
|
30166
|
+
const CheckBoxCmp = getState().components?.CheckBox || InfiniteCheckBox;
|
|
30166
30167
|
const sortable = columnApi.isSortable();
|
|
30167
30168
|
const sortItems = sortable ? [
|
|
30168
30169
|
{
|
|
@@ -30248,7 +30249,7 @@ function defaultGetColumnMenuItems(_items, params) {
|
|
|
30248
30249
|
key: id,
|
|
30249
30250
|
label,
|
|
30250
30251
|
check: /* @__PURE__ */ React63.createElement(
|
|
30251
|
-
|
|
30252
|
+
CheckBoxCmp,
|
|
30252
30253
|
{
|
|
30253
30254
|
key: col.id,
|
|
30254
30255
|
disabled: col.computedVisible && api.getVisibleColumnsCount() === 1,
|
|
@@ -30291,7 +30292,7 @@ function defaultGetColumnMenuItems(_items, params) {
|
|
|
30291
30292
|
key: id,
|
|
30292
30293
|
label,
|
|
30293
30294
|
check: /* @__PURE__ */ React63.createElement(
|
|
30294
|
-
|
|
30295
|
+
CheckBoxCmp,
|
|
30295
30296
|
{
|
|
30296
30297
|
key: col.id,
|
|
30297
30298
|
disabled: !col.computedGroupable,
|
package/index.dev.mjs
CHANGED
|
@@ -27832,7 +27832,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
27832
27832
|
}
|
|
27833
27833
|
let valid2 = isValidLicense(licenseKey, {
|
|
27834
27834
|
publishedAt: 1624970570587,
|
|
27835
|
-
version: "9.1.
|
|
27835
|
+
version: "9.1.4"
|
|
27836
27836
|
});
|
|
27837
27837
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
27838
27838
|
return true;
|
|
@@ -30111,7 +30111,8 @@ Menu[propToIdentifyMenu] = true;
|
|
|
30111
30111
|
// src/components/InfiniteTable/utils/defaultGetColumnMenuItems.tsx
|
|
30112
30112
|
import * as React63 from "react";
|
|
30113
30113
|
function defaultGetColumnMenuItems(_items, params) {
|
|
30114
|
-
const { columnApi, column, getComputed, api, dataSourceApi } = params;
|
|
30114
|
+
const { columnApi, column, getComputed, api, dataSourceApi, getState } = params;
|
|
30115
|
+
const CheckBoxCmp = getState().components?.CheckBox || InfiniteCheckBox;
|
|
30115
30116
|
const sortable = columnApi.isSortable();
|
|
30116
30117
|
const sortItems = sortable ? [
|
|
30117
30118
|
{
|
|
@@ -30197,7 +30198,7 @@ function defaultGetColumnMenuItems(_items, params) {
|
|
|
30197
30198
|
key: id,
|
|
30198
30199
|
label,
|
|
30199
30200
|
check: /* @__PURE__ */ React63.createElement(
|
|
30200
|
-
|
|
30201
|
+
CheckBoxCmp,
|
|
30201
30202
|
{
|
|
30202
30203
|
key: col.id,
|
|
30203
30204
|
disabled: col.computedVisible && api.getVisibleColumnsCount() === 1,
|
|
@@ -30240,7 +30241,7 @@ function defaultGetColumnMenuItems(_items, params) {
|
|
|
30240
30241
|
key: id,
|
|
30241
30242
|
label,
|
|
30242
30243
|
check: /* @__PURE__ */ React63.createElement(
|
|
30243
|
-
|
|
30244
|
+
CheckBoxCmp,
|
|
30244
30245
|
{
|
|
30245
30246
|
key: col.id,
|
|
30246
30247
|
disabled: !col.computedGroupable,
|