json-renderers-build 1.7.1 → 1.9.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 (116) hide show
  1. package/README.md +8 -4
  2. package/docs/dist/min.js +541 -266
  3. package/docs/dist/v4/min.js +320 -320
  4. package/docs/dist/v5/min.js +312 -312
  5. package/docs/dist/v7/min.js +272 -0
  6. package/docs/dist/v8/min.js +268 -0
  7. package/docs/dist/v9/min.js +587 -0
  8. package/docs/index.html +2 -2
  9. package/package.json +1 -1
  10. package/src/index.js +2 -2
  11. package/src/v7/index.js +47 -47
  12. package/src/v7/select/index.js +20 -20
  13. package/src/v7/select/options/index.js +17 -17
  14. package/src/v7/select/options/skeleton.json +17 -17
  15. package/src/v7/table/body/cells/index.js +23 -23
  16. package/src/v7/table/body/cells/skeleton.json +17 -17
  17. package/src/v7/table/body/index.js +15 -15
  18. package/src/v7/table/body/rows/index.js +36 -36
  19. package/src/v7/table/body/rows/skeleton.json +4 -4
  20. package/src/v7/table/body/skeleton.json +4 -4
  21. package/src/v7/table/head/cells/index.js +23 -23
  22. package/src/v7/table/head/cells/skeleton.json +17 -17
  23. package/src/v7/table/head/index.js +15 -15
  24. package/src/v7/table/head/row/index.js +15 -15
  25. package/src/v7/table/head/row/skeleton.json +4 -4
  26. package/src/v7/table/head/skeleton.json +4 -4
  27. package/src/v7/table/index.js +26 -26
  28. package/src/v7/table/skeleton.json +6 -6
  29. package/src/v8/common/deriveColumnsFromData.js +20 -0
  30. package/src/v8/index.js +40 -0
  31. package/src/v8/meta.js +6 -0
  32. package/src/v8/registerGlobal.js +14 -0
  33. package/src/v8/select/index.js +21 -0
  34. package/src/v8/select/options/index.js +17 -0
  35. package/src/v8/select/options/skeleton.json +17 -0
  36. package/src/v8/select/skeleton.json +7 -0
  37. package/src/v8/table/body/cells/index.js +17 -0
  38. package/src/v8/table/body/cells/skeleton.json +17 -0
  39. package/src/v8/table/body/index.js +20 -0
  40. package/src/v8/table/body/rows/index.js +23 -0
  41. package/src/v8/table/body/rows/skeleton.json +4 -0
  42. package/src/v8/table/body/skeleton.json +4 -0
  43. package/src/v8/table/head/cells/index.js +17 -0
  44. package/src/v8/table/head/cells/skeleton.json +17 -0
  45. package/src/v8/table/head/index.js +15 -0
  46. package/src/v8/table/head/row/index.js +15 -0
  47. package/src/v8/table/head/row/skeleton.json +4 -0
  48. package/src/v8/table/head/skeleton.json +4 -0
  49. package/src/v8/table/index.js +26 -0
  50. package/src/v8/table/skeleton.json +7 -0
  51. package/src/v9/common/deriveColumnsFromData.js +20 -0
  52. package/src/v9/index.js +36 -0
  53. package/src/v9/meta.js +6 -0
  54. package/src/v9/registerGlobal.js +14 -0
  55. package/src/v9/select/index.js +21 -0
  56. package/src/v9/select/options/index.js +17 -0
  57. package/src/v9/select/options/skeleton.json +17 -0
  58. package/src/v9/select/skeleton.json +7 -0
  59. package/src/v9/table/footer/empty/cell/index.js +5 -0
  60. package/src/v9/table/footer/empty/cell/tag.json +6 -0
  61. package/src/v9/table/footer/empty/index.js +6 -0
  62. package/src/v9/table/footer/empty/row/index.js +10 -0
  63. package/src/v9/table/footer/empty/row/tag.json +7 -0
  64. package/src/v9/table/footer/index.js +28 -0
  65. package/src/v9/table/footer/inputs/cell/index.js +15 -0
  66. package/src/v9/table/footer/inputs/cell/tag.json +7 -0
  67. package/src/v9/table/footer/inputs/index.js +6 -0
  68. package/src/v9/table/footer/inputs/input/tag.json +9 -0
  69. package/src/v9/table/footer/inputs/row/index.js +10 -0
  70. package/src/v9/table/footer/inputs/row/tag.json +7 -0
  71. package/src/v9/table/footer/inputsWithSave/button/tag.json +8 -0
  72. package/src/v9/table/footer/inputsWithSave/cell/index.js +20 -0
  73. package/src/v9/table/footer/inputsWithSave/cell/tag.json +7 -0
  74. package/src/v9/table/footer/inputsWithSave/index.js +6 -0
  75. package/src/v9/table/footer/inputsWithSave/input/tag.json +9 -0
  76. package/src/v9/table/footer/inputsWithSave/row/index.js +13 -0
  77. package/src/v9/table/footer/inputsWithSave/row/tag.json +7 -0
  78. package/src/v9/table/footer/tag.json +7 -0
  79. package/src/v9/table/footer/totals/cell/index.js +21 -0
  80. package/src/v9/table/footer/totals/cell/tag.json +7 -0
  81. package/src/v9/table/footer/totals/index.js +6 -0
  82. package/src/v9/table/footer/totals/row/index.js +12 -0
  83. package/src/v9/table/footer/totals/row/tag.json +7 -0
  84. package/src/v9/table/index.js +33 -0
  85. package/src/v9/table/options/index.js +18 -0
  86. package/src/v9/table/options/showOptions/index.js +39 -0
  87. package/src/v9/table/options/showSerial/index.js +19 -0
  88. package/src/v9/table/render-requests.json +107 -0
  89. package/src/v9/table/table/body/cell/index.js +12 -0
  90. package/src/v9/table/table/body/cell/tag.json +7 -0
  91. package/src/v9/table/table/body/index.js +17 -0
  92. package/src/v9/table/table/body/row/index.js +18 -0
  93. package/src/v9/table/table/body/row/tag.json +4 -0
  94. package/src/v9/table/table/body/tag.json +4 -0
  95. package/src/v9/table/table/head/cell/index.js +12 -0
  96. package/src/v9/table/table/head/cell/tag.json +7 -0
  97. package/src/v9/table/table/head/index.js +16 -0
  98. package/src/v9/table/table/head/row/index.js +14 -0
  99. package/src/v9/table/table/head/row/tag.json +4 -0
  100. package/src/v9/table/table/head/tag.json +4 -0
  101. package/src/v9/table/table/index.js +36 -0
  102. package/src/v9/table/table/tag.json +7 -0
  103. package/src/v9/table_10oct/body/cells/index.js +17 -0
  104. package/src/v9/table_10oct/body/cells/skeleton.json +17 -0
  105. package/src/v9/table_10oct/body/index.js +20 -0
  106. package/src/v9/table_10oct/body/rows/index.js +23 -0
  107. package/src/v9/table_10oct/body/rows/skeleton.json +4 -0
  108. package/src/v9/table_10oct/body/skeleton.json +4 -0
  109. package/src/v9/table_10oct/head/cells/index.js +17 -0
  110. package/src/v9/table_10oct/head/cells/skeleton.json +17 -0
  111. package/src/v9/table_10oct/head/index.js +15 -0
  112. package/src/v9/table_10oct/head/row/index.js +15 -0
  113. package/src/v9/table_10oct/head/row/skeleton.json +4 -0
  114. package/src/v9/table_10oct/head/skeleton.json +4 -0
  115. package/src/v9/table_10oct/index.js +26 -0
  116. package/src/v9/table_10oct/skeleton.json +7 -0
