@cocreate/organizations 1.28.0 → 1.28.1

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,10 @@
1
+ ## [1.28.1](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.28.0...v1.28.1) (2024-12-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * filter-query-key ([0950df1](https://github.com/CoCreate-app/CoCreate-organizations/commit/0950df1884c1e6001b258758611bea2b7151da0f))
7
+
1
8
  # [1.28.0](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.27.5...v1.28.0) (2024-11-04)
2
9
 
3
10
 
@@ -1,144 +1,144 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
- <head>
4
- <title>Industry Datatables | CoCreateJS</title>
3
+ <head>
4
+ <title>Industry Datatables | CoCreateJS</title>
5
5
 
6
- <!-- CoCreate Favicon -->
7
- <link
8
- rel="icon"
9
- type="image/png"
10
- sizes="32x32"
11
- href="../assets/favicon.ico" />
12
- <link rel="manifest" href="/manifest.webmanifest" />
13
- </head>
14
- <body class="width:fit-content overflow:auto">
15
- <!-- Main Content -->
16
- <div content_id="content" class="padding:5px">
17
- <table class="width:100% border-collapse:collapse">
18
- <tr class="border-bottom:1px_solid_darkgray">
19
- <td
20
- class="position:sticky top:0 background:white padding:0px_10px_10px">
21
- <input
22
- type="text"
23
- class="floating-label"
24
- filter-key="name"
25
- filter-closest="table; tbody"
26
- placeholder="Industry Name" />
27
- <span
28
- class="position:absolute bottom:22px right:20px float:right z-index:6">
29
- <!-- need a solution to update toggle value="desc|asc" and define and upadte icons... show hide works great but to much html and orderby only has 2 values -->
30
- <a
31
- filter-sort-key="name"
32
- filter-sort-toggle
33
- filter-closest="table; tbody">
34
- <i></i>
35
- </a>
36
- </span>
37
- </td>
38
- <td
39
- class="position:sticky top:0 background:white padding:0px_10px_10px">
40
- <input
41
- type="text"
42
- class="floating-label"
43
- filter-key="_id"
44
- filter-closest="table; tbody"
45
- placeholder="Industry_id" />
46
- <span
47
- class="position:absolute bottom:22px right:20px float:right z-index:6">
48
- <a
49
- filter-sort-key="_id"
50
- value=""
51
- filter-sort-direction="asc"
52
- click-value="desc, asc"
53
- click-attribute="filter-sort-direction"
54
- filter-closest="table; tbody">
55
- </a>
56
- </span>
57
- </td>
58
- </tr>
6
+ <!-- CoCreate Favicon -->
7
+ <link
8
+ rel="icon"
9
+ type="image/png"
10
+ sizes="32x32"
11
+ href="../assets/favicon.ico" />
12
+ <link rel="manifest" href="/manifest.webmanifest" />
13
+ </head>
14
+ <body class="width:fit-content overflow:auto">
15
+ <!-- Main Content -->
16
+ <div content_id="content" class="padding:5px">
17
+ <table class="width:100% border-collapse:collapse">
18
+ <tr class="border-bottom:1px_solid_darkgray">
19
+ <td
20
+ class="position:sticky top:0 background:white padding:0px_10px_10px">
21
+ <input
22
+ type="text"
23
+ class="floating-label"
24
+ filter-query-key="name"
25
+ filter-closest="table; tbody"
26
+ placeholder="Industry Name" />
27
+ <span
28
+ class="position:absolute bottom:22px right:20px float:right z-index:6">
29
+ <!-- need a solution to update toggle value="desc|asc" and define and upadte icons... show hide works great but to much html and orderby only has 2 values -->
30
+ <a
31
+ filter-sort-key="name"
32
+ filter-sort-toggle
33
+ filter-closest="table; tbody">
34
+ <i></i>
35
+ </a>
36
+ </span>
37
+ </td>
38
+ <td
39
+ class="position:sticky top:0 background:white padding:0px_10px_10px">
40
+ <input
41
+ type="text"
42
+ class="floating-label"
43
+ filter-query-key="_id"
44
+ filter-closest="table; tbody"
45
+ placeholder="Industry_id" />
46
+ <span
47
+ class="position:absolute bottom:22px right:20px float:right z-index:6">
48
+ <a
49
+ filter-sort-key="_id"
50
+ value=""
51
+ filter-sort-direction="asc"
52
+ click-value="desc, asc"
53
+ click-attribute="filter-sort-direction"
54
+ filter-closest="table; tbody">
55
+ </a>
56
+ </span>
57
+ </td>
58
+ </tr>
59
59
 
