@holoviz/panel 1.2.1-a.1 → 1.2.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/notificationarea/panel/1.2.1/dist/bundled/font-awesome/css/all.min.css +2 -0
- package/dist/bundled/panel/1.2.1/dist/bundled/bootstrap5/css/bootstrap.min.css +2 -0
- package/dist/bundled/panel/1.2.1/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js +2 -0
- package/dist/bundled/panel/1.2.1/dist/bundled/font-awesome/css/all.min.css +2 -0
- package/dist/bundled/panel/1.2.1/dist/bundled/jquery/jquery.slim.min.js +2 -0
- package/dist/bundled/plotlyplot/panel/1.2.1/dist/bundled/jquery/jquery.slim.min.js +2 -0
- package/dist/lib/models/quill.d.ts +1 -0
- package/dist/lib/models/quill.js +5 -1
- package/dist/lib/models/quill.js.map +1 -1
- package/dist/lib/models/tabulator.d.ts +3 -1
- package/dist/lib/models/tabulator.js +26 -27
- package/dist/lib/models/tabulator.js.map +1 -1
- package/dist/lib/models/video.d.ts +1 -0
- package/dist/lib/models/video.js +13 -4
- package/dist/lib/models/video.js.map +1 -1
- package/dist/panel.js +51 -39
- package/dist/panel.js.map +1 -1
- package/dist/panel.json +1 -1
- package/dist/panel.min.js +5 -5
- package/dist/wheels/{bokeh-3.2.0-py3-none-any.whl → bokeh-3.2.1-py3-none-any.whl} +0 -0
- package/dist/wheels/{panel-1.2.1a1-py3-none-any.whl → panel-1.2.1-py3-none-any.whl} +0 -0
- package/package.json +1 -1
- package/dist/bundled/notificationarea/panel/1.2.1-a.1/dist/bundled/font-awesome/css/all.min.css +0 -2
- package/dist/bundled/panel/1.2.1-a.1/dist/bundled/bootstrap5/css/bootstrap.min.css +0 -2
- package/dist/bundled/panel/1.2.1-a.1/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js +0 -2
- package/dist/bundled/panel/1.2.1-a.1/dist/bundled/font-awesome/css/all.min.css +0 -2
- package/dist/bundled/panel/1.2.1-a.1/dist/bundled/jquery/jquery.slim.min.js +0 -2
- package/dist/bundled/plotlyplot/panel/1.2.1-a.1/dist/bundled/jquery/jquery.slim.min.js +0 -2
package/dist/panel.js
CHANGED
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
__esExport("CommManager", comm_manager_1.CommManager);
|
|
65
65
|
var customselect_1 = require("9c8629b48f") /* ./customselect */;
|
|
66
66
|
__esExport("CustomSelect", customselect_1.CustomSelect);
|
|
67
|
-
var tabulator_1 = require("
|
|
67
|
+
var tabulator_1 = require("d7e5b44aef") /* ./tabulator */;
|
|
68
68
|
__esExport("DataTabulator", tabulator_1.DataTabulator);
|
|
69
69
|
var datetime_picker_1 = require("6658732ce1") /* ./datetime_picker */;
|
|
70
70
|
__esExport("DatetimePicker", datetime_picker_1.DatetimePicker);
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
__esExport("PlotlyPlot", plotly_1.PlotlyPlot);
|
|
99
99
|
var progress_1 = require("b82925a928") /* ./progress */;
|
|
100
100
|
__esExport("Progress", progress_1.Progress);
|
|
101
|
-
var quill_1 = require("
|
|
101
|
+
var quill_1 = require("e115225ba2") /* ./quill */;
|
|
102
102
|
__esExport("QuillInput", quill_1.QuillInput);
|
|
103
103
|
var reactive_html_1 = require("b969c294f5") /* ./reactive_html */;
|
|
104
104
|
__esExport("ReactiveHTML", reactive_html_1.ReactiveHTML);
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
__esExport("TrendIndicator", trend_1.TrendIndicator);
|
|
121
121
|
var vega_1 = require("3b23e1bc5c") /* ./vega */;
|
|
122
122
|
__esExport("VegaPlot", vega_1.VegaPlot);
|
|
123
|
-
var video_1 = require("
|
|
123
|
+
var video_1 = require("4ac59b8079") /* ./video */;
|
|
124
124
|
__esExport("Video", video_1.Video);
|
|
125
125
|
var videostream_1 = require("797fd61298") /* ./videostream */;
|
|
126
126
|
__esExport("VideoStream", videostream_1.VideoStream);
|
|
@@ -911,12 +911,11 @@
|
|
|
911
911
|
});
|
|
912
912
|
})();
|
|
913
913
|
},
|
|
914
|
-
"
|
|
914
|
+
"d7e5b44aef": /* models/tabulator.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
915
915
|
__esModule();
|
|
916
916
|
var _a, _b, _c;
|
|
917
917
|
const dom_1 = require("@bokehjs/core/dom");
|
|
918
918
|
const types_1 = require("@bokehjs/core/util/types");
|
|
919
|
-
const build_views_1 = require("@bokehjs/core/build_views");
|
|
920
919
|
const bokeh_events_1 = require("@bokehjs/core/bokeh_events");
|
|
921
920
|
const dom_2 = require("@bokehjs/core/dom");
|
|
922
921
|
const kinds_1 = require("@bokehjs/core/kinds");
|
|
@@ -1290,7 +1289,6 @@
|
|
|
1290
1289
|
this.shadow_el.appendChild(container);
|
|
1291
1290
|
let configuration = this.getConfiguration();
|
|
1292
1291
|
this.tabulator = new Tabulator(el, configuration);
|
|
1293
|
-
console.log(el, this.tabulator);
|
|
1294
1292
|
this.watch_stylesheets();
|
|
1295
1293
|
this.init_callbacks();
|
|
1296
1294
|
}
|
|
@@ -1435,23 +1433,29 @@
|
|
|
1435
1433
|
data = group_data(data, this.model.columns, this.model.indexes, this.model.aggregators);
|
|
1436
1434
|
return Object.assign(Object.assign({}, configuration), { "data": data });
|
|
1437
1435
|
}
|
|
1436
|
+
get child_models() {
|
|
1437
|
+
const children = [];
|
|
1438
|
+
for (const idx of this.model.expanded) {
|
|
1439
|
+
if (this.model.children.has(idx))
|
|
1440
|
+
children.push(this.model.children.get(idx));
|
|
1441
|
+
}
|
|
1442
|
+
return children;
|
|
1443
|
+
}
|
|
1438
1444
|
renderChildren() {
|
|
1439
1445
|
new Promise(async (resolve) => {
|
|
1440
|
-
|
|
1441
|
-
for (const idx of this.model.expanded) {
|
|
1442
|
-
if (this.model.children.has(idx))
|
|
1443
|
-
children.push(this.model.children.get(idx));
|
|
1444
|
-
}
|
|
1445
|
-
await (0, build_views_1.build_views)(this._child_views, children, { parent: null });
|
|
1446
|
+
await this.build_child_views();
|
|
1446
1447
|
resolve(null);
|
|
1447
1448
|
}).then(() => {
|
|
1448
1449
|
for (const r of this.model.expanded) {
|
|
1449
1450
|
const row = this.tabulator.getRow(r);
|
|
1450
|
-
this._render_row(row);
|
|
1451
|
+
this._render_row(row, false);
|
|
1451
1452
|
}
|
|
1453
|
+
this._update_children();
|
|
1454
|
+
this.tabulator.rowManager.adjustTableSize();
|
|
1455
|
+
this.invalidate_layout();
|
|
1452
1456
|
});
|
|
1453
1457
|
}
|
|
1454
|
-
_render_row(row) {
|
|
1458
|
+
_render_row(row, resize = true) {
|
|
1455
1459
|
var _d;
|
|
1456
1460
|
const index = (_d = row._row) === null || _d === void 0 ? void 0 : _d.data._index;
|
|
1457
1461
|
if (!this.model.expanded.includes(index) || !this.model.children.has(index))
|
|
@@ -1460,24 +1464,20 @@
|
|
|
1460
1464
|
const view = this._child_views.get(model);
|
|
1461
1465
|
if (view == null)
|
|
1462
1466
|
return;
|
|
1463
|
-
view._parent = this;
|
|
1464
1467
|
const rowEl = row.getElement();
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
else {
|
|
1471
|
-
viewEl = null;
|
|
1472
|
-
}
|
|
1473
|
-
if (viewEl == null) {
|
|
1474
|
-
const style = getComputedStyle(this.tabulator.element.children[1].children[0]);
|
|
1475
|
-
const bg = style.backgroundColor;
|
|
1476
|
-
const neg_margin = "-" + rowEl.style.paddingLeft;
|
|
1477
|
-
viewEl = (0, dom_2.div)({ style: "background-color: " + bg + "; margin-left:" + neg_margin });
|
|
1478
|
-
}
|
|
1468
|
+
const style = getComputedStyle(this.tabulator.element.children[1].children[0]);
|
|
1469
|
+
const bg = style.backgroundColor;
|
|
1470
|
+
const neg_margin = rowEl.style.paddingLeft ? "-" + rowEl.style.paddingLeft : '0';
|
|
1471
|
+
const viewEl = (0, dom_2.div)({ style: "background-color: " + bg + "; margin-left:" + neg_margin + "; max-width: 100%; overflow-x: hidden;" });
|
|
1472
|
+
viewEl.appendChild(view.el);
|
|
1479
1473
|
rowEl.appendChild(viewEl);
|
|
1480
|
-
view.
|
|
1474
|
+
view.render();
|
|
1475
|
+
view.after_render();
|
|
1476
|
+
if (resize) {
|
|
1477
|
+
this._update_children();
|
|
1478
|
+
this.tabulator.rowManager.adjustTableSize();
|
|
1479
|
+
this.invalidate_layout();
|
|
1480
|
+
}
|
|
1481
1481
|
}
|
|
1482
1482
|
_expand_render(cell) {
|
|
1483
1483
|
const index = cell._cell.row.data._index;
|
|
@@ -1805,7 +1805,6 @@
|
|
|
1805
1805
|
this.tabulator.modules.page._setPageButtons();
|
|
1806
1806
|
}
|
|
1807
1807
|
setPage() {
|
|
1808
|
-
console.log(Math.min(this.model.max_page, this.model.page));
|
|
1809
1808
|
this.tabulator.setPage(Math.min(this.model.max_page, this.model.page));
|
|
1810
1809
|
if (this.model.pagination === "local") {
|
|
1811
1810
|
this.renderChildren();
|
|
@@ -8425,7 +8424,7 @@
|
|
|
8425
8424
|
}));
|
|
8426
8425
|
})();
|
|
8427
8426
|
},
|
|
8428
|
-
"
|
|
8427
|
+
"e115225ba2": /* models/quill.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
8429
8428
|
__esModule();
|
|
8430
8429
|
var _a;
|
|
8431
8430
|
const dom_1 = require("@bokehjs/core/dom");
|
|
@@ -8465,9 +8464,10 @@
|
|
|
8465
8464
|
}
|
|
8466
8465
|
render() {
|
|
8467
8466
|
super.render();
|
|
8468
|
-
this.container = (0, dom_1.div)({});
|
|
8467
|
+
this.container = (0, dom_1.div)({ style: "visibility: hidden;" });
|
|
8469
8468
|
this.shadow_el.appendChild(this.container);
|
|
8470
8469
|
const theme = (this.model.mode === 'bubble') ? 'bubble' : 'snow';
|
|
8470
|
+
this.watch_stylesheets();
|
|
8471
8471
|
this.quill = new window.Quill(this.container, {
|
|
8472
8472
|
modules: {
|
|
8473
8473
|
toolbar: this.model.toolbar
|
|
@@ -8493,6 +8493,9 @@
|
|
|
8493
8493
|
this.quill.selection.update();
|
|
8494
8494
|
});
|
|
8495
8495
|
}
|
|
8496
|
+
style_redraw() {
|
|
8497
|
+
this.container.style.visibility = 'visible';
|
|
8498
|
+
}
|
|
8496
8499
|
after_layout() {
|
|
8497
8500
|
super.after_layout();
|
|
8498
8501
|
this._layout_toolbar();
|
|
@@ -10651,7 +10654,7 @@
|
|
|
10651
10654
|
}));
|
|
10652
10655
|
})();
|
|
10653
10656
|
},
|
|
10654
|
-
"
|
|
10657
|
+
"4ac59b8079": /* models/video.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
10655
10658
|
__esModule();
|
|
10656
10659
|
var _a;
|
|
10657
10660
|
const layout_1 = require("ea218d1c3c") /* ./layout */;
|
|
@@ -10675,15 +10678,23 @@
|
|
|
10675
10678
|
render() {
|
|
10676
10679
|
super.render();
|
|
10677
10680
|
this.videoEl = document.createElement('video');
|
|
10681
|
+
this.containerEl = document.createElement('div');
|
|
10682
|
+
this.containerEl.className = "pn-video-container";
|
|
10683
|
+
this.containerEl.style.height = '100%';
|
|
10684
|
+
this.containerEl.style.width = '100%';
|
|
10685
|
+
this.videoEl.style.objectFit = 'fill';
|
|
10686
|
+
this.videoEl.style.width = '100%';
|
|
10687
|
+
this.videoEl.style.height = '100%';
|
|
10678
10688
|
if (!this.model.sizing_mode || this.model.sizing_mode === 'fixed') {
|
|
10679
10689
|
if (this.model.height)
|
|
10680
10690
|
this.videoEl.height = this.model.height;
|
|
10681
10691
|
if (this.model.width)
|
|
10682
10692
|
this.videoEl.width = this.model.width;
|
|
10683
10693
|
}
|
|
10684
|
-
this.
|
|
10685
|
-
|
|
10686
|
-
this.
|
|
10694
|
+
if (this.model.max_height)
|
|
10695
|
+
this.videoEl.style.maxHeight = `${this.model.max_height}px`;
|
|
10696
|
+
if (this.model.max_width)
|
|
10697
|
+
this.videoEl.style.maxWidth = `${this.model.max_width}px`;
|
|
10687
10698
|
this.videoEl.controls = true;
|
|
10688
10699
|
this.videoEl.src = this.model.value;
|
|
10689
10700
|
this.videoEl.currentTime = this.model.time;
|
|
@@ -10698,7 +10709,8 @@
|
|
|
10698
10709
|
this.videoEl.onplay = () => this.model.paused = false;
|
|
10699
10710
|
this.videoEl.ontimeupdate = () => this.update_time(this);
|
|
10700
10711
|
this.videoEl.onvolumechange = () => this.update_volume(this);
|
|
10701
|
-
this.
|
|
10712
|
+
this.containerEl.appendChild(this.videoEl);
|
|
10713
|
+
this.shadow_el.appendChild(this.containerEl);
|
|
10702
10714
|
if (!this.model.paused)
|
|
10703
10715
|
this.videoEl.play();
|
|
10704
10716
|
}
|
|
@@ -19229,5 +19241,5 @@
|
|
|
19229
19241
|
}
|
|
19230
19242
|
exports.initialize_fullscreen_render = initialize_fullscreen_render;
|
|
19231
19243
|
},
|
|
19232
|
-
}, "4e90918c0a", {"index":"4e90918c0a","models/index":"1ad646c29c","models/ace":"7df2008a2e","models/layout":"ea218d1c3c","models/audio":"78153b60aa","models/browser":"6df8bf1ac7","models/card":"fbd3c63e1d","models/comm_manager":"1e66dab844","models/customselect":"9c8629b48f","models/tabulator":"
|
|
19244
|
+
}, "4e90918c0a", {"index":"4e90918c0a","models/index":"1ad646c29c","models/ace":"7df2008a2e","models/layout":"ea218d1c3c","models/audio":"78153b60aa","models/browser":"6df8bf1ac7","models/card":"fbd3c63e1d","models/comm_manager":"1e66dab844","models/customselect":"9c8629b48f","models/tabulator":"d7e5b44aef","models/data":"fd9108e30e","models/datetime_picker":"6658732ce1","models/deckgl":"991e3a226c","models/tooltips":"9588ab7c9e","models/echarts":"eded13f5d7","models/event-to-object":"490942d778","models/html":"6b3b0facc2","models/ipywidget":"e3556c1e99","models/json":"66846b828c","models/jsoneditor":"4b8a56c700","models/file_download":"9c15016be8","models/katex":"197cfa57e5","models/location":"00a25cf872","models/mathjax":"46a1770629","models/pdf":"d49a559fbc","models/perspective":"9f0456e5b5","models/player":"c172556ad3","models/plotly":"bb3d0ded66","models/util":"990b5dd5c7","models/progress":"b82925a928","models/quill":"e115225ba2","models/reactive_html":"b969c294f5","models/singleselect":"6b20024bba","models/speech_to_text":"cd0c80cc4c","models/state":"66717cb841","models/tabs":"67a5649f75","models/terminal":"cd4a941f8d","models/text_to_speech":"eb4ae0acfa","models/tooltip_icon":"26ffc3afe8","models/trend":"8f4ab32d74","models/vega":"3b23e1bc5c","models/video":"4ac59b8079","models/videostream":"797fd61298","models/vizzu":"e8339ee57a","models/vtk/index":"c51f25e2a7","models/vtk/vtkjs":"3bce7c9db6","models/vtk/vtklayout":"d7ded264dc","models/vtk/util":"a76a9b7c23","models/vtk/vtkcolorbar":"787f6aeecd","models/vtk/vtkaxes":"7cec459a06","models/vtk/vtkvolume":"c2892117a7","models/vtk/vtksynchronized":"40c4377615","models/vtk/panel_fullscreen_renwin_sync":"877619fe71"}, {});});
|
|
19233
19245
|
//# sourceMappingURL=panel.js.map
|