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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json-renderers-build-table",
3
- "version": "1.36.2",
3
+ "version": "1.37.1",
4
4
  "description": "Focused table specification builder with configurable rows and cells",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./v36/index.js";
2
- export { default } from "./v36/index.js";
1
+ export * from "./v37/index.js";
2
+ export { default } from "./v37/index.js";
@@ -0,0 +1 @@
1
+ {"tagName":"table","attributes":{"class":"table table-hover table-striped align-middle border mb-0"},"children":[{"tagName":"colgroup","attributes":{"data-role":"table-colgroup"},"children":[]},{"tagName":"thead","attributes":{"class":"table-dark","data-role":"table-header"},"children":[{"tagName":"tr","attributes":{"data-role":"table-header-row"},"children":[]}]},{"tagName":"tbody","attributes":{"data-role":"table-body"},"children":[]},{"tagName":"tfoot","attributes":{"data-role":"table-footer"},"children":[{"tagName":"tr","attributes":{"data-role":"table-footer-row"},"children":[]}]}]}
@@ -0,0 +1 @@
1
+ [{"narration":"Build only the body rows","destinationPath":{"fileName":"base","dataRole":"table-body","filePath":["children"]},"sourcePath":{"fileName":"data","filePath":["columns"]},"func":"twoDimensional"}]
@@ -0,0 +1,37 @@
1
+ import fromCollection from "json-transformer-funcs-one-dimension";
2
+ import twoDimensional from "json-transformer-funcs-two-dimensions";
3
+ import { runSingleInstructions } from "json-instruction-single";
4
+ import { runDoubleInstructions } from "json-instruction-double";
5
+ import spec from "../spec.json" with { type: "json" };
6
+ import base from "./base.json" with { type: "json" };
7
+ import singleInstructions from "./single.json" with { type: "json" };
8
+ import doubleInstructions from "./double.json" with { type: "json" };
9
+ import actions from "../../actions/index.js";
10
+
11
+ const functions = { fromCollection, twoDimensional };
12
+
13
+ const startFunc = (config = {}, showLog = false, returnLog = []) => {
14
+ const columns = config.columns || config.inColumns || [];
15
+ const data = config.data || config.inData || [];
16
+ const options = config.options || config.inOptions || {};
17
+ const localBase = structuredClone(base);
18
+ const registry = {
19
+ data: { columns, data },
20
+ base: localBase,
21
+ spec,
22
+ ...options
23
+ };
24
+ const instructionOptions = {
25
+ functions,
26
+ showLog: config.showLog ?? showLog,
27
+ returnLog
28
+ };
29
+
30
+ runSingleInstructions(singleInstructions, registry, instructionOptions);
31
+ runDoubleInstructions(doubleInstructions, registry, instructionOptions);
32
+ actions({ inOptions: options, inBase: localBase });
33
+
34
+ return localBase;
35
+ };
36
+
37
+ export default startFunc;
@@ -0,0 +1 @@
1
+ []
@@ -0,0 +1 @@
1
+ {"tagName":"table","attributes":{"class":"table table-hover table-striped align-middle border mb-0"},"children":[{"tagName":"colgroup","attributes":{"data-role":"table-colgroup"},"children":[]},{"tagName":"thead","attributes":{"class":"table-dark","data-role":"table-header"},"children":[{"tagName":"tr","attributes":{"data-role":"table-header-row"},"children":[]}]},{"tagName":"tbody","attributes":{"data-role":"table-body"},"children":[]},{"tagName":"tfoot","attributes":{"data-role":"table-footer"},"children":[{"tagName":"tr","attributes":{"data-role":"table-footer-row"},"children":[]}]}]}
@@ -0,0 +1,37 @@
1
+ import fromCollection from "json-transformer-funcs-one-dimension";
2
+ import twoDimensional from "json-transformer-funcs-two-dimensions";
3
+ import { runSingleInstructions } from "json-instruction-single";
4
+ import { runDoubleInstructions } from "json-instruction-double";
5
+ import spec from "../spec.json" with { type: "json" };
6
+ import base from "./base.json" with { type: "json" };
7
+ import singleInstructions from "./single.json" with { type: "json" };
8
+ import doubleInstructions from "./double.json" with { type: "json" };
9
+ import actions from "../../actions/index.js";
10
+
11
+ const functions = { fromCollection, twoDimensional };
12
+
13
+ const startFunc = (config = {}, showLog = false, returnLog = []) => {
14
+ const columns = config.columns || config.inColumns || [];
15
+ const data = config.data || config.inData || [];
16
+ const options = config.options || config.inOptions || {};
17
+ const localBase = structuredClone(base);
18
+ const registry = {
19
+ data: { columns, data },
20
+ base: localBase,
21
+ spec,
22
+ ...options
23
+ };
24
+ const instructionOptions = {
25
+ functions,
26
+ showLog: config.showLog ?? showLog,
27
+ returnLog
28
+ };
29
+
30
+ runSingleInstructions(singleInstructions, registry, instructionOptions);
31
+ runDoubleInstructions(doubleInstructions, registry, instructionOptions);
32
+ actions({ inOptions: options, inBase: localBase });
33
+
34
+ return localBase;
35
+ };
36
+
37
+ export default startFunc;
@@ -0,0 +1 @@
1
+ [{"narration":"Build only the footer row","destinationPath":{"fileName":"base","dataRole":"table-footer-row","filePath":["children"]},"sourcePath":{"fileName":"data","filePath":["columns"]},"templateKey":"buildFooter","func":"fromCollection"}]
@@ -0,0 +1 @@
1
+ {"tagName":"table","attributes":{"class":"table table-hover table-striped align-middle border mb-0"},"children":[{"tagName":"colgroup","attributes":{"data-role":"table-colgroup"},"children":[]},{"tagName":"thead","attributes":{"class":"table-dark","data-role":"table-header"},"children":[{"tagName":"tr","attributes":{"data-role":"table-header-row"},"children":[]}]},{"tagName":"tbody","attributes":{"data-role":"table-body"},"children":[]},{"tagName":"tfoot","attributes":{"data-role":"table-footer"},"children":[{"tagName":"tr","attributes":{"data-role":"table-footer-row"},"children":[]}]}]}
@@ -0,0 +1,37 @@
1
+ import fromCollection from "json-transformer-funcs-one-dimension";
2
+ import twoDimensional from "json-transformer-funcs-two-dimensions";
3
+ import { runSingleInstructions } from "json-instruction-single";
4
+ import { runDoubleInstructions } from "json-instruction-double";
5
+ import spec from "../spec.json" with { type: "json" };
6
+ import base from "./base.json" with { type: "json" };
7
+ import singleInstructions from "./single.json" with { type: "json" };
8
+ import doubleInstructions from "./double.json" with { type: "json" };
9
+ import actions from "../../actions/index.js";
10
+
11
+ const functions = { fromCollection, twoDimensional };
12
+
13
+ const startFunc = (config = {}, showLog = false, returnLog = []) => {
14
+ const columns = config.columns || config.inColumns || [];
15
+ const data = config.data || config.inData || [];
16
+ const options = config.options || config.inOptions || {};
17
+ const localBase = structuredClone(base);
18
+ const registry = {
19
+ data: { columns, data },
20
+ base: localBase,
21
+ spec,
22
+ ...options
23
+ };
24
+ const instructionOptions = {
25
+ functions,
26
+ showLog: config.showLog ?? showLog,
27
+ returnLog
28
+ };
29
+
30
+ runSingleInstructions(singleInstructions, registry, instructionOptions);
31
+ runDoubleInstructions(doubleInstructions, registry, instructionOptions);
32
+ actions({ inOptions: options, inBase: localBase });
33
+
34
+ return localBase;
35
+ };
36
+
37
+ export default startFunc;
@@ -0,0 +1 @@
1
+ [{"narration":"Build only the header row","destinationPath":{"fileName":"base","dataRole":"table-header-row","filePath":["children"]},"sourcePath":{"fileName":"data","filePath":["columns"]},"templateKey":"buildHeader","func":"fromCollection"}]
@@ -0,0 +1 @@
1
+ {"tagName":"table","attributes":{"class":"table table-hover table-striped align-middle border mb-0"},"children":[{"tagName":"colgroup","attributes":{"data-role":"table-colgroup"},"children":[]},{"tagName":"thead","attributes":{"class":"table-dark","data-role":"table-header"},"children":[{"tagName":"tr","attributes":{"data-role":"table-header-row"},"children":[]}]},{"tagName":"tbody","attributes":{"data-role":"table-body"},"children":[]},{"tagName":"tfoot","attributes":{"data-role":"table-footer"},"children":[{"tagName":"tr","attributes":{"data-role":"table-footer-row"},"children":[]}]}]}
@@ -0,0 +1 @@
1
+ [{"narration":"Build table body","destinationPath":{"fileName":"base","dataRole":"table-body","filePath":["children"]},"sourcePath":{"fileName":"data","filePath":["columns"]},"func":"twoDimensional"}]
@@ -0,0 +1,34 @@
1
+ import fromCollection from "json-transformer-funcs-one-dimension";
2
+ import twoDimensional from "json-transformer-funcs-two-dimensions";
3
+
4
+ import runSingleInstructions from "json-instruction-single";
5
+ import runDoubleInstructions from "json-instruction-double";
6
+
7
+ import tableOptions from "json-renderers-build-table-options";
8
+
9
+ import spec from "../spec.json" with { type: "json" };
10
+ import base from "./base.json" with { type: "json" };
11
+
12
+ import singleInstructions from "./single.json" with { type: "json" };
13
+ import doubleInstructions from "./double.json" with { type: "json" };
14
+
15
+ const startFunc = ({ data, columns, options }) => {
16
+
17
+ const localBase = structuredClone(base);
18
+
19
+ const registry = {
20
+ data: { columns, data },
21
+ base: localBase,
22
+ spec,
23
+ ...options
24
+ };
25
+
26
+ runSingleInstructions(singleInstructions, registry);
27
+ runDoubleInstructions(doubleInstructions, registry);
28
+
29
+ tableOptions({ options, base: localBase });
30
+
31
+ return localBase;
32
+ };
33
+
34
+ export default startFunc;
@@ -0,0 +1 @@
1
+ [{"narration":"Build column widths","destinationPath":{"fileName":"base","dataRole":"table-colgroup","filePath":["children"]},"sourcePath":{"fileName":"data","filePath":["columns"]},"templateKey":"buildColGroup","func":"fromCollection"},{"narration":"Build table header","destinationPath":{"fileName":"base","dataRole":"table-header-row","filePath":["children"]},"sourcePath":{"fileName":"data","filePath":["columns"]},"templateKey":"buildHeader","func":"fromCollection"}]
@@ -0,0 +1 @@
1
+ {"tagName":"table","attributes":{"class":"table table-hover table-striped align-middle border mb-0"},"children":[{"tagName":"colgroup","attributes":{"data-role":"table-colgroup"},"children":[]},{"tagName":"thead","attributes":{"class":"table-dark","data-role":"table-header"},"children":[{"tagName":"tr","attributes":{"data-role":"table-header-row"},"children":[]}]},{"tagName":"tbody","attributes":{"data-role":"table-body"},"children":[]},{"tagName":"tfoot","attributes":{"data-role":"table-footer"},"children":[{"tagName":"tr","attributes":{"data-role":"table-footer-row"},"children":[]}]}]}
@@ -0,0 +1 @@
1
+ [{"narration":"Build table body","destinationPath":{"fileName":"base","dataRole":"table-body","filePath":["children"]},"sourcePath":{"fileName":"data","filePath":["columns"]},"func":"twoDimensional"}]
@@ -0,0 +1,33 @@
1
+ import fromCollection from "json-transformer-funcs-one-dimension";
2
+ import twoDimensional from "json-transformer-funcs-two-dimensions";
3
+ import optionsFunc from "json-renderers-build-table-options";
4
+
5
+ import runSingleInstructions from "json-instruction-single";
6
+ import runDoubleInstructions from "json-instruction-double";
7
+
8
+ import spec from "../spec.json" with { type: "json" };
9
+ import base from "./base.json" with { type: "json" };
10
+
11
+ import singleInstructions from "./single.json" with { type: "json" };
12
+ import doubleInstructions from "./double.json" with { type: "json" };
13
+
14
+ const startFunc = ({ data, columns, options }) => {
15
+
16
+ const localBase = structuredClone(base);
17
+
18
+ const registry = {
19
+ data: { columns, data },
20
+ base: localBase,
21
+ spec,
22
+ ...options
23
+ };
24
+
25
+ runSingleInstructions(singleInstructions, registry);
26
+ runDoubleInstructions(doubleInstructions, registry);
27
+
28
+ optionsFunc({ options, base: localBase, showLog: false, returnLog: [] });
29
+
30
+ return localBase;
31
+ };
32
+
33
+ export default startFunc;
@@ -0,0 +1,56 @@
1
+ [
2
+ {
3
+ "narration": "Build column widths",
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 table header",
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
+ {
39
+ "narration": "Build footer input cells",
40
+ "destinationPath": {
41
+ "fileName": "base",
42
+ "dataRole": "table-footer-row",
43
+ "filePath": [
44
+ "children"
45
+ ]
46
+ },
47
+ "sourcePath": {
48
+ "fileName": "data",
49
+ "filePath": [
50
+ "columns"
51
+ ]
52
+ },
53
+ "templateKey": "buildFooter",
54
+ "func": "fromCollection"
55
+ }
56
+ ]
@@ -0,0 +1,11 @@
1
+ import simple from "./builders/simple/index.js";
2
+ import withFooter from "./builders/withFooter/index.js";
3
+
4
+ // import headerOnly from "./builders/headerOnly/index.js";
5
+ // import bodyOnly from "./builders/bodyOnly/index.js";
6
+
7
+ // import footerOnly from "./builders/footerOnly/index.js";
8
+
9
+ export { simple, withFooter };
10
+
11
+ export default { simple, withFooter };
@@ -0,0 +1,2 @@
1
+ export * from "./index.js";
2
+ export { default } from "./index.js";
@@ -1,28 +0,0 @@
1
- import { runSingleInstructions } from "json-instructions";
2
-
3
- import insertSearch from "./insertSearch/index.js";
4
-
5
- import serialInstructions from "./instructionsForSerial.json" with { type: "json" };
6
- import optionInstructions from "./instructionsForOptions.json" with { type: "json" };
7
-
8
- const startFunc = ({ inOptions = {}, inBase, showLog = false, returnLog = [] }) => {
9
- const localOptions = inOptions;
10
-
11
- const localBase = inBase;
12
-
13
- if (localOptions.showSerial || localOptions.serial) {
14
- runSingleInstructions(serialInstructions, { base: localBase }, showLog, returnLog);
15
- };
16
-
17
- if (localOptions.showOptions || localOptions.options) {
18
- runSingleInstructions(optionInstructions, { base: localBase }, showLog, returnLog);
19
- };
20
-
21
- if (localOptions.showSearch) {
22
- insertSearch();
23
- };
24
-
25
- return localBase;
26
- };
27
-
28
- export default startFunc;
@@ -1,7 +0,0 @@
1
- import template from "./instructions/template.json" with { type: "json" };
2
-
3
- const startFunc = (input = {}, config = {}, showLog = false, returnLog = []) => {
4
- return template;
5
- };
6
-
7
- export default startFunc;
@@ -1,20 +0,0 @@
1
- {
2
- "tagName": "div",
3
- "children": [
4
- {
5
- "tagName": "label",
6
- "textContent": "KeshavSoft"
7
- },
8
- {
9
- "tagName": "input",
10
- "attributes": {
11
- "value": "KeshavSoft",
12
- "placeholder": "KeshavSoft"
13
- }
14
- },
15
- {
16
- "tagName": "button",
17
- "textContent": "show"
18
- }
19
- ]
20
- }
@@ -1,58 +0,0 @@
1
- [
2
- {
3
- "narration": "Append the options column width to the table colgroup.",
4
- "destinationPath": {
5
- "fileName": "base",
6
- "dataRole": "table-colgroup",
7
- "filePath": [
8
- "children"
9
- ],
10
- "action": "push"
11
- },
12
- "sourcePath": null,
13
- "templateKey": "colGroupForOption",
14
- "func": null
15
- },
16
- {
17
- "narration": "Append the options header cell to the table header row.",
18
- "destinationPath": {
19
- "fileName": "base",
20
- "dataRole": "table-header-row",
21
- "filePath": [
22
- "children"
23
- ],
24
- "action": "push"
25
- },
26
- "sourcePath": null,
27
- "templateKey": "headerForOption",
28
- "func": null
29
- },
30
- {
31
- "narration": "Append the options button cell into each table body row.",
32
- "destinationPath": {
33
- "fileName": "base",
34
- "dataRole": "table-body",
35
- "filePath": [
36
- "children"
37
- ],
38
- "action": "pushToRows"
39
- },
40
- "sourcePath": null,
41
- "templateKey": "optionsButtonCell",
42
- "func": null
43
- },
44
- {
45
- "narration": "Append the options footer cell to the table footer row.",
46
- "destinationPath": {
47
- "fileName": "base",
48
- "dataRole": "table-footer-row",
49
- "filePath": [
50
- "children"
51
- ],
52
- "action": "push"
53
- },
54
- "sourcePath": null,
55
- "templateKey": "tdWithButtonSaveWarning",
56
- "func": null
57
- }
58
- ]
@@ -1,58 +0,0 @@
1
- [
2
- {
3
- "narration": "Prepend the serial column width to the table colgroup.",
4
- "destinationPath": {
5
- "fileName": "base",
6
- "dataRole": "table-colgroup",
7
- "filePath": [
8
- "children"
9
- ],
10
- "action": "unshift"
11
- },
12
- "sourcePath": null,
13
- "templateKey": "colGroupForSerial",
14
- "func": null
15
- },
16
- {
17
- "narration": "Prepend the serial header cell to the table header row.",
18
- "destinationPath": {
19
- "fileName": "base",
20
- "dataRole": "table-header-row",
21
- "filePath": [
22
- "children"
23
- ],
24
- "action": "unshift"
25
- },
26
- "sourcePath": null,
27
- "templateKey": "headerSerialCell",
28
- "func": null
29
- },
30
- {
31
- "narration": "Prepend the serial number cell into each table body row.",
32
- "destinationPath": {
33
- "fileName": "base",
34
- "dataRole": "table-body",
35
- "filePath": [
36
- "children"
37
- ],
38
- "action": "unshiftSerialToRows"
39
- },
40
- "sourcePath": null,
41
- "templateKey": "buildBodyCell",
42
- "func": null
43
- },
44
- {
45
- "narration": "Prepend the serial footer cell to the table footer row.",
46
- "destinationPath": {
47
- "fileName": "base",
48
- "dataRole": "table-footer-row",
49
- "filePath": [
50
- "children"
51
- ],
52
- "action": "unshift"
53
- },
54
- "sourcePath": null,
55
- "templateKey": "headerSerialCell",
56
- "func": null
57
- }
58
- ]
@@ -1 +0,0 @@
1
- { "children": [] }
@@ -1,18 +0,0 @@
1
- import twoDimensional from "json-transformer-funcs-two-dimensions";
2
-
3
- import spec from "../spec.json" with { type: "json" };
4
- import base from "./base.json" with { type: "json" };
5
- import doubleInstructions from "./instructions/double.json" with { type: "json" };
6
-
7
- import runDoubleInstructions from "../../doubleInstruction/index.js";
8
-
9
- const registry = { data: {}, base, spec };
10
- const functions = { twoDimensional };
11
-
12
- const startFunc = (data, showLog = false, returnLog = []) => {
13
- registry.data = data;
14
- runDoubleInstructions(doubleInstructions, registry, functions, spec, showLog, returnLog);
15
- return base.children;
16
- };
17
-
18
- export default startFunc;
@@ -1,18 +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
- "filePath": [
7
- "children"
8
- ]
9
- },
10
- "sourcePath": {
11
- "fileName": "data",
12
- "filePath": [
13
- "columns"
14
- ]
15
- },
16
- "func": "twoDimensional"
17
- }
18
- ]
@@ -1,3 +0,0 @@
1
- {
2
- "children": []
3
- }
@@ -1,21 +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
-
8
- import runSingleInstructions from "../../singleInstruction/index.js";
9
-
10
- const registry = { data: {}, base, spec };
11
- const functions = { fromCollection, twoDimensional };
12
-
13
- const startFunc = (data, showLog = false, returnLog = []) => {
14
- registry.data = data;
15
-
16
- runSingleInstructions(singleInstructions, registry, functions, spec, showLog, returnLog);
17
-
18
- return base?.children;
19
- };
20
-
21
- export default startFunc;
@@ -1,19 +0,0 @@
1
- [
2
- {
3
- "narration": "Build the footer row for the table using the configured columns.",
4
- "destinationPath": {
5
- "fileName": "base",
6
- "filePath": [
7
- "children"
8
- ]
9
- },
10
- "sourcePath": {
11
- "fileName": "data",
12
- "filePath": [
13
- "columns"
14
- ]
15
- },
16
- "templateKey": "buildFooter",
17
- "func": "fromCollection"
18
- }
19
- ]
@@ -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
- }