@nebula.js/stardust 4.1.0 → 4.2.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 v4.1.0
2
+ * @nebula.js/stardust v4.2.0
3
3
  * Copyright (c) 2023 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -750,8 +750,8 @@ function _defineProperty(obj, key, value) {
750
750
  }
751
751
  return obj;
752
752
  }
753
- function _extends$1() {
754
- _extends$1 = Object.assign ? Object.assign.bind() : function (target) {
753
+ function _extends$3() {
754
+ _extends$3 = Object.assign ? Object.assign.bind() : function (target) {
755
755
  for (var i = 1; i < arguments.length; i++) {
756
756
  var source = arguments[i];
757
757
  for (var key in source) {
@@ -762,9 +762,9 @@ function _extends$1() {
762
762
  }
763
763
  return target;
764
764
  };
765
- return _extends$1.apply(this, arguments);
765
+ return _extends$3.apply(this, arguments);
766
766
  }
767
- function _objectWithoutPropertiesLoose(source, excluded) {
767
+ function _objectWithoutPropertiesLoose$2(source, excluded) {
768
768
  if (source == null) return {};
769
769
  var target = {};
770
770
  var sourceKeys = Object.keys(source);
@@ -778,7 +778,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
778
778
  }
779
779
  function _objectWithoutProperties(source, excluded) {
780
780
  if (source == null) return {};
781
- var target = _objectWithoutPropertiesLoose(source, excluded);
781
+ var target = _objectWithoutPropertiesLoose$2(source, excluded);
782
782
  var key, i;
783
783
  if (Object.getOwnPropertySymbols) {
784
784
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -4300,6 +4300,34 @@ function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui')
4300
4300
 
4301
4301
  var THEME_ID = '$$material';
4302
4302
 
4303
+ function _extends$2() {
4304
+ _extends$2 = Object.assign ? Object.assign.bind() : function (target) {
4305
+ for (var i = 1; i < arguments.length; i++) {
4306
+ var source = arguments[i];
4307
+ for (var key in source) {
4308
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
4309
+ target[key] = source[key];
4310
+ }
4311
+ }
4312
+ }
4313
+ return target;
4314
+ };
4315
+ return _extends$2.apply(this, arguments);
4316
+ }
4317
+
4318
+ function _objectWithoutPropertiesLoose$1(source, excluded) {
4319
+ if (source == null) return {};
4320
+ var target = {};
4321
+ var sourceKeys = Object.keys(source);
4322
+ var key, i;
4323
+ for (i = 0; i < sourceKeys.length; i++) {
4324
+ key = sourceKeys[i];
4325
+ if (excluded.indexOf(key) >= 0) continue;
4326
+ target[key] = source[key];
4327
+ }
4328
+ return target;
4329
+ }
4330
+
4303
4331
  /*
4304
4332
 
4305
4333
  Based off glamor's StyleSheet, thanks Sunil ❤️
@@ -4443,6 +4471,7 @@ var RULESET = 'rule';
4443
4471
  var DECLARATION = 'decl';
4444
4472
  var IMPORT = '@import';
4445
4473
  var KEYFRAMES = '@keyframes';
4474
+ var LAYER = '@layer';
4446
4475
 
4447
4476
  /**
4448
4477
  * @param {number}
@@ -4872,8 +4901,8 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
4872
4901
  parse(characters, root, reference, reference, props, rulesets, length, points, children);
4873
4902
  else
4874
4903
  switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
4875
- // d m s
4876
- case 100: case 109: case 115:
4904
+ // d l m s
4905
+ case 100: case 108: case 109: case 115:
4877
4906
  parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children);
4878
4907
  break
4879
4908
  default:
@@ -4992,6 +5021,7 @@ function serialize (children, callback) {
4992
5021
  */
4993
5022
  function stringify (element, index, children, callback) {
4994
5023
  switch (element.type) {
5024
+ case LAYER: if (element.children.length) break
4995
5025
  case IMPORT: case DECLARATION: return element.return = element.return || element.value
4996
5026
  case COMMENT: return ''
4997
5027
  case KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'
@@ -5584,7 +5614,7 @@ function StyledEngineProvider(props) {
5584
5614
  }
5585
5615
 
5586
5616
  /**
5587
- * @mui/styled-engine v5.12.3
5617
+ * @mui/styled-engine v5.13.2
5588
5618
  *
5589
5619
  * @license MIT
5590
5620
  * This source code is licensed under the MIT license found in the
@@ -5605,8 +5635,35 @@ const internal_processStyles = (tag, processor) => {
5605
5635
  }
5606
5636
  };
5607
5637
 
5608
- // Sorted ASC by size. That's important.
5609
- // It can't be configured as it's used statically for propTypes.
5638
+ function _extends$1() {
5639
+ _extends$1 = Object.assign ? Object.assign.bind() : function (target) {
5640
+ for (var i = 1; i < arguments.length; i++) {
5641
+ var source = arguments[i];
5642
+ for (var key in source) {
5643
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
5644
+ target[key] = source[key];
5645
+ }
5646
+ }
5647
+ }
5648
+ return target;
5649
+ };
5650
+ return _extends$1.apply(this, arguments);
5651
+ }
5652
+
5653
+ function _objectWithoutPropertiesLoose(source, excluded) {
5654
+ if (source == null) return {};
5655
+ var target = {};
5656
+ var sourceKeys = Object.keys(source);
5657
+ var key, i;
5658
+ for (i = 0; i < sourceKeys.length; i++) {
5659
+ key = sourceKeys[i];
5660
+ if (excluded.indexOf(key) >= 0) continue;
5661
+ target[key] = source[key];
5662
+ }
5663
+ return target;
5664
+ }
5665
+
5666
+ const _excluded$f = ["values", "unit", "step"];
5610
5667
  const sortBreakpointsValues = values => {
5611
5668
  const breakpointsAsArray = Object.keys(values).map(key => ({
5612
5669
  key,
@@ -5615,34 +5672,33 @@ const sortBreakpointsValues = values => {
5615
5672
  // Sort in ascending order
5616
5673
  breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);
5617
5674
  return breakpointsAsArray.reduce((acc, obj) => {
5618
- return {
5619
- ...acc,
5675
+ return _extends$1({}, acc, {
5620
5676
  [obj.key]: obj.val
5621
- };
5677
+ });
5622
5678
  }, {});
5623
5679
  };
5624
5680
 
5625
5681
  // Keep in mind that @media is inclusive by the CSS specification.
5626
5682
  function createBreakpoints(breakpoints) {
5627
5683
  const {
5628
- // The breakpoint **start** at this value.
5629
- // For instance with the first breakpoint xs: [xs, sm).
5630
- values = {
5631
- xs: 0,
5632
- // phone
5633
- sm: 600,
5634
- // tablet
5635
- md: 900,
5636
- // small laptop
5637
- lg: 1200,
5638
- // desktop
5639
- xl: 1536 // large screen
5640
- },
5684
+ // The breakpoint **start** at this value.
5685
+ // For instance with the first breakpoint xs: [xs, sm).
5686
+ values = {
5687
+ xs: 0,
5688
+ // phone
5689
+ sm: 600,
5690
+ // tablet
5691
+ md: 900,
5692
+ // small laptop
5693
+ lg: 1200,
5694
+ // desktop
5695
+ xl: 1536 // large screen
5696
+ },
5641
5697
 
5642
- unit = 'px',
5643
- step = 5,
5644
- ...other
5645
- } = breakpoints;
5698
+ unit = 'px',
5699
+ step = 5
5700
+ } = breakpoints,
5701
+ other = _objectWithoutPropertiesLoose(breakpoints, _excluded$f);
5646
5702
  const sortedValues = sortBreakpointsValues(values);
5647
5703
  const keys = Object.keys(sortedValues);
5648
5704
  function up(key) {
@@ -5674,7 +5730,7 @@ function createBreakpoints(breakpoints) {
5674
5730
  }
5675
5731
  return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and');
5676
5732
  }
5677
- return {
5733
+ return _extends$1({
5678
5734
  keys,
5679
5735
  values: sortedValues,
5680
5736
  up,
@@ -5682,9 +5738,8 @@ function createBreakpoints(breakpoints) {
5682
5738
  between,
5683
5739
  only,
5684
5740
  not,
5685
- unit,
5686
- ...other
5687
- };
5741
+ unit
5742
+ }, other);
5688
5743
  }
5689
5744
 
5690
5745
  const shape = {
@@ -6629,14 +6684,15 @@ const styleFunctionSx = unstable_createStyleFunctionSx();
6629
6684
  styleFunctionSx.filterProps = ['sx'];
6630
6685
  var styleFunctionSx$1 = styleFunctionSx;
6631
6686
 
6687
+ const _excluded$e = ["breakpoints", "palette", "spacing", "shape"];
6632
6688
  function createTheme$1(options = {}, ...args) {
6633
6689
  const {
6634
- breakpoints: breakpointsInput = {},
6635
- palette: paletteInput = {},
6636
- spacing: spacingInput,
6637
- shape: shapeInput = {},
6638
- ...other
6639
- } = options;
6690
+ breakpoints: breakpointsInput = {},
6691
+ palette: paletteInput = {},
6692
+ spacing: spacingInput,
6693
+ shape: shapeInput = {}
6694
+ } = options,
6695
+ other = _objectWithoutPropertiesLoose(options, _excluded$e);
6640
6696
  const breakpoints = createBreakpoints(breakpointsInput);
6641
6697
  const spacing = createSpacing(spacingInput);
6642
6698
  let muiTheme = deepmerge({
@@ -6644,21 +6700,14 @@ function createTheme$1(options = {}, ...args) {
6644
6700
  direction: 'ltr',
6645
6701
  components: {},
6646
6702
  // Inject component definitions.
6647
- palette: {
6648
- mode: 'light',
6649
- ...paletteInput
6650
- },
6703
+ palette: _extends$1({
6704
+ mode: 'light'
6705
+ }, paletteInput),
6651
6706
  spacing,
6652
- shape: {
6653
- ...shape$1,
6654
- ...shapeInput
6655
- }
6707
+ shape: _extends$1({}, shape$1, shapeInput)
6656
6708
  }, other);
6657
6709
  muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
6658
- muiTheme.unstable_sxConfig = {
6659
- ...defaultSxConfig$1,
6660
- ...(other == null ? void 0 : other.unstable_sxConfig)
6661
- };
6710
+ muiTheme.unstable_sxConfig = _extends$1({}, defaultSxConfig$1, other == null ? void 0 : other.unstable_sxConfig);
6662
6711
  muiTheme.unstable_sx = function sx(props) {
6663
6712
  return styleFunctionSx$1({
6664
6713
  sx: props,
@@ -6683,6 +6732,7 @@ function useTheme$3(defaultTheme = systemDefaultTheme$1) {
6683
6732
 
6684
6733
  function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
6685
6734
 
6735
+ const _excluded$d = ["variant"];
6686
6736
  function isEmpty$2(string) {
6687
6737
  return string.length === 0;
6688
6738
  }
@@ -6694,9 +6744,9 @@ function isEmpty$2(string) {
6694
6744
  */
6695
6745
  function propsToClassKey(props) {
6696
6746
  const {
6697
- variant,
6698
- ...other
6699
- } = props;
6747
+ variant
6748
+ } = props,
6749
+ other = _objectWithoutPropertiesLoose(props, _excluded$d);
6700
6750
  let classKey = variant || '';
6701
6751
  Object.keys(other).sort().forEach(key => {
6702
6752
  if (key === 'color') {
@@ -6708,7 +6758,7 @@ function propsToClassKey(props) {
6708
6758
  return classKey;
6709
6759
  }
6710
6760
 
6711
- /* eslint-disable no-underscore-dangle */
6761
+ const _excluded$c = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
6712
6762
  function isEmpty$1(obj) {
6713
6763
  return Object.keys(obj).length === 0;
6714
6764
  }
@@ -6782,27 +6832,25 @@ function createStyled(input = {}) {
6782
6832
  slotShouldForwardProp = shouldForwardProp
6783
6833
  } = input;
6784
6834
  const systemSx = props => {
6785
- return styleFunctionSx$1({
6786
- ...props,
6787
- theme: resolveTheme({
6788
- ...props,
6835
+ return styleFunctionSx$1(_extends$1({}, props, {
6836
+ theme: resolveTheme(_extends$1({}, props, {
6789
6837
  defaultTheme,
6790
6838
  themeId
6791
- })
6792
- });
6839
+ }))
6840
+ }));
6793
6841
  };
6794
6842
  systemSx.__mui_systemSx = true;
6795
6843
  return (tag, inputOptions = {}) => {
6796
6844
  // Filter out the `sx` style function from the previous styled component to prevent unnecessary styles generated by the composite components.
6797
6845
  internal_processStyles(tag, styles => styles.filter(style => !(style != null && style.__mui_systemSx)));
6798
6846
  const {
6799
- name: componentName,
6800
- slot: componentSlot,
6801
- skipVariantsResolver: inputSkipVariantsResolver,
6802
- skipSx: inputSkipSx,
6803
- overridesResolver,
6804
- ...options
6805
- } = inputOptions;
6847
+ name: componentName,
6848
+ slot: componentSlot,
6849
+ skipVariantsResolver: inputSkipVariantsResolver,
6850
+ skipSx: inputSkipSx,
6851
+ overridesResolver
6852
+ } = inputOptions,
6853
+ options = _objectWithoutPropertiesLoose(inputOptions, _excluded$c);
6806
6854
 
6807
6855
  // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
6808
6856
  const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : componentSlot && componentSlot !== 'Root' || false;
@@ -6818,43 +6866,38 @@ function createStyled(input = {}) {
6818
6866
  // for string (html) tag, preserve the behavior in emotion & styled-components.
6819
6867
  shouldForwardPropOption = undefined;
6820
6868
  }
6821
- const defaultStyledResolver = styled$2(tag, {
6869
+ const defaultStyledResolver = styled$2(tag, _extends$1({
6822
6870
  shouldForwardProp: shouldForwardPropOption,
6823
- label,
6824
- ...options
6825
- });
6871
+ label
6872
+ }, options));
6826
6873
  const muiStyledResolver = (styleArg, ...expressions) => {
6827
6874
  const expressionsWithDefaultTheme = expressions ? expressions.map(stylesArg => {
6828
6875
  // On the server Emotion doesn't use React.forwardRef for creating components, so the created
6829
6876
  // component stays as a function. This condition makes sure that we do not interpolate functions
6830
6877
  // which are basically components used as a selectors.
6831
6878
  return typeof stylesArg === 'function' && stylesArg.__emotion_real !== stylesArg ? props => {
6832
- return stylesArg({
6833
- ...props,
6834
- theme: resolveTheme({
6835
- ...props,
6879
+ return stylesArg(_extends$1({}, props, {
6880
+ theme: resolveTheme(_extends$1({}, props, {
6836
6881
  defaultTheme,
6837
6882
  themeId
6838
- })
6839
- });
6883
+ }))
6884
+ }));
6840
6885
  } : stylesArg;
6841
6886
  }) : [];
6842
6887
  let transformedStyleArg = styleArg;
6843
6888
  if (componentName && overridesResolver) {
6844
6889
  expressionsWithDefaultTheme.push(props => {
6845
- const theme = resolveTheme({
6846
- ...props,
6890
+ const theme = resolveTheme(_extends$1({}, props, {
6847
6891
  defaultTheme,
6848
6892
  themeId
6849
- });
6893
+ }));
6850
6894
  const styleOverrides = getStyleOverrides(componentName, theme);
6851
6895
  if (styleOverrides) {
6852
6896
  const resolvedStyleOverrides = {};
6853
6897
  Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {
6854
- resolvedStyleOverrides[slotKey] = typeof slotStyle === 'function' ? slotStyle({
6855
- ...props,
6898
+ resolvedStyleOverrides[slotKey] = typeof slotStyle === 'function' ? slotStyle(_extends$1({}, props, {
6856
6899
  theme
6857
- }) : slotStyle;
6900
+ })) : slotStyle;
6858
6901
  });
6859
6902
  return overridesResolver(props, resolvedStyleOverrides);
6860
6903
  }
@@ -6863,11 +6906,10 @@ function createStyled(input = {}) {
6863
6906
  }
6864
6907
  if (componentName && !skipVariantsResolver) {
6865
6908
  expressionsWithDefaultTheme.push(props => {
6866
- const theme = resolveTheme({
6867
- ...props,
6909
+ const theme = resolveTheme(_extends$1({}, props, {
6868
6910
  defaultTheme,
6869
6911
  themeId
6870
- });
6912
+ }));
6871
6913
  return variantsResolver(props, getVariantStyles(componentName, theme), theme, componentName);
6872
6914
  });
6873
6915
  }
@@ -6886,14 +6928,12 @@ function createStyled(input = {}) {
6886
6928
  // which are basically components used as a selectors.
6887
6929
  styleArg.__emotion_real !== styleArg) {
6888
6930
  // If the type is function, we need to define the default theme.
6889
- transformedStyleArg = props => styleArg({
6890
- ...props,
6891
- theme: resolveTheme({
6892
- ...props,
6931
+ transformedStyleArg = props => styleArg(_extends$1({}, props, {
6932
+ theme: resolveTheme(_extends$1({}, props, {
6893
6933
  defaultTheme,
6894
6934
  themeId
6895
- })
6896
- });
6935
+ }))
6936
+ }));
6897
6937
  }
6898
6938
  const Component = defaultStyledResolver(transformedStyleArg, ...expressionsWithDefaultTheme);
6899
6939
  if (tag.muiName) {
@@ -7196,10 +7236,9 @@ function useThemeScoping(themeId, upperTheme, localTheme, isPrivate = false) {
7196
7236
  const resolvedTheme = themeId ? upperTheme[themeId] || upperTheme : upperTheme;
7197
7237
  if (typeof localTheme === 'function') {
7198
7238
  const mergedTheme = localTheme(resolvedTheme);
7199
- const result = themeId ? {
7200
- ...upperTheme,
7239
+ const result = themeId ? _extends$1({}, upperTheme, {
7201
7240
  [themeId]: mergedTheme
7202
- } : mergedTheme;
7241
+ }) : mergedTheme;
7203
7242
  // must return a function for the private theme to NOT merge with the upper theme.
7204
7243
  // see the test case "use provided theme from a callback" in ThemeProvider.test.js
7205
7244
  if (isPrivate) {
@@ -7207,13 +7246,9 @@ function useThemeScoping(themeId, upperTheme, localTheme, isPrivate = false) {
7207
7246
  }
7208
7247
  return result;
7209
7248
  }
7210
- return themeId ? {
7211
- ...upperTheme,
7249
+ return themeId ? _extends$1({}, upperTheme, {
7212
7250
  [themeId]: localTheme
7213
- } : {
7214
- ...upperTheme,
7215
- ...localTheme
7216
- };
7251
+ }) : _extends$1({}, upperTheme, localTheme);
7217
7252
  }, [themeId, upperTheme, localTheme, isPrivate]);
7218
7253
  }
7219
7254
 
@@ -7243,20 +7278,21 @@ function ThemeProvider$1(props) {
7243
7278
  });
7244
7279
  }
7245
7280
 
7281
+ const _excluded$b = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
7282
+ _excluded2$1 = ["type", "mode"];
7246
7283
  function adaptV4Theme(inputTheme) {
7247
7284
  const {
7248
- defaultProps = {},
7249
- mixins = {},
7250
- overrides = {},
7251
- palette = {},
7252
- props = {},
7253
- styleOverrides = {},
7254
- ...other
7255
- } = inputTheme;
7256
- const theme = {
7257
- ...other,
7285
+ defaultProps = {},
7286
+ mixins = {},
7287
+ overrides = {},
7288
+ palette = {},
7289
+ props = {},
7290
+ styleOverrides = {}
7291
+ } = inputTheme,
7292
+ other = _objectWithoutPropertiesLoose$1(inputTheme, _excluded$b);
7293
+ const theme = _extends$2({}, other, {
7258
7294
  components: {}
7259
- };
7295
+ });
7260
7296
 
7261
7297
  // default props
7262
7298
  Object.keys(defaultProps).forEach(component => {
@@ -7288,41 +7324,38 @@ function adaptV4Theme(inputTheme) {
7288
7324
  // theme.mixins.gutters
7289
7325
  const breakpoints = createBreakpoints(inputTheme.breakpoints || {});
7290
7326
  const spacing = theme.spacing;
7291
- theme.mixins = {
7327
+ theme.mixins = _extends$2({
7292
7328
  gutters: (styles = {}) => {
7293
- return {
7329
+ return _extends$2({
7294
7330
  paddingLeft: spacing(2),
7295
- paddingRight: spacing(2),
7296
- ...styles,
7297
- [breakpoints.up('sm')]: {
7331
+ paddingRight: spacing(2)
7332
+ }, styles, {
7333
+ [breakpoints.up('sm')]: _extends$2({
7298
7334
  paddingLeft: spacing(3),
7299
- paddingRight: spacing(3),
7300
- ...styles[breakpoints.up('sm')]
7301
- }
7302
- };
7303
- },
7304
- ...mixins
7305
- };
7335
+ paddingRight: spacing(3)
7336
+ }, styles[breakpoints.up('sm')])
7337
+ });
7338
+ }
7339
+ }, mixins);
7306
7340
  const {
7307
- type: typeInput,
7308
- mode: modeInput,
7309
- ...paletteRest
7310
- } = palette;
7341
+ type: typeInput,
7342
+ mode: modeInput
7343
+ } = palette,
7344
+ paletteRest = _objectWithoutPropertiesLoose$1(palette, _excluded2$1);
7311
7345
  const finalMode = modeInput || typeInput || 'light';
7312
- theme.palette = {
7346
+ theme.palette = _extends$2({
7313
7347
  // theme.palette.text.hint
7314
7348
  text: {
7315
7349
  hint: finalMode === 'dark' ? 'rgba(255, 255, 255, 0.5)' : 'rgba(0, 0, 0, 0.38)'
7316
7350
  },
7317
7351
  mode: finalMode,
7318
- type: finalMode,
7319
- ...paletteRest
7320
- };
7352
+ type: finalMode
7353
+ }, paletteRest);
7321
7354
  return theme;
7322
7355
  }
7323
7356
 
7324
7357
  function createMixins(breakpoints, mixins) {
7325
- return {
7358
+ return _extends$2({
7326
7359
  toolbar: {
7327
7360
  minHeight: 56,
7328
7361
  [breakpoints.up('xs')]: {
@@ -7333,9 +7366,8 @@ function createMixins(breakpoints, mixins) {
7333
7366
  [breakpoints.up('sm')]: {
7334
7367
  minHeight: 64
7335
7368
  }
7336
- },
7337
- ...mixins
7338
- };
7369
+ }
7370
+ }, mixins);
7339
7371
  }
7340
7372
 
7341
7373
  const common = {
@@ -7470,6 +7502,7 @@ const green = {
7470
7502
  };
7471
7503
  var green$1 = green;
7472
7504
 
7505
+ const _excluded$a = ["mode", "contrastThreshold", "tonalOffset"];
7473
7506
  const light$1 = {
7474
7507
  // The colors used to style the text.
7475
7508
  text: {
@@ -7634,11 +7667,11 @@ function getDefaultWarning(mode = 'light') {
7634
7667
  }
7635
7668
  function createPalette(palette) {
7636
7669
  const {
7637
- mode = 'light',
7638
- contrastThreshold = 3,
7639
- tonalOffset = 0.2,
7640
- ...other
7641
- } = palette;
7670
+ mode = 'light',
7671
+ contrastThreshold = 3,
7672
+ tonalOffset = 0.2
7673
+ } = palette,
7674
+ other = _objectWithoutPropertiesLoose$1(palette, _excluded$a);
7642
7675
  const primary = palette.primary || getDefaultPrimary(mode);
7643
7676
  const secondary = palette.secondary || getDefaultSecondary(mode);
7644
7677
  const error = palette.error || getDefaultError(mode);
@@ -7660,9 +7693,7 @@ function createPalette(palette) {
7660
7693
  lightShade = 300,
7661
7694
  darkShade = 700
7662
7695
  }) => {
7663
- color = {
7664
- ...color
7665
- };
7696
+ color = _extends$2({}, color);
7666
7697
  if (!color.main && color[mainShade]) {
7667
7698
  color.main = color[mainShade];
7668
7699
  }
@@ -7683,11 +7714,9 @@ function createPalette(palette) {
7683
7714
  dark: dark$1,
7684
7715
  light: light$1
7685
7716
  };
7686
- const paletteOutput = deepmerge({
7717
+ const paletteOutput = deepmerge(_extends$2({
7687
7718
  // A collection of common colors.
7688
- common: {
7689
- ...common$1
7690
- },
7719
+ common: _extends$2({}, common$1),
7691
7720
  // prevent mutable object.
7692
7721
  // The palette mode, can be light or dark.
7693
7722
  mode,
@@ -7736,13 +7765,12 @@ function createPalette(palette) {
7736
7765
  // Used by the functions below to shift a color's luminance by approximately
7737
7766
  // two indexes within its tonal palette.
7738
7767
  // E.g., shift from Red 500 to Red 300 or Red 700.
7739
- tonalOffset,
7740
- // The light and dark mode object.
7741
- ...modes[mode]
7742
- }, other);
7768
+ tonalOffset
7769
+ }, modes[mode]), other);
7743
7770
  return paletteOutput;
7744
7771
  }
7745
7772
 
7773
+ const _excluded$9 = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
7746
7774
  function round(value) {
7747
7775
  return Math.round(value * 1e5) / 1e5;
7748
7776
  }
@@ -7756,39 +7784,35 @@ const defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif';
7756
7784
  * @see @link{https://m2.material.io/design/typography/understanding-typography.html}
7757
7785
  */
7758
7786
  function createTypography(palette, typography) {
7759
- const {
7760
- fontFamily = defaultFontFamily,
7761
- // The default font size of the Material Specification.
7762
- fontSize = 14,
7763
- // px
7764
- fontWeightLight = 300,
7765
- fontWeightRegular = 400,
7766
- fontWeightMedium = 500,
7767
- fontWeightBold = 700,
7768
- // Tell MUI what's the font-size on the html element.
7769
- // 16px is the default font-size used by browsers.
7770
- htmlFontSize = 16,
7771
- // Apply the CSS properties to all the variants.
7772
- allVariants,
7773
- pxToRem: pxToRem2,
7774
- ...other
7775
- } = typeof typography === 'function' ? typography(palette) : typography;
7787
+ const _ref = typeof typography === 'function' ? typography(palette) : typography,
7788
+ {
7789
+ fontFamily = defaultFontFamily,
7790
+ // The default font size of the Material Specification.
7791
+ fontSize = 14,
7792
+ // px
7793
+ fontWeightLight = 300,
7794
+ fontWeightRegular = 400,
7795
+ fontWeightMedium = 500,
7796
+ fontWeightBold = 700,
7797
+ // Tell MUI what's the font-size on the html element.
7798
+ // 16px is the default font-size used by browsers.
7799
+ htmlFontSize = 16,
7800
+ // Apply the CSS properties to all the variants.
7801
+ allVariants,
7802
+ pxToRem: pxToRem2
7803
+ } = _ref,
7804
+ other = _objectWithoutPropertiesLoose$1(_ref, _excluded$9);
7776
7805
  const coef = fontSize / 14;
7777
7806
  const pxToRem = pxToRem2 || (size => `${size / htmlFontSize * coef}rem`);
7778
- const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => ({
7807
+ const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends$2({
7779
7808
  fontFamily,
7780
7809
  fontWeight,
7781
7810
  fontSize: pxToRem(size),
7782
7811
  // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
7783
- lineHeight,
7784
- // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
7785
- // across font-families can cause issues with the kerning.
7786
- ...(fontFamily === defaultFontFamily ? {
7787
- letterSpacing: `${round(letterSpacing / size)}em`
7788
- } : {}),
7789
- ...casing,
7790
- ...allVariants
7791
- });
7812
+ lineHeight
7813
+ }, fontFamily === defaultFontFamily ? {
7814
+ letterSpacing: `${round(letterSpacing / size)}em`
7815
+ } : {}, casing, allVariants);
7792
7816
  const variants = {
7793
7817
  h1: buildVariant(fontWeightLight, 96, 1.167, -1.5),
7794
7818
  h2: buildVariant(fontWeightLight, 60, 1.2, -0.5),
@@ -7811,7 +7835,7 @@ function createTypography(palette, typography) {
7811
7835
  letterSpacing: 'inherit'
7812
7836
  }
7813
7837
  };
7814
- return deepmerge({
7838
+ return deepmerge(_extends$2({
7815
7839
  htmlFontSize,
7816
7840
  pxToRem,
7817
7841
  fontFamily,
@@ -7819,9 +7843,8 @@ function createTypography(palette, typography) {
7819
7843
  fontWeightLight,
7820
7844
  fontWeightRegular,
7821
7845
  fontWeightMedium,
7822
- fontWeightBold,
7823
- ...variants
7824
- }, other, {
7846
+ fontWeightBold
7847
+ }, variants), other, {
7825
7848
  clone: false // No need to clone deep
7826
7849
  });
7827
7850
  }
@@ -7837,6 +7860,7 @@ function createShadow(...px) {
7837
7860
  const shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
7838
7861
  var shadows$1 = shadows;
7839
7862
 
7863
+ const _excluded$8 = ["duration", "easing", "delay"];
7840
7864
  // Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
7841
7865
  // to learn the context in which each easing should be used.
7842
7866
  const easing = {
@@ -7879,30 +7903,24 @@ function getAutoHeightDuration(height) {
7879
7903
  return Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10);
7880
7904
  }
7881
7905
  function createTransitions(inputTransitions) {
7882
- const mergedEasing = {
7883
- ...easing,
7884
- ...inputTransitions.easing
7885
- };
7886
- const mergedDuration = {
7887
- ...duration,
7888
- ...inputTransitions.duration
7889
- };
7906
+ const mergedEasing = _extends$2({}, easing, inputTransitions.easing);
7907
+ const mergedDuration = _extends$2({}, duration, inputTransitions.duration);
7890
7908
  const create = (props = ['all'], options = {}) => {
7891
7909
  const {
7892
- duration: durationOption = mergedDuration.standard,
7893
- easing: easingOption = mergedEasing.easeInOut,
7894
- delay = 0,
7895
- ...other
7896
- } = options;
7910
+ duration: durationOption = mergedDuration.standard,
7911
+ easing: easingOption = mergedEasing.easeInOut,
7912
+ delay = 0
7913
+ } = options;
7914
+ _objectWithoutPropertiesLoose$1(options, _excluded$8);
7897
7915
  return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');
7898
7916
  };
7899
- return {
7917
+ return _extends$2({
7900
7918
  getAutoHeightDuration,
7901
- create,
7902
- ...inputTransitions,
7919
+ create
7920
+ }, inputTransitions, {
7903
7921
  easing: mergedEasing,
7904
7922
  duration: mergedDuration
7905
- };
7923
+ });
7906
7924
  }
7907
7925
 
7908
7926
  // We need to centralize the zIndex definitions as they work
@@ -7919,17 +7937,15 @@ const zIndex = {
7919
7937
  };
7920
7938
  var zIndex$1 = zIndex;
7921
7939
 
7940
+ const _excluded$7 = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
7922
7941
  function createTheme(options = {}, ...args) {
7923
7942
  const {
7924
- breakpoints: breakpointsInput,
7925
- mixins: mixinsInput = {},
7926
- spacing: spacingInput,
7927
- palette: paletteInput = {},
7928
- transitions: transitionsInput = {},
7929
- typography: typographyInput = {},
7930
- shape: shapeInput,
7931
- ...other
7932
- } = options;
7943
+ mixins: mixinsInput = {},
7944
+ palette: paletteInput = {},
7945
+ transitions: transitionsInput = {},
7946
+ typography: typographyInput = {}
7947
+ } = options,
7948
+ other = _objectWithoutPropertiesLoose$1(options, _excluded$7);
7933
7949
  if (options.vars) {
7934
7950
  throw new Error(formatMuiErrorMessage(18));
7935
7951
  }
@@ -7942,16 +7958,11 @@ function createTheme(options = {}, ...args) {
7942
7958
  shadows: shadows$1.slice(),
7943
7959
  typography: createTypography(palette, typographyInput),
7944
7960
  transitions: createTransitions(transitionsInput),
7945
- zIndex: {
7946
- ...zIndex$1
7947
- }
7961
+ zIndex: _extends$2({}, zIndex$1)
7948
7962
  });
7949
7963
  muiTheme = deepmerge(muiTheme, other);
7950
7964
  muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
7951
- muiTheme.unstable_sxConfig = {
7952
- ...defaultSxConfig$1,
7953
- ...(other == null ? void 0 : other.unstable_sxConfig)
7954
- };
7965
+ muiTheme.unstable_sxConfig = _extends$2({}, defaultSxConfig$1, other == null ? void 0 : other.unstable_sxConfig);
7955
7966
  muiTheme.unstable_sx = function sx(props) {
7956
7967
  return styleFunctionSx$1({
7957
7968
  sx: props,
@@ -7989,16 +8000,17 @@ const styled = createStyled({
7989
8000
  });
7990
8001
  var styled$1 = styled;
7991
8002
 
7992
- function ThemeProvider({
7993
- theme: themeInput,
7994
- ...props
7995
- }) {
8003
+ const _excluded$6 = ["theme"];
8004
+ function ThemeProvider(_ref) {
8005
+ let {
8006
+ theme: themeInput
8007
+ } = _ref,
8008
+ props = _objectWithoutPropertiesLoose$1(_ref, _excluded$6);
7996
8009
  const scopedTheme = themeInput[THEME_ID];
7997
- return /*#__PURE__*/jsxRuntimeExports.jsx(ThemeProvider$1, {
7998
- ...props,
8010
+ return /*#__PURE__*/jsxRuntimeExports.jsx(ThemeProvider$1, _extends$2({}, props, {
7999
8011
  themeId: scopedTheme ? THEME_ID : undefined,
8000
8012
  theme: scopedTheme || themeInput
8001
- });
8013
+ }));
8002
8014
  }
8003
8015
 
8004
8016
  function _extends() {
@@ -8361,7 +8373,7 @@ function create$3(definition) {
8361
8373
  return cache[key];
8362
8374
  }
8363
8375
 
8364
- const NEBULA_VERSION_HASH = "8048" ;
8376
+ const NEBULA_VERSION_HASH = "28e4" ;
8365
8377
  ClassNameGenerator$1.configure(componentName => {
8366
8378
  return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
8367
8379
  });
@@ -8608,7 +8620,7 @@ function boot(_ref2) {
8608
8620
  const appRef = React__default.createRef();
8609
8621
  const element = document.createElement('div');
8610
8622
  element.style.display = 'none';
8611
- element.setAttribute('data-nebulajs-version', "4.1.0" );
8623
+ element.setAttribute('data-nebulajs-version', "4.2.0" );
8612
8624
  element.setAttribute('data-app-id', app.id);
8613
8625
  document.body.appendChild(element);
8614
8626
  if (context) {
@@ -9013,7 +9025,7 @@ function SvgIcon$2(_ref) {
9013
9025
  return (
9014
9026
  /*#__PURE__*/
9015
9027
  // eslint-disable-next-line react/no-array-index-key
9016
- React__default.createElement(Type, _extends$1({
9028
+ React__default.createElement(Type, _extends$3({
9017
9029
  key: ix
9018
9030
  }, attrs))
9019
9031
  );
@@ -9794,6 +9806,7 @@ const getValueStateClasses = _ref2 => {
9794
9806
  };
9795
9807
 
9796
9808
  const CELL_PADDING_LEFT = 9;
9809
+ const HEADER_PADDING_RIGHT = 4;
9797
9810
  const ICON_WIDTH = 12;
9798
9811
  const ICON_PADDING = 7;
9799
9812
  const BUTTON_ICON_WIDTH = ICON_WIDTH + (ICON_PADDING + 1) * 2; // 1 is border width
@@ -12710,7 +12723,7 @@ function getListBoxComponents(_ref) {
12710
12723
  local.current.listRef = ref;
12711
12724
  return /*#__PURE__*/React__default.createElement(StyledFixedSizeList
12712
12725
  // eslint-disable-next-line react/jsx-props-no-spreading
12713
- , _extends$1({}, commonComponentOptions, {
12726
+ , _extends$3({}, commonComponentOptions, {
12714
12727
  dataTestid: "fixed-size-list",
12715
12728
  scrollDisabled: constraints === null || constraints === void 0 ? void 0 : constraints.active,
12716
12729
  height: listHeight,
@@ -12787,7 +12800,7 @@ function getListBoxComponents(_ref) {
12787
12800
  };
12788
12801
  return /*#__PURE__*/React__default.createElement(StyledFixedSizeGrid
12789
12802
  // eslint-disable-next-line react/jsx-props-no-spreading
12790
- , _extends$1({}, commonComponentOptions, {
12803
+ , _extends$3({}, commonComponentOptions, {
12791
12804
  dataTestid: "fixed-size-grid",
12792
12805
  scrollDisabled: constraints === null || constraints === void 0 ? void 0 : constraints.active,
12793
12806
  height: gridHeight,
@@ -13202,6 +13215,7 @@ function getSvgIconUtilityClass(slot) {
13202
13215
  }
13203
13216
  generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
13204
13217
 
13218
+ const _excluded$5 = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
13205
13219
  const useUtilityClasses = ownerState => {
13206
13220
  const {
13207
13221
  color,
@@ -13257,58 +13271,56 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
13257
13271
  name: 'MuiSvgIcon'
13258
13272
  });
13259
13273
  const {
13260
- children,
13261
- className,
13262
- color = 'inherit',
13263
- component = 'svg',
13264
- fontSize = 'medium',
13265
- htmlColor,
13266
- inheritViewBox = false,
13267
- titleAccess,
13268
- viewBox = '0 0 24 24',
13269
- ...other
13270
- } = props;
13271
- const ownerState = {
13272
- ...props,
13274
+ children,
13275
+ className,
13276
+ color = 'inherit',
13277
+ component = 'svg',
13278
+ fontSize = 'medium',
13279
+ htmlColor,
13280
+ inheritViewBox = false,
13281
+ titleAccess,
13282
+ viewBox = '0 0 24 24'
13283
+ } = props,
13284
+ other = _objectWithoutPropertiesLoose$1(props, _excluded$5);
13285
+ const ownerState = _extends$2({}, props, {
13273
13286
  color,
13274
13287
  component,
13275
13288
  fontSize,
13276
13289
  instanceFontSize: inProps.fontSize,
13277
13290
  inheritViewBox,
13278
13291
  viewBox
13279
- };
13292
+ });
13280
13293
  const more = {};
13281
13294
  if (!inheritViewBox) {
13282
13295
  more.viewBox = viewBox;
13283
13296
  }
13284
13297
  const classes = useUtilityClasses(ownerState);
13285
- return /*#__PURE__*/jsxRuntimeExports.jsxs(SvgIconRoot, {
13298
+ return /*#__PURE__*/jsxRuntimeExports.jsxs(SvgIconRoot, _extends$2({
13286
13299
  as: component,
13287
13300
  className: clsx(classes.root, className),
13288
13301
  focusable: "false",
13289
13302
  color: htmlColor,
13290
13303
  "aria-hidden": titleAccess ? undefined : true,
13291
13304
  role: titleAccess ? 'img' : undefined,
13292
- ref: ref,
13293
- ...more,
13294
- ...other,
13305
+ ref: ref
13306
+ }, more, other, {
13295
13307
  ownerState: ownerState,
13296
13308
  children: [children, titleAccess ? /*#__PURE__*/jsxRuntimeExports.jsx("title", {
13297
13309
  children: titleAccess
13298
13310
  }) : null]
13299
- });
13311
+ }));
13300
13312
  });
13301
13313
  SvgIcon.muiName = 'SvgIcon';
13302
13314
  var SvgIcon$1 = SvgIcon;
13303
13315
 
13304
13316
  function createSvgIcon(path, displayName) {
13305
13317
  function Component(props, ref) {
13306
- return /*#__PURE__*/jsxRuntimeExports.jsx(SvgIcon$1, {
13318
+ return /*#__PURE__*/jsxRuntimeExports.jsx(SvgIcon$1, _extends$2({
13307
13319
  "data-testid": `${displayName}Icon`,
13308
- ref: ref,
13309
- ...props,
13320
+ ref: ref
13321
+ }, props, {
13310
13322
  children: path
13311
- });
13323
+ }));
13312
13324
  }
13313
13325
  Component.muiName = SvgIcon$1.muiName;
13314
13326
  return /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Component));
@@ -14185,7 +14197,7 @@ const More$1 = React__default.forwardRef((_ref3, ref) => {
14185
14197
  const autoFocusIndex = actions.findIndex(action => !action.disabled);
14186
14198
  return showActions && /*#__PURE__*/React__default.createElement(StyledPopover$1
14187
14199
  // eslint-disable-next-line react/jsx-props-no-spreading
14188
- , _extends$1({}, popoverProps, {
14200
+ , _extends$3({}, popoverProps, {
14189
14201
  onClose: onCloseOrActionClick,
14190
14202
  ref: ref,
14191
14203
  open: show,
@@ -14303,9 +14315,7 @@ function getActionsKeyDownHandler(_ref) {
14303
14315
  const PREFIX$7 = 'ActionsToolbar';
14304
14316
  const classes$7 = {
14305
14317
  item: "".concat(PREFIX$7, "-item"),
14306
- itemSpacing: "".concat(PREFIX$7, "-itemSpacing"),
14307
- firstItemSpacing: "".concat(PREFIX$7, "-firstItemSpacing"),
14308
- lastItemSpacing: "".concat(PREFIX$7, "-lastItemSpacing")
14318
+ itemSpacing: "".concat(PREFIX$7, "-itemSpacing")
14309
14319
  };
14310
14320
  const StyledPopover = styled$1(Popover)(_ref => {
14311
14321
  let {
@@ -14313,13 +14323,7 @@ const StyledPopover = styled$1(Popover)(_ref => {
14313
14323
  } = _ref;
14314
14324
  return {
14315
14325
  ["& .".concat(classes$7.itemSpacing)]: {
14316
- padding: theme.spacing(0, 0.5)
14317
- },
14318
- ["& .".concat(classes$7.firstItemSpacing)]: {
14319
- padding: theme.spacing(0, 0.5, 0, 0)
14320
- },
14321
- ["& .".concat(classes$7.lastItemSpacing)]: {
14322
- padding: theme.spacing(0, 0, 0, 0.5)
14326
+ padding: theme.spacing(0, 0.25)
14323
14327
  }
14324
14328
  };
14325
14329
  });
@@ -14338,8 +14342,6 @@ const ActionsGroup = React__default.forwardRef((_ref2, ref) => {
14338
14342
  className,
14339
14343
  ariaExpanded = false,
14340
14344
  actions = [],
14341
- first = false,
14342
- last = false,
14343
14345
  addAnchor = false,
14344
14346
  isRtl = false
14345
14347
  } = _ref2;
@@ -14350,31 +14352,17 @@ const ActionsGroup = React__default.forwardRef((_ref2, ref) => {
14350
14352
  flexDirection: isRtl ? 'row-reverse' : 'row',
14351
14353
  wrap: "nowrap",
14352
14354
  className: className
14353
- }, actions.map((e, ix) => {
14354
- let cls = [];
14355
- const isFirstItem = first && ix === 0;
14356
- const isLastItem = last && actions.length - 1 === ix;
14357
- if (isFirstItem && !isLastItem) {
14358
- cls = [classes$7.firstItemSpacing, classes$7.item];
14359
- }
14360
- if (isLastItem && !isFirstItem) {
14361
- cls = [...cls, classes$7.lastItemSpacing, classes$7.item];
14362
- }
14363
- if (!isFirstItem && !isLastItem && cls.length === 0) {
14364
- cls = [classes$7.itemSpacing, classes$7.item];
14365
- }
14366
- return /*#__PURE__*/React__default.createElement(Grid, {
14367
- item: true,
14368
- key: e.key,
14369
- className: cls.join(' ').trim()
14370
- }, /*#__PURE__*/React__default.createElement(Item, {
14371
- ariaExpanded: ariaExpanded,
14372
- key: e.key,
14373
- item: e,
14374
- ref: ix === 0 ? ref : null,
14375
- addAnchor: addAnchor
14376
- }));
14377
- })) : null;
14355
+ }, actions.map((e, ix) => /*#__PURE__*/React__default.createElement(Grid, {
14356
+ item: true,
14357
+ key: e.key,
14358
+ className: "".concat(classes$7.itemSpacing, " ").concat(classes$7.item)
14359
+ }, /*#__PURE__*/React__default.createElement(Item, {
14360
+ ariaExpanded: ariaExpanded,
14361
+ key: e.key,
14362
+ item: e,
14363
+ ref: ix === 0 ? ref : null,
14364
+ addAnchor: addAnchor
14365
+ })))) : null;
14378
14366
  });
14379
14367
  const popoverStyle = {
14380
14368
  pointerEvents: 'none'
@@ -14418,7 +14406,7 @@ function ActionsToolbar(_ref3) {
14418
14406
  } = useContext(InstanceContext);
14419
14407
  const [showMoreItems, setShowMoreItems] = useState$1(false);
14420
14408
  const popoverAnchorOrigin = {
14421
- vertical: 7,
14409
+ vertical: 12,
14422
14410
  horizontal: ((_popover$anchorEl$cli = (_popover$anchorEl = popover.anchorEl) === null || _popover$anchorEl === void 0 ? void 0 : _popover$anchorEl.clientWidth) !== null && _popover$anchorEl$cli !== void 0 ? _popover$anchorEl$cli : 0) - 7
14423
14411
  };
14424
14412
  const actionsRef = useRef();
@@ -14494,17 +14482,13 @@ function ActionsToolbar(_ref3) {
14494
14482
  flexDirection: isRtl ? 'row-reverse' : 'row'
14495
14483
  }
14496
14484
  }, showActions && /*#__PURE__*/React__default.createElement(ActionsGroup, {
14497
- actions: newActions,
14498
- first: true,
14499
- last: !showMore && !selections.show
14485
+ actions: newActions
14500
14486
  }), showMore && /*#__PURE__*/React__default.createElement(ActionsGroup, {
14501
14487
  id: "actions-toolbar-show-more",
14502
14488
  "data-testid": "actions-toolbar-show-more",
14503
14489
  ref: moreRef,
14504
14490
  ariaExpanded: showMoreItems,
14505
14491
  actions: [moreItem],
14506
- first: !showActions,
14507
- last: !selections.show,
14508
14492
  addAnchor: true
14509
14493
  }), showDivider && /*#__PURE__*/React__default.createElement(Grid, {
14510
14494
  item: true,
@@ -14515,8 +14499,6 @@ function ActionsToolbar(_ref3) {
14515
14499
  })), selections.show && /*#__PURE__*/React__default.createElement(ActionsGroup, {
14516
14500
  className: "actions-toolbar-default-actions",
14517
14501
  actions: defaultSelectionActions,
14518
- first: !showActions && !showMore,
14519
- last: true,
14520
14502
  isRtl: isRtl
14521
14503
  }), showMoreItems && /*#__PURE__*/React__default.createElement(More$1, {
14522
14504
  show: showMoreItems,
@@ -14542,7 +14524,7 @@ function ActionsToolbar(_ref3) {
14542
14524
  className: ActionToolbarElement.className,
14543
14525
  style: {
14544
14526
  pointerEvents: 'auto',
14545
- padding: theme.spacing(0.8)
14527
+ padding: theme.spacing(0.5, 0.25)
14546
14528
  }
14547
14529
  }
14548
14530
  }, Actions) : show && Actions;
@@ -16141,6 +16123,9 @@ typeof globalThis !== 'undefined'
16141
16123
  : typeof global !== 'undefined'
16142
16124
  ? global
16143
16125
  : {};
16126
+ function $parcel$export(e, n, v, s) {
16127
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
16128
+ }
16144
16129
 
16145
16130
  var $3e40d2fd7fdb47d2$exports = {};
16146
16131
  /**
@@ -16439,7 +16424,7 @@ class $6e2bb92d9db3b0c8$export$9d94f4ee1d930ff extends (Component) {
16439
16424
  }
16440
16425
  }
16441
16426
  render() {
16442
- const { children: children , defaultHeight: defaultHeight , defaultWidth: defaultWidth , disableHeight: disableHeight , disableWidth: disableWidth , nonce: nonce , onResize: onResize , style: style , tagName: tagName = "div" , ...rest } = this.props;
16427
+ const { children: children , defaultHeight: defaultHeight , defaultWidth: defaultWidth , disableHeight: disableHeight = false , disableWidth: disableWidth = false , nonce: nonce , onResize: onResize , style: style = {} , tagName: tagName = "div" , ...rest } = this.props;
16443
16428
  const { height: height , scaledHeight: scaledHeight , scaledWidth: scaledWidth , width: width } = this.state;
16444
16429
  // Outer div should not force width/height since that may prevent containers from shrinking.
16445
16430
  // Inner component should overflow and use calculated width/height.
@@ -16473,12 +16458,22 @@ class $6e2bb92d9db3b0c8$export$9d94f4ee1d930ff extends (Component) {
16473
16458
  }, !bailoutOnChildren && children(childParams));
16474
16459
  }
16475
16460
  }
16476
- $6e2bb92d9db3b0c8$var$_defineProperty($6e2bb92d9db3b0c8$export$9d94f4ee1d930ff, "defaultProps", {
16477
- onResize: ()=>{},
16478
- disableHeight: false,
16479
- disableWidth: false,
16480
- style: {}
16481
- });
16461
+
16462
+
16463
+ var $81c1b644006d48ec$exports = {};
16464
+
16465
+ $parcel$export($81c1b644006d48ec$exports, "isHeightAndWidthProps", () => $81c1b644006d48ec$export$6a9e233b3261c1f);
16466
+ $parcel$export($81c1b644006d48ec$exports, "isHeightOnlyProps", () => $81c1b644006d48ec$export$232069b3e05ce32a);
16467
+ $parcel$export($81c1b644006d48ec$exports, "isWidthOnlyProps", () => $81c1b644006d48ec$export$10ec32941a097f36);
16468
+ function $81c1b644006d48ec$export$6a9e233b3261c1f(props) {
16469
+ return props && props.disableHeight !== true && props.disableWidth !== true;
16470
+ }
16471
+ function $81c1b644006d48ec$export$232069b3e05ce32a(props) {
16472
+ return props && props.disableHeight !== true && props.disableWidth === true;
16473
+ }
16474
+ function $81c1b644006d48ec$export$10ec32941a097f36(props) {
16475
+ return props && props.disableHeight === true && props.disableWidth !== true;
16476
+ }
16482
16477
 
16483
16478
 
16484
16479
  var $149c1bd638913645$export$2e2bcd8739ae039 = ($6e2bb92d9db3b0c8$export$9d94f4ee1d930ff);
@@ -16735,11 +16730,14 @@ function showToolbarDetached(_ref) {
16735
16730
  let {
16736
16731
  containerRect,
16737
16732
  titleRef,
16738
- iconsWidth
16733
+ iconsWidth,
16734
+ headerPaddingLeft,
16735
+ headerPaddingRight
16739
16736
  } = _ref;
16740
16737
  const containerWidth = containerRect.width;
16741
- const padding = 16;
16742
- const contentWidth = ((_titleRef$current$cli = titleRef === null || titleRef === void 0 ? void 0 : (_titleRef$current = titleRef.current) === null || _titleRef$current === void 0 ? void 0 : _titleRef$current.clientWidth) !== null && _titleRef$current$cli !== void 0 ? _titleRef$current$cli : 0) + iconsWidth + padding;
16738
+ const preventTruncation = 2;
16739
+ const padding = headerPaddingLeft + headerPaddingRight;
16740
+ const contentWidth = ((_titleRef$current$cli = titleRef === null || titleRef === void 0 ? void 0 : (_titleRef$current = titleRef.current) === null || _titleRef$current === void 0 ? void 0 : _titleRef$current.clientWidth) !== null && _titleRef$current$cli !== void 0 ? _titleRef$current$cli : 0) + iconsWidth + padding + preventTruncation;
16743
16741
  const actionToolbarWidth = 128;
16744
16742
  const notSufficientSpace = containerWidth < contentWidth + actionToolbarWidth;
16745
16743
  const isTruncated = (titleRef === null || titleRef === void 0 ? void 0 : (_titleRef$current2 = titleRef.current) === null || _titleRef$current2 === void 0 ? void 0 : _titleRef$current2.scrollWidth) > (titleRef === null || titleRef === void 0 ? void 0 : (_titleRef$current3 = titleRef.current) === null || _titleRef$current3 === void 0 ? void 0 : _titleRef$current3.offsetWidth);
@@ -17033,7 +17031,9 @@ function ListBoxInline(_ref4) {
17033
17031
  const isDrillDown = (layout === null || layout === void 0 ? void 0 : (_layout$qListObject2 = layout.qListObject) === null || _layout$qListObject2 === void 0 ? void 0 : (_layout$qListObject2$ = _layout$qListObject2.qDimensionInfo) === null || _layout$qListObject2$ === void 0 ? void 0 : _layout$qListObject2$.qGrouping) === 'H';
17034
17032
  const showIcons = showSearchOrLockIcon || isDrillDown;
17035
17033
  const iconsWidth = (showSearchOrLockIcon ? BUTTON_ICON_WIDTH : 0) + (isDrillDown ? ICON_WIDTH + ICON_PADDING : 0); // Drill-down icon needs padding right so there is space between the icon and the title
17036
-
17034
+ const isRtl = direction === 'rtl';
17035
+ const headerPaddingLeft = CELL_PADDING_LEFT - (showSearchOrLockIcon ? ICON_PADDING : 0);
17036
+ const headerPaddingRight = isRtl ? CELL_PADDING_LEFT - (showIcons ? ICON_PADDING : 0) : HEADER_PADDING_RIGHT;
17037
17037
  useEffect$1(() => {
17038
17038
  if (!titleRef.current || !containerRect) {
17039
17039
  return;
@@ -17041,14 +17041,15 @@ function ListBoxInline(_ref4) {
17041
17041
  const isDetached = showToolbarDetached({
17042
17042
  containerRect,
17043
17043
  titleRef,
17044
- iconsWidth
17044
+ iconsWidth,
17045
+ headerPaddingLeft,
17046
+ headerPaddingRight
17045
17047
  });
17046
17048
  setIsToolbarDetached(isDetached);
17047
17049
  }, [titleRef.current, containerRect]);
17048
17050
  if (!model || !layout || !translator) {
17049
17051
  return null;
17050
17052
  }
17051
- const isRtl = direction === 'rtl';
17052
17053
  const listboxSelectionToolbarItems = createListboxSelectionToolbar({
17053
17054
  layout,
17054
17055
  model,
@@ -17086,8 +17087,6 @@ function ListBoxInline(_ref4) {
17086
17087
  keyboard
17087
17088
  });
17088
17089
  const shouldAutoFocus = searchVisible && search === 'toggle';
17089
- const headerPaddingLeft = CELL_PADDING_LEFT - (showSearchOrLockIcon ? ICON_PADDING : 0);
17090
- const headerPaddingRight = isRtl ? CELL_PADDING_LEFT - (showIcons ? ICON_PADDING : 0) : 0;
17091
17090
 
17092
17091
  // Add a container padding for grid mode to harmonize with the grid item margins (should sum to 8px).
17093
17092
  const isGridMode = (layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.dataLayout) === 'grid';
@@ -17134,7 +17133,7 @@ function ListBoxInline(_ref4) {
17134
17133
  if (isInvalid) {
17135
17134
  renderedCallback === null || renderedCallback === void 0 ? void 0 : renderedCallback();
17136
17135
  }
17137
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, showDetachedToolbarOnly && /*#__PURE__*/React__default.createElement(ActionsToolbar, _extends$1({
17136
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, showDetachedToolbarOnly && /*#__PURE__*/React__default.createElement(ActionsToolbar, _extends$3({
17138
17137
  direction: direction
17139
17138
  }, getActionToolbarProps(true))), /*#__PURE__*/React__default.createElement(StyledGrid$3, {
17140
17139
  className: "listbox-container",
@@ -17191,7 +17190,7 @@ function ListBoxInline(_ref4) {
17191
17190
  title: layout.title
17192
17191
  }, layout.title)), /*#__PURE__*/React__default.createElement(Grid, {
17193
17192
  item: true
17194
- }, /*#__PURE__*/React__default.createElement(ActionsToolbar, _extends$1({
17193
+ }, /*#__PURE__*/React__default.createElement(ActionsToolbar, _extends$3({
17195
17194
  direction: direction
17196
17195
  }, getActionToolbarProps(isToolbarDetached))))), /*#__PURE__*/React__default.createElement(Grid, {
17197
17196
  item: true,
@@ -19184,13 +19183,13 @@ function Progress(_ref2) {
19184
19183
  const s = SIZES[size];
19185
19184
  return /*#__PURE__*/React__default.createElement(Root, {
19186
19185
  className: classes$3.root
19187
- }, /*#__PURE__*/React__default.createElement(CircularProgress, _extends$1({
19186
+ }, /*#__PURE__*/React__default.createElement(CircularProgress, _extends$3({
19188
19187
  variant: "determinate",
19189
19188
  value: 100,
19190
19189
  className: classes$3.back,
19191
19190
  size: s,
19192
19191
  thickness: 3
19193
- }, props)), /*#__PURE__*/React__default.createElement(CircularProgress, _extends$1({
19192
+ }, props)), /*#__PURE__*/React__default.createElement(CircularProgress, _extends$3({
19194
19193
  variant: "indeterminate",
19195
19194
  disableShrink: true,
19196
19195
  className: classes$3.front,
@@ -19240,7 +19239,7 @@ function Cancel(_ref) {
19240
19239
  variant: "h6",
19241
19240
  align: "center",
19242
19241
  "data-tid": "update-active"
19243
- }, translator.get('Object.Update.Active')))), /*#__PURE__*/React__default.createElement(Grid, _extends$1({
19242
+ }, translator.get('Object.Update.Active')))), /*#__PURE__*/React__default.createElement(Grid, _extends$3({
19244
19243
  item: true
19245
19244
  }, props), /*#__PURE__*/React__default.createElement(Button, {
19246
19245
  variant: "contained",
@@ -19267,7 +19266,7 @@ function Retry(_ref2) {
19267
19266
  "data-tid": "update-cancelled"
19268
19267
  }, translator.get('Object.Update.Cancelled'))), /*#__PURE__*/React__default.createElement(Grid, {
19269
19268
  item: true
19270
- }, /*#__PURE__*/React__default.createElement(Button, _extends$1({
19269
+ }, /*#__PURE__*/React__default.createElement(Button, _extends$3({
19271
19270
  variant: "contained",
19272
19271
  onClick: retry
19273
19272
  }, props), translator.get('Retry'))));