@cocreate/organizations 1.5.4 → 1.5.7

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,24 @@
1
+ ## [1.5.7](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.5.6...v1.5.7) (2022-08-31)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * getValue and setValue using HTMLElement.prototype ([735ac73](https://github.com/CoCreate-app/CoCreate-organizations/commit/735ac73e5836772974b63005ae868523c6cfbe99))
7
+
8
+ ## [1.5.6](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.5.5...v1.5.6) (2022-08-19)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * renamed order-by and order-type to filter-order-name and filter-order-type ([cb6a59b](https://github.com/CoCreate-app/CoCreate-organizations/commit/cb6a59b9d78ef556f732f0a80b5ab1281927b7f7))
14
+
15
+ ## [1.5.5](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.5.4...v1.5.5) (2022-07-03)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * update pass-fetch and pass-filter attributes ([0a7cbcb](https://github.com/CoCreate-app/CoCreate-organizations/commit/0a7cbcba3c8a2a56b4940085f8c287cdc6c3d6e9))
21
+
1
22
  ## [1.5.4](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.5.3...v1.5.4) (2022-06-18)
2
23
 
3
24
 
@@ -19,7 +19,7 @@
19
19
  placeholder="Industry Name">
20
20
  <span class="position:absolute bottom:18px right:20px float:right font-size:18px z-index:6">
21
21
  <!-- 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 -->
22
- <a order-by="name" toggle-order template_id="datatable">
22
+ <a filter-order-name="name" toggle-order template_id="datatable">
23
23
  <i></i>
24
24
  </a>
25
25
  </span>
@@ -32,7 +32,7 @@
32
32
  template_id="datatable"
33
33
  placeholder="Industry_id"/>
34
34
  <span class="position:absolute bottom:18px right:20px float:right font-size:18px z-index:6" >
35
- <a order-by="_id" value="" toggle-order="true" template_id="datatable">
35
+ <a filter-order-name="_id" value="" toggle-order="true" template_id="datatable">
36
36
  </a>
37
37
  </span>
38
38
  </td>
@@ -41,9 +41,9 @@
41
41
  <tbody
42
42
  fetch-collection="industries"
43
43
  fetch-name=""
44
- fetch-value=""
45
- order-by="name"
46
- order-type="asc"
44
+ filter-value=""
45
+ filter-order-name="name"
46
+ filter-order-type="asc"
47
47
  template_id="datatable">
48
48
 
49
49
  <tr class="template background:gainsboro:hover border-bottom:1px_solid_darkgray">
@@ -21,7 +21,7 @@
21
21
  placeholder="Industry Name">
22
22
  <span class="position:absolute bottom:18px right:20px float:right font-size:18px z-index:6">
23
23
  <!-- 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 -->
24
- <a order-by="name" toggle-order template_id="datatable">
24
+ <a filter-order-name="name" toggle-order template_id="datatable">
25
25
  <i></i>
26
26
  </a>
27
27
  </span>
@@ -34,7 +34,7 @@
34
34
  template_id="datatable"
35
35
  placeholder="Industry_id"/>
36
36
  <span class="position:absolute bottom:18px right:20px float:right font-size:18px z-index:6" >
37
- <a order-by="_id" value="" toggle-order="true" template_id="datatable">
37
+ <a filter-order-name="_id" value="" toggle-order="true" template_id="datatable">
38
38
  </a>
39
39
  </span>
40
40
  </td>
@@ -43,11 +43,11 @@
43
43
  <tbody
44
44
  fetch-collection="industry_documents"
45
45
  fetch-name=""
46
- fetch-value=""
47
- fetch-value_type="or"
46
+ filter-value=""
47
+ filter-value-type="or"
48
48
  fetch-count=""
49
- order-by="name"
50
- order-type="asc"
49
+ filter-order-name="name"
50
+ filter-order-type="asc"
51
51
  template_id="datatable"
52
52
  pass_to="me1234">
53
53
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/organizations",
3
- "version": "1.5.4",
3
+ "version": "1.5.7",
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",
package/src/client.js CHANGED
@@ -23,7 +23,7 @@ const CoCreateOrganization = {
23
23
  //. get form data
24
24
  elements.forEach(el => {
25
25
  let name = el.getAttribute('name');
26
- let value = el.getValue(el) || el.getAttribute('value');
26
+ let value = el.getValue();
27
27
  if (!name || !value) return;
28
28
  if (el.getAttribute('data-type') == 'array') {
29
29
  value = [value];