60
- <tbody
61
- array="industries"
62
- key=""
63
- filter-value=""
64
- filter-sort-key="name"
65
- filter-sort-direction="asc"
66
- render-selector="[template]">
67
- <tr template class="border-bottom:1px_solid_darkgray">
68
- <td class="padding:10px">
69
- <div class="min-width:200px">
70
- <div class="icon-wrapper">
71
- <span state_id="me1234" key="icon"></span>
72
- </div>
73
- <div>
74
- <a
75
- actions="state, openModal"
76
- modal-src="render.html"
77
- state-array="module_activity"
78
- state-object="{{object._id}}"
79
- state_to="form-fields"
80
- modal-width="320px"
81
- modal-color="#229954">
82
- <h4
83
- array="{{object.array}}"
84
- state-object="{{object._id}}"
85
- key="name">
86
- Name
87
- </h4>
88
- <div
89
- state-array="modules"
90
- state-object=""
91
- state_to="render"
92
- state_id="render"></div>
93
- </a>
94
- <h5
95
- array="{{object.array}}"
96
- state-object="{{object._id}}"
97
- key="description"></h5>
98
- </div>
99
- </div>
100
- </td>
101
- <td class="padding:10px">
102
- <a
103
- actions="state, openModal"
104
- modal-src="render.html"
105
- state-object=""
106
- state-array="module_activity"
107
- state_to="form-fields"
108
- modal-width="320px"
109
- modal-color="#229954">
110
- <b
111
- array="{{object.array}}"
112
- state-object="{{object._id}}"
113
- key="_id"
114
- >Industry Id</b
115
- >
116
- <div
117
- state-array="module_activity"
118
- state-object=""
119
- state_to="render"></div>
120
- </a>
121
- </td>
122
- </tr>
123
- </tbody>
124
- </table>
125
- </div>
60
+ <tbody
61
+ array="industries"
62
+ key=""
63
+ filter-query-value=""
64
+ filter-sort-key="name"
65
+ filter-sort-direction="asc"
66
+ render-selector="[template]">
67
+ <tr template class="border-bottom:1px_solid_darkgray">
68
+ <td class="padding:10px">
69
+ <div class="min-width:200px">
70
+ <div class="icon-wrapper">
71
+ <span state_id="me1234" key="icon"></span>
72
+ </div>
73
+ <div>
74
+ <a
75
+ actions="state, openModal"
76
+ modal-src="render.html"
77
+ state-array="module_activity"
78
+ state-object="{{object._id}}"
79
+ state_to="form-fields"
80
+ modal-width="320px"
81
+ modal-color="#229954">
82
+ <h4
83
+ array="{{object.array}}"
84
+ state-object="{{object._id}}"
85
+ key="name">
86
+ Name
87
+ </h4>
88
+ <div
89
+ state-array="modules"
90
+ state-object=""
91
+ state_to="render"
92
+ state_id="render"></div>
93
+ </a>
94
+ <h5
95
+ array="{{object.array}}"
96
+ state-object="{{object._id}}"
97
+ key="description"></h5>
98
+ </div>
99
+ </div>
100
+ </td>
101
+ <td class="padding:10px">
102
+ <a
103
+ actions="state, openModal"
104
+ modal-src="render.html"
105
+ state-object=""
106
+ state-array="module_activity"
107
+ state_to="form-fields"
108
+ modal-width="320px"
109
+ modal-color="#229954">
110
+ <b
111
+ array="{{object.array}}"
112
+ state-object="{{object._id}}"
113
+ key="_id"
114
+ >Industry Id</b
115
+ >
116
+ <div
117
+ state-array="module_activity"
118
+ state-object=""
119
+ state_to="render"></div>
120
+ </a>
121
+ </td>
122
+ </tr>
123
+ </tbody>
124
+ </table>
125
+ </div>
126
126
 
127
- <button
128
- actions="state, openModal"
129
- modal-src="render.html"
130
- state-array="modules"
131
- state-object=""
132
- state_to="render"
133
- modal-width="320px"
134
- modal-height="100%"
135
- modal-color="#229954"
136
- 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) z-index:8"
137
- state_id="render">
138
- <i src="/assets/svg/plus.svg"></i>
139
- </button>
127
+ <button
128
+ actions="state, openModal"
129
+ modal-src="render.html"
130
+ state-array="modules"
131
+ state-object=""
132
+ state_to="render"
133
+ modal-width="320px"
134
+ modal-height="100%"
135
+ modal-color="#229954"
136
+ 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) z-index:8"
137
+ state_id="render">
138
+ <i src="/assets/svg/plus.svg"></i>
139
+ </button>
140
140
 
