@nebula.js/stardust 5.0.0 → 5.0.1
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 +63 -33
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +4 -4
- package/core/esm/index.js.map +1 -1
- package/core/package.json +3 -3
- package/dist/stardust.dev.js +79 -49
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +7 -7
- package/dist/stardust.js.map +1 -1
- package/package.json +13 -13
- package/types/index.d.ts +10 -10
package/core/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"module": "esm/index.js",
|
|
3
3
|
"peerDependencies": {
|
|
4
|
-
"@mui/material": "^5.15.
|
|
5
|
-
"@mui/icons-material": "^5.15.
|
|
4
|
+
"@mui/material": "^5.15.15",
|
|
5
|
+
"@mui/icons-material": "^5.15.15",
|
|
6
6
|
"@emotion/react": "^11.11.4",
|
|
7
|
-
"@emotion/styled": "^11.11.
|
|
7
|
+
"@emotion/styled": "^11.11.5",
|
|
8
8
|
"react": "^17.0.2 || ^18.1.0",
|
|
9
9
|
"react-dom": "^17.0.2 || ^18.1.0"
|
|
10
10
|
}
|
package/dist/stardust.dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v5.0.
|
|
2
|
+
* @nebula.js/stardust v5.0.1
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -756,7 +756,7 @@
|
|
|
756
756
|
}
|
|
757
757
|
function _toPropertyKey(t) {
|
|
758
758
|
var i = _toPrimitive(t, "string");
|
|
759
|
-
return "symbol" == typeof i ? i :
|
|
759
|
+
return "symbol" == typeof i ? i : i + "";
|
|
760
760
|
}
|
|
761
761
|
function _defineProperty(obj, key, value) {
|
|
762
762
|
key = _toPropertyKey(key);
|
|
@@ -4429,7 +4429,7 @@
|
|
|
4429
4429
|
};
|
|
4430
4430
|
}
|
|
4431
4431
|
|
|
4432
|
-
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
|
4432
|
+
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
|
4433
4433
|
|
|
4434
4434
|
var isPropValid = /* #__PURE__ */memoize$1(function (prop) {
|
|
4435
4435
|
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
|
@@ -6733,7 +6733,7 @@
|
|
|
6733
6733
|
}
|
|
6734
6734
|
|
|
6735
6735
|
/**
|
|
6736
|
-
* @mui/styled-engine v5.15.
|
|
6736
|
+
* @mui/styled-engine v5.15.14
|
|
6737
6737
|
*
|
|
6738
6738
|
* @license MIT
|
|
6739
6739
|
* This source code is licensed under the MIT license found in the
|
|
@@ -9709,7 +9709,7 @@
|
|
|
9709
9709
|
}
|
|
9710
9710
|
function private_safeEmphasize(color, coefficient, warning) {
|
|
9711
9711
|
try {
|
|
9712
|
-
return
|
|
9712
|
+
return emphasize(color, coefficient);
|
|
9713
9713
|
} catch (error) {
|
|
9714
9714
|
if (warning && "production" !== 'production') {
|
|
9715
9715
|
console.warn(warning);
|
|
@@ -10430,7 +10430,7 @@
|
|
|
10430
10430
|
value: true
|
|
10431
10431
|
});
|
|
10432
10432
|
var _default = createStyled$1.default = createStyled;
|
|
10433
|
-
|
|
10433
|
+
createStyled$1.shouldForwardProp = shouldForwardProp;
|
|
10434
10434
|
createStyled$1.systemDefaultTheme = void 0;
|
|
10435
10435
|
var _extends2 = _interopRequireDefault$1(require_extends());
|
|
10436
10436
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault$1(requireObjectWithoutPropertiesLoose());
|
|
@@ -10658,11 +10658,18 @@
|
|
|
10658
10658
|
};
|
|
10659
10659
|
}
|
|
10660
10660
|
|
|
10661
|
-
|
|
10661
|
+
// copied from @mui/system/createStyled
|
|
10662
|
+
function slotShouldForwardProp(prop) {
|
|
10663
|
+
return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';
|
|
10664
|
+
}
|
|
10665
|
+
|
|
10666
|
+
const rootShouldForwardProp = prop => slotShouldForwardProp(prop) && prop !== 'classes';
|
|
10667
|
+
var rootShouldForwardProp$1 = rootShouldForwardProp;
|
|
10668
|
+
|
|
10662
10669
|
const styled = _default({
|
|
10663
10670
|
themeId: THEME_ID,
|
|
10664
10671
|
defaultTheme: defaultTheme$2,
|
|
10665
|
-
rootShouldForwardProp
|
|
10672
|
+
rootShouldForwardProp: rootShouldForwardProp$1
|
|
10666
10673
|
});
|
|
10667
10674
|
|
|
10668
10675
|
const _excluded$G = ["theme"];
|
|
@@ -12146,7 +12153,7 @@
|
|
|
12146
12153
|
}
|
|
12147
12154
|
});
|
|
12148
12155
|
const ButtonRoot = styled(ButtonBase$1, {
|
|
12149
|
-
shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
|
|
12156
|
+
shouldForwardProp: prop => rootShouldForwardProp$1(prop) || prop === 'classes',
|
|
12150
12157
|
name: 'MuiButton',
|
|
12151
12158
|
slot: 'Root',
|
|
12152
12159
|
overridesResolver: (props, styles) => {
|
|
@@ -12717,7 +12724,7 @@
|
|
|
12717
12724
|
return cache[key];
|
|
12718
12725
|
}
|
|
12719
12726
|
|
|
12720
|
-
const NEBULA_VERSION_HASH = "
|
|
12727
|
+
const NEBULA_VERSION_HASH = "19bb" ;
|
|
12721
12728
|
ClassNameGenerator.configure(componentName => {
|
|
12722
12729
|
return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
|
|
12723
12730
|
});
|
|
@@ -12949,7 +12956,7 @@
|
|
|
12949
12956
|
const appRef = React$1.createRef();
|
|
12950
12957
|
const element = document.createElement('div');
|
|
12951
12958
|
element.style.display = 'none';
|
|
12952
|
-
element.setAttribute('data-nebulajs-version', "5.0.
|
|
12959
|
+
element.setAttribute('data-nebulajs-version', "5.0.1" );
|
|
12953
12960
|
element.setAttribute('data-app-id', app.id);
|
|
12954
12961
|
document.body.appendChild(element);
|
|
12955
12962
|
if (context) {
|
|
@@ -13053,7 +13060,7 @@
|
|
|
13053
13060
|
height: '1em',
|
|
13054
13061
|
display: 'inline-block',
|
|
13055
13062
|
// the <svg> will define the property that has `currentColor`
|
|
13056
|
-
//
|
|
13063
|
+
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
13057
13064
|
fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',
|
|
13058
13065
|
flexShrink: 0,
|
|
13059
13066
|
transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
|
|
@@ -13165,6 +13172,11 @@
|
|
|
13165
13172
|
useIsFocusVisible: useIsFocusVisible
|
|
13166
13173
|
});
|
|
13167
13174
|
|
|
13175
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13176
|
+
function createUseThemeProps(name) {
|
|
13177
|
+
return useThemeProps$1;
|
|
13178
|
+
}
|
|
13179
|
+
|
|
13168
13180
|
const reflow = node => node.scrollTop;
|
|
13169
13181
|
function getTransitionProps(props, options) {
|
|
13170
13182
|
var _style$transitionDura, _style$transitionTimi;
|
|
@@ -13483,11 +13495,6 @@
|
|
|
13483
13495
|
return props;
|
|
13484
13496
|
}
|
|
13485
13497
|
|
|
13486
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13487
|
-
function createUseThemeProps(name) {
|
|
13488
|
-
return useThemeProps$1;
|
|
13489
|
-
}
|
|
13490
|
-
|
|
13491
13498
|
function getIconButtonUtilityClass(slot) {
|
|
13492
13499
|
return generateUtilityClass$1('MuiIconButton', slot);
|
|
13493
13500
|
}
|
|
@@ -14009,7 +14016,7 @@
|
|
|
14009
14016
|
doc.addEventListener('keydown', loopFocus, true);
|
|
14010
14017
|
|
|
14011
14018
|
// With Edge, Safari and Firefox, no focus related events are fired when the focused area stops being a focused area.
|
|
14012
|
-
//
|
|
14019
|
+
// for example https://bugzilla.mozilla.org/show_bug.cgi?id=559561.
|
|
14013
14020
|
// Instead, we can look if the active element was restored on the BODY element.
|
|
14014
14021
|
//
|
|
14015
14022
|
// The whatwg spec defines how the browser should behave but does not explicitly mention any events:
|
|
@@ -17858,7 +17865,7 @@
|
|
|
17858
17865
|
marginRight: ownerState.size === 'small' ? -3 : -12
|
|
17859
17866
|
}));
|
|
17860
17867
|
const SwitchBaseInput = styled('input', {
|
|
17861
|
-
shouldForwardProp: rootShouldForwardProp
|
|
17868
|
+
shouldForwardProp: rootShouldForwardProp$1
|
|
17862
17869
|
})({
|
|
17863
17870
|
cursor: 'inherit',
|
|
17864
17871
|
position: 'absolute',
|
|
@@ -18017,7 +18024,7 @@
|
|
|
18017
18024
|
return _extends$7({}, classes, composedClasses);
|
|
18018
18025
|
};
|
|
18019
18026
|
const CheckboxRoot = styled(SwitchBase$1, {
|
|
18020
|
-
shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
|
|
18027
|
+
shouldForwardProp: prop => rootShouldForwardProp$1(prop) || prop === 'classes',
|
|
18021
18028
|
name: 'MuiCheckbox',
|
|
18022
18029
|
slot: 'Root',
|
|
18023
18030
|
overridesResolver: (props, styles) => {
|
|
@@ -20637,7 +20644,7 @@
|
|
|
20637
20644
|
return _extends$7({}, classes, composedClasses);
|
|
20638
20645
|
};
|
|
20639
20646
|
const MenuItemRoot = styled(ButtonBase$1, {
|
|
20640
|
-
shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
|
|
20647
|
+
shouldForwardProp: prop => rootShouldForwardProp$1(prop) || prop === 'classes',
|
|
20641
20648
|
name: 'MuiMenuItem',
|
|
20642
20649
|
slot: 'Root',
|
|
20643
20650
|
overridesResolver
|
|
@@ -20781,7 +20788,7 @@
|
|
|
20781
20788
|
var _span;
|
|
20782
20789
|
const _excluded$9 = ["children", "classes", "className", "label", "notched"];
|
|
20783
20790
|
const NotchedOutlineRoot$1 = styled('fieldset', {
|
|
20784
|
-
shouldForwardProp: rootShouldForwardProp
|
|
20791
|
+
shouldForwardProp: rootShouldForwardProp$1
|
|
20785
20792
|
})({
|
|
20786
20793
|
textAlign: 'left',
|
|
20787
20794
|
position: 'absolute',
|
|
@@ -20799,7 +20806,7 @@
|
|
|
20799
20806
|
minWidth: '0%'
|
|
20800
20807
|
});
|
|
20801
20808
|
const NotchedOutlineLegend = styled('legend', {
|
|
20802
|
-
shouldForwardProp: rootShouldForwardProp
|
|
20809
|
+
shouldForwardProp: rootShouldForwardProp$1
|
|
20803
20810
|
})(({
|
|
20804
20811
|
ownerState,
|
|
20805
20812
|
theme
|
|
@@ -20894,7 +20901,7 @@
|
|
|
20894
20901
|
return _extends$7({}, classes, composedClasses);
|
|
20895
20902
|
};
|
|
20896
20903
|
const OutlinedInputRoot = styled(InputBaseRoot, {
|
|
20897
|
-
shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
|
|
20904
|
+
shouldForwardProp: prop => rootShouldForwardProp$1(prop) || prop === 'classes',
|
|
20898
20905
|
name: 'MuiOutlinedInput',
|
|
20899
20906
|
slot: 'Root',
|
|
20900
20907
|
overridesResolver: rootOverridesResolver
|
|
@@ -21057,7 +21064,7 @@
|
|
|
21057
21064
|
}), 'RadioButtonChecked');
|
|
21058
21065
|
|
|
21059
21066
|
const RadioButtonIconRoot = styled('span', {
|
|
21060
|
-
shouldForwardProp: rootShouldForwardProp
|
|
21067
|
+
shouldForwardProp: rootShouldForwardProp$1
|
|
21061
21068
|
})({
|
|
21062
21069
|
position: 'relative',
|
|
21063
21070
|
display: 'flex'
|
|
@@ -21140,7 +21147,7 @@
|
|
|
21140
21147
|
return _extends$7({}, classes, composeClasses(slots, getRadioUtilityClass, classes));
|
|
21141
21148
|
};
|
|
21142
21149
|
const RadioRoot = styled(SwitchBase$1, {
|
|
21143
|
-
shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
|
|
21150
|
+
shouldForwardProp: prop => rootShouldForwardProp$1(prop) || prop === 'classes',
|
|
21144
21151
|
name: 'MuiRadio',
|
|
21145
21152
|
slot: 'Root',
|
|
21146
21153
|
overridesResolver: (props, styles) => {
|
|
@@ -27827,9 +27834,6 @@
|
|
|
27827
27834
|
setValue(WILDCARD);
|
|
27828
27835
|
setWildcardOn(true);
|
|
27829
27836
|
}
|
|
27830
|
-
if (!selectionState.selectDisabled() && !selections.isModal()) {
|
|
27831
|
-
selections.begin(['/qListObjectDef']);
|
|
27832
|
-
}
|
|
27833
27837
|
};
|
|
27834
27838
|
const hasHits = () => {
|
|
27835
27839
|
const listCount = getStoreValue("listCount");
|
|
@@ -32266,7 +32270,14 @@
|
|
|
32266
32270
|
drillDown: 'H',
|
|
32267
32271
|
cyclic: 'C'
|
|
32268
32272
|
};
|
|
32269
|
-
const createDimensionIconData =
|
|
32273
|
+
const createDimensionIconData = _ref => {
|
|
32274
|
+
let {
|
|
32275
|
+
dimInfo,
|
|
32276
|
+
app,
|
|
32277
|
+
selections,
|
|
32278
|
+
isPopover,
|
|
32279
|
+
active
|
|
32280
|
+
} = _ref;
|
|
32270
32281
|
switch (dimInfo.qGrouping) {
|
|
32271
32282
|
case dimensionTypes.drillDown:
|
|
32272
32283
|
return {
|
|
@@ -32275,20 +32286,26 @@
|
|
|
32275
32286
|
onClick: undefined
|
|
32276
32287
|
};
|
|
32277
32288
|
case dimensionTypes.cyclic:
|
|
32278
|
-
|
|
32279
|
-
|
|
32280
|
-
|
|
32281
|
-
|
|
32282
|
-
|
|
32283
|
-
|
|
32284
|
-
|
|
32285
|
-
|
|
32286
|
-
return;
|
|
32289
|
+
{
|
|
32290
|
+
const clickable = app && active;
|
|
32291
|
+
return {
|
|
32292
|
+
icon: clickable ? ReloadIcon : CyclicIcon,
|
|
32293
|
+
tooltip: 'Listbox.Cyclic',
|
|
32294
|
+
onClick: clickable ? () => {
|
|
32295
|
+
if (!isPopover) {
|
|
32296
|
+
selections.confirm();
|
|
32287
32297
|
}
|
|
32288
|
-
|
|
32289
|
-
|
|
32290
|
-
|
|
32291
|
-
|
|
32298
|
+
app.getDimension(dimInfo.qLibraryId).then(dimensionModel => {
|
|
32299
|
+
if (!dimensionModel.stepCycle) {
|
|
32300
|
+
// eslint-disable-next-line no-console
|
|
32301
|
+
console.log("engine api spec version doesn't have support for function stepCycle");
|
|
32302
|
+
return;
|
|
32303
|
+
}
|
|
32304
|
+
dimensionModel.stepCycle(1);
|
|
32305
|
+
}).catch(() => null);
|
|
32306
|
+
} : undefined
|
|
32307
|
+
};
|
|
32308
|
+
}
|
|
32292
32309
|
default:
|
|
32293
32310
|
return undefined;
|
|
32294
32311
|
}
|
|
@@ -32308,7 +32325,8 @@
|
|
|
32308
32325
|
let {
|
|
32309
32326
|
iconData,
|
|
32310
32327
|
translator,
|
|
32311
|
-
iconStyle
|
|
32328
|
+
iconStyle,
|
|
32329
|
+
disabled
|
|
32312
32330
|
} = _ref;
|
|
32313
32331
|
if (!iconData) return undefined;
|
|
32314
32332
|
const {
|
|
@@ -32325,7 +32343,8 @@
|
|
|
32325
32343
|
tabIndex: -1,
|
|
32326
32344
|
title: title,
|
|
32327
32345
|
size: "large",
|
|
32328
|
-
disableRipple: true
|
|
32346
|
+
disableRipple: true,
|
|
32347
|
+
disabled: disabled
|
|
32329
32348
|
}, /*#__PURE__*/React$1.createElement(Icon, {
|
|
32330
32349
|
style: iconStyle
|
|
32331
32350
|
})) : /*#__PURE__*/React$1.createElement(Icon, {
|
|
@@ -32393,7 +32412,8 @@
|
|
|
32393
32412
|
selections,
|
|
32394
32413
|
keyboard,
|
|
32395
32414
|
autoConfirm,
|
|
32396
|
-
app
|
|
32415
|
+
app,
|
|
32416
|
+
isInSelection
|
|
32397
32417
|
} = _ref2;
|
|
32398
32418
|
const [isToolbarDetached, setIsToolbarDetached] = reactExports.useState(showDetachedToolbarOnly);
|
|
32399
32419
|
const [isLocked, setLocked] = reactExports.useState(layout === null || layout === void 0 || (_layout$qListObject = layout.qListObject) === null || _layout$qListObject === void 0 || (_layout$qListObject = _layout$qListObject.qDimensionInfo) === null || _layout$qListObject === void 0 ? void 0 : _layout$qListObject.qLocked);
|
|
@@ -32403,7 +32423,13 @@
|
|
|
32403
32423
|
setLocked(layout === null || layout === void 0 || (_layout$qListObject2 = layout.qListObject) === null || _layout$qListObject2 === void 0 || (_layout$qListObject2 = _layout$qListObject2.qDimensionInfo) === null || _layout$qListObject2 === void 0 ? void 0 : _layout$qListObject2.qLocked);
|
|
32404
32424
|
}, [layout === null || layout === void 0 || (_layout$qListObject3 = layout.qListObject) === null || _layout$qListObject3 === void 0 || (_layout$qListObject3 = _layout$qListObject3.qDimensionInfo) === null || _layout$qListObject3 === void 0 ? void 0 : _layout$qListObject3.qLocked]);
|
|
32405
32425
|
const titleRef = reactExports.useRef(null);
|
|
32406
|
-
const iconData = iconUtils.createDimensionIconData(
|
|
32426
|
+
const iconData = iconUtils.createDimensionIconData({
|
|
32427
|
+
dimInfo: layout === null || layout === void 0 || (_layout$qListObject4 = layout.qListObject) === null || _layout$qListObject4 === void 0 ? void 0 : _layout$qListObject4.qDimensionInfo,
|
|
32428
|
+
app,
|
|
32429
|
+
selections,
|
|
32430
|
+
isPopover,
|
|
32431
|
+
active: !(constraints !== null && constraints !== void 0 && constraints.active)
|
|
32432
|
+
});
|
|
32407
32433
|
const showUnlock = showLock && isLocked;
|
|
32408
32434
|
const showLockIcon = !showLock && isLocked; // shows instead of the cover button when field/dim is locked.
|
|
32409
32435
|
const showLeftIcon = showSearchIcon || showLockIcon || iconData; // the left-most icon outside of the actions/selections toolbar.
|
|
@@ -32514,6 +32540,7 @@
|
|
|
32514
32540
|
}, lockedIconComp || showSearchIcon && searchIconComp, /*#__PURE__*/React$1.createElement(DimensionIcon, {
|
|
32515
32541
|
iconData: iconData,
|
|
32516
32542
|
iconStyle: iconStyle,
|
|
32543
|
+
disabled: isInSelection && isPopover,
|
|
32517
32544
|
translator: translator
|
|
32518
32545
|
})), /*#__PURE__*/React$1.createElement(Grid$1, {
|
|
32519
32546
|
item: true,
|
|
@@ -32674,6 +32701,7 @@
|
|
|
32674
32701
|
}), [app, appSelections]);
|
|
32675
32702
|
const isInvalid = layout === null || layout === void 0 ? void 0 : layout.qListObject.qDimensionInfo.qError;
|
|
32676
32703
|
const errorText = isInvalid && constraints.active ? 'Visualization.Invalid.Dimension' : 'Visualization.Incomplete';
|
|
32704
|
+
const [isInSelection, setIsInSelection] = reactExports.useState(false);
|
|
32677
32705
|
const {
|
|
32678
32706
|
handleKeyDown,
|
|
32679
32707
|
handleOnMouseEnter,
|
|
@@ -32702,9 +32730,11 @@
|
|
|
32702
32730
|
}
|
|
32703
32731
|
const show = () => {
|
|
32704
32732
|
setShowToolbar(true);
|
|
32733
|
+
setIsInSelection(true);
|
|
32705
32734
|
};
|
|
32706
32735
|
const hide = () => {
|
|
32707
32736
|
setShowToolbar(false);
|
|
32737
|
+
setIsInSelection(false);
|
|
32708
32738
|
if (search === 'toggle') {
|
|
32709
32739
|
setShowSearch(false);
|
|
32710
32740
|
}
|
|
@@ -32712,7 +32742,6 @@
|
|
|
32712
32742
|
if (isPopover) {
|
|
32713
32743
|
// When isPopover, toolbar == false will be ignored.
|
|
32714
32744
|
if (!selections.isActive()) {
|
|
32715
|
-
selections.begin('/qListObjectDef');
|
|
32716
32745
|
selections.on('activated', show);
|
|
32717
32746
|
selections.on('deactivated', hide);
|
|
32718
32747
|
}
|
|
@@ -32807,7 +32836,8 @@
|
|
|
32807
32836
|
model: model,
|
|
32808
32837
|
selectionState: selectionState$1,
|
|
32809
32838
|
selections: selections,
|
|
32810
|
-
keyboard: keyboard
|
|
32839
|
+
keyboard: keyboard,
|
|
32840
|
+
isInSelection: isInSelection
|
|
32811
32841
|
});
|
|
32812
32842
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, showDetachedToolbarOnly && listBoxHeader, /*#__PURE__*/React$1.createElement(StyledGrid$3, {
|
|
32813
32843
|
className: "listbox-container",
|