pom-text-editor 0.2.25 → 0.2.27

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.
@@ -1,5 +1,5 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('.heading{content:"H"}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.absolute{position:absolute}.relative{position:relative}.inset-y-0{top:0;bottom:0}.right-2{right:.5rem}.z-10{z-index:10}.m-1{margin:.25rem}.m-3{margin:.75rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.-mr-1{margin-right:-.25rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-\\[3vh\\]{height:3vh}.w-\\[12vw\\]{width:12vw}.w-\\[6vw\\]{width:6vw}.w-full{width:100%}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.gap-1{gap:.25rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-b-2{border-bottom-width:2px}.border-t-2{border-top-width:2px}.border-none{border-style:none}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.italic{font-style:italic}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.display-color{border:1px solid #ccc;text-align:center;font-size:18px;background-color:#f0f0f0;position:relative;display:inline-block;cursor:pointer}.color-container{width:25vw;display:none;position:absolute;z-index:9999;background-color:#fff;padding:1px;box-shadow:0 4px 6px #0000001a;border:1px solid #ccc;border-radius:5px;transition:opacity .3s ease,visibility .3s ease}.display-color:hover+.color-container,.display-color:active+.color-container{display:block}.color-container:hover{display:block;box-shadow:0 4px 8px #0000001a;padding:14px}.color-grid{display:flex;flex-wrap:wrap;gap:5px}.pom-editor-menu-fonts{display:none;position:absolute}.showfontFamilyMenu:hover+.pom-editor-menu-fonts,.pom-editor-menu-fonts:hover{display:inline-block}.pom-editor-menu-fonts div:hover{border:#c8c8c821 1px solid;background:#eae6e623;color:#000;width:100%;box-shadow:4px 14px 28px -15px #2c2c2cbb;-webkit-box-shadow:4px 14px 28px -15px rgba(44,44,44,.734);-moz-box-shadow:4px 14px 28px -15px rgba(44,44,44,.734)}.pom-editor-menu:hover{display:block}.pom-editor-menu{display:none;background-color:#fff;border-radius:12px;box-shadow:0 4px 8px #0000001a;width:28vw;height:41vh;overflow:auto}.color-box{width:50px;height:50px;border-radius:8px;transition:transform .3s,box-shadow .3s;cursor:pointer}.color-box:hover{transform:scale(1.1);box-shadow:0 6px 12px #0003}#fullTextEditor .card{padding:2em}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}#fullTextEditor a:hover{color:#747bff}#fullTextEditor button{background-color:#f9f9f9}}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.group:hover .group-hover\\:block{display:block}.editor[data-v-367a2559]:empty:before{content:attr(data-placeholder);color:#aaa;left:10px;top:10px;pointer-events:none;font-size:19px}.editor[data-v-367a2559]:focus:before{content:none}.table-picker-wrapper[data-v-367a2559]{position:relative;display:inline-block}.table-picker-trigger[data-v-367a2559]{cursor:pointer;display:flex;align-items:center}.table-picker-container[data-v-367a2559]{position:absolute;top:10%;right:90;margin-top:10px;padding:10px;border:0;background-color:#f4f4f4;cursor:pointer;-webkit-user-select:none;user-select:none;width:max-content;display:none;left:85%!important;top:-7px}.table-picker-wrapper:hover .table-picker-container[data-v-367a2559]{display:block}.table-picker-grid[data-v-367a2559]{display:grid;grid-template-columns:repeat(10,20px);grid-template-rows:repeat(10,20px);gap:2px;margin-bottom:10px}.table-picker-grid div[data-v-367a2559]{width:20px;height:20px;border:1px solid #ddd;background-color:#efa153ce}.table-picker-grid div[data-v-367a2559]:hover{background-color:#f8f6f6;border:0}.table-dimensions[data-v-367a2559]{font-size:12px;color:#333}.pomXEditor[data-v-367a2559]{border:1px;border-style:solid;border-color:#6972734e}#editor[data-v-367a2559]:focus{outline:none;border:none}.pom-table-editor-container[data-v-367a2559]{display:flex}.pom-table-editor-container a[data-v-367a2559]{color:#00f;text-decoration:underline;cursor:pointer}.pom-table-editor-container a[data-v-367a2559]:link{color:#00f}.pom-table-editor-container a[data-v-367a2559]:visited{color:purple}.pom-table-editor-container a[data-v-367a2559]:hover{color:red;text-decoration:none}.pom-table-editor-container a[data-v-367a2559]:active{color:orange}@media print{.hideonprint[data-v-367a2559]{display:none!important}[data-v-367a2559]{overflow:hidden}}/*!\n * Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n * Copyright 2024 Fonticons, Inc.\n */.pom-main-element-container .editor[data-v-c5407d12]:empty:before{content:attr(data-placeholder);color:#aaa;left:10px;top:10px;pointer-events:none;font-size:19px}.pom-main-element-container .editor[data-v-c5407d12]:focus:before{content:none}.pom-main-element-container .table-picker-wrapper[data-v-c5407d12]{position:relative;display:inline-block}.pom-main-element-container .table-picker-trigger[data-v-c5407d12]{cursor:pointer;display:flex;align-items:center}.pom-main-element-container .table-picker-container[data-v-c5407d12]{position:absolute;top:10%;right:90;margin-top:10px;padding:10px;border:0;background-color:#f4f4f4;cursor:pointer;-webkit-user-select:none;user-select:none;width:max-content;display:none;left:85%!important;top:-7px}.pom-main-element-container .table-picker-wrapper:hover .table-picker-container[data-v-c5407d12]{display:block}.pom-main-element-container .table-picker-grid[data-v-c5407d12]{display:grid;grid-template-columns:repeat(10,20px);grid-template-rows:repeat(10,20px);gap:2px;margin-bottom:10px}.pom-main-element-container .table-picker-grid div[data-v-c5407d12]{width:20px;height:20px;border:1px solid #ddd;background-color:#efa153ce}.pom-main-element-container .table-picker-grid div[data-v-c5407d12]:hover{background-color:#f8f6f6;border:0}.table-dimensions[data-v-c5407d12]{font-size:12px;color:#333}.pom-main-element-container .pomXEditor[data-v-c5407d12]{border:1px;border-style:solid;border-color:#6972734e}.pom-main-element-container #editor[data-v-c5407d12]:focus{outline:none;border:none}.pom-main-element-container .pom-table-editor-container[data-v-c5407d12]{display:flex}.pom-main-element-container .pom-table-editor-container a[data-v-c5407d12]{color:#00f;text-decoration:underline;cursor:pointer}.pom-main-element-container .pom-table-editor-container a[data-v-c5407d12]:link{color:#00f}.pom-main-element-container .pom-table-editor-container a[data-v-c5407d12]:visited{color:purple}.pom-main-element-container .pom-table-editor-container a[data-v-c5407d12]:hover{color:red;text-decoration:none}.pom-main-element-container .pom-table-editor-container a[data-v-c5407d12]:active{color:orange}@media print{.hideonprint[data-v-c5407d12]{display:none!important}[data-v-c5407d12]{overflow:hidden}}.pom-main-element-container .editor[data-v-c5407d12]{padding:10px;border:1px solid #ccc;min-height:200px}.pom-main-element-container .resizable-image[data-v-c5407d12]{max-width:100%;resize:both;overflow:auto;display:block;cursor:nwse-resize}.pom-main-element-container[data-v-c5407d12] ::-webkit-scrollbar{width:12px;height:12px}.pom-main-element-container[data-v-c5407d12] ::-webkit-scrollbar-track{background:#f1f1f1}.pom-main-element-container[data-v-c5407d12] ::-webkit-scrollbar-thumb{background-color:#888;border-radius:6px;border:3px solid #f1f1f1}.pom-main-element-container[data-v-c5407d12] ::-webkit-scrollbar-thumb:hover{background:#555}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
2
- import { ref, onMounted, openBlock, createElementBlock, createElementVNode, unref, renderSlot, Fragment, renderList, normalizeStyle, toDisplayString, createCommentVNode, createStaticVNode, nextTick, pushScopeId, popScopeId, createTextVNode } from "vue";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.heading{content:"H"}#pom-texedito-container div ::selection{background:#5986e7;color:#000}#pom-texedito-container p ::selection{background:#8ae74b;color:#000}#pom-texedito-container a ::selection{background:#5986e7;color:#000}#pom-texedito-container img ::selection{background:#5edba0;color:#000}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.absolute{position:absolute}.relative{position:relative}.inset-y-0{top:0;bottom:0}.right-2{right:.5rem}.z-10{z-index:10}.m-1{margin:.25rem}.m-3{margin:.75rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.-mr-1{margin-right:-.25rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-\\[3vh\\]{height:3vh}.w-\\[12vw\\]{width:12vw}.w-\\[6vw\\]{width:6vw}.w-full{width:100%}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.gap-1{gap:.25rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-b-2{border-bottom-width:2px}.border-t-2{border-top-width:2px}.border-none{border-style:none}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.italic{font-style:italic}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.display-color{border:1px solid #ccc;text-align:center;font-size:18px;position:relative!important;display:inline-block;cursor:pointer}.display-color:hover+.color-container,.display-color:active+.color-container{display:block}.elemeSetDropDown{box-shadow:9px 5px 42px -14px #000000b8;-webkit-box-shadow:9px 5px 42px -14px rgba(0,0,0,.72);-moz-box-shadow:9px 5px 42px -14px rgba(0,0,0,.72);border-radius:10px;border:#33323222 .1px solid}.color-container{display:none;box-shadow:0 4px 8px #0000001a;padding:14px;position:absolute;left:0;z-index:100;background-color:#fff;width:19vw;height:30vh!important;overflow:auto;top:28px}.color-grid{display:flex;flex-wrap:wrap;gap:5px}.pom-editor-menu-fonts:hover{border:#c8c8c821 1px solid;background:#8d8c8c0a;color:#000;box-shadow:4px 14px 28px -15px #2c2c2cbb;-moz-box-shadow:4px 14px 28px -15px rgba(44,44,44,.734);-webkit-box-shadow:4px 14px 28px -15px rgba(44,44,44,.734)}.pom-editor-menu:hover{display:block!important}.pom-editor-menu{display:none!important;background-color:#fff;border-radius:12px;box-shadow:0 4px 8px #0000001a;width:28vw;height:41vh;overflow:auto}.color-box{width:30px;height:30px;border-radius:8px;transition:transform .3s,box-shadow .3s;cursor:pointer}.color-box:hover{transform:scale(1.1);box-shadow:0 6px 12px #0003}#fullTextEditor .card{padding:2em}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}#fullTextEditor a:hover{color:#747bff}#fullTextEditor button{background-color:#f9f9f9}}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.group:hover .group-hover\\:block{display:block}.editor:empty:before{content:attr(data-placeholder);color:#aaa;left:10px;top:10px;pointer-events:none;font-size:19px}.editor:focus:before{content:none}.table-picker-wrapper{position:relative;display:inline-block}.table-picker-trigger{cursor:pointer;display:flex;align-items:center}.table-picker-container{position:absolute;top:10%;right:90;margin-top:10px;padding:10px;border:0;background-color:#f4f4f4;cursor:pointer;-webkit-user-select:none;user-select:none;width:max-content;display:none;left:85%!important;top:-7px}.table-picker-wrapper:hover .table-picker-container{display:block}.table-picker-grid{display:grid;grid-template-columns:repeat(10,20px);grid-template-rows:repeat(10,20px);gap:2px;margin-bottom:10px}.table-picker-grid div{width:20px;height:20px;border:1px solid #ddd;background-color:#efa153ce}.table-picker-grid div:hover{background-color:#f8f6f6;border:0}.table-dimensions{font-size:12px;color:#333}.pomXEditor{border:1px;border-style:solid;border-color:#6972734e}#editor:focus{outline:none;border:none}.pom-table-editor-container{display:flex}.pom-table-editor-container a{color:#00f;text-decoration:underline;cursor:pointer}.pom-table-editor-container a:link{color:#00f}.pom-table-editor-container a:visited{color:purple}.pom-table-editor-container a:hover{color:red;text-decoration:none}.pom-table-editor-container a:active{color:orange}@media print{.hideonprint{display:none!important}}/*!\n * Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n * Copyright 2024 Fonticons, Inc.\n */.Image_dropped_pom{background:#adacacb4;border-radius:3px;margin:3px;z-index:100;box-shadow:10px 39px 90px 30px #664a4a42;-webkit-box-shadow:10px 39px 90px 30px rgba(102,74,74,.26);-moz-box-shadow:10px 39px 90px 30px rgba(102,74,74,.26);box-sizing:border-box}.Image_dropped_pom *:hover{background:#a14b1a9f;color:#fff;border:none;border-bottom:2px solid white;box-shadow:0 6px 6px #00000042,0 10px 20px #00000030}.imageClosingBtn{margin:0;position:absolute;top:-3px;right:-3px;bottom:0;z-index:101;color:red;background:#cd5a5e47;width:14px;height:15px;border:1px solid #ccc2c2;text-align:center;text-size-adjust:auto}.pom-main-element-container .editor[data-v-c6058be1]:empty:before{content:attr(data-placeholder);color:#aaa;left:10px;top:10px;pointer-events:none;font-size:19px}.pom-main-element-container .editor[data-v-c6058be1]:focus:before{content:none}.pom-main-element-container .table-picker-wrapper[data-v-c6058be1]{position:relative;display:inline-block}.pom-main-element-container .table-picker-trigger[data-v-c6058be1]{cursor:pointer;display:flex;align-items:center}.pom-main-element-container .table-picker-container[data-v-c6058be1]{position:absolute;top:10%;right:90;margin-top:10px;padding:10px;border:0;background-color:#f4f4f4;cursor:pointer;-webkit-user-select:none;user-select:none;width:max-content;display:none;left:85%!important;top:-7px}.pom-main-element-container .table-picker-wrapper:hover .table-picker-container[data-v-c6058be1]{display:block}.pom-main-element-container .table-picker-grid[data-v-c6058be1]{display:grid;grid-template-columns:repeat(10,20px);grid-template-rows:repeat(10,20px);gap:2px;margin-bottom:10px}.pom-main-element-container .table-picker-grid div[data-v-c6058be1]{width:20px;height:20px;border:1px solid #ddd;background-color:#efa153ce}.pom-main-element-container .table-picker-grid div[data-v-c6058be1]:hover{background-color:#f8f6f6;border:0}.table-dimensions[data-v-c6058be1]{font-size:12px;color:#333}.pom-main-element-container .pomXEditor[data-v-c6058be1]{border:1px;border-style:solid;border-color:#6972734e}.pom-main-element-container #editor[data-v-c6058be1]:focus{outline:none;border:none}.pom-main-element-container .pom-table-editor-container[data-v-c6058be1]{display:flex}.pom-main-element-container .pom-table-editor-container a[data-v-c6058be1]{color:#00f;text-decoration:underline;cursor:pointer}.pom-main-element-container .pom-table-editor-container a[data-v-c6058be1]:link{color:#00f}.pom-main-element-container .pom-table-editor-container a[data-v-c6058be1]:visited{color:purple}.pom-main-element-container .pom-table-editor-container a[data-v-c6058be1]:hover{color:red;text-decoration:none}.pom-main-element-container .pom-table-editor-container a[data-v-c6058be1]:active{color:orange}@media print{.hideonprint[data-v-c6058be1]{display:none!important}[data-v-c6058be1]{overflow:hidden}}.pom-main-element-container .editor[data-v-c6058be1]{padding:10px;border:1px solid #ccc;min-height:200px}.pom-main-element-container .resizable-image[data-v-c6058be1]{max-width:100%;resize:both;overflow:auto;display:block;cursor:nwse-resize}.pom-main-element-container[data-v-c6058be1] ::-webkit-scrollbar{width:12px;height:12px}.pom-main-element-container[data-v-c6058be1] ::-webkit-scrollbar-track{background:#f1f1f1}.pom-main-element-container[data-v-c6058be1] ::-webkit-scrollbar-thumb{background-color:#888;border-radius:6px;border:3px solid #f1f1f1}.pom-main-element-container[data-v-c6058be1] ::-webkit-scrollbar-thumb:hover{background:#555}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
2
+ import { ref, onMounted, openBlock, createElementBlock, createElementVNode, unref, renderSlot, Fragment, renderList, normalizeStyle, toDisplayString, createCommentVNode, nextTick, pushScopeId, popScopeId, createStaticVNode, createTextVNode } from "vue";
3
3
  function updateCursorInfo() {
4
4
  const selection = window.getSelection();
5
5
  if (selection.rangeCount > 0) {
@@ -67,9 +67,9 @@ function removeAllTables(hide = false, tables = document.getElementsByClassName(
67
67
  });
68
68
  }
69
69
  function scopeOutTheUserDataReutur(printableContent = document.getElementById("pom-texedito-container").innerHTML, elementsTohide = ".hideonprint") {
70
- const printWindow2 = window.open("", "", "height=900,width=800");
71
- printWindow2.document.write("<html><head><title>Print</title>");
72
- printWindow2.document.write(`<style>
70
+ const printWindow = window.open("", "", "height=900,width=800");
71
+ printWindow.document.write("<html><head><title>Print</title>");
72
+ printWindow.document.write(`<style>
73
73
  ${elementsTohide} {
74
74
  display: none;
75
75
  }
@@ -83,47 +83,28 @@ function scopeOutTheUserDataReutur(printableContent = document.getElementById("p
83
83
  display: block !important;
84
84
  }
85
85
  </style>`);
86
- printWindow2.document.write("</head><body>");
87
- printWindow2.document.write(printableContent);
88
- printWindow2.document.write("</body></html>");
89
- printWindow2.document.close();
90
- const removeinlineblock = printWindow2.document.querySelectorAll(".resizer-image-dropped");
91
- bringBackWildImages(removeinlineblock);
92
- return printWindow2;
93
- }
94
- function bringBackWildImages(imageContainers = printWindow.document.querySelectorAll(".resizer-image-dropped")) {
95
- if (imageContainers) {
96
- imageContainers.forEach(function(element) {
97
- const img = element.querySelector("img");
98
- const computedStyles = element.getAttribute("style");
99
- if (computedStyles) {
100
- img.style.cssText = computedStyles + "; position: initial";
101
- } else {
102
- img.style.position = "initial";
103
- }
104
- element.style.display = "block";
105
- const leftPosition = parseInt(element.style.left, 10);
106
- if (leftPosition > 793.7) {
107
- element.style.left = "793.7px";
108
- }
109
- });
110
- }
86
+ printWindow.document.write("</head><body>");
87
+ printWindow.document.write(printableContent);
88
+ printWindow.document.write("</body></html>");
89
+ printWindow.document.close();
90
+ return printWindow;
111
91
  }
112
92
  function exportUserHtmlForAtheUse(printableContent = document.getElementById("pom-texedito-container")) {
113
- bringBackWildImages(printableContent.querySelectorAll(".resizer-image-dropped"));
114
93
  const returnData = printableContent.innerHTML;
115
94
  return returnData;
116
95
  }
117
96
  function previewAndPrint(print = true, printableContent = document.getElementById("pom-texedito-container").innerHTML, elementsTohide = "hideonprint") {
118
- const printableContent2 = styleCss() + printableContent;
119
- const printWindow2 = scopeOutTheUserDataReutur(printableContent2, elementsTohide);
97
+ const printableContent2 = printableContent;
98
+ const printWindow = scopeOutTheUserDataReutur(printableContent2, elementsTohide);
120
99
  if (print) {
121
- printWindow2.focus();
122
- printWindow2.onload = function() {
123
- printWindow2.print();
100
+ printWindow.focus();
101
+ printWindow.onload = function() {
102
+ setTimeout(() => {
103
+ printWindow.print();
104
+ }, 4e3);
124
105
  };
125
- printWindow2.onafterprint = function() {
126
- printWindow2.close();
106
+ printWindow.onafterprint = function() {
107
+ printWindow.close();
127
108
  };
128
109
  }
129
110
  }
@@ -184,6 +165,54 @@ function ImageResizing() {
184
165
  }
185
166
  });
186
167
  }
168
+ function editorKeyActions(savedRange2, editorRef) {
169
+ const myDiv = document.getElementById("editor");
170
+ myDiv.addEventListener("keydown", function(event) {
171
+ var _a;
172
+ const rng = (_a = savedRange2.value) == null ? void 0 : _a["range"];
173
+ if (event.code === "Enter") {
174
+ const parentElement = rng.commonAncestorContainer;
175
+ const parentNode = parentElement.nodeType === Node.TEXT_NODE ? parentElement.parentNode : parentElement;
176
+ const styleValu = parentNode.style["float"];
177
+ if (styleValu) {
178
+ const element = document.createElement("div");
179
+ element.innerHTML = parentNode.innerHTML;
180
+ parentNode.innerHTML = null;
181
+ const spaceAfter = document.createElement("span");
182
+ spaceAfter.innerHTML = "";
183
+ parentNode.appendChild(element);
184
+ }
185
+ } else if (event.code === "Tab") {
186
+ event.preventDefault();
187
+ const spaceBefore = document.createElement("span");
188
+ spaceBefore.innerHTML = "&nbsp;&nbsp;&nbsp;&nbsp;";
189
+ rng.insertNode(spaceBefore);
190
+ rng.setStartAfter(spaceBefore);
191
+ rng.collapse(true);
192
+ const sel = window.getSelection();
193
+ sel.removeAllRanges();
194
+ sel.addRange(rng);
195
+ } else if (event.ctrlKey && event.key === "z") {
196
+ event.preventDefault();
197
+ editorRef.innerHTML = UndoRedo["Undo"]();
198
+ } else if (event.ctrlKey && event.key === "y") {
199
+ event.preventDefault();
200
+ editorRef.innerHTML = UndoRedo["Redo"]();
201
+ }
202
+ });
203
+ }
204
+ function offCclicks(event) {
205
+ const elements = document.querySelectorAll(".Image_dropped_pom");
206
+ elements.forEach((element) => {
207
+ if (element.contains(event.target)) {
208
+ console.log(element, "qweqwe");
209
+ element.style.display = "none";
210
+ }
211
+ });
212
+ }
213
+ function handleClickOutside() {
214
+ document.addEventListener("click", offCclicks);
215
+ }
187
216
  let savedRange;
188
217
  function handleMouseClick(editor2, tableDimensions) {
189
218
  const [columns, rows] = tableDimensions.textContent.split(" x ").map(Number);
@@ -266,6 +295,10 @@ function insertTableAtCursor(editor2, numRows = 2, numCols = 2) {
266
295
  }
267
296
  function createCustomContextMenu(e, table, container) {
268
297
  const existingMenu = document.getElementById("custom-context-menu");
298
+ const existingMenu2 = document.getElementById("custom-context-menu-multipleSeletedTableActions");
299
+ if (existingMenu2) {
300
+ document.body.removeChild(existingMenu2);
301
+ }
269
302
  if (existingMenu) {
270
303
  document.body.removeChild(existingMenu);
271
304
  }
@@ -279,8 +312,136 @@ function createCustomContextMenu(e, table, container) {
279
312
  contextMenu.style.zIndex = "1000";
280
313
  contextMenu.style.left = `${e == null ? void 0 : e.pageX}px`;
281
314
  contextMenu.style.top = `${e == null ? void 0 : e.pageY}px`;
315
+ const multipleSeletedTableActions = document.createElement("div");
316
+ multipleSeletedTableActions.id = "custom-context-menu-multipleSeletedTableActions";
317
+ multipleSeletedTableActions.style.position = "absolute";
318
+ multipleSeletedTableActions.style.backgroundColor = "white";
319
+ multipleSeletedTableActions.style.border = "1px solid #ccc";
320
+ multipleSeletedTableActions.style.padding = "10px";
321
+ multipleSeletedTableActions.style.boxShadow = "0 2px 10px rgba(0, 0, 0, 0.2)";
322
+ multipleSeletedTableActions.style.zIndex = "1000";
323
+ multipleSeletedTableActions.style.left = `${e == null ? void 0 : e.pageX}px`;
324
+ multipleSeletedTableActions.style.top = `${e == null ? void 0 : e.pageY}px`;
325
+ function createAMenuContext(contextMenu2, options2) {
326
+ options2.forEach((option) => {
327
+ const optionElement = document.createElement("div");
328
+ optionElement.textContent = option.text;
329
+ optionElement.style.cursor = "pointer";
330
+ optionElement.addEventListener("click", option.action);
331
+ contextMenu2.appendChild(optionElement);
332
+ });
333
+ document.body.appendChild(contextMenu2);
334
+ }
282
335
  const options = [
283
336
  { text: "Delete Table", action: () => container.remove() },
337
+ {
338
+ text: "Select Colum(s)",
339
+ action: () => {
340
+ {
341
+ e.target.classList.add("VaticalheightList");
342
+ const rows = table.rows;
343
+ const indexHighlighted = [];
344
+ for (let i = 0; i < rows.length; i++) {
345
+ const cells = rows[i].cells;
346
+ for (let j = 0; j < cells.length; j++) {
347
+ const td = cells[j];
348
+ if (td.classList.contains("VaticalheightList")) {
349
+ if (!indexHighlighted.includes(j)) {
350
+ indexHighlighted.push(j);
351
+ }
352
+ }
353
+ }
354
+ }
355
+ for (let i = 0; i < indexHighlighted.length; i++) {
356
+ const colIndex = indexHighlighted[i];
357
+ for (let row = 0; row < rows.length; row++) {
358
+ rows[row].cells[colIndex].classList.add("VaticalheightList");
359
+ }
360
+ }
361
+ const moactions = [
362
+ {
363
+ text: "SUM All",
364
+ action: () => {
365
+ const caluObject = {};
366
+ const rows2 = table.rows;
367
+ for (let i = 0; i < rows2.length; i++) {
368
+ const cells = rows2[i].cells;
369
+ for (let j = 0; j < cells.length; j++) {
370
+ const td = cells[j];
371
+ if (td.classList.contains("VaticalheightList")) {
372
+ const cellValue = parseFloat(td.innerText);
373
+ if (!isNaN(cellValue)) {
374
+ if (!caluObject[j]) {
375
+ caluObject[j] = 0;
376
+ }
377
+ caluObject[j] += cellValue;
378
+ }
379
+ }
380
+ }
381
+ }
382
+ if (table.querySelector("tr.TableHasTotalTr")) {
383
+ table.querySelector("tr.TableHasTotalTr").remove();
384
+ }
385
+ const newRow = document.createElement("tr");
386
+ newRow.classList.add("TableHasTotalTr");
387
+ const numCols = table.rows[0].cells.length;
388
+ for (let j = 0; j < numCols; j++) {
389
+ const newCell = document.createElement("td");
390
+ newCell.style.border = "1px solid black";
391
+ newCell.style.padding = "5px";
392
+ newCell.style.alignContent = "center";
393
+ newCell.innerHTML = caluObject[j] ? `Total:${caluObject[j]}` : null;
394
+ newRow.appendChild(newCell);
395
+ }
396
+ table.appendChild(newRow);
397
+ document.body.removeChild(multipleSeletedTableActions);
398
+ }
399
+ }
400
+ ];
401
+ createAMenuContext(multipleSeletedTableActions, moactions);
402
+ }
403
+ }
404
+ },
405
+ {
406
+ text: "Select Row(s)",
407
+ action: () => {
408
+ {
409
+ e.target.parentElement.classList.add("verticalheightList");
410
+ const verticalheightListCalc = table.querySelectorAll(".verticalheightList");
411
+ const moactions = [
412
+ {
413
+ text: "SUM All",
414
+ action: () => {
415
+ for (let i = 0; i < verticalheightListCalc.length; i++) {
416
+ const colIndex = verticalheightListCalc[i];
417
+ const verticalTotalOf = colIndex.querySelectorAll("td.vaticalTotal");
418
+ verticalTotalOf.forEach((element) => {
419
+ element.remove();
420
+ });
421
+ const getAllTdsInside = colIndex.querySelectorAll("td");
422
+ let caluObject = 0;
423
+ for (let tdin = 0; tdin < getAllTdsInside.length; tdin++) {
424
+ const cellValue = parseFloat(getAllTdsInside[tdin].innerText);
425
+ if (!isNaN(cellValue)) {
426
+ caluObject += cellValue;
427
+ }
428
+ }
429
+ const creatNewTd = document.createElement("td");
430
+ creatNewTd.classList.add("vaticalTotal");
431
+ creatNewTd.innerHTML = caluObject ? `Total : ${caluObject}` : null;
432
+ creatNewTd.style.border = "1px solid black";
433
+ creatNewTd.style.position = "relative";
434
+ creatNewTd.style.padding = "5px";
435
+ colIndex.appendChild(creatNewTd);
436
+ }
437
+ document.body.removeChild(multipleSeletedTableActions);
438
+ }
439
+ }
440
+ ];
441
+ createAMenuContext(multipleSeletedTableActions, moactions);
442
+ }
443
+ }
444
+ },
284
445
  {
285
446
  text: "Toggle Borders",
286
447
  action: () => {
@@ -341,15 +502,12 @@ function createCustomContextMenu(e, table, container) {
341
502
  }
342
503
  }
343
504
  ];
344
- options.forEach((option) => {
345
- const optionElement = document.createElement("div");
346
- optionElement.textContent = option.text;
347
- optionElement.style.cursor = "pointer";
348
- optionElement.addEventListener("click", option.action);
349
- contextMenu.appendChild(optionElement);
350
- });
351
- document.body.appendChild(contextMenu);
352
- document.addEventListener("click", function removeMenu() {
505
+ createAMenuContext(contextMenu, options);
506
+ document.addEventListener("click", function removeMenu(e2) {
507
+ if (contextMenu.id !== "custom-context-menu") {
508
+ document.body.removeChild(multipleSeletedTableActions);
509
+ document.body.removeChild(multipleSeletedTableActions);
510
+ }
353
511
  if (contextMenu) {
354
512
  document.body.removeChild(contextMenu);
355
513
  }
@@ -357,7 +515,6 @@ function createCustomContextMenu(e, table, container) {
357
515
  });
358
516
  }
359
517
  function insertElementAtCursor(savedRange2, elementType = "strong", placeholderText = "*bold text here *", attributes = []) {
360
- var _a;
361
518
  if (savedRange2) {
362
519
  const selection = window.getSelection();
363
520
  selection.removeAllRanges();
@@ -368,51 +525,36 @@ function insertElementAtCursor(savedRange2, elementType = "strong", placeholderT
368
525
  const parentElement = range.commonAncestorContainer;
369
526
  const parentNode = parentElement.nodeType === Node.TEXT_NODE ? parentElement.parentNode : parentElement;
370
527
  const tagName = `${parentNode.tagName}`.toLowerCase();
371
- if (typeof elementType === "string" && elementType.trim() !== "") {
372
- let elm = document.createElement(elementType);
373
- elm.contenteditable = false;
374
- if (attributes) {
375
- attributes.forEach((l) => {
376
- const { attr, value, keyin } = l;
377
- elm.setAttribute(attr, value);
378
- });
379
- }
380
- elm.appendChild(highlightedText);
381
- if (`${elementType}`.toLowerCase() == "code") {
382
- console.log(elm.innerHTML, "elmelmelm");
383
- } else {
384
- if (!((_a = parentNode.classList) == null ? void 0 : _a.contains("pom-editing-area"))) {
385
- parentNode.innerHTML;
386
- console.log({ highlightedText, elementType, tagName }, "parentNodeparentNode", elm.innerHTML);
387
- if (elementType == tagName) {
388
- elm = createHtmlNode(elm.innerHTML);
389
- parentNode.parentNode.removeChild(parentNode);
390
- }
391
- }
392
- }
393
- elm.innerHTML = getThehighLighted.length > 0 ? elm.innerHTML : placeholderText;
394
- const spaceAfter = document.createElement("span");
395
- spaceAfter.innerHTML = "&nbsp;&nbsp;&nbsp;";
396
- savedRange2.deleteContents();
397
- savedRange2.insertNode(spaceAfter);
398
- savedRange2.insertNode(elm);
399
- const newRange = document.createRange();
400
- newRange.setStartAfter(spaceAfter);
401
- newRange.collapse(true);
402
- selection.removeAllRanges();
403
- selection.addRange(newRange);
404
- savedRange2 = newRange.cloneRange();
528
+ let elm;
529
+ let hilightValuesChecks = createHtmlNode(highlightedText);
530
+ const spaceAfter = document.createElement("span");
531
+ spaceAfter.innerHTML = "&nbsp;&nbsp;&nbsp;";
532
+ if ((hilightValuesChecks == null ? void 0 : hilightValuesChecks.includes(elementType)) || tagName == elementType) {
533
+ elm = document.createElement("span");
534
+ elm.innerHTML = hilightValuesChecks;
535
+ console.log(elm, "hilightValuesChecks");
536
+ const html = elm.outerHTML.replace(new RegExp(`<${elementType}`, "gi"), "<span").replace(new RegExp(`</${elementType}>`, "gi"), "</span>").replace(new RegExp(spaceAfter.outerHTML, "gi"), " ");
537
+ elm.innerHTML = html;
405
538
  } else {
406
- console.error("Invalid element type:", elementType);
539
+ elm = document.createElement(elementType);
540
+ elm.innerHTML = getThehighLighted.length > 0 ? hilightValuesChecks : placeholderText;
407
541
  }
542
+ savedRange2.deleteContents();
543
+ savedRange2.insertNode(spaceAfter);
544
+ savedRange2.insertNode(elm);
545
+ const newRange = document.createRange();
546
+ newRange.collapse(true);
547
+ newRange.setStartAfter(spaceAfter);
548
+ selection.removeAllRanges();
408
549
  } else {
409
550
  console.log("No saved range available. Make sure the cursor position is saved before calling this function.");
410
551
  }
411
552
  }
412
553
  function createHtmlNode(htmlString) {
413
554
  const tempDiv = document.createElement("div");
414
- tempDiv.innerHTML = htmlString;
415
- return tempDiv;
555
+ tempDiv.appendChild(htmlString);
556
+ const innerHTML = tempDiv.innerHTML;
557
+ return innerHTML;
416
558
  }
417
559
  function openInputToFeed(savedRange2, e, element = "span", type = "datetime-local", cssStyle = {}, attributes = []) {
418
560
  const cleanzefirst = document.getElementById("Pom-openInputToFeed" + type);
@@ -477,7 +619,7 @@ function openInputToFeed(savedRange2, e, element = "span", type = "datetime-loca
477
619
  }
478
620
  }
479
621
  function changeTextDirection(savedRange2, editor2, style, value, suffix = "", elementType = "span", imageClick = false) {
480
- var _a, _b;
622
+ var _a;
481
623
  if (!savedRange2) {
482
624
  console.warn("No saved range available. Ensure the cursor position is saved before calling this function.");
483
625
  return;
@@ -500,34 +642,23 @@ function changeTextDirection(savedRange2, editor2, style, value, suffix = "", el
500
642
  let highlightedText = range.cloneContents();
501
643
  const parentElement = range.commonAncestorContainer;
502
644
  const parentNode = parentElement.nodeType === Node.TEXT_NODE ? parentElement.parentNode : parentElement;
503
- let element, textToReplace;
645
+ let element;
504
646
  element = document.createElement(elementType);
505
- element.classList.add("pom-4-textDirection");
506
- element.setAttribute("id", `pom-4-textDirection-${Date.now()}`);
507
647
  const tagName = `${parentNode.tagName}`.toLowerCase();
508
648
  const incaseImage = parentNode ? (_a = parentNode.classList) == null ? void 0 : _a.contains("resizer-image-dropped") : null;
509
- if (parentNode && ((_b = parentNode.classList) == null ? void 0 : _b.contains("pom-4-textDirection"))) {
510
- parentNode.childNodes.forEach((node) => {
511
- var _a2;
512
- if (node.nodeType === Node.ELEMENT_NODE) {
513
- if (!((_a2 = node.classList) == null ? void 0 : _a2.contains("resizer-image-dropped")))
514
- node.removeAttribute("style");
515
- }
516
- });
517
- }
518
649
  if (tagName == "ul" || incaseImage || tagName == "img") {
519
650
  parentNode.style.float = `${floats[value]}`;
520
651
  parentNode.style.fontWeight = "bold";
521
652
  return;
522
653
  }
523
- element.appendChild(highlightedText);
524
- if (parentNode.id === "editor") {
525
- textToReplace = element.innerHTML.replace("text-align", "note");
654
+ if (parentNode.id == "editor") {
526
655
  savedRange2.deleteContents();
527
656
  } else {
528
- textToReplace = element.innerHTML;
529
657
  savedRange2.deleteContents();
530
658
  }
659
+ const innerElement = document.createElement("div");
660
+ innerElement.appendChild(highlightedText);
661
+ element.appendChild(innerElement);
531
662
  const currentStyle = element.style[style] || "";
532
663
  const regex = new RegExp(suffix, "ig");
533
664
  const rp = value.replace(regex, "") + suffix;
@@ -538,8 +669,13 @@ function changeTextDirection(savedRange2, editor2, style, value, suffix = "", el
538
669
  }
539
670
  element.style["margin-left"] = "4px";
540
671
  element.style["margin-right"] = "4px";
541
- element.innerHTML = textToReplace;
672
+ const spaceBefore = document.createElement("span");
673
+ const spaceAfter = document.createElement("span");
674
+ spaceBefore.innerHTML = "&nbsp;&nbsp;&nbsp;&nbsp;";
675
+ spaceAfter.innerHTML = "&nbsp;&nbsp;";
676
+ savedRange2.insertNode(spaceBefore);
542
677
  savedRange2.insertNode(element);
678
+ savedRange2.insertNode(spaceAfter);
543
679
  const newRange = document.createRange();
544
680
  newRange.collapse(true);
545
681
  selection.removeAllRanges();
@@ -575,9 +711,11 @@ function insertUnorderedListAtCursor(savedRange2, numRows = 2, liststyle = "list
575
711
  }
576
712
  }
577
713
  const UndoRedo = {
578
- StoredText: {},
579
- // Tracks the current state of the text/image by ID
580
- undoStack: [],
714
+ currentIndex: 0,
715
+ // Tracks the current state of the text/image by index
716
+ StoredText: null,
717
+ // Tracks the current state of the text/image
718
+ storeRecovery: [],
581
719
  // Holds the history of changes for undo
582
720
  redoStack: [],
583
721
  // Holds the history of undone changes for redo
@@ -590,28 +728,30 @@ const UndoRedo = {
590
728
  console.error("SaveCurrentChanges expects a string value.");
591
729
  return;
592
730
  }
593
- if (this.undoStack.length && this.undoStack[this.undoStack.length - 1].text === MyCurrentText) {
731
+ if (this.storeRecovery.length && this.storeRecovery[this.currentIndex - 1] === MyCurrentText) {
594
732
  console.log("No changes to save.");
595
733
  return;
596
734
  }
597
- const CreateDataId = Date.now();
598
- this.StoredText[CreateDataId] = MyCurrentText;
599
- this.undoStack.push({ id: CreateDataId, text: MyCurrentText });
600
- this.redoStack = [];
735
+ this.storeRecovery = this.storeRecovery.slice(0, this.currentIndex);
736
+ this.storeRecovery.push(MyCurrentText);
737
+ this.currentIndex = this.storeRecovery.length;
738
+ if (this.storeRecovery.length > 5e4) {
739
+ this.storeRecovery = this.storeRecovery.slice(this.storeRecovery.length - 5e4);
740
+ this.currentIndex = this.storeRecovery.length;
741
+ }
601
742
  },
602
743
  /**
603
744
  * Reverts the last saved change (undo).
604
745
  * @returns {string|null} - The previous state of the text/image or null if no undo is possible.
605
746
  */
606
747
  Undo: function() {
607
- if (this.undoStack.length === 0) {
748
+ if (this.currentIndex === 0) {
608
749
  console.log("Nothing to undo");
609
750
  return null;
610
751
  }
611
- const lastChange = this.undoStack.pop();
612
- this.redoStack.push(lastChange);
613
- delete this.StoredText[lastChange.id];
614
- return lastChange.text;
752
+ this.redoStack.push(this.storeRecovery[this.currentIndex - 1]);
753
+ this.currentIndex--;
754
+ return this.storeRecovery[this.currentIndex] || null;
615
755
  },
616
756
  /**
617
757
  * Re-applies the most recently undone change (redo).
@@ -623,9 +763,9 @@ const UndoRedo = {
623
763
  return null;
624
764
  }
625
765
  const lastUndo = this.redoStack.pop();
626
- this.undoStack.push(lastUndo);
627
- this.StoredText[lastUndo.id] = lastUndo.text;
628
- return lastUndo.text;
766
+ this.storeRecovery.push(lastUndo);
767
+ this.currentIndex++;
768
+ return lastUndo;
629
769
  }
630
770
  };
631
771
  function opensTyleOnElement(savedRange2, editor2, style, value, suffix = "", elementType = "span") {
@@ -876,7 +1016,7 @@ const _export_sfc = (sfc, props) => {
876
1016
  }
877
1017
  return target;
878
1018
  };
879
- const _withScopeId = (n) => (pushScopeId("data-v-c5407d12"), n = n(), popScopeId(), n);
1019
+ const _withScopeId = (n) => (pushScopeId("data-v-c6058be1"), n = n(), popScopeId(), n);
880
1020
  const _hoisted_1 = { class: "pom-main-element-container" };
881
1021
  const _hoisted_2 = {
882
1022
  style: { "width": "100%" },
@@ -889,8 +1029,23 @@ const _hoisted_3 = {
889
1029
  const _hoisted_4 = { class: "flex flex space-x-2 items-center" };
890
1030
  const _hoisted_5 = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" };
891
1031
  const _hoisted_6 = { class: "relative inline-block text-left group z-10 border-0" };
892
- const _hoisted_7 = /* @__PURE__ */ createStaticVNode('<div class="w-full flex rounded-md" data-v-c5407d12><button type="button" class="inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium" id="menu-button" aria-expanded="true" aria-haspopup="true" data-v-c5407d12><div class="p y-1 w borde r-1 w-full text-start in flex flex-wrap" data-v-c5407d12><span class="cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600" data-v-c5407d12>View</span></div></button><div class="items-center justify-end absolute inset-y-0 right-2 flex" data-v-c5407d12><svg class="-mr-1 inline-flex justify-end ml-2 bg-gray-300 rounded-full" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-v-c5407d12><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" data-v-c5407d12></path></svg></div></div>', 1);
893
- const _hoisted_8 = { class: "hidden absolute group-hover:block mt-0 w-[12vw] text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" };
1032
+ const _hoisted_7 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
1033
+ /* @__PURE__ */ createElementVNode("button", {
1034
+ type: "button",
1035
+ class: "inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium",
1036
+ id: "menu-button",
1037
+ "aria-expanded": "true",
1038
+ "aria-haspopup": "true"
1039
+ }, [
1040
+ /* @__PURE__ */ createElementVNode("div", { class: "p y-1 w borde r-1 w-full text-start in flex flex-wrap" }, [
1041
+ /* @__PURE__ */ createElementVNode("span", { class: "cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600" }, "View")
1042
+ ])
1043
+ ])
1044
+ ], -1));
1045
+ const _hoisted_8 = {
1046
+ style: { "z-index": "12" },
1047
+ class: "hidden absolute group-hover:block mt-0 w-[12vw] text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"
1048
+ };
894
1049
  const _hoisted_9 = {
895
1050
  class: "",
896
1051
  role: "none"
@@ -912,8 +1067,23 @@ const _hoisted_15 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEle
912
1067
  ], -1));
913
1068
  const _hoisted_16 = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" };
914
1069
  const _hoisted_17 = { class: "relative inline-block text-left group z-10 border-0 w-ful l" };
915
- const _hoisted_18 = /* @__PURE__ */ createStaticVNode('<div class="w-full flex rounded-md" data-v-c5407d12><button type="button" class="inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium" id="menu-button" aria-expanded="true" aria-haspopup="true" data-v-c5407d12><div class="p y-1 w borde r-1 w-full text-start in flex flex-wrap" data-v-c5407d12><span class="cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600" data-v-c5407d12>Format</span></div></button><div class="items-center justify-end absolute inset-y-0 right-2 flex" data-v-c5407d12><svg class="-mr-1 inline-flex justify-end ml-2 bg-gray-300 rounded-full" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-v-c5407d12><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" data-v-c5407d12></path></svg></div></div>', 1);
916
- const _hoisted_19 = { class: "hidden absolute group-hover:block mt-0 w-[12vw] text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" };
1070
+ const _hoisted_18 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
1071
+ /* @__PURE__ */ createElementVNode("button", {
1072
+ type: "button",
1073
+ class: "inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium",
1074
+ id: "menu-button",
1075
+ "aria-expanded": "true",
1076
+ "aria-haspopup": "true"
1077
+ }, [
1078
+ /* @__PURE__ */ createElementVNode("div", { class: "p y-1 w borde r-1 w-full text-start in flex flex-wrap" }, [
1079
+ /* @__PURE__ */ createElementVNode("span", { class: "cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600" }, "Format")
1080
+ ])
1081
+ ])
1082
+ ], -1));
1083
+ const _hoisted_19 = {
1084
+ style: { "z-index": "12" },
1085
+ class: "hidden absolute group-hover:block mt-0 w-[12vw] text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"
1086
+ };
917
1087
  const _hoisted_20 = {
918
1088
  class: "",
919
1089
  role: "none"
@@ -1010,8 +1180,23 @@ const _hoisted_65 = [
1010
1180
  ];
1011
1181
  const _hoisted_66 = { class: "flex items-center border-1 b g-gray-200 rounded cursor-pointer" };
1012
1182
  const _hoisted_67 = { class: "relative inline-block text-left group z-10 border-0 w-ful l" };
1013
- const _hoisted_68 = /* @__PURE__ */ createStaticVNode('<div class="w-full flex rounded-md" data-v-c5407d12><button type="button" class="inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium" id="menu-button" aria-expanded="true" aria-haspopup="true" data-v-c5407d12><div class="p y-1 w borde r-1 w-full text-start in flex flex-wrap" data-v-c5407d12><span class="cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600" data-v-c5407d12>Insert</span></div></button><div class="items-center justify-end absolute inset-y-0 right-2 flex" data-v-c5407d12><svg class="-mr-1 inline-flex justify-end ml-2 bg-gray-300 rounded-full" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-v-c5407d12><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" data-v-c5407d12></path></svg></div></div>', 1);
1014
- const _hoisted_69 = { class: "hidden absolute group-hover:block mt-0 w-[12vw] text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" };
1183
+ const _hoisted_68 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
1184
+ /* @__PURE__ */ createElementVNode("button", {
1185
+ type: "button",
1186
+ class: "inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium",
1187
+ id: "menu-button",
1188
+ "aria-expanded": "true",
1189
+ "aria-haspopup": "true"
1190
+ }, [
1191
+ /* @__PURE__ */ createElementVNode("div", { class: "p y-1 w borde r-1 w-full text-start in flex flex-wrap" }, [
1192
+ /* @__PURE__ */ createElementVNode("span", { class: "cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600" }, "Insert")
1193
+ ])
1194
+ ])
1195
+ ], -1));
1196
+ const _hoisted_69 = {
1197
+ style: { "z-index": "12" },
1198
+ class: "hidden absolute group-hover:block mt-0 w-[12vw] text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"
1199
+ };
1015
1200
  const _hoisted_70 = {
1016
1201
  class: "",
1017
1202
  role: "none"
@@ -1052,7 +1237,7 @@ const _hoisted_88 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEle
1052
1237
  /* @__PURE__ */ createElementVNode("i", { class: "table p x-2" }),
1053
1238
  /* @__PURE__ */ createElementVNode("strong", { class: "px-3" }, "Create")
1054
1239
  ], -1));
1055
- const _hoisted_89 = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" };
1240
+ const _hoisted_89 = { class: "flex items-center border-1 b g-gray-200 rounded cursor-pointer" };
1056
1241
  const _hoisted_90 = { class: "relative inline-block text-left group z-10 border-0" };
1057
1242
  const _hoisted_91 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md showfontFamilyMenu" }, [
1058
1243
  /* @__PURE__ */ createElementVNode("button", {
@@ -1384,10 +1569,13 @@ const _hoisted_137 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
1384
1569
  ])
1385
1570
  ])
1386
1571
  ], -1));
1387
- const _hoisted_138 = { class: "hidden absolute group-hover:block mt-0 text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" };
1572
+ const _hoisted_138 = {
1573
+ style: { "z-index": "12" },
1574
+ class: "hidden absolute group-hover:block mt-0 text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"
1575
+ };
1388
1576
  const _hoisted_139 = {
1389
1577
  class: "flex",
1390
- role: "none"
1578
+ style: { "z-index": "4100 !important" }
1391
1579
  };
1392
1580
  const _hoisted_140 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, [
1393
1581
  /* @__PURE__ */ createElementVNode("svg", {
@@ -1568,17 +1756,17 @@ const _hoisted_147 = [
1568
1756
  ];
1569
1757
  const _hoisted_148 = {
1570
1758
  class: "flex items-center gap-1 border-t-2 border-b-2 border-gray-300 bg-white w-full px-1",
1571
- style: { "height": "37px" }
1759
+ style: {}
1572
1760
  };
1573
- const _hoisted_149 = /* @__PURE__ */ createStaticVNode('<i class="bold p x-2" data-v-c5407d12><svg viewBox="-2 0 20 20" width="13px" height="13px" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-c5407d12><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c5407d12></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c5407d12></g><g id="SVGRepo_iconCarrier" data-v-c5407d12><g id="text-bold" transform="translate(-4 -2)" data-v-c5407d12><path id="primary" d="M5,3h7.5A4.49,4.49,0,0,1,17,7.5h0A4.49,4.49,0,0,1,12.5,12H7" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" data-v-c5407d12></path><path id="primary-2" data-name="primary" d="M5,21h9.5A4.49,4.49,0,0,0,19,16.5h0A4.49,4.49,0,0,0,14.5,12H7" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" data-v-c5407d12></path><path id="primary-3" data-name="primary" d="M7,3V21H8V3Z" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" data-v-c5407d12></path></g></g></svg></i>', 1);
1761
+ const _hoisted_149 = /* @__PURE__ */ createStaticVNode('<i class="bold p x-2" data-v-c6058be1><svg viewBox="-2 0 20 20" width="13px" height="13px" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-c6058be1><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c6058be1></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c6058be1></g><g id="SVGRepo_iconCarrier" data-v-c6058be1><g id="text-bold" transform="translate(-4 -2)" data-v-c6058be1><path id="primary" d="M5,3h7.5A4.49,4.49,0,0,1,17,7.5h0A4.49,4.49,0,0,1,12.5,12H7" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" data-v-c6058be1></path><path id="primary-2" data-name="primary" d="M5,21h9.5A4.49,4.49,0,0,0,19,16.5h0A4.49,4.49,0,0,0,14.5,12H7" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" data-v-c6058be1></path><path id="primary-3" data-name="primary" d="M7,3V21H8V3Z" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" data-v-c6058be1></path></g></g></svg></i>', 1);
1574
1762
  const _hoisted_150 = [
1575
1763
  _hoisted_149
1576
1764
  ];
1577
- const _hoisted_151 = /* @__PURE__ */ createStaticVNode('<i class="italic p x-2" data-v-c5407d12><svg viewBox="0 0 20 20" width="15px" height="16px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-c5407d12><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c5407d12></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c5407d12></g><g id="SVGRepo_iconCarrier" data-v-c5407d12><g id="layer1" data-v-c5407d12><path d="M 7 4 L 7 5 L 9.9921875 5 L 8 15.955078 L 8 16 L 5 16 L 5 17 L 12 17 L 12 16 L 9.0078125 16 L 11 5.0449219 L 11 5 L 14 5 L 14 4 L 7 4 z " style="fill:#222222;fill-opacity:1;stroke:none;stroke-width:0px;" data-v-c5407d12></path></g></g></svg></i>', 1);
1765
+ const _hoisted_151 = /* @__PURE__ */ createStaticVNode('<i class="italic p x-2" data-v-c6058be1><svg viewBox="0 0 20 20" width="15px" height="16px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-c6058be1><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c6058be1></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c6058be1></g><g id="SVGRepo_iconCarrier" data-v-c6058be1><g id="layer1" data-v-c6058be1><path d="M 7 4 L 7 5 L 9.9921875 5 L 8 15.955078 L 8 16 L 5 16 L 5 17 L 12 17 L 12 16 L 9.0078125 16 L 11 5.0449219 L 11 5 L 14 5 L 14 4 L 7 4 z " style="fill:#222222;fill-opacity:1;stroke:none;stroke-width:0px;" data-v-c6058be1></path></g></g></svg></i>', 1);
1578
1766
  const _hoisted_152 = [
1579
1767
  _hoisted_151
1580
1768
  ];
1581
- const _hoisted_153 = /* @__PURE__ */ createStaticVNode('<i class="underline p x-2" data-v-c5407d12><svg fill="#000000" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="13px" height="13px" viewBox="0 0 970.5 970.5" xml:space="preserve" data-v-c5407d12><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c5407d12></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c5407d12></g><g id="SVGRepo_iconCarrier" data-v-c5407d12><g data-v-c5407d12><path d="M116.1,868.5c-28.2,0-51,22.8-51,51s22.8,51,51,51h741.5c28.199,0,51-22.8,51-51s-22.801-51-51-51H116.1z" data-v-c5407d12></path><path d="M940.9,45.1c0-4.9,0-10.1,0-15.1c0-16.6-13.4-30-30-30H582.199c-16.6,0-30,13.4-30,30v14.5c0,15.5,11.801,28.4,27.201,29.9 c14.5,1.4,29,3.5,43.299,6.3c30.201,5.9,44.9,22.7,44.9,53.3v374.9c0,22-2.5,45.399-7.301,69.5c-4.6,23.1-13.898,45-27.6,65 c-14.299,20.1-34.199,36.899-59,49.899c-21.6,11.3-51.4,17.7-88.299,19.2c-37-1.4-66.7-7.9-88.3-19.2 c-24.801-13-44.7-29.7-59-49.899c-13.7-20-23-41.9-27.601-65c-4.8-24.2-7.3-47.601-7.3-69.5v-375c0-30.5,14.7-47.3,44.9-53.3 c14.3-2.8,28.699-4.9,43.3-6.3c15.399-1.5,27.2-14.4,27.2-29.9V30c0-16.6-13.4-30-30-30h-329c-16.6,0-30,13.4-30,30 c0,5,0,10.2,0,15.1c0,14.7,10.7,27.3,25.2,29.6C73,77.6,94.9,81.8,98.3,83c27,9.8,44.2,27.4,44.2,57v408.6c0,34.4,7.4,67.9,22,99.5 c14.6,31.601,36.5,60,65.2,84.4l0.1,0.1c28.8,24.2,64.8,43.601,106.9,57.7c41.8,14,90,21.101,143.2,21.101c1.7,0,3.5,0,5.399-0.101 c2,0,3.701,0.101,5.4,0.101C543.9,811.4,592,804.3,633.9,790.3c42.1-14.1,78-33.5,106.898-57.7l0.102-0.1 c28.699-24.4,50.6-52.8,65.199-84.4c14.6-31.6,22-65.1,22-99.5V140.1c0-29.6,17.301-47.2,44.199-57c3.4-1.2,25.301-5.4,43.5-8.3 C930.299,72.4,940.9,59.8,940.9,45.1z" data-v-c5407d12></path></g></g></svg></i>', 1);
1769
+ const _hoisted_153 = /* @__PURE__ */ createStaticVNode('<i class="underline p x-2" data-v-c6058be1><svg fill="#000000" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="13px" height="13px" viewBox="0 0 970.5 970.5" xml:space="preserve" data-v-c6058be1><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c6058be1></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c6058be1></g><g id="SVGRepo_iconCarrier" data-v-c6058be1><g data-v-c6058be1><path d="M116.1,868.5c-28.2,0-51,22.8-51,51s22.8,51,51,51h741.5c28.199,0,51-22.8,51-51s-22.801-51-51-51H116.1z" data-v-c6058be1></path><path d="M940.9,45.1c0-4.9,0-10.1,0-15.1c0-16.6-13.4-30-30-30H582.199c-16.6,0-30,13.4-30,30v14.5c0,15.5,11.801,28.4,27.201,29.9 c14.5,1.4,29,3.5,43.299,6.3c30.201,5.9,44.9,22.7,44.9,53.3v374.9c0,22-2.5,45.399-7.301,69.5c-4.6,23.1-13.898,45-27.6,65 c-14.299,20.1-34.199,36.899-59,49.899c-21.6,11.3-51.4,17.7-88.299,19.2c-37-1.4-66.7-7.9-88.3-19.2 c-24.801-13-44.7-29.7-59-49.899c-13.7-20-23-41.9-27.601-65c-4.8-24.2-7.3-47.601-7.3-69.5v-375c0-30.5,14.7-47.3,44.9-53.3 c14.3-2.8,28.699-4.9,43.3-6.3c15.399-1.5,27.2-14.4,27.2-29.9V30c0-16.6-13.4-30-30-30h-329c-16.6,0-30,13.4-30,30 c0,5,0,10.2,0,15.1c0,14.7,10.7,27.3,25.2,29.6C73,77.6,94.9,81.8,98.3,83c27,9.8,44.2,27.4,44.2,57v408.6c0,34.4,7.4,67.9,22,99.5 c14.6,31.601,36.5,60,65.2,84.4l0.1,0.1c28.8,24.2,64.8,43.601,106.9,57.7c41.8,14,90,21.101,143.2,21.101c1.7,0,3.5,0,5.399-0.101 c2,0,3.701,0.101,5.4,0.101C543.9,811.4,592,804.3,633.9,790.3c42.1-14.1,78-33.5,106.898-57.7l0.102-0.1 c28.699-24.4,50.6-52.8,65.199-84.4c14.6-31.6,22-65.1,22-99.5V140.1c0-29.6,17.301-47.2,44.199-57c3.4-1.2,25.301-5.4,43.5-8.3 C930.299,72.4,940.9,59.8,940.9,45.1z" data-v-c6058be1></path></g></g></svg></i>', 1);
1582
1770
  const _hoisted_154 = [
1583
1771
  _hoisted_153
1584
1772
  ];
@@ -1713,119 +1901,152 @@ const _hoisted_163 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
1713
1901
  const _hoisted_164 = [
1714
1902
  _hoisted_163
1715
1903
  ];
1716
- const _hoisted_165 = /* @__PURE__ */ createStaticVNode('<i class="-code p x-2" data-v-c5407d12><svg viewBox="0 0 16 16" width="13px" height="13px" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-c5407d12><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c5407d12></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c5407d12></g><g id="SVGRepo_iconCarrier" data-v-c5407d12><path d="M8.01005 0.858582L6.01005 14.8586L7.98995 15.1414L9.98995 1.14142L8.01005 0.858582Z" fill="#000000" data-v-c5407d12></path><path d="M12.5 11.5L11.0858 10.0858L13.1716 8L11.0858 5.91422L12.5 4.5L16 8L12.5 11.5Z" fill="#000000" data-v-c5407d12></path><path d="M2.82843 8L4.91421 10.0858L3.5 11.5L0 8L3.5 4.5L4.91421 5.91422L2.82843 8Z" fill="#000000" data-v-c5407d12></path></g></svg></i>', 1);
1904
+ const _hoisted_165 = /* @__PURE__ */ createStaticVNode('<i class="-code p x-2" data-v-c6058be1><svg viewBox="0 0 16 16" width="13px" height="13px" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-c6058be1><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c6058be1></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c6058be1></g><g id="SVGRepo_iconCarrier" data-v-c6058be1><path d="M8.01005 0.858582L6.01005 14.8586L7.98995 15.1414L9.98995 1.14142L8.01005 0.858582Z" fill="#000000" data-v-c6058be1></path><path d="M12.5 11.5L11.0858 10.0858L13.1716 8L11.0858 5.91422L12.5 4.5L16 8L12.5 11.5Z" fill="#000000" data-v-c6058be1></path><path d="M2.82843 8L4.91421 10.0858L3.5 11.5L0 8L3.5 4.5L4.91421 5.91422L2.82843 8Z" fill="#000000" data-v-c6058be1></path></g></svg></i>', 1);
1717
1905
  const _hoisted_166 = [
1718
1906
  _hoisted_165
1719
1907
  ];
1720
- const _hoisted_167 = { class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 elemeSet items-center text-center justify-baseline rounded cursor-pointer text-md p-0 m-1" };
1721
- const _hoisted_168 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", {
1722
- class: "solid brush display-color",
1723
- style: { "margin": "6px 0px 0px 0px", "border": "none" }
1724
- }, [
1725
- /* @__PURE__ */ createElementVNode("svg", {
1726
- width: "24",
1727
- height: "24",
1728
- focusable: "false"
1908
+ const _hoisted_167 = { class: "items-center bg-gray-50 rounded cursor-pointer" };
1909
+ const _hoisted_168 = { class: "relative inline-block text-left group border-0" };
1910
+ const _hoisted_169 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
1911
+ /* @__PURE__ */ createElementVNode("i", {
1912
+ class: "solid brush display-color elemeSetDropDown",
1913
+ style: { "margin": "6px 0px 0px 0px", "border": "none" }
1729
1914
  }, [
1730
- /* @__PURE__ */ createElementVNode("g", { "fill-rule": "evenodd" }, [
1731
- /* @__PURE__ */ createElementVNode("path", {
1732
- class: "icon-highlight-bg-color__color",
1733
- d: "M3 18h18v3H3z",
1734
- fill: "#F1C40F"
1735
- }),
1736
- /* @__PURE__ */ createElementVNode("path", {
1737
- "fill-rule": "nonzero",
1738
- d: "M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 0 1 2.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"
1739
- })
1915
+ /* @__PURE__ */ createElementVNode("svg", {
1916
+ width: "24",
1917
+ height: "24",
1918
+ focusable: "false"
1919
+ }, [
1920
+ /* @__PURE__ */ createElementVNode("g", { "fill-rule": "evenodd" }, [
1921
+ /* @__PURE__ */ createElementVNode("path", {
1922
+ class: "icon-highlight-bg-color__color",
1923
+ d: "M3 18h18v3H3z",
1924
+ fill: "#F1C40F"
1925
+ }),
1926
+ /* @__PURE__ */ createElementVNode("path", {
1927
+ "fill-rule": "nonzero",
1928
+ d: "M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 0 1 2.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"
1929
+ })
1930
+ ])
1740
1931
  ])
1741
1932
  ])
1742
1933
  ], -1));
1743
- const _hoisted_169 = {
1744
- class: "color-picker color-container",
1745
- style: { "position": "absolute", "top": "0", "bottom": "0", "height": "50vh", "overflow": "auto" }
1934
+ const _hoisted_170 = {
1935
+ style: { "z-index": "12" },
1936
+ class: "hidden absolute group-hover:block mt-0 text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"
1746
1937
  };
1747
- const _hoisted_170 = { class: "color-grid" };
1748
- const _hoisted_171 = ["onClick"];
1749
- const _hoisted_172 = { class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 elemeSet items-center text-center justify-baseline rounded cursor-pointer text-md p-0 m-1" };
1750
- const _hoisted_173 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", {
1751
- class: "solid brush display-color",
1752
- style: { "margin": "6px 0px 0px 0px", "border": "none" }
1753
- }, [
1754
- /* @__PURE__ */ createElementVNode("span", {
1755
- role: "presentation",
1756
- class: "tbtn",
1757
- "aria-disabled": "false",
1758
- style: { "width": "34px" }
1759
- }, [
1760
- /* @__PURE__ */ createElementVNode("span", { class: "icon tbtn__icon-wrap" }, [
1761
- /* @__PURE__ */ createElementVNode("svg", {
1762
- width: "24",
1763
- height: "24",
1764
- focusable: "false"
1938
+ const _hoisted_171 = {
1939
+ class: "elemeSetDropDown",
1940
+ role: "none"
1941
+ };
1942
+ const _hoisted_172 = {
1943
+ class: "color-grid p-1 m-1",
1944
+ style: { "width": "20vh", "height": "20vh", "overflow": "auto" }
1945
+ };
1946
+ const _hoisted_173 = ["onClick"];
1947
+ const _hoisted_174 = { class: "items-center bg-gray-50 rounded cursor-pointer" };
1948
+ const _hoisted_175 = { class: "relative inline-block text-left group border-0" };
1949
+ const _hoisted_176 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
1950
+ /* @__PURE__ */ createElementVNode("span", null, [
1951
+ /* @__PURE__ */ createElementVNode("div", { class: "p y-1 w w-full text-start in" }, [
1952
+ /* @__PURE__ */ createElementVNode("i", {
1953
+ class: "solid brush display-color",
1954
+ style: { "margin": "6px 0px 0px 0px", "border": "none" }
1765
1955
  }, [
1766
- /* @__PURE__ */ createElementVNode("g", { "fill-rule": "evenodd" }, [
1767
- /* @__PURE__ */ createElementVNode("path", {
1768
- class: "icon-text-color__color",
1769
- d: "M3 18h18v3H3z",
1770
- fill: "#F1C40F"
1771
- }),
1772
- /* @__PURE__ */ createElementVNode("path", { d: "M8.7 16h-.8a.5.5 0 0 1-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 0 1-.5.6h-.8a.5.5 0 0 1-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4Zm2.6-7.6-.6 2a.5.5 0 0 0 .5.6h1.6a.5.5 0 0 0 .5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4Z" })
1956
+ /* @__PURE__ */ createElementVNode("span", { class: "icon tbtn__icon-wrap" }, [
1957
+ /* @__PURE__ */ createElementVNode("svg", {
1958
+ width: "24",
1959
+ height: "20",
1960
+ focusable: "false"
1961
+ }, [
1962
+ /* @__PURE__ */ createElementVNode("g", { "fill-rule": "evenodd" }, [
1963
+ /* @__PURE__ */ createElementVNode("path", {
1964
+ class: "icon-text-color__color",
1965
+ d: "M3 18h18v3H3z",
1966
+ fill: "#F1C40F"
1967
+ }),
1968
+ /* @__PURE__ */ createElementVNode("path", { d: "M8.7 16h-.8a.5.5 0 0 1-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 0 1-.5.6h-.8a.5.5 0 0 1-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4Zm2.6-7.6-.6 2a.5.5 0 0 0 .5.6h1.6a.5.5 0 0 0 .5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4Z" })
1969
+ ])
1970
+ ])
1773
1971
  ])
1774
1972
  ])
1775
1973
  ])
1776
1974
  ])
1777
1975
  ], -1));
1778
- const _hoisted_174 = {
1779
- class: "color-picker color-container",
1780
- style: { "position": "absolute", "top": "0", "bottom": "0", "height": "fit-content", "overflow": "auto" }
1976
+ const _hoisted_177 = {
1977
+ style: { "z-index": "12" },
1978
+ class: "hidden absolute group-hover:block mt-0 text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"
1781
1979
  };
1782
- const _hoisted_175 = { class: "color-grid" };
1783
- const _hoisted_176 = ["onClick"];
1784
- const _hoisted_177 = /* @__PURE__ */ createStaticVNode('<span class="" data-v-c5407d12><svg viewBox="0 0 24 24" fill="none" width="20px" height="20px" xmlns="http://www.w3.org/2000/svg" data-v-c5407d12><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c5407d12></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c5407d12></g><g id="SVGRepo_iconCarrier" data-v-c5407d12><path fill-rule="evenodd" clip-rule="evenodd" d="M7.53033 3.46967C7.82322 3.76256 7.82322 4.23744 7.53033 4.53033L5.81066 6.25H15C18.1756 6.25 20.75 8.82436 20.75 12C20.75 15.1756 18.1756 17.75 15 17.75H8.00001C7.58579 17.75 7.25001 17.4142 7.25001 17C7.25001 16.5858 7.58579 16.25 8.00001 16.25H15C17.3472 16.25 19.25 14.3472 19.25 12C19.25 9.65279 17.3472 7.75 15 7.75H5.81066L7.53033 9.46967C7.82322 9.76256 7.82322 10.2374 7.53033 10.5303C7.23744 10.8232 6.76256 10.8232 6.46967 10.5303L3.46967 7.53033C3.17678 7.23744 3.17678 6.76256 3.46967 6.46967L6.46967 3.46967C6.76256 3.17678 7.23744 3.17678 7.53033 3.46967Z" fill="#1C274C" data-v-c5407d12></path></g></svg></span>', 1);
1785
- const _hoisted_178 = [
1786
- _hoisted_177
1787
- ];
1788
- const _hoisted_179 = /* @__PURE__ */ createStaticVNode('<span class="" data-v-c5407d12><svg viewBox="0 0 24 24" fill="none" width="20px" height="20px" xmlns="http://www.w3.org/2000/svg" data-v-c5407d12><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c5407d12></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c5407d12></g><g id="SVGRepo_iconCarrier" data-v-c5407d12><path d="M20 7H9.00001C6.23858 7 4 9.23857 4 12C4 14.7614 6.23858 17 9 17H16M20 7L17 4M20 7L17 10" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-c5407d12></path></g></svg></span>', 1);
1789
- const _hoisted_180 = [
1790
- _hoisted_179
1791
- ];
1792
- const _hoisted_181 = /* @__PURE__ */ createStaticVNode('<span class="" data-v-c5407d12><svg width="20px" height="20px" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-c5407d12><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c5407d12></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c5407d12></g><g id="SVGRepo_iconCarrier" data-v-c5407d12><path fill="#494c4e" d="M16 4H2c-.6 0-1-.4-1-1s.4-1 1-1h14c.6 0 1 .4 1 1s-.4 1-1 1zm0 4H2c-.6 0-1-.4-1-1s.4-1 1-1h14c.6 0 1 .4 1 1s-.4 1-1 1zm1 4v2c0 1-1 2-2 2h-2c0 .3 0 .5-.3.7-.2.2-.4.3-.7.3s-.5 0-.7-.3l-1-1c-.4-.4-.4-1 0-1.4l1-1c.4-.4 1-.4 1.4 0 .2.2.3.4.3.7h2v-2H2c-.6 0-1-.5-1-1s.5-1 1-1h13c1 0 2 1 2 2z" data-v-c5407d12></path></g></svg></span>', 1);
1980
+ const _hoisted_178 = {
1981
+ class: "elemeSetDropDown",
1982
+ role: "none"
1983
+ };
1984
+ const _hoisted_179 = {
1985
+ class: "color-grid p-1 m-1",
1986
+ style: { "width": "20vh", "height": "20vh", "overflow": "auto" }
1987
+ };
1988
+ const _hoisted_180 = ["onClick"];
1989
+ const _hoisted_181 = /* @__PURE__ */ createStaticVNode('<span class="" data-v-c6058be1><svg viewBox="0 0 24 24" fill="none" width="20px" height="20px" xmlns="http://www.w3.org/2000/svg" data-v-c6058be1><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c6058be1></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c6058be1></g><g id="SVGRepo_iconCarrier" data-v-c6058be1><path fill-rule="evenodd" clip-rule="evenodd" d="M7.53033 3.46967C7.82322 3.76256 7.82322 4.23744 7.53033 4.53033L5.81066 6.25H15C18.1756 6.25 20.75 8.82436 20.75 12C20.75 15.1756 18.1756 17.75 15 17.75H8.00001C7.58579 17.75 7.25001 17.4142 7.25001 17C7.25001 16.5858 7.58579 16.25 8.00001 16.25H15C17.3472 16.25 19.25 14.3472 19.25 12C19.25 9.65279 17.3472 7.75 15 7.75H5.81066L7.53033 9.46967C7.82322 9.76256 7.82322 10.2374 7.53033 10.5303C7.23744 10.8232 6.76256 10.8232 6.46967 10.5303L3.46967 7.53033C3.17678 7.23744 3.17678 6.76256 3.46967 6.46967L6.46967 3.46967C6.76256 3.17678 7.23744 3.17678 7.53033 3.46967Z" fill="#1C274C" data-v-c6058be1></path></g></svg></span>', 1);
1793
1990
  const _hoisted_182 = [
1794
1991
  _hoisted_181
1795
1992
  ];
1796
- const _hoisted_183 = { style: { "width": "3%" } };
1797
- const _hoisted_184 = { class: "items-center bo rder-1 b g-gray-200 rounded cursor-pointer" };
1798
- const _hoisted_185 = { class: "" };
1799
- const _hoisted_186 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "showfontFamilyMenu" }, "Sizes", -1));
1800
- const _hoisted_187 = {
1801
- class: "p y-1 w borde r-1 w-full text-start in flex flex-wrap pom-editor-menu-fonts inline-block text-left group z-10 border-0",
1802
- style: { "z-index": "10", "margin": "-3px", "height": "26vh", "overflow": "auto", "width": "9vw", "background": "white", "padding": "9px", "border": "1px solid #9d969633" }
1993
+ const _hoisted_183 = /* @__PURE__ */ createStaticVNode('<span class="" data-v-c6058be1><svg viewBox="0 0 24 24" fill="none" width="20px" height="20px" xmlns="http://www.w3.org/2000/svg" data-v-c6058be1><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c6058be1></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c6058be1></g><g id="SVGRepo_iconCarrier" data-v-c6058be1><path d="M20 7H9.00001C6.23858 7 4 9.23857 4 12C4 14.7614 6.23858 17 9 17H16M20 7L17 4M20 7L17 10" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-c6058be1></path></g></svg></span>', 1);
1994
+ const _hoisted_184 = [
1995
+ _hoisted_183
1996
+ ];
1997
+ const _hoisted_185 = /* @__PURE__ */ createStaticVNode('<span class="" data-v-c6058be1><svg width="20px" height="20px" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" fill="#000000" data-v-c6058be1><g id="SVGRepo_bgCarrier" stroke-width="0" data-v-c6058be1></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-c6058be1></g><g id="SVGRepo_iconCarrier" data-v-c6058be1><path fill="#494c4e" d="M16 4H2c-.6 0-1-.4-1-1s.4-1 1-1h14c.6 0 1 .4 1 1s-.4 1-1 1zm0 4H2c-.6 0-1-.4-1-1s.4-1 1-1h14c.6 0 1 .4 1 1s-.4 1-1 1zm1 4v2c0 1-1 2-2 2h-2c0 .3 0 .5-.3.7-.2.2-.4.3-.7.3s-.5 0-.7-.3l-1-1c-.4-.4-.4-1 0-1.4l1-1c.4-.4 1-.4 1.4 0 .2.2.3.4.3.7h2v-2H2c-.6 0-1-.5-1-1s.5-1 1-1h13c1 0 2 1 2 2z" data-v-c6058be1></path></g></svg></span>', 1);
1998
+ const _hoisted_186 = [
1999
+ _hoisted_185
2000
+ ];
2001
+ const _hoisted_187 = { class: "items-center bg-gray-50 rounded cursor-pointer" };
2002
+ const _hoisted_188 = {
2003
+ class: "relative inline-block text-left group border-0",
2004
+ style: { "z-index": "3 !important" }
1803
2005
  };
1804
- const _hoisted_188 = ["onClick", "value"];
1805
- const _hoisted_189 = { style: { "min-height": "100%", "text-align": "justify" } };
1806
- const _hoisted_190 = ["innerHTML"];
1807
- const _hoisted_191 = {
2006
+ const _hoisted_189 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
2007
+ /* @__PURE__ */ createElementVNode("span", null, [
2008
+ /* @__PURE__ */ createElementVNode("div", { class: "p y-1 w w-full text-start in" }, [
2009
+ /* @__PURE__ */ createElementVNode("i", {
2010
+ class: "solid brush display-color",
2011
+ style: { "border": "none" }
2012
+ }, "Sizes ")
2013
+ ])
2014
+ ])
2015
+ ], -1));
2016
+ const _hoisted_190 = {
2017
+ style: { "width": "7vw", "padding": "6px", "height": "24vh", "overflow": "auto" },
2018
+ class: "hidden elemeSetDropDown absolute group-hover:block mt-0 text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"
2019
+ };
2020
+ const _hoisted_191 = ["onClick"];
2021
+ const _hoisted_192 = {
1808
2022
  key: 0,
1809
2023
  class: "hideonprint flex items-center",
1810
2024
  style: { "text-align": "center", "align-items": "stretch", "gap": "10px" }
1811
2025
  };
1812
- const _hoisted_192 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "-" }, null, -1));
1813
- const _hoisted_193 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("strong", { class: "p x-2" }, "NEW LINE", -1));
1814
- const _hoisted_194 = [
1815
- _hoisted_192,
1816
- _hoisted_193
2026
+ const _hoisted_193 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "-" }, null, -1));
2027
+ const _hoisted_194 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("strong", { class: "p x-2" }, "NEW LINE", -1));
2028
+ const _hoisted_195 = [
2029
+ _hoisted_193,
2030
+ _hoisted_194
1817
2031
  ];
1818
- const _hoisted_195 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", { style: { "margin": "0 0 0 10px" } }, [
2032
+ const _hoisted_196 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", { style: { "margin": "0 0 0 10px" } }, [
1819
2033
  /* @__PURE__ */ createTextVNode("Cursor position: "),
1820
2034
  /* @__PURE__ */ createElementVNode("span", { id: "cursorPosition" }, "0")
1821
2035
  ], -1));
1822
- const _hoisted_196 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", null, [
2036
+ const _hoisted_197 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", null, [
1823
2037
  /* @__PURE__ */ createTextVNode("Text at cursor: "),
1824
2038
  /* @__PURE__ */ createElementVNode("span", { id: "textAtCursor" })
1825
2039
  ], -1));
1826
2040
  const _sfc_main = {
1827
2041
  __name: "Editor",
1828
2042
  props: {
2043
+ plugins: {
2044
+ default: {}
2045
+ // type:Object
2046
+ },
2047
+ maxHeight: {
2048
+ default: "100vh"
2049
+ },
1829
2050
  Dvalue: {
1830
2051
  default: ""
1831
2052
  },
@@ -1842,13 +2063,14 @@ const _sfc_main = {
1842
2063
  },
1843
2064
  emits: ["change", "update"],
1844
2065
  setup(__props, { emit: __emit }) {
2066
+ window.getSelection();
2067
+ const props = __props;
1845
2068
  const editorRef = ref(null);
1846
2069
  const imageClicked = ref(false);
1847
2070
  const savedRange2 = ref(null);
1848
2071
  const tablePickerContainer = ref(null);
1849
2072
  const tablePickerGrid = ref(null);
1850
2073
  const tableDimensions = ref(null);
1851
- ref([]);
1852
2074
  let selectedImage = null;
1853
2075
  const colors = ref([
1854
2076
  "FF5733",
@@ -1911,7 +2133,6 @@ const _sfc_main = {
1911
2133
  "000000"
1912
2134
  ]);
1913
2135
  const emit = __emit;
1914
- const props = __props;
1915
2136
  const pomTextEditorContainer = ref(null);
1916
2137
  function previewAndPrintFun(...args) {
1917
2138
  try {
@@ -1984,24 +2205,29 @@ const _sfc_main = {
1984
2205
  });
1985
2206
  } else {
1986
2207
  htmlResult = exportUserHtmlForAtheUse(editorRef.value);
1987
- UndoRedo.SaveCurrentChanges(htmlResult);
1988
2208
  if (props.cssWanted == true) {
1989
2209
  emit("cssWanted", cssWanted2);
1990
2210
  }
1991
2211
  }
1992
2212
  if (htmlResult) {
1993
2213
  setTimeout(() => {
1994
- emit("change", htmlResult.replace(/<(\w+)[^>]*>\s*<\/\1>/g, ""));
2214
+ htmlResult = htmlResult.replace(/<(\w+)[^>]*>\s*<\/\1>/g, "");
2215
+ setTimeout(() => {
2216
+ UndoRedo.SaveCurrentChanges(htmlResult);
2217
+ }, 3e3);
2218
+ emit("change", htmlResult);
1995
2219
  }, 300);
1996
2220
  }
1997
2221
  }
1998
- function onMountedFunctionsset(params) {
2222
+ async function onMountedFunctionsset(params) {
1999
2223
  editorRef.value.focus();
2000
2224
  nextTick(() => {
2225
+ editorRef.value.innerHTML = props.Dvalue || null;
2001
2226
  returnData();
2002
2227
  OnmountedTableActionActivation();
2003
2228
  ImageResizing();
2004
2229
  imageContainerClicked();
2230
+ editorKeyActions(savedRange2, editorRef.value);
2005
2231
  });
2006
2232
  }
2007
2233
  function dropedImageRedirection(imgResizer) {
@@ -2009,13 +2235,21 @@ const _sfc_main = {
2009
2235
  imageClicked.value = e;
2010
2236
  const imageAction = document.createElement("div");
2011
2237
  imageAction.style.display = "flex";
2238
+ imageAction.style.justifyContent = "flex-end";
2239
+ imageAction.style.flexWrap = "wrap";
2240
+ imageAction.style.flexDirection = "column-reverse";
2012
2241
  imageAction.style.position = "absolute";
2013
- imageAction.style.bottom = "20px";
2014
- imageAction.style.right = "0px";
2242
+ imageAction.style.top = "0px";
2243
+ imageAction.style.right = "19px";
2015
2244
  imageAction.style.zIndex = "100";
2016
2245
  imageAction.style.background = "white";
2017
2246
  imageAction.classList.add("Image_dropped_pom");
2018
2247
  imageAction.classList.add("hideOnprint");
2248
+ const closeTile = document.createElement("button");
2249
+ closeTile.style.position = "absolute";
2250
+ closeTile.textContent = " X";
2251
+ closeTile.style.margin = "5px";
2252
+ closeTile.classList.add("imageClosingBtn");
2019
2253
  const floatLeftButton = document.createElement("button");
2020
2254
  floatLeftButton.textContent = " Left";
2021
2255
  floatLeftButton.style.margin = "5px";
@@ -2028,23 +2262,67 @@ const _sfc_main = {
2028
2262
  const WrapButton = document.createElement("button");
2029
2263
  WrapButton.textContent = "Wrap";
2030
2264
  WrapButton.style.margin = "5px";
2265
+ const DeleteButton = document.createElement("button");
2266
+ DeleteButton.textContent = "Erase";
2267
+ DeleteButton.style.margin = "5px";
2268
+ const stickImage = document.createElement("button");
2269
+ stickImage.textContent = "Glue";
2270
+ stickImage.style.margin = "5px";
2271
+ const Unglue = document.createElement("button");
2272
+ Unglue.textContent = "UnGlue";
2273
+ Unglue.style.margin = "5px";
2274
+ imageAction.appendChild(DeleteButton);
2031
2275
  imageAction.appendChild(WrapButton);
2032
- imageAction.appendChild(floatLeftButton);
2033
- imageAction.appendChild(floatRightButton);
2034
- imageAction.appendChild(centerButton);
2276
+ if (!imgResizer.classList.contains("stickImage")) {
2277
+ imageAction.appendChild(centerButton);
2278
+ imageAction.appendChild(floatRightButton);
2279
+ imageAction.appendChild(stickImage);
2280
+ imageAction.appendChild(floatLeftButton);
2281
+ } else {
2282
+ imageAction.appendChild(Unglue);
2283
+ }
2284
+ imageAction.appendChild(closeTile);
2035
2285
  imgResizer.appendChild(imageAction);
2286
+ stickImage.addEventListener("click", () => {
2287
+ imgResizer.classList.add("stickImage");
2288
+ Array.from(imgResizer.children).forEach((child) => {
2289
+ if (child.tagName.toLowerCase() !== "img") {
2290
+ child.style.display = "none";
2291
+ }
2292
+ });
2293
+ removeElemet();
2294
+ });
2295
+ Unglue.addEventListener("click", () => {
2296
+ imgResizer.classList.remove("stickImage");
2297
+ Array.from(imgResizer.children).forEach((child) => {
2298
+ if (child.tagName.toLowerCase() !== "img") {
2299
+ child.style.display = "block";
2300
+ }
2301
+ });
2302
+ removeElemet();
2303
+ });
2304
+ DeleteButton.addEventListener("click", () => {
2305
+ imgResizer.remove();
2306
+ removeElemet();
2307
+ });
2036
2308
  WrapButton.addEventListener("click", (e2) => {
2037
- e2.target.parentElement.parentElement;
2038
2309
  const parentElement = imgResizer.parentElement;
2039
- const innerValues = imgResizer.parentElement.innerHTML;
2310
+ imgResizer.parentElement.innerHTML;
2040
2311
  const parentElementTageName = parentElement.tagName.toLowerCase();
2041
- if (parentElementTageName == "div") {
2042
- const spanElement = document.createElement("span");
2043
- Array.from(parentElement.attributes).forEach((attr) => {
2312
+ const spanElement = document.createElement("div");
2313
+ if (parentElementTageName == "div" && parentElement.id != "editor") {
2314
+ const collectorForNewElement = parentElement;
2315
+ Array.from(collectorForNewElement.attributes).forEach((attr) => {
2044
2316
  spanElement.setAttribute(attr.name, attr.value);
2045
2317
  });
2046
- spanElement.innerHTML = innerValues;
2047
- parentElement.replaceWith(spanElement);
2318
+ spanElement.innerHTML = collectorForNewElement.innerHTML;
2319
+ collectorForNewElement.innerHTML = "";
2320
+ collectorForNewElement.append(spanElement);
2321
+ } else {
2322
+ const collectorForNewElement = parentElement;
2323
+ spanElement.innerHTML = collectorForNewElement.innerHTML;
2324
+ collectorForNewElement.innerHTML = "";
2325
+ collectorForNewElement.append(spanElement);
2048
2326
  }
2049
2327
  removeElemet();
2050
2328
  ImageResizing();
@@ -2063,6 +2341,11 @@ const _sfc_main = {
2063
2341
  imgResizer.style.margin = "0 auto";
2064
2342
  removeElemet();
2065
2343
  });
2344
+ closeTile.addEventListener("click", () => {
2345
+ imgResizer.style.display = "block";
2346
+ imgResizer.style.margin = "0 auto";
2347
+ removeElemet();
2348
+ });
2066
2349
  document.addEventListener("click", function removeAction(e2) {
2067
2350
  if (!imgResizer.contains(e2.target)) {
2068
2351
  removeElemet();
@@ -2077,6 +2360,11 @@ const _sfc_main = {
2077
2360
  dropedImageRedirection(imgResizer);
2078
2361
  });
2079
2362
  imageClicked.value = false;
2363
+ handleClickOutside();
2364
+ }
2365
+ function handleKeyPress(event) {
2366
+ const target = event.target;
2367
+ if (!target.firstElementChild) ;
2080
2368
  }
2081
2369
  onMounted(() => {
2082
2370
  onMountedFunctionsset();
@@ -2197,6 +2485,20 @@ const _sfc_main = {
2197
2485
  selectedImage = imgResizer;
2198
2486
  });
2199
2487
  range.insertNode(imgResizer);
2488
+ const parentElement = range.commonAncestorContainer;
2489
+ const parentNode = parentElement.nodeType === Node.TEXT_NODE ? parentElement.parentNode : parentElement;
2490
+ if (parentNode.id == "editor") {
2491
+ const originalElement = editorRef.value.innerHTML;
2492
+ editorRef.value.innerHTML = null;
2493
+ const wrapperContainer = document.createElement("div");
2494
+ wrapperContainer.innerHTML = originalElement;
2495
+ range.deleteContents();
2496
+ range.insertNode(wrapperContainer);
2497
+ const newRange = document.createRange();
2498
+ const selection = window.getSelection();
2499
+ selection.removeAllRanges();
2500
+ newRange.collapse(true);
2501
+ }
2200
2502
  imageContainerClicked();
2201
2503
  ImageResizing();
2202
2504
  returnData();
@@ -2211,12 +2513,7 @@ const _sfc_main = {
2211
2513
  }
2212
2514
  function undoOrRedo(acting) {
2213
2515
  const action = UndoRedo[acting]();
2214
- setTimeout(() => {
2215
- if (action) {
2216
- editorRef.value.innerHTML = action;
2217
- returnData();
2218
- }
2219
- }, 100);
2516
+ editorRef.value.innerHTML = action;
2220
2517
  }
2221
2518
  return (_ctx, _cache) => {
2222
2519
  return openBlock(), createElementBlock("span", _hoisted_1, [
@@ -2522,7 +2819,7 @@ const _sfc_main = {
2522
2819
  createElementVNode("div", _hoisted_127, [
2523
2820
  createElementVNode("button", {
2524
2821
  style: { "flex": "1", "margin": "0 4px", "width": "auto" },
2525
- onClick: _cache[38] || (_cache[38] = ($event) => ChangeTheDirectionOFTextFun("text-align", "justify", "", "p"))
2822
+ onClick: _cache[38] || (_cache[38] = ($event) => ChangeTheDirectionOFTextFun("float", "left", "", "div"))
2526
2823
  }, _hoisted_129),
2527
2824
  createElementVNode("button", {
2528
2825
  style: { "flex": "1", "margin": "0 4px", "width": "auto" },
@@ -2530,7 +2827,7 @@ const _sfc_main = {
2530
2827
  }, _hoisted_131),
2531
2828
  createElementVNode("button", {
2532
2829
  style: { "flex": "1", "margin": "0 4px", "width": "auto" },
2533
- onClick: _cache[40] || (_cache[40] = ($event) => ChangeTheDirectionOFTextFun("text-align", "end", "", "p"))
2830
+ onClick: _cache[40] || (_cache[40] = ($event) => ChangeTheDirectionOFTextFun("float", "right", "", "div"))
2534
2831
  }, _hoisted_133),
2535
2832
  createElementVNode("button", {
2536
2833
  style: { "flex": "1", "margin": "0 4px", "width": "auto" },
@@ -2564,7 +2861,7 @@ const _sfc_main = {
2564
2861
  renderSlot(_ctx.$slots, "toolbar-before", {}, void 0, true),
2565
2862
  createElementVNode("div", {
2566
2863
  class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md p-0 px-3",
2567
- style: { "margin": "6px" },
2864
+ style: { "margin": "1px" },
2568
2865
  onClick: _cache[46] || (_cache[46] = ($event) => insertElementAtCursorFun())
2569
2866
  }, _hoisted_150),
2570
2867
  createElementVNode("div", {
@@ -2602,30 +2899,38 @@ const _sfc_main = {
2602
2899
  style: { "margin": "6px" }
2603
2900
  }, _hoisted_166),
2604
2901
  createElementVNode("div", _hoisted_167, [
2605
- _hoisted_168,
2606
- createElementVNode("div", _hoisted_169, [
2902
+ createElementVNode("div", _hoisted_168, [
2903
+ _hoisted_169,
2607
2904
  createElementVNode("div", _hoisted_170, [
2608
- (openBlock(true), createElementBlock(Fragment, null, renderList(colors.value, (col) => {
2609
- return openBlock(), createElementBlock("div", {
2610
- class: "color-box",
2611
- style: normalizeStyle(`background-color: #${col} ;`),
2612
- onClick: (e) => styleElementIncluderFun("background", `#${col}`, "", "span")
2613
- }, null, 12, _hoisted_171);
2614
- }), 256))
2905
+ createElementVNode("div", _hoisted_171, [
2906
+ createElementVNode("div", _hoisted_172, [
2907
+ (openBlock(true), createElementBlock(Fragment, null, renderList(colors.value, (col) => {
2908
+ return openBlock(), createElementBlock("div", {
2909
+ class: "color-box",
2910
+ style: normalizeStyle(`background-color: #${col} ;`),
2911
+ onClick: (e) => styleElementIncluderFun("background", `#${col}`, "", "span")
2912
+ }, null, 12, _hoisted_173);
2913
+ }), 256))
2914
+ ])
2915
+ ])
2615
2916
  ])
