@codernote/record-tree 2.4.0-beta.4 → 2.4.0-beta.6

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 +41 -30
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
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-b1f6b6b5]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-b1f6b6b5]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-b1f6b6b5]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-b1f6b6b5]{display:block}.node-image img[data-v-b1f6b6b5]{outline:none}.node-audio[data-v-b1f6b6b5]{width:300px}.node-audio audio[data-v-b1f6b6b5]{width:300px;outline:none}.node-video video[data-v-b1f6b6b5]{outline:none}.node-del[data-v-b1f6b6b5]{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-b1f6b6b5]:before,.node-del[data-v-b1f6b6b5]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-b1f6b6b5]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-b1f6b6b5]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-b1f6b6b5]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-b1f6b6b5]{flex:1}.node-file-left h6[data-v-b1f6b6b5]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-b1f6b6b5]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-b1f6b6b5]{color:#52a770;font-size:14px}@keyframes blinkBorder-b1f6b6b5{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-b1f6b6b5]:focus{animation:blinkBorder-b1f6b6b5 1s infinite}.fullscreen-handle[data-v-b1f6b6b5]{width:15px;height:15px;position:absolute;bottom:0;right:16px;cursor:pointer;background:#fff9}.resize-handle[data-v-b1f6b6b5]{width:15px;height:15px;position:absolute;bottom:0;right:0;cursor:se-resize;transform:rotate(90deg);background:#fff9}.resize-handle svg[data-v-b1f6b6b5]{cursor:se-resize}.ProseMirror{outline:none}.node-div[data-v-f3532545]{display:flex;align-items:center;position:relative}.node-div>div[data-v-f3532545]{flex:1}.node-icon[data-v-f3532545]{position:relative;width:24px;height:24px;border-radius:100%;box-sizing:border-box;border:6px solid #fff;background-color:#fff;cursor:pointer;align-self:flex-start}.node-icon-todo[data-v-f3532545]{border-radius:0}.node-icon .node-circle[data-v-f3532545]{display:block;position:absolute;width:7px;height:7px;left:50%;top:50%;transform:translate(-50%) translateY(-50%);border-radius:10px;background-color:#eee}.node-icon[data-v-f3532545]:hover{background-color:#ddd}.node-finished[data-v-f3532545]{text-decoration:line-through;color:#999}.node-ul[data-v-56e2e724]{background-color:#fff;margin:0;padding:0;list-style:none}.node-li[data-v-56e2e724]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-56e2e724] .sublevel .node-li{margin-left:15px}[data-v-56e2e724] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-56e2e724] .drag-over-center{background-color:#eee}[data-v-56e2e724] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>ul[data-v-56e2e724]{display:none}[data-v-56e2e724] .collapsed .node-icon .node-line{display:none}[data-v-56e2e724] .collapsed.has-child .node-icon{background-color:#ddd}.tree-title[data-v-56e2e724]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-56e2e724] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-56e2e724] .node-li.dragging .node-icon .node-line{display:none}[data-v-56e2e724] .has-child>.node-div>.node-icon .node-line{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-56e2e724] .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:3px}.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-e8535564]{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-e8535564]{width:300px;height:40px}.record-audio .audio-item[data-v-e8535564]{margin-top:10px;display:flex;align-items:center}.record-audio .audio-item a[data-v-e8535564]{color:#52a770;margin-left:10px;font-size:12px;cursor:pointer}.record-audio .audio-text[data-v-e8535564]{background:#f5f5f5;margin-top:10px;padding:8px 12px;border-radius:5px}.record-audio .buttons[data-v-e8535564]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-e8535564]{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-e8535564]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-e8535564]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-e8535564]{border:1px solid #eee}.record-audio .buttons .oper[data-v-e8535564]{margin-right:10px}.record-audio .main[data-v-e8535564]{display:flex;align-items:center}.record-audio .duration[data-v-e8535564]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-e8535564]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-e8535564]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-audio-mobile[data-v-e8535564]{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-e8535564]{flex:1;height:30px}.record-audio-mobile .oper[data-v-e8535564]{margin-right:10px}.record-video[data-v-be255be7]{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-be255be7]{width:300px}.buttons[data-v-be255be7]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-be255be7]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-be255be7]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-be255be7]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-be255be7]{border:1px solid #eee}.buttons .oper[data-v-be255be7]{margin-right:10px}.wrap[data-v-be255be7]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-be255be7]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-video[data-v-d1a4de11]{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-d1a4de11]{width:200px}.img-item[data-v-d1a4de11]{width:200px;height:150px;border:1px dashed #eee;margin-left:10px}.img-item img[data-v-d1a4de11]{width:200px}.record-content[data-v-d1a4de11]{display:flex}.buttons[data-v-d1a4de11]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-d1a4de11]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-d1a4de11]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-d1a4de11]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-d1a4de11]{border:1px solid #eee}.buttons .oper[data-v-d1a4de11]{margin-right:10px}.wrap[data-v-d1a4de11]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-d1a4de11]{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 .record-tree-option-item{flex:1;max-width:32px}.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}.record-tree-option-left{display:flex;flex:1;padding-left:10px}.record-tree-option-right{padding-right:10px;font-size:14px}.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}.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}.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}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
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-b1f6b6b5]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-b1f6b6b5]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-b1f6b6b5]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-b1f6b6b5]{display:block}.node-image img[data-v-b1f6b6b5]{outline:none}.node-audio[data-v-b1f6b6b5]{width:300px}.node-audio audio[data-v-b1f6b6b5]{width:300px;outline:none}.node-video video[data-v-b1f6b6b5]{outline:none}.node-del[data-v-b1f6b6b5]{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-b1f6b6b5]:before,.node-del[data-v-b1f6b6b5]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-b1f6b6b5]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-b1f6b6b5]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-b1f6b6b5]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-b1f6b6b5]{flex:1}.node-file-left h6[data-v-b1f6b6b5]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-b1f6b6b5]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-b1f6b6b5]{color:#52a770;font-size:14px}@keyframes blinkBorder-b1f6b6b5{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-b1f6b6b5]:focus{animation:blinkBorder-b1f6b6b5 1s infinite}.fullscreen-handle[data-v-b1f6b6b5]{width:15px;height:15px;position:absolute;bottom:0;right:16px;cursor:pointer;background:#fff9}.resize-handle[data-v-b1f6b6b5]{width:15px;height:15px;position:absolute;bottom:0;right:0;cursor:se-resize;transform:rotate(90deg);background:#fff9}.resize-handle svg[data-v-b1f6b6b5]{cursor:se-resize}.ProseMirror{outline:none}.node-div[data-v-6f11cf51]{display:flex;align-items:center;position:relative}.node-div>div[data-v-6f11cf51]{flex:1}.node-icon[data-v-6f11cf51]{position:relative;width:24px;height:24px;border-radius:100%;box-sizing:border-box;border:6px solid #fff;background-color:#fff;cursor:pointer;align-self:flex-start}.node-icon-todo[data-v-6f11cf51]{border-radius:0}.node-icon .node-circle[data-v-6f11cf51]{display:block;position:absolute;width:7px;height:7px;left:50%;top:50%;transform:translate(-50%) translateY(-50%);border-radius:10px;background-color:#eee}.node-icon[data-v-6f11cf51]:hover{background-color:#ddd}.node-finished[data-v-6f11cf51]{text-decoration:line-through;color:#999}.node-ul[data-v-5bc86c4d]{background-color:#fff;margin:0;padding:0;list-style:none}.node-li[data-v-5bc86c4d]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-5bc86c4d] .sublevel .node-li{margin-left:15px}[data-v-5bc86c4d] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-5bc86c4d] .drag-over-center{background-color:#eee}[data-v-5bc86c4d] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>ul[data-v-5bc86c4d]{display:none}[data-v-5bc86c4d] .collapsed .node-icon .node-line{display:none}[data-v-5bc86c4d] .collapsed.has-child .node-icon{background-color:#ddd}.tree-title[data-v-5bc86c4d]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-5bc86c4d] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-5bc86c4d] .node-li.dragging .node-icon .node-line{display:none}[data-v-5bc86c4d] .has-child>.node-div>.node-icon .node-line{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-5bc86c4d] .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:3px}.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-e8535564]{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-e8535564]{width:300px;height:40px}.record-audio .audio-item[data-v-e8535564]{margin-top:10px;display:flex;align-items:center}.record-audio .audio-item a[data-v-e8535564]{color:#52a770;margin-left:10px;font-size:12px;cursor:pointer}.record-audio .audio-text[data-v-e8535564]{background:#f5f5f5;margin-top:10px;padding:8px 12px;border-radius:5px}.record-audio .buttons[data-v-e8535564]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-e8535564]{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-e8535564]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-e8535564]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-e8535564]{border:1px solid #eee}.record-audio .buttons .oper[data-v-e8535564]{margin-right:10px}.record-audio .main[data-v-e8535564]{display:flex;align-items:center}.record-audio .duration[data-v-e8535564]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-e8535564]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-e8535564]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-audio-mobile[data-v-e8535564]{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-e8535564]{flex:1;height:30px}.record-audio-mobile .oper[data-v-e8535564]{margin-right:10px}.record-video[data-v-be255be7]{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-be255be7]{width:300px}.buttons[data-v-be255be7]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-be255be7]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-be255be7]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-be255be7]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-be255be7]{border:1px solid #eee}.buttons .oper[data-v-be255be7]{margin-right:10px}.wrap[data-v-be255be7]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-be255be7]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-video[data-v-d1a4de11]{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-d1a4de11]{width:200px}.img-item[data-v-d1a4de11]{width:200px;height:150px;border:1px dashed #eee;margin-left:10px}.img-item img[data-v-d1a4de11]{width:200px}.record-content[data-v-d1a4de11]{display:flex}.buttons[data-v-d1a4de11]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-d1a4de11]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-d1a4de11]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-d1a4de11]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-d1a4de11]{border:1px solid #eee}.buttons .oper[data-v-d1a4de11]{margin-right:10px}.wrap[data-v-d1a4de11]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-d1a4de11]{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 .record-tree-option-item{flex:1;max-width:32px}.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}.record-tree-option-left{display:flex;flex:1;padding-left:10px}.record-tree-option-right{padding-right:10px;font-size:14px}.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}.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}.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}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
2
  import tr from "vue3-popper";
3
- import { openBlock as et, createElementBlock as nt, createElementVNode as We, createVNode as yt, unref as Et, Fragment as v0, renderList as m0, normalizeStyle as qt, reactive as yr, ref as zt, withModifiers as kt, normalizeClass as Lt, createCommentVNode as Rt, toDisplayString as o0, nextTick as j0, watch as W0, onMounted as xr, onBeforeUnmount as Sr, createBlock as Pt, resolveComponent as Bt, createSlots as Tr, withCtx as _0, pushScopeId as Rr, popScopeId as Mr } from "vue";
3
+ import { openBlock as et, createElementBlock as nt, createElementVNode as We, createVNode as yt, unref as Et, Fragment as v0, renderList as m0, normalizeStyle as Ut, reactive as yr, ref as qt, withModifiers as kt, normalizeClass as Lt, createCommentVNode as Rt, toDisplayString as o0, nextTick as j0, watch as W0, onMounted as xr, onBeforeUnmount as Sr, createBlock as Pt, resolveComponent as Bt, createSlots as Tr, withCtx as _0, pushScopeId as Rr, popScopeId as Mr } from "vue";
4
4
  import Jt from "vue-inline-svg";
5
5
  import { detectDeviceType as L0, truncateString as Cr, formatBytes as Ar, getTag as rr, isTodoTag as ar, getExt as k0, getTagStyle as ir, uuid as Yt, getTagStyleById as kr, icons as Br, parseMimeType as nr, getSize as sr, oss as or } from "@codernote/utils";
6
6
  import Er from "mitt";
@@ -81,7 +81,7 @@ const Ur = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
81
81
  ]),
