@cocreate/local-storage 1.7.3 → 1.7.4
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 +8 -0
- package/demo/index.html +81 -28
- package/docs/index.html +338 -106
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [1.7.4](https://github.com/CoCreate-app/CoCreate-local-storage/compare/v1.7.3...v1.7.4) (2023-06-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* format demo html ([d1d6449](https://github.com/CoCreate-app/CoCreate-local-storage/commit/d1d6449f690c1fb47f562de3cd1dde741be2e998))
|
|
7
|
+
* Update dependencies versions for [@cocreate](https://github.com/cocreate) libraries ([6a86f40](https://github.com/CoCreate-app/CoCreate-local-storage/commit/6a86f40559e12b28b5609fdfa4c7162559b118d8))
|
|
8
|
+
|
|
1
9
|
## [1.7.3](https://github.com/CoCreate-app/CoCreate-local-storage/compare/v1.7.2...v1.7.3) (2023-05-21)
|
|
2
10
|
|
|
3
11
|
|
package/demo/index.html
CHANGED
|
@@ -1,38 +1,91 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
2
|
+
<html lang="en">
|
|
3
3
|
<head>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<link
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
<title>Local Storage | CoCreateJS</title>
|
|
5
|
+
<!-- CoCreate Favicon -->
|
|
6
|
+
<link
|
|
7
|
+
rel="icon"
|
|
8
|
+
href="https://cdn.cocreate.app/favicon.ico"
|
|
9
|
+
type="image/ico"
|
|
10
|
+
sizes="16x16" />
|
|
11
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
12
|
+
</head>
|
|
9
13
|
<body>
|
|
10
|
-
<form>
|
|
11
|
-
|
|
14
|
+
<form>
|
|
15
|
+
set
|
|
16
|
+
<input
|
|
17
|
+
type="text"
|
|
18
|
+
localstorage-set="test"
|
|
19
|
+
name=""
|
|
20
|
+
placeholder="SET" />
|
|
12
21
|
<!--<button type="submit" value="Submit" actions="localstorage">RUN</button>-->
|
|
13
|
-
<button
|
|
22
|
+
<button
|
|
23
|
+
type="button"
|
|
24
|
+
class="outline red-white"
|
|
25
|
+
actions="localStorage">
|
|
26
|
+
RUN
|
|
27
|
+
</button>
|
|
14
28
|
</form>
|
|
15
|
-
<form>
|
|
16
|
-
|
|
17
|
-
<input
|
|
29
|
+
<form>
|
|
30
|
+
set
|
|
31
|
+
<input
|
|
32
|
+
type="text"
|
|
33
|
+
localstorage-get="test"
|
|
34
|
+
name=""
|
|
35
|
+
placeholder="get" />
|
|
36
|
+
<input
|
|
37
|
+
type="text"
|
|
38
|
+
localstorage-set="test2"
|
|
39
|
+
name=""
|
|
40
|
+
placeholder="SET" />
|
|
18
41
|
<!--<input type="text" localstorage-remove="test" name="" placeholder="remove"/>-->
|
|
19
|
-
<button
|
|
42
|
+
<button
|
|
43
|
+
type="button"
|
|
44
|
+
class="outline red-white"
|
|
45
|
+
actions="localStorage">
|
|
46
|
+
RUN
|
|
47
|
+
</button>
|
|
20
48
|
</form>
|
|
21
|
-
<form>
|
|
22
|
-
|
|
23
|
-
<input
|
|
24
|
-
|
|
49
|
+
<form>
|
|
50
|
+
get
|
|
51
|
+
<input
|
|
52
|
+
type="text"
|
|
53
|
+
localstorage-get="test"
|
|
54
|
+
name=""
|
|
55
|
+
placeholder="get" />
|
|
56
|
+
<input
|
|
57
|
+
type="text"
|
|
58
|
+
localstorage-get="test2"
|
|
59
|
+
name=""
|
|
60
|
+
placeholder="get" />
|
|
61
|
+
<button
|
|
62
|
+
type="button"
|
|
63
|
+
class="outline red-white"
|
|
64
|
+
actions="localStorage">
|
|
65
|
+
RUN
|
|
66
|
+
</button>
|
|
25
67
|
</form>
|
|
26
|
-
<form>
|
|
27
|
-
|
|
28
|
-
<input
|
|
29
|
-
|
|
68
|
+
<form>
|
|
69
|
+
remove
|
|
70
|
+
<input
|
|
71
|
+
type="text"
|
|
72
|
+
localstorage-remove="test"
|
|
73
|
+
name=""
|
|
74
|
+
placeholder="remove" />
|
|
75
|
+
<input
|
|
76
|
+
type="text"
|
|
77
|
+
localstorage-remove="test2"
|
|
78
|
+
name=""
|
|
79
|
+
placeholder="remove" />
|
|
80
|
+
<button
|
|
81
|
+
type="button"
|
|
82
|
+
class="outline red-white"
|
|
83
|
+
actions="localStorage">
|
|
84
|
+
RUN
|
|
85
|
+
</button>
|
|
30
86
|
</form>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<!--<script src="../dist/CoCreate-local-storage.js"></script>-->
|
|
35
|
-
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js" ></script>
|
|
36
|
-
|
|
87
|
+
|
|
88
|
+
<!--<script src="../dist/CoCreate-local-storage.js"></script>-->
|
|
89
|
+
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
|
|
37
90
|
</body>
|
|
38
|
-
</html>
|
|
91
|
+
</html>
|
package/docs/index.html
CHANGED
|
@@ -1,137 +1,369 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
+
<title>CoCreate-local-storage Documentation | CoCreateJS</title>
|
|
8
|
+
<link
|
|
9
|
+
rel="icon"
|
|
10
|
+
type="image/png"
|
|
11
|
+
sizes="32x32"
|
|
12
|
+
href="https://cocreate.app/images/favicon.ico" />
|
|
13
|
+
<meta
|
|
14
|
+
name="description"
|
|
15
|
+
content="Simple component to save and fetch data for inputs, textarea, selects from localstorage. easilly configuable with attributes and/or JavaScript API." />
|
|
16
|
+
<meta
|
|
17
|
+
name="keywords"
|
|
18
|
+
content="helper classes, utility classes, css framework, css library, inline style classes" />
|
|
19
|
+
<meta name="robots" content="index,follow" />
|
|
20
|
+
<meta
|
|
21
|
+
property="og:image"
|
|
22
|
+
content="https://cdn.cocreate.app/docs/local-storage.png" />
|
|
3
23
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
24
|
+
<!-- CoCreate CSS CDN-->
|
|
25
|
+
<link
|
|
26
|
+
rel="stylesheet"
|
|
27
|
+
href="https://cdn.cocreate.app/latest/CoCreate.min.css"
|
|
28
|
+
type="text/css" />
|
|
29
|
+
<link
|
|
30
|
+
rel="stylesheet"
|
|
31
|
+
href="https://ws.cocreate.app/docs.css"
|
|
32
|
+
collection="apples"
|
|
33
|
+
document_id="6069ff5042ef8ff5175a5c8d"
|
|
34
|
+
name="css"
|
|
35
|
+
type="text/css" />
|
|
36
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
37
|
+
</head>
|
|
14
38
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
<body>
|
|
40
|
+
<nav
|
|
41
|
+
class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px"
|
|
42
|
+
content_id="content"
|
|
43
|
+
scroll="sticky-nav,hide-nav"
|
|
44
|
+
scroll-up="10"
|
|
45
|
+
scroll-down="10"
|
|
46
|
+
collection="files"
|
|
47
|
+
document_id="60395ef42b3ac232657040fd"
|
|
48
|
+
name="src"></nav>
|
|
49
|
+
<sidenav
|
|
50
|
+
id="menuL"
|
|
51
|
+
class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
|
|
52
|
+
resizable
|
|
53
|
+
resize-target="[content_id='content']"
|
|
54
|
+
resize-property="margin-left"
|
|
55
|
+
resize-value="width">
|
|
56
|
+
<menu
|
|
57
|
+
collection="files"
|
|
58
|
+
document_id="603717b07de7fb350ae9fec8"
|
|
59
|
+
name="src"></menu>
|
|
60
|
+
<div resize="right"></div>
|
|
61
|
+
</sidenav>
|
|
62
|
+
<main
|
|
63
|
+
class="padding-top:15px padding:15px@lg@xl"
|
|
64
|
+
content_id="content"
|
|
65
|
+
id="cocreate-local-storage">
|
|
66
|
+
<div
|
|
67
|
+
class="display:flex flex-wrap:wrap justify-content:space-between position:relative margin:10px">
|
|
68
|
+
<div class="display:flex align-items:center">
|
|
69
|
+
<h2>CoCreate-local-storage</h2>
|
|
70
|
+
</div>
|
|
71
|
+
<div
|
|
72
|
+
class="display:flex align-items:center font-size:20px position:absolute right:0 padding:5px background:white">
|
|
73
|
+
<div
|
|
74
|
+
class="display:flex align-items:center transition:0.3s padding-left:10px"
|
|
75
|
+
share-network="true"
|
|
76
|
+
share-text="Simple component to save and fetch data for inputs, textarea, selects from localstorage. easilly configuable with attributes and/or JavaScript API."
|
|
77
|
+
share-title="CoCreate-local-storage"
|
|
78
|
+
share-height="600"
|
|
79
|
+
share-width="700"
|
|
80
|
+
share-media="https://cdn.cocreate.app/docs/local-storage.png"
|
|
81
|
+
hover="display:block!important"
|
|
82
|
+
hover-target=".social-networks">
|
|
83
|
+
<div class="display:none social-networks">
|
|
84
|
+
<a
|
|
85
|
+
class="margin-right:15px"
|
|
86
|
+
share-network="twitter"
|
|
87
|
+
title="Share on twitter"
|
|
88
|
+
><i
|
|
89
|
+
class="height:20px fill:#505050"
|
|
90
|
+
src="/assets/svg/twitter.svg"></i
|
|
91
|
+
></a>
|
|
92
|
+
<a
|
|
93
|
+
class="margin-right:15px"
|
|
94
|
+
share-network="facebook"
|
|
95
|
+
title="Share on Facebook"
|
|
96
|
+
><i
|
|
97
|
+
class="height:20px fill:#505050"
|
|
98
|
+
src="/assets/svg/facebook.svg"></i
|
|
99
|
+
></a>
|
|
100
|
+
<a
|
|
101
|
+
class="margin-right:15px"
|
|
102
|
+
share-network="instagram"
|
|
103
|
+
title="Share on instagram"
|
|
104
|
+
><i
|
|
105
|
+
class="height:20px fill:#505050"
|
|
106
|
+
src="/assets/svg/instagram.svg"></i
|
|
107
|
+
></a>
|
|
108
|
+
</div>
|
|
109
|
+
<a
|
|
110
|
+
class="margin-right:15px"
|
|
111
|
+
share-network="share"
|
|
112
|
+
title="Share on share"
|
|
113
|
+
><i
|
|
114
|
+
class="height:20px fill:#505050"
|
|
115
|
+
src="/assets/svg/share-alt.svg"></i
|
|
116
|
+
></a>
|
|
40
117
|
</div>
|
|
41
|
-
<a
|
|
118
|
+
<a
|
|
119
|
+
href="https://github.com/CoCreate-app/CoCreate-local-storage"
|
|
120
|
+
target="_blank"
|
|
121
|
+
class="margin-right:15px"
|
|
122
|
+
><i
|
|
123
|
+
class="height:20px fill:#505050"
|
|
124
|
+
src="/assets/svg/github.svg"></i
|
|
125
|
+
></a>
|
|
42
126
|
</div>
|
|
43
|
-
<a href="https://github.com/CoCreate-app/CoCreate-local-storage" target="_blank" class="margin-right:15px"><i class="height:20px fill:#505050" src="/assets/svg/github.svg"></i></a>
|
|
44
127
|
</div>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
128
|
+
<h1
|
|
129
|
+
class="max-width:500px margin:20px_10px line-height:1.5 font-size:16px font-weight:100">
|
|
130
|
+
A Simple component similar to CoCreate-input &
|
|
131
|
+
CoCreate-fetch which Save and fetch data for inputs, textarea,
|
|
132
|
+
selects from localstorage. Easily configured using HTML5
|
|
133
|
+
attributes and/or JavaScript API
|
|
134
|
+
</h1>
|
|
135
|
+
<div id="local-storage-section" class="display:flex flex-wrap:wrap">
|
|
136
|
+
<div
|
|
137
|
+
class="flex-grow:1 width:400px width:300px@xs padding:0px_10px margin-top:60px">
|
|
138
|
+
<div
|
|
139
|
+
id="local-storage-install"
|
|
140
|
+
class="border-bottom:1px_solid_lightgrey"
|
|
141
|
+
scroll
|
|
142
|
+
scroll-intersect="color:dodgerblue"
|
|
143
|
+
scroll-target="#local-storage-install-section">
|
|
144
|
+
<span
|
|
145
|
+
class="display:flex align-items:center width:fit-content"
|
|
146
|
+
hover="display:block!important"
|
|
147
|
+
hover-target="[href='#local-storage-install']">
|
|
51
148
|
<h2 class="padding:5px_0px">Install</h2>
|
|
52
|
-
<a
|
|
149
|
+
<a
|
|
150
|
+
class="margin-left:10px display:none"
|
|
151
|
+
href="#local-storage-install"
|
|
152
|
+
><i
|
|
153
|
+
class="height:20px fill:#505050"
|
|
154
|
+
src="/assets/svg/link.svg"></i
|
|
155
|
+
></a>
|
|
53
156
|
</span>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
157
|
+
</div>
|
|
158
|
+
<pre><code class="language-bash">npm i @cocreate/local-storage</code></pre>
|
|
159
|
+
<p class="padding:10px_0px line-height:1.5">
|
|
160
|
+
Or you can use cdn link:
|
|
161
|
+
</p>
|
|
162
|
+
<pre><code class="language-html"><script>https://cdn.cocreate.app/local-storage/latest/CoCreate-local-storage.min.js</script></code></pre>
|
|
58
163
|
|
|
59
|
-
|
|
60
|
-
|
|
164
|
+
<div
|
|
165
|
+
id="local-storage-usage"
|
|
166
|
+
class="margin-top:80px border-bottom:1px_solid_lightgrey"
|
|
167
|
+
scroll
|
|
168
|
+
scroll-intersect="color:dodgerblue"
|
|
169
|
+
scroll-target="#local-storage-usage-section">
|
|
170
|
+
<span
|
|
171
|
+
class="display:flex align-items:center width:fit-content"
|
|
172
|
+
hover="display:block!important"
|
|
173
|
+
hover-target="[href='#local-storage-usage']">
|
|
61
174
|
<h2 class="padding:5px_0px">Usage</h2>
|
|
62
|
-
<a
|
|
175
|
+
<a
|
|
176
|
+
class="margin-left:10px display:none"
|
|
177
|
+
href="#local-storage-usage"
|
|
178
|
+
><i
|
|
179
|
+
class="height:20px fill:#505050"
|
|
180
|
+
src="/assets/svg/link.svg"></i
|
|
181
|
+
></a>
|
|
63
182
|
</span>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
183
|
+
</div>
|
|
184
|
+
<div class="">
|
|
185
|
+
<p class="padding:10px_0px line-height:1.5">
|
|
186
|
+
This is local-storage usage
|
|
187
|
+
</p>
|
|
67
188
|
|
|
68
|
-
|
|
69
|
-
|
|
189
|
+
<div class="flex-grow:1 min-width:300px width:100%">
|
|
190
|
+
<pre><code class="language-html"><div></div></code></pre>
|
|
191
|
+
</div>
|
|
192
|
+
<p class="padding:10px_0px line-height:1.5">
|
|
193
|
+
This is local-storage usage
|
|
194
|
+
</p>
|
|
195
|
+
<p class="padding:10px_0px line-height:1.5">
|
|
196
|
+
This is local-storage usage
|
|
197
|
+
</p>
|
|
70
198
|
</div>
|
|
71
|
-
<
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
199
|
+
<div
|
|
200
|
+
id="local-storage-attributes"
|
|
201
|
+
class="margin-top:80px border-bottom:1px_solid_lightgrey"
|
|
202
|
+
scroll
|
|
203
|
+
scroll-intersect="color:dodgerblue"
|
|
204
|
+
scroll-target="#local-storage-attributes-section">
|
|
205
|
+
<span
|
|
206
|
+
class="display:flex align-items:center width:fit-content"
|
|
207
|
+
hover="display:block!important"
|
|
208
|
+
hover-target="[href='#local-storage-attributes']">
|
|
76
209
|
<h2 class="padding:5px_0px">Attributes</h2>
|
|
77
|
-
<a
|
|
210
|
+
<a
|
|
211
|
+
class="margin-left:10px display:none"
|
|
212
|
+
href="#local-storage-attributes"
|
|
213
|
+
><i
|
|
214
|
+
class="height:20px fill:#505050"
|
|
215
|
+
src="/assets/svg/link.svg"></i
|
|
216
|
+
></a>
|
|
78
217
|
</span>
|
|
218
|
+
</div>
|
|
219
|
+
<ul class="list-style-type:none">
|
|
220
|
+
<li
|
|
221
|
+
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
222
|
+
<h4>
|
|
223
|
+
<span>local-storage</span>
|
|
224
|
+
<span class="cocreate-badge success"
|
|
225
|
+
>string</span
|
|
226
|
+
>
|
|
227
|
+
<span class="cocreate-badge warning"
|
|
228
|
+
>optional</span
|
|
229
|
+
>
|
|
230
|
+
</h4>
|
|
231
|
+
<p>local-storage-attribute</p>
|
|
232
|
+
</li>
|
|
233
|
+
<li
|
|
234
|
+
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
235
|
+
<h4>
|
|
236
|
+
<span>local-storage</span>
|
|
237
|
+
<span class="cocreate-badge success"
|
|
238
|
+
>string</span
|
|
239
|
+
>
|
|
240
|
+
<span class="cocreate-badge warning"
|
|
241
|
+
>optional</span
|
|
242
|
+
>
|
|
243
|
+
</h4>
|
|
244
|
+
<p>local-storage-attribute</p>
|
|
245
|
+
</li>
|
|
246
|
+
</ul>
|
|
79
247
|
</div>
|
|
80
|
-
<ul class="list-style-type:none ">
|
|
81
|
-
<li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
82
|
-
<h4><span>local-storage</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
|
|
83
|
-
<p>local-storage-attribute</p>
|
|
84
|
-
</li>
|
|
85
|
-
<li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
86
|
-
<h4><span>local-storage</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
|
|
87
|
-
<p>local-storage-attribute</p>
|
|
88
|
-
</li>
|
|
89
|
-
</ul>
|
|
90
|
-
</div>
|
|
91
248
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
<
|
|
249
|
+
<div
|
|
250
|
+
class="flex-grow:1 width:300px padding:0px_10px margin-top:60px border-bottom:1px_solid_lightgrey">
|
|
251
|
+
<!-- SandBox -->
|
|
252
|
+
<div
|
|
253
|
+
id="local-storage-demo"
|
|
254
|
+
class="border-bottom:1px_solid_lightgrey"
|
|
255
|
+
scroll
|
|
256
|
+
scroll-intersect="color:dodgerblue"
|
|
257
|
+
scroll-target="#local-storage-demo-section">
|
|
258
|
+
<span
|
|
259
|
+
class="display:flex align-items:center width:fit-content"
|
|
260
|
+
hover="display:block!important"
|
|
261
|
+
hover-target="[href='#local-storage-demo']">
|
|
96
262
|
<h2 class="padding:5px_0px">Demo</h2>
|
|
97
|
-
<a
|
|
263
|
+
<a
|
|
264
|
+
class="margin-left:10px display:none"
|
|
265
|
+
href="#local-storage-demo"
|
|
266
|
+
><i
|
|
267
|
+
class="height:20px fill:#505050"
|
|
268
|
+
src="/assets/svg/link.svg"></i
|
|
269
|
+
></a>
|
|
98
270
|
</span>
|
|
99
|
-
|
|
100
|
-
|
|
271
|
+
</div>
|
|
272
|
+
<div
|
|
273
|
+
class="position:sticky top:0 padding:15px_0px height:100vh">
|
|
101
274
|
<!-- SandBox -->
|
|
102
|
-
<div
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
275
|
+
<div
|
|
276
|
+
class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
|
|
277
|
+
id="playground">
|
|
278
|
+
<div
|
|
279
|
+
id="demo-code"
|
|
280
|
+
resizable
|
|
281
|
+
class="position:relative height:50%">
|
|
282
|
+
<textarea
|
|
283
|
+
type="code"
|
|
284
|
+
lang="html"
|
|
285
|
+
collection="demos"
|
|
286
|
+
document_id=""
|
|
287
|
+
name="demo"
|
|
288
|
+
save="false"
|
|
289
|
+
id="demo"
|
|
290
|
+
class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
|
|
291
|
+
<div
|
|
292
|
+
resize="bottom"
|
|
293
|
+
class="background:lightgrey"></div>
|
|
107
294
|
</div>
|
|
108
|
-
|
|
109
|
-
<div
|
|
110
|
-
|
|
295
|
+
|
|
296
|
+
<div
|
|
297
|
+
id="demo-preview"
|
|
298
|
+
class="position:relative overflow:auto background-color:white">
|
|
299
|
+
<div class="demopreview padding:20px"></div>
|
|
111
300
|
</div>
|
|
112
|
-
|
|
113
|
-
<div
|
|
114
|
-
|
|
115
|
-
<a
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
301
|
+
|
|
302
|
+
<div
|
|
303
|
+
class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
|
|
304
|
+
<a
|
|
305
|
+
class="margin-right:10px"
|
|
306
|
+
id="eye"
|
|
307
|
+
show="#eye-slash"
|
|
308
|
+
hide="#eye, #demo-preview"
|
|
309
|
+
toggle="code-height"
|
|
310
|
+
toggle-target="#demo-code"
|
|
311
|
+
><i
|
|
312
|
+
class="height:18px fill:#505050"
|
|
313
|
+
src="/assets/svg/eye.svg"></i
|
|
314
|
+
></a>
|
|
315
|
+
<a
|
|
316
|
+
class="margin-right:10px"
|
|
317
|
+
hidden
|
|
318
|
+
id="eye-slash"
|
|
319
|
+
show="#eye, #demo-preview"
|
|
320
|
+
hide="#eye-slash"
|
|
321
|
+
toggle="code-height"
|
|
322
|
+
toggle-target="#demo-code"
|
|
323
|
+
><i
|
|
324
|
+
class="height:20px fill:#505050"
|
|
325
|
+
src="/assets/svg/eye-slash.svg"></i
|
|
326
|
+
></a>
|
|
327
|
+
<a
|
|
328
|
+
class="margin-right:10px"
|
|
329
|
+
id="code"
|
|
330
|
+
show="#code-slash"
|
|
331
|
+
hide="#code, #demo-code"
|
|
332
|
+
><i
|
|
333
|
+
class="height:20px fill:#505050"
|
|
334
|
+
src="/assets/svg/code.svg"></i
|
|
335
|
+
></a>
|
|
336
|
+
<a
|
|
337
|
+
class="margin-right:10px"
|
|
338
|
+
hidden
|
|
339
|
+
id="code-slash"
|
|
340
|
+
show="#code, #demo-code"
|
|
341
|
+
hide="#code-slash"
|
|
342
|
+
><i
|
|
343
|
+
class="display:flex height:18px fill:#505050"
|
|
344
|
+
src="/assets/svg/code.svg"></i
|
|
345
|
+
></a>
|
|
346
|
+
<a
|
|
347
|
+
class="margin-right:5px"
|
|
348
|
+
fullscreen
|
|
349
|
+
fullscreen-target="#playground"></a>
|
|
119
350
|
</div>
|
|
120
|
-
|
|
121
351
|
</div>
|
|
122
352
|
<!-- End SandBox -->
|
|
353
|
+
</div>
|
|
123
354
|
</div>
|
|
124
355
|
</div>
|
|
356
|
+
<button
|
|
357
|
+
href="https://github.com/CoCreate-app/CoCreate-local-storage/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..."
|
|
358
|
+
target="_blank"
|
|
359
|
+
class="position:fixed bottom:15px right:15px padding:15px background:dodgerblue color:#fff font-size:1.5rem grow-hover border-radius:50% border-width:0 box-shadow:0px_2px_10px_0px_rgba(0,_0,_0,_0.4)">
|
|
360
|
+
<i
|
|
361
|
+
class="height:20px fill:#505050"
|
|
362
|
+
src="/assets/svg/pencil-alt.svg"></i>
|
|
363
|
+
</button>
|
|
364
|
+
</main>
|
|
125
365
|
|
|
126
|
-
|
|
127
|
-
<button href="https://github.com/CoCreate-app/CoCreate-local-storage/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..." target="_blank" class="position:fixed bottom:15px right:15px padding:15px background:dodgerblue color:#fff font-size:1.5rem grow-hover border-radius:50% border-width:0 box-shadow:0px_2px_10px_0px_rgba(0,_0,_0,_0.4)">
|
|
128
|
-
<i class="height:20px fill:#505050" src="/assets/svg/pencil-alt.svg"></i>
|
|
129
|
-
</button>
|
|
130
|
-
</main>
|
|
131
|
-
|
|
132
|
-
<script src="./apikey.js"></script>
|
|
366
|
+
<script src="./apikey.js"></script>
|
|
133
367
|
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
|
|
134
|
-
|
|
135
|
-
</body>
|
|
136
|
-
|
|
368
|
+
</body>
|
|
137
369
|
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/local-storage",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
"description": "A Simple component similar to CoCreate-input & CoCreate-fetch which Save and fetch data for inputs, textarea, selects from localstorage. Easily configured using HTML5 attributes and/or JavaScript API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"local-storage",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"webpack-log": "^3.0.1"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@cocreate/actions": "^1.8.
|
|
63
|
-
"@cocreate/docs": "^1.7.
|
|
64
|
-
"@cocreate/observer": "^1.
|
|
62
|
+
"@cocreate/actions": "^1.8.12",
|
|
63
|
+
"@cocreate/docs": "^1.7.13",
|
|
64
|
+
"@cocreate/observer": "^1.8.0"
|
|
65
65
|
}
|
|
66
66
|
}
|