@holoviz/panel 1.10.0 → 1.10.1-a.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/dist/bundled/bootstraptemplate/bootstrap.css +4 -0
- package/dist/bundled/deckglplot/@deck.gl/carto@^9.1.14/dist.min.js +8 -8
- package/dist/bundled/fastbasetemplate/fast.css +8 -1
- package/dist/bundled/licenses/index.json +4 -4
- package/dist/bundled/reacttemplate/react.css +4 -0
- package/dist/bundled/theme/fast.css +0 -18
- package/dist/bundled/vanillatemplate/vanilla.css +4 -0
- package/dist/css/progress.css +24 -19
- package/dist/lib/models/location.js +3 -0
- package/dist/lib/models/location.js.map +1 -1
- package/dist/lib/models/plotly.d.ts +1 -0
- package/dist/lib/models/plotly.js +32 -2
- package/dist/lib/models/plotly.js.map +1 -1
- package/dist/lib/models/react_component.js +13 -2
- package/dist/lib/models/react_component.js.map +1 -1
- package/dist/lib/models/reactive_html.js +32 -16
- package/dist/lib/models/reactive_html.js.map +1 -1
- package/dist/lib/models/tabs.d.ts +2 -0
- package/dist/lib/models/tabs.js +11 -0
- package/dist/lib/models/tabs.js.map +1 -1
- package/dist/lib/models/tabulator.js +17 -10
- package/dist/lib/models/tabulator.js.map +1 -1
- package/dist/lib/styles/progress.css.js +22 -16
- package/dist/panel.js +120 -42
- package/dist/panel.js.map +1 -1
- package/dist/panel.json +1 -1
- package/dist/panel.min.js +8 -8
- package/package.json +1 -1
- package/dist/css/katex.css +0 -3
- package/dist/dts/styles/katex.css.d.ts +0 -4
- package/dist/lib/styles/katex.css.d.ts +0 -2
- package/dist/lib/styles/katex.css.js +0 -1
package/dist/panel.js
CHANGED
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
__esExport("CustomSelect", customselect_1.CustomSelect);
|
|
83
83
|
var multiselect_1 = require("8653ba687c") /* ./multiselect */;
|
|
84
84
|
__esExport("CustomMultiSelect", multiselect_1.CustomMultiSelect);
|
|
85
|
-
var tabulator_1 = require("
|
|
85
|
+
var tabulator_1 = require("c83eb9faa5") /* ./tabulator */;
|
|
86
86
|
__esExport("DataTabulator", tabulator_1.DataTabulator);
|
|
87
87
|
__esExport("TabulatorColumn", tabulator_1.TabulatorColumn);
|
|
88
88
|
var datetime_picker_1 = require("7408873be7") /* ./datetime_picker */;
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
__esExport("JSONEditor", jsoneditor_1.JSONEditor);
|
|
112
112
|
var katex_1 = require("052b7b0298") /* ./katex */;
|
|
113
113
|
__esExport("KaTeX", katex_1.KaTeX);
|
|
114
|
-
var location_1 = require("
|
|
114
|
+
var location_1 = require("cc871e1a06") /* ./location */;
|
|
115
115
|
__esExport("Location", location_1.Location);
|
|
116
116
|
var mathjax_1 = require("07688254ed") /* ./mathjax */;
|
|
117
117
|
__esExport("MathJax", mathjax_1.MathJax);
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
__esExport("Perspective", perspective_1.Perspective);
|
|
124
124
|
var player_1 = require("ed49986321") /* ./player */;
|
|
125
125
|
__esExport("Player", player_1.Player);
|
|
126
|
-
var plotly_1 = require("
|
|
126
|
+
var plotly_1 = require("8afb30c713") /* ./plotly */;
|
|
127
127
|
__esExport("PlotlyPlot", plotly_1.PlotlyPlot);
|
|
128
128
|
var progress_1 = require("443fb5cf42") /* ./progress */;
|
|
129
129
|
__esExport("Progress", progress_1.Progress);
|
|
@@ -131,9 +131,9 @@
|
|
|
131
131
|
__esExport("QuillInput", quill_1.QuillInput);
|
|
132
132
|
var radio_button_group_1 = require("08a22fed1a") /* ./radio_button_group */;
|
|
133
133
|
__esExport("RadioButtonGroup", radio_button_group_1.RadioButtonGroup);
|
|
134
|
-
var react_component_1 = require("
|
|
134
|
+
var react_component_1 = require("e15dcd0085") /* ./react_component */;
|
|
135
135
|
__esExport("ReactComponent", react_component_1.ReactComponent);
|
|
136
|
-
var reactive_html_1 = require("
|
|
136
|
+
var reactive_html_1 = require("44b7d77ba5") /* ./reactive_html */;
|
|
137
137
|
__esExport("ReactiveHTML", reactive_html_1.ReactiveHTML);
|
|
138
138
|
var reactive_esm_1 = require("f3226cbf82") /* ./reactive_esm */;
|
|
139
139
|
__esExport("ReactiveESM", reactive_esm_1.ReactiveESM);
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
__esExport("SpeechToText", speech_to_text_1.SpeechToText);
|
|
146
146
|
var state_1 = require("188544eb0b") /* ./state */;
|
|
147
147
|
__esExport("State", state_1.State);
|
|
148
|
-
var tabs_1 = require("
|
|
148
|
+
var tabs_1 = require("c5ac7daa0f") /* ./tabs */;
|
|
149
149
|
__esExport("Tabs", tabs_1.Tabs);
|
|
150
150
|
var terminal_1 = require("4fecff5c68") /* ./terminal */;
|
|
151
151
|
__esExport("Terminal", terminal_1.Terminal);
|
|
@@ -21157,7 +21157,7 @@ ${namesToRegister
|
|
|
21157
21157
|
}
|
|
21158
21158
|
exports.CustomMultiSelect = CustomMultiSelect;
|
|
21159
21159
|
},
|
|
21160
|
-
"
|
|
21160
|
+
"c83eb9faa5": /* models/tabulator.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
21161
21161
|
__esModule();
|
|
21162
21162
|
const tslib_1 = require("tslib");
|
|
21163
21163
|
const dom_1 = require("@bokehjs/core/dom");
|
|
@@ -21289,7 +21289,7 @@ ${namesToRegister
|
|
|
21289
21289
|
}
|
|
21290
21290
|
}
|
|
21291
21291
|
}
|
|
21292
|
-
else {
|
|
21292
|
+
else if (agg) {
|
|
21293
21293
|
summary[column.field] = val;
|
|
21294
21294
|
}
|
|
21295
21295
|
}
|
|
@@ -21336,7 +21336,7 @@ ${namesToRegister
|
|
|
21336
21336
|
}
|
|
21337
21337
|
}
|
|
21338
21338
|
else {
|
|
21339
|
-
aggs.push("
|
|
21339
|
+
aggs.push("");
|
|
21340
21340
|
}
|
|
21341
21341
|
}
|
|
21342
21342
|
summarize(grouped, columns, aggs);
|
|
@@ -21555,6 +21555,7 @@ ${namesToRegister
|
|
|
21555
21555
|
* ready chain pending forever, which would otherwise block every later redraw.
|
|
21556
21556
|
*/
|
|
21557
21557
|
const ROOT_READY_TIMEOUT_MS = 250;
|
|
21558
|
+
const RESIZE_BLOCKED_FRAMES = 10;
|
|
21558
21559
|
class DataTabulatorView extends layout_1.HTMLBoxView {
|
|
21559
21560
|
tabulator;
|
|
21560
21561
|
columns = new Map();
|
|
@@ -21568,7 +21569,7 @@ ${namesToRegister
|
|
|
21568
21569
|
_selection_updating = false;
|
|
21569
21570
|
_selection_pending = true;
|
|
21570
21571
|
_last_selected_row = null;
|
|
21571
|
-
_initializing;
|
|
21572
|
+
_initializing = true;
|
|
21572
21573
|
_lastVerticalScrollbarTopPosition = 0;
|
|
21573
21574
|
_lastHorizontalScrollbarLeftPosition = 0;
|
|
21574
21575
|
_applied_styles = false;
|
|
@@ -21779,6 +21780,7 @@ ${namesToRegister
|
|
|
21779
21780
|
});
|
|
21780
21781
|
}
|
|
21781
21782
|
async _flush_resize_when_root_ready() {
|
|
21783
|
+
let blocked = 0;
|
|
21782
21784
|
while (true) {
|
|
21783
21785
|
if (!this._resize_pending) {
|
|
21784
21786
|
return;
|
|
@@ -21798,7 +21800,9 @@ ${namesToRegister
|
|
|
21798
21800
|
this.is_drawing ||
|
|
21799
21801
|
this._has_active_editor() ||
|
|
21800
21802
|
!this.stylesheets_settled) {
|
|
21801
|
-
|
|
21803
|
+
// `root.ready` is usually already resolved, so a blocking condition that persists
|
|
21804
|
+
// would otherwise spin this loop; back off once it outlasts a few frames.
|
|
21805
|
+
await (blocked++ < RESIZE_BLOCKED_FRAMES ? (0, defer_1.paint)() : (0, defer_1.delay)(ROOT_READY_TIMEOUT_MS));
|
|
21802
21806
|
continue;
|
|
21803
21807
|
}
|
|
21804
21808
|
this._resize_pending = false;
|
|
@@ -21818,11 +21822,14 @@ ${namesToRegister
|
|
|
21818
21822
|
this.record_scroll();
|
|
21819
21823
|
this._updating_scroll = true;
|
|
21820
21824
|
this.redraw(true, true);
|
|
21825
|
+
this._updating_scroll = false;
|
|
21826
|
+
this._pending_scroll_restores += 1;
|
|
21821
21827
|
requestAnimationFrame(() => {
|
|
21822
21828
|
this._initializing = false;
|
|
21823
21829
|
if (this._selection_pending) {
|
|
21824
21830
|
this.setSelection();
|
|
21825
21831
|
}
|
|
21832
|
+
this._pending_scroll_restores -= 1;
|
|
21826
21833
|
this.restore_scroll();
|
|
21827
21834
|
this.recompute_page_size();
|
|
21828
21835
|
});
|
|
@@ -22107,7 +22114,8 @@ ${namesToRegister
|
|
|
22107
22114
|
}
|
|
22108
22115
|
getConfiguration() {
|
|
22109
22116
|
// Only use selectable mode if explicitly requested otherwise manually handle selections
|
|
22110
|
-
|
|
22117
|
+
// Tabulator only skips marking rows as selectable (class and hover styling) for exactly false
|
|
22118
|
+
const selectableRows = this.model.select_mode === "toggle" ? true : (this.model.select_mode === false ? false : NaN);
|
|
22111
22119
|
const configuration = {
|
|
22112
22120
|
...(0, util_1.transformJsPlaceholders)(this.model.configuration),
|
|
22113
22121
|
index: "_index",
|
|
@@ -22557,10 +22565,9 @@ ${namesToRegister
|
|
|
22557
22565
|
if (!row) {
|
|
22558
22566
|
continue;
|
|
22559
22567
|
}
|
|
22560
|
-
const cells = row._row.cells;
|
|
22561
|
-
for (const
|
|
22562
|
-
const
|
|
22563
|
-
const cell = cells[c];
|
|
22568
|
+
const cells = new Map(row._row.cells.map((cell) => [cell.column.field, cell]));
|
|
22569
|
+
for (const [field, style] of Object.entries(row_style)) {
|
|
22570
|
+
const cell = cells.get(field);
|
|
22564
22571
|
if (cell == null || !style.length) {
|
|
22565
22572
|
continue;
|
|
22566
22573
|
}
|
|
@@ -29718,7 +29725,7 @@ ${namesToRegister
|
|
|
29718
29725
|
}
|
|
29719
29726
|
exports.KaTeX = KaTeX;
|
|
29720
29727
|
},
|
|
29721
|
-
"
|
|
29728
|
+
"cc871e1a06": /* models/location.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
29722
29729
|
__esModule();
|
|
29723
29730
|
const view_1 = require("@bokehjs/core/view");
|
|
29724
29731
|
const model_1 = require("@bokehjs/model");
|
|
@@ -29789,6 +29796,9 @@ ${namesToRegister
|
|
|
29789
29796
|
update(change) {
|
|
29790
29797
|
const url = `${this.model.pathname}${this.model.search}${this.model.hash}`;
|
|
29791
29798
|
if (change === "reload") {
|
|
29799
|
+
if (!this.model.reload) {
|
|
29800
|
+
return;
|
|
29801
|
+
}
|
|
29792
29802
|
window.history.pushState({}, "", url);
|
|
29793
29803
|
this.model.href = window.location.href;
|
|
29794
29804
|
window.location.reload();
|
|
@@ -30410,7 +30420,7 @@ ${namesToRegister
|
|
|
30410
30420
|
.psp-header-group-corner
|
|
30411
30421
|
){box-shadow:1px 0px var(--inactive--color, #eaedef), 0px 10px 0 -9px var(--inactive--color, #eaedef);}.psp-header-leaf.psp-header-border{box-shadow:5px -4px 0px -4px var(--inactive--color, #eaedef);}tr:only-child th{box-shadow:none !important;}regular-table tbody tr:hover th.psp-tree-leaf:not(.psp-row-selected):not(.psp-row-subselected),regular-table tbody tr:hover th.psp-tree-label:not(.psp-row-selected):not(.psp-row-subselected),regular-table tbody tr:hover td:not(.psp-row-selected):not(.psp-row-subselected){border-color:var(--rt-hover--border-color, #c5c9d080) !important;background-color:transparent;box-shadow:0px 1px 0px var(--rt-hover--border-color, #c5c9d080), 0px 3px 0px rgba(0, 0, 0, 0.05), 0px 5px 0px rgba(0, 0, 0, 0.01);}regular-table tbody tr:hover + tr th.psp-tree-leaf:not(.psp-row-selected):not(.psp-row-subselected),regular-table tbody tr:hover + tr th.psp-tree-label:not(.psp-row-selected):not(.psp-row-subselected),regular-table tbody tr:hover + tr td:not(.psp-row-selected):not(.psp-row-subselected){border-top-color:transparent;}regular-table tbody tr th:first-child:not(:empty),regular-table tbody tr th:first-child:empty + th:not(:empty),regular-table tbody tr th:first-child:empty ~ th:empty + th:not(:empty),regular-table tbody tr td:first-child{border-left-width:1px;border-left-color:transparent;}regular-table tbody tr th:last-child,regular-table tbody tr td:last-child{border-right-width:1px;border-right-color:transparent;}regular-table tbody tr:hover{color:#161616;}regular-table tbody tr:hover th:first-child:not(:empty),regular-table tbody tr:hover th:first-child:empty + th:not(:empty),regular-table tbody tr:hover th:first-child:empty ~ th:empty + th:not(:empty),regular-table tbody tr:hover td:first-child{border-left-color:var(--rt-hover--border-color, #c5c9d080) !important;}regular-table tbody tr:hover th:last-child,regular-table tbody tr:hover td:last-child{border-right-color:var(--rt-hover--border-color, #c5c9d080) !important;}perspective-viewer[settings] regular-table .psp-header-leaf{height:36px;vertical-align:top;padding-top:2px;}perspective-viewer[settings] regular-table .psp-header-leaf:not(.psp-header-corner):before{font-family:var(--button--font-family, inherit);content:var(--column-style-open-button--content, var(--config-button-icon--content, '\u1f527'));position:absolute;width:calc(100% - 8px);left:5px;bottom:0px;color:var(--inactive--color, #b4b7be);}perspective-viewer[settings] regular-table .psp-header-leaf.psp-menu-enabled:not(.psp-header-corner):before{color:inherit;cursor:pointer;}perspective-viewer[settings] regular-table .psp-header-leaf.psp-menu-open:not(.psp-header-corner){pointer-events:none;}perspective-viewer[settings] regular-table .psp-header-leaf.psp-menu-open:not(.psp-header-corner):before{content:var(--column-style-close-button--content, 'X');}perspective-viewer[settings] regular-table .psp-header-leaf.psp-menu-enabled:hover:before{color:#338dcd;}perspective-viewer[settings] regular-table .psp-header-leaf .rt-column-resize{height:18px;}.psp-row-selected,:hover .psp-row-selected,:hover th.psp-tree-leaf.psp-row-selected,:hover th.psp-tree-label.psp-row-selected{color:white !important;background-color:#ea7319 !important;border-color:#ea7319 !important;}.psp-row-selected.psp-tree-label:not(:hover):before{color:white;}.psp-row-subselected,:hover .psp-row-subselected,:hover th.psp-tree-leaf.psp-row-subselected,:hover th.psp-tree-label.psp-row-subselected{background:rgba(234, 115, 25, 0.2) !important;}.psp-error{color:red;}td:focus{outline:#666;outline-style:dotted;outline-width:1px;}perspective-viewer.dragging regular-table{pointer-events:none;}.psp-header-border:last-child{border-right-width:0px;}.psp-header-sort-desc:after{font-family:var(--button--font-family, inherit);font-size:10px;content:var(--sort-order-desc--content, '\u2193');}.psp-header-sort-asc:after{font-family:var(--button--font-family, inherit);font-size:10px;content:var(--sort-order-asc--content, '\u2191');}.psp-header-sort-col-desc:after{font-family:var(--button--font-family, inherit);font-size:10px;content:var(--sort-order-col-desc--content, '\u2190');}.psp-header-sort-col-asc:after{font-family:var(--button--font-family, inherit);font-size:10px;content:var(--sort-order-col-asc--content, '\u2192');}tbody th:last-of-type{border-right:1px solid #eaedef;overflow:hidden;text-overflow:ellipsis;}tbody th:empty{background-image:linear-gradient(to right, transparent 9px, #eee 10px, transparent 11px);background-repeat:no-repeat;min-width:20px;max-width:20px;pointer-events:none;}.psp-tree-label{max-width:0px;min-width:0px;}.psp-tree-label:before{color:#ccc;font-family:var(--button--font-family, inherit);padding-right:11px;vertical-align:-1px;}.psp-tree-label-expand:before{content:var(--tree-label-expand--content, '+');}.psp-tree-label-collapse:before{content:var(--tree-label-collapse--content, '-');}.psp-tree-label:hover:before{color:#338dcd;text-shadow:0px 0px 5px #338dcd;}regular-table thead tr:last-child th{border-bottom-width:1px;border-bottom-color:var(--inactive--color, #eaedef);}.psp-tree-leaf{padding-left:24px;}.psp-align-right{text-align:right;}.psp-align-left{text-align:left;}.psp-positive:not(:focus){color:var(--rt-pos-cell--color, #338dcd);}.psp-negative:not(:focus){color:var(--rt-neg-cell--color, #ff5942);}regular-table table tbody td{min-width:52px !important;}.psp-is-width-override .rt-column-resize,.rt-column-resize:hover{border:1px dashed #999;border-bottom-width:0px;border-left-width:0px;}.psp-bool-type{font-family:var(--button--font-family, 'Material Icons');}.boolean-editable{cursor:pointer;}regular-table table{user-select:none;color:#161616;border-collapse:separate;}regular-table table th{font-weight:400;}regular-table table td,regular-table table th{border-color:#eaedef;height:23px;}regular-table table .psp-header-group{text-overflow:ellipsis;}regular-table table .psp-header-leaf{border-bottom-width:0px;}regular-table table td,regular-table table th.psp-tree-label,regular-table table th.psp-tree-label,regular-table table th.psp-tree-leaf,regular-table table tbody tr:first-child th{border-style:solid;border-width:0px;border-top-width:1px;}regular-table table tbody th:empty{background-position:0px -10px;}@keyframes pulse_pos{0%{background-color:var(--pulse--background-color-start, rgba(0, 128, 255, 0.5));}100%{background-color:var(--pulse--background-color-end, rgba(0, 128, 255, 0));}}@keyframes pulse_pos2{0%{background-color:var(--pulse--background-color-start, rgba(0, 128, 255, 0.5));}100%{background-color:var(--pulse--background-color-end, rgba(0, 128, 255, 0));}}@keyframes pulse_neg{0%{background-color:var(--pulse--background-color-start, rgba(255, 25, 0, 0.5));}100%{background-color:var(--pulse--background-color-end, rgba(255, 25, 0, 0));}}@keyframes pulse_neg2{0%{background-color:var(--pulse--background-color-start, rgba(255, 25, 0, 0.5));}100%{background-color:var(--pulse--background-color-end, rgba(255, 25, 0, 0));}}`;
|
|
30412
30422
|
},
|
|
30413
|
-
"
|
|
30423
|
+
"8afb30c713": /* models/plotly.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
30414
30424
|
__esModule();
|
|
30415
30425
|
const tslib_1 = require("tslib");
|
|
30416
30426
|
const bokeh_events_1 = require("@bokehjs/core/bokeh_events");
|
|
@@ -30454,6 +30464,18 @@ ${namesToRegister
|
|
|
30454
30464
|
}
|
|
30455
30465
|
}
|
|
30456
30466
|
exports.PlotlyEvent = PlotlyEvent;
|
|
30467
|
+
const decodeUndefined = (obj) => {
|
|
30468
|
+
if (obj === "_undefined_") {
|
|
30469
|
+
return undefined;
|
|
30470
|
+
}
|
|
30471
|
+
else if (Array.isArray(obj)) {
|
|
30472
|
+
return obj.map(decodeUndefined);
|
|
30473
|
+
}
|
|
30474
|
+
else if ((0, types_1.isPlainObject)(obj)) {
|
|
30475
|
+
return Object.fromEntries(Object.entries(obj).map(([k, v]) => [k, decodeUndefined(v)]));
|
|
30476
|
+
}
|
|
30477
|
+
return obj;
|
|
30478
|
+
};
|
|
30457
30479
|
const filterEventData = (gd, eventData, event) => {
|
|
30458
30480
|
// Ported from dash-core-components/src/components/Graph.react.js
|
|
30459
30481
|
const filteredEventData = Array.isArray(eventData) ? [] : {};
|
|
@@ -30514,8 +30536,12 @@ ${namesToRegister
|
|
|
30514
30536
|
const pointData = {};
|
|
30515
30537
|
for (const property in fullPoint) {
|
|
30516
30538
|
const val = fullPoint[property];
|
|
30539
|
+
// Arrays of primitives (e.g. multicategory x, heatmap pointNumber)
|
|
30540
|
+
// are safe; arrays holding objects may be circular or huge.
|
|
30541
|
+
const isPrimitiveArray = Array.isArray(val) &&
|
|
30542
|
+
val.every((v) => v === null || typeof v !== "object");
|
|
30517
30543
|
if (fullPoint.hasOwnProperty(property) &&
|
|
30518
|
-
!Array.isArray(val) && !(0, types_1.isPlainObject)(val) &&
|
|
30544
|
+
(isPrimitiveArray || (!Array.isArray(val) && !(0, types_1.isPlainObject)(val))) &&
|
|
30519
30545
|
val !== undefined) {
|
|
30520
30546
|
pointData[property] = val;
|
|
30521
30547
|
}
|
|
@@ -30568,6 +30594,7 @@ ${namesToRegister
|
|
|
30568
30594
|
_rendered = false;
|
|
30569
30595
|
_reacting = false;
|
|
30570
30596
|
_relayouting = false;
|
|
30597
|
+
_model_restyles = 0;
|
|
30571
30598
|
_hoverdata = null;
|
|
30572
30599
|
container;
|
|
30573
30600
|
_watched_sources;
|
|
@@ -30601,7 +30628,11 @@ ${namesToRegister
|
|
|
30601
30628
|
if (this.model.restyle == null) {
|
|
30602
30629
|
return;
|
|
30603
30630
|
}
|
|
30604
|
-
|
|
30631
|
+
const data = decodeUndefined(this.model.restyle.data);
|
|
30632
|
+
this._model_restyles += 1;
|
|
30633
|
+
window.Plotly.restyle(this.container, data, this.model.restyle.traces).finally(() => {
|
|
30634
|
+
this._model_restyles -= 1;
|
|
30635
|
+
});
|
|
30605
30636
|
this.model.restyle = null;
|
|
30606
30637
|
});
|
|
30607
30638
|
this.on_change(viewport_update_policy, () => {
|
|
@@ -30653,6 +30684,11 @@ ${namesToRegister
|
|
|
30653
30684
|
}
|
|
30654
30685
|
const width = Math.min(this.model.width || this.el.clientWidth, this.model.max_width || Infinity);
|
|
30655
30686
|
const height = Math.min(this.model.height || this.el.clientHeight, this.model.max_height || Infinity);
|
|
30687
|
+
// A relayout resets the hover state, dropping clicks right after it
|
|
30688
|
+
const { layout } = this.container;
|
|
30689
|
+
if (layout != null && layout.width === width && layout.height === height) {
|
|
30690
|
+
return;
|
|
30691
|
+
}
|
|
30656
30692
|
window.Plotly.relayout(this.container, { width, height });
|
|
30657
30693
|
}
|
|
30658
30694
|
after_layout() {
|
|
@@ -30698,6 +30734,10 @@ ${namesToRegister
|
|
|
30698
30734
|
});
|
|
30699
30735
|
// - plotly_restyle
|
|
30700
30736
|
this.container.on("plotly_restyle", (eventData) => {
|
|
30737
|
+
// Echoing a restyle sent by Python could arrive after a newer update and revert it
|
|
30738
|
+
if (this._model_restyles > 0) {
|
|
30739
|
+
return;
|
|
30740
|
+
}
|
|
30701
30741
|
this.model.restyle_data = filterEventData(this.container, eventData, "restyle");
|
|
30702
30742
|
this._updateViewportProperty();
|
|
30703
30743
|
});
|
|
@@ -31300,7 +31340,7 @@ ${namesToRegister
|
|
|
31300
31340
|
}
|
|
31301
31341
|
exports.RadioButtonGroup = RadioButtonGroup;
|
|
31302
31342
|
},
|
|
31303
|
-
"
|
|
31343
|
+
"e15dcd0085": /* models/react_component.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
31304
31344
|
__esModule();
|
|
31305
31345
|
const build_views_1 = require("@bokehjs/core/build_views");
|
|
31306
31346
|
const view_1 = require("@bokehjs/core/view");
|
|
@@ -31948,6 +31988,17 @@ export default {React, createRoot}`;
|
|
|
31948
31988
|
function css_class_name(class_name) {
|
|
31949
31989
|
return class_name.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
31950
31990
|
}
|
|
31991
|
+
// A repeated model shares one view, whose element can only be mounted once.
|
|
31992
|
+
function unique_models(models) {
|
|
31993
|
+
const seen = new Set();
|
|
31994
|
+
return models.filter((model) => {
|
|
31995
|
+
if (seen.has(model.id)) {
|
|
31996
|
+
return false;
|
|
31997
|
+
}
|
|
31998
|
+
seen.add(model.id);
|
|
31999
|
+
return true;
|
|
32000
|
+
});
|
|
32001
|
+
}
|
|
31951
32002
|
function react_model_proxy(view, libs, Child) {
|
|
31952
32003
|
const { React } = libs;
|
|
31953
32004
|
const react_proxy = new Proxy(view, {
|
|
@@ -32007,12 +32058,12 @@ export default {React, createRoot}`;
|
|
|
32007
32058
|
if (!(0, types_1.isArray)(value)) {
|
|
32008
32059
|
return React.createElement(Child, { parent: target, name: child });
|
|
32009
32060
|
}
|
|
32010
|
-
const [children_state, set_children] = React.useState(() => value.map((model) => React.createElement(Child, { parent: target, name: child, key: model.id, id: model.id, model })));
|
|
32061
|
+
const [children_state, set_children] = React.useState(() => unique_models(value).map((model) => React.createElement(Child, { parent: target, name: child, key: model.id, id: model.id, model })));
|
|
32011
32062
|
React.useEffect(() => {
|
|
32012
32063
|
// Compares against the latest state, not the closure's initial
|
|
32013
32064
|
// one, and catches lists that only shrank.
|
|
32014
32065
|
const cb = () => {
|
|
32015
|
-
const current_models = data_model.attributes[child];
|
|
32066
|
+
const current_models = unique_models(data_model.attributes[child]);
|
|
32016
32067
|
set_children((previous) => {
|
|
32017
32068
|
if (previous.length === current_models.length &&
|
|
32018
32069
|
current_models.every((model, i) => model.id === previous[i].props.id)) {
|
|
@@ -32149,7 +32200,7 @@ ${compiled}`;
|
|
|
32149
32200
|
}
|
|
32150
32201
|
exports.ReactComponent = ReactComponent;
|
|
32151
32202
|
},
|
|
32152
|
-
"
|
|
32203
|
+
"44b7d77ba5": /* models/reactive_html.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
32153
32204
|
__esModule();
|
|
32154
32205
|
const preact_1 = require("ed32986312") /* preact */;
|
|
32155
32206
|
const hooks_1 = require("691acbd345") /* preact/hooks */;
|
|
@@ -32394,7 +32445,7 @@ ${compiled}`;
|
|
|
32394
32445
|
}
|
|
32395
32446
|
_render_child(child, el) {
|
|
32396
32447
|
if ((0, types_1.isString)(child)) {
|
|
32397
|
-
el.innerHTML =
|
|
32448
|
+
el.innerHTML = child;
|
|
32398
32449
|
}
|
|
32399
32450
|
else {
|
|
32400
32451
|
const view = this._child_views.get(child);
|
|
@@ -32459,6 +32510,7 @@ ${compiled}`;
|
|
|
32459
32510
|
let htm = literal.replace(/[`]/g, "\\$&");
|
|
32460
32511
|
let collected_callbacks = "";
|
|
32461
32512
|
const methods = [];
|
|
32513
|
+
const targets = {};
|
|
32462
32514
|
for (const [el_name, callbacks] of (0, object_1.entries)(this.model.callbacks)) {
|
|
32463
32515
|
for (const [cb, method] of callbacks) {
|
|
32464
32516
|
let definition;
|
|
@@ -32479,21 +32531,9 @@ ${compiled}`;
|
|
|
32479
32531
|
`;
|
|
32480
32532
|
}
|
|
32481
32533
|
else {
|
|
32482
|
-
|
|
32483
|
-
|
|
32484
|
-
|
|
32485
|
-
if (RegExp("\{\{.*loop\.index.*\}\}").test(elname)) {
|
|
32486
|
-
const pattern = RegExp(elname.replace(/\{\{(.+?)\}\}/g, String.fromCharCode(92) + "d+"))
|
|
32487
|
-
for (const p of event.path) {
|
|
32488
|
-
if (pattern.exec(p.id) != null) {
|
|
32489
|
-
elname = p.id.split("-").slice(null, -1).join("-")
|
|
32490
|
-
break
|
|
32491
|
-
}
|
|
32492
|
-
}
|
|
32493
|
-
}
|
|
32494
|
-
view._send_event(elname, "${cb}", event)
|
|
32495
|
-
}
|
|
32496
|
-
`;
|
|
32534
|
+
targets[method] = targets[method] ?? [];
|
|
32535
|
+
targets[method].push([el_name, cb]);
|
|
32536
|
+
continue;
|
|
32497
32537
|
}
|
|
32498
32538
|
if (methods.indexOf(method) > -1) {
|
|
32499
32539
|
continue;
|
|
@@ -32502,6 +32542,33 @@ ${compiled}`;
|
|
|
32502
32542
|
collected_callbacks += definition;
|
|
32503
32543
|
}
|
|
32504
32544
|
}
|
|
32545
|
+
for (const [method, method_targets] of (0, object_1.entries)(targets)) {
|
|
32546
|
+
// Nodes sharing a callback must resolve the node from the event
|
|
32547
|
+
// path, since only a single function is defined per method name.
|
|
32548
|
+
collected_callbacks += `
|
|
32549
|
+
const ${method} = (event) => {
|
|
32550
|
+
const targets = ${JSON.stringify(method_targets)}
|
|
32551
|
+
let [elname, cb] = targets[0]
|
|
32552
|
+
// currentTarget is the node the listener is attached to, which
|
|
32553
|
+
// differs from the innermost path element for nested nodes.
|
|
32554
|
+
const candidates = [event.currentTarget, ...event.composedPath()]
|
|
32555
|
+
const typed = targets.filter(([, c]) => c === "on" + event.type)
|
|
32556
|
+
const options = typed.length ? typed : targets
|
|
32557
|
+
for (const p of candidates) {
|
|
32558
|
+
const match = p == null ? null : options.find(([name]) => {
|
|
32559
|
+
const pattern = name.replace(/\\{\\{(.+?)\\}\\}/g, String.fromCharCode(92) + "d+")
|
|
32560
|
+
return RegExp("^" + pattern + "(-[0-9]+)*-[^-]+$").test(p.id)
|
|
32561
|
+
})
|
|
32562
|
+
if (match != null) {
|
|
32563
|
+
elname = p.id.split("-").slice(null, -1).join("-")
|
|
32564
|
+
cb = match[1]
|
|
32565
|
+
break
|
|
32566
|
+
}
|
|
32567
|
+
}
|
|
32568
|
+
view._send_event(elname, cb, event)
|
|
32569
|
+
}
|
|
32570
|
+
`;
|
|
32571
|
+
}
|
|
32505
32572
|
htm = htm
|
|
32506
32573
|
.replaceAll("${model.", "$-{model.")
|
|
32507
32574
|
.replaceAll("${", "${data.")
|
|
@@ -33500,7 +33567,7 @@ ${compiled}`;
|
|
|
33500
33567
|
}
|
|
33501
33568
|
exports.State = State;
|
|
33502
33569
|
},
|
|
33503
|
-
"
|
|
33570
|
+
"c5ac7daa0f": /* models/tabs.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
33504
33571
|
__esModule();
|
|
33505
33572
|
const tslib_1 = require("tslib");
|
|
33506
33573
|
const tabs = tslib_1.__importStar(require("@bokehjs/styles/tabs.css"));
|
|
@@ -33522,8 +33589,19 @@ ${compiled}`;
|
|
|
33522
33589
|
element.setAttribute("aria-hidden", "true");
|
|
33523
33590
|
}
|
|
33524
33591
|
class TabsView extends tabs_1.TabsView {
|
|
33592
|
+
_children_update = Promise.resolve();
|
|
33593
|
+
// build_views is not reentrant
|
|
33594
|
+
update_children() {
|
|
33595
|
+
const update = this._children_update.then(() => super.update_children());
|
|
33596
|
+
this._children_update = update.catch(() => { });
|
|
33597
|
+
return update;
|
|
33598
|
+
}
|
|
33525
33599
|
connect_signals() {
|
|
33526
33600
|
super.connect_signals();
|
|
33601
|
+
this.on_transitive_change(this.model.properties.tabs, () => {
|
|
33602
|
+
this._update_headers();
|
|
33603
|
+
this.update_active();
|
|
33604
|
+
}, { signal: (tab) => tab.properties.title.change });
|
|
33527
33605
|
let view = this;
|
|
33528
33606
|
while (view != null) {
|
|
33529
33607
|
if (view.model.type.endsWith("Tabs")) {
|
|
@@ -36636,5 +36714,5 @@ ${compiled}`;
|
|
|
36636
36714
|
util_1.vtkns.FullScreenRenderWindowSynchronized = FullScreenRenderWindowSynchronized;
|
|
36637
36715
|
}
|
|
36638
36716
|
},
|
|
36639
|
-
}, "4e90918c0a", {"index":"4e90918c0a","models/index":"36236053e8","models/ace":"7b034b2ba5","models/layout":"00beb93e38","models/resources":"3ec7d872e2","models/util":"aa07eb54cc","models/anywidget_component":"f4bc4e23b4","models/reactive_esm":"f3226cbf82","models/event-to-object":"e5a0036205","models/html":"9012c2f5ae","styles/models/html.css":"9b8139e439","styles/models/esm.css":"727a14f76b","models/audio":"fdf76c2b8b","models/browser":"f25f215a58","models/button":"29120fca73","models/button_icon":"7e77f478cb","models/icon":"bf77ad153d","models/card":"a668a42a0f","models/column":"3967d78fb5","styles/models/card.css":"6342ac8e26","models/checkbox_button_group":"138d8a2ed1","models/chatarea_input":"a9ce3554f5","models/textarea_input":"2f8fe6797e","models/comm_manager":"f8f420cdc3","models/customselect":"519009caed","models/multiselect":"8653ba687c","models/tabulator":"
|
|
36717
|
+
}, "4e90918c0a", {"index":"4e90918c0a","models/index":"36236053e8","models/ace":"7b034b2ba5","models/layout":"00beb93e38","models/resources":"3ec7d872e2","models/util":"aa07eb54cc","models/anywidget_component":"f4bc4e23b4","models/reactive_esm":"f3226cbf82","models/event-to-object":"e5a0036205","models/html":"9012c2f5ae","styles/models/html.css":"9b8139e439","styles/models/esm.css":"727a14f76b","models/audio":"fdf76c2b8b","models/browser":"f25f215a58","models/button":"29120fca73","models/button_icon":"7e77f478cb","models/icon":"bf77ad153d","models/card":"a668a42a0f","models/column":"3967d78fb5","styles/models/card.css":"6342ac8e26","models/checkbox_button_group":"138d8a2ed1","models/chatarea_input":"a9ce3554f5","models/textarea_input":"2f8fe6797e","models/comm_manager":"f8f420cdc3","models/customselect":"519009caed","models/multiselect":"8653ba687c","models/tabulator":"c83eb9faa5","models/cell_formatters":"254387d0dc","models/data":"be689f0377","styles/models/tabulator.css":"b0fdc4e99b","models/datetime_picker":"7408873be7","models/datetime_slider":"47671196f6","models/deckgl":"609f06c18b","models/lumagl":"16d69e2b49","models/tooltips":"f8f8ea4284","models/discrete_player":"eee856b107","models/player":"ed49986321","models/echarts":"df5e7d36e5","models/feed":"56255f9c11","models/file_download":"a7746def5a","models/file_dropper":"bff8eeed36","styles/models/filedropper.css":"c03dd3c931","models/ipywidget":"fd4c3f6bc4","models/json":"19285971d9","models/jsoneditor":"372d3e3a52","styles/models/jsoneditor.css":"317a12d360","models/katex":"052b7b0298","models/location":"cc871e1a06","models/mathjax":"07688254ed","models/modal":"37ed29726e","styles/models/modal.css":"be4b4352c6","models/pdf":"87a65d7fb5","models/perspective":"7a00e4d590","styles/models/perspective.css":"2e2913ea54","models/plotly":"8afb30c713","styles/models/plotly.css":"3d56c75186","models/progress":"443fb5cf42","models/quill":"3df70ba3b3","models/radio_button_group":"08a22fed1a","models/react_component":"e15dcd0085","models/reactive_html":"44b7d77ba5","models/singleselect":"3766e0c917","models/speech_to_text":"95fa78f501","models/state":"188544eb0b","models/tabs":"c5ac7daa0f","models/terminal":"4fecff5c68","models/text_input":"e9d16ed037","models/text_to_speech":"1fb38b62cd","models/time_picker":"5e05e2d651","models/toggle_icon":"49efbd99ad","models/tooltip_icon":"aad04f1876","models/trend":"eb967020e9","models/vega":"03e8d20a08","models/video":"e8830cc759","styles/models/video.css":"dfe21e6f1b","models/videostream":"73b5826147","models/vizzu":"e8cb25b7b8","models/vtk/index":"c51f25e2a7","models/vtk/vtkjs":"f0476173e2","models/vtk/vtklayout":"d44e946ae8","models/vtk/util":"df9946ff52","models/vtk/vtkcolorbar":"db98967aab","models/vtk/vtkaxes":"a9b2ad3ad4","models/vtk/vtkvolume":"2d0f1e4d96","models/vtk/vtksynchronized":"04077eec70","models/vtk/panel_fullscreen_renwin_sync":"5e89c7b3eb"}, {});});
|
|
36640
36718
|
//# sourceMappingURL=panel.js.map
|