@@ -0,0 +1,272 @@
1
+ const k = {
2
+ version: "v4.0.0",
3
+ description: "build table from store data and render to DOM uses json-to-spec, json-to-dom under the hood"
4
+ }, E = (n) => {
5
+ var r;
6
+ typeof globalThis > "u" || !n || (globalThis.ks ?? (globalThis.ks = {}), (r = globalThis.ks).jsonRenderersBuild ?? (r.jsonRenderersBuild = {
7
+ meta: k,
8
+ renderToDom: n
9
+ }));
10
+ }, y = ({ inItems: n, inRecipe: r, inExecute: e }) => {
11
+ const t = n, o = r, c = e;
12
+ return t.map((a) => p({
13
+ inSource: a,
14
+ inRecipe: o,
15
+ inExecute: c
16
+ })).flat(1 / 0).filter(Boolean);
17
+ }, N = ({ inSource: n, inRecipe: r, inExecute: e }) => {
18
+ const t = n, o = r, c = e;
19
+ let a = t;
20
+ typeof c == "function" && (a = c({
21
+ inSource: t,
22
+ inRecipe: o
23
+ }));
24
+ for (const [s, l] of Object.entries(a))
25
+ Array.isArray(l) && o && s in o && (a[s] = y({
26
+ inItems: l,
27
+ inRecipe: o[s],
28
+ inExecute: c
29
+ }));
30
+ return a;
31
+ }, p = ({ inSource: n, inRecipe: r, inExecute: e }) => {
32
+ const t = n, o = r, c = e;
33
+ return Array.isArray(t) ? y({
34
+ inItems: t,
35
+ inRecipe: o,
36
+ inExecute: c
37
+ }) : typeof t == "object" && t !== null ? N({
38
+ inSource: t,
39
+ inRecipe: o,
40
+ inExecute: c
41
+ }) : t;
42
+ }, x = ({ inKey: n, inDirective: r }) => {
43
+ const e = n, t = r;
44
+ return (t == null ? void 0 : t.alterKey) || e;
45
+ }, S = ({ inValue: n, inDirective: r, inExecute: e }) => {
46
+ const t = n, o = r, c = e;
47
+ return o && "transform" in o ? p({
48
+ inSource: t,
49
+ inRecipe: o,
50
+ inExecute: c
51
+ }) : t;
52
+ }, F = ({ inValue: n, inDirective: r }) => {
53
+ const e = n, t = r;
54
+ return (t == null ? void 0 : t.valueType) === "array" && !Array.isArray(e) ? [e] : e;
55
+ }, R = ({ inValue: n, inDirective: r }) => {
56
+ const e = n, t = r;
57
+ return t != null && t.valueKey && e && typeof e == "object" ? e[t.valueKey] : e;
58
+ }, C = ({ inSource: n, inTransform: r, inExecute: e }) => {
59
+ const t = n, o = r, c = e, a = {};
60
+ for (const [s, l] of Object.entries(t)) {
61
+ if (!(s in o))
62
+ continue;
63
+ const i = o[s], g = x({ inKey: s, inDirective: i });
64
+ let u = l;
65
+ u = S({
66
+ inValue: u,
67
+ inDirective: i,
68
+ inExecute: c
69
+ }), u = F({ inValue: u, inDirective: i }), u = R({ inValue: u, inDirective: i }), a[g] = u;
70
+ }
71
+ return a;
72
+ };
73
+ function $(n, r) {
74
+ for (const e in n)
75
+ typeof n[e] == "object" && n[e] !== null ? $(n[e], r) : typeof n[e] == "string" && n[e] === "${}" && (n[e] = r);
76
+ return n;
77
+ }
78
+ const O = ({ inSource: n, inOperation: r, inExecute: e }) => {
79
+ const t = n, o = r;
80
+ for (const [c, a] of Object.entries(o))
81
+ if ("operationType" in a && a.operationType === "loopArray" && c in t) {
82
+ const s = t[c].map((l) => {
83
+ const i = structuredClone(a == null ? void 0 : a.template);
84
+ return $(i, l), i;
85
+ });
86
+ t[c] = s;
87
+ }
88
+ return t;
89
+ }, d = ({ inSource: n, inRecipe: r }) => {
90
+ let e = n;
91
+ const t = r;
92
+ return t && typeof t == "object" && "transform" in t && (e = C({
93
+ inSource: e,
94
+ inTransform: t.transform,
95
+ inExecute: d
96
+ })), t && typeof t == "object" && "operation" in t && (e = O({
97
+ inSource: e,
98
+ inOperation: t.operation,
99
+ inExecute: d
100
+ })), e;
101
+ }, f = (n, r) => p({
102
+ inSource: n,
103
+ inRecipe: r,
104
+ inExecute: d
105
+ }), T = {
106
+ children: ""
107
+ }, j = {
108
+ children: {
109
+ operationType: "loopArray",
110
+ template: {
111
+ tagName: "th",
112
+ attributes: {
113
+ value: "${}"
114
+ },
115
+ textContent: "${}"
116
+ }
117
+ }
118
+ }, A = {
119
+ transform: T,
120
+ operation: j
121
+ }, v = ({
122
+ inData: n
123
+ } = {}) => {
124
+ const e = (n ?? []).map((o) => typeof o == "object" && o !== null ? o.title || o.name || o.key || "" : String(o)), t = f({
125
+ children: e
126
+ }, A);
127
+ return (t == null ? void 0 : t.children) ?? [];
128
+ }, J = "tr", V = [], K = {
129
+ tagName: J,
130
+ children: V
131
+ }, w = ({
132
+ inData: n
133
+ } = {}) => {
134
+ const r = n ?? [], e = structuredClone(K);
135
+ return e.children = v({ inData: r }), e;
136
+ }, I = "thead", B = [], H = {
137
+ tagName: I,
138
+ children: B
139
+ }, h = ({
140
+ inData: n
141
+ } = {}) => {
142
+ const r = n ?? [], e = structuredClone(H);
143
+ return e.children = [w({ inData: r })], e;
144
+ }, M = {
145
+ children: ""
146
+ }, G = {
147
+ children: {
148
+ operationType: "loopArray",
149
+ template: {
150
+ tagName: "td",
151
+ attributes: {
152
+ value: "${}"
153
+ },
154
+ textContent: "${}"
155
+ }
156
+ }
157
+ }, L = {
158
+ transform: M,
159
+ operation: G
160
+ }, P = ({
161
+ inData: n
162
+ } = {}) => {
163
+ const e = (n ?? []).map((o) => typeof o == "object" && o !== null ? JSON.stringify(o) : String(o ?? "")), t = f({
164
+ children: e
165
+ }, L);
166
+ return (t == null ? void 0 : t.children) ?? [];
167
+ }, U = "tr", _ = [], q = {
168
+ tagName: U,
169
+ children: _
170
+ }, z = ({
171
+ inData: n,
172
+ inColumns: r
173
+ } = {}) => {
174
+ const e = n ?? [], t = r;
175
+ return e.map((o) => {
176
+ let c;
177
+ Array.isArray(o) ? c = o : typeof o == "object" && o !== null ? Array.isArray(t) && t.length > 0 ? c = t.map((s) => {
178
+ const l = typeof s == "object" ? s.key || s.dataKey || s.title || s.name : s;
179
+ return o[l] ?? "";
180
+ }) : c = Object.values(o) : c = [o];
181
+ const a = structuredClone(q);
182
+ return a.children = P({ inData: c }), a;
183
+ });
184
+ }, Q = "tbody", W = [], X = {
185
+ tagName: Q,
186
+ children: W
187
+ }, b = ({
188
+ inData: n,
189
+ inColumns: r
190
+ } = {}) => {
191
+ const e = structuredClone(X);
192
+ return e.children = z({ inData: n, inColumns: r }), e;
193
+ }, Y = "table", Z = {
194
+ class: "table table-hover table-striped mb-0"
195
+ }, tt = [], et = {
196
+ tagName: Y,
197
+ attributes: Z,
198
+ children: tt
199
+ }, nt = ({
200
+ inColumns: n,
201
+ inData: r
202
+ } = {}) => {
203
+ const e = n ?? [], t = r ?? [], o = structuredClone(et);
204
+ return o.children = [
205
+ h({ inData: e }),
206
+ b({ inData: t, inColumns: e })
207
+ ], o;
208
+ }, ot = {
209
+ children: ""
210
+ }, rt = {
211
+ children: {
212
+ operationType: "loopArray",
213
+ template: {
214
+ tagName: "option",
215
+ attributes: {
216
+ value: "${}"
217
+ },
218
+ textContent: "${}"
219
+ }
220
+ }
221
+ }, ct = {
222
+ transform: ot,
223
+ operation: rt
224
+ }, D = ({
225
+ inData: n
226
+ } = {}) => {
227
+ let e = f({
228
+ children: n ?? []
229
+ }, ct);
230
+ return (e == null ? void 0 : e.children) ?? [];
231
+ }, at = "select", st = {
232
+ id: "LedgerName"
233
+ }, lt = [], it = {
234
+ tagName: at,
235
+ attributes: st,
236
+ children: lt
237
+ }, ut = ({
238
+ inData: n
239
+ } = {}) => {
240
+ let e = D({
241
+ inData: n ?? []
242
+ });
243
+ const t = structuredClone(it);
244
+ return t.children = e, t;
245
+ }, m = {
246
+ table: nt,
247
+ select: ut,
248
+ selectOptionsOnly: D,
249
+ tableHead: h,
250
+ tableBody: b
251
+ }, dt = ({
252
+ type: n = "table",
253
+ data: r,
254
+ columns: e
255
+ } = {}) => {
256
+ const t = n, o = m[t];
257
+ return o ? o({
258
+ inColumns: e,
259
+ inData: r
260
+ }) : (console.error(
261
+ `[Renderer] Unknown renderer type "${t}". Available types: ${Object.keys(m).join(", ")}`
262
+ ), null);
263
+ };
264
+ E(dt);
265
+ export {
266
+ dt as default,
267
+ ut as renderSelect,
268
+ D as renderSelectOptions,
269
+ nt as renderTable,
270
+ b as renderTableBody,
271
+ h as renderTableHead
272
+ };
@@ -0,0 +1,268 @@
1
+ const g = {
2
+ version: "v8.0.0",
3
+ description: "build table from store data and render to DOM uses json-to-spec, json-to-dom under the hood"
4
+ }, E = (n) => {
5
+ var o;
6
+ typeof globalThis > "u" || !n || (globalThis.ks ?? (globalThis.ks = {}), (o = globalThis.ks).jsonRenderersBuild ?? (o.jsonRenderersBuild = {
7
+ meta: g,
8
+ renderToDom: n
9
+ }));
10
+ }, f = ({ inItems: n, inRecipe: o, inExecute: t }) => {
11
+ const e = n, c = o, r = t;
12
+ return e.map((a) => p({
13
+ inSource: a,
14
+ inRecipe: c,
15
+ inExecute: r
16
+ })).flat(1 / 0).filter(Boolean);
17
+ }, x = ({ inSource: n, inRecipe: o, inExecute: t }) => {
18
+ const e = n, c = o, r = t;
19
+ let a = e;
20
+ typeof r == "function" && (a = r({
21
+ inSource: e,
22
+ inRecipe: c
23
+ }));
24
+ for (const [s, u] of Object.entries(a))
25
+ Array.isArray(u) && c && s in c && (a[s] = f({
26
+ inItems: u,
27
+ inRecipe: c[s],
28
+ inExecute: r
29
+ }));
30
+ return a;
31
+ }, p = ({ inSource: n, inRecipe: o, inExecute: t }) => {
32
+ const e = n, c = o, r = t;
33
+ return Array.isArray(e) ? f({
34
+ inItems: e,
35
+ inRecipe: c,
36
+ inExecute: r
37
+ }) : typeof e == "object" && e !== null ? x({
38
+ inSource: e,
39
+ inRecipe: c,
40
+ inExecute: r
41
+ }) : e;
42
+ }, N = ({ inKey: n, inDirective: o }) => {
43
+ const t = n, e = o;
44
+ return (e == null ? void 0 : e.alterKey) || t;
45
+ }, C = ({ inValue: n, inDirective: o, inExecute: t }) => {
46
+ const e = n, c = o, r = t;
47
+ return c && "transform" in c ? p({
48
+ inSource: e,
49
+ inRecipe: c,
50
+ inExecute: r
51
+ }) : e;
52
+ }, F = ({ inValue: n, inDirective: o }) => {
53
+ const t = n, e = o;
54
+ return (e == null ? void 0 : e.valueType) === "array" && !Array.isArray(t) ? [t] : t;
55
+ }, R = ({ inValue: n, inDirective: o }) => {
56
+ const t = n, e = o;
57
+ return e != null && e.valueKey && t && typeof t == "object" ? t[e.valueKey] : t;
58
+ }, T = ({ inSource: n, inTransform: o, inExecute: t }) => {
59
+ const e = n, c = o, r = t, a = {};
60
+ for (const [s, u] of Object.entries(e)) {
61
+ if (!(s in c))
62
+ continue;
63
+ const l = c[s], D = N({ inKey: s, inDirective: l });
64
+ let i = u;
65
+ i = C({
66
+ inValue: i,
67
+ inDirective: l,
68
+ inExecute: r
69
+ }), i = F({ inValue: i, inDirective: l }), i = R({ inValue: i, inDirective: l }), a[D] = i;
70
+ }
71
+ return a;
72
+ };
73
+ function $(n, o) {
74
+ for (const t in n)
75
+ typeof n[t] == "object" && n[t] !== null ? $(n[t], o) : typeof n[t] == "string" && n[t] === "${}" && (n[t] = o);
76
+ return n;
77
+ }
78
+ const S = ({ inSource: n, inOperation: o, inExecute: t }) => {
79
+ const e = n, c = o;
80
+ for (const [r, a] of Object.entries(c))
81
+ if ("operationType" in a && a.operationType === "loopArray" && r in e) {
82
+ const s = e[r].map((u) => {
83
+ const l = structuredClone(a == null ? void 0 : a.template);
84
+ return $(l, u), l;
85
+ });
86
+ e[r] = s;
87
+ }
88
+ return e;
89
+ }, d = ({ inSource: n, inRecipe: o }) => {
90
+ let t = n;
91
+ const e = o;
92
+ return e && typeof e == "object" && "transform" in e && (t = T({
93
+ inSource: t,
94
+ inTransform: e.transform,
95
+ inExecute: d
96
+ })), e && typeof e == "object" && "operation" in e && (t = S({
97
+ inSource: t,
98
+ inOperation: e.operation,
99
+ inExecute: d
100
+ })), t;
101
+ }, m = (n, o) => p({
102
+ inSource: n,
103
+ inRecipe: o,
104
+ inExecute: d
105
+ }), k = {
106
+ children: ""
107
+ }, O = {
108
+ children: {
109
+ operationType: "loopArray",
110
+ template: {
111
+ tagName: "th",
112
+ attributes: {
113
+ value: "${}"
114
+ },
115
+ textContent: "${}"
116
+ }
117
+ }
118
+ }, v = {
119
+ transform: k,
120
+ operation: O
121
+ }, A = ({
122
+ inData: n
123
+ }) => {
124
+ let t = m({
125
+ children: n
126
+ }, v);
127
+ return t == null ? void 0 : t.children;
128
+ }, J = "tr", V = [], j = {
129
+ tagName: J,
130
+ children: V
131
+ }, w = ({
132
+ inData: n
133
+ }) => {
134
+ const o = n, t = structuredClone(j);
135
+ return t.children = A({ inData: o }), t;
136
+ }, K = "thead", I = [], B = {
137
+ tagName: K,
138
+ children: I
139
+ }, y = ({
140
+ inData: n
141
+ }) => {
142
+ const o = n, t = structuredClone(B);
143
+ return t.children = [w({ inData: o })], t;
144
+ }, H = {
145
+ children: ""
146
+ }, M = {
147
+ children: {
148
+ operationType: "loopArray",
149
+ template: {
150
+ tagName: "td",
151
+ attributes: {
152
+ value: "${}"
153
+ },
154
+ textContent: "${}"
155
+ }
156
+ }
157
+ }, G = {
158
+ transform: H,
159
+ operation: M
160
+ }, L = ({
161
+ inData: n
162
+ }) => {
163
+ let t = m({
164
+ children: n
165
+ }, G);
166
+ return t == null ? void 0 : t.children;
167
+ }, P = "tr", _ = [], q = {
168
+ tagName: P,
169
+ children: _
170
+ }, z = ({
171
+ inData: n,
172
+ inColumns: o
173
+ }) => {
174
+ const t = n, e = o;
175
+ return t.map((c) => {
176
+ const r = Array.isArray(c) ? c : e.map((s) => c[s]), a = structuredClone(q);
177
+ return a.children = L({ inData: r }), a;
178
+ });
179
+ }, Q = "tbody", U = [], W = {
180
+ tagName: Q,
181
+ children: U
182
+ }, h = ({
183
+ inData: n,
184
+ inColumns: o
185
+ }) => {
186
+ const t = n, e = o, c = structuredClone(W);
187
+ return c.children = z({
188
+ inData: t,
189
+ inColumns: e
190
+ }), c;
191
+ }, X = "table", Y = {
192
+ class: "table table-hover table-striped mb-0"
193
+ }, Z = [], tt = {
194
+ tagName: X,
195
+ attributes: Y,
196
+ children: Z
197
+ }, et = ({
198
+ inColumns: n,
199
+ inData: o
200
+ }) => {
201
+ const t = n, e = o, c = structuredClone(tt);
202
+ return c.children = [
203
+ y({ inData: t }),
204
+ h({ inData: e, inColumns: t })
205
+ ], c;
206
+ }, nt = {
207
+ children: ""
208
+ }, ot = {
209
+ children: {
210
+ operationType: "loopArray",
211
+ template: {
212
+ tagName: "option",
213
+ attributes: {
214
+ value: "${}"
215
+ },
216
+ textContent: "${}"
217
+ }
218
+ }
219
+ }, ct = {
220
+ transform: nt,
221
+ operation: ot
222
+ }, b = ({
223
+ inData: n
224
+ }) => {
225
+ let t = m({
226
+ children: n
227
+ }, ct);
228
+ return t == null ? void 0 : t.children;
229
+ }, rt = "select", at = {
230
+ id: "LedgerName"
231
+ }, st = [], lt = {
232
+ tagName: rt,
233
+ attributes: at,
234
+ children: st
235
+ }, it = ({
236
+ inData: n
237
+ }) => {
238
+ let t = b({
239
+ inData: n
240
+ });
241
+ const e = structuredClone(lt);
242
+ return e.children = t, e;
243
+ }, ut = {
244
+ table: et,
245
+ select: it,
246
+ selectOptionsOnly: b,
247
+ tableHead: y,
248
+ tableBody: h
249
+ }, dt = ({
250
+ type: n = "table",
251
+ data: o,
252
+ columns: t
253
+ }) => {
254
+ const c = ut[n];
255
+ return c({
256
+ inColumns: t,
257
+ inData: o
258
+ });
259
+ };
260
+ E(dt);
261
+ export {
262
+ dt as default,
263
+ it as renderSelect,
264
+ b as renderSelectOptions,
265
+ et as renderTable,
266
+ h as renderTableBody,
267
+ y as renderTableHead
268
+ };