Skip to content

Commit 3e84bcd

Browse files
committed
2 parents 7222034 + 0284d8e commit 3e84bcd

17 files changed

+4789
-2008
lines changed

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ docs/
2323
node_modules/
2424
public/assets/
2525
src/vite-env.d.ts
26-
tests/

package-lock.json

Lines changed: 4319 additions & 1816 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"@interactjs/interactjs": "^1.10.17",
9696
"@interactjs/modifiers": "^1.10.17",
9797
"element-resize-detector": "^1.2.4",
98-
"mitt": "^3.0.0"
98+
"mitt": "^3.0.1"
9999
},
100100
"devDependencies": {
101101
"@babel/types": "^7.20.5",
@@ -105,29 +105,29 @@
105105
"@types/node": "^18.11.11",
106106
"@typescript-eslint/eslint-plugin": "^5.45.1",
107107
"@typescript-eslint/parser": "^5.45.1",
108-
"@vitejs/plugin-vue": "^3.2.0",
109-
"@vitest/coverage-c8": "^0.28.4",
108+
"@vitejs/plugin-vue": "^5.2.3",
109+
"@vitest/coverage-c8": "^0.28.5",
110110
"@vitest/coverage-v8": "^0.34.6",
111-
"@vitest/ui": "^0.34.6",
111+
"@vitest/ui": "^0.34.7",
112112
"@vue/compiler-sfc": "^3.2.47",
113-
"@vue/theme": "^1.3.0",
113+
"@vue/theme": "^2.3.0",
114114
"@vue/tsconfig": "^0.1.3",
115115
"cross-env": "^7.0.3",
116116
"cz-conventional-changelog": "^3.3.0",
117-
"eslint": "^8.29.0",
117+
"eslint": "^8.57.1",
118118
"eslint-config-airbnb-base": "^15.0.0",
119-
"eslint-plugin-import": "^2.26.0",
119+
"eslint-plugin-import": "^2.31.0",
120120
"eslint-plugin-import-quotes": "^0.0.1",
121-
"eslint-plugin-prettier": "^4.2.1",
122-
"eslint-plugin-vue": "^9.8.0",
121+
"eslint-plugin-prettier": "^5.2.6",
122+
"eslint-plugin-vue": "^9.33.0",
123123
"husky": "^8.0.3",
124124
"jsdom": "^21.1.0",
125-
"lint-staged": "^13.1.0",
125+
"lint-staged": "^13.3.0",
126126
"path": "^0.12.7",
127127
"postcss": "^8.4.21",
128128
"postcss-html": "^1.5.0",
129129
"postcss-scss": "^4.0.6",
130-
"prettier": "^2.8.3",
130+
"prettier": "^3.5.3",
131131
"sass": "^1.58.3",
132132
"sass-loader": "^13.2.0",
133133
"scss": "^0.2.4",
@@ -138,12 +138,11 @@
138138
"stylelint-config-standard-scss": "^3.0.0",
139139
"stylelint-order": "^5.0.0",
140140
"ttypescript": "^1.5.15",
141-
"typescript": "^4.9.3",
142-
"unplugin-vue-markdown": "^0.24.3",
143-
"vite": "^3.0.0",
141+
"typescript": "^4.9.5",
142+
"unplugin-vue-markdown": "^28.3.1",
143+
"vite": "^6.3.2",
144144
"vite-plugin-dts": "^1.7.3",
145-
"vite-plugin-vue-markdown": "^0.22.2",
146-
"vitepress": "^1.0.0-alpha.45",
145+
"vitepress": "^1.6.3",
147146
"vitest": "^0.34.6",
148147
"vue": "^3.2.0",
149148
"vue-eslint-parser": "^9.1.0",

sandbox/App.vue

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,6 @@ import {getFirstCollision} from "../src/core/gridlayout/helpers/collissionHelper
241241
242242
// Model for select dropdown.
243243
const updateSelected = (val: string[]): void => {
244-
// debugger;
245-
// console.error(val);
246244
if (val.length > 0 && val.includes('All')) {
247245
selected.value = ['All'];
248246
}
@@ -264,8 +262,8 @@ const isDraggable = ref(true);
264262
const isMirrored = ref(false);
265263
const isResizable = ref(true);
266264
const isResponsive = ref(true);
267-
const marginLeftRight = ref(10);
268-
const marginTopBottom = ref(10);
265+
const marginLeftRight = ref(0);
266+
const marginTopBottom = ref(0);
269267
const maxRows = ref(10);
270268
const preserveAspectRatio = ref(false);
271269
const preventCollision = ref(false);
@@ -298,14 +296,14 @@ const onMaxRowsChange = (): void => {
298296
};
299297
300298
const onMarginTopBottomChange = (): void => {
301-
if (marginTopBottom.value < 1) {
302-
marginTopBottom.value = 1;
299+
if (marginTopBottom.value < 0) {
300+
marginTopBottom.value = 0;
303301
}
304302
};
305303
306304
const onMarginLeftRightChange = (): void => {
307-
if (marginLeftRight.value < 1) {
308-
marginLeftRight.value = 1;
305+
if (marginLeftRight.value < 0) {
306+
marginLeftRight.value = 0;
309307
}
310308
};
311309

sandbox/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,12 @@ export const testDataOne: TLayout = [
164164

165165
export const testDataTwo: TLayout = [
166166
{
167-
i: 1,
167+
i: 'test',
168168
h: 2,
169169
w: 1,
170170
x: 2,
171171
y: 0,
172-
isDraggable: false,
172+
isDraggable: true,
173173
isResizable: true,
174174
},
175175
]

0 commit comments

Comments
 (0)