@cocreate/organizations 1.28.2 → 1.28.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 +17 -0
- package/demo/index.html +119 -119
- package/demo/industries/industry-datatable.html +5 -5
- package/demo/industries/industry-documents-datatable.1.html +5 -5
- package/docs/index.html +318 -328
- package/package.json +8 -12
- package/webpack.config.js +65 -90
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
## [1.28.4](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.28.3...v1.28.4) (2025-05-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update [@cocreate](https://github.com/cocreate) dependencies ([4c71cd3](https://github.com/CoCreate-app/CoCreate-organizations/commit/4c71cd3eee8dff2dc3fe6aca5e64eb5e87696339))
|
|
7
|
+
|
|
8
|
+
## [1.28.3](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.28.2...v1.28.3) (2025-04-30)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* added css-loader ([dbe904b](https://github.com/CoCreate-app/CoCreate-organizations/commit/dbe904bbad632e7bcd9acf78c9528c584b81d6bc))
|
|
14
|
+
* update query attributes ([1ebbead](https://github.com/CoCreate-app/CoCreate-organizations/commit/1ebbead42dea7e7baad8904cfa822858bcc3c08c))
|
|
15
|
+
* updated cocreate modules versions ([6b6a910](https://github.com/CoCreate-app/CoCreate-organizations/commit/6b6a910d0c1c6c633ae3da618ba21c04ea69ead8))
|
|
16
|
+
* webpack.config and devdependencies ([038dc18](https://github.com/CoCreate-app/CoCreate-organizations/commit/038dc18db4cdf8fa28fb833531cf4c73e85ccfd1))
|
|
17
|
+
|
|
1
18
|
## [1.28.2](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.28.1...v1.28.2) (2025-04-11)
|
|
2
19
|
|
|
3
20
|
|
package/demo/index.html
CHANGED
|
@@ -1,131 +1,131 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
<head>
|
|
4
|
+
<title>Organizations | CoCreateJS</title>
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
<!-- CoCreate Favicon -->
|
|
7
|
+
<link
|
|
8
|
+
rel="icon"
|
|
9
|
+
type="image/png"
|
|
10
|
+
sizes="32x32"
|
|
11
|
+
href="../assets/favicon.ico" />
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
13
|
+
<style>
|
|
14
|
+
.speech-bubble:after {
|
|
15
|
+
content: "";
|
|
16
|
+
position: absolute;
|
|
17
|
+
top: 0;
|
|
18
|
+
left: 50%;
|
|
19
|
+
width: 0;
|
|
20
|
+
height: 0;
|
|
21
|
+
border: 23px solid transparent;
|
|
22
|
+
border-bottom-color: #ffffff;
|
|
23
|
+
border-top: 0;
|
|
24
|
+
margin-left: -23px;
|
|
25
|
+
margin-top: -23px;
|
|
26
|
+
}
|
|
27
|
+
</style>
|
|
28
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
29
|
+
</head>
|
|
30
|
+
<body>
|
|
31
|
+
<div
|
|
32
|
+
class="main-container justify-content:center align-items:center overflow:auto display:flex flex-wrap:wrap position:absolute width:100% height:100%">
|
|
33
|
+
<div
|
|
34
|
+
class="display:flex flex-wrap:wrap align-items:flex-end justify-content:center align-items:center">
|
|
35
|
+
<div
|
|
36
|
+
class="flex-grow:1 height:fit-content width:55% min-width:300px max-width:600px margin:10px">
|
|
37
|
+
<form realtime="false">
|
|
38
|
+
<input
|
|
39
|
+
type="text"
|
|
40
|
+
id="org-name"
|
|
41
|
+
array="organizations"
|
|
42
|
+
object=""
|
|
43
|
+
key="name"
|
|
44
|
+
placeholder="Organization Name"
|
|
45
|
+
class="floating-label" />
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
<p>User Information</p>
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
<input
|
|
50
|
+
type="text"
|
|
51
|
+
array="users"
|
|
52
|
+
object=""
|
|
53
|
+
key="name"
|
|
54
|
+
placeholder="User Name"
|
|
55
|
+
class="floating-label" />
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
57
|
+
<!-- Organiztion_id -->
|
|
58
|
+
<input
|
|
59
|
+
type="hidden"
|
|
60
|
+
id="org_id"
|
|
61
|
+
array="organizations"
|
|
62
|
+
object=""
|
|
63
|
+
key="_id"
|
|
64
|
+
value=""
|
|
65
|
+
placeholder="OrganizationId" />
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
67
|
+
<!-- API key -->
|
|
68
|
+
<input
|
|
69
|
+
type="hidden"
|
|
70
|
+
id="key"
|
|
71
|
+
array="organizations"
|
|
72
|
+
object=""
|
|
73
|
+
key="key"
|
|
74
|
+
placeholder="API Key"
|
|
75
|
+
uuid="32"
|
|
76
|
+
readonly />
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
78
|
+
<div
|
|
79
|
+
class="padding:25px background:gainsboro background:#444@dark text-align:left">
|
|
80
|
+
<!-- Industry select -->
|
|
81
|
+
<cocreate-select
|
|
82
|
+
sortable
|
|
83
|
+
class="floating-label"
|
|
84
|
+
array="organizations"
|
|
85
|
+
key="industry"
|
|
86
|
+
placeholder="Industry"
|
|
87
|
+
realtime="false"
|
|
88
|
+
save="false">
|
|
89
|
+
<input
|
|
90
|
+
placeholder="Search"
|
|
91
|
+
filter-query="$parent [array]" />
|
|
92
|
+
<ul
|
|
93
|
+
array="industries"
|
|
94
|
+
render-query="[template]"
|
|
95
|
+
class="options overflow:auto">
|
|
96
|
+
<li
|
|
97
|
+
class="template option"
|
|
98
|
+
template
|
|
99
|
+
value="{{object._id}}">
|
|
100
|
+
<h4
|
|
101
|
+
array="industries"
|
|
102
|
+
object="{{object._id}}"
|
|
103
|
+
key="name">
|
|
104
|
+
industry name
|
|
105
|
+
</h4>
|
|
106
|
+
</li>
|
|
107
|
+
</ul>
|
|
108
|
+
</cocreate-select>
|
|
109
109
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
110
|
+
<button
|
|
111
|
+
type="button"
|
|
112
|
+
class="outline red-white"
|
|
113
|
+
actions="runIndustry">
|
|
114
|
+
Register
|
|
115
|
+
<a
|
|
116
|
+
href="index.html"
|
|
117
|
+
state-array="modules"
|
|
118
|
+
state-object=""
|
|
119
|
+
state-key="html"
|
|
120
|
+
state_to="render"></a>
|
|
121
|
+
</button>
|
|
122
|
+
</div>
|
|
123
|
+
</form>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
127
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
<!--<script src="../dist/CoCreate-organizations.js"></script>-->
|
|
129
|
+
<script src="https://CoCreate.app/dist/CoCreate.js"></script>
|
|
130
|
+
</body>
|
|
131
131
|
</html>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
type="text"
|
|
23
23
|
class="floating-label"
|
|
24
24
|
filter-query-key="name"
|
|
25
|
-
filter-
|
|
25
|
+
filter-query="$closest table; tbody"
|
|
26
26
|
placeholder="Industry Name" />
|
|
27
27
|
<span
|
|
28
28
|
class="position:absolute bottom:22px right:20px float:right z-index:6">
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<a
|
|
31
31
|
filter-sort-key="name"
|
|
32
32
|
filter-sort-toggle
|
|
33
|
-
filter-
|
|
33
|
+
filter-query="$closest table; tbody">
|
|
34
34
|
<i></i>
|
|
35
35
|
</a>
|
|
36
36
|
</span>
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
type="text"
|
|
42
42
|
class="floating-label"
|
|
43
43
|
filter-query-key="_id"
|
|
44
|
-
filter-
|
|
44
|
+
filter-query="$closest table; tbody"
|
|
45
45
|
placeholder="Industry_id" />
|
|
46
46
|
<span
|
|
47
47
|
class="position:absolute bottom:22px right:20px float:right z-index:6">
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
filter-sort-direction="asc"
|
|
52
52
|
click-value="desc, asc"
|
|
53
53
|
click-attribute="filter-sort-direction"
|
|
54
|
-
filter-
|
|
54
|
+
filter-query="$closest table; tbody">
|
|
55
55
|
</a>
|
|
56
56
|
</span>
|
|
57
57
|
</td>
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
filter-query-value=""
|
|
64
64
|
filter-sort-key="name"
|
|
65
65
|
filter-sort-direction="asc"
|
|
66
|
-
render-
|
|
66
|
+
render-query="[template]">
|
|
67
67
|
<tr template class="border-bottom:1px_solid_darkgray">
|
|
68
68
|
<td class="padding:10px">
|
|
69
69
|
<div class="min-width:200px">
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
type="text"
|
|
23
23
|
class="floating-label"
|
|
24
24
|
filter-query-key="name"
|
|
25
|
-
filter-
|
|
25
|
+
filter-query="$closest table; tbody"
|
|
26
26
|
placeholder="Industry Name" />
|
|
27
27
|
<span
|
|
28
28
|
class="position:absolute bottom:22px right:20px float:right z-index:6">
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<a
|
|
31
31
|
filter-sort-key="name"
|
|
32
32
|
filter-sort-toggle
|
|
33
|
-
filter-
|
|
33
|
+
filter-query="$closest table; tbody">
|
|
34
34
|
<i></i>
|
|
35
35
|
</a>
|
|
36
36
|
</span>
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
type="text"
|
|
42
42
|
class="floating-label"
|
|
43
43
|
filter-query-key="_id"
|
|
44
|
-
filter-
|
|
44
|
+
filter-query="$closest table; tbody"
|
|
45
45
|
placeholder="Industry_id" />
|
|
46
46
|
<span
|
|
47
47
|
class="position:absolute bottom:22px right:20px float:right z-index:6">
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
filter-sort-direction="asc"
|
|
52
52
|
click-value="desc, asc"
|
|
53
53
|
click-attribute="filter-sort-direction"
|
|
54
|
-
filter-
|
|
54
|
+
filter-query="$closest table; tbody">
|
|
55
55
|
</a>
|
|
56
56
|
</span>
|
|
57
57
|
</td>
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
filter-limit=""
|
|
66
66
|
filter-sort-key="name"
|
|
67
67
|
filter-sort-direction="asc"
|
|
68
|
-
render-
|
|
68
|
+
render-query="[template]"
|
|
69
69
|
state_to="me1234">
|
|
70
70
|
<tr template class="border-bottom:1px_solid_darkgray">
|
|
71
71
|
<td class="padding:10px">
|
package/docs/index.html
CHANGED
|
@@ -1,339 +1,329 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<meta
|
|
24
|
-
property="og:image"
|
|
25
|
-
content="https://cdn.cocreate.app/docs/organizations.png"
|
|
26
|
-
/>
|
|
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-organizations 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 simple HTML5 and pure javascript component. Easy configuration using HTML5 attributes or Javscript api and highly styleable." />
|
|
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/organizations.png" />
|
|
27
23
|
|
|
28
|
-
|
|
24
|
+
<!-- CoCreate CSS CDN -->
|
|
29
25
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
</span>
|
|
151
|
-
</div>
|
|
152
|
-
<pre
|
|
153
|
-
class="margin-top:15px"
|
|
154
|
-
><code class="language-bash">npm i @cocreate/organizations</code></pre>
|
|
155
|
-
<p class="padding:10px_0px line-height:1.5">
|
|
156
|
-
Or you can use cdn link:
|
|
157
|
-
</p>
|
|
158
|
-
<pre><code class="language-html"><script>https://cdn.cocreate.app/organizations/latest/CoCreate-organizations.min.js</script></code></pre>
|
|
26
|
+
<link
|
|
27
|
+
rel="stylesheet"
|
|
28
|
+
href="https://ws.cocreate.app/docs.css"
|
|
29
|
+
array="apples"
|
|
30
|
+
object="6069ff5042ef8ff5175a5c8d"
|
|
31
|
+
key="css"
|
|
32
|
+
type="text/css" />
|
|
33
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
34
|
+
</head>
|
|
35
|
+
<body>
|
|
36
|
+
<!-- Navbar -->
|
|
37
|
+
<nav
|
|
38
|
+
class="width:100% display:flex align-items:center background:transparent padding-top:10px padding-bottom:10px"
|
|
39
|
+
content_id="content"
|
|
40
|
+
scroll="sticky-nav,"
|
|
41
|
+
scroll-up="5"
|
|
42
|
+
scroll-down="5"
|
|
43
|
+
path="../"
|
|
44
|
+
src="../components/navbar.html"></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-query="[content_id='content']"
|
|
50
|
+
resize-property="margin-left"
|
|
51
|
+
resize-value="width">
|
|
52
|
+
<menu
|
|
53
|
+
array="files"
|
|
54
|
+
object="603717b07de7fb350ae9fec8"
|
|
55
|
+
key="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-organizations">
|
|
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-organizations</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="Enter decription here"
|
|
73
|
+
share-title="testing im a title"
|
|
74
|
+
share-height="600"
|
|
75
|
+
share-width="700"
|
|
76
|
+
share-media="https://cdn.cocreate.app/docs/organizations.png"
|
|
77
|
+
hover="display:block!important"
|
|
78
|
+
hover-query=".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 src="/assets/svg/twitter.svg"></i
|
|
85
|
+
></a>
|
|
86
|
+
<a
|
|
87
|
+
class="margin-right:15px"
|
|
88
|
+
share-network="facebook"
|
|
89
|
+
title="Share on Facebook"
|
|
90
|
+
><i src="/assets/svg/facebook.svg"></i
|
|
91
|
+
></a>
|
|
92
|
+
<a
|
|
93
|
+
class="margin-right:15px"
|
|
94
|
+
share-network="instagram"
|
|
95
|
+
title="Share on instagram"
|
|
96
|
+
><i src="/assets/svg/instagram.svg"></i
|
|
97
|
+
></a>
|
|
98
|
+
</div>
|
|
99
|
+
<a
|
|
100
|
+
class="margin-right:15px"
|
|
101
|
+
share-network="share"
|
|
102
|
+
title="Share on share"
|
|
103
|
+
><i src="/assets/svg/share-alt.svg"></i
|
|
104
|
+
></a>
|
|
105
|
+
</div>
|
|
106
|
+
<a
|
|
107
|
+
href="https://github.com/CoCreate-app/CoCreate-organizations"
|
|
108
|
+
target="_blank"
|
|
109
|
+
class="margin-right:15px"
|
|
110
|
+
><i src="/assets/svg/github.svg"></i
|
|
111
|
+
></a>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
<h1
|
|
115
|
+
class="max-width:500px margin:20px_10px line-height:1.5 font-size:16px font-weight:100">
|
|
116
|
+
A headless vinilla javascript micro component. Easy
|
|
117
|
+
configuration using HTML5 attributes or Javscript api.
|
|
118
|
+
</h1>
|
|
119
|
+
<div id="organizations-section" class="display:flex flex-wrap:wrap">
|
|
120
|
+
<div
|
|
121
|
+
class="flex-grow:1 width:400px width:300px@xs padding:0px_10px margin-top:60px">
|
|
122
|
+
<div
|
|
123
|
+
id="organizations-install"
|
|
124
|
+
class="border-bottom:1px_solid_lightgrey"
|
|
125
|
+
scroll
|
|
126
|
+
scroll-intersect="color:dodgerblue"
|
|
127
|
+
scroll-query="#organizations-install-section">
|
|
128
|
+
<span
|
|
129
|
+
class="display:flex align-items:center width:fit-content"
|
|
130
|
+
hover="display:block!important"
|
|
131
|
+
hover-query="[href='#organizations-install']">
|
|
132
|
+
<h2 class="padding:5px_0px">Install</h2>
|
|
133
|
+
<a
|
|
134
|
+
class="margin-left:10px display:none"
|
|
135
|
+
href="#organizations-install"
|
|
136
|
+
><i src="/assets/svg/link.svg"></i
|
|
137
|
+
></a>
|
|
138
|
+
</span>
|
|
139
|
+
</div>
|
|
140
|
+
<pre
|
|
141
|
+
class="margin-top:15px"><code class="language-bash">npm i @cocreate/organizations</code></pre>
|
|
142
|
+
<p class="padding:10px_0px line-height:1.5">
|
|
143
|
+
Or you can use cdn link:
|
|
144
|
+
</p>
|
|
145
|
+
<pre><code class="language-html"><script>https://cdn.cocreate.app/organizations/latest/CoCreate-organizations.min.js</script></code></pre>
|
|
159
146
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
</p>
|
|
183
|
-
<pre><code class="language-html"><div></div></code></pre>
|
|
147
|
+
<div
|
|
148
|
+
id="organizations-usage"
|
|
149
|
+
class="margin-top:80px border-bottom:1px_solid_lightgrey"
|
|
150
|
+
scroll
|
|
151
|
+
scroll-intersect="color:dodgerblue"
|
|
152
|
+
scroll-query="#organizations-usage-section">
|
|
153
|
+
<span
|
|
154
|
+
class="display:flex align-items:center width:fit-content"
|
|
155
|
+
hover="display:block!important"
|
|
156
|
+
hover-query="[href='#organizations-usage']">
|
|
157
|
+
<h2 class="padding:5px_0px">Usage</h2>
|
|
158
|
+
<a
|
|
159
|
+
class="margin-left:10px display:none"
|
|
160
|
+
href="#organizations-usage"
|
|
161
|
+
><i src="/assets/svg/link.svg"></i
|
|
162
|
+
></a>
|
|
163
|
+
</span>
|
|
164
|
+
</div>
|
|
165
|
+
<p class="padding:10px_0px line-height:1.5">
|
|
166
|
+
organizations usage content
|
|
167
|
+
</p>
|
|
168
|
+
<pre><code class="language-html"><div></div></code></pre>
|
|
184
169
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
170
|
+
<div
|
|
171
|
+
id="organizations-attributes"
|
|
172
|
+
class="margin-top:80px border-bottom:1px_solid_lightgrey"
|
|
173
|
+
scroll
|
|
174
|
+
scroll-intersect="color:dodgerblue"
|
|
175
|
+
scroll-query="#organizations-attributes-section">
|
|
176
|
+
<span
|
|
177
|
+
class="display:flex align-items:center width:fit-content"
|
|
178
|
+
hover="display:block!important"
|
|
179
|
+
hover-query="[href='#organizations-attributes']">
|
|
180
|
+
<h2 class="padding:5px_0px">Attributes</h2>
|
|
181
|
+
<a
|
|
182
|
+
class="margin-left:10px display:none"
|
|
183
|
+
href="#organizations-attributes"
|
|
184
|
+
><i src="/assets/svg/link.svg"></i
|
|
185
|
+
></a>
|
|
186
|
+
</span>
|
|
187
|
+
</div>
|
|
188
|
+
<ul class="list-style-type:none">
|
|
189
|
+
<li
|
|
190
|
+
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
191
|
+
<h4>
|
|
192
|
+
<span>organizations</span>
|
|
193
|
+
<span class="cocreate-badge success"
|
|
194
|
+
>string</span
|
|
195
|
+
>
|
|
196
|
+
<span class="cocreate-badge warning"
|
|
197
|
+
>optional</span
|
|
198
|
+
>
|
|
199
|
+
</h4>
|
|
200
|
+
<p>organizations-attribute</p>
|
|
201
|
+
</li>
|
|
202
|
+
<li
|
|
203
|
+
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
204
|
+
<h4>
|
|
205
|
+
<span>organizations</span>
|
|
206
|
+
<span class="cocreate-badge success"
|
|
207
|
+
>string</span
|
|
208
|
+
>
|
|
209
|
+
<span class="cocreate-badge warning"
|
|
210
|
+
>optional</span
|
|
211
|
+
>
|
|
212
|
+
</h4>
|
|
213
|
+
<p>organizations-attribute</p>
|
|
214
|
+
</li>
|
|
215
|
+
</ul>
|
|
216
|
+
</div>
|
|
224
217
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
></textarea>
|
|
270
|
-
<div resize="bottom" class="background:lightgrey"></div>
|
|
271
|
-
</div>
|
|
218
|
+
<div
|
|
219
|
+
class="flex-grow:1 width:300px padding:0px_10px margin-top:60px border-bottom:1px_solid_lightgrey">
|
|
220
|
+
<!-- SandBox -->
|
|
221
|
+
<div
|
|
222
|
+
id="organizations-demo"
|
|
223
|
+
class="border-bottom:1px_solid_lightgrey"
|
|
224
|
+
scroll
|
|
225
|
+
scroll-intersect="color:dodgerblue"
|
|
226
|
+
scroll-query="#organizations-demo-section">
|
|
227
|
+
<span
|
|
228
|
+
class="display:flex align-items:center width:fit-content"
|
|
229
|
+
hover="display:block!important"
|
|
230
|
+
hover-query="[href='#organizations-demo']">
|
|
231
|
+
<h2 class="padding:5px_0px">Demo</h2>
|
|
232
|
+
<a
|
|
233
|
+
class="margin-left:10px display:none"
|
|
234
|
+
href="#organizations-demo"
|
|
235
|
+
><i src="/assets/svg/link.svg"></i
|
|
236
|
+
></a>
|
|
237
|
+
</span>
|
|
238
|
+
</div>
|
|
239
|
+
<div
|
|
240
|
+
class="position:sticky top:0 padding:10px_0px height:100vh">
|
|
241
|
+
<!-- SandBox -->
|
|
242
|
+
<div
|
|
243
|
+
class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
|
|
244
|
+
id="playground">
|
|
245
|
+
<div
|
|
246
|
+
id="demo-code"
|
|
247
|
+
resizable
|
|
248
|
+
class="position:relative height:50%">
|
|
249
|
+
<textarea
|
|
250
|
+
type="code"
|
|
251
|
+
lang="html"
|
|
252
|
+
array="demos"
|
|
253
|
+
object=""
|
|
254
|
+
key="demo"
|
|
255
|
+
save="false"
|
|
256
|
+
id="demo"
|
|
257
|
+
class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
|
|
258
|
+
<div
|
|
259
|
+
resize="bottom"
|
|
260
|
+
class="background:lightgrey"></div>
|
|
261
|
+
</div>
|
|
272
262
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
</div>
|
|
263
|
+
<div
|
|
264
|
+
id="demo-preview"
|
|
265
|
+
class="position:relative overflow:auto background-color:white">
|
|
266
|
+
<div class="demopreview padding:20px"></div>
|
|
267
|
+
</div>
|
|
279
268
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
269
|
+
<div
|
|
270
|
+
class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
|
|
271
|
+
<a
|
|
272
|
+
class="margin-right:10px"
|
|
273
|
+
id="eye"
|
|
274
|
+
show="#eye-slash"
|
|
275
|
+
hide="#eye, #demo-preview"
|
|
276
|
+
toggle="code-height"
|
|
277
|
+
toggle-query="#demo-code"
|
|
278
|
+
><i
|
|
279
|
+
class="height:18px"
|
|
280
|
+
src="/assets/svg/eye.svg"></i
|
|
281
|
+
></a>
|
|
282
|
+
<a
|
|
283
|
+
class="margin-right:10px"
|
|
284
|
+
hidden
|
|
285
|
+
id="eye-slash"
|
|
286
|
+
show="#eye, #demo-preview"
|
|
287
|
+
hide="#eye-slash"
|
|
288
|
+
toggle="code-height"
|
|
289
|
+
toggle-query="#demo-code"
|
|
290
|
+
><i src="/assets/svg/eye-slash.svg"></i
|
|
291
|
+
></a>
|
|
292
|
+
<a
|
|
293
|
+
class="margin-right:10px"
|
|
294
|
+
id="code"
|
|
295
|
+
show="#code-slash"
|
|
296
|
+
hide="#code, #demo-code"
|
|
297
|
+
><i src="/assets/svg/code.svg"></i
|
|
298
|
+
></a>
|
|
299
|
+
<a
|
|
300
|
+
class="margin-right:10px"
|
|
301
|
+
hidden
|
|
302
|
+
id="code-slash"
|
|
303
|
+
show="#code, #demo-code"
|
|
304
|
+
hide="#code-slash"
|
|
305
|
+
><i
|
|
306
|
+
class="height:18px"
|
|
307
|
+
src="/assets/svg/code.svg"></i
|
|
308
|
+
></a>
|
|
309
|
+
<a
|
|
310
|
+
class="margin-right:5px"
|
|
311
|
+
fullscreen
|
|
312
|
+
fullscreen-query="#playground"></a>
|
|
313
|
+
</div>
|
|
314
|
+
</div>
|
|
315
|
+
<!-- End SandBox -->
|
|
316
|
+
</div>
|
|
317
|
+
</div>
|
|
318
|
+
</div>
|
|
319
|
+
<button
|
|
320
|
+
href="https://github.com/CoCreate-app/CoCreate-organizations/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..."
|
|
321
|
+
target="_blank"
|
|
322
|
+
class="display:flex justify-content:center align-items:center position:fixed bottom:15px right:15px height:50px width:50px border-radius:50% box-shadow:0px_2px_10px_0px_rgba(0,_0,_0,_0.4)">
|
|
323
|
+
<i src="../assets/svg/pencil-alt.svg"></i>
|
|
324
|
+
</button>
|
|
325
|
+
</main>
|
|
336
326
|
|
|
337
|
-
|
|
338
|
-
|
|
327
|
+
<script src="https://CoCreate.app/dist/CoCreate.js"></script>
|
|
328
|
+
</body>
|
|
339
329
|
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/organizations",
|
|
3
|
-
"version": "1.28.
|
|
3
|
+
"version": "1.28.4",
|
|
4
4
|
"description": "A simple organizations component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"organizations",
|
|
@@ -45,22 +45,18 @@
|
|
|
45
45
|
},
|
|
46
46
|
"main": "./src/index.js",
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"clean-webpack-plugin": "^3.0.0",
|
|
52
|
-
"file-loader": "^6.2.0",
|
|
48
|
+
"css-loader": "^5.1.3",
|
|
49
|
+
"esbuild": "^0.25.2",
|
|
50
|
+
"esbuild-loader": "^4.3.0",
|
|
53
51
|
"mini-css-extract-plugin": "^1.5.0",
|
|
54
|
-
"style-loader": "^3.3.1",
|
|
55
|
-
"terser-webpack-plugin": "^5.1.1",
|
|
56
52
|
"webpack": "^5.24.4",
|
|
57
53
|
"webpack-cli": "^4.5.0",
|
|
58
54
|
"webpack-log": "^3.0.1"
|
|
59
55
|
},
|
|
60
56
|
"dependencies": {
|
|
61
|
-
"@cocreate/actions": "^1.
|
|
62
|
-
"@cocreate/config": "^1.
|
|
63
|
-
"@cocreate/crud-client": "^1.
|
|
64
|
-
"@cocreate/elements": "^1.
|
|
57
|
+
"@cocreate/actions": "^1.21.1",
|
|
58
|
+
"@cocreate/config": "^1.13.1",
|
|
59
|
+
"@cocreate/crud-client": "^1.34.2",
|
|
60
|
+
"@cocreate/elements": "^1.42.1"
|
|
65
61
|
}
|
|
66
62
|
}
|
package/webpack.config.js
CHANGED
|
@@ -1,90 +1,65 @@
|
|
|
1
|
-
const path = require("path")
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const {
|
|
5
|
-
|
|
6
|
-
module.exports = (env, argv) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
parallel: true,
|
|
67
|
-
// sourceMap: true, // Must be set to true if using source-maps in production
|
|
68
|
-
terserOptions: {
|
|
69
|
-
// https://github.com/webpack-contrib/terser-webpack-plugin#terseroptions
|
|
70
|
-
// extractComments: 'all',
|
|
71
|
-
compress: {
|
|
72
|
-
drop_console: true,
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
}),
|
|
76
|
-
],
|
|
77
|
-
splitChunks: {
|
|
78
|
-
chunks: "all",
|
|
79
|
-
minSize: 200,
|
|
80
|
-
// maxSize: 99999,
|
|
81
|
-
//minChunks: 1,
|
|
82
|
-
|
|
83
|
-
cacheGroups: {
|
|
84
|
-
defaultVendors: false,
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
}
|
|
89
|
-
return config
|
|
90
|
-
}
|
|
1
|
+
const path = require("path");
|
|
2
|
+
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
|
3
|
+
const { EsbuildPlugin } = require("esbuild-loader");
|
|
4
|
+
const { FileUploader } = require("@cocreate/webpack");
|
|
5
|
+
|
|
6
|
+
module.exports = async (env, argv) => {
|
|
7
|
+
const isProduction = argv && argv.mode === "production";
|
|
8
|
+
const config = {
|
|
9
|
+
entry: {
|
|
10
|
+
"CoCreate-organizations": "./src/index.js"
|
|
11
|
+
},
|
|
12
|
+
output: {
|
|
13
|
+
path: path.resolve(__dirname, "dist"),
|
|
14
|
+
filename: isProduction ? "[name].min.js" : "[name].js",
|
|
15
|
+
libraryExport: "default",
|
|
16
|
+
library: ["CoCreate", "organizations"],
|
|
17
|
+
clean: true
|
|
18
|
+
},
|
|
19
|
+
plugins: [
|
|
20
|
+
new MiniCssExtractPlugin({
|
|
21
|
+
filename: isProduction ? "[name].min.css" : "[name].css"
|
|
22
|
+
}),
|
|
23
|
+
new FileUploader(env, argv)
|
|
24
|
+
],
|
|
25
|
+
mode: isProduction ? "production" : "development",
|
|
26
|
+
devtool: isProduction ? "source-map" : "eval-source-map",
|
|
27
|
+
module: {
|
|
28
|
+
rules: [
|
|
29
|
+
{
|
|
30
|
+
test: /.js$/,
|
|
31
|
+
exclude: /node_modules/,
|
|
32
|
+
use: {
|
|
33
|
+
loader: "esbuild-loader",
|
|
34
|
+
options: {
|
|
35
|
+
loader: "js",
|
|
36
|
+
target: "es2017"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
test: /.css$/i,
|
|
42
|
+
use: [MiniCssExtractPlugin.loader, "css-loader"]
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
optimization: {
|
|
47
|
+
minimize: isProduction,
|
|
48
|
+
minimizer: [
|
|
49
|
+
new EsbuildPlugin({
|
|
50
|
+
target: "es2017",
|
|
51
|
+
css: true
|
|
52
|
+
})
|
|
53
|
+
],
|
|
54
|
+
splitChunks: {
|
|
55
|
+
cacheGroups: {
|
|
56
|
+
defaultVendors: false
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
performance: {
|
|
61
|
+
hints: isProduction ? "warning" : false
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
return config;
|
|
65
|
+
};
|