@holoviz/panel 0.13.0-a.21 → 0.13.0-a.26
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/css/ajax/libs/font-awesome/5.15.1/css/all.min.css +5 -0
- package/dist/bundled/css/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css +7 -0
- package/dist/bundled/datatabulator/npm/@holoviz/panel/dist/bundled/{tabulator-tables@5.0.7 → tabulator-tables@4.9.3}/dist/css/fast/tabulator_fast.min.css +1 -1
- package/dist/bundled/datatabulator/npm/luxon/build/global/luxon.min.js +1 -1
- package/dist/bundled/datatabulator/npm/luxon/build/global/luxon.min.js.map +1 -1
- package/dist/bundled/datatabulator/tabulator-tables@4.9.3/dist/css/bootstrap/tabulator_bootstrap.min.css +3 -0
- package/dist/bundled/datatabulator/tabulator-tables@4.9.3/dist/css/bootstrap/tabulator_bootstrap4.min.css +3 -0
- package/dist/bundled/datatabulator/tabulator-tables@4.9.3/dist/css/bulma/tabulator_bulma.min.css +3 -0
- package/dist/bundled/datatabulator/tabulator-tables@4.9.3/dist/css/materialize/tabulator_materialize.min.css +3 -0
- package/dist/bundled/datatabulator/tabulator-tables@4.9.3/dist/css/semantic-ui/tabulator_semantic-ui.min.css +3 -0
- package/dist/bundled/datatabulator/tabulator-tables@4.9.3/dist/css/tabulator.min.css +3 -0
- package/dist/bundled/datatabulator/tabulator-tables@4.9.3/dist/css/tabulator_midnight.min.css +3 -0
- package/dist/bundled/datatabulator/tabulator-tables@4.9.3/dist/css/tabulator_modern.min.css +3 -0
- package/dist/bundled/datatabulator/tabulator-tables@4.9.3/dist/css/tabulator_simple.min.css +3 -0
- package/dist/bundled/datatabulator/tabulator-tables@4.9.3/dist/css/tabulator_site.min.css +3 -0
- package/dist/bundled/datatabulator/tabulator-tables@4.9.3/dist/js/tabulator.js +26546 -0
- package/dist/bundled/fastbasetemplate/fast_bokeh.css +23 -3
- package/dist/bundled/js/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js +7 -0
- package/dist/bundled/js/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js.map +1 -0
- package/dist/bundled/js/{jquery-3.5.1.slim.min.js → npm/jquery@3.5.1/dist/jquery.slim.min.js} +0 -0
- package/dist/bundled/plotlyplot/npm/jquery@3.5.1/dist/jquery.slim.min.js +2 -0
- package/dist/lib/models/audio.d.ts +4 -0
- package/dist/lib/models/audio.js +12 -0
- package/dist/lib/models/audio.js.map +1 -1
- package/dist/lib/models/customselect.d.ts +22 -0
- package/dist/lib/models/customselect.js +45 -0
- package/dist/lib/models/customselect.js.map +1 -0
- package/dist/lib/models/index.d.ts +1 -0
- package/dist/lib/models/index.js +1 -0
- package/dist/lib/models/index.js.map +1 -1
- package/dist/lib/models/layout.js +1 -1
- package/dist/lib/models/layout.js.map +1 -1
- package/dist/lib/models/progress.js +7 -8
- package/dist/lib/models/progress.js.map +1 -1
- package/dist/lib/models/singleselect.d.ts +2 -1
- package/dist/lib/models/singleselect.js +6 -3
- package/dist/lib/models/singleselect.js.map +1 -1
- package/dist/lib/models/speech_to_text.js +20 -21
- package/dist/lib/models/speech_to_text.js.map +1 -1
- package/dist/lib/models/tabulator.d.ts +3 -3
- package/dist/lib/models/tabulator.js +148 -60
- package/dist/lib/models/tabulator.js.map +1 -1
- package/dist/lib/models/video.d.ts +4 -0
- package/dist/lib/models/video.js +12 -0
- package/dist/lib/models/video.js.map +1 -1
- package/dist/lib/models/vtk/vtkaxes.js +11 -12
- package/dist/lib/models/vtk/vtkaxes.js.map +1 -1
- package/dist/panel.js +296 -145
- package/dist/panel.js.map +1 -1
- package/dist/panel.json +1 -1
- package/dist/panel.min.js +28 -27
- package/package.json +1 -1
- package/dist/bundled/css/bootstrap/3.3.7/css/bootstrap.min.css +0 -6
- package/dist/bundled/css/bootstrap/4.4.1/css/bootstrap.min.css +0 -7
- package/dist/bundled/css/font-awesome/4.7.0/css/font-awesome.min.css +0 -4
- package/dist/bundled/datatabulator/tabulator-tables@5.0.7/dist/css/bootstrap/tabulator_bootstrap.min.css +0 -1
- package/dist/bundled/datatabulator/tabulator-tables@5.0.7/dist/css/bootstrap/tabulator_bootstrap4.min.css +0 -1
- package/dist/bundled/datatabulator/tabulator-tables@5.0.7/dist/css/bulma/tabulator_bulma.min.css +0 -1
- package/dist/bundled/datatabulator/tabulator-tables@5.0.7/dist/css/materialize/tabulator_materialize.min.css +0 -1
- package/dist/bundled/datatabulator/tabulator-tables@5.0.7/dist/css/semantic-ui/tabulator_semantic-ui.min.css +0 -1
- package/dist/bundled/datatabulator/tabulator-tables@5.0.7/dist/css/tabulator.min.css +0 -2
- package/dist/bundled/datatabulator/tabulator-tables@5.0.7/dist/css/tabulator_midnight.min.css +0 -2
- package/dist/bundled/datatabulator/tabulator-tables@5.0.7/dist/css/tabulator_modern.min.css +0 -2
- package/dist/bundled/datatabulator/tabulator-tables@5.0.7/dist/css/tabulator_simple.min.css +0 -2
- package/dist/bundled/datatabulator/tabulator-tables@5.0.7/dist/css/tabulator_site.min.css +0 -2
- package/dist/bundled/datatabulator/tabulator-tables@5.0.7/dist/js/tabulator.js +0 -24961
- package/dist/bundled/datatabulator/tabulator-tables@5.0.7/dist/js/tabulator.js.map +0 -1
- package/dist/bundled/js/bootstrap/4.4.1/js/bootstrap.min.js +0 -7
- package/dist/bundled/js/bootstrap/4.4.1/js/bootstrap.min.js.map +0 -1
- package/dist/bundled/js/jquery-3.5.1.min.js +0 -2
- package/dist/bundled/plotlyplot/jquery-3.5.1.min.js +0 -2
package/dist/panel.js
CHANGED
|
@@ -44,23 +44,25 @@
|
|
|
44
44
|
"4e90918c0a": /* index.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
45
45
|
__esModule();
|
|
46
46
|
const tslib_1 = require("tslib");
|
|
47
|
-
const Panel = (0, tslib_1.__importStar)(require("
|
|
47
|
+
const Panel = (0, tslib_1.__importStar)(require("d30e96d837") /* ./models */);
|
|
48
48
|
exports.Panel = Panel;
|
|
49
49
|
const base_1 = require("@bokehjs/base");
|
|
50
50
|
(0, base_1.register_models)(Panel);
|
|
51
51
|
},
|
|
52
|
-
"
|
|
52
|
+
"d30e96d837": /* models/index.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
53
53
|
__esModule();
|
|
54
54
|
const tslib_1 = require("tslib");
|
|
55
55
|
var ace_1 = require("2e12ebdb23") /* ./ace */;
|
|
56
56
|
__esExport("AcePlot", ace_1.AcePlot);
|
|
57
|
-
var audio_1 = require("
|
|
57
|
+
var audio_1 = require("33955cfa6f") /* ./audio */;
|
|
58
58
|
__esExport("Audio", audio_1.Audio);
|
|
59
59
|
var card_1 = require("0972f6e77b") /* ./card */;
|
|
60
60
|
__esExport("Card", card_1.Card);
|
|
61
61
|
var comm_manager_1 = require("f34032fb47") /* ./comm_manager */;
|
|
62
62
|
__esExport("CommManager", comm_manager_1.CommManager);
|
|
63
|
-
var
|
|
63
|
+
var customselect_1 = require("e258e515be") /* ./customselect */;
|
|
64
|
+
__esExport("CustomSelect", customselect_1.CustomSelect);
|
|
65
|
+
var tabulator_1 = require("37f6a92950") /* ./tabulator */;
|
|
64
66
|
__esExport("DataTabulator", tabulator_1.DataTabulator);
|
|
65
67
|
var datetime_picker_1 = require("6e11b2cfe2") /* ./datetime_picker */;
|
|
66
68
|
__esExport("DatetimePicker", datetime_picker_1.DatetimePicker);
|
|
@@ -90,15 +92,15 @@
|
|
|
90
92
|
__esExport("Player", player_1.Player);
|
|
91
93
|
var plotly_1 = require("cb7735fd77") /* ./plotly */;
|
|
92
94
|
__esExport("PlotlyPlot", plotly_1.PlotlyPlot);
|
|
93
|
-
var progress_1 = require("
|
|
95
|
+
var progress_1 = require("979633320f") /* ./progress */;
|
|
94
96
|
__esExport("Progress", progress_1.Progress);
|
|
95
97
|
var quill_1 = require("6895629dfc") /* ./quill */;
|
|
96
98
|
__esExport("QuillInput", quill_1.QuillInput);
|
|
97
99
|
var reactive_html_1 = require("eb3a49319b") /* ./reactive_html */;
|
|
98
100
|
__esExport("ReactiveHTML", reactive_html_1.ReactiveHTML);
|
|
99
|
-
var singleselect_1 = require("
|
|
101
|
+
var singleselect_1 = require("ab54efe08a") /* ./singleselect */;
|
|
100
102
|
__esExport("SingleSelect", singleselect_1.SingleSelect);
|
|
101
|
-
var speech_to_text_1 = require("
|
|
103
|
+
var speech_to_text_1 = require("a96be0bcc9") /* ./speech_to_text */;
|
|
102
104
|
__esExport("SpeechToText", speech_to_text_1.SpeechToText);
|
|
103
105
|
var state_1 = require("bfa46a5f19") /* ./state */;
|
|
104
106
|
__esExport("State", state_1.State);
|
|
@@ -110,7 +112,7 @@
|
|
|
110
112
|
__esExport("TrendIndicator", trend_1.TrendIndicator);
|
|
111
113
|
var vega_1 = require("647c1ffd57") /* ./vega */;
|
|
112
114
|
__esExport("VegaPlot", vega_1.VegaPlot);
|
|
113
|
-
var video_1 = require("
|
|
115
|
+
var video_1 = require("1b46fd56a8") /* ./video */;
|
|
114
116
|
__esExport("Video", video_1.Video);
|
|
115
117
|
var videostream_1 = require("e3e9b8e495") /* ./videostream */;
|
|
116
118
|
__esExport("VideoStream", videostream_1.VideoStream);
|
|
@@ -120,7 +122,7 @@
|
|
|
120
122
|
__esModule();
|
|
121
123
|
const html_box_1 = require("@bokehjs/models/layouts/html_box");
|
|
122
124
|
const dom_1 = require("@bokehjs/core/dom");
|
|
123
|
-
const layout_1 = require("
|
|
125
|
+
const layout_1 = require("e84e342b99") /* ./layout */;
|
|
124
126
|
function ID() {
|
|
125
127
|
// Math.random should be unique because of its seeding algorithm.
|
|
126
128
|
// Convert it to base 36 (numbers + letters), and grab the first 9 characters
|
|
@@ -233,7 +235,7 @@
|
|
|
233
235
|
AcePlot.__module__ = "panel.models.ace";
|
|
234
236
|
AcePlot.init_AcePlot();
|
|
235
237
|
},
|
|
236
|
-
"
|
|
238
|
+
"e84e342b99": /* models/layout.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
237
239
|
__esModule();
|
|
238
240
|
const html_1 = require("@bokehjs/core/layout/html");
|
|
239
241
|
const types_1 = require("@bokehjs/core/layout/types");
|
|
@@ -307,7 +309,7 @@
|
|
|
307
309
|
const min_count = (!this.changed || (this.sizing_mode == 'fixed') || (this.sizing_mode == null)) ? 0 : 1;
|
|
308
310
|
const cached = this._cache.get(key_str);
|
|
309
311
|
const cache_count = this._cache_count.get(key_str);
|
|
310
|
-
if (cached != null && cache_count != null && (cache_count >= min_count)) {
|
|
312
|
+
if (cached != null && cache_count != null && (cache_count >= min_count) && (isFinite(viewport.width)) && (isFinite(viewport.height))) {
|
|
311
313
|
this._cache_count.set(key_str, cache_count + 1);
|
|
312
314
|
return cached;
|
|
313
315
|
}
|
|
@@ -357,10 +359,10 @@
|
|
|
357
359
|
exports.PanelHTMLBoxView = PanelHTMLBoxView;
|
|
358
360
|
PanelHTMLBoxView.__name__ = "PanelHTMLBoxView";
|
|
359
361
|
},
|
|
360
|
-
"
|
|
362
|
+
"33955cfa6f": /* models/audio.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
361
363
|
__esModule();
|
|
362
364
|
const html_box_1 = require("@bokehjs/models/layouts/html_box");
|
|
363
|
-
const layout_1 = require("
|
|
365
|
+
const layout_1 = require("e84e342b99") /* ./layout */;
|
|
364
366
|
class AudioView extends layout_1.PanelHTMLBoxView {
|
|
365
367
|
initialize() {
|
|
366
368
|
super.initialize();
|
|
@@ -375,6 +377,8 @@
|
|
|
375
377
|
this.connect(this.model.properties.time.change, () => this.set_time());
|
|
376
378
|
this.connect(this.model.properties.value.change, () => this.set_value());
|
|
377
379
|
this.connect(this.model.properties.volume.change, () => this.set_volume());
|
|
380
|
+
this.connect(this.model.properties.muted.change, () => this.set_muted());
|
|
381
|
+
this.connect(this.model.properties.autoplay.change, () => this.set_autoplay());
|
|
378
382
|
}
|
|
379
383
|
render() {
|
|
380
384
|
super.render();
|
|
@@ -383,6 +387,8 @@
|
|
|
383
387
|
this.audioEl.src = this.model.value;
|
|
384
388
|
this.audioEl.currentTime = this.model.time;
|
|
385
389
|
this.audioEl.loop = this.model.loop;
|
|
390
|
+
this.audioEl.muted = this.model.muted;
|
|
391
|
+
this.audioEl.autoplay = this.model.autoplay;
|
|
386
392
|
if (this.model.volume != null)
|
|
387
393
|
this.audioEl.volume = this.model.volume / 100;
|
|
388
394
|
else
|
|
@@ -417,6 +423,12 @@
|
|
|
417
423
|
set_loop() {
|
|
418
424
|
this.audioEl.loop = this.model.loop;
|
|
419
425
|
}
|
|
426
|
+
set_muted() {
|
|
427
|
+
this.audioEl.muted = this.model.muted;
|
|
428
|
+
}
|
|
429
|
+
set_autoplay() {
|
|
430
|
+
this.audioEl.autoplay = this.model.autoplay;
|
|
431
|
+
}
|
|
420
432
|
set_paused() {
|
|
421
433
|
if (!this.audioEl.paused && this.model.paused)
|
|
422
434
|
this.audioEl.pause();
|
|
@@ -456,6 +468,8 @@
|
|
|
456
468
|
this.define(({ Any, Boolean, Int, Number }) => ({
|
|
457
469
|
loop: [Boolean, false],
|
|
458
470
|
paused: [Boolean, true],
|
|
471
|
+
muted: [Boolean, false],
|
|
472
|
+
autoplay: [Boolean, false],
|
|
459
473
|
time: [Number, 0],
|
|
460
474
|
throttle: [Number, 250],
|
|
461
475
|
value: [Any, ''],
|
|
@@ -713,7 +727,56 @@
|
|
|
713
727
|
CommManager.__module__ = "panel.models.comm_manager";
|
|
714
728
|
CommManager.init_CommManager();
|
|
715
729
|
},
|
|
716
|
-
"
|
|
730
|
+
"e258e515be": /* models/customselect.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
731
|
+
__esModule();
|
|
732
|
+
var _a;
|
|
733
|
+
const selectbox_1 = require("@bokehjs/models/widgets/selectbox");
|
|
734
|
+
class CustomSelectView extends selectbox_1.SelectView {
|
|
735
|
+
connect_signals() {
|
|
736
|
+
super.connect_signals();
|
|
737
|
+
this.connect(this.model.properties.disabled_options.change, () => this._update_disabled_options());
|
|
738
|
+
}
|
|
739
|
+
options_el() {
|
|
740
|
+
let opts = super.options_el();
|
|
741
|
+
opts.forEach((element) => {
|
|
742
|
+
if (this.model.disabled_options.includes(element.value)) {
|
|
743
|
+
element.setAttribute('disabled', 'true');
|
|
744
|
+
}
|
|
745
|
+
});
|
|
746
|
+
return opts;
|
|
747
|
+
}
|
|
748
|
+
_update_disabled_options() {
|
|
749
|
+
for (const element of this.input_el.options) {
|
|
750
|
+
if (this.model.disabled_options.includes(element.value)) {
|
|
751
|
+
element.setAttribute('disabled', 'true');
|
|
752
|
+
}
|
|
753
|
+
else {
|
|
754
|
+
element.removeAttribute('disabled');
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
exports.CustomSelectView = CustomSelectView;
|
|
760
|
+
CustomSelectView.__name__ = "CustomSelectView";
|
|
761
|
+
class CustomSelect extends selectbox_1.Select {
|
|
762
|
+
constructor(attrs) {
|
|
763
|
+
super(attrs);
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
exports.CustomSelect = CustomSelect;
|
|
767
|
+
_a = CustomSelect;
|
|
768
|
+
CustomSelect.__name__ = "CustomSelect";
|
|
769
|
+
CustomSelect.__module__ = "panel.models.widgets";
|
|
770
|
+
(() => {
|
|
771
|
+
_a.prototype.default_view = CustomSelectView;
|
|
772
|
+
_a.define(({ Array, String }) => {
|
|
773
|
+
return {
|
|
774
|
+
disabled_options: [Array(String), []],
|
|
775
|
+
};
|
|
776
|
+
});
|
|
777
|
+
})();
|
|
778
|
+
},
|
|
779
|
+
"37f6a92950": /* models/tabulator.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
717
780
|
__esModule();
|
|
718
781
|
const types_1 = require("@bokehjs/core/util/types");
|
|
719
782
|
const html_box_1 = require("@bokehjs/models/layouts/html_box");
|
|
@@ -726,7 +789,7 @@
|
|
|
726
789
|
const debounce_1 = require("99a25e6992") /* debounce */;
|
|
727
790
|
const comm_manager_1 = require("f34032fb47") /* ./comm_manager */;
|
|
728
791
|
const data_1 = require("7f7d9e0c6b") /* ./data */;
|
|
729
|
-
const layout_1 = require("
|
|
792
|
+
const layout_1 = require("e84e342b99") /* ./layout */;
|
|
730
793
|
class TableEditEvent extends bokeh_events_1.ModelEvent {
|
|
731
794
|
constructor(column, row) {
|
|
732
795
|
super();
|
|
@@ -825,7 +888,11 @@
|
|
|
825
888
|
//create and style input
|
|
826
889
|
const rawValue = cell.getValue();
|
|
827
890
|
const opts = { zone: new window.luxon.IANAZone('UTC') };
|
|
828
|
-
|
|
891
|
+
let cellValue;
|
|
892
|
+
if (rawValue === 'NaN' || rawValue === null)
|
|
893
|
+
cellValue = null;
|
|
894
|
+
else
|
|
895
|
+
cellValue = window.luxon.DateTime.fromMillis(rawValue, opts).toFormat("yyyy-MM-dd");
|
|
829
896
|
const input = document.createElement("input");
|
|
830
897
|
input.setAttribute("type", "date");
|
|
831
898
|
input.style.padding = "4px";
|
|
@@ -862,7 +929,11 @@
|
|
|
862
929
|
//create and style input
|
|
863
930
|
const rawValue = cell.getValue();
|
|
864
931
|
const opts = { zone: new window.luxon.IANAZone('UTC') };
|
|
865
|
-
|
|
932
|
+
let cellValue;
|
|
933
|
+
if (rawValue === 'NaN' || rawValue === null)
|
|
934
|
+
cellValue = null;
|
|
935
|
+
else
|
|
936
|
+
cellValue = window.luxon.DateTime.fromMillis(rawValue, opts).toFormat("yyyy-MM-dd'T'T");
|
|
866
937
|
const input = document.createElement("input");
|
|
867
938
|
input.setAttribute("type", "datetime-local");
|
|
868
939
|
input.style.padding = "4px";
|
|
@@ -933,39 +1004,21 @@
|
|
|
933
1004
|
this.connect(this.model.source.selected.change, () => this.setSelection());
|
|
934
1005
|
this.connect(this.model.source.selected.properties.indices.change, () => this.setSelection());
|
|
935
1006
|
}
|
|
936
|
-
|
|
937
|
-
//
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
this.
|
|
942
|
-
this.tabulator.off("renderComplete");
|
|
943
|
-
// Apply styles after first render then unsubscribe
|
|
944
|
-
this.setStyles();
|
|
945
|
-
this.relayout();
|
|
946
|
-
this.setFrozen();
|
|
947
|
-
this._initializing = false;
|
|
948
|
-
});
|
|
1007
|
+
renderComplete() {
|
|
1008
|
+
// Only have to set up styles after initial render subsequent
|
|
1009
|
+
// styling is handled by change event on styles property
|
|
1010
|
+
if (this._initializing) {
|
|
1011
|
+
this.setStyles();
|
|
1012
|
+
this.setSelection();
|
|
949
1013
|
}
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
return cell.getColumn().getField() + ": " + cell.getValue();
|
|
957
|
-
});
|
|
958
|
-
this.tabulator.on("scrollVertical", (0, debounce_1.debounce)(() => {
|
|
1014
|
+
this._initializing = false;
|
|
1015
|
+
}
|
|
1016
|
+
after_layout() {
|
|
1017
|
+
super.after_layout();
|
|
1018
|
+
if (this.tabulator != null) {
|
|
1019
|
+
this.tabulator.redraw(true);
|
|
959
1020
|
this.setStyles();
|
|
960
|
-
}
|
|
961
|
-
this.tabulator.on("rowFormatter", (row) => this._render_row(row));
|
|
962
|
-
// Sync state with model
|
|
963
|
-
this.tabulator.on("rowSelectionChanged", (data, rows) => this.rowSelectionChanged(data, rows));
|
|
964
|
-
this.tabulator.on("rowClick", (e, row) => this.rowClicked(e, row));
|
|
965
|
-
this.tabulator.on("cellEdited", (cell) => this.cellEdited(cell));
|
|
966
|
-
this.tabulator.on("dataFiltering", () => {
|
|
967
|
-
this.model.filters = this.tabulator.getHeaderFilters();
|
|
968
|
-
});
|
|
1021
|
+
}
|
|
969
1022
|
}
|
|
970
1023
|
render() {
|
|
971
1024
|
super.render();
|
|
@@ -978,35 +1031,107 @@
|
|
|
978
1031
|
(0, layout_1.set_size)(container, this.model);
|
|
979
1032
|
let configuration = this.getConfiguration();
|
|
980
1033
|
this.tabulator = new Tabulator(container, configuration);
|
|
981
|
-
this.
|
|
1034
|
+
this.renderChildren();
|
|
1035
|
+
// Swap pagination mode
|
|
1036
|
+
if (this.model.pagination === 'remote') {
|
|
1037
|
+
this.tabulator.options.pagination = this.model.pagination;
|
|
1038
|
+
this.tabulator.modules.page.mode = 'remote';
|
|
1039
|
+
}
|
|
982
1040
|
this.setGroupBy();
|
|
983
|
-
this.el.appendChild(container);
|
|
984
|
-
}
|
|
985
|
-
tableInit() {
|
|
986
|
-
// Patch the ajax request and page data parsing methods
|
|
987
|
-
const ajax = this.tabulator.modules.ajax;
|
|
988
|
-
ajax.sendRequest = () => {
|
|
989
|
-
return this.requestPage(ajax.params.page, ajax.params.sort);
|
|
990
|
-
};
|
|
991
|
-
this.tabulator.modules.page._parseRemoteData = () => {
|
|
992
|
-
return false;
|
|
993
|
-
};
|
|
994
|
-
}
|
|
995
|
-
tableBuilt() {
|
|
996
1041
|
this.setHidden();
|
|
1042
|
+
// Set up page
|
|
997
1043
|
if (this.model.pagination) {
|
|
998
1044
|
this.setMaxPage();
|
|
999
1045
|
this.tabulator.setPage(this.model.page);
|
|
1000
|
-
this.tabulator.on("dataProcessed", () => {
|
|
1001
|
-
this.tabulator.off("dataProcessed");
|
|
1002
|
-
this.setStyles();
|
|
1003
|
-
setTimeout(() => this.relayout(), 10);
|
|
1004
|
-
this._initializing = false;
|
|
1005
|
-
});
|
|
1006
1046
|
this.setData();
|
|
1007
1047
|
}
|
|
1008
|
-
|
|
1009
|
-
|
|
1048
|
+
else
|
|
1049
|
+
this.setFrozen();
|
|
1050
|
+
this.el.appendChild(container);
|
|
1051
|
+
}
|
|
1052
|
+
/*
|
|
1053
|
+
init_callbacks(): void {
|
|
1054
|
+
// Initialization
|
|
1055
|
+
this.tabulator.on("tableBuilding", () => this.tableInit())
|
|
1056
|
+
this.tabulator.on("tableBuilt", () => this.tableBuilt())
|
|
1057
|
+
|
|
1058
|
+
// For disabled pagination initialize on renderComplete
|
|
1059
|
+
if (this.model.pagination !== 'remote') {
|
|
1060
|
+
this.tabulator.on("renderComplete", () => {
|
|
1061
|
+
this.tabulator.off("renderComplete")
|
|
1062
|
+
// Apply styles after first render then unsubscribe
|
|
1063
|
+
this.setFrozen()
|
|
1064
|
+
this.setStyles()
|
|
1065
|
+
this.renderChildren()
|
|
1066
|
+
this.tabulator.modules.frozenColumns.active = true
|
|
1067
|
+
this.tabulator.modules.frozenColumns.layout()
|
|
1068
|
+
this.relayout()
|
|
1069
|
+
this._initializing = false
|
|
1070
|
+
})
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
// Disable frozenColumns during rendering (see https://github.com/olifolkerd/tabulator/issues/3530)
|
|
1074
|
+
this.tabulator.on("dataLoading", () => {
|
|
1075
|
+
this.tabulator.modules.frozenColumns.active = false
|
|
1076
|
+
})
|
|
1077
|
+
|
|
1078
|
+
// Rendering callbacks
|
|
1079
|
+
this.tabulator.on("selectableCheck", (row: any) => {
|
|
1080
|
+
const selectable = this.model.selectable_rows
|
|
1081
|
+
return (selectable == null) || (selectable.indexOf(row._row.data._index) >= 0)
|
|
1082
|
+
})
|
|
1083
|
+
this.tabulator.on("tooltips", (cell: any) => {
|
|
1084
|
+
return cell.getColumn().getField() + ": " + cell.getValue();
|
|
1085
|
+
})
|
|
1086
|
+
this.tabulator.on("scrollVertical", debounce(() => {
|
|
1087
|
+
this.setStyles()
|
|
1088
|
+
}, 50, false))
|
|
1089
|
+
this.tabulator.on("rowFormatter", (row: any) => this._render_row(row))
|
|
1090
|
+
|
|
1091
|
+
// Sync state with model
|
|
1092
|
+
this.tabulator.on("rowSelectionChanged", (data: any, rows: any) => this.rowSelectionChanged(data, rows))
|
|
1093
|
+
this.tabulator.on("rowClick", (e: any, row: any) => this.rowClicked(e, row))
|
|
1094
|
+
this.tabulator.on("cellEdited", (cell: any) => this.cellEdited(cell))
|
|
1095
|
+
this.tabulator.on("dataFiltering", () => {
|
|
1096
|
+
this.model.filters = this.tabulator.getHeaderFilters()
|
|
1097
|
+
})
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
tableInit(): void {
|
|
1101
|
+
// Patch the ajax request and page data parsing methods
|
|
1102
|
+
const ajax = this.tabulator.modules.ajax
|
|
1103
|
+
ajax.sendRequest = () => {
|
|
1104
|
+
return this.requestPage(ajax.params.page, ajax.params.sort)
|
|
1105
|
+
}
|
|
1106
|
+
this.tabulator.modules.page._parseRemoteData = (): boolean => {
|
|
1107
|
+
return false
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
tableBuilt(): void {
|
|
1113
|
+
this.setHidden()
|
|
1114
|
+
this.setSelection()
|
|
1115
|
+
|
|
1116
|
+
// For remote pagination initialize on tableBuilt
|
|
1117
|
+
if (this.model.pagination) {
|
|
1118
|
+
this.setMaxPage()
|
|
1119
|
+
this.tabulator.setPage(this.model.page)
|
|
1120
|
+
this.setStyles()
|
|
1121
|
+
this.renderChildren()
|
|
1122
|
+
this.tabulator.modules.frozenColumns.active = true
|
|
1123
|
+
this.tabulator.modules.frozenColumns.layout()
|
|
1124
|
+
setTimeout(() => this.relayout(), 10)
|
|
1125
|
+
this._initializing = false
|
|
1126
|
+
}
|
|
1127
|
+
}*/
|
|
1128
|
+
tableInit(view, tabulator) {
|
|
1129
|
+
// Patch the ajax request and page data parsing methods
|
|
1130
|
+
const ajax = tabulator.modules.ajax;
|
|
1131
|
+
ajax.sendRequest = () => {
|
|
1132
|
+
return view.requestPage(ajax.params.page, ajax.params.sorters);
|
|
1133
|
+
};
|
|
1134
|
+
tabulator.modules.page._parseRemoteData = () => { };
|
|
1010
1135
|
}
|
|
1011
1136
|
relayout() {
|
|
1012
1137
|
this.update_layout();
|
|
@@ -1054,10 +1179,21 @@
|
|
|
1054
1179
|
getConfiguration() {
|
|
1055
1180
|
// Only use selectable mode if explicitly requested otherwise manually handle selections
|
|
1056
1181
|
let selectable = this.model.select_mode === 'toggle' ? true : NaN;
|
|
1057
|
-
|
|
1182
|
+
const that = this;
|
|
1183
|
+
let configuration = Object.assign(Object.assign({}, this.model.configuration), { index: "_index", nestedFieldSeparator: false, movableColumns: false, selectable: selectable, columns: this.getColumns(), layout: this.getLayout(), pagination: this.model.pagination, paginationSize: this.model.page_size, paginationInitialPage: 1, tableBuilding: function () { that.tableInit(that, this); }, renderComplete: () => this.renderComplete(), rowSelectionChanged: (data, rows) => this.rowSelectionChanged(data, rows), rowClick: (e, row) => this.rowClicked(e, row), cellEdited: (cell) => this.cellEdited(cell), selectableCheck: (row) => {
|
|
1184
|
+
const selectable = this.model.selectable_rows;
|
|
1185
|
+
return (selectable == null) || (selectable.indexOf(row._row.data._index) >= 0);
|
|
1186
|
+
}, tooltips: (cell) => {
|
|
1187
|
+
return cell.getColumn().getField() + ": " + cell.getValue();
|
|
1188
|
+
}, scrollVertical: (0, debounce_1.debounce)(() => {
|
|
1189
|
+
this.setStyles();
|
|
1190
|
+
}, 50, false), rowFormatter: (row) => this._render_row(row), dataFiltering: () => {
|
|
1191
|
+
if (this.tabulator != null)
|
|
1192
|
+
this.model.filters = this.tabulator.getHeaderFilters();
|
|
1193
|
+
} });
|
|
1058
1194
|
if (this.model.pagination === "remote") {
|
|
1059
1195
|
configuration['ajaxURL'] = "http://panel.pyviz.org";
|
|
1060
|
-
configuration['
|
|
1196
|
+
configuration['ajaxSorting'] = true;
|
|
1061
1197
|
}
|
|
1062
1198
|
const cds = this.model.source;
|
|
1063
1199
|
let data;
|
|
@@ -1083,6 +1219,8 @@
|
|
|
1083
1219
|
const row = this.tabulator.getRow(r);
|
|
1084
1220
|
this._render_row(row);
|
|
1085
1221
|
}
|
|
1222
|
+
if (!this.model.expanded.length && !this._initializing)
|
|
1223
|
+
this.invalidate_layout();
|
|
1086
1224
|
});
|
|
1087
1225
|
}
|
|
1088
1226
|
_render_row(row) {
|
|
@@ -1101,8 +1239,9 @@
|
|
|
1101
1239
|
const bg = style.backgroundColor;
|
|
1102
1240
|
const neg_margin = "-" + rowEl.style.paddingLeft;
|
|
1103
1241
|
const row_view = (0, dom_1.div)({ style: "background-color: " + bg + "; margin-left:" + neg_margin });
|
|
1104
|
-
view.renderTo(row_view);
|
|
1105
1242
|
row.getElement().appendChild(row_view);
|
|
1243
|
+
view._parent = this;
|
|
1244
|
+
view.renderTo(row_view);
|
|
1106
1245
|
}
|
|
1107
1246
|
_expand_render(cell) {
|
|
1108
1247
|
const index = cell._cell.row.data._index;
|
|
@@ -1206,7 +1345,10 @@
|
|
|
1206
1345
|
return formatted;
|
|
1207
1346
|
const node = (0, dom_1.div)();
|
|
1208
1347
|
node.innerHTML = formatted;
|
|
1209
|
-
|
|
1348
|
+
const child = node.children[0];
|
|
1349
|
+
if (child.innerHTML === "function(){return c.convert(arguments)}") // If the formatter fails
|
|
1350
|
+
return '';
|
|
1351
|
+
return child;
|
|
1210
1352
|
};
|
|
1211
1353
|
}
|
|
1212
1354
|
}
|
|
@@ -4463,7 +4605,7 @@
|
|
|
4463
4605
|
const html_box_1 = require("@bokehjs/models/layouts/html_box");
|
|
4464
4606
|
const column_data_source_1 = require("@bokehjs/models/sources/column_data_source");
|
|
4465
4607
|
const data_1 = require("7f7d9e0c6b") /* ./data */;
|
|
4466
|
-
const layout_1 = require("
|
|
4608
|
+
const layout_1 = require("e84e342b99") /* ./layout */;
|
|
4467
4609
|
const tooltips_1 = require("6e04fbe567") /* ./tooltips */;
|
|
4468
4610
|
const constants_1 = (0, tslib_1.__importDefault)(require("093eb75864") /* @luma.gl/constants */);
|
|
4469
4611
|
function extractClasses() {
|
|
@@ -5617,7 +5759,7 @@
|
|
|
5617
5759
|
__esModule();
|
|
5618
5760
|
const markup_1 = require("@bokehjs/models/widgets/markup");
|
|
5619
5761
|
const bokeh_events_1 = require("@bokehjs/core/bokeh_events");
|
|
5620
|
-
const layout_1 = require("
|
|
5762
|
+
const layout_1 = require("e84e342b99") /* ./layout */;
|
|
5621
5763
|
const event_to_object_1 = require("3329d4aa5b") /* ./event-to-object */;
|
|
5622
5764
|
class DOMEvent extends bokeh_events_1.ModelEvent {
|
|
5623
5765
|
constructor(node, data) {
|
|
@@ -5886,7 +6028,7 @@
|
|
|
5886
6028
|
const preact_2 = require("b3f51db71c") /* htm/preact */;
|
|
5887
6029
|
const fast_json_patch_1 = require("cbecfde9cd") /* fast-json-patch */;
|
|
5888
6030
|
const html_box_1 = require("@bokehjs/models/layouts/html_box");
|
|
5889
|
-
const layout_1 = require("
|
|
6031
|
+
const layout_1 = require("e84e342b99") /* ./layout */;
|
|
5890
6032
|
const event_to_object_1 = require("3329d4aa5b") /* ./event-to-object */;
|
|
5891
6033
|
const LayoutConfigContext = (0, preact_1.createContext)({});
|
|
5892
6034
|
function mountLayout(mountElement, saveUpdateHook, sendEvent, importSourceUrl) {
|
|
@@ -7358,7 +7500,7 @@
|
|
|
7358
7500
|
"0eae77d68f": /* models/ipywidget.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
7359
7501
|
__esModule();
|
|
7360
7502
|
const html_box_1 = require("@bokehjs/models/layouts/html_box");
|
|
7361
|
-
const layout_1 = require("
|
|
7503
|
+
const layout_1 = require("e84e342b99") /* ./layout */;
|
|
7362
7504
|
const Jupyter = window.Jupyter;
|
|
7363
7505
|
class IPyWidgetView extends layout_1.PanelHTMLBoxView {
|
|
7364
7506
|
constructor() {
|
|
@@ -7429,7 +7571,7 @@
|
|
|
7429
7571
|
const kinds_1 = require("@bokehjs/core/kinds");
|
|
7430
7572
|
const markup_1 = require("@bokehjs/models/widgets/markup");
|
|
7431
7573
|
const json_formatter_js_1 = (0, tslib_1.__importDefault)(require("18bba7b7e1") /* json-formatter-js */);
|
|
7432
|
-
const layout_1 = require("
|
|
7574
|
+
const layout_1 = require("e84e342b99") /* ./layout */;
|
|
7433
7575
|
class JSONView extends layout_1.PanelMarkupView {
|
|
7434
7576
|
connect_signals() {
|
|
7435
7577
|
super.connect_signals();
|
|
@@ -7762,7 +7904,7 @@
|
|
|
7762
7904
|
"7b859fb3cf": /* models/katex.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
7763
7905
|
__esModule();
|
|
7764
7906
|
const markup_1 = require("@bokehjs/models/widgets/markup");
|
|
7765
|
-
const layout_1 = require("
|
|
7907
|
+
const layout_1 = require("e84e342b99") /* ./layout */;
|
|
7766
7908
|
class KaTeXView extends layout_1.PanelMarkupView {
|
|
7767
7909
|
render() {
|
|
7768
7910
|
super.render();
|
|
@@ -7871,7 +8013,7 @@
|
|
|
7871
8013
|
"0c21036737": /* models/mathjax.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
7872
8014
|
__esModule();
|
|
7873
8015
|
const markup_1 = require("@bokehjs/models/widgets/markup");
|
|
7874
|
-
const layout_1 = require("
|
|
8016
|
+
const layout_1 = require("e84e342b99") /* ./layout */;
|
|
7875
8017
|
class MathJaxView extends layout_1.PanelMarkupView {
|
|
7876
8018
|
initialize() {
|
|
7877
8019
|
super.initialize();
|
|
@@ -7909,7 +8051,7 @@
|
|
|
7909
8051
|
const html_box_1 = require("@bokehjs/models/layouts/html_box");
|
|
7910
8052
|
const dom_1 = require("@bokehjs/core/dom");
|
|
7911
8053
|
const column_data_source_1 = require("@bokehjs/models/sources/column_data_source");
|
|
7912
|
-
const layout_1 = require("
|
|
8054
|
+
const layout_1 = require("e84e342b99") /* ./layout */;
|
|
7913
8055
|
const PERSPECTIVE_VIEWER_CLASSES = [
|
|
7914
8056
|
"perspective-viewer-material",
|
|
7915
8057
|
"perspective-viewer-material-dark",
|
|
@@ -8502,7 +8644,7 @@
|
|
|
8502
8644
|
const column_data_source_1 = require("@bokehjs/models/sources/column_data_source");
|
|
8503
8645
|
const debounce_1 = require("99a25e6992") /* debounce */;
|
|
8504
8646
|
const util_1 = require("990b5dd5c7") /* ./util */;
|
|
8505
|
-
const layout_1 = require("
|
|
8647
|
+
const layout_1 = require("e84e342b99") /* ./layout */;
|
|
8506
8648
|
const filterEventData = (gd, eventData, event) => {
|
|
8507
8649
|
// Ported from dash-core-components/src/components/Graph.react.js
|
|
8508
8650
|
let filteredEventData = Array.isArray(eventData) ? [] : {};
|
|
@@ -8891,12 +9033,10 @@
|
|
|
8891
9033
|
}
|
|
8892
9034
|
exports.isPlainObject = isPlainObject;
|
|
8893
9035
|
},
|
|
8894
|
-
"
|
|
9036
|
+
"979633320f": /* models/progress.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
8895
9037
|
__esModule();
|
|
8896
|
-
const tslib_1 = require("tslib");
|
|
8897
|
-
const p = (0, tslib_1.__importStar)(require("@bokehjs/core/properties"));
|
|
8898
9038
|
const html_box_1 = require("@bokehjs/models/layouts/html_box");
|
|
8899
|
-
const layout_1 = require("
|
|
9039
|
+
const layout_1 = require("e84e342b99") /* ./layout */;
|
|
8900
9040
|
class ProgressView extends html_box_1.HTMLBoxView {
|
|
8901
9041
|
connect_signals() {
|
|
8902
9042
|
super.connect_signals();
|
|
@@ -8963,13 +9103,13 @@
|
|
|
8963
9103
|
}
|
|
8964
9104
|
static init_Progress() {
|
|
8965
9105
|
this.prototype.default_view = ProgressView;
|
|
8966
|
-
this.define({
|
|
8967
|
-
active: [
|
|
8968
|
-
bar_color: [
|
|
8969
|
-
style: [
|
|
8970
|
-
max: [
|
|
8971
|
-
value: [
|
|
8972
|
-
});
|
|
9106
|
+
this.define(({ Any, Boolean, Number, String }) => ({
|
|
9107
|
+
active: [Boolean, true],
|
|
9108
|
+
bar_color: [String, 'primary'],
|
|
9109
|
+
style: [Any, {}],
|
|
9110
|
+
max: [Number, 100],
|
|
9111
|
+
value: [Any, null],
|
|
9112
|
+
}));
|
|
8973
9113
|
}
|
|
8974
9114
|
}
|
|
8975
9115
|
exports.Progress = Progress;
|
|
@@ -8981,7 +9121,7 @@
|
|
|
8981
9121
|
__esModule();
|
|
8982
9122
|
const dom_1 = require("@bokehjs/core/dom");
|
|
8983
9123
|
const html_box_1 = require("@bokehjs/models/layouts/html_box");
|
|
8984
|
-
const layout_1 = require("
|
|
9124
|
+
const layout_1 = require("e84e342b99") /* ./layout */;
|
|
8985
9125
|
class QuillInputView extends layout_1.PanelHTMLBoxView {
|
|
8986
9126
|
initialize() {
|
|
8987
9127
|
super.initialize();
|
|
@@ -9079,7 +9219,7 @@
|
|
|
9079
9219
|
const data_1 = require("7f7d9e0c6b") /* ./data */;
|
|
9080
9220
|
const event_to_object_1 = require("3329d4aa5b") /* ./event-to-object */;
|
|
9081
9221
|
const html_1 = require("c424a3bd17") /* ./html */;
|
|
9082
|
-
const layout_1 = require("
|
|
9222
|
+
const layout_1 = require("e84e342b99") /* ./layout */;
|
|
9083
9223
|
function serialize_attrs(attrs) {
|
|
9084
9224
|
const serialized = {};
|
|
9085
9225
|
for (const attr in attrs) {
|
|
@@ -9599,7 +9739,7 @@
|
|
|
9599
9739
|
ReactiveHTML.__module__ = "panel.models.reactive_html";
|
|
9600
9740
|
ReactiveHTML.init_ReactiveHTML();
|
|
9601
9741
|
},
|
|
9602
|
-
"
|
|
9742
|
+
"ab54efe08a": /* models/singleselect.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
9603
9743
|
__esModule();
|
|
9604
9744
|
const tslib_1 = require("tslib");
|
|
9605
9745
|
const dom_1 = require("@bokehjs/core/dom");
|
|
@@ -9611,6 +9751,7 @@
|
|
|
9611
9751
|
super.connect_signals();
|
|
9612
9752
|
this.connect(this.model.properties.value.change, () => this.render_selection());
|
|
9613
9753
|
this.connect(this.model.properties.options.change, () => this.render());
|
|
9754
|
+
this.connect(this.model.properties.disabled_options.change, () => this.render());
|
|
9614
9755
|
this.connect(this.model.properties.name.change, () => this.render());
|
|
9615
9756
|
this.connect(this.model.properties.title.change, () => this.render());
|
|
9616
9757
|
this.connect(this.model.properties.size.change, () => this.render());
|
|
@@ -9624,7 +9765,8 @@
|
|
|
9624
9765
|
value = _label = opt;
|
|
9625
9766
|
else
|
|
9626
9767
|
[value, _label] = opt;
|
|
9627
|
-
|
|
9768
|
+
let disabled = this.model.disabled_options.includes(value);
|
|
9769
|
+
return (0, dom_1.option)({ value: value, disabled: disabled }, _label);
|
|
9628
9770
|
});
|
|
9629
9771
|
this.select_el = (0, dom_1.select)({
|
|
9630
9772
|
multiple: false,
|
|
@@ -9674,9 +9816,10 @@
|
|
|
9674
9816
|
static init_SingleSelect() {
|
|
9675
9817
|
this.prototype.default_view = SingleSelectView;
|
|
9676
9818
|
this.define(({ Any, Array, Int, String }) => ({
|
|
9677
|
-
|
|
9819
|
+
disabled_options: [Array(String), []],
|
|
9678
9820
|
options: [Array(Any), []],
|
|
9679
|
-
size: [Int, 4],
|
|
9821
|
+
size: [Int, 4],
|
|
9822
|
+
value: [String, ""],
|
|
9680
9823
|
}));
|
|
9681
9824
|
}
|
|
9682
9825
|
}
|
|
@@ -9685,10 +9828,8 @@
|
|
|
9685
9828
|
SingleSelect.__module__ = "panel.models.widgets";
|
|
9686
9829
|
SingleSelect.init_SingleSelect();
|
|
9687
9830
|
},
|
|
9688
|
-
"
|
|
9831
|
+
"a96be0bcc9": /* models/speech_to_text.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
9689
9832
|
__esModule();
|
|
9690
|
-
const tslib_1 = require("tslib");
|
|
9691
|
-
const p = (0, tslib_1.__importStar)(require("@bokehjs/core/properties"));
|
|
9692
9833
|
const html_box_1 = require("@bokehjs/models/layouts/html_box");
|
|
9693
9834
|
const iconStarted = `<svg xmlns="http://www.w3.org/2000/svg" height="22px" style="vertical-align: middle;" fill="currentColor" class="bi bi-mic" viewBox="0 0 16 16">
|
|
9694
9835
|
<path fill-rule="evenodd" d="M3.5 6.5A.5.5 0 0 1 4 7v1a4 4 0 0 0 8 0V7a.5.5 0 0 1 1 0v1a5 5 0 0 1-4.5 4.975V15h3a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1h3v-2.025A5 5 0 0 1 3 8V7a.5.5 0 0 1 .5-.5z"/>
|
|
@@ -9844,26 +9985,26 @@
|
|
|
9844
9985
|
}
|
|
9845
9986
|
static init_SpeechToText() {
|
|
9846
9987
|
this.prototype.default_view = SpeechToTextView;
|
|
9847
|
-
this.define({
|
|
9848
|
-
start: [
|
|
9849
|
-
stop: [
|
|
9850
|
-
abort: [
|
|
9851
|
-
grammars: [
|
|
9852
|
-
lang: [
|
|
9853
|
-
continuous: [
|
|
9854
|
-
interim_results: [
|
|
9855
|
-
max_alternatives: [
|
|
9856
|
-
service_uri: [
|
|
9857
|
-
started: [
|
|
9858
|
-
audio_started: [
|
|
9859
|
-
sound_started: [
|
|
9860
|
-
speech_started: [
|
|
9861
|
-
button_type: [
|
|
9862
|
-
button_hide: [
|
|
9863
|
-
button_not_started: [
|
|
9864
|
-
button_started: [
|
|
9865
|
-
results: [
|
|
9866
|
-
});
|
|
9988
|
+
this.define(({ Array, Boolean, Number, String }) => ({
|
|
9989
|
+
start: [Boolean, false],
|
|
9990
|
+
stop: [Boolean, false],
|
|
9991
|
+
abort: [Boolean, false],
|
|
9992
|
+
grammars: [Array(String), []],
|
|
9993
|
+
lang: [String, ""],
|
|
9994
|
+
continuous: [Boolean, false],
|
|
9995
|
+
interim_results: [Boolean, false],
|
|
9996
|
+
max_alternatives: [Number, 1],
|
|
9997
|
+
service_uri: [String,],
|
|
9998
|
+
started: [Boolean, false],
|
|
9999
|
+
audio_started: [Boolean, false],
|
|
10000
|
+
sound_started: [Boolean, false],
|
|
10001
|
+
speech_started: [Boolean, false],
|
|
10002
|
+
button_type: [String, 'light'],
|
|
10003
|
+
button_hide: [Boolean, false],
|
|
10004
|
+
button_not_started: [String, ''],
|
|
10005
|
+
button_started: [String, ''],
|
|
10006
|
+
results: [Array(String), []],
|
|
10007
|
+
}));
|
|
9867
10008
|
}
|
|
9868
10009
|
}
|
|
9869
10010
|
exports.SpeechToText = SpeechToText;
|
|
@@ -9961,7 +10102,7 @@
|
|
|
9961
10102
|
const html_box_1 = require("@bokehjs/models/layouts/html_box");
|
|
9962
10103
|
const dom_1 = require("@bokehjs/core/dom");
|
|
9963
10104
|
const bokeh_events_1 = require("@bokehjs/core/bokeh_events");
|
|
9964
|
-
const layout_1 = require("
|
|
10105
|
+
const layout_1 = require("e84e342b99") /* ./layout */;
|
|
9965
10106
|
class KeystrokeEvent extends bokeh_events_1.ModelEvent {
|
|
9966
10107
|
constructor(key) {
|
|
9967
10108
|
super();
|
|
@@ -10567,10 +10708,10 @@
|
|
|
10567
10708
|
VegaPlot.__module__ = "panel.models.vega";
|
|
10568
10709
|
VegaPlot.init_VegaPlot();
|
|
10569
10710
|
},
|
|
10570
|
-
"
|
|
10711
|
+
"1b46fd56a8": /* models/video.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
10571
10712
|
__esModule();
|
|
10572
10713
|
const html_box_1 = require("@bokehjs/models/layouts/html_box");
|
|
10573
|
-
const layout_1 = require("
|
|
10714
|
+
const layout_1 = require("e84e342b99") /* ./layout */;
|
|
10574
10715
|
class VideoView extends layout_1.PanelHTMLBoxView {
|
|
10575
10716
|
initialize() {
|
|
10576
10717
|
super.initialize();
|
|
@@ -10582,6 +10723,8 @@
|
|
|
10582
10723
|
super.connect_signals();
|
|
10583
10724
|
this.connect(this.model.properties.loop.change, () => this.set_loop());
|
|
10584
10725
|
this.connect(this.model.properties.paused.change, () => this.set_paused());
|
|
10726
|
+
this.connect(this.model.properties.muted.change, () => this.set_muted());
|
|
10727
|
+
this.connect(this.model.properties.autoplay.change, () => this.set_autoplay());
|
|
10585
10728
|
this.connect(this.model.properties.time.change, () => this.set_time());
|
|
10586
10729
|
this.connect(this.model.properties.value.change, () => this.set_value());
|
|
10587
10730
|
this.connect(this.model.properties.volume.change, () => this.set_volume());
|
|
@@ -10602,6 +10745,8 @@
|
|
|
10602
10745
|
this.videoEl.src = this.model.value;
|
|
10603
10746
|
this.videoEl.currentTime = this.model.time;
|
|
10604
10747
|
this.videoEl.loop = this.model.loop;
|
|
10748
|
+
this.videoEl.muted = this.model.muted;
|
|
10749
|
+
this.videoEl.autoplay = this.model.autoplay;
|
|
10605
10750
|
if (this.model.volume != null)
|
|
10606
10751
|
this.videoEl.volume = this.model.volume / 100;
|
|
10607
10752
|
else
|
|
@@ -10636,6 +10781,12 @@
|
|
|
10636
10781
|
set_loop() {
|
|
10637
10782
|
this.videoEl.loop = this.model.loop;
|
|
10638
10783
|
}
|
|
10784
|
+
set_muted() {
|
|
10785
|
+
this.videoEl.muted = this.model.muted;
|
|
10786
|
+
}
|
|
10787
|
+
set_autoplay() {
|
|
10788
|
+
this.videoEl.autoplay = this.model.autoplay;
|
|
10789
|
+
}
|
|
10639
10790
|
set_paused() {
|
|
10640
10791
|
if (!this.videoEl.paused && this.model.paused)
|
|
10641
10792
|
this.videoEl.pause();
|
|
@@ -10674,6 +10825,8 @@
|
|
|
10674
10825
|
this.define(({ Any, Boolean, Int, Number }) => ({
|
|
10675
10826
|
loop: [Boolean, false],
|
|
10676
10827
|
paused: [Boolean, true],
|
|
10828
|
+
muted: [Boolean, false],
|
|
10829
|
+
autoplay: [Boolean, false],
|
|
10677
10830
|
time: [Number, 0],
|
|
10678
10831
|
throttle: [Int, 250],
|
|
10679
10832
|
value: [Any, ''],
|
|
@@ -10689,7 +10842,7 @@
|
|
|
10689
10842
|
"e3e9b8e495": /* models/videostream.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
10690
10843
|
__esModule();
|
|
10691
10844
|
const html_box_1 = require("@bokehjs/models/layouts/html_box");
|
|
10692
|
-
const layout_1 = require("
|
|
10845
|
+
const layout_1 = require("e84e342b99") /* ./layout */;
|
|
10693
10846
|
class VideoStreamView extends layout_1.PanelHTMLBoxView {
|
|
10694
10847
|
constructor() {
|
|
10695
10848
|
super(...arguments);
|
|
@@ -10804,7 +10957,7 @@
|
|
|
10804
10957
|
__esExport("VTKJSPlot", vtkjs_1.VTKJSPlot);
|
|
10805
10958
|
var vtkvolume_1 = require("7785475bdd") /* ./vtkvolume */;
|
|
10806
10959
|
__esExport("VTKVolumePlot", vtkvolume_1.VTKVolumePlot);
|
|
10807
|
-
var vtkaxes_1 = require("
|
|
10960
|
+
var vtkaxes_1 = require("ab478186ba") /* ./vtkaxes */;
|
|
10808
10961
|
__esExport("VTKAxes", vtkaxes_1.VTKAxes);
|
|
10809
10962
|
var vtksynchronized_1 = require("0a57062475") /* ./vtksynchronized */;
|
|
10810
10963
|
__esExport("VTKSynchronizedPlot", vtksynchronized_1.VTKSynchronizedPlot);
|
|
@@ -10881,10 +11034,10 @@
|
|
|
10881
11034
|
const object_1 = require("@bokehjs/core/util/object");
|
|
10882
11035
|
const color_mapper_1 = require("@bokehjs/models/mappers/color_mapper");
|
|
10883
11036
|
const kinds_1 = require("@bokehjs/core/kinds");
|
|
10884
|
-
const layout_1 = require("
|
|
11037
|
+
const layout_1 = require("e84e342b99") /* ../layout */;
|
|
10885
11038
|
const util_1 = require("993f3118b2") /* ./util */;
|
|
10886
11039
|
const vtkcolorbar_1 = require("c010237f8b") /* ./vtkcolorbar */;
|
|
10887
|
-
const vtkaxes_1 = require("
|
|
11040
|
+
const vtkaxes_1 = require("ab478186ba") /* ./vtkaxes */;
|
|
10888
11041
|
const INFO_DIV_STYLE = {
|
|
10889
11042
|
padding: "0px 2px 0px 2px",
|
|
10890
11043
|
maxHeight: "150px",
|
|
@@ -11568,10 +11721,8 @@
|
|
|
11568
11721
|
exports.VTKColorBar = VTKColorBar;
|
|
11569
11722
|
VTKColorBar.__name__ = "VTKColorBar";
|
|
11570
11723
|
},
|
|
11571
|
-
"
|
|
11724
|
+
"ab478186ba": /* models/vtk/vtkaxes.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
11572
11725
|
__esModule();
|
|
11573
|
-
const tslib_1 = require("tslib");
|
|
11574
|
-
const p = (0, tslib_1.__importStar)(require("@bokehjs/core/properties"));
|
|
11575
11726
|
const model_1 = require("@bokehjs/model");
|
|
11576
11727
|
const gl_matrix_1 = require("2f3fd5db07") /* gl-matrix */;
|
|
11577
11728
|
const util_1 = require("993f3118b2") /* ./util */;
|
|
@@ -11580,17 +11731,17 @@
|
|
|
11580
11731
|
super(attrs);
|
|
11581
11732
|
}
|
|
11582
11733
|
static init_VTKAxes() {
|
|
11583
|
-
this.define({
|
|
11584
|
-
origin: [
|
|
11585
|
-
xticker: [
|
|
11586
|
-
yticker: [
|
|
11587
|
-
zticker: [
|
|
11588
|
-
digits: [
|
|
11589
|
-
show_grid: [
|
|
11590
|
-
grid_opacity: [
|
|
11591
|
-
axes_opacity: [
|
|
11592
|
-
fontsize: [
|
|
11593
|
-
});
|
|
11734
|
+
this.define(({ Any, Array, Boolean, Number }) => ({
|
|
11735
|
+
origin: [Array(Number)],
|
|
11736
|
+
xticker: [Any],
|
|
11737
|
+
yticker: [Any],
|
|
11738
|
+
zticker: [Any],
|
|
11739
|
+
digits: [Number, 1],
|
|
11740
|
+
show_grid: [Boolean, true],
|
|
11741
|
+
grid_opacity: [Number, 0.1],
|
|
11742
|
+
axes_opacity: [Number, 1],
|
|
11743
|
+
fontsize: [Number, 12]
|
|
11744
|
+
}));
|
|
11594
11745
|
}
|
|
11595
11746
|
get xticks() {
|
|
11596
11747
|
if (this.xticker)
|
|
@@ -18995,5 +19146,5 @@
|
|
|
18995
19146
|
}
|
|
18996
19147
|
exports.initialize_fullscreen_render = initialize_fullscreen_render;
|
|
18997
19148
|
},
|
|
18998
|
-
}, "4e90918c0a", {"index":"4e90918c0a","models/index":"
|
|
19149
|
+
}, "4e90918c0a", {"index":"4e90918c0a","models/index":"d30e96d837","models/ace":"2e12ebdb23","models/layout":"e84e342b99","models/audio":"33955cfa6f","models/card":"0972f6e77b","models/comm_manager":"f34032fb47","models/customselect":"e258e515be","models/tabulator":"37f6a92950","models/data":"7f7d9e0c6b","models/datetime_picker":"6e11b2cfe2","models/deckgl":"df2378664f","models/tooltips":"6e04fbe567","models/echarts":"9d046c4720","models/html":"c424a3bd17","models/event-to-object":"3329d4aa5b","models/idom":"7d45bd3bc4","models/ipywidget":"0eae77d68f","models/json":"0d30bea0c8","models/file_download":"1767172ffa","models/katex":"7b859fb3cf","models/location":"0c52a301f3","models/mathjax":"0c21036737","models/perspective":"84a772681d","models/player":"27b8bb6d20","models/plotly":"cb7735fd77","models/util":"990b5dd5c7","models/progress":"979633320f","models/quill":"6895629dfc","models/reactive_html":"eb3a49319b","models/singleselect":"ab54efe08a","models/speech_to_text":"a96be0bcc9","models/state":"bfa46a5f19","models/terminal":"edf66f5228","models/text_to_speech":"33cd2c254e","models/trend":"effe070807","models/vega":"647c1ffd57","models/video":"1b46fd56a8","models/videostream":"e3e9b8e495","models/vtk/index":"c51f25e2a7","models/vtk/vtkjs":"b6d9199d03","models/vtk/vtklayout":"e13c143c7d","models/vtk/util":"993f3118b2","models/vtk/vtkcolorbar":"c010237f8b","models/vtk/vtkaxes":"ab478186ba","models/vtk/vtkvolume":"7785475bdd","models/vtk/vtksynchronized":"0a57062475","models/vtk/panel_fullscreen_renwin_sync":"877619fe71"}, {});});
|
|
18999
19150
|
//# sourceMappingURL=panel.js.map
|