@holoviz/panel 1.5.3 → 1.5.4-a.2
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/deckglplot/@deck.gl/carto@^9.0.20/dist.min.js +13 -39
- package/dist/bundled/filedropper/filepond@^4/dist/filepond.css +1 -1
- package/dist/bundled/filedropper/filepond@^4/dist/filepond.min.js +2 -2
- package/dist/bundled/notificationarea/panel/1.5.4-a.2/dist/bundled/font-awesome/css/all.min.css +2 -0
- package/dist/bundled/panel/1.5.4-a.2/dist/bundled/bootstrap5/css/bootstrap.min.css +2 -0
- package/dist/bundled/panel/1.5.4-a.2/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js +2 -0
- package/dist/bundled/panel/1.5.4-a.2/dist/bundled/font-awesome/css/all.min.css +2 -0
- package/dist/bundled/panel/1.5.4-a.2/dist/bundled/jquery/jquery.slim.min.js +2 -0
- package/dist/bundled/plotlyplot/panel/1.5.4-a.2/dist/bundled/jquery/jquery.slim.min.js +2 -0
- package/dist/bundled/reactiveesm/es-module-shims@^1.10.0/dist/es-module-shims.min.js +3 -3
- package/dist/bundled/theme/bootstrap.css +6 -2
- package/dist/bundled/theme/fast.css +6 -2
- package/dist/bundled/theme/material.css +6 -1
- package/dist/bundled/theme/native.css +9 -4
- package/dist/css/models/html.css +30 -0
- package/dist/dts/styles/models/html.css.d.ts +4 -0
- package/dist/lib/models/datetime_slider.d.ts +24 -0
- package/dist/lib/models/datetime_slider.js +38 -0
- package/dist/lib/models/datetime_slider.js.map +1 -0
- package/dist/lib/models/html.d.ts +2 -0
- package/dist/lib/models/html.js +23 -21
- package/dist/lib/models/html.js.map +1 -1
- 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/util.d.ts +1 -1
- package/dist/lib/models/util.js +20 -7
- package/dist/lib/models/util.js.map +1 -1
- package/dist/lib/styles/models/html.css.d.ts +2 -0
- package/dist/lib/styles/models/html.css.js +1 -0
- package/dist/panel.js +112 -43
- package/dist/panel.js.map +1 -1
- package/dist/panel.json +1 -1
- package/dist/panel.min.js +12 -10
- package/package.json +1 -1
- package/dist/bundled/notificationarea/panel/1.5.3/dist/bundled/font-awesome/css/all.min.css +0 -2
- package/dist/bundled/panel/1.5.3/dist/bundled/bootstrap5/css/bootstrap.min.css +0 -2
- package/dist/bundled/panel/1.5.3/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js +0 -2
- package/dist/bundled/panel/1.5.3/dist/bundled/font-awesome/css/all.min.css +0 -2
- package/dist/bundled/panel/1.5.3/dist/bundled/jquery/jquery.slim.min.js +0 -2
- package/dist/bundled/plotlyplot/panel/1.5.3/dist/bundled/jquery/jquery.slim.min.js +0 -2
package/dist/lib/models/util.js
CHANGED
|
@@ -8,13 +8,26 @@ export const get = (obj, path, defaultValue = undefined) => {
|
|
|
8
8
|
const result = travel(/[,[\]]+?/) || travel(/[,[\].]+?/);
|
|
9
9
|
return result === undefined || result === obj ? defaultValue : result;
|
|
10
10
|
};
|
|
11
|
-
export function throttle(func,
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
export function throttle(func, limit) {
|
|
12
|
+
let lastRan = 0;
|
|
13
|
+
let trailingCall = null;
|
|
14
|
+
return function (...args) {
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
const context = this;
|
|
17
|
+
const now = Date.now();
|
|
18
|
+
if (trailingCall) {
|
|
19
|
+
clearTimeout(trailingCall);
|
|
20
|
+
}
|
|
21
|
+
if ((now - lastRan) >= limit) {
|
|
22
|
+
func.apply(context, args);
|
|
23
|
+
lastRan = Date.now();
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
trailingCall = setTimeout(function () {
|
|
27
|
+
func.apply(context, args);
|
|
28
|
+
lastRan = Date.now();
|
|
29
|
+
trailingCall = null;
|
|
30
|
+
}, limit - (now - lastRan));
|
|
18
31
|
}
|
|
19
32
|
};
|
|
20
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../models/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAC,aAAa,EAAE,OAAO,EAAC,MAAM,0BAA0B,CAAA;AAE/D,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,GAAQ,EAAE,IAAY,EAAE,eAAoB,SAAS,EAAE,EAAE;IAC3E,MAAM,MAAM,GAAG,CAAC,MAAc,EAAE,EAAE,CAChC,MAAM,CAAC,SAAS,CAAC,KAAK;SACnB,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC;SAClB,MAAM,CAAC,OAAO,CAAC;SACf,MAAM,CAAC,CAAC,GAAQ,EAAE,GAAQ,EAAE,EAAE,CAAC,CAAC,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAA;IAC9F,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,MAAM,CAAC,WAAW,CAAC,CAAA;IACxD,OAAO,MAAM,KAAK,SAAS,IAAI,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAA;AACvE,CAAC,CAAA;AAED,MAAM,UAAU,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../models/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAC,aAAa,EAAE,OAAO,EAAC,MAAM,0BAA0B,CAAA;AAE/D,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,GAAQ,EAAE,IAA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,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,GAAC,CAAC,CAAC,CAAC,KAAK,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QACxH,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACpB,CAAC;IAED,OAAO,IAAI,CAAC,OAAO,CAAC,CAAA;AACtB,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,IAAgB,EAAE,SAAwB,EAAE,UAAkB,EAAE;IAC5F,MAAM,SAAS,GAAG,GAAG,EAAE;QACrB,IAAI,SAAS,EAAE,EAAE,CAAC;YAChB,IAAI,EAAE,CAAA;QACR,CAAC;aAAM,CAAC;YACN,UAAU,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;QAChC,CAAC;IACH,CAAC,CAAA;IACD,SAAS,EAAE,CAAA;AACb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default `.copybtn{position:sticky;display:flex;top:0;left:100%;width:1.7em;height:1.7em;opacity:0;transition:opacity 0.3s, border 0.3s, background-color 0.3s;user-select:none;padding:0;border:none;outline:none;border-radius:0.4em;border:#1b1f2426 1px solid;background-color:#f6f8fa;color:#57606a;}.codehilite pre{margin-top:-1.7em;}.copybtn svg{stroke:currentColor;width:1.5em;height:1.5em;padding:0.1em;}.codehilite:hover .copybtn{opacity:1;}`
|
package/dist/panel.js
CHANGED
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"4e90918c0a": /* index.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
46
46
|
__esModule();
|
|
47
47
|
const tslib_1 = require("tslib");
|
|
48
|
-
const Panel = tslib_1.__importStar(require("
|
|
48
|
+
const Panel = tslib_1.__importStar(require("f622a1b1a2") /* ./models */);
|
|
49
49
|
exports.Panel = Panel;
|
|
50
50
|
const base_1 = require("@bokehjs/base");
|
|
51
51
|
(0, base_1.register_models)(Panel);
|
|
52
52
|
},
|
|
53
|
-
"
|
|
53
|
+
"f622a1b1a2": /* models/index.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
54
54
|
__esModule();
|
|
55
|
-
exports.VizzuChart = exports.VideoStream = exports.Video = exports.VegaPlot = exports.TrendIndicator = void 0;
|
|
55
|
+
exports.VizzuChart = exports.VideoStream = exports.Video = exports.VegaPlot = exports.TrendIndicator = exports.TooltipIcon = void 0;
|
|
56
56
|
const tslib_1 = require("tslib");
|
|
57
57
|
var ace_1 = require("524fd6cd3a") /* ./ace */;
|
|
58
58
|
__esExport("AcePlot", ace_1.AcePlot);
|
|
@@ -86,6 +86,8 @@
|
|
|
86
86
|
__esExport("DataTabulator", tabulator_1.DataTabulator);
|
|
87
87
|
var datetime_picker_1 = require("ddf98634bb") /* ./datetime_picker */;
|
|
88
88
|
__esExport("DatetimePicker", datetime_picker_1.DatetimePicker);
|
|
89
|
+
var datetime_slider_1 = require("c97cc0eade") /* ./datetime_slider */;
|
|
90
|
+
__esExport("DatetimeSlider", datetime_slider_1.DatetimeSlider);
|
|
89
91
|
var deckgl_1 = require("55dbdadf2d") /* ./deckgl */;
|
|
90
92
|
__esExport("DeckGLPlot", deckgl_1.DeckGLPlot);
|
|
91
93
|
var discrete_player_1 = require("0dca2cd4f6") /* ./discrete_player */;
|
|
@@ -98,7 +100,7 @@
|
|
|
98
100
|
__esExport("FileDownload", file_download_1.FileDownload);
|
|
99
101
|
var file_dropper_1 = require("c0c26a60ff") /* ./file_dropper */;
|
|
100
102
|
__esExport("FileDropper", file_dropper_1.FileDropper);
|
|
101
|
-
var html_1 = require("
|
|
103
|
+
var html_1 = require("7b7afbbd3d") /* ./html */;
|
|
102
104
|
__esExport("HTML", html_1.HTML);
|
|
103
105
|
var ipywidget_1 = require("8a8089cbf3") /* ./ipywidget */;
|
|
104
106
|
__esExport("IPyWidget", ipywidget_1.IPyWidget);
|
|
@@ -653,9 +655,9 @@ export default {render}`;
|
|
|
653
655
|
const dom_1 = require("@bokehjs/core/dom");
|
|
654
656
|
const types_1 = require("@bokehjs/core/util/types");
|
|
655
657
|
const event_to_object_1 = require("2cc1a33000") /* ./event-to-object */;
|
|
656
|
-
const html_1 = require("
|
|
658
|
+
const html_1 = require("7b7afbbd3d") /* ./html */;
|
|
657
659
|
const layout_1 = require("c37096b5ea") /* ./layout */;
|
|
658
|
-
const util_1 = require("
|
|
660
|
+
const util_1 = require("ae3eb5ca81") /* ./util */;
|
|
659
661
|
const esm_css_1 = tslib_1.__importDefault(require("c003e3b193") /* ../styles/models/esm.css */);
|
|
660
662
|
const MODULE_CACHE = new Map();
|
|
661
663
|
class DataEvent extends bokeh_events_1.ModelEvent {
|
|
@@ -17541,11 +17543,12 @@ ${namesToRegister
|
|
|
17541
17543
|
});
|
|
17542
17544
|
});
|
|
17543
17545
|
},
|
|
17544
|
-
"
|
|
17546
|
+
"7b7afbbd3d": /* models/html.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
17545
17547
|
var _a, _b, _c;
|
|
17546
17548
|
__esModule();
|
|
17547
17549
|
exports.html_decode = html_decode;
|
|
17548
17550
|
exports.run_scripts = run_scripts;
|
|
17551
|
+
const tslib_1 = require("tslib");
|
|
17549
17552
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
17550
17553
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17551
17554
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
@@ -17562,6 +17565,10 @@ ${namesToRegister
|
|
|
17562
17565
|
const markup_1 = require("@bokehjs/models/widgets/markup");
|
|
17563
17566
|
const layout_1 = require("c37096b5ea") /* ./layout */;
|
|
17564
17567
|
const event_to_object_1 = require("2cc1a33000") /* ./event-to-object */;
|
|
17568
|
+
const util_1 = require("ae3eb5ca81") /* ./util */;
|
|
17569
|
+
const html_css_1 = tslib_1.__importDefault(require("f90baef893") /* ../styles/models/html.css */);
|
|
17570
|
+
const COPY_ICON = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-clipboard"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2" /><path d="M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"/></svg>`;
|
|
17571
|
+
const CHECK_ICON = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-check"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M5 12l5 5l10 -10"/></svg>`;
|
|
17565
17572
|
function searchAllDOMs(node, selector) {
|
|
17566
17573
|
let found = [];
|
|
17567
17574
|
if (node instanceof Element && node.matches(selector)) {
|
|
@@ -17635,27 +17642,6 @@ ${namesToRegister
|
|
|
17635
17642
|
}
|
|
17636
17643
|
}
|
|
17637
17644
|
}
|
|
17638
|
-
function throttle(func, limit) {
|
|
17639
|
-
let lastFunc;
|
|
17640
|
-
let lastRan;
|
|
17641
|
-
return function (...args) {
|
|
17642
|
-
// @ts-ignore
|
|
17643
|
-
const context = this;
|
|
17644
|
-
if (!lastRan) {
|
|
17645
|
-
func.apply(context, args);
|
|
17646
|
-
lastRan = Date.now();
|
|
17647
|
-
}
|
|
17648
|
-
else {
|
|
17649
|
-
clearTimeout(lastFunc);
|
|
17650
|
-
lastFunc = setTimeout(function () {
|
|
17651
|
-
if ((Date.now() - lastRan) >= limit) {
|
|
17652
|
-
func.apply(context, args);
|
|
17653
|
-
lastRan = Date.now();
|
|
17654
|
-
}
|
|
17655
|
-
}, limit - (Date.now() - lastRan));
|
|
17656
|
-
}
|
|
17657
|
-
};
|
|
17658
|
-
}
|
|
17659
17645
|
class HTMLView extends layout_1.PanelMarkupView {
|
|
17660
17646
|
constructor() {
|
|
17661
17647
|
super(...arguments);
|
|
@@ -17679,7 +17665,7 @@ ${namesToRegister
|
|
|
17679
17665
|
this._remove_event_listeners();
|
|
17680
17666
|
this._setup_event_listeners();
|
|
17681
17667
|
});
|
|
17682
|
-
const set_text = throttle(() => {
|
|
17668
|
+
const set_text = (0, util_1.throttle)(() => {
|
|
17683
17669
|
const text = this._buffer;
|
|
17684
17670
|
this._buffer = null;
|
|
17685
17671
|
this.model.setv({ text }, { silent: true });
|
|
@@ -17692,6 +17678,9 @@ ${namesToRegister
|
|
|
17692
17678
|
set_text();
|
|
17693
17679
|
});
|
|
17694
17680
|
}
|
|
17681
|
+
stylesheets() {
|
|
17682
|
+
return [...super.stylesheets(), html_css_1.default];
|
|
17683
|
+
}
|
|
17695
17684
|
rerender() {
|
|
17696
17685
|
this.render();
|
|
17697
17686
|
this.invalidate_layout();
|
|
@@ -17705,6 +17694,22 @@ ${namesToRegister
|
|
|
17705
17694
|
run_scripts(this.container);
|
|
17706
17695
|
}
|
|
17707
17696
|
this._setup_event_listeners();
|
|
17697
|
+
for (const codeblock of this.container.querySelectorAll(".codehilite")) {
|
|
17698
|
+
const copy_button = document.createElement("button");
|
|
17699
|
+
const pre = codeblock.children[0];
|
|
17700
|
+
copy_button.className = "copybtn";
|
|
17701
|
+
copy_button.innerHTML = COPY_ICON;
|
|
17702
|
+
copy_button.addEventListener("click", () => {
|
|
17703
|
+
const code = pre.innerText;
|
|
17704
|
+
navigator.clipboard.writeText(code).then(() => {
|
|
17705
|
+
copy_button.innerHTML = CHECK_ICON;
|
|
17706
|
+
setTimeout(() => {
|
|
17707
|
+
copy_button.innerHTML = COPY_ICON;
|
|
17708
|
+
}, 300);
|
|
17709
|
+
});
|
|
17710
|
+
});
|
|
17711
|
+
codeblock.insertBefore(copy_button, pre);
|
|
17712
|
+
}
|
|
17708
17713
|
for (const anchor of this.container.querySelectorAll("a")) {
|
|
17709
17714
|
const link = anchor.getAttribute("href");
|
|
17710
17715
|
if (link && link.startsWith("#")) {
|
|
@@ -17817,7 +17822,7 @@ ${namesToRegister
|
|
|
17817
17822
|
}));
|
|
17818
17823
|
})();
|
|
17819
17824
|
},
|
|
17820
|
-
"
|
|
17825
|
+
"ae3eb5ca81": /* models/util.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
17821
17826
|
__esModule();
|
|
17822
17827
|
exports.throttle = throttle;
|
|
17823
17828
|
exports.deepCopy = deepCopy;
|
|
@@ -17838,13 +17843,26 @@ ${namesToRegister
|
|
|
17838
17843
|
return result === undefined || result === obj ? defaultValue : result;
|
|
17839
17844
|
};
|
|
17840
17845
|
exports.get = get;
|
|
17841
|
-
function throttle(func,
|
|
17842
|
-
let
|
|
17843
|
-
|
|
17844
|
-
|
|
17845
|
-
|
|
17846
|
-
|
|
17847
|
-
|
|
17846
|
+
function throttle(func, limit) {
|
|
17847
|
+
let lastRan = 0;
|
|
17848
|
+
let trailingCall = null;
|
|
17849
|
+
return function (...args) {
|
|
17850
|
+
// @ts-ignore
|
|
17851
|
+
const context = this;
|
|
17852
|
+
const now = Date.now();
|
|
17853
|
+
if (trailingCall) {
|
|
17854
|
+
clearTimeout(trailingCall);
|
|
17855
|
+
}
|
|
17856
|
+
if ((now - lastRan) >= limit) {
|
|
17857
|
+
func.apply(context, args);
|
|
17858
|
+
lastRan = Date.now();
|
|
17859
|
+
}
|
|
17860
|
+
else {
|
|
17861
|
+
trailingCall = setTimeout(function () {
|
|
17862
|
+
func.apply(context, args);
|
|
17863
|
+
lastRan = Date.now();
|
|
17864
|
+
trailingCall = null;
|
|
17865
|
+
}, limit - (now - lastRan));
|
|
17848
17866
|
}
|
|
17849
17867
|
};
|
|
17850
17868
|
}
|
|
@@ -17973,6 +17991,10 @@ ${namesToRegister
|
|
|
17973
17991
|
scheduled();
|
|
17974
17992
|
}
|
|
17975
17993
|
},
|
|
17994
|
+
"f90baef893": /* styles/models/html.css.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
17995
|
+
__esModule();
|
|
17996
|
+
exports.default = `.copybtn{position:sticky;display:flex;top:0;left:100%;width:1.7em;height:1.7em;opacity:0;transition:opacity 0.3s, border 0.3s, background-color 0.3s;user-select:none;padding:0;border:none;outline:none;border-radius:0.4em;border:#1b1f2426 1px solid;background-color:#f6f8fa;color:#57606a;}.codehilite pre{margin-top:-1.7em;}.copybtn svg{stroke:currentColor;width:1.5em;height:1.5em;padding:0.1em;}.codehilite:hover .copybtn{opacity:1;}`;
|
|
17997
|
+
},
|
|
17976
17998
|
"c003e3b193": /* styles/models/esm.css.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
17977
17999
|
__esModule();
|
|
17978
18000
|
exports.default = `.error-wrapper{display:contents;}.error{padding:0.75rem 1.25rem;border:1px solid transparent;border-radius:0.25rem;color:var(--danger-text-color);background-color:var(--danger-bg-subtle);border-color:var(--danger-border-subtle);}.error .msg{font-weight:bold;}.error pre.highlight{backdrop-filter:brightness(0.8);font-weight:900;}`;
|
|
@@ -19251,7 +19273,7 @@ ${namesToRegister
|
|
|
19251
19273
|
const comm_manager_1 = require("3ec0e8eb36") /* ./comm_manager */;
|
|
19252
19274
|
const data_1 = require("be689f0377") /* ./data */;
|
|
19253
19275
|
const layout_1 = require("c37096b5ea") /* ./layout */;
|
|
19254
|
-
const util_1 = require("
|
|
19276
|
+
const util_1 = require("ae3eb5ca81") /* ./util */;
|
|
19255
19277
|
const tabulator_css_1 = tslib_1.__importDefault(require("dd8e45230e") /* ../styles/models/tabulator.css */);
|
|
19256
19278
|
class TableEditEvent extends bokeh_events_1.ModelEvent {
|
|
19257
19279
|
constructor(column, row, pre) {
|
|
@@ -23676,6 +23698,53 @@ ${namesToRegister
|
|
|
23676
23698
|
};
|
|
23677
23699
|
}
|
|
23678
23700
|
},
|
|
23701
|
+
"c97cc0eade": /* models/datetime_slider.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
23702
|
+
var _a;
|
|
23703
|
+
__esModule();
|
|
23704
|
+
// adapted from bokeh
|
|
23705
|
+
// https://github.com/bokeh/bokeh/blob/branch-3.7/bokehjs/src/lib/models/widgets/sliders/date_slider.ts
|
|
23706
|
+
const templating_1 = require("@bokehjs/core/util/templating");
|
|
23707
|
+
const numerical_slider_1 = require("@bokehjs/models/widgets/sliders/numerical_slider");
|
|
23708
|
+
const types_1 = require("@bokehjs/core/util/types");
|
|
23709
|
+
class DatetimeSliderView extends numerical_slider_1.NumericalSliderView {
|
|
23710
|
+
constructor() {
|
|
23711
|
+
super(...arguments);
|
|
23712
|
+
this.behaviour = "tap";
|
|
23713
|
+
this.connected = [true, false];
|
|
23714
|
+
}
|
|
23715
|
+
_calc_to() {
|
|
23716
|
+
const spec = super._calc_to();
|
|
23717
|
+
spec.step *= 1000; // step size is in seconds
|
|
23718
|
+
return spec;
|
|
23719
|
+
}
|
|
23720
|
+
_formatter(value, format) {
|
|
23721
|
+
if ((0, types_1.isString)(format)) {
|
|
23722
|
+
return templating_1.DEFAULT_FORMATTERS.datetime(value, format, {});
|
|
23723
|
+
}
|
|
23724
|
+
else {
|
|
23725
|
+
return format.compute(value);
|
|
23726
|
+
}
|
|
23727
|
+
}
|
|
23728
|
+
}
|
|
23729
|
+
exports.DatetimeSliderView = DatetimeSliderView;
|
|
23730
|
+
DatetimeSliderView.__name__ = "DatetimeSliderView";
|
|
23731
|
+
class DatetimeSlider extends numerical_slider_1.NumericalSlider {
|
|
23732
|
+
constructor(attrs) {
|
|
23733
|
+
super(attrs);
|
|
23734
|
+
}
|
|
23735
|
+
}
|
|
23736
|
+
exports.DatetimeSlider = DatetimeSlider;
|
|
23737
|
+
_a = DatetimeSlider;
|
|
23738
|
+
DatetimeSlider.__name__ = "DatetimeSlider";
|
|
23739
|
+
DatetimeSlider.__module__ = "panel.models.datetime_slider";
|
|
23740
|
+
(() => {
|
|
23741
|
+
_a.prototype.default_view = DatetimeSliderView;
|
|
23742
|
+
_a.override({
|
|
23743
|
+
step: 60,
|
|
23744
|
+
format: "%d %b %Y %H:%M:%S",
|
|
23745
|
+
});
|
|
23746
|
+
})();
|
|
23747
|
+
},
|
|
23679
23748
|
"55dbdadf2d": /* models/deckgl.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
23680
23749
|
var _a;
|
|
23681
23750
|
__esModule();
|
|
@@ -26904,7 +26973,7 @@ ${namesToRegister
|
|
|
26904
26973
|
__esModule();
|
|
26905
26974
|
const markup_1 = require("@bokehjs/models/widgets/markup");
|
|
26906
26975
|
const layout_1 = require("c37096b5ea") /* ./layout */;
|
|
26907
|
-
const html_1 = require("
|
|
26976
|
+
const html_1 = require("7b7afbbd3d") /* ./html */;
|
|
26908
26977
|
class PDFView extends layout_1.PanelMarkupView {
|
|
26909
26978
|
connect_signals() {
|
|
26910
26979
|
super.connect_signals();
|
|
@@ -27285,7 +27354,7 @@ ${namesToRegister
|
|
|
27285
27354
|
const column_data_source_1 = require("@bokehjs/models/sources/column_data_source");
|
|
27286
27355
|
const debounce_1 = require("99a25e6992") /* debounce */;
|
|
27287
27356
|
const layout_1 = require("c37096b5ea") /* ./layout */;
|
|
27288
|
-
const util_1 = require("
|
|
27357
|
+
const util_1 = require("ae3eb5ca81") /* ./util */;
|
|
27289
27358
|
const plotly_css_1 = tslib_1.__importDefault(require("ce7c8e2a4f") /* ../styles/models/plotly.css */);
|
|
27290
27359
|
class PlotlyEvent extends bokeh_events_1.ModelEvent {
|
|
27291
27360
|
constructor(data) {
|
|
@@ -28316,9 +28385,9 @@ ${compiled}`;
|
|
|
28316
28385
|
const ui_element_1 = require("@bokehjs/models/ui/ui_element");
|
|
28317
28386
|
const data_1 = require("be689f0377") /* ./data */;
|
|
28318
28387
|
const event_to_object_1 = require("2cc1a33000") /* ./event-to-object */;
|
|
28319
|
-
const html_1 = require("
|
|
28388
|
+
const html_1 = require("7b7afbbd3d") /* ./html */;
|
|
28320
28389
|
const layout_1 = require("c37096b5ea") /* ./layout */;
|
|
28321
|
-
const util_1 = require("
|
|
28390
|
+
const util_1 = require("ae3eb5ca81") /* ./util */;
|
|
28322
28391
|
function serialize_attrs(attrs) {
|
|
28323
28392
|
const serialized = {};
|
|
28324
28393
|
for (const [attr, value] of (0, object_1.entries)(attrs)) {
|
|
@@ -39471,5 +39540,5 @@ ${compiled}`;
|
|
|
39471
39540
|
util_1.vtkns.FullScreenRenderWindowSynchronized = FullScreenRenderWindowSynchronized;
|
|
39472
39541
|
}
|
|
39473
39542
|
},
|
|
39474
|
-
}, "4e90918c0a", {"index":"4e90918c0a","models/index":"
|
|
39543
|
+
}, "4e90918c0a", {"index":"4e90918c0a","models/index":"f622a1b1a2","models/ace":"524fd6cd3a","models/layout":"c37096b5ea","models/anywidget_component":"645799b9ab","models/reactive_esm":"1433b78233","models/event-to-object":"2cc1a33000","models/html":"7b7afbbd3d","models/util":"ae3eb5ca81","styles/models/html.css":"f90baef893","styles/models/esm.css":"c003e3b193","models/audio":"fd59c985b3","models/browser":"5a16cc23e6","models/button":"1db93211cd","models/button_icon":"1738ddeb3a","models/icon":"17193475a8","models/card":"c2f574b5f0","models/column":"54717540c5","styles/models/card.css":"edc7ee0090","models/checkbox_button_group":"51fbe9e2d0","models/chatarea_input":"27a077673d","models/textarea_input":"b7d595d74a","models/comm_manager":"3ec0e8eb36","models/customselect":"92bbd30bd1","models/multiselect":"27b5580835","models/tabulator":"066886fb9f","models/data":"be689f0377","styles/models/tabulator.css":"dd8e45230e","models/datetime_picker":"ddf98634bb","models/datetime_slider":"c97cc0eade","models/deckgl":"55dbdadf2d","models/lumagl":"a49afbffe9","models/tooltips":"f8f8ea4284","models/discrete_player":"0dca2cd4f6","models/player":"e08222207c","models/echarts":"253f80e325","models/feed":"3032783565","models/file_download":"e4e701c9f7","models/file_dropper":"c0c26a60ff","styles/models/filedropper.css":"6b76b31c08","models/ipywidget":"8a8089cbf3","models/json":"7eff964d3e","models/jsoneditor":"d57683bd1f","models/katex":"f672d71a9f","models/location":"bd8e0fe48b","models/mathjax":"bbfcfd3ba2","models/pdf":"f87ad1873c","models/perspective":"5db5031a50","styles/models/perspective.css":"2e2913ea54","models/plotly":"d81c52ff52","styles/models/plotly.css":"ce7c8e2a4f","models/progress":"aded75e266","models/quill":"cfa2675b56","models/radio_button_group":"25e2d7c208","models/react_component":"f302071ea0","models/reactive_html":"cbb686033d","models/singleselect":"168c4d0ebd","models/speech_to_text":"5ac2cab0ab","models/state":"92822cb73a","models/tabs":"2231cdc549","models/terminal":"121f00bd6f","models/text_input":"8be416b160","models/text_to_speech":"a04eb51988","models/time_picker":"1afcab4e45","models/toggle_icon":"ad985f285e","models/tooltip_icon":"ae3a172647","models/trend":"7f147f0c2a","models/vega":"119dc23765","models/video":"79dc37b888","styles/models/video.css":"dfe21e6f1b","models/videostream":"f8afc4e661","models/vizzu":"1f7bc1f95b","models/vtk/index":"c51f25e2a7","models/vtk/vtkjs":"ac55912dc1","models/vtk/vtklayout":"b06d05fa3e","models/vtk/util":"df9946ff52","models/vtk/vtkcolorbar":"b1d68776a9","models/vtk/vtkaxes":"0379dcf1cd","models/vtk/vtkvolume":"18592eecef","models/vtk/vtksynchronized":"a4e5946204","models/vtk/panel_fullscreen_renwin_sync":"5e89c7b3eb"}, {});});
|
|
39475
39544
|
//# sourceMappingURL=panel.js.map
|