pom-text-editor 0.2.23 → 0.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pom-text-editor.cjs.js +2 -2
- package/dist/pom-text-editor.es.js +439 -579
- package/dist/pom-text-editor.umd.js +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.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: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-9ee2fe0b]: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-9ee2fe0b]:focus:before{content:none}.pom-main-element-container .table-picker-wrapper[data-v-9ee2fe0b]{position:relative;display:inline-block}.pom-main-element-container .table-picker-trigger[data-v-9ee2fe0b]{cursor:pointer;display:flex;align-items:center}.pom-main-element-container .table-picker-container[data-v-9ee2fe0b]{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-9ee2fe0b]{display:block}.pom-main-element-container .table-picker-grid[data-v-9ee2fe0b]{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-9ee2fe0b]{width:20px;height:20px;border:1px solid #ddd;background-color:#efa153ce}.pom-main-element-container .table-picker-grid div[data-v-9ee2fe0b]:hover{background-color:#f8f6f6;border:0}.table-dimensions[data-v-9ee2fe0b]{font-size:12px;color:#333}.pom-main-element-container .pomXEditor[data-v-9ee2fe0b]{border:1px;border-style:solid;border-color:#6972734e}.pom-main-element-container #editor[data-v-9ee2fe0b]:focus{outline:none;border:none}.pom-main-element-container .pom-table-editor-container[data-v-9ee2fe0b]{display:flex}.pom-main-element-container .pom-table-editor-container a[data-v-9ee2fe0b]{color:#00f;text-decoration:underline;cursor:pointer}.pom-main-element-container .pom-table-editor-container a[data-v-9ee2fe0b]:link{color:#00f}.pom-main-element-container .pom-table-editor-container a[data-v-9ee2fe0b]:visited{color:purple}.pom-main-element-container .pom-table-editor-container a[data-v-9ee2fe0b]:hover{color:red;text-decoration:none}.pom-main-element-container .pom-table-editor-container a[data-v-9ee2fe0b]:active{color:orange}@media print{.hideonprint[data-v-9ee2fe0b]{display:none!important}[data-v-9ee2fe0b]{overflow:hidden}}.pom-main-element-container .editor[data-v-9ee2fe0b]{padding:10px;border:1px solid #ccc;min-height:200px}.pom-main-element-container .resizable-image[data-v-9ee2fe0b]{max-width:100%;resize:both;overflow:auto;display:block;cursor:nwse-resize}.pom-main-element-container[data-v-9ee2fe0b] ::-webkit-scrollbar{width:12px;height:12px}.pom-main-element-container[data-v-9ee2fe0b] ::-webkit-scrollbar-track{background:#f1f1f1}.pom-main-element-container[data-v-9ee2fe0b] ::-webkit-scrollbar-thumb{background-color:#888;border-radius:6px;border:3px solid #f1f1f1}.pom-main-element-container[data-v-9ee2fe0b] ::-webkit-scrollbar-thumb:hover{background:#555}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
|
-
import { ref, onMounted, openBlock, createElementBlock, createElementVNode, unref, renderSlot, Fragment, renderList, normalizeStyle, toDisplayString, createCommentVNode, createStaticVNode, pushScopeId, popScopeId, createTextVNode } from "vue";
|
|
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";
|
|
3
3
|
function updateCursorInfo() {
|
|
4
4
|
const selection = window.getSelection();
|
|
5
5
|
if (selection.rangeCount > 0) {
|
|
@@ -49,6 +49,141 @@ function initResize(e) {
|
|
|
49
49
|
document.addEventListener("mousemove", onMouseMove);
|
|
50
50
|
document.addEventListener("mouseup", onMouseUp);
|
|
51
51
|
}
|
|
52
|
+
function insertNewLineAtCursor(editor2) {
|
|
53
|
+
const spaceAfter = document.createElement("div");
|
|
54
|
+
spaceAfter.textContent = "NeW line ";
|
|
55
|
+
editor2.appendChild(spaceAfter);
|
|
56
|
+
spaceAfter.focus();
|
|
57
|
+
}
|
|
58
|
+
function removeAllTables(hide = false, tables = document.getElementsByClassName("pom-table-editor-container")) {
|
|
59
|
+
tables = Array.from(tables);
|
|
60
|
+
tables.forEach((table) => {
|
|
61
|
+
if (hide) {
|
|
62
|
+
const display = table.style.display === "flex" ? "none" : "flex";
|
|
63
|
+
table.style.display = display;
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
table.remove();
|
|
67
|
+
});
|
|
68
|
+
}
|
|
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>
|
|
73
|
+
${elementsTohide} {
|
|
74
|
+
display: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@media print {
|
|
78
|
+
${elementsTohide} {
|
|
79
|
+
display: none;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
.pom-4-imageContainer {
|
|
83
|
+
display: block !important;
|
|
84
|
+
}
|
|
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
|
+
}
|
|
111
|
+
}
|
|
112
|
+
function exportUserHtmlForAtheUse(printableContent = document.getElementById("pom-texedito-container")) {
|
|
113
|
+
bringBackWildImages(printableContent.querySelectorAll(".resizer-image-dropped"));
|
|
114
|
+
const returnData = printableContent.innerHTML;
|
|
115
|
+
return returnData;
|
|
116
|
+
}
|
|
117
|
+
function previewAndPrint(print = true, printableContent = document.getElementById("pom-texedito-container").innerHTML, elementsTohide = "hideonprint") {
|
|
118
|
+
const printableContent2 = styleCss() + printableContent;
|
|
119
|
+
const printWindow2 = scopeOutTheUserDataReutur(printableContent2, elementsTohide);
|
|
120
|
+
if (print) {
|
|
121
|
+
printWindow2.focus();
|
|
122
|
+
printWindow2.onload = function() {
|
|
123
|
+
printWindow2.print();
|
|
124
|
+
};
|
|
125
|
+
printWindow2.onafterprint = function() {
|
|
126
|
+
printWindow2.close();
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
function OnmountedTableActionActivation() {
|
|
131
|
+
const elmnt = document.querySelectorAll(".pom-table-col-resizer");
|
|
132
|
+
elmnt.forEach((d) => {
|
|
133
|
+
d.addEventListener("mousedown", initResize);
|
|
134
|
+
});
|
|
135
|
+
const table2 = document.querySelectorAll("table");
|
|
136
|
+
table2.forEach((d) => {
|
|
137
|
+
d.addEventListener("contextmenu", function(e) {
|
|
138
|
+
e.preventDefault();
|
|
139
|
+
const container = e.target.parentElement;
|
|
140
|
+
createCustomContextMenu(e, d, container);
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
function initResizeImage(e, type, imgResizer, imgElement) {
|
|
145
|
+
e.preventDefault();
|
|
146
|
+
const currentResizer = type;
|
|
147
|
+
window.addEventListener("mousemove", resizeHandler);
|
|
148
|
+
window.addEventListener("mouseup", stopResize);
|
|
149
|
+
function resizeHandler(e2) {
|
|
150
|
+
resize(e2, currentResizer, imgResizer, imgElement);
|
|
151
|
+
}
|
|
152
|
+
function stopResize() {
|
|
153
|
+
window.removeEventListener("mousemove", resizeHandler);
|
|
154
|
+
window.removeEventListener("mouseup", stopResize);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
function resize(e, currentResizer, imgResizer, imgElement) {
|
|
158
|
+
const rect = imgResizer.getBoundingClientRect();
|
|
159
|
+
if (currentResizer === "width" || currentResizer === "both") {
|
|
160
|
+
const newWidth = e.clientX - rect.left;
|
|
161
|
+
imgResizer.style.width = newWidth + "px";
|
|
162
|
+
imgElement.style.width = newWidth + "px";
|
|
163
|
+
}
|
|
164
|
+
if (currentResizer === "height" || currentResizer === "both") {
|
|
165
|
+
const newHeight = e.clientY - rect.top;
|
|
166
|
+
imgElement.style.height = newHeight + "px";
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
function ImageResizing() {
|
|
170
|
+
const widthResizers = document.getElementsByClassName("widthResizer");
|
|
171
|
+
Array.from(widthResizers).forEach((item, i) => {
|
|
172
|
+
const imgResizer = document.getElementsByClassName("resizer-image-dropped")[i];
|
|
173
|
+
const imgElement = document.getElementsByClassName("resizable-image")[i];
|
|
174
|
+
const heightResizer = document.getElementsByClassName("heightResizer")[i];
|
|
175
|
+
const cornerResizer = document.getElementsByClassName("cornerResizer")[i];
|
|
176
|
+
if (item) {
|
|
177
|
+
item.addEventListener("mousedown", (e) => initResizeImage(e, "width", imgResizer, imgElement));
|
|
178
|
+
}
|
|
179
|
+
if (heightResizer) {
|
|
180
|
+
heightResizer.addEventListener("mousedown", (e) => initResizeImage(e, "height", imgResizer, imgElement));
|
|
181
|
+
}
|
|
182
|
+
if (cornerResizer) {
|
|
183
|
+
cornerResizer.addEventListener("mousedown", (e) => initResizeImage(e, "both", imgResizer, imgElement));
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
}
|
|
52
187
|
let savedRange;
|
|
53
188
|
function handleMouseClick(editor2, tableDimensions) {
|
|
54
189
|
const [columns, rows] = tableDimensions.textContent.split(" x ").map(Number);
|
|
@@ -108,7 +243,7 @@ function insertTableAtCursor(editor2, numRows = 2, numCols = 2) {
|
|
|
108
243
|
resizer.style.top = "0";
|
|
109
244
|
resizer.style.cursor = "col-resize";
|
|
110
245
|
resizer.style.userSelect = "none";
|
|
111
|
-
resizer.
|
|
246
|
+
resizer.classList.add("pom-table-col-resizer");
|
|
112
247
|
cell.style.position = "relative";
|
|
113
248
|
cell.appendChild(resizer);
|
|
114
249
|
row.appendChild(cell);
|
|
@@ -116,10 +251,6 @@ function insertTableAtCursor(editor2, numRows = 2, numCols = 2) {
|
|
|
116
251
|
table.appendChild(row);
|
|
117
252
|
}
|
|
118
253
|
container.appendChild(table);
|
|
119
|
-
table.addEventListener("contextmenu", function(e) {
|
|
120
|
-
e.preventDefault();
|
|
121
|
-
createCustomContextMenu(e, table, container);
|
|
122
|
-
});
|
|
123
254
|
range.deleteContents();
|
|
124
255
|
range.insertNode(container);
|
|
125
256
|
const firstCell = table.querySelector("td");
|
|
@@ -128,6 +259,7 @@ function insertTableAtCursor(editor2, numRows = 2, numCols = 2) {
|
|
|
128
259
|
newRange.collapse(true);
|
|
129
260
|
selection.addRange(newRange);
|
|
130
261
|
savedRange = newRange.cloneRange();
|
|
262
|
+
OnmountedTableActionActivation();
|
|
131
263
|
editor2.focus();
|
|
132
264
|
return savedRange;
|
|
133
265
|
}
|
|
@@ -153,10 +285,10 @@ function createCustomContextMenu(e, table, container) {
|
|
|
153
285
|
text: "Toggle Borders",
|
|
154
286
|
action: () => {
|
|
155
287
|
const hasBorder = table.style.border !== "";
|
|
156
|
-
table.style.border = hasBorder ? "" : "1px solid black";
|
|
288
|
+
table.style.border = hasBorder ? "none" : "1px solid black";
|
|
157
289
|
table.style.borderCollapse = "collapse";
|
|
158
290
|
table.querySelectorAll("td").forEach((td) => {
|
|
159
|
-
td.style.border = hasBorder ? "" : "1px solid black";
|
|
291
|
+
td.style.border = hasBorder ? "none" : "1px solid black";
|
|
160
292
|
});
|
|
161
293
|
}
|
|
162
294
|
},
|
|
@@ -496,84 +628,6 @@ const UndoRedo = {
|
|
|
496
628
|
return lastUndo.text;
|
|
497
629
|
}
|
|
498
630
|
};
|
|
499
|
-
function insertNewLineAtCursor(editor2) {
|
|
500
|
-
const spaceAfter = document.createElement("div");
|
|
501
|
-
spaceAfter.textContent = "NeW line ";
|
|
502
|
-
editor2.appendChild(spaceAfter);
|
|
503
|
-
spaceAfter.focus();
|
|
504
|
-
}
|
|
505
|
-
function removeAllTables(hide = false, tables = document.getElementsByClassName("pom-table-editor-container")) {
|
|
506
|
-
tables = Array.from(tables);
|
|
507
|
-
tables.forEach((table) => {
|
|
508
|
-
if (hide) {
|
|
509
|
-
const display = table.style.display === "flex" ? "none" : "flex";
|
|
510
|
-
table.style.display = display;
|
|
511
|
-
return;
|
|
512
|
-
}
|
|
513
|
-
table.remove();
|
|
514
|
-
});
|
|
515
|
-
}
|
|
516
|
-
function scopeOutTheUserDataReutur(printableContent = document.getElementById("pom-texedito-container").innerHTML, elementsTohide = ".hideonprint") {
|
|
517
|
-
const printWindow2 = window.open("", "", "height=900,width=800");
|
|
518
|
-
printWindow2.document.write("<html><head><title>Print</title>");
|
|
519
|
-
printWindow2.document.write(`<style>
|
|
520
|
-
${elementsTohide} {
|
|
521
|
-
display: none;
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
@media print {
|
|
525
|
-
${elementsTohide} {
|
|
526
|
-
display: none;
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
.pom-4-imageContainer {
|
|
530
|
-
display: block !important;
|
|
531
|
-
}
|
|
532
|
-
</style>`);
|
|
533
|
-
printWindow2.document.write("</head><body>");
|
|
534
|
-
printWindow2.document.write(printableContent);
|
|
535
|
-
printWindow2.document.write("</body></html>");
|
|
536
|
-
printWindow2.document.close();
|
|
537
|
-
const removeinlineblock = printWindow2.document.querySelectorAll(".pom-4-imageContainer");
|
|
538
|
-
bringBackWildImages(removeinlineblock);
|
|
539
|
-
return printWindow2;
|
|
540
|
-
}
|
|
541
|
-
function bringBackWildImages(imageContainers = printWindow.document.querySelectorAll(".pom-4-imageContainer")) {
|
|
542
|
-
if (imageContainers) {
|
|
543
|
-
imageContainers.forEach(function(element) {
|
|
544
|
-
const img = element.querySelector("img");
|
|
545
|
-
const computedStyles = element.getAttribute("style");
|
|
546
|
-
if (computedStyles) {
|
|
547
|
-
img.style.cssText = computedStyles + "; position: initial";
|
|
548
|
-
} else {
|
|
549
|
-
img.style.position = "initial";
|
|
550
|
-
}
|
|
551
|
-
element.style.display = "block";
|
|
552
|
-
const leftPosition = parseInt(element.style.left, 10);
|
|
553
|
-
if (leftPosition > 793.7) {
|
|
554
|
-
element.style.left = "793.7px";
|
|
555
|
-
}
|
|
556
|
-
});
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
function exportUserHtmlForAtheUse(printableContent = document.getElementById("pom-texedito-container")) {
|
|
560
|
-
bringBackWildImages(printableContent.querySelectorAll(".pom-4-imageContainer"));
|
|
561
|
-
const returnData = printableContent.innerHTML;
|
|
562
|
-
return returnData;
|
|
563
|
-
}
|
|
564
|
-
function previewAndPrint(print = true, printableContent = document.getElementById("pom-texedito-container").innerHTML, elementsTohide = "hideonprint") {
|
|
565
|
-
const printableContent2 = styleCss() + printableContent;
|
|
566
|
-
const printWindow2 = scopeOutTheUserDataReutur(printableContent2, elementsTohide);
|
|
567
|
-
if (print) {
|
|
568
|
-
printWindow2.focus();
|
|
569
|
-
printWindow2.onload = function() {
|
|
570
|
-
printWindow2.print();
|
|
571
|
-
};
|
|
572
|
-
printWindow2.onafterprint = function() {
|
|
573
|
-
printWindow2.close();
|
|
574
|
-
};
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
631
|
function opensTyleOnElement(savedRange2, editor2, style, value, suffix = "", elementType = "span") {
|
|
578
632
|
if (!savedRange2) {
|
|
579
633
|
console.warn("No saved range available. Ensure the cursor position is saved before calling this function.");
|
|
@@ -588,25 +642,36 @@ function opensTyleOnElement(savedRange2, editor2, style, value, suffix = "", ele
|
|
|
588
642
|
const parentNode = parentElement.nodeType === Node.TEXT_NODE ? parentElement.parentNode : parentElement;
|
|
589
643
|
const tagName = parentNode.tagName.toLowerCase();
|
|
590
644
|
let textToReplace;
|
|
591
|
-
const
|
|
645
|
+
const styleLikeSoJustReplace = ["font-sze"];
|
|
592
646
|
if (parentNode && tagName === elementType) {
|
|
593
647
|
const existingStyle = parentNode.getAttribute("style") || null;
|
|
594
648
|
if (existingStyle) {
|
|
595
|
-
|
|
596
|
-
|
|
649
|
+
const rege = new RegExp(`${style}:\\s*${value};?`, "g");
|
|
650
|
+
const exists = rege.test(existingStyle);
|
|
651
|
+
let updatedStyles;
|
|
652
|
+
if (styleLikeSoJustReplace.includes(style) || !exists)
|
|
653
|
+
parentNode.style[style] = value;
|
|
654
|
+
else {
|
|
655
|
+
updatedStyles = existingStyle.replace(rege, "");
|
|
656
|
+
if (exists)
|
|
657
|
+
parentNode.setAttribute("style", updatedStyles);
|
|
658
|
+
}
|
|
597
659
|
}
|
|
660
|
+
return;
|
|
661
|
+
} else {
|
|
662
|
+
const element = document.createElement(elementType);
|
|
663
|
+
element.style[style] = value;
|
|
664
|
+
element.appendChild(highlightedText);
|
|
665
|
+
textToReplace = element.innerHTML;
|
|
666
|
+
savedRange2.deleteContents();
|
|
667
|
+
element.innerHTML = textToReplace;
|
|
668
|
+
savedRange2.insertNode(element);
|
|
669
|
+
const newRange = document.createRange();
|
|
670
|
+
newRange.collapse(true);
|
|
671
|
+
selection.removeAllRanges();
|
|
672
|
+
selection.addRange(newRange);
|
|
673
|
+
savedRange2 = newRange.cloneRange();
|
|
598
674
|
}
|
|
599
|
-
element.style[style] = value;
|
|
600
|
-
element.appendChild(highlightedText);
|
|
601
|
-
textToReplace = element.innerHTML;
|
|
602
|
-
savedRange2.deleteContents();
|
|
603
|
-
element.innerHTML = textToReplace;
|
|
604
|
-
savedRange2.insertNode(element);
|
|
605
|
-
const newRange = document.createRange();
|
|
606
|
-
newRange.collapse(true);
|
|
607
|
-
selection.removeAllRanges();
|
|
608
|
-
selection.addRange(newRange);
|
|
609
|
-
savedRange2 = newRange.cloneRange();
|
|
610
675
|
}
|
|
611
676
|
function insertElementAtCursorHtags(savedRange2, elementType = "h6", placeholderText = "*Header text*", attributes = []) {
|
|
612
677
|
if (savedRange2) {
|
|
@@ -811,7 +876,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
811
876
|
}
|
|
812
877
|
return target;
|
|
813
878
|
};
|
|
814
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
879
|
+
const _withScopeId = (n) => (pushScopeId("data-v-c5407d12"), n = n(), popScopeId(), n);
|
|
815
880
|
const _hoisted_1 = { class: "pom-main-element-container" };
|
|
816
881
|
const _hoisted_2 = {
|
|
817
882
|
style: { "width": "100%" },
|
|
@@ -824,7 +889,7 @@ const _hoisted_3 = {
|
|
|
824
889
|
const _hoisted_4 = { class: "flex flex space-x-2 items-center" };
|
|
825
890
|
const _hoisted_5 = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" };
|
|
826
891
|
const _hoisted_6 = { class: "relative inline-block text-left group z-10 border-0" };
|
|
827
|
-
const _hoisted_7 = /* @__PURE__ */ createStaticVNode('<div class="w-full flex rounded-md" data-v-
|
|
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);
|
|
828
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" };
|
|
829
894
|
const _hoisted_9 = {
|
|
830
895
|
class: "",
|
|
@@ -847,7 +912,7 @@ const _hoisted_15 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEle
|
|
|
847
912
|
], -1));
|
|
848
913
|
const _hoisted_16 = { class: "items-center border-1 b g-gray-200 rounded cursor-pointer" };
|
|
849
914
|
const _hoisted_17 = { class: "relative inline-block text-left group z-10 border-0 w-ful l" };
|
|
850
|
-
const _hoisted_18 = /* @__PURE__ */ createStaticVNode('<div class="w-full flex rounded-md" data-v-
|
|
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);
|
|
851
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" };
|
|
852
917
|
const _hoisted_20 = {
|
|
853
918
|
class: "",
|
|
@@ -945,7 +1010,7 @@ const _hoisted_65 = [
|
|
|
945
1010
|
];
|
|
946
1011
|
const _hoisted_66 = { class: "flex items-center border-1 b g-gray-200 rounded cursor-pointer" };
|
|
947
1012
|
const _hoisted_67 = { class: "relative inline-block text-left group z-10 border-0 w-ful l" };
|
|
948
|
-
const _hoisted_68 = /* @__PURE__ */ createStaticVNode('<div class="w-full flex rounded-md" data-v-
|
|
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);
|
|
949
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" };
|
|
950
1015
|
const _hoisted_70 = {
|
|
951
1016
|
class: "",
|
|
@@ -964,14 +1029,14 @@ const _hoisted_76 = [
|
|
|
964
1029
|
_hoisted_75
|
|
965
1030
|
];
|
|
966
1031
|
const _hoisted_77 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "-calendar-alt 1x" }, null, -1));
|
|
967
|
-
const _hoisted_78 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-
|
|
1032
|
+
const _hoisted_78 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-1" }, "Date/time", -1));
|
|
968
1033
|
const _hoisted_79 = [
|
|
969
1034
|
_hoisted_77,
|
|
970
1035
|
_hoisted_78
|
|
971
1036
|
];
|
|
972
|
-
const _hoisted_80 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "text-center w-full
|
|
1037
|
+
const _hoisted_80 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "text-center w-full p y-1 bg-gray-100 font-bold" }, "Table", -1));
|
|
973
1038
|
const _hoisted_81 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "trash-can p x-2" }, null, -1));
|
|
974
|
-
const _hoisted_82 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3" }, "Delete All
|
|
1039
|
+
const _hoisted_82 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "px-3" }, "Delete All", -1));
|
|
975
1040
|
const _hoisted_83 = [
|
|
976
1041
|
_hoisted_81,
|
|
977
1042
|
_hoisted_82
|
|
@@ -996,15 +1061,15 @@ const _hoisted_91 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEle
|
|
|
996
1061
|
"aria-expanded": "true",
|
|
997
1062
|
"aria-haspopup": "true"
|
|
998
1063
|
}, [
|
|
999
|
-
/* @__PURE__ */ createElementVNode("div", { class: "
|
|
1000
|
-
/* @__PURE__ */ createElementVNode("span", { class: "cursor-pointer z-10 ml-1
|
|
1064
|
+
/* @__PURE__ */ createElementVNode("div", { class: "p y-1 w borde r-1 w-full text-start in flex flex-wrap" }, [
|
|
1065
|
+
/* @__PURE__ */ createElementVNode("span", { class: "cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600" }, "Fonts")
|
|
1001
1066
|
])
|
|
1002
1067
|
])
|
|
1003
1068
|
], -1));
|
|
1004
|
-
const _hoisted_92 = { class: "
|
|
1005
|
-
const _hoisted_93 = { class: "cursor-pointer z-10 ml-1
|
|
1069
|
+
const _hoisted_92 = { class: "p y-1 w borde r-1 w-full text-start in flex flex-wrap pom-editor-menu-fonts" };
|
|
1070
|
+
const _hoisted_93 = { class: "cursor-pointer z-10 ml-1 mx-1 rounded-full text-center text-sm font-bold text-gray-600" };
|
|
1006
1071
|
const _hoisted_94 = {
|
|
1007
|
-
class: "hidden absolute group-hover:block mt-0
|
|
1072
|
+
class: "hidden text-left absolute group-hover:block mt-0 gap-2 px-2 text-sm rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none",
|
|
1008
1073
|
"data-alloy-placement": "southeast",
|
|
1009
1074
|
style: { "height": "25vh", "overflow": "auto" }
|
|
1010
1075
|
};
|
|
@@ -1022,18 +1087,6 @@ const _hoisted_96 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEle
|
|
|
1022
1087
|
}, [
|
|
1023
1088
|
/* @__PURE__ */ createElementVNode("div", { class: "collection__item-label" }, [
|
|
1024
1089
|
/* @__PURE__ */ createElementVNode("div", { style: { "font-family": "andale mono, monospace" } }, "Andale Mono")
|
|
1025
|
-
]),
|
|
1026
|
-
/* @__PURE__ */ createElementVNode("div", { class: "collection__item-checkmark" }, [
|
|
1027
|
-
/* @__PURE__ */ createElementVNode("svg", {
|
|
1028
|
-
width: "24",
|
|
1029
|
-
height: "24",
|
|
1030
|
-
focusable: "false"
|
|
1031
|
-
}, [
|
|
1032
|
-
/* @__PURE__ */ createElementVNode("path", {
|
|
1033
|
-
d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
|
|
1034
|
-
"fill-rule": "nonzero"
|
|
1035
|
-
})
|
|
1036
|
-
])
|
|
1037
1090
|
])
|
|
1038
1091
|
], -1));
|
|
1039
1092
|
const _hoisted_97 = {
|
|
@@ -1048,19 +1101,7 @@ const _hoisted_97 = {
|
|
|
1048
1101
|
"aria-selected": "false"
|
|
1049
1102
|
};
|
|
1050
1103
|
const _hoisted_98 = { class: "collection__item-label" };
|
|
1051
|
-
const _hoisted_99 =
|
|
1052
|
-
/* @__PURE__ */ createElementVNode("svg", {
|
|
1053
|
-
width: "24",
|
|
1054
|
-
height: "24",
|
|
1055
|
-
focusable: "false"
|
|
1056
|
-
}, [
|
|
1057
|
-
/* @__PURE__ */ createElementVNode("path", {
|
|
1058
|
-
d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
|
|
1059
|
-
"fill-rule": "nonzero"
|
|
1060
|
-
})
|
|
1061
|
-
])
|
|
1062
|
-
], -1));
|
|
1063
|
-
const _hoisted_100 = {
|
|
1104
|
+
const _hoisted_99 = {
|
|
1064
1105
|
title: "Arial Black",
|
|
1065
1106
|
id: "menu-item_7337372467171728727990778",
|
|
1066
1107
|
role: "menuitemcheckbox",
|
|
@@ -1071,20 +1112,8 @@ const _hoisted_100 = {
|
|
|
1071
1112
|
"aria-checked": "false",
|
|
1072
1113
|
"aria-selected": "false"
|
|
1073
1114
|
};
|
|
1074
|
-
const
|
|
1075
|
-
const
|
|
1076
|
-
/* @__PURE__ */ createElementVNode("svg", {
|
|
1077
|
-
width: "24",
|
|
1078
|
-
height: "24",
|
|
1079
|
-
focusable: "false"
|
|
1080
|
-
}, [
|
|
1081
|
-
/* @__PURE__ */ createElementVNode("path", {
|
|
1082
|
-
d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
|
|
1083
|
-
"fill-rule": "nonzero"
|
|
1084
|
-
})
|
|
1085
|
-
])
|
|
1086
|
-
], -1));
|
|
1087
|
-
const _hoisted_103 = {
|
|
1115
|
+
const _hoisted_100 = { class: "collection__item-label" };
|
|
1116
|
+
const _hoisted_101 = {
|
|
1088
1117
|
title: "Book Antiqua",
|
|
1089
1118
|
id: "menu-item_8277641917201728727990778",
|
|
1090
1119
|
role: "menuitemcheckbox",
|
|
@@ -1095,20 +1124,8 @@ const _hoisted_103 = {
|
|
|
1095
1124
|
"aria-checked": "false",
|
|
1096
1125
|
"aria-selected": "false"
|
|
1097
1126
|
};
|
|
1098
|
-
const
|
|
1099
|
-
const
|
|
1100
|
-
/* @__PURE__ */ createElementVNode("svg", {
|
|
1101
|
-
width: "24",
|
|
1102
|
-
height: "24",
|
|
1103
|
-
focusable: "false"
|
|
1104
|
-
}, [
|
|
1105
|
-
/* @__PURE__ */ createElementVNode("path", {
|
|
1106
|
-
d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
|
|
1107
|
-
"fill-rule": "nonzero"
|
|
1108
|
-
})
|
|
1109
|
-
])
|
|
1110
|
-
], -1));
|
|
1111
|
-
const _hoisted_106 = {
|
|
1127
|
+
const _hoisted_102 = { class: "collection__item-label" };
|
|
1128
|
+
const _hoisted_103 = {
|
|
1112
1129
|
title: "Comic Sans MS",
|
|
1113
1130
|
id: "menu-item_2698863237231728727990778",
|
|
1114
1131
|
role: "menuitemcheckbox",
|
|
@@ -1119,20 +1136,8 @@ const _hoisted_106 = {
|
|
|
1119
1136
|
"aria-checked": "false",
|
|
1120
1137
|
"aria-selected": "false"
|
|
1121
1138
|
};
|
|
1122
|
-
const
|
|
1123
|
-
const
|
|
1124
|
-
/* @__PURE__ */ createElementVNode("svg", {
|
|
1125
|
-
width: "24",
|
|
1126
|
-
height: "24",
|
|
1127
|
-
focusable: "false"
|
|
1128
|
-
}, [
|
|
1129
|
-
/* @__PURE__ */ createElementVNode("path", {
|
|
1130
|
-
d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
|
|
1131
|
-
"fill-rule": "nonzero"
|
|
1132
|
-
})
|
|
1133
|
-
])
|
|
1134
|
-
], -1));
|
|
1135
|
-
const _hoisted_109 = {
|
|
1139
|
+
const _hoisted_104 = { class: "collection__item-label" };
|
|
1140
|
+
const _hoisted_105 = {
|
|
1136
1141
|
title: "Courier New",
|
|
1137
1142
|
id: "menu-item_2979203277261728727990778",
|
|
1138
1143
|
role: "menuitemcheckbox",
|
|
@@ -1143,20 +1148,8 @@ const _hoisted_109 = {
|
|
|
1143
1148
|
"aria-checked": "false",
|
|
1144
1149
|
"aria-selected": "false"
|
|
1145
1150
|
};
|
|
1146
|
-
const
|
|
1147
|
-
const
|
|
1148
|
-
/* @__PURE__ */ createElementVNode("svg", {
|
|
1149
|
-
width: "24",
|
|
1150
|
-
height: "24",
|
|
1151
|
-
focusable: "false"
|
|
1152
|
-
}, [
|
|
1153
|
-
/* @__PURE__ */ createElementVNode("path", {
|
|
1154
|
-
d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
|
|
1155
|
-
"fill-rule": "nonzero"
|
|
1156
|
-
})
|
|
1157
|
-
])
|
|
1158
|
-
], -1));
|
|
1159
|
-
const _hoisted_112 = {
|
|
1151
|
+
const _hoisted_106 = { class: "collection__item-label" };
|
|
1152
|
+
const _hoisted_107 = {
|
|
1160
1153
|
title: "Georgia",
|
|
1161
1154
|
id: "menu-item_8075939747291728727990778",
|
|
1162
1155
|
role: "menuitemcheckbox",
|
|
@@ -1167,20 +1160,8 @@ const _hoisted_112 = {
|
|
|
1167
1160
|
"aria-checked": "false",
|
|
1168
1161
|
"aria-selected": "false"
|
|
1169
1162
|
};
|
|
1170
|
-
const
|
|
1171
|
-
const
|
|
1172
|
-
/* @__PURE__ */ createElementVNode("svg", {
|
|
1173
|
-
width: "24",
|
|
1174
|
-
height: "24",
|
|
1175
|
-
focusable: "false"
|
|
1176
|
-
}, [
|
|
1177
|
-
/* @__PURE__ */ createElementVNode("path", {
|
|
1178
|
-
d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
|
|
1179
|
-
"fill-rule": "nonzero"
|
|
1180
|
-
})
|
|
1181
|
-
])
|
|
1182
|
-
], -1));
|
|
1183
|
-
const _hoisted_115 = {
|
|
1163
|
+
const _hoisted_108 = { class: "collection__item-label" };
|
|
1164
|
+
const _hoisted_109 = {
|
|
1184
1165
|
title: "Helvetica",
|
|
1185
1166
|
id: "menu-item_8872440547321728727990778",
|
|
1186
1167
|
role: "menuitemcheckbox",
|
|
@@ -1190,20 +1171,8 @@ const _hoisted_115 = {
|
|
|
1190
1171
|
"aria-disabled": "false",
|
|
1191
1172
|
"aria-checked": "true"
|
|
1192
1173
|
};
|
|
1193
|
-
const
|
|
1194
|
-
const
|
|
1195
|
-
/* @__PURE__ */ createElementVNode("svg", {
|
|
1196
|
-
width: "24",
|
|
1197
|
-
height: "24",
|
|
1198
|
-
focusable: "false"
|
|
1199
|
-
}, [
|
|
1200
|
-
/* @__PURE__ */ createElementVNode("path", {
|
|
1201
|
-
d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
|
|
1202
|
-
"fill-rule": "nonzero"
|
|
1203
|
-
})
|
|
1204
|
-
])
|
|
1205
|
-
], -1));
|
|
1206
|
-
const _hoisted_118 = {
|
|
1174
|
+
const _hoisted_110 = { class: "collection__item-label" };
|
|
1175
|
+
const _hoisted_111 = {
|
|
1207
1176
|
title: "Impact",
|
|
1208
1177
|
id: "menu-item_3423693847351728727990778",
|
|
1209
1178
|
role: "menuitemcheckbox",
|
|
@@ -1213,20 +1182,8 @@ const _hoisted_118 = {
|
|
|
1213
1182
|
"aria-disabled": "false",
|
|
1214
1183
|
"aria-checked": "false"
|
|
1215
1184
|
};
|
|
1216
|
-
const
|
|
1217
|
-
const
|
|
1218
|
-
/* @__PURE__ */ createElementVNode("svg", {
|
|
1219
|
-
width: "24",
|
|
1220
|
-
height: "24",
|
|
1221
|
-
focusable: "false"
|
|
1222
|
-
}, [
|
|
1223
|
-
/* @__PURE__ */ createElementVNode("path", {
|
|
1224
|
-
d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
|
|
1225
|
-
"fill-rule": "nonzero"
|
|
1226
|
-
})
|
|
1227
|
-
])
|
|
1228
|
-
], -1));
|
|
1229
|
-
const _hoisted_121 = {
|
|
1185
|
+
const _hoisted_112 = { class: "collection__item-label" };
|
|
1186
|
+
const _hoisted_113 = {
|
|
1230
1187
|
title: "Symbol",
|
|
1231
1188
|
id: "menu-item_7163579447381728727990779",
|
|
1232
1189
|
role: "menuitemcheckbox",
|
|
@@ -1236,20 +1193,8 @@ const _hoisted_121 = {
|
|
|
1236
1193
|
"aria-disabled": "false",
|
|
1237
1194
|
"aria-checked": "false"
|
|
1238
1195
|
};
|
|
1239
|
-
const
|
|
1240
|
-
const
|
|
1241
|
-
/* @__PURE__ */ createElementVNode("svg", {
|
|
1242
|
-
width: "24",
|
|
1243
|
-
height: "24",
|
|
1244
|
-
focusable: "false"
|
|
1245
|
-
}, [
|
|
1246
|
-
/* @__PURE__ */ createElementVNode("path", {
|
|
1247
|
-
d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
|
|
1248
|
-
"fill-rule": "nonzero"
|
|
1249
|
-
})
|
|
1250
|
-
])
|
|
1251
|
-
], -1));
|
|
1252
|
-
const _hoisted_124 = {
|
|
1196
|
+
const _hoisted_114 = { class: "collection__item-label" };
|
|
1197
|
+
const _hoisted_115 = {
|
|
1253
1198
|
title: "Tahoma",
|
|
1254
1199
|
id: "menu-item_4449979827411728727990779",
|
|
1255
1200
|
role: "menuitemcheckbox",
|
|
@@ -1259,20 +1204,8 @@ const _hoisted_124 = {
|
|
|
1259
1204
|
"aria-disabled": "false",
|
|
1260
1205
|
"aria-checked": "false"
|
|
1261
1206
|
};
|
|
1262
|
-
const
|
|
1263
|
-
const
|
|
1264
|
-
/* @__PURE__ */ createElementVNode("svg", {
|
|
1265
|
-
width: "24",
|
|
1266
|
-
height: "24",
|
|
1267
|
-
focusable: "false"
|
|
1268
|
-
}, [
|
|
1269
|
-
/* @__PURE__ */ createElementVNode("path", {
|
|
1270
|
-
d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
|
|
1271
|
-
"fill-rule": "nonzero"
|
|
1272
|
-
})
|
|
1273
|
-
])
|
|
1274
|
-
], -1));
|
|
1275
|
-
const _hoisted_127 = {
|
|
1207
|
+
const _hoisted_116 = { class: "collection__item-label" };
|
|
1208
|
+
const _hoisted_117 = {
|
|
1276
1209
|
title: "Terminal",
|
|
1277
1210
|
id: "menu-item_2511923047441728727990779",
|
|
1278
1211
|
role: "menuitemcheckbox",
|
|
@@ -1282,20 +1215,8 @@ const _hoisted_127 = {
|
|
|
1282
1215
|
"aria-disabled": "false",
|
|
1283
1216
|
"aria-checked": "false"
|
|
1284
1217
|
};
|
|
1285
|
-
const
|
|
1286
|
-
const
|
|
1287
|
-
/* @__PURE__ */ createElementVNode("svg", {
|
|
1288
|
-
width: "24",
|
|
1289
|
-
height: "24",
|
|
1290
|
-
focusable: "false"
|
|
1291
|
-
}, [
|
|
1292
|
-
/* @__PURE__ */ createElementVNode("path", {
|
|
1293
|
-
d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
|
|
1294
|
-
"fill-rule": "nonzero"
|
|
1295
|
-
})
|
|
1296
|
-
])
|
|
1297
|
-
], -1));
|
|
1298
|
-
const _hoisted_130 = {
|
|
1218
|
+
const _hoisted_118 = { class: "collection__item-label" };
|
|
1219
|
+
const _hoisted_119 = {
|
|
1299
1220
|
title: "Times New Roman",
|
|
1300
1221
|
id: "menu-item_7770771337471728727990779",
|
|
1301
1222
|
role: "menuitemcheckbox",
|
|
@@ -1305,20 +1226,8 @@ const _hoisted_130 = {
|
|
|
1305
1226
|
"aria-disabled": "false",
|
|
1306
1227
|
"aria-checked": "false"
|
|
1307
1228
|
};
|
|
1308
|
-
const
|
|
1309
|
-
const
|
|
1310
|
-
/* @__PURE__ */ createElementVNode("svg", {
|
|
1311
|
-
width: "24",
|
|
1312
|
-
height: "24",
|
|
1313
|
-
focusable: "false"
|
|
1314
|
-
}, [
|
|
1315
|
-
/* @__PURE__ */ createElementVNode("path", {
|
|
1316
|
-
d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
|
|
1317
|
-
"fill-rule": "nonzero"
|
|
1318
|
-
})
|
|
1319
|
-
])
|
|
1320
|
-
], -1));
|
|
1321
|
-
const _hoisted_133 = {
|
|
1229
|
+
const _hoisted_120 = { class: "collection__item-label" };
|
|
1230
|
+
const _hoisted_121 = {
|
|
1322
1231
|
title: "Trebuchet MS",
|
|
1323
1232
|
id: "menu-item_7916647947501728727990779",
|
|
1324
1233
|
role: "menuitemcheckbox",
|
|
@@ -1328,20 +1237,8 @@ const _hoisted_133 = {
|
|
|
1328
1237
|
"aria-disabled": "false",
|
|
1329
1238
|
"aria-checked": "false"
|
|
1330
1239
|
};
|
|
1331
|
-
const
|
|
1332
|
-
const
|
|
1333
|
-
/* @__PURE__ */ createElementVNode("svg", {
|
|
1334
|
-
width: "24",
|
|
1335
|
-
height: "24",
|
|
1336
|
-
focusable: "false"
|
|
1337
|
-
}, [
|
|
1338
|
-
/* @__PURE__ */ createElementVNode("path", {
|
|
1339
|
-
d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
|
|
1340
|
-
"fill-rule": "nonzero"
|
|
1341
|
-
})
|
|
1342
|
-
])
|
|
1343
|
-
], -1));
|
|
1344
|
-
const _hoisted_136 = {
|
|
1240
|
+
const _hoisted_122 = { class: "collection__item-label" };
|
|
1241
|
+
const _hoisted_123 = {
|
|
1345
1242
|
title: "Verdana",
|
|
1346
1243
|
id: "menu-item_1549891587531728727990779",
|
|
1347
1244
|
role: "menuitemcheckbox",
|
|
@@ -1351,20 +1248,8 @@ const _hoisted_136 = {
|
|
|
1351
1248
|
"aria-disabled": "false",
|
|
1352
1249
|
"aria-checked": "false"
|
|
1353
1250
|
};
|
|
1354
|
-
const
|
|
1355
|
-
const
|
|
1356
|
-
/* @__PURE__ */ createElementVNode("svg", {
|
|
1357
|
-
width: "24",
|
|
1358
|
-
height: "24",
|
|
1359
|
-
focusable: "false"
|
|
1360
|
-
}, [
|
|
1361
|
-
/* @__PURE__ */ createElementVNode("path", {
|
|
1362
|
-
d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
|
|
1363
|
-
"fill-rule": "nonzero"
|
|
1364
|
-
})
|
|
1365
|
-
])
|
|
1366
|
-
], -1));
|
|
1367
|
-
const _hoisted_139 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
|
|
1251
|
+
const _hoisted_124 = { class: "collection__item-label" };
|
|
1252
|
+
const _hoisted_125 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
|
|
1368
1253
|
title: "Webdings",
|
|
1369
1254
|
id: "menu-item_955052057561728727990779",
|
|
1370
1255
|
role: "menuitemcheckbox",
|
|
@@ -1376,21 +1261,9 @@ const _hoisted_139 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
|
|
|
1376
1261
|
}, [
|
|
1377
1262
|
/* @__PURE__ */ createElementVNode("div", { class: "collection__item-label" }, [
|
|
1378
1263
|
/* @__PURE__ */ createElementVNode("div", null, "Webdings")
|
|
1379
|
-
]),
|
|
1380
|
-
/* @__PURE__ */ createElementVNode("div", { class: "collection__item-checkmark" }, [
|
|
1381
|
-
/* @__PURE__ */ createElementVNode("svg", {
|
|
1382
|
-
width: "24",
|
|
1383
|
-
height: "24",
|
|
1384
|
-
focusable: "false"
|
|
1385
|
-
}, [
|
|
1386
|
-
/* @__PURE__ */ createElementVNode("path", {
|
|
1387
|
-
d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
|
|
1388
|
-
"fill-rule": "nonzero"
|
|
1389
|
-
})
|
|
1390
|
-
])
|
|
1391
1264
|
])
|
|
1392
1265
|
], -1));
|
|
1393
|
-
const
|
|
1266
|
+
const _hoisted_126 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
|
|
1394
1267
|
title: "Wingdings",
|
|
1395
1268
|
id: "menu-item_93264657591728727990779",
|
|
1396
1269
|
role: "menuitemcheckbox",
|
|
@@ -1402,22 +1275,10 @@ const _hoisted_140 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
|
|
|
1402
1275
|
}, [
|
|
1403
1276
|
/* @__PURE__ */ createElementVNode("div", { class: "collection__item-label" }, [
|
|
1404
1277
|
/* @__PURE__ */ createElementVNode("div", null, "Wingdings")
|
|
1405
|
-
]),
|
|
1406
|
-
/* @__PURE__ */ createElementVNode("div", { class: "collection__item-checkmark" }, [
|
|
1407
|
-
/* @__PURE__ */ createElementVNode("svg", {
|
|
1408
|
-
width: "24",
|
|
1409
|
-
height: "24",
|
|
1410
|
-
focusable: "false"
|
|
1411
|
-
}, [
|
|
1412
|
-
/* @__PURE__ */ createElementVNode("path", {
|
|
1413
|
-
d: "M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z",
|
|
1414
|
-
"fill-rule": "nonzero"
|
|
1415
|
-
})
|
|
1416
|
-
])
|
|
1417
1278
|
])
|
|
1418
1279
|
], -1));
|
|
1419
|
-
const
|
|
1420
|
-
const
|
|
1280
|
+
const _hoisted_127 = { style: { "display": "flex", "justify-content": "space-between", "align-items": "center" } };
|
|
1281
|
+
const _hoisted_128 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, [
|
|
1421
1282
|
/* @__PURE__ */ createElementVNode("svg", {
|
|
1422
1283
|
width: "24",
|
|
1423
1284
|
height: "24",
|
|
@@ -1429,10 +1290,10 @@ const _hoisted_142 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
|
|
|
1429
1290
|
})
|
|
1430
1291
|
])
|
|
1431
1292
|
], -1));
|
|
1432
|
-
const
|
|
1433
|
-
|
|
1293
|
+
const _hoisted_129 = [
|
|
1294
|
+
_hoisted_128
|
|
1434
1295
|
];
|
|
1435
|
-
const
|
|
1296
|
+
const _hoisted_130 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, [
|
|
1436
1297
|
/* @__PURE__ */ createElementVNode("svg", {
|
|
1437
1298
|
width: "24",
|
|
1438
1299
|
height: "24",
|
|
@@ -1444,10 +1305,10 @@ const _hoisted_144 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
|
|
|
1444
1305
|
})
|
|
1445
1306
|
])
|
|
1446
1307
|
], -1));
|
|
1447
|
-
const
|
|
1448
|
-
|
|
1308
|
+
const _hoisted_131 = [
|
|
1309
|
+
_hoisted_130
|
|
1449
1310
|
];
|
|
1450
|
-
const
|
|
1311
|
+
const _hoisted_132 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "" }, [
|
|
1451
1312
|
/* @__PURE__ */ createElementVNode("svg", {
|
|
1452
1313
|
width: "24",
|
|
1453
1314
|
height: "24",
|
|
@@ -1459,10 +1320,10 @@ const _hoisted_146 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
|
|
|
1459
1320
|
})
|
|
1460
1321
|
])
|
|
1461
1322
|
], -1));
|
|
1462
|
-
const
|
|
1463
|
-
|
|
1323
|
+
const _hoisted_133 = [
|
|
1324
|
+
_hoisted_132
|
|
1464
1325
|
];
|
|
1465
|
-
const
|
|
1326
|
+
const _hoisted_134 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "" }, [
|
|
1466
1327
|
/* @__PURE__ */ createElementVNode("svg", {
|
|
1467
1328
|
width: "24",
|
|
1468
1329
|
height: "24",
|
|
@@ -1474,11 +1335,11 @@ const _hoisted_148 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
|
|
|
1474
1335
|
})
|
|
1475
1336
|
])
|
|
1476
1337
|
], -1));
|
|
1477
|
-
const
|
|
1478
|
-
|
|
1338
|
+
const _hoisted_135 = [
|
|
1339
|
+
_hoisted_134
|
|
1479
1340
|
];
|
|
1480
|
-
const
|
|
1481
|
-
const
|
|
1341
|
+
const _hoisted_136 = { class: "relative inline-block text-left group z-10 border-0 w-ful l" };
|
|
1342
|
+
const _hoisted_137 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-full flex rounded-md" }, [
|
|
1482
1343
|
/* @__PURE__ */ createElementVNode("button", {
|
|
1483
1344
|
type: "button",
|
|
1484
1345
|
class: "inline-flex justify-start border-none w-full rounded-md border shadow-sm text-sm font -medium",
|
|
@@ -1523,12 +1384,12 @@ const _hoisted_151 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
|
|
|
1523
1384
|
])
|
|
1524
1385
|
])
|
|
1525
1386
|
], -1));
|
|
1526
|
-
const
|
|
1527
|
-
const
|
|
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" };
|
|
1388
|
+
const _hoisted_139 = {
|
|
1528
1389
|
class: "flex",
|
|
1529
1390
|
role: "none"
|
|
1530
1391
|
};
|
|
1531
|
-
const
|
|
1392
|
+
const _hoisted_140 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, [
|
|
1532
1393
|
/* @__PURE__ */ createElementVNode("svg", {
|
|
1533
1394
|
width: "48",
|
|
1534
1395
|
height: "48",
|
|
@@ -1557,10 +1418,10 @@ const _hoisted_154 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
|
|
|
1557
1418
|
])
|
|
1558
1419
|
])
|
|
1559
1420
|
], -1));
|
|
1560
|
-
const
|
|
1561
|
-
|
|
1421
|
+
const _hoisted_141 = [
|
|
1422
|
+
_hoisted_140
|
|
1562
1423
|
];
|
|
1563
|
-
const
|
|
1424
|
+
const _hoisted_142 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, [
|
|
1564
1425
|
/* @__PURE__ */ createElementVNode("svg", {
|
|
1565
1426
|
width: "48",
|
|
1566
1427
|
height: "48",
|
|
@@ -1578,10 +1439,10 @@ const _hoisted_156 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
|
|
|
1578
1439
|
])
|
|
1579
1440
|
])
|
|
1580
1441
|
], -1));
|
|
1581
|
-
const
|
|
1582
|
-
|
|
1442
|
+
const _hoisted_143 = [
|
|
1443
|
+
_hoisted_142
|
|
1583
1444
|
];
|
|
1584
|
-
const
|
|
1445
|
+
const _hoisted_144 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
1585
1446
|
width: "48",
|
|
1586
1447
|
height: "48",
|
|
1587
1448
|
viewBox: "0 0 48 48",
|
|
@@ -1639,10 +1500,10 @@ const _hoisted_158 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
|
|
|
1639
1500
|
opacity: ".2"
|
|
1640
1501
|
})
|
|
1641
1502
|
], -1));
|
|
1642
|
-
const
|
|
1643
|
-
|
|
1503
|
+
const _hoisted_145 = [
|
|
1504
|
+
_hoisted_144
|
|
1644
1505
|
];
|
|
1645
|
-
const
|
|
1506
|
+
const _hoisted_146 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "text-sm" }, [
|
|
1646
1507
|
/* @__PURE__ */ createElementVNode("svg", {
|
|
1647
1508
|
width: "48",
|
|
1648
1509
|
height: "48",
|
|
@@ -1702,27 +1563,27 @@ const _hoisted_160 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
|
|
|
1702
1563
|
})
|
|
1703
1564
|
])
|
|
1704
1565
|
], -1));
|
|
1705
|
-
const
|
|
1706
|
-
|
|
1566
|
+
const _hoisted_147 = [
|
|
1567
|
+
_hoisted_146
|
|
1707
1568
|
];
|
|
1708
|
-
const
|
|
1569
|
+
const _hoisted_148 = {
|
|
1709
1570
|
class: "flex items-center gap-1 border-t-2 border-b-2 border-gray-300 bg-white w-full px-1",
|
|
1710
1571
|
style: { "height": "37px" }
|
|
1711
1572
|
};
|
|
1712
|
-
const
|
|
1713
|
-
const
|
|
1714
|
-
|
|
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);
|
|
1574
|
+
const _hoisted_150 = [
|
|
1575
|
+
_hoisted_149
|
|
1715
1576
|
];
|
|
1716
|
-
const
|
|
1717
|
-
const
|
|
1718
|
-
|
|
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);
|
|
1578
|
+
const _hoisted_152 = [
|
|
1579
|
+
_hoisted_151
|
|
1719
1580
|
];
|
|
1720
|
-
const
|
|
1721
|
-
const
|
|
1722
|
-
|
|
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);
|
|
1582
|
+
const _hoisted_154 = [
|
|
1583
|
+
_hoisted_153
|
|
1723
1584
|
];
|
|
1724
|
-
const
|
|
1725
|
-
const
|
|
1585
|
+
const _hoisted_155 = { class: "strikethrough p x-2" };
|
|
1586
|
+
const _hoisted_156 = {
|
|
1726
1587
|
fill: "#000000",
|
|
1727
1588
|
width: "13px",
|
|
1728
1589
|
height: "13px",
|
|
@@ -1734,16 +1595,16 @@ const _hoisted_170 = {
|
|
|
1734
1595
|
"xmlns:serif": "http://www.serif.com/",
|
|
1735
1596
|
style: { "fill-rule": "evenodd", "clip-rule": "evenodd", "stroke-linejoin": "round", "stroke-miterlimit": "2" }
|
|
1736
1597
|
};
|
|
1737
|
-
const
|
|
1598
|
+
const _hoisted_157 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("g", {
|
|
1738
1599
|
id: "SVGRepo_bgCarrier",
|
|
1739
1600
|
"stroke-width": "0"
|
|
1740
1601
|
}, null, -1));
|
|
1741
|
-
const
|
|
1602
|
+
const _hoisted_158 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("g", {
|
|
1742
1603
|
id: "SVGRepo_tracerCarrier",
|
|
1743
1604
|
"stroke-linecap": "round",
|
|
1744
1605
|
"stroke-linejoin": "round"
|
|
1745
1606
|
}, null, -1));
|
|
1746
|
-
const
|
|
1607
|
+
const _hoisted_159 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("g", { id: "SVGRepo_iconCarrier" }, [
|
|
1747
1608
|
/* @__PURE__ */ createElementVNode("rect", {
|
|
1748
1609
|
id: "Icons",
|
|
1749
1610
|
x: "-192",
|
|
@@ -1839,25 +1700,25 @@ const _hoisted_173 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
|
|
|
1839
1700
|
/* @__PURE__ */ createElementVNode("g", { id: "Layer1" })
|
|
1840
1701
|
])
|
|
1841
1702
|
], -1));
|
|
1842
|
-
const
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1703
|
+
const _hoisted_160 = [
|
|
1704
|
+
_hoisted_157,
|
|
1705
|
+
_hoisted_158,
|
|
1706
|
+
_hoisted_159
|
|
1846
1707
|
];
|
|
1847
|
-
const
|
|
1848
|
-
const
|
|
1849
|
-
|
|
1708
|
+
const _hoisted_161 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "superscript p x-2" }, "sup", -1));
|
|
1709
|
+
const _hoisted_162 = [
|
|
1710
|
+
_hoisted_161
|
|
1850
1711
|
];
|
|
1851
|
-
const
|
|
1852
|
-
const
|
|
1853
|
-
|
|
1712
|
+
const _hoisted_163 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "subscript p x-2" }, "sub", -1));
|
|
1713
|
+
const _hoisted_164 = [
|
|
1714
|
+
_hoisted_163
|
|
1854
1715
|
];
|
|
1855
|
-
const
|
|
1856
|
-
const
|
|
1857
|
-
|
|
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);
|
|
1717
|
+
const _hoisted_166 = [
|
|
1718
|
+
_hoisted_165
|
|
1858
1719
|
];
|
|
1859
|
-
const
|
|
1860
|
-
const
|
|
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", {
|
|
1861
1722
|
class: "solid brush display-color",
|
|
1862
1723
|
style: { "margin": "6px 0px 0px 0px", "border": "none" }
|
|
1863
1724
|
}, [
|
|
@@ -1879,14 +1740,14 @@ const _hoisted_182 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
|
|
|
1879
1740
|
])
|
|
1880
1741
|
])
|
|
1881
1742
|
], -1));
|
|
1882
|
-
const
|
|
1743
|
+
const _hoisted_169 = {
|
|
1883
1744
|
class: "color-picker color-container",
|
|
1884
1745
|
style: { "position": "absolute", "top": "0", "bottom": "0", "height": "50vh", "overflow": "auto" }
|
|
1885
1746
|
};
|
|
1886
|
-
const
|
|
1887
|
-
const
|
|
1888
|
-
const
|
|
1889
|
-
const
|
|
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", {
|
|
1890
1751
|
class: "solid brush display-color",
|
|
1891
1752
|
style: { "margin": "6px 0px 0px 0px", "border": "none" }
|
|
1892
1753
|
}, [
|
|
@@ -1914,45 +1775,51 @@ const _hoisted_187 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
|
|
|
1914
1775
|
])
|
|
1915
1776
|
])
|
|
1916
1777
|
], -1));
|
|
1917
|
-
const
|
|
1778
|
+
const _hoisted_174 = {
|
|
1918
1779
|
class: "color-picker color-container",
|
|
1919
1780
|
style: { "position": "absolute", "top": "0", "bottom": "0", "height": "fit-content", "overflow": "auto" }
|
|
1920
1781
|
};
|
|
1921
|
-
const
|
|
1922
|
-
const
|
|
1923
|
-
const
|
|
1924
|
-
const
|
|
1925
|
-
|
|
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
|
|
1926
1787
|
];
|
|
1927
|
-
const
|
|
1928
|
-
const
|
|
1929
|
-
|
|
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
|
|
1930
1791
|
];
|
|
1931
|
-
const
|
|
1932
|
-
const
|
|
1933
|
-
|
|
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);
|
|
1793
|
+
const _hoisted_182 = [
|
|
1794
|
+
_hoisted_181
|
|
1934
1795
|
];
|
|
1935
|
-
const
|
|
1936
|
-
const
|
|
1937
|
-
const
|
|
1938
|
-
const
|
|
1939
|
-
const
|
|
1940
|
-
|
|
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" }
|
|
1803
|
+
};
|
|
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 = {
|
|
1941
1808
|
key: 0,
|
|
1942
1809
|
class: "hideonprint flex items-center",
|
|
1943
1810
|
style: { "text-align": "center", "align-items": "stretch", "gap": "10px" }
|
|
1944
1811
|
};
|
|
1945
|
-
const
|
|
1946
|
-
const
|
|
1947
|
-
const
|
|
1948
|
-
|
|
1949
|
-
|
|
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
|
|
1950
1817
|
];
|
|
1951
|
-
const
|
|
1818
|
+
const _hoisted_195 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", { style: { "margin": "0 0 0 10px" } }, [
|
|
1952
1819
|
/* @__PURE__ */ createTextVNode("Cursor position: "),
|
|
1953
1820
|
/* @__PURE__ */ createElementVNode("span", { id: "cursorPosition" }, "0")
|
|
1954
1821
|
], -1));
|
|
1955
|
-
const
|
|
1822
|
+
const _hoisted_196 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", null, [
|
|
1956
1823
|
/* @__PURE__ */ createTextVNode("Text at cursor: "),
|
|
1957
1824
|
/* @__PURE__ */ createElementVNode("span", { id: "textAtCursor" })
|
|
1958
1825
|
], -1));
|
|
@@ -2124,13 +1991,18 @@ const _sfc_main = {
|
|
|
2124
1991
|
}
|
|
2125
1992
|
if (htmlResult) {
|
|
2126
1993
|
setTimeout(() => {
|
|
2127
|
-
emit("change", htmlResult);
|
|
1994
|
+
emit("change", htmlResult.replace(/<(\w+)[^>]*>\s*<\/\1>/g, ""));
|
|
2128
1995
|
}, 300);
|
|
2129
1996
|
}
|
|
2130
1997
|
}
|
|
2131
1998
|
function onMountedFunctionsset(params) {
|
|
2132
1999
|
editorRef.value.focus();
|
|
2133
|
-
|
|
2000
|
+
nextTick(() => {
|
|
2001
|
+
returnData();
|
|
2002
|
+
OnmountedTableActionActivation();
|
|
2003
|
+
ImageResizing();
|
|
2004
|
+
imageContainerClicked();
|
|
2005
|
+
});
|
|
2134
2006
|
}
|
|
2135
2007
|
function dropedImageRedirection(imgResizer) {
|
|
2136
2008
|
imgResizer.addEventListener("click", function(e) {
|
|
@@ -2153,10 +2025,31 @@ const _sfc_main = {
|
|
|
2153
2025
|
const centerButton = document.createElement("button");
|
|
2154
2026
|
centerButton.textContent = "Center ";
|
|
2155
2027
|
centerButton.style.margin = "5px";
|
|
2028
|
+
const WrapButton = document.createElement("button");
|
|
2029
|
+
WrapButton.textContent = "Wrap";
|
|
2030
|
+
WrapButton.style.margin = "5px";
|
|
2031
|
+
imageAction.appendChild(WrapButton);
|
|
2156
2032
|
imageAction.appendChild(floatLeftButton);
|
|
2157
2033
|
imageAction.appendChild(floatRightButton);
|
|
2158
2034
|
imageAction.appendChild(centerButton);
|
|
2159
2035
|
imgResizer.appendChild(imageAction);
|
|
2036
|
+
WrapButton.addEventListener("click", (e2) => {
|
|
2037
|
+
e2.target.parentElement.parentElement;
|
|
2038
|
+
const parentElement = imgResizer.parentElement;
|
|
2039
|
+
const innerValues = imgResizer.parentElement.innerHTML;
|
|
2040
|
+
const parentElementTageName = parentElement.tagName.toLowerCase();
|
|
2041
|
+
if (parentElementTageName == "div") {
|
|
2042
|
+
const spanElement = document.createElement("span");
|
|
2043
|
+
Array.from(parentElement.attributes).forEach((attr) => {
|
|
2044
|
+
spanElement.setAttribute(attr.name, attr.value);
|
|
2045
|
+
});
|
|
2046
|
+
spanElement.innerHTML = innerValues;
|
|
2047
|
+
parentElement.replaceWith(spanElement);
|
|
2048
|
+
}
|
|
2049
|
+
removeElemet();
|
|
2050
|
+
ImageResizing();
|
|
2051
|
+
imageContainerClicked();
|
|
2052
|
+
});
|
|
2160
2053
|
floatLeftButton.addEventListener("click", () => {
|
|
2161
2054
|
imgResizer.style.float = "left";
|
|
2162
2055
|
removeElemet();
|
|
@@ -2245,26 +2138,6 @@ const _sfc_main = {
|
|
|
2245
2138
|
removeElemet();
|
|
2246
2139
|
const range = savedRange2.value["range"];
|
|
2247
2140
|
if (range) {
|
|
2248
|
-
let initResize2 = function(e, type) {
|
|
2249
|
-
e.preventDefault();
|
|
2250
|
-
currentResizer = type;
|
|
2251
|
-
window.addEventListener("mousemove", resize);
|
|
2252
|
-
window.addEventListener("mouseup", stopResize);
|
|
2253
|
-
}, resize = function(e) {
|
|
2254
|
-
const rect = imgResizer.getBoundingClientRect();
|
|
2255
|
-
if (currentResizer === "width" || currentResizer === "both") {
|
|
2256
|
-
const newWidth = e.clientX - rect.left;
|
|
2257
|
-
imgResizer.style.width = newWidth + "px";
|
|
2258
|
-
imgElement.style.width = newWidth + "px";
|
|
2259
|
-
}
|
|
2260
|
-
if (currentResizer === "height" || currentResizer === "both") {
|
|
2261
|
-
const newHeight = e.clientY - rect.top;
|
|
2262
|
-
imgElement.style.height = newHeight + "px";
|
|
2263
|
-
}
|
|
2264
|
-
}, stopResize = function() {
|
|
2265
|
-
window.removeEventListener("mousemove", resize);
|
|
2266
|
-
window.removeEventListener("mouseup", stopResize);
|
|
2267
|
-
};
|
|
2268
2141
|
const imgElement = document.createElement("img");
|
|
2269
2142
|
imgElement.src = imageUrl;
|
|
2270
2143
|
imgElement.style.maxWidth = "100%";
|
|
@@ -2276,6 +2149,7 @@ const _sfc_main = {
|
|
|
2276
2149
|
imgResizer.style.position = "relative";
|
|
2277
2150
|
imgResizer.contentEditable = false;
|
|
2278
2151
|
imgResizer.classList.add("resizer-image-dropped");
|
|
2152
|
+
imgResizer.id = Date.now();
|
|
2279
2153
|
dropedImageRedirection(imgResizer);
|
|
2280
2154
|
const widthResizer = document.createElement("div");
|
|
2281
2155
|
widthResizer.style.width = "10px";
|
|
@@ -2287,6 +2161,7 @@ const _sfc_main = {
|
|
|
2287
2161
|
widthResizer.style.cursor = "ew-resize";
|
|
2288
2162
|
widthResizer.style.zIndex = "2";
|
|
2289
2163
|
widthResizer.classList.add("hideOnprint");
|
|
2164
|
+
widthResizer.classList.add("widthResizer");
|
|
2290
2165
|
widthResizer.setAttribute("contentEditable", false);
|
|
2291
2166
|
const heightResizer = document.createElement("div");
|
|
2292
2167
|
heightResizer.style.width = "100%";
|
|
@@ -2298,6 +2173,7 @@ const _sfc_main = {
|
|
|
2298
2173
|
heightResizer.style.cursor = "ns-resize";
|
|
2299
2174
|
heightResizer.style.zIndex = "2";
|
|
2300
2175
|
heightResizer.classList.add("hideOnprint");
|
|
2176
|
+
heightResizer.classList.add("heightResizer");
|
|
2301
2177
|
heightResizer.setAttribute("contentEditable", false);
|
|
2302
2178
|
const cornerResizer = document.createElement("div");
|
|
2303
2179
|
cornerResizer.style.width = "20px";
|
|
@@ -2309,6 +2185,7 @@ const _sfc_main = {
|
|
|
2309
2185
|
cornerResizer.style.cursor = "nwse-resize";
|
|
2310
2186
|
cornerResizer.style.zIndex = "10";
|
|
2311
2187
|
cornerResizer.setAttribute("contentEditable", false);
|
|
2188
|
+
cornerResizer.classList.add("cornerResizer");
|
|
2312
2189
|
imgResizer.appendChild(imgElement);
|
|
2313
2190
|
imgResizer.appendChild(widthResizer);
|
|
2314
2191
|
imgResizer.appendChild(heightResizer);
|
|
@@ -2319,12 +2196,9 @@ const _sfc_main = {
|
|
|
2319
2196
|
}
|
|
2320
2197
|
selectedImage = imgResizer;
|
|
2321
2198
|
});
|
|
2322
|
-
widthResizer.addEventListener("mousedown", (e) => initResize2(e, "width"));
|
|
2323
|
-
heightResizer.addEventListener("mousedown", (e) => initResize2(e, "height"));
|
|
2324
|
-
cornerResizer.addEventListener("mousedown", (e) => initResize2(e, "both"));
|
|
2325
2199
|
range.insertNode(imgResizer);
|
|
2326
|
-
let currentResizer;
|
|
2327
2200
|
imageContainerClicked();
|
|
2201
|
+
ImageResizing();
|
|
2328
2202
|
returnData();
|
|
2329
2203
|
}
|
|
2330
2204
|
}
|
|
@@ -2531,240 +2405,226 @@ const _sfc_main = {
|
|
|
2531
2405
|
onClick: _cache[24] || (_cache[24] = () => fontFamilyChanger("font-family", " arial, helvetica, sans-serif")),
|
|
2532
2406
|
style: { "font-family": "arial, helvetica, sans-serif" }
|
|
2533
2407
|
}, "Arial ")
|
|
2534
|
-
])
|
|
2535
|
-
_hoisted_99
|
|
2408
|
+
])
|
|
2536
2409
|
]),
|
|
2537
|
-
createElementVNode("div",
|
|
2538
|
-
createElementVNode("div",
|
|
2410
|
+
createElementVNode("div", _hoisted_99, [
|
|
2411
|
+
createElementVNode("div", _hoisted_100, [
|
|
2539
2412
|
createElementVNode("div", {
|
|
2540
2413
|
style: { "font-family": '"arial black", sans-serif' },
|
|
2541
2414
|
onClick: _cache[25] || (_cache[25] = () => fontFamilyChanger("font-family", "arial black, sans-serif"))
|
|
2542
2415
|
}, " Arial Black")
|
|
2543
|
-
])
|
|
2544
|
-
_hoisted_102
|
|
2416
|
+
])
|
|
2545
2417
|
]),
|
|
2546
|
-
createElementVNode("div",
|
|
2547
|
-
createElementVNode("div",
|
|
2418
|
+
createElementVNode("div", _hoisted_101, [
|
|
2419
|
+
createElementVNode("div", _hoisted_102, [
|
|
2548
2420
|
createElementVNode("div", {
|
|
2549
2421
|
style: { "font-family": "book antiqua, palatino, serif" },
|
|
2550
2422
|
onClick: _cache[26] || (_cache[26] = () => fontFamilyChanger("font-family", "book antiqua, palatino, serif"))
|
|
2551
2423
|
}, " Book Antiqua")
|
|
2552
|
-
])
|
|
2553
|
-
_hoisted_105
|
|
2424
|
+
])
|
|
2554
2425
|
]),
|
|
2555
|
-
createElementVNode("div",
|
|
2556
|
-
createElementVNode("div",
|
|
2426
|
+
createElementVNode("div", _hoisted_103, [
|
|
2427
|
+
createElementVNode("div", _hoisted_104, [
|
|
2557
2428
|
createElementVNode("div", {
|
|
2558
2429
|
style: { "font-family": '"comic sans ms", sans-serif' },
|
|
2559
2430
|
onClick: _cache[27] || (_cache[27] = () => fontFamilyChanger("font-family", 'comic sans ms", sans-serif'))
|
|
2560
2431
|
}, " Comic Sans MS")
|
|
2561
|
-
])
|
|
2562
|
-
_hoisted_108
|
|
2432
|
+
])
|
|
2563
2433
|
]),
|
|
2564
|
-
createElementVNode("div",
|
|
2565
|
-
createElementVNode("div",
|
|
2434
|
+
createElementVNode("div", _hoisted_105, [
|
|
2435
|
+
createElementVNode("div", _hoisted_106, [
|
|
2566
2436
|
createElementVNode("div", {
|
|
2567
2437
|
style: { "font-family": "courier new, courier, monospace" },
|
|
2568
2438
|
onClick: _cache[28] || (_cache[28] = () => fontFamilyChanger("font-family", " courier new, courier, monospace;"))
|
|
2569
2439
|
}, " Courier New")
|
|
2570
|
-
])
|
|
2571
|
-
_hoisted_111
|
|
2440
|
+
])
|
|
2572
2441
|
]),
|
|
2573
|
-
createElementVNode("div",
|
|
2574
|
-
createElementVNode("div",
|
|
2442
|
+
createElementVNode("div", _hoisted_107, [
|
|
2443
|
+
createElementVNode("div", _hoisted_108, [
|
|
2575
2444
|
createElementVNode("div", {
|
|
2576
2445
|
style: { "font-family": "georgia, palatino, serif" },
|
|
2577
2446
|
onClick: _cache[29] || (_cache[29] = () => fontFamilyChanger("font-family", " georgia, palatino, serif"))
|
|
2578
2447
|
}, "Georgia ")
|
|
2579
|
-
])
|
|
2580
|
-
_hoisted_114
|
|
2448
|
+
])
|
|
2581
2449
|
]),
|
|
2582
|
-
createElementVNode("div",
|
|
2583
|
-
createElementVNode("div",
|
|
2450
|
+
createElementVNode("div", _hoisted_109, [
|
|
2451
|
+
createElementVNode("div", _hoisted_110, [
|
|
2584
2452
|
createElementVNode("div", {
|
|
2585
2453
|
style: { "font-family": "helvetica, arial, sans-serif" },
|
|
2586
2454
|
onClick: _cache[30] || (_cache[30] = () => fontFamilyChanger("font-family", " helvetica, arial, sans-serif"))
|
|
2587
2455
|
}, " Helvetica")
|
|
2588
|
-
])
|
|
2589
|
-
_hoisted_117
|
|
2456
|
+
])
|
|
2590
2457
|
]),
|
|
2591
|
-
createElementVNode("div",
|
|
2592
|
-
createElementVNode("div",
|
|
2458
|
+
createElementVNode("div", _hoisted_111, [
|
|
2459
|
+
createElementVNode("div", _hoisted_112, [
|
|
2593
2460
|
createElementVNode("div", {
|
|
2594
2461
|
style: { "font-family": "impact, sans-serif" },
|
|
2595
2462
|
onClick: _cache[31] || (_cache[31] = () => fontFamilyChanger("font-family", " impact, sans-serif"))
|
|
2596
2463
|
}, "Impact")
|
|
2597
|
-
])
|
|
2598
|
-
_hoisted_120
|
|
2464
|
+
])
|
|
2599
2465
|
]),
|
|
2600
|
-
createElementVNode("div",
|
|
2601
|
-
createElementVNode("div",
|
|
2466
|
+
createElementVNode("div", _hoisted_113, [
|
|
2467
|
+
createElementVNode("div", _hoisted_114, [
|
|
2602
2468
|
createElementVNode("div", {
|
|
2603
2469
|
style: { "font-family": "symbol" },
|
|
2604
2470
|
onClick: _cache[32] || (_cache[32] = () => fontFamilyChanger("font-family", " symbol"))
|
|
2605
2471
|
}, "Symbol")
|
|
2606
|
-
])
|
|
2607
|
-
_hoisted_123
|
|
2472
|
+
])
|
|
2608
2473
|
]),
|
|
2609
|
-
createElementVNode("div",
|
|
2610
|
-
createElementVNode("div",
|
|
2474
|
+
createElementVNode("div", _hoisted_115, [
|
|
2475
|
+
createElementVNode("div", _hoisted_116, [
|
|
2611
2476
|
createElementVNode("div", {
|
|
2612
2477
|
style: { "font-family": "tahoma, arial, helvetica, sans-serif" },
|
|
2613
2478
|
onClick: _cache[33] || (_cache[33] = () => fontFamilyChanger("font-family", " tahoma, arial, helvetica, sans-serif"))
|
|
2614
2479
|
}, " Tahoma")
|
|
2615
|
-
])
|
|
2616
|
-
_hoisted_126
|
|
2480
|
+
])
|
|
2617
2481
|
]),
|
|
2618
|
-
createElementVNode("div",
|
|
2619
|
-
createElementVNode("div",
|
|
2482
|
+
createElementVNode("div", _hoisted_117, [
|
|
2483
|
+
createElementVNode("div", _hoisted_118, [
|
|
2620
2484
|
createElementVNode("div", {
|
|
2621
2485
|
style: { "font-family": "terminal, monaco, monospace" },
|
|
2622
2486
|
onClick: _cache[34] || (_cache[34] = () => fontFamilyChanger("font-family", " terminal, monaco, monospace"))
|
|
2623
2487
|
}, "Terminal ")
|
|
2624
|
-
])
|
|
2625
|
-
_hoisted_129
|
|
2488
|
+
])
|
|
2626
2489
|
]),
|
|
2627
|
-
createElementVNode("div",
|
|
2628
|
-
createElementVNode("div",
|
|
2490
|
+
createElementVNode("div", _hoisted_119, [
|
|
2491
|
+
createElementVNode("div", _hoisted_120, [
|
|
2629
2492
|
createElementVNode("div", {
|
|
2630
2493
|
style: { "font-family": "times new roman, times, serif" },
|
|
2631
2494
|
onClick: _cache[35] || (_cache[35] = () => fontFamilyChanger("font-family", " times new roman, times, serif"))
|
|
2632
2495
|
}, " Times New Roman")
|
|
2633
|
-
])
|
|
2634
|
-
_hoisted_132
|
|
2496
|
+
])
|
|
2635
2497
|
]),
|
|
2636
|
-
createElementVNode("div",
|
|
2637
|
-
createElementVNode("div",
|
|
2498
|
+
createElementVNode("div", _hoisted_121, [
|
|
2499
|
+
createElementVNode("div", _hoisted_122, [
|
|
2638
2500
|
createElementVNode("div", {
|
|
2639
2501
|
style: { "font-family": "trebuchet ms, geneva, sans-serif" },
|
|
2640
2502
|
onClick: _cache[36] || (_cache[36] = () => fontFamilyChanger("font-family", " trebuchet ms, geneva, sans-serif"))
|
|
2641
2503
|
}, " Trebuchet MS")
|
|
2642
|
-
])
|
|
2643
|
-
_hoisted_135
|
|
2504
|
+
])
|
|
2644
2505
|
]),
|
|
2645
|
-
createElementVNode("div",
|
|
2646
|
-
createElementVNode("div",
|
|
2506
|
+
createElementVNode("div", _hoisted_123, [
|
|
2507
|
+
createElementVNode("div", _hoisted_124, [
|
|
2647
2508
|
createElementVNode("div", {
|
|
2648
2509
|
style: { "font-family": "verdana, geneva, sans-serif" },
|
|
2649
2510
|
onClick: _cache[37] || (_cache[37] = () => fontFamilyChanger("font-family", " verdana, geneva, sans-serif"))
|
|
2650
2511
|
}, "Verdana ")
|
|
2651
|
-
])
|
|
2652
|
-
_hoisted_138
|
|
2512
|
+
])
|
|
2653
2513
|
]),
|
|
2654
|
-
|
|
2655
|
-
|
|
2514
|
+
_hoisted_125,
|
|
2515
|
+
_hoisted_126
|
|
2656
2516
|
])
|
|
2657
2517
|
])
|
|
2658
2518
|
])
|
|
2659
2519
|
])
|
|
2660
2520
|
])
|
|
2661
2521
|
]),
|
|
2662
|
-
createElementVNode("div",
|
|
2522
|
+
createElementVNode("div", _hoisted_127, [
|
|
2663
2523
|
createElementVNode("button", {
|
|
2664
2524
|
style: { "flex": "1", "margin": "0 4px", "width": "auto" },
|
|
2665
2525
|
onClick: _cache[38] || (_cache[38] = ($event) => ChangeTheDirectionOFTextFun("text-align", "justify", "", "p"))
|
|
2666
|
-
},
|
|
2526
|
+
}, _hoisted_129),
|
|
2667
2527
|
createElementVNode("button", {
|
|
2668
2528
|
style: { "flex": "1", "margin": "0 4px", "width": "auto" },
|
|
2669
2529
|
onClick: _cache[39] || (_cache[39] = ($event) => ChangeTheDirectionOFTextFun("text-align", "center", "", "div"))
|
|
2670
|
-
},
|
|
2530
|
+
}, _hoisted_131),
|
|
2671
2531
|
createElementVNode("button", {
|
|
2672
2532
|
style: { "flex": "1", "margin": "0 4px", "width": "auto" },
|
|
2673
2533
|
onClick: _cache[40] || (_cache[40] = ($event) => ChangeTheDirectionOFTextFun("text-align", "end", "", "p"))
|
|
2674
|
-
},
|
|
2534
|
+
}, _hoisted_133),
|
|
2675
2535
|
createElementVNode("button", {
|
|
2676
2536
|
style: { "flex": "1", "margin": "0 4px", "width": "auto" },
|
|
2677
2537
|
onClick: _cache[41] || (_cache[41] = ($event) => ChangeTheDirectionOFTextFun("text-align", "start", "", "div"))
|
|
2678
|
-
},
|
|
2538
|
+
}, _hoisted_135)
|
|
2679
2539
|
]),
|
|
2680
|
-
createElementVNode("div",
|
|
2681
|
-
|
|
2682
|
-
createElementVNode("div",
|
|
2683
|
-
createElementVNode("div",
|
|
2540
|
+
createElementVNode("div", _hoisted_136, [
|
|
2541
|
+
_hoisted_137,
|
|
2542
|
+
createElementVNode("div", _hoisted_138, [
|
|
2543
|
+
createElementVNode("div", _hoisted_139, [
|
|
2684
2544
|
createElementVNode("div", {
|
|
2685
2545
|
onClick: _cache[42] || (_cache[42] = ($event) => insertUnorderedListAtCursorFun(3, "disc"))
|
|
2686
|
-
},
|
|
2546
|
+
}, _hoisted_141),
|
|
2687
2547
|
createElementVNode("div", {
|
|
2688
2548
|
onClick: _cache[43] || (_cache[43] = ($event) => insertUnorderedListAtCursorFun(3, "circle"))
|
|
2689
|
-
},
|
|
2549
|
+
}, _hoisted_143),
|
|
2690
2550
|
createElementVNode("div", null, [
|
|
2691
2551
|
createElementVNode("div", {
|
|
2692
2552
|
class: "",
|
|
2693
2553
|
onClick: _cache[44] || (_cache[44] = ($event) => insertUnorderedListAtCursorFun())
|
|
2694
|
-
},
|
|
2554
|
+
}, _hoisted_145)
|
|
2695
2555
|
]),
|
|
2696
2556
|
createElementVNode("div", {
|
|
2697
2557
|
onClick: _cache[45] || (_cache[45] = ($event) => insertUnorderedListAtCursorFun(3, "upper-latin"))
|
|
2698
|
-
},
|
|
2558
|
+
}, _hoisted_147)
|
|
2699
2559
|
])
|
|
2700
2560
|
])
|
|
2701
2561
|
])
|
|
2702
2562
|
]),
|
|
2703
|
-
createElementVNode("div",
|
|
2563
|
+
createElementVNode("div", _hoisted_148, [
|
|
2704
2564
|
renderSlot(_ctx.$slots, "toolbar-before", {}, void 0, true),
|
|
2705
2565
|
createElementVNode("div", {
|
|
2706
2566
|
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",
|
|
2707
2567
|
style: { "margin": "6px" },
|
|
2708
2568
|
onClick: _cache[46] || (_cache[46] = ($event) => insertElementAtCursorFun())
|
|
2709
|
-
},
|
|
2569
|
+
}, _hoisted_150),
|
|
2710
2570
|
createElementVNode("div", {
|
|
2711
2571
|
onClick: _cache[47] || (_cache[47] = ($event) => insertElementAtCursorFun("i", "**italic text **")),
|
|
2712
2572
|
class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
|
|
2713
2573
|
style: { "margin": "6px" }
|
|
2714
|
-
},
|
|
2574
|
+
}, _hoisted_152),
|
|
2715
2575
|
createElementVNode("div", {
|
|
2716
2576
|
onClick: _cache[48] || (_cache[48] = ($event) => insertElementAtCursorFun("u", "**underLine text**")),
|
|
2717
2577
|
class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
|
|
2718
2578
|
style: { "margin": "6px" }
|
|
2719
|
-
},
|
|
2579
|
+
}, _hoisted_154),
|
|
2720
2580
|
createElementVNode("div", {
|
|
2721
2581
|
onClick: _cache[49] || (_cache[49] = ($event) => insertElementAtCursorFun("s", "**Strike text**")),
|
|
2722
2582
|
class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
|
|
2723
2583
|
style: { "margin": "6px" }
|
|
2724
2584
|
}, [
|
|
2725
|
-
createElementVNode("i",
|
|
2726
|
-
(openBlock(), createElementBlock("svg",
|
|
2585
|
+
createElementVNode("i", _hoisted_155, [
|
|
2586
|
+
(openBlock(), createElementBlock("svg", _hoisted_156, _hoisted_160))
|
|
2727
2587
|
])
|
|
2728
2588
|
]),
|
|
2729
2589
|
createElementVNode("div", {
|
|
2730
2590
|
onClick: _cache[50] || (_cache[50] = ($event) => insertElementAtCursorFun("sup", "**supperScript**")),
|
|
2731
2591
|
class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
|
|
2732
2592
|
style: { "margin": "6px" }
|
|
2733
|
-
},
|
|
2593
|
+
}, _hoisted_162),
|
|
2734
2594
|
createElementVNode("div", {
|
|
2735
2595
|
onClick: _cache[51] || (_cache[51] = ($event) => insertElementAtCursorFun("sub", "**supperScript**")),
|
|
2736
2596
|
class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
|
|
2737
2597
|
style: { "margin": "6px" }
|
|
2738
|
-
},
|
|
2598
|
+
}, _hoisted_164),
|
|
2739
2599
|
createElementVNode("div", {
|
|
2740
2600
|
onClick: _cache[52] || (_cache[52] = ($event) => insertElementAtCursorFun("Code", "**code**")),
|
|
2741
2601
|
class: "hover:bg-gray-200 bg-gray-50 hover:text-gray-700 items-center text-center justify-baseline rounded cursor-pointer text-md 3",
|
|
2742
2602
|
style: { "margin": "6px" }
|
|
2743
|
-
},
|
|
2744
|
-
createElementVNode("div",
|
|
2745
|
-
|
|
2746
|
-
createElementVNode("div",
|
|
2747
|
-
createElementVNode("div",
|
|
2603
|
+
}, _hoisted_166),
|
|
2604
|
+
createElementVNode("div", _hoisted_167, [
|
|
2605
|
+
_hoisted_168,
|
|
2606
|
+
createElementVNode("div", _hoisted_169, [
|
|
2607
|
+
createElementVNode("div", _hoisted_170, [
|
|
2748
2608
|
(openBlock(true), createElementBlock(Fragment, null, renderList(colors.value, (col) => {
|
|
2749
2609
|
return openBlock(), createElementBlock("div", {
|
|
2750
2610
|
class: "color-box",
|
|
2751
2611
|
style: normalizeStyle(`background-color: #${col} ;`),
|
|
2752
2612
|
onClick: (e) => styleElementIncluderFun("background", `#${col}`, "", "span")
|
|
2753
|
-
}, null, 12,
|
|
2613
|
+
}, null, 12, _hoisted_171);
|
|
2754
2614
|
}), 256))
|
|
2755
2615
|
])
|
|
2756
2616
|
])
|
|
2757
2617
|
]),
|
|
2758
|
-
createElementVNode("div",
|
|
2759
|
-
|
|
2760
|
-
createElementVNode("div",
|
|
2761
|
-
createElementVNode("div",
|
|
2618
|
+
createElementVNode("div", _hoisted_172, [
|
|
2619
|
+
_hoisted_173,
|
|
2620
|
+
createElementVNode("div", _hoisted_174, [
|
|
2621
|
+
createElementVNode("div", _hoisted_175, [
|
|
2762
2622
|
(openBlock(true), createElementBlock(Fragment, null, renderList(colors.value, (col) => {
|
|
2763
2623
|
return openBlock(), createElementBlock("div", {
|
|
2764
2624
|
class: "color-box",
|
|
2765
2625
|
style: normalizeStyle(`background-color: #${col} ;`),
|
|
2766
2626
|
onClick: (e) => styleElementIncluderFun("color", `#${col}`, "", "span")
|
|
2767
|
-
}, null, 12,
|
|
2627
|
+
}, null, 12, _hoisted_176);
|
|
2768
2628
|
}), 256))
|
|
2769
2629
|
])
|
|
2770
2630
|
])
|
|
@@ -2775,36 +2635,36 @@ const _sfc_main = {
|
|
|
2775
2635
|
st: "",
|
|
2776
2636
|
yle: "flex: 1; margin: 0 4px; text-align: center;padding-top:8px ;",
|
|
2777
2637
|
onClick: _cache[53] || (_cache[53] = () => undoOrRedo("Undo"))
|
|
2778
|
-
},
|
|
2638
|
+
}, _hoisted_178),
|
|
2779
2639
|
createElementVNode("div", {
|
|
2780
2640
|
title: "Redo",
|
|
2781
2641
|
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",
|
|
2782
2642
|
st: "",
|
|
2783
2643
|
yle: "flex: 1; margin: 0 4px; text-align: center;padding-top:8px ;",
|
|
2784
2644
|
onClick: _cache[54] || (_cache[54] = () => undoOrRedo("Redo"))
|
|
2785
|
-
},
|
|
2645
|
+
}, _hoisted_180),
|
|
2786
2646
|
createElementVNode("div", {
|
|
2787
2647
|
title: "new fresh line",
|
|
2788
2648
|
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",
|
|
2789
2649
|
st: "",
|
|
2790
2650
|
yle: "flex: 1; margin: 0 4px; text-align: center;padding-top:8px ;",
|
|
2791
2651
|
onClick: _cache[55] || (_cache[55] = ($event) => insertNewLineAtCursorFun())
|
|
2792
|
-
},
|
|
2793
|
-
createElementVNode("div",
|
|
2794
|
-
createElementVNode("
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
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
|
+
])
|
|
2667
|
+
])
|
|
2808
2668
|
])
|
|
2809
2669
|
]),
|
|
2810
2670
|
renderSlot(_ctx.$slots, "toolbar-after", {}, void 0, true)
|
|
@@ -2816,13 +2676,13 @@ const _sfc_main = {
|
|
|
2816
2676
|
ref_key: "pomTextEditorContainer",
|
|
2817
2677
|
ref: pomTextEditorContainer,
|
|
2818
2678
|
id: "pom-texedito-container",
|
|
2819
|
-
style: { "width": "100%", "overflow": "hidden auto", "height": "30vh", "border": "1px solid #9d969633", "padding": "0px", "border-radius": "3px" }
|
|
2679
|
+
style: { "width": "100%", "overflow": "hidden auto", "min-height": "30vh", "height": "40vh", "border": "1px solid #9d969633", "padding": "0px", "border-radius": "3px" }
|
|
2820
2680
|
}, [
|
|
2821
|
-
createElementVNode("div",
|
|
2681
|
+
createElementVNode("div", _hoisted_189, [
|
|
2822
2682
|
__props.TextOnly ? (openBlock(), createElementBlock("textarea", {
|
|
2823
2683
|
key: 0,
|
|
2824
|
-
onMouseup: _cache[
|
|
2825
|
-
onKeyup: _cache[
|
|
2684
|
+
onMouseup: _cache[56] || (_cache[56] = ($event) => containerCursorPosition()),
|
|
2685
|
+
onKeyup: _cache[57] || (_cache[57] = (e) => {
|
|
2826
2686
|
containerCursorPosition();
|
|
2827
2687
|
}),
|
|
2828
2688
|
onInput: returnData,
|
|
@@ -2836,8 +2696,8 @@ const _sfc_main = {
|
|
|
2836
2696
|
"data-placeholder": "Your Editing.....",
|
|
2837
2697
|
onDrop: onChangeFileDrop,
|
|
2838
2698
|
innerHTML: __props.Dvalue,
|
|
2839
|
-
onMouseup: _cache[
|
|
2840
|
-
onKeyup: _cache[
|
|
2699
|
+
onMouseup: _cache[58] || (_cache[58] = ($event) => containerCursorPosition()),
|
|
2700
|
+
onKeyup: _cache[59] || (_cache[59] = (e) => {
|
|
2841
2701
|
containerCursorPosition();
|
|
2842
2702
|
}),
|
|
2843
2703
|
ref_key: "editorRef",
|
|
@@ -2847,22 +2707,22 @@ const _sfc_main = {
|
|
|
2847
2707
|
contenteditable: "true",
|
|
2848
2708
|
id: "editor",
|
|
2849
2709
|
style: { "height": "100%", "width": "100%", "border": "none" }
|
|
2850
|
-
}, null, 40,
|
|
2710
|
+
}, null, 40, _hoisted_190))
|
|
2851
2711
|
])
|
|
2852
2712
|
], 512),
|
|
2853
|
-
__props.TextOnly != "true" ? (openBlock(), createElementBlock("div",
|
|
2713
|
+
__props.TextOnly != "true" ? (openBlock(), createElementBlock("div", _hoisted_191, [
|
|
2854
2714
|
createElementVNode("div", {
|
|
2855
2715
|
class: "hover:bg-gray-200",
|
|
2856
|
-
onClick: _cache[
|
|
2857
|
-
},
|
|
2858
|
-
|
|
2859
|
-
|
|
2716
|
+
onClick: _cache[60] || (_cache[60] = ($event) => insertNewLineAtCursorFun())
|
|
2717
|
+
}, _hoisted_194),
|
|
2718
|
+
_hoisted_195,
|
|
2719
|
+
_hoisted_196
|
|
2860
2720
|
])) : createCommentVNode("", true)
|
|
2861
2721
|
]);
|
|
2862
2722
|
};
|
|
2863
2723
|
}
|
|
2864
2724
|
};
|
|
2865
|
-
const Editor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
2725
|
+
const Editor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c5407d12"]]);
|
|
2866
2726
|
export {
|
|
2867
2727
|
Editor as default
|
|
2868
2728
|
};
|