@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/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-alpha6
|
|
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 = "81fc" ;
|
|
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-alpha6" );
|
|
12001
12001
|
element.setAttribute('data-app-id', app.id);
|
|
12002
12002
|
document.body.appendChild(element);
|
|
12003
12003
|
ReactDOM.render( /*#__PURE__*/React__default.createElement(NebulaApp, {
|
|
@@ -14412,7 +14412,7 @@ function ListBox(_ref2) {
|
|
|
14412
14412
|
if (typeof setCount === 'function' && layout) {
|
|
14413
14413
|
setCount(layout.qListObject.qSize.qcy);
|
|
14414
14414
|
}
|
|
14415
|
-
}, [layout]);
|
|
14415
|
+
}, [layout, layout && layout.qListObject.qSize.qcy]);
|
|
14416
14416
|
useEffect$1(() => {
|
|
14417
14417
|
if (!instantPages || isLoadingData) {
|
|
14418
14418
|
return;
|
|
@@ -14434,7 +14434,12 @@ function ListBox(_ref2) {
|
|
|
14434
14434
|
}
|
|
14435
14435
|
|
|
14436
14436
|
const isVertical = listLayout !== 'horizontal';
|
|
14437
|
-
|
|
14437
|
+
let count = layout.qListObject.qSize.qcy; // Should not allow a count of zero since it will stop executing loadMoreItems
|
|
14438
|
+
// this could happen if a seach returns an empty result
|
|
14439
|
+
|
|
14440
|
+
if (count === 0) {
|
|
14441
|
+
count = 1;
|
|
14442
|
+
}
|
|
14438
14443
|
|
|
14439
14444
|
const getCalculatedHeight = ps => {
|
|
14440
14445
|
// If values have been filtered in the currently loaded page, we want to
|
|
@@ -15098,33 +15103,48 @@ function ListBoxSearch(_ref) {
|
|
|
15098
15103
|
let {
|
|
15099
15104
|
model,
|
|
15100
15105
|
keyboard,
|
|
15101
|
-
dense = false
|
|
15106
|
+
dense = false,
|
|
15107
|
+
visible = true
|
|
15102
15108
|
} = _ref;
|
|
15103
15109
|
const {
|
|
15104
15110
|
translator
|
|
15105
15111
|
} = useContext(InstanceContext);
|
|
15106
15112
|
const [value, setValue] = useState$1('');
|
|
15107
15113
|
const theme = useTheme$1();
|
|
15114
|
+
useEffect$1(() => {
|
|
15115
|
+
if (!visible) {
|
|
15116
|
+
model.abortListObjectSearch(TREE_PATH);
|
|
15117
|
+
}
|
|
15118
|
+
}, [visible]);
|
|
15108
15119
|
|
|
15109
15120
|
const onChange = e => {
|
|
15110
15121
|
setValue(e.target.value);
|
|
15111
|
-
|
|
15122
|
+
|
|
15123
|
+
if (e.target.value.length === 0) {
|
|
15124
|
+
model.abortListObjectSearch(TREE_PATH);
|
|
15125
|
+
} else {
|
|
15126
|
+
model.searchListObjectFor(TREE_PATH, e.target.value);
|
|
15127
|
+
}
|
|
15112
15128
|
};
|
|
15113
15129
|
|
|
15114
15130
|
const onKeyDown = e => {
|
|
15115
15131
|
switch (e.key) {
|
|
15116
15132
|
case 'Enter':
|
|
15117
|
-
|
|
15118
|
-
|
|
15119
|
-
// setValue('');
|
|
15133
|
+
model.acceptListObjectSearch(TREE_PATH, true);
|
|
15134
|
+
setValue('');
|
|
15120
15135
|
break;
|
|
15121
15136
|
|
|
15122
15137
|
case 'Escape':
|
|
15123
15138
|
model.abortListObjectSearch(TREE_PATH);
|
|
15139
|
+
setValue('');
|
|
15124
15140
|
break;
|
|
15125
15141
|
}
|
|
15126
15142
|
};
|
|
15127
15143
|
|
|
15144
|
+
if (!visible) {
|
|
15145
|
+
return null;
|
|
15146
|
+
}
|
|
15147
|
+
|
|
15128
15148
|
return /*#__PURE__*/React__default.createElement(OutlinedInput, {
|
|
15129
15149
|
startAdornment: /*#__PURE__*/React__default.createElement(InputAdornment, {
|
|
15130
15150
|
position: "start"
|
|
@@ -15520,7 +15540,8 @@ function ListBoxPopover(_ref) {
|
|
|
15520
15540
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
15521
15541
|
ref: moreAlignTo
|
|
15522
15542
|
}), /*#__PURE__*/React__default.createElement(ListBoxSearch, {
|
|
15523
|
-
model: model
|
|
15543
|
+
model: model,
|
|
15544
|
+
visible: true
|
|
15524
15545
|
}), /*#__PURE__*/React__default.createElement(ListBox, {
|
|
15525
15546
|
model: model,
|
|
15526
15547
|
selections: selections,
|
|
@@ -17108,13 +17129,14 @@ function ListBoxInline(_ref) {
|
|
|
17108
17129
|
onConfirm: () => {},
|
|
17109
17130
|
onCancel: () => {}
|
|
17110
17131
|
}
|
|
17111
|
-
}))),
|
|
17132
|
+
}))), /*#__PURE__*/React__default.createElement(Grid, {
|
|
17112
17133
|
item: true,
|
|
17113
17134
|
ref: searchContainerRef
|
|
17114
17135
|
}, /*#__PURE__*/React__default.createElement(ListBoxSearch, {
|
|
17115
17136
|
model: model,
|
|
17116
17137
|
dense: dense,
|
|
17117
|
-
keyboard: keyboard
|
|
17138
|
+
keyboard: keyboard,
|
|
17139
|
+
visible: searchVisible
|
|
17118
17140
|
})), /*#__PURE__*/React__default.createElement(Grid, {
|
|
17119
17141
|
item: true,
|
|
17120
17142
|
xs: true
|
|
@@ -24739,7 +24761,7 @@ var enigmaMocker = {exports: {}};
|
|
|
24739
24761
|
var enigmaMocker_dev = {exports: {}};
|
|
24740
24762
|
|
|
24741
24763
|
/*
|
|
24742
|
-
* @nebula.js/enigma-mocker v3.0.0-
|
|
24764
|
+
* @nebula.js/enigma-mocker v3.0.0-alpha1
|
|
24743
24765
|
* Copyright (c) 2022 QlikTech International AB
|
|
24744
24766
|
* Released under the MIT license.
|
|
24745
24767
|
*/
|