@onereach/ui-components 4.4.0-beta.2679.0 → 4.4.0-beta.2688.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 +11 -3
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +1 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +1 -1
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +2 -1
- package/dist/bundled/v2/components/index.js +1 -1
- package/dist/bundled/v2/index.js +1 -1
- package/dist/bundled/v2/{markdown-ff71fff3.js → markdown-d43767b0.js} +2 -2
- 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-21bf1074.js → OrRichTextEditor.vue_vue_type_script_lang-6d5a6b7e.js} +10 -2
- 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 +4 -4
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +2 -2
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +2 -1
- package/dist/bundled/v3/components/index.js +3 -3
- package/dist/bundled/v3/index.js +3 -3
- package/dist/bundled/v3/{markdown-ff71fff3.js → markdown-d43767b0.js} +2 -2
- package/dist/esm/v2/{OrCarousel-5c2b2d10.js → OrCarousel-76dc2b7b.js} +3 -2
- package/dist/esm/v2/{OrRichTextEditor-b6522b20.js → OrRichTextEditor-cb50c4f6.js} +12 -4
- 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/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-69cf03de.js → OrRichTextEditor-c3560ddb.js} +12 -4
- 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/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 +3 -3
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +21 -1
- package/src/components/or-rich-text-editor-v3/utils/markdown.ts +2 -2
- 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';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, onBeforeUnmount, computed, watch } from 'vue-demi';
|
|
2
2
|
import { u as useFocusTrap } from '../../useFocusTrap-48767a70.js';
|
|
3
3
|
import { useResizeObserver, onClickOutside } from '@vueuse/core';
|
|
4
|
-
import { B as Blockquote, a as Bold, b as BulletList, C as CodeBlock, H as HardBreak, I as Italic, L as ListItem, O as OrderedList, P as Paragraph, S as Strike, s as serialize, d as deserialize, U as Underline, c as Link, e as Highlight } from '../../markdown-
|
|
4
|
+
import { B as Blockquote, a as Bold, b as BulletList, C as CodeBlock, H as HardBreak, I as Italic, L as ListItem, O as OrderedList, P as Paragraph, S as Strike, s as serialize, d as deserialize, U as Underline, c as Link, e as Highlight } from '../../markdown-d43767b0.js';
|
|
5
5
|
import { EditorContainer, ToolbarContainer, Toolbar, ToolbarButtonFocused, ToolbarButton, EditorInput } from './styles.js';
|
|
6
6
|
import { Formats } from './props.js';
|
|
7
7
|
import { M as Mark, m as mergeAttributes, a as markInputRule, b as markPasteRule, N as Node, E as Extension, k as keydownHandler, D as DecorationSet, c as Decoration, d as callOrReturn, g as getExtensionField, t as textblockTypeInputRule, n as nodeInputRule, e as Editor } from '../../index-1182caa8.js';
|
|
@@ -1725,9 +1725,17 @@ var script = defineComponent({
|
|
|
1725
1725
|
switch (item) {
|
|
1726
1726
|
case 'source':
|
|
1727
1727
|
disableMarkdown.value = !disableMarkdown.value;
|
|
1728
|
+
editor === null || editor === void 0 ? void 0 : editor.setOptions({
|
|
1729
|
+
enableInputRules: !disableMarkdown.value,
|
|
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
|
+
}));
|
|
1728
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());
|
|
1729
1737
|
editor === null || editor === void 0 ? void 0 : editor.commands.clearContent();
|
|
1730
|
-
editor === null || editor === void 0 ? void 0 : editor.commands.insertContent(
|
|
1738
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.insertContent(content);
|
|
1731
1739
|
} else {
|
|
1732
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()));
|
|
1733
1741
|
}
|
|
@@ -1904,7 +1912,7 @@ var script = defineComponent({
|
|
|
1904
1912
|
}
|
|
1905
1913
|
});
|
|
1906
1914
|
|
|
1907
|
-
var css_248z = ".tiptap-editor-v3 ol{margin:0 24px;list-style:decimal}.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 #bad1ec}.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,.08);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,.07)}";
|
|
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 #bad1ec}.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,.08);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,.07)}";
|
|
1908
1916
|
styleInject(css_248z);
|
|
1909
1917
|
|
|
1910
1918
|
/* script */
|
|
@@ -2,7 +2,7 @@ export { default as OrRichTextEditorV3 } from './OrRichTextEditor.js';
|
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../useFocusTrap-48767a70.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
|
-
import '../../markdown-
|
|
5
|
+
import '../../markdown-d43767b0.js';
|
|
6
6
|
import '../../index-85c2efe8.js';
|
|
7
7
|
import 'node:punycode';
|
|
8
8
|
import '../../index-1182caa8.js';
|
|
@@ -252,7 +252,7 @@ import './OrToast/Timer.js';
|
|
|
252
252
|
import './OrToastV3/styles.js';
|
|
253
253
|
import './OrToastV3/composable/useToastEventBus.js';
|
|
254
254
|
import './OrToastV3/Timer.js';
|
|
255
|
-
import '../markdown-
|
|
255
|
+
import '../markdown-d43767b0.js';
|
|
256
256
|
import '../index-85c2efe8.js';
|
|
257
257
|
import 'node:punycode';
|
|
258
258
|
import '../index-1182caa8.js';
|
package/dist/bundled/v2/index.js
CHANGED
|
@@ -227,7 +227,7 @@ import './components/OrToastV3/composable/useToastEventBus.js';
|
|
|
227
227
|
import './components/OrToastV3/styles.js';
|
|
228
228
|
import './components/OrToastV3/Timer.js';
|
|
229
229
|
import './useFocusTrap-48767a70.js';
|
|
230
|
-
import './markdown-
|
|
230
|
+
import './markdown-d43767b0.js';
|
|
231
231
|
import './index-85c2efe8.js';
|
|
232
232
|
import 'node:punycode';
|
|
233
233
|
import './index-1182caa8.js';
|
|
@@ -17918,8 +17918,8 @@ const serializerMarks = {
|
|
|
17918
17918
|
expelEnclosingWhitespace: true
|
|
17919
17919
|
},
|
|
17920
17920
|
[Italic.name]: {
|
|
17921
|
-
open: '_',
|
|
17922
|
-
close: '_',
|
|
17921
|
+
open: ' _',
|
|
17922
|
+
close: '_ ',
|
|
17923
17923
|
mixable: true,
|
|
17924
17924
|
expelEnclosingWhitespace: true
|
|
17925
17925
|
},
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
1
2
|
import { defineComponent, ref } from 'vue-demi';
|
|
2
3
|
import { EVENTS } from './components/OrCarousel/constants.js';
|
|
3
4
|
import './components/OrIcon/OrIcon.js';
|
|
@@ -2641,6 +2642,9 @@ var Splide = _Splide;
|
|
|
2641
2642
|
Splide.defaults = {};
|
|
2642
2643
|
Splide.STATES = STATES;
|
|
2643
2644
|
|
|
2645
|
+
var css_248z = ".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}";
|
|
2646
|
+
styleInject(css_248z);
|
|
2647
|
+
|
|
2644
2648
|
var script = defineComponent({
|
|
2645
2649
|
name: 'OrCarousel',
|
|
2646
2650
|
components: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, onBeforeUnmount, computed, watch } from 'vue-demi';
|
|
2
2
|
import { u as useFocusTrap } from './useFocusTrap-48767a70.js';
|
|
3
3
|
import { useResizeObserver, onClickOutside } from '@vueuse/core';
|
|
4
|
-
import { B as Blockquote, a as Bold, b as BulletList, C as CodeBlock, H as HardBreak, I as Italic, L as ListItem, O as OrderedList, P as Paragraph, S as Strike, s as serialize, d as deserialize, U as Underline, c as Link, e as Highlight } from './markdown-
|
|
4
|
+
import { B as Blockquote, a as Bold, b as BulletList, C as CodeBlock, H as HardBreak, I as Italic, L as ListItem, O as OrderedList, P as Paragraph, S as Strike, s as serialize, d as deserialize, U as Underline, c as Link, e as Highlight } from './markdown-d43767b0.js';
|
|
5
5
|
import { EditorContainer, ToolbarContainer, Toolbar, ToolbarButtonFocused, ToolbarButton, EditorInput } from './components/OrRichTextEditorV3/styles.js';
|
|
6
6
|
import { Formats } from './components/OrRichTextEditorV3/props.js';
|
|
7
7
|
import { M as Mark, m as mergeAttributes, a as markInputRule, b as markPasteRule, N as Node, E as Extension, k as keydownHandler, D as DecorationSet, c as Decoration, d as callOrReturn, g as getExtensionField, t as textblockTypeInputRule, n as nodeInputRule, e as Editor } from './index-1182caa8.js';
|
|
@@ -1679,9 +1679,17 @@ var script = defineComponent({
|
|
|
1679
1679
|
switch (item) {
|
|
1680
1680
|
case 'source':
|
|
1681
1681
|
disableMarkdown.value = !disableMarkdown.value;
|
|
1682
|
+
editor === null || editor === void 0 ? void 0 : editor.setOptions({
|
|
1683
|
+
enableInputRules: !disableMarkdown.value,
|
|
1684
|
+
enablePasteRules: !disableMarkdown.value
|
|
1685
|
+
});
|
|
1686
|
+
editor === null || editor === void 0 ? void 0 : editor.view.updateState(editor === null || editor === void 0 ? void 0 : editor.state.reconfigure({
|
|
1687
|
+
plugins: editor.extensionManager.plugins
|
|
1688
|
+
}));
|
|
1682
1689
|
if (disableMarkdown.value) {
|
|
1690
|
+
const content = serialize(editor === null || editor === void 0 ? void 0 : editor.schema, editor === null || editor === void 0 ? void 0 : editor.getJSON());
|
|
1683
1691
|
editor === null || editor === void 0 ? void 0 : editor.commands.clearContent();
|
|
1684
|
-
editor === null || editor === void 0 ? void 0 : editor.commands.insertContent(
|
|
1692
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.insertContent(content);
|
|
1685
1693
|
} else {
|
|
1686
1694
|
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()));
|
|
1687
1695
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as script } from '../../OrCarousel.vue_vue_type_script_lang-
|
|
2
|
-
export { s as default } from '../../OrCarousel.vue_vue_type_script_lang-
|
|
1
|
+
import { s as script } from '../../OrCarousel.vue_vue_type_script_lang-5222cb8d.js';
|
|
2
|
+
export { s as default } from '../../OrCarousel.vue_vue_type_script_lang-5222cb8d.js';
|
|
3
3
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createVNode, createCommentVNode } from 'vue';
|
|
4
4
|
import { s as styleInject } from '../../style-inject.es-4c6f2515.js';
|
|
5
5
|
import 'vue-demi';
|
|
@@ -54,7 +54,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
54
54
|
})])])])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_6, [createElementVNode("div", _hoisted_7, [createElementVNode("ul", _hoisted_8, [renderSlot(_ctx.$slots, "default")])])])], 512 /* NEED_PATCH */)]);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
var css_248z = "
|
|
57
|
+
var css_248z = ".or-carousel[data-v-1a3da3b8] {\n line-height: 1;\n text-align: center;\n}\n.or-carousel__track-container[data-v-1a3da3b8] {\n position: relative;\n}\n.or-carousel .splide__arrow[data-v-1a3da3b8].focus-visible {\n outline: none;\n}\n.or-carousel .splide__arrow[data-v-1a3da3b8]:focus-visible {\n outline: none;\n}\n.or-carousel[data-v-1a3da3b8] .splide__pagination__page {\n background: #64b2da;\n}";
|
|
58
58
|
styleInject(css_248z);
|
|
59
59
|
|
|
60
60
|
script.render = render;
|
|
@@ -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
|
-
export { s as OrCarousel } from '../../OrCarousel.vue_vue_type_script_lang-
|
|
1
|
+
export { s as OrCarousel } from '../../OrCarousel.vue_vue_type_script_lang-5222cb8d.js';
|
|
2
2
|
export { s as OrCarouselItem } from '../../OrCarouselItem.vue_vue_type_script_lang-42da2f4a.js';
|
|
3
|
+
import '../../style-inject.es-4c6f2515.js';
|
|
3
4
|
import 'vue-demi';
|
|
4
5
|
import './constants.js';
|
|
5
6
|
import '../OrIcon/OrIcon.js';
|
|
@@ -10,7 +11,6 @@ import '../../utils/functions/px-to-rem.js';
|
|
|
10
11
|
import '../OrTooltipContent/OrTooltipContent.js';
|
|
11
12
|
import '../../OrTooltipContent.vue_vue_type_script_lang-969c20ed.js';
|
|
12
13
|
import 'vue';
|
|
13
|
-
import '../../style-inject.es-4c6f2515.js';
|
|
14
14
|
import '../OrFloating/OrFloating.js';
|
|
15
15
|
import '../../OrFloating.vue_vue_type_script_lang-d64ad4a7.js';
|
|
16
16
|
import '../../floating-ui.dom.esm-83eba816.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { s as script } from '../../OrRichTextEditor.vue_vue_type_script_lang-
|
|
2
|
-
export { s as default } from '../../OrRichTextEditor.vue_vue_type_script_lang-
|
|
1
|
+
import { s as script } from '../../OrRichTextEditor.vue_vue_type_script_lang-6d5a6b7e.js';
|
|
2
|
+
export { s as default } from '../../OrRichTextEditor.vue_vue_type_script_lang-6d5a6b7e.js';
|
|
3
3
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, createTextVNode, toDisplayString, createElementVNode, Fragment, renderList, createBlock, createCommentVNode, renderSlot } from 'vue';
|
|
4
4
|
import { s as styleInject } from '../../style-inject.es-4c6f2515.js';
|
|
5
5
|
import 'vue-demi';
|
|
6
6
|
import '../../useFocusTrap-48767a70.js';
|
|
7
7
|
import '@vueuse/core';
|
|
8
|
-
import '../../markdown-
|
|
8
|
+
import '../../markdown-d43767b0.js';
|
|
9
9
|
import '../../index-85c2efe8.js';
|
|
10
10
|
import 'node:punycode';
|
|
11
11
|
import '../../index-1182caa8.js';
|
|
@@ -267,7 +267,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
267
267
|
}, 8 /* PROPS */, ["is-open"])], 2 /* CLASS */);
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
var css_248z = ".tiptap-editor-v3 ol {\n margin: 0 24px;\n list-style: decimal;\n}\n.tiptap-editor-v3 ul {\n margin: 0 24px;\n list-style: disc outside none;\n list-style: initial;\n}\n.tiptap-editor-v3 blockquote {\n margin: 8px 24px;\n padding: 0 24px;\n border-left: 4px solid #bad1ec;\n}\n.tiptap-editor-v3 .is-editor-empty::before {\n content: attr(data-placeholder);\n height: 0;\n pointer-events: none;\n float: left;\n}\n.tiptap-editor-v3 .cm-editor {\n border: none;\n border-radius: 4px;\n}\n.tiptap-editor-v3 .cm-editor .cm-scroller {\n border-radius: 4px;\n}\n.tiptap-editor-v3 .cm-editor.cm-focused {\n outline: none;\n}\n.tiptap-editor-v3 .cm-editor .cm-gutters {\n background-color: rgba(0, 95, 177, 0.08);\n border: none;\n}\n.tiptap-editor-v3 .cm-editor .cm-gutters .cm-gutterElement {\n padding: 0 10px;\n}\n.tiptap-editor-v3 .cm-editor .cm-gutters .cm-gutterElement.cm-activeLineGutter {\n background-color: rgba(0, 95, 177, 0.07);\n}";
|
|
270
|
+
var css_248z = ".tiptap-editor-v3 ol {\n margin: 0 24px;\n list-style: decimal;\n}\n.tiptap-editor-v3 .ProseMirror p {\n margin: 4px;\n}\n.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 {\n margin: 4px;\n}\n.tiptap-editor-v3 ul {\n margin: 0 24px;\n list-style: disc outside none;\n list-style: initial;\n}\n.tiptap-editor-v3 blockquote {\n margin: 8px 24px;\n padding: 0 24px;\n border-left: 4px solid #bad1ec;\n}\n.tiptap-editor-v3 .is-editor-empty::before {\n content: attr(data-placeholder);\n height: 0;\n pointer-events: none;\n float: left;\n}\n.tiptap-editor-v3 .cm-editor {\n border: none;\n border-radius: 4px;\n}\n.tiptap-editor-v3 .cm-editor .cm-scroller {\n border-radius: 4px;\n}\n.tiptap-editor-v3 .cm-editor.cm-focused {\n outline: none;\n}\n.tiptap-editor-v3 .cm-editor .cm-gutters {\n background-color: rgba(0, 95, 177, 0.08);\n border: none;\n}\n.tiptap-editor-v3 .cm-editor .cm-gutters .cm-gutterElement {\n padding: 0 10px;\n}\n.tiptap-editor-v3 .cm-editor .cm-gutters .cm-gutterElement.cm-activeLineGutter {\n background-color: rgba(0, 95, 177, 0.07);\n}";
|
|
271
271
|
styleInject(css_248z);
|
|
272
272
|
|
|
273
273
|
script.render = render;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { s as OrRichTextEditorV3 } from '../../OrRichTextEditor.vue_vue_type_script_lang-
|
|
1
|
+
export { s as OrRichTextEditorV3 } from '../../OrRichTextEditor.vue_vue_type_script_lang-6d5a6b7e.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../useFocusTrap-48767a70.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
|
-
import '../../markdown-
|
|
5
|
+
import '../../markdown-d43767b0.js';
|
|
6
6
|
import '../../index-85c2efe8.js';
|
|
7
7
|
import 'node:punycode';
|
|
8
8
|
import '../../index-1182caa8.js';
|
|
@@ -143,12 +143,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
143
143
|
return openBlock(), createBlock(_component_OrTag, {
|
|
144
144
|
key: option.value,
|
|
145
145
|
variant: 'reset',
|
|
146
|
+
disabled: _ctx.disabled || _ctx.readonly,
|
|
146
147
|
onReset: $event => _ctx.deselect(option)
|
|
147
148
|
}, {
|
|
148
149
|
default: withCtx(() => [createTextVNode(toDisplayString(option.label), 1 /* TEXT */)]),
|
|
149
150
|
|
|
150
151
|
_: 2 /* DYNAMIC */
|
|
151
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onReset"]);
|
|
152
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled", "onReset"]);
|
|
152
153
|
}), 128 /* KEYED_FRAGMENT */)) : (openBlock(), createElementBlock("span", {
|
|
153
154
|
key: 1,
|
|
154
155
|
class: normalizeClass(_ctx.placeholderStyles)
|
|
@@ -17,7 +17,7 @@ export { s as OrCardCollection } from '../OrCardCollection.vue_vue_type_script_l
|
|
|
17
17
|
export { s as OrCardCollectionV3 } from '../OrCardCollection.vue_vue_type_script_lang-86a02f38.js';
|
|
18
18
|
export { DefaultCardCollectionViews, defaultViewModes, gridView, listView } from './OrCardCollectionV3/props.js';
|
|
19
19
|
export { s as OrCardV3 } from '../OrCard.vue_vue_type_script_lang-b204e541.js';
|
|
20
|
-
export { s as OrCarousel } from '../OrCarousel.vue_vue_type_script_lang-
|
|
20
|
+
export { s as OrCarousel } from '../OrCarousel.vue_vue_type_script_lang-5222cb8d.js';
|
|
21
21
|
export { s as OrCarouselItem } from '../OrCarouselItem.vue_vue_type_script_lang-42da2f4a.js';
|
|
22
22
|
export { s as OrCheckbox } from '../OrCheckbox.vue_vue_type_script_lang-ba11d80f.js';
|
|
23
23
|
export { s as OrCheckboxV3 } from '../OrCheckbox.vue_vue_type_script_lang-75c6053a.js';
|
|
@@ -155,7 +155,7 @@ export { p as PropsV3 } from '../props-7be029c7.js';
|
|
|
155
155
|
export { s as OrTooltip } from '../OrTooltip.vue_vue_type_script_lang-76a6b7f4.js';
|
|
156
156
|
export { s as OrTooltipContent } from '../OrTooltipContent.vue_vue_type_script_lang-969c20ed.js';
|
|
157
157
|
export { s as OrTooltipV3 } from '../OrTooltip.vue_vue_type_script_lang-56496d67.js';
|
|
158
|
-
export { s as OrRichTextEditorV3 } from '../OrRichTextEditor.vue_vue_type_script_lang-
|
|
158
|
+
export { s as OrRichTextEditorV3 } from '../OrRichTextEditor.vue_vue_type_script_lang-6d5a6b7e.js';
|
|
159
159
|
import 'vue-demi';
|
|
160
160
|
import 'lodash';
|
|
161
161
|
import './OrIcon/OrIcon.js';
|
|
@@ -293,7 +293,7 @@ import './OrToast/Timer.js';
|
|
|
293
293
|
import './OrToastV3/styles.js';
|
|
294
294
|
import './OrToastV3/composable/useToastEventBus.js';
|
|
295
295
|
import './OrToastV3/Timer.js';
|
|
296
|
-
import '../markdown-
|
|
296
|
+
import '../markdown-d43767b0.js';
|
|
297
297
|
import '../index-85c2efe8.js';
|
|
298
298
|
import 'node:punycode';
|
|
299
299
|
import '../index-1182caa8.js';
|
package/dist/bundled/v3/index.js
CHANGED
|
@@ -14,7 +14,7 @@ export { s as OrCardCollectionV3 } from './OrCardCollection.vue_vue_type_script_
|
|
|
14
14
|
import './components/OrCardV3/OrCard.js';
|
|
15
15
|
export { s as OrCardV3 } from './OrCard.vue_vue_type_script_lang-b204e541.js';
|
|
16
16
|
import './components/OrCarousel/OrCarousel.js';
|
|
17
|
-
export { s as OrCarousel } from './OrCarousel.vue_vue_type_script_lang-
|
|
17
|
+
export { s as OrCarousel } from './OrCarousel.vue_vue_type_script_lang-5222cb8d.js';
|
|
18
18
|
import './components/OrCarouselItem/OrCarouselItem.js';
|
|
19
19
|
export { s as OrCarouselItem } from './OrCarouselItem.vue_vue_type_script_lang-42da2f4a.js';
|
|
20
20
|
import './components/OrChips/OrChips.js';
|
|
@@ -124,7 +124,7 @@ import './components/OrToastContainerV3/OrToastContainer.js';
|
|
|
124
124
|
export { s as OrToastContainerV3 } from './OrToastContainer.vue_vue_type_script_lang-9a91e4ab.js';
|
|
125
125
|
export { default as useToastV3 } from './components/OrToastV3/composable/useToast.js';
|
|
126
126
|
import './components/OrRichTextEditorV3/OrRichTextEditor.js';
|
|
127
|
-
export { s as OrRichTextEditorV3 } from './OrRichTextEditor.vue_vue_type_script_lang-
|
|
127
|
+
export { s as OrRichTextEditorV3 } from './OrRichTextEditor.vue_vue_type_script_lang-6d5a6b7e.js';
|
|
128
128
|
export { OR_AVATAR_SIZE } from './components/OrAvatar/constants.js';
|
|
129
129
|
export { AvatarColor, AvatarSize } from './components/OrAvatarV3/props.js';
|
|
130
130
|
export { s as OrBottomSheetV3 } from './OrBottomSheet.vue_vue_type_script_lang-a81b2abb.js';
|
|
@@ -325,7 +325,7 @@ import './components/OrToastV3/styles.js';
|
|
|
325
325
|
import './components/OrTeleportV3/OrTeleport.js';
|
|
326
326
|
import './components/OrToastV3/Timer.js';
|
|
327
327
|
import './useFocusTrap-48767a70.js';
|
|
328
|
-
import './markdown-
|
|
328
|
+
import './markdown-d43767b0.js';
|
|
329
329
|
import './index-85c2efe8.js';
|
|
330
330
|
import 'node:punycode';
|
|
331
331
|
import './index-1182caa8.js';
|
|
@@ -17918,8 +17918,8 @@ const serializerMarks = {
|
|
|
17918
17918
|
expelEnclosingWhitespace: true
|
|
17919
17919
|
},
|
|
17920
17920
|
[Italic.name]: {
|
|
17921
|
-
open: '_',
|
|
17922
|
-
close: '_',
|
|
17921
|
+
open: ' _',
|
|
17922
|
+
close: '_ ',
|
|
17923
17923
|
mixable: true,
|
|
17924
17924
|
expelEnclosingWhitespace: true
|
|
17925
17925
|
},
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Splide } from '@splidejs/splide';
|
|
2
|
+
import '@splidejs/splide/dist/css/splide.min.css';
|
|
2
3
|
import { _ as __vue_component__$1 } from './OrIcon-a40e60af.js';
|
|
3
4
|
import { defineComponent, ref } from 'vue-demi';
|
|
4
5
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
@@ -185,7 +186,7 @@ var script = defineComponent({
|
|
|
185
186
|
}
|
|
186
187
|
});
|
|
187
188
|
|
|
188
|
-
var css_248z = ".or-carousel[data-v-
|
|
189
|
+
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[data-v-79a6ba5c] .splide__pagination__page{background:#64b2da}";
|
|
189
190
|
styleInject(css_248z);
|
|
190
191
|
|
|
191
192
|
/* script */
|
|
@@ -231,7 +232,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
231
232
|
/* style */
|
|
232
233
|
const __vue_inject_styles__ = undefined;
|
|
233
234
|
/* scoped */
|
|
234
|
-
const __vue_scope_id__ = "data-v-
|
|
235
|
+
const __vue_scope_id__ = "data-v-79a6ba5c";
|
|
235
236
|
/* module identifier */
|
|
236
237
|
const __vue_module_identifier__ = undefined;
|
|
237
238
|
/* functional template */
|
|
@@ -55,8 +55,8 @@ const serializerMarks = {
|
|
|
55
55
|
expelEnclosingWhitespace: true
|
|
56
56
|
},
|
|
57
57
|
[Italic.name]: {
|
|
58
|
-
open: '_',
|
|
59
|
-
close: '_',
|
|
58
|
+
open: ' _',
|
|
59
|
+
close: '_ ',
|
|
60
60
|
mixable: true,
|
|
61
61
|
expelEnclosingWhitespace: true
|
|
62
62
|
},
|
|
@@ -448,9 +448,17 @@ var script = defineComponent({
|
|
|
448
448
|
switch (item) {
|
|
449
449
|
case 'source':
|
|
450
450
|
disableMarkdown.value = !disableMarkdown.value;
|
|
451
|
+
editor === null || editor === void 0 ? void 0 : editor.setOptions({
|
|
452
|
+
enableInputRules: !disableMarkdown.value,
|
|
453
|
+
enablePasteRules: !disableMarkdown.value
|
|
454
|
+
});
|
|
455
|
+
editor === null || editor === void 0 ? void 0 : editor.view.updateState(editor === null || editor === void 0 ? void 0 : editor.state.reconfigure({
|
|
456
|
+
plugins: editor.extensionManager.plugins
|
|
457
|
+
}));
|
|
451
458
|
if (disableMarkdown.value) {
|
|
459
|
+
const content = serialize(editor === null || editor === void 0 ? void 0 : editor.schema, editor === null || editor === void 0 ? void 0 : editor.getJSON());
|
|
452
460
|
editor === null || editor === void 0 ? void 0 : editor.commands.clearContent();
|
|
453
|
-
editor === null || editor === void 0 ? void 0 : editor.commands.insertContent(
|
|
461
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.insertContent(content);
|
|
454
462
|
} else {
|
|
455
463
|
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()));
|
|
456
464
|
}
|
|
@@ -627,7 +635,7 @@ var script = defineComponent({
|
|
|
627
635
|
}
|
|
628
636
|
});
|
|
629
637
|
|
|
630
|
-
var css_248z = ".tiptap-editor-v3 ol{margin:0 24px;list-style:decimal}.tiptap-editor-v3 ul{margin:0 24px;list-style:initial}.tiptap-editor-v3 blockquote{margin:8px 24px;padding:0 24px;border-left:4px solid #bad1ec}.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,.08);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,.07)}";
|
|
638
|
+
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:initial}.tiptap-editor-v3 blockquote{margin:8px 24px;padding:0 24px;border-left:4px solid #bad1ec}.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,.08);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,.07)}";
|
|
631
639
|
styleInject(css_248z);
|
|
632
640
|
|
|
633
641
|
/* script */
|
|
@@ -10,7 +10,7 @@ export { _ as OrCard } from '../OrCard-c44d9783.js';
|
|
|
10
10
|
export { C as CARD_COLLECTION_LAYOUT, _ as OrCardCollection } from '../OrCardCollection-fe8a1a88.js';
|
|
11
11
|
export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-722c83ce.js';
|
|
12
12
|
export { _ as OrCardV3 } from '../OrCard-0da13cbe.js';
|
|
13
|
-
export { _ as OrCarousel } from '../OrCarousel-
|
|
13
|
+
export { _ as OrCarousel } from '../OrCarousel-76dc2b7b.js';
|
|
14
14
|
export { _ as OrCarouselItem } from '../OrCarouselItem-c614bab9.js';
|
|
15
15
|
export { _ as OrCheckbox } from '../OrCheckbox-03e5eaff.js';
|
|
16
16
|
export { _ as OrCheckboxV3 } from '../OrCheckbox-59332f84.js';
|
|
@@ -73,7 +73,7 @@ export { _ as OrSearch } from '../OrSearch-330e9af0.js';
|
|
|
73
73
|
export { _ as OrSearchV3 } from '../OrSearch-7ccc1f33.js';
|
|
74
74
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-a1ea5b72.js';
|
|
75
75
|
export { _ as OrSelect } from '../OrSelect-22eea9cc.js';
|
|
76
|
-
export { _ as OrSelectV3 } from '../OrSelect-
|
|
76
|
+
export { _ as OrSelectV3 } from '../OrSelect-9d6b3363.js';
|
|
77
77
|
export { _ as OrSidebar, O as OrSidebarSide } from '../OrSidebar-feacf13a.js';
|
|
78
78
|
export { _ as OrSidebarV3 } from '../OrSidebar-b8387abe.js';
|
|
79
79
|
export { O as OrSidebarPlacement } from '../OrSidebarCollapseButton-4bf3bad8.js';
|
|
@@ -110,7 +110,7 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../useToast-a133
|
|
|
110
110
|
export { _ as OrTooltip } from '../OrTooltip-97a42707.js';
|
|
111
111
|
export { _ as OrTooltipContent } from '../OrTooltipContent-d85e1071.js';
|
|
112
112
|
export { _ as OrTooltipV3 } from '../OrTooltip-93a3eefb.js';
|
|
113
|
-
export { _ as OrRichTextEditorV3 } from '../OrRichTextEditor-
|
|
113
|
+
export { _ as OrRichTextEditorV3 } from '../OrRichTextEditor-cb50c4f6.js';
|
|
114
114
|
import 'vue-demi';
|
|
115
115
|
import 'lodash';
|
|
116
116
|
import '../style-inject.es-4c6f2515.js';
|
|
@@ -119,6 +119,7 @@ import '../color-40b7fe6b.js';
|
|
|
119
119
|
import '@vueuse/core';
|
|
120
120
|
import '../OrButton.vue_rollup-plugin-vue_styles.0-83b5a752.js';
|
|
121
121
|
import '@splidejs/splide';
|
|
122
|
+
import '@splidejs/splide/dist/css/splide.min.css';
|
|
122
123
|
import '../useIdAttribute-859439f0.js';
|
|
123
124
|
import '../OrChips.vue_rollup-plugin-vue_styles.0-3cbb0871.js';
|
|
124
125
|
import '@codemirror/state';
|
|
@@ -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,6 +1,7 @@
|
|
|
1
|
-
export { _ as OrCarousel } from '../../OrCarousel-
|
|
1
|
+
export { _ as OrCarousel } from '../../OrCarousel-76dc2b7b.js';
|
|
2
2
|
export { _ as OrCarouselItem } from '../../OrCarouselItem-c614bab9.js';
|
|
3
3
|
import '@splidejs/splide';
|
|
4
|
+
import '@splidejs/splide/dist/css/splide.min.css';
|
|
4
5
|
import '../../OrIcon-a40e60af.js';
|
|
5
6
|
import 'vue-demi';
|
|
6
7
|
import 'lodash';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrSelectV3 } from '../../OrSelect-
|
|
1
|
+
export { _ as OrSelectV3 } from '../../OrSelect-9d6b3363.js';
|
|
2
2
|
export { I as SelectSize } from '../../OrInputBox.vue_rollup-plugin-vue_script-fe250f7a.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-e1f90e0a.js';
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -10,7 +10,7 @@ export { _ as OrCard } from './OrCard-c44d9783.js';
|
|
|
10
10
|
export { C as CARD_COLLECTION_LAYOUT, _ as OrCardCollection } from './OrCardCollection-fe8a1a88.js';
|
|
11
11
|
export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-722c83ce.js';
|
|
12
12
|
export { _ as OrCardV3 } from './OrCard-0da13cbe.js';
|
|
13
|
-
export { _ as OrCarousel } from './OrCarousel-
|
|
13
|
+
export { _ as OrCarousel } from './OrCarousel-76dc2b7b.js';
|
|
14
14
|
export { _ as OrCarouselItem } from './OrCarouselItem-c614bab9.js';
|
|
15
15
|
export { _ as OrCheckbox } from './OrCheckbox-03e5eaff.js';
|
|
16
16
|
export { _ as OrCheckboxV3 } from './OrCheckbox-59332f84.js';
|
|
@@ -73,7 +73,7 @@ export { _ as OrSearch } from './OrSearch-330e9af0.js';
|
|
|
73
73
|
export { _ as OrSearchV3 } from './OrSearch-7ccc1f33.js';
|
|
74
74
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-a1ea5b72.js';
|
|
75
75
|
export { _ as OrSelect } from './OrSelect-22eea9cc.js';
|
|
76
|
-
export { _ as OrSelectV3 } from './OrSelect-
|
|
76
|
+
export { _ as OrSelectV3 } from './OrSelect-9d6b3363.js';
|
|
77
77
|
export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-feacf13a.js';
|
|
78
78
|
export { _ as OrSidebarV3 } from './OrSidebar-b8387abe.js';
|
|
79
79
|
export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-4bf3bad8.js';
|
|
@@ -110,7 +110,7 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-a1332
|
|
|
110
110
|
export { _ as OrTooltip } from './OrTooltip-97a42707.js';
|
|
111
111
|
export { _ as OrTooltipContent } from './OrTooltipContent-d85e1071.js';
|
|
112
112
|
export { _ as OrTooltipV3 } from './OrTooltip-93a3eefb.js';
|
|
113
|
-
export { _ as OrRichTextEditorV3 } from './OrRichTextEditor-
|
|
113
|
+
export { _ as OrRichTextEditorV3 } from './OrRichTextEditor-cb50c4f6.js';
|
|
114
114
|
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-e1f90e0a.js';
|
|
115
115
|
export { u as useControlAttributes, a as useIdAttribute } from './useIdAttribute-859439f0.js';
|
|
116
116
|
export { u as useElevation } from './useElevation-b5a49746.js';
|
|
@@ -127,6 +127,7 @@ import './normalize-component-6e8e3d80.js';
|
|
|
127
127
|
import '@vueuse/core';
|
|
128
128
|
import './OrButton.vue_rollup-plugin-vue_styles.0-83b5a752.js';
|
|
129
129
|
import '@splidejs/splide';
|
|
130
|
+
import '@splidejs/splide/dist/css/splide.min.css';
|
|
130
131
|
import './OrChips.vue_rollup-plugin-vue_styles.0-3cbb0871.js';
|
|
131
132
|
import '@codemirror/state';
|
|
132
133
|
import '@codemirror/view';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Splide } from '@splidejs/splide';
|
|
2
|
+
import '@splidejs/splide/dist/css/splide.min.css';
|
|
2
3
|
import { s as script$1 } from './OrIcon-b566a871.js';
|
|
3
4
|
import { defineComponent, ref } from 'vue-demi';
|
|
4
5
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createVNode, createCommentVNode } from 'vue';
|
|
@@ -220,7 +221,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
220
221
|
})])])])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_6, [createElementVNode("div", _hoisted_7, [createElementVNode("ul", _hoisted_8, [renderSlot(_ctx.$slots, "default")])])])], 512 /* NEED_PATCH */)]);
|
|
221
222
|
}
|
|
222
223
|
|
|
223
|
-
var css_248z = "
|
|
224
|
+
var css_248z = ".or-carousel[data-v-1a3da3b8] {\n line-height: 1;\n text-align: center;\n}\n.or-carousel__track-container[data-v-1a3da3b8] {\n position: relative;\n}\n.or-carousel .splide__arrow[data-v-1a3da3b8]:focus-visible {\n outline: none;\n}\n.or-carousel[data-v-1a3da3b8] .splide__pagination__page {\n background: #64b2da;\n}";
|
|
224
225
|
styleInject(css_248z);
|
|
225
226
|
|
|
226
227
|
script.render = render;
|
|
@@ -55,8 +55,8 @@ const serializerMarks = {
|
|
|
55
55
|
expelEnclosingWhitespace: true
|
|
56
56
|
},
|
|
57
57
|
[Italic.name]: {
|
|
58
|
-
open: '_',
|
|
59
|
-
close: '_',
|
|
58
|
+
open: ' _',
|
|
59
|
+
close: '_ ',
|
|
60
60
|
mixable: true,
|
|
61
61
|
expelEnclosingWhitespace: true
|
|
62
62
|
},
|
|
@@ -448,9 +448,17 @@ var script = defineComponent({
|
|
|
448
448
|
switch (item) {
|
|
449
449
|
case 'source':
|
|
450
450
|
disableMarkdown.value = !disableMarkdown.value;
|
|
451
|
+
editor === null || editor === void 0 ? void 0 : editor.setOptions({
|
|
452
|
+
enableInputRules: !disableMarkdown.value,
|
|
453
|
+
enablePasteRules: !disableMarkdown.value
|
|
454
|
+
});
|
|
455
|
+
editor === null || editor === void 0 ? void 0 : editor.view.updateState(editor === null || editor === void 0 ? void 0 : editor.state.reconfigure({
|
|
456
|
+
plugins: editor.extensionManager.plugins
|
|
457
|
+
}));
|
|
451
458
|
if (disableMarkdown.value) {
|
|
459
|
+
const content = serialize(editor === null || editor === void 0 ? void 0 : editor.schema, editor === null || editor === void 0 ? void 0 : editor.getJSON());
|
|
452
460
|
editor === null || editor === void 0 ? void 0 : editor.commands.clearContent();
|
|
453
|
-
editor === null || editor === void 0 ? void 0 : editor.commands.insertContent(
|
|
461
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.insertContent(content);
|
|
454
462
|
} else {
|
|
455
463
|
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()));
|
|
456
464
|
}
|
|
@@ -808,7 +816,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
808
816
|
}, 8 /* PROPS */, ["is-open"])], 2 /* CLASS */);
|
|
809
817
|
}
|
|
810
818
|
|
|
811
|
-
var css_248z = ".tiptap-editor-v3 ol {\n margin: 0 24px;\n list-style: decimal;\n}\n.tiptap-editor-v3 ul {\n margin: 0 24px;\n list-style: initial;\n}\n.tiptap-editor-v3 blockquote {\n margin: 8px 24px;\n padding: 0 24px;\n border-left: 4px solid #bad1ec;\n}\n.tiptap-editor-v3 .is-editor-empty::before {\n content: attr(data-placeholder);\n height: 0;\n pointer-events: none;\n float: left;\n}\n.tiptap-editor-v3 .cm-editor {\n border: none;\n border-radius: 4px;\n}\n.tiptap-editor-v3 .cm-editor .cm-scroller {\n border-radius: 4px;\n}\n.tiptap-editor-v3 .cm-editor.cm-focused {\n outline: none;\n}\n.tiptap-editor-v3 .cm-editor .cm-gutters {\n background-color: rgba(0, 95, 177, 0.08);\n border: none;\n}\n.tiptap-editor-v3 .cm-editor .cm-gutters .cm-gutterElement {\n padding: 0 10px;\n}\n.tiptap-editor-v3 .cm-editor .cm-gutters .cm-gutterElement.cm-activeLineGutter {\n background-color: rgba(0, 95, 177, 0.07);\n}";
|
|
819
|
+
var css_248z = ".tiptap-editor-v3 ol {\n margin: 0 24px;\n list-style: decimal;\n}\n.tiptap-editor-v3 .ProseMirror p {\n margin: 4px;\n}\n.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 {\n margin: 4px;\n}\n.tiptap-editor-v3 ul {\n margin: 0 24px;\n list-style: initial;\n}\n.tiptap-editor-v3 blockquote {\n margin: 8px 24px;\n padding: 0 24px;\n border-left: 4px solid #bad1ec;\n}\n.tiptap-editor-v3 .is-editor-empty::before {\n content: attr(data-placeholder);\n height: 0;\n pointer-events: none;\n float: left;\n}\n.tiptap-editor-v3 .cm-editor {\n border: none;\n border-radius: 4px;\n}\n.tiptap-editor-v3 .cm-editor .cm-scroller {\n border-radius: 4px;\n}\n.tiptap-editor-v3 .cm-editor.cm-focused {\n outline: none;\n}\n.tiptap-editor-v3 .cm-editor .cm-gutters {\n background-color: rgba(0, 95, 177, 0.08);\n border: none;\n}\n.tiptap-editor-v3 .cm-editor .cm-gutters .cm-gutterElement {\n padding: 0 10px;\n}\n.tiptap-editor-v3 .cm-editor .cm-gutters .cm-gutterElement.cm-activeLineGutter {\n background-color: rgba(0, 95, 177, 0.07);\n}";
|
|
812
820
|
styleInject(css_248z);
|
|
813
821
|
|
|
814
822
|
script.render = render;
|
|
@@ -359,12 +359,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
359
359
|
return openBlock(), createBlock(_component_OrTag, {
|
|
360
360
|
key: option.value,
|
|
361
361
|
variant: 'reset',
|
|
362
|
+
disabled: _ctx.disabled || _ctx.readonly,
|
|
362
363
|
onReset: $event => _ctx.deselect(option)
|
|
363
364
|
}, {
|
|
364
365
|
default: withCtx(() => [createTextVNode(toDisplayString(option.label), 1 /* TEXT */)]),
|
|
365
366
|
|
|
366
367
|
_: 2 /* DYNAMIC */
|
|
367
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onReset"]);
|
|
368
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled", "onReset"]);
|
|
368
369
|
}), 128 /* KEYED_FRAGMENT */)) : (openBlock(), createElementBlock("span", {
|
|
369
370
|
key: 1,
|
|
370
371
|
class: normalizeClass(_ctx.placeholderStyles)
|
|
@@ -9,7 +9,7 @@ export { s as OrCard } from '../OrCard-e3a5aea4.js';
|
|
|
9
9
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from '../OrCardCollection-d79dac85.js';
|
|
10
10
|
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-b319b723.js';
|
|
11
11
|
export { s as OrCardV3 } from '../OrCard-cc82902c.js';
|
|
12
|
-
export { s as OrCarousel } from '../OrCarousel-
|
|
12
|
+
export { s as OrCarousel } from '../OrCarousel-40f069d5.js';
|
|
13
13
|
export { s as OrCarouselItem } from '../OrCarouselItem-8c7ccd0f.js';
|
|
14
14
|
export { s as OrCheckbox } from '../OrCheckbox-ab457011.js';
|
|
15
15
|
export { s as OrCheckboxV3 } from '../OrCheckbox-56d7b6eb.js';
|
|
@@ -71,7 +71,7 @@ export { s as OrSearch } from '../OrSearch-f4ad73db.js';
|
|
|
71
71
|
export { s as OrSearchV3 } from '../OrSearch-e15c7fd2.js';
|
|
72
72
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-359fbf3a.js';
|
|
73
73
|
export { s as OrSelect } from '../OrSelect-6ff34196.js';
|
|
74
|
-
export { s as OrSelectV3 } from '../OrSelect-
|
|
74
|
+
export { s as OrSelectV3 } from '../OrSelect-3dbddc6b.js';
|
|
75
75
|
export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar-375c85a3.js';
|
|
76
76
|
export { s as OrSidebarV3 } from '../OrSidebar-bfd19c4c.js';
|
|
77
77
|
export { O as OrSidebarPlacement } from '../OrSidebarCollapseButton-63914891.js';
|
|
@@ -108,7 +108,7 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../useToast-a133
|
|
|
108
108
|
export { s as OrTooltip } from '../OrTooltip-89ce98e8.js';
|
|
109
109
|
export { s as OrTooltipContent } from '../OrTooltipContent-37a5f562.js';
|
|
110
110
|
export { s as OrTooltipV3 } from '../OrTooltip-4bb0054a.js';
|
|
111
|
-
export { s as OrRichTextEditorV3 } from '../OrRichTextEditor-
|
|
111
|
+
export { s as OrRichTextEditorV3 } from '../OrRichTextEditor-c3560ddb.js';
|
|
112
112
|
import 'vue-demi';
|
|
113
113
|
import 'lodash';
|
|
114
114
|
import 'vue';
|
|
@@ -116,6 +116,7 @@ import '../style-inject.es-4c6f2515.js';
|
|
|
116
116
|
import '../color-40b7fe6b.js';
|
|
117
117
|
import '@vueuse/core';
|
|
118
118
|
import '@splidejs/splide';
|
|
119
|
+
import '@splidejs/splide/dist/css/splide.min.css';
|
|
119
120
|
import '../useIdAttribute-859439f0.js';
|
|
120
121
|
import '@codemirror/state';
|
|
121
122
|
import '@codemirror/view';
|
|
@@ -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,6 +1,7 @@
|
|
|
1
|
-
export { s as OrCarousel } from '../../OrCarousel-
|
|
1
|
+
export { s as OrCarousel } from '../../OrCarousel-40f069d5.js';
|
|
2
2
|
export { s as OrCarouselItem } from '../../OrCarouselItem-8c7ccd0f.js';
|
|
3
3
|
import '@splidejs/splide';
|
|
4
|
+
import '@splidejs/splide/dist/css/splide.min.css';
|
|
4
5
|
import '../../OrIcon-b566a871.js';
|
|
5
6
|
import 'vue-demi';
|
|
6
7
|
import 'lodash';
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -9,7 +9,7 @@ export { s as OrCard } from './OrCard-e3a5aea4.js';
|
|
|
9
9
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-d79dac85.js';
|
|
10
10
|
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-b319b723.js';
|
|
11
11
|
export { s as OrCardV3 } from './OrCard-cc82902c.js';
|
|
12
|
-
export { s as OrCarousel } from './OrCarousel-
|
|
12
|
+
export { s as OrCarousel } from './OrCarousel-40f069d5.js';
|
|
13
13
|
export { s as OrCarouselItem } from './OrCarouselItem-8c7ccd0f.js';
|
|
14
14
|
export { s as OrCheckbox } from './OrCheckbox-ab457011.js';
|
|
15
15
|
export { s as OrCheckboxV3 } from './OrCheckbox-56d7b6eb.js';
|
|
@@ -71,7 +71,7 @@ export { s as OrSearch } from './OrSearch-f4ad73db.js';
|
|
|
71
71
|
export { s as OrSearchV3 } from './OrSearch-e15c7fd2.js';
|
|
72
72
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-359fbf3a.js';
|
|
73
73
|
export { s as OrSelect } from './OrSelect-6ff34196.js';
|
|
74
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
74
|
+
export { s as OrSelectV3 } from './OrSelect-3dbddc6b.js';
|
|
75
75
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
76
76
|
export { s as OrSidebarV3 } from './OrSidebar-bfd19c4c.js';
|
|
77
77
|
export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-63914891.js';
|
|
@@ -108,7 +108,7 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-a1332
|
|
|
108
108
|
export { s as OrTooltip } from './OrTooltip-89ce98e8.js';
|
|
109
109
|
export { s as OrTooltipContent } from './OrTooltipContent-37a5f562.js';
|
|
110
110
|
export { s as OrTooltipV3 } from './OrTooltip-4bb0054a.js';
|
|
111
|
-
export { s as OrRichTextEditorV3 } from './OrRichTextEditor-
|
|
111
|
+
export { s as OrRichTextEditorV3 } from './OrRichTextEditor-c3560ddb.js';
|
|
112
112
|
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-e1f90e0a.js';
|
|
113
113
|
export { u as useControlAttributes, a as useIdAttribute } from './useIdAttribute-859439f0.js';
|
|
114
114
|
export { u as useElevation } from './useElevation-b5a49746.js';
|
|
@@ -124,6 +124,7 @@ import 'vue';
|
|
|
124
124
|
import './style-inject.es-4c6f2515.js';
|
|
125
125
|
import '@vueuse/core';
|
|
126
126
|
import '@splidejs/splide';
|
|
127
|
+
import '@splidejs/splide/dist/css/splide.min.css';
|
|
127
128
|
import '@codemirror/state';
|
|
128
129
|
import '@codemirror/view';
|
|
129
130
|
import '@codemirror/commands';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "4.4.0-beta.
|
|
3
|
+
"version": "4.4.0-beta.2688.0",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@codemirror/lang-json": "6.0.0",
|
|
39
39
|
"@codemirror/lang-markdown": "6.0.1",
|
|
40
40
|
"@floating-ui/dom": "0.3.1",
|
|
41
|
-
"@onereach/styles": "^2.39.4-beta.
|
|
41
|
+
"@onereach/styles": "^2.39.4-beta.2688.0",
|
|
42
42
|
"@splidejs/splide": "4.0.6",
|
|
43
43
|
"@tiptap/core": "2.0.2",
|
|
44
44
|
"@tiptap/extension-blockquote": "2.0.2",
|
|
@@ -32,9 +32,11 @@
|
|
|
32
32
|
|
|
33
33
|
<script lang="ts">
|
|
34
34
|
import { Splide, ResponsiveOptions } from '@splidejs/splide';
|
|
35
|
+
import '@splidejs/splide/dist/css/splide.min.css';
|
|
35
36
|
import { OrIcon } from '../or-icon';
|
|
36
37
|
import { defineComponent, PropType, ref } from 'vue-demi';
|
|
37
38
|
import { Direction, EVENTS, KeyBoard, Type } from './constants';
|
|
39
|
+
|
|
38
40
|
export default defineComponent({
|
|
39
41
|
name: 'OrCarousel',
|
|
40
42
|
components: {
|
|
@@ -185,8 +187,6 @@ export default defineComponent({
|
|
|
185
187
|
</script>
|
|
186
188
|
|
|
187
189
|
<style lang="scss" scoped>
|
|
188
|
-
@import '~@splidejs/splide/dist/css/splide.min.css';
|
|
189
|
-
|
|
190
190
|
.or-carousel {
|
|
191
191
|
&__track-container {
|
|
192
192
|
position: relative;
|
|
@@ -131,8 +131,8 @@ Markdown.args = {
|
|
|
131
131
|
placeholder: 'Write something...',
|
|
132
132
|
format: 'markdown',
|
|
133
133
|
modelValue: `
|
|
134
|
-
**export**
|
|
135
|
-
_export_
|
|
136
|
-
~export~
|
|
134
|
+
**export**
|
|
135
|
+
_export_
|
|
136
|
+
~export~
|
|
137
137
|
`,
|
|
138
138
|
};
|
|
@@ -460,10 +460,19 @@ export default defineComponent({
|
|
|
460
460
|
switch (item) {
|
|
461
461
|
case 'source':
|
|
462
462
|
disableMarkdown.value = !disableMarkdown.value;
|
|
463
|
+
editor?.setOptions({
|
|
464
|
+
enableInputRules: !disableMarkdown.value,
|
|
465
|
+
enablePasteRules: !disableMarkdown.value,
|
|
466
|
+
});
|
|
467
|
+
|
|
468
|
+
editor?.view.updateState(editor?.state.reconfigure({
|
|
469
|
+
plugins: editor.extensionManager.plugins,
|
|
470
|
+
}));
|
|
463
471
|
|
|
464
472
|
if (disableMarkdown.value) {
|
|
473
|
+
const content = serialize(editor?.schema, editor?.getJSON());
|
|
465
474
|
editor?.commands.clearContent();
|
|
466
|
-
editor?.commands.insertContent(
|
|
475
|
+
editor?.commands.insertContent(content);
|
|
467
476
|
} else {
|
|
468
477
|
editor?.commands.setContent(deserialize(editor?.schema, editor?.getText()));
|
|
469
478
|
}
|
|
@@ -675,6 +684,17 @@ export default defineComponent({
|
|
|
675
684
|
list-style: decimal;
|
|
676
685
|
}
|
|
677
686
|
|
|
687
|
+
.ProseMirror {
|
|
688
|
+
p {
|
|
689
|
+
margin: 4px;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
h1, h2, h3, h4, h5, h6 {
|
|
693
|
+
margin: 4px;
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
|
|
678
698
|
ul {
|
|
679
699
|
margin: 0 24px;
|
|
680
700
|
list-style: initial;
|
|
@@ -168,7 +168,7 @@ const Template: StoryFn<typeof OrSelect> = (args) => ({
|
|
|
168
168
|
|
|
169
169
|
setup() {
|
|
170
170
|
// State
|
|
171
|
-
const model = ref<string | string[]>();
|
|
171
|
+
const model = ref<string | string[]>(args.modelValue);
|
|
172
172
|
const searchOptions = ref<SelectOption[]>(args.options);
|
|
173
173
|
|
|
174
174
|
// Handlers
|
|
@@ -468,3 +468,41 @@ WithLongStrings.args = {
|
|
|
468
468
|
|
|
469
469
|
placeholder: 'Wery Wery Wery WeryWeryWeryWery Wery Wery long placeholder',
|
|
470
470
|
};
|
|
471
|
+
|
|
472
|
+
export const MultipleReadonly = Template.bind({});
|
|
473
|
+
|
|
474
|
+
MultipleReadonly.args = {
|
|
475
|
+
...Default.args,
|
|
476
|
+
readonly: true,
|
|
477
|
+
options: Array.from<string, SelectOption>([
|
|
478
|
+
'Alfa',
|
|
479
|
+
'Bravo',
|
|
480
|
+
'Charlie',
|
|
481
|
+
'Delta',
|
|
482
|
+
'Echo',
|
|
483
|
+
], (item) => ({
|
|
484
|
+
value: item.toLowerCase().replace(/\s/g, ''),
|
|
485
|
+
label: item,
|
|
486
|
+
})),
|
|
487
|
+
multiple: true,
|
|
488
|
+
modelValue: ['alfa', 'bravo'],
|
|
489
|
+
};
|
|
490
|
+
export const MultipleDisabled = Template.bind({});
|
|
491
|
+
|
|
492
|
+
MultipleDisabled.args = {
|
|
493
|
+
...Default.args,
|
|
494
|
+
options: Array.from<string, SelectOption>([
|
|
495
|
+
'Alfa',
|
|
496
|
+
'Bravo',
|
|
497
|
+
'Charlie',
|
|
498
|
+
'Delta',
|
|
499
|
+
'Echo',
|
|
500
|
+
], (item) => ({
|
|
501
|
+
value: item.toLowerCase().replace(/\s/g, ''),
|
|
502
|
+
label: item,
|
|
503
|
+
})),
|
|
504
|
+
disabled: true,
|
|
505
|
+
multiple: true,
|
|
506
|
+
modelValue: ['alfa', 'bravo'],
|
|
507
|
+
paceholder: 'disabled placeholder',
|
|
508
|
+
};
|