@nebula.js/stardust 3.0.0-alpha2 → 3.0.0-alpha5

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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/stardust v3.0.0-alpha2
2
+ * @nebula.js/stardust v3.0.0-alpha5
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 = "9c10" ;
16200
+ const NEBULA_VERSION_HASH = "6da9" ;
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-alpha2" );
16773
+ element.setAttribute('data-nebulajs-version', "3.0.0-alpha5" );
16774
16774
  element.setAttribute('data-app-id', app.id);
16775
16775
  document.body.appendChild(element);
16776
16776
  ReactDOM.render( /*#__PURE__*/React.createElement(NebulaApp, {
@@ -32106,7 +32106,7 @@
32106
32106
  if (typeof setCount === 'function' && layout) {
32107
32107
  setCount(layout.qListObject.qSize.qcy);
32108
32108
  }
32109
- }, [layout]);
32109
+ }, [layout, layout && layout.qListObject.qSize.qcy]);
32110
32110
  react.exports.useEffect(() => {
32111
32111
  if (!instantPages || isLoadingData) {
32112
32112
  return;
@@ -32128,7 +32128,12 @@
32128
32128
  }
32129
32129
 
32130
32130
  const isVertical = listLayout !== 'horizontal';
32131
- const count = layout.qListObject.qSize.qcy;
32131
+ let count = layout.qListObject.qSize.qcy; // Should not allow a count of zero since it will stop executing loadMoreItems
32132
+ // this could happen if a seach returns an empty result
32133
+
32134
+ if (count === 0) {
32135
+ count = 1;
32136
+ }
32132
32137
 
32133
32138
  const getCalculatedHeight = ps => {
32134
32139
  // If values have been filtered in the currently loaded page, we want to
@@ -32802,14 +32807,20 @@
32802
32807
 
32803
32808
  const onChange = e => {
32804
32809
  setValue(e.target.value);
32805
- model.searchListObjectFor(TREE_PATH, e.target.value);
32810
+
32811
+ if (e.target.value.length === 0) {
32812
+ model.abortListObjectSearch(TREE_PATH);
32813
+ } else {
32814
+ model.searchListObjectFor(TREE_PATH, e.target.value);
32815
+ }
32806
32816
  };
32807
32817
 
32808
32818
  const onKeyDown = e => {
32809
32819
  switch (e.key) {
32810
32820
  case 'Enter':
32811
- model.acceptListObjectSearch(TREE_PATH, true);
32812
- setValue('');
32821
+ // This is disabled to "solve" QB-10955 with the lowest risk
32822
+ // await model.acceptListObjectSearch(TREE_PATH, true);
32823
+ // setValue('');
32813
32824
  break;
32814
32825
 
32815
32826
  case 'Escape':
@@ -42432,7 +42443,7 @@
42432
42443
  var enigmaMocker_dev = {exports: {}};
42433
42444
 
42434
42445
  /*
42435
- * @nebula.js/enigma-mocker v3.0.0-alpha1
42446
+ * @nebula.js/enigma-mocker v3.0.0-alpha4
42436
42447
  * Copyright (c) 2022 QlikTech International AB
42437
42448
  * Released under the MIT license.
42438
42449
  */