@onereach/ui-components 4.4.0-beta.2680.0 → 4.4.0-beta.2690.0
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/bundled/v2/components/OrCarousel/OrCarousel.js +6 -3
- package/dist/bundled/v2/components/OrCarousel/OrCarousel.vue.d.ts +1 -0
- package/dist/bundled/v2/components/OrCarousel/index.js +1 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +54 -20
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +10 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +1 -1
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +2 -1
- package/dist/bundled/v2/index.js +1 -1
- package/dist/bundled/v3/{OrCarousel.vue_vue_type_script_lang-188ca513.js → OrCarousel.vue_vue_type_script_lang-5222cb8d.js} +4 -0
- package/dist/bundled/v3/{OrRichTextEditor.vue_vue_type_script_lang-6d5a6b7e.js → OrRichTextEditor.vue_vue_type_script_lang-6cfb065a.js} +18 -18
- package/dist/bundled/v3/components/OrCarousel/OrCarousel.js +3 -3
- package/dist/bundled/v3/components/OrCarousel/OrCarousel.vue.d.ts +1 -0
- package/dist/bundled/v3/components/OrCarousel/index.js +2 -2
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +27 -18
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +10 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +2 -1
- package/dist/bundled/v3/components/index.js +2 -2
- package/dist/bundled/v3/index.js +3 -3
- package/dist/esm/v2/{OrCarousel-5c2b2d10.js → OrCarousel-76dc2b7b.js} +3 -2
- package/dist/esm/v2/{OrRichTextEditor-cb50c4f6.js → OrRichTextEditor-10dc8ee2.js} +55 -21
- package/dist/esm/v2/{OrSelect-9c8f96b2.js → OrSelect-9d6b3363.js} +2 -1
- package/dist/esm/v2/components/index.js +4 -3
- package/dist/esm/v2/components/or-carousel/OrCarousel.vue.d.ts +1 -0
- package/dist/esm/v2/components/or-carousel/index.js +2 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +10 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +1 -1
- package/dist/esm/v2/components/or-select-v3/index.js +1 -1
- package/dist/esm/v2/index.js +4 -3
- package/dist/esm/v3/{OrCarousel-4fb775f8.js → OrCarousel-40f069d5.js} +2 -1
- package/dist/esm/v3/{OrRichTextEditor-c3560ddb.js → OrRichTextEditor-809824b9.js} +44 -35
- package/dist/esm/v3/{OrSelect-b1d7651a.js → OrSelect-3dbddc6b.js} +2 -1
- package/dist/esm/v3/components/index.js +4 -3
- package/dist/esm/v3/components/or-carousel/OrCarousel.vue.d.ts +1 -0
- package/dist/esm/v3/components/or-carousel/index.js +2 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +10 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +1 -1
- package/dist/esm/v3/components/or-select-v3/index.js +1 -1
- package/dist/esm/v3/index.js +4 -3
- package/package.json +2 -2
- package/src/components/or-carousel/OrCarousel.vue +2 -2
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +7 -3
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +27 -20
- package/src/components/or-rich-text-editor-v3/styles.ts +1 -0
- package/src/components/or-select-v3/OrSelect.stories3.ts +39 -1
- package/src/components/or-select-v3/OrSelect.vue +1 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { s as styleInject } from '../../style-inject.es-4c6f2515.js';
|
|
1
2
|
import { defineComponent, ref } from 'vue-demi';
|
|
2
3
|
import { EVENTS } from './constants.js';
|
|
3
4
|
import __vue_component__$1 from '../OrIcon/OrIcon.js';
|
|
4
|
-
import { s as styleInject } from '../../style-inject.es-4c6f2515.js';
|
|
5
5
|
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
6
6
|
import 'lodash';
|
|
7
7
|
import '../OrIcon/constants.js';
|
|
@@ -2653,6 +2653,9 @@ var Splide = _Splide;
|
|
|
2653
2653
|
Splide.defaults = {};
|
|
2654
2654
|
Splide.STATES = STATES;
|
|
2655
2655
|
|
|
2656
|
+
var css_248z$1 = ".splide__container{box-sizing:border-box;position:relative}.splide__list{margin:0!important;padding:0!important}.splide__list{backface-visibility:hidden;display:-ms-flexbox;display:flex;height:100%}.splide.is-initialized:not(.is-active) .splide__list{display:block}.splide__pagination{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none}.splide__pagination li{display:inline-block;line-height:1;list-style-type:none;margin:0;pointer-events:auto}.splide__progress__bar{width:0}.splide{position:relative;visibility:hidden}.splide.is-initialized,.splide.is-rendered{visibility:visible}.splide__slide{list-style-type:none!important}.splide__slide{backface-visibility:hidden;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;margin:0;position:relative}.splide__slide img{vertical-align:bottom}.splide__spinner{animation:splide-loading 1s linear infinite;border:2px solid #999;border-left-color:transparent;border-radius:50%;bottom:0;contain:strict;display:inline-block;height:20px;left:0;margin:auto;position:absolute;right:0;top:0;width:20px}.splide__sr{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.splide__toggle.is-active .splide__toggle__play,.splide__toggle__pause{display:none}.splide__toggle.is-active .splide__toggle__pause{display:inline}.splide__track{overflow:hidden;position:relative;z-index:0}@keyframes splide-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.splide__track--draggable{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.splide__track--fade>.splide__list{display:block}.splide__track--fade>.splide__list>.splide__slide{left:0;opacity:0;position:absolute;top:0;z-index:0}.splide__track--fade>.splide__list>.splide__slide.is-active{opacity:1;position:relative;z-index:1}.splide--rtl{direction:rtl}.splide__track--ttb>.splide__list{display:block}.splide__arrow{-ms-flex-align:center;align-items:center;background:#ccc;border:0;border-radius:50%;cursor:pointer;display:-ms-flexbox;display:flex;height:2em;-ms-flex-pack:center;justify-content:center;opacity:.7;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:2em;z-index:1}.splide__arrow svg{fill:#000;height:1.2em;width:1.2em}.splide__arrow:hover:not(:disabled){opacity:.9}.splide__arrow:disabled{opacity:.3}.splide__arrow.focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide__arrow:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide__arrow--prev{left:1em}.splide__arrow--prev svg{transform:scaleX(-1)}.splide__arrow--next{right:1em}.splide.is-focus-in .splide__arrow:focus{outline:3px solid #0bf;outline-offset:3px}.splide__pagination{bottom:.5em;left:0;padding:0 1em;position:absolute;right:0;z-index:1}.splide__pagination__page{background:#ccc;border:0;border-radius:50%;display:inline-block;height:8px;margin:3px;opacity:.7;padding:0;position:relative;transition:transform .2s linear;width:8px}.splide__pagination__page.is-active{background:#fff;transform:scale(1.4);z-index:1}.splide__pagination__page:hover{cursor:pointer;opacity:.9}.splide__pagination__page.focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide__pagination__page:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide.is-focus-in .splide__pagination__page:focus{outline:3px solid #0bf;outline-offset:3px}.splide__progress__bar{background:#ccc;height:3px}.splide__slide{-webkit-tap-highlight-color:transparent}.splide__slide:focus{outline:0}@supports(outline-offset:-3px){.splide__slide.focus-visible{outline:3px solid #0bf;outline-offset:-3px}.splide__slide:focus-visible{outline:3px solid #0bf;outline-offset:-3px}}@media screen and (-ms-high-contrast:none){.splide__slide.focus-visible{border:3px solid #0bf}.splide__slide:focus-visible{border:3px solid #0bf}}@supports(outline-offset:-3px){.splide.is-focus-in .splide__slide:focus{outline:3px solid #0bf;outline-offset:-3px}}@media screen and (-ms-high-contrast:none){.splide.is-focus-in .splide__slide:focus{border:3px solid #0bf}.splide.is-focus-in .splide__track>.splide__list>.splide__slide:focus{border-color:#0bf}}.splide__toggle{cursor:pointer}.splide__toggle.focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide__toggle:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide.is-focus-in .splide__toggle:focus{outline:3px solid #0bf;outline-offset:3px}.splide__track--nav>.splide__list>.splide__slide{border:3px solid transparent;cursor:pointer}.splide__track--nav>.splide__list>.splide__slide.is-active{border:3px solid #000}.splide__arrows--rtl .splide__arrow--prev{left:auto;right:1em}.splide__arrows--rtl .splide__arrow--prev svg{transform:scaleX(1)}.splide__arrows--rtl .splide__arrow--next{left:1em;right:auto}.splide__arrows--rtl .splide__arrow--next svg{transform:scaleX(-1)}.splide__arrows--ttb .splide__arrow{left:50%;transform:translate(-50%)}.splide__arrows--ttb .splide__arrow--prev{top:1em}.splide__arrows--ttb .splide__arrow--prev svg{transform:rotate(-90deg)}.splide__arrows--ttb .splide__arrow--next{bottom:1em;top:auto}.splide__arrows--ttb .splide__arrow--next svg{transform:rotate(90deg)}.splide__pagination--ttb{bottom:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;left:auto;padding:1em 0;right:.5em;top:0}";
|
|
2657
|
+
styleInject(css_248z$1);
|
|
2658
|
+
|
|
2656
2659
|
var script = defineComponent({
|
|
2657
2660
|
name: 'OrCarousel',
|
|
2658
2661
|
components: {
|
|
@@ -2814,7 +2817,7 @@ var script = defineComponent({
|
|
|
2814
2817
|
}
|
|
2815
2818
|
});
|
|
2816
2819
|
|
|
2817
|
-
var css_248z = ".or-carousel[data-v-
|
|
2820
|
+
var css_248z = ".or-carousel[data-v-79a6ba5c]{line-height:1;text-align:center}.or-carousel__track-container[data-v-79a6ba5c]{position:relative}.or-carousel .splide__arrow[data-v-79a6ba5c].focus-visible{outline:0}.or-carousel .splide__arrow[data-v-79a6ba5c]:focus-visible{outline:0}.or-carousel[data-v-79a6ba5c] .splide__pagination__page{background:#64b2da}";
|
|
2818
2821
|
styleInject(css_248z);
|
|
2819
2822
|
|
|
2820
2823
|
/* script */
|
|
@@ -2860,7 +2863,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
2860
2863
|
/* style */
|
|
2861
2864
|
const __vue_inject_styles__ = undefined;
|
|
2862
2865
|
/* scoped */
|
|
2863
|
-
const __vue_scope_id__ = "data-v-
|
|
2866
|
+
const __vue_scope_id__ = "data-v-79a6ba5c";
|
|
2864
2867
|
/* module identifier */
|
|
2865
2868
|
const __vue_module_identifier__ = undefined;
|
|
2866
2869
|
/* functional template */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Splide, ResponsiveOptions } from '@splidejs/splide';
|
|
2
|
+
import '@splidejs/splide/dist/css/splide.min.css';
|
|
2
3
|
import { PropType } from 'vue-demi';
|
|
3
4
|
import { Direction, KeyBoard, Type } from './constants';
|
|
4
5
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as OrCarousel } from './OrCarousel.js';
|
|
2
2
|
export { default as OrCarouselItem } from '../OrCarouselItem/OrCarouselItem.js';
|
|
3
|
+
import '../../style-inject.es-4c6f2515.js';
|
|
3
4
|
import 'vue-demi';
|
|
4
5
|
import './constants.js';
|
|
5
6
|
import '../OrIcon/OrIcon.js';
|
|
@@ -7,7 +8,6 @@ import 'lodash';
|
|
|
7
8
|
import '../OrIcon/constants.js';
|
|
8
9
|
import '../../utils/functions/px-to-rem.js';
|
|
9
10
|
import '../OrTooltipContent/OrTooltipContent.js';
|
|
10
|
-
import '../../style-inject.es-4c6f2515.js';
|
|
11
11
|
import '../../normalize-component-6e8e3d80.js';
|
|
12
12
|
import '../OrFloating/OrFloating.js';
|
|
13
13
|
import '../../floating-ui.dom.esm-83eba816.js';
|
|
@@ -1523,6 +1523,7 @@ var script = defineComponent({
|
|
|
1523
1523
|
const root = ref();
|
|
1524
1524
|
let editor = null;
|
|
1525
1525
|
const editorRef = ref();
|
|
1526
|
+
const textareaRef = ref();
|
|
1526
1527
|
const containerRef = ref();
|
|
1527
1528
|
const toolbarRef = ref();
|
|
1528
1529
|
const moreButtonRef = ref();
|
|
@@ -1539,6 +1540,7 @@ var script = defineComponent({
|
|
|
1539
1540
|
const text = ref('');
|
|
1540
1541
|
const link = ref('');
|
|
1541
1542
|
const countOfNotVisibleTools = ref(0);
|
|
1543
|
+
const sourceValue = ref('');
|
|
1542
1544
|
let trap = useFocusTrap(editorRef, {
|
|
1543
1545
|
immediate: true,
|
|
1544
1546
|
fallbackFocus: '.container',
|
|
@@ -1720,25 +1722,18 @@ var script = defineComponent({
|
|
|
1720
1722
|
}
|
|
1721
1723
|
return !notVisibleTools.value.includes(value);
|
|
1722
1724
|
};
|
|
1725
|
+
const handleInput = event => {
|
|
1726
|
+
const target = event.target;
|
|
1727
|
+
const value = target.value;
|
|
1728
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.setContent(deserialize(editor === null || editor === void 0 ? void 0 : editor.schema, value));
|
|
1729
|
+
};
|
|
1723
1730
|
const handleToolbarClick = (item, level) => {
|
|
1724
|
-
var _a, _b;
|
|
1731
|
+
var _a, _b, _c;
|
|
1725
1732
|
switch (item) {
|
|
1726
1733
|
case 'source':
|
|
1727
1734
|
disableMarkdown.value = !disableMarkdown.value;
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
enablePasteRules: !disableMarkdown.value
|
|
1731
|
-
});
|
|
1732
|
-
editor === null || editor === void 0 ? void 0 : editor.view.updateState(editor === null || editor === void 0 ? void 0 : editor.state.reconfigure({
|
|
1733
|
-
plugins: editor.extensionManager.plugins
|
|
1734
|
-
}));
|
|
1735
|
-
if (disableMarkdown.value) {
|
|
1736
|
-
const content = serialize(editor === null || editor === void 0 ? void 0 : editor.schema, editor === null || editor === void 0 ? void 0 : editor.getJSON());
|
|
1737
|
-
editor === null || editor === void 0 ? void 0 : editor.commands.clearContent();
|
|
1738
|
-
editor === null || editor === void 0 ? void 0 : editor.commands.insertContent(content);
|
|
1739
|
-
} else {
|
|
1740
|
-
editor === null || editor === void 0 ? void 0 : editor.commands.setContent(deserialize(editor === null || editor === void 0 ? void 0 : editor.schema, editor === null || editor === void 0 ? void 0 : editor.getText()));
|
|
1741
|
-
}
|
|
1735
|
+
(_a = textareaRef.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
1736
|
+
sourceValue.value = serialize(editor === null || editor === void 0 ? void 0 : editor.schema, editor === null || editor === void 0 ? void 0 : editor.getJSON());
|
|
1742
1737
|
break;
|
|
1743
1738
|
case 'bulletList':
|
|
1744
1739
|
case 'orderedList':
|
|
@@ -1752,8 +1747,8 @@ var script = defineComponent({
|
|
|
1752
1747
|
to,
|
|
1753
1748
|
empty
|
|
1754
1749
|
} = editor.state.selection;
|
|
1755
|
-
const isLink = (
|
|
1756
|
-
const existedText = (isLink === null || isLink === void 0 ? void 0 : isLink.length) ? ((
|
|
1750
|
+
const isLink = (_b = editor.view.state.doc.nodeAt(cursorPosition)) === null || _b === void 0 ? void 0 : _b.marks.filter(mark => mark.type.name === 'link');
|
|
1751
|
+
const existedText = (isLink === null || isLink === void 0 ? void 0 : isLink.length) ? ((_c = editor.view.state.doc.nodeAt(cursorPosition)) === null || _c === void 0 ? void 0 : _c.text) || '' : '';
|
|
1757
1752
|
text.value = empty ? existedText : editor.state.doc.textBetween(from, to, ' ');
|
|
1758
1753
|
link.value = editor.getAttributes('link').href || '';
|
|
1759
1754
|
}
|
|
@@ -1883,6 +1878,7 @@ var script = defineComponent({
|
|
|
1883
1878
|
containerRef,
|
|
1884
1879
|
toolbarButtonRef,
|
|
1885
1880
|
moreButtonRef,
|
|
1881
|
+
textareaRef,
|
|
1886
1882
|
moreRef,
|
|
1887
1883
|
menuRef,
|
|
1888
1884
|
iconsEnum,
|
|
@@ -1907,12 +1903,16 @@ var script = defineComponent({
|
|
|
1907
1903
|
isFocused,
|
|
1908
1904
|
isVisible,
|
|
1909
1905
|
countOfNotVisibleTools,
|
|
1910
|
-
notVisibleTools
|
|
1906
|
+
notVisibleTools,
|
|
1907
|
+
handleInput,
|
|
1908
|
+
proxyModelValue,
|
|
1909
|
+
disableMarkdown,
|
|
1910
|
+
sourceValue
|
|
1911
1911
|
};
|
|
1912
1912
|
}
|
|
1913
1913
|
});
|
|
1914
1914
|
|
|
1915
|
-
var css_248z = ".tiptap-editor-v3 ol{margin:0 24px;list-style:decimal}.tiptap-editor-v3 .ProseMirror p{margin:4px}.tiptap-editor-v3 .ProseMirror h1,.tiptap-editor-v3 .ProseMirror h2,.tiptap-editor-v3 .ProseMirror h3,.tiptap-editor-v3 .ProseMirror h4,.tiptap-editor-v3 .ProseMirror h5,.tiptap-editor-v3 .ProseMirror h6{margin:4px}.tiptap-editor-v3 ul{margin:0 24px;list-style:disc outside none;list-style:initial}.tiptap-editor-v3 blockquote{margin:8px 24px;padding:0 24px;border-left:4px solid
|
|
1915
|
+
var css_248z = ".tiptap-editor-v3 ol{margin:0 24px;list-style:decimal}.tiptap-editor-v3 .ProseMirror p{margin:4px}.tiptap-editor-v3 .ProseMirror h1,.tiptap-editor-v3 .ProseMirror h2,.tiptap-editor-v3 .ProseMirror h3,.tiptap-editor-v3 .ProseMirror h4,.tiptap-editor-v3 .ProseMirror h5,.tiptap-editor-v3 .ProseMirror h6{margin:4px}.tiptap-editor-v3 ul{margin:0 24px;list-style:disc outside none;list-style:initial}.tiptap-editor-v3 blockquote{margin:8px 24px;padding:0 24px;border-left:4px solid rgba(0, 95, 177, 0.16)}.tiptap-editor-v3 .is-editor-empty::before{content:attr(data-placeholder);height:0;pointer-events:none;float:left}.tiptap-editor-v3 .cm-editor{border:none;border-radius:4px}.tiptap-editor-v3 .cm-editor .cm-scroller{border-radius:4px}.tiptap-editor-v3 .cm-editor.cm-focused{outline:0}.tiptap-editor-v3 .cm-editor .cm-gutters{background-color:rgba(0, 95, 177, 0.12);border:none}.tiptap-editor-v3 .cm-editor .cm-gutters .cm-gutterElement{padding:0 10px}.tiptap-editor-v3 .cm-editor .cm-gutters .cm-gutterElement.cm-activeLineGutter{background-color:rgba(0, 95, 177, 0.16)}";
|
|
1916
1916
|
styleInject(css_248z);
|
|
1917
1917
|
|
|
1918
1918
|
/* script */
|
|
@@ -2010,7 +2010,41 @@ var __vue_render__ = function () {
|
|
|
2010
2010
|
class: ['p-sm', {
|
|
2011
2011
|
'h-[calc(100%-32px)] md:h-[calc(100%-36px)]': _vm.fullHeight
|
|
2012
2012
|
}]
|
|
2013
|
-
}, [_c('
|
|
2013
|
+
}, [_c('textarea', {
|
|
2014
|
+
directives: [{
|
|
2015
|
+
name: "show",
|
|
2016
|
+
rawName: "v-show",
|
|
2017
|
+
value: _vm.disableMarkdown,
|
|
2018
|
+
expression: "disableMarkdown"
|
|
2019
|
+
}, {
|
|
2020
|
+
name: "model",
|
|
2021
|
+
rawName: "v-model",
|
|
2022
|
+
value: _vm.sourceValue,
|
|
2023
|
+
expression: "sourceValue"
|
|
2024
|
+
}],
|
|
2025
|
+
ref: "textareaRef",
|
|
2026
|
+
staticClass: "w-full h-full resize-none border-none outline-none bg-transparent",
|
|
2027
|
+
attrs: {
|
|
2028
|
+
"activated": _vm.disableMarkdown
|
|
2029
|
+
},
|
|
2030
|
+
domProps: {
|
|
2031
|
+
"value": _vm.sourceValue
|
|
2032
|
+
},
|
|
2033
|
+
on: {
|
|
2034
|
+
"input": [function ($event) {
|
|
2035
|
+
if ($event.target.composing) {
|
|
2036
|
+
return;
|
|
2037
|
+
}
|
|
2038
|
+
_vm.sourceValue = $event.target.value;
|
|
2039
|
+
}, _vm.handleInput]
|
|
2040
|
+
}
|
|
2041
|
+
}), _vm._v(" "), _c('div', {
|
|
2042
|
+
directives: [{
|
|
2043
|
+
name: "show",
|
|
2044
|
+
rawName: "v-show",
|
|
2045
|
+
value: !_vm.disableMarkdown,
|
|
2046
|
+
expression: "!disableMarkdown"
|
|
2047
|
+
}],
|
|
2014
2048
|
ref: "editorRef",
|
|
2015
2049
|
class: _vm.editorInputStyles
|
|
2016
2050
|
}), _vm._v(" "), _vm._t("files")], 2)]), _vm._v(" "), _vm.moreButtonRef ? _c('or-menu', {
|
|
@@ -13,6 +13,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
13
13
|
[x: number]: string;
|
|
14
14
|
} | {}, true> | undefined>;
|
|
15
15
|
moreButtonRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
16
|
+
textareaRef: import("@vue/composition-api").Ref<HTMLTextAreaElement | undefined>;
|
|
16
17
|
moreRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
17
18
|
menuRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
18
19
|
[x: string]: ((...args: any[]) => any) | null;
|
|
@@ -48,6 +49,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
48
49
|
isVisible: (value: string | Array<string>) => boolean;
|
|
49
50
|
countOfNotVisibleTools: import("@vue/composition-api").Ref<number>;
|
|
50
51
|
notVisibleTools: import("@vue/composition-api").ComputedRef<string[]>;
|
|
52
|
+
handleInput: (event: InputEvent) => void;
|
|
53
|
+
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string>;
|
|
54
|
+
disableMarkdown: import("@vue/composition-api").Ref<boolean>;
|
|
55
|
+
sourceValue: import("@vue/composition-api").Ref<string>;
|
|
51
56
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
52
57
|
modelValue: {
|
|
53
58
|
type: StringConstructor;
|
|
@@ -153,6 +158,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
153
158
|
[x: number]: string;
|
|
154
159
|
} | {}, true> | undefined>;
|
|
155
160
|
moreButtonRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
161
|
+
textareaRef: import("@vue/composition-api").Ref<HTMLTextAreaElement | undefined>;
|
|
156
162
|
moreRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
157
163
|
menuRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
158
164
|
[x: string]: ((...args: any[]) => any) | null;
|
|
@@ -188,6 +194,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
188
194
|
isVisible: (value: string | Array<string>) => boolean;
|
|
189
195
|
countOfNotVisibleTools: import("@vue/composition-api").Ref<number>;
|
|
190
196
|
notVisibleTools: import("@vue/composition-api").ComputedRef<string[]>;
|
|
197
|
+
handleInput: (event: InputEvent) => void;
|
|
198
|
+
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string>;
|
|
199
|
+
disableMarkdown: import("@vue/composition-api").Ref<boolean>;
|
|
200
|
+
sourceValue: import("@vue/composition-api").Ref<string>;
|
|
191
201
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
192
202
|
modelValue: string;
|
|
193
203
|
toolbar: string[][];
|
|
@@ -31,7 +31,7 @@ const ToolbarButtonFocused = [
|
|
|
31
31
|
'text-outline'];
|
|
32
32
|
const EditorInput = [
|
|
33
33
|
// Typography
|
|
34
|
-
'typography-body-2-regular', 'text-on-background',
|
|
34
|
+
'typography-body-2-regular', 'text-on-background', 'dark:text-on-background-dark',
|
|
35
35
|
// Sizing
|
|
36
36
|
'min-h-[88px]'];
|
|
37
37
|
|