@rljson/rljson 0.0.25 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/content/table-cfg.d.ts +1 -0
- package/dist/rljson.js +17 -0
- package/package.json +1 -1
|
@@ -47,3 +47,4 @@ export type TablesCfgTable = RljsonTable<TableCfg, 'properties'>;
|
|
|
47
47
|
* Example matching allTypesRow
|
|
48
48
|
*/
|
|
49
49
|
export declare const exampleTableCfgTable: () => TablesCfgTable;
|
|
50
|
+
export declare const exampleTableCfg: (tableCfg?: Partial<TableCfg> | undefined) => Partial<TableCfg>;
|
package/dist/rljson.js
CHANGED
|
@@ -477,6 +477,22 @@ __publicField(_Example, "broken", {
|
|
|
477
477
|
let Example = _Example;
|
|
478
478
|
// @license
|
|
479
479
|
const exampleTableCfgTable = () => Example.ok.singleRow().tableCfgs;
|
|
480
|
+
const exampleTableCfg = (tableCfg = void 0) => {
|
|
481
|
+
return {
|
|
482
|
+
key: (tableCfg == null ? void 0 : tableCfg.key) ?? "table",
|
|
483
|
+
columns: (tableCfg == null ? void 0 : tableCfg.columns) ?? {
|
|
484
|
+
a: {
|
|
485
|
+
key: "a",
|
|
486
|
+
type: "string"
|
|
487
|
+
},
|
|
488
|
+
b: {
|
|
489
|
+
key: "b",
|
|
490
|
+
type: "number"
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
type: (tableCfg == null ? void 0 : tableCfg.type) ?? "properties"
|
|
494
|
+
};
|
|
495
|
+
};
|
|
480
496
|
// @license
|
|
481
497
|
const rljsonIndexed = (rljson) => {
|
|
482
498
|
const result = {};
|
|
@@ -1252,6 +1268,7 @@ export {
|
|
|
1252
1268
|
exampleIdSetsTable,
|
|
1253
1269
|
examplePropertiesTable,
|
|
1254
1270
|
exampleRljson,
|
|
1271
|
+
exampleTableCfg,
|
|
1255
1272
|
exampleTableCfgTable,
|
|
1256
1273
|
exampleTypedefs,
|
|
1257
1274
|
isValidFieldName,
|