@holoviz/panel 1.3.5-a.1 → 1.3.5-rc.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.
Files changed (41) hide show
  1. package/dist/bundled/notificationarea/panel/1.3.5-rc.1/dist/bundled/font-awesome/css/all.min.css +2 -0
  2. package/dist/bundled/panel/1.3.5-rc.1/dist/bundled/bootstrap5/css/bootstrap.min.css +2 -0
  3. package/dist/bundled/panel/1.3.5-rc.1/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js +2 -0
  4. package/dist/bundled/panel/1.3.5-rc.1/dist/bundled/font-awesome/css/all.min.css +2 -0
  5. package/dist/bundled/panel/1.3.5-rc.1/dist/bundled/jquery/jquery.slim.min.js +2 -0
  6. package/dist/bundled/plotlyplot/panel/1.3.5-rc.1/dist/bundled/jquery/jquery.slim.min.js +2 -0
  7. package/dist/bundled/theme/bootstrap.css +1 -1
  8. package/dist/bundled/theme/fast.css +1 -1
  9. package/dist/bundled/theme/material.css +1 -1
  10. package/dist/bundled/theme/native.css +1 -1
  11. package/dist/css/chat_message.css +10 -0
  12. package/dist/css/chat_reaction_icons.css +0 -8
  13. package/dist/css/icon.css +0 -0
  14. package/dist/dts/styles/icon.css.d.ts +3 -0
  15. package/dist/lib/models/icon.d.ts +35 -0
  16. package/dist/lib/models/icon.js +76 -0
  17. package/dist/lib/models/icon.js.map +1 -0
  18. package/dist/lib/models/index.d.ts +1 -0
  19. package/dist/lib/models/index.js +1 -0
  20. package/dist/lib/models/index.js.map +1 -1
  21. package/dist/lib/models/layout.d.ts +2 -0
  22. package/dist/lib/models/layout.js +15 -0
  23. package/dist/lib/models/layout.js.map +1 -1
  24. package/dist/lib/models/player.js +61 -9
  25. package/dist/lib/models/player.js.map +1 -1
  26. package/dist/lib/styles/chat_message.css.js +1 -1
  27. package/dist/lib/styles/chat_reaction_icons.css.js +1 -1
  28. package/dist/lib/styles/icon.css.d.ts +1 -0
  29. package/dist/lib/styles/icon.css.js +1 -0
  30. package/dist/panel.js +191 -40
  31. package/dist/panel.js.map +1 -1
  32. package/dist/panel.json +1 -1
  33. package/dist/panel.min.js +31 -30
  34. package/dist/wheels/{panel-1.3.5a1-py3-none-any.whl → panel-1.3.5rc1-py3-none-any.whl} +0 -0
  35. package/package.json +1 -1
  36. package/dist/bundled/notificationarea/panel/1.3.5-a.1/dist/bundled/font-awesome/css/all.min.css +0 -2
  37. package/dist/bundled/panel/1.3.5-a.1/dist/bundled/bootstrap5/css/bootstrap.min.css +0 -2
  38. package/dist/bundled/panel/1.3.5-a.1/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js +0 -2
  39. package/dist/bundled/panel/1.3.5-a.1/dist/bundled/font-awesome/css/all.min.css +0 -2
  40. package/dist/bundled/panel/1.3.5-a.1/dist/bundled/jquery/jquery.slim.min.js +0 -2
  41. package/dist/bundled/plotlyplot/panel/1.3.5-a.1/dist/bundled/jquery/jquery.slim.min.js +0 -2
