Skip to content

Commit 2340ea5

Browse files
committed
1.0.15
1 parent 792a9a2 commit 2340ea5

File tree

2 files changed

+60
-3
lines changed

2 files changed

+60
-3
lines changed

CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
## v1.0.15
2+
3+
> `2023-03-02`
4+
5+
### 🎉 Feature
6+
- Added responsive columns resizing and working device selector.
7+
- New config options: `breakpoints`.
8+
- Disabling `remove`, `clone`, `move` or `resize` for certain elements will disable it for their parent containers and lists.
9+
- Added `HEIC/HEIF` extensions and mime types.
10+
- `Clear form` now resets the whole form to default state instead of just clearing elements.
11+
12+
### 🐞 Bug Fixes
13+
- Load back non-numeric list keys to checkbox group's and radio group's items.
14+
- Refresh conditions for nested elements as well when switching to preview.
15+
- App froze when selecting `equal to` condition for an element which was refering an element in a nested list.
16+
- Tags options were not shown if tags was first clicked after a multiselect.
17+
- If a tab or step was selected when loading a form the config panel became unclickable.
18+
119
## v1.0.14
220

321
> `2023-02-17`

README.md

+42-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ app.use(VueformBuilder, builderConfig)
5454
Add Vueform Builder styles to your main stylesheet:
5555

5656
```css
57-
@import "./path/to/node_modules/@vueform/builder/index.css";
57+
@import "@vueform/builder/index.css";
58+
/* or */
59+
/* @import "./path/to/node_modules/@vueform/builder/index.css"; */
5860
```
5961

6062
#### 6. Update `tailwind.config.js`
@@ -221,7 +223,17 @@ The following options are for configuring different aspects of the builder's lay
221223
export default {
222224
search: true,
223225
views: ['editor', 'preview', 'code'],
224-
devices: ['desktop', 'tablet', 'mobile'],
226+
devices: ['tablet', 'desktop'], // set to `false` to hide device selector and disable responsive column resizing
227+
breakpoints: {
228+
tablet: {
229+
breakpoint: 'sm',
230+
viewportSize: 640, // used only to inform users about the viewport size related to `tablet` view
231+
},
232+
desktop: {
233+
breakpoint: 'lg',
234+
viewportSize: 1024, // used only to inform users about the viewport size related to `desktop` view
235+
},
236+
}, // the breakpoints tied to devices
225237
darkMode: ['light', 'dark'],
226238
toggleLeft: true,
227239
toggleRight: true,
@@ -231,9 +243,34 @@ export default {
231243
modelPreview: true,
232244
leftPanel: ['elements', 'tree'],
233245
rightPanel: ['form', 'theme', 'export', 'settings', 'model'],
246+
defaultWidth: 432,
234247
}
235248
```
236249

250+
#### Changing Device Breakpoints
251+
252+
Vueform is using a mobile-first breakpoint system when it comes to resizing columns on different devices and viewport sizes. The default breakpoints are based on Tailwind CSS: https://tailwindcss.com/docs/responsive-design
253+
254+
By default the `tablet` breakpoint will use `sm` and `desktop` will use `lg`, which means that column sizing made under `tablet` view will have effect on `sm` breakpoint and up and the same is true for `desktop` with `lg`. If you want to change these to eg. `tablet` -> `md` first you need to update the `breakpoints.tablet.breakpoint` to `md` in the config. Second you need to include the `scss` version of Vueform Builder's styles and set `$vfb-tablet-breakpoint` to `md` as well. Here's an example:
255+
256+
```css
257+
/* Your original CSS import */
258+
259+
@import "@vueform/builder/index.css";
260+
```
261+
262+
Replace it with the following in a file where you can import `scss` and make sure you have an scss loader:
263+
264+
```scss
265+
/* Using SCSS import instead of CSS with a custom variable */
266+
267+
$vfb-tablet-breakpoint: 'md';
268+
269+
@import "@vueform/builder/scss/index.scss";
270+
```
271+
272+
If you want to change the breakpoint related to `desktop`, you can use `$vfb-desktop-breakpoint` variable.
273+
237274
## Elements
238275

239276
The following options configure the available elements & element categories.
@@ -5422,6 +5459,8 @@ export default {
54225459
}
54235460
```
54245461

5462+
Containers and lists containing an element with disabled features will also have their features disabled. This is true for each from above except `edit`.
5463+
54255464
## Available Element Types
54265465

54275466
Here's the list of available element types that can be used:
@@ -7453,7 +7492,7 @@ export default {
74537492
},
74547493
options: {
74557494
['native'],
7456-
['search'],
7495+
['!', 'search'],
74577496
['!', 'create'],
74587497
['!', 'behavior'],
74597498
['ui'],

0 commit comments

Comments
 (0)