@nebula.js/stardust 3.0.0-rc.1 → 3.0.0-rc.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 +104 -113
- 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 +104 -113
- 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 +10 -10
package/dist/stardust.dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v3.0.0-rc.
|
|
2
|
+
* @nebula.js/stardust v3.0.0-rc.2
|
|
3
3
|
* Copyright (c) 2022 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -17376,7 +17376,7 @@
|
|
|
17376
17376
|
return cache[key];
|
|
17377
17377
|
}
|
|
17378
17378
|
|
|
17379
|
-
const NEBULA_VERSION_HASH = "
|
|
17379
|
+
const NEBULA_VERSION_HASH = "6be9" ;
|
|
17380
17380
|
ClassNameGenerator.configure(componentName => {
|
|
17381
17381
|
|
|
17382
17382
|
return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
|
|
@@ -17949,7 +17949,7 @@
|
|
|
17949
17949
|
const appRef = React.createRef();
|
|
17950
17950
|
const element = document.createElement('div');
|
|
17951
17951
|
element.style.display = 'none';
|
|
17952
|
-
element.setAttribute('data-nebulajs-version', "3.0.0-rc.
|
|
17952
|
+
element.setAttribute('data-nebulajs-version', "3.0.0-rc.2" );
|
|
17953
17953
|
element.setAttribute('data-app-id', app.id);
|
|
17954
17954
|
document.body.appendChild(element);
|
|
17955
17955
|
ReactDOM.render( /*#__PURE__*/React.createElement(NebulaApp, {
|
|
@@ -33441,8 +33441,9 @@
|
|
|
33441
33441
|
ref
|
|
33442
33442
|
} = _ref3;
|
|
33443
33443
|
local.current.listRef = ref;
|
|
33444
|
-
return /*#__PURE__*/React.createElement(StyledFixedSizeList,
|
|
33445
|
-
|
|
33444
|
+
return /*#__PURE__*/React.createElement(StyledFixedSizeList // explicitly set this as it accepts horizontal as well, leading to confusion
|
|
33445
|
+
, {
|
|
33446
|
+
direction: direction === 'rtl' ? 'rtl' : 'ltr',
|
|
33446
33447
|
"data-testid": "fixed-size-list",
|
|
33447
33448
|
useIsScrolling: true,
|
|
33448
33449
|
height: listHeight,
|
|
@@ -43731,7 +43732,7 @@
|
|
|
43731
43732
|
var enigmaMocker_dev = {exports: {}};
|
|
43732
43733
|
|
|
43733
43734
|
/*
|
|
43734
|
-
* @nebula.js/enigma-mocker v3.0.0-
|
|
43735
|
+
* @nebula.js/enigma-mocker v3.0.0-rc.1
|
|
43735
43736
|
* Copyright (c) 2022 QlikTech International AB
|
|
43736
43737
|
* Released under the MIT license.
|
|
43737
43738
|
*/
|
|
@@ -43829,138 +43830,128 @@
|
|
|
43829
43830
|
return target;
|
|
43830
43831
|
}
|
|
43831
43832
|
|
|
43832
|
-
var
|
|
43833
|
-
var
|
|
43833
|
+
var hasOwn = Object.prototype.hasOwnProperty;
|
|
43834
|
+
var toStr = Object.prototype.toString;
|
|
43835
|
+
var defineProperty = Object.defineProperty;
|
|
43836
|
+
var gOPD = Object.getOwnPropertyDescriptor;
|
|
43834
43837
|
|
|
43835
|
-
function
|
|
43836
|
-
if (
|
|
43837
|
-
|
|
43838
|
-
|
|
43839
|
-
var toStr = Object.prototype.toString;
|
|
43840
|
-
var defineProperty = Object.defineProperty;
|
|
43841
|
-
var gOPD = Object.getOwnPropertyDescriptor;
|
|
43838
|
+
var isArray = function isArray(arr) {
|
|
43839
|
+
if (typeof Array.isArray === 'function') {
|
|
43840
|
+
return Array.isArray(arr);
|
|
43841
|
+
}
|
|
43842
43842
|
|
|
43843
|
-
|
|
43844
|
-
|
|
43845
|
-
return Array.isArray(arr);
|
|
43846
|
-
}
|
|
43843
|
+
return toStr.call(arr) === '[object Array]';
|
|
43844
|
+
};
|
|
43847
43845
|
|
|
43848
|
-
|
|
43849
|
-
|
|
43846
|
+
var isPlainObject = function isPlainObject(obj) {
|
|
43847
|
+
if (!obj || toStr.call(obj) !== '[object Object]') {
|
|
43848
|
+
return false;
|
|
43849
|
+
}
|
|
43850
43850
|
|
|
43851
|
-
var
|
|
43852
|
-
|
|
43853
|
-
|
|
43854
|
-
|
|
43851
|
+
var hasOwnConstructor = hasOwn.call(obj, 'constructor');
|
|
43852
|
+
var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf'); // Not own constructor property must be Object
|
|
43853
|
+
|
|
43854
|
+
if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {
|
|
43855
|
+
return false;
|
|
43856
|
+
} // Own properties are enumerated firstly, so to speed up,
|
|
43857
|
+
// if last one is own, then all properties are own.
|
|
43855
43858
|
|
|
43856
|
-
var hasOwnConstructor = hasOwn.call(obj, 'constructor');
|
|
43857
|
-
var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf'); // Not own constructor property must be Object
|
|
43858
43859
|
|
|
43859
|
-
|
|
43860
|
-
return false;
|
|
43861
|
-
} // Own properties are enumerated firstly, so to speed up,
|
|
43862
|
-
// if last one is own, then all properties are own.
|
|
43860
|
+
var key;
|
|
43863
43861
|
|
|
43862
|
+
for (key in obj) {
|
|
43863
|
+
/**/
|
|
43864
|
+
}
|
|
43864
43865
|
|
|
43865
|
-
|
|
43866
|
+
return typeof key === 'undefined' || hasOwn.call(obj, key);
|
|
43867
|
+
}; // If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target
|
|
43866
43868
|
|
|
43867
|
-
for (key in obj) {
|
|
43868
|
-
/**/
|
|
43869
|
-
}
|
|
43870
43869
|
|
|
43871
|
-
|
|
43872
|
-
|
|
43870
|
+
var setProperty = function setProperty(target, options) {
|
|
43871
|
+
if (defineProperty && options.name === '__proto__') {
|
|
43872
|
+
defineProperty(target, options.name, {
|
|
43873
|
+
enumerable: true,
|
|
43874
|
+
configurable: true,
|
|
43875
|
+
value: options.newValue,
|
|
43876
|
+
writable: true
|
|
43877
|
+
});
|
|
43878
|
+
} else {
|
|
43879
|
+
target[options.name] = options.newValue;
|
|
43880
|
+
}
|
|
43881
|
+
}; // Return undefined instead of __proto__ if '__proto__' is not an own property
|
|
43873
43882
|
|
|
43874
43883
|
|
|
43875
|
-
|
|
43876
|
-
|
|
43877
|
-
|
|
43878
|
-
|
|
43879
|
-
|
|
43880
|
-
|
|
43881
|
-
|
|
43882
|
-
|
|
43883
|
-
} else {
|
|
43884
|
-
target[options.name] = options.newValue;
|
|
43884
|
+
var getProperty = function getProperty(obj, name) {
|
|
43885
|
+
if (name === '__proto__') {
|
|
43886
|
+
if (!hasOwn.call(obj, name)) {
|
|
43887
|
+
return void 0;
|
|
43888
|
+
} else if (gOPD) {
|
|
43889
|
+
// In early versions of node, obj['__proto__'] is buggy when obj has
|
|
43890
|
+
// __proto__ as an own property. Object.getOwnPropertyDescriptor() works.
|
|
43891
|
+
return gOPD(obj, name).value;
|
|
43885
43892
|
}
|
|
43886
|
-
}
|
|
43893
|
+
}
|
|
43887
43894
|
|
|
43895
|
+
return obj[name];
|
|
43896
|
+
};
|
|
43888
43897
|
|
|
43889
|
-
|
|
43890
|
-
|
|
43891
|
-
|
|
43892
|
-
|
|
43893
|
-
|
|
43894
|
-
|
|
43895
|
-
// __proto__ as an own property. Object.getOwnPropertyDescriptor() works.
|
|
43896
|
-
return gOPD(obj, name).value;
|
|
43897
|
-
}
|
|
43898
|
-
}
|
|
43898
|
+
var extend = function extend() {
|
|
43899
|
+
var options, name, src, copy, copyIsArray, clone;
|
|
43900
|
+
var target = arguments[0];
|
|
43901
|
+
var i = 1;
|
|
43902
|
+
var length = arguments.length;
|
|
43903
|
+
var deep = false; // Handle a deep copy situation
|
|
43899
43904
|
|
|
43900
|
-
|
|
43901
|
-
|
|
43905
|
+
if (typeof target === 'boolean') {
|
|
43906
|
+
deep = target;
|
|
43907
|
+
target = arguments[1] || {}; // skip the boolean and the target
|
|
43902
43908
|
|
|
43903
|
-
|
|
43904
|
-
|
|
43905
|
-
var target = arguments[0];
|
|
43906
|
-
var i = 1;
|
|
43907
|
-
var length = arguments.length;
|
|
43908
|
-
var deep = false; // Handle a deep copy situation
|
|
43909
|
+
i = 2;
|
|
43910
|
+
}
|
|
43909
43911
|
|
|
43910
|
-
|
|
43911
|
-
|
|
43912
|
-
|
|
43912
|
+
if (target == null || typeof target !== 'object' && typeof target !== 'function') {
|
|
43913
|
+
target = {};
|
|
43914
|
+
}
|
|
43913
43915
|
|
|
43914
|
-
|
|
43915
|
-
|
|
43916
|
+
for (; i < length; ++i) {
|
|
43917
|
+
options = arguments[i]; // Only deal with non-null/undefined values
|
|
43916
43918
|
|
|
43917
|
-
if (
|
|
43918
|
-
|
|
43919
|
-
|
|
43919
|
+
if (options != null) {
|
|
43920
|
+
// Extend the base object
|
|
43921
|
+
for (name in options) {
|
|
43922
|
+
src = getProperty(target, name);
|
|
43923
|
+
copy = getProperty(options, name); // Prevent never-ending loop
|
|
43920
43924
|
|
|
43921
|
-
|
|
43922
|
-
|
|
43923
|
-
|
|
43924
|
-
|
|
43925
|
-
|
|
43926
|
-
|
|
43927
|
-
|
|
43928
|
-
|
|
43929
|
-
|
|
43930
|
-
|
|
43931
|
-
|
|
43932
|
-
|
|
43933
|
-
|
|
43934
|
-
|
|
43935
|
-
|
|
43936
|
-
|
|
43937
|
-
|
|
43938
|
-
|
|
43939
|
-
|
|
43940
|
-
|
|
43941
|
-
setProperty(target, {
|
|
43942
|
-
name: name,
|
|
43943
|
-
newValue: extend(deep, clone, copy)
|
|
43944
|
-
}); // Don't bring in undefined values
|
|
43945
|
-
} else if (typeof copy !== 'undefined') {
|
|
43946
|
-
setProperty(target, {
|
|
43947
|
-
name: name,
|
|
43948
|
-
newValue: copy
|
|
43949
|
-
});
|
|
43950
|
-
}
|
|
43925
|
+
if (target !== copy) {
|
|
43926
|
+
// Recurse if we're merging plain objects or arrays
|
|
43927
|
+
if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {
|
|
43928
|
+
if (copyIsArray) {
|
|
43929
|
+
copyIsArray = false;
|
|
43930
|
+
clone = src && isArray(src) ? src : [];
|
|
43931
|
+
} else {
|
|
43932
|
+
clone = src && isPlainObject(src) ? src : {};
|
|
43933
|
+
} // Never move original objects, clone them
|
|
43934
|
+
|
|
43935
|
+
|
|
43936
|
+
setProperty(target, {
|
|
43937
|
+
name: name,
|
|
43938
|
+
newValue: extend(deep, clone, copy)
|
|
43939
|
+
}); // Don't bring in undefined values
|
|
43940
|
+
} else if (typeof copy !== 'undefined') {
|
|
43941
|
+
setProperty(target, {
|
|
43942
|
+
name: name,
|
|
43943
|
+
newValue: copy
|
|
43944
|
+
});
|
|
43951
43945
|
}
|
|
43952
43946
|
}
|
|
43953
43947
|
}
|
|
43954
|
-
}
|
|
43955
|
-
|
|
43948
|
+
}
|
|
43949
|
+
} // Return the modified object
|
|
43956
43950
|
|
|
43957
|
-
return target;
|
|
43958
|
-
};
|
|
43959
43951
|
|
|
43960
|
-
return
|
|
43961
|
-
}
|
|
43952
|
+
return target;
|
|
43953
|
+
}; // eslint-disable-next-line no-undef
|
|
43962
43954
|
|
|
43963
|
-
var extendExports = requireExtend(); // eslint-disable-next-line no-undef
|
|
43964
43955
|
|
|
43965
43956
|
const crt = globalThis.crypto || {
|
|
43966
43957
|
getRandomValues: () => 123456
|
|
@@ -43973,7 +43964,7 @@
|
|
|
43973
43964
|
|
|
43974
43965
|
function CreateSessionObjectMock() {
|
|
43975
43966
|
return props => {
|
|
43976
|
-
const properties =
|
|
43967
|
+
const properties = extend({}, props);
|
|
43977
43968
|
properties.qInfo = properties.qInfo || {};
|
|
43978
43969
|
properties.qInfo.qId = properties.qInfo.qId || "mock-".concat(uuidv4());
|
|
43979
43970
|
const mockedInclusions = properties._mock;
|
|
@@ -43981,7 +43972,7 @@
|
|
|
43981
43972
|
|
|
43982
43973
|
if (mockedInclusions) {
|
|
43983
43974
|
delete properties._mock;
|
|
43984
|
-
layout =
|
|
43975
|
+
layout = extend({}, properties, mockedInclusions);
|
|
43985
43976
|
}
|
|
43986
43977
|
|
|
43987
43978
|
return Promise.resolve(_objectSpread2({
|