@nebula.js/stardust 5.4.2 → 5.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/core/esm/dev.js +36 -20
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +3 -3
- package/core/esm/index.js.map +1 -1
- package/dist/stardust.dev.js +37 -22
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +12 -12
- package/dist/stardust.js.map +1 -1
- package/package.json +9 -9
- package/types/index.d.ts +6 -5
package/core/esm/dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v5.
|
|
2
|
+
* @nebula.js/stardust v5.5.0
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -10375,7 +10375,7 @@ var base = {
|
|
|
10375
10375
|
};
|
|
10376
10376
|
|
|
10377
10377
|
const colors = {
|
|
10378
|
-
green: '#
|
|
10378
|
+
green: '#00873D',
|
|
10379
10379
|
greenPale: '#0AAF54',
|
|
10380
10380
|
red: '#DC423F',
|
|
10381
10381
|
redPale: '#F05551',
|
|
@@ -10676,7 +10676,7 @@ function create$3(definition) {
|
|
|
10676
10676
|
return cache[key];
|
|
10677
10677
|
}
|
|
10678
10678
|
|
|
10679
|
-
const NEBULA_VERSION_HASH = "
|
|
10679
|
+
const NEBULA_VERSION_HASH = "db5f";
|
|
10680
10680
|
ClassNameGenerator.configure(componentName => {
|
|
10681
10681
|
return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
|
|
10682
10682
|
});
|
|
@@ -10908,7 +10908,7 @@ function boot(_ref2) {
|
|
|
10908
10908
|
const appRef = React__default.createRef();
|
|
10909
10909
|
const element = document.createElement('div');
|
|
10910
10910
|
element.style.display = 'none';
|
|
10911
|
-
element.setAttribute('data-nebulajs-version', "5.
|
|
10911
|
+
element.setAttribute('data-nebulajs-version', "5.5.0");
|
|
10912
10912
|
element.setAttribute('data-app-id', app.id);
|
|
10913
10913
|
document.body.appendChild(element);
|
|
10914
10914
|
if (context) {
|
|
@@ -16831,7 +16831,8 @@ const More$1 = React__default.forwardRef((_ref3, ref) => {
|
|
|
16831
16831
|
alignTo,
|
|
16832
16832
|
popoverProps = {},
|
|
16833
16833
|
popoverPaperStyle = {},
|
|
16834
|
-
onCloseOrActionClick = () => {}
|
|
16834
|
+
onCloseOrActionClick = () => {},
|
|
16835
|
+
disablePortal = true
|
|
16835
16836
|
} = _ref3;
|
|
16836
16837
|
const showActions = actions.length > 0;
|
|
16837
16838
|
const autoFocusIndex = actions.findIndex(action => !action.disabled);
|
|
@@ -16842,9 +16843,9 @@ const More$1 = React__default.forwardRef((_ref3, ref) => {
|
|
|
16842
16843
|
ref: ref,
|
|
16843
16844
|
open: show,
|
|
16844
16845
|
anchorEl: alignTo.current,
|
|
16845
|
-
getContentAnchorEl: null,
|
|
16846
|
-
container: alignTo.current,
|
|
16847
|
-
disablePortal:
|
|
16846
|
+
getContentAnchorEl: disablePortal ? null : undefined,
|
|
16847
|
+
container: disablePortal ? alignTo.current : undefined,
|
|
16848
|
+
disablePortal: disablePortal,
|
|
16848
16849
|
hideBackdrop: true,
|
|
16849
16850
|
transitionDuration: 0,
|
|
16850
16851
|
slotProps: {
|
|
@@ -17031,7 +17032,8 @@ function ActionsToolbar(_ref3) {
|
|
|
17031
17032
|
actions: [],
|
|
17032
17033
|
alignTo: null,
|
|
17033
17034
|
popoverProps: {},
|
|
17034
|
-
popoverPaperStyle: {}
|
|
17035
|
+
popoverPaperStyle: {},
|
|
17036
|
+
disablePortal: true
|
|
17035
17037
|
},
|
|
17036
17038
|
popover = {
|
|
17037
17039
|
show: false,
|
|
@@ -17160,7 +17162,8 @@ function ActionsToolbar(_ref3) {
|
|
|
17160
17162
|
alignTo: moreAlignTo,
|
|
17161
17163
|
popoverProps: more$1.popoverProps,
|
|
17162
17164
|
popoverPaperStyle: more$1.popoverPaperStyle,
|
|
17163
|
-
onCloseOrActionClick: handleCloseShowMoreItems
|
|
17165
|
+
onCloseOrActionClick: handleCloseShowMoreItems,
|
|
17166
|
+
disablePortal: more$1.disablePortal
|
|
17164
17167
|
}));
|
|
17165
17168
|
return popover.show ? /*#__PURE__*/React__default.createElement(StyledPopover, {
|
|
17166
17169
|
disableEnforceFocus: true,
|
|
@@ -18255,7 +18258,7 @@ const DARK = '#000';
|
|
|
18255
18258
|
const CONTRAST_THRESHOLD = 1.5;
|
|
18256
18259
|
const LIGHT_PREFERRED_THRESHOLD = 3;
|
|
18257
18260
|
const DEFAULT_SELECTION_COLORS = {
|
|
18258
|
-
selected: '#
|
|
18261
|
+
selected: '#00873D',
|
|
18259
18262
|
alternative: '#E4E4E4',
|
|
18260
18263
|
excluded: '#A9A9A9',
|
|
18261
18264
|
selectedExcluded: '#A9A9A9',
|
|
@@ -18333,7 +18336,7 @@ function getSelectionColors(_ref) {
|
|
|
18333
18336
|
const paletteState = state === 'selected' ? 'main' : state;
|
|
18334
18337
|
const contrastState = "".concat(state, "Contrast");
|
|
18335
18338
|
// color priority: layout.component > theme dataColors > theme background (only for 'possible') > MUI theme > hardcoded default
|
|
18336
|
-
const color = getColorPickerColor(componentSelectionColors[state]) || getSelectionThemeColor(state) || state === 'possible' && getListboxStyle('', 'backgroundColor') || ((_theme$palette2 = theme.palette) === null || _theme$palette2 === void 0 ? void 0 : _theme$palette2
|
|
18339
|
+
const color = getColorPickerColor(componentSelectionColors[state]) || getSelectionThemeColor(state) || state === 'possible' && getListboxStyle('', 'backgroundColor') || ((_theme$palette2 = theme.palette) === null || _theme$palette2 === void 0 || (_theme$palette2 = _theme$palette2.selected) === null || _theme$palette2 === void 0 ? void 0 : _theme$palette2[paletteState]) || DEFAULT_SELECTION_COLORS[state];
|
|
18337
18340
|
const contrastColor = useContrastTextColor ? getContrastingColor(color, desiredTextColor) : desiredTextColor || ((_theme$palette3 = theme.palette) === null || _theme$palette3 === void 0 ? void 0 : _theme$palette3.selected["".concat(contrastState, "Text}")]);
|
|
18338
18341
|
return {
|
|
18339
18342
|
[state]: color,
|
|
@@ -18660,6 +18663,7 @@ function ListBoxPopover(_ref) {
|
|
|
18660
18663
|
}
|
|
18661
18664
|
|
|
18662
18665
|
function OneField(_ref) {
|
|
18666
|
+
var _selection$qDimension;
|
|
18663
18667
|
let {
|
|
18664
18668
|
field,
|
|
18665
18669
|
api,
|
|
@@ -18685,6 +18689,7 @@ function OneField(_ref) {
|
|
|
18685
18689
|
onClose();
|
|
18686
18690
|
};
|
|
18687
18691
|
const selection = field.selections[stateIx];
|
|
18692
|
+
const fieldLabel = ((_selection$qDimension = selection.qDimensionReferences) === null || _selection$qDimension === void 0 || (_selection$qDimension = _selection$qDimension.find(element => element.qLabel)) === null || _selection$qDimension === void 0 ? void 0 : _selection$qDimension.qLabel) || selection.qReadableName || selection.qField;
|
|
18688
18693
|
if (typeof selection.qTotal === 'undefined') {
|
|
18689
18694
|
selection.qTotal = 0;
|
|
18690
18695
|
}
|
|
@@ -18746,7 +18751,7 @@ function OneField(_ref) {
|
|
|
18746
18751
|
lineHeight: '16px',
|
|
18747
18752
|
fontWeight: 600
|
|
18748
18753
|
}
|
|
18749
|
-
},
|
|
18754
|
+
}, fieldLabel), /*#__PURE__*/React__default.createElement(Typography, {
|
|
18750
18755
|
noWrap: true,
|
|
18751
18756
|
style: {
|
|
18752
18757
|
fontSize: '12px',
|
|
@@ -20018,7 +20023,8 @@ function getListboxActionProps(_ref) {
|
|
|
20018
20023
|
extraItems,
|
|
20019
20024
|
selections,
|
|
20020
20025
|
keyboard,
|
|
20021
|
-
autoConfirm
|
|
20026
|
+
autoConfirm,
|
|
20027
|
+
disablePortal
|
|
20022
20028
|
} = _ref;
|
|
20023
20029
|
return {
|
|
20024
20030
|
autoConfirm,
|
|
@@ -20038,7 +20044,8 @@ function getListboxActionProps(_ref) {
|
|
|
20038
20044
|
popoverPaperStyle: {
|
|
20039
20045
|
boxShadow: '0 12px 8px -8px rgba(0, 0, 0, 0.2)',
|
|
20040
20046
|
minWidth: '250px'
|
|
20041
|
-
}
|
|
20047
|
+
},
|
|
20048
|
+
disablePortal
|
|
20042
20049
|
},
|
|
20043
20050
|
selections: {
|
|
20044
20051
|
show: showToolbar,
|
|
@@ -20357,7 +20364,8 @@ function ListBoxHeader(_ref2) {
|
|
|
20357
20364
|
selections,
|
|
20358
20365
|
keyboard,
|
|
20359
20366
|
autoConfirm,
|
|
20360
|
-
app
|
|
20367
|
+
app,
|
|
20368
|
+
disablePortal
|
|
20361
20369
|
} = _ref2;
|
|
20362
20370
|
const [isToolbarDetached, setIsToolbarDetached] = useState$1(showDetachedToolbarOnly);
|
|
20363
20371
|
const [isLocked, setLocked] = useState$1(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);
|
|
@@ -20447,7 +20455,8 @@ function ListBoxHeader(_ref2) {
|
|
|
20447
20455
|
listboxSelectionToolbarItems,
|
|
20448
20456
|
selections,
|
|
20449
20457
|
keyboard,
|
|
20450
|
-
autoConfirm
|
|
20458
|
+
autoConfirm,
|
|
20459
|
+
disablePortal
|
|
20451
20460
|
});
|
|
20452
20461
|
const actionsToolbar = /*#__PURE__*/React__default.createElement(ActionsToolbar, _extends$6({
|
|
20453
20462
|
isRtl: isRtl,
|
|
@@ -20586,7 +20595,8 @@ function ListBoxInline(_ref3) {
|
|
|
20586
20595
|
showLock = false,
|
|
20587
20596
|
components,
|
|
20588
20597
|
selectDisabled = () => false,
|
|
20589
|
-
flags
|
|
20598
|
+
flags,
|
|
20599
|
+
disablePortal = true
|
|
20590
20600
|
} = options;
|
|
20591
20601
|
const theme = useTheme$1();
|
|
20592
20602
|
const {
|
|
@@ -20762,7 +20772,8 @@ function ListBoxInline(_ref3) {
|
|
|
20762
20772
|
model: model,
|
|
20763
20773
|
selectionState: selectionState$1,
|
|
20764
20774
|
selections: selections,
|
|
20765
|
-
keyboard: keyboard
|
|
20775
|
+
keyboard: keyboard,
|
|
20776
|
+
disablePortal: disablePortal
|
|
20766
20777
|
});
|
|
20767
20778
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, showDetachedToolbarOnly && listBoxHeader, /*#__PURE__*/React__default.createElement(StyledGrid$3, {
|
|
20768
20779
|
className: "listbox-container",
|
|
@@ -28881,9 +28892,14 @@ const DEFAULT_SNAPSHOT_CONFIG = /** @lends SnapshotConfiguration */{
|
|
|
28881
28892
|
* });
|
|
28882
28893
|
*/
|
|
28883
28894
|
|
|
28895
|
+
/**
|
|
28896
|
+
* Fallback load function for missing types
|
|
28897
|
+
* @typedef {Function(LoadType):Promise<Visualization>} LoadFallback
|
|
28898
|
+
*/
|
|
28899
|
+
|
|
28884
28900
|
/**
|
|
28885
28901
|
* @interface Configuration
|
|
28886
|
-
* @property {
|
|
28902
|
+
* @property {LoadFallback=} load Fallback load function for missing types
|
|
28887
28903
|
* @property {Context=} context Settings for the rendering instance
|
|
28888
28904
|
* @property {Array<TypeInfo>=} types Visualization types to register
|
|
28889
28905
|
* @property {Array<ThemeInfo>=} themes Themes to register
|