@cocreate/element-prototype 1.35.0 → 2.0.0
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/.github/FUNDING.yml +1 -1
- package/.github/workflows/automated.yml +18 -7
- package/CHANGELOG.md +446 -415
- package/CONTRIBUTING.md +6 -6
- package/CoCreate.config.js +2 -2
- package/README.md +125 -18
- package/demo/index.html +2 -2
- package/docs/index.html +4 -4
- package/package.json +7 -7
- package/src/getAttribute.js +44 -10
- package/src/getValue.js +332 -554
- package/src/index.js +188 -1
- package/src/setValue.js +310 -255
- package/test/getAttributeAst.test.mjs +104 -0
- package/test/password-value.test.cjs +48 -0
- package/test/value-handler.test.cjs +320 -0
package/src/index.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
// Commercial Licensing Information:
|
|
19
19
|
// For commercial use of this software without the copyleft provisions of the AGPLv3,
|
|
20
20
|
// you must obtain a commercial license from CoCreate LLC.
|
|
21
|
-
// For details, visit <https://
|
|
21
|
+
// For details, visit <https://CoCreateJS.com/licenses/> or contact us at sales@CoCreateJS.com.
|
|
22
22
|
|
|
23
23
|
import { getAttribute } from "./getAttribute.js";
|
|
24
24
|
import { setValue } from "./setValue.js";
|
|
@@ -26,8 +26,195 @@ import { getValue } from "./getValue.js";
|
|
|
26
26
|
import { queryElements } from "./queryElements.js";
|
|
27
27
|
|
|
28
28
|
export default {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @public
|
|
32
|
+
* @environment client
|
|
33
|
+
*/
|
|
29
34
|
getAttribute,
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @public
|
|
38
|
+
* @environment client
|
|
39
|
+
*/
|
|
30
40
|
getValue,
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @public
|
|
44
|
+
* @environment client
|
|
45
|
+
*/
|
|
31
46
|
setValue,
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @public
|
|
50
|
+
* @environment client
|
|
51
|
+
*/
|
|
32
52
|
queryElements
|
|
33
53
|
};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @name array
|
|
58
|
+
* @kind member
|
|
59
|
+
* @attribute
|
|
60
|
+
* @environment client
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @name component
|
|
66
|
+
* @kind member
|
|
67
|
+
* @attribute
|
|
68
|
+
* @environment client
|
|
69
|
+
*/
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @name contenteditable
|
|
74
|
+
* @kind member
|
|
75
|
+
* @attribute
|
|
76
|
+
* @environment client
|
|
77
|
+
*/
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @name editor
|
|
82
|
+
* @kind member
|
|
83
|
+
* @attribute
|
|
84
|
+
* @environment client
|
|
85
|
+
*/
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @name key
|
|
90
|
+
* @kind member
|
|
91
|
+
* @attribute
|
|
92
|
+
* @environment client
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @name locale
|
|
98
|
+
* @kind member
|
|
99
|
+
* @attribute
|
|
100
|
+
* @environment client
|
|
101
|
+
*/
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @name multiple
|
|
106
|
+
* @kind member
|
|
107
|
+
* @attribute
|
|
108
|
+
* @environment client
|
|
109
|
+
*/
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @name now
|
|
114
|
+
* @kind member
|
|
115
|
+
* @attribute
|
|
116
|
+
* @environment client
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @name object
|
|
122
|
+
* @kind member
|
|
123
|
+
* @attribute
|
|
124
|
+
* @environment client
|
|
125
|
+
*/
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @name set-value-prefix
|
|
130
|
+
* @kind member
|
|
131
|
+
* @attribute
|
|
132
|
+
* @environment client
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @name set-value-suffix
|
|
138
|
+
* @kind member
|
|
139
|
+
* @attribute
|
|
140
|
+
* @environment client
|
|
141
|
+
*/
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* @name src
|
|
146
|
+
* @kind member
|
|
147
|
+
* @attribute
|
|
148
|
+
* @environment client
|
|
149
|
+
*/
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @name srcdoc
|
|
154
|
+
* @kind member
|
|
155
|
+
* @attribute
|
|
156
|
+
* @environment client
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @name state_id
|
|
162
|
+
* @kind member
|
|
163
|
+
* @attribute
|
|
164
|
+
* @environment client
|
|
165
|
+
*/
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* @name time-ago-limit
|
|
170
|
+
* @kind member
|
|
171
|
+
* @attribute
|
|
172
|
+
* @environment client
|
|
173
|
+
*/
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @name time-to-units
|
|
178
|
+
* @kind member
|
|
179
|
+
* @attribute
|
|
180
|
+
* @environment client
|
|
181
|
+
*/
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @name type
|
|
186
|
+
* @kind member
|
|
187
|
+
* @attribute
|
|
188
|
+
* @environment client
|
|
189
|
+
*/
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @name use-utc
|
|
194
|
+
* @kind member
|
|
195
|
+
* @attribute
|
|
196
|
+
* @environment client
|
|
197
|
+
*/
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
*
|
|
201
|
+
* @name value
|
|
202
|
+
* @kind member
|
|
203
|
+
* @attribute
|
|
204
|
+
* @environment client
|
|
205
|
+
*/
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
* @name week-start-day
|
|
210
|
+
* @kind member
|
|
211
|
+
* @attribute
|
|
212
|
+
* @environment client
|
|
213
|
+
*/
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* A simple element-prototype component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.
|
|
217
|
+
*
|
|
218
|
+
* @module element-prototype
|
|
219
|
+
* @environment client
|
|
220
|
+
*/
|