82
82
  (et(), nt(v0, null, m0(x, (k) => We("li", {
83
83
  key: k,
84
- style: qt({ backgroundColor: k }),
84
+ style: Ut({ backgroundColor: k }),
85
85
  onClick: (ee) => N(k)
86
86
  }, null, 12, ia)), 64))
87
87
  ])
@@ -192,7 +192,7 @@ const ua = ["contenteditable"], da = {
192
192
  },
193
193
  emits: ["remove", "change", "keydown", "focus"],
194
194
  setup(a, { expose: i, emit: w }) {
195
- const x = Dt.isMobile, N = w, m = a, P = zt(), k = zt(), ee = zt(), ue = zt(), pe = zt();
195
+ const x = Dt.isMobile, N = w, m = a, P = qt(), k = qt(), ee = qt(), ue = qt(), pe = qt();
196
196
  i({
197
197
  focus: () => {
198
198
  P.value.focus();
@@ -513,7 +513,7 @@ const cr = (a) => a.tagName.toLowerCase() === "mark", I0 = () => {
513
513
  },
514
514
  emits: ["change", "keydown", "focus", "blur"],
515
515
  setup(a, { expose: i, emit: w }) {
516
- const x = zt(), N = a, m = w, P = zt(!1), k = Dr({
516
+ const x = qt(), N = a, m = w, P = qt(!1), k = Dr({
517
517
  content: N.content,
518
518
  editable: !N.readOnly,
519
519
  extensions: [
@@ -635,7 +635,7 @@ const cr = (a) => a.tagName.toLowerCase() === "mark", I0 = () => {
635
635
  },
636
636
  emits: ["change", "keydown", "focus", "remove"],
637
637
  setup(a, { expose: i, emit: w }) {
638
- const x = zt(null), N = zt(null), m = a, P = w;
638
+ const x = qt(null), N = qt(null), m = a, P = w;
639
639
  function k(Se) {
640
640
  P("keydown", Se);
641
641
  }
@@ -750,7 +750,7 @@ const cr = (a) => a.tagName.toLowerCase() === "mark", I0 = () => {
750
750
  getTagStyle: ir,
751
751
  handleClick() {
752
752
  const a = (/* @__PURE__ */ new Date()).getTime(), i = a - this.lastTapTime;
753
- clearTimeout(this.tapTimeout), console.log("currentTime", a), console.log("lastTime", this.lastTapTime), console.log("tap..", i), i < 300 && i > 0 ? this.$emit("collapse", this.node) : this.tapTimeout = setTimeout(() => {
753
+ clearTimeout(this.tapTimeout), i < 300 && i > 0 ? this.$emit("collapse", this.node) : this.tapTimeout = setTimeout(() => {
754
754
  if (this.isTodo) {
755
755
  const w = k0(this.node);
756
756
  this.update({
@@ -854,11 +854,11 @@ function Ma(a, i, w, x, N, m) {
854
854
  }, [
855
855
  We("span", {
856
856
  class: "node-circle",
857
- style: qt(m.getTagStyle(m.tag, w.node))
857
+ style: Ut(m.getTagStyle(m.tag, w.node))
858
858
  }, null, 4),
859
859
  We("span", {
860
860
  class: "node-line",
861
- style: qt({
861
+ style: Ut({
862
862
  "--line-color": m.tag ? m.tag.color : "#eee"
863
863
  })
864
864
  }, null, 4)
@@ -878,7 +878,7 @@ function Ma(a, i, w, x, N, m) {
878
878
  }, null, 8, ["class", "readOnly", "data", "tags", "onChange", "onKeydown", "onFocus", "onRemove"])
879
879
  ], 512);
880
880
  }
881
- const Ca = /* @__PURE__ */ jt(Ta, [["render", Ma], ["__scopeId", "data-v-f3532545"]]);
881
+ const Ca = /* @__PURE__ */ jt(Ta, [["render", Ma], ["__scopeId", "data-v-6f11cf51"]]);
882
882
  function hr(a) {
883
883
  var P;
884
884
  let w = (((P = a.target) == null ? void 0 : P.querySelector(".node-div")) || a.target).getBoundingClientRect(), x = a.clientY, N = w.top + w.height / 3, m = w.top + w.height / 3 * 2;
@@ -1229,9 +1229,11 @@ function Fa(a, i, w, x, N, m) {
1229
1229
  }, [
1230
1230
  yt(P, {
1231
1231
  readOnly: "",
1232
+ tags: w.tags,
1232
1233
  node: ee,
1233
- onCollapse: m.handleCollapse
1234
- }, null, 8, ["node", "onCollapse"]),
1234
+ onCollapse: m.handleCollapse,
1235
+ onChange: m.handleNodeChange
1236
+ }, null, 8, ["tags", "node", "onCollapse", "onChange"]),
1235
1237
  (ee.children || []).length ? (et(), Pt(k, {
1236
1238
  key: 0,
1237
1239
  readOnly: "",
@@ -1288,7 +1290,7 @@ function Fa(a, i, w, x, N, m) {
1288
1290
  ], 42, Oa))), 128))
1289
1291
  ]));
1290
1292
  }
1291
- const Na = /* @__PURE__ */ jt(Ea, [["render", Fa], ["__scopeId", "data-v-56e2e724"]]), Ha = {
1293
+ const Na = /* @__PURE__ */ jt(Ea, [["render", Fa], ["__scopeId", "data-v-5bc86c4d"]]), Ha = {
1292
1294
  show: !0,
1293
1295
  // tag总开关,false时取消tag所有功能
1294
1296
  tagSize: 20,
@@ -1477,7 +1479,7 @@ function Ua(a, i, w, x, N, m) {
1477
1479
  default: _0(() => [
1478
1480
  We("span", {
1479
1481
  class: "record-tree-popper-reference",
1480
- style: qt({
1482
+ style: Ut({
1481
1483
  top: N.tagConfig.tagT,
1482
1484
  left: N.tagConfig.tagL,
1483
1485
  width: N.tagConfig.tagSize + "px",
@@ -1493,7 +1495,7 @@ function Ua(a, i, w, x, N, m) {
1493
1495
  fn: _0(() => [
1494
1496
  We("div", {
1495
1497
  class: "record-tree-popper-content",
1496
- style: qt({ width: N.tagConfig.popW, height: N.tagConfig.popH })
1498
+ style: Ut({ width: N.tagConfig.popW, height: N.tagConfig.popH })
1497
1499
  }, [
1498
1500
  (et(!0), nt(v0, null, m0(w.tags, (ee) => (et(), nt("span", {
1499
1501
  class: Lt(["record-tree-popper-content-item", {
@@ -1504,7 +1506,7 @@ function Ua(a, i, w, x, N, m) {
1504
1506
  }, [
1505
1507
  We("span", {
1506
1508
  class: "record-tree-empty-icon",
1507
- style: qt({
1509
+ style: Ut({
1508
1510
  width: N.tagConfig.tagSize + "px",
1509
1511
  height: N.tagConfig.tagSize + "px",
1510
1512
  ...m.getTagStyle(ee)
@@ -10644,7 +10646,7 @@ const A0 = /* @__PURE__ */ O0(si);
10644
10646
  z.mld_cb_s[re] = 1;
10645
10647
  return 0;
10646
10648
  };
10647
- function Ut(se, z) {
10649
+ function zt(se, z) {
10648
10650
  se < -0.3 && (se = 3410), se /= 1e3, se = Math.max(0.1, se);
10649
10651
  var re = 3.64 * Math.pow(se, -0.8) - 6.8 * Math.exp(-0.6 * Math.pow(se - 3.4, 2)) + 6 * Math.exp(-0.15 * Math.pow(se - 8.7, 2)) + (0.6 + 0.04 * z) * 1e-3 * Math.pow(se, 4);
10650
10652
  return re;
@@ -10653,22 +10655,22 @@ const A0 = /* @__PURE__ */ O0(si);
10653
10655
  var re;
10654
10656
  switch (z.ATHtype) {
10655
10657
  case 0:
10656
- re = Ut(se, 9);
10658
+ re = zt(se, 9);
10657
10659
  break;
10658
10660
  case 1:
10659
- re = Ut(se, -1);
10661
+ re = zt(se, -1);
10660
10662
  break;
10661
10663
  case 2:
10662
- re = Ut(se, 0);
10664
+ re = zt(se, 0);
10663
10665
  break;
10664
10666
  case 3:
10665
- re = Ut(se, 1) + 6;
10667
+ re = zt(se, 1) + 6;
10666
10668
  break;
10667
10669
  case 4:
10668
- re = Ut(se, z.ATHcurve);
10670
+ re = zt(se, z.ATHcurve);
10669
10671
  break;
10670
10672
  default:
10671
- re = Ut(se, 0);
10673
+ re = zt(se, 0);
10672
10674
  break;
10673
10675
  }
10674
10676
  return re;
@@ -11027,7 +11029,7 @@ const A0 = /* @__PURE__ */ O0(si);
11027
11029
  for (Ke = 0; Ke < O; ++Ke)
11028
11030
  Mt[1][Ke] *= r.scale_right;
11029
11031
  r.num_channels == 2 && Me.channels_out == 1 && x(), St = f(r), wt[0] = Me.mfbuf[0], wt[1] = Me.mfbuf[1];
11030
- for (var Ut = 0; O > 0; ) {
11032
+ for (var zt = 0; O > 0; ) {
11031
11033
  var se = [null, null], z = 0, re = 0;
11032
11034
  se[0] = Mt[0], se[1] = Mt[1];
11033
11035
  var Ne = new R();
@@ -11035,7 +11037,7 @@ const A0 = /* @__PURE__ */ O0(si);
11035
11037
  r,
11036
11038
  wt,
11037
11039
  se,
11038
- Ut,
11040
+ zt,
11039
11041
  O,
11040
11042
  Ne
11041
11043
  ), z = Ne.n_in, re = Ne.n_out, Me.findReplayGain && !Me.decode_on_the_fly && T.AnalyzeSamples(
@@ -11048,7 +11050,7 @@ const A0 = /* @__PURE__ */ O0(si);
11048
11050
  Me.channels_out
11049
11051
  ) == Ue.GAIN_ANALYSIS_ERROR)
11050
11052
  return -6;
11051
- if (O -= z, Ut += z, Me.channels_out == 2, Me.mf_size += re, Me.mf_samples_to_encode < 1 && x(), Me.mf_samples_to_encode += re, Me.mf_size >= St) {
11053
+ if (O -= z, zt += z, Me.channels_out == 2, Me.mf_size += re, Me.mf_samples_to_encode < 1 && x(), Me.mf_samples_to_encode += re, Me.mf_size >= St) {
11052
11054
  var Le = xe - qe;
11053
11055
  if (xe == 0 && (Le = 0), Qe = b(
11054
11056
  r,
@@ -11338,7 +11340,7 @@ function bi(a, i, w, x, N, m) {
11338
11340
  const P = Bt("inline-svg");
11339
11341
  return et(), nt("div", {
11340
11342
  class: "wrap",
11341
- style: qt({
11343
+ style: Ut({
11342
11344
  width: a.width
11343
11345
  })
11344
11346
  }, [
@@ -14060,7 +14062,7 @@ function Ri(a, i, w, x, N, m) {
14060
14062
  const P = Bt("inline-svg");
14061
14063
  return et(), nt("div", {
14062
14064
  class: "wrap",
14063
- style: qt({
14065
+ style: Ut({
14064
14066
  width: a.width
14065
14067
  })
14066
14068
  }, [
@@ -14177,7 +14179,7 @@ function Oi(a, i, w, x, N, m) {
14177
14179
  const P = Bt("inline-svg");
14178
14180
  return et(), nt("div", {
14179
14181
  class: "wrap",
14180
- style: qt({
14182
+ style: Ut({
14181
14183
  width: a.width
14182
14184
  })
14183
14185
  }, [
@@ -14272,6 +14274,10 @@ const Fi = /* @__PURE__ */ jt(Ci, [["render", Oi], ["__scopeId", "data-v-d1a4de1
14272
14274
  mobile: {
14273
14275
  type: Boolean,
14274
14276
  default: L0() === "mobile"
14277
+ },
14278
+ height: {
14279
+ type: String,
14280
+ default: ""
14275
14281
  }
14276
14282
  },
14277
14283
  emits: ["change", "hideHoverNote", "complete", "cancel", "dbEnter", ""],
@@ -14539,6 +14545,11 @@ function ji(a, i, w, x, N, m) {
14539
14545
  "record-tree": !0,
14540
14546
  "record-tree-nobar": !w.bar
14541
14547
  }),
14548
+ style: Ut(
14549
+ w.height ? {
14550
+ height: w.height
14551
+ } : ""
14552
+ ),
14542
14553
  onMouseenter: i[1] || (i[1] = (...V) => m.hideHoverNote && m.hideHoverNote(...V))
14543
14554
  }, [
14544
14555
  w.showTitle ? (et(), Pt(P, {
@@ -14569,7 +14580,7 @@ function ji(a, i, w, x, N, m) {
14569
14580
  }, null, 8, ["nodes", "tags", "readOnly", "enableDbEnter", "hash", "isMobile", "onChange", "onFileUpload"])
14570
14581
  ])
14571
14582
  ])
14572
- ], 34),
14583
+ ], 38),
14573
14584
  w.bar && !w.readOnly ? (et(), nt("div", Pi, [
14574
14585
  We("div", Ui, [
14575
14586
  We("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codernote/record-tree",
3
- "version": "2.4.0-beta.4",
3
+ "version": "2.4.0-beta.6",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "dependencies": {
@@ -20,7 +20,7 @@
20
20
  "recordrtc": "^5.6.2",
21
21
  "vue-inline-svg": "^3.1.2",
22
22
  "vue3-popper": "^1.5.0",
23
- "@codernote/utils": "1.8.0-beta.3"
23
+ "@codernote/utils": "1.8.0-beta.4"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@vitejs/plugin-vue": "^5.0.4",