@onereach/ui-components 4.6.0-beta.2747.0 → 4.6.0-beta.2751.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/OrRichTextEditorV3/OrRichTextEditor.js +7 -11
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +1 -1
- package/dist/bundled/v2/index.js +1 -1
- package/dist/bundled/v3/{OrRichTextEditor.vue_vue_type_script_lang-fd3f9c45.js → OrRichTextEditor.vue_vue_type_script_lang-da618771.js} +7 -10
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +3 -4
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +2 -2
- 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/index.js +1 -1
- package/dist/bundled/v3/index.js +2 -2
- package/dist/esm/v2/{OrRichTextEditor-e31b0fb4.js → OrRichTextEditor-f95ca8c6.js} +8 -12
- package/dist/esm/v2/components/index.js +1 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +1 -1
- package/dist/esm/v2/index.js +1 -1
- package/dist/esm/v3/{OrRichTextEditor-bdb2040e.js → OrRichTextEditor-065797b2.js} +9 -13
- package/dist/esm/v3/components/index.js +1 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +1 -1
- package/dist/esm/v3/index.js +1 -1
- package/package.json +1 -1
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +8 -13
- package/src/components/or-rich-text-editor-v3/styles.ts +2 -3
|
@@ -1603,11 +1603,8 @@ var script = defineComponent({
|
|
|
1603
1603
|
if (containerRef.value && toolbarRef.value && toolbarLength.value) {
|
|
1604
1604
|
let lengthOfItem = 0;
|
|
1605
1605
|
lengthOfItem = ((_b = (_a = toolbarRef.value.firstElementChild) === null || _a === void 0 ? void 0 : _a.firstElementChild) === null || _b === void 0 ? void 0 : _b.offsetWidth) + 16;
|
|
1606
|
-
const
|
|
1607
|
-
|
|
1608
|
-
const count = width / lengthOfItem - 2;
|
|
1609
|
-
countOfNotVisibleTools.value = Math.round(toolbarLength.value - count);
|
|
1610
|
-
}
|
|
1606
|
+
const count = width / lengthOfItem - 2;
|
|
1607
|
+
countOfNotVisibleTools.value = Math.round(toolbarLength.value - count);
|
|
1611
1608
|
}
|
|
1612
1609
|
});
|
|
1613
1610
|
onMounted(() => {
|
|
@@ -1715,10 +1712,10 @@ var script = defineComponent({
|
|
|
1715
1712
|
const notVisibleTools = computed(() => {
|
|
1716
1713
|
const count = countOfNotVisibleTools.value;
|
|
1717
1714
|
const toolbar = props.toolbar.flat();
|
|
1718
|
-
let notVisible = toolbar.slice(toolbar.length - count, toolbar.length);
|
|
1715
|
+
let notVisible = new Set(toolbar.slice(toolbar.length - count, toolbar.length));
|
|
1719
1716
|
props.toolbar.forEach(tools => {
|
|
1720
|
-
if (tools.some(item => notVisible.
|
|
1721
|
-
|
|
1717
|
+
if (tools.some(item => notVisible.has(item))) {
|
|
1718
|
+
tools.forEach(item => notVisible.add(item));
|
|
1722
1719
|
}
|
|
1723
1720
|
});
|
|
1724
1721
|
return notVisible;
|
|
@@ -1733,10 +1730,10 @@ var script = defineComponent({
|
|
|
1733
1730
|
};
|
|
1734
1731
|
const isVisible = value => {
|
|
1735
1732
|
if (Array.isArray(value)) {
|
|
1736
|
-
const isHaveNotVisibleTools = value.some(item => notVisibleTools.value.
|
|
1733
|
+
const isHaveNotVisibleTools = value.some(item => notVisibleTools.value.has(item));
|
|
1737
1734
|
return isHaveNotVisibleTools;
|
|
1738
1735
|
}
|
|
1739
|
-
return !notVisibleTools.value.
|
|
1736
|
+
return !notVisibleTools.value.has(value);
|
|
1740
1737
|
};
|
|
1741
1738
|
const handleInput = event => {
|
|
1742
1739
|
const target = event.target;
|
|
@@ -2089,7 +2086,6 @@ var __vue_render__ = function () {
|
|
|
2089
2086
|
placement: 'top'
|
|
2090
2087
|
},
|
|
2091
2088
|
"selected": _vm.isActive[item],
|
|
2092
|
-
"disabled": !_vm.isFocused,
|
|
2093
2089
|
"icon": {
|
|
2094
2090
|
icon: _vm.iconsEnum[item],
|
|
2095
2091
|
variant: 'inherit',
|
|
@@ -48,7 +48,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
48
48
|
isFocused: import("@vue/composition-api").Ref<boolean>;
|
|
49
49
|
isVisible: (value: string | Array<string>) => boolean;
|
|
50
50
|
countOfNotVisibleTools: import("@vue/composition-api").Ref<number>;
|
|
51
|
-
notVisibleTools: import("@vue/composition-api").ComputedRef<string
|
|
51
|
+
notVisibleTools: import("@vue/composition-api").ComputedRef<Set<string>>;
|
|
52
52
|
handleInput: (event: InputEvent) => void;
|
|
53
53
|
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string>;
|
|
54
54
|
disableMarkdown: import("@vue/composition-api").Ref<boolean>;
|
|
@@ -193,7 +193,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
193
193
|
isFocused: import("@vue/composition-api").Ref<boolean>;
|
|
194
194
|
isVisible: (value: string | Array<string>) => boolean;
|
|
195
195
|
countOfNotVisibleTools: import("@vue/composition-api").Ref<number>;
|
|
196
|
-
notVisibleTools: import("@vue/composition-api").ComputedRef<string
|
|
196
|
+
notVisibleTools: import("@vue/composition-api").ComputedRef<Set<string>>;
|
|
197
197
|
handleInput: (event: InputEvent) => void;
|
|
198
198
|
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string>;
|
|
199
199
|
disableMarkdown: import("@vue/composition-api").Ref<boolean>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const EditorContainer = [
|
|
2
2
|
// Colors
|
|
3
|
-
'border-outline', 'focus-within:theme-
|
|
3
|
+
'border-outline', 'focus-within:theme-background-primary-translucent', 'focus-within:theme-border-1-primary', 'focus-within:theme-outline-2-primary',
|
|
4
4
|
// Sizing
|
|
5
5
|
'border-1', 'rounded-md', 'w-full'];
|
|
6
6
|
const ToolbarContainer = [
|