@cocreate/position 1.3.10 → 1.3.12

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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.3.12](https://github.com/CoCreate-app/CoCreate-position/compare/v1.3.11...v1.3.12) (2023-06-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Update dependencies versions for [@cocreate](https://github.com/cocreate) libraries ([f903cc4](https://github.com/CoCreate-app/CoCreate-position/commit/f903cc48109642f13f2fec5dc70ab2ee00c6279d))
7
+
8
+ ## [1.3.11](https://github.com/CoCreate-app/CoCreate-position/compare/v1.3.10...v1.3.11) (2023-05-21)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Update dependencies versions for [@cocreate](https://github.com/cocreate) libraries ([81e6c06](https://github.com/CoCreate-app/CoCreate-position/commit/81e6c0618a44b63e5eefd153664cf5af4a509948))
14
+
1
15
  ## [1.3.10](https://github.com/CoCreate-app/CoCreate-position/compare/v1.3.9...v1.3.10) (2023-05-19)
2
16
 
3
17
 
package/demo/index.html CHANGED
@@ -1,43 +1,46 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
-
4
- <head>
5
- <title>Position | CoCreateJS</title>
6
- <link rel="icon" href="https://cdn.cocreate.app/favicon.ico" type="image/ico" sizes="16x16">
7
- <style>
8
- body {
9
- height: 100vh;
10
- margin: 0px;
11
- }
12
-
13
- [drag-handle] {
14
- top: 0px;
15
- left: 0px;
16
- width: 100%;
17
- height: 50px;
18
- padding: 0.5em;
19
- position: absolute;
20
- background: gainsboro;
21
- cursor: move;
22
- }
23
-
24
- </style>
25
- <link rel="manifest" href="/manifest.webmanifest">
26
- </head>
27
-
28
- <body>
29
-
30
- <div class="position:fixed height:300px width:300px background:whitesmoke" positionable>
3
+ <head>
4
+ <title>Position | CoCreateJS</title>
5
+ <link
6
+ rel="icon"
7
+ href="https://cdn.cocreate.app/favicon.ico"
8
+ type="image/ico"
9
+ sizes="16x16" />
10
+ <style>
11
+ body {
12
+ height: 100vh;
13
+ margin: 0px;
14
+ }
15
+
16
+ [drag-handle] {
17
+ top: 0px;
18
+ left: 0px;
19
+ width: 100%;
20
+ height: 50px;
21
+ padding: 0.5em;
22
+ position: absolute;
23
+ background: gainsboro;
24
+ cursor: move;
25
+ }
26
+ </style>
27
+ <link rel="manifest" href="/manifest.webmanifest" />
28
+ </head>
29
+
30
+ <body>
31
+ <div
32
+ class="position:fixed height:300px width:300px background:whitesmoke"
33
+ positionable>
31
34
  <div drag-handle></div>
32
35
  </div>
33
36
 
34
- <div class="position:fixed height:300px width:300px background:brown" moveable>
37
+ <div
38
+ class="position:fixed height:300px width:300px background:brown"
39
+ moveable>
35
40
  <div drag-handle></div>
36
41
  </div>
37
-
38
42
 
39
43
  <script src="../dist/CoCreate-position.js"></script>
40
- <script src="https://cdn.cocreate.app/latest/CoCreate.min.js" ></script>
41
- </body>
42
-
44
+ <script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
45
+ </body>
43
46
  </html>
package/docs/index.html CHANGED
@@ -1,64 +1,165 @@
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-position 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="A draggable, customizable Pop up that toggle hiddent content via attributes. Great for multitasking and showing multiple views." />
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/position.png" />
3
23
 
4
- <head>
5
- <meta charset="utf-8">
6
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
- <meta name="viewport" content="width=device-width, initial-scale=1">
8
- <title>CoCreate-position Documentation | CoCreateJS</title>
9
- <link rel="icon" type="image/png" sizes="32x32" href="https://cocreate.app/images/favicon.ico">
10
- <meta name="description" content="A draggable, customizable Pop up that toggle hiddent content via attributes. Great for multitasking and showing multiple views." />
11
- <meta name="keywords" content="helper classes, utility classes, css framework, css library, inline style classes" />
12
- <meta name="robots" content="index,follow" />
13
- <meta property="og:image" content="https://cdn.cocreate.app/docs/position.png">
24
+ <link
25
+ rel="stylesheet"
26
+ href="/docs/index.css"
27
+ collection="files"
28
+ document_id="60888216117c640e7596303f"
29
+ name="src"
30
+ type="text/css"
31
+ save="true" />
32
+ <link rel="manifest" href="/manifest.webmanifest" />
33
+ </head>
14
34
 
15
- <link rel="stylesheet" href="/docs/index.css" collection="files" document_id="60888216117c640e7596303f" name="src" type="text/css" save="true" />
16
- <link rel="manifest" href="/manifest.webmanifest">
17
- </head>
18
-
19
- <body>
20
-
21
- <nav class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px" content_id="content" scroll="sticky-nav,hide-nav" scroll-up="10" scroll-down="10" collection="files" document_id="60395ef42b3ac232657040fd" name="src">
22
- </nav>
23
- <sidenav id="menuL" class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl" resizable resize-target="[content_id='content']" resize-property="margin-left" resize-value="width">
24
- <menu collection="files" document_id="603717b07de7fb350ae9fec8" name="src"></menu>
25
- <div resize="right"></div>
26
- </sidenav>
27
- <main class="padding-top:15px padding:15px@lg@xl" content_id="content" id="CoCreate-position">
28
- <div class="display:flex flex-wrap:wrap justify-content:space-between position:relative margin:10px">
29
- <div class="display:flex align-items:center">
30
- <h2>CoCreate-position</h2>
31
- </div>
32
- <div class="display:flex align-items:center font-size:20px position:absolute right:0 padding:5px background:white">
33
- <div class="display:flex align-items:center transition:0.3s padding-left:10px" share-network="true" share-text="A draggable, customizable Pop up that toggle hiddent content via attributes. Great for multitasking and showing multiple views."
34
- share-title="CoCreate-position" share-height="600" share-width="700" share-media="https://cdn.cocreate.app/docs/position.png" hover="display:block!important" hover-target=".social-networks">
35
- <div class="display:none social-networks">
36
- <a class="margin-right:15px" share-network='twitter' title="Share on twitter"><i class="height:20px fill:#505050" src="/assets/svg/twitter.svg"></i></a>
37
- <a class="margin-right:15px" share-network='facebook' title="Share on Facebook"><i class="height:20px fill:#505050" src="/assets/svg/facebook.svg"></i></a>
38
- <a class="margin-right:15px" share-network='instagram' title="Share on instagram"><i class="height:20px fill:#505050" src="/assets/svg/instagram.svg"></i></a>
35
+ <body>
36
+ <nav
37
+ class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px"
38
+ content_id="content"
39
+ scroll="sticky-nav,hide-nav"
40
+ scroll-up="10"
41
+ scroll-down="10"
42
+ collection="files"
43
+ document_id="60395ef42b3ac232657040fd"
44
+ name="src"></nav>
45
+ <sidenav
46
+ id="menuL"
47
+ class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
48
+ resizable
49
+ resize-target="[content_id='content']"
50
+ resize-property="margin-left"
51
+ resize-value="width">
52
+ <menu
53
+ collection="files"
54
+ document_id="603717b07de7fb350ae9fec8"
55
+ name="src"></menu>
56
+ <div resize="right"></div>
57
+ </sidenav>
58
+ <main
59
+ class="padding-top:15px padding:15px@lg@xl"
60
+ content_id="content"
61
+ id="CoCreate-position">
62
+ <div
63
+ class="display:flex flex-wrap:wrap justify-content:space-between position:relative margin:10px">
64
+ <div class="display:flex align-items:center">
65
+ <h2>CoCreate-position</h2>
66
+ </div>
67
+ <div
68
+ class="display:flex align-items:center font-size:20px position:absolute right:0 padding:5px background:white">
69
+ <div
70
+ class="display:flex align-items:center transition:0.3s padding-left:10px"
71
+ share-network="true"
72
+ share-text="A draggable, customizable Pop up that toggle hiddent content via attributes. Great for multitasking and showing multiple views."
73
+ share-title="CoCreate-position"
74
+ share-height="600"
75
+ share-width="700"
76
+ share-media="https://cdn.cocreate.app/docs/position.png"
77
+ hover="display:block!important"
78
+ hover-target=".social-networks">
79
+ <div class="display:none social-networks">
80
+ <a
81
+ class="margin-right:15px"
82
+ share-network="twitter"
83
+ title="Share on twitter"
84
+ ><i
85
+ class="height:20px fill:#505050"
86
+ src="/assets/svg/twitter.svg"></i
87
+ ></a>
88
+ <a
89
+ class="margin-right:15px"
90
+ share-network="facebook"
91
+ title="Share on Facebook"
92
+ ><i
93
+ class="height:20px fill:#505050"
94
+ src="/assets/svg/facebook.svg"></i
95
+ ></a>
96
+ <a
97
+ class="margin-right:15px"
98
+ share-network="instagram"
99
+ title="Share on instagram"
100
+ ><i
101
+ class="height:20px fill:#505050"
102
+ src="/assets/svg/instagram.svg"></i
103
+ ></a>
104
+ </div>
105
+ <a
106
+ class="margin-right:15px"
107
+ share-network="share"
108
+ title="Share on share"
109
+ ><i
110
+ class="height:20px fill:#505050"
111
+ src="/assets/svg/share-alt.svg"></i
112
+ ></a>
39
113
  </div>
40
- <a class="margin-right:15px" share-network='share' title="Share on share"><i class="height:20px fill:#505050" src="/assets/svg/share-alt.svg"></i></a>
114
+ <a
115
+ href="https://github.com/CoCreate-app/CoCreate-position"
116
+ target="_blank"
117
+ class="margin-right:15px"
118
+ ><i
119
+ class="height:20px fill:#505050"
120
+ src="/assets/svg/github.svg"></i
121
+ ></a>
41
122
  </div>
42
- <a href="https://github.com/CoCreate-app/CoCreate-position" target="_blank" class="margin-right:15px"><i class="height:20px fill:#505050" src="/assets/svg/github.svg"></i></a>
43
123
  </div>
44
- </div>
45
- <h1 class="max-width:500px margin:20px_10px line-height:1.5 font-size:16px font-weight:100">A draggable, customizable Pop up that toggle hiddent content via attributes. Great for multitasking and showing multiple views.
46
- </h1>
47
- <div id="xxxxx-section" class="display:flex flex-wrap:wrap">
48
- <div class="flex-grow:1 width:400px width:300px@xs padding:0px_10px margin-top:60px">
49
-
50
- <div id="position-usage" class="margin-top:80px border-bottom:1px_solid_lightgrey" scroll scroll-intersect="color:dodgerblue" scroll-target="#position-usage-section">
51
- <span class="display:flex align-items:center width:fit-content" hover="display:block!important" hover-target='[href="#position-usage"]'>
124
+ <h1
125
+ class="max-width:500px margin:20px_10px line-height:1.5 font-size:16px font-weight:100">
126
+ A draggable, customizable Pop up that toggle hiddent content via
127
+ attributes. Great for multitasking and showing multiple views.
128
+ </h1>
129
+ <div id="xxxxx-section" class="display:flex flex-wrap:wrap">
130
+ <div
131
+ class="flex-grow:1 width:400px width:300px@xs padding:0px_10px margin-top:60px">
132
+ <div
133
+ id="position-usage"
134
+ class="margin-top:80px border-bottom:1px_solid_lightgrey"
135
+ scroll
136
+ scroll-intersect="color:dodgerblue"
137
+ scroll-target="#position-usage-section">
138
+ <span
139
+ class="display:flex align-items:center width:fit-content"
140
+ hover="display:block!important"
141
+ hover-target="[href='#position-usage']">
52
142
  <h2 class="padding:5px_0px">Usage</h2>
53
- <a class="margin-left:10px display:none" href="#position-usage"><i class="height:20px fill:#505050" src="/assets/svg/link.svg"></i></a>
143
+ <a
144
+ class="margin-left:10px display:none"
145
+ href="#position-usage"
146
+ ><i
147
+ class="height:20px fill:#505050"
148
+ src="/assets/svg/link.svg"></i
149
+ ></a>
54
150
  </span>
55
- </div>
56
- <div class="">
57
- <p class="padding-top:15px">CoCreate-position uses &lt;a&gt; tag.</p>
58
- <p class="padding-top:15px">When you click &lt;a&gt; tag, position comes to the surface.</p>
151
+ </div>
152
+ <div class="">
153
+ <p class="padding-top:15px">
154
+ CoCreate-position uses &lt;a&gt; tag.
155
+ </p>
156
+ <p class="padding-top:15px">
157
+ When you click &lt;a&gt; tag, position comes to the
158
+ surface.
159
+ </p>
59
160
 
60
- <div class="flex-grow:1 min-width:300px width:100%">
61
- <pre>
161
+ <div class="flex-grow:1 min-width:300px width:100%">
162
+ <pre>
62
163
  <code class="language-html">
63
164
  &lt;button&gt;
64
165
  &lt;a target="position" href="https://server.cocreate.app/CoCreate-adminUI/module_datatable.html"
@@ -75,101 +176,292 @@
75
176
  &lt;/button&gt;
76
177
  </code>
77
178
  </pre>
179
+ </div>
78
180
  </div>
79
- </div>
80
- <div id="position-attributes" class="margin-top:80px border-bottom:1px_solid_lightgrey" scroll scroll-intersect="color:dodgerblue" scroll-target="#position-attributes-section">
81
- <span class="display:flex align-items:center width:fit-content" hover="display:block!important" hover-target='[href="#position-attributes"]'>
181
+ <div
182
+ id="position-attributes"
183
+ class="margin-top:80px border-bottom:1px_solid_lightgrey"
184
+ scroll
185
+ scroll-intersect="color:dodgerblue"
186
+ scroll-target="#position-attributes-section">
187
+ <span
188
+ class="display:flex align-items:center width:fit-content"
189
+ hover="display:block!important"
190
+ hover-target="[href='#position-attributes']">
82
191
  <h2 class="padding:5px_0px">Attributes</h2>
83
- <a class="margin-left:10px display:none" href="#position-attributes"><i class="height:20px fill:#505050" src="/assets/svg/link.svg"></i></a>
192
+ <a
193
+ class="margin-left:10px display:none"
194
+ href="#position-attributes"
195
+ ><i
196
+ class="height:20px fill:#505050"
197
+ src="/assets/svg/link.svg"></i
198
+ ></a>
84
199
  </span>
200
+ </div>
201
+ <ul class="list-style-type:none">
202
+ <li
203
+ class="padding:15px_0px border-bottom:1px_solid_lightgrey">
204
+ <h4>
205
+ <span>target</span>
206
+ <span class="cocreate-badge success"
207
+ >string</span
208
+ >
209
+ <span class="cocreate-badge danger"
210
+ >required</span
211
+ >
212
+ </h4>
213
+ <p>Target must be "position".</p>
214
+ </li>
215
+ <li
216
+ class="padding:15px_0px border-bottom:1px_solid_lightgrey">
217
+ <h4>
218
+ <span>href</span>
219
+ <span class="cocreate-badge success"
220
+ >string</span
221
+ >
222
+ <span class="cocreate-badge danger"
223
+ >required</span
224
+ >
225
+ </h4>
226
+ <p>
227
+ Href attribute indicates html file to set in
228
+ position.
229
+ </p>
230
+ </li>
231
+ <li
232
+ class="padding:15px_0px border-bottom:1px_solid_lightgrey">
233
+ <h4>
234
+ <span>position-ajax</span>
235
+ <span class="cocreate-badge success"
236
+ >boolean</span
237
+ >
238
+ <span class="cocreate-badge warning"
239
+ >optional</span
240
+ >
241
+ </h4>
242
+ <p>Attribute whether to use ajax or not.</p>
243
+ </li>
244
+ <li
245
+ class="padding:15px_0px border-bottom:1px_solid_lightgrey">
246
+ <h4>
247
+ <span>position-width</span>
248
+ <span class="cocreate-badge success"
249
+ >string</span
250
+ >
251
+ <span class="cocreate-badge warning"
252
+ >optional</span
253
+ >
254
+ </h4>
255
+ <p>
256
+ Width of position. Unit can be pixel or percent.
257
+ </p>
258
+ </li>
259
+ <li
260
+ class="padding:15px_0px border-bottom:1px_solid_lightgrey">
261
+ <h4>
262
+ <span>position-height</span>
263
+ <span class="cocreate-badge success"
264
+ >string</span
265
+ >
266
+ <span class="cocreate-badge warning"
267
+ >optional</span
268
+ >
269
+ </h4>
270
+ <p>
271
+ Height of position. Unit can be pixel or
272
+ percent.
273
+ </p>
274
+ </li>
275
+ <li
276
+ class="padding:15px_0px border-bottom:1px_solid_lightgrey">
277
+ <h4>
278
+ <span>position-color</span>
279
+ <span class="cocreate-badge success"
280
+ >color</span
281
+ >
282
+ <span class="cocreate-badge warning"
283
+ >optional</span
284
+ >
285
+ </h4>
286
+ <p>Color of position border.</p>
287
+ </li>
288
+ <li
289
+ class="padding:15px_0px border-bottom:1px_solid_lightgrey">
290
+ <h4>
291
+ <span>position-header</span>
292
+ <span class="cocreate-badge success"
293
+ >boolean</span
294
+ >
295
+ <span class="cocreate-badge warning"
296
+ >optional</span
297
+ >
298
+ </h4>
299
+ <p>Attribute whether to show header or not.</p>
300
+ </li>
301
+ <li
302
+ class="padding:15px_0px border-bottom:1px_solid_lightgrey">
303
+ <h4>
304
+ <span>position-x</span>
305
+ <span class="cocreate-badge success"
306
+ >string</span
307
+ >
308
+ <span class="cocreate-badge warning"
309
+ >optional</span
310
+ >
311
+ </h4>
312
+ <p>Position X of position.</p>
313
+ </li>
314
+ <li
315
+ class="padding:15px_0px border-bottom:1px_solid_lightgrey">
316
+ <h4>
317
+ <span>position-y</span>
318
+ <span class="cocreate-badge success"
319
+ >string</span
320
+ >
321
+ <span class="cocreate-badge warning"
322
+ >optional</span
323
+ >
324
+ </h4>
325
+ <p>Position Y of position.</p>
326
+ </li>
327
+ <li
328
+ class="padding:15px_0px border-bottom:1px_solid_lightgrey">
329
+ <h4>
330
+ <span>open_in</span>
331
+ <span class="cocreate-badge success"
332
+ >string</span
333
+ >
334
+ <span class="cocreate-badge warning"
335
+ >optional</span
336
+ >
337
+ </h4>
338
+ <p>
339
+ Attribute where to show position in. "page" for
340
+ current page. "parent" for parent page. "root"
341
+ for root page.
342
+ </p>
343
+ </li>
344
+ </ul>
85
345
  </div>
86
- <ul class="list-style-type:none ">
87
- <li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
88
- <h4><span>target</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge danger">required</span></h4>
89
- <p>Target must be "position".</p>
90
- </li>
91
- <li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
92
- <h4><span>href</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge danger">required</span></h4>
93
- <p>Href attribute indicates html file to set in position.</p>
94
- </li>
95
- <li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
96
- <h4><span>position-ajax</span> <span class="cocreate-badge success">boolean</span> <span class="cocreate-badge warning">optional</span></h4>
97
- <p>Attribute whether to use ajax or not.</p>
98
- </li>
99
- <li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
100
- <h4><span>position-width</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
101
- <p>Width of position. Unit can be pixel or percent.</p>
102
- </li>
103
- <li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
104
- <h4><span>position-height</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
105
- <p>Height of position. Unit can be pixel or percent.</p>
106
- </li>
107
- <li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
108
- <h4><span>position-color</span> <span class="cocreate-badge success">color</span> <span class="cocreate-badge warning">optional</span></h4>
109
- <p>Color of position border.</p>
110
- </li>
111
- <li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
112
- <h4><span>position-header</span> <span class="cocreate-badge success">boolean</span> <span class="cocreate-badge warning">optional</span></h4>
113
- <p>Attribute whether to show header or not.</p>
114
- </li>
115
- <li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
116
- <h4><span>position-x</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
117
- <p>Position X of position.</p>
118
- </li>
119
- <li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
120
- <h4><span>position-y</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
121
- <p>Position Y of position.</p>
122
- </li>
123
- <li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
124
- <h4><span>open_in</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
125
- <p>Attribute where to show position in. "page" for current page. "parent" for parent page. "root" for root page.</p>
126
- </li>
127
- </ul>
128
- </div>
129
346
 
130
- <div class="flex-grow:1 width:300px padding:0px_10px margin-top:60px border-bottom:1px_solid_lightgrey">
131
- <!-- SandBox -->
132
- <div id="position-demo" class="border-bottom:1px_solid_lightgrey" scroll scroll-intersect="color:dodgerblue" scroll-target="#position-demo-section">
133
- <span class="display:flex align-items:center width:fit-content" hover="display:block!important" hover-target='[href="#position-demo"]'>
347
+ <div
348
+ class="flex-grow:1 width:300px padding:0px_10px margin-top:60px border-bottom:1px_solid_lightgrey">
349
+ <!-- SandBox -->
350
+ <div
351
+ id="position-demo"
352
+ class="border-bottom:1px_solid_lightgrey"
353
+ scroll
354
+ scroll-intersect="color:dodgerblue"
355
+ scroll-target="#position-demo-section">
356
+ <span
357
+ class="display:flex align-items:center width:fit-content"
358
+ hover="display:block!important"
359
+ hover-target="[href='#position-demo']">
134
360
  <h2 class="padding:5px_0px">Demo</h2>
135
- <a class="margin-left:10px display:none" href="#position-demo"><i class="height:20px fill:#505050" src="/assets/svg/link.svg"></i></a>
361
+ <a
362
+ class="margin-left:10px display:none"
363
+ href="#position-demo"
364
+ ><i
365
+ class="height:20px fill:#505050"
366
+ src="/assets/svg/link.svg"></i
367
+ ></a>
136
368
  </span>
137
- </div>
138
- <div class="position:sticky top:0 padding:15px_0px height:100vh">
369
+ </div>
370
+ <div
371
+ class="position:sticky top:0 padding:15px_0px height:100vh">
139
372
  <!-- SandBox -->
140
- <div class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px" id="playground">
141
-
142
- <div id="demo-code" resizable class="position:relative height:50%">
143
- <textarea type="code" lang="html" collection="demos" document_id="" name="demo" save="false" id="demo" class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
144
- <div resize="bottom" class="background:lightgrey"></div>
373
+ <div
374
+ class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
375
+ id="playground">
376
+ <div
377
+ id="demo-code"
378
+ resizable
379
+ class="position:relative height:50%">
380
+ <textarea
381
+ type="code"
382
+ lang="html"
383
+ collection="demos"
384
+ document_id=""
385
+ name="demo"
386
+ save="false"
387
+ id="demo"
388
+ class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
389
+ <div
390
+ resize="bottom"
391
+ class="background:lightgrey"></div>
145
392
  </div>
146
-
147
- <div id="demo-preview" class="position:relative overflow:auto background-color:white">
148
- <div class="demopreview" class="padding:20px"></div>
393
+
394
+ <div
395
+ id="demo-preview"
396
+ class="position:relative overflow:auto background-color:white">
397
+ <div class="demopreview padding:20px"></div>
149
398
  </div>
150
-
151
- <div class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
152
- <a class="margin-right:10px" id="eye" show="#eye-slash" hide="#eye, #demo-preview" toggle="code-height" toggle-target="#demo-code"><i class="height:18px fill:#505050" src="/assets/svg/eye.svg"></i></a>
153
- <a class="margin-right:10px" hidden id="eye-slash" show="#eye, #demo-preview" hide="#eye-slash" toggle="code-height" toggle-target="#demo-code"><i class="height:20px fill:#505050" src="/assets/svg/eye-slash.svg"></i></a>
154
- <a class="margin-right:10px" id="code" show="#code-slash" hide="#code, #demo-code"><i class="height:20px fill:#505050" src="/assets/svg/code.svg"></i></a>
155
- <a class="margin-right:10px" hidden id="code-slash" show="#code, #demo-code" hide="#code-slash"><i class="display:flex height:18px fill:#505050" src="/assets/svg/code.svg"></i></a>
156
- <a class="margin-right:5px" fullscreen fullscreen-target="#playground"></a>
399
+
400
+ <div
401
+ class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
402
+ <a
403
+ class="margin-right:10px"
404
+ id="eye"
405
+ show="#eye-slash"
406
+ hide="#eye, #demo-preview"
407
+ toggle="code-height"
408
+ toggle-target="#demo-code"
409
+ ><i
410
+ class="height:18px fill:#505050"
411
+ src="/assets/svg/eye.svg"></i
412
+ ></a>
413
+ <a
414
+ class="margin-right:10px"
415
+ hidden
416
+ id="eye-slash"
417
+ show="#eye, #demo-preview"
418
+ hide="#eye-slash"
419
+ toggle="code-height"
420
+ toggle-target="#demo-code"
421
+ ><i
422
+ class="height:20px fill:#505050"
423
+ src="/assets/svg/eye-slash.svg"></i
424
+ ></a>
425
+ <a
426
+ class="margin-right:10px"
427
+ id="code"
428
+ show="#code-slash"
429
+ hide="#code, #demo-code"
430
+ ><i
431
+ class="height:20px fill:#505050"
432
+ src="/assets/svg/code.svg"></i
433
+ ></a>
434
+ <a
435
+ class="margin-right:10px"
436
+ hidden
437
+ id="code-slash"
438
+ show="#code, #demo-code"
439
+ hide="#code-slash"
440
+ ><i
441
+ class="display:flex height:18px fill:#505050"
442
+ src="/assets/svg/code.svg"></i
443
+ ></a>
444
+ <a
445
+ class="margin-right:5px"
446
+ fullscreen
447
+ fullscreen-target="#playground"></a>
157
448
  </div>
158
-
159
449
  </div>
160
450
  <!-- End SandBox -->
451
+ </div>
161
452
  </div>
162
453
  </div>
454
+ <button
455
+ href="https://github.com/CoCreate-app/CoCreate-position/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..."
456
+ target="_blank"
457
+ 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)">
458
+ <i
459
+ class="height:20px fill:#505050"
460
+ src="/assets/svg/pencil-alt.svg"></i>
461
+ </button>
462
+ </main>
163
463
 
164
- </div>
165
- <button href="https://github.com/CoCreate-app/CoCreate-position/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)">
166
- <i class="height:20px fill:#505050" src="/assets/svg/pencil-alt.svg"></i>
167
- </button>
168
- </main>
169
-
170
- <script src="./apikey.js"></script>
464
+ <script src="./apikey.js"></script>
171
465
  <script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
172
-
173
- </body>
174
-
466
+ </body>
175
467
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/position",
3
- "version": "1.3.10",
3
+ "version": "1.3.12",
4
4
  "description": "Make any element draggable and movable. Customizable via attributes, great for popups, alerts, multitasking and displaying multiple views.",
5
5
  "keywords": [
6
6
  "position",
@@ -59,7 +59,7 @@
59
59
  "webpack-log": "^3.0.1"
60
60
  },
61
61
  "dependencies": {
62
- "@cocreate/docs": "^1.7.10",
63
- "@cocreate/observer": "^1.7.8"
62
+ "@cocreate/docs": "^1.7.13",
63
+ "@cocreate/observer": "^1.8.0"
64
64
  }
65
65
  }