@nebula.js/stardust 5.1.0 → 5.1.2
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 +44 -65
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +3 -3
- package/core/esm/index.js.map +1 -1
- package/dist/stardust.dev.js +44 -65
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +13 -13
- package/dist/stardust.js.map +1 -1
- package/package.json +10 -10
- package/types/index.d.ts +10 -10
package/dist/stardust.dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v5.1.
|
|
2
|
+
* @nebula.js/stardust v5.1.2
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -723,6 +723,23 @@
|
|
|
723
723
|
}
|
|
724
724
|
})(runtime);
|
|
725
725
|
|
|
726
|
+
function _defineProperty(e, r, t) {
|
|
727
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
728
|
+
value: t,
|
|
729
|
+
enumerable: !0,
|
|
730
|
+
configurable: !0,
|
|
731
|
+
writable: !0
|
|
732
|
+
}) : e[r] = t, e;
|
|
733
|
+
}
|
|
734
|
+
function _extends$8() {
|
|
735
|
+
return _extends$8 = Object.assign ? Object.assign.bind() : function (n) {
|
|
736
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
737
|
+
var t = arguments[e];
|
|
738
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
739
|
+
}
|
|
740
|
+
return n;
|
|
741
|
+
}, _extends$8.apply(null, arguments);
|
|
742
|
+
}
|
|
726
743
|
function ownKeys(e, r) {
|
|
727
744
|
var t = Object.keys(e);
|
|
728
745
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -744,6 +761,26 @@
|
|
|
744
761
|
}
|
|
745
762
|
return e;
|
|
746
763
|
}
|
|
764
|
+
function _objectWithoutProperties(e, t) {
|
|
765
|
+
if (null == e) return {};
|
|
766
|
+
var o,
|
|
767
|
+
r,
|
|
768
|
+
i = _objectWithoutPropertiesLoose$4(e, t);
|
|
769
|
+
if (Object.getOwnPropertySymbols) {
|
|
770
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
771
|
+
for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
772
|
+
}
|
|
773
|
+
return i;
|
|
774
|
+
}
|
|
775
|
+
function _objectWithoutPropertiesLoose$4(r, e) {
|
|
776
|
+
if (null == r) return {};
|
|
777
|
+
var t = {};
|
|
778
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
779
|
+
if (e.indexOf(n) >= 0) continue;
|
|
780
|
+
t[n] = r[n];
|
|
781
|
+
}
|
|
782
|
+
return t;
|
|
783
|
+
}
|
|
747
784
|
function _toPrimitive(t, r) {
|
|
748
785
|
if ("object" != typeof t || !t) return t;
|
|
749
786
|
var e = t[Symbol.toPrimitive];
|
|
@@ -758,60 +795,6 @@
|
|
|
758
795
|
var i = _toPrimitive(t, "string");
|
|
759
796
|
return "symbol" == typeof i ? i : i + "";
|
|
760
797
|
}
|
|
761
|
-
function _defineProperty(obj, key, value) {
|
|
762
|
-
key = _toPropertyKey(key);
|
|
763
|
-
if (key in obj) {
|
|
764
|
-
Object.defineProperty(obj, key, {
|
|
765
|
-
value: value,
|
|
766
|
-
enumerable: true,
|
|
767
|
-
configurable: true,
|
|
768
|
-
writable: true
|
|
769
|
-
});
|
|
770
|
-
} else {
|
|
771
|
-
obj[key] = value;
|
|
772
|
-
}
|
|
773
|
-
return obj;
|
|
774
|
-
}
|
|
775
|
-
function _extends$8() {
|
|
776
|
-
_extends$8 = Object.assign ? Object.assign.bind() : function (target) {
|
|
777
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
778
|
-
var source = arguments[i];
|
|
779
|
-
for (var key in source) {
|
|
780
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
781
|
-
target[key] = source[key];
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
return target;
|
|
786
|
-
};
|
|
787
|
-
return _extends$8.apply(this, arguments);
|
|
788
|
-
}
|
|
789
|
-
function _objectWithoutPropertiesLoose$4(source, excluded) {
|
|
790
|
-
if (source == null) return {};
|
|
791
|
-
var target = {};
|
|
792
|
-
for (var key in source) {
|
|
793
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
794
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
795
|
-
target[key] = source[key];
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
return target;
|
|
799
|
-
}
|
|
800
|
-
function _objectWithoutProperties(source, excluded) {
|
|
801
|
-
if (source == null) return {};
|
|
802
|
-
var target = _objectWithoutPropertiesLoose$4(source, excluded);
|
|
803
|
-
var key, i;
|
|
804
|
-
if (Object.getOwnPropertySymbols) {
|
|
805
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
806
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
807
|
-
key = sourceSymbolKeys[i];
|
|
808
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
809
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
810
|
-
target[key] = source[key];
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
return target;
|
|
814
|
-
}
|
|
815
798
|
|
|
816
799
|
var react = {exports: {}};
|
|
817
800
|
|
|
@@ -12695,7 +12678,7 @@
|
|
|
12695
12678
|
return cache[key];
|
|
12696
12679
|
}
|
|
12697
12680
|
|
|
12698
|
-
const NEBULA_VERSION_HASH = "
|
|
12681
|
+
const NEBULA_VERSION_HASH = "4acd" ;
|
|
12699
12682
|
ClassNameGenerator.configure(componentName => {
|
|
12700
12683
|
return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
|
|
12701
12684
|
});
|
|
@@ -12927,7 +12910,7 @@
|
|
|
12927
12910
|
const appRef = React$1.createRef();
|
|
12928
12911
|
const element = document.createElement('div');
|
|
12929
12912
|
element.style.display = 'none';
|
|
12930
|
-
element.setAttribute('data-nebulajs-version', "5.1.
|
|
12913
|
+
element.setAttribute('data-nebulajs-version', "5.1.2" );
|
|
12931
12914
|
element.setAttribute('data-app-id', app.id);
|
|
12932
12915
|
document.body.appendChild(element);
|
|
12933
12916
|
if (context) {
|
|
@@ -27714,13 +27697,8 @@
|
|
|
27714
27697
|
setStoreValue
|
|
27715
27698
|
} = useDataStore(model);
|
|
27716
27699
|
const isRtl = direction === 'rtl';
|
|
27717
|
-
const cancel = () => selections.
|
|
27700
|
+
const cancel = () => selections.cancel();
|
|
27718
27701
|
const abortSearch = async () => {
|
|
27719
|
-
// When select is disabled we always want to allow abort (but not permitting selections).
|
|
27720
|
-
const preventAbort = selectionState.selectDisabled() ? false : !selections.isModal();
|
|
27721
|
-
if (preventAbort) {
|
|
27722
|
-
return;
|
|
27723
|
-
}
|
|
27724
27702
|
try {
|
|
27725
27703
|
await model.abortListObjectSearch(TREE_PATH);
|
|
27726
27704
|
} finally {
|
|
@@ -27728,9 +27706,10 @@
|
|
|
27728
27706
|
}
|
|
27729
27707
|
};
|
|
27730
27708
|
reactExports.useEffect(() => {
|
|
27731
|
-
if (
|
|
27732
|
-
abortSearch(); // abort when toggling off search
|
|
27709
|
+
if (visible) {
|
|
27710
|
+
return () => abortSearch(); // abort when toggling off search
|
|
27733
27711
|
}
|
|
27712
|
+
return () => {};
|
|
27734
27713
|
}, [visible]);
|
|
27735
27714
|
reactExports.useEffect(() => {
|
|
27736
27715
|
selections.on('deactivated', abortSearch);
|