@ebl-vue/editor-render 2.31.34 → 2.31.36
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/index.mjs +62 -62
- package/dist/styles/index.css +7 -8
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('.cdx-alert{position:relative;padding:10px;border-radius:5px;margin-bottom:10px;margin-top:10px}.cdx-alert-primary{background-color:#ebf8ff;border:1px solid #4299e1;color:#2b6cb0}.cdx-alert-secondary{background-color:#f7fafc;border:1px solid #cbd5e0;color:#222731}.cdx-alert-info{background-color:#e6fdff;border:1px solid #4cd4ce;color:#00727c}.cdx-alert-success{background-color:#f0fff4;border:1px solid #68d391;color:#2f855a}.cdx-alert-warning{background-color:#fffaf0;border:1px solid #ed8936;color:#c05621}.cdx-alert-danger{background-color:#fff5f5;border:1px solid #fc8181;color:#c53030}.cdx-alert-light{background-color:#fff;border:1px solid #edf2f7;color:#1a202c}.cdx-alert-dark{background-color:#2d3748;border:1px solid #1a202c;color:#d3d3d3}.cdx-alert-align-left{text-align:left}.cdx-alert-align-center{text-align:center}.cdx-alert-align-right{text-align:right}.cdx-alert__message{outline:none}.cdx-alert [contentEditable=true][data-placeholder]:before{position:absolute;content:attr(data-placeholder);color:#707684;font-weight:400;opacity:0}.cdx-alert [contentEditable=true][data-placeholder]:empty:before{opacity:1}.cdx-alert [contentEditable=true][data-placeholder]:empty:focus:before{opacity:0}.ce-popover__item[data-item-name=alert-primary] .ce-popover__item-icon svg #background{fill:#ebf8ff;stroke:#4299e1}.ce-popover__item[data-item-name=alert-primary] .ce-popover__item-icon svg #content{fill:#2b6cb0}.ce-popover__item[data-item-name=alert-secondary] .ce-popover__item-icon svg #background{fill:#f7fafc;stroke:#cbd5e0}.ce-popover__item[data-item-name=alert-secondary] .ce-popover__item-icon svg #content{fill:#222731}.ce-popover__item[data-item-name=alert-info] .ce-popover__item-icon svg #background{fill:#e6fdff;stroke:#4cd4ce}.ce-popover__item[data-item-name=alert-info] .ce-popover__item-icon svg #content{fill:#00727c}.ce-popover__item[data-item-name=alert-success] .ce-popover__item-icon svg #background{fill:#f0fff4;stroke:#68d391}.ce-popover__item[data-item-name=alert-success] .ce-popover__item-icon svg #content{fill:#2f855a}.ce-popover__item[data-item-name=alert-warning] .ce-popover__item-icon svg #background{fill:#fffaf0;stroke:#ed8936}.ce-popover__item[data-item-name=alert-warning] .ce-popover__item-icon svg #content{fill:#c05621}.ce-popover__item[data-item-name=alert-danger] .ce-popover__item-icon svg #background{fill:#fff5f5;stroke:#fc8181}.ce-popover__item[data-item-name=alert-danger] .ce-popover__item-icon svg #content{fill:#c53030}.ce-popover__item[data-item-name=alert-light] .ce-popover__item-icon svg #background{fill:#fff;stroke:#edf2f7}.ce-popover__item[data-item-name=alert-light] .ce-popover__item-icon svg #content{fill:#1a202c}.ce-popover__item[data-item-name=alert-dark] .ce-popover__item-icon svg #background{fill:#2d3748;stroke:#1a202c}.ce-popover__item[data-item-name=alert-dark] .ce-popover__item-icon svg #content{fill:#d3d3d3}.cdx-alert_setting__icon_wrapper{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px}.cdx-alert_setting__icon_wrapper_align{margin-top:10px}.cdx-alert_setting__icon{display:inline-block;width:24px;height:24px;text-align:center;line-height:24px;cursor:pointer}.cdx-alert_setting__icon_active{opacity:.3}.ce-tune-alignment--right{text-align:right}.ce-tune-alignment--center{text-align:center}.ce-tune-alignment--left{text-align:left}.ce-editorjs-x-shiki{border-radius:10px;display:flex;flex-direction:column;margin:10px 0;border:2px solid transparent;position:relative}.ce-editorjs-x-shiki.editable:hover{border:2px solid #C0C0C0}.ce-editorjs-x-shiki__lang{display:flex;justify-content:space-between;padding:8px}.ce-editorjs-x-shiki__code{position:relative;float:left;min-width:100%;overflow:hidden;height:auto}.ce-editorjs-x-shiki__code__dragHandler{position:absolute;left:50%;transform:translate(-50%);bottom:-5px;cursor:ns-resize;user-select:none;height:8px;width:60px;background-color:silver;border-radius:5px;display:none}.ce-editorjs-x-shiki:hover .ce-editorjs-x-shiki__code__dragHandler{display:block}.ce-editorjs-x-shiki__selector{display:flex;gap:15px;justify-content:space-between;border-bottom-style:solid;border-color:#9ca3af0d;border-bottom-width:1px;padding:0 8px 8px}.ce-editorjs-x-shiki__selector-language,.ce-editorjs-x-shiki__selector-theme{font-size:13px;font-family:inherit}.ce-editorjs-x-shiki__selector-language{width:90px}.ce-editorjs-x-shiki__selector select{border:none;outline:none}.ce-editorjs-x-shiki__span{position:relative;z-index:0;padding:20px 20px 20px 55px;margin:0;white-space:pre;font-size:13px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__span code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__textarea{all:unset;white-space:pre;background-color:transparent;position:absolute;padding:20px 20px 20px 55px;inset:0;color:transparent;z-index:0;font-size:13px;caret-color:#999;resize:none;border:none;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__textarea::selection{background-color:#083ca9;color:#fff}.ce-editorjs-x-shiki__copy{width:24px;height:24px;cursor:pointer;position:relative;margin-right:0}.ce-editorjs-x-shiki__copy_tip{font-size:12px;width:60px;margin-left:-20px;background-color:#0c0c0c;color:#ececec;text-align:center;border-radius:6px;padding:5px 10px;position:absolute;z-index:1;top:125%;transition:opacity .3s;visibility:hidden;opacity:0}.ce-editorjs-x-shiki__copy_tip:after{content:"";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #0c0c0c transparent}.ce-editorjs-x-shiki__copy_tip.visible{visibility:visible;opacity:1}.ce-editorjs-x-shiki__span.shiki .line:before{content:attr(data-line);width:40px;display:inline-block;text-align:right;color:#888;position:absolute;left:0}.ce-editorjs-x-shiki__code ::-webkit-scrollbar{width:8px;height:8px}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-track{background:#22272e;border-radius:1px}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-thumb{background:silver;border-radius:10px;border:2px solid #22272e}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-thumb:hover{background:#555}.ce-delimiter__line__wrapper{height:24px;display:flex;align-items:center;justify-content:center}.ce-delimiter__line{flex:1;height:2px;background-color:#eff0f1}.ce-header{padding:15px 0 3px;margin:0;line-height:1.25;outline:none}.ce-header p,.ce-header div{padding:0!important;margin:0!important}.image-tool{--bg-color: #cdd1e0;--front-color: #388ae5;--border-color: #e8e8eb;display:inline-block}.image-tool__image{border-radius:3px;overflow:hidden;margin-bottom:10px;padding-bottom:0;user-select:none;pointer-events:none}.image-tool__image-picture{max-width:100%;vertical-align:bottom;display:inline-block;user-select:none;pointer-events:none}.image-tool__image-preloader{width:150px;height:150px;border-radius:50%;background-size:cover;margin:auto;position:relative;background-color:var(--bg-color);background-position:center center}.image-tool__image-preloader:after{content:"";position:absolute;z-index:3;width:60px;height:60px;border-radius:50%;border:2px solid var(--bg-color);border-top-color:var(--front-color);left:50%;top:50%;margin-top:-30px;margin-left:-30px;animation:image-preloader-spin 2s infinite linear;box-sizing:border-box}.image-tool__caption{visibility:hidden;position:absolute;bottom:0;left:0;margin-bottom:10px}.image-tool__caption[contentEditable=true][data-placeholder]:before{position:absolute!important;content:attr(data-placeholder);color:#707684;font-weight:400;display:none}.image-tool__caption[contentEditable=true][data-placeholder]:empty:before{display:block}.image-tool__caption[contentEditable=true][data-placeholder]:empty:focus:before{display:none}.image-tool--empty .image-tool__image,.image-tool--empty .image-tool__image-preloader{display:none}.image-tool--empty .image-tool__caption,.image-tool--uploading .image-tool__caption{visibility:hidden!important}.image-tool .cdx-button{display:none;align-items:center;justify-content:center}.image-tool .cdx-button svg{height:auto;margin:0 6px 0 0}.image-tool--filled .cdx-button,.image-tool--filled .image-tool__image-preloader{display:none}.image-tool--uploading{width:100%}.image-tool--uploading .resizable{display:none!important}.image-tool--uploading .image-tool__image{min-height:200px;display:flex;background-color:#fff}.image-tool--uploading .image-tool__image-picture,.image-tool--uploading .cdx-button{display:none}.image-tool--withBorder .image-tool__image{border:1px solid var(--border-color)}.image-tool--withBackground .image-tool__image{padding:15px;background:var(--bg-color)}.image-tool--withBackground .image-tool__image-picture{max-width:60%;margin:0 auto}.image-tool--stretched .image-tool__image-picture{width:100%}.image-tool--caption .image-tool__caption{visibility:visible}.image-tool--caption{padding-bottom:50px}@keyframes image-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ce-popover-indent-item{cursor:default!important;display:flex;align-items:center;padding:3px}.ce-popover-indent-item[version^="2.26"]{gap:10px}.ce-popover-indent-item:hover{background-color:transparent!important}.ce-popover-indent-item .ce-popover-item__icon{width:26px;height:26px;cursor:pointer;will-change:background-color,color;transition:.3s background-color,.3s color;padding-block:0px;padding-inline:0px;border-width:0px;color:var(--color-text-primary, black);background-color:#fff;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;-webkit-transition:.3s background-color,.3s color;-moz-transition:.3s background-color,.3s color;-ms-transition:.3s background-color,.3s color;-o-transition:.3s background-color,.3s color}.ce-popover-indent-item .ce-popover-item--disabled{color:var(--color-text-secondary, #707684);opacity:.3;cursor:default}.ce-popover-indent-item .ce-popover-item__icon:focus{outline:none}.ce-popover-indent-item:is([version^="2.26"],[version^="2.27"],[version^="2.28"],[version^="2.29"]):hover .ce-popover-item__icon{box-shadow:0 0 0 1px var(--color-border-icon, rgba(201, 201, 204, .48))!important;-webkit-box-shadow:0 0 0 1px var(--color-border-icon, rgba(201, 201, 204, .48))!important}.ce-popover-indent-item:is([version^="2.26"],[version^="2.27"],[version^="2.28"],[version^="2.29"]) .ce-popover-item__icon{box-shadow:0 0 0 1px var(--color-border-icon, rgba(201, 201, 204, .48))!important;-webkit-box-shadow:0 0 0 1px var(--color-border-icon, rgba(201, 201, 204, .48))!important}.ce-popover-indent-item:is([version^="2.26"],[version^="2.27"],[version^="2.28"],[version^="2.29"]) .ce-popover-item__icon:hover{background-color:var(--color-background-item-hover, #eff2f5)}.ce-highlight-indent{display:inline-block;height:1.6em;top:50%;position:absolute;transform:translateY(-50%);-webkit-transform:translate(0px,-50%);-moz-transform:translate(0px,-50%);-ms-transform:translate(0px,-50%);-o-transform:translate(0px,-50%)}.ce-popover-indent-item[version^="2.3"] .ce-popover-item__title{margin-left:4px}.inline-code{background:#faeff0c7;color:#b44437;padding:3px 4px;border-radius:5px;margin:0 1px;font-family:inherit;font-size:.86em;font-weight:500;letter-spacing:.3px}.cdx-list{margin:0;padding:0;outline:none;display:grid;counter-reset:item;gap:var(--spacing-s);padding:var(--spacing-xs);--spacing-s: 8px;--spacing-xs: 6px;--list-counter-type: numeric;--radius-border: 5px;--checkbox-background: #fff;--color-border: #C9C9C9;--color-bg-checked: #369FFF;--line-height: 1.45em;--color-bg-checked-hover: #0059AB;--color-tick: #fff;--size-checkbox: 1.2em}.cdx-list ol{padding-inline-start:0}.cdx-list__item{line-height:var(--line-height);display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;grid-template-areas:"checkbox content" ". child"}.cdx-list__item-children{display:grid;grid-area:child;gap:var(--spacing-s);padding-top:var(--spacing-s)}.cdx-list__item [contenteditable]{outline:none}.cdx-list__item-content{word-break:break-word;white-space:pre-wrap;grid-area:content;padding-left:var(--spacing-s)}.cdx-list__item:before{counter-increment:item;white-space:nowrap}.cdx-list-ordered .cdx-list__item:before{content:counters(item,".",var(--list-counter-type)) "."}.cdx-list-ordered{counter-reset:item}.cdx-list-unordered{padding-inline-start:0}.cdx-list-unordered .cdx-list__item:before{content:"•"}.cdx-list-checklist .cdx-list__item:before{content:""}.cdx-list__settings .cdx-settings-button{width:50%}.cdx-list__checkbox{padding-top:calc((var(--line-height) - var(--size-checkbox)) / 2);grid-area:checkbox;width:var(--size-checkbox);height:var(--size-checkbox);display:flex;cursor:pointer}.cdx-list__checkbox svg{opacity:0;height:var(--size-checkbox);width:var(--size-checkbox);left:-1px;top:-1px;position:absolute}@media (hover: hover){.cdx-list__checkbox:not(.cdx-list__checkbox--no-hover):hover .cdx-list__checkbox-check svg{opacity:1}}.cdx-list__checkbox--checked{line-height:var(--line-height)}@media (hover: hover){.cdx-list__checkbox--checked:not(.cdx-list__checkbox--checked--no-hover):hover .cdx-checklist__checkbox-check{background:var(--color-bg-checked-hover);border-color:var(--color-bg-checked-hover)}}.cdx-list__checkbox--checked .cdx-list__checkbox-check{background:var(--color-bg-checked);border-color:var(--color-bg-checked)}.cdx-list__checkbox--checked .cdx-list__checkbox-check svg{opacity:1}.cdx-list__checkbox--checked .cdx-list__checkbox-check svg path{stroke:var(--color-tick)}.cdx-list__checkbox--checked .cdx-list__checkbox-check:before{opacity:0;visibility:visible;transform:scale(2.5)}.cdx-list__checkbox-check{cursor:pointer;display:inline-block;position:relative;margin:0 auto;width:var(--size-checkbox);height:var(--size-checkbox);box-sizing:border-box;border-radius:var(--radius-border);border:1px solid var(--color-border);background:var(--checkbox-background)}.cdx-list__checkbox-check:before{content:"";position:absolute;inset:0;border-radius:100%;background-color:var(--color-bg-checked);visibility:hidden;pointer-events:none;transform:scale(1);transition:transform .4s ease-out,opacity .4s}.cdx-list__checkbox-check--disabled{pointer-events:none}.cdx-list-start-with-field{display:flex;flex-direction:row;overflow:hidden;align-items:center}.cdx-list-start-with-field--invalid{background:#ffeced;border:1px solid #E13F3F}.cdx-list-start-with-field:hover{background-color:#f8f8f8}.cdx-list-start-with-field--invalid .cdx-list-start-with-field__input{color:#e13f3f}.cdx-list-start-with-field__startlabel{width:70px;font-size:14px}.cdx-list-start-with-field__input-wrapper{flex:1;overflow:hidden}.cdx-list-start-with-field__input{font-size:14px;outline:none;font-weight:500;font-family:inherit;border:0;background:transparent;margin:0;line-height:22px;flex:1;border:1px solid rgba(226,226,229,1);border-radius:6px;padding:0 10px;width:50px;text-align:center}.cdx-list-start-with-field__input::placeholder{color:var(--grayText);font-weight:500}.cdx-marker{background:#f5eb6f4a;padding:3px 0}.ce-paragraph{line-height:2!important;outline:none}.ce-block:only-of-type .ce-paragraph[data-placeholder-active]:empty:before,.ce-block:only-of-type .ce-paragraph[data-placeholder-active][data-empty=true]:before{content:attr(data-placeholder-active)}.ce-paragraph p:first-of-type{margin-top:0}.ce-paragraph p:last-of-type{margin-bottom:0}.cdx-quote{overflow:hidden;overflow-wrap:break-word;margin:0;box-sizing:border-box;word-wrap:break-word;word-break:break-all}.cdx-quote blockquote{margin:0}.cdx-block-quote{border:solid #acacac;border-width:0 0 0 3px;box-shadow:none;color:#666;line-height:1.6em;padding:1px 0 0 12px;text-align:left}.tc-wrap{--color-background: #f9f9fb;--color-text-secondary: #7b7e89;--color-border: #e8e8eb;--cell-size: 34px;--toolbox-icon-size: 18px;--toolbox-padding: 6px;--toolbox-aiming-field-size: calc(var(--toolbox-icon-size) + var(--toolbox-padding)*2);--col-width: 100px 100px 100px;position:relative;height:100%;margin-top:var(--toolbox-icon-size);box-sizing:border-box;display:inline-grid;z-index:0}.tc-wrap svg{vertical-align:top}@media print{.tc-wrap{border-left-color:var(--color-border);border-left-style:solid;border-left-width:1px}}@media print{.tc-wrap .tc-row:after{display:none}}.tc-table{position:relative;width:100%;height:100%;display:grid;font-size:14px;border-top:1px solid var(--color-border);border-left:1px solid var(--color-border);line-height:1.4;overflow-x:auto}.tc-table:after{width:calc(var(--cell-size));height:100%;left:calc(var(--cell-size)*-1);top:0}.tc-table:after,.tc-table:before{position:absolute;content:""}.tc-table:before{width:100%;height:var(--toolbox-aiming-field-size);top:calc(var(--toolbox-aiming-field-size)*-1);left:0}.tc-table--heading .tc-row:first-child{font-weight:600;border-bottom:2px solid var(--color-border);position:sticky;top:0;z-index:2;background:var(--color-background)}.tc-table--heading .tc-row:first-child [contenteditable]:empty:before{content:attr(heading);color:var(--color-text-secondary)}.tc-table--heading .tc-row:first-child:after{bottom:-2px;border-bottom:2px solid var(--color-border)}.tc-add-column,.tc-add-row{display:flex;color:var(--color-text-secondary)}@media print{.tc-add{display:none}}.tc-add-column{display:grid;border-top:1px solid var(--color-border);grid-auto-rows:var(--cell-size);place-items:center}.tc-add-column svg{padding:5px;position:sticky;top:0;background-color:var(--color-background)}.tc-add-column--disabled{visibility:hidden}@media print{.tc-add-column{display:none}}.tc-add-row{height:var(--cell-size);align-items:center;padding-left:4px;position:relative}.tc-add-row--disabled{display:none}.tc-add-row:before{content:"";position:absolute;right:calc(var(--cell-size)*-1);width:var(--cell-size);height:100%}@media print{.tc-add-row{display:none}}.tc-add-column,.tc-add-row{transition:0s;cursor:pointer;will-change:background-color}.tc-add-column:hover,.tc-add-row:hover{transition:background-color .1s ease;background-color:var(--color-background)}.tc-add-row{margin-top:1px}.tc-add-row:hover:before{transition:.1s;background-color:var(--color-background)}.tc-row{display:grid;grid-template-columns:var(--col-width);position:relative;border-bottom:1px solid var(--color-border)}.tc-row--selected{background:var(--color-background)}.tc-row--selected:after{background:var(--color-background)}.tc-cell{border-right:1px solid var(--color-border);padding:6px 12px;overflow:hidden;outline:none;line-break:normal}.tc-cell--selected{background:var(--color-background)}.tc-wrap--readonly .tc-row:after{display:none}.tc-toolbox{--toolbox-padding: 6px;--popover-margin: 30px;--toggler-click-zone-size: 30px;--toggler-dots-color: #7b7e89;--toggler-dots-color-hovered: #1d202b;position:absolute;cursor:pointer;z-index:1;opacity:0;transition:opacity .1s;will-change:left,opacity}.tc-toolbox--column{top:calc(var(--toggler-click-zone-size)*-1);transform:translate(calc(var(--toggler-click-zone-size)*-1/2));will-change:left,opacity}.tc-toolbox--row{left:calc(var(--popover-margin)*-1);transform:translateY(calc(var(--toggler-click-zone-size)*-1/2));margin-top:-1px;will-change:top,opacity}.tc-toolbox--showed{opacity:1}.tc-toolbox .tc-popover{position:absolute;top:0;left:var(--popover-margin)}.tc-toolbox__toggler{display:flex;align-items:center;justify-content:center;width:var(--toggler-click-zone-size);height:var(--toggler-click-zone-size);color:var(--toggler-dots-color);opacity:0;transition:opacity .15s ease;will-change:opacity}.tc-toolbox__toggler:hover{color:var(--toggler-dots-color-hovered)}.tc-toolbox__toggler svg{fill:currentColor}.tc-wrap:hover .tc-toolbox__toggler{opacity:1}.tc-settings .cdx-settings-button{width:50%;margin:0}.tc-popover{--color-border: #eaeaea;--color-background: #fff;--color-background-hover: rgba(232, 232, 235, .49);--color-background-confirm: #e24a4a;--color-background-confirm-hover: #d54040;--color-text-confirm: #fff;background:var(--color-background);border:1px solid var(--color-border);box-shadow:0 3px 15px -3px #0d142121;border-radius:6px;padding:6px;display:none;will-change:opacity,transform}.tc-popover--opened{display:flex;animation:menuShowing .1s cubic-bezier(.215,.61,.355,1) forwards}.tc-popover__item{display:flex;align-items:center;padding:2px 14px 2px 2px;border-radius:5px;cursor:pointer;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tc-popover__item:hover{background:var(--color-background-hover)}.tc-popover__item:not(:last-of-type){margin-bottom:2px}.tc-popover__item-icon{display:inline-flex;width:26px;height:26px;align-items:center;justify-content:center;background:var(--color-background);border-radius:5px;border:1px solid var(--color-border);margin-right:8px}.tc-popover__item-label{line-height:22px;font-size:14px;font-weight:500}.tc-popover__item--confirm{background:var(--color-background-confirm);color:var(--color-text-confirm)}.tc-popover__item--confirm:hover{background-color:var(--color-background-confirm-hover)}.tc-popover__item--confirm .tc-popover__item-icon{background:var(--color-background-confirm);border-color:#0000001a}.tc-popover__item--confirm .tc-popover__item-icon svg{transition:transform .2s ease-in;transform:rotate(90deg) scale(1.2)}.tc-popover__item--hidden{display:none}@keyframes menuShowing{0%{opacity:0;transform:translateY(-8px) scale(.9)}70%{opacity:1;transform:translateY(2px)}to{transform:translateY(0)}}.cell-resizable{cursor:col-resize}.cdx-underline{text-decoration:underline}.ce-popover--inline .ce-popover--nested .ce-popover__container{width:min-content!important;min-width:unset!important}.ce-popover--inline .ce-popover--nested .ce-popover__items{width:max-content}.editorjs__color-selector-container{display:grid;gap:10px;padding:4px}.editorjs__color-selector__container-item{width:30px;height:30px;display:block;cursor:pointer;border-radius:100%;transition:transform .2s ease}.editorjs__color-selector__container-item:hover{transform:scale(1.1)}.ebl-er-doc{font-family:var(--font-family);font-size:16px;font-weight:400;box-sizing:border-box}.ebl-er-header{height:var(--ebl-er-header-height);box-sizing:border-box;position:sticky;top:0;z-index:10}.ebl-er-footer{height:var(--ebl-er-footer-height);box-sizing:border-box}.ebl-er-container{display:flex;flex-direction:row;min-height:calc(100vh - var(--ebl-er-header-height))}.ebl-er-doc-menu{width:var(--ebl-er-doc-menu-width);box-sizing:border-box;flex-shrink:0}.ebl-er-doc-menu-content{box-sizing:border-box;height:calc(100vh - var(--ebl-er-header-height));overflow:auto;position:sticky;top:var(--ebl-er-header-height)}.ebl-er-doc-content{box-sizing:border-box;display:flex;flex-direction:row;max-width:calc(100% - var(--ebl-er-doc-menu-width))}.ebl-er-doc-content-container{box-sizing:border-box;flex:1;padding:0 50px 50px;width:100%;overflow-x:hidden;white-space:normal;word-wrap:break-word}.ebl-er-doc-content-inner .ce-block{width:100%}.ebl-er-doc-outline{width:280px;box-sizing:border-box;height:calc(100vh - var(--ebl-er-header-height));position:sticky;top:var(--ebl-er-header-height);overflow:auto;padding:12px}.ebl-er-doc-pre-next{display:flex;justify-content:space-between;align-items:center;padding:33px 0}@media (max-width:960px){.ebl-er-doc-outline{display:none}}.ebl-er-doc ::-webkit-scrollbar{width:6px;height:6px}.ebl-er-doc ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:1px}.ebl-er-doc ::-webkit-scrollbar-thumb{background:silver;border-radius:10px;border:1px solid #fff}.ebl-er-doc ::-webkit-scrollbar-thumb:hover{background:#555}.ce-editorjs-x-shiki__code[data-v-f867b955]{overflow:auto}.ce-editorjs-x-shiki__selector[data-v-f867b955]{padding:0 8px;align-items:center}.ce-editorjs-x-shiki__copy_tip[data-v-f867b955]{visibility:visible;opacity:.9;width:40px;padding:5px;margin-left:-15px}.tc-wrap--readonly[data-v-0627102b]{margin-bottom:var(--toolbox-icon-size)}.image-tool__image[data-v-ff96876e]{margin-top:15px}.ebl-er-doc-outline-item{padding:7px 24px;cursor:pointer;white-space:normal;word-wrap:break-word}.ebl-er-doc-outline-item:hover{background-color:#f6f6f6}.ebl-er-doc-outline-item.selected{background-color:#ebebeb}.ebl-outline .level_1{padding-left:24px}.ebl-outline .level_2{padding-left:42px}.ebl-outline .level_3{padding-left:60px}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
import { defineComponent as b, computed as C, resolveComponent as P, createElementBlock as s, openBlock as o, normalizeStyle as M, createCommentVNode as _, createElementVNode as
|
|
1
|
+
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('.cdx-alert{position:relative;padding:10px;border-radius:5px;margin-bottom:10px;margin-top:10px}.cdx-alert-primary{background-color:#ebf8ff;border:1px solid #4299e1;color:#2b6cb0}.cdx-alert-secondary{background-color:#f7fafc;border:1px solid #cbd5e0;color:#222731}.cdx-alert-info{background-color:#e6fdff;border:1px solid #4cd4ce;color:#00727c}.cdx-alert-success{background-color:#f0fff4;border:1px solid #68d391;color:#2f855a}.cdx-alert-warning{background-color:#fffaf0;border:1px solid #ed8936;color:#c05621}.cdx-alert-danger{background-color:#fff5f5;border:1px solid #fc8181;color:#c53030}.cdx-alert-light{background-color:#fff;border:1px solid #edf2f7;color:#1a202c}.cdx-alert-dark{background-color:#2d3748;border:1px solid #1a202c;color:#d3d3d3}.cdx-alert-align-left{text-align:left}.cdx-alert-align-center{text-align:center}.cdx-alert-align-right{text-align:right}.cdx-alert__message{outline:none}.cdx-alert [contentEditable=true][data-placeholder]:before{position:absolute;content:attr(data-placeholder);color:#707684;font-weight:400;opacity:0}.cdx-alert [contentEditable=true][data-placeholder]:empty:before{opacity:1}.cdx-alert [contentEditable=true][data-placeholder]:empty:focus:before{opacity:0}.ce-popover__item[data-item-name=alert-primary] .ce-popover__item-icon svg #background{fill:#ebf8ff;stroke:#4299e1}.ce-popover__item[data-item-name=alert-primary] .ce-popover__item-icon svg #content{fill:#2b6cb0}.ce-popover__item[data-item-name=alert-secondary] .ce-popover__item-icon svg #background{fill:#f7fafc;stroke:#cbd5e0}.ce-popover__item[data-item-name=alert-secondary] .ce-popover__item-icon svg #content{fill:#222731}.ce-popover__item[data-item-name=alert-info] .ce-popover__item-icon svg #background{fill:#e6fdff;stroke:#4cd4ce}.ce-popover__item[data-item-name=alert-info] .ce-popover__item-icon svg #content{fill:#00727c}.ce-popover__item[data-item-name=alert-success] .ce-popover__item-icon svg #background{fill:#f0fff4;stroke:#68d391}.ce-popover__item[data-item-name=alert-success] .ce-popover__item-icon svg #content{fill:#2f855a}.ce-popover__item[data-item-name=alert-warning] .ce-popover__item-icon svg #background{fill:#fffaf0;stroke:#ed8936}.ce-popover__item[data-item-name=alert-warning] .ce-popover__item-icon svg #content{fill:#c05621}.ce-popover__item[data-item-name=alert-danger] .ce-popover__item-icon svg #background{fill:#fff5f5;stroke:#fc8181}.ce-popover__item[data-item-name=alert-danger] .ce-popover__item-icon svg #content{fill:#c53030}.ce-popover__item[data-item-name=alert-light] .ce-popover__item-icon svg #background{fill:#fff;stroke:#edf2f7}.ce-popover__item[data-item-name=alert-light] .ce-popover__item-icon svg #content{fill:#1a202c}.ce-popover__item[data-item-name=alert-dark] .ce-popover__item-icon svg #background{fill:#2d3748;stroke:#1a202c}.ce-popover__item[data-item-name=alert-dark] .ce-popover__item-icon svg #content{fill:#d3d3d3}.cdx-alert_setting__icon_wrapper{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px}.cdx-alert_setting__icon_wrapper_align{margin-top:10px}.cdx-alert_setting__icon{display:inline-block;width:24px;height:24px;text-align:center;line-height:24px;cursor:pointer}.cdx-alert_setting__icon_active{opacity:.3}.ce-tune-alignment--right{text-align:right}.ce-tune-alignment--center{text-align:center}.ce-tune-alignment--left{text-align:left}.ce-editorjs-x-shiki{border-radius:10px;display:flex;flex-direction:column;margin:10px 0;border:2px solid transparent;position:relative}.ce-editorjs-x-shiki.editable:hover{border:2px solid #C0C0C0}.ce-editorjs-x-shiki__lang{display:flex;justify-content:space-between;padding:8px}.ce-editorjs-x-shiki__code{position:relative;float:left;min-width:100%;overflow:hidden;height:auto}.ce-editorjs-x-shiki__code__dragHandler{position:absolute;left:50%;transform:translate(-50%);bottom:-5px;cursor:ns-resize;user-select:none;height:8px;width:60px;background-color:silver;border-radius:5px;display:none}.ce-editorjs-x-shiki:hover .ce-editorjs-x-shiki__code__dragHandler{display:block}.ce-editorjs-x-shiki__selector{display:flex;gap:15px;justify-content:space-between;border-bottom-style:solid;border-color:#9ca3af0d;border-bottom-width:1px;padding:0 8px 8px}.ce-editorjs-x-shiki__selector-language,.ce-editorjs-x-shiki__selector-theme{font-size:13px;font-family:inherit}.ce-editorjs-x-shiki__selector-language{width:90px}.ce-editorjs-x-shiki__selector select{border:none;outline:none}.ce-editorjs-x-shiki__span{position:relative;z-index:0;padding:20px 20px 20px 55px;margin:0;white-space:pre;font-size:13px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__span code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__textarea{all:unset;white-space:pre;background-color:transparent;position:absolute;padding:20px 20px 20px 55px;inset:0;color:transparent;z-index:0;font-size:13px;caret-color:#999;resize:none;border:none;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__textarea::selection{background-color:#083ca9;color:#fff}.ce-editorjs-x-shiki__copy{width:24px;height:24px;cursor:pointer;position:relative;margin-right:0}.ce-editorjs-x-shiki__copy_tip{font-size:12px;width:60px;margin-left:-20px;background-color:#0c0c0c;color:#ececec;text-align:center;border-radius:6px;padding:5px 10px;position:absolute;z-index:1;top:125%;transition:opacity .3s;visibility:hidden;opacity:0}.ce-editorjs-x-shiki__copy_tip:after{content:"";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #0c0c0c transparent}.ce-editorjs-x-shiki__copy_tip.visible{visibility:visible;opacity:1}.ce-editorjs-x-shiki__span.shiki .line:before{content:attr(data-line);width:40px;display:inline-block;text-align:right;color:#888;position:absolute;left:0}.ce-editorjs-x-shiki__code ::-webkit-scrollbar{width:8px;height:8px}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-track{background:#22272e;border-radius:1px}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-thumb{background:silver;border-radius:10px;border:2px solid #22272e}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-thumb:hover{background:#555}.ce-delimiter__line__wrapper{height:24px;display:flex;align-items:center;justify-content:center}.ce-delimiter__line{flex:1;height:2px;background-color:#eff0f1}.ce-header{padding:15px 0 3px;margin:0;line-height:1.25;outline:none}.ce-header p,.ce-header div{padding:0!important;margin:0!important}.image-tool{--bg-color: #cdd1e0;--front-color: #388ae5;--border-color: #e8e8eb;display:inline-block}.image-tool__image{border-radius:3px;overflow:hidden;margin-bottom:10px;padding-bottom:0;user-select:none;pointer-events:none}.image-tool__image-picture{max-width:100%;vertical-align:bottom;display:inline-block;user-select:none;pointer-events:none}.image-tool__image-preloader{width:150px;height:150px;border-radius:50%;background-size:cover;margin:auto;position:relative;background-color:var(--bg-color);background-position:center center}.image-tool__image-preloader:after{content:"";position:absolute;z-index:3;width:60px;height:60px;border-radius:50%;border:2px solid var(--bg-color);border-top-color:var(--front-color);left:50%;top:50%;margin-top:-30px;margin-left:-30px;animation:image-preloader-spin 2s infinite linear;box-sizing:border-box}.image-tool__caption{visibility:hidden;position:absolute;bottom:0;left:0;margin-bottom:10px}.image-tool__caption[contentEditable=true][data-placeholder]:before{position:absolute!important;content:attr(data-placeholder);color:#707684;font-weight:400;display:none}.image-tool__caption[contentEditable=true][data-placeholder]:empty:before{display:block}.image-tool__caption[contentEditable=true][data-placeholder]:empty:focus:before{display:none}.image-tool--empty .image-tool__image,.image-tool--empty .image-tool__image-preloader{display:none}.image-tool--empty .image-tool__caption,.image-tool--uploading .image-tool__caption{visibility:hidden!important}.image-tool .cdx-button{display:none;align-items:center;justify-content:center}.image-tool .cdx-button svg{height:auto;margin:0 6px 0 0}.image-tool--filled .cdx-button,.image-tool--filled .image-tool__image-preloader{display:none}.image-tool--uploading{width:100%}.image-tool--uploading .resizable{display:none!important}.image-tool--uploading .image-tool__image{min-height:200px;display:flex;background-color:#fff}.image-tool--uploading .image-tool__image-picture,.image-tool--uploading .cdx-button{display:none}.image-tool--withBorder .image-tool__image{border:1px solid var(--border-color)}.image-tool--withBackground .image-tool__image{padding:15px;background:var(--bg-color)}.image-tool--withBackground .image-tool__image-picture{max-width:60%;margin:0 auto}.image-tool--stretched .image-tool__image-picture{width:100%}.image-tool--caption .image-tool__caption{visibility:visible}.image-tool--caption{padding-bottom:50px}@keyframes image-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ce-popover-indent-item{cursor:default!important;display:flex;align-items:center;padding:3px}.ce-popover-indent-item[version^="2.26"]{gap:10px}.ce-popover-indent-item:hover{background-color:transparent!important}.ce-popover-indent-item .ce-popover-item__icon{width:26px;height:26px;cursor:pointer;will-change:background-color,color;transition:.3s background-color,.3s color;padding-block:0px;padding-inline:0px;border-width:0px;color:var(--color-text-primary, black);background-color:#fff;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;-webkit-transition:.3s background-color,.3s color;-moz-transition:.3s background-color,.3s color;-ms-transition:.3s background-color,.3s color;-o-transition:.3s background-color,.3s color}.ce-popover-indent-item .ce-popover-item--disabled{color:var(--color-text-secondary, #707684);opacity:.3;cursor:default}.ce-popover-indent-item .ce-popover-item__icon:focus{outline:none}.ce-popover-indent-item:is([version^="2.26"],[version^="2.27"],[version^="2.28"],[version^="2.29"]):hover .ce-popover-item__icon{box-shadow:0 0 0 1px var(--color-border-icon, rgba(201, 201, 204, .48))!important;-webkit-box-shadow:0 0 0 1px var(--color-border-icon, rgba(201, 201, 204, .48))!important}.ce-popover-indent-item:is([version^="2.26"],[version^="2.27"],[version^="2.28"],[version^="2.29"]) .ce-popover-item__icon{box-shadow:0 0 0 1px var(--color-border-icon, rgba(201, 201, 204, .48))!important;-webkit-box-shadow:0 0 0 1px var(--color-border-icon, rgba(201, 201, 204, .48))!important}.ce-popover-indent-item:is([version^="2.26"],[version^="2.27"],[version^="2.28"],[version^="2.29"]) .ce-popover-item__icon:hover{background-color:var(--color-background-item-hover, #eff2f5)}.ce-highlight-indent{display:inline-block;height:1.6em;top:50%;position:absolute;transform:translateY(-50%);-webkit-transform:translate(0px,-50%);-moz-transform:translate(0px,-50%);-ms-transform:translate(0px,-50%);-o-transform:translate(0px,-50%)}.ce-popover-indent-item[version^="2.3"] .ce-popover-item__title{margin-left:4px}.inline-code{background:#faeff0c7;color:#b44437;padding:3px 4px;border-radius:5px;margin:0 1px;font-family:inherit;font-size:.86em;font-weight:500;letter-spacing:.3px}.cdx-list{margin:0;padding:0;outline:none;display:grid;counter-reset:item;gap:var(--spacing-s);padding:var(--spacing-xs);--spacing-s: 8px;--spacing-xs: 6px;--list-counter-type: numeric;--radius-border: 5px;--checkbox-background: #fff;--color-border: #C9C9C9;--color-bg-checked: #369FFF;--line-height: 1.45em;--color-bg-checked-hover: #0059AB;--color-tick: #fff;--size-checkbox: 1.2em}.cdx-list ol{padding-inline-start:0}.cdx-list__item{line-height:var(--line-height);display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;grid-template-areas:"checkbox content" ". child"}.cdx-list__item-children{display:grid;grid-area:child;gap:var(--spacing-s);padding-top:var(--spacing-s)}.cdx-list__item [contenteditable]{outline:none}.cdx-list__item-content{word-break:break-word;white-space:pre-wrap;grid-area:content;padding-left:var(--spacing-s)}.cdx-list__item:before{counter-increment:item;white-space:nowrap}.cdx-list-ordered .cdx-list__item:before{content:counters(item,".",var(--list-counter-type)) "."}.cdx-list-ordered{counter-reset:item}.cdx-list-unordered{padding-inline-start:0}.cdx-list-unordered .cdx-list__item:before{content:"•"}.cdx-list-checklist .cdx-list__item:before{content:""}.cdx-list__settings .cdx-settings-button{width:50%}.cdx-list__checkbox{padding-top:calc((var(--line-height) - var(--size-checkbox)) / 2);grid-area:checkbox;width:var(--size-checkbox);height:var(--size-checkbox);display:flex;cursor:pointer}.cdx-list__checkbox svg{opacity:0;height:var(--size-checkbox);width:var(--size-checkbox);left:-1px;top:-1px;position:absolute}@media (hover: hover){.cdx-list__checkbox:not(.cdx-list__checkbox--no-hover):hover .cdx-list__checkbox-check svg{opacity:1}}.cdx-list__checkbox--checked{line-height:var(--line-height)}@media (hover: hover){.cdx-list__checkbox--checked:not(.cdx-list__checkbox--checked--no-hover):hover .cdx-checklist__checkbox-check{background:var(--color-bg-checked-hover);border-color:var(--color-bg-checked-hover)}}.cdx-list__checkbox--checked .cdx-list__checkbox-check{background:var(--color-bg-checked);border-color:var(--color-bg-checked)}.cdx-list__checkbox--checked .cdx-list__checkbox-check svg{opacity:1}.cdx-list__checkbox--checked .cdx-list__checkbox-check svg path{stroke:var(--color-tick)}.cdx-list__checkbox--checked .cdx-list__checkbox-check:before{opacity:0;visibility:visible;transform:scale(2.5)}.cdx-list__checkbox-check{cursor:pointer;display:inline-block;position:relative;margin:0 auto;width:var(--size-checkbox);height:var(--size-checkbox);box-sizing:border-box;border-radius:var(--radius-border);border:1px solid var(--color-border);background:var(--checkbox-background)}.cdx-list__checkbox-check:before{content:"";position:absolute;inset:0;border-radius:100%;background-color:var(--color-bg-checked);visibility:hidden;pointer-events:none;transform:scale(1);transition:transform .4s ease-out,opacity .4s}.cdx-list__checkbox-check--disabled{pointer-events:none}.cdx-list-start-with-field{display:flex;flex-direction:row;overflow:hidden;align-items:center}.cdx-list-start-with-field--invalid{background:#ffeced;border:1px solid #E13F3F}.cdx-list-start-with-field:hover{background-color:#f8f8f8}.cdx-list-start-with-field--invalid .cdx-list-start-with-field__input{color:#e13f3f}.cdx-list-start-with-field__startlabel{width:70px;font-size:14px}.cdx-list-start-with-field__input-wrapper{flex:1;overflow:hidden}.cdx-list-start-with-field__input{font-size:14px;outline:none;font-weight:500;font-family:inherit;border:0;background:transparent;margin:0;line-height:22px;flex:1;border:1px solid rgba(226,226,229,1);border-radius:6px;padding:0 10px;width:50px;text-align:center}.cdx-list-start-with-field__input::placeholder{color:var(--grayText);font-weight:500}.cdx-marker{background:#f5eb6f4a;padding:3px 0}.ce-paragraph{line-height:2!important;outline:none}.ce-block:only-of-type .ce-paragraph[data-placeholder-active]:empty:before,.ce-block:only-of-type .ce-paragraph[data-placeholder-active][data-empty=true]:before{content:attr(data-placeholder-active)}.ce-paragraph p:first-of-type{margin-top:0}.ce-paragraph p:last-of-type{margin-bottom:0}.cdx-quote{overflow:hidden;overflow-wrap:break-word;margin:0;box-sizing:border-box;word-wrap:break-word;word-break:break-all}.cdx-quote blockquote{margin:0}.cdx-block-quote{border:solid #acacac;border-width:0 0 0 3px;box-shadow:none;color:#666;line-height:1.6em;padding:1px 0 0 12px;text-align:left}.tc-wrap{--color-background: #f9f9fb;--color-text-secondary: #7b7e89;--color-border: #e8e8eb;--cell-size: 34px;--toolbox-icon-size: 18px;--toolbox-padding: 6px;--toolbox-aiming-field-size: calc(var(--toolbox-icon-size) + var(--toolbox-padding)*2);--col-width: 100px 100px 100px;position:relative;height:100%;margin-top:var(--toolbox-icon-size);box-sizing:border-box;display:inline-grid;z-index:0}.tc-wrap svg{vertical-align:top}@media print{.tc-wrap{border-left-color:var(--color-border);border-left-style:solid;border-left-width:1px}}@media print{.tc-wrap .tc-row:after{display:none}}.tc-table{position:relative;width:100%;height:100%;display:grid;font-size:14px;border-top:1px solid var(--color-border);border-left:1px solid var(--color-border);line-height:1.4;overflow-x:auto}.tc-table:after{width:calc(var(--cell-size));height:100%;left:calc(var(--cell-size)*-1);top:0}.tc-table:after,.tc-table:before{position:absolute;content:""}.tc-table:before{width:100%;height:var(--toolbox-aiming-field-size);top:calc(var(--toolbox-aiming-field-size)*-1);left:0}.tc-table--heading .tc-row:first-child{font-weight:600;border-bottom:2px solid var(--color-border);position:sticky;top:0;z-index:2;background:var(--color-background)}.tc-table--heading .tc-row:first-child [contenteditable]:empty:before{content:attr(heading);color:var(--color-text-secondary)}.tc-table--heading .tc-row:first-child:after{bottom:-2px;border-bottom:2px solid var(--color-border)}.tc-add-column,.tc-add-row{display:flex;color:var(--color-text-secondary)}@media print{.tc-add{display:none}}.tc-add-column{display:grid;border-top:1px solid var(--color-border);grid-auto-rows:var(--cell-size);place-items:center}.tc-add-column svg{padding:5px;position:sticky;top:0;background-color:var(--color-background)}.tc-add-column--disabled{visibility:hidden}@media print{.tc-add-column{display:none}}.tc-add-row{height:var(--cell-size);align-items:center;padding-left:4px;position:relative}.tc-add-row--disabled{display:none}.tc-add-row:before{content:"";position:absolute;right:calc(var(--cell-size)*-1);width:var(--cell-size);height:100%}@media print{.tc-add-row{display:none}}.tc-add-column,.tc-add-row{transition:0s;cursor:pointer;will-change:background-color}.tc-add-column:hover,.tc-add-row:hover{transition:background-color .1s ease;background-color:var(--color-background)}.tc-add-row{margin-top:1px}.tc-add-row:hover:before{transition:.1s;background-color:var(--color-background)}.tc-row{display:grid;grid-template-columns:var(--col-width);position:relative;border-bottom:1px solid var(--color-border)}.tc-row--selected{background:var(--color-background)}.tc-row--selected:after{background:var(--color-background)}.tc-cell{border-right:1px solid var(--color-border);padding:6px 12px;overflow:hidden;outline:none;line-break:normal}.tc-cell--selected{background:var(--color-background)}.tc-wrap--readonly .tc-row:after{display:none}.tc-toolbox{--toolbox-padding: 6px;--popover-margin: 30px;--toggler-click-zone-size: 30px;--toggler-dots-color: #7b7e89;--toggler-dots-color-hovered: #1d202b;position:absolute;cursor:pointer;z-index:1;opacity:0;transition:opacity .1s;will-change:left,opacity}.tc-toolbox--column{top:calc(var(--toggler-click-zone-size)*-1);transform:translate(calc(var(--toggler-click-zone-size)*-1/2));will-change:left,opacity}.tc-toolbox--row{left:calc(var(--popover-margin)*-1);transform:translateY(calc(var(--toggler-click-zone-size)*-1/2));margin-top:-1px;will-change:top,opacity}.tc-toolbox--showed{opacity:1}.tc-toolbox .tc-popover{position:absolute;top:0;left:var(--popover-margin)}.tc-toolbox__toggler{display:flex;align-items:center;justify-content:center;width:var(--toggler-click-zone-size);height:var(--toggler-click-zone-size);color:var(--toggler-dots-color);opacity:0;transition:opacity .15s ease;will-change:opacity}.tc-toolbox__toggler:hover{color:var(--toggler-dots-color-hovered)}.tc-toolbox__toggler svg{fill:currentColor}.tc-wrap:hover .tc-toolbox__toggler{opacity:1}.tc-settings .cdx-settings-button{width:50%;margin:0}.tc-popover{--color-border: #eaeaea;--color-background: #fff;--color-background-hover: rgba(232, 232, 235, .49);--color-background-confirm: #e24a4a;--color-background-confirm-hover: #d54040;--color-text-confirm: #fff;background:var(--color-background);border:1px solid var(--color-border);box-shadow:0 3px 15px -3px #0d142121;border-radius:6px;padding:6px;display:none;will-change:opacity,transform}.tc-popover--opened{display:flex;animation:menuShowing .1s cubic-bezier(.215,.61,.355,1) forwards}.tc-popover__item{display:flex;align-items:center;padding:2px 14px 2px 2px;border-radius:5px;cursor:pointer;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tc-popover__item:hover{background:var(--color-background-hover)}.tc-popover__item:not(:last-of-type){margin-bottom:2px}.tc-popover__item-icon{display:inline-flex;width:26px;height:26px;align-items:center;justify-content:center;background:var(--color-background);border-radius:5px;border:1px solid var(--color-border);margin-right:8px}.tc-popover__item-label{line-height:22px;font-size:14px;font-weight:500}.tc-popover__item--confirm{background:var(--color-background-confirm);color:var(--color-text-confirm)}.tc-popover__item--confirm:hover{background-color:var(--color-background-confirm-hover)}.tc-popover__item--confirm .tc-popover__item-icon{background:var(--color-background-confirm);border-color:#0000001a}.tc-popover__item--confirm .tc-popover__item-icon svg{transition:transform .2s ease-in;transform:rotate(90deg) scale(1.2)}.tc-popover__item--hidden{display:none}@keyframes menuShowing{0%{opacity:0;transform:translateY(-8px) scale(.9)}70%{opacity:1;transform:translateY(2px)}to{transform:translateY(0)}}.cell-resizable{cursor:col-resize}.cdx-underline{text-decoration:underline}.ce-popover--inline .ce-popover--nested .ce-popover__container{width:min-content!important;min-width:unset!important}.ce-popover--inline .ce-popover--nested .ce-popover__items{width:max-content}.editorjs__color-selector-container{display:grid;gap:10px;padding:4px}.editorjs__color-selector__container-item{width:30px;height:30px;display:block;cursor:pointer;border-radius:100%;transition:transform .2s ease}.editorjs__color-selector__container-item:hover{transform:scale(1.1)}.ebl-er-doc{font-family:var(--font-family);font-size:16px;font-weight:400;box-sizing:border-box}.ebl-er-header{height:var(--ebl-er-header-height);box-sizing:border-box;position:sticky;top:0;z-index:10}.ebl-er-footer{height:var(--ebl-er-footer-height);box-sizing:border-box}.ebl-er-container{display:flex;flex-direction:row;min-height:calc(100vh - var(--ebl-er-header-height))}.ebl-er-doc-menu{width:var(--ebl-er-doc-menu-width);box-sizing:border-box;flex-shrink:0}.ebl-er-doc-menu-content{box-sizing:border-box;height:calc(100vh - var(--ebl-er-header-height));overflow:auto;position:sticky;top:var(--ebl-er-header-height)}.ebl-er-doc-content{box-sizing:border-box;display:flex;flex-direction:row;flex-grow:1}.ebl-er-doc-content-container{box-sizing:border-box;flex:1;padding:0 50px 50px;width:100%;overflow-x:hidden;white-space:normal;word-wrap:break-word}.ebl-er-doc-content-inner-wrap{margin:0 auto}.ebl-er-doc-content-inner .ce-block{width:100%}.ebl-er-doc-outline{width:280px;box-sizing:border-box;height:calc(100vh - var(--ebl-er-header-height));position:sticky;top:var(--ebl-er-header-height);overflow:auto;padding:12px}.ebl-er-doc-pre-next{display:flex;justify-content:space-between;align-items:center;padding:33px 0}@media (max-width:960px){.ebl-er-doc-outline{display:none}}.ebl-er-doc ::-webkit-scrollbar{width:6px;height:6px}.ebl-er-doc ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:1px}.ebl-er-doc ::-webkit-scrollbar-thumb{background:silver;border-radius:10px;border:1px solid #fff}.ebl-er-doc ::-webkit-scrollbar-thumb:hover{background:#555}.ce-editorjs-x-shiki__code[data-v-f867b955]{overflow:auto}.ce-editorjs-x-shiki__selector[data-v-f867b955]{padding:0 8px;align-items:center}.ce-editorjs-x-shiki__copy_tip[data-v-f867b955]{visibility:visible;opacity:.9;width:40px;padding:5px;margin-left:-15px}.tc-wrap--readonly[data-v-0627102b]{margin-bottom:var(--toolbox-icon-size)}.image-tool__image[data-v-ff96876e]{margin-top:15px}.ebl-er-doc-outline-item{padding:7px 24px;cursor:pointer;white-space:normal;word-wrap:break-word}.ebl-er-doc-outline-item:hover{background-color:#f6f6f6}.ebl-er-doc-outline-item.selected{background-color:#ebebeb}.ebl-outline .level_1{padding-left:24px}.ebl-outline .level_2{padding-left:42px}.ebl-outline .level_3{padding-left:60px}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
import { defineComponent as b, computed as C, resolveComponent as P, createElementBlock as s, openBlock as o, normalizeStyle as M, createCommentVNode as _, createElementVNode as n, renderSlot as x, Fragment as y, renderList as g, normalizeClass as H, createBlock as U, resolveDynamicComponent as Z, createVNode as J, useModel as m, isRef as Q, shallowRef as W, ref as T, watchEffect as X, unref as V, toDisplayString as F, createStaticVNode as ee, watch as te, onMounted as le, nextTick as ae, onUnmounted as oe } from "vue";
|
|
3
3
|
import { codeToHtml as se } from "shiki";
|
|
4
4
|
const D = Symbol("INSTALLED_KEY"), ne = (a, e) => (a.install = (t) => {
|
|
5
5
|
for (const l of [a, ...Object.values({})]) t.component(l.name, l);
|
|
6
|
-
}, a), ie = { key: 0, class: "ebl-er-header" }, ce = { class: "ebl-er-container" }, re = { key: 0, class: "ebl-er-doc-menu" }, de = { class: "ebl-er-doc-menu-content" }, ue = { class: "ebl-er-doc-content" }, pe = { class: "ebl-er-doc-content-container" }, he = { class: "ebl-er-doc-content-inner" }, ve = ["data-id", "data-type"],
|
|
6
|
+
}, a), ie = { key: 0, class: "ebl-er-header" }, ce = { class: "ebl-er-container" }, re = { key: 0, class: "ebl-er-doc-menu" }, de = { class: "ebl-er-doc-menu-content" }, ue = { class: "ebl-er-doc-content" }, pe = { class: "ebl-er-doc-content-container" }, he = { class: "ebl-er-doc-content-inner-wrap" }, ve = { class: "ebl-er-doc-title" }, be = { class: "ebl-er-doc-content-inner" }, me = ["data-id", "data-type"], ke = { class: "ebl-er-doc-pre-next" }, fe = { class: "ebl-er-doc-outline" }, _e = { key: 1, class: "ebl-er-footer" }, ye = b({ name: "EblEditorRender", inheritAttrs: !1, __name: "EditorRender", props: { data: { default: () => ({ blocks: [] }) }, showHeader: { type: Boolean, default: !0 }, showFooter: { type: Boolean, default: !0 }, showDocMenu: { type: Boolean, default: !0 }, headerHeight: { default: 84 }, docMenuWidth: { default: 280 }, footerHeight: { default: "auto" } }, setup(a) {
|
|
7
7
|
const e = a, t = C(() => ({ "--ebl-er-header-height": `${e.headerHeight}px`, "--ebl-er-doc-menu-width": `${e.docMenuWidth}px`, "--ebl-er-footer-height": `${e.footerHeight}px` }));
|
|
8
8
|
return (l, r) => {
|
|
9
9
|
const c = P("ebloutline");
|
|
10
|
-
return o(), s("div", { class: "ebl-er-doc", style: M(t.value) }, [l.showHeader ? (o(), s("div", ie, [x(l.$slots, "header")])) : _("", !0),
|
|
10
|
+
return o(), s("div", { class: "ebl-er-doc", style: M(t.value) }, [l.showHeader ? (o(), s("div", ie, [x(l.$slots, "header")])) : _("", !0), n("div", ce, [l.showDocMenu ? (o(), s("div", re, [n("div", de, [x(l.$slots, "docMenu")])])) : _("", !0), n("div", ue, [n("div", pe, [n("div", he, [n("div", ve, [x(l.$slots, "docTitle")]), n("article", be, [(o(!0), s(y, null, g(l.data.blocks, (h) => (o(), s("section", { class: "ce-block", "data-id": h.id, "data-type": h.type }, [n("div", { class: H(`ce-tune-alignment--${h.tunes.blockAlignment.alignment}`) }, [n("div", { style: M(`padding-left: ${48 * h.tunes.indent.indentLevel}px;`) }, [(o(), U(Z("ebl" + h.type), { block: h }, null, 8, ["block"]))], 4)], 2)], 8, me))), 256)), !l.data || !l.data.blocks || l.data.blocks.length <= 0 ? x(l.$slots, "noDoc", { key: 0 }) : _("", !0)]), n("div", ke, [n("div", null, [x(l.$slots, "previous")]), n("div", null, [x(l.$slots, "next")])])])]), n("aside", fe, [J(c, { blocks: l.data.blocks, headerHeight: l.headerHeight }, null, 8, ["blocks", "headerHeight"])])])]), l.showFooter ? (o(), s("div", _e, [x(l.$slots, "footer")])) : _("", !0)], 4);
|
|
11
11
|
};
|
|
12
|
-
} }),
|
|
12
|
+
} }), xe = ["innerHTML"], ge = b({ name: "eblparagraph", inheritAttrs: !1, __name: "paragraph", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
|
|
13
13
|
const e = m(a, "block");
|
|
14
|
-
return (t, l) => (o(), s("div", { class: "ce-paragraph cdx-block", innerHTML: e.value.data.text }, null, 8,
|
|
15
|
-
} }),
|
|
14
|
+
return (t, l) => (o(), s("div", { class: "ce-paragraph cdx-block", innerHTML: e.value.data.text }, null, 8, xe));
|
|
15
|
+
} }), Me = ["innerHTML"], we = b({ name: "eblh1", inheritAttrs: !1, __name: "h1", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
|
|
16
16
|
const e = m(a, "block");
|
|
17
|
-
return (t, l) => (o(), s("h1", { class: "ce-header", innerHTML: e.value.data.text }, null, 8,
|
|
18
|
-
} }),
|
|
17
|
+
return (t, l) => (o(), s("h1", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, Me));
|
|
18
|
+
} }), Le = ["innerHTML"], He = b({ name: "eblh2", inheritAttrs: !1, __name: "h2", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
|
|
19
19
|
const e = m(a, "block");
|
|
20
|
-
return (t, l) => (o(), s("h2", { class: "ce-header", innerHTML: e.value.data.text }, null, 8,
|
|
21
|
-
} }),
|
|
20
|
+
return (t, l) => (o(), s("h2", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, Le));
|
|
21
|
+
} }), Te = ["innerHTML"], Ce = b({ name: "eblh3", inheritAttrs: !1, __name: "h3", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
|
|
22
22
|
const e = m(a, "block");
|
|
23
|
-
return (t, l) => (o(), s("h3", { class: "ce-header", innerHTML: e.value.data.text }, null, 8,
|
|
24
|
-
} }),
|
|
23
|
+
return (t, l) => (o(), s("h3", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, Te));
|
|
24
|
+
} }), Ee = ["innerHTML"], Se = b({ name: "eblh4", inheritAttrs: !1, __name: "h4", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
|
|
25
25
|
const e = m(a, "block");
|
|
26
|
-
return (t, l) => (o(), s("h4", { class: "ce-header", innerHTML: e.value.data.text }, null, 8,
|
|
27
|
-
} }),
|
|
26
|
+
return (t, l) => (o(), s("h4", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, Ee));
|
|
27
|
+
} }), Ae = ["innerHTML"], $e = b({ name: "eblh5", inheritAttrs: !1, __name: "h5", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
|
|
28
28
|
const e = m(a, "block");
|
|
29
|
-
return (t, l) => (o(), s("h5", { class: "ce-header", innerHTML: e.value.data.text }, null, 8,
|
|
30
|
-
} }),
|
|
29
|
+
return (t, l) => (o(), s("h5", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, Ae));
|
|
30
|
+
} }), ze = ["innerHTML"], je = b({ name: "eblh6", inheritAttrs: !1, __name: "h6", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
|
|
31
31
|
const e = m(a, "block");
|
|
32
|
-
return (t, l) => (o(), s("h6", { class: "ce-header", innerHTML: e.value.data.text }, null, 8,
|
|
33
|
-
} }),
|
|
32
|
+
return (t, l) => (o(), s("h6", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, ze));
|
|
33
|
+
} }), Be = ["innerHTML"], qe = b({ name: "eblalert", inheritAttrs: !1, __name: "alert", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
|
|
34
34
|
const e = m(a, "block");
|
|
35
|
-
return (t, l) => (o(), s("div", { class: H(`cdx-alert cdx-alert-${e.value.data.type} cdx-alert-align-${e.value.data.align}`) }, [
|
|
35
|
+
return (t, l) => (o(), s("div", { class: H(`cdx-alert cdx-alert-${e.value.data.type} cdx-alert-align-${e.value.data.align}`) }, [n("div", { class: "cdx-alert__message", innerHTML: e.value.data.message }, null, 8, Be)], 2));
|
|
36
36
|
} });
|
|
37
|
-
const
|
|
38
|
-
},
|
|
39
|
-
const e = T(null), t = m(a, "block"), l = C(() => t.value.data.resizeSize ? { height: t.value.data.resizeSize + "px" } : {}), r = function(p,
|
|
37
|
+
const Re = () => {
|
|
38
|
+
}, Ie = { class: "ce-editorjs-x-shiki__selector" }, We = { class: "ce-editorjs-x-shiki__lang" }, Ve = { key: 0, class: "ce-editorjs-x-shiki__copy_tip" }, De = { key: 0, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, Ne = { key: 1, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, Fe = ["innerHTML"], Oe = b({ name: "eblcode", inheritAttrs: !1, __name: "code", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
|
|
39
|
+
const e = T(null), t = m(a, "block"), l = C(() => t.value.data.resizeSize ? { height: t.value.data.resizeSize + "px" } : {}), r = function(p, i, u) {
|
|
40
40
|
let v;
|
|
41
41
|
v = Q(u) ? { evaluating: u } : {};
|
|
42
|
-
const { lazy: E = !1, flush: S = "pre", evaluating: f, shallow: $ = !0, onError: z =
|
|
42
|
+
const { lazy: E = !1, flush: S = "pre", evaluating: f, shallow: $ = !0, onError: z = Re } = v, L = W(!E), j = $ ? W(i) : T(i);
|
|
43
43
|
let A = 0;
|
|
44
44
|
return X(async (G) => {
|
|
45
45
|
if (!L.value) return;
|
|
46
46
|
A++;
|
|
47
|
-
const
|
|
48
|
-
let
|
|
47
|
+
const R = A;
|
|
48
|
+
let I = !1;
|
|
49
49
|
f && Promise.resolve().then(() => {
|
|
50
50
|
f.value = !0;
|
|
51
51
|
});
|
|
52
52
|
try {
|
|
53
|
-
const
|
|
53
|
+
const B = await p((K) => {
|
|
54
54
|
G(() => {
|
|
55
|
-
f && (f.value = !1),
|
|
55
|
+
f && (f.value = !1), I || K();
|
|
56
56
|
});
|
|
57
57
|
});
|
|
58
|
-
|
|
59
|
-
} catch (
|
|
60
|
-
z(
|
|
58
|
+
R === A && (j.value = B);
|
|
59
|
+
} catch (B) {
|
|
60
|
+
z(B);
|
|
61
61
|
} finally {
|
|
62
|
-
f &&
|
|
62
|
+
f && R === A && (f.value = !1), I = !0;
|
|
63
63
|
}
|
|
64
64
|
}, { flush: S }), E ? C(() => (L.value = !0, j.value)) : j;
|
|
65
65
|
}(async () => {
|
|
@@ -73,12 +73,12 @@ const qe = () => {
|
|
|
73
73
|
} }] }), preStyle: p };
|
|
74
74
|
});
|
|
75
75
|
function c(p) {
|
|
76
|
-
e.value && function(
|
|
77
|
-
let v = u.clientY, E = parseInt(window.getComputedStyle(
|
|
76
|
+
e.value && function(i, u) {
|
|
77
|
+
let v = u.clientY, E = parseInt(window.getComputedStyle(i).height, 10);
|
|
78
78
|
const S = ($) => {
|
|
79
79
|
const z = $.clientY - v;
|
|
80
80
|
let L = E + z;
|
|
81
|
-
L < 100 && (L = 100),
|
|
81
|
+
L < 100 && (L = 100), i.style.height = L + "px";
|
|
82
82
|
}, f = () => {
|
|
83
83
|
document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", f);
|
|
84
84
|
};
|
|
@@ -91,19 +91,19 @@ const qe = () => {
|
|
|
91
91
|
if (navigator.clipboard && window.isSecureContext) try {
|
|
92
92
|
navigator.clipboard.writeText(p).then(() => {
|
|
93
93
|
k(!0);
|
|
94
|
-
}).catch((
|
|
94
|
+
}).catch((i) => {
|
|
95
95
|
k(!1);
|
|
96
96
|
});
|
|
97
|
-
} catch (
|
|
97
|
+
} catch (i) {
|
|
98
98
|
k(!1);
|
|
99
99
|
}
|
|
100
100
|
else {
|
|
101
|
-
const
|
|
102
|
-
|
|
101
|
+
const i = document.createElement("textarea");
|
|
102
|
+
i.value = p, i.style.top = "0", i.style.left = "0", i.style.position = "fixed", i.style.opacity = "0", i.style.pointerEvents = "none", i.style.zIndex = "-1000", document.body.appendChild(i), i.focus(), i.select();
|
|
103
103
|
try {
|
|
104
|
-
document.execCommand("copy"), document.body.removeChild(
|
|
104
|
+
document.execCommand("copy"), document.body.removeChild(i), k(!0);
|
|
105
105
|
} catch (u) {
|
|
106
|
-
k(!1), document.body.removeChild(
|
|
106
|
+
k(!1), document.body.removeChild(i);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|
|
@@ -114,31 +114,31 @@ const qe = () => {
|
|
|
114
114
|
d.value = !1;
|
|
115
115
|
}, 2e3);
|
|
116
116
|
}
|
|
117
|
-
return (p,
|
|
117
|
+
return (p, i) => {
|
|
118
118
|
var u, v;
|
|
119
|
-
return o(), s("div", { class: H("cdx-block ce-editorjs-x-shiki"), style: M(`${(u = V(r)) == null ? void 0 : u.preStyle}`) }, [
|
|
119
|
+
return o(), s("div", { class: H("cdx-block ce-editorjs-x-shiki"), style: M(`${(u = V(r)) == null ? void 0 : u.preStyle}`) }, [n("div", Ie, [n("div", We, F(t.value.data.lang), 1), n("div", { class: "ce-editorjs-x-shiki__copy", ref: "copyRef", onClick: h }, [i[2] || (i[2] = ee('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" data-v-f867b955><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.25 8.5H10.25C9.2835 8.5 8.5 9.2835 8.5 10.25V17.25C8.5 18.2165 9.2835 19 10.25 19H17.25C18.2165 19 19 18.2165 19 17.25V10.25C19 9.2835 18.2165 8.5 17.25 8.5Z" data-v-f867b955></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.5 8.5V6.75C15.5 6.28587 15.3156 5.84075 14.9874 5.51256C14.6592 5.18437 14.2141 5 13.75 5H6.75C6.28587 5 5.84075 5.18437 5.51256 5.51256C5.18437 5.84075 5 6.28587 5 6.75V13.75C5 14.2141 5.18437 14.6592 5.51256 14.9874C5.84075 15.3156 6.28587 15.5 6.75 15.5H8.5" data-v-f867b955></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 12L15.5 12" data-v-f867b955></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15.5L15.5 15.5" data-v-f867b955></path></svg>', 1)), d.value ? (o(), s("div", Ve, [w.value ? (o(), s("svg", De, [...i[0] || (i[0] = [n("path", { d: "M7 12L10.4884 15.8372C10.5677 15.9245 10.705 15.9245 10.7844 15.8372L17 9", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" }, null, -1)])])) : (o(), s("svg", Ne, [...i[1] || (i[1] = [n("path", { d: "M8 8L12 12M12 12L16 16M12 12L16 8M12 12L8 16", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" }, null, -1)])]))])) : _("", !0)], 512)]), n("div", { ref_key: "codeRef", ref: e, class: "ce-editorjs-x-shiki__code", style: M(l.value) }, [n("span", { innerHTML: (v = V(r)) == null ? void 0 : v.html }, null, 8, Fe)], 4), n("div", { class: "ce-editorjs-x-shiki__code__dragHandler", onMousedown: c }, null, 32)], 4);
|
|
120
120
|
};
|
|
121
|
-
} }),
|
|
121
|
+
} }), q = (a, e) => {
|
|
122
122
|
const t = a.__vccOpts || a;
|
|
123
123
|
for (const [l, r] of e) t[l] = r;
|
|
124
124
|
return t;
|
|
125
|
-
},
|
|
125
|
+
}, Ye = q(Oe, [["__scopeId", "data-v-f867b955"]]), Ge = { class: "ce-delimiter cdx-block" }, Ke = b({ name: "ebldelimiter", inheritAttrs: !1, __name: "delimiter", setup: (a) => (e, t) => (o(), s("div", Ge, [...t[0] || (t[0] = [n("div", { class: "ce-delimiter__line__wrapper" }, [n("div", { class: "ce-delimiter__line" })], -1)])])) }), Pe = { key: 0, class: "cdx-list cdx-list-unordered" }, Ue = ["innerHTML"], Ze = ["innerHTML"], Je = { key: 2, class: "cdx-list cdx-list-checklist" }, Qe = ["innerHTML"], Xe = b({ name: "eblList", inheritAttrs: !1, __name: "List", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
|
|
126
126
|
const e = m(a, "block");
|
|
127
|
-
return (t, l) => (o(), s(y, null, [e.value.data.style === "unordered" ? (o(), s("ul",
|
|
128
|
-
} }),
|
|
127
|
+
return (t, l) => (o(), s(y, null, [e.value.data.style === "unordered" ? (o(), s("ul", Pe, [(o(!0), s(y, null, g(e.value.data.items, (r, c) => (o(), s("li", { class: "cdx-list__item", key: c }, [n("div", { class: "cdx-list__item-content", innerHTML: r.content }, null, 8, Ue)]))), 128))])) : _("", !0), e.value.data.style === "ordered" ? (o(), s("ol", { key: 1, class: "cdx-list cdx-list-ordered", style: M(`--list-counter-type: ${e.value.data.meta.counterType};`) }, [(o(!0), s(y, null, g(e.value.data.items, (r, c) => (o(), s("li", { class: "cdx-list__item", key: c }, [n("div", { class: "cdx-list__item-content", innerHTML: r.content }, null, 8, Ze)]))), 128))], 4)) : _("", !0), e.value.data.style === "checklist" ? (o(), s("ul", Je, [(o(!0), s(y, null, g(e.value.data.items, (r, c) => (o(), s("li", { class: "cdx-list__item", key: c }, [n("div", { class: H(["cdx-list__checkbox cdx-list__checkbox-check--disabled", { "cdx-list__checkbox--checked": r.meta.checked }]) }, [...l[0] || (l[0] = [n("span", { class: "cdx-list__checkbox-check" }, [n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24" }, [n("path", { stroke: "currentColor", "stroke-linecap": "round", "stroke-width": "2", d: "M7 12L10.4884 15.8372C10.5677 15.9245 10.705 15.9245 10.7844 15.8372L17 9" })])], -1)])], 2), n("div", { class: "cdx-list__item-content", innerHTML: r.content }, null, 8, Qe)]))), 128))])) : _("", !0)], 64));
|
|
128
|
+
} }), et = { class: "cdx-block cdx-quote" }, tt = ["innerHTML"], lt = b({ name: "eblquote", inheritAttrs: !1, __name: "quote", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
|
|
129
129
|
const e = m(a, "block");
|
|
130
|
-
return (t, l) => (o(), s("div",
|
|
131
|
-
} }),
|
|
130
|
+
return (t, l) => (o(), s("div", et, [n("blockquote", { class: "cdx-input cdx-quote__text cdx-block-quote", innerHTML: e.value.data.text }, null, 8, tt)]));
|
|
131
|
+
} }), at = { class: "tc-row" }, ot = ["innerHTML"], st = q(b({ name: "ebltable", inheritAttrs: !1, __name: "table", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
|
|
132
132
|
const e = m(a, "block"), t = C(() => {
|
|
133
133
|
let l = "";
|
|
134
134
|
if (e.value.data.colWidth && e.value.data.colWidth.length > 0) for (let r = 0; r < e.value.data.colWidth.length; r++) l += " " + e.value.data.colWidth[r] + "px";
|
|
135
135
|
return l ? { "--col-width": l } : {};
|
|
136
136
|
});
|
|
137
|
-
return (l, r) => (o(), s("div", { class: "tc-wrap tc-wrap--readonly", style: M(t.value) }, [
|
|
138
|
-
} }), [["__scopeId", "data-v-0627102b"]]),
|
|
137
|
+
return (l, r) => (o(), s("div", { class: "tc-wrap tc-wrap--readonly", style: M(t.value) }, [n("div", { class: H(["tc-table", { "tc-table--heading": e.value.data.withHeadings }]) }, [(o(!0), s(y, null, g(e.value.data.content, (c) => (o(), s("div", at, [(o(!0), s(y, null, g(c, (h) => (o(), s("div", { class: "tc-cell", innerHTML: h }, null, 8, ot))), 256))]))), 256))], 2)], 4));
|
|
138
|
+
} }), [["__scopeId", "data-v-0627102b"]]), nt = { class: "image-tool__image" }, it = ["src"], ct = q(b({ name: "eblimage", inheritAttrs: !1, __name: "image", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
|
|
139
139
|
const e = m(a, "block"), t = C(() => e.value.tunes.imageResize.resizeSize && e.value.tunes.imageResize.resizeSize > 0 ? e.value.tunes.imageResize.resizeSize || 300 : {});
|
|
140
|
-
return (l, r) => (o(), s("div", { class: "cdx-block image-tool image-tool--filled", style: M(t.value) }, [
|
|
141
|
-
} }), [["__scopeId", "data-v-ff96876e"]]),
|
|
140
|
+
return (l, r) => (o(), s("div", { class: "cdx-block image-tool image-tool--filled", style: M(t.value) }, [n("div", nt, [n("img", { class: "image-tool__image-picture", src: e.value.data.file.url }, null, 8, it)]), r[0] || (r[0] = n("div", { class: "cdx-input image-tool__caption", contenteditable: "true", "data-placeholder": "Caption", "data-empty": "true" }, null, -1))], 4));
|
|
141
|
+
} }), [["__scopeId", "data-v-ff96876e"]]), rt = ["onClick"], dt = b({ name: "ebloutline", inheritAttrs: !1, __name: "outline", props: { blocks: { default: [] }, blocksModifiers: {} }, emits: ["update:blocks"], setup(a) {
|
|
142
142
|
const e = m(a, "blocks"), t = T([]);
|
|
143
143
|
function l(c) {
|
|
144
144
|
return c.data.text.replace(/<[^>]+>/g, "").replace(/ /g, "");
|
|
@@ -156,8 +156,8 @@ const qe = () => {
|
|
|
156
156
|
d.forEach((w) => {
|
|
157
157
|
if (w.isIntersecting) {
|
|
158
158
|
const k = w.target;
|
|
159
|
-
t.value.forEach((
|
|
160
|
-
const p = t.value.find((
|
|
159
|
+
t.value.forEach((i) => i.selected = !1);
|
|
160
|
+
const p = t.value.find((i) => i.id == k.dataset.id);
|
|
161
161
|
p && (p.selected = !0);
|
|
162
162
|
}
|
|
163
163
|
});
|
|
@@ -170,23 +170,23 @@ const qe = () => {
|
|
|
170
170
|
}), oe(() => {
|
|
171
171
|
}), (c, h) => (o(!0), s(y, null, g(t.value, (d) => (o(), s("div", { key: d.id, class: H(["ebl-er-doc-outline-item", r(d)]), onClick: (w) => function(k) {
|
|
172
172
|
t.value.forEach((v) => v.selected = !1), k.selected = !0;
|
|
173
|
-
const p = document.querySelector('.ebl-er-doc .ce-block[data-id="' + k.id + '"]'),
|
|
173
|
+
const p = document.querySelector('.ebl-er-doc .ce-block[data-id="' + k.id + '"]'), i = document.querySelector(".ebl-er-header"), u = (i == null ? void 0 : i.offsetHeight) || 0;
|
|
174
174
|
if (p) {
|
|
175
175
|
const v = p.offsetTop;
|
|
176
176
|
window.scrollTo({ top: v - u, behavior: "smooth" });
|
|
177
177
|
}
|
|
178
|
-
}(d) }, [
|
|
179
|
-
} }), N = [
|
|
178
|
+
}(d) }, [n("span", null, F(d.text), 1)], 10, rt))), 128));
|
|
179
|
+
} }), N = [ye, ge, we, He, Ce, Se, $e, je, qe, Ye, Ke, Xe, lt, st, ct, dt];
|
|
180
180
|
let O = [];
|
|
181
181
|
for (let a in N) {
|
|
182
182
|
const e = ne(N[a]);
|
|
183
183
|
O.push(e);
|
|
184
184
|
}
|
|
185
|
-
const Y = /* @__PURE__ */ ((a = []) => ({ version: "2.31.
|
|
185
|
+
const Y = /* @__PURE__ */ ((a = []) => ({ version: "2.31.36", install: (e) => {
|
|
186
186
|
e[D] || (e[D] = !0, a.forEach((t) => e.use(t)));
|
|
187
|
-
} }))(O),
|
|
187
|
+
} }))(O), ht = Y.install, vt = Y.version;
|
|
188
188
|
export {
|
|
189
189
|
Y as default,
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
ht as install,
|
|
191
|
+
vt as version
|
|
192
192
|
};
|
package/dist/styles/index.css
CHANGED
|
@@ -54,7 +54,8 @@
|
|
|
54
54
|
box-sizing:border-box;
|
|
55
55
|
display:flex;
|
|
56
56
|
flex-direction: row;
|
|
57
|
-
max-width: calc(100% - var(--ebl-er-doc-menu-width));
|
|
57
|
+
/* max-width: calc(100% - var(--ebl-er-doc-menu-width)); */
|
|
58
|
+
flex-grow: 1
|
|
58
59
|
|
|
59
60
|
}
|
|
60
61
|
.ebl-er-doc-content-container{
|
|
@@ -65,15 +66,13 @@
|
|
|
65
66
|
overflow-x: hidden;
|
|
66
67
|
white-space: normal;
|
|
67
68
|
word-wrap: break-word;
|
|
69
|
+
|
|
70
|
+
}
|
|
71
|
+
.ebl-er-doc-content-inner-wrap{
|
|
72
|
+
margin: 0 auto;
|
|
68
73
|
}
|
|
69
74
|
.ebl-er-doc-content-inner{
|
|
70
|
-
|
|
71
|
-
flex: 1;
|
|
72
|
-
padding: 50px;
|
|
73
|
-
width: 100%;
|
|
74
|
-
overflow-x: hidden;
|
|
75
|
-
white-space: normal;
|
|
76
|
-
word-wrap: break-word; */
|
|
75
|
+
|
|
77
76
|
}
|
|
78
77
|
.ebl-er-doc-content-inner .ce-block {
|
|
79
78
|
width: 100%;
|