@codernote/record-tree 2.5.6 → 2.5.7

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 (2) hide show
  1. package/dist/index.js +80 -77
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.color-panel[data-v-d2cde42f]{background:#fff;border:1px solid #f2f2f2;width:164px;padding:5px 5px 0}.color-panel ul[data-v-d2cde42f]{list-style-type:none;margin:0}.color-panel ul li[data-v-d2cde42f]{display:inline-block;margin:0 5px;width:20px;height:20px;border-radius:100%;border:1px solid #f2f2f2;display:inline-flex;align-items:center;justify-content:center}.node-complex[data-v-d8fa8371]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-d8fa8371]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-d8fa8371]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-d8fa8371]{display:block}.node-image img[data-v-d8fa8371]{outline:none}.node-audio[data-v-d8fa8371]{width:300px}.node-audio audio[data-v-d8fa8371]{width:300px;outline:none}.node-video video[data-v-d8fa8371]{outline:none;-o-object-fit:cover;object-fit:cover;background-color:#000}.node-del[data-v-d8fa8371]{cursor:pointer;display:none;width:15px;height:15px;position:absolute;top:-3px;right:-3px;background-color:#e6f7ff;background-size:100% 100%;border-radius:50%}.node-del[data-v-d8fa8371]:before,.node-del[data-v-d8fa8371]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-d8fa8371]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-d8fa8371]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-d8fa8371]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-d8fa8371]{flex:1}.node-file-left h6[data-v-d8fa8371]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-d8fa8371]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-d8fa8371]{color:#52a770;font-size:14px}@keyframes blinkBorder-d8fa8371{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-d8fa8371]:focus{animation:blinkBorder-d8fa8371 1s infinite}.fullscreen-handle[data-v-d8fa8371]{width:15px;height:15px;position:absolute;bottom:0;right:16px;cursor:pointer;background:#fff9}.resize-handle[data-v-d8fa8371]{width:15px;height:15px;position:absolute;bottom:0;right:0;cursor:se-resize;transform:rotate(90deg);background:#fff9}.resize-handle svg[data-v-d8fa8371]{cursor:se-resize}.ProseMirror{outline:none}.node-div[data-v-00a3cb25]{display:flex;align-items:center;position:relative;margin-bottom:8px}.node-div>div[data-v-00a3cb25]{flex:1}.node-icon[data-v-00a3cb25]{touch-action:manipulation;position:relative;width:21px;height:21px;border-radius:100%;box-sizing:border-box;border:5px solid #fff;background-color:#fff;cursor:pointer;align-self:flex-start}.node-icon-with-children[data-v-00a3cb25]:before{content:"";position:absolute;top:-20px;right:-30px;bottom:-10px;left:-20px;z-index:5}.node-icon-todo[data-v-00a3cb25]{border-radius:0}.node-icon .node-circle[data-v-00a3cb25]{display:block;position:absolute;width:7px;height:7px;left:50%;top:50%;transform:translate(-50%) translateY(-50%);border-radius:10px;background-color:#eee}.node-finished[data-v-00a3cb25]{text-decoration:line-through;color:#999}.node-ul[data-v-0b727349]{display:grid;grid-template-rows:1fr;transition:.25s grid-template-rows ease}.node-ul ul[data-v-0b727349]{background-color:#fff;margin:0;padding:0;list-style:none;overflow:hidden}.node-li[data-v-0b727349]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-0b727349] .sublevel .node-li{margin-left:15px}[data-v-0b727349] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute;z-index:100}[data-v-0b727349] .drag-over-center{background-color:#eee}[data-v-0b727349] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0;z-index:100}[data-v-0b727349] .has-child:not(.collapsed) .drag-over-bottom:after{left:15px}.collapsed>.node-ul[data-v-0b727349]{grid-template-rows:0fr}[data-v-0b727349] .collapsed .node-icon .node-line{display:none}[data-v-0b727349] .collapsed.has-child>.node-div>.node-icon{background-color:#ddd}.tree-title[data-v-0b727349]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-0b727349] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-0b727349] .node-li.dragging .node-icon .node-line{display:none}[data-v-0b727349] .has-child>.node-div>.node-icon .node-line{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-0b727349] .has-child>.node-div>.node-icon:hover .node-line{background-color:var(--line-color)}.record-tree-popper-content{display:flex;flex-wrap:wrap;padding:10px;box-shadow:0 2px 12px #1d1c1c1f;border:1px solid rgba(29,28,28,.12);border-radius:5px;overflow:hidden;background:#fff;z-index:9999}.record-tree-popper-content-item{padding:8px 10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.record-tree-popper-content-item.active{background:#f2f2f2}.record-tree-title-bar{position:relative;display:flex;margin-bottom:10px}.record-tree-title{padding-left:25px;font-weight:700;outline:none;font-size:18px;line-height:1.5;width:100%}.record-tree-popper-reference{display:flex;position:absolute;top:0;left:0;text-align:center;border-radius:9999px;color:#fff}.record-tree-empty-icon{display:inline-block;border-radius:9999px}.record-tree-title .node-text{margin-left:0!important}.record-tree-title-bar .popper{transform:translate3d(0,22px,0)!important}.record-tree-title-finished{text-decoration:line-through;color:#999}.record-audio[data-v-e59bd63b]{position:absolute;background:#fff;padding:20px;width:400px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.record-audio .recwave[data-v-e59bd63b]{width:300px;height:40px}.record-audio .audio-item[data-v-e59bd63b]{margin-top:10px;display:flex;align-items:center}.record-audio .audio-item a[data-v-e59bd63b]{color:#52a770;margin-left:10px;font-size:12px;cursor:pointer}.record-audio .audio-text[data-v-e59bd63b]{background:#f5f5f5;margin-top:10px;padding:8px 12px;border-radius:5px}.record-audio .buttons[data-v-e59bd63b]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-e59bd63b]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.record-audio .buttons .finish[data-v-e59bd63b]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-e59bd63b]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-e59bd63b]{border:1px solid #eee}.record-audio .buttons .oper[data-v-e59bd63b]{margin-right:10px}.record-audio .main[data-v-e59bd63b]{display:flex;align-items:center}.record-audio .duration[data-v-e59bd63b]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-e59bd63b]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-e59bd63b]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-audio-mobile[data-v-e59bd63b]{display:flex;width:100vw;position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);z-index:999;align-items:center}.record-audio-mobile .recwave[data-v-e59bd63b]{flex:1;height:30px}.record-audio-mobile .oper[data-v-e59bd63b]{margin-right:10px}.record-video[data-v-9c809fcc]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-9c809fcc]{width:300px}.buttons[data-v-9c809fcc]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-9c809fcc]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-9c809fcc]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-9c809fcc]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-9c809fcc]{border:1px solid #eee}.buttons .oper[data-v-9c809fcc]{margin-right:10px}.wrap[data-v-9c809fcc]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-9c809fcc]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-video[data-v-69fc6ef1]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;width:452px;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-69fc6ef1]{width:200px}.img-item[data-v-69fc6ef1]{width:200px;height:150px;border:1px dashed #eee;margin-left:10px}.img-item img[data-v-69fc6ef1]{width:200px}.record-content[data-v-69fc6ef1]{display:flex}.buttons[data-v-69fc6ef1]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-69fc6ef1]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-69fc6ef1]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-69fc6ef1]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-69fc6ef1]{border:1px solid #eee}.buttons .oper[data-v-69fc6ef1]{margin-right:10px}.wrap[data-v-69fc6ef1]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-69fc6ef1]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-tree-mobile .record-tree{height:calc(100vh - 45px);overflow-y:scroll}.record-tree-mobile .record-tree-main{padding-left:0;padding-right:0}.record-tree-mobile .record-tree-options{padding:12px 0;display:flex;position:fixed}.record-tree-mobile .node-icon{margin-right:8px;border:3px solid #fff}.record-tree-mobile .node-icon .node-circle{width:10px;height:10px}.record-tree-mobile .node-file-wrap{width:200px}.record-tree-mobile .node-file-right{display:none}.record-tree-mobile .node-image img{width:auto;max-height:80px}.record-tree-mobile .node-audio,.record-tree-mobile .node-video{width:200px}.record-tree-mobile .node-audio audio{width:200px;outline:none}.record-tree-mobile .node-video video{width:200px;outline:none}.record-tree-container{position:relative;height:100%}.record-tree-main{padding-left:15px;padding-right:15px;overflow:scroll;flex:1}.record-tree{position:relative;padding-bottom:40px;display:flex;flex-direction:column;overflow:hidden;height:100%}.record-tree.record-tree-nobar{padding-bottom:0}.record-tree-options{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-between;padding:5px 0;background:#fff;border-top:1px dotted #ddd;align-items:center}.record-tree-option-left{display:flex;flex:1;overflow:hidden}.record-tree-option-left-fixed{display:flex;position:relative;align-items:center;padding:0 10px}.record-tree-option-left-fixed:after{content:"";position:absolute;right:0;width:1px;background:#eee;height:20px;top:50%;transform:translateY(-50%)}.record-tree-option-left-scroll{display:flex;padding:0 10px;flex:1;overflow-x:scroll;align-items:center}.record-tree-option-left-scroll::-webkit-scrollbar{display:none}.record-tree-option-right{display:flex;align-items:center;justify-content:center;padding:0 10px;font-size:16px;position:relative}.record-tree-option-right:before{content:"";position:absolute;left:0;width:1px;background:#eee;height:20px;top:50%;transform:translateY(-50%)}.record-tree-option-item{margin:0 5px;cursor:pointer;display:flex;justify-content:center;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}img:-webkit-full-screen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain}img:fullscreen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;-o-object-fit:contain;object-fit:contain}.record-tree .node-text{flex:1;border:none;outline:none;word-break:break-all;overflow:hidden;-webkit-user-select:text;-moz-user-select:text;user-select:text}.record-tree .node-text a{color:#0076ff;cursor:pointer}.record-tree .node-text mark{background-color:transparent;text-decoration:underline;text-decoration-color:#9acd32;text-decoration-thickness:2px;text-underline-offset:2px}.record-tree .node-text p{line-height:1.3}.date-popover{display:block;padding:5px 10px;background:#333;border-radius:4px;position:fixed;z-index:9999;transform:translate(-50%,-120%);font-size:12px;color:#666;text-align:center;transition:opacity .3s;color:#fff}.date-popover:after{content:"";position:absolute;top:95%;left:50%;transform:translate(-50%);border-width:6px;border-style:solid;border-color:#333 transparent transparent transparent}.tiptap p.is-editor-empty:first-child:before{color:#adb5bd;content:attr(data-placeholder);float:left;height:0;pointer-events:none}.top-bar{display:flex}.top-bar-left{flex:1}.top-bar-right{width:50px;display:flex;justify-content:center}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- import { openBlock as st, createElementBlock as ft, createElementVNode as et, createVNode as xt, unref as Ke, Fragment as b0, renderList as w0, normalizeStyle as Gt, reactive as Ta, ref as ct, withModifiers as It, normalizeClass as Ft, createCommentVNode as kt, toDisplayString as u0, nextTick as Ot, watch as a0, onMounted as F0, onBeforeUnmount as Ma, createBlock as qt, onUnmounted as f0, computed as l0, resolveComponent as Ra, createSlots as Ca, withCtx as y0, pushScopeId as ka, popScopeId as Aa } from "vue";
2
+ import { openBlock as st, createElementBlock as ft, createElementVNode as et, createVNode as gt, unref as Ke, Fragment as b0, renderList as w0, normalizeStyle as qt, reactive as Ta, ref as ct, withModifiers as It, normalizeClass as Ft, createCommentVNode as kt, toDisplayString as u0, nextTick as Ot, watch as a0, onMounted as F0, onBeforeUnmount as Ma, createBlock as jt, onUnmounted as f0, computed as l0, resolveComponent as Ra, createSlots as Ca, withCtx as y0, pushScopeId as ka, popScopeId as Aa } from "vue";
3
3
  import na from "vue3-popper";
4
4
  import Bt from "vue-inline-svg";
5
5
  import { detectDeviceType as N0, truncateString as Ba, formatBytes as Ea, getTag as ia, isTodoTag as sa, getExt as L0, getTagStyle as oa, uuid as Ut, getTagStyleById as Da, parseMimeType as la, getSize as ua, oss as ca } from "@codernote/utils";
@@ -74,7 +74,7 @@ const qa = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
74
74
  return (F, _e) => (st(), ft("div", or, [
75
75
  et("ul", null, [
76
76
  et("li", null, [
77
- xt(Ke(Bt), {
77
+ gt(Ke(Bt), {
78
78
  src: Ke(At).clear,
79
79
  width: 16,
80
80
  height: 16,
@@ -83,7 +83,7 @@ const qa = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
83
83
  ]),
84
84
  (st(), ft(b0, null, w0(b, (N) => et("li", {
85
85
  key: N,
86
- style: Gt({ backgroundColor: N }),
86
+ style: qt({ backgroundColor: N }),
87
87
  onClick: (we) => ue(N)
88
88
  }, null, 12, lr)), 64))
89
89
  ])
@@ -317,7 +317,7 @@ const hr = ["contenteditable"], vr = {
317
317
  ref: N,
318
318
  onMousedown: It(Ce, ["prevent", "stop"])
319
319
  }, [
320
- xt(Ke(Bt), {
320
+ gt(Ke(Bt), {
321
321
  src: Ke(At).resize,
322
322
  width: 15,
323
323
  height: 15
@@ -330,7 +330,7 @@ const hr = ["contenteditable"], vr = {
330
330
  ref: ve,
331
331
  onMousedown: It(ae, ["prevent", "stop"])
332
332
  }, [
333
- xt(Ke(Bt), {
333
+ gt(Ke(Bt), {
334
334
  src: Ke(At).fullscreen,
335
335
  width: 15,
336
336
  height: 15
@@ -614,7 +614,7 @@ const va = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
614
614
  focus: be,
615
615
  bold: ge,
616
616
  color: q
617
- }), (I, ae) => (st(), qt(Ke(Oa), {
617
+ }), (I, ae) => (st(), jt(Ke(Oa), {
618
618
  editor: Ke(N),
619
619
  ref_key: "container",
620
620
  ref: b,
@@ -685,7 +685,7 @@ const va = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
685
685
  return Q({
686
686
  focus,
687
687
  dispatch: Ye
688
- }), (ge, q) => w.data.type ? (st(), qt(Ke(Tr), {
688
+ }), (ge, q) => w.data.type ? (st(), jt(Ke(Tr), {
689
689
  key: 0,
690
690
  ref_key: "mediaEditor",
691
691
  ref: ue,
@@ -695,7 +695,7 @@ const va = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
695
695
  onKeydown: N,
696
696
  onFocus: we,
697
697
  onRemove: be
698
- }, null, 8, ["data", "readOnly"])) : (st(), qt(Ke(Cr), {
698
+ }, null, 8, ["data", "readOnly"])) : (st(), jt(Ke(Cr), {
699
699
  key: 1,
700
700
  ref_key: "textEditor",
701
701
  ref: b,
@@ -863,16 +863,16 @@ const va = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
863
863
  }, [
864
864
  et("span", {
865
865
  class: "node-circle",
866
- style: Gt(Ke(oa)(N.value, w.node))
866
+ style: qt(Ke(oa)(N.value, w.node))
867
867
  }, null, 4),
868
868
  et("span", {
869
869
  class: "node-line",
870
- style: Gt({
870
+ style: qt({
871
871
  "--line-color": N.value ? N.value.color : "#eee"
872
872
  })
873
873
  }, null, 4)
874
874
  ], 2),
875
- xt(Ke(_a), {
875
+ gt(Ke(_a), {
876
876
  ref_key: "editor",
877
877
  ref: _e,
878
878
  class: Ft({
@@ -1227,13 +1227,13 @@ const Lr = {
1227
1227
  "has-child": !!(Re.children || []).length
1228
1228
  })
1229
1229
  }, [
1230
- xt(Ke(J0), {
1230
+ gt(Ke(J0), {
1231
1231
  readOnly: "",
1232
1232
  tags: w.tags,
1233
1233
  node: Re,
1234
1234
  onChange: Je
1235
1235
  }, null, 8, ["tags", "node"]),
1236
- (Re.children || []).length ? (st(), qt(He, {
1236
+ (Re.children || []).length ? (st(), jt(He, {
1237
1237
  key: 0,
1238
1238
  readOnly: "",
1239
1239
  nodes: Re.children,
@@ -1261,7 +1261,7 @@ const Lr = {
1261
1261
  onDragleave: It((Pe) => Ke(O0)(Pe, Re), ["stop"]),
1262
1262
  onPaste: It((Pe) => ve(Pe, Re), ["stop"])
1263
1263
  }, [
1264
- xt(Ke(J0), {
1264
+ gt(Ke(J0), {
1265
1265
  node: Re,
1266
1266
  tags: w.tags,
1267
1267
  onChange: Je,
@@ -1272,7 +1272,7 @@ const Lr = {
1272
1272
  onTab: be,
1273
1273
  onRemove: Ee
1274
1274
  }, null, 8, ["node", "tags"]),
1275
- (Re.children || []).length ? (st(), qt(He, {
1275
+ (Re.children || []).length ? (st(), jt(He, {
1276
1276
  key: 0,
1277
1277
  nodes: Re.children,
1278
1278
  tags: w.tags,
@@ -1453,11 +1453,11 @@ const Lr = {
1453
1453
  });
1454
1454
  }
1455
1455
  return (ie, ee) => (st(), ft("div", Vr, [
1456
- w.tags.length ? (st(), qt(Ke(na), { key: 0 }, Ca({
1456
+ w.tags.length ? (st(), jt(Ke(na), { key: 0 }, Ca({
1457
1457
  default: y0(() => [
1458
1458
  et("span", {
1459
1459
  class: "record-tree-popper-reference",
1460
- style: Gt({
1460
+ style: qt({
1461
1461
  top: b.tagT,
1462
1462
  left: b.tagL,
1463
1463
  width: b.tagSize + "px",
@@ -1473,7 +1473,7 @@ const Lr = {
1473
1473
  fn: y0(() => [
1474
1474
  et("div", {
1475
1475
  class: "record-tree-popper-content",
1476
- style: Gt({ width: b.popW, height: b.popH })
1476
+ style: qt({ width: b.popW, height: b.popH })
1477
1477
  }, [
1478
1478
  (st(!0), ft(b0, null, w0(w.tags, (ke) => (st(), ft("span", {
1479
1479
  class: Ft(["record-tree-popper-content-item", {
@@ -1484,7 +1484,7 @@ const Lr = {
1484
1484
  }, [
1485
1485
  et("span", {
1486
1486
  class: "record-tree-empty-icon",
1487
- style: Gt({
1487
+ style: qt({
1488
1488
  width: b.tagSize + "px",
1489
1489
  height: b.tagSize + "px",
1490
1490
  ...Ke(oa)(ke)
@@ -1496,7 +1496,7 @@ const Lr = {
1496
1496
  key: "0"
1497
1497
  }
1498
1498
  ]), 1024)) : kt("", !0),
1499
- xt(Ke(_a), {
1499
+ gt(Ke(_a), {
1500
1500
  id: "tree_title",
1501
1501
  ref_key: "recordTitle",
1502
1502
  ref: ue,
@@ -10330,13 +10330,13 @@ const D0 = /* @__PURE__ */ H0(sn);
10330
10330
  -0.313819 * 2
10331
10331
  ];
10332
10332
  this.L3psycho_anal_ns = function(fe, V, se, je, Ge, Me, ze, qe, We, ot) {
10333
- var $e = fe.internal_flags, yt = ve([2, i.BLKSIZE]), dt = ve([2, 3, i.BLKSIZE_s]), bt = N(i.CBANDS + 1), Tt = N(i.CBANDS + 1), ht = N(i.CBANDS + 2), it = _e(2), mt = _e(2), Dt, Ze, lt, rt, gt, Wt, Nt, vt, d0 = ve([2, 576]), Ht, $t = _e(i.CBANDS + 2), e0 = _e(i.CBANDS + 2);
10333
+ var $e = fe.internal_flags, yt = ve([2, i.BLKSIZE]), dt = ve([2, 3, i.BLKSIZE_s]), bt = N(i.CBANDS + 1), Tt = N(i.CBANDS + 1), ht = N(i.CBANDS + 2), it = _e(2), mt = _e(2), Dt, Ze, lt, rt, xt, Wt, Nt, vt, d0 = ve([2, 576]), Ht, $t = _e(i.CBANDS + 2), e0 = _e(i.CBANDS + 2);
10334
10334
  for (ge.fill(e0, 0), Dt = $e.channels_out, fe.mode == J.JOINT_STEREO && (Dt = 4), fe.VBR == T.vbr_off ? Ht = $e.ResvMax == 0 ? 0 : $e.ResvSize / $e.ResvMax * 0.5 : fe.VBR == T.vbr_rh || fe.VBR == T.vbr_mtrh || fe.VBR == T.vbr_mt ? Ht = 0.6 : Ht = 1, Ze = 0; Ze < $e.channels_out; Ze++) {
10335
10335
  var r0 = V[Ze], n0 = se + 576 - 350 - H + 192;
10336
10336
  for (rt = 0; rt < 576; rt++) {
10337
10337
  var x0, S0;
10338
- for (x0 = r0[n0 + rt + 10], S0 = 0, gt = 0; gt < (H - 1) / 2 - 1; gt += 2)
10339
- x0 += at[gt] * (r0[n0 + rt + gt] + r0[n0 + rt + H - gt]), S0 += at[gt + 1] * (r0[n0 + rt + gt + 1] + r0[n0 + rt + H - gt - 1]);
10338
+ for (x0 = r0[n0 + rt + 10], S0 = 0, xt = 0; xt < (H - 1) / 2 - 1; xt += 2)
10339
+ x0 += at[xt] * (r0[n0 + rt + xt] + r0[n0 + rt + H - xt]), S0 += at[xt + 1] * (r0[n0 + rt + xt + 1] + r0[n0 + rt + H - xt - 1]);
10340
10340
  d0[Ze][rt] = x0 + S0;
10341
10341
  }
10342
10342
  Ge[je][Ze].en.assign($e.en[Ze]), Ge[je][Ze].thm.assign($e.thm[Ze]), Dt > 2 && b();
@@ -10450,8 +10450,8 @@ const D0 = /* @__PURE__ */ H0(sn);
10450
10450
  }
10451
10451
  dt[ht] = qe * it;
10452
10452
  for (var lt = 0; lt < yt; lt++) {
10453
- var rt, gt, Wt, Nt, vt;
10454
- Wt = ot[lt], Nt = ot[lt + 1], rt = 0 | Math.floor(0.5 + $e * (Wt - 0.5)), rt < 0 && (rt = 0), gt = 0 | Math.floor(0.5 + $e * (Nt - 0.5)), gt > We / 2 && (gt = We / 2), se[lt] = (Tt[rt] + Tt[gt]) / 2, V[lt] = Tt[gt];
10453
+ var rt, xt, Wt, Nt, vt;
10454
+ Wt = ot[lt], Nt = ot[lt + 1], rt = 0 | Math.floor(0.5 + $e * (Wt - 0.5)), rt < 0 && (rt = 0), xt = 0 | Math.floor(0.5 + $e * (Nt - 0.5)), xt > We / 2 && (xt = We / 2), se[lt] = (Tt[rt] + Tt[xt]) / 2, V[lt] = Tt[xt];
10455
10455
  var d0 = bt * Nt;
10456
10456
  ze[lt] = (d0 - dt[V[lt]]) / (dt[V[lt] + 1] - dt[V[lt]]), ze[lt] < 0 ? ze[lt] = 0 : ze[lt] > 1 && (ze[lt] = 1), vt = Rt(qe * ot[lt] * $e), vt = Math.min(vt, 15.5) / 15.5, Me[lt] = Math.pow(
10457
10457
  10,
@@ -10592,8 +10592,8 @@ const D0 = /* @__PURE__ */ H0(sn);
10592
10592
  {
10593
10593
  var rt;
10594
10594
  rt = L, fe.exp_nspsytune & 2 && (rt = 1), Math.abs(fe.msfix) > 0 && (rt = fe.msfix), fe.msfix = rt;
10595
- for (var gt = 0; gt < V.npart_l; gt++)
10596
- V.s3ind[gt][1] > V.npart_l - 1 && (V.s3ind[gt][1] = V.npart_l - 1);
10595
+ for (var xt = 0; xt < V.npart_l; xt++)
10596
+ V.s3ind[xt][1] > V.npart_l - 1 && (V.s3ind[xt][1] = V.npart_l - 1);
10597
10597
  }
10598
10598
  var Wt = 576 * V.mode_gr / bt;
10599
10599
  if (V.ATH.decay = Math.pow(10, -12 / 10 * Wt), V.ATH.adjust = 0.01, V.ATH.adjustLimit = 1, fe.ATHtype != -1) {
@@ -10604,11 +10604,11 @@ const D0 = /* @__PURE__ */ H0(sn);
10604
10604
  V.ATH.eql_w[se] *= vt;
10605
10605
  }
10606
10606
  {
10607
- for (var gt = it = 0; gt < V.npart_s; ++gt)
10608
- for (se = 0; se < V.numlines_s[gt]; ++se)
10607
+ for (var xt = it = 0; xt < V.npart_s; ++xt)
10608
+ for (se = 0; se < V.numlines_s[xt]; ++se)
10609
10609
  ++it;
10610
- for (var gt = it = 0; gt < V.npart_l; ++gt)
10611
- for (se = 0; se < V.numlines_l[gt]; ++se)
10610
+ for (var xt = it = 0; xt < V.npart_l; ++xt)
10611
+ for (se = 0; se < V.numlines_l[xt]; ++se)
10612
10612
  ++it;
10613
10613
  }
10614
10614
  for (it = 0, se = 0; se < V.npart_l; se++) {
@@ -10625,7 +10625,7 @@ const D0 = /* @__PURE__ */ H0(sn);
10625
10625
  V.mld_cb_s[se] = 1;
10626
10626
  return 0;
10627
10627
  };
10628
- function jt(fe, V) {
10628
+ function Gt(fe, V) {
10629
10629
  fe < -0.3 && (fe = 3410), fe /= 1e3, fe = Math.max(0.1, fe);
10630
10630
  var se = 3.64 * Math.pow(fe, -0.8) - 6.8 * Math.exp(-0.6 * Math.pow(fe - 3.4, 2)) + 6 * Math.exp(-0.15 * Math.pow(fe - 8.7, 2)) + (0.6 + 0.04 * V) * 1e-3 * Math.pow(fe, 4);
10631
10631
  return se;
@@ -10634,22 +10634,22 @@ const D0 = /* @__PURE__ */ H0(sn);
10634
10634
  var se;
10635
10635
  switch (V.ATHtype) {
10636
10636
  case 0:
10637
- se = jt(fe, 9);
10637
+ se = Gt(fe, 9);
10638
10638
  break;
10639
10639
  case 1:
10640
- se = jt(fe, -1);
10640
+ se = Gt(fe, -1);
10641
10641
  break;
10642
10642
  case 2:
10643
- se = jt(fe, 0);
10643
+ se = Gt(fe, 0);
10644
10644
  break;
10645
10645
  case 3:
10646
- se = jt(fe, 1) + 6;
10646
+ se = Gt(fe, 1) + 6;
10647
10647
  break;
10648
10648
  case 4:
10649
- se = jt(fe, V.ATHcurve);
10649
+ se = Gt(fe, V.ATHcurve);
10650
10650
  break;
10651
10651
  default:
10652
- se = jt(fe, 0);
10652
+ se = Gt(fe, 0);
10653
10653
  break;
10654
10654
  }
10655
10655
  return se;
@@ -11008,7 +11008,7 @@ const D0 = /* @__PURE__ */ H0(sn);
11008
11008
  for (at = 0; at < D; ++at)
11009
11009
  Et[1][at] *= a.scale_right;
11010
11010
  a.num_channels == 2 && Ne.channels_out == 1 && b(), Rt = c(a), St[0] = Ne.mfbuf[0], St[1] = Ne.mfbuf[1];
11011
- for (var jt = 0; D > 0; ) {
11011
+ for (var Gt = 0; D > 0; ) {
11012
11012
  var fe = [null, null], V = 0, se = 0;
11013
11013
  fe[0] = Et[0], fe[1] = Et[1];
11014
11014
  var je = new S();
@@ -11016,7 +11016,7 @@ const D0 = /* @__PURE__ */ H0(sn);
11016
11016
  a,
11017
11017
  St,
11018
11018
  fe,
11019
- jt,
11019
+ Gt,
11020
11020
  D,
11021
11021
  je
11022
11022
  ), V = je.n_in, se = je.n_out, Ne.findReplayGain && !Ne.decode_on_the_fly && g.AnalyzeSamples(
@@ -11029,7 +11029,7 @@ const D0 = /* @__PURE__ */ H0(sn);
11029
11029
  Ne.channels_out
11030
11030
  ) == ee.GAIN_ANALYSIS_ERROR)
11031
11031
  return -6;
11032
- if (D -= V, jt += V, Ne.channels_out == 2, Ne.mf_size += se, Ne.mf_samples_to_encode < 1 && b(), Ne.mf_samples_to_encode += se, Ne.mf_size >= Rt) {
11032
+ if (D -= V, Gt += V, Ne.channels_out == 2, Ne.mf_size += se, Ne.mf_samples_to_encode < 1 && b(), Ne.mf_samples_to_encode += se, Ne.mf_size >= Rt) {
11033
11033
  var Ge = Le - Qe;
11034
11034
  if (Le == 0 && (Ge = 0), nt = m(
11035
11035
  a,
@@ -11302,7 +11302,7 @@ const ga = (w) => (ka("data-v-e59bd63b"), w = w(), Aa(), w), on = {
11302
11302
  }
11303
11303
  return (ie, ee) => (st(), ft("div", {
11304
11304
  class: "wrap",
11305
- style: Gt({
11305
+ style: qt({
11306
11306
  width: Ee.value
11307
11307
  })
11308
11308
  }, [
@@ -11313,7 +11313,7 @@ const ga = (w) => (ka("data-v-e59bd63b"), w = w(), Aa(), w), on = {
11313
11313
  title: "停止录制",
11314
11314
  class: "oper"
11315
11315
  }, [
11316
- xt(Ke(Bt), {
11316
+ gt(Ke(Bt), {
11317
11317
  src: Ke(At).stop,
11318
11318
  width: 24,
11319
11319
  height: 24
@@ -11324,7 +11324,7 @@ const ga = (w) => (ka("data-v-e59bd63b"), w = w(), Aa(), w), on = {
11324
11324
  title: "开始录制",
11325
11325
  class: "oper"
11326
11326
  }, [
11327
- xt(Ke(Bt), {
11327
+ gt(Ke(Bt), {
11328
11328
  src: Ke(At).record,
11329
11329
  width: 24,
11330
11330
  height: 24
@@ -11352,7 +11352,7 @@ const ga = (w) => (ka("data-v-e59bd63b"), w = w(), Aa(), w), on = {
11352
11352
  title: "停止录制",
11353
11353
  class: "oper"
11354
11354
  }, [
11355
- xt(Ke(Bt), {
11355
+ gt(Ke(Bt), {
11356
11356
  src: Ke(At).stop,
11357
11357
  width: 24,
11358
11358
  height: 24
@@ -11363,7 +11363,7 @@ const ga = (w) => (ka("data-v-e59bd63b"), w = w(), Aa(), w), on = {
11363
11363
  title: "开始录制",
11364
11364
  class: "oper"
11365
11365
  }, [
11366
- xt(Ke(Bt), {
11366
+ gt(Ke(Bt), {
11367
11367
  src: Ke(At).record,
11368
11368
  width: 24,
11369
11369
  height: 24
@@ -14002,7 +14002,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14002
14002
  }
14003
14003
  return (Ce, T) => (st(), ft("div", {
14004
14004
  class: "wrap",
14005
- style: Gt({
14005
+ style: qt({
14006
14006
  width: we.value
14007
14007
  })
14008
14008
  }, [
@@ -14022,7 +14022,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14022
14022
  title: "停止录制",
14023
14023
  class: "oper"
14024
14024
  }, [
14025
- xt(Ke(Bt), {
14025
+ gt(Ke(Bt), {
14026
14026
  src: Ke(At).stop,
14027
14027
  width: 24,
14028
14028
  height: 24
@@ -14033,7 +14033,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14033
14033
  title: "开始录制",
14034
14034
  class: "oper"
14035
14035
  }, [
14036
- xt(Ke(Bt), {
14036
+ gt(Ke(Bt), {
14037
14037
  src: Ke(At).record,
14038
14038
  width: 24,
14039
14039
  height: 24
@@ -14098,7 +14098,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14098
14098
  }
14099
14099
  return ve(), (q, I) => (st(), ft("div", {
14100
14100
  class: "wrap",
14101
- style: Gt({
14101
+ style: qt({
14102
14102
  width: _e.value
14103
14103
  })
14104
14104
  }, [
@@ -14133,7 +14133,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14133
14133
  title: "拍照",
14134
14134
  class: "oper"
14135
14135
  }, [
14136
- xt(Ke(Bt), {
14136
+ gt(Ke(Bt), {
14137
14137
  src: Ke(At).photo,
14138
14138
  width: 24,
14139
14139
  height: 24
@@ -14158,7 +14158,10 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14158
14158
  })
14159
14159
  ], 4));
14160
14160
  }
14161
- }, Bn = /* @__PURE__ */ Jt(An, [["__scopeId", "data-v-69fc6ef1"]]), En = { class: "top-bar" }, Dn = { class: "top-bar-left" }, Ln = { class: "record-tree-main" }, In = { id: "root_tree" }, On = {
14161
+ }, Bn = /* @__PURE__ */ Jt(An, [["__scopeId", "data-v-69fc6ef1"]]), En = {
14162
+ key: 0,
14163
+ class: "top-bar"
14164
+ }, Dn = { class: "top-bar-left" }, Ln = { class: "record-tree-main" }, In = { id: "root_tree" }, On = {
14162
14165
  key: 0,
14163
14166
  class: "record-tree-options"
14164
14167
  }, Fn = { class: "record-tree-option-left" }, Nn = { class: "record-tree-option-left-fixed" }, Yn = { class: "record-tree-option-left-scroll" }, Hn = {
@@ -14481,17 +14484,16 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14481
14484
  "record-tree": !0,
14482
14485
  "record-tree-nobar": !w.bar
14483
14486
  }),
14484
- style: Gt(
14487
+ style: qt(
14485
14488
  w.height ? {
14486
14489
  height: w.height
14487
14490
  } : ""
14488
14491
  ),
14489
14492
  onMouseenter: ie
14490
14493
  }, [
14491
- et("div", En, [
14494
+ w.showTitle ? (st(), ft("div", En, [
14492
14495
  et("div", Dn, [
14493
- w.showTitle ? (st(), qt(Ke(Ur), {
14494
- key: 0,
14496
+ gt(Ke(Ur), {
14495
14497
  ref_key: "titleEditor",
14496
14498
  ref: q,
14497
14499
  tags: w.tags,
@@ -14502,22 +14504,23 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14502
14504
  onChange: Ve,
14503
14505
  onFile: M,
14504
14506
  onDbEnter: Ae
14505
- }, null, 8, ["tags", "readOnly", "enableDbEnter", "note"])) : kt("", !0)
14507
+ }, null, 8, ["tags", "readOnly", "enableDbEnter", "note"])
14506
14508
  ]),
14507
- et("div", {
14509
+ w.readOnly ? kt("", !0) : (st(), ft("div", {
14510
+ key: 0,
14508
14511
  class: "top-bar-right",
14509
14512
  onClick: s
14510
14513
  }, [
14511
- xt(Ke(Bt), {
14514
+ gt(Ke(Bt), {
14512
14515
  src: Ye.value ? Ke(At).lock : Ke(At).unlock,
14513
14516
  width: 20,
14514
14517
  height: 20
14515
14518
  }, null, 8, ["src"])
14516
- ])
14517
- ]),
14519
+ ]))
14520
+ ])) : kt("", !0),
14518
14521
  et("div", Ln, [
14519
14522
  et("div", In, [
14520
- xt(Hr, {
14523
+ gt(Hr, {
14521
14524
  ref_key: "tree",
14522
14525
  ref: ge,
14523
14526
  nodes: F.value,
@@ -14541,7 +14544,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14541
14544
  onClick: Re,
14542
14545
  title: "左缩进"
14543
14546
  }, [
14544
- xt(Ke(Bt), {
14547
+ gt(Ke(Bt), {
14545
14548
  src: Ke(At).left,
14546
14549
  width: 20,
14547
14550
  height: 20
@@ -14552,7 +14555,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14552
14555
  onClick: Pe,
14553
14556
  title: "右缩进"
14554
14557
  }, [
14555
- xt(Ke(Bt), {
14558
+ gt(Ke(Bt), {
14556
14559
  src: Ke(At).right,
14557
14560
  width: 20,
14558
14561
  height: 20
@@ -14563,7 +14566,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14563
14566
  onClick: tt,
14564
14567
  title: "上移"
14565
14568
  }, [
14566
- xt(Ke(Bt), {
14569
+ gt(Ke(Bt), {
14567
14570
  src: Ke(At).up,
14568
14571
  width: 20,
14569
14572
  height: 20
@@ -14574,7 +14577,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14574
14577
  onClick: Xe,
14575
14578
  title: "移动"
14576
14579
  }, [
14577
- xt(Ke(Bt), {
14580
+ gt(Ke(Bt), {
14578
14581
  src: Ke(At).down,
14579
14582
  width: 20,
14580
14583
  height: 20
@@ -14587,23 +14590,23 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14587
14590
  onClick: k,
14588
14591
  title: "加粗"
14589
14592
  }, [
14590
- xt(Ke(Bt), {
14593
+ gt(Ke(Bt), {
14591
14594
  src: Ke(At).bold,
14592
14595
  width: 20,
14593
14596
  height: 20
14594
14597
  }, null, 8, ["src"])
14595
14598
  ]),
14596
14599
  Ke(_t).isMobile ? kt("", !0) : (st(), ft("div", Hn, [
14597
- xt(Ke(na), {
14600
+ gt(Ke(na), {
14598
14601
  placement: "top",
14599
14602
  hover: !0,
14600
14603
  arrow: !0
14601
14604
  }, {
14602
14605
  content: y0(() => [
14603
- xt(Ke(cr), { onChange: e })
14606
+ gt(Ke(cr), { onChange: e })
14604
14607
  ]),
14605
14608
  default: y0(() => [
14606
- xt(Ke(Bt), {
14609
+ gt(Ke(Bt), {
14607
14610
  src: Ke(At).color,
14608
14611
  width: 20,
14609
14612
  height: 20
@@ -14617,7 +14620,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14617
14620
  onClick: v,
14618
14621
  title: "添加附件"
14619
14622
  }, [
14620
- xt(Ke(Bt), {
14623
+ gt(Ke(Bt), {
14621
14624
  src: Ke(At).attach,
14622
14625
  width: 20,
14623
14626
  height: 20
@@ -14628,7 +14631,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14628
14631
  onClick: W,
14629
14632
  title: "录制音频"
14630
14633
  }, [
14631
- xt(Ke(Bt), {
14634
+ gt(Ke(Bt), {
14632
14635
  src: Ke(At).audio,
14633
14636
  width: 20,
14634
14637
  height: 20
@@ -14639,7 +14642,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14639
14642
  onClick: C,
14640
14643
  title: "录制视频"
14641
14644
  }, [
14642
- xt(Ke(Bt), {
14645
+ gt(Ke(Bt), {
14643
14646
  src: Ke(At).video,
14644
14647
  width: 20,
14645
14648
  height: 20
@@ -14650,7 +14653,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14650
14653
  onClick: x,
14651
14654
  title: "拍照"
14652
14655
  }, [
14653
- xt(Ke(Bt), {
14656
+ gt(Ke(Bt), {
14654
14657
  src: Ke(At).photo,
14655
14658
  width: 20,
14656
14659
  height: 20
@@ -14689,20 +14692,20 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14689
14692
  }, null, 544)
14690
14693
  ])
14691
14694
  ])) : kt("", !0),
14692
- N.value ? (st(), qt(Ke(bn), {
14695
+ N.value ? (st(), jt(Ke(bn), {
14693
14696
  key: 1,
14694
14697
  isMobile: Ke(_t).isMobile,
14695
14698
  responsive: w.responsive,
14696
14699
  onFinish: i,
14697
14700
  onCancel: G[4] || (G[4] = (le) => N.value = !1)
14698
14701
  }, null, 8, ["isMobile", "responsive"])) : kt("", !0),
14699
- we.value ? (st(), qt(Ke(Sn), {
14702
+ we.value ? (st(), jt(Ke(Sn), {
14700
14703
  key: 2,
14701
14704
  responsive: w.responsive,
14702
14705
  onFinish: re,
14703
14706
  onCancel: G[5] || (G[5] = (le) => we.value = !1)
14704
14707
  }, null, 8, ["responsive"])) : kt("", !0),
14705
- ve.value ? (st(), qt(Ke(Bn), {
14708
+ ve.value ? (st(), jt(Ke(Bn), {
14706
14709
  key: 3,
14707
14710
  responsive: w.responsive,
14708
14711
  onFinish: re,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codernote/record-tree",
3
- "version": "2.5.6",
3
+ "version": "2.5.7",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "dependencies": {