@agile_jy/word-editor 0.0.1-beta.5 → 0.0.1-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/canvas-editor.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.id="canvas-editor-style",e.appendChild(document.createTextNode('.ce-select-control-popup{max-width:160px;min-width:69px;max-height:225px;position:absolute;z-index:1;border:1px solid #e4e7ed;border-radius:4px;background-color:#fff;box-shadow:0 2px 12px #0000001a;box-sizing:border-box;margin:5px 0;overflow-y:auto}.ce-select-control-popup ul{list-style:none;padding:3px 0;margin:0;box-sizing:border-box}.ce-select-control-popup ul li{font-size:13px;padding:0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#666;height:36px;line-height:36px;box-sizing:border-box;cursor:pointer}.ce-select-control-popup ul li:hover{background-color:#eef2fd}.ce-select-control-popup ul li.active{color:var(--COLOR-HOVER, #5175f4);font-weight:700}.ce-calculator{position:absolute;z-index:1;border:1px solid #e4e7ed;border-radius:4px;background-color:#fff;box-shadow:0 2px 12px #0000001a;box-sizing:border-box;margin:5px 0;padding:8px;width:200px}.ce-calculator-display{width:100%;height:40px;line-height:40px;text-align:right;padding:0 10px;margin-bottom:8px;border:1px solid #e4e7ed;border-radius:4px;background-color:#f5f7fa;font-size:16px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis}.ce-calculator-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.ce-calculator-button{width:100%;height:36px;border:1px solid #e4e7ed;border-radius:4px;background-color:#fff;font-size:14px;cursor:pointer;transition:all .2s;box-sizing:border-box}.ce-calculator-button:hover{background-color:#eef2fd;border-color:#c6d1ff}.ce-calculator-button:active{background-color:#e1e8ff}.ce-calculator-button.operator{background-color:#f5f7fa}.ce-calculator-button.operator:hover{background-color:#eef2fd}.ce-calculator-button.equal{background-color:var(--COLOR-HOVER, #5175f4);color:#fff;border-color:var(--COLOR-HOVER, #5175f4)}.ce-calculator-button.equal:hover{background-color:var(--COLOR-HOVER, #6a84ff);border-color:var(--COLOR-HOVER, #6a84ff)}.ce-calculator-button.utility{background-color:#f0f2f5}.ce-calculator-button.utility:hover{background-color:#e6e8eb}.ce-date-container{display:none;width:300px;overflow:hidden;left:0;right:0;position:absolute;z-index:1;color:#606266;background:#ffffff;border-radius:4px;padding:10px;user-select:none;border:1px solid #e4e7ed;box-shadow:0 2px 12px #0000001a}.ce-date-container.active{display:block}.ce-date-wrap{display:none}.ce-date-wrap.active{display:block}.ce-date-title{display:flex;justify-content:center;align-items:center;text-align:center;color:#606266;font-size:16px}.ce-date-title>span{display:inline-block}.ce-date-title>span:not(.ce-date-title__now){font-family:cursive;cursor:pointer}.ce-date-title>span:not(.ce-date-title__now):hover{color:#5175f4}.ce-date-title .ce-date-title__pre-year,.ce-date-title .ce-date-title__pre-month{width:15%}.ce-date-title .ce-date-title__now{width:40%}.ce-date-title .ce-date-title__next-year,.ce-date-title .ce-date-title__next-month{width:15%}.ce-date-week{width:100%;display:flex;justify-content:center;margin-top:15px;padding-bottom:5px;border-bottom:1px solid #e4e7ed}.ce-date-week>span{list-style:none;width:calc(100%/7);text-align:center;color:#606266;font-size:14px}.ce-date-day{width:100%;display:flex;flex-wrap:wrap;align-items:center;margin-top:5px}.ce-date-day>div{width:calc(100%/7);height:40px;text-align:center;color:#606266;font-size:14px;cursor:pointer;line-height:40px;border-radius:4px}.ce-date-day>div:hover{color:#5175f4;opacity:.8}.ce-date-day>div.active{color:#5175f4;font-weight:700}.ce-date-day>div.disable{color:#c0c4cc}.ce-date-day>div.select{color:#fff;background-color:#5175f4}.ce-time-wrap{display:none;padding:10px;height:286px}.ce-time-wrap ::-webkit-scrollbar{width:0}.ce-time-wrap.active{display:flex}.ce-time-wrap li{list-style:none}.ce-time-wrap>li{width:33.3%;height:100%;text-align:center}.ce-time-wrap>li>span{transform:translateY(-5px);display:inline-block}.ce-time-wrap>li>ol{height:calc(100% - 20px);overflow-y:auto;border:1px solid #e2e2e2;position:relative}.ce-time-wrap>li:first-child>ol{border-right:0}.ce-time-wrap>li:last-child>ol{border-left:0}.ce-time-wrap>li>ol>li{line-height:30px;cursor:pointer;transition:all .3s}.ce-time-wrap>li>ol>li:hover{background-color:#eaeaea}.ce-time-wrap>li>ol>li.active{color:#fff;background:#5175F4}.ce-date-menu{width:100%;height:28px;display:flex;justify-content:flex-end;align-items:center;padding-top:10px;position:relative;border-top:1px solid #e4e7ed}.ce-date-menu button{display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #dcdfe6;color:#606266;appearance:none;text-align:center;box-sizing:border-box;outline:none;transition:.1s;font-weight:500;user-select:none;padding:7px 15px;font-size:12px;border-radius:3px;margin:0 0 0 10px}.ce-date-menu button:hover{color:#5175f4;border-color:#5175f4}.ce-date-menu button.ce-date-menu__time{border:1px solid transparent;position:absolute;left:0;margin-left:0}.ce-date-menu button.ce-date-menu__time:hover{color:#5175f4}.ce-block-item{position:absolute;z-index:0;background-color:#fff;border:1px solid rgb(235 236 240)}.ce-block-item .ce-resizer-selection{width:100%;height:100%}.ce-block-item .ce-resizer-mask{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1;background-color:transparent}.ce-table-tool__row{position:absolute;width:12px;border-radius:6.5px;overflow:hidden;background-color:#e2e6ed}.ce-table-tool__row .ce-table-tool__row__item{width:100%;position:relative;cursor:pointer;transition:all .3s}.ce-table-tool__row .ce-table-tool__row__item:after{content:"";position:absolute;bottom:0;left:2px;width:8px;height:1px;background-color:#c0c6cf}.ce-table-tool__row .ce-table-tool__row__item:hover{background-color:#dadce0}.ce-table-tool__row .ce-table-tool__row__item:last-child:after{display:none}.ce-table-tool__quick__add{width:16px;height:16px;position:absolute;border-radius:50%;background-color:#e2e6ed;cursor:pointer}.ce-table-tool__quick__add:after{content:"+";color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-55%)}.ce-table-tool__select{width:16px;height:18px;position:absolute;border-radius:3px;cursor:pointer}.ce-table-tool__select:hover{background-color:#e2e6ed}.ce-table-tool__select:after{content:":::";color:#aaaaab;position:absolute;top:50%;left:50%;transform:translate(-75%,-50%) rotate(-90deg)}.ce-table-tool__col{position:absolute;height:12px;border-radius:6.5px;overflow:hidden;background-color:#e2e6ed;display:flex}.ce-table-tool__col .ce-table-tool__col__item{height:100%;position:relative;cursor:pointer;transition:all .3s}.ce-table-tool__col .ce-table-tool__col__item:after{content:"";position:absolute;top:2px;left:-1px;width:1px;height:8px;z-index:1;background-color:#c0c6cf}.ce-table-tool__col .ce-table-tool__col__item:hover{background-color:#dadce0}.ce-table-tool__col .ce-table-tool__col__item:first-child:after{display:none}.ce-table-tool__row .ce-table-tool__row__item.active,.ce-table-tool__col .ce-table-tool__col__item.active{background-color:#c4d7fa}.ce-table-tool__col .ce-table-tool__anchor{right:-5px;width:10px;height:12px;z-index:9;position:absolute;cursor:col-resize}.ce-table-tool__row .ce-table-tool__anchor{bottom:-5px;left:0;width:12px;height:10px;z-index:9;position:absolute;cursor:row-resize}.ce-table-anchor__line{z-index:9;position:absolute;border:1px dotted #000000}.ce-table-tool__border{position:absolute;z-index:1;background:transparent;pointer-events:none}.ce-table-tool__border__row{position:absolute;cursor:row-resize;pointer-events:auto}.ce-table-tool__border__col{position:absolute;cursor:col-resize;pointer-events:auto}.ce-resizer-selection{position:absolute;border:1px solid;pointer-events:none}.ce-resizer-selection .resizer-handle{position:absolute;z-index:9;width:10px;height:10px;box-shadow:0 1px 4px #0000004d;border-radius:5px;border:2px solid #ffffff;box-sizing:border-box;pointer-events:initial}.ce-resizer-selection .handle-0{cursor:nw-resize}.ce-resizer-selection .handle-1{cursor:n-resize}.ce-resizer-selection .handle-2{cursor:ne-resize}.ce-resizer-selection .handle-3{cursor:e-resize}.ce-resizer-selection .handle-4{cursor:se-resize}.ce-resizer-selection .handle-5{cursor:s-resize}.ce-resizer-selection .handle-6{cursor:sw-resize}.ce-resizer-selection .handle-7{cursor:w-resize}.ce-resizer-size-view{display:flex;align-items:center;height:20px;white-space:nowrap;position:absolute;z-index:9;top:-30px;left:0;opacity:.9;background-color:#000;padding:0 5px;border-radius:4px}.ce-resizer-size-view span{color:#fff;font-size:12px}.ce-resizer-image{position:absolute;opacity:.5}.ce-image-previewer{position:fixed;left:0;top:0;z-index:1000;width:100%;height:100%;overflow:hidden;background:#f2f4f7;display:flex;align-items:center;justify-content:center;animation:previewerAnimation .3s}@keyframes previewerAnimation{0%{opacity:.1}to{opacity:1}}.ce-image-previewer .image-close{width:24px;height:24px;display:inline-block;position:absolute;right:50px;top:30px;z-index:99;cursor:pointer;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIzLjk3IDdsMS40MTUgMS40MTQtNy43NzkgNy43NzggNy43NzkgNy43NzktMS40MTQgMS40MTQtNy43NzktNy43NzktNy43NzggNy43NzlMNyAyMy45N2w3Ljc3OC03Ljc3OUw3IDguNDE0IDguNDE0IDdsNy43NzggNy43NzhMMjMuOTcxIDd6IiBmaWxsPSIjM0Q0NzU3IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=) no-repeat;background-size:100% 100%;transition:all .3s;border-radius:50%}.ce-image-previewer .image-close:hover{background-color:#e2e6ed}.ce-image-previewer .ce-image-container{position:relative}.ce-image-previewer .ce-image-container img{cursor:move;position:relative}.ce-image-previewer .ce-image-menu{height:50px;position:absolute;bottom:50px;z-index:99;display:flex;align-items:center;justify-content:center}.ce-image-previewer .ce-image-menu i{width:32px;height:32px;margin:0 8px;cursor:pointer;display:inline-block;background-repeat:no-repeat;background-size:100% 100%;transition:all .3s;border-radius:50%}.ce-image-previewer .ce-image-menu i:hover{background-color:#e2e6ed}.ce-image-previewer .ce-image-menu i.zoom-in{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0IDE0di00aDJ2NGg0djJoLTR2NGgtMnYtNGgtNHYtMmg0em04Ljc0OSAxMC4xNjNBMTEuOTUyIDExLjk1MiAwIDAxMTUgMjdDOC4zNzMgMjcgMyAyMS42MjcgMyAxNVM4LjM3MyAzIDE1IDNzMTIgNS4zNzMgMTIgMTJjMCAyLjk1NC0xLjA2NyA1LjY1OC0yLjgzNyA3Ljc0OWw0LjkwOCA0LjkwOC0xLjQxNCAxLjQxNC00LjkwOC00LjkwOHpNMTUgMjVjNS41MjMgMCAxMC00LjQ3NyAxMC0xMFMyMC41MjMgNSAxNSA1IDUgOS40NzcgNSAxNXM0LjQ3NyAxMCAxMCAxMHoiIGZpbGw9IiMzRDQ3NTciLz48L3N2Zz4=)}.ce-image-previewer .ce-image-menu i.zoom-out{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIyLjc0OSAyNC4xNjNBMTEuOTUyIDExLjk1MiAwIDAxMTUgMjdDOC4zNzMgMjcgMyAyMS42MjcgMyAxNVM4LjM3MyAzIDE1IDNzMTIgNS4zNzMgMTIgMTJjMCAyLjk1NC0xLjA2NyA1LjY1OC0yLjgzNyA3Ljc0OWw0LjkwOCA0LjkwOC0xLjQxNCAxLjQxNC00LjkwOC00LjkwOHpNMTUgMjVjNS41MjMgMCAxMC00LjQ3NyAxMC0xMFMyMC41MjMgNSAxNSA1IDUgOS40NzcgNSAxNXM0LjQ3NyAxMCAxMCAxMHptLTUtMTFoMTB2MkgxMHYtMnoiIGZpbGw9IiMzRDQ3NTciLz48L3N2Zz4=)}.ce-image-previewer .ce-image-menu i.rotate{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzNENDc1NyIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTYgNGM2LjYyNyAwIDEyIDUuMzczIDEyIDEyYTExLjk3IDExLjk3IDAgMDEtNCA4Ljk0NFYyM2gtLjg2QTkuOTY4IDkuOTY4IDAgMDAyNiAxNmMwLTUuNTIzLTQuNDc3LTEwLTEwLTEwUzYgMTAuNDc3IDYgMTZjMCA1LjE4NSAzLjk0NyA5LjQ0OSA5IDkuOTV2Mi4wMDlDOC44NCAyNy40NTEgNCAyMi4yOTEgNCAxNiA0IDkuMzczIDkuMzczIDQgMTYgNHoiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik0xOS44NzkgMjcuMzI4bDEuNzY3LTYuNzE3IDQuOTUgNC45NXoiLz48L2c+PC9zdmc+)}.ce-image-previewer .ce-image-menu i.original-size{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQgNGgyNHYyNEg0VjR6bTIgMnYyMGgyMFY2SDZ6bTQgNWgydjEwaC0yVjExem01IDJoMnYyaC0ydi0yem0wIDRoMnYyaC0ydi0yem01LTZoMnYxMGgtMlYxMXoiIGZpbGw9IiMzRDQ3NTciLz48L3N2Zz4=)}.ce-image-previewer .ce-image-menu i.image-download{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQuNSAxNXYzLjVoMTVWMTVIMjF2NUgzdi01aDEuNXptOC4yMzItMTEuMjI2djkuMTk2bDQuMDUtNC4wNSAxLjA2IDEuMDYtNS44MzQgNS44MzQtNS44MzMtNS44MzMgMS4wNi0xLjA2IDMuOTk4IDMuOTk2VjMuNzc0aDEuNXoiIGZpbGw9IiMzRDQ3NTciLz48L3N2Zz4=)}.ce-image-previewer .ce-image-menu .image-navigate{display:flex;align-items:center;justify-content:center}.ce-image-previewer .ce-image-menu i.image-pre{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyLjUgNC4wNjNMNi44NzUgMTBsNS42MjUgNS45MzgiIHN0cm9rZT0iIzNENDc1NyIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==)}.ce-image-previewer .ce-image-menu i.image-next{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcuNSA0LjA2M0wxMy4xMjUgMTAgNy41IDE1LjkzOCIgc3Ryb2tlPSIjM0Q0NzU3IiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+)}.ce-image-previewer .ce-image-menu .image-count{color:#000;font-size:20px}.ce-image-previewer .ce-image-menu i.disabled{cursor:not-allowed;opacity:.5}.ce-contextmenu-container{z-index:9;position:fixed;display:none;padding:4px;overflow-x:hidden;overflow-y:auto;background:#fff;box-shadow:0 2px 12px #38383833;border:1px solid #e2e6ed;border-radius:2px}.ce-contextmenu-content{display:flex;flex-direction:column}.ce-contextmenu-content .ce-contextmenu-sub-item:after{position:absolute;content:"";width:16px;height:16px;right:12px;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAwaDE2djE2SDB6Ii8+PGcgZmlsbD0iIzc2N0M4NSI+PHBhdGggZD0iTTcgMTIuMjQzbC0uNzA3LS43MDcgNC4yNDMtNC4yNDMuNzA3LjcwN3oiLz48cGF0aCBkPSJNNi4yOTMgNC40NjRMNyAzLjc1NyAxMS4yNDMgOGwtLjcwNy43MDd6Ii8+PC9nPjwvZz48L3N2Zz4=)}.ce-contextmenu-content .ce-contextmenu-item{min-width:140px;padding:0 32px 0 16px;height:30px;display:flex;align-items:center;white-space:nowrap;box-sizing:border-box;cursor:pointer}.ce-contextmenu-content .ce-contextmenu-item.hover{background:rgba(25,55,88,.04)}.ce-contextmenu-content .ce-contextmenu-item span{max-width:300px;font-size:12px;color:#3d4757;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ce-contextmenu-content .ce-contextmenu-item span.ce-shortcut{color:#767c85;height:30px;flex:1;text-align:right;line-height:30px;margin-left:20px}.ce-contextmenu-content .ce-contextmenu-item i{width:16px;height:16px;vertical-align:middle;display:inline-block;background-repeat:no-repeat;background-size:100% 100%;flex-shrink:0;margin-right:8px}.ce-contextmenu-divider{background-color:#e2e6ed;margin:4px 16px;height:1px}.ce-contextmenu-print{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjM0Q0NzU3IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0xMiA0aC0xVjJINXYySDRWMmExIDEgMCAwMTEtMWg2YTEgMSAwIDAxMSAxdjJ6bTAgNXY0YTEgMSAwIDAxLTEgMUg1YTEgMSAwIDAxLTEtMVY5aDF2NGg2VjloMXoiLz48cGF0aCBkPSJNMTIgMTJ2LTFoMlY1SDJ2NmgydjFIMmExIDEgMCAwMS0xLTFWNWExIDEgMCAwMTEtMWgxMmExIDEgMCAwMTEgMXY2YTEgMSAwIDAxLTEgMWgtMnoiLz48cGF0aCBkPSJNMyA4aDEwdjFIM3ptOC0yaDJ2MWgtMnoiLz48L2c+PC9zdmc+)}.ce-contextmenu-image{background-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSLlm77lsYJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4PSIwIiB5PSIwIiB2aWV3Qm94PSIwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZT4uc3Qwe2ZpbGw6IzNkNDc1N308L3N0eWxlPjxnIGlkPSJfeDMwXzAt5YWs5YWxX3gyRl8wMuW3peWFt+agj194MkZf5o+S5YWl5Zu+54mHLTE2cHgtIj48ZyBpZD0iR3JvdXAtMTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMSkiPjxwYXRoIGlkPSJDb21iaW5lZC1TaGFwZSIgY2xhc3M9InN0MCIgZD0iTTEgMGgxMmMuNiAwIDEgLjQgMSAxdjExYzAgLjYtLjQgMS0xIDFIMWMtLjYgMC0xLS40LTEtMVYxYzAtLjYuNC0xIDEtMXptMCAxdjExaDEyVjFIMXoiLz48Y2lyY2xlIGlkPSLmpK3lnIblvaIiIGNsYXNzPSJzdDAiIGN4PSIxMCIgY3k9IjQiIHI9IjEiLz48cGF0aCBpZD0iUGF0aCIgY2xhc3M9InN0MCIgZD0iTTguNSAxMS4ybC00LTQuMUwxIDEwLjdWOS4yYzEuNy0xLjYgMi43LTIuNSAzLTIuOC40LS41LjctLjQgMSAwTDguNSAxMCAxMSA3LjNjLjQtLjUuNi0uNSAxLS4xbDIgMi44djEuNWwtMi41LTMuNC0zIDMuMXoiLz48L2c+PC9nPjwvc3ZnPg==)}.ce-contextmenu-image-change{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyIDQpIiBmaWxsPSIjM0Q0NzU3Ij48Y2lyY2xlIGZpbGwtcnVsZT0ibm9uemVybyIgY3g9IjMiIGN5PSIxIiByPSIxIi8+PHBhdGggZD0iTTcuNDczIDguMjIzTDMuNDcgNC4xMDcgMCA3LjY2N3YtMS41QzEuNzE1IDQuNiAyLjcwNyAzLjY2NCAyLjk3NSAzLjM1OGMuNDAyLS40NTcuNjUxLS4zOSAxLjA0MiAwTDcuNDczIDcgOS45NiA0LjM0OWMuNDE0LS40NjIuNjItLjQ2MiAxLjAxMS0uMDcxTDEzIDcuMDZ2MS41bC0yLjUxLTMuNDEtMy4wMTcgMy4wNzJ6Ii8+PC9nPjxwYXRoIGQ9Ik02IDEuNUgxLjV2MTJoMTN2LTRWMTNhLjUuNSAwIDAxLS41LjVIMmEuNS41IDAgMDEtLjUtLjVWMmEuNS41IDAgMDEuNS0uNWg0em04LjUgOFY2bC0uNS41aDFsLS41LS41djMuNXpNNiAxLjVoNEw5LjUgMXYxbC41LS41SDZ6IiBzdHJva2U9IiMzRDQ3NTciLz48cGF0aCBkPSJNMTMuMDg1IDEuMzE2bC0zLjgxNCA0YTEgMSAwIDAwMS40NTggMS4zNjhsMy44MTUtNGExIDEgMCAxMC0xLjQ1OS0xLjM2OHoiIGZpbGw9IiMzRDQ3NTciIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=)}.ce-contextmenu-insert-row-col{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBzdHJva2U9IiMzRDQ3NTciIGQ9Ik04LjUgNS41aDZ2NGgtNnoiLz48cGF0aCBmaWxsPSIjM0Q0NzU3IiBkPSJNNCA3djFoMlY3em0tMyAuNUw0IDV2NXpNMSAxaDEydjFIMXptMCAxMmgxMnYxSDF6Ii8+PC9nPjwvc3ZnPg==)}.ce-contextmenu-insert-top-row{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBmaWxsPSIjM0Q0NzU3IiBkPSJNOCA1SDd2M2gxem0tLjUtM0wxMCA1SDV6Ii8+PHJlY3Qgc3Ryb2tlPSIjM0Q0NzU3IiB4PSIxLjUiIHk9IjEwLjUiIHdpZHRoPSIxMiIgaGVpZ2h0PSIzIiByeD0iMSIvPjwvZz48L3N2Zz4=)}.ce-contextmenu-insert-bottom-row{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBmaWxsPSIjM0Q0NzU3IiBkPSJNNyAxMWgxVjhIN3ptLjUgM0w1IDExaDV6Ii8+PHJlY3Qgc3Ryb2tlPSIjM0Q0NzU3IiB4PSIxLjUiIHk9IjIuNSIgd2lkdGg9IjEyIiBoZWlnaHQ9IjMiIHJ4PSIxIi8+PC9nPjwvc3ZnPg==)}.ce-contextmenu-insert-left-col{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBmaWxsPSIjM0Q0NzU3IiBkPSJNMTEgN3YxaDNWN3ptLTMgLjVMMTEgNXY1eiIvPjxyZWN0IHN0cm9rZT0iIzNENDc1NyIgdHJhbnNmb3JtPSJyb3RhdGUoOTAgNCA3LjUpIiB4PSItMiIgeT0iNiIgd2lkdGg9IjEyIiBoZWlnaHQ9IjMiIHJ4PSIxIi8+PC9nPjwvc3ZnPg==)}.ce-contextmenu-insert-right-col{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBmaWxsPSIjM0Q0NzU3IiBkPSJNNSA4VjdIMnYxem0zLS41TDUgMTBWNXoiLz48cmVjdCBzdHJva2U9IiMzRDQ3NTciIHRyYW5zZm9ybT0icm90YXRlKDkwIDEyIDcuNSkiIHg9IjYiIHk9IjYiIHdpZHRoPSIxMiIgaGVpZ2h0PSIzIiByeD0iMSIvPjwvZz48L3N2Zz4=)}.ce-contextmenu-delete-row-col{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBzdHJva2U9IiM5MjlBQTgiIGQ9Ik04LjUgNi41aDZ2MmgtNnoiLz48cGF0aCBmaWxsPSIjM0Q0NzU3IiBkPSJNMiAxMmgxMXYxSDJ6TTIgMmgxMXYxSDJ6bS42MyAzTDcgOS4zNWwtLjYzNS42NUwyIDUuNjN6Ii8+PHBhdGggZmlsbD0iIzNENDc1NyIgZD0iTTIgOS4zNjNMNi4zNTUgNSA3IDUuNzA3IDIuNjk1IDEweiIvPjwvZz48L3N2Zz4=)}.ce-contextmenu-delete-row{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBzdHJva2U9IiM5MjlBQTgiIGQ9Ik04LjUgNS41aDZ2NGgtNnoiLz48cGF0aCBmaWxsPSIjM0Q0NzU3IiBkPSJNMSAxM2gxMnYxSDF6TTEgMWgxMnYxSDF6bTAgNGgxdjFIMXptMSAxaDF2MUgyem0xIDFoMXYxSDN6bTEtMWgxdjFINHptMS0xaDF2MUg1ek00IDhoMXYxSDR6TTIgOGgxdjFIMnptMyAxaDF2MUg1ek0xIDloMXYxSDF6Ii8+PC9nPjwvc3ZnPg==)}.ce-contextmenu-delete-col{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBzdHJva2U9IiM5MjlBQTgiIGQ9Ik01LjUgNy41di02aDR2NnoiLz48cGF0aCBmaWxsPSIjM0Q0NzU3IiBkPSJNMTMgMTVWM2gxdjEyek0xIDE1VjNoMXYxMnptNCAwdi0xaDF2MXptMS0xdi0xaDF2MXptMS0xdi0xaDF2MXptLTEtMXYtMWgxdjF6bS0xLTF2LTFoMXYxem0zIDF2LTFoMXYxem0wIDJ2LTFoMXYxem0xLTN2LTFoMXYxem0wIDR2LTFoMXYxeiIvPjwvZz48L3N2Zz4=)}.ce-contextmenu-delete-table{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzNENDc1NyIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQgMTNoLTF2LTNIMnYzSDF2LTNhMSAxIDAgMDExLTFoMTFhMSAxIDAgMDExIDF2M3oiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik01LjYyNSAyTDEwIDYuMzc1IDkuMzc1IDcgNSAyLjYyNXoiLz48cGF0aCBkPSJNNSA2LjM3NUw5LjM3NSAybC42MjUuNjI1TDUuNjI1IDd6Ii8+PC9nPjwvc3ZnPg==)}.ce-contextmenu-merge-cell{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzNENDc1NyIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNiAxdjFIMnYxMWg0djFIMmExIDEgMCAwMS0xLTFWMmExIDEgMCAwMTEtMWg0em0zIDBoNGExIDEgMCAwMTEgMXYxMWExIDEgMCAwMS0xIDFIOXYtMWg0VjJIOVYxeiIvPjxwYXRoIGZpbGwtcnVsZT0ibm9uemVybyIgZD0iTTYgMWgxdjRINnptMiAwaDF2NEg4eiIvPjxwYXRoIGQ9Ik04IDcuNUwxMCA2djN6bS0xIDBMNSA2djN6Ii8+PHBhdGggZD0iTTkgN2gzdjFIOXpNMyA3aDN2MUgzeiIvPjxwYXRoIGZpbGwtcnVsZT0ibm9uemVybyIgZD0iTTggMTBoMXY0SDh6bS0yIDBoMXY0SDZ6Ii8+PC9nPjwvc3ZnPg==)}.ce-contextmenu-merge-cancel-cell{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzNENDc1NyIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNiAxdjFIMnYxMWg0djFIMmExIDEgMCAwMS0xLTFWMmExIDEgMCAwMTEtMWg0em0zIDBoNGExIDEgMCAwMTEgMXYxMWExIDEgMCAwMS0xIDFIOXYtMWg0VjJIOVYxeiIvPjxwYXRoIGZpbGwtcnVsZT0ibm9uemVybyIgZD0iTTYgMWgxdjRINnptMiAwaDF2NEg4eiIvPjxwYXRoIGQ9Ik0zIDcuNUw1IDZ2M3ptOSAwTDEwIDZ2M3oiLz48cGF0aCBkPSJNNCA3aDN2MUg0em00IDBoM3YxSDh6Ii8+PHBhdGggZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNOCAxMGgxdjRIOHptLTIgMGgxdjRINnoiLz48L2c+PC9zdmc+)}.ce-contextmenu-vertical-align{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHdpZHRoPSIxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMiAxM2gxMnYxSDJ6bTAtM2g4djFIMnptMC0zaDEydjFIMnptMC02aDEydjFIMnptMCAzaDh2MUgyeiIgZmlsbD0iIzNkNDc1NyIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ce-contextmenu-vertical-align-top{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTggOEg3djZoMXptLS41LTNMMTAgOEg1ek0yIDNoMTF2MUgyeiIgZmlsbD0iIzNENDc1NyIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ce-contextmenu-vertical-align-middle{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOCAxMkg3djNoMXptLS41LTNsMi41IDNINXpNNyAzaDFWMEg3em0uNSAzTDUgM2g1ek0yIDdoMTF2MUgyeiIgZmlsbD0iIzNENDc1NyIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ce-contextmenu-vertical-align-bottom{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcgOWgxVjNIN3ptLjUgM0w1IDloNXpNMiAxM2gxMXYxSDJ6IiBmaWxsPSIjM0Q0NzU3IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ce-contextmenu-border-all{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuNSAzYS41LjUgMCAwMS41LS41aDExYS41LjUgMCAwMS41LjV2MTFhLjUuNSAwIDAxLS41LjVIM2EuNS41IDAgMDEtLjUtLjVWM3oiIHN0cm9rZT0iIzNENDc1NyIvPjxwYXRoIGZpbGw9IiMzRDQ3NTciIGQ9Ik0zIDhoMTF2MUgzeiIvPjxwYXRoIGZpbGw9IiMzRDQ3NTciIGQ9Ik05IDN2MTFIOFYzeiIvPjwvc3ZnPg==)}.ce-contextmenu-border-empty{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMyAzaC0xVjJoMWExIDEgMCAwMTEgMXYxaC0xVjN6bS0zLTF2MUg4LjV2MmgtMVYzSDZWMmg0ek00IDJ2MUgzdjFIMlYzYTEgMSAwIDAxMS0xaDF6TTIgNmgxdjEuNWgydjFIM1YxMEgyVjZ6bTAgNmgxdjFoMXYxSDNhMSAxIDAgMDEtMS0xdi0xem00IDJ2LTFoMS41di0yaDF2MkgxMHYxSDZ6bTYgMHYtMWgxdi0xaDF2MWExIDEgMCAwMS0xIDFoLTF6bTItNGgtMVY4LjVoLTJ2LTFoMlY2aDF2NHpNOC41IDcuNXYtMWgtMXYxaC0xdjFoMXYxaDF2LTFoMXYtMWgtMXoiIGZpbGw9IiNBQUFDQjAiLz48L3N2Zz4=)}.ce-contextmenu-border-dash{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMyAzaC0xVjJoMWExIDEgMCAwMTEgMXYxaC0xVjN6bS0zLTF2MUg4LjV2MmgtMVYzSDZWMmg0ek00IDJ2MUgzdjFIMlYzYTEgMSAwIDAxMS0xaDF6TTIgNmgxdjEuNWgydjFIM1YxMEgyVjZ6bTAgNmgxdjFoMXYxSDNhMSAxIDAgMDEtMS0xdi0xem00IDJ2LTFoMS41di0yaDF2MkgxMHYxSDZ6bTYgMHYtMWgxdi0xaDF2MWExIDEgMCAwMS0xIDFoLTF6bTItNGgtMVY4LjVoLTJ2LTFoMlY2aDF2NHpNOC41IDcuNXYtMWgtMXYxaC0xdjFoMXYxaDF2LTFoMXYtMWgtMXoiIGZpbGw9IiMwMDAwMDAiLz48L3N2Zz4=)}.ce-contextmenu-border-external{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuNSAzYS41LjUgMCAwMS41LS41aDExYS41LjUgMCAwMS41LjV2MTFhLjUuNSAwIDAxLS41LjVIM2EuNS41IDAgMDEtLjUtLjVWM3oiIHN0cm9rZT0iIzNENDc1NyIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOSA1VjNIOHYyaDF6bTAgOXYtMkg4djJoMXpNNSA4SDN2MWgyVjh6bTkgMGgtMnYxaDJWOHpNOSA3djFoMXYxSDl2MUg4VjlIN1Y4aDFWN2gxeiIgZmlsbD0iI0FBQUNCMCIvPjwvc3ZnPg==)}.ce-contextmenu-border-internal{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuNSAzYS41LjUgMCAwMS41LS41aDExYS41LjUgMCAwMS41LjV2MTFhLjUuNSAwIDAxLS41LjVIM2EuNS41IDAgMDEtLjUtLjVWM3oiIHN0cm9rZT0iI0FBQUNCMCIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOSA1VjNIOHYyaDF6bTAgOXYtMkg4djJoMXpNNSA4SDN2MWgyVjh6bTkgMGgtMnYxaDJWOHpNOSA3djFoMXYxSDl2MUg4VjlIN1Y4aDFWN2gxeiIgZmlsbD0iIzNENDc1NyIvPjwvc3ZnPg==)}.ce-contextmenu-border-td{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuNSAzYS41LjUgMCAwMS41LS41aDExYS41LjUgMCAwMS41LjV2MTFhLjUuNSAwIDAxLS41LjVIM2EuNS41IDAgMDEtLjUtLjVWM3oiIHN0cm9rZT0iI0FBQUNCMCIvPjxwYXRoIHN0cm9rZT0iIzNENDc1NyIgZD0iTTguNSAyLjUgdjYgaC02Ii8+PC9zdmc+)}.ce-contextmenu-border-td-top{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuNSAzYS41LjUgMCAwMS41LS41aDExYS41LjUgMCAwMS41LjV2MTFhLjUuNSAwIDAxLS41LjVIM2EuNS41IDAgMDEtLjUtLjVWM3oiIHN0cm9rZT0iI0FBQUNCMCIvPjxwYXRoIHN0cm9rZT0iIzNENDc1NyIgc3Ryb2tlLXdpZHRoPSIyIiBkPSJNMi41IDMgaDEyIi8+PC9zdmc+)}.ce-contextmenu-border-td-left{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuNSAzYS41LjUgMCAwMS41LS41aDExYS41LjUgMCAwMS41LjV2MTFhLjUuNSAwIDAxLS41LjVIM2EuNS41IDAgMDEtLjUtLjVWM3oiIHN0cm9rZT0iI0FBQUNCMCIvPjxwYXRoIHN0cm9rZT0iIzNENDc1NyIgc3Ryb2tlLXdpZHRoPSIyIiBkPSJNMyAzIHYxMSIvPjwvc3ZnPg==)}.ce-contextmenu-border-td-bottom{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuNSAzYS41LjUgMCAwMS41LS41aDExYS41LjUgMCAwMS41LjV2MTFhLjUuNSAwIDAxLS41LjVIM2EuNS41IDAgMDEtLjUtLjVWM3oiIHN0cm9rZT0iI0FBQUNCMCIvPjxwYXRoIHN0cm9rZT0iIzNENDc1NyIgc3Ryb2tlLXdpZHRoPSIyIiBkPSJNMi41IDE0IGgxMiIvPjwvc3ZnPg==)}.ce-contextmenu-border-td-right{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuNSAzYS41LjUgMCAwMS41LS41aDExYS41LjUgMCAwMS41LjV2MTFhLjUuNSAwIDAxLS41LjVIM2EuNS41IDAgMDEtLjUtLjVWM3oiIHN0cm9rZT0iI0FBQUNCMCIvPjxwYXRoIHN0cm9rZT0iIzNENDc1NyIgc3Ryb2tlLXdpZHRoPSIyIiBkPSJNMTQgMyB2MTEiLz48L3N2Zz4=)}.ce-contextmenu-border-td-forward{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuNSAzYS41LjUgMCAwMS41LS41aDExYS41LjUgMCAwMS41LjV2MTFhLjUuNSAwIDAxLS41LjVIM2EuNS41IDAgMDEtLjUtLjVWM3oiIHN0cm9rZT0iI0FBQUNCMCIgLz48cGF0aCBzdHJva2U9IiMzRDQ3NTciIGQ9Ik0xNCAzIGwtMTEgMTEiIC8+PC9zdmc+)}.ce-contextmenu-border-td-back{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuNSAzYS41LjUgMCAwMS41LS41aDExYS41LjUgMCAwMS41LjV2MTFhLjUuNSAwIDAxLS41LjVIM2EuNS41IDAgMDEtLjUtLjVWM3oiIHN0cm9rZT0iI0FBQUNCMCIgLz48cGF0aCBzdHJva2U9IiMzRDQ3NTciIGQ9Ik0zIDMgbDExIDExIiAvPjwvc3ZnPg==)}.ce-hyperlink-popup{background:#fff;box-shadow:0 2px 12px #626b8433;border-radius:2px;color:#3d4757;padding:12px 16px;position:absolute;z-index:1;text-align:center;display:none}.ce-hyperlink-popup a{min-width:100px;max-width:300px;font-size:12px;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;text-decoration:none;border-bottom-width:1px;border-bottom-style:solid;color:#00f}.ce-zone-indicator>div{padding:3px 6px;color:#000;font-size:12px;background:rgb(218 231 252);position:absolute;transform-origin:0 0}.ce-zone-indicator-border__top,.ce-zone-indicator-border__bottom,.ce-zone-indicator-border__left,.ce-zone-indicator-border__right{display:block;position:absolute;z-index:0}.ce-zone-indicator-border__top{border-top:2px dashed rgb(238,238,238)}.ce-zone-indicator-border__bottom{border-top:2px dashed rgb(238,238,238);width:100%}.ce-zone-indicator-border__left{border-left:2px dashed rgb(238,238,238)}.ce-zone-indicator-border__right{border-right:2px dashed rgb(238,238,238)}.ce-zone-tip{display:none;align-items:center;height:30px;white-space:nowrap;position:fixed;opacity:.9;background-color:#000;padding:0 5px;border-radius:4px;z-index:9;transition:all .3s;outline:none;user-select:none;pointer-events:none;transform:translate(10px,10px)}.ce-zone-tip.show{display:flex}.ce-zone-tip span{color:#fff;font-size:12px}.ce-inputarea{width:100px;height:30px;min-width:0;min-height:0;margin:0;padding:0;left:0;top:0;letter-spacing:0;font-size:12px;position:absolute;z-index:-1;outline:none;resize:none;border:none;overflow:hidden;color:transparent;user-select:none;caret-color:transparent;background-color:transparent}.ce-cursor{width:1px;height:20px;left:0;right:0;position:absolute;outline:none;background-color:#000;pointer-events:none}.ce-cursor.ce-cursor--animation{animation-duration:1s;animation-iteration-count:infinite;animation-name:cursorAnimation}@keyframes cursorAnimation{0%{opacity:1}13%{opacity:0}50%{opacity:0}63%{opacity:1}to{opacity:1}}.ce-float-image{position:absolute;opacity:.5;pointer-events:none}.dialog-mask{position:fixed;left:0;top:0;width:100%;height:100%;opacity:.5;background:#000000;z-index:99}.dialog-container{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;z-index:999;margin:0;display:flex;justify-content:center;align-items:center}.dialog{position:absolute;padding:0 30px 30px;background:#ffffff;box-shadow:0 2px 12px #38383833;border:1px solid #e2e6ed;border-radius:2px}.dialog-title{position:relative;border-bottom:1px solid #e2e6ed;margin-bottom:30px;height:60px;display:flex;align-items:center;justify-content:space-between}.dialog-title i{width:16px;height:16px;cursor:pointer;display:inline-block;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOC45IDguMTkybDQuMjQyIDQuMjQzLS43MDcuNzA3TDguMTkyIDguOSAzLjk1IDEzLjE0MmwtLjcwNy0uNzA3IDQuMjQyLTQuMjQzTDMuMjQzIDMuOTVsLjcwNy0uNzA3IDQuMjQyIDQuMjQyIDQuMjQzLTQuMjQyLjcwNy43MDdMOC45IDguMTkyeiIgZmlsbD0iIzZBNkE2QSIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.dialog-option__item{margin-bottom:18px;display:flex;align-items:center;justify-content:space-between}.dialog-option__item span{margin-right:12px;font-size:14px;color:#3d4757;position:relative}.dialog-option__item input,.dialog-option__item textarea,.dialog-option__item select{width:276px;height:30px;border-radius:2px;border:1px solid #d3d3d3;min-height:30px;padding:5px;box-sizing:border-box;outline:none;appearance:none;user-select:none;font-family:inherit}.dialog-option__item input:focus,.dialog-option__item textarea:focus{border-color:#4991f2}.dialog-option__item--require:before{content:"*";color:#f56c6c;margin-right:4px;position:absolute;left:-8px}.dialog-menu{display:flex;align-items:center;justify-content:flex-end}.dialog-menu button{position:relative;display:inline-block;border:1px solid #e2e6ed;border-radius:2px;background:#ffffff;line-height:22px;padding:0 16px;white-space:nowrap;cursor:pointer}.dialog-menu button:hover{background:rgba(25,55,88,.04)}.dialog-menu__cancel{margin-right:16px}.dialog-menu button[type=submit]{color:#fff;background:#4991f2;border-color:#4991f2}.dialog-menu button[type=submit]:hover{background:#5b9cf3;border-color:#5b9cf3}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
2
|
var index = "";
|
|
3
|
-
const version = "0.0.1-beta.
|
|
3
|
+
const version = "0.0.1-beta.6";
|
|
4
4
|
var MaxHeightRatio;
|
|
5
5
|
(function(MaxHeightRatio2) {
|
|
6
6
|
MaxHeightRatio2["HALF"] = "half";
|
|
@@ -4419,7 +4419,7 @@ function mergeOption(options = {}) {
|
|
|
4419
4419
|
resizerSize: 5,
|
|
4420
4420
|
marginIndicatorSize: 35,
|
|
4421
4421
|
marginIndicatorColor: "#BABABA",
|
|
4422
|
-
margins: [
|
|
4422
|
+
margins: [0, 0, 0, 0],
|
|
4423
4423
|
pageMode: PageMode.PAGING,
|
|
4424
4424
|
renderMode: RenderMode.SPEED,
|
|
4425
4425
|
defaultHyperlinkColor: "#0000FF",
|
|
@@ -8460,6 +8460,18 @@ function dblclick(host, evt) {
|
|
|
8460
8460
|
editor.showFormRadioConfig(curElement);
|
|
8461
8461
|
return;
|
|
8462
8462
|
}
|
|
8463
|
+
if (curElement.formInput && curElement.formInput.type === "image") {
|
|
8464
|
+
editor.showFormImageConfig(curElement);
|
|
8465
|
+
return;
|
|
8466
|
+
}
|
|
8467
|
+
if (curElement.formInput && curElement.formInput.type === "signature") {
|
|
8468
|
+
editor.showFormSignatureConfig(curElement);
|
|
8469
|
+
return;
|
|
8470
|
+
}
|
|
8471
|
+
if (curElement.formInput && curElement.formInput.type === "seal") {
|
|
8472
|
+
editor.showFormSealConfig(curElement);
|
|
8473
|
+
return;
|
|
8474
|
+
}
|
|
8463
8475
|
editor.showFormInputConfig(curElement);
|
|
8464
8476
|
return;
|
|
8465
8477
|
}
|
|
@@ -16385,6 +16397,519 @@ function formInputPropertiesConfigDialog(el, editor) {
|
|
|
16385
16397
|
}
|
|
16386
16398
|
});
|
|
16387
16399
|
}
|
|
16400
|
+
function generateImagePropertiesImage(options) {
|
|
16401
|
+
const config = {
|
|
16402
|
+
key: "",
|
|
16403
|
+
width: 200,
|
|
16404
|
+
height: 150,
|
|
16405
|
+
picAutoFlag: false,
|
|
16406
|
+
picFillType: "default",
|
|
16407
|
+
borderColor: "#000000",
|
|
16408
|
+
borderWidth: 1,
|
|
16409
|
+
...options
|
|
16410
|
+
};
|
|
16411
|
+
const canvas = document.createElement("canvas");
|
|
16412
|
+
const ctx = canvas.getContext("2d");
|
|
16413
|
+
canvas.width = config.width;
|
|
16414
|
+
canvas.height = config.height;
|
|
16415
|
+
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
16416
|
+
ctx.fillStyle = "#ffffff";
|
|
16417
|
+
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
|
16418
|
+
ctx.strokeStyle = config.borderColor;
|
|
16419
|
+
ctx.lineWidth = config.borderWidth;
|
|
16420
|
+
ctx.strokeRect(
|
|
16421
|
+
config.borderWidth / 2,
|
|
16422
|
+
config.borderWidth / 2,
|
|
16423
|
+
config.width - config.borderWidth,
|
|
16424
|
+
config.height - config.borderWidth
|
|
16425
|
+
);
|
|
16426
|
+
const iconSize = 60;
|
|
16427
|
+
const iconX = (config.width - iconSize) / 2;
|
|
16428
|
+
const iconY = config.height / 2 - iconSize / 2 - 10;
|
|
16429
|
+
ctx.strokeStyle = "#999999";
|
|
16430
|
+
ctx.lineWidth = 2;
|
|
16431
|
+
ctx.strokeRect(iconX, iconY, iconSize, iconSize);
|
|
16432
|
+
ctx.fillStyle = "#cccccc";
|
|
16433
|
+
ctx.beginPath();
|
|
16434
|
+
ctx.moveTo(iconX + 10, iconY + iconSize - 10);
|
|
16435
|
+
ctx.lineTo(iconX + iconSize / 2, iconY + 15);
|
|
16436
|
+
ctx.lineTo(iconX + iconSize - 10, iconY + iconSize - 10);
|
|
16437
|
+
ctx.closePath();
|
|
16438
|
+
ctx.fill();
|
|
16439
|
+
ctx.fillStyle = "#ffcc00";
|
|
16440
|
+
ctx.beginPath();
|
|
16441
|
+
ctx.arc(iconX + iconSize - 20, iconY + 15, 8, 0, Math.PI * 2);
|
|
16442
|
+
ctx.fill();
|
|
16443
|
+
if (config.key) {
|
|
16444
|
+
ctx.font = "14px SimSun";
|
|
16445
|
+
ctx.fillStyle = "#000000";
|
|
16446
|
+
ctx.textAlign = "center";
|
|
16447
|
+
ctx.textBaseline = "middle";
|
|
16448
|
+
ctx.fillText(config.key, config.width / 2, iconY + iconSize + 20);
|
|
16449
|
+
}
|
|
16450
|
+
if (config.picAutoFlag) {
|
|
16451
|
+
ctx.font = "12px SimSun";
|
|
16452
|
+
ctx.fillStyle = "#5175f4";
|
|
16453
|
+
ctx.textAlign = "left";
|
|
16454
|
+
ctx.fillText("\u2713 \u81EA\u9002\u5E94", 10, config.height - 15);
|
|
16455
|
+
}
|
|
16456
|
+
const picFillTypeText = config.picFillType === "default" ? "\u9ED8\u8BA4\u5927\u5C0F" : config.picFillType === "split" ? "\u5206\u5272" : "\u987A\u5E8F";
|
|
16457
|
+
ctx.font = "12px SimSun";
|
|
16458
|
+
ctx.fillStyle = "#666666";
|
|
16459
|
+
ctx.textAlign = "right";
|
|
16460
|
+
ctx.fillText(`\u586B\u5145: ${picFillTypeText}`, config.width - 10, config.height - 15);
|
|
16461
|
+
return canvas.toDataURL("image/png");
|
|
16462
|
+
}
|
|
16463
|
+
function generateSignatureImage(options) {
|
|
16464
|
+
const config = {
|
|
16465
|
+
key: "",
|
|
16466
|
+
width: 200,
|
|
16467
|
+
height: 100,
|
|
16468
|
+
picAutoFlag: false,
|
|
16469
|
+
borderColor: "#000000",
|
|
16470
|
+
borderWidth: 1,
|
|
16471
|
+
...options
|
|
16472
|
+
};
|
|
16473
|
+
const canvas = document.createElement("canvas");
|
|
16474
|
+
const ctx = canvas.getContext("2d");
|
|
16475
|
+
canvas.width = config.width;
|
|
16476
|
+
canvas.height = config.height;
|
|
16477
|
+
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
16478
|
+
ctx.fillStyle = "#ffffff";
|
|
16479
|
+
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
|
16480
|
+
ctx.strokeStyle = config.borderColor;
|
|
16481
|
+
ctx.lineWidth = config.borderWidth;
|
|
16482
|
+
ctx.strokeRect(
|
|
16483
|
+
config.borderWidth / 2,
|
|
16484
|
+
config.borderWidth / 2,
|
|
16485
|
+
config.width - config.borderWidth,
|
|
16486
|
+
config.height - config.borderWidth
|
|
16487
|
+
);
|
|
16488
|
+
const iconSize = 50;
|
|
16489
|
+
const iconX = (config.width - iconSize) / 2;
|
|
16490
|
+
const iconY = config.height / 2 - iconSize / 2 - 5;
|
|
16491
|
+
ctx.fillStyle = "#4a90e2";
|
|
16492
|
+
ctx.beginPath();
|
|
16493
|
+
ctx.moveTo(iconX + 10, iconY + iconSize);
|
|
16494
|
+
ctx.lineTo(iconX + iconSize - 10, iconY + 10);
|
|
16495
|
+
ctx.lineTo(iconX + iconSize, iconY + 15);
|
|
16496
|
+
ctx.lineTo(iconX + 15, iconY + iconSize + 5);
|
|
16497
|
+
ctx.closePath();
|
|
16498
|
+
ctx.fill();
|
|
16499
|
+
ctx.fillStyle = "#333333";
|
|
16500
|
+
ctx.beginPath();
|
|
16501
|
+
ctx.moveTo(iconX + 10, iconY + iconSize);
|
|
16502
|
+
ctx.lineTo(iconX + 15, iconY + iconSize + 5);
|
|
16503
|
+
ctx.lineTo(iconX + 5, iconY + iconSize + 8);
|
|
16504
|
+
ctx.closePath();
|
|
16505
|
+
ctx.fill();
|
|
16506
|
+
if (config.key) {
|
|
16507
|
+
ctx.font = "14px SimSun";
|
|
16508
|
+
ctx.fillStyle = "#000000";
|
|
16509
|
+
ctx.textAlign = "center";
|
|
16510
|
+
ctx.textBaseline = "middle";
|
|
16511
|
+
ctx.fillText(config.key, config.width / 2, iconY + iconSize + 20);
|
|
16512
|
+
}
|
|
16513
|
+
if (config.picAutoFlag) {
|
|
16514
|
+
ctx.font = "12px SimSun";
|
|
16515
|
+
ctx.fillStyle = "#5175f4";
|
|
16516
|
+
ctx.textAlign = "left";
|
|
16517
|
+
ctx.fillText("\u2713 \u81EA\u9002\u5E94", 10, config.height - 15);
|
|
16518
|
+
}
|
|
16519
|
+
ctx.font = "12px SimSun";
|
|
16520
|
+
ctx.fillStyle = "#666666";
|
|
16521
|
+
ctx.textAlign = "right";
|
|
16522
|
+
ctx.fillText("\u7B7E\u5B57\u6846", config.width - 10, config.height - 15);
|
|
16523
|
+
return canvas.toDataURL("image/png");
|
|
16524
|
+
}
|
|
16525
|
+
function generateSealImage(options) {
|
|
16526
|
+
const config = {
|
|
16527
|
+
key: "",
|
|
16528
|
+
width: 200,
|
|
16529
|
+
height: 100,
|
|
16530
|
+
picAutoFlag: false,
|
|
16531
|
+
borderColor: "#000000",
|
|
16532
|
+
borderWidth: 1,
|
|
16533
|
+
...options
|
|
16534
|
+
};
|
|
16535
|
+
const canvas = document.createElement("canvas");
|
|
16536
|
+
const ctx = canvas.getContext("2d");
|
|
16537
|
+
canvas.width = config.width;
|
|
16538
|
+
canvas.height = config.height;
|
|
16539
|
+
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
16540
|
+
ctx.fillStyle = "#ffffff";
|
|
16541
|
+
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
|
16542
|
+
ctx.strokeStyle = config.borderColor;
|
|
16543
|
+
ctx.lineWidth = config.borderWidth;
|
|
16544
|
+
ctx.strokeRect(
|
|
16545
|
+
config.borderWidth / 2,
|
|
16546
|
+
config.borderWidth / 2,
|
|
16547
|
+
config.width - config.borderWidth,
|
|
16548
|
+
config.height - config.borderWidth
|
|
16549
|
+
);
|
|
16550
|
+
const iconSize = 50;
|
|
16551
|
+
const iconX = (config.width - iconSize) / 2;
|
|
16552
|
+
const iconY = config.height / 2 - iconSize / 2 - 5;
|
|
16553
|
+
const centerX = iconX + iconSize / 2;
|
|
16554
|
+
const centerY = iconY + iconSize / 2;
|
|
16555
|
+
ctx.strokeStyle = "#e74c3c";
|
|
16556
|
+
ctx.lineWidth = 2.5;
|
|
16557
|
+
ctx.beginPath();
|
|
16558
|
+
ctx.arc(centerX, centerY, iconSize / 2 - 5, 0, Math.PI * 2);
|
|
16559
|
+
ctx.stroke();
|
|
16560
|
+
ctx.strokeStyle = "#e74c3c";
|
|
16561
|
+
ctx.lineWidth = 1.5;
|
|
16562
|
+
ctx.beginPath();
|
|
16563
|
+
ctx.arc(centerX, centerY, iconSize / 2 - 10, 0, Math.PI * 2);
|
|
16564
|
+
ctx.stroke();
|
|
16565
|
+
ctx.fillStyle = "#e74c3c";
|
|
16566
|
+
ctx.font = "bold 16px SimSun";
|
|
16567
|
+
ctx.textAlign = "center";
|
|
16568
|
+
ctx.textBaseline = "middle";
|
|
16569
|
+
ctx.fillText("\u7AE0", centerX, centerY);
|
|
16570
|
+
if (config.key) {
|
|
16571
|
+
ctx.font = "14px SimSun";
|
|
16572
|
+
ctx.fillStyle = "#000000";
|
|
16573
|
+
ctx.textAlign = "center";
|
|
16574
|
+
ctx.textBaseline = "middle";
|
|
16575
|
+
ctx.fillText(config.key, config.width / 2, iconY + iconSize + 20);
|
|
16576
|
+
}
|
|
16577
|
+
if (config.picAutoFlag) {
|
|
16578
|
+
ctx.font = "12px SimSun";
|
|
16579
|
+
ctx.fillStyle = "#5175f4";
|
|
16580
|
+
ctx.textAlign = "left";
|
|
16581
|
+
ctx.fillText("\u2713 \u81EA\u9002\u5E94", 10, config.height - 15);
|
|
16582
|
+
}
|
|
16583
|
+
ctx.font = "12px SimSun";
|
|
16584
|
+
ctx.fillStyle = "#666666";
|
|
16585
|
+
ctx.textAlign = "right";
|
|
16586
|
+
ctx.fillText("\u7B7E\u7AE0\u6846", config.width - 10, config.height - 15);
|
|
16587
|
+
return canvas.toDataURL("image/png");
|
|
16588
|
+
}
|
|
16589
|
+
function formImagePropertiesConfigDialog(el, editor) {
|
|
16590
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
16591
|
+
console.log("el", el);
|
|
16592
|
+
new Dialog({
|
|
16593
|
+
title: "\u56FE\u7247\u5C5E\u6027\u914D\u7F6E",
|
|
16594
|
+
data: [
|
|
16595
|
+
{
|
|
16596
|
+
type: "select",
|
|
16597
|
+
label: "\u5143\u7D20\u540D\u79F0",
|
|
16598
|
+
name: "key",
|
|
16599
|
+
required: true,
|
|
16600
|
+
value: (_b = (_a = el == null ? void 0 : el.formInput) == null ? void 0 : _a.key) != null ? _b : "",
|
|
16601
|
+
placeholder: "\u8BF7\u9009\u62E9\u5143\u7D20\u540D\u79F0",
|
|
16602
|
+
options: editor.getExtensionParam("formInputKeys") == void 0 || editor.getExtensionParam("formInputKeys") == null ? [] : editor.getExtensionParam("formInputKeys")
|
|
16603
|
+
},
|
|
16604
|
+
{
|
|
16605
|
+
type: "number",
|
|
16606
|
+
label: "\u5BBD\u5EA6 (px)",
|
|
16607
|
+
name: "width",
|
|
16608
|
+
required: true,
|
|
16609
|
+
placeholder: "\u8BF7\u8F93\u5165\u5BBD\u5EA6",
|
|
16610
|
+
value: (_d = (_c = el == null ? void 0 : el.formInput) == null ? void 0 : _c.width) != null ? _d : "200"
|
|
16611
|
+
},
|
|
16612
|
+
{
|
|
16613
|
+
type: "number",
|
|
16614
|
+
label: "\u9AD8\u5EA6 (px)",
|
|
16615
|
+
name: "height",
|
|
16616
|
+
required: true,
|
|
16617
|
+
placeholder: "\u8BF7\u8F93\u5165\u9AD8\u5EA6",
|
|
16618
|
+
value: (_f = (_e = el == null ? void 0 : el.formInput) == null ? void 0 : _e.height) != null ? _f : "150"
|
|
16619
|
+
},
|
|
16620
|
+
{
|
|
16621
|
+
type: "select",
|
|
16622
|
+
label: "\u662F\u5426\u81EA\u9002\u5E94",
|
|
16623
|
+
name: "picAutoFlag",
|
|
16624
|
+
required: false,
|
|
16625
|
+
value: ((_g = el == null ? void 0 : el.formInput) == null ? void 0 : _g.picAutoFlag) ? "0" : "1",
|
|
16626
|
+
options: [
|
|
16627
|
+
{
|
|
16628
|
+
label: "\u5426",
|
|
16629
|
+
value: "1"
|
|
16630
|
+
},
|
|
16631
|
+
{
|
|
16632
|
+
label: "\u662F",
|
|
16633
|
+
value: "0"
|
|
16634
|
+
}
|
|
16635
|
+
]
|
|
16636
|
+
},
|
|
16637
|
+
{
|
|
16638
|
+
type: "select",
|
|
16639
|
+
label: "\u56FE\u7247\u586B\u5145\u914D\u7F6E",
|
|
16640
|
+
name: "picFillType",
|
|
16641
|
+
required: true,
|
|
16642
|
+
value: (_i = (_h = el == null ? void 0 : el.formInput) == null ? void 0 : _h.picFillType) != null ? _i : "0",
|
|
16643
|
+
options: [
|
|
16644
|
+
{
|
|
16645
|
+
label: "\u9ED8\u8BA4\u5927\u5C0F",
|
|
16646
|
+
value: "0"
|
|
16647
|
+
},
|
|
16648
|
+
{
|
|
16649
|
+
label: "\u5206\u5272",
|
|
16650
|
+
value: "1"
|
|
16651
|
+
},
|
|
16652
|
+
{
|
|
16653
|
+
label: "\u987A\u5E8F",
|
|
16654
|
+
value: "2"
|
|
16655
|
+
}
|
|
16656
|
+
]
|
|
16657
|
+
}
|
|
16658
|
+
],
|
|
16659
|
+
onConfirm: (payload) => {
|
|
16660
|
+
var _a2, _b2, _c2, _d2, _e2;
|
|
16661
|
+
console.log("payload: ", payload);
|
|
16662
|
+
const key = (_a2 = payload.find((p) => p.name === "key")) == null ? void 0 : _a2.value;
|
|
16663
|
+
if (!key)
|
|
16664
|
+
return;
|
|
16665
|
+
const width = (_b2 = payload.find((p) => p.name === "width")) == null ? void 0 : _b2.value;
|
|
16666
|
+
if (!width)
|
|
16667
|
+
return;
|
|
16668
|
+
const height = (_c2 = payload.find((p) => p.name === "height")) == null ? void 0 : _c2.value;
|
|
16669
|
+
if (!height)
|
|
16670
|
+
return;
|
|
16671
|
+
const picAutoFlag = ((_d2 = payload.find((p) => p.name === "picAutoFlag")) == null ? void 0 : _d2.value) === "true";
|
|
16672
|
+
const picFillType = ((_e2 = payload.find((p) => p.name === "picFillType")) == null ? void 0 : _e2.value) || "default";
|
|
16673
|
+
const type = "image";
|
|
16674
|
+
const formInputKeys = editor.getExtensionParam("formInputKeys");
|
|
16675
|
+
const item = formInputKeys.find((item2) => item2.value === key);
|
|
16676
|
+
const elemProp = item ? JSON.stringify(item) : "";
|
|
16677
|
+
const formInput = {
|
|
16678
|
+
key,
|
|
16679
|
+
width,
|
|
16680
|
+
height,
|
|
16681
|
+
type,
|
|
16682
|
+
picAutoFlag,
|
|
16683
|
+
picFillType,
|
|
16684
|
+
elemProp
|
|
16685
|
+
};
|
|
16686
|
+
const imageDataUrl = generateImagePropertiesImage({
|
|
16687
|
+
key,
|
|
16688
|
+
width: Number(width),
|
|
16689
|
+
height: Number(height),
|
|
16690
|
+
picAutoFlag,
|
|
16691
|
+
picFillType
|
|
16692
|
+
});
|
|
16693
|
+
const param = {
|
|
16694
|
+
value: imageDataUrl,
|
|
16695
|
+
type: ElementType.IMAGE,
|
|
16696
|
+
formInput,
|
|
16697
|
+
width: Number(width),
|
|
16698
|
+
height: Number(height)
|
|
16699
|
+
};
|
|
16700
|
+
if (el == null ? void 0 : el.id) {
|
|
16701
|
+
const updateOpt = {
|
|
16702
|
+
id: el.id,
|
|
16703
|
+
properties: param
|
|
16704
|
+
};
|
|
16705
|
+
console.log("updateOpt", updateOpt);
|
|
16706
|
+
editor.command.executeUpdateElementById(updateOpt);
|
|
16707
|
+
return;
|
|
16708
|
+
}
|
|
16709
|
+
editor.command.executeInsertElementList([param]);
|
|
16710
|
+
}
|
|
16711
|
+
});
|
|
16712
|
+
}
|
|
16713
|
+
function formSignatureConfigDialog(el, editor) {
|
|
16714
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
16715
|
+
console.log("el", el);
|
|
16716
|
+
new Dialog({
|
|
16717
|
+
title: "\u7B7E\u5B57\u6846\u914D\u7F6E",
|
|
16718
|
+
data: [
|
|
16719
|
+
{
|
|
16720
|
+
type: "select",
|
|
16721
|
+
label: "\u5143\u7D20\u540D\u79F0",
|
|
16722
|
+
name: "key",
|
|
16723
|
+
required: true,
|
|
16724
|
+
value: (_b = (_a = el == null ? void 0 : el.formInput) == null ? void 0 : _a.key) != null ? _b : "",
|
|
16725
|
+
placeholder: "\u8BF7\u9009\u62E9\u5143\u7D20\u540D\u79F0",
|
|
16726
|
+
options: editor.getExtensionParam("formInputKeys") == void 0 || editor.getExtensionParam("formInputKeys") == null ? [] : editor.getExtensionParam("formInputKeys")
|
|
16727
|
+
},
|
|
16728
|
+
{
|
|
16729
|
+
type: "number",
|
|
16730
|
+
label: "\u5BBD\u5EA6 (px)",
|
|
16731
|
+
name: "width",
|
|
16732
|
+
required: true,
|
|
16733
|
+
placeholder: "\u8BF7\u8F93\u5165\u5BBD\u5EA6",
|
|
16734
|
+
value: (_d = (_c = el == null ? void 0 : el.formInput) == null ? void 0 : _c.width) != null ? _d : "200"
|
|
16735
|
+
},
|
|
16736
|
+
{
|
|
16737
|
+
type: "number",
|
|
16738
|
+
label: "\u9AD8\u5EA6 (px)",
|
|
16739
|
+
name: "height",
|
|
16740
|
+
required: true,
|
|
16741
|
+
placeholder: "\u8BF7\u8F93\u5165\u9AD8\u5EA6",
|
|
16742
|
+
value: (_f = (_e = el == null ? void 0 : el.formInput) == null ? void 0 : _e.height) != null ? _f : "100"
|
|
16743
|
+
},
|
|
16744
|
+
{
|
|
16745
|
+
type: "select",
|
|
16746
|
+
label: "\u662F\u5426\u81EA\u9002\u5E94",
|
|
16747
|
+
name: "picAutoFlag",
|
|
16748
|
+
required: false,
|
|
16749
|
+
value: ((_g = el == null ? void 0 : el.formInput) == null ? void 0 : _g.picAutoFlag) ? "0" : "1",
|
|
16750
|
+
options: [
|
|
16751
|
+
{
|
|
16752
|
+
label: "\u5426",
|
|
16753
|
+
value: "1"
|
|
16754
|
+
},
|
|
16755
|
+
{
|
|
16756
|
+
label: "\u662F",
|
|
16757
|
+
value: "0"
|
|
16758
|
+
}
|
|
16759
|
+
]
|
|
16760
|
+
}
|
|
16761
|
+
],
|
|
16762
|
+
onConfirm: (payload) => {
|
|
16763
|
+
var _a2, _b2, _c2, _d2;
|
|
16764
|
+
console.log("payload: ", payload);
|
|
16765
|
+
const key = (_a2 = payload.find((p) => p.name === "key")) == null ? void 0 : _a2.value;
|
|
16766
|
+
if (!key)
|
|
16767
|
+
return;
|
|
16768
|
+
const width = (_b2 = payload.find((p) => p.name === "width")) == null ? void 0 : _b2.value;
|
|
16769
|
+
if (!width)
|
|
16770
|
+
return;
|
|
16771
|
+
const height = (_c2 = payload.find((p) => p.name === "height")) == null ? void 0 : _c2.value;
|
|
16772
|
+
if (!height)
|
|
16773
|
+
return;
|
|
16774
|
+
const picAutoFlag = ((_d2 = payload.find((p) => p.name === "picAutoFlag")) == null ? void 0 : _d2.value) === "0";
|
|
16775
|
+
const type = "signature";
|
|
16776
|
+
const formInputKeys = editor.getExtensionParam("formInputKeys");
|
|
16777
|
+
const item = formInputKeys.find((item2) => item2.value === key);
|
|
16778
|
+
const elemProp = item ? JSON.stringify(item) : "";
|
|
16779
|
+
const formInput = {
|
|
16780
|
+
key,
|
|
16781
|
+
width,
|
|
16782
|
+
height,
|
|
16783
|
+
type,
|
|
16784
|
+
picAutoFlag,
|
|
16785
|
+
elemProp
|
|
16786
|
+
};
|
|
16787
|
+
const imageDataUrl = generateSignatureImage({
|
|
16788
|
+
key,
|
|
16789
|
+
width: Number(width),
|
|
16790
|
+
height: Number(height),
|
|
16791
|
+
picAutoFlag
|
|
16792
|
+
});
|
|
16793
|
+
const param = {
|
|
16794
|
+
value: imageDataUrl,
|
|
16795
|
+
type: ElementType.IMAGE,
|
|
16796
|
+
formInput,
|
|
16797
|
+
width: Number(width),
|
|
16798
|
+
height: Number(height)
|
|
16799
|
+
};
|
|
16800
|
+
if (el == null ? void 0 : el.id) {
|
|
16801
|
+
const updateOpt = {
|
|
16802
|
+
id: el.id,
|
|
16803
|
+
properties: param
|
|
16804
|
+
};
|
|
16805
|
+
console.log("updateOpt", updateOpt);
|
|
16806
|
+
editor.command.executeUpdateElementById(updateOpt);
|
|
16807
|
+
return;
|
|
16808
|
+
}
|
|
16809
|
+
editor.command.executeInsertElementList([param]);
|
|
16810
|
+
}
|
|
16811
|
+
});
|
|
16812
|
+
}
|
|
16813
|
+
function formSealConfigDialog(el, editor) {
|
|
16814
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
16815
|
+
console.log("el", el);
|
|
16816
|
+
new Dialog({
|
|
16817
|
+
title: "\u7B7E\u7AE0\u6846\u914D\u7F6E",
|
|
16818
|
+
data: [
|
|
16819
|
+
{
|
|
16820
|
+
type: "select",
|
|
16821
|
+
label: "\u5143\u7D20\u540D\u79F0",
|
|
16822
|
+
name: "key",
|
|
16823
|
+
required: true,
|
|
16824
|
+
value: (_b = (_a = el == null ? void 0 : el.formInput) == null ? void 0 : _a.key) != null ? _b : "",
|
|
16825
|
+
placeholder: "\u8BF7\u9009\u62E9\u5143\u7D20\u540D\u79F0",
|
|
16826
|
+
options: editor.getExtensionParam("formInputKeys") == void 0 || editor.getExtensionParam("formInputKeys") == null ? [] : editor.getExtensionParam("formInputKeys")
|
|
16827
|
+
},
|
|
16828
|
+
{
|
|
16829
|
+
type: "number",
|
|
16830
|
+
label: "\u5BBD\u5EA6 (px)",
|
|
16831
|
+
name: "width",
|
|
16832
|
+
required: true,
|
|
16833
|
+
placeholder: "\u8BF7\u8F93\u5165\u5BBD\u5EA6",
|
|
16834
|
+
value: (_d = (_c = el == null ? void 0 : el.formInput) == null ? void 0 : _c.width) != null ? _d : "200"
|
|
16835
|
+
},
|
|
16836
|
+
{
|
|
16837
|
+
type: "number",
|
|
16838
|
+
label: "\u9AD8\u5EA6 (px)",
|
|
16839
|
+
name: "height",
|
|
16840
|
+
required: true,
|
|
16841
|
+
placeholder: "\u8BF7\u8F93\u5165\u9AD8\u5EA6",
|
|
16842
|
+
value: (_f = (_e = el == null ? void 0 : el.formInput) == null ? void 0 : _e.height) != null ? _f : "100"
|
|
16843
|
+
},
|
|
16844
|
+
{
|
|
16845
|
+
type: "select",
|
|
16846
|
+
label: "\u662F\u5426\u81EA\u9002\u5E94",
|
|
16847
|
+
name: "picAutoFlag",
|
|
16848
|
+
required: false,
|
|
16849
|
+
value: ((_g = el == null ? void 0 : el.formInput) == null ? void 0 : _g.picAutoFlag) ? "0" : "1",
|
|
16850
|
+
options: [
|
|
16851
|
+
{
|
|
16852
|
+
label: "\u5426",
|
|
16853
|
+
value: "1"
|
|
16854
|
+
},
|
|
16855
|
+
{
|
|
16856
|
+
label: "\u662F",
|
|
16857
|
+
value: "0"
|
|
16858
|
+
}
|
|
16859
|
+
]
|
|
16860
|
+
}
|
|
16861
|
+
],
|
|
16862
|
+
onConfirm: (payload) => {
|
|
16863
|
+
var _a2, _b2, _c2, _d2;
|
|
16864
|
+
console.log("payload: ", payload);
|
|
16865
|
+
const key = (_a2 = payload.find((p) => p.name === "key")) == null ? void 0 : _a2.value;
|
|
16866
|
+
if (!key)
|
|
16867
|
+
return;
|
|
16868
|
+
const width = (_b2 = payload.find((p) => p.name === "width")) == null ? void 0 : _b2.value;
|
|
16869
|
+
if (!width)
|
|
16870
|
+
return;
|
|
16871
|
+
const height = (_c2 = payload.find((p) => p.name === "height")) == null ? void 0 : _c2.value;
|
|
16872
|
+
if (!height)
|
|
16873
|
+
return;
|
|
16874
|
+
const picAutoFlag = ((_d2 = payload.find((p) => p.name === "picAutoFlag")) == null ? void 0 : _d2.value) === "0";
|
|
16875
|
+
const type = "seal";
|
|
16876
|
+
const formInputKeys = editor.getExtensionParam("formInputKeys");
|
|
16877
|
+
const item = formInputKeys.find((item2) => item2.value === key);
|
|
16878
|
+
const elemProp = item ? JSON.stringify(item) : "";
|
|
16879
|
+
const formInput = {
|
|
16880
|
+
key,
|
|
16881
|
+
width,
|
|
16882
|
+
height,
|
|
16883
|
+
type,
|
|
16884
|
+
picAutoFlag,
|
|
16885
|
+
elemProp
|
|
16886
|
+
};
|
|
16887
|
+
const imageDataUrl = generateSealImage({
|
|
16888
|
+
key,
|
|
16889
|
+
width: Number(width),
|
|
16890
|
+
height: Number(height),
|
|
16891
|
+
picAutoFlag
|
|
16892
|
+
});
|
|
16893
|
+
const param = {
|
|
16894
|
+
value: imageDataUrl,
|
|
16895
|
+
type: ElementType.IMAGE,
|
|
16896
|
+
formInput,
|
|
16897
|
+
width: Number(width),
|
|
16898
|
+
height: Number(height)
|
|
16899
|
+
};
|
|
16900
|
+
if (el == null ? void 0 : el.id) {
|
|
16901
|
+
const updateOpt = {
|
|
16902
|
+
id: el.id,
|
|
16903
|
+
properties: param
|
|
16904
|
+
};
|
|
16905
|
+
console.log("updateOpt", updateOpt);
|
|
16906
|
+
editor.command.executeUpdateElementById(updateOpt);
|
|
16907
|
+
return;
|
|
16908
|
+
}
|
|
16909
|
+
editor.command.executeInsertElementList([param]);
|
|
16910
|
+
}
|
|
16911
|
+
});
|
|
16912
|
+
}
|
|
16388
16913
|
class Previewer {
|
|
16389
16914
|
constructor(draw) {
|
|
16390
16915
|
this._keydown = () => {
|
|
@@ -16499,6 +17024,12 @@ class Previewer {
|
|
|
16499
17024
|
this.curElementSrc = generateCheckboxImage(this.curElement.formInput);
|
|
16500
17025
|
} else if (this.curElement.formInput.type == "radio") {
|
|
16501
17026
|
this.curElementSrc = generateRadioImage(this.curElement.formInput);
|
|
17027
|
+
} else if (this.curElement.formInput.type == "image") {
|
|
17028
|
+
this.curElementSrc = generateImagePropertiesImage(this.curElement.formInput);
|
|
17029
|
+
} else if (this.curElement.formInput.type == "signature") {
|
|
17030
|
+
this.curElementSrc = generateSignatureImage(this.curElement.formInput);
|
|
17031
|
+
} else if (this.curElement.formInput.type == "seal") {
|
|
17032
|
+
this.curElementSrc = generateSealImage(this.curElement.formInput);
|
|
16502
17033
|
} else {
|
|
16503
17034
|
this.curElementSrc = generateTextImage({
|
|
16504
17035
|
text: this.curElement.formInput.key,
|
|
@@ -16529,6 +17060,12 @@ class Previewer {
|
|
|
16529
17060
|
this.curElementSrc = generateCheckboxImage(this.curElement.formInput);
|
|
16530
17061
|
} else if (this.curElement.formInput.type == "radio") {
|
|
16531
17062
|
this.curElementSrc = generateRadioImage(this.curElement.formInput);
|
|
17063
|
+
} else if (this.curElement.formInput.type == "image") {
|
|
17064
|
+
this.curElementSrc = generateImagePropertiesImage(this.curElement.formInput);
|
|
17065
|
+
} else if (this.curElement.formInput.type == "signature") {
|
|
17066
|
+
this.curElementSrc = generateSignatureImage(this.curElement.formInput);
|
|
17067
|
+
} else if (this.curElement.formInput.type == "seal") {
|
|
17068
|
+
this.curElementSrc = generateSealImage(this.curElement.formInput);
|
|
16532
17069
|
} else {
|
|
16533
17070
|
this.curElementSrc = generateTextImage({
|
|
16534
17071
|
text: this.curElement.formInput.key,
|
|
@@ -25208,6 +25745,15 @@ class Editor {
|
|
|
25208
25745
|
showFormRadioConfig(el) {
|
|
25209
25746
|
formRadioPropertiesConfigDialog(el, this);
|
|
25210
25747
|
}
|
|
25748
|
+
showFormImageConfig(el) {
|
|
25749
|
+
formImagePropertiesConfigDialog(el, this);
|
|
25750
|
+
}
|
|
25751
|
+
showFormSignatureConfig(el) {
|
|
25752
|
+
formSignatureConfigDialog(el, this);
|
|
25753
|
+
}
|
|
25754
|
+
showFormSealConfig(el) {
|
|
25755
|
+
formSealConfigDialog(el, this);
|
|
25756
|
+
}
|
|
25211
25757
|
setExtensionParam(key, value) {
|
|
25212
25758
|
this.extensionParams.set(key, value);
|
|
25213
25759
|
}
|
|
@@ -25291,5 +25837,5 @@ class Editor {
|
|
|
25291
25837
|
Reflect.set(window, "editor", this);
|
|
25292
25838
|
}
|
|
25293
25839
|
}
|
|
25294
|
-
export { AreaMode, BackgroundRepeat, BackgroundSize, BlockType, Command, ControlComponent, ControlIndentation, ControlState, ControlType, EDITOR_CLIPBOARD, EDITOR_COMPONENT, Editor, EditorComponent, EditorMode, EditorZone, ElementType, FlexDirection, INTERNAL_CONTEXT_MENU_KEY, INTERNAL_SHORTCUT_KEY, ImageDisplay, KeyMap, LETTER_CLASS, LineNumberType, ListStyle, ListType, LocationPosition, MaxHeightRatio, NumberType, PageMode, PaperDirection, RenderMode, RowFlex, TableBorder, TdBorder, TdSlash, TextDecorationStyle, TitleLevel, VerticalAlign, WatermarkType, WordBreak, createDomFromElementList, Editor as default, formCheckboxPropertiesConfigDialog, formInputPropertiesConfigDialog, formRadioPropertiesConfigDialog, getElementListByHTML, getTextFromElementList, splitText };
|
|
25840
|
+
export { AreaMode, BackgroundRepeat, BackgroundSize, BlockType, Command, ControlComponent, ControlIndentation, ControlState, ControlType, EDITOR_CLIPBOARD, EDITOR_COMPONENT, Editor, EditorComponent, EditorMode, EditorZone, ElementType, FlexDirection, INTERNAL_CONTEXT_MENU_KEY, INTERNAL_SHORTCUT_KEY, ImageDisplay, KeyMap, LETTER_CLASS, LineNumberType, ListStyle, ListType, LocationPosition, MaxHeightRatio, NumberType, PageMode, PaperDirection, RenderMode, RowFlex, TableBorder, TdBorder, TdSlash, TextDecorationStyle, TitleLevel, VerticalAlign, WatermarkType, WordBreak, createDomFromElementList, Editor as default, formCheckboxPropertiesConfigDialog, formImagePropertiesConfigDialog, formInputPropertiesConfigDialog, formRadioPropertiesConfigDialog, formSealConfigDialog, formSignatureConfigDialog, getElementListByHTML, getTextFromElementList, splitText };
|
|
25295
25841
|
//# sourceMappingURL=canvas-editor.es.js.map
|