json-renderers-run-instructions 1.11.2 → 1.15.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 (48) hide show
  1. package/package.json +2 -5
  2. package/src/index.js +3 -3
  3. package/src/{v11 → v12}/index.js +178 -219
  4. package/src/{v10 → v12}/registerGlobal/index.js +1 -1
  5. package/src/v12/registerGlobal/meta.js +6 -0
  6. package/src/{v10 → v12}/runOptions/index.js +66 -70
  7. package/src/v12/transformers/columnOnRow.js +33 -0
  8. package/src/v12/transformers/index.js +21 -0
  9. package/src/v13/index.js +49 -0
  10. package/src/{v11 → v13}/registerGlobal/index.js +1 -1
  11. package/src/v13/registerGlobal/meta.js +6 -0
  12. package/src/{v11 → v13}/runOptions/index.js +66 -70
  13. package/src/v13/transformers/columnOnRow.js +33 -0
  14. package/src/v13/transformers/index.js +21 -0
  15. package/src/v13/types/columnOnRow.js +34 -0
  16. package/src/v13/types/helpers/guards.js +38 -0
  17. package/src/v13/types/helpers/resolveSource.js +27 -0
  18. package/src/v13/types/helpers/writeResult.js +19 -0
  19. package/src/v13/types/index.js +33 -0
  20. package/src/v13/types/rowOnColumn.js +22 -0
  21. package/src/v13/types/single.js +28 -0
  22. package/src/v14/index.js +48 -0
  23. package/src/v14/registerGlobal/index.js +16 -0
  24. package/src/{v10 → v14}/registerGlobal/meta.js +1 -1
  25. package/src/v14/runOptions/index.js +77 -0
  26. package/src/v15/index.js +48 -0
  27. package/src/v15/registerGlobal/index.js +16 -0
  28. package/src/{v11 → v15}/registerGlobal/meta.js +1 -1
  29. package/src/v15/runOptions/index.js +77 -0
  30. package/src/v10/index.js +0 -218
  31. package/src/v10/runOptions/instructionsWithTargets/index.js +0 -31
  32. package/src/v10-2/index.js +0 -202
  33. package/src/v10-2/runOptions/index.js +0 -52
  34. package/src/v10-2/runOptions/instructionsWithTargets/index.js +0 -31
  35. package/src/v10-old/index.js +0 -195
  36. package/src/v10-old/runOptions/index.js +0 -117
  37. package/src/v10-old/runOptions/instructionsWithTargets/index.js +0 -31
  38. package/src/v11/runOptions/instructionsWithTargets/index.js +0 -31
  39. package/src/v6/index.js +0 -68
  40. package/src/v7/index.js +0 -57
  41. package/src/v8/definitions.json +0 -165
  42. package/src/v8/index.js +0 -193
  43. package/src/v8/instructions.json +0 -275
  44. package/src/v8/spec.json +0 -900
  45. package/src/v9/index.js +0 -195
  46. package/src/v9/runOptions/index.js +0 -48
  47. package/src/v9/runOptions/insertSearch/index.js +0 -28
  48. package/src/v9/runOptions/instructionsWithTargets/index.js +0 -12
