@vuu-ui/vuu-data-local 0.8.20-debug → 0.8.21-debug
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/cjs/index.js +26 -11
- package/cjs/index.js.map +3 -3
- package/esm/index.js +26 -11
- package/esm/index.js.map +3 -3
- package/package.json +6 -6
package/esm/index.js
CHANGED
|
@@ -2887,10 +2887,10 @@ var LRParser = class _LRParser extends Parser {
|
|
|
2887
2887
|
if (config.props)
|
|
2888
2888
|
copy.nodeSet = this.nodeSet.extend(...config.props);
|
|
2889
2889
|
if (config.top) {
|
|
2890
|
-
let
|
|
2891
|
-
if (!
|
|
2890
|
+
let info2 = this.topRules[config.top];
|
|
2891
|
+
if (!info2)
|
|
2892
2892
|
throw new RangeError(`Invalid top rule name ${config.top}`);
|
|
2893
|
-
copy.top =
|
|
2893
|
+
copy.top = info2;
|
|
2894
2894
|
}
|
|
2895
2895
|
if (config.tokenizers)
|
|
2896
2896
|
copy.tokenizers = this.tokenizers.map((t) => {
|
|
@@ -3730,8 +3730,8 @@ var sortRows = (rows, { sortDefs }, columnMap) => {
|
|
|
3730
3730
|
};
|
|
3731
3731
|
|
|
3732
3732
|
// src/array-data-source/array-data-source.ts
|
|
3733
|
+
var { debug, info } = logger("ArrayDataSource");
|
|
3733
3734
|
var { KEY: KEY2 } = metadataKeys3;
|
|
3734
|
-
var { debug } = logger("ArrayDataSource");
|
|
3735
3735
|
var toDataSourceRow = (key) => (data, index) => {
|
|
3736
3736
|
return [index, index, true, false, 1, 0, String(data[key]), 0, ...data];
|
|
3737
3737
|
};
|
|
@@ -3889,24 +3889,37 @@ var ArrayDataSource = class extends EventEmitter {
|
|
|
3889
3889
|
});
|
|
3890
3890
|
if (range) {
|
|
3891
3891
|
this.range = range;
|
|
3892
|
+
this.sendRowsToClient();
|
|
3892
3893
|
} else if (__privateGet(this, _range) !== NULL_RANGE) {
|
|
3893
3894
|
this.sendRowsToClient();
|
|
3894
3895
|
}
|
|
3895
3896
|
}
|
|
3896
3897
|
}
|
|
3897
3898
|
unsubscribe() {
|
|
3898
|
-
console.log(
|
|
3899
|
+
console.log(`unsubscribe noop`);
|
|
3899
3900
|
}
|
|
3900
3901
|
suspend() {
|
|
3902
|
+
console.log(`suspend #${this.viewport}, current status ${__privateGet(this, _status)}`);
|
|
3903
|
+
info == null ? void 0 : info(`suspend #${this.viewport}, current status ${__privateGet(this, _status)}`);
|
|
3904
|
+
__privateSet(this, _status, "suspended");
|
|
3901
3905
|
return this;
|
|
3902
3906
|
}
|
|
3903
3907
|
resume() {
|
|
3908
|
+
console.log(`resume #${this.viewport}, current status ${__privateGet(this, _status)}`);
|
|
3909
|
+
const isSuspended = __privateGet(this, _status) === "suspended";
|
|
3910
|
+
info == null ? void 0 : info(`resume #${this.viewport}, current status ${__privateGet(this, _status)}`);
|
|
3911
|
+
console.log(`resume noop`);
|
|
3912
|
+
if (isSuspended) {
|
|
3913
|
+
__privateSet(this, _status, "subscribed");
|
|
3914
|
+
}
|
|
3904
3915
|
return this;
|
|
3905
3916
|
}
|
|
3906
3917
|
disable() {
|
|
3918
|
+
console.log(`disable noop`);
|
|
3907
3919
|
return this;
|
|
3908
3920
|
}
|
|
3909
3921
|
enable() {
|
|
3922
|
+
console.log(`enable noop`);
|
|
3910
3923
|
return this;
|
|
3911
3924
|
}
|
|
3912
3925
|
select(selected) {
|
|
@@ -4054,17 +4067,19 @@ var ArrayDataSource = class extends EventEmitter {
|
|
|
4054
4067
|
return __privateGet(this, _range);
|
|
4055
4068
|
}
|
|
4056
4069
|
set range(range) {
|
|
4057
|
-
|
|
4058
|
-
this.setRange(range);
|
|
4059
|
-
}
|
|
4070
|
+
this.setRange(range);
|
|
4060
4071
|
}
|
|
4061
4072
|
delete(row) {
|
|
4062
4073
|
console.log(`delete row ${row.join(",")}`);
|
|
4063
4074
|
}
|
|
4064
4075
|
setRange(range, forceFullRefresh = false) {
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4076
|
+
if (range.from !== __privateGet(this, _range).from || range.to !== __privateGet(this, _range).to) {
|
|
4077
|
+
__privateSet(this, _range, range);
|
|
4078
|
+
this.keys.reset(range);
|
|
4079
|
+
this.sendRowsToClient(forceFullRefresh);
|
|
4080
|
+
} else if (forceFullRefresh) {
|
|
4081
|
+
this.sendRowsToClient(forceFullRefresh);
|
|
4082
|
+
}
|
|
4068
4083
|
}
|
|
4069
4084
|
sendRowsToClient(forceFullRefresh = false, row) {
|
|
4070
4085
|
var _a, _b, _c;
|