@m3ui-vue/m3ui-vue 1.3.1 → 1.3.3
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/API.md +4 -2
- package/dist/api.json +1 -1
- package/dist/components/MFloorPlan.vue.d.ts +10 -0
- package/dist/components/MFloorPlanToolbar.vue.d.ts +2 -2
- package/dist/m3ui.js +176 -162
- package/dist/m3ui.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/MFloorPlan.test.ts +30 -0
- package/src/components/MFloorPlan.vue +17 -4
- package/src/components/MFloorPlanInspector.vue +3 -3
- package/src/components/MFloorPlanToolbar.vue +2 -2
|
@@ -97,6 +97,10 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
97
97
|
chairs?: boolean;
|
|
98
98
|
/** Decor kinds of yours, or the built-in ones restyled (merged over them by name) */
|
|
99
99
|
decorKinds?: Record<string, FloorDecorKind>;
|
|
100
|
+
/** The handle that turns the picked table or decor (off when your app doesn't keep angles) */
|
|
101
|
+
rotatable?: boolean;
|
|
102
|
+
/** Dragging (or nudging) a merged table moves its whole merge with it */
|
|
103
|
+
dragMerged?: boolean;
|
|
100
104
|
/** Outside editing, what a click on a table selects: nothing, one, or several (toggling; to merge them) */
|
|
101
105
|
selectable?: "none" | "single" | "multiple";
|
|
102
106
|
/** Whether these tables may be merged: `true`, or `false` / a reason to refuse (shown by `merge-refused`) */
|
|
@@ -167,6 +171,10 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
167
171
|
chairs?: boolean;
|
|
168
172
|
/** Decor kinds of yours, or the built-in ones restyled (merged over them by name) */
|
|
169
173
|
decorKinds?: Record<string, FloorDecorKind>;
|
|
174
|
+
/** The handle that turns the picked table or decor (off when your app doesn't keep angles) */
|
|
175
|
+
rotatable?: boolean;
|
|
176
|
+
/** Dragging (or nudging) a merged table moves its whole merge with it */
|
|
177
|
+
dragMerged?: boolean;
|
|
170
178
|
/** Outside editing, what a click on a table selects: nothing, one, or several (toggling; to merge them) */
|
|
171
179
|
selectable?: "none" | "single" | "multiple";
|
|
172
180
|
/** Whether these tables may be merged: `true`, or `false` / a reason to refuse (shown by `merge-refused`) */
|
|
@@ -211,6 +219,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
211
219
|
statuses: Record<string, FloorStatus>;
|
|
212
220
|
editable: boolean;
|
|
213
221
|
chairs: boolean;
|
|
222
|
+
rotatable: boolean;
|
|
223
|
+
dragMerged: boolean;
|
|
214
224
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
215
225
|
area?: (props: {
|
|
216
226
|
area: FloorArea;
|
|
@@ -11,7 +11,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
11
11
|
plan?: {
|
|
12
12
|
context: FloorPlanContext;
|
|
13
13
|
} | FloorPlanContext | null;
|
|
14
|
-
/** Tables offered by Add a table (name, shape, seats, size…) */
|
|
14
|
+
/** Tables offered by Add a table (name, shape, seats, size…); `[]` hides it, when your app creates tables elsewhere */
|
|
15
15
|
tables?: FloorTablePreset[];
|
|
16
16
|
/** Decor kinds offered (default: every kind the plan knows, yours included) */
|
|
17
17
|
decor?: string[];
|
|
@@ -24,7 +24,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
24
24
|
plan?: {
|
|
25
25
|
context: FloorPlanContext;
|
|
26
26
|
} | FloorPlanContext | null;
|
|
27
|
-
/** Tables offered by Add a table (name, shape, seats, size…) */
|
|
27
|
+
/** Tables offered by Add a table (name, shape, seats, size…); `[]` hides it, when your app creates tables elsewhere */
|
|
28
28
|
tables?: FloorTablePreset[];
|
|
29
29
|
/** Decor kinds offered (default: every kind the plan knows, yours included) */
|
|
30
30
|
decor?: string[];
|