@cocreate/events 1.6.0 → 1.6.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/CHANGELOG.md +14 -0
- package/demo/click.html +1 -1
- package/demo/index.html +1 -1
- package/demo/selected.html +1 -1
- package/package.json +1 -1
- package/src/index.js +2 -3
- package/demo/set-value.html +0 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.6.2](https://github.com/CoCreate-app/CoCreate-events/compare/v1.6.1...v1.6.2) (2023-03-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* remove set-value demo ([6df371c](https://github.com/CoCreate-app/CoCreate-events/commit/6df371cabd6745359abac5a2028e8c0749143cc8))
|
|
7
|
+
|
|
8
|
+
## [1.6.1](https://github.com/CoCreate-app/CoCreate-events/compare/v1.6.0...v1.6.1) (2023-03-16)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* events undefined ([113384c](https://github.com/CoCreate-app/CoCreate-events/commit/113384c5a7b300daf4ab7cc74d25ab9cdb2fbf8c))
|
|
14
|
+
|
|
1
15
|
# [1.6.0](https://github.com/CoCreate-app/CoCreate-events/compare/v1.5.0...v1.6.0) (2023-03-16)
|
|
2
16
|
|
|
3
17
|
|
package/demo/click.html
CHANGED
|
@@ -64,6 +64,6 @@
|
|
|
64
64
|
|
|
65
65
|
<!-- <script src="../dist/CoCreate-events.js"></script> -->
|
|
66
66
|
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js" ></script>
|
|
67
|
-
<!-- <script src="
|
|
67
|
+
<!-- <script src="https://cdn.cocreate.app/1.48.0/CoCreate.min.js" ></script> -->
|
|
68
68
|
</body>
|
|
69
69
|
</html>
|
package/demo/index.html
CHANGED
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
<input placeholder="Search all attributes" input-value input-key="keyname" input-target="#keyname">
|
|
81
81
|
|
|
82
82
|
<!--<script src="../dist/CoCreate-events.js"></script>-->
|
|
83
|
-
<script src="
|
|
83
|
+
<script src="https://cdn.cocreate.app/1.48.0/CoCreate.min.js"></script>
|
|
84
84
|
<!-- <script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script> -->
|
|
85
85
|
|
|
86
86
|
</body>
|
package/demo/selected.html
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
</div>
|
|
49
49
|
|
|
50
50
|
<!-- <script src="../dist/CoCreate-selected.js"></script> -->
|
|
51
|
-
<script src="
|
|
51
|
+
<script src="https://cdn.cocreate.app/1.48.0/CoCreate.min.js"></script>
|
|
52
52
|
<!-- <script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script> -->
|
|
53
53
|
</body>
|
|
54
54
|
</html>
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -107,7 +107,8 @@ const CoCreateEvents = {
|
|
|
107
107
|
events = customEvents
|
|
108
108
|
prefixes[prefix] = events
|
|
109
109
|
}
|
|
110
|
-
|
|
110
|
+
if (!events)
|
|
111
|
+
events = []
|
|
111
112
|
if (events.includes('onload'))
|
|
112
113
|
this.__updateElements(el, prefix);
|
|
113
114
|
|
|
@@ -141,8 +142,6 @@ const CoCreateEvents = {
|
|
|
141
142
|
// debounce = setTimeout(function() {
|
|
142
143
|
const target = event.currentTarget
|
|
143
144
|
if (target) {
|
|
144
|
-
if (target.id == "testtemplate1" || target.id == "testtemplate2")
|
|
145
|
-
console.log(target.id)
|
|
146
145
|
let attribute = target.getAttribute('actions') || ""
|
|
147
146
|
if (attribute.includes(prefix))
|
|
148
147
|
return;
|
package/demo/set-value.html
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<title>Value | CoCreateJS</title>
|
|
5
|
-
|
|
6
|
-
<!-- CoCreate Favicon -->
|
|
7
|
-
<link rel="icon" href="https://cdn.cocreate.app/favicon.ico" type="image/ico" sizes="16x16">
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<div click-target="#testing" click-value="hello, bye" click-key="ty">
|
|
11
|
-
<span id="testing" class="{{ty}}">other content</span>
|
|
12
|
-
</div>
|
|
13
|
-
|
|
14
|
-
<script src="../../../CoCreateJS/dist/CoCreate.js"></script>
|
|
15
|
-
<!-- <script src="https://cdn.cocreate.app/latest/CoCreate.min.js" ></script> -->
|
|
16
|
-
|
|
17
|
-
</body>
|
|
18
|
-
</html>
|