@nebula.js/stardust 3.0.0-alpha3 → 3.0.0-alpha6
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 +36 -14
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +4 -4
- package/core/esm/index.js.map +1 -1
- package/dist/stardust.dev.js +36 -14
- 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/types/index.d.ts +14 -14
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-alpha6
|
|
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 = "81fc" ;
|
|
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-alpha6" );
|
|
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
|
-
|
|
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
|
|
@@ -32792,33 +32797,48 @@
|
|
|
32792
32797
|
let {
|
|
32793
32798
|
model,
|
|
32794
32799
|
keyboard,
|
|
32795
|
-
dense = false
|
|
32800
|
+
dense = false,
|
|
32801
|
+
visible = true
|
|
32796
32802
|
} = _ref;
|
|
32797
32803
|
const {
|
|
32798
32804
|
translator
|
|
32799
32805
|
} = react.exports.useContext(InstanceContext);
|
|
32800
32806
|
const [value, setValue] = react.exports.useState('');
|
|
32801
32807
|
const theme = useTheme$1();
|
|
32808
|
+
react.exports.useEffect(() => {
|
|
32809
|
+
if (!visible) {
|
|
32810
|
+
model.abortListObjectSearch(TREE_PATH);
|
|
32811
|
+
}
|
|
32812
|
+
}, [visible]);
|
|
32802
32813
|
|
|
32803
32814
|
const onChange = e => {
|
|
32804
32815
|
setValue(e.target.value);
|
|
32805
|
-
|
|
32816
|
+
|
|
32817
|
+
if (e.target.value.length === 0) {
|
|
32818
|
+
model.abortListObjectSearch(TREE_PATH);
|
|
32819
|
+
} else {
|
|
32820
|
+
model.searchListObjectFor(TREE_PATH, e.target.value);
|
|
32821
|
+
}
|
|
32806
32822
|
};
|
|
32807
32823
|
|
|
32808
32824
|
const onKeyDown = e => {
|
|
32809
32825
|
switch (e.key) {
|
|
32810
32826
|
case 'Enter':
|
|
32811
|
-
|
|
32812
|
-
|
|
32813
|
-
// setValue('');
|
|
32827
|
+
model.acceptListObjectSearch(TREE_PATH, true);
|
|
32828
|
+
setValue('');
|
|
32814
32829
|
break;
|
|
32815
32830
|
|
|
32816
32831
|
case 'Escape':
|
|
32817
32832
|
model.abortListObjectSearch(TREE_PATH);
|
|
32833
|
+
setValue('');
|
|
32818
32834
|
break;
|
|
32819
32835
|
}
|
|
32820
32836
|
};
|
|
32821
32837
|
|
|
32838
|
+
if (!visible) {
|
|
32839
|
+
return null;
|
|
32840
|
+
}
|
|
32841
|
+
|
|
32822
32842
|
return /*#__PURE__*/React.createElement(OutlinedInput, {
|
|
32823
32843
|
startAdornment: /*#__PURE__*/React.createElement(InputAdornment, {
|
|
32824
32844
|
position: "start"
|
|
@@ -33214,7 +33234,8 @@
|
|
|
33214
33234
|
}, /*#__PURE__*/React.createElement("div", {
|
|
33215
33235
|
ref: moreAlignTo
|
|
33216
33236
|
}), /*#__PURE__*/React.createElement(ListBoxSearch, {
|
|
33217
|
-
model: model
|
|
33237
|
+
model: model,
|
|
33238
|
+
visible: true
|
|
33218
33239
|
}), /*#__PURE__*/React.createElement(ListBox, {
|
|
33219
33240
|
model: model,
|
|
33220
33241
|
selections: selections,
|
|
@@ -34802,13 +34823,14 @@
|
|
|
34802
34823
|
onConfirm: () => {},
|
|
34803
34824
|
onCancel: () => {}
|
|
34804
34825
|
}
|
|
34805
|
-
}))),
|
|
34826
|
+
}))), /*#__PURE__*/React.createElement(Grid, {
|
|
34806
34827
|
item: true,
|
|
34807
34828
|
ref: searchContainerRef
|
|
34808
34829
|
}, /*#__PURE__*/React.createElement(ListBoxSearch, {
|
|
34809
34830
|
model: model,
|
|
34810
34831
|
dense: dense,
|
|
34811
|
-
keyboard: keyboard
|
|
34832
|
+
keyboard: keyboard,
|
|
34833
|
+
visible: searchVisible
|
|
34812
34834
|
})), /*#__PURE__*/React.createElement(Grid, {
|
|
34813
34835
|
item: true,
|
|
34814
34836
|
xs: true
|
|
@@ -42433,7 +42455,7 @@
|
|
|
42433
42455
|
var enigmaMocker_dev = {exports: {}};
|
|
42434
42456
|
|
|
42435
42457
|
/*
|
|
42436
|
-
* @nebula.js/enigma-mocker v3.0.0-
|
|
42458
|
+
* @nebula.js/enigma-mocker v3.0.0-alpha1
|
|
42437
42459
|
* Copyright (c) 2022 QlikTech International AB
|
|
42438
42460
|
* Released under the MIT license.
|
|
42439
42461
|
*/
|