@nebula.js/stardust 2.4.1 → 2.5.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/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.5.0](https://github.com/qlik-oss/nebula.js/compare/v2.4.1...v2.5.0) (2022-02-15)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **jsdoc:** mark mount and unmount as instance functions ([#763](https://github.com/qlik-oss/nebula.js/issues/763)) ([51be0a4](https://github.com/qlik-oss/nebula.js/commit/51be0a4c580357c23defea37c00cca2798234fa8))
11
+
12
+ ### Features
13
+
14
+ - option to disable cell padding for each object ([#765](https://github.com/qlik-oss/nebula.js/issues/765)) ([31d9ab8](https://github.com/qlik-oss/nebula.js/commit/31d9ab8bd66349e7d407ec357fe443a72586abe6))
15
+
6
16
  ## [2.4.1](https://github.com/qlik-oss/nebula.js/compare/v2.4.0...v2.4.1) (2022-02-10)
7
17
 
8
18
  **Note:** Version bump only for package @nebula.js/stardust
package/core/esm/dev.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/stardust v2.4.1
2
+ * @nebula.js/stardust v2.5.0
3
3
  * Copyright (c) 2022 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -5234,7 +5234,7 @@ function useAppSelections(app) {
5234
5234
  return [appSelections, navState];
5235
5235
  }
5236
5236
 
5237
- const NEBULA_VERSION_HASH = "12a4" ;
5237
+ const NEBULA_VERSION_HASH = "daf8" ;
5238
5238
  let counter = 0;
5239
5239
  const NebulaApp = forwardRef((_ref, ref) => {
5240
5240
  let {
@@ -5294,7 +5294,7 @@ function boot(_ref2) {
5294
5294
  const appRef = React.createRef();
5295
5295
  const element = document.createElement('div');
5296
5296
  element.style.display = 'none';
5297
- element.setAttribute('data-nebulajs-version', "2.4.1" );
5297
+ element.setAttribute('data-nebulajs-version', "2.5.0" );
5298
5298
  element.setAttribute('data-app-id', app.id);
5299
5299
  document.body.appendChild(element);
5300
5300
  ReactDOM.render( /*#__PURE__*/React.createElement(NebulaApp, {
@@ -11694,6 +11694,9 @@ const Cell = forwardRef((_ref6, ref) => {
11694
11694
  const {
11695
11695
  nebbie
11696
11696
  } = halo.public;
11697
+ const {
11698
+ disableCellPadding = false
11699
+ } = halo.context || {};
11697
11700
  const {
11698
11701
  translator,
11699
11702
  language,
@@ -11953,12 +11956,13 @@ const Cell = forwardRef((_ref6, ref) => {
11953
11956
  container: true,
11954
11957
  direction: "column",
11955
11958
  spacing: 0,
11956
- style: _objectSpread2({
11959
+ style: _objectSpread2(_objectSpread2({
11957
11960
  position: 'relative',
11958
11961
  width: '100%',
11959
- height: '100%',
11962
+ height: '100%'
11963
+ }, !disableCellPadding ? {
11960
11964
  padding: theme.spacing(1)
11961
- }, state.longRunningQuery ? {
11965
+ } : {}), state.longRunningQuery ? {
11962
11966
  opacity: '0.3'
11963
11967
  } : {})
11964
11968
  }, cellNode && layout && state.sn && /*#__PURE__*/React.createElement(Header, {
@@ -12308,7 +12312,7 @@ async function init(model, optional, halo, initialError) {
12308
12312
  * @description Rendering configuration for creating and rendering a new object
12309
12313
  * @extends BaseConfig
12310
12314
  * @property {string} type
12311
- * @property {string} version
12315
+ * @property {string=} version
12312
12316
  * @property {(Field[])=} fields
12313
12317
  * @property {EngineAPI.IGenericObjectProperties=} properties
12314
12318
  */
@@ -16324,7 +16328,7 @@ function clearFromCache(name) {
16324
16328
  /**
16325
16329
  * @interface TypeInfo
16326
16330
  * @property {string} name
16327
- * @property {string} version
16331
+ * @property {string=} version
16328
16332
  * @property {LoadType} load
16329
16333
  * @property {object=} meta
16330
16334
  */
@@ -16484,6 +16488,7 @@ function create(_ref) {
16484
16488
 
16485
16489
  /**
16486
16490
  * @interface Context
16491
+ * @property {boolean=} disableCellPadding
16487
16492
  * @property {boolean=} keyboardNavigation
16488
16493
  * @property {object=} constraints
16489
16494
  * @property {boolean=} constraints.active
@@ -16503,7 +16508,8 @@ const DEFAULT_CONTEXT =
16503
16508
  /** @type {string=} */
16504
16509
  deviceType: 'auto',
16505
16510
  constraints: {},
16506
- keyboardNavigation: false
16511
+ keyboardNavigation: false,
16512
+ disableCellPadding: false
16507
16513
  };
16508
16514
  /**
16509
16515
  * @interface SnapshotConfiguration
@@ -16853,6 +16859,7 @@ function nuked() {
16853
16859
  * @param {object} [options.selectionsApi] Use a custom selectionsApi to customize how values are selected.
16854
16860
  * @param {ReceiverFunction} [options.update] A function which receives an update function which upon call will trigger a data fetch.
16855
16861
  * @since 1.1.0
16862
+ * @instance
16856
16863
  * @example
16857
16864
  * fieldInstance.mount(element);
16858
16865
  */
@@ -16880,6 +16887,7 @@ function nuked() {
16880
16887
  /**
16881
16888
  * Unmounts the field listbox from the DOM.
16882
16889
  * @since 1.1.0
16890
+ * @instance
16883
16891
  * @example
16884
16892
  * listbox.unmount();
16885
16893
  */