@threadlabs/looma 0.7.0 → 0.7.1
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/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +2 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/styles/ui-editor-table-context-menu.css +2 -0
- package/vue/UiEditorTableContextMenu.vue +2 -0
- package/vue/chunks/UiEditorTableContextMenu.js +1 -1
- package/vue/components.css +17 -15
- package/vue/editor/index.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/* Generated by HTML Next 1.0.0-alpha.3. Do not edit. */
|
|
2
2
|
@scope ([data-component~="ui-editor-table-context-menu"]) to ([data-component], [data-slotted]) {
|
|
3
3
|
:scope {
|
|
4
|
+
/* The max-width is a promise about the menu's footprint, so it counts padding and border. */
|
|
5
|
+
box-sizing: border-box;
|
|
4
6
|
min-width: 14rem;
|
|
5
7
|
max-width: min(17rem, calc(100vw - 24px));
|
|
6
8
|
max-height: min(28rem, calc(100vh - 24px));
|
|
@@ -160,6 +160,8 @@ useComponentHost(controllerModule.default, {
|
|
|
160
160
|
|
|
161
161
|
<style scoped>
|
|
162
162
|
[data-component~="ui-editor-table-context-menu"] {
|
|
163
|
+
/* The max-width is a promise about the menu's footprint, so it counts padding and border. */
|
|
164
|
+
box-sizing: border-box;
|
|
163
165
|
min-width: 14rem;
|
|
164
166
|
max-width: min(17rem, calc(100vw - 24px));
|
|
165
167
|
max-height: min(28rem, calc(100vh - 24px));
|
|
@@ -93,6 +93,6 @@ var UiEditorTableContextMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_d
|
|
|
93
93
|
}), 128))], 16, _hoisted_1);
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
}), [["__scopeId", "data-v-
|
|
96
|
+
}), [["__scopeId", "data-v-ae062630"]]);
|
|
97
97
|
//#endregion
|
|
98
98
|
export { UiEditorTableContextMenu_default as t };
|
package/vue/components.css
CHANGED
|
@@ -1780,7 +1780,9 @@ svg[data-v-7b1048a0] {
|
|
|
1780
1780
|
display: none;
|
|
1781
1781
|
}
|
|
1782
1782
|
|
|
1783
|
-
[data-component~="ui-editor-table-context-menu"][data-v-
|
|
1783
|
+
[data-component~="ui-editor-table-context-menu"][data-v-ae062630] {
|
|
1784
|
+
/* The max-width is a promise about the menu's footprint, so it counts padding and border. */
|
|
1785
|
+
box-sizing: border-box;
|
|
1784
1786
|
min-width: 14rem;
|
|
1785
1787
|
max-width: min(17rem, calc(100vw - 24px));
|
|
1786
1788
|
max-height: min(28rem, calc(100vh - 24px));
|
|
@@ -1796,12 +1798,12 @@ svg[data-v-7b1048a0] {
|
|
|
1796
1798
|
overscroll-behavior: contain;
|
|
1797
1799
|
scrollbar-width: thin;
|
|
1798
1800
|
}
|
|
1799
|
-
.section[data-v-
|
|
1801
|
+
.section[data-v-ae062630] {
|
|
1800
1802
|
display: flex;
|
|
1801
1803
|
flex-direction: column;
|
|
1802
1804
|
gap: 3px;
|
|
1803
1805
|
}
|
|
1804
|
-
[data-component~="ui-editor-table-context-menu"] button[data-v-
|
|
1806
|
+
[data-component~="ui-editor-table-context-menu"] button[data-v-ae062630] {
|
|
1805
1807
|
display: flex;
|
|
1806
1808
|
align-items: center;
|
|
1807
1809
|
gap: var(--ui-space-2);
|
|
@@ -1816,30 +1818,30 @@ svg[data-v-7b1048a0] {
|
|
|
1816
1818
|
cursor: pointer;
|
|
1817
1819
|
color: var(--ui-text);
|
|
1818
1820
|
}
|
|
1819
|
-
[data-component~="ui-editor-table-context-menu"] button[data-v-
|
|
1821
|
+
[data-component~="ui-editor-table-context-menu"] button[data-v-ae062630] {
|
|
1820
1822
|
--ui-icon-size: 1rem;
|
|
1821
1823
|
--ui-icon-stroke-width: var(--ui-editor-toolbar-icon-stroke-width, 1.75);
|
|
1822
1824
|
}
|
|
1823
|
-
[data-component~="ui-editor-table-context-menu"] button[data-v-
|
|
1825
|
+
[data-component~="ui-editor-table-context-menu"] button[data-v-ae062630]:hover:not(:disabled) {
|
|
1824
1826
|
background: var(--ui-surface-hover);
|
|
1825
1827
|
}
|
|
1826
|
-
[data-component~="ui-editor-table-context-menu"] button.selected[data-v-
|
|
1828
|
+
[data-component~="ui-editor-table-context-menu"] button.selected[data-v-ae062630] {
|
|
1827
1829
|
background: var(--ui-accent-subtle, rgb(59 130 246 / 0.1));
|
|
1828
1830
|
}
|
|
1829
|
-
[data-component~="ui-editor-table-context-menu"] button.danger[data-v-
|
|
1831
|
+
[data-component~="ui-editor-table-context-menu"] button.danger[data-v-ae062630] {
|
|
1830
1832
|
color: var(--ui-danger);
|
|
1831
1833
|
}
|
|
1832
|
-
.swatches[data-v-
|
|
1834
|
+
.swatches[data-v-ae062630] {
|
|
1833
1835
|
display: grid;
|
|
1834
1836
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1835
1837
|
gap: 3px;
|
|
1836
1838
|
}
|
|
1837
|
-
.swatch-button[data-v-
|
|
1839
|
+
.swatch-button[data-v-ae062630] {
|
|
1838
1840
|
display: inline-flex;
|
|
1839
1841
|
align-items: center;
|
|
1840
1842
|
gap: var(--ui-space-2);
|
|
1841
1843
|
}
|
|
1842
|
-
.swatch[data-v-
|
|
1844
|
+
.swatch[data-v-ae062630] {
|
|
1843
1845
|
display: inline-flex;
|
|
1844
1846
|
width: 1rem;
|
|
1845
1847
|
height: 1rem;
|
|
@@ -1849,7 +1851,7 @@ svg[data-v-7b1048a0] {
|
|
|
1849
1851
|
box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
|
|
1850
1852
|
flex-shrink: 0;
|
|
1851
1853
|
}
|
|
1852
|
-
.swatch.default[data-v-
|
|
1854
|
+
.swatch.default[data-v-ae062630] {
|
|
1853
1855
|
position: relative;
|
|
1854
1856
|
background:
|
|
1855
1857
|
linear-gradient(
|
|
@@ -1861,11 +1863,11 @@ svg[data-v-7b1048a0] {
|
|
|
1861
1863
|
),
|
|
1862
1864
|
var(--ui-surface);
|
|
1863
1865
|
}
|
|
1864
|
-
.swatch-label[data-v-
|
|
1866
|
+
.swatch-label[data-v-ae062630] {
|
|
1865
1867
|
min-width: 0;
|
|
1866
1868
|
white-space: nowrap;
|
|
1867
1869
|
}
|
|
1868
|
-
.heading[data-v-
|
|
1870
|
+
.heading[data-v-ae062630] {
|
|
1869
1871
|
padding: var(--ui-space-1) var(--ui-space-2);
|
|
1870
1872
|
font-size: 0.6875rem;
|
|
1871
1873
|
font-weight: 700;
|
|
@@ -1873,12 +1875,12 @@ svg[data-v-7b1048a0] {
|
|
|
1873
1875
|
text-transform: uppercase;
|
|
1874
1876
|
color: var(--ui-text-muted);
|
|
1875
1877
|
}
|
|
1876
|
-
.sep[data-v-
|
|
1878
|
+
.sep[data-v-ae062630] {
|
|
1877
1879
|
height: 1px;
|
|
1878
1880
|
background: var(--ui-border);
|
|
1879
1881
|
margin: var(--ui-space-1) 0;
|
|
1880
1882
|
}
|
|
1881
|
-
[data-component~="ui-editor-table-context-menu"][hidden][data-v-
|
|
1883
|
+
[data-component~="ui-editor-table-context-menu"][hidden][data-v-ae062630] {
|
|
1882
1884
|
display: none;
|
|
1883
1885
|
}
|
|
1884
1886
|
|
package/vue/editor/index.js
CHANGED
|
@@ -868,10 +868,7 @@ var LoomaEditor = defineComponent({
|
|
|
868
868
|
onFocusin: () => showTool(tablePickerAnchorId, "Insert table", true),
|
|
869
869
|
onFocusout: hideTool,
|
|
870
870
|
variant: tablePickerOpen.value ? "solid" : "ghost",
|
|
871
|
-
"aria-expanded": tablePickerOpen.value ? "true" : "false"
|
|
872
|
-
onClick: () => {
|
|
873
|
-
tablePickerOpen.value = !tablePickerOpen.value;
|
|
874
|
-
}
|
|
871
|
+
"aria-expanded": tablePickerOpen.value ? "true" : "false"
|
|
875
872
|
}, () => loomaIcon("table")),
|
|
876
873
|
commandButton(uploading.value ? "Uploading image" : "Insert image", "image", false, uploading.value || !props.uploadImage, () => fileInput.value?.click()),
|
|
877
874
|
h("span", {
|
|
@@ -1022,6 +1019,9 @@ var LoomaEditor = defineComponent({
|
|
|
1022
1019
|
open: tablePickerOpen.value,
|
|
1023
1020
|
for: tablePickerAnchorId,
|
|
1024
1021
|
placement: mobile.value ? "top-start" : "bottom-start",
|
|
1022
|
+
onOpen: () => {
|
|
1023
|
+
tablePickerOpen.value = true;
|
|
1024
|
+
},
|
|
1025
1025
|
onClose: () => {
|
|
1026
1026
|
tablePickerOpen.value = false;
|
|
1027
1027
|
}
|