json-renderers-build-table 1.36.2 → 1.37.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.
Files changed (136) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +2 -2
  3. package/src/v37/builders/bodyOnly/base.json +1 -0
  4. package/src/v37/builders/bodyOnly/double.json +1 -0
  5. package/src/v37/builders/bodyOnly/index.js +37 -0
  6. package/src/v37/builders/bodyOnly/single.json +1 -0
  7. package/src/v37/builders/footerOnly/base.json +1 -0
  8. package/src/v37/builders/footerOnly/double.json +1 -0
  9. package/src/v37/builders/footerOnly/index.js +37 -0
  10. package/src/v37/builders/footerOnly/single.json +1 -0
  11. package/src/v37/builders/headerOnly/base.json +1 -0
  12. package/src/v37/builders/headerOnly/double.json +1 -0
  13. package/src/v37/builders/headerOnly/index.js +37 -0
  14. package/src/v37/builders/headerOnly/single.json +1 -0
  15. package/src/v37/builders/simple/base.json +1 -0
  16. package/src/v37/builders/simple/double.json +1 -0
  17. package/src/v37/builders/simple/index.js +34 -0
  18. package/src/v37/builders/simple/single.json +1 -0
  19. package/src/v37/builders/withFooter/base.json +1 -0
  20. package/src/v37/builders/withFooter/double.json +1 -0
  21. package/src/v37/builders/withFooter/index.js +33 -0
  22. package/src/v37/builders/withFooter/single.json +56 -0
  23. package/src/v37/index.js +11 -0
  24. package/src/v37/public.js +2 -0
  25. package/src/v32/actions/index.js +0 -28
  26. package/src/v32/actions/insertSearch/index.js +0 -7
  27. package/src/v32/actions/insertSearch/instructions/template.json +0 -20
  28. package/src/v32/actions/instructionsForOptions.json +0 -58
  29. package/src/v32/actions/instructionsForSerial.json +0 -58
  30. package/src/v32/builders/bodyOnly/base.json +0 -1
  31. package/src/v32/builders/bodyOnly/index.js +0 -18
  32. package/src/v32/builders/bodyOnly/instructions/double.json +0 -18
  33. package/src/v32/builders/footerOnly/base.json +0 -3
  34. package/src/v32/builders/footerOnly/index.js +0 -21
  35. package/src/v32/builders/footerOnly/instructions/single.json +0 -19
  36. package/src/v32/builders/headerOnly/base.json +0 -53
  37. package/src/v32/builders/headerOnly/index.js +0 -18
  38. package/src/v32/builders/headerOnly/instructions/single.json +0 -38
  39. package/src/v32/builders/simple/base.json +0 -53
  40. package/src/v32/builders/simple/index.js +0 -41
  41. package/src/v32/builders/simple/instructions/double.json +0 -19
  42. package/src/v32/builders/simple/instructions/single.json +0 -38
  43. package/src/v32/builders/simpleSearch/base.json +0 -53
  44. package/src/v32/builders/simpleSearch/index.js +0 -40
  45. package/src/v32/builders/simpleSearch/instructions/double.json +0 -19
  46. package/src/v32/builders/simpleSearch/instructions/single.json +0 -38
  47. package/src/v32/builders/withFooter/base.json +0 -53
  48. package/src/v32/builders/withFooter/index.js +0 -40
  49. package/src/v32/builders/withFooter/instructions/double.json +0 -19
  50. package/src/v32/builders/withFooter/instructions/single.json +0 -56
  51. package/src/v32/doubleInstruction/index.js +0 -21
  52. package/src/v32/guards/index.js +0 -10
  53. package/src/v32/guards/references/func/index.js +0 -8
  54. package/src/v32/guards/references/index.js +0 -9
  55. package/src/v32/guards/references/templateKey/index.js +0 -8
  56. package/src/v32/guards/structure/destinationPath/index.js +0 -8
  57. package/src/v32/guards/structure/func/index.js +0 -8
  58. package/src/v32/guards/structure/index.js +0 -15
  59. package/src/v32/guards/structure/sourcePath/index.js +0 -8
  60. package/src/v32/guards/structure/templateKey/index.js +0 -9
  61. package/src/v32/index.js +0 -21
  62. package/src/v32/singleInstruction/index.js +0 -32
  63. package/src/v32/writePath/index.js +0 -62
  64. package/src/v33/actions/index.js +0 -12
  65. package/src/v33/builders/bodyOnly/base.json +0 -1
  66. package/src/v33/builders/bodyOnly/index.js +0 -18
  67. package/src/v33/builders/bodyOnly/instructions/double.json +0 -18
  68. package/src/v33/builders/footerOnly/base.json +0 -3
  69. package/src/v33/builders/footerOnly/index.js +0 -21
  70. package/src/v33/builders/footerOnly/instructions/single.json +0 -19
  71. package/src/v33/builders/headerOnly/base.json +0 -53
  72. package/src/v33/builders/headerOnly/index.js +0 -18
  73. package/src/v33/builders/headerOnly/instructions/single.json +0 -38
  74. package/src/v33/builders/simple/base.json +0 -53
  75. package/src/v33/builders/simple/index.js +0 -41
  76. package/src/v33/builders/simple/instructions/double.json +0 -19
  77. package/src/v33/builders/simple/instructions/single.json +0 -38
  78. package/src/v33/builders/simpleSearch/base.json +0 -53
  79. package/src/v33/builders/simpleSearch/index.js +0 -40
  80. package/src/v33/builders/simpleSearch/instructions/double.json +0 -19
  81. package/src/v33/builders/simpleSearch/instructions/single.json +0 -38
  82. package/src/v33/builders/spec.json +0 -107
  83. package/src/v33/builders/withFooter/base.json +0 -53
  84. package/src/v33/builders/withFooter/index.js +0 -40
  85. package/src/v33/builders/withFooter/instructions/double.json +0 -19
  86. package/src/v33/builders/withFooter/instructions/single.json +0 -56
  87. package/src/v33/doubleInstruction/index.js +0 -21
  88. package/src/v33/guards/index.js +0 -10
  89. package/src/v33/guards/references/func/index.js +0 -8
  90. package/src/v33/guards/references/index.js +0 -9
  91. package/src/v33/guards/references/templateKey/index.js +0 -8
  92. package/src/v33/guards/structure/destinationPath/index.js +0 -8
  93. package/src/v33/guards/structure/func/index.js +0 -8
  94. package/src/v33/guards/structure/index.js +0 -15
  95. package/src/v33/guards/structure/sourcePath/index.js +0 -8
  96. package/src/v33/guards/structure/templateKey/index.js +0 -9
  97. package/src/v33/index.js +0 -21
  98. package/src/v33/singleInstruction/index.js +0 -32
  99. package/src/v33/writePath/index.js +0 -62
  100. package/src/v34/actions/index.js +0 -12
  101. package/src/v34/builders/bodyOnly/base.json +0 -1
  102. package/src/v34/builders/bodyOnly/index.js +0 -18
  103. package/src/v34/builders/bodyOnly/instructions/double.json +0 -18
  104. package/src/v34/builders/footerOnly/base.json +0 -3
  105. package/src/v34/builders/footerOnly/index.js +0 -21
  106. package/src/v34/builders/footerOnly/instructions/single.json +0 -19
  107. package/src/v34/builders/headerOnly/base.json +0 -53
  108. package/src/v34/builders/headerOnly/index.js +0 -18
  109. package/src/v34/builders/headerOnly/instructions/single.json +0 -38
  110. package/src/v34/builders/simple/base.json +0 -53
  111. package/src/v34/builders/simple/index.js +0 -50
  112. package/src/v34/builders/simple/instructions/double.json +0 -19
  113. package/src/v34/builders/simple/instructions/single.json +0 -38
  114. package/src/v34/builders/simpleSearch/base.json +0 -53
  115. package/src/v34/builders/simpleSearch/index.js +0 -40
  116. package/src/v34/builders/simpleSearch/instructions/double.json +0 -19
  117. package/src/v34/builders/simpleSearch/instructions/single.json +0 -38
  118. package/src/v34/builders/spec.json +0 -107
  119. package/src/v34/builders/withFooter/base.json +0 -53
  120. package/src/v34/builders/withFooter/index.js +0 -40
  121. package/src/v34/builders/withFooter/instructions/double.json +0 -19
  122. package/src/v34/builders/withFooter/instructions/single.json +0 -56
  123. package/src/v34/doubleInstruction/index.js +0 -21
  124. package/src/v34/guards/index.js +0 -10
  125. package/src/v34/guards/references/func/index.js +0 -8
  126. package/src/v34/guards/references/index.js +0 -9
  127. package/src/v34/guards/references/templateKey/index.js +0 -8
  128. package/src/v34/guards/structure/destinationPath/index.js +0 -8
  129. package/src/v34/guards/structure/func/index.js +0 -8
  130. package/src/v34/guards/structure/index.js +0 -15
  131. package/src/v34/guards/structure/sourcePath/index.js +0 -8
  132. package/src/v34/guards/structure/templateKey/index.js +0 -9
  133. package/src/v34/index.js +0 -21
  134. package/src/v34/singleInstruction/index.js +0 -32
  135. package/src/v34/writePath/index.js +0 -62
  136. /package/src/{v32 → v37}/builders/spec.json +0 -0
