@m3ui-vue/m3ui-vue 1.3.1 → 1.3.2
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 +174 -160
- 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/MFloorPlanToolbar.vue +2 -2
package/dist/API.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @m3ui-vue/m3ui-vue 1.3.
|
|
1
|
+
# @m3ui-vue/m3ui-vue 1.3.2 — API reference
|
|
2
2
|
|
|
3
3
|
Material Design 3 components for Vue 3 + Tailwind CSS v4. Generated from the source by
|
|
4
4
|
`scripts/generate-api.mjs`; full docs with live demos at https://m3ui.dev.
|
|
@@ -1402,6 +1402,8 @@ Props:
|
|
|
1402
1402
|
- `showGrid?: boolean = true` — Draw the grid while editing
|
|
1403
1403
|
- `chairs?: boolean = true` — Draw chairs from `seats`
|
|
1404
1404
|
- `decorKinds?: Record<string, FloorDecorKind>` — Decor kinds of yours, or the built-in ones restyled (merged over them by name)
|
|
1405
|
+
- `rotatable?: boolean = true` — The handle that turns the picked table or decor (off when your app doesn't keep angles)
|
|
1406
|
+
- `dragMerged?: boolean = false` — Dragging (or nudging) a merged table moves its whole merge with it
|
|
1405
1407
|
- `selectable?: "none" | "multiple" | "single" = "none"` — Outside editing, what a click on a table selects: nothing, one, or several (toggling; to merge them)
|
|
1406
1408
|
- `canMerge?: ((ids: (string | number)[]) => string | boolean)` — Whether these tables may be merged: `true`, or `false` / a reason to refuse (shown by `merge-refused`)
|
|
1407
1409
|
- `label?: string` — Accessible name
|
|
@@ -1582,7 +1584,7 @@ Props:
|
|
|
1582
1584
|
{ shape: "round", seats: 4 },
|
|
1583
1585
|
{ shape: "square", seats: 4 },
|
|
1584
1586
|
{ shape: "rect", seats: 6 },
|
|
1585
|
-
]` — Tables offered by Add a table (name, shape, seats, size…)
|
|
1587
|
+
]` — Tables offered by Add a table (name, shape, seats, size…); `[]` hides it, when your app creates tables elsewhere
|
|
1586
1588
|
- `decor?: string[]` — Decor kinds offered (default: every kind the plan knows, yours included)
|
|
1587
1589
|
- `tools?: boolean = true` — Move / wall / zone
|
|
1588
1590
|
- `history?: boolean = true` — Undo and redo
|