hflvcomp 0.0.9 → 0.0.10
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/hflvcomp.es.js +1437 -1412
- package/package.json +1 -1
package/dist/hflvcomp.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.subpage-container[data-v-7840b296]{display:flex;align-items:center;margin:0;overflow:hidden}.subpage-container[data-v-3deb553c]{padding:0;display:flex;align-items:center}:root{--vue-scroll-rect-scrollbar-thumb-color: rgba(122,122,122, .3);--vue-scroll-rect-scrollbar-thumb-color-light: rgba(122, 122, 122, .5);--vue-scroll-rect-scrollbar-thumb-color-pressed: rgba(112, 112, 112, .2);--vue-scroll-rect-scrollbar-thumb-radius: 5px;--vue-scroll-rect-scrollbar-thumb-margin: 0px;--vue-scroll-rect-scrollbar-size: 8px}.vue-scroll-rect{position:relative;width:100%;height:100%;margin:0;overflow:hidden}.vue-scroll-rect>.scroll-content{position:relative;max-width:100%;max-height:100%;scrollbar-width:none;-ms-overflow-style:none}.vue-scroll-rect>.scroll-content::-webkit-scrollbar{width:0;height:0}.vue-scroll-rect>.scroll-content::-ms-scrollbar{width:0;height:0}.vue-scroll-rect>.scroll-content.both{overflow:scroll}.vue-scroll-rect>.scroll-content.horizontal{overflow-x:scroll}.vue-scroll-rect>.scroll-content.vertical{overflow-y:scroll}.vue-scroll-rect:hover>.scrollbar{opacity:1;transition:opacity .1s}.vue-scroll-rect.always-show-scrollbar>.scrollbar,.vue-scroll-rect .dragging>.scrollbar{opacity:1}.vue-scroll-rect.background-clickable>.scrollbar{pointer-events:all}.vue-scroll-rect>.scrollbar{position:absolute;opacity:0;transition:opacity 1.5s;pointer-events:none}.vue-scroll-rect>.scrollbar:hover{opacity:1}.vue-scroll-rect>.scrollbar .thumb{position:absolute;background-color:var(--vue-scroll-rect-scrollbar-thumb-color);border-radius:var(--vue-scroll-rect-scrollbar-thumb-radius);pointer-events:all}.vue-scroll-rect>.scrollbar .thumb:hover{background-color:var(--vue-scroll-rect-scrollbar-thumb-color-light)}.vue-scroll-rect>.scrollbar .thumb:active{background-color:var(--vue-scroll-rect-scrollbar-thumb-color-pressed)}.vue-scroll-rect>.scrollbar.horizontal{left:0;bottom:0;right:0;height:var(--vue-scroll-rect-scrollbar-size)}.vue-scroll-rect>.scrollbar.horizontal .thumb{top:var(--vue-scroll-rect-scrollbar-thumb-margin);bottom:var(--vue-scroll-rect-scrollbar-thumb-margin)}.vue-scroll-rect>.scrollbar.vertical{top:0;bottom:0;right:0;width:var(--vue-scroll-rect-scrollbar-size)}.vue-scroll-rect>.scrollbar.vertical .thumb{left:var(--vue-scroll-rect-scrollbar-thumb-margin);right:var(--vue-scroll-rect-scrollbar-thumb-margin)}:root{--mx-menu-backgroud: #fff;--mx-menu-hover-backgroud: #f1f1f1;--mx-menu-active-backgroud: #dfdfdf;--mx-menu-open-backgroud: #f1f1f1;--mx-menu-open-hover-backgroud: #f1f1f1;--mx-menu-divider: #f0f0f0;--mx-menu-text: #2e2e2e;--mx-menu-hover-text: #2e2e2e;--mx-menu-active-text: #2e2e2e;--mx-menu-open-text: #2e2e2e;--mx-menu-open-hover-text: #2e2e2e;--mx-menu-disabled-text: #c9c8c8;--mx-menu-icon-size: 16px;--mx-menu-shadow-color: rgba(0, 0, 0, .1);--mx-menu-backgroud-radius: 10px;--mx-menu-scrollbar-thumb-color: rgba(0, 0, 0, .2);--mx-menu-scrollbar-thumb-color-light: rgba(0, 0, 0, .3);--mx-menu-scrollbar-thumb-color-pressed: rgba(0, 0, 0, .1);--mx-menu-shortcut-backgroud: #ebebeb;--mx-menu-shortcut-backgroud-hover:#ebebeb;--mx-menu-shortcut-backgroud-active:#ebebeb;--mx-menu-shortcut-backgroud-open:#ebebeb;--mx-menu-shortcut-backgroud-disabled:#fdfdfd;--mx-menu-shortcut-text: #424242;--mx-menu-shortcut-text-hover: #424242;--mx-menu-shortcut-text-active: #424242;--mx-menu-shortcut-text-open: #424242;--mx-menu-shortcut-text-disabled: #a5a5a5;--mx-menu-placeholder-width: 24px}.mx-context-menu{pointer-events:all;display:inline-block;overflow:visible;position:absolute;background-color:var(--mx-menu-backgroud);border-radius:var(--mx-menu-backgroud-radius);padding:12px 0;box-shadow:0 10px 40px 10px var(--mx-menu-shadow-color);opacity:1;transition:opacity .2s ease-in-out;--vue-scroll-rect-scrollbar-thumb-color: var(--mx-menu-scrollbar-thumb-color);--vue-scroll-rect-scrollbar-thumb-color-light: var(--mx-menu-scrollbar-thumb-color-light);--vue-scroll-rect-scrollbar-thumb-color-pressed: var(--mx-menu-scrollbar-thumb-color-pressed)}.mx-context-menu-items{position:relative;overflow:visible}.mx-context-menu-scroll{overscroll-behavior:contain}.mx-context-menu-item{display:flex;flex-direction:row;justify-content:space-between;align-items:center;position:relative;padding:6px 15px;-webkit-user-select:none;user-select:none;overflow:visible;white-space:nowrap;text-overflow:ellipsis;color:var(--mx-menu-text)}.mx-context-menu-item .mx-right-arrow,.mx-context-menu-item .mx-checked-mark{fill:var(--mx-menu-text)}.mx-context-menu-item:hover{background-color:var(--mx-menu-hover-backgroud);color:var(--mx-menu-hover-text)}.mx-context-menu-item:hover .mx-right-arrow,.mx-context-menu-item:hover .mx-checked-mark{fill:var(--mx-menu-hover-text)}.mx-context-menu-item:hover .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-hover);color:var(--mx-menu-shortcut-text-hover)}.mx-context-menu-item:active{background-color:var(--mx-menu-active-backgroud);color:var(--mx-menu-active-text)}.mx-context-menu-item:active .mx-right-arrow,.mx-context-menu-item:active .mx-checked-mark{fill:var(--mx-menu-active-text)}.mx-context-menu-item:active .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-active);color:var(--mx-menu-shortcut-text-active)}.mx-context-menu-item.open{background-color:var(--mx-menu-open-backgroud);color:var(--mx-menu-open-text)}.mx-context-menu-item.open:hover{background-color:var(--mx-menu-open-hover-backgroud);color:var(--mx-menu-open-hover-text)}.mx-context-menu-item.open .mx-right-arrow,.mx-context-menu-item.open .mx-checked-mark{fill:var(--mx-menu-open-text)}.mx-context-menu-item.open .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-open);color:var(--mx-menu-shortcut-text-open)}.mx-context-menu-item.keyboard-focus{background-color:var(--mx-menu-active-backgroud)}.mx-context-menu-item.disabled{color:var(--mx-menu-disabled-text);cursor:not-allowed}.mx-context-menu-item.disabled:hover,.mx-context-menu-item.disabled:active{background-color:transparent}.mx-context-menu-item.disabled .mx-right-arrow,.mx-context-menu-item.disabled .mx-checked-mark{fill:var(--mx-menu-disabled-text)}.mx-context-menu-item.disabled .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-disabled);color:var(--mx-menu-shortcut-text-second)}.mx-context-menu-item .mx-item-row{display:flex;flex-direction:row;align-items:center;max-width:100%}.mx-context-menu-item .mx-icon-placeholder{position:relative;display:flex;flex-direction:row;align-items:center;height:auto;overflow:hidden}.mx-context-menu-item .mx-icon-placeholder.preserve-width{width:var(--mx-menu-placeholder-width)}.mx-context-menu-item .icon{display:inline-block;font-size:var(--mx-menu-icon-size)}.mx-context-menu-item .icon.svg{width:var(--mx-menu-icon-size);height:var(--mx-menu-icon-size)}.mx-context-menu-item .label{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-inline-end:16px}.mx-context-menu-item-wrapper{position:relative}.mx-context-menu-item-sperator{display:block;padding:5px 0;background-color:var(--mx-menu-backgroud)}.mx-context-menu-item-sperator:after{display:block;content:"";background-color:var(--mx-menu-divider);height:1px}.mx-right-arrow{width:14px;height:14px}.mx-checked-mark{width:var(--mx-menu-icon-size);height:var(--mx-menu-icon-size)}.mx-shortcut{position:relative;justify-self:flex-end;font-size:11.5px;padding:2px 4px;background-color:var(--mx-menu-shortcut-backgroud);color:var(--mx-menu-shortcut-text)}.mx-menu-bar.dark,.mx-context-menu.dark{--mx-menu-backgroud: #303031;--mx-menu-hover-backgroud: #636363;--mx-menu-active-backgroud: #555555;--mx-menu-open-backgroud: #636363;--mx-menu-open-hover-backgroud: #636363;--mx-menu-divider: #464646;--mx-menu-text: #ffffff;--mx-menu-hover-text: #ffffff;--mx-menu-active-text: #ffffff;--mx-menu-open-text: #ffffff;--mx-menu-open-hover-text: #ffffff;--mx-menu-disabled-text: #9c9c9c;--mx-menu-shadow-color: rgba(51, 51, 51, .2);--mx-menu-scrollbar-thumb-color: rgba(255, 255, 255, .3);--mx-menu-scrollbar-thumb-color-light: rgba(255, 255, 255, .5);--mx-menu-scrollbar-thumb-color-pressed: rgba(255, 255, 255, .2);--mx-menu-shortcut-backgroud: #505050;--mx-menu-shortcut-backgroud-hover:#505050;--mx-menu-shortcut-backgroud-active:#505050;--mx-menu-shortcut-backgroud-open:#505050;--mx-menu-shortcut-backgroud-disabled:#444444;--mx-menu-shortcut-text: #f1f1f1;--mx-menu-shortcut-text-hover: #ffffff;--mx-menu-shortcut-text-active: #ffffff;--mx-menu-shortcut-text-open: #ffffff;--mx-menu-shortcut-text-disabled: #9d9d9d}.mx-menu-bar.flat,.mx-context-menu.flat{border-radius:0;padding:7px 0;box-shadow:0 1px 2px 1px var(--mx-menu-shadow-color)}.mx-menu-bar.flat .mx-context-menu-item,.mx-context-menu.flat .mx-context-menu-item{padding:3px 12px}.mx-menu-bar.win10,.mx-context-menu.win10{border-radius:0;padding:8px 0;border:1px solid var(--mx-menu-border-color);box-shadow:2px 2px 1px 0 var(--mx-menu-shadow-color)}.mx-menu-bar.win10,.mx-context-menu.win10{--mx-menu-backgroud: #eeeeee;--mx-menu-hover-backgroud: #d8d8d8;--mx-menu-active-backgroud: #dfdfdf;--mx-menu-open-backgroud: #f1f1f1;--mx-menu-open-hover-backgroud: #d8d8d8;--mx-menu-divider: #aaaaaa;--mx-menu-border-color: #b1b1b1;--mx-menu-shortcut-backgroud: transparent;--mx-menu-shortcut-backgroud-hover: transparent;--mx-menu-shortcut-backgroud-active: transparent;--mx-menu-shortcut-backgroud-open: transparent;--mx-menu-shortcut-backgroud-disabled:transparent;--mx-menu-shortcut-text: #272727;--mx-menu-shortcut-text-hover: #272727;--mx-menu-shortcut-text-active: #272727;--mx-menu-shortcut-text-open: #272727;--mx-menu-shortcut-text-disabled: #6b6b6b}.mx-menu-bar.win10 .mx-context-menu-item,.mx-context-menu.win10 .mx-context-menu-item{padding:2px 4px;margin:0 4px}.mx-menu-bar.win10 .mx-context-menu-item-sperator,.mx-context-menu.win10 .mx-context-menu-item-sperator{margin:0 4px}.mx-menu-bar.win10.dark,.mx-context-menu.win10.dark{--mx-menu-backgroud: #303031;--mx-menu-hover-backgroud: #636363;--mx-menu-active-backgroud: #555555;--mx-menu-open-backgroud: #636363;--mx-menu-open-hover-backgroud: #636363;--mx-menu-divider: #808080;--mx-menu-border-color: #656565;--mx-menu-shortcut-backgroud: #505050;--mx-menu-shortcut-backgroud-hover:#505050;--mx-menu-shortcut-backgroud-active:#505050;--mx-menu-shortcut-backgroud-open:#505050;--mx-menu-shortcut-backgroud-disabled:#444444;--mx-menu-shortcut-text: #f1f1f1;--mx-menu-shortcut-text-hover: #ffffff;--mx-menu-shortcut-text-active: #ffffff;--mx-menu-shortcut-text-open: #ffffff;--mx-menu-shortcut-text-disabled: #9d9d9d;padding:8px 0}.mx-menu-bar.win10.dark .mx-context-menu-item,.mx-context-menu.win10.dark .mx-context-menu-item{padding:6px 12px;margin:0}.mx-menu-bar.win10.dark .mx-context-menu-item-sperator,.mx-context-menu.win10.dark .mx-context-menu-item-sperator{margin:0 7px}.mx-menu-bar.mac,.mx-context-menu.mac{padding:8px 0;box-shadow:0 5px 7px 1px var(--mx-menu-shadow-color);border:1px solid var(--mx-menu-border-color)}.mx-menu-bar.mac,.mx-context-menu.mac{--mx-menu-backgroud: #ececec;--mx-menu-hover-backgroud: #0165e1;--mx-menu-active-backgroud: #0165e1;--mx-menu-open-backgroud: #858585;--mx-menu-open-hover-backgroud: #0165e1;--mx-menu-divider: #d2d2d2;--mx-menu-text: #232323;--mx-menu-hover-text: #fff;--mx-menu-active-text: #fff;--mx-menu-open-text: #fff;--mx-menu-open-hover-text: #fff;--mx-menu-disabled-text: #bbbbbb;--mx-menu-shadow-color: rgba(0, 0, 0, .1);--mx-menu-backgroud-radius: 10px;--mx-menu-shortcut-backgroud: transparent;--mx-menu-shortcut-backgroud-hover:transparent;--mx-menu-shortcut-backgroud-active:transparent;--mx-menu-shortcut-backgroud-open:transparent;--mx-menu-shortcut-backgroud-disabled:transparent;--mx-menu-shortcut-text: #424242;--mx-menu-shortcut-text-hover: #fff;--mx-menu-shortcut-text-active: #fff;--mx-menu-shortcut-text-open: #fff;--mx-menu-shortcut-text-disabled: #a5a5a5;--mx-menu-border-color: #bbbbbb}.mx-menu-bar.mac.dark,.mx-context-menu.mac.dark{--mx-menu-backgroud: #333333;--mx-menu-hover-backgroud: #0153d2;--mx-menu-active-backgroud: #0153d2;--mx-menu-open-hover-backgroud: #0153d2;--mx-menu-open-backgroud: #414346;--mx-menu-divider: #575757;--mx-menu-text: #dcdcdc;--mx-menu-hover-text: #fff;--mx-menu-active-text: #fff;--mx-menu-open-text: #fff;--mx-menu-open-hover-text: #fff;--mx-menu-disabled-text: #6a6a6a;--mx-menu-shadow-color: rgba(0, 0, 0, .1);--mx-menu-backgroud-radius: 10px;--mx-menu-shortcut-backgroud: transparent;--mx-menu-shortcut-backgroud-hover:transparent;--mx-menu-shortcut-backgroud-active:transparent;--mx-menu-shortcut-backgroud-open:transparent;--mx-menu-shortcut-backgroud-disabled:transparent;--mx-menu-shortcut-text: #dadada;--mx-menu-shortcut-text-hover: #fff;--mx-menu-shortcut-text-active: #fff;--mx-menu-shortcut-text-open: #fff;--mx-menu-shortcut-text-disabled: #6a6a6a;--mx-menu-border-color: #222}.mx-menu-bar.mac .mx-context-menu-item,.mx-context-menu.mac .mx-context-menu-item{border-radius:5px;margin:0 6px;padding:3px 6px}.mx-menu-bar.mac .mx-context-menu-item.keyboard-focus,.mx-context-menu.mac .mx-context-menu-item.keyboard-focus{background-color:var(--mx-menu-active-backgroud);color:var(--mx-menu-active-text);outline:none}.mx-menu-bar.mac .mx-context-menu-item.keyboard-focus .mx-right-arrow,.mx-menu-bar.mac .mx-context-menu-item.keyboard-focus .mx-checked-mark,.mx-context-menu.mac .mx-context-menu-item.keyboard-focus .mx-right-arrow,.mx-context-menu.mac .mx-context-menu-item.keyboard-focus .mx-checked-mark{fill:var(--mx-menu-active-text)}.mx-menu-bar.mac .mx-context-menu-item.keyboard-focus .mx-shortcut,.mx-context-menu.mac .mx-context-menu-item.keyboard-focus .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-active);color:var(--mx-menu-shortcut-text-active)}.mx-menu-bar.mac .mx-context-menu-item-sperator,.mx-context-menu.mac .mx-context-menu-item-sperator{margin:0 12px}.mx-context-menu .vue-scroll-rect>.scroll-content{overflow-y:scroll;height:100%;width:auto;position:relative!important}.mx-menu-ghost-host{position:absolute;inset:0;overflow:hidden;pointer-events:none}.mx-menu-ghost-host.fullscreen{position:fixed}.mx-menu-bar{flex:1;display:flex;flex-direction:row;align-items:center;background-color:var(--mx-menu-backgroud);padding:5px 0}.mx-menu-bar.mini{flex-grow:0}.mx-menu-bar .mx-menu-bar-content{display:flex;flex-direction:row;align-items:center}.mx-menu-bar .mx-menu-bar-item{padding:2px 8px;border-radius:5px;-webkit-user-select:none;user-select:none;background-color:var(--mx-menu-backgroud);color:var(--mx-menu-text)}.mx-menu-bar .mx-menu-bar-item:hover{background-color:var(--mx-menu-hover-backgroud);color:var(--mx-menu-hover-text)}.mx-menu-bar .mx-menu-bar-item:hover .mx-menu-bar-icon-menu{fill:var(--mx-menu-hover-text)}.mx-menu-bar .mx-menu-bar-item:active,.mx-menu-bar .mx-menu-bar-item.active{background-color:var(--mx-menu-active-backgroud);color:var(--mx-menu-active-text)}.mx-menu-bar .mx-menu-bar-item:active .mx-menu-bar-icon-menu,.mx-menu-bar .mx-menu-bar-item.active .mx-menu-bar-icon-menu{fill:var(--mx-menu-active-text)}.mx-menu-bar .mx-menu-bar-icon-menu{fill:var(--mx-menu-text);width:var(--mx-menu-icon-size);height:var(--mx-menu-icon-size)}.mx-menu-bar.flat .mx-menu-bar-item{border-radius:0}.picture-container[data-v-6700d8d2]{overflow:hidden}.svg-container[data-v-ecab498d]{width:100%;height:100%}.svg-container svg[data-v-ecab498d]{width:100%;height:100%}.svg-container[data-v-572c01ec]{width:100%;height:100%}.svg-container svg[data-v-572c01ec]{width:100%;height:100%}.svg-container[data-v-939b62a1]{width:100%;height:100%}.svg-container svg[data-v-939b62a1]{width:100%;height:100%}.svg-container[data-v-7dcb2081]{width:100%;height:100%}.svg-container svg[data-v-7dcb2081]{width:100%;height:100%}.svg-container[data-v-4ce499b1]{width:100%;height:100%}.svg-container svg[data-v-4ce499b1]{width:100%;height:100%}.svg-container[data-v-aec13cc0]{width:100%;height:100%}.svg-container svg[data-v-aec13cc0]{width:100%;height:100%}.svg-container[data-v-cddc7262]{width:100%;height:100%}.svg-container svg[data-v-cddc7262]{width:100%;height:100%}.svg-container[data-v-bab98274]{width:100%;height:100%}.svg-container svg[data-v-bab98274]{width:100%;height:100%}.svg-container[data-v-2959cd02]{width:100%;height:100%}.svg-container svg[data-v-2959cd02]{width:100%;height:100%}.svg-container[data-v-78f636ae]{width:100%;height:100%}.svg-container svg[data-v-78f636ae]{width:100%;height:100%}.svg-container[data-v-1ba24f63]{width:100%;height:100%}.svg-container svg[data-v-1ba24f63]{width:100%;height:100%}.svg-container[data-v-8db7d328]{width:100%;height:100%}.svg-container svg[data-v-8db7d328]{width:100%;height:100%}.svg-container[data-v-8db7d328] .svg-first-color{fill:var(--custom-first-color)!important}.svg-container[data-v-8db7d328] .svg-second-color{fill:var(--custom-second-color)!important}.svg-container[data-v-8db7d328] .svg-third-color{fill:var(--custom-third-color)!important}.svg-container[data-v-8db7d328] .svg-four-color{fill:var(--custom-four-color)!important}.svg-container[data-v-8db7d328] .svg-five-color{fill:var(--custom-five-color)!important}.svg-container[data-v-0ad0dffa]{width:100%;height:100%}.svg-container svg[data-v-0ad0dffa]{width:100%;height:100%}.canvas-grid-container[data-v-6480756a]{width:100%;height:100%;overflow:hidden}.grid-container[data-v-dced3ee3],.divider[data-v-490ca7b4],.div-container[data-v-b5a7fa87]{width:100%;height:100%}.division-button[data-v-b5a7fa87]{width:100%;height:100%;position:relative;overflow:hidden;display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer}.division-content[data-v-b5a7fa87]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;gap:6px;cursor:pointer;pointer-events:none}.division-button[data-v-b5a7fa87]:after{content:"";position:absolute;top:50%;left:50%;width:0;height:0;border-radius:50%;background-color:#2f6dff33;transform:translate(-50%,-50%);transition:width .4s ease,height .4s ease}.division-button[data-v-b5a7fa87]:active:not(.division-disabled):after{width:120%;height:120%}.division-text[data-v-b5a7fa87]{z-index:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;pointer-events:none}.division-icon[data-v-b5a7fa87]{font-size:14px;transition:all .3s ease;z-index:1;display:flex;align-items:center}.division-hover .division-icon[data-v-b5a7fa87]{transform:translate(2px)}.division-disabled[data-v-b5a7fa87]{pointer-events:none;cursor:not-allowed!important}.division-disabled .division-content[data-v-b5a7fa87],.division-disabled .division-text[data-v-b5a7fa87],.division-disabled .division-icon[data-v-b5a7fa87]{cursor:not-allowed!important}@media(max-width:480px){.division-content[data-v-b5a7fa87]{flex-wrap:wrap;gap:4px}.division-text[data-v-b5a7fa87],.division-icon[data-v-b5a7fa87]{font-size:12px}}.svg-container[data-v-54c5681f]{width:100%;height:100%}.svg-container svg[data-v-54c5681f]{width:100%;height:100%}.svg-container[data-v-54c5681f] .svg-first-color{fill:var(--custom-first-color)!important}.svg-container[data-v-54c5681f] .svg-second-color{fill:var(--custom-second-color)!important}.svg-container[data-v-54c5681f] .svg-third-color{fill:var(--custom-third-color)!important}.svg-container[data-v-54c5681f] .svg-four-color{fill:var(--custom-four-color)!important}.svg-container[data-v-54c5681f] .svg-five-color{fill:var(--custom-five-color)!important}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
import { inject as me, resolveComponent as Je, createElementBlock as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.subpage-container[data-v-7840b296]{display:flex;align-items:center;margin:0;overflow:hidden}.subpage-container[data-v-3deb553c]{padding:0;display:flex;align-items:center}:root{--vue-scroll-rect-scrollbar-thumb-color: rgba(122,122,122, .3);--vue-scroll-rect-scrollbar-thumb-color-light: rgba(122, 122, 122, .5);--vue-scroll-rect-scrollbar-thumb-color-pressed: rgba(112, 112, 112, .2);--vue-scroll-rect-scrollbar-thumb-radius: 5px;--vue-scroll-rect-scrollbar-thumb-margin: 0px;--vue-scroll-rect-scrollbar-size: 8px}.vue-scroll-rect{position:relative;width:100%;height:100%;margin:0;overflow:hidden}.vue-scroll-rect>.scroll-content{position:relative;max-width:100%;max-height:100%;scrollbar-width:none;-ms-overflow-style:none}.vue-scroll-rect>.scroll-content::-webkit-scrollbar{width:0;height:0}.vue-scroll-rect>.scroll-content::-ms-scrollbar{width:0;height:0}.vue-scroll-rect>.scroll-content.both{overflow:scroll}.vue-scroll-rect>.scroll-content.horizontal{overflow-x:scroll}.vue-scroll-rect>.scroll-content.vertical{overflow-y:scroll}.vue-scroll-rect:hover>.scrollbar{opacity:1;transition:opacity .1s}.vue-scroll-rect.always-show-scrollbar>.scrollbar,.vue-scroll-rect .dragging>.scrollbar{opacity:1}.vue-scroll-rect.background-clickable>.scrollbar{pointer-events:all}.vue-scroll-rect>.scrollbar{position:absolute;opacity:0;transition:opacity 1.5s;pointer-events:none}.vue-scroll-rect>.scrollbar:hover{opacity:1}.vue-scroll-rect>.scrollbar .thumb{position:absolute;background-color:var(--vue-scroll-rect-scrollbar-thumb-color);border-radius:var(--vue-scroll-rect-scrollbar-thumb-radius);pointer-events:all}.vue-scroll-rect>.scrollbar .thumb:hover{background-color:var(--vue-scroll-rect-scrollbar-thumb-color-light)}.vue-scroll-rect>.scrollbar .thumb:active{background-color:var(--vue-scroll-rect-scrollbar-thumb-color-pressed)}.vue-scroll-rect>.scrollbar.horizontal{left:0;bottom:0;right:0;height:var(--vue-scroll-rect-scrollbar-size)}.vue-scroll-rect>.scrollbar.horizontal .thumb{top:var(--vue-scroll-rect-scrollbar-thumb-margin);bottom:var(--vue-scroll-rect-scrollbar-thumb-margin)}.vue-scroll-rect>.scrollbar.vertical{top:0;bottom:0;right:0;width:var(--vue-scroll-rect-scrollbar-size)}.vue-scroll-rect>.scrollbar.vertical .thumb{left:var(--vue-scroll-rect-scrollbar-thumb-margin);right:var(--vue-scroll-rect-scrollbar-thumb-margin)}:root{--mx-menu-backgroud: #fff;--mx-menu-hover-backgroud: #f1f1f1;--mx-menu-active-backgroud: #dfdfdf;--mx-menu-open-backgroud: #f1f1f1;--mx-menu-open-hover-backgroud: #f1f1f1;--mx-menu-divider: #f0f0f0;--mx-menu-text: #2e2e2e;--mx-menu-hover-text: #2e2e2e;--mx-menu-active-text: #2e2e2e;--mx-menu-open-text: #2e2e2e;--mx-menu-open-hover-text: #2e2e2e;--mx-menu-disabled-text: #c9c8c8;--mx-menu-icon-size: 16px;--mx-menu-shadow-color: rgba(0, 0, 0, .1);--mx-menu-backgroud-radius: 10px;--mx-menu-scrollbar-thumb-color: rgba(0, 0, 0, .2);--mx-menu-scrollbar-thumb-color-light: rgba(0, 0, 0, .3);--mx-menu-scrollbar-thumb-color-pressed: rgba(0, 0, 0, .1);--mx-menu-shortcut-backgroud: #ebebeb;--mx-menu-shortcut-backgroud-hover:#ebebeb;--mx-menu-shortcut-backgroud-active:#ebebeb;--mx-menu-shortcut-backgroud-open:#ebebeb;--mx-menu-shortcut-backgroud-disabled:#fdfdfd;--mx-menu-shortcut-text: #424242;--mx-menu-shortcut-text-hover: #424242;--mx-menu-shortcut-text-active: #424242;--mx-menu-shortcut-text-open: #424242;--mx-menu-shortcut-text-disabled: #a5a5a5;--mx-menu-placeholder-width: 24px}.mx-context-menu{pointer-events:all;display:inline-block;overflow:visible;position:absolute;background-color:var(--mx-menu-backgroud);border-radius:var(--mx-menu-backgroud-radius);padding:12px 0;box-shadow:0 10px 40px 10px var(--mx-menu-shadow-color);opacity:1;transition:opacity .2s ease-in-out;--vue-scroll-rect-scrollbar-thumb-color: var(--mx-menu-scrollbar-thumb-color);--vue-scroll-rect-scrollbar-thumb-color-light: var(--mx-menu-scrollbar-thumb-color-light);--vue-scroll-rect-scrollbar-thumb-color-pressed: var(--mx-menu-scrollbar-thumb-color-pressed)}.mx-context-menu-items{position:relative;overflow:visible}.mx-context-menu-scroll{overscroll-behavior:contain}.mx-context-menu-item{display:flex;flex-direction:row;justify-content:space-between;align-items:center;position:relative;padding:6px 15px;-webkit-user-select:none;user-select:none;overflow:visible;white-space:nowrap;text-overflow:ellipsis;color:var(--mx-menu-text)}.mx-context-menu-item .mx-right-arrow,.mx-context-menu-item .mx-checked-mark{fill:var(--mx-menu-text)}.mx-context-menu-item:hover{background-color:var(--mx-menu-hover-backgroud);color:var(--mx-menu-hover-text)}.mx-context-menu-item:hover .mx-right-arrow,.mx-context-menu-item:hover .mx-checked-mark{fill:var(--mx-menu-hover-text)}.mx-context-menu-item:hover .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-hover);color:var(--mx-menu-shortcut-text-hover)}.mx-context-menu-item:active{background-color:var(--mx-menu-active-backgroud);color:var(--mx-menu-active-text)}.mx-context-menu-item:active .mx-right-arrow,.mx-context-menu-item:active .mx-checked-mark{fill:var(--mx-menu-active-text)}.mx-context-menu-item:active .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-active);color:var(--mx-menu-shortcut-text-active)}.mx-context-menu-item.open{background-color:var(--mx-menu-open-backgroud);color:var(--mx-menu-open-text)}.mx-context-menu-item.open:hover{background-color:var(--mx-menu-open-hover-backgroud);color:var(--mx-menu-open-hover-text)}.mx-context-menu-item.open .mx-right-arrow,.mx-context-menu-item.open .mx-checked-mark{fill:var(--mx-menu-open-text)}.mx-context-menu-item.open .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-open);color:var(--mx-menu-shortcut-text-open)}.mx-context-menu-item.keyboard-focus{background-color:var(--mx-menu-active-backgroud)}.mx-context-menu-item.disabled{color:var(--mx-menu-disabled-text);cursor:not-allowed}.mx-context-menu-item.disabled:hover,.mx-context-menu-item.disabled:active{background-color:transparent}.mx-context-menu-item.disabled .mx-right-arrow,.mx-context-menu-item.disabled .mx-checked-mark{fill:var(--mx-menu-disabled-text)}.mx-context-menu-item.disabled .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-disabled);color:var(--mx-menu-shortcut-text-second)}.mx-context-menu-item .mx-item-row{display:flex;flex-direction:row;align-items:center;max-width:100%}.mx-context-menu-item .mx-icon-placeholder{position:relative;display:flex;flex-direction:row;align-items:center;height:auto;overflow:hidden}.mx-context-menu-item .mx-icon-placeholder.preserve-width{width:var(--mx-menu-placeholder-width)}.mx-context-menu-item .icon{display:inline-block;font-size:var(--mx-menu-icon-size)}.mx-context-menu-item .icon.svg{width:var(--mx-menu-icon-size);height:var(--mx-menu-icon-size)}.mx-context-menu-item .label{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-inline-end:16px}.mx-context-menu-item-wrapper{position:relative}.mx-context-menu-item-sperator{display:block;padding:5px 0;background-color:var(--mx-menu-backgroud)}.mx-context-menu-item-sperator:after{display:block;content:"";background-color:var(--mx-menu-divider);height:1px}.mx-right-arrow{width:14px;height:14px}.mx-checked-mark{width:var(--mx-menu-icon-size);height:var(--mx-menu-icon-size)}.mx-shortcut{position:relative;justify-self:flex-end;font-size:11.5px;padding:2px 4px;background-color:var(--mx-menu-shortcut-backgroud);color:var(--mx-menu-shortcut-text)}.mx-menu-bar.dark,.mx-context-menu.dark{--mx-menu-backgroud: #303031;--mx-menu-hover-backgroud: #636363;--mx-menu-active-backgroud: #555555;--mx-menu-open-backgroud: #636363;--mx-menu-open-hover-backgroud: #636363;--mx-menu-divider: #464646;--mx-menu-text: #ffffff;--mx-menu-hover-text: #ffffff;--mx-menu-active-text: #ffffff;--mx-menu-open-text: #ffffff;--mx-menu-open-hover-text: #ffffff;--mx-menu-disabled-text: #9c9c9c;--mx-menu-shadow-color: rgba(51, 51, 51, .2);--mx-menu-scrollbar-thumb-color: rgba(255, 255, 255, .3);--mx-menu-scrollbar-thumb-color-light: rgba(255, 255, 255, .5);--mx-menu-scrollbar-thumb-color-pressed: rgba(255, 255, 255, .2);--mx-menu-shortcut-backgroud: #505050;--mx-menu-shortcut-backgroud-hover:#505050;--mx-menu-shortcut-backgroud-active:#505050;--mx-menu-shortcut-backgroud-open:#505050;--mx-menu-shortcut-backgroud-disabled:#444444;--mx-menu-shortcut-text: #f1f1f1;--mx-menu-shortcut-text-hover: #ffffff;--mx-menu-shortcut-text-active: #ffffff;--mx-menu-shortcut-text-open: #ffffff;--mx-menu-shortcut-text-disabled: #9d9d9d}.mx-menu-bar.flat,.mx-context-menu.flat{border-radius:0;padding:7px 0;box-shadow:0 1px 2px 1px var(--mx-menu-shadow-color)}.mx-menu-bar.flat .mx-context-menu-item,.mx-context-menu.flat .mx-context-menu-item{padding:3px 12px}.mx-menu-bar.win10,.mx-context-menu.win10{border-radius:0;padding:8px 0;border:1px solid var(--mx-menu-border-color);box-shadow:2px 2px 1px 0 var(--mx-menu-shadow-color)}.mx-menu-bar.win10,.mx-context-menu.win10{--mx-menu-backgroud: #eeeeee;--mx-menu-hover-backgroud: #d8d8d8;--mx-menu-active-backgroud: #dfdfdf;--mx-menu-open-backgroud: #f1f1f1;--mx-menu-open-hover-backgroud: #d8d8d8;--mx-menu-divider: #aaaaaa;--mx-menu-border-color: #b1b1b1;--mx-menu-shortcut-backgroud: transparent;--mx-menu-shortcut-backgroud-hover: transparent;--mx-menu-shortcut-backgroud-active: transparent;--mx-menu-shortcut-backgroud-open: transparent;--mx-menu-shortcut-backgroud-disabled:transparent;--mx-menu-shortcut-text: #272727;--mx-menu-shortcut-text-hover: #272727;--mx-menu-shortcut-text-active: #272727;--mx-menu-shortcut-text-open: #272727;--mx-menu-shortcut-text-disabled: #6b6b6b}.mx-menu-bar.win10 .mx-context-menu-item,.mx-context-menu.win10 .mx-context-menu-item{padding:2px 4px;margin:0 4px}.mx-menu-bar.win10 .mx-context-menu-item-sperator,.mx-context-menu.win10 .mx-context-menu-item-sperator{margin:0 4px}.mx-menu-bar.win10.dark,.mx-context-menu.win10.dark{--mx-menu-backgroud: #303031;--mx-menu-hover-backgroud: #636363;--mx-menu-active-backgroud: #555555;--mx-menu-open-backgroud: #636363;--mx-menu-open-hover-backgroud: #636363;--mx-menu-divider: #808080;--mx-menu-border-color: #656565;--mx-menu-shortcut-backgroud: #505050;--mx-menu-shortcut-backgroud-hover:#505050;--mx-menu-shortcut-backgroud-active:#505050;--mx-menu-shortcut-backgroud-open:#505050;--mx-menu-shortcut-backgroud-disabled:#444444;--mx-menu-shortcut-text: #f1f1f1;--mx-menu-shortcut-text-hover: #ffffff;--mx-menu-shortcut-text-active: #ffffff;--mx-menu-shortcut-text-open: #ffffff;--mx-menu-shortcut-text-disabled: #9d9d9d;padding:8px 0}.mx-menu-bar.win10.dark .mx-context-menu-item,.mx-context-menu.win10.dark .mx-context-menu-item{padding:6px 12px;margin:0}.mx-menu-bar.win10.dark .mx-context-menu-item-sperator,.mx-context-menu.win10.dark .mx-context-menu-item-sperator{margin:0 7px}.mx-menu-bar.mac,.mx-context-menu.mac{padding:8px 0;box-shadow:0 5px 7px 1px var(--mx-menu-shadow-color);border:1px solid var(--mx-menu-border-color)}.mx-menu-bar.mac,.mx-context-menu.mac{--mx-menu-backgroud: #ececec;--mx-menu-hover-backgroud: #0165e1;--mx-menu-active-backgroud: #0165e1;--mx-menu-open-backgroud: #858585;--mx-menu-open-hover-backgroud: #0165e1;--mx-menu-divider: #d2d2d2;--mx-menu-text: #232323;--mx-menu-hover-text: #fff;--mx-menu-active-text: #fff;--mx-menu-open-text: #fff;--mx-menu-open-hover-text: #fff;--mx-menu-disabled-text: #bbbbbb;--mx-menu-shadow-color: rgba(0, 0, 0, .1);--mx-menu-backgroud-radius: 10px;--mx-menu-shortcut-backgroud: transparent;--mx-menu-shortcut-backgroud-hover:transparent;--mx-menu-shortcut-backgroud-active:transparent;--mx-menu-shortcut-backgroud-open:transparent;--mx-menu-shortcut-backgroud-disabled:transparent;--mx-menu-shortcut-text: #424242;--mx-menu-shortcut-text-hover: #fff;--mx-menu-shortcut-text-active: #fff;--mx-menu-shortcut-text-open: #fff;--mx-menu-shortcut-text-disabled: #a5a5a5;--mx-menu-border-color: #bbbbbb}.mx-menu-bar.mac.dark,.mx-context-menu.mac.dark{--mx-menu-backgroud: #333333;--mx-menu-hover-backgroud: #0153d2;--mx-menu-active-backgroud: #0153d2;--mx-menu-open-hover-backgroud: #0153d2;--mx-menu-open-backgroud: #414346;--mx-menu-divider: #575757;--mx-menu-text: #dcdcdc;--mx-menu-hover-text: #fff;--mx-menu-active-text: #fff;--mx-menu-open-text: #fff;--mx-menu-open-hover-text: #fff;--mx-menu-disabled-text: #6a6a6a;--mx-menu-shadow-color: rgba(0, 0, 0, .1);--mx-menu-backgroud-radius: 10px;--mx-menu-shortcut-backgroud: transparent;--mx-menu-shortcut-backgroud-hover:transparent;--mx-menu-shortcut-backgroud-active:transparent;--mx-menu-shortcut-backgroud-open:transparent;--mx-menu-shortcut-backgroud-disabled:transparent;--mx-menu-shortcut-text: #dadada;--mx-menu-shortcut-text-hover: #fff;--mx-menu-shortcut-text-active: #fff;--mx-menu-shortcut-text-open: #fff;--mx-menu-shortcut-text-disabled: #6a6a6a;--mx-menu-border-color: #222}.mx-menu-bar.mac .mx-context-menu-item,.mx-context-menu.mac .mx-context-menu-item{border-radius:5px;margin:0 6px;padding:3px 6px}.mx-menu-bar.mac .mx-context-menu-item.keyboard-focus,.mx-context-menu.mac .mx-context-menu-item.keyboard-focus{background-color:var(--mx-menu-active-backgroud);color:var(--mx-menu-active-text);outline:none}.mx-menu-bar.mac .mx-context-menu-item.keyboard-focus .mx-right-arrow,.mx-menu-bar.mac .mx-context-menu-item.keyboard-focus .mx-checked-mark,.mx-context-menu.mac .mx-context-menu-item.keyboard-focus .mx-right-arrow,.mx-context-menu.mac .mx-context-menu-item.keyboard-focus .mx-checked-mark{fill:var(--mx-menu-active-text)}.mx-menu-bar.mac .mx-context-menu-item.keyboard-focus .mx-shortcut,.mx-context-menu.mac .mx-context-menu-item.keyboard-focus .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-active);color:var(--mx-menu-shortcut-text-active)}.mx-menu-bar.mac .mx-context-menu-item-sperator,.mx-context-menu.mac .mx-context-menu-item-sperator{margin:0 12px}.mx-context-menu .vue-scroll-rect>.scroll-content{overflow-y:scroll;height:100%;width:auto;position:relative!important}.mx-menu-ghost-host{position:absolute;inset:0;overflow:hidden;pointer-events:none}.mx-menu-ghost-host.fullscreen{position:fixed}.mx-menu-bar{flex:1;display:flex;flex-direction:row;align-items:center;background-color:var(--mx-menu-backgroud);padding:5px 0}.mx-menu-bar.mini{flex-grow:0}.mx-menu-bar .mx-menu-bar-content{display:flex;flex-direction:row;align-items:center}.mx-menu-bar .mx-menu-bar-item{padding:2px 8px;border-radius:5px;-webkit-user-select:none;user-select:none;background-color:var(--mx-menu-backgroud);color:var(--mx-menu-text)}.mx-menu-bar .mx-menu-bar-item:hover{background-color:var(--mx-menu-hover-backgroud);color:var(--mx-menu-hover-text)}.mx-menu-bar .mx-menu-bar-item:hover .mx-menu-bar-icon-menu{fill:var(--mx-menu-hover-text)}.mx-menu-bar .mx-menu-bar-item:active,.mx-menu-bar .mx-menu-bar-item.active{background-color:var(--mx-menu-active-backgroud);color:var(--mx-menu-active-text)}.mx-menu-bar .mx-menu-bar-item:active .mx-menu-bar-icon-menu,.mx-menu-bar .mx-menu-bar-item.active .mx-menu-bar-icon-menu{fill:var(--mx-menu-active-text)}.mx-menu-bar .mx-menu-bar-icon-menu{fill:var(--mx-menu-text);width:var(--mx-menu-icon-size);height:var(--mx-menu-icon-size)}.mx-menu-bar.flat .mx-menu-bar-item{border-radius:0}.picture-container[data-v-6700d8d2]{overflow:hidden}.svg-container[data-v-ecab498d]{width:100%;height:100%}.svg-container svg[data-v-ecab498d]{width:100%;height:100%}.svg-container[data-v-e00f69af]{width:100%;height:100%}.svg-container svg[data-v-e00f69af]{width:100%;height:100%}.svg-container[data-v-939b62a1]{width:100%;height:100%}.svg-container svg[data-v-939b62a1]{width:100%;height:100%}.svg-container[data-v-7dcb2081]{width:100%;height:100%}.svg-container svg[data-v-7dcb2081]{width:100%;height:100%}.svg-container[data-v-4ce499b1]{width:100%;height:100%}.svg-container svg[data-v-4ce499b1]{width:100%;height:100%}.svg-container[data-v-aec13cc0]{width:100%;height:100%}.svg-container svg[data-v-aec13cc0]{width:100%;height:100%}.svg-container[data-v-cddc7262]{width:100%;height:100%}.svg-container svg[data-v-cddc7262]{width:100%;height:100%}.svg-container[data-v-bab98274]{width:100%;height:100%}.svg-container svg[data-v-bab98274]{width:100%;height:100%}.svg-container[data-v-2959cd02]{width:100%;height:100%}.svg-container svg[data-v-2959cd02]{width:100%;height:100%}.svg-container[data-v-78f636ae]{width:100%;height:100%}.svg-container svg[data-v-78f636ae]{width:100%;height:100%}.svg-container[data-v-1ba24f63]{width:100%;height:100%}.svg-container svg[data-v-1ba24f63]{width:100%;height:100%}.svg-container[data-v-8db7d328]{width:100%;height:100%}.svg-container svg[data-v-8db7d328]{width:100%;height:100%}.svg-container[data-v-8db7d328] .svg-first-color{fill:var(--custom-first-color)!important}.svg-container[data-v-8db7d328] .svg-second-color{fill:var(--custom-second-color)!important}.svg-container[data-v-8db7d328] .svg-third-color{fill:var(--custom-third-color)!important}.svg-container[data-v-8db7d328] .svg-four-color{fill:var(--custom-four-color)!important}.svg-container[data-v-8db7d328] .svg-five-color{fill:var(--custom-five-color)!important}.svg-container[data-v-0ad0dffa]{width:100%;height:100%}.svg-container svg[data-v-0ad0dffa]{width:100%;height:100%}.canvas-grid-container[data-v-6480756a]{width:100%;height:100%;overflow:hidden}.grid-container[data-v-dced3ee3],.divider[data-v-490ca7b4],.div-container[data-v-b5a7fa87]{width:100%;height:100%}.division-button[data-v-b5a7fa87]{width:100%;height:100%;position:relative;overflow:hidden;display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer}.division-content[data-v-b5a7fa87]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;gap:6px;cursor:pointer;pointer-events:none}.division-button[data-v-b5a7fa87]:after{content:"";position:absolute;top:50%;left:50%;width:0;height:0;border-radius:50%;background-color:#2f6dff33;transform:translate(-50%,-50%);transition:width .4s ease,height .4s ease}.division-button[data-v-b5a7fa87]:active:not(.division-disabled):after{width:120%;height:120%}.division-text[data-v-b5a7fa87]{z-index:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;pointer-events:none}.division-icon[data-v-b5a7fa87]{font-size:14px;transition:all .3s ease;z-index:1;display:flex;align-items:center}.division-hover .division-icon[data-v-b5a7fa87]{transform:translate(2px)}.division-disabled[data-v-b5a7fa87]{pointer-events:none;cursor:not-allowed!important}.division-disabled .division-content[data-v-b5a7fa87],.division-disabled .division-text[data-v-b5a7fa87],.division-disabled .division-icon[data-v-b5a7fa87]{cursor:not-allowed!important}@media(max-width:480px){.division-content[data-v-b5a7fa87]{flex-wrap:wrap;gap:4px}.division-text[data-v-b5a7fa87],.division-icon[data-v-b5a7fa87]{font-size:12px}}.svg-container[data-v-9182799c]{width:100%;height:100%}.svg-container svg[data-v-9182799c]{width:100%;height:100%}.svg-container[data-v-9182799c] .svg-first-color{fill:var(--custom-first-color)!important}.svg-container[data-v-9182799c] .svg-second-color{fill:var(--custom-second-color)!important}.svg-container[data-v-9182799c] .svg-third-color{fill:var(--custom-third-color)!important}.svg-container[data-v-9182799c] .svg-four-color{fill:var(--custom-four-color)!important}.svg-container[data-v-9182799c] .svg-five-color{fill:var(--custom-five-color)!important}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
import { inject as me, resolveComponent as Je, createElementBlock as z, openBlock as R, normalizeStyle as Ce, createVNode as Oe, ref as y, computed as h, watch as B, provide as ke, onBeforeMount as Q, onMounted as q, onBeforeUnmount as J, onUnmounted as $, Fragment as it, renderList as vt, createBlock as he, KeepAlive as Bt, createCommentVNode as ne, defineComponent as Pe, toRefs as Ee, h as ot, nextTick as we, unref as K, renderSlot as Se, normalizeClass as Re, createElementVNode as ue, mergeProps as ct, toDisplayString as De, Teleport as It, Transition as At, withCtx as He, createSlots as Wt, reactive as Ze, useSlots as jt, normalizeProps as Ft, guardReactiveProps as Et, render as gt, createTextVNode as de } from "vue";
|
|
3
3
|
import { CommonUtils as Y, useDataCacheStore as re, createSmartAccessor as ae, reCalcCanvasSize as yt, CreateCompContext as ee, useEventHandler as te } from "hflvloader";
|
|
4
4
|
import { useRouter as le, useRoute as oe } from "vue-router";
|
|
5
5
|
(function() {
|
|
6
6
|
const t = () => {
|
|
7
|
-
console.log("%c 可视化组件库 hflvcomp", "color: #3498db; font-size: 16px; font-weight: bold;"), console.log("%c版本号: 0.0.
|
|
7
|
+
console.log("%c 可视化组件库 hflvcomp", "color: #3498db; font-size: 16px; font-weight: bold;"), console.log("%c版本号: 0.0.10", "color: #2ecc71;"), console.log("%c编译日期: 2026/2/10 16:54:05", "color: #3498db;"), console.log("%c版权声明:", "color: #e74c3c; font-weight: bold;"), console.log("%c 1. 版权完全归qbansanguo享有。", "color: #34495e;"), console.log("%c 2. 程序包完整引用,不得以任何形式破解、裁剪,不得隐藏或删除版权信息。", "color: #34495e;"), console.log("%c 3. 保留此版权信息在控制台输出。", "color: #34495e;"), console.log("%c 版权所有 ©2024-2026 qbansanguo 保留对此版权信息的最终解释权.", "color: #f39c12;"), console.log("%c Copyright ©2024-2026 qbansanguo All rights reserved.", "color: #f39c12;");
|
|
8
8
|
};
|
|
9
9
|
if (typeof window < "u") {
|
|
10
10
|
window._copyright_hflvcomp = t;
|
|
@@ -29,8 +29,8 @@ function Fe() {
|
|
|
29
29
|
}
|
|
30
30
|
const fe = (t, c) => {
|
|
31
31
|
const o = t.__vccOpts || t;
|
|
32
|
-
for (const [e,
|
|
33
|
-
o[e] =
|
|
32
|
+
for (const [e, s] of c)
|
|
33
|
+
o[e] = s;
|
|
34
34
|
return o;
|
|
35
35
|
}, zt = /* @__PURE__ */ Object.assign({
|
|
36
36
|
name: "Subpage"
|
|
@@ -53,9 +53,9 @@ const fe = (t, c) => {
|
|
|
53
53
|
},
|
|
54
54
|
setup(t, { expose: c }) {
|
|
55
55
|
c();
|
|
56
|
-
const { isNotEmpty: o, isObject: e } = Y,
|
|
57
|
-
let
|
|
58
|
-
const
|
|
56
|
+
const { isNotEmpty: o, isObject: e } = Y, s = Fe(), r = t, n = y(null), l = y({}), f = y([]);
|
|
57
|
+
let a = {}, C = [];
|
|
58
|
+
const v = y({
|
|
59
59
|
color: null,
|
|
60
60
|
image: null,
|
|
61
61
|
repeat: null,
|
|
@@ -63,28 +63,28 @@ const fe = (t, c) => {
|
|
|
63
63
|
position: null,
|
|
64
64
|
diyStyles: {}
|
|
65
65
|
});
|
|
66
|
-
let
|
|
67
|
-
const
|
|
68
|
-
let
|
|
69
|
-
width: `${
|
|
70
|
-
height: `${
|
|
71
|
-
"background-color":
|
|
66
|
+
let i = "transparent";
|
|
67
|
+
const p = h(() => r.propValue), V = h(() => r.element), W = h(() => V.value.events || []), j = h(() => V.value.containerParam || {}), b = h(() => {
|
|
68
|
+
let N = {
|
|
69
|
+
width: `${V.value.style.width}px`,
|
|
70
|
+
height: `${V.value.style.height}px`,
|
|
71
|
+
"background-color": v.value.color
|
|
72
72
|
};
|
|
73
|
-
|
|
73
|
+
v.value.image && (N["background-image"] = "url(" + v.value.image + ")"), v.value.repeat && (N["background-repeat"] = v.value.repeat), v.value.size && (N["background-size"] = v.value.size), v.value.position && (N["background-position"] = v.value.position);
|
|
74
74
|
let d = {};
|
|
75
|
-
e(
|
|
76
|
-
let
|
|
77
|
-
return o(
|
|
78
|
-
}), M = re(),
|
|
79
|
-
|
|
80
|
-
o(
|
|
81
|
-
}),
|
|
82
|
-
|
|
83
|
-
}),
|
|
84
|
-
|
|
75
|
+
e(v.value.diyStyles) && Object.keys(v.value.diyStyles).length > 0 && (d = v.value.diyStyles || {});
|
|
76
|
+
let g = { ...N, ...d };
|
|
77
|
+
return o(g.background) && !o(g["background-color"]) && delete g["background-color"], o(g.background) || o(g["background-image"]) || o(g["background-color"]) || (g["background-color"] = "transparent !important"), g;
|
|
78
|
+
}), M = re(), L = ae(M), P = y(null), k = h(() => o(p.value.subpageId) ? p.value.subpageId : o(p.value.subpageIdCK) ? L[p.value.subpageIdCK] : "");
|
|
79
|
+
B(() => k.value, (N) => {
|
|
80
|
+
o(N) && I();
|
|
81
|
+
}), B(() => V.value.style.width, (N) => {
|
|
82
|
+
m();
|
|
83
|
+
}), B(() => V.value.style.height, (N) => {
|
|
84
|
+
m();
|
|
85
85
|
});
|
|
86
|
-
const
|
|
87
|
-
Object.assign(
|
|
86
|
+
const u = () => {
|
|
87
|
+
Object.assign(v.value, {
|
|
88
88
|
color: "transparent",
|
|
89
89
|
image: null,
|
|
90
90
|
repeat: null,
|
|
@@ -92,64 +92,64 @@ const fe = (t, c) => {
|
|
|
92
92
|
position: null,
|
|
93
93
|
diyStyles: {}
|
|
94
94
|
});
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
let
|
|
99
|
-
if (o(
|
|
95
|
+
}, _ = () => {
|
|
96
|
+
a = {}, C = [], l.value = {}, f.value = [], u();
|
|
97
|
+
}, I = () => {
|
|
98
|
+
let N = k.value;
|
|
99
|
+
if (o(N)) {
|
|
100
100
|
let d = "DB";
|
|
101
|
-
if (r.designStatus || (d = M.pageSource || "DB", o(
|
|
102
|
-
let
|
|
103
|
-
|
|
104
|
-
let
|
|
105
|
-
|
|
101
|
+
if (r.designStatus || (d = M.pageSource || "DB", o(p.value.pageSource) && (d = r.pageSource)), d == "DB") {
|
|
102
|
+
let g = {};
|
|
103
|
+
g.id = N, s.qryPageConfigData(g).then(function(w) {
|
|
104
|
+
let A = JSON.parse(w.data.pageData);
|
|
105
|
+
A ? (a = A.canvasStyle || {}, C = A.componentData || [], a.passToParentSwitch ? (v.value.color = a.backgroundColor, v.value.image = a.backgroundImage, v.value.size = a.backgroundSize, v.value.position = a.backgroundPosition, v.value.diyStyles = a.diyStyles) : u(), m()) : _();
|
|
106
106
|
});
|
|
107
107
|
} else {
|
|
108
|
-
let
|
|
109
|
-
|
|
110
|
-
if (
|
|
111
|
-
let
|
|
112
|
-
|
|
108
|
+
let g = N + ".json";
|
|
109
|
+
s.getJsonFile(g, function(w) {
|
|
110
|
+
if (w && w.status == 200) {
|
|
111
|
+
let A = w.data || {};
|
|
112
|
+
A ? (a = A.canvasStyle || {}, C = A.componentData || [], a.passToParentSwitch ? (v.value.color = a.backgroundColor, v.value.image = a.backgroundImage, v.value.size = a.backgroundSize, v.value.position = a.backgroundPosition, v.value.diyStyles = a.diyStyles) : u(), m()) : _();
|
|
113
113
|
} else
|
|
114
|
-
|
|
115
|
-
}, function(
|
|
116
|
-
|
|
114
|
+
_();
|
|
115
|
+
}, function(w) {
|
|
116
|
+
_();
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
} else
|
|
120
|
-
|
|
121
|
-
},
|
|
122
|
-
let
|
|
123
|
-
if (
|
|
124
|
-
let d =
|
|
125
|
-
|
|
120
|
+
_();
|
|
121
|
+
}, m = () => {
|
|
122
|
+
let N = yt(V.value.style.width, V.value.style.height, a, C);
|
|
123
|
+
if (N) {
|
|
124
|
+
let d = N.canvasStyleData || {};
|
|
125
|
+
a.passToParentSwitch && (d.backgroundColor = null, d.backgroundImage = null, d.backgroundSize = null, d.backgroundPosition = null, d.diyStyles = {}), l.value = d, f.value = N.componentData || [];
|
|
126
126
|
} else
|
|
127
127
|
l.value = {}, f.value = [];
|
|
128
128
|
};
|
|
129
|
-
ke("VE-ContainerParam",
|
|
130
|
-
const
|
|
129
|
+
ke("VE-ContainerParam", j);
|
|
130
|
+
const F = le(), H = oe(), S = ee(p, V, F, H);
|
|
131
131
|
Q(() => {
|
|
132
|
-
|
|
132
|
+
P.value = te(W.value, r.designStatus, S), P.value?.beforeMount();
|
|
133
133
|
}), q(() => {
|
|
134
|
-
|
|
134
|
+
I(), P.value?.mounted();
|
|
135
135
|
}), J(() => {
|
|
136
|
-
|
|
136
|
+
P.value?.beforeUnmount();
|
|
137
137
|
}), $(() => {
|
|
138
|
-
|
|
138
|
+
P.value?.unmounted();
|
|
139
139
|
});
|
|
140
|
-
const Z = { isNotEmpty: o, isObject: e, api:
|
|
141
|
-
return u;
|
|
142
|
-
}, set oldCanvasStyle(E) {
|
|
143
|
-
u = E;
|
|
144
|
-
}, get oldComponentData() {
|
|
145
|
-
return y;
|
|
146
|
-
}, set oldComponentData(E) {
|
|
147
|
-
y = E;
|
|
148
|
-
}, backgroundInfo: p, get backgroundColor() {
|
|
140
|
+
const Z = { isNotEmpty: o, isObject: e, api: s, props: r, vePageRef: n, canvasStyle: l, componentData: f, get oldCanvasStyle() {
|
|
149
141
|
return a;
|
|
150
|
-
}, set
|
|
151
|
-
a =
|
|
152
|
-
},
|
|
142
|
+
}, set oldCanvasStyle(N) {
|
|
143
|
+
a = N;
|
|
144
|
+
}, get oldComponentData() {
|
|
145
|
+
return C;
|
|
146
|
+
}, set oldComponentData(N) {
|
|
147
|
+
C = N;
|
|
148
|
+
}, backgroundInfo: v, get backgroundColor() {
|
|
149
|
+
return i;
|
|
150
|
+
}, set backgroundColor(N) {
|
|
151
|
+
i = N;
|
|
152
|
+
}, propValue: p, element: V, events: W, containerParam: j, containerStyle: b, dataCache: M, smartData: L, eventHandler: P, pageId: k, clearBackground: u, clearData: _, loadPageInfo: I, reCalcSizeData: m, router: F, route: H, compContext: S, ref: y, computed: h, onMounted: q, watch: B, provide: ke, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useEventHandler() {
|
|
153
153
|
return te;
|
|
154
154
|
}, get useDataCacheStore() {
|
|
155
155
|
return re;
|
|
@@ -171,11 +171,11 @@ const fe = (t, c) => {
|
|
|
171
171
|
return Object.defineProperty(Z, "__isScriptSetup", { enumerable: !1, value: !0 }), Z;
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
|
-
function Nt(t, c, o, e,
|
|
174
|
+
function Nt(t, c, o, e, s, r) {
|
|
175
175
|
const n = Je("VEPage");
|
|
176
|
-
return
|
|
176
|
+
return R(), z("div", {
|
|
177
177
|
class: "subpage-container",
|
|
178
|
-
style:
|
|
178
|
+
style: Ce(e.containerStyle)
|
|
179
179
|
}, [
|
|
180
180
|
Oe(n, {
|
|
181
181
|
ref: "vePageRef",
|
|
@@ -205,28 +205,28 @@ const Kt = /* @__PURE__ */ fe(zt, [["render", Nt], ["__scopeId", "data-v-7840b29
|
|
|
205
205
|
},
|
|
206
206
|
setup(t, { expose: c }) {
|
|
207
207
|
c();
|
|
208
|
-
const { isArray: o, isNotEmpty: e, isObject:
|
|
209
|
-
let k =
|
|
210
|
-
return k.forEach((
|
|
211
|
-
|
|
212
|
-
let
|
|
213
|
-
|
|
214
|
-
}),
|
|
215
|
-
}),
|
|
216
|
-
|
|
217
|
-
e(n.value.activeSubpageIdCK) && (
|
|
208
|
+
const { isArray: o, isNotEmpty: e, isObject: s } = Y, r = t, n = h(() => r.propValue), l = h(() => r.element), f = h(() => l.value.events || []), a = re(), C = ae(a), v = y(null), i = C[n.value.dsCacheKey], p = h(() => n.value.staticData ? n.value.items || [] : o(i.value) ? i.value : []), V = h(() => {
|
|
209
|
+
let k = p.value || [], u = [];
|
|
210
|
+
return k.forEach((_, I) => {
|
|
211
|
+
u[I] = {};
|
|
212
|
+
let m = {};
|
|
213
|
+
m.style = {}, m.style.width = l.value.style.width, m.style.height = l.value.style.height, m.prop = {}, m.prop.subpageId = _.value, u[I].subpageId = _.value, u[I].prop = m.prop, u[I].element = m;
|
|
214
|
+
}), u;
|
|
215
|
+
}), W = y(null), j = C[n.value.activeSubpageIdCK];
|
|
216
|
+
B(() => j.value, (k) => {
|
|
217
|
+
e(n.value.activeSubpageIdCK) && (s(k) || (W.value = k));
|
|
218
218
|
}, { immediate: !0 });
|
|
219
|
-
const
|
|
219
|
+
const b = le(), M = oe(), L = ee(n, l, b, M);
|
|
220
220
|
Q(() => {
|
|
221
|
-
|
|
221
|
+
v.value = te(f.value, r.designStatus, L), v.value?.beforeMount();
|
|
222
222
|
}), q(() => {
|
|
223
|
-
n.value.activeSubpageId && (
|
|
223
|
+
n.value.activeSubpageId && (W.value = n.value.activeSubpageId), v.value?.mounted();
|
|
224
224
|
}), J(() => {
|
|
225
|
-
|
|
225
|
+
v.value?.beforeUnmount();
|
|
226
226
|
}), $(() => {
|
|
227
|
-
|
|
227
|
+
v.value?.unmounted();
|
|
228
228
|
});
|
|
229
|
-
const
|
|
229
|
+
const P = { isArray: o, isNotEmpty: e, isObject: s, props: r, propValue: n, element: l, events: f, dataCache: a, smartData: C, eventHandler: v, cacheDS: i, options: p, itemData: V, curPageId: W, cacheValue: j, router: b, route: M, compContext: L, ref: y, computed: h, onMounted: q, watch: B, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useEventHandler() {
|
|
230
230
|
return te;
|
|
231
231
|
}, get useDataCacheStore() {
|
|
232
232
|
return re;
|
|
@@ -241,15 +241,15 @@ const Kt = /* @__PURE__ */ fe(zt, [["render", Nt], ["__scopeId", "data-v-7840b29
|
|
|
241
241
|
}, get useRouter() {
|
|
242
242
|
return le;
|
|
243
243
|
} };
|
|
244
|
-
return Object.defineProperty(
|
|
244
|
+
return Object.defineProperty(P, "__isScriptSetup", { enumerable: !1, value: !0 }), P;
|
|
245
245
|
}
|
|
246
246
|
});
|
|
247
|
-
function Gt(t, c, o, e,
|
|
247
|
+
function Gt(t, c, o, e, s, r) {
|
|
248
248
|
const n = Je("Subpage");
|
|
249
|
-
return
|
|
250
|
-
(
|
|
251
|
-
(
|
|
252
|
-
e.curPageId == l.subpageId ? (
|
|
249
|
+
return R(), z("div", { class: "subpage-container" }, [
|
|
250
|
+
(R(!0), z(it, null, vt(e.itemData, (l, f) => (R(), z("div", { key: f }, [
|
|
251
|
+
(R(), he(Bt, { max: 15 }, [
|
|
252
|
+
e.curPageId == l.subpageId ? (R(), he(n, {
|
|
253
253
|
key: f,
|
|
254
254
|
"prop-value": l.prop,
|
|
255
255
|
element: l.element
|
|
@@ -283,8 +283,8 @@ function ll(t) {
|
|
|
283
283
|
var e = !0;
|
|
284
284
|
} catch {
|
|
285
285
|
}
|
|
286
|
-
var
|
|
287
|
-
return e && (c ? t[Ue] = o : delete t[Ue]),
|
|
286
|
+
var s = tl.call(t);
|
|
287
|
+
return e && (c ? t[Ue] = o : delete t[Ue]), s;
|
|
288
288
|
}
|
|
289
289
|
var ol = Object.prototype, nl = ol.toString;
|
|
290
290
|
function rl(t) {
|
|
@@ -319,64 +319,64 @@ function xt(t) {
|
|
|
319
319
|
}
|
|
320
320
|
var ml = "Expected a function", gl = Math.max, yl = Math.min;
|
|
321
321
|
function rt(t, c, o) {
|
|
322
|
-
var e,
|
|
322
|
+
var e, s, r, n, l, f, a = 0, C = !1, v = !1, i = !0;
|
|
323
323
|
if (typeof t != "function")
|
|
324
324
|
throw new TypeError(ml);
|
|
325
|
-
c = xt(c) || 0, dt(o) && (
|
|
326
|
-
function
|
|
327
|
-
var
|
|
328
|
-
return e =
|
|
325
|
+
c = xt(c) || 0, dt(o) && (C = !!o.leading, v = "maxWait" in o, r = v ? gl(xt(o.maxWait) || 0, c) : r, i = "trailing" in o ? !!o.trailing : i);
|
|
326
|
+
function p(u) {
|
|
327
|
+
var _ = e, I = s;
|
|
328
|
+
return e = s = void 0, a = u, n = t.apply(I, _), n;
|
|
329
329
|
}
|
|
330
|
-
function
|
|
331
|
-
return
|
|
330
|
+
function V(u) {
|
|
331
|
+
return a = u, l = setTimeout(b, c), C ? p(u) : n;
|
|
332
332
|
}
|
|
333
|
-
function
|
|
334
|
-
var
|
|
335
|
-
return
|
|
333
|
+
function W(u) {
|
|
334
|
+
var _ = u - f, I = u - a, m = c - _;
|
|
335
|
+
return v ? yl(m, r - I) : m;
|
|
336
336
|
}
|
|
337
|
-
function
|
|
338
|
-
var
|
|
339
|
-
return f === void 0 ||
|
|
337
|
+
function j(u) {
|
|
338
|
+
var _ = u - f, I = u - a;
|
|
339
|
+
return f === void 0 || _ >= c || _ < 0 || v && I >= r;
|
|
340
340
|
}
|
|
341
|
-
function
|
|
342
|
-
var
|
|
343
|
-
if (
|
|
344
|
-
return M(
|
|
345
|
-
l = setTimeout(
|
|
341
|
+
function b() {
|
|
342
|
+
var u = at();
|
|
343
|
+
if (j(u))
|
|
344
|
+
return M(u);
|
|
345
|
+
l = setTimeout(b, W(u));
|
|
346
346
|
}
|
|
347
|
-
function M(
|
|
348
|
-
return l = void 0,
|
|
347
|
+
function M(u) {
|
|
348
|
+
return l = void 0, i && e ? p(u) : (e = s = void 0, n);
|
|
349
349
|
}
|
|
350
|
-
function
|
|
351
|
-
l !== void 0 && clearTimeout(l),
|
|
350
|
+
function L() {
|
|
351
|
+
l !== void 0 && clearTimeout(l), a = 0, e = f = s = l = void 0;
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function P() {
|
|
354
354
|
return l === void 0 ? n : M(at());
|
|
355
355
|
}
|
|
356
356
|
function k() {
|
|
357
|
-
var
|
|
358
|
-
if (e = arguments,
|
|
357
|
+
var u = at(), _ = j(u);
|
|
358
|
+
if (e = arguments, s = this, f = u, _) {
|
|
359
359
|
if (l === void 0)
|
|
360
|
-
return
|
|
361
|
-
if (
|
|
362
|
-
return clearTimeout(l), l = setTimeout(
|
|
360
|
+
return V(f);
|
|
361
|
+
if (v)
|
|
362
|
+
return clearTimeout(l), l = setTimeout(b, c), p(f);
|
|
363
363
|
}
|
|
364
|
-
return l === void 0 && (l = setTimeout(
|
|
364
|
+
return l === void 0 && (l = setTimeout(b, c)), n;
|
|
365
365
|
}
|
|
366
|
-
return k.cancel =
|
|
366
|
+
return k.cancel = L, k.flush = P, k;
|
|
367
367
|
}
|
|
368
|
-
let
|
|
368
|
+
let We = null;
|
|
369
369
|
function Cl() {
|
|
370
|
-
return
|
|
370
|
+
return We !== null;
|
|
371
371
|
}
|
|
372
372
|
function bl(t) {
|
|
373
|
-
|
|
373
|
+
We && Rt(), We = t;
|
|
374
374
|
}
|
|
375
375
|
function St(t) {
|
|
376
|
-
t ===
|
|
376
|
+
t === We && (We = null);
|
|
377
377
|
}
|
|
378
378
|
function Rt() {
|
|
379
|
-
|
|
379
|
+
We && (We.closeMenu(), We = null);
|
|
380
380
|
}
|
|
381
381
|
const Me = {
|
|
382
382
|
defaultDirection: "br",
|
|
@@ -408,12 +408,12 @@ let _l = 0;
|
|
|
408
408
|
function Ht(t) {
|
|
409
409
|
const { getContainer: c, zIndex: o } = t;
|
|
410
410
|
if (c) {
|
|
411
|
-
const
|
|
412
|
-
if (
|
|
413
|
-
let r =
|
|
414
|
-
return r || (r = Sl + _l++,
|
|
411
|
+
const s = typeof c == "function" ? c() : c;
|
|
412
|
+
if (s) {
|
|
413
|
+
let r = s.getAttribute("id");
|
|
414
|
+
return r || (r = Sl + _l++, s.setAttribute("id", r)), {
|
|
415
415
|
eleId: r,
|
|
416
|
-
container:
|
|
416
|
+
container: s,
|
|
417
417
|
isNew: !1
|
|
418
418
|
};
|
|
419
419
|
}
|
|
@@ -436,7 +436,7 @@ function kl(t) {
|
|
|
436
436
|
function _t(t) {
|
|
437
437
|
return typeof t == "number" ? `${t}px` : t;
|
|
438
438
|
}
|
|
439
|
-
const Ve =
|
|
439
|
+
const Ve = Pe({
|
|
440
440
|
props: {
|
|
441
441
|
/**
|
|
442
442
|
* Can be VNode or (data: unknown) => VNode
|
|
@@ -475,15 +475,15 @@ class wt {
|
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
477
|
function Vt(t) {
|
|
478
|
-
const { onDown: c, onMove: o, onUp: e } = t,
|
|
478
|
+
const { onDown: c, onMove: o, onUp: e } = t, s = new wt(), r = new wt();
|
|
479
479
|
let n;
|
|
480
|
-
function l(
|
|
481
|
-
|
|
480
|
+
function l(a) {
|
|
481
|
+
a.stopPropagation(), r.set(a.x, a.y), r.substract(s), o(s, r, a, n);
|
|
482
482
|
}
|
|
483
|
-
function f(
|
|
484
|
-
e(
|
|
483
|
+
function f(a) {
|
|
484
|
+
e(a, n), s.set(0, 0), document.removeEventListener("mousemove", l), document.removeEventListener("mouseup", f);
|
|
485
485
|
}
|
|
486
|
-
return (
|
|
486
|
+
return (a, C) => c(a, C) ? (n = C, s.set(a.x, a.y), document.addEventListener("mousemove", l), document.addEventListener("mouseup", f), a.stopPropagation(), !0) : !1;
|
|
487
487
|
}
|
|
488
488
|
function Ol(t, c) {
|
|
489
489
|
let o = 0;
|
|
@@ -503,9 +503,9 @@ const Ge = [], Mt = Ol(100, () => {
|
|
|
503
503
|
t();
|
|
504
504
|
});
|
|
505
505
|
function Dl(t, c, o, e) {
|
|
506
|
-
let
|
|
506
|
+
let s = 0, r = 0;
|
|
507
507
|
function n() {
|
|
508
|
-
t.value && (c &&
|
|
508
|
+
t.value && (c && s !== t.value.offsetWidth && c(t.value.offsetWidth), o && r !== t.value.offsetHeight && o(t.value.offsetHeight), s = t.value.offsetWidth, r = t.value.offsetHeight);
|
|
509
509
|
}
|
|
510
510
|
return {
|
|
511
511
|
startResizeChecker() {
|
|
@@ -517,7 +517,7 @@ function Dl(t, c, o, e) {
|
|
|
517
517
|
}
|
|
518
518
|
};
|
|
519
519
|
}
|
|
520
|
-
const Ot = 140, Il = 70, Wl = /* @__PURE__ */
|
|
520
|
+
const Ot = 140, Il = 70, Wl = /* @__PURE__ */ Pe({
|
|
521
521
|
__name: "ScrollRect",
|
|
522
522
|
props: {
|
|
523
523
|
/**
|
|
@@ -585,208 +585,208 @@ const Ot = 140, Il = 70, Wl = /* @__PURE__ */ Le({
|
|
|
585
585
|
},
|
|
586
586
|
emits: ["scroll", "resized"],
|
|
587
587
|
setup(t, { expose: c, emit: o }) {
|
|
588
|
-
const e = t,
|
|
588
|
+
const e = t, s = o, r = y(), n = y(), l = y(), f = y(), a = y(), C = y(), v = y(!1), i = h(() => e.scroll === "horizontal" || e.scroll === "both"), p = h(() => e.scroll === "vertical" || e.scroll === "both"), V = Ze({
|
|
589
589
|
show: !1,
|
|
590
590
|
size: 0,
|
|
591
591
|
sizeRaw: 0,
|
|
592
592
|
pos: 0
|
|
593
|
-
}),
|
|
593
|
+
}), W = Ze({
|
|
594
594
|
show: !1,
|
|
595
595
|
size: 0,
|
|
596
596
|
sizeRaw: 0,
|
|
597
597
|
pos: 0
|
|
598
598
|
});
|
|
599
|
-
let
|
|
599
|
+
let j = 0, b = 0, M = 0, L = 0, P = null;
|
|
600
600
|
const k = { attributes: !0, childList: !0 };
|
|
601
|
-
function
|
|
601
|
+
function u() {
|
|
602
602
|
if (r.value) {
|
|
603
|
-
if (
|
|
604
|
-
const
|
|
605
|
-
|
|
603
|
+
if (V.show) {
|
|
604
|
+
const O = r.value.offsetWidth / r.value.scrollWidth;
|
|
605
|
+
V.sizeRaw = O * r.value.offsetWidth, V.size = O * 100, V.pos = r.value.scrollLeft / (r.value.scrollWidth - r.value.offsetWidth) * (100 - V.size), O >= 1 && (V.show = !1);
|
|
606
606
|
}
|
|
607
|
-
if (
|
|
608
|
-
const
|
|
609
|
-
|
|
607
|
+
if (W.show) {
|
|
608
|
+
const O = r.value.offsetHeight / r.value.scrollHeight;
|
|
609
|
+
W.sizeRaw = O * r.value.offsetHeight, W.size = O * 100, W.pos = r.value.scrollTop / (r.value.scrollHeight - r.value.offsetHeight) * (100 - W.size), O >= 1 && (W.show = !1);
|
|
610
610
|
}
|
|
611
|
-
|
|
611
|
+
s("scroll", r.value.scrollLeft, r.value.scrollTop);
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function _(O = !1) {
|
|
615
615
|
if (!r.value)
|
|
616
616
|
return;
|
|
617
|
-
let G =
|
|
618
|
-
const ce = G && (
|
|
619
|
-
if (!
|
|
617
|
+
let G = i.value, T = p.value;
|
|
618
|
+
const ce = G && (j !== r.value.scrollWidth || M !== r.value.offsetWidth), xe = p && (b !== r.value.scrollHeight || L !== r.value.offsetHeight);
|
|
619
|
+
if (!O && !ce && !xe)
|
|
620
620
|
return;
|
|
621
621
|
const ve = window.getComputedStyle(r.value);
|
|
622
|
-
(ve.overflow === "hidden" || ve.overflowX === "hidden") && (G = !1), (ve.overflow === "hidden" || ve.overflowY === "hidden") && (
|
|
622
|
+
(ve.overflow === "hidden" || ve.overflowX === "hidden") && (G = !1), (ve.overflow === "hidden" || ve.overflowY === "hidden") && (T = !1), V.show = G, W.show = T, u(), M = r.value.offsetWidth, L = r.value.offsetHeight, j = r.value.scrollWidth, b = r.value.scrollHeight, s("resized", j, b);
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function I(O) {
|
|
625
625
|
var G;
|
|
626
|
-
e.scroll == "horizontal" && (
|
|
627
|
-
left: r.value.scrollLeft + (
|
|
626
|
+
e.scroll == "horizontal" && (O.deltaMode == 0 && ((G = r.value) == null || G.scrollTo({
|
|
627
|
+
left: r.value.scrollLeft + (O.deltaY > 0 ? Ot : -140),
|
|
628
628
|
behavior: "smooth"
|
|
629
|
-
})),
|
|
629
|
+
})), O.preventDefault(), O.stopPropagation());
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function m(O) {
|
|
632
632
|
var G;
|
|
633
|
-
|
|
634
|
-
left: r.value.scrollLeft + (
|
|
633
|
+
O.deltaMode == 0 && ((G = r.value) == null || G.scrollTo({
|
|
634
|
+
left: r.value.scrollLeft + (O.deltaY > 0 ? Ot : -140),
|
|
635
635
|
behavior: "smooth"
|
|
636
|
-
}),
|
|
636
|
+
}), O.preventDefault(), O.stopPropagation());
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function F(O) {
|
|
639
639
|
var G;
|
|
640
|
-
|
|
641
|
-
top: r.value.scrollTop + (
|
|
640
|
+
O.deltaMode == 0 && ((G = r.value) == null || G.scrollTo({
|
|
641
|
+
top: r.value.scrollTop + (O.deltaY > 0 ? Il : -70),
|
|
642
642
|
behavior: "smooth"
|
|
643
|
-
}),
|
|
643
|
+
}), O.preventDefault(), O.stopPropagation());
|
|
644
644
|
}
|
|
645
|
-
let H = 0,
|
|
645
|
+
let H = 0, S = 0, Z = 0, N = 0;
|
|
646
646
|
const d = Vt({
|
|
647
|
-
onDown(
|
|
648
|
-
return !l.value || !
|
|
647
|
+
onDown(O) {
|
|
648
|
+
return !l.value || !a.value ? !1 : (H = O.offsetX, S = O.x - O.offsetX - a.value.offsetLeft, O.preventDefault(), v.value = !0, !0);
|
|
649
649
|
},
|
|
650
|
-
onMove(
|
|
651
|
-
r.value && l.value && (
|
|
650
|
+
onMove(O, G, T) {
|
|
651
|
+
r.value && l.value && (E(T.x - H - S), T.preventDefault(), T.stopPropagation());
|
|
652
652
|
},
|
|
653
653
|
onUp() {
|
|
654
|
-
|
|
654
|
+
v.value = !1;
|
|
655
655
|
}
|
|
656
|
-
}),
|
|
657
|
-
onDown(
|
|
658
|
-
return !f.value || !
|
|
656
|
+
}), g = Vt({
|
|
657
|
+
onDown(O) {
|
|
658
|
+
return !f.value || !C.value ? !1 : (Z = O.offsetY, N = O.y - O.offsetY - C.value.offsetTop, O.preventDefault(), v.value = !0, !0);
|
|
659
659
|
},
|
|
660
|
-
onMove(
|
|
661
|
-
r.value && f.value && (X(
|
|
660
|
+
onMove(O, G, T) {
|
|
661
|
+
r.value && f.value && (X(T.y - Z - N), T.preventDefault(), T.stopPropagation());
|
|
662
662
|
},
|
|
663
663
|
onUp() {
|
|
664
|
-
|
|
664
|
+
v.value = !1;
|
|
665
665
|
}
|
|
666
666
|
});
|
|
667
|
-
function
|
|
668
|
-
r.value && (r.value.scrollLeft =
|
|
667
|
+
function w(O) {
|
|
668
|
+
r.value && (r.value.scrollLeft = O / 100 * (r.value.scrollWidth - r.value.offsetWidth));
|
|
669
669
|
}
|
|
670
|
-
function
|
|
671
|
-
r.value && (r.value.scrollLeft =
|
|
670
|
+
function A(O) {
|
|
671
|
+
r.value && (r.value.scrollLeft = O / 100 * (r.value.scrollHeight - r.value.offsetHeight));
|
|
672
672
|
}
|
|
673
|
-
function
|
|
674
|
-
r.value && (r.value.scrollLeft =
|
|
673
|
+
function E(O) {
|
|
674
|
+
r.value && (r.value.scrollLeft = O / (r.value.offsetWidth - V.sizeRaw) * (r.value.scrollWidth - r.value.offsetWidth));
|
|
675
675
|
}
|
|
676
|
-
function X(
|
|
677
|
-
r.value && (r.value.scrollTop =
|
|
676
|
+
function X(O) {
|
|
677
|
+
r.value && (r.value.scrollTop = O / (r.value.offsetHeight - W.sizeRaw) * (r.value.scrollHeight - r.value.offsetHeight));
|
|
678
678
|
}
|
|
679
|
-
function
|
|
680
|
-
e.scrollBarBackgroundClickable &&
|
|
679
|
+
function D(O) {
|
|
680
|
+
e.scrollBarBackgroundClickable && E(O.offsetX - V.sizeRaw / 2);
|
|
681
681
|
}
|
|
682
|
-
function
|
|
683
|
-
e.scrollBarBackgroundClickable && X(
|
|
682
|
+
function se(O) {
|
|
683
|
+
e.scrollBarBackgroundClickable && X(O.offsetY - W.sizeRaw / 2);
|
|
684
684
|
}
|
|
685
685
|
const {
|
|
686
|
-
startResizeChecker:
|
|
687
|
-
stopResizeChecker:
|
|
686
|
+
startResizeChecker: ge,
|
|
687
|
+
stopResizeChecker: x
|
|
688
688
|
} = Dl(
|
|
689
689
|
r,
|
|
690
|
-
() =>
|
|
691
|
-
() =>
|
|
690
|
+
() => _(),
|
|
691
|
+
() => _()
|
|
692
692
|
);
|
|
693
693
|
return q(() => {
|
|
694
694
|
we(() => {
|
|
695
|
-
setTimeout(() =>
|
|
695
|
+
setTimeout(() => _(!0), 200), _(!0), ge(), P = new MutationObserver(() => _()), P.observe(r.value, k);
|
|
696
696
|
});
|
|
697
697
|
}), J(() => {
|
|
698
|
-
|
|
698
|
+
x(), P && (P.disconnect(), P = null);
|
|
699
699
|
}), c({
|
|
700
700
|
refreshScrollState() {
|
|
701
|
-
|
|
701
|
+
_(!0);
|
|
702
702
|
},
|
|
703
703
|
getScrollContainer() {
|
|
704
704
|
return r.value;
|
|
705
705
|
},
|
|
706
|
-
scrollTo(
|
|
707
|
-
var
|
|
708
|
-
(
|
|
706
|
+
scrollTo(O, G) {
|
|
707
|
+
var T;
|
|
708
|
+
(T = r.value) == null || T.scrollTo(O, G);
|
|
709
709
|
},
|
|
710
710
|
scrollToTop() {
|
|
711
|
-
var
|
|
712
|
-
(
|
|
711
|
+
var O;
|
|
712
|
+
(O = r.value) == null || O.scrollTo(0, 0);
|
|
713
713
|
},
|
|
714
714
|
scrollToBottom() {
|
|
715
|
-
var
|
|
716
|
-
(
|
|
715
|
+
var O;
|
|
716
|
+
(O = r.value) == null || O.scrollTo(r.value.scrollWidth, r.value.scrollHeight);
|
|
717
717
|
}
|
|
718
|
-
}), (
|
|
718
|
+
}), (O, G) => (R(), z("div", {
|
|
719
719
|
ref_key: "scrollrect",
|
|
720
720
|
ref: n,
|
|
721
721
|
class: Re([
|
|
722
722
|
"vue-scroll-rect",
|
|
723
723
|
t.scrollBarAlwaysShow ? "always-show-scrollbar" : "",
|
|
724
724
|
t.scrollBarBackgroundClickable ? "background-clickable" : "",
|
|
725
|
-
|
|
725
|
+
v.value ? "dragging" : ""
|
|
726
726
|
]),
|
|
727
|
-
style:
|
|
727
|
+
style: Ce({
|
|
728
728
|
width: t.width ? `${t.width}px` : void 0,
|
|
729
729
|
height: t.height ? `${t.height}px` : void 0
|
|
730
730
|
}),
|
|
731
|
-
onWheel:
|
|
731
|
+
onWheel: I
|
|
732
732
|
}, [
|
|
733
733
|
ue("div", {
|
|
734
734
|
ref_key: "container",
|
|
735
735
|
ref: r,
|
|
736
736
|
class: Re(["scroll-content", t.scroll, t.containerClass]),
|
|
737
|
-
style:
|
|
737
|
+
style: Ce({
|
|
738
738
|
maxWidth: t.maxWidth ? `${t.maxWidth}px` : void 0,
|
|
739
739
|
maxHeight: t.maxHeight ? `${t.maxHeight}px` : void 0,
|
|
740
740
|
...t.containerStyle
|
|
741
741
|
}),
|
|
742
|
-
onScroll:
|
|
742
|
+
onScroll: u
|
|
743
743
|
}, [
|
|
744
|
-
|
|
744
|
+
Se(O.$slots, "default")
|
|
745
745
|
], 38),
|
|
746
|
-
|
|
746
|
+
V.show ? Se(O.$slots, "scrollBarX", {
|
|
747
747
|
key: 0,
|
|
748
|
-
scrollBarValue:
|
|
749
|
-
onScroll:
|
|
748
|
+
scrollBarValue: V,
|
|
749
|
+
onScroll: w
|
|
750
750
|
}, () => [
|
|
751
751
|
ue("div", {
|
|
752
752
|
ref_key: "scrollBarRefX",
|
|
753
753
|
ref: l,
|
|
754
754
|
class: "scrollbar horizontal",
|
|
755
|
-
onClick:
|
|
756
|
-
onWheel:
|
|
755
|
+
onClick: D,
|
|
756
|
+
onWheel: m
|
|
757
757
|
}, [
|
|
758
758
|
ue("div", {
|
|
759
759
|
class: "thumb",
|
|
760
760
|
ref_key: "scrollBarThumbRefX",
|
|
761
|
-
ref:
|
|
762
|
-
style:
|
|
761
|
+
ref: a,
|
|
762
|
+
style: Ce({ left: `${V.pos}%`, width: `${V.size}%` }),
|
|
763
763
|
onMousedown: G[0] || (G[0] = //@ts-ignore
|
|
764
|
-
(...
|
|
765
|
-
onWheel:
|
|
764
|
+
(...T) => K(d) && K(d)(...T)),
|
|
765
|
+
onWheel: m
|
|
766
766
|
}, null, 36)
|
|
767
767
|
], 544)
|
|
768
768
|
]) : ne("", !0),
|
|
769
|
-
|
|
769
|
+
W.show ? Se(O.$slots, "scrollBarY", {
|
|
770
770
|
key: 1,
|
|
771
|
-
scrollBarValue:
|
|
772
|
-
onScroll:
|
|
771
|
+
scrollBarValue: W,
|
|
772
|
+
onScroll: A
|
|
773
773
|
}, () => [
|
|
774
|
-
|
|
774
|
+
W.show ? (R(), z("div", {
|
|
775
775
|
key: 0,
|
|
776
776
|
ref_key: "scrollBarRefY",
|
|
777
777
|
ref: f,
|
|
778
778
|
class: "scrollbar vertical",
|
|
779
|
-
onClick:
|
|
780
|
-
onWheel:
|
|
779
|
+
onClick: se,
|
|
780
|
+
onWheel: F
|
|
781
781
|
}, [
|
|
782
782
|
ue("div", {
|
|
783
783
|
class: "thumb",
|
|
784
784
|
ref_key: "scrollBarThumbRefY",
|
|
785
|
-
ref:
|
|
786
|
-
style:
|
|
785
|
+
ref: C,
|
|
786
|
+
style: Ce({ top: `${W.pos}%`, height: `${W.size}%` }),
|
|
787
787
|
onMousedown: G[1] || (G[1] = //@ts-ignore
|
|
788
|
-
(...
|
|
789
|
-
onWheel:
|
|
788
|
+
(...T) => K(g) && K(g)(...T)),
|
|
789
|
+
onWheel: F
|
|
790
790
|
}, null, 36)
|
|
791
791
|
], 544)) : ne("", !0)
|
|
792
792
|
]) : ne("", !0)
|
|
@@ -794,8 +794,8 @@ const Ot = 140, Il = 70, Wl = /* @__PURE__ */ Le({
|
|
|
794
794
|
}
|
|
795
795
|
}), pt = (t, c) => {
|
|
796
796
|
const o = t.__vccOpts || t;
|
|
797
|
-
for (const [e,
|
|
798
|
-
o[e] =
|
|
797
|
+
for (const [e, s] of c)
|
|
798
|
+
o[e] = s;
|
|
799
799
|
return o;
|
|
800
800
|
}, jl = {}, Ll = {
|
|
801
801
|
class: "mx-checked-mark",
|
|
@@ -805,7 +805,7 @@ const Ot = 140, Il = 70, Wl = /* @__PURE__ */ Le({
|
|
|
805
805
|
Pl
|
|
806
806
|
];
|
|
807
807
|
function Hl(t, c) {
|
|
808
|
-
return
|
|
808
|
+
return R(), z("svg", Ll, Rl);
|
|
809
809
|
}
|
|
810
810
|
const Tl = /* @__PURE__ */ pt(jl, [["render", Hl]]), Bl = {}, Al = {
|
|
811
811
|
class: "mx-right-arrow",
|
|
@@ -815,12 +815,12 @@ const Tl = /* @__PURE__ */ pt(jl, [["render", Hl]]), Bl = {}, Al = {
|
|
|
815
815
|
Fl
|
|
816
816
|
];
|
|
817
817
|
function zl(t, c) {
|
|
818
|
-
return
|
|
818
|
+
return R(), z("svg", Al, El);
|
|
819
819
|
}
|
|
820
820
|
const Nl = /* @__PURE__ */ pt(Bl, [["render", zl]]), Kl = { class: "mx-item-row" }, Ul = ["xlink:href"], Gl = {
|
|
821
821
|
key: 1,
|
|
822
822
|
class: "label"
|
|
823
|
-
}, Xl = { class: "mx-item-row" }, Yl = { class: "mx-shortcut" }, ht = /* @__PURE__ */
|
|
823
|
+
}, Xl = { class: "mx-item-row" }, Yl = { class: "mx-shortcut" }, ht = /* @__PURE__ */ Pe({
|
|
824
824
|
__name: "ContextMenuItem",
|
|
825
825
|
props: {
|
|
826
826
|
/**
|
|
@@ -954,120 +954,120 @@ const Nl = /* @__PURE__ */ pt(Bl, [["render", zl]]), Kl = { class: "mx-item-row"
|
|
|
954
954
|
"subMenuClose"
|
|
955
955
|
],
|
|
956
956
|
setup(t, { expose: c, emit: o }) {
|
|
957
|
-
const e = t,
|
|
957
|
+
const e = t, s = o, {
|
|
958
958
|
clickHandler: r,
|
|
959
959
|
clickClose: n,
|
|
960
960
|
clickableWhenHasChildren: l,
|
|
961
961
|
disabled: f,
|
|
962
|
-
hidden:
|
|
963
|
-
label:
|
|
964
|
-
icon:
|
|
965
|
-
iconFontClass:
|
|
966
|
-
showRightArrow:
|
|
967
|
-
shortcut:
|
|
968
|
-
hasChildren:
|
|
969
|
-
} = Ee(e),
|
|
970
|
-
ke("MenuItemName",
|
|
971
|
-
const
|
|
962
|
+
hidden: a,
|
|
963
|
+
label: C,
|
|
964
|
+
icon: v,
|
|
965
|
+
iconFontClass: i,
|
|
966
|
+
showRightArrow: p,
|
|
967
|
+
shortcut: V,
|
|
968
|
+
hasChildren: W
|
|
969
|
+
} = Ee(e), j = y(!1), b = y(!1), M = y(), L = me("globalOptions"), P = me("globalHasSlot"), k = me("globalRenderSlot"), u = me("globalCloseMenu"), _ = me("menuContext"), I = h(() => typeof C.value == "string" ? C.value : typeof C.value == "function" ? kl(C.value.toString()) : "MenuItem[unknow]");
|
|
970
|
+
ke("MenuItemName", I);
|
|
971
|
+
const m = {
|
|
972
972
|
getSubMenuInstance: () => {
|
|
973
973
|
},
|
|
974
|
-
showSubMenu: () =>
|
|
974
|
+
showSubMenu: () => j.value ? (_.markActiveMenuItem(m, !0), !0) : W.value ? (H(), !0) : !1,
|
|
975
975
|
hideSubMenu: () => {
|
|
976
|
-
|
|
976
|
+
_.closeOtherSubMenu();
|
|
977
977
|
},
|
|
978
|
-
isDisabledOrHidden: () => f.value ||
|
|
978
|
+
isDisabledOrHidden: () => f.value || a.value,
|
|
979
979
|
getElement: () => M.value,
|
|
980
|
-
focus: () =>
|
|
981
|
-
blur: () =>
|
|
982
|
-
click:
|
|
980
|
+
focus: () => b.value = !0,
|
|
981
|
+
blur: () => b.value = !1,
|
|
982
|
+
click: F
|
|
983
983
|
};
|
|
984
|
-
ke("menuItemInstance",
|
|
985
|
-
|
|
986
|
-
let
|
|
987
|
-
const d =
|
|
984
|
+
ke("menuItemInstance", m), q(() => {
|
|
985
|
+
_.isMenuItemDataCollectedFlag() ? we(() => {
|
|
986
|
+
let N = 0;
|
|
987
|
+
const d = _.getElement();
|
|
988
988
|
if (d) {
|
|
989
|
-
let
|
|
990
|
-
for (let
|
|
991
|
-
const
|
|
992
|
-
if (
|
|
993
|
-
if (
|
|
994
|
-
|
|
989
|
+
let g = 0;
|
|
990
|
+
for (let w = 0; w < d.children.length; w++) {
|
|
991
|
+
const A = d.children[w];
|
|
992
|
+
if (A.getAttribute("data-type") === "ContextMenuItem") {
|
|
993
|
+
if (A === M.value) {
|
|
994
|
+
N = g;
|
|
995
995
|
break;
|
|
996
996
|
}
|
|
997
|
-
|
|
997
|
+
g++;
|
|
998
998
|
}
|
|
999
999
|
}
|
|
1000
1000
|
}
|
|
1001
|
-
|
|
1002
|
-
}) :
|
|
1001
|
+
_.addChildMenuItem(m, N);
|
|
1002
|
+
}) : _.addChildMenuItem(m);
|
|
1003
1003
|
}), J(() => {
|
|
1004
|
-
|
|
1004
|
+
_.removeChildMenuItem(m);
|
|
1005
1005
|
});
|
|
1006
|
-
function
|
|
1006
|
+
function F(N) {
|
|
1007
1007
|
if (!f.value) {
|
|
1008
|
-
if (
|
|
1009
|
-
const d =
|
|
1010
|
-
if (d.classList.contains("mx-context-no-clickable") ||
|
|
1008
|
+
if (N) {
|
|
1009
|
+
const d = N.target;
|
|
1010
|
+
if (d.classList.contains("mx-context-no-clickable") || L.value.ignoreClickClassName && d.classList.contains(L.value.ignoreClickClassName))
|
|
1011
1011
|
return;
|
|
1012
|
-
if (
|
|
1013
|
-
|
|
1012
|
+
if (L.value.clickCloseClassName && d.classList.contains(L.value.clickCloseClassName)) {
|
|
1013
|
+
N.stopPropagation(), u(e.rawMenuItem);
|
|
1014
1014
|
return;
|
|
1015
1015
|
}
|
|
1016
1016
|
}
|
|
1017
|
-
|
|
1017
|
+
W.value ? l.value ? (typeof r.value == "function" && r.value(N), s("click", N)) : j.value || H() : (typeof r.value == "function" && r.value(N), s("click", N), n.value && u(e.rawMenuItem));
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
|
-
function H(
|
|
1021
|
-
|
|
1020
|
+
function H(N) {
|
|
1021
|
+
b.value = !1, _.checkCloseOtherSubMenuTimeOut() || _.closeOtherSubMenu(), f.value || (_.markActiveMenuItem(m), W.value && (N || _.markThisOpenedByKeyBoard(), _.addOpenedSubMenu(S), j.value = !0, we(() => s("subMenuOpen", m))));
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1024
|
-
|
|
1023
|
+
function S() {
|
|
1024
|
+
b.value = !1, j.value = !1, s("subMenuClose", m);
|
|
1025
1025
|
}
|
|
1026
1026
|
function Z() {
|
|
1027
1027
|
return {
|
|
1028
1028
|
disabled: f.value,
|
|
1029
|
-
label:
|
|
1030
|
-
icon:
|
|
1031
|
-
iconFontClass:
|
|
1032
|
-
showRightArrow:
|
|
1029
|
+
label: C.value,
|
|
1030
|
+
icon: v.value,
|
|
1031
|
+
iconFontClass: i.value,
|
|
1032
|
+
showRightArrow: p.value,
|
|
1033
1033
|
clickClose: n.value,
|
|
1034
1034
|
clickableWhenHasChildren: l.value,
|
|
1035
|
-
shortcut:
|
|
1036
|
-
theme:
|
|
1037
|
-
isOpen:
|
|
1038
|
-
hasChildren:
|
|
1039
|
-
onClick:
|
|
1035
|
+
shortcut: V.value,
|
|
1036
|
+
theme: L.value.theme,
|
|
1037
|
+
isOpen: j,
|
|
1038
|
+
hasChildren: W,
|
|
1039
|
+
onClick: F,
|
|
1040
1040
|
onMouseEnter: H,
|
|
1041
|
-
closeMenu:
|
|
1041
|
+
closeMenu: u
|
|
1042
1042
|
};
|
|
1043
1043
|
}
|
|
1044
|
-
return c(
|
|
1044
|
+
return c(m), (N, d) => K(a) ? ne("", !0) : (R(), z("div", {
|
|
1045
1045
|
key: 0,
|
|
1046
1046
|
class: "mx-context-menu-item-wrapper",
|
|
1047
1047
|
ref_key: "menuItemRef",
|
|
1048
1048
|
ref: M,
|
|
1049
1049
|
"data-type": "ContextMenuItem"
|
|
1050
1050
|
}, [
|
|
1051
|
-
|
|
1051
|
+
K(P)("itemRender") ? (R(), he(K(Ve), {
|
|
1052
1052
|
key: 0,
|
|
1053
|
-
vnode: () =>
|
|
1054
|
-
}, null, 8, ["vnode"])) : t.customRender ? (
|
|
1053
|
+
vnode: () => K(k)("itemRender", Z())
|
|
1054
|
+
}, null, 8, ["vnode"])) : t.customRender ? (R(), he(K(Ve), {
|
|
1055
1055
|
key: 1,
|
|
1056
1056
|
vnode: t.customRender,
|
|
1057
1057
|
data: Z()
|
|
1058
|
-
}, null, 8, ["vnode", "data"])) : (
|
|
1058
|
+
}, null, 8, ["vnode", "data"])) : (R(), z("div", {
|
|
1059
1059
|
key: 2,
|
|
1060
1060
|
class: Re([
|
|
1061
1061
|
"mx-context-menu-item",
|
|
1062
|
-
|
|
1063
|
-
|
|
1062
|
+
K(f) ? "disabled" : "",
|
|
1063
|
+
b.value ? "keyboard-focus" : "",
|
|
1064
1064
|
t.customClass ? " " + t.customClass : "",
|
|
1065
|
-
|
|
1065
|
+
j.value ? "open" : ""
|
|
1066
1066
|
]),
|
|
1067
|
-
onClick:
|
|
1067
|
+
onClick: F,
|
|
1068
1068
|
onMouseenter: H
|
|
1069
1069
|
}, [
|
|
1070
|
-
|
|
1070
|
+
Se(N.$slots, "default", {}, () => [
|
|
1071
1071
|
ue("div", Kl, [
|
|
1072
1072
|
ue("div", {
|
|
1073
1073
|
class: Re([
|
|
@@ -1075,68 +1075,68 @@ const Nl = /* @__PURE__ */ pt(Bl, [["render", zl]]), Kl = { class: "mx-item-row"
|
|
|
1075
1075
|
t.preserveIconWidth ? "preserve-width" : ""
|
|
1076
1076
|
])
|
|
1077
1077
|
}, [
|
|
1078
|
-
|
|
1079
|
-
|
|
1078
|
+
Se(N.$slots, "icon", {}, () => [
|
|
1079
|
+
K(P)("itemIconRender") ? (R(), he(K(Ve), {
|
|
1080
1080
|
key: 0,
|
|
1081
|
-
vnode: () =>
|
|
1082
|
-
}, null, 8, ["vnode"])) : typeof t.svgIcon == "string" && t.svgIcon ? (
|
|
1081
|
+
vnode: () => K(k)("itemIconRender", Z())
|
|
1082
|
+
}, null, 8, ["vnode"])) : typeof t.svgIcon == "string" && t.svgIcon ? (R(), z("svg", ct({
|
|
1083
1083
|
key: 1,
|
|
1084
1084
|
class: "icon svg"
|
|
1085
1085
|
}, t.svgProps), [
|
|
1086
1086
|
ue("use", { "xlink:href": t.svgIcon }, null, 8, Ul)
|
|
1087
|
-
], 16)) : typeof
|
|
1087
|
+
], 16)) : typeof K(v) != "string" ? (R(), he(K(Ve), {
|
|
1088
1088
|
key: 2,
|
|
1089
|
-
vnode:
|
|
1090
|
-
data:
|
|
1091
|
-
}, null, 8, ["vnode", "data"])) : typeof
|
|
1089
|
+
vnode: K(v),
|
|
1090
|
+
data: K(v)
|
|
1091
|
+
}, null, 8, ["vnode", "data"])) : typeof K(v) == "string" && K(v) !== "" ? (R(), z("i", {
|
|
1092
1092
|
key: 3,
|
|
1093
|
-
class: Re(
|
|
1093
|
+
class: Re(K(v) + " icon " + K(i) + " " + K(L).iconFontClass)
|
|
1094
1094
|
}, null, 2)) : ne("", !0)
|
|
1095
1095
|
]),
|
|
1096
|
-
t.checked ?
|
|
1097
|
-
|
|
1096
|
+
t.checked ? Se(N.$slots, "check", { key: 0 }, () => [
|
|
1097
|
+
K(P)("itemCheckRender") ? (R(), he(K(Ve), {
|
|
1098
1098
|
key: 0,
|
|
1099
|
-
vnode: () =>
|
|
1099
|
+
vnode: () => K(k)("itemCheckRender", Z())
|
|
1100
1100
|
}, null, 8, ["vnode"])) : ne("", !0),
|
|
1101
1101
|
Oe(Tl)
|
|
1102
1102
|
]) : ne("", !0)
|
|
1103
1103
|
], 2),
|
|
1104
|
-
|
|
1105
|
-
|
|
1104
|
+
Se(N.$slots, "label", {}, () => [
|
|
1105
|
+
K(P)("itemLabelRender") ? (R(), he(K(Ve), {
|
|
1106
1106
|
key: 0,
|
|
1107
|
-
vnode: () =>
|
|
1108
|
-
}, null, 8, ["vnode"])) : typeof
|
|
1107
|
+
vnode: () => K(k)("itemLabelRender", Z())
|
|
1108
|
+
}, null, 8, ["vnode"])) : typeof K(C) == "string" ? (R(), z("span", Gl, De(K(C)), 1)) : (R(), he(K(Ve), {
|
|
1109
1109
|
key: 2,
|
|
1110
|
-
vnode:
|
|
1111
|
-
data:
|
|
1110
|
+
vnode: K(C),
|
|
1111
|
+
data: K(C)
|
|
1112
1112
|
}, null, 8, ["vnode", "data"]))
|
|
1113
1113
|
])
|
|
1114
1114
|
]),
|
|
1115
1115
|
ue("div", Xl, [
|
|
1116
|
-
|
|
1117
|
-
|
|
1116
|
+
K(V) || N.$slots.shortcut ? Se(N.$slots, "shortcut", { key: 0 }, () => [
|
|
1117
|
+
K(P)("itemShortcutRender") ? (R(), he(K(Ve), {
|
|
1118
1118
|
key: 0,
|
|
1119
|
-
vnode: () =>
|
|
1119
|
+
vnode: () => K(k)("itemShortcutRender", Z())
|
|
1120
1120
|
}, null, 8, ["vnode"])) : ne("", !0),
|
|
1121
|
-
ue("span", Yl, De(
|
|
1121
|
+
ue("span", Yl, De(K(V)), 1)
|
|
1122
1122
|
]) : ne("", !0),
|
|
1123
|
-
|
|
1124
|
-
|
|
1123
|
+
K(p) ? Se(N.$slots, "rightArrow", { key: 1 }, () => [
|
|
1124
|
+
K(P)("itemRightArrowRender") ? (R(), he(K(Ve), {
|
|
1125
1125
|
key: 0,
|
|
1126
|
-
vnode: () =>
|
|
1126
|
+
vnode: () => K(k)("itemRightArrowRender", Z())
|
|
1127
1127
|
}, null, 8, ["vnode"])) : ne("", !0),
|
|
1128
1128
|
Oe(Nl)
|
|
1129
1129
|
]) : ne("", !0)
|
|
1130
1130
|
])
|
|
1131
1131
|
])
|
|
1132
1132
|
], 34)),
|
|
1133
|
-
|
|
1134
|
-
context:
|
|
1135
|
-
show:
|
|
1133
|
+
Se(N.$slots, "submenu", {
|
|
1134
|
+
context: m,
|
|
1135
|
+
show: j.value
|
|
1136
1136
|
})
|
|
1137
1137
|
], 512));
|
|
1138
1138
|
}
|
|
1139
|
-
}), ql =
|
|
1139
|
+
}), ql = Pe({
|
|
1140
1140
|
name: "ContextMenuSperator",
|
|
1141
1141
|
components: {
|
|
1142
1142
|
VNodeRender: Ve
|
|
@@ -1152,14 +1152,14 @@ const Nl = /* @__PURE__ */ pt(Bl, [["render", zl]]), Kl = { class: "mx-item-row"
|
|
|
1152
1152
|
key: 1,
|
|
1153
1153
|
class: "mx-context-menu-item-sperator mx-context-no-clickable"
|
|
1154
1154
|
};
|
|
1155
|
-
function Jl(t, c, o, e,
|
|
1155
|
+
function Jl(t, c, o, e, s, r) {
|
|
1156
1156
|
const n = Je("VNodeRender");
|
|
1157
|
-
return t.globalHasSlot("separatorRender") ? (
|
|
1157
|
+
return t.globalHasSlot("separatorRender") ? (R(), he(n, {
|
|
1158
1158
|
key: 0,
|
|
1159
1159
|
vnode: () => t.globalRenderSlot("separatorRender", {})
|
|
1160
|
-
}, null, 8, ["vnode"])) : (
|
|
1160
|
+
}, null, 8, ["vnode"])) : (R(), z("div", Zl));
|
|
1161
1161
|
}
|
|
1162
|
-
const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */
|
|
1162
|
+
const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */ Pe({
|
|
1163
1163
|
__name: "ContextSubMenu",
|
|
1164
1164
|
props: {
|
|
1165
1165
|
/**
|
|
@@ -1219,231 +1219,231 @@ const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */ Le({
|
|
|
1219
1219
|
},
|
|
1220
1220
|
emits: ["closeAnimFinished"],
|
|
1221
1221
|
setup(t, { expose: c, emit: o }) {
|
|
1222
|
-
const e = t,
|
|
1222
|
+
const e = t, s = o, r = y(!1), n = me("globalGetMenuHostId", ""), l = me("menuContext"), f = me("globalOptions");
|
|
1223
1223
|
me("globalHasSlot"), me("globalRenderSlot");
|
|
1224
|
-
const
|
|
1225
|
-
let
|
|
1226
|
-
function
|
|
1227
|
-
|
|
1224
|
+
const a = y("UnknowOrRoot"), C = me("MenuItemName", a), { zIndex: v, getParentWidth: i, getParentHeight: p, getZoom: V } = l, { adjustPosition: W } = Ee(e), j = y(), b = y(), M = y(), L = [], P = me("globalSetCurrentSubMenu"), k = [];
|
|
1225
|
+
let u = null, _ = 0;
|
|
1226
|
+
function I() {
|
|
1227
|
+
u && u.blur();
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1230
|
-
if (
|
|
1231
|
-
for (let G =
|
|
1229
|
+
function m(x, O) {
|
|
1230
|
+
if (x) {
|
|
1231
|
+
for (let G = O !== void 0 ? O : 0; G < k.length; G++)
|
|
1232
1232
|
if (!k[G].isDisabledOrHidden()) {
|
|
1233
|
-
|
|
1233
|
+
F(G);
|
|
1234
1234
|
break;
|
|
1235
1235
|
}
|
|
1236
1236
|
} else
|
|
1237
|
-
for (let G =
|
|
1237
|
+
for (let G = O !== void 0 ? O : k.length - 1; G >= 0; G--)
|
|
1238
1238
|
if (!k[G].isDisabledOrHidden()) {
|
|
1239
|
-
|
|
1239
|
+
F(G);
|
|
1240
1240
|
break;
|
|
1241
1241
|
}
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1244
|
-
if (
|
|
1243
|
+
function F(x) {
|
|
1244
|
+
if (u && I(), x !== void 0 && (u = k[Math.max(0, Math.min(x, k.length - 1))]), !u)
|
|
1245
1245
|
return;
|
|
1246
|
-
|
|
1247
|
-
const
|
|
1248
|
-
|
|
1246
|
+
u.focus();
|
|
1247
|
+
const O = u.getElement();
|
|
1248
|
+
O && O.scrollIntoView({
|
|
1249
1249
|
behavior: "auto",
|
|
1250
1250
|
block: "nearest",
|
|
1251
1251
|
inline: "nearest"
|
|
1252
1252
|
});
|
|
1253
1253
|
}
|
|
1254
1254
|
function H() {
|
|
1255
|
-
|
|
1255
|
+
P(S);
|
|
1256
1256
|
}
|
|
1257
|
-
const
|
|
1257
|
+
const S = {
|
|
1258
1258
|
el: M,
|
|
1259
|
-
name:
|
|
1259
|
+
name: C,
|
|
1260
1260
|
isTopLevel: () => l.getParentContext() === null,
|
|
1261
1261
|
closeSelfAndActiveParent: () => {
|
|
1262
|
-
const
|
|
1263
|
-
if (
|
|
1264
|
-
|
|
1265
|
-
const
|
|
1266
|
-
if (
|
|
1267
|
-
return
|
|
1262
|
+
const x = d.getParentContext();
|
|
1263
|
+
if (x) {
|
|
1264
|
+
x.closeOtherSubMenu();
|
|
1265
|
+
const O = x.getSubMenuInstanceContext();
|
|
1266
|
+
if (O)
|
|
1267
|
+
return O.focusCurrentItem(), !0;
|
|
1268
1268
|
}
|
|
1269
1269
|
return !1;
|
|
1270
1270
|
},
|
|
1271
1271
|
closeCurrentSubMenu: () => {
|
|
1272
|
-
var
|
|
1273
|
-
return (
|
|
1272
|
+
var x;
|
|
1273
|
+
return (x = d.getParentContext()) == null ? void 0 : x.closeOtherSubMenu();
|
|
1274
1274
|
},
|
|
1275
|
-
moveCurrentItemFirst: () =>
|
|
1276
|
-
moveCurrentItemLast: () =>
|
|
1277
|
-
moveCurrentItemDown: () =>
|
|
1278
|
-
moveCurrentItemUp: () =>
|
|
1279
|
-
focusCurrentItem: () =>
|
|
1280
|
-
openCurrentItemSubMenu: () =>
|
|
1281
|
-
triggerCurrentItemClick: (
|
|
1275
|
+
moveCurrentItemFirst: () => m(!0),
|
|
1276
|
+
moveCurrentItemLast: () => m(!1),
|
|
1277
|
+
moveCurrentItemDown: () => m(!0, u ? k.indexOf(u) + 1 : 0),
|
|
1278
|
+
moveCurrentItemUp: () => m(!1, u ? k.indexOf(u) - 1 : 0),
|
|
1279
|
+
focusCurrentItem: () => F(),
|
|
1280
|
+
openCurrentItemSubMenu: () => u ? u?.showSubMenu() : !1,
|
|
1281
|
+
triggerCurrentItemClick: (x) => u?.click(x)
|
|
1282
1282
|
};
|
|
1283
|
-
let Z = !1,
|
|
1283
|
+
let Z = !1, N = !1;
|
|
1284
1284
|
const d = {
|
|
1285
|
-
zIndex:
|
|
1285
|
+
zIndex: v + 1,
|
|
1286
1286
|
container: l.container,
|
|
1287
1287
|
adjustPadding: f.value.adjustPadding || Me.defaultAdjustPadding,
|
|
1288
1288
|
getParentWidth: () => {
|
|
1289
|
-
var
|
|
1290
|
-
return ((
|
|
1289
|
+
var x;
|
|
1290
|
+
return ((x = M.value) == null ? void 0 : x.offsetWidth) || 0;
|
|
1291
1291
|
},
|
|
1292
1292
|
getParentHeight: () => {
|
|
1293
|
-
var
|
|
1294
|
-
return ((
|
|
1293
|
+
var x;
|
|
1294
|
+
return ((x = M.value) == null ? void 0 : x.offsetHeight) || 0;
|
|
1295
1295
|
},
|
|
1296
|
-
getPositon: () => [
|
|
1296
|
+
getPositon: () => [D.value.x, D.value.y],
|
|
1297
1297
|
getZoom: () => f.value.zoom || Me.defaultZoom,
|
|
1298
|
-
addOpenedSubMenu(
|
|
1299
|
-
|
|
1298
|
+
addOpenedSubMenu(x) {
|
|
1299
|
+
L.push(x);
|
|
1300
1300
|
},
|
|
1301
1301
|
closeOtherSubMenu() {
|
|
1302
|
-
|
|
1302
|
+
L.forEach((x) => x()), L.splice(0, L.length), P(S);
|
|
1303
1303
|
},
|
|
1304
1304
|
checkCloseOtherSubMenuTimeOut() {
|
|
1305
|
-
return
|
|
1305
|
+
return _ ? (clearTimeout(_), _ = 0, !0) : !1;
|
|
1306
1306
|
},
|
|
1307
1307
|
closeOtherSubMenuWithTimeOut() {
|
|
1308
|
-
|
|
1309
|
-
|
|
1308
|
+
_ = setTimeout(() => {
|
|
1309
|
+
_ = 0, this.closeOtherSubMenu();
|
|
1310
1310
|
}, 200);
|
|
1311
1311
|
},
|
|
1312
|
-
addChildMenuItem: (
|
|
1313
|
-
|
|
1312
|
+
addChildMenuItem: (x, O) => {
|
|
1313
|
+
O === void 0 ? k.push(x) : k.splice(O, 0, x);
|
|
1314
1314
|
},
|
|
1315
|
-
removeChildMenuItem: (
|
|
1316
|
-
k.splice(k.indexOf(
|
|
1315
|
+
removeChildMenuItem: (x) => {
|
|
1316
|
+
k.splice(k.indexOf(x), 1), x.getSubMenuInstance = () => {
|
|
1317
1317
|
};
|
|
1318
1318
|
},
|
|
1319
|
-
markActiveMenuItem: (
|
|
1320
|
-
|
|
1319
|
+
markActiveMenuItem: (x, O = !1) => {
|
|
1320
|
+
I(), u = x, O && F();
|
|
1321
1321
|
},
|
|
1322
1322
|
markThisOpenedByKeyBoard: () => {
|
|
1323
1323
|
Z = !0;
|
|
1324
1324
|
},
|
|
1325
1325
|
isOpenedByKeyBoardFlag: () => Z ? (Z = !1, !0) : !1,
|
|
1326
|
-
isMenuItemDataCollectedFlag: () =>
|
|
1326
|
+
isMenuItemDataCollectedFlag: () => N,
|
|
1327
1327
|
getElement: () => M.value || null,
|
|
1328
1328
|
getParentContext: () => l,
|
|
1329
|
-
getSubMenuInstanceContext: () =>
|
|
1329
|
+
getSubMenuInstanceContext: () => S
|
|
1330
1330
|
};
|
|
1331
1331
|
ke("menuContext", d);
|
|
1332
|
-
const
|
|
1333
|
-
getChildItem: (
|
|
1334
|
-
getMenuDimensions: () =>
|
|
1335
|
-
width:
|
|
1336
|
-
height:
|
|
1332
|
+
const g = {
|
|
1333
|
+
getChildItem: (x) => k[x],
|
|
1334
|
+
getMenuDimensions: () => b.value ? {
|
|
1335
|
+
width: b.value.offsetWidth,
|
|
1336
|
+
height: b.value.offsetHeight
|
|
1337
1337
|
} : { width: 0, height: 0 },
|
|
1338
|
-
getSubmenuRoot: () =>
|
|
1338
|
+
getSubmenuRoot: () => b.value,
|
|
1339
1339
|
getMenu: () => M.value,
|
|
1340
1340
|
getScrollValue: () => {
|
|
1341
|
-
var
|
|
1342
|
-
return ((
|
|
1341
|
+
var x, O;
|
|
1342
|
+
return ((O = (x = j.value) == null ? void 0 : x.getScrollContainer()) == null ? void 0 : O.scrollTop) || 0;
|
|
1343
1343
|
},
|
|
1344
|
-
setScrollValue: (
|
|
1345
|
-
var
|
|
1346
|
-
return (
|
|
1344
|
+
setScrollValue: (x) => {
|
|
1345
|
+
var O;
|
|
1346
|
+
return (O = j.value) == null ? void 0 : O.scrollTo(0, x);
|
|
1347
1347
|
},
|
|
1348
|
-
getScrollHeight: () =>
|
|
1348
|
+
getScrollHeight: () => A.value,
|
|
1349
1349
|
adjustPosition: () => {
|
|
1350
|
-
|
|
1350
|
+
se();
|
|
1351
1351
|
},
|
|
1352
|
-
getMaxHeight: () =>
|
|
1353
|
-
getPosition: () =>
|
|
1354
|
-
setPosition: (
|
|
1355
|
-
|
|
1352
|
+
getMaxHeight: () => E.value,
|
|
1353
|
+
getPosition: () => D.value,
|
|
1354
|
+
setPosition: (x, O) => {
|
|
1355
|
+
D.value.x = x, D.value.y = O;
|
|
1356
1356
|
}
|
|
1357
|
-
},
|
|
1358
|
-
|
|
1359
|
-
const
|
|
1360
|
-
function
|
|
1357
|
+
}, w = me("menuItemInstance", void 0);
|
|
1358
|
+
w && (w.getSubMenuInstance = () => g);
|
|
1359
|
+
const A = y(0), E = y(0), X = y(!1), D = y({ x: 0, y: 0 });
|
|
1360
|
+
function se() {
|
|
1361
1361
|
we(() => {
|
|
1362
|
-
const
|
|
1363
|
-
if (
|
|
1364
|
-
const { container: G } = l,
|
|
1365
|
-
let ze = Ye(
|
|
1366
|
-
e.direction.includes("l") ?
|
|
1367
|
-
var U,
|
|
1368
|
-
ze = Ye(
|
|
1369
|
-
const pe = ((
|
|
1370
|
-
|
|
1371
|
-
const Ae = ze +
|
|
1372
|
-
if (X.value = lt > 0,
|
|
1373
|
-
const Ne =
|
|
1374
|
-
Ne > Ke ?
|
|
1362
|
+
const x = M.value, O = b.value;
|
|
1363
|
+
if (x && O && j.value) {
|
|
1364
|
+
const { container: G } = l, T = i?.() ?? 0, ce = p?.() ?? 0, xe = getComputedStyle(O), ve = parseFloat(xe.paddingLeft), Ie = parseFloat(xe.paddingTop), Te = ce > 0 ? Ie : 0, Qe = document.documentElement.scrollHeight / V(), $e = document.documentElement.scrollWidth / V(), et = Math.min($e, G.offsetWidth), tt = Math.min(Qe, G.offsetHeight);
|
|
1365
|
+
let ze = Ye(x, G), Be = Xe(x, G);
|
|
1366
|
+
e.direction.includes("l") ? D.value.x -= x.offsetWidth + ve : e.direction.includes("r") ? D.value.x += T + ve : (D.value.x += T / 2, D.value.x -= (x.offsetWidth + ve) / 2), e.direction.includes("t") ? D.value.y -= (x.offsetHeight + Ie * 2) / V() : e.direction.includes("b") ? D.value.y -= Ie / V() : D.value.y -= (x.offsetHeight + Ie) / 2 / V(), we(() => {
|
|
1367
|
+
var U, ie;
|
|
1368
|
+
ze = Ye(x, G), Be = Xe(x, G);
|
|
1369
|
+
const pe = ((ie = (U = j.value) == null ? void 0 : U.getScrollContainer()) == null ? void 0 : ie.scrollHeight) || 0, ye = e.maxHeight;
|
|
1370
|
+
A.value = e.maxHeight ? Math.min(pe, e.maxHeight) : pe;
|
|
1371
|
+
const Ae = ze + x.offsetWidth - et, lt = Be + A.value + Te * 2 - tt;
|
|
1372
|
+
if (X.value = lt > 0, W.value && Ae > 0) {
|
|
1373
|
+
const Ne = T + x.offsetWidth - ve, Ke = ze;
|
|
1374
|
+
Ne > Ke ? D.value.x -= Ke : D.value.x -= Ne;
|
|
1375
1375
|
}
|
|
1376
1376
|
if (X.value) {
|
|
1377
|
-
if (
|
|
1377
|
+
if (W.value) {
|
|
1378
1378
|
const Ne = lt, Ke = Be;
|
|
1379
|
-
Ne > Ke ?
|
|
1379
|
+
Ne > Ke ? D.value.y -= Ke - Te : D.value.y -= Ne - Te;
|
|
1380
1380
|
}
|
|
1381
|
-
|
|
1381
|
+
E.value = tt - (D.value.y + Ie);
|
|
1382
1382
|
} else
|
|
1383
|
-
|
|
1383
|
+
E.value = ye || 0;
|
|
1384
1384
|
});
|
|
1385
1385
|
}
|
|
1386
1386
|
});
|
|
1387
1387
|
}
|
|
1388
|
-
function
|
|
1389
|
-
var
|
|
1390
|
-
const
|
|
1391
|
-
if (
|
|
1392
|
-
const G = Ye(
|
|
1393
|
-
|
|
1388
|
+
function ge() {
|
|
1389
|
+
var x;
|
|
1390
|
+
const O = (x = e.parentMenuItemContext) == null ? void 0 : x.getElement();
|
|
1391
|
+
if (O) {
|
|
1392
|
+
const G = Ye(O, l.container), T = Xe(O, l.container);
|
|
1393
|
+
D.value.x = G, D.value.y = T;
|
|
1394
1394
|
} else {
|
|
1395
|
-
const [G,
|
|
1396
|
-
|
|
1395
|
+
const [G, T] = l.getPositon();
|
|
1396
|
+
D.value.x = G, D.value.y = T;
|
|
1397
1397
|
}
|
|
1398
1398
|
we(() => {
|
|
1399
1399
|
var G;
|
|
1400
|
-
|
|
1401
|
-
}),
|
|
1400
|
+
P(S), (G = M.value) == null || G.focus({ preventScroll: !0 }), l.isOpenedByKeyBoardFlag() && we(() => m(!0)), N = !0;
|
|
1401
|
+
}), se();
|
|
1402
1402
|
}
|
|
1403
|
-
return
|
|
1404
|
-
|
|
1403
|
+
return B(() => e.show, (x) => {
|
|
1404
|
+
x && ge();
|
|
1405
1405
|
}), q(() => {
|
|
1406
|
-
r.value = !0, e.show ?
|
|
1406
|
+
r.value = !0, e.show ? ge() : se();
|
|
1407
1407
|
}), J(() => {
|
|
1408
|
-
r.value = !1,
|
|
1408
|
+
r.value = !1, w && (w.getSubMenuInstance = () => {
|
|
1409
1409
|
});
|
|
1410
|
-
}), c(
|
|
1410
|
+
}), c(g), (x, O) => {
|
|
1411
1411
|
const G = Je("ContextSubMenu", !0);
|
|
1412
|
-
return r.value ? (
|
|
1412
|
+
return r.value ? (R(), he(It, {
|
|
1413
1413
|
key: 0,
|
|
1414
|
-
to: `#${
|
|
1414
|
+
to: `#${K(n)}`
|
|
1415
1415
|
}, [
|
|
1416
|
-
Oe(At, ct({ appear: "" },
|
|
1416
|
+
Oe(At, ct({ appear: "" }, K(f).menuTransitionProps || {
|
|
1417
1417
|
duration: 10
|
|
1418
1418
|
}, {
|
|
1419
|
-
onAfterLeave:
|
|
1419
|
+
onAfterLeave: O[0] || (O[0] = (T) => s("closeAnimFinished"))
|
|
1420
1420
|
}), {
|
|
1421
1421
|
default: He(() => [
|
|
1422
|
-
t.show ? (
|
|
1422
|
+
t.show ? (R(), z("div", ct({
|
|
1423
1423
|
key: 0,
|
|
1424
1424
|
ref_key: "submenuRoot",
|
|
1425
|
-
ref:
|
|
1426
|
-
},
|
|
1425
|
+
ref: b
|
|
1426
|
+
}, x.$attrs, {
|
|
1427
1427
|
class: [
|
|
1428
1428
|
"mx-context-menu",
|
|
1429
|
-
|
|
1430
|
-
|
|
1429
|
+
K(f).customClass ? K(f).customClass : "",
|
|
1430
|
+
K(f).theme ?? ""
|
|
1431
1431
|
],
|
|
1432
1432
|
style: {
|
|
1433
|
-
maxWidth: t.maxWidth ?
|
|
1434
|
-
minWidth: t.minWidth ?
|
|
1435
|
-
zIndex:
|
|
1436
|
-
left: `${
|
|
1437
|
-
top: `${
|
|
1433
|
+
maxWidth: t.maxWidth ? K(_t)(t.maxWidth) : `${K(Me).defaultMaxWidth}px`,
|
|
1434
|
+
minWidth: t.minWidth ? K(_t)(t.minWidth) : `${K(Me).defaultMinWidth}px`,
|
|
1435
|
+
zIndex: K(v),
|
|
1436
|
+
left: `${D.value.x}px`,
|
|
1437
|
+
top: `${D.value.y}px`
|
|
1438
1438
|
},
|
|
1439
1439
|
"data-type": "ContextSubMenu",
|
|
1440
1440
|
onClick: H
|
|
1441
1441
|
}), [
|
|
1442
|
-
Oe(
|
|
1442
|
+
Oe(K(Wl), {
|
|
1443
1443
|
ref_key: "scrollRectRef",
|
|
1444
|
-
ref:
|
|
1444
|
+
ref: j,
|
|
1445
1445
|
scroll: "vertical",
|
|
1446
|
-
maxHeight:
|
|
1446
|
+
maxHeight: E.value,
|
|
1447
1447
|
containerClass: "mx-context-menu-scroll"
|
|
1448
1448
|
}, {
|
|
1449
1449
|
default: He(() => [
|
|
@@ -1452,56 +1452,56 @@ const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */ Le({
|
|
|
1452
1452
|
ref_key: "menu",
|
|
1453
1453
|
ref: M
|
|
1454
1454
|
}, [
|
|
1455
|
-
|
|
1456
|
-
(
|
|
1457
|
-
|
|
1458
|
-
|
|
1455
|
+
Se(x.$slots, "default", {}, () => [
|
|
1456
|
+
(R(!0), z(it, null, vt(t.items, (T, ce) => (R(), z(it, { key: ce }, [
|
|
1457
|
+
T.hidden !== !0 && T.divided === "up" ? (R(), he(qe, { key: 0 })) : ne("", !0),
|
|
1458
|
+
T.hidden !== !0 && T.divided === "self" ? (R(), he(qe, { key: 1 })) : (R(), he(ht, {
|
|
1459
1459
|
key: 2,
|
|
1460
|
-
clickHandler:
|
|
1461
|
-
disabled: typeof
|
|
1462
|
-
hidden: typeof
|
|
1463
|
-
icon:
|
|
1464
|
-
iconFontClass:
|
|
1465
|
-
svgIcon:
|
|
1466
|
-
svgProps:
|
|
1467
|
-
label:
|
|
1468
|
-
customRender:
|
|
1469
|
-
customClass:
|
|
1470
|
-
checked: typeof
|
|
1471
|
-
shortcut:
|
|
1472
|
-
clickClose:
|
|
1473
|
-
clickableWhenHasChildren:
|
|
1474
|
-
preserveIconWidth:
|
|
1475
|
-
showRightArrow:
|
|
1476
|
-
hasChildren:
|
|
1477
|
-
rawMenuItem:
|
|
1478
|
-
onSubMenuOpen: (
|
|
1460
|
+
clickHandler: T.onClick ? (xe) => T.onClick(xe) : void 0,
|
|
1461
|
+
disabled: typeof T.disabled == "object" ? T.disabled.value : T.disabled,
|
|
1462
|
+
hidden: typeof T.hidden == "object" ? T.hidden.value : T.hidden,
|
|
1463
|
+
icon: T.icon,
|
|
1464
|
+
iconFontClass: T.iconFontClass,
|
|
1465
|
+
svgIcon: T.svgIcon,
|
|
1466
|
+
svgProps: T.svgProps,
|
|
1467
|
+
label: T.label,
|
|
1468
|
+
customRender: T.customRender,
|
|
1469
|
+
customClass: T.customClass,
|
|
1470
|
+
checked: typeof T.checked == "object" ? T.checked.value : T.checked,
|
|
1471
|
+
shortcut: T.shortcut,
|
|
1472
|
+
clickClose: T.clickClose,
|
|
1473
|
+
clickableWhenHasChildren: T.clickableWhenHasChildren,
|
|
1474
|
+
preserveIconWidth: T.preserveIconWidth !== void 0 ? T.preserveIconWidth : K(f).preserveIconWidth,
|
|
1475
|
+
showRightArrow: T.children && T.children.length > 0,
|
|
1476
|
+
hasChildren: T.children && T.children.length > 0,
|
|
1477
|
+
rawMenuItem: T,
|
|
1478
|
+
onSubMenuOpen: (xe) => {
|
|
1479
1479
|
var ve;
|
|
1480
|
-
return (ve =
|
|
1480
|
+
return (ve = T.onSubMenuOpen) == null ? void 0 : ve.call(T, xe);
|
|
1481
1481
|
},
|
|
1482
|
-
onSubMenuClose: (
|
|
1482
|
+
onSubMenuClose: (xe) => {
|
|
1483
1483
|
var ve;
|
|
1484
|
-
return (ve =
|
|
1484
|
+
return (ve = T.onSubMenuClose) == null ? void 0 : ve.call(T, xe);
|
|
1485
1485
|
}
|
|
1486
1486
|
}, Wt({ _: 2 }, [
|
|
1487
|
-
|
|
1487
|
+
T.children && T.children.length > 0 ? {
|
|
1488
1488
|
name: "submenu",
|
|
1489
|
-
fn: He(({ context:
|
|
1489
|
+
fn: He(({ context: xe, show: ve }) => [
|
|
1490
1490
|
Oe(G, {
|
|
1491
1491
|
show: ve,
|
|
1492
|
-
parentMenuItemContext:
|
|
1493
|
-
items:
|
|
1494
|
-
maxWidth:
|
|
1495
|
-
minWidth:
|
|
1496
|
-
maxHeight:
|
|
1497
|
-
adjustPosition:
|
|
1498
|
-
direction:
|
|
1492
|
+
parentMenuItemContext: xe,
|
|
1493
|
+
items: T.children,
|
|
1494
|
+
maxWidth: T.maxWidth,
|
|
1495
|
+
minWidth: T.minWidth,
|
|
1496
|
+
maxHeight: T.maxHeight,
|
|
1497
|
+
adjustPosition: T.adjustSubMenuPosition !== void 0 ? T.adjustSubMenuPosition : K(f).adjustPosition,
|
|
1498
|
+
direction: T.direction !== void 0 ? T.direction : K(f).direction
|
|
1499
1499
|
}, null, 8, ["show", "parentMenuItemContext", "items", "maxWidth", "minWidth", "maxHeight", "adjustPosition", "direction"])
|
|
1500
1500
|
]),
|
|
1501
1501
|
key: "0"
|
|
1502
1502
|
} : void 0
|
|
1503
1503
|
]), 1032, ["clickHandler", "disabled", "hidden", "icon", "iconFontClass", "svgIcon", "svgProps", "label", "customRender", "customClass", "checked", "shortcut", "clickClose", "clickableWhenHasChildren", "preserveIconWidth", "showRightArrow", "hasChildren", "rawMenuItem", "onSubMenuOpen", "onSubMenuClose"])),
|
|
1504
|
-
|
|
1504
|
+
T.hidden !== !0 && (T.divided === "down" || T.divided === !0) ? (R(), he(qe, { key: 3 })) : ne("", !0)
|
|
1505
1505
|
], 64))), 128))
|
|
1506
1506
|
])
|
|
1507
1507
|
], 512)
|
|
@@ -1515,7 +1515,7 @@ const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */ Le({
|
|
|
1515
1515
|
], 8, ["to"])) : ne("", !0);
|
|
1516
1516
|
};
|
|
1517
1517
|
}
|
|
1518
|
-
}), Tt = /* @__PURE__ */
|
|
1518
|
+
}), Tt = /* @__PURE__ */ Pe({
|
|
1519
1519
|
__name: "ContextSubMenuWrapper",
|
|
1520
1520
|
props: {
|
|
1521
1521
|
/**
|
|
@@ -1549,100 +1549,100 @@ const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */ Le({
|
|
|
1549
1549
|
},
|
|
1550
1550
|
emits: ["close", "closeAnimFinished"],
|
|
1551
1551
|
setup(t, { expose: c, emit: o }) {
|
|
1552
|
-
const e = t,
|
|
1552
|
+
const e = t, s = o, r = jt(), n = y(), {
|
|
1553
1553
|
options: l,
|
|
1554
1554
|
show: f,
|
|
1555
|
-
container:
|
|
1555
|
+
container: a
|
|
1556
1556
|
} = Ee(e);
|
|
1557
1557
|
q(() => {
|
|
1558
|
-
f.value &&
|
|
1558
|
+
f.value && i();
|
|
1559
1559
|
}), J(() => {
|
|
1560
|
-
|
|
1561
|
-
}),
|
|
1562
|
-
|
|
1560
|
+
j();
|
|
1561
|
+
}), B(f, (u) => {
|
|
1562
|
+
u ? i() : (St(C), j());
|
|
1563
1563
|
});
|
|
1564
|
-
const
|
|
1565
|
-
closeMenu:
|
|
1566
|
-
isClosed:
|
|
1564
|
+
const C = {
|
|
1565
|
+
closeMenu: p,
|
|
1566
|
+
isClosed: V,
|
|
1567
1567
|
getMenuRef: () => n.value,
|
|
1568
1568
|
getMenuDimensions: () => {
|
|
1569
|
-
var
|
|
1570
|
-
return ((
|
|
1569
|
+
var u;
|
|
1570
|
+
return ((u = n.value) == null ? void 0 : u.getMenuDimensions()) ?? { width: 0, height: 0 };
|
|
1571
1571
|
}
|
|
1572
1572
|
};
|
|
1573
|
-
let
|
|
1574
|
-
function
|
|
1575
|
-
|
|
1573
|
+
let v = !1;
|
|
1574
|
+
function i() {
|
|
1575
|
+
W(), bl(C);
|
|
1576
1576
|
}
|
|
1577
|
-
function
|
|
1578
|
-
|
|
1577
|
+
function p(u) {
|
|
1578
|
+
v = !0, s("close", u), l.value.menuTransitionProps || s("closeAnimFinished"), St(C);
|
|
1579
1579
|
}
|
|
1580
|
-
function
|
|
1581
|
-
return
|
|
1580
|
+
function V() {
|
|
1581
|
+
return v;
|
|
1582
1582
|
}
|
|
1583
|
-
function
|
|
1583
|
+
function W() {
|
|
1584
1584
|
setTimeout(() => {
|
|
1585
|
-
document.addEventListener("click",
|
|
1585
|
+
document.addEventListener("click", P, !0), document.addEventListener("contextmenu", P, !0), document.addEventListener("scroll", L, !0), !e.isFullScreenContainer && a.value && a.value.addEventListener("scroll", L, !0), l.value.keyboardControl !== !1 && document.addEventListener("keydown", M, !0);
|
|
1586
1586
|
}, 50);
|
|
1587
1587
|
}
|
|
1588
|
-
function
|
|
1589
|
-
document.removeEventListener("contextmenu",
|
|
1588
|
+
function j() {
|
|
1589
|
+
document.removeEventListener("contextmenu", P, !0), document.removeEventListener("click", P, !0), document.removeEventListener("scroll", L, !0), !e.isFullScreenContainer && a.value && a.value.removeEventListener("scroll", L, !0), l.value.keyboardControl !== !1 && document.removeEventListener("keydown", M, !0);
|
|
1590
1590
|
}
|
|
1591
|
-
const
|
|
1592
|
-
ke("globalSetCurrentSubMenu", (
|
|
1593
|
-
function M(
|
|
1594
|
-
var
|
|
1591
|
+
const b = y();
|
|
1592
|
+
ke("globalSetCurrentSubMenu", (u) => b.value = u), ke("globalGetMenuHostId", a.value.id);
|
|
1593
|
+
function M(u) {
|
|
1594
|
+
var _, I, m, F, H, S, Z, N, d, g, w, A, E;
|
|
1595
1595
|
let X = !0;
|
|
1596
|
-
switch (
|
|
1596
|
+
switch (u.key) {
|
|
1597
1597
|
case "Escape": {
|
|
1598
|
-
((
|
|
1598
|
+
((_ = b.value) == null ? void 0 : _.isTopLevel()) === !1 ? (I = b.value) == null || I.closeCurrentSubMenu() : p();
|
|
1599
1599
|
break;
|
|
1600
1600
|
}
|
|
1601
1601
|
case "ArrowDown":
|
|
1602
|
-
(
|
|
1602
|
+
(m = b.value) == null || m.moveCurrentItemDown();
|
|
1603
1603
|
break;
|
|
1604
1604
|
case "ArrowUp":
|
|
1605
|
-
(
|
|
1605
|
+
(F = b.value) == null || F.moveCurrentItemUp();
|
|
1606
1606
|
break;
|
|
1607
1607
|
case "Home":
|
|
1608
|
-
(H =
|
|
1608
|
+
(H = b.value) == null || H.moveCurrentItemFirst();
|
|
1609
1609
|
break;
|
|
1610
1610
|
case "End":
|
|
1611
|
-
(
|
|
1611
|
+
(S = b.value) == null || S.moveCurrentItemLast();
|
|
1612
1612
|
break;
|
|
1613
1613
|
case "ArrowLeft": {
|
|
1614
|
-
(Z =
|
|
1614
|
+
(Z = b.value) != null && Z.closeSelfAndActiveParent() || (d = (N = l.value).onKeyFocusMoveLeft) == null || d.call(N);
|
|
1615
1615
|
break;
|
|
1616
1616
|
}
|
|
1617
1617
|
case "ArrowRight":
|
|
1618
|
-
(
|
|
1618
|
+
(g = b.value) != null && g.openCurrentItemSubMenu() || (A = (w = l.value).onKeyFocusMoveRight) == null || A.call(w);
|
|
1619
1619
|
break;
|
|
1620
1620
|
case "Enter":
|
|
1621
|
-
(
|
|
1621
|
+
(E = b.value) == null || E.triggerCurrentItemClick(u);
|
|
1622
1622
|
break;
|
|
1623
1623
|
default:
|
|
1624
1624
|
X = !1;
|
|
1625
1625
|
break;
|
|
1626
1626
|
}
|
|
1627
|
-
X &&
|
|
1627
|
+
X && b.value && (u.stopPropagation(), u.preventDefault());
|
|
1628
1628
|
}
|
|
1629
|
-
function
|
|
1630
|
-
l.value.closeWhenScroll !== !1 && k(
|
|
1629
|
+
function L(u) {
|
|
1630
|
+
l.value.closeWhenScroll !== !1 && k(u.target, null);
|
|
1631
1631
|
}
|
|
1632
|
-
function
|
|
1633
|
-
k(
|
|
1632
|
+
function P(u) {
|
|
1633
|
+
k(u.target, u);
|
|
1634
1634
|
}
|
|
1635
|
-
function k(
|
|
1636
|
-
for (var
|
|
1637
|
-
if (
|
|
1635
|
+
function k(u, _) {
|
|
1636
|
+
for (var I, m; u; ) {
|
|
1637
|
+
if (u.classList && u.classList.contains("mx-context-menu"))
|
|
1638
1638
|
return;
|
|
1639
|
-
|
|
1639
|
+
u = u.parentNode;
|
|
1640
1640
|
}
|
|
1641
|
-
|
|
1641
|
+
_ ? l.value.clickCloseOnOutside !== !1 ? (j(), p()) : (m = (I = l.value).onClickOnOutside) == null || m.call(I, _) : (j(), p());
|
|
1642
1642
|
}
|
|
1643
|
-
return ke("globalOptions", l), ke("globalCloseMenu",
|
|
1643
|
+
return ke("globalOptions", l), ke("globalCloseMenu", p), ke("globalIsFullScreenContainer", e.isFullScreenContainer), ke("globalHasSlot", (u) => r[u] !== void 0), ke("globalRenderSlot", (u, _) => Se(r, u, { ..._ }, () => [ot("span", "Render slot failed")], !1)), ke("menuContext", {
|
|
1644
1644
|
zIndex: l.value.zIndex || Me.defaultZindex,
|
|
1645
|
-
container:
|
|
1645
|
+
container: a.value,
|
|
1646
1646
|
adjustPadding: { x: 0, y: 0 },
|
|
1647
1647
|
getZoom: () => l.value.zoom || Me.defaultZoom,
|
|
1648
1648
|
getParentWidth: () => 0,
|
|
@@ -1668,25 +1668,25 @@ const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */ Le({
|
|
|
1668
1668
|
},
|
|
1669
1669
|
isOpenedByKeyBoardFlag: () => !1,
|
|
1670
1670
|
isMenuItemDataCollectedFlag: () => !1
|
|
1671
|
-
}), c(
|
|
1671
|
+
}), c(C), (u, _) => (R(), he(mt, {
|
|
1672
1672
|
ref_key: "submenuInstance",
|
|
1673
1673
|
ref: n,
|
|
1674
|
-
show:
|
|
1675
|
-
items:
|
|
1676
|
-
adjustPosition:
|
|
1677
|
-
maxWidth:
|
|
1678
|
-
minWidth:
|
|
1679
|
-
maxHeight:
|
|
1680
|
-
direction:
|
|
1681
|
-
onCloseAnimFinished:
|
|
1674
|
+
show: K(f),
|
|
1675
|
+
items: K(l).items,
|
|
1676
|
+
adjustPosition: K(l).adjustPosition,
|
|
1677
|
+
maxWidth: K(l).maxWidth || K(Me).defaultMaxWidth,
|
|
1678
|
+
minWidth: K(l).minWidth || K(Me).defaultMinWidth,
|
|
1679
|
+
maxHeight: K(l).maxHeight,
|
|
1680
|
+
direction: K(l).direction || K(Me).defaultDirection,
|
|
1681
|
+
onCloseAnimFinished: _[0] || (_[0] = (I) => s("closeAnimFinished"))
|
|
1682
1682
|
}, {
|
|
1683
1683
|
default: He(() => [
|
|
1684
|
-
|
|
1684
|
+
Se(u.$slots, "default")
|
|
1685
1685
|
]),
|
|
1686
1686
|
_: 3
|
|
1687
1687
|
}, 8, ["show", "items", "adjustPosition", "maxWidth", "minWidth", "maxHeight", "direction"]));
|
|
1688
1688
|
}
|
|
1689
|
-
}), Ql = /* @__PURE__ */
|
|
1689
|
+
}), Ql = /* @__PURE__ */ Pe({
|
|
1690
1690
|
__name: "ContextMenu",
|
|
1691
1691
|
props: {
|
|
1692
1692
|
/**
|
|
@@ -1706,44 +1706,44 @@ const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */ Le({
|
|
|
1706
1706
|
},
|
|
1707
1707
|
emits: ["update:show", "close"],
|
|
1708
1708
|
setup(t, { expose: c, emit: o }) {
|
|
1709
|
-
const e = o,
|
|
1710
|
-
function
|
|
1711
|
-
var
|
|
1712
|
-
e("update:show", !1), e("close"), (
|
|
1709
|
+
const e = o, s = t, { options: r, show: n } = Ee(s), { isNew: l, container: f, eleId: a } = Ht(r.value), C = y(null), v = jt();
|
|
1710
|
+
function i(p) {
|
|
1711
|
+
var V, W;
|
|
1712
|
+
e("update:show", !1), e("close"), (W = (V = r.value).onClose) == null || W.call(V, p);
|
|
1713
1713
|
}
|
|
1714
1714
|
return c({
|
|
1715
1715
|
closeMenu: () => e("update:show", !1),
|
|
1716
1716
|
isClosed: () => !n.value,
|
|
1717
1717
|
getMenuRef: () => {
|
|
1718
|
-
var
|
|
1719
|
-
return (
|
|
1718
|
+
var p;
|
|
1719
|
+
return (p = C.value) == null ? void 0 : p.getMenuRef();
|
|
1720
1720
|
},
|
|
1721
1721
|
getMenuDimensions: () => {
|
|
1722
|
-
var
|
|
1723
|
-
return ((
|
|
1722
|
+
var p;
|
|
1723
|
+
return ((p = C.value) == null ? void 0 : p.getMenuDimensions()) ?? { width: 0, height: 0 };
|
|
1724
1724
|
}
|
|
1725
|
-
}), (
|
|
1726
|
-
to: `#${
|
|
1725
|
+
}), (p, V) => (R(), he(It, {
|
|
1726
|
+
to: `#${K(a)}`
|
|
1727
1727
|
}, [
|
|
1728
1728
|
Oe(Tt, {
|
|
1729
1729
|
ref_key: "menuRef",
|
|
1730
|
-
ref:
|
|
1731
|
-
options:
|
|
1732
|
-
show:
|
|
1733
|
-
container:
|
|
1734
|
-
isFullScreenContainer: !
|
|
1735
|
-
onClose:
|
|
1730
|
+
ref: C,
|
|
1731
|
+
options: K(r),
|
|
1732
|
+
show: K(n),
|
|
1733
|
+
container: K(f),
|
|
1734
|
+
isFullScreenContainer: !K(l),
|
|
1735
|
+
onClose: i
|
|
1736
1736
|
}, Wt({ _: 2 }, [
|
|
1737
|
-
vt(
|
|
1738
|
-
name:
|
|
1739
|
-
fn: He((
|
|
1740
|
-
|
|
1737
|
+
vt(K(v), (W, j) => ({
|
|
1738
|
+
name: j,
|
|
1739
|
+
fn: He((b) => [
|
|
1740
|
+
Se(p.$slots, j, Ft(Et(b)))
|
|
1741
1741
|
])
|
|
1742
1742
|
}))
|
|
1743
1743
|
]), 1032, ["options", "show", "container", "isFullScreenContainer"])
|
|
1744
1744
|
], 8, ["to"]));
|
|
1745
1745
|
}
|
|
1746
|
-
}), $l =
|
|
1746
|
+
}), $l = Pe({
|
|
1747
1747
|
name: "ContextMenuGroup",
|
|
1748
1748
|
props: {
|
|
1749
1749
|
/**
|
|
@@ -1881,13 +1881,13 @@ const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */ Le({
|
|
|
1881
1881
|
}
|
|
1882
1882
|
},
|
|
1883
1883
|
setup(t, c) {
|
|
1884
|
-
const o = me("globalOptions"), { adjustSubMenuPosition: e, maxWidth:
|
|
1884
|
+
const o = me("globalOptions"), { adjustSubMenuPosition: e, maxWidth: s, minWidth: r, maxHeight: n } = Ee(t), l = typeof e.value < "u" ? e.value : o.value.adjustPosition, f = y(), a = y();
|
|
1885
1885
|
return c.expose({
|
|
1886
1886
|
getSubMenuRef: () => f.value,
|
|
1887
|
-
getMenuItemRef: () =>
|
|
1887
|
+
getMenuItemRef: () => a.value
|
|
1888
1888
|
}), () => ot(ht, {
|
|
1889
1889
|
...t,
|
|
1890
|
-
ref:
|
|
1890
|
+
ref: a,
|
|
1891
1891
|
showRightArrow: !0,
|
|
1892
1892
|
maxWidth: void 0,
|
|
1893
1893
|
minWidth: void 0,
|
|
@@ -1896,14 +1896,14 @@ const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */ Le({
|
|
|
1896
1896
|
hasChildren: typeof c.slots.default !== void 0
|
|
1897
1897
|
}, c.slots.default ? {
|
|
1898
1898
|
//Create SubMenu
|
|
1899
|
-
submenu: (
|
|
1899
|
+
submenu: (C) => ot(mt, {
|
|
1900
1900
|
ref: f,
|
|
1901
|
-
show:
|
|
1902
|
-
maxWidth:
|
|
1901
|
+
show: C.show,
|
|
1902
|
+
maxWidth: s.value,
|
|
1903
1903
|
minWidth: r.value,
|
|
1904
1904
|
maxHeight: n.value,
|
|
1905
1905
|
adjustPosition: l,
|
|
1906
|
-
parentMenuItemContext:
|
|
1906
|
+
parentMenuItemContext: C.context
|
|
1907
1907
|
}, {
|
|
1908
1908
|
default: c.slots.default
|
|
1909
1909
|
}),
|
|
@@ -1913,9 +1913,9 @@ const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */ Le({
|
|
|
1913
1913
|
}
|
|
1914
1914
|
});
|
|
1915
1915
|
function eo(t, c, o, e) {
|
|
1916
|
-
const
|
|
1916
|
+
const s = y(!0), r = ot(Tt, {
|
|
1917
1917
|
options: t,
|
|
1918
|
-
show:
|
|
1918
|
+
show: s,
|
|
1919
1919
|
container: c,
|
|
1920
1920
|
isFullScreenContainer: !o,
|
|
1921
1921
|
onCloseAnimFinished: () => {
|
|
@@ -1923,7 +1923,7 @@ function eo(t, c, o, e) {
|
|
|
1923
1923
|
},
|
|
1924
1924
|
onClose: (n) => {
|
|
1925
1925
|
var l;
|
|
1926
|
-
(l = t.onClose) == null || l.call(t, n),
|
|
1926
|
+
(l = t.onClose) == null || l.call(t, n), s.value = !1;
|
|
1927
1927
|
}
|
|
1928
1928
|
}, e);
|
|
1929
1929
|
return gt(r, c), r.component;
|
|
@@ -1932,7 +1932,7 @@ function Dt(t, c) {
|
|
|
1932
1932
|
const o = Ht(t);
|
|
1933
1933
|
return eo(t, o.container, o.isNew, c).exposed;
|
|
1934
1934
|
}
|
|
1935
|
-
const
|
|
1935
|
+
const je = {
|
|
1936
1936
|
/**
|
|
1937
1937
|
* For Vue install
|
|
1938
1938
|
* @param app
|
|
@@ -2014,10 +2014,10 @@ const We = {
|
|
|
2014
2014
|
//Tools
|
|
2015
2015
|
transformMenuPosition: xl
|
|
2016
2016
|
};
|
|
2017
|
-
function
|
|
2017
|
+
function Le() {
|
|
2018
2018
|
return {
|
|
2019
2019
|
processMenus: (c, o) => {
|
|
2020
|
-
const e = (
|
|
2020
|
+
const e = (s) => s.map((r) => {
|
|
2021
2021
|
const n = { ...r };
|
|
2022
2022
|
return n.children && n.children.length > 0 ? n.children = e(n.children) : n.onClick || (n.onClick = (l) => {
|
|
2023
2023
|
if (n.disabled) {
|
|
@@ -2035,7 +2035,7 @@ const st = {
|
|
|
2035
2035
|
DEFAULT: "default",
|
|
2036
2036
|
POINTER: "pointer"
|
|
2037
2037
|
};
|
|
2038
|
-
function
|
|
2038
|
+
function _e(t) {
|
|
2039
2039
|
return t && (t.hasOwnProperty("onMouseClick") || t.hasOwnProperty("onMouseDblClick")) ? st.POINTER : st.DEFAULT;
|
|
2040
2040
|
}
|
|
2041
2041
|
const to = /* @__PURE__ */ Object.assign({
|
|
@@ -2061,85 +2061,85 @@ const to = /* @__PURE__ */ Object.assign({
|
|
|
2061
2061
|
},
|
|
2062
2062
|
setup(t, { expose: c }) {
|
|
2063
2063
|
c();
|
|
2064
|
-
const { isNotEmpty: o, isArray: e } = Y,
|
|
2065
|
-
let
|
|
2066
|
-
const
|
|
2067
|
-
|
|
2068
|
-
() =>
|
|
2064
|
+
const { isNotEmpty: o, isArray: e } = Y, s = t, r = re(), n = ae(r), l = y(null), f = h(() => s.propValue || {}), a = h(() => s.element || {}), C = h(() => a.value.events || []), v = y(!0), i = y(null);
|
|
2065
|
+
let p, V = null, W = !0, j = !1;
|
|
2066
|
+
const b = n[f.value.urlCK], M = h(() => o(f.value.url) ? f.value.url : o(f.value.urlCK) && b.value || "");
|
|
2067
|
+
B(
|
|
2068
|
+
() => a.value?.style?.display,
|
|
2069
2069
|
(d) => {
|
|
2070
|
-
d ?
|
|
2070
|
+
d ? v.value = !1 : v.value = !0;
|
|
2071
2071
|
}
|
|
2072
|
-
),
|
|
2072
|
+
), B(
|
|
2073
2073
|
() => f.value.flipVertical,
|
|
2074
|
-
() =>
|
|
2075
|
-
),
|
|
2074
|
+
() => P()
|
|
2075
|
+
), B(
|
|
2076
2076
|
() => f.value.flipHorizontal,
|
|
2077
|
-
() =>
|
|
2078
|
-
),
|
|
2077
|
+
() => P()
|
|
2078
|
+
), B(
|
|
2079
2079
|
() => M.value,
|
|
2080
2080
|
(d) => {
|
|
2081
|
-
|
|
2081
|
+
W = !0, p = null, j = !1, k();
|
|
2082
2082
|
}
|
|
2083
2083
|
);
|
|
2084
|
-
const
|
|
2085
|
-
const { width: d, height:
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
},
|
|
2089
|
-
},
|
|
2090
|
-
const d = f.value.flipVertical,
|
|
2091
|
-
|
|
2092
|
-
}, k = rt(
|
|
2093
|
-
|
|
2094
|
-
|
|
2084
|
+
const L = () => {
|
|
2085
|
+
const { width: d, height: g } = a.value.style;
|
|
2086
|
+
i.value.width = d, i.value.height = g, W && M.value ? (W = !1, p = document.createElement("img"), p.onload = () => {
|
|
2087
|
+
j = !0, V.drawImage(p, 0, 0, d, g), P();
|
|
2088
|
+
}, p.src = M.value) : P();
|
|
2089
|
+
}, P = () => {
|
|
2090
|
+
const d = f.value.flipVertical, g = f.value.flipHorizontal, { width: w, height: A } = a.value.style, E = g ? -1 : 1, X = d ? -1 : 1;
|
|
2091
|
+
V.clearRect(0, 0, w, A), j && p && (V.translate(w / 2 - w * E / 2, A / 2 - A * X / 2), V.scale(E, X), V.drawImage(p, 0, 0, w, A), V.setTransform(1, 0, 0, 1, 0, 0));
|
|
2092
|
+
}, k = rt(L, 500);
|
|
2093
|
+
B([() => a.value?.style?.height, () => a.value?.style?.width], ([d, g]) => {
|
|
2094
|
+
V && (W = !0, p = null, j = !1, k());
|
|
2095
2095
|
}, { immediate: !0 });
|
|
2096
|
-
const
|
|
2096
|
+
const u = (d) => {
|
|
2097
2097
|
l.value?.handleClick(d);
|
|
2098
|
-
},
|
|
2098
|
+
}, _ = (d) => {
|
|
2099
2099
|
l.value?.handleDblClick(d);
|
|
2100
|
-
},
|
|
2100
|
+
}, I = le(), m = oe(), F = ee(f, a, I, m);
|
|
2101
2101
|
Q(() => {
|
|
2102
|
-
l.value = te(
|
|
2102
|
+
l.value = te(C.value, s.designStatus, F), l.value?.beforeMount();
|
|
2103
2103
|
}), q(() => {
|
|
2104
|
-
|
|
2104
|
+
V = i.value?.getContext("2d"), k(), l.value?.mounted();
|
|
2105
2105
|
}), J(() => {
|
|
2106
2106
|
l.value?.beforeUnmount();
|
|
2107
2107
|
}), $(() => {
|
|
2108
2108
|
l.value?.unmounted();
|
|
2109
2109
|
});
|
|
2110
|
-
const { processMenus: H } =
|
|
2110
|
+
const { processMenus: H } = Le(), S = (d) => {
|
|
2111
2111
|
d.preventDefault();
|
|
2112
|
-
let
|
|
2113
|
-
if (e(
|
|
2114
|
-
let
|
|
2115
|
-
|
|
2116
|
-
l.value?.handleContextMenu(d,
|
|
2117
|
-
}),
|
|
2112
|
+
let g = f.value.menuItems || [];
|
|
2113
|
+
if (e(g) && g.length > 0) {
|
|
2114
|
+
let w = [];
|
|
2115
|
+
w = H(g, function(A, E) {
|
|
2116
|
+
l.value?.handleContextMenu(d, A.value);
|
|
2117
|
+
}), je.showContextMenu({
|
|
2118
2118
|
x: d.x,
|
|
2119
2119
|
y: d.y,
|
|
2120
|
-
items:
|
|
2120
|
+
items: w
|
|
2121
2121
|
});
|
|
2122
2122
|
}
|
|
2123
|
-
}, Z =
|
|
2123
|
+
}, Z = h(() => {
|
|
2124
2124
|
let d = {};
|
|
2125
|
-
return d.cursor =
|
|
2126
|
-
}),
|
|
2127
|
-
return
|
|
2125
|
+
return d.cursor = _e(C.value), d;
|
|
2126
|
+
}), N = { isNotEmpty: o, isArray: e, props: s, dataCache: r, smartData: n, eventHandler: l, propValue: f, element: a, events: C, isVisible: v, canvas: i, get img() {
|
|
2127
|
+
return p;
|
|
2128
2128
|
}, set img(d) {
|
|
2129
|
-
|
|
2129
|
+
p = d;
|
|
2130
2130
|
}, get ctx() {
|
|
2131
|
-
return
|
|
2131
|
+
return V;
|
|
2132
2132
|
}, set ctx(d) {
|
|
2133
|
-
|
|
2133
|
+
V = d;
|
|
2134
2134
|
}, get isFirst() {
|
|
2135
|
-
return
|
|
2135
|
+
return W;
|
|
2136
2136
|
}, set isFirst(d) {
|
|
2137
|
-
|
|
2137
|
+
W = d;
|
|
2138
2138
|
}, get loadSuccess() {
|
|
2139
|
-
return
|
|
2139
|
+
return j;
|
|
2140
2140
|
}, set loadSuccess(d) {
|
|
2141
|
-
|
|
2142
|
-
}, urlData:
|
|
2141
|
+
j = d;
|
|
2142
|
+
}, urlData: b, url: M, drawImage: L, mirrorFlip: P, debouncedDraw: k, clickHandler: u, dblclickHandler: _, router: I, route: m, compContext: F, processMenus: H, openContextMenu: S, customStyle: Z, computed: h, onMounted: q, ref: y, watch: B, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useEventHandler() {
|
|
2143
2143
|
return te;
|
|
2144
2144
|
}, get useDataCacheStore() {
|
|
2145
2145
|
return re;
|
|
@@ -2156,20 +2156,20 @@ const to = /* @__PURE__ */ Object.assign({
|
|
|
2156
2156
|
}, get debounce() {
|
|
2157
2157
|
return rt;
|
|
2158
2158
|
}, get ContextMenu() {
|
|
2159
|
-
return We;
|
|
2160
|
-
}, get useMenuHandler() {
|
|
2161
2159
|
return je;
|
|
2160
|
+
}, get useMenuHandler() {
|
|
2161
|
+
return Le;
|
|
2162
2162
|
}, get getCursorByEvents() {
|
|
2163
|
-
return
|
|
2163
|
+
return _e;
|
|
2164
2164
|
} };
|
|
2165
|
-
return Object.defineProperty(
|
|
2165
|
+
return Object.defineProperty(N, "__isScriptSetup", { enumerable: !1, value: !0 }), N;
|
|
2166
2166
|
}
|
|
2167
2167
|
});
|
|
2168
|
-
function lo(t, c, o, e,
|
|
2169
|
-
return e.isVisible ? (
|
|
2168
|
+
function lo(t, c, o, e, s, r) {
|
|
2169
|
+
return e.isVisible ? (R(), z("div", {
|
|
2170
2170
|
key: 0,
|
|
2171
2171
|
class: "picture-container",
|
|
2172
|
-
style:
|
|
2172
|
+
style: Ce(e.customStyle),
|
|
2173
2173
|
onClick: e.clickHandler,
|
|
2174
2174
|
onDblclick: e.dblclickHandler,
|
|
2175
2175
|
onContextmenu: e.openContextMenu
|
|
@@ -2178,8 +2178,8 @@ function lo(t, c, o, e, i, r) {
|
|
|
2178
2178
|
], 36)) : ne("", !0);
|
|
2179
2179
|
}
|
|
2180
2180
|
const oo = /* @__PURE__ */ fe(to, [["render", lo], ["__scopeId", "data-v-6700d8d2"], ["__file", "Component.vue"]]);
|
|
2181
|
-
function
|
|
2182
|
-
const
|
|
2181
|
+
function be(t, c, o, e) {
|
|
2182
|
+
const s = Ze({
|
|
2183
2183
|
dataColor: null,
|
|
2184
2184
|
// 数据颜色
|
|
2185
2185
|
backgroundColor: null,
|
|
@@ -2188,15 +2188,15 @@ function Ce(t, c, o, e) {
|
|
|
2188
2188
|
// 线颜色
|
|
2189
2189
|
fillColor: null
|
|
2190
2190
|
// 填充颜色
|
|
2191
|
-
}), r = c[t.value.colorCK], n = (f,
|
|
2192
|
-
return
|
|
2191
|
+
}), r = c[t.value.colorCK], n = (f, a, C) => e.hasOwnPathInObject(f, a) ? e.getValueByPath(f, a) : C, l = (f, a) => e.isNotEmpty(a) && o ? o[a] ? o[a][f] : null : f;
|
|
2192
|
+
return B(() => r?.value, (f) => {
|
|
2193
2193
|
if (e.isObject(f) && e.isNotEmpty(t.value.colorCK)) {
|
|
2194
2194
|
if (!t.value.dycFlag)
|
|
2195
2195
|
return;
|
|
2196
|
-
let
|
|
2197
|
-
e.isNotEmpty(t.value.fColorKey) && (
|
|
2196
|
+
let a;
|
|
2197
|
+
e.isNotEmpty(t.value.fColorKey) && (a = n(f, t.value.fColorKey, null), s.dataColor = l(a, t.value.fColorRule)), e.isNotEmpty(t.value.bgColorKey) && (a = n(f, t.value.bgColorKey, null), s.backgroundColor = l(a, t.value.bgColorRule)), e.isNotEmpty(t.value.lineColorKey) && (a = n(f, t.value.lineColorKey, null), s.lineColor = l(a, t.value.lineColorRule)), e.isNotEmpty(t.value.fillColorKey) && (a = n(f, t.value.fillColorKey, null), s.fillColor = l(a, t.value.fillColorRule));
|
|
2198
2198
|
}
|
|
2199
|
-
}, { immediate: !0 }), { dynamicColor:
|
|
2199
|
+
}, { immediate: !0 }), { dynamicColor: s };
|
|
2200
2200
|
}
|
|
2201
2201
|
const no = /* @__PURE__ */ Object.assign({
|
|
2202
2202
|
name: "SVGCircle"
|
|
@@ -2221,9 +2221,9 @@ const no = /* @__PURE__ */ Object.assign({
|
|
|
2221
2221
|
},
|
|
2222
2222
|
setup(t, { expose: c }) {
|
|
2223
2223
|
c();
|
|
2224
|
-
const o = t, e = re(),
|
|
2224
|
+
const o = t, e = re(), s = ae(e), r = y(null), n = h(() => o.propValue || {}), l = h(() => o.element || {}), f = h(() => l.value.events || []), a = le(), C = oe(), v = ee(n, l, a, C);
|
|
2225
2225
|
Q(() => {
|
|
2226
|
-
r.value = te(f.value, o.designStatus,
|
|
2226
|
+
r.value = te(f.value, o.designStatus, v), r.value?.beforeMount();
|
|
2227
2227
|
}), q(() => {
|
|
2228
2228
|
M(), r.value?.mounted();
|
|
2229
2229
|
}), J(() => {
|
|
@@ -2231,18 +2231,18 @@ const no = /* @__PURE__ */ Object.assign({
|
|
|
2231
2231
|
}), $(() => {
|
|
2232
2232
|
r.value?.unmounted();
|
|
2233
2233
|
});
|
|
2234
|
-
const { dynamicColor:
|
|
2235
|
-
|
|
2234
|
+
const { dynamicColor: i } = be(n, s, e.rules, Y), p = h(() => i.fillColor ? i.fillColor : n.value.fillColor ? n.value.fillColor : "none"), V = h(() => i.lineColor ? i.lineColor : n.value.strokeColor ? n.value.strokeColor : "none"), W = y(0), j = y(0), b = y(0);
|
|
2235
|
+
B(() => l.value.style.width, (k) => {
|
|
2236
2236
|
M();
|
|
2237
|
-
}),
|
|
2237
|
+
}), B(() => l.value.style.height, (k) => {
|
|
2238
2238
|
M();
|
|
2239
2239
|
});
|
|
2240
2240
|
const M = () => {
|
|
2241
|
-
const { width: k, height:
|
|
2242
|
-
|
|
2243
|
-
},
|
|
2244
|
-
|
|
2245
|
-
},
|
|
2241
|
+
const { width: k, height: u } = l.value.style;
|
|
2242
|
+
L(k, u);
|
|
2243
|
+
}, L = (k, u) => {
|
|
2244
|
+
W.value = 0.5 * k, j.value = 0.5 * u, b.value = 0.45 * u;
|
|
2245
|
+
}, P = { props: o, dataCache: e, smartData: s, eventHandler: r, propValue: n, element: l, events: f, router: a, route: C, compContext: v, dynamicColor: i, showFillColor: p, showLineColor: V, cx: W, cy: j, cr: b, draw: M, drawChart: L, get useEventHandler() {
|
|
2246
2246
|
return te;
|
|
2247
2247
|
}, get useDataCacheStore() {
|
|
2248
2248
|
return re;
|
|
@@ -2250,21 +2250,21 @@ const no = /* @__PURE__ */ Object.assign({
|
|
|
2250
2250
|
return ae;
|
|
2251
2251
|
}, get CreateCompContext() {
|
|
2252
2252
|
return ee;
|
|
2253
|
-
}, ref:
|
|
2253
|
+
}, ref: y, computed: h, watch: B, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
|
|
2254
2254
|
return oe;
|
|
2255
2255
|
}, get useRouter() {
|
|
2256
2256
|
return le;
|
|
2257
2257
|
}, get useDynamicColor() {
|
|
2258
|
-
return
|
|
2258
|
+
return be;
|
|
2259
2259
|
}, get CommonUtils() {
|
|
2260
2260
|
return Y;
|
|
2261
2261
|
} };
|
|
2262
|
-
return Object.defineProperty(
|
|
2262
|
+
return Object.defineProperty(P, "__isScriptSetup", { enumerable: !1, value: !0 }), P;
|
|
2263
2263
|
}
|
|
2264
2264
|
});
|
|
2265
|
-
function ro(t, c, o, e,
|
|
2266
|
-
return
|
|
2267
|
-
(
|
|
2265
|
+
function ro(t, c, o, e, s, r) {
|
|
2266
|
+
return R(), z("div", { class: "svg-container" }, [
|
|
2267
|
+
(R(), z("svg", {
|
|
2268
2268
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2269
2269
|
width: e.element.style.width,
|
|
2270
2270
|
height: e.element.style.height
|
|
@@ -2306,123 +2306,124 @@ const ao = /* @__PURE__ */ fe(no, [["render", ro], ["__scopeId", "data-v-ecab498
|
|
|
2306
2306
|
const {
|
|
2307
2307
|
formatDate: o,
|
|
2308
2308
|
getDate: e,
|
|
2309
|
-
getWeek:
|
|
2309
|
+
getWeek: s,
|
|
2310
2310
|
isNotEmpty: r,
|
|
2311
2311
|
isNumber: n,
|
|
2312
2312
|
isObject: l,
|
|
2313
2313
|
isValid: f,
|
|
2314
|
-
hasOwnPathInObject:
|
|
2315
|
-
getValueByPath:
|
|
2316
|
-
} = Y,
|
|
2317
|
-
let
|
|
2318
|
-
const
|
|
2314
|
+
hasOwnPathInObject: a,
|
|
2315
|
+
getValueByPath: C
|
|
2316
|
+
} = Y, v = t, i = h(() => v.propValue || {}), p = h(() => v.element || {}), V = h(() => p.value.events || []), W = re(), j = ae(W), b = y(null), M = y(0), L = y(0), P = y(""), k = y(""), u = y(!1), _ = y("");
|
|
2317
|
+
let I = null, m = null;
|
|
2318
|
+
const F = y("");
|
|
2319
2319
|
let H = null;
|
|
2320
|
-
const
|
|
2320
|
+
const S = j[i.value.dataCK], Z = j[i.value.timeCK], N = (U, ie, pe) => a(U, ie) ? C(U, ie) : pe;
|
|
2321
2321
|
function d(U) {
|
|
2322
|
-
l(U) ? (
|
|
2322
|
+
l(U) ? (I = N(U, i.value.valueKey, null), m = N(U, i.value.timeKey, null)) : I = U;
|
|
2323
2323
|
}
|
|
2324
|
-
function
|
|
2325
|
-
d(U),
|
|
2324
|
+
function g(U) {
|
|
2325
|
+
d(U), _.value = xe(I);
|
|
2326
2326
|
}
|
|
2327
|
-
|
|
2328
|
-
f(U) &&
|
|
2329
|
-
}),
|
|
2330
|
-
r(
|
|
2327
|
+
B(() => S.value, (U) => {
|
|
2328
|
+
f(U) && g(U);
|
|
2329
|
+
}), B(() => Z.value, (U) => {
|
|
2330
|
+
r(i.value.timeCK) && f(U) && (r(i.value.timeKey) ? l(U) && (m = N(U, i.value.timeKey, null)) : m = U);
|
|
2331
2331
|
});
|
|
2332
|
-
const { dynamicColor:
|
|
2333
|
-
|
|
2334
|
-
},
|
|
2335
|
-
|
|
2332
|
+
const { dynamicColor: w } = be(i, j, W.rules, Y), A = h(() => w.dataColor ? w.dataColor : i.value.fontColor ? i.value.fontColor : "none"), E = h(() => w.backgroundColor ? w.backgroundColor : i.value.fillColor ? i.value.fillColor : "none"), X = (U) => {
|
|
2333
|
+
b.value?.setParam(U);
|
|
2334
|
+
}, D = (U) => {
|
|
2335
|
+
b.value?.handleDblClick(U);
|
|
2336
2336
|
};
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
}),
|
|
2340
|
-
|
|
2341
|
-
}),
|
|
2342
|
-
|
|
2343
|
-
}),
|
|
2344
|
-
|
|
2337
|
+
B(() => p.value.style.width, (U) => {
|
|
2338
|
+
T();
|
|
2339
|
+
}), B(() => p.value.style.height, (U) => {
|
|
2340
|
+
T();
|
|
2341
|
+
}), B(() => i.value.horizontalAlign, (U) => {
|
|
2342
|
+
T();
|
|
2343
|
+
}), B(() => i.value.offsetX, (U) => {
|
|
2344
|
+
T();
|
|
2345
2345
|
});
|
|
2346
|
-
const
|
|
2347
|
-
|
|
2346
|
+
const se = h(() => v.designStatus ? !0 : i.value.showTooltip ? !u.value : !0), ge = h(() => i.value.tooltipPlacement || "bottom-start"), x = h(() => i.value.tooltipEffect || "dark"), O = (U) => {
|
|
2347
|
+
v.designStatus || (G(), r(F.value) ? u.value = !0 : u.value = !1);
|
|
2348
2348
|
}, G = () => {
|
|
2349
|
-
if (
|
|
2350
|
-
let U = e(
|
|
2349
|
+
if (F.value = "", i.value.showTooltip && m && n(m)) {
|
|
2350
|
+
let U = e(m), ie = "";
|
|
2351
2351
|
if (U) {
|
|
2352
|
-
|
|
2353
|
-
let pe = "数值:" +
|
|
2354
|
-
|
|
2352
|
+
ie = o(U, "yyyy-MM-dd HH:mm:ss");
|
|
2353
|
+
let pe = "数值:" + _.value, ye = "时间:" + ie;
|
|
2354
|
+
F.value = pe + "<br/>" + ye;
|
|
2355
2355
|
}
|
|
2356
2356
|
}
|
|
2357
|
-
},
|
|
2358
|
-
const { width: U, height:
|
|
2359
|
-
ce(U,
|
|
2360
|
-
}, ce = (U,
|
|
2361
|
-
let pe =
|
|
2362
|
-
pe == "center" ? (k.value = "middle", M.value = U * 0.5) : pe == "right" ? (M.value = U -
|
|
2363
|
-
},
|
|
2364
|
-
let
|
|
2357
|
+
}, T = () => {
|
|
2358
|
+
const { width: U, height: ie } = v.element.style;
|
|
2359
|
+
ce(U, ie);
|
|
2360
|
+
}, ce = (U, ie) => {
|
|
2361
|
+
let pe = v.propValue.horizontalAlign || "left", ye = v.propValue.offsetX || 0;
|
|
2362
|
+
pe == "center" ? (k.value = "middle", M.value = U * 0.5) : pe == "right" ? (M.value = U - ye, k.value = "end") : (M.value = 0 + ye, k.value = "start"), P.value = "central", L.value = ie * 0.5;
|
|
2363
|
+
}, xe = (U) => {
|
|
2364
|
+
let ie = U;
|
|
2365
2365
|
if (n(U)) {
|
|
2366
|
-
let pe =
|
|
2367
|
-
n(
|
|
2366
|
+
let pe = i.value.fractionDigits || 0, ye = i.value.factor;
|
|
2367
|
+
n(ye) && (ye = Number(ye), U = Number(U) * ye), ie = ve(Number(U), pe);
|
|
2368
2368
|
} else
|
|
2369
|
-
|
|
2370
|
-
return r(
|
|
2371
|
-
}, ve = (U,
|
|
2369
|
+
ie + "" == "undefined" && (ie = "");
|
|
2370
|
+
return r(i.value.unit) && (ie = ie + i.value.unit), ie;
|
|
2371
|
+
}, ve = (U, ie) => {
|
|
2372
2372
|
let pe = U;
|
|
2373
2373
|
if (U) {
|
|
2374
|
-
const
|
|
2375
|
-
if (
|
|
2376
|
-
|
|
2377
|
-
else if (
|
|
2374
|
+
const ye = i.value.valueType;
|
|
2375
|
+
if (ye == 2 && Number(U))
|
|
2376
|
+
ie && Number(ie) ? ie = parseInt(ie) : ie = 0, pe = U.toFixed(ie);
|
|
2377
|
+
else if (ye == 3) {
|
|
2378
2378
|
let Ae = e(U);
|
|
2379
|
-
const lt =
|
|
2380
|
-
Ae && (r(
|
|
2379
|
+
const lt = i.value.dateformat || "yyyy-MM-dd";
|
|
2380
|
+
Ae && (r(i.value.weekMode) ? pe = s(Ae, n(i.value.weekMode) ? Number(i.value.weekMode) : 0) : pe = o(Ae, lt));
|
|
2381
2381
|
}
|
|
2382
2382
|
}
|
|
2383
2383
|
return pe;
|
|
2384
|
-
},
|
|
2385
|
-
|
|
2384
|
+
}, Ie = () => {
|
|
2385
|
+
H && (clearInterval(H), H = null);
|
|
2386
|
+
}, Te = le(), Qe = oe(), $e = ee(i, p, Te, Qe);
|
|
2386
2387
|
Q(() => {
|
|
2387
|
-
|
|
2388
|
+
b.value = te(V.value, v.designStatus, $e), b.value?.beforeMount();
|
|
2388
2389
|
}), q(() => {
|
|
2389
|
-
|
|
2390
|
-
f(
|
|
2391
|
-
}, 1e3),
|
|
2390
|
+
T(), H = setInterval(() => {
|
|
2391
|
+
f(S.value) && (g(S.value), H && (clearInterval(H), H = null));
|
|
2392
|
+
}, 1e3), b.value?.mounted();
|
|
2392
2393
|
}), J(() => {
|
|
2393
|
-
|
|
2394
|
+
Ie(), b.value?.beforeUnmount();
|
|
2394
2395
|
}), $(() => {
|
|
2395
|
-
|
|
2396
|
+
b.value?.unmounted();
|
|
2396
2397
|
});
|
|
2397
|
-
const { processMenus: et } =
|
|
2398
|
+
const { processMenus: et } = Le(), tt = (U) => {
|
|
2398
2399
|
U.preventDefault();
|
|
2399
|
-
let
|
|
2400
|
-
if (Y.isArray(
|
|
2400
|
+
let ie = i.value.menuItems || [];
|
|
2401
|
+
if (Y.isArray(ie) && ie.length > 0) {
|
|
2401
2402
|
let pe = [];
|
|
2402
|
-
pe = et(
|
|
2403
|
-
|
|
2404
|
-
}),
|
|
2403
|
+
pe = et(ie, function(ye, Ae) {
|
|
2404
|
+
b.value?.handleContextMenu(U, ye.value);
|
|
2405
|
+
}), je.showContextMenu({
|
|
2405
2406
|
x: U.x,
|
|
2406
2407
|
y: U.y,
|
|
2407
2408
|
items: pe
|
|
2408
2409
|
});
|
|
2409
2410
|
}
|
|
2410
|
-
}, ze =
|
|
2411
|
+
}, ze = h(() => {
|
|
2411
2412
|
let U = {};
|
|
2412
|
-
return U.cursor =
|
|
2413
|
-
}), Be = { formatDate: o, getDate: e, getWeek:
|
|
2414
|
-
return
|
|
2413
|
+
return U.cursor = _e(V.value), U;
|
|
2414
|
+
}), Be = { formatDate: o, getDate: e, getWeek: s, isNotEmpty: r, isNumber: n, isObject: l, isValid: f, hasOwnPathInObject: a, getValueByPath: C, props: v, propValue: i, element: p, events: V, dataCache: W, smartData: j, eventHandler: b, textX: M, textY: L, textBaseLine: P, textAnchor: k, hasTooltipContent: u, showDataValue: _, get dataValue() {
|
|
2415
|
+
return I;
|
|
2415
2416
|
}, set dataValue(U) {
|
|
2416
|
-
|
|
2417
|
+
I = U;
|
|
2417
2418
|
}, get dataTime() {
|
|
2418
|
-
return
|
|
2419
|
+
return m;
|
|
2419
2420
|
}, set dataTime(U) {
|
|
2420
|
-
|
|
2421
|
-
}, tooltipContent:
|
|
2421
|
+
m = U;
|
|
2422
|
+
}, tooltipContent: F, get timer() {
|
|
2422
2423
|
return H;
|
|
2423
2424
|
}, set timer(U) {
|
|
2424
2425
|
H = U;
|
|
2425
|
-
}, bsData:
|
|
2426
|
+
}, bsData: S, timeData: Z, _getValueFromObj: N, parseBsData: d, dealBsData: g, dynamicColor: w, showFontColor: A, showBackgroundColor: E, handleClick: X, handleDblClick: D, disableToolTip: se, tooltipPlacement: ge, tooltipEffect: x, showTooltip: O, loadTipInfo: G, draw: T, drawChart: ce, showValue: xe, dataFormatter: ve, _clearInterval: Ie, router: Te, route: Qe, compContext: $e, processMenus: et, openContextMenu: tt, customStyle: ze, watch: B, onMounted: q, computed: h, onBeforeUnmount: J, ref: y, onBeforeMount: Q, onUnmounted: $, reactive: Ze, get useRoute() {
|
|
2426
2427
|
return oe;
|
|
2427
2428
|
}, get useRouter() {
|
|
2428
2429
|
return le;
|
|
@@ -2437,22 +2438,22 @@ const ao = /* @__PURE__ */ fe(no, [["render", ro], ["__scopeId", "data-v-ecab498
|
|
|
2437
2438
|
}, get CommonUtils() {
|
|
2438
2439
|
return Y;
|
|
2439
2440
|
}, get useDynamicColor() {
|
|
2440
|
-
return
|
|
2441
|
+
return be;
|
|
2441
2442
|
}, get ContextMenu() {
|
|
2442
|
-
return We;
|
|
2443
|
-
}, get useMenuHandler() {
|
|
2444
2443
|
return je;
|
|
2444
|
+
}, get useMenuHandler() {
|
|
2445
|
+
return Le;
|
|
2445
2446
|
}, get getCursorByEvents() {
|
|
2446
|
-
return
|
|
2447
|
+
return _e;
|
|
2447
2448
|
} };
|
|
2448
2449
|
return Object.defineProperty(Be, "__isScriptSetup", { enumerable: !1, value: !0 }), Be;
|
|
2449
2450
|
}
|
|
2450
2451
|
});
|
|
2451
|
-
function so(t, c, o, e,
|
|
2452
|
+
function so(t, c, o, e, s, r) {
|
|
2452
2453
|
const n = Je("el-tooltip");
|
|
2453
|
-
return
|
|
2454
|
+
return R(), z("div", {
|
|
2454
2455
|
class: "svg-container",
|
|
2455
|
-
style:
|
|
2456
|
+
style: Ce(e.customStyle),
|
|
2456
2457
|
onClick: e.handleClick,
|
|
2457
2458
|
onDblclick: e.handleDblClick,
|
|
2458
2459
|
onMouseenter: e.showTooltip,
|
|
@@ -2468,12 +2469,12 @@ function so(t, c, o, e, i, r) {
|
|
|
2468
2469
|
ue("div", { innerHTML: e.tooltipContent }, null, 8, ["innerHTML"])
|
|
2469
2470
|
]),
|
|
2470
2471
|
default: He(() => [
|
|
2471
|
-
(
|
|
2472
|
+
(R(), z("svg", {
|
|
2472
2473
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2473
2474
|
width: e.element.style.width,
|
|
2474
2475
|
height: e.element.style.height
|
|
2475
2476
|
}, [
|
|
2476
|
-
e.propValue.hasBackground ? (
|
|
2477
|
+
e.propValue.hasBackground ? (R(), z("rect", {
|
|
2477
2478
|
key: 0,
|
|
2478
2479
|
x: 0,
|
|
2479
2480
|
y: 0,
|
|
@@ -2501,7 +2502,7 @@ function so(t, c, o, e, i, r) {
|
|
|
2501
2502
|
}, 8, ["placement", "disabled", "effect"])
|
|
2502
2503
|
], 36);
|
|
2503
2504
|
}
|
|
2504
|
-
const io = /* @__PURE__ */ fe(uo, [["render", so], ["__scopeId", "data-v-
|
|
2505
|
+
const io = /* @__PURE__ */ fe(uo, [["render", so], ["__scopeId", "data-v-e00f69af"], ["__file", "Component.vue"]]), co = /* @__PURE__ */ Object.assign({
|
|
2505
2506
|
name: "SVGDateText"
|
|
2506
2507
|
}, {
|
|
2507
2508
|
__name: "Component",
|
|
@@ -2527,70 +2528,70 @@ const io = /* @__PURE__ */ fe(uo, [["render", so], ["__scopeId", "data-v-572c01e
|
|
|
2527
2528
|
const {
|
|
2528
2529
|
formatDate: o,
|
|
2529
2530
|
getDate: e,
|
|
2530
|
-
getWeek:
|
|
2531
|
+
getWeek: s,
|
|
2531
2532
|
isNotEmpty: r,
|
|
2532
2533
|
isNumber: n
|
|
2533
|
-
} = Y, l = t, f =
|
|
2534
|
-
let M = null,
|
|
2535
|
-
const
|
|
2534
|
+
} = Y, l = t, f = h(() => l.propValue || {}), a = h(() => l.element || {}), C = h(() => a.value.events || []), v = y(null), i = y(0), p = y(0), V = y(""), W = y(""), j = y(!1), b = y("");
|
|
2535
|
+
let M = null, L = null;
|
|
2536
|
+
const P = y("");
|
|
2536
2537
|
let k = null;
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
}),
|
|
2540
|
-
|
|
2541
|
-
}),
|
|
2542
|
-
|
|
2543
|
-
}),
|
|
2544
|
-
|
|
2538
|
+
B(() => a.value.style.width, (w) => {
|
|
2539
|
+
u();
|
|
2540
|
+
}), B(() => a.value.style.height, (w) => {
|
|
2541
|
+
u();
|
|
2542
|
+
}), B(() => f.value.horizontalAlign, (w) => {
|
|
2543
|
+
u();
|
|
2544
|
+
}), B(() => f.value.offsetX, (w) => {
|
|
2545
|
+
u();
|
|
2545
2546
|
});
|
|
2546
|
-
const
|
|
2547
|
-
const { width:
|
|
2548
|
-
|
|
2549
|
-
},
|
|
2550
|
-
let
|
|
2551
|
-
|
|
2552
|
-
},
|
|
2553
|
-
let
|
|
2554
|
-
return n(
|
|
2555
|
-
},
|
|
2556
|
-
let
|
|
2557
|
-
if (
|
|
2558
|
-
let
|
|
2547
|
+
const u = () => {
|
|
2548
|
+
const { width: w, height: A } = l.element.style;
|
|
2549
|
+
_(w, A);
|
|
2550
|
+
}, _ = (w, A) => {
|
|
2551
|
+
let E = l.propValue.horizontalAlign || "left", X = l.propValue.offsetX || 0;
|
|
2552
|
+
E == "center" ? (W.value = "middle", i.value = w * 0.5) : E == "right" ? (i.value = w - X, W.value = "end") : (i.value = 0 + X, W.value = "start"), V.value = "central", p.value = A * 0.5;
|
|
2553
|
+
}, I = (w) => {
|
|
2554
|
+
let A = w;
|
|
2555
|
+
return n(w) ? A = m(Number(w)) : A + "" == "undefined" && (A = ""), A;
|
|
2556
|
+
}, m = (w) => {
|
|
2557
|
+
let A = w;
|
|
2558
|
+
if (w) {
|
|
2559
|
+
let E = e(w);
|
|
2559
2560
|
const X = f.value.dateformat || "yyyy-MM-dd";
|
|
2560
|
-
|
|
2561
|
+
E && (r(f.value.weekMode) ? A = s(E, n(f.value.weekMode) ? Number(f.value.weekMode) : 0) : A = o(E, X));
|
|
2561
2562
|
}
|
|
2562
|
-
return
|
|
2563
|
-
},
|
|
2564
|
-
}, H = (
|
|
2565
|
-
|
|
2566
|
-
},
|
|
2567
|
-
|
|
2568
|
-
}, Z = le(),
|
|
2563
|
+
return A;
|
|
2564
|
+
}, F = () => {
|
|
2565
|
+
}, H = (w) => {
|
|
2566
|
+
v.value?.handleClick(w);
|
|
2567
|
+
}, S = (w) => {
|
|
2568
|
+
v.value?.handleDblClick(w);
|
|
2569
|
+
}, Z = le(), N = oe(), d = ee(f, a, Z, N);
|
|
2569
2570
|
Q(() => {
|
|
2570
|
-
|
|
2571
|
+
v.value = te(C.value, l.designStatus, d), v.value?.beforeMount();
|
|
2571
2572
|
}), q(() => {
|
|
2572
|
-
|
|
2573
|
-
let
|
|
2574
|
-
|
|
2575
|
-
}, 500),
|
|
2573
|
+
u(), k = setInterval(() => {
|
|
2574
|
+
let w = (/* @__PURE__ */ new Date()).getTime();
|
|
2575
|
+
b.value = I(w);
|
|
2576
|
+
}, 500), v.value?.mounted();
|
|
2576
2577
|
}), J(() => {
|
|
2577
|
-
|
|
2578
|
+
v.value?.beforeUnmount();
|
|
2578
2579
|
}), $(() => {
|
|
2579
|
-
|
|
2580
|
+
v.value?.unmounted();
|
|
2580
2581
|
});
|
|
2581
|
-
const
|
|
2582
|
+
const g = { formatDate: o, getDate: e, getWeek: s, isNotEmpty: r, isNumber: n, props: l, propValue: f, element: a, events: C, eventHandler: v, textX: i, textY: p, textBaseLine: V, textAnchor: W, hasTooltipContent: j, showDataValue: b, get dataValue() {
|
|
2582
2583
|
return M;
|
|
2583
|
-
}, set dataValue(
|
|
2584
|
-
M =
|
|
2584
|
+
}, set dataValue(w) {
|
|
2585
|
+
M = w;
|
|
2585
2586
|
}, get dataTime() {
|
|
2586
|
-
return
|
|
2587
|
-
}, set dataTime(
|
|
2588
|
-
|
|
2589
|
-
}, tooltipContent:
|
|
2587
|
+
return L;
|
|
2588
|
+
}, set dataTime(w) {
|
|
2589
|
+
L = w;
|
|
2590
|
+
}, tooltipContent: P, get timer() {
|
|
2590
2591
|
return k;
|
|
2591
|
-
}, set timer(
|
|
2592
|
-
k =
|
|
2593
|
-
}, draw:
|
|
2592
|
+
}, set timer(w) {
|
|
2593
|
+
k = w;
|
|
2594
|
+
}, draw: u, drawChart: _, showValue: I, dataFormatter: m, clearInterval: F, handleClick: H, handleDblClick: S, router: Z, route: N, compContext: d, watch: B, onMounted: q, computed: h, onBeforeUnmount: J, ref: y, onBeforeMount: Q, onUnmounted: $, get useEventHandler() {
|
|
2594
2595
|
return te;
|
|
2595
2596
|
}, get useDataCacheStore() {
|
|
2596
2597
|
return re;
|
|
@@ -2605,17 +2606,17 @@ const io = /* @__PURE__ */ fe(uo, [["render", so], ["__scopeId", "data-v-572c01e
|
|
|
2605
2606
|
}, get CommonUtils() {
|
|
2606
2607
|
return Y;
|
|
2607
2608
|
} };
|
|
2608
|
-
return Object.defineProperty(
|
|
2609
|
+
return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
|
|
2609
2610
|
}
|
|
2610
2611
|
});
|
|
2611
|
-
function fo(t, c, o, e,
|
|
2612
|
-
return
|
|
2612
|
+
function fo(t, c, o, e, s, r) {
|
|
2613
|
+
return R(), z("div", {
|
|
2613
2614
|
class: "svg-container",
|
|
2614
2615
|
onClick: e.handleClick,
|
|
2615
2616
|
onDblclick: e.handleDblClick
|
|
2616
2617
|
}, [
|
|
2617
|
-
(
|
|
2618
|
-
e.propValue.hasBackground ? (
|
|
2618
|
+
(R(), z("svg", { xmlns: "http://www.w3.org/2000/svg" }, [
|
|
2619
|
+
e.propValue.hasBackground ? (R(), z("rect", {
|
|
2619
2620
|
key: 0,
|
|
2620
2621
|
x: 1,
|
|
2621
2622
|
y: 1,
|
|
@@ -2663,29 +2664,29 @@ const vo = /* @__PURE__ */ fe(co, [["render", fo], ["__scopeId", "data-v-939b62a
|
|
|
2663
2664
|
},
|
|
2664
2665
|
setup(t, { expose: c }) {
|
|
2665
2666
|
c();
|
|
2666
|
-
const o = t, e = re(),
|
|
2667
|
+
const o = t, e = re(), s = ae(e), r = y(null), n = h(() => o.propValue || {}), l = h(() => o.element || {}), f = h(() => l.value.events || []), a = le(), C = oe(), v = ee(n, l, a, C);
|
|
2667
2668
|
Q(() => {
|
|
2668
|
-
r.value = te(f.value, o.designStatus,
|
|
2669
|
+
r.value = te(f.value, o.designStatus, v), r.value?.beforeMount();
|
|
2669
2670
|
}), q(() => {
|
|
2670
|
-
|
|
2671
|
+
j(), r.value?.mounted();
|
|
2671
2672
|
}), J(() => {
|
|
2672
2673
|
r.value?.beforeUnmount();
|
|
2673
2674
|
}), $(() => {
|
|
2674
2675
|
r.value?.unmounted();
|
|
2675
2676
|
});
|
|
2676
|
-
const { dynamicColor:
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
}),
|
|
2680
|
-
|
|
2677
|
+
const { dynamicColor: i } = be(n, s, e.rules, Y), p = h(() => i.lineColor ? i.lineColor : n.value.strokeColor ? n.value.strokeColor : "none"), V = y([]), W = y([]);
|
|
2678
|
+
B(() => l.value.style.width, (L) => {
|
|
2679
|
+
j();
|
|
2680
|
+
}), B(() => l.value.style.height, (L) => {
|
|
2681
|
+
j();
|
|
2681
2682
|
});
|
|
2682
|
-
const
|
|
2683
|
-
const { width:
|
|
2684
|
-
|
|
2685
|
-
},
|
|
2686
|
-
const k = [0, 0.5],
|
|
2687
|
-
|
|
2688
|
-
}, M = { props: o, dataCache: e, smartData:
|
|
2683
|
+
const j = () => {
|
|
2684
|
+
const { width: L, height: P } = l.value.style;
|
|
2685
|
+
b(L, P);
|
|
2686
|
+
}, b = (L, P) => {
|
|
2687
|
+
const k = [0, 0.5], u = [1, 0.5];
|
|
2688
|
+
V.value = [L * k[0], P * k[1]], W.value = [L * u[0], P * u[1]];
|
|
2689
|
+
}, M = { props: o, dataCache: e, smartData: s, eventHandler: r, propValue: n, element: l, events: f, router: a, route: C, compContext: v, dynamicColor: i, showLineColor: p, LineL1P1: V, LineL1P2: W, draw: j, drawChart: b, get useEventHandler() {
|
|
2689
2690
|
return te;
|
|
2690
2691
|
}, get useDataCacheStore() {
|
|
2691
2692
|
return re;
|
|
@@ -2693,21 +2694,21 @@ const vo = /* @__PURE__ */ fe(co, [["render", fo], ["__scopeId", "data-v-939b62a
|
|
|
2693
2694
|
return ae;
|
|
2694
2695
|
}, get CreateCompContext() {
|
|
2695
2696
|
return ee;
|
|
2696
|
-
}, ref:
|
|
2697
|
+
}, ref: y, computed: h, watch: B, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
|
|
2697
2698
|
return oe;
|
|
2698
2699
|
}, get useRouter() {
|
|
2699
2700
|
return le;
|
|
2700
2701
|
}, get CommonUtils() {
|
|
2701
2702
|
return Y;
|
|
2702
2703
|
}, get useDynamicColor() {
|
|
2703
|
-
return
|
|
2704
|
+
return be;
|
|
2704
2705
|
} };
|
|
2705
2706
|
return Object.defineProperty(M, "__isScriptSetup", { enumerable: !1, value: !0 }), M;
|
|
2706
2707
|
}
|
|
2707
2708
|
});
|
|
2708
|
-
function ho(t, c, o, e,
|
|
2709
|
-
return
|
|
2710
|
-
(
|
|
2709
|
+
function ho(t, c, o, e, s, r) {
|
|
2710
|
+
return R(), z("div", { class: "svg-container" }, [
|
|
2711
|
+
(R(), z("svg", {
|
|
2711
2712
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2712
2713
|
width: e.element.style.width,
|
|
2713
2714
|
height: e.element.style.height
|
|
@@ -2721,7 +2722,7 @@ function ho(t, c, o, e, i, r) {
|
|
|
2721
2722
|
"stroke-width": e.propValue.strokeWidth,
|
|
2722
2723
|
"stroke-dasharray": e.propValue.strokeDasharray
|
|
2723
2724
|
}, [
|
|
2724
|
-
e.propValue.animate ? (
|
|
2725
|
+
e.propValue.animate ? (R(), z("animate", {
|
|
2725
2726
|
key: 0,
|
|
2726
2727
|
attributeName: "stroke-dashoffset",
|
|
2727
2728
|
from: e.propValue.animateFrom,
|
|
@@ -2756,29 +2757,29 @@ const mo = /* @__PURE__ */ fe(po, [["render", ho], ["__scopeId", "data-v-7dcb208
|
|
|
2756
2757
|
},
|
|
2757
2758
|
setup(t, { expose: c }) {
|
|
2758
2759
|
c();
|
|
2759
|
-
const { generateSecureUUID: o } = Y, e = t,
|
|
2760
|
+
const { generateSecureUUID: o } = Y, e = t, s = re(), r = ae(s), n = y(null), l = h(() => e.propValue || {}), f = h(() => e.element || {}), a = h(() => f.value.events || []), C = le(), v = oe(), i = ee(l, f, C, v);
|
|
2760
2761
|
Q(() => {
|
|
2761
|
-
n.value = te(
|
|
2762
|
+
n.value = te(a.value, e.designStatus, i), n.value?.beforeMount(), I.value = o();
|
|
2762
2763
|
}), q(() => {
|
|
2763
|
-
|
|
2764
|
+
u(), n.value?.mounted();
|
|
2764
2765
|
}), J(() => {
|
|
2765
2766
|
n.value?.beforeUnmount();
|
|
2766
2767
|
}), $(() => {
|
|
2767
2768
|
n.value?.unmounted();
|
|
2768
2769
|
});
|
|
2769
|
-
const { dynamicColor:
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
}),
|
|
2773
|
-
|
|
2770
|
+
const { dynamicColor: p } = be(l, r, s.rules, Y), V = h(() => p.fillColor ? p.fillColor : l.value.fillColor ? l.value.fillColor : "none"), W = h(() => p.lineColor ? p.lineColor : l.value.strokeColor ? l.value.strokeColor : "none"), j = y(0), b = y(0), M = y(1), L = y(1), P = y(0), k = y(0);
|
|
2771
|
+
B(() => f.value.style.width, (H) => {
|
|
2772
|
+
u();
|
|
2773
|
+
}), B(() => f.value.style.height, (H) => {
|
|
2774
|
+
u();
|
|
2774
2775
|
});
|
|
2775
|
-
const
|
|
2776
|
-
const { width: H, height:
|
|
2777
|
-
|
|
2778
|
-
},
|
|
2779
|
-
let
|
|
2780
|
-
|
|
2781
|
-
},
|
|
2776
|
+
const u = () => {
|
|
2777
|
+
const { width: H, height: S } = f.value.style;
|
|
2778
|
+
_(H, S);
|
|
2779
|
+
}, _ = (H, S) => {
|
|
2780
|
+
let w = l.value.strokeWidth, A = w / 2;
|
|
2781
|
+
j.value = 0 * H + A, b.value = 0 * S + A, M.value = S * 1 - w, L.value = H * 1 - w;
|
|
2782
|
+
}, I = y(""), m = h(() => l.value.hasGradient ? `url(#${I.value})` : V.value), F = { generateSecureUUID: o, props: e, dataCache: s, smartData: r, eventHandler: n, propValue: l, element: f, events: a, router: C, route: v, compContext: i, dynamicColor: p, showFillColor: V, showLineColor: W, rlux: j, rluy: b, rhight: M, rwidth: L, rrx: P, rry: k, draw: u, drawChart: _, gradientId: I, fillStyle: m, get useEventHandler() {
|
|
2782
2783
|
return te;
|
|
2783
2784
|
}, get useDataCacheStore() {
|
|
2784
2785
|
return re;
|
|
@@ -2786,31 +2787,31 @@ const mo = /* @__PURE__ */ fe(po, [["render", ho], ["__scopeId", "data-v-7dcb208
|
|
|
2786
2787
|
return ae;
|
|
2787
2788
|
}, get CreateCompContext() {
|
|
2788
2789
|
return ee;
|
|
2789
|
-
}, ref:
|
|
2790
|
+
}, ref: y, computed: h, watch: B, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get CommonUtils() {
|
|
2790
2791
|
return Y;
|
|
2791
2792
|
}, get useRoute() {
|
|
2792
2793
|
return oe;
|
|
2793
2794
|
}, get useRouter() {
|
|
2794
2795
|
return le;
|
|
2795
2796
|
}, get useDynamicColor() {
|
|
2796
|
-
return
|
|
2797
|
+
return be;
|
|
2797
2798
|
} };
|
|
2798
|
-
return Object.defineProperty(
|
|
2799
|
+
return Object.defineProperty(F, "__isScriptSetup", { enumerable: !1, value: !0 }), F;
|
|
2799
2800
|
}
|
|
2800
2801
|
});
|
|
2801
|
-
function yo(t, c, o, e,
|
|
2802
|
-
return
|
|
2803
|
-
(
|
|
2802
|
+
function yo(t, c, o, e, s, r) {
|
|
2803
|
+
return R(), z("div", { class: "svg-container" }, [
|
|
2804
|
+
(R(), z("svg", {
|
|
2804
2805
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2805
2806
|
width: e.element.style.width,
|
|
2806
2807
|
height: e.element.style.height
|
|
2807
2808
|
}, [
|
|
2808
2809
|
ne(" 根据条件判断是否渲染渐变定义 "),
|
|
2809
2810
|
de(),
|
|
2810
|
-
e.propValue.hasGradient ? (
|
|
2811
|
+
e.propValue.hasGradient ? (R(), z("defs", { key: 0 }, [
|
|
2811
2812
|
ne(" 这里根据渐变类型动态渲染线性或径向渐变 "),
|
|
2812
2813
|
de(),
|
|
2813
|
-
e.propValue.gradientType === "linear" ? (
|
|
2814
|
+
e.propValue.gradientType === "linear" ? (R(), z("linearGradient", {
|
|
2814
2815
|
key: 0,
|
|
2815
2816
|
id: e.gradientId,
|
|
2816
2817
|
x1: e.propValue.gradientX1 + "%",
|
|
@@ -2818,18 +2819,18 @@ function yo(t, c, o, e, i, r) {
|
|
|
2818
2819
|
y1: e.propValue.gradientY1 + "%",
|
|
2819
2820
|
y2: e.propValue.gradientY2 + "%"
|
|
2820
2821
|
}, [
|
|
2821
|
-
(
|
|
2822
|
+
(R(), z("stop", {
|
|
2822
2823
|
key: 1,
|
|
2823
2824
|
offset: e.propValue.gradientStopsOffset + "%",
|
|
2824
2825
|
"stop-color": e.propValue.gradientStopsColor
|
|
2825
2826
|
}, null, 8, ["offset", "stop-color"])),
|
|
2826
2827
|
de(),
|
|
2827
|
-
(
|
|
2828
|
+
(R(), z("stop", {
|
|
2828
2829
|
key: 2,
|
|
2829
2830
|
offset: e.propValue.gradientStopsOffset2 + "%",
|
|
2830
2831
|
"stop-color": e.propValue.gradientStopsColor2
|
|
2831
2832
|
}, null, 8, ["offset", "stop-color"]))
|
|
2832
|
-
], 8, ["id", "x1", "x2", "y1", "y2"])) : (
|
|
2833
|
+
], 8, ["id", "x1", "x2", "y1", "y2"])) : (R(), z("radialGradient", {
|
|
2833
2834
|
key: 1,
|
|
2834
2835
|
id: e.gradientId,
|
|
2835
2836
|
cx: e.propValue.gradientCx + "%",
|
|
@@ -2838,13 +2839,13 @@ function yo(t, c, o, e, i, r) {
|
|
|
2838
2839
|
fx: e.propValue.gradientFx + "%",
|
|
2839
2840
|
fy: e.propValue.gradientFy + "%"
|
|
2840
2841
|
}, [
|
|
2841
|
-
(
|
|
2842
|
+
(R(), z("stop", {
|
|
2842
2843
|
key: 1,
|
|
2843
2844
|
offset: e.propValue.gradientStopsOffset + "%",
|
|
2844
2845
|
"stop-color": e.propValue.gradientStopsColor
|
|
2845
2846
|
}, null, 8, ["offset", "stop-color"])),
|
|
2846
2847
|
de(),
|
|
2847
|
-
(
|
|
2848
|
+
(R(), z("stop", {
|
|
2848
2849
|
key: 2,
|
|
2849
2850
|
offset: e.propValue.gradientStopsOffset2 + "%",
|
|
2850
2851
|
"stop-color": e.propValue.gradientStopsColor2
|
|
@@ -2892,30 +2893,30 @@ const Co = /* @__PURE__ */ fe(go, [["render", yo], ["__scopeId", "data-v-4ce499b
|
|
|
2892
2893
|
},
|
|
2893
2894
|
setup(t, { expose: c }) {
|
|
2894
2895
|
c();
|
|
2895
|
-
const o = t, e = re(),
|
|
2896
|
+
const o = t, e = re(), s = ae(e), r = y(null), n = h(() => o.propValue || {}), l = h(() => o.element || {}), f = h(() => l.value.events || []), a = le(), C = oe(), v = ee(n, l, a, C);
|
|
2896
2897
|
Q(() => {
|
|
2897
|
-
r.value = te(f.value, o.designStatus,
|
|
2898
|
+
r.value = te(f.value, o.designStatus, v), r.value?.beforeMount();
|
|
2898
2899
|
}), q(() => {
|
|
2899
|
-
|
|
2900
|
+
j(), r.value?.mounted();
|
|
2900
2901
|
}), J(() => {
|
|
2901
2902
|
r.value?.beforeUnmount();
|
|
2902
2903
|
}), $(() => {
|
|
2903
2904
|
r.value?.unmounted();
|
|
2904
2905
|
});
|
|
2905
|
-
const { dynamicColor:
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
}),
|
|
2909
|
-
|
|
2906
|
+
const { dynamicColor: i } = be(n, s, e.rules, Y), p = h(() => i.fillColor ? i.fillColor : n.value.fillColor ? n.value.fillColor : "none"), V = h(() => i.lineColor ? i.lineColor : n.value.strokeColor ? n.value.strokeColor : "none"), W = y([]);
|
|
2907
|
+
B(() => l.value.style.width, (L) => {
|
|
2908
|
+
j();
|
|
2909
|
+
}), B(() => l.value.style.height, (L) => {
|
|
2910
|
+
j();
|
|
2910
2911
|
});
|
|
2911
|
-
const
|
|
2912
|
-
const { width:
|
|
2913
|
-
|
|
2914
|
-
},
|
|
2912
|
+
const j = () => {
|
|
2913
|
+
const { width: L, height: P } = l.value.style;
|
|
2914
|
+
b(L, P);
|
|
2915
|
+
}, b = (L, P) => {
|
|
2915
2916
|
const k = [];
|
|
2916
|
-
let
|
|
2917
|
-
k[
|
|
2918
|
-
}, M = { props: o, dataCache: e, smartData:
|
|
2917
|
+
let u = 0, _ = n.value.strokeWidth;
|
|
2918
|
+
k[u++] = "M", k[u++] = 0.5 * L, k[u++] = 0 + _, k[u++] = "L", k[u++] = 0 + _, k[u++] = P - _, k[u++] = "L", k[u++] = L - _, k[u++] = P - _, k[u++] = "Z", W.value = k.join(" ");
|
|
2919
|
+
}, M = { props: o, dataCache: e, smartData: s, eventHandler: r, propValue: n, element: l, events: f, router: a, route: C, compContext: v, dynamicColor: i, showFillColor: p, showLineColor: V, pathData: W, draw: j, drawChart: b, get useEventHandler() {
|
|
2919
2920
|
return te;
|
|
2920
2921
|
}, get useDataCacheStore() {
|
|
2921
2922
|
return re;
|
|
@@ -2923,21 +2924,21 @@ const Co = /* @__PURE__ */ fe(go, [["render", yo], ["__scopeId", "data-v-4ce499b
|
|
|
2923
2924
|
return ae;
|
|
2924
2925
|
}, get CreateCompContext() {
|
|
2925
2926
|
return ee;
|
|
2926
|
-
}, ref:
|
|
2927
|
+
}, ref: y, computed: h, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, watch: B, get useRoute() {
|
|
2927
2928
|
return oe;
|
|
2928
2929
|
}, get useRouter() {
|
|
2929
2930
|
return le;
|
|
2930
2931
|
}, get CommonUtils() {
|
|
2931
2932
|
return Y;
|
|
2932
2933
|
}, get useDynamicColor() {
|
|
2933
|
-
return
|
|
2934
|
+
return be;
|
|
2934
2935
|
} };
|
|
2935
2936
|
return Object.defineProperty(M, "__isScriptSetup", { enumerable: !1, value: !0 }), M;
|
|
2936
2937
|
}
|
|
2937
2938
|
});
|
|
2938
|
-
function xo(t, c, o, e,
|
|
2939
|
-
return
|
|
2940
|
-
(
|
|
2939
|
+
function xo(t, c, o, e, s, r) {
|
|
2940
|
+
return R(), z("div", { class: "svg-container" }, [
|
|
2941
|
+
(R(), z("svg", {
|
|
2941
2942
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2942
2943
|
width: e.element.style.width,
|
|
2943
2944
|
height: e.element.style.height
|
|
@@ -2974,29 +2975,29 @@ const So = /* @__PURE__ */ fe(bo, [["render", xo], ["__scopeId", "data-v-aec13cc
|
|
|
2974
2975
|
},
|
|
2975
2976
|
setup(t, { expose: c }) {
|
|
2976
2977
|
c();
|
|
2977
|
-
const o = t, e = re(),
|
|
2978
|
+
const o = t, e = re(), s = ae(e), r = y(null), n = h(() => o.propValue || {}), l = h(() => o.element || {}), f = h(() => l.value.events || []), a = le(), C = oe(), v = ee(n, l, a, C);
|
|
2978
2979
|
Q(() => {
|
|
2979
|
-
r.value = te(f.value, o.designStatus,
|
|
2980
|
+
r.value = te(f.value, o.designStatus, v), r.value?.beforeMount();
|
|
2980
2981
|
}), q(() => {
|
|
2981
|
-
|
|
2982
|
+
j(), r.value?.mounted();
|
|
2982
2983
|
}), J(() => {
|
|
2983
2984
|
r.value?.beforeUnmount();
|
|
2984
2985
|
}), $(() => {
|
|
2985
2986
|
r.value?.unmounted();
|
|
2986
2987
|
});
|
|
2987
|
-
const { dynamicColor:
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
}),
|
|
2991
|
-
|
|
2988
|
+
const { dynamicColor: i } = be(n, s, e.rules, Y), p = h(() => i.lineColor ? i.lineColor : n.value.strokeColor ? n.value.strokeColor : "none"), V = y([]), W = y([]);
|
|
2989
|
+
B(() => l.value.style.width, (L) => {
|
|
2990
|
+
j();
|
|
2991
|
+
}), B(() => l.value.style.height, (L) => {
|
|
2992
|
+
j();
|
|
2992
2993
|
});
|
|
2993
|
-
const
|
|
2994
|
-
const { width:
|
|
2995
|
-
|
|
2996
|
-
},
|
|
2997
|
-
const k = [0.5, 0],
|
|
2998
|
-
|
|
2999
|
-
}, M = { props: o, dataCache: e, smartData:
|
|
2994
|
+
const j = () => {
|
|
2995
|
+
const { width: L, height: P } = l.value.style;
|
|
2996
|
+
b(L, P);
|
|
2997
|
+
}, b = (L, P) => {
|
|
2998
|
+
const k = [0.5, 0], u = [0.5, 1];
|
|
2999
|
+
V.value = [L * k[0], P * k[1]], W.value = [L * u[0], P * u[1]];
|
|
3000
|
+
}, M = { props: o, dataCache: e, smartData: s, eventHandler: r, propValue: n, element: l, events: f, router: a, route: C, compContext: v, dynamicColor: i, showLineColor: p, LineL1P1: V, LineL1P2: W, draw: j, drawChart: b, get useEventHandler() {
|
|
3000
3001
|
return te;
|
|
3001
3002
|
}, get useDataCacheStore() {
|
|
3002
3003
|
return re;
|
|
@@ -3004,21 +3005,21 @@ const So = /* @__PURE__ */ fe(bo, [["render", xo], ["__scopeId", "data-v-aec13cc
|
|
|
3004
3005
|
return ae;
|
|
3005
3006
|
}, get CreateCompContext() {
|
|
3006
3007
|
return ee;
|
|
3007
|
-
}, ref:
|
|
3008
|
+
}, ref: y, computed: h, watch: B, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
|
|
3008
3009
|
return oe;
|
|
3009
3010
|
}, get useRouter() {
|
|
3010
3011
|
return le;
|
|
3011
3012
|
}, get CommonUtils() {
|
|
3012
3013
|
return Y;
|
|
3013
3014
|
}, get useDynamicColor() {
|
|
3014
|
-
return
|
|
3015
|
+
return be;
|
|
3015
3016
|
} };
|
|
3016
3017
|
return Object.defineProperty(M, "__isScriptSetup", { enumerable: !1, value: !0 }), M;
|
|
3017
3018
|
}
|
|
3018
3019
|
});
|
|
3019
|
-
function ko(t, c, o, e,
|
|
3020
|
-
return
|
|
3021
|
-
(
|
|
3020
|
+
function ko(t, c, o, e, s, r) {
|
|
3021
|
+
return R(), z("div", { class: "svg-container" }, [
|
|
3022
|
+
(R(), z("svg", {
|
|
3022
3023
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3023
3024
|
width: e.element.style.width,
|
|
3024
3025
|
height: e.element.style.height
|
|
@@ -3032,7 +3033,7 @@ function ko(t, c, o, e, i, r) {
|
|
|
3032
3033
|
"stroke-width": e.propValue.strokeWidth,
|
|
3033
3034
|
"stroke-dasharray": e.propValue.strokeDasharray
|
|
3034
3035
|
}, [
|
|
3035
|
-
e.propValue.animate ? (
|
|
3036
|
+
e.propValue.animate ? (R(), z("animate", {
|
|
3036
3037
|
key: 0,
|
|
3037
3038
|
attributeName: "stroke-dashoffset",
|
|
3038
3039
|
from: e.propValue.animateFrom,
|
|
@@ -3066,55 +3067,55 @@ const wo = /* @__PURE__ */ fe(_o, [["render", ko], ["__scopeId", "data-v-cddc726
|
|
|
3066
3067
|
}
|
|
3067
3068
|
},
|
|
3068
3069
|
setup(t, { expose: c }) {
|
|
3069
|
-
const o = t, e =
|
|
3070
|
-
e.value?.handleClick(
|
|
3071
|
-
},
|
|
3072
|
-
e.value?.handleDblClick(
|
|
3070
|
+
const o = t, e = y(null), s = h(() => o.propValue || {}), r = h(() => o.element || {}), n = h(() => r.value.events || []), l = y(0), f = y(0), a = y(""), C = y(""), v = (u) => {
|
|
3071
|
+
e.value?.handleClick(u);
|
|
3072
|
+
}, i = (u) => {
|
|
3073
|
+
e.value?.handleDblClick(u);
|
|
3073
3074
|
};
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
}),
|
|
3077
|
-
|
|
3078
|
-
}),
|
|
3079
|
-
|
|
3080
|
-
}),
|
|
3081
|
-
|
|
3075
|
+
B(() => r.value.style.width, (u) => {
|
|
3076
|
+
p();
|
|
3077
|
+
}), B(() => r.value.style.height, (u) => {
|
|
3078
|
+
p();
|
|
3079
|
+
}), B(() => s.value.horizontalAlign, (u) => {
|
|
3080
|
+
p();
|
|
3081
|
+
}), B(() => s.value.offsetX, (u) => {
|
|
3082
|
+
p();
|
|
3082
3083
|
});
|
|
3083
|
-
const
|
|
3084
|
-
const { width:
|
|
3085
|
-
|
|
3086
|
-
},
|
|
3087
|
-
let
|
|
3088
|
-
|
|
3089
|
-
},
|
|
3084
|
+
const p = () => {
|
|
3085
|
+
const { width: u, height: _ } = o.element.style;
|
|
3086
|
+
V(u, _);
|
|
3087
|
+
}, V = (u, _) => {
|
|
3088
|
+
let I = o.propValue.horizontalAlign || "left", m = o.propValue.offsetX || 0;
|
|
3089
|
+
I == "center" ? (C.value = "middle", l.value = u * 0.5) : I == "right" ? (l.value = u - m, C.value = "end") : (l.value = 0 + m, C.value = "start"), a.value = "central", f.value = _ * 0.5;
|
|
3090
|
+
}, W = le(), j = oe(), b = ee(s, r, W, j);
|
|
3090
3091
|
Q(() => {
|
|
3091
|
-
e.value = te(n.value, o.designStatus,
|
|
3092
|
+
e.value = te(n.value, o.designStatus, b), e.value?.beforeMount();
|
|
3092
3093
|
}), q(() => {
|
|
3093
|
-
|
|
3094
|
+
p(), e.value?.mounted();
|
|
3094
3095
|
}), J(() => {
|
|
3095
3096
|
e.value?.beforeUnmount();
|
|
3096
3097
|
}), $(() => {
|
|
3097
3098
|
e.value?.unmounted();
|
|
3098
3099
|
}), c({
|
|
3099
|
-
handleClick:
|
|
3100
|
+
handleClick: v
|
|
3100
3101
|
});
|
|
3101
|
-
const { processMenus: M } =
|
|
3102
|
-
|
|
3103
|
-
let
|
|
3104
|
-
if (Y.isArray(
|
|
3105
|
-
let
|
|
3106
|
-
|
|
3107
|
-
e.value?.handleContextMenu(
|
|
3108
|
-
}),
|
|
3109
|
-
x:
|
|
3110
|
-
y:
|
|
3111
|
-
items:
|
|
3102
|
+
const { processMenus: M } = Le(), L = (u) => {
|
|
3103
|
+
u.preventDefault();
|
|
3104
|
+
let _ = s.value.menuItems || [];
|
|
3105
|
+
if (Y.isArray(_) && _.length > 0) {
|
|
3106
|
+
let I = [];
|
|
3107
|
+
I = M(_, function(m, F) {
|
|
3108
|
+
e.value?.handleContextMenu(u, m.value);
|
|
3109
|
+
}), je.showContextMenu({
|
|
3110
|
+
x: u.x,
|
|
3111
|
+
y: u.y,
|
|
3112
|
+
items: I
|
|
3112
3113
|
});
|
|
3113
3114
|
}
|
|
3114
|
-
},
|
|
3115
|
-
let
|
|
3116
|
-
return
|
|
3117
|
-
}), k = { props: o, eventHandler: e, propValue:
|
|
3115
|
+
}, P = h(() => {
|
|
3116
|
+
let u = {};
|
|
3117
|
+
return u.cursor = _e(n.value), u;
|
|
3118
|
+
}), k = { props: o, eventHandler: e, propValue: s, element: r, events: n, textX: l, textY: f, textBaseLine: a, textAnchor: C, handleClick: v, handleDblClick: i, draw: p, drawChart: V, router: W, route: j, compContext: b, processMenus: M, openContextMenu: L, customStyle: P, get useEventHandler() {
|
|
3118
3119
|
return te;
|
|
3119
3120
|
}, get useDataCacheStore() {
|
|
3120
3121
|
return re;
|
|
@@ -3124,34 +3125,34 @@ const wo = /* @__PURE__ */ fe(_o, [["render", ko], ["__scopeId", "data-v-cddc726
|
|
|
3124
3125
|
return ee;
|
|
3125
3126
|
}, get CommonUtils() {
|
|
3126
3127
|
return Y;
|
|
3127
|
-
}, watch:
|
|
3128
|
+
}, watch: B, onMounted: q, computed: h, ref: y, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
|
|
3128
3129
|
return oe;
|
|
3129
3130
|
}, get useRouter() {
|
|
3130
3131
|
return le;
|
|
3131
3132
|
}, get ContextMenu() {
|
|
3132
|
-
return We;
|
|
3133
|
-
}, get useMenuHandler() {
|
|
3134
3133
|
return je;
|
|
3134
|
+
}, get useMenuHandler() {
|
|
3135
|
+
return Le;
|
|
3135
3136
|
}, get getCursorByEvents() {
|
|
3136
|
-
return
|
|
3137
|
+
return _e;
|
|
3137
3138
|
} };
|
|
3138
3139
|
return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
|
|
3139
3140
|
}
|
|
3140
3141
|
});
|
|
3141
|
-
function Mo(t, c, o, e,
|
|
3142
|
-
return
|
|
3142
|
+
function Mo(t, c, o, e, s, r) {
|
|
3143
|
+
return R(), z("div", {
|
|
3143
3144
|
class: "svg-container",
|
|
3144
|
-
style:
|
|
3145
|
+
style: Ce(e.customStyle),
|
|
3145
3146
|
onClick: e.handleClick,
|
|
3146
3147
|
onDblclick: e.handleDblClick,
|
|
3147
3148
|
onContextmenu: e.openContextMenu
|
|
3148
3149
|
}, [
|
|
3149
|
-
(
|
|
3150
|
+
(R(), z("svg", {
|
|
3150
3151
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3151
3152
|
width: e.element.style.width,
|
|
3152
3153
|
height: e.element.style.height
|
|
3153
3154
|
}, [
|
|
3154
|
-
e.propValue.hasBackground ? (
|
|
3155
|
+
e.propValue.hasBackground ? (R(), z("rect", {
|
|
3155
3156
|
key: 0,
|
|
3156
3157
|
x: 1,
|
|
3157
3158
|
y: 1,
|
|
@@ -3203,57 +3204,57 @@ const Oo = /* @__PURE__ */ fe(Vo, [["render", Mo], ["__scopeId", "data-v-bab9827
|
|
|
3203
3204
|
},
|
|
3204
3205
|
setup(t, { expose: c }) {
|
|
3205
3206
|
c();
|
|
3206
|
-
const { isNotEmpty: o } = Y, e = t,
|
|
3207
|
-
const { width:
|
|
3208
|
-
let
|
|
3209
|
-
return o(
|
|
3210
|
-
}),
|
|
3211
|
-
l.value?.handleClick(
|
|
3212
|
-
},
|
|
3213
|
-
l.value?.handleDblClick(
|
|
3207
|
+
const { isNotEmpty: o } = Y, e = t, s = h(() => e.propValue || {}), r = h(() => e.element || {}), n = h(() => r.value.events || []), l = y(null), f = h(() => {
|
|
3208
|
+
const { width: I, height: m } = r.value.style;
|
|
3209
|
+
let F = I / 2, H = m / 2;
|
|
3210
|
+
return o(s.value.translateX) || o(s.value.translateY) ? o(s.value.translateX) && o(s.value.translateY) ? `rotate(90,${F},${H}) translate(${s.value.translateX}, ${s.value.translateY})` : o(s.value.translateX) ? `rotate(90,${F},${H}) translate(${s.value.translateX}, 0)` : `rotate(90,${F},${H}) translate(0, ${s.value.translateY})` : `rotate(90,${F},${H})`;
|
|
3211
|
+
}), a = y(0), C = y(0), v = y(""), i = y(""), p = (I) => {
|
|
3212
|
+
l.value?.handleClick(I);
|
|
3213
|
+
}, V = (I) => {
|
|
3214
|
+
l.value?.handleDblClick(I);
|
|
3214
3215
|
};
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
}),
|
|
3218
|
-
|
|
3219
|
-
}),
|
|
3220
|
-
|
|
3221
|
-
}),
|
|
3222
|
-
|
|
3216
|
+
B(() => r.value.style.width, (I) => {
|
|
3217
|
+
W();
|
|
3218
|
+
}), B(() => r.value.style.height, (I) => {
|
|
3219
|
+
W();
|
|
3220
|
+
}), B(() => s.value.horizontalAlign, (I) => {
|
|
3221
|
+
W();
|
|
3222
|
+
}), B(() => s.value.offsetX, (I) => {
|
|
3223
|
+
W();
|
|
3223
3224
|
});
|
|
3224
|
-
const
|
|
3225
|
-
const { width:
|
|
3226
|
-
I
|
|
3227
|
-
},
|
|
3228
|
-
let
|
|
3229
|
-
|
|
3230
|
-
},
|
|
3225
|
+
const W = () => {
|
|
3226
|
+
const { width: I, height: m } = e.element.style;
|
|
3227
|
+
j(I, m);
|
|
3228
|
+
}, j = (I, m) => {
|
|
3229
|
+
let F = e.propValue.horizontalAlign || "left", H = e.propValue.offsetX || 0;
|
|
3230
|
+
F == "center" ? (i.value = "middle", a.value = I * 0.5) : F == "right" ? (a.value = I - H, i.value = "end") : (a.value = 0 + H, i.value = "start"), v.value = "central", C.value = m * 0.5;
|
|
3231
|
+
}, b = le(), M = oe(), L = ee(s, r, b, M);
|
|
3231
3232
|
Q(() => {
|
|
3232
|
-
l.value = te(n.value, e.designStatus,
|
|
3233
|
+
l.value = te(n.value, e.designStatus, L), l.value?.beforeMount();
|
|
3233
3234
|
}), q(() => {
|
|
3234
|
-
|
|
3235
|
+
W(), l.value?.mounted();
|
|
3235
3236
|
}), J(() => {
|
|
3236
3237
|
l.value?.beforeUnmount();
|
|
3237
3238
|
}), $(() => {
|
|
3238
3239
|
l.value?.unmounted();
|
|
3239
3240
|
});
|
|
3240
|
-
const { processMenus:
|
|
3241
|
-
|
|
3242
|
-
let
|
|
3243
|
-
if (Y.isArray(
|
|
3244
|
-
let
|
|
3245
|
-
|
|
3246
|
-
l.value?.handleContextMenu(
|
|
3247
|
-
}),
|
|
3248
|
-
x:
|
|
3249
|
-
y:
|
|
3250
|
-
items:
|
|
3241
|
+
const { processMenus: P } = Le(), k = (I) => {
|
|
3242
|
+
I.preventDefault();
|
|
3243
|
+
let m = s.value.menuItems || [];
|
|
3244
|
+
if (Y.isArray(m) && m.length > 0) {
|
|
3245
|
+
let F = [];
|
|
3246
|
+
F = P(m, function(H, S) {
|
|
3247
|
+
l.value?.handleContextMenu(I, H.value);
|
|
3248
|
+
}), je.showContextMenu({
|
|
3249
|
+
x: I.x,
|
|
3250
|
+
y: I.y,
|
|
3251
|
+
items: F
|
|
3251
3252
|
});
|
|
3252
3253
|
}
|
|
3253
|
-
},
|
|
3254
|
-
let
|
|
3255
|
-
return
|
|
3256
|
-
}),
|
|
3254
|
+
}, u = h(() => {
|
|
3255
|
+
let I = {};
|
|
3256
|
+
return I.cursor = _e(n.value), I;
|
|
3257
|
+
}), _ = { isNotEmpty: o, props: e, propValue: s, element: r, events: n, eventHandler: l, transformAttr: f, textX: a, textY: C, textBaseLine: v, textAnchor: i, handleClick: p, handleDblClick: V, draw: W, drawChart: j, router: b, route: M, compContext: L, processMenus: P, openContextMenu: k, customStyle: u, get useEventHandler() {
|
|
3257
3258
|
return te;
|
|
3258
3259
|
}, get useDataCacheStore() {
|
|
3259
3260
|
return re;
|
|
@@ -3261,36 +3262,36 @@ const Oo = /* @__PURE__ */ fe(Vo, [["render", Mo], ["__scopeId", "data-v-bab9827
|
|
|
3261
3262
|
return ae;
|
|
3262
3263
|
}, get CreateCompContext() {
|
|
3263
3264
|
return ee;
|
|
3264
|
-
}, ref:
|
|
3265
|
+
}, ref: y, watch: B, computed: h, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
|
|
3265
3266
|
return oe;
|
|
3266
3267
|
}, get useRouter() {
|
|
3267
3268
|
return le;
|
|
3268
3269
|
}, get CommonUtils() {
|
|
3269
3270
|
return Y;
|
|
3270
3271
|
}, get ContextMenu() {
|
|
3271
|
-
return We;
|
|
3272
|
-
}, get useMenuHandler() {
|
|
3273
3272
|
return je;
|
|
3273
|
+
}, get useMenuHandler() {
|
|
3274
|
+
return Le;
|
|
3274
3275
|
}, get getCursorByEvents() {
|
|
3275
|
-
return
|
|
3276
|
+
return _e;
|
|
3276
3277
|
} };
|
|
3277
|
-
return Object.defineProperty(
|
|
3278
|
+
return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
|
|
3278
3279
|
}
|
|
3279
3280
|
});
|
|
3280
|
-
function Io(t, c, o, e,
|
|
3281
|
-
return
|
|
3281
|
+
function Io(t, c, o, e, s, r) {
|
|
3282
|
+
return R(), z("div", {
|
|
3282
3283
|
class: "svg-container",
|
|
3283
|
-
style:
|
|
3284
|
+
style: Ce(e.customStyle),
|
|
3284
3285
|
onClick: e.handleClick,
|
|
3285
3286
|
onDblclick: e.handleDblClick,
|
|
3286
3287
|
onContextmenu: e.openContextMenu
|
|
3287
3288
|
}, [
|
|
3288
|
-
(
|
|
3289
|
+
(R(), z("svg", {
|
|
3289
3290
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3290
3291
|
width: e.element.style.width,
|
|
3291
3292
|
height: e.element.style.height
|
|
3292
3293
|
}, [
|
|
3293
|
-
e.propValue.hasBackground ? (
|
|
3294
|
+
e.propValue.hasBackground ? (R(), z("rect", {
|
|
3294
3295
|
key: 0,
|
|
3295
3296
|
x: 1,
|
|
3296
3297
|
y: 1,
|
|
@@ -3305,7 +3306,7 @@ function Io(t, c, o, e, i, r) {
|
|
|
3305
3306
|
"stroke-width": e.propValue.strokeWidth
|
|
3306
3307
|
}, null, 8, ["width", "height", "rx", "ry", "fill", "stroke", "fill-opacity", "stroke-opacity", "stroke-width"])) : ne("", !0),
|
|
3307
3308
|
de(),
|
|
3308
|
-
e.propValue.verticalText ? (
|
|
3309
|
+
e.propValue.verticalText ? (R(), z("text", {
|
|
3309
3310
|
key: 1,
|
|
3310
3311
|
x: e.textX,
|
|
3311
3312
|
y: e.textY,
|
|
@@ -3319,7 +3320,7 @@ function Io(t, c, o, e, i, r) {
|
|
|
3319
3320
|
style: { "letter-spacing": "5px" },
|
|
3320
3321
|
transform: e.transformAttr,
|
|
3321
3322
|
rotate: "-90"
|
|
3322
|
-
}, De(e.propValue.text), 9, ["x", "y", "dx", "fill", "dominant-baseline", "text-anchor", "font-family", "font-size", "font-weight", "transform"])) : (
|
|
3323
|
+
}, De(e.propValue.text), 9, ["x", "y", "dx", "fill", "dominant-baseline", "text-anchor", "font-family", "font-size", "font-weight", "transform"])) : (R(), z("text", {
|
|
3323
3324
|
key: 2,
|
|
3324
3325
|
x: e.textX,
|
|
3325
3326
|
y: e.textY,
|
|
@@ -3357,9 +3358,9 @@ const Wo = /* @__PURE__ */ fe(Do, [["render", Io], ["__scopeId", "data-v-2959cd0
|
|
|
3357
3358
|
},
|
|
3358
3359
|
setup(t, { expose: c }) {
|
|
3359
3360
|
c();
|
|
3360
|
-
const { generateSecureUUID: o } = Y, e = t,
|
|
3361
|
+
const { generateSecureUUID: o } = Y, e = t, s = re(), r = ae(s), n = y(null), l = h(() => e.propValue || {}), f = h(() => e.element || {}), a = h(() => f.value.events || []), C = le(), v = oe(), i = ee(l, f, C, v);
|
|
3361
3362
|
Q(() => {
|
|
3362
|
-
n.value = te(
|
|
3363
|
+
n.value = te(a.value, e.designStatus, i), n.value?.beforeMount(), P.value = o();
|
|
3363
3364
|
}), q(() => {
|
|
3364
3365
|
M(), n.value?.mounted();
|
|
3365
3366
|
}), J(() => {
|
|
@@ -3367,23 +3368,23 @@ const Wo = /* @__PURE__ */ fe(Do, [["render", Io], ["__scopeId", "data-v-2959cd0
|
|
|
3367
3368
|
}), $(() => {
|
|
3368
3369
|
n.value?.unmounted();
|
|
3369
3370
|
});
|
|
3370
|
-
const { dynamicColor:
|
|
3371
|
-
|
|
3371
|
+
const { dynamicColor: p } = be(l, r, s.rules, Y), V = h(() => p.fillColor ? p.fillColor : l.value.fillColor ? l.value.fillColor : "none"), W = h(() => p.lineColor ? p.lineColor : l.value.strokeColor ? l.value.strokeColor : "none"), j = y(""), b = y(2);
|
|
3372
|
+
B(() => f.value.style.width, (_) => {
|
|
3372
3373
|
M();
|
|
3373
|
-
}),
|
|
3374
|
+
}), B(() => f.value.style.height, (_) => {
|
|
3374
3375
|
M();
|
|
3375
|
-
}),
|
|
3376
|
+
}), B(() => l.value.tilt, (_) => {
|
|
3376
3377
|
M();
|
|
3377
|
-
}),
|
|
3378
|
+
}), B(() => l.value.offsetLen, (_) => {
|
|
3378
3379
|
M();
|
|
3379
3380
|
});
|
|
3380
3381
|
const M = () => {
|
|
3381
|
-
const { width:
|
|
3382
|
-
|
|
3383
|
-
},
|
|
3384
|
-
let
|
|
3385
|
-
|
|
3386
|
-
},
|
|
3382
|
+
const { width: _, height: I } = f.value.style;
|
|
3383
|
+
L(_, I);
|
|
3384
|
+
}, L = (_, I) => {
|
|
3385
|
+
let m = l.value.tilt || "right", F = l.value.offsetLen || 0, H = [], S = 0, Z = Math.round((_ - 2 * b.value) * 0.5);
|
|
3386
|
+
F = Number(F), F = F < 0 ? 0 : F, F = F > Z ? Z : F, m == "left" ? (H[S++] = b.value, H[S++] = ",", H[S++] = b.value, H[S++] = _ - b.value - F, H[S++] = ",", H[S++] = b.value, H[S++] = _ - b.value, H[S++] = ",", H[S++] = I - b.value, H[S++] = b.value + F, H[S++] = ",", H[S++] = I - b.value, H[S++] = b.value, H[S++] = ",", H[S++] = b.value, j.value = H.join(" ")) : (H[S++] = b.value + F, H[S++] = ",", H[S++] = b.value, H[S++] = _ - b.value, H[S++] = ",", H[S++] = b.value, H[S++] = _ - b.value - F, H[S++] = ",", H[S++] = I - b.value, H[S++] = b.value, H[S++] = ",", H[S++] = I - b.value, H[S++] = b.value + F, H[S++] = ",", H[S++] = b.value, j.value = H.join(" "));
|
|
3387
|
+
}, P = y(""), k = h(() => l.value.hasGradient ? `url(#${P.value})` : V.value), u = { generateSecureUUID: o, props: e, dataCache: s, smartData: r, eventHandler: n, propValue: l, element: f, events: a, router: C, route: v, compContext: i, dynamicColor: p, showFillColor: V, showLineColor: W, pointDatas: j, gap: b, draw: M, drawChart: L, gradientId: P, fillStyle: k, get useEventHandler() {
|
|
3387
3388
|
return te;
|
|
3388
3389
|
}, get useDataCacheStore() {
|
|
3389
3390
|
return re;
|
|
@@ -3391,31 +3392,31 @@ const Wo = /* @__PURE__ */ fe(Do, [["render", Io], ["__scopeId", "data-v-2959cd0
|
|
|
3391
3392
|
return ae;
|
|
3392
3393
|
}, get CreateCompContext() {
|
|
3393
3394
|
return ee;
|
|
3394
|
-
}, ref:
|
|
3395
|
+
}, ref: y, computed: h, watch: B, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get CommonUtils() {
|
|
3395
3396
|
return Y;
|
|
3396
3397
|
}, get useRoute() {
|
|
3397
3398
|
return oe;
|
|
3398
3399
|
}, get useRouter() {
|
|
3399
3400
|
return le;
|
|
3400
3401
|
}, get useDynamicColor() {
|
|
3401
|
-
return
|
|
3402
|
+
return be;
|
|
3402
3403
|
} };
|
|
3403
|
-
return Object.defineProperty(
|
|
3404
|
+
return Object.defineProperty(u, "__isScriptSetup", { enumerable: !1, value: !0 }), u;
|
|
3404
3405
|
}
|
|
3405
3406
|
});
|
|
3406
|
-
function Lo(t, c, o, e,
|
|
3407
|
-
return
|
|
3408
|
-
(
|
|
3407
|
+
function Lo(t, c, o, e, s, r) {
|
|
3408
|
+
return R(), z("div", { class: "svg-container" }, [
|
|
3409
|
+
(R(), z("svg", {
|
|
3409
3410
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3410
3411
|
width: e.element.style.width,
|
|
3411
3412
|
height: e.element.style.height
|
|
3412
3413
|
}, [
|
|
3413
3414
|
ne(" 根据条件判断是否渲染渐变定义 "),
|
|
3414
3415
|
de(),
|
|
3415
|
-
e.propValue.hasGradient ? (
|
|
3416
|
+
e.propValue.hasGradient ? (R(), z("defs", { key: 0 }, [
|
|
3416
3417
|
ne(" 这里根据渐变类型动态渲染线性或径向渐变 "),
|
|
3417
3418
|
de(),
|
|
3418
|
-
e.propValue.gradientType === "linear" ? (
|
|
3419
|
+
e.propValue.gradientType === "linear" ? (R(), z("linearGradient", {
|
|
3419
3420
|
key: 0,
|
|
3420
3421
|
id: e.gradientId,
|
|
3421
3422
|
x1: e.propValue.gradientX1 + "%",
|
|
@@ -3423,18 +3424,18 @@ function Lo(t, c, o, e, i, r) {
|
|
|
3423
3424
|
y1: e.propValue.gradientY1 + "%",
|
|
3424
3425
|
y2: e.propValue.gradientY2 + "%"
|
|
3425
3426
|
}, [
|
|
3426
|
-
(
|
|
3427
|
+
(R(), z("stop", {
|
|
3427
3428
|
key: 1,
|
|
3428
3429
|
offset: e.propValue.gradientStopsOffset + "%",
|
|
3429
3430
|
"stop-color": e.propValue.gradientStopsColor
|
|
3430
3431
|
}, null, 8, ["offset", "stop-color"])),
|
|
3431
3432
|
de(),
|
|
3432
|
-
(
|
|
3433
|
+
(R(), z("stop", {
|
|
3433
3434
|
key: 2,
|
|
3434
3435
|
offset: e.propValue.gradientStopsOffset2 + "%",
|
|
3435
3436
|
"stop-color": e.propValue.gradientStopsColor2
|
|
3436
3437
|
}, null, 8, ["offset", "stop-color"]))
|
|
3437
|
-
], 8, ["id", "x1", "x2", "y1", "y2"])) : (
|
|
3438
|
+
], 8, ["id", "x1", "x2", "y1", "y2"])) : (R(), z("radialGradient", {
|
|
3438
3439
|
key: 1,
|
|
3439
3440
|
id: e.gradientId,
|
|
3440
3441
|
cx: e.propValue.gradientCx + "%",
|
|
@@ -3443,13 +3444,13 @@ function Lo(t, c, o, e, i, r) {
|
|
|
3443
3444
|
fx: e.propValue.gradientFx + "%",
|
|
3444
3445
|
fy: e.propValue.gradientFy + "%"
|
|
3445
3446
|
}, [
|
|
3446
|
-
(
|
|
3447
|
+
(R(), z("stop", {
|
|
3447
3448
|
key: 1,
|
|
3448
3449
|
offset: e.propValue.gradientStopsOffset + "%",
|
|
3449
3450
|
"stop-color": e.propValue.gradientStopsColor
|
|
3450
3451
|
}, null, 8, ["offset", "stop-color"])),
|
|
3451
3452
|
de(),
|
|
3452
|
-
(
|
|
3453
|
+
(R(), z("stop", {
|
|
3453
3454
|
key: 2,
|
|
3454
3455
|
offset: e.propValue.gradientStopsOffset2 + "%",
|
|
3455
3456
|
"stop-color": e.propValue.gradientStopsColor2
|
|
@@ -3481,40 +3482,40 @@ const Po = /* @__PURE__ */ fe(jo, [["render", Lo], ["__scopeId", "data-v-78f636a
|
|
|
3481
3482
|
},
|
|
3482
3483
|
setup(t, { expose: c }) {
|
|
3483
3484
|
c();
|
|
3484
|
-
const o = t, e =
|
|
3485
|
+
const o = t, e = h(() => o.propValue), s = y("");
|
|
3485
3486
|
let r = null, n = 3, l = 0;
|
|
3486
3487
|
q(() => {
|
|
3487
3488
|
r = setInterval(f, 100);
|
|
3488
3489
|
});
|
|
3489
3490
|
const f = () => {
|
|
3490
|
-
let
|
|
3491
|
-
if (isNaN(
|
|
3491
|
+
let C = e.value.value || 0;
|
|
3492
|
+
if (isNaN(C))
|
|
3492
3493
|
return;
|
|
3493
|
-
|
|
3494
|
-
let
|
|
3495
|
-
|
|
3494
|
+
C <= 0 && (C = 0);
|
|
3495
|
+
let v = 48 - 46 * C / 100, i = [];
|
|
3496
|
+
i[0] = "M", i[1] = 0, i[2] = 25, i[3] = "Q", i[4] = 6.25, i[5] = 30, i[6] = ",", i[7] = 12.5, i[8] = 25, i[9] = "T", i[10] = 25, i[11] = 25, i[12] = "T", i[13] = 37.5, i[14] = 25, i[15] = "T", i[16] = 50, i[17] = 25, i[18] = "T", i[19] = 62.5, i[20] = 25, i[21] = "T", i[22] = 75, i[23] = 25, i[24] = "V", i[25] = 50, i[26] = "H", i[27] = 0, l += 1, l > 25 && (l = 0), i[1] = 0 - l, i[4] = 6.25 - l, i[7] = 12.5 - l, i[10] = 25 - l, i[13] = 37.5 - l, i[16] = 50 - l, i[19] = 62.5 - l, i[22] = 75 - l, i[2] = v, i[5] = v + n, i[8] = v, i[11] = v, i[14] = v, i[17] = v, i[20] = v, i[23] = v, s.value = i.join(" ");
|
|
3496
3497
|
};
|
|
3497
3498
|
J(() => {
|
|
3498
3499
|
r && clearInterval(r);
|
|
3499
3500
|
});
|
|
3500
|
-
const
|
|
3501
|
+
const a = { props: o, propValue: e, pathData: s, get timer() {
|
|
3501
3502
|
return r;
|
|
3502
|
-
}, set timer(
|
|
3503
|
-
r =
|
|
3503
|
+
}, set timer(C) {
|
|
3504
|
+
r = C;
|
|
3504
3505
|
}, get waveVal() {
|
|
3505
3506
|
return n;
|
|
3506
|
-
}, set waveVal(
|
|
3507
|
-
n =
|
|
3507
|
+
}, set waveVal(C) {
|
|
3508
|
+
n = C;
|
|
3508
3509
|
}, get waveOffset() {
|
|
3509
3510
|
return l;
|
|
3510
|
-
}, set waveOffset(
|
|
3511
|
-
l =
|
|
3512
|
-
}, drawWave: f, computed:
|
|
3513
|
-
return Object.defineProperty(
|
|
3511
|
+
}, set waveOffset(C) {
|
|
3512
|
+
l = C;
|
|
3513
|
+
}, drawWave: f, computed: h, onBeforeUnmount: J, onMounted: q, ref: y };
|
|
3514
|
+
return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
|
|
3514
3515
|
}
|
|
3515
3516
|
};
|
|
3516
|
-
function Ho(t, c, o, e,
|
|
3517
|
-
return
|
|
3517
|
+
function Ho(t, c, o, e, s, r) {
|
|
3518
|
+
return R(), z("svg", {
|
|
3518
3519
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3519
3520
|
viewBox: "0 0 50 50"
|
|
3520
3521
|
}, [
|
|
@@ -3579,9 +3580,9 @@ const To = /* @__PURE__ */ fe(Ro, [["render", Ho], ["__file", "index.vue"]]), Bo
|
|
|
3579
3580
|
},
|
|
3580
3581
|
setup(t, { expose: c }) {
|
|
3581
3582
|
c();
|
|
3582
|
-
const { isObject: o, isValid: e, isNumber:
|
|
3583
|
+
const { isObject: o, isValid: e, isNumber: s } = Y, r = t, n = re(), l = ae(n), f = y(null), a = h(() => r.propValue || {}), C = h(() => r.element || {}), v = h(() => C.value.events || []), i = le(), p = oe(), V = ee(a, C, i, p);
|
|
3583
3584
|
Q(() => {
|
|
3584
|
-
f.value = te(
|
|
3585
|
+
f.value = te(v.value, r.designStatus, V), f.value?.beforeMount();
|
|
3585
3586
|
}), q(() => {
|
|
3586
3587
|
f.value?.mounted();
|
|
3587
3588
|
}), J(() => {
|
|
@@ -3589,25 +3590,25 @@ const To = /* @__PURE__ */ fe(Ro, [["render", Ho], ["__file", "index.vue"]]), Bo
|
|
|
3589
3590
|
}), $(() => {
|
|
3590
3591
|
f.value?.unmounted();
|
|
3591
3592
|
});
|
|
3592
|
-
const
|
|
3593
|
-
f.value?.handleClick(
|
|
3594
|
-
},
|
|
3595
|
-
f.value?.handleDblClick(
|
|
3596
|
-
},
|
|
3597
|
-
|
|
3598
|
-
e(
|
|
3593
|
+
const W = (u) => {
|
|
3594
|
+
f.value?.handleClick(u);
|
|
3595
|
+
}, j = (u) => {
|
|
3596
|
+
f.value?.handleDblClick(u);
|
|
3597
|
+
}, b = l[a.value.dataCK];
|
|
3598
|
+
B(() => b.value, (u) => {
|
|
3599
|
+
e(u) && M(u);
|
|
3599
3600
|
}, { immediate: !0 });
|
|
3600
|
-
function M(
|
|
3601
|
-
|
|
3601
|
+
function M(u) {
|
|
3602
|
+
L(u);
|
|
3602
3603
|
}
|
|
3603
|
-
function
|
|
3604
|
-
let
|
|
3605
|
-
o(
|
|
3604
|
+
function L(u) {
|
|
3605
|
+
let _ = null;
|
|
3606
|
+
o(u) ? _ = u[a.value.valueKey] || null : _ = u, s(_) && (a.value.value = Number(_));
|
|
3606
3607
|
}
|
|
3607
|
-
const
|
|
3608
|
-
let
|
|
3609
|
-
return
|
|
3610
|
-
}), k = { isObject: o, isValid: e, isNumber:
|
|
3608
|
+
const P = h(() => {
|
|
3609
|
+
let u = {};
|
|
3610
|
+
return u.cursor = _e(v.value), u;
|
|
3611
|
+
}), k = { isObject: o, isValid: e, isNumber: s, props: r, dataCache: n, smartData: l, eventHandler: f, propValue: a, element: C, events: v, router: i, route: p, compContext: V, handleClick: W, handleDblClick: j, bsData: b, dealBsData: M, parseBsData: L, customStyle: P, get useEventHandler() {
|
|
3611
3612
|
return te;
|
|
3612
3613
|
}, get useDataCacheStore() {
|
|
3613
3614
|
return re;
|
|
@@ -3615,22 +3616,22 @@ const To = /* @__PURE__ */ fe(Ro, [["render", Ho], ["__file", "index.vue"]]), Bo
|
|
|
3615
3616
|
return ae;
|
|
3616
3617
|
}, get CreateCompContext() {
|
|
3617
3618
|
return ee;
|
|
3618
|
-
}, ref:
|
|
3619
|
+
}, ref: y, computed: h, watch: B, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
|
|
3619
3620
|
return oe;
|
|
3620
3621
|
}, get useRouter() {
|
|
3621
3622
|
return le;
|
|
3622
3623
|
}, get CommonUtils() {
|
|
3623
3624
|
return Y;
|
|
3624
3625
|
}, LiquidFillBall: To, get getCursorByEvents() {
|
|
3625
|
-
return
|
|
3626
|
+
return _e;
|
|
3626
3627
|
} };
|
|
3627
3628
|
return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
|
|
3628
3629
|
}
|
|
3629
3630
|
});
|
|
3630
|
-
function Ao(t, c, o, e,
|
|
3631
|
-
return
|
|
3631
|
+
function Ao(t, c, o, e, s, r) {
|
|
3632
|
+
return R(), z("div", {
|
|
3632
3633
|
class: "svg-container",
|
|
3633
|
-
style:
|
|
3634
|
+
style: Ce(e.customStyle),
|
|
3634
3635
|
onClick: e.handleClick,
|
|
3635
3636
|
onDblclick: e.handleDblClick
|
|
3636
3637
|
}, [
|
|
@@ -3660,9 +3661,9 @@ const Fo = /* @__PURE__ */ fe(Bo, [["render", Ao], ["__scopeId", "data-v-1ba24f6
|
|
|
3660
3661
|
},
|
|
3661
3662
|
setup(t, { expose: c }) {
|
|
3662
3663
|
c();
|
|
3663
|
-
const { isNotEmpty: o } = Y, e = Fe(),
|
|
3664
|
+
const { isNotEmpty: o } = Y, e = Fe(), s = y(null), r = t, n = re(), l = ae(n), f = y(null), a = h(() => r.propValue || {}), C = h(() => r.element || {}), v = h(() => C.value.events || []), i = le(), p = oe(), V = ee(a, C, i, p);
|
|
3664
3665
|
Q(() => {
|
|
3665
|
-
f.value = te(
|
|
3666
|
+
f.value = te(v.value, r.designStatus, V), f.value?.beforeMount();
|
|
3666
3667
|
}), q(() => {
|
|
3667
3668
|
f.value?.mounted();
|
|
3668
3669
|
}), J(() => {
|
|
@@ -3670,71 +3671,71 @@ const Fo = /* @__PURE__ */ fe(Bo, [["render", Ao], ["__scopeId", "data-v-1ba24f6
|
|
|
3670
3671
|
}), $(() => {
|
|
3671
3672
|
f.value?.unmounted();
|
|
3672
3673
|
});
|
|
3673
|
-
const
|
|
3674
|
-
f.value?.setParam(
|
|
3675
|
-
},
|
|
3676
|
-
f.value?.handleDblClick(
|
|
3677
|
-
},
|
|
3678
|
-
|
|
3674
|
+
const W = (S) => {
|
|
3675
|
+
f.value?.setParam(S);
|
|
3676
|
+
}, j = (S) => {
|
|
3677
|
+
f.value?.handleDblClick(S);
|
|
3678
|
+
}, b = y("");
|
|
3679
|
+
B(b, (S) => {
|
|
3679
3680
|
we(() => {
|
|
3680
|
-
|
|
3681
|
+
s.value && S ? s.value.innerHTML = S : s.value && (s.value.innerHTML = "");
|
|
3681
3682
|
});
|
|
3682
3683
|
});
|
|
3683
|
-
const M =
|
|
3684
|
-
let
|
|
3685
|
-
return o(
|
|
3686
|
-
}),
|
|
3687
|
-
e.getFile(
|
|
3684
|
+
const M = h(() => {
|
|
3685
|
+
let S = {};
|
|
3686
|
+
return o(a.value.firstColor) && (S["--custom-first-color"] = a.value.firstColor), o(a.value.secondColor) && (S["--custom-second-color"] = a.value.secondColor), o(a.value.thirdColor) && (S["--custom-third-color"] = a.value.thirdColor), o(a.value.fourColor) && (S["--custom-four-color"] = a.value.fourColor), o(a.value.fiveColor) && (S["--custom-five-color"] = a.value.fiveColor), S.cursor = _e(v.value), S;
|
|
3687
|
+
}), L = (S) => {
|
|
3688
|
+
e.getFile(S, function(Z) {
|
|
3688
3689
|
if (Z && Z.status == 200) {
|
|
3689
|
-
let
|
|
3690
|
-
|
|
3690
|
+
let N = Z.data || "";
|
|
3691
|
+
b.value = P(N);
|
|
3691
3692
|
} else
|
|
3692
|
-
|
|
3693
|
+
b.value = "";
|
|
3693
3694
|
}, function(Z) {
|
|
3694
|
-
|
|
3695
|
+
b.value = "";
|
|
3695
3696
|
});
|
|
3696
3697
|
};
|
|
3697
|
-
|
|
3698
|
-
o(
|
|
3699
|
-
}, { immediate: !0 }),
|
|
3700
|
-
o(
|
|
3698
|
+
B(() => a.value.svgFile, (S) => {
|
|
3699
|
+
o(S) ? L(S) : b.value = "";
|
|
3700
|
+
}, { immediate: !0 }), B(() => a.value.aspectRatio, (S) => {
|
|
3701
|
+
o(a.value.svgFile) && L(a.value.svgFile);
|
|
3701
3702
|
}, { immediate: !0 });
|
|
3702
|
-
const
|
|
3703
|
-
const Z =
|
|
3704
|
-
return
|
|
3705
|
-
}, k =
|
|
3706
|
-
const
|
|
3707
|
-
return o(
|
|
3708
|
-
}),
|
|
3709
|
-
const
|
|
3710
|
-
return o(
|
|
3711
|
-
}),
|
|
3712
|
-
const
|
|
3713
|
-
return o(
|
|
3714
|
-
}),
|
|
3715
|
-
const
|
|
3716
|
-
return o(
|
|
3717
|
-
}),
|
|
3718
|
-
const
|
|
3719
|
-
return o(
|
|
3720
|
-
}),
|
|
3721
|
-
const
|
|
3722
|
-
return o(
|
|
3703
|
+
const P = (S) => {
|
|
3704
|
+
const Z = a.value.aspectRatio || "xMidYMid meet";
|
|
3705
|
+
return S.replace(/<svg([^>]*)width="[^"]*"/gi, "<svg$1").replace(/<svg([^>]*)height="[^"]*"/gi, "<svg$1").replace(/<svg/, `<svg preserveAspectRatio="${Z}"`);
|
|
3706
|
+
}, k = h(() => {
|
|
3707
|
+
const S = a.value.svgFileCK;
|
|
3708
|
+
return o(S) ? l[S] : {};
|
|
3709
|
+
}), u = h(() => {
|
|
3710
|
+
const S = a.value.firstColorCK;
|
|
3711
|
+
return o(S) ? l[S] : {};
|
|
3712
|
+
}), _ = h(() => {
|
|
3713
|
+
const S = a.value.secondColorCK;
|
|
3714
|
+
return o(S) ? l[S] : {};
|
|
3715
|
+
}), I = h(() => {
|
|
3716
|
+
const S = a.value.thirdColorCK;
|
|
3717
|
+
return o(S) ? l[S] : {};
|
|
3718
|
+
}), m = h(() => {
|
|
3719
|
+
const S = a.value.fourColorCK;
|
|
3720
|
+
return o(S) ? l[S] : {};
|
|
3721
|
+
}), F = h(() => {
|
|
3722
|
+
const S = a.value.fiveColorCK;
|
|
3723
|
+
return o(S) ? l[S] : {};
|
|
3723
3724
|
});
|
|
3724
|
-
|
|
3725
|
-
o(
|
|
3726
|
-
}),
|
|
3727
|
-
o(
|
|
3728
|
-
}),
|
|
3729
|
-
o(
|
|
3730
|
-
}),
|
|
3731
|
-
o(
|
|
3732
|
-
}),
|
|
3733
|
-
o(
|
|
3734
|
-
}),
|
|
3735
|
-
o(
|
|
3725
|
+
B(() => k, (S) => {
|
|
3726
|
+
o(a.value.svgFileCK) && (a.value.svgFile = S);
|
|
3727
|
+
}), B(() => u, (S) => {
|
|
3728
|
+
o(a.value.firstColorCK) && (a.value.firstColor = S);
|
|
3729
|
+
}), B(() => _, (S) => {
|
|
3730
|
+
o(a.value.secondColorCK) && (a.value.secondColor = S);
|
|
3731
|
+
}), B(() => I, (S) => {
|
|
3732
|
+
o(a.value.thirdColorCK) && (a.value.thirdColor = S);
|
|
3733
|
+
}), B(() => m, (S) => {
|
|
3734
|
+
o(a.value.fourColorCK) && (a.value.fourColor = S);
|
|
3735
|
+
}), B(() => F, (S) => {
|
|
3736
|
+
o(a.value.fiveColorCK) && (a.value.fiveColor = S);
|
|
3736
3737
|
});
|
|
3737
|
-
const H = { isNotEmpty: o, api: e, svgContainerRef:
|
|
3738
|
+
const H = { isNotEmpty: o, api: e, svgContainerRef: s, props: r, dataCache: n, smartData: l, eventHandler: f, propValue: a, element: C, events: v, router: i, route: p, compContext: V, handleClick: W, handleDblClick: j, svgContent: b, customStyle: M, loadSvgFile: L, removeSvgDimensions: P, fileData: k, firstColorData: u, secondColorData: _, thirdColorData: I, fourColorData: m, fiveColorData: F, get useEventHandler() {
|
|
3738
3739
|
return te;
|
|
3739
3740
|
}, get useDataCacheStore() {
|
|
3740
3741
|
return re;
|
|
@@ -3742,7 +3743,7 @@ const Fo = /* @__PURE__ */ fe(Bo, [["render", Ao], ["__scopeId", "data-v-1ba24f6
|
|
|
3742
3743
|
return ae;
|
|
3743
3744
|
}, get CreateCompContext() {
|
|
3744
3745
|
return ee;
|
|
3745
|
-
}, ref:
|
|
3746
|
+
}, ref: y, computed: h, watch: B, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, nextTick: we, get CommonUtils() {
|
|
3746
3747
|
return Y;
|
|
3747
3748
|
}, get useRoute() {
|
|
3748
3749
|
return oe;
|
|
@@ -3751,18 +3752,18 @@ const Fo = /* @__PURE__ */ fe(Bo, [["render", Ao], ["__scopeId", "data-v-1ba24f6
|
|
|
3751
3752
|
}, get useApi() {
|
|
3752
3753
|
return Fe;
|
|
3753
3754
|
}, get getCursorByEvents() {
|
|
3754
|
-
return
|
|
3755
|
+
return _e;
|
|
3755
3756
|
} };
|
|
3756
3757
|
return Object.defineProperty(H, "__isScriptSetup", { enumerable: !1, value: !0 }), H;
|
|
3757
3758
|
}
|
|
3758
3759
|
});
|
|
3759
|
-
function zo(t, c, o, e,
|
|
3760
|
-
return
|
|
3760
|
+
function zo(t, c, o, e, s, r) {
|
|
3761
|
+
return R(), z("div", {
|
|
3761
3762
|
ref: "svgContainerRef",
|
|
3762
3763
|
class: "svg-container",
|
|
3763
3764
|
onClick: e.handleClick,
|
|
3764
3765
|
onDblclick: e.handleDblClick,
|
|
3765
|
-
style:
|
|
3766
|
+
style: Ce(e.customStyle)
|
|
3766
3767
|
}, null, 36);
|
|
3767
3768
|
}
|
|
3768
3769
|
const No = /* @__PURE__ */ fe(Eo, [["render", zo], ["__scopeId", "data-v-8db7d328"], ["__file", "Component.vue"]]), Ko = /* @__PURE__ */ Object.assign({
|
|
@@ -3788,29 +3789,29 @@ const No = /* @__PURE__ */ fe(Eo, [["render", zo], ["__scopeId", "data-v-8db7d32
|
|
|
3788
3789
|
},
|
|
3789
3790
|
setup(t, { expose: c }) {
|
|
3790
3791
|
c();
|
|
3791
|
-
const { generateSecureUUID: o } = Y, e = t,
|
|
3792
|
+
const { generateSecureUUID: o } = Y, e = t, s = re(), r = ae(s), n = y(null), l = h(() => e.propValue || {}), f = h(() => e.element || {}), a = h(() => f.value.events || []), C = le(), v = oe(), i = ee(l, f, C, v);
|
|
3792
3793
|
Q(() => {
|
|
3793
|
-
n.value = te(
|
|
3794
|
+
n.value = te(a.value, e.designStatus, i), n.value?.beforeMount(), M.value = o();
|
|
3794
3795
|
}), q(() => {
|
|
3795
|
-
|
|
3796
|
+
L(), n.value?.mounted();
|
|
3796
3797
|
}), J(() => {
|
|
3797
3798
|
n.value?.beforeUnmount();
|
|
3798
3799
|
}), $(() => {
|
|
3799
3800
|
n.value?.unmounted();
|
|
3800
3801
|
});
|
|
3801
|
-
const { dynamicColor:
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
}),
|
|
3805
|
-
|
|
3802
|
+
const { dynamicColor: p } = be(l, r, s.rules, Y), V = h(() => l.value.hasGradient ? `url(#${M.value})` : W.value), W = h(() => p.lineColor ? p.lineColor : l.value.strokeColor ? l.value.strokeColor : "none"), j = y([]), b = y([]), M = y("");
|
|
3803
|
+
B(() => f.value.style.width, (u) => {
|
|
3804
|
+
L();
|
|
3805
|
+
}), B(() => f.value.style.height, (u) => {
|
|
3806
|
+
L();
|
|
3806
3807
|
});
|
|
3807
|
-
const
|
|
3808
|
-
const { width:
|
|
3809
|
-
|
|
3810
|
-
},
|
|
3811
|
-
const
|
|
3812
|
-
|
|
3813
|
-
}, k = { generateSecureUUID: o, props: e, dataCache:
|
|
3808
|
+
const L = () => {
|
|
3809
|
+
const { width: u, height: _ } = f.value.style;
|
|
3810
|
+
P(u, _);
|
|
3811
|
+
}, P = (u, _) => {
|
|
3812
|
+
const I = [0, 0.5], m = [1, 0.5];
|
|
3813
|
+
j.value = [u * I[0], _ * I[1]], b.value = [u * m[0], _ * m[1]];
|
|
3814
|
+
}, k = { generateSecureUUID: o, props: e, dataCache: s, smartData: r, eventHandler: n, propValue: l, element: f, events: a, router: C, route: v, compContext: i, dynamicColor: p, strokeAttr: V, showLineColor: W, LineL1P1: j, LineL1P2: b, gradientId: M, draw: L, drawChart: P, get useEventHandler() {
|
|
3814
3815
|
return te;
|
|
3815
3816
|
}, get useDataCacheStore() {
|
|
3816
3817
|
return re;
|
|
@@ -3818,31 +3819,31 @@ const No = /* @__PURE__ */ fe(Eo, [["render", zo], ["__scopeId", "data-v-8db7d32
|
|
|
3818
3819
|
return ae;
|
|
3819
3820
|
}, get CreateCompContext() {
|
|
3820
3821
|
return ee;
|
|
3821
|
-
}, ref:
|
|
3822
|
+
}, ref: y, computed: h, watch: B, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
|
|
3822
3823
|
return oe;
|
|
3823
3824
|
}, get useRouter() {
|
|
3824
3825
|
return le;
|
|
3825
3826
|
}, get CommonUtils() {
|
|
3826
3827
|
return Y;
|
|
3827
3828
|
}, get useDynamicColor() {
|
|
3828
|
-
return
|
|
3829
|
+
return be;
|
|
3829
3830
|
} };
|
|
3830
3831
|
return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
|
|
3831
3832
|
}
|
|
3832
3833
|
});
|
|
3833
|
-
function Uo(t, c, o, e,
|
|
3834
|
-
return
|
|
3835
|
-
(
|
|
3834
|
+
function Uo(t, c, o, e, s, r) {
|
|
3835
|
+
return R(), z("div", { class: "svg-container" }, [
|
|
3836
|
+
(R(), z("svg", {
|
|
3836
3837
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3837
3838
|
width: e.element.style.width,
|
|
3838
3839
|
height: e.element.style.height
|
|
3839
3840
|
}, [
|
|
3840
3841
|
ne(" 根据条件判断是否渲染渐变定义 "),
|
|
3841
3842
|
de(),
|
|
3842
|
-
e.propValue.hasGradient ? (
|
|
3843
|
+
e.propValue.hasGradient ? (R(), z("defs", { key: 0 }, [
|
|
3843
3844
|
ne(' 这里根据渐变类型动态渲染线性或径向渐变 stroke渐变需要添加 gradientUnits="userSpaceOnUse" '),
|
|
3844
3845
|
de(),
|
|
3845
|
-
e.propValue.gradientType === "linear" ? (
|
|
3846
|
+
e.propValue.gradientType === "linear" ? (R(), z("linearGradient", {
|
|
3846
3847
|
key: 0,
|
|
3847
3848
|
id: e.gradientId,
|
|
3848
3849
|
x1: e.propValue.gradientX1 + "%",
|
|
@@ -3851,18 +3852,18 @@ function Uo(t, c, o, e, i, r) {
|
|
|
3851
3852
|
y2: e.propValue.gradientY2 + "%",
|
|
3852
3853
|
gradientUnits: "userSpaceOnUse"
|
|
3853
3854
|
}, [
|
|
3854
|
-
(
|
|
3855
|
+
(R(), z("stop", {
|
|
3855
3856
|
key: 1,
|
|
3856
3857
|
offset: e.propValue.gradientStopsOffset + "%",
|
|
3857
3858
|
"stop-color": e.propValue.gradientStopsColor
|
|
3858
3859
|
}, null, 8, ["offset", "stop-color"])),
|
|
3859
3860
|
de(),
|
|
3860
|
-
(
|
|
3861
|
+
(R(), z("stop", {
|
|
3861
3862
|
key: 2,
|
|
3862
3863
|
offset: e.propValue.gradientStopsOffset2 + "%",
|
|
3863
3864
|
"stop-color": e.propValue.gradientStopsColor2
|
|
3864
3865
|
}, null, 8, ["offset", "stop-color"]))
|
|
3865
|
-
], 8, ["id", "x1", "x2", "y1", "y2"])) : (
|
|
3866
|
+
], 8, ["id", "x1", "x2", "y1", "y2"])) : (R(), z("radialGradient", {
|
|
3866
3867
|
key: 1,
|
|
3867
3868
|
id: e.gradientId,
|
|
3868
3869
|
cx: e.propValue.gradientCx + "%",
|
|
@@ -3872,13 +3873,13 @@ function Uo(t, c, o, e, i, r) {
|
|
|
3872
3873
|
fy: e.propValue.gradientFy + "%",
|
|
3873
3874
|
gradientUnits: "userSpaceOnUse"
|
|
3874
3875
|
}, [
|
|
3875
|
-
(
|
|
3876
|
+
(R(), z("stop", {
|
|
3876
3877
|
key: 1,
|
|
3877
3878
|
offset: e.propValue.gradientStopsOffset + "%",
|
|
3878
3879
|
"stop-color": e.propValue.gradientStopsColor
|
|
3879
3880
|
}, null, 8, ["offset", "stop-color"])),
|
|
3880
3881
|
de(),
|
|
3881
|
-
(
|
|
3882
|
+
(R(), z("stop", {
|
|
3882
3883
|
key: 2,
|
|
3883
3884
|
offset: e.propValue.gradientStopsOffset2 + "%",
|
|
3884
3885
|
"stop-color": e.propValue.gradientStopsColor2
|
|
@@ -3895,7 +3896,7 @@ function Uo(t, c, o, e, i, r) {
|
|
|
3895
3896
|
"stroke-width": e.propValue.strokeWidth,
|
|
3896
3897
|
"stroke-dasharray": e.propValue.strokeDasharray
|
|
3897
3898
|
}, [
|
|
3898
|
-
e.propValue.animate ? (
|
|
3899
|
+
e.propValue.animate ? (R(), z("animate", {
|
|
3899
3900
|
key: 0,
|
|
3900
3901
|
attributeName: "stroke-dashoffset",
|
|
3901
3902
|
from: e.propValue.animateFrom,
|
|
@@ -3974,136 +3975,136 @@ const Go = /* @__PURE__ */ fe(Ko, [["render", Uo], ["__scopeId", "data-v-0ad0dff
|
|
|
3974
3975
|
diagonalCells: { type: Array, default: () => [] }
|
|
3975
3976
|
},
|
|
3976
3977
|
setup(t, { expose: c }) {
|
|
3977
|
-
const { consolePrint: o, isArray: e, isEven:
|
|
3978
|
-
let
|
|
3979
|
-
const
|
|
3978
|
+
const { consolePrint: o, isArray: e, isEven: s, isNotEmpty: r } = Y, n = t, l = y(), f = y();
|
|
3979
|
+
let a = [], C = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
3980
|
+
const p = h(() => Array.from(
|
|
3980
3981
|
{ length: n.rows },
|
|
3981
|
-
(d,
|
|
3982
|
-
)),
|
|
3982
|
+
(d, g) => Number(n.rowHeights[g] || n.cellHeight)
|
|
3983
|
+
)), V = h(() => Array.from(
|
|
3983
3984
|
{ length: n.cols },
|
|
3984
|
-
(d,
|
|
3985
|
-
)),
|
|
3986
|
-
() =>
|
|
3987
|
-
),
|
|
3988
|
-
() =>
|
|
3989
|
-
),
|
|
3985
|
+
(d, g) => Number(n.colWidths[g] || n.cellWidth)
|
|
3986
|
+
)), W = h(
|
|
3987
|
+
() => V.value.reduce((d, g) => d + g, 0)
|
|
3988
|
+
), j = h(
|
|
3989
|
+
() => p.value.reduce((d, g) => d + g, 0)
|
|
3990
|
+
), b = () => {
|
|
3990
3991
|
if (!f.value) return;
|
|
3991
3992
|
o("debug", "绘制网格开始");
|
|
3992
3993
|
const d = l.value;
|
|
3993
|
-
f.value.clearRect(0, 0, d.width, d.height),
|
|
3994
|
-
}, M = (d,
|
|
3995
|
-
let
|
|
3996
|
-
|
|
3997
|
-
let
|
|
3998
|
-
|
|
3994
|
+
f.value.clearRect(0, 0, d.width, d.height), P(), M(d.width, d.height), k(), o("debug", "绘制网格完成");
|
|
3995
|
+
}, M = (d, g) => {
|
|
3996
|
+
let w = [], A = H();
|
|
3997
|
+
A.x1 = 0, A.y1 = 0, A.x2 = d, A.y2 = 0, L(A, 0), A.y1 += A.lineWidth / 2, A.y2 += A.lineWidth / 2, w.push(A);
|
|
3998
|
+
let E = H();
|
|
3999
|
+
E.x1 = d, E.y1 = 0, E.x2 = d, E.y2 = g, L(E, 3), E.x1 -= E.lineWidth / 2, E.x2 -= E.lineWidth / 2, w.push(E);
|
|
3999
4000
|
let X = H();
|
|
4000
|
-
X.x1 = d, X.y1 =
|
|
4001
|
-
let
|
|
4002
|
-
|
|
4003
|
-
},
|
|
4004
|
-
d.strokeStyle = n.borderStyle.color, d.lineWidth = n.borderStyle.width, d.dash = n.borderStyle.dash, n.borders && e(n.borders) && n.borders.length >
|
|
4005
|
-
},
|
|
4006
|
-
|
|
4001
|
+
X.x1 = d, X.y1 = g, X.x2 = 0, X.y2 = g, L(X, 1), X.y1 -= X.lineWidth / 2, X.y2 -= X.lineWidth / 2, w.push(X);
|
|
4002
|
+
let D = H();
|
|
4003
|
+
D.x1 = 0, D.y1 = g, D.x2 = 0, D.y2 = 0, L(D, 2), D.x1 += D.lineWidth / 2, D.x2 += D.lineWidth / 2, w.push(D), S(f.value, w, !1);
|
|
4004
|
+
}, L = (d, g) => {
|
|
4005
|
+
d.strokeStyle = n.borderStyle.color, d.lineWidth = n.borderStyle.width, d.dash = n.borderStyle.dash, n.borders && e(n.borders) && n.borders.length > g && (d.strokeStyle = n.borders[g].color, d.lineWidth = n.borders[g].width, d.dash = n.borders[g].dash);
|
|
4006
|
+
}, P = () => {
|
|
4007
|
+
a = [], u();
|
|
4007
4008
|
let d = [];
|
|
4008
|
-
for (let
|
|
4009
|
-
for (let
|
|
4010
|
-
|
|
4011
|
-
|
|
4009
|
+
for (let g = 0; g < n.rows; g++)
|
|
4010
|
+
for (let w = 0; w < n.cols; w++)
|
|
4011
|
+
_(d, g, w);
|
|
4012
|
+
S(f.value, d, !1);
|
|
4012
4013
|
}, k = () => {
|
|
4013
4014
|
if (e(n.diagonalCells) && n.diagonalCells.length > 0) {
|
|
4014
|
-
let d,
|
|
4015
|
+
let d, g = [], w, A, E;
|
|
4015
4016
|
for (let X = 0; X < n.diagonalCells.length; X++) {
|
|
4016
|
-
if (d = n.diagonalCells[X], !
|
|
4017
|
+
if (d = n.diagonalCells[X], !m(d.row, d.col) || (w = d.row + "_" + d.col, C.has(w)))
|
|
4017
4018
|
continue;
|
|
4018
|
-
let
|
|
4019
|
-
if (
|
|
4020
|
-
let
|
|
4021
|
-
if (
|
|
4022
|
-
let G =
|
|
4019
|
+
let D = H();
|
|
4020
|
+
if (A = d.row, E = d.col, d.reverse) {
|
|
4021
|
+
let se = a[A][E][0], ge = a[A][E][1], x = se + F(V.value[d.col]), O = a[A][E][1] + F(p.value[d.row]);
|
|
4022
|
+
if (v.has(w)) {
|
|
4023
|
+
let G = v.get(w), T = 0;
|
|
4023
4024
|
for (let ce = 0; ce < G.colSpan; ce++)
|
|
4024
|
-
|
|
4025
|
-
|
|
4025
|
+
T += F(V.value[d.col + ce]);
|
|
4026
|
+
x = se + T, T = 0;
|
|
4026
4027
|
for (let ce = 0; ce < G.rowSpan; ce++)
|
|
4027
|
-
|
|
4028
|
-
|
|
4028
|
+
T += F(p.value[d.row + ce]);
|
|
4029
|
+
O = ge + T;
|
|
4029
4030
|
}
|
|
4030
|
-
|
|
4031
|
+
D.x1 = se, D.y1 = O, D.x2 = x, D.y2 = ge, D.strokeStyle = d.color ?? n.diagonalStyle.color, D.lineWidth = d.width ?? n.diagonalStyle.width, D.dash = d.dash ?? n.diagonalStyle.dash, g.push(D);
|
|
4031
4032
|
} else {
|
|
4032
|
-
let
|
|
4033
|
-
if (
|
|
4034
|
-
let G =
|
|
4033
|
+
let se = a[A][E][0], ge = a[A][E][1], x = se + F(V.value[d.col]), O = ge + F(p.value[d.row]);
|
|
4034
|
+
if (v.has(w)) {
|
|
4035
|
+
let G = v.get(w), T = 0;
|
|
4035
4036
|
for (let ce = 0; ce < G.colSpan; ce++)
|
|
4036
|
-
|
|
4037
|
-
|
|
4037
|
+
T += F(V.value[d.col + ce]);
|
|
4038
|
+
x = se + T, T = 0;
|
|
4038
4039
|
for (let ce = 0; ce < G.rowSpan; ce++)
|
|
4039
|
-
|
|
4040
|
-
|
|
4040
|
+
T += F(p.value[d.row + ce]);
|
|
4041
|
+
O = ge + T;
|
|
4041
4042
|
}
|
|
4042
|
-
|
|
4043
|
+
D.x1 = se, D.y1 = ge, D.x2 = x, D.y2 = O, D.strokeStyle = d.color ?? n.diagonalStyle.color, D.lineWidth = d.width ?? n.diagonalStyle.width, D.dash = d.dash ?? n.diagonalStyle.dash, g.push(D);
|
|
4043
4044
|
}
|
|
4044
4045
|
}
|
|
4045
|
-
|
|
4046
|
+
S(f.value, g, !1);
|
|
4046
4047
|
}
|
|
4047
|
-
},
|
|
4048
|
-
let d = 0,
|
|
4049
|
-
for (let
|
|
4050
|
-
|
|
4048
|
+
}, u = () => {
|
|
4049
|
+
let d = 0, g = 0, w = 0, A = 0;
|
|
4050
|
+
for (let E = 0; E < n.rows; E++) {
|
|
4051
|
+
a[E] = [], E == 0 ? d = 0 : d = F(p.value[E - 1]), w += d, A = 0;
|
|
4051
4052
|
for (let X = 0; X < n.cols; X++)
|
|
4052
|
-
X == 0 ?
|
|
4053
|
+
X == 0 ? g = 0 : g = F(V.value[X - 1]), A += g, a[E][X] = [A, w];
|
|
4053
4054
|
}
|
|
4054
|
-
},
|
|
4055
|
-
let
|
|
4056
|
-
|
|
4057
|
-
},
|
|
4058
|
-
let
|
|
4059
|
-
if (
|
|
4060
|
-
let
|
|
4061
|
-
X =
|
|
4055
|
+
}, _ = (d, g, w) => {
|
|
4056
|
+
let A = a[g][w][0], E = a[g][w][1], X = g + "_" + w, D;
|
|
4057
|
+
g > 0 && (D = H(), D.x1 = A, D.y1 = E, D.x2 = A + F(V.value[w]), D.y2 = E, D.r = g, D.c = w, C.has(X) ? C.get(X).sameRow && (I(D, g, w, 1), s(D.lineWidth) || (D.y1 += 0.5, D.y2 += 0.5), d.push(D)) : (I(D, g, w, 1), s(D.lineWidth) || (D.y1 += 0.5, D.y2 += 0.5), d.push(D))), w > 0 && (D = H(), D.x1 = A, D.y1 = E, D.x2 = A, D.y2 = E + F(p.value[g]), D.r = g, D.c = w, C.has(X) ? C.get(X).sameCol && (I(D, g, w, 2), s(D.lineWidth) || (D.x1 += 0.5, D.x2 += 0.5), d.push(D)) : (I(D, g, w, 2), s(D.lineWidth) || (D.x1 += 0.5, D.x2 += 0.5), d.push(D)));
|
|
4058
|
+
}, I = (d, g, w, A) => {
|
|
4059
|
+
let E = g + "_" + w, X = g, D = w;
|
|
4060
|
+
if (C.has(E)) {
|
|
4061
|
+
let se = C.get(E);
|
|
4062
|
+
X = se.startRow, D = se.startCol;
|
|
4062
4063
|
}
|
|
4063
|
-
if (
|
|
4064
|
-
let
|
|
4065
|
-
d.strokeStyle =
|
|
4064
|
+
if (E = X + "_" + D, i.has(E)) {
|
|
4065
|
+
let se = i.get(E);
|
|
4066
|
+
d.strokeStyle = se.color, d.lineWidth = se.width, d.dash = se.dash;
|
|
4066
4067
|
} else
|
|
4067
|
-
|
|
4068
|
+
A == 1 ? e(n.rowLine) && n.rowLine.length > g ? (d.strokeStyle = n.rowLine[g].color, d.lineWidth = n.rowLine[g].width, d.dash = n.rowLine[g].dash) : (d.strokeStyle = n.rowStyle.color, d.lineWidth = n.rowStyle.width, d.dash = n.rowStyle.dash) : e(n.colLine) && n.colLine.length > w ? (d.strokeStyle = n.colLine[w].color, d.lineWidth = n.colLine[w].width, d.dash = n.colLine[w].dash) : (d.strokeStyle = n.colStyle.color, d.lineWidth = n.colStyle.width, d.dash = n.colStyle.dash);
|
|
4068
4069
|
};
|
|
4069
4070
|
q(() => {
|
|
4070
|
-
f.value = l.value.getContext("2d"),
|
|
4071
|
-
}),
|
|
4072
|
-
if (d && (
|
|
4073
|
-
let
|
|
4074
|
-
for (let
|
|
4075
|
-
if (
|
|
4076
|
-
|
|
4077
|
-
let
|
|
4078
|
-
|
|
4079
|
-
for (let
|
|
4080
|
-
for (let
|
|
4081
|
-
|
|
4071
|
+
f.value = l.value.getContext("2d"), b();
|
|
4072
|
+
}), B(() => n.mergedCells, (d) => {
|
|
4073
|
+
if (d && (v.clear(), C.clear(), n.mergedCells.length > 0)) {
|
|
4074
|
+
let g, w;
|
|
4075
|
+
for (let A = 0; A < n.mergedCells.length; A++)
|
|
4076
|
+
if (g = n.mergedCells[A], !(g.row < 0 || v.col < 0) && (g.rowSpan >= 2 || g.colSpan >= 2)) {
|
|
4077
|
+
g.row + g.rowSpan > n.rows && (g.rowSpan = n.rows - g.row), g.col + g.colSpan > n.cols && (g.colSpan = n.cols - g.col);
|
|
4078
|
+
let E = 0, X = 0;
|
|
4079
|
+
v.set(g.row + "_" + g.col, { ...g });
|
|
4080
|
+
for (let D = 0; D < g.rowSpan; D++)
|
|
4081
|
+
for (let se = 0; se < g.colSpan; se++)
|
|
4082
|
+
D == 0 && se == 0 || (E = g.row + D, X = g.col + se, w = E + "_" + X, E == g.row ? C.set(w, {
|
|
4082
4083
|
sameRow: !0,
|
|
4083
4084
|
sameCol: !1,
|
|
4084
|
-
startRow:
|
|
4085
|
-
startCol:
|
|
4086
|
-
}) : X ==
|
|
4085
|
+
startRow: g.row,
|
|
4086
|
+
startCol: g.col
|
|
4087
|
+
}) : X == g.col ? C.set(w, {
|
|
4087
4088
|
sameRow: !1,
|
|
4088
4089
|
sameCol: !0,
|
|
4089
|
-
startRow:
|
|
4090
|
-
startCol:
|
|
4091
|
-
}) :
|
|
4090
|
+
startRow: g.row,
|
|
4091
|
+
startCol: g.col
|
|
4092
|
+
}) : C.set(w, {
|
|
4092
4093
|
sameRow: !1,
|
|
4093
4094
|
sameCol: !1,
|
|
4094
|
-
startRow:
|
|
4095
|
-
startCol:
|
|
4095
|
+
startRow: g.row,
|
|
4096
|
+
startCol: g.col
|
|
4096
4097
|
}));
|
|
4097
4098
|
}
|
|
4098
4099
|
}
|
|
4099
|
-
}, { immediate: !0 }),
|
|
4100
|
-
if (d && (
|
|
4101
|
-
let
|
|
4102
|
-
for (let
|
|
4103
|
-
|
|
4100
|
+
}, { immediate: !0 }), B(() => n.cellStyle, (d) => {
|
|
4101
|
+
if (d && (i.clear(), n.cellStyle.length > 0)) {
|
|
4102
|
+
let g;
|
|
4103
|
+
for (let w = 0; w < n.cellStyle.length; w++)
|
|
4104
|
+
g = n.cellStyle[w], m(g.row, g.col) && i.set(g.row + "_" + g.col, { ...g });
|
|
4104
4105
|
}
|
|
4105
4106
|
}, { immediate: !0 });
|
|
4106
|
-
const
|
|
4107
|
+
const m = (d, g) => !(d < 0 || g < 0 || d > n.rows || g > n.cols), F = (d) => parseFloat(d) ?? 0, H = () => ({
|
|
4107
4108
|
x1: 0,
|
|
4108
4109
|
y1: 0,
|
|
4109
4110
|
x2: 0,
|
|
@@ -4111,56 +4112,56 @@ const Go = /* @__PURE__ */ fe(Ko, [["render", Uo], ["__scopeId", "data-v-0ad0dff
|
|
|
4111
4112
|
strokeStyle: "#F8F8FF",
|
|
4112
4113
|
lineWidth: 1,
|
|
4113
4114
|
dash: []
|
|
4114
|
-
}),
|
|
4115
|
-
if (e(
|
|
4116
|
-
let
|
|
4117
|
-
|
|
4118
|
-
if (Number(
|
|
4119
|
-
if (
|
|
4120
|
-
if (e(
|
|
4121
|
-
d.setLineDash(
|
|
4115
|
+
}), S = (d, g, w) => {
|
|
4116
|
+
if (e(g) && g.length > 0) {
|
|
4117
|
+
let A = !!w;
|
|
4118
|
+
A && d.beginPath(), g.forEach((E, X) => {
|
|
4119
|
+
if (Number(E.lineWidth) > 0) {
|
|
4120
|
+
if (A || d.beginPath(), d.strokeStyle = E.strokeStyle, d.lineWidth = E.lineWidth, r(E.dash))
|
|
4121
|
+
if (e(E.dash))
|
|
4122
|
+
d.setLineDash(E.dash);
|
|
4122
4123
|
else {
|
|
4123
|
-
let
|
|
4124
|
-
d.setLineDash(
|
|
4124
|
+
let D = E.dash.split(",");
|
|
4125
|
+
d.setLineDash(D);
|
|
4125
4126
|
}
|
|
4126
4127
|
else
|
|
4127
4128
|
d.setLineDash([]);
|
|
4128
|
-
d.moveTo(
|
|
4129
|
+
d.moveTo(E.x1, E.y1), d.lineTo(E.x2, E.y2), d.closePath(), A || d.stroke();
|
|
4129
4130
|
}
|
|
4130
|
-
}),
|
|
4131
|
+
}), A && d.stroke(), d.restore();
|
|
4131
4132
|
}
|
|
4132
4133
|
}, Z = () => {
|
|
4133
4134
|
we(() => {
|
|
4134
|
-
|
|
4135
|
+
b();
|
|
4135
4136
|
});
|
|
4136
4137
|
};
|
|
4137
4138
|
c({
|
|
4138
4139
|
redraw: Z
|
|
4139
4140
|
});
|
|
4140
|
-
const
|
|
4141
|
-
return
|
|
4141
|
+
const N = { consolePrint: o, isArray: e, isEven: s, isNotEmpty: r, props: n, canvasRef: l, ctx: f, get cellPosition() {
|
|
4142
|
+
return a;
|
|
4142
4143
|
}, set cellPosition(d) {
|
|
4143
|
-
|
|
4144
|
+
a = d;
|
|
4144
4145
|
}, get mergedCellInfo() {
|
|
4145
|
-
return
|
|
4146
|
+
return C;
|
|
4146
4147
|
}, set mergedCellInfo(d) {
|
|
4147
|
-
|
|
4148
|
+
C = d;
|
|
4148
4149
|
}, get mergeCellInfo() {
|
|
4149
|
-
return
|
|
4150
|
+
return v;
|
|
4150
4151
|
}, set mergeCellInfo(d) {
|
|
4151
|
-
|
|
4152
|
+
v = d;
|
|
4152
4153
|
}, get cellStyleMap() {
|
|
4153
|
-
return
|
|
4154
|
+
return i;
|
|
4154
4155
|
}, set cellStyleMap(d) {
|
|
4155
|
-
|
|
4156
|
-
}, computedRowHeights:
|
|
4156
|
+
i = d;
|
|
4157
|
+
}, computedRowHeights: p, computedColWidths: V, canvasWidth: W, canvasHeight: j, drawGrid: b, _drawBorder: M, _setBorderStyle: L, _drawCellArea: P, _drawDiagonal: k, _calcCellPosition: u, drawCell: _, _setCellStyle: I, _checkValidCell: m, _getVal: F, _getDefaultLineObj: H, drawLine: S, redraw: Z, computed: h, onMounted: q, ref: y, watch: B, nextTick: we, get CommonUtils() {
|
|
4157
4158
|
return Y;
|
|
4158
4159
|
} };
|
|
4159
|
-
return Object.defineProperty(
|
|
4160
|
+
return Object.defineProperty(N, "__isScriptSetup", { enumerable: !1, value: !0 }), N;
|
|
4160
4161
|
}
|
|
4161
4162
|
};
|
|
4162
|
-
function Yo(t, c, o, e,
|
|
4163
|
-
return
|
|
4163
|
+
function Yo(t, c, o, e, s, r) {
|
|
4164
|
+
return R(), z("div", { class: "canvas-grid-container" }, [
|
|
4164
4165
|
ue("canvas", {
|
|
4165
4166
|
ref: "canvasRef",
|
|
4166
4167
|
width: e.canvasWidth,
|
|
@@ -4190,9 +4191,9 @@ const qo = /* @__PURE__ */ fe(Xo, [["render", Yo], ["__scopeId", "data-v-6480756
|
|
|
4190
4191
|
}
|
|
4191
4192
|
},
|
|
4192
4193
|
setup(t, { expose: c }) {
|
|
4193
|
-
const o = t, e = re(),
|
|
4194
|
+
const o = t, e = re(), s = ae(e), r = y(null), n = h(() => o.propValue || {}), l = h(() => o.element || {}), f = h(() => l.value.events || []), a = le(), C = oe(), v = ee(n, l, a, C);
|
|
4194
4195
|
Q(() => {
|
|
4195
|
-
r.value = te(f.value, o.designStatus,
|
|
4196
|
+
r.value = te(f.value, o.designStatus, v), r.value?.beforeMount();
|
|
4196
4197
|
}), q(() => {
|
|
4197
4198
|
r.value?.mounted();
|
|
4198
4199
|
}), J(() => {
|
|
@@ -4200,49 +4201,49 @@ const qo = /* @__PURE__ */ fe(Xo, [["render", Yo], ["__scopeId", "data-v-6480756
|
|
|
4200
4201
|
}), $(() => {
|
|
4201
4202
|
r.value?.unmounted();
|
|
4202
4203
|
});
|
|
4203
|
-
const
|
|
4204
|
-
|
|
4205
|
-
|
|
4204
|
+
const i = y(null);
|
|
4205
|
+
B([() => l.value.style.width, () => l.value.style.height], ([M, L]) => {
|
|
4206
|
+
i.value && (n.value.autoResize ? j() : i.value.redraw());
|
|
4206
4207
|
});
|
|
4207
|
-
const
|
|
4208
|
+
const p = y([]), V = y([]), W = () => {
|
|
4208
4209
|
if (!n.value.autoResize)
|
|
4209
4210
|
return;
|
|
4210
4211
|
let M = Array.from(
|
|
4211
4212
|
{ length: n.value.rows },
|
|
4212
|
-
(
|
|
4213
|
+
(P, k) => n.value?.rowHeights?.length > k ? Number(n.value?.rowHeights[k] || n.value.cellHeight) ?? 0 : Number(n.value.cellHeight) ?? 0
|
|
4213
4214
|
);
|
|
4214
4215
|
if (l.value.style.height > 0) {
|
|
4215
|
-
let
|
|
4216
|
-
|
|
4217
|
-
let k = [],
|
|
4218
|
-
for (let
|
|
4219
|
-
k[
|
|
4220
|
-
let
|
|
4221
|
-
for (let
|
|
4222
|
-
k[
|
|
4223
|
-
|
|
4216
|
+
let P = 0;
|
|
4217
|
+
P = M.reduce((m, F) => m + F, 0);
|
|
4218
|
+
let k = [], u = 0;
|
|
4219
|
+
for (let m = 0; m < n.value.rows; m++)
|
|
4220
|
+
k[m] = Math.floor(M[m] / P * l.value.style.height, 0), u += k[m];
|
|
4221
|
+
let _ = l.value.style.height - u, I = Math.min(_, n.value.rows);
|
|
4222
|
+
for (let m = I - 1; m >= 0; m--)
|
|
4223
|
+
k[m] += 1;
|
|
4224
|
+
p.value = [...k];
|
|
4224
4225
|
}
|
|
4225
|
-
let
|
|
4226
|
+
let L = Array.from(
|
|
4226
4227
|
{ length: n.value.cols },
|
|
4227
|
-
(
|
|
4228
|
+
(P, k) => n.value?.colWidths?.length > k ? Number(n.value?.colWidths[k] || n.value.cellWidth) ?? 0 : Number(n.value.cellWidth) ?? 0
|
|
4228
4229
|
);
|
|
4229
4230
|
if (l.value.style.width > 0) {
|
|
4230
|
-
let
|
|
4231
|
-
|
|
4232
|
-
let k = [],
|
|
4233
|
-
for (let
|
|
4234
|
-
k[
|
|
4235
|
-
let
|
|
4236
|
-
for (let
|
|
4237
|
-
k[
|
|
4238
|
-
|
|
4231
|
+
let P = 0;
|
|
4232
|
+
P = L.reduce((m, F) => m + F, 0);
|
|
4233
|
+
let k = [], u = 0;
|
|
4234
|
+
for (let m = 0; m < n.value.cols; m++)
|
|
4235
|
+
k[m] = Math.floor(L[m] / P * l.value.style.width, 0), u += k[m];
|
|
4236
|
+
let _ = l.value.style.width - u, I = Math.min(_, n.value.cols);
|
|
4237
|
+
for (let m = I - 1; m >= 0; m--)
|
|
4238
|
+
k[m] += 1;
|
|
4239
|
+
V.value = [...k];
|
|
4239
4240
|
}
|
|
4240
|
-
|
|
4241
|
-
},
|
|
4242
|
-
|
|
4243
|
-
M &&
|
|
4241
|
+
i.value?.redraw();
|
|
4242
|
+
}, j = rt(W, 500);
|
|
4243
|
+
B(() => n.value.autoResize, (M) => {
|
|
4244
|
+
M && j();
|
|
4244
4245
|
}, { immediate: !0 }), c({});
|
|
4245
|
-
const
|
|
4246
|
+
const b = { props: o, dataCache: e, smartData: s, eventHandler: r, propValue: n, element: l, events: f, router: a, route: C, compContext: v, baseGridTableRef: i, rowHeights: p, colWidths: V, _autoCalcWidthAndHeight: W, debouncedAutoCalcWidthAndHeight: j, get useEventHandler() {
|
|
4246
4247
|
return te;
|
|
4247
4248
|
}, get useDataCacheStore() {
|
|
4248
4249
|
return re;
|
|
@@ -4250,18 +4251,18 @@ const qo = /* @__PURE__ */ fe(Xo, [["render", Yo], ["__scopeId", "data-v-6480756
|
|
|
4250
4251
|
return ae;
|
|
4251
4252
|
}, get CreateCompContext() {
|
|
4252
4253
|
return ee;
|
|
4253
|
-
}, ref:
|
|
4254
|
+
}, ref: y, computed: h, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, watch: B, reactive: Ze, get useRoute() {
|
|
4254
4255
|
return oe;
|
|
4255
4256
|
}, get useRouter() {
|
|
4256
4257
|
return le;
|
|
4257
4258
|
}, BaseGridTable: qo, get debounce() {
|
|
4258
4259
|
return rt;
|
|
4259
4260
|
} };
|
|
4260
|
-
return Object.defineProperty(
|
|
4261
|
+
return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
|
|
4261
4262
|
}
|
|
4262
4263
|
});
|
|
4263
|
-
function Jo(t, c, o, e,
|
|
4264
|
-
return
|
|
4264
|
+
function Jo(t, c, o, e, s, r) {
|
|
4265
|
+
return R(), z("div", { class: "grid-container" }, [
|
|
4265
4266
|
Oe(e.BaseGridTable, {
|
|
4266
4267
|
ref: "baseGridTableRef",
|
|
4267
4268
|
rows: e.propValue.rows,
|
|
@@ -4305,9 +4306,9 @@ const Qo = /* @__PURE__ */ fe(Zo, [["render", Jo], ["__scopeId", "data-v-dced3ee
|
|
|
4305
4306
|
}
|
|
4306
4307
|
},
|
|
4307
4308
|
setup(t, { expose: c }) {
|
|
4308
|
-
const { isNotEmpty: o } = Y, e = t,
|
|
4309
|
+
const { isNotEmpty: o } = Y, e = t, s = re(), r = ae(s), n = y(null), l = h(() => e.propValue || {}), f = h(() => e.element || {}), a = h(() => f.value.events || []), C = le(), v = oe(), i = ee(l, f, C, v);
|
|
4309
4310
|
Q(() => {
|
|
4310
|
-
n.value = te(
|
|
4311
|
+
n.value = te(a.value, e.designStatus, i), n.value?.beforeMount();
|
|
4311
4312
|
}), q(() => {
|
|
4312
4313
|
n.value?.mounted();
|
|
4313
4314
|
}), J(() => {
|
|
@@ -4315,25 +4316,25 @@ const Qo = /* @__PURE__ */ fe(Zo, [["render", Jo], ["__scopeId", "data-v-dced3ee
|
|
|
4315
4316
|
}), $(() => {
|
|
4316
4317
|
n.value?.unmounted();
|
|
4317
4318
|
});
|
|
4318
|
-
const
|
|
4319
|
+
const p = (M) => {
|
|
4319
4320
|
n.value?.handleClick(M);
|
|
4320
|
-
},
|
|
4321
|
+
}, V = (M) => {
|
|
4321
4322
|
n.value?.handleDblClick(M);
|
|
4322
|
-
},
|
|
4323
|
+
}, W = h(() => o(l.value.text) ? l.value.text.replace(/\n/g, "<br/>") : ""), j = h(() => {
|
|
4323
4324
|
let M = {};
|
|
4324
4325
|
if (l.value.fontColor && (M.color = l.value.fontColor), l.value.fontSize && (M["font-size"] = l.value.fontSize + "px"), l.value.fontFamily && (M["font-family"] = l.value.fontFamily), l.value.fontWeight && (M["font-weight"] = l.value.fontWeight), l.value.fontStyle && (M["font-style"] = l.value.fontStyle), l.value.textAlign && (M["text-align"] = l.value.textAlign), l.value.extraStyles) {
|
|
4325
|
-
let
|
|
4326
|
-
for (let
|
|
4327
|
-
M[
|
|
4326
|
+
let L = Object.keys(l.value.extraStyles);
|
|
4327
|
+
for (let P = 0; P < L.length; P++)
|
|
4328
|
+
M[L[P]] = l.value.extraStyles[L[P]];
|
|
4328
4329
|
}
|
|
4329
4330
|
return M;
|
|
4330
4331
|
});
|
|
4331
4332
|
c({});
|
|
4332
|
-
const
|
|
4333
|
+
const b = { isNotEmpty: o, props: e, dataCache: s, smartData: r, eventHandler: n, propValue: l, element: f, events: a, router: C, route: v, compContext: i, handleClick: p, handleDblClick: V, formattedText: W, customStyle: j, get useDataCacheStore() {
|
|
4333
4334
|
return re;
|
|
4334
4335
|
}, get createSmartAccessor() {
|
|
4335
4336
|
return ae;
|
|
4336
|
-
}, ref:
|
|
4337
|
+
}, ref: y, computed: h, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useEventHandler() {
|
|
4337
4338
|
return te;
|
|
4338
4339
|
}, get useRoute() {
|
|
4339
4340
|
return oe;
|
|
@@ -4344,12 +4345,12 @@ const Qo = /* @__PURE__ */ fe(Zo, [["render", Jo], ["__scopeId", "data-v-dced3ee
|
|
|
4344
4345
|
}, get CommonUtils() {
|
|
4345
4346
|
return Y;
|
|
4346
4347
|
} };
|
|
4347
|
-
return Object.defineProperty(
|
|
4348
|
+
return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
|
|
4348
4349
|
}
|
|
4349
4350
|
});
|
|
4350
|
-
function en(t, c, o, e,
|
|
4351
|
-
return
|
|
4352
|
-
style:
|
|
4351
|
+
function en(t, c, o, e, s, r) {
|
|
4352
|
+
return R(), z("p", {
|
|
4353
|
+
style: Ce(e.customStyle),
|
|
4353
4354
|
innerHTML: e.formattedText,
|
|
4354
4355
|
onClick: e.handleClick,
|
|
4355
4356
|
onDblclick: e.handleDblClick
|
|
@@ -4377,21 +4378,21 @@ const tn = /* @__PURE__ */ fe($o, [["render", en], ["__file", "Component.vue"]])
|
|
|
4377
4378
|
}
|
|
4378
4379
|
},
|
|
4379
4380
|
setup(t, { expose: c }) {
|
|
4380
|
-
const { getJsonObject: o } = Y, e = t,
|
|
4381
|
+
const { getJsonObject: o } = Y, e = t, s = h(() => e.propValue || {}), r = h(() => e.element || {}), n = h(() => {
|
|
4381
4382
|
let f = {};
|
|
4382
|
-
return f = o(
|
|
4383
|
+
return f = o(s.value.divStyles, {}), f;
|
|
4383
4384
|
});
|
|
4384
4385
|
c({});
|
|
4385
|
-
const l = { getJsonObject: o, props: e, propValue:
|
|
4386
|
+
const l = { getJsonObject: o, props: e, propValue: s, element: r, dividerStyle: n, ref: y, computed: h, get CommonUtils() {
|
|
4386
4387
|
return Y;
|
|
4387
4388
|
} };
|
|
4388
4389
|
return Object.defineProperty(l, "__isScriptSetup", { enumerable: !1, value: !0 }), l;
|
|
4389
4390
|
}
|
|
4390
4391
|
});
|
|
4391
|
-
function on(t, c, o, e,
|
|
4392
|
-
return
|
|
4392
|
+
function on(t, c, o, e, s, r) {
|
|
4393
|
+
return R(), z("div", {
|
|
4393
4394
|
class: "divider",
|
|
4394
|
-
style:
|
|
4395
|
+
style: Ce(e.dividerStyle)
|
|
4395
4396
|
}, null, 4);
|
|
4396
4397
|
}
|
|
4397
4398
|
const nn = /* @__PURE__ */ fe(ln, [["render", on], ["__scopeId", "data-v-490ca7b4"], ["__file", "Component.vue"]]), rn = /* @__PURE__ */ Object.assign({
|
|
@@ -4416,17 +4417,17 @@ const nn = /* @__PURE__ */ fe(ln, [["render", on], ["__scopeId", "data-v-490ca7b
|
|
|
4416
4417
|
}
|
|
4417
4418
|
},
|
|
4418
4419
|
setup(t, { expose: c }) {
|
|
4419
|
-
const { getJsonObject: o } = Y, e = t,
|
|
4420
|
+
const { getJsonObject: o } = Y, e = t, s = y(!1), r = y(!1), n = h(() => e.propValue || {}), l = h(() => e.element || {}), f = h(() => l.value.events || []), a = y(null), C = le(), v = oe(), i = ee(n, l, C, v);
|
|
4420
4421
|
Q(() => {
|
|
4421
|
-
|
|
4422
|
+
a.value = te(f.value, e.designStatus, i), a.value?.beforeMount();
|
|
4422
4423
|
}), q(() => {
|
|
4423
|
-
|
|
4424
|
+
a.value?.mounted();
|
|
4424
4425
|
}), J(() => {
|
|
4425
|
-
|
|
4426
|
+
a.value?.beforeUnmount();
|
|
4426
4427
|
}), $(() => {
|
|
4427
|
-
|
|
4428
|
+
a.value?.unmounted();
|
|
4428
4429
|
});
|
|
4429
|
-
const
|
|
4430
|
+
const p = h(() => n.value.text || "按钮"), V = h(() => e.designStatus ? !1 : n.value.disabled), W = h(() => o(n.value.styles, {
|
|
4430
4431
|
display: "flex",
|
|
4431
4432
|
// 使用 flex
|
|
4432
4433
|
alignItems: "center",
|
|
@@ -4444,11 +4445,11 @@ const nn = /* @__PURE__ */ fe(ln, [["render", on], ["__scopeId", "data-v-490ca7b
|
|
|
4444
4445
|
// 确保高度100%
|
|
4445
4446
|
textAlign: "center"
|
|
4446
4447
|
// 文本居中
|
|
4447
|
-
})),
|
|
4448
|
+
})), j = h(() => o(n.value.hoverStyles, {
|
|
4448
4449
|
backgroundColor: "rgba(47, 109, 255, 0.1)",
|
|
4449
4450
|
transform: "translateY(-1px)",
|
|
4450
4451
|
boxShadow: "0 2px 8px rgba(47, 109, 255, 0.2)"
|
|
4451
|
-
})),
|
|
4452
|
+
})), b = h(() => o(n.value.textStyles, {
|
|
4452
4453
|
color: "#2F6DFF",
|
|
4453
4454
|
fontSize: "14px",
|
|
4454
4455
|
fontWeight: "500",
|
|
@@ -4463,28 +4464,28 @@ const nn = /* @__PURE__ */ fe(ln, [["render", on], ["__scopeId", "data-v-490ca7b
|
|
|
4463
4464
|
// 文本也设置手形,确保鼠标在文本上也是手形
|
|
4464
4465
|
pointerEvents: "none"
|
|
4465
4466
|
// 防止文本事件干扰div的事件
|
|
4466
|
-
})), M =
|
|
4467
|
+
})), M = h(() => o(n.value.hoverTextStyles, {
|
|
4467
4468
|
color: "#1a56db"
|
|
4468
|
-
})),
|
|
4469
|
+
})), L = h(() => {
|
|
4469
4470
|
if (e.designStatus)
|
|
4470
|
-
return { ...
|
|
4471
|
-
const
|
|
4472
|
-
return
|
|
4471
|
+
return { ...W.value, cursor: "default" };
|
|
4472
|
+
const m = { ...W.value };
|
|
4473
|
+
return V.value ? (Object.assign(m, {
|
|
4473
4474
|
opacity: "0.6",
|
|
4474
4475
|
cursor: "not-allowed"
|
|
4475
|
-
}),
|
|
4476
|
-
}),
|
|
4477
|
-
const
|
|
4478
|
-
return
|
|
4476
|
+
}), m) : (s.value && j.value && Object.assign(m, j.value), m);
|
|
4477
|
+
}), P = h(() => {
|
|
4478
|
+
const m = { ...b.value };
|
|
4479
|
+
return V.value ? (m.opacity = "0.6", m) : (s.value && M.value && Object.assign(m, M.value), m);
|
|
4479
4480
|
}), k = () => {
|
|
4480
|
-
!e.designStatus && !
|
|
4481
|
-
},
|
|
4482
|
-
e.designStatus || (
|
|
4483
|
-
},
|
|
4484
|
-
!e.designStatus && !
|
|
4481
|
+
!e.designStatus && !V.value && (s.value = !0);
|
|
4482
|
+
}, u = () => {
|
|
4483
|
+
e.designStatus || (s.value = !1, r.value = !1);
|
|
4484
|
+
}, _ = (m) => {
|
|
4485
|
+
!e.designStatus && !V.value && a.value?.handleClick(m);
|
|
4485
4486
|
};
|
|
4486
4487
|
c({});
|
|
4487
|
-
const
|
|
4488
|
+
const I = { getJsonObject: o, props: e, isHover: s, isActive: r, propValue: n, element: l, events: f, eventHandler: a, router: C, route: v, compContext: i, buttonText: p, isDisabled: V, baseStyle: W, hoverStyle: j, baseTextStyle: b, hoverTextStyle: M, currentStyle: L, textStyle: P, handleMouseEnter: k, handleMouseLeave: u, handleClick: _, ref: y, computed: h, onBeforeMount: Q, onMounted: q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
|
|
4488
4489
|
return oe;
|
|
4489
4490
|
}, get useRouter() {
|
|
4490
4491
|
return le;
|
|
@@ -4495,17 +4496,17 @@ const nn = /* @__PURE__ */ fe(ln, [["render", on], ["__scopeId", "data-v-490ca7b
|
|
|
4495
4496
|
}, get useEventHandler() {
|
|
4496
4497
|
return te;
|
|
4497
4498
|
} };
|
|
4498
|
-
return Object.defineProperty(
|
|
4499
|
+
return Object.defineProperty(I, "__isScriptSetup", { enumerable: !1, value: !0 }), I;
|
|
4499
4500
|
}
|
|
4500
4501
|
});
|
|
4501
|
-
function an(t, c, o, e,
|
|
4502
|
-
return
|
|
4502
|
+
function an(t, c, o, e, s, r) {
|
|
4503
|
+
return R(), z("div", { class: "div-container" }, [
|
|
4503
4504
|
ue("div", {
|
|
4504
4505
|
class: Re(["division-button", {
|
|
4505
4506
|
"division-hover": e.isHover,
|
|
4506
4507
|
"division-disabled": e.isDisabled
|
|
4507
4508
|
}]),
|
|
4508
|
-
style:
|
|
4509
|
+
style: Ce(e.currentStyle),
|
|
4509
4510
|
onMouseenter: e.handleMouseEnter,
|
|
4510
4511
|
onMouseleave: e.handleMouseLeave,
|
|
4511
4512
|
onClick: e.handleClick
|
|
@@ -4517,7 +4518,7 @@ function an(t, c, o, e, i, r) {
|
|
|
4517
4518
|
de(),
|
|
4518
4519
|
ue("span", {
|
|
4519
4520
|
class: "division-text",
|
|
4520
|
-
style:
|
|
4521
|
+
style: Ce(e.textStyle)
|
|
4521
4522
|
}, De(e.buttonText), 5)
|
|
4522
4523
|
])
|
|
4523
4524
|
], 38)
|
|
@@ -4546,68 +4547,92 @@ const un = /* @__PURE__ */ fe(rn, [["render", an], ["__scopeId", "data-v-b5a7fa8
|
|
|
4546
4547
|
},
|
|
4547
4548
|
setup(t, { expose: c }) {
|
|
4548
4549
|
c();
|
|
4549
|
-
const { isNotEmpty: o, isObject: e, hasOwnPathInObject:
|
|
4550
|
+
const { isNotEmpty: o, isObject: e, hasOwnPathInObject: s, getValueByPath: r } = Y, n = Fe(), l = y(null), f = t, a = re(), C = ae(a), v = y(null);
|
|
4551
|
+
let i = null;
|
|
4552
|
+
const p = h(() => f.propValue || {}), V = h(() => f.element || {}), W = h(() => V.value.events || []), j = le(), b = oe(), M = ee(p, V, j, b);
|
|
4550
4553
|
Q(() => {
|
|
4551
|
-
|
|
4554
|
+
v.value = te(W.value, f.designStatus, M), v.value?.beforeMount();
|
|
4552
4555
|
}), q(() => {
|
|
4553
|
-
|
|
4556
|
+
i = setInterval(() => {
|
|
4557
|
+
e(m.value) && (se(), i && (clearInterval(i), i = null));
|
|
4558
|
+
}, 2e3), v.value?.mounted();
|
|
4554
4559
|
}), J(() => {
|
|
4555
|
-
|
|
4560
|
+
i && (clearInterval(i), i = null), v.value?.beforeUnmount();
|
|
4556
4561
|
}), $(() => {
|
|
4557
|
-
|
|
4562
|
+
v.value?.unmounted();
|
|
4558
4563
|
});
|
|
4559
|
-
const
|
|
4560
|
-
|
|
4561
|
-
},
|
|
4562
|
-
|
|
4563
|
-
},
|
|
4564
|
-
|
|
4564
|
+
const L = (x) => {
|
|
4565
|
+
v.value?.setParam(x);
|
|
4566
|
+
}, P = (x) => {
|
|
4567
|
+
v.value?.handleDblClick(x);
|
|
4568
|
+
}, k = y("");
|
|
4569
|
+
B(k, (x) => {
|
|
4565
4570
|
we(() => {
|
|
4566
|
-
l.value &&
|
|
4571
|
+
l.value && x ? l.value.innerHTML = x : l.value && (l.value.innerHTML = "");
|
|
4567
4572
|
});
|
|
4568
4573
|
});
|
|
4569
|
-
const
|
|
4570
|
-
let
|
|
4571
|
-
return o(
|
|
4572
|
-
}),
|
|
4573
|
-
n.getFile(
|
|
4574
|
-
if (
|
|
4575
|
-
let
|
|
4576
|
-
|
|
4574
|
+
const u = h(() => {
|
|
4575
|
+
let x = {};
|
|
4576
|
+
return o(p.value.firstColor) && (x["--custom-first-color"] = p.value.firstColor), o(p.value.secondColor) && (x["--custom-second-color"] = p.value.secondColor), o(p.value.thirdColor) && (x["--custom-third-color"] = p.value.thirdColor), o(p.value.fourColor) && (x["--custom-four-color"] = p.value.fourColor), o(p.value.fiveColor) && (x["--custom-five-color"] = p.value.fiveColor), x.cursor = _e(W.value), x;
|
|
4577
|
+
}), _ = (x) => {
|
|
4578
|
+
n.getFile(x, function(O) {
|
|
4579
|
+
if (O && O.status == 200) {
|
|
4580
|
+
let G = O.data || "";
|
|
4581
|
+
k.value = I(G);
|
|
4577
4582
|
} else
|
|
4578
|
-
|
|
4579
|
-
}, function(
|
|
4580
|
-
|
|
4583
|
+
k.value = "";
|
|
4584
|
+
}, function(O) {
|
|
4585
|
+
k.value = "";
|
|
4581
4586
|
});
|
|
4582
4587
|
};
|
|
4583
|
-
|
|
4584
|
-
o(
|
|
4585
|
-
}, { immediate: !0 }),
|
|
4586
|
-
o(
|
|
4588
|
+
B(() => p.value.svgFile, (x) => {
|
|
4589
|
+
o(x) ? _(x) : k.value = "";
|
|
4590
|
+
}, { immediate: !0 }), B(() => p.value.aspectRatio, (x) => {
|
|
4591
|
+
o(p.value.svgFile) && _(p.value.svgFile);
|
|
4587
4592
|
}, { immediate: !0 });
|
|
4588
|
-
const
|
|
4589
|
-
const
|
|
4590
|
-
return
|
|
4591
|
-
},
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
},
|
|
4598
|
-
o(
|
|
4599
|
-
}
|
|
4600
|
-
o(
|
|
4601
|
-
}
|
|
4602
|
-
o(
|
|
4603
|
-
}
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4593
|
+
const I = (x) => {
|
|
4594
|
+
const O = p.value.aspectRatio || "xMidYMid meet";
|
|
4595
|
+
return x.replace(/<svg([^>]*)width="[^"]*"/gi, "<svg$1").replace(/<svg([^>]*)height="[^"]*"/gi, "<svg$1").replace(/<svg/, `<svg preserveAspectRatio="${O}"`);
|
|
4596
|
+
}, m = C[p.value.cacheKey], F = y({}), H = y({}), S = y({}), Z = y({}), N = y({}), d = y({}), g = () => {
|
|
4597
|
+
o(p.value.svgFileCK) && (p.value.svgFile = F.value);
|
|
4598
|
+
}, w = () => {
|
|
4599
|
+
o(p.value.firstColorCK) && (p.value.firstColor = H.value ?? "none");
|
|
4600
|
+
}, A = () => {
|
|
4601
|
+
o(p.value.secondColorCK) && (p.value.secondColor = S.value ?? "none");
|
|
4602
|
+
}, E = () => {
|
|
4603
|
+
o(p.value.thirdColorCK) && (p.value.thirdColor = Z.value ?? "none");
|
|
4604
|
+
}, X = () => {
|
|
4605
|
+
o(p.value.fourColorCK) && (p.value.fourColor = N.value ?? "none");
|
|
4606
|
+
}, D = () => {
|
|
4607
|
+
o(p.value.fiveColorCK) && (p.value.fiveColor = d.value ?? "none");
|
|
4608
|
+
};
|
|
4609
|
+
B(() => F.value, (x) => {
|
|
4610
|
+
g();
|
|
4611
|
+
}), B(() => H.value, (x) => {
|
|
4612
|
+
w();
|
|
4613
|
+
}), B(() => S.value, (x) => {
|
|
4614
|
+
A();
|
|
4615
|
+
}), B(() => Z.value, (x) => {
|
|
4616
|
+
E();
|
|
4617
|
+
}), B(() => N.value, (x) => {
|
|
4618
|
+
X();
|
|
4619
|
+
}), B(() => d.value, (x) => {
|
|
4620
|
+
D();
|
|
4609
4621
|
});
|
|
4610
|
-
const
|
|
4622
|
+
const se = () => {
|
|
4623
|
+
if (!e(m.value))
|
|
4624
|
+
return;
|
|
4625
|
+
let x = p.value.svgFileCK;
|
|
4626
|
+
o(x) && s(m.value, x) && (F.value = r(m.value, x), g()), x = p.value.firstColorCK, o(x) && s(m.value, x) && (H.value = r(m.value, x), w()), x = p.value.secondColorCK, o(x) && s(m.value, x) && (S.value = r(m.value, x), A()), x = p.value.thirdColorCK, o(x) && s(m.value, x) && (Z.value = r(m.value, x), E()), x = p.value.fourColorCK, o(x) && s(m.value, x) && (N.value = r(m.value, x), X()), x = p.value.fiveColorCK, o(x) && s(m.value, x) && (d.value = r(m.value, x), D());
|
|
4627
|
+
};
|
|
4628
|
+
B(() => m.value, (x) => {
|
|
4629
|
+
o(p.value.cacheKey) && e(x) && se();
|
|
4630
|
+
}, { immediate: !0 });
|
|
4631
|
+
const ge = { isNotEmpty: o, isObject: e, hasOwnPathInObject: s, getValueByPath: r, api: n, svgContainerRef: l, props: f, dataCache: a, smartData: C, eventHandler: v, get timer() {
|
|
4632
|
+
return i;
|
|
4633
|
+
}, set timer(x) {
|
|
4634
|
+
i = x;
|
|
4635
|
+
}, propValue: p, element: V, events: W, router: j, route: b, compContext: M, handleClick: L, handleDblClick: P, svgContent: k, customStyle: u, loadSvgFile: _, removeSvgDimensions: I, cacheData: m, fileData: F, firstColorData: H, secondColorData: S, thirdColorData: Z, fourColorData: N, fiveColorData: d, dealFileData: g, dealFirstColorData: w, dealSecondColorData: A, dealThirdColorData: E, dealFourColorData: X, dealFiveColorData: D, dealBsData: se, get useEventHandler() {
|
|
4611
4636
|
return te;
|
|
4612
4637
|
}, get useDataCacheStore() {
|
|
4613
4638
|
return re;
|
|
@@ -4615,7 +4640,7 @@ const un = /* @__PURE__ */ fe(rn, [["render", an], ["__scopeId", "data-v-b5a7fa8
|
|
|
4615
4640
|
return ae;
|
|
4616
4641
|
}, get CreateCompContext() {
|
|
4617
4642
|
return ee;
|
|
4618
|
-
}, ref:
|
|
4643
|
+
}, ref: y, computed: h, watch: B, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, nextTick: we, get CommonUtils() {
|
|
4619
4644
|
return Y;
|
|
4620
4645
|
}, get useRoute() {
|
|
4621
4646
|
return oe;
|
|
@@ -4624,21 +4649,21 @@ const un = /* @__PURE__ */ fe(rn, [["render", an], ["__scopeId", "data-v-b5a7fa8
|
|
|
4624
4649
|
}, get useApi() {
|
|
4625
4650
|
return Fe;
|
|
4626
4651
|
}, get getCursorByEvents() {
|
|
4627
|
-
return
|
|
4652
|
+
return _e;
|
|
4628
4653
|
} };
|
|
4629
|
-
return Object.defineProperty(
|
|
4654
|
+
return Object.defineProperty(ge, "__isScriptSetup", { enumerable: !1, value: !0 }), ge;
|
|
4630
4655
|
}
|
|
4631
4656
|
});
|
|
4632
|
-
function cn(t, c, o, e,
|
|
4633
|
-
return
|
|
4657
|
+
function cn(t, c, o, e, s, r) {
|
|
4658
|
+
return R(), z("div", {
|
|
4634
4659
|
ref: "svgContainerRef",
|
|
4635
4660
|
class: "svg-container",
|
|
4636
4661
|
onClick: e.handleClick,
|
|
4637
4662
|
onDblclick: e.handleDblClick,
|
|
4638
|
-
style:
|
|
4663
|
+
style: Ce(e.customStyle)
|
|
4639
4664
|
}, null, 36);
|
|
4640
4665
|
}
|
|
4641
|
-
const dn = /* @__PURE__ */ fe(sn, [["render", cn], ["__scopeId", "data-v-
|
|
4666
|
+
const dn = /* @__PURE__ */ fe(sn, [["render", cn], ["__scopeId", "data-v-9182799c"], ["__file", "Component.vue"]]), fn = [
|
|
4642
4667
|
Kt,
|
|
4643
4668
|
Xt,
|
|
4644
4669
|
oo,
|