Skip to content

Commit 8fdb9b7

Browse files
committed
jbaysolutions#785 Update branch vue3
0 parents  commit 8fdb9b7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+25286
-0
lines changed

.browserslistrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not ie <= 8

.eslintrc.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
'extends': [
7+
'plugin:vue/essential',
8+
'eslint:recommended'
9+
],
10+
rules: {
11+
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
12+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
13+
},
14+
parserOptions: {
15+
parser: 'babel-eslint'
16+
}
17+
}

.github/ISSUE_TEMPLATE/bug_report.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Software version (please complete the following information):**
11+
- Browser [e.g. chrome, safari]
12+
- Vue Version [e.g. 2.5.7]
13+
- vue-grid-layout Version: [e.g. 2.3.3]
14+
15+
**Describe the bug**
16+
A clear and concise description of what the bug is.
17+
18+
Please use the [CodeSandbox Template](https://codesandbox.io/s/5wy3rz5z1x?module=%2Fsrc%2FShowcaseLayout.js) to demonstrate your bug. It is much easier for us to help you if you do.
19+
20+
21+
**To Reproduce**
22+
Steps to reproduce the behavior:
23+
1. Go to '...'
24+
2. Click on '....'
25+
3. Scroll down to '....'
26+
4. See error
27+
28+
**Expected behavior**
29+
A clear and concise description of what you expected to happen.
30+
31+
**Screenshots**
32+
If applicable, add screenshots to help explain your problem.
33+
34+
**Additional context**
35+
Add any other context about the problem here.
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## If you have a feature request, please try to implement it before requesting it. <br/>This is free software and the author is busy with other projects.
11+
12+
**Is your feature request related to a problem? Please describe.**
13+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
14+
15+
**Describe the solution you'd like**
16+
A clear and concise description of what you want to happen.
17+
18+
**Describe alternatives you've considered**
19+
A clear and concise description of any alternative solutions or features you've considered.
20+
21+
**Additional context**
22+
Add any other context or screenshots about the feature request here.

.gitignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
.DS_Store
2+
node_modules
3+
#/dist
4+
dist/demo.html
5+
6+
# local env files
7+
.env.local
8+
.env.*.local
9+
10+
# Log files
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
15+
# Editor directories and files
16+
.idea
17+
.vscode
18+
*.suo
19+
*.ntvs*
20+
*.njsproj
21+
*.sln
22+
*.sw*
23+
24+
yarn.lock
25+
yarn-error.log

CHANGELOG.md

+144
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
# Changelog
2+
3+
## 2.3.9 (September 28, 2020)
4+
5+
* Fix plugin installation (fixes #311) (thanks [yfwz100](https://github.com/yfwz100))
6+
* Bumped interact.js to 1.9.22
7+
8+
## 2.3.8 (July 31, 2020)
9+
10+
* Make margins reactive (thanks [yfwz100](https://github.com/yfwz100))
11+
* Added missing 'layout-updated' events (thanks [ben-lau](https://github.com/ben-lau))
12+
* Support for initial responsive layouts and breakpoint change event (thanks [ftylitak](https://github.com/ftylitak))
13+
* Bugfix for possible error when layout items get removed and interactObj is not set (thanks [Tofandel](https://github.com/Tofandel))
14+
* Fix wrong grid item sorting in responsive mode (thanks [pieterbeulque](https://github.com/pieterbeulque))
15+
16+
## 2.3.7 (Oct 31, 2019)
17+
18+
* renamed 'resized' event emitted when the container changes size (browser window or other), introduced in #337, fixes #358
19+
* bugfix on layout-ready event
20+
21+
## 2.3.6 (Sep 11, 2019)
22+
23+
* reverted grid item w and h previous rounding change, fixes #355
24+
25+
## 2.3.5 (Sep 7, 2019)
26+
27+
* Fix: no-touch on mobile and only if item is draggable or resizable (thanks [DGoms](https://github.com/DGoms)).
28+
* Prevent collision feature (thanks [SheanDe](https://github.com/SheanDe)).
29+
* Simplified Chinese README (thanks [harrywangchina](https://github.com/harrywangchina)).
30+
* 'resized' event now emitted if grid item is resized due to changes other than a manual resize (e.g. browser window resize) (thanks [pmorch](https://github.com/pmorch)).
31+
* Improvement on 'layout-ready' event emit (thanks [pmorch](https://github.com/pmorch)).
32+
* Added watchers for min/max height and width (thanks [grinat](https://github.com/grinat)).
33+
* Improvement: make sure the size of grid-item is bigger than the slot-item (thanks [ywmail](https://github.com/ywmail)).
34+
35+
## 2.3.4 (Mar 5, 2019)
36+
37+
* Support for static items (thanks [panjiangyi](https://github.com/panjiangyi)).
38+
* RTL bugfix (thanks [irvingwa](https://github.com/irvingwa)).
39+
* Memory leak fixes (thanks [aiankile](https://github.com/aiankile)).
40+
* Fixed exception on grid layout mount (thanks [BenoitZugmeyer](https://github.com/BenoitZugmeyer)).
41+
* Fixed overlapping and resizing bugs on responsive mode (thanks [shpfive](https://github.com/shpfive)).
42+
* Added new events emited by GridLayout (layout-created, layout-before-mount, layout-mounted, layout-ready) (thanks [samuelmolinski](https://github.com/samuelmolinski)).
43+
44+
## 2.3.3 (Dec 26, 2018)
45+
46+
* Reverted adding vue as external, which caused problems loading umd.
47+
48+
## 2.3.2 (Dec 13, 2018)
49+
50+
* Added vue as externals webpack config to fix startup problems (thanks [Micene9](https://github.com/Micene09))
51+
52+
## 2.3.1 (Nov 6, 2018)
53+
54+
* Previous fix for touch dragging on Android broke dragging on other mobile browsers (thanks [onx2](https://github.com/onx2))
55+
56+
57+
## 2.3.0 (Oct 26, 2018)
58+
59+
* Responsive layout support (thanks [shpfive](https://github.com/shpfive))
60+
* Fix for touch dragging on Android (thanks [pbabey](https://github.com/pbabey))
61+
62+
## 2.2.0 (Sep 10, 2018)
63+
64+
* changed project structure and build using Vue CLI
65+
* GridItem new autosize method. For now, need to be called from child component with this.$parent.autoSize() (thanks[mech01nc01](https://github.com/mech01nc01))
66+
* Abstract DOM related calls for initial SSR Support (thanks[Kukks](https://github.com/Kukks))
67+
* GridItem.i can now be a number or a string (thanks[xch1029](https://github.com/xch1029))
68+
* Use interactjs size restrictions to limit resizing (thanks[LuisCarreras](https://github.com/LuisCarreras))
69+
* Fixed interactjs instance leak on instance release (thanks[zzuligy](https://github.com/zzuligy))
70+
71+
## 2.1.13 (May 2, 2018)
72+
73+
* Resize event now also emits dimensions in pixels (thanks [buremba](https://github.com/buremba))
74+
* Support for dynamic col-num (#121) (thanks [ittus](https://github.com/ittus))
75+
76+
## 2.1.12 (Fev 27, 2018)
77+
78+
* Updated interact.js to 1.3.3 (#144)
79+
80+
## 2.1.11 (Jan 5, 2018)
81+
82+
* Fixed issue with multiple grids on same vm (#134) (thanks [Suen](https://github.com/sunzongzheng))
83+
* Fixed issue with layout update on reassignment (#130) (thanks [daizengyu](https://github.com/daizengyu123))
84+
85+
## 2.1.10 (Dec 15, 2017)
86+
87+
* Fixed possible bug related with #119
88+
* Changed css translate to translate3d (#96)
89+
* Added is-mirrored config, allowing the grid items to be rendered from right to left (horizontal flip) (thanks [kweij](https://github.com/kweij))
90+
* Added grid updated event for easier integration with vuex (thanks [SergeyKhval](https://github.com/SergeyKhval))
91+
92+
## 2.1.9 (Aug 17, 2017)
93+
94+
* Fixed local module reference to interact.js
95+
96+
## 2.1.8 (Aug 17, 2017)
97+
98+
* Fixed #61 and #37
99+
* Fixed #82
100+
* Fixed #87
101+
102+
## 2.1.7 (Aug 17, 2017)
103+
104+
* Fixed #59
105+
* Fixed #83
106+
* Implemented support for dragAllowFrom and dragIgnoreFrom props on GridItem (thanks [ThePlastic](https://github.com/ThePlastic))
107+
108+
## 2.1.6 (Apr 6, 2017)
109+
110+
* Fixed #43, configurable drag elements ignore on grid item contents (thanks [neithere](https://github.com/neithere))
111+
* Fix for getLayoutItem, sometimes returns null elements (thanks [pbabey](https://github.com/pbabey))
112+
113+
## 2.1.5 (Mar 24, 2017)
114+
115+
* Really fixed #22 #32, multiple grid instances were not working properly in 2.1.4
116+
* resizedEvent now also returns item width and height in pixels (implements #34)
117+
118+
119+
## 2.1.4 (Mar 20, 2017)
120+
121+
* Implemented #32, support for multiple grid instances on the same page
122+
123+
## 2.1.3 (Mar 9, 2017)
124+
125+
* Fixed #27, props mutation warnings
126+
127+
128+
## 2.1.2 (Fev 16, 2017)
129+
130+
* Implemented #12, buttons on GridItems would trigger drag on mobile
131+
* Implemented #24, listeners removal beforeDestroy (thanks [pbabey](https://github.com/pbabey))
132+
133+
134+
## 2.1.1 (Fev 9, 2017)
135+
136+
* Implemented #13, dynamic row height update support
137+
* Implemented #23, dynamic enable/disable dragging and resizing support
138+
* Implemented #21, moved and resized events
139+
140+
141+
## 2.1.0 (Fev 6, 2017)
142+
143+
* RTL support (thanks [easteregg](https://github.com/easteregg))
144+
* Move and resize events (thanks [ThePlastic](https://github.com/ThePlastic))

LICENSE

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 greyby
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

0 commit comments

Comments
 (0)