@vc-shell/framework 1.1.99-alpha.1 → 1.1.99-alpha.10
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/framework.js +3814 -3806
- package/dist/index.css +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-columns-header/vc-table-columns-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableModifications.d.ts +14 -0
- package/dist/ui/components/organisms/vc-table/composables/useTableModifications.d.ts.map +1 -0
- package/dist/{vendor-core-js-DDuR6YMQ.js → vendor-core-js-BFxlwwN5.js} +2 -2
- package/dist/{vendor-intlify-core-base-Da62SG4M.js → vendor-intlify-core-base-BPrkwvwk.js} +4 -4
- package/dist/{vendor-intlify-message-compiler-CHvGSH2u.js → vendor-intlify-message-compiler-Dguf6mhj.js} +2 -2
- package/dist/{vendor-intlify-shared-jWBPd9WB.js → vendor-intlify-shared-Di50oJUK.js} +1 -1
- package/dist/{vendor-prosemirror-commands-Cu1q5ZDk.js → vendor-prosemirror-commands-quHSf-06.js} +2 -2
- package/dist/{vendor-prosemirror-dropcursor-BuGmFgFS.js → vendor-prosemirror-dropcursor-B02qFqyv.js} +2 -2
- package/dist/{vendor-prosemirror-gapcursor-CyYcCWVK.js → vendor-prosemirror-gapcursor-csIPOlxW.js} +3 -3
- package/dist/{vendor-prosemirror-history-DzRcbrCw.js → vendor-prosemirror-history-1c9GGwnq.js} +3 -3
- package/dist/{vendor-prosemirror-keymap-KfbdOEJw.js → vendor-prosemirror-keymap-qY1NCp1b.js} +1 -1
- package/dist/{vendor-prosemirror-schema-list-CwCUArvx.js → vendor-prosemirror-schema-list-D8uyGoVp.js} +1 -1
- package/dist/{vendor-prosemirror-state-DHaVEu5h.js → vendor-prosemirror-state-Du7AF5Ax.js} +1 -1
- package/dist/{vendor-prosemirror-tables-mYok4vGT.js → vendor-prosemirror-tables-CtOx19Gr.js} +4 -4
- package/dist/{vendor-prosemirror-transform-CAHmg-qG.js → vendor-prosemirror-transform-dNz_YAu0.js} +6 -5
- package/dist/{vendor-prosemirror-view-CspJa44O.js → vendor-prosemirror-view-DpmNEJam.js} +2 -2
- package/dist/{vendor-tiptap-core-ClsTgaMv.js → vendor-tiptap-core-CEgpCf7B.js} +560 -493
- package/dist/{vendor-tiptap-extension-blockquote-r1MBx4hD.js → vendor-tiptap-extension-blockquote-wzBz8o9Q.js} +14 -13
- package/dist/{vendor-tiptap-extension-bold-BjLI4i8b.js → vendor-tiptap-extension-bold-CRRLMaAK.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-D5-kDnMW.js → vendor-tiptap-extension-code-BIFA2Gxl.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-block-RjEb0zPA.js → vendor-tiptap-extension-code-block-BSjY11bc.js} +2 -2
- package/dist/{vendor-tiptap-extension-document--PLOxIdq.js → vendor-tiptap-extension-document-DwvKx2hp.js} +1 -1
- package/dist/{vendor-tiptap-extension-hard-break-9cxC2YOS.js → vendor-tiptap-extension-hard-break-CZuhkJI2.js} +10 -10
- package/dist/{vendor-tiptap-extension-heading-2w0TutHn.js → vendor-tiptap-extension-heading-D35S-y-k.js} +1 -1
- package/dist/{vendor-tiptap-extension-horizontal-rule-CFowa_lc.js → vendor-tiptap-extension-horizontal-rule-4Qo7zefW.js} +2 -2
- package/dist/{vendor-tiptap-extension-image-aWn-na6j.js → vendor-tiptap-extension-image-Bbpsr_TM.js} +1 -1
- package/dist/{vendor-tiptap-extension-italic-Bn-6saY0.js → vendor-tiptap-extension-italic-CiQh9zGx.js} +1 -1
- package/dist/{vendor-tiptap-extension-link-BmcG1_k-.js → vendor-tiptap-extension-link-CrsWLfRc.js} +2 -2
- package/dist/{vendor-tiptap-extension-list-BrNBJ45n.js → vendor-tiptap-extension-list-pQaMlGjQ.js} +1 -1
- package/dist/{vendor-tiptap-extension-paragraph-DAiYhwUB.js → vendor-tiptap-extension-paragraph-BrThgWMs.js} +1 -1
- package/dist/vendor-tiptap-extension-placeholder-CrwIFpUp.js +1 -0
- package/dist/{vendor-tiptap-extension-strike-DqbXPfos.js → vendor-tiptap-extension-strike-CyPVcK5D.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-DQwPaR7v.js → vendor-tiptap-extension-table-B7FEy-Bb.js} +3 -3
- package/dist/vendor-tiptap-extension-table-cell-Bbz2gi81.js +1 -0
- package/dist/vendor-tiptap-extension-table-header-Bbz2gi81.js +1 -0
- package/dist/vendor-tiptap-extension-table-row-Bbz2gi81.js +1 -0
- package/dist/{vendor-tiptap-extension-text-BFnfj70b.js → vendor-tiptap-extension-text-DqBjoYBM.js} +1 -1
- package/dist/{vendor-tiptap-extension-text-style-Darua3qr.js → vendor-tiptap-extension-text-style-DnaDmb_a.js} +1 -1
- package/dist/{vendor-tiptap-extension-underline-QyVnBqQZ.js → vendor-tiptap-extension-underline-fXgsxVmp.js} +1 -1
- package/dist/{vendor-tiptap-extensions-CU-D7bfm.js → vendor-tiptap-extensions-BFy2DVsW.js} +38 -38
- package/dist/{vendor-tiptap-markdown-BwATYN5A.js → vendor-tiptap-markdown-Ctlbws1-.js} +2 -2
- package/dist/vendor-tiptap-pm-6BAzdajG.js +1 -0
- package/dist/{vendor-tiptap-starter-kit-5luf7zzS.js → vendor-tiptap-starter-kit-BmGksOsA.js} +17 -17
- package/dist/{vendor-tiptap-vue-3-CFBErZGb.js → vendor-tiptap-vue-3-DKq4aaS7.js} +1 -1
- package/dist/{vendor-vue-i18n-CO5LWKE0.js → vendor-vue-i18n-DPqZrTrP.js} +315 -308
- package/package.json +5 -5
- package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-columns-header/vc-table-columns-header.vue +4 -5
- package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue +4 -5
- package/ui/components/organisms/vc-table/composables/useTableModifications.ts +25 -0
- package/dist/vendor-tiptap-extension-placeholder-9tURDKy-.js +0 -1
- package/dist/vendor-tiptap-extension-table-cell-C0tEP_0i.js +0 -1
- package/dist/vendor-tiptap-extension-table-header-C0tEP_0i.js +0 -1
- package/dist/vendor-tiptap-extension-table-row-C0tEP_0i.js +0 -1
- package/dist/vendor-tiptap-pm-d91nGny8.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.1.99-alpha.
|
|
3
|
+
"version": "1.1.99-alpha.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"@fullhuman/postcss-purgecss": "^7.0.2",
|
|
91
91
|
"@laynezh/vite-plugin-lib-assets": "v1.1.0",
|
|
92
92
|
"@types/dompurify": "^3.0.5",
|
|
93
|
-
"@vc-shell/api-client-generator": "1.1.99-alpha.
|
|
94
|
-
"@vc-shell/config-generator": "1.1.99-alpha.
|
|
95
|
-
"@vc-shell/ts-config": "1.1.99-alpha.
|
|
93
|
+
"@vc-shell/api-client-generator": "1.1.99-alpha.10",
|
|
94
|
+
"@vc-shell/config-generator": "1.1.99-alpha.10",
|
|
95
|
+
"@vc-shell/ts-config": "1.1.99-alpha.10",
|
|
96
96
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
97
97
|
"@vue/test-utils": "^2.4.5",
|
|
98
98
|
"cypress-signalr-mock": "^1.5.0",
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
},
|
|
115
115
|
"stableVersion": "1.1.90",
|
|
116
116
|
"npmTag": "alpha",
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "79a5b7034267f31747ff54020fdd9610617ab4b9"
|
|
118
118
|
}
|
|
@@ -34,11 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
item.align ? tableAlignment[item.align] : '',
|
|
36
36
|
]"
|
|
37
|
-
:style="
|
|
38
|
-
item.width
|
|
39
|
-
? { maxWidth: item.width, width: item.width, flex: '0 1 auto', minWidth: '60px' }
|
|
40
|
-
: { flex: '1 1 0', minWidth: '60px' }
|
|
41
|
-
"
|
|
37
|
+
:style="colsWithPixels(item.width)"
|
|
42
38
|
@mousedown="reorderableColumns && onColumnHeaderMouseDown($event)"
|
|
43
39
|
@dragstart="reorderableColumns && onColumnHeaderDragStart($event, item)"
|
|
44
40
|
@dragover="reorderableColumns && onColumnHeaderDragOver($event)"
|
|
@@ -121,6 +117,7 @@ import VcTableColumnSwitcher from "../../../vc-table-column-switcher/vc-table-co
|
|
|
121
117
|
import type { TableItem, TableColPartial } from "../../../../types";
|
|
122
118
|
import { useTableColumnReorder } from "../../../../composables/useTableColumnReorder";
|
|
123
119
|
import { useTableColumnResize } from "../../../../composables/useTableColumnResize";
|
|
120
|
+
import { useTableModifications } from "../../../../composables/useTableModifications";
|
|
124
121
|
import { ITableColumns } from "../../../../../../../../core/types";
|
|
125
122
|
|
|
126
123
|
const props = defineProps<{
|
|
@@ -179,6 +176,8 @@ const { resizer, handleMouseDown, columnResizing } = useTableColumnResize(
|
|
|
179
176
|
headerRef,
|
|
180
177
|
);
|
|
181
178
|
|
|
179
|
+
const { colsWithPixels } = useTableModifications();
|
|
180
|
+
|
|
182
181
|
// Additional flag to prevent clicks during resize
|
|
183
182
|
const isResizing = ref(false);
|
|
184
183
|
let resizeTimeout: NodeJS.Timeout;
|
|
@@ -43,11 +43,7 @@
|
|
|
43
43
|
:key="`${(item && typeof item === 'object' && 'id' in item && item.id) || index}_${cell.id}`"
|
|
44
44
|
class="vc-table-row__cell"
|
|
45
45
|
:class="[cell.class, { 'vc-table-row__cell--fixed-width': !!cell.width }]"
|
|
46
|
-
:style="
|
|
47
|
-
cell.width
|
|
48
|
-
? { maxWidth: cell.width, width: cell.width, flex: '0 1 auto', minWidth: '60px' }
|
|
49
|
-
: { flex: '1 1 0', minWidth: '60px' }
|
|
50
|
-
"
|
|
46
|
+
:style="colsWithPixels(cell.width)"
|
|
51
47
|
>
|
|
52
48
|
<div class="vc-table-row__cell-content">
|
|
53
49
|
<slot
|
|
@@ -112,6 +108,7 @@ import VcTableCell from "../../../vc-table-cell/vc-table-cell.vue";
|
|
|
112
108
|
import type { TableItem, TableColPartial } from "../../../../types";
|
|
113
109
|
import type { IActionBuilderResult, ITableColumns } from "../../../../../../../../core/types";
|
|
114
110
|
import { MaybeRef } from "vue";
|
|
111
|
+
import { useTableModifications } from "../../../../composables/useTableModifications";
|
|
115
112
|
defineProps<{
|
|
116
113
|
item: T;
|
|
117
114
|
index: number;
|
|
@@ -144,6 +141,8 @@ defineEmits<{
|
|
|
144
141
|
(e: "onEditComplete", args: { event: { field: string; value: string | number }; index: number }): void;
|
|
145
142
|
(e: "onCellBlur", args: { row: number | undefined; field: string }): void;
|
|
146
143
|
}>();
|
|
144
|
+
|
|
145
|
+
const { colsWithPixels } = useTableModifications();
|
|
147
146
|
</script>
|
|
148
147
|
|
|
149
148
|
<style lang="scss">
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const useTableModifications = () => {
|
|
2
|
+
const colsWithPixels = (_value: number | string | undefined) => {
|
|
3
|
+
let internalValue;
|
|
4
|
+
if (typeof _value === "number") {
|
|
5
|
+
internalValue = `${_value}px`;
|
|
6
|
+
}
|
|
7
|
+
internalValue = _value;
|
|
8
|
+
|
|
9
|
+
if (internalValue) {
|
|
10
|
+
return {
|
|
11
|
+
maxWidth: internalValue,
|
|
12
|
+
width: internalValue,
|
|
13
|
+
flex: "0 1 auto",
|
|
14
|
+
minWidth: "60px",
|
|
15
|
+
};
|
|
16
|
+
} else {
|
|
17
|
+
return {
|
|
18
|
+
flex: "1 1 0",
|
|
19
|
+
minWidth: "60px",
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
return { colsWithPixels };
|
|
25
|
+
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./vendor-tiptap-extensions-CU-D7bfm.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./vendor-tiptap-extension-table-DQwPaR7v.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./vendor-tiptap-extension-table-DQwPaR7v.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./vendor-tiptap-extension-table-DQwPaR7v.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./vendor-prosemirror-tables-mYok4vGT.js";
|