@holoviz/panel 1.3.6 → 1.4.0-a.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundled/datatabulator/tabulator-tables@5.5.0/dist/css/tabulator_fast.min.css +6 -0
- package/dist/bundled/editabletemplate/editable.css +101 -0
- package/dist/bundled/interactjs@1.10.19/dist/interact.min.js +3 -0
- package/dist/bundled/interactjs@1.10.19/dist/interact.min.js.map +1 -0
- package/dist/bundled/muuri@0.9.5/dist/muuri.min.js +21 -0
- package/dist/bundled/notificationarea/panel/1.4.0-a.1/dist/bundled/font-awesome/css/all.min.css +2 -0
- package/dist/bundled/panel/1.4.0-a.1/dist/bundled/bootstrap5/css/bootstrap.min.css +2 -0
- package/dist/bundled/panel/1.4.0-a.1/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js +2 -0
- package/dist/bundled/panel/1.4.0-a.1/dist/bundled/font-awesome/css/all.min.css +2 -0
- package/dist/bundled/panel/1.4.0-a.1/dist/bundled/jquery/jquery.slim.min.js +2 -0
- package/dist/bundled/plotlyplot/panel/1.4.0-a.1/dist/bundled/jquery/jquery.slim.min.js +2 -0
- package/dist/bundled/vanillatemplate/vanilla.css +1 -1
- package/dist/bundled/web-animations-js@2.3.2/web-animations.min.js +16 -0
- package/dist/bundled/web-animations-js@2.3.2/web-animations.min.js.map +1 -0
- package/dist/css/button.css +1 -1
- package/dist/css/chat_message.css +30 -2
- package/dist/css/loading.css +47 -11
- package/dist/css/widgetbox.css +0 -2
- package/dist/lib/models/button_icon.d.ts +23 -0
- package/dist/lib/models/button_icon.js +39 -0
- package/dist/lib/models/button_icon.js.map +1 -0
- package/dist/lib/models/card.js +1 -2
- package/dist/lib/models/card.js.map +1 -1
- package/dist/lib/models/file_download.js +1 -2
- package/dist/lib/models/file_download.js.map +1 -1
- package/dist/lib/models/icon.d.ts +23 -11
- package/dist/lib/models/icon.js +79 -21
- package/dist/lib/models/icon.js.map +1 -1
- package/dist/lib/models/index.d.ts +3 -1
- package/dist/lib/models/index.js +3 -1
- package/dist/lib/models/index.js.map +1 -1
- package/dist/lib/models/perspective.js +7 -2
- package/dist/lib/models/perspective.js.map +1 -1
- package/dist/lib/models/plotly.js +2 -7
- package/dist/lib/models/plotly.js.map +1 -1
- package/dist/lib/models/toggle_icon.d.ts +19 -0
- package/dist/lib/models/toggle_icon.js +26 -0
- package/dist/lib/models/toggle_icon.js.map +1 -0
- package/dist/lib/models/util.d.ts +1 -0
- package/dist/lib/models/util.js +20 -0
- package/dist/lib/models/util.js.map +1 -1
- package/dist/lib/styles/button.css.js +1 -1
- package/dist/lib/styles/chat_message.css.js +2 -2
- package/dist/lib/styles/loading.css.js +1 -1
- package/dist/lib/styles/widgetbox.css.js +1 -1
- package/dist/panel.js +246 -91
- package/dist/panel.js.map +1 -1
- package/dist/panel.json +1 -1
- package/dist/panel.min.js +12 -10
- package/package.json +2 -2
- package/dist/bundled/notificationarea/panel/1.3.6/dist/bundled/font-awesome/css/all.min.css +0 -2
- package/dist/bundled/panel/1.3.6/dist/bundled/bootstrap5/css/bootstrap.min.css +0 -2
- package/dist/bundled/panel/1.3.6/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js +0 -2
- package/dist/bundled/panel/1.3.6/dist/bundled/font-awesome/css/all.min.css +0 -2
- package/dist/bundled/panel/1.3.6/dist/bundled/jquery/jquery.slim.min.js +0 -2
- package/dist/bundled/plotlyplot/panel/1.3.6/dist/bundled/jquery/jquery.slim.min.js +0 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var _a;
|
|
2
|
+
import { ClickableIcon, ClickableIconView } from "./icon";
|
|
3
|
+
export class ToggleIconView extends ClickableIconView {
|
|
4
|
+
*controls() { }
|
|
5
|
+
click() {
|
|
6
|
+
if (this.model.disabled) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
super.click();
|
|
10
|
+
this.model.value = !this.model.value;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
ToggleIconView.__name__ = "ToggleIconView";
|
|
14
|
+
export class ToggleIcon extends ClickableIcon {
|
|
15
|
+
constructor(attrs) {
|
|
16
|
+
super(attrs);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
_a = ToggleIcon;
|
|
20
|
+
ToggleIcon.__name__ = "ToggleIcon";
|
|
21
|
+
ToggleIcon.__module__ = "panel.models.icon";
|
|
22
|
+
(() => {
|
|
23
|
+
_a.prototype.default_view = ToggleIconView;
|
|
24
|
+
_a.define(({}) => ({}));
|
|
25
|
+
})();
|
|
26
|
+
//# sourceMappingURL=toggle_icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle_icon.js","sourceRoot":"","sources":["../../../models/toggle_icon.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAI1D,MAAM,OAAO,cAAe,SAAQ,iBAAiB;IAG5C,CAAC,QAAQ,KAAK,CAAC;IAEtB,KAAK;QACH,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;YACvB,OAAO;SACR;QACD,KAAK,CAAC,KAAK,EAAE,CAAC;QACd,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;IACvC,CAAC;;;AAUH,MAAM,OAAO,UAAW,SAAQ,aAAa;IAK3C,YAAY,KAAiC;QAC3C,KAAK,CAAC,KAAK,CAAC,CAAC;IACf,CAAC;;;;AAJM,qBAAU,GAAG,mBAAmB,AAAtB,CAAuB;AAMxC;IACE,GAAK,SAAS,CAAC,YAAY,GAAG,cAAc,CAAC;IAE7C,GAAK,MAAM,CAAmB,CAAC,EAAG,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC/C,CAAC,GAAA,CAAA"}
|
|
@@ -2,3 +2,4 @@ export declare const get: (obj: any, path: string, defaultValue?: any) => any;
|
|
|
2
2
|
export declare function throttle(func: any, timeFrame: number): () => void;
|
|
3
3
|
export declare function deepCopy(obj: any): any;
|
|
4
4
|
export declare function isPlainObject(obj: any): boolean;
|
|
5
|
+
export declare function reshape(arr: any[], dim: number[]): any[];
|
package/dist/lib/models/util.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { concat } from "@bokehjs/core/util/array";
|
|
1
2
|
export const get = (obj, path, defaultValue = undefined) => {
|
|
2
3
|
const travel = (regexp) => String.prototype.split
|
|
3
4
|
.call(path, regexp)
|
|
@@ -44,4 +45,23 @@ export function deepCopy(obj) {
|
|
|
44
45
|
export function isPlainObject(obj) {
|
|
45
46
|
return Object.prototype.toString.call(obj) === '[object Object]';
|
|
46
47
|
}
|
|
48
|
+
export function reshape(arr, dim) {
|
|
49
|
+
let elemIndex = 0;
|
|
50
|
+
if (!dim || !arr)
|
|
51
|
+
return [];
|
|
52
|
+
function _nest(dimIndex) {
|
|
53
|
+
let result = [];
|
|
54
|
+
if (dimIndex === dim.length - 1) {
|
|
55
|
+
result = concat(arr.slice(elemIndex, elemIndex + dim[dimIndex]));
|
|
56
|
+
elemIndex += dim[dimIndex];
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
for (let i = 0; i < dim[dimIndex]; i++) {
|
|
60
|
+
result.push(_nest(dimIndex + 1));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return result;
|
|
64
|
+
}
|
|
65
|
+
return _nest(0);
|
|
66
|
+
}
|
|
47
67
|
//# sourceMappingURL=util.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../models/util.ts"],"names":[],"mappings":"AAAA,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,IA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O,IAAI,CAAC;KACb;IAED,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,aAAa,CAAE,GAAQ;IACnC,OAAO,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,iBAAiB,CAAC;AACrE,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,GAAU,EAAE,GAAa;IAC/C,IAAI,SAAS,GAAG,CAAC,CAAC;IAElB,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC;IAE5B,SAAS,KAAK,CAAC,QAAgB;QAC7B,IAAI,MAAM,GAAG,EAAE,CAAC;QAEhB,IAAI,QAAQ,KAAK,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE;YAC/B,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,EAAE,SAAS,GAAG,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YACjE,SAAS,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC;SAC5B;aAAM;YACL,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE;gBACtC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC;aAClC;SACF;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC"}
|
|
@@ -17,4 +17,4 @@ export default `:host{--primary-color:var(--design-primary-color, var(--panel-pr
|
|
|
17
17
|
);--surface-color:var(--design-surface-color, var(--panel-surface-color));--surface-text-color:var(
|
|
18
18
|
--design-surface-text-color,
|
|
19
19
|
var(--panel-on-surface-color)
|
|
20
|
-
);}.bk-btn-group > .bk-btn{line-height:var(--line-height);}.bk-btn:active{transform:scale(0.98);}:host(.outline) .bk-btn{background-color:transparent;}:host(.solid) .bk-btn{border:1.2px solid rgba(0, 0, 0, 0);}:host(.solid) .bk-btn.bk-btn-default{background-color:var(--surface-color);color:var(--surface-text-color);}:host(.outline) .bk-btn.bk-btn-default{border:1px solid var(--surface-color);color:var(--background-text-color);}:host(.solid) .bk-btn-group .bk-btn.bk-btn-default.bk-active{box-shadow:inset 0px 3px 5px rgb(0 0 0 / 50%);}:host(.outline) .bk-btn.bk-btn-default.bk-active{box-shadow:inset 0px 3px 5px rgb(0 0 0 / 50%);color:var(--background-text-color);}:host(.outline) .bk-btn-group .bk-btn-default.bk-active{background-color:var(--surface-color);color:var(--surface-text-color);}:host(.solid) .bk-btn.bk-btn-primary{background-color:var(--primary-color);}:host(.solid) .bk-btn.bk-btn-primary.bk-active{background-color:var(--primary-color);box-shadow:inset 0px 3px 5px rgb(0 0 0 / 25%);}:host(.outline) .bk-btn-primary{background-color:transparent;color:var(--background-text-color);}:host(.outline) .bk-btn-primary.bk-active,:host(.outline) .bk-btn-primary:hover{color:var(--background-text-color);}:host(.outline) .bk-btn-group .bk-btn-primary.bk-active{background-color:var(--primary-color);color:var(--button-primary-text-color);}:host(.outline) .bk-btn-success{color:var(--success-bg-color);}:host(.outline) .bk-btn-success.bk-active,:host(.outline) .bk-btn-success:hover{color:var(--background-text-color);}:host(.outline) .bk-btn-group .bk-btn-success.bk-active{background-color:var(--success-bg-color);color:var(--background-text-color);}:host(.outline) .bk-btn-warning{color:var(--warning-bg-color);}:host(.outline) .bk-btn-warning.bk-active,:host(.outline) .bk-btn-warning:hover{color:var(--background-text-color);}:host(.outline) .bk-btn-group .bk-btn-warning.bk-active{background-color:var(--warning-bg-color);color:var(--background-text-color);}:host(.outline) .bk-btn-danger{color:var(--danger-bg-color);}:host(.outline) .bk-btn-danger.bk-active,:host(.outline) .bk-btn-danger:hover{color:var(--background-text-color);}:host(.outline) .bk-btn-group .bk-btn-danger.bk-active{background-color:var(--danger-bg-color);color:var(--background-text-color);}:host(.outline) .bk-btn-light{border-color:var(--light-bg-color);color:var(--background-text-color);}:host(.outline) .bk-btn-light.bk-active,:host(.outline) .bk-btn-light:hover{background-color:var(--light-bg-color);color:black;}:host(.outline) .bk-btn-group .bk-btn-light.bk-active{background-color:var(--light-bg-color);color:black;}.bk-btn a{align-items:center;display:
|
|
20
|
+
);}.bk-btn-group > .bk-btn{line-height:var(--line-height);}.bk-btn:active{transform:scale(0.98);}:host(.outline) .bk-btn{background-color:transparent;}:host(.solid) .bk-btn{border:1.2px solid rgba(0, 0, 0, 0);}:host(.solid) .bk-btn.bk-btn-default{background-color:var(--surface-color);color:var(--surface-text-color);}:host(.outline) .bk-btn.bk-btn-default{border:1px solid var(--surface-color);color:var(--background-text-color);}:host(.solid) .bk-btn-group .bk-btn.bk-btn-default.bk-active{box-shadow:inset 0px 3px 5px rgb(0 0 0 / 50%);}:host(.outline) .bk-btn.bk-btn-default.bk-active{box-shadow:inset 0px 3px 5px rgb(0 0 0 / 50%);color:var(--background-text-color);}:host(.outline) .bk-btn-group .bk-btn-default.bk-active{background-color:var(--surface-color);color:var(--surface-text-color);}:host(.solid) .bk-btn.bk-btn-primary{background-color:var(--primary-color);}:host(.solid) .bk-btn.bk-btn-primary.bk-active{background-color:var(--primary-color);box-shadow:inset 0px 3px 5px rgb(0 0 0 / 25%);}:host(.outline) .bk-btn-primary{background-color:transparent;color:var(--background-text-color);}:host(.outline) .bk-btn-primary.bk-active,:host(.outline) .bk-btn-primary:hover{color:var(--background-text-color);}:host(.outline) .bk-btn-group .bk-btn-primary.bk-active{background-color:var(--primary-color);color:var(--button-primary-text-color);}:host(.outline) .bk-btn-success{color:var(--success-bg-color);}:host(.outline) .bk-btn-success.bk-active,:host(.outline) .bk-btn-success:hover{color:var(--background-text-color);}:host(.outline) .bk-btn-group .bk-btn-success.bk-active{background-color:var(--success-bg-color);color:var(--background-text-color);}:host(.outline) .bk-btn-warning{color:var(--warning-bg-color);}:host(.outline) .bk-btn-warning.bk-active,:host(.outline) .bk-btn-warning:hover{color:var(--background-text-color);}:host(.outline) .bk-btn-group .bk-btn-warning.bk-active{background-color:var(--warning-bg-color);color:var(--background-text-color);}:host(.outline) .bk-btn-danger{color:var(--danger-bg-color);}:host(.outline) .bk-btn-danger.bk-active,:host(.outline) .bk-btn-danger:hover{color:var(--background-text-color);}:host(.outline) .bk-btn-group .bk-btn-danger.bk-active{background-color:var(--danger-bg-color);color:var(--background-text-color);}:host(.outline) .bk-btn-light{border-color:var(--light-bg-color);color:var(--background-text-color);}:host(.outline) .bk-btn-light.bk-active,:host(.outline) .bk-btn-light:hover{background-color:var(--light-bg-color);color:black;}:host(.outline) .bk-btn-group .bk-btn-light.bk-active{background-color:var(--light-bg-color);color:black;}.bk-btn a{align-items:center;display:inline;height:100%;justify-content:center;padding:6px;width:100%;}:host(.bk-panel-models-widgets-FileDownload) .bk-btn{padding:0px;}`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default `@keyframes icon-rotation{from{transform:rotate(0deg);}to{transform:rotate(359deg);}}:host{max-height:none;}.chat-message{display:flex;flex-direction:row;}.avatar{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:calc(1em + 5px);min-width:50px;width:50px;min-height:50px;height:50px;font-size:25px;text-align:center;border-radius:25px;background-color:var(--panel-surface-color, #f1f1f1);box-shadow:color-mix(in srgb, var(--panel-shadow-color) 30%, transparent) 0px 1px 2px
|
|
2
2
|
0px,
|
|
3
3
|
color-mix(in srgb, var(--panel-shadow-color) 15%, transparent) 0px 1px 3px
|
|
4
|
-
1px;}.right{display:flex;flex-direction:column;margin-left:5px;max-width:calc(100% - 80px);}.name{font-size:1em;margin-bottom:0px;margin-top:5px;}.center{width:calc(100% - 15px);margin-right:10px;padding:0px;}.message{border-radius:5px;box-shadow:color-mix(in srgb, var(--panel-shadow-color) 30%, transparent) 0px 1px 2px
|
|
4
|
+
1px;}.right{display:flex;flex-direction:column;margin-left:5px;max-width:calc(100% - 80px);}.header{width:fit-content;}.name{font-size:1em;margin-bottom:0px;margin-top:5px;}.center{width:calc(100% - 15px);margin-right:10px;padding:0px;}.message{border-radius:5px;box-shadow:color-mix(in srgb, var(--panel-shadow-color) 30%, transparent) 0px 1px 2px
|
|
5
5
|
0px,
|
|
6
6
|
color-mix(in srgb, var(--panel-shadow-color) 15%, transparent) 0px 1px 3px
|
|
7
|
-
1px;font-size:1.25em;min-
|
|
7
|
+
1px;font-size:1.25em;min-height:50px;margin-block:0px;margin-left:10px;margin-right:5px;background-color:var(--panel-surface-color, #f1f1f1);min-width:0;max-width:calc(100% - 40px);padding:5px;width:fit-content;display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere;}.footer{display:flex;flex-direction:row;align-items:center;justify-content:space-between;}.timestamp{color:#a9a9a9;display:flex;margin-top:3px;}.markdown{padding-block:0px;padding-inline:15px;}.avatar.rotating-placeholder{animation:icon-rotation 1.28s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);}.reaction-icons{display:flex;flex-direction:column;align-items:start;width:fit-content;margin-block:0px;margin-inline:2px;}@keyframes fadeOut{0%{opacity:1;}50%{opacity:1;}100%{opacity:0;}}.activity-dot{display:inline-block;animation:fadeOut 2s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);color:#32cd32;font-size:1.25em;margin-block:0px;}`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default `:host(.pn-loading),.pn-loading{overflow:hidden;}:host(.pn-loading):before,.pn-loading:before{position:
|
|
1
|
+
export default `:host(.pn-loading),.pn-loading{overflow:hidden;}:host(.pn-loading) > *,.pn-loading > *{filter:blur(1px) opacity(0.5);}:host(.pn-loading):before,.pn-loading:before{-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;content:'';cursor:progress;height:100%;width:100%;position:absolute;z-index:1000;}:host(.pn-loading):after,.pn-loading:after{content:'';cursor:progress;height:100%;width:100%;position:absolute;z-index:1000;}:host(.pn-loading) .pn-loading-msg,.pn-loading .pn-loading-msg{color:var(--panel-on-background-color, black);font-size:2em;position:absolute;top:72%;text-align:center;width:100%;}:host(.pn-loading.pn-arc):before,.pn-loading.pn-arc:before{-webkit-mask-image:url('../assets/arc_spinner.svg');}:host(.pn-loading.pn-arcs):before,.pn-loading.pn-arcs:before{-webkit-mask-image:url('../assets/arcs_spinner.svg');}:host(.pn-loading.pn-petal):before,.pn-loading.pn-petal:before{-webkit-mask-image:url('../assets/petal_spinner.svg');}:host(.pn-loading.pn-bar):before,.pn-loading.pn-bar:before{-webkit-mask-image:url('../assets/bar_spinner.svg');}:host(.pn-loading.pn-dots):before,.pn-loading.pn-dots:before{-webkit-mask-image:url('../assets/dots_spinner.svg');}`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default `:host(.panel-widget-box){min-height:20px;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);
|
|
1
|
+
export default `:host(.panel-widget-box){min-height:20px;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);}`
|
package/dist/panel.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright (c) 2012 -
|
|
2
|
+
* Copyright (c) 2012 - 2024, Anaconda, Inc., and Bokeh Contributors
|
|
3
3
|
* All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Redistribution and use in source and binary forms, with or without modification,
|
|
@@ -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("
|
|
47
|
+
const Panel = tslib_1.__importStar(require("295b71127d") /* ./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
|
+
"295b71127d": /* 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 */;
|
|
@@ -60,7 +60,11 @@
|
|
|
60
60
|
__esExport("BrowserInfo", browser_1.BrowserInfo);
|
|
61
61
|
var button_1 = require("0e384ee9c4") /* ./button */;
|
|
62
62
|
__esExport("Button", button_1.Button);
|
|
63
|
-
var
|
|
63
|
+
var button_icon_1 = require("b14411c3ba") /* ./button_icon */;
|
|
64
|
+
__esExport("ButtonIcon", button_icon_1.ButtonIcon);
|
|
65
|
+
var icon_1 = require("b99949f5bc") /* ./icon */;
|
|
66
|
+
__esExport("ClickableIcon", icon_1.ClickableIcon);
|
|
67
|
+
var card_1 = require("5356bf07b1") /* ./card */;
|
|
64
68
|
__esExport("Card", card_1.Card);
|
|
65
69
|
var checkbox_button_group_1 = require("820473477c") /* ./checkbox_button_group */;
|
|
66
70
|
__esExport("CheckboxButtonGroup", checkbox_button_group_1.CheckboxButtonGroup);
|
|
@@ -78,7 +82,7 @@
|
|
|
78
82
|
__esExport("DeckGLPlot", deckgl_1.DeckGLPlot);
|
|
79
83
|
var echarts_1 = require("7bc4e47bd5") /* ./echarts */;
|
|
80
84
|
__esExport("ECharts", echarts_1.ECharts);
|
|
81
|
-
var file_download_1 = require("
|
|
85
|
+
var file_download_1 = require("ab30c7afd7") /* ./file_download */;
|
|
82
86
|
__esExport("FileDownload", file_download_1.FileDownload);
|
|
83
87
|
var html_1 = require("3db2e41978") /* ./html */;
|
|
84
88
|
__esExport("HTML", html_1.HTML);
|
|
@@ -96,11 +100,11 @@
|
|
|
96
100
|
__esExport("MathJax", mathjax_1.MathJax);
|
|
97
101
|
var pdf_1 = require("46cccf2270") /* ./pdf */;
|
|
98
102
|
__esExport("PDF", pdf_1.PDF);
|
|
99
|
-
var perspective_1 = require("
|
|
103
|
+
var perspective_1 = require("8349fbd43e") /* ./perspective */;
|
|
100
104
|
__esExport("Perspective", perspective_1.Perspective);
|
|
101
105
|
var player_1 = require("9148c6a6f9") /* ./player */;
|
|
102
106
|
__esExport("Player", player_1.Player);
|
|
103
|
-
var plotly_1 = require("
|
|
107
|
+
var plotly_1 = require("dd1700da9e") /* ./plotly */;
|
|
104
108
|
__esExport("PlotlyPlot", plotly_1.PlotlyPlot);
|
|
105
109
|
var progress_1 = require("e6caa5bc95") /* ./progress */;
|
|
106
110
|
__esExport("Progress", progress_1.Progress);
|
|
@@ -124,8 +128,8 @@
|
|
|
124
128
|
__esExport("TextAreaInput", textarea_input_1.TextAreaInput);
|
|
125
129
|
var text_to_speech_1 = require("a44f0bd49f") /* ./text_to_speech */;
|
|
126
130
|
__esExport("TextToSpeech", text_to_speech_1.TextToSpeech);
|
|
127
|
-
var
|
|
128
|
-
__esExport("ToggleIcon",
|
|
131
|
+
var toggle_icon_1 = require("75983d65b8") /* ./toggle_icon */;
|
|
132
|
+
__esExport("ToggleIcon", toggle_icon_1.ToggleIcon);
|
|
129
133
|
var tooltip_icon_1 = require("74000df4a0") /* ./tooltip_icon */;
|
|
130
134
|
__esExport("TooltipIcon", tooltip_icon_1.TooltipIcon);
|
|
131
135
|
var trend_1 = require("c2c4524e04") /* ./trend */;
|
|
@@ -657,7 +661,195 @@
|
|
|
657
661
|
}));
|
|
658
662
|
})();
|
|
659
663
|
},
|
|
660
|
-
"
|
|
664
|
+
"b14411c3ba": /* models/button_icon.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
665
|
+
__esModule();
|
|
666
|
+
var _a;
|
|
667
|
+
const icon_1 = require("b99949f5bc") /* ./icon */;
|
|
668
|
+
class ButtonIconView extends icon_1.ClickableIconView {
|
|
669
|
+
*controls() { }
|
|
670
|
+
update_cursor() {
|
|
671
|
+
this.icon_view.el.style.cursor = this.model.disabled ? 'default' : 'pointer';
|
|
672
|
+
}
|
|
673
|
+
click() {
|
|
674
|
+
if (this.model.disabled) {
|
|
675
|
+
return;
|
|
676
|
+
}
|
|
677
|
+
super.click();
|
|
678
|
+
const updateState = (value, disabled) => {
|
|
679
|
+
this.model.value = value;
|
|
680
|
+
this.model.disabled = disabled;
|
|
681
|
+
};
|
|
682
|
+
updateState(true, true);
|
|
683
|
+
new Promise(resolve => setTimeout(resolve, this.model.toggle_duration))
|
|
684
|
+
.then(() => {
|
|
685
|
+
updateState(false, false);
|
|
686
|
+
});
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
exports.ButtonIconView = ButtonIconView;
|
|
690
|
+
ButtonIconView.__name__ = "ButtonIconView";
|
|
691
|
+
class ButtonIcon extends icon_1.ClickableIcon {
|
|
692
|
+
constructor(attrs) {
|
|
693
|
+
super(attrs);
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
exports.ButtonIcon = ButtonIcon;
|
|
697
|
+
_a = ButtonIcon;
|
|
698
|
+
ButtonIcon.__name__ = "ButtonIcon";
|
|
699
|
+
ButtonIcon.__module__ = "panel.models.icon";
|
|
700
|
+
(() => {
|
|
701
|
+
_a.prototype.default_view = ButtonIconView;
|
|
702
|
+
_a.define(({ Int }) => ({
|
|
703
|
+
toggle_duration: [Int, 75],
|
|
704
|
+
}));
|
|
705
|
+
})();
|
|
706
|
+
},
|
|
707
|
+
"b99949f5bc": /* models/icon.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
708
|
+
__esModule();
|
|
709
|
+
var _a;
|
|
710
|
+
const tooltip_1 = require("@bokehjs/models/ui/tooltip");
|
|
711
|
+
const tabler_icon_1 = require("@bokehjs/models/ui/icons/tabler_icon");
|
|
712
|
+
const svg_icon_1 = require("@bokehjs/models/ui/icons/svg_icon");
|
|
713
|
+
const control_1 = require("@bokehjs/models/widgets/control");
|
|
714
|
+
const build_views_1 = require("@bokehjs/core/build_views");
|
|
715
|
+
const bokeh_events_1 = require("@bokehjs/core/bokeh_events");
|
|
716
|
+
class ClickableIconView extends control_1.ControlView {
|
|
717
|
+
*controls() { }
|
|
718
|
+
remove() {
|
|
719
|
+
var _b, _c;
|
|
720
|
+
(_b = this.tooltip) === null || _b === void 0 ? void 0 : _b.remove();
|
|
721
|
+
(_c = this.icon_view) === null || _c === void 0 ? void 0 : _c.remove();
|
|
722
|
+
super.remove();
|
|
723
|
+
}
|
|
724
|
+
async lazy_initialize() {
|
|
725
|
+
await super.lazy_initialize();
|
|
726
|
+
this.was_svg_icon = this.is_svg_icon(this.model.icon);
|
|
727
|
+
this.icon_view = await this.build_icon_model(this.model.icon, this.was_svg_icon);
|
|
728
|
+
const { tooltip } = this.model;
|
|
729
|
+
if (tooltip != null)
|
|
730
|
+
this.tooltip = await (0, build_views_1.build_view)(tooltip, { parent: this });
|
|
731
|
+
}
|
|
732
|
+
*children() {
|
|
733
|
+
yield* super.children();
|
|
734
|
+
yield this.icon_view;
|
|
735
|
+
if (this.tooltip != null)
|
|
736
|
+
yield this.tooltip;
|
|
737
|
+
}
|
|
738
|
+
is_svg_icon(icon) {
|
|
739
|
+
return icon.trim().startsWith('<svg');
|
|
740
|
+
}
|
|
741
|
+
connect_signals() {
|
|
742
|
+
super.connect_signals();
|
|
743
|
+
const { icon, active_icon, disabled, value, size } = this.model.properties;
|
|
744
|
+
this.on_change([active_icon, icon, value], () => this.update_icon());
|
|
745
|
+
this.on_change(disabled, () => this.update_cursor());
|
|
746
|
+
this.on_change(size, () => this.update_size());
|
|
747
|
+
}
|
|
748
|
+
render() {
|
|
749
|
+
super.render();
|
|
750
|
+
this.icon_view.render();
|
|
751
|
+
this.update_icon();
|
|
752
|
+
this.update_cursor();
|
|
753
|
+
this.shadow_el.appendChild(this.icon_view.el);
|
|
754
|
+
const toggle_tooltip = (visible) => {
|
|
755
|
+
var _b;
|
|
756
|
+
(_b = this.tooltip) === null || _b === void 0 ? void 0 : _b.model.setv({
|
|
757
|
+
visible,
|
|
758
|
+
});
|
|
759
|
+
};
|
|
760
|
+
let timer;
|
|
761
|
+
this.el.addEventListener("mouseenter", () => {
|
|
762
|
+
timer = setTimeout(() => toggle_tooltip(true), this.model.tooltip_delay);
|
|
763
|
+
});
|
|
764
|
+
this.el.addEventListener("mouseleave", () => {
|
|
765
|
+
clearTimeout(timer);
|
|
766
|
+
toggle_tooltip(false);
|
|
767
|
+
});
|
|
768
|
+
}
|
|
769
|
+
update_cursor() {
|
|
770
|
+
this.icon_view.el.style.cursor = this.model.disabled ? 'not-allowed' : 'pointer';
|
|
771
|
+
}
|
|
772
|
+
update_size() {
|
|
773
|
+
this.icon_view.model.size = this.calculate_size();
|
|
774
|
+
}
|
|
775
|
+
async build_icon_model(icon, is_svg_icon) {
|
|
776
|
+
const size = this.calculate_size();
|
|
777
|
+
let icon_model;
|
|
778
|
+
if (is_svg_icon) {
|
|
779
|
+
icon_model = new svg_icon_1.SVGIcon({ svg: icon, size: size });
|
|
780
|
+
}
|
|
781
|
+
else {
|
|
782
|
+
icon_model = new tabler_icon_1.TablerIcon({ icon_name: icon, size: size });
|
|
783
|
+
}
|
|
784
|
+
const icon_view = await (0, build_views_1.build_view)(icon_model, { parent: this });
|
|
785
|
+
icon_view.el.addEventListener('click', () => this.click());
|
|
786
|
+
return icon_view;
|
|
787
|
+
}
|
|
788
|
+
async update_icon() {
|
|
789
|
+
const icon = this.model.value ? this.get_active_icon() : this.model.icon;
|
|
790
|
+
const is_svg_icon = this.is_svg_icon(icon);
|
|
791
|
+
if (this.was_svg_icon !== is_svg_icon) {
|
|
792
|
+
// If the icon type has changed, we need to rebuild the icon view
|
|
793
|
+
// and invalidate the old one.
|
|
794
|
+
const icon_view = await this.build_icon_model(icon, is_svg_icon);
|
|
795
|
+
icon_view.render();
|
|
796
|
+
this.icon_view.remove();
|
|
797
|
+
this.icon_view = icon_view;
|
|
798
|
+
this.was_svg_icon = is_svg_icon;
|
|
799
|
+
this.update_cursor();
|
|
800
|
+
this.shadow_el.appendChild(this.icon_view.el);
|
|
801
|
+
}
|
|
802
|
+
else if (is_svg_icon) {
|
|
803
|
+
this.icon_view.model.svg = icon;
|
|
804
|
+
}
|
|
805
|
+
else {
|
|
806
|
+
this.icon_view.model.icon_name = icon;
|
|
807
|
+
}
|
|
808
|
+
this.icon_view.el.style.lineHeight = '0';
|
|
809
|
+
}
|
|
810
|
+
get_active_icon() {
|
|
811
|
+
return this.model.active_icon !== '' ? this.model.active_icon : `${this.model.icon}-filled`;
|
|
812
|
+
}
|
|
813
|
+
calculate_size() {
|
|
814
|
+
var _b, _c;
|
|
815
|
+
if (this.model.size !== null)
|
|
816
|
+
return this.model.size;
|
|
817
|
+
const maxWidth = (_b = this.model.width) !== null && _b !== void 0 ? _b : 15;
|
|
818
|
+
const maxHeight = (_c = this.model.height) !== null && _c !== void 0 ? _c : 15;
|
|
819
|
+
const size = Math.max(maxWidth, maxHeight);
|
|
820
|
+
return `${size}px`;
|
|
821
|
+
}
|
|
822
|
+
click() {
|
|
823
|
+
this.model.trigger_event(new bokeh_events_1.ButtonClick());
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
exports.ClickableIconView = ClickableIconView;
|
|
827
|
+
ClickableIconView.__name__ = "ClickableIconView";
|
|
828
|
+
class ClickableIcon extends control_1.Control {
|
|
829
|
+
constructor(attrs) {
|
|
830
|
+
super(attrs);
|
|
831
|
+
}
|
|
832
|
+
on_click(callback) {
|
|
833
|
+
this.on_event(bokeh_events_1.ButtonClick, callback);
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
exports.ClickableIcon = ClickableIcon;
|
|
837
|
+
_a = ClickableIcon;
|
|
838
|
+
ClickableIcon.__name__ = "ClickableIcon";
|
|
839
|
+
ClickableIcon.__module__ = "panel.models.icon";
|
|
840
|
+
(() => {
|
|
841
|
+
_a.prototype.default_view = ClickableIconView;
|
|
842
|
+
_a.define(({ Nullable, Ref, Number, String, Boolean }) => ({
|
|
843
|
+
active_icon: [String, ""],
|
|
844
|
+
icon: [String, "heart"],
|
|
845
|
+
size: [Nullable(String), null],
|
|
846
|
+
value: [Boolean, false],
|
|
847
|
+
tooltip: [Nullable(Ref(tooltip_1.Tooltip)), null],
|
|
848
|
+
tooltip_delay: [Number, 500],
|
|
849
|
+
}));
|
|
850
|
+
})();
|
|
851
|
+
},
|
|
852
|
+
"5356bf07b1": /* models/card.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
661
853
|
__esModule();
|
|
662
854
|
const tslib_1 = require("tslib");
|
|
663
855
|
var _a;
|
|
@@ -670,8 +862,7 @@
|
|
|
670
862
|
}
|
|
671
863
|
connect_signals() {
|
|
672
864
|
super.connect_signals();
|
|
673
|
-
const { active_header_background,
|
|
674
|
-
this.on_change(children, () => this.render());
|
|
865
|
+
const { active_header_background, collapsed, header_background, header_color, hide_header } = this.model.properties;
|
|
675
866
|
this.on_change(collapsed, () => this._collapse());
|
|
676
867
|
this.on_change([header_color, hide_header], () => this.render());
|
|
677
868
|
this.on_change([active_header_background, collapsed, header_background], () => {
|
|
@@ -6820,7 +7011,7 @@
|
|
|
6820
7011
|
});
|
|
6821
7012
|
});
|
|
6822
7013
|
},
|
|
6823
|
-
"
|
|
7014
|
+
"ab30c7afd7": /* models/file_download.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
6824
7015
|
__esModule();
|
|
6825
7016
|
const tslib_1 = require("tslib");
|
|
6826
7017
|
var _a;
|
|
@@ -6894,8 +7085,7 @@
|
|
|
6894
7085
|
// 3. auto=True: The widget is a button, i.e right click to "Save as..." won't work
|
|
6895
7086
|
this.anchor_el = document.createElement('a');
|
|
6896
7087
|
this.button_el = (0, dom_1.button)({
|
|
6897
|
-
disabled: this.model.disabled
|
|
6898
|
-
type: "bk_btn, bk_btn_type",
|
|
7088
|
+
disabled: this.model.disabled
|
|
6899
7089
|
});
|
|
6900
7090
|
if (this.icon_view != null) {
|
|
6901
7091
|
const separator = this.model.label != "" ? (0, dom_1.nbsp)() : (0, dom_1.text)("");
|
|
@@ -7715,7 +7905,7 @@
|
|
|
7715
7905
|
}));
|
|
7716
7906
|
})();
|
|
7717
7907
|
},
|
|
7718
|
-
"
|
|
7908
|
+
"8349fbd43e": /* models/perspective.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
7719
7909
|
__esModule();
|
|
7720
7910
|
var _a, _b;
|
|
7721
7911
|
const bokeh_events_1 = require("@bokehjs/core/bokeh_events");
|
|
@@ -7930,8 +8120,13 @@
|
|
|
7930
8120
|
}
|
|
7931
8121
|
get data() {
|
|
7932
8122
|
const data = {};
|
|
7933
|
-
for (const column of this.model.source.columns())
|
|
7934
|
-
|
|
8123
|
+
for (const column of this.model.source.columns()) {
|
|
8124
|
+
let array = this.model.source.get_array(column);
|
|
8125
|
+
if (this.model.schema[column] == 'datetime' && array.includes(-9223372036854776)) {
|
|
8126
|
+
array = array.map((v) => v === -9223372036854776 ? null : v);
|
|
8127
|
+
}
|
|
8128
|
+
data[column] = array;
|
|
8129
|
+
}
|
|
7935
8130
|
return data;
|
|
7936
8131
|
}
|
|
7937
8132
|
setData() {
|
|
@@ -8373,7 +8568,7 @@
|
|
|
8373
8568
|
_a.override({ width: 400 });
|
|
8374
8569
|
})();
|
|
8375
8570
|
},
|
|
8376
|
-
"
|
|
8571
|
+
"dd1700da9e": /* models/plotly.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
8377
8572
|
__esModule();
|
|
8378
8573
|
var _a;
|
|
8379
8574
|
const dom_1 = require("@bokehjs/core/dom");
|
|
@@ -8381,7 +8576,7 @@
|
|
|
8381
8576
|
const eq_1 = require("@bokehjs/core/util/eq");
|
|
8382
8577
|
const column_data_source_1 = require("@bokehjs/models/sources/column_data_source");
|
|
8383
8578
|
const debounce_1 = require("99a25e6992") /* debounce */;
|
|
8384
|
-
const util_1 = require("
|
|
8579
|
+
const util_1 = require("9f4006d93a") /* ./util */;
|
|
8385
8580
|
const layout_1 = require("cac5f3ed28") /* ./layout */;
|
|
8386
8581
|
function convertUndefined(obj) {
|
|
8387
8582
|
Object
|
|
@@ -8638,12 +8833,7 @@
|
|
|
8638
8833
|
for (const column of cds.columns()) {
|
|
8639
8834
|
let array = cds.get_array(column)[0];
|
|
8640
8835
|
if (array.shape != null && array.shape.length > 1) {
|
|
8641
|
-
|
|
8642
|
-
const shape = array.shape;
|
|
8643
|
-
for (let s = 0; s < shape[0]; s++) {
|
|
8644
|
-
arrays.push(array.slice(s * shape[1], (s + 1) * shape[1]));
|
|
8645
|
-
}
|
|
8646
|
-
array = arrays;
|
|
8836
|
+
array = (0, util_1.reshape)(array, array.shape);
|
|
8647
8837
|
}
|
|
8648
8838
|
let prop_path = column.split(".");
|
|
8649
8839
|
let prop = prop_path[prop_path.length - 1];
|
|
@@ -8751,8 +8941,9 @@
|
|
|
8751
8941
|
}));
|
|
8752
8942
|
})();
|
|
8753
8943
|
},
|
|
8754
|
-
"
|
|
8944
|
+
"9f4006d93a": /* models/util.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
8755
8945
|
__esModule();
|
|
8946
|
+
const array_1 = require("@bokehjs/core/util/array");
|
|
8756
8947
|
const get = (obj, path, defaultValue = undefined) => {
|
|
8757
8948
|
const travel = (regexp) => String.prototype.split
|
|
8758
8949
|
.call(path, regexp)
|
|
@@ -8803,6 +8994,26 @@
|
|
|
8803
8994
|
return Object.prototype.toString.call(obj) === '[object Object]';
|
|
8804
8995
|
}
|
|
8805
8996
|
exports.isPlainObject = isPlainObject;
|
|
8997
|
+
function reshape(arr, dim) {
|
|
8998
|
+
let elemIndex = 0;
|
|
8999
|
+
if (!dim || !arr)
|
|
9000
|
+
return [];
|
|
9001
|
+
function _nest(dimIndex) {
|
|
9002
|
+
let result = [];
|
|
9003
|
+
if (dimIndex === dim.length - 1) {
|
|
9004
|
+
result = (0, array_1.concat)(arr.slice(elemIndex, elemIndex + dim[dimIndex]));
|
|
9005
|
+
elemIndex += dim[dimIndex];
|
|
9006
|
+
}
|
|
9007
|
+
else {
|
|
9008
|
+
for (let i = 0; i < dim[dimIndex]; i++) {
|
|
9009
|
+
result.push(_nest(dimIndex + 1));
|
|
9010
|
+
}
|
|
9011
|
+
}
|
|
9012
|
+
return result;
|
|
9013
|
+
}
|
|
9014
|
+
return _nest(0);
|
|
9015
|
+
}
|
|
9016
|
+
exports.reshape = reshape;
|
|
8806
9017
|
},
|
|
8807
9018
|
"e6caa5bc95": /* models/progress.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
8808
9019
|
__esModule();
|
|
@@ -10761,74 +10972,23 @@
|
|
|
10761
10972
|
}));
|
|
10762
10973
|
})();
|
|
10763
10974
|
},
|
|
10764
|
-
"
|
|
10975
|
+
"75983d65b8": /* models/toggle_icon.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
10765
10976
|
__esModule();
|
|
10766
10977
|
var _a;
|
|
10767
|
-
const
|
|
10768
|
-
|
|
10769
|
-
const build_views_1 = require("@bokehjs/core/build_views");
|
|
10770
|
-
class ToggleIconView extends control_1.ControlView {
|
|
10978
|
+
const icon_1 = require("b99949f5bc") /* ./icon */;
|
|
10979
|
+
class ToggleIconView extends icon_1.ClickableIconView {
|
|
10771
10980
|
*controls() { }
|
|
10772
|
-
|
|
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() {
|
|
10981
|
+
click() {
|
|
10789
10982
|
if (this.model.disabled) {
|
|
10790
10983
|
return;
|
|
10791
10984
|
}
|
|
10985
|
+
super.click();
|
|
10792
10986
|
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
|
-
this.icon_view.el.style.lineHeight = '0';
|
|
10815
|
-
}
|
|
10816
|
-
get_active_icon() {
|
|
10817
|
-
return this.model.active_icon !== '' ? this.model.active_icon : `${this.model.icon}-filled`;
|
|
10818
|
-
}
|
|
10819
|
-
calculate_size() {
|
|
10820
|
-
var _b, _c;
|
|
10821
|
-
if (this.model.size !== null)
|
|
10822
|
-
return this.model.size;
|
|
10823
|
-
const maxWidth = (_b = this.model.width) !== null && _b !== void 0 ? _b : 15;
|
|
10824
|
-
const maxHeight = (_c = this.model.height) !== null && _c !== void 0 ? _c : 15;
|
|
10825
|
-
const size = Math.max(maxWidth, maxHeight);
|
|
10826
|
-
return `${size}px`;
|
|
10827
10987
|
}
|
|
10828
10988
|
}
|
|
10829
10989
|
exports.ToggleIconView = ToggleIconView;
|
|
10830
10990
|
ToggleIconView.__name__ = "ToggleIconView";
|
|
10831
|
-
class ToggleIcon extends
|
|
10991
|
+
class ToggleIcon extends icon_1.ClickableIcon {
|
|
10832
10992
|
constructor(attrs) {
|
|
10833
10993
|
super(attrs);
|
|
10834
10994
|
}
|
|
@@ -10839,12 +10999,7 @@
|
|
|
10839
10999
|
ToggleIcon.__module__ = "panel.models.icon";
|
|
10840
11000
|
(() => {
|
|
10841
11001
|
_a.prototype.default_view = ToggleIconView;
|
|
10842
|
-
_a.define(({
|
|
10843
|
-
active_icon: [String, ""],
|
|
10844
|
-
icon: [String, "heart"],
|
|
10845
|
-
size: [Nullable(String), null],
|
|
10846
|
-
value: [Boolean, false],
|
|
10847
|
-
}));
|
|
11002
|
+
_a.define(({}) => ({}));
|
|
10848
11003
|
})();
|
|
10849
11004
|
},
|
|
10850
11005
|
"74000df4a0": /* models/tooltip_icon.js */ function _(require, module, exports, __esModule, __esExport) {
|
|
@@ -19932,5 +20087,5 @@
|
|
|
19932
20087
|
}
|
|
19933
20088
|
exports.initialize_fullscreen_render = initialize_fullscreen_render;
|
|
19934
20089
|
},
|
|
19935
|
-
}, "4e90918c0a", {"index":"4e90918c0a","models/index":"
|
|
20090
|
+
}, "4e90918c0a", {"index":"4e90918c0a","models/index":"295b71127d","models/ace":"464e3dc85c","models/layout":"cac5f3ed28","models/audio":"cfb5b1a85b","models/browser":"af84f1061d","models/button":"0e384ee9c4","models/button_icon":"b14411c3ba","models/icon":"b99949f5bc","models/card":"5356bf07b1","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":"ab30c7afd7","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":"8349fbd43e","models/player":"9148c6a6f9","models/plotly":"dd1700da9e","models/util":"9f4006d93a","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/toggle_icon":"75983d65b8","models/tooltip_icon":"74000df4a0","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"}, {});});
|
|
19936
20091
|
//# sourceMappingURL=panel.js.map
|