package/dist/panel.js CHANGED
@@ -44,12 +44,12 @@
44
44
  "4e90918c0a": /* index.js */ function _(require, module, exports, __esModule, __esExport) {
45
45
  __esModule();
46
46
  const tslib_1 = require("tslib");
47
- const Panel = tslib_1.__importStar(require("25913cabc4") /* ./models */);
47
+ const Panel = tslib_1.__importStar(require("e678554eae") /* ./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
- "25913cabc4": /* models/index.js */ function _(require, module, exports, __esModule, __esExport) {
52
+ "e678554eae": /* 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("464e3dc85c") /* ./ace */;
@@ -98,7 +98,7 @@
98
98
  __esExport("PDF", pdf_1.PDF);
99
99
  var perspective_1 = require("5f38562b04") /* ./perspective */;
100
100
  __esExport("Perspective", perspective_1.Perspective);
101
- var player_1 = require("bd5015f776") /* ./player */;
101
+ var player_1 = require("9148c6a6f9") /* ./player */;
102
102
  __esExport("Player", player_1.Player);
103
103
  var plotly_1 = require("b6febc7d6f") /* ./plotly */;
104
104
  __esExport("PlotlyPlot", plotly_1.PlotlyPlot);
@@ -124,6 +124,8 @@
124
124
  __esExport("TextAreaInput", textarea_input_1.TextAreaInput);
125
125
  var text_to_speech_1 = require("a44f0bd49f") /* ./text_to_speech */;
126
126
  __esExport("TextToSpeech", text_to_speech_1.TextToSpeech);
127
+ var icon_1 = require("e606e4556b") /* ./icon */;
128
+ __esExport("ToggleIcon", icon_1.ToggleIcon);
127
129
  var tooltip_icon_1 = require("4c6dd3d1dc") /* ./tooltip_icon */;
128
130
  __esExport("TooltipIcon", tooltip_icon_1.TooltipIcon);
129
131
  var trend_1 = require("c2c4524e04") /* ./trend */;
@@ -142,7 +144,7 @@
142
144
  __esModule();
143
145
  var _a;
144
146
  const dom_1 = require("@bokehjs/core/dom");
145
- const layout_1 = require("c64c1219c8") /* ./layout */;
147
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
146
148
  function ID() {
147
149
  // Math.random should be unique because of its seeding algorithm.
148
150
  // Convert it to base 36 (numbers + letters), and grab the first 9 characters
@@ -256,13 +258,21 @@
256
258
  });
257
259
  })();
258
260
  },