2616
2917
  ])
2617
2918
  ]),
2618
- createElementVNode("div", _hoisted_172, [
2619
- _hoisted_173,
2620
- createElementVNode("div", _hoisted_174, [
2621
- createElementVNode("div", _hoisted_175, [
2622
- (openBlock(true), createElementBlock(Fragment, null, renderList(colors.value, (col) => {
2623
- return openBlock(), createElementBlock("div", {
2624
- class: "color-box",
2625
- style: normalizeStyle(`background-color: #${col} ;`),
2626
- onClick: (e) => styleElementIncluderFun("color", `#${col}`, "", "span")
2627
- }, null, 12, _hoisted_176);
2628
- }), 256))
2919
+ createElementVNode("div", _hoisted_174, [
2920
+ createElementVNode("div", _hoisted_175, [
2921
+ _hoisted_176,
2922
+ createElementVNode("div", _hoisted_177, [
2923
+ createElementVNode("div", _hoisted_178, [
2924
+ createElementVNode("div", _hoisted_179, [
2925
+ (openBlock(true), createElementBlock(Fragment, null, renderList(colors.value, (col) => {
2926
+ return openBlock(), createElementBlock("div", {
2927
+ class: "color-box",
2928
+ style: normalizeStyle(`background-color: #${col} ;`),
2929
+ onClick: (e) => styleElementIncluderFun("color", `#${col}`, "", "span")
2930
+ }, null, 12, _hoisted_180);
2931
+ }), 256))
2932
+ ])
2933
+ ])
2629
2934
  ])
2630
2935
  ])
2631
2936
  ]),
@@ -2635,35 +2940,32 @@ const _sfc_main = {
2635
2940
  st: "",
2636
2941
  yle: "flex: 1; margin: 0 4px; text-align: center;padding-top:8px ;",
2637
2942
  onClick: _cache[53] || (_cache[53] = () => undoOrRedo("Undo"))
2638
- }, _hoisted_178),
2943
+ }, _hoisted_182),
2639
2944
  createElementVNode("div", {
2640
2945
  title: "Redo",
2641
2946
  class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 elemeSet items-center text-center justify-baseline rounded cursor-pointer text-md p-0 m-1",
2642
2947
  st: "",
2643
2948
  yle: "flex: 1; margin: 0 4px; text-align: center;padding-top:8px ;",
2644
2949
  onClick: _cache[54] || (_cache[54] = () => undoOrRedo("Redo"))
2645
- }, _hoisted_180),
2950
+ }, _hoisted_184),
2646
2951
  createElementVNode("div", {
2647
2952
  title: "new fresh line",
2648
2953
  class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 elemeSet items-center text-center justify-baseline rounded cursor-pointer text-md p-0 m-1",
2649
2954
  st: "",
2650
2955
  yle: "flex: 1; margin: 0 4px; text-align: center;padding-top:8px ;",
2651
2956
  onClick: _cache[55] || (_cache[55] = ($event) => insertNewLineAtCursorFun())
2652
- }, _hoisted_182),
2653
- createElementVNode("div", _hoisted_183, [
2654
- createElementVNode("div", _hoisted_184, [
2655
- createElementVNode("div", _hoisted_185, [
2656
- _hoisted_186,
2657
- createElementVNode("div", _hoisted_187, [
2658
- (openBlock(), createElementBlock(Fragment, null, renderList(89, (size) => {
2659
- return createElementVNode("div", {
2660
- onClick: (e) => styleElementIncluderFun("font-size", size + "pt"),
2661
- key: size,
2662
- value: size,
2663
- style: { "display": "block" }
2664
- }, toDisplayString(size) + "pt", 9, _hoisted_188);
2665
- }), 64))
2666
- ])
2957
+ }, _hoisted_186),
2958
+ createElementVNode("div", _hoisted_187, [
2959
+ createElementVNode("div", _hoisted_188, [
2960
+ _hoisted_189,
2961
+ createElementVNode("div", _hoisted_190, [
2962
+ (openBlock(), createElementBlock(Fragment, null, renderList(50, (size) => {
2963
+ return createElementVNode("div", {
2964
+ class: "pom-editor-menu-fonts",
2965
+ onClick: (e) => styleElementIncluderFun("font-size", size + "pt"),
2966
+ key: size
2967
+ }, toDisplayString(size) + " pt", 9, _hoisted_191);
2968
+ }), 64))
2667
2969
  ])
2668
2970
  ])
2669
2971
  ]),
@@ -2676,13 +2978,18 @@ const _sfc_main = {
2676
2978
  ref_key: "pomTextEditorContainer",
2677
2979
  ref: pomTextEditorContainer,
2678
2980
  id: "pom-texedito-container",
2679
- style: { "width": "100%", "overflow": "hidden auto", "min-height": "30vh", "height": "40vh", "border": "1px solid #9d969633", "padding": "0px", "border-radius": "3px" }
2981
+ style: { "width": "100%", "overflow": "hidden auto", "border": "1px solid #9d969633", "padding": "0px", "border-radius": "3px" }
2680
2982
  }, [
2681
- createElementVNode("div", _hoisted_189, [
2983
+ createElementVNode("div", {
2984
+ width: "128",
2985
+ height: "128",
2986
+ style: normalizeStyle(`max-height:${props.maxHeight} ;min-height:15vh ;text-align: justify;`)
2987
+ }, [
2682
2988
  __props.TextOnly ? (openBlock(), createElementBlock("textarea", {
2683
2989
  key: 0,
2684
2990
  onMouseup: _cache[56] || (_cache[56] = ($event) => containerCursorPosition()),
2685
2991
  onKeyup: _cache[57] || (_cache[57] = (e) => {
2992
+ handleKeyPress(e);
2686
2993
  containerCursorPosition();
2687
2994
  }),
2688
2995
  onInput: returnData,
@@ -2695,9 +3002,9 @@ const _sfc_main = {
2695
3002
  key: 1,
2696
3003
  "data-placeholder": "Your Editing.....",
2697
3004
  onDrop: onChangeFileDrop,
2698
- innerHTML: __props.Dvalue,
2699
3005
  onMouseup: _cache[58] || (_cache[58] = ($event) => containerCursorPosition()),
2700
3006
  onKeyup: _cache[59] || (_cache[59] = (e) => {
3007
+ handleKeyPress(e);
2701
3008
  containerCursorPosition();
2702
3009
  }),
2703
3010
  ref_key: "editorRef",
@@ -2707,22 +3014,22 @@ const _sfc_main = {
2707
3014
  contenteditable: "true",
2708
3015
  id: "editor",
2709
3016
  style: { "height": "100%", "width": "100%", "border": "none" }
2710
- }, null, 40, _hoisted_190))
2711
- ])
3017
+ }, null, 544))
3018
+ ], 4)
2712
3019
  ], 512),
2713
- __props.TextOnly != "true" ? (openBlock(), createElementBlock("div", _hoisted_191, [
3020
+ __props.TextOnly != "true" ? (openBlock(), createElementBlock("div", _hoisted_192, [
2714
3021
  createElementVNode("div", {
2715
3022
  class: "hover:bg-gray-200",
2716
3023
  onClick: _cache[60] || (_cache[60] = ($event) => insertNewLineAtCursorFun())
2717
- }, _hoisted_194),
2718
- _hoisted_195,
2719
- _hoisted_196
3024
+ }, _hoisted_195),
3025
+ _hoisted_196,
3026
+ _hoisted_197
2720
3027
  ])) : createCommentVNode("", true)
2721
3028
  ]);
2722
3029
  };
2723
3030
  }
2724
3031
  };
2725
- const Editor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c5407d12"]]);
3032
+ const Editor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c6058be1"]]);
2726
3033
  export {
2727
3034
  Editor as default
2728
3035
  };