@@ -1,195 +0,0 @@
1
- import rowOnColumnFunc from "json-transformer-funcs-row-on-column";
2
- import fromCollection from "json-transformer-funcs-one-dimension";
3
- import applyTemplate from "json-transformer-funcs-primitive";
4
- import writePath from "json-write-path";
5
- import { query } from "jsonpathly";
6
-
7
- import { spec, instructions, definitions } from "spec-repo";
8
-
9
- import runOptions from "./runOptions/index.js";
10
-
11
- const transformerFunctions = {
12
- fromCollection,
13
- applyTemplate
14
- };
15
-
16
- const resolveSource = (sourcePath, context) => {
17
- if (!sourcePath) return null;
18
-
19
- const root = context[sourcePath.fileName];
20
- if (root === undefined) {
21
- throw new Error(`Context entry not found: ${sourcePath.fileName}`);
22
- }
23
-
24
- if (sourcePath.jsonPath) {
25
- const matches = query(root, sourcePath.jsonPath, { returnArray: true });
26
- if (matches.length === 0) {
27
- return [];
28
- }
29
- return matches.length === 1 ? matches[0] : matches;
30
- }
31
-
32
- if (Array.isArray(sourcePath.filePath) && sourcePath.filePath.length > 0) {
33
- return sourcePath.filePath.reduce((curr, key) => (curr ? curr[key] : undefined), root);
34
- }
35
-
36
- return root;
37
- };
38
-
39
- const checkDestinationExists = (destinationPath, context) => {
40
- if (!destinationPath) return true;
41
- const root = context[destinationPath.fileName];
42
- if (root === undefined) return false;
43
-
44
- if (destinationPath.jsonPath) {
45
- const matches = query(root, destinationPath.jsonPath, { returnArray: true });
46
- return matches.length > 0;
47
- }
48
-
49
- return true;
50
- };
51
-
52
- const executeInstruction = ({ instruction, context, spec, showLog = false }) => {
53
- if (!instruction) return null;
54
-
55
- // Handle array of sub-instructions (e.g. serial, options, search)
56
- if (Array.isArray(instruction)) {
57
- return instruction.map(step => executeInstruction({ instruction: step, context, spec, showLog }));
58
- }
59
-
60
- // Auto-normalize legacy dataRole to jsonPath
61
- if (instruction.destinationPath?.dataRole && !instruction.destinationPath?.jsonPath) {
62
- instruction.destinationPath.jsonPath = `$..*[?@.attributes['data-role'] == '${instruction.destinationPath.dataRole}']`;
63
- }
64
-
65
- // If destination node does not exist in current base (e.g. footer row on a table without footer), safely skip
66
- if (!checkDestinationExists(instruction.destinationPath, context)) {
67
- if (showLog) {
68
- console.warn(`Destination node not found for ${instruction.destinationPath?.jsonPath}, skipping instruction.`);
69
- }
70
- return null;
71
- }
72
-
73
- const type = instruction.type ?? (instruction.templateKey?.columnKey ? "rowOnColumn" : "single");
74
-
75
- // 1. rowOnColumn instruction (e.g. buildBody for table)
76
- if (type === "rowOnColumn") {
77
- const columnKey = instruction?.templateKey?.columnKey;
78
- const rowKey = instruction?.templateKey?.rowKey;
79
- const columnSpec = spec[columnKey];
80
- const rowSpec = spec[rowKey];
81
-
82
- const columns = context.data?.columns ?? context.columns;
83
- const rows = context.data?.data ?? (Array.isArray(context.data) ? context.data : context.rows);
84
-
85
- const result = rowOnColumnFunc({
86
- columns,
87
- data: rows,
88
- columnSpec,
89
- rowSpec
90
- });
91
-
92
- writePath(context, instruction.destinationPath, result, showLog);
93
- return result;
94
- }
95
-
96
- // 2. columnOnRow instruction (e.g. buildSelectWithOptions, buildDataListWithOptions)
97
- if (type === "columnOnRow") {
98
- const columnKey = instruction?.templateKey?.columnKey;
99
- const rowKey = instruction?.templateKey?.rowKey;
100
- const columnSpec = spec[columnKey];
101
- const rowSpec = spec[rowKey];
102
-
103
- const columns = context.data?.columns ?? context.columns ?? [];
104
- const rows = context.data?.data ?? (Array.isArray(context.data) ? context.data : context.rows ?? []);
105
-
106
- const result = columns.map(column => {
107
- const container = applyTemplate(column, columnSpec);
108
-
109
- let optionsList = [];
110
- if (Array.isArray(column.options) && column.options.length > 0) {
111
- optionsList = column.options.map(opt =>
112
- typeof opt === "object" ? opt : { rowValue: opt }
113
- );
114
- } else if (Array.isArray(rows) && rows.length > 0) {
115
- optionsList = rows.map(r => ({
116
- ...r,
117
- rowValue: r[column.columnName] ?? r.value ?? r
118
- }));
119
- }
120
-
121
- container.children = optionsList.map(item => applyTemplate(item, rowSpec));
122
- return container;
123
- });
124
-
125
- if (!instruction.destinationPath?.filePath || instruction.destinationPath.filePath.length === 0) {
126
- context[instruction.destinationPath.fileName] = result;
127
- } else {
128
- writePath(context, instruction.destinationPath, result, showLog);
129
- }
130
- return result;
131
- }
132
-
133
- // 3. single instruction (e.g. buildColgroup, buildHeader, buildFooter, buildFormField, buildOptionsArray)
134
- const template = instruction.templateKey ? spec[instruction.templateKey] : null;
135
- const source = resolveSource(instruction.sourcePath, context);
136
-
137
- let result;
138
- if (instruction.func === null || instruction.func === undefined) {
139
- result = template;
140
- } else if (transformerFunctions[instruction.func]) {
141
- result = transformerFunctions[instruction.func](source, template);
142
- } else {
143
- throw new Error(`Unknown function: ${instruction.func}`);
144
- }
145
-
146
- // If destination filePath is empty (e.g. writing directly into an array base like selectOptionsOnlyBase)
147
- if (!instruction.destinationPath?.filePath || instruction.destinationPath.filePath.length === 0) {
148
- if (Array.isArray(context[instruction.destinationPath.fileName])) {
149
- context[instruction.destinationPath.fileName].push(...(Array.isArray(result) ? result : [result]));
150
- } else {
151
- context[instruction.destinationPath.fileName] = result;
152
- }
153
- } else {
154
- writePath(context, instruction.destinationPath, result, showLog);
155
- }
156
-
157
- return result;
158
- };
159
-
160
- const startFunc = ({
161
- instructionMainKey,
162
- instructionSubKey,
163
- data,
164
- options,
165
- showLog = false
166
- } = {}) => {
167
- const baseKey = definitions[instructionMainKey][instructionSubKey].baseFromSpec;
168
- const instructionsToRun = definitions[instructionMainKey][instructionSubKey].instructions;
169
- const optionDefs = definitions[instructionMainKey][instructionSubKey].options;
170
-
171
- const base = structuredClone(spec[baseKey]);
172
-
173
- const context = { base, data };
174
-
175
- instructionsToRun.forEach(instructionKeyOrObj => {
176
- if (showLog) console.log("instruction : ", instructionKeyOrObj);
177
-
178
- const instruction = typeof instructionKeyOrObj === "string"
179
- ? instructions[instructionKeyOrObj]
180
- : instructionKeyOrObj;
181
-
182
- if (!instruction) {
183
- if (showLog) console.warn(`Instruction not found: ${instructionKeyOrObj}`);
184
- return;
185
- }
186
-
187
- executeInstruction({ instruction, context, spec, showLog });
188
- });
189
-
190
- runOptions({ base: context?.base, options, optionDefs, showLog });
191
-
192
- return context?.base;
193
- };
194
-
195
- export default startFunc;
@@ -1,117 +0,0 @@
1
- import { instructions as defaultInstructions, spec as defaultSpec } from "spec-repo";
2
- import runSingleInstructions from "json-instruction-single";
3
- import instructionsWithTargets from "./instructionsWithTargets/index.js";
4
-
5
- /*
6
- * Instruction references may be:
7
- * - a key in spec-repo.instructions;
8
- * - an array of instruction references (composable instruction groups);
9
- * - an inline instruction object;
10
- * - an array of inline instruction objects.
11
- */
12
- const resolveInstructionList = (reference, instructions) => {
13
- if (!reference) return [];
14
-
15
- if (typeof reference === "string") {
16
- const resolved = instructions[reference];
17
- return Array.isArray(resolved) ? resolved : resolved ? [resolved] : [];
18
- }
19
-
20
- if (Array.isArray(reference)) {
21
- return reference.flatMap(item => resolveInstructionList(item, instructions));
22
- }
23
-
24
- if (typeof reference === "object") {
25
- return [reference];
26
- }
27
-
28
- return [];
29
- };
30
-
31
- const runInstructionReference = ({
32
- reference,
33
- instructions,
34
- context,
35
- showLog
36
- }) => {
37
- const resolved = resolveInstructionList(reference, instructions);
38
- const executable = instructionsWithTargets(resolved, context.base);
39
-
40
- if (showLog) {
41
- console.log("[runOptions]", {
42
- reference,
43
- resolvedCount: resolved.length,
44
- executableCount: executable.length
45
- });
46
- }
47
-
48
- if (executable.length > 0) {
49
- runSingleInstructions(executable, context, showLog);
50
- }
51
- };
52
-
53
- /*
54
- * The options contract is intentionally generic:
55
- *
56
- * options = {
57
- * featureName: { switchName: true }
58
- * }
59
- *
60
- * optionDefs mirrors that shape, mapping each switch to instruction references.
61
- * A feature definition may contain `initialize`, an instruction reference that
62
- * runs once whenever at least one configured switch is enabled.
63
- *
64
- * No feature names or switch names are hardcoded in this runner.
65
- */
66
- export const runOptions = ({
67
- base,
68
- options = {},
69
- optionDefs = {},
70
- instructions = defaultInstructions,
71
- showLog = false
72
- } = {}) => {
73
- if (!base || !options || typeof options !== "object") return base;
74
-
75
- const context = { base, spec: structuredClone(defaultSpec) };
76
-
77
- for (const [featureName, featureDefinition] of Object.entries(optionDefs ?? {})) {
78
- const incomingFeature = options[featureName];
79
-
80
- if (!incomingFeature || typeof incomingFeature !== "object" || Array.isArray(incomingFeature)) {
81
- continue;
82
- }
83
-
84
- const enabledSwitches = Object.entries(incomingFeature).filter(
85
- ([switchName, enabled]) =>
86
- enabled === true &&
87
- Object.prototype.hasOwnProperty.call(featureDefinition, switchName) &&
88
- switchName !== "initialize"
89
- );
90
-
91
- if (enabledSwitches.length === 0) continue;
92
-
93
- // Optional structural preparation, declared by the specification.
94
- if (featureDefinition.initialize) {
95
- runInstructionReference({
96
- reference: featureDefinition.initialize,
97
- instructions,
98
- context,
99
- showLog
100
- });
101
- }
102
-
103
- // Each enabled nested boolean maps to its own instruction collection.
104
- for (const [switchName] of enabledSwitches) {
105
- runInstructionReference({
106
- reference: featureDefinition[switchName],
107
- instructions,
108
- context,
109
- showLog
110
- });
111
- }
112
- }
113
-
114
- return base;
115
- };
116
-
117
- export default runOptions;
@@ -1,31 +0,0 @@
1
- import { query } from "jsonpathly";
2
-
3
- const hasMatch = (base, expression) => {
4
- if (typeof expression !== "string" || !expression.trim()) return false;
5
- return query(base, expression, { returnArray: true }).length > 0;
6
- };
7
-
8
- const matchesSkipCondition = (base, skipIf) => {
9
- if (!skipIf) return false;
10
- const expressions = Array.isArray(skipIf) ? skipIf : [skipIf];
11
- return expressions.some(expression => hasMatch(base, expression));
12
- };
13
-
14
- const instructionsWithTargets = (instructions = [], base) => {
15
- const list = Array.isArray(instructions) ? instructions : [];
16
-
17
- return list.filter(instruction => {
18
- const destinationPath = instruction?.destinationPath;
19
- const root = destinationPath?.fileName
20
- ? (destinationPath.fileName === "base" ? base : undefined)
21
- : base;
22
-
23
- if (!destinationPath?.jsonPath) return false;
24
- if (!hasMatch(root, destinationPath.jsonPath)) return false;
25
- if (matchesSkipCondition(base, instruction.skipIf)) return false;
26
-
27
- return true;
28
- });
29
- };
30
-
31
- export default instructionsWithTargets;
@@ -1,31 +0,0 @@
1
- import { query } from "jsonpathly";
2
-
3
- const hasMatch = (base, expression) => {
4
- if (typeof expression !== "string" || !expression.trim()) return false;
5
- return query(base, expression, { returnArray: true }).length > 0;
6
- };
7
-
8
- const matchesSkipCondition = (base, skipIf) => {
9
- if (!skipIf) return false;
10
- const expressions = Array.isArray(skipIf) ? skipIf : [skipIf];
11
- return expressions.some(expression => hasMatch(base, expression));
12
- };
13
-
14
- const instructionsWithTargets = (instructions = [], base) => {
15
- const list = Array.isArray(instructions) ? instructions : [];
16
-
17
- return list.filter(instruction => {
18
- const destinationPath = instruction?.destinationPath;
19
- const root = destinationPath?.fileName
20
- ? (destinationPath.fileName === "base" ? base : undefined)
21
- : base;
22
-
23
- if (!destinationPath?.jsonPath) return false;
24
- if (!hasMatch(root, destinationPath.jsonPath)) return false;
25
- if (matchesSkipCondition(base, instruction.skipIf)) return false;
26
-
27
- return true;
28
- });
29
- };
30
-
31
- export default instructionsWithTargets;
package/src/v6/index.js DELETED
@@ -1,68 +0,0 @@
1
- import runSingleInstructions from "json-instruction-single";
2
- import runDoubleInstructions from "json-instruction-double";
3
- import rowOnColumnFunc from "json-transformer-funcs-row-on-column";
4
- import columnOnRowFunc from "json-transformer-funcs-column-on-row";
5
- import writePath from "json-write-path";
6
- import spec from "spec-repo";
7
-
8
- const runRowOnColumnInstructions = ({ instructions = [], base, data, showLog = false } = {}) => {
9
- instructions.forEach(instruction => {
10
- const columnSpec = spec[instruction?.templateKey?.columnKey];
11
- const rowSpec = spec[instruction?.templateKey?.rowKey];
12
-
13
- const result = rowOnColumnFunc({
14
- columns: data?.columns,
15
- data: data?.data,
16
- columnSpec,
17
- rowSpec
18
- });
19
-
20
- if (showLog) console.log("[runInstructions:rowOnColumn]", instruction.narration, result);
21
- writePath({ base, data }, instruction.destinationPath, result);
22
- });
23
- };
24
-
25
- const runColumnOnRowInstructions = ({ instructions = [], base, data, showLog = false } = {}) => {
26
- instructions.forEach(instruction => {
27
- const columnSpec = spec[instruction?.templateKey?.columnKey];
28
- const rowSpec = spec[instruction?.templateKey?.rowKey];
29
-
30
- const result = columnOnRowFunc({
31
- columns: data?.columns,
32
- data: data?.data,
33
- columnSpec,
34
- rowSpec
35
- });
36
-
37
- if (showLog) console.log("[runInstructions:columnOnRow]", instruction.narration, result);
38
- writePath({ base, data }, instruction.destinationPath, result);
39
- });
40
- };
41
-
42
- export const runInstructions = ({
43
- single = [],
44
- double = [],
45
- rowOnColumn = [],
46
- columnOnRow = [],
47
- base,
48
- data,
49
- showLog = false
50
- } = {}) => {
51
- if (showLog) console.log("runInstructions input:", { single, double, rowOnColumn, columnOnRow, base, data });
52
-
53
- if (!Array.isArray(single)) throw new TypeError("single instructions must be an array");
54
- if (!Array.isArray(double)) throw new TypeError("double instructions must be an array");
55
- if (!Array.isArray(rowOnColumn)) throw new TypeError("rowOnColumn instructions must be an array");
56
- if (!Array.isArray(columnOnRow)) throw new TypeError("columnOnRow instructions must be an array");
57
-
58
- const context = { base, data };
59
-
60
- if (single.length > 0) runSingleInstructions(single, context, showLog);
61
- if (double.length > 0) runDoubleInstructions({ instructions: double, registry: context, showLog });
62
- if (rowOnColumn.length > 0) runRowOnColumnInstructions({ instructions: rowOnColumn, base, data, showLog });
63
- if (columnOnRow.length > 0) runColumnOnRowInstructions({ instructions: columnOnRow, base, data, showLog });
64
-
65
- return context;
66
- };
67
-
68
- export default runInstructions;
package/src/v7/index.js DELETED
@@ -1,57 +0,0 @@
1
- import runSingleInstructions from "json-instruction-single";
2
- import rowOnColumnFunc from "json-transformer-funcs-row-on-column";
3
- import columnOnRowFunc from "json-transformer-funcs-column-on-row";
4
- import writePath from "json-write-path";
5
- import spec from "spec-repo";
6
-
7
- const runRowOnColumnInstructions = ({ instructions = [], base, data, showLog = false } = {}) => {
8
- instructions.forEach(instruction => {
9
- const columnSpec = spec[instruction?.templateKey?.columnKey];
10
- const rowSpec = spec[instruction?.templateKey?.rowKey];
11
- const result = rowOnColumnFunc({
12
- columns: data?.columns,
13
- data: data?.data,
14
- columnSpec,
15
- rowSpec
16
- });
17
- if (showLog) console.log("[runInstructions:rowOnColumn]", instruction.narration, result);
18
- writePath({ base, data }, instruction.destinationPath, result, showLog);
19
- });
20
- };
21
-
22
- const runColumnOnRowInstructions = ({ instructions = [], base, data, showLog = false } = {}) => {
23
- instructions.forEach(instruction => {
24
- const columnSpec = spec[instruction?.templateKey?.columnKey];
25
- const rowSpec = spec[instruction?.templateKey?.rowKey];
26
- const result = columnOnRowFunc({
27
- columns: data?.columns,
28
- data: data?.data,
29
- columnSpec,
30
- rowSpec
31
- });
32
- if (showLog) console.log("[runInstructions:columnOnRow]", instruction.narration, result);
33
- writePath({ base, data }, instruction.destinationPath, result, showLog);
34
- });
35
- };
36
-
37
- export const runInstructions = ({
38
- single = [],
39
- rowOnColumn = [],
40
- columnOnRow = [],
41
- base,
42
- data,
43
- showLog = false
44
- } = {}) => {
45
- if (!Array.isArray(single)) throw new TypeError("single instructions must be an array");
46
- if (!Array.isArray(rowOnColumn)) throw new TypeError("rowOnColumn instructions must be an array");
47
- if (!Array.isArray(columnOnRow)) throw new TypeError("columnOnRow instructions must be an array");
48
-
49
- const context = { base, data };
50
- if (showLog) console.log("runInstructions input:", { single, rowOnColumn, columnOnRow, base, data });
51
- if (single.length) runSingleInstructions(single, context, showLog);
52
- if (rowOnColumn.length) runRowOnColumnInstructions({ instructions: rowOnColumn, base, data, showLog });
53
- if (columnOnRow.length) runColumnOnRowInstructions({ instructions: columnOnRow, base, data, showLog });
54
- return context;
55
- };
56
-
57
- export default runInstructions;
@@ -1,165 +0,0 @@
1
- {
2
- "table": {
3
- "simple": {
4
- "baseFromSpec": "tableSimple",
5
- "instructions": [
6
- "buildColgroup",
7
- "buildHeader",
8
- "buildBody"
9
- ],
10
- "options": {
11
- "serial": "serial",
12
- "options": "options",
13
- "search": "search"
14
- }
15
- },
16
- "withFooter": {
17
- "baseFromSpec": "tableWithFooter",
18
- "instructions": [
19
- "buildColgroup",
20
- "buildHeader",
21
- "buildFooter",
22
- "buildBody"
23
- ],
24
- "options": {
25
- "serial": "serial",
26
- "options": "options",
27
- "search": "search"
28
- }
29
- },
30
- "bodyOnly": {
31
- "baseFromSpec": "tableBodyOnly",
32
- "instructions": [
33
- "buildBody"
34
- ],
35
- "options": {
36
- "serial": "serial",
37
- "options": "options"
38
- }
39
- },
40
- "bodyOnly1": {
41
- "baseFromSpec": "tableBodyOnly1",
42
- "instructions": []
43
- },
44
- "footerOnly": {
45
- "baseFromSpec": "tableFooterOnly",
46
- "instructions": [
47
- "buildFooter"
48
- ]
49
- },
50
- "headerOnly": {
51
- "baseFromSpec": "tableHeaderOnly",
52
- "instructions": [
53
- "buildColgroup",
54
- "buildHeader"
55
- ],
56
- "options": {
57
- "serial": "serial",
58
- "options": "options",
59
- "search": "search"
60
- }
61
- },
62
- "headerOnly1": {
63
- "baseFromSpec": "tableHeaderOnly1",
64
- "instructions": [
65
- "buildColgroup",
66
- "buildHeader"
67
- ]
68
- },
69
- "options": {
70
- "instructions": [],
71
- "options": {
72
- "serial": "serial",
73
- "options": "options",
74
- "search": "search"
75
- }
76
- },
77
- "headerAndFooter": {
78
- "baseFromSpec": "tableHeaderAndFooter",
79
- "instructions": [
80
- "buildColgroup",
81
- "buildHeader",
82
- "buildFooter",
83
- "buildBody"
84
- ],
85
- "options": {
86
- "serial": "serial",
87
- "options": "options",
88
- "search": "search"
89
- }
90
- },
91
- "withSearch": {
92
- "baseFromSpec": "tableWithSearch",
93
- "instructions": [
94
- "buildColgroup",
95
- "buildHeader",
96
- "buildBody"
97
- ],
98
- "options": {
99
- "serial": "serial",
100
- "options": "options",
101
- "search": "search"
102
- }
103
- },
104
- "withSearchAndFooter": {
105
- "baseFromSpec": "tableWithSearch",
106
- "instructions": [
107
- "buildColgroup",
108
- "buildHeader",
109
- "buildFooter",
110
- "buildBody"
111
- ],
112
- "options": {
113
- "serial": "serial",
114
- "options": "options",
115
- "search": "search"
116
- }
117
- }
118
- },
119
- "select": {
120
- "simple": {
121
- "baseFromSpec": "selectBase",
122
- "instructions": [
123
- "buildSelectWithOptions"
124
- ]
125
- },
126
- "baseFromSpec": "selectBase",
127
- "instructions": [
128
- "buildSelectWithOptions"
129
- ]
130
- },
131
- "dataList": {
132
- "simple": {
133
- "baseFromSpec": "dataListSimple",
134
- "instructions": [
135
- "buildDataListWithOptions"
136
- ]
137
- },
138
- "baseFromSpec": "dataListBase",
139
- "instructions": [
140
- "buildDataListWithOptions"
141
- ]
142
- },
143
- "selectOptionsOnly": {
144
- "baseFromSpec": "selectOptionsOnlyBase",
145
- "instructions": [
146
- "buildOptionsArray"
147
- ]
148
- },
149
- "searchInput": {
150
- "baseFromSpec": "searchInputBase",
151
- "instructions": []
152
- },
153
- "form": {
154
- "simple": {
155
- "baseFromSpec": "formSimple",
156
- "instructions": [
157
- "buildFormField"
158
- ]
159
- },
160
- "baseFromSpec": "formBase",
161
- "instructions": [
162
- "buildFormField"
163
- ]
164
- }
165
- }