@cocreate/resize 1.2.0 → 1.2.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/CHANGELOG.md +21 -0
- package/demo/dashboard.html +2 -2
- package/package.json +3 -3
- package/src/index.js +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## [1.2.3](https://github.com/CoCreate-app/CoCreate-resize/compare/v1.2.2...v1.2.3) (2022-09-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* bump all of [@cocreate](https://github.com/cocreate) dependencies ([cf20765](https://github.com/CoCreate-app/CoCreate-resize/commit/cf20765caacc5918a895e652f49ab6d6d0f9f3da))
|
|
7
|
+
|
|
8
|
+
## [1.2.2](https://github.com/CoCreate-app/CoCreate-resize/compare/v1.2.1...v1.2.2) (2022-08-19)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* renamed order-by and order-type to filter-order-name and filter-order-type ([0f6c9e6](https://github.com/CoCreate-app/CoCreate-resize/commit/0f6c9e645cbdc750b5af1b1ea13dd9a934662889))
|
|
14
|
+
|
|
15
|
+
## [1.2.1](https://github.com/CoCreate-app/CoCreate-resize/compare/v1.2.0...v1.2.1) (2022-07-03)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* removed console.logs ([884c02e](https://github.com/CoCreate-app/CoCreate-resize/commit/884c02e8aeef5805d9269dbc0de518ff41789d11))
|
|
21
|
+
|
|
1
22
|
# [1.2.0](https://github.com/CoCreate-app/CoCreate-resize/compare/v1.1.76...v1.2.0) (2022-06-29)
|
|
2
23
|
|
|
3
24
|
|
package/demo/dashboard.html
CHANGED
|
@@ -116,8 +116,8 @@
|
|
|
116
116
|
<!-- Fetch and Render-->
|
|
117
117
|
<ul class="overflow:auto display:flex flex-direction:column width:100% height:calc(100vh_-_160px) bottom:10px margin-right:5px">
|
|
118
118
|
<div fetch-collection="modules"
|
|
119
|
-
order-
|
|
120
|
-
order-type="asc"
|
|
119
|
+
filter-order-name="main-menu-position"
|
|
120
|
+
filter-order-type="asc"
|
|
121
121
|
filter-name="main-menu-position"
|
|
122
122
|
filter-value="0"
|
|
123
123
|
filter-value-type="number"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/resize",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "A light weight resize handler make any element resizable by adding data attributes or usinng init object. Great for Customized text box or text area.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"resize",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"webpack-log": "^3.0.1"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@cocreate/docs": "^1.3.
|
|
64
|
-
"@cocreate/observer": "^1.5.
|
|
63
|
+
"@cocreate/docs": "^1.3.5",
|
|
64
|
+
"@cocreate/observer": "^1.5.4"
|
|
65
65
|
}
|
|
66
66
|
}
|
package/src/index.js
CHANGED
|
@@ -119,8 +119,6 @@ CoCreateResize.prototype = {
|
|
|
119
119
|
DIRECTIONS.map(d => {
|
|
120
120
|
if (this.Drags[d])
|
|
121
121
|
this.addListenerMulti(this.Drags[d], EVENTS[0], this.checkCorners[d]);
|
|
122
|
-
console.log('checkCorner', this.checkCorners[d])
|
|
123
|
-
console.log('drags', this.Drags[d])
|
|
124
122
|
});
|
|
125
123
|
},
|
|
126
124
|
|
|
@@ -185,20 +183,16 @@ CoCreateResize.prototype = {
|
|
|
185
183
|
|
|
186
184
|
initTopDrag: function(e) {
|
|
187
185
|
this.initDrag(e, 'top');
|
|
188
|
-
console.log('resize-top')
|
|
189
186
|
},
|
|
190
187
|
initBottomDrag: function(e) {
|
|
191
188
|
this.initDrag(e, 'bottom');
|
|
192
|
-
console.log('resize-bottom')
|
|
193
189
|
},
|
|
194
190
|
initLeftDrag: function(e) {
|
|
195
191
|
this.initDrag(e, 'left');
|
|
196
|
-
console.log('resize-left')
|
|
197
192
|
|
|
198
193
|
},
|
|
199
194
|
initRightDrag: function(e) {
|
|
200
195
|
this.initDrag(e, 'right');
|
|
201
|
-
console.log('resize-right')
|
|
202
196
|
},
|
|
203
197
|
|
|
204
198
|
//this is just for grid system
|
|
@@ -261,7 +255,6 @@ CoCreateResize.prototype = {
|
|
|
261
255
|
if (e.touches)
|
|
262
256
|
e = e.touches[0];
|
|
263
257
|
left = this.startLeft + e.clientX - this.startX;
|
|
264
|
-
console.log('left', left)
|
|
265
258
|
width = this.startWidth - e.clientX + this.startX;
|
|
266
259
|
|
|
267
260
|
if (width < 10)
|