@nebula.js/stardust 3.0.0-alpha10 → 3.0.0-alpha11
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/core/esm/dev.js +19 -10
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +2 -2
- package/core/esm/index.js.map +1 -1
- package/dist/stardust.dev.js +19 -10
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +3 -3
- package/dist/stardust.js.map +1 -1
- package/package.json +9 -9
package/dist/stardust.dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v3.0.0-
|
|
2
|
+
* @nebula.js/stardust v3.0.0-alpha11
|
|
3
3
|
* Copyright (c) 2022 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -16197,7 +16197,7 @@
|
|
|
16197
16197
|
return cache[key];
|
|
16198
16198
|
}
|
|
16199
16199
|
|
|
16200
|
-
const NEBULA_VERSION_HASH = "
|
|
16200
|
+
const NEBULA_VERSION_HASH = "f812" ;
|
|
16201
16201
|
ClassNameGenerator.configure(componentName => {
|
|
16202
16202
|
|
|
16203
16203
|
return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
|
|
@@ -16770,7 +16770,7 @@
|
|
|
16770
16770
|
const appRef = React.createRef();
|
|
16771
16771
|
const element = document.createElement('div');
|
|
16772
16772
|
element.style.display = 'none';
|
|
16773
|
-
element.setAttribute('data-nebulajs-version', "3.0.0-
|
|
16773
|
+
element.setAttribute('data-nebulajs-version', "3.0.0-alpha11" );
|
|
16774
16774
|
element.setAttribute('data-app-id', app.id);
|
|
16775
16775
|
document.body.appendChild(element);
|
|
16776
16776
|
ReactDOM.render( /*#__PURE__*/React.createElement(NebulaApp, {
|
|
@@ -32061,13 +32061,22 @@
|
|
|
32061
32061
|
setIsLoadingData(true);
|
|
32062
32062
|
return new Promise(resolve => {
|
|
32063
32063
|
local.current.timeout = setTimeout(() => {
|
|
32064
|
-
const
|
|
32065
|
-
const reqPromise = model.getListObjectData('/qListObjectDef',
|
|
32066
|
-
|
|
32067
|
-
|
|
32064
|
+
const lastItemInQueue = local.current.queue.slice(-1)[0];
|
|
32065
|
+
const reqPromise = model.getListObjectData('/qListObjectDef', // we need to ask for two payloads
|
|
32066
|
+
// 2nd one is our starting index + MINIMUM_BATCH_SIZE items
|
|
32067
|
+
// 1st one is 2nd ones starting index - MINIMUM_BATCH_SIZE items
|
|
32068
|
+
// we do this because we don't want to miss any items between fast scrolls
|
|
32069
|
+
[{
|
|
32070
|
+
qTop: lastItemInQueue.start > MINIMUM_BATCH_SIZE ? lastItemInQueue.start - MINIMUM_BATCH_SIZE : 0,
|
|
32071
|
+
qHeight: MINIMUM_BATCH_SIZE,
|
|
32068
32072
|
qLeft: 0,
|
|
32069
32073
|
qWidth: 1
|
|
32070
|
-
}
|
|
32074
|
+
}, {
|
|
32075
|
+
qTop: lastItemInQueue.start,
|
|
32076
|
+
qHeight: MINIMUM_BATCH_SIZE,
|
|
32077
|
+
qLeft: 0,
|
|
32078
|
+
qWidth: 1
|
|
32079
|
+
}]).then(p => {
|
|
32071
32080
|
const processedPages = postProcessPages ? postProcessPages(p) : p;
|
|
32072
32081
|
local.current.validPages = true;
|
|
32073
32082
|
listData.current.pages = processedPages;
|
|
@@ -32160,7 +32169,7 @@
|
|
|
32160
32169
|
} = layout;
|
|
32161
32170
|
return /*#__PURE__*/React.createElement(StyledInfiniteLoader, {
|
|
32162
32171
|
isItemLoaded: isItemLoaded,
|
|
32163
|
-
itemCount:
|
|
32172
|
+
itemCount: listCount,
|
|
32164
32173
|
loadMoreItems: loadMoreItems,
|
|
32165
32174
|
threshold: 0,
|
|
32166
32175
|
minimumBatchSize: MINIMUM_BATCH_SIZE,
|
|
@@ -42464,7 +42473,7 @@
|
|
|
42464
42473
|
var enigmaMocker_dev = {exports: {}};
|
|
42465
42474
|
|
|
42466
42475
|
/*
|
|
42467
|
-
* @nebula.js/enigma-mocker v3.0.0-
|
|
42476
|
+
* @nebula.js/enigma-mocker v3.0.0-alpha10
|
|
42468
42477
|
* Copyright (c) 2022 QlikTech International AB
|
|
42469
42478
|
* Released under the MIT license.
|
|
42470
42479
|
*/
|