141
- <!-- CoCreate JS CDN -->
142
- <script src="https://cdn.cocreate.app/organizations/latest/CoCreate-organizations.min.js"></script>
143
- </body>
141
+ <!-- CoCreate JS CDN -->
142
+ <script src="https://cdn.cocreate.app/organizations/latest/CoCreate-organizations.min.js"></script>
143
+ </body>
144
144
  </html>
@@ -1,136 +1,136 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
- <head>
4
- <title>Industry Documents Datatable | CoCreateJS</title>
3
+ <head>
4
+ <title>Industry Documents Datatable | CoCreateJS</title>
5
5
 
6
- <!-- CoCreate Favicon -->
7
- <link
8
- rel="icon"
9
- type="image/png"
10
- sizes="32x32"
11
- href="../assets/favicon.ico" />
12
- <link rel="manifest" href="/manifest.webmanifest" />
13
- </head>
14
- <body class="width:fit-content overflow:auto">
15
- <!-- Main Content -->
16
- <div content_id="content" class="padding:5px">
17
- <table class="width:100% border-collapse:collapse">
18
- <tr class="border-bottom:1px_solid_darkgray">
19
- <td
20
- class="position:sticky top:0 background:white padding:0px_10px_10px">
21
- <input
22
- type="text"
23
- class="floating-label"
24
- filter-key="name"
25
- filter-closest="table; tbody"
26
- placeholder="Industry Name" />
27
- <span
28
- class="position:absolute bottom:22px right:20px float:right z-index:6">
29
- <!-- need a solution to update toggle value="desc|asc" and define and upadte icons... show hide works great but to much html and orderby only has 2 values -->
30
- <a
31
- filter-sort-key="name"
32
- filter-sort-toggle
33
- filter-closest="table; tbody">
34
- <i></i>
35
- </a>
36
- </span>
37
- </td>
38
- <td
39
- class="position:sticky top:0 background:white padding:0px_10px_10px">
40
- <input
41
- type="text"
42
- class="floating-label"
43
- filter-key="_id"
44
- filter-closest="table; tbody"
45
- placeholder="Industry_id" />
46
- <span
47
- class="position:absolute bottom:22px right:20px float:right z-index:6">
48
- <a
49
- filter-sort-key="_id"
50
- value=""
51
- filter-sort-direction="asc"
52
- click-value="desc, asc"
53
- click-attribute="filter-sort-direction"
54
- filter-closest="table; tbody">
55
- </a>
56
- </span>
57
- </td>
58
- </tr>
6
+ <!-- CoCreate Favicon -->
7
+ <link
8
+ rel="icon"
9
+ type="image/png"
10
+ sizes="32x32"
11
+ href="../assets/favicon.ico" />
12
+ <link rel="manifest" href="/manifest.webmanifest" />
13
+ </head>
14
+ <body class="width:fit-content overflow:auto">
15
+ <!-- Main Content -->
16
+ <div content_id="content" class="padding:5px">
17
+ <table class="width:100% border-collapse:collapse">
18
+ <tr class="border-bottom:1px_solid_darkgray">
19
+ <td
20
+ class="position:sticky top:0 background:white padding:0px_10px_10px">
21
+ <input
22
+ type="text"
23
+ class="floating-label"
24
+ filter-query-key="name"
25
+ filter-closest="table; tbody"
26
+ placeholder="Industry Name" />
27
+ <span
28
+ class="position:absolute bottom:22px right:20px float:right z-index:6">
29
+ <!-- need a solution to update toggle value="desc|asc" and define and upadte icons... show hide works great but to much html and orderby only has 2 values -->
30
+ <a
31
+ filter-sort-key="name"
32
+ filter-sort-toggle
33
+ filter-closest="table; tbody">
34
+ <i></i>
35
+ </a>
36
+ </span>
37
+ </td>
38
+ <td
39
+ class="position:sticky top:0 background:white padding:0px_10px_10px">
40
+ <input
41
+ type="text"
42
+ class="floating-label"
43
+ filter-query-key="_id"
44
+ filter-closest="table; tbody"
45
+ placeholder="Industry_id" />
46
+ <span
47
+ class="position:absolute bottom:22px right:20px float:right z-index:6">
48
+ <a
49
+ filter-sort-key="_id"
50
+ value=""
51
+ filter-sort-direction="asc"
52
+ click-value="desc, asc"
53
+ click-attribute="filter-sort-direction"
54
+ filter-closest="table; tbody">
55
+ </a>
56
+ </span>
57
+ </td>
58
+ </tr>
59
59
 
