@nebula.js/stardust 3.0.0 → 3.0.2-alpha.0

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/stardust v3.0.0
2
+ * @nebula.js/stardust v3.0.2-alpha.0
3
3
  * Copyright (c) 2022 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -12326,7 +12326,7 @@ function create$3(definition) {
12326
12326
  return cache[key];
12327
12327
  }
12328
12328
 
12329
- const NEBULA_VERSION_HASH = "272f" ;
12329
+ const NEBULA_VERSION_HASH = "04ac" ;
12330
12330
  ClassNameGenerator.configure(componentName => {
12331
12331
 
12332
12332
  return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
@@ -12899,7 +12899,7 @@ function boot(_ref2) {
12899
12899
  const appRef = React__default.createRef();
12900
12900
  const element = document.createElement('div');
12901
12901
  element.style.display = 'none';
12902
- element.setAttribute('data-nebulajs-version', "3.0.0" );
12902
+ element.setAttribute('data-nebulajs-version', "3.0.2-alpha.0" );
12903
12903
  element.setAttribute('data-app-id', app.id);
12904
12904
  document.body.appendChild(element);
12905
12905
  ReactDOM.render( /*#__PURE__*/React__default.createElement(NebulaApp, {
@@ -18187,6 +18187,12 @@ function removeIndex(array, index) {
18187
18187
  return removeIdx;
18188
18188
  }
18189
18189
 
18190
+ const nxDimension = f => ({
18191
+ qDef: {
18192
+ qFieldDefs: [f]
18193
+ }
18194
+ });
18195
+
18190
18196
  const nxMeasure = f => ({
18191
18197
  qDef: {
18192
18198
  qDef: f
@@ -18216,10 +18222,9 @@ function hcHandler(_ref) {
18216
18222
  },
18217
18223
 
18218
18224
  addDimension(d) {
18219
- const dimension = _objectSpread2(_objectSpread2({}, d), {}, {
18225
+ const dimension = typeof d === 'string' ? nxDimension(d) : _objectSpread2(_objectSpread2({}, d), {}, {
18220
18226
  qDef: d.qDef || {}
18221
18227
  });
18222
-
18223
18228
  dimension.qDef.cId = dimension.qDef.cId || uid(); // ====== add default objects and arrays for NxDimension =====
18224
18229
  // TODO - apply autosort properties based on tags
18225
18230
 
@@ -19650,10 +19655,10 @@ const StyledGrid$1 = styled(Grid)(_ref => {
19650
19655
  theme
19651
19656
  } = _ref;
19652
19657
  return {
19653
- ["& .".concat(classes$1.containerStyle)]: {
19658
+ ["&.".concat(classes$1.containerStyle)]: {
19654
19659
  flexGrow: 0
19655
19660
  },
19656
- ["& .".concat(classes$1.containerTitleStyle)]: {
19661
+ ["&.".concat(classes$1.containerTitleStyle)]: {
19657
19662
  paddingBottom: theme.spacing(1)
19658
19663
  }
19659
19664
  };
@@ -25672,7 +25677,7 @@ var enigmaMocker = {exports: {}};
25672
25677
  var enigmaMocker_dev = {exports: {}};
25673
25678
 
25674
25679
  /*
25675
- * @nebula.js/enigma-mocker v3.0.0-rc.2
25680
+ * @nebula.js/enigma-mocker v3.0.1
25676
25681
  * Copyright (c) 2022 QlikTech International AB
25677
25682
  * Released under the MIT license.
25678
25683
  */