@nebula.js/stardust 4.0.0-alpha.3 → 4.0.0-alpha.4
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 +39 -15
- 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 +39 -15
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +7 -7
- package/dist/stardust.js.map +1 -1
- package/package.json +9 -9
package/dist/stardust.dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v4.0.0-alpha.
|
|
2
|
+
* @nebula.js/stardust v4.0.0-alpha.4
|
|
3
3
|
* Copyright (c) 2023 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -1560,6 +1560,26 @@
|
|
|
1560
1560
|
"zh-TW": "選取可能值"
|
|
1561
1561
|
}
|
|
1562
1562
|
};
|
|
1563
|
+
var SelectionToolbar_ClickToUnlock = {
|
|
1564
|
+
id: "SelectionToolbar.ClickToUnlock",
|
|
1565
|
+
locale: {
|
|
1566
|
+
"de-DE": "Klicken zum Freigeben",
|
|
1567
|
+
"en-US": "Click to unlock",
|
|
1568
|
+
"es-ES": "Haga clic para desbloquearla",
|
|
1569
|
+
"fr-FR": "Cliquez pour déverrouiller",
|
|
1570
|
+
"it-IT": "Fare clic per sbloccare",
|
|
1571
|
+
"ja-JP": "クリックしてロック解除",
|
|
1572
|
+
"ko-KR": "잠금을 해제하려면 클릭하십시오.",
|
|
1573
|
+
"nl-NL": "Klik om te ontgrendelen",
|
|
1574
|
+
"pl-PL": "Aby odblokować, kliknij",
|
|
1575
|
+
"pt-BR": "Clique para destravar",
|
|
1576
|
+
"ru-RU": "Щелкните, чтобы разблокировать",
|
|
1577
|
+
"sv-SE": "Klicka för att låsa upp",
|
|
1578
|
+
"tr-TR": "Kilidi kaldırmak için tıklayın",
|
|
1579
|
+
"zh-CN": "单击以解锁",
|
|
1580
|
+
"zh-TW": "按一下以解除鎖定"
|
|
1581
|
+
}
|
|
1582
|
+
};
|
|
1563
1583
|
var Visualization_Incomplete = {
|
|
1564
1584
|
id: "Visualization.Incomplete",
|
|
1565
1585
|
locale: {
|
|
@@ -1731,6 +1751,7 @@
|
|
|
1731
1751
|
Selection_SelectAlternative: Selection_SelectAlternative,
|
|
1732
1752
|
Selection_SelectExcluded: Selection_SelectExcluded,
|
|
1733
1753
|
Selection_SelectPossible: Selection_SelectPossible,
|
|
1754
|
+
SelectionToolbar_ClickToUnlock: SelectionToolbar_ClickToUnlock,
|
|
1734
1755
|
Visualization_Incomplete: Visualization_Incomplete,
|
|
1735
1756
|
Visualization_Incomplete_Dimensions: Visualization_Incomplete_Dimensions,
|
|
1736
1757
|
Visualization_Incomplete_Measures: Visualization_Incomplete_Measures,
|
|
@@ -15399,7 +15420,7 @@
|
|
|
15399
15420
|
return cache[key];
|
|
15400
15421
|
}
|
|
15401
15422
|
|
|
15402
|
-
const NEBULA_VERSION_HASH = "
|
|
15423
|
+
const NEBULA_VERSION_HASH = "0bc0" ;
|
|
15403
15424
|
ClassNameGenerator$1.configure(componentName => {
|
|
15404
15425
|
return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
|
|
15405
15426
|
});
|
|
@@ -15607,7 +15628,7 @@
|
|
|
15607
15628
|
const appRef = React.createRef();
|
|
15608
15629
|
const element = document.createElement('div');
|
|
15609
15630
|
element.style.display = 'none';
|
|
15610
|
-
element.setAttribute('data-nebulajs-version', "4.0.0-alpha.
|
|
15631
|
+
element.setAttribute('data-nebulajs-version', "4.0.0-alpha.4" );
|
|
15611
15632
|
element.setAttribute('data-app-id', app.id);
|
|
15612
15633
|
document.body.appendChild(element);
|
|
15613
15634
|
const root = client.createRoot(element);
|
|
@@ -25444,7 +25465,10 @@
|
|
|
25444
25465
|
if (!field) {
|
|
25445
25466
|
return field;
|
|
25446
25467
|
}
|
|
25447
|
-
|
|
25468
|
+
if (/^[A-Za-z][A-Za-z0-9_]*$/.test(field)) {
|
|
25469
|
+
return field;
|
|
25470
|
+
}
|
|
25471
|
+
return "[".concat(field.replace(/\]/g, ']]'), "]");
|
|
25448
25472
|
};
|
|
25449
25473
|
const needToFetchFrequencyMax = layout => (layout === null || layout === void 0 ? void 0 : layout.frequencyMax) === 'fetch';
|
|
25450
25474
|
const getFrequencyMaxExpression = field => {
|
|
@@ -26214,15 +26238,12 @@
|
|
|
26214
26238
|
const popoverStyle = {
|
|
26215
26239
|
pointerEvents: 'none'
|
|
26216
26240
|
};
|
|
26217
|
-
const popoverAnchorOrigin = {
|
|
26218
|
-
vertical: 'top',
|
|
26219
|
-
horizontal: 'right'
|
|
26220
|
-
};
|
|
26221
26241
|
const popoverTransformOrigin = {
|
|
26222
26242
|
vertical: 'bottom',
|
|
26223
26243
|
horizontal: 'right'
|
|
26224
26244
|
};
|
|
26225
26245
|
function ActionsToolbar(_ref3) {
|
|
26246
|
+
var _popover$anchorEl$cli, _popover$anchorEl;
|
|
26226
26247
|
let {
|
|
26227
26248
|
show = true,
|
|
26228
26249
|
actions = [],
|
|
@@ -26261,6 +26282,10 @@
|
|
|
26261
26282
|
const dividerStyle = reactExports.useMemo(() => ({
|
|
26262
26283
|
margin: theme.spacing(0.5, 0)
|
|
26263
26284
|
}));
|
|
26285
|
+
const popoverAnchorOrigin = {
|
|
26286
|
+
vertical: 15,
|
|
26287
|
+
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
|
|
26288
|
+
};
|
|
26264
26289
|
const getEnabledButton = last => {
|
|
26265
26290
|
const actionsElement = actionsRef.current || actionsRefMock;
|
|
26266
26291
|
if (!actionsElement) return null;
|
|
@@ -28475,19 +28500,20 @@
|
|
|
28475
28500
|
listboxWrapper: "".concat(PREFIX$4, "-listboxWrapper")
|
|
28476
28501
|
};
|
|
28477
28502
|
const StyledGrid$3 = styled$1(Grid$1, {
|
|
28478
|
-
shouldForwardProp: p => !['containerPadding'].includes(p)
|
|
28503
|
+
shouldForwardProp: p => !['containerPadding', 'hasIcon'].includes(p)
|
|
28479
28504
|
})(_ref => {
|
|
28480
28505
|
var _theme$listBox$backgr, _theme$listBox;
|
|
28481
28506
|
let {
|
|
28482
28507
|
theme,
|
|
28483
|
-
containerPadding
|
|
28508
|
+
containerPadding,
|
|
28509
|
+
hasIcon
|
|
28484
28510
|
} = _ref;
|
|
28485
28511
|
return {
|
|
28486
28512
|
backgroundColor: (_theme$listBox$backgr = (_theme$listBox = theme.listBox) === null || _theme$listBox === void 0 ? void 0 : _theme$listBox.backgroundColor) !== null && _theme$listBox$backgr !== void 0 ? _theme$listBox$backgr : theme.palette.background.default,
|
|
28487
28513
|
["& .".concat(classes$4.listBoxHeader)]: {
|
|
28488
28514
|
alignSelf: 'center',
|
|
28489
28515
|
display: 'flex',
|
|
28490
|
-
width: "calc(100% - ".concat(BUTTON_ICON_WIDTH, "px)")
|
|
28516
|
+
width: "calc(100% - ".concat(hasIcon ? BUTTON_ICON_WIDTH : 0, "px)")
|
|
28491
28517
|
},
|
|
28492
28518
|
["& .".concat(classes$4.screenReaderOnly)]: {
|
|
28493
28519
|
position: 'absolute',
|
|
@@ -28618,9 +28644,6 @@
|
|
|
28618
28644
|
reactExports.useEffect(() => {
|
|
28619
28645
|
const show = () => {
|
|
28620
28646
|
setShowToolbar(true);
|
|
28621
|
-
if (search === 'toggle' && toolbar === false) {
|
|
28622
|
-
setShowSearch(true);
|
|
28623
|
-
}
|
|
28624
28647
|
};
|
|
28625
28648
|
const hide = () => {
|
|
28626
28649
|
setShowToolbar(false);
|
|
@@ -28728,7 +28751,8 @@
|
|
|
28728
28751
|
onKeyDown: handleKeyDown,
|
|
28729
28752
|
onMouseEnter: handleOnMouseEnter,
|
|
28730
28753
|
onMouseLeave: handleOnMouseLeave,
|
|
28731
|
-
ref: containerRef
|
|
28754
|
+
ref: containerRef,
|
|
28755
|
+
hasIcon: showIcons
|
|
28732
28756
|
}, toolbar && /*#__PURE__*/React.createElement(Grid$1, {
|
|
28733
28757
|
item: true,
|
|
28734
28758
|
container: true,
|