60
- <tbody
61
- array="industry_documents"
62
- key=""
63
- filter-value=""
64
- filter-value-type="or"
65
- filter-limit=""
66
- filter-sort-key="name"
67
- filter-sort-direction="asc"
68
- render-selector="[template]"
69
- state_to="me1234">
70
- <tr template class="border-bottom:1px_solid_darkgray">
71
- <td class="padding:10px">
72
- <div class="min-width:200px">
73
- <div class="icon-wrapper">
74
- <span state_id="me1234" key="icon"></span>
75
- </div>
76
- <div>
77
- <a
78
- actions="state, openModal"
79
- modal-src="render.html"
80
- state-array="module_activity"
81
- state-object=""
82
- state_to="form-fields"
83
- modal-width="320px"
84
- modal-color="#229954">
85
- <h4 state_id="me1234" key="name">
86
- Name
87
- </h4>
88
- <div
89
- state-array="modules"
90
- state-object=""
91
- state_to="render"
92
- state_id="render"></div>
93
- </a>
94
- <h5 key="description"></h5>
95
- </div>
96
- </div>
97
- </td>
98
- <td class="padding:10px">
99
- <a
100
- actions="state, openModal"
101
- modal-src="render.html"
102
- state-object=""
103
- state-array="module_activity"
104
- state_to="form-fields"
105
- modal-width="320px"
106
- modal-color="#229954">
107
- <b state_id="me1234" key="_id">Document Id</b>
108
- <div
109
- state-array="module_activity"
110
- state-object=""
111
- state_to="render"></div>
112
- </a>
113
- </td>
114
- </tr>
115
- </tbody>
116
- </table>
117
- </div>
60
+ <tbody
61
+ array="industry_documents"
62
+ key=""
63
+ filter-query-value=""
64
+ filter-value-type="or"
65
+ filter-limit=""
66
+ filter-sort-key="name"
67
+ filter-sort-direction="asc"
68
+ render-selector="[template]"
69
+ state_to="me1234">
70
+ <tr template class="border-bottom:1px_solid_darkgray">
71
+ <td class="padding:10px">
72
+ <div class="min-width:200px">
73
+ <div class="icon-wrapper">
74
+ <span state_id="me1234" key="icon"></span>
75
+ </div>
76
+ <div>
77
+ <a
78
+ actions="state, openModal"
79
+ modal-src="render.html"
80
+ state-array="module_activity"
81
+ state-object=""
82
+ state_to="form-fields"
83
+ modal-width="320px"
84
+ modal-color="#229954">
85
+ <h4 state_id="me1234" key="name">
86
+ Name
87
+ </h4>
88
+ <div
89
+ state-array="modules"
90
+ state-object=""
91
+ state_to="render"
92
+ state_id="render"></div>
93
+ </a>
94
+ <h5 key="description"></h5>
95
+ </div>
96
+ </div>
97
+ </td>
98
+ <td class="padding:10px">
99
+ <a
100
+ actions="state, openModal"
101
+ modal-src="render.html"
102
+ state-object=""
103
+ state-array="module_activity"
104
+ state_to="form-fields"
105
+ modal-width="320px"
106
+ modal-color="#229954">
107
+ <b state_id="me1234" key="_id">Document Id</b>
108
+ <div
109
+ state-array="module_activity"
110
+ state-object=""
111
+ state_to="render"></div>
112
+ </a>
113
+ </td>
114
+ </tr>
115
+ </tbody>
116
+ </table>
117
+ </div>
118
118
 
119
- <button
120
- actions="state, openModal"
121
- modal-src="render.html"
122
- state-array="modules"
123
- state-object=""
124
- state_to="render"
125
- modal-width="320px"
126
- modal-height="100%"
127
- modal-color="#229954"
128
- 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) z-index:8"
129
- state_id="render">
130
- <i src="/assets/svg/plus.svg"></i>
131
- </button>
119
+ <button
120
+ actions="state, openModal"
121
+ modal-src="render.html"
122
+ state-array="modules"
123
+ state-object=""
124
+ state_to="render"
125
+ modal-width="320px"
126
+ modal-height="100%"
127
+ modal-color="#229954"
128
+ 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) z-index:8"
129
+ state_id="render">
130
+ <i src="/assets/svg/plus.svg"></i>
131
+ </button>
132
132
 
133
- <!-- CoCreate JS CDN -->
134
- <script src="https://cdn.cocreate.app/organizations/latest/CoCreate-organizations.min.js"></script>
135
- </body>
133
+ <!-- CoCreate JS CDN -->
134
+ <script src="https://cdn.cocreate.app/organizations/latest/CoCreate-organizations.min.js"></script>
135
+ </body>
136
136
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/organizations",
3
- "version": "1.28.0",
3
+ "version": "1.28.1",
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",