259
- "c64c1219c8": /* models/layout.js */ function _(require, module, exports, __esModule, __esExport) {
261
+ "cac5f3ed28": /* models/layout.js */ function _(require, module, exports, __esModule, __esExport) {
260
262
  __esModule();
261
263
  const dom_1 = require("@bokehjs/core/dom");
262
264
  const types_1 = require("@bokehjs/core/util/types");
263
265
  const widget_1 = require("@bokehjs/models/widgets/widget");
264
266
  const layout_dom_1 = require("@bokehjs/models/layouts/layout_dom");
265
267
  class PanelMarkupView extends widget_1.WidgetView {
268
+ connect_signals() {
269
+ super.connect_signals();
270
+ const { width, height, min_height, max_height, margin, sizing_mode } = this.model.properties;
271
+ this.on_change([width, height, min_height, max_height, margin, sizing_mode], () => {
272
+ set_size(this.el, this.model);
273
+ set_size(this.container, this.model, false);
274
+ });
275
+ }
266
276
  async lazy_initialize() {
267
277
  await super.lazy_initialize();
268
278
  if (this.provider.status == "not_started" || this.provider.status == "loading")
@@ -373,6 +383,13 @@
373
383
  }
374
384
  exports.set_size = set_size;
375
385
  class HTMLBoxView extends layout_dom_1.LayoutDOMView {
386
+ connect_signals() {
387
+ super.connect_signals();
388
+ const { width, height, min_height, max_height, margin, sizing_mode } = this.model.properties;
389
+ this.on_change([width, height, min_height, max_height, margin, sizing_mode], () => {
390
+ set_size(this.el, this.model);
391
+ });
392
+ }
376
393
  render() {
377
394
  super.render();
378
395
  set_size(this.el, this.model);
@@ -410,7 +427,7 @@
410
427
  "cfb5b1a85b": /* models/audio.js */ function _(require, module, exports, __esModule, __esExport) {
411
428
  __esModule();
412
429
  var _a;
413
- const layout_1 = require("c64c1219c8") /* ./layout */;
430
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
414
431
  class AudioView extends layout_1.HTMLBoxView {
415
432
  initialize() {
416
433
  super.initialize();
@@ -1174,7 +1191,7 @@
1174
1191
  const debounce_1 = require("99a25e6992") /* debounce */;
1175
1192
  const comm_manager_1 = require("eca6f2cacb") /* ./comm_manager */;
1176
1193
  const data_1 = require("4e27eda472") /* ./data */;
1177
- const layout_1 = require("c64c1219c8") /* ./layout */;
1194
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
1178
1195
  class TableEditEvent extends bokeh_events_1.ModelEvent {
1179
1196
  constructor(column, row, pre) {
1180
1197
  super();
@@ -6415,7 +6432,7 @@
6415
6432
  const bokeh_events_1 = require("@bokehjs/core/bokeh_events");
6416
6433
  const dom_1 = require("@bokehjs/core/dom");
6417
6434
  const event_to_object_1 = require("490942d778") /* ./event-to-object */;
6418
- const layout_1 = require("c64c1219c8") /* ./layout */;
6435
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
6419
6436
  const mouse_events = [
6420
6437
  'click', 'dblclick', 'mousedown', 'mousemove', 'mouseup', 'mouseover', 'mouseout',
6421
6438
  'globalout', 'contextmenu'
@@ -7010,7 +7027,7 @@
7010
7027
  var _a, _b;
7011
7028
  const bokeh_events_1 = require("@bokehjs/core/bokeh_events");
7012
7029
  const markup_1 = require("@bokehjs/models/widgets/markup");
7013
- const layout_1 = require("c64c1219c8") /* ./layout */;
7030
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
7014
7031
  const event_to_object_1 = require("490942d778") /* ./event-to-object */;
7015
7032
  class DOMEvent extends bokeh_events_1.ModelEvent {
7016
7033
  constructor(node, data) {
@@ -7168,7 +7185,7 @@
7168
7185
  __esModule();
7169
7186
  var _a;
7170
7187
  const dom_1 = require("@bokehjs/core/dom");
7171
- const layout_1 = require("c64c1219c8") /* ./layout */;
7188
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
7172
7189
  const Jupyter = window.Jupyter;
7173
7190
  class IPyWidgetView extends layout_1.HTMLBoxView {
7174
7191
  initialize() {
@@ -7252,7 +7269,7 @@
7252
7269
  const kinds_1 = require("@bokehjs/core/kinds");
7253
7270
  const markup_1 = require("@bokehjs/models/widgets/markup");
7254
7271
  const json_formatter_js_1 = tslib_1.__importDefault(require("18bba7b7e1") /* json-formatter-js */);
7255
- const layout_1 = require("c64c1219c8") /* ./layout */;
7272
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
7256
7273
  class JSONView extends layout_1.PanelMarkupView {
7257
7274
  connect_signals() {
7258
7275
  super.connect_signals();
@@ -7393,7 +7410,7 @@
7393
7410
  var _a, _b;
7394
7411
  const dom_1 = require("@bokehjs/core/dom");
7395
7412
  const bokeh_events_1 = require("@bokehjs/core/bokeh_events");
7396
- const layout_1 = require("c64c1219c8") /* ./layout */;
7413
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
7397
7414
  class JSONEditEvent extends bokeh_events_1.ModelEvent {
7398
7415
  constructor(data) {
7399
7416
  super();
@@ -7489,7 +7506,7 @@
7489
7506
  __esModule();
7490
7507
  var _a;
7491
7508
  const markup_1 = require("@bokehjs/models/widgets/markup");
7492
- const layout_1 = require("c64c1219c8") /* ./layout */;
7509
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
7493
7510
  class KaTeXView extends layout_1.PanelMarkupView {
7494
7511
  connect_signals() {
7495
7512
  super.connect_signals();
@@ -7606,7 +7623,7 @@
7606
7623
  __esModule();
7607
7624
  var _a;
7608
7625
  const markup_1 = require("@bokehjs/models/widgets/markup");
7609
- const layout_1 = require("c64c1219c8") /* ./layout */;
7626
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
7610
7627
  class MathJaxView extends layout_1.PanelMarkupView {
7611
7628
  connect_signals() {
7612
7629
  super.connect_signals();
@@ -7636,7 +7653,7 @@
7636
7653
  __esModule();
7637
7654
  var _a;
7638
7655
  const markup_1 = require("@bokehjs/models/widgets/markup");
7639
- const layout_1 = require("c64c1219c8") /* ./layout */;
7656
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
7640
7657
  const html_1 = require("3db2e41978") /* ./html */;
7641
7658
  class PDFView extends layout_1.PanelMarkupView {
7642
7659
  connect_signals() {
@@ -7704,7 +7721,7 @@
7704
7721
  const bokeh_events_1 = require("@bokehjs/core/bokeh_events");
7705
7722
  const dom_1 = require("@bokehjs/core/dom");
7706
7723
  const column_data_source_1 = require("@bokehjs/models/sources/column_data_source");
7707
- const layout_1 = require("c64c1219c8") /* ./layout */;
7724
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
7708
7725
  const THEMES = {
7709
7726
  'material-dark': 'Material Dark',
7710
7727
  'material': 'Material Light',
@@ -7967,12 +7984,64 @@
7967
7984
  }));
7968
7985
  })();
7969
7986
  },
7970
- "bd5015f776": /* models/player.js */ function _(require, module, exports, __esModule, __esExport) {
7987
+ "9148c6a6f9": /* models/player.js */ function _(require, module, exports, __esModule, __esExport) {
7971
7988
  __esModule();
7972
7989
  var _a;
7973
7990
  const kinds_1 = require("@bokehjs/core/kinds");
7974
7991
  const dom_1 = require("@bokehjs/core/dom");
7975
7992
  const widget_1 = require("@bokehjs/models/widgets/widget");
7993
+ const SVG_STRINGS = {
7994
+ slower: '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-minus" width="24" \
7995
+ height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"\
7996
+ stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" \
7997
+ fill="none"/><path d="M5 12l14 0" /></svg>',
7998
+ first: '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-player-track-prev-filled" \
7999
+ width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" \
8000
+ stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/>\
8001
+ <path d="M20.341 4.247l-8 7a1 1 0 0 0 0 1.506l8 7c.647 .565 1.659 .106 1.659 -.753v-14c0 -.86 \
8002
+ -1.012 -1.318 -1.659 -.753z" stroke-width="0" fill="currentColor" /><path d="M9.341 4.247l-8 7a1 \
8003
+ 1 0 0 0 0 1.506l8 7c.647 .565 1.659 .106 1.659 -.753v-14c0 -.86 -1.012 -1.318 -1.659 -.753z" \
8004
+ stroke-width="0" fill="currentColor" /></svg>',
8005
+ previous: '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-player-skip-back-filled" \
8006
+ width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" \
8007
+ stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/> \
8008
+ <path d="M19.496 4.136l-12 7a1 1 0 0 0 0 1.728l12 7a1 1 0 0 0 1.504 -.864v-14a1 1 0 0 0 -1.504 -.864z" \
8009
+ stroke-width="0" fill="currentColor" /><path d="M4 4a1 1 0 0 1 .993 .883l.007 .117v14a1 1 0 0 1 -1.993 \
8010
+ .117l-.007 -.117v-14a1 1 0 0 1 1 -1z" stroke-width="0" fill="currentColor" /></svg>',
8011
+ reverse: '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-player-play-filled"\
8012
+ width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"\
8013
+ stroke-linecap="round" stroke-linejoin="round" style="transform: scaleX(-1);"><path stroke="none"\
8014
+ d="M0 0h24v24H0z" fill="none"/><path d="M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13\
8015
+ -8a1 1 0 0 0 -1.524 .852z" stroke-width="0" fill="currentColor" /></svg>',
8016
+ pause: '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-player-pause-filled" \
8017
+ width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" \
8018
+ stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" \
8019
+ fill="none"/><path d="M9 4h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h2a2 2 0 0 0 2 -2v-12a2 2 0 \
8020
+ 0 0 -2 -2z" stroke-width="0" fill="currentColor" /><path d="M17 4h-2a2 2 0 0 0 -2 2v12a2 \
8021
+ 2 0 0 0 2 2h2a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2z" stroke-width="0" fill="currentColor" /></svg>',
8022
+ play: '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-player-play-filled" \
8023
+ width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" \
8024
+ stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" \
8025
+ fill="none"/><path d="M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 \
8026
+ 1 0 0 0 -1.524 .852z" stroke-width="0" fill="currentColor" /></svg>',
8027
+ next: '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-player-skip-forward-filled" \
8028
+ width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" \
8029
+ stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/> \
8030
+ <path d="M3 5v14a1 1 0 0 0 1.504 .864l12 -7a1 1 0 0 0 0 -1.728l-12 -7a1 1 0 0 0 -1.504 .864z" \
8031
+ stroke-width="0" fill="currentColor" /><path d="M20 4a1 1 0 0 1 .993 .883l.007 .117v14a1 1 0 0 \
8032
+ 1 -1.993 .117l-.007 -.117v-14a1 1 0 0 1 1 -1z" stroke-width="0" fill="currentColor" /></svg>',
8033
+ last: '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-player-track-next-filled" \
8034
+ width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" \
8035
+ stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" \
8036
+ fill="none"/><path d="M2 5v14c0 .86 1.012 1.318 1.659 .753l8 -7a1 1 0 0 0 0 -1.506l-8 \
8037
+ -7c-.647 -.565 -1.659 -.106 -1.659 .753z" stroke-width="0" fill="currentColor" /><path \
8038
+ d="M13 5v14c0 .86 1.012 1.318 1.659 .753l8 -7a1 1 0 0 0 0 -1.506l-8 -7c-.647 -.565 -1.659 \
8039
+ -.106 -1.659 .753z" stroke-width="0" fill="currentColor" /></svg>',
8040
+ faster: '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-plus" \
8041
+ width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" \
8042
+ stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" \
8043
+ fill="none"/><path d="M12 5l0 14" /><path d="M5 12l14 0" /></svg>',
8044
+ };
7976
8045
  function press(btn_list) {
7977
8046
  btn_list.forEach((btn) => btn.style.borderStyle = 'inset');
7978
8047
  }
@@ -8049,47 +8118,47 @@
8049
8118
  const button_style = "text-align: center; min-width: 40px; flex-grow: 2; margin: 2px";
8050
8119
  const slower = document.createElement('button');
8051
8120
  slower.style.cssText = button_style_small;
8052
- slower.appendChild(document.createTextNode(''));
8121
+ slower.innerHTML = SVG_STRINGS['slower'];
8053
8122
  slower.onclick = () => this.slower();
8054
8123
  button_div.appendChild(slower);
8055
8124
  const first = document.createElement('button');
8056
8125
  first.style.cssText = button_style;
8057
- first.appendChild(document.createTextNode('\u275a\u25c0\u25c0'));
8126
+ first.innerHTML = SVG_STRINGS['first'];
8058
8127
  first.onclick = () => this.first_frame();
8059
8128
  button_div.appendChild(first);
8060
8129
  const previous = document.createElement('button');
8061
8130
  previous.style.cssText = button_style;
8062
- previous.appendChild(document.createTextNode('\u275a\u25c0'));
8131
+ previous.innerHTML = SVG_STRINGS['previous'];
8063
8132
  previous.onclick = () => this.previous_frame();
8064
8133
  button_div.appendChild(previous);
8065
8134
  const reverse = document.createElement('button');
8066
8135
  reverse.style.cssText = button_style;
8067
- reverse.appendChild(document.createTextNode('\u25c0'));
8136
+ reverse.innerHTML = SVG_STRINGS['reverse'];
8068
8137
  reverse.onclick = () => this.reverse_animation();
8069
8138
  button_div.appendChild(reverse);
8070
8139
  const pause = document.createElement('button');
8071
8140
  pause.style.cssText = button_style;
8072
- pause.appendChild(document.createTextNode('\u275a\u275a'));
8141
+ pause.innerHTML = SVG_STRINGS['pause'];
8073
8142
  pause.onclick = () => this.pause_animation();
8074
8143
  button_div.appendChild(pause);
8075
8144
  const play = document.createElement('button');
8076
8145
  play.style.cssText = button_style;
8077
- play.appendChild(document.createTextNode('\u25b6'));
8146
+ play.innerHTML = SVG_STRINGS['play'];
8078
8147
  play.onclick = () => this.play_animation();
8079
8148
  button_div.appendChild(play);
8080
8149
  const next = document.createElement('button');
8081
8150
  next.style.cssText = button_style;
8082
- next.appendChild(document.createTextNode('\u25b6\u275a'));
8151
+ next.innerHTML = SVG_STRINGS['next'];
8083
8152
  next.onclick = () => this.next_frame();
8084
8153
  button_div.appendChild(next);
8085
8154
  const last = document.createElement('button');
8086
8155
  last.style.cssText = button_style;
8087
- last.appendChild(document.createTextNode('\u25b6\u25b6\u275a'));
8156
+ last.innerHTML = SVG_STRINGS['last'];
8088
8157
  last.onclick = () => this.last_frame();
8089
8158
  button_div.appendChild(last);
8090
8159
  const faster = document.createElement('button');
8091
8160
  faster.style.cssText = button_style_small;
8092
- faster.appendChild(document.createTextNode('+'));
8161
+ faster.innerHTML = SVG_STRINGS['faster'];
8093
8162
  faster.onclick = () => this.faster();
8094
8163
  button_div.appendChild(faster);
8095
8164
  // toggle
@@ -8313,7 +8382,7 @@
8313
8382
  const column_data_source_1 = require("@bokehjs/models/sources/column_data_source");
8314
8383
  const debounce_1 = require("99a25e6992") /* debounce */;
8315
8384
  const util_1 = require("990b5dd5c7") /* ./util */;
8316
- const layout_1 = require("c64c1219c8") /* ./layout */;
8385
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
8317
8386
  function convertUndefined(obj) {
8318
8387
  Object
8319
8388
  .entries(obj)
@@ -8739,7 +8808,7 @@
8739
8808
  __esModule();
8740
8809
  var _a;
8741
8810
  const dom_1 = require("@bokehjs/core/dom");
8742
- const layout_1 = require("c64c1219c8") /* ./layout */;
8811
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
8743
8812
  class ProgressView extends layout_1.HTMLBoxView {
8744
8813
  connect_signals() {
8745
8814
  super.connect_signals();
@@ -8818,7 +8887,7 @@
8818
8887
  __esModule();
8819
8888
  var _a;
8820
8889
  const dom_1 = require("@bokehjs/core/dom");
8821
- const layout_1 = require("c64c1219c8") /* ./layout */;
8890
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
8822
8891
  const normalizeNative = (nativeRange) => {
8823
8892
  var _b, _c;
8824
8893
  // document.getSelection model has properties startContainer and endContainer
@@ -9038,7 +9107,7 @@
9038
9107
  const data_1 = require("4e27eda472") /* ./data */;
9039
9108
  const event_to_object_1 = require("490942d778") /* ./event-to-object */;
9040
9109
  const html_1 = require("3db2e41978") /* ./html */;
9041
- const layout_1 = require("c64c1219c8") /* ./layout */;
9110
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
9042
9111
  function serialize_attrs(attrs) {
9043
9112
  const serialized = {};
9044
9113
  for (const attr in attrs) {
@@ -9999,7 +10068,7 @@
9999
10068
  "7651136c44": /* models/speech_to_text.js */ function _(require, module, exports, __esModule, __esExport) {
10000
10069
  __esModule();
10001
10070
  var _a;
10002
- const layout_1 = require("c64c1219c8") /* ./layout */;
10071
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
10003
10072
  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">
10004
10073
  <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"/>
10005
10074
  <path fill-rule="evenodd" d="M10 8V3a2 2 0 1 0-4 0v5a2 2 0 1 0 4 0zM8 0a3 3 0 0 0-3 3v5a3 3 0 0 0 6 0V3a3 3 0 0 0-3-3z"/>
@@ -10404,7 +10473,7 @@
10404
10473
  var _a, _b;
10405
10474
  const dom_1 = require("@bokehjs/core/dom");
10406
10475
  const bokeh_events_1 = require("@bokehjs/core/bokeh_events");
10407
- const layout_1 = require("c64c1219c8") /* ./layout */;
10476
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
10408
10477
  class KeystrokeEvent extends bokeh_events_1.ModelEvent {
10409
10478
  constructor(key) {
10410
10479
  super();
@@ -10564,7 +10633,7 @@
10564
10633
  "a44f0bd49f": /* models/text_to_speech.js */ function _(require, module, exports, __esModule, __esExport) {
10565
10634
  __esModule();
10566
10635
  var _a;
10567
- const layout_1 = require("c64c1219c8") /* ./layout */;
10636
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
10568
10637
  function toVoicesList(voices) {
10569
10638
  var voicesList = [];
10570
10639
  for (let voice of voices) {
@@ -10692,6 +10761,88 @@
10692
10761
  }));
10693
10762
  })();
10694
10763
  },
10764
+ "e606e4556b": /* models/icon.js */ function _(require, module, exports, __esModule, __esExport) {
10765
+ __esModule();
10766
+ var _a;
10767
+ const tabler_icon_1 = require("@bokehjs/models/ui/icons/tabler_icon");
10768
+ const control_1 = require("@bokehjs/models/widgets/control");
10769
+ const build_views_1 = require("@bokehjs/core/build_views");
10770
+ class ToggleIconView extends control_1.ControlView {
10771
+ *controls() { }
10772
+ remove() {
10773
+ var _b;
10774
+ (_b = this.icon_view) === null || _b === void 0 ? void 0 : _b.remove();
10775
+ super.remove();
10776
+ }
10777
+ async lazy_initialize() {
10778
+ await super.lazy_initialize();
10779
+ const size = this.calculate_size();
10780
+ const icon_model = new tabler_icon_1.TablerIcon({ icon_name: this.model.icon, size: size });
10781
+ this.icon_view = await (0, build_views_1.build_view)(icon_model, { parent: this });
10782
+ this.icon_view.el.addEventListener('click', () => this.toggle_value());
10783
+ }
10784
+ *children() {
10785
+ yield* super.children();
10786
+ yield this.icon_view;
10787
+ }
10788
+ toggle_value() {
10789
+ if (this.model.disabled) {
10790
+ return;
10791
+ }
10792
+ this.model.value = !this.model.value;
10793
+ this.update_icon();
10794
+ }
10795
+ connect_signals() {
10796
+ super.connect_signals();
10797
+ const { icon, active_icon, value, disabled } = this.model.properties;
10798
+ this.on_change([active_icon, icon, value], () => this.update_icon());
10799
+ this.on_change(disabled, () => this.update_cursor());
10800
+ }
10801
+ render() {
10802
+ super.render();
10803
+ this.icon_view.render();
10804
+ this.update_icon();
10805
+ this.update_cursor();
10806
+ this.shadow_el.appendChild(this.icon_view.el);
10807
+ }
10808
+ update_cursor() {
10809
+ this.icon_view.el.style.cursor = this.model.disabled ? 'not-allowed' : 'pointer';
10810
+ }
10811
+ update_icon() {
10812
+ const icon = this.model.value ? this.get_active_icon() : this.model.icon;
10813
+ this.icon_view.model.icon_name = icon;
10814
+ }
10815
+ get_active_icon() {
10816
+ return this.model.active_icon !== '' ? this.model.active_icon : `${this.model.icon}-filled`;
10817
+ }
10818
+ calculate_size() {
10819
+ var _b, _c;
10820
+ const maxWidth = (_b = this.model.width) !== null && _b !== void 0 ? _b : 15;
10821
+ const maxHeight = (_c = this.model.height) !== null && _c !== void 0 ? _c : 15;
10822
+ const size = Math.max(maxWidth, maxHeight);
10823
+ return `${size}px`;
10824
+ }
10825
+ }
10826
+ exports.ToggleIconView = ToggleIconView;
10827
+ ToggleIconView.__name__ = "ToggleIconView";
10828
+ class ToggleIcon extends control_1.Control {
10829
+ constructor(attrs) {
10830
+ super(attrs);
10831
+ }
10832
+ }
10833
+ exports.ToggleIcon = ToggleIcon;
10834
+ _a = ToggleIcon;
10835
+ ToggleIcon.__name__ = "ToggleIcon";
10836
+ ToggleIcon.__module__ = "panel.models.icon";
10837
+ (() => {
10838
+ _a.prototype.default_view = ToggleIconView;
10839
+ _a.define(({ String, Boolean }) => ({
10840
+ active_icon: [String, ""],
10841
+ icon: [String, "heart"],
10842
+ value: [Boolean, false],
10843
+ }));
10844
+ })();
10845
+ },
10695
10846
  "4c6dd3d1dc": /* models/tooltip_icon.js */ function _(require, module, exports, __esModule, __esExport) {
10696
10847
  __esModule();
10697
10848
  const tslib_1 = require("tslib");
@@ -10793,7 +10944,7 @@
10793
10944
  "c2c4524e04": /* models/trend.js */ function _(require, module, exports, __esModule, __esExport) {
10794
10945
  __esModule();
10795
10946
  var _a;
10796
- const layout_1 = require("c64c1219c8") /* ./layout */;
10947
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
10797
10948
  const build_views_1 = require("@bokehjs/core/build_views");
10798
10949
  const plots_1 = require("@bokehjs/models/plots");
10799
10950
  const glyphs_1 = require("@bokehjs/models/glyphs");
@@ -11012,7 +11163,7 @@
11012
11163
  const bokeh_events_1 = require("@bokehjs/core/bokeh_events");
11013
11164
  const types_1 = require("@bokehjs/core/util/types");
11014
11165
  const layout_dom_1 = require("@bokehjs/models/layouts/layout_dom");
11015
- const layout_1 = require("c64c1219c8") /* ./layout */;
11166
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
11016
11167
  const debounce_1 = require("99a25e6992") /* debounce */;
11017
11168
  class VegaEvent extends bokeh_events_1.ModelEvent {
11018
11169
  constructor(data) {
@@ -11195,7 +11346,7 @@
11195
11346
  "e6e8c94f32": /* models/video.js */ function _(require, module, exports, __esModule, __esExport) {
11196
11347
  __esModule();
11197
11348
  var _a;
11198
- const layout_1 = require("c64c1219c8") /* ./layout */;
11349
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
11199
11350
  class VideoView extends layout_1.HTMLBoxView {
11200
11351
  initialize() {
11201
11352
  super.initialize();
@@ -11335,7 +11486,7 @@
11335
11486
  "2dfabe6882": /* models/videostream.js */ function _(require, module, exports, __esModule, __esExport) {
11336
11487
  __esModule();
11337
11488
  var _a;
11338
- const layout_1 = require("c64c1219c8") /* ./layout */;
11489
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
11339
11490
  class VideoStreamView extends layout_1.HTMLBoxView {
11340
11491
  constructor() {
11341
11492
  super(...arguments);
@@ -11452,7 +11603,7 @@
11452
11603
  const column_data_source_1 = require("@bokehjs/models/sources/column_data_source");
11453
11604
  const bokeh_events_1 = require("@bokehjs/core/bokeh_events");
11454
11605
  const debounce_1 = require("99a25e6992") /* debounce */;
11455
- const layout_1 = require("c64c1219c8") /* ./layout */;
11606
+ const layout_1 = require("cac5f3ed28") /* ./layout */;
11456
11607
  class VizzuEvent extends bokeh_events_1.ModelEvent {
11457
11608
  constructor(data) {
11458
11609
  super();
@@ -11698,7 +11849,7 @@
11698
11849
  const object_1 = require("@bokehjs/core/util/object");
11699
11850
  const color_mapper_1 = require("@bokehjs/models/mappers/color_mapper");
11700
11851
  const kinds_1 = require("@bokehjs/core/kinds");
11701
- const layout_1 = require("c64c1219c8") /* ../layout */;
11852
+ const layout_1 = require("cac5f3ed28") /* ../layout */;
11702
11853
  const util_1 = require("a76a9b7c23") /* ./util */;
11703
11854
  const vtkcolorbar_1 = require("c010237f8b") /* ./vtkcolorbar */;
11704
11855
  const vtkaxes_1 = require("5a606f3f35") /* ./vtkaxes */;
@@ -19784,5 +19935,5 @@
19784
19935
  }
19785
19936
  exports.initialize_fullscreen_render = initialize_fullscreen_render;
19786
19937
  },
19787
- }, "4e90918c0a", {"index":"4e90918c0a","models/index":"25913cabc4","models/ace":"464e3dc85c","models/layout":"c64c1219c8","models/audio":"cfb5b1a85b","models/browser":"af84f1061d","models/button":"0e384ee9c4","models/card":"eec4af24bc","models/column":"991bd33955","models/checkbox_button_group":"820473477c","models/comm_manager":"eca6f2cacb","models/customselect":"e258e515be","models/tabulator":"02603bce3a","models/data":"4e27eda472","models/datetime_picker":"5fd6501095","models/deckgl":"19b5a68a40","models/tooltips":"9588ab7c9e","models/echarts":"7bc4e47bd5","models/event-to-object":"490942d778","models/file_download":"e6943b23b3","models/html":"3db2e41978","models/ipywidget":"4dfd782539","models/json":"e954d48822","models/jsoneditor":"3c56a75fcf","models/katex":"001dfd2dde","models/location":"a85ed38ee9","models/mathjax":"ca760ebc92","models/pdf":"46cccf2270","models/perspective":"5f38562b04","models/player":"bd5015f776","models/plotly":"b6febc7d6f","models/util":"990b5dd5c7","models/progress":"e6caa5bc95","models/quill":"283ee868b0","models/radio_button_group":"81e6ca704a","models/reactive_html":"0590cf2a27","models/singleselect":"665213fba5","models/speech_to_text":"7651136c44","models/state":"1bb5a1aca6","models/tabs":"8013e805da","models/terminal":"4a0674b147","models/textarea_input":"59f46adc8c","models/text_to_speech":"a44f0bd49f","models/tooltip_icon":"4c6dd3d1dc","models/trend":"c2c4524e04","models/vega":"b396729d22","models/video":"e6e8c94f32","models/videostream":"2dfabe6882","models/vizzu":"dfe3c4a2a9","models/vtk/index":"c51f25e2a7","models/vtk/vtkjs":"173e6cb054","models/vtk/vtklayout":"1de1ccb7ff","models/vtk/util":"a76a9b7c23","models/vtk/vtkcolorbar":"c010237f8b","models/vtk/vtkaxes":"5a606f3f35","models/vtk/vtkvolume":"9cb70c6ab6","models/vtk/vtksynchronized":"66775d6392","models/vtk/panel_fullscreen_renwin_sync":"877619fe71"}, {});});
19938
+ }, "4e90918c0a", {"index":"4e90918c0a","models/index":"e678554eae","models/ace":"464e3dc85c","models/layout":"cac5f3ed28","models/audio":"cfb5b1a85b","models/browser":"af84f1061d","models/button":"0e384ee9c4","models/card":"eec4af24bc","models/column":"991bd33955","models/checkbox_button_group":"820473477c","models/comm_manager":"eca6f2cacb","models/customselect":"e258e515be","models/tabulator":"02603bce3a","models/data":"4e27eda472","models/datetime_picker":"5fd6501095","models/deckgl":"19b5a68a40","models/tooltips":"9588ab7c9e","models/echarts":"7bc4e47bd5","models/event-to-object":"490942d778","models/file_download":"e6943b23b3","models/html":"3db2e41978","models/ipywidget":"4dfd782539","models/json":"e954d48822","models/jsoneditor":"3c56a75fcf","models/katex":"001dfd2dde","models/location":"a85ed38ee9","models/mathjax":"ca760ebc92","models/pdf":"46cccf2270","models/perspective":"5f38562b04","models/player":"9148c6a6f9","models/plotly":"b6febc7d6f","models/util":"990b5dd5c7","models/progress":"e6caa5bc95","models/quill":"283ee868b0","models/radio_button_group":"81e6ca704a","models/reactive_html":"0590cf2a27","models/singleselect":"665213fba5","models/speech_to_text":"7651136c44","models/state":"1bb5a1aca6","models/tabs":"8013e805da","models/terminal":"4a0674b147","models/textarea_input":"59f46adc8c","models/text_to_speech":"a44f0bd49f","models/icon":"e606e4556b","models/tooltip_icon":"4c6dd3d1dc","models/trend":"c2c4524e04","models/vega":"b396729d22","models/video":"e6e8c94f32","models/videostream":"2dfabe6882","models/vizzu":"dfe3c4a2a9","models/vtk/index":"c51f25e2a7","models/vtk/vtkjs":"173e6cb054","models/vtk/vtklayout":"1de1ccb7ff","models/vtk/util":"a76a9b7c23","models/vtk/vtkcolorbar":"c010237f8b","models/vtk/vtkaxes":"5a606f3f35","models/vtk/vtkvolume":"9cb70c6ab6","models/vtk/vtksynchronized":"66775d6392","models/vtk/panel_fullscreen_renwin_sync":"877619fe71"}, {});});
19788
19939
  //# sourceMappingURL=panel.js.map