@@ -1,53 +0,0 @@
1
- {
2
- "tagName": "table",
3
- "attributes": {
4
- "class": "table table-hover table-striped align-middle border mb-0"
5
- },
6
- "children": [
7
- {
8
- "tagName": "colgroup",
9
- "attributes": {
10
- "data-role": "table-colgroup"
11
- },
12
- "children": []
13
- },
14
- {
15
- "tagName": "thead",
16
- "attributes": {
17
- "class": "table-dark",
18
- "data-role": "table-header"
19
- },
20
- "children": [
21
- {
22
- "tagName": "tr",
23
- "attributes": {
24
- "data-role": "table-header-row"
25
- },
26
- "children": []
27
- }
28
- ]
29
- },
30
- {
31
- "tagName": "tbody",
32
- "attributes": {
33
- "data-role": "table-body"
34
- },
35
- "children": []
36
- },
37
- {
38
- "tagName": "tfoot",
39
- "attributes": {
40
- "data-role": "table-footer"
41
- },
42
- "children": [
43
- {
44
- "tagName": "tr",
45
- "attributes": {
46
- "data-role": "table-footer-row"
47
- },
48
- "children": []
49
- }
50
- ]
51
- }
52
- ]
53
- }
@@ -1,18 +0,0 @@
1
- import fromCollection from "json-transformer-funcs-one-dimension";
2
-
3
- import spec from "../spec.json" with { type: "json" };
4
- import base from "./base.json" with { type: "json" };
5
- import singleInstructions from "./instructions/single.json" with { type: "json" };
6
-
7
- import runSingleInstructions from "../../singleInstruction/index.js";
8
-
9
- const registry = { data: {}, base, spec };
10
- const functions = { fromCollection };
11
-
12
- const startFunc = (data, showLog = false, returnLog = []) => {
13
- registry.data = data;
14
- runSingleInstructions(singleInstructions, registry, functions, spec, showLog, returnLog);
15
- return base;
16
- };
17
-
18
- export default startFunc;
@@ -1,38 +0,0 @@
1
- [
2
- {
3
- "narration": "Build the column widths for the table using the configured columns.",
4
- "destinationPath": {
5
- "fileName": "base",
6
- "dataRole": "table-colgroup",
7
- "filePath": [
8
- "children"
9
- ]
10
- },
11
- "sourcePath": {
12
- "fileName": "data",
13
- "filePath": [
14
- "columns"
15
- ]
16
- },
17
- "templateKey": "buildColGroup",
18
- "func": "fromCollection"
19
- },
20
- {
21
- "narration": "Build the header row for the table using the configured columns.",
22
- "destinationPath": {
23
- "fileName": "base",
24
- "dataRole": "table-header-row",
25
- "filePath": [
26
- "children"
27
- ]
28
- },
29
- "sourcePath": {
30
- "fileName": "data",
31
- "filePath": [
32
- "columns"
33
- ]
34
- },
35
- "templateKey": "buildHeader",
36
- "func": "fromCollection"
37
- }
38
- ]
@@ -1,53 +0,0 @@
1
- {
2
- "tagName": "table",
3
- "attributes": {
4
- "class": "table table-hover table-striped align-middle border mb-0"
5
- },
6
- "children": [
7
- {
8
- "tagName": "colgroup",
9
- "attributes": {
10
- "data-role": "table-colgroup"
11
- },
12
- "children": []
13
- },
14
- {
15
- "tagName": "thead",
16
- "attributes": {
17
- "class": "table-dark",
18
- "data-role": "table-header"
19
- },
20
- "children": [
21
- {
22
- "tagName": "tr",
23
- "attributes": {
24
- "data-role": "table-header-row"
25
- },
26
- "children": []
27
- }
28
- ]
29
- },
30
- {
31
- "tagName": "tbody",
32
- "attributes": {
33
- "data-role": "table-body"
34
- },
35
- "children": []
36
- },
37
- {
38
- "tagName": "tfoot",
39
- "attributes": {
40
- "data-role": "table-footer"
41
- },
42
- "children": [
43
- {
44
- "tagName": "tr",
45
- "attributes": {
46
- "data-role": "table-footer-row"
47
- },
48
- "children": []
49
- }
50
- ]
51
- }
52
- ]
53
- }
@@ -1,50 +0,0 @@
1
- import fromCollection from "json-transformer-funcs-one-dimension";
2
- import twoDimensional from "json-transformer-funcs-two-dimensions";
3
-
4
- import { runSingleInstructions, runDoubleInstructions } from "json-instructions";
5
-
6
- import spec from "../spec.json" with { type: "json" };
7
- import base from "./base.json" with { type: "json" };
8
- import singleInstructions from "./instructions/single.json" with { type: "json" };
9
- import doubleInstructions from "./instructions/double.json" with { type: "json" };
10
-
11
- // import runSingleInstructions from "../../singleInstruction/index.js";
12
- // import runDoubleInstructions from "../../doubleInstruction/index.js";
13
-
14
- import actions from "../../actions/index.js";
15
-
16
- const functions = { fromCollection, twoDimensional };
17
-
18
- const startFunc = (inConfig = {}, showLog = false, returnLog = []) => {
19
- const localConfig = inConfig;
20
-
21
- const localColumns = localConfig.columns || [];
22
- const localData = localConfig.data || [];
23
- const localOptions = localConfig.options || {};
24
- const localShowLog = localConfig?.showLog;
25
-
26
- const localBase = structuredClone(base);
27
- const registry = {
28
- data: {
29
- columns: localColumns,
30
- data: localData
31
- },
32
- base: localBase,
33
- spec,
34
- ...localOptions
35
- };
36
- console.log("registry : ", localShowLog, registry);
37
-
38
- runSingleInstructions(singleInstructions, registry, localShowLog, returnLog);
39
-
40
- runDoubleInstructions(doubleInstructions, registry, showLog, returnLog);
41
-
42
- // runSingleInstructions(singleInstructions, registry, functions, spec, showLog, returnLog);
43
- // runDoubleInstructions(doubleInstructions, registry, functions, spec, showLog, returnLog);
44
-
45
- actions({ inOptions: localOptions, inBase: localBase });
46
-
47
- return localBase;
48
- };
49
-
50
- export default startFunc;
@@ -1,19 +0,0 @@
1
- [
2
- {
3
- "narration": "Build the table body rows for the table using the configured columns and data.",
4
- "destinationPath": {
5
- "fileName": "base",
6
- "dataRole": "table-body",
7
- "filePath": [
8
- "children"
9
- ]
10
- },
11
- "sourcePath": {
12
- "fileName": "data",
13
- "filePath": [
14
- "columns"
15
- ]
16
- },
17
- "func": "twoDimensional"
18
- }
19
- ]
@@ -1,38 +0,0 @@
1
- [
2
- {
3
- "narration": "Build the column widths for the table using the configured columns.",
4
- "destinationPath": {
5
- "fileName": "base",
6
- "dataRole": "table-colgroup",
7
- "filePath": [
8
- "children"
9
- ]
10
- },
11
- "sourcePath": {
12
- "fileName": "data",
13
- "filePath": [
14
- "columns"
15
- ]
16
- },
17
- "templateKey": "buildColGroup",
18
- "func": "fromCollection"
19
- },
20
- {
21
- "narration": "Build the header row for the table using the configured columns.",
22
- "destinationPath": {
23
- "fileName": "base",
24
- "dataRole": "table-header-row",
25
- "filePath": [
26
- "children"
27
- ]
28
- },
29
- "sourcePath": {
30
- "fileName": "data",
31
- "filePath": [
32
- "columns"
33
- ]
34
- },
35
- "templateKey": "buildHeader",
36
- "func": "fromCollection"
37
- }
38
- ]
@@ -1,53 +0,0 @@
1
- {
2
- "tagName": "table",
3
- "attributes": {
4
- "class": "table table-hover table-striped align-middle border mb-0"
5
- },
6
- "children": [
7
- {
8
- "tagName": "colgroup",
9
- "attributes": {
10
- "data-role": "table-colgroup"
11
- },
12
- "children": []
13
- },
14
- {
15
- "tagName": "thead",
16
- "attributes": {
17
- "class": "table-dark",
18
- "data-role": "table-header"
19
- },
20
- "children": [
21
- {
22
- "tagName": "tr",
23
- "attributes": {
24
- "data-role": "table-header-row"
25
- },
26
- "children": []
27
- }
28
- ]
29
- },
30
- {
31
- "tagName": "tbody",
32
- "attributes": {
33
- "data-role": "table-body"
34
- },
35
- "children": []
36
- },
37
- {
38
- "tagName": "tfoot",
39
- "attributes": {
40
- "data-role": "table-footer"
41
- },
42
- "children": [
43
- {
44
- "tagName": "tr",
45
- "attributes": {
46
- "data-role": "table-footer-row"
47
- },
48
- "children": []
49
- }
50
- ]
51
- }
52
- ]
53
- }
@@ -1,40 +0,0 @@
1
- import fromCollection from "json-transformer-funcs-one-dimension";
2
- import twoDimensional from "json-transformer-funcs-two-dimensions";
3
-
4
- import spec from "../spec.json" with { type: "json" };
5
- import base from "./base.json" with { type: "json" };
6
- import singleInstructions from "./instructions/single.json" with { type: "json" };
7
- import doubleInstructions from "./instructions/double.json" with { type: "json" };
8
-
9
- import runSingleInstructions from "../../singleInstruction/index.js";
10
- import runDoubleInstructions from "../../doubleInstruction/index.js";
11
- import actions from "../../actions/index.js";
12
-
13
- const functions = { fromCollection, twoDimensional };
14
-
15
- const startFunc = (inConfig = {}, showLog = false, returnLog = []) => {
16
- const localConfig = inConfig;
17
-
18
- const localColumns = localConfig.columns || [];
19
- const localData = localConfig.data || [];
20
- const localOptions = localConfig.options
21
-
22
- const localBase = structuredClone(base);
23
- const registry = {
24
- data: {
25
- columns: localColumns,
26
- data: localData
27
- },
28
- base: localBase,
29
- spec
30
- };
31
-
32
- runSingleInstructions(singleInstructions, registry, functions, spec, showLog, returnLog);
33
- runDoubleInstructions(doubleInstructions, registry, functions, spec, showLog, returnLog);
34
-
35
- actions({ inOptions: localOptions, inBase: localBase });
36
-
37
- return localBase;
38
- };
39
-
40
- export default startFunc;
@@ -1,19 +0,0 @@
1
- [
2
- {
3
- "narration": "Build the table body rows for the table using the configured columns and data.",
4
- "destinationPath": {
5
- "fileName": "base",
6
- "dataRole": "table-body",
7
- "filePath": [
8
- "children"
9
- ]
10
- },
11
- "sourcePath": {
12
- "fileName": "data",
13
- "filePath": [
14
- "columns"
15
- ]
16
- },
17
- "func": "twoDimensional"
18
- }
19
- ]
@@ -1,38 +0,0 @@
1
- [
2
- {
3
- "narration": "Build the column widths for the table using the configured columns.",
4
- "destinationPath": {
5
- "fileName": "base",
6
- "dataRole": "table-colgroup",
7
- "filePath": [
8
- "children"
9
- ]
10
- },
11
- "sourcePath": {
12
- "fileName": "data",
13
- "filePath": [
14
- "columns"
15
- ]
16
- },
17
- "templateKey": "buildColGroup",
18
- "func": "fromCollection"
19
- },
20
- {
21
- "narration": "Build the header row for the table using the configured columns.",
22
- "destinationPath": {
23
- "fileName": "base",
24
- "dataRole": "table-header-row",
25
- "filePath": [
26
- "children"
27
- ]
28
- },
29
- "sourcePath": {
30
- "fileName": "data",
31
- "filePath": [
32
- "columns"
33
- ]
34
- },
35
- "templateKey": "buildHeader",
36
- "func": "fromCollection"
37
- }
38
- ]
@@ -1,107 +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
- "id": "${columnName}",
32
- "list": "${columnName}",
33
- "class": "form-control"
34
- }
35
- }
36
- ]
37
- },
38
- "buildBodyCell": {
39
- "tagName": "td",
40
- "textContent": "${rowValue}",
41
- "attributes": {
42
- "class": "py-3 px-3 text-secondary"
43
- }
44
- },
45
- "button": {
46
- "tagName": "button",
47
- "textContent": "${columnName}",
48
- "attributes": {
49
- "class": "btn btn-primary btn-sm"
50
- }
51
- },
52
- "buttonCell": {
53
- "tagName": "td",
54
- "attributes": {
55
- "class": "py-2 px-3 text-center"
56
- },
57
- "children": [
58
- {
59
- "tagName": "button",
60
- "textContent": "${agg:count}",
61
- "attributes": {
62
- "class": "btn btn-primary btn-sm"
63
- }
64
- }
65
- ]
66
- },
67
- "optionsButtonCell": {
68
- "tagName": "td",
69
- "attributes": {
70
- "class": "py-2 px-3 text-center"
71
- },
72
- "children": [
73
- {
74
- "tagName": "button",
75
- "textContent": "${columnName}",
76
- "attributes": {
77
- "class": "btn btn-primary btn-sm"
78
- }
79
- }
80
- ]
81
- },
82
- "buildOption": {
83
- "tagName": "option",
84
- "textContent": "${rowValue}",
85
- "attributes": {
86
- "value": "${rowValue}"
87
- }
88
- },
89
- "buildSelect": {
90
- "tagName": "select",
91
- "attributes": {
92
- "id": "LedgerName"
93
- },
94
- "children": []
95
- },
96
- "buildDataList": {
97
- "tagName": "datalist",
98
- "attributes": {
99
- "data-name": "${columnName}"
100
- },
101
- "children": []
102
- },
103
- "emptyCell": {
104
- "tagName": "td",
105
- "children": []
106
- }
107
- }
@@ -1,53 +0,0 @@
1
- {
2
- "tagName": "table",
3
- "attributes": {
4
- "class": "table table-hover table-striped align-middle border mb-0"
5
- },
6
- "children": [
7
- {
8
- "tagName": "colgroup",
9
- "attributes": {
10
- "data-role": "table-colgroup"
11
- },
12
- "children": []
13
- },
14
- {
15
- "tagName": "thead",
16
- "attributes": {
17
- "class": "table-dark",
18
- "data-role": "table-header"
19
- },
20
- "children": [
21
- {
22
- "tagName": "tr",
23
- "attributes": {
24
- "data-role": "table-header-row"
25
- },
26
- "children": []
27
- }
28
- ]
29
- },
30
- {
31
- "tagName": "tbody",
32
- "attributes": {
33
- "data-role": "table-body"
34
- },
35
- "children": []
36
- },
37
- {
38
- "tagName": "tfoot",
39
- "attributes": {
40
- "data-role": "table-footer"
41
- },
42
- "children": [
43
- {
44
- "tagName": "tr",
45
- "attributes": {
46
- "data-role": "table-footer-row"
47
- },
48
- "children": []
49
- }
50
- ]
51
- }
52
- ]
53
- }
@@ -1,40 +0,0 @@
1
- import fromCollection from "json-transformer-funcs-one-dimension";
2
- import twoDimensional from "json-transformer-funcs-two-dimensions";
3
-
4
- import spec from "../spec.json" with { type: "json" };
5
- import base from "./base.json" with { type: "json" };
6
- import singleInstructions from "./instructions/single.json" with { type: "json" };
7
- import doubleInstructions from "./instructions/double.json" with { type: "json" };
8
-
9
- import runSingleInstructions from "../../singleInstruction/index.js";
10
- import runDoubleInstructions from "../../doubleInstruction/index.js";
11
- import actions from "../../actions/index.js";
12
-
13
- const functions = { fromCollection, twoDimensional };
14
-
15
- const startFunc = (inConfig = {}, showLog = false, returnLog = []) => {
16
- const localConfig = inConfig
17
-
18
- const localColumns = localConfig.inColumns || localConfig.columns || [];
19
- const localData = localConfig.inData || localConfig.data || [];
20
- const localOptions = localConfig.inOptions || localConfig.options || {};
21
-
22
- const localBase = structuredClone(base);
23
- const registry = {
24
- data: {
25
- columns: localColumns,
26
- data: localData
27
- },
28
- base: localBase,
29
- spec
30
- };
31
-
32
- runSingleInstructions(singleInstructions, registry, functions, spec, showLog, returnLog);
33
- runDoubleInstructions(doubleInstructions, registry, functions, spec, showLog, returnLog);
34
-
35
- actions({ inOptions: localOptions, inBase: localBase });
36
-
37
- return localBase;
38
- };
39
-
40
- export default startFunc;
@@ -1,19 +0,0 @@
1
- [
2
- {
3
- "narration": "Build the table body rows for the table using the configured columns and data.",
4
- "destinationPath": {
5
- "fileName": "base",
6
- "dataRole": "table-body",
7
- "filePath": [
8
- "children"
9
- ]
10
- },
11
- "sourcePath": {
12
- "fileName": "data",
13
- "filePath": [
14
- "columns"
15
- ]
16
- },
17
- "func": "twoDimensional"
18
- }
19
- ]