@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/core/esm/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
|
*/
|
|
@@ -11424,7 +11424,7 @@ function create$3(definition) {
|
|
|
11424
11424
|
return cache[key];
|
|
11425
11425
|
}
|
|
11426
11426
|
|
|
11427
|
-
const NEBULA_VERSION_HASH = "
|
|
11427
|
+
const NEBULA_VERSION_HASH = "f812" ;
|
|
11428
11428
|
ClassNameGenerator.configure(componentName => {
|
|
11429
11429
|
|
|
11430
11430
|
return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
|
|
@@ -11997,7 +11997,7 @@ function boot(_ref2) {
|
|
|
11997
11997
|
const appRef = React__default.createRef();
|
|
11998
11998
|
const element = document.createElement('div');
|
|
11999
11999
|
element.style.display = 'none';
|
|
12000
|
-
element.setAttribute('data-nebulajs-version', "3.0.0-
|
|
12000
|
+
element.setAttribute('data-nebulajs-version', "3.0.0-alpha11" );
|
|
12001
12001
|
element.setAttribute('data-app-id', app.id);
|
|
12002
12002
|
document.body.appendChild(element);
|
|
12003
12003
|
ReactDOM.render( /*#__PURE__*/React__default.createElement(NebulaApp, {
|
|
@@ -14367,13 +14367,22 @@ function ListBox(_ref2) {
|
|
|
14367
14367
|
setIsLoadingData(true);
|
|
14368
14368
|
return new Promise(resolve => {
|
|
14369
14369
|
local.current.timeout = setTimeout(() => {
|
|
14370
|
-
const
|
|
14371
|
-
const reqPromise = model.getListObjectData('/qListObjectDef',
|
|
14372
|
-
|
|
14373
|
-
|
|
14370
|
+
const lastItemInQueue = local.current.queue.slice(-1)[0];
|
|
14371
|
+
const reqPromise = model.getListObjectData('/qListObjectDef', // we need to ask for two payloads
|
|
14372
|
+
// 2nd one is our starting index + MINIMUM_BATCH_SIZE items
|
|
14373
|
+
// 1st one is 2nd ones starting index - MINIMUM_BATCH_SIZE items
|
|
14374
|
+
// we do this because we don't want to miss any items between fast scrolls
|
|
14375
|
+
[{
|
|
14376
|
+
qTop: lastItemInQueue.start > MINIMUM_BATCH_SIZE ? lastItemInQueue.start - MINIMUM_BATCH_SIZE : 0,
|
|
14377
|
+
qHeight: MINIMUM_BATCH_SIZE,
|
|
14374
14378
|
qLeft: 0,
|
|
14375
14379
|
qWidth: 1
|
|
14376
|
-
}
|
|
14380
|
+
}, {
|
|
14381
|
+
qTop: lastItemInQueue.start,
|
|
14382
|
+
qHeight: MINIMUM_BATCH_SIZE,
|
|
14383
|
+
qLeft: 0,
|
|
14384
|
+
qWidth: 1
|
|
14385
|
+
}]).then(p => {
|
|
14377
14386
|
const processedPages = postProcessPages ? postProcessPages(p) : p;
|
|
14378
14387
|
local.current.validPages = true;
|
|
14379
14388
|
listData.current.pages = processedPages;
|
|
@@ -14466,7 +14475,7 @@ function ListBox(_ref2) {
|
|
|
14466
14475
|
} = layout;
|
|
14467
14476
|
return /*#__PURE__*/React__default.createElement(StyledInfiniteLoader, {
|
|
14468
14477
|
isItemLoaded: isItemLoaded,
|
|
14469
|
-
itemCount:
|
|
14478
|
+
itemCount: listCount,
|
|
14470
14479
|
loadMoreItems: loadMoreItems,
|
|
14471
14480
|
threshold: 0,
|
|
14472
14481
|
minimumBatchSize: MINIMUM_BATCH_SIZE,
|
|
@@ -24770,7 +24779,7 @@ var enigmaMocker = {exports: {}};
|
|
|
24770
24779
|
var enigmaMocker_dev = {exports: {}};
|
|
24771
24780
|
|
|
24772
24781
|
/*
|
|
24773
|
-
* @nebula.js/enigma-mocker v3.0.0-
|
|
24782
|
+
* @nebula.js/enigma-mocker v3.0.0-alpha10
|
|
24774
24783
|
* Copyright (c) 2022 QlikTech International AB
|
|
24775
24784
|
* Released under the MIT license.
|
|
24776
24785
|
*/
|