@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/dist/stardust.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
|
*/
|
|
@@ -14838,7 +14838,7 @@
|
|
|
14838
14838
|
};
|
|
14839
14839
|
|
|
14840
14840
|
const colors = {
|
|
14841
|
-
green: '#
|
|
14841
|
+
green: '#00873D',
|
|
14842
14842
|
greenPale: '#0AAF54',
|
|
14843
14843
|
red: '#DC423F',
|
|
14844
14844
|
redPale: '#F05551',
|
|
@@ -15139,7 +15139,7 @@
|
|
|
15139
15139
|
return cache[key];
|
|
15140
15140
|
}
|
|
15141
15141
|
|
|
15142
|
-
const NEBULA_VERSION_HASH = "
|
|
15142
|
+
const NEBULA_VERSION_HASH = "db5f";
|
|
15143
15143
|
ClassNameGenerator.configure(componentName => {
|
|
15144
15144
|
return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
|
|
15145
15145
|
});
|
|
@@ -15371,7 +15371,7 @@
|
|
|
15371
15371
|
const appRef = React$1.createRef();
|
|
15372
15372
|
const element = document.createElement('div');
|
|
15373
15373
|
element.style.display = 'none';
|
|
15374
|
-
element.setAttribute('data-nebulajs-version', "5.
|
|
15374
|
+
element.setAttribute('data-nebulajs-version', "5.5.0");
|
|
15375
15375
|
element.setAttribute('data-app-id', app.id);
|
|
15376
15376
|
document.body.appendChild(element);
|
|
15377
15377
|
if (context) {
|
|
@@ -18750,7 +18750,6 @@
|
|
|
18750
18750
|
}))]
|
|
18751
18751
|
});
|
|
18752
18752
|
});
|
|
18753
|
-
var InputBase$1 = InputBase;
|
|
18754
18753
|
|
|
18755
18754
|
function getOutlinedInputUtilityClass(slot) {
|
|
18756
18755
|
return generateUtilityClass('MuiOutlinedInput', slot);
|
|
@@ -23143,7 +23142,7 @@
|
|
|
23143
23142
|
});
|
|
23144
23143
|
const RootSlot = (_ref = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref : OutlinedInputRoot;
|
|
23145
23144
|
const InputSlot = (_ref2 = (_slots$input = slots.input) != null ? _slots$input : components.Input) != null ? _ref2 : OutlinedInputInput;
|
|
23146
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(InputBase
|
|
23145
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(InputBase, _extends$6({
|
|
23147
23146
|
slots: {
|
|
23148
23147
|
root: RootSlot,
|
|
23149
23148
|
input: InputSlot
|
|
@@ -29587,7 +29586,8 @@
|
|
|
29587
29586
|
alignTo,
|
|
29588
29587
|
popoverProps = {},
|
|
29589
29588
|
popoverPaperStyle = {},
|
|
29590
|
-
onCloseOrActionClick = () => {}
|
|
29589
|
+
onCloseOrActionClick = () => {},
|
|
29590
|
+
disablePortal = true
|
|
29591
29591
|
} = _ref3;
|
|
29592
29592
|
const showActions = actions.length > 0;
|
|
29593
29593
|
const autoFocusIndex = actions.findIndex(action => !action.disabled);
|
|
@@ -29598,9 +29598,9 @@
|
|
|
29598
29598
|
ref: ref,
|
|
29599
29599
|
open: show,
|
|
29600
29600
|
anchorEl: alignTo.current,
|
|
29601
|
-
getContentAnchorEl: null,
|
|
29602
|
-
container: alignTo.current,
|
|
29603
|
-
disablePortal:
|
|
29601
|
+
getContentAnchorEl: disablePortal ? null : undefined,
|
|
29602
|
+
container: disablePortal ? alignTo.current : undefined,
|
|
29603
|
+
disablePortal: disablePortal,
|
|
29604
29604
|
hideBackdrop: true,
|
|
29605
29605
|
transitionDuration: 0,
|
|
29606
29606
|
slotProps: {
|
|
@@ -29787,7 +29787,8 @@
|
|
|
29787
29787
|
actions: [],
|
|
29788
29788
|
alignTo: null,
|
|
29789
29789
|
popoverProps: {},
|
|
29790
|
-
popoverPaperStyle: {}
|
|
29790
|
+
popoverPaperStyle: {},
|
|
29791
|
+
disablePortal: true
|
|
29791
29792
|
},
|
|
29792
29793
|
popover = {
|
|
29793
29794
|
show: false,
|
|
@@ -29916,7 +29917,8 @@
|
|
|
29916
29917
|
alignTo: moreAlignTo,
|
|
29917
29918
|
popoverProps: more$1.popoverProps,
|
|
29918
29919
|
popoverPaperStyle: more$1.popoverPaperStyle,
|
|
29919
|
-
onCloseOrActionClick: handleCloseShowMoreItems
|
|
29920
|
+
onCloseOrActionClick: handleCloseShowMoreItems,
|
|
29921
|
+
disablePortal: more$1.disablePortal
|
|
29920
29922
|
}));
|
|
29921
29923
|
return popover.show ? /*#__PURE__*/React$1.createElement(StyledPopover, {
|
|
29922
29924
|
disableEnforceFocus: true,
|
|
@@ -31011,7 +31013,7 @@
|
|
|
31011
31013
|
const CONTRAST_THRESHOLD = 1.5;
|
|
31012
31014
|
const LIGHT_PREFERRED_THRESHOLD = 3;
|
|
31013
31015
|
const DEFAULT_SELECTION_COLORS = {
|
|
31014
|
-
selected: '#
|
|
31016
|
+
selected: '#00873D',
|
|
31015
31017
|
alternative: '#E4E4E4',
|
|
31016
31018
|
excluded: '#A9A9A9',
|
|
31017
31019
|
selectedExcluded: '#A9A9A9',
|
|
@@ -31089,7 +31091,7 @@
|
|
|
31089
31091
|
const paletteState = state === 'selected' ? 'main' : state;
|
|
31090
31092
|
const contrastState = "".concat(state, "Contrast");
|
|
31091
31093
|
// color priority: layout.component > theme dataColors > theme background (only for 'possible') > MUI theme > hardcoded default
|
|
31092
|
-
const color = getColorPickerColor(componentSelectionColors[state]) || getSelectionThemeColor(state) || state === 'possible' && getListboxStyle('', 'backgroundColor') || ((_theme$palette2 = theme.palette) === null || _theme$palette2 === void 0 ? void 0 : _theme$palette2
|
|
31094
|
+
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];
|
|
31093
31095
|
const contrastColor = useContrastTextColor ? getContrastingColor(color, desiredTextColor) : desiredTextColor || ((_theme$palette3 = theme.palette) === null || _theme$palette3 === void 0 ? void 0 : _theme$palette3.selected["".concat(contrastState, "Text}")]);
|
|
31094
31096
|
return {
|
|
31095
31097
|
[state]: color,
|
|
@@ -31416,6 +31418,7 @@
|
|
|
31416
31418
|
}
|
|
31417
31419
|
|
|
31418
31420
|
function OneField(_ref) {
|
|
31421
|
+
var _selection$qDimension;
|
|
31419
31422
|
let {
|
|
31420
31423
|
field,
|
|
31421
31424
|
api,
|
|
@@ -31441,6 +31444,7 @@
|
|
|
31441
31444
|
onClose();
|
|
31442
31445
|
};
|
|
31443
31446
|
const selection = field.selections[stateIx];
|
|
31447
|
+
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;
|
|
31444
31448
|
if (typeof selection.qTotal === 'undefined') {
|
|
31445
31449
|
selection.qTotal = 0;
|
|
31446
31450
|
}
|
|
@@ -31502,7 +31506,7 @@
|
|
|
31502
31506
|
lineHeight: '16px',
|
|
31503
31507
|
fontWeight: 600
|
|
31504
31508
|
}
|
|
31505
|
-
},
|
|
31509
|
+
}, fieldLabel), /*#__PURE__*/React$1.createElement(Typography, {
|
|
31506
31510
|
noWrap: true,
|
|
31507
31511
|
style: {
|
|
31508
31512
|
fontSize: '12px',
|
|
@@ -32774,7 +32778,8 @@
|
|
|
32774
32778
|
extraItems,
|
|
32775
32779
|
selections,
|
|
32776
32780
|
keyboard,
|
|
32777
|
-
autoConfirm
|
|
32781
|
+
autoConfirm,
|
|
32782
|
+
disablePortal
|
|
32778
32783
|
} = _ref;
|
|
32779
32784
|
return {
|
|
32780
32785
|
autoConfirm,
|
|
@@ -32794,7 +32799,8 @@
|
|
|
32794
32799
|
popoverPaperStyle: {
|
|
32795
32800
|
boxShadow: '0 12px 8px -8px rgba(0, 0, 0, 0.2)',
|
|
32796
32801
|
minWidth: '250px'
|
|
32797
|
-
}
|
|
32802
|
+
},
|
|
32803
|
+
disablePortal
|
|
32798
32804
|
},
|
|
32799
32805
|
selections: {
|
|
32800
32806
|
show: showToolbar,
|
|
@@ -33113,7 +33119,8 @@
|
|
|
33113
33119
|
selections,
|
|
33114
33120
|
keyboard,
|
|
33115
33121
|
autoConfirm,
|
|
33116
|
-
app
|
|
33122
|
+
app,
|
|
33123
|
+
disablePortal
|
|
33117
33124
|
} = _ref2;
|
|
33118
33125
|
const [isToolbarDetached, setIsToolbarDetached] = reactExports.useState(showDetachedToolbarOnly);
|
|
33119
33126
|
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);
|
|
@@ -33203,7 +33210,8 @@
|
|
|
33203
33210
|
listboxSelectionToolbarItems,
|
|
33204
33211
|
selections,
|
|
33205
33212
|
keyboard,
|
|
33206
|
-
autoConfirm
|
|
33213
|
+
autoConfirm,
|
|
33214
|
+
disablePortal
|
|
33207
33215
|
});
|
|
33208
33216
|
const actionsToolbar = /*#__PURE__*/React$1.createElement(ActionsToolbar, _extends$7({
|
|
33209
33217
|
isRtl: isRtl,
|
|
@@ -33342,7 +33350,8 @@
|
|
|
33342
33350
|
showLock = false,
|
|
33343
33351
|
components,
|
|
33344
33352
|
selectDisabled = () => false,
|
|
33345
|
-
flags
|
|
33353
|
+
flags,
|
|
33354
|
+
disablePortal = true
|
|
33346
33355
|
} = options;
|
|
33347
33356
|
const theme = useTheme$2();
|
|
33348
33357
|
const {
|
|
@@ -33518,7 +33527,8 @@
|
|
|
33518
33527
|
model: model,
|
|
33519
33528
|
selectionState: selectionState$1,
|
|
33520
33529
|
selections: selections,
|
|
33521
|
-
keyboard: keyboard
|
|
33530
|
+
keyboard: keyboard,
|
|
33531
|
+
disablePortal: disablePortal
|
|
33522
33532
|
});
|
|
33523
33533
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, showDetachedToolbarOnly && listBoxHeader, /*#__PURE__*/React$1.createElement(StyledGrid$3, {
|
|
33524
33534
|
className: "listbox-container",
|
|
@@ -41637,9 +41647,14 @@
|
|
|
41637
41647
|
* });
|
|
41638
41648
|
*/
|
|
41639
41649
|
|
|
41650
|
+
/**
|
|
41651
|
+
* Fallback load function for missing types
|
|
41652
|
+
* @typedef {Function(LoadType):Promise<Visualization>} LoadFallback
|
|
41653
|
+
*/
|
|
41654
|
+
|
|
41640
41655
|
/**
|
|
41641
41656
|
* @interface Configuration
|
|
41642
|
-
* @property {
|
|
41657
|
+
* @property {LoadFallback=} load Fallback load function for missing types
|
|
41643
41658
|
* @property {Context=} context Settings for the rendering instance
|
|
41644
41659
|
* @property {Array<TypeInfo>=} types Visualization types to register
|
|
41645
41660
|
* @property {Array<ThemeInfo>=} themes Themes to register
|