@pennsieve-viz/tsviewer 1.1.12 → 1.1.13
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/{BFLibraryButton-Bw2bCACx.cjs → BFLibraryButton-B_TaDdTw.cjs} +1 -1
- package/dist/{BFLibraryButton-BJ7iV-SK.js → BFLibraryButton-DTcYY6VD.js} +1 -1
- package/dist/{IconSelection-DD-Nr7PN.cjs → IconSelection-BPTLv8Go.cjs} +1 -1
- package/dist/{IconSelection-DijIWZHa.js → IconSelection-BocyglLO.js} +1 -1
- package/dist/{TSAnnotationCanvas-UV4pQEcl.js → TSAnnotationCanvas-DErBDH0Y.js} +2 -2
- package/dist/{TSAnnotationCanvas-Cco4wSGV.cjs → TSAnnotationCanvas-DaDdtIB4.cjs} +1 -1
- package/dist/{TSAnnotationModal-CcWNjBv6.js → TSAnnotationModal-B3OSl05U.js} +3 -3
- package/dist/{TSAnnotationModal-5CjROnsz.cjs → TSAnnotationModal-DevUUWys.cjs} +1 -1
- package/dist/{TSFilterModal-B9JkIYGi.js → TSFilterModal-DHBpbDNp.js} +3 -3
- package/dist/{TSFilterModal-CvberIKd.cjs → TSFilterModal-DoqvKSUT.cjs} +1 -1
- package/dist/{TSScrubber-Dq0E_KWP.cjs → TSScrubber-E03DDcMn.cjs} +1 -1
- package/dist/{TSScrubber-Dajtd-ud.js → TSScrubber-hN5JY-DA.js} +1 -1
- package/dist/{TSViewerCanvas-XWBUIuF1.js → TSViewerCanvas-2Jz9ZgqW.js} +2 -2
- package/dist/{TSViewerCanvas-D-2XBXEV.cjs → TSViewerCanvas-Dc5cwQzK.cjs} +2 -2
- package/dist/{TSViewerLayerWindow-D6IXVgCL.js → TSViewerLayerWindow-CalBmhT6.js} +2 -2
- package/dist/{TSViewerLayerWindow-ChsFJLvq.cjs → TSViewerLayerWindow-PAfR31ZO.cjs} +1 -1
- package/dist/{TSViewerToolbar-fwS3Y99W.cjs → TSViewerToolbar-C1wTQDPC.cjs} +1 -1
- package/dist/{TSViewerToolbar-BvDdoOiz.js → TSViewerToolbar-DL9XKYbV.js} +1 -1
- package/dist/{TsAnnotationDeleteDialog-D19Ynkd4.cjs → TsAnnotationDeleteDialog-Cv3z3dFh.cjs} +1 -1
- package/dist/{TsAnnotationDeleteDialog-BnN0eMFf.js → TsAnnotationDeleteDialog-DXgN07Wj.js} +2 -2
- package/dist/{index-Ch_7-EbG.js → index-BsH36ax4.js} +291 -290
- package/dist/index-yiwCKzNX.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +6 -6
- package/dist/index-DRsmx8uY.cjs +0 -1
|
@@ -2,8 +2,8 @@ import "./base-VCnLhxie.js";
|
|
|
2
2
|
import { E as f } from "./el-overlay-BMUWCEw_.js";
|
|
3
3
|
import { g as _, a as y, b as h } from "./el-input-Ct4WOqYx.js";
|
|
4
4
|
import { createElementBlock as F, openBlock as s, renderSlot as S, resolveComponent as A, createBlock as u, withCtx as a, createElementVNode as l, createVNode as r, createTextVNode as i, Fragment as E, renderList as k, normalizeStyle as D, toDisplayString as L } from "vue";
|
|
5
|
-
import { g as C } from "./index-
|
|
6
|
-
import V from "./BFLibraryButton-
|
|
5
|
+
import { g as C } from "./index-BsH36ax4.js";
|
|
6
|
+
import V from "./BFLibraryButton-DTcYY6VD.js";
|
|
7
7
|
const w = {
|
|
8
8
|
name: "CircleIcon",
|
|
9
9
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./base-BQSnEcNP.cjs");const m=require("./el-overlay-D192MFpl.cjs"),r=require("./el-input-BDEG_6zp.cjs"),e=require("vue"),c=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./base-BQSnEcNP.cjs");const m=require("./el-overlay-D192MFpl.cjs"),r=require("./el-input-BDEG_6zp.cjs"),e=require("vue"),c=require("./index-yiwCKzNX.cjs"),v=require("./BFLibraryButton-B_TaDdTw.cjs"),p={name:"CircleIcon",props:{icon:{type:String},height:{type:String,default:"16"},width:{type:String,default:"16"},currentColor:{type:String,default:"#71747C"}}},b={class:"circle-icon"};function g(t,o,a,d,s,n){return e.openBlock(),e.createElementBlock("div",b,[e.renderSlot(t.$slots,"icon",{},void 0,!0)])}const _=c._export_sfc(p,[["render",g],["__scopeId","data-v-46dcef49"]]),f={name:"AnnotationLayerWindow",components:{CircleIcon:_,BfLibraryButton:v.default},props:{visible:{type:Boolean,default:!1}},data:function(){return{name:"",selectedColor:"",colorOptions:[{label:"Green",value:"#18BA62",iconBgColor:"#18BA62"},{label:"Gold",value:"#FFBC27",iconBgColor:"#FFBC27"},{label:"Red",value:"#E94B4B",iconBgColor:"#E94B4B"},{label:"Light Blue",value:"#2760FF",iconBgColor:"#2760FF"},{label:"Magenta",value:"#FF4FFF",iconBgColor:"#FF4FFF"},{label:"Cyan",value:"#50FFFF",iconBgColor:"#50FFFF"},{label:"Yellow",value:"#FFFF4E",iconBgColor:"#FFFF4E"},{label:"Purple",value:"#512BAF",iconBgColor:"#512BAF"},{label:"Lavendar",value:"#8A6ECF",iconBgColor:"#8A6ECF"},{label:"Teal",value:"#389BAD",iconBgColor:"#389BAD"},{label:"Dark Green",value:"#187D46",iconBgColor:"#187D46"},{label:"Brick Red",value:"#B12800",iconBgColor:"#B12800"},{label:"Dark Blue",value:"#0C2475",iconBgColor:"#0C2475"},{label:"Bright Orange",value:"#FF5321",iconBgColor:"#FF5321"},{label:"Pink",value:"#FF99CC",iconBgColor:"#FF99CC"},{label:"Tan",value:"#DCC180",iconBgColor:"#DCC180"},{label:"Medium Blue",value:"#0D4EFF",iconBgColor:"#0D4EFF"},{label:"Orange",value:"#FF6C21",iconBgColor:"#FF6C21"},{label:"Black",value:"#000000",iconBgColor:"#000000"},{label:"Gray",value:"#9B9B9B",iconBgColor:"#9B9B9B"},{label:"Lime",value:"#00FF00",iconBgColor:"#00FF00"},{label:"Salmon",value:"#FA8072",iconBgColor:"#FA8072"},{label:"Olive",value:"#808000",iconBgColor:"#808000"},{label:"Sienna",value:"#A0522D",iconBgColor:"#A0522D"}]}},methods:{close:function(){this.$emit("close-window")},handleFormSubmit:function(){this.$emit("createLayer",{name:this.name,color:this.selectedColor})},handleFormCancel:function(){this.close()}}},y={slot:"body"},V={class:"input-section"},h={class:"input-section"},E={class:"color-option"},k={style:{float:"right",color:"#8492a6","font-size":"13px"}},N={slot:"footer"},S={class:"button-wrapper"},w={class:"buttons"};function A(t,o,a,d,s,n){const u=r.ElInput,C=r.ElOption,F=r.ElSelect,i=e.resolveComponent("bf-library-button"),B=m.ElDialog;return e.openBlock(),e.createBlock(B,{"onUpdate:modelValue":o[2]||(o[2]=l=>a.visible=l),"model-value":a.visible,onClose:n.close,class:"timeseries-annotation-layer-modal",ref:"timeseries-filter-modal",title:"Annotation Layers"},{default:e.withCtx(()=>[e.createElementVNode("div",y,[e.createElementVNode("div",V,[o[3]||(o[3]=e.createTextVNode(" Layer Name: ",-1)),e.createVNode(u,{placeholder:"Add a Layer Name",modelValue:t.name,"onUpdate:modelValue":o[0]||(o[0]=l=>t.name=l),ref:"input"},null,8,["modelValue"])]),e.createElementVNode("div",h,[o[4]||(o[4]=e.createTextVNode(" Select Color: ",-1)),e.createVNode(F,{modelValue:t.selectedColor,"onUpdate:modelValue":o[1]||(o[1]=l=>t.selectedColor=l),placeholder:"Select"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.colorOptions,l=>(e.openBlock(),e.createBlock(C,{key:l.value,label:l.label,value:l.value},{default:e.withCtx(()=>[e.createElementVNode("div",E,[e.createElementVNode("div",{style:e.normalizeStyle({backgroundColor:l.value,height:"30px",width:"30px",borderRadius:"50%"})},null,4),e.createElementVNode("div",k,e.toDisplayString(l.label),1)])]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",N,[e.createElementVNode("div",S,[e.createElementVNode("div",w,[e.createVNode(i,{onClick:n.handleFormCancel},{default:e.withCtx(()=>[...o[5]||(o[5]=[e.createTextVNode("Cancel ",-1)])]),_:1},8,["onClick"]),e.createVNode(i,{onClick:n.handleFormSubmit},{default:e.withCtx(()=>[...o[6]||(o[6]=[e.createTextVNode("Save ",-1)])]),_:1},8,["onClick"])])])])]),_:1},8,["model-value","onClose"])}const D=c._export_sfc(f,[["render",A],["__scopeId","data-v-117509d0"]]);exports.default=D;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./base-BQSnEcNP.cjs");const x=require("./el-input-BDEG_6zp.cjs"),I=require("./el-input-number-B_bFGgma.cjs"),e=require("vue"),h=require("./index-DRsmx8uY.cjs"),Z={name:"IconPreviousPage",props:{width:{type:Number,default:12},height:{type:Number,default:12},color:{type:String,default:"currentColor"}}},A=["width","height","fill"];function T(d,l,t,s,a,u){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,fill:t.color,viewBox:"0 0 12 12"},[...l[0]||(l[0]=[e.createElementVNode("path",{d:"M10.959,0.571 L3.756,5.52 C3.756,5.52 3.477,5.721 3.477,6.001 C3.477,6.281 3.756,6.48 3.756,6.48 L10.959,11.431 C11.531,11.811 12,11.53 12,10.805 L12,1.196 C12,0.469 11.531,0.188 10.959,0.571 Z M2,0 L1,0 C0.447,0 0,0.048 0,0.6 L0,11.4 C0,11.952 0.447,12 1,12 L2,12 C2.553,12 3,11.952 3,11.4 L3,0.6 C3,0.048 2.553,0 2,0 Z"},null,-1)])],8,A)}const F=h._export_sfc(Z,[["render",T]]),q={name:"IconNextAnnotationLeftFacing",props:{width:{type:Number,default:24},height:{type:Number,default:14},color:{type:String,default:"currentColor"}}},D=["width","height","fill"];function O(d,l,t,s,a,u){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,fill:t.color,viewBox:"0 0 24 14"},[...l[0]||(l[0]=[e.createElementVNode("defs",null,[e.createElementVNode("path",{pid:"0",d:"M4 5L.859 1.58a.695.695 0 0 1 0-.978.68.68 0 0 1 .969 0l3.83 3.908a.697.697 0 0 1 0 .979l-3.83 3.908a.68.68 0 0 1-.969 0 .695.695 0 0 1 0-.978L4 5z",id:"svgicon-next-annotation-left-facing-a"})],-1),e.createElementVNode("g",{_fill:"none","fill-rule":"evenodd"},[e.createElementVNode("g",{transform:"matrix(-1 0 0 1 6 0)"},[e.createElementVNode("mask",{id:"svgicon-next-annotation-left-facing-b",_fill:"#fff"},[e.createElementVNode("use",{"xlink:href":"#svgicon-next-annotation-left-facing-a"})]),e.createElementVNode("use",{_fill:"#000","fill-rule":"nonzero","xlink:href":"#svgicon-next-annotation-left-facing-a"}),e.createElementVNode("g",{mask:"url(#svgicon-next-annotation-left-facing-b)",_fill:"#000"},[e.createElementVNode("path",{pid:"1",d:"M-2 0H8v10H-2z"})])]),e.createElementVNode("g",{_fill:"#000"},[e.createElementVNode("path",{pid:"2",d:"M23.986 10.906l-5.6-2.506 2.303 5.6.63-2.611zM10 8.4h1.4v1.4H10zM12.8 8.4h1.4v1.4h-1.4zM15.6 8.4H17v1.4h-1.4zM10 5.6h1.4V7H10zM10 2.8h1.4v1.4H10zM18.4 5.6h1.4V7h-1.4zM18.4 2.8h1.4v1.4h-1.4zM10 0h1.4v1.4H10zM12.8 0h1.4v1.4h-1.4zM15.6 0H17v1.4h-1.4zM18.4 0h1.4v1.4h-1.4z"})])],-1)])],8,D)}const R=h._export_sfc(q,[["render",O]]),U={name:"IconNextAnnotationRightFacing",props:{width:{type:Number,default:24},height:{type:Number,default:14},color:{type:String,default:"currentColor"}}},j=["width","height","fill"];function X(d,l,t,s,a,u){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,fill:t.color,viewBox:"0 0 24 14"},[...l[0]||(l[0]=[e.createElementVNode("defs",null,[e.createElementVNode("path",{pid:"0",d:"M4 5L.859 1.58a.695.695 0 0 1 0-.978.68.68 0 0 1 .969 0l3.83 3.908a.697.697 0 0 1 0 .979l-3.83 3.908a.68.68 0 0 1-.969 0 .695.695 0 0 1 0-.978L4 5z",id:"svgicon-next-annotation-right-facing-a"})],-1),e.createElementVNode("g",{_fill:"none","fill-rule":"evenodd"},[e.createElementVNode("g",{transform:"translate(18)"},[e.createElementVNode("mask",{id:"svgicon-next-annotation-right-facing-b",_fill:"#fff"},[e.createElementVNode("use",{"xlink:href":"#svgicon-next-annotation-right-facing-a"})]),e.createElementVNode("use",{_fill:"#000","fill-rule":"nonzero","xlink:href":"#svgicon-next-annotation-right-facing-a"}),e.createElementVNode("g",{mask:"url(#svgicon-next-annotation-right-facing-b)",_fill:"#000"},[e.createElementVNode("path",{pid:"1",d:"M-2 0H8v10H-2z"})])]),e.createElementVNode("g",{_fill:"#000"},[e.createElementVNode("path",{pid:"2",d:"M13.986 10.906L8.386 8.4l2.303 5.6.63-2.611zM0 8.4h1.4v1.4H0zM2.8 8.4h1.4v1.4H2.8zM5.6 8.4H7v1.4H5.6zM0 5.6h1.4V7H0zM0 2.8h1.4v1.4H0zM8.4 5.6h1.4V7H8.4zM8.4 2.8h1.4v1.4H8.4zM0 0h1.4v1.4H0zM2.8 0h1.4v1.4H2.8zM5.6 0H7v1.4H5.6zM8.4 0h1.4v1.4H8.4z"})])],-1)])],8,j)}const G=h._export_sfc(U,[["render",X]]),J={name:"IconNextPage",props:{width:{type:Number,default:16},height:{type:Number,default:16},color:{type:String,default:"currentColor"}}},K=["width","height","fill"];function Q(d,l,t,s,a,u){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,fill:t.color,viewBox:"0 0 12 12"},[...l[0]||(l[0]=[e.createElementVNode("path",{d:"M8.244,5.52 L1.041,0.571 C0.469,0.188 0,0.469 0,1.196 L0,10.805 C0,11.53 0.469,11.811 1.041,11.43 L8.244,6.479 C8.244,6.479 8.523,6.28 8.523,6.001 C8.523,5.721 8.244,5.52 8.244,5.52 Z M10,0 L11,0 C11.553,0 12,0.048 12,0.6 L12,11.4 C12,11.952 11.553,12 11,12 L10,12 C9.447,12 9,11.952 9,11.4 L9,0.6 C9,0.048 9.447,0 10,0 Z"},null,-1)])],8,K)}const W=h._export_sfc(J,[["render",Q]]),Y={name:"IconStopwatch",props:{width:{type:Number,default:15},height:{type:Number,default:16},color:{type:String,default:"currentColor"}}},ee=["width","height","fill"];function te(d,l,t,s,a,u){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,fill:t.color,viewBox:"0 0 15 16"},[...l[0]||(l[0]=[e.createElementVNode("path",{d:"M5.1008,5.396 C4.7432,5.616 6.0584,8.7896 6.3792,9.3064 C6.6592,9.7616 7.2536,9.9 7.7056,9.6216 C8.16,9.34 8.3016,8.7464 8.0216,8.2936 C7.704,7.7752 5.4576,5.1752 5.1008,5.396 Z M4.8328,1.9216 C5.5752,1.6632 6.3704,1.52 7.2,1.52 C8.0296,1.52 8.8248,1.6632 9.5672,1.9216 C9.8304,2.0128 10.1792,1.8296 10.0248,1.4328 C9.912,1.1448 9.8032,0.8632 9.7592,0.7488 C9.6544,0.4776 9.2792,0.2536 9.116,0.2168 C8.4984,0.0776 7.8584,0 7.2,0 C6.5416,0 5.9016,0.0776 5.2832,0.2168 C5.12,0.2536 4.7456,0.4776 4.6408,0.7488 C4.5968,0.8632 4.4872,1.1448 4.3752,1.4328 C4.2208,1.8296 4.5696,2.0136 4.8328,1.9216 Z M14.4784,2.5488 C14.3248,2.3648 14.1616,2.1848 13.988,2.0112 C13.8152,1.8376 13.6352,1.6752 13.452,1.5208 C13.3296,1.4176 12.9696,1.3336 12.7416,1.5616 C12.5144,1.7896 11.4232,2.8792 11.4232,2.8792 C11.7448,3.1096 12.0576,3.3632 12.3472,3.652 C12.6368,3.9408 12.8888,4.2536 13.12,4.576 C13.12,4.576 14.2104,3.4864 14.4376,3.2584 C14.6664,3.0296 14.5824,2.6704 14.4784,2.5488 Z M7.2,2.32 C3.62,2.32 0.7192,5.2208 0.7192,8.8 C0.7192,12.38 3.62,15.2808 7.2,15.2808 C10.7784,15.2808 13.68,12.38 13.68,8.8 C13.68,5.2216 10.7784,2.32 7.2,2.32 Z M7.2,13.6808 C4.5056,13.6808 2.32,11.496 2.32,8.8008 C2.32,6.1056 4.5048,3.9208 7.2,3.9208 C9.8952,3.9208 12.0808,6.1056 12.0808,8.8008 C12.0808,11.4952 9.8952,13.6808 7.2,13.6808 Z"},null,-1)])],8,ee)}const ne=h._export_sfc(Y,[["render",te]]),oe={name:"IconControllerPlay",props:{width:{type:Number,default:10},height:{type:Number,default:12},color:{type:String,default:"currentColor"}}},le=["width","height","fill"];function re(d,l,t,s,a,u){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,fill:t.color,viewBox:"0 0 20 12"},[...l[0]||(l[0]=[e.createElementVNode("path",{d:"M10,6.001 C10,6.3 9.695,6.515 9.695,6.515 L1.134,11.818 C0.51,12.227 0,11.924 0,11.149 L0,0.852 C0,0.075 0.51,-0.226 1.135,0.182 L9.696,5.487 C9.695,5.487 10,5.702 10,6.001 Z"},null,-1)])],8,le)}const ie=h._export_sfc(oe,[["render",re]]),ae={name:"IconControllerPause",props:{width:{type:Number,default:10},height:{type:Number,default:12},color:{type:String,default:"currentColor"}}},ce=["width","height","fill"];function de(d,l,t,s,a,u){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,fill:t.color,viewBox:"0 0 20 12"},[...l[0]||(l[0]=[e.createElementVNode("path",{d:"M2,0 C2.553,0 3,0.048 3,0.6 L3,11.4 C3,11.952 2.553,12 2,12 L1,12 C0.447,12 0,11.952 0,11.4 L0,0.6 C0,0.048 0.447,0 1,0 L2,0 Z M9,0 C9.553,0 10,0.048 10,0.6 L10,11.4 C10,11.952 9.553,12 9,12 L8,12 C7.447,12 7,11.952 7,11.4 L7,0.6 C7,0.048 7.447,0 8,0 L9,0 Z"},null,-1)])],8,ce)}const se=h._export_sfc(ae,[["render",de]]),ue={class:"timeseries-viewer-toolbar"},he={id:"left-controls"},me={id:"center-controls"},fe={id:"right-controls"},pe={__name:"TSViewerToolbar",props:{constants:{type:Object,required:!0},duration:{type:Number,required:!0},start:{type:Number,required:!0},globalZoomMult:{type:Number,required:!0}},emits:["pageBack","pageForward","incrementZoom","decrementZoom","updateDuration","nextAnnotation","previousAnnotation","setStart","update:globalZoomMult"],setup(d,{emit:l}){const t=d,s=e.computed({get(){return 96*window.devicePixelRatio/(t.globalZoomMult*25.4)},set(r){a("update:globalZoomMult",96*window.devicePixelRatio/(r*25.4))}}),a=l,u=e.ref(!0),v=e.ref(!0);e.ref(0);const f=e.ref(!1),p=e.ref(null),w=e.ref(null),C=e.ref(150),N=e.ref(1e6),_=[{value:.5,label:"0.5x"},{value:1,label:"1x"},{value:2,label:"2x"},{value:5,label:"5x"},{value:10,label:"10x"}],V=e.computed(()=>f.value===!0?se:ie);let b=e.ref(t.duration/1e6);const g=e.computed({get(){return t.duration/1e6},set(r){const n=t.duration/1e6,m=r>n,c=r<n;let o=Math.max(.01,r);n===.1&&m?o=.2:n===.1&&c?o=.09:n===1&&m?o=2:n===1&&c?o=.9:n===10&&m?o=20:n===10&&c?o=9:o<.095?o=Math.round(o*100)/100:o<.95?o=Math.round(o*10)/10:o<9.5?o=Math.round(o):o<95?o=Math.round(o/10)*10:o=Math.round(o/100)*100,b.value=o,a("updateDuration",o)}}),M=e.computed(()=>{const r=g.value;return r<.1?.01:r<1?.1:r<10?1:r<100?10:100}),E=e.computed(()=>{const r=g.value;return r<1?2:r<10?1:0}),k=()=>{v.value=!v.value},y=()=>{f.value===!1?P():S()},B=()=>{a("pageBack")},L=()=>{a("pageForward")},$=()=>{a("nextAnnotation")},z=()=>{a("previousAnnotation")},P=()=>{f.value=!0;const r=()=>{a("setStart",t.start+N.value*p.value),w.value=setTimeout(r,C.value)};w.value=setTimeout(r,C.value)},S=()=>{f.value=!1,C.value=150,clearInterval(w.value)};return e.onMounted(()=>{p.value=1}),(r,n)=>{const m=I.ElInputNumber,c=x.ElTooltip,o=x.ElOption,H=x.ElSelect;return e.openBlock(),e.createElementBlock("div",ue,[e.createElementVNode("div",he,[u.value?(e.openBlock(),e.createBlock(m,{key:0,modelValue:g.value,"onUpdate:modelValue":n[0]||(n[0]=i=>g.value=i),precision:E.value,step:M.value,min:.01,max:d.constants.MAXDURATION,"controls-position":"right"},{suffix:e.withCtx(()=>[...n[9]||(n[9]=[e.createTextVNode(" seconds ",-1)])]),_:1},8,["modelValue","precision","step","max"])):e.createCommentVNode("",!0),e.createVNode(m,{modelValue:s.value,"onUpdate:modelValue":n[1]||(n[1]=i=>s.value=i),precision:2,step:.5,min:.01,"controls-position":"right"},{suffix:e.withCtx(()=>[...n[10]||(n[10]=[e.createTextVNode(" uV/mm ",-1)])]),_:1},8,["modelValue"])]),e.createElementVNode("div",me,[e.createVNode(c,{placement:"top-end",content:"Page Back"},{default:e.withCtx(()=>[e.createElementVNode("button",{class:"btn-icon",onClick:n[2]||(n[2]=i=>B())},[e.createVNode(F,{height:12,width:12})])]),_:1}),e.createVNode(c,{placement:"top-end",content:"Previous Annotation"},{default:e.withCtx(()=>[e.createElementVNode("button",{class:"btn-icon",onClick:n[3]||(n[3]=i=>z())},[e.createVNode(R,{height:12,width:18})])]),_:1}),e.createVNode(c,{placement:"top-end",content:"Automatic Forward"},{default:e.withCtx(()=>[e.createElementVNode("button",{class:"btn-icon",onClick:n[4]||(n[4]=i=>y())},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(V.value),{height:12,width:18}))])]),_:1}),e.createVNode(c,{placement:"top-end",content:"Next Annotation"},{default:e.withCtx(()=>[e.createElementVNode("button",{class:"btn-icon",onClick:n[5]||(n[5]=i=>$())},[e.createVNode(G,{name:"next-annotation-right-facing",height:12,width:18})])]),_:1}),e.createVNode(c,{placement:"top-end",content:"Next Page"},{default:e.withCtx(()=>[e.createElementVNode("button",{class:"btn-icon",onClick:n[6]||(n[6]=i=>L())},[e.createVNode(W,{name:"icon-next-page",height:12,width:18})])]),_:1})]),e.createElementVNode("div",fe,[e.createVNode(c,{placement:"top-end",content:"Toggle Play Back Speed Controls"},{default:e.withCtx(()=>[e.createElementVNode("button",{class:"btn-icon",onClick:n[7]||(n[7]=i=>k())},[e.createVNode(ne,{height:20,width:22})])]),_:1}),v.value?(e.openBlock(),e.createBlock(H,{key:0,modelValue:p.value,"onUpdate:modelValue":n[8]||(n[8]=i=>p.value=i),placeholder:"Select",size:"small",class:"playSelect"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(_,i=>e.createVNode(o,{key:i.value,label:i.label,value:i.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])):e.createCommentVNode("",!0)]),n[11]||(n[11]=e.createElementVNode("div",null,null,-1))])}}},ge=h._export_sfc(pe,[["__scopeId","data-v-894539d8"]]);exports.default=ge;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./base-BQSnEcNP.cjs");const x=require("./el-input-BDEG_6zp.cjs"),I=require("./el-input-number-B_bFGgma.cjs"),e=require("vue"),h=require("./index-yiwCKzNX.cjs"),Z={name:"IconPreviousPage",props:{width:{type:Number,default:12},height:{type:Number,default:12},color:{type:String,default:"currentColor"}}},A=["width","height","fill"];function T(d,l,t,s,a,u){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,fill:t.color,viewBox:"0 0 12 12"},[...l[0]||(l[0]=[e.createElementVNode("path",{d:"M10.959,0.571 L3.756,5.52 C3.756,5.52 3.477,5.721 3.477,6.001 C3.477,6.281 3.756,6.48 3.756,6.48 L10.959,11.431 C11.531,11.811 12,11.53 12,10.805 L12,1.196 C12,0.469 11.531,0.188 10.959,0.571 Z M2,0 L1,0 C0.447,0 0,0.048 0,0.6 L0,11.4 C0,11.952 0.447,12 1,12 L2,12 C2.553,12 3,11.952 3,11.4 L3,0.6 C3,0.048 2.553,0 2,0 Z"},null,-1)])],8,A)}const F=h._export_sfc(Z,[["render",T]]),q={name:"IconNextAnnotationLeftFacing",props:{width:{type:Number,default:24},height:{type:Number,default:14},color:{type:String,default:"currentColor"}}},D=["width","height","fill"];function O(d,l,t,s,a,u){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,fill:t.color,viewBox:"0 0 24 14"},[...l[0]||(l[0]=[e.createElementVNode("defs",null,[e.createElementVNode("path",{pid:"0",d:"M4 5L.859 1.58a.695.695 0 0 1 0-.978.68.68 0 0 1 .969 0l3.83 3.908a.697.697 0 0 1 0 .979l-3.83 3.908a.68.68 0 0 1-.969 0 .695.695 0 0 1 0-.978L4 5z",id:"svgicon-next-annotation-left-facing-a"})],-1),e.createElementVNode("g",{_fill:"none","fill-rule":"evenodd"},[e.createElementVNode("g",{transform:"matrix(-1 0 0 1 6 0)"},[e.createElementVNode("mask",{id:"svgicon-next-annotation-left-facing-b",_fill:"#fff"},[e.createElementVNode("use",{"xlink:href":"#svgicon-next-annotation-left-facing-a"})]),e.createElementVNode("use",{_fill:"#000","fill-rule":"nonzero","xlink:href":"#svgicon-next-annotation-left-facing-a"}),e.createElementVNode("g",{mask:"url(#svgicon-next-annotation-left-facing-b)",_fill:"#000"},[e.createElementVNode("path",{pid:"1",d:"M-2 0H8v10H-2z"})])]),e.createElementVNode("g",{_fill:"#000"},[e.createElementVNode("path",{pid:"2",d:"M23.986 10.906l-5.6-2.506 2.303 5.6.63-2.611zM10 8.4h1.4v1.4H10zM12.8 8.4h1.4v1.4h-1.4zM15.6 8.4H17v1.4h-1.4zM10 5.6h1.4V7H10zM10 2.8h1.4v1.4H10zM18.4 5.6h1.4V7h-1.4zM18.4 2.8h1.4v1.4h-1.4zM10 0h1.4v1.4H10zM12.8 0h1.4v1.4h-1.4zM15.6 0H17v1.4h-1.4zM18.4 0h1.4v1.4h-1.4z"})])],-1)])],8,D)}const R=h._export_sfc(q,[["render",O]]),U={name:"IconNextAnnotationRightFacing",props:{width:{type:Number,default:24},height:{type:Number,default:14},color:{type:String,default:"currentColor"}}},j=["width","height","fill"];function X(d,l,t,s,a,u){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,fill:t.color,viewBox:"0 0 24 14"},[...l[0]||(l[0]=[e.createElementVNode("defs",null,[e.createElementVNode("path",{pid:"0",d:"M4 5L.859 1.58a.695.695 0 0 1 0-.978.68.68 0 0 1 .969 0l3.83 3.908a.697.697 0 0 1 0 .979l-3.83 3.908a.68.68 0 0 1-.969 0 .695.695 0 0 1 0-.978L4 5z",id:"svgicon-next-annotation-right-facing-a"})],-1),e.createElementVNode("g",{_fill:"none","fill-rule":"evenodd"},[e.createElementVNode("g",{transform:"translate(18)"},[e.createElementVNode("mask",{id:"svgicon-next-annotation-right-facing-b",_fill:"#fff"},[e.createElementVNode("use",{"xlink:href":"#svgicon-next-annotation-right-facing-a"})]),e.createElementVNode("use",{_fill:"#000","fill-rule":"nonzero","xlink:href":"#svgicon-next-annotation-right-facing-a"}),e.createElementVNode("g",{mask:"url(#svgicon-next-annotation-right-facing-b)",_fill:"#000"},[e.createElementVNode("path",{pid:"1",d:"M-2 0H8v10H-2z"})])]),e.createElementVNode("g",{_fill:"#000"},[e.createElementVNode("path",{pid:"2",d:"M13.986 10.906L8.386 8.4l2.303 5.6.63-2.611zM0 8.4h1.4v1.4H0zM2.8 8.4h1.4v1.4H2.8zM5.6 8.4H7v1.4H5.6zM0 5.6h1.4V7H0zM0 2.8h1.4v1.4H0zM8.4 5.6h1.4V7H8.4zM8.4 2.8h1.4v1.4H8.4zM0 0h1.4v1.4H0zM2.8 0h1.4v1.4H2.8zM5.6 0H7v1.4H5.6zM8.4 0h1.4v1.4H8.4z"})])],-1)])],8,j)}const G=h._export_sfc(U,[["render",X]]),J={name:"IconNextPage",props:{width:{type:Number,default:16},height:{type:Number,default:16},color:{type:String,default:"currentColor"}}},K=["width","height","fill"];function Q(d,l,t,s,a,u){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,fill:t.color,viewBox:"0 0 12 12"},[...l[0]||(l[0]=[e.createElementVNode("path",{d:"M8.244,5.52 L1.041,0.571 C0.469,0.188 0,0.469 0,1.196 L0,10.805 C0,11.53 0.469,11.811 1.041,11.43 L8.244,6.479 C8.244,6.479 8.523,6.28 8.523,6.001 C8.523,5.721 8.244,5.52 8.244,5.52 Z M10,0 L11,0 C11.553,0 12,0.048 12,0.6 L12,11.4 C12,11.952 11.553,12 11,12 L10,12 C9.447,12 9,11.952 9,11.4 L9,0.6 C9,0.048 9.447,0 10,0 Z"},null,-1)])],8,K)}const W=h._export_sfc(J,[["render",Q]]),Y={name:"IconStopwatch",props:{width:{type:Number,default:15},height:{type:Number,default:16},color:{type:String,default:"currentColor"}}},ee=["width","height","fill"];function te(d,l,t,s,a,u){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,fill:t.color,viewBox:"0 0 15 16"},[...l[0]||(l[0]=[e.createElementVNode("path",{d:"M5.1008,5.396 C4.7432,5.616 6.0584,8.7896 6.3792,9.3064 C6.6592,9.7616 7.2536,9.9 7.7056,9.6216 C8.16,9.34 8.3016,8.7464 8.0216,8.2936 C7.704,7.7752 5.4576,5.1752 5.1008,5.396 Z M4.8328,1.9216 C5.5752,1.6632 6.3704,1.52 7.2,1.52 C8.0296,1.52 8.8248,1.6632 9.5672,1.9216 C9.8304,2.0128 10.1792,1.8296 10.0248,1.4328 C9.912,1.1448 9.8032,0.8632 9.7592,0.7488 C9.6544,0.4776 9.2792,0.2536 9.116,0.2168 C8.4984,0.0776 7.8584,0 7.2,0 C6.5416,0 5.9016,0.0776 5.2832,0.2168 C5.12,0.2536 4.7456,0.4776 4.6408,0.7488 C4.5968,0.8632 4.4872,1.1448 4.3752,1.4328 C4.2208,1.8296 4.5696,2.0136 4.8328,1.9216 Z M14.4784,2.5488 C14.3248,2.3648 14.1616,2.1848 13.988,2.0112 C13.8152,1.8376 13.6352,1.6752 13.452,1.5208 C13.3296,1.4176 12.9696,1.3336 12.7416,1.5616 C12.5144,1.7896 11.4232,2.8792 11.4232,2.8792 C11.7448,3.1096 12.0576,3.3632 12.3472,3.652 C12.6368,3.9408 12.8888,4.2536 13.12,4.576 C13.12,4.576 14.2104,3.4864 14.4376,3.2584 C14.6664,3.0296 14.5824,2.6704 14.4784,2.5488 Z M7.2,2.32 C3.62,2.32 0.7192,5.2208 0.7192,8.8 C0.7192,12.38 3.62,15.2808 7.2,15.2808 C10.7784,15.2808 13.68,12.38 13.68,8.8 C13.68,5.2216 10.7784,2.32 7.2,2.32 Z M7.2,13.6808 C4.5056,13.6808 2.32,11.496 2.32,8.8008 C2.32,6.1056 4.5048,3.9208 7.2,3.9208 C9.8952,3.9208 12.0808,6.1056 12.0808,8.8008 C12.0808,11.4952 9.8952,13.6808 7.2,13.6808 Z"},null,-1)])],8,ee)}const ne=h._export_sfc(Y,[["render",te]]),oe={name:"IconControllerPlay",props:{width:{type:Number,default:10},height:{type:Number,default:12},color:{type:String,default:"currentColor"}}},le=["width","height","fill"];function re(d,l,t,s,a,u){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,fill:t.color,viewBox:"0 0 20 12"},[...l[0]||(l[0]=[e.createElementVNode("path",{d:"M10,6.001 C10,6.3 9.695,6.515 9.695,6.515 L1.134,11.818 C0.51,12.227 0,11.924 0,11.149 L0,0.852 C0,0.075 0.51,-0.226 1.135,0.182 L9.696,5.487 C9.695,5.487 10,5.702 10,6.001 Z"},null,-1)])],8,le)}const ie=h._export_sfc(oe,[["render",re]]),ae={name:"IconControllerPause",props:{width:{type:Number,default:10},height:{type:Number,default:12},color:{type:String,default:"currentColor"}}},ce=["width","height","fill"];function de(d,l,t,s,a,u){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,fill:t.color,viewBox:"0 0 20 12"},[...l[0]||(l[0]=[e.createElementVNode("path",{d:"M2,0 C2.553,0 3,0.048 3,0.6 L3,11.4 C3,11.952 2.553,12 2,12 L1,12 C0.447,12 0,11.952 0,11.4 L0,0.6 C0,0.048 0.447,0 1,0 L2,0 Z M9,0 C9.553,0 10,0.048 10,0.6 L10,11.4 C10,11.952 9.553,12 9,12 L8,12 C7.447,12 7,11.952 7,11.4 L7,0.6 C7,0.048 7.447,0 8,0 L9,0 Z"},null,-1)])],8,ce)}const se=h._export_sfc(ae,[["render",de]]),ue={class:"timeseries-viewer-toolbar"},he={id:"left-controls"},me={id:"center-controls"},fe={id:"right-controls"},pe={__name:"TSViewerToolbar",props:{constants:{type:Object,required:!0},duration:{type:Number,required:!0},start:{type:Number,required:!0},globalZoomMult:{type:Number,required:!0}},emits:["pageBack","pageForward","incrementZoom","decrementZoom","updateDuration","nextAnnotation","previousAnnotation","setStart","update:globalZoomMult"],setup(d,{emit:l}){const t=d,s=e.computed({get(){return 96*window.devicePixelRatio/(t.globalZoomMult*25.4)},set(r){a("update:globalZoomMult",96*window.devicePixelRatio/(r*25.4))}}),a=l,u=e.ref(!0),v=e.ref(!0);e.ref(0);const f=e.ref(!1),p=e.ref(null),w=e.ref(null),C=e.ref(150),N=e.ref(1e6),_=[{value:.5,label:"0.5x"},{value:1,label:"1x"},{value:2,label:"2x"},{value:5,label:"5x"},{value:10,label:"10x"}],V=e.computed(()=>f.value===!0?se:ie);let b=e.ref(t.duration/1e6);const g=e.computed({get(){return t.duration/1e6},set(r){const n=t.duration/1e6,m=r>n,c=r<n;let o=Math.max(.01,r);n===.1&&m?o=.2:n===.1&&c?o=.09:n===1&&m?o=2:n===1&&c?o=.9:n===10&&m?o=20:n===10&&c?o=9:o<.095?o=Math.round(o*100)/100:o<.95?o=Math.round(o*10)/10:o<9.5?o=Math.round(o):o<95?o=Math.round(o/10)*10:o=Math.round(o/100)*100,b.value=o,a("updateDuration",o)}}),M=e.computed(()=>{const r=g.value;return r<.1?.01:r<1?.1:r<10?1:r<100?10:100}),E=e.computed(()=>{const r=g.value;return r<1?2:r<10?1:0}),k=()=>{v.value=!v.value},y=()=>{f.value===!1?P():S()},B=()=>{a("pageBack")},L=()=>{a("pageForward")},$=()=>{a("nextAnnotation")},z=()=>{a("previousAnnotation")},P=()=>{f.value=!0;const r=()=>{a("setStart",t.start+N.value*p.value),w.value=setTimeout(r,C.value)};w.value=setTimeout(r,C.value)},S=()=>{f.value=!1,C.value=150,clearInterval(w.value)};return e.onMounted(()=>{p.value=1}),(r,n)=>{const m=I.ElInputNumber,c=x.ElTooltip,o=x.ElOption,H=x.ElSelect;return e.openBlock(),e.createElementBlock("div",ue,[e.createElementVNode("div",he,[u.value?(e.openBlock(),e.createBlock(m,{key:0,modelValue:g.value,"onUpdate:modelValue":n[0]||(n[0]=i=>g.value=i),precision:E.value,step:M.value,min:.01,max:d.constants.MAXDURATION,"controls-position":"right"},{suffix:e.withCtx(()=>[...n[9]||(n[9]=[e.createTextVNode(" seconds ",-1)])]),_:1},8,["modelValue","precision","step","max"])):e.createCommentVNode("",!0),e.createVNode(m,{modelValue:s.value,"onUpdate:modelValue":n[1]||(n[1]=i=>s.value=i),precision:2,step:.5,min:.01,"controls-position":"right"},{suffix:e.withCtx(()=>[...n[10]||(n[10]=[e.createTextVNode(" uV/mm ",-1)])]),_:1},8,["modelValue"])]),e.createElementVNode("div",me,[e.createVNode(c,{placement:"top-end",content:"Page Back"},{default:e.withCtx(()=>[e.createElementVNode("button",{class:"btn-icon",onClick:n[2]||(n[2]=i=>B())},[e.createVNode(F,{height:12,width:12})])]),_:1}),e.createVNode(c,{placement:"top-end",content:"Previous Annotation"},{default:e.withCtx(()=>[e.createElementVNode("button",{class:"btn-icon",onClick:n[3]||(n[3]=i=>z())},[e.createVNode(R,{height:12,width:18})])]),_:1}),e.createVNode(c,{placement:"top-end",content:"Automatic Forward"},{default:e.withCtx(()=>[e.createElementVNode("button",{class:"btn-icon",onClick:n[4]||(n[4]=i=>y())},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(V.value),{height:12,width:18}))])]),_:1}),e.createVNode(c,{placement:"top-end",content:"Next Annotation"},{default:e.withCtx(()=>[e.createElementVNode("button",{class:"btn-icon",onClick:n[5]||(n[5]=i=>$())},[e.createVNode(G,{name:"next-annotation-right-facing",height:12,width:18})])]),_:1}),e.createVNode(c,{placement:"top-end",content:"Next Page"},{default:e.withCtx(()=>[e.createElementVNode("button",{class:"btn-icon",onClick:n[6]||(n[6]=i=>L())},[e.createVNode(W,{name:"icon-next-page",height:12,width:18})])]),_:1})]),e.createElementVNode("div",fe,[e.createVNode(c,{placement:"top-end",content:"Toggle Play Back Speed Controls"},{default:e.withCtx(()=>[e.createElementVNode("button",{class:"btn-icon",onClick:n[7]||(n[7]=i=>k())},[e.createVNode(ne,{height:20,width:22})])]),_:1}),v.value?(e.openBlock(),e.createBlock(H,{key:0,modelValue:p.value,"onUpdate:modelValue":n[8]||(n[8]=i=>p.value=i),placeholder:"Select",size:"small",class:"playSelect"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(_,i=>e.createVNode(o,{key:i.value,label:i.label,value:i.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])):e.createCommentVNode("",!0)]),n[11]||(n[11]=e.createElementVNode("div",null,null,-1))])}}},ge=h._export_sfc(pe,[["__scopeId","data-v-894539d8"]]);exports.default=ge;
|
|
@@ -2,7 +2,7 @@ import "./base-VCnLhxie.js";
|
|
|
2
2
|
import { E as O, a as U, b as j } from "./el-input-Ct4WOqYx.js";
|
|
3
3
|
import { E as X } from "./el-input-number-DXBs74eH.js";
|
|
4
4
|
import { createElementBlock as p, openBlock as u, createElementVNode as t, computed as C, ref as f, onMounted as G, createBlock as $, createCommentVNode as z, createVNode as s, withCtx as g, createTextVNode as N, resolveDynamicComponent as J, Fragment as K, renderList as Q } from "vue";
|
|
5
|
-
import { g as m } from "./index-
|
|
5
|
+
import { g as m } from "./index-BsH36ax4.js";
|
|
6
6
|
const W = {
|
|
7
7
|
name: "IconPreviousPage",
|
|
8
8
|
props: {
|
package/dist/{TsAnnotationDeleteDialog-D19Ynkd4.cjs → TsAnnotationDeleteDialog-Cv3z3dFh.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./base-BQSnEcNP.cjs");const h=require("./el-overlay-D192MFpl.cjs"),e=require("vue"),i=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./base-BQSnEcNP.cjs");const h=require("./el-overlay-D192MFpl.cjs"),e=require("vue"),i=require("./index-yiwCKzNX.cjs"),C=require("./BFLibraryButton-B_TaDdTw.cjs"),b={name:"DialogBody",setup(t,{slots:o}){return{hasSlot:s=>!!o[s]}},props:{fixedHeight:{type:Boolean,default:!1}},computed:{classNames:function(){const t=this.hasSlot("icon")?"icon":"",o=this.fixedHeight?"fixed-height":"";return`dialog-body ${t} ${o}`}}},y={key:0,class:"dialog-body-icon"},B={key:1,class:"dialog-body-heading"},k={class:"dialog-body-content"};function v(t,o,n,s,a,l){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.classNames)},[s.hasSlot("icon")?(e.openBlock(),e.createElementBlock("div",y,[e.renderSlot(t.$slots,"icon",{},void 0,!0)])):e.createCommentVNode("",!0),s.hasSlot("heading")?(e.openBlock(),e.createElementBlock("div",B,[e.renderSlot(t.$slots,"heading",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",k,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],2)}const d=i._export_sfc(b,[["render",v],["__scopeId","data-v-79e653a5"]]),$={name:"IconWarningCircle",props:{width:{type:Number,default:16},height:{type:Number,default:16},color:{type:String,default:"currentColor"}}},V=["width","height","fill"];function N(t,o,n,s,a,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.width,height:n.height,fill:n.color,viewBox:"0 0 24 24"},[...o[0]||(o[0]=[e.createElementVNode("path",{pid:"0",d:"M22 11.4c-.1-2.7-1.3-5.1-3.3-6.9-.4-.4-1-.3-1.4.1-.4.4-.3 1 .1 1.4 1.6 1.4 2.5 3.4 2.7 5.5.1 2.1-.6 4.2-2 5.8s-3.4 2.5-5.5 2.7c-2.1.1-4.2-.6-5.8-2-1.6-1.4-2.5-3.4-2.7-5.5-.1-2.1.6-4.2 2-5.8 1.3-1.4 3.1-2.4 5-2.6V11c0 .6.4 1 1 1s1-.4 1-1V2h-1C9.2 2 6.4 3.2 4.5 5.3c-1.8 2-2.7 4.6-2.5 7.2.1 2.7 1.3 5.1 3.3 6.9C7.2 21.2 9.6 22 12 22c2.7 0 5.5-1.1 7.5-3.3 1.7-2 2.6-4.6 2.5-7.3z"},null,-1),e.createElementVNode("circle",{pid:"1",cx:"12",cy:"15.5",r:"1.5"},null,-1)])],8,V)}const u=i._export_sfc($,[["render",N]]),w={name:"BfDialogHeader",props:{title:{type:String,default:""}},methods:{onClose:function(){this.$parent.handleClose()}}},S={class:"bf-dialog-header"},x={class:"bf-dialog-header-title"};function D(t,o,n,s,a,l){return e.openBlock(),e.createElementBlock("div",S,[e.createElementVNode("span",x,e.toDisplayString(n.title),1),this.$slots.tabs?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,class:"icon-close",onClick:o[0]||(o[0]=(...c)=>l.onClose&&l.onClose(...c))})),e.renderSlot(t.$slots,"tabs",{},void 0,!0)])}const _=i._export_sfc(w,[["render",D],["__scopeId","data-v-1491a20c"]]),E={name:"TsAnnotationDeleteDialog",components:{BfDialogHeader:_,DialogBody:d,BfLibraryButton:C.default,IconWarningCircle:u},props:{visible:{type:Boolean,default:!1},deleteAnnotation:{type:Object,default:()=>({})}},data:function(){return{isProcessing:!1}},methods:{removeAnnotation:function(){this.$emit("delete",this.deleteAnnotation)},close:function(){this.$emit("update:visible",!1)},onClosed:function(){this.isProcessing=!1,this.$emit("update:delete-annotation",{})},getUTCDateString:function(t){return t>0?(t=new Date(t/1e3),t.toDateString()):"unknown"},getUTCTimeString:function(t){if(t>0)return t=t/1e3,t=new Date(t),("0"+t.getUTCHours()).slice(-2)+":"+("0"+t.getUTCMinutes()).slice(-2)+":"+("0"+t.getUTCSeconds()).slice(-2)}}},T={class:"dialog-simple-buttons"};function A(t,o,n,s,a,l){const c=_,f=u,r=e.resolveComponent("bf-library-button"),m=d,g=h.ElDialog;return e.openBlock(),e.createBlock(g,{class:"simple",modelValue:n.visible,"onUpdate:modelValue":o[0]||(o[0]=p=>n.visible=p),onClose:l.close,onClosed:l.onClosed},{default:e.withCtx(()=>[e.createVNode(c,{slot:"title"}),e.createVNode(m,null,{default:e.withCtx(()=>[e.createVNode(f,{class:"mb-16",height:32,width:32,color:"#C14D49"}),o[3]||(o[3]=e.createElementVNode("h2",null,"Delete annotation?",-1)),e.createElementVNode("div",T,[e.createVNode(r,{class:"secondary",onClick:l.close},{default:e.withCtx(()=>[...o[1]||(o[1]=[e.createTextVNode(" Cancel ",-1)])]),_:1},8,["onClick"]),e.createVNode(r,{class:"red",processing:t.isProcessing,onClick:l.removeAnnotation},{default:e.withCtx(()=>[...o[2]||(o[2]=[e.createTextVNode(" Delete ",-1)])]),_:1},8,["processing","onClick"])])]),_:1})]),_:1},8,["modelValue","onClose","onClosed"])}const H=i._export_sfc(E,[["render",A],["__scopeId","data-v-dced12ae"]]);exports.default=H;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./base-VCnLhxie.js";
|
|
2
2
|
import { E as w } from "./el-overlay-BMUWCEw_.js";
|
|
3
3
|
import { createElementBlock as l, openBlock as i, normalizeClass as S, createCommentVNode as g, createElementVNode as a, renderSlot as d, toDisplayString as k, resolveComponent as B, createBlock as x, withCtx as r, createVNode as c, createTextVNode as p } from "vue";
|
|
4
|
-
import { g as u } from "./index-
|
|
5
|
-
import T from "./BFLibraryButton-
|
|
4
|
+
import { g as u } from "./index-BsH36ax4.js";
|
|
5
|
+
import T from "./BFLibraryButton-DTcYY6VD.js";
|
|
6
6
|
const V = {
|
|
7
7
|
name: "DialogBody",
|
|
8
8
|
setup(e, { slots: t }) {
|