@nebula.js/stardust 4.2.2 → 4.2.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 +10 -9
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +2 -2
- package/core/esm/index.js.map +1 -1
- package/dist/stardust.dev.js +10 -9
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +3 -3
- package/dist/stardust.js.map +1 -1
- package/package.json +9 -9
- package/types/index.d.ts +10 -10
package/core/esm/dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v4.2.
|
|
2
|
+
* @nebula.js/stardust v4.2.4
|
|
3
3
|
* Copyright (c) 2023 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -8394,7 +8394,7 @@ function create$3(definition) {
|
|
|
8394
8394
|
return cache[key];
|
|
8395
8395
|
}
|
|
8396
8396
|
|
|
8397
|
-
const NEBULA_VERSION_HASH = "
|
|
8397
|
+
const NEBULA_VERSION_HASH = "79ef" ;
|
|
8398
8398
|
ClassNameGenerator$1.configure(componentName => {
|
|
8399
8399
|
return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
|
|
8400
8400
|
});
|
|
@@ -8641,7 +8641,7 @@ function boot(_ref2) {
|
|
|
8641
8641
|
const appRef = React__default.createRef();
|
|
8642
8642
|
const element = document.createElement('div');
|
|
8643
8643
|
element.style.display = 'none';
|
|
8644
|
-
element.setAttribute('data-nebulajs-version', "4.2.
|
|
8644
|
+
element.setAttribute('data-nebulajs-version', "4.2.4" );
|
|
8645
8645
|
element.setAttribute('data-app-id', app.id);
|
|
8646
8646
|
document.body.appendChild(element);
|
|
8647
8647
|
if (context) {
|
|
@@ -13029,7 +13029,7 @@ function useListSizes(_ref) {
|
|
|
13029
13029
|
const {
|
|
13030
13030
|
fontSize = '12px',
|
|
13031
13031
|
fontFamily = 'Source sans pro'
|
|
13032
|
-
} = ((_theme$listBox = theme.listBox) === null || _theme$listBox === void 0 ? void 0 : _theme$listBox.content) || {};
|
|
13032
|
+
} = (theme === null || theme === void 0 ? void 0 : (_theme$listBox = theme.listBox) === null || _theme$listBox === void 0 ? void 0 : _theme$listBox.content) || {};
|
|
13033
13033
|
const font = "".concat(fontSize, " ").concat(fontFamily); // font format as supported by HTML canvas
|
|
13034
13034
|
const textWidth = useTextWidth({
|
|
13035
13035
|
text: getMeasureText(layout),
|
|
@@ -15484,7 +15484,8 @@ function ListBoxPopover(_ref) {
|
|
|
15484
15484
|
selectionState: selectionState$1,
|
|
15485
15485
|
direction: "ltr",
|
|
15486
15486
|
onSetListCount: c => setListCount(c),
|
|
15487
|
-
onCtrlF: onCtrlF
|
|
15487
|
+
onCtrlF: onCtrlF,
|
|
15488
|
+
theme: theme
|
|
15488
15489
|
}))));
|
|
15489
15490
|
}
|
|
15490
15491
|
|
|
@@ -21990,9 +21991,9 @@ function runSnaps(component, layout) {
|
|
|
21990
21991
|
}
|
|
21991
21992
|
return Promise.resolve();
|
|
21992
21993
|
}
|
|
21993
|
-
function runMenu(component, menu, event) {
|
|
21994
|
+
function runMenu(component, menu, event, menuBuilder) {
|
|
21994
21995
|
try {
|
|
21995
|
-
return Promise.all(component.__hooks.menus.map(h => Promise.resolve(h.fn(menu, event)))).then(menus => menus[menus.length - 1]);
|
|
21996
|
+
return Promise.all(component.__hooks.menus.map(h => Promise.resolve(h.fn(menu, event, menuBuilder)))).then(menus => menus[menus.length - 1]);
|
|
21996
21997
|
} catch (e) {
|
|
21997
21998
|
console.error(e);
|
|
21998
21999
|
}
|
|
@@ -23271,8 +23272,8 @@ function createWithHooks(generator, opts, galaxy) {
|
|
|
23271
23272
|
setSnapshotData(layout) {
|
|
23272
23273
|
return generator.component.runSnaps(this, layout);
|
|
23273
23274
|
},
|
|
23274
|
-
onContextMenu(menu, event) {
|
|
23275
|
-
return generator.component.runMenu(this, menu, event);
|
|
23275
|
+
onContextMenu(menu, event, menuBuilder) {
|
|
23276
|
+
return generator.component.runMenu(this, menu, event, menuBuilder);
|
|
23276
23277
|
},
|
|
23277
23278
|
focus() {
|
|
23278
23279
|
generator.component.focus(this);
|