json-renderers-build-table 1.22.2 → 1.22.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json-renderers-build-table",
3
- "version": "1.22.2",
3
+ "version": "1.22.3",
4
4
  "description": "Focused table specification builder with configurable rows and cells",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -28,6 +28,8 @@
28
28
  "type": "text",
29
29
  "placeholder": "enter ${columnName}",
30
30
  "name": "${columnName}",
31
+ "id": "${columnName}",
32
+ "list": "${columnName}",
31
33
  "class": "form-control"
32
34
  }
33
35
  }
@@ -14,8 +14,10 @@ const functions = { fromCollection, twoDimensional };
14
14
 
15
15
  const startFunc = (data, showLog = false, returnLog = []) => {
16
16
  registry.data = data;
17
+
17
18
  runSingleInstructions(singleInstructions, registry, functions, spec, showLog, returnLog);
18
19
  runDoubleInstructions(doubleInstructions, registry, functions, spec, showLog, returnLog);
20
+
19
21
  return base;
20
22
  };
21
23
 
package/src/v22/index.js CHANGED
@@ -5,3 +5,11 @@ import withFooter from "./builders/withFooter/index.js";
5
5
  import footerOnly from "./builders/footerOnly/index.js";
6
6
 
7
7
  export { simple, headerOnly, bodyOnly, withFooter, footerOnly };
8
+
9
+ export default {
10
+ simple,
11
+ headerOnly,
12
+ bodyOnly,
13
+ withFooter,
14
+ footerOnly
15
+ };
package/src/v22/spec.json DELETED
@@ -1,86 +0,0 @@
1
- {
2
- "buildBodyTr": {
3
- "tagName": "tr",
4
- "attributes": {
5
- "class": "align-middle"
6
- },
7
- "children": []
8
- },
9
- "buildColGroup": {
10
- "tagName": "col",
11
- "attributes": {
12
- "width": "${width}"
13
- }
14
- },
15
- "buildHeader": {
16
- "tagName": "th",
17
- "textContent": "${columnName}",
18
- "attributes": {
19
- "class": "py-3 px-3 fw-semibold text-uppercase small"
20
- }
21
- },
22
- "buildFooter": {
23
- "tagName": "td",
24
- "children": [
25
- {
26
- "tagName": "input",
27
- "attributes": {
28
- "type": "text",
29
- "placeholder": "enter ${columnName}",
30
- "name": "${columnName}",
31
- "class": "form-control"
32
- }
33
- }
34
- ]
35
- },
36
- "buildBodyCell": {
37
- "tagName": "td",
38
- "textContent": "${rowValue}",
39
- "attributes": {
40
- "class": "py-3 px-3 text-secondary"
41
- }
42
- },
43
- "button": {
44
- "tagName": "button",
45
- "textContent": "${columnName}",
46
- "attributes": {
47
- "class": "btn btn-primary btn-sm"
48
- }
49
- },
50
- "buttonCell": {
51
- "tagName": "td",
52
- "attributes": {
53
- "class": "py-2 px-3 text-center"
54
- },
55
- "children": [
56
- {
57
- "tagName": "button",
58
- "textContent": "${agg:count}",
59
- "attributes": {
60
- "class": "btn btn-primary btn-sm"
61
- }
62
- }
63
- ]
64
- },
65
- "buildOption": {
66
- "tagName": "option",
67
- "textContent": "${rowValue}",
68
- "attributes": {
69
- "value": "${rowValue}"
70
- }
71
- },
72
- "buildSelect": {
73
- "tagName": "select",
74
- "attributes": {
75
- "id": "LedgerName"
76
- },
77
- "children": []
78
- },
79
- "buildDataList": {
80
- "tagName": "datalist",
81
- "attributes": {
82
- "data-name": "${columnName}"
83
- },
84
- "children": []
85
- }
86
- }