@infinite-table/infinite-react 7.5.0-canary.0 → 7.5.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 +1 -0
- package/index.dev.js +9 -7
- package/index.dev.mjs +9 -7
- package/index.js +6 -6
- package/index.mjs +6 -6
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1142,6 +1142,7 @@ declare class GridCellManager<T_ADDITIONAL_CELL_INFO> extends Logger {
|
|
|
1142
1142
|
private setCellPositionInMatrix;
|
|
1143
1143
|
renderNodeAtCell(node: Renderable, cell: GridCellInterface<T_ADDITIONAL_CELL_INFO>, cellPos: CellPos, additionalInfo?: T_ADDITIONAL_CELL_INFO, scrollingObjectParam?: {
|
|
1144
1144
|
scrolling: boolean;
|
|
1145
|
+
isHorizontalLayout: boolean;
|
|
1145
1146
|
}): GridCellInterface<T_ADDITIONAL_CELL_INFO>;
|
|
1146
1147
|
getCellPosition(cell: GridCellInterface<T_ADDITIONAL_CELL_INFO>): CellPos | null;
|
|
1147
1148
|
getCellAt(cellPos: CellPos): GridCellInterface<T_ADDITIONAL_CELL_INFO> | undefined;
|
package/index.dev.js
CHANGED
|
@@ -10102,10 +10102,10 @@ var GridCellForReact = class {
|
|
|
10102
10102
|
constructor(debugId, cellInfo) {
|
|
10103
10103
|
this.element = null;
|
|
10104
10104
|
this.mounted = false;
|
|
10105
|
-
this.
|
|
10105
|
+
this.IS_UPDATED_WHILE_SCROLLING_IN_HORIZONTAL_LAYOUT = false;
|
|
10106
10106
|
this.mountSubscription = buildSubscriptionCallback();
|
|
10107
10107
|
this.isUpdatedWhileScrolling = () => {
|
|
10108
|
-
return this.
|
|
10108
|
+
return this.IS_UPDATED_WHILE_SCROLLING_IN_HORIZONTAL_LAYOUT;
|
|
10109
10109
|
};
|
|
10110
10110
|
const count = CELL_COUNT_BY_DEBUG_ID.get(debugId) ?? 0;
|
|
10111
10111
|
const key = `${debugId}:GridCellReact:${count}`;
|
|
@@ -10154,7 +10154,7 @@ var GridCellForReact = class {
|
|
|
10154
10154
|
return this.node;
|
|
10155
10155
|
}
|
|
10156
10156
|
update(content, additionalInfo, scrollingObjectParam) {
|
|
10157
|
-
this.
|
|
10157
|
+
this.IS_UPDATED_WHILE_SCROLLING_IN_HORIZONTAL_LAYOUT = scrollingObjectParam ? scrollingObjectParam.scrolling && scrollingObjectParam.isHorizontalLayout : false;
|
|
10158
10158
|
this.updater(content);
|
|
10159
10159
|
this.cellInfo = additionalInfo;
|
|
10160
10160
|
}
|
|
@@ -11037,7 +11037,8 @@ var columnOffsetAtIndexWhileReordering2 = stripVar(
|
|
|
11037
11037
|
InternalVars.columnOffsetAtIndexWhileReordering
|
|
11038
11038
|
);
|
|
11039
11039
|
var SCROLLING_OBJECT_PARAM_FLYWEIGHT = {
|
|
11040
|
-
scrolling: false
|
|
11040
|
+
scrolling: false,
|
|
11041
|
+
isHorizontalLayout: false
|
|
11041
11042
|
};
|
|
11042
11043
|
var GridRenderer = class extends Logger {
|
|
11043
11044
|
constructor(brain, debugId) {
|
|
@@ -12197,8 +12198,9 @@ var GridRenderer = class extends Logger {
|
|
|
12197
12198
|
renderRowIndex,
|
|
12198
12199
|
renderColIndex
|
|
12199
12200
|
} : void 0;
|
|
12201
|
+
const isHorizontalLayout = this.brain.isHorizontalLayoutBrain;
|
|
12200
12202
|
if (!renderedNode) {
|
|
12201
|
-
if (
|
|
12203
|
+
if (isHorizontalLayout) {
|
|
12202
12204
|
this.cellManager.detachCell(cell);
|
|
12203
12205
|
} else {
|
|
12204
12206
|
this.cellManager.detachCell(cell);
|
|
@@ -12206,6 +12208,7 @@ var GridRenderer = class extends Logger {
|
|
|
12206
12208
|
return;
|
|
12207
12209
|
}
|
|
12208
12210
|
SCROLLING_OBJECT_PARAM_FLYWEIGHT.scrolling = this.scrolling;
|
|
12211
|
+
SCROLLING_OBJECT_PARAM_FLYWEIGHT.isHorizontalLayout = isHorizontalLayout;
|
|
12209
12212
|
this.cellManager.renderNodeAtCell(
|
|
12210
12213
|
renderedNode,
|
|
12211
12214
|
cell,
|
|
@@ -20944,7 +20947,6 @@ function createRowInfoStore() {
|
|
|
20944
20947
|
dataArray = newDataArray;
|
|
20945
20948
|
if (changedIndices.length > 0) {
|
|
20946
20949
|
queueMicrotask(() => {
|
|
20947
|
-
console.log("notify", changedIndices);
|
|
20948
20950
|
for (let i = 0, len = changedIndices.length; i < len; i++) {
|
|
20949
20951
|
const index = changedIndices[i];
|
|
20950
20952
|
const indexSubscribers = subscribers.get(index);
|
|
@@ -26079,7 +26081,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
26079
26081
|
}
|
|
26080
26082
|
let valid2 = isValidLicense(licenseKey, {
|
|
26081
26083
|
publishedAt: 1624970570587,
|
|
26082
|
-
version: "7.5.
|
|
26084
|
+
version: "7.5.1"
|
|
26083
26085
|
});
|
|
26084
26086
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
26085
26087
|
return true;
|
package/index.dev.mjs
CHANGED
|
@@ -10042,10 +10042,10 @@ var GridCellForReact = class {
|
|
|
10042
10042
|
constructor(debugId, cellInfo) {
|
|
10043
10043
|
this.element = null;
|
|
10044
10044
|
this.mounted = false;
|
|
10045
|
-
this.
|
|
10045
|
+
this.IS_UPDATED_WHILE_SCROLLING_IN_HORIZONTAL_LAYOUT = false;
|
|
10046
10046
|
this.mountSubscription = buildSubscriptionCallback();
|
|
10047
10047
|
this.isUpdatedWhileScrolling = () => {
|
|
10048
|
-
return this.
|
|
10048
|
+
return this.IS_UPDATED_WHILE_SCROLLING_IN_HORIZONTAL_LAYOUT;
|
|
10049
10049
|
};
|
|
10050
10050
|
const count = CELL_COUNT_BY_DEBUG_ID.get(debugId) ?? 0;
|
|
10051
10051
|
const key = `${debugId}:GridCellReact:${count}`;
|
|
@@ -10094,7 +10094,7 @@ var GridCellForReact = class {
|
|
|
10094
10094
|
return this.node;
|
|
10095
10095
|
}
|
|
10096
10096
|
update(content, additionalInfo, scrollingObjectParam) {
|
|
10097
|
-
this.
|
|
10097
|
+
this.IS_UPDATED_WHILE_SCROLLING_IN_HORIZONTAL_LAYOUT = scrollingObjectParam ? scrollingObjectParam.scrolling && scrollingObjectParam.isHorizontalLayout : false;
|
|
10098
10098
|
this.updater(content);
|
|
10099
10099
|
this.cellInfo = additionalInfo;
|
|
10100
10100
|
}
|
|
@@ -10977,7 +10977,8 @@ var columnOffsetAtIndexWhileReordering2 = stripVar(
|
|
|
10977
10977
|
InternalVars.columnOffsetAtIndexWhileReordering
|
|
10978
10978
|
);
|
|
10979
10979
|
var SCROLLING_OBJECT_PARAM_FLYWEIGHT = {
|
|
10980
|
-
scrolling: false
|
|
10980
|
+
scrolling: false,
|
|
10981
|
+
isHorizontalLayout: false
|
|
10981
10982
|
};
|
|
10982
10983
|
var GridRenderer = class extends Logger {
|
|
10983
10984
|
constructor(brain, debugId) {
|
|
@@ -12137,8 +12138,9 @@ var GridRenderer = class extends Logger {
|
|
|
12137
12138
|
renderRowIndex,
|
|
12138
12139
|
renderColIndex
|
|
12139
12140
|
} : void 0;
|
|
12141
|
+
const isHorizontalLayout = this.brain.isHorizontalLayoutBrain;
|
|
12140
12142
|
if (!renderedNode) {
|
|
12141
|
-
if (
|
|
12143
|
+
if (isHorizontalLayout) {
|
|
12142
12144
|
this.cellManager.detachCell(cell);
|
|
12143
12145
|
} else {
|
|
12144
12146
|
this.cellManager.detachCell(cell);
|
|
@@ -12146,6 +12148,7 @@ var GridRenderer = class extends Logger {
|
|
|
12146
12148
|
return;
|
|
12147
12149
|
}
|
|
12148
12150
|
SCROLLING_OBJECT_PARAM_FLYWEIGHT.scrolling = this.scrolling;
|
|
12151
|
+
SCROLLING_OBJECT_PARAM_FLYWEIGHT.isHorizontalLayout = isHorizontalLayout;
|
|
12149
12152
|
this.cellManager.renderNodeAtCell(
|
|
12150
12153
|
renderedNode,
|
|
12151
12154
|
cell,
|
|
@@ -20884,7 +20887,6 @@ function createRowInfoStore() {
|
|
|
20884
20887
|
dataArray = newDataArray;
|
|
20885
20888
|
if (changedIndices.length > 0) {
|
|
20886
20889
|
queueMicrotask(() => {
|
|
20887
|
-
console.log("notify", changedIndices);
|
|
20888
20890
|
for (let i = 0, len = changedIndices.length; i < len; i++) {
|
|
20889
20891
|
const index = changedIndices[i];
|
|
20890
20892
|
const indexSubscribers = subscribers.get(index);
|
|
@@ -26028,7 +26030,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
26028
26030
|
}
|
|
26029
26031
|
let valid2 = isValidLicense(licenseKey, {
|
|
26030
26032
|
publishedAt: 1624970570587,
|
|
26031
|
-
version: "7.5.
|
|
26033
|
+
version: "7.5.1"
|
|
26032
26034
|
});
|
|
26033
26035
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
26034
26036
|
return true;
|